browserstack-node-sdk 1.66.1 → 1.66.3

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 (220) 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/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  139. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  140. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  142. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  143. package/src/bin/v2/framework/testFramework.js +1 -1
  144. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  146. package/src/bin/v2/grpcClient.js +1 -1
  147. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  148. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  149. package/src/bin/v2/instances/trackedContext.js +1 -1
  150. package/src/bin/v2/instances/trackedInstance.js +1 -1
  151. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  152. package/src/bin/v2/modules/baseModule.js +1 -1
  153. package/src/bin/v2/modules/loadTestModule.js +1 -1
  154. package/src/bin/v2/modules/observabilityModule.js +1 -1
  155. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  156. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  157. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  158. package/src/bin/v2/modules/testhubModule.js +1 -1
  159. package/src/bin/v2/sdkErrorHandler.js +1 -1
  160. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  161. package/src/bin/v2/state/hookState.js +1 -1
  162. package/src/bin/v2/state/testFrameworkState.js +1 -1
  163. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  164. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  165. package/src/bin/v2/utils/jest-utils.js +1 -1
  166. package/src/bin/vanilla-js/command.js +1 -1
  167. package/src/browserStackSdk.js +1 -1
  168. package/src/helpers/BrowserStackSetup.js +1 -1
  169. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  170. package/src/helpers/accessibility-automation/constants.js +1 -1
  171. package/src/helpers/accessibility-automation/helper.js +1 -1
  172. package/src/helpers/accessibility-automation/scripts.js +1 -1
  173. package/src/helpers/ats/constants.js +1 -1
  174. package/src/helpers/ats/helper.js +1 -1
  175. package/src/helpers/caCertHelper.js +1 -1
  176. package/src/helpers/capsMapping.js +1 -1
  177. package/src/helpers/central-scanner/constants.js +1 -1
  178. package/src/helpers/central-scanner/helpers.js +1 -1
  179. package/src/helpers/classLogger.js +1 -1
  180. package/src/helpers/driverInitErrorReporter.js +1 -1
  181. package/src/helpers/globals.js +1 -1
  182. package/src/helpers/helper.js +1 -1
  183. package/src/helpers/logger.js +1 -1
  184. package/src/helpers/metadata.js +1 -1
  185. package/src/helpers/patchHelper.js +1 -1
  186. package/src/helpers/patchHelpers.js +1 -1
  187. package/src/helpers/percy/Percy.js +1 -1
  188. package/src/helpers/percy/PercyBinary.js +1 -1
  189. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  190. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  191. package/src/helpers/percy/PercySDK.js +1 -1
  192. package/src/helpers/percy/index.js +1 -1
  193. package/src/helpers/percy/utils.js +1 -1
  194. package/src/helpers/performance/constants.js +1 -1
  195. package/src/helpers/performance/performance-tester.js +1 -1
  196. package/src/helpers/playwright-helper.js +1 -1
  197. package/src/helpers/processHelper.js +1 -1
  198. package/src/helpers/puppeteer-helper.js +1 -1
  199. package/src/helpers/request-spy.js +1 -1
  200. package/src/helpers/setKeepAlive.js +1 -1
  201. package/src/helpers/stackFrameUtils.js +1 -1
  202. package/src/helpers/test-observability/constants.js +1 -1
  203. package/src/helpers/test-observability/error-handler.js +1 -1
  204. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  205. package/src/helpers/test-observability/sessionHandler.js +1 -1
  206. package/src/helpers/test-observability/utils.js +1 -1
  207. package/src/helpers/test-orchestration/constants.js +1 -1
  208. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  209. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  210. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  211. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  212. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  213. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  214. package/src/helpers/testhub/constants.js +1 -1
  215. package/src/helpers/testhub/testhubHandler.js +1 -1
  216. package/src/helpers/testhub/utils.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a2_0x55af(_0x29e2cd,_0x34f43e){const _0x51ff71=a2_0x51ff();return a2_0x55af=function(_0x55af46,_0x2cc5e9){_0x55af46=_0x55af46-0xbc;let _0x1dd851=_0x51ff71[_0x55af46];return _0x1dd851;},a2_0x55af(_0x29e2cd,_0x34f43e);}const a2_0x10bf20=a2_0x55af;(function(_0x562712,_0xd821b9){const _0xb3b87e=a2_0x55af,_0x5d47ac=_0x562712();while(!![]){try{const _0x5b9a76=-parseInt(_0xb3b87e(0xd6))/0x1+parseInt(_0xb3b87e(0xdf))/0x2+parseInt(_0xb3b87e(0xd3))/0x3+parseInt(_0xb3b87e(0xd2))/0x4+parseInt(_0xb3b87e(0xdb))/0x5+parseInt(_0xb3b87e(0xc1))/0x6*(-parseInt(_0xb3b87e(0xdd))/0x7)+-parseInt(_0xb3b87e(0xdc))/0x8*(parseInt(_0xb3b87e(0xde))/0x9);if(_0x5b9a76===_0xd821b9)break;else _0x5d47ac['push'](_0x5d47ac['shift']());}catch(_0x533f09){_0x5d47ac['push'](_0x5d47ac['shift']());}}}(a2_0x51ff,0x27485));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x10bf20(0xe0)),{logger}=require('../config/logger'),{inputCloudProviderKeys}=require(a2_0x10bf20(0xbc)),{WS_EVENTS}=require(a2_0x10bf20(0xc9));function a2_0x51ff(){const _0x314cea=['LOG','xQMjm','init','lRmuE','webSocketUtils','503164GvhIrL','632067Pramqz','zvgkj','readFileSync','271263BGyzpr','AtwUo','setCachedCredsInRegistry','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','writeFileSync','906080cRKFpw','496wyzeQV','91CGvFJp','26874MCHRVK','635870CFmkSI','../utils/utilityMethods','mVWYz','../utils/userInput','debug','3|2|0|1|4','rws','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','100770hUzDNv','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','cloudProviderName','VFWVq','gridName','cloudProvider','oRoMK','parse','../config/constants','clusterName','info','message'];a2_0x51ff=function(){return _0x314cea;};return a2_0x51ff();}class CloudProvider{constructor(_0x4db6d9,_0x10bf44,_0x47ddfd,_0x4eb184,_0x3bbfc8){const _0x58f71c=a2_0x10bf20,_0x583d9f={};_0x583d9f[_0x58f71c(0xe1)]=_0x58f71c(0xbe);const _0x1acff1=_0x583d9f,_0x229a0f=_0x1acff1[_0x58f71c(0xe1)]['split']('|');let _0x10e7e4=0x0;while(!![]){switch(_0x229a0f[_0x10e7e4++]){case'0':this[_0x58f71c(0xc5)]=_0x47ddfd;continue;case'1':this[_0x58f71c(0xbf)]=_0x4eb184;continue;case'2':this[_0x58f71c(0xca)]=_0x10bf44;continue;case'3':this[_0x58f71c(0xc3)]=_0x4db6d9;continue;case'4':this[_0x58f71c(0xd1)]=_0x3bbfc8;continue;}break;}}async[a2_0x10bf20(0xcf)](){const _0xee89ce=a2_0x10bf20,_0x54c282={'oRoMK':function(_0x474413){return _0x474413();},'AtwUo':function(_0x118ca3,_0xeecc2e){return _0x118ca3(_0xeecc2e);},'lRmuE':_0xee89ce(0xc0),'neNWF':function(_0x1fdcff,_0x2a0211){return _0x1fdcff(_0x2a0211);},'zvgkj':function(_0x55a0a6,_0x580ffa,_0x4d4b97,_0x2456c8){return _0x55a0a6(_0x580ffa,_0x4d4b97,_0x2456c8);},'xQMjm':_0xee89ce(0xc2),'VFWVq':_0xee89ce(0xd9)},_0x58d2c3=JSON[_0xee89ce(0xc8)](fs[_0xee89ce(0xd5)](_0x54c282[_0xee89ce(0xc7)](getCredentialsPath))),_0x88fbb8=_0x58d2c3['cloudProvider']||{};if(_0x54c282[_0xee89ce(0xd7)](isUndefined,_0x88fbb8[this['cloudProviderName']])){logger['info'](_0x54c282[_0xee89ce(0xd0)]);_0x54c282['neNWF'](isUndefined,_0x58d2c3['cloudProvider'])&&(_0x58d2c3[_0xee89ce(0xc6)]={});_0x58d2c3[_0xee89ce(0xc6)][this[_0xee89ce(0xc3)]]={};const _0x12c191=await _0x54c282[_0xee89ce(0xd4)](inputCloudProviderKeys,this['cloudProviderName'],_0x58d2c3,this);fs[_0xee89ce(0xda)](_0x54c282[_0xee89ce(0xc7)](getCredentialsPath),JSON['stringify'](_0x12c191)),logger[_0xee89ce(0xbd)](_0x54c282[_0xee89ce(0xce)]);}else{const _0x14e01f=_0x54c282[_0xee89ce(0xc4)],_0x3e7ad8={};_0x3e7ad8['type']=WS_EVENTS[_0xee89ce(0xcd)],_0x3e7ad8[_0xee89ce(0xcc)]=_0x14e01f,this[_0xee89ce(0xd1)]['sendEventToBackend'](this['rws'],_0x3e7ad8),logger[_0xee89ce(0xcb)](_0x14e01f),await this[_0xee89ce(0xd8)](_0x88fbb8);}}}const a2_0x2ee898={};a2_0x2ee898['CloudProvider']=CloudProvider,module['exports']=a2_0x2ee898;
