browserstack-node-sdk 1.31.9 → 1.31.11

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 (106) 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/config/constants.js +1 -1
  18. package/ats/src/config/logger.js +1 -1
  19. package/ats/src/index.js +1 -1
  20. package/ats/src/templates/turboscale-agent.yaml +61 -0
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customImplements/customCircus.js +1 -1
  43. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  44. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  45. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  48. package/src/bin/jest/test-observability/helper.js +1 -1
  49. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  50. package/src/bin/jest/test-observability/test-details.js +1 -1
  51. package/src/bin/jest/test_before.setup.js +1 -1
  52. package/src/bin/launcher/launcher.js +1 -1
  53. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  54. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/mocha/command.js +1 -1
  56. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  57. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  58. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  59. package/src/bin/mocha/test.setup.js +1 -1
  60. package/src/bin/nightwatch/command.js +1 -1
  61. package/src/bin/playwright/accessibility-helper.js +1 -1
  62. package/src/bin/playwright/command.js +1 -1
  63. package/src/bin/playwright/globalSetup.js +1 -1
  64. package/src/bin/playwright/mock-process.js +1 -1
  65. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  66. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  67. package/src/bin/playwright/reporter/reporter.js +1 -1
  68. package/src/bin/playwright/reporter/test-details.js +1 -1
  69. package/src/bin/runner.js +1 -1
  70. package/src/bin/setup.js +1 -1
  71. package/src/bin/test-runner/index.js +1 -1
  72. package/src/bin/test-runner/runTest.js +1 -1
  73. package/src/bin/test-runner/testWorker.js +1 -1
  74. package/src/bin/utils/constants.js +1 -1
  75. package/src/bin/utils/log4jsAppender.js +1 -1
  76. package/src/bin/utils/logPatcher.js +1 -1
  77. package/src/bin/utils/logReportingAPI.js +1 -1
  78. package/src/bin/vanilla-js/command.js +1 -1
  79. package/src/browserStackSdk.js +1 -1
  80. package/src/helpers/BrowserStackSetup.js +1 -1
  81. package/src/helpers/accessibility-automation/constants.js +1 -1
  82. package/src/helpers/accessibility-automation/helper.js +1 -1
  83. package/src/helpers/ats/constants.js +1 -1
  84. package/src/helpers/ats/helper.js +1 -1
  85. package/src/helpers/capsMapping.js +1 -1
  86. package/src/helpers/helper.js +1 -1
  87. package/src/helpers/logger.js +1 -1
  88. package/src/helpers/patchHelpers.js +1 -1
  89. package/src/helpers/percy/Percy.js +1 -1
  90. package/src/helpers/percy/PercyBinary.js +1 -1
  91. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  92. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  93. package/src/helpers/percy/PercySDK.js +1 -1
  94. package/src/helpers/percy/index.js +1 -1
  95. package/src/helpers/percy/utils.js +1 -1
  96. package/src/helpers/performance-tester.js +1 -1
  97. package/src/helpers/request-spy.js +1 -1
  98. package/src/helpers/setKeepAlive.js +1 -1
  99. package/src/helpers/test-observability/constants.js +1 -1
  100. package/src/helpers/test-observability/error-handler.js +1 -1
  101. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  102. package/src/helpers/test-observability/sessionHandler.js +1 -1
  103. package/src/helpers/test-observability/utils.js +1 -1
  104. package/src/helpers/w3cMapping.js +1 -1
  105. package/src/hubAllocationMethods.js +1 -1
  106. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a0_0x14a32a=a0_0x2b01;(function(_0x38462b,_0x21fe4b){const _0x17e58a=a0_0x2b01,_0x26354b=_0x38462b();while(!![]){try{const _0x134a46=-parseInt(_0x17e58a(0x25e))/0x1*(-parseInt(_0x17e58a(0x20e))/0x2)+-parseInt(_0x17e58a(0x2a9))/0x3+parseInt(_0x17e58a(0x2a3))/0x4*(-parseInt(_0x17e58a(0x25f))/0x5)+-parseInt(_0x17e58a(0x2ca))/0x6+-parseInt(_0x17e58a(0x275))/0x7+parseInt(_0x17e58a(0x296))/0x8*(-parseInt(_0x17e58a(0x294))/0x9)+parseInt(_0x17e58a(0x287))/0xa;if(_0x134a46===_0x21fe4b)break;else _0x26354b['push'](_0x26354b['shift']());}catch(_0x33f3a1){_0x26354b['push'](_0x26354b['shift']());}}}(a0_0x2fb7,0xc3a60));const fs=require('fs'),path=require(a0_0x14a32a(0x270)),yaml=require('js-yaml'),awsSDK=require(a0_0x14a32a(0x2bc)),{logger}=require(a0_0x14a32a(0x1d8)),{CloudProvider}=require(a0_0x14a32a(0x1b3)),{sendAWSInfoToHST}=require(a0_0x14a32a(0x2cf)),{deleteClusterStack}=require(a0_0x14a32a(0x1d5)),{createClusterStack}=require(a0_0x14a32a(0x1b0)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x14a32a(0x26b)),{createAutoscalerStack}=require(a0_0x14a32a(0x2a4)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x14a32a(0x24d)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require('../config/constants');function a0_0x2b01(_0x496396,_0xdd1f3b){const _0x2fb70d=a0_0x2fb7();return a0_0x2b01=function(_0x2b0119,_0x35faf9){_0x2b0119=_0x2b0119-0x1aa;let _0x263351=_0x2fb70d[_0x2b0119];return _0x263351;},a0_0x2b01(_0x496396,_0xdd1f3b);}class AWSCloudProvider extends CloudProvider{constructor(_0x4919cb,_0xa56584,_0x5548e6,_0x2b0fe4){super(AWS,_0x4919cb,_0xa56584,_0x5548e6,_0x2b0fe4);}[a0_0x14a32a(0x254)](){const _0x2c809d=a0_0x14a32a,_0x40b29e={};_0x40b29e['NVrJR']=function(_0x26999b,_0x5ce54b){return _0x26999b!==_0x5ce54b;},_0x40b29e[_0x2c809d(0x1f9)]=_0x2c809d(0x1e2);const _0x14881e=_0x40b29e;if(!this[_0x2c809d(0x1c1)]()){if(_0x14881e[_0x2c809d(0x22b)](_0x14881e[_0x2c809d(0x1f9)],_0x14881e['YloXp']))return this[_0x2c809d(0x254)](),this[_0x2c809d(0x237)]();else this['setConfig']();}}[a0_0x14a32a(0x1c1)](){const _0x5d6caa=a0_0x14a32a,_0x4eb13d={};_0x4eb13d[_0x5d6caa(0x23d)]=function(_0x3725eb,_0x21b355){return _0x3725eb===_0x21b355;};const _0x72f6d9=_0x4eb13d;return _0x72f6d9[_0x5d6caa(0x23d)](global_registry[_0x5d6caa(0x2ac)],!![]);}[a0_0x14a32a(0x28f)](){const _0x3912f3=a0_0x14a32a,_0x2bfd57={};_0x2bfd57['region']=global_registry[_0x3912f3(0x283)],_0x2bfd57[_0x3912f3(0x2c5)]=global_registry['cloudProviderAccessKey'],_0x2bfd57[_0x3912f3(0x2a2)]=global_registry[_0x3912f3(0x2b6)],awsSDK['config'][_0x3912f3(0x1d9)](_0x2bfd57),global_registry[_0x3912f3(0x2ac)]=!![];}async['fetchLocalCreds'](_0x183346){const _0x28b2ab=a0_0x14a32a;global_registry[_0x28b2ab(0x27d)]=_0x183346[this[_0x28b2ab(0x2b8)]][_0x28b2ab(0x1c2)],global_registry[_0x28b2ab(0x2b6)]=_0x183346[this['cloudProviderName']][_0x28b2ab(0x1c9)];}[a0_0x14a32a(0x2d5)](_0x2fd3fc){const _0x16f79f=a0_0x14a32a;return _0x2fd3fc[_0x16f79f(0x20c)][_0x16f79f(0x1f2)][_0x16f79f(0x29d)][_0x16f79f(0x2a7)][0x0]['hostname'];}async[a0_0x14a32a(0x267)](){const _0x25a0ca=a0_0x14a32a,_0x54493b={'CTUiY':function(_0x2eecfd,_0x404893){return _0x2eecfd(_0x404893);},'UHrcU':function(_0x58c783,_0x3f8692){return _0x58c783===_0x3f8692;},'tespV':_0x25a0ca(0x1cc),'EcnnE':function(_0x5c56c4,_0x23c07b){return _0x5c56c4!==_0x23c07b;},'GfSqv':'SCWKW','NLpiE':_0x25a0ca(0x286),'JnpIe':function(_0x35e82d,_0x3c72a8){return _0x35e82d===_0x3c72a8;},'lMXIh':'browserstack:managedBy','OKqUe':_0x25a0ca(0x1ef),'pEjiL':function(_0x247f79,_0x2087d6){return _0x247f79!==_0x2087d6;},'kOJrg':_0x25a0ca(0x2c6),'uuEFV':_0x25a0ca(0x236)};try{if(_0x54493b[_0x25a0ca(0x1e6)](_0x54493b[_0x25a0ca(0x22d)],_0x54493b[_0x25a0ca(0x22d)])){const _0x1f9b09=await this[_0x25a0ca(0x1fa)]();if(_0x1f9b09[_0x25a0ca(0x1e7)]){if(_0x54493b[_0x25a0ca(0x21d)](_0x54493b['GfSqv'],_0x54493b[_0x25a0ca(0x21e)])){const _0xb7abbe=_0x1f9b09['cluster'][_0x25a0ca(0x1e9)];return _0xb7abbe&&_0x54493b[_0x25a0ca(0x234)](_0xb7abbe[_0x54493b[_0x25a0ca(0x1d4)]][_0x25a0ca(0x2ab)](),_0x54493b[_0x25a0ca(0x253)]);}else _0x54493b[_0x25a0ca(0x225)](_0x50e714,!![]);}}else!this['isConfigured']()&&this['setConfig']();}catch(_0x21aef9){if(_0x54493b['pEjiL'](_0x54493b[_0x25a0ca(0x244)],_0x54493b[_0x25a0ca(0x288)]))return![];else _0x96067a[_0x25a0ca(0x285)](_0xb0a927['SubnetId']);}return![];}async[a0_0x14a32a(0x242)](){const _0x3c4c64=a0_0x14a32a;return this[_0x3c4c64(0x254)](),this[_0x3c4c64(0x237)]();}async[a0_0x14a32a(0x1fa)](){const _0x217e0d=a0_0x14a32a,_0x4f831e={};_0x4f831e[_0x217e0d(0x26e)]=_0x217e0d(0x2ba);const _0x56ca9d=_0x4f831e,_0x19f7f0={};_0x19f7f0[_0x217e0d(0x268)]=_0x56ca9d[_0x217e0d(0x26e)];const _0x1b7ac4=new awsSDK[(_0x217e0d(0x273))](_0x19f7f0),_0x39b59b={};return _0x39b59b[_0x217e0d(0x259)]=this['clusterName'],_0x1b7ac4['describeCluster'](_0x39b59b)[_0x217e0d(0x23a)]();}async[a0_0x14a32a(0x258)](_0x79f206){const _0x30674d=a0_0x14a32a,_0x499054={};_0x499054['mbHmd']=_0x30674d(0x2b2),_0x499054[_0x30674d(0x2d6)]=_0x30674d(0x26c),_0x499054[_0x30674d(0x293)]='utf-8',_0x499054[_0x30674d(0x226)]='<ARN>';const _0x5dcb69=_0x499054,_0x16c44a=await fs['readFileAsync'](path[_0x30674d(0x299)](__dirname,'..',_0x5dcb69[_0x30674d(0x2d4)],_0x5dcb69[_0x30674d(0x2d6)]),_0x5dcb69[_0x30674d(0x293)]),_0x14c1ca=yaml[_0x30674d(0x1c7)](_0x16c44a);return _0x14c1ca[_0x30674d(0x2a6)]['mapRoles']=_0x14c1ca[_0x30674d(0x2a6)][_0x30674d(0x1c4)][_0x30674d(0x1e8)](_0x5dcb69[_0x30674d(0x226)],_0x79f206),_0x14c1ca;}async[a0_0x14a32a(0x277)](_0x5be875){const _0x2605f6=a0_0x14a32a,_0x494eb2={};_0x494eb2['AtgRH']=_0x2605f6(0x2ba);const _0x18d73f=_0x494eb2,_0x5b2e5f={};_0x5b2e5f[_0x2605f6(0x268)]=_0x18d73f[_0x2605f6(0x23b)];const _0x39b005=new awsSDK[(_0x2605f6(0x273))](_0x5b2e5f),_0x20a5c4={};return _0x20a5c4['clusterName']=this['clusterName'],_0x20a5c4['nodegroupName']=_0x5be875,_0x39b005[_0x2605f6(0x264)](_0x20a5c4)[_0x2605f6(0x23a)]();}async[a0_0x14a32a(0x237)](){const _0x2c3bf6=a0_0x14a32a,_0x588a49={'vSHNj':function(_0x6e5ca,_0x777998){return _0x6e5ca(_0x777998);},'vUBFf':_0x2c3bf6(0x22f),'qWXuN':function(_0x4cc58e,_0x22fba4){return _0x4cc58e===_0x22fba4;},'EycIF':_0x2c3bf6(0x256),'kKPVK':_0x2c3bf6(0x2c4),'fNeyp':_0x2c3bf6(0x1d7),'MwVib':function(_0x75f18c,_0x136f1f){return _0x75f18c(_0x136f1f);},'WmqUZ':function(_0x202c55,_0x2a9605){return _0x202c55(_0x2a9605);},'OIvoQ':_0x2c3bf6(0x297),'KOBSE':'cStrB','rTRyS':function(_0x4a04ea,_0x31f57f){return _0x4a04ea===_0x31f57f;},'PpETA':'IhnPJ','kSjdE':'LeKKF','aoplt':_0x2c3bf6(0x2ba)};return new Promise((_0x58ca0b,_0x4861c9)=>{const _0x225c8f=_0x2c3bf6,_0x402fb0={'vhSAT':function(_0x1fba06,_0x262026){return _0x588a49['WmqUZ'](_0x1fba06,_0x262026);},'PzAUr':function(_0x48e9fa,_0x2700ec){const _0x5aba84=a0_0x2b01;return _0x588a49[_0x5aba84(0x245)](_0x48e9fa,_0x2700ec);},'UPSHg':function(_0x166008,_0x110d2f){const _0x3c6e53=a0_0x2b01;return _0x588a49[_0x3c6e53(0x27c)](_0x166008,_0x110d2f);},'FNZow':_0x588a49[_0x225c8f(0x27e)],'vETcv':_0x588a49[_0x225c8f(0x1b9)]};if(_0x588a49[_0x225c8f(0x263)](_0x588a49[_0x225c8f(0x2db)],_0x588a49['kSjdE'])){const _0x5a13ad={'StmrI':function(_0x6dddf5,_0x763fdf){const _0x5a33a0=_0x225c8f;return _0x588a49[_0x5a33a0(0x1ad)](_0x6dddf5,_0x763fdf);}},_0x1c0f99={};_0x1c0f99['apiVersion']=_0x588a49[_0x225c8f(0x274)],_0x1c0f99[_0x225c8f(0x29f)]=_0x15ab0e[_0x225c8f(0x283)];const _0x2db8fb=new _0x506ea9['EC2'](_0x1c0f99);_0x2db8fb[_0x225c8f(0x206)](_0x3c4883)[_0x225c8f(0x23a)]()[_0x225c8f(0x24a)](_0x3d38c2=>{const _0x39083e=_0x225c8f;_0x5a13ad[_0x39083e(0x1d6)](_0x3ce1ae,!![]);})[_0x225c8f(0x27f)](_0x7143a8=>{const _0x32fab5=_0x225c8f;_0x229a01[_0x32fab5(0x1fe)]('Cannot\x20find\x20VPC\x20'+_0x34f483+_0x32fab5(0x216)+_0x396883[_0x32fab5(0x283)]+_0x32fab5(0x1ee)),_0x5a13ad['StmrI'](_0x2d701d,![]);});}else{const _0x1e9de5={};_0x1e9de5[_0x225c8f(0x268)]=_0x588a49[_0x225c8f(0x1c5)];const _0xa7a2c8=new awsSDK[(_0x225c8f(0x273))](_0x1e9de5);_0xa7a2c8[_0x225c8f(0x26f)]()[_0x225c8f(0x23a)]()[_0x225c8f(0x24a)](_0x18c6a3=>{const _0x191e19=_0x225c8f;_0x588a49['qWXuN'](_0x588a49[_0x191e19(0x2bf)],_0x588a49[_0x191e19(0x2bf)])?(_0x18c6a3['clusters']['includes'](this[_0x191e19(0x207)])&&(_0x588a49[_0x191e19(0x27c)](_0x588a49[_0x191e19(0x284)],_0x588a49[_0x191e19(0x265)])?(_0x3efb15[_0x191e19(0x1fe)](_0x191e19(0x202)+_0xe7588c+_0x191e19(0x216)+_0x30c00c['clusterRegion']+_0x191e19(0x1ee)),_0x402fb0[_0x191e19(0x240)](_0x91ff81,![])):_0x588a49[_0x191e19(0x2a5)](_0x58ca0b,!![])),_0x588a49[_0x191e19(0x2a5)](_0x58ca0b,![])):(_0x47295a['error'](_0x14c819),_0x402fb0[_0x191e19(0x298)](_0x457cff,_0x1d1dcc));})['catch'](_0x2f9d2f=>{const _0x5c129d=_0x225c8f;_0x402fb0['UPSHg'](_0x402fb0[_0x5c129d(0x20a)],_0x402fb0['vETcv'])?this['setConfig']():(logger[_0x5c129d(0x1fe)](_0x2f9d2f),_0x402fb0[_0x5c129d(0x240)](_0x4861c9,_0x2f9d2f));});}});}async[a0_0x14a32a(0x23c)](_0x1b47d8,_0x427945){const _0x5598b7=a0_0x14a32a,_0x50b044={'apONh':function(_0x5ce11f,_0x4e6668){return _0x5ce11f(_0x4e6668);}},_0x248ccf=this[_0x5598b7(0x2b8)]['toUpperCase'](),_0x4cc008=await _0x50b044[_0x5598b7(0x1ea)](_0x1b47d8,_0x248ccf+_0x5598b7(0x21c)),_0x2928d9=await _0x50b044['apONh'](_0x1b47d8,_0x248ccf+_0x5598b7(0x1aa));global_registry[_0x5598b7(0x27d)]=_0x4cc008,global_registry[_0x5598b7(0x2b6)]=_0x2928d9;const _0x599206={};return _0x599206[_0x5598b7(0x1c2)]=_0x4cc008,_0x599206[_0x5598b7(0x1c9)]=_0x2928d9,_0x427945['cloudProvider'][AWS]=_0x599206,_0x427945;}async[a0_0x14a32a(0x1fd)](){const _0x68519d=a0_0x14a32a,_0x21610e={'xjsNR':function(_0x1e14ab){return _0x1e14ab();},'BjBTC':_0x68519d(0x217),'kFLiL':_0x68519d(0x2b2),'efxsl':_0x68519d(0x28e)},_0x1b140f=_0x21610e[_0x68519d(0x2b7)](getDirForConfig),_0x21eb66=await this['getClusterInfo'](),_0x154566=path['join'](_0x1b140f,_0x21610e[_0x68519d(0x2a0)]),_0xa9c552=_0x68519d(0x22c)+global_registry[_0x68519d(0x27d)]+_0x68519d(0x29c)+global_registry[_0x68519d(0x2b6)];fs[_0x68519d(0x21f)](_0x154566,_0xa9c552);let _0x3006e6=await fs[_0x68519d(0x219)](path[_0x68519d(0x299)](__dirname,'..',_0x21610e[_0x68519d(0x2b5)],_0x21610e[_0x68519d(0x22a)]));return _0x3006e6=_0x3006e6['toString'](),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<CLUSTER_NAME>/g,this[_0x68519d(0x207)]),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<CLUSTER_URL>/g,_0x21eb66[_0x68519d(0x1e7)][_0x68519d(0x1e5)]),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<CERTIFICATE_DATA>/g,_0x21eb66['cluster'][_0x68519d(0x1d3)][_0x68519d(0x2a6)]),_0x3006e6=_0x3006e6['replace'](/<CLUSTER_REGION>/g,global_registry[_0x68519d(0x283)]),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x68519d(0x27d)]),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x68519d(0x2b6)]),_0x3006e6=_0x3006e6[_0x68519d(0x1e8)](/<AWS_CONFIG_FILE_PATH>/g,_0x154566),_0x3006e6;}async['setupNewCluster'](_0x1bd6eb=null,_0x37c7e6=null){const _0x27538c=a0_0x14a32a,_0x56c0d4={'OAUHT':function(_0x504f40,_0x566f61){return _0x504f40(_0x566f61);},'kbYbh':_0x27538c(0x25c),'HTQeU':_0x27538c(0x2da),'JvjCZ':function(_0x4b7ed6,_0xd4315a,_0x3bb137,_0x5a453d,_0x25d886,_0x375c89){return _0x4b7ed6(_0xd4315a,_0x3bb137,_0x5a453d,_0x25d886,_0x375c89);},'rTtgx':_0x27538c(0x247),'yPrgM':function(_0x339d32,_0x2b9df2){return _0x339d32===_0x2b9df2;},'LnBWB':function(_0x22eb5b,_0x158f4f){return _0x22eb5b===_0x158f4f;},'hcVuw':function(_0x138b02,_0x4e8848){return _0x138b02!==_0x4e8848;},'TxBYu':_0x27538c(0x1bc),'uAQlP':_0x27538c(0x1f4)};_0x56c0d4[_0x27538c(0x24e)](sendAWSInfoToHST,this[_0x27538c(0x251)]);const _0xa2b838={};_0xa2b838[_0x27538c(0x1bd)]=WS_EVENTS['LOG'],_0xa2b838[_0x27538c(0x2b4)]=_0x56c0d4['kbYbh'],this[_0x27538c(0x211)][_0x27538c(0x26a)](this['rws'],_0xa2b838),logger[_0x27538c(0x223)](_0x56c0d4[_0x27538c(0x21a)]);const _0x545cf1=global_registry[_0x27538c(0x1b4)],_0x18ef83=global_registry[_0x27538c(0x239)],_0x2f6563=await _0x56c0d4[_0x27538c(0x1b1)](createClusterStack,this[_0x27538c(0x207)],_0x545cf1,_0x18ef83,_0x1bd6eb,_0x37c7e6),_0x1be2ed=_0x2f6563['Stacks'][0x0][_0x27538c(0x20f)][0x0]['OutputValue'][_0x27538c(0x29a)](','),_0x56d450=_0x2f6563[_0x27538c(0x25a)][0x0][_0x27538c(0x20f)][0x1]['OutputValue'],_0x8cceaa=_0x2f6563[_0x27538c(0x25a)][0x0][_0x27538c(0x20f)][0x3][_0x27538c(0x2ce)],_0x1f2a55=_0x2f6563[_0x27538c(0x25a)][0x0]['Outputs'][0x4][_0x27538c(0x2ce)];logger[_0x27538c(0x223)](_0x56c0d4[_0x27538c(0x1df)]),logger[_0x27538c(0x223)](_0x27538c(0x235)+_0x8cceaa+'\x20'),logger['info'](_0x27538c(0x212)+_0x56d450+'\x20'),logger['info'](_0x27538c(0x280)+_0x1be2ed+'\x20'),logger['info'](_0x27538c(0x1e1)+_0x1f2a55+'\x20');let _0x35cdb6=_0x27538c(0x213)+_0x8cceaa+_0x27538c(0x20d)+_0x56d450+_0x27538c(0x29e)+_0x1be2ed+_0x27538c(0x2af)+_0x1f2a55+'\x20';if(_0x56c0d4[_0x27538c(0x2d0)](_0x1bd6eb,null)&&_0x56c0d4['LnBWB'](_0x37c7e6,null)){if(_0x56c0d4[_0x27538c(0x1b8)](_0x56c0d4['TxBYu'],_0x56c0d4['uAQlP'])){const _0x4e9f46=_0x2f6563[_0x27538c(0x25a)][0x0][_0x27538c(0x20f)][0x2][_0x27538c(0x2ce)],_0x5ad8a5=_0x2f6563['Stacks'][0x0][_0x27538c(0x20f)][0x5][_0x27538c(0x2ce)][_0x27538c(0x29a)](',');logger['info']('VPC\x20=>\x20'+_0x4e9f46+'\x20'),logger[_0x27538c(0x223)](_0x27538c(0x2dd)+_0x5ad8a5+'\x20'),_0x35cdb6+=_0x27538c(0x28d)+_0x4e9f46+_0x27538c(0x271)+_0x5ad8a5+',\x20';}else _0x3fd175[_0x27538c(0x209)][_0x27538c(0x208)](this[_0x27538c(0x207)])&&_0x56c0d4[_0x27538c(0x24e)](_0x3ec0c1,!![]),_0x56c0d4[_0x27538c(0x24e)](_0x3661af,![]);}const _0x4c8fec={};_0x4c8fec[_0x27538c(0x1bd)]=WS_EVENTS[_0x27538c(0x1e0)],_0x4c8fec['message']=_0x35cdb6,this[_0x27538c(0x211)][_0x27538c(0x26a)](this['rws'],_0x4c8fec);}async[a0_0x14a32a(0x1d1)](_0x5eba7f,_0x431c8b){const _0x2aef2d=a0_0x14a32a,_0x3b2f64={'xivsU':function(_0x4e8fc4,_0x57cdbf){return _0x4e8fc4(_0x57cdbf);}};await _0x3b2f64[_0x2aef2d(0x2ad)](deleteRoutingDeps,_0x5eba7f),await _0x3b2f64[_0x2aef2d(0x2ad)](deleteClusterAndDependencies,_0x431c8b);}async[a0_0x14a32a(0x1cd)](_0x493239,_0x3a3791){const _0x13b7db=a0_0x14a32a,_0x4a3baa={'EcePK':function(_0x1749db,_0x55a3b6){return _0x1749db(_0x55a3b6);},'DTKQU':_0x13b7db(0x281),'LAKpO':function(_0x17fad9,_0x2a10dd){return _0x17fad9===_0x2a10dd;},'iadsG':_0x13b7db(0x2ae),'yDKxs':'browserstack','xPBHV':function(_0x8d8f14,_0x21c7a2){return _0x8d8f14!==_0x21c7a2;},'taamt':_0x13b7db(0x24c),'cFUZp':'Creating\x20Autoscaler\x20Role','RFBdZ':function(_0x4295c6,_0x42a1da){return _0x4295c6===_0x42a1da;},'UMHaf':'MLCsg','GaXFQ':_0x13b7db(0x2be),'dONum':function(_0x1af253,_0x27e92f){return _0x1af253(_0x27e92f);},'wNvwF':_0x13b7db(0x23f),'auDDQ':'Axkxu','nEfSI':function(_0x154bab,_0x4ccaae){return _0x154bab!==_0x4ccaae;},'dmujy':function(_0x47ce12,_0x117871){return _0x47ce12!==_0x117871;},'iTOYc':_0x13b7db(0x1c3),'oISaN':function(_0x2605d0,_0x1061b4,_0x5da9b6,_0x58524d,_0xc29e58,_0x4f943f,_0x5a8b96,_0x21e6db){return _0x2605d0(_0x1061b4,_0x5da9b6,_0x58524d,_0xc29e58,_0x4f943f,_0x5a8b96,_0x21e6db);},'SLaMo':_0x13b7db(0x272),'jHtlr':_0x13b7db(0x229),'afWtT':_0x13b7db(0x292),'YPhIn':_0x13b7db(0x214),'xSdeg':_0x13b7db(0x1ed),'EfNEG':_0x13b7db(0x22e),'LICrp':function(_0x24b5cc,_0x5c4d54,_0x3480bd,_0x1a385e,_0x1312cc,_0x3f3206,_0x29346b,_0x589ca6){return _0x24b5cc(_0x5c4d54,_0x3480bd,_0x1a385e,_0x1312cc,_0x3f3206,_0x29346b,_0x589ca6);},'fHFGu':_0x13b7db(0x224),'xfHQS':'error','sTsZa':_0x13b7db(0x282)};let _0x3c4391,_0x4971af;const _0x25d643={};_0x25d643[_0x13b7db(0x1bd)]=WS_EVENTS[_0x13b7db(0x1e0)],_0x25d643[_0x13b7db(0x2b4)]=_0x4a3baa[_0x13b7db(0x1c8)],this[_0x13b7db(0x211)][_0x13b7db(0x26a)](this[_0x13b7db(0x251)],_0x25d643),logger['info'](_0x4a3baa[_0x13b7db(0x1c8)]);try{if(_0x4a3baa[_0x13b7db(0x227)](_0x4a3baa[_0x13b7db(0x290)],_0x4a3baa[_0x13b7db(0x2d7)]))_0x2037e8[_0x13b7db(0x1fe)](_0x13b7db(0x220)+_0x4ea920+_0x13b7db(0x216)+_0x1db0d8['clusterRegion']+_0x13b7db(0x2cb)+_0x23ddd7),_0x4a3baa[_0x13b7db(0x257)](_0x461495,[![],[]]);else{const _0x20782a=await _0x4a3baa[_0x13b7db(0x1f1)](createAutoscalerStack,this[_0x13b7db(0x207)]);_0x4971af=_0x20782a['Stacks'][0x0][_0x13b7db(0x20f)][0x2][_0x13b7db(0x2ce)];const _0x591075={};_0x591075[_0x13b7db(0x1bd)]=WS_EVENTS[_0x13b7db(0x1e0)],_0x591075[_0x13b7db(0x2b4)]='Autoscaler\x20Role\x20created.ARN:\x20'+_0x4971af+'\x20',this[_0x13b7db(0x211)][_0x13b7db(0x26a)](this[_0x13b7db(0x251)],_0x591075),logger[_0x13b7db(0x223)](_0x13b7db(0x1de)+_0x4971af+'\x20');}}catch(_0x340e3a){if(_0x4a3baa[_0x13b7db(0x25d)](_0x4a3baa[_0x13b7db(0x278)],_0x4a3baa[_0x13b7db(0x28a)])){const _0x4a772f=_0x53ba08[_0x13b7db(0x25a)][0x0][_0x13b7db(0x20f)][0x2][_0x13b7db(0x2ce)],_0x5d5e3d=_0x5b628[_0x13b7db(0x25a)][0x0][_0x13b7db(0x20f)][0x5][_0x13b7db(0x2ce)]['split'](',');_0x153241[_0x13b7db(0x223)](_0x13b7db(0x1af)+_0x4a772f+'\x20'),_0x5997b7[_0x13b7db(0x223)](_0x13b7db(0x2dd)+_0x5d5e3d+'\x20'),_0x27ed88+=_0x13b7db(0x28d)+_0x4a772f+_0x13b7db(0x271)+_0x5d5e3d+',\x20';}else{if(_0x4a3baa['nEfSI'](_0x340e3a['message'][_0x13b7db(0x2bb)](/already exists/),null)||_0x4a3baa['xPBHV'](_0x340e3a[_0x13b7db(0x2b4)][_0x13b7db(0x2bb)](/already exists/),undefined))_0x4a3baa['dmujy'](_0x4a3baa[_0x13b7db(0x243)],_0x4a3baa['iTOYc'])?_0x481155[_0x13b7db(0x223)](_0x4a3baa['DTKQU']):(_0x3c4391=_0x13b7db(0x1c6)+_0x340e3a[_0x13b7db(0x2b4)],await _0x4a3baa[_0x13b7db(0x2d8)](reportToGalactusAndSendToEDS,_0x3a3791,this[_0x13b7db(0x251)],_0x3c4391,messageTypes[_0x13b7db(0x295)],_0x4a3baa[_0x13b7db(0x210)],_0x4a3baa[_0x13b7db(0x269)],_0x4a3baa[_0x13b7db(0x1f5)]),logger[_0x13b7db(0x25b)](_0x3c4391));else{if(_0x4a3baa[_0x13b7db(0x25d)](_0x4a3baa[_0x13b7db(0x1ae)],_0x4a3baa[_0x13b7db(0x2c1)]))return _0x431a4c[_0x13b7db(0x208)](_0xfc0a)?!![]:(_0x851e94[_0x13b7db(0x285)](_0x2fd582),![]);else{const _0xb0a53d=_0x4a3baa[_0x13b7db(0x1dc)]['split']('|');let _0x24fe0a=0x0;while(!![]){switch(_0xb0a53d[_0x24fe0a++]){case'0':await _0x4a3baa[_0x13b7db(0x1f1)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'1':process[_0x13b7db(0x2c0)](0x1);continue;case'2':logger[_0x13b7db(0x1fe)](_0x3c4391);continue;case'3':await _0x4a3baa[_0x13b7db(0x2d1)](reportToGalactusAndSendToEDS,_0x3a3791,this['rws'],_0x3c4391,messageTypes[_0x13b7db(0x1ab)],_0x4a3baa[_0x13b7db(0x210)],_0x4a3baa[_0x13b7db(0x2b3)],_0x4a3baa[_0x13b7db(0x1dd)]);continue;case'4':_0x3c4391=_0x13b7db(0x204)+_0x340e3a['message']+'.\x20Deleting\x20all\x20the\x20stacks';continue;}break;}}}}}let _0x30112b=await this[_0x13b7db(0x277)](this[_0x13b7db(0x207)]+_0x13b7db(0x1fc));const _0x4b899c=_0x30112b['nodegroup'][_0x13b7db(0x2c2)],_0x1cc2a6=await this['createAuthConfigMap'](_0x4b899c);return await _0x493239[_0x13b7db(0x279)](_0x4a3baa[_0x13b7db(0x241)],_0x1cc2a6)['catch'](_0x5b0810=>{const _0x30673b=_0x13b7db,_0x3d55b1={'sxKII':function(_0x4f39c1,_0x4a5dcb){const _0x4d7f0c=a0_0x2b01;return _0x4a3baa[_0x4d7f0c(0x25d)](_0x4f39c1,_0x4a5dcb);},'xInsh':_0x4a3baa[_0x30673b(0x260)],'EMALN':_0x4a3baa[_0x30673b(0x1bf)]};if(_0x4a3baa[_0x30673b(0x2bd)](_0x4a3baa[_0x30673b(0x255)],_0x4a3baa[_0x30673b(0x255)])){const _0x1be116=_0x566995[_0x30673b(0x1e7)][_0x30673b(0x1e9)];return _0x1be116&&_0x3d55b1[_0x30673b(0x27a)](_0x1be116[_0x3d55b1['xInsh']][_0x30673b(0x2ab)](),_0x3d55b1[_0x30673b(0x1f3)]);}else logger[_0x30673b(0x223)](_0x4a3baa['DTKQU']);}),_0x4971af;}[a0_0x14a32a(0x231)](_0x4b89b2){const _0x15598d=a0_0x14a32a,_0x1565ae={'CBvWk':function(_0x5804a0,_0x19f08d){return _0x5804a0===_0x19f08d;},'PsGmt':_0x15598d(0x1b7),'TWhfW':function(_0x5a0a61,_0x337258){return _0x5a0a61(_0x337258);},'HOTxj':function(_0x2a78f7,_0x1304c7){return _0x2a78f7!==_0x1304c7;},'jfIeV':_0x15598d(0x246),'BADWU':_0x15598d(0x249),'HALrh':function(_0xc87a28,_0x38adf4){return _0xc87a28(_0x38adf4);},'zJudz':function(_0x55f3fd,_0x3c1fcb){return _0x55f3fd!==_0x3c1fcb;},'Objex':'cWkko','FoScf':_0x15598d(0x22f)},_0x43d1e2={};_0x43d1e2[_0x15598d(0x20b)]=[_0x4b89b2];let _0x18a5e6=_0x43d1e2;return new Promise((_0x14b05a,_0x1e30c0)=>{const _0x5c90c0=_0x15598d,_0x597c6a={'OoyTf':function(_0x162942,_0x4fa8aa){const _0x4144ac=a0_0x2b01;return _0x1565ae[_0x4144ac(0x205)](_0x162942,_0x4fa8aa);},'HMVzV':_0x1565ae[_0x5c90c0(0x252)],'glayR':_0x1565ae['BADWU'],'ihwsL':function(_0x3e15d4,_0x565e69){const _0x2be231=_0x5c90c0;return _0x1565ae[_0x2be231(0x1bb)](_0x3e15d4,_0x565e69);}};if(_0x1565ae['zJudz'](_0x1565ae[_0x5c90c0(0x2a8)],_0x1565ae[_0x5c90c0(0x2a8)]))_0x4eacaa[_0x5c90c0(0x27d)]=_0x4d97c7[this[_0x5c90c0(0x2b8)]][_0x5c90c0(0x1c2)],_0x176b1e[_0x5c90c0(0x2b6)]=_0x476feb[this[_0x5c90c0(0x2b8)]][_0x5c90c0(0x1c9)];else{const _0x1f9677={};_0x1f9677['apiVersion']=_0x1565ae[_0x5c90c0(0x1f7)],_0x1f9677[_0x5c90c0(0x29f)]=global_registry[_0x5c90c0(0x283)];const _0x5782db=new awsSDK[(_0x5c90c0(0x218))](_0x1f9677);_0x5782db[_0x5c90c0(0x206)](_0x18a5e6)[_0x5c90c0(0x23a)]()['then'](_0xd6de33=>{const _0x533f63=_0x5c90c0;if(_0x1565ae['CBvWk'](_0x1565ae[_0x533f63(0x221)],_0x1565ae['PsGmt']))_0x1565ae[_0x533f63(0x1b2)](_0x14b05a,!![]);else return![];})[_0x5c90c0(0x27f)](_0x4e131c=>{const _0x33446c=_0x5c90c0;if(_0x597c6a[_0x33446c(0x2d9)](_0x597c6a[_0x33446c(0x1ce)],_0x597c6a[_0x33446c(0x215)]))logger[_0x33446c(0x1fe)]('Cannot\x20find\x20VPC\x20'+_0x4b89b2+_0x33446c(0x216)+global_registry[_0x33446c(0x283)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x597c6a[_0x33446c(0x1eb)](_0x14b05a,![]);else{const _0x1a00f1={};_0x1a00f1['region']=_0x589cd3[_0x33446c(0x283)],_0x1a00f1[_0x33446c(0x2c5)]=_0x3566f6[_0x33446c(0x27d)],_0x1a00f1['secretAccessKey']=_0x4ed3d3['cloudProviderSecretKey'],_0x563484[_0x33446c(0x250)][_0x33446c(0x1d9)](_0x1a00f1),_0x15575a['awsConfigSet']=!![];}});}});}[a0_0x14a32a(0x24f)](_0x1af628,_0x5a8c87){const _0x1b0b80=a0_0x14a32a,_0x378f88={'ZQCTf':function(_0x214792,_0x5838ea){return _0x214792(_0x5838ea);},'wfQxs':function(_0x7818ee,_0x2e5e9a){return _0x7818ee!==_0x2e5e9a;},'DSpHE':_0x1b0b80(0x233),'mwGCI':_0x1b0b80(0x23e),'aejQu':_0x1b0b80(0x238),'arACZ':function(_0x2c750e,_0x24c0ca){return _0x2c750e===_0x24c0ca;},'VRqXC':_0x1b0b80(0x1f0),'qjIup':_0x1b0b80(0x2c9),'iLRoI':_0x1b0b80(0x2ba),'QoTLX':_0x1b0b80(0x22f),'YjffL':function(_0x541826,_0x32e946){return _0x541826!==_0x32e946;},'iGauf':_0x1b0b80(0x1e3),'JgzIw':_0x1b0b80(0x2cc),'hAHUJ':function(_0x51fa64,_0x85d57){return _0x51fa64===_0x85d57;},'xaCJA':'JordA','aoAAP':'NgoCj','eCrJI':function(_0x30df0b,_0x54a54b){return _0x30df0b===_0x54a54b;},'HrwXp':_0x1b0b80(0x2c3),'nwJZA':'vpc-id'},_0x3fa4b9={};_0x3fa4b9[_0x1b0b80(0x2cd)]=_0x378f88[_0x1b0b80(0x28b)],_0x3fa4b9[_0x1b0b80(0x2dc)]=[_0x5a8c87];const _0x2d226a={};_0x2d226a[_0x1b0b80(0x1ac)]=[_0x3fa4b9];let _0x543ff2=_0x2d226a;return new Promise((_0x466735,_0xb7b6a9)=>{const _0x1272d8=_0x1b0b80,_0x44f121={'ghoDg':function(_0x7af434,_0x14d0ba){const _0x8fe334=a0_0x2b01;return _0x378f88[_0x8fe334(0x276)](_0x7af434,_0x14d0ba);},'gReIc':function(_0x564b37,_0x58bd19){const _0x893a99=a0_0x2b01;return _0x378f88[_0x893a99(0x27b)](_0x564b37,_0x58bd19);},'lzKTW':_0x378f88[_0x1272d8(0x2aa)],'KeuDL':_0x378f88[_0x1272d8(0x203)],'uEydm':_0x378f88[_0x1272d8(0x230)],'GfJbh':function(_0x2b582c,_0x58f27f){return _0x378f88['arACZ'](_0x2b582c,_0x58f27f);},'acFMc':_0x378f88[_0x1272d8(0x1c0)],'LlEAy':_0x378f88[_0x1272d8(0x2b0)],'IXGWl':function(_0x181f05,_0x479341){const _0x426825=_0x1272d8;return _0x378f88[_0x426825(0x276)](_0x181f05,_0x479341);},'UxDWQ':_0x378f88[_0x1272d8(0x2b1)],'DgWtC':_0x378f88[_0x1272d8(0x24b)],'ZVJoG':function(_0x562a13,_0x47098f){return _0x378f88['YjffL'](_0x562a13,_0x47098f);},'EcOeW':_0x378f88[_0x1272d8(0x1f6)],'fRVsP':_0x378f88[_0x1272d8(0x2c7)],'imVtW':function(_0x2b42cf,_0x5a1a06){const _0x1d771b=_0x1272d8;return _0x378f88[_0x1d771b(0x276)](_0x2b42cf,_0x5a1a06);},'ILzXl':function(_0x2fd76f,_0x16986c){const _0x2197e6=_0x1272d8;return _0x378f88[_0x2197e6(0x26d)](_0x2fd76f,_0x16986c);},'DHeVH':_0x378f88[_0x1272d8(0x266)],'uvOTJ':_0x378f88[_0x1272d8(0x28c)]};if(_0x378f88[_0x1272d8(0x1d0)](_0x378f88[_0x1272d8(0x1b6)],_0x378f88[_0x1272d8(0x1b6)])){const _0x2c0578={};_0x2c0578[_0x1272d8(0x268)]=_0x378f88['QoTLX'],_0x2c0578[_0x1272d8(0x29f)]=global_registry[_0x1272d8(0x283)];const _0x1f94ce=new awsSDK['EC2'](_0x2c0578);_0x1f94ce[_0x1272d8(0x1fb)](_0x543ff2)[_0x1272d8(0x23a)]()[_0x1272d8(0x24a)](_0x163964=>{const _0xd60ad5=_0x1272d8,_0x3e15cd={'uyCxs':function(_0x128592,_0x4553d2){const _0x4e3bdc=a0_0x2b01;return _0x44f121[_0x4e3bdc(0x1ec)](_0x128592,_0x4553d2);},'XFZds':_0x44f121['LlEAy'],'OWMfT':function(_0x27c00d,_0x1f2772){return _0x44f121['IXGWl'](_0x27c00d,_0x1f2772);},'MJSre':_0x44f121[_0xd60ad5(0x1ca)],'HCpmd':_0x44f121['DgWtC']};if(_0x44f121['ZVJoG'](_0x44f121[_0xd60ad5(0x200)],_0x44f121[_0xd60ad5(0x232)])){const _0x21c3f7=[],_0x4c91c6=[];_0x163964['Subnets']['forEach'](_0x100a26=>{const _0x15a8aa=_0xd60ad5;if(_0x3e15cd[_0x15a8aa(0x201)](_0x3e15cd[_0x15a8aa(0x289)],_0x3e15cd[_0x15a8aa(0x289)]))return!![];else _0x21c3f7[_0x15a8aa(0x285)](_0x100a26[_0x15a8aa(0x1e4)]);});const _0x359896=_0x1af628[_0xd60ad5(0x1ff)](_0x228e46=>{const _0x2ccaf5=_0xd60ad5,_0x25ccd3={'qCcZA':function(_0x552907,_0x3ad2fb){const _0x7a7e45=a0_0x2b01;return _0x44f121[_0x7a7e45(0x248)](_0x552907,_0x3ad2fb);},'WdsxI':function(_0x31b164,_0x2413f0){return _0x44f121['ghoDg'](_0x31b164,_0x2413f0);}};if(_0x44f121['gReIc'](_0x44f121[_0x2ccaf5(0x2d3)],_0x44f121[_0x2ccaf5(0x21b)])){if(_0x21c3f7[_0x2ccaf5(0x208)](_0x228e46)){if(_0x44f121['gReIc'](_0x44f121[_0x2ccaf5(0x1cb)],_0x44f121[_0x2ccaf5(0x1cb)])){const _0x1687d1={'bYqxN':function(_0x38627d,_0x241cb2){const _0x511850=_0x2ccaf5;return _0x3e15cd[_0x511850(0x2d2)](_0x38627d,_0x241cb2);}},_0x1def2f={};_0x1def2f['apiVersion']=_0x3e15cd['MJSre'];const _0x55a5bc=new _0x485069[(_0x2ccaf5(0x273))](_0x1def2f);_0x55a5bc[_0x2ccaf5(0x26f)]()[_0x2ccaf5(0x23a)]()['then'](_0x5e51a3=>{const _0x48db5e=_0x2ccaf5;_0x5e51a3[_0x48db5e(0x209)][_0x48db5e(0x208)](this[_0x48db5e(0x207)])&&_0x25ccd3[_0x48db5e(0x1be)](_0x6e04c0,!![]),_0x25ccd3[_0x48db5e(0x2c8)](_0x493ad7,![]);})[_0x2ccaf5(0x27f)](_0x175d0f=>{const _0x4e23c5=_0x2ccaf5;_0x28d733[_0x4e23c5(0x1fe)](_0x175d0f),_0x1687d1[_0x4e23c5(0x29b)](_0x322049,_0x175d0f);});}else return!![];}else{if(_0x44f121[_0x2ccaf5(0x261)](_0x44f121[_0x2ccaf5(0x2b9)],_0x44f121['acFMc']))return _0x4c91c6[_0x2ccaf5(0x285)](_0x228e46),![];else{const _0x29b084={'IGXoO':function(_0x31a50a,_0x246510){const _0x4bfeb6=_0x2ccaf5;return _0x3e15cd[_0x4bfeb6(0x2d2)](_0x31a50a,_0x246510);},'BqPCE':function(_0xc00305,_0x2b6b26){const _0x5dac55=_0x2ccaf5;return _0x3e15cd[_0x5dac55(0x2d2)](_0xc00305,_0x2b6b26);},'NUNGm':_0x3e15cd['HCpmd']},_0xee3a3a={};_0xee3a3a['VpcIds']=[_0x294fe4];let _0x2326da=_0xee3a3a;return new _0x3ba8bf((_0x244940,_0x2a9ac5)=>{const _0x220309=_0x2ccaf5,_0x1d95b7={'ENNfF':function(_0x456ca4,_0x5a6fe2){return _0x29b084['IGXoO'](_0x456ca4,_0x5a6fe2);},'KHcmn':function(_0x441ad7,_0x20e6ea){const _0x4fce7b=a0_0x2b01;return _0x29b084[_0x4fce7b(0x1b5)](_0x441ad7,_0x20e6ea);}},_0x218313={};_0x218313['apiVersion']=_0x29b084[_0x220309(0x1cf)],_0x218313[_0x220309(0x29f)]=_0x5a07bc[_0x220309(0x283)];const _0x11532e=new _0x18b23c['EC2'](_0x218313);_0x11532e[_0x220309(0x206)](_0x2326da)[_0x220309(0x23a)]()[_0x220309(0x24a)](_0x2bc8a3=>{const _0x525275=_0x220309;_0x1d95b7[_0x525275(0x1db)](_0x244940,!![]);})[_0x220309(0x27f)](_0x4562de=>{const _0x39229e=_0x220309;_0x11dabb['error']('Cannot\x20find\x20VPC\x20'+_0x108a04+_0x39229e(0x216)+_0x4322e2[_0x39229e(0x283)]+_0x39229e(0x1ee)),_0x1d95b7[_0x39229e(0x1ba)](_0x244940,![]);});});}}}else return _0x307470[_0x2ccaf5(0x20c)]['status'][_0x2ccaf5(0x29d)][_0x2ccaf5(0x2a7)][0x0][_0x2ccaf5(0x1da)];});_0x44f121[_0xd60ad5(0x2a1)](_0x466735,[_0x359896,_0x4c91c6]);}else return _0x129c86[_0xd60ad5(0x285)](_0x2b944d),![];})[_0x1272d8(0x27f)](_0x2a17d1=>{const _0x24180c=_0x1272d8;if(_0x44f121[_0x24180c(0x291)](_0x44f121[_0x24180c(0x1f8)],_0x44f121['uvOTJ'])){const _0x3c8a28={};_0x3c8a28[_0x24180c(0x268)]=_0x44f121[_0x24180c(0x1ca)];const _0x1c2a9b=new _0x1f295a[(_0x24180c(0x273))](_0x3c8a28),_0xd321b2={};return _0xd321b2[_0x24180c(0x259)]=this[_0x24180c(0x207)],_0x1c2a9b[_0x24180c(0x228)](_0xd321b2)['promise']();}else logger[_0x24180c(0x1fe)]('Cannot\x20find\x20subnets\x20'+_0x1af628+_0x24180c(0x216)+global_registry[_0x24180c(0x283)]+_0x24180c(0x2cb)+_0x2a17d1),_0x44f121['IXGWl'](_0x466735,[![],[]]);});}else{const _0x4b6064={};_0x4b6064[_0x1272d8(0x268)]=_0x44f121['UxDWQ'];const _0x31e182=new _0x5305e3[(_0x1272d8(0x273))](_0x4b6064),_0x3a28f4={};return _0x3a28f4[_0x1272d8(0x207)]=this[_0x1272d8(0x207)],_0x3a28f4[_0x1272d8(0x262)]=_0x1932ab,_0x31e182[_0x1272d8(0x264)](_0x3a28f4)[_0x1272d8(0x23a)]();}});}}function a0_0x2fb7(){const _0x1b5971=['../utils/deleteStack','StmrI','sqIyI','../config/logger','update','hostname','ENNfF','EfNEG','xfHQS','Autoscaler\x20Role\x20created.ARN:\x20','rTtgx','LOG','NodeRole\x20=>\x20','pdiQG','xvuRJ','SubnetId','endpoint','UHrcU','cluster','replace','tags','apONh','ihwsL','gReIc','LIIBr','.\x20Please\x20Check\x20and\x20try\x20again','browserstack','CdVcv','dONum','status','EMALN','LuWLv','afWtT','iGauf','FoScf','DHeVH','YloXp','getClusterInfo','describeSubnets','-NodeGroup','getKubeConfigData','error','every','EcOeW','uyCxs','Cannot\x20find\x20VPC\x20','mwGCI','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','HOTxj','describeVpcs','clusterName','includes','clusters','FNZow','VpcIds','body',',\x20ClusterRole\x20=>\x20','2rqcWkd','Outputs','SLaMo','webSocketUtils','ClusterRole\x20=>\x20','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','dIRih','glayR','\x20in\x20region\x20','aws_credentials','EC2','readFileAsync','HTQeU','KeuDL','\x20ACCESS\x20KEY:\x20','EcnnE','NLpiE','writeFileSync','Cannot\x20find\x20subnets\x20','PsGmt','AWSCloudProvider','info','autoscaler-creation-failed','CTUiY','hXNpq','RFBdZ','describeCluster','reportToGalactusAndSendToEDS','efxsl','NVrJR','[ats]\x0aaws_access_key_id\x20=\x20','tespV','4|3|2|0|1','2016-11-15','aejQu','isVPCPresent','fRVsP','wforN','JnpIe','Cluster\x20=>\x20','CtOGh','checkClusterCreated','GBrMo','maxNodes','promise','AtgRH','getUserInput','wdnjH','FDgjC','mTXoI','vhSAT','sTsZa','isClusterPresent','iTOYc','kOJrg','WmqUZ','vpMqY','Following\x20resources\x20are\x20created:','ghoDg','iBigV','then','QoTLX','xVsNa','../utils/utilityMethods','OAUHT','isSubnetsValid','config','rws','jfIeV','OKqUe','configureIfNotConfigured','taamt','hFIIn','EcePK','createAuthConfigMap','name','Stacks','warn','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','LAKpO','365478mKsLXZ','1380CuJcPl','iadsG','GfJbh','nodegroupName','rTRyS','describeNodegroup','fNeyp','xaCJA','isBrowserstackCluster','apiVersion','jHtlr','sendEventToBackend','../utils/gridComponents','aws-auth-cm.yaml','hAHUJ','pDPCw','listClusters','path',',\x20Subnets\x20=>\x20','create-grid-called','EKS','vUBFf','10934602SRFaKM','ZQCTf','getNodeGroupInfo','wNvwF','createNamespacedConfigMap','sxKII','wfQxs','qWXuN','cloudProviderAccessKey','OIvoQ','catch','SecurityGroups\x20=>\x20','Authmap\x20already\x20exists.\x20Not\x20updating','kube-system','clusterRegion','kKPVK','push','GKOYg','57203920worswE','uuEFV','XFZds','auDDQ','nwJZA','aoAAP',',VPC\x20=>\x20','KubeConfigTemplate.yaml','setConfig','UMHaf','ILzXl','warning','BXIgs','235071msTLZS','WARNING','184FIlYZZ','mYinv','PzAUr','join','split','bYqxN','\x0aaws_secret_access_key\x20=\x20','loadBalancer',',\x20SecurityGroups\x20=>\x20','region','BjBTC','imVtW','secretAccessKey','8612HgChkl','../utils/createAutoscalerStack','MwVib','data','ingress','Objex','4445028LCcftR','DSpHE','toLowerCase','awsConfigSet','xivsU','browserstack:managedBy',',\x20NodeRole\x20=>\x20','qjIup','iLRoI','templates','fHFGu','message','kFLiL','cloudProviderSecretKey','xjsNR','cloudProviderName','acFMc','2017-11-01','match','aws-sdk','xPBHV','UUXjN','EycIF','exit','xSdeg','nodeRole','XPBXw','QfcLM','accessKeyId','nrzsR','JgzIw','WdsxI','lKVDH','6274602SLYrpo','.\x20Error:\x20','YukaE','Name','OutputValue','../utils/hstUtils','yPrgM','LICrp','OWMfT','lzKTW','mbHmd','getGridHostname','DfmBh','GaXFQ','oISaN','OoyTf','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','PpETA','Values','Subnets\x20=>\x20','\x20SECRET\x20KEY:\x20','ERROR','Filters','vSHNj','YPhIn','VPC\x20=>\x20','../utils/createClusterStack','JvjCZ','TWhfW','./CloudProvider','minNodes','BqPCE','HrwXp','VNJOL','hcVuw','KOBSE','KHcmn','HALrh','pzear','type','qCcZA','yDKxs','VRqXC','isConfigured','accessKey','AhoXi','mapRoles','aoplt','Skipping\x20Autoscaler\x20due\x20to:\x20','load','cFUZp','secret','UxDWQ','uEydm','olYVi','setupAutoscaler','HMVzV','NUNGm','eCrJI','deleteCluster','exports','certificateAuthority','lMXIh'];a0_0x2fb7=function(){return _0x1b5971;};return a0_0x2fb7();}const a0_0x45ae5a={};a0_0x45ae5a[a0_0x14a32a(0x222)]=AWSCloudProvider,module[a0_0x14a32a(0x1d2)]=a0_0x45ae5a;
1
+ const a0_0x318222=a0_0x4900;(function(_0x4fcaf8,_0x25a19e){const _0x2fc77e=a0_0x4900,_0x569adb=_0x4fcaf8();while(!![]){try{const _0xa90ed4=parseInt(_0x2fc77e(0x22c))/0x1+parseInt(_0x2fc77e(0x2c0))/0x2+-parseInt(_0x2fc77e(0x204))/0x3+-parseInt(_0x2fc77e(0x23c))/0x4*(-parseInt(_0x2fc77e(0x206))/0x5)+-parseInt(_0x2fc77e(0x26b))/0x6+parseInt(_0x2fc77e(0x23a))/0x7*(parseInt(_0x2fc77e(0x257))/0x8)+parseInt(_0x2fc77e(0x259))/0x9*(-parseInt(_0x2fc77e(0x2f2))/0xa);if(_0xa90ed4===_0x25a19e)break;else _0x569adb['push'](_0x569adb['shift']());}catch(_0x3b7342){_0x569adb['push'](_0x569adb['shift']());}}}(a0_0x4123,0x3dd7b));function a0_0x4900(_0x33da4a,_0x53ee3b){const _0x4123eb=a0_0x4123();return a0_0x4900=function(_0x490058,_0x4d7f12){_0x490058=_0x490058-0x1e9;let _0x10ec70=_0x4123eb[_0x490058];return _0x10ec70;},a0_0x4900(_0x33da4a,_0x53ee3b);}function a0_0x4123(){const _0x48741b=['ingress','fetchLocalCreds','VpcIds','179970OYmfcx','getClusterInfo','type','mzSqh','ywrfj','hvYXO','../utils/deleteStack','CVWGM','info','Xlvre','tRSYj','GpUzJ','../config/constants','CCjdC','21091WRWTQK','isBrowserstackCluster','4RNLZYA','DuNJm','checkClusterCreated','wRpKF','Cannot\x20find\x20subnets\x20','vpc-id','Filters','promise','clusters',',\x20Subnets\x20=>\x20','Outputs','Following\x20resources\x20are\x20created:','getNodeGroupInfo','autoscaler-creation-failed','ORjZJ','../utils/createAutoscalerStack','gRqJW','webSocketUtils','aImXL','ClusterRole\x20=>\x20','lpxir','ESVCM','.\x20Please\x20Check\x20and\x20try\x20again','przHo','ASeLz','browserstack','endpoint','904eQnjfc','rrEvW','2128401jSLthm','kube-system','catch','rZNAG','GRJTl','WARNING','./CloudProvider','listClusters','veviu','VPpnM','KpAzJ','YfrlA','RFxQK','Subnets\x20=>\x20','mGVbC','oUeNe','OutputValue','CqqDN','2503698HIojqL','RlBck','EwJNy','gepZI','QiRvz','mUhQA','aws_credentials','wFBbs','toLowerCase','fQHTQ','templates','setupNewCluster','describeNodegroup','isConfigured','XDJjV','yCcvA','KubeConfigTemplate.yaml','pgWhm','Cannot\x20find\x20VPC\x20','PRkpq','Authmap\x20already\x20exists.\x20Not\x20updating','wQpNy','EKS','../utils/createClusterStack','hostname','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','btGAq','DDMUn','\x20in\x20region\x20','isSubnetsValid',',\x20SecurityGroups\x20=>\x20','mbHkP','aws-auth-cm.yaml','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','XbRVk','nRktb','getGridHostname','NReZx','apiVersion','configureIfNotConfigured','zFXLJ','YFReQ','writeFileSync','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','accessKey','VegXC','CHkGn','setConfig','SecurityGroups\x20=>\x20','wCUry','dWaGq','ugoos','daioK','txHXw','\x0aaws_secret_access_key\x20=\x20','2016-11-15','sendEventToBackend','WhGVh','error','LOG','Cluster\x20=>\x20','jVWeL','ubIJu','tgWnx','isClusterPresent','IushD','hvQVk','../utils/hstUtils','DfLfa','cloudProvider','ayZCf','accessKeyId','qYxYV','replace','push','ISTCk','../utils/gridComponents','AQnzI','RltCP','VPC\x20=>\x20','exit','XDSEb','WFLjs','rws','WNwGd','677376LrPQwX','yiYvL','maxNodes','QRwGy','SdSOH','Values','.\x20Error:\x20','readFileAsync','nodeRole','Creating\x20Autoscaler\x20Role','setupAutoscaler','cloudProviderSecretKey','DBIIs','uYSiW','DNBpp','jiSEM','IXVEP','deleteCluster','cluster','CmfkW','create-grid-called','wIhvy','../utils/utilityMethods','vbmqC','getUserInput','MflJU','secretAccessKey','../config/logger','vPCGd','NsFrn','isVPCPresent','OvqLb','cGUHd','vvbQj','Subnets','asUlw','clusterName','aOooM','vdOiL','Stacks','grCQb','httoU','cscpn',',\x20NodeRole\x20=>\x20','HFAaV','EC2','mwMMr','warn','cloudProviderName','lYHtB','10plRvqW',',VPC\x20=>\x20','PqkAT','loadBalancer','aws-sdk','iGELW','toUpperCase','pBGVC','xfVyh','iAdku','JljGb','clusterRegion','secret','path','config','data','AWSCloudProvider','mVwzm','nbDEJ','ElZVJ','includes','oJKrx','browserstack:managedBy','status','cloudProviderAccessKey','lrsoY','toString','kwpGi','jbeXj','SXyQl','QISbP','nodegroupName','WcoVG','Xfgns','nUkgk','describeCluster','then','TulyE','SubnetId','Skipping\x20Autoscaler\x20due\x20to:\x20','minNodes','17841KhoDfl','ErrxI','269495mzBfXv','match','utf-8','XddpW','update','body','forEach','gIxlK','wRwnE','mpJfl','Autoscaler\x20Role\x20created.ARN:\x20','2017-11-01','xqUwc','split','message','ECZxG','EDMxE','ybtVD','region','hCdhj','dQClX','IIcJX','join','mapRoles','awsConfigSet','LOmUG','ywduZ','WQnsr','wanfG','NodeRole\x20=>\x20','WFknJ','createAuthConfigMap','wHAED','SyMfO','hSawy'];a0_0x4123=function(){return _0x48741b;};return a0_0x4123();}const fs=require('fs'),path=require(a0_0x318222(0x2ff)),yaml=require('js-yaml'),awsSDK=require(a0_0x318222(0x2f6)),{logger}=require(a0_0x318222(0x2db)),{CloudProvider}=require(a0_0x318222(0x25f)),{sendAWSInfoToHST}=require(a0_0x318222(0x2ae)),{deleteClusterStack}=require(a0_0x318222(0x232)),{createClusterStack}=require(a0_0x318222(0x282)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require(a0_0x318222(0x2b7)),{createAutoscalerStack}=require(a0_0x318222(0x24b)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x318222(0x2d6)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x318222(0x238));class AWSCloudProvider extends CloudProvider{constructor(_0x2e3a1c,_0x400761,_0x3ede3a,_0x5293bc){super(AWS,_0x2e3a1c,_0x400761,_0x3ede3a,_0x5293bc);}[a0_0x318222(0x292)](){const _0x43122b=a0_0x318222,_0x58c323={};_0x58c323[_0x43122b(0x1f7)]=function(_0x1289ed,_0x1e8b9d){return _0x1289ed!==_0x1e8b9d;},_0x58c323['ISTCk']=_0x43122b(0x290);const _0x4d5e7b=_0x58c323;if(!this[_0x43122b(0x278)]()){if(_0x4d5e7b['jbeXj'](_0x4d5e7b[_0x43122b(0x2b6)],_0x4d5e7b[_0x43122b(0x2b6)]))return!![];else this[_0x43122b(0x29a)]();}}[a0_0x318222(0x278)](){const _0x3099f5=a0_0x318222,_0x4c13f0={};_0x4c13f0[_0x3099f5(0x1f4)]=function(_0x496edd,_0x1e68f7){return _0x496edd===_0x1e68f7;};const _0x309e33=_0x4c13f0;return _0x309e33[_0x3099f5(0x1f4)](global_registry[_0x3099f5(0x21e)],!![]);}[a0_0x318222(0x29a)](){const _0x106155=a0_0x318222,_0x479e1b={};_0x479e1b[_0x106155(0x218)]=global_registry['clusterRegion'],_0x479e1b[_0x106155(0x2b2)]=global_registry[_0x106155(0x1f3)],_0x479e1b['secretAccessKey']=global_registry[_0x106155(0x2cb)],awsSDK[_0x106155(0x1e9)][_0x106155(0x20a)](_0x479e1b),global_registry[_0x106155(0x21e)]=!![];}async[a0_0x318222(0x22a)](_0x4abce1){const _0x36b5ca=a0_0x318222;global_registry[_0x36b5ca(0x1f3)]=_0x4abce1[this['cloudProviderName']][_0x36b5ca(0x297)],global_registry[_0x36b5ca(0x2cb)]=_0x4abce1[this[_0x36b5ca(0x2f0)]][_0x36b5ca(0x2fe)];}[a0_0x318222(0x28f)](_0x3d61ba){const _0xda3a12=a0_0x318222;return _0x3d61ba[_0xda3a12(0x1f2)][_0xda3a12(0x2f5)][_0xda3a12(0x229)][0x0][_0xda3a12(0x283)];}async[a0_0x318222(0x23b)](){const _0x4501e5=a0_0x318222,_0x13c976={'PMstJ':function(_0x5e540f,_0x3dc80c){return _0x5e540f(_0x3dc80c);},'wanfG':function(_0x16f725,_0x443830){return _0x16f725!==_0x443830;},'RFxQK':_0x4501e5(0x258),'zdjVV':'LxVzi','CCjdC':function(_0x26b041,_0x38fcc5){return _0x26b041===_0x38fcc5;},'wCUry':'cDaHb','VPpnM':_0x4501e5(0x1f1),'PWQVp':_0x4501e5(0x255),'KpAzJ':_0x4501e5(0x235),'WhGVh':_0x4501e5(0x29d)};try{if(_0x13c976[_0x4501e5(0x222)](_0x13c976[_0x4501e5(0x265)],_0x13c976['zdjVV'])){const _0x1d112f=await this[_0x4501e5(0x22d)]();if(_0x1d112f[_0x4501e5(0x2d2)]){if(_0x13c976['CCjdC'](_0x13c976[_0x4501e5(0x29c)],_0x13c976[_0x4501e5(0x29c)])){const _0x9c8efb=_0x1d112f[_0x4501e5(0x2d2)]['tags'];return _0x9c8efb&&_0x13c976[_0x4501e5(0x239)](_0x9c8efb[_0x13c976[_0x4501e5(0x262)]][_0x4501e5(0x273)](),_0x13c976['PWQVp']);}else return this['configureIfNotConfigured'](),this[_0x4501e5(0x23e)]();}}else _0x363c6b[_0x4501e5(0x2a5)](_0x4501e5(0x240)+_0x54a236+'\x20in\x20region\x20'+_0x11afc2[_0x4501e5(0x2fd)]+_0x4501e5(0x2c6)+_0x20e7f0),_0x13c976['PMstJ'](_0x2b979f,[![],[]]);}catch(_0x2e78fd){return _0x13c976['CCjdC'](_0x13c976[_0x4501e5(0x263)],_0x13c976[_0x4501e5(0x2a4)])?(_0x20fd6c['push'](_0xdb5479),![]):![];}return![];}async[a0_0x318222(0x2ab)](){const _0x5251d8=a0_0x318222;return this['configureIfNotConfigured'](),this[_0x5251d8(0x23e)]();}async[a0_0x318222(0x22d)](){const _0x30193f=a0_0x318222,_0x3b82e9={};_0x3b82e9['DNBpp']=_0x30193f(0x211);const _0x62144b=_0x3b82e9,_0x53a7ac={};_0x53a7ac[_0x30193f(0x291)]=_0x62144b[_0x30193f(0x2ce)];const _0x2826c6=new awsSDK[(_0x30193f(0x281))](_0x53a7ac),_0x273ce5={};return _0x273ce5['name']=this[_0x30193f(0x2e4)],_0x2826c6[_0x30193f(0x1fe)](_0x273ce5)[_0x30193f(0x243)]();}async['createAuthConfigMap'](_0x1a70bf){const _0x20a060=a0_0x318222,_0x73a760={};_0x73a760[_0x20a060(0x219)]=_0x20a060(0x275),_0x73a760[_0x20a060(0x28e)]=_0x20a060(0x28b),_0x73a760[_0x20a060(0x205)]=_0x20a060(0x208),_0x73a760['hSawy']='<ARN>';const _0x581d9d=_0x73a760,_0x1fd757=await fs[_0x20a060(0x2c7)](path[_0x20a060(0x21c)](__dirname,'..',_0x581d9d[_0x20a060(0x219)],_0x581d9d['nRktb']),_0x581d9d[_0x20a060(0x205)]),_0x3365ed=yaml['load'](_0x1fd757);return _0x3365ed[_0x20a060(0x1ea)][_0x20a060(0x21d)]=_0x3365ed[_0x20a060(0x1ea)][_0x20a060(0x21d)][_0x20a060(0x2b4)](_0x581d9d[_0x20a060(0x228)],_0x1a70bf),_0x3365ed;}async['getNodeGroupInfo'](_0x3858a9){const _0x331868=a0_0x318222,_0x540110={};_0x540110[_0x331868(0x24c)]=_0x331868(0x211);const _0x152afd=_0x540110,_0x2565cd={};_0x2565cd['apiVersion']=_0x152afd['gRqJW'];const _0x333cd4=new awsSDK['EKS'](_0x2565cd),_0x174976={};return _0x174976[_0x331868(0x2e4)]=this['clusterName'],_0x174976[_0x331868(0x1fa)]=_0x3858a9,_0x333cd4[_0x331868(0x277)](_0x174976)[_0x331868(0x243)]();}async[a0_0x318222(0x23e)](){const _0x3ee453=a0_0x318222,_0x19e62f={'PmUwQ':function(_0xc8f0a,_0x98ac7a){return _0xc8f0a(_0x98ac7a);},'LOmUG':_0x3ee453(0x27f),'ybtVD':function(_0x4d250b,_0x76d0c8){return _0x4d250b===_0x76d0c8;},'httoU':_0x3ee453(0x286),'ElZVJ':function(_0x35339c,_0x44920b){return _0x35339c!==_0x44920b;},'veviu':_0x3ee453(0x27c),'PdQzN':function(_0x5b769d,_0x5bcaf4){return _0x5b769d(_0x5bcaf4);},'pBGVC':function(_0x318804,_0x46e538){return _0x318804!==_0x46e538;},'ESVCM':_0x3ee453(0x2c4),'cGUHd':_0x3ee453(0x285),'RltCP':'2017-11-01'};return new Promise((_0x2a5f2c,_0x2c7ac7)=>{const _0x101a6a=_0x3ee453,_0x4baa58={'EwJNy':_0x19e62f[_0x101a6a(0x21f)],'BKvZU':function(_0x317e28,_0x2e4033){const _0x5581b4=_0x101a6a;return _0x19e62f[_0x5581b4(0x217)](_0x317e28,_0x2e4033);},'mwMMr':_0x19e62f[_0x101a6a(0x2e9)],'IXVEP':function(_0x2e8b9a,_0x4e313e){const _0x595121=_0x101a6a;return _0x19e62f[_0x595121(0x1ee)](_0x2e8b9a,_0x4e313e);},'TulyE':_0x19e62f[_0x101a6a(0x261)],'gIxlK':function(_0x3d3863,_0xbcc1c2){return _0x19e62f['PdQzN'](_0x3d3863,_0xbcc1c2);},'vdOiL':function(_0x3598d9,_0x3747cf){return _0x19e62f['PmUwQ'](_0x3598d9,_0x3747cf);},'uYSiW':function(_0x6f8132,_0x1c5de6){const _0x49c5bf=_0x101a6a;return _0x19e62f[_0x49c5bf(0x2f9)](_0x6f8132,_0x1c5de6);},'WFLjs':_0x19e62f[_0x101a6a(0x251)]};if(_0x19e62f[_0x101a6a(0x217)](_0x19e62f[_0x101a6a(0x2e0)],_0x19e62f[_0x101a6a(0x2e0)])){const _0x54b105={};_0x54b105[_0x101a6a(0x291)]=_0x19e62f[_0x101a6a(0x2b9)];const _0x23f5e5=new awsSDK[(_0x101a6a(0x281))](_0x54b105);_0x23f5e5[_0x101a6a(0x260)]()['promise']()[_0x101a6a(0x1ff)](_0x3349b5=>{const _0x46a854=_0x101a6a,_0x1b868c={};_0x1b868c['wQpNy']=_0x4baa58[_0x46a854(0x26d)];const _0x451862=_0x1b868c;if(_0x4baa58['BKvZU'](_0x4baa58['mwMMr'],_0x4baa58[_0x46a854(0x2ee)]))_0x3349b5[_0x46a854(0x244)][_0x46a854(0x1ef)](this[_0x46a854(0x2e4)])&&(_0x4baa58[_0x46a854(0x2d0)](_0x4baa58[_0x46a854(0x200)],_0x4baa58[_0x46a854(0x200)])?_0x4afba6['info'](_0x451862[_0x46a854(0x280)]):_0x4baa58[_0x46a854(0x20d)](_0x2a5f2c,!![])),_0x4baa58[_0x46a854(0x2e6)](_0x2a5f2c,![]);else return _0x407d8d['status'][_0x46a854(0x2f5)][_0x46a854(0x229)][0x0][_0x46a854(0x283)];})[_0x101a6a(0x25b)](_0x3e0840=>{const _0x3b3fac=_0x101a6a;_0x4baa58[_0x3b3fac(0x2cd)](_0x4baa58[_0x3b3fac(0x2bd)],_0x4baa58['WFLjs'])?(_0x2bf6cb[_0x3b3fac(0x2a5)](_0x354d97),_0x4baa58[_0x3b3fac(0x2e6)](_0x276dff,_0x43b531)):(logger['error'](_0x3e0840),_0x4baa58[_0x3b3fac(0x20d)](_0x2c7ac7,_0x3e0840));});}else _0x19e62f['PmUwQ'](_0x2a9fcf,!![]);});}async[a0_0x318222(0x2d8)](_0x2da6ab,_0x4fb22a){const _0x56a91a=a0_0x318222,_0x435696={'QiRvz':function(_0xa91c83,_0x339257){return _0xa91c83(_0x339257);},'DuNJm':function(_0x28695c,_0x3d80b1){return _0x28695c(_0x3d80b1);}},_0x553056=this[_0x56a91a(0x2f0)][_0x56a91a(0x2f8)](),_0x35830c=await _0x435696[_0x56a91a(0x26f)](_0x2da6ab,_0x553056+'\x20ACCESS\x20KEY:\x20'),_0x3dbaea=await _0x435696[_0x56a91a(0x23d)](_0x2da6ab,_0x553056+'\x20SECRET\x20KEY:\x20');global_registry[_0x56a91a(0x1f3)]=_0x35830c,global_registry[_0x56a91a(0x2cb)]=_0x3dbaea;const _0x34eeba={};return _0x34eeba[_0x56a91a(0x297)]=_0x35830c,_0x34eeba[_0x56a91a(0x2fe)]=_0x3dbaea,_0x4fb22a[_0x56a91a(0x2b0)][AWS]=_0x34eeba,_0x4fb22a;}async['getKubeConfigData'](){const _0x15543f=a0_0x318222,_0x275504={'dtoRt':function(_0x41f1f8){return _0x41f1f8();},'RNWqY':_0x15543f(0x271),'qKZyG':_0x15543f(0x275),'PqkAT':_0x15543f(0x27b)},_0x2ed657=_0x275504['dtoRt'](getDirForConfig),_0x1437e4=await this[_0x15543f(0x22d)](),_0xb13a4f=path['join'](_0x2ed657,_0x275504['RNWqY']),_0x15f264='[ats]\x0aaws_access_key_id\x20=\x20'+global_registry[_0x15543f(0x1f3)]+_0x15543f(0x2a1)+global_registry['cloudProviderSecretKey'];fs[_0x15543f(0x295)](_0xb13a4f,_0x15f264);let _0x1747b4=await fs[_0x15543f(0x2c7)](path[_0x15543f(0x21c)](__dirname,'..',_0x275504['qKZyG'],_0x275504[_0x15543f(0x2f4)]));return _0x1747b4=_0x1747b4[_0x15543f(0x1f5)](),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CLUSTER_NAME>/g,this[_0x15543f(0x2e4)]),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CLUSTER_URL>/g,_0x1437e4[_0x15543f(0x2d2)][_0x15543f(0x256)]),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CERTIFICATE_DATA>/g,_0x1437e4[_0x15543f(0x2d2)]['certificateAuthority']['data']),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CLUSTER_REGION>/g,global_registry[_0x15543f(0x2fd)]),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x15543f(0x1f3)]),_0x1747b4=_0x1747b4[_0x15543f(0x2b4)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x15543f(0x2cb)]),_0x1747b4=_0x1747b4['replace'](/<AWS_CONFIG_FILE_PATH>/g,_0xb13a4f),_0x1747b4;}async[a0_0x318222(0x276)](_0x1987ec=null,_0x14b1b3=null){const _0x582149=a0_0x318222,_0x3290b5={'mzSqh':function(_0x566eae,_0x17bdc8){return _0x566eae(_0x17bdc8);},'vPCGd':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','zFXLJ':_0x582149(0x28c),'XDJjV':function(_0x216690,_0x179c5d,_0x1eae60,_0x5b2349,_0x2a376c,_0x2d161c){return _0x216690(_0x179c5d,_0x1eae60,_0x5b2349,_0x2a376c,_0x2d161c);},'FsAXB':_0x582149(0x247),'aImXL':function(_0x9633e4,_0x486df7){return _0x9633e4===_0x486df7;},'BSAWH':function(_0x157ab4,_0x23b3b5){return _0x157ab4===_0x23b3b5;},'RlBck':_0x582149(0x25c),'mQycp':'SKqnU'};_0x3290b5[_0x582149(0x22f)](sendAWSInfoToHST,this[_0x582149(0x2be)]);const _0x28b726={};_0x28b726[_0x582149(0x22e)]=WS_EVENTS[_0x582149(0x2a6)],_0x28b726[_0x582149(0x214)]=_0x3290b5[_0x582149(0x2dc)],this[_0x582149(0x24d)]['sendEventToBackend'](this[_0x582149(0x2be)],_0x28b726),logger[_0x582149(0x234)](_0x3290b5[_0x582149(0x293)]);const _0x4936de=global_registry[_0x582149(0x203)],_0x512ea4=global_registry[_0x582149(0x2c2)],_0x5d659f=await _0x3290b5[_0x582149(0x279)](createClusterStack,this[_0x582149(0x2e4)],_0x4936de,_0x512ea4,_0x1987ec,_0x14b1b3),_0x1c8e4e=_0x5d659f['Stacks'][0x0]['Outputs'][0x0][_0x582149(0x269)][_0x582149(0x213)](','),_0x5ef38a=_0x5d659f[_0x582149(0x2e7)][0x0][_0x582149(0x246)][0x1][_0x582149(0x269)],_0x3f6dca=_0x5d659f['Stacks'][0x0][_0x582149(0x246)][0x3]['OutputValue'],_0xe52c8c=_0x5d659f[_0x582149(0x2e7)][0x0]['Outputs'][0x4]['OutputValue'];logger['info'](_0x3290b5['FsAXB']),logger[_0x582149(0x234)](_0x582149(0x2a7)+_0x3f6dca+'\x20'),logger[_0x582149(0x234)](_0x582149(0x24f)+_0x5ef38a+'\x20'),logger[_0x582149(0x234)](_0x582149(0x29b)+_0x1c8e4e+'\x20'),logger[_0x582149(0x234)](_0x582149(0x223)+_0xe52c8c+'\x20');let _0x235696=_0x582149(0x284)+_0x3f6dca+',\x20ClusterRole\x20=>\x20'+_0x5ef38a+_0x582149(0x289)+_0x1c8e4e+_0x582149(0x2eb)+_0xe52c8c+'\x20';if(_0x3290b5[_0x582149(0x24e)](_0x1987ec,null)&&_0x3290b5['BSAWH'](_0x14b1b3,null)){if(_0x3290b5['BSAWH'](_0x3290b5[_0x582149(0x26c)],_0x3290b5['mQycp']))!this[_0x582149(0x278)]()&&this['setConfig']();else{const _0x5d58c1=_0x5d659f[_0x582149(0x2e7)][0x0]['Outputs'][0x2][_0x582149(0x269)],_0x15451a=_0x5d659f[_0x582149(0x2e7)][0x0]['Outputs'][0x5][_0x582149(0x269)][_0x582149(0x213)](',');logger[_0x582149(0x234)](_0x582149(0x2ba)+_0x5d58c1+'\x20'),logger[_0x582149(0x234)](_0x582149(0x266)+_0x15451a+'\x20'),_0x235696+=_0x582149(0x2f3)+_0x5d58c1+_0x582149(0x245)+_0x15451a+',\x20';}}const _0x23def1={};_0x23def1[_0x582149(0x22e)]=WS_EVENTS['LOG'],_0x23def1[_0x582149(0x214)]=_0x235696,this[_0x582149(0x24d)]['sendEventToBackend'](this['rws'],_0x23def1);}async[a0_0x318222(0x2d1)](_0x1af4b5,_0x35ec6e){const _0x2b32e0=a0_0x318222,_0x33fb6a={'hvYXO':function(_0x251ce4,_0x15e69c){return _0x251ce4(_0x15e69c);},'DAoMm':function(_0x6d851c,_0x421124){return _0x6d851c(_0x421124);},'NsFrn':function(_0x30965c,_0x562d02){return _0x30965c(_0x562d02);}};await _0x33fb6a[_0x2b32e0(0x231)](deleteAgent,_0x1af4b5),await _0x33fb6a['DAoMm'](deleteRoutingDeps,_0x1af4b5),await _0x33fb6a[_0x2b32e0(0x2dd)](deleteClusterAndDependencies,_0x35ec6e);}async[a0_0x318222(0x2ca)](_0x325fa1,_0x4bd379){const _0xfc151c=a0_0x318222,_0x586903={'ubIJu':function(_0x3d9175,_0x3cd8fc){return _0x3d9175(_0x3cd8fc);},'IushD':_0xfc151c(0x2a2),'Jjwtg':function(_0x35ea60,_0x2ac68a){return _0x35ea60(_0x2ac68a);},'iGELW':function(_0xf5017e,_0x5edb21){return _0xf5017e(_0x5edb21);},'Xfgns':function(_0x3649fc,_0x3f863e){return _0x3649fc===_0x3f863e;},'mpJfl':function(_0x33dfd9,_0xbc72d6){return _0x33dfd9!==_0xbc72d6;},'QRwGy':'EYZLD','nUkgk':_0xfc151c(0x27f),'CmfkW':_0xfc151c(0x2c9),'IIcJX':'LGisc','ReDkn':function(_0x19d59a,_0x5ea320){return _0x19d59a(_0x5ea320);},'dQClX':function(_0x29fac5,_0x4592bc){return _0x29fac5!==_0x4592bc;},'mVwzm':_0xfc151c(0x221),'wHAED':'nBRnF','ddnBa':function(_0x3e6c7b,_0xd0ec7c){return _0x3e6c7b!==_0xd0ec7c;},'sNGYg':function(_0x1d5172,_0x4ea9fd){return _0x1d5172!==_0x4ea9fd;},'mbHkP':'QQdNX','GpUzJ':function(_0x4a0584,_0x40b34a,_0x437d8a,_0x42c6f9,_0x27f390,_0x1811f0,_0x599b3b,_0x1544c5){return _0x4a0584(_0x40b34a,_0x437d8a,_0x42c6f9,_0x27f390,_0x1811f0,_0x599b3b,_0x1544c5);},'nbDEJ':_0xfc151c(0x2d4),'wRpKF':'reportToGalactusAndSendToEDS','uwGLf':'warning','WcoVG':'YRbeJ','jiSEM':'0|4|3|2|1','wFBbs':function(_0x510402,_0x2c3266){return _0x510402(_0x2c3266);},'PRkpq':_0xfc151c(0x249),'fQHTQ':'error','YfrlA':_0xfc151c(0x25a)};let _0x10ad25,_0x1d40bb;const _0x33f595={};_0x33f595['type']=WS_EVENTS['LOG'],_0x33f595[_0xfc151c(0x214)]=_0x586903[_0xfc151c(0x2d3)],this[_0xfc151c(0x24d)][_0xfc151c(0x2a3)](this[_0xfc151c(0x2be)],_0x33f595),logger[_0xfc151c(0x234)](_0x586903[_0xfc151c(0x2d3)]);try{if(_0x586903[_0xfc151c(0x20f)](_0x586903[_0xfc151c(0x21b)],_0x586903[_0xfc151c(0x21b)])){const _0x598b4b={};_0x598b4b[_0xfc151c(0x218)]=_0x4e6c9f['clusterRegion'],_0x598b4b[_0xfc151c(0x2b2)]=_0x576843[_0xfc151c(0x1f3)],_0x598b4b[_0xfc151c(0x2da)]=_0x5ae67c[_0xfc151c(0x2cb)],_0x58f5aa[_0xfc151c(0x1e9)][_0xfc151c(0x20a)](_0x598b4b),_0x3c83ce[_0xfc151c(0x21e)]=!![];}else{const _0x593c68=await _0x586903['ReDkn'](createAutoscalerStack,this['clusterName']);_0x1d40bb=_0x593c68[_0xfc151c(0x2e7)][0x0][_0xfc151c(0x246)][0x2][_0xfc151c(0x269)];const _0x44f824={};_0x44f824['type']=WS_EVENTS[_0xfc151c(0x2a6)],_0x44f824['message']=_0xfc151c(0x210)+_0x1d40bb+'\x20',this['webSocketUtils']['sendEventToBackend'](this[_0xfc151c(0x2be)],_0x44f824),logger[_0xfc151c(0x234)](_0xfc151c(0x210)+_0x1d40bb+'\x20');}}catch(_0x1a65bb){if(_0x586903[_0xfc151c(0x21a)](_0x586903[_0xfc151c(0x1ec)],_0x586903[_0xfc151c(0x226)])){if(_0x586903['ddnBa'](_0x1a65bb['message'][_0xfc151c(0x207)](/already exists/),null)||_0x586903['sNGYg'](_0x1a65bb[_0xfc151c(0x214)]['match'](/already exists/),undefined))_0x586903['dQClX'](_0x586903['mbHkP'],_0x586903[_0xfc151c(0x28a)])?(_0x535254[_0xfc151c(0x244)]['includes'](this[_0xfc151c(0x2e4)])&&_0x586903[_0xfc151c(0x2a9)](_0x106503,!![]),_0x586903['ubIJu'](_0x3b2d4e,![])):(_0x10ad25=_0xfc151c(0x202)+_0x1a65bb[_0xfc151c(0x214)],await _0x586903[_0xfc151c(0x237)](reportToGalactusAndSendToEDS,_0x4bd379,this[_0xfc151c(0x2be)],_0x10ad25,messageTypes[_0xfc151c(0x25e)],_0x586903['nbDEJ'],_0x586903[_0xfc151c(0x23f)],_0x586903['uwGLf']),logger[_0xfc151c(0x2ef)](_0x10ad25));else{if(_0x586903[_0xfc151c(0x20f)](_0x586903[_0xfc151c(0x1fb)],_0x586903[_0xfc151c(0x1fb)])){const _0x5796c1={'SyMfO':function(_0x120abd,_0x2b4255){return _0x586903['Jjwtg'](_0x120abd,_0x2b4255);},'gepZI':function(_0x42684b,_0x493434){return _0x586903['iGELW'](_0x42684b,_0x493434);}},_0x5238e2={};_0x5238e2[_0xfc151c(0x22b)]=[_0x56a91d];let _0x3a5ed3=_0x5238e2;return new _0x49a518((_0x1a441c,_0x19f391)=>{const _0x591a79=_0xfc151c,_0x533422={};_0x533422[_0x591a79(0x291)]=_0x586903['IushD'],_0x533422[_0x591a79(0x218)]=_0x34d5f5[_0x591a79(0x2fd)];const _0x5f2c53=new _0x40c894[(_0x591a79(0x2ed))](_0x533422);_0x5f2c53['describeVpcs'](_0x3a5ed3)[_0x591a79(0x243)]()[_0x591a79(0x1ff)](_0x4d7052=>{const _0x586c52=_0x591a79;_0x5796c1[_0x586c52(0x227)](_0x1a441c,!![]);})['catch'](_0x4afc69=>{const _0x5bd9f2=_0x591a79;_0x41228b[_0x5bd9f2(0x2a5)](_0x5bd9f2(0x27d)+_0x14f4a7+'\x20in\x20region\x20'+_0x5aaa91[_0x5bd9f2(0x2fd)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x5796c1[_0x5bd9f2(0x26e)](_0x1a441c,![]);});});}else{const _0x47868c=_0x586903[_0xfc151c(0x2cf)][_0xfc151c(0x213)]('|');let _0x13843c=0x0;while(!![]){switch(_0x47868c[_0x13843c++]){case'0':_0x10ad25=_0xfc151c(0x296)+_0x1a65bb[_0xfc151c(0x214)]+'.\x20Deleting\x20all\x20the\x20stacks';continue;case'1':process[_0xfc151c(0x2bb)](0x1);continue;case'2':await _0x586903[_0xfc151c(0x272)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':logger[_0xfc151c(0x2a5)](_0x10ad25);continue;case'4':await _0x586903['GpUzJ'](reportToGalactusAndSendToEDS,_0x4bd379,this[_0xfc151c(0x2be)],_0x10ad25,messageTypes['ERROR'],_0x586903[_0xfc151c(0x1ed)],_0x586903[_0xfc151c(0x27e)],_0x586903[_0xfc151c(0x274)]);continue;}break;}}}}else{const _0x303c28={'SXyQl':function(_0x264b2c,_0x357eaf){const _0x53ef82=_0xfc151c;return _0x586903[_0x53ef82(0x2f7)](_0x264b2c,_0x357eaf);}},_0x208424={};_0x208424[_0xfc151c(0x291)]=_0x586903[_0xfc151c(0x2ac)],_0x208424['region']=_0x5c46f9[_0xfc151c(0x2fd)];const _0x2c12e4=new _0xe12f6b[(_0xfc151c(0x2ed))](_0x208424);_0x2c12e4['describeVpcs'](_0x3ae06b)[_0xfc151c(0x243)]()[_0xfc151c(0x1ff)](_0x5cc631=>{const _0x2b609d=_0xfc151c;_0x303c28[_0x2b609d(0x1f8)](_0x1fbf29,!![]);})[_0xfc151c(0x25b)](_0x2172a2=>{const _0x474715=_0xfc151c;_0x2fd321[_0x474715(0x2a5)](_0x474715(0x27d)+_0x2e626d+'\x20in\x20region\x20'+_0x376c2e['clusterRegion']+_0x474715(0x252)),_0x303c28[_0x474715(0x1f8)](_0x56758f,![]);});}}let _0x742468=await this[_0xfc151c(0x248)](this[_0xfc151c(0x2e4)]+'-NodeGroup');const _0x4f42de=_0x742468['nodegroup'][_0xfc151c(0x2c8)],_0x4ccb46=await this[_0xfc151c(0x225)](_0x4f42de),_0x481719={};return _0x481719['namespace']=_0x586903[_0xfc151c(0x264)],_0x481719[_0xfc151c(0x20b)]=_0x4ccb46,await _0x325fa1['createNamespacedConfigMap'](_0x481719)[_0xfc151c(0x25b)](_0x5dca6f=>{const _0x3c0da=_0xfc151c;if(_0x586903[_0x3c0da(0x20f)](_0x586903[_0x3c0da(0x2c3)],_0x586903[_0x3c0da(0x2c3)]))return _0x586903[_0x3c0da(0x1fc)](_0x238e2b[_0x3c0da(0x21e)],!![]);else logger[_0x3c0da(0x234)](_0x586903[_0x3c0da(0x1fd)]);}),_0x1d40bb;}[a0_0x318222(0x2de)](_0x455724){const _0x32e03a=a0_0x318222,_0x58fca7={'wRwnE':function(_0xf994bd,_0x1e0ff5){return _0xf994bd(_0x1e0ff5);},'DBIIs':function(_0x5494d9,_0x34054b){return _0x5494d9!==_0x34054b;},'ayZCf':_0x32e03a(0x250),'CVWGM':'cceoF','daioK':_0x32e03a(0x2d9),'hvQVk':function(_0xe72fc3,_0x16160a){return _0xe72fc3(_0x16160a);},'QqbTi':function(_0x531713,_0x5ce7b3){return _0x531713!==_0x5ce7b3;},'ORjZJ':_0x32e03a(0x2e5),'WYXoO':'mpHte','grCQb':_0x32e03a(0x2a2)},_0x28fc31={};_0x28fc31[_0x32e03a(0x22b)]=[_0x455724];let _0x36de83=_0x28fc31;return new Promise((_0x6f905f,_0x1153c0)=>{const _0x3e34a0=_0x32e03a,_0x3468df={'HJzsL':function(_0x2f5232,_0xcb6990){const _0x4451bb=a0_0x4900;return _0x58fca7[_0x4451bb(0x20e)](_0x2f5232,_0xcb6990);},'fWVFL':function(_0x3d87d7,_0x5a2886){const _0x40f479=a0_0x4900;return _0x58fca7[_0x40f479(0x2cc)](_0x3d87d7,_0x5a2886);},'wShXA':_0x58fca7[_0x3e34a0(0x2b1)],'ywduZ':_0x58fca7[_0x3e34a0(0x233)],'xfVyh':function(_0x4d0e07,_0x210160){const _0x4759b5=_0x3e34a0;return _0x58fca7[_0x4759b5(0x20e)](_0x4d0e07,_0x210160);},'lYHtB':function(_0x332bf0,_0x5e20fc){const _0x1dfb28=_0x3e34a0;return _0x58fca7[_0x1dfb28(0x2cc)](_0x332bf0,_0x5e20fc);},'VegXC':_0x58fca7[_0x3e34a0(0x29f)],'YFReQ':function(_0x5c0027,_0x5a38c8){return _0x58fca7['wRwnE'](_0x5c0027,_0x5a38c8);},'pnbMI':function(_0x34fa50,_0x2c2cda){const _0x3d5083=_0x3e34a0;return _0x58fca7[_0x3d5083(0x2ad)](_0x34fa50,_0x2c2cda);}};if(_0x58fca7['QqbTi'](_0x58fca7[_0x3e34a0(0x24a)],_0x58fca7['WYXoO'])){const _0x5f18d6={};_0x5f18d6[_0x3e34a0(0x291)]=_0x58fca7[_0x3e34a0(0x2e8)],_0x5f18d6[_0x3e34a0(0x218)]=global_registry[_0x3e34a0(0x2fd)];const _0x952639=new awsSDK[(_0x3e34a0(0x2ed))](_0x5f18d6);_0x952639['describeVpcs'](_0x36de83)[_0x3e34a0(0x243)]()[_0x3e34a0(0x1ff)](_0x5d3c6a=>{const _0x4a9f64=_0x3e34a0;_0x3468df['fWVFL'](_0x3468df['wShXA'],_0x3468df[_0x4a9f64(0x220)])?_0x3468df[_0x4a9f64(0x2fa)](_0x6f905f,!![]):_0x3468df['HJzsL'](_0x38feda,!![]);})[_0x3e34a0(0x25b)](_0x2a2299=>{const _0x88167f=_0x3e34a0;if(_0x3468df[_0x88167f(0x2f1)](_0x3468df[_0x88167f(0x298)],_0x3468df[_0x88167f(0x298)]))return _0x4bf76d[_0x88167f(0x1ef)](_0x11416b)?!![]:(_0x1addfa[_0x88167f(0x2b5)](_0x2d32e3),![]);else logger[_0x88167f(0x2a5)](_0x88167f(0x27d)+_0x455724+_0x88167f(0x287)+global_registry[_0x88167f(0x2fd)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x3468df[_0x88167f(0x294)](_0x6f905f,![]);});}else _0x45e2a5[_0x3e34a0(0x2a5)](_0x3e34a0(0x27d)+_0x4b791f+_0x3e34a0(0x287)+_0x1a6d6f[_0x3e34a0(0x2fd)]+_0x3e34a0(0x252)),_0x3468df['pnbMI'](_0x16c862,![]);});}[a0_0x318222(0x288)](_0x50e769,_0x236455){const _0x53f66e=a0_0x318222,_0x9d869={'kwpGi':function(_0xaba3a8,_0x544e50){return _0xaba3a8!==_0x544e50;},'mGVbC':_0x53f66e(0x2d7),'GRJTl':'2017-11-01','qYxYV':function(_0x3af1c3,_0x5be8cf){return _0x3af1c3(_0x5be8cf);},'XddpW':function(_0x2d80db,_0x98fa2d){return _0x2d80db(_0x98fa2d);},'DfLfa':_0x53f66e(0x1f9),'CVVTU':_0x53f66e(0x216),'przHo':function(_0x19316a,_0x2ebc14){return _0x19316a===_0x2ebc14;},'WFknJ':_0x53f66e(0x1f0),'ASeLz':_0x53f66e(0x2e3),'ugoos':_0x53f66e(0x2bc),'wIhvy':function(_0x58b1be,_0xd2bf0d){return _0x58b1be!==_0xd2bf0d;},'CveKY':_0x53f66e(0x212),'tgWnx':_0x53f66e(0x2bf),'UdqKF':'jdRlP','BqUVD':'zaCuS','mUhQA':function(_0x4a945d,_0x4dd489){return _0x4a945d(_0x4dd489);},'zYKRF':_0x53f66e(0x26a),'CHkGn':_0x53f66e(0x2e1),'adtmr':_0x53f66e(0x2a2),'txHXw':_0x53f66e(0x241)},_0x4221dc={};_0x4221dc['Name']=_0x9d869[_0x53f66e(0x2a0)],_0x4221dc[_0x53f66e(0x2c5)]=[_0x236455];const _0x3c75d3={};_0x3c75d3[_0x53f66e(0x242)]=[_0x4221dc];let _0x50de1a=_0x3c75d3;return new Promise((_0x35d089,_0x1b9b51)=>{const _0x3d9d96=_0x53f66e;if(_0x9d869[_0x3d9d96(0x2d5)](_0x9d869['zYKRF'],_0x9d869[_0x3d9d96(0x299)])){const _0x7e9b2f={};_0x7e9b2f[_0x3d9d96(0x291)]=_0x9d869['adtmr'],_0x7e9b2f['region']=global_registry[_0x3d9d96(0x2fd)];const _0x5d5348=new awsSDK['EC2'](_0x7e9b2f);_0x5d5348['describeSubnets'](_0x50de1a)[_0x3d9d96(0x243)]()[_0x3d9d96(0x1ff)](_0xdab487=>{const _0x50efa=_0x3d9d96,_0x19637b={'yiYvL':function(_0x281ea3,_0x27c1ad){return _0x9d869['kwpGi'](_0x281ea3,_0x27c1ad);},'tRSYj':_0x9d869[_0x50efa(0x267)],'cscpn':_0x9d869[_0x50efa(0x25d)],'xUmtJ':function(_0x303947,_0x4e5392){const _0x12d3d9=_0x50efa;return _0x9d869[_0x12d3d9(0x2b3)](_0x303947,_0x4e5392);},'ywrfj':function(_0x1b3fc2,_0x529743){return _0x9d869['XddpW'](_0x1b3fc2,_0x529743);},'AQnzI':function(_0x24a2e6,_0x5c81d4){const _0x2b3ad0=_0x50efa;return _0x9d869[_0x2b3ad0(0x1f6)](_0x24a2e6,_0x5c81d4);},'OvqLb':_0x9d869[_0x50efa(0x2af)],'yCcvA':_0x9d869['CVVTU'],'zAueM':function(_0x539031,_0x16520b){const _0x25ea35=_0x50efa;return _0x9d869[_0x25ea35(0x253)](_0x539031,_0x16520b);},'jVWeL':_0x9d869[_0x50efa(0x224)],'HFAaV':function(_0x3b6929,_0x12fa2c){return _0x9d869['kwpGi'](_0x3b6929,_0x12fa2c);},'iAdku':_0x9d869[_0x50efa(0x254)],'XbRVk':_0x9d869[_0x50efa(0x29e)]};if(_0x9d869['wIhvy'](_0x9d869['CveKY'],_0x9d869[_0x50efa(0x2aa)])){const _0x298d5f=[],_0x42889a=[];_0xdab487[_0x50efa(0x2e2)][_0x50efa(0x20c)](_0x4032a7=>{const _0x60f891=_0x50efa;if(_0x19637b[_0x60f891(0x2c1)](_0x19637b[_0x60f891(0x236)],_0x19637b[_0x60f891(0x236)])){const _0x2d9f32=_0x1fd765[_0x60f891(0x2e7)][0x0][_0x60f891(0x246)][0x2][_0x60f891(0x269)],_0x247859=_0x26672f['Stacks'][0x0][_0x60f891(0x246)][0x5]['OutputValue'][_0x60f891(0x213)](',');_0x248a63[_0x60f891(0x234)](_0x60f891(0x2ba)+_0x2d9f32+'\x20'),_0x16019a[_0x60f891(0x234)]('Subnets\x20=>\x20'+_0x247859+'\x20'),_0x1856f3+=_0x60f891(0x2f3)+_0x2d9f32+_0x60f891(0x245)+_0x247859+',\x20';}else _0x298d5f[_0x60f891(0x2b5)](_0x4032a7[_0x60f891(0x201)]);});const _0x51304a=_0x50e769['every'](_0x4dfb48=>{const _0x63a2d8=_0x50efa,_0x5163af={'oUeNe':function(_0x5e0e29,_0x552166){return _0x19637b['xUmtJ'](_0x5e0e29,_0x552166);},'ECZxG':function(_0x3cd20d,_0x3bb588){const _0x174392=a0_0x4900;return _0x19637b[_0x174392(0x230)](_0x3cd20d,_0x3bb588);}};if(_0x19637b[_0x63a2d8(0x2b8)](_0x19637b[_0x63a2d8(0x2df)],_0x19637b[_0x63a2d8(0x27a)])){if(_0x298d5f[_0x63a2d8(0x1ef)](_0x4dfb48))return _0x19637b['zAueM'](_0x19637b[_0x63a2d8(0x2a8)],_0x19637b[_0x63a2d8(0x2a8)])?!![]:![];else{if(_0x19637b[_0x63a2d8(0x2ec)](_0x19637b[_0x63a2d8(0x2fb)],_0x19637b[_0x63a2d8(0x28d)]))return _0x42889a[_0x63a2d8(0x2b5)](_0x4dfb48),![];else{const _0x33c037={};_0x33c037['apiVersion']=_0x19637b[_0x63a2d8(0x2ea)];const _0x4d2a2b=new _0x127e54[(_0x63a2d8(0x281))](_0x33c037);_0x4d2a2b[_0x63a2d8(0x260)]()[_0x63a2d8(0x243)]()[_0x63a2d8(0x1ff)](_0x493738=>{const _0x1faaa7=_0x63a2d8;_0x493738[_0x1faaa7(0x244)][_0x1faaa7(0x1ef)](this['clusterName'])&&_0x5163af['oUeNe'](_0xc41bec,!![]),_0x5163af[_0x1faaa7(0x268)](_0x819c3f,![]);})[_0x63a2d8(0x25b)](_0x39d236=>{const _0x388dd1=_0x63a2d8;_0x479c4a[_0x388dd1(0x2a5)](_0x39d236),_0x5163af[_0x388dd1(0x215)](_0x7a8d41,_0x39d236);});}}}else _0x49f7a7[_0x63a2d8(0x2b5)](_0x1e50cb[_0x63a2d8(0x201)]);});_0x9d869[_0x50efa(0x209)](_0x35d089,[_0x51304a,_0x42889a]);}else{const _0x1697e2={};_0x1697e2[_0x50efa(0x291)]=_0x19637b[_0x50efa(0x2ea)];const _0x134227=new _0x186e65[(_0x50efa(0x281))](_0x1697e2),_0x59f349={};return _0x59f349['name']=this['clusterName'],_0x134227[_0x50efa(0x1fe)](_0x59f349)['promise']();}})[_0x3d9d96(0x25b)](_0x58106d=>{const _0x45e003=_0x3d9d96,_0x29fb3d={};_0x29fb3d[_0x45e003(0x2fc)]=_0x9d869['GRJTl'];const _0x230b63=_0x29fb3d;if(_0x9d869[_0x45e003(0x2d5)](_0x9d869['UdqKF'],_0x9d869['BqUVD']))logger[_0x45e003(0x2a5)](_0x45e003(0x240)+_0x50e769+_0x45e003(0x287)+global_registry['clusterRegion']+'.\x20Error:\x20'+_0x58106d),_0x9d869[_0x45e003(0x270)](_0x35d089,[![],[]]);else{const _0x1a9873={};_0x1a9873[_0x45e003(0x291)]=_0x230b63[_0x45e003(0x2fc)];const _0x5a9cf4=new _0x4d7912[(_0x45e003(0x281))](_0x1a9873),_0x45da3e={};return _0x45da3e['clusterName']=this[_0x45e003(0x2e4)],_0x45da3e[_0x45e003(0x1fa)]=_0x56b47f,_0x5a9cf4[_0x45e003(0x277)](_0x45da3e)[_0x45e003(0x243)]();}});}else _0x39b034[_0x3d9d96(0x1f3)]=_0x453fe0[this[_0x3d9d96(0x2f0)]][_0x3d9d96(0x297)],_0x191952['cloudProviderSecretKey']=_0x764d20[this[_0x3d9d96(0x2f0)]]['secret'];});}}const a0_0x35dd36={};a0_0x35dd36[a0_0x318222(0x1eb)]=AWSCloudProvider,module['exports']=a0_0x35dd36;
@@ -1 +1 @@
1
- const a1_0xcbf54c=a1_0xe8e5;(function(_0x5d4806,_0xbb57d){const _0x27cfbd=a1_0xe8e5,_0x5ea028=_0x5d4806();while(!![]){try{const _0x295c96=-parseInt(_0x27cfbd(0x111))/0x1+parseInt(_0x27cfbd(0x119))/0x2*(parseInt(_0x27cfbd(0x10a))/0x3)+parseInt(_0x27cfbd(0x121))/0x4+parseInt(_0x27cfbd(0x115))/0x5+-parseInt(_0x27cfbd(0x10e))/0x6*(parseInt(_0x27cfbd(0x11e))/0x7)+-parseInt(_0x27cfbd(0x10f))/0x8*(parseInt(_0x27cfbd(0x113))/0x9)+-parseInt(_0x27cfbd(0x118))/0xa*(parseInt(_0x27cfbd(0x10b))/0xb);if(_0x295c96===_0xbb57d)break;else _0x5ea028['push'](_0x5ea028['shift']());}catch(_0x594025){_0x5ea028['push'](_0x5ea028['shift']());}}}(a1_0x11f1,0x99138));function a1_0xe8e5(_0xb08f05,_0x2e1c49){const _0x11f13a=a1_0x11f1();return a1_0xe8e5=function(_0xe8e5e3,_0x45839d){_0xe8e5e3=_0xe8e5e3-0x10a;let _0x4a36cc=_0x11f13a[_0xe8e5e3];return _0x4a36cc;},a1_0xe8e5(_0xb08f05,_0x2e1c49);}const fs=require('fs'),path=require(a1_0xcbf54c(0x116)),yaml=require('js-yaml'),{logger}=require('../config/logger'),{CloudProvider}=require(a1_0xcbf54c(0x112)),{AZURE,WS_EVENTS,global_registry}=require(a1_0xcbf54c(0x120)),{deleteRoutingDeps}=require(a1_0xcbf54c(0x10c));class AzureCloudProvider extends CloudProvider{constructor(_0x2e1774,_0x2d89e1,_0x254a1f,_0x5ba63b){const _0x2e8e0=a1_0xcbf54c,_0x33e050={};_0x33e050[_0x2e8e0(0x11f)]=_0x2e8e0(0x11c);const _0x1e4ea6=_0x33e050,_0x326a17=_0x1e4ea6[_0x2e8e0(0x11f)][_0x2e8e0(0x11b)]('|');let _0x1a82a4=0x0;while(!![]){switch(_0x326a17[_0x1a82a4++]){case'0':super(AZURE,_0x2e1774,_0x2d89e1,_0x254a1f,_0x5ba63b);continue;case'1':this[_0x2e8e0(0x110)]=null;continue;case'2':this[_0x2e8e0(0x10d)]=null;continue;case'3':this[_0x2e8e0(0x11d)]=null;continue;case'4':this['resourceClient']=null;continue;case'5':this[_0x2e8e0(0x117)]=null;continue;}break;}}}function a1_0x11f1(){const _0x5bff8b=['746908bytrUg','321NEdNYI','5489935BvyJsc','../utils/gridComponents','networkClient','1534242TElfwE','3832zmLOaP','storageClient','148572DcGQDB','./CloudProvider','7299Usepet','exports','4959170SDwWsT','path','containerClient','10CsuvWQ','23396qZYtjU','AzureCloudProvider','split','0|3|5|1|4|2','clusterInfo','21EvfxIe','sJXKQ','../config/constants'];a1_0x11f1=function(){return _0x5bff8b;};return a1_0x11f1();}const a1_0x1a3b57={};a1_0x1a3b57[a1_0xcbf54c(0x11a)]=AzureCloudProvider,module[a1_0xcbf54c(0x114)]=a1_0x1a3b57;
1
+ const a1_0x1d3b1e=a1_0x372f;(function(_0x43a192,_0x8dfe7d){const _0x18de7a=a1_0x372f,_0x1c1b9d=_0x43a192();while(!![]){try{const _0x31804a=parseInt(_0x18de7a(0x6e))/0x1+parseInt(_0x18de7a(0x73))/0x2*(parseInt(_0x18de7a(0x71))/0x3)+-parseInt(_0x18de7a(0x72))/0x4+-parseInt(_0x18de7a(0x6c))/0x5+parseInt(_0x18de7a(0x6b))/0x6+-parseInt(_0x18de7a(0x74))/0x7+parseInt(_0x18de7a(0x7a))/0x8*(parseInt(_0x18de7a(0x69))/0x9);if(_0x31804a===_0x8dfe7d)break;else _0x1c1b9d['push'](_0x1c1b9d['shift']());}catch(_0x54d663){_0x1c1b9d['push'](_0x1c1b9d['shift']());}}}(a1_0x3fb7,0x975b2));const fs=require('fs'),path=require(a1_0x1d3b1e(0x6a)),yaml=require(a1_0x1d3b1e(0x79)),{logger}=require('../config/logger'),{CloudProvider}=require(a1_0x1d3b1e(0x78)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x1d3b1e(0x75)),{deleteRoutingDeps}=require('../utils/gridComponents');function a1_0x3fb7(){const _0x27da8c=['4148012UXsCOh','500788fmMLXQ','901985GWyoIe','../config/constants','AzureCloudProvider','EOOHO','./CloudProvider','js-yaml','8defsvT','6958611spgsDy','path','3069930SwLKpm','3512795aEokqS','networkClient','452355pTxZEt','split','exports','9CBcCVD'];a1_0x3fb7=function(){return _0x27da8c;};return a1_0x3fb7();}class AzureCloudProvider extends CloudProvider{constructor(_0x6e0eb6,_0x3c63ba,_0xc1e03,_0x44e7a9){const _0x31b2ae=a1_0x1d3b1e,_0x3ccc56={};_0x3ccc56[_0x31b2ae(0x77)]='0|2|4|5|3|1';const _0x5ca19d=_0x3ccc56,_0x5446e6=_0x5ca19d['EOOHO'][_0x31b2ae(0x6f)]('|');let _0x40216d=0x0;while(!![]){switch(_0x5446e6[_0x40216d++]){case'0':super(AZURE,_0x6e0eb6,_0x3c63ba,_0xc1e03,_0x44e7a9);continue;case'1':this[_0x31b2ae(0x6d)]=null;continue;case'2':this['clusterInfo']=null;continue;case'3':this['resourceClient']=null;continue;case'4':this['containerClient']=null;continue;case'5':this['storageClient']=null;continue;}break;}}}const a1_0x410f25={};function a1_0x372f(_0x104672,_0xfd2b57){const _0x3fb77c=a1_0x3fb7();return a1_0x372f=function(_0x372fb3,_0x4a7a20){_0x372fb3=_0x372fb3-0x69;let _0x8102e4=_0x3fb77c[_0x372fb3];return _0x8102e4;},a1_0x372f(_0x104672,_0xfd2b57);}a1_0x410f25[a1_0x1d3b1e(0x76)]=AzureCloudProvider,module[a1_0x1d3b1e(0x70)]=a1_0x410f25;
@@ -1 +1 @@
1
- var a2_0x33c98e=a2_0x6bd9;function a2_0x176b(){var _0x558b21=['0|1|3|4|2','15829XNcDtA','exports','rws','clusterName','1361970AHgCzr','9dOLBYP','210ZllwJO','cloudProviderName','414012GqCsja','144510cnqehz','CloudProvider','39224MiOeOs','5153944ZkyCfH','14510rAUFEH','1489430KzaQIg','6lUTaga','gridName','webSocketUtils','xfZLy'];a2_0x176b=function(){return _0x558b21;};return a2_0x176b();}(function(_0x33e692,_0xc5ded8){var _0x1612db=a2_0x6bd9,_0x4dfd27=_0x33e692();while(!![]){try{var _0x3bc456=-parseInt(_0x1612db(0x11a))/0x1*(-parseInt(_0x1612db(0x11e))/0x2)+parseInt(_0x1612db(0x114))/0x3*(-parseInt(_0x1612db(0x117))/0x4)+-parseInt(_0x1612db(0x11d))/0x5+-parseInt(_0x1612db(0x118))/0x6*(parseInt(_0x1612db(0x115))/0x7)+-parseInt(_0x1612db(0x11b))/0x8+parseInt(_0x1612db(0x113))/0x9+parseInt(_0x1612db(0x11c))/0xa*(parseInt(_0x1612db(0x123))/0xb);if(_0x3bc456===_0xc5ded8)break;else _0x4dfd27['push'](_0x4dfd27['shift']());}catch(_0x56dd64){_0x4dfd27['push'](_0x4dfd27['shift']());}}}(a2_0x176b,0x5d36b));class CloudProvider{constructor(_0x5cf4b0,_0x4b28c8,_0x24b164,_0x2997ca,_0x37b586){var _0x125244=a2_0x6bd9,_0xaff1c7={};_0xaff1c7[_0x125244(0x121)]=_0x125244(0x122);var _0x4fea63=_0xaff1c7,_0x1a207b=_0x4fea63[_0x125244(0x121)]['split']('|'),_0x23c6a6=0x0;while(!![]){switch(_0x1a207b[_0x23c6a6++]){case'0':this[_0x125244(0x116)]=_0x5cf4b0;continue;case'1':this[_0x125244(0x112)]=_0x4b28c8;continue;case'2':this[_0x125244(0x120)]=_0x37b586;continue;case'3':this[_0x125244(0x11f)]=_0x24b164;continue;case'4':this[_0x125244(0x125)]=_0x2997ca;continue;}break;}}}function a2_0x6bd9(_0x5f14b5,_0x5b5c37){var _0x176bf8=a2_0x176b();return a2_0x6bd9=function(_0x6bd975,_0x13fac0){_0x6bd975=_0x6bd975-0x112;var _0xfe8df7=_0x176bf8[_0x6bd975];return _0xfe8df7;},a2_0x6bd9(_0x5f14b5,_0x5b5c37);}var a2_0x20ea80={};a2_0x20ea80[a2_0x33c98e(0x119)]=CloudProvider,module[a2_0x33c98e(0x124)]=a2_0x20ea80;
1
+ var a2_0x1522c6=a2_0x5f28;function a2_0x3a2c(){var _0x41d7b0=['9878209NCfrOH','126chblOH','223034fGyrUr','clusterName','6jXgPAo','565KTTLLm','kDGmd','216980VTPdoM','rws','349874ljtudD','cloudProviderName','373269hGBPGf','24xXYoYT','73716XmUali','11308bSGtVA','CloudProvider','gridName'];a2_0x3a2c=function(){return _0x41d7b0;};return a2_0x3a2c();}function a2_0x5f28(_0x230442,_0x47c915){var _0x3a2ce5=a2_0x3a2c();return a2_0x5f28=function(_0x5f28c7,_0x5e6314){_0x5f28c7=_0x5f28c7-0x196;var _0x15a77b=_0x3a2ce5[_0x5f28c7];return _0x15a77b;},a2_0x5f28(_0x230442,_0x47c915);}(function(_0x32c6a0,_0xecf419){var _0x3761da=a2_0x5f28,_0xbe5aff=_0x32c6a0();while(!![]){try{var _0x4912bc=parseInt(_0x3761da(0x1a6))/0x1+parseInt(_0x3761da(0x1a1))/0x2*(-parseInt(_0x3761da(0x197))/0x3)+-parseInt(_0x3761da(0x19a))/0x4*(parseInt(_0x3761da(0x1a2))/0x5)+parseInt(_0x3761da(0x199))/0x6+-parseInt(_0x3761da(0x19f))/0x7*(-parseInt(_0x3761da(0x198))/0x8)+parseInt(_0x3761da(0x19e))/0x9*(-parseInt(_0x3761da(0x1a4))/0xa)+parseInt(_0x3761da(0x19d))/0xb;if(_0x4912bc===_0xecf419)break;else _0xbe5aff['push'](_0xbe5aff['shift']());}catch(_0x2e6dd9){_0xbe5aff['push'](_0xbe5aff['shift']());}}}(a2_0x3a2c,0x57b69));class CloudProvider{constructor(_0x5ddf2c,_0x5e9419,_0x10ac01,_0x8f0707,_0x427060){var _0x2d8f56=a2_0x5f28,_0x100b49={};_0x100b49[_0x2d8f56(0x1a3)]='0|4|3|1|2';var _0x52a936=_0x100b49,_0x1d30ad=_0x52a936['kDGmd']['split']('|'),_0x2ccddf=0x0;while(!![]){switch(_0x1d30ad[_0x2ccddf++]){case'0':this[_0x2d8f56(0x196)]=_0x5ddf2c;continue;case'1':this[_0x2d8f56(0x1a5)]=_0x8f0707;continue;case'2':this['webSocketUtils']=_0x427060;continue;case'3':this[_0x2d8f56(0x19c)]=_0x10ac01;continue;case'4':this[_0x2d8f56(0x1a0)]=_0x5e9419;continue;}break;}}}var a2_0x168d07={};a2_0x168d07[a2_0x1522c6(0x19b)]=CloudProvider,module['exports']=a2_0x168d07;
@@ -1 +1 @@
1
- const a3_0x41049c=a3_0x1200;(function(_0x48f927,_0x1c81f8){const _0x1e9c8a=a3_0x1200,_0x391863=_0x48f927();while(!![]){try{const _0x3a0622=parseInt(_0x1e9c8a(0x296))/0x1+-parseInt(_0x1e9c8a(0x298))/0x2+parseInt(_0x1e9c8a(0x21f))/0x3*(-parseInt(_0x1e9c8a(0x234))/0x4)+-parseInt(_0x1e9c8a(0x278))/0x5+-parseInt(_0x1e9c8a(0x252))/0x6+-parseInt(_0x1e9c8a(0x24b))/0x7*(parseInt(_0x1e9c8a(0x166))/0x8)+parseInt(_0x1e9c8a(0x17f))/0x9*(parseInt(_0x1e9c8a(0x1cc))/0xa);if(_0x3a0622===_0x1c81f8)break;else _0x391863['push'](_0x391863['shift']());}catch(_0x348729){_0x391863['push'](_0x391863['shift']());}}}(a3_0x973d,0x2c2b1));function a3_0x973d(){const _0xbc81f1=['ZdQws','MPuCr','KubeConfigTemplate.yaml','FUBNc','accountId','yIypv','sUyfT','xDzCi','CQBIr','193309kyQCZc','list','675890zARvDD','yiLAg','minNodes','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','storage.buckets.listTagBindings','yULgT','execSync','GKE\x20Cluster\x20deletion\x20failed','profileId','AXqmV','setupServiceAccount','zebDP','bxpyG','AglYZ','vmxHV','bsRVw','readFileAsync','tiyzY','dMisF','isBrowserstackCluster','ceOZo','TXWde','password','eEQVq','gcpConfigSet','username','subnetworks','isClusterPresent','KlfIQ','gcp_credentials.json','replace','ynzIh','project_id','writeFileSync','nodePools','templates','status','iamClient','@google-cloud/container','maxNodeCount','cloudProviderName','tMSCH','roles','veUwF','wDjxE','wLKSr','includedPermissions','DONE','SxjfK','Zxqlt','PzdhT','8najUUc','HVqmC','serviceAccountName','Yvqft','DOcIj','SrGff','AqWgQ','hNHmS','Cluster\x20deletion\x20completed','resourcemanagerClient','Nsger','../config/constants','managedby','zDWOL','storage.multipartUploads.create','ijcER','storage.buckets.getObjectInsights','APYYB','iEBTP','deleteCluster','utf-8','RfAuw','webSocketUtils','EqkcM','instanceType','10449fJUEql','scopes','CKsLy','isConfigured','HIuJZ','jTqfQ','members','UUeyU','jxXZW','storage.objects.get','/packages/cli/update-cluster-region','Creating\x20service\x20account','yJHFO','IDKQM','VNiDE','vXpXj','JQiOk','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','vpcInfo','RESOURCES','uZwMS','spPze','Creating\x20GKE\x20Cluster','storage.buckets.delete','sendEventToBackend','ClusterManagerClient','VuDqF','XKhjE','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','getIamPolicy','error','data','config','request','OZkLz','storage.objects.create','eBTiX','UBSBv','mRlli','https://','Cluster\x20creation\x20failed','LOG','GoogleCloudProvider','role','GkrgX','storage.buckets.list','promisify','RUNNING','updateClusterRegion','projects/','rws','clusterRegion','project','mNoRM','MFeQx','kBErd','JEtQB','clusterCaCertificate','method','parse','BjUpC','/clusters/','customRoleName','YysGd','hIFjS','ADWFV','0|6|2|7|3|1|5|4|8','gMoij','xCNGs','BsaaS','log','serviceAccount','dNJvO','PLjRD','cloudProvider','projects','odzlG','8680NFvkOD','googleapis','delay','setConfig','qHbZa','storage.buckets.setIamPolicy','getKubeConfigData','location','@google-cloud/compute','KtnMD','checkServiceAccount','/serviceAccounts/','configureIfNotConfigured','join','NKqQm','concat','getClusterInfo','qOBRz','DgmPM','xBjbJ','CLMUB','VMwLs','OhWpG','exit','ABjsR','rMTcZ','loadBalancer','length','json','parent','masterAuth','JAaOJ','resourceLabels','turboscale_custom_role','clusterName','networkClient','ThNsf','Cannot\x20find\x20subnets\x20','aFdZx','qUqmA','storage.objects.list','dMkyH','iam','storage.buckets.getIamPolicy','/locations/','RlUNQ','mwnue','../config/logger','getClient','rLOYk','type','ghpNp','LNaUu','credentialsPath','toString','storage.buckets.update','default','URJXs','info','fetchLocalCreds','bindings','/subnetworks/','cMUoY','serviceAccounts','fIIAh','EMUMz','mqQLN','gkecluster.json','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','jezkr','qgtjp','.\x20Error:\x20','sXlyH','ehKRz','whxFJ','JBNXJ','createCluster','txVuP','alFvl','KOPbI','feQLc','ISKVa','WxPgE','3kXiKph','Xxlzs','clusters','pTiDt','locations','MPWWO','qHiVi','VxmrZ','kSDPR','WOmlt','GskYx','keyFile','network','rwsSk','eakGN','CsotG','Service\x20account\x20already\x20exists,\x20skipping','jBeyG','isVPCPresent','xHdIa','TWwhx','467292mjRYtl','storage.multipartUploads.listParts','child_process','pUFJb','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','gxdxV','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','xsYLr','path','bstackUsername','llvSN','iam.serviceAccounts.signBlob','oogOa','ceIEU','bWpvC','accessKey','2|4|0|3|5|1','https://www.googleapis.com/auth/cloud-platform','./CloudProvider','aoRPL','storage.buckets.create','sqmRT','YPmuy','270172VDnmSs','projectId','getUserInput','kWAfz','NetworksClient','gxQDL','maxNodes','1357260GafskC','regionmap.json','KWtno','zazPv','../utils/gridComponents','name','create','toLowerCase','storage.buckets.deleteTagBinding','vnkUW','QRHKT','storage.objects.setIamPolicy','body','/regions/','xbKxO','ijsBJ','umgyU','MkgbW','gcpresources','bstackAccesskey','ktQpC','cgcIp','gBPBQ','UEqpT','newRegion','.iam.gserviceaccount.com','get','turboscale-service-account','sendGCPInfoToHST','split','TIljy','UzKJy','pVkja','LErmY','WVquG','https://www.googleapis.com/compute/v1/projects/','gcloud\x20auth\x20login\x20--cred-file=','DcXmC','1502850gOQlFI','storage.multipartUploads.list','subnetwork','requestBody','util','POBpU','containerClient','kOtQg','ZkeoI','pwdLt','Found\x20cluster\x20with\x20name\x20\x27','/global/networks/','PUT','TLCzW','push','autoscaling','dWsFI','auth','message','ingress','listClusters'];a3_0x973d=function(){return _0xbc81f1;};return a3_0x973d();}const fs=require('fs'),path=require(a3_0x41049c(0x23c)),request=require(a3_0x41049c(0x1a0)),util=require(a3_0x41049c(0x27c)),cp=require(a3_0x41049c(0x236)),{google}=require(a3_0x41049c(0x1cd)),compute=require(a3_0x41049c(0x1d4)),container=require(a3_0x41049c(0x2be)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x41049c(0x1fb)),{CloudProvider}=require(a3_0x41049c(0x246)),{getDirForConfig}=require('../utils/utilityMethods'),{deleteRoutingDeps}=require(a3_0x41049c(0x256)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x41049c(0x171)),promisifiedRequest=util[a3_0x41049c(0x1ad)](request);function a3_0x1200(_0x596156,_0x46c2f9){const _0x973d7c=a3_0x973d();return a3_0x1200=function(_0x1200c3,_0x5b519e){_0x1200c3=_0x1200c3-0x15a;let _0x6e122e=_0x973d7c[_0x1200c3];return _0x6e122e;},a3_0x1200(_0x596156,_0x46c2f9);}class GoogleCloudProvider extends CloudProvider{constructor(_0x29d44c,_0x4e5817,_0x16e389,_0x1619dc){const _0x55ef7d=a3_0x41049c,_0x4943a0={};_0x4943a0[_0x55ef7d(0x1c2)]=_0x55ef7d(0x1c1),_0x4943a0[_0x55ef7d(0x21b)]=_0x55ef7d(0x1ed),_0x4943a0[_0x55ef7d(0x220)]=_0x55ef7d(0x26d);const _0x4ef1fc=_0x4943a0,_0x22fba9=_0x4ef1fc[_0x55ef7d(0x1c2)]['split']('|');let _0x247a27=0x0;while(!![]){switch(_0x22fba9[_0x247a27++]){case'0':super(GCP,_0x29d44c,_0x4e5817,_0x16e389,_0x1619dc);continue;case'1':this[_0x55ef7d(0x201)]=null;continue;case'2':this[_0x55ef7d(0x1ef)]=null;continue;case'3':this[_0x55ef7d(0x2bd)]=null;continue;case'4':this[_0x55ef7d(0x1bd)]=_0x4ef1fc[_0x55ef7d(0x21b)];continue;case'5':this[_0x55ef7d(0x24c)]=null;continue;case'6':this[_0x55ef7d(0x27e)]=null;continue;case'7':this['resourcemanagerClient']=null;continue;case'8':this['serviceAccountName']=_0x4ef1fc[_0x55ef7d(0x220)];continue;}break;}}[a3_0x41049c(0x1d8)](){const _0x5a03a0=a3_0x41049c,_0x547050={};_0x547050[_0x5a03a0(0x2a7)]=_0x5a03a0(0x190),_0x547050['JArzu']=function(_0x37e265,_0x4b246c){return _0x37e265!==_0x4b246c;},_0x547050['yFAvI']=_0x5a03a0(0x267),_0x547050[_0x5a03a0(0x272)]='AmCHZ';const _0x5e0d87=_0x547050;!this[_0x5a03a0(0x182)]()&&(_0x5e0d87['JArzu'](_0x5e0d87['yFAvI'],_0x5e0d87[_0x5a03a0(0x272)])?this[_0x5a03a0(0x1cf)]():(_0x5adf94['error'](_0x5e0d87['bsRVw']),_0x4a012f[_0x5a03a0(0x1e3)](0x1)));}['isConfigured'](){const _0x4bd404=a3_0x41049c,_0x506acd={};_0x506acd['yJHFO']=function(_0x490dc9,_0x59350c){return _0x490dc9===_0x59350c;};const _0x2ac7da=_0x506acd;return _0x2ac7da[_0x4bd404(0x18b)](global_registry['gcpConfigSet'],!![]);}[a3_0x41049c(0x1cf)](){const _0x207a53=a3_0x41049c,_0x41d099=this[_0x207a53(0x201)],_0x339ba9={};_0x339ba9[_0x207a53(0x22a)]=_0x41d099,this[_0x207a53(0x27e)]=new container['v1'][(_0x207a53(0x198))](_0x339ba9);const _0xaade54={};_0xaade54['keyFile']=_0x41d099,this[_0x207a53(0x1ef)]=new compute['v1'][(_0x207a53(0x24f))](_0xaade54);const _0x4a3e3c={};_0x4a3e3c[_0x207a53(0x22a)]=_0x41d099,this[_0x207a53(0x16f)]=new ProjectsClient(_0x4a3e3c),this[_0x207a53(0x2bd)]=google['iam']('v1'),global_registry[_0x207a53(0x2b0)]=!![];}async[a3_0x41049c(0x24d)](_0x326ba6,_0x32615b){const _0x47991f=a3_0x41049c,_0x3f14f1={'oogOa':function(_0x5a11c7,_0x24ae2d){return _0x5a11c7(_0x24ae2d);},'VxmrZ':function(_0x4a48cc){return _0x4a48cc();},'AXqmV':_0x47991f(0x2b5)},_0x5a4e14=await _0x3f14f1[_0x47991f(0x240)](_0x326ba6,_0x47991f(0x23a));let _0x1be4b8=await fs[_0x47991f(0x2a8)](_0x5a4e14);_0x1be4b8=_0x1be4b8[_0x47991f(0x202)]();const _0x3dc449=_0x3f14f1[_0x47991f(0x226)](getDirForConfig),_0x406987=path[_0x47991f(0x1d9)](_0x3dc449,_0x3f14f1[_0x47991f(0x2a1)]);fs[_0x47991f(0x2b9)](_0x406987,_0x1be4b8),this[_0x47991f(0x201)]=_0x406987;const _0x223485={};return _0x223485[_0x47991f(0x22a)]=_0x406987,_0x32615b[_0x47991f(0x1c9)][GCP]=_0x223485,_0x1be4b8=JSON[_0x47991f(0x1ba)](_0x1be4b8),this[_0x47991f(0x24c)]=_0x1be4b8[_0x47991f(0x2b8)],_0x32615b;}async[a3_0x41049c(0x207)](_0x288d37){const _0x533c09=a3_0x41049c;this['credentialsPath']=_0x288d37[this[_0x533c09(0x15b)]][_0x533c09(0x22a)];let _0x3b928c=await fs[_0x533c09(0x2a8)](this[_0x533c09(0x201)]);_0x3b928c=JSON[_0x533c09(0x1ba)](_0x3b928c),this[_0x533c09(0x24c)]=_0x3b928c['project_id'];}['getGridHostname'](_0x4ad22d){const _0x3e1bc1=a3_0x41049c;return _0x4ad22d[_0x3e1bc1(0x25e)]['status']['loadBalancer'][_0x3e1bc1(0x28b)][0x0]['ip'];}async[a3_0x41049c(0x2ab)](){const _0x2f241c=a3_0x41049c,_0x5ddcfe={};_0x5ddcfe[_0x2f241c(0x199)]=function(_0x1bc166,_0x12e517){return _0x1bc166+_0x12e517;},_0x5ddcfe[_0x2f241c(0x1c0)]=_0x2f241c(0x22f),_0x5ddcfe[_0x2f241c(0x15e)]=function(_0x473966,_0x3268fd){return _0x473966!==_0x3268fd;},_0x5ddcfe[_0x2f241c(0x1da)]=_0x2f241c(0x273),_0x5ddcfe[_0x2f241c(0x21c)]=function(_0x4752c6,_0x3db0c7){return _0x4752c6===_0x3db0c7;},_0x5ddcfe['llvSN']=_0x2f241c(0x16c),_0x5ddcfe['fdcFh']='browserstack',_0x5ddcfe[_0x2f241c(0x22d)]=_0x2f241c(0x277);const _0x301241=_0x5ddcfe;try{if(_0x301241[_0x2f241c(0x15e)](_0x301241[_0x2f241c(0x1da)],_0x301241[_0x2f241c(0x1da)]))_0x296ebf['clusterRegion']=_0x49e17e[0x0],this[_0x2f241c(0x1af)]();else{const _0x443089=await this['getClusterInfo']();if(_0x443089[0x0]?.[_0x2f241c(0x1ec)]?.[_0x2f241c(0x172)]){if(_0x301241[_0x2f241c(0x21c)](_0x301241[_0x2f241c(0x23e)],_0x301241[_0x2f241c(0x23e)])){const _0x2aaedd=_0x443089[0x0]?.[_0x2f241c(0x1ec)]?.[_0x2f241c(0x172)];return _0x2aaedd&&_0x301241[_0x2f241c(0x21c)](_0x2aaedd[_0x2f241c(0x259)](),_0x301241['fdcFh']);}else _0x39fb38['log']('['+_0x301241[_0x2f241c(0x199)](_0x1f2646,0x1)+']\x20'+_0x221a04[_0x4bc523]);}}}catch(_0x296275){if(_0x301241[_0x2f241c(0x21c)](_0x301241['eakGN'],_0x301241['eakGN']))return![];else{_0x1dd687['info'](_0x301241[_0x2f241c(0x1c0)]);return;}}return![];}async[a3_0x41049c(0x2b3)](){const _0x209659=a3_0x41049c,_0x119b2a={'JAaOJ':function(_0x48ec4e,_0x31d2ff){return _0x48ec4e-_0x31d2ff;},'ynzIh':'GKE\x20Cluster\x20deletion\x20failed','rLOYk':_0x209659(0x1a7),'RfAuw':function(_0x5b61a3,_0x46ba48){return _0x5b61a3===_0x46ba48;},'mqQLN':function(_0x232626,_0x177816){return _0x232626===_0x177816;},'YPmuy':'browserstack','xbKxO':_0x209659(0x2bb),'jxXZW':_0x209659(0x264),'fwEzU':_0x209659(0x253),'vXpXj':'utf-8','WxPgE':function(_0x2aa900,_0x5125ff){return _0x2aa900!==_0x5125ff;},'sPcih':function(_0x3bd9d0,_0x5afbcd){return _0x3bd9d0===_0x5afbcd;},'bWpvC':_0x209659(0x299),'mRlli':_0x209659(0x241),'dMisF':function(_0x3d1a03,_0x39ac30){return _0x3d1a03!==_0x39ac30;},'zazPv':_0x209659(0x227),'qgtjp':'cXbvn','mNoRM':_0x209659(0x20c),'JEtQB':_0x209659(0x160),'KWtno':function(_0x55a80a,_0x436241){return _0x55a80a!==_0x436241;},'Jwvry':function(_0x56194d,_0x5d4000){return _0x56194d!==_0x5d4000;},'LGdjB':'XWbcH','wJTVj':_0x209659(0x18f),'jBeyG':function(_0x5dcd00,_0x5c7241){return _0x5dcd00>_0x5c7241;},'BsaaS':function(_0x2306cf,_0x431b97){return _0x2306cf!==_0x431b97;},'uZwMS':_0x209659(0x237),'sCfbI':function(_0x3b90d7,_0x2feb86){return _0x3b90d7<_0x2feb86;},'CsotG':_0x209659(0x16a),'ABjsR':_0x209659(0x178),'Nsger':function(_0x2be4ec,_0x4cef00){return _0x2be4ec+_0x4cef00;},'zxFnm':function(_0x2f7738,_0x26604f){return _0x2f7738(_0x26604f);},'DgmPM':_0x209659(0x29b),'trziX':function(_0x2aa768,_0x569a2d){return _0x2aa768(_0x569a2d);},'xBjbJ':function(_0x2168a0,_0x196f3b){return _0x2168a0(_0x196f3b);},'rwsSk':function(_0x376e80,_0x42c8d9){return _0x376e80<=_0x42c8d9;},'GkrgX':function(_0x57588d,_0xabf587){return _0x57588d>_0xabf587;},'AglYZ':function(_0x53c6fc,_0x23381d){return _0x53c6fc!==_0x23381d;},'MkgbW':'DLzsL','VNiDE':_0x209659(0x216),'dURDJ':_0x209659(0x190),'IfKEA':function(_0x50cc05){return _0x50cc05();},'qHbZa':function(_0x23887f,_0x5573ba){return _0x23887f-_0x5573ba;},'PzdhT':function(_0x1a64f0,_0x53366d){return _0x1a64f0!==_0x53366d;},'MPWWO':function(_0x42b0f7,_0x4fcf9c){return _0x42b0f7-_0x4fcf9c;},'jezkr':'zpOuU','VMwLs':_0x209659(0x270),'ZdQws':function(_0x2417ed,_0x5c684b){return _0x2417ed-_0x5c684b;}};this[_0x209659(0x1d8)]();let _0x3f7dcf=await fs[_0x209659(0x2a8)](path[_0x209659(0x1d9)](__dirname,'..',_0x119b2a[_0x209659(0x260)],_0x119b2a[_0x209659(0x187)],_0x119b2a['fwEzU']),_0x119b2a[_0x209659(0x18e)]);_0x3f7dcf=JSON['parse'](_0x3f7dcf);let _0xf74b17=[global_registry['clusterRegion']];_0x119b2a[_0x209659(0x21e)](_0x3f7dcf[global_registry[_0x209659(0x1b2)]],undefined)&&(_0x119b2a['sPcih'](_0x119b2a[_0x209659(0x242)],_0x119b2a[_0x209659(0x1a5)])?(_0x1c142b[_0x209659(0x1b2)]=_0x30a78a[_0x119b2a[_0x209659(0x1eb)](_0x1a39cf,0x1)],this[_0x209659(0x1af)]()):_0xf74b17=_0xf74b17[_0x209659(0x1db)](_0x3f7dcf[global_registry[_0x209659(0x1b2)]]));const _0x1bb288=[];for await(let _0x186e67 of _0xf74b17){if(_0x119b2a[_0x209659(0x2aa)](_0x119b2a[_0x209659(0x255)],_0x119b2a[_0x209659(0x255)])){_0x4ffd06[_0x209659(0x206)](_0x119b2a[_0x209659(0x2b7)]);throw _0x2c6273;}else{const _0x42a9a7={};_0x42a9a7[_0x209659(0x1e9)]=_0x209659(0x1b0)+this[_0x209659(0x24c)]+'/locations/'+_0x186e67;const _0x104b16=_0x42a9a7,_0x2ebf18=await this['containerClient'][_0x209659(0x28c)](_0x104b16);for(const _0x34c313 of _0x2ebf18[0x0][_0x209659(0x221)]){if(_0x119b2a[_0x209659(0x21e)](_0x119b2a[_0x209659(0x212)],_0x119b2a['qgtjp']))_0x239d17[_0x209659(0x206)](_0x119b2a[_0x209659(0x1fd)]);else{if(_0x119b2a[_0x209659(0x17b)](_0x34c313['name'],this['clusterName'])){if(_0x119b2a[_0x209659(0x17b)](_0x119b2a[_0x209659(0x1b4)],_0x119b2a[_0x209659(0x1b4)]))_0x1bb288[_0x209659(0x286)](_0x186e67);else return _0x4861cf[_0x209659(0x19d)](_0x209659(0x1f1)+_0x54a152+_0x209659(0x213)+_0x823587),[![],[]];}}}}}const _0x221110=_0x1bb288[_0x209659(0x1e7)];if(_0x119b2a[_0x209659(0x20e)](_0x221110,0x1)){if(_0x119b2a[_0x209659(0x17b)](_0x119b2a[_0x209659(0x1b7)],_0x119b2a[_0x209659(0x1b7)])){if(_0x119b2a[_0x209659(0x254)](global_registry[_0x209659(0x1b2)],_0x1bb288[0x0])){if(_0x119b2a['Jwvry'](_0x119b2a['LGdjB'],_0x119b2a['wJTVj']))global_registry[_0x209659(0x1b2)]=_0x1bb288[0x0],this[_0x209659(0x1af)]();else return![];}return!![];}else this[_0x209659(0x1cf)]();}else{if(_0x119b2a[_0x209659(0x230)](_0x221110,0x1)){if(_0x119b2a[_0x209659(0x1c4)](_0x119b2a['uZwMS'],_0x119b2a[_0x209659(0x193)]))_0x119b2a['RfAuw'](_0x1fd15c[_0x209659(0x257)],this[_0x209659(0x1ee)])&&_0x2bee7b[_0x209659(0x286)](_0x3bb7b3);else{console[_0x209659(0x1c5)](_0x209659(0x282)+this[_0x209659(0x1ee)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x14a2f1=0x0;_0x119b2a['sCfbI'](_0x14a2f1,_0x221110);_0x14a2f1+=0x1){if(_0x119b2a['dMisF'](_0x119b2a[_0x209659(0x22e)],_0x119b2a[_0x209659(0x1e4)]))console[_0x209659(0x1c5)]('['+_0x119b2a[_0x209659(0x170)](_0x14a2f1,0x1)+']\x20'+_0x1bb288[_0x14a2f1]);else return[!![],_0x268bcf];}const _0x59b5b7=await _0x119b2a['zxFnm'](inputConfirmation,_0x119b2a[_0x209659(0x1de)]),_0x2bf17f=_0x119b2a['trziX'](Number,_0x59b5b7);if(_0x119b2a[_0x209659(0x1df)](isNaN,_0x2bf17f)||_0x119b2a[_0x209659(0x22c)](_0x2bf17f,0x0)||_0x119b2a[_0x209659(0x1ab)](_0x2bf17f,_0x221110)){if(_0x119b2a[_0x209659(0x2a5)](_0x119b2a[_0x209659(0x263)],_0x119b2a[_0x209659(0x18d)]))console[_0x209659(0x19d)](_0x119b2a['dURDJ']),process[_0x209659(0x1e3)](0x1);else{const _0x4816c1=_0x1bd1ff[0x0]?.['resourceLabels']?.['managedby'];return _0x4816c1&&_0x119b2a['mqQLN'](_0x4816c1[_0x209659(0x259)](),_0x119b2a[_0x209659(0x24a)]);}}_0x119b2a['IfKEA'](closeInput),logger[_0x209659(0x206)](_0x209659(0x238)+_0x1bb288[_0x119b2a[_0x209659(0x1d0)](_0x2bf17f,0x1)]);if(_0x119b2a[_0x209659(0x165)](global_registry[_0x209659(0x1b2)],_0x1bb288[_0x119b2a[_0x209659(0x224)](_0x2bf17f,0x1)])){if(_0x119b2a['mqQLN'](_0x119b2a[_0x209659(0x211)],_0x119b2a[_0x209659(0x1e1)]))return!![];else global_registry[_0x209659(0x1b2)]=_0x1bb288[_0x119b2a[_0x209659(0x28d)](_0x2bf17f,0x1)],this[_0x209659(0x1af)]();}return!![];}}}return![];}async[a3_0x41049c(0x1dc)](){const _0x254ff4=a3_0x41049c,_0x423222=await this[_0x254ff4(0x27e)]['getCluster']({'name':_0x254ff4(0x1b0)+this[_0x254ff4(0x24c)]+_0x254ff4(0x1f8)+global_registry[_0x254ff4(0x1b2)]+_0x254ff4(0x1bc)+this[_0x254ff4(0x1ee)]});return _0x423222;}async[a3_0x41049c(0x1d2)](){const _0x2fc2ec=a3_0x41049c,_0x5b68ce={};_0x5b68ce[_0x2fc2ec(0x184)]=_0x2fc2ec(0x2bb),_0x5b68ce[_0x2fc2ec(0x280)]=_0x2fc2ec(0x264),_0x5b68ce[_0x2fc2ec(0x20a)]=_0x2fc2ec(0x28f);const _0x4ba631=_0x5b68ce;cp[_0x2fc2ec(0x29e)](_0x2fc2ec(0x19b)),cp['exec'](_0x2fc2ec(0x276)+this['credentialsPath']);const _0x1cef9f=await this['getClusterInfo'](),_0x3dd142='gke_'+this[_0x2fc2ec(0x24c)]+'_'+global_registry[_0x2fc2ec(0x1b2)]+'_'+this[_0x2fc2ec(0x1ee)];let _0xa29dd9=await fs[_0x2fc2ec(0x2a8)](path['join'](__dirname,'..',_0x4ba631[_0x2fc2ec(0x184)],_0x4ba631[_0x2fc2ec(0x280)],_0x4ba631['cMUoY']));return _0xa29dd9=_0xa29dd9[_0x2fc2ec(0x202)](),_0xa29dd9=_0xa29dd9[_0x2fc2ec(0x2b6)](/<CLUSTER_NAME>/g,_0x3dd142),_0xa29dd9=_0xa29dd9[_0x2fc2ec(0x2b6)](/<CLUSTER_URL>/g,'https://'+_0x1cef9f[0x0]['endpoint']),_0xa29dd9=_0xa29dd9[_0x2fc2ec(0x2b6)](/<CERTIFICATE_DATA>/g,_0x1cef9f[0x0][_0x2fc2ec(0x1ea)][_0x2fc2ec(0x1b8)]),_0xa29dd9;}async[a3_0x41049c(0x1d6)](){const _0x4e17a7=a3_0x41049c,_0x2f9592={};_0x2f9592['umgyU']=function(_0x7e72fb,_0x4089db){return _0x7e72fb!==_0x4089db;},_0x2f9592[_0x4e17a7(0x1dd)]=_0x4e17a7(0x245),_0x2f9592[_0x4e17a7(0x2ac)]=_0x4e17a7(0x1be),_0x2f9592[_0x4e17a7(0x228)]=function(_0x32576c,_0x203b8b){return _0x32576c===_0x203b8b;},_0x2f9592[_0x4e17a7(0x21a)]=function(_0x3233c0,_0x33011){return _0x3233c0===_0x33011;},_0x2f9592[_0x4e17a7(0x200)]='gqTES',_0x2f9592['wDjxE']=_0x4e17a7(0x24e);const _0xc82886=_0x2f9592,_0x2f9d83={};_0x2f9d83[_0x4e17a7(0x180)]=[_0xc82886[_0x4e17a7(0x1dd)]],_0x2f9d83['keyFile']=this['credentialsPath'];const _0x13c94a=await google[_0x4e17a7(0x289)][_0x4e17a7(0x1fc)](_0x2f9d83),_0x59ed93=await this['iamClient'][_0x4e17a7(0x1ca)][_0x4e17a7(0x20b)][_0x4e17a7(0x297)]({'name':_0x4e17a7(0x1b0)+this[_0x4e17a7(0x24c)],'auth':_0x13c94a});for(const _0x4451e6 of _0x59ed93?.[_0x4e17a7(0x19e)]?.['accounts']){if(_0xc82886[_0x4e17a7(0x262)](_0xc82886[_0x4e17a7(0x2ac)],_0xc82886['ceOZo']))return _0xc82886['umgyU'](_0x57d3db[_0x4e17a7(0x1b2)],_0x5d9e78[0x0])&&(_0x97c9b2['clusterRegion']=_0x4f8cd6[0x0],this[_0x4e17a7(0x1af)]()),!![];else{if(_0xc82886['WOmlt'](_0x4451e6?.['name'],_0x4e17a7(0x1b0)+this[_0x4e17a7(0x24c)]+_0x4e17a7(0x1d7)+this[_0x4e17a7(0x168)]+'@'+this[_0x4e17a7(0x24c)]+'.iam.gserviceaccount.com')){if(_0xc82886[_0x4e17a7(0x21a)](_0xc82886[_0x4e17a7(0x200)],_0xc82886[_0x4e17a7(0x15f)]))_0x135c86[_0x4e17a7(0x286)](_0xe32a6f);else return!![];}}}return![];}async[a3_0x41049c(0x2a2)](){const _0x5288a1=a3_0x41049c,_0x5f59f3={};_0x5f59f3[_0x5288a1(0x1f5)]=function(_0x563969,_0x8bd692){return _0x563969===_0x8bd692;},_0x5f59f3[_0x5288a1(0x1b5)]=_0x5288a1(0x2a4),_0x5f59f3[_0x5288a1(0x271)]=_0x5288a1(0x215),_0x5f59f3[_0x5288a1(0x1c3)]=_0x5288a1(0x22f),_0x5f59f3[_0x5288a1(0x274)]=_0x5288a1(0x18a),_0x5f59f3[_0x5288a1(0x295)]=_0x5288a1(0x245),_0x5f59f3[_0x5288a1(0x217)]=_0x5288a1(0x23f),_0x5f59f3[_0x5288a1(0x1bb)]=_0x5288a1(0x248),_0x5f59f3[_0x5288a1(0x27d)]='storage.buckets.createTagBinding',_0x5f59f3[_0x5288a1(0x1b6)]=_0x5288a1(0x196),_0x5f59f3[_0x5288a1(0x229)]=_0x5288a1(0x25a),_0x5f59f3[_0x5288a1(0x181)]='storage.buckets.get',_0x5f59f3['APYYB']=_0x5288a1(0x1f7),_0x5f59f3[_0x5288a1(0x1c8)]=_0x5288a1(0x176),_0x5f59f3[_0x5288a1(0x173)]=_0x5288a1(0x1ac),_0x5f59f3[_0x5288a1(0x2a3)]='storage.buckets.listEffectiveTags',_0x5f59f3['qUqmA']=_0x5288a1(0x29c),_0x5f59f3['JIUea']=_0x5288a1(0x1d1),_0x5f59f3[_0x5288a1(0x28e)]=_0x5288a1(0x203),_0x5f59f3[_0x5288a1(0x2a6)]='storage.multipartUploads.abort',_0x5f59f3[_0x5288a1(0x169)]=_0x5288a1(0x174),_0x5f59f3['SrGff']=_0x5288a1(0x279),_0x5f59f3[_0x5288a1(0x19a)]=_0x5288a1(0x235),_0x5f59f3['txVuP']=_0x5288a1(0x1a2),_0x5f59f3[_0x5288a1(0x164)]='storage.objects.delete',_0x5f59f3[_0x5288a1(0x29d)]=_0x5288a1(0x188),_0x5f59f3[_0x5288a1(0x1e5)]='storage.objects.getIamPolicy',_0x5f59f3[_0x5288a1(0x16d)]=_0x5288a1(0x1f4),_0x5f59f3[_0x5288a1(0x1cb)]=_0x5288a1(0x25d),_0x5f59f3['URJXs']='storage.objects.update',_0x5f59f3[_0x5288a1(0x163)]='Turboscale\x20Custom\x20Role',_0x5f59f3[_0x5288a1(0x293)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x4ab46a=_0x5f59f3,_0x575496=await this[_0x5288a1(0x1d6)]();if(_0x575496){if(_0x4ab46a[_0x5288a1(0x1f5)](_0x4ab46a[_0x5288a1(0x1b5)],_0x4ab46a[_0x5288a1(0x271)]))_0x21e085=_0x123f29['concat'](_0x4ea9e0[_0x10b46e[_0x5288a1(0x1b2)]]);else{logger[_0x5288a1(0x206)](_0x4ab46a['xCNGs']);return;}}logger['info'](_0x4ab46a['WVquG']);const _0x49bd43={};_0x49bd43[_0x5288a1(0x180)]=[_0x4ab46a['CQBIr']],_0x49bd43[_0x5288a1(0x22a)]=this['credentialsPath'];const _0x3a1aff=await google[_0x5288a1(0x289)]['getClient'](_0x49bd43),_0x3a5c1e={};_0x3a5c1e[_0x5288a1(0x161)]=[_0x4ab46a['JBNXJ'],_0x4ab46a['BjUpC'],_0x4ab46a[_0x5288a1(0x27d)],_0x4ab46a[_0x5288a1(0x1b6)],_0x4ab46a[_0x5288a1(0x229)],_0x4ab46a[_0x5288a1(0x181)],_0x4ab46a[_0x5288a1(0x177)],_0x4ab46a['PLjRD'],_0x4ab46a[_0x5288a1(0x173)],_0x4ab46a['zebDP'],_0x4ab46a[_0x5288a1(0x1f3)],_0x4ab46a['JIUea'],_0x4ab46a[_0x5288a1(0x28e)],_0x4ab46a[_0x5288a1(0x2a6)],_0x4ab46a[_0x5288a1(0x169)],_0x4ab46a[_0x5288a1(0x16b)],_0x4ab46a[_0x5288a1(0x19a)],_0x4ab46a[_0x5288a1(0x219)],_0x4ab46a[_0x5288a1(0x164)],_0x4ab46a['yULgT'],_0x4ab46a['rMTcZ'],_0x4ab46a[_0x5288a1(0x16d)],_0x4ab46a['odzlG'],_0x4ab46a[_0x5288a1(0x205)]],_0x3a5c1e['title']=_0x4ab46a['SxjfK'],await this['iamClient']['organizations'][_0x5288a1(0x15d)][_0x5288a1(0x258)]({'parent':_0x5288a1(0x1b0)+this['projectId'],'requestBody':{'role':_0x3a5c1e,'roleId':this[_0x5288a1(0x1bd)]},'auth':_0x3a1aff});const _0x5b2946={};_0x5b2946[_0x5288a1(0x257)]=_0x5288a1(0x1b0)+this[_0x5288a1(0x24c)],_0x5b2946[_0x5288a1(0x27b)]={},_0x5b2946['auth']=_0x3a1aff,_0x5b2946[_0x5288a1(0x27b)][_0x5288a1(0x291)]=this[_0x5288a1(0x168)];const _0x55162c=_0x5b2946;await this[_0x5288a1(0x2bd)][_0x5288a1(0x1ca)][_0x5288a1(0x20b)][_0x5288a1(0x258)](_0x55162c);let _0x2fade9=await this[_0x5288a1(0x16f)][_0x5288a1(0x19c)]({'resource':_0x5288a1(0x1b0)+this[_0x5288a1(0x24c)]});_0x2fade9=_0x2fade9[0x0]['bindings'];const _0x141059={};_0x141059[_0x5288a1(0x1aa)]='projects/'+this['projectId']+'/roles/'+this[_0x5288a1(0x1bd)],_0x141059[_0x5288a1(0x185)]=['serviceAccount:'+this['serviceAccountName']+'@'+this['projectId']+_0x5288a1(0x26b)],_0x2fade9[_0x5288a1(0x286)](_0x141059);const _0x34fb5e={};_0x34fb5e[_0x5288a1(0x208)]=_0x2fade9,await this[_0x5288a1(0x16f)]['setIamPolicy']({'resource':_0x5288a1(0x1b0)+this[_0x5288a1(0x24c)],'policy':_0x34fb5e}),logger['info'](_0x4ab46a[_0x5288a1(0x293)]);}async['setupNewCluster'](_0x72a263='default',_0x25a169=[a3_0x41049c(0x204)]){const _0x356950=a3_0x41049c,_0x21af19={};_0x21af19[_0x356950(0x167)]=_0x356950(0x244),_0x21af19['tRQGl']='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x21af19[_0x356950(0x232)]=_0x356950(0x210);const _0x1ab84a=_0x21af19,_0x151dad=_0x1ab84a[_0x356950(0x167)][_0x356950(0x26f)]('|');let _0x5c5002=0x0;while(!![]){switch(_0x151dad[_0x5c5002++]){case'0':logger[_0x356950(0x206)](_0x1ab84a['tRQGl']);continue;case'1':return!![];case'2':this[_0x356950(0x26e)](this[_0x356950(0x1b1)]);continue;case'3':await this['setupServiceAccount']();continue;case'4':const _0x237026={};_0x237026[_0x356950(0x1fe)]=WS_EVENTS[_0x356950(0x1a8)],_0x237026[_0x356950(0x28a)]=_0x1ab84a[_0x356950(0x232)],this['webSocketUtils']['sendEventToBackend'](this[_0x356950(0x1b1)],_0x237026);continue;case'5':await this['createCluster'](_0x72a263,_0x25a169);continue;}break;}}async[a3_0x41049c(0x218)](_0x1a633a=a3_0x41049c(0x204),_0x66a22e=[a3_0x41049c(0x204)]){const _0x9b2db7=a3_0x41049c,_0x436a68={};_0x436a68['yIypv']=function(_0x343e41,_0x234c79){return _0x343e41===_0x234c79;},_0x436a68[_0x9b2db7(0x1d5)]=_0x9b2db7(0x247),_0x436a68['nojFi']='XQrdd',_0x436a68[_0x9b2db7(0x288)]=_0x9b2db7(0x195),_0x436a68['qHiVi']=_0x9b2db7(0x2bb),_0x436a68[_0x9b2db7(0x23b)]=_0x9b2db7(0x264),_0x436a68[_0x9b2db7(0x239)]=_0x9b2db7(0x20f),_0x436a68[_0x9b2db7(0x21d)]=_0x9b2db7(0x17a),_0x436a68[_0x9b2db7(0x250)]='regionmap.json',_0x436a68[_0x9b2db7(0x1a1)]=function(_0x5d4cee,_0x418f6f){return _0x5d4cee*_0x418f6f;},_0x436a68[_0x9b2db7(0x1f9)]=function(_0x5c2fa6,_0x3d24e5){return _0x5c2fa6===_0x3d24e5;},_0x436a68['dNJvO']=_0x9b2db7(0x1f0),_0x436a68[_0x9b2db7(0x183)]=_0x9b2db7(0x1e0),_0x436a68[_0x9b2db7(0x1a3)]=function(_0x338825,_0x117d13){return _0x338825!==_0x117d13;},_0x436a68[_0x9b2db7(0x2af)]=_0x9b2db7(0x2ad),_0x436a68[_0x9b2db7(0x214)]='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x436a68[_0x9b2db7(0x281)]=_0x9b2db7(0x1bf),_0x436a68['gkgUF']=_0x9b2db7(0x1ff),_0x436a68['TLCzW']='Cluster\x20creation\x20failed';const _0x3184c3=_0x436a68;try{if(_0x3184c3['yIypv'](_0x3184c3['KtnMD'],_0x3184c3['nojFi']))_0x2f248f[_0x9b2db7(0x191)][_0x9b2db7(0x286)](_0x3eb845);else{logger[_0x9b2db7(0x206)](_0x3184c3[_0x9b2db7(0x288)]);let _0x1af86e=await fs[_0x9b2db7(0x2a8)](path[_0x9b2db7(0x1d9)](__dirname,'..',_0x3184c3[_0x9b2db7(0x225)],_0x3184c3['xsYLr'],_0x3184c3['gxdxV']),_0x3184c3[_0x9b2db7(0x21d)]);_0x1af86e=JSON[_0x9b2db7(0x1ba)](_0x1af86e);let _0x354c63=await fs['readFileAsync'](path[_0x9b2db7(0x1d9)](__dirname,'..',_0x3184c3[_0x9b2db7(0x225)],_0x3184c3[_0x9b2db7(0x23b)],_0x3184c3[_0x9b2db7(0x250)]),_0x3184c3[_0x9b2db7(0x21d)]);_0x354c63=JSON[_0x9b2db7(0x1ba)](_0x354c63),_0x1af86e[_0x9b2db7(0x257)]=this[_0x9b2db7(0x1ee)],_0x1af86e[_0x9b2db7(0x2ba)][0x0][_0x9b2db7(0x19f)]['machineType']=global_registry[_0x9b2db7(0x17e)],_0x1af86e[_0x9b2db7(0x2ba)][0x0][_0x9b2db7(0x19f)][_0x9b2db7(0x1c6)]=this['serviceAccountName']+'@'+this[_0x9b2db7(0x24c)]+_0x9b2db7(0x26b),_0x1af86e['nodePools'][0x0]['autoscaling']['minNodeCount']=global_registry[_0x9b2db7(0x29a)],_0x1af86e['nodePools'][0x0][_0x9b2db7(0x287)][_0x9b2db7(0x15a)]=global_registry[_0x9b2db7(0x251)],_0x1af86e[_0x9b2db7(0x1d3)]=global_registry[_0x9b2db7(0x1b2)],_0x1af86e[_0x9b2db7(0x223)]=[_0x354c63[global_registry['clusterRegion']][0x0]],_0x1af86e[_0x9b2db7(0x22b)]=_0x9b2db7(0x1b0)+this[_0x9b2db7(0x24c)]+_0x9b2db7(0x283)+_0x1a633a,_0x1af86e[_0x9b2db7(0x27a)]=_0x9b2db7(0x1b0)+this[_0x9b2db7(0x24c)]+_0x9b2db7(0x25f)+global_registry['clusterRegion']+_0x9b2db7(0x209)+_0x66a22e[0x0];const _0xa29458=await this[_0x9b2db7(0x27e)]['createCluster']({'cluster':_0x1af86e,'parent':_0x9b2db7(0x1b0)+this[_0x9b2db7(0x24c)]+_0x9b2db7(0x1f8)+global_registry[_0x9b2db7(0x1b2)]});await this[_0x9b2db7(0x17c)][_0x9b2db7(0x1ce)](_0x3184c3[_0x9b2db7(0x1a1)](_0x3184c3[_0x9b2db7(0x1a1)](0x7,0x3c),0x3e8));}}catch(_0x282bc1){if(_0x3184c3['RlUNQ'](_0x3184c3[_0x9b2db7(0x1c7)],_0x3184c3[_0x9b2db7(0x183)])){const _0x1722a8=_0x9b2db7(0x275)+this[_0x9b2db7(0x24c)]+_0x9b2db7(0x25f)+_0x36a39a[_0x9b2db7(0x1b2)]+_0x9b2db7(0x209)+_0x352800[0x0];if(_0x3184c3[_0x9b2db7(0x292)](_0x1722a8,_0x2547c3))return[!![],_0x5a72e6];}else{const _0x59d901=await this[_0x9b2db7(0x2b3)]();if(_0x59d901){if(_0x3184c3[_0x9b2db7(0x1a3)](_0x3184c3[_0x9b2db7(0x2af)],_0x3184c3[_0x9b2db7(0x2af)]))return _0x3184c3[_0x9b2db7(0x292)](_0x4cf55e['gcpConfigSet'],!![]);else logger['info'](_0x3184c3[_0x9b2db7(0x214)],_0x282bc1['stack']),await this[_0x9b2db7(0x179)]();}else{if(_0x3184c3[_0x9b2db7(0x1a3)](_0x3184c3[_0x9b2db7(0x281)],_0x3184c3['gkgUF']))logger['info'](_0x3184c3[_0x9b2db7(0x285)]);else{const _0x546dde=this[_0x9b2db7(0x201)],_0x1920be={};_0x1920be[_0x9b2db7(0x22a)]=_0x546dde,this['containerClient']=new _0x101a7c['v1'][(_0x9b2db7(0x198))](_0x1920be);const _0x3281bd={};_0x3281bd['keyFile']=_0x546dde,this[_0x9b2db7(0x1ef)]=new _0x30c2eb['v1'][(_0x9b2db7(0x24f))](_0x3281bd);const _0x56590b={};_0x56590b['keyFile']=_0x546dde,this[_0x9b2db7(0x16f)]=new _0x1e1c86(_0x56590b),this[_0x9b2db7(0x2bd)]=_0x33880c[_0x9b2db7(0x1f6)]('v1'),_0x43696f[_0x9b2db7(0x2b0)]=!![];}}throw _0x282bc1;}}}async[a3_0x41049c(0x179)](_0x4277da,_0x59601b){const _0xe047b2=a3_0x41049c,_0x22ee80={'spPze':function(_0x5e00a8,_0x22e91e){return _0x5e00a8!==_0x22e91e;},'ijsBJ':'cKglg','IDKQM':function(_0x3bc6bb,_0x50fbdc){return _0x3bc6bb(_0x50fbdc);},'sqmRT':function(_0x5d358e,_0x339d07){return _0x5d358e===_0x339d07;},'FUBNc':_0xe047b2(0x1ae),'xDzCi':_0xe047b2(0x162),'UEqpT':'SRoWV','OhWpG':_0xe047b2(0x20d),'mwnue':_0xe047b2(0x1a4),'pTiDt':_0xe047b2(0x29f)};try{if(_0x22ee80[_0xe047b2(0x194)](_0x22ee80[_0xe047b2(0x261)],_0x22ee80[_0xe047b2(0x261)]))return!![];else{await _0x22ee80[_0xe047b2(0x18c)](deleteRoutingDeps,_0x4277da),logger[_0xe047b2(0x206)]('Deleting\x20the\x20cluster\x20'+this[_0xe047b2(0x1ee)]);const _0x507122=await this[_0xe047b2(0x27e)][_0xe047b2(0x179)]({'name':_0xe047b2(0x1b0)+this[_0xe047b2(0x24c)]+_0xe047b2(0x1f8)+global_registry[_0xe047b2(0x1b2)]+_0xe047b2(0x1bc)+this[_0xe047b2(0x1ee)]});if(_0x22ee80[_0xe047b2(0x249)](_0x507122[0x0]?.['status'],_0x22ee80[_0xe047b2(0x290)])||_0x22ee80['sqmRT'](_0x507122[0x0]?.[_0xe047b2(0x2bc)],_0x22ee80[_0xe047b2(0x294)])){if(_0x22ee80[_0xe047b2(0x194)](_0x22ee80[_0xe047b2(0x269)],_0x22ee80[_0xe047b2(0x269)]))!this[_0xe047b2(0x182)]()&&this[_0xe047b2(0x1cf)]();else return!![];}logger['info'](_0xe047b2(0x16e));}}catch(_0x2b25d3){if(_0x22ee80[_0xe047b2(0x194)](_0x22ee80[_0xe047b2(0x1e2)],_0x22ee80[_0xe047b2(0x1fa)])){logger[_0xe047b2(0x206)](_0x22ee80[_0xe047b2(0x222)]);throw _0x2b25d3;}else return!![];}}async[a3_0x41049c(0x231)](_0x57744e){const _0x46e66c=a3_0x41049c,_0x313b15={};_0x313b15[_0x46e66c(0x2b4)]=function(_0x4f1868,_0x4f31c2){return _0x4f1868===_0x4f31c2;},_0x313b15['kOtQg']=function(_0x58d821,_0x1d35c9){return _0x58d821===_0x1d35c9;},_0x313b15[_0x46e66c(0x25b)]=_0x46e66c(0x266),_0x313b15['UUeyU']='lwpHK',_0x313b15[_0x46e66c(0x25c)]=function(_0x2e5cee,_0x2b2cd7){return _0x2e5cee>_0x2b2cd7;},_0x313b15[_0x46e66c(0x17d)]=function(_0x51cebd,_0x1937fd){return _0x51cebd===_0x1937fd;},_0x313b15[_0x46e66c(0x1f2)]=function(_0x48cecd,_0x56ebd9){return _0x48cecd!==_0x56ebd9;},_0x313b15['BrgUQ']=_0x46e66c(0x15c),_0x313b15[_0x46e66c(0x233)]=function(_0x29ab6c,_0x577fb6){return _0x29ab6c===_0x577fb6;},_0x313b15['ijcER']='ugNvP';const _0x34f758=_0x313b15;try{if(_0x34f758[_0x46e66c(0x27f)](_0x34f758[_0x46e66c(0x25b)],_0x34f758[_0x46e66c(0x186)]))return _0x10fd78[_0x46e66c(0x25e)][_0x46e66c(0x2bc)][_0x46e66c(0x1e6)][_0x46e66c(0x28b)][0x0]['ip'];else{const _0x13207d={};_0x13207d[_0x46e66c(0x1b3)]=projectId,_0x13207d[_0x46e66c(0x22b)]=_0x57744e;const _0x180f30=await networkClient[_0x46e66c(0x26c)](_0x13207d);if(_0x34f758[_0x46e66c(0x25c)](_0x180f30[_0x46e66c(0x1e7)],0x0)&&_0x34f758[_0x46e66c(0x17d)](_0x180f30[0x0][_0x46e66c(0x257)],_0x57744e)){if(_0x34f758[_0x46e66c(0x1f2)](_0x34f758['BrgUQ'],_0x34f758['BrgUQ'])){if(_0x34f758[_0x46e66c(0x2b4)](_0x363b4b?.['name'],_0x46e66c(0x1b0)+this[_0x46e66c(0x24c)]+_0x46e66c(0x1d7)+this['serviceAccountName']+'@'+this[_0x46e66c(0x24c)]+_0x46e66c(0x26b)))return!![];}else return!![];}}}catch(_0x5e0b8f){return _0x34f758['TWwhx'](_0x34f758[_0x46e66c(0x175)],_0x34f758[_0x46e66c(0x175)])?![]:![];}return![];}async['isSubnetsValid'](_0x59cbd3,_0x5ce925){const _0x4f4525=a3_0x41049c,_0x32392a={};_0x32392a[_0x4f4525(0x2a9)]=function(_0x3613ae,_0x7751be){return _0x3613ae===_0x7751be;};const _0x319a8c=_0x32392a;try{const _0x2e3159={};_0x2e3159[_0x4f4525(0x1b3)]=projectId,_0x2e3159[_0x4f4525(0x22b)]=_0x5ce925;const _0x4310e6=await networkClient[_0x4f4525(0x26c)](_0x2e3159);for(const _0x48ea of _0x4310e6[0x0][_0x4f4525(0x2b2)]){const _0x53a946=_0x4f4525(0x275)+this[_0x4f4525(0x24c)]+_0x4f4525(0x25f)+global_registry['clusterRegion']+_0x4f4525(0x209)+_0x59cbd3[0x0];if(_0x319a8c['tiyzY'](_0x53a946,_0x48ea))return[!![],_0x59cbd3];}}catch(_0xa764f3){return logger[_0x4f4525(0x19d)](_0x4f4525(0x1f1)+_0x59cbd3+_0x4f4525(0x213)+_0xa764f3),[![],[]];}return[![],[]];}async[a3_0x41049c(0x26e)](){const _0x29f977=a3_0x41049c,_0x166fad=await this[_0x29f977(0x1ef)][_0x29f977(0x297)]({'project':this[_0x29f977(0x24c)]}),_0x3e701={};_0x3e701[_0x29f977(0x2b1)]=global_registry[_0x29f977(0x23d)],_0x3e701[_0x29f977(0x243)]=global_registry['bstackAccesskey'],_0x3e701['cloudProvider']=GCP,_0x3e701[_0x29f977(0x191)]=[];const _0x307dbe=_0x3e701;for(const _0x5efdcc of _0x166fad){_0x307dbe[_0x29f977(0x191)][_0x29f977(0x286)](_0x5efdcc);}const _0x45b27e={};_0x45b27e[_0x29f977(0x1fe)]=WS_EVENTS[_0x29f977(0x192)],_0x45b27e[_0x29f977(0x28a)]=_0x307dbe,this[_0x29f977(0x17c)][_0x29f977(0x197)](this[_0x29f977(0x1b1)],_0x45b27e);}async[a3_0x41049c(0x1af)](){const _0x546668=a3_0x41049c,_0x23ad11={'gBPBQ':_0x546668(0x284),'IMFhX':function(_0x1d92c0,_0x36d5c6){return _0x1d92c0(_0x36d5c6);}},_0x515cf9=_0x546668(0x1a6)+AG_API_URL+_0x546668(0x189),_0x4e22bc={};_0x4e22bc[_0x546668(0x2a0)]=global_registry['gridProfileId'];const _0x188655={};_0x188655[_0x546668(0x26a)]=global_registry[_0x546668(0x1b2)];const _0x3ad4de={};_0x3ad4de[_0x546668(0x2b1)]=global_registry[_0x546668(0x23d)],_0x3ad4de[_0x546668(0x2ae)]=global_registry[_0x546668(0x265)];const _0x58ef98={};_0x58ef98['url']=_0x515cf9,_0x58ef98['qs']=_0x4e22bc,_0x58ef98['body']=_0x188655,_0x58ef98[_0x546668(0x289)]=_0x3ad4de,_0x58ef98[_0x546668(0x1b9)]=_0x23ad11[_0x546668(0x268)],_0x58ef98[_0x546668(0x1e8)]=!![];const _0x3b9171=_0x58ef98,_0x219404=await _0x23ad11['IMFhX'](promisifiedRequest,_0x3b9171);}}const a3_0x426885={};a3_0x426885[a3_0x41049c(0x1a9)]=GoogleCloudProvider,module['exports']=a3_0x426885;
1
+ const a3_0x246f94=a3_0x2ad3;(function(_0x15d33a,_0x2dc824){const _0x1cd208=a3_0x2ad3,_0x3c85d3=_0x15d33a();while(!![]){try{const _0x235ba0=parseInt(_0x1cd208(0x1f7))/0x1+-parseInt(_0x1cd208(0x215))/0x2+parseInt(_0x1cd208(0x28b))/0x3*(-parseInt(_0x1cd208(0x287))/0x4)+parseInt(_0x1cd208(0x246))/0x5+parseInt(_0x1cd208(0x336))/0x6*(-parseInt(_0x1cd208(0x2f9))/0x7)+parseInt(_0x1cd208(0x327))/0x8+parseInt(_0x1cd208(0x2c6))/0x9;if(_0x235ba0===_0x2dc824)break;else _0x3c85d3['push'](_0x3c85d3['shift']());}catch(_0x2d8842){_0x3c85d3['push'](_0x3c85d3['shift']());}}}(a3_0x5d10,0x49e60));const fs=require('fs'),path=require('path'),got=require(a3_0x246f94(0x298)),util=require(a3_0x246f94(0x295)),cp=require(a3_0x246f94(0x268)),{google}=require(a3_0x246f94(0x257)),compute=require(a3_0x246f94(0x20f)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x246f94(0x348))['v3'],{logger}=require(a3_0x246f94(0x21b)),{CloudProvider}=require(a3_0x246f94(0x2c5)),{getDirForConfig,getAuthHeader}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x246f94(0x24f)),{inputConfirmation,closeInput}=require(a3_0x246f94(0x2ce)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x246f94(0x221));class GoogleCloudProvider extends CloudProvider{constructor(_0x2c79c8,_0x2a73bb,_0x5c0fdd,_0x5dc38a){const _0x26be80=a3_0x246f94,_0x2d9afd={};_0x2d9afd[_0x26be80(0x32e)]='1|7|3|0|6|4|5|8|2',_0x2d9afd[_0x26be80(0x1fe)]='turboscale-service-account',_0x2d9afd[_0x26be80(0x317)]=_0x26be80(0x2c2);const _0x5f594a=_0x2d9afd,_0x1bd2c3=_0x5f594a[_0x26be80(0x32e)][_0x26be80(0x252)]('|');let _0x3049de=0x0;while(!![]){switch(_0x1bd2c3[_0x3049de++]){case'0':this[_0x26be80(0x2ff)]=null;continue;case'1':super(GCP,_0x2c79c8,_0x2a73bb,_0x5c0fdd,_0x5dc38a);continue;case'2':this[_0x26be80(0x34b)]=_0x5f594a[_0x26be80(0x1fe)];continue;case'3':this[_0x26be80(0x25c)]=null;continue;case'4':this[_0x26be80(0x34e)]=null;continue;case'5':this[_0x26be80(0x2b5)]=null;continue;case'6':this[_0x26be80(0x26f)]=null;continue;case'7':this[_0x26be80(0x2cd)]=null;continue;case'8':this[_0x26be80(0x211)]=_0x5f594a[_0x26be80(0x317)];continue;}break;}}[a3_0x246f94(0x1e6)](){const _0x38dcd4=a3_0x246f94,_0x5522d2={};_0x5522d2[_0x38dcd4(0x2d2)]=function(_0xf50e25,_0x57e497){return _0xf50e25!==_0x57e497;},_0x5522d2[_0x38dcd4(0x28f)]=_0x38dcd4(0x218),_0x5522d2[_0x38dcd4(0x28d)]=_0x38dcd4(0x2be);const _0xb26052=_0x5522d2;if(!this[_0x38dcd4(0x32b)]()){if(_0xb26052[_0x38dcd4(0x2d2)](_0xb26052[_0x38dcd4(0x28f)],_0xb26052['NytNY']))this[_0x38dcd4(0x206)]();else return _0x47d9d9['error'](_0x38dcd4(0x245)+_0x35d88c+_0x38dcd4(0x24c)+_0x151a62),[![],[]];}}[a3_0x246f94(0x32b)](){const _0x124233=a3_0x246f94,_0x23a356={};_0x23a356[_0x124233(0x305)]=function(_0x419b6d,_0x1c9c3c){return _0x419b6d===_0x1c9c3c;};const _0x4f10be=_0x23a356;return _0x4f10be[_0x124233(0x305)](global_registry['gcpConfigSet'],!![]);}['setConfig'](){const _0x7b8087=a3_0x246f94,_0x1ceb6e=this[_0x7b8087(0x34e)],_0x13e748={};_0x13e748['keyFile']=_0x1ceb6e,this['containerClient']=new container['v1'][(_0x7b8087(0x285))](_0x13e748);const _0x21438c={};_0x21438c[_0x7b8087(0x275)]=_0x1ceb6e,this['networkClient']=new compute['v1']['NetworksClient'](_0x21438c);const _0x279e52={};_0x279e52['keyFile']=_0x1ceb6e,this[_0x7b8087(0x2ff)]=new ProjectsClient(_0x279e52),this[_0x7b8087(0x26f)]=google[_0x7b8087(0x301)]('v1'),global_registry[_0x7b8087(0x23b)]=!![];}async[a3_0x246f94(0x250)](_0x558743,_0x399d03){const _0x47f48d=a3_0x246f94,_0xa7dce4={'nIOXU':function(_0x2d5712,_0x2f1054){return _0x2d5712(_0x2f1054);},'DPkQH':function(_0x451d67){return _0x451d67();},'grrpe':'gcp_credentials.json'},_0x431014=await _0xa7dce4[_0x47f48d(0x307)](_0x558743,_0x47f48d(0x20e));let _0x584c49=await fs[_0x47f48d(0x214)](_0x431014);_0x584c49=_0x584c49[_0x47f48d(0x20c)]();const _0x13f458=_0xa7dce4['DPkQH'](getDirForConfig),_0x159303=path[_0x47f48d(0x30e)](_0x13f458,_0xa7dce4[_0x47f48d(0x2eb)]);fs['writeFileSync'](_0x159303,_0x584c49),this[_0x47f48d(0x34e)]=_0x159303;const _0x10d470={};return _0x10d470[_0x47f48d(0x275)]=_0x159303,_0x399d03[_0x47f48d(0x315)][GCP]=_0x10d470,_0x584c49=JSON[_0x47f48d(0x34d)](_0x584c49),this[_0x47f48d(0x2b5)]=_0x584c49['project_id'],_0x399d03;}async[a3_0x246f94(0x293)](_0x184d30){const _0x4b9252=a3_0x246f94;this['credentialsPath']=_0x184d30[this[_0x4b9252(0x291)]][_0x4b9252(0x275)];let _0x1a17e6=await fs[_0x4b9252(0x214)](this[_0x4b9252(0x34e)]);_0x1a17e6=JSON[_0x4b9252(0x34d)](_0x1a17e6),this[_0x4b9252(0x2b5)]=_0x1a17e6['project_id'];}[a3_0x246f94(0x1e0)](_0x496eab){const _0x454238=a3_0x246f94;return _0x496eab[_0x454238(0x269)]['loadBalancer'][_0x454238(0x25b)][0x0]['ip'];}async[a3_0x246f94(0x22e)](){const _0x212ef0=a3_0x246f94,_0x1dc337={};_0x1dc337[_0x212ef0(0x340)]=function(_0x4f6ed9,_0x2da3c3){return _0x4f6ed9===_0x2da3c3;},_0x1dc337[_0x212ef0(0x31e)]=_0x212ef0(0x1e5),_0x1dc337[_0x212ef0(0x1ff)]=function(_0x53ced4,_0x71114b){return _0x53ced4!==_0x71114b;},_0x1dc337[_0x212ef0(0x2b3)]=_0x212ef0(0x2d6),_0x1dc337[_0x212ef0(0x318)]=_0x212ef0(0x2d5),_0x1dc337[_0x212ef0(0x233)]=function(_0x927cb8,_0x443bf2){return _0x927cb8===_0x443bf2;},_0x1dc337['wvvcD']=_0x212ef0(0x321),_0x1dc337[_0x212ef0(0x302)]=_0x212ef0(0x319),_0x1dc337['UDiaZ']=_0x212ef0(0x261),_0x1dc337[_0x212ef0(0x253)]='vfBzp';const _0x13ca86=_0x1dc337;try{if(_0x13ca86[_0x212ef0(0x1ff)](_0x13ca86['QjZQT'],_0x13ca86['weiYD'])){const _0xb1996=await this[_0x212ef0(0x324)]();if(_0xb1996[0x0]?.[_0x212ef0(0x32a)]?.[_0x212ef0(0x2dd)]){if(_0x13ca86[_0x212ef0(0x233)](_0x13ca86[_0x212ef0(0x283)],_0x13ca86[_0x212ef0(0x283)])){const _0x4b548b=_0xb1996[0x0]?.['resourceLabels']?.[_0x212ef0(0x2dd)];return _0x4b548b&&_0x13ca86['TTGGk'](_0x4b548b[_0x212ef0(0x29e)](),_0x13ca86[_0x212ef0(0x302)]);}else return _0x13ca86[_0x212ef0(0x340)](_0x4367c6[_0x212ef0(0x23b)],!![]);}}else _0x54c307=_0x2d040d[_0x212ef0(0x297)](_0x4b2bc5[_0x890511[_0x212ef0(0x2ac)]]);}catch(_0x5e522d){if(_0x13ca86[_0x212ef0(0x1ff)](_0x13ca86[_0x212ef0(0x1ee)],_0x13ca86[_0x212ef0(0x253)]))return![];else{_0x1049fd['info'](_0x13ca86[_0x212ef0(0x31e)]);return;}}return![];}async[a3_0x246f94(0x2b7)](){const _0x1193d4=a3_0x246f94,_0x71c93d={'wYGhu':function(_0x1b0398,_0x21a938){return _0x1b0398!==_0x21a938;},'rxvhe':function(_0x17c817,_0x338488){return _0x17c817+_0x338488;},'vEJjC':function(_0x38aacd,_0x516837){return _0x38aacd===_0x516837;},'WTUfn':function(_0x5d00d1,_0x41b2a9){return _0x5d00d1-_0x41b2a9;},'RrHsx':_0x1193d4(0x1f9),'tHTPm':_0x1193d4(0x34c),'XDofW':_0x1193d4(0x335),'PImvw':_0x1193d4(0x21a),'UqezP':function(_0x4276a4,_0x52ace6){return _0x4276a4!==_0x52ace6;},'XieAF':'MXHmd','pKgVO':_0x1193d4(0x2d7),'nniWT':_0x1193d4(0x31b),'EwOzH':_0x1193d4(0x338),'yYmGD':'jfXOW','HrClC':'QESxS','SdQrw':'rPTYj','rorSV':function(_0x2af109,_0x3980b2){return _0x2af109!==_0x3980b2;},'gtbcv':_0x1193d4(0x339),'XZgwe':function(_0x185408,_0x126a2f){return _0x185408!==_0x126a2f;},'JPXWW':_0x1193d4(0x33e),'tYdrM':function(_0x1673b7,_0x36fb44){return _0x1673b7>_0x36fb44;},'aBRHM':function(_0x172a39,_0x3a43cf){return _0x172a39===_0x3a43cf;},'oRecY':_0x1193d4(0x331),'NOPkD':function(_0x9d6e7a,_0x1069bd){return _0x9d6e7a<_0x1069bd;},'wRUcG':function(_0x5389b3,_0x5c4836){return _0x5389b3!==_0x5c4836;},'UyxDr':_0x1193d4(0x208),'xlcwW':_0x1193d4(0x228),'cbXec':function(_0x2e5060,_0x3e6d86){return _0x2e5060(_0x3e6d86);},'ieqkU':_0x1193d4(0x310),'JKygR':function(_0xf9cedd,_0x331da9){return _0xf9cedd<=_0x331da9;},'sSCJR':function(_0x59be58,_0x42ca88){return _0x59be58!==_0x42ca88;},'QQUAS':'Ngqez','nzIju':_0x1193d4(0x332),'oMJGk':_0x1193d4(0x2af),'czEzb':function(_0x321ae9){return _0x321ae9();},'YncTL':function(_0x46ba12,_0x42b564){return _0x46ba12-_0x42b564;},'kMpnC':function(_0x18cd27,_0x4ba0a8){return _0x18cd27===_0x4ba0a8;},'ZqXCW':_0x1193d4(0x28e),'JEdEx':_0x1193d4(0x2e4)};this[_0x1193d4(0x1e6)]();let _0xf75ee7=await fs[_0x1193d4(0x214)](path[_0x1193d4(0x30e)](__dirname,'..',_0x71c93d[_0x1193d4(0x289)],_0x71c93d[_0x1193d4(0x270)],_0x71c93d[_0x1193d4(0x1e8)]),_0x71c93d['PImvw']);_0xf75ee7=JSON['parse'](_0xf75ee7);let _0x49b625=[global_registry[_0x1193d4(0x2ac)]];if(_0x71c93d[_0x1193d4(0x303)](_0xf75ee7[global_registry[_0x1193d4(0x2ac)]],undefined)){if(_0x71c93d[_0x1193d4(0x2b0)](_0x71c93d[_0x1193d4(0x2e7)],_0x71c93d[_0x1193d4(0x2c7)]))_0x49b625=_0x49b625[_0x1193d4(0x297)](_0xf75ee7[global_registry['clusterRegion']]);else return!![];}const _0x106205=[];for await(let _0x36b4c6 of _0x49b625){if(_0x71c93d[_0x1193d4(0x303)](_0x71c93d[_0x1193d4(0x232)],_0x71c93d['nniWT']))_0x2ea4f5[_0x1193d4(0x306)][_0x1193d4(0x2e9)](_0x2a5346);else{const _0x5ac002={};_0x5ac002[_0x1193d4(0x1fa)]='projects/'+this[_0x1193d4(0x2b5)]+_0x1193d4(0x344)+_0x36b4c6;const _0x56a0a3=_0x5ac002,_0x519b58=await this[_0x1193d4(0x2cd)][_0x1193d4(0x223)](_0x56a0a3);for(const _0x474c2d of _0x519b58[0x0][_0x1193d4(0x2ca)]){if(_0x71c93d[_0x1193d4(0x2e6)](_0x71c93d['EwOzH'],_0x71c93d[_0x1193d4(0x2b4)]))return![];else{if(_0x71c93d[_0x1193d4(0x2e6)](_0x474c2d[_0x1193d4(0x34a)],this[_0x1193d4(0x1fd)])){if(_0x71c93d[_0x1193d4(0x2e6)](_0x71c93d[_0x1193d4(0x272)],_0x71c93d[_0x1193d4(0x258)]))return _0x71c93d[_0x1193d4(0x303)](_0x1d781a[_0x1193d4(0x2ac)],_0x1e2a24[0x0])&&(_0x3014b2[_0x1193d4(0x2ac)]=_0x3985f1[0x0],this[_0x1193d4(0x256)]()),!![];else _0x106205[_0x1193d4(0x2e9)](_0x36b4c6);}}}}}const _0x523df1=_0x106205[_0x1193d4(0x33d)];if(_0x71c93d['vEJjC'](_0x523df1,0x1)){if(_0x71c93d['rorSV'](_0x71c93d[_0x1193d4(0x30c)],_0x71c93d[_0x1193d4(0x30c)]))_0x570236[_0x1193d4(0x264)]('['+_0x71c93d[_0x1193d4(0x2cb)](_0x22fe19,0x1)+']\x20'+_0x706194[_0x28182c]);else{if(_0x71c93d[_0x1193d4(0x1ed)](global_registry[_0x1193d4(0x2ac)],_0x106205[0x0])){if(_0x71c93d[_0x1193d4(0x2b0)](_0x71c93d[_0x1193d4(0x224)],_0x71c93d[_0x1193d4(0x224)])){if(_0x71c93d[_0x1193d4(0x2e6)](_0x4f3cc4?.[_0x1193d4(0x34a)],'projects/'+this[_0x1193d4(0x2b5)]+_0x1193d4(0x26d)+this[_0x1193d4(0x34b)]+'@'+this[_0x1193d4(0x2b5)]+_0x1193d4(0x202)))return!![];}else global_registry[_0x1193d4(0x2ac)]=_0x106205[0x0],this['updateClusterRegion']();}return!![];}}else{if(_0x71c93d['tYdrM'](_0x523df1,0x1)){if(_0x71c93d[_0x1193d4(0x296)](_0x71c93d[_0x1193d4(0x1e1)],_0x71c93d[_0x1193d4(0x1e1)])){console[_0x1193d4(0x264)](_0x1193d4(0x227)+this[_0x1193d4(0x1fd)]+_0x1193d4(0x1f8));for(let _0x291e53=0x0;_0x71c93d['NOPkD'](_0x291e53,_0x523df1);_0x291e53+=0x1){if(_0x71c93d[_0x1193d4(0x2d1)](_0x71c93d[_0x1193d4(0x345)],_0x71c93d[_0x1193d4(0x219)]))console[_0x1193d4(0x264)]('['+_0x71c93d['rxvhe'](_0x291e53,0x1)+']\x20'+_0x106205[_0x291e53]);else return _0x4ab05c[_0x1193d4(0x269)][_0x1193d4(0x2d4)][_0x1193d4(0x25b)][0x0]['ip'];}const _0x18c35e=await _0x71c93d[_0x1193d4(0x2f2)](inputConfirmation,_0x71c93d[_0x1193d4(0x2a2)]),_0x421635=_0x71c93d[_0x1193d4(0x2f2)](Number,_0x18c35e);if(_0x71c93d[_0x1193d4(0x2f2)](isNaN,_0x421635)||_0x71c93d[_0x1193d4(0x2f0)](_0x421635,0x0)||_0x71c93d[_0x1193d4(0x2de)](_0x421635,_0x523df1)){if(_0x71c93d[_0x1193d4(0x334)](_0x71c93d[_0x1193d4(0x280)],_0x71c93d[_0x1193d4(0x217)]))console[_0x1193d4(0x200)](_0x71c93d[_0x1193d4(0x20d)]),process['exit'](0x1);else return![];}_0x71c93d[_0x1193d4(0x27b)](closeInput),logger[_0x1193d4(0x21c)](_0x1193d4(0x28a)+_0x106205[_0x71c93d[_0x1193d4(0x23f)](_0x421635,0x1)]);if(_0x71c93d[_0x1193d4(0x334)](global_registry['clusterRegion'],_0x106205[_0x71c93d[_0x1193d4(0x29b)](_0x421635,0x1)])){if(_0x71c93d['kMpnC'](_0x71c93d[_0x1193d4(0x349)],_0x71c93d[_0x1193d4(0x2d8)]))return[!![],_0x4cb33b];else global_registry[_0x1193d4(0x2ac)]=_0x106205[_0x71c93d[_0x1193d4(0x29b)](_0x421635,0x1)],this[_0x1193d4(0x256)]();}return!![];}else _0x1a1162['clusterRegion']=_0x44265d[_0x71c93d[_0x1193d4(0x23f)](_0x22e588,0x1)],this[_0x1193d4(0x256)]();}}return![];}async[a3_0x246f94(0x324)](){const _0x1b3865=a3_0x246f94,_0x76b8d9=await this[_0x1b3865(0x2cd)]['getCluster']({'name':_0x1b3865(0x294)+this[_0x1b3865(0x2b5)]+_0x1b3865(0x344)+global_registry[_0x1b3865(0x2ac)]+'/clusters/'+this[_0x1b3865(0x1fd)]});return _0x76b8d9;}async['getKubeConfigData'](){const _0x3063b9=a3_0x246f94,_0x53094c={};_0x53094c['fINyU']=_0x3063b9(0x1f9),_0x53094c[_0x3063b9(0x26e)]=_0x3063b9(0x34c),_0x53094c[_0x3063b9(0x27d)]='KubeConfigTemplate.yaml';const _0x554fff=_0x53094c;cp[_0x3063b9(0x242)](_0x3063b9(0x333)),cp[_0x3063b9(0x2cf)](_0x3063b9(0x1eb)+this['credentialsPath']);const _0x36acf8=await this['getClusterInfo'](),_0x42c117=_0x3063b9(0x2f8)+this['projectId']+'_'+global_registry[_0x3063b9(0x2ac)]+'_'+this[_0x3063b9(0x1fd)];let _0x34ee07=await fs[_0x3063b9(0x214)](path[_0x3063b9(0x30e)](__dirname,'..',_0x554fff[_0x3063b9(0x247)],_0x554fff[_0x3063b9(0x26e)],_0x554fff[_0x3063b9(0x27d)]));return _0x34ee07=_0x34ee07[_0x3063b9(0x20c)](),_0x34ee07=_0x34ee07[_0x3063b9(0x238)](/<CLUSTER_NAME>/g,_0x42c117),_0x34ee07=_0x34ee07['replace'](/<CLUSTER_URL>/g,_0x3063b9(0x343)+_0x36acf8[0x0]['endpoint']),_0x34ee07=_0x34ee07[_0x3063b9(0x238)](/<CERTIFICATE_DATA>/g,_0x36acf8[0x0]['masterAuth'][_0x3063b9(0x234)]),_0x34ee07;}async['checkServiceAccount'](){const _0x2179b4=a3_0x246f94,_0x38f578={};_0x38f578['aVVMD']=function(_0xae08eb,_0x4f823d){return _0xae08eb===_0x4f823d;},_0x38f578['dAkIH']=_0x2179b4(0x319),_0x38f578[_0x2179b4(0x322)]=_0x2179b4(0x265),_0x38f578[_0x2179b4(0x323)]=function(_0x17512d,_0x57e26e){return _0x17512d!==_0x57e26e;},_0x38f578[_0x2179b4(0x236)]=_0x2179b4(0x273),_0x38f578[_0x2179b4(0x2c3)]='vezLy',_0x38f578['cacOA']=function(_0x38c771,_0xaed4aa){return _0x38c771===_0xaed4aa;},_0x38f578['btVrp']=_0x2179b4(0x30d),_0x38f578[_0x2179b4(0x204)]=_0x2179b4(0x2ba);const _0x182b09=_0x38f578,_0x2a361f={};_0x2a361f[_0x2179b4(0x226)]=[_0x182b09[_0x2179b4(0x322)]],_0x2a361f['keyFile']=this[_0x2179b4(0x34e)];const _0x50866d=await google[_0x2179b4(0x27e)]['getClient'](_0x2a361f),_0x559baf=await this[_0x2179b4(0x26f)][_0x2179b4(0x2b9)]['serviceAccounts'][_0x2179b4(0x259)]({'name':'projects/'+this[_0x2179b4(0x2b5)],'auth':_0x50866d});for(const _0x13a1b3 of _0x559baf?.[_0x2179b4(0x2aa)]?.[_0x2179b4(0x22a)]){if(_0x182b09[_0x2179b4(0x323)](_0x182b09[_0x2179b4(0x236)],_0x182b09[_0x2179b4(0x2c3)])){if(_0x182b09[_0x2179b4(0x299)](_0x13a1b3?.[_0x2179b4(0x34a)],'projects/'+this[_0x2179b4(0x2b5)]+_0x2179b4(0x26d)+this['serviceAccountName']+'@'+this[_0x2179b4(0x2b5)]+_0x2179b4(0x202))){if(_0x182b09['cacOA'](_0x182b09['btVrp'],_0x182b09[_0x2179b4(0x204)])){const _0x4be041=_0x5efa45[0x0]?.['resourceLabels']?.['managedby'];return _0x4be041&&_0x182b09[_0x2179b4(0x299)](_0x4be041[_0x2179b4(0x29e)](),_0x182b09['dAkIH']);}else return!![];}}else _0x4dae73[_0x2179b4(0x2ac)]=_0x2df05a[0x0],this[_0x2179b4(0x256)]();}return![];}async['setupServiceAccount'](){const _0xc15f66=a3_0x246f94,_0x5a9f76={};_0x5a9f76[_0xc15f66(0x26a)]='Cluster\x20creation\x20failed',_0x5a9f76[_0xc15f66(0x203)]=function(_0x59c5a5,_0x21cddb){return _0x59c5a5!==_0x21cddb;},_0x5a9f76[_0xc15f66(0x32f)]=_0xc15f66(0x2e5),_0x5a9f76[_0xc15f66(0x26b)]=_0xc15f66(0x1e5),_0x5a9f76[_0xc15f66(0x32c)]=_0xc15f66(0x1f1),_0x5a9f76['ANvbg']='https://www.googleapis.com/auth/cloud-platform',_0x5a9f76[_0xc15f66(0x2ec)]=_0xc15f66(0x278),_0x5a9f76[_0xc15f66(0x25a)]=_0xc15f66(0x23a),_0x5a9f76[_0xc15f66(0x2c1)]=_0xc15f66(0x1f6),_0x5a9f76[_0xc15f66(0x2a3)]=_0xc15f66(0x33b),_0x5a9f76[_0xc15f66(0x2bf)]=_0xc15f66(0x1ef),_0x5a9f76[_0xc15f66(0x23d)]=_0xc15f66(0x276),_0x5a9f76['htvJY']=_0xc15f66(0x216),_0x5a9f76[_0xc15f66(0x2ad)]='storage.buckets.getObjectInsights',_0x5a9f76[_0xc15f66(0x1e2)]=_0xc15f66(0x2b6),_0x5a9f76['eYMrc']=_0xc15f66(0x225),_0x5a9f76[_0xc15f66(0x2a8)]=_0xc15f66(0x201),_0x5a9f76[_0xc15f66(0x1e4)]=_0xc15f66(0x2c9),_0x5a9f76[_0xc15f66(0x2cc)]=_0xc15f66(0x33a),_0x5a9f76[_0xc15f66(0x290)]=_0xc15f66(0x2f6),_0x5a9f76[_0xc15f66(0x29a)]=_0xc15f66(0x1f4),_0x5a9f76[_0xc15f66(0x282)]=_0xc15f66(0x25f),_0x5a9f76[_0xc15f66(0x260)]=_0xc15f66(0x2c8),_0x5a9f76['Vgrqz']=_0xc15f66(0x243),_0x5a9f76[_0xc15f66(0x31c)]=_0xc15f66(0x1e7),_0x5a9f76[_0xc15f66(0x230)]=_0xc15f66(0x24d),_0x5a9f76['TJFTy']=_0xc15f66(0x1f3),_0x5a9f76[_0xc15f66(0x274)]=_0xc15f66(0x2ef),_0x5a9f76[_0xc15f66(0x241)]=_0xc15f66(0x284),_0x5a9f76[_0xc15f66(0x207)]=_0xc15f66(0x2e2),_0x5a9f76[_0xc15f66(0x33c)]=_0xc15f66(0x23c),_0x5a9f76[_0xc15f66(0x262)]=_0xc15f66(0x2a7);const _0x53c9eb=_0x5a9f76,_0x53aedf=await this['checkServiceAccount']();if(_0x53aedf){if(_0x53c9eb[_0xc15f66(0x203)](_0x53c9eb[_0xc15f66(0x32f)],_0x53c9eb[_0xc15f66(0x32f)]))_0x21bff6[_0xc15f66(0x21c)](_0x53c9eb['EpvjJ']);else{logger[_0xc15f66(0x21c)](_0x53c9eb['mMuTL']);return;}}logger['info'](_0x53c9eb['ZvsUd']);const _0x27addc={};_0x27addc['scopes']=[_0x53c9eb[_0xc15f66(0x325)]],_0x27addc[_0xc15f66(0x275)]=this['credentialsPath'];const _0x218183=await google[_0xc15f66(0x27e)]['getClient'](_0x27addc),_0x285f6a={};_0x285f6a[_0xc15f66(0x312)]=[_0x53c9eb[_0xc15f66(0x2ec)],_0x53c9eb['PrfJP'],_0x53c9eb[_0xc15f66(0x2c1)],_0x53c9eb['wPYmE'],_0x53c9eb[_0xc15f66(0x2bf)],_0x53c9eb[_0xc15f66(0x23d)],_0x53c9eb[_0xc15f66(0x281)],_0x53c9eb['imViQ'],_0x53c9eb[_0xc15f66(0x1e2)],_0x53c9eb[_0xc15f66(0x27f)],_0x53c9eb[_0xc15f66(0x2a8)],_0x53c9eb[_0xc15f66(0x1e4)],_0x53c9eb[_0xc15f66(0x2cc)],_0x53c9eb[_0xc15f66(0x290)],_0x53c9eb['WoQPW'],_0x53c9eb[_0xc15f66(0x282)],_0x53c9eb[_0xc15f66(0x260)],_0x53c9eb['Vgrqz'],_0x53c9eb[_0xc15f66(0x31c)],_0x53c9eb[_0xc15f66(0x230)],_0x53c9eb[_0xc15f66(0x1f5)],_0x53c9eb[_0xc15f66(0x274)],_0x53c9eb['fXJvc'],_0x53c9eb[_0xc15f66(0x207)]],_0x285f6a[_0xc15f66(0x2fc)]=_0x53c9eb['KREIs'],await this[_0xc15f66(0x26f)]['organizations'][_0xc15f66(0x2b8)][_0xc15f66(0x2f5)]({'parent':_0xc15f66(0x294)+this[_0xc15f66(0x2b5)],'requestBody':{'role':_0x285f6a,'roleId':this[_0xc15f66(0x211)]},'auth':_0x218183});const _0x13bb9e={};_0x13bb9e[_0xc15f66(0x34a)]=_0xc15f66(0x294)+this['projectId'],_0x13bb9e[_0xc15f66(0x30b)]={},_0x13bb9e[_0xc15f66(0x27e)]=_0x218183,_0x13bb9e[_0xc15f66(0x30b)][_0xc15f66(0x2c0)]=this[_0xc15f66(0x34b)];const _0x4df0a2=_0x13bb9e;await this[_0xc15f66(0x26f)][_0xc15f66(0x2b9)][_0xc15f66(0x2fa)][_0xc15f66(0x2f5)](_0x4df0a2);let _0x4c396d=await this['resourcemanagerClient'][_0xc15f66(0x350)]({'resource':_0xc15f66(0x294)+this[_0xc15f66(0x2b5)]});_0x4c396d=_0x4c396d[0x0][_0xc15f66(0x2ea)];const _0x4c97ba={};_0x4c97ba['role']=_0xc15f66(0x294)+this[_0xc15f66(0x2b5)]+'/roles/'+this[_0xc15f66(0x211)],_0x4c97ba[_0xc15f66(0x300)]=[_0xc15f66(0x31f)+this[_0xc15f66(0x34b)]+'@'+this[_0xc15f66(0x2b5)]+_0xc15f66(0x202)],_0x4c396d['push'](_0x4c97ba);const _0x3df696={};_0x3df696[_0xc15f66(0x2ea)]=_0x4c396d,await this[_0xc15f66(0x2ff)][_0xc15f66(0x2ae)]({'resource':_0xc15f66(0x294)+this[_0xc15f66(0x2b5)],'policy':_0x3df696}),logger[_0xc15f66(0x21c)](_0x53c9eb[_0xc15f66(0x262)]);}async[a3_0x246f94(0x279)](_0x371f41=a3_0x246f94(0x288),_0x1881f1=[a3_0x246f94(0x288)]){const _0x4b01d6=a3_0x246f94,_0xc59f21={};_0xc59f21[_0x4b01d6(0x2e1)]=_0x4b01d6(0x229),_0xc59f21[_0x4b01d6(0x26c)]=_0x4b01d6(0x29d),_0xc59f21[_0x4b01d6(0x22b)]=_0x4b01d6(0x329);const _0x498fca=_0xc59f21,_0x556f0f=_0x498fca[_0x4b01d6(0x2e1)]['split']('|');let _0x524c5f=0x0;while(!![]){switch(_0x556f0f[_0x524c5f++]){case'0':return!![];case'1':await this[_0x4b01d6(0x33f)]();continue;case'2':await this[_0x4b01d6(0x237)](_0x371f41,_0x1881f1);continue;case'3':const _0x5c6a37={};_0x5c6a37['type']=WS_EVENTS[_0x4b01d6(0x24a)],_0x5c6a37[_0x4b01d6(0x341)]=_0x498fca[_0x4b01d6(0x26c)],this[_0x4b01d6(0x2b2)][_0x4b01d6(0x1f2)](this[_0x4b01d6(0x249)],_0x5c6a37);continue;case'4':logger[_0x4b01d6(0x21c)](_0x498fca['bqzkr']);continue;case'5':this['sendGCPInfoToHST'](this[_0x4b01d6(0x249)]);continue;}break;}}async[a3_0x246f94(0x237)](_0x376d86='default',_0x31d64b=['default']){const _0x148ec0=a3_0x246f94,_0x20e0f7={};_0x20e0f7[_0x148ec0(0x22c)]=function(_0x38409d,_0x203c10){return _0x38409d!==_0x203c10;},_0x20e0f7[_0x148ec0(0x21d)]=_0x148ec0(0x2a6),_0x20e0f7[_0x148ec0(0x286)]=_0x148ec0(0x22d),_0x20e0f7[_0x148ec0(0x24b)]=_0x148ec0(0x220),_0x20e0f7[_0x148ec0(0x205)]=_0x148ec0(0x1f9),_0x20e0f7[_0x148ec0(0x213)]=_0x148ec0(0x34c),_0x20e0f7[_0x148ec0(0x244)]=_0x148ec0(0x20a),_0x20e0f7[_0x148ec0(0x2fb)]=_0x148ec0(0x21a),_0x20e0f7[_0x148ec0(0x2fd)]=_0x148ec0(0x335),_0x20e0f7[_0x148ec0(0x32d)]=function(_0x55daba,_0x3d3296){return _0x55daba*_0x3d3296;},_0x20e0f7[_0x148ec0(0x2f4)]=function(_0x444474,_0x181066){return _0x444474*_0x181066;},_0x20e0f7[_0x148ec0(0x1ea)]=function(_0x247f5f,_0x296a21){return _0x247f5f===_0x296a21;},_0x20e0f7[_0x148ec0(0x2d0)]='WulUJ',_0x20e0f7[_0x148ec0(0x2e0)]=_0x148ec0(0x326),_0x20e0f7[_0x148ec0(0x316)]=_0x148ec0(0x24e),_0x20e0f7[_0x148ec0(0x222)]=_0x148ec0(0x2a9),_0x20e0f7[_0x148ec0(0x311)]='niaUS',_0x20e0f7[_0x148ec0(0x320)]=_0x148ec0(0x2e3);const _0x285555=_0x20e0f7;try{if(_0x285555['pQCWf'](_0x285555[_0x148ec0(0x21d)],_0x285555['zTZsD'])){logger[_0x148ec0(0x21c)](_0x285555['sZPmV']);let _0xbe5e8d=await fs[_0x148ec0(0x214)](path[_0x148ec0(0x30e)](__dirname,'..',_0x285555['bHoQz'],_0x285555[_0x148ec0(0x213)],_0x285555[_0x148ec0(0x244)]),_0x285555[_0x148ec0(0x2fb)]);_0xbe5e8d=JSON[_0x148ec0(0x34d)](_0xbe5e8d);let _0x20beea=await fs[_0x148ec0(0x214)](path['join'](__dirname,'..',_0x285555[_0x148ec0(0x205)],_0x285555['druEZ'],_0x285555[_0x148ec0(0x2fd)]),_0x285555[_0x148ec0(0x2fb)]);_0x20beea=JSON[_0x148ec0(0x34d)](_0x20beea),_0xbe5e8d[_0x148ec0(0x34a)]=this[_0x148ec0(0x1fd)],_0xbe5e8d[_0x148ec0(0x34f)][0x0]['config'][_0x148ec0(0x27c)]=global_registry[_0x148ec0(0x25d)],_0xbe5e8d['nodePools'][0x0][_0x148ec0(0x255)][_0x148ec0(0x239)]=this['serviceAccountName']+'@'+this[_0x148ec0(0x2b5)]+_0x148ec0(0x202),_0xbe5e8d[_0x148ec0(0x34f)][0x0][_0x148ec0(0x2ee)]['minNodeCount']=global_registry[_0x148ec0(0x25e)],_0xbe5e8d[_0x148ec0(0x34f)][0x0][_0x148ec0(0x2ee)][_0x148ec0(0x2d3)]=global_registry[_0x148ec0(0x209)],_0xbe5e8d[_0x148ec0(0x28c)]=global_registry[_0x148ec0(0x2ac)],_0xbe5e8d[_0x148ec0(0x2bc)]=[_0x20beea[global_registry[_0x148ec0(0x2ac)]][0x0]],_0xbe5e8d[_0x148ec0(0x2ed)]=_0x148ec0(0x294)+this[_0x148ec0(0x2b5)]+_0x148ec0(0x2a0)+_0x376d86,_0xbe5e8d[_0x148ec0(0x2df)]=_0x148ec0(0x294)+this[_0x148ec0(0x2b5)]+_0x148ec0(0x330)+global_registry['clusterRegion']+'/subnetworks/'+_0x31d64b[0x0];const _0x399159=await this['containerClient'][_0x148ec0(0x237)]({'cluster':_0xbe5e8d,'parent':'projects/'+this[_0x148ec0(0x2b5)]+_0x148ec0(0x344)+global_registry[_0x148ec0(0x2ac)]});await this['webSocketUtils'][_0x148ec0(0x2d9)](_0x285555[_0x148ec0(0x32d)](_0x285555['FhQIz'](0x7,0x3c),0x3e8));}else{const _0x1fe9c2=this[_0x148ec0(0x34e)],_0x205be2={};_0x205be2[_0x148ec0(0x275)]=_0x1fe9c2,this[_0x148ec0(0x2cd)]=new _0x295e9a['v1'][(_0x148ec0(0x285))](_0x205be2);const _0x44653e={};_0x44653e['keyFile']=_0x1fe9c2,this['networkClient']=new _0x5df49b['v1'][(_0x148ec0(0x277))](_0x44653e);const _0x47e659={};_0x47e659[_0x148ec0(0x275)]=_0x1fe9c2,this[_0x148ec0(0x2ff)]=new _0xb83f59(_0x47e659),this[_0x148ec0(0x26f)]=_0x567940[_0x148ec0(0x301)]('v1'),_0xece21e[_0x148ec0(0x23b)]=!![];}}catch(_0xd0a68){if(_0x285555[_0x148ec0(0x1ea)](_0x285555[_0x148ec0(0x2d0)],_0x285555['HBddm'])){const _0x22c89a=await this[_0x148ec0(0x2b7)]();if(_0x22c89a)_0x285555[_0x148ec0(0x1ea)](_0x285555[_0x148ec0(0x2e0)],_0x285555[_0x148ec0(0x2e0)])?(logger[_0x148ec0(0x21c)](_0x285555[_0x148ec0(0x316)],_0xd0a68[_0x148ec0(0x231)]),await this['deleteCluster']()):this['setConfig']();else{if(_0x285555[_0x148ec0(0x1ea)](_0x285555[_0x148ec0(0x222)],_0x285555['yBtoJ']))return!![];else logger[_0x148ec0(0x21c)](_0x285555[_0x148ec0(0x320)]);}throw _0xd0a68;}else _0x4b55ba[_0x148ec0(0x2e9)](_0x5d5740);}}async[a3_0x246f94(0x308)](_0x24e121,_0x451338){const _0x480955=a3_0x246f94,_0x210d4e={'iwENf':'GKE\x20Cluster\x20deletion\x20failed','XyqdO':function(_0x35401c,_0xbdacf6){return _0x35401c===_0xbdacf6;},'hnXYs':_0x480955(0x235),'KilZW':function(_0x17c200,_0xcb820f){return _0x17c200(_0xcb820f);},'HCBjB':function(_0x4806b9,_0x2f3f35){return _0x4806b9(_0x2f3f35);},'ZOZge':'RUNNING','kRsqk':function(_0x50a047,_0x29e8e8){return _0x50a047===_0x29e8e8;},'pNDNr':_0x480955(0x2bb),'zzhxn':'cXnfJ','sEraq':function(_0x1c8f4e,_0x2f0913){return _0x1c8f4e!==_0x2f0913;},'MWLnk':_0x480955(0x20b),'NOWVW':_0x480955(0x271)};try{if(_0x210d4e[_0x480955(0x212)](_0x210d4e[_0x480955(0x328)],_0x210d4e[_0x480955(0x328)])){await _0x210d4e[_0x480955(0x2da)](deleteAgent,_0x24e121),await _0x210d4e[_0x480955(0x337)](deleteRoutingDeps,_0x24e121),logger[_0x480955(0x21c)](_0x480955(0x21e)+this[_0x480955(0x1fd)]);const _0x5c037f=await this[_0x480955(0x2cd)][_0x480955(0x308)]({'name':'projects/'+this[_0x480955(0x2b5)]+_0x480955(0x344)+global_registry[_0x480955(0x2ac)]+_0x480955(0x313)+this['clusterName']});if(_0x210d4e[_0x480955(0x212)](_0x5c037f[0x0]?.[_0x480955(0x269)],_0x210d4e[_0x480955(0x2bd)])||_0x210d4e[_0x480955(0x2a4)](_0x5c037f[0x0]?.[_0x480955(0x269)],_0x210d4e[_0x480955(0x23e)])){if(_0x210d4e[_0x480955(0x212)](_0x210d4e[_0x480955(0x2f1)],_0x210d4e[_0x480955(0x2f1)]))return!![];else{_0x515cca[_0x480955(0x21c)](_0x210d4e[_0x480955(0x31a)]);throw _0x340152;}}logger[_0x480955(0x21c)](_0x480955(0x27a));}else{const _0x1e5999=_0x480955(0x267)+this[_0x480955(0x2b5)]+_0x480955(0x330)+_0xc5b085[_0x480955(0x2ac)]+_0x480955(0x29f)+_0x335623[0x0];if(_0x210d4e[_0x480955(0x212)](_0x1e5999,_0x500ede))return[!![],_0x4dac9d];}}catch(_0x4d8e1a){if(_0x210d4e[_0x480955(0x292)](_0x210d4e[_0x480955(0x347)],_0x210d4e[_0x480955(0x309)])){logger[_0x480955(0x21c)](_0x210d4e[_0x480955(0x31a)]);throw _0x4d8e1a;}else!this['isConfigured']()&&this[_0x480955(0x206)]();}}async[a3_0x246f94(0x1e9)](_0x25d89b){const _0x1c3327=a3_0x246f94,_0x584011={};_0x584011[_0x1c3327(0x21f)]=function(_0x3aa334,_0x4f7701){return _0x3aa334===_0x4f7701;},_0x584011['MLnmi']=_0x1c3327(0x2af),_0x584011[_0x1c3327(0x2b1)]=_0x1c3327(0x314),_0x584011[_0x1c3327(0x240)]=_0x1c3327(0x251),_0x584011[_0x1c3327(0x2e8)]=function(_0xdfb8c6,_0x4a4a71){return _0xdfb8c6>_0x4a4a71;},_0x584011['lJTiZ']=_0x1c3327(0x2ab),_0x584011[_0x1c3327(0x2a5)]=function(_0x2fcd34,_0x4d26e4){return _0x2fcd34!==_0x4d26e4;},_0x584011[_0x1c3327(0x2c4)]=_0x1c3327(0x248),_0x584011['FKzLp']=_0x1c3327(0x254);const _0x1e4cf2=_0x584011;try{if(_0x1e4cf2['LECIw'](_0x1e4cf2[_0x1c3327(0x2b1)],_0x1e4cf2[_0x1c3327(0x240)]))_0x1e4cf2['LECIw'](_0xeca00b[_0x1c3327(0x34a)],this[_0x1c3327(0x1fd)])&&_0x10d9c5[_0x1c3327(0x2e9)](_0x3c7997);else{const _0x120113={};_0x120113[_0x1c3327(0x1f0)]=projectId,_0x120113['network']=_0x25d89b;const _0x384871=await networkClient[_0x1c3327(0x263)](_0x120113);if(_0x1e4cf2[_0x1c3327(0x2e8)](_0x384871['length'],0x0)&&_0x1e4cf2[_0x1c3327(0x21f)](_0x384871[0x0][_0x1c3327(0x34a)],_0x25d89b))return _0x1e4cf2['LECIw'](_0x1e4cf2[_0x1c3327(0x2dc)],_0x1e4cf2['lJTiZ'])?!![]:!![];}}catch(_0x38f284){if(_0x1e4cf2['jNuJQ'](_0x1e4cf2[_0x1c3327(0x2c4)],_0x1e4cf2['FKzLp']))return![];else _0x4eb10d[_0x1c3327(0x200)](_0x1e4cf2['MLnmi']),_0x4c115b[_0x1c3327(0x346)](0x1);}return![];}async['isSubnetsValid'](_0x1b4fdc,_0x3d6f87){const _0x6444af=a3_0x246f94,_0x209585={};_0x209585['gxNIG']=function(_0x2375c0,_0x54c608){return _0x2375c0===_0x54c608;};const _0x318d7f=_0x209585;try{const _0x548d23={};_0x548d23[_0x6444af(0x1f0)]=projectId,_0x548d23[_0x6444af(0x2ed)]=_0x3d6f87;const _0x172ac9=await networkClient[_0x6444af(0x263)](_0x548d23);for(const _0x538773 of _0x172ac9[0x0][_0x6444af(0x22f)]){const _0x1c6615='https://www.googleapis.com/compute/v1/projects/'+this[_0x6444af(0x2b5)]+_0x6444af(0x330)+global_registry[_0x6444af(0x2ac)]+'/subnetworks/'+_0x1b4fdc[0x0];if(_0x318d7f[_0x6444af(0x2f3)](_0x1c6615,_0x538773))return[!![],_0x1b4fdc];}}catch(_0x1dbab5){return logger[_0x6444af(0x200)](_0x6444af(0x245)+_0x1b4fdc+_0x6444af(0x24c)+_0x1dbab5),[![],[]];}return[![],[]];}async[a3_0x246f94(0x30f)](){const _0x5a6529=a3_0x246f94,_0x5b9013=await this[_0x5a6529(0x25c)][_0x5a6529(0x259)]({'project':this[_0x5a6529(0x2b5)]}),_0x4171ae={};_0x4171ae['username']=global_registry[_0x5a6529(0x30a)],_0x4171ae[_0x5a6529(0x29c)]=global_registry[_0x5a6529(0x342)],_0x4171ae[_0x5a6529(0x315)]=GCP,_0x4171ae['vpcInfo']=[];const _0x17ef78=_0x4171ae;for(const _0x576ae2 of _0x5b9013){_0x17ef78[_0x5a6529(0x306)][_0x5a6529(0x2e9)](_0x576ae2);}const _0x2a3883={};_0x2a3883[_0x5a6529(0x2fe)]=WS_EVENTS[_0x5a6529(0x2db)],_0x2a3883['message']=_0x17ef78,this[_0x5a6529(0x2b2)][_0x5a6529(0x1f2)](this['rws'],_0x2a3883);}async[a3_0x246f94(0x256)](){const _0x4325c7=a3_0x246f94,_0x564c49={'tgRKJ':function(_0x5ae9e7,_0x5daefd,_0x2ee09b){return _0x5ae9e7(_0x5daefd,_0x2ee09b);},'yHJrL':_0x4325c7(0x210),'qZvJw':_0x4325c7(0x2a1)},_0x54380=_0x4325c7(0x343)+AG_API_URL+_0x4325c7(0x266),_0x386819={};_0x386819[_0x4325c7(0x1fc)]=global_registry[_0x4325c7(0x2f7)];const _0x322962={};_0x322962[_0x4325c7(0x31d)]=global_registry[_0x4325c7(0x2ac)];const _0x448424={'searchParams':_0x386819,'json':_0x322962,'headers':_0x564c49[_0x4325c7(0x1e3)](getAuthHeader,global_registry[_0x4325c7(0x30a)],global_registry[_0x4325c7(0x342)]),'method':_0x564c49[_0x4325c7(0x304)],'responseType':_0x564c49[_0x4325c7(0x1fb)]},_0x126ac6=await _0x564c49['tgRKJ'](got,_0x54380,_0x448424);}}function a3_0x5d10(){const _0x327277=['delay','KilZW','RESOURCES','lJTiZ','managedby','tYdrM','subnetwork','WQGWW','WBHpH','storage.objects.update','Cluster\x20creation\x20failed','XXSua','MeeuS','vEJjC','XieAF','BBkGE','push','bindings','grrpe','gzFnK','network','autoscaling','storage.objects.list','JKygR','zzhxn','cbXec','gxNIG','FhQIz','create','storage.multipartUploads.abort','gridProfileId','gke_','781928frKrnK','serviceAccounts','gduwd','title','gsOUX','type','resourcemanagerClient','members','iam','ISMMe','wYGhu','yHJrL','Arlsl','vpcInfo','nIOXU','deleteCluster','NOWVW','bstackUsername','requestBody','gtbcv','YpWnY','join','sendGCPInfoToHST','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','yBtoJ','includedPermissions','/clusters/','chRYd','cloudProvider','dcQLh','tusyL','weiYD','browserstack','iwENf','CFBXJ','ytaBO','newRegion','PzyVN','serviceAccount:','PmXDI','Bmhiy','RyBfs','kLUCQ','getClusterInfo','ANvbg','jORON','277560rhtKCf','hnXYs','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','resourceLabels','isConfigured','ZvsUd','mEhHH','IUiLE','lvoUG','/regions/','ruahW','BPDNQ','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','sSCJR','regionmap.json','12qfhaSx','HCBjB','VYeeB','McLSU','storage.buckets.update','storage.buckets.delete','KREIs','length','QvJAe','setupServiceAccount','TTGGk','message','bstackAccesskey','https://','/locations/','UyxDr','exit','MWLnk','@google-cloud/resource-manager','ZqXCW','name','serviceAccountName','gcpresources','parse','credentialsPath','nodePools','getIamPolicy','getGridHostname','oRecY','yDSZT','tgRKJ','lvvDL','Service\x20account\x20already\x20exists,\x20skipping','configureIfNotConfigured','storage.objects.delete','XDofW','isVPCPresent','UkJfr','gcloud\x20auth\x20login\x20--cred-file=','exports','XZgwe','UDiaZ','storage.buckets.deleteTagBinding','project','Creating\x20service\x20account','sendEventToBackend','storage.objects.getIamPolicy','storage.multipartUploads.create','TJFTy','storage.buckets.createTagBinding','398405jgBXFN','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','templates','parent','qZvJw','profileId','clusterName','WGLUT','DZhCR','error','storage.buckets.listTagBindings','.iam.gserviceaccount.com','bonGb','HTtAd','bHoQz','setConfig','KmBta','BqsJQ','maxNodes','gkecluster.json','GvhIe','toString','oMJGk','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','@google-cloud/compute','PUT','customRoleName','XyqdO','druEZ','readFileAsync','700186BwHyiB','storage.buckets.getIamPolicy','nzIju','GRecB','xlcwW','utf-8','../config/logger','info','xHPqs','Deleting\x20the\x20cluster\x20','LECIw','Creating\x20GKE\x20Cluster','../config/constants','Djcek','listClusters','JPXWW','storage.buckets.listEffectiveTags','scopes','Found\x20cluster\x20with\x20name\x20\x27','ljEBT','5|3|4|1|2|0','accounts','bqzkr','pQCWf','OIeCi','isBrowserstackCluster','subnetworks','DwbSC','stack','nniWT','rytjE','clusterCaCertificate','CDtZn','NaSxz','createCluster','replace','serviceAccount','storage.buckets.create','gcpConfigSet','Turboscale\x20Custom\x20Role','GAsfb','pNDNr','WTUfn','XoYsk','fXJvc','execSync','storage.objects.create','PrnSz','Cannot\x20find\x20subnets\x20','45320tbgPdo','fINyU','LXOKG','rws','LOG','sZPmV','.\x20Error:\x20','storage.objects.get','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','../utils/gridComponents','getUserInput','Srqku','split','VrKqz','NuzIC','config','updateClusterRegion','googleapis','SdQrw','list','PrfJP','ingress','networkClient','instanceType','minNodes','storage.multipartUploads.list','HQQne','LEWYX','eWjbI','get','log','https://www.googleapis.com/auth/cloud-platform','/packages/cli/update-cluster-region','https://www.googleapis.com/compute/v1/projects/','child_process','status','EpvjJ','mMuTL','bEbVO','/serviceAccounts/','FJaRV','iamClient','tHTPm','cmFOW','HrClC','SNdAG','dIrKZ','keyFile','storage.buckets.get','NetworksClient','iam.serviceAccounts.signBlob','setupNewCluster','Cluster\x20deletion\x20completed','czEzb','machineType','mfPmI','auth','eYMrc','QQUAS','htvJY','uzdAT','wvvcD','storage.objects.setIamPolicy','ClusterManagerClient','zTZsD','32PtXAvm','default','RrHsx','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','50703Pdvswn','location','NytNY','RCnOY','pnwMw','usjag','cloudProviderName','sEraq','fetchLocalCreds','projects/','util','aBRHM','concat','got','aVVMD','WoQPW','YncTL','accessKey','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','toLowerCase','/subnetworks/','/global/networks/','json','ieqkU','wPYmE','kRsqk','jNuJQ','ehVlx','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','TusLH','LzwYK','data','LCKtp','clusterRegion','imViQ','setIamPolicy','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','UqezP','BiVbg','webSocketUtils','QjZQT','yYmGD','projectId','storage.buckets.list','isClusterPresent','roles','projects','pSxQl','DONE','locations','ZOZge','kXFtt','pnmjO','accountId','JUgrA','turboscale_custom_role','NCYmx','EVnLw','./CloudProvider','5123097JmJmlg','pKgVO','storage.multipartUploads.listParts','storage.buckets.setIamPolicy','clusters','rxvhe','WEkOc','containerClient','../utils/userInput','exec','HBddm','wRUcG','vkLbj','maxNodeCount','loadBalancer','EeMiY','SOeup','PkJCu','JEdEx'];a3_0x5d10=function(){return _0x327277;};return a3_0x5d10();}const a3_0x343ea8={};function a3_0x2ad3(_0x59656a,_0x4bdcea){const _0x5d106f=a3_0x5d10();return a3_0x2ad3=function(_0x2ad3b0,_0x96a04a){_0x2ad3b0=_0x2ad3b0-0x1e0;let _0x478582=_0x5d106f[_0x2ad3b0];return _0x478582;},a3_0x2ad3(_0x59656a,_0x4bdcea);}a3_0x343ea8['GoogleCloudProvider']=GoogleCloudProvider,module[a3_0x246f94(0x1ec)]=a3_0x343ea8;
@@ -1 +1 @@
1
- function a4_0x28ec(){const _0x4c2cec=['3222778cPgChl','Unknown\x20cloud\x20provider\x20found\x20-\x20','./GoogleCloudProvider','./Azure','./AWS','1565ZcMMUC','1wdWzZF','1446294wFQfTh','15780fKiVjg','12504976iFrKvl','error','353826HIODmT','getCloudProviderObject','327894cfJvwT','exit','5945037oPuIty'];a4_0x28ec=function(){return _0x4c2cec;};return a4_0x28ec();}const a4_0x470b1b=a4_0x3ada;function a4_0x3ada(_0xef328e,_0x6b144c){const _0x28ecf5=a4_0x28ec();return a4_0x3ada=function(_0x3ada42,_0x34d339){_0x3ada42=_0x3ada42-0x135;let _0x4d27b6=_0x28ecf5[_0x3ada42];return _0x4d27b6;},a4_0x3ada(_0xef328e,_0x6b144c);}(function(_0x2aaeb9,_0xdb39da){const _0x5853b6=a4_0x3ada,_0xa6cc4a=_0x2aaeb9();while(!![]){try{const _0x294d8a=parseInt(_0x5853b6(0x13b))/0x1*(parseInt(_0x5853b6(0x135))/0x2)+parseInt(_0x5853b6(0x142))/0x3+parseInt(_0x5853b6(0x13d))/0x4*(parseInt(_0x5853b6(0x13a))/0x5)+parseInt(_0x5853b6(0x13c))/0x6+-parseInt(_0x5853b6(0x144))/0x7+-parseInt(_0x5853b6(0x13e))/0x8+parseInt(_0x5853b6(0x140))/0x9;if(_0x294d8a===_0xdb39da)break;else _0xa6cc4a['push'](_0xa6cc4a['shift']());}catch(_0x3c6d5c){_0xa6cc4a['push'](_0xa6cc4a['shift']());}}}(a4_0x28ec,0xc907e));const {AWSCloudProvider}=require(a4_0x470b1b(0x139)),{AzureCloudProvider}=require(a4_0x470b1b(0x138)),{GoogleCloudProvider}=require(a4_0x470b1b(0x137)),{AWS,AZURE,GCP}=require('../config/constants');exports[a4_0x470b1b(0x141)]=(_0x37a135,_0x21667f,_0x31bf57,_0x43da18,_0x31eb53)=>{const _0x4a5f96=a4_0x470b1b;switch(_0x37a135){case AWS:return new AWSCloudProvider(_0x21667f,_0x31bf57,_0x43da18,_0x31eb53);case GCP:return new GoogleCloudProvider(_0x21667f,_0x31bf57,_0x43da18,_0x31eb53);default:console[_0x4a5f96(0x13f)](_0x4a5f96(0x136)+_0x37a135),process[_0x4a5f96(0x143)](0x1);}};
1
+ const a4_0x32ee39=a4_0x1328;function a4_0x1328(_0x5bfa61,_0x392ca6){const _0x53a061=a4_0x53a0();return a4_0x1328=function(_0x132867,_0x5e478d){_0x132867=_0x132867-0x144;let _0x2dd5a8=_0x53a061[_0x132867];return _0x2dd5a8;},a4_0x1328(_0x5bfa61,_0x392ca6);}(function(_0x3765ce,_0x574963){const _0x24d761=a4_0x1328,_0x495381=_0x3765ce();while(!![]){try{const _0x4c5c11=-parseInt(_0x24d761(0x14b))/0x1*(parseInt(_0x24d761(0x156))/0x2)+-parseInt(_0x24d761(0x152))/0x3+-parseInt(_0x24d761(0x151))/0x4*(parseInt(_0x24d761(0x154))/0x5)+parseInt(_0x24d761(0x149))/0x6+parseInt(_0x24d761(0x14e))/0x7*(-parseInt(_0x24d761(0x155))/0x8)+-parseInt(_0x24d761(0x150))/0x9*(-parseInt(_0x24d761(0x14a))/0xa)+-parseInt(_0x24d761(0x147))/0xb*(-parseInt(_0x24d761(0x157))/0xc);if(_0x4c5c11===_0x574963)break;else _0x495381['push'](_0x495381['shift']());}catch(_0x424740){_0x495381['push'](_0x495381['shift']());}}}(a4_0x53a0,0xa887f));const {AWSCloudProvider}=require(a4_0x32ee39(0x14d)),{AzureCloudProvider}=require(a4_0x32ee39(0x148)),{GoogleCloudProvider}=require(a4_0x32ee39(0x14f)),{AWS,AZURE,GCP}=require(a4_0x32ee39(0x144));exports[a4_0x32ee39(0x14c)]=(_0x47c529,_0x10a611,_0x14361a,_0xdd37fd,_0x15324c)=>{const _0xbb401c=a4_0x32ee39;switch(_0x47c529){case AWS:return new AWSCloudProvider(_0x10a611,_0x14361a,_0xdd37fd,_0x15324c);case GCP:return new GoogleCloudProvider(_0x10a611,_0x14361a,_0xdd37fd,_0x15324c);default:console[_0xbb401c(0x146)](_0xbb401c(0x153)+_0x47c529),process[_0xbb401c(0x145)](0x1);}};function a4_0x53a0(){const _0x4db1ff=['596346sMFLOT','Unknown\x20cloud\x20provider\x20found\x20-\x20','5KmnVKA','139440bdQiCy','45470kQQQno','19509324TBWQJb','../config/constants','exit','error','11AyyYFe','./Azure','2173476BsXDal','10yjjssk','8mNgvRE','getCloudProviderObject','./AWS','7AFDTbq','./GoogleCloudProvider','2692017tcuCcC','4794964kEfsaJ'];a4_0x53a0=function(){return _0x4db1ff;};return a4_0x53a0();}
@@ -1 +1 @@
1
- function a5_0x2d66(){const _0x499f9a=['usage','/packages/cli/configure','pwonm','dMJTd','list','method','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','name','log','Updated\x20default\x20Grid\x20Profile\x20successfully','statusCode','9sltIGD','hkufC','jglek','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','promisify','eQkax','util','uuid','parse','username','bJkJV','strict','HAkyK','recommendCommands','toLowerCase','MqsbO','DAeQE','active','yLVlZ','VgdBM','jtNpa','581270jgtvBc','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','RzkhM','398zDsihA','qaKft','WWyFk','handler','argv','readFileSync','tYfjg','dGhmP','configure','length','914egdoxT','Failed\x20to\x20configure\x20resources!\x20Error:\x20','unauthorised','rKQZQ','Nvbcg','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','bRnuN','AzCXn','configure-called','ERROR','OozbK','server-error','8470824mSenzO','egTLi','epilogue','NVDvH','error','11KBHCTl','czziq','sYGOA','https://','QSzgk','HLqfz','nLUXn','init-not-called','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','kHhMy','builder','help','desc','126wXiePv','unknown-error','auth','existsSync','hlpnT','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','command','YCWzu','json','cAymt','../utils/utilityMethods','PUT','aucIa','551312AYSFgv','invalid-input','3745ZmgiJi','XwRpV','password','\x20\x20username:\x20','INFO','requestId','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','DrtpS','url','GET','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Browserstack','stack','2101120hJFzhi','66UgWDsx','lKvVc','stringify','\x20\x20grid-profile:\x20','zdose','body','5036bvxOke','../utils/userInput','profileId'];a5_0x2d66=function(){return _0x499f9a;};return a5_0x2d66();}const a5_0x5ed3b5=a5_0xd036;(function(_0x128357,_0x2060a7){const _0x308f28=a5_0xd036,_0x53cf5a=_0x128357();while(!![]){try{const _0x31b7bd=parseInt(_0x308f28(0x229))/0x1*(-parseInt(_0x308f28(0x1c1))/0x2)+parseInt(_0x308f28(0x1e0))/0x3*(-parseInt(_0x308f28(0x203))/0x4)+-parseInt(_0x308f28(0x1ef))/0x5*(parseInt(_0x308f28(0x1fd))/0x6)+-parseInt(_0x308f28(0x1fc))/0x7+parseInt(_0x308f28(0x1ed))/0x8*(-parseInt(_0x308f28(0x211))/0x9)+-parseInt(_0x308f28(0x226))/0xa*(-parseInt(_0x308f28(0x1d3))/0xb)+parseInt(_0x308f28(0x1ce))/0xc;if(_0x31b7bd===_0x2060a7)break;else _0x53cf5a['push'](_0x53cf5a['shift']());}catch(_0xdbc49f){_0x53cf5a['push'](_0x53cf5a['shift']());}}}(a5_0x2d66,0x25190));function a5_0xd036(_0x37b232,_0x4e1a29){const _0x2d66f8=a5_0x2d66();return a5_0xd036=function(_0xd036ae,_0x22e054){_0xd036ae=_0xd036ae-0x1b8;let _0x3dafe5=_0x2d66f8[_0xd036ae];return _0x3dafe5;},a5_0xd036(_0x37b232,_0x4e1a29);}const fs=require('fs'),util=require(a5_0x5ed3b5(0x217)),request=require('request'),{v4:uuidv4}=require(a5_0x5ed3b5(0x218)),{inputConfirmation,closeInput}=require(a5_0x5ed3b5(0x204)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require(a5_0x5ed3b5(0x1ea)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a5_0x5ed3b5(0x215)](request);exports[a5_0x5ed3b5(0x1e6)]=a5_0x5ed3b5(0x1bf),exports[a5_0x5ed3b5(0x1df)]=a5_0x5ed3b5(0x20c),exports[a5_0x5ed3b5(0x1dd)]=function(_0x578412){const _0xb790c6=a5_0x5ed3b5,_0x199fbb={};_0x199fbb[_0xb790c6(0x1ec)]=_0xb790c6(0x1de);const _0x3efa56=_0x199fbb;return _0x578412[_0xb790c6(0x206)](HELP_HEADER_MESSAGE[_0xb790c6(0x1bf)])[_0xb790c6(0x1d0)](HELP_FOOTER_MESSAGE)[_0xb790c6(0x1de)](_0x3efa56['aucIa'])[_0xb790c6(0x21e)]()[_0xb790c6(0x21c)]()[_0xb790c6(0x1bb)];},exports[a5_0x5ed3b5(0x1ba)]=async function(_0x4d5898){const _0x2bfb00=a5_0x5ed3b5,_0x8afacb={'HLqfz':function(_0x235c16){return _0x235c16();},'lKvVc':_0x2bfb00(0x1c6),'rKQZQ':function(_0x480b48,_0x33656f,_0x4cc7ed,_0x5922e0,_0x3c73f3,_0x2e9b82,_0x513b9b){return _0x480b48(_0x33656f,_0x4cc7ed,_0x5922e0,_0x3c73f3,_0x2e9b82,_0x513b9b);},'RzkhM':_0x2bfb00(0x1ca),'eQkax':_0x2bfb00(0x1da),'QSzgk':function(_0x4d61e6,_0x3c0836,_0x46bdf8,_0x2456f1,_0x2e5daf,_0x5ca1d3,_0x15aa00){return _0x4d61e6(_0x3c0836,_0x46bdf8,_0x2456f1,_0x2e5daf,_0x5ca1d3,_0x15aa00);},'nLUXn':_0x2bfb00(0x1f8),'VgdBM':function(_0x5680b7,_0x2cd01e){return _0x5680b7(_0x2cd01e);},'dGhmP':function(_0x49ece2,_0x334b7a){return _0x49ece2!==_0x334b7a;},'cAymt':function(_0x36c19c,_0x1a001c){return _0x36c19c!==_0x1a001c;},'sYGOA':function(_0x1322df,_0x12a7ca){return _0x1322df===_0x12a7ca;},'DrtpS':_0x2bfb00(0x1f5),'Nvbcg':'core:','YCWzu':function(_0x1baef8,_0x25b448){return _0x1baef8(_0x25b448);},'YrBCJ':_0x2bfb00(0x214),'egTLi':function(_0x34dc1a,_0x5f2898){return _0x34dc1a===_0x5f2898;},'bJkJV':_0x2bfb00(0x1f9),'AfERa':function(_0x1022fc,_0xad3510,_0x3d2a1c,_0x1b3955,_0x1ec089,_0x2e1bd7,_0x481ce0){return _0x1022fc(_0xad3510,_0x3d2a1c,_0x1b3955,_0x1ec089,_0x2e1bd7,_0x481ce0);},'tYfjg':_0x2bfb00(0x1ee),'zdose':_0x2bfb00(0x1e5),'SDDrg':function(_0xc06c1a,_0x3bc158){return _0xc06c1a<_0x3bc158;},'XwRpV':function(_0x53b863,_0x4f0ea4){return _0x53b863+_0x4f0ea4;},'qaKft':function(_0x21ad14,_0x4992a3){return _0x21ad14(_0x4992a3);},'NVDvH':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','pwonm':function(_0x2a1893,_0x28745d){return _0x2a1893(_0x28745d);},'hlpnT':function(_0x1ab2e2,_0x36824c){return _0x1ab2e2(_0x36824c);},'czziq':function(_0x49351f,_0x38fa92){return _0x49351f<=_0x38fa92;},'dMJTd':function(_0x32060a,_0x3ce30c){return _0x32060a>_0x3ce30c;},'bRnuN':'invalid-selection','kHhMy':function(_0x34593d,_0x55f345){return _0x34593d-_0x55f345;},'jglek':_0x2bfb00(0x1eb),'MqsbO':function(_0x35c9cd,_0xd821ad){return _0x35c9cd!==_0xd821ad;},'HAkyK':function(_0x458fb5,_0x5e2916){return _0x458fb5!==_0x5e2916;},'DAeQE':_0x2bfb00(0x20f),'TVtSp':function(_0x2b2730,_0x1d4371,_0x2e7be5,_0x508aff,_0x4b6ebb,_0x43cd3a,_0x1ed051){return _0x2b2730(_0x1d4371,_0x2e7be5,_0x508aff,_0x4b6ebb,_0x43cd3a,_0x1ed051);},'OozbK':_0x2bfb00(0x1c3),'jtNpa':function(_0xc1cf0f,_0x388666,_0x1de65c,_0x18773f,_0x26282d,_0x1745e5,_0x861d92){return _0xc1cf0f(_0x388666,_0x1de65c,_0x18773f,_0x26282d,_0x1745e5,_0x861d92);},'yLVlZ':_0x2bfb00(0x1cd),'AzCXn':function(_0x5a0947,_0x21e535){return _0x5a0947===_0x21e535;},'EJMDo':function(_0x375ce3,_0xec8b8d,_0x16455a,_0x53efb0,_0x2c4593,_0x4f08a9,_0x474dd3){return _0x375ce3(_0xec8b8d,_0x16455a,_0x53efb0,_0x2c4593,_0x4f08a9,_0x474dd3);},'WWyFk':function(_0x3f3b62,_0x1a3721,_0x349698,_0x53d816,_0x2049e8,_0x3549eb,_0x561167){return _0x3f3b62(_0x1a3721,_0x349698,_0x53d816,_0x2049e8,_0x3549eb,_0x561167);},'fNWXT':function(_0x37c2a0,_0x120499,_0x208472,_0x42623c,_0x47bfe6,_0x4c3330,_0x505da6){return _0x37c2a0(_0x120499,_0x208472,_0x42623c,_0x47bfe6,_0x4c3330,_0x505da6);},'hkufC':_0x2bfb00(0x1e1)};try{global_registry[_0x2bfb00(0x1f4)]=_0x8afacb['HLqfz'](uuidv4);const _0x27be57=_0x2bfb00(0x1d6)+AG_API_URL+_0x2bfb00(0x207);!fs[_0x2bfb00(0x1e3)](_0x8afacb[_0x2bfb00(0x1d8)](getCredentialsPath))&&(console[_0x2bfb00(0x1d2)](_0x8afacb[_0x2bfb00(0x1fe)]),await _0x8afacb[_0x2bfb00(0x1c4)](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes['ERROR'],_0x8afacb[_0x2bfb00(0x216)],null,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1));await _0x8afacb[_0x2bfb00(0x1d7)](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes[_0x2bfb00(0x1f3)],null,null,_0x4d5898);const _0x34e9ba=JSON[_0x2bfb00(0x219)](fs[_0x2bfb00(0x1bc)](_0x8afacb[_0x2bfb00(0x1d8)](getCredentialsPath))),_0x813aaf={};_0x813aaf['username']=_0x34e9ba[_0x2bfb00(0x1fa)][_0x2bfb00(0x21a)],_0x813aaf[_0x2bfb00(0x1f1)]=_0x34e9ba[_0x2bfb00(0x1fa)][_0x2bfb00(0x1f1)];const _0x4960c7={};_0x4960c7[_0x2bfb00(0x1f7)]=_0x27be57,_0x4960c7['method']=_0x8afacb[_0x2bfb00(0x1d9)],_0x4960c7[_0x2bfb00(0x1e2)]=_0x813aaf;const _0x43a3ba=_0x4960c7,_0xc10296=await _0x8afacb[_0x2bfb00(0x224)](promisifiedRequest,_0x43a3ba);if(_0x8afacb[_0x2bfb00(0x1be)](_0xc10296,null)&&_0x8afacb[_0x2bfb00(0x1e9)](_0xc10296,undefined)&&_0x8afacb[_0x2bfb00(0x1d5)](_0xc10296['statusCode'],0xc8)){const _0x4287ae=JSON[_0x2bfb00(0x219)](_0xc10296[_0x2bfb00(0x202)]);console['log'](_0x8afacb[_0x2bfb00(0x1f6)]),console['log'](_0x8afacb[_0x2bfb00(0x1c5)]),console[_0x2bfb00(0x20e)](_0x2bfb00(0x1f2)+_0x34e9ba[_0x2bfb00(0x1fa)][_0x2bfb00(0x21a)]),console['log'](_0x2bfb00(0x200)+_0x4287ae[_0x2bfb00(0x222)][_0x2bfb00(0x20d)]);const _0x1cf609=await _0x8afacb[_0x2bfb00(0x1e7)](inputConfirmation,_0x8afacb['YrBCJ']);(_0x8afacb[_0x2bfb00(0x1d5)](_0x1cf609,undefined)||_0x8afacb['egTLi'](_0x1cf609,null)||!(_0x8afacb[_0x2bfb00(0x1d5)](_0x1cf609[_0x2bfb00(0x21f)](),'y')||_0x8afacb[_0x2bfb00(0x1cf)](_0x1cf609[_0x2bfb00(0x21f)](),'n')))&&(console[_0x2bfb00(0x1d2)](_0x8afacb[_0x2bfb00(0x21b)]),await _0x8afacb['AfERa'](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes[_0x2bfb00(0x1cb)],_0x8afacb[_0x2bfb00(0x1bd)],null,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1));_0x8afacb['sYGOA'](_0x1cf609[_0x2bfb00(0x21f)](),'n')&&process[_0x2bfb00(0x1c7)](0x0);console[_0x2bfb00(0x20e)](_0x8afacb[_0x2bfb00(0x201)]);const _0x6eb761=_0x4287ae[_0x2bfb00(0x20a)][_0x2bfb00(0x1c0)];for(let _0x90e644=0x0;_0x8afacb['SDDrg'](_0x90e644,_0x6eb761);_0x90e644+=0x1){console[_0x2bfb00(0x20e)]('['+_0x8afacb[_0x2bfb00(0x1f0)](_0x90e644,0x1)+']\x20'+_0x4287ae[_0x2bfb00(0x20a)][_0x90e644][_0x2bfb00(0x20d)]);}const _0x5a2ebb=await _0x8afacb[_0x2bfb00(0x1b8)](inputConfirmation,_0x8afacb[_0x2bfb00(0x1d1)]),_0x1a951b=_0x8afacb[_0x2bfb00(0x208)](Number,_0x5a2ebb);(_0x8afacb[_0x2bfb00(0x1e4)](isNaN,_0x1a951b)||_0x8afacb[_0x2bfb00(0x1d4)](_0x1a951b,0x0)||_0x8afacb[_0x2bfb00(0x209)](_0x1a951b,_0x6eb761))&&(console['error'](_0x8afacb['bJkJV']),await _0x8afacb['AfERa'](sendInstrumentationEvent,_0x4d5898,_0x8afacb['RzkhM'],messageTypes[_0x2bfb00(0x1cb)],_0x8afacb[_0x2bfb00(0x1c8)],null,_0x4d5898),process['exit'](0x1));_0x8afacb['HLqfz'](closeInput);const _0x54e4d4=_0x4287ae[_0x2bfb00(0x20a)][_0x8afacb[_0x2bfb00(0x1dc)](_0x1a951b,0x1)]['id'],_0x392309={};_0x392309[_0x2bfb00(0x21a)]=_0x34e9ba[_0x2bfb00(0x1fa)][_0x2bfb00(0x21a)],_0x392309[_0x2bfb00(0x1f1)]=_0x34e9ba[_0x2bfb00(0x1fa)]['password'];const _0x45b7e6={};_0x45b7e6[_0x2bfb00(0x205)]=_0x54e4d4;const _0x489825={};_0x489825[_0x2bfb00(0x1f7)]=_0x27be57,_0x489825[_0x2bfb00(0x20b)]=_0x8afacb[_0x2bfb00(0x213)],_0x489825[_0x2bfb00(0x1e2)]=_0x392309,_0x489825[_0x2bfb00(0x202)]=_0x45b7e6,_0x489825[_0x2bfb00(0x1e8)]=!![];const _0x57d122=_0x489825,_0x4d335b=await _0x8afacb['hlpnT'](promisifiedRequest,_0x57d122);_0x8afacb[_0x2bfb00(0x220)](_0x4d335b,null)&&_0x8afacb[_0x2bfb00(0x21d)](_0x4d335b,undefined)&&_0x8afacb[_0x2bfb00(0x1d5)](_0x4d335b[_0x2bfb00(0x210)],0xc8)&&(console[_0x2bfb00(0x20e)](_0x8afacb[_0x2bfb00(0x221)]),process['exit'](0x0)),_0x8afacb[_0x2bfb00(0x1d5)](_0x4d335b[_0x2bfb00(0x210)],0x191)&&(console['error'](_0x2bfb00(0x227)),await _0x8afacb['TVtSp'](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes[_0x2bfb00(0x1cb)],_0x8afacb[_0x2bfb00(0x1cc)],null,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1)),console[_0x2bfb00(0x1d2)](_0x2bfb00(0x1db)+JSON[_0x2bfb00(0x1ff)](_0x4d335b)),await _0x8afacb[_0x2bfb00(0x225)](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes[_0x2bfb00(0x1cb)],_0x8afacb['yLVlZ'],_0x4d335b,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1);}_0x8afacb[_0x2bfb00(0x1c9)](_0xc10296['statusCode'],0x191)&&(console[_0x2bfb00(0x1d2)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x8afacb['EJMDo'](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes[_0x2bfb00(0x1cb)],_0x8afacb[_0x2bfb00(0x1cc)],null,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1)),console[_0x2bfb00(0x1d2)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2bfb00(0x1ff)](_0xc10296)),await _0x8afacb[_0x2bfb00(0x1b9)](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes[_0x2bfb00(0x1cb)],_0x8afacb[_0x2bfb00(0x223)],_0xc10296,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1);}catch(_0x2b74ee){console[_0x2bfb00(0x1d2)](_0x2bfb00(0x1c2)+_0x2b74ee[_0x2bfb00(0x1fb)]),await _0x8afacb['fNWXT'](sendInstrumentationEvent,_0x4d5898,_0x8afacb[_0x2bfb00(0x228)],messageTypes['ERROR'],_0x8afacb[_0x2bfb00(0x212)],_0x2b74ee,_0x4d5898),process[_0x2bfb00(0x1c7)](0x1);}};
1
+ const a5_0x4ca326=a5_0xe1be;function a5_0x1175(){const _0x452caf=['existsSync','configure-called','IoNLy','desc','statusCode','command','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','toLowerCase','exit','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','8FOsXxu','../config/constants','../utils/userInput','tPvfE','rEFVd','rrAKo','OVNWa','log','error','1233RMkkRu','fwQqB','epilogue','SjxXX','stack','ERROR','3223ktqOSj','help','\x20\x20username:\x20','handler','name','GifpK','argv','Browserstack','1900ykPOdc','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','ekAyo','active','AfIsu','../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ajdDs','120nmhlON','phDWD','lxUex','core:','/packages/cli/configure','GfROU','woBxq','got','765OivPWH','Ovnte','xgKAu','PyryB','eZXlj','stringify','hdjra','vEqxt','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','15519166GIgEXU','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','../utils/utilityMethods','Updated\x20default\x20Grid\x20Profile\x20successfully','CJSta','hyNBM','builder','username','https://','lQACc','unauthorised','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','strict','parse','configure','OJHhS','ammAt','JunkT','HgeCf','8eCOpnB','VGnmg','init-not-called','quvEf','readFileSync','68700eQRTwl','INFO','TQCvF','EZEAI','password','47688wxGzqU','evQoG','usage','uuid','XwUOX','10104YjkrIx','list','body','159966YWyenE','AYkzu','unknown-error','AepyU','requestId','recommendCommands','IzYUQ','2305401wHwtXc','\x20\x20grid-profile:\x20','UNWNu','server-error'];a5_0x1175=function(){return _0x452caf;};return a5_0x1175();}(function(_0x24c1ad,_0x3c9442){const _0x4d4188=a5_0xe1be,_0x3f6807=_0x24c1ad();while(!![]){try{const _0x5f3e49=parseInt(_0x4d4188(0x146))/0x1*(parseInt(_0x4d4188(0xef))/0x2)+parseInt(_0x4d4188(0xf8))/0x3*(parseInt(_0x4d4188(0x106))/0x4)+parseInt(_0x4d4188(0x10e))/0x5*(parseInt(_0x4d4188(0x13e))/0x6)+parseInt(_0x4d4188(0xe1))/0x7*(-parseInt(_0x4d4188(0x134))/0x8)+-parseInt(_0x4d4188(0x116))/0x9*(-parseInt(_0x4d4188(0x139))/0xa)+-parseInt(_0x4d4188(0xfe))/0xb*(-parseInt(_0x4d4188(0x143))/0xc)+-parseInt(_0x4d4188(0x11f))/0xd;if(_0x5f3e49===_0x3c9442)break;else _0x3f6807['push'](_0x3f6807['shift']());}catch(_0x563a44){_0x3f6807['push'](_0x3f6807['shift']());}}}(a5_0x1175,0x5163c));const fs=require('fs'),got=require(a5_0x4ca326(0x115)),{v4:uuidv4}=require(a5_0x4ca326(0x141)),{inputConfirmation,closeInput}=require(a5_0x4ca326(0xf1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x4ca326(0xf0)),{getCredentialsPath,getAuthHeader}=require(a5_0x4ca326(0x122)),{sendInstrumentationEvent}=require(a5_0x4ca326(0x10b));function a5_0xe1be(_0x574143,_0x3bc5cd){const _0x11754f=a5_0x1175();return a5_0xe1be=function(_0xe1befc,_0x21f5ba){_0xe1befc=_0xe1befc-0xdc;let _0x3c757e=_0x11754f[_0xe1befc];return _0x3c757e;},a5_0xe1be(_0x574143,_0x3bc5cd);}exports[a5_0x4ca326(0xea)]=a5_0x4ca326(0x12f),exports[a5_0x4ca326(0xe8)]=a5_0x4ca326(0x121),exports[a5_0x4ca326(0x126)]=function(_0x407730){const _0x52f2a0=a5_0x4ca326,_0x2e559b={};_0x2e559b[_0x52f2a0(0x108)]=_0x52f2a0(0xff);const _0xf080b0=_0x2e559b;return _0x407730[_0x52f2a0(0x140)](HELP_HEADER_MESSAGE['configure'])[_0x52f2a0(0xfa)](HELP_FOOTER_MESSAGE)[_0x52f2a0(0xff)](_0xf080b0[_0x52f2a0(0x108)])[_0x52f2a0(0xdf)]()[_0x52f2a0(0x12d)]()[_0x52f2a0(0x104)];},exports[a5_0x4ca326(0x101)]=async function(_0x1972fd){const _0x5680b5=a5_0x4ca326,_0x436c23={'OVNWa':function(_0x27033b){return _0x27033b();},'rEFVd':function(_0x2ffce0){return _0x2ffce0();},'rrAKo':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TQCvF':function(_0x45116c,_0x413b84,_0x1fc3b5,_0x29912b,_0x4043ba,_0x8040ad,_0x3a4aae){return _0x45116c(_0x413b84,_0x1fc3b5,_0x29912b,_0x4043ba,_0x8040ad,_0x3a4aae);},'fwQqB':_0x5680b5(0xe6),'AepyU':_0x5680b5(0x136),'AYkzu':function(_0x36f0b2,_0x57d137,_0x17be3e,_0x38811b,_0x63f456,_0x43632c,_0x63e461){return _0x36f0b2(_0x57d137,_0x17be3e,_0x38811b,_0x63f456,_0x43632c,_0x63e461);},'PyryB':'GET','hyNBM':function(_0x570fe6,_0x14e228,_0x49be04){return _0x570fe6(_0x14e228,_0x49be04);},'EZEAI':function(_0x3d9fe2,_0x630474,_0x31967e){return _0x3d9fe2(_0x630474,_0x31967e);},'lQACc':function(_0x52964a,_0xef6c0b){return _0x52964a!==_0xef6c0b;},'tPvfE':function(_0x1f21bf,_0x2c68d3){return _0x1f21bf!==_0x2c68d3;},'woBxq':function(_0x38a039,_0x4c7a5a){return _0x38a039===_0x4c7a5a;},'IoNLy':_0x5680b5(0x107),'MWttt':_0x5680b5(0x111),'IzYUQ':function(_0x1827b7,_0x385f41){return _0x1827b7(_0x385f41);},'phDWD':_0x5680b5(0x11e),'quvEf':function(_0x2f80da,_0x438451){return _0x2f80da===_0x438451;},'OkCZC':function(_0x3c6175,_0x348a88){return _0x3c6175===_0x348a88;},'Ovnte':_0x5680b5(0x12c),'AfIsu':function(_0x316477,_0x4729ca,_0x3b48e3,_0xfa18ca,_0x4c7e75,_0x38dae6,_0x300b0d){return _0x316477(_0x4729ca,_0x3b48e3,_0xfa18ca,_0x4c7e75,_0x38dae6,_0x300b0d);},'HgeCf':'invalid-input','UNWNu':function(_0x15c7d0,_0x1a2a5c){return _0x15c7d0===_0x1a2a5c;},'xgKAu':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','XwUOX':function(_0x1af85e,_0x2dd4b3){return _0x1af85e<_0x2dd4b3;},'lxUex':function(_0x4130a7,_0x3cfd21){return _0x4130a7+_0x3cfd21;},'GfROU':function(_0x33e2f3,_0x340e3a){return _0x33e2f3(_0x340e3a);},'vEqxt':_0x5680b5(0xee),'LuDzy':function(_0x5e3e1f,_0x581316){return _0x5e3e1f(_0x581316);},'SjxXX':function(_0x3f5ad4,_0x12a1ab){return _0x3f5ad4(_0x12a1ab);},'OJHhS':function(_0xcc12cc,_0x4901ad){return _0xcc12cc<=_0x4901ad;},'CJSta':function(_0x269fa5,_0x63ef9e){return _0x269fa5>_0x63ef9e;},'ajdDs':'invalid-selection','qZRfM':function(_0x2a2f69){return _0x2a2f69();},'sLbZN':function(_0x4c3989,_0xa602e){return _0x4c3989-_0xa602e;},'JunkT':'PUT','cBIka':'json','cBBiA':_0x5680b5(0x123),'GifpK':function(_0x122ed1,_0x5236bf){return _0x122ed1===_0x5236bf;},'eZXlj':_0x5680b5(0x12a),'ammAt':_0x5680b5(0xe4),'evQoG':function(_0x1bfbee,_0xd88bf8,_0x46d996,_0xae9979,_0x5a62a0,_0x361838,_0x3ec051){return _0x1bfbee(_0xd88bf8,_0x46d996,_0xae9979,_0x5a62a0,_0x361838,_0x3ec051);},'KqVOM':function(_0x3131b7,_0x4f0844,_0x46271c,_0x3bb6ad,_0x57b12a,_0x14da26,_0x115c84){return _0x3131b7(_0x4f0844,_0x46271c,_0x3bb6ad,_0x57b12a,_0x14da26,_0x115c84);},'hdjra':function(_0x18aafa,_0x5a6789,_0xcc10c7,_0xb1076a,_0x18e6f5,_0x809bbd,_0x86825b){return _0x18aafa(_0x5a6789,_0xcc10c7,_0xb1076a,_0x18e6f5,_0x809bbd,_0x86825b);},'VGnmg':_0x5680b5(0xdc)};try{global_registry[_0x5680b5(0xde)]=_0x436c23[_0x5680b5(0xf5)](uuidv4);const _0x48673b=_0x5680b5(0x128)+AG_API_URL+_0x5680b5(0x112);!fs[_0x5680b5(0xe5)](_0x436c23[_0x5680b5(0xf3)](getCredentialsPath))&&(console[_0x5680b5(0xf7)](_0x436c23[_0x5680b5(0xf4)]),await _0x436c23['TQCvF'](sendInstrumentationEvent,_0x1972fd,_0x436c23['fwQqB'],messageTypes[_0x5680b5(0xfd)],_0x436c23[_0x5680b5(0xdd)],null,_0x1972fd),process[_0x5680b5(0xed)](0x1));await _0x436c23[_0x5680b5(0x147)](sendInstrumentationEvent,_0x1972fd,_0x436c23['fwQqB'],messageTypes[_0x5680b5(0x13a)],null,null,_0x1972fd);const _0x58b8bc=JSON[_0x5680b5(0x12e)](fs[_0x5680b5(0x138)](_0x436c23[_0x5680b5(0xf5)](getCredentialsPath))),_0x52324a={'method':_0x436c23[_0x5680b5(0x119)],'headers':_0x436c23[_0x5680b5(0x125)](getAuthHeader,_0x58b8bc[_0x5680b5(0x105)][_0x5680b5(0x127)],_0x58b8bc[_0x5680b5(0x105)][_0x5680b5(0x13d)])},_0x5720a0=await _0x436c23[_0x5680b5(0x13c)](got,_0x48673b,_0x52324a);if(_0x436c23[_0x5680b5(0x129)](_0x5720a0,null)&&_0x436c23[_0x5680b5(0xf2)](_0x5720a0,undefined)&&_0x436c23[_0x5680b5(0x114)](_0x5720a0[_0x5680b5(0xe9)],0xc8)){const _0x3f4927=JSON[_0x5680b5(0x12e)](_0x5720a0[_0x5680b5(0x145)]);console[_0x5680b5(0xf6)](_0x436c23[_0x5680b5(0xe7)]),console[_0x5680b5(0xf6)](_0x436c23['MWttt']),console[_0x5680b5(0xf6)](_0x5680b5(0x100)+_0x58b8bc['Browserstack'][_0x5680b5(0x127)]),console[_0x5680b5(0xf6)](_0x5680b5(0xe2)+_0x3f4927[_0x5680b5(0x109)][_0x5680b5(0x102)]);const _0x53252c=await _0x436c23[_0x5680b5(0xe0)](inputConfirmation,_0x436c23[_0x5680b5(0x10f)]);(_0x436c23[_0x5680b5(0x114)](_0x53252c,undefined)||_0x436c23[_0x5680b5(0x114)](_0x53252c,null)||!(_0x436c23['quvEf'](_0x53252c[_0x5680b5(0xec)](),'y')||_0x436c23['OkCZC'](_0x53252c[_0x5680b5(0xec)](),'n')))&&(console[_0x5680b5(0xf7)](_0x436c23[_0x5680b5(0x117)]),await _0x436c23[_0x5680b5(0x10a)](sendInstrumentationEvent,_0x1972fd,_0x436c23['fwQqB'],messageTypes[_0x5680b5(0xfd)],_0x436c23[_0x5680b5(0x133)],null,_0x1972fd),process[_0x5680b5(0xed)](0x1));_0x436c23[_0x5680b5(0xe3)](_0x53252c['toLowerCase'](),'n')&&process[_0x5680b5(0xed)](0x0);console[_0x5680b5(0xf6)](_0x436c23[_0x5680b5(0x118)]);const _0x58d9b3=_0x3f4927[_0x5680b5(0x144)]['length'];for(let _0x513335=0x0;_0x436c23[_0x5680b5(0x142)](_0x513335,_0x58d9b3);_0x513335+=0x1){console[_0x5680b5(0xf6)]('['+_0x436c23[_0x5680b5(0x110)](_0x513335,0x1)+']\x20'+_0x3f4927['list'][_0x513335][_0x5680b5(0x102)]);}const _0x598e84=await _0x436c23[_0x5680b5(0x113)](inputConfirmation,_0x436c23[_0x5680b5(0x11d)]),_0x24fb9d=_0x436c23['LuDzy'](Number,_0x598e84);(_0x436c23[_0x5680b5(0xfb)](isNaN,_0x24fb9d)||_0x436c23[_0x5680b5(0x130)](_0x24fb9d,0x0)||_0x436c23[_0x5680b5(0x124)](_0x24fb9d,_0x58d9b3))&&(console[_0x5680b5(0xf7)](_0x436c23[_0x5680b5(0x117)]),await _0x436c23[_0x5680b5(0x13b)](sendInstrumentationEvent,_0x1972fd,_0x436c23[_0x5680b5(0xf9)],messageTypes[_0x5680b5(0xfd)],_0x436c23[_0x5680b5(0x10d)],null,_0x1972fd),process[_0x5680b5(0xed)](0x1));_0x436c23['qZRfM'](closeInput);const _0x55ab1a=_0x3f4927[_0x5680b5(0x144)][_0x436c23['sLbZN'](_0x24fb9d,0x1)]['id'],_0x6fcd53={};_0x6fcd53['profileId']=_0x55ab1a;const _0x1ff927={'method':_0x436c23[_0x5680b5(0x132)],'headers':_0x436c23[_0x5680b5(0x125)](getAuthHeader,_0x58b8bc['Browserstack'][_0x5680b5(0x127)],_0x58b8bc[_0x5680b5(0x105)]['password']),'json':_0x6fcd53,'responseType':_0x436c23['cBIka']},_0x531e04=await _0x436c23[_0x5680b5(0x125)](got,_0x48673b,_0x1ff927);_0x436c23[_0x5680b5(0x129)](_0x531e04,null)&&_0x436c23[_0x5680b5(0x129)](_0x531e04,undefined)&&_0x436c23[_0x5680b5(0x137)](_0x531e04[_0x5680b5(0xe9)],0xc8)&&(console[_0x5680b5(0xf6)](_0x436c23['cBBiA']),process['exit'](0x0)),_0x436c23[_0x5680b5(0x103)](_0x531e04[_0x5680b5(0xe9)],0x191)&&(console[_0x5680b5(0xf7)](_0x5680b5(0xeb)),await _0x436c23[_0x5680b5(0x13b)](sendInstrumentationEvent,_0x1972fd,_0x436c23[_0x5680b5(0xf9)],messageTypes['ERROR'],_0x436c23[_0x5680b5(0x11a)],null,_0x1972fd),process[_0x5680b5(0xed)](0x1)),console[_0x5680b5(0xf7)](_0x5680b5(0x120)+JSON[_0x5680b5(0x11b)](_0x531e04)),await _0x436c23[_0x5680b5(0x10a)](sendInstrumentationEvent,_0x1972fd,_0x436c23['fwQqB'],messageTypes[_0x5680b5(0xfd)],_0x436c23[_0x5680b5(0x131)],_0x531e04,_0x1972fd),process[_0x5680b5(0xed)](0x1);}_0x436c23[_0x5680b5(0xe3)](_0x5720a0['statusCode'],0x191)&&(console[_0x5680b5(0xf7)](_0x5680b5(0x10c)),await _0x436c23[_0x5680b5(0x13f)](sendInstrumentationEvent,_0x1972fd,_0x436c23[_0x5680b5(0xf9)],messageTypes[_0x5680b5(0xfd)],_0x436c23[_0x5680b5(0x11a)],null,_0x1972fd),process[_0x5680b5(0xed)](0x1)),console[_0x5680b5(0xf7)](_0x5680b5(0x12b)+JSON['stringify'](_0x5720a0)),await _0x436c23['KqVOM'](sendInstrumentationEvent,_0x1972fd,_0x436c23[_0x5680b5(0xf9)],messageTypes[_0x5680b5(0xfd)],_0x436c23['ammAt'],_0x5720a0,_0x1972fd),process[_0x5680b5(0xed)](0x1);}catch(_0x4b3e29){console['error']('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x4b3e29[_0x5680b5(0xfc)]),await _0x436c23[_0x5680b5(0x11c)](sendInstrumentationEvent,_0x1972fd,_0x436c23[_0x5680b5(0xf9)],messageTypes[_0x5680b5(0xfd)],_0x436c23[_0x5680b5(0x135)],_0x4b3e29,_0x1972fd),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a6_0x355c(){const _0x429a40=['5zoQDHa','29187gCFKnM','5826ZbwRrF','9136842OaOWYL','command','2495738rtPMLl','commandDir','9nJmIiD','6340rHNQsb','36htsIaN','../config/constants','strict','demandCommand','usage','70872uSQFkG','5933820GaZMjZ','8271752ojtjRe','Uawsc','TySDZ','handler','epilogue','connect'];a6_0x355c=function(){return _0x429a40;};return a6_0x355c();}const a6_0x1687bf=a6_0x11a6;(function(_0x40535f,_0x2e3a15){const _0x23cdc7=a6_0x11a6,_0x81db2b=_0x40535f();while(!![]){try{const _0x390e46=parseInt(_0x23cdc7(0x1c5))/0x1*(-parseInt(_0x23cdc7(0x1bd))/0x2)+-parseInt(_0x23cdc7(0x1c6))/0x3*(-parseInt(_0x23cdc7(0x1b8))/0x4)+-parseInt(_0x23cdc7(0x1b7))/0x5*(parseInt(_0x23cdc7(0x1b1))/0x6)+-parseInt(_0x23cdc7(0x1b4))/0x7+parseInt(_0x23cdc7(0x1bf))/0x8*(parseInt(_0x23cdc7(0x1b6))/0x9)+parseInt(_0x23cdc7(0x1be))/0xa+parseInt(_0x23cdc7(0x1b2))/0xb;if(_0x390e46===_0x2e3a15)break;else _0x81db2b['push'](_0x81db2b['shift']());}catch(_0xc1c664){_0x81db2b['push'](_0x81db2b['shift']());}}}(a6_0x355c,0xbe930));function a6_0x11a6(_0x53f12b,_0x38450e){const _0x355c23=a6_0x355c();return a6_0x11a6=function(_0x11a6bf,_0x4c2066){_0x11a6bf=_0x11a6bf-0x1b1;let _0xaf80b8=_0x355c23[_0x11a6bf];return _0xaf80b8;},a6_0x11a6(_0x53f12b,_0x38450e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x1687bf(0x1b9));exports[a6_0x1687bf(0x1b3)]=a6_0x1687bf(0x1c4),exports['desc']='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports['builder']=function(_0x17d96c){const _0x1aa517=a6_0x1687bf,_0x1fc8e4={};_0x1fc8e4[_0x1aa517(0x1c0)]='connect_commands',_0x1fc8e4[_0x1aa517(0x1c1)]='help';const _0x527db1=_0x1fc8e4;return _0x17d96c[_0x1aa517(0x1bc)](HELP_HEADER_MESSAGE['connect'])[_0x1aa517(0x1c3)](HELP_FOOTER_MESSAGE)[_0x1aa517(0x1b5)](_0x527db1[_0x1aa517(0x1c0)])[_0x1aa517(0x1bb)]()['recommendCommands']()[_0x1aa517(0x1ba)]()['help'](_0x527db1['TySDZ']);},exports[a6_0x1687bf(0x1c2)]=function(_0x28a252){};
1
+ const a6_0x557d2f=a6_0x3b64;(function(_0x55e65e,_0x1ed4a7){const _0xa7e860=a6_0x3b64,_0x1cbc8d=_0x55e65e();while(!![]){try{const _0x3b27c2=-parseInt(_0xa7e860(0x70))/0x1+-parseInt(_0xa7e860(0x7c))/0x2+parseInt(_0xa7e860(0x7a))/0x3*(-parseInt(_0xa7e860(0x6d))/0x4)+-parseInt(_0xa7e860(0x79))/0x5+parseInt(_0xa7e860(0x71))/0x6*(-parseInt(_0xa7e860(0x7e))/0x7)+-parseInt(_0xa7e860(0x76))/0x8+-parseInt(_0xa7e860(0x7f))/0x9*(-parseInt(_0xa7e860(0x7b))/0xa);if(_0x3b27c2===_0x1ed4a7)break;else _0x1cbc8d['push'](_0x1cbc8d['shift']());}catch(_0x16c76f){_0x1cbc8d['push'](_0x1cbc8d['shift']());}}}(a6_0x247d,0x47256));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a6_0x3b64(_0xea31c5,_0x23fa89){const _0x247dcc=a6_0x247d();return a6_0x3b64=function(_0x3b6472,_0x43e0aa){_0x3b6472=_0x3b6472-0x6b;let _0x107e1e=_0x247dcc[_0x3b6472];return _0x107e1e;},a6_0x3b64(_0xea31c5,_0x23fa89);}exports[a6_0x557d2f(0x74)]=a6_0x557d2f(0x6f),exports[a6_0x557d2f(0x72)]=a6_0x557d2f(0x6b),exports[a6_0x557d2f(0x73)]=function(_0x43dc09){const _0x9f2714=a6_0x557d2f,_0x24ea1b={};_0x24ea1b[_0x9f2714(0x77)]=_0x9f2714(0x6e),_0x24ea1b['XrCde']=_0x9f2714(0x78);const _0x2c502a=_0x24ea1b;return _0x43dc09['usage'](HELP_HEADER_MESSAGE['connect'])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x2c502a[_0x9f2714(0x77)])[_0x9f2714(0x80)]()['recommendCommands']()[_0x9f2714(0x6c)]()[_0x9f2714(0x78)](_0x2c502a[_0x9f2714(0x75)]);},exports[a6_0x557d2f(0x7d)]=function(_0x213d68){};function a6_0x247d(){const _0x473c8c=['demandCommand','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','strict','8zmnVFM','connect_commands','connect','8523fxtgJU','2346idjOnv','desc','builder','command','XrCde','1764448ciKhNT','iuOTE','help','357240ssTdkS','322431dMMxYs','3233390aaBcMt','638190qjPzTZ','handler','8785VvJtZd','45VYhFAw'];a6_0x247d=function(){return _0x473c8c;};return a6_0x247d();}