browserstack-node-sdk 1.50.7 → 1.50.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a2_0x3147(){const _0x39a180=['158769MSFPYx','31370NiPHGQ','35164scBHaG','type','MddVC','message','921OMdKvD','setCachedCredsInRegistry','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','BykwL','1762560nbbAEE','6HvnAYt','sendEventToBackend','init','gSUJp','info','cloudProvider','webSocketUtils','exports','readFileSync','../utils/utilityMethods','stringify','rws','tFekN','147418njEivv','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','../config/logger','IbZzC','102XbIBCv','260qiBxPA','gridName','1187354hLfzwD','64lwzSND','cloudProviderName','Extgv','1507NHOYAH','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','parse','../config/constants'];a2_0x3147=function(){return _0x39a180;};return a2_0x3147();}const a2_0x564d6d=a2_0x136a;function a2_0x136a(_0x219e90,_0x4d1558){const _0x31473c=a2_0x3147();return a2_0x136a=function(_0x136a70,_0x2f6d4a){_0x136a70=_0x136a70-0x70;let _0x581eb1=_0x31473c[_0x136a70];return _0x581eb1;},a2_0x136a(_0x219e90,_0x4d1558);}(function(_0x4f32e8,_0x5d139c){const _0x5a966c=a2_0x136a,_0x5e08b2=_0x4f32e8();while(!![]){try{const _0x2a9c60=-parseInt(_0x5a966c(0x73))/0x1+parseInt(_0x5a966c(0x77))/0x2*(parseInt(_0x5a966c(0x88))/0x3)+parseInt(_0x5a966c(0x84))/0x4*(parseInt(_0x5a966c(0x78))/0x5)+-parseInt(_0x5a966c(0x8d))/0x6*(parseInt(_0x5a966c(0x7a))/0x7)+-parseInt(_0x5a966c(0x7b))/0x8*(parseInt(_0x5a966c(0x82))/0x9)+parseInt(_0x5a966c(0x83))/0xa*(parseInt(_0x5a966c(0x7e))/0xb)+-parseInt(_0x5a966c(0x8c))/0xc;if(_0x2a9c60===_0x5d139c)break;else _0x5e08b2['push'](_0x5e08b2['shift']());}catch(_0x4ce511){_0x5e08b2['push'](_0x5e08b2['shift']());}}}(a2_0x3147,0x48a26));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x564d6d(0x96)),{logger}=require(a2_0x564d6d(0x75)),{inputCloudProviderKeys}=require('../utils/userInput'),{WS_EVENTS}=require(a2_0x564d6d(0x81));class CloudProvider{constructor(_0x58268f,_0x7a1cf5,_0x128baa,_0x4c7a85,_0x22a3fe){const _0x6dfaa1=a2_0x564d6d,_0x3528da={};_0x3528da['MddVC']='2|1|3|0|4';const _0x1fde06=_0x3528da,_0x1d369c=_0x1fde06[_0x6dfaa1(0x86)]['split']('|');let _0xb919bf=0x0;while(!![]){switch(_0x1d369c[_0xb919bf++]){case'0':this[_0x6dfaa1(0x71)]=_0x4c7a85;continue;case'1':this['clusterName']=_0x7a1cf5;continue;case'2':this['cloudProviderName']=_0x58268f;continue;case'3':this[_0x6dfaa1(0x79)]=_0x128baa;continue;case'4':this[_0x6dfaa1(0x93)]=_0x22a3fe;continue;}break;}}async[a2_0x564d6d(0x8f)](){const _0x3f990c=a2_0x564d6d,_0x3aa8ed={'gVMFu':function(_0x2f0023){return _0x2f0023();},'gSUJp':function(_0x2e4ecd,_0x2359ef){return _0x2e4ecd(_0x2359ef);},'IbZzC':_0x3f990c(0x8a),'tFekN':function(_0x2410ca,_0x52a346,_0x172d23,_0x1a3ef4){return _0x2410ca(_0x52a346,_0x172d23,_0x1a3ef4);},'Extgv':function(_0x12e472){return _0x12e472();},'FHCUj':_0x3f990c(0x74),'BykwL':_0x3f990c(0x7f)},_0xdfa9f0=JSON[_0x3f990c(0x80)](fs[_0x3f990c(0x95)](_0x3aa8ed['gVMFu'](getCredentialsPath))),_0x34c86a=_0xdfa9f0['cloudProvider']||{};if(_0x3aa8ed[_0x3f990c(0x90)](isUndefined,_0x34c86a[this[_0x3f990c(0x7c)]])){logger[_0x3f990c(0x91)](_0x3aa8ed[_0x3f990c(0x76)]);_0x3aa8ed[_0x3f990c(0x90)](isUndefined,_0xdfa9f0[_0x3f990c(0x92)])&&(_0xdfa9f0['cloudProvider']={});_0xdfa9f0['cloudProvider'][this[_0x3f990c(0x7c)]]={};const _0x3ef6ab=await _0x3aa8ed[_0x3f990c(0x72)](inputCloudProviderKeys,this['cloudProviderName'],_0xdfa9f0,this);fs['writeFileSync'](_0x3aa8ed[_0x3f990c(0x7d)](getCredentialsPath),JSON[_0x3f990c(0x70)](_0x3ef6ab)),logger['debug'](_0x3aa8ed['FHCUj']);}else{const _0x406336=_0x3aa8ed[_0x3f990c(0x8b)],_0xa69166={};_0xa69166[_0x3f990c(0x85)]=WS_EVENTS['LOG'],_0xa69166[_0x3f990c(0x87)]=_0x406336,this[_0x3f990c(0x93)][_0x3f990c(0x8e)](this[_0x3f990c(0x71)],_0xa69166),logger[_0x3f990c(0x91)](_0x406336),await this[_0x3f990c(0x89)](_0x34c86a);}}}const a2_0x5a384a={};a2_0x5a384a['CloudProvider']=CloudProvider,module[a2_0x564d6d(0x94)]=a2_0x5a384a;
1
+ const a2_0x449cd2=a2_0x68da;(function(_0x3cea51,_0x2826c2){const _0x1bb506=a2_0x68da,_0x8d6cc0=_0x3cea51();while(!![]){try{const _0x3eccea=parseInt(_0x1bb506(0x135))/0x1*(-parseInt(_0x1bb506(0x12b))/0x2)+parseInt(_0x1bb506(0x13c))/0x3+-parseInt(_0x1bb506(0x12c))/0x4*(parseInt(_0x1bb506(0x12f))/0x5)+-parseInt(_0x1bb506(0x123))/0x6+-parseInt(_0x1bb506(0x11d))/0x7+-parseInt(_0x1bb506(0x136))/0x8+-parseInt(_0x1bb506(0x129))/0x9*(-parseInt(_0x1bb506(0x128))/0xa);if(_0x3eccea===_0x2826c2)break;else _0x8d6cc0['push'](_0x8d6cc0['shift']());}catch(_0x6fdb71){_0x8d6cc0['push'](_0x8d6cc0['shift']());}}}(a2_0x5de8,0xcf2a7));function a2_0x68da(_0x37577e,_0x1f58f2){const _0x5de8d7=a2_0x5de8();return a2_0x68da=function(_0x68daa,_0x48d824){_0x68daa=_0x68daa-0x11c;let _0x46f8f8=_0x5de8d7[_0x68daa];return _0x46f8f8;},a2_0x68da(_0x37577e,_0x1f58f2);}const fs=require('fs'),{getCredentialsPath,isUndefined}=require('../utils/utilityMethods'),{logger}=require(a2_0x449cd2(0x127)),{inputCloudProviderKeys}=require(a2_0x449cd2(0x13a)),{WS_EVENTS}=require('../config/constants');class CloudProvider{constructor(_0x5866f5,_0x26cfb6,_0xf742b1,_0x34ff53,_0x46e947){const _0x36e583=a2_0x449cd2,_0xf418fd={};_0xf418fd[_0x36e583(0x133)]=_0x36e583(0x13d);const _0x4b6a75=_0xf418fd,_0x6d78c5=_0x4b6a75[_0x36e583(0x133)]['split']('|');let _0x3af809=0x0;while(!![]){switch(_0x6d78c5[_0x3af809++]){case'0':this[_0x36e583(0x11c)]=_0x5866f5;continue;case'1':this['clusterName']=_0x26cfb6;continue;case'2':this[_0x36e583(0x137)]=_0xf742b1;continue;case'3':this[_0x36e583(0x122)]=_0x34ff53;continue;case'4':this[_0x36e583(0x138)]=_0x46e947;continue;}break;}}async[a2_0x449cd2(0x13e)](){const _0x4d9836=a2_0x449cd2,_0x2a6d25={'mvHam':function(_0x4b295d){return _0x4b295d();},'AxzVr':function(_0x583dbb,_0x3644e0){return _0x583dbb(_0x3644e0);},'IsCDZ':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','CVzOl':function(_0x4ac6e3,_0x47097b,_0x1bb0f0,_0x252cdd){return _0x4ac6e3(_0x47097b,_0x1bb0f0,_0x252cdd);},'RpKaQ':function(_0x2c1c42){return _0x2c1c42();},'MpYOE':_0x4d9836(0x12a),'BYXrM':_0x4d9836(0x11e)},_0x37dda3=JSON[_0x4d9836(0x134)](fs[_0x4d9836(0x121)](_0x2a6d25['mvHam'](getCredentialsPath))),_0x51f2df=_0x37dda3[_0x4d9836(0x124)]||{};if(_0x2a6d25[_0x4d9836(0x13b)](isUndefined,_0x51f2df[this[_0x4d9836(0x11c)]])){logger[_0x4d9836(0x12e)](_0x2a6d25['IsCDZ']);_0x2a6d25[_0x4d9836(0x13b)](isUndefined,_0x37dda3['cloudProvider'])&&(_0x37dda3['cloudProvider']={});_0x37dda3[_0x4d9836(0x124)][this[_0x4d9836(0x11c)]]={};const _0x124bc6=await _0x2a6d25['CVzOl'](inputCloudProviderKeys,this[_0x4d9836(0x11c)],_0x37dda3,this);fs[_0x4d9836(0x12d)](_0x2a6d25['RpKaQ'](getCredentialsPath),JSON[_0x4d9836(0x125)](_0x124bc6)),logger['debug'](_0x2a6d25[_0x4d9836(0x131)]);}else{const _0x4d14ab=_0x2a6d25[_0x4d9836(0x120)],_0x2a2a4f={};_0x2a2a4f[_0x4d9836(0x130)]=WS_EVENTS[_0x4d9836(0x11f)],_0x2a2a4f[_0x4d9836(0x126)]=_0x4d14ab,this[_0x4d9836(0x138)]['sendEventToBackend'](this[_0x4d9836(0x122)],_0x2a2a4f),logger[_0x4d9836(0x12e)](_0x4d14ab),await this[_0x4d9836(0x132)](_0x51f2df);}}}const a2_0x1ae5bc={};a2_0x1ae5bc['CloudProvider']=CloudProvider,module[a2_0x449cd2(0x139)]=a2_0x1ae5bc;function a2_0x5de8(){const _0x24d680=['1874448Dhqxuw','0|1|2|3|4','init','cloudProviderName','11115097HLPwyJ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','LOG','BYXrM','readFileSync','rws','7395702POdTdO','cloudProvider','stringify','message','../config/logger','56010akQwPs','9621omcNoS','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','2yYKbOM','824932flGkZX','writeFileSync','info','25hezUel','type','MpYOE','setCachedCredsInRegistry','qajql','parse','790633cWDWgO','8971584SUWiuL','gridName','webSocketUtils','exports','../utils/userInput','AxzVr'];a2_0x5de8=function(){return _0x24d680;};return a2_0x5de8();}
@@ -1 +1 @@
1
- const a3_0x42dae6=a3_0x53de;(function(_0x161cbe,_0x27846b){const _0x3817b5=a3_0x53de,_0x2c0f75=_0x161cbe();while(!![]){try{const _0x977278=parseInt(_0x3817b5(0x288))/0x1*(parseInt(_0x3817b5(0x118))/0x2)+-parseInt(_0x3817b5(0x17c))/0x3+parseInt(_0x3817b5(0x1f2))/0x4*(-parseInt(_0x3817b5(0x215))/0x5)+-parseInt(_0x3817b5(0x228))/0x6*(parseInt(_0x3817b5(0x28e))/0x7)+-parseInt(_0x3817b5(0x14b))/0x8+-parseInt(_0x3817b5(0x28f))/0x9*(parseInt(_0x3817b5(0x155))/0xa)+parseInt(_0x3817b5(0x114))/0xb;if(_0x977278===_0x27846b)break;else _0x2c0f75['push'](_0x2c0f75['shift']());}catch(_0x509fab){_0x2c0f75['push'](_0x2c0f75['shift']());}}}(a3_0x3402,0xeb781));const fs=require('fs'),path=require(a3_0x42dae6(0x298)),got=require(a3_0x42dae6(0x21b)),util=require(a3_0x42dae6(0x17a)),cp=require(a3_0x42dae6(0x158)),{google}=require('googleapis'),compute=require(a3_0x42dae6(0x1ff)),container=require(a3_0x42dae6(0x13a)),{ProjectsClient}=require(a3_0x42dae6(0x1f9))['v3'],{logger}=require(a3_0x42dae6(0x279)),{CloudProvider}=require(a3_0x42dae6(0x1c1)),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x42dae6(0x16e)),{deleteRoutingDeps,deleteAgent}=require(a3_0x42dae6(0x25a)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x42dae6(0x21a)),PERMISSIONS=require('../permissions/GCP.json');function a3_0x53de(_0x4e9d77,_0x538c5a){const _0x34028=a3_0x3402();return a3_0x53de=function(_0x53de42,_0x20f719){_0x53de42=_0x53de42-0x10e;let _0x4f086f=_0x34028[_0x53de42];return _0x4f086f;},a3_0x53de(_0x4e9d77,_0x538c5a);}class GoogleCloudProvider extends CloudProvider{constructor(_0x8034a6,_0x346a13,_0x8dcdeb,_0x1de982){const _0x392dc7=a3_0x42dae6,_0x435710={};_0x435710[_0x392dc7(0x1e3)]=_0x392dc7(0x296),_0x435710['jYrhf']=_0x392dc7(0x150),_0x435710[_0x392dc7(0x184)]=_0x392dc7(0x124);const _0x59eef3=_0x435710,_0x2a3dbb=_0x59eef3[_0x392dc7(0x1e3)]['split']('|');let _0x45d644=0x0;while(!![]){switch(_0x2a3dbb[_0x45d644++]){case'0':this[_0x392dc7(0x136)]=null;continue;case'1':super(GCP,_0x8034a6,_0x346a13,_0x8dcdeb,_0x1de982);continue;case'2':this['customRoleName']=_0x59eef3[_0x392dc7(0x21d)];continue;case'3':this[_0x392dc7(0x1ad)]=null;continue;case'4':this[_0x392dc7(0x192)]=_0x59eef3['SBjlO'];continue;case'5':this[_0x392dc7(0x1fb)]=null;continue;case'6':this[_0x392dc7(0x263)]=null;continue;case'7':this[_0x392dc7(0x176)]=null;continue;case'8':this['iamClient']=null;continue;}break;}}async[a3_0x42dae6(0x1ae)](){const _0xf5e3fe=a3_0x42dae6;this['sendGCPInfoToHST'](this[_0xf5e3fe(0x15e)]);}async[a3_0x42dae6(0x1aa)](){const _0x11fd0a=a3_0x42dae6;await super[_0x11fd0a(0x1aa)]();const _0x2801a3=this[_0x11fd0a(0x176)],_0x280da5={};_0x280da5[_0x11fd0a(0x1f5)]=_0x2801a3,this[_0x11fd0a(0x1ad)]=new container['v1']['ClusterManagerClient'](_0x280da5);const _0x36a1b8={};_0x36a1b8['keyFile']=_0x2801a3,this[_0x11fd0a(0x263)]=new compute['v1'][(_0x11fd0a(0x235))](_0x36a1b8);const _0x5ac006={};return _0x5ac006[_0x11fd0a(0x1f5)]=_0x2801a3,this[_0x11fd0a(0x136)]=new ProjectsClient(_0x5ac006),this['iamClient']=google[_0x11fd0a(0x291)]('v1'),this;}async['getUserInput'](_0x31e101,_0x121e76){const _0x222114=a3_0x42dae6,_0xfb9869={'xNjSl':function(_0x37f4bf,_0x554d28){return _0x37f4bf(_0x554d28);},'QYMxV':_0x222114(0x152),'uxlOA':function(_0x469873){return _0x469873();},'ZJOip':'gcp_credentials.json'},_0xf48f09=await _0xfb9869[_0x222114(0x119)](_0x31e101,_0xfb9869['QYMxV']);let _0xfd66b=await fs['readFileAsync'](_0xf48f09);_0xfd66b=_0xfd66b[_0x222114(0x190)]();const _0x3b2ad8=_0xfb9869['uxlOA'](getDirForConfig),_0x4ebec1=path['join'](_0x3b2ad8,_0xfb9869[_0x222114(0x17e)]);fs[_0x222114(0x183)](_0x4ebec1,_0xfd66b),this[_0x222114(0x176)]=_0x4ebec1;const _0x5722f4={};return _0x5722f4[_0x222114(0x1f5)]=_0x4ebec1,_0x121e76[_0x222114(0x259)][GCP]=_0x5722f4,_0xfd66b=JSON[_0x222114(0x1d1)](_0xfd66b),this[_0x222114(0x1fb)]=_0xfd66b[_0x222114(0x1ed)],_0x121e76;}async[a3_0x42dae6(0x25d)](_0x2993ea){const _0xcf091f=a3_0x42dae6;this['credentialsPath']=_0x2993ea[this[_0xcf091f(0x29b)]][_0xcf091f(0x1f5)];let _0x14536c=await fs['readFileAsync'](this[_0xcf091f(0x176)]);_0x14536c=JSON[_0xcf091f(0x1d1)](_0x14536c),this['projectId']=_0x14536c[_0xcf091f(0x1ed)];}[a3_0x42dae6(0x18a)](_0x4375fc){const _0x37bbb6=a3_0x42dae6;return _0x4375fc['status']['loadBalancer'][_0x37bbb6(0x267)][0x0]['ip'];}async[a3_0x42dae6(0x1f8)](){const _0x4c77ed=a3_0x42dae6,_0x13ab3a={};_0x13ab3a[_0x4c77ed(0x169)]=function(_0x4453b5,_0x350b14){return _0x4453b5===_0x350b14;},_0x13ab3a[_0x4c77ed(0x126)]=_0x4c77ed(0x236),_0x13ab3a[_0x4c77ed(0x28b)]=function(_0x512420,_0x1d8a53){return _0x512420!==_0x1d8a53;},_0x13ab3a[_0x4c77ed(0x188)]=_0x4c77ed(0x282),_0x13ab3a['vgDyH']='aEYQs',_0x13ab3a[_0x4c77ed(0x1bf)]=function(_0x24afde,_0xd8da64){return _0x24afde===_0xd8da64;},_0x13ab3a[_0x4c77ed(0x207)]='browserstack',_0x13ab3a['TLjJf']=function(_0x3b64a9,_0x4e728b){return _0x3b64a9===_0x4e728b;},_0x13ab3a[_0x4c77ed(0x273)]='jUPGW';const _0x4b2c8b=_0x13ab3a;try{if(_0x4b2c8b[_0x4c77ed(0x169)](_0x4b2c8b[_0x4c77ed(0x126)],_0x4b2c8b[_0x4c77ed(0x126)])){const _0x2faaf6=await this[_0x4c77ed(0x10e)]();if(_0x2faaf6[0x0]?.[_0x4c77ed(0x113)]?.[_0x4c77ed(0x29f)]){if(_0x4b2c8b['IJXuT'](_0x4b2c8b[_0x4c77ed(0x188)],_0x4b2c8b[_0x4c77ed(0x14f)])){const _0x281f0b=_0x2faaf6[0x0]?.[_0x4c77ed(0x113)]?.[_0x4c77ed(0x29f)];return _0x281f0b&&_0x4b2c8b[_0x4c77ed(0x1bf)](_0x281f0b['toLowerCase'](),_0x4b2c8b[_0x4c77ed(0x207)]);}else _0x41d763[_0x4c77ed(0x2a0)]=![];}}else _0x4bdbc0[_0x4c77ed(0x1a5)](_0x394696);}catch(_0x22a1e7){if(_0x4b2c8b[_0x4c77ed(0x123)](_0x4b2c8b[_0x4c77ed(0x273)],_0x4b2c8b['rfOmX']))return![];else _0x1f3e89[_0x4c77ed(0x26c)](_0x2c813b);}return![];}async['isClusterPresent'](){const _0xdeaa9c=a3_0x42dae6,_0xbad4ce={'uSYUE':_0xdeaa9c(0x1b6),'jXfBi':_0xdeaa9c(0x264),'kfnoK':_0xdeaa9c(0x1cc),'PXFrW':function(_0x4a2873,_0x32e253){return _0x4a2873===_0x32e253;},'odVaT':_0xdeaa9c(0x14e),'bcGlj':_0xdeaa9c(0x29d),'GFCSA':_0xdeaa9c(0x290),'qvflA':_0xdeaa9c(0x23d),'eqiOA':_0xdeaa9c(0x1ef),'dwaHl':function(_0x3d532b,_0x3cad8c){return _0x3d532b!==_0x3cad8c;},'uqySk':function(_0x2a54e8,_0x8694f1){return _0x2a54e8===_0x8694f1;},'GnZTd':'WfHkc','brOYM':_0xdeaa9c(0x1c5),'wIVFo':_0xdeaa9c(0x1fa),'MeQZR':_0xdeaa9c(0x131),'VfiKL':_0xdeaa9c(0x154),'zqxvc':function(_0x4acef7,_0x563beb){return _0x4acef7!==_0x563beb;},'SMwmH':_0xdeaa9c(0x206),'bvsuq':function(_0x7ba221,_0x4f3101){return _0x7ba221===_0x4f3101;},'QuRQU':function(_0x16d2b5,_0x1b885d){return _0x16d2b5===_0x1b885d;},'agQbh':_0xdeaa9c(0x153),'icELQ':function(_0x37ff50,_0x28923c){return _0x37ff50===_0x28923c;},'xxTaN':_0xdeaa9c(0x27a),'ZHHBM':_0xdeaa9c(0x185),'kRNcg':function(_0xf91e54,_0x2a2298){return _0xf91e54>_0x2a2298;},'pzqOg':function(_0x5cd420,_0x112f70){return _0x5cd420===_0x112f70;},'ldAHi':'iKsna','UaDrO':function(_0x2e65cc,_0x3d5fe8){return _0x2e65cc<_0x3d5fe8;},'oklcg':_0xdeaa9c(0x243),'hMMRr':_0xdeaa9c(0x208),'ecaNI':function(_0x158602,_0x25cfdd){return _0x158602+_0x25cfdd;},'OWDLM':function(_0xdcafc6,_0x1581e0){return _0xdcafc6(_0x1581e0);},'roOQF':_0xdeaa9c(0x1a9),'WrUAP':function(_0x59f1ff,_0x223b15){return _0x59f1ff(_0x223b15);},'hEUlZ':function(_0x1cf668,_0xdb8ccb){return _0x1cf668<=_0xdb8ccb;},'WSFaX':function(_0x49c12d,_0x5cc92a){return _0x49c12d===_0x5cc92a;},'HYUcQ':_0xdeaa9c(0x19f),'iSvOR':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','KFgyN':function(_0x2536e1){return _0x2536e1();},'gjBYH':function(_0x36bd88,_0x6415e6){return _0x36bd88-_0x6415e6;},'AoovU':function(_0xe244b7,_0x1bc2ca){return _0xe244b7!==_0x1bc2ca;},'NFdRV':function(_0x22fb8d,_0x2fe6d3){return _0x22fb8d-_0x2fe6d3;},'Iccje':function(_0xb6ea8d,_0x4bdfda){return _0xb6ea8d===_0x4bdfda;},'qUcYi':_0xdeaa9c(0x18f)};let _0x23d8da=await fs['readFileAsync'](path[_0xdeaa9c(0x212)](__dirname,'..',_0xbad4ce['bcGlj'],_0xbad4ce['GFCSA'],_0xbad4ce[_0xdeaa9c(0x271)]),_0xbad4ce[_0xdeaa9c(0x1ba)]);_0x23d8da=JSON[_0xdeaa9c(0x1d1)](_0x23d8da);let _0x3eb4fc=[global_registry[_0xdeaa9c(0x205)]];_0xbad4ce[_0xdeaa9c(0x11a)](_0x23d8da[global_registry['clusterRegion']],undefined)&&(_0xbad4ce[_0xdeaa9c(0x26b)](_0xbad4ce['GnZTd'],_0xbad4ce[_0xdeaa9c(0x12e)])?_0x52641b[_0xdeaa9c(0x24b)]=_0x135aee:_0x3eb4fc=_0x3eb4fc['concat'](_0x23d8da[global_registry[_0xdeaa9c(0x205)]]));const _0x1b473d=[];for await(const _0x199bbf of _0x3eb4fc){if(_0xbad4ce[_0xdeaa9c(0x26b)](_0xbad4ce['wIVFo'],_0xbad4ce[_0xdeaa9c(0x198)])){const _0x20d010={};_0x20d010[_0xdeaa9c(0x137)]=_0xdeaa9c(0x1c7)+this[_0xdeaa9c(0x1fb)]+_0xdeaa9c(0x1a4)+_0x199bbf;const _0x93d160=_0x20d010,_0x16a9d4=await this[_0xdeaa9c(0x1ad)][_0xdeaa9c(0x1b7)](_0x93d160);for(const _0x50ed49 of _0x16a9d4[0x0][_0xdeaa9c(0x168)]){if(_0xbad4ce[_0xdeaa9c(0x11a)](_0xbad4ce[_0xdeaa9c(0x174)],_0xbad4ce[_0xdeaa9c(0x241)]))_0xbad4ce[_0xdeaa9c(0x26b)](_0x50ed49[_0xdeaa9c(0x221)],this[_0xdeaa9c(0x1df)])&&(_0xbad4ce[_0xdeaa9c(0x1dd)](_0xbad4ce[_0xdeaa9c(0x213)],_0xbad4ce[_0xdeaa9c(0x213)])?_0x4bc736['execSync'](_0xdeaa9c(0x12c)+this[_0xdeaa9c(0x1df)]+_0xdeaa9c(0x21c)+_0x2625e7[_0xdeaa9c(0x205)]+_0xdeaa9c(0x180)):_0x1b473d['push'](_0x199bbf));else{_0x3e67b6[_0xdeaa9c(0x149)](_0xbad4ce[_0xdeaa9c(0x1c6)]);return;}}}else return!![];}const _0x166755=_0x1b473d[_0xdeaa9c(0x1b8)];if(_0xbad4ce[_0xdeaa9c(0x139)](_0x166755,0x1))return _0xbad4ce['QuRQU'](_0xbad4ce[_0xdeaa9c(0x1b0)],_0xbad4ce[_0xdeaa9c(0x1b0)])?(_0xbad4ce[_0xdeaa9c(0x11a)](global_registry[_0xdeaa9c(0x205)],_0x1b473d[0x0])&&(_0xbad4ce[_0xdeaa9c(0x159)](_0xbad4ce[_0xdeaa9c(0x216)],_0xbad4ce[_0xdeaa9c(0x121)])?(_0x2dcd33[_0xdeaa9c(0x205)]=_0x23b4c4[0x0],this[_0xdeaa9c(0x26f)]()):(global_registry[_0xdeaa9c(0x205)]=_0x1b473d[0x0],this[_0xdeaa9c(0x26f)]())),!![]):!![];else{if(_0xbad4ce[_0xdeaa9c(0x11e)](_0x166755,0x1)){if(_0xbad4ce['pzqOg'](_0xbad4ce[_0xdeaa9c(0x2a1)],_0xbad4ce[_0xdeaa9c(0x2a1)])){console[_0xdeaa9c(0x127)]('Found\x20cluster\x20with\x20name\x20\x27'+this['clusterName']+_0xdeaa9c(0x194));for(let _0xf8fdbc=0x0;_0xbad4ce[_0xdeaa9c(0x1a0)](_0xf8fdbc,_0x166755);_0xf8fdbc+=0x1){_0xbad4ce['zqxvc'](_0xbad4ce[_0xdeaa9c(0x2a2)],_0xbad4ce[_0xdeaa9c(0x15f)])?console[_0xdeaa9c(0x127)]('['+_0xbad4ce[_0xdeaa9c(0x191)](_0xf8fdbc,0x1)+']\x20'+_0x1b473d[_0xf8fdbc]):_0x438bd1['debug'](_0x4e4e90);}const _0x216adf=await _0xbad4ce[_0xdeaa9c(0x1d7)](inputConfirmation,_0xbad4ce[_0xdeaa9c(0x1b5)]),_0x5e408b=_0xbad4ce[_0xdeaa9c(0x1d7)](Number,_0x216adf);if(_0xbad4ce[_0xdeaa9c(0x28a)](isNaN,_0x5e408b)||_0xbad4ce['hEUlZ'](_0x5e408b,0x0)||_0xbad4ce[_0xdeaa9c(0x11e)](_0x5e408b,_0x166755)){if(_0xbad4ce['WSFaX'](_0xbad4ce[_0xdeaa9c(0x1ac)],_0xbad4ce[_0xdeaa9c(0x1ac)]))console[_0xdeaa9c(0x24b)](_0xbad4ce['iSvOR']),process[_0xdeaa9c(0x293)](0x1);else{_0x593331[_0xdeaa9c(0x149)](_0xbad4ce['jXfBi']);throw _0x4ec5f9;}}return _0xbad4ce['KFgyN'](closeInput),logger['info']('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x1b473d[_0xbad4ce[_0xdeaa9c(0x25c)](_0x5e408b,0x1)]),_0xbad4ce['AoovU'](global_registry[_0xdeaa9c(0x205)],_0x1b473d[_0xbad4ce[_0xdeaa9c(0x229)](_0x5e408b,0x1)])&&(_0xbad4ce[_0xdeaa9c(0x1f4)](_0xbad4ce[_0xdeaa9c(0x1d8)],_0xbad4ce['qUcYi'])?(global_registry['clusterRegion']=_0x1b473d[_0xbad4ce['gjBYH'](_0x5e408b,0x1)],this[_0xdeaa9c(0x26f)]()):_0x41f90b=_0xbad4ce[_0xdeaa9c(0x1c4)]),!![];}else{const _0x90bb90=_0x154c01[0x0]?.[_0xdeaa9c(0x113)]?.[_0xdeaa9c(0x29f)];return _0x90bb90&&_0xbad4ce[_0xdeaa9c(0x13e)](_0x90bb90['toLowerCase'](),_0xbad4ce[_0xdeaa9c(0x12f)]);}}}return![];}async['getClusterInfo'](){const _0x51acab=a3_0x42dae6,_0x24f562=await this[_0x51acab(0x1ad)]['getCluster']({'name':'projects/'+this[_0x51acab(0x1fb)]+_0x51acab(0x1a4)+global_registry[_0x51acab(0x205)]+_0x51acab(0x20d)+this[_0x51acab(0x1df)]});return _0x24f562;}async[a3_0x42dae6(0x11f)](){const _0x1b98b1=a3_0x42dae6,_0x5788a1={};_0x5788a1[_0x1b98b1(0x19e)]='gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled',_0x5788a1[_0x1b98b1(0x147)]=_0x1b98b1(0x29d),_0x5788a1[_0x1b98b1(0x175)]=_0x1b98b1(0x290),_0x5788a1[_0x1b98b1(0x24d)]='KubeConfigTemplate.yaml';const _0x926e8=_0x5788a1;cp[_0x1b98b1(0x24f)](_0x926e8[_0x1b98b1(0x19e)]),cp[_0x1b98b1(0x14d)](_0x1b98b1(0x12d)+this[_0x1b98b1(0x176)]);const _0x4098a9=await this[_0x1b98b1(0x10e)](),_0x2f3ccc=_0x1b98b1(0x111)+this['projectId']+'_'+global_registry['clusterRegion']+'_'+this[_0x1b98b1(0x1df)];let _0xa06ce3=await fs['readFileAsync'](path['join'](__dirname,'..',_0x926e8['PjBiu'],_0x926e8[_0x1b98b1(0x175)],_0x926e8['VHkaM']));return _0xa06ce3=_0xa06ce3['toString'](),_0xa06ce3=_0xa06ce3[_0x1b98b1(0x182)](/<CLUSTER_NAME>/g,_0x2f3ccc),_0xa06ce3=_0xa06ce3['replace'](/<CLUSTER_URL>/g,'https://'+_0x4098a9[0x0][_0x1b98b1(0x13b)]),_0xa06ce3=_0xa06ce3['replace'](/<CERTIFICATE_DATA>/g,_0x4098a9[0x0][_0x1b98b1(0x170)]['clusterCaCertificate']),_0xa06ce3;}async[a3_0x42dae6(0x115)](){const _0x35bb78=a3_0x42dae6,_0x4913b8={};_0x4913b8[_0x35bb78(0x238)]=_0x35bb78(0x255),_0x4913b8['IDmSF']='denied',_0x4913b8['NIpbb']=_0x35bb78(0x13f),_0x4913b8['MIswi']=function(_0x29c5d8,_0x10665b){return _0x29c5d8!==_0x10665b;},_0x4913b8[_0x35bb78(0x1f6)]='CAnlu',_0x4913b8['ImmrF']='DcSIE',_0x4913b8['Ftulr']=function(_0x4baf8f,_0x17a04d){return _0x4baf8f!==_0x17a04d;},_0x4913b8['eMypm']=_0x35bb78(0x1e9),_0x4913b8[_0x35bb78(0x1ea)]=function(_0x5e6653,_0x173f20){return _0x5e6653===_0x173f20;},_0x4913b8[_0x35bb78(0x151)]=_0x35bb78(0x232),_0x4913b8[_0x35bb78(0x165)]=_0x35bb78(0x248);const _0x209a8b=_0x4913b8,_0x217c20={};_0x217c20[_0x35bb78(0x20c)]=[_0x209a8b['NIpbb']],_0x217c20['keyFile']=this[_0x35bb78(0x176)];const _0xb194bd=await google['auth'][_0x35bb78(0x1c3)](_0x217c20),_0x1cb314=await this[_0x35bb78(0x18e)][_0x35bb78(0x134)][_0x35bb78(0x2a8)][_0x35bb78(0x2a4)]({'name':_0x35bb78(0x1c7)+this[_0x35bb78(0x1fb)],'auth':_0xb194bd});if(_0x1cb314?.[_0x35bb78(0x1fe)]?.[_0x35bb78(0x199)]){if(_0x209a8b['MIswi'](_0x209a8b['doUKE'],_0x209a8b[_0x35bb78(0x187)]))for(const _0x59451d of _0x1cb314[_0x35bb78(0x1fe)]['accounts']){if(_0x209a8b[_0x35bb78(0x164)](_0x209a8b[_0x35bb78(0x1bc)],_0x209a8b[_0x35bb78(0x1bc)])){const _0x209a7e=_0x232d64['permissions']['includes'](_0x1c726a);_0x191ce2+='\x0a\x09'+_0x2bc17c+_0x35bb78(0x14a)+(_0x209a7e?_0x209a8b[_0x35bb78(0x238)]:_0x209a8b[_0x35bb78(0x1af)]),!_0x209a7e&&(_0x36cf8c[_0x35bb78(0x2a0)]=![]);}else{if(_0x209a8b[_0x35bb78(0x1ea)](_0x59451d?.[_0x35bb78(0x221)],_0x35bb78(0x1c7)+this[_0x35bb78(0x1fb)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x35bb78(0x1fb)]+_0x35bb78(0x178)))return _0x209a8b[_0x35bb78(0x1be)](_0x209a8b[_0x35bb78(0x151)],_0x209a8b[_0x35bb78(0x165)])?!![]:![];}}else return!![];}return![];}async[a3_0x42dae6(0x29e)](){const _0x4f5ae4=a3_0x42dae6,_0x94b6cc={};_0x94b6cc[_0x4f5ae4(0x160)]=function(_0x24af79,_0x38e17c){return _0x24af79+_0x38e17c;},_0x94b6cc['njyUf']=function(_0x20cf20,_0x4642b7){return _0x20cf20!==_0x4642b7;},_0x94b6cc[_0x4f5ae4(0x1db)]=_0x4f5ae4(0x239),_0x94b6cc['tUALU']=_0x4f5ae4(0x1b6),_0x94b6cc[_0x4f5ae4(0x15b)]='Creating\x20service\x20account',_0x94b6cc[_0x4f5ae4(0x1b3)]=_0x4f5ae4(0x13f),_0x94b6cc[_0x4f5ae4(0x156)]=_0x4f5ae4(0x258),_0x94b6cc[_0x4f5ae4(0x1a1)]=_0x4f5ae4(0x1ce),_0x94b6cc[_0x4f5ae4(0x11c)]=_0x4f5ae4(0x15a),_0x94b6cc[_0x4f5ae4(0x20e)]=_0x4f5ae4(0x1f1),_0x94b6cc['fVcgN']=_0x4f5ae4(0x122),_0x94b6cc[_0x4f5ae4(0x10f)]=_0x4f5ae4(0x181),_0x94b6cc[_0x4f5ae4(0x25f)]=_0x4f5ae4(0x299),_0x94b6cc[_0x4f5ae4(0x234)]=_0x4f5ae4(0x1ab),_0x94b6cc[_0x4f5ae4(0x112)]=_0x4f5ae4(0x256),_0x94b6cc['mhKiE']=_0x4f5ae4(0x266),_0x94b6cc[_0x4f5ae4(0x1e5)]='storage.buckets.listTagBindings',_0x94b6cc['dGcWc']=_0x4f5ae4(0x1a8),_0x94b6cc[_0x4f5ae4(0x195)]='storage.buckets.update',_0x94b6cc[_0x4f5ae4(0x172)]=_0x4f5ae4(0x28d),_0x94b6cc[_0x4f5ae4(0x128)]='storage.multipartUploads.create',_0x94b6cc['BxyIv']=_0x4f5ae4(0x26d),_0x94b6cc[_0x4f5ae4(0x1cd)]=_0x4f5ae4(0x257),_0x94b6cc[_0x4f5ae4(0x179)]=_0x4f5ae4(0x277),_0x94b6cc[_0x4f5ae4(0x22d)]='storage.objects.delete',_0x94b6cc['rkvBz']='storage.objects.get',_0x94b6cc[_0x4f5ae4(0x285)]=_0x4f5ae4(0x14c),_0x94b6cc[_0x4f5ae4(0x12b)]=_0x4f5ae4(0x22a),_0x94b6cc[_0x4f5ae4(0x1e7)]=_0x4f5ae4(0x294),_0x94b6cc[_0x4f5ae4(0x19c)]=_0x4f5ae4(0x12a),_0x94b6cc[_0x4f5ae4(0x143)]=_0x4f5ae4(0x1a2),_0x94b6cc[_0x4f5ae4(0x252)]=_0x4f5ae4(0x27c);const _0x848bce=_0x94b6cc,_0xf506cd=await this[_0x4f5ae4(0x115)]();if(_0xf506cd){if(_0x848bce[_0x4f5ae4(0x18d)](_0x848bce[_0x4f5ae4(0x1db)],_0x848bce['yAbAt']))_0x241bc0[_0x4f5ae4(0x127)]('['+_0x848bce[_0x4f5ae4(0x160)](_0x28eb75,0x1)+']\x20'+_0xa5fd2c[_0x57ab8e]);else{logger[_0x4f5ae4(0x149)](_0x848bce[_0x4f5ae4(0x223)]);return;}}logger[_0x4f5ae4(0x149)](_0x848bce[_0x4f5ae4(0x15b)]);const _0x308fa3={};_0x308fa3[_0x4f5ae4(0x20c)]=[_0x848bce[_0x4f5ae4(0x1b3)]],_0x308fa3[_0x4f5ae4(0x1f5)]=this[_0x4f5ae4(0x176)];const _0xbb928f=await google[_0x4f5ae4(0x138)]['getClient'](_0x308fa3),_0xf5d900={};_0xf5d900[_0x4f5ae4(0x269)]=[_0x848bce[_0x4f5ae4(0x156)],_0x848bce[_0x4f5ae4(0x1a1)],_0x848bce[_0x4f5ae4(0x11c)],_0x848bce[_0x4f5ae4(0x20e)],_0x848bce[_0x4f5ae4(0x16d)],_0x848bce[_0x4f5ae4(0x10f)],_0x848bce['UjtXQ'],_0x848bce[_0x4f5ae4(0x234)],_0x848bce['lomLX'],_0x848bce[_0x4f5ae4(0x245)],_0x848bce[_0x4f5ae4(0x1e5)],_0x848bce['dGcWc'],_0x848bce[_0x4f5ae4(0x195)],_0x848bce['uZost'],_0x848bce[_0x4f5ae4(0x128)],_0x848bce[_0x4f5ae4(0x17d)],_0x848bce['vdQHN'],_0x848bce[_0x4f5ae4(0x179)],_0x848bce['WFIBS'],_0x848bce['rkvBz'],_0x848bce[_0x4f5ae4(0x285)],_0x848bce[_0x4f5ae4(0x12b)],_0x848bce[_0x4f5ae4(0x1e7)],_0x848bce[_0x4f5ae4(0x19c)]],_0xf5d900[_0x4f5ae4(0x297)]=_0x848bce[_0x4f5ae4(0x143)],await this['iamClient']['organizations'][_0x4f5ae4(0x1c0)][_0x4f5ae4(0x25b)]({'parent':_0x4f5ae4(0x1c7)+this[_0x4f5ae4(0x1fb)],'requestBody':{'role':_0xf5d900,'roleId':this[_0x4f5ae4(0x23b)]},'auth':_0xbb928f});const _0x39b359={};_0x39b359[_0x4f5ae4(0x221)]=_0x4f5ae4(0x1c7)+this[_0x4f5ae4(0x1fb)],_0x39b359[_0x4f5ae4(0x27e)]={},_0x39b359['auth']=_0xbb928f,_0x39b359[_0x4f5ae4(0x27e)][_0x4f5ae4(0x13c)]=this[_0x4f5ae4(0x192)];const _0x417ee2=_0x39b359;await this[_0x4f5ae4(0x18e)]['projects'][_0x4f5ae4(0x2a8)]['create'](_0x417ee2);let _0x1554ba=await this['resourcemanagerClient'][_0x4f5ae4(0x29a)]({'resource':_0x4f5ae4(0x1c7)+this['projectId']});_0x1554ba=_0x1554ba[0x0]['bindings'];const _0x2a95de={};_0x2a95de[_0x4f5ae4(0x25e)]=_0x4f5ae4(0x1c7)+this[_0x4f5ae4(0x1fb)]+_0x4f5ae4(0x1e1)+this[_0x4f5ae4(0x23b)],_0x2a95de['members']=[_0x4f5ae4(0x1a6)+this[_0x4f5ae4(0x192)]+'@'+this[_0x4f5ae4(0x1fb)]+'.iam.gserviceaccount.com'],_0x1554ba[_0x4f5ae4(0x1a5)](_0x2a95de);const _0x27f5f4={};_0x27f5f4[_0x4f5ae4(0x1e0)]=_0x1554ba,await this[_0x4f5ae4(0x136)][_0x4f5ae4(0x246)]({'resource':_0x4f5ae4(0x1c7)+this['projectId'],'policy':_0x27f5f4}),logger[_0x4f5ae4(0x149)](_0x848bce[_0x4f5ae4(0x252)]);}async['setupNewCluster'](_0x5d09d9='default',_0x400016=[a3_0x42dae6(0x1cc)]){const _0x3a7992=a3_0x42dae6,_0x16cac6={};_0x16cac6['QrSSU']=function(_0x2aa0bf,_0x5a1c1a){return _0x2aa0bf===_0x5a1c1a;},_0x16cac6['NSXbs']=_0x3a7992(0x167),_0x16cac6['dFxAU']=_0x3a7992(0x24a),_0x16cac6[_0x3a7992(0x23e)]=_0x3a7992(0x24c),_0x16cac6[_0x3a7992(0x260)]=function(_0x43933d,_0x55b8bf){return _0x43933d!==_0x55b8bf;},_0x16cac6[_0x3a7992(0x1ca)]='yvxvA',_0x16cac6[_0x3a7992(0x201)]=_0x3a7992(0x1cc),_0x16cac6[_0x3a7992(0x250)]='jasqt';const _0x10a26c=_0x16cac6,_0x38513c={};_0x38513c[_0x3a7992(0x1dc)]=WS_EVENTS[_0x3a7992(0x204)],_0x38513c[_0x3a7992(0x29c)]=_0x10a26c[_0x3a7992(0x24e)],this[_0x3a7992(0x20b)][_0x3a7992(0x276)](this[_0x3a7992(0x15e)],_0x38513c),logger[_0x3a7992(0x149)](_0x10a26c[_0x3a7992(0x23e)]);if(!_0x5d09d9){if(_0x10a26c[_0x3a7992(0x260)](_0x10a26c[_0x3a7992(0x1ca)],_0x10a26c[_0x3a7992(0x1ca)])){if(_0x10a26c['QrSSU'](_0x863298?.[_0x3a7992(0x221)],_0x3a7992(0x1c7)+this[_0x3a7992(0x1fb)]+_0x3a7992(0x1f3)+this[_0x3a7992(0x192)]+'@'+this[_0x3a7992(0x1fb)]+_0x3a7992(0x178)))return!![];}else _0x5d09d9=_0x10a26c[_0x3a7992(0x201)];}return(!_0x400016||_0x10a26c['QrSSU'](_0x400016['length'],0x0))&&(_0x10a26c['QrSSU'](_0x10a26c[_0x3a7992(0x250)],_0x10a26c[_0x3a7992(0x250)])?_0x400016=[_0x10a26c[_0x3a7992(0x201)]]:(_0x13b9aa['error'](_0x10a26c[_0x3a7992(0x289)]),_0x2c21e[_0x3a7992(0x293)](0x1))),await this[_0x3a7992(0x29e)](),await this[_0x3a7992(0x1c9)](_0x5d09d9,_0x400016),await this[_0x3a7992(0x11d)](),[_0x5d09d9,_0x400016];}async[a3_0x42dae6(0x1c9)](_0x2d9038=a3_0x42dae6(0x1cc),_0x259c4c=[a3_0x42dae6(0x1cc)]){const _0xf810a9=a3_0x42dae6,_0x45cc11={};_0x45cc11[_0xf810a9(0x1e4)]=function(_0x44abed,_0x3d1009){return _0x44abed===_0x3d1009;},_0x45cc11[_0xf810a9(0x237)]=function(_0x504b99,_0x4c5849){return _0x504b99!==_0x4c5849;},_0x45cc11[_0xf810a9(0x1eb)]=_0xf810a9(0x1f0),_0x45cc11['teDrc']='TSgMK',_0x45cc11[_0xf810a9(0x22c)]=_0xf810a9(0x200),_0x45cc11['malOY']=_0xf810a9(0x29d),_0x45cc11[_0xf810a9(0x1d4)]=_0xf810a9(0x290),_0x45cc11[_0xf810a9(0x283)]=_0xf810a9(0x244),_0x45cc11[_0xf810a9(0x193)]='utf-8',_0x45cc11[_0xf810a9(0x19b)]=_0xf810a9(0x23d),_0x45cc11['auHkc']=_0xf810a9(0x166),_0x45cc11['uKOhW']=_0xf810a9(0x21e),_0x45cc11['wXYNU']='REGULAR',_0x45cc11[_0xf810a9(0x27f)]=function(_0x2ad1d7,_0x44d29d){return _0x2ad1d7*_0x44d29d;},_0x45cc11[_0xf810a9(0x173)]=function(_0x184bf7,_0x470f19){return _0x184bf7*_0x470f19;},_0x45cc11[_0xf810a9(0x230)]=_0xf810a9(0x1cb),_0x45cc11['gvFiM']=_0xf810a9(0x2a5),_0x45cc11[_0xf810a9(0x274)]='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x45cc11[_0xf810a9(0x140)]=_0xf810a9(0x110),_0x45cc11[_0xf810a9(0x214)]=_0xf810a9(0x220),_0x45cc11[_0xf810a9(0x202)]=_0xf810a9(0x1e2);const _0x270f04=_0x45cc11;try{if(_0x270f04[_0xf810a9(0x237)](_0x270f04[_0xf810a9(0x1eb)],_0x270f04[_0xf810a9(0x222)])){logger['info'](_0x270f04[_0xf810a9(0x22c)]);let _0x3777d7=await fs[_0xf810a9(0x217)](path['join'](__dirname,'..',_0x270f04['malOY'],_0x270f04[_0xf810a9(0x1d4)],_0x270f04[_0xf810a9(0x283)]),_0x270f04[_0xf810a9(0x193)]);_0x3777d7=JSON[_0xf810a9(0x1d1)](_0x3777d7);let _0xf486f8=await fs[_0xf810a9(0x217)](path['join'](__dirname,'..',_0x270f04['malOY'],_0x270f04['CAcqH'],_0x270f04['huvQA']),_0x270f04[_0xf810a9(0x193)]);_0xf486f8=JSON[_0xf810a9(0x1d1)](_0xf486f8);const _0x117ba5=global_registry[_0xf810a9(0x171)];_0x3777d7[_0xf810a9(0x221)]=this[_0xf810a9(0x1df)],_0x3777d7['nodePools'][0x0][_0xf810a9(0x1da)][_0xf810a9(0x17f)]=global_registry[_0xf810a9(0x278)],_0x3777d7[_0xf810a9(0x13d)][0x1][_0xf810a9(0x1da)][_0xf810a9(0x17f)]=global_registry['instanceType'],_0x3777d7['nodePools'][0x0]['config']['serviceAccount']=this['serviceAccountName']+'@'+this[_0xf810a9(0x1fb)]+_0xf810a9(0x178),_0x3777d7['nodePools'][0x1][_0xf810a9(0x1da)][_0xf810a9(0x20a)]=this[_0xf810a9(0x192)]+'@'+this['projectId']+'.iam.gserviceaccount.com',_0x3777d7['nodePools'][0x0][_0xf810a9(0x135)][_0xf810a9(0x1b2)]=global_registry['minNodes'],_0x3777d7['nodePools'][0x1]['autoscaling'][_0xf810a9(0x1b2)]=0x0,_0x3777d7[_0xf810a9(0x13d)][0x0]['management'][_0xf810a9(0x16a)]=_0x117ba5,_0x3777d7[_0xf810a9(0x13d)][0x1][_0xf810a9(0x1ee)]['autoUpgrade']=_0x117ba5,_0x3777d7[_0xf810a9(0x13d)][0x0]['autoscaling'][_0xf810a9(0x162)]=global_registry[_0xf810a9(0x23c)],_0x3777d7[_0xf810a9(0x13d)][0x1][_0xf810a9(0x135)][_0xf810a9(0x162)]=global_registry[_0xf810a9(0x23c)],_0x3777d7[_0xf810a9(0x225)]=global_registry[_0xf810a9(0x205)],_0x3777d7[_0xf810a9(0x209)]=[_0xf486f8[global_registry[_0xf810a9(0x205)]][0x0]],_0x3777d7[_0xf810a9(0x251)]='projects/'+this[_0xf810a9(0x1fb)]+_0xf810a9(0x142)+_0x2d9038,_0x3777d7[_0xf810a9(0x240)]=_0xf810a9(0x1c7)+this['projectId']+'/regions/'+global_registry['clusterRegion']+_0xf810a9(0x2a3)+_0x259c4c[0x0];if(_0x117ba5){if(_0x270f04['eOSNP'](_0x270f04[_0xf810a9(0x23f)],_0x270f04['uKOhW']))for(const _0x42b0e2 of _0x4e6d9c[_0xf810a9(0x1fe)]['accounts']){if(_0x270f04[_0xf810a9(0x1e4)](_0x42b0e2?.[_0xf810a9(0x221)],_0xf810a9(0x1c7)+this[_0xf810a9(0x1fb)]+_0xf810a9(0x1f3)+this[_0xf810a9(0x192)]+'@'+this[_0xf810a9(0x1fb)]+_0xf810a9(0x178)))return!![];}else{const _0x193276={};_0x193276[_0xf810a9(0x130)]=_0x270f04[_0xf810a9(0x22e)],_0x3777d7[_0xf810a9(0x1ec)]=_0x193276;}}const _0x29764f=await this['containerClient'][_0xf810a9(0x1c9)]({'cluster':_0x3777d7,'parent':_0xf810a9(0x1c7)+this[_0xf810a9(0x1fb)]+'/locations/'+global_registry[_0xf810a9(0x205)]});await this[_0xf810a9(0x20b)]['delay'](_0x270f04[_0xf810a9(0x27f)](_0x270f04[_0xf810a9(0x173)](0x7,0x3c),0x3e8));}else return[!![],_0x2f0918];}catch(_0x1feb89){if(_0x270f04[_0xf810a9(0x237)](_0x270f04[_0xf810a9(0x230)],_0x270f04[_0xf810a9(0x230)]))this[_0xf810a9(0x22b)](this[_0xf810a9(0x15e)]);else{const _0x269adc=await this['isClusterPresent']();if(_0x269adc)_0x270f04[_0xf810a9(0x237)](_0x270f04[_0xf810a9(0x1e8)],_0x270f04[_0xf810a9(0x1e8)])?_0x57b37a[_0xf810a9(0x19d)][_0xf810a9(0x1a5)](_0x3d19ee):(logger['info'](_0x270f04[_0xf810a9(0x274)],_0x1feb89[_0xf810a9(0x197)]),await this[_0xf810a9(0x18b)]());else{if(_0x270f04[_0xf810a9(0x1e4)](_0x270f04[_0xf810a9(0x140)],_0x270f04[_0xf810a9(0x214)]))return _0x4f7b8d[_0xf810a9(0x2a0)]['loadBalancer'][_0xf810a9(0x267)][0x0]['ip'];else logger[_0xf810a9(0x149)](_0x270f04[_0xf810a9(0x202)]);}throw _0x1feb89;}}}async[a3_0x42dae6(0x146)](_0x3a19dc,_0x42ee4d,_0x1f9a40,_0xdbc523,_0x3cdb51){}async['updateWindowsNodeGroup'](){const _0x1b7aeb=a3_0x42dae6;cp[_0x1b7aeb(0x24f)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this['clusterName']+_0x1b7aeb(0x21c)+global_registry[_0x1b7aeb(0x205)]+_0x1b7aeb(0x180));}async[a3_0x42dae6(0x18b)](_0x104b98,_0x3d791b){const _0x3ab499=a3_0x42dae6,_0x5bcd49={'EZMgk':_0x3ab499(0x1cc),'cYOyT':function(_0x354d8f,_0x3c5bf4){return _0x354d8f===_0x3c5bf4;},'zsvIK':function(_0x46f481,_0x534a39){return _0x46f481!==_0x534a39;},'iMmDa':'qEDmv','tPALU':'PodPB','GOmWw':function(_0x372671,_0xcb8382){return _0x372671(_0xcb8382);},'neZME':function(_0x44304a,_0x5ac1e3){return _0x44304a(_0x5ac1e3);},'uEfsE':function(_0x3d6144,_0x8ba7af){return _0x3d6144===_0x8ba7af;},'lBWxK':_0x3ab499(0x1c8),'UreTg':_0x3ab499(0x261),'sSvie':function(_0x109f9c,_0x3a6bb4){return _0x109f9c!==_0x3a6bb4;},'AYweA':_0x3ab499(0x233),'oGLxu':'Cluster\x20deletion\x20completed','xShcg':function(_0x2ae301,_0x4f4cfc){return _0x2ae301!==_0x4f4cfc;},'lpHbf':_0x3ab499(0x249),'DlYil':_0x3ab499(0x264)};try{if(_0x5bcd49[_0x3ab499(0x11b)](_0x5bcd49[_0x3ab499(0x226)],_0x5bcd49['tPALU'])){await _0x5bcd49[_0x3ab499(0x23a)](deleteAgent,_0x104b98),await _0x5bcd49[_0x3ab499(0x1fd)](deleteRoutingDeps,_0x104b98),logger[_0x3ab499(0x149)]('Deleting\x20the\x20cluster\x20'+this[_0x3ab499(0x1df)]);const _0x5c8db9=await this['containerClient'][_0x3ab499(0x18b)]({'name':'projects/'+this[_0x3ab499(0x1fb)]+_0x3ab499(0x1a4)+global_registry['clusterRegion']+_0x3ab499(0x20d)+this['clusterName']});if(_0x5bcd49['uEfsE'](_0x5c8db9[0x0]?.[_0x3ab499(0x2a0)],_0x5bcd49[_0x3ab499(0x280)])||_0x5bcd49[_0x3ab499(0x1d3)](_0x5c8db9[0x0]?.[_0x3ab499(0x2a0)],_0x5bcd49[_0x3ab499(0x286)])){if(_0x5bcd49['sSvie'](_0x5bcd49[_0x3ab499(0x1b1)],_0x5bcd49[_0x3ab499(0x1b1)]))_0x5c0adf=[_0x5bcd49['EZMgk']];else return!![];}logger[_0x3ab499(0x149)](_0x5bcd49['oGLxu']);}else return![];}catch(_0x2e4f76){if(_0x5bcd49[_0x3ab499(0x15c)](_0x5bcd49['lpHbf'],_0x5bcd49['lpHbf']))_0x5bcd49['cYOyT'](_0x42a3ad['name'],this[_0x3ab499(0x1df)])&&_0x38301e[_0x3ab499(0x1a5)](_0x52be42);else{logger['info'](_0x5bcd49[_0x3ab499(0x1c2)]);throw _0x2e4f76;}}}async[a3_0x42dae6(0x19a)](_0x38220c){const _0x131baa=a3_0x42dae6,_0x1d66bf={};_0x1d66bf[_0x131baa(0x247)]='Cluster\x20creation\x20failed',_0x1d66bf[_0x131baa(0x1bb)]=function(_0x3fa505,_0x4ac9f9){return _0x3fa505===_0x4ac9f9;},_0x1d66bf[_0x131baa(0x26a)]=function(_0x4e3d18,_0x418442){return _0x4e3d18-_0x418442;},_0x1d66bf[_0x131baa(0x1d5)]='UwvFU',_0x1d66bf['cSLSP']=function(_0x1528a3,_0x1c33ca){return _0x1528a3>_0x1c33ca;},_0x1d66bf[_0x131baa(0x196)]=function(_0x18a25d,_0x10eca9){return _0x18a25d===_0x10eca9;},_0x1d66bf[_0x131baa(0x242)]=function(_0x217d16,_0x46ce1a){return _0x217d16===_0x46ce1a;},_0x1d66bf[_0x131baa(0x2a6)]=_0x131baa(0x1d6),_0x1d66bf[_0x131baa(0x15d)]=function(_0x3a670b,_0x4419ad){return _0x3a670b===_0x4419ad;},_0x1d66bf[_0x131baa(0x26e)]=_0x131baa(0x1de);const _0x48c808=_0x1d66bf;try{if(_0x48c808[_0x131baa(0x1bb)](_0x48c808[_0x131baa(0x1d5)],_0x48c808['rnRgy'])){const _0x1bda44=await this[_0x131baa(0x263)][_0x131baa(0x21f)]({'project':this[_0x131baa(0x1fb)],'network':_0x38220c});if(_0x48c808['cSLSP'](_0x1bda44[_0x131baa(0x1b8)],0x0)&&_0x48c808['ZoFIo'](_0x1bda44[0x0][_0x131baa(0x221)],_0x38220c)){if(_0x48c808[_0x131baa(0x242)](_0x48c808[_0x131baa(0x2a6)],_0x48c808[_0x131baa(0x2a6)]))return!![];else _0x4760e9[_0x131baa(0x149)](_0x48c808[_0x131baa(0x247)]);}}else{const _0x3c6bed=_0x131baa(0x284)+this['projectId']+_0x131baa(0x116)+_0x20d579[_0x131baa(0x205)]+_0x131baa(0x2a3)+_0x2817ce[0x0];if(_0x48c808[_0x131baa(0x1bb)](_0x3c6bed,_0x55e211))return[!![],_0x289ae5];}}catch(_0x548306){if(_0x48c808['uPsJm'](_0x48c808[_0x131baa(0x26e)],_0x48c808[_0x131baa(0x26e)]))return![];else _0x221920[_0x131baa(0x205)]=_0x319f6[_0x48c808[_0x131baa(0x26a)](_0x33dd35,0x1)],this['updateClusterRegion']();}return![];}async['isSubnetsValid'](_0x2eb3f6,_0x1d1324){const _0xb94fcf=a3_0x42dae6,_0x2db913={};_0x2db913[_0xb94fcf(0x254)]=function(_0x4b9a70,_0x4c8e8b){return _0x4b9a70!==_0x4c8e8b;},_0x2db913[_0xb94fcf(0x141)]=function(_0x2520a8,_0x1f4438){return _0x2520a8!==_0x1f4438;},_0x2db913['VglMc']=_0xb94fcf(0x1d9),_0x2db913[_0xb94fcf(0x218)]='tmNLY',_0x2db913[_0xb94fcf(0x16c)]=function(_0xeadd43,_0x38b706){return _0xeadd43!==_0x38b706;},_0x2db913[_0xb94fcf(0x157)]=_0xb94fcf(0x125),_0x2db913[_0xb94fcf(0x272)]=_0xb94fcf(0x117),_0x2db913[_0xb94fcf(0x1b9)]=function(_0xfb2ec5,_0x470422){return _0xfb2ec5===_0x470422;},_0x2db913['qdjxf']=_0xb94fcf(0x262),_0x2db913[_0xb94fcf(0x186)]='gcuIl',_0x2db913[_0xb94fcf(0x145)]=_0xb94fcf(0x1a3);const _0x2a75aa=_0x2db913;try{if(_0x2a75aa[_0xb94fcf(0x141)](_0x2a75aa['VglMc'],_0x2a75aa[_0xb94fcf(0x218)])){const _0x1fcbde=await this[_0xb94fcf(0x263)][_0xb94fcf(0x21f)]({'project':this[_0xb94fcf(0x1fb)],'network':_0x1d1324});for(const _0x1d11a4 of _0x1fcbde[0x0]['subnetworks']){if(_0x2a75aa[_0xb94fcf(0x16c)](_0x2a75aa[_0xb94fcf(0x157)],_0x2a75aa[_0xb94fcf(0x272)])){const _0x9378b3=_0xb94fcf(0x284)+this[_0xb94fcf(0x1fb)]+'/regions/'+global_registry[_0xb94fcf(0x205)]+_0xb94fcf(0x2a3)+_0x2eb3f6[0x0];if(_0x2a75aa[_0xb94fcf(0x1b9)](_0x9378b3,_0x1d11a4)){if(_0x2a75aa[_0xb94fcf(0x1b9)](_0x2a75aa[_0xb94fcf(0x295)],_0x2a75aa['CNBYz']))_0x56ae7f=_0x29573f[_0xb94fcf(0x17b)](_0x3e4613[_0x19414c[_0xb94fcf(0x205)]]);else return[!![],_0x2eb3f6];}}else return _0x49693b['error'](_0xb94fcf(0x148)+_0x2b43cf+'.\x20Error:\x20'+_0x3ef284),[![],[]];}}else return _0x2a75aa[_0xb94fcf(0x254)](_0x576df1['clusterRegion'],_0x142398[0x0])&&(_0x309ef2[_0xb94fcf(0x205)]=_0x29ada6[0x0],this[_0xb94fcf(0x26f)]()),!![];}catch(_0x5d37e1){if(_0x2a75aa[_0xb94fcf(0x1b9)](_0x2a75aa['AbioK'],_0x2a75aa[_0xb94fcf(0x145)]))return logger[_0xb94fcf(0x24b)]('Cannot\x20find\x20subnets\x20'+_0x2eb3f6+'.\x20Error:\x20'+_0x5d37e1),[![],[]];else _0xdbbd49[_0xb94fcf(0x24b)](_0xb94fcf(0x129)+_0x5dda8c+_0xb94fcf(0x14a)+_0x279624['stack']),_0x48d95b['data']=_0xb94fcf(0x227)+_0x2552fd,_0x176e3e[_0xb94fcf(0x24b)]=_0x41375c;}return[![],[]];}async['sendGCPInfoToHST'](){const _0x43a18d=a3_0x42dae6,_0x2b9af6={};_0x2b9af6['foywy']=_0x43a18d(0x1fc),_0x2b9af6[_0x43a18d(0x210)]=function(_0x5b85df,_0x5a5c16){return _0x5b85df!==_0x5a5c16;},_0x2b9af6[_0x43a18d(0x231)]='bKuum',_0x2b9af6[_0x43a18d(0x270)]='LStMB';const _0x4377bc=_0x2b9af6,_0x402873=await this[_0x43a18d(0x263)][_0x43a18d(0x2a4)]({'project':this[_0x43a18d(0x1fb)]}),_0x1c4312={};_0x1c4312['username']=global_registry[_0x43a18d(0x1a7)],_0x1c4312[_0x43a18d(0x1b4)]=global_registry[_0x43a18d(0x275)],_0x1c4312['cloudProvider']=GCP,_0x1c4312['vpcInfo']=[];const _0x45d975=_0x1c4312;for(const _0x295db3 of _0x402873){if(_0x4377bc[_0x43a18d(0x210)](_0x4377bc[_0x43a18d(0x231)],_0x4377bc[_0x43a18d(0x270)]))_0x45d975['vpcInfo']['push'](_0x295db3);else{const _0x2e75e8={};_0x2e75e8['channel']=_0x4377bc[_0x43a18d(0x211)],_0x3a05e7[_0x43a18d(0x1ec)]=_0x2e75e8;}}const _0xb912d1={};_0xb912d1['type']=WS_EVENTS[_0x43a18d(0x27d)],_0xb912d1[_0x43a18d(0x29c)]=_0x45d975,this[_0x43a18d(0x20b)]['sendEventToBackend'](this[_0x43a18d(0x15e)],_0xb912d1);}async[a3_0x42dae6(0x26f)](){const _0x15408a=a3_0x42dae6,_0x3396b0={'RBJqv':function(_0x2473f3,_0x38b7ad,_0xca66b6){return _0x2473f3(_0x38b7ad,_0xca66b6);},'URlKV':_0x15408a(0x1e6),'BMZKZ':'json'},_0x52826e=_0x15408a(0x189)+AG_API_URL+_0x15408a(0x268),_0x5be6a5={};_0x5be6a5[_0x15408a(0x281)]=global_registry['gridProfileId'];const _0x18f538={};_0x18f538[_0x15408a(0x219)]=global_registry[_0x15408a(0x205)];const _0x179cef={'searchParams':_0x5be6a5,'json':_0x18f538,'headers':_0x3396b0['RBJqv'](getAuthHeader,global_registry[_0x15408a(0x1a7)],global_registry['bstackAccesskey']),'method':_0x3396b0[_0x15408a(0x1bd)],'responseType':_0x3396b0[_0x15408a(0x120)],'throwHttpErrors':![]},_0x2cb402=await _0x3396b0[_0x15408a(0x144)](got,_0x52826e,_0x179cef);}async[a3_0x42dae6(0x177)](){const _0xe7bd28=a3_0x42dae6,_0x5f051c={'VHCFs':function(_0x18f1c6,_0x3fca89){return _0x18f1c6(_0x3fca89);},'aAFEo':_0xe7bd28(0x163),'myEpE':_0xe7bd28(0x1f7),'SyLEe':_0xe7bd28(0x2a7)},_0x50ef52={};_0x50ef52['status']=![],_0x50ef52[_0xe7bd28(0x24b)]=null,_0x50ef52['data']='';const _0x529261=_0x50ef52;try{const _0xedf77a=await _0x5f051c[_0xe7bd28(0x133)](runCommand,_0x5f051c[_0xe7bd28(0x224)]);_0xedf77a[_0xe7bd28(0x292)](_0x5f051c[_0xe7bd28(0x253)])?logger[_0xe7bd28(0x26c)](_0xedf77a):logger[_0xe7bd28(0x16b)](_0xedf77a),_0x529261[_0xe7bd28(0x2a0)]=!![],_0x529261['data']=_0x5f051c[_0xe7bd28(0x27b)];}catch(_0x6737ba){logger['error'](_0xe7bd28(0x129)+_0x6737ba+'\x20:\x20'+_0x6737ba[_0xe7bd28(0x197)]),_0x529261[_0xe7bd28(0x1fe)]=_0xe7bd28(0x227)+_0x6737ba,_0x529261[_0xe7bd28(0x24b)]=_0x6737ba;}return _0x529261;}async[a3_0x42dae6(0x20f)](){const _0x2a1ca3=a3_0x42dae6,_0x2b663c={};_0x2b663c[_0x2a1ca3(0x161)]=_0x2a1ca3(0x255),_0x2b663c['VhYKJ']=_0x2a1ca3(0x265);const _0x5dfd73=_0x2b663c,_0x5c6c10={};_0x5c6c10[_0x2a1ca3(0x2a0)]=![],_0x5c6c10[_0x2a1ca3(0x24b)]=null,_0x5c6c10[_0x2a1ca3(0x1fe)]='';const _0x4a6d48=_0x5c6c10;try{let _0x2477d1='';const _0x705a89=_0x2a1ca3(0x1c7)+this[_0x2a1ca3(0x1fb)],[_0x42061b]=await this[_0x2a1ca3(0x136)][_0x2a1ca3(0x203)]({'resource':_0x705a89,'permissions':Object[_0x2a1ca3(0x16f)](PERMISSIONS)});_0x4a6d48[_0x2a1ca3(0x2a0)]=!![],logger[_0x2a1ca3(0x16b)](_0x2a1ca3(0x132)+_0x705a89+':\x20'+JSON[_0x2a1ca3(0x1d2)](_0x42061b)),Object[_0x2a1ca3(0x18c)](PERMISSIONS)['forEach'](([_0x24b1e6,_0x2c04c])=>{const _0x563d52=_0x2a1ca3,_0x3f54c0=_0x42061b[_0x563d52(0x22f)][_0x563d52(0x28c)](_0x24b1e6);_0x2477d1+='\x0a\x09'+_0x2c04c+_0x563d52(0x14a)+(_0x3f54c0?_0x5dfd73[_0x563d52(0x161)]:_0x5dfd73[_0x563d52(0x1d0)]),!_0x3f54c0&&(_0x4a6d48[_0x563d52(0x2a0)]=![]);}),_0x4a6d48[_0x2a1ca3(0x1fe)]=_0x2477d1;}catch(_0x398902){_0x4a6d48['error']=_0x398902;}return _0x4a6d48;}}function a3_0x3402(){const _0xff5053=['/global/networks/','spkbx','RBJqv','AbioK','setupHubHa','PjBiu','Cannot\x20find\x20subnets\x20','info','\x20:\x20','9636984KsFjRc','storage.objects.getIamPolicy','exec','browserstack','vgDyH','turboscale_custom_role','JGfTR','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','WHcts','tMAKI','45590fzsoOI','FMvTP','dMUoO','child_process','icELQ','storage.buckets.createTagBinding','NFqoL','xShcg','uPsJm','rws','hMMRr','xlVMs','kaSpO','maxNodeCount','gcloud\x20--version','Ftulr','Vnpzp','AqVtL','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','clusters','YQBmg','autoUpgrade','debug','iUsnn','fVcgN','../utils/utilityMethods','keys','masterAuth','clusterAutoUpgrade','uZost','jYxAg','MeQZR','fYVsP','credentialsPath','isCliToolInstalled','.iam.gserviceaccount.com','YtzZj','util','concat','1490535yGcGlu','BxyIv','ZJOip','machineType','\x20--quiet\x20--user-output-enabled=false','storage.buckets.get','replace','writeFileSync','SBjlO','zshZw','CNBYz','ImmrF','aWekW','https://','getGridHostname','deleteCluster','entries','njyUf','iamClient','rOZpK','toString','ecaNI','serviceAccountName','gfjtv','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','MpUsX','ZoFIo','stack','wIVFo','accounts','isVPCPresent','huvQA','VWanB','vpcInfo','YmSXI','RPcqw','UaDrO','PdKxF','Turboscale\x20Custom\x20Role','rsGkk','/locations/','push','serviceAccount:','bstackUsername','storage.buckets.setIamPolicy','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','init','storage.buckets.getObjectInsights','HYUcQ','containerClient','sendResourceDataToHST','IDmSF','agQbh','AYweA','minNodeCount','SVoRU','accessKey','roOQF','Service\x20account\x20already\x20exists,\x20skipping','listClusters','length','YWZNl','eqiOA','JcZzs','eMypm','URlKV','MIswi','uOhjs','roles','./CloudProvider','DlYil','getClient','kfnoK','FMPxZ','uSYUE','projects/','RUNNING','createCluster','TsjTs','HQyLY','default','vdQHN','storage.buckets.create','exports','VhYKJ','parse','stringify','cYOyT','CAcqH','rnRgy','THRtu','OWDLM','qUcYi','bDUbu','config','yAbAt','type','zqxvc','lPigt','clusterName','bindings','/roles/','Cluster\x20creation\x20failed','NbhtG','eOSNP','flNCe','PUT','SQfzk','gvFiM','YydIT','XTvpR','znoyk','releaseChannel','project_id','management','utf-8','BjxMX','storage.buckets.delete','212VxigJd','/serviceAccounts/','Iccje','keyFile','doUKE','Intercepted','isBrowserstackCluster','@google-cloud/resource-manager','NlOyQ','projectId','REGULAR','neZME','data','@google-cloud/compute','Creating\x20GKE\x20Cluster','AFOgt','QiGuW','testIamPermissions','LOG','clusterRegion','FGkoL','GcZAs','OdbPd','locations','serviceAccount','webSocketUtils','scopes','/clusters/','bbbwZ','checkAccess','XgPWl','foywy','join','SMwmH','RHWzT','167425ySzCMU','xxTaN','readFileAsync','uViNY','newRegion','../config/constants','got','\x20--windows-os-version=ltsc2022\x20--region\x20','jYrhf','OLUtj','get','zyeTU','name','teDrc','tUALU','aAFEo','location','iMmDa','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','8772AWLeSx','NFdRV','storage.objects.list','sendGCPInfoToHST','QLBYP','WFIBS','wXYNU','permissions','uRbbe','KFGXO','zLwRR','wkbqe','jOqpf','NetworksClient','ThLnW','tTXiO','AWGRx','rwufX','GOmWw','customRoleName','maxNodes','regionmap.json','ahAbQ','auHkc','subnetwork','VfiKL','vWfQo','hcboo','gkecluster.json','mhKiE','setIamPolicy','qpdpT','eAJBS','pflYa','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','error','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','VHkaM','dFxAU','execSync','VBflK','network','zXklD','myEpE','TtkCd','allowed','storage.buckets.list','storage.multipartUploads.listParts','iam.serviceAccounts.signBlob','cloudProvider','../utils/gridComponents','create','gjBYH','setCachedCredsInRegistry','role','UjtXQ','Ndbgk','DONE','MFUUa','networkClient','GKE\x20Cluster\x20deletion\x20failed','denied','storage.buckets.listEffectiveTags','ingress','/packages/cli/update-cluster-region','includedPermissions','AHmpG','uqySk','warn','storage.multipartUploads.list','YyTfg','updateClusterRegion','rErQD','qvflA','cVOjC','rfOmX','wtTew','bstackAccesskey','sendEventToBackend','storage.objects.create','instanceType','../config/logger','ZFUYS','SyLEe','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','RESOURCES','requestBody','BdvuR','lBWxK','profileId','ruFrU','VQzSh','https://www.googleapis.com/compute/v1/projects/','kuKKU','UreTg','GoogleCloudProvider','1crrDVw','NSXbs','WrUAP','IJXuT','includes','storage.multipartUploads.abort','1554JXhYIv','1854nwGPjw','gcpresources','iam','startsWith','exit','storage.objects.setIamPolicy','qdjxf','1|3|6|0|8|7|5|2|4','title','path','storage.buckets.getIamPolicy','getIamPolicy','cloudProviderName','message','templates','setupServiceAccount','managedby','status','ldAHi','oklcg','/subnetworks/','list','mUkeL','ymSmU','cli\x20tool\x20is\x20installed','serviceAccounts','getClusterInfo','rvxzc','JxVCY','gke_','lomLX','resourceLabels','53200939euKVPL','checkServiceAccount','/regions/','jmJTg','1735846xtwnKt','xNjSl','dwaHl','zsvIK','Rapph','updateWindowsNodeGroup','kRNcg','getKubeConfigData','BMZKZ','ZHHBM','storage.buckets.deleteTagBinding','TLjJf','turboscale-service-account','frURc','MHowm','log','FkGDd','error\x20:\x20','storage.objects.update','tdYzp','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','gcloud\x20auth\x20login\x20--cred-file=','brOYM','odVaT','channel','SSRxn','permissions\x20check\x20response\x20for\x20','VHCFs','projects','autoscaling','resourcemanagerClient','parent','auth','bvsuq','@google-cloud/container','endpoint','accountId','nodePools','PXFrW','https://www.googleapis.com/auth/cloud-platform','wqype','njdDe'];a3_0x3402=function(){return _0xff5053;};return a3_0x3402();}const a3_0x23f38d={};a3_0x23f38d[a3_0x42dae6(0x287)]=GoogleCloudProvider,module[a3_0x42dae6(0x1cf)]=a3_0x23f38d;
1
+ const a3_0x3cb80c=a3_0xc89d;(function(_0x158da4,_0x364f04){const _0x242190=a3_0xc89d,_0x235e32=_0x158da4();while(!![]){try{const _0xe69731=-parseInt(_0x242190(0xf0))/0x1*(parseInt(_0x242190(0x25d))/0x2)+-parseInt(_0x242190(0x223))/0x3+parseInt(_0x242190(0x189))/0x4+parseInt(_0x242190(0x1c1))/0x5*(-parseInt(_0x242190(0x113))/0x6)+-parseInt(_0x242190(0xf9))/0x7+parseInt(_0x242190(0x19d))/0x8*(-parseInt(_0x242190(0x20a))/0x9)+parseInt(_0x242190(0x11a))/0xa;if(_0xe69731===_0x364f04)break;else _0x235e32['push'](_0x235e32['shift']());}catch(_0x11a482){_0x235e32['push'](_0x235e32['shift']());}}}(a3_0x1790,0x262e0));const fs=require('fs'),path=require('path'),got=require(a3_0x3cb80c(0x1a8)),util=require(a3_0x3cb80c(0x134)),cp=require(a3_0x3cb80c(0x217)),{google}=require('googleapis'),compute=require(a3_0x3cb80c(0xe0)),container=require(a3_0x3cb80c(0x1a3)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x3cb80c(0x14b)),{CloudProvider}=require(a3_0x3cb80c(0x17b)),{getDirForConfig,getAuthHeader,runCommand}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x3cb80c(0x22f)),{inputConfirmation,closeInput}=require(a3_0x3cb80c(0x12a)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require('../config/constants'),PERMISSIONS=require(a3_0x3cb80c(0x16b));class GoogleCloudProvider extends CloudProvider{constructor(_0x55714b,_0xbc6b3c,_0x47347d,_0x18c354){const _0x52fdcf=a3_0x3cb80c,_0x27711a={};_0x27711a[_0x52fdcf(0x1c0)]=_0x52fdcf(0x243),_0x27711a[_0x52fdcf(0x121)]='turboscale-service-account',_0x27711a[_0x52fdcf(0x1b9)]=_0x52fdcf(0x161);const _0xb0b491=_0x27711a,_0x30f30c=_0xb0b491[_0x52fdcf(0x1c0)][_0x52fdcf(0x176)]('|');let _0x1ba6c0=0x0;while(!![]){switch(_0x30f30c[_0x1ba6c0++]){case'0':super(GCP,_0x55714b,_0xbc6b3c,_0x47347d,_0x18c354);continue;case'1':this[_0x52fdcf(0x1ce)]=null;continue;case'2':this[_0x52fdcf(0x1fc)]=null;continue;case'3':this['networkClient']=null;continue;case'4':this['serviceAccountName']=_0xb0b491['lMKeT'];continue;case'5':this[_0x52fdcf(0x190)]=_0xb0b491[_0x52fdcf(0x1b9)];continue;case'6':this[_0x52fdcf(0x1b2)]=null;continue;case'7':this[_0x52fdcf(0x181)]=null;continue;case'8':this[_0x52fdcf(0xfd)]=null;continue;}break;}}async[a3_0x3cb80c(0x257)](){const _0x3a205c=a3_0x3cb80c;this[_0x3a205c(0x209)](this[_0x3a205c(0x14c)]);}async[a3_0x3cb80c(0x125)](){const _0x46a6aa=a3_0x3cb80c;await super[_0x46a6aa(0x125)]();const _0x231c48=this[_0x46a6aa(0x1ce)],_0x241a81={};_0x241a81[_0x46a6aa(0x1fa)]=_0x231c48,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x241a81);const _0x1d38dc={};_0x1d38dc[_0x46a6aa(0x1fa)]=_0x231c48,this[_0x46a6aa(0x255)]=new compute['v1'][(_0x46a6aa(0x26b))](_0x1d38dc);const _0x4bd67f={};return _0x4bd67f['keyFile']=_0x231c48,this[_0x46a6aa(0x1fc)]=new ProjectsClient(_0x4bd67f),this[_0x46a6aa(0x1b2)]=google['iam']('v1'),this;}async[a3_0x3cb80c(0xf7)](_0x5a14a1,_0x5ae2f1){const _0x1e6f30=a3_0x3cb80c,_0x5e452e={'bJomm':function(_0x59f844,_0x543a86){return _0x59f844(_0x543a86);},'BimQT':'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','ghLdP':function(_0xbcb60c){return _0xbcb60c();},'cyflW':_0x1e6f30(0x117)},_0x221e8f=await _0x5e452e['bJomm'](_0x5a14a1,_0x5e452e[_0x1e6f30(0x248)]);let _0x51c342=await fs[_0x1e6f30(0xfc)](_0x221e8f);_0x51c342=_0x51c342['toString']();const _0x28fcb9=_0x5e452e[_0x1e6f30(0x179)](getDirForConfig),_0x387aa2=path[_0x1e6f30(0x13e)](_0x28fcb9,_0x5e452e[_0x1e6f30(0x1fe)]);fs[_0x1e6f30(0x241)](_0x387aa2,_0x51c342),this[_0x1e6f30(0x1ce)]=_0x387aa2;const _0x1609e8={};return _0x1609e8[_0x1e6f30(0x1fa)]=_0x387aa2,_0x5ae2f1['cloudProvider'][GCP]=_0x1609e8,_0x51c342=JSON[_0x1e6f30(0x1a9)](_0x51c342),this[_0x1e6f30(0xfd)]=_0x51c342['project_id'],_0x5ae2f1;}async[a3_0x3cb80c(0x27d)](_0x20415a){const _0x196001=a3_0x3cb80c;this['credentialsPath']=_0x20415a[this[_0x196001(0x17e)]][_0x196001(0x1fa)];let _0x4402d0=await fs[_0x196001(0xfc)](this[_0x196001(0x1ce)]);_0x4402d0=JSON[_0x196001(0x1a9)](_0x4402d0),this[_0x196001(0xfd)]=_0x4402d0[_0x196001(0x24a)];}[a3_0x3cb80c(0x1bb)](_0x432c1c){const _0x4e86e2=a3_0x3cb80c;return _0x432c1c['status'][_0x4e86e2(0x215)][_0x4e86e2(0x25c)][0x0]['ip'];}async[a3_0x3cb80c(0x157)](){const _0x30f130=a3_0x3cb80c,_0x2d7b26={};_0x2d7b26['FPTef']=function(_0xe4dd4b,_0x5e1945){return _0xe4dd4b!==_0x5e1945;},_0x2d7b26[_0x30f130(0x254)]=_0x30f130(0x192),_0x2d7b26['XCfsB']=function(_0x2f8069,_0x5e326c){return _0x2f8069===_0x5e326c;},_0x2d7b26['kLYbr']='UZHNJ',_0x2d7b26['MkgFS']=_0x30f130(0x256),_0x2d7b26[_0x30f130(0x118)]=_0x30f130(0x194),_0x2d7b26['wfAuK']=function(_0x2a73a5,_0x1ed19e){return _0x2a73a5===_0x1ed19e;},_0x2d7b26[_0x30f130(0x1ad)]=_0x30f130(0x259),_0x2d7b26['KitGM']=_0x30f130(0x1ac);const _0x351599=_0x2d7b26;try{if(_0x351599[_0x30f130(0x225)](_0x351599['txPDj'],_0x351599['txPDj']))this[_0x30f130(0x209)](this[_0x30f130(0x14c)]);else{const _0x1e4a8f=await this[_0x30f130(0x1f7)]();if(_0x1e4a8f[0x0]?.[_0x30f130(0x239)]?.[_0x30f130(0x1a0)]){if(_0x351599[_0x30f130(0xdb)](_0x351599[_0x30f130(0x26f)],_0x351599[_0x30f130(0x263)]))_0x25a03a[_0x30f130(0x20b)][_0x30f130(0x1f9)](_0x62fd86);else{const _0x136729=_0x1e4a8f[0x0]?.[_0x30f130(0x239)]?.[_0x30f130(0x1a0)];return _0x136729&&_0x351599[_0x30f130(0xdb)](_0x136729[_0x30f130(0x1b6)](),_0x351599[_0x30f130(0x118)]);}}}}catch(_0xa0fa94){if(_0x351599[_0x30f130(0x1a5)](_0x351599['ProHA'],_0x351599[_0x30f130(0x116)]))_0x55278c=_0x491196[_0x30f130(0x1cd)](_0x39661b[_0x342943['clusterRegion']]);else return![];}return![];}async[a3_0x3cb80c(0x112)](){const _0x59026f=a3_0x3cb80c,_0x237f03={'xYZvU':function(_0x1137c7,_0x67cae9){return _0x1137c7+_0x67cae9;},'fixpG':_0x59026f(0x1e7),'QrFoN':'denied','wIqSr':function(_0x39432c,_0x565d78){return _0x39432c===_0x565d78;},'YbBUH':'GKE\x20Cluster\x20deletion\x20failed','aQIeF':_0x59026f(0x1d5),'sAibv':function(_0x40026b,_0x8890c8){return _0x40026b===_0x8890c8;},'KIaBn':_0x59026f(0x1ab),'MYSHK':'gcpresources','cJLtl':'regionmap.json','josrm':_0x59026f(0x1af),'gHyuQ':function(_0x3e6dbb,_0x21bb31){return _0x3e6dbb!==_0x21bb31;},'HIuJh':function(_0x270d5e,_0x4f4383){return _0x270d5e!==_0x4f4383;},'AXrOv':_0x59026f(0x104),'HhRpW':function(_0x306be3,_0x79ae65){return _0x306be3===_0x79ae65;},'XjiaK':_0x59026f(0x171),'cLrId':'cIeoC','ohcEX':function(_0x304fc9,_0x93bb40){return _0x304fc9===_0x93bb40;},'PSuZn':_0x59026f(0x128),'zDRnP':_0x59026f(0x1a4),'GdzXW':function(_0x26ba88,_0x3c6ba7){return _0x26ba88===_0x3c6ba7;},'JfNMl':_0x59026f(0x177),'xsfqA':function(_0x6a75a5,_0x3c72cb){return _0x6a75a5===_0x3c72cb;},'UerhQ':function(_0x28be6b,_0x5171ba){return _0x28be6b===_0x5171ba;},'wqMtP':_0x59026f(0x17a),'yBjNb':_0x59026f(0x25a),'KIigQ':_0x59026f(0x220),'ywLwh':function(_0xcb5ddc,_0x51e5f8){return _0xcb5ddc>_0x51e5f8;},'dHkuo':_0x59026f(0x185),'YyyLB':function(_0x13f8e7,_0x4d599f){return _0x13f8e7<_0x4d599f;},'GFIfW':function(_0x1da308,_0xebd0af){return _0x1da308===_0xebd0af;},'NTMDm':_0x59026f(0x11d),'QRWED':function(_0x218733,_0x119451){return _0x218733+_0x119451;},'IeWuQ':function(_0x26368e,_0x288cd1){return _0x26368e(_0x288cd1);},'SbMGE':_0x59026f(0x115),'gUvER':function(_0x50f284,_0x39ca87){return _0x50f284(_0x39ca87);},'FUVwe':function(_0x352d72,_0x557946){return _0x352d72(_0x557946);},'cNtEU':function(_0x518c3a,_0x90e0b8){return _0x518c3a<=_0x90e0b8;},'VjwZL':_0x59026f(0x1c9),'nyanY':_0x59026f(0x174),'qUIzE':function(_0x4403aa){return _0x4403aa();},'DahoA':function(_0x4375a1,_0x5333f1){return _0x4375a1-_0x5333f1;},'zcIqE':function(_0x320101,_0xf355a3){return _0x320101!==_0xf355a3;},'inyif':function(_0x376756,_0x3cb7fc){return _0x376756-_0x3cb7fc;},'clSjP':function(_0x5227dc,_0x39024e){return _0x5227dc===_0x39024e;},'FZsDl':'PkOHJ','UDjbb':function(_0x4cca28,_0x72c6b8){return _0x4cca28-_0x72c6b8;}};let _0x1ef88a=await fs[_0x59026f(0xfc)](path['join'](__dirname,'..',_0x237f03['KIaBn'],_0x237f03[_0x59026f(0x227)],_0x237f03[_0x59026f(0x250)]),_0x237f03[_0x59026f(0xef)]);_0x1ef88a=JSON[_0x59026f(0x1a9)](_0x1ef88a);let _0x4f0b3e=[global_registry[_0x59026f(0x26c)]];_0x237f03[_0x59026f(0x10d)](_0x1ef88a[global_registry[_0x59026f(0x26c)]],undefined)&&(_0x237f03[_0x59026f(0x10b)](_0x237f03[_0x59026f(0x1bd)],_0x237f03[_0x59026f(0x1bd)])?_0x6e5ba5[_0x59026f(0x15f)]('['+_0x237f03[_0x59026f(0xe5)](_0x568f66,0x1)+']\x20'+_0x51e0fc[_0x46c330]):_0x4f0b3e=_0x4f0b3e[_0x59026f(0x1cd)](_0x1ef88a[global_registry[_0x59026f(0x26c)]]));const _0xa4077b=[];for await(const _0x14f450 of _0x4f0b3e){if(_0x237f03['HhRpW'](_0x237f03[_0x59026f(0x1f4)],_0x237f03['cLrId'])){const _0x23b6aa=_0x26267a[_0x59026f(0x10a)][_0x59026f(0x269)](_0x4222ba);_0x306882+='\x0a\x09'+_0x387060+_0x59026f(0x1d3)+(_0x23b6aa?_0x237f03[_0x59026f(0x234)]:_0x237f03[_0x59026f(0x1d0)]),!_0x23b6aa&&(_0x4461ab[_0x59026f(0x10e)]=![]);}else{const _0x2e69a7={};_0x2e69a7[_0x59026f(0x1a1)]='projects/'+this[_0x59026f(0xfd)]+_0x59026f(0x27e)+_0x14f450;const _0x17ae5a=_0x2e69a7,_0x52643f=await this[_0x59026f(0x181)][_0x59026f(0x22b)](_0x17ae5a);for(const _0x1c09ee of _0x52643f[0x0][_0x59026f(0x12e)]){_0x237f03[_0x59026f(0x182)](_0x237f03['PSuZn'],_0x237f03[_0x59026f(0x13d)])?_0x19a7fc['debug'](_0x5a0568):_0x237f03['GdzXW'](_0x1c09ee[_0x59026f(0x186)],this[_0x59026f(0x1ee)])&&(_0x237f03[_0x59026f(0x10b)](_0x237f03[_0x59026f(0x21c)],_0x237f03[_0x59026f(0x21c)])?(_0x2d4950['error']('error\x20:\x20'+_0x135dfc+'\x20:\x20'+_0xb60fdc[_0x59026f(0x184)]),_0x171170[_0x59026f(0x232)]=_0x59026f(0x258)+_0x107fda,_0x29e96f[_0x59026f(0x163)]=_0x38b3a5):_0xa4077b[_0x59026f(0x1f9)](_0x14f450));}}}const _0x5c7b20=_0xa4077b[_0x59026f(0x242)];if(_0x237f03[_0x59026f(0x180)](_0x5c7b20,0x1)){if(_0x237f03[_0x59026f(0x147)](_0x237f03[_0x59026f(0x211)],_0x237f03[_0x59026f(0x211)])){if(_0x237f03[_0x59026f(0x10d)](global_registry['clusterRegion'],_0xa4077b[0x0])){if(_0x237f03[_0x59026f(0x10d)](_0x237f03[_0x59026f(0x23d)],_0x237f03[_0x59026f(0x23a)]))global_registry[_0x59026f(0x26c)]=_0xa4077b[0x0],this[_0x59026f(0x266)]();else{const _0x5b6b57='https://www.googleapis.com/compute/v1/projects/'+this[_0x59026f(0xfd)]+_0x59026f(0xda)+_0x9cb30d[_0x59026f(0x26c)]+_0x59026f(0x26e)+_0x146458[0x0];if(_0x237f03['wIqSr'](_0x5b6b57,_0x410c05))return[!![],_0x44b10f];}}return!![];}else{_0x4de0a8[_0x59026f(0x14a)](_0x237f03[_0x59026f(0x20d)]);throw _0x3766da;}}else{if(_0x237f03[_0x59026f(0x1c4)](_0x5c7b20,0x1)){if(_0x237f03[_0x59026f(0x10d)](_0x237f03[_0x59026f(0x130)],_0x237f03[_0x59026f(0x130)]))return _0x4b95dd[_0x59026f(0x10e)]['loadBalancer'][_0x59026f(0x25c)][0x0]['ip'];else{console[_0x59026f(0x15f)](_0x59026f(0x1aa)+this[_0x59026f(0x1ee)]+_0x59026f(0x18a));for(let _0x1b4286=0x0;_0x237f03[_0x59026f(0x1ba)](_0x1b4286,_0x5c7b20);_0x1b4286+=0x1){_0x237f03['GFIfW'](_0x237f03['NTMDm'],_0x237f03[_0x59026f(0x1c7)])?console[_0x59026f(0x15f)]('['+_0x237f03[_0x59026f(0x123)](_0x1b4286,0x1)+']\x20'+_0xa4077b[_0x1b4286]):_0x3984e1=[_0x237f03[_0x59026f(0x16a)]];}const _0x48e3d6=await _0x237f03[_0x59026f(0x137)](inputConfirmation,_0x237f03[_0x59026f(0x238)]),_0x3b29c6=_0x237f03[_0x59026f(0x1da)](Number,_0x48e3d6);if(_0x237f03['FUVwe'](isNaN,_0x3b29c6)||_0x237f03[_0x59026f(0x1d2)](_0x3b29c6,0x0)||_0x237f03['ywLwh'](_0x3b29c6,_0x5c7b20)){if(_0x237f03[_0x59026f(0x10d)](_0x237f03['VjwZL'],_0x237f03['VjwZL']))return!![];else console[_0x59026f(0x163)](_0x237f03['nyanY']),process[_0x59026f(0x237)](0x1);}_0x237f03[_0x59026f(0x1e6)](closeInput),logger[_0x59026f(0x14a)](_0x59026f(0x1ae)+_0xa4077b[_0x237f03[_0x59026f(0x10f)](_0x3b29c6,0x1)]);if(_0x237f03[_0x59026f(0x19f)](global_registry['clusterRegion'],_0xa4077b[_0x237f03['inyif'](_0x3b29c6,0x1)])){if(_0x237f03[_0x59026f(0x270)](_0x237f03['FZsDl'],_0x237f03[_0x59026f(0x17c)]))global_registry[_0x59026f(0x26c)]=_0xa4077b[_0x237f03[_0x59026f(0x22d)](_0x3b29c6,0x1)],this[_0x59026f(0x266)]();else{if(_0x237f03[_0x59026f(0x1f3)](_0x40fbd7?.[_0x59026f(0x186)],_0x59026f(0x15e)+this['projectId']+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x59026f(0xfd)]+_0x59026f(0x106)))return!![];}}return!![];}}}return![];}async[a3_0x3cb80c(0x1f7)](){const _0x242997=a3_0x3cb80c,_0x5ae573=await this[_0x242997(0x181)][_0x242997(0x202)]({'name':_0x242997(0x15e)+this[_0x242997(0xfd)]+_0x242997(0x27e)+global_registry[_0x242997(0x26c)]+'/clusters/'+this[_0x242997(0x1ee)]});return _0x5ae573;}async['getKubeConfigData'](){const _0x1f709b=a3_0x3cb80c,_0x2209a0={};_0x2209a0[_0x1f709b(0xf6)]=_0x1f709b(0x24e),_0x2209a0[_0x1f709b(0x1c5)]='templates',_0x2209a0[_0x1f709b(0x1cc)]=_0x1f709b(0x206),_0x2209a0[_0x1f709b(0x204)]=_0x1f709b(0x24b);const _0x6c0bfd=_0x2209a0;cp[_0x1f709b(0x240)](_0x6c0bfd[_0x1f709b(0xf6)]),cp[_0x1f709b(0x175)](_0x1f709b(0x19e)+this[_0x1f709b(0x1ce)]);const _0xe87c8d=await this[_0x1f709b(0x1f7)](),_0x3f0b5d=_0x1f709b(0x25f)+this['projectId']+'_'+global_registry[_0x1f709b(0x26c)]+'_'+this['clusterName'];let _0x5f7e88=await fs['readFileAsync'](path[_0x1f709b(0x13e)](__dirname,'..',_0x6c0bfd[_0x1f709b(0x1c5)],_0x6c0bfd['rNCBp'],_0x6c0bfd[_0x1f709b(0x204)]));return _0x5f7e88=_0x5f7e88[_0x1f709b(0x23e)](),_0x5f7e88=_0x5f7e88[_0x1f709b(0x127)](/<CLUSTER_NAME>/g,_0x3f0b5d),_0x5f7e88=_0x5f7e88['replace'](/<CLUSTER_URL>/g,_0x1f709b(0x1e1)+_0xe87c8d[0x0]['endpoint']),_0x5f7e88=_0x5f7e88['replace'](/<CERTIFICATE_DATA>/g,_0xe87c8d[0x0][_0x1f709b(0x22a)][_0x1f709b(0x17f)]),_0x5f7e88;}async[a3_0x3cb80c(0x1f2)](){const _0xc55599=a3_0x3cb80c,_0xaa7274={};_0xaa7274[_0xc55599(0x265)]=_0xc55599(0x1d5),_0xaa7274[_0xc55599(0x25b)]=function(_0x4cf7a3,_0x3a5488){return _0x4cf7a3===_0x3a5488;},_0xaa7274['uXwaO']='https://www.googleapis.com/auth/cloud-platform',_0xaa7274['IGCbv']=function(_0x4be5ae,_0x363fc2){return _0x4be5ae!==_0x363fc2;},_0xaa7274[_0xc55599(0x235)]=_0xc55599(0x195),_0xaa7274[_0xc55599(0x102)]='HlkZk',_0xaa7274[_0xc55599(0x280)]=function(_0x15528d,_0x33b156){return _0x15528d===_0x33b156;},_0xaa7274[_0xc55599(0x1ea)]=function(_0x1ef281,_0x496445){return _0x1ef281!==_0x496445;},_0xaa7274[_0xc55599(0x18c)]=_0xc55599(0x12f),_0xaa7274[_0xc55599(0xe8)]='tyjch';const _0x5f42a9=_0xaa7274,_0x4934af={};_0x4934af[_0xc55599(0x1e3)]=[_0x5f42a9['uXwaO']],_0x4934af[_0xc55599(0x1fa)]=this[_0xc55599(0x1ce)];const _0x592b1f=await google['auth'][_0xc55599(0x1fd)](_0x4934af),_0x49b6fd=await this['iamClient']['projects']['serviceAccounts'][_0xc55599(0x142)]({'name':'projects/'+this['projectId'],'auth':_0x592b1f});if(_0x49b6fd?.[_0xc55599(0x232)]?.['accounts']){if(_0x5f42a9[_0xc55599(0x207)](_0x5f42a9[_0xc55599(0x235)],_0x5f42a9[_0xc55599(0x235)]))return _0x14f85b[_0xc55599(0x163)](_0xc55599(0x1e8)+_0x190045+_0xc55599(0x15d)+_0x37b28a),[![],[]];else for(const _0x5f0ba6 of _0x49b6fd['data']['accounts']){if(_0x5f42a9[_0xc55599(0x207)](_0x5f42a9[_0xc55599(0x102)],_0x5f42a9[_0xc55599(0x102)]))_0x4bbdd7=_0x5f42a9[_0xc55599(0x265)];else{if(_0x5f42a9[_0xc55599(0x280)](_0x5f0ba6?.[_0xc55599(0x186)],_0xc55599(0x15e)+this['projectId']+_0xc55599(0x140)+this[_0xc55599(0x1cb)]+'@'+this[_0xc55599(0xfd)]+_0xc55599(0x106))){if(_0x5f42a9['yIZko'](_0x5f42a9[_0xc55599(0x18c)],_0x5f42a9[_0xc55599(0xe8)]))return!![];else for(const _0xb16de2 of _0x37d64a['data'][_0xc55599(0x1b1)]){if(_0x5f42a9[_0xc55599(0x25b)](_0xb16de2?.[_0xc55599(0x186)],_0xc55599(0x15e)+this[_0xc55599(0xfd)]+_0xc55599(0x140)+this[_0xc55599(0x1cb)]+'@'+this[_0xc55599(0xfd)]+_0xc55599(0x106)))return!![];}}}}}return![];}async[a3_0x3cb80c(0x132)](){const _0x3b515c=a3_0x3cb80c,_0x29c69f={};_0x29c69f['WzzRr']=function(_0x3b7a89,_0x1fe2c6){return _0x3b7a89!==_0x1fe2c6;},_0x29c69f[_0x3b515c(0x188)]=_0x3b515c(0x148),_0x29c69f[_0x3b515c(0x20e)]=_0x3b515c(0x1b0),_0x29c69f['vEATT']=_0x3b515c(0x274),_0x29c69f['idOEb']=_0x3b515c(0x1e2),_0x29c69f['HtUZr']='https://www.googleapis.com/auth/cloud-platform',_0x29c69f[_0x3b515c(0x218)]=_0x3b515c(0x212),_0x29c69f[_0x3b515c(0x149)]='storage.buckets.create',_0x29c69f[_0x3b515c(0x271)]=_0x3b515c(0x13f),_0x29c69f[_0x3b515c(0xea)]=_0x3b515c(0x233),_0x29c69f[_0x3b515c(0x268)]=_0x3b515c(0x114),_0x29c69f[_0x3b515c(0x19c)]=_0x3b515c(0x15a),_0x29c69f['jpoYv']='storage.buckets.getIamPolicy',_0x29c69f[_0x3b515c(0x135)]=_0x3b515c(0x1f8),_0x29c69f[_0x3b515c(0x228)]=_0x3b515c(0x1a7),_0x29c69f[_0x3b515c(0x168)]=_0x3b515c(0x21b),_0x29c69f[_0x3b515c(0xde)]=_0x3b515c(0xf8),_0x29c69f[_0x3b515c(0x264)]=_0x3b515c(0x1f6),_0x29c69f[_0x3b515c(0x12d)]=_0x3b515c(0x136),_0x29c69f[_0x3b515c(0x1a2)]=_0x3b515c(0x13a),_0x29c69f['FfMRo']=_0x3b515c(0x272),_0x29c69f[_0x3b515c(0x173)]=_0x3b515c(0x23c),_0x29c69f[_0x3b515c(0x145)]='storage.multipartUploads.listParts',_0x29c69f[_0x3b515c(0x21a)]=_0x3b515c(0xeb),_0x29c69f[_0x3b515c(0x178)]='storage.objects.delete',_0x29c69f[_0x3b515c(0xdc)]='storage.objects.get',_0x29c69f[_0x3b515c(0x12b)]=_0x3b515c(0x1d1),_0x29c69f['xlhMC']='storage.objects.list',_0x29c69f[_0x3b515c(0x1b4)]=_0x3b515c(0xec),_0x29c69f[_0x3b515c(0x11f)]=_0x3b515c(0x193),_0x29c69f[_0x3b515c(0x1d6)]=_0x3b515c(0x199),_0x29c69f['RZpsv']=_0x3b515c(0x23b);const _0x56fc0c=_0x29c69f,_0x622349=await this[_0x3b515c(0x1f2)]();if(_0x622349){if(_0x56fc0c[_0x3b515c(0x156)](_0x56fc0c['YZVrz'],_0x56fc0c[_0x3b515c(0x20e)])){logger['info'](_0x56fc0c[_0x3b515c(0x1e0)]);return;}else return![];}logger['info'](_0x56fc0c['idOEb']);const _0x3a1840={};_0x3a1840['scopes']=[_0x56fc0c[_0x3b515c(0x11c)]],_0x3a1840[_0x3b515c(0x1fa)]=this[_0x3b515c(0x1ce)];const _0x3b8f84=await google['auth'][_0x3b515c(0x1fd)](_0x3a1840),_0x90346={};_0x90346[_0x3b515c(0xf2)]=[_0x56fc0c[_0x3b515c(0x218)],_0x56fc0c[_0x3b515c(0x149)],_0x56fc0c[_0x3b515c(0x271)],_0x56fc0c[_0x3b515c(0xea)],_0x56fc0c[_0x3b515c(0x268)],_0x56fc0c[_0x3b515c(0x19c)],_0x56fc0c[_0x3b515c(0x26d)],_0x56fc0c['cAOra'],_0x56fc0c[_0x3b515c(0x228)],_0x56fc0c['xUHyl'],_0x56fc0c[_0x3b515c(0xde)],_0x56fc0c[_0x3b515c(0x264)],_0x56fc0c['fsvMq'],_0x56fc0c[_0x3b515c(0x1a2)],_0x56fc0c[_0x3b515c(0x1dc)],_0x56fc0c['LpVbA'],_0x56fc0c['jdluu'],_0x56fc0c[_0x3b515c(0x21a)],_0x56fc0c[_0x3b515c(0x178)],_0x56fc0c[_0x3b515c(0xdc)],_0x56fc0c[_0x3b515c(0x12b)],_0x56fc0c[_0x3b515c(0x1d7)],_0x56fc0c[_0x3b515c(0x1b4)],_0x56fc0c[_0x3b515c(0x11f)]],_0x90346[_0x3b515c(0x187)]=_0x56fc0c['HbYiY'],await this[_0x3b515c(0x1b2)][_0x3b515c(0x1e9)]['roles'][_0x3b515c(0x21f)]({'parent':_0x3b515c(0x15e)+this[_0x3b515c(0xfd)],'requestBody':{'role':_0x90346,'roleId':this[_0x3b515c(0x190)]},'auth':_0x3b8f84});const _0x3e1264={};_0x3e1264[_0x3b515c(0x186)]=_0x3b515c(0x15e)+this['projectId'],_0x3e1264[_0x3b515c(0x110)]={},_0x3e1264[_0x3b515c(0x20c)]=_0x3b8f84,_0x3e1264[_0x3b515c(0x110)][_0x3b515c(0x18e)]=this[_0x3b515c(0x1cb)];const _0x53a91c=_0x3e1264;await this[_0x3b515c(0x1b2)][_0x3b515c(0x1ff)][_0x3b515c(0x13b)][_0x3b515c(0x21f)](_0x53a91c);let _0x5d2efb=await this[_0x3b515c(0x1fc)][_0x3b515c(0x1d9)]({'resource':_0x3b515c(0x15e)+this[_0x3b515c(0xfd)]});_0x5d2efb=_0x5d2efb[0x0]['bindings'];const _0x2c3d4d={};_0x2c3d4d[_0x3b515c(0x219)]=_0x3b515c(0x15e)+this[_0x3b515c(0xfd)]+_0x3b515c(0x119)+this[_0x3b515c(0x190)],_0x2c3d4d[_0x3b515c(0x213)]=[_0x3b515c(0x153)+this['serviceAccountName']+'@'+this[_0x3b515c(0xfd)]+_0x3b515c(0x106)],_0x5d2efb[_0x3b515c(0x1f9)](_0x2c3d4d);const _0x3f6668={};_0x3f6668[_0x3b515c(0x246)]=_0x5d2efb,await this['resourcemanagerClient'][_0x3b515c(0x210)]({'resource':_0x3b515c(0x15e)+this[_0x3b515c(0xfd)],'policy':_0x3f6668}),logger['info'](_0x56fc0c[_0x3b515c(0x150)]);}async[a3_0x3cb80c(0x124)](_0x193529=a3_0x3cb80c(0x1d5),_0x515117=[a3_0x3cb80c(0x1d5)]){const _0x4b4f88=a3_0x3cb80c,_0xb1ec09={};_0xb1ec09[_0x4b4f88(0x143)]=_0x4b4f88(0x10c),_0xb1ec09[_0x4b4f88(0x1f0)]=_0x4b4f88(0x11e),_0xb1ec09[_0x4b4f88(0x133)]=function(_0x38747d,_0x12080f){return _0x38747d===_0x12080f;},_0xb1ec09['UEqnO']='ooATu',_0xb1ec09['DmwyK']=_0x4b4f88(0x1d5),_0xb1ec09[_0x4b4f88(0x1dd)]=function(_0x183c4,_0x512e40){return _0x183c4===_0x512e40;},_0xb1ec09['wIzfn']='HIHKz';const _0x859c3f=_0xb1ec09,_0x5503ac={};_0x5503ac['type']=WS_EVENTS[_0x4b4f88(0x1c2)],_0x5503ac[_0x4b4f88(0x1b3)]=_0x859c3f[_0x4b4f88(0x143)],this[_0x4b4f88(0x1bf)][_0x4b4f88(0x1b5)](this[_0x4b4f88(0x14c)],_0x5503ac),logger[_0x4b4f88(0x14a)](_0x859c3f[_0x4b4f88(0x1f0)]);!_0x193529&&(_0x859c3f['aHVzd'](_0x859c3f[_0x4b4f88(0xe6)],_0x859c3f[_0x4b4f88(0xe6)])?_0x193529=_0x859c3f[_0x4b4f88(0x191)]:_0x3146c2[_0x4b4f88(0x163)]=_0x4610f7);if(!_0x515117||_0x859c3f[_0x4b4f88(0x1dd)](_0x515117[_0x4b4f88(0x242)],0x0)){if(_0x859c3f[_0x4b4f88(0x1dd)](_0x859c3f['wIzfn'],_0x859c3f[_0x4b4f88(0x27b)]))_0x515117=[_0x859c3f[_0x4b4f88(0x191)]];else return!![];}return await this[_0x4b4f88(0x132)](),await this['createCluster'](_0x193529,_0x515117),await this[_0x4b4f88(0x139)](),[_0x193529,_0x515117];}async['createCluster'](_0x3e8212=a3_0x3cb80c(0x1d5),_0x187b81=[a3_0x3cb80c(0x1d5)]){const _0x243e54=a3_0x3cb80c,_0xea15c8={};_0xea15c8[_0x243e54(0x26a)]='REGULAR',_0xea15c8[_0x243e54(0x167)]=_0x243e54(0x1e4),_0xea15c8[_0x243e54(0x236)]=_0x243e54(0x174),_0xea15c8[_0x243e54(0xfe)]=function(_0x43a009,_0xa8068e){return _0x43a009!==_0xa8068e;},_0xea15c8[_0x243e54(0x138)]=function(_0x186569,_0x2c89f3){return _0x186569===_0x2c89f3;},_0xea15c8['pzetz']=_0x243e54(0x22c),_0xea15c8[_0x243e54(0x11b)]='Creating\x20GKE\x20Cluster',_0xea15c8[_0x243e54(0x24d)]=_0x243e54(0x1ab),_0xea15c8[_0x243e54(0xf3)]=_0x243e54(0x206),_0xea15c8[_0x243e54(0x164)]='gkecluster.json',_0xea15c8[_0x243e54(0x141)]='utf-8',_0xea15c8[_0x243e54(0x14f)]=_0x243e54(0x169),_0xea15c8[_0x243e54(0x208)]=function(_0x1a46ee,_0x522cc4){return _0x1a46ee===_0x522cc4;},_0xea15c8[_0x243e54(0x1b7)]=_0x243e54(0x203),_0xea15c8[_0x243e54(0x1c3)]=function(_0x116389,_0x38a6da){return _0x116389*_0x38a6da;},_0xea15c8['rCngr']=function(_0x167342,_0x5b648a){return _0x167342*_0x5b648a;},_0xea15c8[_0x243e54(0x152)]=_0x243e54(0x245),_0xea15c8[_0x243e54(0xdf)]=_0x243e54(0x13c),_0xea15c8[_0x243e54(0x273)]=function(_0x4cc80a,_0x1512e8){return _0x4cc80a!==_0x1512e8;},_0xea15c8[_0x243e54(0x1ec)]=_0x243e54(0x15b),_0xea15c8[_0x243e54(0x1ed)]=_0x243e54(0x16e),_0xea15c8[_0x243e54(0x1de)]=_0x243e54(0x252),_0xea15c8[_0x243e54(0x15c)]=function(_0x210bc1,_0x482d88){return _0x210bc1===_0x482d88;},_0xea15c8['gTdEC']=_0x243e54(0x122);const _0x108a9a=_0xea15c8;try{if(_0x108a9a[_0x243e54(0x138)](_0x108a9a[_0x243e54(0x1d4)],_0x108a9a['pzetz'])){logger['info'](_0x108a9a[_0x243e54(0x11b)]);let _0x47d2da=await fs[_0x243e54(0xfc)](path[_0x243e54(0x13e)](__dirname,'..',_0x108a9a[_0x243e54(0x24d)],_0x108a9a[_0x243e54(0xf3)],_0x108a9a[_0x243e54(0x164)]),_0x108a9a[_0x243e54(0x141)]);_0x47d2da=JSON[_0x243e54(0x1a9)](_0x47d2da);let _0x13a84a=await fs[_0x243e54(0xfc)](path['join'](__dirname,'..',_0x108a9a[_0x243e54(0x24d)],_0x108a9a['HQWMs'],_0x108a9a['basoc']),_0x108a9a[_0x243e54(0x141)]);_0x13a84a=JSON[_0x243e54(0x1a9)](_0x13a84a);const _0xd0333f=global_registry['clusterAutoUpgrade'];_0x47d2da['name']=this[_0x243e54(0x1ee)],_0x47d2da[_0x243e54(0x100)][0x0]['config'][_0x243e54(0x126)]=global_registry['instanceType'],_0x47d2da[_0x243e54(0x100)][0x1][_0x243e54(0x155)]['machineType']=global_registry[_0x243e54(0x231)],_0x47d2da[_0x243e54(0x100)][0x0][_0x243e54(0x155)]['serviceAccount']=this[_0x243e54(0x1cb)]+'@'+this[_0x243e54(0xfd)]+'.iam.gserviceaccount.com',_0x47d2da['nodePools'][0x1][_0x243e54(0x155)][_0x243e54(0x277)]=this[_0x243e54(0x1cb)]+'@'+this[_0x243e54(0xfd)]+'.iam.gserviceaccount.com',_0x47d2da[_0x243e54(0x100)][0x0][_0x243e54(0xdd)][_0x243e54(0x1f1)]=global_registry[_0x243e54(0xee)],_0x47d2da['nodePools'][0x1][_0x243e54(0xdd)][_0x243e54(0x1f1)]=0x0,_0x47d2da['nodePools'][0x0][_0x243e54(0x101)]['autoUpgrade']=_0xd0333f,_0x47d2da['nodePools'][0x1][_0x243e54(0x101)][_0x243e54(0x221)]=_0xd0333f,_0x47d2da['nodePools'][0x0]['autoscaling'][_0x243e54(0x253)]=global_registry['maxNodes'],_0x47d2da[_0x243e54(0x100)][0x1][_0x243e54(0xdd)]['maxNodeCount']=global_registry[_0x243e54(0x1d8)],_0x47d2da[_0x243e54(0x19a)]=global_registry[_0x243e54(0x26c)],_0x47d2da[_0x243e54(0x260)]=[_0x13a84a[global_registry['clusterRegion']][0x0]],_0x47d2da[_0x243e54(0x159)]=_0x243e54(0x15e)+this[_0x243e54(0xfd)]+_0x243e54(0x166)+_0x3e8212,_0x47d2da[_0x243e54(0x1c8)]=_0x243e54(0x15e)+this['projectId']+_0x243e54(0xda)+global_registry['clusterRegion']+_0x243e54(0x26e)+_0x187b81[0x0];if(_0xd0333f){if(_0x108a9a[_0x243e54(0x208)](_0x108a9a[_0x243e54(0x1b7)],_0x108a9a['wgtVd'])){const _0xae4883={};_0xae4883['channel']=_0x108a9a[_0x243e54(0x26a)],_0x47d2da['releaseChannel']=_0xae4883;}else{const _0xed436a={};_0xed436a[_0x243e54(0x275)]=_0x108a9a[_0x243e54(0x26a)],_0x372b1b[_0x243e54(0x165)]=_0xed436a;}}const _0x4e83aa=await this[_0x243e54(0x181)][_0x243e54(0x144)]({'cluster':_0x47d2da,'parent':'projects/'+this[_0x243e54(0xfd)]+_0x243e54(0x27e)+global_registry[_0x243e54(0x26c)]});await this['webSocketUtils'][_0x243e54(0x22e)](_0x108a9a['kxcuy'](_0x108a9a[_0x243e54(0xf5)](0x7,0x3c),0x3e8));}else _0x3309ea['info'](_0x108a9a['UfLdu']);}catch(_0x24457b){if(_0x108a9a['peUvE'](_0x108a9a[_0x243e54(0x152)],_0x108a9a['rHDXv'])){const _0x29120e=await this[_0x243e54(0x112)]();if(_0x29120e)_0x108a9a[_0x243e54(0x273)](_0x108a9a[_0x243e54(0x1ec)],_0x108a9a[_0x243e54(0x1ed)])?(logger['info'](_0x108a9a['tDyhJ'],_0x24457b['stack']),await this['deleteCluster']()):(_0x5227b[_0x243e54(0x163)](_0x108a9a['oUook']),_0x392e8c['exit'](0x1));else{if(_0x108a9a[_0x243e54(0x15c)](_0x108a9a[_0x243e54(0x12c)],_0x108a9a['gTdEC']))logger[_0x243e54(0x14a)](_0x108a9a[_0x243e54(0x167)]);else return _0x108a9a[_0x243e54(0xfe)](_0x8ed5e5['clusterRegion'],_0x4e2620[0x0])&&(_0x19326d[_0x243e54(0x26c)]=_0x420aeb[0x0],this[_0x243e54(0x266)]()),!![];}throw _0x24457b;}else _0x5eb14b[_0x243e54(0x10e)]=![];}}async[a3_0x3cb80c(0x151)](_0x938e13,_0x11b7c0,_0x4059c1,_0x6268a5,_0x36313a){}async[a3_0x3cb80c(0x139)](){const _0x57df1d=a3_0x3cb80c;cp[_0x57df1d(0x240)](_0x57df1d(0x21e)+this[_0x57df1d(0x1ee)]+_0x57df1d(0x230)+global_registry[_0x57df1d(0x26c)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x3cb80c(0x18b)](_0x3020dd,_0x2b017d){const _0x599703=a3_0x3cb80c,_0x24790c={'waEai':'Service\x20account\x20already\x20exists,\x20skipping','eJPPB':function(_0x287721,_0xf8725f){return _0x287721===_0xf8725f;},'jSkUB':function(_0x77bd9a,_0x51f75e){return _0x77bd9a!==_0x51f75e;},'ciokd':'ABSje','YylIv':_0x599703(0x24f),'ypuFF':function(_0x117223,_0x2f1f2a){return _0x117223(_0x2f1f2a);},'VtZlV':function(_0x55af59,_0x1f3fee){return _0x55af59(_0x1f3fee);},'OOvaf':_0x599703(0xe7),'hWIfw':function(_0x2d1960,_0x3f304f){return _0x2d1960===_0x3f304f;},'iUVYd':_0x599703(0x25e),'eGPgs':_0x599703(0x1db),'oBhbZ':_0x599703(0x222),'PqNOy':_0x599703(0x17d),'GSpAa':function(_0x1b5bea,_0xcee4a3){return _0x1b5bea===_0xcee4a3;},'qIzxB':'ErePb','iIXoF':_0x599703(0x27f),'dXnlf':_0x599703(0x1cf)};try{if(_0x24790c['jSkUB'](_0x24790c[_0x599703(0x1eb)],_0x24790c[_0x599703(0x105)])){await _0x24790c[_0x599703(0x244)](deleteAgent,_0x3020dd),await _0x24790c[_0x599703(0xe2)](deleteRoutingDeps,_0x3020dd),logger['info'](_0x599703(0x129)+this['clusterName']);const _0x5c86a9=await this[_0x599703(0x181)][_0x599703(0x18b)]({'name':_0x599703(0x15e)+this[_0x599703(0xfd)]+'/locations/'+global_registry[_0x599703(0x26c)]+'/clusters/'+this[_0x599703(0x1ee)]});if(_0x24790c['eJPPB'](_0x5c86a9[0x0]?.['status'],_0x24790c['OOvaf'])||_0x24790c[_0x599703(0x1b8)](_0x5c86a9[0x0]?.[_0x599703(0x10e)],_0x24790c['iUVYd'])){if(_0x24790c['jSkUB'](_0x24790c[_0x599703(0x27a)],_0x24790c['oBhbZ']))return!![];else _0x31cdb4[_0x599703(0x1f9)](_0x108bb2);}logger[_0x599703(0x14a)](_0x24790c['PqNOy']);}else{_0x586b62['info'](_0x24790c[_0x599703(0x196)]);return;}}catch(_0x383d72){if(_0x24790c[_0x599703(0x162)](_0x24790c['qIzxB'],_0x24790c[_0x599703(0xed)]))_0x24790c[_0x599703(0x160)](_0xcf8e8e['name'],this[_0x599703(0x1ee)])&&_0x3e57d5[_0x599703(0x1f9)](_0xf9490b);else{logger['info'](_0x24790c[_0x599703(0x16f)]);throw _0x383d72;}}}async[a3_0x3cb80c(0x267)](_0x22bf44){const _0x341af3=a3_0x3cb80c,_0x40903f={};_0x40903f['wBAKH']=function(_0x3a519b,_0x302409){return _0x3a519b!==_0x302409;},_0x40903f[_0x341af3(0x1a6)]=_0x341af3(0x108),_0x40903f[_0x341af3(0x170)]=function(_0x1b14ad,_0x44a991){return _0x1b14ad>_0x44a991;},_0x40903f['hkDMj']=function(_0x387bb8,_0x2841f6){return _0x387bb8===_0x2841f6;},_0x40903f['pPsxD']=function(_0x577c44,_0xeaae7c){return _0x577c44===_0xeaae7c;},_0x40903f[_0x341af3(0x19b)]=_0x341af3(0x1c6),_0x40903f[_0x341af3(0x1bc)]=function(_0x3fd8d6,_0x4c47bc){return _0x3fd8d6===_0x4c47bc;},_0x40903f['VFsSJ']=_0x341af3(0x1ca);const _0xe3b53b=_0x40903f;try{if(_0xe3b53b[_0x341af3(0x107)](_0xe3b53b[_0x341af3(0x1a6)],_0xe3b53b[_0x341af3(0x1a6)]))_0x4a1ad7[_0x341af3(0xff)](_0x3429b9);else{const _0x12c9f4=await this[_0x341af3(0x255)][_0x341af3(0x1fb)]({'project':this[_0x341af3(0xfd)],'network':_0x22bf44});if(_0xe3b53b[_0x341af3(0x170)](_0x12c9f4[_0x341af3(0x242)],0x0)&&_0xe3b53b[_0x341af3(0x224)](_0x12c9f4[0x0][_0x341af3(0x186)],_0x22bf44))return _0xe3b53b[_0x341af3(0x261)](_0xe3b53b[_0x341af3(0x19b)],_0xe3b53b['pyBdm'])?!![]:[!![],_0x70e9d3];}}catch(_0x1c3abe){if(_0xe3b53b[_0x341af3(0x1bc)](_0xe3b53b['VFsSJ'],_0xe3b53b['VFsSJ']))return![];else _0x3e712e[_0x341af3(0x26c)]=_0x4d0f66[0x0],this['updateClusterRegion']();}return![];}async[a3_0x3cb80c(0x1e5)](_0x5b7304,_0xe255b8){const _0x709234=a3_0x3cb80c,_0x36beee={};_0x36beee[_0x709234(0xf4)]=function(_0x1f0f56,_0x489306){return _0x1f0f56-_0x489306;},_0x36beee[_0x709234(0x226)]=function(_0x39348b,_0x4e4966){return _0x39348b===_0x4e4966;},_0x36beee[_0x709234(0x1f5)]=_0x709234(0x194),_0x36beee[_0x709234(0x200)]=_0x709234(0x251),_0x36beee[_0x709234(0x154)]=function(_0x14590e,_0x31c4cc){return _0x14590e!==_0x31c4cc;},_0x36beee[_0x709234(0x183)]='irLfv',_0x36beee['FDBOV']=_0x709234(0x158),_0x36beee[_0x709234(0x216)]='yFyMq',_0x36beee[_0x709234(0x14d)]=function(_0x7a6ce8,_0x53f839){return _0x7a6ce8!==_0x53f839;},_0x36beee[_0x709234(0x279)]='ZomDh';const _0x22caf8=_0x36beee;try{if(_0x22caf8['QIpTM'](_0x22caf8[_0x709234(0x200)],_0x22caf8[_0x709234(0x200)])){const _0x4b576f=await this[_0x709234(0x255)][_0x709234(0x1fb)]({'project':this['projectId'],'network':_0xe255b8});for(const _0x45aafe of _0x4b576f[0x0][_0x709234(0xe4)]){if(_0x22caf8[_0x709234(0x154)](_0x22caf8[_0x709234(0x183)],_0x22caf8[_0x709234(0x183)]))return![];else{const _0x1db758=_0x709234(0xe1)+this[_0x709234(0xfd)]+'/regions/'+global_registry[_0x709234(0x26c)]+_0x709234(0x26e)+_0x5b7304[0x0];if(_0x22caf8[_0x709234(0x226)](_0x1db758,_0x45aafe)){if(_0x22caf8[_0x709234(0x226)](_0x22caf8[_0x709234(0x20f)],_0x22caf8['ahHVt']))_0x1c76b2[_0x709234(0x26c)]=_0x1e3d79[_0x22caf8[_0x709234(0xf4)](_0x46d9ff,0x1)],this[_0x709234(0x266)]();else return[!![],_0x5b7304];}}}}else _0x4b4ffb[_0x709234(0x240)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x709234(0x1ee)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x23e27f[_0x709234(0x26c)]+'\x20--quiet\x20--user-output-enabled=false');}catch(_0x197aaf){if(_0x22caf8[_0x709234(0x14d)](_0x22caf8[_0x709234(0x279)],_0x22caf8[_0x709234(0x279)])){const _0x3929b8=_0x260972[0x0]?.[_0x709234(0x239)]?.[_0x709234(0x1a0)];return _0x3929b8&&_0x22caf8[_0x709234(0x226)](_0x3929b8[_0x709234(0x1b6)](),_0x22caf8[_0x709234(0x1f5)]);}else return logger['error'](_0x709234(0x1e8)+_0x5b7304+'.\x20Error:\x20'+_0x197aaf),[![],[]];}return[![],[]];}async[a3_0x3cb80c(0x209)](){const _0x1b12d3=a3_0x3cb80c,_0x14394a={};_0x14394a[_0x1b12d3(0x23f)]=function(_0x51dff2,_0x3afc9a){return _0x51dff2!==_0x3afc9a;},_0x14394a[_0x1b12d3(0x197)]=_0x1b12d3(0xe9),_0x14394a[_0x1b12d3(0x18f)]=_0x1b12d3(0x146);const _0x1618c6=_0x14394a,_0x1525cc=await this['networkClient'][_0x1b12d3(0x142)]({'project':this[_0x1b12d3(0xfd)]}),_0x508856={};_0x508856[_0x1b12d3(0x1df)]=global_registry[_0x1b12d3(0x16d)],_0x508856[_0x1b12d3(0x120)]=global_registry[_0x1b12d3(0x205)],_0x508856['cloudProvider']=GCP,_0x508856[_0x1b12d3(0x20b)]=[];const _0x3e61ce=_0x508856;for(const _0x5c2a0e of _0x1525cc){if(_0x1618c6['OFMKc'](_0x1618c6[_0x1b12d3(0x197)],_0x1618c6[_0x1b12d3(0x18f)]))_0x3e61ce['vpcInfo'][_0x1b12d3(0x1f9)](_0x5c2a0e);else return!![];}const _0x252485={};_0x252485['type']=WS_EVENTS[_0x1b12d3(0x27c)],_0x252485[_0x1b12d3(0x1b3)]=_0x3e61ce,this[_0x1b12d3(0x1bf)][_0x1b12d3(0x1b5)](this[_0x1b12d3(0x14c)],_0x252485);}async[a3_0x3cb80c(0x266)](){const _0x23685d=a3_0x3cb80c,_0x3b65bb={'sPqay':function(_0x35c23b,_0x781d1e,_0xb1ba79){return _0x35c23b(_0x781d1e,_0xb1ba79);},'ZPwWU':_0x23685d(0x214),'fNNNx':'json'},_0x149731=_0x23685d(0x1e1)+AG_API_URL+_0x23685d(0x24c),_0x687068={};_0x687068[_0x23685d(0x201)]=global_registry[_0x23685d(0x103)];const _0x401de4={};_0x401de4['newRegion']=global_registry['clusterRegion'];const _0x3926a9={'searchParams':_0x687068,'json':_0x401de4,'headers':_0x3b65bb['sPqay'](getAuthHeader,global_registry[_0x23685d(0x16d)],global_registry[_0x23685d(0x205)]),'method':_0x3b65bb[_0x23685d(0xfa)],'responseType':_0x3b65bb[_0x23685d(0x198)],'throwHttpErrors':![]},_0x5c47a6=await _0x3b65bb[_0x23685d(0x131)](got,_0x149731,_0x3926a9);}async[a3_0x3cb80c(0x14e)](){const _0xd24ff5=a3_0x3cb80c,_0xe79701={'DPnQb':function(_0x22db51,_0x52c40d){return _0x22db51(_0x52c40d);},'swTRB':_0xd24ff5(0xf1),'dVJpi':'Intercepted','Warqv':_0xd24ff5(0xe3)},_0x1b936d={};_0x1b936d[_0xd24ff5(0x10e)]=![],_0x1b936d['error']=null,_0x1b936d[_0xd24ff5(0x232)]='';const _0x49a0d8=_0x1b936d;try{const _0x1e4f62=await _0xe79701['DPnQb'](runCommand,_0xe79701[_0xd24ff5(0x249)]);_0x1e4f62['startsWith'](_0xe79701[_0xd24ff5(0x229)])?logger['warn'](_0x1e4f62):logger[_0xd24ff5(0x276)](_0x1e4f62),_0x49a0d8['status']=!![],_0x49a0d8[_0xd24ff5(0x232)]=_0xe79701[_0xd24ff5(0x109)];}catch(_0x1d3ceb){logger[_0xd24ff5(0x163)](_0xd24ff5(0x18d)+_0x1d3ceb+_0xd24ff5(0x1d3)+_0x1d3ceb[_0xd24ff5(0x184)]),_0x49a0d8[_0xd24ff5(0x232)]=_0xd24ff5(0x258)+_0x1d3ceb,_0x49a0d8[_0xd24ff5(0x163)]=_0x1d3ceb;}return _0x49a0d8;}async[a3_0x3cb80c(0x1be)](){const _0x3f98fe=a3_0x3cb80c,_0x431f25={};_0x431f25['xlDtC']=_0x3f98fe(0x1e7),_0x431f25[_0x3f98fe(0x1ef)]=_0x3f98fe(0x111);const _0xdcc2bf=_0x431f25,_0x218173={};_0x218173[_0x3f98fe(0x10e)]=![],_0x218173['error']=null,_0x218173[_0x3f98fe(0x232)]='';const _0x37b70b=_0x218173;try{let _0x205325='';const _0x46a3cf=_0x3f98fe(0x15e)+this[_0x3f98fe(0xfd)],[_0x25629d]=await this['resourcemanagerClient'][_0x3f98fe(0x247)]({'resource':_0x46a3cf,'permissions':Object['keys'](PERMISSIONS)});_0x37b70b[_0x3f98fe(0x10e)]=!![],logger[_0x3f98fe(0x276)](_0x3f98fe(0x262)+_0x46a3cf+':\x20'+JSON[_0x3f98fe(0x172)](_0x25629d)),Object[_0x3f98fe(0xfb)](PERMISSIONS)['forEach'](([_0xd61d64,_0x44b0a3])=>{const _0x3de19f=_0x3f98fe,_0x3fa929=_0x25629d[_0x3de19f(0x10a)]['includes'](_0xd61d64);_0x205325+='\x0a\x09'+_0x44b0a3+_0x3de19f(0x1d3)+(_0x3fa929?_0xdcc2bf[_0x3de19f(0x16c)]:_0xdcc2bf['BNDSD']),!_0x3fa929&&(_0x37b70b['status']=![]);}),_0x37b70b['data']=_0x205325;}catch(_0x5d9ae3){_0x37b70b[_0x3f98fe(0x163)]=_0x5d9ae3;}return _0x37b70b;}}const a3_0x1c7d8c={};function a3_0xc89d(_0x21701d,_0x3d4838){const _0x179097=a3_0x1790();return a3_0xc89d=function(_0xc89d4b,_0x38c2b4){_0xc89d4b=_0xc89d4b-0xda;let _0xbac3c3=_0x179097[_0xc89d4b];return _0xbac3c3;},a3_0xc89d(_0x21701d,_0x3d4838);}a3_0x1c7d8c[a3_0x3cb80c(0x278)]=GoogleCloudProvider,module[a3_0x3cb80c(0x21d)]=a3_0x1c7d8c;function a3_0x1790(){const _0x1fa964=['includedPermissions','HQWMs','drEBo','rCngr','eMrne','getUserInput','storage.buckets.listTagBindings','581651SYKOYI','ZPwWU','entries','readFileAsync','projectId','peUvE','warn','nodePools','management','bynGv','gridProfileId','xMDfK','YylIv','.iam.gserviceaccount.com','wBAKH','zndRJ','Warqv','permissions','HIuJh','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','gHyuQ','status','DahoA','requestBody','denied','isClusterPresent','6HvNWqu','storage.buckets.deleteTagBinding','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','KitGM','gcp_credentials.json','NJUsL','/roles/','7196620iPebPe','oJICg','HtUZr','IARsp','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Qkrli','accessKey','lMKeT','imClv','QRWED','setupNewCluster','init','machineType','replace','ifvhv','Deleting\x20the\x20cluster\x20','../utils/userInput','pRoNk','gTdEC','fsvMq','clusters','mdDbC','dHkuo','sPqay','setupServiceAccount','aHVzd','util','cAOra','storage.buckets.update','IeWuQ','DaxSm','updateWindowsNodeGroup','storage.multipartUploads.abort','serviceAccounts','ClEHD','zDRnP','join','storage.buckets.createTagBinding','/serviceAccounts/','jwijw','list','pDXST','createCluster','jdluu','dNnkw','UerhQ','LVpbm','sIqll','info','../config/logger','rws','LAacE','isCliToolInstalled','basoc','RZpsv','setupHubHa','xtMCV','serviceAccount:','QvnVx','config','WzzRr','isBrowserstackCluster','cnYEN','network','storage.buckets.get','xHryG','QNlwB','.\x20Error:\x20','projects/','log','eJPPB','turboscale_custom_role','GSpAa','error','MnuKT','releaseChannel','/global/networks/','UfLdu','xUHyl','regionmap.json','aQIeF','../permissions/GCP.json','xlDtC','bstackUsername','BrxTr','dXnlf','DJzcQ','ZBVUw','stringify','LpVbA','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','exec','split','vntJD','ooUhc','ghLdP','IWLjN','./CloudProvider','FZsDl','Cluster\x20deletion\x20completed','cloudProviderName','clusterCaCertificate','xsfqA','containerClient','ohcEX','CFBgR','stack','MPWjy','name','title','YZVrz','663568oPPjCn','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','deleteCluster','kAPXF','error\x20:\x20','accountId','NTjtq','customRoleName','DmwyK','VSFeU','storage.objects.update','browserstack','Eexip','waEai','WoIiz','fNNNx','Turboscale\x20Custom\x20Role','location','pyBdm','DBJuY','848vXlfVB','gcloud\x20auth\x20login\x20--cred-file=','zcIqE','managedby','parent','DVhfL','@google-cloud/container','ZaZoo','wfAuK','JWHUs','storage.buckets.list','got','parse','Found\x20cluster\x20with\x20name\x20\x27','templates','yBTtA','ProHA','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','utf-8','rEWeN','accounts','iamClient','message','KYddZ','sendEventToBackend','toLowerCase','wgtVd','hWIfw','rzPRB','YyyLB','getGridHostname','lnenP','AXrOv','checkAccess','webSocketUtils','NhJbG','707555NpkJDj','LOG','kxcuy','ywLwh','RhUez','QUAAS','NTMDm','subnetwork','ydkhh','HvCLU','serviceAccountName','rNCBp','concat','credentialsPath','GKE\x20Cluster\x20deletion\x20failed','QrFoN','storage.objects.getIamPolicy','cNtEU','\x20:\x20','pzetz','default','HbYiY','xlhMC','maxNodes','getIamPolicy','gUvER','guObK','FfMRo','zLXoU','tDyhJ','username','vEATT','https://','Creating\x20service\x20account','scopes','Cluster\x20creation\x20failed','isSubnetsValid','qUIzE','allowed','Cannot\x20find\x20subnets\x20','organizations','yIZko','ciokd','LPiOm','OYyBq','clusterName','BNDSD','SckzL','minNodeCount','checkServiceAccount','sAibv','XjiaK','dEAyu','storage.buckets.setIamPolicy','getClusterInfo','storage.buckets.getObjectInsights','push','keyFile','get','resourcemanagerClient','getClient','cyflW','projects','TfYzm','profileId','getCluster','NvpyO','JDEOx','bstackAccesskey','gcpresources','IGCbv','rUUwu','sendGCPInfoToHST','6822BtphoN','vpcInfo','auth','YbBUH','PXWwG','FDBOV','setIamPolicy','wqMtP','iam.serviceAccounts.signBlob','members','PUT','loadBalancer','ahHVt','child_process','Adpvf','role','qYmQv','storage.buckets.listEffectiveTags','JfNMl','exports','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','create','YUOWM','autoUpgrade','OMgMm','626337GFPzyd','hkDMj','FPTef','QIpTM','MYSHK','ohusH','dVJpi','masterAuth','listClusters','Uodgd','UDjbb','delay','../utils/gridComponents','\x20--windows-os-version=ltsc2022\x20--region\x20','instanceType','data','storage.buckets.delete','fixpG','yOCEt','oUook','exit','SbMGE','resourceLabels','KIigQ','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','storage.multipartUploads.list','yBjNb','toString','OFMKc','execSync','writeFileSync','length','0|7|3|2|6|1|8|5|4','ypuFF','GCCfJ','bindings','testIamPermissions','BimQT','swTRB','project_id','KubeConfigTemplate.yaml','/packages/cli/update-cluster-region','JPiiA','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','Mcrxz','cJLtl','IOnWl','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','maxNodeCount','txPDj','networkClient','EDRCa','sendResourceDataToHST','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','AayUQ','sgise','JotRs','ingress','430878hqDusZ','DONE','gke_','locations','pPsxD','permissions\x20check\x20response\x20for\x20','MkgFS','WbXNl','MvoLh','updateClusterRegion','isVPCPresent','xXgyM','includes','OKUYV','NetworksClient','clusterRegion','jpoYv','/subnetworks/','kLYbr','clSjP','bHyDf','storage.multipartUploads.create','kgzdA','Service\x20account\x20already\x20exists,\x20skipping','channel','debug','serviceAccount','GoogleCloudProvider','NnNmk','eGPgs','wIzfn','RESOURCES','setCachedCredsInRegistry','/locations/','tVQYV','oSXhH','/regions/','XCfsB','ILVRV','autoscaling','msqaF','rHDXv','@google-cloud/compute','https://www.googleapis.com/compute/v1/projects/','VtZlV','cli\x20tool\x20is\x20installed','subnetworks','xYZvU','UEqnO','RUNNING','eVdVq','BGKPB','ujEWd','storage.objects.create','storage.objects.setIamPolicy','iIXoF','minNodes','josrm','1KEhfCB','gcloud\x20--version'];a3_0x1790=function(){return _0x1fa964;};return a3_0x1790();}
@@ -1 +1 @@
1
- const a4_0x44eced=a4_0x5de2;function a4_0x2f26(){const _0x136e9b=['20375yRiCcr','pBPTS','./GoogleCloudProvider','getCloudProviderObjectWithOutInit','6gKtATQ','2562057fHonAP','./Azure','1482710dbTNIp','MmrOr','oAZSg','5372165hxNfmH','message','2300760XYkIAh','vJNab',',\x20stacktrace:\x20','Current\x20Node.js\x20version\x20','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','../utils/utilityMethods','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','XVdvn','ERROR','error','gjOMW','exit','versions','create-grid-called','Unknown\x20cloud\x20provider\x20found\x20-\x20','init','12aoRtBf','stack','1229809dWPaqj','UWHNS','../config/logger','54bCdKnf','../config/constants','./AWS','8675496hmzcBg','../utils/instrumentationUtils'];a4_0x2f26=function(){return _0x136e9b;};return a4_0x2f26();}(function(_0x207aac,_0x18a2b1){const _0x166e56=a4_0x5de2,_0x49e6ca=_0x207aac();while(!![]){try{const _0x588edd=parseInt(_0x166e56(0x121))/0x1*(parseInt(_0x166e56(0x125))/0x2)+parseInt(_0x166e56(0x126))/0x3+parseInt(_0x166e56(0x107))/0x4+-parseInt(_0x166e56(0x12b))/0x5+parseInt(_0x166e56(0x117))/0x6*(parseInt(_0x166e56(0x119))/0x7)+-parseInt(_0x166e56(0x11f))/0x8+-parseInt(_0x166e56(0x11c))/0x9*(-parseInt(_0x166e56(0x128))/0xa);if(_0x588edd===_0x18a2b1)break;else _0x49e6ca['push'](_0x49e6ca['shift']());}catch(_0x1d088f){_0x49e6ca['push'](_0x49e6ca['shift']());}}}(a4_0x2f26,0x8bc30));const {AWSCloudProvider}=require(a4_0x44eced(0x11e)),{GoogleCloudProvider}=require(a4_0x44eced(0x123)),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x44eced(0x10c)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x44eced(0x11d)),{sendInstrumentationEvent}=require(a4_0x44eced(0x120)),{logger}=require(a4_0x44eced(0x11b));function a4_0x5de2(_0x20520f,_0x52eb0d){const _0x2f26f7=a4_0x2f26();return a4_0x5de2=function(_0x5de2a1,_0x54cfe0){_0x5de2a1=_0x5de2a1-0x107;let _0x264a2c=_0x2f26f7[_0x5de2a1];return _0x264a2c;},a4_0x5de2(_0x20520f,_0x52eb0d);}exports['getCloudProviderObject']=async(_0x29eb87,_0x12ea68,_0x400214,_0x3822f8,_0x16aa71,_0x1d4dc0)=>{const _0x137e07=a4_0x44eced,_0x50269e={'MmrOr':function(_0x31d78e){return _0x31d78e();},'NCYCs':function(_0x40e30a,_0x4e97ba){return _0x40e30a(_0x4e97ba);},'mTnsX':_0x137e07(0x127),'gjOMW':function(_0x15150f,_0x17c9f1,_0x4b50b6,_0x3be0ea,_0x1a250f,_0x30cd36,_0x25de6e){return _0x15150f(_0x17c9f1,_0x4b50b6,_0x3be0ea,_0x1a250f,_0x30cd36,_0x25de6e);},'XVdvn':_0x137e07(0x114),'oAZSg':'grid-spawning-failed'};switch(_0x29eb87){case AWS:{const _0x4a4e73=new AWSCloudProvider(_0x12ea68,_0x400214,_0x3822f8,_0x16aa71);return await _0x4a4e73[_0x137e07(0x116)]();}case GCP:{const _0x537260=new GoogleCloudProvider(_0x12ea68,_0x400214,_0x3822f8,_0x16aa71);return await _0x537260[_0x137e07(0x116)]();}case AZURE:{try{await _0x50269e[_0x137e07(0x129)](installAzurePackages);const {AzureCloudProvider:_0x44e82d}=_0x50269e['NCYCs'](require,_0x50269e['mTnsX']),_0x5ebfb9=new _0x44e82d(_0x12ea68,_0x400214,_0x3822f8,_0x16aa71);return await _0x5ebfb9[_0x137e07(0x116)]();}catch(_0x4fc3ea){const _0x18ded0='Current\x20Node.js\x20version\x20'+process[_0x137e07(0x113)]['node']+_0x137e07(0x10b)+_0x4fc3ea[_0x137e07(0x12c)]+_0x137e07(0x109)+_0x4fc3ea[_0x137e07(0x118)];logger[_0x137e07(0x110)](_0x18ded0);const _0x400234={};_0x400234['error']=_0x18ded0,await _0x50269e[_0x137e07(0x111)](sendInstrumentationEvent,_0x1d4dc0,_0x50269e[_0x137e07(0x10e)],messageTypes[_0x137e07(0x10f)],_0x50269e[_0x137e07(0x12a)],_0x400234,_0x1d4dc0),process[_0x137e07(0x112)](0x1);}}default:logger['error'](_0x137e07(0x115)+_0x29eb87),process[_0x137e07(0x112)](0x1);}},exports[a4_0x44eced(0x124)]=async(_0x31de08,_0x53dcbe,_0x13125e,_0x541f1f,_0x5644b6,_0x553a09)=>{const _0x491600=a4_0x44eced,_0x1131ae={'vJNab':function(_0x11cb5c){return _0x11cb5c();},'pBPTS':function(_0x420263,_0x488fb9){return _0x420263(_0x488fb9);},'UWHNS':_0x491600(0x127)};switch(_0x31de08){case AWS:return new AWSCloudProvider(_0x53dcbe,_0x13125e,_0x541f1f,_0x5644b6);case GCP:return new GoogleCloudProvider(_0x53dcbe,_0x13125e,_0x541f1f,_0x5644b6);case AZURE:{!_0x1131ae[_0x491600(0x108)](IsNodeCompatibleWithAzure)&&(logger[_0x491600(0x110)](_0x491600(0x10a)+process[_0x491600(0x113)]['node']+_0x491600(0x10d)),process[_0x491600(0x112)](0x1));await _0x1131ae['vJNab'](installAzurePackages);const {AzureCloudProvider:_0x2ac26d}=_0x1131ae[_0x491600(0x122)](require,_0x1131ae[_0x491600(0x11a)]);return new _0x2ac26d(_0x53dcbe,_0x13125e,_0x541f1f,_0x5644b6);}default:logger[_0x491600(0x110)](_0x491600(0x115)+_0x31de08),process[_0x491600(0x112)](0x1);}};
1
+ const a4_0x536044=a4_0x3bb5;(function(_0x4c5dc6,_0x46fbaa){const _0x5dfdb6=a4_0x3bb5,_0x158f0e=_0x4c5dc6();while(!![]){try{const _0x4257c6=-parseInt(_0x5dfdb6(0x1ea))/0x1+parseInt(_0x5dfdb6(0x1f9))/0x2+parseInt(_0x5dfdb6(0x1dc))/0x3*(-parseInt(_0x5dfdb6(0x1e1))/0x4)+parseInt(_0x5dfdb6(0x1d6))/0x5*(-parseInt(_0x5dfdb6(0x1f4))/0x6)+parseInt(_0x5dfdb6(0x1e3))/0x7+parseInt(_0x5dfdb6(0x1ee))/0x8+parseInt(_0x5dfdb6(0x1e2))/0x9*(-parseInt(_0x5dfdb6(0x1d7))/0xa);if(_0x4257c6===_0x46fbaa)break;else _0x158f0e['push'](_0x158f0e['shift']());}catch(_0xfe0317){_0x158f0e['push'](_0x158f0e['shift']());}}}(a4_0x5909,0x3e535));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x536044(0x1db)),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x536044(0x1f6)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x536044(0x1f2)),{sendInstrumentationEvent}=require(a4_0x536044(0x1dd)),{logger}=require('../config/logger');exports[a4_0x536044(0x1da)]=async(_0x99a7e0,_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe,_0x3b50d2)=>{const _0x6a3954=a4_0x536044,_0x57e6ef={'aDLCY':function(_0x1fa800){return _0x1fa800();},'uiDmy':function(_0x3bde58,_0x39155d){return _0x3bde58(_0x39155d);},'HPsfr':_0x6a3954(0x1e8),'iSZTd':function(_0x525c5f,_0x184ce5,_0x4c8194,_0x481795,_0x44cd4c,_0x3fc3dd,_0xb2b6f9){return _0x525c5f(_0x184ce5,_0x4c8194,_0x481795,_0x44cd4c,_0x3fc3dd,_0xb2b6f9);},'Bzhww':_0x6a3954(0x1f8),'dCWKV':'grid-spawning-failed'};switch(_0x99a7e0){case AWS:{const _0x1f3dfb=new AWSCloudProvider(_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe);return await _0x1f3dfb[_0x6a3954(0x1ed)]();}case GCP:{const _0x4956ae=new GoogleCloudProvider(_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe);return await _0x4956ae[_0x6a3954(0x1ed)]();}case AZURE:{try{await _0x57e6ef[_0x6a3954(0x1f7)](installAzurePackages);const {AzureCloudProvider:_0x3de73d}=_0x57e6ef[_0x6a3954(0x1e5)](require,_0x57e6ef[_0x6a3954(0x1ec)]),_0x34fc86=new _0x3de73d(_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe);return await _0x34fc86[_0x6a3954(0x1ed)]();}catch(_0x5b5070){const _0x4702f9=_0x6a3954(0x1d8)+process[_0x6a3954(0x1df)][_0x6a3954(0x1e0)]+_0x6a3954(0x1f3)+_0x5b5070[_0x6a3954(0x1e4)]+_0x6a3954(0x1f0)+_0x5b5070[_0x6a3954(0x1eb)];logger[_0x6a3954(0x1f5)](_0x4702f9);const _0x165d40={};_0x165d40['error']=_0x4702f9,await _0x57e6ef[_0x6a3954(0x1f1)](sendInstrumentationEvent,_0x3b50d2,_0x57e6ef['Bzhww'],messageTypes['ERROR'],_0x57e6ef['dCWKV'],_0x165d40,_0x3b50d2),process[_0x6a3954(0x1de)](0x1);}}default:logger['error'](_0x6a3954(0x1e9)+_0x99a7e0),process[_0x6a3954(0x1de)](0x1);}},exports[a4_0x536044(0x1e7)]=async(_0x5ed356,_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364,_0x4e2e22)=>{const _0x45da8e=a4_0x536044,_0x5ca1fd={'ArQlg':function(_0x2cf82e){return _0x2cf82e();},'MfNpl':function(_0x5a0175){return _0x5a0175();},'eHAWw':function(_0x59c9be,_0x2ba2f6){return _0x59c9be(_0x2ba2f6);},'wfbrQ':_0x45da8e(0x1e8)};switch(_0x5ed356){case AWS:return new AWSCloudProvider(_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364);case GCP:return new GoogleCloudProvider(_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364);case AZURE:{!_0x5ca1fd['ArQlg'](IsNodeCompatibleWithAzure)&&(logger[_0x45da8e(0x1f5)](_0x45da8e(0x1d8)+process['versions'][_0x45da8e(0x1e0)]+_0x45da8e(0x1d9)),process[_0x45da8e(0x1de)](0x1));await _0x5ca1fd[_0x45da8e(0x1e6)](installAzurePackages);const {AzureCloudProvider:_0x567c9d}=_0x5ca1fd['eHAWw'](require,_0x5ca1fd[_0x45da8e(0x1ef)]);return new _0x567c9d(_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364);}default:logger[_0x45da8e(0x1f5)](_0x45da8e(0x1e9)+_0x5ed356),process[_0x45da8e(0x1de)](0x1);}};function a4_0x3bb5(_0x2a8f59,_0x2a8b0f){const _0x5909f7=a4_0x5909();return a4_0x3bb5=function(_0x3bb50d,_0x12f043){_0x3bb50d=_0x3bb50d-0x1d6;let _0x721a9e=_0x5909f7[_0x3bb50d];return _0x721a9e;},a4_0x3bb5(_0x2a8f59,_0x2a8b0f);}function a4_0x5909(){const _0x56d25d=['2087134UDCtyC','message','uiDmy','MfNpl','getCloudProviderObjectWithOutInit','./Azure','Unknown\x20cloud\x20provider\x20found\x20-\x20','7073RIVYck','stack','HPsfr','init','3528136xILtFt','wfbrQ',',\x20stacktrace:\x20','iSZTd','../config/constants','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','24OGyzFP','error','../utils/utilityMethods','aDLCY','create-grid-called','845876gKHgrF','365100rHjwME','740WMDamx','Current\x20Node.js\x20version\x20','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','getCloudProviderObject','./GoogleCloudProvider','15jDfQBj','../utils/instrumentationUtils','exit','versions','node','70796aQRJZI','63144mRZtGJ'];a4_0x5909=function(){return _0x56d25d;};return a4_0x5909();}
@@ -1 +1 @@
1
- function a5_0x1649(_0x5156b2,_0x13a5c9){const _0xe0e32b=a5_0xe0e3();return a5_0x1649=function(_0x164939,_0x59f99f){_0x164939=_0x164939-0x1c3;let _0x5a7277=_0xe0e32b[_0x164939];return _0x5a7277;},a5_0x1649(_0x5156b2,_0x13a5c9);}const a5_0x5982e6=a5_0x1649;function a5_0xe0e3(){const _0x22a63a=['uuid','65975dLSXyH','stack','CvATj','nGqID','json','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','cBGlF','pjZxr','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','WHKbW','YmABt','password','WZxbO','tBUTy','invalid-input','body','oJdMw','error','\x20\x20grid-profile:\x20','length','unzXt','got','username','help','5076819yqhFrX','server-error','DpIRf','VrntE','vrMQr','pIwUX','TlqfZ','\x20\x20username:\x20','428130WBTgNX','72krnLGe','INFO','MIqVK','KBiBr','56892JTrOZV','9069650TkTeTp','active','name','desc','15772sZbftM','OmYOO','list','unauthorised','UzYFm','GET','ZyUio','https://','Hiaof','JVwkF','toLowerCase','34vQbmQh','OuUZs','epilogue','VoDta','exit','usage','Updated\x20default\x20Grid\x20Profile\x20successfully','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','Failed\x20to\x20configure\x20resources!\x20Error:\x20','builder','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','HUeUu','/packages/cli/configure','unknown-error','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','Xqgdw','readFileSync','existsSync','log','gPSuC','RpekP','core:','BPSYF','RpVIN','requestId','3370384RskQvg','recommendCommands','command','Browserstack','neUaw','../utils/userInput','beEUp','DPFcq','stringify','statusCode','EhXYP','configure','TUGZT','../config/constants','nXuAt','VtiHi','AIhKJ','wmfwP','BQLHZ','NADVH','35CUWnRA','ERROR','hDJhl'];a5_0xe0e3=function(){return _0x22a63a;};return a5_0xe0e3();}(function(_0x44c251,_0x2c8ba6){const _0x44d99b=a5_0x1649,_0x352b1a=_0x44c251();while(!![]){try{const _0x3238fe=-parseInt(_0x44d99b(0x1fb))/0x1*(-parseInt(_0x44d99b(0x206))/0x2)+-parseInt(_0x44d99b(0x1f6))/0x3+parseInt(_0x44d99b(0x1f2))/0x4*(-parseInt(_0x44d99b(0x1d0))/0x5)+parseInt(_0x44d99b(0x1f1))/0x6*(parseInt(_0x44d99b(0x1cc))/0x7)+-parseInt(_0x44d99b(0x21f))/0x8+-parseInt(_0x44d99b(0x1e9))/0x9+parseInt(_0x44d99b(0x1f7))/0xa;if(_0x3238fe===_0x2c8ba6)break;else _0x352b1a['push'](_0x352b1a['shift']());}catch(_0xa433a5){_0x352b1a['push'](_0x352b1a['shift']());}}}(a5_0xe0e3,0x46cd1));const fs=require('fs'),got=require(a5_0x5982e6(0x1e6)),{v4:uuidv4}=require(a5_0x5982e6(0x1cf)),{inputConfirmation,closeInput}=require(a5_0x5982e6(0x224)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x5982e6(0x1c5)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x5982e6(0x221)]=a5_0x5982e6(0x1c3),exports[a5_0x5982e6(0x1fa)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0x5982e6(0x20f)]=function(_0x21d0ff){const _0x2f252b=a5_0x5982e6,_0x2f70cf={};_0x2f70cf[_0x2f252b(0x1ef)]=_0x2f252b(0x1e8);const _0x5e1f7f=_0x2f70cf;return _0x21d0ff[_0x2f252b(0x20b)](HELP_HEADER_MESSAGE[_0x2f252b(0x1c3)])[_0x2f252b(0x208)](HELP_FOOTER_MESSAGE)[_0x2f252b(0x1e8)](_0x5e1f7f[_0x2f252b(0x1ef)])[_0x2f252b(0x220)]()['strict']()['argv'];},exports['handler']=async function(_0x949c54){const _0x3846f0=a5_0x5982e6,_0x3e5ef4={'BPSYF':function(_0x1c5d45){return _0x1c5d45();},'unzXt':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JVwkF':function(_0x1af050,_0x38c7e7,_0xd401a0,_0x4ef5a5,_0x22a116,_0xd1b0,_0x299194){return _0x1af050(_0x38c7e7,_0xd401a0,_0x4ef5a5,_0x22a116,_0xd1b0,_0x299194);},'EhXYP':'configure-called','AIhKJ':'init-not-called','gPSuC':function(_0x3ff5c4,_0x5d466b,_0x13f779,_0xf328c8,_0x3aa790,_0x4f709d,_0xa3734c){return _0x3ff5c4(_0x5d466b,_0x13f779,_0xf328c8,_0x3aa790,_0x4f709d,_0xa3734c);},'YRVGo':_0x3846f0(0x200),'Xqgdw':function(_0xd83f1e,_0x2c5328,_0x39631c){return _0xd83f1e(_0x2c5328,_0x39631c);},'KBiBr':function(_0x89d9b7,_0x3975ac){return _0x89d9b7!==_0x3975ac;},'VrntE':function(_0x50b3e5,_0x2593db){return _0x50b3e5!==_0x2593db;},'MIqVK':function(_0x5afee7,_0x5f2fbe){return _0x5afee7===_0x5f2fbe;},'DPFcq':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','UzYFm':_0x3846f0(0x21b),'YmABt':function(_0x512abc,_0x514d0f){return _0x512abc(_0x514d0f);},'nXuAt':_0x3846f0(0x214),'BQLHZ':function(_0x23c973,_0xde4947){return _0x23c973===_0xde4947;},'RpVIN':function(_0x24036a,_0x35fa3a){return _0x24036a===_0x35fa3a;},'HUeUu':_0x3846f0(0x210),'ZyUio':_0x3846f0(0x1df),'OuUZs':_0x3846f0(0x20d),'pjZxr':function(_0x12ae63,_0xf767b4){return _0x12ae63<_0xf767b4;},'neUaw':function(_0x46a04e,_0x4f853e){return _0x46a04e+_0x4f853e;},'DpIRf':function(_0x567308,_0x56859b){return _0x567308(_0x56859b);},'cBGlF':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','tBUTy':function(_0x4bd101,_0x5cd207){return _0x4bd101(_0x5cd207);},'oJdMw':function(_0x3c6d1c,_0x4b77bb){return _0x3c6d1c(_0x4b77bb);},'WHKbW':function(_0x592354,_0x1aa938){return _0x592354<=_0x1aa938;},'RpekP':function(_0xd13a1,_0x22e35d){return _0xd13a1>_0x22e35d;},'wmfwP':'invalid-selection','Hiaof':function(_0x2c4fc3){return _0x2c4fc3();},'nGqID':function(_0x445284,_0x5ddebf){return _0x445284-_0x5ddebf;},'OgunG':'PUT','TUGZT':function(_0x1bc10a,_0x24885d,_0x576fe9){return _0x1bc10a(_0x24885d,_0x576fe9);},'SXtFK':_0x3846f0(0x1d4),'OmYOO':function(_0x30ceaf,_0x24d68c,_0x464bdf){return _0x30ceaf(_0x24d68c,_0x464bdf);},'WZxbO':function(_0x9469c3,_0x1040eb){return _0x9469c3!==_0x1040eb;},'Leqxz':function(_0x4b5c9f,_0x1cf74d){return _0x4b5c9f===_0x1cf74d;},'ozEZl':_0x3846f0(0x20c),'beEUp':_0x3846f0(0x1d6),'vrMQr':function(_0x4586c4,_0x193188,_0x2e42b6,_0x158726,_0x42fe8b,_0x1e322d,_0x4d9400){return _0x4586c4(_0x193188,_0x2e42b6,_0x158726,_0x42fe8b,_0x1e322d,_0x4d9400);},'VtiHi':_0x3846f0(0x1fe),'hDJhl':_0x3846f0(0x1ea),'CvATj':function(_0x25a05d,_0x9e2a70){return _0x25a05d===_0x9e2a70;},'DrUYj':_0x3846f0(0x1d5),'NADVH':function(_0xf4852a,_0x17b165,_0x5bb512,_0x33d3a0,_0x113859,_0x52c6a0,_0x8abb47){return _0xf4852a(_0x17b165,_0x5bb512,_0x33d3a0,_0x113859,_0x52c6a0,_0x8abb47);},'VoDta':function(_0x3194dd,_0x340d12,_0x512b22,_0x338375,_0x28ad17,_0x3984f8,_0x2e950e){return _0x3194dd(_0x340d12,_0x512b22,_0x338375,_0x28ad17,_0x3984f8,_0x2e950e);},'pIwUX':_0x3846f0(0x213)};try{global_registry[_0x3846f0(0x21e)]=_0x3e5ef4[_0x3846f0(0x21c)](uuidv4);const _0x251d7c=_0x3846f0(0x202)+AG_API_URL+_0x3846f0(0x212);!fs[_0x3846f0(0x217)](_0x3e5ef4['BPSYF'](getCredentialsPath))&&(console[_0x3846f0(0x1e2)](_0x3e5ef4[_0x3846f0(0x1e5)]),await _0x3e5ef4['JVwkF'](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes['ERROR'],_0x3e5ef4[_0x3846f0(0x1c8)],null,_0x949c54),process[_0x3846f0(0x20a)](0x1));await _0x3e5ef4[_0x3846f0(0x219)](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1f3)],null,null,_0x949c54);const _0x2189f8=JSON['parse'](fs[_0x3846f0(0x216)](_0x3e5ef4['BPSYF'](getCredentialsPath))),_0x3cc553={'method':_0x3e5ef4['YRVGo'],'headers':_0x3e5ef4[_0x3846f0(0x215)](getAuthHeader,_0x2189f8[_0x3846f0(0x222)][_0x3846f0(0x1e7)],_0x2189f8[_0x3846f0(0x222)][_0x3846f0(0x1dc)]),'throwHttpErrors':![]},_0x432f5d=await _0x3e5ef4[_0x3846f0(0x215)](got,_0x251d7c,_0x3cc553);if(_0x3e5ef4[_0x3846f0(0x1f5)](_0x432f5d,null)&&_0x3e5ef4[_0x3846f0(0x1ec)](_0x432f5d,undefined)&&_0x3e5ef4[_0x3846f0(0x1f4)](_0x432f5d['statusCode'],0xc8)){const _0x171b14=JSON['parse'](_0x432f5d[_0x3846f0(0x1e0)]);console[_0x3846f0(0x218)](_0x3e5ef4[_0x3846f0(0x226)]),console['log'](_0x3e5ef4[_0x3846f0(0x1ff)]),console[_0x3846f0(0x218)](_0x3846f0(0x1f0)+_0x2189f8['Browserstack'][_0x3846f0(0x1e7)]),console[_0x3846f0(0x218)](_0x3846f0(0x1e3)+_0x171b14[_0x3846f0(0x1f8)]['name']);const _0xd41b9e=await _0x3e5ef4[_0x3846f0(0x1db)](inputConfirmation,_0x3e5ef4[_0x3846f0(0x1c6)]);(_0x3e5ef4[_0x3846f0(0x1ca)](_0xd41b9e,undefined)||_0x3e5ef4[_0x3846f0(0x21d)](_0xd41b9e,null)||!(_0x3e5ef4['BQLHZ'](_0xd41b9e[_0x3846f0(0x205)](),'y')||_0x3e5ef4['BQLHZ'](_0xd41b9e[_0x3846f0(0x205)](),'n')))&&(console[_0x3846f0(0x1e2)](_0x3e5ef4[_0x3846f0(0x211)]),await _0x3e5ef4[_0x3846f0(0x204)](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4[_0x3846f0(0x201)],null,_0x949c54),process['exit'](0x1));_0x3e5ef4['BQLHZ'](_0xd41b9e['toLowerCase'](),'n')&&process[_0x3846f0(0x20a)](0x0);console[_0x3846f0(0x218)](_0x3e5ef4[_0x3846f0(0x207)]);const _0x3981e1=_0x171b14[_0x3846f0(0x1fd)][_0x3846f0(0x1e4)];for(let _0x1baa05=0x0;_0x3e5ef4[_0x3846f0(0x1d8)](_0x1baa05,_0x3981e1);_0x1baa05+=0x1){console[_0x3846f0(0x218)]('['+_0x3e5ef4[_0x3846f0(0x223)](_0x1baa05,0x1)+']\x20'+_0x171b14[_0x3846f0(0x1fd)][_0x1baa05][_0x3846f0(0x1f9)]);}const _0x3fcf4f=await _0x3e5ef4[_0x3846f0(0x1eb)](inputConfirmation,_0x3e5ef4[_0x3846f0(0x1d7)]),_0x3d3d5a=_0x3e5ef4[_0x3846f0(0x1de)](Number,_0x3fcf4f);(_0x3e5ef4[_0x3846f0(0x1e1)](isNaN,_0x3d3d5a)||_0x3e5ef4[_0x3846f0(0x1da)](_0x3d3d5a,0x0)||_0x3e5ef4[_0x3846f0(0x21a)](_0x3d3d5a,_0x3981e1))&&(console[_0x3846f0(0x1e2)](_0x3e5ef4[_0x3846f0(0x211)]),await _0x3e5ef4['JVwkF'](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4[_0x3846f0(0x1c9)],null,_0x949c54),process[_0x3846f0(0x20a)](0x1));_0x3e5ef4[_0x3846f0(0x203)](closeInput);const _0x4f019b=_0x171b14[_0x3846f0(0x1fd)][_0x3e5ef4[_0x3846f0(0x1d3)](_0x3d3d5a,0x1)]['id'],_0x14e5ff={};_0x14e5ff['profileId']=_0x4f019b;const _0x282768={'method':_0x3e5ef4['OgunG'],'headers':_0x3e5ef4[_0x3846f0(0x1c4)](getAuthHeader,_0x2189f8[_0x3846f0(0x222)]['username'],_0x2189f8[_0x3846f0(0x222)]['password']),'json':_0x14e5ff,'responseType':_0x3e5ef4['SXtFK'],'throwHttpErrors':![]},_0x10e2a0=await _0x3e5ef4[_0x3846f0(0x1fc)](got,_0x251d7c,_0x282768);_0x3e5ef4['WZxbO'](_0x10e2a0,null)&&_0x3e5ef4[_0x3846f0(0x1dd)](_0x10e2a0,undefined)&&_0x3e5ef4['Leqxz'](_0x10e2a0[_0x3846f0(0x228)],0xc8)&&(console[_0x3846f0(0x218)](_0x3e5ef4['ozEZl']),process[_0x3846f0(0x20a)](0x0)),_0x3e5ef4['RpVIN'](_0x10e2a0[_0x3846f0(0x228)],0x191)&&(console['error'](_0x3e5ef4[_0x3846f0(0x225)]),await _0x3e5ef4['vrMQr'](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4[_0x3846f0(0x1c7)],null,_0x949c54),process['exit'](0x1)),console[_0x3846f0(0x1e2)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x10e2a0)),await _0x3e5ef4['vrMQr'](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4[_0x3846f0(0x1ce)],_0x10e2a0,_0x949c54),process[_0x3846f0(0x20a)](0x1);}_0x3e5ef4[_0x3846f0(0x1d2)](_0x432f5d[_0x3846f0(0x228)],0x191)&&(console[_0x3846f0(0x1e2)](_0x3e5ef4['DrUYj']),await _0x3e5ef4[_0x3846f0(0x1cb)](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4[_0x3846f0(0x1c7)],null,_0x949c54),process['exit'](0x1)),console['error'](_0x3846f0(0x1d9)+JSON[_0x3846f0(0x227)](_0x432f5d)),await _0x3e5ef4[_0x3846f0(0x1ed)](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4['hDJhl'],_0x432f5d,_0x949c54),process[_0x3846f0(0x20a)](0x1);}catch(_0x55fd4f){console[_0x3846f0(0x1e2)](_0x3846f0(0x20e)+_0x55fd4f[_0x3846f0(0x1d1)]),await _0x3e5ef4[_0x3846f0(0x209)](sendInstrumentationEvent,_0x949c54,_0x3e5ef4[_0x3846f0(0x229)],messageTypes[_0x3846f0(0x1cd)],_0x3e5ef4[_0x3846f0(0x1ee)],_0x55fd4f,_0x949c54),process[_0x3846f0(0x20a)](0x1);}};
1
+ function a5_0x5b8b(){const _0x335972=['INFO','oguCc','https://','exit','upiiA','PUT','xzifQ','statusCode','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','profileId','../config/constants','unknown-error','stringify','32mChiFZ','Browserstack','help','../utils/utilityMethods','Failed\x20to\x20configure\x20resources!\x20Error:\x20','CISVj','aFMGg','username','JXOTq','requestId','KAvIp','configure-called','command','epilogue','cETCM','gnGPX','vDYJF','wzkHJ','FPrxI','WvFEo','QMPWy','KAqwP','ERROR','ujMVu','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','478356EYsZhI','length','WvGiX','TfHra','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','list','init-not-called','name','log','WlATJ','uuid','recommendCommands','2004660xPfTVH','139779XrAGTU','GVvmZ','builder','GHRLv','desc','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','aZwod','toLowerCase','MoVRS','server-error','bLgVQ','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','core:','jbaKE','stack','106246HGIuOW','cUsna','ghdKt','ElVam','uQCPm','ertbP','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','347668aImwaW','zYCeo','password','QbfSk','1095381lRdojO','configure','error','Updated\x20default\x20Grid\x20Profile\x20successfully','uEtQb','1808584JjwnVo','/packages/cli/configure','invalid-input','4XpTbuF','body','argv','strict','HIlAD'];a5_0x5b8b=function(){return _0x335972;};return a5_0x5b8b();}function a5_0x2b23(_0x461879,_0x52c765){const _0x5b8b26=a5_0x5b8b();return a5_0x2b23=function(_0x2b2353,_0x3245d1){_0x2b2353=_0x2b2353-0x13d;let _0x128499=_0x5b8b26[_0x2b2353];return _0x128499;},a5_0x2b23(_0x461879,_0x52c765);}const a5_0x4550f4=a5_0x2b23;(function(_0x2ebe1f,_0x52ebf6){const _0x2d078e=a5_0x2b23,_0x57729a=_0x2ebe1f();while(!![]){try{const _0xd8e75d=parseInt(_0x2d078e(0x154))/0x1*(-parseInt(_0x2d078e(0x160))/0x2)+parseInt(_0x2d078e(0x158))/0x3+parseInt(_0x2d078e(0x15d))/0x4+parseInt(_0x2d078e(0x13d))/0x5+parseInt(_0x2d078e(0x18b))/0x6+-parseInt(_0x2d078e(0x14d))/0x7*(parseInt(_0x2d078e(0x172))/0x8)+parseInt(_0x2d078e(0x13e))/0x9;if(_0xd8e75d===_0x52ebf6)break;else _0x57729a['push'](_0x57729a['shift']());}catch(_0x2976f7){_0x57729a['push'](_0x57729a['shift']());}}}(a5_0x5b8b,0x88166));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a5_0x4550f4(0x195)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x4550f4(0x16f)),{getCredentialsPath,getAuthHeader}=require(a5_0x4550f4(0x175)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x4550f4(0x17e)]=a5_0x4550f4(0x159),exports[a5_0x4550f4(0x142)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0x4550f4(0x140)]=function(_0x1a5270){const _0x34b583=a5_0x4550f4,_0x36a8a7={};_0x36a8a7['ezIoZ']=_0x34b583(0x174);const _0x4cc1eb=_0x36a8a7;return _0x1a5270['usage'](HELP_HEADER_MESSAGE[_0x34b583(0x159)])[_0x34b583(0x17f)](HELP_FOOTER_MESSAGE)[_0x34b583(0x174)](_0x4cc1eb['ezIoZ'])[_0x34b583(0x196)]()[_0x34b583(0x163)]()[_0x34b583(0x162)];},exports['handler']=async function(_0xefca6a){const _0x5d9b86=a5_0x4550f4,_0x24bb51={'gnGPX':function(_0x3ff7c0){return _0x3ff7c0();},'WlATJ':function(_0x18e689){return _0x18e689();},'oguCc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zMUog':function(_0x1edbf0,_0x463b6a,_0x331a3a,_0x13034b,_0x4c190b,_0x27a082,_0x3a92f2){return _0x1edbf0(_0x463b6a,_0x331a3a,_0x13034b,_0x4c190b,_0x27a082,_0x3a92f2);},'ghdKt':_0x5d9b86(0x17d),'vQvey':_0x5d9b86(0x191),'vDYJF':'GET','ertbP':function(_0x5889b8,_0x18275c,_0x56e4e4){return _0x5889b8(_0x18275c,_0x56e4e4);},'uEtQb':function(_0xdba389,_0x2269dd,_0xea942c){return _0xdba389(_0x2269dd,_0xea942c);},'wzkHJ':function(_0x451a74,_0x341145){return _0x451a74!==_0x341145;},'cETCM':function(_0x12fbcc,_0xea677d){return _0x12fbcc===_0xea677d;},'cUsna':_0x5d9b86(0x153),'xzifQ':_0x5d9b86(0x14a),'TfHra':function(_0xd40a17,_0x2f0170){return _0xd40a17(_0x2f0170);},'ElVam':_0x5d9b86(0x16d),'jbaKE':function(_0x400bf8,_0x411fe0){return _0x400bf8===_0x411fe0;},'JXOTq':function(_0x502653,_0x3e0fa7){return _0x502653===_0x3e0fa7;},'aFMGg':function(_0x51aa46,_0x49ce9d){return _0x51aa46===_0x49ce9d;},'EkfsI':function(_0xb6946d,_0x1bf67c){return _0xb6946d===_0x1bf67c;},'GVvmZ':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','KAqwP':_0x5d9b86(0x15f),'FtZsk':function(_0x319771,_0x45609f){return _0x319771===_0x45609f;},'WvFEo':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','vPfNV':function(_0xa17daf,_0x35adfe){return _0xa17daf<_0x35adfe;},'zYCeo':function(_0x1a332c,_0x376d9f){return _0x1a332c+_0x376d9f;},'gvSeT':function(_0x12d323,_0x19f400){return _0x12d323(_0x19f400);},'uQCPm':_0x5d9b86(0x149),'VwZlk':function(_0xa7f43d,_0x255514){return _0xa7f43d(_0x255514);},'MoVRS':function(_0x687607,_0x213909){return _0x687607<=_0x213909;},'KAvIp':function(_0xcd79e9,_0x3a2734){return _0xcd79e9>_0x3a2734;},'upiiA':function(_0x180b9e,_0x20685d,_0x10a997,_0xc4be,_0x58ebce,_0x57d15d,_0x55655b){return _0x180b9e(_0x20685d,_0x10a997,_0xc4be,_0x58ebce,_0x57d15d,_0x55655b);},'mMXwi':'invalid-selection','QMPWy':function(_0x47e000,_0x3d0b61){return _0x47e000-_0x3d0b61;},'bLgVQ':_0x5d9b86(0x16a),'GHRLv':'json','mVaQe':function(_0x3a4546,_0x34129b){return _0x3a4546!==_0x34129b;},'pxblD':function(_0x4e6f05,_0x3a86e0){return _0x4e6f05===_0x3a86e0;},'HIlAD':_0x5d9b86(0x15b),'CISVj':function(_0x1a5ea4,_0x35724f){return _0x1a5ea4===_0x35724f;},'ORxcP':_0x5d9b86(0x18f),'ujMVu':'unauthorised','FPrxI':_0x5d9b86(0x147),'aZwod':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TNAAZ':function(_0x40fe43,_0x498b1e,_0x556e36,_0x36933b,_0x585f0e,_0x384dc0,_0x18b192){return _0x40fe43(_0x498b1e,_0x556e36,_0x36933b,_0x585f0e,_0x384dc0,_0x18b192);},'QbfSk':function(_0x3cb2c3,_0x1ff425,_0x213129,_0x5a36e0,_0x579b6d,_0x15dc39,_0x366f7b){return _0x3cb2c3(_0x1ff425,_0x213129,_0x5a36e0,_0x579b6d,_0x15dc39,_0x366f7b);},'WvGiX':_0x5d9b86(0x170)};try{global_registry[_0x5d9b86(0x17b)]=_0x24bb51['gnGPX'](uuidv4);const _0x12e932=_0x5d9b86(0x167)+AG_API_URL+_0x5d9b86(0x15e);!fs['existsSync'](_0x24bb51[_0x5d9b86(0x194)](getCredentialsPath))&&(console[_0x5d9b86(0x15a)](_0x24bb51[_0x5d9b86(0x166)]),await _0x24bb51['zMUog'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51['vQvey'],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1));await _0x24bb51['zMUog'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x165)],null,null,_0xefca6a);const _0x4cea4b=JSON['parse'](fs['readFileSync'](_0x24bb51['WlATJ'](getCredentialsPath))),_0x47582d={'method':_0x24bb51[_0x5d9b86(0x182)],'headers':_0x24bb51[_0x5d9b86(0x152)](getAuthHeader,_0x4cea4b['Browserstack'][_0x5d9b86(0x179)],_0x4cea4b[_0x5d9b86(0x173)][_0x5d9b86(0x156)]),'throwHttpErrors':![]},_0x2dbe0a=await _0x24bb51[_0x5d9b86(0x15c)](got,_0x12e932,_0x47582d);if(_0x24bb51['wzkHJ'](_0x2dbe0a,null)&&_0x24bb51[_0x5d9b86(0x183)](_0x2dbe0a,undefined)&&_0x24bb51[_0x5d9b86(0x180)](_0x2dbe0a[_0x5d9b86(0x16c)],0xc8)){const _0x49ffb4=JSON['parse'](_0x2dbe0a[_0x5d9b86(0x161)]);console[_0x5d9b86(0x193)](_0x24bb51[_0x5d9b86(0x14e)]),console['log'](_0x24bb51[_0x5d9b86(0x16b)]),console[_0x5d9b86(0x193)]('\x20\x20username:\x20'+_0x4cea4b[_0x5d9b86(0x173)]['username']),console[_0x5d9b86(0x193)]('\x20\x20grid-profile:\x20'+_0x49ffb4['active']['name']);const _0x2a4a19=await _0x24bb51[_0x5d9b86(0x18e)](inputConfirmation,_0x24bb51[_0x5d9b86(0x150)]);(_0x24bb51[_0x5d9b86(0x14b)](_0x2a4a19,undefined)||_0x24bb51['JXOTq'](_0x2a4a19,null)||!(_0x24bb51[_0x5d9b86(0x178)](_0x2a4a19['toLowerCase'](),'y')||_0x24bb51['EkfsI'](_0x2a4a19[_0x5d9b86(0x145)](),'n')))&&(console[_0x5d9b86(0x15a)](_0x24bb51['GVvmZ']),await _0x24bb51['zMUog'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x187)],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1));_0x24bb51['FtZsk'](_0x2a4a19[_0x5d9b86(0x145)](),'n')&&process[_0x5d9b86(0x168)](0x0);console['log'](_0x24bb51[_0x5d9b86(0x185)]);const _0x40ace3=_0x49ffb4[_0x5d9b86(0x190)][_0x5d9b86(0x18c)];for(let _0x2a7d19=0x0;_0x24bb51['vPfNV'](_0x2a7d19,_0x40ace3);_0x2a7d19+=0x1){console['log']('['+_0x24bb51[_0x5d9b86(0x155)](_0x2a7d19,0x1)+']\x20'+_0x49ffb4[_0x5d9b86(0x190)][_0x2a7d19][_0x5d9b86(0x192)]);}const _0x114888=await _0x24bb51['gvSeT'](inputConfirmation,_0x24bb51[_0x5d9b86(0x151)]),_0xd69ed1=_0x24bb51['VwZlk'](Number,_0x114888);(_0x24bb51[_0x5d9b86(0x18e)](isNaN,_0xd69ed1)||_0x24bb51[_0x5d9b86(0x146)](_0xd69ed1,0x0)||_0x24bb51[_0x5d9b86(0x17c)](_0xd69ed1,_0x40ace3))&&(console['error'](_0x24bb51[_0x5d9b86(0x13f)]),await _0x24bb51[_0x5d9b86(0x169)](sendInstrumentationEvent,_0xefca6a,_0x24bb51['ghdKt'],messageTypes[_0x5d9b86(0x188)],_0x24bb51['mMXwi'],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1));_0x24bb51[_0x5d9b86(0x181)](closeInput);const _0x499660=_0x49ffb4[_0x5d9b86(0x190)][_0x24bb51[_0x5d9b86(0x186)](_0xd69ed1,0x1)]['id'],_0x2a4838={};_0x2a4838[_0x5d9b86(0x16e)]=_0x499660;const _0x47c8ab={'method':_0x24bb51[_0x5d9b86(0x148)],'headers':_0x24bb51[_0x5d9b86(0x152)](getAuthHeader,_0x4cea4b['Browserstack']['username'],_0x4cea4b[_0x5d9b86(0x173)]['password']),'json':_0x2a4838,'responseType':_0x24bb51[_0x5d9b86(0x141)],'throwHttpErrors':![]},_0x5df1a1=await _0x24bb51['uEtQb'](got,_0x12e932,_0x47c8ab);_0x24bb51['wzkHJ'](_0x5df1a1,null)&&_0x24bb51['mVaQe'](_0x5df1a1,undefined)&&_0x24bb51['pxblD'](_0x5df1a1[_0x5d9b86(0x16c)],0xc8)&&(console['log'](_0x24bb51[_0x5d9b86(0x164)]),process[_0x5d9b86(0x168)](0x0)),_0x24bb51[_0x5d9b86(0x177)](_0x5df1a1['statusCode'],0x191)&&(console[_0x5d9b86(0x15a)](_0x24bb51['ORxcP']),await _0x24bb51['upiiA'](sendInstrumentationEvent,_0xefca6a,_0x24bb51['ghdKt'],messageTypes[_0x5d9b86(0x188)],_0x24bb51['ujMVu'],null,_0xefca6a),process['exit'](0x1)),console[_0x5d9b86(0x15a)](_0x5d9b86(0x143)+JSON[_0x5d9b86(0x171)](_0x5df1a1)),await _0x24bb51[_0x5d9b86(0x169)](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51['FPrxI'],_0x5df1a1,_0xefca6a),process[_0x5d9b86(0x168)](0x1);}_0x24bb51[_0x5d9b86(0x17a)](_0x2dbe0a['statusCode'],0x191)&&(console['error'](_0x24bb51[_0x5d9b86(0x144)]),await _0x24bb51[_0x5d9b86(0x169)](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x189)],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1)),console['error'](_0x5d9b86(0x18a)+JSON[_0x5d9b86(0x171)](_0x2dbe0a)),await _0x24bb51['TNAAZ'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x184)],_0x2dbe0a,_0xefca6a),process[_0x5d9b86(0x168)](0x1);}catch(_0x52f39a){console[_0x5d9b86(0x15a)](_0x5d9b86(0x176)+_0x52f39a[_0x5d9b86(0x14c)]),await _0x24bb51[_0x5d9b86(0x157)](sendInstrumentationEvent,_0xefca6a,_0x24bb51['ghdKt'],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x18d)],_0x52f39a,_0xefca6a),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a6_0x420b2b=a6_0x2a36;(function(_0x54955b,_0x2ee429){const _0x22d850=a6_0x2a36,_0x56f66e=_0x54955b();while(!![]){try{const _0x616be5=parseInt(_0x22d850(0x165))/0x1+parseInt(_0x22d850(0x156))/0x2+-parseInt(_0x22d850(0x157))/0x3*(-parseInt(_0x22d850(0x167))/0x4)+-parseInt(_0x22d850(0x15e))/0x5*(-parseInt(_0x22d850(0x163))/0x6)+parseInt(_0x22d850(0x15a))/0x7*(-parseInt(_0x22d850(0x152))/0x8)+parseInt(_0x22d850(0x168))/0x9*(parseInt(_0x22d850(0x151))/0xa)+-parseInt(_0x22d850(0x166))/0xb*(parseInt(_0x22d850(0x15b))/0xc);if(_0x616be5===_0x2ee429)break;else _0x56f66e['push'](_0x56f66e['shift']());}catch(_0x4fe365){_0x56f66e['push'](_0x56f66e['shift']());}}}(a6_0x258a,0xe6758));function a6_0x2a36(_0x52af05,_0x5c7bae){const _0x258a36=a6_0x258a();return a6_0x2a36=function(_0x2a3668,_0x3bba6e){_0x2a3668=_0x2a3668-0x151;let _0x232abc=_0x258a36[_0x2a3668];return _0x232abc;},a6_0x2a36(_0x52af05,_0x5c7bae);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x420b2b(0x160));exports[a6_0x420b2b(0x169)]=a6_0x420b2b(0x16b),exports[a6_0x420b2b(0x16a)]=a6_0x420b2b(0x162),exports[a6_0x420b2b(0x153)]=function(_0x801b1c){const _0x195db6=a6_0x420b2b,_0x8cb377={};_0x8cb377['COkEK']=_0x195db6(0x158),_0x8cb377[_0x195db6(0x161)]=_0x195db6(0x164);const _0x2b1361=_0x8cb377;return _0x801b1c[_0x195db6(0x15f)](HELP_HEADER_MESSAGE['connect'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x195db6(0x154)](_0x2b1361[_0x195db6(0x155)])[_0x195db6(0x15d)]()[_0x195db6(0x15c)]()[_0x195db6(0x159)]()[_0x195db6(0x164)](_0x2b1361[_0x195db6(0x161)]);},exports['handler']=function(_0x170ebc){};function a6_0x258a(){const _0x1183cc=['command','desc','connect','20zYmCOV','36464MiHbRD','builder','commandDir','COkEK','3543634GmJyjr','21TQqGZd','connect_commands','strict','497wpoKPI','948dabwFF','recommendCommands','demandCommand','201845vrRDCF','usage','../config/constants','wZdAe','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','30gAqMTA','help','495547YPQebP','314677lIoOSE','6568NEIEEw','4710726gOfcfl'];a6_0x258a=function(){return _0x1183cc;};return a6_0x258a();}
1
+ const a6_0xe121b6=a6_0x570e;function a6_0x1078(){const _0xe8c88b=['connect_commands','desc','Omekj','51277FwENVL','2ZdCvlt','connect','486EJkhcy','44192yCleVk','85985CkheHb','recommendCommands','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','48102RYacBl','help','64bpmVTa','2247476YIJPPA','builder','1319664BiRVpk','uwBDv','commandDir','command','epilogue','demandCommand','3335460AEdXFn'];a6_0x1078=function(){return _0xe8c88b;};return a6_0x1078();}function a6_0x570e(_0x14183b,_0x421733){const _0x1078ca=a6_0x1078();return a6_0x570e=function(_0x570e9d,_0x1f1165){_0x570e9d=_0x570e9d-0xb8;let _0x2caa99=_0x1078ca[_0x570e9d];return _0x2caa99;},a6_0x570e(_0x14183b,_0x421733);}(function(_0x2a5cdc,_0x4f2522){const _0x144406=a6_0x570e,_0xb51caf=_0x2a5cdc();while(!![]){try{const _0x6fa8ed=parseInt(_0x144406(0xc5))/0x1+-parseInt(_0x144406(0xc6))/0x2*(parseInt(_0x144406(0xcd))/0x3)+-parseInt(_0x144406(0xb8))/0x4*(-parseInt(_0x144406(0xca))/0x5)+parseInt(_0x144406(0xbb))/0x6+-parseInt(_0x144406(0xb9))/0x7+-parseInt(_0x144406(0xc9))/0x8*(-parseInt(_0x144406(0xc8))/0x9)+-parseInt(_0x144406(0xc1))/0xa;if(_0x6fa8ed===_0x4f2522)break;else _0xb51caf['push'](_0xb51caf['shift']());}catch(_0xc2a537){_0xb51caf['push'](_0xb51caf['shift']());}}}(a6_0x1078,0x2a7c5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a6_0xe121b6(0xbe)]='connect',exports[a6_0xe121b6(0xc3)]=a6_0xe121b6(0xcc),exports[a6_0xe121b6(0xba)]=function(_0x43218a){const _0x3fe570=a6_0xe121b6,_0x49d0e4={};_0x49d0e4[_0x3fe570(0xc4)]=_0x3fe570(0xc2),_0x49d0e4[_0x3fe570(0xbc)]=_0x3fe570(0xce);const _0xcab453=_0x49d0e4;return _0x43218a['usage'](HELP_HEADER_MESSAGE[_0x3fe570(0xc7)])[_0x3fe570(0xbf)](HELP_FOOTER_MESSAGE)[_0x3fe570(0xbd)](_0xcab453[_0x3fe570(0xc4)])[_0x3fe570(0xc0)]()[_0x3fe570(0xcb)]()['strict']()[_0x3fe570(0xce)](_0xcab453[_0x3fe570(0xbc)]);},exports['handler']=function(_0x153636){};
@@ -1 +1 @@
1
- function a7_0x36c7(){const _0x55d12a=['beforeExit','useStaging','oJXYI','SQTGi','dTTqM','help','isTrialGrid','mewYI','14430152VgAtJt','1339241ayEwjU','SpDkC','customRepeaters','advance-options','vGwaz','info','24MhCItm','ZhRiI','LTgXI','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','exit','DZnXw','LeuWH','JmANJ','Jnggg','bThum','VduHl','rCNXk','HjSfb','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','tTkdF','grid-id','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','lSJFA','gridId','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','advanceOptions','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.','BIDIg','3540786pcVial','EFNvd','5361245xPnZnQ','browserStackLocalOptions','Advance\x20options\x20for\x20Browserstack\x20Local','string','360juiqlJ','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','RmBPJ','prNrp','3104654LiFOfX','VMVzM','KMpfZ','VTcSx','SIGTERM','39pENtvN','command','porMK','OfKWb','type','dSdkN','kMnsS','lfCgT','error','argv','MaAmq','WSWQv','Mpare','Grid\x20type:\x20Trial','pumlk','desc','description','builder','../../config/constants','irVUy','../../utils/utilityMethods','jKZHg','9wJdKRr','isRunning','234993MlDcnC','qkxqn','QXqrx','byzdr','gZqUF','gJjzY','fjbBf','VUQsr','aBEIq','use-staging','rHIPy','QbAOD','BuFEu','npdfs','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','kxOPw','SIGINT','options','accessKey','bstackUsername','dDdsR','Ioazx','demandOption','KztdM','pVEFW','usage','hoHLn','388520XvIXdO','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','fnPLV','GYTwz','bstack-accesskey','epilogue','Pass\x20the\x20ID\x20of\x20the\x20Grid','bstack-username'];a7_0x36c7=function(){return _0x55d12a;};return a7_0x36c7();}function a7_0x2075(_0x57632b,_0x160b61){const _0x36c718=a7_0x36c7();return a7_0x2075=function(_0x2075d8,_0x2ff0f4){_0x2075d8=_0x2075d8-0x1cf;let _0x50f9f0=_0x36c718[_0x2075d8];return _0x50f9f0;},a7_0x2075(_0x57632b,_0x160b61);}const a7_0x520b72=a7_0x2075;(function(_0x386e69,_0xeff4b5){const _0x4a5338=a7_0x2075,_0x5a7276=_0x386e69();while(!![]){try{const _0x4a1e9c=-parseInt(_0x4a5338(0x229))/0x1+parseInt(_0x4a5338(0x1d6))/0x2+-parseInt(_0x4a5338(0x1e5))/0x3*(parseInt(_0x4a5338(0x218))/0x4)+parseInt(_0x4a5338(0x1d8))/0x5+parseInt(_0x4a5338(0x22f))/0x6*(parseInt(_0x4a5338(0x1e0))/0x7)+-parseInt(_0x4a5338(0x228))/0x8*(parseInt(_0x4a5338(0x1fb))/0x9)+-parseInt(_0x4a5338(0x1dc))/0xa*(-parseInt(_0x4a5338(0x1fd))/0xb);if(_0x4a1e9c===_0xeff4b5)break;else _0x5a7276['push'](_0x5a7276['shift']());}catch(_0x297f35){_0x5a7276['push'](_0x5a7276['shift']());}}}(a7_0x36c7,0xef482));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x520b72(0x1f7)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x520b72(0x1f9));exports[a7_0x520b72(0x1e6)]='grid',exports[a7_0x520b72(0x1f4)]=a7_0x520b72(0x23c),exports[a7_0x520b72(0x1f6)]=_0x340459=>{const _0x27f11d=a7_0x520b72,_0x36a332={};_0x36a332['EFNvd']=_0x27f11d(0x232),_0x36a332[_0x27f11d(0x211)]=_0x27f11d(0x1db),_0x36a332[_0x27f11d(0x202)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x36a332[_0x27f11d(0x1ef)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x36a332[_0x27f11d(0x227)]=_0x27f11d(0x1d2),_0x36a332[_0x27f11d(0x1f8)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x36a332[_0x27f11d(0x203)]=_0x27f11d(0x225);const _0x5f4b01=_0x36a332,_0x5f4843={};_0x5f4843[_0x27f11d(0x1f5)]=_0x5f4b01[_0x27f11d(0x1d7)],_0x5f4843[_0x27f11d(0x1e9)]=_0x5f4b01[_0x27f11d(0x211)];const _0x49ed4a={};_0x49ed4a[_0x27f11d(0x1f5)]=_0x5f4b01[_0x27f11d(0x202)],_0x49ed4a[_0x27f11d(0x1e9)]=_0x5f4b01[_0x27f11d(0x211)];const _0x1c257e={};_0x1c257e['demandOption']=!![],_0x1c257e[_0x27f11d(0x1f5)]=_0x5f4b01[_0x27f11d(0x1ef)],_0x1c257e[_0x27f11d(0x1e9)]=_0x5f4b01[_0x27f11d(0x211)];const _0x5797ca={};_0x5797ca[_0x27f11d(0x1f5)]=_0x5f4b01[_0x27f11d(0x227)],_0x5797ca[_0x27f11d(0x1e9)]=_0x5f4b01['dDdsR'];const _0x35dd98={};_0x35dd98[_0x27f11d(0x1f5)]=_0x5f4b01[_0x27f11d(0x1f8)],_0x35dd98[_0x27f11d(0x1e9)]=_0x5f4b01[_0x27f11d(0x211)];const _0x409932={};return _0x409932[_0x27f11d(0x21f)]=_0x5f4843,_0x409932[_0x27f11d(0x21c)]=_0x49ed4a,_0x409932[_0x27f11d(0x23e)]=_0x1c257e,_0x409932[_0x27f11d(0x206)]=_0x5797ca,_0x409932[_0x27f11d(0x22c)]=_0x35dd98,_0x340459['usage'](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x409932)[_0x27f11d(0x225)](_0x5f4b01['fjbBf'])[_0x27f11d(0x1ee)];},exports['handler']=async _0x2d5307=>{const _0x150ee5=a7_0x520b72,_0x158682={'uRxkT':function(_0x37cbd5,_0xaf9b2b){return _0x37cbd5(_0xaf9b2b);},'prNrp':_0x150ee5(0x20b),'Ioazx':function(_0x3c52f1,_0x520346){return _0x3c52f1!==_0x520346;},'LTgXI':_0x150ee5(0x236),'Jnggg':function(_0xdf7913,_0x38ba70){return _0xdf7913===_0x38ba70;},'ZhRiI':function(_0xc242e0,_0x1e8d39){return _0xc242e0(_0x1e8d39);},'Mpare':_0x150ee5(0x1f2),'IKsMS':function(_0xf7e284,_0x38d64f){return _0xf7e284(_0x38d64f);},'WSWQv':_0x150ee5(0x220),'aBEIq':_0x150ee5(0x20d),'lSJFA':_0x150ee5(0x1e4),'kMnsS':_0x150ee5(0x1d4),'jKZHg':_0x150ee5(0x1dd),'GYTwz':_0x150ee5(0x232),'pumlk':_0x150ee5(0x1db),'GFbcM':_0x150ee5(0x219),'vGwaz':_0x150ee5(0x21e),'aHSag':_0x150ee5(0x1d2),'tQaOa':_0x150ee5(0x1da),'QbAOD':_0x150ee5(0x225),'fYsNu':_0x150ee5(0x215),'Vizrt':'HXqKj','FHllM':function(_0x64df3a,_0x584e7d){return _0x64df3a(_0x584e7d);},'jOvUO':function(_0x11f263,_0x5f14dd){return _0x11f263(_0x5f14dd);},'SlVGn':function(_0x191b51,_0x1e915a){return _0x191b51(_0x1e915a);},'CNYiG':function(_0x2af640,_0xbd79bc){return _0x2af640(_0xbd79bc);},'dTTqM':function(_0x513eeb,_0x1d3748){return _0x513eeb(_0x1d3748);},'VUQsr':function(_0x54d801,_0x26f49b,_0x1550a8){return _0x54d801(_0x26f49b,_0x1550a8);},'VduHl':function(_0x54d9cb,_0x2bf12b){return _0x54d9cb&&_0x2bf12b;},'qkxqn':_0x150ee5(0x200),'DZnXw':_0x150ee5(0x20a),'VMVzM':_0x150ee5(0x1cf),'KMpfZ':function(_0x261cdf,_0x81f9c7,_0x52cb5d,_0x3f6c05){return _0x261cdf(_0x81f9c7,_0x52cb5d,_0x3f6c05);},'BIDIg':_0x150ee5(0x201),'fnPLV':_0x150ee5(0x20c),'QXqrx':function(_0x17bac8,_0x1a90ed){return _0x17bac8(_0x1a90ed);},'LeuWH':'true','bThum':function(_0x99424e,_0x1d9e9f){return _0x99424e!==_0x1d9e9f;},'dSdkN':_0x150ee5(0x214),'SQTGi':'ynvtJ','lfCgT':function(_0x28063f,_0x266979){return _0x28063f===_0x266979;},'RmBPJ':_0x150ee5(0x1e8),'hoHLn':function(_0x4ad1cc,_0x597663){return _0x4ad1cc(_0x597663);},'tTkdF':function(_0xed6057,_0x165f35){return _0xed6057!==_0x165f35;},'SpDkC':_0x150ee5(0x209),'OScou':function(_0x37b30f,_0x1e3988){return _0x37b30f(_0x1e3988);}};let _0x2a7e3e=_0x2d5307[_0x150ee5(0x210)],_0x5b9a89=_0x2d5307['bstackAccesskey'];const _0x21fe99=_0x2d5307[_0x150ee5(0x1d3)],_0x52a709=_0x1ab246=>{const _0xca485e=_0x150ee5,_0x252623={'porMK':function(_0x5b3549,_0x54b583){return _0x158682['uRxkT'](_0x5b3549,_0x54b583);},'rCNXk':_0x158682['prNrp']};_0x158682['Ioazx'](_0x158682['LTgXI'],_0x158682[_0xca485e(0x231)])?_0x252623[_0xca485e(0x1e7)](_0x3b76c9,_0x252623[_0xca485e(0x23a)]):(logger[_0xca485e(0x1ed)](_0x1ab246),process[_0xca485e(0x233)](0x1));};[_0x2a7e3e,_0x5b9a89]=_0x158682[_0x150ee5(0x204)](fetchOrUpdateUserConfig,_0x2a7e3e,_0x5b9a89);if(!_0x158682[_0x150ee5(0x239)](_0x2a7e3e,_0x5b9a89)){if(_0x158682['Ioazx'](_0x158682[_0x150ee5(0x1fe)],_0x158682[_0x150ee5(0x234)]))_0x158682[_0x150ee5(0x224)](_0x52a709,_0x158682[_0x150ee5(0x1e1)]);else{const _0x3a5364={'oJXYI':function(_0x10656d,_0xf3919e){return _0x158682['Jnggg'](_0x10656d,_0xf3919e);},'HjSfb':function(_0x186c79,_0x562e89){return _0x158682['ZhRiI'](_0x186c79,_0x562e89);}};let _0x209e7b=_0x158682[_0x150ee5(0x1f1)];_0x54623d['info'](_0x209e7b);try{const _0x2ef77c={};_0x2ef77c[_0x150ee5(0x20f)]=_0x58d80c,_0x2ef77c['customRepeaters']=_0xc3d4a4['customRepeaters'],_0x2ef77c[_0x150ee5(0x1d9)]=_0x151775;const _0x1dd583=_0x2ef77c,_0x274898=_0x158682['IKsMS'](_0x2f34a5,_0x1dd583);let _0x14a204=0x0;const _0xfe8d8a=async()=>{const _0x3f85db=_0x150ee5;_0x14a204++,_0x3a5364[_0x3f85db(0x222)](_0x14a204,0x1)&&_0x274898&&_0x274898[_0x3f85db(0x1fc)]()&&_0x3a5364[_0x3f85db(0x23b)](_0x265ccf,_0x274898);};_0x103e10['on'](_0x158682['WSWQv'],_0xfe8d8a),_0xd9ea92['on'](_0x158682[_0x150ee5(0x205)],_0xfe8d8a),_0x23f663['on'](_0x158682['lSJFA'],_0xfe8d8a),_0x209e7b=_0x158682['kMnsS'],_0x446e16[_0x150ee5(0x22e)](_0x209e7b);}catch(_0x2be587){_0x158682[_0x150ee5(0x230)](_0x4d203b,_0x158682[_0x150ee5(0x1fa)]);}}}const _0xc4f724=_0x2d5307[_0x150ee5(0x1d1)],[_0x4c7c7c,_0xb2e11d]=await _0x158682[_0x150ee5(0x1e2)](getGridDetails,_0x2a7e3e,_0x5b9a89,_0xc4f724);if(!_0xb2e11d){if(_0x158682[_0x150ee5(0x237)](_0x158682[_0x150ee5(0x1d5)],_0x158682[_0x150ee5(0x21a)])){const _0x3b0c6b={};_0x3b0c6b[_0x150ee5(0x1f5)]=_0x158682[_0x150ee5(0x21b)],_0x3b0c6b[_0x150ee5(0x1e9)]=_0x158682[_0x150ee5(0x1f3)];const _0x5ae63d={};_0x5ae63d[_0x150ee5(0x1f5)]=_0x158682['GFbcM'],_0x5ae63d[_0x150ee5(0x1e9)]=_0x158682[_0x150ee5(0x1f3)];const _0x7f0132={};_0x7f0132[_0x150ee5(0x213)]=!![],_0x7f0132[_0x150ee5(0x1f5)]=_0x158682[_0x150ee5(0x22d)],_0x7f0132[_0x150ee5(0x1e9)]=_0x158682[_0x150ee5(0x1f3)];const _0x47b8ec={};_0x47b8ec[_0x150ee5(0x1f5)]=_0x158682['aHSag'],_0x47b8ec[_0x150ee5(0x1e9)]=_0x158682['pumlk'];const _0x5bb0e4={};_0x5bb0e4[_0x150ee5(0x1f5)]=_0x158682['tQaOa'],_0x5bb0e4[_0x150ee5(0x1e9)]=_0x158682['pumlk'];const _0x4f7215={};return _0x4f7215[_0x150ee5(0x21f)]=_0x3b0c6b,_0x4f7215[_0x150ee5(0x21c)]=_0x5ae63d,_0x4f7215[_0x150ee5(0x23e)]=_0x7f0132,_0x4f7215[_0x150ee5(0x206)]=_0x47b8ec,_0x4f7215['advance-options']=_0x5bb0e4,_0x5bba87[_0x150ee5(0x216)](_0x5c4955['create'])[_0x150ee5(0x21d)](_0x5bc551)[_0x150ee5(0x20e)](_0x4f7215)[_0x150ee5(0x225)](_0x158682[_0x150ee5(0x208)])[_0x150ee5(0x1ee)];}else _0x158682[_0x150ee5(0x1ff)](_0x52a709,_0x158682[_0x150ee5(0x1df)]);}const _0x31a40f=_0x158682['Jnggg'](_0x2d5307[_0x150ee5(0x221)],_0x158682[_0x150ee5(0x235)])?!![]:![];if(_0xb2e11d&&_0xb2e11d[_0x150ee5(0x226)]&&_0x31a40f){if(_0x158682[_0x150ee5(0x238)](_0x158682[_0x150ee5(0x1ea)],_0x158682[_0x150ee5(0x223)])){let _0x77e67f=_0x158682[_0x150ee5(0x1f1)];logger[_0x150ee5(0x22e)](_0x77e67f);try{if(_0x158682[_0x150ee5(0x1ec)](_0x158682[_0x150ee5(0x1de)],_0x158682['RmBPJ'])){const _0xec3d49={};_0xec3d49[_0x150ee5(0x20f)]=_0x5b9a89,_0xec3d49[_0x150ee5(0x22b)]=_0xb2e11d['customRepeaters'],_0xec3d49[_0x150ee5(0x1d9)]=_0x21fe99;const _0x236ef7=_0xec3d49,_0x1f979b=_0x158682[_0x150ee5(0x217)](startLocalBinarySync,_0x236ef7);let _0x49bb84=0x0;const _0x5ce320=async()=>{const _0x5c7f77=_0x150ee5;_0x158682[_0x5c7f77(0x212)](_0x158682['fYsNu'],_0x158682['Vizrt'])?(_0x49bb84++,_0x158682[_0x5c7f77(0x237)](_0x49bb84,0x1)&&_0x1f979b&&_0x1f979b[_0x5c7f77(0x1fc)]()&&_0x158682['FHllM'](stopLocalBinary,_0x1f979b)):(_0x926dbd[_0x5c7f77(0x1ed)](_0x328beb),_0x16b3e4[_0x5c7f77(0x233)](0x1));};process['on'](_0x158682[_0x150ee5(0x1f0)],_0x5ce320),process['on'](_0x158682[_0x150ee5(0x205)],_0x5ce320),process['on'](_0x158682[_0x150ee5(0x1d0)],_0x5ce320),_0x77e67f=_0x158682[_0x150ee5(0x1eb)],logger[_0x150ee5(0x22e)](_0x77e67f);}else _0x158682['jOvUO'](_0x24f4a0,_0x158682[_0x150ee5(0x1fa)]);}catch(_0x5b6367){_0x158682[_0x150ee5(0x23d)](_0x158682[_0x150ee5(0x22a)],_0x158682[_0x150ee5(0x22a)])?(_0x404398++,_0x158682[_0x150ee5(0x237)](_0x3b9ab6,0x1)&&_0x2c8ba2&&_0x2f8c59[_0x150ee5(0x1fc)]()&&_0x158682['SlVGn'](_0x3ccef1,_0x1423de)):_0x158682['OScou'](_0x52a709,_0x158682[_0x150ee5(0x1fa)]);}}else{const _0x1f5eec={'VTcSx':function(_0x39390e,_0x24b4fe){const _0x304a45=_0x150ee5;return _0x158682[_0x304a45(0x237)](_0x39390e,_0x24b4fe);},'rHIPy':function(_0x177fc0,_0x1581cd){return _0x158682['CNYiG'](_0x177fc0,_0x1581cd);}},_0x7ebca7={};_0x7ebca7[_0x150ee5(0x20f)]=_0x1cd3e1,_0x7ebca7['customRepeaters']=_0x18b754[_0x150ee5(0x22b)],_0x7ebca7[_0x150ee5(0x1d9)]=_0x31e473;const _0x1b5496=_0x7ebca7,_0x1dd70f=_0x158682[_0x150ee5(0x224)](_0x594fd0,_0x1b5496);let _0x1f873b=0x0;const _0x1f9b1e=async()=>{const _0x54592f=_0x150ee5;_0x1f873b++,_0x1f5eec[_0x54592f(0x1e3)](_0x1f873b,0x1)&&_0x1dd70f&&_0x1dd70f[_0x54592f(0x1fc)]()&&_0x1f5eec[_0x54592f(0x207)](_0x335f43,_0x1dd70f);};_0x3caf7b['on'](_0x158682[_0x150ee5(0x1f0)],_0x1f9b1e),_0x4dd60d['on'](_0x158682[_0x150ee5(0x205)],_0x1f9b1e),_0x3963df['on'](_0x158682[_0x150ee5(0x1d0)],_0x1f9b1e),_0x381c68=_0x158682[_0x150ee5(0x1eb)],_0xeb58b1[_0x150ee5(0x22e)](_0x324fdf);}}process[_0x150ee5(0x233)](0x0);};
1
+ function a7_0x5d4c(){const _0x523278=['exit','lyRvO','643UFFhBE','OHcPK','atjLp','uMuJh','261720qWfcog','1191664gLaUIB','error','HqzfC','106ksvWMx','browserStackLocalOptions','options','20IOPGEw','Rxyau','customRepeaters','desc','ZXMyf','command','HRgct','gMRAQ','UPkqd','rYfMR','eCeIZ','YHUgz','eejmz','advanceOptions','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','MKOUh','JCzMb','HtgAc','use-staging','XsgJu','description','string','../../config/logger','accessKey','isTrialGrid','usage','useStaging','7pYziHB','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Pass\x20the\x20ID\x20of\x20the\x20Grid','QkzmF','yIKMp','IXwVy','oxXEX','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','adTSv','uPAQx','../../utils/utilityMethods','SCQDK','bstackUsername','Grid\x20type:\x20Trial','type','XQxvp','info','fqKBJ','grid-id','bstack-accesskey','mMNWq','qMKWM','demandOption','isRunning','VfGon','beforeExit','piQVG','EbPKN','dvzaN','JbNqb','Advance\x20options\x20for\x20Browserstack\x20Local','370296bXyaWr','ZLKtl','bLGVZ','MRQRE','NyiYv','OvSYF','OFNlq','QAuPU','help','XyFHo','bstack-username','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','pyaxP','nzxYW','GzJnS','aBKdv','ATIGv','GGNFc','vMddH','483453yJZpNf','llHGA','builder','LcZJe','KmWvQ','DDGuH','GumJk','lLSXi','SIGTERM','nYkfn','create','SIGINT','epilogue','true','grid','278812pLAaEn','eXQon','7811150vkvynT','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','OLiqY'];a7_0x5d4c=function(){return _0x523278;};return a7_0x5d4c();}function a7_0x3d17(_0x4afe3c,_0x3ccc94){const _0x5d4c24=a7_0x5d4c();return a7_0x3d17=function(_0x3d1772,_0x2508d3){_0x3d1772=_0x3d1772-0xf8;let _0x4cf98e=_0x5d4c24[_0x3d1772];return _0x4cf98e;},a7_0x3d17(_0x4afe3c,_0x3ccc94);}const a7_0x434f40=a7_0x3d17;(function(_0x2d0bd3,_0x5d8de7){const _0x43f4bd=a7_0x3d17,_0xb5bedf=_0x2d0bd3();while(!![]){try{const _0x26bdc4=-parseInt(_0x43f4bd(0x122))/0x1*(parseInt(_0x43f4bd(0x12a))/0x2)+-parseInt(_0x43f4bd(0x10c))/0x3+parseInt(_0x43f4bd(0x11b))/0x4*(-parseInt(_0x43f4bd(0x12d))/0x5)+parseInt(_0x43f4bd(0x126))/0x6+-parseInt(_0x43f4bd(0x148))/0x7*(parseInt(_0x43f4bd(0x127))/0x8)+-parseInt(_0x43f4bd(0xf9))/0x9+parseInt(_0x43f4bd(0x11d))/0xa;if(_0x26bdc4===_0x5d8de7)break;else _0xb5bedf['push'](_0xb5bedf['shift']());}catch(_0x32794a){_0xb5bedf['push'](_0xb5bedf['shift']());}}}(a7_0x5d4c,0x2734f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x434f40(0x143)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x434f40(0x152));exports[a7_0x434f40(0x132)]=a7_0x434f40(0x11a),exports[a7_0x434f40(0x130)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x434f40(0x10e)]=_0x5d4b93=>{const _0x432ef5=a7_0x434f40,_0xcd9d85={};_0xcd9d85[_0x432ef5(0x100)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0xcd9d85['YHUgz']='string',_0xcd9d85[_0x432ef5(0x153)]=_0x432ef5(0x13b),_0xcd9d85[_0x432ef5(0x112)]=_0x432ef5(0x14a),_0xcd9d85[_0x432ef5(0x109)]=_0x432ef5(0x11e),_0xcd9d85['aBKdv']=_0x432ef5(0xf8),_0xcd9d85['rOnTr']='help';const _0x5aa702=_0xcd9d85,_0x67a219={};_0x67a219[_0x432ef5(0x141)]=_0x5aa702['QAuPU'],_0x67a219['type']=_0x5aa702[_0x432ef5(0x138)];const _0x4cf04e={};_0x4cf04e['description']=_0x5aa702[_0x432ef5(0x153)],_0x4cf04e['type']=_0x5aa702[_0x432ef5(0x138)];const _0x19bb4f={};_0x19bb4f[_0x432ef5(0x15e)]=!![],_0x19bb4f[_0x432ef5(0x141)]=_0x5aa702[_0x432ef5(0x112)],_0x19bb4f[_0x432ef5(0x156)]=_0x5aa702[_0x432ef5(0x138)];const _0x1fb4eb={};_0x1fb4eb[_0x432ef5(0x141)]=_0x5aa702[_0x432ef5(0x109)],_0x1fb4eb['type']=_0x5aa702[_0x432ef5(0x138)];const _0x12953c={};_0x12953c[_0x432ef5(0x141)]=_0x5aa702[_0x432ef5(0x108)],_0x12953c[_0x432ef5(0x156)]=_0x5aa702[_0x432ef5(0x138)];const _0x53cffc={};return _0x53cffc[_0x432ef5(0x103)]=_0x67a219,_0x53cffc[_0x432ef5(0x15b)]=_0x4cf04e,_0x53cffc[_0x432ef5(0x15a)]=_0x19bb4f,_0x53cffc[_0x432ef5(0x13f)]=_0x1fb4eb,_0x53cffc['advance-options']=_0x12953c,_0x5d4b93[_0x432ef5(0x146)](HELP_HEADER_MESSAGE[_0x432ef5(0x116)])[_0x432ef5(0x118)](HELP_FOOTER_MESSAGE)[_0x432ef5(0x12c)](_0x53cffc)[_0x432ef5(0x101)](_0x5aa702['rOnTr'])['argv'];},exports['handler']=async _0x5bd662=>{const _0x147ae6=a7_0x434f40,_0x401356={'GzJnS':function(_0x303093,_0x2be299){return _0x303093(_0x2be299);},'pyaxP':_0x147ae6(0x14f),'oxXEX':function(_0x44da2d,_0x535282){return _0x44da2d===_0x535282;},'JbNqb':'CxLVA','hHLYX':_0x147ae6(0x104),'HtgAc':_0x147ae6(0x149),'EbPKN':_0x147ae6(0x142),'llHGA':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','gMRAQ':'Pass\x20the\x20ID\x20of\x20the\x20Grid','XQxvp':_0x147ae6(0x11e),'OvSYF':_0x147ae6(0xf8),'KHxXy':'help','uPAQx':function(_0x26bdfc,_0x23751e){return _0x26bdfc===_0x23751e;},'NyiYv':_0x147ae6(0x161),'dvzaN':_0x147ae6(0x117),'lHbDk':_0x147ae6(0x114),'MKOUh':'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.','bLGVZ':function(_0x37541c,_0x414504){return _0x37541c(_0x414504);},'XyFHo':'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','UPkqd':_0x147ae6(0x131),'eejmz':_0x147ae6(0x123),'lLSXi':function(_0x509b2e,_0xb30e9){return _0x509b2e===_0xb30e9;},'HqzfC':function(_0x2fd0fc,_0x25fa48){return _0x2fd0fc(_0x25fa48);},'XsgJu':function(_0x48b902,_0x454474){return _0x48b902===_0x454474;},'rYfMR':function(_0x45791e,_0x3c584c){return _0x45791e(_0x3c584c);},'LcZJe':function(_0x114edc,_0x3479c4,_0x126672){return _0x114edc(_0x3479c4,_0x126672);},'DDGuH':function(_0x3c38ba,_0x557357){return _0x3c38ba&&_0x557357;},'blVjw':function(_0xe30981,_0x514361){return _0xe30981!==_0x514361;},'mMNWq':_0x147ae6(0x159),'QkzmF':_0x147ae6(0x115),'VfGon':function(_0x33f6d9,_0x5a5471,_0x5f1b94,_0x54205a){return _0x33f6d9(_0x5a5471,_0x5f1b94,_0x54205a);},'qMKWM':function(_0x295870,_0x29b36a){return _0x295870!==_0x29b36a;},'ZLKtl':_0x147ae6(0x162),'vMddH':_0x147ae6(0x119),'adTSv':_0x147ae6(0x11c),'eCeIZ':_0x147ae6(0x14d),'yIKMp':_0x147ae6(0x155),'OLiqY':function(_0x111bfd,_0x239c31){return _0x111bfd===_0x239c31;},'MRQRE':_0x147ae6(0x110),'ZBMDh':_0x147ae6(0x121),'HRgct':function(_0x321af7,_0x702751){return _0x321af7!==_0x702751;},'JCzMb':_0x147ae6(0x124),'hItzR':_0x147ae6(0xff),'GGNFc':function(_0x4a0396,_0x4f9fcf){return _0x4a0396(_0x4f9fcf);}};let _0x5924dc=_0x5bd662[_0x147ae6(0x154)],_0x101888=_0x5bd662['bstackAccesskey'];const _0x1d475c=_0x5bd662[_0x147ae6(0x13a)],_0x5a0197=_0x55ebcb=>{const _0x46c701=_0x147ae6;_0x401356[_0x46c701(0x14e)](_0x401356[_0x46c701(0x165)],_0x401356[_0x46c701(0x165)])?(logger[_0x46c701(0x128)](_0x55ebcb),process[_0x46c701(0x120)](0x1)):_0x401356[_0x46c701(0x107)](_0x599372,_0x401356[_0x46c701(0x105)]);};[_0x5924dc,_0x101888]=_0x401356[_0x147ae6(0x10f)](fetchOrUpdateUserConfig,_0x5924dc,_0x101888);!_0x401356[_0x147ae6(0x111)](_0x5924dc,_0x101888)&&(_0x401356['blVjw'](_0x401356[_0x147ae6(0x15c)],_0x401356[_0x147ae6(0x14b)])?_0x401356[_0x147ae6(0x136)](_0x5a0197,_0x401356['hHLYX']):_0x401356[_0x147ae6(0x107)](_0x3cf061,_0x401356['hHLYX']));const _0x124be6=_0x5bd662['gridId'],[_0x2bdb71,_0x4ddbe4]=await _0x401356[_0x147ae6(0x160)](getGridDetails,_0x5924dc,_0x101888,_0x124be6);if(!_0x4ddbe4){if(_0x401356[_0x147ae6(0x15d)](_0x401356[_0x147ae6(0xfa)],_0x401356[_0x147ae6(0xfa)])){const _0x574ac2={};_0x574ac2[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x13e)],_0x574ac2[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x153b14={};_0x153b14[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x10d)],_0x153b14[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x30e269={};_0x30e269[_0x147ae6(0x15e)]=!![],_0x30e269[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x134)],_0x30e269[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x5d0716={};_0x5d0716[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x157)],_0x5d0716[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x32db96={};_0x32db96['description']=_0x401356[_0x147ae6(0xfe)],_0x32db96['type']=_0x401356[_0x147ae6(0x163)];const _0x48aa65={};return _0x48aa65[_0x147ae6(0x103)]=_0x574ac2,_0x48aa65[_0x147ae6(0x15b)]=_0x153b14,_0x48aa65['grid-id']=_0x30e269,_0x48aa65[_0x147ae6(0x13f)]=_0x5d0716,_0x48aa65['advance-options']=_0x32db96,_0x4856f9['usage'](_0x589c26['create'])[_0x147ae6(0x118)](_0x1ecd3b)[_0x147ae6(0x12c)](_0x48aa65)[_0x147ae6(0x101)](_0x401356['KHxXy'])['argv'];}else _0x401356[_0x147ae6(0xfb)](_0x5a0197,_0x401356['XyFHo']);}const _0x4f3cc5=_0x401356[_0x147ae6(0x151)](_0x5bd662[_0x147ae6(0x147)],_0x401356[_0x147ae6(0x10b)])?!![]:![];if(_0x4ddbe4&&_0x4ddbe4[_0x147ae6(0x145)]&&_0x4f3cc5){if(_0x401356[_0x147ae6(0x113)](_0x401356[_0x147ae6(0x150)],_0x401356[_0x147ae6(0x137)])){const _0x287cd8={'Rxyau':function(_0x1fb61d,_0x25be3d){const _0x39e6f5=_0x147ae6;return _0x401356[_0x39e6f5(0x151)](_0x1fb61d,_0x25be3d);},'uMuJh':function(_0x42eaa6,_0x4a156f){const _0x769ecd=_0x147ae6;return _0x401356[_0x769ecd(0x107)](_0x42eaa6,_0x4a156f);}},_0x11d4c4={};_0x11d4c4[_0x147ae6(0x144)]=_0x88bfd8,_0x11d4c4['customRepeaters']=_0x3cea7d['customRepeaters'],_0x11d4c4[_0x147ae6(0x12b)]=_0x3801ed;const _0x26075c=_0x11d4c4,_0x37ef5c=_0x401356[_0x147ae6(0x107)](_0x2d123d,_0x26075c);let _0x5deb1e=0x0;const _0x5d8153=async()=>{const _0x33c3de=_0x147ae6;_0x5deb1e++,_0x287cd8[_0x33c3de(0x12e)](_0x5deb1e,0x1)&&_0x37ef5c&&_0x37ef5c['isRunning']()&&_0x287cd8[_0x33c3de(0x125)](_0x481699,_0x37ef5c);};_0x33bc90['on'](_0x401356[_0x147ae6(0xfd)],_0x5d8153),_0x437427['on'](_0x401356[_0x147ae6(0x164)],_0x5d8153),_0x40bbde['on'](_0x401356['lHbDk'],_0x5d8153),_0x5bea22=_0x401356[_0x147ae6(0x13c)],_0x588b96[_0x147ae6(0x158)](_0x34dccc);}else{let _0x16559c=_0x401356[_0x147ae6(0x14c)];logger[_0x147ae6(0x158)](_0x16559c);try{if(_0x401356[_0x147ae6(0x11f)](_0x401356[_0x147ae6(0xfc)],_0x401356['ZBMDh']))_0x12d9b4['error'](_0x53803e),_0x2646bf[_0x147ae6(0x120)](0x1);else{const _0x5e8c66={};_0x5e8c66[_0x147ae6(0x144)]=_0x101888,_0x5e8c66[_0x147ae6(0x12f)]=_0x4ddbe4[_0x147ae6(0x12f)],_0x5e8c66[_0x147ae6(0x12b)]=_0x1d475c;const _0x3bfa67=_0x5e8c66,_0xfb4f2c=_0x401356[_0x147ae6(0x129)](startLocalBinarySync,_0x3bfa67);let _0x181227=0x0;const _0x107d29=async()=>{const _0x294a80=_0x147ae6,_0x40d30a={'nzxYW':function(_0x823006,_0x1bc949){return _0x401356['bLGVZ'](_0x823006,_0x1bc949);},'tHHbo':_0x401356[_0x294a80(0x102)]};_0x401356[_0x294a80(0x14e)](_0x401356[_0x294a80(0x135)],_0x401356[_0x294a80(0x139)])?_0x40d30a[_0x294a80(0x106)](_0x5aaa09,_0x40d30a['tHHbo']):(_0x181227++,_0x401356[_0x294a80(0x113)](_0x181227,0x1)&&_0xfb4f2c&&_0xfb4f2c['isRunning']()&&_0x401356[_0x294a80(0x129)](stopLocalBinary,_0xfb4f2c));};process['on'](_0x401356[_0x147ae6(0xfd)],_0x107d29),process['on'](_0x401356[_0x147ae6(0x164)],_0x107d29),process['on'](_0x401356['lHbDk'],_0x107d29),_0x16559c=_0x401356[_0x147ae6(0x13c)],logger[_0x147ae6(0x158)](_0x16559c);}}catch(_0x31752e){_0x401356[_0x147ae6(0x133)](_0x401356[_0x147ae6(0x13d)],_0x401356['hItzR'])?_0x401356[_0x147ae6(0x10a)](_0x5a0197,_0x401356[_0x147ae6(0x105)]):(_0x26afb4++,_0x401356[_0x147ae6(0x140)](_0xcc8a66,0x1)&&_0x3aafe2&&_0x430bcd[_0x147ae6(0x15f)]()&&_0x401356['rYfMR'](_0xb45522,_0x92cb89));}}}process['exit'](0x0);};
@@ -1 +1 @@
1
- function a8_0x3cf0(_0x393b26,_0x5df12e){const _0x32f627=a8_0x32f6();return a8_0x3cf0=function(_0x3cf012,_0x312cda){_0x3cf012=_0x3cf012-0x1b2;let _0x36391a=_0x32f627[_0x3cf012];return _0x36391a;},a8_0x3cf0(_0x393b26,_0x5df12e);}const a8_0x242bef=a8_0x3cf0;function a8_0x32f6(){const _0x557a64=['165126BrmtDy','Create\x20a\x20new\x20Automation\x20grid.','epilogue','555138dTtCRb','../config/constants','create','wKXOZ','sHIcD','create_commands','42hDxIXv','339832AKzQiR','9141zdsDsW','1284108BdvJSm','desc','usage','handler','strict','demandCommand','1646864JAcCem','212980VQbuvQ','builder','recommendCommands','commandDir','help'];a8_0x32f6=function(){return _0x557a64;};return a8_0x32f6();}(function(_0x33cafc,_0x36077c){const _0x174b54=a8_0x3cf0,_0xa248e5=_0x33cafc();while(!![]){try{const _0x18ced6=parseInt(_0x174b54(0x1c7))/0x1+parseInt(_0x174b54(0x1b8))/0x2*(-parseInt(_0x174b54(0x1ba))/0x3)+-parseInt(_0x174b54(0x1b9))/0x4+parseInt(_0x174b54(0x1c2))/0x5+parseInt(_0x174b54(0x1b2))/0x6+parseInt(_0x174b54(0x1bb))/0x7+-parseInt(_0x174b54(0x1c1))/0x8;if(_0x18ced6===_0x36077c)break;else _0xa248e5['push'](_0xa248e5['shift']());}catch(_0x1316e0){_0xa248e5['push'](_0xa248e5['shift']());}}}(a8_0x32f6,0x1f776));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x242bef(0x1b3));exports['command']=a8_0x242bef(0x1b4),exports[a8_0x242bef(0x1bc)]=a8_0x242bef(0x1c8),exports[a8_0x242bef(0x1c3)]=function(_0x2d7502){const _0x57584f=a8_0x242bef,_0x90d066={};_0x90d066[_0x57584f(0x1b5)]=_0x57584f(0x1b7),_0x90d066[_0x57584f(0x1b6)]=_0x57584f(0x1c6);const _0xd78d05=_0x90d066;return _0x2d7502[_0x57584f(0x1bd)](HELP_HEADER_MESSAGE['create'])[_0x57584f(0x1c9)](HELP_FOOTER_MESSAGE)[_0x57584f(0x1c5)](_0xd78d05['wKXOZ'])[_0x57584f(0x1c0)]()[_0x57584f(0x1c4)]()[_0x57584f(0x1bf)]()['help'](_0xd78d05[_0x57584f(0x1b6)]);},exports[a8_0x242bef(0x1be)]=function(_0x9fc82d){};
1
+ const a8_0x4b30cf=a8_0x4bcf;(function(_0x3256a4,_0x37d503){const _0x3a2357=a8_0x4bcf,_0x2a1024=_0x3256a4();while(!![]){try{const _0xf35cf1=parseInt(_0x3a2357(0x9b))/0x1*(parseInt(_0x3a2357(0xb0))/0x2)+parseInt(_0x3a2357(0xa6))/0x3+-parseInt(_0x3a2357(0xa2))/0x4+-parseInt(_0x3a2357(0xa9))/0x5+parseInt(_0x3a2357(0xb1))/0x6*(parseInt(_0x3a2357(0x9e))/0x7)+parseInt(_0x3a2357(0xac))/0x8+parseInt(_0x3a2357(0xab))/0x9*(-parseInt(_0x3a2357(0xaf))/0xa);if(_0xf35cf1===_0x37d503)break;else _0x2a1024['push'](_0x2a1024['shift']());}catch(_0x5eb825){_0x2a1024['push'](_0x2a1024['shift']());}}}(a8_0x459d,0x94994));function a8_0x4bcf(_0x23c44b,_0x3e0d77){const _0x459d11=a8_0x459d();return a8_0x4bcf=function(_0x4bcfe8,_0x3022c0){_0x4bcfe8=_0x4bcfe8-0x9a;let _0x3f09a0=_0x459d11[_0x4bcfe8];return _0x3f09a0;},a8_0x4bcf(_0x23c44b,_0x3e0d77);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x4b30cf(0x9c));function a8_0x459d(){const _0x333264=['2695651DUrpmY','desc','strict','commandDir','3831800sDFivm','KHWRk','create_commands','command','2366358EyRrGM','sSPsP','builder','2045770TpntCI','handler','585dxlwIW','5191040kFABSy','usage','epilogue','135210PMUsTI','1031870czAwdI','6HsscXK','help','Create\x20a\x20new\x20Automation\x20grid.','demandCommand','recommendCommands','2zHfvSo','../config/constants','create'];a8_0x459d=function(){return _0x333264;};return a8_0x459d();}exports[a8_0x4b30cf(0xa5)]='create',exports[a8_0x4b30cf(0x9f)]=a8_0x4b30cf(0xb3),exports[a8_0x4b30cf(0xa8)]=function(_0x3ea072){const _0x161f5b=a8_0x4b30cf,_0x2ad9f0={};_0x2ad9f0[_0x161f5b(0xa7)]=_0x161f5b(0xa4),_0x2ad9f0[_0x161f5b(0xa3)]=_0x161f5b(0xb2);const _0x221584=_0x2ad9f0;return _0x3ea072[_0x161f5b(0xad)](HELP_HEADER_MESSAGE[_0x161f5b(0x9d)])[_0x161f5b(0xae)](HELP_FOOTER_MESSAGE)[_0x161f5b(0xa1)](_0x221584['sSPsP'])[_0x161f5b(0xb4)]()[_0x161f5b(0x9a)]()[_0x161f5b(0xa0)]()[_0x161f5b(0xb2)](_0x221584[_0x161f5b(0xa3)]);},exports[a8_0x4b30cf(0xaa)]=function(_0x5133f8){};