browserstack-node-sdk 1.34.32 → 1.34.34

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 (131) 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/central-scanner/constants.js +1 -1
  101. package/src/helpers/central-scanner/helpers.js +1 -1
  102. package/src/helpers/globals.js +1 -1
  103. package/src/helpers/helper.js +1 -1
  104. package/src/helpers/logger.js +1 -1
  105. package/src/helpers/patchHelper.js +1 -1
  106. package/src/helpers/patchHelpers.js +1 -1
  107. package/src/helpers/percy/Percy.js +1 -1
  108. package/src/helpers/percy/PercyBinary.js +1 -1
  109. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  110. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  111. package/src/helpers/percy/PercySDK.js +1 -1
  112. package/src/helpers/percy/index.js +1 -1
  113. package/src/helpers/percy/utils.js +1 -1
  114. package/src/helpers/performance/constants.js +1 -1
  115. package/src/helpers/performance/performance-tester.js +1 -1
  116. package/src/helpers/processHelper.js +1 -1
  117. package/src/helpers/request-spy.js +1 -1
  118. package/src/helpers/setKeepAlive.js +1 -1
  119. package/src/helpers/test-observability/constants.js +1 -1
  120. package/src/helpers/test-observability/error-handler.js +1 -1
  121. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  122. package/src/helpers/test-observability/sessionHandler.js +1 -1
  123. package/src/helpers/test-observability/utils.js +1 -1
  124. package/src/helpers/testhub/constants.js +1 -1
  125. package/src/helpers/testhub/testhubHandler.js +1 -1
  126. package/src/helpers/testhub/utils.js +1 -1
  127. package/src/helpers/timeoutPromise.js +1 -1
  128. package/src/helpers/utilities.js +1 -1
  129. package/src/helpers/w3cMapping.js +1 -1
  130. package/src/hubAllocationMethods.js +1 -1
  131. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a3_0x2147d7=a3_0x5ba7;function a3_0x355e(){const _0x5b797c=['WaiGX','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','fRimX','HOBkv','scopes','sendEventToBackend','storage.buckets.getObjectInsights','storage.buckets.createTagBinding','concat','serviceAccountName','wESui','ZSKtr','ZzXzN','checkServiceAccount','/subnetworks/','storage.multipartUploads.listParts','ARMzC','updateClusterRegion','vWLLX','ftLHW','30BNBFQA','gcpresources','https://','OswMY','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','NetworksClient','isSubnetsValid','QWoHA','sendResourceDataToHST','JmFFB','../utils/utilityMethods','location','getCluster','fEYsX','sahog','toString','xYJbf','clusterName','bstackUsername','storage.objects.delete','RQZFW','/locations/','got','serviceAccount:','../config/constants','CWyWy','vpcInfo','omUSI','SuPlk','eBeYf','169860FKKVvC','tnDSI','PJmhA','NYesy','storage.buckets.delete','deleteCluster','uTDqP','type','KfDSm','maxNodeCount','vACUb','storage.multipartUploads.create','storage.buckets.getIamPolicy','accounts','turboscale-service-account','../utils/userInput','cGJew','EUzOo','RCwaz','InYHw','split','utf-8','ltPoT','subnetwork','webSocketUtils','subnetworks','ClusterManagerClient','JSxlN','RRntX','parse','getGridHostname','tsPfF','pzaLr','/roles/','storage.buckets.deleteTagBinding','storage.multipartUploads.abort','EJGzW','nodePools','NAwmq','cpKVo','RvhEc','nwzLn','WjpHM','util','keyFile','oOkAO','aMtFw','owgVo','hTiUt','regionmap.json','error','locations','\x20--windows-os-version=ltsc2022\x20--region\x20','GfNTN','iam.serviceAccounts.signBlob','getUserInput','qCQHO','124iaYTjQ','toLowerCase','role','project_id','JZWLr','sendGCPInfoToHST','xFnWz','stack','fPDzw','\x20--quiet\x20--user-output-enabled=false','/serviceAccounts/','iamClient','SFUZw','KubeConfigTemplate.yaml','title','JtfRK','FPSFP','nsrOu','PkYiQ','Vtjfh','containerClient','4993HWFTRC','GoogleCloudProvider','child_process','Found\x20cluster\x20with\x20name\x20\x27','KsuJx','GHcQw','nALUs','24ZoskWI','fXrlK','ZazdX','storage.buckets.listTagBindings','.iam.gserviceaccount.com','parent','GKE\x20Cluster\x20deletion\x20failed','default','ppflS','ingress','push','RnKHP','templates','serviceAccounts','lBpGx','managedby','clusters','bindings','UPGQx','/clusters/','customRoleName','SOzOu','VJKSf','QjhtV','jSTzC','AqeNu','lqYtX','machineType','hpIiX','MEFIP','tfGcx','nlKiZ','DStwz','vNnWN','replace','autoscaling','maxNodes','Cluster\x20creation\x20failed','EORbD','Npwjc','QZzlg','googleapis','instanceType','RloXp','@google-cloud/compute','organizations','Creating\x20GKE\x20Cluster','ICPbC','IiCDX','UJSWB','endpoint','hOfUD','lxJsn','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','browserstack','.\x20Error:\x20','4222834ZQQZXv','json','giuqf','serviceAccount','11924asGJSh','kWULn','WsXic','rAgdb','join','mAZnn','storage.objects.list','ZSZgF','JDVPq','Gxrth','get','ZZPuF','cUgLr','ipugs','sYbwg','PLYWT','RUNNING','projects/','clusterRegion','KapUz','gEkfb','lmrJx','credentialsPath','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','RBrQc','IsFYi','storage.buckets.update','lxpJN','24LDrCyB','@google-cloud/container','exit','profileId','SlrQy','mbihs','jgTzr','list','RESOURCES','JzpVx','https://www.googleapis.com/auth/cloud-platform','rKtDH','nIyUi','accessKey','masterAuth','BjuKd','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Creating\x20service\x20account','zTTpF','noskA','setupNewCluster','getClient','dNjsa','ALNSc','config','EBKpA','info','ulqoQ','BLBpr','turboscale_custom_role','OKugJ','Deleting\x20the\x20cluster\x20','readFileAsync','delay','exec','SlpcJ','updateWindowsNodeGroup','status','vhBIN','./CloudProvider','init','jrvdM','qfZEn','BLCDk','mEOJf','WQJOR','RdGTe','GQmLE','storage.objects.getIamPolicy','clusterCaCertificate','TALtA','length','BeBCi','HAvvs','SheZP','LOG','/regions/','https://www.googleapis.com/compute/v1/projects/','dhcRK','AjEfg','data','JGLSH','tQfiQ','cFHJV','362495tohcFQ','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','loadBalancer','owVGJ','UMoTB','accountId','cloudProvider','VKRbo','81atgltL','message','NlbwQ','fsHXK','/global/networks/','setupServiceAccount','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','gkecluster.json','name','resourcemanagerClient','aNVMp','bHpqC','execSync','getKubeConfigData','getClusterInfo','gke_','kSJoE','storage.objects.update','storage.multipartUploads.list','projectId','exports','mPgvr','YeDxf','neHbb','storage.objects.get','networkClient','cloudProviderName','../utils/gridComponents','WGcNk','minNodeCount','minNodes','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','fGdYy','XbKoe','loNfJ','requestBody','@google-cloud/resource-manager','createCluster','FKbmG','SUxrY','fmzmJ','TDXmP','xdvvo','create','rws','pAeOD','resourceLabels','storage.buckets.setIamPolicy','bNtIc','tQtdm','fQPUZ','isBrowserstackCluster','RHiAe','MQWoY','fsKtg','mqdWk','dhRRL','Cluster\x20deletion\x20completed','EAoFf','setIamPolicy','gridProfileId','371630cODnOP','projects','storage.buckets.list','urjzj','YhJud','MMZrH','OOjxG','setCachedCredsInRegistry','RlgNI','LQUkY','newRegion','auth','EgTuq','log','XJHUD','storage.buckets.get','183690eVYcjW'];a3_0x355e=function(){return _0x5b797c;};return a3_0x355e();}(function(_0x4dae8e,_0x26a9e3){const _0x1db921=a3_0x5ba7,_0x9a1e81=_0x4dae8e();while(!![]){try{const _0x2775d5=-parseInt(_0x1db921(0x2fc))/0x1*(-parseInt(_0x1db921(0x2e7))/0x2)+parseInt(_0x1db921(0x27b))/0x3+-parseInt(_0x1db921(0x1ca))/0x4+-parseInt(_0x1db921(0x2ae))/0x5*(-parseInt(_0x1db921(0x290))/0x6)+-parseInt(_0x1db921(0x226))/0x7*(-parseInt(_0x1db921(0x1e6))/0x8)+-parseInt(_0x1db921(0x22e))/0x9*(-parseInt(_0x1db921(0x26b))/0xa)+-parseInt(_0x1db921(0x1c6))/0xb*(parseInt(_0x1db921(0x303))/0xc);if(_0x2775d5===_0x26a9e3)break;else _0x9a1e81['push'](_0x9a1e81['shift']());}catch(_0x1e65c9){_0x9a1e81['push'](_0x9a1e81['shift']());}}}(a3_0x355e,0x3f67d));function a3_0x5ba7(_0x49c048,_0x47649f){const _0x355ecb=a3_0x355e();return a3_0x5ba7=function(_0x5ba76d,_0x220101){_0x5ba76d=_0x5ba76d-0x19d;let _0x447da2=_0x355ecb[_0x5ba76d];return _0x447da2;},a3_0x5ba7(_0x49c048,_0x47649f);}const fs=require('fs'),path=require('path'),got=require(a3_0x2147d7(0x2a6)),util=require(a3_0x2147d7(0x2d9)),cp=require(a3_0x2147d7(0x2fe)),{google}=require(a3_0x2147d7(0x1b7)),compute=require(a3_0x2147d7(0x1ba)),container=require(a3_0x2147d7(0x1e7)),{ProjectsClient}=require(a3_0x2147d7(0x252))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x2147d7(0x20d)),{getDirForConfig,getAuthHeader}=require(a3_0x2147d7(0x29a)),{deleteRoutingDeps,deleteAgent}=require(a3_0x2147d7(0x249)),{inputConfirmation,closeInput}=require(a3_0x2147d7(0x2bd)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x2147d7(0x2a8));class GoogleCloudProvider extends CloudProvider{constructor(_0x55cf5b,_0x3fd97f,_0x24c407,_0xc95044){const _0x2e55c2=a3_0x2147d7,_0x422e5b={};_0x422e5b[_0x2e55c2(0x258)]='8|2|4|1|6|0|5|3|7',_0x422e5b['mAZnn']=_0x2e55c2(0x203),_0x422e5b[_0x2e55c2(0x250)]=_0x2e55c2(0x2bc);const _0x5b5753=_0x422e5b,_0x3ed0ff=_0x5b5753[_0x2e55c2(0x258)][_0x2e55c2(0x2c2)]('|');let _0x29937b=0x0;while(!![]){switch(_0x3ed0ff[_0x29937b++]){case'0':this[_0x2e55c2(0x1e0)]=null;continue;case'1':this['resourcemanagerClient']=null;continue;case'2':this[_0x2e55c2(0x2fb)]=null;continue;case'3':this[_0x2e55c2(0x1a2)]=_0x5b5753[_0x2e55c2(0x1cf)];continue;case'4':this[_0x2e55c2(0x247)]=null;continue;case'5':this['projectId']=null;continue;case'6':this[_0x2e55c2(0x2f2)]=null;continue;case'7':this[_0x2e55c2(0x285)]=_0x5b5753[_0x2e55c2(0x250)];continue;case'8':super(GCP,_0x55cf5b,_0x3fd97f,_0x24c407,_0xc95044);continue;}break;}}async[a3_0x2147d7(0x298)](){const _0x10982e=a3_0x2147d7;this[_0x10982e(0x2ec)](this[_0x10982e(0x25a)]);}async[a3_0x2147d7(0x20e)](){const _0x37320e=a3_0x2147d7;await super[_0x37320e(0x20e)]();const _0x589ebe=this[_0x37320e(0x1e0)],_0x11a650={};_0x11a650[_0x37320e(0x2da)]=_0x589ebe,this[_0x37320e(0x2fb)]=new container['v1'][(_0x37320e(0x2c8))](_0x11a650);const _0x470ae9={};_0x470ae9['keyFile']=_0x589ebe,this[_0x37320e(0x247)]=new compute['v1'][(_0x37320e(0x295))](_0x470ae9);const _0x1417c9={};return _0x1417c9[_0x37320e(0x2da)]=_0x589ebe,this['resourcemanagerClient']=new ProjectsClient(_0x1417c9),this[_0x37320e(0x2f2)]=google['iam']('v1'),this;}async[a3_0x2147d7(0x2e5)](_0x1d20f4,_0x4ea427){const _0x474f4f=a3_0x2147d7,_0xe103f0={'BjuKd':function(_0x244c35,_0x278127){return _0x244c35(_0x278127);},'GHcQw':_0x474f4f(0x294),'nIyUi':function(_0x4a63ea){return _0x4a63ea();},'AjEfg':'gcp_credentials.json'},_0x1deb29=await _0xe103f0[_0x474f4f(0x1f5)](_0x1d20f4,_0xe103f0[_0x474f4f(0x301)]);let _0x14d9ec=await fs[_0x474f4f(0x206)](_0x1deb29);_0x14d9ec=_0x14d9ec['toString']();const _0x5d0dc6=_0xe103f0[_0x474f4f(0x1f2)](getDirForConfig),_0x13efb3=path[_0x474f4f(0x1ce)](_0x5d0dc6,_0xe103f0[_0x474f4f(0x221)]);fs['writeFileSync'](_0x13efb3,_0x14d9ec),this[_0x474f4f(0x1e0)]=_0x13efb3;const _0x372a15={};return _0x372a15[_0x474f4f(0x2da)]=_0x13efb3,_0x4ea427[_0x474f4f(0x22c)][GCP]=_0x372a15,_0x14d9ec=JSON['parse'](_0x14d9ec),this['projectId']=_0x14d9ec[_0x474f4f(0x2ea)],_0x4ea427;}async[a3_0x2147d7(0x272)](_0x5e7645){const _0x4b1a38=a3_0x2147d7;this[_0x4b1a38(0x1e0)]=_0x5e7645[this[_0x4b1a38(0x248)]][_0x4b1a38(0x2da)];let _0x543a03=await fs[_0x4b1a38(0x206)](this['credentialsPath']);_0x543a03=JSON[_0x4b1a38(0x2cb)](_0x543a03),this[_0x4b1a38(0x241)]=_0x543a03[_0x4b1a38(0x2ea)];}[a3_0x2147d7(0x2cc)](_0x4bfaf1){const _0x58c363=a3_0x2147d7;return _0x4bfaf1[_0x58c363(0x20b)]['loadBalancer'][_0x58c363(0x30c)][0x0]['ip'];}async[a3_0x2147d7(0x261)](){const _0x34853a=a3_0x2147d7,_0x5f3144={};_0x5f3144[_0x34853a(0x2f3)]='default',_0x5f3144[_0x34853a(0x2ce)]=function(_0x3d0e2f,_0x3a18df){return _0x3d0e2f!==_0x3a18df;},_0x5f3144[_0x34853a(0x22a)]=_0x34853a(0x231),_0x5f3144[_0x34853a(0x2ca)]=_0x34853a(0x2f8),_0x5f3144[_0x34853a(0x230)]=function(_0x3e2f5e,_0x1acbb0){return _0x3e2f5e===_0x1acbb0;},_0x5f3144['CWyWy']=_0x34853a(0x1c4),_0x5f3144[_0x34853a(0x293)]=function(_0x26ce61,_0x41bf9d){return _0x26ce61===_0x41bf9d;},_0x5f3144[_0x34853a(0x263)]=_0x34853a(0x25b);const _0x42496d=_0x5f3144;try{if(_0x42496d[_0x34853a(0x2ce)](_0x42496d[_0x34853a(0x22a)],_0x42496d['UMoTB']))_0x51e66a[_0x34853a(0x30d)](_0x2e2456);else{const _0x3c70bb=await this['getClusterInfo']();if(_0x3c70bb[0x0]?.['resourceLabels']?.[_0x34853a(0x19d)]){if(_0x42496d['pzaLr'](_0x42496d[_0x34853a(0x2ca)],_0x42496d[_0x34853a(0x2ca)]))_0x3c0060=_0x42496d[_0x34853a(0x2f3)];else{const _0x2fe2f0=_0x3c70bb[0x0]?.[_0x34853a(0x25c)]?.[_0x34853a(0x19d)];return _0x2fe2f0&&_0x42496d[_0x34853a(0x230)](_0x2fe2f0[_0x34853a(0x2e8)](),_0x42496d[_0x34853a(0x2a9)]);}}}}catch(_0x4f5e3b){return _0x42496d[_0x34853a(0x293)](_0x42496d['MQWoY'],_0x42496d[_0x34853a(0x263)])?![]:![];}return![];}async['isClusterPresent'](){const _0x507746=a3_0x2147d7,_0x522c54={'PLYWT':function(_0x3fe680,_0x4b9944){return _0x3fe680===_0x4b9944;},'MEFIP':_0x507746(0x30a),'BLBpr':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Vtjfh':'templates','ltPoT':_0x507746(0x291),'PUozU':'regionmap.json','dNjsa':_0x507746(0x2c3),'RdGTe':function(_0x12dda4,_0x4d4cba){return _0x12dda4!==_0x4d4cba;},'vACUb':function(_0x460166,_0x2b89cf){return _0x460166===_0x2b89cf;},'vWLLX':_0x507746(0x225),'JYBPO':_0x507746(0x1a4),'uTDqP':function(_0x15e0e1,_0x372dda){return _0x15e0e1===_0x372dda;},'OOjxG':'VhPNy','NHHnk':'gEclS','MMZrH':_0x507746(0x24e),'EORbD':function(_0x57fe2a,_0x444863){return _0x57fe2a!==_0x444863;},'eBeYf':_0x507746(0x2ef),'NAwmq':'SRuWx','rAgdb':_0x507746(0x2ab),'UPGQx':_0x507746(0x299),'IsFYi':function(_0x586e59,_0x29935d){return _0x586e59!==_0x29935d;},'OKugJ':_0x507746(0x1df),'WQJOR':function(_0x392f5c,_0x47248){return _0x392f5c>_0x47248;},'cpKVo':_0x507746(0x2a4),'aNVMp':function(_0xf3d7e3,_0x2a6dfa){return _0xf3d7e3<_0x2a6dfa;},'bHpqC':function(_0x77914,_0x4f3b78){return _0x77914!==_0x4f3b78;},'vzxrJ':_0x507746(0x2af),'ICPbC':'velYY','mqdWk':function(_0x4c1b33,_0x1a197a){return _0x4c1b33+_0x1a197a;},'RnKHP':function(_0x490d9c,_0xe314a4){return _0x490d9c(_0xe314a4);},'GQmLE':_0x507746(0x1f6),'kSJoE':function(_0x1d4638,_0x20adb4){return _0x1d4638(_0x20adb4);},'RloXp':function(_0x1f8325,_0x433268){return _0x1f8325<=_0x433268;},'hPhDk':'LXFMa','BCpJE':function(_0x4b28af){return _0x4b28af();},'nALUs':function(_0x4de66e,_0x1c6201){return _0x4de66e-_0x1c6201;},'ulqoQ':'scWpP','XaHMU':function(_0x33711b,_0x411d56){return _0x33711b-_0x411d56;}};let _0x39cb72=await fs[_0x507746(0x206)](path[_0x507746(0x1ce)](__dirname,'..',_0x522c54[_0x507746(0x2fa)],_0x522c54[_0x507746(0x2c4)],_0x522c54['PUozU']),_0x522c54[_0x507746(0x1fc)]);_0x39cb72=JSON['parse'](_0x39cb72);let _0x2c67a1=[global_registry[_0x507746(0x1dc)]];if(_0x522c54['RdGTe'](_0x39cb72[global_registry['clusterRegion']],undefined)){if(_0x522c54[_0x507746(0x2b8)](_0x522c54[_0x507746(0x28e)],_0x522c54['JYBPO']))return![];else _0x2c67a1=_0x2c67a1[_0x507746(0x284)](_0x39cb72[global_registry['clusterRegion']]);}const _0x1f059d=[];for await(const _0x4cccbc of _0x2c67a1){if(_0x522c54[_0x507746(0x2b4)](_0x522c54[_0x507746(0x271)],_0x522c54['NHHnk']))_0x421869=_0x53077c[_0x507746(0x284)](_0x3c5079[_0x299cac['clusterRegion']]);else{const _0x11affb={};_0x11affb[_0x507746(0x308)]=_0x507746(0x1db)+this['projectId']+_0x507746(0x2a5)+_0x4cccbc;const _0x30b6b7=_0x11affb,_0xa28a8=await this[_0x507746(0x2fb)]['listClusters'](_0x30b6b7);for(const _0x4a6a39 of _0xa28a8[0x0][_0x507746(0x19e)]){if(_0x522c54[_0x507746(0x214)](_0x522c54['MMZrH'],_0x522c54[_0x507746(0x270)]))return _0x1b3fb7[_0x507746(0x2e0)]('Cannot\x20find\x20subnets\x20'+_0x58319d+_0x507746(0x1c5)+_0xd15311),[![],[]];else{if(_0x522c54[_0x507746(0x2b4)](_0x4a6a39[_0x507746(0x236)],this[_0x507746(0x2a1)])){if(_0x522c54['EORbD'](_0x522c54[_0x507746(0x2ad)],_0x522c54[_0x507746(0x2d4)]))_0x1f059d['push'](_0x4cccbc);else for(const _0x2a8603 of _0x2871f7[_0x507746(0x222)][_0x507746(0x2bb)]){if(_0x522c54[_0x507746(0x1d9)](_0x2a8603?.['name'],_0x507746(0x1db)+this[_0x507746(0x241)]+'/serviceAccounts/'+this[_0x507746(0x285)]+'@'+this[_0x507746(0x241)]+_0x507746(0x307)))return!![];}}}}}}const _0x279287=_0x1f059d['length'];if(_0x522c54['PLYWT'](_0x279287,0x1)){if(_0x522c54[_0x507746(0x1b4)](_0x522c54[_0x507746(0x1cd)],_0x522c54[_0x507746(0x1a0)]))return _0x522c54[_0x507746(0x1e3)](global_registry['clusterRegion'],_0x1f059d[0x0])&&(_0x522c54[_0x507746(0x1d9)](_0x522c54[_0x507746(0x204)],_0x522c54[_0x507746(0x204)])?(global_registry[_0x507746(0x1dc)]=_0x1f059d[0x0],this[_0x507746(0x28d)]()):_0x522c54[_0x507746(0x1d9)](_0x2d39bd[_0x507746(0x236)],this[_0x507746(0x2a1)])&&_0x51d7c0[_0x507746(0x30d)](_0x3a74d5)),!![];else{const _0x1ec5f5=_0x507746(0x21f)+this[_0x507746(0x241)]+_0x507746(0x21e)+_0x480e08[_0x507746(0x1dc)]+_0x507746(0x28a)+_0x57a758[0x0];if(_0x522c54[_0x507746(0x1d9)](_0x1ec5f5,_0x5560e7))return[!![],_0x163d97];}}else{if(_0x522c54[_0x507746(0x213)](_0x279287,0x1)){if(_0x522c54['vACUb'](_0x522c54[_0x507746(0x2d5)],_0x522c54[_0x507746(0x2d5)])){console[_0x507746(0x278)](_0x507746(0x2ff)+this['clusterName']+_0x507746(0x1c3));for(let _0x47598f=0x0;_0x522c54[_0x507746(0x238)](_0x47598f,_0x279287);_0x47598f+=0x1){if(_0x522c54[_0x507746(0x239)](_0x522c54['vzxrJ'],_0x522c54[_0x507746(0x1bd)]))console[_0x507746(0x278)]('['+_0x522c54[_0x507746(0x265)](_0x47598f,0x1)+']\x20'+_0x1f059d[_0x47598f]);else{if(_0x522c54[_0x507746(0x1d9)](_0x3df02e?.['name'],_0x507746(0x1db)+this['projectId']+_0x507746(0x2f1)+this['serviceAccountName']+'@'+this[_0x507746(0x241)]+_0x507746(0x307)))return!![];}}const _0x8de9d7=await _0x522c54[_0x507746(0x30e)](inputConfirmation,_0x522c54[_0x507746(0x215)]),_0x246ad0=_0x522c54[_0x507746(0x23e)](Number,_0x8de9d7);return(_0x522c54[_0x507746(0x30e)](isNaN,_0x246ad0)||_0x522c54[_0x507746(0x1b9)](_0x246ad0,0x0)||_0x522c54[_0x507746(0x213)](_0x246ad0,_0x279287))&&(_0x522c54[_0x507746(0x1e3)](_0x522c54['hPhDk'],_0x522c54['hPhDk'])?_0x14171f=[_0x522c54[_0x507746(0x1ab)]]:(console[_0x507746(0x2e0)](_0x522c54[_0x507746(0x202)]),process[_0x507746(0x1e8)](0x1))),_0x522c54['BCpJE'](closeInput),logger[_0x507746(0x200)]('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x1f059d[_0x522c54[_0x507746(0x302)](_0x246ad0,0x1)]),_0x522c54['EORbD'](global_registry[_0x507746(0x1dc)],_0x1f059d[_0x522c54[_0x507746(0x302)](_0x246ad0,0x1)])&&(_0x522c54[_0x507746(0x2b4)](_0x522c54[_0x507746(0x201)],_0x522c54[_0x507746(0x201)])?(global_registry[_0x507746(0x1dc)]=_0x1f059d[_0x522c54['XaHMU'](_0x246ad0,0x1)],this[_0x507746(0x28d)]()):this[_0x507746(0x2ec)](this[_0x507746(0x25a)])),!![];}else _0x7d175['error'](_0x522c54[_0x507746(0x202)]),_0x44f923['exit'](0x1);}}return![];}async[a3_0x2147d7(0x23c)](){const _0x5406a4=a3_0x2147d7,_0x5a876d=await this[_0x5406a4(0x2fb)][_0x5406a4(0x29c)]({'name':_0x5406a4(0x1db)+this['projectId']+'/locations/'+global_registry[_0x5406a4(0x1dc)]+_0x5406a4(0x1a1)+this[_0x5406a4(0x2a1)]});return _0x5a876d;}async[a3_0x2147d7(0x23b)](){const _0x475b6e=a3_0x2147d7,_0x357245={};_0x357245[_0x475b6e(0x24f)]=_0x475b6e(0x234),_0x357245[_0x475b6e(0x273)]=_0x475b6e(0x30f),_0x357245['SUxrY']=_0x475b6e(0x291),_0x357245[_0x475b6e(0x212)]=_0x475b6e(0x2f4);const _0x315aaa=_0x357245;cp['execSync'](_0x315aaa['XbKoe']),cp[_0x475b6e(0x208)]('gcloud\x20auth\x20login\x20--cred-file='+this[_0x475b6e(0x1e0)]);const _0x4882c7=await this[_0x475b6e(0x23c)](),_0x44b7ee=_0x475b6e(0x23d)+this[_0x475b6e(0x241)]+'_'+global_registry[_0x475b6e(0x1dc)]+'_'+this[_0x475b6e(0x2a1)];let _0x2d6a3b=await fs[_0x475b6e(0x206)](path[_0x475b6e(0x1ce)](__dirname,'..',_0x315aaa[_0x475b6e(0x273)],_0x315aaa[_0x475b6e(0x255)],_0x315aaa['mEOJf']));return _0x2d6a3b=_0x2d6a3b[_0x475b6e(0x29f)](),_0x2d6a3b=_0x2d6a3b[_0x475b6e(0x1b0)](/<CLUSTER_NAME>/g,_0x44b7ee),_0x2d6a3b=_0x2d6a3b[_0x475b6e(0x1b0)](/<CLUSTER_URL>/g,'https://'+_0x4882c7[0x0][_0x475b6e(0x1c0)]),_0x2d6a3b=_0x2d6a3b[_0x475b6e(0x1b0)](/<CERTIFICATE_DATA>/g,_0x4882c7[0x0][_0x475b6e(0x1f4)][_0x475b6e(0x217)]),_0x2d6a3b;}async[a3_0x2147d7(0x289)](){const _0xd5007e=a3_0x2147d7,_0x2b08e5={};_0x2b08e5['jSTzC']=_0xd5007e(0x1f0),_0x2b08e5['QWoHA']=function(_0x1a0e75,_0x24aec8){return _0x1a0e75===_0x24aec8;},_0x2b08e5[_0xd5007e(0x25f)]=_0xd5007e(0x1d6),_0x2b08e5[_0xd5007e(0x1ff)]=_0xd5007e(0x1a3),_0x2b08e5[_0xd5007e(0x2e3)]=_0xd5007e(0x2e6),_0x2b08e5[_0xd5007e(0x210)]='MknYY',_0x2b08e5[_0xd5007e(0x27f)]=function(_0x2d52c7,_0x84746b){return _0x2d52c7===_0x84746b;},_0x2b08e5[_0xd5007e(0x1eb)]=function(_0x4e8b8c,_0x5b3d3f){return _0x4e8b8c!==_0x5b3d3f;},_0x2b08e5[_0xd5007e(0x209)]=_0xd5007e(0x1cb);const _0x11c374=_0x2b08e5,_0x1dbf9b={};_0x1dbf9b[_0xd5007e(0x280)]=[_0x11c374[_0xd5007e(0x1a6)]],_0x1dbf9b[_0xd5007e(0x2da)]=this['credentialsPath'];const _0xe1f5c0=await google[_0xd5007e(0x276)][_0xd5007e(0x1fb)](_0x1dbf9b),_0x3c398d=await this['iamClient'][_0xd5007e(0x26c)][_0xd5007e(0x310)][_0xd5007e(0x1ed)]({'name':_0xd5007e(0x1db)+this['projectId'],'auth':_0xe1f5c0});if(_0x3c398d?.[_0xd5007e(0x222)]?.[_0xd5007e(0x2bb)]){if(_0x11c374[_0xd5007e(0x297)](_0x11c374[_0xd5007e(0x25f)],_0x11c374[_0xd5007e(0x1ff)]))_0x2a6991[_0xd5007e(0x2aa)][_0xd5007e(0x30d)](_0x3230f9);else for(const _0x6856fe of _0x3c398d[_0xd5007e(0x222)][_0xd5007e(0x2bb)]){if(_0x11c374['QWoHA'](_0x11c374[_0xd5007e(0x2e3)],_0x11c374['qfZEn']))return!![];else{if(_0x11c374['HOBkv'](_0x6856fe?.[_0xd5007e(0x236)],_0xd5007e(0x1db)+this[_0xd5007e(0x241)]+_0xd5007e(0x2f1)+this[_0xd5007e(0x285)]+'@'+this[_0xd5007e(0x241)]+_0xd5007e(0x307))){if(_0x11c374[_0xd5007e(0x1eb)](_0x11c374[_0xd5007e(0x209)],_0x11c374['SlpcJ']))_0x177868[_0xd5007e(0x23a)](_0xd5007e(0x1e1)+this['clusterName']+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x18355f[_0xd5007e(0x1dc)]+_0xd5007e(0x2f0));else return!![];}}}}return![];}async[a3_0x2147d7(0x233)](){const _0x5e97c6=a3_0x2147d7,_0x2c27a2={};_0x2c27a2[_0x5e97c6(0x30b)]='GKE\x20Cluster\x20deletion\x20failed',_0x2c27a2[_0x5e97c6(0x2ed)]=function(_0x107488,_0x575e39){return _0x107488===_0x575e39;},_0x2c27a2[_0x5e97c6(0x1c8)]='sHBTC',_0x2c27a2['WaiGX']=_0x5e97c6(0x1ad),_0x2c27a2[_0x5e97c6(0x244)]='Service\x20account\x20already\x20exists,\x20skipping',_0x2c27a2[_0x5e97c6(0x264)]=_0x5e97c6(0x1f7),_0x2c27a2['ALNSc']=_0x5e97c6(0x1f0),_0x2c27a2[_0x5e97c6(0x2cd)]=_0x5e97c6(0x2e4),_0x2c27a2[_0x5e97c6(0x1a7)]='storage.buckets.create',_0x2c27a2['GogOT']=_0x5e97c6(0x283),_0x2c27a2[_0x5e97c6(0x262)]=_0x5e97c6(0x2b2),_0x2c27a2[_0x5e97c6(0x2b0)]=_0x5e97c6(0x2d0),_0x2c27a2[_0x5e97c6(0x25e)]=_0x5e97c6(0x27a),_0x2c27a2['XJHUD']=_0x5e97c6(0x2ba),_0x2c27a2[_0x5e97c6(0x1d1)]=_0x5e97c6(0x282),_0x2c27a2[_0x5e97c6(0x2db)]=_0x5e97c6(0x26d),_0x2c27a2[_0x5e97c6(0x245)]='storage.buckets.listEffectiveTags',_0x2c27a2[_0x5e97c6(0x2d7)]=_0x5e97c6(0x306),_0x2c27a2[_0x5e97c6(0x24a)]=_0x5e97c6(0x25d),_0x2c27a2[_0x5e97c6(0x224)]=_0x5e97c6(0x1e4),_0x2c27a2[_0x5e97c6(0x223)]=_0x5e97c6(0x2d1),_0x2c27a2['dhRRL']=_0x5e97c6(0x2b9),_0x2c27a2['eaFUj']=_0x5e97c6(0x240),_0x2c27a2['JZWLr']=_0x5e97c6(0x28b),_0x2c27a2[_0x5e97c6(0x2f7)]='storage.objects.create',_0x2c27a2[_0x5e97c6(0x1d3)]=_0x5e97c6(0x2a3),_0x2c27a2[_0x5e97c6(0x26f)]=_0x5e97c6(0x246),_0x2c27a2['XQVwd']=_0x5e97c6(0x216),_0x2c27a2[_0x5e97c6(0x1f8)]=_0x5e97c6(0x1d0),_0x2c27a2[_0x5e97c6(0x1ea)]='storage.objects.setIamPolicy',_0x2c27a2[_0x5e97c6(0x1ae)]=_0x5e97c6(0x23f),_0x2c27a2['hOfUD']='Turboscale\x20Custom\x20Role',_0x2c27a2['jrvdM']=_0x5e97c6(0x24d);const _0x2af26c=_0x2c27a2,_0x15f309=await this[_0x5e97c6(0x289)]();if(_0x15f309){if(_0x2af26c[_0x5e97c6(0x2ed)](_0x2af26c[_0x5e97c6(0x1c8)],_0x2af26c[_0x5e97c6(0x27c)])){_0x1d57e6[_0x5e97c6(0x200)](_0x2af26c[_0x5e97c6(0x30b)]);throw _0x1b855c;}else{logger[_0x5e97c6(0x200)](_0x2af26c[_0x5e97c6(0x244)]);return;}}logger[_0x5e97c6(0x200)](_0x2af26c[_0x5e97c6(0x264)]);const _0x520054={};_0x520054['scopes']=[_0x2af26c[_0x5e97c6(0x1fd)]],_0x520054[_0x5e97c6(0x2da)]=this[_0x5e97c6(0x1e0)];const _0x551328=await google[_0x5e97c6(0x276)][_0x5e97c6(0x1fb)](_0x520054),_0x538320={};_0x538320['includedPermissions']=[_0x2af26c['tsPfF'],_0x2af26c[_0x5e97c6(0x1a7)],_0x2af26c['GogOT'],_0x2af26c[_0x5e97c6(0x262)],_0x2af26c['PJmhA'],_0x2af26c[_0x5e97c6(0x25e)],_0x2af26c[_0x5e97c6(0x279)],_0x2af26c[_0x5e97c6(0x1d1)],_0x2af26c['oOkAO'],_0x2af26c['neHbb'],_0x2af26c[_0x5e97c6(0x2d7)],_0x2af26c[_0x5e97c6(0x24a)],_0x2af26c[_0x5e97c6(0x224)],_0x2af26c[_0x5e97c6(0x223)],_0x2af26c[_0x5e97c6(0x266)],_0x2af26c['eaFUj'],_0x2af26c[_0x5e97c6(0x2eb)],_0x2af26c[_0x5e97c6(0x2f7)],_0x2af26c[_0x5e97c6(0x1d3)],_0x2af26c['YhJud'],_0x2af26c['XQVwd'],_0x2af26c[_0x5e97c6(0x1f8)],_0x2af26c[_0x5e97c6(0x1ea)],_0x2af26c[_0x5e97c6(0x1ae)]],_0x538320[_0x5e97c6(0x2f5)]=_0x2af26c[_0x5e97c6(0x1c1)],await this[_0x5e97c6(0x2f2)][_0x5e97c6(0x1bb)]['roles']['create']({'parent':_0x5e97c6(0x1db)+this['projectId'],'requestBody':{'role':_0x538320,'roleId':this['customRoleName']},'auth':_0x551328});const _0x3d2931={};_0x3d2931[_0x5e97c6(0x236)]=_0x5e97c6(0x1db)+this[_0x5e97c6(0x241)],_0x3d2931[_0x5e97c6(0x251)]={},_0x3d2931[_0x5e97c6(0x276)]=_0x551328,_0x3d2931[_0x5e97c6(0x251)][_0x5e97c6(0x22b)]=this[_0x5e97c6(0x285)];const _0x58aa07=_0x3d2931;await this[_0x5e97c6(0x2f2)][_0x5e97c6(0x26c)]['serviceAccounts'][_0x5e97c6(0x259)](_0x58aa07);let _0x3cfd37=await this[_0x5e97c6(0x237)]['getIamPolicy']({'resource':_0x5e97c6(0x1db)+this[_0x5e97c6(0x241)]});_0x3cfd37=_0x3cfd37[0x0][_0x5e97c6(0x19f)];const _0x36fe0c={};_0x36fe0c[_0x5e97c6(0x2e9)]='projects/'+this[_0x5e97c6(0x241)]+_0x5e97c6(0x2cf)+this[_0x5e97c6(0x1a2)],_0x36fe0c['members']=[_0x5e97c6(0x2a7)+this['serviceAccountName']+'@'+this[_0x5e97c6(0x241)]+_0x5e97c6(0x307)],_0x3cfd37['push'](_0x36fe0c);const _0x34adc8={};_0x34adc8[_0x5e97c6(0x19f)]=_0x3cfd37,await this['resourcemanagerClient'][_0x5e97c6(0x269)]({'resource':_0x5e97c6(0x1db)+this[_0x5e97c6(0x241)],'policy':_0x34adc8}),logger['info'](_0x2af26c[_0x5e97c6(0x20f)]);}async[a3_0x2147d7(0x1fa)](_0x4ede28='default',_0xc2fccb=[a3_0x2147d7(0x30a)]){const _0x5ebe16=a3_0x2147d7,_0xb97cc4={};_0xb97cc4[_0x5ebe16(0x1a8)]='Service\x20account\x20already\x20exists,\x20skipping',_0xb97cc4[_0x5ebe16(0x288)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0xb97cc4[_0x5ebe16(0x2f6)]=_0x5ebe16(0x227),_0xb97cc4['fRimX']=function(_0x34b773,_0xa91acd){return _0x34b773===_0xa91acd;},_0xb97cc4[_0x5ebe16(0x220)]=_0x5ebe16(0x1d2),_0xb97cc4[_0x5ebe16(0x28f)]=_0x5ebe16(0x286),_0xb97cc4[_0x5ebe16(0x211)]=_0x5ebe16(0x30a),_0xb97cc4[_0x5ebe16(0x1b5)]=_0x5ebe16(0x268);const _0x56070c=_0xb97cc4,_0x10ce7f={};_0x10ce7f[_0x5ebe16(0x2b5)]=WS_EVENTS[_0x5ebe16(0x21d)],_0x10ce7f[_0x5ebe16(0x22f)]=_0x56070c['ZzXzN'],this[_0x5ebe16(0x2c6)]['sendEventToBackend'](this['rws'],_0x10ce7f),logger[_0x5ebe16(0x200)](_0x56070c[_0x5ebe16(0x2f6)]);if(!_0x4ede28){if(_0x56070c[_0x5ebe16(0x27e)](_0x56070c[_0x5ebe16(0x220)],_0x56070c[_0x5ebe16(0x28f)])){_0x3eba9c['info'](_0x56070c['lqYtX']);return;}else _0x4ede28=_0x56070c[_0x5ebe16(0x211)];}if(!_0xc2fccb||_0x56070c[_0x5ebe16(0x27e)](_0xc2fccb[_0x5ebe16(0x219)],0x0)){if(_0x56070c[_0x5ebe16(0x27e)](_0x56070c[_0x5ebe16(0x1b5)],_0x56070c['Npwjc']))_0xc2fccb=[_0x56070c['BLCDk']];else return!![];}return await this['setupServiceAccount'](),await this[_0x5ebe16(0x253)](_0x4ede28,_0xc2fccb),await this[_0x5ebe16(0x20a)](),!![];}async[a3_0x2147d7(0x253)](_0x12734b=a3_0x2147d7(0x30a),_0x5590b6=[a3_0x2147d7(0x30a)]){const _0xfa94d4=a3_0x2147d7,_0x4af2ef={};_0x4af2ef[_0xfa94d4(0x1ac)]=function(_0x3ac21a,_0x33dc78){return _0x3ac21a-_0x33dc78;},_0x4af2ef['sahog']=_0xfa94d4(0x1b3),_0x4af2ef['JSxlN']=function(_0xf820fb,_0x480165){return _0xf820fb!==_0x480165;},_0x4af2ef[_0xfa94d4(0x2dc)]=_0xfa94d4(0x300),_0x4af2ef[_0xfa94d4(0x260)]='xbQMu',_0x4af2ef[_0xfa94d4(0x29d)]=_0xfa94d4(0x1bc),_0x4af2ef[_0xfa94d4(0x1de)]=_0xfa94d4(0x30f),_0x4af2ef['WsXic']=_0xfa94d4(0x291),_0x4af2ef[_0xfa94d4(0x277)]=_0xfa94d4(0x235),_0x4af2ef[_0xfa94d4(0x254)]=_0xfa94d4(0x2c3),_0x4af2ef[_0xfa94d4(0x257)]=_0xfa94d4(0x2df),_0x4af2ef[_0xfa94d4(0x1af)]=function(_0x4a62fc,_0x53e3d0){return _0x4a62fc*_0x53e3d0;},_0x4af2ef[_0xfa94d4(0x287)]=function(_0x44ccdd,_0x326b84){return _0x44ccdd*_0x326b84;},_0x4af2ef[_0xfa94d4(0x2c0)]=function(_0x4d8dee,_0x473847){return _0x4d8dee===_0x473847;},_0x4af2ef[_0xfa94d4(0x1ef)]=_0xfa94d4(0x1d5),_0x4af2ef[_0xfa94d4(0x1be)]=function(_0x419f3e,_0xb7a347){return _0x419f3e!==_0xb7a347;},_0x4af2ef['PkYiQ']=_0xfa94d4(0x1e2),_0x4af2ef[_0xfa94d4(0x1d8)]=_0xfa94d4(0x1b6),_0x4af2ef[_0xfa94d4(0x2a0)]=_0xfa94d4(0x27d),_0x4af2ef[_0xfa94d4(0x26e)]=function(_0x55c140,_0x1f3354){return _0x55c140!==_0x1f3354;},_0x4af2ef['FxQdH']='MeJeK',_0x4af2ef['VKRbo']=_0xfa94d4(0x2b1);const _0x4cd75e=_0x4af2ef;try{if(_0x4cd75e[_0xfa94d4(0x2c9)](_0x4cd75e[_0xfa94d4(0x2dc)],_0x4cd75e[_0xfa94d4(0x260)])){logger['info'](_0x4cd75e[_0xfa94d4(0x29d)]);let _0x25efa4=await fs[_0xfa94d4(0x206)](path[_0xfa94d4(0x1ce)](__dirname,'..',_0x4cd75e[_0xfa94d4(0x1de)],_0x4cd75e[_0xfa94d4(0x1cc)],_0x4cd75e[_0xfa94d4(0x277)]),_0x4cd75e[_0xfa94d4(0x254)]);_0x25efa4=JSON[_0xfa94d4(0x2cb)](_0x25efa4);let _0x515b69=await fs[_0xfa94d4(0x206)](path['join'](__dirname,'..',_0x4cd75e[_0xfa94d4(0x1de)],_0x4cd75e[_0xfa94d4(0x1cc)],_0x4cd75e['TDXmP']),_0x4cd75e[_0xfa94d4(0x254)]);_0x515b69=JSON['parse'](_0x515b69),_0x25efa4[_0xfa94d4(0x236)]=this['clusterName'],_0x25efa4[_0xfa94d4(0x2d3)][0x0][_0xfa94d4(0x1fe)][_0xfa94d4(0x1a9)]=global_registry[_0xfa94d4(0x1b8)],_0x25efa4[_0xfa94d4(0x2d3)][0x1][_0xfa94d4(0x1fe)][_0xfa94d4(0x1a9)]=global_registry[_0xfa94d4(0x1b8)],_0x25efa4[_0xfa94d4(0x2d3)][0x0][_0xfa94d4(0x1fe)]['serviceAccount']=this[_0xfa94d4(0x285)]+'@'+this[_0xfa94d4(0x241)]+_0xfa94d4(0x307),_0x25efa4[_0xfa94d4(0x2d3)][0x1][_0xfa94d4(0x1fe)][_0xfa94d4(0x1c9)]=this[_0xfa94d4(0x285)]+'@'+this[_0xfa94d4(0x241)]+'.iam.gserviceaccount.com',_0x25efa4[_0xfa94d4(0x2d3)][0x0][_0xfa94d4(0x1b1)]['minNodeCount']=global_registry[_0xfa94d4(0x24c)],_0x25efa4[_0xfa94d4(0x2d3)][0x1]['autoscaling'][_0xfa94d4(0x24b)]=0x0,_0x25efa4['nodePools'][0x0][_0xfa94d4(0x1b1)][_0xfa94d4(0x2b7)]=global_registry[_0xfa94d4(0x1b2)],_0x25efa4[_0xfa94d4(0x2d3)][0x1][_0xfa94d4(0x1b1)][_0xfa94d4(0x2b7)]=global_registry[_0xfa94d4(0x1b2)],_0x25efa4[_0xfa94d4(0x29b)]=global_registry[_0xfa94d4(0x1dc)],_0x25efa4[_0xfa94d4(0x2e1)]=[_0x515b69[global_registry[_0xfa94d4(0x1dc)]][0x0]],_0x25efa4['network']=_0xfa94d4(0x1db)+this[_0xfa94d4(0x241)]+_0xfa94d4(0x232)+_0x12734b,_0x25efa4[_0xfa94d4(0x2c5)]=_0xfa94d4(0x1db)+this[_0xfa94d4(0x241)]+'/regions/'+global_registry[_0xfa94d4(0x1dc)]+'/subnetworks/'+_0x5590b6[0x0];const _0x19f550=await this[_0xfa94d4(0x2fb)][_0xfa94d4(0x253)]({'cluster':_0x25efa4,'parent':_0xfa94d4(0x1db)+this['projectId']+'/locations/'+global_registry[_0xfa94d4(0x1dc)]});await this[_0xfa94d4(0x2c6)][_0xfa94d4(0x207)](_0x4cd75e[_0xfa94d4(0x1af)](_0x4cd75e[_0xfa94d4(0x287)](0x7,0x3c),0x3e8));}else _0x4b928e[_0xfa94d4(0x1dc)]=_0x2d4ac4[_0x4cd75e[_0xfa94d4(0x1ac)](_0x238919,0x1)],this[_0xfa94d4(0x28d)]();}catch(_0x369a5b){if(_0x4cd75e[_0xfa94d4(0x2c0)](_0x4cd75e[_0xfa94d4(0x1ef)],_0x4cd75e['JzpVx'])){const _0x221f46=await this['isClusterPresent']();if(_0x221f46){if(_0x4cd75e[_0xfa94d4(0x1be)](_0x4cd75e[_0xfa94d4(0x2f9)],_0x4cd75e[_0xfa94d4(0x1d8)]))logger[_0xfa94d4(0x200)](_0x4cd75e['xYJbf'],_0x369a5b[_0xfa94d4(0x2ee)]),await this['deleteCluster']();else return[!![],_0x59b2ba];}else _0x4cd75e[_0xfa94d4(0x26e)](_0x4cd75e['FxQdH'],_0x4cd75e[_0xfa94d4(0x22d)])?logger[_0xfa94d4(0x200)](_0x4cd75e[_0xfa94d4(0x29e)]):(_0x31e383[_0xfa94d4(0x1dc)]=_0xe10168[0x0],this[_0xfa94d4(0x28d)]());throw _0x369a5b;}else _0x57801b['info'](_0x4cd75e['sahog']);}}async['updateWindowsNodeGroup'](){const _0xa623ce=a3_0x2147d7;cp['execSync'](_0xa623ce(0x1e1)+this['clusterName']+_0xa623ce(0x2e2)+global_registry[_0xa623ce(0x1dc)]+_0xa623ce(0x2f0));}async[a3_0x2147d7(0x2b3)](_0xa89daa,_0x35dab2){const _0xeb2b5c=a3_0x2147d7,_0xfcf9eb={'qmlDN':function(_0x58c7d4,_0x5e4ccb){return _0x58c7d4===_0x5e4ccb;},'LQUkY':_0xeb2b5c(0x1c4),'ZazdX':function(_0x51deda,_0x85ce43){return _0x51deda+_0x85ce43;},'owVGJ':function(_0x50b362,_0x3a0430){return _0x50b362!==_0x3a0430;},'EUzOo':_0xeb2b5c(0x218),'mPgvr':function(_0x98f36f,_0x55d8b1){return _0x98f36f(_0x55d8b1);},'ipugs':function(_0x1d0ddf,_0x3dd1d4){return _0x1d0ddf(_0x3dd1d4);},'BeBCi':function(_0x3fa597,_0x204a1a){return _0x3fa597===_0x204a1a;},'hpIiX':_0xeb2b5c(0x1da),'lxpJN':'DONE','rKtDH':function(_0x27db41,_0x57e601){return _0x27db41!==_0x57e601;},'lxJsn':_0xeb2b5c(0x304),'InYHw':_0xeb2b5c(0x267),'fmzmJ':_0xeb2b5c(0x2dd),'noskA':_0xeb2b5c(0x1dd),'vhBIN':_0xeb2b5c(0x309)};try{if(_0xfcf9eb[_0xeb2b5c(0x229)](_0xfcf9eb[_0xeb2b5c(0x2bf)],_0xfcf9eb[_0xeb2b5c(0x2bf)])){const _0x1af8be=_0x1f5c89[0x0]?.[_0xeb2b5c(0x25c)]?.[_0xeb2b5c(0x19d)];return _0x1af8be&&_0xfcf9eb['qmlDN'](_0x1af8be[_0xeb2b5c(0x2e8)](),_0xfcf9eb[_0xeb2b5c(0x274)]);}else{await _0xfcf9eb[_0xeb2b5c(0x243)](deleteAgent,_0xa89daa),await _0xfcf9eb[_0xeb2b5c(0x1d7)](deleteRoutingDeps,_0xa89daa),logger[_0xeb2b5c(0x200)](_0xeb2b5c(0x205)+this['clusterName']);const _0x47e484=await this[_0xeb2b5c(0x2fb)]['deleteCluster']({'name':_0xeb2b5c(0x1db)+this[_0xeb2b5c(0x241)]+'/locations/'+global_registry[_0xeb2b5c(0x1dc)]+'/clusters/'+this[_0xeb2b5c(0x2a1)]});if(_0xfcf9eb[_0xeb2b5c(0x21a)](_0x47e484[0x0]?.[_0xeb2b5c(0x20b)],_0xfcf9eb[_0xeb2b5c(0x1aa)])||_0xfcf9eb[_0xeb2b5c(0x21a)](_0x47e484[0x0]?.[_0xeb2b5c(0x20b)],_0xfcf9eb[_0xeb2b5c(0x1e5)])){if(_0xfcf9eb[_0xeb2b5c(0x1f1)](_0xfcf9eb[_0xeb2b5c(0x1c2)],_0xfcf9eb['lxJsn']))_0x304ae9[_0xeb2b5c(0x278)]('['+_0xfcf9eb[_0xeb2b5c(0x305)](_0x2d25e0,0x1)+']\x20'+_0x54a67b[_0xe9b191]);else return!![];}logger[_0xeb2b5c(0x200)](_0xfcf9eb[_0xeb2b5c(0x2c1)]);}}catch(_0x20e2b9){if(_0xfcf9eb['BeBCi'](_0xfcf9eb[_0xeb2b5c(0x256)],_0xfcf9eb[_0xeb2b5c(0x1f9)]))return _0x12c328['status'][_0xeb2b5c(0x228)][_0xeb2b5c(0x30c)][0x0]['ip'];else{logger[_0xeb2b5c(0x200)](_0xfcf9eb[_0xeb2b5c(0x20c)]);throw _0x20e2b9;}}}async['isVPCPresent'](_0x2d2ca2){const _0x1ecf78=a3_0x2147d7,_0x2f8f1c={};_0x2f8f1c[_0x1ecf78(0x1a5)]=function(_0x582663,_0x18660c){return _0x582663!==_0x18660c;},_0x2f8f1c[_0x1ecf78(0x2d2)]=function(_0x2cd2f5,_0x259fcf){return _0x2cd2f5!==_0x259fcf;},_0x2f8f1c['lBpGx']='hGxEV',_0x2f8f1c[_0x1ecf78(0x21c)]=function(_0x4f63ff,_0x386711){return _0x4f63ff>_0x386711;},_0x2f8f1c[_0x1ecf78(0x2ac)]=function(_0x40e29e,_0x2e8fa0){return _0x40e29e===_0x2e8fa0;},_0x2f8f1c[_0x1ecf78(0x1ec)]=function(_0x582087,_0x1df1a3){return _0x582087!==_0x1df1a3;},_0x2f8f1c[_0x1ecf78(0x28c)]=_0x1ecf78(0x21b),_0x2f8f1c[_0x1ecf78(0x2de)]=_0x1ecf78(0x2d8);const _0x3a4c66=_0x2f8f1c;try{if(_0x3a4c66['EJGzW'](_0x3a4c66['lBpGx'],_0x3a4c66[_0x1ecf78(0x311)]))return _0x3a4c66[_0x1ecf78(0x1a5)](_0x43d849['clusterRegion'],_0xaed8e9[0x0])&&(_0x55af58[_0x1ecf78(0x1dc)]=_0xa89cf4[0x0],this[_0x1ecf78(0x28d)]()),!![];else{const _0x1d01d1=await this[_0x1ecf78(0x247)][_0x1ecf78(0x1d4)]({'project':this[_0x1ecf78(0x241)],'network':_0x2d2ca2});if(_0x3a4c66['SheZP'](_0x1d01d1[_0x1ecf78(0x219)],0x0)&&_0x3a4c66['SuPlk'](_0x1d01d1[0x0][_0x1ecf78(0x236)],_0x2d2ca2))return _0x3a4c66['jgTzr'](_0x3a4c66[_0x1ecf78(0x28c)],_0x3a4c66['hTiUt'])?!![]:!![];}}catch(_0x2fb0f9){return![];}return![];}async[a3_0x2147d7(0x296)](_0x31d72c,_0x150961){const _0x235568=a3_0x2147d7,_0x25ef4f={};_0x25ef4f[_0x235568(0x2d6)]=function(_0x1f4d10,_0x2f5fa3){return _0x1f4d10===_0x2f5fa3;};const _0x162022=_0x25ef4f;try{const _0x21d636=await this[_0x235568(0x247)][_0x235568(0x1d4)]({'project':this[_0x235568(0x241)],'network':_0x150961});for(const _0x35802f of _0x21d636[0x0][_0x235568(0x2c7)]){const _0x4b9a9d='https://www.googleapis.com/compute/v1/projects/'+this[_0x235568(0x241)]+_0x235568(0x21e)+global_registry['clusterRegion']+_0x235568(0x28a)+_0x31d72c[0x0];if(_0x162022[_0x235568(0x2d6)](_0x4b9a9d,_0x35802f))return[!![],_0x31d72c];}}catch(_0x473bfb){return logger['error']('Cannot\x20find\x20subnets\x20'+_0x31d72c+_0x235568(0x1c5)+_0x473bfb),[![],[]];}return[![],[]];}async[a3_0x2147d7(0x2ec)](){const _0x124c27=a3_0x2147d7,_0x276ab5=await this[_0x124c27(0x247)][_0x124c27(0x1ed)]({'project':this[_0x124c27(0x241)]}),_0x5de641={};_0x5de641['username']=global_registry[_0x124c27(0x2a2)],_0x5de641[_0x124c27(0x1f3)]=global_registry['bstackAccesskey'],_0x5de641[_0x124c27(0x22c)]=GCP,_0x5de641[_0x124c27(0x2aa)]=[];const _0x4360ed=_0x5de641;for(const _0x4c5055 of _0x276ab5){_0x4360ed[_0x124c27(0x2aa)][_0x124c27(0x30d)](_0x4c5055);}const _0x232e96={};_0x232e96[_0x124c27(0x2b5)]=WS_EVENTS[_0x124c27(0x1ee)],_0x232e96[_0x124c27(0x22f)]=_0x4360ed,this[_0x124c27(0x2c6)][_0x124c27(0x281)](this['rws'],_0x232e96);}async['updateClusterRegion'](){const _0x18f08a=a3_0x2147d7,_0x573ef8={'cGJew':function(_0x1b51ab,_0x22fadb,_0x5d27c3){return _0x1b51ab(_0x22fadb,_0x5d27c3);},'cWYqY':'PUT','UJSWB':_0x18f08a(0x1c7),'KfDSm':function(_0x292f8b,_0x23d92d,_0x5d5b3c){return _0x292f8b(_0x23d92d,_0x5d5b3c);}},_0x592484=_0x18f08a(0x292)+AG_API_URL+'/packages/cli/update-cluster-region',_0x4e5a98={};_0x4e5a98[_0x18f08a(0x1e9)]=global_registry[_0x18f08a(0x26a)];const _0x1453f0={};_0x1453f0[_0x18f08a(0x275)]=global_registry[_0x18f08a(0x1dc)];const _0x4363c0={'searchParams':_0x4e5a98,'json':_0x1453f0,'headers':_0x573ef8[_0x18f08a(0x2be)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),'method':_0x573ef8['cWYqY'],'responseType':_0x573ef8[_0x18f08a(0x1bf)],'throwHttpErrors':![]},_0x11d260=await _0x573ef8[_0x18f08a(0x2b6)](got,_0x592484,_0x4363c0);}}const a3_0x230eab={};a3_0x230eab[a3_0x2147d7(0x2fd)]=GoogleCloudProvider,module[a3_0x2147d7(0x242)]=a3_0x230eab;
