browserstack-node-sdk 1.49.1 → 1.49.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a2_0x42f4(_0x9148e7,_0x307bb2){const _0x2f70aa=a2_0x2f70();return a2_0x42f4=function(_0x42f4e8,_0x2d988a){_0x42f4e8=_0x42f4e8-0x19f;let _0x37130a=_0x2f70aa[_0x42f4e8];return _0x37130a;},a2_0x42f4(_0x9148e7,_0x307bb2);}const a2_0x106f80=a2_0x42f4;(function(_0x5110a4,_0x505cfb){const _0xb8daee=a2_0x42f4,_0x56501c=_0x5110a4();while(!![]){try{const _0x4d22a3=parseInt(_0xb8daee(0x1b4))/0x1*(parseInt(_0xb8daee(0x1b7))/0x2)+-parseInt(_0xb8daee(0x1a4))/0x3+parseInt(_0xb8daee(0x1ad))/0x4+parseInt(_0xb8daee(0x1b2))/0x5+-parseInt(_0xb8daee(0x1a2))/0x6*(-parseInt(_0xb8daee(0x1a1))/0x7)+-parseInt(_0xb8daee(0x1be))/0x8+-parseInt(_0xb8daee(0x1af))/0x9;if(_0x4d22a3===_0x505cfb)break;else _0x56501c['push'](_0x56501c['shift']());}catch(_0x394764){_0x56501c['push'](_0x56501c['shift']());}}}(a2_0x2f70,0x877a0));function a2_0x2f70(){const _0x18314a=['exports','13930812wuuZEe','NWSug','cloudProvider','3814710OGdqqR','ipZnn','429322jnFBiA','vSNzl','../config/constants','4jGfGDn','parse','rws','info','clusterName','split','cloudProviderName','4295720DQvqTz','sendEventToBackend','setCachedCredsInRegistry','36351aprPrV','1086cnjUnU','type','2231076tZuGVD','CloudProvider','../utils/utilityMethods','2|4|1|0|3','stringify','init','XnoLA','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','3287672vPqYqf'];a2_0x2f70=function(){return _0x18314a;};return a2_0x2f70();}const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x106f80(0x1a6)),{logger}=require('../config/logger'),{inputCloudProviderKeys}=require('../utils/userInput'),{WS_EVENTS}=require(a2_0x106f80(0x1b6));class CloudProvider{constructor(_0x496abe,_0x29dfbf,_0x23d247,_0x5fe577,_0x1506c3){const _0x8461b8=a2_0x106f80,_0x23be78={};_0x23be78[_0x8461b8(0x1b5)]=_0x8461b8(0x1a7);const _0x54b6cb=_0x23be78,_0x311a67=_0x54b6cb['vSNzl'][_0x8461b8(0x1bc)]('|');let _0x197a5a=0x0;while(!![]){switch(_0x311a67[_0x197a5a++]){case'0':this[_0x8461b8(0x1b9)]=_0x5fe577;continue;case'1':this['gridName']=_0x23d247;continue;case'2':this[_0x8461b8(0x1bd)]=_0x496abe;continue;case'3':this['webSocketUtils']=_0x1506c3;continue;case'4':this[_0x8461b8(0x1bb)]=_0x29dfbf;continue;}break;}}async[a2_0x106f80(0x1a9)](){const _0xa74646=a2_0x106f80,_0x2fa18d={'Vfbqq':function(_0x43684d){return _0x43684d();},'NhPsX':function(_0x3a750c,_0xac2c9a){return _0x3a750c(_0xac2c9a);},'ipZnn':_0xa74646(0x1ab),'nKZQk':function(_0x56c9c8,_0x1344a2,_0x303064,_0xe14751){return _0x56c9c8(_0x1344a2,_0x303064,_0xe14751);},'XnoLA':function(_0x30cccd){return _0x30cccd();},'Jfyhu':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','NWSug':_0xa74646(0x1ac)},_0x38c125=JSON[_0xa74646(0x1b8)](fs['readFileSync'](_0x2fa18d['Vfbqq'](getCredentialsPath))),_0x301f90=_0x38c125[_0xa74646(0x1b1)]||{};if(_0x2fa18d['NhPsX'](isUndefined,_0x301f90[this['cloudProviderName']])){logger[_0xa74646(0x1ba)](_0x2fa18d[_0xa74646(0x1b3)]);_0x2fa18d['NhPsX'](isUndefined,_0x38c125[_0xa74646(0x1b1)])&&(_0x38c125[_0xa74646(0x1b1)]={});_0x38c125['cloudProvider'][this['cloudProviderName']]={};const _0x481083=await _0x2fa18d['nKZQk'](inputCloudProviderKeys,this[_0xa74646(0x1bd)],_0x38c125,this);fs['writeFileSync'](_0x2fa18d[_0xa74646(0x1aa)](getCredentialsPath),JSON[_0xa74646(0x1a8)](_0x481083)),logger['debug'](_0x2fa18d['Jfyhu']);}else{const _0xe3e325=_0x2fa18d[_0xa74646(0x1b0)],_0x69f9d2={};_0x69f9d2[_0xa74646(0x1a3)]=WS_EVENTS['LOG'],_0x69f9d2['message']=_0xe3e325,this['webSocketUtils'][_0xa74646(0x19f)](this['rws'],_0x69f9d2),logger[_0xa74646(0x1ba)](_0xe3e325),await this[_0xa74646(0x1a0)](_0x301f90);}}}const a2_0x3fdf0d={};a2_0x3fdf0d[a2_0x106f80(0x1a5)]=CloudProvider,module[a2_0x106f80(0x1ae)]=a2_0x3fdf0d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x17a4(_0x21ecd2,_0x500e25){const _0x3ae7ca=a3_0x3ae7();return a3_0x17a4=function(_0x17a459,_0x30c079){_0x17a459=_0x17a459-0x112;let _0x448dfd=_0x3ae7ca[_0x17a459];return _0x448dfd;},a3_0x17a4(_0x21ecd2,_0x500e25);}const a3_0x33f874=a3_0x17a4;(function(_0x147e3f,_0x4ef5d9){const _0x3acfdf=a3_0x17a4,_0x17fce1=_0x147e3f();while(!![]){try{const _0x17e0ae=-parseInt(_0x3acfdf(0x2ae))/0x1*(-parseInt(_0x3acfdf(0x214))/0x2)+-parseInt(_0x3acfdf(0x276))/0x3+parseInt(_0x3acfdf(0x210))/0x4+-parseInt(_0x3acfdf(0x271))/0x5+-parseInt(_0x3acfdf(0x217))/0x6*(parseInt(_0x3acfdf(0x279))/0x7)+parseInt(_0x3acfdf(0x282))/0x8+parseInt(_0x3acfdf(0x1a0))/0x9*(parseInt(_0x3acfdf(0x29f))/0xa);if(_0x17e0ae===_0x4ef5d9)break;else _0x17fce1['push'](_0x17fce1['shift']());}catch(_0x14397d){_0x17fce1['push'](_0x17fce1['shift']());}}}(a3_0x3ae7,0x8c74f));const fs=require('fs'),path=require(a3_0x33f874(0x1c8)),got=require(a3_0x33f874(0x257)),util=require(a3_0x33f874(0x1c5)),cp=require(a3_0x33f874(0x12b)),{google}=require(a3_0x33f874(0x130)),compute=require(a3_0x33f874(0x1c2)),container=require(a3_0x33f874(0x1c0)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x33f874(0x260)),{CloudProvider}=require(a3_0x33f874(0x1f1)),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x33f874(0x12c)),{deleteRoutingDeps,deleteAgent}=require(a3_0x33f874(0x15d)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x33f874(0x14f)),PERMISSIONS=require('../permissions/GCP.json');class GoogleCloudProvider extends CloudProvider{constructor(_0x80089d,_0x4471f5,_0x3f3e63,_0x3eaf3f){const _0x58e10e=a3_0x33f874,_0x5e41a4={};_0x5e41a4[_0x58e10e(0x263)]=_0x58e10e(0x1e6),_0x5e41a4[_0x58e10e(0x26f)]=_0x58e10e(0x18a),_0x5e41a4[_0x58e10e(0x1a8)]=_0x58e10e(0x14e);const _0x18ec97=_0x5e41a4,_0x4c1a44=_0x18ec97['Opxur']['split']('|');let _0x55ebde=0x0;while(!![]){switch(_0x4c1a44[_0x55ebde++]){case'0':this[_0x58e10e(0x13e)]=null;continue;case'1':this[_0x58e10e(0x19e)]=null;continue;case'2':this[_0x58e10e(0x25a)]=null;continue;case'3':this[_0x58e10e(0x113)]=null;continue;case'4':this[_0x58e10e(0x144)]=null;continue;case'5':this[_0x58e10e(0x190)]=_0x18ec97[_0x58e10e(0x26f)];continue;case'6':super(GCP,_0x80089d,_0x4471f5,_0x3f3e63,_0x3eaf3f);continue;case'7':this['credentialsPath']=null;continue;case'8':this[_0x58e10e(0x1d7)]=_0x18ec97[_0x58e10e(0x1a8)];continue;}break;}}async[a3_0x33f874(0x196)](){const _0x397a87=a3_0x33f874;this[_0x397a87(0x1de)](this['rws']);}async[a3_0x33f874(0x20b)](){const _0x20fc8f=a3_0x33f874;await super[_0x20fc8f(0x20b)]();const _0x19f28d=this['credentialsPath'],_0x19ad2b={};_0x19ad2b[_0x20fc8f(0x26e)]=_0x19f28d,this[_0x20fc8f(0x144)]=new container['v1'][(_0x20fc8f(0x140))](_0x19ad2b);const _0x35c4fb={};_0x35c4fb[_0x20fc8f(0x26e)]=_0x19f28d,this[_0x20fc8f(0x19e)]=new compute['v1'][(_0x20fc8f(0x1c7))](_0x35c4fb);const _0x158547={};return _0x158547[_0x20fc8f(0x26e)]=_0x19f28d,this['resourcemanagerClient']=new ProjectsClient(_0x158547),this[_0x20fc8f(0x25a)]=google[_0x20fc8f(0x268)]('v1'),this;}async[a3_0x33f874(0x1cc)](_0x5e8451,_0x2c06ba){const _0x5f0810=a3_0x33f874,_0x29a029={'lSBSy':function(_0xc13aa3,_0x209e31){return _0xc13aa3(_0x209e31);},'sqLht':_0x5f0810(0x1e9),'NWmKi':function(_0x55bd7b){return _0x55bd7b();},'okvTv':_0x5f0810(0x28f)},_0x4e5933=await _0x29a029[_0x5f0810(0x13a)](_0x5e8451,_0x29a029[_0x5f0810(0x222)]);let _0x245248=await fs[_0x5f0810(0x1b5)](_0x4e5933);_0x245248=_0x245248[_0x5f0810(0x1f2)]();const _0x190381=_0x29a029['NWmKi'](getDirForConfig),_0x426b62=path[_0x5f0810(0x129)](_0x190381,_0x29a029[_0x5f0810(0x141)]);fs[_0x5f0810(0x262)](_0x426b62,_0x245248),this['credentialsPath']=_0x426b62;const _0xa65fdb={};return _0xa65fdb[_0x5f0810(0x26e)]=_0x426b62,_0x2c06ba[_0x5f0810(0x2a7)][GCP]=_0xa65fdb,_0x245248=JSON[_0x5f0810(0x186)](_0x245248),this['projectId']=_0x245248['project_id'],_0x2c06ba;}async['setCachedCredsInRegistry'](_0x5825b8){const _0x1d3f0f=a3_0x33f874;this['credentialsPath']=_0x5825b8[this[_0x1d3f0f(0x1a3)]][_0x1d3f0f(0x26e)];let _0x58b613=await fs[_0x1d3f0f(0x1b5)](this[_0x1d3f0f(0x1a4)]);_0x58b613=JSON[_0x1d3f0f(0x186)](_0x58b613),this[_0x1d3f0f(0x13e)]=_0x58b613[_0x1d3f0f(0x218)];}[a3_0x33f874(0x23b)](_0x350812){const _0x19ab39=a3_0x33f874;return _0x350812[_0x19ab39(0x221)][_0x19ab39(0x137)][_0x19ab39(0x28a)][0x0]['ip'];}async[a3_0x33f874(0x274)](){const _0x5e34e6=a3_0x33f874,_0x18e8d3={};_0x18e8d3[_0x5e34e6(0x145)]=function(_0x194bec,_0x9108d8){return _0x194bec-_0x9108d8;},_0x18e8d3[_0x5e34e6(0x239)]=function(_0x234824,_0xe6c712){return _0x234824!==_0xe6c712;},_0x18e8d3[_0x5e34e6(0x1eb)]=function(_0x10dea4,_0x1cf0f5){return _0x10dea4===_0x1cf0f5;},_0x18e8d3[_0x5e34e6(0x142)]='qVkTy',_0x18e8d3[_0x5e34e6(0x1ed)]=_0x5e34e6(0x1b4),_0x18e8d3[_0x5e34e6(0x187)]=function(_0x3d918b,_0x1c663e){return _0x3d918b===_0x1c663e;},_0x18e8d3[_0x5e34e6(0x24c)]=_0x5e34e6(0x131),_0x18e8d3[_0x5e34e6(0x17c)]=_0x5e34e6(0x13c);const _0x3d68c0=_0x18e8d3;try{if(_0x3d68c0[_0x5e34e6(0x1eb)](_0x3d68c0['ienQj'],_0x3d68c0[_0x5e34e6(0x142)])){const _0x578a84=await this['getClusterInfo']();if(_0x578a84[0x0]?.[_0x5e34e6(0x1ff)]?.[_0x5e34e6(0x161)]){if(_0x3d68c0[_0x5e34e6(0x239)](_0x3d68c0[_0x5e34e6(0x1ed)],_0x3d68c0[_0x5e34e6(0x1ed)]))return!![];else{const _0x40f734=_0x578a84[0x0]?.['resourceLabels']?.[_0x5e34e6(0x161)];return _0x40f734&&_0x3d68c0[_0x5e34e6(0x187)](_0x40f734['toLowerCase'](),_0x3d68c0[_0x5e34e6(0x24c)]);}}}else _0x52eaaa[_0x5e34e6(0x258)]=_0x150c2f[_0x3d68c0[_0x5e34e6(0x145)](_0x24d8bc,0x1)],this[_0x5e34e6(0x1a7)]();}catch(_0x13df76){return _0x3d68c0[_0x5e34e6(0x187)](_0x3d68c0[_0x5e34e6(0x17c)],_0x3d68c0[_0x5e34e6(0x17c)])?![]:(_0x3d68c0[_0x5e34e6(0x239)](_0x207923[_0x5e34e6(0x258)],_0x35799a[0x0])&&(_0x578634['clusterRegion']=_0x4c3dfb[0x0],this[_0x5e34e6(0x1a7)]()),!![]);}return![];}async[a3_0x33f874(0x1d9)](){const _0x3808c6=a3_0x33f874,_0x84c487={'lYoji':function(_0x49b4ff,_0x3d020f){return _0x49b4ff===_0x3d020f;},'NgLYs':function(_0x2d0107,_0x434fc5){return _0x2d0107+_0x434fc5;},'JHXEP':_0x3808c6(0x150),'kliBP':_0x3808c6(0x234),'fTXew':_0x3808c6(0x1b3),'HOocN':_0x3808c6(0x117),'CFGar':_0x3808c6(0x227),'tpEIX':'utf-8','kuoNr':function(_0x3cf699,_0x423b67){return _0x3cf699!==_0x423b67;},'wRYGI':_0x3808c6(0x24e),'spUSw':_0x3808c6(0x291),'rRBXt':_0x3808c6(0x165),'ZiHbR':_0x3808c6(0x2bd),'bsWrg':_0x3808c6(0x1cb),'tJjUa':'sUwcI','WXrhL':_0x3808c6(0x24f),'GAVDZ':_0x3808c6(0x213),'ZZNZz':function(_0x1e573c,_0x4ec152){return _0x1e573c>_0x4ec152;},'rFzBI':function(_0x396bce,_0x4391bc){return _0x396bce===_0x4391bc;},'ELNmi':_0x3808c6(0x185),'iDzde':'xXFTm','LSnOY':function(_0x1b0970,_0x4f49aa){return _0x1b0970<_0x4f49aa;},'QTYJf':_0x3808c6(0x272),'WlVRH':'ZxHVV','gfcaD':function(_0x2258a,_0x25a5f0){return _0x2258a+_0x25a5f0;},'PJHYx':function(_0x581a0b,_0x19859a){return _0x581a0b(_0x19859a);},'ZjySq':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','sIQRn':function(_0x37e2c5,_0x4095e5){return _0x37e2c5(_0x4095e5);},'FXaWe':function(_0x2ebc36,_0x76090c){return _0x2ebc36<=_0x76090c;},'FBtrQ':function(_0x5b28e6,_0x4e0b5e){return _0x5b28e6>_0x4e0b5e;},'pGTeh':function(_0x345225,_0x4f4172){return _0x345225===_0x4f4172;},'YnVju':_0x3808c6(0x133),'eJNhB':function(_0x398a40){return _0x398a40();},'kOntc':function(_0x56548c,_0x3e54e9){return _0x56548c-_0x3e54e9;},'gcgOJ':function(_0x43c02a,_0x4ee708){return _0x43c02a!==_0x4ee708;},'qUxmw':function(_0x1dfe3e,_0x2086ef){return _0x1dfe3e-_0x2086ef;},'rVRXB':'eTwIf','daawX':'LVlgy'};let _0x352f19=await fs[_0x3808c6(0x1b5)](path[_0x3808c6(0x129)](__dirname,'..',_0x84c487['fTXew'],_0x84c487[_0x3808c6(0x23e)],_0x84c487[_0x3808c6(0x19a)]),_0x84c487['tpEIX']);_0x352f19=JSON[_0x3808c6(0x186)](_0x352f19);let _0x442724=[global_registry[_0x3808c6(0x258)]];if(_0x84c487[_0x3808c6(0x283)](_0x352f19[global_registry[_0x3808c6(0x258)]],undefined)){if(_0x84c487[_0x3808c6(0x1d1)](_0x84c487[_0x3808c6(0x1ac)],_0x84c487[_0x3808c6(0x1ac)]))_0x442724=_0x442724[_0x3808c6(0x28e)](_0x352f19[global_registry[_0x3808c6(0x258)]]);else for(const _0x1b233d of _0xdcf481['data'][_0x3808c6(0x238)]){if(_0x84c487[_0x3808c6(0x1d1)](_0x1b233d?.[_0x3808c6(0x242)],'projects/'+this['projectId']+_0x3808c6(0x1ea)+this['serviceAccountName']+'@'+this[_0x3808c6(0x13e)]+_0x3808c6(0x1f9)))return!![];}}const _0x2134f4=[];for await(const _0x40b468 of _0x442724){if(_0x84c487[_0x3808c6(0x283)](_0x84c487['spUSw'],_0x84c487[_0x3808c6(0x289)]))_0x4d350e['vpcInfo']['push'](_0x2ee057);else{const _0x13cb71={};_0x13cb71[_0x3808c6(0x1fd)]=_0x3808c6(0x13b)+this[_0x3808c6(0x13e)]+_0x3808c6(0x2ba)+_0x40b468;const _0x475a97=_0x13cb71,_0x5eee77=await this[_0x3808c6(0x144)][_0x3808c6(0x2bb)](_0x475a97);for(const _0x4df980 of _0x5eee77[0x0][_0x3808c6(0x12a)]){_0x84c487['lYoji'](_0x84c487['rRBXt'],_0x84c487['rRBXt'])?_0x84c487[_0x3808c6(0x1d1)](_0x4df980[_0x3808c6(0x242)],this[_0x3808c6(0x299)])&&(_0x84c487[_0x3808c6(0x1d1)](_0x84c487[_0x3808c6(0x1dc)],_0x84c487[_0x3808c6(0x290)])?(_0x56b7b3['clusterRegion']=_0x5c350a[0x0],this[_0x3808c6(0x1a7)]()):_0x2134f4[_0x3808c6(0x18c)](_0x40b468)):_0x55adb7['execSync'](_0x3808c6(0x167)+this[_0x3808c6(0x299)]+_0x3808c6(0x183)+_0x33aa58['clusterRegion']+'\x20--quiet\x20--user-output-enabled=false');}}}const _0xe8034e=_0x2134f4['length'];if(_0x84c487['lYoji'](_0xe8034e,0x1)){if(_0x84c487[_0x3808c6(0x283)](_0x84c487[_0x3808c6(0x1d0)],_0x84c487[_0x3808c6(0x1d0)]))_0x54cec8[_0x3808c6(0x16a)]('['+_0x84c487[_0x3808c6(0x277)](_0x46afdc,0x1)+']\x20'+_0x11061a[_0xed0659]);else return _0x84c487[_0x3808c6(0x283)](global_registry[_0x3808c6(0x258)],_0x2134f4[0x0])&&(_0x84c487[_0x3808c6(0x1d1)](_0x84c487[_0x3808c6(0x21b)],_0x84c487[_0x3808c6(0x1d2)])?_0x135077=_0x84c487[_0x3808c6(0x24a)]:(global_registry[_0x3808c6(0x258)]=_0x2134f4[0x0],this['updateClusterRegion']())),!![];}else{if(_0x84c487[_0x3808c6(0x11a)](_0xe8034e,0x1)){if(_0x84c487[_0x3808c6(0x1b1)](_0x84c487[_0x3808c6(0x2b0)],_0x84c487[_0x3808c6(0x198)]))_0x4373fd[_0x3808c6(0x296)](_0x84c487[_0x3808c6(0x265)]),_0xd976e['exit'](0x1);else{console['log'](_0x3808c6(0x1f8)+this['clusterName']+_0x3808c6(0x182));for(let _0x889211=0x0;_0x84c487['LSnOY'](_0x889211,_0xe8034e);_0x889211+=0x1){if(_0x84c487[_0x3808c6(0x283)](_0x84c487[_0x3808c6(0x287)],_0x84c487[_0x3808c6(0x155)]))console[_0x3808c6(0x16a)]('['+_0x84c487[_0x3808c6(0x29a)](_0x889211,0x1)+']\x20'+_0x2134f4[_0x889211]);else{const _0xafe030=_0x3808c6(0x138)+this[_0x3808c6(0x13e)]+_0x3808c6(0x2a9)+_0x597072[_0x3808c6(0x258)]+_0x3808c6(0x11c)+_0x1f9d24[0x0];if(_0x84c487[_0x3808c6(0x1d1)](_0xafe030,_0x105838))return[!![],_0xad535f];}}const _0x29b876=await _0x84c487[_0x3808c6(0x1b6)](inputConfirmation,_0x84c487[_0x3808c6(0x25b)]),_0x397935=_0x84c487[_0x3808c6(0x168)](Number,_0x29b876);return(_0x84c487['PJHYx'](isNaN,_0x397935)||_0x84c487[_0x3808c6(0x136)](_0x397935,0x0)||_0x84c487['FBtrQ'](_0x397935,_0xe8034e))&&(_0x84c487[_0x3808c6(0x18b)](_0x84c487[_0x3808c6(0x247)],_0x84c487[_0x3808c6(0x247)])?(console['error'](_0x84c487[_0x3808c6(0x265)]),process[_0x3808c6(0x18d)](0x1)):(_0x39c1a2[_0x3808c6(0x296)](_0x3808c6(0x1a6)+_0x356c11+_0x3808c6(0x1bf)+_0x16ba9e[_0x3808c6(0x153)]),_0x5888d9['data']=_0x3808c6(0x269)+_0x53b9c5,_0x32a0bd['error']=_0x2936b0)),_0x84c487[_0x3808c6(0x1c4)](closeInput),logger['info'](_0x3808c6(0x1b9)+_0x2134f4[_0x84c487[_0x3808c6(0x207)](_0x397935,0x1)]),_0x84c487['gcgOJ'](global_registry[_0x3808c6(0x258)],_0x2134f4[_0x84c487['qUxmw'](_0x397935,0x1)])&&(_0x84c487[_0x3808c6(0x1b1)](_0x84c487[_0x3808c6(0x201)],_0x84c487[_0x3808c6(0x1d3)])?_0x14e46d=[_0x84c487[_0x3808c6(0x24a)]]:(global_registry[_0x3808c6(0x258)]=_0x2134f4[_0x84c487[_0x3808c6(0x27e)](_0x397935,0x1)],this[_0x3808c6(0x1a7)]())),!![];}}}return![];}async[a3_0x33f874(0x28b)](){const _0x3bbb83=a3_0x33f874,_0x471207=await this[_0x3bbb83(0x144)][_0x3bbb83(0x13f)]({'name':_0x3bbb83(0x13b)+this['projectId']+_0x3bbb83(0x2ba)+global_registry[_0x3bbb83(0x258)]+_0x3bbb83(0x118)+this[_0x3bbb83(0x299)]});return _0x471207;}async['getKubeConfigData'](){const _0x52b198=a3_0x33f874,_0x3631c8={};_0x3631c8[_0x52b198(0x1e7)]=_0x52b198(0x1af),_0x3631c8[_0x52b198(0x1be)]=_0x52b198(0x1b3),_0x3631c8['sDduG']='gcpresources',_0x3631c8[_0x52b198(0x215)]=_0x52b198(0x12d);const _0x588cdd=_0x3631c8;cp['execSync'](_0x588cdd[_0x52b198(0x1e7)]),cp[_0x52b198(0x132)](_0x52b198(0x2a5)+this[_0x52b198(0x1a4)]);const _0x311890=await this[_0x52b198(0x28b)](),_0x2bab1a='gke_'+this['projectId']+'_'+global_registry[_0x52b198(0x258)]+'_'+this[_0x52b198(0x299)];let _0x32ac6=await fs[_0x52b198(0x1b5)](path[_0x52b198(0x129)](__dirname,'..',_0x588cdd[_0x52b198(0x1be)],_0x588cdd[_0x52b198(0x1d5)],_0x588cdd[_0x52b198(0x215)]));return _0x32ac6=_0x32ac6['toString'](),_0x32ac6=_0x32ac6[_0x52b198(0x146)](/<CLUSTER_NAME>/g,_0x2bab1a),_0x32ac6=_0x32ac6[_0x52b198(0x146)](/<CLUSTER_URL>/g,'https://'+_0x311890[0x0][_0x52b198(0x1c1)]),_0x32ac6=_0x32ac6[_0x52b198(0x146)](/<CERTIFICATE_DATA>/g,_0x311890[0x0][_0x52b198(0x24d)]['clusterCaCertificate']),_0x32ac6;}async[a3_0x33f874(0x292)](){const _0x41c925=a3_0x33f874,_0x29f97f={};_0x29f97f[_0x41c925(0x23a)]=_0x41c925(0x14a),_0x29f97f[_0x41c925(0x2ad)]=function(_0x441d26,_0x5ee3aa){return _0x441d26===_0x5ee3aa;},_0x29f97f['SxKmu']=_0x41c925(0x172),_0x29f97f[_0x41c925(0x170)]=_0x41c925(0x200),_0x29f97f['TrIFi']=function(_0x33fc4a,_0x314caf){return _0x33fc4a!==_0x314caf;},_0x29f97f[_0x41c925(0x17b)]=_0x41c925(0x225),_0x29f97f[_0x41c925(0x1aa)]=function(_0x24b9c9,_0x564359){return _0x24b9c9===_0x564359;},_0x29f97f[_0x41c925(0x1bb)]=_0x41c925(0x22d);const _0x16d7da=_0x29f97f,_0x14f224={};_0x14f224['scopes']=[_0x16d7da[_0x41c925(0x23a)]],_0x14f224['keyFile']=this['credentialsPath'];const _0x34590e=await google['auth']['getClient'](_0x14f224),_0x4efa04=await this[_0x41c925(0x25a)][_0x41c925(0x275)][_0x41c925(0x171)][_0x41c925(0x121)]({'name':'projects/'+this[_0x41c925(0x13e)],'auth':_0x34590e});if(_0x4efa04?.[_0x41c925(0x1e3)]?.[_0x41c925(0x238)]){if(_0x16d7da[_0x41c925(0x2ad)](_0x16d7da['SxKmu'],_0x16d7da[_0x41c925(0x170)]))_0x22d12b[_0x41c925(0x221)]=![];else for(const _0x268801 of _0x4efa04['data'][_0x41c925(0x238)]){if(_0x16d7da[_0x41c925(0x175)](_0x16d7da[_0x41c925(0x17b)],_0x16d7da['ywQNq']))this[_0x41c925(0x1de)](this[_0x41c925(0x266)]);else{if(_0x16d7da[_0x41c925(0x1aa)](_0x268801?.[_0x41c925(0x242)],_0x41c925(0x13b)+this['projectId']+_0x41c925(0x1ea)+this[_0x41c925(0x1d7)]+'@'+this[_0x41c925(0x13e)]+_0x41c925(0x1f9)))return _0x16d7da[_0x41c925(0x175)](_0x16d7da[_0x41c925(0x1bb)],_0x16d7da[_0x41c925(0x1bb)])?[!![],_0x2b69e1]:!![];}}}return![];}async['setupServiceAccount'](){const _0x2df798=a3_0x33f874,_0x2f5c3c={};_0x2f5c3c[_0x2df798(0x15c)]=function(_0x29270c,_0x35fa41){return _0x29270c===_0x35fa41;},_0x2f5c3c[_0x2df798(0x298)]=_0x2df798(0x1ec),_0x2f5c3c['ghypX']=_0x2df798(0x264),_0x2f5c3c['nUQnL']=_0x2df798(0x15a),_0x2f5c3c[_0x2df798(0x226)]=_0x2df798(0x14a),_0x2f5c3c[_0x2df798(0x16f)]=_0x2df798(0x116),_0x2f5c3c[_0x2df798(0x12e)]=_0x2df798(0x228),_0x2f5c3c['jzIdT']=_0x2df798(0x1a9),_0x2f5c3c[_0x2df798(0x26d)]=_0x2df798(0x163),_0x2f5c3c['GYMWd']='storage.buckets.deleteTagBinding',_0x2f5c3c[_0x2df798(0x164)]=_0x2df798(0x19b),_0x2f5c3c[_0x2df798(0x123)]=_0x2df798(0x143),_0x2f5c3c[_0x2df798(0x1d8)]=_0x2df798(0x1e4),_0x2f5c3c['NYlLv']='storage.buckets.list',_0x2f5c3c[_0x2df798(0x19d)]=_0x2df798(0x212),_0x2f5c3c[_0x2df798(0x27f)]='storage.buckets.listTagBindings',_0x2f5c3c[_0x2df798(0x189)]=_0x2df798(0x1e5),_0x2f5c3c[_0x2df798(0x2be)]='storage.buckets.update',_0x2f5c3c[_0x2df798(0x2a2)]='storage.multipartUploads.abort',_0x2f5c3c[_0x2df798(0x280)]=_0x2df798(0x1e2),_0x2f5c3c[_0x2df798(0x199)]=_0x2df798(0x114),_0x2f5c3c[_0x2df798(0x1c3)]=_0x2df798(0x236),_0x2f5c3c[_0x2df798(0x125)]=_0x2df798(0x251),_0x2f5c3c[_0x2df798(0x122)]=_0x2df798(0x278),_0x2f5c3c[_0x2df798(0x1f0)]=_0x2df798(0x25f),_0x2f5c3c[_0x2df798(0x27d)]=_0x2df798(0x27c),_0x2f5c3c['nAytL']=_0x2df798(0x119),_0x2f5c3c[_0x2df798(0x12f)]=_0x2df798(0x156),_0x2f5c3c[_0x2df798(0x135)]='storage.objects.update',_0x2f5c3c[_0x2df798(0x230)]=_0x2df798(0x1c6),_0x2f5c3c['iFxtv']=_0x2df798(0x17e);const _0xbc643d=_0x2f5c3c,_0x261f99=await this['checkServiceAccount']();if(_0x261f99){if(_0xbc643d[_0x2df798(0x15c)](_0xbc643d[_0x2df798(0x298)],_0xbc643d[_0x2df798(0x298)])){logger[_0x2df798(0x29d)](_0xbc643d['ghypX']);return;}else _0x16777a=_0x401dcd['concat'](_0x40f4a5[_0x42961b['clusterRegion']]);}logger['info'](_0xbc643d[_0x2df798(0x203)]);const _0x3cfa61={};_0x3cfa61[_0x2df798(0x1dd)]=[_0xbc643d[_0x2df798(0x226)]],_0x3cfa61['keyFile']=this[_0x2df798(0x1a4)];const _0x4a4ef8=await google[_0x2df798(0x1ba)][_0x2df798(0x284)](_0x3cfa61),_0x2c87ee={};_0x2c87ee[_0x2df798(0x285)]=[_0xbc643d[_0x2df798(0x16f)],_0xbc643d[_0x2df798(0x12e)],_0xbc643d[_0x2df798(0x22e)],_0xbc643d[_0x2df798(0x26d)],_0xbc643d[_0x2df798(0x2b5)],_0xbc643d[_0x2df798(0x164)],_0xbc643d['kGama'],_0xbc643d[_0x2df798(0x1d8)],_0xbc643d['NYlLv'],_0xbc643d[_0x2df798(0x19d)],_0xbc643d[_0x2df798(0x27f)],_0xbc643d[_0x2df798(0x189)],_0xbc643d[_0x2df798(0x2be)],_0xbc643d[_0x2df798(0x2a2)],_0xbc643d[_0x2df798(0x280)],_0xbc643d[_0x2df798(0x199)],_0xbc643d[_0x2df798(0x1c3)],_0xbc643d[_0x2df798(0x125)],_0xbc643d[_0x2df798(0x122)],_0xbc643d[_0x2df798(0x1f0)],_0xbc643d[_0x2df798(0x27d)],_0xbc643d[_0x2df798(0x1ef)],_0xbc643d[_0x2df798(0x12f)],_0xbc643d['HzlXb']],_0x2c87ee[_0x2df798(0x1f6)]=_0xbc643d[_0x2df798(0x230)],await this[_0x2df798(0x25a)][_0x2df798(0x22a)][_0x2df798(0x26a)]['create']({'parent':'projects/'+this['projectId'],'requestBody':{'role':_0x2c87ee,'roleId':this[_0x2df798(0x190)]},'auth':_0x4a4ef8});const _0x208851={};_0x208851[_0x2df798(0x242)]=_0x2df798(0x13b)+this['projectId'],_0x208851[_0x2df798(0x2b8)]={},_0x208851[_0x2df798(0x1ba)]=_0x4a4ef8,_0x208851[_0x2df798(0x2b8)][_0x2df798(0x173)]=this[_0x2df798(0x1d7)];const _0x4ae1de=_0x208851;await this[_0x2df798(0x25a)]['projects'][_0x2df798(0x171)][_0x2df798(0x240)](_0x4ae1de);let _0x3f4cad=await this[_0x2df798(0x113)][_0x2df798(0x245)]({'resource':_0x2df798(0x13b)+this[_0x2df798(0x13e)]});_0x3f4cad=_0x3f4cad[0x0][_0x2df798(0x241)];const _0x1b2f57={};_0x1b2f57[_0x2df798(0x211)]=_0x2df798(0x13b)+this[_0x2df798(0x13e)]+_0x2df798(0x233)+this[_0x2df798(0x190)],_0x1b2f57[_0x2df798(0x177)]=[_0x2df798(0x202)+this[_0x2df798(0x1d7)]+'@'+this['projectId']+_0x2df798(0x1f9)],_0x3f4cad['push'](_0x1b2f57);const _0x36675d={};_0x36675d[_0x2df798(0x241)]=_0x3f4cad,await this['resourcemanagerClient'][_0x2df798(0x244)]({'resource':_0x2df798(0x13b)+this['projectId'],'policy':_0x36675d}),logger[_0x2df798(0x29d)](_0xbc643d['iFxtv']);}async[a3_0x33f874(0x2b9)](_0x44a1c6=a3_0x33f874(0x150),_0x366ece=[a3_0x33f874(0x150)]){const _0x171fb0=a3_0x33f874,_0x5b4c5d={};_0x5b4c5d['PRlNV']=_0x171fb0(0x23c),_0x5b4c5d[_0x171fb0(0x29b)]='denied',_0x5b4c5d['HCQvI']=_0x171fb0(0x216),_0x5b4c5d[_0x171fb0(0x1fe)]=_0x171fb0(0x1a1),_0x5b4c5d[_0x171fb0(0x243)]=function(_0x24bb59,_0x460370){return _0x24bb59===_0x460370;},_0x5b4c5d['TdySE']=_0x171fb0(0x235),_0x5b4c5d[_0x171fb0(0x21c)]=_0x171fb0(0x150),_0x5b4c5d[_0x171fb0(0x2ac)]=function(_0x3a5825,_0x3f615d){return _0x3a5825!==_0x3f615d;},_0x5b4c5d[_0x171fb0(0x197)]=_0x171fb0(0x249);const _0x4c9882=_0x5b4c5d,_0x430d55={};_0x430d55[_0x171fb0(0x2b3)]=WS_EVENTS[_0x171fb0(0x1b7)],_0x430d55[_0x171fb0(0x1bd)]=_0x4c9882[_0x171fb0(0x2ab)],this[_0x171fb0(0x1a5)][_0x171fb0(0x180)](this[_0x171fb0(0x266)],_0x430d55),logger['info'](_0x4c9882[_0x171fb0(0x1fe)]);if(!_0x44a1c6){if(_0x4c9882[_0x171fb0(0x243)](_0x4c9882['TdySE'],_0x4c9882[_0x171fb0(0x169)]))_0x44a1c6=_0x4c9882[_0x171fb0(0x21c)];else return![];}if(!_0x366ece||_0x4c9882['Zdrze'](_0x366ece['length'],0x0)){if(_0x4c9882[_0x171fb0(0x2ac)](_0x4c9882[_0x171fb0(0x197)],_0x4c9882['NqlDO'])){const _0x455969=_0xc274f4[_0x171fb0(0x209)][_0x171fb0(0x126)](_0x2a42c6);_0x1d3173+='\x0a\x09'+_0x168982+_0x171fb0(0x1bf)+(_0x455969?_0x4c9882[_0x171fb0(0x152)]:_0x4c9882[_0x171fb0(0x29b)]),!_0x455969&&(_0x420960[_0x171fb0(0x221)]=![]);}else _0x366ece=[_0x4c9882[_0x171fb0(0x21c)]];}return await this[_0x171fb0(0x1fa)](),await this[_0x171fb0(0x1bc)](_0x44a1c6,_0x366ece),await this[_0x171fb0(0x15e)](),[_0x44a1c6,_0x366ece];}async[a3_0x33f874(0x1bc)](_0x5925d1=a3_0x33f874(0x150),_0x3864bb=[a3_0x33f874(0x150)]){const _0x172a2e=a3_0x33f874,_0x3f587b={};_0x3f587b[_0x172a2e(0x246)]=function(_0x28ab94,_0x2fe97a){return _0x28ab94===_0x2fe97a;},_0x3f587b[_0x172a2e(0x26b)]=_0x172a2e(0x131),_0x3f587b[_0x172a2e(0x16e)]=function(_0x1056f0,_0x5795cf){return _0x1056f0===_0x5795cf;},_0x3f587b[_0x172a2e(0x1cd)]=_0x172a2e(0x264),_0x3f587b['oyZlS']=function(_0x55f5b5,_0x4bbdcb){return _0x55f5b5===_0x4bbdcb;},_0x3f587b[_0x172a2e(0x16b)]=_0x172a2e(0x15f),_0x3f587b['NVgFT']=_0x172a2e(0x21d),_0x3f587b['tcbpM']='templates',_0x3f587b[_0x172a2e(0x148)]='gcpresources',_0x3f587b['pQgSS']=_0x172a2e(0x18e),_0x3f587b[_0x172a2e(0x24b)]=_0x172a2e(0x1d6),_0x3f587b[_0x172a2e(0x250)]='regionmap.json',_0x3f587b['ijGfp']=function(_0x350ebe,_0x452f3d){return _0x350ebe!==_0x452f3d;},_0x3f587b['WGZOZ']='tLifi',_0x3f587b[_0x172a2e(0x1b0)]=_0x172a2e(0x2b7),_0x3f587b[_0x172a2e(0x2b2)]=_0x172a2e(0x166),_0x3f587b[_0x172a2e(0x194)]=function(_0xe30d2e,_0x225e99){return _0xe30d2e*_0x225e99;},_0x3f587b[_0x172a2e(0x147)]=function(_0x5c0f21,_0x213647){return _0x5c0f21*_0x213647;},_0x3f587b['wzfmB']=function(_0x599452,_0x5287b7){return _0x599452===_0x5287b7;},_0x3f587b[_0x172a2e(0x248)]=_0x172a2e(0x293),_0x3f587b[_0x172a2e(0x25d)]=_0x172a2e(0x20e),_0x3f587b[_0x172a2e(0x1e0)]=function(_0x71bb9e,_0x52287f){return _0x71bb9e===_0x52287f;},_0x3f587b['xwiSG']=_0x172a2e(0x23f),_0x3f587b[_0x172a2e(0x2bc)]=_0x172a2e(0x1b8),_0x3f587b['kEhSP']=_0x172a2e(0x1fc),_0x3f587b[_0x172a2e(0x2af)]=_0x172a2e(0x21a);const _0x23ce2a=_0x3f587b;try{if(_0x23ce2a[_0x172a2e(0x174)](_0x23ce2a[_0x172a2e(0x16b)],_0x23ce2a[_0x172a2e(0x16b)])){logger[_0x172a2e(0x29d)](_0x23ce2a[_0x172a2e(0x160)]);let _0x214515=await fs[_0x172a2e(0x1b5)](path['join'](__dirname,'..',_0x23ce2a[_0x172a2e(0x151)],_0x23ce2a['SNROx'],_0x23ce2a['pQgSS']),_0x23ce2a['KRoXu']);_0x214515=JSON[_0x172a2e(0x186)](_0x214515);let _0x5c7b43=await fs[_0x172a2e(0x1b5)](path[_0x172a2e(0x129)](__dirname,'..',_0x23ce2a[_0x172a2e(0x151)],_0x23ce2a[_0x172a2e(0x148)],_0x23ce2a[_0x172a2e(0x250)]),_0x23ce2a[_0x172a2e(0x24b)]);_0x5c7b43=JSON[_0x172a2e(0x186)](_0x5c7b43);const _0x4e815e=global_registry['clusterAutoUpgrade'];_0x214515['name']=this[_0x172a2e(0x299)],_0x214515[_0x172a2e(0x294)][0x0][_0x172a2e(0x286)]['machineType']=global_registry[_0x172a2e(0x20d)],_0x214515[_0x172a2e(0x294)][0x1][_0x172a2e(0x286)][_0x172a2e(0x231)]=global_registry[_0x172a2e(0x20d)],_0x214515[_0x172a2e(0x294)][0x0]['config'][_0x172a2e(0x1ca)]=this['serviceAccountName']+'@'+this[_0x172a2e(0x13e)]+_0x172a2e(0x1f9),_0x214515['nodePools'][0x1][_0x172a2e(0x286)][_0x172a2e(0x1ca)]=this[_0x172a2e(0x1d7)]+'@'+this[_0x172a2e(0x13e)]+'.iam.gserviceaccount.com',_0x214515[_0x172a2e(0x294)][0x0]['autoscaling'][_0x172a2e(0x157)]=global_registry['minNodes'],_0x214515[_0x172a2e(0x294)][0x1][_0x172a2e(0x1e1)][_0x172a2e(0x157)]=0x0,_0x214515[_0x172a2e(0x294)][0x0][_0x172a2e(0x1f5)][_0x172a2e(0x11e)]=_0x4e815e,_0x214515[_0x172a2e(0x294)][0x1][_0x172a2e(0x1f5)][_0x172a2e(0x11e)]=_0x4e815e,_0x214515[_0x172a2e(0x294)][0x0]['autoscaling'][_0x172a2e(0x11d)]=global_registry[_0x172a2e(0x1fb)],_0x214515[_0x172a2e(0x294)][0x1][_0x172a2e(0x1e1)][_0x172a2e(0x11d)]=global_registry[_0x172a2e(0x1fb)],_0x214515[_0x172a2e(0x261)]=global_registry[_0x172a2e(0x258)],_0x214515[_0x172a2e(0x255)]=[_0x5c7b43[global_registry[_0x172a2e(0x258)]][0x0]],_0x214515[_0x172a2e(0x237)]=_0x172a2e(0x13b)+this['projectId']+_0x172a2e(0x2a8)+_0x5925d1,_0x214515[_0x172a2e(0x252)]=_0x172a2e(0x13b)+this['projectId']+_0x172a2e(0x2a9)+global_registry[_0x172a2e(0x258)]+_0x172a2e(0x11c)+_0x3864bb[0x0];if(_0x4e815e){if(_0x23ce2a['ijGfp'](_0x23ce2a['WGZOZ'],_0x23ce2a[_0x172a2e(0x1b0)])){const _0x5e94c0={};_0x5e94c0[_0x172a2e(0x204)]=_0x23ce2a[_0x172a2e(0x2b2)],_0x214515[_0x172a2e(0x159)]=_0x5e94c0;}else{const _0x1a2362=_0x230175[0x0]?.[_0x172a2e(0x1ff)]?.[_0x172a2e(0x161)];return _0x1a2362&&_0x23ce2a[_0x172a2e(0x246)](_0x1a2362[_0x172a2e(0x2b4)](),_0x23ce2a['tbIBo']);}}const _0x31fb73=await this['containerClient'][_0x172a2e(0x1bc)]({'cluster':_0x214515,'parent':_0x172a2e(0x13b)+this['projectId']+_0x172a2e(0x2ba)+global_registry['clusterRegion']});await this[_0x172a2e(0x1a5)][_0x172a2e(0x1b2)](_0x23ce2a[_0x172a2e(0x194)](_0x23ce2a[_0x172a2e(0x147)](0x7,0x3c),0x3e8));}else _0x133fcf[_0x172a2e(0x296)]=_0x5149b7;}catch(_0x21ac20){if(_0x23ce2a['wzfmB'](_0x23ce2a['UVtdS'],_0x23ce2a[_0x172a2e(0x25d)]))_0x3b374e['push'](_0x114938);else{const _0x1b4f7d=await this['isClusterPresent']();if(_0x1b4f7d)_0x23ce2a[_0x172a2e(0x1e0)](_0x23ce2a['xwiSG'],_0x23ce2a[_0x172a2e(0x19f)])?(logger[_0x172a2e(0x29d)](_0x23ce2a[_0x172a2e(0x2bc)],_0x21ac20[_0x172a2e(0x153)]),await this[_0x172a2e(0x1ad)]()):_0x23ce2a[_0x172a2e(0x16e)](_0x152343[_0x172a2e(0x242)],this['clusterName'])&&_0x5ad877[_0x172a2e(0x18c)](_0x1ca07a);else{if(_0x23ce2a['vptdo'](_0x23ce2a[_0x172a2e(0x184)],_0x23ce2a[_0x172a2e(0x184)]))logger[_0x172a2e(0x29d)](_0x23ce2a[_0x172a2e(0x2af)]);else{_0x36a6b7['info'](_0x23ce2a[_0x172a2e(0x1cd)]);return;}}throw _0x21ac20;}}}async[a3_0x33f874(0x1da)](_0x4de615,_0x214639,_0x407aa5,_0x1ca85,_0x536d7e){}async[a3_0x33f874(0x15e)](){const _0x499480=a3_0x33f874;cp[_0x499480(0x127)](_0x499480(0x167)+this['clusterName']+_0x499480(0x183)+global_registry['clusterRegion']+_0x499480(0x1e8));}async[a3_0x33f874(0x1ad)](_0x3b201f,_0x2f1d7f){const _0xbe9939=a3_0x33f874,_0x369e11={'CktAe':'REGULAR','fdVBv':function(_0x1d1b53,_0x15beff){return _0x1d1b53===_0x15beff;},'FdKVo':_0xbe9939(0x256),'EaOiN':_0xbe9939(0x112),'IhrjB':function(_0x1dc8f7,_0x215186){return _0x1dc8f7(_0x215186);},'iKvRH':function(_0xf980e0,_0x14e48d){return _0xf980e0===_0x14e48d;},'jdIJO':_0xbe9939(0x273),'WoUab':function(_0x367da9,_0x3cd1f4){return _0x367da9===_0x3cd1f4;},'hzZEo':'DONE','Gsbkb':function(_0x53568a,_0x42591b){return _0x53568a===_0x42591b;},'KELWO':'IZLHH','hWfFD':_0xbe9939(0x1d4),'SvgpK':_0xbe9939(0x1ab),'zBOmf':function(_0x4271e8,_0x46c97e){return _0x4271e8!==_0x46c97e;},'wghmk':_0xbe9939(0x120),'jXXQQ':_0xbe9939(0x2a3)};try{if(_0x369e11[_0xbe9939(0x297)](_0x369e11[_0xbe9939(0x20f)],_0x369e11[_0xbe9939(0x1ee)]))return![];else{await _0x369e11[_0xbe9939(0x128)](deleteAgent,_0x3b201f),await _0x369e11[_0xbe9939(0x128)](deleteRoutingDeps,_0x3b201f),logger[_0xbe9939(0x29d)](_0xbe9939(0x17a)+this[_0xbe9939(0x299)]);const _0x163474=await this[_0xbe9939(0x144)][_0xbe9939(0x1ad)]({'name':_0xbe9939(0x13b)+this[_0xbe9939(0x13e)]+_0xbe9939(0x2ba)+global_registry[_0xbe9939(0x258)]+_0xbe9939(0x118)+this[_0xbe9939(0x299)]});if(_0x369e11[_0xbe9939(0x22b)](_0x163474[0x0]?.[_0xbe9939(0x221)],_0x369e11[_0xbe9939(0x191)])||_0x369e11['WoUab'](_0x163474[0x0]?.['status'],_0x369e11[_0xbe9939(0x295)]))return _0x369e11[_0xbe9939(0x188)](_0x369e11['KELWO'],_0x369e11['hWfFD'])?!![]:!![];logger['info'](_0x369e11[_0xbe9939(0x1cf)]);}}catch(_0xd8d889){if(_0x369e11[_0xbe9939(0x1f4)](_0x369e11[_0xbe9939(0x158)],_0x369e11['wghmk'])){const _0x198c93={};_0x198c93[_0xbe9939(0x204)]=_0x369e11[_0xbe9939(0x11f)],_0x444d6b[_0xbe9939(0x159)]=_0x198c93;}else{logger[_0xbe9939(0x29d)](_0x369e11['jXXQQ']);throw _0xd8d889;}}}async[a3_0x33f874(0x1a2)](_0x240e3d){const _0x3a7775=a3_0x33f874,_0x22d8b9={};_0x22d8b9[_0x3a7775(0x2a0)]=_0x3a7775(0x21a),_0x22d8b9[_0x3a7775(0x1f7)]=function(_0x495db3,_0x54ea3b){return _0x495db3===_0x54ea3b;},_0x22d8b9[_0x3a7775(0x134)]=function(_0x5b5d36,_0x16407a){return _0x5b5d36!==_0x16407a;},_0x22d8b9[_0x3a7775(0x25c)]='gJkRW',_0x22d8b9[_0x3a7775(0x115)]=_0x3a7775(0x254),_0x22d8b9[_0x3a7775(0x232)]=function(_0x3c952f,_0x295648){return _0x3c952f>_0x295648;},_0x22d8b9['dSari']=_0x3a7775(0x15b),_0x22d8b9[_0x3a7775(0x1df)]=_0x3a7775(0x267),_0x22d8b9[_0x3a7775(0x14c)]=function(_0x4935b7,_0x22d269){return _0x4935b7===_0x22d269;},_0x22d8b9[_0x3a7775(0x21f)]=_0x3a7775(0x28d);const _0x5584f3=_0x22d8b9;try{if(_0x5584f3[_0x3a7775(0x134)](_0x5584f3[_0x3a7775(0x25c)],_0x5584f3[_0x3a7775(0x115)])){const _0x27bf89=await this['networkClient'][_0x3a7775(0x253)]({'project':this['projectId'],'network':_0x240e3d});if(_0x5584f3[_0x3a7775(0x232)](_0x27bf89[_0x3a7775(0x16c)],0x0)&&_0x5584f3[_0x3a7775(0x1f7)](_0x27bf89[0x0][_0x3a7775(0x242)],_0x240e3d))return _0x5584f3[_0x3a7775(0x1f7)](_0x5584f3[_0x3a7775(0x27a)],_0x5584f3[_0x3a7775(0x1df)])?!![]:!![];}else _0xc2f02b[_0x3a7775(0x29d)](_0x5584f3[_0x3a7775(0x2a0)]);}catch(_0x41de05){if(_0x5584f3[_0x3a7775(0x14c)](_0x5584f3['EvzII'],_0x5584f3[_0x3a7775(0x21f)]))return![];else{if(_0x5584f3[_0x3a7775(0x1f7)](_0x2f6e25?.[_0x3a7775(0x242)],_0x3a7775(0x13b)+this[_0x3a7775(0x13e)]+_0x3a7775(0x1ea)+this[_0x3a7775(0x1d7)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return!![];}}return![];}async[a3_0x33f874(0x17f)](_0x24033e,_0x2e94d5){const _0x153824=a3_0x33f874,_0x46d95a={};_0x46d95a[_0x153824(0x270)]=function(_0x95f6ff,_0x44489f){return _0x95f6ff!==_0x44489f;},_0x46d95a['JLQBn']=_0x153824(0x18f),_0x46d95a[_0x153824(0x220)]=function(_0x224dda,_0x3b5b08){return _0x224dda!==_0x3b5b08;},_0x46d95a[_0x153824(0x2aa)]=_0x153824(0x205),_0x46d95a[_0x153824(0x178)]='TRnEJ',_0x46d95a[_0x153824(0x20c)]=function(_0x1a6d9d,_0x585fa9){return _0x1a6d9d===_0x585fa9;},_0x46d95a[_0x153824(0x11b)]=function(_0x3abe6a,_0x397d8e){return _0x3abe6a===_0x397d8e;},_0x46d95a[_0x153824(0x139)]=_0x153824(0x2a1),_0x46d95a['jNmeN']=_0x153824(0x181),_0x46d95a[_0x153824(0x21e)]=function(_0x25dc20,_0x588344){return _0x25dc20===_0x588344;},_0x46d95a[_0x153824(0x22c)]=_0x153824(0x259);const _0x2f9e21=_0x46d95a;try{if(_0x2f9e21[_0x153824(0x270)](_0x2f9e21['JLQBn'],_0x2f9e21[_0x153824(0x2a6)]))return _0x4b4aa0['error'](_0x153824(0x14b)+_0x4ac29a+_0x153824(0x162)+_0x46cffa),[![],[]];else{const _0x12884=await this[_0x153824(0x19e)][_0x153824(0x253)]({'project':this[_0x153824(0x13e)],'network':_0x2e94d5});for(const _0x59fe3e of _0x12884[0x0][_0x153824(0x16d)]){if(_0x2f9e21[_0x153824(0x220)](_0x2f9e21['aQkIV'],_0x2f9e21[_0x153824(0x178)])){const _0x59b7a6=_0x153824(0x138)+this[_0x153824(0x13e)]+_0x153824(0x2a9)+global_registry[_0x153824(0x258)]+_0x153824(0x11c)+_0x24033e[0x0];if(_0x2f9e21[_0x153824(0x20c)](_0x59b7a6,_0x59fe3e)){if(_0x2f9e21[_0x153824(0x11b)](_0x2f9e21[_0x153824(0x139)],_0x2f9e21['jNmeN']))_0x5a79e6[_0x153824(0x19c)](_0x2a5b88);else return[!![],_0x24033e];}}else return _0x21b645[_0x153824(0x221)]['loadBalancer']['ingress'][0x0]['ip'];}}}catch(_0x321014){if(_0x2f9e21['hhZnU'](_0x2f9e21[_0x153824(0x22c)],_0x2f9e21['NjCdv']))return logger[_0x153824(0x296)](_0x153824(0x14b)+_0x24033e+'.\x20Error:\x20'+_0x321014),[![],[]];else _0xf5327d[_0x153824(0x154)](_0x22e64e);}return[![],[]];}async[a3_0x33f874(0x1de)](){const _0x2a5047=a3_0x33f874,_0x1c24ef={};_0x1c24ef[_0x2a5047(0x179)]=_0x2a5047(0x2a3),_0x1c24ef[_0x2a5047(0x224)]=function(_0x579024,_0x2221fb){return _0x579024===_0x2221fb;},_0x1c24ef['wYbJv']=_0x2a5047(0x17d),_0x1c24ef[_0x2a5047(0x22f)]=_0x2a5047(0x288);const _0x3c0782=_0x1c24ef,_0x503ee1=await this[_0x2a5047(0x19e)]['list']({'project':this['projectId']}),_0x47f2ea={};_0x47f2ea[_0x2a5047(0x20a)]=global_registry[_0x2a5047(0x1f3)],_0x47f2ea[_0x2a5047(0x195)]=global_registry[_0x2a5047(0x229)],_0x47f2ea['cloudProvider']=GCP,_0x47f2ea['vpcInfo']=[];const _0x5bf1b0=_0x47f2ea;for(const _0x4ae4a7 of _0x503ee1){if(_0x3c0782[_0x2a5047(0x224)](_0x3c0782[_0x2a5047(0x14d)],_0x3c0782[_0x2a5047(0x22f)])){_0x1bd0d2[_0x2a5047(0x29d)](_0x3c0782[_0x2a5047(0x179)]);throw _0x2cabeb;}else _0x5bf1b0[_0x2a5047(0x206)][_0x2a5047(0x18c)](_0x4ae4a7);}const _0x130eb7={};_0x130eb7[_0x2a5047(0x2b3)]=WS_EVENTS['RESOURCES'],_0x130eb7[_0x2a5047(0x1bd)]=_0x5bf1b0,this[_0x2a5047(0x1a5)]['sendEventToBackend'](this[_0x2a5047(0x266)],_0x130eb7);}async[a3_0x33f874(0x1a7)](){const _0x454618=a3_0x33f874,_0x2564c2={'gKLxC':function(_0x32b0e5,_0x144696,_0x2c917d){return _0x32b0e5(_0x144696,_0x2c917d);},'VkeLV':'PUT','joaIn':_0x454618(0x2b1)},_0x5e6b59=_0x454618(0x149)+AG_API_URL+_0x454618(0x1c9),_0x2a5308={};_0x2a5308['profileId']=global_registry[_0x454618(0x28c)];const _0x2b5a7b={};_0x2b5a7b['newRegion']=global_registry[_0x454618(0x258)];const _0x2d3c0b={'searchParams':_0x2a5308,'json':_0x2b5a7b,'headers':_0x2564c2[_0x454618(0x1ae)](getAuthHeader,global_registry[_0x454618(0x1f3)],global_registry[_0x454618(0x229)]),'method':_0x2564c2['VkeLV'],'responseType':_0x2564c2[_0x454618(0x281)],'throwHttpErrors':![]},_0x1d33ee=await _0x2564c2['gKLxC'](got,_0x5e6b59,_0x2d3c0b);}async[a3_0x33f874(0x124)](){const _0x452f35=a3_0x33f874,_0x31a706={'kTMXA':function(_0x1d8d2f,_0x4eec0c){return _0x1d8d2f(_0x4eec0c);},'INxWB':'gcloud\x20--version','zLdsh':_0x452f35(0x1ce),'CFJAm':_0x452f35(0x193)},_0x554503={};_0x554503[_0x452f35(0x221)]=![],_0x554503['error']=null,_0x554503[_0x452f35(0x1e3)]='';const _0x11af1b=_0x554503;try{const _0x567926=await _0x31a706[_0x452f35(0x2b6)](runCommand,_0x31a706[_0x452f35(0x13d)]);_0x567926[_0x452f35(0x208)](_0x31a706[_0x452f35(0x219)])?logger[_0x452f35(0x154)](_0x567926):logger[_0x452f35(0x19c)](_0x567926),_0x11af1b['status']=!![],_0x11af1b[_0x452f35(0x1e3)]=_0x31a706[_0x452f35(0x2a4)];}catch(_0x5036d9){logger['error'](_0x452f35(0x1a6)+_0x5036d9+_0x452f35(0x1bf)+_0x5036d9[_0x452f35(0x153)]),_0x11af1b[_0x452f35(0x1e3)]=_0x452f35(0x269)+_0x5036d9,_0x11af1b['error']=_0x5036d9;}return _0x11af1b;}async[a3_0x33f874(0x29e)](){const _0xd98a9f=a3_0x33f874,_0x5e92c9={};_0x5e92c9[_0xd98a9f(0x25e)]='allowed',_0x5e92c9[_0xd98a9f(0x176)]=_0xd98a9f(0x26c);const _0x1e6207=_0x5e92c9,_0x2f7107={};_0x2f7107[_0xd98a9f(0x221)]=![],_0x2f7107[_0xd98a9f(0x296)]=null,_0x2f7107[_0xd98a9f(0x1e3)]='';const _0x730e2b=_0x2f7107;try{let _0x5b5427='';const _0x15e2b7='projects/'+this['projectId'],[_0x3029f3]=await this['resourcemanagerClient']['testIamPermissions']({'resource':_0x15e2b7,'permissions':Object[_0xd98a9f(0x27b)](PERMISSIONS)});_0x730e2b['status']=!![],logger[_0xd98a9f(0x19c)](_0xd98a9f(0x23d)+_0x15e2b7+':\x20'+JSON['stringify'](_0x3029f3)),Object[_0xd98a9f(0x29c)](PERMISSIONS)[_0xd98a9f(0x1db)](([_0x2c35b1,_0x2aff5d])=>{const _0x53fced=_0xd98a9f,_0x5e3315=_0x3029f3['permissions'][_0x53fced(0x126)](_0x2c35b1);_0x5b5427+='\x0a\x09'+_0x2aff5d+_0x53fced(0x1bf)+(_0x5e3315?_0x1e6207[_0x53fced(0x25e)]:_0x1e6207[_0x53fced(0x176)]),!_0x5e3315&&(_0x730e2b[_0x53fced(0x221)]=![]);}),_0x730e2b[_0xd98a9f(0x1e3)]=_0x5b5427;}catch(_0x5db1ae){_0x730e2b['error']=_0x5db1ae;}return _0x730e2b;}}function a3_0x3ae7(){const _0x1eada2=['BMqFu','turboscale_custom_role','pGTeh','push','exit','gkecluster.json','UzGnN','customRoleName','jdIJO','exports','cli\x20tool\x20is\x20installed','oQYWq','accessKey','sendResourceDataToHST','NqlDO','iDzde','cIVJP','CFGar','storage.buckets.get','debug','ghXvI','networkClient','xwiSG','9PeUDjD','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','isVPCPresent','cloudProviderName','credentialsPath','webSocketUtils','error\x20:\x20','updateClusterRegion','wzLjG','storage.buckets.createTagBinding','UMoIH','Cluster\x20deletion\x20completed','wRYGI','deleteCluster','gKLxC','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','zUDGX','rFzBI','delay','templates','XeGSb','readFileAsync','PJHYx','LOG','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','auth','JaaBX','createCluster','message','htSJa','\x20:\x20','@google-cloud/container','endpoint','@google-cloud/compute','AVABi','eJNhB','util','Turboscale\x20Custom\x20Role','NetworksClient','path','/packages/cli/update-cluster-region','serviceAccount','kTYSr','getUserInput','DTAaT','Intercepted','SvgpK','tJjUa','lYoji','GAVDZ','daawX','aTIKW','sDduG','utf-8','serviceAccountName','wHBwS','isClusterPresent','setupHubHa','forEach','ZiHbR','scopes','sendGCPInfoToHST','DctTC','mECWG','autoscaling','storage.multipartUploads.create','data','storage.buckets.getObjectInsights','storage.buckets.setIamPolicy','6|4|1|3|2|7|0|5|8','KACFD','\x20--quiet\x20--user-output-enabled=false','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','/serviceAccounts/','qjtOs','YAfSU','KGvcn','EaOiN','nAytL','yjMYx','./CloudProvider','toString','bstackUsername','zBOmf','management','title','XBUUw','Found\x20cluster\x20with\x20name\x20\x27','.iam.gserviceaccount.com','setupServiceAccount','maxNodes','CRyNO','parent','MtEcH','resourceLabels','vcxnR','rVRXB','serviceAccount:','nUQnL','channel','XqAok','vpcInfo','kOntc','startsWith','permissions','username','init','jWqcT','instanceType','ZhqXQ','FdKVo','504116BhPdWa','role','storage.buckets.listEffectiveTags','YLlun','216LAPIUd','YydFo','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','1878XGVTAe','project_id','zLdsh','Cluster\x20creation\x20failed','WXrhL','qxbVO','Creating\x20GKE\x20Cluster','hhZnU','EvzII','wekmB','status','sqLht','GoogleCloudProvider','WgPlP','uorsM','bWsTK','regionmap.json','storage.buckets.create','bstackAccesskey','organizations','iKvRH','NjCdv','pKZhk','jzIdT','HYcTe','rgkWk','machineType','wzhCI','/roles/','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ejkgX','storage.multipartUploads.listParts','network','accounts','wBzxR','CIuFQ','getGridHostname','allowed','permissions\x20check\x20response\x20for\x20','HOocN','ZAiTi','create','bindings','name','Zdrze','setIamPolicy','getIamPolicy','eLsir','YnVju','UVtdS','cmigM','JHXEP','KRoXu','bbMVp','masterAuth','dsFlu','DsHxe','jDMOm','storage.objects.create','subnetwork','get','WVtLR','locations','GwIjr','got','clusterRegion','JCcLL','iamClient','ZjySq','WIAkS','cJsws','XuYvf','storage.objects.get','../config/logger','location','writeFileSync','Opxur','Service\x20account\x20already\x20exists,\x20skipping','kliBP','rws','NlcOz','iam','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','roles','tbIBo','denied','Ifpct','keyFile','HGCvc','Cepcq','2980595qyTziX','QfSDk','RUNNING','isBrowserstackCluster','projects','3394329eCcMCU','NgLYs','storage.objects.delete','23709yBCKqH','dSari','keys','storage.objects.getIamPolicy','mggnw','qUxmw','lUKCc','zlBej','joaIn','8076040ziommU','kuoNr','getClient','includedPermissions','config','QTYJf','KfbyY','spUSw','ingress','getClusterInfo','gridProfileId','teCqR','concat','gcp_credentials.json','bsWrg','MIqry','checkServiceAccount','clnYl','nodePools','hzZEo','error','fdVBv','RYlIZ','clusterName','gfcaD','JSIGX','entries','info','checkAccess','21274620etHfis','QcPOI','akaPQ','uSBeN','GKE\x20Cluster\x20deletion\x20failed','CFJAm','gcloud\x20auth\x20login\x20--cred-file=','JLQBn','cloudProvider','/global/networks/','/regions/','aQkIV','HCQvI','XPnOj','kUCja','926EhFzsG','AckHI','ELNmi','json','lPnLV','type','toLowerCase','GYMWd','kTMXA','tmHvS','requestBody','setupNewCluster','/locations/','listClusters','XFuyd','ZIDyF','SAliB','bRLoB','resourcemanagerClient','storage.multipartUploads.list','UDnue','iam.serviceAccounts.signBlob','gcpresources','/clusters/','storage.objects.list','ZZNZz','IrSup','/subnetworks/','maxNodeCount','autoUpgrade','CktAe','HGwrS','list','aDqai','kGama','isCliToolInstalled','TgdBA','includes','execSync','IhrjB','join','clusters','child_process','../utils/utilityMethods','KubeConfigTemplate.yaml','OujnP','JEkaO','googleapis','browserstack','exec','iZygv','gtZBy','HzlXb','FXaWe','loadBalancer','https://www.googleapis.com/compute/v1/projects/','LNagk','lSBSy','projects/','BJQDQ','INxWB','projectId','getCluster','ClusterManagerClient','okvTv','ienQj','storage.buckets.getIamPolicy','containerClient','MzEet','replace','YzeXA','SNROx','https://','https://www.googleapis.com/auth/cloud-platform','Cannot\x20find\x20subnets\x20','CEvqi','wYbJv','turboscale-service-account','../config/constants','default','tcbpM','PRlNV','stack','warn','WlVRH','storage.objects.setIamPolicy','minNodeCount','wghmk','releaseChannel','Creating\x20service\x20account','VIRmz','Erohk','../utils/gridComponents','updateWindowsNodeGroup','XYinE','NVgFT','managedby','.\x20Error:\x20','storage.buckets.delete','BtCMq','vcRcP','REGULAR','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','sIQRn','TdySE','log','hWLMA','length','subnetworks','vptdo','Akpya','olpGU','serviceAccounts','LffoR','accountId','oyZlS','TrIFi','UMAIt','members','VmmWt','bVkzP','Deleting\x20the\x20cluster\x20','ywQNq','ZwJQi','OfMUE','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','isSubnetsValid','sendEventToBackend','TBtkH','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','\x20--windows-os-version=ltsc2022\x20--region\x20','kEhSP','Bqene','parse','TyQAB','Gsbkb'];a3_0x3ae7=function(){return _0x1eada2;};return a3_0x3ae7();}const a3_0x265ffa={};a3_0x265ffa[a3_0x33f874(0x223)]=GoogleCloudProvider,module[a3_0x33f874(0x192)]=a3_0x265ffa;
|
|
1
|
+
const a3_0x386bef=a3_0x384b;(function(_0x74ac6d,_0x293d62){const _0x56c02e=a3_0x384b,_0x2dc872=_0x74ac6d();while(!![]){try{const _0x1ba5b0=-parseInt(_0x56c02e(0x1d5))/0x1*(parseInt(_0x56c02e(0x2cc))/0x2)+-parseInt(_0x56c02e(0x326))/0x3*(parseInt(_0x56c02e(0x1ec))/0x4)+-parseInt(_0x56c02e(0x1e1))/0x5*(parseInt(_0x56c02e(0x1e3))/0x6)+-parseInt(_0x56c02e(0x287))/0x7*(-parseInt(_0x56c02e(0x2ce))/0x8)+parseInt(_0x56c02e(0x202))/0x9+-parseInt(_0x56c02e(0x33a))/0xa*(parseInt(_0x56c02e(0x2e9))/0xb)+parseInt(_0x56c02e(0x264))/0xc*(parseInt(_0x56c02e(0x2ec))/0xd);if(_0x1ba5b0===_0x293d62)break;else _0x2dc872['push'](_0x2dc872['shift']());}catch(_0x2131e8){_0x2dc872['push'](_0x2dc872['shift']());}}}(a3_0x54f0,0x82ec2));const fs=require('fs'),path=require(a3_0x386bef(0x324)),got=require(a3_0x386bef(0x24e)),util=require(a3_0x386bef(0x208)),cp=require(a3_0x386bef(0x34f)),{google}=require(a3_0x386bef(0x33f)),compute=require('@google-cloud/compute'),container=require(a3_0x386bef(0x339)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x386bef(0x35a)),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x386bef(0x2cb)),{deleteRoutingDeps,deleteAgent}=require(a3_0x386bef(0x348)),{inputConfirmation,closeInput}=require(a3_0x386bef(0x2f7)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x386bef(0x31d)),PERMISSIONS=require(a3_0x386bef(0x1ea));class GoogleCloudProvider extends CloudProvider{constructor(_0x2300c9,_0x2c5869,_0x3988d3,_0x1f1b3b){const _0x105da4=a3_0x386bef,_0x395b53={};_0x395b53[_0x105da4(0x1e7)]='3|1|7|8|5|0|6|4|2',_0x395b53[_0x105da4(0x25a)]=_0x105da4(0x329),_0x395b53['hcubs']='turboscale_custom_role';const _0x40fcae=_0x395b53,_0x313ccd=_0x40fcae[_0x105da4(0x1e7)][_0x105da4(0x317)]('|');let _0x145b4a=0x0;while(!![]){switch(_0x313ccd[_0x145b4a++]){case'0':this[_0x105da4(0x2f2)]=null;continue;case'1':this['containerClient']=null;continue;case'2':this[_0x105da4(0x247)]=_0x40fcae[_0x105da4(0x25a)];continue;case'3':super(GCP,_0x2300c9,_0x2c5869,_0x3988d3,_0x1f1b3b);continue;case'4':this[_0x105da4(0x2af)]=_0x40fcae['hcubs'];continue;case'5':this['iamClient']=null;continue;case'6':this[_0x105da4(0x2f5)]=null;continue;case'7':this[_0x105da4(0x269)]=null;continue;case'8':this[_0x105da4(0x358)]=null;continue;}break;}}async[a3_0x386bef(0x2ef)](){const _0x8f5c10=a3_0x386bef;this[_0x8f5c10(0x309)](this[_0x8f5c10(0x2fa)]);}async[a3_0x386bef(0x20f)](){const _0x48c5f7=a3_0x386bef;await super[_0x48c5f7(0x20f)]();const _0x2a4fc1=this[_0x48c5f7(0x2f2)],_0x42f3c7={};_0x42f3c7[_0x48c5f7(0x28a)]=_0x2a4fc1,this[_0x48c5f7(0x1cd)]=new container['v1'][(_0x48c5f7(0x2fb))](_0x42f3c7);const _0x1f2e2c={};_0x1f2e2c[_0x48c5f7(0x28a)]=_0x2a4fc1,this[_0x48c5f7(0x269)]=new compute['v1']['NetworksClient'](_0x1f2e2c);const _0x3aa0bd={};return _0x3aa0bd['keyFile']=_0x2a4fc1,this[_0x48c5f7(0x358)]=new ProjectsClient(_0x3aa0bd),this['iamClient']=google[_0x48c5f7(0x2dd)]('v1'),this;}async[a3_0x386bef(0x2bd)](_0xd400ff,_0x581dc4){const _0x339440=a3_0x386bef,_0xa433e0={'PcTjM':function(_0x8213a1,_0x3f731c){return _0x8213a1(_0x3f731c);},'XbkHy':_0x339440(0x294),'hCHjp':function(_0x3a20ff){return _0x3a20ff();},'ERinD':_0x339440(0x229)},_0xce3728=await _0xa433e0[_0x339440(0x2bc)](_0xd400ff,_0xa433e0['XbkHy']);let _0x4ff476=await fs[_0x339440(0x2d7)](_0xce3728);_0x4ff476=_0x4ff476['toString']();const _0x3e6990=_0xa433e0[_0x339440(0x1f2)](getDirForConfig),_0x72b29b=path[_0x339440(0x1d7)](_0x3e6990,_0xa433e0[_0x339440(0x2be)]);fs[_0x339440(0x1f8)](_0x72b29b,_0x4ff476),this[_0x339440(0x2f2)]=_0x72b29b;const _0x4f9924={};return _0x4f9924[_0x339440(0x28a)]=_0x72b29b,_0x581dc4['cloudProvider'][GCP]=_0x4f9924,_0x4ff476=JSON[_0x339440(0x251)](_0x4ff476),this['projectId']=_0x4ff476['project_id'],_0x581dc4;}async[a3_0x386bef(0x25f)](_0x393503){const _0x2a5bf3=a3_0x386bef;this[_0x2a5bf3(0x2f2)]=_0x393503[this[_0x2a5bf3(0x1eb)]]['keyFile'];let _0xe4aad5=await fs['readFileAsync'](this[_0x2a5bf3(0x2f2)]);_0xe4aad5=JSON['parse'](_0xe4aad5),this[_0x2a5bf3(0x2f5)]=_0xe4aad5[_0x2a5bf3(0x274)];}[a3_0x386bef(0x1cb)](_0x133317){const _0x5868aa=a3_0x386bef;return _0x133317[_0x5868aa(0x1ed)][_0x5868aa(0x325)][_0x5868aa(0x1c8)][0x0]['ip'];}async['isBrowserstackCluster'](){const _0x49ec1a=a3_0x386bef,_0x2afc93={};_0x2afc93[_0x49ec1a(0x33e)]=function(_0x1d9574,_0x223bb9){return _0x1d9574===_0x223bb9;},_0x2afc93[_0x49ec1a(0x262)]=_0x49ec1a(0x2a8),_0x2afc93[_0x49ec1a(0x2c9)]=function(_0x3eea2c,_0x426b6b){return _0x3eea2c!==_0x426b6b;},_0x2afc93['TRCRB']='lcPEl',_0x2afc93[_0x49ec1a(0x2d1)]=_0x49ec1a(0x28b),_0x2afc93[_0x49ec1a(0x291)]=_0x49ec1a(0x2fe),_0x2afc93['TtcCz']=function(_0x418dbd,_0x25975e){return _0x418dbd===_0x25975e;},_0x2afc93[_0x49ec1a(0x278)]=_0x49ec1a(0x2ba),_0x2afc93[_0x49ec1a(0x22a)]=function(_0x48ddb4,_0x237d3e){return _0x48ddb4===_0x237d3e;},_0x2afc93[_0x49ec1a(0x206)]=_0x49ec1a(0x2ea);const _0x2cd4d0=_0x2afc93;try{if(_0x2cd4d0[_0x49ec1a(0x2c9)](_0x2cd4d0['TRCRB'],_0x2cd4d0[_0x49ec1a(0x2d6)]))for(const _0x1bd686 of _0x20c141['data']['accounts']){if(_0x2cd4d0['kuVcT'](_0x1bd686?.[_0x49ec1a(0x21f)],_0x49ec1a(0x23d)+this[_0x49ec1a(0x2f5)]+_0x49ec1a(0x271)+this[_0x49ec1a(0x247)]+'@'+this['projectId']+_0x49ec1a(0x252)))return!![];}else{const _0x29b1c9=await this[_0x49ec1a(0x32a)]();if(_0x29b1c9[0x0]?.[_0x49ec1a(0x2b8)]?.['managedby']){if(_0x2cd4d0[_0x49ec1a(0x33e)](_0x2cd4d0['afoum'],_0x2cd4d0['eCqYg']))this[_0x49ec1a(0x309)](this[_0x49ec1a(0x2fa)]);else{const _0x4e0f08=_0x29b1c9[0x0]?.[_0x49ec1a(0x2b8)]?.[_0x49ec1a(0x335)];return _0x4e0f08&&_0x2cd4d0[_0x49ec1a(0x350)](_0x4e0f08['toLowerCase'](),_0x2cd4d0['wlGGz']);}}}}catch(_0x2298cb){if(_0x2cd4d0[_0x49ec1a(0x22a)](_0x2cd4d0['SxMSw'],_0x2cd4d0[_0x49ec1a(0x206)]))return![];else{const _0x53c393={};_0x53c393['channel']=_0x2cd4d0[_0x49ec1a(0x262)],_0x36f48a[_0x49ec1a(0x241)]=_0x53c393;}}return![];}async[a3_0x386bef(0x30c)](){const _0x523199=a3_0x386bef,_0x2f0425={'FnOMy':_0x523199(0x296),'KlasT':function(_0x37a017,_0xcd5f7c){return _0x37a017===_0xcd5f7c;},'tLrPf':function(_0x87de4e,_0x10c625){return _0x87de4e===_0x10c625;},'roQmm':_0x523199(0x2ba),'fNsXP':_0x523199(0x25e),'pUbYI':function(_0x4a5382,_0xede751){return _0x4a5382+_0xede751;},'ZQcFA':'templates','hPHWv':_0x523199(0x200),'qUtgA':'regionmap.json','JjVIq':_0x523199(0x250),'FnArK':function(_0x495cbf,_0x1ce977){return _0x495cbf!==_0x1ce977;},'TqdzC':function(_0x5f2568,_0x2ecb7d){return _0x5f2568===_0x2ecb7d;},'mkIol':_0x523199(0x36a),'YhDUR':_0x523199(0x2c0),'xQIsk':_0x523199(0x283),'yFxqq':'mhfQz','ZioCM':_0x523199(0x338),'fyxsE':_0x523199(0x24f),'mayaJ':function(_0x4d7766,_0x10a027){return _0x4d7766===_0x10a027;},'zFKDH':_0x523199(0x299),'MlECk':function(_0x1dea5a,_0x5e0656){return _0x1dea5a===_0x5e0656;},'lvDpe':_0x523199(0x29f),'ITDRT':'ClHSe','oCeFN':function(_0x4ae17e,_0x350544){return _0x4ae17e!==_0x350544;},'MfPzr':'jBjuN','XPMsl':function(_0x599b02,_0x95a7b9){return _0x599b02>_0x95a7b9;},'bfUOV':function(_0x5c780a,_0x3d02e8){return _0x5c780a===_0x3d02e8;},'gwXGl':_0x523199(0x32e),'svUlC':function(_0x23acd8,_0x50f2bb){return _0x23acd8<_0x50f2bb;},'VjUjf':_0x523199(0x302),'vhuYn':function(_0x247530,_0x25e5dd){return _0x247530(_0x25e5dd);},'GXoFA':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','rqmIg':function(_0x4fb852,_0x32684d){return _0x4fb852<=_0x32684d;},'UUojl':'QQRou','yXAFW':function(_0xe675a5){return _0xe675a5();},'qKgFy':function(_0x295de0,_0x28aa45){return _0x295de0-_0x28aa45;},'bobdh':function(_0x5e98b3,_0x15384f){return _0x5e98b3!==_0x15384f;},'hEpVQ':function(_0x1a7e42,_0x3e4bf1){return _0x1a7e42===_0x3e4bf1;},'rQFWz':_0x523199(0x1fe),'RcWmz':function(_0x5167f7,_0x36f700){return _0x5167f7-_0x36f700;}};let _0x21c076=await fs[_0x523199(0x2d7)](path[_0x523199(0x1d7)](__dirname,'..',_0x2f0425['ZQcFA'],_0x2f0425[_0x523199(0x24a)],_0x2f0425[_0x523199(0x236)]),_0x2f0425['JjVIq']);_0x21c076=JSON[_0x523199(0x251)](_0x21c076);let _0x43a426=[global_registry[_0x523199(0x1dc)]];if(_0x2f0425['FnArK'](_0x21c076[global_registry[_0x523199(0x1dc)]],undefined)){if(_0x2f0425[_0x523199(0x2eb)](_0x2f0425[_0x523199(0x284)],_0x2f0425[_0x523199(0x28e)]))return!![];else _0x43a426=_0x43a426[_0x523199(0x27f)](_0x21c076[global_registry[_0x523199(0x1dc)]]);}const _0x7f2831=[];for await(const _0xae1d24 of _0x43a426){if(_0x2f0425[_0x523199(0x2a6)](_0x2f0425[_0x523199(0x25d)],_0x2f0425[_0x523199(0x312)])){const _0x8c3e85={};_0x8c3e85[_0x523199(0x22c)]='projects/'+this[_0x523199(0x2f5)]+'/locations/'+_0xae1d24;const _0x1c4c9c=_0x8c3e85,_0x48898c=await this[_0x523199(0x1cd)][_0x523199(0x2a3)](_0x1c4c9c);for(const _0x5bb238 of _0x48898c[0x0]['clusters']){_0x2f0425['FnArK'](_0x2f0425[_0x523199(0x35f)],_0x2f0425[_0x523199(0x2fd)])?_0x2f0425['mayaJ'](_0x5bb238[_0x523199(0x21f)],this[_0x523199(0x1e9)])&&(_0x2f0425[_0x523199(0x27c)](_0x2f0425['zFKDH'],_0x2f0425[_0x523199(0x243)])?_0x7f2831['push'](_0xae1d24):(_0x42e17e[_0x523199(0x24d)](_0x2f0425[_0x523199(0x261)]),_0x12fe2[_0x523199(0x235)](0x1))):_0x2f0425['KlasT'](_0x89ae7c['name'],this[_0x523199(0x1e9)])&&_0x2ff63d[_0x523199(0x1f5)](_0x448b11);}}else{const _0x1f65bf=_0x32698e[0x0]?.['resourceLabels']?.[_0x523199(0x335)];return _0x1f65bf&&_0x2f0425['tLrPf'](_0x1f65bf['toLowerCase'](),_0x2f0425[_0x523199(0x2a5)]);}}const _0x36a470=_0x7f2831[_0x523199(0x1cc)];if(_0x2f0425['MlECk'](_0x36a470,0x1)){if(_0x2f0425[_0x523199(0x316)](_0x2f0425[_0x523199(0x330)],_0x2f0425[_0x523199(0x32c)]))_0x260243=_0x2f0425[_0x523199(0x336)];else{if(_0x2f0425['oCeFN'](global_registry[_0x523199(0x1dc)],_0x7f2831[0x0])){if(_0x2f0425[_0x523199(0x2a6)](_0x2f0425[_0x523199(0x24b)],_0x2f0425[_0x523199(0x24b)]))return _0x327f5a[_0x523199(0x1ed)][_0x523199(0x325)][_0x523199(0x1c8)][0x0]['ip'];else global_registry[_0x523199(0x1dc)]=_0x7f2831[0x0],this[_0x523199(0x267)]();}return!![];}}else{if(_0x2f0425['XPMsl'](_0x36a470,0x1)){if(_0x2f0425[_0x523199(0x359)](_0x2f0425[_0x523199(0x1fc)],_0x2f0425[_0x523199(0x1fc)])){console[_0x523199(0x22b)](_0x523199(0x2f1)+this[_0x523199(0x1e9)]+_0x523199(0x1f6));for(let _0x341991=0x0;_0x2f0425[_0x523199(0x259)](_0x341991,_0x36a470);_0x341991+=0x1){_0x2f0425[_0x523199(0x280)](_0x2f0425[_0x523199(0x2d3)],_0x2f0425[_0x523199(0x2d3)])?console[_0x523199(0x22b)]('['+_0x2f0425[_0x523199(0x297)](_0x341991,0x1)+']\x20'+_0x7f2831[_0x341991]):_0x13f922[_0x523199(0x1ed)]=![];}const _0x5763f2=await _0x2f0425[_0x523199(0x323)](inputConfirmation,_0x2f0425[_0x523199(0x298)]),_0x41e6cf=_0x2f0425[_0x523199(0x323)](Number,_0x5763f2);(_0x2f0425[_0x523199(0x323)](isNaN,_0x41e6cf)||_0x2f0425[_0x523199(0x258)](_0x41e6cf,0x0)||_0x2f0425[_0x523199(0x1f9)](_0x41e6cf,_0x36a470))&&(_0x2f0425[_0x523199(0x2a6)](_0x2f0425[_0x523199(0x292)],_0x2f0425[_0x523199(0x292)])?_0x37e367[_0x523199(0x22b)]('['+_0x2f0425[_0x523199(0x297)](_0x5959dd,0x1)+']\x20'+_0x12cc35[_0x135e07]):(console[_0x523199(0x24d)](_0x2f0425[_0x523199(0x261)]),process[_0x523199(0x235)](0x1)));_0x2f0425[_0x523199(0x356)](closeInput),logger['info']('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x7f2831[_0x2f0425[_0x523199(0x21e)](_0x41e6cf,0x1)]);if(_0x2f0425[_0x523199(0x263)](global_registry['clusterRegion'],_0x7f2831[_0x2f0425['qKgFy'](_0x41e6cf,0x1)])){if(_0x2f0425['hEpVQ'](_0x2f0425[_0x523199(0x1ce)],_0x2f0425[_0x523199(0x1ce)]))global_registry[_0x523199(0x1dc)]=_0x7f2831[_0x2f0425[_0x523199(0x289)](_0x41e6cf,0x1)],this[_0x523199(0x267)]();else return!![];}return!![];}else return![];}}return![];}async[a3_0x386bef(0x32a)](){const _0x2eb205=a3_0x386bef,_0x49d45e=await this['containerClient']['getCluster']({'name':'projects/'+this[_0x2eb205(0x2f5)]+_0x2eb205(0x23a)+global_registry[_0x2eb205(0x1dc)]+_0x2eb205(0x1c4)+this[_0x2eb205(0x1e9)]});return _0x49d45e;}async[a3_0x386bef(0x353)](){const _0xc30328=a3_0x386bef,_0xe87873={};_0xe87873[_0xc30328(0x2fc)]=_0xc30328(0x2e3),_0xe87873[_0xc30328(0x2c6)]=_0xc30328(0x1e6),_0xe87873[_0xc30328(0x30f)]=_0xc30328(0x200),_0xe87873[_0xc30328(0x2f0)]=_0xc30328(0x1df);const _0x3b2456=_0xe87873;cp[_0xc30328(0x2f9)](_0x3b2456[_0xc30328(0x2fc)]),cp['exec'](_0xc30328(0x226)+this['credentialsPath']);const _0x4378b9=await this[_0xc30328(0x32a)](),_0x5226c1='gke_'+this[_0xc30328(0x2f5)]+'_'+global_registry[_0xc30328(0x1dc)]+'_'+this[_0xc30328(0x1e9)];let _0x2847ba=await fs[_0xc30328(0x2d7)](path[_0xc30328(0x1d7)](__dirname,'..',_0x3b2456[_0xc30328(0x2c6)],_0x3b2456[_0xc30328(0x30f)],_0x3b2456[_0xc30328(0x2f0)]));return _0x2847ba=_0x2847ba['toString'](),_0x2847ba=_0x2847ba[_0xc30328(0x307)](/<CLUSTER_NAME>/g,_0x5226c1),_0x2847ba=_0x2847ba['replace'](/<CLUSTER_URL>/g,'https://'+_0x4378b9[0x0][_0xc30328(0x34b)]),_0x2847ba=_0x2847ba[_0xc30328(0x307)](/<CERTIFICATE_DATA>/g,_0x4378b9[0x0][_0xc30328(0x29e)][_0xc30328(0x366)]),_0x2847ba;}async['checkServiceAccount'](){const _0x291015=a3_0x386bef,_0xdb721={};_0xdb721[_0x291015(0x2ff)]='https://www.googleapis.com/auth/cloud-platform',_0xdb721[_0x291015(0x23e)]=function(_0x56cff5,_0x4b6cb6){return _0x56cff5===_0x4b6cb6;},_0xdb721[_0x291015(0x2c3)]=_0x291015(0x31c),_0xdb721[_0x291015(0x276)]='HTfJI',_0xdb721[_0x291015(0x32f)]=function(_0x2b66cc,_0xaea207){return _0x2b66cc===_0xaea207;},_0xdb721[_0x291015(0x20a)]=_0x291015(0x28c),_0xdb721['bPrCX']=_0x291015(0x310),_0xdb721[_0x291015(0x2bb)]=function(_0x441ac5,_0x47801b){return _0x441ac5!==_0x47801b;},_0xdb721[_0x291015(0x2a0)]=_0x291015(0x352);const _0x5c0428=_0xdb721,_0x5e8cbd={};_0x5e8cbd[_0x291015(0x1f7)]=[_0x5c0428['UoqHf']],_0x5e8cbd[_0x291015(0x28a)]=this['credentialsPath'];const _0x6abb46=await google[_0x291015(0x23b)]['getClient'](_0x5e8cbd),_0x342149=await this[_0x291015(0x1ee)][_0x291015(0x314)][_0x291015(0x253)][_0x291015(0x207)]({'name':_0x291015(0x23d)+this['projectId'],'auth':_0x6abb46});if(_0x342149?.[_0x291015(0x2db)]?.[_0x291015(0x1ff)]){if(_0x5c0428[_0x291015(0x23e)](_0x5c0428[_0x291015(0x2c3)],_0x5c0428[_0x291015(0x276)]))_0x51a75f=_0xc423ac[_0x291015(0x27f)](_0x160733[_0x5d6711[_0x291015(0x1dc)]]);else for(const _0x3a4afa of _0x342149[_0x291015(0x2db)][_0x291015(0x1ff)]){if(_0x5c0428['kCIPf'](_0x5c0428[_0x291015(0x20a)],_0x5c0428[_0x291015(0x211)]))_0x5ae7f4['clusterRegion']=_0x424a65[0x0],this[_0x291015(0x267)]();else{if(_0x5c0428[_0x291015(0x23e)](_0x3a4afa?.[_0x291015(0x21f)],_0x291015(0x23d)+this[_0x291015(0x2f5)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x291015(0x2f5)]+_0x291015(0x252)))return _0x5c0428[_0x291015(0x2bb)](_0x5c0428[_0x291015(0x2a0)],_0x5c0428[_0x291015(0x2a0)])?[!![],_0x5a7e70]:!![];}}}return![];}async[a3_0x386bef(0x1c6)](){const _0x4084b3=a3_0x386bef,_0x40f7c8={};_0x40f7c8[_0x4084b3(0x2b2)]=function(_0x4d2077,_0x3b6c67){return _0x4d2077!==_0x3b6c67;},_0x40f7c8[_0x4084b3(0x2bf)]='uGTyD',_0x40f7c8[_0x4084b3(0x367)]='gEGoO',_0x40f7c8[_0x4084b3(0x293)]=_0x4084b3(0x365),_0x40f7c8['aQNye']=_0x4084b3(0x295),_0x40f7c8[_0x4084b3(0x1c2)]=_0x4084b3(0x308),_0x40f7c8[_0x4084b3(0x2ed)]=_0x4084b3(0x2ca),_0x40f7c8['BOetd']=_0x4084b3(0x369),_0x40f7c8[_0x4084b3(0x33b)]='storage.buckets.createTagBinding',_0x40f7c8[_0x4084b3(0x351)]='storage.buckets.delete',_0x40f7c8[_0x4084b3(0x30b)]=_0x4084b3(0x304),_0x40f7c8[_0x4084b3(0x305)]='storage.buckets.get',_0x40f7c8[_0x4084b3(0x26b)]=_0x4084b3(0x361),_0x40f7c8[_0x4084b3(0x24c)]='storage.buckets.getObjectInsights',_0x40f7c8[_0x4084b3(0x318)]=_0x4084b3(0x209),_0x40f7c8[_0x4084b3(0x2f8)]=_0x4084b3(0x246),_0x40f7c8['XoppU']='storage.buckets.listTagBindings',_0x40f7c8[_0x4084b3(0x35c)]=_0x4084b3(0x2e6),_0x40f7c8[_0x4084b3(0x215)]='storage.buckets.update',_0x40f7c8[_0x4084b3(0x1d6)]=_0x4084b3(0x28d),_0x40f7c8[_0x4084b3(0x337)]=_0x4084b3(0x331),_0x40f7c8['LrghN']=_0x4084b3(0x205),_0x40f7c8[_0x4084b3(0x2c1)]=_0x4084b3(0x260),_0x40f7c8[_0x4084b3(0x2ab)]=_0x4084b3(0x270),_0x40f7c8[_0x4084b3(0x344)]=_0x4084b3(0x213),_0x40f7c8[_0x4084b3(0x368)]=_0x4084b3(0x31f),_0x40f7c8[_0x4084b3(0x30a)]=_0x4084b3(0x2c5),_0x40f7c8['ExJdd']=_0x4084b3(0x2da),_0x40f7c8[_0x4084b3(0x1f4)]=_0x4084b3(0x26a),_0x40f7c8[_0x4084b3(0x272)]='storage.objects.update',_0x40f7c8[_0x4084b3(0x35d)]=_0x4084b3(0x25b),_0x40f7c8['tnMPu']=_0x4084b3(0x2c2);const _0x3af2c8=_0x40f7c8,_0xd7f21f=await this[_0x4084b3(0x2f4)]();if(_0xd7f21f){if(_0x3af2c8['xBJsT'](_0x3af2c8[_0x4084b3(0x2bf)],_0x3af2c8[_0x4084b3(0x367)])){logger[_0x4084b3(0x288)](_0x3af2c8[_0x4084b3(0x293)]);return;}else _0x336823[_0x4084b3(0x2d5)]['push'](_0x7d1417);}logger[_0x4084b3(0x288)](_0x3af2c8['aQNye']);const _0x306551={};_0x306551[_0x4084b3(0x1f7)]=[_0x3af2c8[_0x4084b3(0x1c2)]],_0x306551['keyFile']=this['credentialsPath'];const _0x1def5c=await google[_0x4084b3(0x23b)][_0x4084b3(0x23f)](_0x306551),_0x18d4ca={};_0x18d4ca['includedPermissions']=[_0x3af2c8[_0x4084b3(0x2ed)],_0x3af2c8[_0x4084b3(0x224)],_0x3af2c8['wgosw'],_0x3af2c8[_0x4084b3(0x351)],_0x3af2c8['RcApF'],_0x3af2c8[_0x4084b3(0x305)],_0x3af2c8[_0x4084b3(0x26b)],_0x3af2c8[_0x4084b3(0x24c)],_0x3af2c8[_0x4084b3(0x318)],_0x3af2c8['CRKsL'],_0x3af2c8[_0x4084b3(0x345)],_0x3af2c8[_0x4084b3(0x35c)],_0x3af2c8[_0x4084b3(0x215)],_0x3af2c8[_0x4084b3(0x1d6)],_0x3af2c8[_0x4084b3(0x337)],_0x3af2c8[_0x4084b3(0x360)],_0x3af2c8[_0x4084b3(0x2c1)],_0x3af2c8[_0x4084b3(0x2ab)],_0x3af2c8[_0x4084b3(0x344)],_0x3af2c8[_0x4084b3(0x368)],_0x3af2c8['lefso'],_0x3af2c8[_0x4084b3(0x1e5)],_0x3af2c8[_0x4084b3(0x1f4)],_0x3af2c8[_0x4084b3(0x272)]],_0x18d4ca[_0x4084b3(0x2b1)]=_0x3af2c8[_0x4084b3(0x35d)],await this['iamClient'][_0x4084b3(0x1fa)][_0x4084b3(0x2a7)][_0x4084b3(0x2e8)]({'parent':_0x4084b3(0x23d)+this[_0x4084b3(0x2f5)],'requestBody':{'role':_0x18d4ca,'roleId':this[_0x4084b3(0x2af)]},'auth':_0x1def5c});const _0x27e01a={};_0x27e01a[_0x4084b3(0x21f)]=_0x4084b3(0x23d)+this[_0x4084b3(0x2f5)],_0x27e01a[_0x4084b3(0x212)]={},_0x27e01a[_0x4084b3(0x23b)]=_0x1def5c,_0x27e01a[_0x4084b3(0x212)][_0x4084b3(0x1dd)]=this['serviceAccountName'];const _0x405958=_0x27e01a;await this[_0x4084b3(0x1ee)]['projects']['serviceAccounts']['create'](_0x405958);let _0x176650=await this[_0x4084b3(0x358)][_0x4084b3(0x27d)]({'resource':'projects/'+this['projectId']});_0x176650=_0x176650[0x0]['bindings'];const _0x235ff5={};_0x235ff5[_0x4084b3(0x233)]=_0x4084b3(0x23d)+this[_0x4084b3(0x2f5)]+'/roles/'+this['customRoleName'],_0x235ff5[_0x4084b3(0x2e4)]=[_0x4084b3(0x214)+this[_0x4084b3(0x247)]+'@'+this[_0x4084b3(0x2f5)]+_0x4084b3(0x252)],_0x176650[_0x4084b3(0x1f5)](_0x235ff5);const _0x33050a={};_0x33050a[_0x4084b3(0x34a)]=_0x176650,await this[_0x4084b3(0x358)]['setIamPolicy']({'resource':_0x4084b3(0x23d)+this[_0x4084b3(0x2f5)],'policy':_0x33050a}),logger['info'](_0x3af2c8['tnMPu']);}async[a3_0x386bef(0x332)](_0xbf4131=a3_0x386bef(0x25e),_0x29aa2c=['default']){const _0x5c9fc7=a3_0x386bef,_0x1243c5={};_0x1243c5[_0x5c9fc7(0x21a)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x1243c5[_0x5c9fc7(0x281)]=_0x5c9fc7(0x311),_0x1243c5[_0x5c9fc7(0x230)]=function(_0x5aa475,_0x5a6c8b){return _0x5aa475!==_0x5a6c8b;},_0x1243c5['YjloW']=_0x5c9fc7(0x32b),_0x1243c5[_0x5c9fc7(0x240)]='default',_0x1243c5[_0x5c9fc7(0x2ad)]=function(_0x589187,_0x29f86a){return _0x589187===_0x29f86a;},_0x1243c5[_0x5c9fc7(0x35b)]=function(_0x4d565c,_0x1d10ec){return _0x4d565c===_0x1d10ec;},_0x1243c5[_0x5c9fc7(0x2de)]=_0x5c9fc7(0x238);const _0x34c390=_0x1243c5,_0x4cd960={};return _0x4cd960['type']=WS_EVENTS[_0x5c9fc7(0x2b0)],_0x4cd960[_0x5c9fc7(0x362)]=_0x34c390[_0x5c9fc7(0x21a)],this[_0x5c9fc7(0x1db)]['sendEventToBackend'](this[_0x5c9fc7(0x2fa)],_0x4cd960),logger[_0x5c9fc7(0x288)](_0x34c390[_0x5c9fc7(0x281)]),!_0xbf4131&&(_0x34c390[_0x5c9fc7(0x230)](_0x34c390['YjloW'],_0x34c390['YjloW'])?_0x344f1a[_0x5c9fc7(0x24d)]=_0x37e362:_0xbf4131=_0x34c390[_0x5c9fc7(0x240)]),(!_0x29aa2c||_0x34c390['aJboA'](_0x29aa2c[_0x5c9fc7(0x1cc)],0x0))&&(_0x34c390[_0x5c9fc7(0x35b)](_0x34c390[_0x5c9fc7(0x2de)],_0x34c390[_0x5c9fc7(0x2de)])?_0x29aa2c=[_0x34c390[_0x5c9fc7(0x240)]]:_0x256cf8[_0x5c9fc7(0x2f9)](_0x5c9fc7(0x357)+this['clusterName']+_0x5c9fc7(0x279)+_0x468346[_0x5c9fc7(0x1dc)]+_0x5c9fc7(0x1e4))),await this[_0x5c9fc7(0x1c6)](),await this['createCluster'](_0xbf4131,_0x29aa2c),await this['updateWindowsNodeGroup'](),[_0xbf4131,_0x29aa2c];}async[a3_0x386bef(0x2a1)](_0x1779fb=a3_0x386bef(0x25e),_0x360ba6=['default']){const _0x32f84c=a3_0x386bef,_0x1891a1={};_0x1891a1[_0x32f84c(0x257)]=_0x32f84c(0x255),_0x1891a1[_0x32f84c(0x223)]=_0x32f84c(0x228),_0x1891a1[_0x32f84c(0x1d3)]=_0x32f84c(0x306),_0x1891a1[_0x32f84c(0x2b7)]=function(_0x560076,_0x43be8e){return _0x560076===_0x43be8e;},_0x1891a1['WaTOA']=_0x32f84c(0x1f1),_0x1891a1[_0x32f84c(0x2b9)]=_0x32f84c(0x28f),_0x1891a1['FKxDH']='Creating\x20GKE\x20Cluster',_0x1891a1[_0x32f84c(0x1e2)]='templates',_0x1891a1[_0x32f84c(0x2a9)]=_0x32f84c(0x200),_0x1891a1[_0x32f84c(0x20d)]=_0x32f84c(0x1d9),_0x1891a1['peZtM']=_0x32f84c(0x250),_0x1891a1['iUAYF']=_0x32f84c(0x21b),_0x1891a1[_0x32f84c(0x248)]=function(_0x1b9e53,_0x24b0ac){return _0x1b9e53===_0x24b0ac;},_0x1891a1[_0x32f84c(0x268)]=_0x32f84c(0x363),_0x1891a1[_0x32f84c(0x29b)]='WhIqL',_0x1891a1[_0x32f84c(0x1c5)]=_0x32f84c(0x2a8),_0x1891a1['OtqkQ']=function(_0x23756,_0x55a48e){return _0x23756*_0x55a48e;},_0x1891a1[_0x32f84c(0x21d)]=_0x32f84c(0x231),_0x1891a1[_0x32f84c(0x20b)]='sOWOa',_0x1891a1[_0x32f84c(0x1da)]=function(_0x53595a,_0x2ababf){return _0x53595a!==_0x2ababf;},_0x1891a1[_0x32f84c(0x227)]=_0x32f84c(0x1ef),_0x1891a1[_0x32f84c(0x2d0)]=_0x32f84c(0x22f),_0x1891a1[_0x32f84c(0x204)]=_0x32f84c(0x2e1),_0x1891a1[_0x32f84c(0x222)]=function(_0x315f1b,_0x413a4b){return _0x315f1b!==_0x413a4b;},_0x1891a1[_0x32f84c(0x26d)]='nheSF',_0x1891a1['EbUrj']=_0x32f84c(0x22d);const _0x246aaf=_0x1891a1;try{if(_0x246aaf[_0x32f84c(0x2b7)](_0x246aaf[_0x32f84c(0x33c)],_0x246aaf['OjunL']))return!![];else{logger[_0x32f84c(0x288)](_0x246aaf['FKxDH']);let _0x3f997c=await fs[_0x32f84c(0x2d7)](path['join'](__dirname,'..',_0x246aaf[_0x32f84c(0x1e2)],_0x246aaf['ijNVV'],_0x246aaf[_0x32f84c(0x20d)]),_0x246aaf[_0x32f84c(0x300)]);_0x3f997c=JSON[_0x32f84c(0x251)](_0x3f997c);let _0xb22de9=await fs[_0x32f84c(0x2d7)](path['join'](__dirname,'..',_0x246aaf[_0x32f84c(0x1e2)],_0x246aaf[_0x32f84c(0x2a9)],_0x246aaf['iUAYF']),_0x246aaf[_0x32f84c(0x300)]);_0xb22de9=JSON[_0x32f84c(0x251)](_0xb22de9);const _0x2b5e36=global_registry[_0x32f84c(0x2e7)];_0x3f997c[_0x32f84c(0x21f)]=this['clusterName'],_0x3f997c[_0x32f84c(0x21c)][0x0][_0x32f84c(0x34d)]['machineType']=global_registry[_0x32f84c(0x33d)],_0x3f997c['nodePools'][0x1]['config'][_0x32f84c(0x221)]=global_registry[_0x32f84c(0x33d)],_0x3f997c[_0x32f84c(0x21c)][0x0]['config'][_0x32f84c(0x234)]=this['serviceAccountName']+'@'+this[_0x32f84c(0x2f5)]+'.iam.gserviceaccount.com',_0x3f997c[_0x32f84c(0x21c)][0x1][_0x32f84c(0x34d)][_0x32f84c(0x234)]=this[_0x32f84c(0x247)]+'@'+this[_0x32f84c(0x2f5)]+_0x32f84c(0x252),_0x3f997c[_0x32f84c(0x21c)][0x0]['autoscaling'][_0x32f84c(0x249)]=global_registry[_0x32f84c(0x1c3)],_0x3f997c['nodePools'][0x1][_0x32f84c(0x313)][_0x32f84c(0x249)]=0x0,_0x3f997c[_0x32f84c(0x21c)][0x0][_0x32f84c(0x2c8)][_0x32f84c(0x237)]=_0x2b5e36,_0x3f997c[_0x32f84c(0x21c)][0x1]['management'][_0x32f84c(0x237)]=_0x2b5e36,_0x3f997c[_0x32f84c(0x21c)][0x0][_0x32f84c(0x313)]['maxNodeCount']=global_registry[_0x32f84c(0x30e)],_0x3f997c[_0x32f84c(0x21c)][0x1][_0x32f84c(0x313)][_0x32f84c(0x216)]=global_registry[_0x32f84c(0x30e)],_0x3f997c['location']=global_registry[_0x32f84c(0x1dc)],_0x3f997c[_0x32f84c(0x31a)]=[_0xb22de9[global_registry[_0x32f84c(0x1dc)]][0x0]],_0x3f997c[_0x32f84c(0x2ac)]='projects/'+this[_0x32f84c(0x2f5)]+_0x32f84c(0x346)+_0x1779fb,_0x3f997c[_0x32f84c(0x2a4)]=_0x32f84c(0x23d)+this[_0x32f84c(0x2f5)]+_0x32f84c(0x27e)+global_registry['clusterRegion']+_0x32f84c(0x2b6)+_0x360ba6[0x0];if(_0x2b5e36){if(_0x246aaf[_0x32f84c(0x248)](_0x246aaf[_0x32f84c(0x268)],_0x246aaf[_0x32f84c(0x29b)]))return![];else{const _0x14d53f={};_0x14d53f[_0x32f84c(0x354)]=_0x246aaf[_0x32f84c(0x1c5)],_0x3f997c['releaseChannel']=_0x14d53f;}}const _0x793947=await this[_0x32f84c(0x1cd)][_0x32f84c(0x2a1)]({'cluster':_0x3f997c,'parent':_0x32f84c(0x23d)+this['projectId']+_0x32f84c(0x23a)+global_registry[_0x32f84c(0x1dc)]});await this[_0x32f84c(0x1db)]['delay'](_0x246aaf['OtqkQ'](_0x246aaf[_0x32f84c(0x275)](0x7,0x3c),0x3e8));}}catch(_0x1c2f70){if(_0x246aaf['QRYGZ'](_0x246aaf[_0x32f84c(0x21d)],_0x246aaf['klTae'])){const _0x28cb22=_0x27543d['permissions']['includes'](_0x150fa5);_0x250f34+='\x0a\x09'+_0x2774c4+_0x32f84c(0x301)+(_0x28cb22?_0x246aaf[_0x32f84c(0x257)]:_0x246aaf[_0x32f84c(0x223)]),!_0x28cb22&&(_0x47e76f[_0x32f84c(0x1ed)]=![]);}else{const _0x2edd2d=await this[_0x32f84c(0x30c)]();if(_0x2edd2d){if(_0x246aaf[_0x32f84c(0x1da)](_0x246aaf[_0x32f84c(0x227)],_0x246aaf[_0x32f84c(0x2d0)]))logger[_0x32f84c(0x288)](_0x246aaf[_0x32f84c(0x204)],_0x1c2f70['stack']),await this['deleteCluster']();else{_0x5a9aad[_0x32f84c(0x288)](_0x246aaf[_0x32f84c(0x1d3)]);throw _0x6d286b;}}else _0x246aaf[_0x32f84c(0x222)](_0x246aaf[_0x32f84c(0x26d)],_0x246aaf[_0x32f84c(0x26d)])?_0x271e82[_0x32f84c(0x1d4)](_0x35889c):logger[_0x32f84c(0x288)](_0x246aaf[_0x32f84c(0x34e)]);throw _0x1c2f70;}}}async['setupHubHa'](_0x5c2a3d,_0x3e4cdf,_0x53d6ed,_0x92ae52,_0x572f85){}async[a3_0x386bef(0x27b)](){const _0x25c718=a3_0x386bef;cp['execSync'](_0x25c718(0x357)+this[_0x25c718(0x1e9)]+_0x25c718(0x279)+global_registry[_0x25c718(0x1dc)]+_0x25c718(0x1e4));}async[a3_0x386bef(0x26f)](_0x50ebfc,_0x5b5713){const _0x91d6c3=a3_0x386bef,_0x248f8d={'rANUy':function(_0x5727db,_0x3cb954){return _0x5727db===_0x3cb954;},'QEtBY':function(_0x435633,_0x860cf0){return _0x435633===_0x860cf0;},'sBwwv':'qZkJB','Eqjgg':function(_0x498955,_0x51a1f4){return _0x498955(_0x51a1f4);},'KHdyL':function(_0x3b45c7,_0x5326e4){return _0x3b45c7(_0x5326e4);},'czqJk':_0x91d6c3(0x1cf),'wwmJj':function(_0x119e87,_0x5eb59a){return _0x119e87===_0x5eb59a;},'upxxD':'DONE','FBJwz':_0x91d6c3(0x1fd),'qpSyE':_0x91d6c3(0x2c4),'ajYrx':_0x91d6c3(0x342),'rNHZy':function(_0x18eb2d,_0xf2a2b0){return _0x18eb2d!==_0xf2a2b0;},'pwWav':'qhDBw','sCHFu':_0x91d6c3(0x306)};try{if(_0x248f8d[_0x91d6c3(0x343)](_0x248f8d[_0x91d6c3(0x20e)],_0x248f8d[_0x91d6c3(0x20e)])){await _0x248f8d[_0x91d6c3(0x347)](deleteAgent,_0x50ebfc),await _0x248f8d[_0x91d6c3(0x333)](deleteRoutingDeps,_0x50ebfc),logger['info'](_0x91d6c3(0x29d)+this['clusterName']);const _0x5a234e=await this[_0x91d6c3(0x1cd)][_0x91d6c3(0x26f)]({'name':'projects/'+this['projectId']+_0x91d6c3(0x23a)+global_registry[_0x91d6c3(0x1dc)]+_0x91d6c3(0x1c4)+this['clusterName']});if(_0x248f8d['QEtBY'](_0x5a234e[0x0]?.[_0x91d6c3(0x1ed)],_0x248f8d[_0x91d6c3(0x321)])||_0x248f8d[_0x91d6c3(0x1f0)](_0x5a234e[0x0]?.['status'],_0x248f8d[_0x91d6c3(0x35e)])){if(_0x248f8d['rANUy'](_0x248f8d[_0x91d6c3(0x2cd)],_0x248f8d[_0x91d6c3(0x2b4)])){const _0x8c7f17='https://www.googleapis.com/compute/v1/projects/'+this[_0x91d6c3(0x2f5)]+_0x91d6c3(0x27e)+_0x61b779[_0x91d6c3(0x1dc)]+_0x91d6c3(0x2b6)+_0x414a2f[0x0];if(_0x248f8d[_0x91d6c3(0x1c9)](_0x8c7f17,_0x4d5136))return[!![],_0x57c90f];}else return!![];}logger[_0x91d6c3(0x288)](_0x248f8d[_0x91d6c3(0x286)]);}else _0x4b0f3a[_0x91d6c3(0x1d2)](_0x3d945d);}catch(_0x1975a8){if(_0x248f8d[_0x91d6c3(0x285)](_0x248f8d[_0x91d6c3(0x277)],_0x248f8d[_0x91d6c3(0x277)]))_0x4e6c4d['push'](_0x4c347f);else{logger[_0x91d6c3(0x288)](_0x248f8d[_0x91d6c3(0x34c)]);throw _0x1975a8;}}}async['isVPCPresent'](_0x4e48b1){const _0x1ac9f8=a3_0x386bef,_0x2be063={};_0x2be063[_0x1ac9f8(0x2ae)]=_0x1ac9f8(0x25e),_0x2be063[_0x1ac9f8(0x219)]=function(_0x515600,_0x11a8db){return _0x515600===_0x11a8db;},_0x2be063[_0x1ac9f8(0x22e)]=function(_0x48343f,_0x7bd19f){return _0x48343f!==_0x7bd19f;},_0x2be063[_0x1ac9f8(0x29a)]='sEYuP',_0x2be063['WHplG']=_0x1ac9f8(0x1d8),_0x2be063['hTPio']=function(_0xc04143,_0x6e3ba9){return _0xc04143>_0x6e3ba9;},_0x2be063[_0x1ac9f8(0x1d0)]=function(_0x3f563c,_0xf89792){return _0x3f563c===_0xf89792;},_0x2be063[_0x1ac9f8(0x2ee)]=function(_0x39abbf,_0xc04d85){return _0x39abbf===_0xc04d85;},_0x2be063[_0x1ac9f8(0x266)]=_0x1ac9f8(0x355),_0x2be063[_0x1ac9f8(0x2e5)]='ODDri';const _0x6dba2c=_0x2be063;try{if(_0x6dba2c[_0x1ac9f8(0x22e)](_0x6dba2c[_0x1ac9f8(0x29a)],_0x6dba2c[_0x1ac9f8(0x217)])){const _0x5f3ec7=await this[_0x1ac9f8(0x269)][_0x1ac9f8(0x201)]({'project':this['projectId'],'network':_0x4e48b1});if(_0x6dba2c[_0x1ac9f8(0x242)](_0x5f3ec7[_0x1ac9f8(0x1cc)],0x0)&&_0x6dba2c['ArnHo'](_0x5f3ec7[0x0][_0x1ac9f8(0x21f)],_0x4e48b1)){if(_0x6dba2c['exhdT'](_0x6dba2c[_0x1ac9f8(0x266)],_0x6dba2c[_0x1ac9f8(0x266)]))return!![];else _0x4d539e=[_0x6dba2c[_0x1ac9f8(0x2ae)]];}}else{if(_0x6dba2c[_0x1ac9f8(0x219)](_0x4c8b4f?.[_0x1ac9f8(0x21f)],_0x1ac9f8(0x23d)+this['projectId']+_0x1ac9f8(0x271)+this[_0x1ac9f8(0x247)]+'@'+this['projectId']+_0x1ac9f8(0x252)))return!![];}}catch(_0x2e0605){if(_0x6dba2c[_0x1ac9f8(0x1d0)](_0x6dba2c[_0x1ac9f8(0x2e5)],_0x6dba2c[_0x1ac9f8(0x2e5)]))return![];else _0xe00a3f['error'](_0x1ac9f8(0x244)+_0x4b2dcb+_0x1ac9f8(0x301)+_0x34ded1[_0x1ac9f8(0x25c)]),_0x26b31d[_0x1ac9f8(0x2db)]='Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20'+_0x33d507,_0x3738e8['error']=_0x68cd9f;}return![];}async[a3_0x386bef(0x2d4)](_0x5d72e6,_0x4e4fc5){const _0xf96499=a3_0x386bef,_0x25c513={};_0x25c513[_0xf96499(0x282)]=_0xf96499(0x365),_0x25c513[_0xf96499(0x23c)]=function(_0x355811,_0xf2b4a){return _0x355811!==_0xf2b4a;},_0x25c513[_0xf96499(0x2f3)]='Cluster\x20creation\x20failed',_0x25c513['THctf']=function(_0x18b436,_0x4d4232){return _0x18b436===_0x4d4232;},_0x25c513[_0xf96499(0x1ca)]=_0xf96499(0x245),_0x25c513[_0xf96499(0x1fb)]='VyXrk',_0x25c513[_0xf96499(0x31e)]=_0xf96499(0x203),_0x25c513[_0xf96499(0x2c7)]=function(_0x4c9c12,_0x2e59e3){return _0x4c9c12!==_0x2e59e3;},_0x25c513[_0xf96499(0x27a)]=_0xf96499(0x1c7),_0x25c513[_0xf96499(0x2cf)]=_0xf96499(0x315),_0x25c513[_0xf96499(0x2f6)]=function(_0x4efd88,_0x5c1c1e){return _0x4efd88!==_0x5c1c1e;},_0x25c513[_0xf96499(0x232)]=_0xf96499(0x2e2),_0x25c513[_0xf96499(0x290)]='Hqfoo';const _0x2f5ffe=_0x25c513;try{if(_0x2f5ffe['THctf'](_0x2f5ffe['SnXgh'],_0x2f5ffe[_0xf96499(0x1ca)])){const _0x519120=await this[_0xf96499(0x269)][_0xf96499(0x201)]({'project':this[_0xf96499(0x2f5)],'network':_0x4e4fc5});for(const _0xbc0cf4 of _0x519120[0x0][_0xf96499(0x2b5)]){if(_0x2f5ffe['xbZea'](_0x2f5ffe['PZKiG'],_0x2f5ffe[_0xf96499(0x31e)])){const _0x327274='https://www.googleapis.com/compute/v1/projects/'+this[_0xf96499(0x2f5)]+_0xf96499(0x27e)+global_registry['clusterRegion']+_0xf96499(0x2b6)+_0x5d72e6[0x0];if(_0x2f5ffe[_0xf96499(0x349)](_0x327274,_0xbc0cf4)){if(_0x2f5ffe[_0xf96499(0x2c7)](_0x2f5ffe['fLoxg'],_0x2f5ffe[_0xf96499(0x2cf)]))return[!![],_0x5d72e6];else{_0x5ce5c9[_0xf96499(0x288)](_0x2f5ffe['HcIIU']);return;}}}else return _0x2f5ffe[_0xf96499(0x23c)](_0x12bea1[_0xf96499(0x1dc)],_0x4b1aeb[0x0])&&(_0x95bc3f[_0xf96499(0x1dc)]=_0x344bb8[0x0],this[_0xf96499(0x267)]()),!![];}}else return _0x2369fd[_0xf96499(0x24d)](_0xf96499(0x1e0)+_0x4c5852+_0xf96499(0x319)+_0x5401a2),[![],[]];}catch(_0x5c6c34){if(_0x2f5ffe[_0xf96499(0x2f6)](_0x2f5ffe[_0xf96499(0x232)],_0x2f5ffe[_0xf96499(0x290)]))return logger[_0xf96499(0x24d)](_0xf96499(0x1e0)+_0x5d72e6+'.\x20Error:\x20'+_0x5c6c34),[![],[]];else _0x500583[_0xf96499(0x288)](_0x2f5ffe['KJRWj']);}return[![],[]];}async['sendGCPInfoToHST'](){const _0x1ddc29=a3_0x386bef,_0x2467cd={};_0x2467cd['gerNV']=function(_0x564ed1,_0x3b064b){return _0x564ed1-_0x3b064b;},_0x2467cd[_0x1ddc29(0x273)]=function(_0x4561db,_0x35e58d){return _0x4561db!==_0x35e58d;},_0x2467cd[_0x1ddc29(0x327)]=_0x1ddc29(0x239),_0x2467cd[_0x1ddc29(0x20c)]=_0x1ddc29(0x254);const _0x3ed86e=_0x2467cd,_0x21728d=await this[_0x1ddc29(0x269)][_0x1ddc29(0x207)]({'project':this[_0x1ddc29(0x2f5)]}),_0x252533={};_0x252533[_0x1ddc29(0x26c)]=global_registry[_0x1ddc29(0x225)],_0x252533['accessKey']=global_registry[_0x1ddc29(0x2d2)],_0x252533[_0x1ddc29(0x341)]=GCP,_0x252533[_0x1ddc29(0x2d5)]=[];const _0x24480f=_0x252533;for(const _0x29dbaf of _0x21728d){_0x3ed86e['qhxFh'](_0x3ed86e[_0x1ddc29(0x327)],_0x3ed86e[_0x1ddc29(0x20c)])?_0x24480f[_0x1ddc29(0x2d5)]['push'](_0x29dbaf):(_0x409ae6[_0x1ddc29(0x1dc)]=_0xa8e06a[_0x3ed86e[_0x1ddc29(0x256)](_0x263bf3,0x1)],this[_0x1ddc29(0x267)]());}const _0xa522d3={};_0xa522d3[_0x1ddc29(0x29c)]=WS_EVENTS['RESOURCES'],_0xa522d3[_0x1ddc29(0x362)]=_0x24480f,this[_0x1ddc29(0x1db)][_0x1ddc29(0x26e)](this[_0x1ddc29(0x2fa)],_0xa522d3);}async['updateClusterRegion'](){const _0x18ce60=a3_0x386bef,_0x582aaa={'Pnycs':function(_0x424d16,_0x5a2308,_0x5ab61b){return _0x424d16(_0x5a2308,_0x5ab61b);},'VTgFD':_0x18ce60(0x265),'EgfiN':'json','FfLPP':function(_0x3cf993,_0x39bc22,_0x33b1fb){return _0x3cf993(_0x39bc22,_0x33b1fb);}},_0x1b3389=_0x18ce60(0x322)+AG_API_URL+'/packages/cli/update-cluster-region',_0x475be6={};_0x475be6[_0x18ce60(0x220)]=global_registry[_0x18ce60(0x2b3)];const _0x38de89={};_0x38de89[_0x18ce60(0x2df)]=global_registry[_0x18ce60(0x1dc)];const _0x2daa5c={'searchParams':_0x475be6,'json':_0x38de89,'headers':_0x582aaa[_0x18ce60(0x2d9)](getAuthHeader,global_registry[_0x18ce60(0x225)],global_registry[_0x18ce60(0x2d2)]),'method':_0x582aaa[_0x18ce60(0x2a2)],'responseType':_0x582aaa['EgfiN'],'throwHttpErrors':![]},_0x5525a3=await _0x582aaa[_0x18ce60(0x1e8)](got,_0x1b3389,_0x2daa5c);}async[a3_0x386bef(0x1de)](){const _0x436592=a3_0x386bef,_0xfed685={'XIUsG':function(_0x1cac92,_0x46af04){return _0x1cac92(_0x46af04);},'YGTDt':_0x436592(0x30d),'LZSoh':_0x436592(0x340),'MpAnu':_0x436592(0x218)},_0x23fa82={};_0x23fa82[_0x436592(0x1ed)]=![],_0x23fa82['error']=null,_0x23fa82[_0x436592(0x2db)]='';const _0x24aafd=_0x23fa82;try{const _0x5a4618=await _0xfed685[_0x436592(0x31b)](runCommand,_0xfed685[_0x436592(0x320)]);_0x5a4618[_0x436592(0x210)](_0xfed685['LZSoh'])?logger[_0x436592(0x1d2)](_0x5a4618):logger[_0x436592(0x1d4)](_0x5a4618),_0x24aafd[_0x436592(0x1ed)]=!![],_0x24aafd[_0x436592(0x2db)]=_0xfed685[_0x436592(0x303)];}catch(_0x3a431f){logger['error'](_0x436592(0x244)+_0x3a431f+'\x20:\x20'+_0x3a431f[_0x436592(0x25c)]),_0x24aafd['data']=_0x436592(0x334)+_0x3a431f,_0x24aafd['error']=_0x3a431f;}return _0x24aafd;}async[a3_0x386bef(0x2dc)](){const _0xc8ec49=a3_0x386bef,_0xb5b646={};_0xb5b646['pzxzn']='allowed',_0xb5b646[_0xc8ec49(0x1d1)]=_0xc8ec49(0x228);const _0x1992a6=_0xb5b646,_0x71d45f={};_0x71d45f[_0xc8ec49(0x1ed)]=![],_0x71d45f[_0xc8ec49(0x24d)]=null,_0x71d45f[_0xc8ec49(0x2db)]='';const _0x7f102f=_0x71d45f;try{let _0x61763a='';const _0x2ddef2='projects/'+this[_0xc8ec49(0x2f5)],[_0x134a0e]=await this['resourcemanagerClient'][_0xc8ec49(0x328)]({'resource':_0x2ddef2,'permissions':Object[_0xc8ec49(0x2e0)](PERMISSIONS)});_0x7f102f[_0xc8ec49(0x1ed)]=!![],logger[_0xc8ec49(0x1d4)](_0xc8ec49(0x364)+_0x2ddef2+':\x20'+JSON['stringify'](_0x134a0e)),Object[_0xc8ec49(0x2d8)](PERMISSIONS)['forEach'](([_0x4fdb9b,_0xbf068c])=>{const _0xc2992a=_0xc8ec49,_0x530660=_0x134a0e['permissions'][_0xc2992a(0x1f3)](_0x4fdb9b);_0x61763a+='\x0a\x09'+_0xbf068c+_0xc2992a(0x301)+(_0x530660?_0x1992a6['pzxzn']:_0x1992a6[_0xc2992a(0x1d1)]),!_0x530660&&(_0x7f102f['status']=![]);}),_0x7f102f['data']=_0x61763a;}catch(_0x18e398){_0x7f102f[_0xc8ec49(0x24d)]=_0x18e398;}return _0x7f102f;}}function a3_0x384b(_0x52eb25,_0x319d3f){const _0x54f078=a3_0x54f0();return a3_0x384b=function(_0x384b00,_0x411408){_0x384b00=_0x384b00-0x1c2;let _0x34aaae=_0x54f078[_0x384b00];return _0x34aaae;},a3_0x384b(_0x52eb25,_0x319d3f);}const a3_0x443f4b={};a3_0x443f4b[a3_0x386bef(0x2aa)]=GoogleCloudProvider,module[a3_0x386bef(0x32d)]=a3_0x443f4b;function a3_0x54f0(){const _0x5d769c=['minNodes','/clusters/','WxOby','setupServiceAccount','WlpMk','ingress','rANUy','SnXgh','getGridHostname','length','containerClient','rQFWz','RUNNING','ArnHo','YtaVY','warn','fqaVw','debug','277043hPivTW','EHRvN','join','jGFPX','gkecluster.json','OZbSe','webSocketUtils','clusterRegion','accountId','isCliToolInstalled','KubeConfigTemplate.yaml','Cannot\x20find\x20subnets\x20','155wHdvNY','BeIzI','130098SFFEfN','\x20--quiet\x20--user-output-enabled=false','ExJdd','templates','ZgWva','FfLPP','clusterName','../permissions/GCP.json','cloudProviderName','351544dGfGcP','status','iamClient','cnskI','wwmJj','tunBF','hCHjp','includes','GlzDl','push','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','scopes','writeFileSync','XPMsl','organizations','PZKiG','gwXGl','ZTDSQ','UiafO','accounts','gcpresources','get','2756151FFAAqV','qeDyL','DsdvR','storage.multipartUploads.list','SxMSw','list','util','storage.buckets.list','rAnnn','klTae','plWtK','MiWfn','sBwwv','init','startsWith','bPrCX','requestBody','storage.objects.delete','serviceAccount:','fgVLg','maxNodeCount','WHplG','cli\x20tool\x20is\x20installed','tMSVi','DhIff','regionmap.json','nodePools','XPGvd','qKgFy','name','profileId','machineType','ZhZpf','zLuCa','BOetd','bstackUsername','gcloud\x20auth\x20login\x20--cred-file=','ujNYp','denied','gcp_credentials.json','kjffH','log','parent','Cluster\x20creation\x20failed','pNuJA','pRFqT','kZCIe','mCihr','jhgKD','role','serviceAccount','exit','qUtgA','autoUpgrade','TQpzS','pheXh','/locations/','auth','xbZea','projects/','IjGdY','getClient','lUhrU','releaseChannel','hTPio','zFKDH','error\x20:\x20','FgnDl','storage.buckets.listEffectiveTags','serviceAccountName','ytNlx','minNodeCount','hPHWv','MfPzr','aMWwx','error','got','ycLeq','utf-8','parse','.iam.gserviceaccount.com','serviceAccounts','ibKdq','allowed','gerNV','DFSEl','rqmIg','svUlC','GoVSn','Turboscale\x20Custom\x20Role','stack','xQIsk','default','setCachedCredsInRegistry','storage.multipartUploads.listParts','FnOMy','TwAfj','bobdh','564NSFfEK','PUT','frfhy','updateClusterRegion','RDeuZ','networkClient','storage.objects.setIamPolicy','FCOPA','username','MscVP','sendEventToBackend','deleteCluster','storage.objects.create','/serviceAccounts/','GeZfs','qhxFh','project_id','OtqkQ','Zdmiz','pwWav','wlGGz','\x20--windows-os-version=ltsc2022\x20--region\x20','fLoxg','updateWindowsNodeGroup','mayaJ','getIamPolicy','/regions/','concat','tLrPf','lMCjg','HcIIU','DFtMe','mkIol','rNHZy','ajYrx','107135AZkEIA','info','RcWmz','keyFile','oPWfm','uhvKI','storage.multipartUploads.abort','YhDUR','ZmNmY','aRWcU','eCqYg','UUojl','Atdsd','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','Creating\x20service\x20account','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','pUbYI','GXoFA','GCvKD','wCNkX','BjjyY','type','Deleting\x20the\x20cluster\x20','masterAuth','tetOq','WQsdW','createCluster','VTgFD','listClusters','subnetwork','roQmm','FnArK','roles','REGULAR','ijNVV','GoogleCloudProvider','NfNDW','network','aJboA','dOoPH','customRoleName','LOG','title','xBJsT','gridProfileId','qpSyE','subnetworks','/subnetworks/','QRYGZ','resourceLabels','OjunL','browserstack','koanY','PcTjM','getUserInput','ERinD','WHWxY','jUTEx','uLRli','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','PCpyV','tQscw','storage.objects.getIamPolicy','cPQnB','WuCvq','management','AFTxT','iam.serviceAccounts.signBlob','../utils/utilityMethods','2NUHxTA','FBJwz','56deFyFe','kjdtU','kiIMi','afoum','bstackAccesskey','VjUjf','isSubnetsValid','vpcInfo','TRCRB','readFileAsync','entries','Pnycs','storage.objects.list','data','checkAccess','iam','mVqAi','newRegion','keys','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','BrVwI','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','members','EJPFu','storage.buckets.setIamPolicy','clusterAutoUpgrade','create','33ZxNzUE','PXirX','TqdzC','757237orXLom','JCxeJ','exhdT','sendResourceDataToHST','TBfvs','Found\x20cluster\x20with\x20name\x20\x27','credentialsPath','KJRWj','checkServiceAccount','projectId','SsSgB','../utils/userInput','CRKsL','execSync','rws','ClusterManagerClient','bqBAM','fyxsE','LfDGw','UoqHf','peZtM','\x20:\x20','ztJuc','MpAnu','storage.buckets.deleteTagBinding','VYtwa','GKE\x20Cluster\x20deletion\x20failed','replace','https://www.googleapis.com/auth/cloud-platform','sendGCPInfoToHST','lefso','RcApF','isClusterPresent','gcloud\x20--version','maxNodes','zrkAe','njtUU','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','yFxqq','autoscaling','projects','aZjhg','KlasT','split','aRWRB','.\x20Error:\x20','locations','XIUsG','mQOjn','../config/constants','teXEK','storage.objects.get','YGTDt','czqJk','https://','vhuYn','path','loadBalancer','27SBuAxP','jHoZV','testIamPermissions','turboscale-service-account','getClusterInfo','unCYf','ITDRT','exports','DFVvu','kCIPf','lvDpe','storage.multipartUploads.create','setupNewCluster','KHdyL','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','managedby','fNsXP','RUaoU','QlGRF','@google-cloud/container','2915430tpCeax','wgosw','WaTOA','instanceType','kuVcT','googleapis','Intercepted','cloudProvider','Cluster\x20deletion\x20completed','QEtBY','boEuI','XoppU','/global/networks/','Eqjgg','../utils/gridComponents','THctf','bindings','endpoint','sCHFu','config','EbUrj','child_process','TtcCz','cfEAA','wFIlT','getKubeConfigData','channel','OIWFT','yXAFW','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','resourcemanagerClient','bfUOV','./CloudProvider','gPmVc','detpH','oQDqE','upxxD','ZioCM','LrghN','storage.buckets.getIamPolicy','message','GWISP','permissions\x20check\x20response\x20for\x20','Service\x20account\x20already\x20exists,\x20skipping','clusterCaCertificate','wLCfD','cOiLw','storage.buckets.create','aGSLN','pFXzW'];a3_0x54f0=function(){return _0x5d769c;};return a3_0x54f0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a4_0x49b6fc=a4_0x2b20;function a4_0x2b20(_0x260343,_0x3e62ef){const _0x324c78=a4_0x324c();return a4_0x2b20=function(_0x2b20e0,_0x46152a){_0x2b20e0=_0x2b20e0-0xd8;let _0x44df77=_0x324c78[_0x2b20e0];return _0x44df77;},a4_0x2b20(_0x260343,_0x3e62ef);}function a4_0x324c(){const _0x2255e0=['qNuws','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','2526600NUhgsc','versions','825937RnIpbq','./Azure','exit','error','3GEYIdD','message','grid-spawning-failed','init','1244928epEubz','getCloudProviderObject','560036sAIvVN','778730wouDwK','./GoogleCloudProvider','stack','320176eyXAaH','../utils/instrumentationUtils',',\x20stacktrace:\x20','rDlxS','rfDIf','tbOPw','AZyhF','ERROR','node','SSeLt','getCloudProviderObjectWithOutInit','Unknown\x20cloud\x20provider\x20found\x20-\x20','1383565LgqgZt','hINdI','../config/constants','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','Current\x20Node.js\x20version\x20','./AWS'];a4_0x324c=function(){return _0x2255e0;};return a4_0x324c();}(function(_0x89a24d,_0x2c413b){const _0xccefbd=a4_0x2b20,_0x373304=_0x89a24d();while(!![]){try{const _0x37b392=parseInt(_0xccefbd(0xdf))/0x1+parseInt(_0xccefbd(0xdc))/0x2+-parseInt(_0xccefbd(0xf9))/0x3*(parseInt(_0xccefbd(0xdb))/0x4)+parseInt(_0xccefbd(0xeb))/0x5+-parseInt(_0xccefbd(0xd9))/0x6+-parseInt(_0xccefbd(0xf5))/0x7+-parseInt(_0xccefbd(0xf3))/0x8;if(_0x37b392===_0x2c413b)break;else _0x373304['push'](_0x373304['shift']());}catch(_0x1228e5){_0x373304['push'](_0x373304['shift']());}}}(a4_0x324c,0x3208d));const {AWSCloudProvider}=require(a4_0x49b6fc(0xf0)),{GoogleCloudProvider}=require(a4_0x49b6fc(0xdd)),{installAzurePackages,IsNodeCompatibleWithAzure}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require(a4_0x49b6fc(0xed)),{sendInstrumentationEvent}=require(a4_0x49b6fc(0xe0)),{logger}=require('../config/logger');exports[a4_0x49b6fc(0xda)]=async(_0xa1e231,_0xf9cbed,_0x36a2e6,_0x338a86,_0x55c687,_0x16f623)=>{const _0x4a58ab=a4_0x49b6fc,_0x1a786e={'SSeLt':function(_0x659158){return _0x659158();},'tbOPw':function(_0x1d82b4,_0x53573f){return _0x1d82b4(_0x53573f);},'laaUo':_0x4a58ab(0xf6),'rDlxS':function(_0x5cc00d,_0x146016,_0x537825,_0x612b4b,_0x535cdd,_0x2e23fe,_0x2b197d){return _0x5cc00d(_0x146016,_0x537825,_0x612b4b,_0x535cdd,_0x2e23fe,_0x2b197d);},'qNuws':'create-grid-called','AZyhF':_0x4a58ab(0xfb)};switch(_0xa1e231){case AWS:{const _0x12bf57=new AWSCloudProvider(_0xf9cbed,_0x36a2e6,_0x338a86,_0x55c687);return await _0x12bf57[_0x4a58ab(0xd8)]();}case GCP:{const _0x345591=new GoogleCloudProvider(_0xf9cbed,_0x36a2e6,_0x338a86,_0x55c687);return await _0x345591[_0x4a58ab(0xd8)]();}case AZURE:{try{await _0x1a786e[_0x4a58ab(0xe8)](installAzurePackages);const {AzureCloudProvider:_0x2b3c54}=_0x1a786e[_0x4a58ab(0xe4)](require,_0x1a786e['laaUo']),_0x5d7161=new _0x2b3c54(_0xf9cbed,_0x36a2e6,_0x338a86,_0x55c687);return await _0x5d7161[_0x4a58ab(0xd8)]();}catch(_0x53fc8d){const _0x42022a=_0x4a58ab(0xef)+process['versions'][_0x4a58ab(0xe7)]+_0x4a58ab(0xf2)+_0x53fc8d[_0x4a58ab(0xfa)]+_0x4a58ab(0xe1)+_0x53fc8d[_0x4a58ab(0xde)];logger[_0x4a58ab(0xf8)](_0x42022a);const _0x158705={};_0x158705[_0x4a58ab(0xf8)]=_0x42022a,await _0x1a786e[_0x4a58ab(0xe2)](sendInstrumentationEvent,_0x16f623,_0x1a786e[_0x4a58ab(0xf1)],messageTypes[_0x4a58ab(0xe6)],_0x1a786e[_0x4a58ab(0xe5)],_0x158705,_0x16f623),process[_0x4a58ab(0xf7)](0x1);}}default:logger[_0x4a58ab(0xf8)](_0x4a58ab(0xea)+_0xa1e231),process[_0x4a58ab(0xf7)](0x1);}},exports[a4_0x49b6fc(0xe9)]=async(_0x2e88e4,_0x1fd58e,_0x48b049,_0x103f23,_0x55cfff,_0x4a3d2d)=>{const _0x2c4ff0=a4_0x49b6fc,_0x567202={'hINdI':function(_0xd9d648){return _0xd9d648();},'rfDIf':function(_0x5edb03,_0x5190ee){return _0x5edb03(_0x5190ee);},'Sjoet':_0x2c4ff0(0xf6)};switch(_0x2e88e4){case AWS:return new AWSCloudProvider(_0x1fd58e,_0x48b049,_0x103f23,_0x55cfff);case GCP:return new GoogleCloudProvider(_0x1fd58e,_0x48b049,_0x103f23,_0x55cfff);case AZURE:{!_0x567202[_0x2c4ff0(0xec)](IsNodeCompatibleWithAzure)&&(logger[_0x2c4ff0(0xf8)](_0x2c4ff0(0xef)+process[_0x2c4ff0(0xf4)]['node']+_0x2c4ff0(0xee)),process['exit'](0x1));await _0x567202[_0x2c4ff0(0xec)](installAzurePackages);const {AzureCloudProvider:_0x457c86}=_0x567202[_0x2c4ff0(0xe3)](require,_0x567202['Sjoet']);return new _0x457c86(_0x1fd58e,_0x48b049,_0x103f23,_0x55cfff);}default:logger['error']('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x2e88e4),process[_0x2c4ff0(0xf7)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a5_0xe1b5(_0x52bf89,_0x210af9){const _0x2878fe=a5_0x2878();return a5_0xe1b5=function(_0xe1b50f,_0x1e6c1f){_0xe1b50f=_0xe1b50f-0xe2;let _0x3abb80=_0x2878fe[_0xe1b50f];return _0x3abb80;},a5_0xe1b5(_0x52bf89,_0x210af9);}function a5_0x2878(){const _0x5d3c56=['yOYfC','LdsSk','VfWEg','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','PUT','toLowerCase','qJSZG','json','core:','profileId','ERROR','688466nvXXTv','exit','../utils/instrumentationUtils','556465YpLpRW','help','usage','stringify','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','username','password','qdSMd','https://','JOENn','eLkqw','/packages/cli/configure','list','active','eYoyC','1062802doPFkO','Failed\x20to\x20configure\x20resources!\x20Error:\x20','gqKzL','KirCF','\x20\x20grid-profile:\x20','existsSync','JHOxl','KBzEz','5846421TWrSRr','parse','GET','../config/constants','../utils/utilityMethods','WJUyG','length','invalid-selection','strict','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','qMLQG','recommendCommands','statusCode','unknown-error','12HGCZiu','WpNcv','command','kgbvZ','20767256RxmAmM','\x20\x20username:\x20','OdwgK','7430440lCnjMr','log','handler','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RTJFN','server-error','Browserstack','3773686ZQfAyH','KoaLi','requestId','error','mtFUb','18qqBQVu','name','builder','stack','xabju','INFO','init-not-called','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','vDhcy','configure','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','sfzsQ','MxGAk','Uanqp','Updated\x20default\x20Grid\x20Profile\x20successfully','LxHlC','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fBeIA','../utils/userInput','rlZTv','bUlUZ'];a5_0x2878=function(){return _0x5d3c56;};return a5_0x2878();}const a5_0x521566=a5_0xe1b5;(function(_0x2a2f12,_0x408262){const _0x35e0ad=a5_0xe1b5,_0x952226=_0x2a2f12();while(!![]){try{const _0x3324a5=parseInt(_0x35e0ad(0x13d))/0x1+parseInt(_0x35e0ad(0x12b))/0x2+parseInt(_0x35e0ad(0xe9))/0x3+parseInt(_0x35e0ad(0xfe))/0x4+-parseInt(_0x35e0ad(0x12e))/0x5+parseInt(_0x35e0ad(0xf7))/0x6*(parseInt(_0x35e0ad(0x105))/0x7)+parseInt(_0x35e0ad(0xfb))/0x8*(-parseInt(_0x35e0ad(0x10a))/0x9);if(_0x3324a5===_0x408262)break;else _0x952226['push'](_0x952226['shift']());}catch(_0x51a033){_0x952226['push'](_0x952226['shift']());}}}(a5_0x2878,0xf157d));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x521566(0x11d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x521566(0xec)),{getCredentialsPath,getAuthHeader}=require(a5_0x521566(0xed)),{sendInstrumentationEvent}=require(a5_0x521566(0x12d));exports[a5_0x521566(0xf9)]=a5_0x521566(0x113),exports['desc']=a5_0x521566(0xf2),exports[a5_0x521566(0x10c)]=function(_0x47b34c){const _0x1d94e9=a5_0x521566,_0x468d1f={};_0x468d1f['qBguv']='help';const _0x5182d1=_0x468d1f;return _0x47b34c[_0x1d94e9(0x130)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1d94e9(0x12f)](_0x5182d1['qBguv'])[_0x1d94e9(0xf4)]()[_0x1d94e9(0xf1)]()['argv'];},exports[a5_0x521566(0x100)]=async function(_0x5dfa60){const _0x15d311=a5_0x521566,_0x132b65={'rlZTv':function(_0x17a5cb){return _0x17a5cb();},'CMvrw':_0x15d311(0x11b),'kgbvZ':function(_0x42b77f,_0x1b79d1,_0x149a64,_0x148564,_0x5328ff,_0x5c1045,_0x4499e6){return _0x42b77f(_0x1b79d1,_0x149a64,_0x148564,_0x5328ff,_0x5c1045,_0x4499e6);},'LdsSk':'configure-called','KBzEz':_0x15d311(0x110),'MPuqZ':_0x15d311(0xeb),'KirCF':function(_0x5a7cf6,_0x7cd4b1,_0x373690){return _0x5a7cf6(_0x7cd4b1,_0x373690);},'yOYfC':function(_0x477ec1,_0x15e259){return _0x477ec1!==_0x15e259;},'VfWEg':function(_0x55927a,_0x715cad){return _0x55927a!==_0x715cad;},'gqKzL':function(_0x1ce791,_0x153987){return _0x1ce791===_0x153987;},'tJUPj':_0x15d311(0x132),'JOENn':_0x15d311(0x128),'WJUyG':function(_0x33af5f,_0x42518a){return _0x33af5f(_0x42518a);},'MxGAk':_0x15d311(0x114),'LxHlC':function(_0x4df1cc,_0x4b2e74){return _0x4df1cc===_0x4b2e74;},'qMLQG':function(_0x5ca4a3,_0x329b5c){return _0x5ca4a3===_0x329b5c;},'Uanqp':function(_0x35bc42,_0x8921ff){return _0x35bc42===_0x8921ff;},'bUlUZ':_0x15d311(0x111),'xabju':'invalid-input','sfzsQ':_0x15d311(0x123),'OdwgK':function(_0x18c57d,_0x346804){return _0x18c57d<_0x346804;},'HKDvc':function(_0x4e6e4e,_0x2ce679){return _0x4e6e4e+_0x2ce679;},'uJigN':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','JHOxl':function(_0x35a759,_0x737327){return _0x35a759(_0x737327);},'qdSMd':function(_0x1cb5e0,_0x3ec1c7){return _0x1cb5e0<=_0x3ec1c7;},'CKMbW':function(_0x51f031,_0x55192a){return _0x51f031>_0x55192a;},'aziKw':_0x15d311(0xf0),'KoaLi':function(_0x513ba9,_0x20dc2a){return _0x513ba9-_0x20dc2a;},'WpNcv':_0x15d311(0x124),'GCKbc':_0x15d311(0x127),'fBeIA':function(_0xd484e7,_0xe0b929,_0x5f1545){return _0xd484e7(_0xe0b929,_0x5f1545);},'RTJFN':function(_0x426f4c,_0x235c4b){return _0x426f4c!==_0x235c4b;},'QtQGK':_0x15d311(0x118),'weyro':function(_0x3d9286,_0xcdeea6){return _0x3d9286===_0xcdeea6;},'xrTKH':_0x15d311(0x11a),'eYoyC':function(_0x48ba7f,_0x43b03e,_0x254d87,_0xf63b59,_0x454a4b,_0x556e66,_0x11ec41){return _0x48ba7f(_0x43b03e,_0x254d87,_0xf63b59,_0x454a4b,_0x556e66,_0x11ec41);},'mtFUb':'unauthorised','eLkqw':_0x15d311(0x103),'qJSZG':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PCIjP':function(_0x53f38d,_0x4fdb82,_0x11dbb4,_0x4d29cc,_0xc28abd,_0x12853f,_0x3e368f){return _0x53f38d(_0x4fdb82,_0x11dbb4,_0x4d29cc,_0xc28abd,_0x12853f,_0x3e368f);},'vDhcy':function(_0x2afd0d,_0x3bbfff,_0xac79cb,_0x59c293,_0x1c514a,_0x412f20,_0x19ff12){return _0x2afd0d(_0x3bbfff,_0xac79cb,_0x59c293,_0x1c514a,_0x412f20,_0x19ff12);},'AHxPz':_0x15d311(0xf6)};try{global_registry[_0x15d311(0x107)]=_0x132b65['rlZTv'](uuidv4);const _0x8474fb=_0x15d311(0x136)+AG_API_URL+_0x15d311(0x139);!fs[_0x15d311(0xe6)](_0x132b65[_0x15d311(0x11e)](getCredentialsPath))&&(console[_0x15d311(0x108)](_0x132b65['CMvrw']),await _0x132b65[_0x15d311(0xfa)](sendInstrumentationEvent,_0x5dfa60,_0x132b65[_0x15d311(0x121)],messageTypes[_0x15d311(0x12a)],_0x132b65[_0x15d311(0xe8)],null,_0x5dfa60),process[_0x15d311(0x12c)](0x1));await _0x132b65[_0x15d311(0xfa)](sendInstrumentationEvent,_0x5dfa60,_0x132b65[_0x15d311(0x121)],messageTypes[_0x15d311(0x10f)],null,null,_0x5dfa60);const _0x3f6ef8=JSON[_0x15d311(0xea)](fs['readFileSync'](_0x132b65['rlZTv'](getCredentialsPath))),_0x5a52a8={'method':_0x132b65['MPuqZ'],'headers':_0x132b65[_0x15d311(0xe4)](getAuthHeader,_0x3f6ef8['Browserstack']['username'],_0x3f6ef8[_0x15d311(0x104)][_0x15d311(0x134)]),'throwHttpErrors':![]},_0x5633ff=await _0x132b65[_0x15d311(0xe4)](got,_0x8474fb,_0x5a52a8);if(_0x132b65[_0x15d311(0x120)](_0x5633ff,null)&&_0x132b65[_0x15d311(0x122)](_0x5633ff,undefined)&&_0x132b65[_0x15d311(0xe3)](_0x5633ff['statusCode'],0xc8)){const _0x4be92c=JSON[_0x15d311(0xea)](_0x5633ff['body']);console[_0x15d311(0xff)](_0x132b65['tJUPj']),console[_0x15d311(0xff)](_0x132b65[_0x15d311(0x137)]),console['log'](_0x15d311(0xfc)+_0x3f6ef8[_0x15d311(0x104)]['username']),console[_0x15d311(0xff)](_0x15d311(0xe5)+_0x4be92c[_0x15d311(0x13b)][_0x15d311(0x10b)]);const _0x13f3e0=await _0x132b65[_0x15d311(0xee)](inputConfirmation,_0x132b65[_0x15d311(0x116)]);(_0x132b65[_0x15d311(0xe3)](_0x13f3e0,undefined)||_0x132b65[_0x15d311(0x119)](_0x13f3e0,null)||!(_0x132b65[_0x15d311(0xf3)](_0x13f3e0[_0x15d311(0x125)](),'y')||_0x132b65[_0x15d311(0x117)](_0x13f3e0[_0x15d311(0x125)](),'n')))&&(console['error'](_0x132b65[_0x15d311(0x11f)]),await _0x132b65['kgbvZ'](sendInstrumentationEvent,_0x5dfa60,_0x132b65[_0x15d311(0x121)],messageTypes[_0x15d311(0x12a)],_0x132b65[_0x15d311(0x10e)],null,_0x5dfa60),process[_0x15d311(0x12c)](0x1));_0x132b65[_0x15d311(0xf3)](_0x13f3e0['toLowerCase'](),'n')&&process['exit'](0x0);console[_0x15d311(0xff)](_0x132b65[_0x15d311(0x115)]);const _0x44ecb8=_0x4be92c[_0x15d311(0x13a)][_0x15d311(0xef)];for(let _0x1a5ceb=0x0;_0x132b65[_0x15d311(0xfd)](_0x1a5ceb,_0x44ecb8);_0x1a5ceb+=0x1){console[_0x15d311(0xff)]('['+_0x132b65['HKDvc'](_0x1a5ceb,0x1)+']\x20'+_0x4be92c[_0x15d311(0x13a)][_0x1a5ceb][_0x15d311(0x10b)]);}const _0x4fdda6=await _0x132b65[_0x15d311(0xee)](inputConfirmation,_0x132b65['uJigN']),_0xe08494=_0x132b65[_0x15d311(0xee)](Number,_0x4fdda6);(_0x132b65[_0x15d311(0xe7)](isNaN,_0xe08494)||_0x132b65[_0x15d311(0x135)](_0xe08494,0x0)||_0x132b65['CKMbW'](_0xe08494,_0x44ecb8))&&(console['error'](_0x132b65[_0x15d311(0x11f)]),await _0x132b65[_0x15d311(0xfa)](sendInstrumentationEvent,_0x5dfa60,_0x132b65[_0x15d311(0x121)],messageTypes['ERROR'],_0x132b65['aziKw'],null,_0x5dfa60),process['exit'](0x1));_0x132b65[_0x15d311(0x11e)](closeInput);const _0x3be79c=_0x4be92c[_0x15d311(0x13a)][_0x132b65[_0x15d311(0x106)](_0xe08494,0x1)]['id'],_0x240748={};_0x240748[_0x15d311(0x129)]=_0x3be79c;const _0x9450c5={'method':_0x132b65[_0x15d311(0xf8)],'headers':_0x132b65[_0x15d311(0xe4)](getAuthHeader,_0x3f6ef8[_0x15d311(0x104)][_0x15d311(0x133)],_0x3f6ef8[_0x15d311(0x104)][_0x15d311(0x134)]),'json':_0x240748,'responseType':_0x132b65['GCKbc'],'throwHttpErrors':![]},_0x545b67=await _0x132b65[_0x15d311(0x11c)](got,_0x8474fb,_0x9450c5);_0x132b65[_0x15d311(0x102)](_0x545b67,null)&&_0x132b65[_0x15d311(0x120)](_0x545b67,undefined)&&_0x132b65[_0x15d311(0x119)](_0x545b67[_0x15d311(0xf5)],0xc8)&&(console[_0x15d311(0xff)](_0x132b65['QtQGK']),process[_0x15d311(0x12c)](0x0)),_0x132b65['weyro'](_0x545b67['statusCode'],0x191)&&(console[_0x15d311(0x108)](_0x132b65['xrTKH']),await _0x132b65[_0x15d311(0x13c)](sendInstrumentationEvent,_0x5dfa60,_0x132b65[_0x15d311(0x121)],messageTypes[_0x15d311(0x12a)],_0x132b65[_0x15d311(0x109)],null,_0x5dfa60),process[_0x15d311(0x12c)](0x1)),console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x15d311(0x131)](_0x545b67)),await _0x132b65[_0x15d311(0xfa)](sendInstrumentationEvent,_0x5dfa60,_0x132b65['LdsSk'],messageTypes[_0x15d311(0x12a)],_0x132b65[_0x15d311(0x138)],_0x545b67,_0x5dfa60),process[_0x15d311(0x12c)](0x1);}_0x132b65[_0x15d311(0x117)](_0x5633ff[_0x15d311(0xf5)],0x191)&&(console[_0x15d311(0x108)](_0x132b65[_0x15d311(0x126)]),await _0x132b65['PCIjP'](sendInstrumentationEvent,_0x5dfa60,_0x132b65['LdsSk'],messageTypes[_0x15d311(0x12a)],_0x132b65[_0x15d311(0x109)],null,_0x5dfa60),process['exit'](0x1)),console[_0x15d311(0x108)](_0x15d311(0x101)+JSON[_0x15d311(0x131)](_0x5633ff)),await _0x132b65[_0x15d311(0x112)](sendInstrumentationEvent,_0x5dfa60,_0x132b65['LdsSk'],messageTypes['ERROR'],_0x132b65[_0x15d311(0x138)],_0x5633ff,_0x5dfa60),process[_0x15d311(0x12c)](0x1);}catch(_0x455b0e){console[_0x15d311(0x108)](_0x15d311(0xe2)+_0x455b0e[_0x15d311(0x10d)]),await _0x132b65[_0x15d311(0x112)](sendInstrumentationEvent,_0x5dfa60,_0x132b65[_0x15d311(0x121)],messageTypes[_0x15d311(0x12a)],_0x132b65['AHxPz'],_0x455b0e,_0x5dfa60),process['exit'](0x1);}};
|
|
1
|
+
const a5_0xdb8508=a5_0x2109;(function(_0x4e7ff9,_0x17b5d8){const _0x3235f8=a5_0x2109,_0x1a45eb=_0x4e7ff9();while(!![]){try{const _0x132d64=-parseInt(_0x3235f8(0x198))/0x1*(-parseInt(_0x3235f8(0x1ad))/0x2)+parseInt(_0x3235f8(0x1a1))/0x3+parseInt(_0x3235f8(0x162))/0x4*(-parseInt(_0x3235f8(0x175))/0x5)+parseInt(_0x3235f8(0x1af))/0x6*(-parseInt(_0x3235f8(0x1a5))/0x7)+-parseInt(_0x3235f8(0x180))/0x8+parseInt(_0x3235f8(0x190))/0x9+parseInt(_0x3235f8(0x169))/0xa*(parseInt(_0x3235f8(0x1aa))/0xb);if(_0x132d64===_0x17b5d8)break;else _0x1a45eb['push'](_0x1a45eb['shift']());}catch(_0x3766a3){_0x1a45eb['push'](_0x1a45eb['shift']());}}}(a5_0x5ce5,0xcac91));function a5_0x5ce5(){const _0xd45474=['Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','OvKmu','strict','readFileSync','3220815wkbzAt','luzob','profileId','stringify','351211hubmGi','length','server-error','MuWUZ','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','671MlNNEM','FnKQd','FcLRT','63550VmKwcz','username','6ibcvrS','usage','error','PUT','MFgab','builder','../utils/instrumentationUtils','exit','PCtEW','\x20\x20username:\x20','recommendCommands','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','lacvN','active','invalid-selection','196nStcts','../config/constants','help','name','/packages/cli/configure','CobzX','sHwut','225100ENuoHp','KDehu','fVTKN','toLowerCase','mAFjO','json','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','xWaom','fNVoY','Vlnuf','PiVBI','command','129970zRtpty','xAHgp','bxnni','hyPzK','configure','GET','argv','uuid','configure-called','log','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','7025824jJSqyM','wgcLn','../utils/userInput','epilogue','desc','ERROR','viTBE','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','statusCode','fCdfi','Browserstack','IkumN','list','yYPnC','YGPqq','unauthorised','984384VnYhBt','rkBtt','CgBrw','https://','VNhYE','tKOlp','password','WobOC','15GMywtJ','zCjLz','parse','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Updated\x20default\x20Grid\x20Profile\x20successfully'];a5_0x5ce5=function(){return _0xd45474;};return a5_0x5ce5();}function a5_0x2109(_0xbc62ac,_0x2b51e5){const _0x5ce5ca=a5_0x5ce5();return a5_0x2109=function(_0x210962,_0x410c47){_0x210962=_0x210962-0x162;let _0x155061=_0x5ce5ca[_0x210962];return _0x155061;},a5_0x2109(_0xbc62ac,_0x2b51e5);}const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a5_0xdb8508(0x17c)),{inputConfirmation,closeInput}=require(a5_0xdb8508(0x182)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0xdb8508(0x163)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0xdb8508(0x1b5));exports[a5_0xdb8508(0x174)]=a5_0xdb8508(0x179),exports[a5_0xdb8508(0x184)]=a5_0xdb8508(0x187),exports[a5_0xdb8508(0x1b4)]=function(_0x250ad6){const _0x436ca0=a5_0xdb8508,_0x501bdf={};_0x501bdf[_0x436ca0(0x173)]='help';const _0x2c02e0=_0x501bdf;return _0x250ad6[_0x436ca0(0x1b0)](HELP_HEADER_MESSAGE[_0x436ca0(0x179)])[_0x436ca0(0x183)](HELP_FOOTER_MESSAGE)[_0x436ca0(0x164)](_0x2c02e0['PiVBI'])[_0x436ca0(0x1b9)]()[_0x436ca0(0x19f)]()[_0x436ca0(0x17b)];},exports['handler']=async function(_0x2bcfd3){const _0x288e7d=a5_0xdb8508,_0x3b6919={'lacvN':function(_0x48487c){return _0x48487c();},'fCdfi':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','luzob':function(_0x39161e,_0xc659fe,_0x2878fd,_0x314c3d,_0x179250,_0x4e0f39,_0x372b69){return _0x39161e(_0xc659fe,_0x2878fd,_0x314c3d,_0x179250,_0x4e0f39,_0x372b69);},'FnKQd':_0x288e7d(0x17d),'YGPqq':'init-not-called','Vlnuf':function(_0x337d69,_0x8c87f7,_0x5ef23a,_0x16168a,_0x21eae8,_0xd3f506,_0x444b0d){return _0x337d69(_0x8c87f7,_0x5ef23a,_0x16168a,_0x21eae8,_0xd3f506,_0x444b0d);},'wWGfY':function(_0x41c61b){return _0x41c61b();},'hQTrJ':_0x288e7d(0x17a),'yYPnC':function(_0x317d5e,_0xaea91b,_0x185e7e){return _0x317d5e(_0xaea91b,_0x185e7e);},'MFgab':function(_0x356bea,_0x5e6798){return _0x356bea!==_0x5e6798;},'VNhYE':function(_0x17b9fe,_0x407fc7){return _0x17b9fe!==_0x407fc7;},'CobzX':function(_0x1ccaef,_0x3d6518){return _0x1ccaef===_0x3d6518;},'ZMcmS':_0x288e7d(0x1a9),'tKOlp':'core:','kxcPc':function(_0x546e6a,_0x192125){return _0x546e6a(_0x192125);},'mAFjO':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','IkumN':function(_0x3e6646,_0x146661){return _0x3e6646===_0x146661;},'viTBE':function(_0x23e72d,_0x3ec0c1){return _0x23e72d===_0x3ec0c1;},'xWaom':function(_0xb493cf,_0x116c27){return _0xb493cf===_0x116c27;},'xAHgp':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','qpFGC':'invalid-input','KDehu':_0x288e7d(0x16f),'bxnni':function(_0x63bbed,_0x1a99a0){return _0x63bbed<_0x1a99a0;},'WpmgS':function(_0x1cde8b,_0x31aef5){return _0x1cde8b+_0x31aef5;},'hyPzK':function(_0xc52a43,_0x121a10){return _0xc52a43(_0x121a10);},'fVTKN':_0x288e7d(0x17f),'qgwgb':function(_0xb513bf,_0xcdf8ba){return _0xb513bf(_0xcdf8ba);},'WobOC':function(_0x42aeaf,_0x5d88ee){return _0x42aeaf(_0x5d88ee);},'fNVoY':function(_0x5a5157,_0x8d7ee3){return _0x5a5157<=_0x8d7ee3;},'MuWUZ':function(_0x4b5c6d,_0xa5d912){return _0x4b5c6d>_0xa5d912;},'FcLRT':_0x288e7d(0x1bd),'gPTkD':function(_0x338fca,_0xeba09c){return _0x338fca-_0xeba09c;},'JhTeE':_0x288e7d(0x1b2),'BiJsu':_0x288e7d(0x16e),'rkBtt':function(_0x495a47,_0x5c6fc3,_0x963c72){return _0x495a47(_0x5c6fc3,_0x963c72);},'XDtRL':function(_0x1dcf79,_0x4b165d){return _0x1dcf79!==_0x4b165d;},'Uztfw':function(_0x339de8,_0x497db6){return _0x339de8!==_0x497db6;},'zCjLz':_0x288e7d(0x19c),'WpuND':function(_0xeb5aaf,_0x2d0cad){return _0xeb5aaf===_0x2d0cad;},'uqmcN':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','wgcLn':function(_0x5768c3,_0x3a263c,_0x4c159e,_0x4afdd1,_0x29348c,_0x3908b7,_0x2fafd7){return _0x5768c3(_0x3a263c,_0x4c159e,_0x4afdd1,_0x29348c,_0x3908b7,_0x2fafd7);},'CgBrw':_0x288e7d(0x18f),'OvKmu':function(_0x35b08d,_0x17edbe,_0x258388,_0x5d97a6,_0x33094b,_0x5b648a,_0x322140){return _0x35b08d(_0x17edbe,_0x258388,_0x5d97a6,_0x33094b,_0x5b648a,_0x322140);},'sHwut':_0x288e7d(0x1a7),'nEiTU':_0x288e7d(0x1ba),'PCtEW':function(_0x197dba,_0x3f07d4,_0x25806e,_0x4d5d35,_0x3a3b61,_0xeda3db,_0x115fac){return _0x197dba(_0x3f07d4,_0x25806e,_0x4d5d35,_0x3a3b61,_0xeda3db,_0x115fac);},'icMdb':'unknown-error'};try{global_registry['requestId']=_0x3b6919[_0x288e7d(0x1bb)](uuidv4);const _0xec5a9e=_0x288e7d(0x193)+AG_API_URL+_0x288e7d(0x166);!fs['existsSync'](_0x3b6919['lacvN'](getCredentialsPath))&&(console[_0x288e7d(0x1b1)](_0x3b6919[_0x288e7d(0x189)]),await _0x3b6919[_0x288e7d(0x1a2)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919[_0x288e7d(0x1ab)],messageTypes[_0x288e7d(0x185)],_0x3b6919[_0x288e7d(0x18e)],null,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1));await _0x3b6919['Vlnuf'](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919['FnKQd'],messageTypes['INFO'],null,null,_0x2bcfd3);const _0x10695d=JSON['parse'](fs[_0x288e7d(0x1a0)](_0x3b6919['wWGfY'](getCredentialsPath))),_0x422d38={'method':_0x3b6919['hQTrJ'],'headers':_0x3b6919[_0x288e7d(0x18d)](getAuthHeader,_0x10695d[_0x288e7d(0x18a)][_0x288e7d(0x1ae)],_0x10695d[_0x288e7d(0x18a)][_0x288e7d(0x196)]),'throwHttpErrors':![]},_0x10ab09=await _0x3b6919[_0x288e7d(0x18d)](got,_0xec5a9e,_0x422d38);if(_0x3b6919[_0x288e7d(0x1b3)](_0x10ab09,null)&&_0x3b6919[_0x288e7d(0x194)](_0x10ab09,undefined)&&_0x3b6919['CobzX'](_0x10ab09[_0x288e7d(0x188)],0xc8)){const _0x5dd859=JSON[_0x288e7d(0x19a)](_0x10ab09['body']);console['log'](_0x3b6919['ZMcmS']),console[_0x288e7d(0x17e)](_0x3b6919[_0x288e7d(0x195)]),console[_0x288e7d(0x17e)](_0x288e7d(0x1b8)+_0x10695d[_0x288e7d(0x18a)]['username']),console[_0x288e7d(0x17e)]('\x20\x20grid-profile:\x20'+_0x5dd859[_0x288e7d(0x1bc)][_0x288e7d(0x165)]);const _0x2b1543=await _0x3b6919['kxcPc'](inputConfirmation,_0x3b6919[_0x288e7d(0x16d)]);(_0x3b6919[_0x288e7d(0x18b)](_0x2b1543,undefined)||_0x3b6919[_0x288e7d(0x186)](_0x2b1543,null)||!(_0x3b6919['CobzX'](_0x2b1543[_0x288e7d(0x16c)](),'y')||_0x3b6919[_0x288e7d(0x170)](_0x2b1543[_0x288e7d(0x16c)](),'n')))&&(console['error'](_0x3b6919[_0x288e7d(0x176)]),await _0x3b6919[_0x288e7d(0x172)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919[_0x288e7d(0x1ab)],messageTypes[_0x288e7d(0x185)],_0x3b6919['qpFGC'],null,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1));_0x3b6919['xWaom'](_0x2b1543[_0x288e7d(0x16c)](),'n')&&process[_0x288e7d(0x1b6)](0x0);console[_0x288e7d(0x17e)](_0x3b6919[_0x288e7d(0x16a)]);const _0xc5b596=_0x5dd859[_0x288e7d(0x18c)][_0x288e7d(0x1a6)];for(let _0x69ff08=0x0;_0x3b6919[_0x288e7d(0x177)](_0x69ff08,_0xc5b596);_0x69ff08+=0x1){console[_0x288e7d(0x17e)]('['+_0x3b6919['WpmgS'](_0x69ff08,0x1)+']\x20'+_0x5dd859[_0x288e7d(0x18c)][_0x69ff08][_0x288e7d(0x165)]);}const _0x407d6d=await _0x3b6919[_0x288e7d(0x178)](inputConfirmation,_0x3b6919[_0x288e7d(0x16b)]),_0x58c7bd=_0x3b6919['qgwgb'](Number,_0x407d6d);(_0x3b6919[_0x288e7d(0x197)](isNaN,_0x58c7bd)||_0x3b6919[_0x288e7d(0x171)](_0x58c7bd,0x0)||_0x3b6919[_0x288e7d(0x1a8)](_0x58c7bd,_0xc5b596))&&(console[_0x288e7d(0x1b1)](_0x3b6919[_0x288e7d(0x176)]),await _0x3b6919[_0x288e7d(0x1a2)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919['FnKQd'],messageTypes['ERROR'],_0x3b6919[_0x288e7d(0x1ac)],null,_0x2bcfd3),process['exit'](0x1));_0x3b6919['wWGfY'](closeInput);const _0x219cca=_0x5dd859[_0x288e7d(0x18c)][_0x3b6919['gPTkD'](_0x58c7bd,0x1)]['id'],_0x2c4f6a={};_0x2c4f6a[_0x288e7d(0x1a3)]=_0x219cca;const _0x2c9147={'method':_0x3b6919['JhTeE'],'headers':_0x3b6919[_0x288e7d(0x18d)](getAuthHeader,_0x10695d[_0x288e7d(0x18a)][_0x288e7d(0x1ae)],_0x10695d[_0x288e7d(0x18a)][_0x288e7d(0x196)]),'json':_0x2c4f6a,'responseType':_0x3b6919['BiJsu'],'throwHttpErrors':![]},_0x5701a9=await _0x3b6919[_0x288e7d(0x191)](got,_0xec5a9e,_0x2c9147);_0x3b6919['XDtRL'](_0x5701a9,null)&&_0x3b6919['Uztfw'](_0x5701a9,undefined)&&_0x3b6919['xWaom'](_0x5701a9[_0x288e7d(0x188)],0xc8)&&(console[_0x288e7d(0x17e)](_0x3b6919[_0x288e7d(0x199)]),process[_0x288e7d(0x1b6)](0x0)),_0x3b6919['WpuND'](_0x5701a9[_0x288e7d(0x188)],0x191)&&(console[_0x288e7d(0x1b1)](_0x3b6919['uqmcN']),await _0x3b6919[_0x288e7d(0x181)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919[_0x288e7d(0x1ab)],messageTypes[_0x288e7d(0x185)],_0x3b6919[_0x288e7d(0x192)],null,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1)),console['error'](_0x288e7d(0x19b)+JSON['stringify'](_0x5701a9)),await _0x3b6919[_0x288e7d(0x19e)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919[_0x288e7d(0x1ab)],messageTypes[_0x288e7d(0x185)],_0x3b6919[_0x288e7d(0x168)],_0x5701a9,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1);}_0x3b6919[_0x288e7d(0x167)](_0x10ab09[_0x288e7d(0x188)],0x191)&&(console[_0x288e7d(0x1b1)](_0x3b6919['nEiTU']),await _0x3b6919[_0x288e7d(0x1b7)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919[_0x288e7d(0x1ab)],messageTypes[_0x288e7d(0x185)],_0x3b6919[_0x288e7d(0x192)],null,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1)),console[_0x288e7d(0x1b1)](_0x288e7d(0x19d)+JSON[_0x288e7d(0x1a4)](_0x10ab09)),await _0x3b6919[_0x288e7d(0x181)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919[_0x288e7d(0x1ab)],messageTypes[_0x288e7d(0x185)],_0x3b6919['sHwut'],_0x10ab09,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1);}catch(_0x56857d){console[_0x288e7d(0x1b1)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x56857d['stack']),await _0x3b6919[_0x288e7d(0x19e)](sendInstrumentationEvent,_0x2bcfd3,_0x3b6919['FnKQd'],messageTypes['ERROR'],_0x3b6919['icMdb'],_0x56857d,_0x2bcfd3),process[_0x288e7d(0x1b6)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x3a8042=a6_0x2fa8;(function(_0x576e2b,_0x3ccd69){const _0x59d357=a6_0x2fa8,_0x1fc111=_0x576e2b();while(!![]){try{const _0x2db449=parseInt(_0x59d357(0x176))/0x1*(-parseInt(_0x59d357(0x17a))/0x2)+parseInt(_0x59d357(0x178))/0x3+parseInt(_0x59d357(0x169))/0x4*(-parseInt(_0x59d357(0x16f))/0x5)+parseInt(_0x59d357(0x165))/0x6+-parseInt(_0x59d357(0x173))/0x7+-parseInt(_0x59d357(0x172))/0x8+-parseInt(_0x59d357(0x17b))/0x9*(-parseInt(_0x59d357(0x171))/0xa);if(_0x2db449===_0x3ccd69)break;else _0x1fc111['push'](_0x1fc111['shift']());}catch(_0xce3626){_0x1fc111['push'](_0x1fc111['shift']());}}}(a6_0x3c79,0x3ced9));function a6_0x2fa8(_0x57ece5,_0x4347e5){const _0x3c79d7=a6_0x3c79();return a6_0x2fa8=function(_0x2fa8c2,_0x50ecec){_0x2fa8c2=_0x2fa8c2-0x163;let _0x574d96=_0x3c79d7[_0x2fa8c2];return _0x574d96;},a6_0x2fa8(_0x57ece5,_0x4347e5);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x3a8042(0x16c));function a6_0x3c79(){const _0x8e754b=['20HoSBXt','desc','demandCommand','../config/constants','command','EKleB','469045HOyhvM','help','6980570uTPcAN','2572968zQtaSz','313047vZjXUU','strict','recommendCommands','111553fIoaja','builder','443220BFkKNM','commandDir','2RhWRpG','9tUZrom','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','connect','handler','2104224OXFDmm','HxRny','epilogue','usage'];a6_0x3c79=function(){return _0x8e754b;};return a6_0x3c79();}exports[a6_0x3a8042(0x16d)]='connect',exports[a6_0x3a8042(0x16a)]=a6_0x3a8042(0x17c),exports[a6_0x3a8042(0x177)]=function(_0x5d9125){const _0x505c12=a6_0x3a8042,_0x267688={};_0x267688[_0x505c12(0x166)]='connect_commands',_0x267688[_0x505c12(0x16e)]='help';const _0x2fcc8a=_0x267688;return _0x5d9125[_0x505c12(0x168)](HELP_HEADER_MESSAGE[_0x505c12(0x163)])[_0x505c12(0x167)](HELP_FOOTER_MESSAGE)[_0x505c12(0x179)](_0x2fcc8a[_0x505c12(0x166)])[_0x505c12(0x16b)]()[_0x505c12(0x175)]()[_0x505c12(0x174)]()[_0x505c12(0x170)](_0x2fcc8a[_0x505c12(0x16e)]);},exports[a6_0x3a8042(0x164)]=function(_0x29bf35){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x4a2f92=a7_0x337b;function a7_0x337b(_0x554caa,_0x4ae942){const _0x28ecdb=a7_0x28ec();return a7_0x337b=function(_0x337bb7,_0x4d6c96){_0x337bb7=_0x337bb7-0xb9;let _0x125537=_0x28ecdb[_0x337bb7];return _0x125537;},a7_0x337b(_0x554caa,_0x4ae942);}(function(_0x3e66f3,_0x9817af){const _0x3cd953=a7_0x337b,_0x447146=_0x3e66f3();while(!![]){try{const _0x290568=-parseInt(_0x3cd953(0x105))/0x1+parseInt(_0x3cd953(0xfe))/0x2*(parseInt(_0x3cd953(0xcb))/0x3)+-parseInt(_0x3cd953(0x11c))/0x4+-parseInt(_0x3cd953(0x118))/0x5+parseInt(_0x3cd953(0xe6))/0x6*(parseInt(_0x3cd953(0x119))/0x7)+-parseInt(_0x3cd953(0x123))/0x8*(-parseInt(_0x3cd953(0xd8))/0x9)+parseInt(_0x3cd953(0xe3))/0xa*(-parseInt(_0x3cd953(0x124))/0xb);if(_0x290568===_0x9817af)break;else _0x447146['push'](_0x447146['shift']());}catch(_0x59990e){_0x447146['push'](_0x447146['shift']());}}}(a7_0x28ec,0xaa861));function a7_0x28ec(){const _0x460abf=['gIyFu','mZlvR','1494610upXLps','11179yKtCmx','kBCky','use-staging','2195980ZKFDYG','../../config/logger','UyPmv','handler','QeNZp','GYKyE','VcaLw','8uszZPP','11302126qmHRdt','GmEnJ','owNMc','EhsBn','oPEnh','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','grid-id','OHrrU','STAPV','useStaging','SIGINT','command','error','oPtcA','BJYtj','isTrialGrid','grYRK','bstackUsername','mXzaC','customRepeaters','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','browserStackLocalOptions','3AObNNj','exit','Pass\x20the\x20ID\x20of\x20the\x20Grid','epilogue','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','advance-options','demandOption','gridId','DoehJ','GmtgD','WVXch','create','cnuSL','7654167KsYSSR','VxVMq','ldLJE','help','AOLPO','zPmJE','JrGLU','jgOsK','builder','usage','bstack-accesskey','10mufGqt','VtEuD','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','4674DdSzyY','njzbq','bfHcW','grid','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','PmtxB','SIGTERM','TRnyE','JUztG','../../config/constants','argv','rMpzi','options','../../utils/utilityMethods','ApGqA','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','Ddhhk','isRunning','QCMQU','gxQnD','oOxqz','qietf','CKoVP','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','1723594VfUrmH','string','type','Advance\x20options\x20for\x20Browserstack\x20Local','description','wggoY','RRIJL','382475LbXrjM','YMLxB','YentE','desc','cmedO','qPrKP','info','MldXB','PSmjz','accessKey','true','KQsjJ','xfrKb','beforeExit','xUoFG','bstack-username','KaSdt'];a7_0x28ec=function(){return _0x460abf;};return a7_0x28ec();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x4a2f92(0xef)),{logger}=require(a7_0x4a2f92(0x11d)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x4a2f92(0xf3));exports[a7_0x4a2f92(0xc0)]=a7_0x4a2f92(0xe9),exports[a7_0x4a2f92(0x108)]=a7_0x4a2f92(0xe5),exports[a7_0x4a2f92(0xe0)]=_0x71a003=>{const _0x269bad=a7_0x4a2f92,_0x3d74c5={};_0x3d74c5['gxQnD']=_0x269bad(0xc9),_0x3d74c5[_0x269bad(0xe7)]=_0x269bad(0xff),_0x3d74c5[_0x269bad(0xd5)]=_0x269bad(0xea),_0x3d74c5['grYRK']=_0x269bad(0xcd),_0x3d74c5[_0x269bad(0xf4)]=_0x269bad(0xfd),_0x3d74c5['rMpzi']=_0x269bad(0x101),_0x3d74c5['oPtcA']=_0x269bad(0xdb);const _0x107e49=_0x3d74c5,_0x276948={};_0x276948[_0x269bad(0x102)]=_0x107e49[_0x269bad(0xf9)],_0x276948[_0x269bad(0x100)]=_0x107e49[_0x269bad(0xe7)];const _0x328fdd={};_0x328fdd[_0x269bad(0x102)]=_0x107e49[_0x269bad(0xd5)],_0x328fdd[_0x269bad(0x100)]=_0x107e49[_0x269bad(0xe7)];const _0xf90fe4={};_0xf90fe4[_0x269bad(0xd1)]=!![],_0xf90fe4[_0x269bad(0x102)]=_0x107e49[_0x269bad(0xc5)],_0xf90fe4['type']=_0x107e49[_0x269bad(0xe7)];const _0x410902={};_0x410902[_0x269bad(0x102)]=_0x107e49['ApGqA'],_0x410902[_0x269bad(0x100)]=_0x107e49['njzbq'];const _0x151ce1={};_0x151ce1[_0x269bad(0x102)]=_0x107e49[_0x269bad(0xf1)],_0x151ce1['type']=_0x107e49[_0x269bad(0xe7)];const _0x4c3424={};return _0x4c3424[_0x269bad(0x114)]=_0x276948,_0x4c3424[_0x269bad(0xe2)]=_0x328fdd,_0x4c3424[_0x269bad(0xbb)]=_0xf90fe4,_0x4c3424[_0x269bad(0x11b)]=_0x410902,_0x4c3424[_0x269bad(0xd0)]=_0x151ce1,_0x71a003['usage'](HELP_HEADER_MESSAGE[_0x269bad(0xd6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x269bad(0xf2)](_0x4c3424)[_0x269bad(0xdb)](_0x107e49[_0x269bad(0xc2)])[_0x269bad(0xf0)];},exports[a7_0x4a2f92(0x11f)]=async _0x232d93=>{const _0x4fb6d1=a7_0x4a2f92,_0x24f9b1={'YMLxB':function(_0x56c748,_0x57dd20){return _0x56c748(_0x57dd20);},'MldXB':_0x4fb6d1(0xba),'qPrKP':function(_0x5c5d5d,_0x10631f){return _0x5c5d5d===_0x10631f;},'PSmjz':_0x4fb6d1(0x11a),'GmEnJ':_0x4fb6d1(0x121),'AOLPO':function(_0x2418a7,_0x163c3a){return _0x2418a7(_0x163c3a);},'mZlvR':'Grid\x20type:\x20Trial','mXzaC':_0x4fb6d1(0x112),'cnuSL':_0x4fb6d1(0xbf),'owNMc':_0x4fb6d1(0xec),'hjtky':_0x4fb6d1(0xcf),'cmedO':function(_0x46fce5,_0x5b7c2f){return _0x46fce5(_0x5b7c2f);},'xUoFG':_0x4fb6d1(0xf5),'Ddhhk':'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','bfHcW':_0x4fb6d1(0x111),'oOxqz':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','qietf':'string','DoehJ':_0x4fb6d1(0xea),'KQsjJ':_0x4fb6d1(0xcd),'EhsBn':_0x4fb6d1(0xfd),'CKoVP':_0x4fb6d1(0x101),'oGDTv':_0x4fb6d1(0xdb),'VtEuD':function(_0x488731,_0x3ac63b,_0x12ac1d){return _0x488731(_0x3ac63b,_0x12ac1d);},'oPEnh':function(_0x311e39,_0x141ce4){return _0x311e39&&_0x141ce4;},'PmtxB':function(_0x2097b7,_0x3fdd6e){return _0x2097b7!==_0x3fdd6e;},'RRIJL':_0x4fb6d1(0x11e),'BJYtj':function(_0x4d84e6,_0x37e54e,_0x26eeae,_0x35433f){return _0x4d84e6(_0x37e54e,_0x26eeae,_0x35433f);},'wggoY':_0x4fb6d1(0xd4),'gIyFu':_0x4fb6d1(0x10f),'VxVMq':_0x4fb6d1(0x107),'KaSdt':_0x4fb6d1(0xed),'QeNZp':_0x4fb6d1(0xbd),'zPmJE':function(_0x594a4f,_0x387023){return _0x594a4f(_0x387023);},'qtVzO':function(_0x310200,_0x439b38){return _0x310200!==_0x439b38;},'VcaLw':_0x4fb6d1(0xde),'OHrrU':function(_0x120bb6,_0x25cfef){return _0x120bb6(_0x25cfef);}};let _0x5837a8=_0x232d93[_0x4fb6d1(0xc6)],_0x48a997=_0x232d93['bstackAccesskey'];const _0x5e905d=_0x232d93['advanceOptions'],_0x342629=_0x42d655=>{const _0x29e25f=_0x4fb6d1,_0x1b49b0={'ldLJE':function(_0x37a3fd,_0xac312c){const _0x2201e2=a7_0x337b;return _0x24f9b1[_0x2201e2(0x106)](_0x37a3fd,_0xac312c);},'JUztG':_0x24f9b1[_0x29e25f(0x10c)]};_0x24f9b1[_0x29e25f(0x10a)](_0x24f9b1[_0x29e25f(0x10d)],_0x24f9b1[_0x29e25f(0x125)])?_0x1b49b0[_0x29e25f(0xda)](_0x57d6ae,_0x1b49b0[_0x29e25f(0xee)]):(logger['error'](_0x42d655),process[_0x29e25f(0xcc)](0x1));};[_0x5837a8,_0x48a997]=_0x24f9b1[_0x4fb6d1(0xe4)](fetchOrUpdateUserConfig,_0x5837a8,_0x48a997);if(!_0x24f9b1[_0x4fb6d1(0xb9)](_0x5837a8,_0x48a997)){if(_0x24f9b1[_0x4fb6d1(0xeb)](_0x24f9b1[_0x4fb6d1(0x104)],_0x24f9b1[_0x4fb6d1(0x104)])){let _0x2d7823=_0x24f9b1['mZlvR'];_0x101362[_0x4fb6d1(0x10b)](_0x2d7823);try{const _0x53c1ce={};_0x53c1ce[_0x4fb6d1(0x10e)]=_0x2b27e1,_0x53c1ce[_0x4fb6d1(0xc8)]=_0x8a2948[_0x4fb6d1(0xc8)],_0x53c1ce[_0x4fb6d1(0xca)]=_0x1c9d43;const _0x454715=_0x53c1ce,_0x4e2b67=_0x24f9b1[_0x4fb6d1(0xdc)](_0x45baa2,_0x454715);let _0x73197c=0x0;const _0x3a5f3d=async()=>{const _0x4235b0=_0x4fb6d1;_0x73197c++,_0x24f9b1[_0x4235b0(0x10a)](_0x73197c,0x1)&&_0x4e2b67&&_0x4e2b67[_0x4235b0(0xf7)]()&&_0x24f9b1['AOLPO'](_0x1b922a,_0x4e2b67);};_0x253da8['on'](_0x24f9b1[_0x4fb6d1(0xc7)],_0x3a5f3d),_0x2f4b43['on'](_0x24f9b1[_0x4fb6d1(0xd7)],_0x3a5f3d),_0x15409b['on'](_0x24f9b1[_0x4fb6d1(0x126)],_0x3a5f3d),_0x2d7823=_0x24f9b1['hjtky'],_0x38fa8e[_0x4fb6d1(0x10b)](_0x2d7823);}catch(_0x453b74){_0x24f9b1[_0x4fb6d1(0x109)](_0x5bb21c,_0x24f9b1[_0x4fb6d1(0x113)]);}}else _0x24f9b1[_0x4fb6d1(0x106)](_0x342629,_0x24f9b1[_0x4fb6d1(0xf6)]);}const _0x146d86=_0x232d93[_0x4fb6d1(0xd2)],[_0x42e1f8,_0xa999bb]=await _0x24f9b1[_0x4fb6d1(0xc3)](getGridDetails,_0x5837a8,_0x48a997,_0x146d86);!_0xa999bb&&(_0x24f9b1['PmtxB'](_0x24f9b1[_0x4fb6d1(0x103)],_0x24f9b1[_0x4fb6d1(0x103)])?_0x24f9b1[_0x4fb6d1(0xdc)](_0x187d80,_0x24f9b1[_0x4fb6d1(0xf6)]):_0x24f9b1[_0x4fb6d1(0x109)](_0x342629,_0x24f9b1[_0x4fb6d1(0x10c)]));const _0x3bb3ea=_0x24f9b1[_0x4fb6d1(0x10a)](_0x232d93[_0x4fb6d1(0xbe)],_0x24f9b1[_0x4fb6d1(0x116)])?!![]:![];if(_0xa999bb&&_0xa999bb[_0x4fb6d1(0xc4)]&&_0x3bb3ea){if(_0x24f9b1[_0x4fb6d1(0xeb)](_0x24f9b1[_0x4fb6d1(0xd9)],_0x24f9b1[_0x4fb6d1(0x115)])){let _0xa03b4c=_0x24f9b1[_0x4fb6d1(0x117)];logger[_0x4fb6d1(0x10b)](_0xa03b4c);try{if(_0x24f9b1['PmtxB'](_0x24f9b1[_0x4fb6d1(0x120)],_0x24f9b1['QeNZp']))_0x5810f6[_0x4fb6d1(0xc1)](_0x28d3c3),_0x1177ae[_0x4fb6d1(0xcc)](0x1);else{const _0x3dc552={};_0x3dc552[_0x4fb6d1(0x10e)]=_0x48a997,_0x3dc552[_0x4fb6d1(0xc8)]=_0xa999bb[_0x4fb6d1(0xc8)],_0x3dc552[_0x4fb6d1(0xca)]=_0x5e905d;const _0x4646b5=_0x3dc552,_0x3cd80e=_0x24f9b1[_0x4fb6d1(0xdd)](startLocalBinarySync,_0x4646b5);let _0x483d11=0x0;const _0x424a66=async()=>{const _0x57c9f5=_0x4fb6d1,_0x2a4d28={'QCMQU':function(_0x82c201,_0x7fa115){const _0x54f7d8=a7_0x337b;return _0x24f9b1[_0x54f7d8(0x109)](_0x82c201,_0x7fa115);},'jgOsK':_0x24f9b1['xUoFG']};_0x24f9b1['qPrKP'](_0x24f9b1[_0x57c9f5(0xe8)],_0x24f9b1[_0x57c9f5(0xe8)])?(_0x483d11++,_0x24f9b1[_0x57c9f5(0x10a)](_0x483d11,0x1)&&_0x3cd80e&&_0x3cd80e[_0x57c9f5(0xf7)]()&&_0x24f9b1[_0x57c9f5(0x109)](stopLocalBinary,_0x3cd80e)):_0x2a4d28[_0x57c9f5(0xf8)](_0x2307b0,_0x2a4d28[_0x57c9f5(0xdf)]);};process['on'](_0x24f9b1['mXzaC'],_0x424a66),process['on'](_0x24f9b1[_0x4fb6d1(0xd7)],_0x424a66),process['on'](_0x24f9b1[_0x4fb6d1(0x126)],_0x424a66),_0xa03b4c=_0x24f9b1['hjtky'],logger['info'](_0xa03b4c);}}catch(_0x17f894){_0x24f9b1['qtVzO'](_0x24f9b1[_0x4fb6d1(0x122)],_0x24f9b1[_0x4fb6d1(0x122)])?(_0x752ca6++,_0x24f9b1[_0x4fb6d1(0x10a)](_0x23938f,0x1)&&_0x37af01&&_0x42f63d['isRunning']()&&_0x24f9b1[_0x4fb6d1(0x106)](_0x3e3016,_0x30e568)):_0x24f9b1[_0x4fb6d1(0xbc)](_0x342629,_0x24f9b1[_0x4fb6d1(0x113)]);}}else{const _0x2762ca={};_0x2762ca[_0x4fb6d1(0x102)]=_0x24f9b1[_0x4fb6d1(0xfa)],_0x2762ca['type']=_0x24f9b1[_0x4fb6d1(0xfb)];const _0x19c513={};_0x19c513[_0x4fb6d1(0x102)]=_0x24f9b1[_0x4fb6d1(0xd3)],_0x19c513[_0x4fb6d1(0x100)]=_0x24f9b1['qietf'];const _0x1e3e41={};_0x1e3e41['demandOption']=!![],_0x1e3e41[_0x4fb6d1(0x102)]=_0x24f9b1[_0x4fb6d1(0x110)],_0x1e3e41[_0x4fb6d1(0x100)]=_0x24f9b1[_0x4fb6d1(0xfb)];const _0x3e864d={};_0x3e864d[_0x4fb6d1(0x102)]=_0x24f9b1[_0x4fb6d1(0x127)],_0x3e864d[_0x4fb6d1(0x100)]=_0x24f9b1['qietf'];const _0x463113={};_0x463113['description']=_0x24f9b1[_0x4fb6d1(0xfc)],_0x463113[_0x4fb6d1(0x100)]=_0x24f9b1[_0x4fb6d1(0xfb)];const _0x13dd21={};return _0x13dd21[_0x4fb6d1(0x114)]=_0x2762ca,_0x13dd21[_0x4fb6d1(0xe2)]=_0x19c513,_0x13dd21['grid-id']=_0x1e3e41,_0x13dd21[_0x4fb6d1(0x11b)]=_0x3e864d,_0x13dd21[_0x4fb6d1(0xd0)]=_0x463113,_0x598fef[_0x4fb6d1(0xe1)](_0x1b4365[_0x4fb6d1(0xd6)])[_0x4fb6d1(0xce)](_0x375f67)[_0x4fb6d1(0xf2)](_0x13dd21)[_0x4fb6d1(0xdb)](_0x24f9b1['oGDTv'])[_0x4fb6d1(0xf0)];}}process[_0x4fb6d1(0xcc)](0x0);};
|
|
1
|
+
function a7_0x3ff5(){const _0x23fdc5=['9hwwzqR','AURNm','../../config/constants','WHiuy','CVEVa','7JsGgtu','description','lhpFG','MlfKz','command','UGHGq','advance-options','PBMvP','ApxuN','grid','NlEVe','1307480FQjkSz','IzBlf','uYtfU','bstack-username','browserStackLocalOptions','VmkDT','iagcb','epilogue','help','zfxfP','eTzdh','grid-id','gkpVa','Zferv','ipPEN','gbUvw','SIGINT','JHtdj','lZQLD','NMvzI','LgpSa','SRiek','2620635xEpWtQ','usage','JNfNy','rTWNT','YpHCU','create','gridId','9447850DGqkia','argv','isTrialGrid','48450BnhEKA','AJOBa','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','use-staging','477350YreTUC','customRepeaters','nTWTd','error','bMlwg','beforeExit','Grid\x20type:\x20Trial','../../config/logger','SwRUz','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','OZbDo','bstackUsername','info','BLGZi','ZnfUW','type','../../utils/utilityMethods','AJmLO','handler','string','AiUAk','MYVRt','HpDtc','options','gAkgZ','exit','lphKx','isRunning','365228yXCTRq','advanceOptions','bstack-accesskey','OYiAv','xcinV','Advance\x20options\x20for\x20Browserstack\x20Local','OQDjG','accessKey','tCpJD','27SBeKCY','BamCz','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','UyEwe','SIGTERM','pkAXa','useStaging','OsHvm','EwsUF','ldGQS','qsHpR','1128526Kejwzz','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.'];a7_0x3ff5=function(){return _0x23fdc5;};return a7_0x3ff5();}const a7_0x240a2e=a7_0x41fe;(function(_0x175c09,_0x3533bd){const _0x451e67=a7_0x41fe,_0x3fd231=_0x175c09();while(!![]){try{const _0xe747d0=parseInt(_0x451e67(0x15b))/0x1+parseInt(_0x451e67(0x18c))/0x2+parseInt(_0x451e67(0x181))/0x3*(parseInt(_0x451e67(0x178))/0x4)+-parseInt(_0x451e67(0x14d))/0x5+-parseInt(_0x451e67(0x157))/0x6+parseInt(_0x451e67(0x193))/0x7*(parseInt(_0x451e67(0x19e))/0x8)+-parseInt(_0x451e67(0x18e))/0x9*(parseInt(_0x451e67(0x154))/0xa);if(_0xe747d0===_0x3533bd)break;else _0x3fd231['push'](_0x3fd231['shift']());}catch(_0x570fab){_0x3fd231['push'](_0x3fd231['shift']());}}}(a7_0x3ff5,0x863c0));function a7_0x41fe(_0x14e98d,_0xf9910e){const _0x3ff5f3=a7_0x3ff5();return a7_0x41fe=function(_0x41fe26,_0x37c417){_0x41fe26=_0x41fe26-0x144;let _0x641e8=_0x3ff5f3[_0x41fe26];return _0x641e8;},a7_0x41fe(_0x14e98d,_0xf9910e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x240a2e(0x190)),{logger}=require(a7_0x240a2e(0x162)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x240a2e(0x16c));exports[a7_0x240a2e(0x197)]=a7_0x240a2e(0x19c),exports['desc']='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports['builder']=_0x26dbc1=>{const _0x43a394=a7_0x240a2e,_0x157435={};_0x157435[_0x43a394(0x174)]=_0x43a394(0x159),_0x157435[_0x43a394(0x1a8)]=_0x43a394(0x16f),_0x157435[_0x43a394(0x1a0)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x157435[_0x43a394(0x148)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x157435['irBDF']='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x157435[_0x43a394(0x169)]=_0x43a394(0x17d),_0x157435[_0x43a394(0x166)]=_0x43a394(0x1a6);const _0x18ca4f=_0x157435,_0x149c55={};_0x149c55[_0x43a394(0x194)]=_0x18ca4f[_0x43a394(0x174)],_0x149c55['type']=_0x18ca4f['eTzdh'];const _0xe7ab27={};_0xe7ab27[_0x43a394(0x194)]=_0x18ca4f['uYtfU'],_0xe7ab27[_0x43a394(0x16b)]=_0x18ca4f[_0x43a394(0x1a8)];const _0x7a1db0={};_0x7a1db0['demandOption']=!![],_0x7a1db0[_0x43a394(0x194)]=_0x18ca4f[_0x43a394(0x148)],_0x7a1db0['type']=_0x18ca4f[_0x43a394(0x1a8)];const _0x3ece86={};_0x3ece86['description']=_0x18ca4f['irBDF'],_0x3ece86[_0x43a394(0x16b)]=_0x18ca4f['eTzdh'];const _0x573ef5={};_0x573ef5[_0x43a394(0x194)]=_0x18ca4f[_0x43a394(0x169)],_0x573ef5[_0x43a394(0x16b)]=_0x18ca4f[_0x43a394(0x1a8)];const _0x2b68d7={};return _0x2b68d7[_0x43a394(0x1a1)]=_0x149c55,_0x2b68d7[_0x43a394(0x17a)]=_0xe7ab27,_0x2b68d7[_0x43a394(0x1a9)]=_0x7a1db0,_0x2b68d7[_0x43a394(0x15a)]=_0x3ece86,_0x2b68d7[_0x43a394(0x199)]=_0x573ef5,_0x26dbc1[_0x43a394(0x14e)](HELP_HEADER_MESSAGE[_0x43a394(0x152)])[_0x43a394(0x1a5)](HELP_FOOTER_MESSAGE)[_0x43a394(0x173)](_0x2b68d7)[_0x43a394(0x1a6)](_0x18ca4f[_0x43a394(0x166)])[_0x43a394(0x155)];},exports[a7_0x240a2e(0x16e)]=async _0x5376c0=>{const _0x4de6cf=a7_0x240a2e,_0x59863c={'izRlm':function(_0xa8e763,_0x4f205e){return _0xa8e763===_0x4f205e;},'EwsUF':function(_0x28fab7,_0x432a32){return _0x28fab7(_0x432a32);},'lIGnB':_0x4de6cf(0x161),'LXPsW':function(_0x5102c3,_0x4c8b41){return _0x5102c3(_0x4c8b41);},'YpHCU':_0x4de6cf(0x160),'IzBlf':_0x4de6cf(0x147),'AURNm':_0x4de6cf(0x185),'OQDjG':_0x4de6cf(0x18d),'gbUvw':_0x4de6cf(0x164),'lphKx':function(_0x1a7b4b,_0x46375c){return _0x1a7b4b===_0x46375c;},'pkAXa':'rZJiz','OYiAv':function(_0x1bcd6f,_0xb72ff){return _0x1bcd6f(_0xb72ff);},'VmkDT':function(_0x4e2afe,_0x2e1572){return _0x4e2afe(_0x2e1572);},'xcinV':_0x4de6cf(0x183),'PBMvP':_0x4de6cf(0x165),'LgpSa':function(_0x1a1510,_0x10b438){return _0x1a1510===_0x10b438;},'AJOBa':_0x4de6cf(0x180),'ipPEN':function(_0x480d8c,_0x5a0091){return _0x480d8c===_0x5a0091;},'lZQLD':function(_0x130012,_0x4153c1){return _0x130012(_0x4153c1);},'ldGQS':function(_0x4b9a47,_0x4bde56,_0x32e1f1){return _0x4b9a47(_0x4bde56,_0x32e1f1);},'JNfNy':function(_0x15683a,_0x58b383){return _0x15683a&&_0x58b383;},'rTWNT':function(_0x400368,_0x54ec28){return _0x400368!==_0x54ec28;},'zUTgq':'MGfFl','LZLqQ':_0x4de6cf(0x196),'aCQKI':function(_0x1e702d,_0x2b25e6,_0x5dd205,_0x119613){return _0x1e702d(_0x2b25e6,_0x5dd205,_0x119613);},'QoGuh':function(_0x36ec29,_0x2ae467){return _0x36ec29===_0x2ae467;},'DTfuG':'SHCmT','NiAen':_0x4de6cf(0x163),'fIiUp':function(_0x55d907,_0x4899f6){return _0x55d907(_0x4899f6);},'CVEVa':'true','ApxuN':_0x4de6cf(0x184),'iagcb':_0x4de6cf(0x14a),'nTWTd':_0x4de6cf(0x171),'WHiuy':function(_0xe0bb14,_0x406211){return _0xe0bb14(_0x406211);},'zfxfP':_0x4de6cf(0x170),'lhpFG':'xNGZa'};let _0x34fb75=_0x5376c0[_0x4de6cf(0x167)],_0x14b7ff=_0x5376c0['bstackAccesskey'];const _0x3ff1c2=_0x5376c0[_0x4de6cf(0x179)],_0xf7b14d=_0x1c02e3=>{const _0xc23a3=_0x4de6cf,_0xb38ab9={'UGHGq':function(_0x51eef9,_0x2833a3){return _0x59863c['izRlm'](_0x51eef9,_0x2833a3);},'gkpVa':function(_0x11dc41,_0x55cfd0){const _0x3b31b5=a7_0x41fe;return _0x59863c[_0x3b31b5(0x189)](_0x11dc41,_0x55cfd0);},'BamCz':_0x59863c['lIGnB'],'OsHvm':function(_0x3bfda2,_0x307c34){return _0x59863c['LXPsW'](_0x3bfda2,_0x307c34);},'ZnfUW':_0x59863c['YpHCU'],'NlEVe':_0x59863c[_0xc23a3(0x19f)],'AJmLO':_0x59863c[_0xc23a3(0x18f)],'qsHpR':_0x59863c[_0xc23a3(0x17e)],'bMlwg':_0x59863c[_0xc23a3(0x146)]};if(_0x59863c[_0xc23a3(0x176)](_0x59863c[_0xc23a3(0x186)],_0x59863c['pkAXa']))logger['error'](_0x1c02e3),process['exit'](0x1);else{const _0x2200fd={'LlAOB':function(_0x9cc052,_0xadc440){const _0x2891f8=_0xc23a3;return _0xb38ab9[_0x2891f8(0x198)](_0x9cc052,_0xadc440);},'SRiek':function(_0x4b1889,_0x575b90){const _0x167fe4=_0xc23a3;return _0xb38ab9[_0x167fe4(0x1aa)](_0x4b1889,_0x575b90);}};let _0x250b43=_0xb38ab9[_0xc23a3(0x182)];_0x212cd5['info'](_0x250b43);try{const _0x5125d2={};_0x5125d2[_0xc23a3(0x17f)]=_0x5d4c30,_0x5125d2[_0xc23a3(0x15c)]=_0x150bc8[_0xc23a3(0x15c)],_0x5125d2[_0xc23a3(0x1a2)]=_0x4cf2aa;const _0x24d4d6=_0x5125d2,_0x4c1c34=_0xb38ab9[_0xc23a3(0x188)](_0x167339,_0x24d4d6);let _0x534d50=0x0;const _0x25a0eb=async()=>{const _0x5364f5=_0xc23a3;_0x534d50++,_0x2200fd['LlAOB'](_0x534d50,0x1)&&_0x4c1c34&&_0x4c1c34[_0x5364f5(0x177)]()&&_0x2200fd[_0x5364f5(0x14c)](_0xcad911,_0x4c1c34);};_0x2cfae6['on'](_0xb38ab9[_0xc23a3(0x16a)],_0x25a0eb),_0xfc8c09['on'](_0xb38ab9[_0xc23a3(0x19d)],_0x25a0eb),_0x143deb['on'](_0xb38ab9[_0xc23a3(0x16d)],_0x25a0eb),_0x250b43=_0xb38ab9[_0xc23a3(0x18b)],_0xfc430b[_0xc23a3(0x168)](_0x250b43);}catch(_0x5d654d){_0xb38ab9[_0xc23a3(0x188)](_0x8266f1,_0xb38ab9[_0xc23a3(0x15f)]);}}};[_0x34fb75,_0x14b7ff]=_0x59863c[_0x4de6cf(0x18a)](fetchOrUpdateUserConfig,_0x34fb75,_0x14b7ff);if(!_0x59863c[_0x4de6cf(0x14f)](_0x34fb75,_0x14b7ff)){if(_0x59863c[_0x4de6cf(0x150)](_0x59863c['zUTgq'],_0x59863c['LZLqQ']))_0x59863c['LXPsW'](_0xf7b14d,_0x59863c[_0x4de6cf(0x19a)]);else{const _0x390f2f={'HpDtc':function(_0x5f2f7d,_0x49e6dd){return _0x59863c['izRlm'](_0x5f2f7d,_0x49e6dd);},'Zferv':function(_0x1fcae6,_0x1def76){const _0x2ba5b4=_0x4de6cf;return _0x59863c[_0x2ba5b4(0x17b)](_0x1fcae6,_0x1def76);}},_0x19436d={};_0x19436d[_0x4de6cf(0x17f)]=_0xdc4243,_0x19436d[_0x4de6cf(0x15c)]=_0x52d95c['customRepeaters'],_0x19436d[_0x4de6cf(0x1a2)]=_0xdbf9de;const _0x182a58=_0x19436d,_0x4a668d=_0x59863c['EwsUF'](_0x31ba64,_0x182a58);let _0x66af83=0x0;const _0x11e18a=async()=>{const _0x2995a7=_0x4de6cf;_0x66af83++,_0x390f2f[_0x2995a7(0x172)](_0x66af83,0x1)&&_0x4a668d&&_0x4a668d[_0x2995a7(0x177)]()&&_0x390f2f[_0x2995a7(0x144)](_0x29ae9f,_0x4a668d);};_0x19a977['on'](_0x59863c['YpHCU'],_0x11e18a),_0x4e04bf['on'](_0x59863c[_0x4de6cf(0x19f)],_0x11e18a),_0x38a98e['on'](_0x59863c['AURNm'],_0x11e18a),_0x364d4e=_0x59863c['OQDjG'],_0x4f8067[_0x4de6cf(0x168)](_0x35d93e);}}const _0x435e48=_0x5376c0[_0x4de6cf(0x153)],[_0x3cbcf0,_0x515782]=await _0x59863c['aCQKI'](getGridDetails,_0x34fb75,_0x14b7ff,_0x435e48);!_0x515782&&(_0x59863c['QoGuh'](_0x59863c['DTfuG'],_0x59863c['NiAen'])?_0x59863c[_0x4de6cf(0x1a3)](_0x399b9c,_0x59863c[_0x4de6cf(0x17c)]):_0x59863c['fIiUp'](_0xf7b14d,_0x59863c[_0x4de6cf(0x17c)]));const _0x4d7de6=_0x59863c['LgpSa'](_0x5376c0[_0x4de6cf(0x187)],_0x59863c[_0x4de6cf(0x192)])?!![]:![];if(_0x515782&&_0x515782[_0x4de6cf(0x156)]&&_0x4d7de6){if(_0x59863c['lphKx'](_0x59863c[_0x4de6cf(0x19b)],_0x59863c[_0x4de6cf(0x19b)])){let _0x45aecc=_0x59863c['lIGnB'];logger['info'](_0x45aecc);try{if(_0x59863c[_0x4de6cf(0x176)](_0x59863c[_0x4de6cf(0x1a4)],_0x59863c[_0x4de6cf(0x15d)]))_0x59863c[_0x4de6cf(0x189)](_0x25afcb,_0x59863c['PBMvP']);else{const _0x39e51f={};_0x39e51f['accessKey']=_0x14b7ff,_0x39e51f[_0x4de6cf(0x15c)]=_0x515782['customRepeaters'],_0x39e51f['browserStackLocalOptions']=_0x3ff1c2;const _0x2a46e5=_0x39e51f,_0x48c8d2=_0x59863c[_0x4de6cf(0x191)](startLocalBinarySync,_0x2a46e5);let _0x2dbb92=0x0;const _0x4041f3=async()=>{const _0x552181=_0x4de6cf;_0x59863c[_0x552181(0x176)](_0x59863c[_0x552181(0x158)],_0x59863c['AJOBa'])?(_0x2dbb92++,_0x59863c[_0x552181(0x145)](_0x2dbb92,0x1)&&_0x48c8d2&&_0x48c8d2[_0x552181(0x177)]()&&_0x59863c['lZQLD'](stopLocalBinary,_0x48c8d2)):(_0x4e2542++,_0x59863c[_0x552181(0x14b)](_0x57e948,0x1)&&_0x2d23b2&&_0x51f198['isRunning']()&&_0x59863c['VmkDT'](_0x3db863,_0x233709));};process['on'](_0x59863c[_0x4de6cf(0x151)],_0x4041f3),process['on'](_0x59863c[_0x4de6cf(0x19f)],_0x4041f3),process['on'](_0x59863c[_0x4de6cf(0x18f)],_0x4041f3),_0x45aecc=_0x59863c[_0x4de6cf(0x17e)],logger[_0x4de6cf(0x168)](_0x45aecc);}}catch(_0xf87a14){_0x59863c['rTWNT'](_0x59863c[_0x4de6cf(0x1a7)],_0x59863c[_0x4de6cf(0x195)])?_0x59863c[_0x4de6cf(0x1a3)](_0xf7b14d,_0x59863c[_0x4de6cf(0x146)]):_0x59863c[_0x4de6cf(0x149)](_0x245208,_0x59863c[_0x4de6cf(0x146)]);}}else _0x1f11bb[_0x4de6cf(0x15e)](_0x5258f5),_0x1ef9ed[_0x4de6cf(0x175)](0x1);}process[_0x4de6cf(0x175)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x52b2(){const _0x35c88a=['Create\x20a\x20new\x20Automation\x20grid.','8YNkEXy','usage','3uiiFgo','3EeFgcb','help','create_commands','desc','1472331vHrwaL','recommendCommands','6048774RymsCo','create','638hiRXde','../config/constants','451610CNbWbH','7325500IDOrEw','12tGWfII','builder','2897392CiCGDX','YmrZW','commandDir','654816SNrjAS','strict','822166lwMxKl','epilogue','handler','HMCWH'];a8_0x52b2=function(){return _0x35c88a;};return a8_0x52b2();}const a8_0x2a95b3=a8_0x20ff;function a8_0x20ff(_0x20efa2,_0x38abc1){const _0x52b27a=a8_0x52b2();return a8_0x20ff=function(_0x20ff9c,_0x45d0a3){_0x20ff9c=_0x20ff9c-0x7e;let _0x4186a9=_0x52b27a[_0x20ff9c];return _0x4186a9;},a8_0x20ff(_0x20efa2,_0x38abc1);}(function(_0x5bfe42,_0x57eea8){const _0x287ad2=a8_0x20ff,_0x330994=_0x5bfe42();while(!![]){try{const _0x32a73c=-parseInt(_0x287ad2(0x7e))/0x1*(-parseInt(_0x287ad2(0x91))/0x2)+parseInt(_0x287ad2(0x98))/0x3*(parseInt(_0x287ad2(0x8c))/0x4)+parseInt(_0x287ad2(0x88))/0x5+-parseInt(_0x287ad2(0x8a))/0x6*(-parseInt(_0x287ad2(0x82))/0x7)+parseInt(_0x287ad2(0x96))/0x8*(parseInt(_0x287ad2(0x84))/0x9)+parseInt(_0x287ad2(0x89))/0xa+parseInt(_0x287ad2(0x86))/0xb*(-parseInt(_0x287ad2(0x8f))/0xc);if(_0x32a73c===_0x57eea8)break;else _0x330994['push'](_0x330994['shift']());}catch(_0x6592f7){_0x330994['push'](_0x330994['shift']());}}}(a8_0x52b2,0xaceb5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x2a95b3(0x87));exports['command']=a8_0x2a95b3(0x85),exports[a8_0x2a95b3(0x81)]=a8_0x2a95b3(0x95),exports[a8_0x2a95b3(0x8b)]=function(_0x5330ac){const _0x42169e=a8_0x2a95b3,_0x3f8882={};_0x3f8882[_0x42169e(0x8d)]=_0x42169e(0x80),_0x3f8882[_0x42169e(0x94)]=_0x42169e(0x7f);const _0x1431cf=_0x3f8882;return _0x5330ac[_0x42169e(0x97)](HELP_HEADER_MESSAGE[_0x42169e(0x85)])[_0x42169e(0x92)](HELP_FOOTER_MESSAGE)[_0x42169e(0x8e)](_0x1431cf[_0x42169e(0x8d)])['demandCommand']()[_0x42169e(0x83)]()[_0x42169e(0x90)]()[_0x42169e(0x7f)](_0x1431cf[_0x42169e(0x94)]);},exports[a8_0x2a95b3(0x93)]=function(_0x5c5f21){};
|