browserstack-node-sdk 1.34.7 → 1.34.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/globals.js +1 -1
  101. package/src/helpers/helper.js +1 -1
  102. package/src/helpers/logger.js +1 -1
  103. package/src/helpers/patchHelpers.js +1 -1
  104. package/src/helpers/percy/Percy.js +1 -1
  105. package/src/helpers/percy/PercyBinary.js +1 -1
  106. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  107. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  108. package/src/helpers/percy/PercySDK.js +1 -1
  109. package/src/helpers/percy/index.js +1 -1
  110. package/src/helpers/percy/utils.js +1 -1
  111. package/src/helpers/performance-tester.js +1 -1
  112. package/src/helpers/request-spy.js +1 -1
  113. package/src/helpers/setKeepAlive.js +1 -1
  114. package/src/helpers/test-observability/constants.js +1 -1
  115. package/src/helpers/test-observability/error-handler.js +1 -1
  116. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  117. package/src/helpers/test-observability/sessionHandler.js +1 -1
  118. package/src/helpers/test-observability/utils.js +1 -1
  119. package/src/helpers/testhub/constants.js +1 -1
  120. package/src/helpers/testhub/testhubHandler.js +1 -1
  121. package/src/helpers/testhub/utils.js +1 -1
  122. package/src/helpers/timeoutPromise.js +1 -1
  123. package/src/helpers/utilities.js +1 -1
  124. package/src/helpers/w3cMapping.js +1 -1
  125. package/src/hubAllocationMethods.js +1 -1
  126. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a3_0x107ac8=a3_0x54c7;function a3_0x54c7(_0x4ba21c,_0x152928){const _0x4148cb=a3_0x4148();return a3_0x54c7=function(_0x54c769,_0x5d7f23){_0x54c769=_0x54c769-0x1cd;let _0x1b281c=_0x4148cb[_0x54c769];return _0x1b281c;},a3_0x54c7(_0x4ba21c,_0x152928);}function a3_0x4148(){const _0x5d6d33=['accountId','parent','data','clusterRegion','../utils/utilityMethods','UfFjJ','organizations','dKHkl','rhxhu','YzjTa','PzCYN','ffuQR','storage.objects.get','updateWindowsNodeGroup','customRoleName','default','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','tfuUe','yWBfd','IENxK','.\x20Error:\x20','RaESg','JPqEa','deleteCluster','storage.multipartUploads.create','nRblT','IOYFD','hdNYJ','storage.buckets.listEffectiveTags','159915DAWHYu','petmX','724986uuGvuM','machineType','JXIKN','otukX','/clusters/','ytIZc','ojpIk','projects','vxoHu','project_id','FYAiM','cloudProviderName','ogHot','joQOw','NetworksClient','ZUyeo','4TkgGhm','checkServiceAccount','Cannot\x20find\x20subnets\x20','sendGCPInfoToHST','setupNewCluster','instanceType','utf-8','serviceAccountName','clusters','isClusterPresent','credentialsPath','shDHt','XobJO','FKDki','storage.buckets.create','FMsio','vWrLf','listClusters','templates','ODpqA','autoscaling','OfmQi','MgtYW','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','accessKey','/roles/','list','fBTUW','Service\x20account\x20already\x20exists,\x20skipping','cVtqc','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','DONE','serviceAccounts','hkezZ','aVDKl','gcpresources','jqDAe','storage.buckets.get','config','sVeWL','execSync','sXZqg','ReigJ','fFvEN','PhujZ','RESOURCES','projectId','resourceLabels','KSiFs','JYPhJ','profileId','gEDCj','keyFile','5633650wuGlgn','turboscale-service-account','Cluster\x20creation\x20failed','WUHKz','storage.objects.delete','getCluster','name','network','PNMOk','loadBalancer','@google-cloud/container','aXjoW','yEFTj','gcp_credentials.json','ZHnIJ','jRaEw','LPjoC','getClient','AIOVr','toLowerCase','./CloudProvider','rIZsO','\x20--windows-os-version=ltsc2022\x20--region\x20','21400OxRBkU','xgSRS','jxmUx','EitIl','AdPUJ','DJWFn','Turboscale\x20Custom\x20Role','Bwevb','projects/','setupServiceAccount','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','NtasZ','koAuA','auth','turboscale_custom_role','../utils/gridComponents','googleapis','Creating\x20service\x20account','Pltpk','AIhDE','length','nwnNM','GKE\x20Cluster\x20deletion\x20failed','getClusterInfo','/subnetworks/','282LnoEWC','setCachedCredsInRegistry','VNCku','297554eJbwaE','storage.objects.list','GoogleCloudProvider','bstackUsername','storage.buckets.getObjectInsights','Deleting\x20the\x20cluster\x20','VHQNS','Csxyx','yTImt','iujCy','PilZd','wNvYU','ZHtSw','status','clusterName','accounts','qQlYE','webSocketUtils','YKaYA','qYksn','iLQQL','JEsyp','nNLMO','cloudProvider','ZbYXO','get','init','\x20--quiet\x20--user-output-enabled=false','ingress','location','jLhfT','join','LpclF','OHQiW','vfduf','PSRac','dSuTr','getKubeConfigData','storage.buckets.getIamPolicy','ytLOF','exec','BchoR','tJBnx','FgLfm','../config/constants','ubmxJ','OHQPX','CpIOb','9qllVqM','ohRkf','child_process','2|0|1|8|3|4|6|5|7','HPzbc','.iam.gserviceaccount.com','nONer','Creating\x20GKE\x20Cluster','PUT','oimwF','ujPtU','yrhwV','FVHvE','UjXRq','txlGE','qLWDm','message','fPKRx','ZiAoH','vzCMr','emSLr','SJEDo','../utils/userInput','storage.buckets.update','FsybX','afxVv','/regions/','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','roles','concat','GcSCP','YleHq','gke_','QuJrV','DCJmb','https://www.googleapis.com/compute/v1/projects/','lAjft','HLqja','browserstack','getIamPolicy','storage.buckets.delete','146804Pqvnns','JJfXl','QCPBo','2227192SnfpZD','Afyfq','updateClusterRegion','apOWA','TXcZC','/serviceAccounts/','vpcInfo','lqxQo','@google-cloud/compute','newRegion','DVmhu','yprQq','type','mCVdD','split','kUCwf','path','McrkF','aBLqN','rws','YhLlh','nodePools','svJNZ','networkClient','OzaSV','requestBody','log','ZeUAi','sendEventToBackend','iamClient','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','@google-cloud/resource-manager','stack','util','fAKOf','getUserInput','rSKBm','got','ANsOv','rxzvZ','aayTd','storage.objects.create','managedby','storage.objects.getIamPolicy','xlJFO','cPjvc','username','CYPKb','isSubnetsValid','readFileAsync','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','aBpGm','error','/packages/cli/update-cluster-region','minNodeCount','BWIKv','ttGlM','kEnYI','info','setIamPolicy','ZLjPS','YeanZ','AKIEi','zgPAP','fDidG','NCdGK','supRg','tGeic','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','regionmap.json','osULT','nWSia','https://www.googleapis.com/auth/cloud-platform','TNLLs','https://','Ctlsu','maxNodeCount','FGOMR','title','create','FflOx','JJcLY','minNodes','scopes','pxrWw','cQYZQ','Cluster\x20deletion\x20completed','/locations/','OKTkh','resourcemanagerClient','endpoint','toString','NfNko','subnetwork','createCluster','members','QDTyT','BTCpF','replace','ZADdd','cwcsV','vRapS','locations','iam.serviceAccounts.signBlob','containerClient','MdBuJ','cqVls','WOaUz','wZZQy','neanF','isVPCPresent','AHVuK','bindings','HjPTC','maxNodes','qVJMI','push','xZXhC','qJfLG','bstackAccesskey','fiUOk','xBhcQ','parse'];a3_0x4148=function(){return _0x5d6d33;};return a3_0x4148();}(function(_0x25916c,_0x4e125b){const _0x6b23b0=a3_0x54c7,_0x481f47=_0x25916c();while(!![]){try{const _0x347cfe=-parseInt(_0x6b23b0(0x201))/0x1+parseInt(_0x6b23b0(0x27b))/0x2+-parseInt(_0x6b23b0(0x203))/0x3*(-parseInt(_0x6b23b0(0x213))/0x4)+-parseInt(_0x6b23b0(0x25f))/0x5*(-parseInt(_0x6b23b0(0x278))/0x6)+parseInt(_0x6b23b0(0x2d4))/0x7+parseInt(_0x6b23b0(0x2d7))/0x8+parseInt(_0x6b23b0(0x2ab))/0x9*(-parseInt(_0x6b23b0(0x248))/0xa);if(_0x347cfe===_0x4e125b)break;else _0x481f47['push'](_0x481f47['shift']());}catch(_0x2588e6){_0x481f47['push'](_0x481f47['shift']());}}}(a3_0x4148,0x28f0a));const fs=require('fs'),path=require(a3_0x107ac8(0x2e7)),got=require(a3_0x107ac8(0x2fc)),util=require(a3_0x107ac8(0x2f8)),cp=require(a3_0x107ac8(0x2ad)),{google}=require(a3_0x107ac8(0x26f)),compute=require(a3_0x107ac8(0x2df)),container=require(a3_0x107ac8(0x252)),{ProjectsClient}=require(a3_0x107ac8(0x2f6))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x107ac8(0x25c)),{getDirForConfig,getAuthHeader}=require(a3_0x107ac8(0x1e8)),{deleteRoutingDeps,deleteAgent}=require(a3_0x107ac8(0x26e)),{inputConfirmation,closeInput}=require(a3_0x107ac8(0x2c1)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x107ac8(0x2a7));class GoogleCloudProvider extends CloudProvider{constructor(_0x37e209,_0x4393f7,_0x4be937,_0x260cb){const _0x236809=a3_0x107ac8,_0x3a7a62={};_0x3a7a62['sVeWL']=_0x236809(0x2ae),_0x3a7a62[_0x236809(0x212)]=_0x236809(0x26d),_0x3a7a62[_0x236809(0x2e2)]=_0x236809(0x249);const _0x2ab4ed=_0x3a7a62,_0x3440ae=_0x2ab4ed[_0x236809(0x23a)][_0x236809(0x2e5)]('|');let _0x52a513=0x0;while(!![]){switch(_0x3440ae[_0x52a513++]){case'0':this[_0x236809(0x1d1)]=null;continue;case'1':this[_0x236809(0x2ee)]=null;continue;case'2':super(GCP,_0x37e209,_0x4393f7,_0x4be937,_0x260cb);continue;case'3':this[_0x236809(0x2f4)]=null;continue;case'4':this[_0x236809(0x21d)]=null;continue;case'5':this[_0x236809(0x1f2)]=_0x2ab4ed['ZUyeo'];continue;case'6':this[_0x236809(0x241)]=null;continue;case'7':this[_0x236809(0x21a)]=_0x2ab4ed[_0x236809(0x2e2)];continue;case'8':this[_0x236809(0x330)]=null;continue;}break;}}async['sendResourceDataToHST'](){const _0x1bc3e7=a3_0x107ac8;this[_0x1bc3e7(0x216)](this['rws']);}async['init'](){const _0x3aed05=a3_0x107ac8;await super[_0x3aed05(0x295)]();const _0x452b29=this[_0x3aed05(0x21d)],_0x43e545={};_0x43e545[_0x3aed05(0x247)]=_0x452b29,this[_0x3aed05(0x1d1)]=new container['v1']['ClusterManagerClient'](_0x43e545);const _0x54c1e4={};_0x54c1e4['keyFile']=_0x452b29,this[_0x3aed05(0x2ee)]=new compute['v1'][(_0x3aed05(0x211))](_0x54c1e4);const _0x145f06={};return _0x145f06[_0x3aed05(0x247)]=_0x452b29,this['resourcemanagerClient']=new ProjectsClient(_0x145f06),this[_0x3aed05(0x2f4)]=google['iam']('v1'),this;}async[a3_0x107ac8(0x2fa)](_0x3d3c11,_0x497915){const _0x4b6c33=a3_0x107ac8,_0x1a5a03={'fDidG':function(_0xb916f8,_0x38ef72){return _0xb916f8(_0x38ef72);},'wNvYU':_0x4b6c33(0x231),'jRaEw':function(_0x458beb){return _0x458beb();},'rIZsO':_0x4b6c33(0x255)},_0x1b7b3d=await _0x1a5a03[_0x4b6c33(0x317)](_0x3d3c11,_0x1a5a03[_0x4b6c33(0x286)]);let _0x420ac3=await fs[_0x4b6c33(0x308)](_0x1b7b3d);_0x420ac3=_0x420ac3[_0x4b6c33(0x332)]();const _0x179e04=_0x1a5a03[_0x4b6c33(0x257)](getDirForConfig),_0xa662ed=path[_0x4b6c33(0x29a)](_0x179e04,_0x1a5a03[_0x4b6c33(0x25d)]);fs['writeFileSync'](_0xa662ed,_0x420ac3),this['credentialsPath']=_0xa662ed;const _0x4868d7={};return _0x4868d7[_0x4b6c33(0x247)]=_0xa662ed,_0x497915['cloudProvider'][GCP]=_0x4868d7,_0x420ac3=JSON[_0x4b6c33(0x1e3)](_0x420ac3),this[_0x4b6c33(0x241)]=_0x420ac3['project_id'],_0x497915;}async[a3_0x107ac8(0x279)](_0x56bc1e){const _0x5274e7=a3_0x107ac8;this[_0x5274e7(0x21d)]=_0x56bc1e[this[_0x5274e7(0x20e)]][_0x5274e7(0x247)];let _0x529dcb=await fs[_0x5274e7(0x308)](this[_0x5274e7(0x21d)]);_0x529dcb=JSON[_0x5274e7(0x1e3)](_0x529dcb),this['projectId']=_0x529dcb[_0x5274e7(0x20c)];}['getGridHostname'](_0x8a9b78){const _0x48ed6b=a3_0x107ac8;return _0x8a9b78['status'][_0x48ed6b(0x251)][_0x48ed6b(0x297)][0x0]['ip'];}async['isBrowserstackCluster'](){const _0x17df62=a3_0x107ac8,_0x29274b={};_0x29274b[_0x17df62(0x2c9)]=function(_0x53bb17,_0x5501ab){return _0x53bb17===_0x5501ab;},_0x29274b['ZHnIJ']=_0x17df62(0x1fd),_0x29274b[_0x17df62(0x1eb)]=function(_0x26ba6c,_0x28c263){return _0x26ba6c!==_0x28c263;},_0x29274b[_0x17df62(0x2db)]=_0x17df62(0x29e),_0x29274b[_0x17df62(0x2a8)]='TQael',_0x29274b[_0x17df62(0x284)]=_0x17df62(0x2d1),_0x29274b[_0x17df62(0x1cd)]=function(_0x378c7a,_0x5a9ee8){return _0x378c7a!==_0x5a9ee8;},_0x29274b[_0x17df62(0x322)]=_0x17df62(0x327);const _0x494f4a=_0x29274b;try{if(_0x494f4a[_0x17df62(0x2c9)](_0x494f4a[_0x17df62(0x256)],_0x494f4a[_0x17df62(0x256)])){const _0x55c361=await this['getClusterInfo']();if(_0x55c361[0x0]?.[_0x17df62(0x242)]?.[_0x17df62(0x301)]){if(_0x494f4a[_0x17df62(0x1eb)](_0x494f4a[_0x17df62(0x2db)],_0x494f4a[_0x17df62(0x2a8)])){const _0x50f5b1=_0x55c361[0x0]?.['resourceLabels']?.['managedby'];return _0x50f5b1&&_0x494f4a[_0x17df62(0x2c9)](_0x50f5b1[_0x17df62(0x25b)](),_0x494f4a[_0x17df62(0x284)]);}else _0x1d8b24[_0x17df62(0x23b)](_0x17df62(0x1f4)+this['clusterName']+_0x17df62(0x25e)+_0xab582b[_0x17df62(0x1e7)]+_0x17df62(0x296));}}else _0x3ef0d3[_0x17df62(0x1dd)](_0x2497da);}catch(_0x1dfb22){if(_0x494f4a[_0x17df62(0x1cd)](_0x494f4a[_0x17df62(0x322)],_0x494f4a[_0x17df62(0x322)]))_0x107e21['clusterRegion']=_0x3d3c7a[0x0],this[_0x17df62(0x2d9)]();else return![];}return![];}async['isClusterPresent'](){const _0x46781f=a3_0x107ac8,_0x515f1a={'otukX':function(_0x39d7e5,_0x6ec40d){return _0x39d7e5===_0x6ec40d;},'xZXhC':_0x46781f(0x2f5),'zgPAP':function(_0x12f7d3,_0x221d83){return _0x12f7d3===_0x221d83;},'xgSRS':function(_0x50bf1e,_0x2cfd3d){return _0x50bf1e!==_0x2cfd3d;},'UjXRq':'default','yEFTj':_0x46781f(0x225),'IENxK':_0x46781f(0x236),'lAjft':'regionmap.json','FqBOT':_0x46781f(0x219),'xBhcQ':function(_0x2ccaa4,_0x1ec29f){return _0x2ccaa4!==_0x1ec29f;},'aVDKl':function(_0x9f3a02,_0xcfb1fe){return _0x9f3a02===_0xcfb1fe;},'vzCMr':_0x46781f(0x1d8),'SRRiL':function(_0x174e25,_0x404662){return _0x174e25===_0x404662;},'apOWA':_0x46781f(0x2c3),'YeanZ':function(_0x155f32,_0x38f6bd){return _0x155f32!==_0x38f6bd;},'FgLfm':_0x46781f(0x319),'OfmQi':function(_0x44656e,_0xd9af21){return _0x44656e!==_0xd9af21;},'IOYFD':_0x46781f(0x304),'JPqEa':_0x46781f(0x2fe),'vWrLf':function(_0x59505c,_0x3387e2){return _0x59505c===_0x3387e2;},'yrhwV':function(_0x2cd64d,_0x1b99aa){return _0x2cd64d!==_0x1b99aa;},'MgtYW':'emJJX','Bwevb':_0x46781f(0x313),'FKDki':_0x46781f(0x237),'yTImt':function(_0x2c7e47,_0x41a0dc){return _0x2c7e47>_0x41a0dc;},'HjPTC':function(_0x5894ff,_0x4c08c5){return _0x5894ff===_0x4c08c5;},'qYksn':'fEgbn','HLqja':function(_0x9a195e,_0x21e267){return _0x9a195e<_0x21e267;},'nYuVe':_0x46781f(0x1d6),'GvIBN':_0x46781f(0x23d),'AKIEi':function(_0x1c7b9d,_0x1d82db){return _0x1c7b9d+_0x1d82db;},'CuFZG':function(_0x5c9301,_0xc387f3){return _0x5c9301(_0xc387f3);},'txlGE':_0x46781f(0x22a),'QuJrV':function(_0x563b4e,_0x345139){return _0x563b4e(_0x345139);},'NCdGK':function(_0x3e244e,_0x270b06){return _0x3e244e(_0x270b06);},'jLhfT':function(_0x37df59,_0x1cce67){return _0x37df59<=_0x1cce67;},'fAKOf':_0x46781f(0x33a),'ohRkf':_0x46781f(0x2c0),'qJfLG':function(_0x423114){return _0x423114();},'WUHKz':function(_0x3a6360,_0x3ccb69){return _0x3a6360-_0x3ccb69;},'ZiAoH':function(_0x5d3035,_0x5dd54a){return _0x5d3035!==_0x5dd54a;},'YKaYA':function(_0x4604d3,_0x42a8e4){return _0x4604d3===_0x42a8e4;},'AKTYi':_0x46781f(0x310),'VNCku':_0x46781f(0x1ec)};let _0x2968a4=await fs[_0x46781f(0x308)](path['join'](__dirname,'..',_0x515f1a[_0x46781f(0x254)],_0x515f1a[_0x46781f(0x1f7)],_0x515f1a[_0x46781f(0x2cf)]),_0x515f1a['FqBOT']);_0x2968a4=JSON[_0x46781f(0x1e3)](_0x2968a4);let _0x5f1003=[global_registry[_0x46781f(0x1e7)]];if(_0x515f1a[_0x46781f(0x1e2)](_0x2968a4[global_registry[_0x46781f(0x1e7)]],undefined)){if(_0x515f1a[_0x46781f(0x235)](_0x515f1a[_0x46781f(0x2be)],_0x515f1a[_0x46781f(0x2be)]))_0x5f1003=_0x5f1003[_0x46781f(0x2c8)](_0x2968a4[global_registry[_0x46781f(0x1e7)]]);else for(const _0x25c0cb of _0x5d892a['data'][_0x46781f(0x28a)]){if(_0x515f1a[_0x46781f(0x206)](_0x25c0cb?.[_0x46781f(0x24e)],_0x46781f(0x267)+this[_0x46781f(0x241)]+_0x46781f(0x2dc)+this[_0x46781f(0x21a)]+'@'+this['projectId']+_0x46781f(0x2b0)))return!![];}}const _0x4bc551=[];for await(const _0xd5311a of _0x5f1003){if(_0x515f1a['SRRiL'](_0x515f1a['apOWA'],_0x515f1a[_0x46781f(0x2da)])){const _0x5d2c01={};_0x5d2c01[_0x46781f(0x1e5)]=_0x46781f(0x267)+this[_0x46781f(0x241)]+_0x46781f(0x32e)+_0xd5311a;const _0x4b0f46=_0x5d2c01,_0xedad2f=await this[_0x46781f(0x1d1)][_0x46781f(0x224)](_0x4b0f46);for(const _0x184420 of _0xedad2f[0x0][_0x46781f(0x21b)]){_0x515f1a[_0x46781f(0x314)](_0x515f1a['FgLfm'],_0x515f1a[_0x46781f(0x2a6)])?_0x1dff98=_0x3dd3a9[_0x46781f(0x2c8)](_0x1b0c23[_0x1684c7['clusterRegion']]):_0x515f1a[_0x46781f(0x206)](_0x184420[_0x46781f(0x24e)],this[_0x46781f(0x289)])&&(_0x515f1a[_0x46781f(0x228)](_0x515f1a[_0x46781f(0x1fe)],_0x515f1a[_0x46781f(0x1fa)])?_0x4bc551[_0x46781f(0x1dd)](_0xd5311a):(_0x9ce501['error'](_0x515f1a[_0x46781f(0x1de)]),_0x5a6ae1['exit'](0x1)));}}else _0x53bdbb[_0x46781f(0x2dd)][_0x46781f(0x1dd)](_0x230054);}const _0xafe975=_0x4bc551[_0x46781f(0x273)];if(_0x515f1a['vWrLf'](_0xafe975,0x1)){if(_0x515f1a[_0x46781f(0x2b6)](_0x515f1a[_0x46781f(0x229)],_0x515f1a[_0x46781f(0x266)])){if(_0x515f1a[_0x46781f(0x1e2)](global_registry['clusterRegion'],_0x4bc551[0x0])){if(_0x515f1a['aVDKl'](_0x515f1a[_0x46781f(0x220)],_0x515f1a[_0x46781f(0x220)]))global_registry[_0x46781f(0x1e7)]=_0x4bc551[0x0],this['updateClusterRegion']();else return _0x11d536['error'](_0x46781f(0x215)+_0xe91a78+_0x46781f(0x1f8)+_0x46e97d),[![],[]];}return!![];}else this[_0x46781f(0x216)](this['rws']);}else{if(_0x515f1a[_0x46781f(0x283)](_0xafe975,0x1)){if(_0x515f1a[_0x46781f(0x1da)](_0x515f1a[_0x46781f(0x28e)],_0x515f1a[_0x46781f(0x28e)])){console[_0x46781f(0x2f1)]('Found\x20cluster\x20with\x20name\x20\x27'+this[_0x46781f(0x289)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x3f7851=0x0;_0x515f1a[_0x46781f(0x2d0)](_0x3f7851,_0xafe975);_0x3f7851+=0x1){if(_0x515f1a[_0x46781f(0x223)](_0x515f1a['nYuVe'],_0x515f1a['GvIBN']))return![];else console[_0x46781f(0x2f1)]('['+_0x515f1a[_0x46781f(0x315)](_0x3f7851,0x1)+']\x20'+_0x4bc551[_0x3f7851]);}const _0x12ce89=await _0x515f1a['CuFZG'](inputConfirmation,_0x515f1a[_0x46781f(0x2b9)]),_0x36e3ef=_0x515f1a[_0x46781f(0x2cc)](Number,_0x12ce89);if(_0x515f1a[_0x46781f(0x318)](isNaN,_0x36e3ef)||_0x515f1a[_0x46781f(0x299)](_0x36e3ef,0x0)||_0x515f1a[_0x46781f(0x283)](_0x36e3ef,_0xafe975)){if(_0x515f1a[_0x46781f(0x314)](_0x515f1a[_0x46781f(0x2f9)],_0x515f1a[_0x46781f(0x2ac)]))console[_0x46781f(0x30b)](_0x515f1a[_0x46781f(0x1de)]),process['exit'](0x1);else{const _0x2f382f=_0x46781f(0x2ce)+this[_0x46781f(0x241)]+_0x46781f(0x2c5)+_0x52a434[_0x46781f(0x1e7)]+_0x46781f(0x277)+_0x58eeaf[0x0];if(_0x515f1a[_0x46781f(0x316)](_0x2f382f,_0x923455))return[!![],_0x7e49a6];}}_0x515f1a[_0x46781f(0x1df)](closeInput),logger[_0x46781f(0x311)](_0x46781f(0x2c6)+_0x4bc551[_0x515f1a['WUHKz'](_0x36e3ef,0x1)]);if(_0x515f1a[_0x46781f(0x2bd)](global_registry[_0x46781f(0x1e7)],_0x4bc551[_0x515f1a['WUHKz'](_0x36e3ef,0x1)])){if(_0x515f1a[_0x46781f(0x28d)](_0x515f1a['AKTYi'],_0x515f1a[_0x46781f(0x27a)]))return _0x515f1a[_0x46781f(0x260)](_0x43234d[_0x46781f(0x1e7)],_0x39ba35[0x0])&&(_0x28e249[_0x46781f(0x1e7)]=_0x11496f[0x0],this[_0x46781f(0x2d9)]()),!![];else global_registry['clusterRegion']=_0x4bc551[_0x515f1a[_0x46781f(0x24b)](_0x36e3ef,0x1)],this[_0x46781f(0x2d9)]();}return!![];}else _0x130aa8=_0x515f1a[_0x46781f(0x2b8)];}}return![];}async[a3_0x107ac8(0x276)](){const _0xa67f80=a3_0x107ac8,_0x55decd=await this[_0xa67f80(0x1d1)][_0xa67f80(0x24d)]({'name':'projects/'+this[_0xa67f80(0x241)]+_0xa67f80(0x32e)+global_registry[_0xa67f80(0x1e7)]+_0xa67f80(0x207)+this['clusterName']});return _0x55decd;}async[a3_0x107ac8(0x2a0)](){const _0x4d8cbd=a3_0x107ac8,_0x18e799={};_0x18e799[_0x4d8cbd(0x29c)]='gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false',_0x18e799[_0x4d8cbd(0x2bc)]=_0x4d8cbd(0x225),_0x18e799[_0x4d8cbd(0x20f)]=_0x4d8cbd(0x236),_0x18e799[_0x4d8cbd(0x1d3)]='KubeConfigTemplate.yaml';const _0x164bed=_0x18e799;cp[_0x4d8cbd(0x23b)](_0x164bed[_0x4d8cbd(0x29c)]),cp[_0x4d8cbd(0x2a3)]('gcloud\x20auth\x20login\x20--cred-file='+this[_0x4d8cbd(0x21d)]);const _0x301f0e=await this[_0x4d8cbd(0x276)](),_0x4b81cf=_0x4d8cbd(0x2cb)+this[_0x4d8cbd(0x241)]+'_'+global_registry[_0x4d8cbd(0x1e7)]+'_'+this[_0x4d8cbd(0x289)];let _0x523769=await fs[_0x4d8cbd(0x308)](path[_0x4d8cbd(0x29a)](__dirname,'..',_0x164bed[_0x4d8cbd(0x2bc)],_0x164bed[_0x4d8cbd(0x20f)],_0x164bed[_0x4d8cbd(0x1d3)]));return _0x523769=_0x523769['toString'](),_0x523769=_0x523769[_0x4d8cbd(0x339)](/<CLUSTER_NAME>/g,_0x4b81cf),_0x523769=_0x523769['replace'](/<CLUSTER_URL>/g,_0x4d8cbd(0x321)+_0x301f0e[0x0][_0x4d8cbd(0x331)]),_0x523769=_0x523769['replace'](/<CERTIFICATE_DATA>/g,_0x301f0e[0x0]['masterAuth']['clusterCaCertificate']),_0x523769;}async[a3_0x107ac8(0x214)](){const _0x18020b=a3_0x107ac8,_0x212a7f={};_0x212a7f[_0x18020b(0x32b)]=function(_0x5e0d9d,_0x428dfd){return _0x5e0d9d===_0x428dfd;},_0x212a7f[_0x18020b(0x2a9)]='browserstack',_0x212a7f[_0x18020b(0x337)]=_0x18020b(0x31f),_0x212a7f['XobJO']='kOZXI',_0x212a7f[_0x18020b(0x2b4)]=_0x18020b(0x1f5),_0x212a7f[_0x18020b(0x1ff)]=function(_0x18ea12,_0x3d5663){return _0x18ea12===_0x3d5663;},_0x212a7f['CfLDt']=function(_0x50bc4f,_0x1900bb){return _0x50bc4f!==_0x1900bb;},_0x212a7f[_0x18020b(0x2d5)]=_0x18020b(0x1f6);const _0x1af5eb=_0x212a7f,_0x571aad={};_0x571aad['scopes']=[_0x1af5eb['QDTyT']],_0x571aad[_0x18020b(0x247)]=this[_0x18020b(0x21d)];const _0x391817=await google[_0x18020b(0x26c)][_0x18020b(0x259)](_0x571aad),_0x1516c8=await this[_0x18020b(0x2f4)][_0x18020b(0x20a)]['serviceAccounts'][_0x18020b(0x22d)]({'name':_0x18020b(0x267)+this[_0x18020b(0x241)],'auth':_0x391817});if(_0x1516c8?.[_0x18020b(0x1e6)]?.[_0x18020b(0x28a)]){if(_0x1af5eb[_0x18020b(0x32b)](_0x1af5eb[_0x18020b(0x21f)],_0x1af5eb[_0x18020b(0x21f)]))for(const _0x2786b2 of _0x1516c8[_0x18020b(0x1e6)][_0x18020b(0x28a)]){if(_0x1af5eb[_0x18020b(0x32b)](_0x1af5eb['oimwF'],_0x1af5eb[_0x18020b(0x2b4)])){if(_0x1af5eb[_0x18020b(0x1ff)](_0x2786b2?.['name'],_0x18020b(0x267)+this[_0x18020b(0x241)]+_0x18020b(0x2dc)+this['serviceAccountName']+'@'+this[_0x18020b(0x241)]+_0x18020b(0x2b0)))return _0x1af5eb['CfLDt'](_0x1af5eb[_0x18020b(0x2d5)],_0x1af5eb[_0x18020b(0x2d5)])?!![]:!![];}else{if(_0x1af5eb[_0x18020b(0x32b)](_0x52c60a?.[_0x18020b(0x24e)],_0x18020b(0x267)+this[_0x18020b(0x241)]+_0x18020b(0x2dc)+this[_0x18020b(0x21a)]+'@'+this['projectId']+_0x18020b(0x2b0)))return!![];}}else{const _0xa25349=_0x22df78[0x0]?.[_0x18020b(0x242)]?.[_0x18020b(0x301)];return _0xa25349&&_0x1af5eb[_0x18020b(0x32b)](_0xa25349[_0x18020b(0x25b)](),_0x1af5eb[_0x18020b(0x2a9)]);}}return![];}async[a3_0x107ac8(0x268)](){const _0x49eae7=a3_0x107ac8,_0x52bb57={};_0x52bb57[_0x49eae7(0x2e8)]=function(_0x225ed7,_0x2897c){return _0x225ed7+_0x2897c;},_0x52bb57[_0x49eae7(0x2a2)]=function(_0x38221a,_0x35e8f4){return _0x38221a!==_0x35e8f4;},_0x52bb57[_0x49eae7(0x2e9)]=_0x49eae7(0x226),_0x52bb57[_0x49eae7(0x234)]=_0x49eae7(0x22f),_0x52bb57[_0x49eae7(0x293)]=_0x49eae7(0x270),_0x52bb57[_0x49eae7(0x28b)]=_0x49eae7(0x31f),_0x52bb57[_0x49eae7(0x22e)]=_0x49eae7(0x1d0),_0x52bb57[_0x49eae7(0x1d5)]=_0x49eae7(0x221),_0x52bb57[_0x49eae7(0x287)]='storage.buckets.createTagBinding',_0x52bb57[_0x49eae7(0x31d)]=_0x49eae7(0x2d3),_0x52bb57[_0x49eae7(0x2eb)]='storage.buckets.deleteTagBinding',_0x52bb57[_0x49eae7(0x253)]=_0x49eae7(0x238),_0x52bb57['joQOw']=_0x49eae7(0x2a1),_0x52bb57[_0x49eae7(0x2e1)]=_0x49eae7(0x27f),_0x52bb57[_0x49eae7(0x1e1)]='storage.buckets.list',_0x52bb57[_0x49eae7(0x2e4)]=_0x49eae7(0x200),_0x52bb57['cVtqc']='storage.buckets.listTagBindings',_0x52bb57[_0x49eae7(0x272)]='storage.buckets.setIamPolicy',_0x52bb57[_0x49eae7(0x2fb)]=_0x49eae7(0x2c2),_0x52bb57[_0x49eae7(0x264)]='storage.multipartUploads.abort',_0x52bb57[_0x49eae7(0x1ee)]=_0x49eae7(0x1fc),_0x52bb57[_0x49eae7(0x303)]='storage.multipartUploads.list',_0x52bb57[_0x49eae7(0x333)]='storage.multipartUploads.listParts',_0x52bb57[_0x49eae7(0x205)]=_0x49eae7(0x300),_0x52bb57[_0x49eae7(0x2cd)]=_0x49eae7(0x24c),_0x52bb57[_0x49eae7(0x29f)]=_0x49eae7(0x1f0),_0x52bb57[_0x49eae7(0x29d)]=_0x49eae7(0x302),_0x52bb57['sCnmH']=_0x49eae7(0x27c),_0x52bb57['cQYZQ']='storage.objects.setIamPolicy',_0x52bb57[_0x49eae7(0x2b5)]='storage.objects.update',_0x52bb57[_0x49eae7(0x28f)]=_0x49eae7(0x265),_0x52bb57[_0x49eae7(0x2aa)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x491a05=_0x52bb57,_0x25dc41=await this[_0x49eae7(0x214)]();if(_0x25dc41){if(_0x491a05[_0x49eae7(0x2a2)](_0x491a05['aBLqN'],_0x491a05[_0x49eae7(0x2e9)]))_0x53fe56[_0x49eae7(0x2f1)]('['+_0x491a05[_0x49eae7(0x2e8)](_0x4fdcc8,0x1)+']\x20'+_0x5efcf1[_0x40e340]);else{logger[_0x49eae7(0x311)](_0x491a05[_0x49eae7(0x234)]);return;}}logger[_0x49eae7(0x311)](_0x491a05['ZbYXO']);const _0x28bc59={};_0x28bc59[_0x49eae7(0x32a)]=[_0x491a05[_0x49eae7(0x28b)]],_0x28bc59['keyFile']=this[_0x49eae7(0x21d)];const _0x5dc021=await google[_0x49eae7(0x26c)]['getClient'](_0x28bc59),_0x518ea3={};_0x518ea3['includedPermissions']=[_0x491a05[_0x49eae7(0x22e)],_0x491a05['wZZQy'],_0x491a05['ZHtSw'],_0x491a05[_0x49eae7(0x31d)],_0x491a05[_0x49eae7(0x2eb)],_0x491a05[_0x49eae7(0x253)],_0x491a05[_0x49eae7(0x210)],_0x491a05[_0x49eae7(0x2e1)],_0x491a05[_0x49eae7(0x1e1)],_0x491a05[_0x49eae7(0x2e4)],_0x491a05[_0x49eae7(0x230)],_0x491a05[_0x49eae7(0x272)],_0x491a05[_0x49eae7(0x2fb)],_0x491a05[_0x49eae7(0x264)],_0x491a05['PzCYN'],_0x491a05[_0x49eae7(0x303)],_0x491a05[_0x49eae7(0x333)],_0x491a05[_0x49eae7(0x205)],_0x491a05[_0x49eae7(0x2cd)],_0x491a05['dSuTr'],_0x491a05['vfduf'],_0x491a05['sCnmH'],_0x491a05[_0x49eae7(0x32c)],_0x491a05['ujPtU']],_0x518ea3[_0x49eae7(0x325)]=_0x491a05[_0x49eae7(0x28f)],await this[_0x49eae7(0x2f4)][_0x49eae7(0x1ea)][_0x49eae7(0x2c7)][_0x49eae7(0x326)]({'parent':_0x49eae7(0x267)+this[_0x49eae7(0x241)],'requestBody':{'role':_0x518ea3,'roleId':this['customRoleName']},'auth':_0x5dc021});const _0x44c0a6={};_0x44c0a6[_0x49eae7(0x24e)]=_0x49eae7(0x267)+this['projectId'],_0x44c0a6[_0x49eae7(0x2f0)]={},_0x44c0a6[_0x49eae7(0x26c)]=_0x5dc021,_0x44c0a6[_0x49eae7(0x2f0)][_0x49eae7(0x1e4)]=this['serviceAccountName'];const _0x43cc02=_0x44c0a6;await this[_0x49eae7(0x2f4)][_0x49eae7(0x20a)][_0x49eae7(0x233)][_0x49eae7(0x326)](_0x43cc02);let _0x1406c9=await this['resourcemanagerClient'][_0x49eae7(0x2d2)]({'resource':_0x49eae7(0x267)+this[_0x49eae7(0x241)]});_0x1406c9=_0x1406c9[0x0][_0x49eae7(0x1d9)];const _0xad7cee={};_0xad7cee['role']='projects/'+this[_0x49eae7(0x241)]+_0x49eae7(0x22c)+this[_0x49eae7(0x1f2)],_0xad7cee[_0x49eae7(0x336)]=['serviceAccount:'+this['serviceAccountName']+'@'+this[_0x49eae7(0x241)]+_0x49eae7(0x2b0)],_0x1406c9[_0x49eae7(0x1dd)](_0xad7cee);const _0x4a425e={};_0x4a425e['bindings']=_0x1406c9,await this[_0x49eae7(0x330)][_0x49eae7(0x312)]({'resource':_0x49eae7(0x267)+this[_0x49eae7(0x241)],'policy':_0x4a425e}),logger[_0x49eae7(0x311)](_0x491a05['CpIOb']);}async[a3_0x107ac8(0x217)](_0x11465d='default',_0x4ab810=['default']){const _0x2b6f47=a3_0x107ac8,_0x55e250={};_0x55e250[_0x2b6f47(0x258)]=_0x2b6f47(0x269),_0x55e250[_0x2b6f47(0x282)]=_0x2b6f47(0x31b),_0x55e250['JYPhJ']=function(_0x3362fe,_0x164aa0){return _0x3362fe===_0x164aa0;},_0x55e250[_0x2b6f47(0x274)]=_0x2b6f47(0x2fd),_0x55e250[_0x2b6f47(0x23c)]=_0x2b6f47(0x1f3),_0x55e250[_0x2b6f47(0x209)]=function(_0x4e45c6,_0x1d2d8d){return _0x4e45c6===_0x1d2d8d;},_0x55e250[_0x2b6f47(0x2ca)]=function(_0x31a663,_0x7f59a0){return _0x31a663!==_0x7f59a0;},_0x55e250[_0x2b6f47(0x246)]=_0x2b6f47(0x261);const _0x5e513d=_0x55e250,_0xe4839f={};_0xe4839f[_0x2b6f47(0x2e3)]=WS_EVENTS['LOG'],_0xe4839f[_0x2b6f47(0x2bb)]=_0x5e513d[_0x2b6f47(0x258)],this[_0x2b6f47(0x28c)][_0x2b6f47(0x2f3)](this[_0x2b6f47(0x2ea)],_0xe4839f),logger[_0x2b6f47(0x311)](_0x5e513d[_0x2b6f47(0x282)]);if(!_0x11465d){if(_0x5e513d[_0x2b6f47(0x244)](_0x5e513d[_0x2b6f47(0x274)],_0x5e513d[_0x2b6f47(0x274)]))_0x11465d=_0x5e513d[_0x2b6f47(0x23c)];else return![];}if(!_0x4ab810||_0x5e513d[_0x2b6f47(0x209)](_0x4ab810[_0x2b6f47(0x273)],0x0)){if(_0x5e513d[_0x2b6f47(0x2ca)](_0x5e513d['gEDCj'],_0x5e513d['gEDCj']))return _0x40a5b5['status'][_0x2b6f47(0x251)][_0x2b6f47(0x297)][0x0]['ip'];else _0x4ab810=[_0x5e513d[_0x2b6f47(0x23c)]];}return await this[_0x2b6f47(0x268)](),await this['createCluster'](_0x11465d,_0x4ab810),await this[_0x2b6f47(0x1f1)](),!![];}async[a3_0x107ac8(0x335)](_0x1ef570='default',_0x1a7014=['default']){const _0x4201f7=a3_0x107ac8,_0x74fe3a={};_0x74fe3a[_0x4201f7(0x1d4)]='Service\x20account\x20already\x20exists,\x20skipping',_0x74fe3a[_0x4201f7(0x2d6)]=function(_0x3b34a7,_0x1915d1){return _0x3b34a7-_0x1915d1;},_0x74fe3a[_0x4201f7(0x2a5)]=_0x4201f7(0x24a),_0x74fe3a[_0x4201f7(0x208)]=function(_0x169363,_0x1e21bf){return _0x169363!==_0x1e21bf;},_0x74fe3a[_0x4201f7(0x23f)]=_0x4201f7(0x26a),_0x74fe3a[_0x4201f7(0x2b1)]=_0x4201f7(0x2b2),_0x74fe3a[_0x4201f7(0x262)]=_0x4201f7(0x225),_0x74fe3a[_0x4201f7(0x2e6)]=_0x4201f7(0x236),_0x74fe3a['JBQFh']='gkecluster.json',_0x74fe3a[_0x4201f7(0x23e)]='utf-8',_0x74fe3a['JJcLY']=_0x4201f7(0x31c),_0x74fe3a['FYAiM']=function(_0x144b18,_0x3a9a23){return _0x144b18*_0x3a9a23;},_0x74fe3a[_0x4201f7(0x1ce)]=function(_0xffe439,_0x174631){return _0xffe439===_0x174631;},_0x74fe3a[_0x4201f7(0x291)]=_0x4201f7(0x30f),_0x74fe3a['OzaSV']=function(_0x24c7a0,_0x17d231){return _0x24c7a0===_0x17d231;},_0x74fe3a['VHQNS']=_0x4201f7(0x1e9),_0x74fe3a[_0x4201f7(0x30e)]=_0x4201f7(0x2d8),_0x74fe3a[_0x4201f7(0x222)]=_0x4201f7(0x309),_0x74fe3a['koAuA']=_0x4201f7(0x324);const _0xfab8e6=_0x74fe3a;try{if(_0xfab8e6['ytIZc'](_0xfab8e6[_0x4201f7(0x23f)],_0xfab8e6[_0x4201f7(0x23f)])){_0x500b97[_0x4201f7(0x311)](_0xfab8e6['WOaUz']);return;}else{logger['info'](_0xfab8e6[_0x4201f7(0x2b1)]);let _0x30c6fc=await fs[_0x4201f7(0x308)](path[_0x4201f7(0x29a)](__dirname,'..',_0xfab8e6[_0x4201f7(0x262)],_0xfab8e6[_0x4201f7(0x2e6)],_0xfab8e6['JBQFh']),_0xfab8e6[_0x4201f7(0x23e)]);_0x30c6fc=JSON[_0x4201f7(0x1e3)](_0x30c6fc);let _0x11390b=await fs['readFileAsync'](path['join'](__dirname,'..',_0xfab8e6[_0x4201f7(0x262)],_0xfab8e6[_0x4201f7(0x2e6)],_0xfab8e6[_0x4201f7(0x328)]),_0xfab8e6[_0x4201f7(0x23e)]);_0x11390b=JSON[_0x4201f7(0x1e3)](_0x11390b),_0x30c6fc[_0x4201f7(0x24e)]=this[_0x4201f7(0x289)],_0x30c6fc[_0x4201f7(0x2ec)][0x0][_0x4201f7(0x239)][_0x4201f7(0x204)]=global_registry[_0x4201f7(0x218)],_0x30c6fc[_0x4201f7(0x2ec)][0x1][_0x4201f7(0x239)][_0x4201f7(0x204)]=global_registry[_0x4201f7(0x218)],_0x30c6fc[_0x4201f7(0x2ec)][0x0][_0x4201f7(0x239)]['serviceAccount']=this[_0x4201f7(0x21a)]+'@'+this['projectId']+_0x4201f7(0x2b0),_0x30c6fc[_0x4201f7(0x2ec)][0x1][_0x4201f7(0x239)]['serviceAccount']=this[_0x4201f7(0x21a)]+'@'+this['projectId']+_0x4201f7(0x2b0),_0x30c6fc['nodePools'][0x0][_0x4201f7(0x227)][_0x4201f7(0x30d)]=global_registry[_0x4201f7(0x329)],_0x30c6fc[_0x4201f7(0x2ec)][0x1][_0x4201f7(0x227)][_0x4201f7(0x30d)]=0x0,_0x30c6fc['nodePools'][0x0][_0x4201f7(0x227)][_0x4201f7(0x323)]=global_registry[_0x4201f7(0x1db)],_0x30c6fc[_0x4201f7(0x2ec)][0x1][_0x4201f7(0x227)][_0x4201f7(0x323)]=global_registry[_0x4201f7(0x1db)],_0x30c6fc[_0x4201f7(0x298)]=global_registry[_0x4201f7(0x1e7)],_0x30c6fc[_0x4201f7(0x1cf)]=[_0x11390b[global_registry[_0x4201f7(0x1e7)]][0x0]],_0x30c6fc[_0x4201f7(0x24f)]=_0x4201f7(0x267)+this[_0x4201f7(0x241)]+'/global/networks/'+_0x1ef570,_0x30c6fc[_0x4201f7(0x334)]=_0x4201f7(0x267)+this[_0x4201f7(0x241)]+'/regions/'+global_registry[_0x4201f7(0x1e7)]+_0x4201f7(0x277)+_0x1a7014[0x0];const _0x113ee5=await this[_0x4201f7(0x1d1)][_0x4201f7(0x335)]({'cluster':_0x30c6fc,'parent':_0x4201f7(0x267)+this[_0x4201f7(0x241)]+'/locations/'+global_registry[_0x4201f7(0x1e7)]});await this['webSocketUtils']['delay'](_0xfab8e6[_0x4201f7(0x20d)](_0xfab8e6['FYAiM'](0x7,0x3c),0x3e8));}}catch(_0xabcbed){if(_0xfab8e6[_0x4201f7(0x1ce)](_0xfab8e6['nNLMO'],_0xfab8e6[_0x4201f7(0x291)])){const _0x34d15f=await this[_0x4201f7(0x21c)]();_0x34d15f?_0xfab8e6['OzaSV'](_0xfab8e6[_0x4201f7(0x281)],_0xfab8e6['BWIKv'])?(_0x498675[_0x4201f7(0x1e7)]=_0x289681[_0xfab8e6[_0x4201f7(0x2d6)](_0x2e4f76,0x1)],this[_0x4201f7(0x2d9)]()):(logger[_0x4201f7(0x311)](_0xfab8e6[_0x4201f7(0x222)],_0xabcbed[_0x4201f7(0x2f7)]),await this['deleteCluster']()):_0xfab8e6[_0x4201f7(0x2ef)](_0xfab8e6[_0x4201f7(0x26b)],_0xfab8e6[_0x4201f7(0x26b)])?logger[_0x4201f7(0x311)](_0xfab8e6[_0x4201f7(0x2a5)]):_0x5616ab[_0x4201f7(0x311)](_0xfab8e6[_0x4201f7(0x2a5)]);throw _0xabcbed;}else return[!![],_0x4c2921];}}async[a3_0x107ac8(0x1f1)](){const _0xedabf8=a3_0x107ac8;cp['execSync'](_0xedabf8(0x1f4)+this[_0xedabf8(0x289)]+_0xedabf8(0x25e)+global_registry[_0xedabf8(0x1e7)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x107ac8(0x1fb)](_0x152009,_0x56120c){const _0x2b3480=a3_0x107ac8,_0x405ee3={'JEsyp':function(_0x5a51f8,_0x16d055){return _0x5a51f8===_0x16d055;},'KSiFs':_0x2b3480(0x1dc),'woAYh':_0x2b3480(0x202),'TNLLs':function(_0x555b21,_0xfcee78){return _0x555b21(_0xfcee78);},'Pltpk':function(_0x3f9d9a,_0x5a76dd){return _0x3f9d9a===_0x5a76dd;},'vxoHu':'RUNNING','WJOQt':_0x2b3480(0x232),'ffuQR':function(_0xfea3e9,_0x536ed3){return _0xfea3e9!==_0x536ed3;},'LpclF':_0x2b3480(0x25a),'CYPKb':_0x2b3480(0x338),'YzjTa':_0x2b3480(0x32d),'RaESg':_0x2b3480(0x21e),'AdPUJ':_0x2b3480(0x2f2),'qLWDm':_0x2b3480(0x275)};try{if(_0x405ee3['JEsyp'](_0x405ee3[_0x2b3480(0x243)],_0x405ee3['woAYh']))return!![];else{await _0x405ee3[_0x2b3480(0x320)](deleteAgent,_0x152009),await _0x405ee3['TNLLs'](deleteRoutingDeps,_0x152009),logger[_0x2b3480(0x311)](_0x2b3480(0x280)+this[_0x2b3480(0x289)]);const _0x59e732=await this[_0x2b3480(0x1d1)][_0x2b3480(0x1fb)]({'name':'projects/'+this['projectId']+_0x2b3480(0x32e)+global_registry[_0x2b3480(0x1e7)]+_0x2b3480(0x207)+this[_0x2b3480(0x289)]});if(_0x405ee3[_0x2b3480(0x271)](_0x59e732[0x0]?.[_0x2b3480(0x288)],_0x405ee3[_0x2b3480(0x20b)])||_0x405ee3[_0x2b3480(0x271)](_0x59e732[0x0]?.[_0x2b3480(0x288)],_0x405ee3['WJOQt']))return _0x405ee3[_0x2b3480(0x1ef)](_0x405ee3[_0x2b3480(0x29b)],_0x405ee3[_0x2b3480(0x306)])?!![]:!![];logger['info'](_0x405ee3[_0x2b3480(0x1ed)]);}}catch(_0x33b83e){if(_0x405ee3[_0x2b3480(0x290)](_0x405ee3[_0x2b3480(0x1f9)],_0x405ee3[_0x2b3480(0x263)]))_0x405ee3[_0x2b3480(0x290)](_0x572f6f['name'],this['clusterName'])&&_0x39ec74[_0x2b3480(0x1dd)](_0x2e788f);else{logger[_0x2b3480(0x311)](_0x405ee3[_0x2b3480(0x2ba)]);throw _0x33b83e;}}}async[a3_0x107ac8(0x1d7)](_0x2b51d2){const _0x303397=a3_0x107ac8,_0x2408b2={};_0x2408b2[_0x303397(0x1d2)]='default',_0x2408b2[_0x303397(0x285)]=_0x303397(0x275),_0x2408b2[_0x303397(0x2de)]=function(_0x2f47eb,_0x2370fc){return _0x2f47eb===_0x2370fc;},_0x2408b2[_0x303397(0x2ed)]=_0x303397(0x2c4),_0x2408b2[_0x303397(0x30a)]=function(_0x47b3c5,_0x255325){return _0x47b3c5>_0x255325;},_0x2408b2[_0x303397(0x32f)]=function(_0x1cbcf4,_0x1b8abb){return _0x1cbcf4!==_0x1b8abb;},_0x2408b2[_0x303397(0x31a)]=_0x303397(0x2a4),_0x2408b2[_0x303397(0x2ff)]=_0x303397(0x2b7);const _0xc0a085=_0x2408b2;try{if(_0xc0a085[_0x303397(0x2de)](_0xc0a085[_0x303397(0x2ed)],_0xc0a085[_0x303397(0x2ed)])){const _0x510a51=await this[_0x303397(0x2ee)][_0x303397(0x294)]({'project':this['projectId'],'network':_0x2b51d2});if(_0xc0a085[_0x303397(0x30a)](_0x510a51[_0x303397(0x273)],0x0)&&_0xc0a085[_0x303397(0x2de)](_0x510a51[0x0][_0x303397(0x24e)],_0x2b51d2)){if(_0xc0a085[_0x303397(0x32f)](_0xc0a085[_0x303397(0x31a)],_0xc0a085[_0x303397(0x2ff)]))return!![];else _0x96e01d=[_0xc0a085[_0x303397(0x1d2)]];}}else{_0x562b09[_0x303397(0x311)](_0xc0a085[_0x303397(0x285)]);throw _0x72eeec;}}catch(_0x43a15f){return![];}return![];}async[a3_0x107ac8(0x307)](_0xfa486d,_0x57ee7a){const _0x249e1f=a3_0x107ac8,_0x8b619f={};_0x8b619f['MxehW']=function(_0x53443f,_0x24d1a1){return _0x53443f===_0x24d1a1;};const _0x380358=_0x8b619f;try{const _0xcfa85=await this[_0x249e1f(0x2ee)][_0x249e1f(0x294)]({'project':this[_0x249e1f(0x241)],'network':_0x57ee7a});for(const _0x2e18af of _0xcfa85[0x0]['subnetworks']){const _0x124960=_0x249e1f(0x2ce)+this[_0x249e1f(0x241)]+_0x249e1f(0x2c5)+global_registry[_0x249e1f(0x1e7)]+'/subnetworks/'+_0xfa486d[0x0];if(_0x380358['MxehW'](_0x124960,_0x2e18af))return[!![],_0xfa486d];}}catch(_0x2323a5){return logger[_0x249e1f(0x30b)](_0x249e1f(0x215)+_0xfa486d+_0x249e1f(0x1f8)+_0x2323a5),[![],[]];}return[![],[]];}async[a3_0x107ac8(0x216)](){const _0x364a8b=a3_0x107ac8,_0x292997=await this[_0x364a8b(0x2ee)][_0x364a8b(0x22d)]({'project':this[_0x364a8b(0x241)]}),_0x121e68={};_0x121e68[_0x364a8b(0x305)]=global_registry[_0x364a8b(0x27e)],_0x121e68[_0x364a8b(0x22b)]=global_registry['bstackAccesskey'],_0x121e68[_0x364a8b(0x292)]=GCP,_0x121e68['vpcInfo']=[];const _0x105fa1=_0x121e68;for(const _0x50fc46 of _0x292997){_0x105fa1[_0x364a8b(0x2dd)][_0x364a8b(0x1dd)](_0x50fc46);}const _0x557d77={};_0x557d77[_0x364a8b(0x2e3)]=WS_EVENTS[_0x364a8b(0x240)],_0x557d77[_0x364a8b(0x2bb)]=_0x105fa1,this[_0x364a8b(0x28c)][_0x364a8b(0x2f3)](this[_0x364a8b(0x2ea)],_0x557d77);}async[a3_0x107ac8(0x2d9)](){const _0x48bb95=a3_0x107ac8,_0x4ad790={'nWSia':function(_0x1bbf17,_0x5eddc7,_0xcc66b1){return _0x1bbf17(_0x5eddc7,_0xcc66b1);},'emSLr':_0x48bb95(0x2b3),'HPzbc':'json','PNMOk':function(_0x19f66c,_0xf9b306,_0x4245d6){return _0x19f66c(_0xf9b306,_0x4245d6);}},_0x5bb2a2='https://'+AG_API_URL+_0x48bb95(0x30c),_0x43ebe0={};_0x43ebe0[_0x48bb95(0x245)]=global_registry['gridProfileId'];const _0x2fd590={};_0x2fd590[_0x48bb95(0x2e0)]=global_registry[_0x48bb95(0x1e7)];const _0x166243={'searchParams':_0x43ebe0,'json':_0x2fd590,'headers':_0x4ad790[_0x48bb95(0x31e)](getAuthHeader,global_registry[_0x48bb95(0x27e)],global_registry[_0x48bb95(0x1e0)]),'method':_0x4ad790[_0x48bb95(0x2bf)],'responseType':_0x4ad790[_0x48bb95(0x2af)],'throwHttpErrors':![]},_0xa8e8a1=await _0x4ad790[_0x48bb95(0x250)](got,_0x5bb2a2,_0x166243);}}const a3_0x2303e0={};a3_0x2303e0[a3_0x107ac8(0x27d)]=GoogleCloudProvider,module['exports']=a3_0x2303e0;
1
+ const a3_0x589c69=a3_0x17b3;function a3_0x17b3(_0x2ee0b0,_0x5da039){const _0x455d7e=a3_0x455d();return a3_0x17b3=function(_0x17b372,_0x2bebe7){_0x17b372=_0x17b372-0x11a;let _0x980052=_0x455d7e[_0x17b372];return _0x980052;},a3_0x17b3(_0x2ee0b0,_0x5da039);}(function(_0x128fc9,_0x58b487){const _0x38868f=a3_0x17b3,_0x2ef140=_0x128fc9();while(!![]){try{const _0x4b33a4=-parseInt(_0x38868f(0x19a))/0x1*(-parseInt(_0x38868f(0x26e))/0x2)+parseInt(_0x38868f(0x186))/0x3*(parseInt(_0x38868f(0x139))/0x4)+parseInt(_0x38868f(0x248))/0x5+-parseInt(_0x38868f(0x267))/0x6+-parseInt(_0x38868f(0x20e))/0x7+parseInt(_0x38868f(0x13e))/0x8*(parseInt(_0x38868f(0x18a))/0x9)+-parseInt(_0x38868f(0x1f2))/0xa*(-parseInt(_0x38868f(0x278))/0xb);if(_0x4b33a4===_0x58b487)break;else _0x2ef140['push'](_0x2ef140['shift']());}catch(_0x508c60){_0x2ef140['push'](_0x2ef140['shift']());}}}(a3_0x455d,0xd13fc));const fs=require('fs'),path=require(a3_0x589c69(0x275)),got=require('got'),util=require('util'),cp=require(a3_0x589c69(0x17f)),{google}=require(a3_0x589c69(0x1f5)),compute=require(a3_0x589c69(0x190)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x589c69(0x244))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x589c69(0x277)),{getDirForConfig,getAuthHeader}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x589c69(0x1fb)),{inputConfirmation,closeInput}=require(a3_0x589c69(0x16a)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x589c69(0x20f));class GoogleCloudProvider extends CloudProvider{constructor(_0xf20cda,_0xa00a23,_0x3f72b9,_0x39eba4){const _0x4d55ce=a3_0x589c69,_0x129b3b={};_0x129b3b['NvzxG']=_0x4d55ce(0x274),_0x129b3b['SkSft']=_0x4d55ce(0x204),_0x129b3b[_0x4d55ce(0x1ba)]='turboscale-service-account';const _0x287676=_0x129b3b,_0x451a8a=_0x287676[_0x4d55ce(0x141)][_0x4d55ce(0x1d8)]('|');let _0x1dd25c=0x0;while(!![]){switch(_0x451a8a[_0x1dd25c++]){case'0':this[_0x4d55ce(0x188)]=null;continue;case'1':this[_0x4d55ce(0x196)]=null;continue;case'2':this['networkClient']=null;continue;case'3':this[_0x4d55ce(0x151)]=_0x287676['SkSft'];continue;case'4':this[_0x4d55ce(0x1bc)]=null;continue;case'5':this[_0x4d55ce(0x233)]=_0x287676['vrTLt'];continue;case'6':super(GCP,_0xf20cda,_0xa00a23,_0x3f72b9,_0x39eba4);continue;case'7':this[_0x4d55ce(0x1d1)]=null;continue;case'8':this[_0x4d55ce(0x208)]=null;continue;}break;}}async[a3_0x589c69(0x259)](){const _0x641c4d=a3_0x589c69;this[_0x641c4d(0x12f)](this[_0x641c4d(0x182)]);}async[a3_0x589c69(0x22a)](){const _0x5be24c=a3_0x589c69;await super[_0x5be24c(0x22a)]();const _0x21df8a=this['credentialsPath'],_0x1820ef={};_0x1820ef[_0x5be24c(0x19e)]=_0x21df8a,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x1820ef);const _0x5797ee={};_0x5797ee[_0x5be24c(0x19e)]=_0x21df8a,this['networkClient']=new compute['v1'][(_0x5be24c(0x193))](_0x5797ee);const _0x4d35d4={};return _0x4d35d4['keyFile']=_0x21df8a,this[_0x5be24c(0x1d1)]=new ProjectsClient(_0x4d35d4),this[_0x5be24c(0x188)]=google[_0x5be24c(0x154)]('v1'),this;}async[a3_0x589c69(0x17a)](_0x3bfa40,_0x4f188c){const _0x4ff4a0=a3_0x589c69,_0x753e81={'okfzF':function(_0x5a940d,_0x2ec669){return _0x5a940d(_0x2ec669);},'MwZvt':_0x4ff4a0(0x210),'hDkgn':function(_0x5dc393){return _0x5dc393();},'hIXhH':_0x4ff4a0(0x1c6)},_0x157b36=await _0x753e81[_0x4ff4a0(0x129)](_0x3bfa40,_0x753e81['MwZvt']);let _0x17cc5b=await fs[_0x4ff4a0(0x121)](_0x157b36);_0x17cc5b=_0x17cc5b[_0x4ff4a0(0x254)]();const _0x70a82c=_0x753e81['hDkgn'](getDirForConfig),_0x362f72=path[_0x4ff4a0(0x1d9)](_0x70a82c,_0x753e81[_0x4ff4a0(0x142)]);fs['writeFileSync'](_0x362f72,_0x17cc5b),this[_0x4ff4a0(0x1bc)]=_0x362f72;const _0x2ca9aa={};return _0x2ca9aa[_0x4ff4a0(0x19e)]=_0x362f72,_0x4f188c['cloudProvider'][GCP]=_0x2ca9aa,_0x17cc5b=JSON[_0x4ff4a0(0x19b)](_0x17cc5b),this['projectId']=_0x17cc5b[_0x4ff4a0(0x24d)],_0x4f188c;}async[a3_0x589c69(0x269)](_0x41bb17){const _0x4f1403=a3_0x589c69;this[_0x4f1403(0x1bc)]=_0x41bb17[this[_0x4f1403(0x246)]][_0x4f1403(0x19e)];let _0xde42fc=await fs[_0x4f1403(0x121)](this['credentialsPath']);_0xde42fc=JSON[_0x4f1403(0x19b)](_0xde42fc),this[_0x4f1403(0x208)]=_0xde42fc['project_id'];}[a3_0x589c69(0x135)](_0x47cff8){const _0x141a60=a3_0x589c69;return _0x47cff8['status'][_0x141a60(0x1be)][_0x141a60(0x150)][0x0]['ip'];}async[a3_0x589c69(0x1cb)](){const _0x2259c8=a3_0x589c69,_0x20771a={};_0x20771a[_0x2259c8(0x27f)]=_0x2259c8(0x209),_0x20771a[_0x2259c8(0x12d)]=function(_0x5e649a,_0x2a9e09){return _0x5e649a!==_0x2a9e09;},_0x20771a['YCxeb']=_0x2259c8(0x21c),_0x20771a[_0x2259c8(0x26c)]='ihAsB',_0x20771a[_0x2259c8(0x145)]=_0x2259c8(0x15e),_0x20771a['tmzpP']=_0x2259c8(0x220),_0x20771a[_0x2259c8(0x239)]=function(_0x5c62fe,_0x1cdf35){return _0x5c62fe===_0x1cdf35;},_0x20771a[_0x2259c8(0x197)]='browserstack',_0x20771a[_0x2259c8(0x21f)]=function(_0x3ea744,_0x567bb0){return _0x3ea744===_0x567bb0;},_0x20771a[_0x2259c8(0x1ee)]=_0x2259c8(0x221);const _0x540932=_0x20771a;try{if(_0x540932[_0x2259c8(0x12d)](_0x540932['YCxeb'],_0x540932[_0x2259c8(0x26c)])){const _0x5837b0=await this[_0x2259c8(0x1e7)]();if(_0x5837b0[0x0]?.[_0x2259c8(0x266)]?.[_0x2259c8(0x21d)]){if(_0x540932[_0x2259c8(0x12d)](_0x540932[_0x2259c8(0x145)],_0x540932['tmzpP'])){const _0x2df306=_0x5837b0[0x0]?.[_0x2259c8(0x266)]?.[_0x2259c8(0x21d)];return _0x2df306&&_0x540932['ExQvv'](_0x2df306[_0x2259c8(0x166)](),_0x540932[_0x2259c8(0x197)]);}else _0x2aef1b['clusterRegion']=_0x267f22[0x0],this['updateClusterRegion']();}}else _0x30d06e[_0x2259c8(0x250)](_0x540932[_0x2259c8(0x27f)]);}catch(_0x516ad4){if(_0x540932[_0x2259c8(0x21f)](_0x540932[_0x2259c8(0x1ee)],_0x540932[_0x2259c8(0x1ee)]))return![];else _0x34aacf=_0x30729e[_0x2259c8(0x1b5)](_0x3a14cc[_0x2a23da[_0x2259c8(0x252)]]);}return![];}async[a3_0x589c69(0x24c)](){const _0xa2d4b6=a3_0x589c69,_0x2e960b={'iVSZt':'default','vXLsb':'GKE\x20Cluster\x20deletion\x20failed','ceqDU':function(_0x2e0fca,_0x4089dd){return _0x2e0fca!==_0x4089dd;},'ODivd':function(_0x81458d,_0x36f783){return _0x81458d===_0x36f783;},'yZLgn':function(_0x55e01e,_0x376541){return _0x55e01e+_0x376541;},'cxJMk':_0xa2d4b6(0x203),'sCCxx':_0xa2d4b6(0x1a2),'mefpQ':_0xa2d4b6(0x194),'RPBgH':_0xa2d4b6(0x1d2),'UOghF':function(_0xaa3fb8,_0xd882fc){return _0xaa3fb8!==_0xd882fc;},'ChnnM':function(_0x2251a8,_0xc0610b){return _0x2251a8===_0xc0610b;},'Abotx':_0xa2d4b6(0x24a),'Wctct':'SPpTj','aBunP':function(_0x5a1a16,_0x541cc8){return _0x5a1a16!==_0x541cc8;},'oMctt':_0xa2d4b6(0x1cc),'XoVug':_0xa2d4b6(0x23a),'KTmkT':function(_0x5c6af6,_0x30717f){return _0x5c6af6===_0x30717f;},'VsfFT':_0xa2d4b6(0x26a),'bCFZd':_0xa2d4b6(0x162),'bYoAT':function(_0x10111c,_0x5dc3d3){return _0x10111c===_0x5dc3d3;},'OwgpP':function(_0x54a887,_0x54c6e6){return _0x54a887===_0x54c6e6;},'MvzSv':_0xa2d4b6(0x27e),'lUenS':function(_0x2a263a,_0x3eb660){return _0x2a263a===_0x3eb660;},'lZcsS':'JTpRj','bzpvv':_0xa2d4b6(0x1e5),'bNQdU':_0xa2d4b6(0x19f),'LQGlv':_0xa2d4b6(0x247),'onlXo':function(_0x3184f5,_0x1b673f){return _0x3184f5>_0x1b673f;},'lKWNR':function(_0x40cb7c,_0x33af26){return _0x40cb7c!==_0x33af26;},'tvoih':'ZcTao','ofMsh':_0xa2d4b6(0x17b),'bCujN':function(_0x1705ce,_0x356173){return _0x1705ce<_0x356173;},'KbdJX':function(_0x479116,_0x331998){return _0x479116===_0x331998;},'tWRVh':'HLECW','jMnWo':function(_0x29e516,_0x46972c){return _0x29e516(_0x46972c);},'aSBvV':_0xa2d4b6(0x1aa),'zrNtr':function(_0x24e2bd,_0x199086){return _0x24e2bd(_0x199086);},'wVezM':function(_0xb767e,_0x287b9a){return _0xb767e<=_0x287b9a;},'NoZuk':function(_0x1bf68a,_0x1b2fc1){return _0x1bf68a!==_0x1b2fc1;},'TrnuX':_0xa2d4b6(0x138),'zaLGX':_0xa2d4b6(0x218),'pXQyp':_0xa2d4b6(0x15f),'nRBdc':function(_0x2fab25){return _0x2fab25();},'gsgoC':function(_0x4a27cc,_0x1622e3){return _0x4a27cc-_0x1622e3;},'dUvCE':function(_0x4da34a,_0x9aaf8c){return _0x4da34a!==_0x9aaf8c;},'DxXfn':function(_0x4f9147,_0x37765a){return _0x4f9147-_0x37765a;},'ftnVj':_0xa2d4b6(0x211)};let _0x18369f=await fs[_0xa2d4b6(0x121)](path[_0xa2d4b6(0x1d9)](__dirname,'..',_0x2e960b[_0xa2d4b6(0x191)],_0x2e960b[_0xa2d4b6(0x144)],_0x2e960b[_0xa2d4b6(0x22d)]),_0x2e960b['RPBgH']);_0x18369f=JSON[_0xa2d4b6(0x19b)](_0x18369f);let _0x4256c3=[global_registry[_0xa2d4b6(0x252)]];_0x2e960b['UOghF'](_0x18369f[global_registry[_0xa2d4b6(0x252)]],undefined)&&(_0x2e960b[_0xa2d4b6(0x1e4)](_0x2e960b[_0xa2d4b6(0x1c7)],_0x2e960b[_0xa2d4b6(0x219)])?_0x1ccc26=_0x2e960b[_0xa2d4b6(0x1ef)]:_0x4256c3=_0x4256c3[_0xa2d4b6(0x1b5)](_0x18369f[global_registry[_0xa2d4b6(0x252)]]));const _0x1c8a9b=[];for await(const _0x5b329e of _0x4256c3){if(_0x2e960b[_0xa2d4b6(0x276)](_0x2e960b[_0xa2d4b6(0x18d)],_0x2e960b[_0xa2d4b6(0x1e8)])){const _0x513da4={};_0x513da4[_0xa2d4b6(0x224)]=_0xa2d4b6(0x215)+this[_0xa2d4b6(0x208)]+'/locations/'+_0x5b329e;const _0x29181c=_0x513da4,_0x3f6ce6=await this[_0xa2d4b6(0x196)]['listClusters'](_0x29181c);for(const _0x120bda of _0x3f6ce6[0x0][_0xa2d4b6(0x173)]){_0x2e960b[_0xa2d4b6(0x1a0)](_0x2e960b[_0xa2d4b6(0x258)],_0x2e960b['bCFZd'])?_0x34550f[_0xa2d4b6(0x1ce)][_0xa2d4b6(0x283)](_0x4d3de8):_0x2e960b[_0xa2d4b6(0x1f0)](_0x120bda[_0xa2d4b6(0x12b)],this[_0xa2d4b6(0x22b)])&&(_0x2e960b[_0xa2d4b6(0x229)](_0x2e960b[_0xa2d4b6(0x19d)],_0x2e960b[_0xa2d4b6(0x19d)])?_0x1c8a9b[_0xa2d4b6(0x283)](_0x5b329e):_0x3d3741[_0xa2d4b6(0x283)](_0x31667e));}}else return![];}const _0x5770b5=_0x1c8a9b['length'];if(_0x2e960b[_0xa2d4b6(0x1eb)](_0x5770b5,0x1)){if(_0x2e960b[_0xa2d4b6(0x1eb)](_0x2e960b[_0xa2d4b6(0x235)],_0x2e960b[_0xa2d4b6(0x160)]))return!![];else{if(_0x2e960b['ceqDU'](global_registry[_0xa2d4b6(0x252)],_0x1c8a9b[0x0])){if(_0x2e960b['ChnnM'](_0x2e960b[_0xa2d4b6(0x183)],_0x2e960b[_0xa2d4b6(0x1a5)])){_0x132863['info'](_0x2e960b[_0xa2d4b6(0x131)]);throw _0x41c3a5;}else global_registry['clusterRegion']=_0x1c8a9b[0x0],this[_0xa2d4b6(0x23b)]();}return!![];}}else{if(_0x2e960b[_0xa2d4b6(0x187)](_0x5770b5,0x1)){if(_0x2e960b[_0xa2d4b6(0x12e)](_0x2e960b['tvoih'],_0x2e960b[_0xa2d4b6(0x255)])){console[_0xa2d4b6(0x17d)](_0xa2d4b6(0x23c)+this[_0xa2d4b6(0x22b)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x336276=0x0;_0x2e960b[_0xa2d4b6(0x24f)](_0x336276,_0x5770b5);_0x336276+=0x1){if(_0x2e960b[_0xa2d4b6(0x225)](_0x2e960b['tWRVh'],_0x2e960b[_0xa2d4b6(0x253)]))console[_0xa2d4b6(0x17d)]('['+_0x2e960b[_0xa2d4b6(0x199)](_0x336276,0x1)+']\x20'+_0x1c8a9b[_0x336276]);else return _0x2e960b[_0xa2d4b6(0x172)](_0x76ed6a[_0xa2d4b6(0x252)],_0x51f567[0x0])&&(_0x33e98e[_0xa2d4b6(0x252)]=_0x2bb042[0x0],this[_0xa2d4b6(0x23b)]()),!![];}const _0x28894c=await _0x2e960b[_0xa2d4b6(0x156)](inputConfirmation,_0x2e960b[_0xa2d4b6(0x268)]),_0x296aec=_0x2e960b[_0xa2d4b6(0x226)](Number,_0x28894c);if(_0x2e960b[_0xa2d4b6(0x156)](isNaN,_0x296aec)||_0x2e960b[_0xa2d4b6(0x1e2)](_0x296aec,0x0)||_0x2e960b[_0xa2d4b6(0x187)](_0x296aec,_0x5770b5)){if(_0x2e960b[_0xa2d4b6(0x1f3)](_0x2e960b['TrnuX'],_0x2e960b[_0xa2d4b6(0x195)]))console[_0xa2d4b6(0x13c)](_0x2e960b[_0xa2d4b6(0x15c)]),process['exit'](0x1);else{if(_0x2e960b[_0xa2d4b6(0x25e)](_0x543b50?.['name'],_0xa2d4b6(0x215)+this[_0xa2d4b6(0x208)]+_0xa2d4b6(0x25d)+this[_0xa2d4b6(0x233)]+'@'+this[_0xa2d4b6(0x208)]+'.iam.gserviceaccount.com'))return!![];}}return _0x2e960b['nRBdc'](closeInput),logger['info'](_0xa2d4b6(0x16b)+_0x1c8a9b[_0x2e960b['gsgoC'](_0x296aec,0x1)]),_0x2e960b['dUvCE'](global_registry['clusterRegion'],_0x1c8a9b[_0x2e960b[_0xa2d4b6(0x174)](_0x296aec,0x1)])&&(_0x2e960b[_0xa2d4b6(0x1a0)](_0x2e960b[_0xa2d4b6(0x1ac)],_0x2e960b[_0xa2d4b6(0x1ac)])?(global_registry[_0xa2d4b6(0x252)]=_0x1c8a9b[_0x2e960b['gsgoC'](_0x296aec,0x1)],this[_0xa2d4b6(0x23b)]()):_0x2e960b[_0xa2d4b6(0x25e)](_0x229a46[_0xa2d4b6(0x12b)],this[_0xa2d4b6(0x22b)])&&_0xedca86[_0xa2d4b6(0x283)](_0x1fabe4)),!![];}else _0x6db867[_0xa2d4b6(0x17d)]('['+_0x2e960b[_0xa2d4b6(0x199)](_0x7eb9f,0x1)+']\x20'+_0x355ee5[_0x31e792]);}}return![];}async[a3_0x589c69(0x1e7)](){const _0x50b711=a3_0x589c69,_0x116c3e=await this[_0x50b711(0x196)][_0x50b711(0x212)]({'name':_0x50b711(0x215)+this[_0x50b711(0x208)]+_0x50b711(0x1df)+global_registry[_0x50b711(0x252)]+_0x50b711(0x234)+this[_0x50b711(0x22b)]});return _0x116c3e;}async['getKubeConfigData'](){const _0x77a8fb=a3_0x589c69,_0x301dbc={};_0x301dbc[_0x77a8fb(0x1b2)]=_0x77a8fb(0x26f),_0x301dbc[_0x77a8fb(0x14c)]='templates',_0x301dbc[_0x77a8fb(0x1e9)]=_0x77a8fb(0x1a2),_0x301dbc[_0x77a8fb(0x282)]=_0x77a8fb(0x1ea);const _0x45d36e=_0x301dbc;cp[_0x77a8fb(0x20d)](_0x45d36e[_0x77a8fb(0x1b2)]),cp['exec'](_0x77a8fb(0x1b8)+this[_0x77a8fb(0x1bc)]);const _0x1f27ac=await this['getClusterInfo'](),_0x17ee8f='gke_'+this[_0x77a8fb(0x208)]+'_'+global_registry['clusterRegion']+'_'+this['clusterName'];let _0x114306=await fs[_0x77a8fb(0x121)](path['join'](__dirname,'..',_0x45d36e[_0x77a8fb(0x14c)],_0x45d36e[_0x77a8fb(0x1e9)],_0x45d36e[_0x77a8fb(0x282)]));return _0x114306=_0x114306['toString'](),_0x114306=_0x114306['replace'](/<CLUSTER_NAME>/g,_0x17ee8f),_0x114306=_0x114306['replace'](/<CLUSTER_URL>/g,_0x77a8fb(0x11e)+_0x1f27ac[0x0][_0x77a8fb(0x1bf)]),_0x114306=_0x114306['replace'](/<CERTIFICATE_DATA>/g,_0x1f27ac[0x0][_0x77a8fb(0x1d4)][_0x77a8fb(0x157)]),_0x114306;}async[a3_0x589c69(0x155)](){const _0x5c708=a3_0x589c69,_0x49bf46={};_0x49bf46[_0x5c708(0x1bd)]=function(_0x4d0fc0,_0x46aad5){return _0x4d0fc0===_0x46aad5;},_0x49bf46['LgIfw']=_0x5c708(0x21e),_0x49bf46[_0x5c708(0x281)]=function(_0x43ab7e,_0x4b07ee){return _0x43ab7e!==_0x4b07ee;},_0x49bf46[_0x5c708(0x216)]=_0x5c708(0x17e),_0x49bf46[_0x5c708(0x245)]=_0x5c708(0x132),_0x49bf46['jQWrN']='LGPTo',_0x49bf46['tjNBD']=_0x5c708(0x165),_0x49bf46['KcbDk']=_0x5c708(0x227);const _0x420d0f=_0x49bf46,_0x271f20={};_0x271f20[_0x5c708(0x222)]=[_0x420d0f[_0x5c708(0x243)]],_0x271f20[_0x5c708(0x19e)]=this[_0x5c708(0x1bc)];const _0x5d11a1=await google[_0x5c708(0x1f9)][_0x5c708(0x11c)](_0x271f20),_0x2c9980=await this[_0x5c708(0x188)]['projects']['serviceAccounts'][_0x5c708(0x177)]({'name':_0x5c708(0x215)+this['projectId'],'auth':_0x5d11a1});if(_0x2c9980?.[_0x5c708(0x217)]?.[_0x5c708(0x22e)]){if(_0x420d0f[_0x5c708(0x281)](_0x420d0f['dejMJ'],_0x420d0f[_0x5c708(0x245)]))for(const _0x1ca341 of _0x2c9980[_0x5c708(0x217)]['accounts']){if(_0x420d0f[_0x5c708(0x281)](_0x420d0f[_0x5c708(0x158)],_0x420d0f[_0x5c708(0x22f)])){if(_0x420d0f[_0x5c708(0x1bd)](_0x1ca341?.[_0x5c708(0x12b)],_0x5c708(0x215)+this[_0x5c708(0x208)]+_0x5c708(0x25d)+this[_0x5c708(0x233)]+'@'+this[_0x5c708(0x208)]+'.iam.gserviceaccount.com')){if(_0x420d0f['fspcQ'](_0x420d0f[_0x5c708(0x11d)],_0x420d0f[_0x5c708(0x11d)]))return!![];else for(const _0x20d8bc of _0x526324[_0x5c708(0x217)][_0x5c708(0x22e)]){if(_0x420d0f[_0x5c708(0x1bd)](_0x20d8bc?.[_0x5c708(0x12b)],_0x5c708(0x215)+this[_0x5c708(0x208)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this['projectId']+_0x5c708(0x1e6)))return!![];}}}else return _0x41f7df['error']('Cannot\x20find\x20subnets\x20'+_0x2b3880+_0x5c708(0x24e)+_0x10dea5),[![],[]];}else return _0xe542e3['status'][_0x5c708(0x1be)][_0x5c708(0x150)][0x0]['ip'];}return![];}async[a3_0x589c69(0x1a7)](){const _0x41b8eb=a3_0x589c69,_0x331f11={};_0x331f11[_0x41b8eb(0x1b3)]=function(_0x2ac674,_0xce526b){return _0x2ac674===_0xce526b;},_0x331f11[_0x41b8eb(0x178)]=function(_0x404ad2,_0x54a0e8){return _0x404ad2!==_0x54a0e8;},_0x331f11[_0x41b8eb(0x175)]=_0x41b8eb(0x261),_0x331f11['HPLWJ']='Service\x20account\x20already\x20exists,\x20skipping',_0x331f11[_0x41b8eb(0x240)]=_0x41b8eb(0x1f7),_0x331f11[_0x41b8eb(0x1a9)]=_0x41b8eb(0x21e),_0x331f11['LXRGw']=_0x41b8eb(0x200),_0x331f11[_0x41b8eb(0x1ed)]=_0x41b8eb(0x13f),_0x331f11[_0x41b8eb(0x136)]=_0x41b8eb(0x159),_0x331f11[_0x41b8eb(0x1fc)]='storage.buckets.delete',_0x331f11[_0x41b8eb(0x134)]=_0x41b8eb(0x11b),_0x331f11[_0x41b8eb(0x1a1)]=_0x41b8eb(0x127),_0x331f11[_0x41b8eb(0x1af)]='storage.buckets.getIamPolicy',_0x331f11[_0x41b8eb(0x18e)]='storage.buckets.getObjectInsights',_0x331f11[_0x41b8eb(0x12a)]=_0x41b8eb(0x1d3),_0x331f11[_0x41b8eb(0x223)]=_0x41b8eb(0x260),_0x331f11[_0x41b8eb(0x13a)]='storage.buckets.listTagBindings',_0x331f11['GXHVF']=_0x41b8eb(0x16e),_0x331f11['WmKBS']=_0x41b8eb(0x270),_0x331f11[_0x41b8eb(0x1c0)]='storage.multipartUploads.abort',_0x331f11['yzMdz']='storage.multipartUploads.create',_0x331f11['hREZj']=_0x41b8eb(0x15d),_0x331f11[_0x41b8eb(0x1a6)]=_0x41b8eb(0x1f1),_0x331f11['SZZvc']='storage.objects.create',_0x331f11[_0x41b8eb(0x1f4)]='storage.objects.delete',_0x331f11['BWoxU']='storage.objects.get',_0x331f11[_0x41b8eb(0x171)]=_0x41b8eb(0x21a),_0x331f11[_0x41b8eb(0x126)]=_0x41b8eb(0x184),_0x331f11[_0x41b8eb(0x181)]=_0x41b8eb(0x23f),_0x331f11[_0x41b8eb(0x122)]='storage.objects.update',_0x331f11[_0x41b8eb(0x207)]=_0x41b8eb(0x1fa),_0x331f11[_0x41b8eb(0x228)]=_0x41b8eb(0x1c1);const _0x2ff71c=_0x331f11,_0x12c6e6=await this[_0x41b8eb(0x155)]();if(_0x12c6e6){if(_0x2ff71c[_0x41b8eb(0x178)](_0x2ff71c[_0x41b8eb(0x175)],_0x2ff71c[_0x41b8eb(0x175)])){const _0x4c8c80=_0x41b8eb(0x201)+this[_0x41b8eb(0x208)]+_0x41b8eb(0x16c)+_0x58c696['clusterRegion']+_0x41b8eb(0x147)+_0x3b8150[0x0];if(_0x2ff71c['Dgyya'](_0x4c8c80,_0xb6bb37))return[!![],_0x4648a4];}else{logger[_0x41b8eb(0x250)](_0x2ff71c[_0x41b8eb(0x1c8)]);return;}}logger[_0x41b8eb(0x250)](_0x2ff71c[_0x41b8eb(0x240)]);const _0x44ff1d={};_0x44ff1d['scopes']=[_0x2ff71c[_0x41b8eb(0x1a9)]],_0x44ff1d[_0x41b8eb(0x19e)]=this[_0x41b8eb(0x1bc)];const _0x396156=await google[_0x41b8eb(0x1f9)][_0x41b8eb(0x11c)](_0x44ff1d),_0x58d941={};_0x58d941[_0x41b8eb(0x1e0)]=[_0x2ff71c[_0x41b8eb(0x20b)],_0x2ff71c[_0x41b8eb(0x1ed)],_0x2ff71c[_0x41b8eb(0x136)],_0x2ff71c[_0x41b8eb(0x1fc)],_0x2ff71c[_0x41b8eb(0x134)],_0x2ff71c[_0x41b8eb(0x1a1)],_0x2ff71c[_0x41b8eb(0x1af)],_0x2ff71c[_0x41b8eb(0x18e)],_0x2ff71c[_0x41b8eb(0x12a)],_0x2ff71c['LyPZd'],_0x2ff71c[_0x41b8eb(0x13a)],_0x2ff71c['GXHVF'],_0x2ff71c[_0x41b8eb(0x1f8)],_0x2ff71c[_0x41b8eb(0x1c0)],_0x2ff71c[_0x41b8eb(0x164)],_0x2ff71c[_0x41b8eb(0x16d)],_0x2ff71c[_0x41b8eb(0x1a6)],_0x2ff71c[_0x41b8eb(0x1da)],_0x2ff71c['PlQvv'],_0x2ff71c['BWoxU'],_0x2ff71c[_0x41b8eb(0x171)],_0x2ff71c['adKFX'],_0x2ff71c[_0x41b8eb(0x181)],_0x2ff71c[_0x41b8eb(0x122)]],_0x58d941['title']=_0x2ff71c[_0x41b8eb(0x207)],await this[_0x41b8eb(0x188)][_0x41b8eb(0x1c3)]['roles']['create']({'parent':_0x41b8eb(0x215)+this[_0x41b8eb(0x208)],'requestBody':{'role':_0x58d941,'roleId':this[_0x41b8eb(0x151)]},'auth':_0x396156});const _0x28d972={};_0x28d972[_0x41b8eb(0x12b)]=_0x41b8eb(0x215)+this[_0x41b8eb(0x208)],_0x28d972[_0x41b8eb(0x24b)]={},_0x28d972[_0x41b8eb(0x1f9)]=_0x396156,_0x28d972[_0x41b8eb(0x24b)][_0x41b8eb(0x120)]=this[_0x41b8eb(0x233)];const _0x4c512e=_0x28d972;await this['iamClient'][_0x41b8eb(0x232)]['serviceAccounts']['create'](_0x4c512e);let _0x57ca4c=await this[_0x41b8eb(0x1d1)][_0x41b8eb(0x1d6)]({'resource':'projects/'+this[_0x41b8eb(0x208)]});_0x57ca4c=_0x57ca4c[0x0]['bindings'];const _0x4826d7={};_0x4826d7[_0x41b8eb(0x1de)]=_0x41b8eb(0x215)+this[_0x41b8eb(0x208)]+'/roles/'+this['customRoleName'],_0x4826d7[_0x41b8eb(0x1b9)]=['serviceAccount:'+this[_0x41b8eb(0x233)]+'@'+this[_0x41b8eb(0x208)]+_0x41b8eb(0x1e6)],_0x57ca4c[_0x41b8eb(0x283)](_0x4826d7);const _0x44f12d={};_0x44f12d[_0x41b8eb(0x18c)]=_0x57ca4c,await this[_0x41b8eb(0x1d1)][_0x41b8eb(0x148)]({'resource':_0x41b8eb(0x215)+this[_0x41b8eb(0x208)],'policy':_0x44f12d}),logger[_0x41b8eb(0x250)](_0x2ff71c['TtrHI']);}async[a3_0x589c69(0x16f)](_0xf1b0ef='default',_0x463045=['default']){const _0x14b883=a3_0x589c69,_0x46b0de={};_0x46b0de['GMUGL']=_0x14b883(0x15f),_0x46b0de[_0x14b883(0x25b)]=_0x14b883(0x1ca),_0x46b0de[_0x14b883(0x26b)]=_0x14b883(0x1bb),_0x46b0de[_0x14b883(0x27c)]=_0x14b883(0x1ff),_0x46b0de[_0x14b883(0x143)]=function(_0x2f7a3b,_0x1f18c0){return _0x2f7a3b!==_0x1f18c0;},_0x46b0de[_0x14b883(0x1e1)]=_0x14b883(0x167),_0x46b0de[_0x14b883(0x163)]=function(_0x431de2,_0x4f55f9){return _0x431de2===_0x4f55f9;},_0x46b0de[_0x14b883(0x170)]='TPeQo';const _0x21e82c=_0x46b0de,_0x363906={};return _0x363906[_0x14b883(0x271)]=WS_EVENTS[_0x14b883(0x256)],_0x363906[_0x14b883(0x1e3)]=_0x21e82c['cDTwa'],this[_0x14b883(0x1dd)][_0x14b883(0x230)](this['rws'],_0x363906),logger['info'](_0x21e82c[_0x14b883(0x27c)]),!_0xf1b0ef&&(_0x21e82c['jOoFd'](_0x21e82c[_0x14b883(0x1e1)],_0x21e82c['FsUbw'])?(_0x40d4b4[_0x14b883(0x13c)](_0x21e82c['GMUGL']),_0x444db3[_0x14b883(0x21b)](0x1)):_0xf1b0ef=_0x21e82c['qNmBR']),(!_0x463045||_0x21e82c['dfflj'](_0x463045[_0x14b883(0x263)],0x0))&&(_0x21e82c[_0x14b883(0x163)](_0x21e82c[_0x14b883(0x170)],_0x21e82c[_0x14b883(0x170)])?_0x463045=[_0x21e82c['qNmBR']]:_0x1b1693=[_0x21e82c[_0x14b883(0x25b)]]),await this[_0x14b883(0x1a7)](),await this[_0x14b883(0x168)](_0xf1b0ef,_0x463045),await this[_0x14b883(0x1ab)](),!![];}async[a3_0x589c69(0x168)](_0x2c9f0b=a3_0x589c69(0x1ca),_0x490adc=[a3_0x589c69(0x1ca)]){const _0x320563=a3_0x589c69,_0x174558={};_0x174558[_0x320563(0x15a)]=function(_0x7f3ad1,_0x25b717){return _0x7f3ad1===_0x25b717;},_0x174558[_0x320563(0x20a)]=_0x320563(0x206),_0x174558[_0x320563(0x214)]=_0x320563(0x273),_0x174558[_0x320563(0x133)]=function(_0x1080ac,_0x4ccd8c){return _0x1080ac-_0x4ccd8c;},_0x174558[_0x320563(0x1c9)]=function(_0x52e451,_0x582635){return _0x52e451!==_0x582635;},_0x174558['CIaRV']=_0x320563(0x1fd),_0x174558[_0x320563(0x19c)]=_0x320563(0x146),_0x174558[_0x320563(0x1dc)]=_0x320563(0x203),_0x174558[_0x320563(0x1fe)]=_0x320563(0x1a2),_0x174558[_0x320563(0x185)]='gkecluster.json',_0x174558['Wnggp']=_0x320563(0x1d2),_0x174558['yOaoz']=_0x320563(0x194),_0x174558[_0x320563(0x17c)]=function(_0x11b4ca,_0x1f088b){return _0x11b4ca*_0x1f088b;},_0x174558[_0x320563(0x265)]=function(_0xbe817b,_0x2176b5){return _0xbe817b!==_0x2176b5;},_0x174558[_0x320563(0x14a)]=_0x320563(0x238),_0x174558[_0x320563(0x22c)]=_0x320563(0x1c5),_0x174558[_0x320563(0x231)]=_0x320563(0x14e),_0x174558['WBgqx']=_0x320563(0x179),_0x174558[_0x320563(0x152)]=_0x320563(0x149),_0x174558[_0x320563(0x1db)]=_0x320563(0x169),_0x174558['YaaVl']=_0x320563(0x1b6),_0x174558[_0x320563(0x18f)]=_0x320563(0x209);const _0x562cc9=_0x174558;try{if(_0x562cc9[_0x320563(0x1c9)](_0x562cc9[_0x320563(0x26d)],_0x562cc9[_0x320563(0x26d)]))return!![];else{logger[_0x320563(0x250)](_0x562cc9[_0x320563(0x19c)]);let _0x257207=await fs[_0x320563(0x121)](path[_0x320563(0x1d9)](__dirname,'..',_0x562cc9[_0x320563(0x1dc)],_0x562cc9['ifoSl'],_0x562cc9['abLLL']),_0x562cc9[_0x320563(0x176)]);_0x257207=JSON['parse'](_0x257207);let _0x1ca07e=await fs[_0x320563(0x121)](path['join'](__dirname,'..',_0x562cc9[_0x320563(0x1dc)],_0x562cc9[_0x320563(0x1fe)],_0x562cc9[_0x320563(0x1b1)]),_0x562cc9[_0x320563(0x176)]);_0x1ca07e=JSON[_0x320563(0x19b)](_0x1ca07e),_0x257207[_0x320563(0x12b)]=this[_0x320563(0x22b)],_0x257207['nodePools'][0x0][_0x320563(0x14f)][_0x320563(0x284)]=global_registry[_0x320563(0x25c)],_0x257207[_0x320563(0x11a)][0x1][_0x320563(0x14f)][_0x320563(0x284)]=global_registry[_0x320563(0x25c)],_0x257207[_0x320563(0x11a)][0x0]['config'][_0x320563(0x251)]=this[_0x320563(0x233)]+'@'+this[_0x320563(0x208)]+'.iam.gserviceaccount.com',_0x257207[_0x320563(0x11a)][0x1][_0x320563(0x14f)][_0x320563(0x251)]=this[_0x320563(0x233)]+'@'+this[_0x320563(0x208)]+'.iam.gserviceaccount.com',_0x257207[_0x320563(0x11a)][0x0][_0x320563(0x27d)][_0x320563(0x280)]=global_registry[_0x320563(0x236)],_0x257207[_0x320563(0x11a)][0x1]['autoscaling'][_0x320563(0x280)]=0x0,_0x257207[_0x320563(0x11a)][0x0][_0x320563(0x27d)][_0x320563(0x249)]=global_registry[_0x320563(0x23d)],_0x257207[_0x320563(0x11a)][0x1][_0x320563(0x27d)][_0x320563(0x249)]=global_registry[_0x320563(0x23d)],_0x257207['location']=global_registry[_0x320563(0x252)],_0x257207[_0x320563(0x1b0)]=[_0x1ca07e[global_registry[_0x320563(0x252)]][0x0]],_0x257207['network']=_0x320563(0x215)+this['projectId']+_0x320563(0x140)+_0x2c9f0b,_0x257207['subnetwork']=_0x320563(0x215)+this[_0x320563(0x208)]+_0x320563(0x16c)+global_registry[_0x320563(0x252)]+_0x320563(0x147)+_0x490adc[0x0];const _0x17e927=await this[_0x320563(0x196)]['createCluster']({'cluster':_0x257207,'parent':_0x320563(0x215)+this[_0x320563(0x208)]+'/locations/'+global_registry['clusterRegion']});await this[_0x320563(0x1dd)]['delay'](_0x562cc9[_0x320563(0x17c)](_0x562cc9[_0x320563(0x17c)](0x7,0x3c),0x3e8));}}catch(_0x15973d){if(_0x562cc9['pIxbm'](_0x562cc9[_0x320563(0x14a)],_0x562cc9['puBvZ'])){const _0x12b2d7=await this['isClusterPresent']();if(_0x12b2d7){if(_0x562cc9['oCyJf'](_0x562cc9[_0x320563(0x231)],_0x562cc9[_0x320563(0x124)]))logger[_0x320563(0x250)](_0x562cc9['TwulX'],_0x15973d[_0x320563(0x1d7)]),await this[_0x320563(0x125)]();else{const _0x5e7d52=_0x1435d3[0x0]?.[_0x320563(0x266)]?.[_0x320563(0x21d)];return _0x5e7d52&&_0x562cc9[_0x320563(0x15a)](_0x5e7d52[_0x320563(0x166)](),_0x562cc9['zhUMb']);}}else{if(_0x562cc9[_0x320563(0x15a)](_0x562cc9[_0x320563(0x1db)],_0x562cc9[_0x320563(0x27b)])){_0x186327['info'](_0x562cc9[_0x320563(0x214)]);return;}else logger[_0x320563(0x250)](_0x562cc9['VtxPs']);}throw _0x15973d;}else _0x21e15a['clusterRegion']=_0x34128e[_0x562cc9[_0x320563(0x133)](_0x17c0b4,0x1)],this[_0x320563(0x23b)]();}}async['updateWindowsNodeGroup'](){const _0x15cf9d=a3_0x589c69;cp[_0x15cf9d(0x20d)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x15cf9d(0x22b)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x15cf9d(0x252)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x589c69(0x125)](_0x23d650,_0x323fdc){const _0x543594=a3_0x589c69,_0x5c5f06={'BzgGq':function(_0x236344,_0x32af99){return _0x236344!==_0x32af99;},'cFcPJ':_0x543594(0x264),'XeSQi':_0x543594(0x1ec),'TImiS':function(_0x2f305d,_0x50d4a4){return _0x2f305d(_0x50d4a4);},'CrOGY':function(_0xf25eec,_0x26d224){return _0xf25eec===_0x26d224;},'tHwdr':_0x543594(0x1f6),'pneeY':'DONE','jQiJN':_0x543594(0x257),'cwfyh':'FvfsA','sJMau':_0x543594(0x18b),'tMuoR':function(_0x5b878a,_0x1ec71d){return _0x5b878a===_0x1ec71d;},'NnshX':'ThtwW','xOGtd':_0x543594(0x1cf),'CHCTa':_0x543594(0x213)};try{if(_0x5c5f06['BzgGq'](_0x5c5f06[_0x543594(0x1a3)],_0x5c5f06[_0x543594(0x25a)])){await _0x5c5f06['TImiS'](deleteAgent,_0x23d650),await _0x5c5f06['TImiS'](deleteRoutingDeps,_0x23d650),logger['info'](_0x543594(0x23e)+this['clusterName']);const _0x464846=await this['containerClient'][_0x543594(0x125)]({'name':_0x543594(0x215)+this[_0x543594(0x208)]+'/locations/'+global_registry[_0x543594(0x252)]+_0x543594(0x234)+this[_0x543594(0x22b)]});if(_0x5c5f06[_0x543594(0x1a4)](_0x464846[0x0]?.[_0x543594(0x27a)],_0x5c5f06[_0x543594(0x1d5)])||_0x5c5f06[_0x543594(0x1a4)](_0x464846[0x0]?.['status'],_0x5c5f06['pneeY'])){if(_0x5c5f06[_0x543594(0x153)](_0x5c5f06[_0x543594(0x241)],_0x5c5f06[_0x543594(0x14d)]))return!![];else this[_0x543594(0x12f)](this[_0x543594(0x182)]);}logger[_0x543594(0x250)](_0x5c5f06[_0x543594(0x1d0)]);}else return[!![],_0x5e2d46];}catch(_0x344cbb){if(_0x5c5f06[_0x543594(0x1cd)](_0x5c5f06[_0x543594(0x13b)],_0x5c5f06[_0x543594(0x123)]))return!![];else{logger['info'](_0x5c5f06[_0x543594(0x205)]);throw _0x344cbb;}}}async[a3_0x589c69(0x242)](_0x4b4adf){const _0x37f6bc=a3_0x589c69,_0x142e00={};_0x142e00['Xqauc']=function(_0x11b03d,_0x21d209){return _0x11b03d!==_0x21d209;},_0x142e00[_0x37f6bc(0x237)]=_0x37f6bc(0x25f),_0x142e00[_0x37f6bc(0x1a8)]=_0x37f6bc(0x279),_0x142e00['BodgT']=function(_0xc9f602,_0x1f7546){return _0xc9f602>_0x1f7546;},_0x142e00['KpOyo']=function(_0x32f33a,_0x39bdef){return _0x32f33a===_0x39bdef;},_0x142e00[_0x37f6bc(0x12c)]=_0x37f6bc(0x14b);const _0x451097=_0x142e00;try{if(_0x451097[_0x37f6bc(0x189)](_0x451097[_0x37f6bc(0x237)],_0x451097[_0x37f6bc(0x1a8)])){const _0x226003=await this[_0x37f6bc(0x13d)][_0x37f6bc(0x1ad)]({'project':this['projectId'],'network':_0x4b4adf});if(_0x451097['BodgT'](_0x226003[_0x37f6bc(0x263)],0x0)&&_0x451097[_0x37f6bc(0x192)](_0x226003[0x0]['name'],_0x4b4adf)){if(_0x451097[_0x37f6bc(0x192)](_0x451097['zigZM'],_0x451097[_0x37f6bc(0x12c)]))return!![];else _0x4bcc78[_0x37f6bc(0x20d)](_0x37f6bc(0x20c)+this[_0x37f6bc(0x22b)]+_0x37f6bc(0x202)+_0x2d0566[_0x37f6bc(0x252)]+'\x20--quiet\x20--user-output-enabled=false');}}else return![];}catch(_0x2b853c){return![];}return![];}async[a3_0x589c69(0x262)](_0x2cd36a,_0x20b0c6){const _0x59d35a=a3_0x589c69,_0x4087d2={};_0x4087d2['dNstq']=function(_0x91d61d,_0x4eef2b){return _0x91d61d===_0x4eef2b;};const _0x797958=_0x4087d2;try{const _0x4d3c79=await this['networkClient'][_0x59d35a(0x1ad)]({'project':this[_0x59d35a(0x208)],'network':_0x20b0c6});for(const _0x4a34e9 of _0x4d3c79[0x0]['subnetworks']){const _0x563957=_0x59d35a(0x201)+this[_0x59d35a(0x208)]+_0x59d35a(0x16c)+global_registry[_0x59d35a(0x252)]+_0x59d35a(0x147)+_0x2cd36a[0x0];if(_0x797958['dNstq'](_0x563957,_0x4a34e9))return[!![],_0x2cd36a];}}catch(_0x1e3a16){return logger[_0x59d35a(0x13c)](_0x59d35a(0x11f)+_0x2cd36a+_0x59d35a(0x24e)+_0x1e3a16),[![],[]];}return[![],[]];}async[a3_0x589c69(0x12f)](){const _0xbd7eca=a3_0x589c69,_0x23f136=await this[_0xbd7eca(0x13d)][_0xbd7eca(0x177)]({'project':this[_0xbd7eca(0x208)]}),_0x3a567b={};_0x3a567b[_0xbd7eca(0x161)]=global_registry['bstackUsername'],_0x3a567b[_0xbd7eca(0x1c4)]=global_registry[_0xbd7eca(0x1b7)],_0x3a567b[_0xbd7eca(0x15b)]=GCP,_0x3a567b[_0xbd7eca(0x1ce)]=[];const _0xc9d374=_0x3a567b;for(const _0x42bdc3 of _0x23f136){_0xc9d374['vpcInfo'][_0xbd7eca(0x283)](_0x42bdc3);}const _0x49b8e3={};_0x49b8e3[_0xbd7eca(0x271)]=WS_EVENTS[_0xbd7eca(0x1ae)],_0x49b8e3['message']=_0xc9d374,this[_0xbd7eca(0x1dd)][_0xbd7eca(0x230)](this[_0xbd7eca(0x182)],_0x49b8e3);}async[a3_0x589c69(0x23b)](){const _0xfc4d7a=a3_0x589c69,_0x52bd33={'aCmBX':function(_0x321ed5,_0x4ac2e4,_0x420c1e){return _0x321ed5(_0x4ac2e4,_0x420c1e);},'HcpRW':'PUT','EFEPl':_0xfc4d7a(0x128),'lYGBq':function(_0xd26ca7,_0x35eb4f,_0x1092bb){return _0xd26ca7(_0x35eb4f,_0x1092bb);}},_0x328cad='https://'+AG_API_URL+_0xfc4d7a(0x1c2),_0x34472e={};_0x34472e[_0xfc4d7a(0x130)]=global_registry['gridProfileId'];const _0x5f0111={};_0x5f0111['newRegion']=global_registry[_0xfc4d7a(0x252)];const _0x4e03c9={'searchParams':_0x34472e,'json':_0x5f0111,'headers':_0x52bd33[_0xfc4d7a(0x272)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0xfc4d7a(0x1b7)]),'method':_0x52bd33[_0xfc4d7a(0x137)],'responseType':_0x52bd33[_0xfc4d7a(0x198)],'throwHttpErrors':![]},_0x126a82=await _0x52bd33[_0xfc4d7a(0x1b4)](got,_0x328cad,_0x4e03c9);}}const a3_0x40ec5e={};a3_0x40ec5e[a3_0x589c69(0x180)]=GoogleCloudProvider,module['exports']=a3_0x40ec5e;function a3_0x455d(){const _0x56a2e1=['rJtLl','NnshX','error','networkClient','344jFWYGd','storage.buckets.create','/global/networks/','NvzxG','hIXhH','jOoFd','sCCxx','iNerM','Creating\x20GKE\x20Cluster','/subnetworks/','setIamPolicy','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','owoeU','qbbKX','rbybF','cwfyh','OZFby','config','ingress','customRoleName','TwulX','BzgGq','iam','checkServiceAccount','jMnWo','clusterCaCertificate','jQWrN','storage.buckets.createTagBinding','TFvPd','cloudProvider','pXQyp','storage.multipartUploads.list','XGGEf','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','bzpvv','username','KaVcW','dfflj','yzMdz','vnrtx','toLowerCase','GGjkS','createCluster','mHbuL','../utils/userInput','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','/regions/','hREZj','storage.buckets.setIamPolicy','setupNewCluster','ClCbT','kPMgp','ceqDU','clusters','DxXfn','ukXfy','Wnggp','list','etoKB','TjYGa','getUserInput','fJllX','jhGVE','log','XzCCI','child_process','GoogleCloudProvider','oGeAT','rws','bNQdU','storage.objects.list','abLLL','141SbdmJk','onlXo','iamClient','Xqauc','79425XstqtF','Cluster\x20deletion\x20completed','bindings','oMctt','TGvmY','VtxPs','@google-cloud/compute','cxJMk','KpOyo','NetworksClient','regionmap.json','zaLGX','containerClient','bGnZH','EFEPl','yZLgn','89ToAcqd','parse','TQrWe','MvzSv','keyFile','NgfeD','KTmkT','cAjtl','gcpresources','cFcPJ','CrOGY','LQGlv','UPITE','setupServiceAccount','NYIjc','UDQYI','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','updateWindowsNodeGroup','ftnVj','get','RESOURCES','LzZiT','locations','yOaoz','EMKtq','Dgyya','lYGBq','concat','HvwiW','bstackAccesskey','gcloud\x20auth\x20login\x20--cred-file=','members','vrTLt','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','credentialsPath','fspcQ','loadBalancer','endpoint','pJOhb','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','/packages/cli/update-cluster-region','organizations','accessKey','ACGCC','gcp_credentials.json','Abotx','HPLWJ','oCyJf','default','isBrowserstackCluster','sJSTU','tMuoR','vpcInfo','ZBOhg','sJMau','resourcemanagerClient','utf-8','storage.buckets.list','masterAuth','tHwdr','getIamPolicy','stack','split','join','SZZvc','vrtPo','EElHB','webSocketUtils','role','/locations/','includedPermissions','FsUbw','wVezM','message','ChnnM','Spauv','.iam.gserviceaccount.com','getClusterInfo','XoVug','zrvoG','KubeConfigTemplate.yaml','lUenS','KDtdz','TtYcG','GXjmT','iVSZt','bYoAT','storage.multipartUploads.listParts','10UIbdNI','NoZuk','PlQvv','googleapis','RUNNING','Creating\x20service\x20account','WmKBS','auth','Turboscale\x20Custom\x20Role','../utils/gridComponents','JePBZ','MEUWa','ifoSl','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','iam.serviceAccounts.signBlob','https://www.googleapis.com/compute/v1/projects/','\x20--windows-os-version=ltsc2022\x20--region\x20','templates','turboscale_custom_role','CHCTa','browserstack','QAFAb','projectId','Cluster\x20creation\x20failed','zhUMb','LXRGw','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','execSync','4454884JrjYLc','../config/constants','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','wsAkr','getCluster','GKE\x20Cluster\x20deletion\x20failed','BfAxn','projects/','dejMJ','data','YgxHa','Wctct','storage.objects.getIamPolicy','exit','UcGgv','managedby','https://www.googleapis.com/auth/cloud-platform','nnIpr','WwfiQ','edKse','scopes','LyPZd','parent','KbdJX','zrNtr','qoLJm','TtrHI','OwgpP','init','clusterName','puBvZ','mefpQ','accounts','tjNBD','sendEventToBackend','TBTxM','projects','serviceAccountName','/clusters/','lZcsS','minNodes','Objbr','PABGo','ExQvv','SgtUY','updateClusterRegion','Found\x20cluster\x20with\x20name\x20\x27','maxNodes','Deleting\x20the\x20cluster\x20','storage.objects.setIamPolicy','YdUfv','jQiJN','isVPCPresent','LgIfw','@google-cloud/resource-manager','fyoaX','cloudProviderName','InRBT','1811110EVDhXd','maxNodeCount','BOHPS','requestBody','isClusterPresent','project_id','.\x20Error:\x20','bCujN','info','serviceAccount','clusterRegion','tWRVh','toString','ofMsh','LOG','lvTAj','VsfFT','sendResourceDataToHST','XeSQi','qNmBR','instanceType','/serviceAccounts/','ODivd','cPQRW','storage.buckets.listEffectiveTags','LtvlH','isSubnetsValid','length','QxWOu','pIxbm','resourceLabels','8712348MAeQmT','aSBvV','setCachedCredsInRegistry','LKtaB','cDTwa','sSstq','CIaRV','15258FIyuQj','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','storage.buckets.update','type','aCmBX','Service\x20account\x20already\x20exists,\x20skipping','6|1|2|7|0|4|8|3|5','path','aBunP','./CloudProvider','6538587LiLUdL','tEKdb','status','YaaVl','paNre','autoscaling','GJyjZ','nGIgV','minNodeCount','BPplF','niQyj','push','machineType','nodePools','storage.buckets.deleteTagBinding','getClient','KcbDk','https://','Cannot\x20find\x20subnets\x20','accountId','readFileAsync','xneSY','xOGtd','WBgqx','deleteCluster','adKFX','storage.buckets.get','json','okfzF','PsVSj','name','zigZM','DUTzw','lKWNR','sendGCPInfoToHST','profileId','vXLsb','wQUBh','hNRQm','LpHYv','getGridHostname','FHKXM','HcpRW','SLRkM','79188jiHvCF'];a3_0x455d=function(){return _0x56a2e1;};return a3_0x455d();}
@@ -1 +1 @@
1
- const a4_0x52c1b6=a4_0x1b4b;function a4_0x5738(){const _0x21756b=['33877836uMCxfG','918FHuFDG','node','create-grid-called','getCloudProviderObject','./GoogleCloudProvider','../config/constants','./AWS','BRDBV','versions','SRCca','NrOYm','7352130qYYJQK','4cjBXKw','tsMsO','grid-spawning-failed','585472aGshTn','../config/logger','8867480dGNICM','4xwOmLc','aAlFO',',\x20stacktrace:\x20','error','Current\x20Node.js\x20version\x20','init','7JWUnWc','exit','ERROR','11igeClX','Bitbx','../utils/instrumentationUtils','../utils/utilityMethods','4470387BeuNnK','9475475TwpVJN','message','165250lcGVVb'];a4_0x5738=function(){return _0x21756b;};return a4_0x5738();}(function(_0x21c863,_0x1041df){const _0x1ee4bf=a4_0x1b4b,_0x335a2b=_0x21c863();while(!![]){try{const _0x245335=-parseInt(_0x1ee4bf(0x1e5))/0x1*(parseInt(_0x1ee4bf(0x1e8))/0x2)+parseInt(_0x1ee4bf(0x1f8))/0x3*(parseInt(_0x1ee4bf(0x1eb))/0x4)+parseInt(_0x1ee4bf(0x1f9))/0x5+-parseInt(_0x1ee4bf(0x1e4))/0x6+parseInt(_0x1ee4bf(0x1f1))/0x7*(parseInt(_0x1ee4bf(0x1ea))/0x8)+parseInt(_0x1ee4bf(0x1fd))/0x9*(parseInt(_0x1ee4bf(0x1fb))/0xa)+parseInt(_0x1ee4bf(0x1f4))/0xb*(-parseInt(_0x1ee4bf(0x1fc))/0xc);if(_0x245335===_0x1041df)break;else _0x335a2b['push'](_0x335a2b['shift']());}catch(_0x3a03e4){_0x335a2b['push'](_0x335a2b['shift']());}}}(a4_0x5738,0xea50d));const {AWSCloudProvider}=require(a4_0x52c1b6(0x203)),{GoogleCloudProvider}=require(a4_0x52c1b6(0x201)),{installAzurePackages}=require(a4_0x52c1b6(0x1f7)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x52c1b6(0x202)),{sendInstrumentationEvent}=require(a4_0x52c1b6(0x1f6)),{logger}=require(a4_0x52c1b6(0x1e9));function a4_0x1b4b(_0x181f75,_0x4d4a00){const _0x573850=a4_0x5738();return a4_0x1b4b=function(_0x1b4bf5,_0x4294e0){_0x1b4bf5=_0x1b4bf5-0x1e1;let _0x2752f0=_0x573850[_0x1b4bf5];return _0x2752f0;},a4_0x1b4b(_0x181f75,_0x4d4a00);}exports[a4_0x52c1b6(0x200)]=async(_0x1b68f4,_0x81ff70,_0x1ed776,_0x2ce8aa,_0x13ac60,_0xf6fb06)=>{const _0x3e2456=a4_0x52c1b6,_0x3ced9d={'NrOYm':function(_0x4ae204){return _0x4ae204();},'tsMsO':function(_0x2e2702,_0x274101){return _0x2e2702(_0x274101);},'Bitbx':'./Azure','SRCca':function(_0x1684b2,_0x1a3b30,_0x361b7b,_0x3f93e7,_0x389126,_0x364f4c,_0x14e9cf){return _0x1684b2(_0x1a3b30,_0x361b7b,_0x3f93e7,_0x389126,_0x364f4c,_0x14e9cf);},'aAlFO':_0x3e2456(0x1ff),'BRDBV':_0x3e2456(0x1e7)};switch(_0x1b68f4){case AWS:{const _0xad4049=new AWSCloudProvider(_0x81ff70,_0x1ed776,_0x2ce8aa,_0x13ac60);return await _0xad4049[_0x3e2456(0x1f0)]();}case GCP:{const _0x460e17=new GoogleCloudProvider(_0x81ff70,_0x1ed776,_0x2ce8aa,_0x13ac60);return await _0x460e17[_0x3e2456(0x1f0)]();}case AZURE:{try{await _0x3ced9d[_0x3e2456(0x1e3)](installAzurePackages);const {AzureCloudProvider:_0xda7da}=_0x3ced9d[_0x3e2456(0x1e6)](require,_0x3ced9d[_0x3e2456(0x1f5)]),_0x9a37e2=new _0xda7da(_0x81ff70,_0x1ed776,_0x2ce8aa,_0x13ac60);return await _0x9a37e2[_0x3e2456(0x1f0)]();}catch(_0x180b8e){const _0x4e64c8=_0x3e2456(0x1ef)+process[_0x3e2456(0x1e1)][_0x3e2456(0x1fe)]+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20'+_0x180b8e[_0x3e2456(0x1fa)]+_0x3e2456(0x1ed)+_0x180b8e['stack'];logger['error'](_0x4e64c8);const _0x13b287={};_0x13b287[_0x3e2456(0x1ee)]=_0x4e64c8,await _0x3ced9d[_0x3e2456(0x1e2)](sendInstrumentationEvent,_0xf6fb06,_0x3ced9d[_0x3e2456(0x1ec)],messageTypes[_0x3e2456(0x1f3)],_0x3ced9d[_0x3e2456(0x204)],_0x13b287,_0xf6fb06),process['exit'](0x1);}}default:logger[_0x3e2456(0x1ee)]('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x1b68f4),process[_0x3e2456(0x1f2)](0x1);}};
1
+ const a4_0x3d05e2=a4_0x39ac;function a4_0x39ac(_0x49da2b,_0x2d75af){const _0x3b3892=a4_0x3b38();return a4_0x39ac=function(_0x39ac72,_0x14cf9e){_0x39ac72=_0x39ac72-0x1c5;let _0x236d2f=_0x3b3892[_0x39ac72];return _0x236d2f;},a4_0x39ac(_0x49da2b,_0x2d75af);}(function(_0x4bebaa,_0x3076b7){const _0x12ecb3=a4_0x39ac,_0x556415=_0x4bebaa();while(!![]){try{const _0x22fb2f=parseInt(_0x12ecb3(0x1d9))/0x1*(-parseInt(_0x12ecb3(0x1c8))/0x2)+parseInt(_0x12ecb3(0x1da))/0x3*(-parseInt(_0x12ecb3(0x1ce))/0x4)+parseInt(_0x12ecb3(0x1dc))/0x5+-parseInt(_0x12ecb3(0x1c9))/0x6*(parseInt(_0x12ecb3(0x1d7))/0x7)+parseInt(_0x12ecb3(0x1c7))/0x8+-parseInt(_0x12ecb3(0x1cc))/0x9*(-parseInt(_0x12ecb3(0x1dd))/0xa)+parseInt(_0x12ecb3(0x1cf))/0xb;if(_0x22fb2f===_0x3076b7)break;else _0x556415['push'](_0x556415['shift']());}catch(_0x38b3ed){_0x556415['push'](_0x556415['shift']());}}}(a4_0x3b38,0xe1f37));function a4_0x3b38(){const _0x511ee3=['432733zKUeek','ERROR','1dYRLnG','499977ygbIeh','Current\x20Node.js\x20version\x20','5644460ZJhRgW','25540QEnsYD','tQbWy','xqIzo','Unknown\x20cloud\x20provider\x20found\x20-\x20','./GoogleCloudProvider','kdtGm','../config/logger','exit','2441384dKDxBb','657226ySzhdm','150aLVNZb','FBUnI','../utils/utilityMethods','423YdCFkT','init','20KoZtnI','22866525eDBIPb','create-grid-called',',\x20stacktrace:\x20','grid-spawning-failed','opdaT','../config/constants','error','./Azure'];a4_0x3b38=function(){return _0x511ee3;};return a4_0x3b38();}const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x3d05e2(0x1e1)),{installAzurePackages}=require(a4_0x3d05e2(0x1cb)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x3d05e2(0x1d4)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),{logger}=require(a4_0x3d05e2(0x1c5));exports['getCloudProviderObject']=async(_0xa46526,_0x18dbd9,_0x21402b,_0xb6f9e3,_0xcbb4bb,_0x1d8700)=>{const _0xfc69fe=a4_0x3d05e2,_0x4b25e1={'opdaT':function(_0x5d7075){return _0x5d7075();},'FBUnI':function(_0x1c46f1,_0x20beee){return _0x1c46f1(_0x20beee);},'tQbWy':_0xfc69fe(0x1d6),'ORBKR':function(_0x4d07a8,_0x2b3f29,_0x3d3fe9,_0x116c5a,_0x5720ac,_0x4360f5,_0x4a929c){return _0x4d07a8(_0x2b3f29,_0x3d3fe9,_0x116c5a,_0x5720ac,_0x4360f5,_0x4a929c);},'kdtGm':_0xfc69fe(0x1d0),'xqIzo':_0xfc69fe(0x1d2)};switch(_0xa46526){case AWS:{const _0x5d2243=new AWSCloudProvider(_0x18dbd9,_0x21402b,_0xb6f9e3,_0xcbb4bb);return await _0x5d2243['init']();}case GCP:{const _0x5610cf=new GoogleCloudProvider(_0x18dbd9,_0x21402b,_0xb6f9e3,_0xcbb4bb);return await _0x5610cf[_0xfc69fe(0x1cd)]();}case AZURE:{try{await _0x4b25e1[_0xfc69fe(0x1d3)](installAzurePackages);const {AzureCloudProvider:_0xaac1c4}=_0x4b25e1[_0xfc69fe(0x1ca)](require,_0x4b25e1[_0xfc69fe(0x1de)]),_0x4abe19=new _0xaac1c4(_0x18dbd9,_0x21402b,_0xb6f9e3,_0xcbb4bb);return await _0x4abe19[_0xfc69fe(0x1cd)]();}catch(_0x56ceeb){const _0x2e45c7=_0xfc69fe(0x1db)+process['versions']['node']+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20'+_0x56ceeb['message']+_0xfc69fe(0x1d1)+_0x56ceeb['stack'];logger[_0xfc69fe(0x1d5)](_0x2e45c7);const _0x52d0c9={};_0x52d0c9['error']=_0x2e45c7,await _0x4b25e1['ORBKR'](sendInstrumentationEvent,_0x1d8700,_0x4b25e1[_0xfc69fe(0x1e2)],messageTypes[_0xfc69fe(0x1d8)],_0x4b25e1[_0xfc69fe(0x1df)],_0x52d0c9,_0x1d8700),process[_0xfc69fe(0x1c6)](0x1);}}default:logger[_0xfc69fe(0x1d5)](_0xfc69fe(0x1e0)+_0xa46526),process[_0xfc69fe(0x1c6)](0x1);}};
@@ -1 +1 @@
1
- function a5_0x258b(_0xb4dafc,_0x4e452a){const _0x37453d=a5_0x3745();return a5_0x258b=function(_0x258b9d,_0x46b87e){_0x258b9d=_0x258b9d-0x17b;let _0x1ed149=_0x37453d[_0x258b9d];return _0x1ed149;},a5_0x258b(_0xb4dafc,_0x4e452a);}const a5_0xcf1296=a5_0x258b;(function(_0x378039,_0x34192f){const _0x18c4e6=a5_0x258b,_0x4cd4d7=_0x378039();while(!![]){try{const _0x2007ff=parseInt(_0x18c4e6(0x1d9))/0x1*(parseInt(_0x18c4e6(0x194))/0x2)+parseInt(_0x18c4e6(0x1a4))/0x3*(parseInt(_0x18c4e6(0x1d6))/0x4)+-parseInt(_0x18c4e6(0x1cb))/0x5+-parseInt(_0x18c4e6(0x1cc))/0x6+parseInt(_0x18c4e6(0x1e6))/0x7*(-parseInt(_0x18c4e6(0x1af))/0x8)+-parseInt(_0x18c4e6(0x199))/0x9+parseInt(_0x18c4e6(0x180))/0xa;if(_0x2007ff===_0x34192f)break;else _0x4cd4d7['push'](_0x4cd4d7['shift']());}catch(_0x19de16){_0x4cd4d7['push'](_0x4cd4d7['shift']());}}}(a5_0x3745,0x4ce1a));const fs=require('fs'),got=require(a5_0xcf1296(0x1c2)),{v4:uuidv4}=require(a5_0xcf1296(0x1ac)),{inputConfirmation,closeInput}=require(a5_0xcf1296(0x1e3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0xcf1296(0x1d5)),{getCredentialsPath,getAuthHeader}=require(a5_0xcf1296(0x1d2)),{sendInstrumentationEvent}=require(a5_0xcf1296(0x1cf));function a5_0x3745(){const _0x406d88=['alEEO','name','\x20\x20username:\x20','init-not-called','UIFiC','zPwgq','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','../utils/userInput','Failed\x20to\x20configure\x20resources!\x20Error:\x20','list','1981tXqxRw','fvZsQ','profileId','\x20\x20grid-profile:\x20','Updated\x20default\x20Grid\x20Profile\x20successfully','unauthorised','wItkI','7618950KLlyAd','readFileSync','GGfCT','strict','bQnTY','/packages/cli/configure','INFO','command','YjxDC','tsnif','recommendCommands','PyEeX','GET','argv','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','configure-called','existsSync','xTAeg','password','xavQJ','344mVcOng','DGLmP','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','PUT','kJNUN','1148166HZkjKL','tDVHk','active','help','length','cWoMU','statusCode','JwhUC','mXRAh','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','json','3lpsHfw','error','SWmJn','mIgMC','parse','pFVRH','BfcyK','Browserstack','uuid','builder','stack','10088MmuivW','ILNgg','TwGvJ','handler','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','QUjeS','invalid-input','JuwTv','CvUDf','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','VbGWi','oMKBU','MnioN','unknown-error','desc','log','ERROR','exit','got','sLhld','username','body','MiZVV','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','toLowerCase','core:','siJbL','370140gpFhTK','2247078OWQrIn','qNxGu','Nlusi','../utils/instrumentationUtils','configure','ChovE','../utils/utilityMethods','https://','ZXUZj','../config/constants','1841444TOoojo','KrqrY','KwUFG','149OfFRbn','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error'];a5_0x3745=function(){return _0x406d88;};return a5_0x3745();}exports[a5_0xcf1296(0x187)]=a5_0xcf1296(0x1d0),exports[a5_0xcf1296(0x1be)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0xcf1296(0x1ad)]=function(_0x432d71){const _0x5d8575=a5_0xcf1296,_0x1a7a15={};_0x1a7a15[_0x5d8575(0x195)]='help';const _0x40edc5=_0x1a7a15;return _0x432d71['usage'](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5d8575(0x19c)](_0x40edc5[_0x5d8575(0x195)])[_0x5d8575(0x18a)]()[_0x5d8575(0x183)]()[_0x5d8575(0x18d)];},exports[a5_0xcf1296(0x1b2)]=async function(_0x1f1b87){const _0x4442a5=a5_0xcf1296,_0x25ee30={'tsnif':function(_0x5b56e0){return _0x5b56e0();},'GGfCT':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qNxGu':function(_0x4a9992,_0x3683e8,_0x3a7867,_0x3dac97,_0x2b957f,_0x12caa4,_0x30cf03){return _0x4a9992(_0x3683e8,_0x3a7867,_0x3dac97,_0x2b957f,_0x12caa4,_0x30cf03);},'cWoMU':_0x4442a5(0x18f),'qchHg':_0x4442a5(0x1df),'SWmJn':_0x4442a5(0x18c),'PyEeX':function(_0x3757f9,_0x3b877f,_0x289304){return _0x3757f9(_0x3b877f,_0x289304);},'KwUFG':function(_0x28d334,_0x57cc2c){return _0x28d334!==_0x57cc2c;},'VbGWi':function(_0x503797,_0x3e2c81){return _0x503797!==_0x3e2c81;},'ZXUZj':function(_0x8e3b93,_0x94e128){return _0x8e3b93===_0x94e128;},'zPwgq':_0x4442a5(0x1b3),'pFVRH':_0x4442a5(0x1c9),'mIgMC':function(_0x579489,_0x5828cd){return _0x579489(_0x5828cd);},'BfcyK':_0x4442a5(0x1a2),'CvUDf':function(_0x2b8393,_0x19b5e6){return _0x2b8393===_0x19b5e6;},'mXRAh':function(_0x5c264b,_0x4226b3){return _0x5c264b===_0x4226b3;},'MnioN':function(_0x9bab73,_0x301950){return _0x9bab73===_0x301950;},'Nlusi':_0x4442a5(0x1c7),'kJNUN':function(_0x4db082,_0x4f5dd1,_0x7f1f66,_0x5f40a7,_0x37af69,_0x5c69bc,_0x23e399){return _0x4db082(_0x4f5dd1,_0x7f1f66,_0x5f40a7,_0x37af69,_0x5c69bc,_0x23e399);},'sLhld':_0x4442a5(0x1b5),'wItkI':function(_0x36ad6a,_0x442083){return _0x36ad6a===_0x442083;},'JuwTv':_0x4442a5(0x196),'rwsGA':function(_0x4d720e,_0x2226d9){return _0x4d720e<_0x2226d9;},'jvubp':function(_0x82714,_0x385178){return _0x82714+_0x385178;},'tDVHk':function(_0x11c9b3,_0x5a899c){return _0x11c9b3(_0x5a899c);},'QUjeS':_0x4442a5(0x18e),'xavQJ':function(_0x154d67,_0x23d30a){return _0x154d67(_0x23d30a);},'MiZVV':function(_0x4ed9c8,_0xf6735){return _0x4ed9c8<=_0xf6735;},'YjxDC':function(_0x380b2c,_0x414dfb){return _0x380b2c>_0x414dfb;},'alEEO':function(_0x12c1ea,_0x5a17b6,_0x39b327,_0x2a847b,_0x10549a,_0x145fbe,_0xddf7b3){return _0x12c1ea(_0x5a17b6,_0x39b327,_0x2a847b,_0x10549a,_0x145fbe,_0xddf7b3);},'ZAQGG':'invalid-selection','KrqrY':function(_0x450741){return _0x450741();},'JwhUC':function(_0x49f075,_0x201526){return _0x49f075-_0x201526;},'fvZsQ':_0x4442a5(0x197),'UIFiC':_0x4442a5(0x1a3),'xTAeg':function(_0x1849d8,_0x114d52){return _0x1849d8!==_0x114d52;},'bQnTY':_0x4442a5(0x17d),'siJbL':_0x4442a5(0x1e2),'ChovE':function(_0xb15550,_0x511bd3,_0x41fc9a,_0xd13a22,_0x1ba68c,_0x2b33fd,_0x3e9585){return _0xb15550(_0x511bd3,_0x41fc9a,_0xd13a22,_0x1ba68c,_0x2b33fd,_0x3e9585);},'ShXYp':_0x4442a5(0x17e),'oMKBU':_0x4442a5(0x1db),'TwGvJ':_0x4442a5(0x1b8),'oocvY':function(_0x483d1d,_0x18e8c9,_0x560b40,_0x2966a1,_0x2f22e7,_0x16d12a,_0x4cc39c){return _0x483d1d(_0x18e8c9,_0x560b40,_0x2966a1,_0x2f22e7,_0x16d12a,_0x4cc39c);},'ILNgg':function(_0x5f11d6,_0x1437f8,_0x592e78,_0x551e28,_0x26789e,_0x342550,_0x5a47a7){return _0x5f11d6(_0x1437f8,_0x592e78,_0x551e28,_0x26789e,_0x342550,_0x5a47a7);},'yKiDB':_0x4442a5(0x1bd)};try{global_registry['requestId']=_0x25ee30[_0x4442a5(0x189)](uuidv4);const _0x1f06f5=_0x4442a5(0x1d3)+AG_API_URL+_0x4442a5(0x185);!fs[_0x4442a5(0x190)](_0x25ee30['tsnif'](getCredentialsPath))&&(console[_0x4442a5(0x1a5)](_0x25ee30[_0x4442a5(0x182)]),await _0x25ee30[_0x4442a5(0x1cd)](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes[_0x4442a5(0x1c0)],_0x25ee30['qchHg'],null,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1));await _0x25ee30[_0x4442a5(0x1cd)](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes[_0x4442a5(0x186)],null,null,_0x1f1b87);const _0x5be029=JSON[_0x4442a5(0x1a8)](fs[_0x4442a5(0x181)](_0x25ee30[_0x4442a5(0x189)](getCredentialsPath))),_0x57fa79={'method':_0x25ee30[_0x4442a5(0x1a6)],'headers':_0x25ee30[_0x4442a5(0x18b)](getAuthHeader,_0x5be029[_0x4442a5(0x1ab)][_0x4442a5(0x1c4)],_0x5be029[_0x4442a5(0x1ab)]['password']),'throwHttpErrors':![]},_0x53bb4e=await _0x25ee30[_0x4442a5(0x18b)](got,_0x1f06f5,_0x57fa79);if(_0x25ee30[_0x4442a5(0x1d8)](_0x53bb4e,null)&&_0x25ee30[_0x4442a5(0x1ba)](_0x53bb4e,undefined)&&_0x25ee30[_0x4442a5(0x1d4)](_0x53bb4e['statusCode'],0xc8)){const _0x493e0a=JSON['parse'](_0x53bb4e[_0x4442a5(0x1c5)]);console[_0x4442a5(0x1bf)](_0x25ee30[_0x4442a5(0x1e1)]),console[_0x4442a5(0x1bf)](_0x25ee30[_0x4442a5(0x1a9)]),console[_0x4442a5(0x1bf)](_0x4442a5(0x1de)+_0x5be029[_0x4442a5(0x1ab)][_0x4442a5(0x1c4)]),console['log'](_0x4442a5(0x17c)+_0x493e0a[_0x4442a5(0x19b)][_0x4442a5(0x1dd)]);const _0x53c020=await _0x25ee30[_0x4442a5(0x1a7)](inputConfirmation,_0x25ee30[_0x4442a5(0x1aa)]);(_0x25ee30[_0x4442a5(0x1d4)](_0x53c020,undefined)||_0x25ee30[_0x4442a5(0x1b7)](_0x53c020,null)||!(_0x25ee30[_0x4442a5(0x1a1)](_0x53c020[_0x4442a5(0x1c8)](),'y')||_0x25ee30[_0x4442a5(0x1bc)](_0x53c020[_0x4442a5(0x1c8)](),'n')))&&(console[_0x4442a5(0x1a5)](_0x25ee30[_0x4442a5(0x1ce)]),await _0x25ee30[_0x4442a5(0x198)](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes[_0x4442a5(0x1c0)],_0x25ee30[_0x4442a5(0x1c3)],null,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1));_0x25ee30[_0x4442a5(0x17f)](_0x53c020['toLowerCase'](),'n')&&process[_0x4442a5(0x1c1)](0x0);console[_0x4442a5(0x1bf)](_0x25ee30[_0x4442a5(0x1b6)]);const _0x5323a7=_0x493e0a[_0x4442a5(0x1e5)][_0x4442a5(0x19d)];for(let _0x13e090=0x0;_0x25ee30['rwsGA'](_0x13e090,_0x5323a7);_0x13e090+=0x1){console[_0x4442a5(0x1bf)]('['+_0x25ee30['jvubp'](_0x13e090,0x1)+']\x20'+_0x493e0a[_0x4442a5(0x1e5)][_0x13e090][_0x4442a5(0x1dd)]);}const _0x53fc84=await _0x25ee30[_0x4442a5(0x19a)](inputConfirmation,_0x25ee30[_0x4442a5(0x1b4)]),_0x4f139b=_0x25ee30[_0x4442a5(0x193)](Number,_0x53fc84);(_0x25ee30[_0x4442a5(0x193)](isNaN,_0x4f139b)||_0x25ee30[_0x4442a5(0x1c6)](_0x4f139b,0x0)||_0x25ee30[_0x4442a5(0x188)](_0x4f139b,_0x5323a7))&&(console[_0x4442a5(0x1a5)](_0x25ee30[_0x4442a5(0x1ce)]),await _0x25ee30[_0x4442a5(0x1dc)](sendInstrumentationEvent,_0x1f1b87,_0x25ee30['cWoMU'],messageTypes[_0x4442a5(0x1c0)],_0x25ee30['ZAQGG'],null,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1));_0x25ee30[_0x4442a5(0x1d7)](closeInput);const _0x13ec71=_0x493e0a[_0x4442a5(0x1e5)][_0x25ee30[_0x4442a5(0x1a0)](_0x4f139b,0x1)]['id'],_0x5868e3={};_0x5868e3[_0x4442a5(0x17b)]=_0x13ec71;const _0x3529d3={'method':_0x25ee30[_0x4442a5(0x1e7)],'headers':_0x25ee30['PyEeX'](getAuthHeader,_0x5be029['Browserstack'][_0x4442a5(0x1c4)],_0x5be029[_0x4442a5(0x1ab)][_0x4442a5(0x192)]),'json':_0x5868e3,'responseType':_0x25ee30[_0x4442a5(0x1e0)],'throwHttpErrors':![]},_0x5ec81=await _0x25ee30[_0x4442a5(0x18b)](got,_0x1f06f5,_0x3529d3);_0x25ee30[_0x4442a5(0x191)](_0x5ec81,null)&&_0x25ee30[_0x4442a5(0x191)](_0x5ec81,undefined)&&_0x25ee30[_0x4442a5(0x1b7)](_0x5ec81[_0x4442a5(0x19f)],0xc8)&&(console[_0x4442a5(0x1bf)](_0x25ee30[_0x4442a5(0x184)]),process[_0x4442a5(0x1c1)](0x0)),_0x25ee30[_0x4442a5(0x1b7)](_0x5ec81[_0x4442a5(0x19f)],0x191)&&(console[_0x4442a5(0x1a5)](_0x25ee30[_0x4442a5(0x1ca)]),await _0x25ee30['ChovE'](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes['ERROR'],_0x25ee30['ShXYp'],null,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1)),console[_0x4442a5(0x1a5)](_0x4442a5(0x1b9)+JSON['stringify'](_0x5ec81)),await _0x25ee30[_0x4442a5(0x1d1)](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes[_0x4442a5(0x1c0)],_0x25ee30[_0x4442a5(0x1bb)],_0x5ec81,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1);}_0x25ee30[_0x4442a5(0x1b7)](_0x53bb4e['statusCode'],0x191)&&(console['error'](_0x25ee30[_0x4442a5(0x1b1)]),await _0x25ee30['ChovE'](sendInstrumentationEvent,_0x1f1b87,_0x25ee30['cWoMU'],messageTypes['ERROR'],_0x25ee30['ShXYp'],null,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1)),console[_0x4442a5(0x1a5)](_0x4442a5(0x1da)+JSON['stringify'](_0x53bb4e)),await _0x25ee30['oocvY'](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes[_0x4442a5(0x1c0)],_0x25ee30[_0x4442a5(0x1bb)],_0x53bb4e,_0x1f1b87),process[_0x4442a5(0x1c1)](0x1);}catch(_0x5a06d1){console['error'](_0x4442a5(0x1e4)+_0x5a06d1[_0x4442a5(0x1ae)]),await _0x25ee30[_0x4442a5(0x1b0)](sendInstrumentationEvent,_0x1f1b87,_0x25ee30[_0x4442a5(0x19e)],messageTypes[_0x4442a5(0x1c0)],_0x25ee30['yKiDB'],_0x5a06d1,_0x1f1b87),process['exit'](0x1);}};
1
+ const a5_0x6805ea=a5_0x38db;(function(_0x58ccb4,_0x387cc5){const _0xc51964=a5_0x38db,_0x33a0e2=_0x58ccb4();while(!![]){try{const _0x4fe1ab=-parseInt(_0xc51964(0x230))/0x1+-parseInt(_0xc51964(0x1e6))/0x2+parseInt(_0xc51964(0x1db))/0x3*(-parseInt(_0xc51964(0x205))/0x4)+-parseInt(_0xc51964(0x224))/0x5+parseInt(_0xc51964(0x207))/0x6+-parseInt(_0xc51964(0x229))/0x7+-parseInt(_0xc51964(0x223))/0x8*(-parseInt(_0xc51964(0x236))/0x9);if(_0x4fe1ab===_0x387cc5)break;else _0x33a0e2['push'](_0x33a0e2['shift']());}catch(_0x27f2d9){_0x33a0e2['push'](_0x33a0e2['shift']());}}}(a5_0x5b19,0x31a88));function a5_0x38db(_0x3be6ba,_0x244a8b){const _0x5b190a=a5_0x5b19();return a5_0x38db=function(_0x38db36,_0x1559d9){_0x38db36=_0x38db36-0x1d3;let _0x5aaf16=_0x5b190a[_0x38db36];return _0x5aaf16;},a5_0x38db(_0x3be6ba,_0x244a8b);}function a5_0x5b19(){const _0x2ead03=['Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','recommendCommands','unknown-error','NJOFg','RBKsz','invalid-selection','MWdVE','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','htArw','readFileSync','core:','bhbIC','694840bKlhed','301745dDBdWz','../utils/utilityMethods','FuBNA','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','active','441168OuyPtM','PhDKx','toLowerCase','sNDXr','length','name','Browserstack','260685HhvUgf','profileId','ERROR','RGINu','yAwTr','unauthorised','63ryiQfw','GET','WYgdu','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','jiHMJ','list','SFnDJ','UPsJf','fSfHO','invalid-input','handler','RehLq','server-error','18153HhslZA','epilogue','VcLfc','command','lYhfz','CegsH','parse','ZgHHd','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','HTcca','stack','187070eKKKuQ','VPrOx','Rexbh','uuid','dhyZC','PUT','strict','existsSync','rkDyB','../config/constants','stringify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jrMfs','jNGXH','https://','SzbDu','oaAob','ImTsz','AlBef','ueUOE','\x20\x20grid-profile:\x20','blIsO','log','Ynwbr','exit','uQUBK','configure-called','got','usage','configure','wLqaD','172FpHVch','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','1999206FUzXaj','Failed\x20to\x20configure\x20resources!\x20Error:\x20','username','silNQ','PEzPt','statusCode','bkHYM','body','init-not-called','vrILW','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','json','argv','desc','dtGTC'];a5_0x5b19=function(){return _0x2ead03;};return a5_0x5b19();}const fs=require('fs'),got=require(a5_0x6805ea(0x201)),{v4:uuidv4}=require(a5_0x6805ea(0x1e9)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x6805ea(0x1ef)),{getCredentialsPath,getAuthHeader}=require(a5_0x6805ea(0x225)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x6805ea(0x1de)]=a5_0x6805ea(0x203),exports[a5_0x6805ea(0x214)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x2f31f2){const _0x2014af=a5_0x6805ea,_0x3ae790={};_0x3ae790[_0x2014af(0x21a)]='help';const _0x2a4aa3=_0x3ae790;return _0x2f31f2[_0x2014af(0x202)](HELP_HEADER_MESSAGE['configure'])[_0x2014af(0x1dc)](HELP_FOOTER_MESSAGE)['help'](_0x2a4aa3[_0x2014af(0x21a)])[_0x2014af(0x218)]()[_0x2014af(0x1ec)]()[_0x2014af(0x213)];},exports[a5_0x6805ea(0x1d8)]=async function(_0x46efd4){const _0x116a98=a5_0x6805ea,_0x222fec={'silNQ':function(_0x4b56e8){return _0x4b56e8();},'fSfHO':_0x116a98(0x1f1),'UPsJf':function(_0x5b986f,_0x363f68,_0x309a2a,_0x1a2854,_0x3601c2,_0x319b23,_0x147b9c){return _0x5b986f(_0x363f68,_0x309a2a,_0x1a2854,_0x3601c2,_0x319b23,_0x147b9c);},'htArw':_0x116a98(0x200),'ruYmQ':_0x116a98(0x20f),'ueUOE':function(_0x33ee51){return _0x33ee51();},'HTcca':_0x116a98(0x237),'ImTsz':function(_0x3f1426,_0x2694b1,_0x34f59a){return _0x3f1426(_0x2694b1,_0x34f59a);},'VcLfc':function(_0x553b8a,_0x299f0c,_0x4cdd98){return _0x553b8a(_0x299f0c,_0x4cdd98);},'vrILW':function(_0x248698,_0x1405ab){return _0x248698!==_0x1405ab;},'dhyZC':function(_0x194d68,_0xe5e70a){return _0x194d68===_0xe5e70a;},'bnDop':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','sNDXr':_0x116a98(0x221),'uQUBK':function(_0x349c70,_0x4fd865){return _0x349c70(_0x4fd865);},'jiHMJ':_0x116a98(0x1e3),'RGINu':function(_0x5e3a06,_0x18bbf4){return _0x5e3a06===_0x18bbf4;},'bhbIC':function(_0xa73d6f,_0x214e9b){return _0xa73d6f===_0x214e9b;},'RBKsz':function(_0x3fff40,_0x1102f3){return _0x3fff40===_0x1102f3;},'Ynwbr':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','zFLHy':_0x116a98(0x1d7),'AlBef':function(_0xe7b9a8,_0x229e1a){return _0xe7b9a8===_0x229e1a;},'qVvNa':_0x116a98(0x206),'rkDyB':function(_0x2444b4,_0x483c19){return _0x2444b4<_0x483c19;},'Tczsr':function(_0x3f5595,_0x2b0405){return _0x3f5595+_0x2b0405;},'wLqaD':function(_0x257915,_0x72ba39){return _0x257915(_0x72ba39);},'FuBNA':_0x116a98(0x239),'CegsH':function(_0xcabbf4,_0x511386){return _0xcabbf4(_0x511386);},'bkHYM':function(_0x52fc56,_0x2d6540){return _0x52fc56(_0x2d6540);},'yAwTr':function(_0x47e0f8,_0x28d62d){return _0x47e0f8<=_0x28d62d;},'Rexbh':function(_0x18ac6e,_0x36a150){return _0x18ac6e>_0x36a150;},'SzbDu':function(_0x3ca351,_0x2b27ac,_0x1e31be,_0x25fb8c,_0x568327,_0x41b7d5,_0x2df294){return _0x3ca351(_0x2b27ac,_0x1e31be,_0x25fb8c,_0x568327,_0x41b7d5,_0x2df294);},'blIsO':_0x116a98(0x21c),'WYgdu':function(_0x44c583){return _0x44c583();},'RehLq':function(_0x1e37c0,_0x1a455f){return _0x1e37c0-_0x1a455f;},'jNGXH':_0x116a98(0x1eb),'PEzPt':_0x116a98(0x212),'VPrOx':function(_0x536ec0,_0x5bf85e,_0x2b3bd7){return _0x536ec0(_0x5bf85e,_0x2b3bd7);},'oaAob':function(_0x325bd1,_0x603ee2){return _0x325bd1===_0x603ee2;},'ZgHHd':'Updated\x20default\x20Grid\x20Profile\x20successfully','MWdVE':_0x116a98(0x227),'PhDKx':function(_0x1d3a22,_0x4896ed,_0x1fa970,_0x99ed11,_0x474e29,_0x592ccb,_0x554356){return _0x1d3a22(_0x4896ed,_0x1fa970,_0x99ed11,_0x474e29,_0x592ccb,_0x554356);},'SFnDJ':_0x116a98(0x235),'dtGTC':_0x116a98(0x1da),'lYhfz':_0x116a98(0x216),'nOggl':function(_0x294c15,_0x213ebf,_0x30f3e3,_0x4be3db,_0xf1e2c5,_0x2f195c,_0x562f6d){return _0x294c15(_0x213ebf,_0x30f3e3,_0x4be3db,_0xf1e2c5,_0x2f195c,_0x562f6d);},'jrMfs':_0x116a98(0x219)};try{global_registry['requestId']=_0x222fec[_0x116a98(0x20a)](uuidv4);const _0x2fac42=_0x116a98(0x1f4)+AG_API_URL+'/packages/cli/configure';!fs[_0x116a98(0x1ed)](_0x222fec['silNQ'](getCredentialsPath))&&(console[_0x116a98(0x217)](_0x222fec[_0x116a98(0x1d6)]),await _0x222fec[_0x116a98(0x1d5)](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec['ruYmQ'],null,_0x46efd4),process[_0x116a98(0x1fe)](0x1));await _0x222fec[_0x116a98(0x1d5)](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes['INFO'],null,null,_0x46efd4);const _0x1467e7=JSON['parse'](fs[_0x116a98(0x220)](_0x222fec[_0x116a98(0x1f9)](getCredentialsPath))),_0x437560={'method':_0x222fec[_0x116a98(0x1e4)],'headers':_0x222fec['ImTsz'](getAuthHeader,_0x1467e7[_0x116a98(0x22f)]['username'],_0x1467e7['Browserstack']['password']),'throwHttpErrors':![]},_0x4a8a19=await _0x222fec[_0x116a98(0x1dd)](got,_0x2fac42,_0x437560);if(_0x222fec[_0x116a98(0x210)](_0x4a8a19,null)&&_0x222fec['vrILW'](_0x4a8a19,undefined)&&_0x222fec[_0x116a98(0x1ea)](_0x4a8a19['statusCode'],0xc8)){const _0x11ab23=JSON[_0x116a98(0x1e1)](_0x4a8a19[_0x116a98(0x20e)]);console[_0x116a98(0x1fc)](_0x222fec['bnDop']),console[_0x116a98(0x1fc)](_0x222fec[_0x116a98(0x22c)]),console[_0x116a98(0x1fc)]('\x20\x20username:\x20'+_0x1467e7[_0x116a98(0x22f)]['username']),console['log'](_0x116a98(0x1fa)+_0x11ab23[_0x116a98(0x228)][_0x116a98(0x22e)]);const _0x4b0eef=await _0x222fec[_0x116a98(0x1ff)](inputConfirmation,_0x222fec[_0x116a98(0x23a)]);(_0x222fec[_0x116a98(0x1ea)](_0x4b0eef,undefined)||_0x222fec[_0x116a98(0x233)](_0x4b0eef,null)||!(_0x222fec[_0x116a98(0x222)](_0x4b0eef[_0x116a98(0x22b)](),'y')||_0x222fec[_0x116a98(0x21b)](_0x4b0eef['toLowerCase'](),'n')))&&(console[_0x116a98(0x217)](_0x222fec[_0x116a98(0x1fd)]),await _0x222fec[_0x116a98(0x1d5)](sendInstrumentationEvent,_0x46efd4,_0x222fec['htArw'],messageTypes[_0x116a98(0x232)],_0x222fec['zFLHy'],null,_0x46efd4),process['exit'](0x1));_0x222fec[_0x116a98(0x1f8)](_0x4b0eef[_0x116a98(0x22b)](),'n')&&process['exit'](0x0);console[_0x116a98(0x1fc)](_0x222fec['qVvNa']);const _0x101af3=_0x11ab23[_0x116a98(0x1d3)][_0x116a98(0x22d)];for(let _0x5792b5=0x0;_0x222fec[_0x116a98(0x1ee)](_0x5792b5,_0x101af3);_0x5792b5+=0x1){console[_0x116a98(0x1fc)]('['+_0x222fec['Tczsr'](_0x5792b5,0x1)+']\x20'+_0x11ab23[_0x116a98(0x1d3)][_0x5792b5]['name']);}const _0x35aea0=await _0x222fec[_0x116a98(0x204)](inputConfirmation,_0x222fec[_0x116a98(0x226)]),_0x493a74=_0x222fec[_0x116a98(0x1e0)](Number,_0x35aea0);(_0x222fec[_0x116a98(0x20d)](isNaN,_0x493a74)||_0x222fec[_0x116a98(0x234)](_0x493a74,0x0)||_0x222fec[_0x116a98(0x1e8)](_0x493a74,_0x101af3))&&(console[_0x116a98(0x217)](_0x222fec[_0x116a98(0x1fd)]),await _0x222fec[_0x116a98(0x1f5)](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec[_0x116a98(0x1fb)],null,_0x46efd4),process[_0x116a98(0x1fe)](0x1));_0x222fec[_0x116a98(0x238)](closeInput);const _0x3fd8db=_0x11ab23[_0x116a98(0x1d3)][_0x222fec[_0x116a98(0x1d9)](_0x493a74,0x1)]['id'],_0x4fee6a={};_0x4fee6a[_0x116a98(0x231)]=_0x3fd8db;const _0x46a252={'method':_0x222fec[_0x116a98(0x1f3)],'headers':_0x222fec[_0x116a98(0x1f7)](getAuthHeader,_0x1467e7[_0x116a98(0x22f)][_0x116a98(0x209)],_0x1467e7[_0x116a98(0x22f)]['password']),'json':_0x4fee6a,'responseType':_0x222fec[_0x116a98(0x20b)],'throwHttpErrors':![]},_0x185f0e=await _0x222fec[_0x116a98(0x1e7)](got,_0x2fac42,_0x46a252);_0x222fec[_0x116a98(0x210)](_0x185f0e,null)&&_0x222fec[_0x116a98(0x210)](_0x185f0e,undefined)&&_0x222fec[_0x116a98(0x1f6)](_0x185f0e['statusCode'],0xc8)&&(console[_0x116a98(0x1fc)](_0x222fec[_0x116a98(0x1e2)]),process[_0x116a98(0x1fe)](0x0)),_0x222fec[_0x116a98(0x222)](_0x185f0e['statusCode'],0x191)&&(console[_0x116a98(0x217)](_0x222fec[_0x116a98(0x21d)]),await _0x222fec[_0x116a98(0x22a)](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec[_0x116a98(0x1d4)],null,_0x46efd4),process[_0x116a98(0x1fe)](0x1)),console[_0x116a98(0x217)](_0x116a98(0x21e)+JSON[_0x116a98(0x1f0)](_0x185f0e)),await _0x222fec[_0x116a98(0x1f5)](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec[_0x116a98(0x215)],_0x185f0e,_0x46efd4),process[_0x116a98(0x1fe)](0x1);}_0x222fec[_0x116a98(0x1ea)](_0x4a8a19[_0x116a98(0x20c)],0x191)&&(console[_0x116a98(0x217)](_0x222fec[_0x116a98(0x1df)]),await _0x222fec['PhDKx'](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec[_0x116a98(0x1d4)],null,_0x46efd4),process['exit'](0x1)),console[_0x116a98(0x217)](_0x116a98(0x211)+JSON['stringify'](_0x4a8a19)),await _0x222fec['nOggl'](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec[_0x116a98(0x215)],_0x4a8a19,_0x46efd4),process[_0x116a98(0x1fe)](0x1);}catch(_0x344d6d){console[_0x116a98(0x217)](_0x116a98(0x208)+_0x344d6d[_0x116a98(0x1e5)]),await _0x222fec['UPsJf'](sendInstrumentationEvent,_0x46efd4,_0x222fec[_0x116a98(0x21f)],messageTypes[_0x116a98(0x232)],_0x222fec[_0x116a98(0x1f2)],_0x344d6d,_0x46efd4),process[_0x116a98(0x1fe)](0x1);}};
@@ -1 +1 @@
1
- const a6_0x5e232d=a6_0x215c;(function(_0x3d946a,_0x53919e){const _0x4c6074=a6_0x215c,_0x579cc6=_0x3d946a();while(!![]){try{const _0x546668=-parseInt(_0x4c6074(0x1d3))/0x1+parseInt(_0x4c6074(0x1cb))/0x2+parseInt(_0x4c6074(0x1c2))/0x3+parseInt(_0x4c6074(0x1d0))/0x4*(parseInt(_0x4c6074(0x1ca))/0x5)+parseInt(_0x4c6074(0x1c8))/0x6+-parseInt(_0x4c6074(0x1c0))/0x7+parseInt(_0x4c6074(0x1c6))/0x8*(-parseInt(_0x4c6074(0x1cd))/0x9);if(_0x546668===_0x53919e)break;else _0x579cc6['push'](_0x579cc6['shift']());}catch(_0x2bafa2){_0x579cc6['push'](_0x579cc6['shift']());}}}(a6_0x3d7c,0x4ddfc));function a6_0x215c(_0x438e32,_0x3f1117){const _0x3d7c34=a6_0x3d7c();return a6_0x215c=function(_0x215c66,_0x10dcc8){_0x215c66=_0x215c66-0x1bf;let _0x833515=_0x3d7c34[_0x215c66];return _0x833515;},a6_0x215c(_0x438e32,_0x3f1117);}function a6_0x3d7c(){const _0x20b2d3=['Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','connect','usage','112MmSvch','commandDir','2659980ZefvIU','strict','5IdLxMq','202324cFdRBt','desc','207945OUvZtm','../config/constants','demandCommand','562540LAMNvB','aPLon','RxkzK','18869iuupDX','epilogue','connect_commands','932246vomYWB','builder','328086dJnSNd'];a6_0x3d7c=function(){return _0x20b2d3;};return a6_0x3d7c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x5e232d(0x1ce));exports['command']=a6_0x5e232d(0x1c4),exports[a6_0x5e232d(0x1cc)]=a6_0x5e232d(0x1c3),exports[a6_0x5e232d(0x1c1)]=function(_0x3aa01a){const _0x3f9805=a6_0x5e232d,_0xd96f71={};_0xd96f71[_0x3f9805(0x1d2)]=_0x3f9805(0x1bf),_0xd96f71[_0x3f9805(0x1d1)]='help';const _0x5f0c7e=_0xd96f71;return _0x3aa01a[_0x3f9805(0x1c5)](HELP_HEADER_MESSAGE[_0x3f9805(0x1c4)])[_0x3f9805(0x1d4)](HELP_FOOTER_MESSAGE)[_0x3f9805(0x1c7)](_0x5f0c7e[_0x3f9805(0x1d2)])[_0x3f9805(0x1cf)]()['recommendCommands']()[_0x3f9805(0x1c9)]()['help'](_0x5f0c7e[_0x3f9805(0x1d1)]);},exports['handler']=function(_0x45b8ce){};
1
+ const a6_0x5374e2=a6_0xdd85;function a6_0xdd85(_0x13ca3d,_0xaa52a0){const _0x13f655=a6_0x13f6();return a6_0xdd85=function(_0xdd8580,_0x3be89f){_0xdd8580=_0xdd8580-0x69;let _0x5eefad=_0x13f655[_0xdd8580];return _0x5eefad;},a6_0xdd85(_0x13ca3d,_0xaa52a0);}(function(_0x369d86,_0x79e28e){const _0x36abbf=a6_0xdd85,_0x51f535=_0x369d86();while(!![]){try{const _0x238c38=-parseInt(_0x36abbf(0x70))/0x1+parseInt(_0x36abbf(0x69))/0x2*(parseInt(_0x36abbf(0x6d))/0x3)+-parseInt(_0x36abbf(0x78))/0x4*(parseInt(_0x36abbf(0x7f))/0x5)+parseInt(_0x36abbf(0x6a))/0x6+parseInt(_0x36abbf(0x79))/0x7+-parseInt(_0x36abbf(0x74))/0x8*(parseInt(_0x36abbf(0x7b))/0x9)+parseInt(_0x36abbf(0x73))/0xa*(parseInt(_0x36abbf(0x7d))/0xb);if(_0x238c38===_0x79e28e)break;else _0x51f535['push'](_0x51f535['shift']());}catch(_0x524f09){_0x51f535['push'](_0x51f535['shift']());}}}(a6_0x13f6,0xf03fb));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x5374e2(0x6c));exports['command']=a6_0x5374e2(0x80),exports[a6_0x5374e2(0x72)]=a6_0x5374e2(0x75),exports[a6_0x5374e2(0x7e)]=function(_0x3448fb){const _0x6e546f=a6_0x5374e2,_0x3302ad={};_0x3302ad[_0x6e546f(0x71)]='connect_commands',_0x3302ad[_0x6e546f(0x77)]='help';const _0x1150a8=_0x3302ad;return _0x3448fb['usage'](HELP_HEADER_MESSAGE['connect'])[_0x6e546f(0x76)](HELP_FOOTER_MESSAGE)[_0x6e546f(0x6b)](_0x1150a8['VMKhj'])[_0x6e546f(0x7c)]()[_0x6e546f(0x7a)]()[_0x6e546f(0x6f)]()[_0x6e546f(0x6e)](_0x1150a8[_0x6e546f(0x77)]);},exports[a6_0x5374e2(0x81)]=function(_0x418a40){};function a6_0x13f6(){const _0x2134ab=['2814206paMEmd','5206380ypiNRJ','commandDir','../config/constants','3KepBGw','help','strict','1824708jmLafQ','VMKhj','desc','10rqkkls','8189000dlEInO','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','epilogue','VJkrB','16PiJuaL','3576524qGqzcz','recommendCommands','9QtGEVr','demandCommand','24446477qftIrF','builder','1469725NQdJZl','connect','handler'];a6_0x13f6=function(){return _0x2134ab;};return a6_0x13f6();}
@@ -1 +1 @@
1
- const a7_0x9bb5ee=a7_0x47c6;function a7_0x2c1f(){const _0x482a6d=['options','819584tbJZWc','QxNIT','2728870lOHZsl','rykun','SIGTERM','10qBnwwG','KLHtk','fQRpv','vQlER','useStaging','bWzUo','CEkPn','browserStackLocalOptions','isTrialGrid','11USyUwS','desc','jYhnm','ataep','Vfjza','kttAL','cinJw','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','nUAPU','bstackAccesskey','lHPHW','Ipcxj','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','OnYwq','info','3eNfBHP','KHWqz','help','command','CBYQL','20271324BszTFD','true','accessKey','beforeExit','iizFJ','WWuOU','VRlJe','cjpli','fqyqT','216115kfOtkW','4275135pIYcmn','use-staging','create','RgIvN','string','jiidI','UNzUj','Grid\x20type:\x20Trial','../../config/logger','zZEhB','isRunning','irWjW','gLALn','SHHBV','dRRUT','advance-options','mWWkB','hUrpF','fLdle','32jZGTQX','advanceOptions','description','exit','3204754jEEWjQ','HhbrS','ZTXoe','ZAzxP','jQqbC','gridId','ohvTM','epilogue','Advance\x20options\x20for\x20Browserstack\x20Local','zcLeI','OyPEV','bstackUsername','dlhMm','FTtvn','oXUIR','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','type','IjjWV','handler','mUiHk','aAUNx','xQFRR','demandOption','DOvjQ','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','grid','eabuU','customRepeaters','890231BznKRX','xIEij','jwHhw','usage','VsWFT','DQiFs','grid-id','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','biDRz','120WUXcut','../../utils/utilityMethods','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.','OHkle','error','bstack-accesskey','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xfOCU','vDuCH','CDinN','VRnmM'];a7_0x2c1f=function(){return _0x482a6d;};return a7_0x2c1f();}(function(_0x10ed10,_0x262ac0){const _0xa09a38=a7_0x47c6,_0x1b1f38=_0x10ed10();while(!![]){try{const _0x5b1fc8=parseInt(_0xa09a38(0xf4))/0x1+-parseInt(_0xa09a38(0x10c))/0x2*(parseInt(_0xa09a38(0x127))/0x3)+parseInt(_0xa09a38(0x10a))/0x4+parseInt(_0xa09a38(0xc0))/0x5*(parseInt(_0xa09a38(0xfd))/0x6)+parseInt(_0xa09a38(0xd8))/0x7*(-parseInt(_0xa09a38(0xd4))/0x8)+parseInt(_0xa09a38(0xc1))/0x9*(parseInt(_0xa09a38(0x10f))/0xa)+-parseInt(_0xa09a38(0x118))/0xb*(-parseInt(_0xa09a38(0x12c))/0xc);if(_0x5b1fc8===_0x262ac0)break;else _0x1b1f38['push'](_0x1b1f38['shift']());}catch(_0x597b7c){_0x1b1f38['push'](_0x1b1f38['shift']());}}}(a7_0x2c1f,0xe299c));function a7_0x47c6(_0xbe2f2b,_0x4b267d){const _0x2c1fe9=a7_0x2c1f();return a7_0x47c6=function(_0x47c631,_0x1493ac){_0x47c631=_0x47c631-0xbc;let _0x45eedb=_0x2c1fe9[_0x47c631];return _0x45eedb;},a7_0x47c6(_0xbe2f2b,_0x4b267d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x9bb5ee(0xc9)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x9bb5ee(0xfe));exports[a7_0x9bb5ee(0x12a)]=a7_0x9bb5ee(0xf1),exports[a7_0x9bb5ee(0x119)]=a7_0x9bb5ee(0x11f),exports['builder']=_0x343a09=>{const _0x51ffa0=a7_0x9bb5ee,_0x1218b2={};_0x1218b2['cjpli']=_0x51ffa0(0x104),_0x1218b2['CBYQL']='string',_0x1218b2['bWzUo']=_0x51ffa0(0xfb),_0x1218b2[_0x51ffa0(0xf8)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1218b2[_0x51ffa0(0x106)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x1218b2[_0x51ffa0(0xeb)]=_0x51ffa0(0xe0),_0x1218b2['jwHhw']='help';const _0x2a7d24=_0x1218b2,_0x233557={};_0x233557['description']=_0x2a7d24[_0x51ffa0(0xbe)],_0x233557['type']=_0x2a7d24['CBYQL'];const _0x3b5e74={};_0x3b5e74[_0x51ffa0(0xd6)]=_0x2a7d24[_0x51ffa0(0x114)],_0x3b5e74['type']=_0x2a7d24[_0x51ffa0(0x12b)];const _0x2fe022={};_0x2fe022[_0x51ffa0(0xee)]=!![],_0x2fe022[_0x51ffa0(0xd6)]=_0x2a7d24['VsWFT'],_0x2fe022['type']=_0x2a7d24[_0x51ffa0(0x12b)];const _0x561dfa={};_0x561dfa['description']=_0x2a7d24[_0x51ffa0(0x106)],_0x561dfa[_0x51ffa0(0xe8)]=_0x2a7d24[_0x51ffa0(0x12b)];const _0x1df2e7={};_0x1df2e7['description']=_0x2a7d24['mUiHk'],_0x1df2e7[_0x51ffa0(0xe8)]=_0x2a7d24[_0x51ffa0(0x12b)];const _0x3451c9={};return _0x3451c9['bstack-username']=_0x233557,_0x3451c9[_0x51ffa0(0x102)]=_0x3b5e74,_0x3451c9[_0x51ffa0(0xfa)]=_0x2fe022,_0x3451c9['use-staging']=_0x561dfa,_0x3451c9[_0x51ffa0(0xd0)]=_0x1df2e7,_0x343a09[_0x51ffa0(0xf7)](HELP_HEADER_MESSAGE['create'])[_0x51ffa0(0xdf)](HELP_FOOTER_MESSAGE)[_0x51ffa0(0x109)](_0x3451c9)['help'](_0x2a7d24[_0x51ffa0(0xf6)])['argv'];},exports[a7_0x9bb5ee(0xea)]=async _0x1156f2=>{const _0x922900=a7_0x9bb5ee,_0x188009={'dRRUT':function(_0x4bd292,_0x5cc5cd){return _0x4bd292===_0x5cc5cd;},'VRlJe':function(_0x15cee4,_0x116729){return _0x15cee4(_0x116729);},'OHkle':_0x922900(0xc8),'HhbrS':_0x922900(0x12f),'lHPHW':'SIGINT','CDinN':_0x922900(0x10e),'Vfjza':_0x922900(0xff),'KLHtk':_0x922900(0xe7),'uLnvG':function(_0x129c40,_0x35064c){return _0x129c40!==_0x35064c;},'kttAL':_0x922900(0xe6),'VRnmM':function(_0x33ffa4,_0x6cc048){return _0x33ffa4(_0x6cc048);},'ZTXoe':_0x922900(0xf0),'ohvTM':function(_0x46cb2d,_0x386629){return _0x46cb2d===_0x386629;},'SHHBV':function(_0x2c15b5,_0x4198a8){return _0x2c15b5(_0x4198a8);},'dlhMm':function(_0x13da0a,_0x5e5475){return _0x13da0a(_0x5e5475);},'xfOCU':function(_0x42211a,_0x50ce28){return _0x42211a!==_0x50ce28;},'DQiFs':'IZiHb','KHWqz':_0x922900(0xec),'zcLeI':function(_0x94bf07,_0x5506cd){return _0x94bf07===_0x5506cd;},'wZiQF':_0x922900(0x104),'ataep':_0x922900(0xc5),'jYhnm':_0x922900(0xfb),'OnYwq':'Pass\x20the\x20ID\x20of\x20the\x20Grid','bpAYg':_0x922900(0x103),'Ipcxj':_0x922900(0xe0),'gLALn':_0x922900(0x129),'jiidI':function(_0x3fe0e3,_0x2594ca,_0x44f64b){return _0x3fe0e3(_0x2594ca,_0x44f64b);},'ZAzxP':function(_0x2d8c0b,_0x201266){return _0x2d8c0b&&_0x201266;},'biDRz':_0x922900(0xdc),'xQFRR':_0x922900(0x111),'WWuOU':function(_0x146c68,_0x378776,_0x46eb8d,_0x130534){return _0x146c68(_0x378776,_0x46eb8d,_0x130534);},'xIEij':function(_0x219677,_0x127796){return _0x219677===_0x127796;},'eabuU':_0x922900(0x112),'oDWDj':_0x922900(0xe2),'cinJw':function(_0x3dacae,_0x203c9d){return _0x3dacae(_0x203c9d);},'mWWkB':_0x922900(0x124),'FTtvn':_0x922900(0x12d),'rykun':_0x922900(0x120),'DOvjQ':_0x922900(0xbf),'dBXwt':_0x922900(0xca),'IjjWV':function(_0x2b1930,_0x2d7011){return _0x2b1930(_0x2d7011);},'QxNIT':function(_0x242d0a,_0x41bcee){return _0x242d0a===_0x41bcee;},'yiTVX':_0x922900(0xd2),'fLdle':_0x922900(0x130),'RgIvN':function(_0xad2128,_0x12b17b){return _0xad2128(_0x12b17b);}};let _0x9400c1=_0x1156f2[_0x922900(0xe3)],_0x52ed99=_0x1156f2[_0x922900(0x121)];const _0xfe08f0=_0x1156f2[_0x922900(0xd5)],_0x475e16=_0x1c9a50=>{const _0x366c67=_0x922900;if(_0x188009['uLnvG'](_0x188009[_0x366c67(0x11d)],_0x188009[_0x366c67(0x11d)])){const _0x33444d={'irWjW':function(_0x4dac67,_0x17862a){const _0x17f194=_0x366c67;return _0x188009[_0x17f194(0xcf)](_0x4dac67,_0x17862a);},'CEkPn':function(_0xc7ef8c,_0x1fe6b9){const _0x1ac17f=_0x366c67;return _0x188009[_0x1ac17f(0xbd)](_0xc7ef8c,_0x1fe6b9);}};let _0x2ccd67=_0x188009[_0x366c67(0x100)];_0x275e6f[_0x366c67(0x126)](_0x2ccd67);try{const _0x583bab={};_0x583bab[_0x366c67(0x12e)]=_0x108e58,_0x583bab[_0x366c67(0xf3)]=_0x24d627[_0x366c67(0xf3)],_0x583bab[_0x366c67(0x116)]=_0x25c2df;const _0x902c59=_0x583bab,_0xe43a4f=_0x188009[_0x366c67(0xbd)](_0x4f1f05,_0x902c59);let _0x3dfe43=0x0;const _0xe1b50e=async()=>{const _0x1952b7=_0x366c67;_0x3dfe43++,_0x33444d[_0x1952b7(0xcc)](_0x3dfe43,0x1)&&_0xe43a4f&&_0xe43a4f[_0x1952b7(0xcb)]()&&_0x33444d[_0x1952b7(0x115)](_0x4b8f1d,_0xe43a4f);};_0x2d3edc['on'](_0x188009[_0x366c67(0xd9)],_0xe1b50e),_0x2af255['on'](_0x188009[_0x366c67(0x122)],_0xe1b50e),_0xed495['on'](_0x188009['CDinN'],_0xe1b50e),_0x2ccd67=_0x188009['Vfjza'],_0x46b8ba[_0x366c67(0x126)](_0x2ccd67);}catch(_0x3ca52a){_0x188009[_0x366c67(0xbd)](_0x20f548,_0x188009['KLHtk']);}}else logger['error'](_0x1c9a50),process['exit'](0x1);};[_0x9400c1,_0x52ed99]=_0x188009[_0x922900(0xc6)](fetchOrUpdateUserConfig,_0x9400c1,_0x52ed99);!_0x188009[_0x922900(0xdb)](_0x9400c1,_0x52ed99)&&(_0x188009[_0x922900(0x105)](_0x188009[_0x922900(0xfc)],_0x188009[_0x922900(0xed)])?_0x188009[_0x922900(0xe4)](_0x475e16,_0x188009[_0x922900(0xda)]):_0x188009[_0x922900(0xbd)](_0x2fe279,_0x188009[_0x922900(0x110)]));const _0x489484=_0x1156f2[_0x922900(0xdd)],[_0x10a7ab,_0x35fecd]=await _0x188009[_0x922900(0xbc)](getGridDetails,_0x9400c1,_0x52ed99,_0x489484);!_0x35fecd&&(_0x188009[_0x922900(0xf5)](_0x188009[_0x922900(0xf2)],_0x188009['oDWDj'])?(_0x573f21[_0x922900(0x101)](_0x43dbd4),_0x5e3796[_0x922900(0xd7)](0x1)):_0x188009[_0x922900(0x11e)](_0x475e16,_0x188009[_0x922900(0xd1)]));const _0x5b42cb=_0x188009['zcLeI'](_0x1156f2[_0x922900(0x113)],_0x188009[_0x922900(0xe5)])?!![]:![];if(_0x35fecd&&_0x35fecd[_0x922900(0x117)]&&_0x5b42cb){if(_0x188009[_0x922900(0x105)](_0x188009['rykun'],_0x188009[_0x922900(0x10d)]))_0x188009[_0x922900(0x108)](_0x49f64b,_0x188009['ZTXoe']);else{let _0x3a01e2=_0x188009['OHkle'];logger['info'](_0x3a01e2);try{if(_0x188009[_0x922900(0xf5)](_0x188009[_0x922900(0xef)],_0x188009['dBXwt'])){const _0x2ea926={'UNzUj':function(_0x57b9b0,_0x2b2fb5){const _0x55f428=_0x922900;return _0x188009[_0x55f428(0xde)](_0x57b9b0,_0x2b2fb5);},'NjDZA':function(_0x2a6a0e,_0x26afe1){const _0x16d5a3=_0x922900;return _0x188009[_0x16d5a3(0xbd)](_0x2a6a0e,_0x26afe1);}},_0x4e6cea={};_0x4e6cea[_0x922900(0x12e)]=_0x10b2e7,_0x4e6cea['customRepeaters']=_0x532d86[_0x922900(0xf3)],_0x4e6cea['browserStackLocalOptions']=_0x444da7;const _0x5c4384=_0x4e6cea,_0x37f00d=_0x188009[_0x922900(0xce)](_0x5811b4,_0x5c4384);let _0x46b0bf=0x0;const _0x2450c2=async()=>{const _0x4b85f6=_0x922900;_0x46b0bf++,_0x2ea926[_0x4b85f6(0xc7)](_0x46b0bf,0x1)&&_0x37f00d&&_0x37f00d[_0x4b85f6(0xcb)]()&&_0x2ea926['NjDZA'](_0x214ddd,_0x37f00d);};_0x59fe30['on'](_0x188009[_0x922900(0xd9)],_0x2450c2),_0x7e25c6['on'](_0x188009[_0x922900(0x122)],_0x2450c2),_0xcd8b42['on'](_0x188009[_0x922900(0x107)],_0x2450c2),_0xd7bdd=_0x188009['Vfjza'],_0x50d381[_0x922900(0x126)](_0x4c0af5);}else{const _0x450ed2={};_0x450ed2[_0x922900(0x12e)]=_0x52ed99,_0x450ed2['customRepeaters']=_0x35fecd['customRepeaters'],_0x450ed2[_0x922900(0x116)]=_0xfe08f0;const _0x2f41c6=_0x450ed2,_0x2f6d96=_0x188009[_0x922900(0xe9)](startLocalBinarySync,_0x2f41c6);let _0x54cca4=0x0;const _0x116ce9=async()=>{const _0x3833bf=_0x922900;_0x188009[_0x3833bf(0x105)](_0x188009[_0x3833bf(0xf9)],_0x188009[_0x3833bf(0x128)])?(_0x54cca4++,_0x188009[_0x3833bf(0xe1)](_0x54cca4,0x1)&&_0x2f6d96&&_0x2f6d96['isRunning']()&&_0x188009[_0x3833bf(0x108)](stopLocalBinary,_0x2f6d96)):(_0x196428++,_0x188009[_0x3833bf(0xde)](_0x5a0eb0,0x1)&&_0x3e38b7&&_0xab1b07[_0x3833bf(0xcb)]()&&_0x188009[_0x3833bf(0xe4)](_0x43c603,_0x15e38f));};process['on'](_0x188009[_0x922900(0xd9)],_0x116ce9),process['on'](_0x188009[_0x922900(0x122)],_0x116ce9),process['on'](_0x188009[_0x922900(0x107)],_0x116ce9),_0x3a01e2=_0x188009[_0x922900(0x11c)],logger[_0x922900(0x126)](_0x3a01e2);}}catch(_0x388fe9){if(_0x188009[_0x922900(0x10b)](_0x188009['yiTVX'],_0x188009[_0x922900(0xd3)])){const _0x5c0e4b={};_0x5c0e4b[_0x922900(0xd6)]=_0x188009['wZiQF'],_0x5c0e4b['type']=_0x188009[_0x922900(0x11b)];const _0x292188={};_0x292188['description']=_0x188009[_0x922900(0x11a)],_0x292188['type']=_0x188009[_0x922900(0x11b)];const _0x1f40ad={};_0x1f40ad[_0x922900(0xee)]=!![],_0x1f40ad[_0x922900(0xd6)]=_0x188009[_0x922900(0x125)],_0x1f40ad[_0x922900(0xe8)]=_0x188009['ataep'];const _0x33c00e={};_0x33c00e[_0x922900(0xd6)]=_0x188009['bpAYg'],_0x33c00e[_0x922900(0xe8)]=_0x188009[_0x922900(0x11b)];const _0x562f3c={};_0x562f3c['description']=_0x188009[_0x922900(0x123)],_0x562f3c['type']=_0x188009['ataep'];const _0x1ae488={};return _0x1ae488['bstack-username']=_0x5c0e4b,_0x1ae488['bstack-accesskey']=_0x292188,_0x1ae488['grid-id']=_0x1f40ad,_0x1ae488[_0x922900(0xc2)]=_0x33c00e,_0x1ae488['advance-options']=_0x562f3c,_0x5d2f93[_0x922900(0xf7)](_0x25387c[_0x922900(0xc3)])[_0x922900(0xdf)](_0x38f4f7)['options'](_0x1ae488)['help'](_0x188009[_0x922900(0xcd)])['argv'];}else _0x188009[_0x922900(0xc4)](_0x475e16,_0x188009['KLHtk']);}}}process['exit'](0x0);};
1
+ const a7_0x4c5320=a7_0x49c3;(function(_0x55f7a3,_0x16cba7){const _0x436bc2=a7_0x49c3,_0x18c10f=_0x55f7a3();while(!![]){try{const _0x279b7a=parseInt(_0x436bc2(0xdc))/0x1+-parseInt(_0x436bc2(0xe2))/0x2+-parseInt(_0x436bc2(0x9e))/0x3+-parseInt(_0x436bc2(0xe7))/0x4+parseInt(_0x436bc2(0xd1))/0x5+parseInt(_0x436bc2(0xb9))/0x6*(parseInt(_0x436bc2(0xc4))/0x7)+parseInt(_0x436bc2(0xd0))/0x8;if(_0x279b7a===_0x16cba7)break;else _0x18c10f['push'](_0x18c10f['shift']());}catch(_0x1851e9){_0x18c10f['push'](_0x18c10f['shift']());}}}(a7_0x40fb,0x725c1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x4c5320(0xa4)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports[a7_0x4c5320(0xcd)]=a7_0x4c5320(0xe9),exports[a7_0x4c5320(0xcc)]=a7_0x4c5320(0xa2),exports[a7_0x4c5320(0xdb)]=_0x22362b=>{const _0x14f9b6=a7_0x4c5320,_0x388784={};_0x388784[_0x14f9b6(0xdf)]=_0x14f9b6(0xad),_0x388784[_0x14f9b6(0x8d)]=_0x14f9b6(0x94),_0x388784['VJXvL']=_0x14f9b6(0xe3),_0x388784[_0x14f9b6(0xce)]=_0x14f9b6(0xa0),_0x388784['mZmad']='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x388784[_0x14f9b6(0x86)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x388784[_0x14f9b6(0xc6)]=_0x14f9b6(0xd6);const _0x45c0c0=_0x388784,_0x4cd27c={};_0x4cd27c[_0x14f9b6(0xc9)]=_0x45c0c0[_0x14f9b6(0xdf)],_0x4cd27c[_0x14f9b6(0xf1)]=_0x45c0c0['pKcNp'];const _0x5ad88b={};_0x5ad88b[_0x14f9b6(0xc9)]=_0x45c0c0['VJXvL'],_0x5ad88b['type']=_0x45c0c0[_0x14f9b6(0x8d)];const _0x4a2468={};_0x4a2468[_0x14f9b6(0xcf)]=!![],_0x4a2468['description']=_0x45c0c0[_0x14f9b6(0xce)],_0x4a2468[_0x14f9b6(0xf1)]=_0x45c0c0[_0x14f9b6(0x8d)];const _0x13d58a={};_0x13d58a[_0x14f9b6(0xc9)]=_0x45c0c0[_0x14f9b6(0xd2)],_0x13d58a[_0x14f9b6(0xf1)]=_0x45c0c0[_0x14f9b6(0x8d)];const _0x1f1d43={};_0x1f1d43[_0x14f9b6(0xc9)]=_0x45c0c0[_0x14f9b6(0x86)],_0x1f1d43['type']=_0x45c0c0['pKcNp'];const _0x11444c={};return _0x11444c['bstack-username']=_0x4cd27c,_0x11444c[_0x14f9b6(0xc5)]=_0x5ad88b,_0x11444c[_0x14f9b6(0xd5)]=_0x4a2468,_0x11444c[_0x14f9b6(0xc0)]=_0x13d58a,_0x11444c[_0x14f9b6(0x9b)]=_0x1f1d43,_0x22362b['usage'](HELP_HEADER_MESSAGE[_0x14f9b6(0xa1)])[_0x14f9b6(0x85)](HELP_FOOTER_MESSAGE)[_0x14f9b6(0xc1)](_0x11444c)[_0x14f9b6(0xd6)](_0x45c0c0[_0x14f9b6(0xc6)])[_0x14f9b6(0xed)];},exports[a7_0x4c5320(0xbc)]=async _0x3741ea=>{const _0x21fd56=a7_0x4c5320,_0x2d8a5a={'Vuquq':function(_0x35ef44,_0x20f14b){return _0x35ef44!==_0x20f14b;},'LHRLY':'Zvfkq','VjvOg':_0x21fd56(0xb0),'OumGv':function(_0x1c4f36,_0xbc6153){return _0x1c4f36===_0xbc6153;},'QBhak':function(_0x525985,_0x48f9af){return _0x525985(_0x48f9af);},'DryhT':function(_0x4f1714,_0x3c5a03){return _0x4f1714(_0x3c5a03);},'jiJOv':_0x21fd56(0xb2),'JmNCC':function(_0x5b6af4,_0x2a74ad){return _0x5b6af4(_0x2a74ad);},'MRDQm':_0x21fd56(0xba),'vUOxz':function(_0x1d907b,_0x87b62e){return _0x1d907b===_0x87b62e;},'rjvDE':'Grid\x20type:\x20Trial','xUAqb':_0x21fd56(0xd9),'LxWRT':'SIGINT','QaCBH':_0x21fd56(0xf0),'nAOus':_0x21fd56(0xa8),'jpAZg':function(_0x4bbd84,_0x412479){return _0x4bbd84(_0x412479);},'yhPLA':_0x21fd56(0xdd),'KQxwX':_0x21fd56(0xad),'SOQdX':_0x21fd56(0x94),'TjYWh':_0x21fd56(0xe3),'JjoDw':_0x21fd56(0xa0),'lcaYn':_0x21fd56(0x8f),'eAKHi':_0x21fd56(0x95),'kZott':_0x21fd56(0xd6),'MVHsY':function(_0x3abcc6,_0xb3f503){return _0x3abcc6(_0xb3f503);},'RqXPE':_0x21fd56(0xbd),'eIcSY':function(_0x55dba0,_0x47c39d,_0x3acc03){return _0x55dba0(_0x47c39d,_0x3acc03);},'jhzYN':function(_0x3ed77f,_0xc6962d){return _0x3ed77f&&_0xc6962d;},'TINwD':'IeVII','icYkg':function(_0x506af5,_0x217b09){return _0x506af5(_0x217b09);},'HfXFN':function(_0x27146f,_0x5c02fe,_0x318b62,_0x41012a){return _0x27146f(_0x5c02fe,_0x318b62,_0x41012a);},'MqPYm':_0x21fd56(0x8b),'qORcS':_0x21fd56(0xb1),'hXhwk':function(_0x4cd190,_0x1ea988){return _0x4cd190===_0x1ea988;},'RRuWt':_0x21fd56(0xb5),'AjogQ':function(_0x452ca8,_0x4f5c70){return _0x452ca8===_0x4f5c70;},'hIrPD':_0x21fd56(0xef),'XGVYQ':_0x21fd56(0xe5),'TIVIO':function(_0x129229,_0x2ff566){return _0x129229===_0x2ff566;},'MTUra':_0x21fd56(0x8a),'qzERn':_0x21fd56(0xe0),'eEovL':function(_0x10b4b1,_0x49467e){return _0x10b4b1(_0x49467e);}};let _0x1ceed8=_0x3741ea[_0x21fd56(0xda)],_0x19c023=_0x3741ea[_0x21fd56(0x91)];const _0x1bd929=_0x3741ea[_0x21fd56(0xd4)],_0x3bded0=_0x5511de=>{const _0x9332b8=_0x21fd56;_0x2d8a5a['Vuquq'](_0x2d8a5a[_0x9332b8(0xf4)],_0x2d8a5a['VjvOg'])?(logger[_0x9332b8(0xec)](_0x5511de),process[_0x9332b8(0xf3)](0x1)):(_0x3f4836[_0x9332b8(0xec)](_0x5982f8),_0x2f1ddc[_0x9332b8(0xf3)](0x1));};[_0x1ceed8,_0x19c023]=_0x2d8a5a[_0x21fd56(0xa9)](fetchOrUpdateUserConfig,_0x1ceed8,_0x19c023);!_0x2d8a5a[_0x21fd56(0x92)](_0x1ceed8,_0x19c023)&&(_0x2d8a5a[_0x21fd56(0xd7)](_0x2d8a5a[_0x21fd56(0xcb)],_0x2d8a5a[_0x21fd56(0xcb)])?(_0x3a9c7b++,_0x2d8a5a['OumGv'](_0xb589ff,0x1)&&_0x2b1718&&_0x3956f5['isRunning']()&&_0x2d8a5a[_0x21fd56(0x8c)](_0x148a13,_0x4d17a5)):_0x2d8a5a[_0x21fd56(0xa3)](_0x3bded0,_0x2d8a5a[_0x21fd56(0xa5)]));const _0x4b68c3=_0x3741ea['gridId'],[_0x5539ca,_0x5ce868]=await _0x2d8a5a['HfXFN'](getGridDetails,_0x1ceed8,_0x19c023,_0x4b68c3);!_0x5ce868&&(_0x2d8a5a[_0x21fd56(0xd7)](_0x2d8a5a[_0x21fd56(0xeb)],_0x2d8a5a[_0x21fd56(0x96)])?_0x2d8a5a[_0x21fd56(0xa3)](_0x3bded0,_0x2d8a5a['jiJOv']):_0x2d8a5a[_0x21fd56(0xc3)](_0x2cfef4,_0x2d8a5a[_0x21fd56(0xae)]));const _0x282636=_0x2d8a5a[_0x21fd56(0x99)](_0x3741ea[_0x21fd56(0xaa)],_0x2d8a5a['RRuWt'])?!![]:![];if(_0x5ce868&&_0x5ce868[_0x21fd56(0x8e)]&&_0x282636){if(_0x2d8a5a[_0x21fd56(0xc7)](_0x2d8a5a[_0x21fd56(0x97)],_0x2d8a5a[_0x21fd56(0xe8)]))_0x2d8a5a[_0x21fd56(0xb3)](_0x46f62b,_0x2d8a5a[_0x21fd56(0xac)]);else{let _0x3b3e23=_0x2d8a5a[_0x21fd56(0x9c)];logger[_0x21fd56(0xde)](_0x3b3e23);try{if(_0x2d8a5a[_0x21fd56(0x89)](_0x2d8a5a[_0x21fd56(0x9d)],_0x2d8a5a[_0x21fd56(0x9d)])){const _0x291135={};_0x291135[_0x21fd56(0x9a)]=_0x19c023,_0x291135[_0x21fd56(0xb6)]=_0x5ce868[_0x21fd56(0xb6)],_0x291135[_0x21fd56(0xbf)]=_0x1bd929;const _0x33f8c7=_0x291135,_0x1e024c=_0x2d8a5a[_0x21fd56(0xb3)](startLocalBinarySync,_0x33f8c7);let _0x3ce804=0x0;const _0x740007=async()=>{const _0x30453e=_0x21fd56,_0x2de130={'GdykI':function(_0x437053,_0x3bc46d){const _0xaaec84=a7_0x49c3;return _0x2d8a5a[_0xaaec84(0x90)](_0x437053,_0x3bc46d);},'mONdz':function(_0x2a100d,_0x1e25d3){const _0x4f4119=a7_0x49c3;return _0x2d8a5a[_0x4f4119(0x8c)](_0x2a100d,_0x1e25d3);},'kvOqg':_0x2d8a5a[_0x30453e(0x9c)],'YyKTb':function(_0x2ddefd,_0x4b2c28){const _0x229cb5=_0x30453e;return _0x2d8a5a[_0x229cb5(0xc3)](_0x2ddefd,_0x4b2c28);},'MQEkj':_0x2d8a5a[_0x30453e(0xa7)],'OysaV':_0x2d8a5a['LxWRT'],'Ajvin':_0x2d8a5a[_0x30453e(0xc8)],'jZYsb':_0x2d8a5a[_0x30453e(0x88)],'ZpBKF':function(_0x272a6d,_0x47848d){const _0x184b8f=_0x30453e;return _0x2d8a5a[_0x184b8f(0xe6)](_0x272a6d,_0x47848d);},'gkLSn':_0x2d8a5a['MRDQm']};if(_0x2d8a5a['Vuquq'](_0x2d8a5a[_0x30453e(0x87)],_0x2d8a5a['yhPLA'])){let _0x248792=_0x2de130[_0x30453e(0xe1)];_0x102811[_0x30453e(0xde)](_0x248792);try{const _0x29d57d={};_0x29d57d[_0x30453e(0x9a)]=_0x3d813b,_0x29d57d[_0x30453e(0xb6)]=_0x2dfb14[_0x30453e(0xb6)],_0x29d57d[_0x30453e(0xbf)]=_0x6725f4;const _0x490693=_0x29d57d,_0x33055b=_0x2de130[_0x30453e(0xc2)](_0x38976e,_0x490693);let _0x1af588=0x0;const _0x405cc6=async()=>{const _0x18aece=_0x30453e;_0x1af588++,_0x2de130[_0x18aece(0xd8)](_0x1af588,0x1)&&_0x33055b&&_0x33055b['isRunning']()&&_0x2de130['mONdz'](_0xb35ca5,_0x33055b);};_0x7b5ab6['on'](_0x2de130['MQEkj'],_0x405cc6),_0xaf1ecc['on'](_0x2de130['OysaV'],_0x405cc6),_0xcaae43['on'](_0x2de130['Ajvin'],_0x405cc6),_0x248792=_0x2de130[_0x30453e(0xab)],_0x154571[_0x30453e(0xde)](_0x248792);}catch(_0x533271){_0x2de130[_0x30453e(0xb4)](_0x10dfc7,_0x2de130['gkLSn']);}}else _0x3ce804++,_0x2d8a5a[_0x30453e(0xee)](_0x3ce804,0x1)&&_0x1e024c&&_0x1e024c[_0x30453e(0xbe)]()&&_0x2d8a5a['JmNCC'](stopLocalBinary,_0x1e024c);};process['on'](_0x2d8a5a['xUAqb'],_0x740007),process['on'](_0x2d8a5a[_0x21fd56(0xd3)],_0x740007),process['on'](_0x2d8a5a[_0x21fd56(0xc8)],_0x740007),_0x3b3e23=_0x2d8a5a[_0x21fd56(0x88)],logger[_0x21fd56(0xde)](_0x3b3e23);}else{const _0xeaf475={};_0xeaf475[_0x21fd56(0xc9)]=_0x2d8a5a[_0x21fd56(0xe4)],_0xeaf475['type']=_0x2d8a5a[_0x21fd56(0xb7)];const _0x46de19={};_0x46de19[_0x21fd56(0xc9)]=_0x2d8a5a[_0x21fd56(0xb8)],_0x46de19['type']=_0x2d8a5a[_0x21fd56(0xb7)];const _0x54675b={};_0x54675b[_0x21fd56(0xcf)]=!![],_0x54675b[_0x21fd56(0xc9)]=_0x2d8a5a[_0x21fd56(0x98)],_0x54675b[_0x21fd56(0xf1)]=_0x2d8a5a[_0x21fd56(0xb7)];const _0x1f5a7b={};_0x1f5a7b[_0x21fd56(0xc9)]=_0x2d8a5a[_0x21fd56(0xa6)],_0x1f5a7b[_0x21fd56(0xf1)]=_0x2d8a5a[_0x21fd56(0xb7)];const _0x27f6d2={};_0x27f6d2[_0x21fd56(0xc9)]=_0x2d8a5a[_0x21fd56(0xbb)],_0x27f6d2[_0x21fd56(0xf1)]=_0x2d8a5a[_0x21fd56(0xb7)];const _0x47adab={};return _0x47adab[_0x21fd56(0xf2)]=_0xeaf475,_0x47adab['bstack-accesskey']=_0x46de19,_0x47adab['grid-id']=_0x54675b,_0x47adab[_0x21fd56(0xc0)]=_0x1f5a7b,_0x47adab['advance-options']=_0x27f6d2,_0x484d2a[_0x21fd56(0xca)](_0x260cad[_0x21fd56(0xa1)])['epilogue'](_0x346db9)['options'](_0x47adab)[_0x21fd56(0xd6)](_0x2d8a5a[_0x21fd56(0xaf)])[_0x21fd56(0xed)];}}catch(_0x2bf6b3){_0x2d8a5a[_0x21fd56(0x99)](_0x2d8a5a[_0x21fd56(0x93)],_0x2d8a5a[_0x21fd56(0x93)])?_0x2d8a5a[_0x21fd56(0xea)](_0x3bded0,_0x2d8a5a[_0x21fd56(0xac)]):_0x2d8a5a[_0x21fd56(0x9f)](_0x364378,_0x2d8a5a[_0x21fd56(0xa5)]);}}}process[_0x21fd56(0xf3)](0x0);};function a7_0x49c3(_0x182fda,_0x3495cc){const _0x40fb86=a7_0x40fb();return a7_0x49c3=function(_0x49c327,_0x53e980){_0x49c327=_0x49c327-0x85;let _0x4db335=_0x40fb86[_0x49c327];return _0x4db335;},a7_0x49c3(_0x182fda,_0x3495cc);}function a7_0x40fb(){const _0x56342c=['AjogQ','QaCBH','description','usage','TINwD','desc','command','yCecY','demandOption','2159128Yppckz','428030nOGoQJ','mZmad','LxWRT','advanceOptions','grid-id','help','Vuquq','GdykI','beforeExit','bstackUsername','builder','75400OPWfRN','jjGUS','info','PDHon','RWZPy','kvOqg','304050EBlipP','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','KQxwX','KuLNr','jpAZg','1105412YfNfGb','XGVYQ','grid','eEovL','MqPYm','error','argv','OumGv','DLBhI','SIGTERM','type','bstack-username','exit','LHRLY','epilogue','xZFtb','yhPLA','nAOus','TIVIO','RJMPk','oHEFi','QBhak','pKcNp','isTrialGrid','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','vUOxz','bstackAccesskey','jhzYN','qzERn','string','Advance\x20options\x20for\x20Browserstack\x20Local','qORcS','hIrPD','JjoDw','hXhwk','accessKey','advance-options','rjvDE','MTUra','1133178bdnnHI','MVHsY','Pass\x20the\x20ID\x20of\x20the\x20Grid','create','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','icYkg','../../config/logger','RqXPE','lcaYn','xUAqb','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.','eIcSY','useStaging','jZYsb','MRDQm','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','jiJOv','kZott','wUVMQ','RScKb','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','JmNCC','ZpBKF','true','customRepeaters','SOQdX','TjYWh','843624MKSNAK','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','eAKHi','handler','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','isRunning','browserStackLocalOptions','use-staging','options','YyKTb','DryhT','42rGBsSe','bstack-accesskey','OcaGp'];a7_0x40fb=function(){return _0x56342c;};return a7_0x40fb();}
@@ -1 +1 @@
1
- function a8_0x27a3(){const _0x145c5d=['ksLLb','zFmdF','handler','create','create_commands','4674075UZlYqy','6TlHOKu','12oGuJKK','strict','recommendCommands','3977046fMcTCr','294418SfwEkL','9064224huOgvT','help','demandCommand','4347480LihJMo','builder','318060fnMSgJ','epilogue','Create\x20a\x20new\x20Automation\x20grid.','command','805865zsnVpC','commandDir'];a8_0x27a3=function(){return _0x145c5d;};return a8_0x27a3();}function a8_0x28a7(_0x22b50b,_0x3ea65c){const _0x27a30c=a8_0x27a3();return a8_0x28a7=function(_0x28a71a,_0x31a25c){_0x28a71a=_0x28a71a-0x165;let _0xac4714=_0x27a30c[_0x28a71a];return _0xac4714;},a8_0x28a7(_0x22b50b,_0x3ea65c);}const a8_0x4164f3=a8_0x28a7;(function(_0x77e7a9,_0x54ae73){const _0x5a1b69=a8_0x28a7,_0x4151fa=_0x77e7a9();while(!![]){try{const _0x89f9e4=-parseInt(_0x5a1b69(0x174))/0x1*(-parseInt(_0x5a1b69(0x16f))/0x2)+-parseInt(_0x5a1b69(0x17a))/0x3+parseInt(_0x5a1b69(0x170))/0x4*(-parseInt(_0x5a1b69(0x167))/0x5)+-parseInt(_0x5a1b69(0x173))/0x6+-parseInt(_0x5a1b69(0x16e))/0x7+parseInt(_0x5a1b69(0x178))/0x8+parseInt(_0x5a1b69(0x175))/0x9;if(_0x89f9e4===_0x54ae73)break;else _0x4151fa['push'](_0x4151fa['shift']());}catch(_0x148983){_0x4151fa['push'](_0x4151fa['shift']());}}}(a8_0x27a3,0x7d6b8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a8_0x4164f3(0x166)]=a8_0x4164f3(0x16c),exports['desc']=a8_0x4164f3(0x165),exports[a8_0x4164f3(0x179)]=function(_0x448b1a){const _0xf7730e=a8_0x4164f3,_0x13d176={};_0x13d176[_0xf7730e(0x169)]=_0xf7730e(0x16d),_0x13d176[_0xf7730e(0x16a)]=_0xf7730e(0x176);const _0x2186f1=_0x13d176;return _0x448b1a['usage'](HELP_HEADER_MESSAGE[_0xf7730e(0x16c)])[_0xf7730e(0x17b)](HELP_FOOTER_MESSAGE)[_0xf7730e(0x168)](_0x2186f1[_0xf7730e(0x169)])[_0xf7730e(0x177)]()[_0xf7730e(0x172)]()[_0xf7730e(0x171)]()['help'](_0x2186f1['zFmdF']);},exports[a8_0x4164f3(0x16b)]=function(_0x5c76b8){};
1
+ function a8_0x1d7b(_0x434eb3,_0x3dc49c){const _0x3bc844=a8_0x3bc8();return a8_0x1d7b=function(_0x1d7b4d,_0x127d82){_0x1d7b4d=_0x1d7b4d-0xf4;let _0x4b2b6a=_0x3bc844[_0x1d7b4d];return _0x4b2b6a;},a8_0x1d7b(_0x434eb3,_0x3dc49c);}const a8_0x3db047=a8_0x1d7b;(function(_0x5e6260,_0x5cd6e3){const _0x57c204=a8_0x1d7b,_0x37a7b4=_0x5e6260();while(!![]){try{const _0xe139c0=parseInt(_0x57c204(0xf7))/0x1*(-parseInt(_0x57c204(0x108))/0x2)+parseInt(_0x57c204(0x10b))/0x3+parseInt(_0x57c204(0xf6))/0x4*(parseInt(_0x57c204(0x107))/0x5)+parseInt(_0x57c204(0xfa))/0x6+-parseInt(_0x57c204(0x10a))/0x7*(-parseInt(_0x57c204(0x102))/0x8)+parseInt(_0x57c204(0xfd))/0x9*(-parseInt(_0x57c204(0x105))/0xa)+-parseInt(_0x57c204(0x100))/0xb*(-parseInt(_0x57c204(0x104))/0xc);if(_0xe139c0===_0x5cd6e3)break;else _0x37a7b4['push'](_0x37a7b4['shift']());}catch(_0x5b6fbf){_0x37a7b4['push'](_0x37a7b4['shift']());}}}(a8_0x3bc8,0x3f7f9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x3db047(0xf8));function a8_0x3bc8(){const _0x5e21c9=['430934CbfYSB','../config/constants','desc','2017482fOdKBz','commandDir','create','619371ZcCYeH','usage','wRrYE','143MvfxDi','dqwdi','8wxKall','builder','266916pmRrOi','10TMytkm','Create\x20a\x20new\x20Automation\x20grid.','350dDKEVM','2QIDoYm','command','295309phjEgB','150957AQTDVx','handler','strict','2396rxVTQn'];a8_0x3bc8=function(){return _0x5e21c9;};return a8_0x3bc8();}exports[a8_0x3db047(0x109)]=a8_0x3db047(0xfc),exports[a8_0x3db047(0xf9)]=a8_0x3db047(0x106),exports[a8_0x3db047(0x103)]=function(_0x4f8081){const _0x26722b=a8_0x3db047,_0x41b66a={};_0x41b66a['dqwdi']='create_commands',_0x41b66a[_0x26722b(0xff)]='help';const _0x3fad47=_0x41b66a;return _0x4f8081[_0x26722b(0xfe)](HELP_HEADER_MESSAGE[_0x26722b(0xfc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x26722b(0xfb)](_0x3fad47[_0x26722b(0x101)])['demandCommand']()['recommendCommands']()[_0x26722b(0xf5)]()['help'](_0x3fad47[_0x26722b(0xff)]);},exports[a8_0x3db047(0xf4)]=function(_0x5065aa){};