1
+ function a3_0x4aec(){const _0x558194=['project_id','keyFile','JKoTS','/roles/','FjKDF','ltTQs','tKBNX','DEVYC','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','createCluster','updateClusterRegion','getClient','HLRZh','accounts','tkvoK','lwlsK','managedby','LmzSz','jIrfW','/regions/','PbdyK','EdwXr','nCtVY','ayagk','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','YTcpy','XIoXG','location','type','xpxVd','vPLif','webSocketUtils','cloudProvider','Cluster\x20creation\x20failed','WFUEF','concat','\x20--quiet\x20--user-output-enabled=false','uIiqh','boRlY','bCeeL','DDORv','LOG','/clusters/','storage.objects.get','Found\x20cluster\x20with\x20name\x20\x27','replace','MXPKk','username','RESOURCES','iFzTH','cloudProviderName','FIHkw','stack','serviceAccounts','Cannot\x20find\x20subnets\x20','clusterName','WUGrP','PUT','storage.buckets.getObjectInsights','HIWND','child_process','join','kdMKQ','OYzfN','organizations','krZMy','GjWGQ','hPCSi','toLowerCase','storage.objects.create','readFileAsync','dfGEu','1|5|3|6|8|7|4|2|0','maxNodes','sZMLc','updateWindowsNodeGroup','HAioA','customRoleName','utf-8','wBUyA','storage.buckets.setIamPolicy','lowKw','GoogleCloudProvider','execSync','PrbFQ','NjdUn','HHPNw','info','serviceAccount','awKVe','default','szwsG','\x20--windows-os-version=ltsc2022\x20--region\x20','MxeSr','exports','yEPLs','storage.multipartUploads.abort','arIDc','CNvWt','roles','bstackUsername','projectId','dAusk','minNodes','https://','VYWaU','sGqbY','sendResourceDataToHST','turboscale-service-account','fcUit','QOYjp','ruvWS','subnetworks','oJHEs','sendGCPInfoToHST','push','iam.serviceAccounts.signBlob','wGtgD','KqBrB','masterAuth','HvHIW','storage.objects.update','../utils/utilityMethods','Deleting\x20the\x20cluster\x20','projects','kAFml','minNodeCount','role','data','get','setupServiceAccount','wIVle','yFBeZ','SyGqZ','gcpresources','parse','uhipU','1748175nBbgJa','Creating\x20service\x20account','path','hQAIv','storage.objects.delete','dsDvg','rws','gcloud\x20auth\x20login\x20--cred-file=','HrrEj','maxNodeCount','1837088QgjDSL','Mmpgj','message','gqHNm','RTUNA','zwLTv','autoscaling','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','util','kwjSO','getGridHostname','iam','ZoaHT','title','pKSzK','templates','mLaOB','jhuiS','qxMuF','iamClient','uChtb','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','.\x20Error:\x20','https://www.googleapis.com/compute/v1/projects/','KLunm','VfYVA','getIamPolicy','iyGln','gke_','3328864hYssTH','bQZzl','xMjME','init','getCluster','gLsYj','loadBalancer','auth','network','instanceType','RcAed','pDHeV','aFHnl','nIjeo','ajPmL','isVPCPresent','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','uNsEk','storage.multipartUploads.listParts','turboscale_custom_role','YXnoS','kJRoO','toString','gcp_credentials.json','WYGET','hWPot','9TTXTqt','OkqxA','profileId','tGdQL','got','WUamq','setIamPolicy','parent','EbEEz','ZhOqT','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','log','/locations/','GKE\x20Cluster\x20deletion\x20failed','nlKSY','Cluster\x20deletion\x20completed','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','LLgfy','dhhIG','NRsIr','LUZbt','SnyHS','CHiMk','nCPLu','urdCu','AYHWM','vfkdR','writeFileSync','KEmdA','googleapis','@google-cloud/compute','../utils/userInput','serviceAccountName','serviceAccount:','UYFjf','ugEHC','vnchv','hjWkK','@google-cloud/resource-manager','containerClient','deleteCluster','KubeConfigTemplate.yaml','cVGhu','storage.objects.getIamPolicy','nodePools','accessKey','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','/subnetworks/','resourcemanagerClient','Service\x20account\x20already\x20exists,\x20skipping','name','storage.objects.setIamPolicy','subnetwork','requestBody','ClusterManagerClient','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','resourceLabels','sendEventToBackend','browserstack','error','json','storage.multipartUploads.create','DXeZn','storage.buckets.getIamPolicy','zmMav','EBwHr','UBnJn','storage.buckets.listEffectiveTags','https://www.googleapis.com/auth/cloud-platform','OHNHm','setupNewCluster','xniRI','clusters','UwTpa','getClusterInfo','machineType','iWpES','hYFKY','35HXaGWK','mMJUH','dkrMb','projects/','mosBD','isClusterPresent','1395894zmgsUU','AOzff','.iam.gserviceaccount.com','utDvn','regionmap.json','checkServiceAccount','ZfYiD','KrgfA','/packages/cli/update-cluster-region','bstackAccesskey','exit','5230070MkTgKT','wrDrv','networkClient','NetworksClient','fuIJD','status','9646624hklTSH','storage.buckets.update','iMcdO','WRHRl','EcQZe','omZhA','DWBio','zCwlY','mjyOP','isBrowserstackCluster','Amcfx','ENJsm','YSSSV','8TVpHgY','Creating\x20GKE\x20Cluster','pwKbB','qsbKm','xfMzv','hSYaw','Turboscale\x20Custom\x20Role','AgdEY','storage.buckets.list','gQWJQ','CTFGA','WAenX','KCTzD','zlerj','EmhNf','newRegion','ttaGR','yOAHJ','vpcInfo','credentialsPath','kJGCD','storage.buckets.create','VTBQX','DDnCZ','locations','/serviceAccounts/','config','AWhBb','scopes','length','create','1182486jhWrZc','yNvQE','ktaHg','AtDdP','NMtoi','aunZJ','aayXv','clusterRegion','list','delay','syiqJ','njMnk','../config/logger','wKrMU','storage.buckets.deleteTagBinding','UDRJJ','includedPermissions','JGJMr','ljSwZ','storage.buckets.delete','accountId','VKidI','TMwWU','ingress','aJCTO','gYZKO','tjsGV','hKrAK'];a3_0x4aec=function(){return _0x558194;};return a3_0x4aec();}const a3_0x49aabb=a3_0x47c0;(function(_0x122ffc,_0x70146){const _0x56ec61=a3_0x47c0,_0x50d8d0=_0x122ffc();while(!![]){try{const _0x306e0b=-parseInt(_0x56ec61(0xba))/0x1+-parseInt(_0x56ec61(0xc4))/0x2+-parseInt(_0x56ec61(0x14f))/0x3*(-parseInt(_0x56ec61(0x16d))/0x4)+-parseInt(_0x56ec61(0x149))/0x5*(-parseInt(_0x56ec61(0x18c))/0x6)+-parseInt(_0x56ec61(0xe1))/0x7+parseInt(_0x56ec61(0x160))/0x8+parseInt(_0x56ec61(0xfb))/0x9*(parseInt(_0x56ec61(0x15a))/0xa);if(_0x306e0b===_0x70146)break;else _0x50d8d0['push'](_0x50d8d0['shift']());}catch(_0x23c09b){_0x50d8d0['push'](_0x50d8d0['shift']());}}}(a3_0x4aec,0xdaed7));const fs=require('fs'),path=require(a3_0x49aabb(0xbc)),got=require(a3_0x49aabb(0xff)),util=require(a3_0x49aabb(0xcc)),cp=require(a3_0x49aabb(0x1e4)),{google}=require(a3_0x49aabb(0x118)),compute=require(a3_0x49aabb(0x119)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x49aabb(0x121))['v3'],{logger}=require(a3_0x49aabb(0x198)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x49aabb(0x222)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x49aabb(0x11a)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require('../config/constants');function a3_0x47c0(_0x2db234,_0x164881){const _0x4aec57=a3_0x4aec();return a3_0x47c0=function(_0x47c0e0,_0x245c5f){_0x47c0e0=_0x47c0e0-0xae;let _0x5d8d4f=_0x4aec57[_0x47c0e0];return _0x5d8d4f;},a3_0x47c0(_0x2db234,_0x164881);}class GoogleCloudProvider extends CloudProvider{constructor(_0x141685,_0x2e294c,_0x3383c1,_0x1e6bcb){const _0x318fc7=a3_0x49aabb,_0x3cc4a8={};_0x3cc4a8[_0x318fc7(0x1ef)]=_0x318fc7(0x1f0),_0x3cc4a8['sZMLc']=_0x318fc7(0x214),_0x3cc4a8[_0x318fc7(0xae)]=_0x318fc7(0xf4);const _0x422ab6=_0x3cc4a8,_0x25a04a=_0x422ab6[_0x318fc7(0x1ef)]['split']('|');let _0x2cc008=0x0;while(!![]){switch(_0x25a04a[_0x2cc008++]){case'0':this[_0x318fc7(0x11b)]=_0x422ab6[_0x318fc7(0x1f2)];continue;case'1':super(GCP,_0x141685,_0x2e294c,_0x3383c1,_0x1e6bcb);continue;case'2':this['customRoleName']=_0x422ab6[_0x318fc7(0xae)];continue;case'3':this['networkClient']=null;continue;case'4':this['projectId']=null;continue;case'5':this[_0x318fc7(0x122)]=null;continue;case'6':this['resourcemanagerClient']=null;continue;case'7':this[_0x318fc7(0x180)]=null;continue;case'8':this[_0x318fc7(0xd7)]=null;continue;}break;}}async[a3_0x49aabb(0x213)](){const _0xdb83a1=a3_0x49aabb;this[_0xdb83a1(0x21a)](this[_0xdb83a1(0xc0)]);}async['init'](){const _0x36cf74=a3_0x49aabb;await super[_0x36cf74(0xe4)]();const _0x4da2f3=this[_0x36cf74(0x180)],_0x217182={};_0x217182[_0x36cf74(0x1a9)]=_0x4da2f3,this['containerClient']=new container['v1'][(_0x36cf74(0x131))](_0x217182);const _0x4b02b1={};_0x4b02b1[_0x36cf74(0x1a9)]=_0x4da2f3,this[_0x36cf74(0x15c)]=new compute['v1'][(_0x36cf74(0x15d))](_0x4b02b1);const _0x527a4f={};return _0x527a4f[_0x36cf74(0x1a9)]=_0x4da2f3,this[_0x36cf74(0x12b)]=new ProjectsClient(_0x527a4f),this['iamClient']=google[_0x36cf74(0xcf)]('v1'),this;}async['getUserInput'](_0x4b533a,_0x5cdb2d){const _0x32cc6e=a3_0x49aabb,_0xc73124={'HAioA':function(_0x3bcbc6,_0x18c28d){return _0x3bcbc6(_0x18c28d);},'PrbFQ':_0x32cc6e(0x10b),'vnchv':function(_0x3f7ddc){return _0x3f7ddc();},'utDvn':_0x32cc6e(0xf8)},_0x4e2430=await _0xc73124[_0x32cc6e(0x1f4)](_0x4b533a,_0xc73124[_0x32cc6e(0x1fc)]);let _0xbe303e=await fs['readFileAsync'](_0x4e2430);_0xbe303e=_0xbe303e[_0x32cc6e(0xf7)]();const _0x54559a=_0xc73124[_0x32cc6e(0x11f)](getDirForConfig),_0x2669e3=path[_0x32cc6e(0x1e5)](_0x54559a,_0xc73124[_0x32cc6e(0x152)]);fs[_0x32cc6e(0x116)](_0x2669e3,_0xbe303e),this[_0x32cc6e(0x180)]=_0x2669e3;const _0x44e5f1={};return _0x44e5f1[_0x32cc6e(0x1a9)]=_0x2669e3,_0x5cdb2d[_0x32cc6e(0x1c8)][GCP]=_0x44e5f1,_0xbe303e=JSON[_0x32cc6e(0xb8)](_0xbe303e),this[_0x32cc6e(0x20d)]=_0xbe303e['project_id'],_0x5cdb2d;}async['setCachedCredsInRegistry'](_0x1fd981){const _0x4d5aa2=a3_0x49aabb;this[_0x4d5aa2(0x180)]=_0x1fd981[this[_0x4d5aa2(0x1da)]][_0x4d5aa2(0x1a9)];let _0x275cc4=await fs['readFileAsync'](this[_0x4d5aa2(0x180)]);_0x275cc4=JSON[_0x4d5aa2(0xb8)](_0x275cc4),this[_0x4d5aa2(0x20d)]=_0x275cc4[_0x4d5aa2(0x1a8)];}[a3_0x49aabb(0xce)](_0x27b073){const _0x319630=a3_0x49aabb;return _0x27b073[_0x319630(0x15f)][_0x319630(0xe7)][_0x319630(0x1a3)][0x0]['ip'];}async[a3_0x49aabb(0x169)](){const _0x4e493e=a3_0x49aabb,_0x4216ad={};_0x4216ad[_0x4e493e(0xf2)]='Cluster\x20creation\x20failed',_0x4216ad[_0x4e493e(0x162)]=function(_0x118b02,_0xf514cc){return _0x118b02===_0xf514cc;},_0x4216ad['YTcpy']=_0x4e493e(0x177),_0x4216ad[_0x4e493e(0x20e)]=function(_0x473844,_0x3bc342){return _0x473844===_0x3bc342;},_0x4216ad[_0x4e493e(0x163)]='FEtZm',_0x4216ad[_0x4e493e(0x150)]=_0x4e493e(0xef),_0x4216ad[_0x4e493e(0x1d6)]=_0x4e493e(0x135),_0x4216ad['RhlDh']=function(_0x3ca9dd,_0x478bd0){return _0x3ca9dd!==_0x478bd0;},_0x4216ad[_0x4e493e(0x1b6)]=_0x4e493e(0x139),_0x4216ad[_0x4e493e(0x1e0)]=_0x4e493e(0xd8);const _0x111e10=_0x4216ad;try{if(_0x111e10[_0x4e493e(0x162)](_0x111e10[_0x4e493e(0x1c1)],_0x111e10[_0x4e493e(0x1c1)])){const _0xefcc76=await this[_0x4e493e(0x145)]();if(_0xefcc76[0x0]?.[_0x4e493e(0x133)]?.[_0x4e493e(0x1b8)]){if(_0x111e10[_0x4e493e(0x20e)](_0x111e10[_0x4e493e(0x163)],_0x111e10[_0x4e493e(0x150)]))_0x1de63b[_0x4e493e(0x1ff)](_0x111e10[_0x4e493e(0xf2)]);else{const _0x356042=_0xefcc76[0x0]?.['resourceLabels']?.[_0x4e493e(0x1b8)];return _0x356042&&_0x111e10['iMcdO'](_0x356042['toLowerCase'](),_0x111e10[_0x4e493e(0x1d6)]);}}}else return![];}catch(_0x373911){if(_0x111e10['RhlDh'](_0x111e10[_0x4e493e(0x1b6)],_0x111e10[_0x4e493e(0x1e0)]))return![];else{if(_0x111e10[_0x4e493e(0x162)](_0x4eb929?.['name'],'projects/'+this['projectId']+_0x4e493e(0x186)+this[_0x4e493e(0x11b)]+'@'+this[_0x4e493e(0x20d)]+'.iam.gserviceaccount.com'))return!![];}}return![];}async[a3_0x49aabb(0x14e)](){const _0x14f4e0=a3_0x49aabb,_0x1fa4d0={'yOAHJ':function(_0x2b0448,_0x4e6e4b){return _0x2b0448===_0x4e6e4b;},'MQIpg':_0x14f4e0(0x202),'EmhNf':function(_0xfa8610,_0x314b71){return _0xfa8610!==_0x314b71;},'AYHWM':_0x14f4e0(0xcb),'aayXv':'Service\x20account\x20already\x20exists,\x20skipping','VTBQX':'templates','IWLvc':_0x14f4e0(0xb7),'ugEHC':_0x14f4e0(0x153),'SnyHS':_0x14f4e0(0x1f6),'AgdEY':function(_0x2929f3,_0x59bb18){return _0x2929f3!==_0x59bb18;},'oJHEs':_0x14f4e0(0xd2),'OYzfN':_0x14f4e0(0x10f),'sGqbY':function(_0x5cc189,_0x3ff626){return _0x5cc189===_0x3ff626;},'RTUNA':'KeWMX','gLsYj':_0x14f4e0(0x115),'cVGhu':function(_0x524a39,_0x2bc50e){return _0x524a39!==_0x2bc50e;},'cJcvR':_0x14f4e0(0x15e),'xpxVd':function(_0x2ed4e2,_0x1651a1){return _0x2ed4e2===_0x1651a1;},'NRsIr':'FpdZe','hWPot':'mquxt','VYWaU':'lWyxW','kJRoO':_0x14f4e0(0xd0),'CNvWt':function(_0x42c0d1,_0x2eaea4){return _0x42c0d1>_0x2eaea4;},'pwKbB':function(_0x5639f2,_0x4058a1){return _0x5639f2===_0x4058a1;},'hKrAK':'AMYex','DDORv':'wwZLd','krZMy':function(_0x905f82,_0xf1b69c){return _0x905f82<_0xf1b69c;},'FIHkw':function(_0x2e5dff,_0x1cba8f){return _0x2e5dff===_0x1cba8f;},'mjyOP':_0x14f4e0(0x167),'JGJMr':function(_0x36e120,_0x1bc6c6){return _0x36e120+_0x1bc6c6;},'mLaOB':function(_0x12c3ae,_0x5d263c){return _0x12c3ae(_0x5d263c);},'QPLPS':_0x14f4e0(0xd9),'iFzTH':function(_0x7b2a6a,_0x1f078f){return _0x7b2a6a(_0x1f078f);},'CCJyS':function(_0x597f24,_0x43c36b){return _0x597f24(_0x43c36b);},'hQAIv':function(_0x135631,_0x4fc91e){return _0x135631<=_0x4fc91e;},'uIiqh':function(_0x330f44,_0x25d30f){return _0x330f44===_0x25d30f;},'TOkDP':_0x14f4e0(0x188),'szwsG':function(_0x715f2a){return _0x715f2a();},'EBwHr':function(_0x10b4a8,_0x2531ae){return _0x10b4a8-_0x2531ae;},'wBUyA':function(_0x2b8cab,_0x1b3c29){return _0x2b8cab!==_0x1b3c29;},'hSYaw':_0x14f4e0(0x1ea),'uhipU':'QNJih'};let _0x1c8c64=await fs[_0x14f4e0(0x1ee)](path[_0x14f4e0(0x1e5)](__dirname,'..',_0x1fa4d0[_0x14f4e0(0x183)],_0x1fa4d0['IWLvc'],_0x1fa4d0[_0x14f4e0(0x11e)]),_0x1fa4d0[_0x14f4e0(0x110)]);_0x1c8c64=JSON[_0x14f4e0(0xb8)](_0x1c8c64);let _0xc70e02=[global_registry[_0x14f4e0(0x193)]];if(_0x1fa4d0[_0x14f4e0(0x174)](_0x1c8c64[global_registry[_0x14f4e0(0x193)]],undefined)){if(_0x1fa4d0[_0x14f4e0(0x174)](_0x1fa4d0[_0x14f4e0(0x219)],_0x1fa4d0[_0x14f4e0(0x1e7)]))_0xc70e02=_0xc70e02[_0x14f4e0(0x1cb)](_0x1c8c64[global_registry['clusterRegion']]);else return _0x4a6944[_0x14f4e0(0x15f)][_0x14f4e0(0xe7)][_0x14f4e0(0x1a3)][0x0]['ip'];}const _0x5dd2d1=[];for await(const _0x52a5f2 of _0xc70e02){if(_0x1fa4d0[_0x14f4e0(0x212)](_0x1fa4d0[_0x14f4e0(0xc8)],_0x1fa4d0[_0x14f4e0(0xe6)]))_0x33c96d[_0x14f4e0(0x1fb)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x14f4e0(0x1df)]+_0x14f4e0(0x204)+_0x446fe5[_0x14f4e0(0x193)]+_0x14f4e0(0x1cc));else{const _0x2325e0={};_0x2325e0[_0x14f4e0(0x102)]=_0x14f4e0(0x14c)+this['projectId']+'/locations/'+_0x52a5f2;const _0x3f3e06=_0x2325e0,_0x6705de=await this['containerClient']['listClusters'](_0x3f3e06);for(const _0x24ae8e of _0x6705de[0x0][_0x14f4e0(0x143)]){if(_0x1fa4d0[_0x14f4e0(0x125)](_0x1fa4d0['cJcvR'],_0x1fa4d0['cJcvR']))return!![];else{if(_0x1fa4d0[_0x14f4e0(0x1c5)](_0x24ae8e[_0x14f4e0(0x12d)],this['clusterName'])){if(_0x1fa4d0[_0x14f4e0(0x212)](_0x1fa4d0[_0x14f4e0(0x10e)],_0x1fa4d0[_0x14f4e0(0x10e)]))_0x5dd2d1[_0x14f4e0(0x21b)](_0x52a5f2);else for(const _0x21e031 of _0x5a4b27[_0x14f4e0(0xb1)]['accounts']){if(_0x1fa4d0[_0x14f4e0(0x17e)](_0x21e031?.[_0x14f4e0(0x12d)],_0x14f4e0(0x14c)+this[_0x14f4e0(0x20d)]+_0x14f4e0(0x186)+this[_0x14f4e0(0x11b)]+'@'+this[_0x14f4e0(0x20d)]+_0x14f4e0(0x151)))return!![];}}}}}}const _0x2c0c8d=_0x5dd2d1['length'];if(_0x1fa4d0['sGqbY'](_0x2c0c8d,0x1)){if(_0x1fa4d0['AgdEY'](_0x1fa4d0[_0x14f4e0(0xfa)],_0x1fa4d0[_0x14f4e0(0xfa)]))_0x34df7a=_0x1fa4d0['MQIpg'];else{if(_0x1fa4d0['cVGhu'](global_registry[_0x14f4e0(0x193)],_0x5dd2d1[0x0])){if(_0x1fa4d0[_0x14f4e0(0x174)](_0x1fa4d0[_0x14f4e0(0x211)],_0x1fa4d0[_0x14f4e0(0xf6)]))global_registry['clusterRegion']=_0x5dd2d1[0x0],this[_0x14f4e0(0x1b2)]();else return!![];}return!![];}}else{if(_0x1fa4d0[_0x14f4e0(0x20a)](_0x2c0c8d,0x1)){if(_0x1fa4d0[_0x14f4e0(0x16f)](_0x1fa4d0[_0x14f4e0(0x1a7)],_0x1fa4d0[_0x14f4e0(0x1d0)]))_0x406ceb[_0x14f4e0(0x193)]=_0x3a469a[0x0],this['updateClusterRegion']();else{console[_0x14f4e0(0x106)](_0x14f4e0(0x1d4)+this[_0x14f4e0(0x1df)]+_0x14f4e0(0x105));for(let _0x299fd1=0x0;_0x1fa4d0[_0x14f4e0(0x1e9)](_0x299fd1,_0x2c0c8d);_0x299fd1+=0x1){if(_0x1fa4d0[_0x14f4e0(0x1db)](_0x1fa4d0['mjyOP'],_0x1fa4d0[_0x14f4e0(0x168)]))console[_0x14f4e0(0x106)]('['+_0x1fa4d0[_0x14f4e0(0x19d)](_0x299fd1,0x1)+']\x20'+_0x5dd2d1[_0x299fd1]);else return _0x1fa4d0[_0x14f4e0(0x17b)](_0x400a19[_0x14f4e0(0x193)],_0xc6465f[0x0])&&(_0x4b1bf4[_0x14f4e0(0x193)]=_0x4ff91f[0x0],this[_0x14f4e0(0x1b2)]()),!![];}const _0x1ef133=await _0x1fa4d0[_0x14f4e0(0xd4)](inputConfirmation,_0x1fa4d0['QPLPS']),_0x187e08=_0x1fa4d0[_0x14f4e0(0x1d9)](Number,_0x1ef133);(_0x1fa4d0['CCJyS'](isNaN,_0x187e08)||_0x1fa4d0[_0x14f4e0(0xbd)](_0x187e08,0x0)||_0x1fa4d0[_0x14f4e0(0x20a)](_0x187e08,_0x2c0c8d))&&(_0x1fa4d0[_0x14f4e0(0x1cd)](_0x1fa4d0['TOkDP'],_0x1fa4d0['TOkDP'])?(console[_0x14f4e0(0x136)](_0x1fa4d0[_0x14f4e0(0x114)]),process[_0x14f4e0(0x159)](0x1)):(_0x4f709e[_0x14f4e0(0x136)](_0x1fa4d0[_0x14f4e0(0x114)]),_0x1c9d9c[_0x14f4e0(0x159)](0x1)));_0x1fa4d0[_0x14f4e0(0x203)](closeInput),logger[_0x14f4e0(0x1ff)](_0x14f4e0(0xf1)+_0x5dd2d1[_0x1fa4d0[_0x14f4e0(0x13c)](_0x187e08,0x1)]);if(_0x1fa4d0[_0x14f4e0(0x1f7)](global_registry['clusterRegion'],_0x5dd2d1[_0x1fa4d0['EBwHr'](_0x187e08,0x1)])){if(_0x1fa4d0[_0x14f4e0(0x1f7)](_0x1fa4d0[_0x14f4e0(0x172)],_0x1fa4d0[_0x14f4e0(0xb9)]))global_registry[_0x14f4e0(0x193)]=_0x5dd2d1[_0x1fa4d0[_0x14f4e0(0x13c)](_0x187e08,0x1)],this[_0x14f4e0(0x1b2)]();else{_0x369235[_0x14f4e0(0x1ff)](_0x1fa4d0[_0x14f4e0(0x192)]);return;}}return!![];}}}return![];}async[a3_0x49aabb(0x145)](){const _0x5b3dfc=a3_0x49aabb,_0x20b7ec=await this[_0x5b3dfc(0x122)][_0x5b3dfc(0xe5)]({'name':_0x5b3dfc(0x14c)+this[_0x5b3dfc(0x20d)]+_0x5b3dfc(0x107)+global_registry[_0x5b3dfc(0x193)]+_0x5b3dfc(0x1d2)+this[_0x5b3dfc(0x1df)]});return _0x20b7ec;}async['getKubeConfigData'](){const _0x2a2e85=a3_0x49aabb,_0x258baa={};_0x258baa[_0x2a2e85(0x109)]='gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false',_0x258baa[_0x2a2e85(0x1af)]=_0x2a2e85(0xd3),_0x258baa[_0x2a2e85(0xdf)]='gcpresources',_0x258baa['jIrfW']=_0x2a2e85(0x124);const _0x2b04e4=_0x258baa;cp[_0x2a2e85(0x1fb)](_0x2b04e4[_0x2a2e85(0x109)]),cp['exec'](_0x2a2e85(0xc1)+this[_0x2a2e85(0x180)]);const _0x3f55e3=await this[_0x2a2e85(0x145)](),_0x324149=_0x2a2e85(0xe0)+this[_0x2a2e85(0x20d)]+'_'+global_registry[_0x2a2e85(0x193)]+'_'+this[_0x2a2e85(0x1df)];let _0xd5276e=await fs['readFileAsync'](path[_0x2a2e85(0x1e5)](__dirname,'..',_0x2b04e4[_0x2a2e85(0x1af)],_0x2b04e4['iyGln'],_0x2b04e4[_0x2a2e85(0x1ba)]));return _0xd5276e=_0xd5276e[_0x2a2e85(0xf7)](),_0xd5276e=_0xd5276e[_0x2a2e85(0x1d5)](/<CLUSTER_NAME>/g,_0x324149),_0xd5276e=_0xd5276e[_0x2a2e85(0x1d5)](/<CLUSTER_URL>/g,'https://'+_0x3f55e3[0x0]['endpoint']),_0xd5276e=_0xd5276e[_0x2a2e85(0x1d5)](/<CERTIFICATE_DATA>/g,_0x3f55e3[0x0][_0x2a2e85(0x21f)]['clusterCaCertificate']),_0xd5276e;}async[a3_0x49aabb(0x154)](){const _0x799b97=a3_0x49aabb,_0x4ff511={};_0x4ff511[_0x799b97(0x1aa)]='https://www.googleapis.com/auth/cloud-platform',_0x4ff511[_0x799b97(0x16b)]=function(_0xd8cece,_0x3ecfbc){return _0xd8cece!==_0x3ecfbc;},_0x4ff511['xniRI']='gIOdW',_0x4ff511['aunZJ']='YFPGN',_0x4ff511[_0x799b97(0x14d)]=function(_0x599a32,_0x1ef33a){return _0x599a32===_0x1ef33a;},_0x4ff511[_0x799b97(0x176)]=_0x799b97(0x1e3),_0x4ff511[_0x799b97(0x1a6)]=_0x799b97(0x103);const _0x49b2cf=_0x4ff511,_0x374243={};_0x374243['scopes']=[_0x49b2cf['JKoTS']],_0x374243[_0x799b97(0x1a9)]=this[_0x799b97(0x180)];const _0xed693b=await google[_0x799b97(0xe8)][_0x799b97(0x1b3)](_0x374243),_0x352650=await this[_0x799b97(0xd7)]['projects'][_0x799b97(0x1dd)][_0x799b97(0x194)]({'name':_0x799b97(0x14c)+this[_0x799b97(0x20d)],'auth':_0xed693b});if(_0x352650?.[_0x799b97(0xb1)]?.[_0x799b97(0x1b5)]){if(_0x49b2cf[_0x799b97(0x16b)](_0x49b2cf[_0x799b97(0x142)],_0x49b2cf[_0x799b97(0x142)]))this[_0x799b97(0x21a)](this[_0x799b97(0xc0)]);else for(const _0x866cc5 of _0x352650[_0x799b97(0xb1)][_0x799b97(0x1b5)]){if(_0x49b2cf['ENJsm'](_0x49b2cf[_0x799b97(0x191)],_0x49b2cf[_0x799b97(0x191)]))return![];else{if(_0x49b2cf[_0x799b97(0x14d)](_0x866cc5?.[_0x799b97(0x12d)],_0x799b97(0x14c)+this['projectId']+_0x799b97(0x186)+this['serviceAccountName']+'@'+this[_0x799b97(0x20d)]+_0x799b97(0x151))){if(_0x49b2cf['mosBD'](_0x49b2cf[_0x799b97(0x176)],_0x49b2cf[_0x799b97(0x1a6)]))_0x31ae08['vpcInfo'][_0x799b97(0x21b)](_0x23f836);else return!![];}}}}return![];}async[a3_0x49aabb(0xb3)](){const _0x82f7cb=a3_0x49aabb,_0x1a61c7={};_0x1a61c7[_0x82f7cb(0x179)]='default',_0x1a61c7[_0x82f7cb(0x1be)]=function(_0xaa1a41,_0x13d28f){return _0xaa1a41!==_0x13d28f;},_0x1a61c7[_0x82f7cb(0xb6)]=_0x82f7cb(0x1b7),_0x1a61c7['HrrEj']=_0x82f7cb(0x12c),_0x1a61c7['PbdyK']=_0x82f7cb(0xbb),_0x1a61c7[_0x82f7cb(0x144)]=_0x82f7cb(0x13f),_0x1a61c7['dsDvg']=_0x82f7cb(0x21c),_0x1a61c7[_0x82f7cb(0x1ad)]=_0x82f7cb(0x182),_0x1a61c7['wIVle']='storage.buckets.createTagBinding',_0x1a61c7[_0x82f7cb(0xc7)]=_0x82f7cb(0x19f),_0x1a61c7[_0x82f7cb(0xeb)]=_0x82f7cb(0x19a),_0x1a61c7['HLRZh']='storage.buckets.get',_0x1a61c7[_0x82f7cb(0x13b)]=_0x82f7cb(0x13a),_0x1a61c7[_0x82f7cb(0x199)]=_0x82f7cb(0x1e2),_0x1a61c7[_0x82f7cb(0xcd)]=_0x82f7cb(0x175),_0x1a61c7['iqvHa']=_0x82f7cb(0x13e),_0x1a61c7['QgYmF']='storage.buckets.listTagBindings',_0x1a61c7[_0x82f7cb(0x10c)]=_0x82f7cb(0x1f8),_0x1a61c7['tGdQL']=_0x82f7cb(0x161),_0x1a61c7[_0x82f7cb(0x17d)]=_0x82f7cb(0x208),_0x1a61c7[_0x82f7cb(0x104)]=_0x82f7cb(0x138),_0x1a61c7['WYGET']='storage.multipartUploads.list',_0x1a61c7[_0x82f7cb(0x19b)]=_0x82f7cb(0xf3),_0x1a61c7[_0x82f7cb(0x1fd)]=_0x82f7cb(0x1ed),_0x1a61c7['arIDc']=_0x82f7cb(0xbe),_0x1a61c7[_0x82f7cb(0x10d)]=_0x82f7cb(0x1d3),_0x1a61c7[_0x82f7cb(0x1a4)]=_0x82f7cb(0x126),_0x1a61c7[_0x82f7cb(0x1ce)]='storage.objects.list',_0x1a61c7[_0x82f7cb(0xdc)]=_0x82f7cb(0x12e),_0x1a61c7['ayagk']=_0x82f7cb(0x221),_0x1a61c7['AIjMR']=_0x82f7cb(0x173),_0x1a61c7[_0x82f7cb(0x1b9)]=_0x82f7cb(0x1c0);const _0x496cf0=_0x1a61c7,_0x2aa847=await this[_0x82f7cb(0x154)]();if(_0x2aa847){if(_0x496cf0[_0x82f7cb(0x1be)](_0x496cf0[_0x82f7cb(0xb6)],_0x496cf0['SyGqZ']))_0x4fdc97=[_0x496cf0['KCTzD']];else{logger['info'](_0x496cf0[_0x82f7cb(0xc2)]);return;}}logger[_0x82f7cb(0x1ff)](_0x496cf0[_0x82f7cb(0x1bc)]);const _0x1c14d1={};_0x1c14d1[_0x82f7cb(0x189)]=[_0x496cf0['UwTpa']],_0x1c14d1[_0x82f7cb(0x1a9)]=this[_0x82f7cb(0x180)];const _0x1d3831=await google['auth'][_0x82f7cb(0x1b3)](_0x1c14d1),_0x4afb5d={};_0x4afb5d[_0x82f7cb(0x19c)]=[_0x496cf0[_0x82f7cb(0xbf)],_0x496cf0['ltTQs'],_0x496cf0[_0x82f7cb(0xb4)],_0x496cf0[_0x82f7cb(0xc7)],_0x496cf0[_0x82f7cb(0xeb)],_0x496cf0[_0x82f7cb(0x1b4)],_0x496cf0['zmMav'],_0x496cf0['wKrMU'],_0x496cf0['kwjSO'],_0x496cf0['iqvHa'],_0x496cf0['QgYmF'],_0x496cf0[_0x82f7cb(0x10c)],_0x496cf0[_0x82f7cb(0xfe)],_0x496cf0[_0x82f7cb(0x17d)],_0x496cf0['ZhOqT'],_0x496cf0[_0x82f7cb(0xf9)],_0x496cf0[_0x82f7cb(0x19b)],_0x496cf0[_0x82f7cb(0x1fd)],_0x496cf0[_0x82f7cb(0x209)],_0x496cf0['dhhIG'],_0x496cf0['aJCTO'],_0x496cf0[_0x82f7cb(0x1ce)],_0x496cf0[_0x82f7cb(0xdc)],_0x496cf0[_0x82f7cb(0x1bf)]],_0x4afb5d[_0x82f7cb(0xd1)]=_0x496cf0['AIjMR'],await this['iamClient'][_0x82f7cb(0x1e8)][_0x82f7cb(0x20b)]['create']({'parent':_0x82f7cb(0x14c)+this['projectId'],'requestBody':{'role':_0x4afb5d,'roleId':this['customRoleName']},'auth':_0x1d3831});const _0x832fab={};_0x832fab[_0x82f7cb(0x12d)]=_0x82f7cb(0x14c)+this[_0x82f7cb(0x20d)],_0x832fab[_0x82f7cb(0x130)]={},_0x832fab[_0x82f7cb(0xe8)]=_0x1d3831,_0x832fab[_0x82f7cb(0x130)][_0x82f7cb(0x1a0)]=this[_0x82f7cb(0x11b)];const _0x402376=_0x832fab;await this[_0x82f7cb(0xd7)][_0x82f7cb(0x224)]['serviceAccounts'][_0x82f7cb(0x18b)](_0x402376);let _0x49342e=await this[_0x82f7cb(0x12b)][_0x82f7cb(0xde)]({'resource':'projects/'+this['projectId']});_0x49342e=_0x49342e[0x0]['bindings'];const _0x281adf={};_0x281adf[_0x82f7cb(0xb0)]='projects/'+this[_0x82f7cb(0x20d)]+_0x82f7cb(0x1ab)+this[_0x82f7cb(0x1f5)],_0x281adf['members']=[_0x82f7cb(0x11c)+this[_0x82f7cb(0x11b)]+'@'+this[_0x82f7cb(0x20d)]+_0x82f7cb(0x151)],_0x49342e[_0x82f7cb(0x21b)](_0x281adf);const _0x5997bc={};_0x5997bc['bindings']=_0x49342e,await this[_0x82f7cb(0x12b)][_0x82f7cb(0x101)]({'resource':_0x82f7cb(0x14c)+this[_0x82f7cb(0x20d)],'policy':_0x5997bc}),logger[_0x82f7cb(0x1ff)](_0x496cf0['LmzSz']);}async[a3_0x49aabb(0x141)](_0x1de5c3=a3_0x49aabb(0x202),_0x235acf=['default']){const _0x43bc34=a3_0x49aabb,_0x41f408={};_0x41f408[_0x43bc34(0x18d)]='GKE\x20Cluster\x20deletion\x20failed',_0x41f408[_0x43bc34(0x117)]=function(_0x32e727,_0x178372){return _0x32e727-_0x178372;},_0x41f408['VKidI']=_0x43bc34(0x132),_0x41f408['nIjeo']=_0x43bc34(0x129),_0x41f408['ljSwZ']=function(_0x201c67,_0x3752f1){return _0x201c67===_0x3752f1;},_0x41f408[_0x43bc34(0x1fe)]=_0x43bc34(0x17a),_0x41f408[_0x43bc34(0x1cf)]=_0x43bc34(0x11d),_0x41f408['MxeSr']='default',_0x41f408['DWBio']=function(_0x172878,_0x134e14){return _0x172878===_0x134e14;},_0x41f408[_0x43bc34(0x1bd)]=function(_0x18ff0d,_0x1c5221){return _0x18ff0d!==_0x1c5221;},_0x41f408['nCPLu']=_0x43bc34(0x1ca);const _0x46aaac=_0x41f408,_0x4612d0={};_0x4612d0[_0x43bc34(0x1c4)]=WS_EVENTS[_0x43bc34(0x1d1)],_0x4612d0[_0x43bc34(0xc6)]=_0x46aaac[_0x43bc34(0x1a1)],this[_0x43bc34(0x1c7)][_0x43bc34(0x134)](this[_0x43bc34(0xc0)],_0x4612d0),logger[_0x43bc34(0x1ff)](_0x46aaac[_0x43bc34(0xee)]);if(!_0x1de5c3){if(_0x46aaac[_0x43bc34(0x19e)](_0x46aaac[_0x43bc34(0x1fe)],_0x46aaac[_0x43bc34(0x1cf)])){_0x2f30e1[_0x43bc34(0x1ff)](_0x46aaac[_0x43bc34(0x18d)]);throw _0x114cf6;}else _0x1de5c3=_0x46aaac[_0x43bc34(0x205)];}return(!_0x235acf||_0x46aaac[_0x43bc34(0x166)](_0x235acf[_0x43bc34(0x18a)],0x0))&&(_0x46aaac['EdwXr'](_0x46aaac['nCPLu'],_0x46aaac[_0x43bc34(0x112)])?(_0x11cc1e[_0x43bc34(0x193)]=_0x1deb88[_0x46aaac[_0x43bc34(0x117)](_0xc0065d,0x1)],this['updateClusterRegion']()):_0x235acf=[_0x46aaac[_0x43bc34(0x205)]]),await this['setupServiceAccount'](),await this[_0x43bc34(0x1b1)](_0x1de5c3,_0x235acf),await this[_0x43bc34(0x1f3)](),!![];}async[a3_0x49aabb(0x1b1)](_0x22f520=a3_0x49aabb(0x202),_0x47f098=['default']){const _0x4fe6e8=a3_0x49aabb,_0x5e5198={};_0x5e5198[_0x4fe6e8(0x16c)]=function(_0x521852,_0x3f9fa4){return _0x521852+_0x3f9fa4;},_0x5e5198[_0x4fe6e8(0xed)]=function(_0x2d51a5,_0xf86836){return _0x2d51a5===_0xf86836;},_0x5e5198[_0x4fe6e8(0xe2)]='browserstack',_0x5e5198[_0x4fe6e8(0x1f9)]=function(_0xfce052,_0x52acef){return _0xfce052!==_0x52acef;},_0x5e5198['ZfYiD']=_0x4fe6e8(0x1e6),_0x5e5198['dkrMb']='sDdiA',_0x5e5198[_0x4fe6e8(0x113)]=_0x4fe6e8(0x16e),_0x5e5198['ruvWS']=_0x4fe6e8(0xd3),_0x5e5198[_0x4fe6e8(0x178)]=_0x4fe6e8(0xb7),_0x5e5198[_0x4fe6e8(0x171)]='gkecluster.json',_0x5e5198[_0x4fe6e8(0x1eb)]=_0x4fe6e8(0x1f6),_0x5e5198[_0x4fe6e8(0x13d)]=_0x4fe6e8(0x153),_0x5e5198[_0x4fe6e8(0xd5)]=function(_0x374ef4,_0x1d01a8){return _0x374ef4*_0x1d01a8;},_0x5e5198[_0x4fe6e8(0x18f)]=function(_0x49c48c,_0x3b2826){return _0x49c48c*_0x3b2826;},_0x5e5198[_0x4fe6e8(0x21e)]=_0x4fe6e8(0xc9),_0x5e5198[_0x4fe6e8(0xfc)]=_0x4fe6e8(0x18e),_0x5e5198['mMJUH']='PguNT',_0x5e5198[_0x4fe6e8(0xf5)]='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x5e5198['XIoXG']=function(_0x3f733f,_0x492b1c){return _0x3f733f!==_0x492b1c;},_0x5e5198[_0x4fe6e8(0x100)]=_0x4fe6e8(0x147),_0x5e5198[_0x4fe6e8(0x201)]=_0x4fe6e8(0x164),_0x5e5198['QOYjp']=_0x4fe6e8(0x1c9);const _0x33ac93=_0x5e5198;try{if(_0x33ac93[_0x4fe6e8(0x1f9)](_0x33ac93[_0x4fe6e8(0x155)],_0x33ac93[_0x4fe6e8(0x14b)])){logger[_0x4fe6e8(0x1ff)](_0x33ac93['urdCu']);let _0x415936=await fs[_0x4fe6e8(0x1ee)](path[_0x4fe6e8(0x1e5)](__dirname,'..',_0x33ac93[_0x4fe6e8(0x217)],_0x33ac93['WAenX'],_0x33ac93[_0x4fe6e8(0x171)]),_0x33ac93['hPCSi']);_0x415936=JSON['parse'](_0x415936);let _0x44a180=await fs[_0x4fe6e8(0x1ee)](path['join'](__dirname,'..',_0x33ac93[_0x4fe6e8(0x217)],_0x33ac93[_0x4fe6e8(0x178)],_0x33ac93['UBnJn']),_0x33ac93['hPCSi']);_0x44a180=JSON[_0x4fe6e8(0xb8)](_0x44a180),_0x415936[_0x4fe6e8(0x12d)]=this[_0x4fe6e8(0x1df)],_0x415936[_0x4fe6e8(0x127)][0x0][_0x4fe6e8(0x187)]['machineType']=global_registry[_0x4fe6e8(0xea)],_0x415936[_0x4fe6e8(0x127)][0x1][_0x4fe6e8(0x187)][_0x4fe6e8(0x146)]=global_registry[_0x4fe6e8(0xea)],_0x415936['nodePools'][0x0][_0x4fe6e8(0x187)][_0x4fe6e8(0x200)]=this[_0x4fe6e8(0x11b)]+'@'+this[_0x4fe6e8(0x20d)]+_0x4fe6e8(0x151),_0x415936[_0x4fe6e8(0x127)][0x1]['config'][_0x4fe6e8(0x200)]=this[_0x4fe6e8(0x11b)]+'@'+this['projectId']+'.iam.gserviceaccount.com',_0x415936[_0x4fe6e8(0x127)][0x0][_0x4fe6e8(0xca)][_0x4fe6e8(0xaf)]=global_registry[_0x4fe6e8(0x20f)],_0x415936['nodePools'][0x1][_0x4fe6e8(0xca)][_0x4fe6e8(0xaf)]=0x0,_0x415936[_0x4fe6e8(0x127)][0x0][_0x4fe6e8(0xca)][_0x4fe6e8(0xc3)]=global_registry['maxNodes'],_0x415936['nodePools'][0x1][_0x4fe6e8(0xca)][_0x4fe6e8(0xc3)]=global_registry[_0x4fe6e8(0x1f1)],_0x415936[_0x4fe6e8(0x1c3)]=global_registry[_0x4fe6e8(0x193)],_0x415936[_0x4fe6e8(0x185)]=[_0x44a180[global_registry[_0x4fe6e8(0x193)]][0x0]],_0x415936[_0x4fe6e8(0xe9)]=_0x4fe6e8(0x14c)+this[_0x4fe6e8(0x20d)]+'/global/networks/'+_0x22f520,_0x415936[_0x4fe6e8(0x12f)]=_0x4fe6e8(0x14c)+this['projectId']+_0x4fe6e8(0x1bb)+global_registry[_0x4fe6e8(0x193)]+_0x4fe6e8(0x12a)+_0x47f098[0x0];const _0x1fdf4e=await this['containerClient'][_0x4fe6e8(0x1b1)]({'cluster':_0x415936,'parent':_0x4fe6e8(0x14c)+this['projectId']+_0x4fe6e8(0x107)+global_registry[_0x4fe6e8(0x193)]});await this[_0x4fe6e8(0x1c7)][_0x4fe6e8(0x195)](_0x33ac93[_0x4fe6e8(0xd5)](_0x33ac93['AtDdP'](0x7,0x3c),0x3e8));}else _0x56dcea=_0xe88de0[_0x4fe6e8(0x1cb)](_0x342ca6[_0x1d1193[_0x4fe6e8(0x193)]]);}catch(_0x4672e8){if(_0x33ac93[_0x4fe6e8(0xed)](_0x33ac93[_0x4fe6e8(0x21e)],_0x33ac93['OkqxA']))_0x47a6ae[_0x4fe6e8(0x106)]('['+_0x33ac93[_0x4fe6e8(0x16c)](_0x25e44f,0x1)+']\x20'+_0x2a8c26[_0x312419]);else{const _0x42ae54=await this['isClusterPresent']();if(_0x42ae54){if(_0x33ac93['aFHnl'](_0x33ac93[_0x4fe6e8(0x14a)],_0x33ac93[_0x4fe6e8(0x14a)]))logger['info'](_0x33ac93['YXnoS'],_0x4672e8[_0x4fe6e8(0x1dc)]),await this[_0x4fe6e8(0x123)]();else{const _0x505000=_0x5d3d28[0x0]?.[_0x4fe6e8(0x133)]?.['managedby'];return _0x505000&&_0x33ac93[_0x4fe6e8(0xed)](_0x505000[_0x4fe6e8(0x1ec)](),_0x33ac93[_0x4fe6e8(0xe2)]);}}else{if(_0x33ac93[_0x4fe6e8(0x1c2)](_0x33ac93[_0x4fe6e8(0x100)],_0x33ac93[_0x4fe6e8(0x201)]))logger[_0x4fe6e8(0x1ff)](_0x33ac93[_0x4fe6e8(0x216)]);else return!![];}throw _0x4672e8;}}}async[a3_0x49aabb(0x1f3)](){const _0x3c2df8=a3_0x49aabb;cp[_0x3c2df8(0x1fb)](_0x3c2df8(0x1b0)+this[_0x3c2df8(0x1df)]+_0x3c2df8(0x204)+global_registry['clusterRegion']+_0x3c2df8(0x1cc));}async[a3_0x49aabb(0x123)](_0x3f44c0,_0x4c6d55){const _0x1280d3=a3_0x49aabb,_0x470cb2={'yEPLs':function(_0x4f215e,_0x3a43f1){return _0x4f215e!==_0x3a43f1;},'DMGUb':_0x1280d3(0xec),'TMwWU':'byTxJ','OHNHm':function(_0x453f52,_0xe4fd6){return _0x453f52(_0xe4fd6);},'KyVHc':function(_0x452f15,_0x296a62){return _0x452f15===_0x296a62;},'GtGRi':'RUNNING','HvHIW':function(_0x18d6be,_0x8819f8){return _0x18d6be===_0x8819f8;},'syiqJ':'DONE','wGtgD':'PKcdB','Igwyv':_0x1280d3(0x184),'CHiMk':_0x1280d3(0x10a),'FjKDF':function(_0x4f8c82,_0x5958ae){return _0x4f8c82===_0x5958ae;},'qsbKm':_0x1280d3(0x165),'yFBeZ':_0x1280d3(0x108)};try{if(_0x470cb2['yEPLs'](_0x470cb2['DMGUb'],_0x470cb2[_0x1280d3(0x1a2)])){await _0x470cb2['OHNHm'](deleteAgent,_0x3f44c0),await _0x470cb2[_0x1280d3(0x140)](deleteRoutingDeps,_0x3f44c0),logger[_0x1280d3(0x1ff)](_0x1280d3(0x223)+this['clusterName']);const _0x5a3697=await this[_0x1280d3(0x122)][_0x1280d3(0x123)]({'name':'projects/'+this[_0x1280d3(0x20d)]+_0x1280d3(0x107)+global_registry[_0x1280d3(0x193)]+_0x1280d3(0x1d2)+this[_0x1280d3(0x1df)]});if(_0x470cb2['KyVHc'](_0x5a3697[0x0]?.['status'],_0x470cb2['GtGRi'])||_0x470cb2[_0x1280d3(0x220)](_0x5a3697[0x0]?.[_0x1280d3(0x15f)],_0x470cb2[_0x1280d3(0x196)]))return _0x470cb2[_0x1280d3(0x207)](_0x470cb2[_0x1280d3(0x21d)],_0x470cb2['Igwyv'])?!![]:[!![],_0x54b3b1];logger[_0x1280d3(0x1ff)](_0x470cb2[_0x1280d3(0x111)]);}else return _0x372377[_0x1280d3(0x136)]('Cannot\x20find\x20subnets\x20'+_0x2fda01+_0x1280d3(0xda)+_0x1a7c53),[![],[]];}catch(_0x461e38){if(_0x470cb2[_0x1280d3(0x1ac)](_0x470cb2[_0x1280d3(0x170)],_0x470cb2[_0x1280d3(0x170)])){logger[_0x1280d3(0x1ff)](_0x470cb2[_0x1280d3(0xb5)]);throw _0x461e38;}else _0x111d48['push'](_0x1c267c);}}async[a3_0x49aabb(0xf0)](_0x4d67d8){const _0x310db8=a3_0x49aabb,_0x302f15={};_0x302f15[_0x310db8(0x1ae)]=function(_0x3ec5aa,_0x9ba80d){return _0x3ec5aa===_0x9ba80d;},_0x302f15[_0x310db8(0xdd)]=function(_0x2b3505,_0xcc6ea3){return _0x2b3505===_0xcc6ea3;},_0x302f15['kJGCD']=function(_0x3793de,_0x4e1b53){return _0x3793de!==_0x4e1b53;},_0x302f15[_0x310db8(0xc5)]='MakJW',_0x302f15[_0x310db8(0x148)]=_0x310db8(0x15b),_0x302f15[_0x310db8(0x120)]=function(_0x5bb305,_0x173622){return _0x5bb305>_0x173622;},_0x302f15['AvSvm']=function(_0x4aaea6,_0x59d800){return _0x4aaea6===_0x59d800;},_0x302f15['njMnk']=_0x310db8(0x190),_0x302f15['KrgfA']=_0x310db8(0x1c6);const _0x48a00f=_0x302f15;try{if(_0x48a00f[_0x310db8(0x181)](_0x48a00f[_0x310db8(0xc5)],_0x48a00f[_0x310db8(0x148)])){const _0x200684=await this['networkClient']['get']({'project':this[_0x310db8(0x20d)],'network':_0x4d67d8});if(_0x48a00f[_0x310db8(0x120)](_0x200684[_0x310db8(0x18a)],0x0)&&_0x48a00f['AvSvm'](_0x200684[0x0][_0x310db8(0x12d)],_0x4d67d8)){if(_0x48a00f['kJGCD'](_0x48a00f[_0x310db8(0x197)],_0x48a00f[_0x310db8(0x156)]))return!![];else{const _0x169db5=_0x310db8(0xdb)+this[_0x310db8(0x20d)]+_0x310db8(0x1bb)+_0x57e2f9[_0x310db8(0x193)]+'/subnetworks/'+_0x4bf094[0x0];if(_0x48a00f[_0x310db8(0x1ae)](_0x169db5,_0x52f650))return[!![],_0x870387];}}}else _0x48a00f[_0x310db8(0xdd)](_0x5446ba['name'],this[_0x310db8(0x1df)])&&_0x353f72[_0x310db8(0x21b)](_0xebf99f);}catch(_0x8b13df){return![];}return![];}async['isSubnetsValid'](_0x15593c,_0x267ac2){const _0x180c57=a3_0x49aabb,_0x915998={};_0x915998[_0x180c57(0xd6)]=function(_0xd4c49c,_0x196467){return _0xd4c49c===_0x196467;};const _0x18c224=_0x915998;try{const _0x15d824=await this[_0x180c57(0x15c)][_0x180c57(0xb2)]({'project':this[_0x180c57(0x20d)],'network':_0x267ac2});for(const _0x5e5143 of _0x15d824[0x0][_0x180c57(0x218)]){const _0x3beae5='https://www.googleapis.com/compute/v1/projects/'+this['projectId']+_0x180c57(0x1bb)+global_registry[_0x180c57(0x193)]+_0x180c57(0x12a)+_0x15593c[0x0];if(_0x18c224[_0x180c57(0xd6)](_0x3beae5,_0x5e5143))return[!![],_0x15593c];}}catch(_0x2c2561){return logger[_0x180c57(0x136)](_0x180c57(0x1de)+_0x15593c+_0x180c57(0xda)+_0x2c2561),[![],[]];}return[![],[]];}async[a3_0x49aabb(0x21a)](){const _0x1d5cb8=a3_0x49aabb,_0x170c9e=await this['networkClient']['list']({'project':this[_0x1d5cb8(0x20d)]}),_0x5cbf45={};_0x5cbf45[_0x1d5cb8(0x1d7)]=global_registry[_0x1d5cb8(0x20c)],_0x5cbf45[_0x1d5cb8(0x128)]=global_registry[_0x1d5cb8(0x158)],_0x5cbf45['cloudProvider']=GCP,_0x5cbf45[_0x1d5cb8(0x17f)]=[];const _0x5894b7=_0x5cbf45;for(const _0x3441a4 of _0x170c9e){_0x5894b7[_0x1d5cb8(0x17f)][_0x1d5cb8(0x21b)](_0x3441a4);}const _0x2b963b={};_0x2b963b[_0x1d5cb8(0x1c4)]=WS_EVENTS[_0x1d5cb8(0x1d8)],_0x2b963b[_0x1d5cb8(0xc6)]=_0x5894b7,this[_0x1d5cb8(0x1c7)][_0x1d5cb8(0x134)](this[_0x1d5cb8(0xc0)],_0x2b963b);}async['updateClusterRegion'](){const _0x5f49e6=a3_0x49aabb,_0x18c84e={'fcUit':function(_0x36eeeb,_0x1136da,_0x55553d){return _0x36eeeb(_0x1136da,_0x55553d);},'gYZKO':_0x5f49e6(0x1e1),'Amcfx':_0x5f49e6(0x137),'xMjME':function(_0x34dd8b,_0x2bdcf3,_0x531990){return _0x34dd8b(_0x2bdcf3,_0x531990);}},_0x485c5b=_0x5f49e6(0x210)+AG_API_URL+_0x5f49e6(0x157),_0x5d8e72={};_0x5d8e72[_0x5f49e6(0xfd)]=global_registry['gridProfileId'];const _0xac762a={};_0xac762a[_0x5f49e6(0x17c)]=global_registry[_0x5f49e6(0x193)];const _0x371144={'searchParams':_0x5d8e72,'json':_0xac762a,'headers':_0x18c84e[_0x5f49e6(0x215)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5f49e6(0x158)]),'method':_0x18c84e[_0x5f49e6(0x1a5)],'responseType':_0x18c84e[_0x5f49e6(0x16a)],'throwHttpErrors':![]},_0x1ac35a=await _0x18c84e[_0x5f49e6(0xe3)](got,_0x485c5b,_0x371144);}}const a3_0x1d9eb3={};a3_0x1d9eb3[a3_0x49aabb(0x1fa)]=GoogleCloudProvider,module[a3_0x49aabb(0x206)]=a3_0x1d9eb3;
@@ -1 +1 @@
1
- function a4_0x3a28(){const _0x2164cc=['init','../utils/instrumentationUtils','Current\x20Node.js\x20version\x20','Unknown\x20cloud\x20provider\x20found\x20-\x20','../config/constants','10PMNFcC','ObwCF','10UiBGFL','grid-spawning-failed','./GoogleCloudProvider','stack','mxWvC','getCloudProviderObject','exit','312618kuyUCO','1234528FRJIGY','4732740gUDNbM','5nIYJDN','440380JNuCSI','error','message','38268AblQdp','node','../utils/utilityMethods','IQMgh','create-grid-called','../config/logger','43347VXXwup','1733879wvRDal','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','ERROR','versions'];a4_0x3a28=function(){return _0x2164cc;};return a4_0x3a28();}const a4_0x5426af=a4_0x4c7a;function a4_0x4c7a(_0x214990,_0x5f0114){const _0x3a28ce=a4_0x3a28();return a4_0x4c7a=function(_0x4c7a27,_0x78dd6d){_0x4c7a27=_0x4c7a27-0x192;let _0x4a8455=_0x3a28ce[_0x4c7a27];return _0x4a8455;},a4_0x4c7a(_0x214990,_0x5f0114);}(function(_0x495ae0,_0x56ae07){const _0x70b906=a4_0x4c7a,_0x47f9e4=_0x495ae0();while(!![]){try{const _0x3d8dad=parseInt(_0x70b906(0x1af))/0x1*(parseInt(_0x70b906(0x199))/0x2)+-parseInt(_0x70b906(0x1a9))/0x3+parseInt(_0x70b906(0x1a6))/0x4+parseInt(_0x70b906(0x1a5))/0x5*(-parseInt(_0x70b906(0x1a2))/0x6)+parseInt(_0x70b906(0x1b0))/0x7+parseInt(_0x70b906(0x1a3))/0x8+-parseInt(_0x70b906(0x1a4))/0x9*(parseInt(_0x70b906(0x19b))/0xa);if(_0x3d8dad===_0x56ae07)break;else _0x47f9e4['push'](_0x47f9e4['shift']());}catch(_0xb0f8a7){_0x47f9e4['push'](_0x47f9e4['shift']());}}}(a4_0x3a28,0x21b8c));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x5426af(0x19d)),{installAzurePackages}=require(a4_0x5426af(0x1ab)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x5426af(0x198)),{sendInstrumentationEvent}=require(a4_0x5426af(0x195)),{logger}=require(a4_0x5426af(0x1ae));exports[a4_0x5426af(0x1a0)]=async(_0x4e36c1,_0x3b47e8,_0x410aba,_0x380f73,_0x11b781,_0x2228da)=>{const _0x163a99=a4_0x5426af,_0xe0d8e6={'ObwCF':function(_0x2d5468){return _0x2d5468();},'Ppdnk':function(_0x33b4c4,_0x75a6b3){return _0x33b4c4(_0x75a6b3);},'IQMgh':'./Azure','lMiwh':function(_0xf78507,_0x53b837,_0x3cfbfa,_0x4f0c42,_0x291c98,_0x17c280,_0x5c7d39){return _0xf78507(_0x53b837,_0x3cfbfa,_0x4f0c42,_0x291c98,_0x17c280,_0x5c7d39);},'gIilQ':_0x163a99(0x1ad),'mxWvC':_0x163a99(0x19c)};switch(_0x4e36c1){case AWS:{const _0x1fbf3b=new AWSCloudProvider(_0x3b47e8,_0x410aba,_0x380f73,_0x11b781);return await _0x1fbf3b[_0x163a99(0x194)]();}case GCP:{const _0x2d19fd=new GoogleCloudProvider(_0x3b47e8,_0x410aba,_0x380f73,_0x11b781);return await _0x2d19fd[_0x163a99(0x194)]();}case AZURE:{try{await _0xe0d8e6[_0x163a99(0x19a)](installAzurePackages);const {AzureCloudProvider:_0x7f5085}=_0xe0d8e6['Ppdnk'](require,_0xe0d8e6[_0x163a99(0x1ac)]),_0x58f618=new _0x7f5085(_0x3b47e8,_0x410aba,_0x380f73,_0x11b781);return await _0x58f618[_0x163a99(0x194)]();}catch(_0x2627ed){const _0x4c4759=_0x163a99(0x196)+process[_0x163a99(0x193)][_0x163a99(0x1aa)]+_0x163a99(0x1b1)+_0x2627ed[_0x163a99(0x1a8)]+',\x20stacktrace:\x20'+_0x2627ed[_0x163a99(0x19e)];logger[_0x163a99(0x1a7)](_0x4c4759);const _0x916000={};_0x916000[_0x163a99(0x1a7)]=_0x4c4759,await _0xe0d8e6['lMiwh'](sendInstrumentationEvent,_0x2228da,_0xe0d8e6['gIilQ'],messageTypes[_0x163a99(0x192)],_0xe0d8e6[_0x163a99(0x19f)],_0x916000,_0x2228da),process[_0x163a99(0x1a1)](0x1);}}default:logger[_0x163a99(0x1a7)](_0x163a99(0x197)+_0x4e36c1),process[_0x163a99(0x1a1)](0x1);}};
1
+ function a4_0x7303(){const _0x51b501=['create-grid-called','../utils/instrumentationUtils','UzQOI','getCloudProviderObject','LRqKf','./Azure','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','qPmNe','error','325530UHJzBL','../config/logger','332934IfbCnG','versions','8386DyLUza','16SNTPQp','message',',\x20stacktrace:\x20','223745djwdQF','Unknown\x20cloud\x20provider\x20found\x20-\x20','exit','./AWS','701870DBnSav','init','aKghg','618NXDwQP','162fOLNmE','54856wXxLoK','1201vDzbHc'];a4_0x7303=function(){return _0x51b501;};return a4_0x7303();}function a4_0x4d90(_0x2bec4a,_0x127e8d){const _0x7303f7=a4_0x7303();return a4_0x4d90=function(_0x4d90ed,_0x17a8b3){_0x4d90ed=_0x4d90ed-0x127;let _0x560cb4=_0x7303f7[_0x4d90ed];return _0x560cb4;},a4_0x4d90(_0x2bec4a,_0x127e8d);}const a4_0xe62655=a4_0x4d90;(function(_0x528ff3,_0x1c75b6){const _0x98c664=a4_0x4d90,_0x28e21a=_0x528ff3();while(!![]){try{const _0x49d8df=parseInt(_0x98c664(0x140))/0x1*(parseInt(_0x98c664(0x13d))/0x2)+parseInt(_0x98c664(0x130))/0x3+parseInt(_0x98c664(0x13f))/0x4+-parseInt(_0x98c664(0x136))/0x5+-parseInt(_0x98c664(0x13e))/0x6*(parseInt(_0x98c664(0x132))/0x7)+-parseInt(_0x98c664(0x133))/0x8*(parseInt(_0x98c664(0x12e))/0x9)+parseInt(_0x98c664(0x13a))/0xa;if(_0x49d8df===_0x1c75b6)break;else _0x28e21a['push'](_0x28e21a['shift']());}catch(_0xf84d33){_0x28e21a['push'](_0x28e21a['shift']());}}}(a4_0x7303,0x65b29));const {AWSCloudProvider}=require(a4_0xe62655(0x139)),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{installAzurePackages}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0xe62655(0x142)),{logger}=require(a4_0xe62655(0x12f));exports[a4_0xe62655(0x128)]=async(_0x15ba5c,_0x40568d,_0x29e05b,_0x207296,_0x500ab8,_0x7e105b)=>{const _0x4de91c=a4_0xe62655,_0x545bc={'qPmNe':function(_0x1ab594){return _0x1ab594();},'LRqKf':function(_0x59cffe,_0x59edd0){return _0x59cffe(_0x59edd0);},'esmhf':_0x4de91c(0x12a),'aKghg':function(_0x2ee352,_0x3bb1af,_0x4dcad7,_0x5067bb,_0x4ea3fb,_0x36cc75,_0x3911f5){return _0x2ee352(_0x3bb1af,_0x4dcad7,_0x5067bb,_0x4ea3fb,_0x36cc75,_0x3911f5);},'UzQOI':_0x4de91c(0x141),'JjToI':'grid-spawning-failed'};switch(_0x15ba5c){case AWS:{const _0x5edbcb=new AWSCloudProvider(_0x40568d,_0x29e05b,_0x207296,_0x500ab8);return await _0x5edbcb['init']();}case GCP:{const _0x4ef897=new GoogleCloudProvider(_0x40568d,_0x29e05b,_0x207296,_0x500ab8);return await _0x4ef897[_0x4de91c(0x13b)]();}case AZURE:{try{await _0x545bc[_0x4de91c(0x12c)](installAzurePackages);const {AzureCloudProvider:_0x1d99da}=_0x545bc[_0x4de91c(0x129)](require,_0x545bc['esmhf']),_0x13c4d3=new _0x1d99da(_0x40568d,_0x29e05b,_0x207296,_0x500ab8);return await _0x13c4d3[_0x4de91c(0x13b)]();}catch(_0x32b3eb){const _0x310a6e='Current\x20Node.js\x20version\x20'+process[_0x4de91c(0x131)]['node']+_0x4de91c(0x12b)+_0x32b3eb[_0x4de91c(0x134)]+_0x4de91c(0x135)+_0x32b3eb['stack'];logger['error'](_0x310a6e);const _0x3b41ec={};_0x3b41ec[_0x4de91c(0x12d)]=_0x310a6e,await _0x545bc[_0x4de91c(0x13c)](sendInstrumentationEvent,_0x7e105b,_0x545bc[_0x4de91c(0x127)],messageTypes['ERROR'],_0x545bc['JjToI'],_0x3b41ec,_0x7e105b),process[_0x4de91c(0x138)](0x1);}}default:logger[_0x4de91c(0x12d)](_0x4de91c(0x137)+_0x15ba5c),process[_0x4de91c(0x138)](0x1);}};
@@ -1 +1 @@
1
- function a5_0x384c(_0x2d8ca7,_0x43107e){const _0xf3edf3=a5_0xf3ed();return a5_0x384c=function(_0x384ce4,_0x10f009){_0x384ce4=_0x384ce4-0x118;let _0x581396=_0xf3edf3[_0x384ce4];return _0x581396;},a5_0x384c(_0x2d8ca7,_0x43107e);}const a5_0x2a4562=a5_0x384c;(function(_0x7a066f,_0x2dff3a){const _0x1130e2=a5_0x384c,_0x5a17bd=_0x7a066f();while(!![]){try{const _0xd3cda=-parseInt(_0x1130e2(0x171))/0x1+-parseInt(_0x1130e2(0x170))/0x2*(parseInt(_0x1130e2(0x160))/0x3)+-parseInt(_0x1130e2(0x134))/0x4+-parseInt(_0x1130e2(0x11c))/0x5*(-parseInt(_0x1130e2(0x118))/0x6)+parseInt(_0x1130e2(0x162))/0x7+-parseInt(_0x1130e2(0x153))/0x8*(-parseInt(_0x1130e2(0x16b))/0x9)+-parseInt(_0x1130e2(0x167))/0xa;if(_0xd3cda===_0x2dff3a)break;else _0x5a17bd['push'](_0x5a17bd['shift']());}catch(_0x45341e){_0x5a17bd['push'](_0x5a17bd['shift']());}}}(a5_0xf3ed,0x54fb4));const fs=require('fs'),got=require(a5_0x2a4562(0x145)),{v4:uuidv4}=require(a5_0x2a4562(0x147)),{inputConfirmation,closeInput}=require(a5_0x2a4562(0x13d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x2a4562(0x12e)),{getCredentialsPath,getAuthHeader}=require(a5_0x2a4562(0x173)),{sendInstrumentationEvent}=require(a5_0x2a4562(0x126));function a5_0xf3ed(){const _0x363bd9=['\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','name','NASQr','log','recommendCommands','json','\x20\x20username:\x20','FuxRz','init-not-called','pQBvi','1972984efNbIt','strict','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Vthoq','exit','configure-called','epilogue','requestId','jNWki','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','body','stack','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','1292964vKytHR','clgho','3243863eRugah','INFO','VMbiL','unauthorised','Browserstack','2296260TCRwJH','toLowerCase','HXVfI','hxMUl','9qEXFAM','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','error','help','tuhju','2SPQSgV','34706PMXRwJ','jnUpw','../utils/utilityMethods','https://','gKyXx','VUuvm','OVypT','oaKKH','password','SfUwq','6lnxpCx','fsfmI','ackdK','\x20\x20grid-profile:\x20','3193580PExZzn','builder','UhTQp','OlZum','parse','mqCoZ','WBWRe','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','username','sZjrg','../utils/instrumentationUtils','list','stringify','PUT','readFileSync','argv','lJSeM','statusCode','../config/constants','PxNkk','LJUnM','ERROR','configure','yQaEv','1221376vGouek','active','dDIEL','wqygD','server-error','unknown-error','GET','jCGRr','Aormd','../utils/userInput','QQSxB','Updated\x20default\x20Grid\x20Profile\x20successfully','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','uttOa','desc','BdHBL','got','jgOQS','uuid','usage'];a5_0xf3ed=function(){return _0x363bd9;};return a5_0xf3ed();}exports['command']='configure',exports[a5_0x2a4562(0x143)]=a5_0x2a4562(0x15f),exports[a5_0x2a4562(0x11d)]=function(_0x3231b0){const _0x532129=a5_0x2a4562,_0x3da0e8={};_0x3da0e8['OlZum']=_0x532129(0x16e);const _0x1ba761=_0x3da0e8;return _0x3231b0[_0x532129(0x148)](HELP_HEADER_MESSAGE[_0x532129(0x132)])[_0x532129(0x159)](HELP_FOOTER_MESSAGE)[_0x532129(0x16e)](_0x1ba761[_0x532129(0x11f)])[_0x532129(0x14d)]()[_0x532129(0x154)]()[_0x532129(0x12b)];},exports['handler']=async function(_0x5eb2b0){const _0x49b4cf=a5_0x2a4562,_0x59b3a8={'lJSeM':function(_0x2c96c1){return _0x2c96c1();},'oaKKH':function(_0x558aee){return _0x558aee();},'rPtwK':_0x49b4cf(0x140),'gKyXx':function(_0x15ceec,_0x4cf582,_0x579adc,_0x97de5b,_0xc926ec,_0x56acec,_0x1445d1){return _0x15ceec(_0x4cf582,_0x579adc,_0x97de5b,_0xc926ec,_0x56acec,_0x1445d1);},'jNWki':_0x49b4cf(0x158),'jgOQS':_0x49b4cf(0x151),'HXVfI':function(_0x36ebbc,_0x3f879b,_0x4db12a,_0x562f93,_0x2f995c,_0x427e8e,_0x45b195){return _0x36ebbc(_0x3f879b,_0x4db12a,_0x562f93,_0x2f995c,_0x427e8e,_0x45b195);},'NASQr':_0x49b4cf(0x13a),'WBWRe':function(_0x2863c3,_0x10a982,_0x143eec){return _0x2863c3(_0x10a982,_0x143eec);},'SfUwq':function(_0xcc0996,_0x2a792f){return _0xcc0996!==_0x2a792f;},'jnUpw':function(_0x2b9e20,_0x342f8c){return _0x2b9e20===_0x342f8c;},'eUOao':_0x49b4cf(0x149),'KFsNl':'core:','FuxRz':function(_0x2b22b0,_0x132435){return _0x2b22b0(_0x132435);},'tuhju':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','clgho':function(_0x6336a6,_0x47decd){return _0x6336a6===_0x47decd;},'ackdK':function(_0x4a6ef4,_0x3dd63f){return _0x4a6ef4===_0x3dd63f;},'hxMUl':function(_0x562840,_0x535082){return _0x562840===_0x535082;},'pQBvi':_0x49b4cf(0x155),'yQaEv':'invalid-input','OVypT':_0x49b4cf(0x16c),'bBJJM':function(_0x2e773d,_0x1c15de){return _0x2e773d<_0x1c15de;},'PxNkk':function(_0x3079b6,_0xd74195){return _0x3079b6+_0xd74195;},'LJUnM':_0x49b4cf(0x123),'wqygD':function(_0x34d599,_0x39c779){return _0x34d599<=_0x39c779;},'Aormd':function(_0x10226b,_0x502b00){return _0x10226b>_0x502b00;},'EIwuf':'invalid-selection','Vthoq':function(_0x2206f2,_0x4fa038){return _0x2206f2-_0x4fa038;},'UhTQp':_0x49b4cf(0x129),'lqMOA':_0x49b4cf(0x14e),'QQSxB':function(_0x10ac3f,_0x5cb74f){return _0x10ac3f!==_0x5cb74f;},'mqCoZ':function(_0x63abe1,_0x374e2f){return _0x63abe1===_0x374e2f;},'VMbiL':_0x49b4cf(0x13f),'ampfS':function(_0x2b1e17,_0x1ff5c1){return _0x2b1e17===_0x1ff5c1;},'ZLnPJ':_0x49b4cf(0x141),'uttOa':function(_0x5acb22,_0x4a1379,_0x9193ea,_0x17444d,_0x50a194,_0x545e25,_0x426b2e){return _0x5acb22(_0x4a1379,_0x9193ea,_0x17444d,_0x50a194,_0x545e25,_0x426b2e);},'dDIEL':_0x49b4cf(0x165),'jCGRr':function(_0x53dfc0,_0x58fe12,_0x326f09,_0x350278,_0x1f0bd2,_0x3f7e4d,_0x26a1cf){return _0x53dfc0(_0x58fe12,_0x326f09,_0x350278,_0x1f0bd2,_0x3f7e4d,_0x26a1cf);},'fsfmI':_0x49b4cf(0x138),'mYobZ':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VUuvm':function(_0x401f1d,_0x272815,_0x1e5e64,_0x2cb031,_0x4089cd,_0x27ec20,_0x4df874){return _0x401f1d(_0x272815,_0x1e5e64,_0x2cb031,_0x4089cd,_0x27ec20,_0x4df874);},'BdHBL':function(_0x554899,_0x49f382,_0x5401ca,_0xa62050,_0x2804b7,_0x1ff62f,_0x3f78df){return _0x554899(_0x49f382,_0x5401ca,_0xa62050,_0x2804b7,_0x1ff62f,_0x3f78df);},'sZjrg':_0x49b4cf(0x139)};try{global_registry[_0x49b4cf(0x15a)]=_0x59b3a8[_0x49b4cf(0x12c)](uuidv4);const _0x323faf=_0x49b4cf(0x174)+AG_API_URL+'/packages/cli/configure';!fs['existsSync'](_0x59b3a8['oaKKH'](getCredentialsPath))&&(console['error'](_0x59b3a8['rPtwK']),await _0x59b3a8[_0x49b4cf(0x175)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8[_0x49b4cf(0x15b)],messageTypes[_0x49b4cf(0x131)],_0x59b3a8[_0x49b4cf(0x146)],null,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1));await _0x59b3a8[_0x49b4cf(0x169)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8['jNWki'],messageTypes[_0x49b4cf(0x163)],null,null,_0x5eb2b0);const _0x48cacd=JSON[_0x49b4cf(0x120)](fs[_0x49b4cf(0x12a)](_0x59b3a8[_0x49b4cf(0x178)](getCredentialsPath))),_0x145e0b={'method':_0x59b3a8[_0x49b4cf(0x14b)],'headers':_0x59b3a8[_0x49b4cf(0x122)](getAuthHeader,_0x48cacd[_0x49b4cf(0x166)][_0x49b4cf(0x124)],_0x48cacd[_0x49b4cf(0x166)][_0x49b4cf(0x179)]),'throwHttpErrors':![]},_0x450393=await _0x59b3a8[_0x49b4cf(0x122)](got,_0x323faf,_0x145e0b);if(_0x59b3a8[_0x49b4cf(0x17a)](_0x450393,null)&&_0x59b3a8[_0x49b4cf(0x17a)](_0x450393,undefined)&&_0x59b3a8[_0x49b4cf(0x172)](_0x450393[_0x49b4cf(0x12d)],0xc8)){const _0x46182d=JSON[_0x49b4cf(0x120)](_0x450393[_0x49b4cf(0x15d)]);console[_0x49b4cf(0x14c)](_0x59b3a8['eUOao']),console[_0x49b4cf(0x14c)](_0x59b3a8['KFsNl']),console[_0x49b4cf(0x14c)](_0x49b4cf(0x14f)+_0x48cacd[_0x49b4cf(0x166)]['username']),console[_0x49b4cf(0x14c)](_0x49b4cf(0x11b)+_0x46182d[_0x49b4cf(0x135)][_0x49b4cf(0x14a)]);const _0x3c591d=await _0x59b3a8['FuxRz'](inputConfirmation,_0x59b3a8[_0x49b4cf(0x16f)]);(_0x59b3a8[_0x49b4cf(0x161)](_0x3c591d,undefined)||_0x59b3a8[_0x49b4cf(0x172)](_0x3c591d,null)||!(_0x59b3a8[_0x49b4cf(0x11a)](_0x3c591d[_0x49b4cf(0x168)](),'y')||_0x59b3a8[_0x49b4cf(0x16a)](_0x3c591d['toLowerCase'](),'n')))&&(console[_0x49b4cf(0x16d)](_0x59b3a8['pQBvi']),await _0x59b3a8[_0x49b4cf(0x169)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8['jNWki'],messageTypes['ERROR'],_0x59b3a8[_0x49b4cf(0x133)],null,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1));_0x59b3a8[_0x49b4cf(0x161)](_0x3c591d[_0x49b4cf(0x168)](),'n')&&process[_0x49b4cf(0x157)](0x0);console[_0x49b4cf(0x14c)](_0x59b3a8[_0x49b4cf(0x177)]);const _0x5be4a8=_0x46182d[_0x49b4cf(0x127)]['length'];for(let _0x40479b=0x0;_0x59b3a8['bBJJM'](_0x40479b,_0x5be4a8);_0x40479b+=0x1){console[_0x49b4cf(0x14c)]('['+_0x59b3a8[_0x49b4cf(0x12f)](_0x40479b,0x1)+']\x20'+_0x46182d['list'][_0x40479b][_0x49b4cf(0x14a)]);}const _0x5255c8=await _0x59b3a8[_0x49b4cf(0x150)](inputConfirmation,_0x59b3a8[_0x49b4cf(0x130)]),_0x3ac196=_0x59b3a8[_0x49b4cf(0x150)](Number,_0x5255c8);(_0x59b3a8[_0x49b4cf(0x150)](isNaN,_0x3ac196)||_0x59b3a8[_0x49b4cf(0x137)](_0x3ac196,0x0)||_0x59b3a8[_0x49b4cf(0x13c)](_0x3ac196,_0x5be4a8))&&(console[_0x49b4cf(0x16d)](_0x59b3a8[_0x49b4cf(0x152)]),await _0x59b3a8[_0x49b4cf(0x175)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8[_0x49b4cf(0x15b)],messageTypes[_0x49b4cf(0x131)],_0x59b3a8['EIwuf'],null,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1));_0x59b3a8['oaKKH'](closeInput);const _0x533558=_0x46182d[_0x49b4cf(0x127)][_0x59b3a8[_0x49b4cf(0x156)](_0x3ac196,0x1)]['id'],_0x38b93d={};_0x38b93d['profileId']=_0x533558;const _0x281c7c={'method':_0x59b3a8[_0x49b4cf(0x11e)],'headers':_0x59b3a8[_0x49b4cf(0x122)](getAuthHeader,_0x48cacd[_0x49b4cf(0x166)][_0x49b4cf(0x124)],_0x48cacd[_0x49b4cf(0x166)]['password']),'json':_0x38b93d,'responseType':_0x59b3a8['lqMOA'],'throwHttpErrors':![]},_0x2a58f4=await _0x59b3a8['WBWRe'](got,_0x323faf,_0x281c7c);_0x59b3a8[_0x49b4cf(0x17a)](_0x2a58f4,null)&&_0x59b3a8[_0x49b4cf(0x13e)](_0x2a58f4,undefined)&&_0x59b3a8[_0x49b4cf(0x121)](_0x2a58f4['statusCode'],0xc8)&&(console[_0x49b4cf(0x14c)](_0x59b3a8[_0x49b4cf(0x164)]),process['exit'](0x0)),_0x59b3a8['ampfS'](_0x2a58f4['statusCode'],0x191)&&(console[_0x49b4cf(0x16d)](_0x59b3a8['ZLnPJ']),await _0x59b3a8[_0x49b4cf(0x142)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8[_0x49b4cf(0x15b)],messageTypes[_0x49b4cf(0x131)],_0x59b3a8[_0x49b4cf(0x136)],null,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1)),console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x49b4cf(0x128)](_0x2a58f4)),await _0x59b3a8[_0x49b4cf(0x13b)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8[_0x49b4cf(0x15b)],messageTypes[_0x49b4cf(0x131)],_0x59b3a8[_0x49b4cf(0x119)],_0x2a58f4,_0x5eb2b0),process['exit'](0x1);}_0x59b3a8['mqCoZ'](_0x450393[_0x49b4cf(0x12d)],0x191)&&(console[_0x49b4cf(0x16d)](_0x59b3a8['mYobZ']),await _0x59b3a8['VUuvm'](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8[_0x49b4cf(0x15b)],messageTypes[_0x49b4cf(0x131)],_0x59b3a8['dDIEL'],null,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1)),console[_0x49b4cf(0x16d)](_0x49b4cf(0x15c)+JSON['stringify'](_0x450393)),await _0x59b3a8[_0x49b4cf(0x144)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8['jNWki'],messageTypes[_0x49b4cf(0x131)],_0x59b3a8[_0x49b4cf(0x119)],_0x450393,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1);}catch(_0x5f4dfb){console[_0x49b4cf(0x16d)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x5f4dfb[_0x49b4cf(0x15e)]),await _0x59b3a8[_0x49b4cf(0x176)](sendInstrumentationEvent,_0x5eb2b0,_0x59b3a8[_0x49b4cf(0x15b)],messageTypes['ERROR'],_0x59b3a8[_0x49b4cf(0x125)],_0x5f4dfb,_0x5eb2b0),process[_0x49b4cf(0x157)](0x1);}};
1
+ const a5_0xe7f805=a5_0xfbcf;function a5_0x3336(){const _0x4772b7=['vBjXr','statusCode','kFdEl','52xdEVrJ','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','epilogue','bwxYy','DExlN','name','72554772kRASMu','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','stack','6IipxQO','cvdpg','active','got','recommendCommands','argv','wvoro','Browserstack','toLowerCase','PtSUO','nwHbw','body','mvblP','LhKWl','784935UfSMRg','/packages/cli/configure','../utils/instrumentationUtils','PUT','usage','MCdvv','configure','XWNEd','unknown-error','Pbebo','length','rsgLh','help','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','uuid','1748060ClhKYA','log','WaNVu','stringify','INFO','AXgTX','GNxZj','WBnpM','XJoKD','parse','iuqnI','11618055BStEmk','dTdXI','AblYO','qVtRo','init-not-called','password','ERROR','\x20\x20username:\x20','../utils/userInput','qvMih','88EpWJus','../config/constants','username','xSCbJ','JRuVl','server-error','qnezX','cstjr','dxdsE','mwISi','hETuq','1BLaYcQ','\x20\x20grid-profile:\x20','2268818FulpJP','XUhej','desc','416715zxdMwZ','12977174LiWAgy','unauthorised','error','bxUWE','exit','command','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GoIhQ','aLgtc','nFkLU','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aHWSe','https://','xHtXY','profileId','../utils/utilityMethods','eQAwk','8TpBlwh'];a5_0x3336=function(){return _0x4772b7;};return a5_0x3336();}(function(_0x5a5d2a,_0x593de1){const _0x3aabf4=a5_0xfbcf,_0x4b22cf=_0x5a5d2a();while(!![]){try{const _0x2860bd=parseInt(_0x3aabf4(0xd8))/0x1*(-parseInt(_0x3aabf4(0x79))/0x2)+-parseInt(_0x3aabf4(0x7c))/0x3*(parseInt(_0x3aabf4(0x92))/0x4)+-parseInt(_0x3aabf4(0xa9))/0x5+-parseInt(_0x3aabf4(0x9b))/0x6*(parseInt(_0x3aabf4(0x7d))/0x7)+parseInt(_0x3aabf4(0x8e))/0x8*(parseInt(_0x3aabf4(0xc3))/0x9)+parseInt(_0x3aabf4(0xb8))/0xa*(-parseInt(_0x3aabf4(0xcd))/0xb)+parseInt(_0x3aabf4(0x98))/0xc;if(_0x2860bd===_0x593de1)break;else _0x4b22cf['push'](_0x4b22cf['shift']());}catch(_0x5ea837){_0x4b22cf['push'](_0x4b22cf['shift']());}}}(a5_0x3336,0xf11f3));const fs=require('fs'),got=require(a5_0xe7f805(0x9e)),{v4:uuidv4}=require(a5_0xe7f805(0xb7)),{inputConfirmation,closeInput}=require(a5_0xe7f805(0xcb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0xe7f805(0xce)),{getCredentialsPath,getAuthHeader}=require(a5_0xe7f805(0x8c)),{sendInstrumentationEvent}=require(a5_0xe7f805(0xab));function a5_0xfbcf(_0x28ce60,_0x115fb4){const _0x3336b0=a5_0x3336();return a5_0xfbcf=function(_0xfbcfb4,_0x184ab2){_0xfbcfb4=_0xfbcfb4-0x79;let _0x441211=_0x3336b0[_0xfbcfb4];return _0x441211;},a5_0xfbcf(_0x28ce60,_0x115fb4);}exports[a5_0xe7f805(0x82)]='configure',exports[a5_0xe7f805(0x7b)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x5d7c66){const _0x32854f=a5_0xe7f805,_0x4c4964={};_0x4c4964[_0x32854f(0xa4)]=_0x32854f(0xb5);const _0x4e6d87=_0x4c4964;return _0x5d7c66[_0x32854f(0xad)](HELP_HEADER_MESSAGE[_0x32854f(0xaf)])[_0x32854f(0x94)](HELP_FOOTER_MESSAGE)[_0x32854f(0xb5)](_0x4e6d87[_0x32854f(0xa4)])[_0x32854f(0x9f)]()['strict']()[_0x32854f(0xa0)];},exports['handler']=async function(_0x23930d){const _0xcdedf6=a5_0xe7f805,_0x5c20cf={'mvblP':function(_0x1f6efb){return _0x1f6efb();},'DExlN':_0xcdedf6(0x87),'bwxYy':function(_0x25ae37,_0x206fa0,_0x6eb989,_0x269dcc,_0x232dd4,_0x5801e4,_0x3b04b5){return _0x25ae37(_0x206fa0,_0x6eb989,_0x269dcc,_0x232dd4,_0x5801e4,_0x3b04b5);},'qnezX':'configure-called','xSCbJ':_0xcdedf6(0xc7),'Pbebo':function(_0x259304,_0x250f28,_0x18e22d,_0x419cbf,_0x18e70c,_0x36c86b,_0x3a5364){return _0x259304(_0x250f28,_0x18e22d,_0x419cbf,_0x18e70c,_0x36c86b,_0x3a5364);},'aLgtc':function(_0x3004b0){return _0x3004b0();},'xHtXY':'GET','GNxZj':function(_0x470fce,_0x5e8d35,_0x13e793){return _0x470fce(_0x5e8d35,_0x13e793);},'qVtRo':function(_0x5e2f79,_0x29ee84,_0x17f6fe){return _0x5e2f79(_0x29ee84,_0x17f6fe);},'KkOcf':function(_0x2d13ea,_0x56e791){return _0x2d13ea!==_0x56e791;},'AblYO':function(_0x4e5b56,_0x565925){return _0x4e5b56!==_0x565925;},'hETuq':function(_0x472c84,_0x3d3365){return _0x472c84===_0x3d3365;},'cstjr':_0xcdedf6(0x93),'rcNgl':'core:','XUhej':function(_0x5ce221,_0x271c35){return _0x5ce221(_0x271c35);},'kFdEl':_0xcdedf6(0xb6),'WaNVu':function(_0x191952,_0x46724b){return _0x191952===_0x46724b;},'LhKWl':function(_0x163ff1,_0x305852){return _0x163ff1===_0x305852;},'aHWSe':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','nFkLU':'invalid-input','qvzlw':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','hdOiM':function(_0xfa9d8a,_0x432e44){return _0xfa9d8a<_0x432e44;},'KpJiN':function(_0x1a257b,_0x3751a7){return _0x1a257b+_0x3751a7;},'eQAwk':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','iuqnI':function(_0x3bbbac,_0x1d0f8e){return _0x3bbbac(_0x1d0f8e);},'XWNEd':function(_0x1f1683,_0x532fa2){return _0x1f1683<=_0x532fa2;},'XJoKD':function(_0x27bfbf,_0x45772a){return _0x27bfbf>_0x45772a;},'mwISi':function(_0x5231e9,_0x1bb438,_0x711e6e,_0x3d1191,_0x406827,_0x1d7385,_0x71bbc9){return _0x5231e9(_0x1bb438,_0x711e6e,_0x3d1191,_0x406827,_0x1d7385,_0x71bbc9);},'nwHbw':'invalid-selection','cvdpg':function(_0x53aca4,_0x3d6c4e){return _0x53aca4-_0x3d6c4e;},'MCdvv':_0xcdedf6(0xac),'qvMih':'json','vBjXr':function(_0x53b35a,_0x275bee){return _0x53b35a!==_0x275bee;},'JRuVl':function(_0x26bce6,_0x16bb5d){return _0x26bce6!==_0x16bb5d;},'rsgLh':'Updated\x20default\x20Grid\x20Profile\x20successfully','bxUWE':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','AXgTX':_0xcdedf6(0x7e),'WBnpM':_0xcdedf6(0xd2),'dxdsE':_0xcdedf6(0x83),'wvoro':function(_0x15e33c,_0x4e5a1b,_0x467647,_0x315083,_0x3e22f0,_0x2418cf,_0x347c00){return _0x15e33c(_0x4e5a1b,_0x467647,_0x315083,_0x3e22f0,_0x2418cf,_0x347c00);},'GoIhQ':function(_0x53fe5e,_0x68c31e,_0x241678,_0x5a9949,_0x1cdf9a,_0x5ded79,_0x44fbeb){return _0x53fe5e(_0x68c31e,_0x241678,_0x5a9949,_0x1cdf9a,_0x5ded79,_0x44fbeb);},'dTdXI':_0xcdedf6(0xb1)};try{global_registry['requestId']=_0x5c20cf[_0xcdedf6(0xa7)](uuidv4);const _0x14bef7=_0xcdedf6(0x89)+AG_API_URL+_0xcdedf6(0xaa);!fs['existsSync'](_0x5c20cf[_0xcdedf6(0xa7)](getCredentialsPath))&&(console[_0xcdedf6(0x7f)](_0x5c20cf[_0xcdedf6(0x96)]),await _0x5c20cf[_0xcdedf6(0x95)](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf[_0xcdedf6(0xd0)],null,_0x23930d),process[_0xcdedf6(0x81)](0x1));await _0x5c20cf['Pbebo'](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xbc)],null,null,_0x23930d);const _0x48982f=JSON[_0xcdedf6(0xc1)](fs['readFileSync'](_0x5c20cf[_0xcdedf6(0x85)](getCredentialsPath))),_0x5b15e0={'method':_0x5c20cf[_0xcdedf6(0x8a)],'headers':_0x5c20cf[_0xcdedf6(0xbe)](getAuthHeader,_0x48982f['Browserstack'][_0xcdedf6(0xcf)],_0x48982f[_0xcdedf6(0xa2)][_0xcdedf6(0xc8)]),'throwHttpErrors':![]},_0xb598b5=await _0x5c20cf[_0xcdedf6(0xc6)](got,_0x14bef7,_0x5b15e0);if(_0x5c20cf['KkOcf'](_0xb598b5,null)&&_0x5c20cf[_0xcdedf6(0xc5)](_0xb598b5,undefined)&&_0x5c20cf['hETuq'](_0xb598b5['statusCode'],0xc8)){const _0x4f62cf=JSON[_0xcdedf6(0xc1)](_0xb598b5[_0xcdedf6(0xa6)]);console[_0xcdedf6(0xb9)](_0x5c20cf[_0xcdedf6(0xd4)]),console['log'](_0x5c20cf['rcNgl']),console[_0xcdedf6(0xb9)](_0xcdedf6(0xca)+_0x48982f['Browserstack'][_0xcdedf6(0xcf)]),console[_0xcdedf6(0xb9)](_0xcdedf6(0xd9)+_0x4f62cf[_0xcdedf6(0x9d)][_0xcdedf6(0x97)]);const _0x10af5c=await _0x5c20cf[_0xcdedf6(0x7a)](inputConfirmation,_0x5c20cf[_0xcdedf6(0x91)]);(_0x5c20cf[_0xcdedf6(0xd7)](_0x10af5c,undefined)||_0x5c20cf[_0xcdedf6(0xba)](_0x10af5c,null)||!(_0x5c20cf[_0xcdedf6(0xba)](_0x10af5c[_0xcdedf6(0xa3)](),'y')||_0x5c20cf[_0xcdedf6(0xa8)](_0x10af5c[_0xcdedf6(0xa3)](),'n')))&&(console[_0xcdedf6(0x7f)](_0x5c20cf['aHWSe']),await _0x5c20cf[_0xcdedf6(0xb2)](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf[_0xcdedf6(0x86)],null,_0x23930d),process[_0xcdedf6(0x81)](0x1));_0x5c20cf[_0xcdedf6(0xba)](_0x10af5c[_0xcdedf6(0xa3)](),'n')&&process[_0xcdedf6(0x81)](0x0);console[_0xcdedf6(0xb9)](_0x5c20cf['qvzlw']);const _0x14be90=_0x4f62cf['list'][_0xcdedf6(0xb3)];for(let _0x53bda0=0x0;_0x5c20cf['hdOiM'](_0x53bda0,_0x14be90);_0x53bda0+=0x1){console[_0xcdedf6(0xb9)]('['+_0x5c20cf['KpJiN'](_0x53bda0,0x1)+']\x20'+_0x4f62cf['list'][_0x53bda0][_0xcdedf6(0x97)]);}const _0x1bbe69=await _0x5c20cf['XUhej'](inputConfirmation,_0x5c20cf[_0xcdedf6(0x8d)]),_0x5315bf=_0x5c20cf[_0xcdedf6(0xc2)](Number,_0x1bbe69);(_0x5c20cf[_0xcdedf6(0x7a)](isNaN,_0x5315bf)||_0x5c20cf[_0xcdedf6(0xb0)](_0x5315bf,0x0)||_0x5c20cf[_0xcdedf6(0xc0)](_0x5315bf,_0x14be90))&&(console[_0xcdedf6(0x7f)](_0x5c20cf[_0xcdedf6(0x88)]),await _0x5c20cf['mwISi'](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes['ERROR'],_0x5c20cf[_0xcdedf6(0xa5)],null,_0x23930d),process['exit'](0x1));_0x5c20cf[_0xcdedf6(0xa7)](closeInput);const _0x300baf=_0x4f62cf['list'][_0x5c20cf[_0xcdedf6(0x9c)](_0x5315bf,0x1)]['id'],_0x16e17f={};_0x16e17f[_0xcdedf6(0x8b)]=_0x300baf;const _0x323d88={'method':_0x5c20cf[_0xcdedf6(0xae)],'headers':_0x5c20cf[_0xcdedf6(0xbe)](getAuthHeader,_0x48982f[_0xcdedf6(0xa2)][_0xcdedf6(0xcf)],_0x48982f[_0xcdedf6(0xa2)]['password']),'json':_0x16e17f,'responseType':_0x5c20cf[_0xcdedf6(0xcc)],'throwHttpErrors':![]},_0xed370e=await _0x5c20cf[_0xcdedf6(0xc6)](got,_0x14bef7,_0x323d88);_0x5c20cf[_0xcdedf6(0x8f)](_0xed370e,null)&&_0x5c20cf[_0xcdedf6(0xd1)](_0xed370e,undefined)&&_0x5c20cf[_0xcdedf6(0xd7)](_0xed370e['statusCode'],0xc8)&&(console['log'](_0x5c20cf[_0xcdedf6(0xb4)]),process['exit'](0x0)),_0x5c20cf[_0xcdedf6(0xd7)](_0xed370e[_0xcdedf6(0x90)],0x191)&&(console['error'](_0x5c20cf[_0xcdedf6(0x80)]),await _0x5c20cf['mwISi'](sendInstrumentationEvent,_0x23930d,_0x5c20cf['qnezX'],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf['AXgTX'],null,_0x23930d),process['exit'](0x1)),console['error'](_0xcdedf6(0x99)+JSON['stringify'](_0xed370e)),await _0x5c20cf[_0xcdedf6(0xd6)](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf[_0xcdedf6(0xbf)],_0xed370e,_0x23930d),process[_0xcdedf6(0x81)](0x1);}_0x5c20cf[_0xcdedf6(0xd7)](_0xb598b5[_0xcdedf6(0x90)],0x191)&&(console['error'](_0x5c20cf[_0xcdedf6(0xd5)]),await _0x5c20cf[_0xcdedf6(0xa1)](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf[_0xcdedf6(0xbd)],null,_0x23930d),process[_0xcdedf6(0x81)](0x1)),console[_0xcdedf6(0x7f)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xcdedf6(0xbb)](_0xb598b5)),await _0x5c20cf[_0xcdedf6(0x84)](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf[_0xcdedf6(0xbf)],_0xb598b5,_0x23930d),process[_0xcdedf6(0x81)](0x1);}catch(_0x5cb53f){console[_0xcdedf6(0x7f)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x5cb53f[_0xcdedf6(0x9a)]),await _0x5c20cf['wvoro'](sendInstrumentationEvent,_0x23930d,_0x5c20cf[_0xcdedf6(0xd3)],messageTypes[_0xcdedf6(0xc9)],_0x5c20cf[_0xcdedf6(0xc4)],_0x5cb53f,_0x23930d),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a6_0x51c1(){const _0x132aac=['usage','handler','668VYnQMb','tFAHz','epilogue','54nRMqGO','demandCommand','829FFGDFL','builder','183215yjUoZD','130DQDcOs','desc','66PfTCgi','commandDir','180384dylAkw','command','strict','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','7651987PYONdM','connect','help','30087LlhPhy','844327IfTiNe','PIZoh','508HLeiph','26Tfjdub','9086736cWoTOo'];a6_0x51c1=function(){return _0x132aac;};return a6_0x51c1();}const a6_0x1c6140=a6_0x268e;function a6_0x268e(_0x2e6048,_0x514347){const _0x51c166=a6_0x51c1();return a6_0x268e=function(_0x268e50,_0xc14665){_0x268e50=_0x268e50-0xac;let _0x42ca55=_0x51c166[_0x268e50];return _0x42ca55;},a6_0x268e(_0x2e6048,_0x514347);}(function(_0x421b88,_0x170ee0){const _0x9a1143=a6_0x268e,_0x3b27cb=_0x421b88();while(!![]){try{const _0x595889=-parseInt(_0x9a1143(0xb2))/0x1*(-parseInt(_0x9a1143(0xad))/0x2)+parseInt(_0x9a1143(0xc0))/0x3*(parseInt(_0x9a1143(0xc3))/0x4)+-parseInt(_0x9a1143(0xb4))/0x5*(-parseInt(_0x9a1143(0xb7))/0x6)+parseInt(_0x9a1143(0xbd))/0x7+-parseInt(_0x9a1143(0xb9))/0x8*(-parseInt(_0x9a1143(0xb0))/0x9)+parseInt(_0x9a1143(0xb5))/0xa*(-parseInt(_0x9a1143(0xc1))/0xb)+parseInt(_0x9a1143(0xc5))/0xc*(-parseInt(_0x9a1143(0xc4))/0xd);if(_0x595889===_0x170ee0)break;else _0x3b27cb['push'](_0x3b27cb['shift']());}catch(_0x2c7cf8){_0x3b27cb['push'](_0x3b27cb['shift']());}}}(a6_0x51c1,0xa384e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a6_0x1c6140(0xba)]=a6_0x1c6140(0xbe),exports[a6_0x1c6140(0xb6)]=a6_0x1c6140(0xbc),exports[a6_0x1c6140(0xb3)]=function(_0x749297){const _0x7a78c6=a6_0x1c6140,_0x26afa8={};_0x26afa8[_0x7a78c6(0xae)]='connect_commands',_0x26afa8[_0x7a78c6(0xc2)]=_0x7a78c6(0xbf);const _0x532aca=_0x26afa8;return _0x749297[_0x7a78c6(0xc6)](HELP_HEADER_MESSAGE['connect'])[_0x7a78c6(0xaf)](HELP_FOOTER_MESSAGE)[_0x7a78c6(0xb8)](_0x532aca[_0x7a78c6(0xae)])[_0x7a78c6(0xb1)]()['recommendCommands']()[_0x7a78c6(0xbb)]()[_0x7a78c6(0xbf)](_0x532aca[_0x7a78c6(0xc2)]);},exports[a6_0x1c6140(0xac)]=function(_0x414730){};
1
+ const a6_0x4358a4=a6_0x38a5;function a6_0x38a5(_0x46f7a3,_0xa2b30d){const _0x507dda=a6_0x507d();return a6_0x38a5=function(_0x38a58c,_0x3eba73){_0x38a58c=_0x38a58c-0x8d;let _0xf4bd58=_0x507dda[_0x38a58c];return _0xf4bd58;},a6_0x38a5(_0x46f7a3,_0xa2b30d);}(function(_0x715536,_0x391bc1){const _0x2b5da9=a6_0x38a5,_0x37c416=_0x715536();while(!![]){try{const _0x1134e7=-parseInt(_0x2b5da9(0x9f))/0x1+parseInt(_0x2b5da9(0x94))/0x2*(-parseInt(_0x2b5da9(0x8f))/0x3)+parseInt(_0x2b5da9(0x99))/0x4*(parseInt(_0x2b5da9(0x8d))/0x5)+-parseInt(_0x2b5da9(0x98))/0x6+parseInt(_0x2b5da9(0x93))/0x7+-parseInt(_0x2b5da9(0x9c))/0x8*(-parseInt(_0x2b5da9(0x91))/0x9)+-parseInt(_0x2b5da9(0xa1))/0xa;if(_0x1134e7===_0x391bc1)break;else _0x37c416['push'](_0x37c416['shift']());}catch(_0x130dbd){_0x37c416['push'](_0x37c416['shift']());}}}(a6_0x507d,0x93fa0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x4358a4(0x95));function a6_0x507d(){const _0x116319=['27GBeKxa','command','2768465LTOMQe','6iiqkRD','../config/constants','IPhBg','recommendCommands','937722qDRkzT','211340RqSMoD','IJygq','connect','1846336tfNTAK','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','desc','599236tHOEPl','help','4806080scxqaX','handler','commandDir','85XEwGhQ','usage','143823VDXNvb','epilogue'];a6_0x507d=function(){return _0x116319;};return a6_0x507d();}exports[a6_0x4358a4(0x92)]='connect',exports[a6_0x4358a4(0x9e)]=a6_0x4358a4(0x9d),exports['builder']=function(_0x4a2d95){const _0x4c6503=a6_0x4358a4,_0x4cd7fe={};_0x4cd7fe[_0x4c6503(0x9a)]='connect_commands',_0x4cd7fe['IPhBg']='help';const _0x3f4e77=_0x4cd7fe;return _0x4a2d95[_0x4c6503(0x8e)](HELP_HEADER_MESSAGE[_0x4c6503(0x9b)])[_0x4c6503(0x90)](HELP_FOOTER_MESSAGE)[_0x4c6503(0xa3)](_0x3f4e77[_0x4c6503(0x9a)])['demandCommand']()[_0x4c6503(0x97)]()['strict']()[_0x4c6503(0xa0)](_0x3f4e77[_0x4c6503(0x96)]);},exports[a6_0x4358a4(0xa2)]=function(_0x32f6de){};
@@ -1 +1 @@
1
- function a7_0x7020(){const _0xae5838=['dAgwe','Vgaqi','wtGpr','jqRwf','accessKey','wTdKf','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','lfeDL','7keqaIY','help','VImdc','description','8uFtfjp','beforeExit','2466978kacPoJ','lnmxJ','UxNwh','../../config/logger','builder','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackAccesskey','options','Advance\x20options\x20for\x20Browserstack\x20Local','105690wSfiLR','desc','SIGTERM','uQBGb','gmlcL','bxwZt','YyBSA','usage','string','handler','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','wMRdn','XucrX','uqKZc','../../utils/utilityMethods','JuabF','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','isTrialGrid','RrxMj','44626120GsRQUd','bstack-username','siiAK','lBGCd','8044dbdtlz','YhIBl','asWQT','ZSosq','useStaging','customRepeaters','zmEkg','JePrj','bstackUsername','MDerc','akdAH','info','uzgiu','error','fQHGX','qVvDO','bEJRI','isRunning','sErcD','fPOAs','bstack-accesskey','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','1500865GnfPgC','dPFVv','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.','epilogue','pOIFw','mYPMd','wIwIB','SIGINT','BUtBS','create','../../config/constants','bRtqQ','CNmYk','YkPTI','llyxO','nLwJq','46owvYvU','true','grid-id','1305sfPSAf','Mvmyr','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','bLMac','Grid\x20type:\x20Trial','LHWrI','use-staging','osyfi','argv','advance-options','qSMsQ','hOSXj','DYreq','lHvrl','xYUzn','OyASA','gWBhB','BLRpf','1075521MJefyo','type','exit','xwwUE','2657608GwBKeh','SuzTy','command','wbPlG','OrQWL','jNZvx','nMwRW','PtwYW','browserStackLocalOptions','JJNZv','Pass\x20the\x20ID\x20of\x20the\x20Grid','demandOption'];a7_0x7020=function(){return _0xae5838;};return a7_0x7020();}const a7_0x57fa5c=a7_0x128b;(function(_0x526c50,_0x173f01){const _0x17a796=a7_0x128b,_0x1e35f8=_0x526c50();while(!![]){try{const _0x2c6500=parseInt(_0x17a796(0x1c6))/0x1*(parseInt(_0x17a796(0x219))/0x2)+-parseInt(_0x17a796(0x1db))/0x3*(parseInt(_0x17a796(0x1f7))/0x4)+-parseInt(_0x17a796(0x1b6))/0x5+parseInt(_0x17a796(0x1f9))/0x6*(-parseInt(_0x17a796(0x1f3))/0x7)+-parseInt(_0x17a796(0x1df))/0x8+-parseInt(_0x17a796(0x1c9))/0x9*(parseInt(_0x17a796(0x202))/0xa)+parseInt(_0x17a796(0x215))/0xb;if(_0x2c6500===_0x173f01)break;else _0x1e35f8['push'](_0x1e35f8['shift']());}catch(_0x1a1cc0){_0x1e35f8['push'](_0x1e35f8['shift']());}}}(a7_0x7020,0xe7a8c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x57fa5c(0x1c0)),{logger}=require(a7_0x57fa5c(0x1fc)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x57fa5c(0x210));function a7_0x128b(_0xa41978,_0x1eac56){const _0x702080=a7_0x7020();return a7_0x128b=function(_0x128be3,_0xc0da06){_0x128be3=_0x128be3-0x1a7;let _0x1f768c=_0x702080[_0x128be3];return _0x1f768c;},a7_0x128b(_0xa41978,_0x1eac56);}exports[a7_0x57fa5c(0x1e1)]='grid',exports[a7_0x57fa5c(0x203)]=a7_0x57fa5c(0x1f1),exports[a7_0x57fa5c(0x1fd)]=_0x31657b=>{const _0x62ebfd=a7_0x57fa5c,_0x13ae1f={};_0x13ae1f[_0x62ebfd(0x1ee)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x13ae1f[_0x62ebfd(0x1b7)]=_0x62ebfd(0x20a),_0x13ae1f[_0x62ebfd(0x206)]=_0x62ebfd(0x212),_0x13ae1f['XucrX']=_0x62ebfd(0x1e9),_0x13ae1f[_0x62ebfd(0x1c1)]=_0x62ebfd(0x1b5),_0x13ae1f[_0x62ebfd(0x1a7)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x13ae1f[_0x62ebfd(0x1e4)]=_0x62ebfd(0x1f4);const _0x3348d7=_0x13ae1f,_0x474984={};_0x474984[_0x62ebfd(0x1f6)]=_0x3348d7[_0x62ebfd(0x1ee)],_0x474984[_0x62ebfd(0x1dc)]=_0x3348d7['dPFVv'];const _0x2cae19={};_0x2cae19['description']=_0x3348d7[_0x62ebfd(0x206)],_0x2cae19[_0x62ebfd(0x1dc)]=_0x3348d7[_0x62ebfd(0x1b7)];const _0x2faac7={};_0x2faac7['demandOption']=!![],_0x2faac7[_0x62ebfd(0x1f6)]=_0x3348d7[_0x62ebfd(0x20e)],_0x2faac7['type']=_0x3348d7['dPFVv'];const _0x27c864={};_0x27c864[_0x62ebfd(0x1f6)]=_0x3348d7[_0x62ebfd(0x1c1)],_0x27c864[_0x62ebfd(0x1dc)]=_0x3348d7['dPFVv'];const _0x5ad2e9={};_0x5ad2e9[_0x62ebfd(0x1f6)]=_0x3348d7['JePrj'],_0x5ad2e9[_0x62ebfd(0x1dc)]=_0x3348d7['dPFVv'];const _0x5f1f93={};return _0x5f1f93[_0x62ebfd(0x216)]=_0x474984,_0x5f1f93[_0x62ebfd(0x1b4)]=_0x2cae19,_0x5f1f93[_0x62ebfd(0x1c8)]=_0x2faac7,_0x5f1f93[_0x62ebfd(0x1cf)]=_0x27c864,_0x5f1f93[_0x62ebfd(0x1d2)]=_0x5ad2e9,_0x31657b[_0x62ebfd(0x209)](HELP_HEADER_MESSAGE[_0x62ebfd(0x1bf)])[_0x62ebfd(0x1b9)](HELP_FOOTER_MESSAGE)[_0x62ebfd(0x200)](_0x5f1f93)['help'](_0x3348d7[_0x62ebfd(0x1e4)])[_0x62ebfd(0x1d1)];},exports[a7_0x57fa5c(0x20b)]=async _0x5762bf=>{const _0x15f0b1=a7_0x57fa5c,_0x57db5f={'YkPTI':function(_0x55d1f0,_0x40aa4c){return _0x55d1f0===_0x40aa4c;},'RrxMj':function(_0x4528b8,_0x8ea6f){return _0x4528b8(_0x8ea6f);},'MDerc':_0x15f0b1(0x1cd),'qSMsQ':_0x15f0b1(0x1f8),'CNmYk':_0x15f0b1(0x1bd),'bLMac':_0x15f0b1(0x204),'VImdc':_0x15f0b1(0x1b8),'YyBSA':'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','OrQWL':_0x15f0b1(0x21a),'yJrrt':'VMJoy','MmxGI':function(_0x327291,_0x12dd3e){return _0x327291===_0x12dd3e;},'lfeDL':_0x15f0b1(0x1fe),'osyfi':_0x15f0b1(0x20a),'lHvrl':_0x15f0b1(0x212),'lnmxJ':'Pass\x20the\x20ID\x20of\x20the\x20Grid','UxNwh':_0x15f0b1(0x1b5),'wbPlG':_0x15f0b1(0x201),'mYPMd':_0x15f0b1(0x1f4),'nMwRW':function(_0x4a66b1,_0xb98149){return _0x4a66b1===_0xb98149;},'fQHGX':function(_0x585985,_0x291117){return _0x585985!==_0x291117;},'PtwYW':'oucDR','pOIFw':_0x15f0b1(0x1be),'xTlku':function(_0x27c745,_0x17b41d){return _0x27c745===_0x17b41d;},'dAgwe':_0x15f0b1(0x1cb),'hOSXj':_0x15f0b1(0x20c),'bEJRI':function(_0x5975bf,_0xd085fd,_0x342b18){return _0x5975bf(_0xd085fd,_0x342b18);},'xYUzn':function(_0x47e3f7,_0x13b035){return _0x47e3f7&&_0x13b035;},'BLRpf':_0x15f0b1(0x1ac),'zmEkg':_0x15f0b1(0x1d8),'wTdKf':function(_0x378db3,_0x2d81ea){return _0x378db3(_0x2d81ea);},'llyxO':function(_0x305668,_0x515fd8,_0x54a9e2,_0x4dece7){return _0x305668(_0x515fd8,_0x54a9e2,_0x4dece7);},'sErcD':_0x15f0b1(0x1e0),'dJuYL':function(_0x1fc4bd,_0x1e33de){return _0x1fc4bd(_0x1e33de);},'bxwZt':function(_0x4509b6,_0xedcfb){return _0x4509b6===_0xedcfb;},'lBGCd':_0x15f0b1(0x1c7),'ymmqP':function(_0x4f90b4,_0x46f785){return _0x4f90b4===_0x46f785;},'uqKZc':'XgKLK','JJNZv':'iIUDJ','ZSosq':'FQOou','Mvmyr':_0x15f0b1(0x205),'DYreq':function(_0x29cd29,_0x3626a2){return _0x29cd29(_0x3626a2);},'fPOAs':function(_0x26471e,_0x225763){return _0x26471e!==_0x225763;},'gWBhB':'PEnAg','LHWrI':function(_0x3de66f,_0x1fecc1){return _0x3de66f(_0x1fecc1);}};let _0x57e24d=_0x5762bf[_0x15f0b1(0x1a8)],_0x2c93c0=_0x5762bf[_0x15f0b1(0x1ff)];const _0x56dc76=_0x5762bf['advanceOptions'],_0x1fbda1=_0x4844a1=>{const _0xfb265e=_0x15f0b1,_0x57431f={'VpxDu':function(_0x410da4,_0x2eab64){const _0x3fdb53=a7_0x128b;return _0x57db5f[_0x3fdb53(0x1c3)](_0x410da4,_0x2eab64);},'wtGpr':function(_0x4eeb61,_0x1fdecc){return _0x57db5f['RrxMj'](_0x4eeb61,_0x1fdecc);},'FAFdl':_0x57db5f[_0xfb265e(0x1a9)],'asWQT':function(_0x50ed46,_0x53c8c7){const _0x190fef=_0xfb265e;return _0x57db5f[_0x190fef(0x214)](_0x50ed46,_0x53c8c7);},'wMRdn':_0x57db5f[_0xfb265e(0x1d3)],'Vgaqi':_0x57db5f[_0xfb265e(0x1c2)],'JuabF':_0x57db5f[_0xfb265e(0x1cc)],'akdAH':_0x57db5f[_0xfb265e(0x1f5)],'xwwUE':_0x57db5f[_0xfb265e(0x208)]};if(_0x57db5f[_0xfb265e(0x1c3)](_0x57db5f[_0xfb265e(0x1e3)],_0x57db5f['yJrrt'])){let _0x5be7ad=_0x57431f['FAFdl'];_0x493b1c[_0xfb265e(0x1ab)](_0x5be7ad);try{const _0x1a9552={};_0x1a9552[_0xfb265e(0x1ef)]=_0x263cc9,_0x1a9552[_0xfb265e(0x21e)]=_0x3c565b['customRepeaters'],_0x1a9552[_0xfb265e(0x1e7)]=_0x2d6c2f;const _0x4c895f=_0x1a9552,_0x45e3b4=_0x57431f[_0xfb265e(0x21b)](_0x4bd8eb,_0x4c895f);let _0x5b0c29=0x0;const _0x358ef7=async()=>{const _0x3611c9=_0xfb265e;_0x5b0c29++,_0x57431f['VpxDu'](_0x5b0c29,0x1)&&_0x45e3b4&&_0x45e3b4[_0x3611c9(0x1b1)]()&&_0x57431f[_0x3611c9(0x1ed)](_0x2b75f9,_0x45e3b4);};_0x28f939['on'](_0x57431f[_0xfb265e(0x20d)],_0x358ef7),_0x414537['on'](_0x57431f[_0xfb265e(0x1ec)],_0x358ef7),_0x5e8a0a['on'](_0x57431f[_0xfb265e(0x211)],_0x358ef7),_0x5be7ad=_0x57431f[_0xfb265e(0x1aa)],_0x254708['info'](_0x5be7ad);}catch(_0x294372){_0x57431f['asWQT'](_0x56b318,_0x57431f[_0xfb265e(0x1de)]);}}else logger['error'](_0x4844a1),process['exit'](0x1);};[_0x57e24d,_0x2c93c0]=_0x57db5f[_0x15f0b1(0x1b0)](fetchOrUpdateUserConfig,_0x57e24d,_0x2c93c0);!_0x57db5f[_0x15f0b1(0x1d7)](_0x57e24d,_0x2c93c0)&&(_0x57db5f[_0x15f0b1(0x1ae)](_0x57db5f[_0x15f0b1(0x1da)],_0x57db5f[_0x15f0b1(0x21f)])?_0x57db5f[_0x15f0b1(0x1f0)](_0x1fbda1,_0x57db5f[_0x15f0b1(0x1d4)]):(_0x441e52[_0x15f0b1(0x1ad)](_0x4c483e),_0x4339b0[_0x15f0b1(0x1dd)](0x1)));const _0xfef0c0=_0x5762bf['gridId'],[_0x30f494,_0x5afec7]=await _0x57db5f[_0x15f0b1(0x1c4)](getGridDetails,_0x57e24d,_0x2c93c0,_0xfef0c0);if(!_0x5afec7){if(_0x57db5f[_0x15f0b1(0x1ae)](_0x57db5f[_0x15f0b1(0x1b2)],_0x57db5f[_0x15f0b1(0x1b2)])){const _0x338290={'wIwIB':function(_0x36091d,_0x53c28c){return _0x57db5f['MmxGI'](_0x36091d,_0x53c28c);},'qVvDO':function(_0x170f9d,_0x51eb2b){const _0xa282e8=_0x15f0b1;return _0x57db5f[_0xa282e8(0x214)](_0x170f9d,_0x51eb2b);}},_0x2cf959={};_0x2cf959[_0x15f0b1(0x1ef)]=_0x143426,_0x2cf959['customRepeaters']=_0x364704[_0x15f0b1(0x21e)],_0x2cf959[_0x15f0b1(0x1e7)]=_0x396c66;const _0x26452c=_0x2cf959,_0x4fc881=_0x57db5f[_0x15f0b1(0x214)](_0x1352ca,_0x26452c);let _0x2f871a=0x0;const _0x5e65a3=async()=>{const _0x36102=_0x15f0b1;_0x2f871a++,_0x338290[_0x36102(0x1bc)](_0x2f871a,0x1)&&_0x4fc881&&_0x4fc881['isRunning']()&&_0x338290[_0x36102(0x1af)](_0x1a7ae7,_0x4fc881);};_0x3da62d['on'](_0x57db5f[_0x15f0b1(0x1d3)],_0x5e65a3),_0x5d57d4['on'](_0x57db5f[_0x15f0b1(0x1c2)],_0x5e65a3),_0x4ce45b['on'](_0x57db5f[_0x15f0b1(0x1cc)],_0x5e65a3),_0x553614=_0x57db5f[_0x15f0b1(0x1f5)],_0xb5ecf4[_0x15f0b1(0x1ab)](_0x4fd59b);}else _0x57db5f['dJuYL'](_0x1fbda1,_0x57db5f[_0x15f0b1(0x1eb)]);}const _0x156de7=_0x57db5f[_0x15f0b1(0x207)](_0x5762bf[_0x15f0b1(0x21d)],_0x57db5f[_0x15f0b1(0x218)])?!![]:![];if(_0x5afec7&&_0x5afec7[_0x15f0b1(0x213)]&&_0x156de7){if(_0x57db5f['ymmqP'](_0x57db5f[_0x15f0b1(0x20f)],_0x57db5f[_0x15f0b1(0x1e8)])){const _0x362c68={};_0x362c68[_0x15f0b1(0x1f6)]=_0x57db5f[_0x15f0b1(0x1f2)],_0x362c68[_0x15f0b1(0x1dc)]=_0x57db5f['osyfi'];const _0x284a4f={};_0x284a4f[_0x15f0b1(0x1f6)]=_0x57db5f[_0x15f0b1(0x1d6)],_0x284a4f[_0x15f0b1(0x1dc)]=_0x57db5f[_0x15f0b1(0x1d0)];const _0x41e632={};_0x41e632[_0x15f0b1(0x1ea)]=!![],_0x41e632[_0x15f0b1(0x1f6)]=_0x57db5f[_0x15f0b1(0x1fa)],_0x41e632[_0x15f0b1(0x1dc)]=_0x57db5f['osyfi'];const _0x2dee68={};_0x2dee68[_0x15f0b1(0x1f6)]=_0x57db5f[_0x15f0b1(0x1fb)],_0x2dee68[_0x15f0b1(0x1dc)]=_0x57db5f['osyfi'];const _0x82c664={};_0x82c664['description']=_0x57db5f[_0x15f0b1(0x1e2)],_0x82c664[_0x15f0b1(0x1dc)]=_0x57db5f[_0x15f0b1(0x1d0)];const _0x419855={};return _0x419855[_0x15f0b1(0x216)]=_0x362c68,_0x419855[_0x15f0b1(0x1b4)]=_0x284a4f,_0x419855[_0x15f0b1(0x1c8)]=_0x41e632,_0x419855[_0x15f0b1(0x1cf)]=_0x2dee68,_0x419855[_0x15f0b1(0x1d2)]=_0x82c664,_0x30dedb[_0x15f0b1(0x209)](_0x44daa9[_0x15f0b1(0x1bf)])[_0x15f0b1(0x1b9)](_0xbbd22)[_0x15f0b1(0x200)](_0x419855)[_0x15f0b1(0x1f4)](_0x57db5f[_0x15f0b1(0x1bb)])[_0x15f0b1(0x1d1)];}else{let _0x2adbbe=_0x57db5f['MDerc'];logger[_0x15f0b1(0x1ab)](_0x2adbbe);try{if(_0x57db5f[_0x15f0b1(0x1ae)](_0x57db5f[_0x15f0b1(0x21c)],_0x57db5f[_0x15f0b1(0x1ca)])){const _0x3831f7={};_0x3831f7[_0x15f0b1(0x1ef)]=_0x2c93c0,_0x3831f7[_0x15f0b1(0x21e)]=_0x5afec7[_0x15f0b1(0x21e)],_0x3831f7['browserStackLocalOptions']=_0x56dc76;const _0x3fc92d=_0x3831f7,_0x29b4fc=_0x57db5f[_0x15f0b1(0x1d5)](startLocalBinarySync,_0x3fc92d);let _0x4e1220=0x0;const _0x84ccc8=async()=>{const _0x36919e=_0x15f0b1,_0x1bd272={'siiAK':function(_0x53b4c1,_0x2f91bf){const _0x1e6ebc=a7_0x128b;return _0x57db5f[_0x1e6ebc(0x1e5)](_0x53b4c1,_0x2f91bf);},'nLwJq':function(_0x57cc86,_0x3685ef){const _0x29d85c=a7_0x128b;return _0x57db5f[_0x29d85c(0x214)](_0x57cc86,_0x3685ef);}};_0x57db5f[_0x36919e(0x1ae)](_0x57db5f[_0x36919e(0x1e6)],_0x57db5f[_0x36919e(0x1ba)])?(_0x4e1220++,_0x57db5f['xTlku'](_0x4e1220,0x1)&&_0x29b4fc&&_0x29b4fc[_0x36919e(0x1b1)]()&&_0x57db5f[_0x36919e(0x214)](stopLocalBinary,_0x29b4fc)):(_0x4a166a++,_0x1bd272[_0x36919e(0x217)](_0x3ae151,0x1)&&_0x55de7a&&_0x3790b5['isRunning']()&&_0x1bd272[_0x36919e(0x1c5)](_0x513f47,_0x339f43));};process['on'](_0x57db5f[_0x15f0b1(0x1d3)],_0x84ccc8),process['on'](_0x57db5f[_0x15f0b1(0x1c2)],_0x84ccc8),process['on'](_0x57db5f[_0x15f0b1(0x1cc)],_0x84ccc8),_0x2adbbe=_0x57db5f[_0x15f0b1(0x1f5)],logger[_0x15f0b1(0x1ab)](_0x2adbbe);}else _0x57db5f[_0x15f0b1(0x214)](_0x24a921,_0x57db5f['dAgwe']);}catch(_0x2ad779){_0x57db5f[_0x15f0b1(0x1b3)](_0x57db5f[_0x15f0b1(0x1d9)],_0x57db5f['gWBhB'])?_0x57db5f['RrxMj'](_0x141db0,_0x57db5f['hOSXj']):_0x57db5f[_0x15f0b1(0x1ce)](_0x1fbda1,_0x57db5f['YyBSA']);}}}process[_0x15f0b1(0x1dd)](0x0);};
1
+ function a7_0x1773(_0x417120,_0x7e9a2d){const _0x30144f=a7_0x3014();return a7_0x1773=function(_0x1773e1,_0xeb1d4){_0x1773e1=_0x1773e1-0xe1;let _0x223c47=_0x30144f[_0x1773e1];return _0x223c47;},a7_0x1773(_0x417120,_0x7e9a2d);}const a7_0x464e3f=a7_0x1773;function a7_0x3014(){const _0x53dcdf=['Pass\x20the\x20ID\x20of\x20the\x20Grid','1399719fqhuxI','accessKey','140408dbTeLS','WUaQm','yGSlW','JrDxZ','yMHgU','handler','cazIw','customRepeaters','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','bstackAccesskey','DozTs','KObsk','fNGTc','gridId','meUfI','vnkLF','exit','9903770WfYltn','hdnrM','../../config/constants','fAzZX','TnyXf','isTrialGrid','UkHSr','useStaging','KrnFd','cdiIk','qXogg','Advance\x20options\x20for\x20Browserstack\x20Local','VzCVx','czcIs','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','299804bfziir','create','VGJpN','use-staging','SkRxE','pxxmG','browserStackLocalOptions','eQKsn','MuZfO','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','../../config/logger','demandOption','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.','zyehh','ZTeat','1594663AGkuYb','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','kaurH','6EWVnyB','GMVgw','usage','XTLxq','desc','saivQ','45VRTiai','lobTS','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','IuEDI','qtHQG','lJQAV','UwECA','FDgLf','error','TLnTl','CtSwj','grid','DuRQl','32zAbLRH','description','Kenxo','isRunning','NyKqa','command','kYSrO','eDfVJ','../../utils/utilityMethods','advance-options','builder','mPkdk','advanceOptions','grid-id','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','nVGcY','WWcoh','info','epilogue','help','mxhLI','string','vByOe','SIGINT','54108UtibHx','PCvdU','yFKfY','FvIkF','CPsyf','lLabU','eNRZG','beforeExit','ajoNy','MfmgO','bstack-accesskey','bstack-username','CskvD','type','cYzDp','XKaVb','858537GPhqeo','LCpdQ','UGDrs','Bzzsw','UkMvb','argv','NeuTb','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','VCLUx'];a7_0x3014=function(){return _0x53dcdf;};return a7_0x3014();}(function(_0x46ee1d,_0xd0d624){const _0x577e19=a7_0x1773,_0x4f8942=_0x46ee1d();while(!![]){try{const _0x1a0732=parseInt(_0x577e19(0x146))/0x1+parseInt(_0x577e19(0x12a))/0x2+parseInt(_0x577e19(0x144))/0x3+-parseInt(_0x577e19(0xed))/0x4*(parseInt(_0x577e19(0x105))/0x5)+-parseInt(_0x577e19(0xff))/0x6*(parseInt(_0x577e19(0xfc))/0x7)+parseInt(_0x577e19(0x112))/0x8*(-parseInt(_0x577e19(0x13a))/0x9)+parseInt(_0x577e19(0x157))/0xa;if(_0x1a0732===_0xd0d624)break;else _0x4f8942['push'](_0x4f8942['shift']());}catch(_0x57f92f){_0x4f8942['push'](_0x4f8942['shift']());}}}(a7_0x3014,0x531f8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x464e3f(0x159)),{logger}=require(a7_0x464e3f(0xf7)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x464e3f(0x11a));exports[a7_0x464e3f(0x117)]=a7_0x464e3f(0x110),exports[a7_0x464e3f(0x103)]=a7_0x464e3f(0x107),exports[a7_0x464e3f(0x11c)]=_0x5252ca=>{const _0x17b621=a7_0x464e3f,_0x39d2d6={};_0x39d2d6[_0x17b621(0xf4)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x39d2d6[_0x17b621(0x10f)]=_0x17b621(0x127),_0x39d2d6[_0x17b621(0xea)]=_0x17b621(0x120),_0x39d2d6[_0x17b621(0x12e)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x39d2d6[_0x17b621(0x12c)]=_0x17b621(0x141),_0x39d2d6['VlSRj']=_0x17b621(0xe9),_0x39d2d6[_0x17b621(0x126)]=_0x17b621(0x125);const _0x27aead=_0x39d2d6,_0x399822={};_0x399822['description']=_0x27aead[_0x17b621(0xf4)],_0x399822[_0x17b621(0x137)]=_0x27aead[_0x17b621(0x10f)];const _0x9f8fff={};_0x9f8fff[_0x17b621(0x113)]=_0x27aead[_0x17b621(0xea)],_0x9f8fff[_0x17b621(0x137)]=_0x27aead[_0x17b621(0x10f)];const _0x195d82={};_0x195d82[_0x17b621(0xf8)]=!![],_0x195d82[_0x17b621(0x113)]=_0x27aead['CPsyf'],_0x195d82[_0x17b621(0x137)]=_0x27aead[_0x17b621(0x10f)];const _0x36517d={};_0x36517d[_0x17b621(0x113)]=_0x27aead[_0x17b621(0x12c)],_0x36517d['type']=_0x27aead[_0x17b621(0x10f)];const _0x453baf={};_0x453baf[_0x17b621(0x113)]=_0x27aead['VlSRj'],_0x453baf[_0x17b621(0x137)]=_0x27aead[_0x17b621(0x10f)];const _0x10180f={};return _0x10180f[_0x17b621(0x135)]=_0x399822,_0x10180f[_0x17b621(0x134)]=_0x9f8fff,_0x10180f[_0x17b621(0x11f)]=_0x195d82,_0x10180f[_0x17b621(0xf0)]=_0x36517d,_0x10180f[_0x17b621(0x11b)]=_0x453baf,_0x5252ca[_0x17b621(0x101)](HELP_HEADER_MESSAGE[_0x17b621(0xee)])[_0x17b621(0x124)](HELP_FOOTER_MESSAGE)['options'](_0x10180f)['help'](_0x27aead[_0x17b621(0x126)])['argv'];},exports[a7_0x464e3f(0x14b)]=async _0x221c43=>{const _0x20c2f0=a7_0x464e3f,_0x3eb120={'mDZxi':function(_0x426e5a,_0x16874c){return _0x426e5a===_0x16874c;},'eNRZG':function(_0x1bd4b4,_0x463473){return _0x1bd4b4(_0x463473);},'NeuTb':function(_0x3ce074,_0x119af1){return _0x3ce074===_0x119af1;},'RRQde':_0x20c2f0(0x114),'UGDrs':_0x20c2f0(0x136),'ajoNy':function(_0x5bc232,_0x311d87){return _0x5bc232(_0x311d87);},'lJQAV':_0x20c2f0(0xf6),'lobTS':function(_0x52d35a,_0x21fc13){return _0x52d35a===_0x21fc13;},'mPkdk':_0x20c2f0(0x131),'yGSlW':_0x20c2f0(0x129),'fNGTc':'SIGTERM','FDgLf':_0x20c2f0(0xf9),'fAzZX':function(_0x3db85a,_0x4998ae){return _0x3db85a===_0x4998ae;},'VCLUx':function(_0x1d38f2,_0x14665c){return _0x1d38f2(_0x14665c);},'yMHgU':'Grid\x20type:\x20Trial','AMqWv':function(_0x58851b,_0x1cdfff){return _0x58851b(_0x1cdfff);},'dsENp':_0x20c2f0(0xfd),'UwECA':_0x20c2f0(0x127),'JrDxZ':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lLabU':_0x20c2f0(0x143),'WUaQm':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','UkMvb':'Advance\x20options\x20for\x20Browserstack\x20Local','nQSAX':'help','Bzzsw':function(_0x2e4fb5,_0x51d0b7){return _0x2e4fb5!==_0x51d0b7;},'LCpdQ':_0x20c2f0(0xe7),'kYSrO':function(_0x53be5f,_0x157160){return _0x53be5f===_0x157160;},'GMVgw':_0x20c2f0(0x14e),'MfmgO':function(_0x573b17,_0x5b508d,_0x267b56){return _0x573b17(_0x5b508d,_0x267b56);},'KObsk':function(_0xbccffa,_0x5eafc5){return _0xbccffa&&_0x5eafc5;},'UkHSr':_0x20c2f0(0x14c),'WBKEn':_0x20c2f0(0x104),'MuZfO':function(_0x24aa9e,_0x18cd49){return _0x24aa9e(_0x18cd49);},'zCZus':_0x20c2f0(0xec),'FvIkF':function(_0x22cd04,_0x7326c7,_0x26ab01,_0x238004){return _0x22cd04(_0x7326c7,_0x26ab01,_0x238004);},'VRMzE':function(_0x4d489a,_0x452e29){return _0x4d489a!==_0x452e29;},'meUfI':'ZvllC','sHePj':_0x20c2f0(0x150),'NyKqa':function(_0x5f5b5b,_0x3eb1da){return _0x5f5b5b(_0x3eb1da);},'hdnrM':function(_0x16ac33,_0x571ca1){return _0x16ac33===_0x571ca1;},'ZTeat':'true','qtHQG':function(_0x5c526b,_0x142135){return _0x5c526b===_0x142135;},'WWcoh':_0x20c2f0(0xe2),'SkRxE':_0x20c2f0(0x12b),'cYzDp':_0x20c2f0(0x108),'nVGcY':_0x20c2f0(0xeb),'VGJpN':function(_0x339950,_0x5f5a3c){return _0x339950(_0x5f5a3c);},'zyehh':_0x20c2f0(0x10e),'RcpEe':_0x20c2f0(0x128)};let _0xd04f2c=_0x221c43['bstackUsername'],_0x4d1ecb=_0x221c43[_0x20c2f0(0x14f)];const _0x5f047f=_0x221c43[_0x20c2f0(0x11e)],_0x32f223=_0x44e67c=>{const _0x5a6287=_0x20c2f0;_0x3eb120[_0x5a6287(0x140)](_0x3eb120['RRQde'],_0x3eb120[_0x5a6287(0x13c)])?(_0x40a82b++,_0x3eb120['mDZxi'](_0x5f5ca1,0x1)&&_0x22ab30&&_0x3ea103['isRunning']()&&_0x3eb120['eNRZG'](_0x5a2196,_0x915c8)):(logger[_0x5a6287(0x10d)](_0x44e67c),process[_0x5a6287(0x156)](0x1));};[_0xd04f2c,_0x4d1ecb]=_0x3eb120[_0x20c2f0(0x133)](fetchOrUpdateUserConfig,_0xd04f2c,_0x4d1ecb);!_0x3eb120[_0x20c2f0(0x151)](_0xd04f2c,_0x4d1ecb)&&(_0x3eb120['Bzzsw'](_0x3eb120[_0x20c2f0(0xe4)],_0x3eb120['WBKEn'])?_0x3eb120[_0x20c2f0(0xf5)](_0x32f223,_0x3eb120['zCZus']):_0x3eb120['ajoNy'](_0x315200,_0x3eb120['lJQAV']));const _0x15f970=_0x221c43[_0x20c2f0(0x153)],[_0x777366,_0x88e92c]=await _0x3eb120[_0x20c2f0(0x12d)](getGridDetails,_0xd04f2c,_0x4d1ecb,_0x15f970);if(!_0x88e92c){if(_0x3eb120['VRMzE'](_0x3eb120[_0x20c2f0(0x154)],_0x3eb120['sHePj']))_0x3eb120[_0x20c2f0(0x116)](_0x32f223,_0x3eb120[_0x20c2f0(0x100)]);else{const _0x40bf97={};_0x40bf97[_0x20c2f0(0x145)]=_0x34ff16,_0x40bf97[_0x20c2f0(0x14d)]=_0x4e25bf['customRepeaters'],_0x40bf97['browserStackLocalOptions']=_0x1e8806;const _0x243719=_0x40bf97,_0x1378f4=_0x3eb120[_0x20c2f0(0x130)](_0x58acc2,_0x243719);let _0x53660d=0x0;const _0xf26daf=async()=>{const _0xa9109e=_0x20c2f0;_0x53660d++,_0x3eb120[_0xa9109e(0x106)](_0x53660d,0x1)&&_0x1378f4&&_0x1378f4[_0xa9109e(0x115)]()&&_0x3eb120[_0xa9109e(0x132)](_0x590888,_0x1378f4);};_0x1845f1['on'](_0x3eb120['mPkdk'],_0xf26daf),_0x3aa578['on'](_0x3eb120['yGSlW'],_0xf26daf),_0x3a1c31['on'](_0x3eb120[_0x20c2f0(0x152)],_0xf26daf),_0x5ae9be=_0x3eb120[_0x20c2f0(0x10c)],_0x17063c['info'](_0x37dffa);}}const _0x31a5e6=_0x3eb120[_0x20c2f0(0x158)](_0x221c43[_0x20c2f0(0xe5)],_0x3eb120[_0x20c2f0(0xfb)])?!![]:![];if(_0x88e92c&&_0x88e92c[_0x20c2f0(0xe3)]&&_0x31a5e6){if(_0x3eb120['qtHQG'](_0x3eb120[_0x20c2f0(0x122)],_0x3eb120[_0x20c2f0(0xf1)]))_0x39a6ed[_0x20c2f0(0x10d)](_0x8d22ae),_0x18e6db[_0x20c2f0(0x156)](0x1);else{let _0x3d13ea=_0x3eb120[_0x20c2f0(0x14a)];logger[_0x20c2f0(0x123)](_0x3d13ea);try{if(_0x3eb120[_0x20c2f0(0x109)](_0x3eb120[_0x20c2f0(0x138)],_0x3eb120[_0x20c2f0(0x121)])){const _0x390de0={'eDfVJ':function(_0x5bc393,_0x5cbf38){return _0x3eb120['fAzZX'](_0x5bc393,_0x5cbf38);},'KrnFd':function(_0x346cb2,_0x6dd99a){return _0x3eb120['VCLUx'](_0x346cb2,_0x6dd99a);}};let _0x110830=_0x3eb120[_0x20c2f0(0x14a)];_0x3af5f7['info'](_0x110830);try{const _0x2756b3={};_0x2756b3[_0x20c2f0(0x145)]=_0x32d930,_0x2756b3[_0x20c2f0(0x14d)]=_0x41fef9[_0x20c2f0(0x14d)],_0x2756b3[_0x20c2f0(0xf3)]=_0x438b42;const _0x56483d=_0x2756b3,_0xc1f61f=_0x3eb120['AMqWv'](_0x434fda,_0x56483d);let _0xb1a24c=0x0;const _0x248e71=async()=>{const _0x2f78b2=_0x20c2f0;_0xb1a24c++,_0x390de0[_0x2f78b2(0x119)](_0xb1a24c,0x1)&&_0xc1f61f&&_0xc1f61f[_0x2f78b2(0x115)]()&&_0x390de0[_0x2f78b2(0xe6)](_0x485a22,_0xc1f61f);};_0x1d9e7f['on'](_0x3eb120[_0x20c2f0(0x11d)],_0x248e71),_0xdd7b08['on'](_0x3eb120[_0x20c2f0(0x148)],_0x248e71),_0x3b7c47['on'](_0x3eb120[_0x20c2f0(0x152)],_0x248e71),_0x110830=_0x3eb120['FDgLf'],_0x2b4b66[_0x20c2f0(0x123)](_0x110830);}catch(_0x224926){_0x3eb120[_0x20c2f0(0x142)](_0x3d3ef5,_0x3eb120[_0x20c2f0(0x10a)]);}}else{const _0xd2beca={};_0xd2beca[_0x20c2f0(0x145)]=_0x4d1ecb,_0xd2beca['customRepeaters']=_0x88e92c['customRepeaters'],_0xd2beca[_0x20c2f0(0xf3)]=_0x5f047f;const _0x39ee17=_0xd2beca,_0x3c39ca=_0x3eb120[_0x20c2f0(0xef)](startLocalBinarySync,_0x39ee17);let _0x3ed3f4=0x0;const _0x47d8d0=async()=>{const _0x33d901=_0x20c2f0,_0x47e090={};_0x47e090['XTLxq']=_0x3eb120['dsENp'],_0x47e090['kaurH']=_0x3eb120[_0x33d901(0x10b)],_0x47e090[_0x33d901(0x111)]=_0x3eb120[_0x33d901(0x149)],_0x47e090[_0x33d901(0x155)]=_0x3eb120[_0x33d901(0x12f)],_0x47e090[_0x33d901(0xe8)]=_0x3eb120[_0x33d901(0x147)],_0x47e090[_0x33d901(0x139)]=_0x3eb120[_0x33d901(0x13e)],_0x47e090[_0x33d901(0xf2)]=_0x3eb120['nQSAX'];const _0x3752fa=_0x47e090;if(_0x3eb120[_0x33d901(0x13d)](_0x3eb120[_0x33d901(0x13b)],_0x3eb120[_0x33d901(0x13b)])){const _0x21f19d={};_0x21f19d[_0x33d901(0x113)]=_0x3752fa[_0x33d901(0x102)],_0x21f19d[_0x33d901(0x137)]=_0x3752fa[_0x33d901(0xfe)];const _0x5f27bf={};_0x5f27bf[_0x33d901(0x113)]=_0x3752fa[_0x33d901(0x111)],_0x5f27bf['type']=_0x3752fa[_0x33d901(0xfe)];const _0x43eee6={};_0x43eee6['demandOption']=!![],_0x43eee6['description']=_0x3752fa['vnkLF'],_0x43eee6[_0x33d901(0x137)]=_0x3752fa[_0x33d901(0xfe)];const _0x220abf={};_0x220abf[_0x33d901(0x113)]=_0x3752fa[_0x33d901(0xe8)],_0x220abf[_0x33d901(0x137)]=_0x3752fa[_0x33d901(0xfe)];const _0x3a8a53={};_0x3a8a53[_0x33d901(0x113)]=_0x3752fa['XKaVb'],_0x3a8a53[_0x33d901(0x137)]=_0x3752fa[_0x33d901(0xfe)];const _0x4c15ab={};return _0x4c15ab[_0x33d901(0x135)]=_0x21f19d,_0x4c15ab[_0x33d901(0x134)]=_0x5f27bf,_0x4c15ab[_0x33d901(0x11f)]=_0x43eee6,_0x4c15ab['use-staging']=_0x220abf,_0x4c15ab[_0x33d901(0x11b)]=_0x3a8a53,_0x134829['usage'](_0x1316f9['create'])['epilogue'](_0x538015)['options'](_0x4c15ab)[_0x33d901(0x125)](_0x3752fa[_0x33d901(0xf2)])[_0x33d901(0x13f)];}else _0x3ed3f4++,_0x3eb120[_0x33d901(0x118)](_0x3ed3f4,0x1)&&_0x3c39ca&&_0x3c39ca[_0x33d901(0x115)]()&&_0x3eb120[_0x33d901(0x132)](stopLocalBinary,_0x3c39ca);};process['on'](_0x3eb120[_0x20c2f0(0x11d)],_0x47d8d0),process['on'](_0x3eb120['yGSlW'],_0x47d8d0),process['on'](_0x3eb120['fNGTc'],_0x47d8d0),_0x3d13ea=_0x3eb120[_0x20c2f0(0x10c)],logger[_0x20c2f0(0x123)](_0x3d13ea);}}catch(_0x4ee8e7){_0x3eb120[_0x20c2f0(0xe1)](_0x3eb120[_0x20c2f0(0xfa)],_0x3eb120['RcpEe'])?_0x3eb120[_0x20c2f0(0x142)](_0x4565ae,_0x3eb120['GMVgw']):_0x3eb120['MuZfO'](_0x32f223,_0x3eb120[_0x20c2f0(0x10a)]);}}}process[_0x20c2f0(0x156)](0x0);};
@@ -1 +1 @@
1
- const a8_0x59fc08=a8_0x1a2d;function a8_0x30e6(){const _0x545aba=['hXMqM','help','create_commands','1603BVrNnC','Create\x20a\x20new\x20Automation\x20grid.','jBMeY','5729080ANvNVY','builder','111090pedWGC','create','recommendCommands','strict','handler','898412rFcvZN','../config/constants','290918SkCDzm','5706613DCVaGz','9dBTGfY','commandDir','11724xPoWer','usage','5ZyvUpR','epilogue','3357657UlvUkC','882RkCvMt'];a8_0x30e6=function(){return _0x545aba;};return a8_0x30e6();}(function(_0x1c0fa2,_0x48fb9d){const _0x3d1b46=a8_0x1a2d,_0x3be75f=_0x1c0fa2();while(!![]){try{const _0x1fe168=parseInt(_0x3d1b46(0x155))/0x1*(parseInt(_0x3d1b46(0x153))/0x2)+parseInt(_0x3d1b46(0x15b))/0x3+parseInt(_0x3d1b46(0x151))/0x4*(parseInt(_0x3d1b46(0x159))/0x5)+parseInt(_0x3d1b46(0x157))/0x6*(parseInt(_0x3d1b46(0x160))/0x7)+-parseInt(_0x3d1b46(0x163))/0x8+parseInt(_0x3d1b46(0x15c))/0x9*(-parseInt(_0x3d1b46(0x165))/0xa)+-parseInt(_0x3d1b46(0x154))/0xb;if(_0x1fe168===_0x48fb9d)break;else _0x3be75f['push'](_0x3be75f['shift']());}catch(_0x2fe182){_0x3be75f['push'](_0x3be75f['shift']());}}}(a8_0x30e6,0xbda73));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x59fc08(0x152));function a8_0x1a2d(_0x2244b9,_0xb6f334){const _0x30e604=a8_0x30e6();return a8_0x1a2d=function(_0x1a2df9,_0x192c6c){_0x1a2df9=_0x1a2df9-0x14d;let _0x1c1fb6=_0x30e604[_0x1a2df9];return _0x1c1fb6;},a8_0x1a2d(_0x2244b9,_0xb6f334);}exports['command']='create',exports['desc']=a8_0x59fc08(0x161),exports[a8_0x59fc08(0x164)]=function(_0x3a1af9){const _0x16b674=a8_0x59fc08,_0x198593={};_0x198593[_0x16b674(0x162)]=_0x16b674(0x15f),_0x198593[_0x16b674(0x15d)]='help';const _0x4370a2=_0x198593;return _0x3a1af9[_0x16b674(0x158)](HELP_HEADER_MESSAGE[_0x16b674(0x14d)])[_0x16b674(0x15a)](HELP_FOOTER_MESSAGE)[_0x16b674(0x156)](_0x4370a2['jBMeY'])['demandCommand']()[_0x16b674(0x14e)]()[_0x16b674(0x14f)]()[_0x16b674(0x15e)](_0x4370a2['hXMqM']);},exports[a8_0x59fc08(0x150)]=function(_0x439e6e){};
1
+ function a8_0x442b(_0x51397a,_0x552557){const _0x2b5467=a8_0x2b54();return a8_0x442b=function(_0x442be9,_0x1b7bdd){_0x442be9=_0x442be9-0x103;let _0x182c35=_0x2b5467[_0x442be9];return _0x182c35;},a8_0x442b(_0x51397a,_0x552557);}const a8_0x4c899d=a8_0x442b;(function(_0x158892,_0x2363f6){const _0x26f76c=a8_0x442b,_0x2e8126=_0x158892();while(!![]){try{const _0x924541=-parseInt(_0x26f76c(0x118))/0x1+-parseInt(_0x26f76c(0x106))/0x2+-parseInt(_0x26f76c(0x113))/0x3+-parseInt(_0x26f76c(0x10a))/0x4*(parseInt(_0x26f76c(0x115))/0x5)+parseInt(_0x26f76c(0x103))/0x6*(parseInt(_0x26f76c(0x108))/0x7)+parseInt(_0x26f76c(0x110))/0x8+parseInt(_0x26f76c(0x10d))/0x9*(parseInt(_0x26f76c(0x111))/0xa);if(_0x924541===_0x2363f6)break;else _0x2e8126['push'](_0x2e8126['shift']());}catch(_0x3c1a1b){_0x2e8126['push'](_0x2e8126['shift']());}}}(a8_0x2b54,0x91408));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x4c899d(0x11a));function a8_0x2b54(){const _0x468ed8=['387826OPpjKm','usage','../config/constants','4470Uhpxfh','recommendCommands','HMnwI','2163210cwuKCF','Create\x20a\x20new\x20Automation\x20grid.','9527rsHCYy','builder','1444UmGIvn','strict','handler','2853AufwhM','commandDir','command','186440aBApXH','59950reKezX','create_commands','582723ZwPbGq','ZYqQr','9405ymgglz','help','demandCommand'];a8_0x2b54=function(){return _0x468ed8;};return a8_0x2b54();}exports[a8_0x4c899d(0x10f)]='create',exports['desc']=a8_0x4c899d(0x107),exports[a8_0x4c899d(0x109)]=function(_0x247492){const _0x520bd6=a8_0x4c899d,_0x3e68be={};_0x3e68be[_0x520bd6(0x114)]=_0x520bd6(0x112),_0x3e68be[_0x520bd6(0x105)]=_0x520bd6(0x116);const _0x5cc244=_0x3e68be;return _0x247492[_0x520bd6(0x119)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x520bd6(0x10e)](_0x5cc244[_0x520bd6(0x114)])[_0x520bd6(0x117)]()[_0x520bd6(0x104)]()[_0x520bd6(0x10b)]()[_0x520bd6(0x116)](_0x5cc244['HMnwI']);},exports[a8_0x4c899d(0x10c)]=function(_0x33a1ec){};