1
+ const a2_0x340d70=a2_0x38a7;function a2_0x38a7(_0x1aaafc,_0x429cf8){const _0x287380=a2_0x2873();return a2_0x38a7=function(_0x38a7a9,_0xbaf1e5){_0x38a7a9=_0x38a7a9-0x137;let _0x13e7ac=_0x287380[_0x38a7a9];return _0x13e7ac;},a2_0x38a7(_0x1aaafc,_0x429cf8);}(function(_0x4010ae,_0x5c0e89){const _0x2dc979=a2_0x38a7,_0x5462b3=_0x4010ae();while(!![]){try{const _0x3c98e1=-parseInt(_0x2dc979(0x15a))/0x1+-parseInt(_0x2dc979(0x155))/0x2+-parseInt(_0x2dc979(0x14f))/0x3+-parseInt(_0x2dc979(0x13a))/0x4+parseInt(_0x2dc979(0x137))/0x5*(parseInt(_0x2dc979(0x154))/0x6)+parseInt(_0x2dc979(0x14c))/0x7+parseInt(_0x2dc979(0x15b))/0x8*(parseInt(_0x2dc979(0x145))/0x9);if(_0x3c98e1===_0x5c0e89)break;else _0x5462b3['push'](_0x5462b3['shift']());}catch(_0x1caf64){_0x5462b3['push'](_0x5462b3['shift']());}}}(a2_0x2873,0x7519d));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x340d70(0x144)),{logger}=require(a2_0x340d70(0x139)),{inputCloudProviderKeys}=require('../utils/userInput'),{WS_EVENTS}=require(a2_0x340d70(0x13f));class CloudProvider{constructor(_0x23b053,_0x2ead17,_0x77a5c,_0x5b729a,_0x3cda61){const _0xd0351c=a2_0x340d70,_0x4c4013={};_0x4c4013[_0xd0351c(0x141)]=_0xd0351c(0x149);const _0x1b2754=_0x4c4013,_0x3879d9=_0x1b2754['ygSln'][_0xd0351c(0x153)]('|');let _0x29347d=0x0;while(!![]){switch(_0x3879d9[_0x29347d++]){case'0':this[_0xd0351c(0x158)]=_0x3cda61;continue;case'1':this[_0xd0351c(0x13d)]=_0x5b729a;continue;case'2':this[_0xd0351c(0x150)]=_0x2ead17;continue;case'3':this[_0xd0351c(0x14b)]=_0x77a5c;continue;case'4':this['cloudProviderName']=_0x23b053;continue;}break;}}async[a2_0x340d70(0x13c)](){const _0x356dd0=a2_0x340d70,_0x1bedaf={'xJdec':function(_0x4d8dd0){return _0x4d8dd0();},'lMKHI':function(_0x3b97e1,_0x38e023){return _0x3b97e1(_0x38e023);},'JlDAB':_0x356dd0(0x156),'kVABi':function(_0x583ddf,_0x255732,_0xcbd9d4,_0x10f4e8){return _0x583ddf(_0x255732,_0xcbd9d4,_0x10f4e8);},'Hoxks':_0x356dd0(0x159),'jMAiz':_0x356dd0(0x140)},_0x163c59=JSON[_0x356dd0(0x14a)](fs[_0x356dd0(0x157)](_0x1bedaf[_0x356dd0(0x152)](getCredentialsPath))),_0x3eb160=_0x163c59[_0x356dd0(0x13b)]||{};if(_0x1bedaf[_0x356dd0(0x148)](isUndefined,_0x3eb160[this[_0x356dd0(0x138)]])){logger[_0x356dd0(0x14e)](_0x1bedaf['JlDAB']);_0x1bedaf[_0x356dd0(0x148)](isUndefined,_0x163c59[_0x356dd0(0x13b)])&&(_0x163c59[_0x356dd0(0x13b)]={});_0x163c59[_0x356dd0(0x13b)][this['cloudProviderName']]={};const _0x1147a0=await _0x1bedaf['kVABi'](inputCloudProviderKeys,this[_0x356dd0(0x138)],_0x163c59,this);fs[_0x356dd0(0x142)](_0x1bedaf['xJdec'](getCredentialsPath),JSON['stringify'](_0x1147a0)),logger[_0x356dd0(0x146)](_0x1bedaf['Hoxks']);}else{const _0xbaa047=_0x1bedaf[_0x356dd0(0x14d)],_0x3ee02c={};_0x3ee02c[_0x356dd0(0x151)]=WS_EVENTS[_0x356dd0(0x147)],_0x3ee02c[_0x356dd0(0x13e)]=_0xbaa047,this[_0x356dd0(0x158)][_0x356dd0(0x15c)](this[_0x356dd0(0x13d)],_0x3ee02c),logger[_0x356dd0(0x14e)](_0xbaa047),await this[_0x356dd0(0x143)](_0x3eb160);}}}const a2_0x5d79c6={};a2_0x5d79c6['CloudProvider']=CloudProvider,module['exports']=a2_0x5d79c6;function a2_0x2873(){const _0x5bd304=['Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','ygSln','writeFileSync','setCachedCredsInRegistry','../utils/utilityMethods','936423TyknUz','debug','LOG','lMKHI','4|2|3|1|0','parse','gridName','1934611OCbLhh','jMAiz','info','2500506opBvdD','clusterName','type','xJdec','split','474onYXjB','987770OGqAFi','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','readFileSync','webSocketUtils','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','844245lumbIr','200gtHpYV','sendEventToBackend','25735yuDLdj','cloudProviderName','../config/logger','2531536yHtVCQ','cloudProvider','init','rws','message','../config/constants'];a2_0x2873=function(){return _0x5bd304;};return a2_0x2873();}
@@ -1 +1 @@
1
- const a3_0x1a227b=a3_0x2a05;(function(_0x2f8749,_0x397ddc){const _0x265dc=a3_0x2a05,_0x500551=_0x2f8749();while(!![]){try{const _0x540593=-parseInt(_0x265dc(0x17c))/0x1*(-parseInt(_0x265dc(0x281))/0x2)+parseInt(_0x265dc(0x2e1))/0x3+parseInt(_0x265dc(0x2b7))/0x4*(parseInt(_0x265dc(0x1f8))/0x5)+parseInt(_0x265dc(0x255))/0x6*(-parseInt(_0x265dc(0x199))/0x7)+-parseInt(_0x265dc(0x27a))/0x8*(parseInt(_0x265dc(0x1c8))/0x9)+-parseInt(_0x265dc(0x310))/0xa*(parseInt(_0x265dc(0x308))/0xb)+parseInt(_0x265dc(0x179))/0xc;if(_0x540593===_0x397ddc)break;else _0x500551['push'](_0x500551['shift']());}catch(_0x703986){_0x500551['push'](_0x500551['shift']());}}}(a3_0x9c6d,0x8469c));function a3_0x2a05(_0x58b19e,_0x273918){const _0x9c6d06=a3_0x9c6d();return a3_0x2a05=function(_0x2a05a1,_0x5a3c76){_0x2a05a1=_0x2a05a1-0x16e;let _0x3efad3=_0x9c6d06[_0x2a05a1];return _0x3efad3;},a3_0x2a05(_0x58b19e,_0x273918);}const fs=require('fs'),path=require('path'),got=require(a3_0x1a227b(0x274)),util=require('util'),cp=require(a3_0x1a227b(0x208)),{google}=require('googleapis'),compute=require('@google-cloud/compute'),container=require(a3_0x1a227b(0x23d)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x1a227b(0x1de)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x1a227b(0x2af)),{deleteRoutingDeps,deleteAgent}=require(a3_0x1a227b(0x30b)),{inputConfirmation,closeInput}=require(a3_0x1a227b(0x24e)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x1a227b(0x26a)),PERMISSIONS=require(a3_0x1a227b(0x21d));class GoogleCloudProvider extends CloudProvider{constructor(_0x2866d5,_0x553fbf,_0x4060ab,_0x130bb0){const _0x16ecf0=a3_0x1a227b,_0x425849={};_0x425849[_0x16ecf0(0x187)]=_0x16ecf0(0x1b1),_0x425849[_0x16ecf0(0x1e0)]='turboscale-service-account',_0x425849['PkZnb']='turboscale_custom_role';const _0x3b7712=_0x425849,_0x15ea2d=_0x3b7712[_0x16ecf0(0x187)][_0x16ecf0(0x23e)]('|');let _0x672317=0x0;while(!![]){switch(_0x15ea2d[_0x672317++]){case'0':super(GCP,_0x2866d5,_0x553fbf,_0x4060ab,_0x130bb0);continue;case'1':this['resourcemanagerClient']=null;continue;case'2':this[_0x16ecf0(0x282)]=_0x3b7712[_0x16ecf0(0x1e0)];continue;case'3':this[_0x16ecf0(0x289)]=null;continue;case'4':this[_0x16ecf0(0x180)]=_0x3b7712[_0x16ecf0(0x186)];continue;case'5':this[_0x16ecf0(0x261)]=null;continue;case'6':this[_0x16ecf0(0x296)]=null;continue;case'7':this['networkClient']=null;continue;case'8':this['containerClient']=null;continue;}break;}}async[a3_0x1a227b(0x252)](){const _0xf80c2=a3_0x1a227b;this[_0xf80c2(0x2a1)](this[_0xf80c2(0x20b)]);}async['init'](){const _0xb3c001=a3_0x1a227b;await super[_0xb3c001(0x293)]();const _0x595f58=this[_0xb3c001(0x289)],_0x57e2ee={};_0x57e2ee['keyFile']=_0x595f58,this[_0xb3c001(0x1f3)]=new container['v1'][(_0xb3c001(0x240))](_0x57e2ee);const _0x4069a6={};_0x4069a6[_0xb3c001(0x2de)]=_0x595f58,this['networkClient']=new compute['v1'][(_0xb3c001(0x297))](_0x4069a6);const _0x53777e={};return _0x53777e[_0xb3c001(0x2de)]=_0x595f58,this[_0xb3c001(0x19a)]=new ProjectsClient(_0x53777e),this['iamClient']=google[_0xb3c001(0x269)]('v1'),this;}async[a3_0x1a227b(0x1af)](_0x568b84,_0x197664){const _0x39d495=a3_0x1a227b,_0x3263a6={'CwQVg':function(_0xcdd5e6,_0x5345c1){return _0xcdd5e6(_0x5345c1);},'xexRg':'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','apExm':function(_0x2de489){return _0x2de489();},'wdjBU':_0x39d495(0x30c)},_0x1e8979=await _0x3263a6[_0x39d495(0x2f6)](_0x568b84,_0x3263a6['xexRg']);let _0xb39dfa=await fs[_0x39d495(0x2a3)](_0x1e8979);_0xb39dfa=_0xb39dfa[_0x39d495(0x304)]();const _0x3ecdb3=_0x3263a6[_0x39d495(0x1a8)](getDirForConfig),_0x572724=path[_0x39d495(0x1f7)](_0x3ecdb3,_0x3263a6[_0x39d495(0x188)]);fs[_0x39d495(0x1bc)](_0x572724,_0xb39dfa),this[_0x39d495(0x289)]=_0x572724;const _0x4f9e69={};return _0x4f9e69[_0x39d495(0x2de)]=_0x572724,_0x197664[_0x39d495(0x228)][GCP]=_0x4f9e69,_0xb39dfa=JSON[_0x39d495(0x2f7)](_0xb39dfa),this[_0x39d495(0x261)]=_0xb39dfa[_0x39d495(0x177)],_0x197664;}async[a3_0x1a227b(0x2f3)](_0x481ff0){const _0x280ae5=a3_0x1a227b;this['credentialsPath']=_0x481ff0[this[_0x280ae5(0x1bd)]][_0x280ae5(0x2de)];let _0x3dca05=await fs[_0x280ae5(0x2a3)](this[_0x280ae5(0x289)]);_0x3dca05=JSON[_0x280ae5(0x2f7)](_0x3dca05),this['projectId']=_0x3dca05[_0x280ae5(0x177)];}[a3_0x1a227b(0x1fa)](_0x25220a){const _0x2c9e57=a3_0x1a227b;return _0x25220a['status']['loadBalancer'][_0x2c9e57(0x1e5)][0x0]['ip'];}async[a3_0x1a227b(0x2db)](){const _0x45e447=a3_0x1a227b,_0x35cecd={};_0x35cecd[_0x45e447(0x2c9)]=function(_0x5baf3f,_0x2085cd){return _0x5baf3f+_0x2085cd;},_0x35cecd[_0x45e447(0x2d0)]=function(_0x5a0171,_0x11e1b0){return _0x5a0171!==_0x11e1b0;},_0x35cecd[_0x45e447(0x2ca)]=_0x45e447(0x1b4),_0x35cecd[_0x45e447(0x2bb)]=_0x45e447(0x237),_0x35cecd['aGSBp']=function(_0x1907d7,_0x135c1f){return _0x1907d7===_0x135c1f;},_0x35cecd[_0x45e447(0x17b)]=_0x45e447(0x294),_0x35cecd[_0x45e447(0x19b)]='browserstack',_0x35cecd['DUDGn']='auKxH',_0x35cecd[_0x45e447(0x26d)]=_0x45e447(0x2ab);const _0x548e89=_0x35cecd;try{if(_0x548e89[_0x45e447(0x2d0)](_0x548e89[_0x45e447(0x2ca)],_0x548e89[_0x45e447(0x2bb)])){const _0x1e4bde=await this['getClusterInfo']();if(_0x1e4bde[0x0]?.[_0x45e447(0x1a7)]?.[_0x45e447(0x29c)]){if(_0x548e89[_0x45e447(0x219)](_0x548e89[_0x45e447(0x17b)],_0x548e89[_0x45e447(0x17b)])){const _0x5cfe44=_0x1e4bde[0x0]?.[_0x45e447(0x1a7)]?.[_0x45e447(0x29c)];return _0x5cfe44&&_0x548e89['aGSBp'](_0x5cfe44[_0x45e447(0x2cf)](),_0x548e89[_0x45e447(0x19b)]);}else _0x4aedee[_0x45e447(0x276)]('['+_0x548e89[_0x45e447(0x2c9)](_0x5f2cd1,0x1)+']\x20'+_0x19a770[_0x45ba5e]);}}else _0x513919[_0x45e447(0x1ec)]['push'](_0x4f35df);}catch(_0x2b4721){if(_0x548e89['aGSBp'](_0x548e89[_0x45e447(0x189)],_0x548e89[_0x45e447(0x26d)]))_0x4c4a2e['status']=![];else return![];}return![];}async[a3_0x1a227b(0x18b)](){const _0x3aef64=a3_0x1a227b,_0x478d2b={'SRPwf':function(_0x514a21,_0x41c421){return _0x514a21===_0x41c421;},'DxApx':function(_0x2a3e1e,_0x368d27){return _0x2a3e1e===_0x368d27;},'dzOqi':_0x3aef64(0x277),'yzsRR':_0x3aef64(0x29e),'htCPm':_0x3aef64(0x20f),'TBzlL':'gcpresources','ZrRdn':_0x3aef64(0x1ae),'imgFW':'utf-8','EuSRd':function(_0x425801,_0x501bfb){return _0x425801!==_0x501bfb;},'QjaiZ':function(_0x206420,_0x13604e){return _0x206420!==_0x13604e;},'djsUy':_0x3aef64(0x1ef),'fmYGz':'wicHC','sDWFX':function(_0x40b8f6,_0x31cc04){return _0x40b8f6===_0x31cc04;},'VjgkY':_0x3aef64(0x1cd),'AZLxB':'HBnyT','RmiQG':function(_0x398dd1,_0x40863e){return _0x398dd1===_0x40863e;},'AoWZT':'ygcrb','duHPR':_0x3aef64(0x299),'skDCP':function(_0x7d9dee,_0xa0c8c4){return _0x7d9dee!==_0xa0c8c4;},'JTgXL':_0x3aef64(0x242),'rytpK':_0x3aef64(0x25d),'Psrnp':function(_0x27714e,_0x1b34ce){return _0x27714e===_0x1b34ce;},'nvGdk':'NbXtW','fwTVN':_0x3aef64(0x2b9),'NaTRQ':function(_0x4911f8,_0x17f2b7){return _0x4911f8>_0x17f2b7;},'DLktD':_0x3aef64(0x17a),'Rvtvf':_0x3aef64(0x18c),'yugHs':function(_0x22449a,_0x57a5a8){return _0x22449a<_0x57a5a8;},'gdwQl':_0x3aef64(0x2b3),'GQyEv':_0x3aef64(0x220),'HCnQX':function(_0x54a364,_0x186aab){return _0x54a364+_0x186aab;},'vCZsz':function(_0x279cdb,_0x16a9ba){return _0x279cdb(_0x16a9ba);},'EPgkm':_0x3aef64(0x218),'tsABz':function(_0x189194,_0x5a3405){return _0x189194<=_0x5a3405;},'ZjNZK':function(_0x190da2,_0x27eb61){return _0x190da2>_0x27eb61;},'mVvpp':_0x3aef64(0x2e5),'nHFdq':_0x3aef64(0x181),'oXpOE':function(_0xaf00c){return _0xaf00c();},'yzScC':function(_0x3e7c5e,_0x32cf78){return _0x3e7c5e-_0x32cf78;},'PFKMN':function(_0xfc071a,_0x1f97a1){return _0xfc071a===_0x1f97a1;},'qKYvj':_0x3aef64(0x21e),'UFXvw':function(_0xa407b9,_0x4508aa){return _0xa407b9-_0x4508aa;}};let _0x51fb07=await fs['readFileAsync'](path[_0x3aef64(0x1f7)](__dirname,'..',_0x478d2b['htCPm'],_0x478d2b['TBzlL'],_0x478d2b[_0x3aef64(0x1a1)]),_0x478d2b[_0x3aef64(0x2a9)]);_0x51fb07=JSON[_0x3aef64(0x2f7)](_0x51fb07);let _0x23676a=[global_registry[_0x3aef64(0x2b6)]];_0x478d2b['EuSRd'](_0x51fb07[global_registry[_0x3aef64(0x2b6)]],undefined)&&(_0x478d2b[_0x3aef64(0x170)](_0x478d2b[_0x3aef64(0x273)],_0x478d2b[_0x3aef64(0x298)])?_0x23676a=_0x23676a[_0x3aef64(0x1c3)](_0x51fb07[global_registry[_0x3aef64(0x2b6)]]):_0x1d3891[_0x3aef64(0x1ac)](_0x3aef64(0x185)+this[_0x3aef64(0x19d)]+_0x3aef64(0x2ce)+_0x4d27e6[_0x3aef64(0x2b6)]+_0x3aef64(0x20e)));const _0x168087=[];for await(const _0x2d8daf of _0x23676a){if(_0x478d2b[_0x3aef64(0x1f5)](_0x478d2b[_0x3aef64(0x288)],_0x478d2b[_0x3aef64(0x288)])){const _0x2abfeb={};_0x2abfeb[_0x3aef64(0x209)]=_0x3aef64(0x283)+this[_0x3aef64(0x261)]+_0x3aef64(0x2cd)+_0x2d8daf;const _0x10819f=_0x2abfeb,_0x24071b=await this[_0x3aef64(0x1f3)]['listClusters'](_0x10819f);for(const _0x308e36 of _0x24071b[0x0][_0x3aef64(0x223)]){if(_0x478d2b[_0x3aef64(0x2fa)](_0x478d2b[_0x3aef64(0x21c)],_0x478d2b['AZLxB'])){if(_0x478d2b[_0x3aef64(0x2a8)](_0x308e36[_0x3aef64(0x2f1)],this['clusterName'])){if(_0x478d2b[_0x3aef64(0x2a8)](_0x478d2b[_0x3aef64(0x263)],_0x478d2b[_0x3aef64(0x2a4)]))return _0x4b3975['status']['loadBalancer'][_0x3aef64(0x1e5)][0x0]['ip'];else _0x168087[_0x3aef64(0x265)](_0x2d8daf);}}else{const _0x2ef745='https://www.googleapis.com/compute/v1/projects/'+this[_0x3aef64(0x261)]+'/regions/'+_0x497a52['clusterRegion']+_0x3aef64(0x2d5)+_0x15e1dc[0x0];if(_0x478d2b[_0x3aef64(0x19c)](_0x2ef745,_0x36eebb))return[!![],_0x1b10c4];}}}else _0x22d61f[_0x3aef64(0x265)](_0x5a3edc);}const _0x5de199=_0x168087[_0x3aef64(0x1dd)];if(_0x478d2b['RmiQG'](_0x5de199,0x1)){if(_0x478d2b[_0x3aef64(0x2a2)](_0x478d2b['JTgXL'],_0x478d2b[_0x3aef64(0x2ba)])){if(_0x478d2b[_0x3aef64(0x170)](global_registry['clusterRegion'],_0x168087[0x0])){if(_0x478d2b[_0x3aef64(0x1e3)](_0x478d2b['nvGdk'],_0x478d2b[_0x3aef64(0x2fc)]))return _0x3e929b[_0x3aef64(0x268)](_0x3aef64(0x21f)+_0x271130+'.\x20Error:\x20'+_0x33c529),[![],[]];else global_registry[_0x3aef64(0x2b6)]=_0x168087[0x0],this[_0x3aef64(0x203)]();}return!![];}else _0x2fbe93['clusterRegion']=_0x1465c9[0x0],this['updateClusterRegion']();}else{if(_0x478d2b[_0x3aef64(0x307)](_0x5de199,0x1)){if(_0x478d2b['EuSRd'](_0x478d2b[_0x3aef64(0x178)],_0x478d2b[_0x3aef64(0x1e7)])){console[_0x3aef64(0x276)](_0x3aef64(0x1e6)+this[_0x3aef64(0x19d)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x6d0d0=0x0;_0x478d2b[_0x3aef64(0x1ab)](_0x6d0d0,_0x5de199);_0x6d0d0+=0x1){if(_0x478d2b[_0x3aef64(0x1e3)](_0x478d2b['gdwQl'],_0x478d2b[_0x3aef64(0x27d)]))return!![];else console['log']('['+_0x478d2b[_0x3aef64(0x279)](_0x6d0d0,0x1)+']\x20'+_0x168087[_0x6d0d0]);}const _0x5be434=await _0x478d2b['vCZsz'](inputConfirmation,_0x478d2b[_0x3aef64(0x2c6)]),_0x49b7fa=_0x478d2b[_0x3aef64(0x2a0)](Number,_0x5be434);if(_0x478d2b['vCZsz'](isNaN,_0x49b7fa)||_0x478d2b[_0x3aef64(0x1d0)](_0x49b7fa,0x0)||_0x478d2b[_0x3aef64(0x222)](_0x49b7fa,_0x5de199)){if(_0x478d2b[_0x3aef64(0x2a8)](_0x478d2b['mVvpp'],_0x478d2b[_0x3aef64(0x1b9)])){const _0x4afcd2=_0x174901[0x0]?.[_0x3aef64(0x1a7)]?.[_0x3aef64(0x29c)];return _0x4afcd2&&_0x478d2b[_0x3aef64(0x2fa)](_0x4afcd2['toLowerCase'](),_0x478d2b[_0x3aef64(0x26b)]);}else console[_0x3aef64(0x268)](_0x478d2b['yzsRR']),process[_0x3aef64(0x221)](0x1);}return _0x478d2b[_0x3aef64(0x1ee)](closeInput),logger['info'](_0x3aef64(0x287)+_0x168087[_0x478d2b['yzScC'](_0x49b7fa,0x1)]),_0x478d2b[_0x3aef64(0x1d2)](global_registry[_0x3aef64(0x2b6)],_0x168087[_0x478d2b[_0x3aef64(0x24a)](_0x49b7fa,0x1)])&&(_0x478d2b[_0x3aef64(0x284)](_0x478d2b[_0x3aef64(0x317)],_0x478d2b['qKYvj'])?(global_registry[_0x3aef64(0x2b6)]=_0x168087[_0x478d2b['UFXvw'](_0x49b7fa,0x1)],this[_0x3aef64(0x203)]()):_0x3a9d36[_0x3aef64(0x268)]=_0x21daea),!![];}else _0x52cadf['error'](_0x478d2b[_0x3aef64(0x2d1)]),_0x11d9f3[_0x3aef64(0x221)](0x1);}}return![];}async[a3_0x1a227b(0x1b5)](){const _0x706722=a3_0x1a227b,_0x1536a7=await this['containerClient'][_0x706722(0x303)]({'name':_0x706722(0x283)+this[_0x706722(0x261)]+_0x706722(0x2cd)+global_registry[_0x706722(0x2b6)]+_0x706722(0x305)+this['clusterName']});return _0x1536a7;}async[a3_0x1a227b(0x30e)](){const _0x53f5e1=a3_0x1a227b,_0x372119={};_0x372119[_0x53f5e1(0x2a5)]=_0x53f5e1(0x23a),_0x372119[_0x53f5e1(0x2f4)]=_0x53f5e1(0x20f),_0x372119[_0x53f5e1(0x2aa)]=_0x53f5e1(0x1b7),_0x372119[_0x53f5e1(0x1db)]='KubeConfigTemplate.yaml';const _0x26f249=_0x372119;cp['execSync'](_0x26f249['ZZXuz']),cp[_0x53f5e1(0x1a4)](_0x53f5e1(0x1b6)+this[_0x53f5e1(0x289)]);const _0x560d52=await this[_0x53f5e1(0x1b5)](),_0x5a7423=_0x53f5e1(0x205)+this[_0x53f5e1(0x261)]+'_'+global_registry[_0x53f5e1(0x2b6)]+'_'+this[_0x53f5e1(0x19d)];let _0x3a8ef4=await fs[_0x53f5e1(0x2a3)](path[_0x53f5e1(0x1f7)](__dirname,'..',_0x26f249[_0x53f5e1(0x2f4)],_0x26f249[_0x53f5e1(0x2aa)],_0x26f249[_0x53f5e1(0x1db)]));return _0x3a8ef4=_0x3a8ef4[_0x53f5e1(0x304)](),_0x3a8ef4=_0x3a8ef4[_0x53f5e1(0x18e)](/<CLUSTER_NAME>/g,_0x5a7423),_0x3a8ef4=_0x3a8ef4['replace'](/<CLUSTER_URL>/g,_0x53f5e1(0x174)+_0x560d52[0x0][_0x53f5e1(0x30f)]),_0x3a8ef4=_0x3a8ef4[_0x53f5e1(0x18e)](/<CERTIFICATE_DATA>/g,_0x560d52[0x0][_0x53f5e1(0x16e)][_0x53f5e1(0x2c4)]),_0x3a8ef4;}async['checkServiceAccount'](){const _0x5b07ea=a3_0x1a227b,_0x4af2c0={};_0x4af2c0[_0x5b07ea(0x235)]=function(_0x4749bd,_0xf49d3d){return _0x4749bd===_0xf49d3d;},_0x4af2c0[_0x5b07ea(0x2e7)]=function(_0x1a5157,_0x29c971){return _0x1a5157-_0x29c971;},_0x4af2c0[_0x5b07ea(0x30d)]='allowed',_0x4af2c0[_0x5b07ea(0x2da)]=_0x5b07ea(0x25e),_0x4af2c0[_0x5b07ea(0x24f)]=_0x5b07ea(0x1f4),_0x4af2c0[_0x5b07ea(0x2e3)]=function(_0x5b15c0,_0x270d13){return _0x5b15c0===_0x270d13;},_0x4af2c0[_0x5b07ea(0x260)]=_0x5b07ea(0x224),_0x4af2c0[_0x5b07ea(0x1e8)]=_0x5b07ea(0x2e8),_0x4af2c0[_0x5b07ea(0x1cc)]='JPhjF',_0x4af2c0['EmjmN']=_0x5b07ea(0x17f),_0x4af2c0[_0x5b07ea(0x2e9)]=function(_0x23a9e8,_0xcfb2a7){return _0x23a9e8===_0xcfb2a7;},_0x4af2c0['TPnEI']='IlTKa',_0x4af2c0[_0x5b07ea(0x18f)]=_0x5b07ea(0x1cb);const _0x192e65=_0x4af2c0,_0xec926b={};_0xec926b['scopes']=[_0x192e65['WmTby']],_0xec926b[_0x5b07ea(0x2de)]=this[_0x5b07ea(0x289)];const _0x439e42=await google[_0x5b07ea(0x1c5)][_0x5b07ea(0x241)](_0xec926b),_0x1835e1=await this[_0x5b07ea(0x296)][_0x5b07ea(0x197)][_0x5b07ea(0x238)][_0x5b07ea(0x1d4)]({'name':_0x5b07ea(0x283)+this[_0x5b07ea(0x261)],'auth':_0x439e42});if(_0x1835e1?.[_0x5b07ea(0x2ef)]?.[_0x5b07ea(0x1ad)]){if(_0x192e65[_0x5b07ea(0x2e3)](_0x192e65['cCSTD'],_0x192e65[_0x5b07ea(0x1e8)]))_0x192e65['tOpUB'](_0x3ef490[_0x5b07ea(0x2f1)],this['clusterName'])&&_0x2766e3[_0x5b07ea(0x265)](_0x5161d4);else for(const _0x2332ee of _0x1835e1[_0x5b07ea(0x2ef)][_0x5b07ea(0x1ad)]){if(_0x192e65[_0x5b07ea(0x235)](_0x192e65[_0x5b07ea(0x1cc)],_0x192e65[_0x5b07ea(0x2f5)]))_0x3a664c['clusterRegion']=_0xe55771[_0x192e65[_0x5b07ea(0x2e7)](_0x4a1992,0x1)],this[_0x5b07ea(0x203)]();else{if(_0x192e65[_0x5b07ea(0x2e9)](_0x2332ee?.[_0x5b07ea(0x2f1)],_0x5b07ea(0x283)+this[_0x5b07ea(0x261)]+_0x5b07ea(0x267)+this['serviceAccountName']+'@'+this[_0x5b07ea(0x261)]+_0x5b07ea(0x227))){if(_0x192e65[_0x5b07ea(0x235)](_0x192e65[_0x5b07ea(0x19f)],_0x192e65[_0x5b07ea(0x18f)])){const _0x38698f=_0x2e798b[_0x5b07ea(0x275)][_0x5b07ea(0x1e4)](_0x231931);_0x237795+='\x0a\x09'+_0x14e9e3+_0x5b07ea(0x2ec)+(_0x38698f?_0x192e65['WXkxN']:_0x192e65[_0x5b07ea(0x2da)]),!_0x38698f&&(_0xad953e['status']=![]);}else return!![];}}}}return![];}async[a3_0x1a227b(0x1a2)](){const _0x2f3d88=a3_0x1a227b,_0x2ea576={};_0x2ea576[_0x2f3d88(0x2a6)]='Cluster\x20creation\x20failed',_0x2ea576[_0x2f3d88(0x2fe)]=function(_0xb524c8,_0x2b2972){return _0xb524c8!==_0x2b2972;},_0x2ea576[_0x2f3d88(0x27b)]=_0x2f3d88(0x196),_0x2ea576[_0x2f3d88(0x249)]=_0x2f3d88(0x230),_0x2ea576[_0x2f3d88(0x19e)]=_0x2f3d88(0x300),_0x2ea576[_0x2f3d88(0x27c)]=_0x2f3d88(0x2bc),_0x2ea576['YnMer']=_0x2f3d88(0x1f4),_0x2ea576[_0x2f3d88(0x212)]='iam.serviceAccounts.signBlob',_0x2ea576[_0x2f3d88(0x2f8)]=_0x2f3d88(0x2ed),_0x2ea576['VdGRM']=_0x2f3d88(0x286),_0x2ea576[_0x2f3d88(0x2f9)]=_0x2f3d88(0x1c4),_0x2ea576[_0x2f3d88(0x22e)]=_0x2f3d88(0x2c7),_0x2ea576['ecRFW']=_0x2f3d88(0x2ae),_0x2ea576['aMJHP']=_0x2f3d88(0x256),_0x2ea576[_0x2f3d88(0x2b2)]='storage.buckets.getObjectInsights',_0x2ea576[_0x2f3d88(0x23f)]=_0x2f3d88(0x183),_0x2ea576[_0x2f3d88(0x2cb)]=_0x2f3d88(0x1b8),_0x2ea576[_0x2f3d88(0x2b1)]=_0x2f3d88(0x1c0),_0x2ea576[_0x2f3d88(0x2d7)]=_0x2f3d88(0x24c),_0x2ea576['eQwPQ']='storage.buckets.update',_0x2ea576[_0x2f3d88(0x1f1)]='storage.multipartUploads.abort',_0x2ea576[_0x2f3d88(0x204)]=_0x2f3d88(0x1ea),_0x2ea576[_0x2f3d88(0x175)]=_0x2f3d88(0x2e2),_0x2ea576[_0x2f3d88(0x28f)]=_0x2f3d88(0x1e2),_0x2ea576[_0x2f3d88(0x309)]=_0x2f3d88(0x194),_0x2ea576[_0x2f3d88(0x22c)]=_0x2f3d88(0x1fb),_0x2ea576[_0x2f3d88(0x1a0)]=_0x2f3d88(0x2dd),_0x2ea576['GchIB']=_0x2f3d88(0x1a6),_0x2ea576[_0x2f3d88(0x253)]=_0x2f3d88(0x1dc),_0x2ea576[_0x2f3d88(0x2bf)]=_0x2f3d88(0x245),_0x2ea576[_0x2f3d88(0x1b3)]=_0x2f3d88(0x1cf),_0x2ea576[_0x2f3d88(0x234)]='Turboscale\x20Custom\x20Role',_0x2ea576[_0x2f3d88(0x27e)]=_0x2f3d88(0x1f9);const _0x267d0a=_0x2ea576,_0x3e234a=await this[_0x2f3d88(0x1c9)]();if(_0x3e234a){if(_0x267d0a[_0x2f3d88(0x2fe)](_0x267d0a[_0x2f3d88(0x27b)],_0x267d0a[_0x2f3d88(0x249)])){logger[_0x2f3d88(0x311)](_0x267d0a[_0x2f3d88(0x19e)]);return;}else _0x215f66['info'](_0x267d0a[_0x2f3d88(0x2a6)]);}logger[_0x2f3d88(0x311)](_0x267d0a[_0x2f3d88(0x27c)]);const _0x30a90e={};_0x30a90e[_0x2f3d88(0x201)]=[_0x267d0a[_0x2f3d88(0x17d)]],_0x30a90e['keyFile']=this['credentialsPath'];const _0x246963=await google[_0x2f3d88(0x1c5)][_0x2f3d88(0x241)](_0x30a90e),_0x4d9215={};_0x4d9215[_0x2f3d88(0x20c)]=[_0x267d0a[_0x2f3d88(0x212)],_0x267d0a[_0x2f3d88(0x2f8)],_0x267d0a[_0x2f3d88(0x207)],_0x267d0a['caPye'],_0x267d0a[_0x2f3d88(0x22e)],_0x267d0a[_0x2f3d88(0x2b0)],_0x267d0a[_0x2f3d88(0x23c)],_0x267d0a[_0x2f3d88(0x2b2)],_0x267d0a[_0x2f3d88(0x23f)],_0x267d0a[_0x2f3d88(0x2cb)],_0x267d0a['zCVwv'],_0x267d0a[_0x2f3d88(0x2d7)],_0x267d0a[_0x2f3d88(0x1bf)],_0x267d0a['fkluE'],_0x267d0a['eTArx'],_0x267d0a[_0x2f3d88(0x175)],_0x267d0a[_0x2f3d88(0x28f)],_0x267d0a[_0x2f3d88(0x309)],_0x267d0a['GJOmY'],_0x267d0a[_0x2f3d88(0x1a0)],_0x267d0a[_0x2f3d88(0x24d)],_0x267d0a[_0x2f3d88(0x253)],_0x267d0a['bDzbi'],_0x267d0a[_0x2f3d88(0x1b3)]],_0x4d9215[_0x2f3d88(0x266)]=_0x267d0a['bMAEE'],await this[_0x2f3d88(0x296)][_0x2f3d88(0x250)][_0x2f3d88(0x29a)][_0x2f3d88(0x21a)]({'parent':_0x2f3d88(0x283)+this['projectId'],'requestBody':{'role':_0x4d9215,'roleId':this[_0x2f3d88(0x180)]},'auth':_0x246963});const _0x4da2d1={};_0x4da2d1[_0x2f3d88(0x2f1)]=_0x2f3d88(0x283)+this['projectId'],_0x4da2d1[_0x2f3d88(0x28a)]={},_0x4da2d1[_0x2f3d88(0x1c5)]=_0x246963,_0x4da2d1[_0x2f3d88(0x28a)][_0x2f3d88(0x1df)]=this[_0x2f3d88(0x282)];const _0x57976f=_0x4da2d1;await this['iamClient'][_0x2f3d88(0x197)]['serviceAccounts'][_0x2f3d88(0x21a)](_0x57976f);let _0xf7d779=await this['resourcemanagerClient']['getIamPolicy']({'resource':_0x2f3d88(0x283)+this[_0x2f3d88(0x261)]});_0xf7d779=_0xf7d779[0x0][_0x2f3d88(0x2e4)];const _0x5286b3={};_0x5286b3[_0x2f3d88(0x2fb)]=_0x2f3d88(0x283)+this[_0x2f3d88(0x261)]+'/roles/'+this[_0x2f3d88(0x180)],_0x5286b3['members']=[_0x2f3d88(0x2e0)+this['serviceAccountName']+'@'+this[_0x2f3d88(0x261)]+_0x2f3d88(0x227)],_0xf7d779[_0x2f3d88(0x265)](_0x5286b3);const _0x36b629={};_0x36b629[_0x2f3d88(0x2e4)]=_0xf7d779,await this['resourcemanagerClient'][_0x2f3d88(0x28b)]({'resource':'projects/'+this[_0x2f3d88(0x261)],'policy':_0x36b629}),logger[_0x2f3d88(0x311)](_0x267d0a[_0x2f3d88(0x27e)]);}async['setupNewCluster'](_0x47372b='default',_0x1e1a84=[a3_0x1a227b(0x211)]){const _0x240932=a3_0x1a227b,_0x381ac2={};_0x381ac2[_0x240932(0x232)]=function(_0x2bebff,_0x535e18){return _0x2bebff===_0x535e18;},_0x381ac2['dVsje']=_0x240932(0x211),_0x381ac2['NWMTJ']=_0x240932(0x2c5),_0x381ac2[_0x240932(0x26e)]=_0x240932(0x1c7),_0x381ac2[_0x240932(0x301)]=function(_0x5651b1,_0x16e941){return _0x5651b1!==_0x16e941;},_0x381ac2[_0x240932(0x190)]=_0x240932(0x195),_0x381ac2[_0x240932(0x2d8)]=_0x240932(0x2dc),_0x381ac2[_0x240932(0x1d5)]='dQgoE',_0x381ac2['flZYd']=_0x240932(0x2b4);const _0x46bfd4=_0x381ac2,_0x32fcf6={};_0x32fcf6[_0x240932(0x262)]=WS_EVENTS[_0x240932(0x1fc)],_0x32fcf6['message']=_0x46bfd4[_0x240932(0x18d)],this[_0x240932(0x2bd)][_0x240932(0x2c8)](this[_0x240932(0x20b)],_0x32fcf6),logger[_0x240932(0x311)](_0x46bfd4[_0x240932(0x26e)]);if(!_0x47372b){if(_0x46bfd4[_0x240932(0x301)](_0x46bfd4[_0x240932(0x190)],_0x46bfd4[_0x240932(0x2d8)]))_0x47372b=_0x46bfd4[_0x240932(0x1f6)];else{if(_0x46bfd4[_0x240932(0x232)](_0x390776?.[_0x240932(0x2f1)],'projects/'+this[_0x240932(0x261)]+_0x240932(0x267)+this[_0x240932(0x282)]+'@'+this[_0x240932(0x261)]+_0x240932(0x227)))return!![];}}return(!_0x1e1a84||_0x46bfd4['GhIRk'](_0x1e1a84[_0x240932(0x1dd)],0x0))&&(_0x46bfd4[_0x240932(0x301)](_0x46bfd4[_0x240932(0x1d5)],_0x46bfd4[_0x240932(0x1fe)])?_0x1e1a84=[_0x46bfd4[_0x240932(0x1f6)]]:_0x17025f=[_0x46bfd4[_0x240932(0x1f6)]]),await this[_0x240932(0x1a2)](),await this['createCluster'](_0x47372b,_0x1e1a84),await this['updateWindowsNodeGroup'](),[_0x47372b,_0x1e1a84];}async[a3_0x1a227b(0x2cc)](_0x2c7392=a3_0x1a227b(0x211),_0x2135fa=['default']){const _0x3c9fbd=a3_0x1a227b,_0xbde2ef={};_0xbde2ef[_0x3c9fbd(0x22f)]=function(_0x9b25b8,_0x3cb044){return _0x9b25b8!==_0x3cb044;},_0xbde2ef[_0x3c9fbd(0x2be)]=function(_0x46378c,_0x1b2291){return _0x46378c===_0x1b2291;},_0xbde2ef[_0x3c9fbd(0x1f2)]=_0x3c9fbd(0x20a),_0xbde2ef[_0x3c9fbd(0x28e)]=_0x3c9fbd(0x1c1),_0xbde2ef[_0x3c9fbd(0x2a7)]=_0x3c9fbd(0x20f),_0xbde2ef[_0x3c9fbd(0x254)]=_0x3c9fbd(0x1b7),_0xbde2ef[_0x3c9fbd(0x2b8)]=_0x3c9fbd(0x1d9),_0xbde2ef[_0x3c9fbd(0x29d)]=_0x3c9fbd(0x1f0),_0xbde2ef[_0x3c9fbd(0x216)]='regionmap.json',_0xbde2ef[_0x3c9fbd(0x22b)]='jRzHY',_0xbde2ef[_0x3c9fbd(0x193)]='TCauo',_0xbde2ef[_0x3c9fbd(0x2ac)]='REGULAR',_0xbde2ef[_0x3c9fbd(0x271)]=function(_0x4d3204,_0x4b3f13){return _0x4d3204*_0x4b3f13;},_0xbde2ef['wtLjh']=function(_0x4a1c31,_0x419eef){return _0x4a1c31!==_0x419eef;},_0xbde2ef['nlhjb']='cyijl',_0xbde2ef[_0x3c9fbd(0x192)]='RULQI',_0xbde2ef[_0x3c9fbd(0x1d6)]=_0x3c9fbd(0x2fd),_0xbde2ef[_0x3c9fbd(0x18a)]=_0x3c9fbd(0x26c),_0xbde2ef[_0x3c9fbd(0x306)]=_0x3c9fbd(0x22d);const _0x10ffb3=_0xbde2ef;try{if(_0x10ffb3[_0x3c9fbd(0x2be)](_0x10ffb3[_0x3c9fbd(0x1f2)],_0x10ffb3[_0x3c9fbd(0x1f2)])){logger['info'](_0x10ffb3['spnsd']);let _0x53bf4e=await fs['readFileAsync'](path['join'](__dirname,'..',_0x10ffb3[_0x3c9fbd(0x2a7)],_0x10ffb3[_0x3c9fbd(0x254)],_0x10ffb3[_0x3c9fbd(0x2b8)]),_0x10ffb3[_0x3c9fbd(0x29d)]);_0x53bf4e=JSON['parse'](_0x53bf4e);let _0x4e5f38=await fs[_0x3c9fbd(0x2a3)](path[_0x3c9fbd(0x1f7)](__dirname,'..',_0x10ffb3[_0x3c9fbd(0x2a7)],_0x10ffb3[_0x3c9fbd(0x254)],_0x10ffb3[_0x3c9fbd(0x216)]),_0x10ffb3['JjLdx']);_0x4e5f38=JSON[_0x3c9fbd(0x2f7)](_0x4e5f38);const _0x3fa705=global_registry[_0x3c9fbd(0x244)];_0x53bf4e[_0x3c9fbd(0x2f1)]=this['clusterName'],_0x53bf4e[_0x3c9fbd(0x30a)][0x0]['config']['machineType']=global_registry[_0x3c9fbd(0x2d6)],_0x53bf4e[_0x3c9fbd(0x30a)][0x1][_0x3c9fbd(0x215)][_0x3c9fbd(0x173)]=global_registry['instanceType'],_0x53bf4e[_0x3c9fbd(0x30a)][0x0][_0x3c9fbd(0x215)][_0x3c9fbd(0x1be)]=this['serviceAccountName']+'@'+this[_0x3c9fbd(0x261)]+_0x3c9fbd(0x227),_0x53bf4e[_0x3c9fbd(0x30a)][0x1][_0x3c9fbd(0x215)][_0x3c9fbd(0x1be)]=this[_0x3c9fbd(0x282)]+'@'+this[_0x3c9fbd(0x261)]+_0x3c9fbd(0x227),_0x53bf4e[_0x3c9fbd(0x30a)][0x0]['autoscaling'][_0x3c9fbd(0x171)]=global_registry['minNodes'],_0x53bf4e[_0x3c9fbd(0x30a)][0x1][_0x3c9fbd(0x1e1)][_0x3c9fbd(0x171)]=0x0,_0x53bf4e[_0x3c9fbd(0x30a)][0x0][_0x3c9fbd(0x23b)]['autoUpgrade']=_0x3fa705,_0x53bf4e['nodePools'][0x1][_0x3c9fbd(0x23b)]['autoUpgrade']=_0x3fa705,_0x53bf4e[_0x3c9fbd(0x30a)][0x0]['autoscaling']['maxNodeCount']=global_registry[_0x3c9fbd(0x214)],_0x53bf4e[_0x3c9fbd(0x30a)][0x1][_0x3c9fbd(0x1e1)][_0x3c9fbd(0x316)]=global_registry[_0x3c9fbd(0x214)],_0x53bf4e[_0x3c9fbd(0x257)]=global_registry['clusterRegion'],_0x53bf4e['locations']=[_0x4e5f38[global_registry['clusterRegion']][0x0]],_0x53bf4e[_0x3c9fbd(0x229)]=_0x3c9fbd(0x283)+this['projectId']+_0x3c9fbd(0x29b)+_0x2c7392,_0x53bf4e[_0x3c9fbd(0x1d7)]='projects/'+this[_0x3c9fbd(0x261)]+_0x3c9fbd(0x1d3)+global_registry[_0x3c9fbd(0x2b6)]+_0x3c9fbd(0x2d5)+_0x2135fa[0x0];if(_0x3fa705){if(_0x10ffb3['QwVEs'](_0x10ffb3['jLepK'],_0x10ffb3[_0x3c9fbd(0x193)])){const _0xcb0af2={};_0xcb0af2[_0x3c9fbd(0x258)]=_0x10ffb3['JtCHO'],_0x53bf4e['releaseChannel']=_0xcb0af2;}else _0x59c9e5=_0x14cc45[_0x3c9fbd(0x1c3)](_0xae021b[_0x5a110a['clusterRegion']]);}const _0xf0c218=await this[_0x3c9fbd(0x1f3)][_0x3c9fbd(0x2cc)]({'cluster':_0x53bf4e,'parent':_0x3c9fbd(0x283)+this[_0x3c9fbd(0x261)]+_0x3c9fbd(0x2cd)+global_registry[_0x3c9fbd(0x2b6)]});await this['webSocketUtils'][_0x3c9fbd(0x1ff)](_0x10ffb3[_0x3c9fbd(0x271)](_0x10ffb3[_0x3c9fbd(0x271)](0x7,0x3c),0x3e8));}else return _0x10ffb3[_0x3c9fbd(0x22f)](_0x238847['clusterRegion'],_0x110326[0x0])&&(_0x44ed15[_0x3c9fbd(0x2b6)]=_0x4d5491[0x0],this[_0x3c9fbd(0x203)]()),!![];}catch(_0x4ab894){if(_0x10ffb3[_0x3c9fbd(0x1da)](_0x10ffb3[_0x3c9fbd(0x202)],_0x10ffb3['nlhjb']))return!![];else{const _0x1340df=await this[_0x3c9fbd(0x18b)]();if(_0x1340df){if(_0x10ffb3[_0x3c9fbd(0x22f)](_0x10ffb3[_0x3c9fbd(0x192)],_0x10ffb3['XlgHb']))return[!![],_0x34cab2];else logger[_0x3c9fbd(0x311)](_0x10ffb3[_0x3c9fbd(0x1d6)],_0x4ab894[_0x3c9fbd(0x25f)]),await this[_0x3c9fbd(0x278)]();}else{if(_0x10ffb3[_0x3c9fbd(0x2be)](_0x10ffb3[_0x3c9fbd(0x18a)],_0x10ffb3['FaIHy']))logger[_0x3c9fbd(0x311)](_0x10ffb3[_0x3c9fbd(0x306)]);else for(const _0x3dd28a of _0x12a93d[_0x3c9fbd(0x2ef)][_0x3c9fbd(0x1ad)]){if(_0x10ffb3['CEhFT'](_0x3dd28a?.[_0x3c9fbd(0x2f1)],_0x3c9fbd(0x283)+this[_0x3c9fbd(0x261)]+_0x3c9fbd(0x267)+this[_0x3c9fbd(0x282)]+'@'+this[_0x3c9fbd(0x261)]+_0x3c9fbd(0x227)))return!![];}}throw _0x4ab894;}}}async[a3_0x1a227b(0x27f)](_0x57b7b5,_0x477457,_0x1d645c,_0x216f0b,_0x30ee4b){}async[a3_0x1a227b(0x302)](){const _0x2a4349=a3_0x1a227b;cp[_0x2a4349(0x1ac)](_0x2a4349(0x185)+this['clusterName']+_0x2a4349(0x2ce)+global_registry['clusterRegion']+_0x2a4349(0x20e));}async[a3_0x1a227b(0x278)](_0x263c07,_0x3ef03d){const _0x36d7a6=a3_0x1a227b,_0x1b84bb={'BTwur':_0x36d7a6(0x211),'ylvnD':function(_0x322330,_0x4568aa){return _0x322330===_0x4568aa;},'yqadJ':_0x36d7a6(0x1c6),'EEqjp':function(_0x2d82b5,_0x396cc4){return _0x2d82b5(_0x396cc4);},'ovExc':_0x36d7a6(0x2df),'NYRbw':_0x36d7a6(0x247),'GWxGc':function(_0x1fa00d,_0x361d4e){return _0x1fa00d===_0x361d4e;},'lqZmS':'QILuA','vuDsL':'DZbge','PiZZe':'Cluster\x20deletion\x20completed','KdnyE':function(_0x4aba81,_0x2b4bf8){return _0x4aba81!==_0x2b4bf8;},'gfeoV':_0x36d7a6(0x2d3),'mAamv':_0x36d7a6(0x25b)};try{if(_0x1b84bb[_0x36d7a6(0x292)](_0x1b84bb[_0x36d7a6(0x291)],_0x1b84bb['yqadJ'])){await _0x1b84bb[_0x36d7a6(0x2ad)](deleteAgent,_0x263c07),await _0x1b84bb[_0x36d7a6(0x2ad)](deleteRoutingDeps,_0x263c07),logger['info'](_0x36d7a6(0x29f)+this[_0x36d7a6(0x19d)]);const _0x2874e0=await this[_0x36d7a6(0x1f3)][_0x36d7a6(0x278)]({'name':_0x36d7a6(0x283)+this[_0x36d7a6(0x261)]+'/locations/'+global_registry[_0x36d7a6(0x2b6)]+_0x36d7a6(0x305)+this[_0x36d7a6(0x19d)]});if(_0x1b84bb[_0x36d7a6(0x292)](_0x2874e0[0x0]?.['status'],_0x1b84bb['ovExc'])||_0x1b84bb[_0x36d7a6(0x292)](_0x2874e0[0x0]?.[_0x36d7a6(0x1bb)],_0x1b84bb[_0x36d7a6(0x264)])){if(_0x1b84bb[_0x36d7a6(0x1ed)](_0x1b84bb[_0x36d7a6(0x231)],_0x1b84bb[_0x36d7a6(0x191)]))this[_0x36d7a6(0x2a1)](this['rws']);else return!![];}logger[_0x36d7a6(0x311)](_0x1b84bb[_0x36d7a6(0x28d)]);}else _0x1c3d6a=_0x1b84bb[_0x36d7a6(0x248)];}catch(_0x3b4a22){if(_0x1b84bb[_0x36d7a6(0x20d)](_0x1b84bb[_0x36d7a6(0x259)],_0x1b84bb['gfeoV']))return!![];else{logger['info'](_0x1b84bb[_0x36d7a6(0x270)]);throw _0x3b4a22;}}}async['isVPCPresent'](_0x441ddf){const _0x5022e7=a3_0x1a227b,_0x2c4f06={};_0x2c4f06[_0x5022e7(0x251)]=function(_0x379b25,_0x50b461){return _0x379b25!==_0x50b461;},_0x2c4f06[_0x5022e7(0x313)]=_0x5022e7(0x28c),_0x2c4f06[_0x5022e7(0x21b)]=function(_0x1c8f04,_0x10c9c7){return _0x1c8f04>_0x10c9c7;},_0x2c4f06[_0x5022e7(0x2c2)]=function(_0x3b5152,_0x14ddd2){return _0x3b5152===_0x14ddd2;},_0x2c4f06[_0x5022e7(0x315)]=function(_0x11213b,_0x130aec){return _0x11213b===_0x130aec;},_0x2c4f06[_0x5022e7(0x2c0)]=_0x5022e7(0x25a),_0x2c4f06[_0x5022e7(0x2ee)]=_0x5022e7(0x272);const _0x50a7f0=_0x2c4f06;try{if(_0x50a7f0['fLMep'](_0x50a7f0['qrvLx'],_0x50a7f0[_0x5022e7(0x313)]))_0x3f8547['error'](_0x5022e7(0x2eb)+_0x2f6be6+'\x20:\x20'+_0x1bb8b1[_0x5022e7(0x25f)]),_0x97e0fe[_0x5022e7(0x2ef)]=_0x5022e7(0x1d1)+_0x22a65f,_0xd5bee1['error']=_0x589d89;else{const _0x1013bc=await this['networkClient']['get']({'project':this[_0x5022e7(0x261)],'network':_0x441ddf});if(_0x50a7f0[_0x5022e7(0x21b)](_0x1013bc[_0x5022e7(0x1dd)],0x0)&&_0x50a7f0[_0x5022e7(0x2c2)](_0x1013bc[0x0][_0x5022e7(0x2f1)],_0x441ddf))return _0x50a7f0[_0x5022e7(0x315)](_0x50a7f0[_0x5022e7(0x2c0)],_0x50a7f0[_0x5022e7(0x2c0)])?!![]:![];}}catch(_0x47a686){if(_0x50a7f0[_0x5022e7(0x2c2)](_0x50a7f0[_0x5022e7(0x2ee)],_0x50a7f0[_0x5022e7(0x2ee)]))return![];else _0x386ebe[_0x5022e7(0x233)](_0x5b8fb8);}return![];}async[a3_0x1a227b(0x1fd)](_0x26771d,_0xf79849){const _0xb405c=a3_0x1a227b,_0x598871={};_0x598871['KMcBv']=_0xb405c(0x25b),_0x598871[_0xb405c(0x206)]=_0xb405c(0x300),_0x598871['gEgzW']=function(_0x3ebdd9,_0x3851a7){return _0x3ebdd9===_0x3851a7;},_0x598871[_0xb405c(0x200)]=_0xb405c(0x312),_0x598871[_0xb405c(0x1a9)]=function(_0x16ebca,_0x512d56){return _0x16ebca===_0x512d56;},_0x598871[_0xb405c(0x2d2)]=_0xb405c(0x225),_0x598871[_0xb405c(0x2c3)]=function(_0x55022c,_0xad6317){return _0x55022c!==_0xad6317;},_0x598871[_0xb405c(0x1aa)]='pSpPD',_0x598871[_0xb405c(0x314)]=function(_0x422118,_0x18d892){return _0x422118!==_0x18d892;},_0x598871[_0xb405c(0x182)]=_0xb405c(0x22a),_0x598871[_0xb405c(0x2c1)]=_0xb405c(0x1ba);const _0x3bd511=_0x598871;try{if(_0x3bd511['gEgzW'](_0x3bd511['PtbPo'],_0x3bd511[_0xb405c(0x200)])){const _0xef3de4=await this['networkClient'][_0xb405c(0x17e)]({'project':this['projectId'],'network':_0xf79849});for(const _0x1c4593 of _0xef3de4[0x0][_0xb405c(0x1ca)]){if(_0x3bd511[_0xb405c(0x1a9)](_0x3bd511[_0xb405c(0x2d2)],_0x3bd511[_0xb405c(0x2d2)])){const _0x594cfd=_0xb405c(0x217)+this[_0xb405c(0x261)]+_0xb405c(0x1d3)+global_registry[_0xb405c(0x2b6)]+_0xb405c(0x2d5)+_0x26771d[0x0];if(_0x3bd511['ccOWF'](_0x594cfd,_0x1c4593)){if(_0x3bd511['jhoDA'](_0x3bd511[_0xb405c(0x1aa)],_0x3bd511[_0xb405c(0x1aa)]))_0x4e45ba[_0xb405c(0x295)](_0x52ddb1);else return[!![],_0x26771d];}}else return![];}}else{_0xbce439[_0xb405c(0x311)](_0x3bd511[_0xb405c(0x26f)]);throw _0x478513;}}catch(_0x10993a){if(_0x3bd511[_0xb405c(0x314)](_0x3bd511['MnzVF'],_0x3bd511[_0xb405c(0x2c1)]))return logger['error'](_0xb405c(0x21f)+_0x26771d+_0xb405c(0x1b2)+_0x10993a),[![],[]];else{_0x3b3e56[_0xb405c(0x311)](_0x3bd511[_0xb405c(0x206)]);return;}}return[![],[]];}async[a3_0x1a227b(0x2a1)](){const _0x3343d1=a3_0x1a227b,_0x1f9da7={};_0x1f9da7['AtAKB']=_0x3343d1(0x226),_0x1f9da7['sGGWX']=function(_0x33f62d,_0x886aae){return _0x33f62d===_0x886aae;},_0x1f9da7[_0x3343d1(0x2e6)]='utAJn';const _0x3037a4=_0x1f9da7,_0x2b7680=await this['networkClient'][_0x3343d1(0x1d4)]({'project':this[_0x3343d1(0x261)]}),_0x3124ad={};_0x3124ad[_0x3343d1(0x24b)]=global_registry[_0x3343d1(0x280)],_0x3124ad['accessKey']=global_registry[_0x3343d1(0x2f0)],_0x3124ad['cloudProvider']=GCP,_0x3124ad[_0x3343d1(0x1ec)]=[];const _0x273e59=_0x3124ad;for(const _0x47c845 of _0x2b7680){if(_0x3037a4[_0x3343d1(0x2d4)](_0x3037a4['PrWlR'],_0x3037a4[_0x3343d1(0x2e6)]))_0x273e59[_0x3343d1(0x1ec)][_0x3343d1(0x265)](_0x47c845);else{const _0x200537={};_0x200537[_0x3343d1(0x258)]=_0x3037a4[_0x3343d1(0x210)],_0x18ab73['releaseChannel']=_0x200537;}}const _0x1f1d29={};_0x1f1d29[_0x3343d1(0x262)]=WS_EVENTS['RESOURCES'],_0x1f1d29[_0x3343d1(0x290)]=_0x273e59,this[_0x3343d1(0x2bd)][_0x3343d1(0x2c8)](this[_0x3343d1(0x20b)],_0x1f1d29);}async[a3_0x1a227b(0x203)](){const _0x1a9eaf=a3_0x1a227b,_0x444c76={'IiswF':function(_0x6154af,_0x53a044,_0x8f693a){return _0x6154af(_0x53a044,_0x8f693a);},'zYLkX':_0x1a9eaf(0x239),'SfOEG':_0x1a9eaf(0x2f2),'UNUgH':function(_0x20df4b,_0x329469,_0x41244f){return _0x20df4b(_0x329469,_0x41244f);}},_0x29feed=_0x1a9eaf(0x174)+AG_API_URL+'/packages/cli/update-cluster-region',_0x21ee06={};_0x21ee06[_0x1a9eaf(0x1ce)]=global_registry['gridProfileId'];const _0x4b9204={};_0x4b9204[_0x1a9eaf(0x1a3)]=global_registry[_0x1a9eaf(0x2b6)];const _0x38cba0={'searchParams':_0x21ee06,'json':_0x4b9204,'headers':_0x444c76[_0x1a9eaf(0x25c)](getAuthHeader,global_registry[_0x1a9eaf(0x280)],global_registry[_0x1a9eaf(0x2f0)]),'method':_0x444c76[_0x1a9eaf(0x16f)],'responseType':_0x444c76[_0x1a9eaf(0x1b0)],'throwHttpErrors':![]},_0x14458e=await _0x444c76[_0x1a9eaf(0x2d9)](got,_0x29feed,_0x38cba0);}async[a3_0x1a227b(0x172)](){const _0x1cce6a=a3_0x1a227b,_0x28736d={'DqNFl':function(_0x4951fc,_0x2cecdb){return _0x4951fc(_0x2cecdb);},'wnYpo':_0x1cce6a(0x236),'Icwhk':'Intercepted','IShlH':_0x1cce6a(0x2ea)},_0x2aea21={};_0x2aea21['status']=![],_0x2aea21[_0x1cce6a(0x268)]=null,_0x2aea21[_0x1cce6a(0x2ef)]='';const _0x45a2a8=_0x2aea21;try{const _0x4cfebc=await _0x28736d[_0x1cce6a(0x243)](runCommand,_0x28736d[_0x1cce6a(0x1eb)]);_0x4cfebc[_0x1cce6a(0x176)](_0x28736d[_0x1cce6a(0x2b5)])?logger[_0x1cce6a(0x233)](_0x4cfebc):logger[_0x1cce6a(0x295)](_0x4cfebc),_0x45a2a8[_0x1cce6a(0x1bb)]=!![],_0x45a2a8[_0x1cce6a(0x2ef)]=_0x28736d[_0x1cce6a(0x198)];}catch(_0x3138e1){logger[_0x1cce6a(0x268)]('error\x20:\x20'+_0x3138e1+_0x1cce6a(0x2ec)+_0x3138e1['stack']),_0x45a2a8[_0x1cce6a(0x2ef)]=_0x1cce6a(0x1d1)+_0x3138e1,_0x45a2a8[_0x1cce6a(0x268)]=_0x3138e1;}return _0x45a2a8;}async['checkAccess'](){const _0x1f5e3a=a3_0x1a227b,_0x2a5d1a={};_0x2a5d1a['KhsxR']='allowed',_0x2a5d1a[_0x1f5e3a(0x246)]=_0x1f5e3a(0x25e);const _0x600d40=_0x2a5d1a,_0x198ce6={};_0x198ce6[_0x1f5e3a(0x1bb)]=![],_0x198ce6[_0x1f5e3a(0x268)]=null,_0x198ce6[_0x1f5e3a(0x2ef)]='';const _0x51ab34=_0x198ce6;try{let _0x1b260d='';const _0x1aaa47=_0x1f5e3a(0x283)+this[_0x1f5e3a(0x261)],[_0x32735e]=await this[_0x1f5e3a(0x19a)][_0x1f5e3a(0x1c2)]({'resource':_0x1aaa47,'permissions':Object[_0x1f5e3a(0x1d8)](PERMISSIONS)});_0x51ab34['status']=!![],logger[_0x1f5e3a(0x295)](_0x1f5e3a(0x1e9)+_0x1aaa47+':\x20'+JSON[_0x1f5e3a(0x213)](_0x32735e)),Object[_0x1f5e3a(0x184)](PERMISSIONS)['forEach'](([_0x42dd51,_0x20c5f3])=>{const _0x409c30=_0x1f5e3a,_0x357154=_0x32735e[_0x409c30(0x275)][_0x409c30(0x1e4)](_0x42dd51);_0x1b260d+='\x0a\x09'+_0x20c5f3+'\x20:\x20'+(_0x357154?_0x600d40[_0x409c30(0x2ff)]:_0x600d40[_0x409c30(0x246)]),!_0x357154&&(_0x51ab34['status']=![]);}),_0x51ab34[_0x1f5e3a(0x2ef)]=_0x1b260d;}catch(_0x410e0b){_0x51ab34[_0x1f5e3a(0x268)]=_0x410e0b;}return _0x51ab34;}}function a3_0x9c6d(){const _0x27c2d7=['rWMmE','vuDsL','XlgHb','HnLyt','storage.objects.create','RruKB','ABPFE','projects','IShlH','625562HEAraG','resourcemanagerClient','IqoCK','SRPwf','clusterName','YPCRr','TPnEI','uCLrU','ZrRdn','setupServiceAccount','newRegion','exec','exports','storage.objects.getIamPolicy','resourceLabels','apExm','ccOWF','hnPEQ','yugHs','execSync','accounts','regionmap.json','getUserInput','SfOEG','0|8|7|1|6|3|5|4|2','.\x20Error:\x20','aLXTs','rxHcb','getClusterInfo','gcloud\x20auth\x20login\x20--cred-file=','gcpresources','storage.buckets.listEffectiveTags','nHFdq','dmivu','status','writeFileSync','cloudProviderName','serviceAccount','eQwPQ','storage.buckets.listTagBindings','Creating\x20GKE\x20Cluster','testIamPermissions','concat','storage.buckets.delete','auth','cUSbI','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','749709OREHFK','checkServiceAccount','subnetworks','qXubx','QelTf','Oqixz','profileId','storage.objects.update','tsABz','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','EuSRd','/regions/','list','AmHgR','mBBiE','subnetwork','keys','gkecluster.json','wtLjh','AEucE','storage.objects.list','length','../config/logger','accountId','kVMKB','autoscaling','storage.multipartUploads.listParts','Psrnp','includes','ingress','Found\x20cluster\x20with\x20name\x20\x27','Rvtvf','rajlE','permissions\x20check\x20response\x20for\x20','storage.multipartUploads.create','wnYpo','vpcInfo','GWxGc','oXpOE','IDNRL','utf-8','fkluE','ixeCl','containerClient','https://www.googleapis.com/auth/cloud-platform','sDWFX','dVsje','join','252955sPSPBi','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','getGridHostname','storage.objects.delete','LOG','isSubnetsValid','flZYd','delay','PtbPo','scopes','nlhjb','updateClusterRegion','eTArx','gke_','lIAlM','VdGRM','child_process','parent','uWTLW','rws','includedPermissions','KdnyE','\x20--quiet\x20--user-output-enabled=false','templates','AtAKB','default','BRSBL','stringify','maxNodes','config','fXjmW','https://www.googleapis.com/compute/v1/projects/','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','aGSBp','create','qDnpV','AZLxB','../permissions/GCP.json','SgliL','Cannot\x20find\x20subnets\x20','oonQA','exit','ZjNZK','clusters','bDLgX','FUUpO','REGULAR','.iam.gserviceaccount.com','cloudProvider','network','QHoXB','jLepK','GJOmY','Cluster\x20creation\x20failed','EkRCe','QwVEs','XOjZI','lqZmS','GhIRk','warn','bMAEE','tOpUB','gcloud\x20--version','jCFfA','serviceAccounts','PUT','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','management','aMJHP','@google-cloud/container','split','lAcvE','ClusterManagerClient','getClient','rEMlH','DqNFl','clusterAutoUpgrade','storage.objects.setIamPolicy','HaHkd','DONE','BTwur','VIIFm','yzScC','username','storage.buckets.setIamPolicy','GchIB','../utils/userInput','WmTby','organizations','fLMep','sendResourceDataToHST','YDTIL','uLBYb','24ItsCLU','storage.buckets.getIamPolicy','location','channel','gfeoV','IvDsD','GKE\x20Cluster\x20deletion\x20failed','IiswF','WICvp','denied','stack','cCSTD','projectId','type','AoWZT','NYRbw','push','title','/serviceAccounts/','error','iam','../config/constants','dzOqi','nhWMq','SsrHM','SKAZS','KMcBv','mAamv','aoMPy','iLCYa','djsUy','got','permissions','log','browserstack','deleteCluster','HCnQX','104oLFKSQ','EXSfR','EgtTn','GQyEv','Xdxhh','setupHubHa','bstackUsername','94bOTksy','serviceAccountName','projects/','PFKMN','GoogleCloudProvider','storage.buckets.createTagBinding','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','VjgkY','credentialsPath','requestBody','setIamPolicy','aCSQw','PiZZe','spnsd','pFHhh','message','yqadJ','ylvnD','init','WTqzj','debug','iamClient','NetworksClient','fmYGz','XrsfW','roles','/global/networks/','managedby','JjLdx','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Deleting\x20the\x20cluster\x20','vCZsz','sendGCPInfoToHST','skDCP','readFileAsync','duHPR','ZZXuz','DdMpm','vSBUu','RmiQG','imgFW','bFpCW','zWapO','JtCHO','EEqjp','storage.buckets.get','../utils/utilityMethods','ecRFW','zCVwv','Krjiu','wGkfw','pWKxN','Icwhk','clusterRegion','20znTHPz','XZtZZ','gyzVm','rytpK','cWnYW','Creating\x20service\x20account','webSocketUtils','CEhFT','bDzbi','ZwIHu','zeOuC','nMfva','jhoDA','clusterCaCertificate','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','EPgkm','storage.buckets.deleteTagBinding','sendEventToBackend','crtSK','qrlmk','bQbOp','createCluster','/locations/','\x20--windows-os-version=ltsc2022\x20--region\x20','toLowerCase','OThzX','yzsRR','LlAYZ','KWJxc','sGGWX','/subnetworks/','instanceType','qZlml','NAynU','UNUgH','UoFOG','isBrowserstackCluster','VUbEV','storage.objects.get','keyFile','RUNNING','serviceAccount:','594543OZcSZL','storage.multipartUploads.list','qapjE','bindings','HhpwM','PrWlR','UEzVD','AQVVr','YluYn','cli\x20tool\x20is\x20installed','error\x20:\x20','\x20:\x20','storage.buckets.create','USuwQ','data','bstackAccesskey','name','json','setCachedCredsInRegistry','MLKXB','EmjmN','CwQVg','parse','cbmmx','caPye','DxApx','role','fwTVN','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','bhtNM','KhsxR','Service\x20account\x20already\x20exists,\x20skipping','mtCqr','updateWindowsNodeGroup','getCluster','toString','/clusters/','TwIYg','NaTRQ','182732leyWsW','fzeXg','nodePools','../utils/gridComponents','gcp_credentials.json','WXkxN','getKubeConfigData','endpoint','180LLjZhh','info','fJAKY','qrvLx','uZiQN','BLOon','maxNodeCount','qKYvj','masterAuth','zYLkX','QjaiZ','minNodeCount','isCliToolInstalled','machineType','https://','NmMpZ','startsWith','project_id','DLktD','16655136PskgEs','alfFr','wvBxK','9419HfwcBZ','YnMer','get','vrjiZ','customRoleName','kKSzt','MnzVF','storage.buckets.list','entries','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','PkZnb','WNHKX','wdjBU','DUDGn','FaIHy','isClusterPresent','xmvNa','NWMTJ','replace','gTaXz'];a3_0x9c6d=function(){return _0x27c2d7;};return a3_0x9c6d();}const a3_0x250dd0={};a3_0x250dd0[a3_0x1a227b(0x285)]=GoogleCloudProvider,module[a3_0x1a227b(0x1a5)]=a3_0x250dd0;
1
+ const a3_0x400017=a3_0x1078;(function(_0x2ac539,_0x11d844){const _0x4907dd=a3_0x1078,_0x17b4cf=_0x2ac539();while(!![]){try{const _0x398675=parseInt(_0x4907dd(0x34d))/0x1+parseInt(_0x4907dd(0x22a))/0x2+parseInt(_0x4907dd(0x307))/0x3*(parseInt(_0x4907dd(0x394))/0x4)+-parseInt(_0x4907dd(0x284))/0x5*(parseInt(_0x4907dd(0x2f7))/0x6)+parseInt(_0x4907dd(0x1e2))/0x7*(-parseInt(_0x4907dd(0x2f5))/0x8)+parseInt(_0x4907dd(0x314))/0x9+parseInt(_0x4907dd(0x32b))/0xa;if(_0x398675===_0x11d844)break;else _0x17b4cf['push'](_0x17b4cf['shift']());}catch(_0x45d3f3){_0x17b4cf['push'](_0x17b4cf['shift']());}}}(a3_0x49a9,0x43861));const fs=require('fs'),path=require(a3_0x400017(0x351)),got=require(a3_0x400017(0x1e1)),util=require('util'),cp=require(a3_0x400017(0x1e0)),{google}=require(a3_0x400017(0x299)),compute=require(a3_0x400017(0x2be)),container=require(a3_0x400017(0x2b7)),{ProjectsClient}=require(a3_0x400017(0x2c4))['v3'],{logger}=require(a3_0x400017(0x238)),{CloudProvider}=require(a3_0x400017(0x1fd)),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x400017(0x321)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x400017(0x2ae)),PERMISSIONS=require(a3_0x400017(0x354));class GoogleCloudProvider extends CloudProvider{constructor(_0x49ee79,_0x1ad15d,_0x1ca105,_0x50b88f){const _0xbf842b=a3_0x400017,_0x3bdc83={};_0x3bdc83[_0xbf842b(0x260)]='5|0|7|3|4|8|1|2|6',_0x3bdc83[_0xbf842b(0x2b0)]=_0xbf842b(0x255),_0x3bdc83[_0xbf842b(0x343)]=_0xbf842b(0x2d5);const _0x58dd3f=_0x3bdc83,_0x53881d=_0x58dd3f['Xawlr']['split']('|');let _0x422a23=0x0;while(!![]){switch(_0x53881d[_0x422a23++]){case'0':this['containerClient']=null;continue;case'1':this['projectId']=null;continue;case'2':this[_0xbf842b(0x356)]=_0x58dd3f[_0xbf842b(0x2b0)];continue;case'3':this[_0xbf842b(0x28b)]=null;continue;case'4':this[_0xbf842b(0x300)]=null;continue;case'5':super(GCP,_0x49ee79,_0x1ad15d,_0x1ca105,_0x50b88f);continue;case'6':this[_0xbf842b(0x237)]=_0x58dd3f[_0xbf842b(0x343)];continue;case'7':this['networkClient']=null;continue;case'8':this[_0xbf842b(0x2dd)]=null;continue;}break;}}async['sendResourceDataToHST'](){this['sendGCPInfoToHST'](this['rws']);}async[a3_0x400017(0x2df)](){const _0xe79095=a3_0x400017;await super[_0xe79095(0x2df)]();const _0x2ad3f1=this[_0xe79095(0x2dd)],_0x402512={};_0x402512[_0xe79095(0x363)]=_0x2ad3f1,this[_0xe79095(0x217)]=new container['v1'][(_0xe79095(0x347))](_0x402512);const _0x2ea813={};_0x2ea813[_0xe79095(0x363)]=_0x2ad3f1,this['networkClient']=new compute['v1']['NetworksClient'](_0x2ea813);const _0x4c74b4={};return _0x4c74b4[_0xe79095(0x363)]=_0x2ad3f1,this['resourcemanagerClient']=new ProjectsClient(_0x4c74b4),this['iamClient']=google[_0xe79095(0x2f3)]('v1'),this;}async[a3_0x400017(0x376)](_0x22ab77,_0x5203b7){const _0x3a3036=a3_0x400017,_0x271450={'RtDex':function(_0x4edafc,_0x54e815){return _0x4edafc(_0x54e815);},'zxQtT':_0x3a3036(0x360),'rZGZa':function(_0x488880){return _0x488880();},'kciWb':_0x3a3036(0x1eb)},_0x40aa2b=await _0x271450[_0x3a3036(0x278)](_0x22ab77,_0x271450[_0x3a3036(0x30e)]);let _0x1dd71e=await fs[_0x3a3036(0x282)](_0x40aa2b);_0x1dd71e=_0x1dd71e[_0x3a3036(0x2cb)]();const _0xf8e782=_0x271450[_0x3a3036(0x2f1)](getDirForConfig),_0x2b3924=path[_0x3a3036(0x1ec)](_0xf8e782,_0x271450[_0x3a3036(0x34e)]);fs['writeFileSync'](_0x2b3924,_0x1dd71e),this['credentialsPath']=_0x2b3924;const _0x258529={};return _0x258529[_0x3a3036(0x363)]=_0x2b3924,_0x5203b7[_0x3a3036(0x298)][GCP]=_0x258529,_0x1dd71e=JSON[_0x3a3036(0x24c)](_0x1dd71e),this['projectId']=_0x1dd71e[_0x3a3036(0x2de)],_0x5203b7;}async[a3_0x400017(0x1f7)](_0x44ed86){const _0x3bc2cf=a3_0x400017;this[_0x3bc2cf(0x2dd)]=_0x44ed86[this[_0x3bc2cf(0x31b)]][_0x3bc2cf(0x363)];let _0x3a093c=await fs[_0x3bc2cf(0x282)](this[_0x3bc2cf(0x2dd)]);_0x3a093c=JSON[_0x3bc2cf(0x24c)](_0x3a093c),this[_0x3bc2cf(0x2b8)]=_0x3a093c[_0x3bc2cf(0x2de)];}[a3_0x400017(0x23d)](_0x241471){const _0xaa288a=a3_0x400017;return _0x241471[_0xaa288a(0x36a)]['loadBalancer'][_0xaa288a(0x361)][0x0]['ip'];}async[a3_0x400017(0x381)](){const _0x3f5687=a3_0x400017,_0x272a39={};_0x272a39[_0x3f5687(0x2b3)]=_0x3f5687(0x265),_0x272a39[_0x3f5687(0x297)]=function(_0x4c0dfd,_0x54966a){return _0x4c0dfd===_0x54966a;},_0x272a39[_0x3f5687(0x331)]=_0x3f5687(0x2d1),_0x272a39['lUUuy']=_0x3f5687(0x2cc),_0x272a39['pKGwY']=function(_0x1b48cb,_0x3ec0ce){return _0x1b48cb===_0x3ec0ce;},_0x272a39[_0x3f5687(0x1f6)]=_0x3f5687(0x35b),_0x272a39[_0x3f5687(0x2e0)]=_0x3f5687(0x247),_0x272a39[_0x3f5687(0x24b)]=function(_0x5d2ece,_0x19c672){return _0x5d2ece===_0x19c672;},_0x272a39['RxcUU']=_0x3f5687(0x2e9),_0x272a39['ayhkg']=_0x3f5687(0x2a2);const _0xca2b67=_0x272a39;try{if(_0xca2b67[_0x3f5687(0x297)](_0xca2b67[_0x3f5687(0x331)],_0xca2b67[_0x3f5687(0x326)]))return![];else{const _0x358836=await this[_0x3f5687(0x203)]();if(_0x358836[0x0]?.[_0x3f5687(0x242)]?.[_0x3f5687(0x2a1)]){if(_0xca2b67['pKGwY'](_0xca2b67[_0x3f5687(0x1f6)],_0xca2b67['fYfjH'])){const _0x1c4bf2=_0x358836[0x0]?.[_0x3f5687(0x242)]?.['managedby'];return _0x1c4bf2&&_0xca2b67['pKGwY'](_0x1c4bf2['toLowerCase'](),_0xca2b67[_0x3f5687(0x2e0)]);}else _0x237efd[_0x3f5687(0x2f9)](_0xca2b67[_0x3f5687(0x2b3)]);}}}catch(_0x47ea9b){if(_0xca2b67[_0x3f5687(0x24b)](_0xca2b67[_0x3f5687(0x2e7)],_0xca2b67[_0x3f5687(0x30b)]))_0x19562f[_0x3f5687(0x36a)]=![];else return![];}return![];}async[a3_0x400017(0x2a4)](){const _0x12d317=a3_0x400017,_0x207fb4={'qmEKT':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Xqyra':function(_0x4bf44d,_0x230a30){return _0x4bf44d-_0x230a30;},'ygsWJ':function(_0x275825,_0x517fd6){return _0x275825===_0x517fd6;},'WaGhp':_0x12d317(0x259),'OFIKf':_0x12d317(0x2ec),'oIuPQ':'regionmap.json','ajcZf':_0x12d317(0x2a6),'qvLvb':function(_0x1d5866,_0x1ff3ce){return _0x1d5866!==_0x1ff3ce;},'efEBM':_0x12d317(0x2bd),'iXZDA':_0x12d317(0x37c),'WwFnc':function(_0x5114cc,_0x1320a6){return _0x5114cc===_0x1320a6;},'FGoTO':_0x12d317(0x272),'cdUsK':_0x12d317(0x2e4),'nVySJ':function(_0x2c74c6,_0x110aad){return _0x2c74c6===_0x110aad;},'lPvPO':function(_0x138f36,_0x2ef666){return _0x138f36===_0x2ef666;},'cLrMf':_0x12d317(0x2eb),'lGOEc':function(_0x416cd8,_0xd0a7cb){return _0x416cd8===_0xd0a7cb;},'SoZZe':_0x12d317(0x20d),'LFHGH':_0x12d317(0x2bb),'nctwK':function(_0x5a10b1,_0x34a1d2){return _0x5a10b1!==_0x34a1d2;},'PDxId':function(_0x39eb64,_0x4f4852){return _0x39eb64===_0x4f4852;},'dIucH':_0x12d317(0x27a),'BtXnJ':function(_0x220732,_0x3afdeb){return _0x220732>_0x3afdeb;},'LMYdz':function(_0x1f1895,_0x50a41e){return _0x1f1895!==_0x50a41e;},'TqMlY':_0x12d317(0x2ed),'nNCQn':_0x12d317(0x1f9),'khhLV':function(_0x4ee4f3,_0x2957e4){return _0x4ee4f3<_0x2957e4;},'JeOEM':_0x12d317(0x341),'oETKR':function(_0x458137,_0xd60aaf){return _0x458137+_0xd60aaf;},'tszPX':function(_0x5b61de,_0xd89119){return _0x5b61de(_0xd89119);},'gRWbT':_0x12d317(0x327),'LVCnC':function(_0x226f24,_0x55ad4b){return _0x226f24(_0x55ad4b);},'kWTwt':function(_0x2d27e5,_0x397612){return _0x2d27e5<=_0x397612;},'hzXdb':function(_0xc00d3a,_0x230ac6){return _0xc00d3a!==_0x230ac6;},'leTDf':_0x12d317(0x1e6),'ACLSS':'iSbSb','iUtpS':function(_0x3b9160){return _0x3b9160();},'zuhTF':function(_0x33e670,_0x4af130){return _0x33e670-_0x4af130;},'nbksg':_0x12d317(0x21b)};let _0x10c3a5=await fs[_0x12d317(0x282)](path[_0x12d317(0x1ec)](__dirname,'..',_0x207fb4[_0x12d317(0x2f6)],_0x207fb4[_0x12d317(0x302)],_0x207fb4['oIuPQ']),_0x207fb4[_0x12d317(0x27f)]);_0x10c3a5=JSON[_0x12d317(0x24c)](_0x10c3a5);let _0x163159=[global_registry[_0x12d317(0x274)]];_0x207fb4[_0x12d317(0x333)](_0x10c3a5[global_registry[_0x12d317(0x274)]],undefined)&&(_0x207fb4[_0x12d317(0x2fb)](_0x207fb4[_0x12d317(0x34f)],_0x207fb4[_0x12d317(0x34f)])?_0x163159=_0x163159['concat'](_0x10c3a5[global_registry[_0x12d317(0x274)]]):(_0x3afdea[_0x12d317(0x1fe)](_0x207fb4[_0x12d317(0x28e)]),_0x34cd1d[_0x12d317(0x1ee)](0x1)));const _0x3abd9d=[];for await(const _0x1f38d4 of _0x163159){if(_0x207fb4[_0x12d317(0x2fb)](_0x207fb4[_0x12d317(0x2d2)],_0x207fb4[_0x12d317(0x2d2)])){const _0x5f5381={};_0x5f5381[_0x12d317(0x2ca)]=_0x12d317(0x254)+this['projectId']+'/locations/'+_0x1f38d4;const _0x251e19=_0x5f5381,_0x137bcd=await this[_0x12d317(0x217)][_0x12d317(0x225)](_0x251e19);for(const _0x5ad1c0 of _0x137bcd[0x0][_0x12d317(0x266)]){if(_0x207fb4[_0x12d317(0x280)](_0x207fb4[_0x12d317(0x1f8)],_0x207fb4['cdUsK']))this[_0x12d317(0x1ff)](this[_0x12d317(0x232)]);else{if(_0x207fb4[_0x12d317(0x338)](_0x5ad1c0[_0x12d317(0x31f)],this[_0x12d317(0x230)])){if(_0x207fb4[_0x12d317(0x336)](_0x207fb4[_0x12d317(0x250)],_0x207fb4[_0x12d317(0x250)]))_0x3abd9d['push'](_0x1f38d4);else return _0x157634[_0x12d317(0x1fe)](_0x12d317(0x313)+_0x2f6b69+_0x12d317(0x30d)+_0x3147ce),[![],[]];}}}}else return _0xca9eaa[_0x12d317(0x36a)][_0x12d317(0x275)][_0x12d317(0x361)][0x0]['ip'];}const _0xd4b018=_0x3abd9d['length'];if(_0x207fb4[_0x12d317(0x2fb)](_0xd4b018,0x1))return _0x207fb4[_0x12d317(0x306)](_0x207fb4[_0x12d317(0x26e)],_0x207fb4[_0x12d317(0x201)])?!![]:(_0x207fb4[_0x12d317(0x1e7)](global_registry['clusterRegion'],_0x3abd9d[0x0])&&(_0x207fb4['PDxId'](_0x207fb4[_0x12d317(0x35c)],_0x207fb4[_0x12d317(0x35c)])?(global_registry['clusterRegion']=_0x3abd9d[0x0],this[_0x12d317(0x2b1)]()):_0x5c0dc9['vpcInfo'][_0x12d317(0x200)](_0x236b58)),!![]);else{if(_0x207fb4[_0x12d317(0x2c5)](_0xd4b018,0x1)){if(_0x207fb4[_0x12d317(0x324)](_0x207fb4['TqMlY'],_0x207fb4[_0x12d317(0x33e)])){console[_0x12d317(0x312)](_0x12d317(0x2d9)+this[_0x12d317(0x230)]+_0x12d317(0x344));for(let _0x72cb2e=0x0;_0x207fb4['khhLV'](_0x72cb2e,_0xd4b018);_0x72cb2e+=0x1){_0x207fb4[_0x12d317(0x336)](_0x207fb4[_0x12d317(0x329)],_0x207fb4[_0x12d317(0x329)])?console[_0x12d317(0x312)]('['+_0x207fb4[_0x12d317(0x32c)](_0x72cb2e,0x1)+']\x20'+_0x3abd9d[_0x72cb2e]):(_0x33cb12[_0x12d317(0x274)]=_0x54b742[_0x207fb4[_0x12d317(0x390)](_0x402a30,0x1)],this['updateClusterRegion']());}const _0x5752a1=await _0x207fb4[_0x12d317(0x31d)](inputConfirmation,_0x207fb4['gRWbT']),_0x12c09d=_0x207fb4['LVCnC'](Number,_0x5752a1);if(_0x207fb4[_0x12d317(0x2b6)](isNaN,_0x12c09d)||_0x207fb4[_0x12d317(0x246)](_0x12c09d,0x0)||_0x207fb4[_0x12d317(0x2c5)](_0x12c09d,_0xd4b018)){if(_0x207fb4['hzXdb'](_0x207fb4[_0x12d317(0x20b)],_0x207fb4[_0x12d317(0x2c2)]))console['error'](_0x207fb4['qmEKT']),process['exit'](0x1);else{const _0x24cccf='https://www.googleapis.com/compute/v1/projects/'+this[_0x12d317(0x2b8)]+_0x12d317(0x33a)+_0x539e62[_0x12d317(0x274)]+_0x12d317(0x32e)+_0x5b8e58[0x0];if(_0x207fb4['ygsWJ'](_0x24cccf,_0x34c65c))return[!![],_0x54b006];}}return _0x207fb4[_0x12d317(0x364)](closeInput),logger['info']('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x3abd9d[_0x207fb4[_0x12d317(0x288)](_0x12c09d,0x1)]),_0x207fb4[_0x12d317(0x333)](global_registry['clusterRegion'],_0x3abd9d[_0x207fb4[_0x12d317(0x390)](_0x12c09d,0x1)])&&(_0x207fb4['PDxId'](_0x207fb4[_0x12d317(0x2f8)],_0x207fb4[_0x12d317(0x2f8)])?(global_registry[_0x12d317(0x274)]=_0x3abd9d[_0x207fb4[_0x12d317(0x390)](_0x12c09d,0x1)],this[_0x12d317(0x2b1)]()):_0x2e5c63[_0x12d317(0x200)](_0x203df3)),!![];}else return[!![],_0x4d8f58];}}return![];}async[a3_0x400017(0x203)](){const _0x37d36c=a3_0x400017,_0x54b126=await this[_0x37d36c(0x217)][_0x37d36c(0x2e8)]({'name':_0x37d36c(0x254)+this[_0x37d36c(0x2b8)]+_0x37d36c(0x33b)+global_registry[_0x37d36c(0x274)]+_0x37d36c(0x20c)+this[_0x37d36c(0x230)]});return _0x54b126;}async['getKubeConfigData'](){const _0x2c643d=a3_0x400017,_0x2ee937={};_0x2ee937[_0x2c643d(0x27c)]=_0x2c643d(0x32f),_0x2ee937[_0x2c643d(0x29a)]=_0x2c643d(0x259),_0x2ee937[_0x2c643d(0x291)]=_0x2c643d(0x2ec),_0x2ee937[_0x2c643d(0x320)]=_0x2c643d(0x2ff);const _0x2768de=_0x2ee937;cp['execSync'](_0x2768de[_0x2c643d(0x27c)]),cp[_0x2c643d(0x1f4)](_0x2c643d(0x373)+this[_0x2c643d(0x2dd)]);const _0x11bd7d=await this[_0x2c643d(0x203)](),_0xbf6ecc=_0x2c643d(0x35f)+this[_0x2c643d(0x2b8)]+'_'+global_registry[_0x2c643d(0x274)]+'_'+this[_0x2c643d(0x230)];let _0x5beca5=await fs[_0x2c643d(0x282)](path[_0x2c643d(0x1ec)](__dirname,'..',_0x2768de[_0x2c643d(0x29a)],_0x2768de[_0x2c643d(0x291)],_0x2768de[_0x2c643d(0x320)]));return _0x5beca5=_0x5beca5[_0x2c643d(0x2cb)](),_0x5beca5=_0x5beca5['replace'](/<CLUSTER_NAME>/g,_0xbf6ecc),_0x5beca5=_0x5beca5[_0x2c643d(0x216)](/<CLUSTER_URL>/g,'https://'+_0x11bd7d[0x0]['endpoint']),_0x5beca5=_0x5beca5['replace'](/<CERTIFICATE_DATA>/g,_0x11bd7d[0x0][_0x2c643d(0x224)][_0x2c643d(0x276)]),_0x5beca5;}async[a3_0x400017(0x202)](){const _0x4e96c9=a3_0x400017,_0x4c1d88={};_0x4c1d88[_0x4e96c9(0x318)]=_0x4e96c9(0x220),_0x4c1d88[_0x4e96c9(0x2fe)]=function(_0x545df0,_0xdb90b4){return _0x545df0!==_0xdb90b4;},_0x4c1d88[_0x4e96c9(0x37f)]=function(_0x105498,_0x4061bf){return _0x105498===_0x4061bf;},_0x4c1d88[_0x4e96c9(0x2c3)]=_0x4e96c9(0x247),_0x4c1d88[_0x4e96c9(0x348)]=_0x4e96c9(0x2d4),_0x4c1d88[_0x4e96c9(0x293)]=_0x4e96c9(0x206),_0x4c1d88[_0x4e96c9(0x29b)]=function(_0x55d999,_0x1b9c87){return _0x55d999!==_0x1b9c87;},_0x4c1d88['VCysR']=_0x4e96c9(0x2bc),_0x4c1d88[_0x4e96c9(0x1e3)]=_0x4e96c9(0x369),_0x4c1d88[_0x4e96c9(0x2a9)]=function(_0x4c62bd,_0x3ab9e1){return _0x4c62bd===_0x3ab9e1;},_0x4c1d88[_0x4e96c9(0x28d)]=function(_0x58e305,_0x486ce3){return _0x58e305!==_0x486ce3;},_0x4c1d88['OvxaB']=_0x4e96c9(0x233),_0x4c1d88['XawzH']='NqYDI';const _0x30e798=_0x4c1d88,_0x418663={};_0x418663[_0x4e96c9(0x25b)]=[_0x30e798[_0x4e96c9(0x348)]],_0x418663[_0x4e96c9(0x363)]=this['credentialsPath'];const _0x470a60=await google[_0x4e96c9(0x33f)]['getClient'](_0x418663),_0xf3fda6=await this['iamClient'][_0x4e96c9(0x37e)][_0x4e96c9(0x27d)]['list']({'name':_0x4e96c9(0x254)+this[_0x4e96c9(0x2b8)],'auth':_0x470a60});if(_0xf3fda6?.[_0x4e96c9(0x267)]?.[_0x4e96c9(0x25e)]){if(_0x30e798[_0x4e96c9(0x2fe)](_0x30e798['IAEhy'],_0x30e798[_0x4e96c9(0x293)]))_0x140c01=[_0x30e798[_0x4e96c9(0x318)]];else for(const _0xb3f887 of _0xf3fda6[_0x4e96c9(0x267)]['accounts']){if(_0x30e798['pOKkh'](_0x30e798[_0x4e96c9(0x34a)],_0x30e798[_0x4e96c9(0x1e3)])){if(_0x30e798[_0x4e96c9(0x2a9)](_0xb3f887?.[_0x4e96c9(0x31f)],'projects/'+this[_0x4e96c9(0x2b8)]+_0x4e96c9(0x2ee)+this[_0x4e96c9(0x237)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return _0x30e798[_0x4e96c9(0x28d)](_0x30e798[_0x4e96c9(0x332)],_0x30e798[_0x4e96c9(0x38b)])?!![]:(_0x30e798['KvtXZ'](_0x4b78c6[_0x4e96c9(0x274)],_0x1dd6bf[0x0])&&(_0x165307['clusterRegion']=_0x13da96[0x0],this[_0x4e96c9(0x2b1)]()),!![]);}else{const _0x2e4d3e=_0x207a6e[0x0]?.[_0x4e96c9(0x242)]?.['managedby'];return _0x2e4d3e&&_0x30e798[_0x4e96c9(0x37f)](_0x2e4d3e['toLowerCase'](),_0x30e798[_0x4e96c9(0x2c3)]);}}}return![];}async[a3_0x400017(0x350)](){const _0x38018c=a3_0x400017,_0x1742d3={};_0x1742d3[_0x38018c(0x1f5)]=function(_0x554bc6,_0x5cf51c){return _0x554bc6===_0x5cf51c;},_0x1742d3['THYFp']='aSTPD',_0x1742d3[_0x38018c(0x377)]='viufr',_0x1742d3[_0x38018c(0x214)]=_0x38018c(0x279),_0x1742d3['GJBqA']=_0x38018c(0x322),_0x1742d3[_0x38018c(0x2a5)]=_0x38018c(0x2d4),_0x1742d3[_0x38018c(0x22c)]=_0x38018c(0x34c),_0x1742d3[_0x38018c(0x380)]=_0x38018c(0x323),_0x1742d3[_0x38018c(0x358)]=_0x38018c(0x23f),_0x1742d3[_0x38018c(0x263)]=_0x38018c(0x2d8),_0x1742d3['RGYma']='storage.buckets.deleteTagBinding',_0x1742d3[_0x38018c(0x379)]='storage.buckets.get',_0x1742d3[_0x38018c(0x2f0)]=_0x38018c(0x1fc),_0x1742d3[_0x38018c(0x2c9)]='storage.buckets.getObjectInsights',_0x1742d3[_0x38018c(0x36f)]='storage.buckets.list',_0x1742d3[_0x38018c(0x23e)]='storage.buckets.listEffectiveTags',_0x1742d3['NpSXv']='storage.buckets.listTagBindings',_0x1742d3[_0x38018c(0x362)]=_0x38018c(0x309),_0x1742d3[_0x38018c(0x346)]=_0x38018c(0x228),_0x1742d3[_0x38018c(0x30f)]=_0x38018c(0x391),_0x1742d3['YRndN']=_0x38018c(0x2e1),_0x1742d3[_0x38018c(0x252)]=_0x38018c(0x36e),_0x1742d3[_0x38018c(0x283)]='storage.multipartUploads.listParts',_0x1742d3[_0x38018c(0x25f)]=_0x38018c(0x303),_0x1742d3[_0x38018c(0x253)]=_0x38018c(0x24e),_0x1742d3[_0x38018c(0x240)]='storage.objects.get',_0x1742d3[_0x38018c(0x316)]='storage.objects.getIamPolicy',_0x1742d3[_0x38018c(0x340)]=_0x38018c(0x30a),_0x1742d3[_0x38018c(0x29f)]=_0x38018c(0x24d),_0x1742d3[_0x38018c(0x21a)]='storage.objects.update',_0x1742d3[_0x38018c(0x304)]=_0x38018c(0x269),_0x1742d3[_0x38018c(0x2ac)]=_0x38018c(0x20f);const _0x5bc76d=_0x1742d3,_0x289d37=await this['checkServiceAccount']();if(_0x289d37){if(_0x5bc76d[_0x38018c(0x1f5)](_0x5bc76d[_0x38018c(0x210)],_0x5bc76d[_0x38018c(0x377)]))_0xfa5650[_0x38018c(0x1fe)]('error\x20:\x20'+_0x248181+'\x20:\x20'+_0x19cbe6['stack']),_0x3de7f1[_0x38018c(0x267)]=_0x38018c(0x37d)+_0x313da3,_0x1e5d06[_0x38018c(0x1fe)]=_0xb3c9ba;else{logger[_0x38018c(0x2f9)](_0x5bc76d[_0x38018c(0x214)]);return;}}logger[_0x38018c(0x2f9)](_0x5bc76d[_0x38018c(0x2f2)]);const _0x4420c3={};_0x4420c3[_0x38018c(0x25b)]=[_0x5bc76d[_0x38018c(0x2a5)]],_0x4420c3['keyFile']=this[_0x38018c(0x2dd)];const _0x550684=await google[_0x38018c(0x33f)]['getClient'](_0x4420c3),_0x180c0a={};_0x180c0a['includedPermissions']=[_0x5bc76d[_0x38018c(0x22c)],_0x5bc76d[_0x38018c(0x380)],_0x5bc76d[_0x38018c(0x358)],_0x5bc76d['kcoOk'],_0x5bc76d[_0x38018c(0x2fd)],_0x5bc76d[_0x38018c(0x379)],_0x5bc76d['VqcvV'],_0x5bc76d[_0x38018c(0x2c9)],_0x5bc76d[_0x38018c(0x36f)],_0x5bc76d[_0x38018c(0x23e)],_0x5bc76d['NpSXv'],_0x5bc76d[_0x38018c(0x362)],_0x5bc76d[_0x38018c(0x346)],_0x5bc76d[_0x38018c(0x30f)],_0x5bc76d[_0x38018c(0x2e3)],_0x5bc76d[_0x38018c(0x252)],_0x5bc76d[_0x38018c(0x283)],_0x5bc76d[_0x38018c(0x25f)],_0x5bc76d[_0x38018c(0x253)],_0x5bc76d[_0x38018c(0x240)],_0x5bc76d['AgfuT'],_0x5bc76d['hMiHi'],_0x5bc76d['kMaAf'],_0x5bc76d['SBBuU']],_0x180c0a[_0x38018c(0x271)]=_0x5bc76d[_0x38018c(0x304)],await this[_0x38018c(0x300)][_0x38018c(0x1e5)][_0x38018c(0x244)][_0x38018c(0x385)]({'parent':_0x38018c(0x254)+this[_0x38018c(0x2b8)],'requestBody':{'role':_0x180c0a,'roleId':this['customRoleName']},'auth':_0x550684});const _0x28b657={};_0x28b657['name']=_0x38018c(0x254)+this[_0x38018c(0x2b8)],_0x28b657['requestBody']={},_0x28b657[_0x38018c(0x33f)]=_0x550684,_0x28b657['requestBody'][_0x38018c(0x1f1)]=this[_0x38018c(0x237)];const _0x2f9f89=_0x28b657;await this['iamClient'][_0x38018c(0x37e)]['serviceAccounts'][_0x38018c(0x385)](_0x2f9f89);let _0x13feeb=await this[_0x38018c(0x28b)][_0x38018c(0x33c)]({'resource':'projects/'+this[_0x38018c(0x2b8)]});_0x13feeb=_0x13feeb[0x0]['bindings'];const _0x45cbe7={};_0x45cbe7[_0x38018c(0x256)]='projects/'+this[_0x38018c(0x2b8)]+_0x38018c(0x2bf)+this[_0x38018c(0x356)],_0x45cbe7[_0x38018c(0x35e)]=[_0x38018c(0x222)+this[_0x38018c(0x237)]+'@'+this[_0x38018c(0x2b8)]+_0x38018c(0x386)],_0x13feeb[_0x38018c(0x200)](_0x45cbe7);const _0x39a4c2={};_0x39a4c2[_0x38018c(0x370)]=_0x13feeb,await this[_0x38018c(0x28b)]['setIamPolicy']({'resource':_0x38018c(0x254)+this[_0x38018c(0x2b8)],'policy':_0x39a4c2}),logger[_0x38018c(0x2f9)](_0x5bc76d['jqLcU']);}async['setupNewCluster'](_0x1973dc=a3_0x400017(0x220),_0x1ab013=[a3_0x400017(0x220)]){const _0x244afc=a3_0x400017,_0x328025={};_0x328025[_0x244afc(0x393)]='REGULAR',_0x328025[_0x244afc(0x268)]=_0x244afc(0x24a),_0x328025['BOMmR']=_0x244afc(0x248),_0x328025[_0x244afc(0x35d)]=function(_0x5f0558,_0x588f9a){return _0x5f0558!==_0x588f9a;},_0x328025[_0x244afc(0x375)]=_0x244afc(0x249),_0x328025[_0x244afc(0x38c)]=_0x244afc(0x2db),_0x328025['ukKnw']=_0x244afc(0x220),_0x328025[_0x244afc(0x26b)]=function(_0x3ab2b0,_0x1075d3){return _0x3ab2b0===_0x1075d3;},_0x328025[_0x244afc(0x367)]=_0x244afc(0x23c),_0x328025[_0x244afc(0x289)]=_0x244afc(0x387);const _0x537cdb=_0x328025,_0x55ebe2={};_0x55ebe2[_0x244afc(0x241)]=WS_EVENTS[_0x244afc(0x1ed)],_0x55ebe2[_0x244afc(0x36b)]=_0x537cdb[_0x244afc(0x268)],this['webSocketUtils'][_0x244afc(0x2e5)](this[_0x244afc(0x232)],_0x55ebe2),logger[_0x244afc(0x2f9)](_0x537cdb[_0x244afc(0x308)]);if(!_0x1973dc){if(_0x537cdb[_0x244afc(0x35d)](_0x537cdb[_0x244afc(0x375)],_0x537cdb['FZCAM']))_0x1973dc=_0x537cdb[_0x244afc(0x20a)];else{const _0x4484ea={};_0x4484ea[_0x244afc(0x26d)]=_0x537cdb[_0x244afc(0x393)],_0x58ff29[_0x244afc(0x32a)]=_0x4484ea;}}return(!_0x1ab013||_0x537cdb[_0x244afc(0x26b)](_0x1ab013[_0x244afc(0x1ea)],0x0))&&(_0x537cdb[_0x244afc(0x26b)](_0x537cdb[_0x244afc(0x367)],_0x537cdb['KMBSl'])?_0x40287d['debug'](_0x17aab3):_0x1ab013=[_0x537cdb[_0x244afc(0x20a)]]),await this[_0x244afc(0x350)](),await this[_0x244afc(0x366)](_0x1973dc,_0x1ab013),await this['updateWindowsNodeGroup'](),[_0x1973dc,_0x1ab013];}async[a3_0x400017(0x366)](_0x34449f='default',_0x467b89=[a3_0x400017(0x220)]){const _0x21eb7a=a3_0x400017,_0x118057={};_0x118057[_0x21eb7a(0x31a)]=_0x21eb7a(0x359),_0x118057[_0x21eb7a(0x212)]=_0x21eb7a(0x26f),_0x118057[_0x21eb7a(0x29e)]=function(_0xfa3bfb,_0x90dbac){return _0xfa3bfb===_0x90dbac;},_0x118057[_0x21eb7a(0x349)]=_0x21eb7a(0x305),_0x118057[_0x21eb7a(0x204)]=function(_0x50f9cb,_0xa27c55){return _0x50f9cb!==_0xa27c55;},_0x118057[_0x21eb7a(0x35a)]=_0x21eb7a(0x2ad),_0x118057[_0x21eb7a(0x330)]=_0x21eb7a(0x218),_0x118057[_0x21eb7a(0x1fb)]=_0x21eb7a(0x37b),_0x118057['WZAHW']=_0x21eb7a(0x259),_0x118057[_0x21eb7a(0x23a)]=_0x21eb7a(0x2ec),_0x118057[_0x21eb7a(0x392)]=_0x21eb7a(0x2fa),_0x118057[_0x21eb7a(0x1fa)]='utf-8',_0x118057[_0x21eb7a(0x315)]=_0x21eb7a(0x2d3),_0x118057['fIRnF']=_0x21eb7a(0x229),_0x118057['RpCAz']=_0x21eb7a(0x209),_0x118057[_0x21eb7a(0x31e)]=_0x21eb7a(0x25a),_0x118057[_0x21eb7a(0x334)]=function(_0x100d8c,_0x3973ff){return _0x100d8c*_0x3973ff;},_0x118057['PoURC']=function(_0x1668d1,_0x5d7cd4){return _0x1668d1*_0x5d7cd4;},_0x118057[_0x21eb7a(0x28c)]=_0x21eb7a(0x264),_0x118057['aAQon']=function(_0x28ade4,_0x2e3263){return _0x28ade4===_0x2e3263;},_0x118057['dIgQd']=_0x21eb7a(0x38d),_0x118057['tPqvD']='qvnkp',_0x118057[_0x21eb7a(0x382)]=_0x21eb7a(0x236),_0x118057['AzhoI']=_0x21eb7a(0x353),_0x118057[_0x21eb7a(0x27e)]=_0x21eb7a(0x265);const _0x53c07f=_0x118057;try{if(_0x53c07f[_0x21eb7a(0x204)](_0x53c07f[_0x21eb7a(0x35a)],_0x53c07f[_0x21eb7a(0x330)])){logger[_0x21eb7a(0x2f9)](_0x53c07f['pzZNX']);let _0x3d9f04=await fs['readFileAsync'](path[_0x21eb7a(0x1ec)](__dirname,'..',_0x53c07f[_0x21eb7a(0x2b4)],_0x53c07f[_0x21eb7a(0x23a)],_0x53c07f[_0x21eb7a(0x392)]),_0x53c07f['KwPoS']);_0x3d9f04=JSON[_0x21eb7a(0x24c)](_0x3d9f04);let _0x3e561d=await fs['readFileAsync'](path['join'](__dirname,'..',_0x53c07f[_0x21eb7a(0x2b4)],_0x53c07f[_0x21eb7a(0x23a)],_0x53c07f[_0x21eb7a(0x315)]),_0x53c07f[_0x21eb7a(0x1fa)]);_0x3e561d=JSON[_0x21eb7a(0x24c)](_0x3e561d);const _0xdf8e1a=global_registry[_0x21eb7a(0x352)];_0x3d9f04[_0x21eb7a(0x31f)]=this['clusterName'],_0x3d9f04[_0x21eb7a(0x2a7)][0x0][_0x21eb7a(0x2ea)][_0x21eb7a(0x270)]=global_registry['instanceType'],_0x3d9f04['nodePools'][0x1][_0x21eb7a(0x2ea)][_0x21eb7a(0x270)]=global_registry['instanceType'],_0x3d9f04[_0x21eb7a(0x2a7)][0x0]['config']['serviceAccount']=this[_0x21eb7a(0x237)]+'@'+this[_0x21eb7a(0x2b8)]+_0x21eb7a(0x386),_0x3d9f04[_0x21eb7a(0x2a7)][0x1][_0x21eb7a(0x2ea)][_0x21eb7a(0x2da)]=this[_0x21eb7a(0x237)]+'@'+this['projectId']+_0x21eb7a(0x386),_0x3d9f04[_0x21eb7a(0x2a7)][0x0]['autoscaling'][_0x21eb7a(0x219)]=global_registry[_0x21eb7a(0x207)],_0x3d9f04[_0x21eb7a(0x2a7)][0x1][_0x21eb7a(0x2d0)][_0x21eb7a(0x219)]=0x0,_0x3d9f04['nodePools'][0x0][_0x21eb7a(0x261)]['autoUpgrade']=_0xdf8e1a,_0x3d9f04['nodePools'][0x1][_0x21eb7a(0x261)][_0x21eb7a(0x287)]=_0xdf8e1a,_0x3d9f04[_0x21eb7a(0x2a7)][0x0][_0x21eb7a(0x2d0)][_0x21eb7a(0x21d)]=global_registry[_0x21eb7a(0x2ba)],_0x3d9f04[_0x21eb7a(0x2a7)][0x1][_0x21eb7a(0x2d0)][_0x21eb7a(0x21d)]=global_registry[_0x21eb7a(0x2ba)],_0x3d9f04[_0x21eb7a(0x1f0)]=global_registry['clusterRegion'],_0x3d9f04[_0x21eb7a(0x337)]=[_0x3e561d[global_registry[_0x21eb7a(0x274)]][0x0]],_0x3d9f04['network']=_0x21eb7a(0x254)+this[_0x21eb7a(0x2b8)]+_0x21eb7a(0x2a8)+_0x34449f,_0x3d9f04['subnetwork']=_0x21eb7a(0x254)+this[_0x21eb7a(0x2b8)]+_0x21eb7a(0x33a)+global_registry['clusterRegion']+'/subnetworks/'+_0x467b89[0x0];if(_0xdf8e1a){if(_0x53c07f['BvHAv'](_0x53c07f[_0x21eb7a(0x205)],_0x53c07f[_0x21eb7a(0x2c0)]))_0x572c46[_0x21eb7a(0x2c7)](_0x21eb7a(0x295)+this['clusterName']+_0x21eb7a(0x26c)+_0x8e24e1[_0x21eb7a(0x274)]+_0x21eb7a(0x223));else{const _0x2b2e45={};_0x2b2e45['channel']=_0x53c07f[_0x21eb7a(0x31e)],_0x3d9f04[_0x21eb7a(0x32a)]=_0x2b2e45;}}const _0x2a7540=await this['containerClient'][_0x21eb7a(0x366)]({'cluster':_0x3d9f04,'parent':_0x21eb7a(0x254)+this[_0x21eb7a(0x2b8)]+_0x21eb7a(0x33b)+global_registry['clusterRegion']});await this[_0x21eb7a(0x388)][_0x21eb7a(0x258)](_0x53c07f['XzYMs'](_0x53c07f[_0x21eb7a(0x1e8)](0x7,0x3c),0x3e8));}else{const _0x159e48=_0x231553['permissions'][_0x21eb7a(0x339)](_0x3ae18b);_0x41c427+='\x0a\x09'+_0x5dba08+_0x21eb7a(0x357)+(_0x159e48?_0x53c07f['jWjuW']:_0x53c07f['cswaf']),!_0x159e48&&(_0x2b84e3['status']=![]);}}catch(_0x42f7e2){if(_0x53c07f[_0x21eb7a(0x204)](_0x53c07f[_0x21eb7a(0x28c)],_0x53c07f['qwRvI']))return![];else{const _0x3e9583=await this[_0x21eb7a(0x2a4)]();if(_0x3e9583){if(_0x53c07f[_0x21eb7a(0x23b)](_0x53c07f[_0x21eb7a(0x21f)],_0x53c07f[_0x21eb7a(0x294)])){if(_0x53c07f[_0x21eb7a(0x29e)](_0x1158d0?.[_0x21eb7a(0x31f)],_0x21eb7a(0x254)+this[_0x21eb7a(0x2b8)]+_0x21eb7a(0x2ee)+this[_0x21eb7a(0x237)]+'@'+this[_0x21eb7a(0x2b8)]+_0x21eb7a(0x386)))return!![];}else logger['info'](_0x53c07f[_0x21eb7a(0x382)],_0x42f7e2[_0x21eb7a(0x221)]),await this[_0x21eb7a(0x2a0)]();}else{if(_0x53c07f[_0x21eb7a(0x23b)](_0x53c07f[_0x21eb7a(0x2d7)],_0x53c07f[_0x21eb7a(0x2d7)]))logger[_0x21eb7a(0x2f9)](_0x53c07f[_0x21eb7a(0x27e)]);else{_0x55d2ba['info'](_0x53c07f[_0x21eb7a(0x349)]);throw _0x3e4d09;}}throw _0x42f7e2;}}}async[a3_0x400017(0x32d)](_0x1f83f7,_0x4827b9,_0x3cb76f,_0x54b2ca,_0x15ad43){}async[a3_0x400017(0x213)](){const _0x163dac=a3_0x400017;cp[_0x163dac(0x2c7)](_0x163dac(0x295)+this['clusterName']+_0x163dac(0x26c)+global_registry['clusterRegion']+_0x163dac(0x223));}async[a3_0x400017(0x2a0)](_0x3431d6,_0x2db87c){const _0x1e9411=a3_0x400017,_0x25764c={'hNLMh':_0x1e9411(0x279),'qCtey':function(_0x10ee43,_0xef3981){return _0x10ee43===_0xef3981;},'FWCDw':_0x1e9411(0x319),'QUFCr':'EIbgu','tvhuJ':function(_0x1eea61,_0x5b9d87){return _0x1eea61(_0x5b9d87);},'TzArm':function(_0x2037a7,_0x5f34c2){return _0x2037a7(_0x5f34c2);},'IPoVN':function(_0xdc5360,_0x2b398f){return _0xdc5360===_0x2b398f;},'zzViE':_0x1e9411(0x27b),'FgKVh':_0x1e9411(0x368),'glXXs':'oaEZo','nrlTM':_0x1e9411(0x226),'tyoSf':_0x1e9411(0x328),'nprIz':function(_0x2add38,_0x1c821e){return _0x2add38!==_0x1c821e;},'iHDGX':_0x1e9411(0x384),'MFVsx':_0x1e9411(0x305)};try{if(_0x25764c[_0x1e9411(0x273)](_0x25764c[_0x1e9411(0x317)],_0x25764c[_0x1e9411(0x25c)])){_0x2d12f8[_0x1e9411(0x2f9)](_0x25764c[_0x1e9411(0x286)]);return;}else{await _0x25764c['tvhuJ'](deleteAgent,_0x3431d6),await _0x25764c[_0x1e9411(0x245)](deleteRoutingDeps,_0x3431d6),logger['info'](_0x1e9411(0x215)+this[_0x1e9411(0x230)]);const _0x2433aa=await this[_0x1e9411(0x217)][_0x1e9411(0x2a0)]({'name':'projects/'+this['projectId']+_0x1e9411(0x33b)+global_registry[_0x1e9411(0x274)]+'/clusters/'+this[_0x1e9411(0x230)]});if(_0x25764c[_0x1e9411(0x251)](_0x2433aa[0x0]?.[_0x1e9411(0x36a)],_0x25764c[_0x1e9411(0x2e2)])||_0x25764c[_0x1e9411(0x251)](_0x2433aa[0x0]?.[_0x1e9411(0x36a)],_0x25764c[_0x1e9411(0x21e)])){if(_0x25764c[_0x1e9411(0x251)](_0x25764c[_0x1e9411(0x292)],_0x25764c['nrlTM']))for(const _0x57ab96 of _0x59511a[_0x1e9411(0x267)]['accounts']){if(_0x25764c['qCtey'](_0x57ab96?.['name'],_0x1e9411(0x254)+this[_0x1e9411(0x2b8)]+_0x1e9411(0x2ee)+this[_0x1e9411(0x237)]+'@'+this[_0x1e9411(0x2b8)]+_0x1e9411(0x386)))return!![];}else return!![];}logger['info'](_0x25764c[_0x1e9411(0x29d)]);}}catch(_0x351daa){if(_0x25764c['nprIz'](_0x25764c['iHDGX'],_0x25764c[_0x1e9411(0x38a)]))return!![];else{logger[_0x1e9411(0x2f9)](_0x25764c['MFVsx']);throw _0x351daa;}}}async[a3_0x400017(0x325)](_0x9a42a3){const _0x418932=a3_0x400017,_0xdf6371={};_0xdf6371['hFuYi']=_0x418932(0x220),_0xdf6371[_0x418932(0x371)]=function(_0x524ad3,_0x59c445){return _0x524ad3===_0x59c445;},_0xdf6371[_0x418932(0x2b9)]='LSqqY',_0xdf6371[_0x418932(0x345)]=_0x418932(0x311),_0xdf6371[_0x418932(0x2b2)]=function(_0x4c4863,_0x548bed){return _0x4c4863>_0x548bed;},_0xdf6371[_0x418932(0x22d)]=function(_0x91fc1c,_0x1d4f3e){return _0x91fc1c===_0x1d4f3e;},_0xdf6371[_0x418932(0x2d6)]=function(_0x4babf4,_0x328b77){return _0x4babf4!==_0x328b77;},_0xdf6371[_0x418932(0x2ab)]=_0x418932(0x2fc),_0xdf6371[_0x418932(0x2e6)]='ZreTJ',_0xdf6371[_0x418932(0x38e)]=function(_0x114ec9,_0x22adc6){return _0x114ec9===_0x22adc6;},_0xdf6371[_0x418932(0x2c6)]=_0x418932(0x374);const _0x49c9c2=_0xdf6371;try{if(_0x49c9c2['ndNvO'](_0x49c9c2[_0x418932(0x2b9)],_0x49c9c2[_0x418932(0x345)]))_0xf0aedb=_0x49c9c2[_0x418932(0x281)];else{const _0x539c4a=await this[_0x418932(0x2c1)][_0x418932(0x231)]({'project':this[_0x418932(0x2b8)],'network':_0x9a42a3});if(_0x49c9c2[_0x418932(0x2b2)](_0x539c4a[_0x418932(0x1ea)],0x0)&&_0x49c9c2['bvmVj'](_0x539c4a[0x0][_0x418932(0x31f)],_0x9a42a3)){if(_0x49c9c2[_0x418932(0x2d6)](_0x49c9c2[_0x418932(0x2ab)],_0x49c9c2[_0x418932(0x2e6)]))return!![];else _0x390962[_0x418932(0x2b5)](_0x29a40d);}}}catch(_0xbef5e6){if(_0x49c9c2['YYGQl'](_0x49c9c2[_0x418932(0x2c6)],_0x49c9c2['cRvXd']))return![];else _0x50cfb7=_0x5c3a5c[_0x418932(0x22b)](_0x36b31a[_0x8c83da[_0x418932(0x274)]]);}return![];}async['isSubnetsValid'](_0x15d3e1,_0x5c96bc){const _0x253fd9=a3_0x400017,_0x659da0={};_0x659da0['tTdJM']=function(_0x2aaf1a,_0x19d5b8){return _0x2aaf1a===_0x19d5b8;},_0x659da0[_0x253fd9(0x234)]=function(_0x21b657,_0x277317){return _0x21b657===_0x277317;},_0x659da0[_0x253fd9(0x36d)]=_0x253fd9(0x378),_0x659da0[_0x253fd9(0x1ef)]=_0x253fd9(0x2f4),_0x659da0[_0x253fd9(0x2ef)]=_0x253fd9(0x365),_0x659da0[_0x253fd9(0x383)]=function(_0x394ca1,_0x55b6b7){return _0x394ca1!==_0x55b6b7;},_0x659da0['pFfIX']=_0x253fd9(0x1e9),_0x659da0[_0x253fd9(0x277)]='MSJNV';const _0x413a77=_0x659da0;try{if(_0x413a77['DGvMw'](_0x413a77[_0x253fd9(0x36d)],_0x413a77[_0x253fd9(0x1ef)]))_0x12eac4[_0x253fd9(0x274)]=_0x4fffd2[0x0],this[_0x253fd9(0x2b1)]();else{const _0x17d821=await this[_0x253fd9(0x2c1)][_0x253fd9(0x231)]({'project':this[_0x253fd9(0x2b8)],'network':_0x5c96bc});for(const _0x3a6918 of _0x17d821[0x0][_0x253fd9(0x296)]){if(_0x413a77[_0x253fd9(0x234)](_0x413a77[_0x253fd9(0x2ef)],_0x413a77[_0x253fd9(0x2ef)])){const _0x2e0a6b=_0x253fd9(0x262)+this[_0x253fd9(0x2b8)]+_0x253fd9(0x33a)+global_registry[_0x253fd9(0x274)]+_0x253fd9(0x32e)+_0x15d3e1[0x0];if(_0x413a77[_0x253fd9(0x234)](_0x2e0a6b,_0x3a6918)){if(_0x413a77[_0x253fd9(0x383)](_0x413a77['pFfIX'],_0x413a77[_0x253fd9(0x372)]))_0x413a77['tTdJM'](_0x4640d4[_0x253fd9(0x31f)],this['clusterName'])&&_0x2fe466['push'](_0x29a37c);else return[!![],_0x15d3e1];}}else return!![];}}}catch(_0xcbe03c){if(_0x413a77[_0x253fd9(0x234)](_0x413a77[_0x253fd9(0x277)],_0x413a77[_0x253fd9(0x277)]))return logger[_0x253fd9(0x1fe)](_0x253fd9(0x313)+_0x15d3e1+_0x253fd9(0x30d)+_0xcbe03c),[![],[]];else _0x1b599e[_0x253fd9(0x1fe)]=_0x5ba4d8;}return[![],[]];}async['sendGCPInfoToHST'](){const _0x31bc74=a3_0x400017,_0x3bdc07={};_0x3bdc07[_0x31bc74(0x31c)]=function(_0x551bfe,_0x558e1c){return _0x551bfe+_0x558e1c;},_0x3bdc07[_0x31bc74(0x2aa)]=function(_0x24e7df,_0x1cad26){return _0x24e7df===_0x1cad26;},_0x3bdc07[_0x31bc74(0x211)]=_0x31bc74(0x227),_0x3bdc07[_0x31bc74(0x301)]=_0x31bc74(0x355);const _0x4b7bd0=_0x3bdc07,_0x43a679=await this[_0x31bc74(0x2c1)]['list']({'project':this[_0x31bc74(0x2b8)]}),_0x2b4eee={};_0x2b4eee[_0x31bc74(0x34b)]=global_registry[_0x31bc74(0x2af)],_0x2b4eee[_0x31bc74(0x239)]=global_registry[_0x31bc74(0x310)],_0x2b4eee['cloudProvider']=GCP,_0x2b4eee[_0x31bc74(0x28a)]=[];const _0x16c023=_0x2b4eee;for(const _0x152017 of _0x43a679){_0x4b7bd0['ksyJp'](_0x4b7bd0[_0x31bc74(0x211)],_0x4b7bd0[_0x31bc74(0x301)])?_0x537414[_0x31bc74(0x312)]('['+_0x4b7bd0[_0x31bc74(0x31c)](_0x3ed52c,0x1)+']\x20'+_0x128134[_0x1da8e7]):_0x16c023[_0x31bc74(0x28a)][_0x31bc74(0x200)](_0x152017);}const _0x2e7f5e={};_0x2e7f5e[_0x31bc74(0x241)]=WS_EVENTS[_0x31bc74(0x30c)],_0x2e7f5e['message']=_0x16c023,this['webSocketUtils'][_0x31bc74(0x2e5)](this[_0x31bc74(0x232)],_0x2e7f5e);}async[a3_0x400017(0x2b1)](){const _0x2b6101=a3_0x400017,_0x3aa93a={'rZAmO':function(_0x5193a0,_0x1ddd1c,_0x498c47){return _0x5193a0(_0x1ddd1c,_0x498c47);},'pJoQc':_0x2b6101(0x342),'wAcVu':_0x2b6101(0x285),'UMAsK':function(_0x58fbb0,_0x469d38,_0x39b724){return _0x58fbb0(_0x469d38,_0x39b724);}},_0x3a359d=_0x2b6101(0x22f)+AG_API_URL+_0x2b6101(0x22e),_0xa36532={};_0xa36532[_0x2b6101(0x243)]=global_registry[_0x2b6101(0x257)];const _0x2cc9cf={};_0x2cc9cf[_0x2b6101(0x24f)]=global_registry[_0x2b6101(0x274)];const _0x21bc61={'searchParams':_0xa36532,'json':_0x2cc9cf,'headers':_0x3aa93a[_0x2b6101(0x25d)](getAuthHeader,global_registry[_0x2b6101(0x2af)],global_registry['bstackAccesskey']),'method':_0x3aa93a[_0x2b6101(0x2c8)],'responseType':_0x3aa93a[_0x2b6101(0x2dc)],'throwHttpErrors':![]},_0x3e4c3b=await _0x3aa93a[_0x2b6101(0x33d)](got,_0x3a359d,_0x21bc61);}async['isCliToolInstalled'](){const _0x592dc5=a3_0x400017,_0x343edc={'rmONl':function(_0xe68dde,_0x188d42){return _0xe68dde(_0x188d42);},'Zpmqi':_0x592dc5(0x208),'jPeMM':_0x592dc5(0x2cd),'FKrVL':_0x592dc5(0x28f)},_0x5e0036={};_0x5e0036[_0x592dc5(0x36a)]=![],_0x5e0036['error']=null,_0x5e0036[_0x592dc5(0x267)]='';const _0x356365=_0x5e0036;try{const _0x3a362b=await _0x343edc[_0x592dc5(0x290)](runCommand,_0x343edc[_0x592dc5(0x38f)]);_0x3a362b[_0x592dc5(0x1e4)](_0x343edc[_0x592dc5(0x2ce)])?logger[_0x592dc5(0x2b5)](_0x3a362b):logger[_0x592dc5(0x2a3)](_0x3a362b),_0x356365[_0x592dc5(0x36a)]=!![],_0x356365['data']=_0x343edc[_0x592dc5(0x1f2)];}catch(_0x2838af){logger['error'](_0x592dc5(0x1f3)+_0x2838af+_0x592dc5(0x357)+_0x2838af[_0x592dc5(0x221)]),_0x356365[_0x592dc5(0x267)]=_0x592dc5(0x37d)+_0x2838af,_0x356365[_0x592dc5(0x1fe)]=_0x2838af;}return _0x356365;}async['checkAccess'](){const _0x2c5008=a3_0x400017,_0x2fdca4={};_0x2fdca4[_0x2c5008(0x20e)]=_0x2c5008(0x359),_0x2fdca4[_0x2c5008(0x36c)]='denied';const _0xf204a2=_0x2fdca4,_0x5f453e={};_0x5f453e['status']=![],_0x5f453e['error']=null,_0x5f453e[_0x2c5008(0x267)]='';const _0x2d7d21=_0x5f453e;try{let _0xee43f5='';const _0x5e8e26=_0x2c5008(0x254)+this[_0x2c5008(0x2b8)],[_0x46d72b]=await this['resourcemanagerClient'][_0x2c5008(0x335)]({'resource':_0x5e8e26,'permissions':Object[_0x2c5008(0x389)](PERMISSIONS)});_0x2d7d21[_0x2c5008(0x36a)]=!![],logger[_0x2c5008(0x2a3)]('permissions\x20check\x20response\x20for\x20'+_0x5e8e26+':\x20'+JSON[_0x2c5008(0x2cf)](_0x46d72b)),Object[_0x2c5008(0x21c)](PERMISSIONS)[_0x2c5008(0x29c)](([_0x2f4afa,_0x26c71f])=>{const _0x1172d6=_0x2c5008,_0x5d8ad3=_0x46d72b[_0x1172d6(0x37a)][_0x1172d6(0x339)](_0x2f4afa);_0xee43f5+='\x0a\x09'+_0x26c71f+_0x1172d6(0x357)+(_0x5d8ad3?_0xf204a2[_0x1172d6(0x20e)]:_0xf204a2[_0x1172d6(0x36c)]),!_0x5d8ad3&&(_0x2d7d21[_0x1172d6(0x36a)]=![]);}),_0x2d7d21['data']=_0xee43f5;}catch(_0x286234){_0x2d7d21[_0x2c5008(0x1fe)]=_0x286234;}return _0x2d7d21;}}function a3_0x49a9(){const _0x889296=['glXXs','IAEhy','tPqvD','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','subnetworks','zToOu','cloudProvider','googleapis','AdPsu','pOKkh','forEach','tyoSf','BvHAv','kMaAf','deleteCluster','managedby','RDcQC','debug','isClusterPresent','CmYYa','utf-8','nodePools','/global/networks/','KRzOI','ksyJp','MMaeT','jqLcU','thTNt','../config/constants','bstackUsername','OhGqa','updateClusterRegion','WfWmR','BFhym','WZAHW','warn','LVCnC','@google-cloud/container','projectId','VmtgP','maxNodes','IqyXi','LLaek','ONazx','@google-cloud/compute','/roles/','RpCAz','networkClient','ACLSS','UHVxZ','@google-cloud/resource-manager','BtXnJ','cRvXd','execSync','pJoQc','yNnTg','parent','toString','FGtpY','Intercepted','jPeMM','stringify','autoscaling','qMpJe','iXZDA','regionmap.json','https://www.googleapis.com/auth/cloud-platform','turboscale-service-account','MTgsz','AzhoI','storage.buckets.delete','Found\x20cluster\x20with\x20name\x20\x27','serviceAccount','gIKlM','wAcVu','credentialsPath','project_id','init','kEbEw','storage.multipartUploads.create','zzViE','YRndN','qShdF','sendEventToBackend','xZfTs','RxcUU','getCluster','HYVbX','config','yMSye','gcpresources','DpSBG','/serviceAccounts/','UYoHO','VqcvV','rZGZa','GJBqA','iam','ZNcCT','96gfLwwN','WaGhp','3149742tovnkj','nbksg','info','gkecluster.json','ygsWJ','UmnHt','RGYma','KvtXZ','KubeConfigTemplate.yaml','iamClient','mymui','OFIKf','storage.objects.create','uCIXM','GKE\x20Cluster\x20deletion\x20failed','lGOEc','13218OLkuCm','BOMmR','storage.buckets.setIamPolicy','storage.objects.list','ayhkg','RESOURCES','.\x20Error:\x20','zxQtT','zzyiG','bstackAccesskey','JgTxB','log','Cannot\x20find\x20subnets\x20','2174445XMfptC','fpNTh','AgfuT','FWCDw','VaZxR','WLSdc','jWjuW','cloudProviderName','URVxk','tszPX','Tkdsx','name','USVui','../utils/utilityMethods','Creating\x20service\x20account','storage.buckets.create','LMYdz','isVPCPresent','lUUuy','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Cluster\x20deletion\x20completed','JeOEM','releaseChannel','519990YBuFLl','oETKR','setupHubHa','/subnetworks/','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','ZkkwK','xSpHw','OvxaB','qvLvb','XzYMs','testIamPermissions','lPvPO','locations','nVySJ','includes','/regions/','/locations/','getIamPolicy','UMAsK','nNCQn','auth','hMiHi','dOlwu','PUT','SVAaP','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','ycCCp','ASLta','ClusterManagerClient','vhESN','ejTAW','VCysR','username','iam.serviceAccounts.signBlob','90929ZwEhJk','kciWb','efEBM','setupServiceAccount','path','clusterAutoUpgrade','YiOem','../permissions/GCP.json','zWczF','customRoleName','\x20:\x20','RXCLm','allowed','hPRzN','fiJHW','dIucH','pULWJ','members','gke_','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','ingress','UKPTt','keyFile','iUtpS','bnKia','createCluster','zbnjX','DONE','mVevy','status','message','IHMtP','vXqzV','storage.multipartUploads.list','oIyRs','bindings','ndNvO','pFfIX','gcloud\x20auth\x20login\x20--cred-file=','Advdy','mbcLo','getUserInput','NLGDl','WvhyF','rVCmT','permissions','Creating\x20GKE\x20Cluster','yCflI','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','projects','vkwJL','tAKgq','isBrowserstackCluster','IqmrU','vuHYR','WzUhG','create','.iam.gserviceaccount.com','KmGJw','webSocketUtils','keys','iHDGX','XawzH','FZCAM','bnhKK','YYGQl','Zpmqi','Xqyra','storage.multipartUploads.abort','gtaJx','aNQtD','436usfVZD','child_process','got','302897TixitQ','nPLYO','startsWith','organizations','PhPYB','nctwK','PoURC','vXsBU','length','gcp_credentials.json','join','LOG','exit','OMuAO','location','accountId','FKrVL','error\x20:\x20','exec','vwIGD','fYfjH','setCachedCredsInRegistry','FGoTO','uIDph','KwPoS','pzZNX','storage.buckets.getIamPolicy','./CloudProvider','error','sendGCPInfoToHST','push','LFHGH','checkServiceAccount','getClusterInfo','RKncc','fIRnF','Fqvcs','minNodes','gcloud\x20--version','fKYOB','ukKnw','leTDf','/clusters/','maRAn','blJSh','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','THYFp','DouUo','cswaf','updateWindowsNodeGroup','rnlpW','Deleting\x20the\x20cluster\x20','replace','containerClient','Nsjfr','minNodeCount','SBBuU','lSzmr','entries','maxNodeCount','FgKVh','dIgQd','default','stack','serviceAccount:','\x20--quiet\x20--user-output-enabled=false','masterAuth','listClusters','ziGwq','ccnfl','storage.buckets.update','QPBHE','911998PWqLua','concat','FcKkD','bvmVj','/packages/cli/update-cluster-region','https://','clusterName','get','rws','LdgNH','DGvMw','GoogleCloudProvider','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','serviceAccountName','../config/logger','accessKey','AgXZe','aAQon','oYcuF','getGridHostname','tTqTz','storage.buckets.createTagBinding','yFxdL','type','resourceLabels','profileId','roles','TzArm','kWTwt','browserstack','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','oYcZA','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','gewJb','parse','storage.objects.setIamPolicy','storage.objects.delete','newRegion','cLrMf','IPoVN','eVwSU','YZusy','projects/','turboscale_custom_role','role','gridProfileId','delay','templates','REGULAR','scopes','QUFCr','rZAmO','accounts','BvhKA','Xawlr','management','https://www.googleapis.com/compute/v1/projects/','kcoOk','ntuGP','Cluster\x20creation\x20failed','clusters','data','dChRg','Turboscale\x20Custom\x20Role','exports','AATNF','\x20--windows-os-version=ltsc2022\x20--region\x20','channel','SoZZe','denied','machineType','title','fMmyJ','qCtey','clusterRegion','loadBalancer','clusterCaCertificate','NJHnU','RtDex','Service\x20account\x20already\x20exists,\x20skipping','zROHw','RUNNING','PFFcX','serviceAccounts','zWdIW','ajcZf','WwFnc','hFuYi','readFileAsync','bidnj','5GpJyfX','json','hNLMh','autoUpgrade','zuhTF','KMBSl','vpcInfo','resourcemanagerClient','qwRvI','hfWQq','qmEKT','cli\x20tool\x20is\x20installed','rmONl','IrPJK'];a3_0x49a9=function(){return _0x889296;};return a3_0x49a9();}function a3_0x1078(_0x258e3a,_0x1294d2){const _0x49a9b1=a3_0x49a9();return a3_0x1078=function(_0x107890,_0x4d6c1f){_0x107890=_0x107890-0x1e0;let _0x2639d3=_0x49a9b1[_0x107890];return _0x2639d3;},a3_0x1078(_0x258e3a,_0x1294d2);}const a3_0x2d0190={};a3_0x2d0190[a3_0x400017(0x235)]=GoogleCloudProvider,module[a3_0x400017(0x26a)]=a3_0x2d0190;
@@ -1 +1 @@
1
- const a4_0x378548=a4_0x2e22;(function(_0x22295d,_0x2a8ef1){const _0x42ac98=a4_0x2e22,_0x466936=_0x22295d();while(!![]){try{const _0x4b33ec=parseInt(_0x42ac98(0xd3))/0x1*(-parseInt(_0x42ac98(0xd4))/0x2)+parseInt(_0x42ac98(0xd8))/0x3+parseInt(_0x42ac98(0xca))/0x4*(-parseInt(_0x42ac98(0xe3))/0x5)+-parseInt(_0x42ac98(0xd6))/0x6*(-parseInt(_0x42ac98(0xcc))/0x7)+-parseInt(_0x42ac98(0xc2))/0x8*(-parseInt(_0x42ac98(0xc0))/0x9)+parseInt(_0x42ac98(0xda))/0xa+-parseInt(_0x42ac98(0xc3))/0xb*(parseInt(_0x42ac98(0xbf))/0xc);if(_0x4b33ec===_0x2a8ef1)break;else _0x466936['push'](_0x466936['shift']());}catch(_0x1bfc2f){_0x466936['push'](_0x466936['shift']());}}}(a4_0x56a7,0x59b39));function a4_0x2e22(_0x5a3b69,_0x378bd4){const _0x56a752=a4_0x56a7();return a4_0x2e22=function(_0x2e22aa,_0x1995a8){_0x2e22aa=_0x2e22aa-0xbe;let _0x1fe183=_0x56a752[_0x2e22aa];return _0x1fe183;},a4_0x2e22(_0x5a3b69,_0x378bd4);}function a4_0x56a7(){const _0xf9ba23=['\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','../config/constants','./Azure','Current\x20Node.js\x20version\x20','message','uZMkg','error','./AWS','2365bLsIsj','AzbCb','6312756qitgyl','137763zFIMWq','exit','248LbOpLQ','11KqmVFj','HxKHR','../utils/utilityMethods','../utils/instrumentationUtils','ERROR','stack','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','3144IHcnEx','../config/logger','317051PtKaHv','init','versions','node','Unknown\x20cloud\x20provider\x20found\x20-\x20','jVYbi','ZUHBE','394pNGGYm','302wCDdlL','grid-spawning-failed','30KvcjQi','create-grid-called','1507545WSzExg','XblCR','1212550zMuiJq'];a4_0x56a7=function(){return _0xf9ba23;};return a4_0x56a7();}const {AWSCloudProvider}=require(a4_0x378548(0xe2)),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x378548(0xc5)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x378548(0xdc)),{sendInstrumentationEvent}=require(a4_0x378548(0xc6)),{logger}=require(a4_0x378548(0xcb));exports['getCloudProviderObject']=async(_0x5d2bb8,_0x2f2ee6,_0x3362ed,_0x1da20b,_0x293dc6,_0x2963f6)=>{const _0x25f453=a4_0x378548,_0x27d3aa={'XblCR':function(_0x116936){return _0x116936();},'AzbCb':function(_0x1739e3,_0x98ef65){return _0x1739e3(_0x98ef65);},'bmIxw':'./Azure','hxToI':function(_0x49e82a,_0x74d66b,_0x31606d,_0x25545d,_0x1107c7,_0x596429,_0x511b62){return _0x49e82a(_0x74d66b,_0x31606d,_0x25545d,_0x1107c7,_0x596429,_0x511b62);},'jVYbi':_0x25f453(0xd7),'ZUHBE':_0x25f453(0xd5)};switch(_0x5d2bb8){case AWS:{const _0x10dd37=new AWSCloudProvider(_0x2f2ee6,_0x3362ed,_0x1da20b,_0x293dc6);return await _0x10dd37['init']();}case GCP:{const _0x2dd907=new GoogleCloudProvider(_0x2f2ee6,_0x3362ed,_0x1da20b,_0x293dc6);return await _0x2dd907[_0x25f453(0xcd)]();}case AZURE:{try{await _0x27d3aa[_0x25f453(0xd9)](installAzurePackages);const {AzureCloudProvider:_0xdda2ac}=_0x27d3aa[_0x25f453(0xbe)](require,_0x27d3aa['bmIxw']),_0x49597b=new _0xdda2ac(_0x2f2ee6,_0x3362ed,_0x1da20b,_0x293dc6);return await _0x49597b['init']();}catch(_0x1af890){const _0x1b86da='Current\x20Node.js\x20version\x20'+process[_0x25f453(0xce)]['node']+_0x25f453(0xdb)+_0x1af890[_0x25f453(0xdf)]+',\x20stacktrace:\x20'+_0x1af890[_0x25f453(0xc8)];logger['error'](_0x1b86da);const _0x200e0e={};_0x200e0e[_0x25f453(0xe1)]=_0x1b86da,await _0x27d3aa['hxToI'](sendInstrumentationEvent,_0x2963f6,_0x27d3aa[_0x25f453(0xd1)],messageTypes[_0x25f453(0xc7)],_0x27d3aa[_0x25f453(0xd2)],_0x200e0e,_0x2963f6),process['exit'](0x1);}}default:logger['error']('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x5d2bb8),process[_0x25f453(0xc1)](0x1);}},exports['getCloudProviderObjectWithOutInit']=async(_0x245895,_0x52e11a,_0xa5717,_0x43e8f2,_0x4e291b,_0x21d4e0)=>{const _0x9895f8=a4_0x378548,_0x4011b4={'HxKHR':function(_0xb80152){return _0xb80152();},'ITMTf':function(_0xade469,_0x2bafdd){return _0xade469(_0x2bafdd);},'uZMkg':_0x9895f8(0xdd)};switch(_0x245895){case AWS:return new AWSCloudProvider(_0x52e11a,_0xa5717,_0x43e8f2,_0x4e291b);case GCP:return new GoogleCloudProvider(_0x52e11a,_0xa5717,_0x43e8f2,_0x4e291b);case AZURE:{!_0x4011b4['HxKHR'](IsNodeCompatibleWithAzure)&&(logger['error'](_0x9895f8(0xde)+process[_0x9895f8(0xce)][_0x9895f8(0xcf)]+_0x9895f8(0xc9)),process[_0x9895f8(0xc1)](0x1));await _0x4011b4[_0x9895f8(0xc4)](installAzurePackages);const {AzureCloudProvider:_0x5160e1}=_0x4011b4['ITMTf'](require,_0x4011b4[_0x9895f8(0xe0)]);return new _0x5160e1(_0x52e11a,_0xa5717,_0x43e8f2,_0x4e291b);}default:logger[_0x9895f8(0xe1)](_0x9895f8(0xd0)+_0x245895),process[_0x9895f8(0xc1)](0x1);}};
1
+ const a4_0x349716=a4_0x4de9;(function(_0x1f8c24,_0x547650){const _0x475186=a4_0x4de9,_0x50b69b=_0x1f8c24();while(!![]){try{const _0x51b025=parseInt(_0x475186(0x1d4))/0x1*(-parseInt(_0x475186(0x1ce))/0x2)+-parseInt(_0x475186(0x1e3))/0x3*(-parseInt(_0x475186(0x1cb))/0x4)+parseInt(_0x475186(0x1df))/0x5+-parseInt(_0x475186(0x1e4))/0x6*(parseInt(_0x475186(0x1e6))/0x7)+parseInt(_0x475186(0x1cf))/0x8*(-parseInt(_0x475186(0x1c7))/0x9)+parseInt(_0x475186(0x1e2))/0xa*(parseInt(_0x475186(0x1c6))/0xb)+parseInt(_0x475186(0x1d6))/0xc;if(_0x51b025===_0x547650)break;else _0x50b69b['push'](_0x50b69b['shift']());}catch(_0x1ff93a){_0x50b69b['push'](_0x50b69b['shift']());}}}(a4_0x4a7b,0x3c081));const {AWSCloudProvider}=require(a4_0x349716(0x1e5)),{GoogleCloudProvider}=require(a4_0x349716(0x1c8)),{installAzurePackages,IsNodeCompatibleWithAzure}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require(a4_0x349716(0x1de)),{sendInstrumentationEvent}=require(a4_0x349716(0x1c5)),{logger}=require(a4_0x349716(0x1db));exports[a4_0x349716(0x1dc)]=async(_0x32f46b,_0x44fdef,_0x516fd6,_0xd56a3d,_0x40c28e,_0x55697a)=>{const _0x5cd8ab=a4_0x349716,_0x2a7cdd={'KrwlM':function(_0x2ff264){return _0x2ff264();},'RDZWg':function(_0x320b59,_0x4e5fd3){return _0x320b59(_0x4e5fd3);},'KzjIL':'./Azure','VHBHO':function(_0x12e6b9,_0x1ec37d,_0x363f01,_0x44f01c,_0x52fb4f,_0x13bd03,_0x5e3731){return _0x12e6b9(_0x1ec37d,_0x363f01,_0x44f01c,_0x52fb4f,_0x13bd03,_0x5e3731);},'dPcfk':_0x5cd8ab(0x1d2),'tHGpm':'grid-spawning-failed'};switch(_0x32f46b){case AWS:{const _0x80eec5=new AWSCloudProvider(_0x44fdef,_0x516fd6,_0xd56a3d,_0x40c28e);return await _0x80eec5[_0x5cd8ab(0x1da)]();}case GCP:{const _0x48961b=new GoogleCloudProvider(_0x44fdef,_0x516fd6,_0xd56a3d,_0x40c28e);return await _0x48961b[_0x5cd8ab(0x1da)]();}case AZURE:{try{await _0x2a7cdd[_0x5cd8ab(0x1d0)](installAzurePackages);const {AzureCloudProvider:_0x5ba41a}=_0x2a7cdd[_0x5cd8ab(0x1e0)](require,_0x2a7cdd[_0x5cd8ab(0x1d7)]),_0x6f77a4=new _0x5ba41a(_0x44fdef,_0x516fd6,_0xd56a3d,_0x40c28e);return await _0x6f77a4[_0x5cd8ab(0x1da)]();}catch(_0x193bd4){const _0x54cdbf=_0x5cd8ab(0x1cd)+process[_0x5cd8ab(0x1cc)]['node']+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20'+_0x193bd4['message']+_0x5cd8ab(0x1e1)+_0x193bd4['stack'];logger['error'](_0x54cdbf);const _0x77e702={};_0x77e702['error']=_0x54cdbf,await _0x2a7cdd[_0x5cd8ab(0x1d5)](sendInstrumentationEvent,_0x55697a,_0x2a7cdd['dPcfk'],messageTypes['ERROR'],_0x2a7cdd[_0x5cd8ab(0x1ca)],_0x77e702,_0x55697a),process[_0x5cd8ab(0x1dd)](0x1);}}default:logger[_0x5cd8ab(0x1d1)](_0x5cd8ab(0x1d9)+_0x32f46b),process['exit'](0x1);}},exports[a4_0x349716(0x1c4)]=async(_0x12ef2e,_0x447629,_0x3d7cbb,_0x2abae2,_0x793062,_0x470634)=>{const _0x5c6869=a4_0x349716,_0x12e2a1={'QIMdO':function(_0x2e8ea2){return _0x2e8ea2();},'TOKQn':function(_0x39d503,_0x16b17c){return _0x39d503(_0x16b17c);},'WdbYN':'./Azure'};switch(_0x12ef2e){case AWS:return new AWSCloudProvider(_0x447629,_0x3d7cbb,_0x2abae2,_0x793062);case GCP:return new GoogleCloudProvider(_0x447629,_0x3d7cbb,_0x2abae2,_0x793062);case AZURE:{!_0x12e2a1[_0x5c6869(0x1d3)](IsNodeCompatibleWithAzure)&&(logger[_0x5c6869(0x1d1)](_0x5c6869(0x1cd)+process[_0x5c6869(0x1cc)][_0x5c6869(0x1e7)]+'\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.'),process[_0x5c6869(0x1dd)](0x1));await _0x12e2a1['QIMdO'](installAzurePackages);const {AzureCloudProvider:_0x4e4c37}=_0x12e2a1[_0x5c6869(0x1d8)](require,_0x12e2a1[_0x5c6869(0x1c9)]);return new _0x4e4c37(_0x447629,_0x3d7cbb,_0x2abae2,_0x793062);}default:logger[_0x5c6869(0x1d1)](_0x5c6869(0x1d9)+_0x12ef2e),process[_0x5c6869(0x1dd)](0x1);}};function a4_0x4de9(_0x4834c1,_0x31ce41){const _0x4a7b16=a4_0x4a7b();return a4_0x4de9=function(_0x4de92f,_0x1fb9fd){_0x4de92f=_0x4de92f-0x1c4;let _0x2e1a7a=_0x4a7b16[_0x4de92f];return _0x2e1a7a;},a4_0x4de9(_0x4834c1,_0x31ce41);}function a4_0x4a7b(){const _0x331f09=['../utils/instrumentationUtils','734998HgNGcN','441dqeJWk','./GoogleCloudProvider','WdbYN','tHGpm','12AMaTyf','versions','Current\x20Node.js\x20version\x20','2650LkVuBg','57160zrYvII','KrwlM','error','create-grid-called','QIMdO','263wxppLy','VHBHO','4806564BfTGdm','KzjIL','TOKQn','Unknown\x20cloud\x20provider\x20found\x20-\x20','init','../config/logger','getCloudProviderObject','exit','../config/constants','275120AYptpp','RDZWg',',\x20stacktrace:\x20','20mPvMrU','406773WWuvxG','309066AKJebe','./AWS','7WBBveF','node','getCloudProviderObjectWithOutInit'];a4_0x4a7b=function(){return _0x331f09;};return a4_0x4a7b();}
@@ -1 +1 @@
1
- const a5_0x355f38=a5_0x20f8;function a5_0x20f8(_0x1603a5,_0x18ad71){const _0x440125=a5_0x4401();return a5_0x20f8=function(_0x20f814,_0x335f49){_0x20f814=_0x20f814-0xfe;let _0x582356=_0x440125[_0x20f814];return _0x582356;},a5_0x20f8(_0x1603a5,_0x18ad71);}function a5_0x4401(){const _0x251f2e=['stack','Failed\x20to\x20configure\x20resources!\x20Error:\x20','statusCode','../utils/utilityMethods','xqUJq','IygPc','qSlgI','usage','975714arcDpJ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1983712KUZXgg','dgaCM','11417376dJeVcp','NkgUq','DRVJk','wYmNX','profileId','bXXTA','WjOet','VPtJz','json','6720970ckHDWI','../utils/userInput','server-error','stnEd','../utils/instrumentationUtils','AXyOp','builder','argv','list','username','KeFvL','exit','eAhvc','6RsEdOb','hMewW','GET','INFO','requestId','IYlOt','vGATL','error','pQVLK','body','mliuf','configure','WnsSq','PUT','vLbyH','help','pweMY','../config/constants','jeBiM','desc','name','got','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','dISDW','PzNuj','lTjGm','invalid-selection','gFxRb','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Browserstack','active','dJmMN','log','sSKPf','scJeV','unknown-error','didlr','Updated\x20default\x20Grid\x20Profile\x20successfully','readFileSync','FfYxC','configure-called','unauthorised','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','916074myMoPx','jbADu','348947TisLWs','command','Feiwx','parse','existsSync','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','bpkex','byjsF','glxqM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DEqlZ','MkUCb','length','stringify','toLowerCase','1232224riAaiI','ERROR','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','strict','handler','password'];a5_0x4401=function(){return _0x251f2e;};return a5_0x4401();}(function(_0x5b1c06,_0x467868){const _0x371a14=a5_0x20f8,_0x46bbc2=_0x5b1c06();while(!![]){try{const _0x53184b=parseInt(_0x371a14(0x10a))/0x1+-parseInt(_0x371a14(0x127))/0x2+parseInt(_0x371a14(0x108))/0x3+parseInt(_0x371a14(0x129))/0x4+parseInt(_0x371a14(0x134))/0x5*(parseInt(_0x371a14(0x141))/0x6)+parseInt(_0x371a14(0x119))/0x7+-parseInt(_0x371a14(0x12b))/0x8;if(_0x53184b===_0x467868)break;else _0x46bbc2['push'](_0x46bbc2['shift']());}catch(_0x28e3a6){_0x46bbc2['push'](_0x46bbc2['shift']());}}}(a5_0x4401,0xb86e6));const fs=require('fs'),got=require(a5_0x355f38(0x156)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x355f38(0x135)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x355f38(0x152)),{getCredentialsPath,getAuthHeader}=require(a5_0x355f38(0x122)),{sendInstrumentationEvent}=require(a5_0x355f38(0x138));exports[a5_0x355f38(0x10b)]=a5_0x355f38(0x14c),exports[a5_0x355f38(0x154)]=a5_0x355f38(0x157),exports[a5_0x355f38(0x13a)]=function(_0x1bdd34){const _0x36952d=a5_0x355f38,_0x3985b4={};_0x3985b4[_0x36952d(0x14f)]='help';const _0x20503b=_0x3985b4;return _0x1bdd34[_0x36952d(0x126)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x36952d(0x150)](_0x20503b[_0x36952d(0x14f)])['recommendCommands']()[_0x36952d(0x11c)]()[_0x36952d(0x13b)];},exports[a5_0x355f38(0x11d)]=async function(_0x51628b){const _0x9a223=a5_0x355f38,_0x18e790={'qSlgI':function(_0x2434ab){return _0x2434ab();},'mliuf':function(_0x180415){return _0x180415();},'gFxRb':_0x9a223(0x113),'jeBiM':function(_0xaf3c96,_0x44f872,_0x3f1fe7,_0x21be50,_0x282c23,_0x44a471,_0x42ebe0){return _0xaf3c96(_0x44f872,_0x3f1fe7,_0x21be50,_0x282c23,_0x44a471,_0x42ebe0);},'IYlOt':_0x9a223(0x105),'didlr':'init-not-called','stnEd':function(_0x235a1d,_0x4118b6,_0x26a2de,_0x2556e4,_0x1a782c,_0x150bc2,_0x11b173){return _0x235a1d(_0x4118b6,_0x26a2de,_0x2556e4,_0x1a782c,_0x150bc2,_0x11b173);},'KeFvL':_0x9a223(0x143),'dISDW':function(_0x21fa6f,_0x212fdc,_0x13cebb){return _0x21fa6f(_0x212fdc,_0x13cebb);},'jbADu':function(_0x5ea45a,_0x56c444,_0x528696){return _0x5ea45a(_0x56c444,_0x528696);},'glxqM':function(_0x1c1f81,_0x3b159b){return _0x1c1f81!==_0x3b159b;},'MkUCb':function(_0x450817,_0x1bd623){return _0x450817!==_0x1bd623;},'wYmNX':function(_0x1b48c5,_0x59d309){return _0x1b48c5===_0x59d309;},'WjOet':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','DEqlZ':'core:','sSKPf':function(_0x2f5d0c,_0x322316){return _0x2f5d0c(_0x322316);},'dgaCM':_0x9a223(0x11b),'ZkEtU':function(_0x5c5987,_0x456e34){return _0x5c5987===_0x456e34;},'dJmMN':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','byjsF':'invalid-input','FfYxC':function(_0x4ab960,_0x20bf01){return _0x4ab960===_0x20bf01;},'ITYqS':_0x9a223(0x158),'teDgy':function(_0x4be2f7,_0xe7df32){return _0x4be2f7<_0xe7df32;},'VPtJz':function(_0x507c25,_0x14508f){return _0x507c25+_0x14508f;},'vGATL':_0x9a223(0x15e),'WnsSq':function(_0x58662e,_0x51d068){return _0x58662e<=_0x51d068;},'pweMY':function(_0xd46f74,_0x98084d){return _0xd46f74>_0x98084d;},'gqOLG':_0x9a223(0x15c),'LsaVK':function(_0x1ab716,_0x25548d){return _0x1ab716-_0x25548d;},'NjIDf':_0x9a223(0x14e),'eAhvc':function(_0x267385,_0x42c51b,_0x8a4330){return _0x267385(_0x42c51b,_0x8a4330);},'DRVJk':_0x9a223(0x133),'yfMBO':function(_0x25b9c4,_0x4c7735,_0x4a496a){return _0x25b9c4(_0x4c7735,_0x4a496a);},'scJeV':function(_0x1eac45,_0x42556d){return _0x1eac45!==_0x42556d;},'bXXTA':function(_0xb682aa,_0x29467b){return _0xb682aa===_0x29467b;},'Feiwx':_0x9a223(0x102),'hMewW':function(_0x4fdd45,_0x3bb25b){return _0x4fdd45===_0x3bb25b;},'pQVLK':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','IygPc':_0x9a223(0x106),'xqUJq':function(_0x1b37b1,_0x239022,_0x370ede,_0x22ab62,_0x294d57,_0x4dbc65,_0x1089ae){return _0x1b37b1(_0x239022,_0x370ede,_0x22ab62,_0x294d57,_0x4dbc65,_0x1089ae);},'NkgUq':_0x9a223(0x136),'AXyOp':function(_0x28186f,_0x90c18f){return _0x28186f===_0x90c18f;},'PzNuj':_0x9a223(0x128),'QoBlO':function(_0x110c5a,_0x155b95,_0x34291a,_0x4c8225,_0x3fa862,_0x2aa857,_0x67bd96){return _0x110c5a(_0x155b95,_0x34291a,_0x4c8225,_0x3fa862,_0x2aa857,_0x67bd96);},'lTjGm':function(_0x5998b2,_0x158ead,_0x121b94,_0x3ae053,_0x11b9a0,_0x438e09,_0x5cd2c6){return _0x5998b2(_0x158ead,_0x121b94,_0x3ae053,_0x11b9a0,_0x438e09,_0x5cd2c6);},'bpkex':function(_0x1b82eb,_0x1e7fe1,_0x31a816,_0x165077,_0x2e1dc5,_0x298a57,_0xe5bdd8){return _0x1b82eb(_0x1e7fe1,_0x31a816,_0x165077,_0x2e1dc5,_0x298a57,_0xe5bdd8);},'fpgzD':_0x9a223(0x100)};try{global_registry[_0x9a223(0x145)]=_0x18e790[_0x9a223(0x125)](uuidv4);const _0x395f56='https://'+AG_API_URL+'/packages/cli/configure';!fs[_0x9a223(0x10e)](_0x18e790[_0x9a223(0x14b)](getCredentialsPath))&&(console['error'](_0x18e790[_0x9a223(0x15d)]),await _0x18e790['jeBiM'](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790[_0x9a223(0x101)],null,_0x51628b),process[_0x9a223(0x13f)](0x1));await _0x18e790[_0x9a223(0x137)](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x144)],null,null,_0x51628b);const _0x95f683=JSON[_0x9a223(0x10d)](fs[_0x9a223(0x103)](_0x18e790[_0x9a223(0x125)](getCredentialsPath))),_0x334ab0={'method':_0x18e790[_0x9a223(0x13e)],'headers':_0x18e790[_0x9a223(0x159)](getAuthHeader,_0x95f683[_0x9a223(0x15f)][_0x9a223(0x13d)],_0x95f683[_0x9a223(0x15f)]['password']),'throwHttpErrors':![]},_0x54a05d=await _0x18e790[_0x9a223(0x109)](got,_0x395f56,_0x334ab0);if(_0x18e790[_0x9a223(0x112)](_0x54a05d,null)&&_0x18e790[_0x9a223(0x115)](_0x54a05d,undefined)&&_0x18e790[_0x9a223(0x12e)](_0x54a05d[_0x9a223(0x121)],0xc8)){const _0x18cc5f=JSON['parse'](_0x54a05d[_0x9a223(0x14a)]);console[_0x9a223(0x162)](_0x18e790[_0x9a223(0x131)]),console[_0x9a223(0x162)](_0x18e790[_0x9a223(0x114)]),console[_0x9a223(0x162)]('\x20\x20username:\x20'+_0x95f683[_0x9a223(0x15f)]['username']),console[_0x9a223(0x162)]('\x20\x20grid-profile:\x20'+_0x18cc5f[_0x9a223(0x160)][_0x9a223(0x155)]);const _0x20b8c8=await _0x18e790['sSKPf'](inputConfirmation,_0x18e790[_0x9a223(0x12a)]);(_0x18e790['wYmNX'](_0x20b8c8,undefined)||_0x18e790['wYmNX'](_0x20b8c8,null)||!(_0x18e790['wYmNX'](_0x20b8c8[_0x9a223(0x118)](),'y')||_0x18e790['ZkEtU'](_0x20b8c8[_0x9a223(0x118)](),'n')))&&(console[_0x9a223(0x148)](_0x18e790[_0x9a223(0x161)]),await _0x18e790[_0x9a223(0x153)](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790[_0x9a223(0x111)],null,_0x51628b),process[_0x9a223(0x13f)](0x1));_0x18e790[_0x9a223(0x104)](_0x20b8c8['toLowerCase'](),'n')&&process['exit'](0x0);console[_0x9a223(0x162)](_0x18e790['ITYqS']);const _0x333d14=_0x18cc5f['list'][_0x9a223(0x116)];for(let _0x254ca5=0x0;_0x18e790['teDgy'](_0x254ca5,_0x333d14);_0x254ca5+=0x1){console[_0x9a223(0x162)]('['+_0x18e790[_0x9a223(0x132)](_0x254ca5,0x1)+']\x20'+_0x18cc5f[_0x9a223(0x13c)][_0x254ca5][_0x9a223(0x155)]);}const _0x2c8635=await _0x18e790[_0x9a223(0xfe)](inputConfirmation,_0x18e790[_0x9a223(0x147)]),_0x157501=_0x18e790['sSKPf'](Number,_0x2c8635);(_0x18e790['sSKPf'](isNaN,_0x157501)||_0x18e790[_0x9a223(0x14d)](_0x157501,0x0)||_0x18e790[_0x9a223(0x151)](_0x157501,_0x333d14))&&(console[_0x9a223(0x148)](_0x18e790[_0x9a223(0x161)]),await _0x18e790[_0x9a223(0x137)](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790['gqOLG'],null,_0x51628b),process['exit'](0x1));_0x18e790[_0x9a223(0x125)](closeInput);const _0x222154=_0x18cc5f['list'][_0x18e790['LsaVK'](_0x157501,0x1)]['id'],_0x43ddcb={};_0x43ddcb[_0x9a223(0x12f)]=_0x222154;const _0x11f999={'method':_0x18e790['NjIDf'],'headers':_0x18e790[_0x9a223(0x140)](getAuthHeader,_0x95f683['Browserstack'][_0x9a223(0x13d)],_0x95f683['Browserstack'][_0x9a223(0x11e)]),'json':_0x43ddcb,'responseType':_0x18e790[_0x9a223(0x12d)],'throwHttpErrors':![]},_0x47cf00=await _0x18e790['yfMBO'](got,_0x395f56,_0x11f999);_0x18e790[_0x9a223(0xff)](_0x47cf00,null)&&_0x18e790[_0x9a223(0x112)](_0x47cf00,undefined)&&_0x18e790[_0x9a223(0x130)](_0x47cf00[_0x9a223(0x121)],0xc8)&&(console['log'](_0x18e790[_0x9a223(0x10c)]),process[_0x9a223(0x13f)](0x0)),_0x18e790[_0x9a223(0x142)](_0x47cf00[_0x9a223(0x121)],0x191)&&(console[_0x9a223(0x148)](_0x18e790[_0x9a223(0x149)]),await _0x18e790[_0x9a223(0x137)](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790[_0x9a223(0x124)],null,_0x51628b),process[_0x9a223(0x13f)](0x1)),console['error'](_0x9a223(0x10f)+JSON[_0x9a223(0x117)](_0x47cf00)),await _0x18e790[_0x9a223(0x123)](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790[_0x9a223(0x12c)],_0x47cf00,_0x51628b),process[_0x9a223(0x13f)](0x1);}_0x18e790[_0x9a223(0x139)](_0x54a05d[_0x9a223(0x121)],0x191)&&(console[_0x9a223(0x148)](_0x18e790[_0x9a223(0x15a)]),await _0x18e790['QoBlO'](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790['IygPc'],null,_0x51628b),process[_0x9a223(0x13f)](0x1)),console[_0x9a223(0x148)](_0x9a223(0x107)+JSON['stringify'](_0x54a05d)),await _0x18e790[_0x9a223(0x15b)](sendInstrumentationEvent,_0x51628b,_0x18e790[_0x9a223(0x146)],messageTypes[_0x9a223(0x11a)],_0x18e790[_0x9a223(0x12c)],_0x54a05d,_0x51628b),process[_0x9a223(0x13f)](0x1);}catch(_0x381d19){console['error'](_0x9a223(0x120)+_0x381d19[_0x9a223(0x11f)]),await _0x18e790[_0x9a223(0x110)](sendInstrumentationEvent,_0x51628b,_0x18e790['IYlOt'],messageTypes[_0x9a223(0x11a)],_0x18e790['fpgzD'],_0x381d19,_0x51628b),process[_0x9a223(0x13f)](0x1);}};
1
+ function a5_0x1fe1(){const _0x3e6cc5=['xRXLq','unknown-error','HtHHQ','dAwix','configure-called','Failed\x20to\x20configure\x20resources!\x20Error:\x20','MMWXJ','XvyNf','existsSync','Updated\x20default\x20Grid\x20Profile\x20successfully','epilogue','CEbVs','TDoNC','password','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','qNWyY','MQoHa','server-error','459BeEbPZ','strict','stringify','875514CdNlem','176645tPXNFd','handler','DPSzh','requestId','TNUJF','vHdPR','Browserstack','vIbMc','list','statusCode','eJbSs','PUT','parse','toLowerCase','EJETX','error','dkLeX','1nlJRPd','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','SZwhb','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','VglaH','1988319dLPWOD','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PmjDn','recommendCommands','KxAIi','unauthorised','QmQpj','DOgQw','IOgBv','configure','rYvIk','wMcwz','https://','dOZyJ','EpIXT','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','uPMii','IZLCq','387852kABdCj','../utils/utilityMethods','length','pRrYd','4IVKwHj','1658377sXbwEb','../utils/userInput','body','ERROR','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','dsloB','1045176JhnakK','QEXFF','readFileSync','username','aNPqL','log','desc','usage','\x20\x20username:\x20','invalid-input','builder','command','exit','got','uuid','nczkt','lTHUq','core:','XpszE','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','aDZOP','12930GBPgmP','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GET','YSxXC','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a5_0x1fe1=function(){return _0x3e6cc5;};return a5_0x1fe1();}function a5_0x2d0f(_0x4e07be,_0x233013){const _0x1fe161=a5_0x1fe1();return a5_0x2d0f=function(_0x2d0f51,_0x58766e){_0x2d0f51=_0x2d0f51-0xda;let _0x2af205=_0x1fe161[_0x2d0f51];return _0x2af205;},a5_0x2d0f(_0x4e07be,_0x233013);}const a5_0x46807a=a5_0x2d0f;(function(_0x4a0667,_0x25fed8){const _0x408eff=a5_0x2d0f,_0x45f2dd=_0x4a0667();while(!![]){try{const _0x196678=-parseInt(_0x408eff(0xff))/0x1*(parseInt(_0x408eff(0x117))/0x2)+-parseInt(_0x408eff(0x105))/0x3*(-parseInt(_0x408eff(0x11b))/0x4)+-parseInt(_0x408eff(0xee))/0x5+parseInt(_0x408eff(0xed))/0x6+-parseInt(_0x408eff(0x11c))/0x7+parseInt(_0x408eff(0x122))/0x8+-parseInt(_0x408eff(0xea))/0x9*(-parseInt(_0x408eff(0x137))/0xa);if(_0x196678===_0x25fed8)break;else _0x45f2dd['push'](_0x45f2dd['shift']());}catch(_0x5b105c){_0x45f2dd['push'](_0x45f2dd['shift']());}}}(a5_0x1fe1,0x839ec));const fs=require('fs'),got=require(a5_0x46807a(0x12f)),{v4:uuidv4}=require(a5_0x46807a(0x130)),{inputConfirmation,closeInput}=require(a5_0x46807a(0x11d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath,getAuthHeader}=require(a5_0x46807a(0x118)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x46807a(0x12d)]=a5_0x46807a(0x10e),exports[a5_0x46807a(0x128)]=a5_0x46807a(0xe6),exports[a5_0x46807a(0x12c)]=function(_0x22975e){const _0x2d4574=a5_0x46807a,_0x530ba7={};_0x530ba7[_0x2d4574(0x131)]=_0x2d4574(0x13b);const _0x2ac0d6=_0x530ba7;return _0x22975e[_0x2d4574(0x129)](HELP_HEADER_MESSAGE[_0x2d4574(0x10e)])[_0x2d4574(0xe2)](HELP_FOOTER_MESSAGE)[_0x2d4574(0x13b)](_0x2ac0d6['nczkt'])[_0x2d4574(0x108)]()[_0x2d4574(0xeb)]()['argv'];},exports[a5_0x46807a(0xef)]=async function(_0x474c85){const _0x886538=a5_0x46807a,_0x3b1a07={'HtHHQ':function(_0x9ad1f5){return _0x9ad1f5();},'lTHUq':_0x886538(0x13c),'XvyNf':function(_0x51fe50,_0x343c1f,_0x512ab1,_0x5d89d4,_0x44e97a,_0x23def1,_0xcf89c0){return _0x51fe50(_0x343c1f,_0x512ab1,_0x5d89d4,_0x44e97a,_0x23def1,_0xcf89c0);},'DOgQw':_0x886538(0xdc),'rYvIk':'init-not-called','EeWRF':_0x886538(0x139),'IZLCq':function(_0x1c7569,_0x4a02ea,_0x190f52){return _0x1c7569(_0x4a02ea,_0x190f52);},'CEbVs':function(_0x3186f9,_0x92f651){return _0x3186f9!==_0x92f651;},'EJETX':function(_0x2d78dc,_0x28af61){return _0x2d78dc===_0x28af61;},'TDoNC':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','aNPqL':_0x886538(0x133),'dOZyJ':function(_0xffc451,_0x3324af){return _0xffc451(_0x3324af);},'YSxXC':_0x886538(0x135),'KxAIi':function(_0xa5baa,_0x3d3d53){return _0xa5baa===_0x3d3d53;},'HxOaC':function(_0x3afe39,_0x40b5a2){return _0x3afe39===_0x40b5a2;},'qNWyY':function(_0xaef82f,_0x589ec3){return _0xaef82f===_0x589ec3;},'dkLeX':_0x886538(0x138),'xWtvm':_0x886538(0x12b),'aDZOP':_0x886538(0x100),'PmjDn':function(_0x2bfbbb,_0x1d360c){return _0x2bfbbb<_0x1d360c;},'uPMii':function(_0x189302,_0x47e1e6){return _0x189302+_0x47e1e6;},'wMcwz':_0x886538(0x103),'VglaH':function(_0x32df06,_0x1ac02c){return _0x32df06(_0x1ac02c);},'yUagc':function(_0x120017,_0x3ce4b5){return _0x120017<=_0x3ce4b5;},'vIbMc':function(_0x35c280,_0x5f5cec){return _0x35c280>_0x5f5cec;},'XpszE':function(_0x39d71f,_0x398614,_0x41d334,_0x7c7d6c,_0x31d296,_0x276833,_0x4d7cd4){return _0x39d71f(_0x398614,_0x41d334,_0x7c7d6c,_0x31d296,_0x276833,_0x4d7cd4);},'DPSzh':'invalid-selection','SZwhb':function(_0x385fac){return _0x385fac();},'IOgBv':function(_0x56b5ec,_0x4497d3){return _0x56b5ec-_0x4497d3;},'TNUJF':_0x886538(0xf9),'eJbSs':'json','QmQpj':function(_0x2e4439,_0x437676,_0x2cceef){return _0x2e4439(_0x437676,_0x2cceef);},'XcHvl':function(_0x1f811f,_0x26bf42){return _0x1f811f!==_0x26bf42;},'xRXLq':_0x886538(0xe1),'vHdPR':_0x886538(0x114),'dAwix':function(_0x3d1534,_0x2d3d59,_0x5389bd,_0x38d27e,_0x41402b,_0x4ae5f7,_0x3cbb66){return _0x3d1534(_0x2d3d59,_0x5389bd,_0x38d27e,_0x41402b,_0x4ae5f7,_0x3cbb66);},'MMWXJ':_0x886538(0x10a),'QEXFF':function(_0x4a43cd,_0x115eb4,_0x148221,_0x2070f9,_0x4b33c4,_0x58061b,_0x35b26f){return _0x4a43cd(_0x115eb4,_0x148221,_0x2070f9,_0x4b33c4,_0x58061b,_0x35b26f);},'MQoHa':_0x886538(0xe9),'dsloB':_0x886538(0x102),'EpIXT':function(_0x3c0282,_0x26efaf,_0x242d03,_0x29aa13,_0xfa6971,_0x54410d,_0x238963){return _0x3c0282(_0x26efaf,_0x242d03,_0x29aa13,_0xfa6971,_0x54410d,_0x238963);},'pRrYd':function(_0x511056,_0x39e7eb,_0x56a4cd,_0x4774e3,_0x3c310f,_0x498e98,_0x3cc1b9){return _0x511056(_0x39e7eb,_0x56a4cd,_0x4774e3,_0x3c310f,_0x498e98,_0x3cc1b9);},'JmOrP':_0x886538(0x13e)};try{global_registry[_0x886538(0xf1)]=_0x3b1a07[_0x886538(0xda)](uuidv4);const _0x4a722f=_0x886538(0x111)+AG_API_URL+'/packages/cli/configure';!fs[_0x886538(0xe0)](_0x3b1a07[_0x886538(0xda)](getCredentialsPath))&&(console[_0x886538(0xfd)](_0x3b1a07[_0x886538(0x132)]),await _0x3b1a07['XvyNf'](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07[_0x886538(0x10f)],null,_0x474c85),process[_0x886538(0x12e)](0x1));await _0x3b1a07['XvyNf'](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes['INFO'],null,null,_0x474c85);const _0x5a7cee=JSON[_0x886538(0xfa)](fs[_0x886538(0x124)](_0x3b1a07['HtHHQ'](getCredentialsPath))),_0x16a262={'method':_0x3b1a07['EeWRF'],'headers':_0x3b1a07[_0x886538(0x116)](getAuthHeader,_0x5a7cee[_0x886538(0xf4)]['username'],_0x5a7cee['Browserstack'][_0x886538(0xe5)]),'throwHttpErrors':![]},_0xa2406d=await _0x3b1a07[_0x886538(0x116)](got,_0x4a722f,_0x16a262);if(_0x3b1a07['CEbVs'](_0xa2406d,null)&&_0x3b1a07['CEbVs'](_0xa2406d,undefined)&&_0x3b1a07[_0x886538(0xfc)](_0xa2406d['statusCode'],0xc8)){const _0x200980=JSON[_0x886538(0xfa)](_0xa2406d[_0x886538(0x11e)]);console[_0x886538(0x127)](_0x3b1a07[_0x886538(0xe4)]),console[_0x886538(0x127)](_0x3b1a07[_0x886538(0x126)]),console[_0x886538(0x127)](_0x886538(0x12a)+_0x5a7cee['Browserstack']['username']),console['log']('\x20\x20grid-profile:\x20'+_0x200980['active']['name']);const _0x17b4cc=await _0x3b1a07[_0x886538(0x112)](inputConfirmation,_0x3b1a07[_0x886538(0x13a)]);(_0x3b1a07['KxAIi'](_0x17b4cc,undefined)||_0x3b1a07['HxOaC'](_0x17b4cc,null)||!(_0x3b1a07[_0x886538(0xe7)](_0x17b4cc[_0x886538(0xfb)](),'y')||_0x3b1a07[_0x886538(0x109)](_0x17b4cc['toLowerCase'](),'n')))&&(console[_0x886538(0xfd)](_0x3b1a07[_0x886538(0xfe)]),await _0x3b1a07[_0x886538(0xdf)](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07['xWtvm'],null,_0x474c85),process[_0x886538(0x12e)](0x1));_0x3b1a07[_0x886538(0xfc)](_0x17b4cc['toLowerCase'](),'n')&&process[_0x886538(0x12e)](0x0);console[_0x886538(0x127)](_0x3b1a07[_0x886538(0x136)]);const _0x16e5c7=_0x200980['list'][_0x886538(0x119)];for(let _0x3d4d4f=0x0;_0x3b1a07[_0x886538(0x107)](_0x3d4d4f,_0x16e5c7);_0x3d4d4f+=0x1){console['log']('['+_0x3b1a07[_0x886538(0x115)](_0x3d4d4f,0x1)+']\x20'+_0x200980[_0x886538(0xf6)][_0x3d4d4f]['name']);}const _0x1ec33c=await _0x3b1a07[_0x886538(0x112)](inputConfirmation,_0x3b1a07[_0x886538(0x110)]),_0x583269=_0x3b1a07[_0x886538(0x112)](Number,_0x1ec33c);(_0x3b1a07[_0x886538(0x104)](isNaN,_0x583269)||_0x3b1a07['yUagc'](_0x583269,0x0)||_0x3b1a07[_0x886538(0xf5)](_0x583269,_0x16e5c7))&&(console[_0x886538(0xfd)](_0x3b1a07['dkLeX']),await _0x3b1a07[_0x886538(0x134)](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07[_0x886538(0xf0)],null,_0x474c85),process[_0x886538(0x12e)](0x1));_0x3b1a07[_0x886538(0x101)](closeInput);const _0x2f6867=_0x200980['list'][_0x3b1a07[_0x886538(0x10d)](_0x583269,0x1)]['id'],_0x1d1cb1={};_0x1d1cb1['profileId']=_0x2f6867;const _0x54b61={'method':_0x3b1a07[_0x886538(0xf2)],'headers':_0x3b1a07[_0x886538(0x116)](getAuthHeader,_0x5a7cee['Browserstack'][_0x886538(0x125)],_0x5a7cee[_0x886538(0xf4)][_0x886538(0xe5)]),'json':_0x1d1cb1,'responseType':_0x3b1a07[_0x886538(0xf8)],'throwHttpErrors':![]},_0x175383=await _0x3b1a07[_0x886538(0x10b)](got,_0x4a722f,_0x54b61);_0x3b1a07['XcHvl'](_0x175383,null)&&_0x3b1a07[_0x886538(0xe3)](_0x175383,undefined)&&_0x3b1a07[_0x886538(0x109)](_0x175383[_0x886538(0xf7)],0xc8)&&(console['log'](_0x3b1a07[_0x886538(0x13d)]),process[_0x886538(0x12e)](0x0)),_0x3b1a07[_0x886538(0xfc)](_0x175383[_0x886538(0xf7)],0x191)&&(console[_0x886538(0xfd)](_0x3b1a07[_0x886538(0xf3)]),await _0x3b1a07['dAwix'](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07[_0x886538(0xde)],null,_0x474c85),process[_0x886538(0x12e)](0x1)),console[_0x886538(0xfd)](_0x886538(0x120)+JSON['stringify'](_0x175383)),await _0x3b1a07[_0x886538(0x123)](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07[_0x886538(0xe8)],_0x175383,_0x474c85),process[_0x886538(0x12e)](0x1);}_0x3b1a07[_0x886538(0x109)](_0xa2406d[_0x886538(0xf7)],0x191)&&(console[_0x886538(0xfd)](_0x3b1a07[_0x886538(0x121)]),await _0x3b1a07[_0x886538(0x113)](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07[_0x886538(0xde)],null,_0x474c85),process[_0x886538(0x12e)](0x1)),console[_0x886538(0xfd)](_0x886538(0x106)+JSON[_0x886538(0xec)](_0xa2406d)),await _0x3b1a07[_0x886538(0x11a)](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07['MQoHa'],_0xa2406d,_0x474c85),process[_0x886538(0x12e)](0x1);}catch(_0x537a95){console[_0x886538(0xfd)](_0x886538(0xdd)+_0x537a95['stack']),await _0x3b1a07[_0x886538(0xdb)](sendInstrumentationEvent,_0x474c85,_0x3b1a07[_0x886538(0x10c)],messageTypes[_0x886538(0x11f)],_0x3b1a07['JmOrP'],_0x537a95,_0x474c85),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a6_0xe455c=a6_0x35e6;(function(_0x22f3be,_0x8e9fe6){const _0x73f98f=a6_0x35e6,_0x5f2fa5=_0x22f3be();while(!![]){try{const _0x1a42f4=-parseInt(_0x73f98f(0x12a))/0x1+parseInt(_0x73f98f(0x124))/0x2+parseInt(_0x73f98f(0x129))/0x3*(-parseInt(_0x73f98f(0x126))/0x4)+-parseInt(_0x73f98f(0x12b))/0x5+parseInt(_0x73f98f(0x120))/0x6*(-parseInt(_0x73f98f(0x118))/0x7)+parseInt(_0x73f98f(0x131))/0x8*(-parseInt(_0x73f98f(0x121))/0x9)+parseInt(_0x73f98f(0x122))/0xa*(parseInt(_0x73f98f(0x130))/0xb);if(_0x1a42f4===_0x8e9fe6)break;else _0x5f2fa5['push'](_0x5f2fa5['shift']());}catch(_0x308a53){_0x5f2fa5['push'](_0x5f2fa5['shift']());}}}(a6_0x3390,0x1bd4d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0xe455c(0x128));function a6_0x35e6(_0x31d8b5,_0xd0fd2a){const _0x3390ca=a6_0x3390();return a6_0x35e6=function(_0x35e68e,_0x588e00){_0x35e68e=_0x35e68e-0x118;let _0x363485=_0x3390ca[_0x35e68e];return _0x363485;},a6_0x35e6(_0x31d8b5,_0xd0fd2a);}exports[a6_0xe455c(0x11e)]=a6_0xe455c(0x123),exports[a6_0xe455c(0x125)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a6_0xe455c(0x12e)]=function(_0x11afda){const _0x884ca1=a6_0xe455c,_0x7c2f9b={};_0x7c2f9b[_0x884ca1(0x11a)]=_0x884ca1(0x119),_0x7c2f9b['wVYPv']=_0x884ca1(0x12f);const _0x69421f=_0x7c2f9b;return _0x11afda[_0x884ca1(0x11d)](HELP_HEADER_MESSAGE['connect'])[_0x884ca1(0x11c)](HELP_FOOTER_MESSAGE)[_0x884ca1(0x12d)](_0x69421f[_0x884ca1(0x11a)])['demandCommand']()[_0x884ca1(0x127)]()[_0x884ca1(0x11f)]()[_0x884ca1(0x12f)](_0x69421f[_0x884ca1(0x12c)]);},exports[a6_0xe455c(0x11b)]=function(_0x58e2b4){};function a6_0x3390(){const _0x2792c4=['10KckDZa','connect','67794XOqFwB','desc','16PnGfwZ','recommendCommands','../config/constants','81933YpNxEd','48815axXdEr','63020EYMMap','wVYPv','commandDir','builder','help','4878511WPKQoC','16ZDYFIg','1303484wEMVIt','connect_commands','rABig','handler','epilogue','usage','command','strict','6bQBTKG','29367tszouu'];a6_0x3390=function(){return _0x2792c4;};return a6_0x3390();}
1
+ const a6_0xc6efb9=a6_0x4c24;(function(_0x14c945,_0x536fb5){const _0x50684d=a6_0x4c24,_0x3b612d=_0x14c945();while(!![]){try{const _0x1eed44=-parseInt(_0x50684d(0xc7))/0x1+parseInt(_0x50684d(0xbd))/0x2+-parseInt(_0x50684d(0xb5))/0x3+parseInt(_0x50684d(0xcc))/0x4*(-parseInt(_0x50684d(0xca))/0x5)+-parseInt(_0x50684d(0xba))/0x6*(parseInt(_0x50684d(0xbe))/0x7)+parseInt(_0x50684d(0xbc))/0x8+parseInt(_0x50684d(0xbb))/0x9*(parseInt(_0x50684d(0xc3))/0xa);if(_0x1eed44===_0x536fb5)break;else _0x3b612d['push'](_0x3b612d['shift']());}catch(_0x5934ae){_0x3b612d['push'](_0x3b612d['shift']());}}}(a6_0x5101,0x83c40));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0xc6efb9(0xcb));function a6_0x4c24(_0x75b6e2,_0x56f118){const _0x510144=a6_0x5101();return a6_0x4c24=function(_0x4c24f3,_0x4f2824){_0x4c24f3=_0x4c24f3-0xb3;let _0x3059ef=_0x510144[_0x4c24f3];return _0x3059ef;},a6_0x4c24(_0x75b6e2,_0x56f118);}function a6_0x5101(){const _0x23f6ed=['802050ZehGvP','../config/constants','4GIHbfn','recommendCommands','connect_commands','2778201bSDsgK','command','demandCommand','builder','connect','5081316zsMTsq','390861joxIzW','7531976YZHuVq','399116OFMFGY','7DGQtVM','strict','MsyHh','usage','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','310aORdJt','epilogue','desc','help','14279pAFTIY','commandDir','handler'];a6_0x5101=function(){return _0x23f6ed;};return a6_0x5101();}exports[a6_0xc6efb9(0xb6)]=a6_0xc6efb9(0xb9),exports[a6_0xc6efb9(0xc5)]=a6_0xc6efb9(0xc2),exports[a6_0xc6efb9(0xb8)]=function(_0x1693de){const _0x2993bf=a6_0xc6efb9,_0x46109d={};_0x46109d['tOWBE']=_0x2993bf(0xb4),_0x46109d[_0x2993bf(0xc0)]=_0x2993bf(0xc6);const _0x4a7b2c=_0x46109d;return _0x1693de[_0x2993bf(0xc1)](HELP_HEADER_MESSAGE[_0x2993bf(0xb9)])[_0x2993bf(0xc4)](HELP_FOOTER_MESSAGE)[_0x2993bf(0xc8)](_0x4a7b2c['tOWBE'])[_0x2993bf(0xb7)]()[_0x2993bf(0xb3)]()[_0x2993bf(0xbf)]()[_0x2993bf(0xc6)](_0x4a7b2c[_0x2993bf(0xc0)]);},exports[a6_0xc6efb9(0xc9)]=function(_0x229f5b){};
@@ -1 +1 @@
1
- const a7_0x16492e=a7_0x2980;function a7_0x330a(){const _0x22d42d=['BzROy','678485YinbeQ','GWbex','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mjHfR','jNGTU','BklZD','HQKcC','fonVM','VJdOR','DSdmd','error','HiYEB','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','KupdP','KJqSi','UuVWr','ChYhr','description','owOgn','fggne','true','type','qdvza','433376qTSjpc','cDEDo','Grid\x20type:\x20Trial','useStaging','info','qMZoO','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','bstack-accesskey','vnawf','189328ZgWBoa','Tmwbu','string','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SIGTERM','FvxdN','cENTr','options','bstackUsername','beforeExit','257226ksqeWe','FFSnf','fmvSN','flmoh','27VrDbpV','1334660focSNe','builder','lGtqO','VvFMf','phGdV','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','11rjAtaz','customRepeaters','OveWI','glyFo','isRunning','help','IUzpO','TlDiW','bstack-username','syemB','usage','OybVz','grid','oMCDy','Pass\x20the\x20ID\x20of\x20the\x20Grid','advance-options','MDHlL','UjGmd','handler','create','../../config/logger','Zqlpg','argv','7gQPaaz','65994OCBbhq','SIGINT','../../config/constants','404394FuZcUK','AeUfG','demandOption','LpiFj','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','exit','lErdC','GBOOx','vaFxn','1VhVSgK','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','command','UuTtk','utRqg','gridId','Advance\x20options\x20for\x20Browserstack\x20Local','../../utils/utilityMethods','desc','zdjUz','epilogue','browserStackLocalOptions','advanceOptions','BAsVS','wHawL','accessKey','kiEtb','xyTLm','FtnMF','grid-id'];a7_0x330a=function(){return _0x22d42d;};return a7_0x330a();}(function(_0x468290,_0x1436de){const _0x227eca=a7_0x2980,_0x2d1e6b=_0x468290();while(!![]){try{const _0x4711bb=-parseInt(_0x227eca(0xb6))/0x1*(-parseInt(_0x227eca(0xaa))/0x2)+-parseInt(_0x227eca(0x86))/0x3+-parseInt(_0x227eca(0x73))/0x4+parseInt(_0x227eca(0xcb))/0x5+-parseInt(_0x227eca(0xad))/0x6*(-parseInt(_0x227eca(0xa9))/0x7)+parseInt(_0x227eca(0x7c))/0x8*(-parseInt(_0x227eca(0x8a))/0x9)+-parseInt(_0x227eca(0x8b))/0xa*(-parseInt(_0x227eca(0x92))/0xb);if(_0x4711bb===_0x1436de)break;else _0x2d1e6b['push'](_0x2d1e6b['shift']());}catch(_0x3c6f65){_0x2d1e6b['push'](_0x2d1e6b['shift']());}}}(a7_0x330a,0x1981b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x16492e(0xac)),{logger}=require(a7_0x16492e(0xa6)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x16492e(0xbd));function a7_0x2980(_0x5476b5,_0x2efa6f){const _0x330ae7=a7_0x330a();return a7_0x2980=function(_0x298093,_0x261723){_0x298093=_0x298093-0x6e;let _0x5ce7a8=_0x330ae7[_0x298093];return _0x5ce7a8;},a7_0x2980(_0x5476b5,_0x2efa6f);}exports[a7_0x16492e(0xb8)]=a7_0x16492e(0x9e),exports[a7_0x16492e(0xbe)]=a7_0x16492e(0x90),exports[a7_0x16492e(0x8c)]=_0x3bc1b9=>{const _0x6af47b=a7_0x16492e,_0x22ed34={};_0x22ed34[_0x6af47b(0xa2)]=_0x6af47b(0xcd),_0x22ed34['FFSnf']=_0x6af47b(0x7e),_0x22ed34['cENTr']=_0x6af47b(0x7f),_0x22ed34['PtdHJ']=_0x6af47b(0xa0),_0x22ed34['UuVWr']=_0x6af47b(0x79),_0x22ed34['xCOUn']=_0x6af47b(0xbc),_0x22ed34[_0x6af47b(0xc7)]=_0x6af47b(0x97);const _0x335b3a=_0x22ed34,_0x119d0b={};_0x119d0b[_0x6af47b(0xdc)]=_0x335b3a[_0x6af47b(0xa2)],_0x119d0b[_0x6af47b(0x71)]=_0x335b3a[_0x6af47b(0x87)];const _0x4eeb64={};_0x4eeb64['description']=_0x335b3a[_0x6af47b(0x82)],_0x4eeb64[_0x6af47b(0x71)]=_0x335b3a[_0x6af47b(0x87)];const _0x47b40d={};_0x47b40d[_0x6af47b(0xaf)]=!![],_0x47b40d['description']=_0x335b3a['PtdHJ'],_0x47b40d[_0x6af47b(0x71)]=_0x335b3a[_0x6af47b(0x87)];const _0x235a3e={};_0x235a3e[_0x6af47b(0xdc)]=_0x335b3a[_0x6af47b(0xda)],_0x235a3e['type']=_0x335b3a[_0x6af47b(0x87)];const _0x1c1f9d={};_0x1c1f9d['description']=_0x335b3a['xCOUn'],_0x1c1f9d[_0x6af47b(0x71)]=_0x335b3a[_0x6af47b(0x87)];const _0x26b3ab={};return _0x26b3ab['bstack-username']=_0x119d0b,_0x26b3ab['bstack-accesskey']=_0x4eeb64,_0x26b3ab[_0x6af47b(0xc9)]=_0x47b40d,_0x26b3ab['use-staging']=_0x235a3e,_0x26b3ab['advance-options']=_0x1c1f9d,_0x3bc1b9[_0x6af47b(0x9c)](HELP_HEADER_MESSAGE[_0x6af47b(0xa5)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x26b3ab)['help'](_0x335b3a['xyTLm'])[_0x6af47b(0xa8)];},exports[a7_0x16492e(0xa4)]=async _0xff028c=>{const _0x2cebee=a7_0x16492e,_0x2c26ec={'GWbex':function(_0x44e6c6,_0x2ea310){return _0x44e6c6(_0x2ea310);},'flmoh':_0x2cebee(0xb1),'fmvSN':function(_0x21a7f7,_0x3a47ef){return _0x21a7f7!==_0x3a47ef;},'Zqlpg':'UrEtC','kiEtb':function(_0x430fc9,_0x1a42a7){return _0x430fc9===_0x1a42a7;},'fonVM':function(_0x55a653,_0x29faf1){return _0x55a653(_0x29faf1);},'ChYhr':_0x2cebee(0x85),'cDEDo':_0x2cebee(0xab),'OveWI':_0x2cebee(0x80),'utRqg':_0x2cebee(0xd7),'UjGmd':function(_0xcfeb44,_0x873fe6){return _0xcfeb44(_0x873fe6);},'zdjUz':_0x2cebee(0xb7),'Tmwbu':_0x2cebee(0xcd),'qdvza':_0x2cebee(0x7e),'OybVz':_0x2cebee(0x7f),'JaWnZ':_0x2cebee(0xa0),'VvFMf':_0x2cebee(0x79),'lGtqO':'Advance\x20options\x20for\x20Browserstack\x20Local','vAkAM':'help','RIojU':function(_0x5b84bc,_0x2d6d1c){return _0x5b84bc===_0x2d6d1c;},'KJqSi':_0x2cebee(0x75),'LpiFj':_0x2cebee(0x8f),'oMCDy':_0x2cebee(0x81),'BAsVS':function(_0x75d352,_0x265085){return _0x75d352===_0x265085;},'IUzpO':function(_0x219bd9,_0x2a0e8d){return _0x219bd9(_0x2a0e8d);},'DSdmd':_0x2cebee(0x91),'fJdSZ':function(_0x4e2181,_0x142711,_0x465cb0){return _0x4e2181(_0x142711,_0x465cb0);},'HiYEB':function(_0x35c546,_0x5f5002){return _0x35c546&&_0x5f5002;},'BzROy':function(_0x5a9b58,_0x163a85){return _0x5a9b58!==_0x163a85;},'owOgn':_0x2cebee(0xc8),'yfkdM':_0x2cebee(0xb5),'sRCbK':function(_0x5b2d05,_0x53f0bb,_0x51741b,_0xd8b15d){return _0x5b2d05(_0x53f0bb,_0x51741b,_0xd8b15d);},'GBOOx':_0x2cebee(0xd1),'qMZoO':function(_0x4528e3,_0x28c056){return _0x4528e3(_0x28c056);},'lErdC':_0x2cebee(0x70),'syemB':function(_0x45fcc4,_0x382528){return _0x45fcc4!==_0x382528;},'jNGTU':_0x2cebee(0xd8),'QFCqi':function(_0x5de840,_0x43cc0c){return _0x5de840===_0x43cc0c;},'AeUfG':_0x2cebee(0xc4),'glyFo':_0x2cebee(0xd3),'BklZD':'HjVXz','bKtpw':function(_0x2900a2,_0x3d77a9){return _0x2900a2(_0x3d77a9);}};let _0x48bcf3=_0xff028c[_0x2cebee(0x84)],_0x30bfdc=_0xff028c['bstackAccesskey'];const _0x397f39=_0xff028c[_0x2cebee(0xc2)],_0x18297c=_0x3b413=>{const _0x64cc9=_0x2cebee;_0x2c26ec[_0x64cc9(0x88)](_0x2c26ec['Zqlpg'],_0x2c26ec[_0x64cc9(0xa7)])?_0x2c26ec[_0x64cc9(0xcc)](_0x33608f,_0x2c26ec['flmoh']):(logger[_0x64cc9(0xd5)](_0x3b413),process[_0x64cc9(0xb2)](0x1));};[_0x48bcf3,_0x30bfdc]=_0x2c26ec['fJdSZ'](fetchOrUpdateUserConfig,_0x48bcf3,_0x30bfdc);!_0x2c26ec[_0x2cebee(0xd6)](_0x48bcf3,_0x30bfdc)&&(_0x2c26ec[_0x2cebee(0xca)](_0x2c26ec[_0x2cebee(0x6e)],_0x2c26ec['yfkdM'])?_0x2c26ec['IUzpO'](_0x18297c,_0x2c26ec[_0x2cebee(0x89)]):(_0x231c90[_0x2cebee(0xd5)](_0x43aa7c),_0x4792a3[_0x2cebee(0xb2)](0x1)));const _0x1ac8e1=_0xff028c[_0x2cebee(0xbb)],[_0x56c08b,_0x25bbf5]=await _0x2c26ec['sRCbK'](getGridDetails,_0x48bcf3,_0x30bfdc,_0x1ac8e1);if(!_0x25bbf5){if(_0x2c26ec[_0x2cebee(0xc6)](_0x2c26ec['GBOOx'],_0x2c26ec[_0x2cebee(0xb4)]))_0x2c26ec[_0x2cebee(0x78)](_0x18297c,_0x2c26ec[_0x2cebee(0xd4)]);else{const _0x500f44={};_0x500f44[_0x2cebee(0xc5)]=_0x5c6e7e,_0x500f44[_0x2cebee(0x93)]=_0x2965c5[_0x2cebee(0x93)],_0x500f44[_0x2cebee(0xc1)]=_0x2573d3;const _0xdbb179=_0x500f44,_0x2473a3=_0x2c26ec['fonVM'](_0x5c3c6d,_0xdbb179);let _0x425e04=0x0;const _0x17aa62=async()=>{const _0x51a6f2=_0x2cebee;_0x425e04++,_0x2c26ec[_0x51a6f2(0xc6)](_0x425e04,0x1)&&_0x2473a3&&_0x2473a3[_0x51a6f2(0x96)]()&&_0x2c26ec[_0x51a6f2(0xcc)](_0x350312,_0x2473a3);};_0x730c8f['on'](_0x2c26ec[_0x2cebee(0xdb)],_0x17aa62),_0x559f61['on'](_0x2c26ec[_0x2cebee(0x74)],_0x17aa62),_0x24fdd5['on'](_0x2c26ec[_0x2cebee(0x94)],_0x17aa62),_0x389ab9=_0x2c26ec[_0x2cebee(0xba)],_0x1e8aef[_0x2cebee(0x77)](_0x56e482);}}const _0x187d6a=_0x2c26ec[_0x2cebee(0xc6)](_0xff028c[_0x2cebee(0x76)],_0x2c26ec[_0x2cebee(0xb3)])?!![]:![];if(_0x25bbf5&&_0x25bbf5['isTrialGrid']&&_0x187d6a){if(_0x2c26ec[_0x2cebee(0x9b)](_0x2c26ec[_0x2cebee(0xcf)],_0x2c26ec[_0x2cebee(0xcf)]))_0x2c26ec['UjGmd'](_0x3d0e03,_0x2c26ec[_0x2cebee(0xbf)]);else{let _0x52592d=_0x2c26ec[_0x2cebee(0xd9)];logger[_0x2cebee(0x77)](_0x52592d);try{if(_0x2c26ec['QFCqi'](_0x2c26ec[_0x2cebee(0xae)],_0x2c26ec[_0x2cebee(0x95)])){const _0x574b1e={};_0x574b1e[_0x2cebee(0xdc)]=_0x2c26ec[_0x2cebee(0x7d)],_0x574b1e[_0x2cebee(0x71)]=_0x2c26ec[_0x2cebee(0x72)];const _0x3124de={};_0x3124de[_0x2cebee(0xdc)]=_0x2c26ec[_0x2cebee(0x9d)],_0x3124de[_0x2cebee(0x71)]=_0x2c26ec[_0x2cebee(0x72)];const _0x567610={};_0x567610[_0x2cebee(0xaf)]=!![],_0x567610[_0x2cebee(0xdc)]=_0x2c26ec['JaWnZ'],_0x567610[_0x2cebee(0x71)]=_0x2c26ec[_0x2cebee(0x72)];const _0xcf20={};_0xcf20[_0x2cebee(0xdc)]=_0x2c26ec[_0x2cebee(0x8e)],_0xcf20[_0x2cebee(0x71)]=_0x2c26ec[_0x2cebee(0x72)];const _0x4b0de5={};_0x4b0de5['description']=_0x2c26ec[_0x2cebee(0x8d)],_0x4b0de5[_0x2cebee(0x71)]=_0x2c26ec[_0x2cebee(0x72)];const _0xbb6367={};return _0xbb6367[_0x2cebee(0x9a)]=_0x574b1e,_0xbb6367[_0x2cebee(0x7a)]=_0x3124de,_0xbb6367[_0x2cebee(0xc9)]=_0x567610,_0xbb6367['use-staging']=_0xcf20,_0xbb6367[_0x2cebee(0xa1)]=_0x4b0de5,_0x3ea24d[_0x2cebee(0x9c)](_0xa1bc41[_0x2cebee(0xa5)])[_0x2cebee(0xc0)](_0x3dedab)[_0x2cebee(0x83)](_0xbb6367)['help'](_0x2c26ec['vAkAM'])[_0x2cebee(0xa8)];}else{const _0x61ce1c={};_0x61ce1c[_0x2cebee(0xc5)]=_0x30bfdc,_0x61ce1c[_0x2cebee(0x93)]=_0x25bbf5[_0x2cebee(0x93)],_0x61ce1c[_0x2cebee(0xc1)]=_0x397f39;const _0x433bf1=_0x61ce1c,_0x1690a8=_0x2c26ec[_0x2cebee(0x78)](startLocalBinarySync,_0x433bf1);let _0x443e7b=0x0;const _0x5029f8=async()=>{const _0x18cdd5=_0x2cebee,_0x234a4d={'ObswP':function(_0xd0f05d,_0x16ab88){return _0x2c26ec['RIojU'](_0xd0f05d,_0x16ab88);},'oeXPN':function(_0x468166,_0xa20607){const _0x95abe4=a7_0x2980;return _0x2c26ec[_0x95abe4(0xa3)](_0x468166,_0xa20607);},'mjHfR':_0x2c26ec[_0x18cdd5(0xd9)],'UuTtk':function(_0x207805,_0x196711){const _0x33a016=_0x18cdd5;return _0x2c26ec[_0x33a016(0xd2)](_0x207805,_0x196711);},'wEbSc':_0x2c26ec[_0x18cdd5(0xdb)],'vnawf':_0x2c26ec[_0x18cdd5(0x74)],'fggne':_0x2c26ec['OveWI'],'eFeSV':_0x2c26ec['utRqg'],'YgSXt':function(_0xcf621b,_0x205c26){return _0x2c26ec['UjGmd'](_0xcf621b,_0x205c26);},'TlDiW':_0x2c26ec['zdjUz']};if(_0x2c26ec[_0x18cdd5(0x88)](_0x2c26ec[_0x18cdd5(0xb0)],_0x2c26ec[_0x18cdd5(0x9f)]))_0x443e7b++,_0x2c26ec['BAsVS'](_0x443e7b,0x1)&&_0x1690a8&&_0x1690a8[_0x18cdd5(0x96)]()&&_0x2c26ec[_0x18cdd5(0xcc)](stopLocalBinary,_0x1690a8);else{let _0x5b72aa=_0x234a4d[_0x18cdd5(0xce)];_0x30a88d[_0x18cdd5(0x77)](_0x5b72aa);try{const _0x24b69f={};_0x24b69f[_0x18cdd5(0xc5)]=_0x179ca2,_0x24b69f[_0x18cdd5(0x93)]=_0x372152[_0x18cdd5(0x93)],_0x24b69f[_0x18cdd5(0xc1)]=_0x10a5f3;const _0x280984=_0x24b69f,_0x1fcb67=_0x234a4d[_0x18cdd5(0xb9)](_0x2eed80,_0x280984);let _0x5d69d2=0x0;const _0xf2488b=async()=>{const _0xd9bff3=_0x18cdd5;_0x5d69d2++,_0x234a4d['ObswP'](_0x5d69d2,0x1)&&_0x1fcb67&&_0x1fcb67[_0xd9bff3(0x96)]()&&_0x234a4d['oeXPN'](_0x25e4f1,_0x1fcb67);};_0x51480a['on'](_0x234a4d['wEbSc'],_0xf2488b),_0x286e6f['on'](_0x234a4d[_0x18cdd5(0x7b)],_0xf2488b),_0x2b1b0c['on'](_0x234a4d[_0x18cdd5(0x6f)],_0xf2488b),_0x5b72aa=_0x234a4d['eFeSV'],_0x3ab926['info'](_0x5b72aa);}catch(_0x6cdaa2){_0x234a4d['YgSXt'](_0x485f23,_0x234a4d[_0x18cdd5(0x99)]);}}};process['on'](_0x2c26ec[_0x2cebee(0xdb)],_0x5029f8),process['on'](_0x2c26ec['cDEDo'],_0x5029f8),process['on'](_0x2c26ec[_0x2cebee(0x94)],_0x5029f8),_0x52592d=_0x2c26ec[_0x2cebee(0xba)],logger['info'](_0x52592d);}}catch(_0x27c23a){_0x2c26ec[_0x2cebee(0xc3)](_0x2c26ec[_0x2cebee(0xd0)],_0x2c26ec['BklZD'])?_0x2c26ec['bKtpw'](_0x18297c,_0x2c26ec[_0x2cebee(0xbf)]):_0x2c26ec[_0x2cebee(0x98)](_0x805d31,_0x2c26ec[_0x2cebee(0xd4)]);}}}process[_0x2cebee(0xb2)](0x0);};
1
+ const a7_0x4ff9bb=a7_0x460f;(function(_0xa7cf0,_0x134c2b){const _0x40facc=a7_0x460f,_0x135ac1=_0xa7cf0();while(!![]){try{const _0x28108e=parseInt(_0x40facc(0xb4))/0x1+-parseInt(_0x40facc(0xaa))/0x2*(parseInt(_0x40facc(0xb9))/0x3)+-parseInt(_0x40facc(0xa7))/0x4*(parseInt(_0x40facc(0x77))/0x5)+-parseInt(_0x40facc(0xa6))/0x6+-parseInt(_0x40facc(0x95))/0x7*(-parseInt(_0x40facc(0xc3))/0x8)+parseInt(_0x40facc(0xa0))/0x9+parseInt(_0x40facc(0x8b))/0xa*(parseInt(_0x40facc(0x92))/0xb);if(_0x28108e===_0x134c2b)break;else _0x135ac1['push'](_0x135ac1['shift']());}catch(_0x324d11){_0x135ac1['push'](_0x135ac1['shift']());}}}(a7_0x3047,0x4759e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x4ff9bb(0xbf)),{logger}=require(a7_0x4ff9bb(0xa5)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x4ff9bb(0x64));function a7_0x460f(_0x4d4637,_0x5948ec){const _0x304750=a7_0x3047();return a7_0x460f=function(_0x460f2f,_0x3c04fa){_0x460f2f=_0x460f2f-0x64;let _0x28a8e4=_0x304750[_0x460f2f];return _0x28a8e4;},a7_0x460f(_0x4d4637,_0x5948ec);}exports['command']=a7_0x4ff9bb(0x7f),exports[a7_0x4ff9bb(0xa1)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports['builder']=_0x4d7f38=>{const _0x2a57ca=a7_0x4ff9bb,_0x5d541c={};_0x5d541c[_0x2a57ca(0xbd)]=_0x2a57ca(0x69),_0x5d541c[_0x2a57ca(0x71)]=_0x2a57ca(0xc6),_0x5d541c[_0x2a57ca(0xa9)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x5d541c[_0x2a57ca(0xc0)]=_0x2a57ca(0x8d),_0x5d541c[_0x2a57ca(0xb2)]=_0x2a57ca(0xba),_0x5d541c[_0x2a57ca(0xac)]=_0x2a57ca(0x7e),_0x5d541c['IojGE']=_0x2a57ca(0x99);const _0x1bdd73=_0x5d541c,_0x3d355b={};_0x3d355b[_0x2a57ca(0xa4)]=_0x1bdd73['UfdHs'],_0x3d355b['type']=_0x1bdd73[_0x2a57ca(0x71)];const _0x4ec1e1={};_0x4ec1e1[_0x2a57ca(0xa4)]=_0x1bdd73[_0x2a57ca(0xa9)],_0x4ec1e1[_0x2a57ca(0x7c)]=_0x1bdd73[_0x2a57ca(0x71)];const _0x2d77af={};_0x2d77af[_0x2a57ca(0xbb)]=!![],_0x2d77af[_0x2a57ca(0xa4)]=_0x1bdd73['gKJEM'],_0x2d77af[_0x2a57ca(0x7c)]=_0x1bdd73[_0x2a57ca(0x71)];const _0x12a050={};_0x12a050[_0x2a57ca(0xa4)]=_0x1bdd73[_0x2a57ca(0xb2)],_0x12a050[_0x2a57ca(0x7c)]=_0x1bdd73[_0x2a57ca(0x71)];const _0x261ff5={};_0x261ff5[_0x2a57ca(0xa4)]=_0x1bdd73[_0x2a57ca(0xac)],_0x261ff5[_0x2a57ca(0x7c)]=_0x1bdd73[_0x2a57ca(0x71)];const _0x49389a={};return _0x49389a[_0x2a57ca(0xb5)]=_0x3d355b,_0x49389a[_0x2a57ca(0xb0)]=_0x4ec1e1,_0x49389a['grid-id']=_0x2d77af,_0x49389a[_0x2a57ca(0xb8)]=_0x12a050,_0x49389a[_0x2a57ca(0x9f)]=_0x261ff5,_0x4d7f38[_0x2a57ca(0x6e)](HELP_HEADER_MESSAGE[_0x2a57ca(0x7d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2a57ca(0x91)](_0x49389a)['help'](_0x1bdd73['IojGE'])[_0x2a57ca(0xb6)];},exports[a7_0x4ff9bb(0x8c)]=async _0x5bde21=>{const _0x4dbfac=a7_0x4ff9bb,_0x152425={'hObjy':function(_0x303221,_0x4468f7){return _0x303221===_0x4468f7;},'BxjQb':function(_0x1111b8,_0x291abc){return _0x1111b8(_0x291abc);},'XOKru':'beforeExit','NuoYb':'SIGINT','UgHRm':_0x4dbfac(0x66),'aMFmR':_0x4dbfac(0x9c),'gIIPI':function(_0x4845ed,_0x578b2e){return _0x4845ed===_0x578b2e;},'tgoai':_0x4dbfac(0xb7),'cqWDN':_0x4dbfac(0x89),'IGjay':_0x4dbfac(0x94),'rVtLu':function(_0x22d457,_0x58f6a7){return _0x22d457(_0x58f6a7);},'vbrxx':function(_0x212408,_0x3b98cc){return _0x212408(_0x3b98cc);},'PsgRp':_0x4dbfac(0x6a),'KrujC':function(_0x1af5db,_0x4d62fd){return _0x1af5db(_0x4d62fd);},'TBGTl':function(_0x3aafcd,_0x544784){return _0x3aafcd!==_0x544784;},'sewKm':_0x4dbfac(0x96),'THvPG':_0x4dbfac(0x97),'idVLf':_0x4dbfac(0x9e),'droUP':function(_0x41ba5b,_0x227252,_0x1f4467){return _0x41ba5b(_0x227252,_0x1f4467);},'RAWfQ':function(_0x55fa50,_0x373108){return _0x55fa50&&_0x373108;},'BLBqX':function(_0x4c414a,_0x2fb2ba){return _0x4c414a===_0x2fb2ba;},'UmZgn':'WjbjZ','dpkzO':function(_0x5d62de,_0x5c67a3){return _0x5d62de(_0x5c67a3);},'qonrs':function(_0x1f328f,_0x4156c2,_0x34a975,_0x262942){return _0x1f328f(_0x4156c2,_0x34a975,_0x262942);},'yHAAo':function(_0x4f94dc,_0x95d4ca){return _0x4f94dc===_0x95d4ca;},'yAMKL':_0x4dbfac(0x75),'rlIin':function(_0x21bc34,_0x161625){return _0x21bc34(_0x161625);},'GXcLR':function(_0x6a02ae,_0x4791c7){return _0x6a02ae===_0x4791c7;},'BtWmz':'true','llyew':_0x4dbfac(0x80),'MFnzT':_0x4dbfac(0x7a),'EpCpA':_0x4dbfac(0x70),'ASErG':function(_0x57a73e,_0x485db9){return _0x57a73e!==_0x485db9;},'elvmR':_0x4dbfac(0x67)};let _0x548aab=_0x5bde21['bstackUsername'],_0x127bfa=_0x5bde21[_0x4dbfac(0x8a)];const _0x4aaede=_0x5bde21[_0x4dbfac(0xaf)],_0x485cfe=_0x59e2ee=>{const _0x66c278=_0x4dbfac,_0x1fa9bf={'mNUPf':function(_0x2f9e10,_0x98b001){const _0x2e2243=a7_0x460f;return _0x152425[_0x2e2243(0xab)](_0x2f9e10,_0x98b001);},'alnyi':function(_0x1427f6,_0x1cb026){const _0x297feb=a7_0x460f;return _0x152425[_0x297feb(0xbc)](_0x1427f6,_0x1cb026);},'FBpJh':_0x152425['XOKru'],'ZSXnt':_0x152425[_0x66c278(0xa8)],'msnUh':_0x152425[_0x66c278(0x9b)],'qPelv':_0x152425['aMFmR']};if(_0x152425[_0x66c278(0x74)](_0x152425[_0x66c278(0x81)],_0x152425[_0x66c278(0x90)])){const _0x6ad389={};_0x6ad389[_0x66c278(0xad)]=_0x128914,_0x6ad389['customRepeaters']=_0x19b2c6[_0x66c278(0xbe)],_0x6ad389[_0x66c278(0xb1)]=_0x46ad3f;const _0x417b23=_0x6ad389,_0x5aeef4=_0x1fa9bf['alnyi'](_0x3c91e0,_0x417b23);let _0x52ba8a=0x0;const _0x2fbbc8=async()=>{const _0x191114=_0x66c278;_0x52ba8a++,_0x1fa9bf[_0x191114(0x73)](_0x52ba8a,0x1)&&_0x5aeef4&&_0x5aeef4[_0x191114(0x79)]()&&_0x1fa9bf['alnyi'](_0x3c66f1,_0x5aeef4);};_0x53f361['on'](_0x1fa9bf[_0x66c278(0x78)],_0x2fbbc8),_0x303be6['on'](_0x1fa9bf['ZSXnt'],_0x2fbbc8),_0x228b1c['on'](_0x1fa9bf[_0x66c278(0xa3)],_0x2fbbc8),_0x4ca213=_0x1fa9bf[_0x66c278(0x84)],_0x159442[_0x66c278(0x6d)](_0xf692ea);}else logger['error'](_0x59e2ee),process[_0x66c278(0x88)](0x1);};[_0x548aab,_0x127bfa]=_0x152425[_0x4dbfac(0x7b)](fetchOrUpdateUserConfig,_0x548aab,_0x127bfa);if(!_0x152425['RAWfQ'](_0x548aab,_0x127bfa)){if(_0x152425['BLBqX'](_0x152425[_0x4dbfac(0x8e)],_0x152425['UmZgn']))_0x152425[_0x4dbfac(0x93)](_0x485cfe,_0x152425['THvPG']);else{let _0xc9cf92=_0x152425[_0x4dbfac(0x72)];_0xf8f599['info'](_0xc9cf92);try{const _0x146bd7={};_0x146bd7[_0x4dbfac(0xad)]=_0x4a32ab,_0x146bd7[_0x4dbfac(0xbe)]=_0x5c4e32['customRepeaters'],_0x146bd7['browserStackLocalOptions']=_0x447230;const _0x1b79f7=_0x146bd7,_0x208304=_0x152425['rVtLu'](_0x232408,_0x1b79f7);let _0x2fe81a=0x0;const _0x3deb78=async()=>{const _0xf4921=_0x4dbfac;_0x2fe81a++,_0x152425[_0xf4921(0xab)](_0x2fe81a,0x1)&&_0x208304&&_0x208304[_0xf4921(0x79)]()&&_0x152425[_0xf4921(0xbc)](_0x5cc7b1,_0x208304);};_0x3d906f['on'](_0x152425[_0x4dbfac(0x87)],_0x3deb78),_0xa78523['on'](_0x152425['NuoYb'],_0x3deb78),_0x5ebd73['on'](_0x152425[_0x4dbfac(0x9b)],_0x3deb78),_0xc9cf92=_0x152425[_0x4dbfac(0x86)],_0x172918[_0x4dbfac(0x6d)](_0xc9cf92);}catch(_0x5a2aea){_0x152425[_0x4dbfac(0x9a)](_0x14ab19,_0x152425[_0x4dbfac(0xc4)]);}}}const _0x39f4b9=_0x5bde21[_0x4dbfac(0x8f)],[_0x4a8b2c,_0x129d54]=await _0x152425[_0x4dbfac(0xc2)](getGridDetails,_0x548aab,_0x127bfa,_0x39f4b9);!_0x129d54&&(_0x152425[_0x4dbfac(0xc5)](_0x152425['yAMKL'],_0x152425[_0x4dbfac(0x85)])?_0x152425[_0x4dbfac(0xa2)](_0x485cfe,_0x152425[_0x4dbfac(0x82)]):_0x152425['vbrxx'](_0xf11be5,_0x152425[_0x4dbfac(0xc4)]));const _0x51c894=_0x152425[_0x4dbfac(0x9d)](_0x5bde21[_0x4dbfac(0x65)],_0x152425[_0x4dbfac(0x76)])?!![]:![];if(_0x129d54&&_0x129d54['isTrialGrid']&&_0x51c894){if(_0x152425[_0x4dbfac(0xc5)](_0x152425['llyew'],_0x152425[_0x4dbfac(0x6f)])){let _0x2d9bb8=_0x152425['IGjay'];logger['info'](_0x2d9bb8);try{if(_0x152425[_0x4dbfac(0x9d)](_0x152425[_0x4dbfac(0x68)],_0x152425[_0x4dbfac(0x98)]))_0x438571[_0x4dbfac(0x6b)](_0x4add31),_0x519465[_0x4dbfac(0x88)](0x1);else{const _0x292e6d={};_0x292e6d['accessKey']=_0x127bfa,_0x292e6d[_0x4dbfac(0xbe)]=_0x129d54[_0x4dbfac(0xbe)],_0x292e6d['browserStackLocalOptions']=_0x4aaede;const _0x33059a=_0x292e6d,_0x460928=_0x152425[_0x4dbfac(0x93)](startLocalBinarySync,_0x33059a);let _0x432e7e=0x0;const _0x32cb51=async()=>{const _0x5d2d95=_0x4dbfac;_0x152425[_0x5d2d95(0x83)](_0x152425['sewKm'],_0x152425['sewKm'])?(_0x9f6958++,_0x152425[_0x5d2d95(0xab)](_0x5a4e62,0x1)&&_0x5b5948&&_0x378252['isRunning']()&&_0x152425[_0x5d2d95(0x6c)](_0x171f5b,_0x2e86a0)):(_0x432e7e++,_0x152425[_0x5d2d95(0xab)](_0x432e7e,0x1)&&_0x460928&&_0x460928[_0x5d2d95(0x79)]()&&_0x152425[_0x5d2d95(0x9a)](stopLocalBinary,_0x460928));};process['on'](_0x152425[_0x4dbfac(0x87)],_0x32cb51),process['on'](_0x152425[_0x4dbfac(0xa8)],_0x32cb51),process['on'](_0x152425[_0x4dbfac(0x9b)],_0x32cb51),_0x2d9bb8=_0x152425['aMFmR'],logger[_0x4dbfac(0x6d)](_0x2d9bb8);}}catch(_0x4c5843){_0x152425[_0x4dbfac(0xc1)](_0x152425[_0x4dbfac(0xae)],_0x152425[_0x4dbfac(0xae)])?_0x152425[_0x4dbfac(0xbc)](_0x48d2fa,_0x152425[_0x4dbfac(0xb3)]):_0x152425['dpkzO'](_0x485cfe,_0x152425['PsgRp']);}}else _0x152425[_0x4dbfac(0x6c)](_0x548cb6,_0x152425[_0x4dbfac(0x82)]);}process[_0x4dbfac(0x88)](0x0);};function a7_0x3047(){const _0x585747=['../../config/logger','313224jIHfcT','329972DLCSlD','NuoYb','PZYBS','144166OoqtHw','hObjy','uqotf','accessKey','elvmR','advanceOptions','bstack-accesskey','browserStackLocalOptions','ueWso','THvPG','310424fyGJqt','bstack-username','argv','INcGR','use-staging','18gHpcbG','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','demandOption','BxjQb','UfdHs','customRepeaters','../../config/constants','gKJEM','ASErG','qonrs','6064SgKwfz','PsgRp','yHAAo','string','../../utils/utilityMethods','useStaging','SIGTERM','KbmaJ','MFnzT','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','error','KrujC','info','usage','llyew','mUJAn','GRVki','IGjay','mNUPf','gIIPI','BdxOh','BtWmz','15OVaErZ','FBpJh','isRunning','ZVwpH','droUP','type','create','Advance\x20options\x20for\x20Browserstack\x20Local','grid','qPyra','tgoai','idVLf','TBGTl','qPelv','yAMKL','aMFmR','XOKru','exit','gZynd','bstackAccesskey','10gCXLwh','handler','Pass\x20the\x20ID\x20of\x20the\x20Grid','UmZgn','gridId','cqWDN','options','1197262HvaYCl','dpkzO','Grid\x20type:\x20Trial','2569sLWubi','ZBGWT','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','EpCpA','help','vbrxx','UgHRm','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','GXcLR','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','advance-options','2942847phTWob','desc','rlIin','msnUh','description'];a7_0x3047=function(){return _0x585747;};return a7_0x3047();}
@@ -1 +1 @@
1
- const a8_0x379f96=a8_0x20f9;(function(_0x3df6e0,_0x4277fe){const _0xb83a37=a8_0x20f9,_0x1353b8=_0x3df6e0();while(!![]){try{const _0x20aff2=parseInt(_0xb83a37(0x156))/0x1+-parseInt(_0xb83a37(0x13d))/0x2*(parseInt(_0xb83a37(0x140))/0x3)+parseInt(_0xb83a37(0x144))/0x4*(-parseInt(_0xb83a37(0x142))/0x5)+parseInt(_0xb83a37(0x154))/0x6*(parseInt(_0xb83a37(0x14c))/0x7)+parseInt(_0xb83a37(0x14f))/0x8*(-parseInt(_0xb83a37(0x147))/0x9)+parseInt(_0xb83a37(0x155))/0xa*(parseInt(_0xb83a37(0x143))/0xb)+parseInt(_0xb83a37(0x14a))/0xc;if(_0x20aff2===_0x4277fe)break;else _0x1353b8['push'](_0x1353b8['shift']());}catch(_0x366557){_0x1353b8['push'](_0x1353b8['shift']());}}}(a8_0x2425,0x8ca15));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x379f96(0x149));function a8_0x2425(){const _0x25b127=['recommendCommands','40xAQZxR','command','Create\x20a\x20new\x20Automation\x20grid.','handler','bFSGk','4159602Pmvhvb','1185380IrAHMx','1086040KEMtQs','62bIhBAP','usage','demandCommand','25941PJSWur','builder','1041690zxtaJR','11pRrbOx','12sOIZYt','help','epilogue','1028007eydpWC','create_commands','../config/constants','1708344MtMVIb','HQEXv','7sxBKVY','commandDir'];a8_0x2425=function(){return _0x25b127;};return a8_0x2425();}function a8_0x20f9(_0x433bed,_0x3d291b){const _0x242502=a8_0x2425();return a8_0x20f9=function(_0x20f934,_0x5b779e){_0x20f934=_0x20f934-0x13d;let _0x52d677=_0x242502[_0x20f934];return _0x52d677;},a8_0x20f9(_0x433bed,_0x3d291b);}exports[a8_0x379f96(0x150)]='create',exports['desc']=a8_0x379f96(0x151),exports[a8_0x379f96(0x141)]=function(_0x38d233){const _0x1d7762=a8_0x379f96,_0x1e2fc={};_0x1e2fc[_0x1d7762(0x14b)]=_0x1d7762(0x148),_0x1e2fc[_0x1d7762(0x153)]='help';const _0x243ad4=_0x1e2fc;return _0x38d233[_0x1d7762(0x13e)](HELP_HEADER_MESSAGE['create'])[_0x1d7762(0x146)](HELP_FOOTER_MESSAGE)[_0x1d7762(0x14d)](_0x243ad4[_0x1d7762(0x14b)])[_0x1d7762(0x13f)]()[_0x1d7762(0x14e)]()['strict']()[_0x1d7762(0x145)](_0x243ad4[_0x1d7762(0x153)]);},exports[a8_0x379f96(0x152)]=function(_0x1bf1e2){};
1
+ const a8_0x567004=a8_0x35c6;(function(_0x326717,_0xc6a4d6){const _0x3f3fe9=a8_0x35c6,_0x4fa1b6=_0x326717();while(!![]){try{const _0x1c63e6=parseInt(_0x3f3fe9(0x1bf))/0x1*(-parseInt(_0x3f3fe9(0x1c5))/0x2)+-parseInt(_0x3f3fe9(0x1b1))/0x3*(parseInt(_0x3f3fe9(0x1c1))/0x4)+parseInt(_0x3f3fe9(0x1be))/0x5*(parseInt(_0x3f3fe9(0x1bd))/0x6)+parseInt(_0x3f3fe9(0x1b6))/0x7*(-parseInt(_0x3f3fe9(0x1b5))/0x8)+-parseInt(_0x3f3fe9(0x1c7))/0x9+parseInt(_0x3f3fe9(0x1b3))/0xa+parseInt(_0x3f3fe9(0x1b4))/0xb;if(_0x1c63e6===_0xc6a4d6)break;else _0x4fa1b6['push'](_0x4fa1b6['shift']());}catch(_0x1acfa4){_0x4fa1b6['push'](_0x4fa1b6['shift']());}}}(a8_0x174f,0x236e0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x567004(0x1b2));function a8_0x35c6(_0x575f5b,_0x3237db){const _0x174f1d=a8_0x174f();return a8_0x35c6=function(_0x35c6dc,_0x165e01){_0x35c6dc=_0x35c6dc-0x1b0;let _0x1c854b=_0x174f1d[_0x35c6dc];return _0x1c854b;},a8_0x35c6(_0x575f5b,_0x3237db);}function a8_0x174f(){const _0xc50197=['help','YkvBl','6KcuQab','1362035xfzWnZ','183HSmbYy','commandDir','1504qvAoHb','strict','epilogue','demandCommand','824NTcYyH','desc','1092168Rwukwh','create','630JtCkTV','../config/constants','923440OqtTae','3685627uvmifn','12064eubZIN','1295yQEXGS','builder','Create\x20a\x20new\x20Automation\x20grid.','MdVok','recommendCommands'];a8_0x174f=function(){return _0xc50197;};return a8_0x174f();}exports['command']=a8_0x567004(0x1b0),exports[a8_0x567004(0x1c6)]=a8_0x567004(0x1b8),exports[a8_0x567004(0x1b7)]=function(_0x46bdff){const _0x4364cd=a8_0x567004,_0x1e4c1f={};_0x1e4c1f['MdVok']='create_commands',_0x1e4c1f[_0x4364cd(0x1bc)]=_0x4364cd(0x1bb);const _0x355851=_0x1e4c1f;return _0x46bdff['usage'](HELP_HEADER_MESSAGE[_0x4364cd(0x1b0)])[_0x4364cd(0x1c3)](HELP_FOOTER_MESSAGE)[_0x4364cd(0x1c0)](_0x355851[_0x4364cd(0x1b9)])[_0x4364cd(0x1c4)]()[_0x4364cd(0x1ba)]()[_0x4364cd(0x1c2)]()[_0x4364cd(0x1bb)](_0x355851[_0x4364cd(0x1bc)]);},exports['handler']=function(_0x499390){};