browserstack-node-sdk 1.34.41 → 1.34.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x3699eb=a9_0x5ef0;(function(_0x3760d3,_0x36129c){const _0x4710a0=a9_0x5ef0,_0x3367c6=_0x3760d3();while(!![]){try{const _0x1abf83=-parseInt(_0x4710a0(0x274))/0x1*(parseInt(_0x4710a0(0x1be))/0x2)+-parseInt(_0x4710a0(0x212))/0x3+-parseInt(_0x4710a0(0x211))/0x4+-parseInt(_0x4710a0(0x1e3))/0x5+-parseInt(_0x4710a0(0x317))/0x6*(-parseInt(_0x4710a0(0x1b2))/0x7)+-parseInt(_0x4710a0(0x2a7))/0x8*(parseInt(_0x4710a0(0x2dd))/0x9)+parseInt(_0x4710a0(0x25d))/0xa*(parseInt(_0x4710a0(0x1cf))/0xb);if(_0x1abf83===_0x36129c)break;else _0x3367c6['push'](_0x3367c6['shift']());}catch(_0x12de60){_0x3367c6['push'](_0x3367c6['shift']());}}}(a9_0x2f40,0x1c90c));function a9_0x2f40(){const _0x17c767=['NRwHd','1HpWInB','hJOhR','skip-tls-cert-verify','Will\x20be\x20spawning\x20the\x20grid\x20','LLXqZ','isPrivateGrid','js-yaml','FhphV','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Found\x20Subnets:\x20','XyaiS','username','browserstack','usage','Cluster\x20','isSubnetsValid','exIxz','bOeQY','XoSia','gpobL','bitnami-redis.yaml','debug','replace','get-grid-url-auth-failed','AAzjU','ISjea','ERROR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','qJnSe','NmMDx','spec','MxElE','wkgcx','setupNewCluster','imtog','default','bXIhO','tcxEe','cluster-name','Namespace\x20created','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','gblcZ','Adding\x20Secret\x20Mapping','SPHaY','rrnnW','cldOi','yFDVH','Epyd5nXbRK','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','vvZnf','SZoRa','104EYBWjE','Hub\x20HA\x20setup\x20completed\x20successfully.','prespawned-cluster-args-not-passed','instanceType','iKoeZ','stringify','hXilc','zcQSn','requestId','skipTlsCertVerify','LxVJR','YgWMD','MmenS','Spawning\x20grid\x20on\x20to\x20the\x20cluster','options','../../utils/gridComponents','IUjpP','niwaG','info','CZHcs','Enabling\x20Hub\x20HA\x20flow','qemTZ','Added\x20Turboscale\x20Uploader\x20deployment.','LKCTv','CLI_RUN_STARTED','sEZlp','BijwX','ROZZn','ckMgA','stack','HUUBy','defaultGridProfile','FeBGP','GurNs','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','addListeners','rWhmJ','PivxP','string','cUySq','qAxCK','description','alreadyPresent','oBegD','JGMyn','utf-8','Browserstack','../..','turboscale-uploader.yaml','sfFVs','foVRI','name','eWLJr','PdaWi','110061WBqieJ','Spawning\x20the\x20grid\x20','hub-ha','PvEPd','qlHbC','TkoSn','zDfpO','bstackAccesskey','Hkoul','PcEug','VgJAa','gridProfile','hubVersion','YhuKx','14|12|4|13|0|3|9|6|7|5|8|11|2|1|10|15','PfuSi','EQuyA','get-grid-url-non-200','boolean','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','pre-spawned-invalid-subnets','join','create-grid-checks-auth-failed','uuid','3|1|2|4|0','cuLPu','subnets','Adding\x20Websocket\x20listeners','WVojP','\x20are\x20not\x20present\x20in\x20VPC:\x20','NthwJ','toLowerCase','TbnUS','axald','templates','lfamg','DZhYm','message','bMPre','Adding\x20Redis\x20deployment...','body','kafkaPassword','concurrency','HcOAf','pxzbr','UPykk','1|4|3|2|0','Creating\x20Hub\x20HA\x20resources','create-grid-checks-null-response','loadAll','JvHou','JcTtQ','FxSZr','eQUoE','desc','kBUeT','Cluster:\x20','xRpPC','204tAmGvK','LhUiy','Created\x20Hub\x20HA\x20resources','VxZne','QjKlS','EhpIC','Pwusi','oKcmh','UPZqI','vpc','/wd/hub','UrLSK','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','ybaZJ','yCGaG','bitnami-kafka.yaml','Found\x20VPC:\x20','xQUHR','error','/packages/cli/get-grid-url?gridIdentifier=','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','vcxUO','/packages/cli/create-grid-checks','TwVaq','WIluk','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','tWWRo','WQOeH','SIBJU','\x20using\x20\x27','grid-name','CcOou','Deleting\x20the\x20CloudFormation\x20Stacks','isClusterPresent','rsyCw','password','udFeC','ZiHKu','exit','clusterName','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','ANLXU','tuQCR','SfyiA','hubharesources','beUrJ','Added\x20Kafka\x20deployment.','cCvwg','CLI_RUN_FINISHED','bstackUsername','HoHUT','clusterRegion','<PasswordPlaceholder>','../../utils/webSocketUtils','gUYrC','private-ingress-nginx-controller','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','jfdII','managedBy','Subnets:\x20','XRnFp','YjorJ','setupAutoscaler','TSruk','jHJWj','VtCdp','template','HMVPZ','cloudProvider','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Skip\x20insecure\x20cert\x20verification.','uploaderVersion','kRSkZ','path','HYNgn','delay','CvsNW','Flag\x20to\x20enable\x20Hub\x20HA','metadata','ZsfAE','APWFT','rtmzq','s3bucket','25739rOqwLS','iSCoU','RzUML','EHaiJ','BCoDx','securityGroups','zeuGP','user','got','yRlnV','<UsernamePlaceholder>','Namespace\x20Created','386430eplvTB','cbEKI','includes','ArKyv','ZMDHH','TnLgE','tiFcK','ZfFNv','oUWCc','split','uploaderImageVersion','XcAaP','CjAex','eRkBn','SarcZ','fZLCE','qyOhF','2461470VXCeMH','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','oilqN','updateClusterAlreadyPresent','gridProfiles','CLI\x20run\x20started','OwEKt','serviceAccountName','oygvz','yZhvS','LOG','cloud-provider','sHlxL','GfEvZ','WnGqK','browserstack-secret.yaml','asqHT','hJjXd','create-grid-called','vhHyF','1162335aiIvYC','wwEXn','sendResourceDataToHST','Jdzlr','GET','CmynT','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Added\x20Redis\x20deployment.','FkYCj','readNamespacedService','type','PwyDO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','boRJG','kafkaUploader','PXrHh','createNamespace','../../utils/createk8sClient','isNewAWSCluster','rDqNu','hCUjj','iHYvv','privateGrid','https://','VXzUb','region','pre-spawned-invalid-vpc','pIljL','gridName','zyryh','reconnecting-websocket','Spawning\x20Grid\x20on\x20the\x20Cluster','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','VdOJt','USFBU','WebSocket','route53','ZjiPY','minNodes','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','idZJo','yGeux','redisPassword','YJDNK','ZrvCg','hubHaNameSpace','141512GfJAYN','177861zvqHWW','statusCode','pre-spawned-subnets-not-selected','grid-profile','maxNodes','aRzJf','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QvNYF','parse','WoGXf','connectionTimeout','../../config/logger','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','eThXN','length','UhIix','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','help','getGridHostname','Cluster\x20created\x20successfully','azurefile-csi-premium','TyMjY','sendEventToBackend','CLI\x20run\x20finished:\x20','UkRNzNYCBU','mgkWq','create-grid-checks-invalid-profile','browserVersion','Creating\x20namespace','1|3|2|4|0','deleteCluster','sPsOS','yVjra','isVPCPresent','HHqWs','avYFV','hdMhy','bwWlO','\x20in\x20existing\x20cluster\x20\x27','TfXCY','argv','newCluster','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','gjzls','oGkDK','\x27\x20grid\x20profile','builder','create','private-grid','hubHa','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','zjoMr','warn','Grid\x20profile\x20fetched\x20from\x20backend','createOtherResources','ojHwb','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','existsSync','unmBS','init-not-called','readFileAsync','lotNg','zqFsL','5|1|4|7|6|2|8|3|0','tSbGM','xItEJ','enableHubHa','Adding\x20Turboscale\x20Uploader\x20deployment...','heffi','createdBy','UfvPR','zqvyj','twSgG','hASGR','30HhcuZE','XDhqZ','EpcdY','non-aws-azure-cluster','epilogue','ZwFZB','bNmGM','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','LluKR','namespace','nLlKZ','labels','uqzUy','hub-ha-deployments-failed','2|4|5|1|6|7|3|0|8','dPauJ','true','eNyTA','gridProfileId','pgTLn','KBLAW','hSEzn'];a9_0x2f40=function(){return _0x17c767;};return a9_0x2f40();}function a9_0x5ef0(_0x3e3ebc,_0x497a77){const _0x2f401b=a9_0x2f40();return a9_0x5ef0=function(_0x5ef0dd,_0x1ab1ae){_0x5ef0dd=_0x5ef0dd-0x165;let _0x497f8f=_0x2f401b[_0x5ef0dd];return _0x497f8f;},a9_0x5ef0(_0x3e3ebc,_0x497a77);}const fs=require('fs'),ws=require('ws'),path=require(a9_0x3699eb(0x1a8)),yaml=require(a9_0x3699eb(0x27a)),ReconnectingWebSocket=require(a9_0x3699eb(0x201)),got=require(a9_0x3699eb(0x1ba)),{v4:uuidv4}=require(a9_0x3699eb(0x2f4)),webSocketUtils=require(a9_0x3699eb(0x193)),{logger}=require(a9_0x3699eb(0x21d)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x3699eb(0x2b6)),{createK8sClient}=require(a9_0x3699eb(0x1f4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']='grid',exports[a9_0x3699eb(0x313)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x3699eb(0x240)]=function(_0x4e7d58){const _0x4fafaa=a9_0x3699eb,_0x5dfa81={};_0x5dfa81['wwEXn']=_0x4fafaa(0x2a4),_0x5dfa81[_0x4fafaa(0x20b)]=_0x4fafaa(0x2cd),_0x5dfa81[_0x4fafaa(0x253)]=_0x4fafaa(0x218),_0x5dfa81['EHaiJ']=_0x4fafaa(0x24b),_0x5dfa81[_0x4fafaa(0x25e)]=_0x4fafaa(0x1ef),_0x5dfa81[_0x4fafaa(0x1dd)]=_0x4fafaa(0x21e),_0x5dfa81[_0x4fafaa(0x2ad)]='Create\x20a\x20private/public\x20grid.',_0x5dfa81['VtCdp']=_0x4fafaa(0x1a5),_0x5dfa81[_0x4fafaa(0x176)]=_0x4fafaa(0x2ef),_0x5dfa81[_0x4fafaa(0x2a0)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x5dfa81[_0x4fafaa(0x1d7)]='help';const _0x57fd5b=_0x5dfa81,_0x4d264e={};_0x4d264e[_0x4fafaa(0x2d0)]=_0x57fd5b[_0x4fafaa(0x1e4)],_0x4d264e[_0x4fafaa(0x1ed)]=_0x57fd5b[_0x4fafaa(0x20b)];const _0x6b5952={};_0x6b5952['description']=_0x57fd5b['tSbGM'],_0x6b5952['type']=_0x57fd5b['idZJo'];const _0x41e6e3={};_0x41e6e3[_0x4fafaa(0x2d0)]=_0x57fd5b[_0x4fafaa(0x1b5)],_0x41e6e3[_0x4fafaa(0x1ed)]=_0x57fd5b['idZJo'];const _0x481bca={};_0x481bca[_0x4fafaa(0x2d0)]=_0x57fd5b[_0x4fafaa(0x25e)],_0x481bca[_0x4fafaa(0x1ed)]=_0x57fd5b[_0x4fafaa(0x20b)];const _0x2a3a72={};_0x2a3a72[_0x4fafaa(0x2d0)]=_0x57fd5b[_0x4fafaa(0x1dd)],_0x2a3a72[_0x4fafaa(0x1ed)]=_0x57fd5b[_0x4fafaa(0x20b)];const _0x395ff2={};_0x395ff2[_0x4fafaa(0x2d0)]=_0x57fd5b[_0x4fafaa(0x2ad)],_0x395ff2[_0x4fafaa(0x1ed)]=_0x57fd5b[_0x4fafaa(0x20b)];const _0x33c89a={};_0x33c89a['description']=_0x57fd5b[_0x4fafaa(0x1a0)],_0x33c89a[_0x4fafaa(0x1ed)]=_0x57fd5b[_0x4fafaa(0x176)],_0x33c89a[_0x4fafaa(0x297)]=![];const _0x16766b={};_0x16766b[_0x4fafaa(0x2d0)]=_0x57fd5b[_0x4fafaa(0x2a0)],_0x16766b[_0x4fafaa(0x1ed)]=_0x57fd5b[_0x4fafaa(0x176)],_0x16766b[_0x4fafaa(0x297)]=![];const _0x13e3bd={};return _0x13e3bd['grid-name']=_0x4d264e,_0x13e3bd['grid-profile']=_0x6b5952,_0x13e3bd[_0x4fafaa(0x29a)]=_0x41e6e3,_0x13e3bd[_0x4fafaa(0x1da)]=_0x481bca,_0x13e3bd[_0x4fafaa(0x1fc)]=_0x2a3a72,_0x13e3bd['private-grid']=_0x395ff2,_0x13e3bd['skip-tls-cert-verify']=_0x33c89a,_0x13e3bd['hub-ha']=_0x16766b,_0x4e7d58[_0x4fafaa(0x281)](HELP_HEADER_MESSAGE[_0x4fafaa(0x241)])[_0x4fafaa(0x261)](HELP_FOOTER_MESSAGE)[_0x4fafaa(0x2b5)](_0x13e3bd)[_0x4fafaa(0x223)](_0x57fd5b[_0x4fafaa(0x1d7)])[_0x4fafaa(0x23a)];},exports['handler']=async function(_0x14f0d1){const _0x5e1701=a9_0x3699eb,_0x3e2aeb={'hASGR':'http','LxVJR':'https','HUUBy':_0x5e1701(0x26d),'APWFT':'default','FkYCj':function(_0x5b5210,_0x4fa35e){return _0x5b5210(_0x4fa35e);},'yCGaG':_0x5e1701(0x2eb),'oUWCc':function(_0x92ed90,_0x5307b4){return _0x92ed90!==_0x5307b4;},'ckMgA':function(_0x139a84,_0x25f739,_0x3038c7,_0x3d0ded,_0xe6ba90,_0x5b0ef5,_0x3a2a98,_0x18fc36,_0x233746,_0x2278f7,_0x332d3b,_0x2e7f19){return _0x139a84(_0x25f739,_0x3038c7,_0x3d0ded,_0xe6ba90,_0x5b0ef5,_0x3a2a98,_0x18fc36,_0x233746,_0x2278f7,_0x332d3b,_0x2e7f19);},'sfFVs':_0x5e1701(0x246),'ROZZn':function(_0x1c5faa,_0x34ac0c){return _0x1c5faa===_0x34ac0c;},'ZjiPY':_0x5e1701(0x226),'gblcZ':_0x5e1701(0x2a4),'QjKlS':_0x5e1701(0x2cd),'PdaWi':_0x5e1701(0x218),'FeBGP':_0x5e1701(0x24b),'zjoMr':_0x5e1701(0x1ef),'UPykk':_0x5e1701(0x21e),'VLWWa':'Create\x20a\x20private/public\x20grid.','lsYsJ':'Skip\x20insecure\x20cert\x20verification.','nOzwW':_0x5e1701(0x2ef),'ArKyv':_0x5e1701(0x1ac),'QvNYF':_0x5e1701(0x223),'mxGLq':_0x5e1701(0x22f),'sHlxL':_0x5e1701(0x2bb),'TwVaq':_0x5e1701(0x22a),'yZhvS':_0x5e1701(0x280),'FxSZr':_0x5e1701(0x2a3),'TkoSn':function(_0x1d3543,_0x3d5b8c){return _0x1d3543(_0x3d5b8c);},'WVojP':'premium-rwo','KBLAW':_0x5e1701(0x252),'XRnFp':_0x5e1701(0x1d4),'eRkBn':_0x5e1701(0x170),'fZLCE':function(_0x418e4d){return _0x418e4d();},'zqvyj':function(_0x169936,_0x316fc9){return _0x169936!==_0x316fc9;},'FcKpU':_0x5e1701(0x31a),'JDxGK':_0x5e1701(0x2c9),'imtog':function(_0x5354e0,_0x149922,_0x1dad65,_0xb67afd,_0xb7bbc8,_0x1967fa,_0x5d972b){return _0x5354e0(_0x149922,_0x1dad65,_0xb67afd,_0xb7bbc8,_0x1967fa,_0x5d972b);},'twSgG':_0x5e1701(0x1e1),'fCAtL':_0x5e1701(0x24e),'pxzbr':function(_0x2b3367,_0x1ddd91,_0x5c2467,_0x557c53,_0x19aec6,_0x525fe9,_0x5e33b7){return _0x2b3367(_0x1ddd91,_0x5c2467,_0x557c53,_0x19aec6,_0x525fe9,_0x5e33b7);},'GurNs':function(_0x269462){return _0x269462();},'QRhfK':_0x5e1701(0x1bc),'axald':_0x5e1701(0x192),'QFUcX':_0x5e1701(0x2f8),'YhuKx':function(_0x1be1d1,_0x44947f){return _0x1be1d1===_0x44947f;},'SZoRa':_0x5e1701(0x2a2),'dkIip':_0x5e1701(0x188),'FvvCc':_0x5e1701(0x2fd),'Hkoul':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','oKcmh':function(_0x2d8bbd,_0x3c0f44,_0x4dc5b7,_0x5ada0b,_0x2c51f3,_0x2b7174,_0x100ca9,_0x4ccb49){return _0x2d8bbd(_0x3c0f44,_0x4dc5b7,_0x5ada0b,_0x2c51f3,_0x2b7174,_0x100ca9,_0x4ccb49);},'cCvwg':_0x5e1701(0x2a9),'TSruk':_0x5e1701(0x2d2),'asqHT':_0x5e1701(0x27c),'JGMyn':function(_0x33309c,_0x370c8d,_0x6398e2,_0x587b7b,_0x39964f,_0x58206f,_0x3941cf,_0xa0b37e){return _0x33309c(_0x370c8d,_0x6398e2,_0x587b7b,_0x39964f,_0x58206f,_0x3941cf,_0xa0b37e);},'yBkTG':_0x5e1701(0x260),'FMhlV':function(_0x5250c7,_0x258c79){return _0x5250c7===_0x258c79;},'iSCoU':function(_0x622e22,_0x2e734b){return _0x622e22===_0x2e734b;},'avYFV':_0x5e1701(0x1a2),'AkZfD':function(_0xc22f7,_0x3f8511,_0x30b3ed,_0x45643d,_0x1d215b,_0x591aa3,_0x2bd1ed){return _0xc22f7(_0x3f8511,_0x30b3ed,_0x45643d,_0x1d215b,_0x591aa3,_0x2bd1ed);},'CjAex':function(_0x35978a,_0x4131fa){return _0x35978a===_0x4131fa;},'cjrhK':'ROuuG','oilqN':_0x5e1701(0x2b3),'qlHbC':function(_0x5d7f21,_0x1e879a){return _0x5d7f21===_0x1e879a;},'JRGxd':_0x5e1701(0x2a5),'WYCCB':_0x5e1701(0x178),'UhIix':function(_0x11df76,_0x568521){return _0x11df76!==_0x568521;},'LWhIE':_0x5e1701(0x1f7),'NKLca':_0x5e1701(0x1d5),'Jglhl':_0x5e1701(0x1e7),'dNfNn':function(_0xe31c4a,_0x4d6035,_0x49c0ef){return _0xe31c4a(_0x4d6035,_0x49c0ef);},'ZwFZB':_0x5e1701(0x29f),'ZMDHH':function(_0x469fb9,_0x54104a,_0x140422){return _0x469fb9(_0x54104a,_0x140422);},'hJjXd':function(_0x393949,_0x5233a9){return _0x393949===_0x5233a9;},'sPsOS':function(_0x1b9803,_0x4a7338){return _0x1b9803===_0x4a7338;},'eQUoE':_0x5e1701(0x1ab),'AAzjU':_0x5e1701(0x1ee),'iKoeZ':_0x5e1701(0x28f),'bRkQF':function(_0x2b5846,_0x4e9aa2,_0x29d78f,_0xc3e46d,_0x9ef71c,_0x4e7295,_0x405544,_0x1b3e81){return _0x2b5846(_0x4e9aa2,_0x29d78f,_0xc3e46d,_0x9ef71c,_0x4e7295,_0x405544,_0x1b3e81);},'HoHUT':_0x5e1701(0x30d),'jfdII':function(_0x7d8442,_0xbff207){return _0x7d8442===_0xbff207;},'iHYvv':_0x5e1701(0x237),'bcorQ':_0x5e1701(0x20a),'NRwHd':function(_0x20f6f6,_0x5a50a2,_0x163688,_0x589b27,_0x5bcb87,_0x3febce,_0x93925b,_0x10e3be){return _0x20f6f6(_0x5a50a2,_0x163688,_0x589b27,_0x5bcb87,_0x3febce,_0x93925b,_0x10e3be);},'tiFcK':_0x5e1701(0x2f3),'exIxz':function(_0x1f18c7,_0x2ad536){return _0x1f18c7===_0x2ad536;},'qemTZ':_0x5e1701(0x27b),'heffi':function(_0x4f3939,_0x4782f2,_0xe0f816,_0x11d9b4,_0x1215e2,_0x26d73f,_0x28595b,_0x38b2e5){return _0x4f3939(_0x4782f2,_0xe0f816,_0x11d9b4,_0x1215e2,_0x26d73f,_0x28595b,_0x38b2e5);},'gatVZ':'create-grid-checks-non-200','ZfFNv':_0x5e1701(0x247),'ojHwb':function(_0x3ff024,_0x160c63){return _0x3ff024===_0x160c63;},'cUySq':_0x5e1701(0x269),'TfXCY':'XJNNA','kBUeT':function(_0x5c830b,_0x5eaa98,_0x75390e,_0x2732fb,_0x3954f0,_0x4435c8,_0x2d6f35,_0x89b5eb){return _0x5c830b(_0x5eaa98,_0x75390e,_0x2732fb,_0x3954f0,_0x4435c8,_0x2d6f35,_0x89b5eb);},'ybaZJ':'create-grid-checks-grid-already-exists','VdOJt':_0x5e1701(0x20c),'dPauJ':function(_0x584960,_0x411e6c){return _0x584960!==_0x411e6c;},'vcxUO':_0x5e1701(0x26e),'TCWne':_0x5e1701(0x2f5),'boRJG':function(_0x24bdde,_0x1a3474){return _0x24bdde===_0x1a3474;},'bXIhO':function(_0x294a3b,_0xbd2d91){return _0x294a3b===_0xbd2d91;},'HcOAf':function(_0x3cde81,_0x5d04c1){return _0x3cde81!==_0x5d04c1;},'nLlKZ':_0x5e1701(0x18b),'ISjea':function(_0x47ac7e,_0xe6ff58){return _0x47ac7e===_0xe6ff58;},'AckbH':_0x5e1701(0x303),'CcOou':_0x5e1701(0x194),'oXWED':_0x5e1701(0x29c),'ktyji':function(_0x2bf42e,_0x429e46,_0x33685f,_0x4633b7,_0x52abca,_0x25470e,_0x1c4ce0,_0x48bb89){return _0x2bf42e(_0x429e46,_0x33685f,_0x4633b7,_0x52abca,_0x25470e,_0x1c4ce0,_0x48bb89);},'kRSkZ':_0x5e1701(0x22c),'ZiHKu':_0x5e1701(0x2e6),'USFBU':function(_0x4b11eb,_0x10bf43){return _0x4b11eb===_0x10bf43;},'zyryh':'aSOqN','BijwX':'JsvXR','xRpPC':function(_0x16ad2b,_0xe6e7da){return _0x16ad2b!==_0xe6e7da;},'qyOhF':_0x5e1701(0x20e),'lfamg':function(_0x287f8a,_0xa1a6bf){return _0x287f8a!==_0xa1a6bf;},'jyxyw':_0x5e1701(0x1b4),'LhUiy':_0x5e1701(0x2ec),'bOeQY':function(_0x5952cd,_0x646c91){return _0x5952cd(_0x646c91);},'lotNg':function(_0x2fe807,_0x3777ae){return _0x2fe807===_0x3777ae;},'EhpIC':function(_0x1e1ab7,_0x59f108){return _0x1e1ab7===_0x59f108;},'EQuyA':_0x5e1701(0x22b),'gjzls':function(_0x3ad328,_0x30b0e0){return _0x3ad328!==_0x30b0e0;},'MxElE':function(_0x153e5d,_0x2e5634){return _0x153e5d!==_0x2e5634;},'unmBS':'mZzND','BCoDx':_0x5e1701(0x180),'PXrHh':'EWUUE','LluKR':_0x5e1701(0x2fb),'HHqWs':_0x5e1701(0x26b),'oqShj':function(_0x290de6,_0x52528b){return _0x290de6!==_0x52528b;},'GlATa':_0x5e1701(0x21b),'HaSeT':_0x5e1701(0x1a9),'udFeC':function(_0x13131c,_0x25f455){return _0x13131c===_0x25f455;},'sEZlp':'DeNuG','ZrvCg':function(_0x2b6413,_0x592081){return _0x2b6413===_0x592081;},'TnLgE':_0x5e1701(0x2b8),'wkgcx':_0x5e1701(0x172),'LKCTv':function(_0x5d54a2,_0x3ac797){return _0x5d54a2!=_0x3ac797;},'rDqNu':function(_0x120d22,_0x1f5812){return _0x120d22!=_0x1f5812;},'Pwusi':function(_0xd2da9f,_0x476b55){return _0xd2da9f!==_0x476b55;},'AVjZL':function(_0x296912,_0x3505b1){return _0x296912>_0x3505b1;},'bYTeF':function(_0x581370,_0x265980){return _0x581370===_0x265980;},'SfyiA':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','foVRI':function(_0x2f3213,_0x407899,_0x257ffc,_0x22e9fd,_0x46a79b,_0x4106c4,_0x1a475d,_0x438853){return _0x2f3213(_0x407899,_0x257ffc,_0x22e9fd,_0x46a79b,_0x4106c4,_0x1a475d,_0x438853);},'yVjra':_0x5e1701(0x214),'CmynT':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','gpobL':_0x5e1701(0x1fd),'qAxCK':function(_0x5f3bed,_0x148b09){return _0x5f3bed===_0x148b09;},'MNqqD':function(_0x123190,_0x52f332,_0x42d81a,_0x5a5541,_0x29cb,_0x115082,_0x12615e,_0x51fe27){return _0x123190(_0x52f332,_0x42d81a,_0x5a5541,_0x29cb,_0x115082,_0x12615e,_0x51fe27);},'hSEzn':_0x5e1701(0x2f1),'xItEJ':_0x5e1701(0x30b),'UrLSK':_0x5e1701(0x225),'SIBJU':'The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','eThXN':function(_0x26001d,_0x32f428){return _0x26001d===_0x32f428;},'eWLJr':function(_0x333421,_0x58d136,_0x4fa584){return _0x333421(_0x58d136,_0x4fa584);},'YjorJ':function(_0x303c07,_0x29c228){return _0x303c07===_0x29c228;},'qJnSe':function(_0x3296dd,_0x2c218c){return _0x3296dd===_0x2c218c;},'ANLXU':function(_0x134641,_0x3daa29){return _0x134641===_0x3daa29;},'hJOhR':function(_0x53ca34,_0x4e81dd){return _0x53ca34===_0x4e81dd;},'jomFt':_0x5e1701(0x30c),'LLXqZ':function(_0xfeaf02,_0x529029,_0x148ce1){return _0xfeaf02(_0x529029,_0x148ce1);},'rWhmJ':function(_0x2e2dad,_0x5d674b,_0x505a4f){return _0x2e2dad(_0x5d674b,_0x505a4f);},'cbEKI':_0x5e1701(0x29e),'SarcZ':_0x5e1701(0x2d6),'zcQSn':_0x5e1701(0x2ff),'cldOi':_0x5e1701(0x18a),'rtmzq':_0x5e1701(0x1de),'aRzJf':_0x5e1701(0x2d4),'NmMDx':function(_0x1591c2,_0x3a6860){return _0x1591c2(_0x3a6860);},'pIljL':function(_0x4a2dda,_0x56b263){return _0x4a2dda(_0x56b263);},'CZHcs':function(_0x33208f,_0x45559e,_0x2f7ce5){return _0x33208f(_0x45559e,_0x2f7ce5);},'tcxEe':'Added\x20Secret\x20Mapping','VXzUb':'efs-csi','ZsfAE':function(_0x5ddc2b,_0x23ad57){return _0x5ddc2b===_0x23ad57;},'WQOeH':_0x5e1701(0x304),'YgWMD':_0x5e1701(0x288),'jHJWj':_0x5e1701(0x1ea),'gDAkS':'Adding\x20Kafka\x20deployment...','zDfpO':_0x5e1701(0x16d),'hdMhy':function(_0x56096e,_0x241bab,_0x306545){return _0x56096e(_0x241bab,_0x306545);},'EpcdY':_0x5e1701(0x18c),'DZhYm':_0x5e1701(0x256),'wzLdm':_0x5e1701(0x2d7),'zqFsL':function(_0x51e690,_0x3a5bff){return _0x51e690===_0x3a5bff;},'DYrwB':_0x5e1701(0x2bd),'TyMjY':_0x5e1701(0x319),'PLuyo':_0x5e1701(0x2a8),'xQUHR':'2|1|4|3|0','PivxP':function(_0x58c3f0,_0x257a17,_0x2a6808,_0x2e4c88,_0x2da2fe,_0xd2b6a0,_0x563f53,_0x57af9b){return _0x58c3f0(_0x257a17,_0x2a6808,_0x2e4c88,_0x2da2fe,_0xd2b6a0,_0x563f53,_0x57af9b);},'XcAaP':_0x5e1701(0x26a),'UPZqI':_0x5e1701(0x22e),'UfvPR':_0x5e1701(0x2d5),'pgTLn':_0x5e1701(0x1bd),'lzscu':_0x5e1701(0x29b),'oGkDK':_0x5e1701(0x2b4),'GfEvZ':_0x5e1701(0x202),'yRlnV':function(_0x47e190,_0x953cf4,_0x39a5ac,_0x1b4725,_0x435bdf,_0x15a7c2,_0x261f12,_0x7f4508,_0x2113b6,_0x4023db,_0x2ac50f){return _0x47e190(_0x953cf4,_0x39a5ac,_0x1b4725,_0x435bdf,_0x15a7c2,_0x261f12,_0x7f4508,_0x2113b6,_0x4023db,_0x2ac50f);},'VgJAa':'Grid\x20spawned\x20on\x20the\x20cluster','JcTtQ':_0x5e1701(0x1e9),'eyRty':function(_0x3d8b9f,_0x1f28b2,_0x114b75,_0x4e231a,_0x385757){return _0x3d8b9f(_0x1f28b2,_0x114b75,_0x4e231a,_0x385757);},'XyaiS':function(_0x3dfddf,_0x5351fc,_0x38b3fd){return _0x3dfddf(_0x5351fc,_0x38b3fd);},'XoSia':_0x5e1701(0x195),'EVNnX':'ingress-nginx-controller','vMYqv':'ingress-nginx','PvEPd':function(_0x3c4301,_0x3a5b0d,_0x42d166){return _0x3c4301(_0x3a5b0d,_0x42d166);},'AEPVZ':function(_0xe85d67,_0x4c7718){return _0xe85d67===_0x4c7718;},'IUjpP':_0x5e1701(0x222),'zeuGP':'get-grid-url-null-response','dJWEx':function(_0x1c78d9,_0x5b3e48){return _0x1c78d9===_0x5b3e48;},'XhmhF':_0x5e1701(0x1d0),'bNmGM':_0x5e1701(0x28b),'JvHou':function(_0x482e57,_0xf2332a,_0x556f8c,_0xe1c7f9,_0x2d599c,_0x1f1939,_0x1c7897,_0x2f4b04){return _0x482e57(_0xf2332a,_0x556f8c,_0xe1c7f9,_0x2d599c,_0x1f1939,_0x1c7897,_0x2f4b04);},'Jdzlr':_0x5e1701(0x2ee),'cuLPu':_0x5e1701(0x17e),'vhHyF':function(_0x2b22b7,_0x54d321,_0x232509,_0x21c6e7,_0x991003,_0x3362a7){return _0x2b22b7(_0x54d321,_0x232509,_0x21c6e7,_0x991003,_0x3362a7);},'PUNGv':'grid-spawning-failed'};let _0x52c22f=![],_0x55f189=![],_0x32b912,_0x1dd55c,_0x4c80ca,_0x52daf9,_0x4a7bc6,_0x87e75a,_0x4f30eb,_0x560f95,_0x3c1932,_0x8b145f,_0x3a302c,_0x3e0f5f,_0x39e2be,_0x55b224,_0xe6257a=0x1,_0x4faee9=0xe;try{global_registry[_0x5e1701(0x2af)]=_0x3e2aeb['fZLCE'](uuidv4),global_registry[_0x5e1701(0x279)]=![];!fs[_0x5e1701(0x24c)](_0x3e2aeb[_0x5e1701(0x1cd)](getCredentialsPath))&&(_0x3e2aeb[_0x5e1701(0x25a)](_0x3e2aeb['FcKpU'],_0x3e2aeb['FcKpU'])?_0x32b3c0['isPrivateGrid']=!![]:(console[_0x5e1701(0x170)](_0x3e2aeb['JDxGK']),await _0x3e2aeb[_0x5e1701(0x296)](sendInstrumentationEvent,_0x14f0d1,_0x3e2aeb['twSgG'],messageTypes[_0x5e1701(0x28e)],_0x3e2aeb['fCAtL'],null,_0x14f0d1),process[_0x5e1701(0x184)](0x1)));await _0x3e2aeb[_0x5e1701(0x309)](sendInstrumentationEvent,_0x14f0d1,_0x3e2aeb['twSgG'],messageTypes['INFO'],null,null,_0x14f0d1);const _0x7026f=JSON[_0x5e1701(0x21a)](fs['readFileSync'](_0x3e2aeb[_0x5e1701(0x2c8)](getCredentialsPath)));global_registry[_0x5e1701(0x18f)]=_0x7026f[_0x5e1701(0x2d5)][_0x5e1701(0x27f)],global_registry['bstackAccesskey']=_0x7026f[_0x5e1701(0x2d5)]['password'];const _0x98c53f=WS_ENDPOINT[_0x5e1701(0x28a)](_0x3e2aeb['QRhfK'],_0x7026f[_0x5e1701(0x2d5)][_0x5e1701(0x27f)])[_0x5e1701(0x28a)](_0x3e2aeb[_0x5e1701(0x2fe)],_0x7026f[_0x5e1701(0x2d5)][_0x5e1701(0x181)]),_0x59965c={};_0x59965c[_0x5e1701(0x206)]=ws,_0x59965c[_0x5e1701(0x21c)]=0x36ee80,_0x3e0f5f=new ReconnectingWebSocket(_0x98c53f,[],_0x59965c),logger[_0x5e1701(0x289)](_0x3e2aeb['QFUcX']),webSocketUtils[_0x5e1701(0x2ca)](_0x3e0f5f,_0x14f0d1[_0x5e1701(0x1b9)],_0x14f0d1[_0x5e1701(0x181)]);const _0x1ec1e3=_0x14f0d1[_0x5e1701(0x1ff)]||DEFAULT_GRID_NAME;if(_0x14f0d1[_0x5e1701(0x185)]||_0x14f0d1[_0x5e1701(0x1a3)]||_0x14f0d1[_0x5e1701(0x1fc)]){if(_0x3e2aeb[_0x5e1701(0x2ea)](_0x3e2aeb[_0x5e1701(0x2a6)],_0x3e2aeb['dkIip']))_0x53b3e5['gridProfile']=_0x31bf91[_0x5e1701(0x2e8)];else{!(_0x14f0d1['clusterName']&&_0x14f0d1[_0x5e1701(0x1a3)]&&_0x14f0d1[_0x5e1701(0x1fc)])&&(_0x3e2aeb[_0x5e1701(0x1c6)](_0x3e2aeb['FvvCc'],_0x3e2aeb['FvvCc'])?_0x55d75d=_0x3e2aeb[_0x5e1701(0x25c)]:(_0x32b912=_0x3e2aeb[_0x5e1701(0x2e5)],await _0x3e2aeb[_0x5e1701(0x165)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x18d)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1)));![AWS,AZURE,GCP][_0x5e1701(0x1c0)](_0x14f0d1[_0x5e1701(0x1a3)][_0x5e1701(0x2fc)]())&&(_0x3e2aeb[_0x5e1701(0x1c6)](_0x3e2aeb[_0x5e1701(0x19e)],_0x3e2aeb[_0x5e1701(0x19e)])?_0x41c85a[_0x5e1701(0x279)]=!![]:(_0x32b912=_0x3e2aeb[_0x5e1701(0x1df)],await _0x3e2aeb[_0x5e1701(0x2d3)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes['ERROR'],_0x3e2aeb['twSgG'],_0x3e2aeb['yBkTG'],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1)));_0x14f0d1[_0x5e1701(0x1f9)]&&_0x3e2aeb['FMhlV'](_0x14f0d1[_0x5e1701(0x1f9)]['toLowerCase'](),_0x3e2aeb[_0x5e1701(0x2c5)])&&(_0x3e2aeb[_0x5e1701(0x1b3)](_0x3e2aeb[_0x5e1701(0x235)],_0x3e2aeb['avYFV'])?global_registry[_0x5e1701(0x279)]=!![]:(_0x37dbb5=_0x2247a2[_0x5e1701(0x207)],_0x5ba30f=_0x3e2aeb[_0x5e1701(0x2b1)]));global_registry[_0x5e1701(0x1a3)]=_0x14f0d1[_0x5e1701(0x1a3)],global_registry[_0x5e1701(0x191)]=_0x14f0d1[_0x5e1701(0x1fc)],global_registry[_0x5e1701(0x185)]=_0x14f0d1[_0x5e1701(0x185)];const _0x5032d0=await _0x3e2aeb['AkZfD'](getCloudProviderObject,_0x14f0d1[_0x5e1701(0x1a3)],_0x14f0d1[_0x5e1701(0x185)],_0x1ec1e3,_0x3e0f5f,webSocketUtils,_0x14f0d1),_0x10c098=await _0x5032d0[_0x5e1701(0x17f)]();!_0x10c098?_0x3e2aeb[_0x5e1701(0x1ca)](_0x3e2aeb['cjrhK'],_0x3e2aeb[_0x5e1701(0x1d1)])?_0x2d695e['sendResourceDataToHST']():(logger['info'](_0x5e1701(0x315)+_0x14f0d1[_0x5e1701(0x185)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x52c22f=![],_0x55f189=!![]):_0x3e2aeb[_0x5e1701(0x2e1)](_0x3e2aeb['JRGxd'],_0x3e2aeb['WYCCB'])?_0x3a0046=null:_0x52c22f=!![],_0x4c80ca=_0x14f0d1[_0x5e1701(0x185)],_0x1dd55c=_0x14f0d1['cloudProvider'][_0x5e1701(0x2fc)](),_0x52daf9=_0x14f0d1['region'];}}else{if(_0x14f0d1[_0x5e1701(0x2e8)]){if(_0x3e2aeb[_0x5e1701(0x221)](_0x3e2aeb['LWhIE'],_0x3e2aeb['NKLca']))global_registry[_0x5e1701(0x2e8)]=_0x14f0d1[_0x5e1701(0x2e8)];else throw new _0x6ab4ab(_0x5e1701(0x282)+_0x43e737+_0x5e1701(0x23c));}}global_registry[_0x5e1701(0x1ff)]=_0x14f0d1[_0x5e1701(0x1ff)];const _0x8cfbf2={'method':_0x3e2aeb['Jglhl'],'headers':_0x3e2aeb['dNfNn'](getAuthHeader,_0x7026f['Browserstack'][_0x5e1701(0x27f)],_0x7026f[_0x5e1701(0x2d5)][_0x5e1701(0x181)]),'throwHttpErrors':![]},_0x2b8d64={};_0x2b8d64[_0x5e1701(0x1ff)]=_0x1ec1e3;const _0x582012=_0x2b8d64;if(_0x55f189){if(_0x3e2aeb['FMhlV'](_0x3e2aeb[_0x5e1701(0x262)],_0x3e2aeb['ZwFZB']))_0x582012[_0x5e1701(0x1fc)]=_0x52daf9,_0x582012[_0x5e1701(0x1a3)]=_0x1dd55c,_0x582012[_0x5e1701(0x23b)]=!![];else{const _0x3e9616={'azure.workload.identity/use':_0x3e2aeb[_0x5e1701(0x2c5)],..._0x1704f2[0x0]['spec'][_0x5e1701(0x1a1)][_0x5e1701(0x1ad)][_0x5e1701(0x268)]};_0x5c23ce[0x0][_0x5e1701(0x292)][_0x5e1701(0x1a1)]['metadata'][_0x5e1701(0x268)]=_0x3e9616,_0x212ec1[0x0]['spec'][_0x5e1701(0x1a1)]['spec'][_0x5e1701(0x1d6)]=_0x3e2aeb[_0x5e1701(0x1af)];}}const _0x4223f0=_0x5e1701(0x1fa)+AG_API_URL+_0x5e1701(0x174),_0x3a89b0={'searchParams':_0x582012,'throwHttpErrors':![],..._0x8cfbf2},_0x5a9676=_0x3a89b0,_0x3c9e57=await _0x3e2aeb[_0x5e1701(0x1c2)](got,_0x4223f0,_0x5a9676);(_0x3e2aeb[_0x5e1701(0x1e0)](_0x3c9e57,null)||_0x3e2aeb[_0x5e1701(0x1ca)](_0x3c9e57,undefined))&&(_0x3e2aeb[_0x5e1701(0x231)](_0x3e2aeb[_0x5e1701(0x312)],_0x3e2aeb[_0x5e1701(0x28c)])?_0x3e2aeb[_0x5e1701(0x1eb)](_0x4f52a2,_0x3303a0[_0x5e1701(0x1a6)]):(_0x32b912=_0x3e2aeb[_0x5e1701(0x2ab)],await _0x3e2aeb['bRkQF'](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x190)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1)));if(_0x3e2aeb['jfdII'](_0x3c9e57[_0x5e1701(0x213)],0x191)){if(_0x3e2aeb['zqvyj'](_0x3e2aeb['iHYvv'],_0x3e2aeb[_0x5e1701(0x1f8)])){const _0x23081e=_0x3e2aeb[_0x5e1701(0x16c)]['split']('|');let _0x531e14=0x0;while(!![]){switch(_0x23081e[_0x531e14++]){case'0':_0x519f3b=_0x2b4603[_0x5e1701(0x2aa)];continue;case'1':_0x3e2aeb[_0x5e1701(0x1c6)](_0x17563e[_0x5e1701(0x1f9)],_0xde7127)&&_0x1c6cd0[_0x5e1701(0x1f9)]&&(_0x3ff0ee['isPrivateGrid']=!![]);continue;case'2':_0x14a6d4=_0x3d2016['browserVersion'];continue;case'3':_0x345e01=null;continue;case'4':const _0x799f6={};_0x799f6[_0x5e1701(0x1ed)]=_0x3c858a['LOG'],_0x799f6[_0x5e1701(0x302)]=_0x18e699,_0x5f2ac6[_0x5e1701(0x228)](_0x18a5e1,_0x799f6);continue;case'5':_0x5b845d=_0x1f6f5e['minNodes'];continue;case'6':_0x1f02c7=null;continue;case'7':_0x10c7aa=_0x3220a7[_0x5e1701(0x1b1)];continue;case'8':_0x496a31=_0x307696[_0x5e1701(0x216)];continue;case'9':_0x34ad54=null;continue;case'10':_0x3e2aeb[_0x5e1701(0x2c3)](_0x1411ef,_0x22d150,_0x4cbbb3,_0x102a77,_0x268b10,_0x3a58e5,_0x442a2b,_0x2fb7f5,_0x88ad9b,_0x4e2a97,_0x48cf79,_0x5dac83);continue;case'11':_0xc6d5b3=_0xf6b56a['hubVersion'];continue;case'12':_0x308118[_0x5e1701(0x2b9)](_0x4af4b2);continue;case'13':_0x91a17=_0x190d69[_0x5e1701(0x307)];continue;case'14':_0x3ac153='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x1c6d64;continue;case'15':_0x37e70c[_0x5e1701(0x255)]&&_0x3e2aeb[_0x5e1701(0x1eb)](_0x18809a,_0x4a71ed[_0x5e1701(0x1f1)]);continue;}break;}}else _0x32b912=_0x3e2aeb['bcorQ'],await _0x3e2aeb[_0x5e1701(0x273)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x1c4)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger['error'](_0x32b912),process[_0x5e1701(0x184)](0x1);}_0x3e2aeb[_0x5e1701(0x1c6)](_0x3c9e57[_0x5e1701(0x213)],0xc8)&&(_0x3e2aeb[_0x5e1701(0x284)](_0x3e2aeb[_0x5e1701(0x2bc)],_0x3e2aeb[_0x5e1701(0x2bc)])?(_0x32b912=_0x5e1701(0x24a)+JSON[_0x5e1701(0x2ac)](_0x3c9e57['body']),await _0x3e2aeb[_0x5e1701(0x257)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes['ERROR'],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb['gatVZ'],_0x3e2aeb[_0x5e1701(0x1cb)]),logger['error'](_0x32b912),process[_0x5e1701(0x184)](0x1)):(_0x449a04[_0x5e1701(0x1fc)]=_0xda2ac1,_0x3f34fb[_0x5e1701(0x1a3)]=_0x38fda5,_0x19c212[_0x5e1701(0x23b)]=!![]));const _0x5864e0=JSON[_0x5e1701(0x21a)](_0x3c9e57[_0x5e1701(0x305)]),_0x2f0823={};_0x2f0823[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x2bf)],_0x2f0823[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x19b)],webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x2f0823);const _0x553d55={};_0x553d55[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x553d55[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x1c5)],webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x553d55);if(_0x5864e0[_0x5e1701(0x2d1)]){if(_0x3e2aeb[_0x5e1701(0x249)](_0x3e2aeb[_0x5e1701(0x2ce)],_0x3e2aeb[_0x5e1701(0x239)])){const _0x50ff95={};_0x50ff95[_0x5e1701(0x1ed)]=_0x8f2b7['LOG'],_0x50ff95[_0x5e1701(0x302)]='Cluster\x20'+_0x507d2d+_0x5e1701(0x2f0),_0x25998e[_0x5e1701(0x228)](_0x4ec633,_0x50ff95,_0x3e2aeb[_0x5e1701(0x2d8)]),_0x2a732d[_0x5e1701(0x2b9)](_0x5e1701(0x282)+_0x455e09+_0x5e1701(0x2f0)),_0x4dabe3=!![];if(_0x3e2aeb[_0x5e1701(0x2c2)](_0x2f09b3,!![]))throw new _0x7576e2('Cluster\x20'+_0x26e1fe+_0x5e1701(0x23c));}else _0x32b912=_0x5e1701(0x264)+_0x1ec1e3+_0x5e1701(0x203),await _0x3e2aeb[_0x5e1701(0x314)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb['twSgG'],_0x3e2aeb[_0x5e1701(0x16b)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1);}const _0x435f23=_0x5864e0[_0x5e1701(0x1d3)];let _0x22179e=_0x435f23[_0x5864e0[_0x5e1701(0x2c6)]];_0x14f0d1['gridProfile']&&(_0x3e2aeb['oUWCc'](_0x3e2aeb[_0x5e1701(0x204)],_0x3e2aeb[_0x5e1701(0x204)])?_0x28123c[_0x5e1701(0x2b9)](_0x5e1701(0x27d)+_0x7c0772[_0x5e1701(0x2ac)](_0x5bfba5)+'\x20'):_0x22179e=_0x435f23[_0x14f0d1['gridProfile']]);global_registry[_0x5e1701(0x255)]=![];if(_0x14f0d1[_0x5e1701(0x243)]){if(_0x3e2aeb[_0x5e1701(0x26c)](_0x3e2aeb['vcxUO'],_0x3e2aeb[_0x5e1701(0x173)]))_0xa56b89[_0x5e1701(0x2b9)](_0x5e1701(0x16e)+_0x423b8a+'\x20');else{const _0x3fea40=_0x3e2aeb['TCWne'][_0x5e1701(0x1c7)]('|');let _0xf37263=0x0;while(!![]){switch(_0x3fea40[_0xf37263++]){case'0':global_registry[_0x5e1701(0x255)]=!![];continue;case'1':global_registry[_0x5e1701(0x210)]=_0x3e2aeb['yZhvS'];continue;case'2':global_registry[_0x5e1701(0x20d)]=_0x3e2aeb['TwVaq'];continue;case'3':logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x1db)]);continue;case'4':global_registry[_0x5e1701(0x306)]=_0x3e2aeb[_0x5e1701(0x311)];continue;}break;}}}if(_0x3e2aeb[_0x5e1701(0x1f0)](_0x52c22f,![])&&_0x3e2aeb[_0x5e1701(0x298)](_0x55f189,![])){if(_0x3e2aeb['HcOAf'](_0x3e2aeb[_0x5e1701(0x267)],_0x3e2aeb[_0x5e1701(0x267)]))_0x2fbb2c=_0x3e2aeb[_0x5e1701(0x208)];else{_0x3e2aeb[_0x5e1701(0x1ca)](_0x22179e,undefined)&&(_0x3e2aeb[_0x5e1701(0x28d)](_0x3e2aeb['AckbH'],_0x3e2aeb[_0x5e1701(0x17d)])?(_0x2e1045['info'](_0x5e1701(0x315)+_0x25aafd['clusterName']+_0x5e1701(0x1a4)),_0x4f1aa4=![],_0x2847f1=!![]):(_0x32b912=_0x3e2aeb['oXWED'],await _0x3e2aeb['ktyji'](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb['twSgG'],_0x3e2aeb[_0x5e1701(0x1a7)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger['error'](_0x32b912),process['exit'](0x1)));global_registry[_0x5e1701(0x26f)]=_0x22179e['id'],_0x32b912=_0x5e1701(0x277)+_0x1ec1e3+_0x5e1701(0x17b)+_0x22179e['name']+_0x5e1701(0x23f),logger['info'](_0x32b912);const _0x2425f0={};_0x2425f0[_0x5e1701(0x1ed)]=WS_EVENTS['LOG'],_0x2425f0['message']=_0x32b912,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x2425f0),_0x1dd55c=_0x22179e[_0x5e1701(0x1a3)],_0x4c80ca=_0x22179e[_0x5e1701(0x185)],_0x52daf9=_0x22179e[_0x5e1701(0x1fc)],_0x4a7bc6=_0x22179e[_0x5e1701(0x307)],_0x87e75a=_0x22179e[_0x5e1701(0x2aa)],_0x4f30eb=_0x22179e[_0x5e1701(0x167)],_0x560f95=_0x22179e[_0x5e1701(0x1b7)],_0x3c1932=_0x22179e[_0x5e1701(0x2f7)],_0x8b145f=_0x22179e['s3bucket'],_0xe6257a=_0x22179e[_0x5e1701(0x209)],_0x4faee9=_0x22179e[_0x5e1701(0x216)],_0x39e2be=_0x5864e0['hubVersion'],_0x55b224=_0x5864e0[_0x5e1701(0x22d)];if(_0x4f30eb&&_0x3e2aeb['FMhlV'](_0x4f30eb[_0x5e1701(0x220)],0x0)){if(_0x3e2aeb['boRJG'](_0x3e2aeb[_0x5e1701(0x183)],_0x3e2aeb[_0x5e1701(0x183)]))_0x4f30eb=null;else{const _0x110717={};_0x110717[_0x5e1701(0x2d0)]=_0x3e2aeb[_0x5e1701(0x29d)],_0x110717[_0x5e1701(0x1ed)]=_0x3e2aeb['QjKlS'];const _0x5912ea={};_0x5912ea[_0x5e1701(0x2d0)]=_0x3e2aeb[_0x5e1701(0x2dc)],_0x5912ea[_0x5e1701(0x1ed)]=_0x3e2aeb[_0x5e1701(0x31b)];const _0x1b0316={};_0x1b0316['description']=_0x3e2aeb[_0x5e1701(0x2c7)],_0x1b0316[_0x5e1701(0x1ed)]=_0x3e2aeb[_0x5e1701(0x31b)];const _0x243ac1={};_0x243ac1[_0x5e1701(0x2d0)]=_0x3e2aeb[_0x5e1701(0x245)],_0x243ac1[_0x5e1701(0x1ed)]=_0x3e2aeb['QjKlS'];const _0x3b3635={};_0x3b3635[_0x5e1701(0x2d0)]=_0x3e2aeb[_0x5e1701(0x30a)],_0x3b3635['type']=_0x3e2aeb[_0x5e1701(0x31b)];const _0x20a7bd={};_0x20a7bd[_0x5e1701(0x2d0)]=_0x3e2aeb['VLWWa'],_0x20a7bd['type']=_0x3e2aeb[_0x5e1701(0x31b)];const _0xa965b0={};_0xa965b0[_0x5e1701(0x2d0)]=_0x3e2aeb['lsYsJ'],_0xa965b0[_0x5e1701(0x1ed)]=_0x3e2aeb['nOzwW'],_0xa965b0[_0x5e1701(0x297)]=![];const _0x25e427={};_0x25e427[_0x5e1701(0x2d0)]=_0x3e2aeb[_0x5e1701(0x1c1)],_0x25e427[_0x5e1701(0x1ed)]=_0x3e2aeb['nOzwW'],_0x25e427[_0x5e1701(0x297)]=![];const _0x48e5d5={};return _0x48e5d5[_0x5e1701(0x17c)]=_0x110717,_0x48e5d5[_0x5e1701(0x215)]=_0x5912ea,_0x48e5d5[_0x5e1701(0x29a)]=_0x1b0316,_0x48e5d5['cloud-provider']=_0x243ac1,_0x48e5d5[_0x5e1701(0x1fc)]=_0x3b3635,_0x48e5d5[_0x5e1701(0x242)]=_0x20a7bd,_0x48e5d5[_0x5e1701(0x276)]=_0xa965b0,_0x48e5d5[_0x5e1701(0x2df)]=_0x25e427,_0x5c48d2[_0x5e1701(0x281)](_0x35b8b5[_0x5e1701(0x241)])['epilogue'](_0x3442b0)[_0x5e1701(0x2b5)](_0x48e5d5)[_0x5e1701(0x223)](_0x3e2aeb[_0x5e1701(0x219)])[_0x5e1701(0x23a)];}}_0x3c1932&&_0x3e2aeb[_0x5e1701(0x205)](_0x3c1932[_0x5e1701(0x220)],0x0)&&(_0x3e2aeb[_0x5e1701(0x308)](_0x3e2aeb[_0x5e1701(0x200)],_0x3e2aeb[_0x5e1701(0x2c1)])?_0x3c1932=null:_0x435671[_0x5e1701(0x170)](_0x5e1701(0x196)+_0x5c689b+'\x20\x0a'+_0x4268ee[_0x5e1701(0x2ac)](_0x2cb0cb['stack'])));if(_0x3e2aeb[_0x5e1701(0x316)](_0x22179e[_0x5e1701(0x1f9)],undefined)&&_0x22179e[_0x5e1701(0x1f9)]){if(_0x3e2aeb[_0x5e1701(0x249)](_0x3e2aeb[_0x5e1701(0x1ce)],_0x3e2aeb[_0x5e1701(0x1ce)]))global_registry['isPrivateGrid']=!![];else{const _0x2ff0b6=_0x3e2aeb['mxGLq'][_0x5e1701(0x1c7)]('|');let _0x485c14=0x0;while(!![]){switch(_0x2ff0b6[_0x485c14++]){case'0':_0x5b91da[_0x5e1701(0x255)]=!![];continue;case'1':_0xb41d75[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x1db)]);continue;case'2':_0x1b025f[_0x5e1701(0x20d)]=_0x3e2aeb[_0x5e1701(0x175)];continue;case'3':_0x4424fb[_0x5e1701(0x210)]=_0x3e2aeb[_0x5e1701(0x1d8)];continue;case'4':_0x4b171e[_0x5e1701(0x306)]=_0x3e2aeb[_0x5e1701(0x311)];continue;}break;}}}_0x3e2aeb[_0x5e1701(0x2c3)](updateGlobalRegistryWithConfig,_0x1dd55c,_0x4c80ca,_0x52daf9,_0x4a7bc6,_0x87e75a,_0x8b145f,_0x22179e,_0x39e2be,_0x55b224,_0xe6257a,_0x4faee9),global_registry[_0x5e1701(0x255)]&&(_0x3e2aeb[_0x5e1701(0x300)](_0x3e2aeb['jyxyw'],_0x3e2aeb[_0x5e1701(0x318)])?_0x3e2aeb[_0x5e1701(0x285)](updateGlobalRegistryForHubHa,_0x5864e0[_0x5e1701(0x1a6)]):_0x3e2aeb[_0x5e1701(0x2e2)](_0x95b916,_0x1b6061['kafkaUploader']));}}else{if(_0x3e2aeb['lotNg'](_0x55f189,!![])){if(_0x3e2aeb[_0x5e1701(0x31c)](_0x3e2aeb[_0x5e1701(0x2ed)],_0x3e2aeb[_0x5e1701(0x2ed)])){_0x32b912=_0x5e1701(0x197)+_0x1ec1e3,logger[_0x5e1701(0x2b9)](_0x32b912);const _0x141cee={};_0x141cee[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x141cee[_0x5e1701(0x302)]=_0x32b912,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x141cee),_0x4a7bc6=_0x22179e[_0x5e1701(0x307)],_0x87e75a=_0x22179e[_0x5e1701(0x2aa)],_0x4f30eb=null,_0x560f95=null,_0x3c1932=null,_0x8b145f=_0x22179e[_0x5e1701(0x1b1)],_0xe6257a=_0x22179e[_0x5e1701(0x209)],_0x4faee9=_0x22179e['maxNodes'],_0x39e2be=_0x5864e0['hubVersion'],_0x55b224=_0x5864e0[_0x5e1701(0x22d)],_0x3e2aeb[_0x5e1701(0x23d)](_0x22179e[_0x5e1701(0x1f9)],undefined)&&_0x22179e[_0x5e1701(0x1f9)]&&(_0x3e2aeb[_0x5e1701(0x293)](_0x3e2aeb['unmBS'],_0x3e2aeb[_0x5e1701(0x24d)])?_0x2cd787=_0x3e2aeb[_0x5e1701(0x2f9)]:global_registry[_0x5e1701(0x279)]=!![]),_0x3e2aeb[_0x5e1701(0x2c3)](updateGlobalRegistryWithConfig,_0x1dd55c,_0x4c80ca,_0x52daf9,_0x4a7bc6,_0x87e75a,_0x8b145f,_0x22179e,_0x39e2be,_0x55b224,_0xe6257a,_0x4faee9),global_registry[_0x5e1701(0x255)]&&(_0x3e2aeb[_0x5e1701(0x25a)](_0x3e2aeb[_0x5e1701(0x1b6)],_0x3e2aeb[_0x5e1701(0x1f2)])?_0x3e2aeb[_0x5e1701(0x285)](updateGlobalRegistryForHubHa,_0x5864e0[_0x5e1701(0x1f1)]):_0x2f396e[_0x5e1701(0x279)]=!![]);}else _0x50ffb9=_0x37a9b3[_0x82ee92[_0x5e1701(0x2e8)]];}else{if(_0x3e2aeb[_0x5e1701(0x2ea)](_0x3e2aeb[_0x5e1701(0x265)],_0x3e2aeb[_0x5e1701(0x265)])){const _0x546563=_0x3e2aeb[_0x5e1701(0x234)][_0x5e1701(0x1c7)]('|');let _0x2190bd=0x0;while(!![]){switch(_0x546563[_0x2190bd++]){case'0':global_registry[_0x5e1701(0x2e9)]=_0x5864e0['hubVersion'];continue;case'1':const _0x5c27ed={};_0x5c27ed[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x5c27ed[_0x5e1701(0x302)]=_0x32b912,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x5c27ed);continue;case'2':const _0x138a26={};_0x138a26[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x2bf)],_0x138a26[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x19b)],webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x138a26);continue;case'3':global_registry['clusterName']=_0x4c80ca;continue;case'4':_0x32b912=_0x5e1701(0x2de)+_0x1ec1e3+_0x5e1701(0x238)+_0x4c80ca+'\x27';continue;case'5':logger[_0x5e1701(0x2b9)](_0x32b912);continue;case'6':global_registry[_0x5e1701(0x1a3)]=_0x1dd55c;continue;case'7':global_registry['clusterRegion']=_0x52daf9;continue;case'8':global_registry[_0x5e1701(0x22d)]=_0x5864e0['browserVersion'];continue;}break;}}else{const _0x4f0181=_0x3e2aeb[_0x5e1701(0x271)]['split']('|');let _0x34ff93=0x0;while(!![]){switch(_0x4f0181[_0x34ff93++]){case'0':_0x401ce5[_0x5e1701(0x22d)]=_0x40997c[_0x5e1701(0x22d)];continue;case'1':_0x1fdc33=_0x5e1701(0x2de)+_0x237bf0+_0x5e1701(0x238)+_0x522a0e+'\x27';continue;case'2':_0x56957b[_0x5e1701(0x191)]=_0x24e37d;continue;case'3':_0x341e13['hubVersion']=_0x221303['hubVersion'];continue;case'4':_0x4a6807['info'](_0x58d0f0);continue;case'5':const _0xb1ae1b={};_0xb1ae1b[_0x5e1701(0x1ed)]=_0x3b0b09[_0x5e1701(0x2bf)],_0xb1ae1b[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x19b)],_0x4eb67e[_0x5e1701(0x228)](_0xa23a8,_0xb1ae1b);continue;case'6':_0x422436[_0x5e1701(0x1a3)]=_0x174f87;continue;case'7':const _0x2fdebd={};_0x2fdebd[_0x5e1701(0x1ed)]=_0x3c581e['LOG'],_0x2fdebd[_0x5e1701(0x302)]=_0x3b3674,_0x15f17c[_0x5e1701(0x228)](_0x19c930,_0x2fdebd);continue;case'8':_0x268878[_0x5e1701(0x185)]=_0x36feec;continue;}break;}}}}const _0x2c8275=await _0x3e2aeb['AkZfD'](getCloudProviderObject,_0x1dd55c,_0x4c80ca,_0x1ec1e3,_0x3e0f5f,webSocketUtils,_0x14f0d1);_0x3e2aeb['oqShj'](_0x1dd55c,AZURE)&&(_0x3e2aeb[_0x5e1701(0x1e0)](_0x3e2aeb['GlATa'],_0x3e2aeb['HaSeT'])?_0x1c47ce=!![]:_0x2c8275[_0x5e1701(0x1e5)]());let _0x2f2dbc;if(_0x3e2aeb[_0x5e1701(0x182)](_0x52c22f,![])){_0x32b912=_0x5e1701(0x177)+_0x52daf9+').';const _0x507da1={};_0x507da1[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x507da1['message']=_0x32b912,webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x507da1),logger['info'](_0x32b912);const _0x148d60=await _0x2c8275[_0x5e1701(0x17f)]();if(_0x148d60){if(_0x3e2aeb['UhIix'](_0x3e2aeb[_0x5e1701(0x2c0)],_0x3e2aeb['sEZlp'])){const _0x527be0={};_0x527be0[_0x5e1701(0x1ed)]=_0x2c7030[_0x5e1701(0x1d9)],_0x527be0[_0x5e1701(0x302)]=_0x1cc70e,_0x1581f4[_0x5e1701(0x228)](_0x4ede62,_0x527be0,_0x3e2aeb[_0x5e1701(0x1cb)],!![]);}else{const _0x1e4c62={};_0x1e4c62['type']=WS_EVENTS['LOG'],_0x1e4c62['message']=_0x5e1701(0x282)+_0x4c80ca+_0x5e1701(0x2f0),webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x1e4c62,_0x3e2aeb['sfFVs']),logger[_0x5e1701(0x2b9)](_0x5e1701(0x282)+_0x4c80ca+_0x5e1701(0x2f0)),_0x52c22f=!![];if(_0x3e2aeb['USFBU'](_0x55f189,!![])){if(_0x3e2aeb['ZrvCg'](_0x3e2aeb[_0x5e1701(0x1c3)],_0x3e2aeb[_0x5e1701(0x1c3)]))throw new Error('Cluster\x20'+_0x4c80ca+_0x5e1701(0x23c));else _0xdb87bb=null;}}}else{const _0x9511a8={};_0x9511a8[_0x5e1701(0x1ed)]=WS_EVENTS['LOG'],_0x9511a8[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x294)],webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x9511a8),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x294)]);const _0x343bdc=_0x3e2aeb[_0x5e1701(0x2be)](_0x4f30eb,null)&&_0x3e2aeb[_0x5e1701(0x316)](_0x4f30eb,undefined),_0x3e7df0=_0x3e2aeb[_0x5e1701(0x1f6)](_0x3c1932,null)&&_0x3e2aeb[_0x5e1701(0x31d)](_0x3c1932,undefined)&&_0x3e2aeb['AVjZL'](_0x3c1932[_0x5e1701(0x220)],0x0);if(_0x343bdc){_0x3e2aeb['bYTeF'](_0x3e7df0,![])&&(_0x32b912=_0x3e2aeb[_0x5e1701(0x189)],await _0x3e2aeb[_0x5e1701(0x2d9)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes['ERROR'],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x232)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1));const _0x609235=await _0x2c8275[_0x5e1701(0x233)](_0x4f30eb);_0x3e2aeb[_0x5e1701(0x198)](_0x609235,![])?(_0x32b912=_0x3e2aeb[_0x5e1701(0x1e8)],await _0x3e2aeb[_0x5e1701(0x257)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x287)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger['error'](_0x32b912),process[_0x5e1701(0x184)](0x1)):logger[_0x5e1701(0x2b9)](_0x5e1701(0x16e)+_0x4f30eb+'\x20');const _0x43b9fb=await _0x2c8275[_0x5e1701(0x283)](_0x3c1932,_0x4f30eb);_0x3e2aeb[_0x5e1701(0x2cf)](_0x43b9fb[0x0],![])?(_0x32b912=_0x5e1701(0x19a)+JSON['stringify'](_0x43b9fb[0x1])+_0x5e1701(0x2fa)+_0x4f30eb+_0x5e1701(0x244),await _0x3e2aeb['MNqqD'](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes['ERROR'],_0x3e2aeb['twSgG'],_0x3e2aeb[_0x5e1701(0x272)],_0x3e2aeb['eRkBn']),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0x5e1701(0x2ac)](_0x3c1932)+'\x20'),[_0x4f30eb,_0x3c1932]=await _0x2c8275[_0x5e1701(0x295)](_0x4f30eb,_0x3c1932);}else{const _0x5d2c4d=_0x3e2aeb[_0x5e1701(0x254)][_0x5e1701(0x1c7)]('|');let _0x21e3fa=0x0;while(!![]){switch(_0x5d2c4d[_0x21e3fa++]){case'0':logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x169)]);continue;case'1':const _0x8ce3d2={};_0x8ce3d2[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x8ce3d2[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x17a)],webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x8ce3d2);continue;case'2':const _0x215fea={};_0x215fea[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x215fea[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x169)],webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x215fea);continue;case'3':[_0x4f30eb,_0x3c1932]=await _0x2c8275[_0x5e1701(0x295)](_0x4f30eb,_0x3c1932);continue;case'4':logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x17a)]);continue;}break;}}}}_0x52c22f&&_0x3e2aeb[_0x5e1701(0x21f)](_0x1dd55c,AZURE)&&(await _0x2c8275[_0x5e1701(0x1d2)](),await _0x2c8275[_0x5e1701(0x248)]());const [_0x17a730,_0x7bb64a,_0x4927d0,_0x4470b7,_0x42f038,_0x48a378,_0x2ce5a3]=await _0x3e2aeb[_0x5e1701(0x2db)](createK8sClient,_0x2c8275,_0x14f0d1[_0x5e1701(0x2b0)]);_0x3e2aeb[_0x5e1701(0x19c)](_0x52c22f,![])&&_0x3e2aeb[_0x5e1701(0x290)](_0x1dd55c,AWS)&&(global_registry[_0x5e1701(0x1f5)]=!![],_0x2f2dbc=await _0x2c8275[_0x5e1701(0x19d)](_0x17a730,_0x14f0d1));if(_0x3e2aeb['qAxCK'](_0x52c22f,![])&&global_registry[_0x5e1701(0x255)]&&(_0x3e2aeb[_0x5e1701(0x187)](_0x1dd55c,AWS)||_0x3e2aeb[_0x5e1701(0x275)](_0x1dd55c,GCP)))try{await _0x2c8275['setupHubHa'](_0x48a378,_0x2ce5a3,_0x14f0d1,_0x4f30eb,_0x3c1932);const _0x5afed7={};_0x5afed7[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x5afed7[_0x5e1701(0x302)]=_0x3e2aeb['jomFt'],webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x5afed7);!await _0x3e2aeb[_0x5e1701(0x278)](namespaceExists,_0x17a730,global_registry[_0x5e1701(0x210)])&&await _0x3e2aeb[_0x5e1701(0x2cb)](createNamespace,_0x17a730,global_registry[_0x5e1701(0x210)]);logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x1bf)]);let _0x4225ae=await fs[_0x5e1701(0x24f)](path[_0x5e1701(0x2f2)](__dirname,_0x3e2aeb[_0x5e1701(0x1cc)],_0x3e2aeb['zcQSn'],_0x3e2aeb[_0x5e1701(0x2a1)],_0x3e2aeb[_0x5e1701(0x1b0)]),_0x3e2aeb[_0x5e1701(0x217)]);_0x4225ae=_0x4225ae[_0x5e1701(0x28a)](/<RedisClientPassword>/g,_0x3e2aeb[_0x5e1701(0x291)](encodeBase64,global_registry['redisPassword'])),_0x4225ae=_0x4225ae[_0x5e1701(0x28a)](/<KafkaClientPassword>/g,_0x3e2aeb[_0x5e1701(0x2e2)](encodeBase64,global_registry[_0x5e1701(0x306)])),_0x4225ae=_0x4225ae['replace'](/<BstackUsername>/g,_0x3e2aeb[_0x5e1701(0x1fe)](encodeBase64,global_registry[_0x5e1701(0x18f)])),_0x4225ae=_0x4225ae['replace'](/<BstackAccessKey>/g,_0x3e2aeb[_0x5e1701(0x1eb)](encodeBase64,global_registry[_0x5e1701(0x2e4)]));const _0x73fe58=yaml[_0x5e1701(0x30e)](_0x4225ae);await _0x3e2aeb[_0x5e1701(0x2ba)](kubeApply,_0x73fe58,_0x2ce5a3),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x299)]);let _0x510b89=_0x3e2aeb[_0x5e1701(0x1fb)];if(_0x3e2aeb[_0x5e1701(0x250)](_0x1dd55c,AZURE))_0x510b89=_0x3e2aeb[_0x5e1701(0x208)];else _0x3e2aeb[_0x5e1701(0x1ae)](_0x1dd55c,GCP)&&(_0x510b89=_0x3e2aeb['WVojP']);logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x179)]);let _0x45157c=await fs[_0x5e1701(0x24f)](path[_0x5e1701(0x2f2)](__dirname,_0x3e2aeb[_0x5e1701(0x1cc)],_0x3e2aeb['zcQSn'],_0x3e2aeb[_0x5e1701(0x2a1)],_0x3e2aeb[_0x5e1701(0x2b2)]),_0x3e2aeb[_0x5e1701(0x217)]);_0x45157c=_0x45157c[_0x5e1701(0x28a)](/<HubHaNameSpace>/g,global_registry[_0x5e1701(0x210)]),_0x45157c=_0x45157c[_0x5e1701(0x28a)](/<StorageClassName>/g,_0x510b89);const _0x574d0a=yaml[_0x5e1701(0x30e)](_0x45157c);await _0x3e2aeb['eWLJr'](kubeApply,_0x574d0a,_0x2ce5a3),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x19f)]),logger[_0x5e1701(0x2b9)](_0x3e2aeb['gDAkS']);let _0x938689=await fs[_0x5e1701(0x24f)](path['join'](__dirname,_0x3e2aeb['SarcZ'],_0x3e2aeb[_0x5e1701(0x2ae)],_0x3e2aeb[_0x5e1701(0x2a1)],_0x3e2aeb[_0x5e1701(0x2e3)]),_0x3e2aeb[_0x5e1701(0x217)]);_0x938689=_0x938689['replace'](/<HubHaNameSpace>/g,global_registry[_0x5e1701(0x210)]),_0x938689=_0x938689[_0x5e1701(0x28a)](/<StorageClassName>/g,_0x510b89);const _0x517218=yaml[_0x5e1701(0x30e)](_0x938689);await _0x3e2aeb[_0x5e1701(0x236)](kubeApply,_0x517218,_0x2ce5a3),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x25f)]),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x301)]);let _0x1a1272=await fs[_0x5e1701(0x24f)](path['join'](__dirname,_0x3e2aeb[_0x5e1701(0x1cc)],_0x3e2aeb[_0x5e1701(0x2ae)],_0x3e2aeb[_0x5e1701(0x2a1)],_0x3e2aeb['wzLdm']),_0x3e2aeb[_0x5e1701(0x217)]);_0x1a1272=_0x1a1272[_0x5e1701(0x28a)](/<UploaderImageVersion>/g,global_registry[_0x5e1701(0x1c8)]),_0x1a1272=_0x1a1272[_0x5e1701(0x28a)](/<HubHaNameSpace>/g,global_registry[_0x5e1701(0x210)]);const _0x2ea6f4=yaml[_0x5e1701(0x30e)](_0x1a1272);_0x3e2aeb[_0x5e1701(0x251)](global_registry['cloudProvider'],AZURE)&&(_0x2ea6f4[0x0][_0x5e1701(0x292)][_0x5e1701(0x1a1)][_0x5e1701(0x1ad)][_0x5e1701(0x268)]={'azure.workload.identity/use':_0x3e2aeb[_0x5e1701(0x2c5)],..._0x2ea6f4[0x0][_0x5e1701(0x292)][_0x5e1701(0x1a1)][_0x5e1701(0x1ad)][_0x5e1701(0x268)]},_0x2ea6f4[0x0][_0x5e1701(0x292)]['template'][_0x5e1701(0x292)]['serviceAccountName']=_0x3e2aeb[_0x5e1701(0x1af)]);await _0x3e2aeb[_0x5e1701(0x278)](kubeApply,_0x2ea6f4,_0x2ce5a3),logger[_0x5e1701(0x2b9)](_0x3e2aeb['DYrwB']);const _0xaa2840={};_0xaa2840[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0xaa2840[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x227)],webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0xaa2840),logger[_0x5e1701(0x2b9)](_0x3e2aeb['PLuyo']);}catch(_0x5a8ae6){const _0x36487c=_0x3e2aeb[_0x5e1701(0x16f)][_0x5e1701(0x1c7)]('|');let _0x41d4e5=0x0;while(!![]){switch(_0x36487c[_0x41d4e5++]){case'0':process[_0x5e1701(0x184)](0x1);continue;case'1':logger[_0x5e1701(0x170)](_0x32b912);continue;case'2':_0x32b912=_0x5e1701(0x186)+_0x5a8ae6[_0x5e1701(0x302)];continue;case'3':await _0x2c8275['deleteCluster'](_0x17a730,global_registry[_0x5e1701(0x191)]);continue;case'4':await _0x3e2aeb[_0x5e1701(0x2cc)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb['twSgG'],_0x3e2aeb[_0x5e1701(0x1c9)],_0x3e2aeb['eRkBn']);continue;}break;}}try{_0x3a302c=_0x3e2aeb[_0x5e1701(0x1fe)](kebabCase,_0x1ec1e3),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x166)]);const _0x5870ed={};_0x5870ed[_0x5e1701(0x1ed)]=WS_EVENTS['LOG'],_0x5870ed[_0x5e1701(0x302)]=_0x3e2aeb['UPZqI'],webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x5870ed);if(_0x3e2aeb['Pwusi'](_0x3a302c,_0x3e2aeb[_0x5e1701(0x1af)])){const _0x524752={};_0x524752[_0x5e1701(0x258)]=_0x3e2aeb[_0x5e1701(0x259)],_0x524752[_0x5e1701(0x199)]=_0x3e2aeb[_0x5e1701(0x259)];const _0x1fc7a2={};_0x1fc7a2['name']=_0x3a302c,_0x1fc7a2['annotations']=_0x524752;const _0x57c3d4={};_0x57c3d4[_0x5e1701(0x1ad)]=_0x1fc7a2;const _0x3cb101=_0x57c3d4,_0x509866={};_0x509866[_0x5e1701(0x305)]=_0x3cb101,await _0x17a730[_0x5e1701(0x1f3)](_0x509866),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x270)]);}const _0x1f27ed={};_0x1f27ed['type']=WS_EVENTS['LOG'],_0x1f27ed[_0x5e1701(0x302)]=_0x3e2aeb['lzscu'],webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x1f27ed);const _0x175770={};_0x175770[_0x5e1701(0x1ed)]=WS_EVENTS['LOG'],_0x175770[_0x5e1701(0x302)]=_0x3e2aeb[_0x5e1701(0x23e)],webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x175770),logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x1dc)]);let _0x5e2260={};_0x3e2aeb['ojHwb'](_0x1dd55c,AZURE)&&(_0x5e2260={'clientId':await _0x2c8275['getResourceClientId']('turboscale-managed-identity-'+_0x4c80ca)});await _0x3e2aeb[_0x5e1701(0x1bb)](addGridComponents,_0x17a730,_0x7bb64a,_0x4927d0,_0x4470b7,_0x3a302c,_0x4c80ca,_0x2f2dbc,_0x42f038,_0x2ce5a3,_0x5e2260),_0x32b912=_0x3e2aeb[_0x5e1701(0x2e7)],logger[_0x5e1701(0x2b9)](_0x32b912);const _0x21fb9e={};_0x21fb9e[_0x5e1701(0x1ed)]=WS_EVENTS['LOG'],_0x21fb9e[_0x5e1701(0x302)]=_0x32b912,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x21fb9e),_0x32b912=_0x3e2aeb[_0x5e1701(0x310)],logger[_0x5e1701(0x2b9)](_0x32b912);const _0x462625={};_0x462625[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x462625[_0x5e1701(0x302)]=_0x32b912,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x462625),await _0x3e2aeb['eyRty'](waitForDeployment,_0x7bb64a,_0x3a302c,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x7482bc=await _0x3e2aeb[_0x5e1701(0x27e)](getNamespaceUID,_0x17a730,_0x3a302c),_0x5bdac5=global_registry[_0x5e1701(0x279)]?_0x3e2aeb[_0x5e1701(0x286)]:_0x3e2aeb['EVNnX'],_0x575922={};_0x575922[_0x5e1701(0x2da)]=_0x5bdac5,_0x575922[_0x5e1701(0x266)]=_0x3e2aeb['vMYqv'];const _0x294a4e=await _0x17a730[_0x5e1701(0x1ec)](_0x575922);let _0x30c871=_0x2c8275[_0x5e1701(0x224)](_0x294a4e)+'/'+_0x3a302c,_0x126de4=_0x3e2aeb[_0x5e1701(0x25c)];try{const _0x2be2ca=_0x5e1701(0x1fa)+AG_API_URL+_0x5e1701(0x171)+_0x7482bc,_0x448c20=await _0x3e2aeb[_0x5e1701(0x2e0)](got,_0x2be2ca,_0x8cfbf2);(_0x3e2aeb['AEPVZ'](_0x448c20,null)||_0x3e2aeb[_0x5e1701(0x20f)](_0x448c20,undefined))&&(_0x32b912=_0x3e2aeb[_0x5e1701(0x2b7)],await _0x3e2aeb[_0x5e1701(0x2d9)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes['ERROR'],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x1b8)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1));_0x3e2aeb['dJWEx'](_0x448c20['statusCode'],0x191)&&(_0x32b912=_0x3e2aeb['XhmhF'],await _0x3e2aeb[_0x5e1701(0x165)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb[_0x5e1701(0x25b)],_0x3e2aeb[_0x5e1701(0x263)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process['exit'](0x1));_0x3e2aeb[_0x5e1701(0x300)](_0x448c20[_0x5e1701(0x213)],0xc8)&&(_0x32b912='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x5e1701(0x2ac)](_0x448c20),await _0x3e2aeb[_0x5e1701(0x30f)](reportToGalactusAndSendToEDS,_0x14f0d1,_0x3e0f5f,_0x32b912,messageTypes[_0x5e1701(0x28e)],_0x3e2aeb['twSgG'],_0x3e2aeb[_0x5e1701(0x1e6)],_0x3e2aeb[_0x5e1701(0x1cb)]),logger[_0x5e1701(0x170)](_0x32b912),process[_0x5e1701(0x184)](0x1));const _0x53e287=JSON[_0x5e1701(0x21a)](_0x448c20[_0x5e1701(0x305)]);_0x53e287['route53']&&(_0x30c871=_0x53e287[_0x5e1701(0x207)],_0x126de4=_0x3e2aeb[_0x5e1701(0x2b1)]),global_registry[_0x5e1701(0x279)]&&(_0x126de4=_0x3e2aeb[_0x5e1701(0x25c)]);}catch(_0x39b75a){}_0x32b912='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x30c871+'\x20',logger[_0x5e1701(0x2b9)](_0x32b912);const _0x199824={};_0x199824[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x199824['message']=_0x32b912,webSocketUtils['sendEventToBackend'](_0x3e0f5f,_0x199824),_0x32b912=_0x5e1701(0x16a)+_0x126de4+'://'+_0x30c871+_0x5e1701(0x168),logger[_0x5e1701(0x2b9)](_0x32b912);const _0x158400={};_0x158400[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x158400[_0x5e1701(0x302)]=_0x32b912,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x158400);const _0x4e536c={};_0x4e536c['type']=WS_EVENTS[_0x5e1701(0x18e)],_0x4e536c[_0x5e1701(0x302)]=_0x5e1701(0x229)+_0x30c871,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x4e536c),await webSocketUtils[_0x5e1701(0x1aa)](0x7d0);}catch(_0x367f5c){logger[_0x5e1701(0x170)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x367f5c+'\x20\x0a'+JSON[_0x5e1701(0x2ac)](_0x367f5c[_0x5e1701(0x2c4)]));if(_0x3e2aeb['ojHwb'](_0x52c22f,![]))try{logger[_0x5e1701(0x2b9)](_0x3e2aeb[_0x5e1701(0x2f6)]),await _0x3e2aeb[_0x5e1701(0x1e2)](removeGridComponents,_0x17a730,_0x7bb64a,_0x4927d0,_0x4470b7,_0x3a302c),await _0x2c8275[_0x5e1701(0x230)](_0x17a730,global_registry[_0x5e1701(0x191)]);}catch(_0x5ee2ac){logger[_0x5e1701(0x170)](_0x5e1701(0x196)+_0x5ee2ac+'\x20\x0a'+JSON[_0x5e1701(0x2ac)](_0x5ee2ac[_0x5e1701(0x2c4)]));}throw _0x367f5c;}}catch(_0x32f8b7){const _0x10b539='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x32f8b7+'\x20\x0a'+JSON['stringify'](_0x32f8b7[_0x5e1701(0x2c4)]);if(_0x3e0f5f){const _0x6e492={};_0x6e492[_0x5e1701(0x1ed)]=WS_EVENTS[_0x5e1701(0x1d9)],_0x6e492[_0x5e1701(0x302)]=_0x10b539,webSocketUtils[_0x5e1701(0x228)](_0x3e0f5f,_0x6e492,_0x3e2aeb['eRkBn'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x4f13c9={};_0x4f13c9[_0x5e1701(0x170)]=_0x10b539,await _0x3e2aeb['imtog'](sendInstrumentationEvent,_0x14f0d1,_0x3e2aeb[_0x5e1701(0x25b)],messageTypes[_0x5e1701(0x28e)],_0x3e2aeb['PUNGv'],_0x4f13c9,_0x14f0d1),logger['error'](_0x10b539);}process[_0x5e1701(0x184)](0x0);};
|
|
1
|
+
const a9_0x101df4=a9_0x1f8b;(function(_0xc23b59,_0x1f6758){const _0x13b968=a9_0x1f8b,_0x51c630=_0xc23b59();while(!![]){try{const _0x7af103=-parseInt(_0x13b968(0x20a))/0x1*(-parseInt(_0x13b968(0x1fe))/0x2)+parseInt(_0x13b968(0x1b7))/0x3*(parseInt(_0x13b968(0x170))/0x4)+parseInt(_0x13b968(0x12b))/0x5*(parseInt(_0x13b968(0x1c3))/0x6)+parseInt(_0x13b968(0x15a))/0x7+-parseInt(_0x13b968(0x246))/0x8+parseInt(_0x13b968(0x1a1))/0x9*(-parseInt(_0x13b968(0x1f1))/0xa)+parseInt(_0x13b968(0x1c8))/0xb;if(_0x7af103===_0x1f6758)break;else _0x51c630['push'](_0x51c630['shift']());}catch(_0x3d8c4f){_0x51c630['push'](_0x51c630['shift']());}}}(a9_0x46f9,0xa5514));function a9_0x46f9(){const _0x17d38d=['delay','gvKBb','HOqWf','bygHP','string','Grid\x20profile\x20fetched\x20from\x20backend','BcYEM','TyENz','vbwIU','uuid','4738720xAHtuC','iDxLx','smfhp','ypBAa','MciCh','pNbZD','KrUZW','includes','Adding\x20Redis\x20deployment...','4|2|3|1|0','RbuqY','zHCnq','region','RlDZU','OJGJW','hSFec','mHxll','prespawned-cluster-args-not-passed','YTqUR','WzANT','XCnjR','CLI\x20run\x20finished:\x20','8TPZjfB','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','YHkxX','../../config/constants','tGjoA','qcLJw','OjzQN','type','readFileAsync','DxgaW','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','TeamQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','FLmns','jIMLh','WFlkQ','grid-profile','Bfagl','BEQsu','NETfo','sXBBx','hubharesources','godzo','../../utils/createk8sClient','create','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','join','boolean','PndkE','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','createOtherResources','rLgmX','bqmsx','default','kNjnB','Found\x20VPC:\x20','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','argv','desc','error','bnfTW','../../utils/utilityMethods','create-grid-checks-auth-failed','HyxYu','get-grid-url-auth-failed','command','zdtwD','fWnaO','lERqr','3915Fhkyke','DaKEI','cloudProvider','setupNewCluster','options','uzvKx','Cluster\x20','Will\x20be\x20spawning\x20the\x20grid\x20','DaOnV','bmewy','VDXDY','sendResourceDataToHST','loadAll','bFjSU','\x20in\x20existing\x20cluster\x20\x27','nSIEW','turboscale-managed-identity-','grid','ZzInB','jXiPa','WvZAs','xcrRL','36789BvgONP','dJDEL','warn','GLmgZ','skipTlsCertVerify','MBELg','parse','serviceAccountName','PcvXX','private-ingress-nginx-controller','../../utils/gridComponents','info','294tVUKDB','privateGrid','<UsernamePlaceholder>','RqmmM','jFqJR','20038348inngMa','mhrSt','gDsCt','Spawning\x20the\x20grid\x20','UkRNzNYCBU','DUNRi','alreadyPresent','BlIXu','wcEUR','RnFxq','private-grid','securityGroups','init-not-called','create-grid-checks-null-response','Deleting\x20the\x20CloudFormation\x20Stacks','EuZLF','GcZtk','true','jHoQP','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','lFVhd','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Found\x20Subnets:\x20','LVysL','ODEPQ','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','create-grid-called','dvJfS','ccSgz','got','get-grid-url-non-200','../../config/logger','yjqYH','password','user','usage','kafkaPassword','rOYAa','HjtdO','description','24210xNKJoP','aVZQz','ojIbw','WAolI','gridName','LOG','XKmEi','Subnets:\x20','zoVWm','Adding\x20Kafka\x20deployment...','gridProfiles','Creating\x20Hub\x20HA\x20resources','isClusterPresent','98hzmXhF','replace','bitnami-kafka.yaml','instanceType','namespace','vpc','SMIWT','deleteCluster','create-grid-checks-non-200','3|0|2|1|4','hub-ha-deployments-failed','requestId','4926BMqIsN','Bxoqi','existsSync','hJMNV','UWwaw','Adding\x20Secret\x20Mapping','vpQeR','uDBwR','labels','LDnjQ','AtKoH','TlWMF','jeFQS','bstackAccesskey','nciOJ','Create\x20a\x20new\x20Automation\x20grid.','oZpvG','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','gcXal','FHFXN','setupHubHa','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','JNQYV','readNamespacedService','/packages/cli/create-grid-checks','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','oIzdr','Browserstack','pSuIT','OQfbF','PtCbD','efs-csi','4|2|1|3|0','gmiLk','tJQwM','dGrMn','OjhLa','clusterRegion','lCOcC','qVpaI','message','HBPGj','create-grid-checks-grid-already-exists','PhsTD','sendEventToBackend','updateClusterAlreadyPresent','path','yIhNw','bSpyM','../..','stringify','username','DsxTU','APuDP','concurrency','eFwAp','non-aws-azure-cluster','length','rNtyG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','9424936JUyPBy','pdCdM','bitnami-redis.yaml','Added\x20Kafka\x20deployment.','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','JpWcm','Added\x20Secret\x20Mapping','pPgJB','RebyA','utf-8','hubHa','YxpBO','YiBCc','RQcgu','hubHaNameSpace','CLI_RUN_FINISHED','gzYcy','\x20are\x20not\x20present\x20in\x20VPC:\x20','FvmQA','name','templates','AHOiD','statusCode','Skip\x20insecure\x20cert\x20verification.','<PasswordPlaceholder>','redisPassword','hubVersion','dtlbr','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','sdKqw','Cluster:\x20','tvTbK','ybBmD','ingress-nginx','Creating\x20namespace','itrOn','Enabling\x20Hub\x20HA\x20flow','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','cluster-name','UnLCs','createdBy','OkabF','isSubnetsValid','PnyfI','pre-spawned-invalid-vpc','cCjNX','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','pHeQd','aDnJp','QXoZt','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','JYMRI','kTtAf','Grid\x20can\x20be\x20accessed\x20at:\x20','gcrDi','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','IlhSo','https://','../../utils/instrumentationUtils','KdHZK','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','kPTBv','qCSmD','AcrVO','/packages/cli/get-grid-url?gridIdentifier=','NpuoG','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','azurefile-csi-premium','vunnu','cloud-provider','bigtS','help','body','KLUJm','NLczL','Adding\x20Websocket\x20listeners','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','clusterName','s3bucket','ERROR','GKmcv','LwTtg','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','../../cloudproviders/utils','4|3|1|0|2','itICC','yAmhE','adtkc','iVSNC','minNodes','mpTuM','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','vanbu','newCluster','BsGyJ','browserVersion','qlVgW','Created\x20Hub\x20HA\x20resources','hub-ha','CSkNE','VkHDA','metadata','bHOVB','GET','ALjrF','uploaderVersion','exit','../../utils/webSocketUtils','ftzFK','xUtqS','ingress-nginx-controller','pre-spawned-subnets-not-selected','mBkIy','YueSd','NeVwo','JnoZv','Create\x20a\x20private/public\x20grid.','nzhhL','Flag\x20to\x20enable\x20Hub\x20HA','stack','aHWPx','Added\x20Turboscale\x20Uploader\x20deployment.','oYAPt','Cckpq','browserstack-secret.yaml','kafkaUploader','reconnecting-websocket','UdWYt','yIwSm','LCUdV','KUfgC','msTJA','spec','Added\x20Redis\x20deployment.','siFZh','isPrivateGrid','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','template','udXxK','lnBzr','split','dZfTx','LwBWk','WebSocket','premium-rwo','createNamespace','jnSOM','annotations','Cluster\x20created\x20successfully','route53','lQekj','14680Txpthr','oEMUq','CLI_RUN_STARTED','WROsJ','hFsGY','setupAutoscaler','sYWOn','eGLhD','YCsNj','subnets','KvWGv','epilogue','eFuMM','IaSFR','debug','maxNodes','CLI\x20run\x20started','skip-tls-cert-verify','cdPEX','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','FpKVg','\x27\x20grid\x20profile','enableHubHa','/wd/hub','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','vkdGl','lVcGL','ZuRWo','2|5|3|8|4|6|1|7|0','toLowerCase','INFO','SGNJW','YiVia','gridProfile','XNRnW','lSKGB','DjOtx'];a9_0x46f9=function(){return _0x17d38d;};return a9_0x46f9();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x101df4(0x238)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x101df4(0x2c6)),got=require(a9_0x101df4(0x1e6)),{v4:uuidv4}=require(a9_0x101df4(0x159)),webSocketUtils=require(a9_0x101df4(0x2b3)),{logger}=require(a9_0x101df4(0x1e8)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x101df4(0x199)),{getCloudProviderObject}=require(a9_0x101df4(0x29b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x101df4(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x101df4(0x1c1)),{createK8sClient}=require(a9_0x101df4(0x187)),{sendInstrumentationEvent}=require(a9_0x101df4(0x280));function a9_0x1f8b(_0x4520f8,_0x156504){const _0x46f91c=a9_0x46f9();return a9_0x1f8b=function(_0x1f8ba1,_0x5a3387){_0x1f8ba1=_0x1f8ba1-0x129;let _0x5ec045=_0x46f91c[_0x1f8ba1];return _0x5ec045;},a9_0x1f8b(_0x4520f8,_0x156504);}exports[a9_0x101df4(0x19d)]=a9_0x101df4(0x1b2),exports[a9_0x101df4(0x196)]=a9_0x101df4(0x219),exports['builder']=function(_0x4a61d3){const _0x5026b3=a9_0x101df4,_0x1248e7={};_0x1248e7['wcEUR']=_0x5026b3(0x13e),_0x1248e7[_0x5026b3(0x172)]='string',_0x1248e7[_0x5026b3(0x1ca)]=_0x5026b3(0x26b),_0x1248e7['zHCnq']=_0x5026b3(0x21f),_0x1248e7[_0x5026b3(0x1bc)]=_0x5026b3(0x2a3),_0x1248e7[_0x5026b3(0x251)]=_0x5026b3(0x18d),_0x1248e7['LwBWk']='Create\x20a\x20private/public\x20grid.',_0x1248e7['FIFAs']=_0x5026b3(0x25d),_0x1248e7[_0x5026b3(0x1f2)]=_0x5026b3(0x18b),_0x1248e7[_0x5026b3(0x297)]=_0x5026b3(0x2be),_0x1248e7[_0x5026b3(0x269)]=_0x5026b3(0x28d);const _0x3ae20e=_0x1248e7,_0x189a79={};_0x189a79[_0x5026b3(0x1f0)]=_0x3ae20e[_0x5026b3(0x1d0)],_0x189a79[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x172)];const _0x176ba0={};_0x176ba0[_0x5026b3(0x1f0)]=_0x3ae20e['gDsCt'],_0x176ba0[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x172)];const _0x223395={};_0x223395['description']=_0x3ae20e[_0x5026b3(0x165)],_0x223395[_0x5026b3(0x177)]=_0x3ae20e['YHkxX'];const _0x271eec={};_0x271eec['description']=_0x3ae20e['MBELg'],_0x271eec[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x172)];const _0x1400dd={};_0x1400dd[_0x5026b3(0x1f0)]=_0x3ae20e[_0x5026b3(0x251)],_0x1400dd[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x172)];const _0x7cad2={};_0x7cad2[_0x5026b3(0x1f0)]=_0x3ae20e[_0x5026b3(0x2d6)],_0x7cad2[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x172)];const _0x3167ba={};_0x3167ba[_0x5026b3(0x1f0)]=_0x3ae20e['FIFAs'],_0x3167ba[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x1f2)],_0x3167ba[_0x5026b3(0x191)]=![];const _0x180b69={};_0x180b69['description']=_0x3ae20e[_0x5026b3(0x297)],_0x180b69[_0x5026b3(0x177)]=_0x3ae20e[_0x5026b3(0x1f2)],_0x180b69[_0x5026b3(0x191)]=![];const _0x226d0d={};return _0x226d0d['grid-name']=_0x189a79,_0x226d0d[_0x5026b3(0x180)]=_0x176ba0,_0x226d0d[_0x5026b3(0x26c)]=_0x223395,_0x226d0d['cloud-provider']=_0x271eec,_0x226d0d[_0x5026b3(0x166)]=_0x1400dd,_0x226d0d[_0x5026b3(0x1d2)]=_0x7cad2,_0x226d0d['skip-tls-cert-verify']=_0x3167ba,_0x226d0d[_0x5026b3(0x2aa)]=_0x180b69,_0x4a61d3[_0x5026b3(0x1ec)](HELP_HEADER_MESSAGE[_0x5026b3(0x188)])[_0x5026b3(0x136)](HELP_FOOTER_MESSAGE)[_0x5026b3(0x1a5)](_0x226d0d)[_0x5026b3(0x28d)](_0x3ae20e[_0x5026b3(0x269)])['argv'];},exports['handler']=async function(_0x40dc34){const _0x185f7f=a9_0x101df4,_0x364c6a={'PcvXX':'0|2|6|1|8|5|3|4|7','rOYAa':_0x185f7f(0x13b),'xUtqS':function(_0x67ea9a,_0x4a3547){return _0x67ea9a(_0x4a3547);},'gzYcy':'http','aKHUR':_0x185f7f(0x13e),'itICC':_0x185f7f(0x154),'zTbkz':_0x185f7f(0x26b),'HOmGV':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YiBCc':_0x185f7f(0x2a3),'yIwSm':_0x185f7f(0x18d),'TlWMF':_0x185f7f(0x2bc),'zdtwD':_0x185f7f(0x25d),'oZpvG':_0x185f7f(0x18b),'DxgaW':'Flag\x20to\x20enable\x20Hub\x20HA','pIyGz':_0x185f7f(0x28d),'SMIWT':_0x185f7f(0x2d8),'msTJA':_0x185f7f(0x1d9),'JYMRI':_0x185f7f(0x191),'FLmns':'https','MciCh':_0x185f7f(0x289),'bqmsx':_0x185f7f(0x1b9),'KrUZW':function(_0x2d4901,_0xfd3a5b){return _0x2d4901===_0xfd3a5b;},'TyENz':_0x185f7f(0x197),'eGLhD':_0x185f7f(0x29c),'nciOJ':'Epyd5nXbRK','nSIEW':_0x185f7f(0x1cc),'pHeQd':'browserstack','RqmmM':_0x185f7f(0x26a),'aHWPx':'1|8|7|9|3|13|10|14|2|0|6|12|15|11|5|4','ybBmD':function(_0x19e7cb,_0x4b546a,_0xb9093,_0x1018c0,_0xe124be,_0x129b8d,_0x473176,_0x45bb0e,_0x3df0d4,_0x586a02,_0x4b5821,_0x447025){return _0x19e7cb(_0x4b546a,_0xb9093,_0x1018c0,_0xe124be,_0x129b8d,_0x473176,_0x45bb0e,_0x3df0d4,_0x586a02,_0x4b5821,_0x447025);},'LwTtg':function(_0x34fe26,_0x286319){return _0x34fe26!==_0x286319;},'BcYEM':function(_0x35daf3){return _0x35daf3();},'BsGyJ':_0x185f7f(0x214),'ZzInB':_0x185f7f(0x245),'lSKGB':function(_0x299ba7,_0xd11115,_0x58f19a,_0x4bac26,_0x58c02d,_0x1c5327,_0x1dafd1){return _0x299ba7(_0xd11115,_0x58f19a,_0x4bac26,_0x58c02d,_0x1c5327,_0x1dafd1);},'jeFQS':_0x185f7f(0x1e3),'FHFXN':_0x185f7f(0x1d4),'lQekj':_0x185f7f(0x1c5),'pPgJB':_0x185f7f(0x25e),'XNRnW':_0x185f7f(0x291),'YTqUR':'USsrX','bnfTW':_0x185f7f(0x19f),'riXNb':_0x185f7f(0x1ba),'MCQyP':_0x185f7f(0x220),'IQJIu':_0x185f7f(0x2d0),'ALjrF':function(_0x123f98,_0x19d37e,_0x26ed55,_0x4c6989,_0xb6014a,_0x1eb481,_0x174695,_0x2078a5){return _0x123f98(_0x19d37e,_0x26ed55,_0x4c6989,_0xb6014a,_0x1eb481,_0x174695,_0x2078a5);},'JnoZv':_0x185f7f(0x16b),'OjzQN':function(_0x57a145,_0x359630){return _0x57a145===_0x359630;},'iDxLx':'UfeUN','AcrVO':_0x185f7f(0x24a),'WvZAs':_0x185f7f(0x242),'oEMUq':function(_0x3302e3,_0x541391){return _0x3302e3===_0x541391;},'ODEPQ':function(_0x454d07,_0x44ade9){return _0x454d07!==_0x44ade9;},'PnyfI':_0x185f7f(0x2c7),'XCnjR':function(_0xa24896,_0x55abee,_0x159589,_0x19f2e9,_0x442600,_0xdd4a4a,_0x3eaace){return _0xa24896(_0x55abee,_0x159589,_0x19f2e9,_0x442600,_0xdd4a4a,_0x3eaace);},'yjqYH':_0x185f7f(0x184),'bigtS':function(_0x19700c,_0x2f170f){return _0x19700c===_0x2f170f;},'vbwIU':_0x185f7f(0x2c9),'dGrMn':_0x185f7f(0x29e),'XKmEi':'gaSkh','gcXal':_0x185f7f(0x281),'NETfo':_0x185f7f(0x2af),'oYAPt':function(_0x3a8042,_0x4cde5e,_0x154bca){return _0x3a8042(_0x4cde5e,_0x154bca);},'QWEeE':function(_0x214e21,_0x8ad5fb){return _0x214e21!==_0x8ad5fb;},'tJQwM':_0x185f7f(0x226),'hSFec':_0x185f7f(0x1a2),'QXoZt':function(_0x50b508,_0x4df7c0){return _0x50b508===_0x4df7c0;},'vanbu':function(_0x291cda,_0x137d76){return _0x291cda===_0x137d76;},'rNtyG':_0x185f7f(0x23e),'LPbXE':_0x185f7f(0x284),'vpQeR':_0x185f7f(0x223),'jHoQP':_0x185f7f(0x1d5),'LVysL':'pBmtO','pNbZD':_0x185f7f(0x17c),'jnSOM':function(_0x317c78,_0x43ce20,_0x5038a4,_0x4e21bb,_0x154695,_0x361868,_0x1af594,_0x45a1e2){return _0x317c78(_0x43ce20,_0x5038a4,_0x4e21bb,_0x154695,_0x361868,_0x1af594,_0x45a1e2);},'gmiLk':_0x185f7f(0x19a),'OkabF':function(_0x1595e4,_0x22363e){return _0x1595e4!==_0x22363e;},'qbvgJ':function(_0x9c3995,_0x5c3439){return _0x9c3995===_0x5c3439;},'nzhhL':_0x185f7f(0x2a2),'jXiPa':_0x185f7f(0x206),'oIzdr':_0x185f7f(0x155),'sYWOn':_0x185f7f(0x153),'KvWGv':_0x185f7f(0x23f),'alwsa':_0x185f7f(0x234),'IaSFR':function(_0x4af5ed,_0x3f25e8){return _0x4af5ed===_0x3f25e8;},'kNjnB':_0x185f7f(0x174),'udXxK':function(_0x290375,_0x427416){return _0x290375!==_0x427416;},'NLczL':'AnBhj','ghHOr':_0x185f7f(0x207),'OQfbF':function(_0x357ff4,_0x1962d7){return _0x357ff4===_0x1962d7;},'HBPGj':function(_0x1333f7,_0x5f1d55){return _0x1333f7===_0x5f1d55;},'RebyA':_0x185f7f(0x182),'YueSd':'MrJqd','PtCbD':function(_0x27b28c,_0x14aa4e){return _0x27b28c===_0x14aa4e;},'siFZh':_0x185f7f(0x230),'eEFvJ':_0x185f7f(0x1de),'tvTbK':'create-grid-checks-invalid-profile','UnLCs':function(_0x449b5e,_0x529c4d){return _0x449b5e===_0x529c4d;},'HOqWf':_0x185f7f(0x287),'PndkE':function(_0x44c701,_0x13ddd2){return _0x44c701===_0x13ddd2;},'HjtdO':function(_0x59f57d,_0x567fde){return _0x59f57d!==_0x567fde;},'lBYZZ':_0x185f7f(0x168),'dtlbr':function(_0x3e72fc,_0x44e63b){return _0x3e72fc!==_0x44e63b;},'iVSNC':_0x185f7f(0x16a),'mBkIy':function(_0x1d287e,_0x5e8a9c,_0x1eb93c,_0x4d87dd,_0x5d5c5f,_0x5eeba6,_0x1f8f8c,_0x212884,_0x525ea9,_0x289bd6,_0x447051,_0x402dff){return _0x1d287e(_0x5e8a9c,_0x1eb93c,_0x4d87dd,_0x5d5c5f,_0x5eeba6,_0x1f8f8c,_0x212884,_0x525ea9,_0x289bd6,_0x447051,_0x402dff);},'YiVia':function(_0x167f45,_0x1a6bd5){return _0x167f45===_0x1a6bd5;},'dvJfS':'nookv','bHOVB':'QBXPj','BlIXu':_0x185f7f(0x2ca),'ftzFK':_0x185f7f(0x145),'UoEbr':function(_0x3adc57,_0x59d477){return _0x3adc57!==_0x59d477;},'hJMNV':function(_0x294755,_0x269ebf){return _0x294755===_0x269ebf;},'RbuqY':_0x185f7f(0x25b),'lFVhd':function(_0x410b61,_0x3ac284,_0x12c9cc,_0x564967,_0x4bd260,_0x5556aa,_0x49271b,_0x697b88,_0x2ad239,_0x1d5812,_0x276054,_0x1ad64b){return _0x410b61(_0x3ac284,_0x12c9cc,_0x564967,_0x4bd260,_0x5556aa,_0x49271b,_0x697b88,_0x2ad239,_0x1d5812,_0x276054,_0x1ad64b);},'WFlkQ':function(_0x14da50,_0x143b5c){return _0x14da50===_0x143b5c;},'aDnJp':'AuIii','smfhp':function(_0x16437b,_0x3276c6){return _0x16437b===_0x3276c6;},'ZuRWo':_0x185f7f(0x13f),'godzo':_0x185f7f(0x147),'Bxoqi':function(_0x3ec197,_0x1269bf){return _0x3ec197!==_0x1269bf;},'wTRAY':_0x185f7f(0x144),'qcLJw':_0x185f7f(0x1ae),'jIMLh':function(_0x2c3747,_0x421182){return _0x2c3747===_0x421182;},'bSpyM':_0x185f7f(0x2d5),'cdPEX':_0x185f7f(0x1a9),'hXjMr':function(_0xb2e9d3,_0x598f56){return _0xb2e9d3===_0x598f56;},'Gmpzq':'xnAkT','DIZsE':_0x185f7f(0x1f9),'EuZLF':_0x185f7f(0x194),'uDBwR':function(_0x5efc34,_0x129be9){return _0x5efc34!=_0x129be9;},'sFzGp':function(_0x4ce0b3,_0x31278d){return _0x4ce0b3!=_0x31278d;},'wkZDV':function(_0x550ef8,_0x27b624){return _0x550ef8>_0x27b624;},'RQcgu':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','ecVWu':_0x185f7f(0x2b7),'RlDZU':function(_0x5ad10d,_0x28dfdc){return _0x5ad10d===_0x28dfdc;},'KLUJm':_0x185f7f(0x143),'adtkc':_0x185f7f(0x272),'eFwAp':function(_0x18c2aa,_0xb0f4b6){return _0x18c2aa===_0xb0f4b6;},'JpWcm':function(_0x8b43ea,_0x468cc7,_0x7f89e4,_0x2d6e92,_0x214b3d,_0x4b13eb,_0x5acf34,_0x47fd97){return _0x8b43ea(_0x468cc7,_0x7f89e4,_0x2d6e92,_0x214b3d,_0x4b13eb,_0x5acf34,_0x47fd97);},'dJDEL':'pre-spawned-invalid-subnets','EfuUa':_0x185f7f(0x22a),'cCjNX':_0x185f7f(0x2dc),'Qgjsz':_0x185f7f(0x299),'rLgmX':function(_0x53ba2c,_0x34f750){return _0x53ba2c===_0x34f750;},'VDXDY':function(_0x5299f2,_0x5b58e3){return _0x5299f2===_0x5b58e3;},'yIhNw':function(_0x310b4a,_0x2c96ab){return _0x310b4a===_0x2c96ab;},'CSkNE':_0x185f7f(0x1fc),'pdCdM':_0x185f7f(0x20f),'Cckpq':_0x185f7f(0x23b),'HyxYu':_0x185f7f(0x25a),'OjhLa':_0x185f7f(0x185),'WVIbp':_0x185f7f(0x2c4),'PhsTD':_0x185f7f(0x24f),'WROsJ':function(_0x6a2e80,_0x16ff64){return _0x6a2e80(_0x16ff64);},'DGSRF':function(_0x53b1ad,_0x58ab77){return _0x53b1ad(_0x58ab77);},'ojIbw':function(_0x5a38c5,_0x1733dd){return _0x5a38c5(_0x1733dd);},'DUNRi':_0x185f7f(0x24c),'ccSgz':_0x185f7f(0x229),'ypBAa':function(_0x2a97b2,_0xc8de8e){return _0x2a97b2===_0xc8de8e;},'gvKBb':_0x185f7f(0x162),'hFsGY':_0x185f7f(0x248),'RnFxq':function(_0x4c40da,_0x230fa4,_0x2894a6){return _0x4c40da(_0x230fa4,_0x2894a6);},'uzvKx':_0x185f7f(0x2cd),'DjOtx':_0x185f7f(0x1fa),'IlhSo':_0x185f7f(0x200),'qVpaI':function(_0x54b10d,_0x2a53b7,_0x2d731f){return _0x54b10d(_0x2a53b7,_0x2d731f);},'FvmQA':_0x185f7f(0x249),'KsOwc':'Adding\x20Turboscale\x20Uploader\x20deployment...','BWzxL':'turboscale-uploader.yaml','ngwhg':function(_0x2b70f3,_0x478c80){return _0x2b70f3===_0x478c80;},'TeamQ':function(_0x378183,_0x120d8f,_0x53b4f5){return _0x378183(_0x120d8f,_0x53b4f5);},'kPTBv':_0x185f7f(0x2c1),'xcrRL':_0x185f7f(0x2a9),'vunnu':'Hub\x20HA\x20setup\x20completed\x20successfully.','qlVgW':_0x185f7f(0x163),'NeVwo':function(_0x2ef7ef,_0x16b455,_0x53da14,_0x3d6361,_0x5648bc,_0x10a52d,_0x5cad22,_0x30788){return _0x2ef7ef(_0x16b455,_0x53da14,_0x3d6361,_0x5648bc,_0x10a52d,_0x5cad22,_0x30788);},'WzANT':_0x185f7f(0x208),'ZQbfv':function(_0x4b37ef,_0x4fcc23){return _0x4b37ef(_0x4fcc23);},'bmewy':_0x185f7f(0x268),'WAolI':'Browserstack','mhrSt':'Namespace\x20Created','VkHDA':'Namespace\x20created','gAFXS':_0x185f7f(0x1db),'YCsNj':'Spawning\x20Grid\x20on\x20the\x20Cluster','RFlkm':function(_0x5880cd,_0x2e8021,_0x294d25,_0x5ba18e,_0x532098,_0x1586d2,_0x4f456c,_0x58eeed,_0xa882ce,_0x8a30e0,_0x104cde){return _0x5880cd(_0x2e8021,_0x294d25,_0x5ba18e,_0x532098,_0x1586d2,_0x4f456c,_0x58eeed,_0xa882ce,_0x8a30e0,_0x104cde);},'ZrCtp':'Grid\x20spawned\x20on\x20the\x20cluster','lERqr':_0x185f7f(0x262),'xmLqW':function(_0x266685,_0xfde873,_0xe775ce,_0xfeb82,_0xeb3cc7){return _0x266685(_0xfde873,_0xe775ce,_0xfeb82,_0xeb3cc7);},'LDnjQ':_0x185f7f(0x1c0),'eBbzo':_0x185f7f(0x2b6),'lnBzr':_0x185f7f(0x267),'eFuMM':function(_0x28304c,_0x1db229,_0x3c4299){return _0x28304c(_0x1db229,_0x3c4299);},'GKGWm':function(_0x2edaa2,_0x4e9bed){return _0x2edaa2===_0x4e9bed;},'dbBSH':_0x185f7f(0x293),'jFqJR':function(_0x81676a,_0x55be8d,_0x1825fb,_0x109bb1,_0x5e9627,_0x9f96cd,_0x5eabf5,_0x19d87a){return _0x81676a(_0x55be8d,_0x1825fb,_0x109bb1,_0x5e9627,_0x9f96cd,_0x5eabf5,_0x19d87a);},'Bfagl':'get-grid-url-null-response','UWwaw':_0x185f7f(0x274),'cvDxb':_0x185f7f(0x19c),'sdKqw':function(_0x422dbf,_0x1f4232,_0x30e764,_0x553df4,_0x5450bb,_0x361a35,_0x582fe7,_0x3da267){return _0x422dbf(_0x1f4232,_0x30e764,_0x553df4,_0x5450bb,_0x361a35,_0x582fe7,_0x3da267);},'GcZtk':_0x185f7f(0x1e7),'gcrDi':_0x185f7f(0x1d6),'kTtAf':function(_0x18d549,_0x106c67,_0x2b4c94,_0x1d7766,_0x573e03,_0x5e49c5){return _0x18d549(_0x106c67,_0x2b4c94,_0x1d7766,_0x573e03,_0x5e49c5);},'KCMbl':function(_0x4c3e00,_0x24cc3c,_0x5c2aeb,_0x4a322c,_0x453ea5,_0x4ab739,_0xb4ac3f){return _0x4c3e00(_0x24cc3c,_0x5c2aeb,_0x4a322c,_0x453ea5,_0x4ab739,_0xb4ac3f);},'SGNJW':'grid-spawning-failed'};let _0x421a32=![],_0x2c4206=![],_0x4baf10,_0x42aa41,_0x37ce6d,_0x30b350,_0x38d858,_0x14b52a,_0x421e30,_0x4f84d3,_0x3ef5c6,_0x4e78cd,_0x3a000a,_0x1804b6,_0x4b7132,_0x2879fb,_0x412b61=0x1,_0x2648ce=0xe;try{global_registry[_0x185f7f(0x209)]=_0x364c6a['BcYEM'](uuidv4),global_registry[_0x185f7f(0x2cf)]=![];!fs[_0x185f7f(0x20c)](_0x364c6a[_0x185f7f(0x156)](getCredentialsPath))&&(_0x364c6a[_0x185f7f(0x160)](_0x364c6a['BsGyJ'],_0x364c6a[_0x185f7f(0x2a6)])?(console[_0x185f7f(0x197)](_0x364c6a[_0x185f7f(0x1b3)]),await _0x364c6a['lSKGB'](sendInstrumentationEvent,_0x40dc34,_0x364c6a[_0x185f7f(0x216)],messageTypes['ERROR'],_0x364c6a[_0x185f7f(0x21d)],null,_0x40dc34),process[_0x185f7f(0x2b2)](0x1)):_0x4cc6b7=null);await _0x364c6a[_0x185f7f(0x14e)](sendInstrumentationEvent,_0x40dc34,_0x364c6a[_0x185f7f(0x216)],messageTypes[_0x185f7f(0x149)],null,null,_0x40dc34);const _0x36a628=JSON[_0x185f7f(0x1bd)](fs['readFileSync'](_0x364c6a['BcYEM'](getCredentialsPath)));global_registry['bstackUsername']=_0x36a628['Browserstack']['username'],global_registry[_0x185f7f(0x217)]=_0x36a628[_0x185f7f(0x225)][_0x185f7f(0x1ea)];const _0x5496a7=WS_ENDPOINT['replace'](_0x364c6a[_0x185f7f(0x12a)],_0x36a628[_0x185f7f(0x225)]['username'])[_0x185f7f(0x1ff)](_0x364c6a[_0x185f7f(0x24d)],_0x36a628['Browserstack'][_0x185f7f(0x1ea)]),_0x46a167={};_0x46a167[_0x185f7f(0x2d7)]=ws,_0x46a167['connectionTimeout']=0x36ee80,_0x1804b6=new ReconnectingWebSocket(_0x5496a7,[],_0x46a167),logger[_0x185f7f(0x139)](_0x364c6a[_0x185f7f(0x14d)]),webSocketUtils['addListeners'](_0x1804b6,_0x40dc34[_0x185f7f(0x1eb)],_0x40dc34[_0x185f7f(0x1ea)]);const _0x6affeb=_0x40dc34['gridName']||DEFAULT_GRID_NAME;if(_0x40dc34['clusterName']||_0x40dc34[_0x185f7f(0x1a3)]||_0x40dc34['region']){if(_0x364c6a[_0x185f7f(0x298)](_0x364c6a[_0x185f7f(0x16c)],_0x364c6a[_0x185f7f(0x198)])){!(_0x40dc34[_0x185f7f(0x294)]&&_0x40dc34['cloudProvider']&&_0x40dc34[_0x185f7f(0x166)])&&(_0x364c6a['KrUZW'](_0x364c6a['riXNb'],_0x364c6a['MCQyP'])?_0x279b5d['info'](_0x185f7f(0x1df)+_0x198682[_0x185f7f(0x23c)](_0x1dafc7)+'\x20'):(_0x4baf10=_0x364c6a['IQJIu'],await _0x364c6a[_0x185f7f(0x2b0)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes['ERROR'],_0x364c6a['jeFQS'],_0x364c6a[_0x185f7f(0x2bb)],_0x364c6a[_0x185f7f(0x157)]),logger['error'](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)));![AWS,AZURE,GCP][_0x185f7f(0x161)](_0x40dc34[_0x185f7f(0x1a3)]['toLowerCase']())&&(_0x364c6a[_0x185f7f(0x176)](_0x364c6a[_0x185f7f(0x15b)],_0x364c6a[_0x185f7f(0x15b)])?(_0x4baf10=_0x364c6a[_0x185f7f(0x285)],await _0x364c6a['ALjrF'](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x1b5)],_0x364c6a[_0x185f7f(0x157)]),logger['error'](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)):_0x474649=null);if(_0x40dc34[_0x185f7f(0x1c4)]&&_0x364c6a[_0x185f7f(0x12c)](_0x40dc34[_0x185f7f(0x1c4)][_0x185f7f(0x148)](),_0x364c6a['msTJA'])){if(_0x364c6a[_0x185f7f(0x1e1)](_0x364c6a[_0x185f7f(0x271)],_0x364c6a[_0x185f7f(0x271)])){const _0x4d0b01=_0x364c6a[_0x185f7f(0x1bf)][_0x185f7f(0x2d4)]('|');let _0x56c9c1=0x0;while(!![]){switch(_0x4d0b01[_0x56c9c1++]){case'0':const _0x16364={};_0x16364[_0x185f7f(0x177)]=_0x14ab7b[_0x185f7f(0x12d)],_0x16364['message']=_0x364c6a[_0x185f7f(0x1ee)],_0x44669b['sendEventToBackend'](_0x3d0fe5,_0x16364);continue;case'1':const _0xdba3d5={};_0xdba3d5['type']=_0x2f967b[_0x185f7f(0x1f6)],_0xdba3d5['message']=_0x21bb40,_0x568fef[_0x185f7f(0x236)](_0x127354,_0xdba3d5);continue;case'2':_0x5bdbf8=_0x185f7f(0x1cb)+_0x15aacd+_0x185f7f(0x1af)+_0x781da9+'\x27';continue;case'3':_0x50812b['clusterName']=_0x2818e9;continue;case'4':_0x418b27[_0x185f7f(0x260)]=_0x9f51ec[_0x185f7f(0x260)];continue;case'5':_0x595f1c[_0x185f7f(0x22f)]=_0x4caeed;continue;case'6':_0x4c67dc[_0x185f7f(0x1c2)](_0x7ebe98);continue;case'7':_0x4980df[_0x185f7f(0x2a7)]=_0x3b0a01[_0x185f7f(0x2a7)];continue;case'8':_0x2dcd47[_0x185f7f(0x1a3)]=_0x48e956;continue;}break;}}else global_registry['isPrivateGrid']=!![];}global_registry['cloudProvider']=_0x40dc34[_0x185f7f(0x1a3)],global_registry['clusterRegion']=_0x40dc34[_0x185f7f(0x166)],global_registry[_0x185f7f(0x294)]=_0x40dc34[_0x185f7f(0x294)];const _0x45cc9a=await _0x364c6a[_0x185f7f(0x16e)](getCloudProviderObject,_0x40dc34[_0x185f7f(0x1a3)],_0x40dc34[_0x185f7f(0x294)],_0x6affeb,_0x1804b6,webSocketUtils,_0x40dc34),_0x4fb4f4=await _0x45cc9a[_0x185f7f(0x1fd)]();!_0x4fb4f4?_0x364c6a[_0x185f7f(0x12c)](_0x364c6a[_0x185f7f(0x1e9)],_0x364c6a['yjqYH'])?(logger[_0x185f7f(0x1c2)](_0x185f7f(0x264)+_0x40dc34[_0x185f7f(0x294)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x421a32=![],_0x2c4206=!![]):_0x364c6a['xUtqS'](_0x14c03d,_0x429a54[_0x185f7f(0x2c5)]):_0x364c6a[_0x185f7f(0x28c)](_0x364c6a[_0x185f7f(0x158)],_0x364c6a[_0x185f7f(0x22d)])?(_0x75fe8c['region']=_0x154db4,_0x334535[_0x185f7f(0x1a3)]=_0x5169be,_0x1b8b9b[_0x185f7f(0x2a5)]=!![]):_0x421a32=!![],_0x37ce6d=_0x40dc34['clusterName'],_0x42aa41=_0x40dc34[_0x185f7f(0x1a3)][_0x185f7f(0x148)](),_0x30b350=_0x40dc34[_0x185f7f(0x166)];}else _0x7c35d3=_0x364c6a[_0x185f7f(0x256)];}else{if(_0x40dc34[_0x185f7f(0x14c)]){if(_0x364c6a['KrUZW'](_0x364c6a[_0x185f7f(0x1f7)],_0x364c6a[_0x185f7f(0x21c)])){const _0x224287={};_0x224287[_0x185f7f(0x1f0)]=_0x364c6a['aKHUR'],_0x224287[_0x185f7f(0x177)]=_0x364c6a['itICC'];const _0x1f8bbd={};_0x1f8bbd[_0x185f7f(0x1f0)]=_0x364c6a['zTbkz'],_0x1f8bbd['type']=_0x364c6a[_0x185f7f(0x29d)];const _0x1e4027={};_0x1e4027['description']=_0x364c6a['HOmGV'],_0x1e4027[_0x185f7f(0x177)]=_0x364c6a[_0x185f7f(0x29d)];const _0x1a5758={};_0x1a5758['description']=_0x364c6a[_0x185f7f(0x252)],_0x1a5758[_0x185f7f(0x177)]=_0x364c6a[_0x185f7f(0x29d)];const _0x3e6a2f={};_0x3e6a2f[_0x185f7f(0x1f0)]=_0x364c6a[_0x185f7f(0x2c8)],_0x3e6a2f[_0x185f7f(0x177)]=_0x364c6a['itICC'];const _0x242b32={};_0x242b32['description']=_0x364c6a[_0x185f7f(0x215)],_0x242b32[_0x185f7f(0x177)]=_0x364c6a['itICC'];const _0x5f1298={};_0x5f1298[_0x185f7f(0x1f0)]=_0x364c6a[_0x185f7f(0x19e)],_0x5f1298['type']=_0x364c6a[_0x185f7f(0x21a)],_0x5f1298[_0x185f7f(0x191)]=![];const _0x39aad2={};_0x39aad2[_0x185f7f(0x1f0)]=_0x364c6a[_0x185f7f(0x179)],_0x39aad2['type']=_0x364c6a['oZpvG'],_0x39aad2[_0x185f7f(0x191)]=![];const _0x4a6423={};return _0x4a6423['grid-name']=_0x224287,_0x4a6423[_0x185f7f(0x180)]=_0x1f8bbd,_0x4a6423['cluster-name']=_0x1e4027,_0x4a6423[_0x185f7f(0x28b)]=_0x1a5758,_0x4a6423[_0x185f7f(0x166)]=_0x3e6a2f,_0x4a6423[_0x185f7f(0x1d2)]=_0x242b32,_0x4a6423[_0x185f7f(0x13c)]=_0x5f1298,_0x4a6423[_0x185f7f(0x2aa)]=_0x39aad2,_0x489df7[_0x185f7f(0x1ec)](_0x56cc97['create'])[_0x185f7f(0x136)](_0x585a3f)[_0x185f7f(0x1a5)](_0x4a6423)[_0x185f7f(0x28d)](_0x364c6a['pIyGz'])[_0x185f7f(0x195)];}else global_registry[_0x185f7f(0x14c)]=_0x40dc34['gridProfile'];}}global_registry[_0x185f7f(0x1f5)]=_0x40dc34[_0x185f7f(0x1f5)];const _0x35f58e={'method':_0x364c6a[_0x185f7f(0x183)],'headers':_0x364c6a[_0x185f7f(0x2c2)](getAuthHeader,_0x36a628[_0x185f7f(0x225)][_0x185f7f(0x23d)],_0x36a628[_0x185f7f(0x225)][_0x185f7f(0x1ea)]),'throwHttpErrors':![]},_0x4c26c9={};_0x4c26c9[_0x185f7f(0x1f5)]=_0x6affeb;const _0x45915c=_0x4c26c9;_0x2c4206&&(_0x364c6a['QWEeE'](_0x364c6a[_0x185f7f(0x22c)],_0x364c6a[_0x185f7f(0x169)])?(_0x45915c[_0x185f7f(0x166)]=_0x30b350,_0x45915c[_0x185f7f(0x1a3)]=_0x42aa41,_0x45915c[_0x185f7f(0x2a5)]=!![]):_0x3a6d77[_0x185f7f(0x2cf)]=!![]);const _0x2c3825=_0x185f7f(0x27f)+AG_API_URL+_0x185f7f(0x222),_0x2d9af7={'searchParams':_0x45915c,'throwHttpErrors':![],..._0x35f58e},_0x232319=_0x2d9af7,_0x469e3e=await _0x364c6a['oYAPt'](got,_0x2c3825,_0x232319);(_0x364c6a[_0x185f7f(0x277)](_0x469e3e,null)||_0x364c6a[_0x185f7f(0x277)](_0x469e3e,undefined))&&(_0x364c6a[_0x185f7f(0x2a4)](_0x364c6a[_0x185f7f(0x244)],_0x364c6a['LPbXE'])?_0x3c0e7a[_0x185f7f(0x2cf)]=!![]:(_0x4baf10=_0x364c6a[_0x185f7f(0x210)],await _0x364c6a[_0x185f7f(0x2b0)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes['ERROR'],_0x364c6a['jeFQS'],_0x364c6a[_0x185f7f(0x1da)],_0x364c6a[_0x185f7f(0x157)]),logger['error'](_0x4baf10),process['exit'](0x1)));_0x364c6a[_0x185f7f(0x160)](_0x469e3e[_0x185f7f(0x25c)],0x191)&&(_0x364c6a[_0x185f7f(0x298)](_0x364c6a[_0x185f7f(0x1e0)],_0x364c6a['LVysL'])?_0x39b9c2=_0x364c6a[_0x185f7f(0x204)]:(_0x4baf10=_0x364c6a[_0x185f7f(0x15f)],await _0x364c6a['jnSOM'](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x22b)],_0x364c6a[_0x185f7f(0x157)]),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)));if(_0x364c6a[_0x185f7f(0x26f)](_0x469e3e[_0x185f7f(0x25c)],0xc8)){if(_0x364c6a['qbvgJ'](_0x364c6a[_0x185f7f(0x2bd)],_0x364c6a[_0x185f7f(0x2bd)]))_0x4baf10=_0x185f7f(0x27d)+JSON[_0x185f7f(0x23c)](_0x469e3e[_0x185f7f(0x28e)]),await _0x364c6a['ALjrF'](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x1b4)],_0x364c6a[_0x185f7f(0x157)]),logger[_0x185f7f(0x197)](_0x4baf10),process['exit'](0x1);else throw new _0x3063b9(_0x185f7f(0x1a7)+_0x1a1541+_0x185f7f(0x17a));}const _0x2d14de=JSON['parse'](_0x469e3e[_0x185f7f(0x28e)]),_0x38c4af={};_0x38c4af[_0x185f7f(0x177)]=WS_EVENTS['CLI_RUN_STARTED'],_0x38c4af['message']=_0x364c6a['rOYAa'],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x38c4af);const _0x309e17={};_0x309e17[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x309e17[_0x185f7f(0x232)]=_0x364c6a[_0x185f7f(0x224)],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x309e17);_0x2d14de[_0x185f7f(0x1ce)]&&(_0x364c6a[_0x185f7f(0x1e1)](_0x364c6a[_0x185f7f(0x131)],_0x364c6a[_0x185f7f(0x135)])?(_0x4baf10=_0x185f7f(0x189)+_0x6affeb+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x364c6a[_0x185f7f(0x2b0)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a['alwsa'],_0x364c6a['TyENz']),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)):_0x364c6a[_0x185f7f(0x2b5)](_0x3b4898,_0x997b1[_0x185f7f(0x2b1)]));const _0x384127=_0x2d14de[_0x185f7f(0x1fb)];let _0x3d0357=_0x384127[_0x2d14de['defaultGridProfile']];_0x40dc34[_0x185f7f(0x14c)]&&(_0x364c6a[_0x185f7f(0x138)](_0x364c6a[_0x185f7f(0x192)],_0x364c6a[_0x185f7f(0x192)])?_0x3d0357=_0x384127[_0x40dc34[_0x185f7f(0x14c)]]:_0x4f1c50=_0x477bc6[_0x5c4c2[_0x185f7f(0x14c)]]);global_registry[_0x185f7f(0x141)]=![];if(_0x40dc34[_0x185f7f(0x250)]){if(_0x364c6a[_0x185f7f(0x2d2)](_0x364c6a[_0x185f7f(0x290)],_0x364c6a[_0x185f7f(0x290)])){const _0x1e3f3d={'azure.workload.identity/use':_0x364c6a[_0x185f7f(0x2cb)],..._0x50f05d[0x0][_0x185f7f(0x2cc)][_0x185f7f(0x2d1)][_0x185f7f(0x2ad)][_0x185f7f(0x212)]};_0x23edaa[0x0]['spec'][_0x185f7f(0x2d1)][_0x185f7f(0x2ad)]['labels']=_0x1e3f3d,_0x219bba[0x0][_0x185f7f(0x2cc)]['template'][_0x185f7f(0x2cc)][_0x185f7f(0x1be)]=_0x364c6a[_0x185f7f(0x279)];}else{const _0x42fe0a=_0x364c6a['ghHOr']['split']('|');let _0x59ad78=0x0;while(!![]){switch(_0x42fe0a[_0x59ad78++]){case'0':global_registry[_0x185f7f(0x254)]=_0x364c6a[_0x185f7f(0x275)];continue;case'1':global_registry[_0x185f7f(0x1ed)]=_0x364c6a[_0x185f7f(0x218)];continue;case'2':global_registry[_0x185f7f(0x25f)]=_0x364c6a[_0x185f7f(0x1b0)];continue;case'3':logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x1c6)]);continue;case'4':global_registry[_0x185f7f(0x141)]=!![];continue;}break;}}}if(_0x364c6a[_0x185f7f(0x227)](_0x421a32,![])&&_0x364c6a[_0x185f7f(0x233)](_0x2c4206,![])){if(_0x364c6a[_0x185f7f(0x1e1)](_0x364c6a[_0x185f7f(0x24e)],_0x364c6a[_0x185f7f(0x2b9)])){_0x364c6a[_0x185f7f(0x228)](_0x3d0357,undefined)&&(_0x364c6a['KrUZW'](_0x364c6a[_0x185f7f(0x2ce)],_0x364c6a['siFZh'])?(_0x4baf10=_0x364c6a['eEFvJ'],await _0x364c6a[_0x185f7f(0x2da)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x265)],_0x364c6a[_0x185f7f(0x157)]),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)):(_0x3af644['info'](_0x185f7f(0x264)+_0x24d44d[_0x185f7f(0x294)]+_0x185f7f(0x29a)),_0x16fd36=![],_0x256c1d=!![]));global_registry['gridProfileId']=_0x3d0357['id'],_0x4baf10=_0x185f7f(0x1a8)+_0x6affeb+'\x20using\x20\x27'+_0x3d0357[_0x185f7f(0x259)]+_0x185f7f(0x140),logger[_0x185f7f(0x1c2)](_0x4baf10);const _0x2c4106={};_0x2c4106[_0x185f7f(0x177)]=WS_EVENTS['LOG'],_0x2c4106['message']=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x2c4106),_0x42aa41=_0x3d0357[_0x185f7f(0x1a3)],_0x37ce6d=_0x3d0357['clusterName'],_0x30b350=_0x3d0357[_0x185f7f(0x166)],_0x38d858=_0x3d0357['concurrency'],_0x14b52a=_0x3d0357[_0x185f7f(0x201)],_0x421e30=_0x3d0357[_0x185f7f(0x203)],_0x4f84d3=_0x3d0357[_0x185f7f(0x1d3)],_0x3ef5c6=_0x3d0357[_0x185f7f(0x134)],_0x4e78cd=_0x3d0357['s3bucket'],_0x412b61=_0x3d0357[_0x185f7f(0x2a1)],_0x2648ce=_0x3d0357[_0x185f7f(0x13a)],_0x4b7132=_0x2d14de[_0x185f7f(0x260)],_0x2879fb=_0x2d14de[_0x185f7f(0x2a7)],_0x421e30&&_0x364c6a[_0x185f7f(0x26d)](_0x421e30[_0x185f7f(0x243)],0x0)&&(_0x364c6a[_0x185f7f(0x26d)](_0x364c6a[_0x185f7f(0x152)],_0x364c6a[_0x185f7f(0x152)])?_0x421e30=null:(_0x8870a9=_0x4e8c60['route53'],_0x5c35b0=_0x364c6a[_0x185f7f(0x17d)])),_0x3ef5c6&&_0x364c6a[_0x185f7f(0x18c)](_0x3ef5c6['length'],0x0)&&(_0x364c6a[_0x185f7f(0x1ef)](_0x364c6a['lBYZZ'],_0x364c6a['lBYZZ'])?_0x236909=!![]:_0x3ef5c6=null),_0x364c6a[_0x185f7f(0x261)](_0x3d0357[_0x185f7f(0x1c4)],undefined)&&_0x3d0357['privateGrid']&&(_0x364c6a[_0x185f7f(0x298)](_0x364c6a[_0x185f7f(0x2a0)],_0x364c6a['iVSNC'])?_0x51b592[_0x185f7f(0x1c2)](_0x185f7f(0x193)+_0x2550ff+'\x20'):global_registry[_0x185f7f(0x2cf)]=!![]),_0x364c6a[_0x185f7f(0x2b8)](updateGlobalRegistryWithConfig,_0x42aa41,_0x37ce6d,_0x30b350,_0x38d858,_0x14b52a,_0x4e78cd,_0x3d0357,_0x4b7132,_0x2879fb,_0x412b61,_0x2648ce),global_registry[_0x185f7f(0x141)]&&(_0x364c6a[_0x185f7f(0x14b)](_0x364c6a[_0x185f7f(0x1e4)],_0x364c6a[_0x185f7f(0x2ae)])?_0x5b1852[_0x185f7f(0x197)](_0x185f7f(0x171)+_0x27e664+'\x20\x0a'+_0x141480[_0x185f7f(0x23c)](_0x5b5481[_0x185f7f(0x2bf)])):_0x364c6a[_0x185f7f(0x2b5)](updateGlobalRegistryForHubHa,_0x2d14de['uploaderVersion']));}else _0x2baf14['sendResourceDataToHST']();}else{if(_0x364c6a['vanbu'](_0x2c4206,!![])){if(_0x364c6a[_0x185f7f(0x1e1)](_0x364c6a[_0x185f7f(0x1cf)],_0x364c6a[_0x185f7f(0x2b4)])){_0x4baf10=_0x185f7f(0x1dc)+_0x6affeb,logger[_0x185f7f(0x1c2)](_0x4baf10);const _0x1e8cc1={};_0x1e8cc1[_0x185f7f(0x177)]=WS_EVENTS['LOG'],_0x1e8cc1[_0x185f7f(0x232)]=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x1e8cc1),_0x38d858=_0x3d0357[_0x185f7f(0x240)],_0x14b52a=_0x3d0357[_0x185f7f(0x201)],_0x421e30=null,_0x4f84d3=null,_0x3ef5c6=null,_0x4e78cd=_0x3d0357[_0x185f7f(0x295)],_0x412b61=_0x3d0357[_0x185f7f(0x2a1)],_0x2648ce=_0x3d0357['maxNodes'],_0x4b7132=_0x2d14de[_0x185f7f(0x260)],_0x2879fb=_0x2d14de[_0x185f7f(0x2a7)];_0x364c6a['UoEbr'](_0x3d0357['privateGrid'],undefined)&&_0x3d0357[_0x185f7f(0x1c4)]&&(_0x364c6a[_0x185f7f(0x20d)](_0x364c6a['RbuqY'],_0x364c6a[_0x185f7f(0x164)])?global_registry[_0x185f7f(0x2cf)]=!![]:_0x5b0428=_0x364c6a[_0x185f7f(0x15e)]);_0x364c6a[_0x185f7f(0x1dd)](updateGlobalRegistryWithConfig,_0x42aa41,_0x37ce6d,_0x30b350,_0x38d858,_0x14b52a,_0x4e78cd,_0x3d0357,_0x4b7132,_0x2879fb,_0x412b61,_0x2648ce);if(global_registry[_0x185f7f(0x141)]){if(_0x364c6a['WFlkQ'](_0x364c6a['aDnJp'],_0x364c6a[_0x185f7f(0x276)]))_0x364c6a[_0x185f7f(0x2b5)](updateGlobalRegistryForHubHa,_0x2d14de[_0x185f7f(0x2c5)]);else{const _0x53551f={};_0x53551f[_0x185f7f(0x177)]=_0x12f144[_0x185f7f(0x1f6)],_0x53551f[_0x185f7f(0x232)]=_0x185f7f(0x1a7)+_0x3330e9+_0x185f7f(0x21b),_0xd31708['sendEventToBackend'](_0x13e13d,_0x53551f,_0x364c6a[_0x185f7f(0x190)]),_0xe352e0[_0x185f7f(0x1c2)](_0x185f7f(0x1a7)+_0x76d05+_0x185f7f(0x21b)),_0x4b7e96=!![];if(_0x364c6a[_0x185f7f(0x160)](_0x1690e2,!![]))throw new _0x201779(_0x185f7f(0x1a7)+_0x517119+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}}else{const _0x1f4207={};_0x1f4207[_0x185f7f(0x177)]=_0x2e03c9['LOG'],_0x1f4207[_0x185f7f(0x232)]=_0xbea9fc,_0x23590c[_0x185f7f(0x236)](_0x16d1c9,_0x1f4207,_0x364c6a[_0x185f7f(0x157)],!![]);}}else{if(_0x364c6a[_0x185f7f(0x15c)](_0x364c6a[_0x185f7f(0x146)],_0x364c6a[_0x185f7f(0x146)])){const _0x22cb9e=_0x364c6a[_0x185f7f(0x186)][_0x185f7f(0x2d4)]('|');let _0x4cc535=0x0;while(!![]){switch(_0x22cb9e[_0x4cc535++]){case'0':global_registry['browserVersion']=_0x2d14de[_0x185f7f(0x2a7)];continue;case'1':global_registry[_0x185f7f(0x294)]=_0x37ce6d;continue;case'2':const _0x473497={};_0x473497[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x12d)],_0x473497[_0x185f7f(0x232)]=_0x364c6a['rOYAa'],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x473497);continue;case'3':logger[_0x185f7f(0x1c2)](_0x4baf10);continue;case'4':global_registry[_0x185f7f(0x1a3)]=_0x42aa41;continue;case'5':_0x4baf10=_0x185f7f(0x1cb)+_0x6affeb+'\x20in\x20existing\x20cluster\x20\x27'+_0x37ce6d+'\x27';continue;case'6':global_registry['clusterRegion']=_0x30b350;continue;case'7':global_registry[_0x185f7f(0x260)]=_0x2d14de[_0x185f7f(0x260)];continue;case'8':const _0x695d9e={};_0x695d9e[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x695d9e[_0x185f7f(0x232)]=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x695d9e);continue;}break;}}else{const _0xa522b4=_0x364c6a[_0x185f7f(0x132)][_0x185f7f(0x2d4)]('|');let _0x25c4f9=0x0;while(!![]){switch(_0xa522b4[_0x25c4f9++]){case'0':_0x5cd157[_0x185f7f(0x1ed)]=_0x364c6a['nciOJ'];continue;case'1':_0x1542b4[_0x185f7f(0x25f)]=_0x364c6a[_0x185f7f(0x1b0)];continue;case'2':_0x5ea22e['enableHubHa']=!![];continue;case'3':_0x273f06[_0x185f7f(0x254)]=_0x364c6a[_0x185f7f(0x275)];continue;case'4':_0x15dcb7[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x1c6)]);continue;}break;}}}}const _0x377a1b=await _0x364c6a[_0x185f7f(0x14e)](getCloudProviderObject,_0x42aa41,_0x37ce6d,_0x6affeb,_0x1804b6,webSocketUtils,_0x40dc34);if(_0x364c6a[_0x185f7f(0x2d2)](_0x42aa41,AZURE)){if(_0x364c6a['Bxoqi'](_0x364c6a['wTRAY'],_0x364c6a[_0x185f7f(0x175)]))_0x377a1b[_0x185f7f(0x1ac)]();else{const _0x52d675=_0x364c6a[_0x185f7f(0x2c0)][_0x185f7f(0x2d4)]('|');let _0x565389=0x0;while(!![]){switch(_0x52d675[_0x565389++]){case'0':_0x9110e3=_0xa9eb1c['minNodes'];continue;case'1':_0x31ed41=_0x185f7f(0x1dc)+_0x4da22b;continue;case'2':_0x24bd8c=_0x38be7c['s3bucket'];continue;case'3':_0x5a2c4e=_0x2723ad[_0x185f7f(0x201)];continue;case'4':_0x20df57['enableHubHa']&&_0x364c6a['xUtqS'](_0x2339be,_0x12e3d9[_0x185f7f(0x2c5)]);continue;case'5':_0x364c6a[_0x185f7f(0x266)](_0x2c45d4,_0x5cf687,_0x18535b,_0x3a6f5e,_0x37fc82,_0x36a1d1,_0x14476b,_0x238339,_0x5e21f1,_0x32e9f1,_0xa8230b,_0x2437af);continue;case'6':_0x483c68=_0x50ed83['maxNodes'];continue;case'7':const _0x259da1={};_0x259da1['type']=_0xd39224[_0x185f7f(0x1f6)],_0x259da1[_0x185f7f(0x232)]=_0x1c51e7,_0x4043d2[_0x185f7f(0x236)](_0x15057a,_0x259da1);continue;case'8':_0x3848d2['info'](_0x7bb525);continue;case'9':_0x59d33f=_0x4499a4[_0x185f7f(0x240)];continue;case'10':_0x45e6e5=null;continue;case'11':_0x364c6a[_0x185f7f(0x298)](_0x23865b['privateGrid'],_0x5d8fc8)&&_0x328966['privateGrid']&&(_0xefd82e[_0x185f7f(0x2cf)]=!![]);continue;case'12':_0x3bb0f6=_0x3ef89e['hubVersion'];continue;case'13':_0x3f6ebb=null;continue;case'14':_0x46397a=null;continue;case'15':_0x17050b=_0x4e425[_0x185f7f(0x2a7)];continue;}break;}}}let _0x5a903f;if(_0x364c6a[_0x185f7f(0x17e)](_0x421a32,![])){_0x4baf10=_0x185f7f(0x282)+_0x30b350+').';const _0x18b515={};_0x18b515[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x18b515[_0x185f7f(0x232)]=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x18b515),logger['info'](_0x4baf10);const _0xc3d6bd=await _0x377a1b[_0x185f7f(0x1fd)]();if(_0xc3d6bd){if(_0x364c6a[_0x185f7f(0x277)](_0x364c6a[_0x185f7f(0x23a)],_0x364c6a[_0x185f7f(0x13d)]))_0x3b3aa4['gridProfile']=_0x16d07[_0x185f7f(0x14c)];else{const _0x3eb392={};_0x3eb392[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x3eb392[_0x185f7f(0x232)]=_0x185f7f(0x1a7)+_0x37ce6d+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x3eb392,_0x364c6a[_0x185f7f(0x190)]),logger[_0x185f7f(0x1c2)](_0x185f7f(0x1a7)+_0x37ce6d+_0x185f7f(0x21b)),_0x421a32=!![];if(_0x364c6a[_0x185f7f(0x20d)](_0x2c4206,!![])){if(_0x364c6a['hXjMr'](_0x364c6a['Gmpzq'],_0x364c6a['DIZsE']))_0x1e0180[_0x185f7f(0x2cf)]=!![];else throw new Error(_0x185f7f(0x1a7)+_0x37ce6d+_0x185f7f(0x17a));}}}else{const _0x50a120={};_0x50a120[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x50a120[_0x185f7f(0x232)]=_0x364c6a[_0x185f7f(0x1d7)],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x50a120),logger['info'](_0x364c6a[_0x185f7f(0x1d7)]);const _0x5ed495=_0x364c6a[_0x185f7f(0x211)](_0x421e30,null)&&_0x364c6a[_0x185f7f(0x20b)](_0x421e30,undefined),_0x2f3363=_0x364c6a['sFzGp'](_0x3ef5c6,null)&&_0x364c6a['dtlbr'](_0x3ef5c6,undefined)&&_0x364c6a['wkZDV'](_0x3ef5c6[_0x185f7f(0x243)],0x0);if(_0x5ed495){_0x364c6a[_0x185f7f(0x176)](_0x2f3363,![])&&(_0x4baf10=_0x364c6a[_0x185f7f(0x253)],await _0x364c6a['ALjrF'](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes['ERROR'],_0x364c6a['jeFQS'],_0x364c6a['ecVWu'],_0x364c6a['TyENz']),logger[_0x185f7f(0x197)](_0x4baf10),process['exit'](0x1));const _0x569d57=await _0x377a1b['isVPCPresent'](_0x421e30);_0x364c6a[_0x185f7f(0x167)](_0x569d57,![])?(_0x4baf10=_0x364c6a[_0x185f7f(0x28f)],await _0x364c6a[_0x185f7f(0x2b0)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x29f)],_0x364c6a[_0x185f7f(0x157)]),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)):logger[_0x185f7f(0x1c2)](_0x185f7f(0x193)+_0x421e30+'\x20');const _0x1a24e5=await _0x377a1b[_0x185f7f(0x270)](_0x3ef5c6,_0x421e30);_0x364c6a[_0x185f7f(0x241)](_0x1a24e5[0x0],![])?(_0x4baf10=_0x185f7f(0x1f8)+JSON[_0x185f7f(0x23c)](_0x1a24e5[0x1])+_0x185f7f(0x257)+_0x421e30+_0x185f7f(0x288),await _0x364c6a[_0x185f7f(0x24b)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a['jeFQS'],_0x364c6a[_0x185f7f(0x1b8)],_0x364c6a[_0x185f7f(0x157)]),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1)):logger['info'](_0x185f7f(0x1df)+JSON[_0x185f7f(0x23c)](_0x3ef5c6)+'\x20'),[_0x421e30,_0x3ef5c6]=await _0x377a1b[_0x185f7f(0x1a4)](_0x421e30,_0x3ef5c6);}else{const _0x498611=_0x364c6a['EfuUa'][_0x185f7f(0x2d4)]('|');let _0x5b62b7=0x0;while(!![]){switch(_0x498611[_0x5b62b7++]){case'0':logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x273)]);continue;case'1':[_0x421e30,_0x3ef5c6]=await _0x377a1b[_0x185f7f(0x1a4)](_0x421e30,_0x3ef5c6);continue;case'2':logger[_0x185f7f(0x1c2)](_0x364c6a['Qgjsz']);continue;case'3':const _0x18519e={};_0x18519e[_0x185f7f(0x177)]=WS_EVENTS['LOG'],_0x18519e[_0x185f7f(0x232)]=_0x364c6a['cCjNX'],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x18519e);continue;case'4':const _0x271c25={};_0x271c25['type']=WS_EVENTS['LOG'],_0x271c25[_0x185f7f(0x232)]=_0x364c6a['Qgjsz'],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x271c25);continue;}break;}}}}_0x421a32&&_0x364c6a[_0x185f7f(0x18f)](_0x42aa41,AZURE)&&(await _0x377a1b[_0x185f7f(0x237)](),await _0x377a1b[_0x185f7f(0x18e)]());const [_0x572daf,_0x1a828f,_0x566bd8,_0x35588e,_0x2a52d0,_0xd5d0f8,_0x8dc62f]=await _0x364c6a[_0x185f7f(0x2c2)](createK8sClient,_0x377a1b,_0x40dc34[_0x185f7f(0x1bb)]);_0x364c6a[_0x185f7f(0x227)](_0x421a32,![])&&_0x364c6a[_0x185f7f(0x26d)](_0x42aa41,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x5a903f=await _0x377a1b[_0x185f7f(0x130)](_0x572daf,_0x40dc34));if(_0x364c6a[_0x185f7f(0x167)](_0x421a32,![])&&global_registry[_0x185f7f(0x141)]&&(_0x364c6a[_0x185f7f(0x1ab)](_0x42aa41,AWS)||_0x364c6a[_0x185f7f(0x239)](_0x42aa41,GCP)))try{await _0x377a1b[_0x185f7f(0x21e)](_0xd5d0f8,_0x8dc62f,_0x40dc34,_0x421e30,_0x3ef5c6);const _0x23ffc9={};_0x23ffc9[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x23ffc9[_0x185f7f(0x232)]=_0x364c6a[_0x185f7f(0x2ab)],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x23ffc9);!await _0x364c6a[_0x185f7f(0x2c2)](namespaceExists,_0x572daf,global_registry['hubHaNameSpace'])&&await _0x364c6a[_0x185f7f(0x2c2)](createNamespace,_0x572daf,global_registry[_0x185f7f(0x254)]);logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x247)]);let _0x2de2bd=await fs[_0x185f7f(0x178)](path[_0x185f7f(0x18a)](__dirname,_0x364c6a[_0x185f7f(0x2c3)],_0x364c6a[_0x185f7f(0x19b)],_0x364c6a['OjhLa'],_0x364c6a['WVIbp']),_0x364c6a['PhsTD']);_0x2de2bd=_0x2de2bd[_0x185f7f(0x1ff)](/<RedisClientPassword>/g,_0x364c6a[_0x185f7f(0x12e)](encodeBase64,global_registry[_0x185f7f(0x25f)])),_0x2de2bd=_0x2de2bd[_0x185f7f(0x1ff)](/<KafkaClientPassword>/g,_0x364c6a['DGSRF'](encodeBase64,global_registry[_0x185f7f(0x1ed)])),_0x2de2bd=_0x2de2bd['replace'](/<BstackUsername>/g,_0x364c6a[_0x185f7f(0x12e)](encodeBase64,global_registry['bstackUsername'])),_0x2de2bd=_0x2de2bd[_0x185f7f(0x1ff)](/<BstackAccessKey>/g,_0x364c6a[_0x185f7f(0x1f3)](encodeBase64,global_registry[_0x185f7f(0x217)]));const _0x1cf8fb=yaml[_0x185f7f(0x1ad)](_0x2de2bd);await _0x364c6a[_0x185f7f(0x2c2)](kubeApply,_0x1cf8fb,_0x8dc62f),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x1cd)]);let _0x37cffd=_0x364c6a[_0x185f7f(0x1e5)];if(_0x364c6a[_0x185f7f(0x20d)](_0x42aa41,AZURE))_0x37cffd=_0x364c6a['MciCh'];else _0x364c6a[_0x185f7f(0x15d)](_0x42aa41,GCP)&&(_0x37cffd=_0x364c6a[_0x185f7f(0x204)]);logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x151)]);let _0x1d174d=await fs['readFileAsync'](path[_0x185f7f(0x18a)](__dirname,_0x364c6a['Cckpq'],_0x364c6a[_0x185f7f(0x19b)],_0x364c6a[_0x185f7f(0x22e)],_0x364c6a[_0x185f7f(0x12f)]),_0x364c6a[_0x185f7f(0x235)]);_0x1d174d=_0x1d174d[_0x185f7f(0x1ff)](/<HubHaNameSpace>/g,global_registry[_0x185f7f(0x254)]),_0x1d174d=_0x1d174d['replace'](/<StorageClassName>/g,_0x37cffd);const _0x4e184b=yaml[_0x185f7f(0x1ad)](_0x1d174d);await _0x364c6a[_0x185f7f(0x1d1)](kubeApply,_0x4e184b,_0x8dc62f),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x1a6)]),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x14f)]);let _0x3553c2=await fs['readFileAsync'](path['join'](__dirname,_0x364c6a[_0x185f7f(0x2c3)],_0x364c6a['HyxYu'],_0x364c6a[_0x185f7f(0x22e)],_0x364c6a[_0x185f7f(0x27e)]),_0x364c6a[_0x185f7f(0x235)]);_0x3553c2=_0x3553c2['replace'](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x3553c2=_0x3553c2[_0x185f7f(0x1ff)](/<StorageClassName>/g,_0x37cffd);const _0x4db0c4=yaml['loadAll'](_0x3553c2);await _0x364c6a[_0x185f7f(0x231)](kubeApply,_0x4db0c4,_0x8dc62f),logger['info'](_0x364c6a[_0x185f7f(0x258)]),logger['info'](_0x364c6a['KsOwc']);let _0x4e9578=await fs[_0x185f7f(0x178)](path[_0x185f7f(0x18a)](__dirname,_0x364c6a[_0x185f7f(0x2c3)],_0x364c6a[_0x185f7f(0x19b)],_0x364c6a[_0x185f7f(0x22e)],_0x364c6a['BWzxL']),_0x364c6a[_0x185f7f(0x235)]);_0x4e9578=_0x4e9578[_0x185f7f(0x1ff)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x4e9578=_0x4e9578[_0x185f7f(0x1ff)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x142a6a=yaml[_0x185f7f(0x1ad)](_0x4e9578);_0x364c6a['ngwhg'](global_registry['cloudProvider'],AZURE)&&(_0x142a6a[0x0]['spec'][_0x185f7f(0x2d1)][_0x185f7f(0x2ad)][_0x185f7f(0x212)]={'azure.workload.identity/use':_0x364c6a[_0x185f7f(0x2cb)],..._0x142a6a[0x0][_0x185f7f(0x2cc)][_0x185f7f(0x2d1)]['metadata'][_0x185f7f(0x212)]},_0x142a6a[0x0]['spec']['template'][_0x185f7f(0x2cc)][_0x185f7f(0x1be)]=_0x364c6a[_0x185f7f(0x279)]);await _0x364c6a[_0x185f7f(0x17b)](kubeApply,_0x142a6a,_0x8dc62f),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x283)]);const _0x3eff44={};_0x3eff44[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x3eff44[_0x185f7f(0x232)]=_0x364c6a[_0x185f7f(0x1b6)],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x3eff44),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x28a)]);}catch(_0x4e2b41){const _0x3724ea=_0x364c6a[_0x185f7f(0x2a8)][_0x185f7f(0x2d4)]('|');let _0x720e49=0x0;while(!![]){switch(_0x3724ea[_0x720e49++]){case'0':process[_0x185f7f(0x2b2)](0x1);continue;case'1':await _0x377a1b[_0x185f7f(0x205)](_0x572daf,global_registry[_0x185f7f(0x22f)]);continue;case'2':logger[_0x185f7f(0x197)](_0x4baf10);continue;case'3':await _0x364c6a[_0x185f7f(0x2ba)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x16d)],_0x364c6a['TyENz']);continue;case'4':_0x4baf10=_0x185f7f(0x278)+_0x4e2b41['message'];continue;}break;}}try{_0x3a000a=_0x364c6a['ZQbfv'](kebabCase,_0x6affeb),logger[_0x185f7f(0x1c2)](_0x364c6a['bmewy']);const _0x348aa9={};_0x348aa9[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x348aa9[_0x185f7f(0x232)]=_0x364c6a[_0x185f7f(0x1aa)],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x348aa9);if(_0x364c6a[_0x185f7f(0x2d2)](_0x3a000a,_0x364c6a[_0x185f7f(0x279)])){const _0x5d398d={};_0x5d398d[_0x185f7f(0x26e)]=_0x364c6a[_0x185f7f(0x1f4)],_0x5d398d['managedBy']=_0x364c6a[_0x185f7f(0x1f4)];const _0x43fb2a={};_0x43fb2a['name']=_0x3a000a,_0x43fb2a[_0x185f7f(0x2db)]=_0x5d398d;const _0x479306={};_0x479306['metadata']=_0x43fb2a;const _0x416f51=_0x479306,_0x3724c3={};_0x3724c3['body']=_0x416f51,await _0x572daf[_0x185f7f(0x2d9)](_0x3724c3),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x1c9)]);}const _0xb7287c={};_0xb7287c[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0xb7287c['message']=_0x364c6a[_0x185f7f(0x2ac)],webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0xb7287c);const _0x46f63d={};_0x46f63d['type']=WS_EVENTS[_0x185f7f(0x1f6)],_0x46f63d['message']=_0x364c6a['gAFXS'],webSocketUtils['sendEventToBackend'](_0x1804b6,_0x46f63d),logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x133)]);let _0x1eaa49={};_0x364c6a[_0x185f7f(0x18c)](_0x42aa41,AZURE)&&(_0x1eaa49={'clientId':await _0x377a1b['getResourceClientId'](_0x185f7f(0x1b1)+_0x37ce6d)});await _0x364c6a['RFlkm'](addGridComponents,_0x572daf,_0x1a828f,_0x566bd8,_0x35588e,_0x3a000a,_0x37ce6d,_0x5a903f,_0x2a52d0,_0x8dc62f,_0x1eaa49),_0x4baf10=_0x364c6a['ZrCtp'],logger[_0x185f7f(0x1c2)](_0x4baf10);const _0x54e86c={};_0x54e86c[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x54e86c['message']=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x54e86c),_0x4baf10=_0x364c6a[_0x185f7f(0x1a0)],logger[_0x185f7f(0x1c2)](_0x4baf10);const _0x50f0fa={};_0x50f0fa['type']=WS_EVENTS[_0x185f7f(0x1f6)],_0x50f0fa[_0x185f7f(0x232)]=_0x4baf10,webSocketUtils['sendEventToBackend'](_0x1804b6,_0x50f0fa),await _0x364c6a['xmLqW'](waitForDeployment,_0x1a828f,_0x3a000a,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1d0f74=await _0x364c6a[_0x185f7f(0x1d1)](getNamespaceUID,_0x572daf,_0x3a000a),_0x581cee=global_registry[_0x185f7f(0x2cf)]?_0x364c6a[_0x185f7f(0x213)]:_0x364c6a['eBbzo'],_0x24b9f3={};_0x24b9f3[_0x185f7f(0x259)]=_0x581cee,_0x24b9f3[_0x185f7f(0x202)]=_0x364c6a[_0x185f7f(0x2d3)];const _0x3c2f98=await _0x572daf[_0x185f7f(0x221)](_0x24b9f3);let _0x156de9=_0x377a1b['getGridHostname'](_0x3c2f98)+'/'+_0x3a000a,_0x502764=_0x364c6a[_0x185f7f(0x256)];try{const _0x5c0844=_0x185f7f(0x27f)+AG_API_URL+_0x185f7f(0x286)+_0x1d0f74,_0x5c74eb=await _0x364c6a[_0x185f7f(0x137)](got,_0x5c0844,_0x35f58e);(_0x364c6a['GKGWm'](_0x5c74eb,null)||_0x364c6a[_0x185f7f(0x17f)](_0x5c74eb,undefined))&&(_0x4baf10=_0x364c6a['dbBSH'],await _0x364c6a[_0x185f7f(0x1c7)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a['jeFQS'],_0x364c6a[_0x185f7f(0x181)],_0x364c6a['TyENz']),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1));_0x364c6a['KrUZW'](_0x5c74eb['statusCode'],0x191)&&(_0x4baf10=_0x364c6a[_0x185f7f(0x20e)],await _0x364c6a[_0x185f7f(0x2b0)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes['ERROR'],_0x364c6a[_0x185f7f(0x216)],_0x364c6a['cvDxb'],_0x364c6a[_0x185f7f(0x157)]),logger[_0x185f7f(0x197)](_0x4baf10),process[_0x185f7f(0x2b2)](0x1));_0x364c6a['QWEeE'](_0x5c74eb[_0x185f7f(0x25c)],0xc8)&&(_0x4baf10='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x185f7f(0x23c)](_0x5c74eb),await _0x364c6a[_0x185f7f(0x263)](reportToGalactusAndSendToEDS,_0x40dc34,_0x1804b6,_0x4baf10,messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x216)],_0x364c6a[_0x185f7f(0x1d8)],_0x364c6a[_0x185f7f(0x157)]),logger['error'](_0x4baf10),process[_0x185f7f(0x2b2)](0x1));const _0x5af68d=JSON[_0x185f7f(0x1bd)](_0x5c74eb['body']);_0x5af68d['route53']&&(_0x156de9=_0x5af68d[_0x185f7f(0x129)],_0x502764=_0x364c6a[_0x185f7f(0x17d)]),global_registry[_0x185f7f(0x2cf)]&&(_0x502764=_0x364c6a['gzYcy']);}catch(_0x22ac84){}_0x4baf10=_0x185f7f(0x27b)+_0x156de9+'\x20',logger[_0x185f7f(0x1c2)](_0x4baf10);const _0x307ecb={};_0x307ecb[_0x185f7f(0x177)]=WS_EVENTS['LOG'],_0x307ecb['message']=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x307ecb),_0x4baf10='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x502764+'://'+_0x156de9+_0x185f7f(0x142),logger[_0x185f7f(0x1c2)](_0x4baf10);const _0x3ce623={};_0x3ce623[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x1f6)],_0x3ce623[_0x185f7f(0x232)]=_0x4baf10,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x3ce623);const _0x538ab7={};_0x538ab7[_0x185f7f(0x177)]=WS_EVENTS[_0x185f7f(0x255)],_0x538ab7[_0x185f7f(0x232)]=_0x185f7f(0x16f)+_0x156de9,webSocketUtils['sendEventToBackend'](_0x1804b6,_0x538ab7),await webSocketUtils['delay'](0x7d0);}catch(_0x42a2fc){logger[_0x185f7f(0x197)](_0x185f7f(0x1e2)+_0x42a2fc+'\x20\x0a'+JSON[_0x185f7f(0x23c)](_0x42a2fc[_0x185f7f(0x2bf)]));if(_0x364c6a[_0x185f7f(0x239)](_0x421a32,![]))try{logger[_0x185f7f(0x1c2)](_0x364c6a[_0x185f7f(0x27c)]),await _0x364c6a[_0x185f7f(0x27a)](removeGridComponents,_0x572daf,_0x1a828f,_0x566bd8,_0x35588e,_0x3a000a),await _0x377a1b[_0x185f7f(0x205)](_0x572daf,global_registry[_0x185f7f(0x22f)]);}catch(_0x2733f2){logger[_0x185f7f(0x197)](_0x185f7f(0x171)+_0x2733f2+'\x20\x0a'+JSON[_0x185f7f(0x23c)](_0x2733f2['stack']));}throw _0x42a2fc;}}catch(_0x3d5113){const _0xd7e5d4=_0x185f7f(0x292)+_0x3d5113+'\x20\x0a'+JSON[_0x185f7f(0x23c)](_0x3d5113[_0x185f7f(0x2bf)]);if(_0x1804b6){const _0x493379={};_0x493379['type']=WS_EVENTS[_0x185f7f(0x1f6)],_0x493379[_0x185f7f(0x232)]=_0xd7e5d4,webSocketUtils[_0x185f7f(0x236)](_0x1804b6,_0x493379,_0x364c6a['TyENz'],!![]);}await webSocketUtils[_0x185f7f(0x150)](0x7d0);const _0x3d09aa={};_0x3d09aa[_0x185f7f(0x197)]=_0xd7e5d4,await _0x364c6a['KCMbl'](sendInstrumentationEvent,_0x40dc34,_0x364c6a[_0x185f7f(0x216)],messageTypes[_0x185f7f(0x296)],_0x364c6a[_0x185f7f(0x14a)],_0x3d09aa,_0x40dc34),logger['error'](_0xd7e5d4);}process[_0x185f7f(0x2b2)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x54818f=a10_0x321d;function a10_0x321d(_0x58f0bb,_0x23a501){const _0x1d0cfd=a10_0x1d0c();return a10_0x321d=function(_0x321d70,_0x12e181){_0x321d70=_0x321d70-0x99;let _0x52777c=_0x1d0cfd[_0x321d70];return _0x52777c;},a10_0x321d(_0x58f0bb,_0x23a501);}(function(_0x1e603e,_0x341739){const _0x25fafd=a10_0x321d,_0x2c2bff=_0x1e603e();while(!![]){try{const _0x5bfffe=-parseInt(_0x25fafd(0xac))/0x1*(-parseInt(_0x25fafd(0x9c))/0x2)+-parseInt(_0x25fafd(0xa6))/0x3+parseInt(_0x25fafd(0xa0))/0x4*(-parseInt(_0x25fafd(0xa5))/0x5)+-parseInt(_0x25fafd(0xa3))/0x6+parseInt(_0x25fafd(0x9e))/0x7*(-parseInt(_0x25fafd(0xa4))/0x8)+parseInt(_0x25fafd(0xaa))/0x9*(-parseInt(_0x25fafd(0xa8))/0xa)+parseInt(_0x25fafd(0x99))/0xb;if(_0x5bfffe===_0x341739)break;else _0x2c2bff['push'](_0x2c2bff['shift']());}catch(_0x575972){_0x2c2bff['push'](_0x2c2bff['shift']());}}}(a10_0x1d0c,0xcbf2a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x54818f(0x9b));exports[a10_0x54818f(0xad)]=a10_0x54818f(0xa2),exports['desc']='List\x20Grid\x20resources.',exports[a10_0x54818f(0xa9)]=function(_0x35c107){const _0x3d1eca=a10_0x54818f,_0x3b0bdc={};_0x3b0bdc['Seodp']=_0x3d1eca(0x9d),_0x3b0bdc['jmGNA']=_0x3d1eca(0xa1);const _0x2a2161=_0x3b0bdc;return _0x35c107['usage'](HELP_HEADER_MESSAGE[_0x3d1eca(0xa2)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x2a2161['Seodp'])['demandCommand']()[_0x3d1eca(0x9f)]()[_0x3d1eca(0xab)]()['help'](_0x2a2161[_0x3d1eca(0xa7)]);},exports[a10_0x54818f(0x9a)]=function(_0x7904d0){};function a10_0x1d0c(){const _0x1cc0f6=['command','18426760HUjspM','handler','../config/constants','924MKaSow','delete_commands','15575nLUwKh','recommendCommands','164hQulXi','help','delete','235866kOOhbt','2544ntqsJq','9490GDqHHI','4998975vcawSi','jmGNA','110620avUQtR','builder','9WkMeqO','strict','3598GLOcLW'];a10_0x1d0c=function(){return _0x1cc0f6;};return a10_0x1d0c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x28d236=a11_0x3f72;(function(_0x46aba0,_0xa3e0f1){const _0x15974a=a11_0x3f72,_0x554ca1=_0x46aba0();while(!![]){try{const _0x2278d5=parseInt(_0x15974a(0x192))/0x1+parseInt(_0x15974a(0x184))/0x2+-parseInt(_0x15974a(0x187))/0x3*(parseInt(_0x15974a(0x123))/0x4)+-parseInt(_0x15974a(0x156))/0x5+parseInt(_0x15974a(0x154))/0x6*(-parseInt(_0x15974a(0x146))/0x7)+parseInt(_0x15974a(0x101))/0x8+parseInt(_0x15974a(0x165))/0x9;if(_0x2278d5===_0xa3e0f1)break;else _0x554ca1['push'](_0x554ca1['shift']());}catch(_0x18bd77){_0x554ca1['push'](_0x554ca1['shift']());}}}(a11_0x528e,0xb53ca));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x28d236(0x13a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x28d236(0x10e)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x28d236(0x18a)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x28d236(0x14d)),{sendInstrumentationEvent}=require(a11_0x28d236(0x150)),{inputConfirmation}=require(a11_0x28d236(0x164)),{createK8sClient}=require(a11_0x28d236(0x17e)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x28d236(0x115)),webSocketUtils=require(a11_0x28d236(0x130));function a11_0x3f72(_0x21acdf,_0x7ea089){const _0x528e8d=a11_0x528e();return a11_0x3f72=function(_0x3f7256,_0x5d0b7e){_0x3f7256=_0x3f7256-0xf7;let _0x313615=_0x528e8d[_0x3f7256];return _0x313615;},a11_0x3f72(_0x21acdf,_0x7ea089);}exports[a11_0x28d236(0x10b)]=a11_0x28d236(0x100),exports[a11_0x28d236(0x114)]=a11_0x28d236(0x12a),exports['builder']=function(_0x59de61){const _0x129a26=a11_0x28d236,_0x52c228={};_0x52c228[_0x129a26(0x125)]=_0x129a26(0x132),_0x52c228['qAdgE']='string',_0x52c228['WFeMl']=_0x129a26(0x117),_0x52c228['wYtyS']='boolean',_0x52c228['DKdCu']=_0x129a26(0x167);const _0xfd5946=_0x52c228,_0x2b6ecf={};_0x2b6ecf[_0x129a26(0x17a)]=_0xfd5946[_0x129a26(0x125)],_0x2b6ecf[_0x129a26(0x133)]=_0xfd5946['qAdgE'];const _0xb2b0fa={};_0xb2b0fa['description']=_0xfd5946['WFeMl'],_0xb2b0fa[_0x129a26(0x133)]=_0xfd5946[_0x129a26(0x162)],_0xb2b0fa[_0x129a26(0x145)]=![];const _0x6f51ca={};return _0x6f51ca[_0x129a26(0x15d)]=_0x2b6ecf,_0x6f51ca['skip-tls-cert-verify']=_0xb2b0fa,_0x59de61[_0x129a26(0x10c)](HELP_HEADER_MESSAGE[_0x129a26(0x163)])[_0x129a26(0x181)](HELP_FOOTER_MESSAGE)[_0x129a26(0x11b)](_0x6f51ca)[_0x129a26(0x167)](_0xfd5946[_0x129a26(0xff)])[_0x129a26(0x18b)];},exports[a11_0x28d236(0x161)]=async function(_0x41cb0b){const _0x4c3f6c=a11_0x28d236,_0x6ab9a8={'SalIn':_0x4c3f6c(0x107),'qHdJw':'Pass\x20the\x20ID\x20of\x20the\x20Grid','OSFIu':_0x4c3f6c(0x126),'MJVFn':'Skip\x20insecure\x20cert\x20verification.','BVkoM':_0x4c3f6c(0x155),'CKaNj':_0x4c3f6c(0x167),'CTBYD':function(_0x383123,_0x376505){return _0x383123!==_0x376505;},'YeIxr':_0x4c3f6c(0x112),'mtjBj':_0x4c3f6c(0x13e),'cuFgk':function(_0x3fffb9,_0x44b32b){return _0x3fffb9!==_0x44b32b;},'SeYyM':_0x4c3f6c(0xfb),'VAwic':_0x4c3f6c(0x179),'StkKc':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','Uevgv':_0x4c3f6c(0x137),'DXbwy':function(_0x5e1474){return _0x5e1474();},'ppkzX':function(_0x42a31a){return _0x42a31a();},'QqiEx':function(_0x425283,_0x3cd160){return _0x425283===_0x3cd160;},'kVSFI':_0x4c3f6c(0x113),'RKUba':'glfnW','gAYaM':_0x4c3f6c(0x18d),'FzVrI':function(_0xcaf9f4,_0x247ba9,_0x50c8d3,_0x1f764e,_0x1fcedc,_0x38aa75,_0x360fb){return _0xcaf9f4(_0x247ba9,_0x50c8d3,_0x1f764e,_0x1fcedc,_0x38aa75,_0x360fb);},'SyVyj':_0x4c3f6c(0x14f),'OAMgf':_0x4c3f6c(0x116),'LMedt':function(_0x4b9940,_0x18534c,_0x4bf515,_0x89fd2f,_0x3fe2c5,_0x4ffe39,_0x5c9b9c){return _0x4b9940(_0x18534c,_0x4bf515,_0x89fd2f,_0x3fe2c5,_0x4ffe39,_0x5c9b9c);},'DCCQw':_0x4c3f6c(0x17c),'kPnKb':_0x4c3f6c(0xfd),'BUtUm':function(_0x32be36,_0xee9b45,_0x45d37a,_0x4d3160){return _0x32be36(_0xee9b45,_0x45d37a,_0x4d3160);},'HNfjd':function(_0x5041a3,_0x5b3761){return _0x5041a3===_0x5b3761;},'PCVbS':_0x4c3f6c(0x118),'ZRXrl':_0x4c3f6c(0x124),'yxHdZ':function(_0x401ac4,_0x47dc84){return _0x401ac4(_0x47dc84);},'POnwP':function(_0x34613e,_0x57114b){return _0x34613e===_0x57114b;},'nkMFa':function(_0x18a191,_0x393ed9){return _0x18a191===_0x393ed9;},'HRIWU':'cNqdG','rFCzf':_0x4c3f6c(0x170),'tvndw':function(_0x2b300e,_0x456624,_0x3fbcdb,_0x1cf15e,_0x2add0e,_0x3a9c41,_0x3ff998){return _0x2b300e(_0x456624,_0x3fbcdb,_0x1cf15e,_0x2add0e,_0x3a9c41,_0x3ff998);},'yAsKS':'invalid-input','WFipa':_0x4c3f6c(0x17f),'GNtOU':_0x4c3f6c(0x15f),'ZwYBx':_0x4c3f6c(0x148),'emPEN':_0x4c3f6c(0x177),'gVziM':function(_0x1b4c16,_0x5b5bed,_0x2dd69e,_0x1c19b6,_0x1fbdd6,_0x3f485d,_0x213952){return _0x1b4c16(_0x5b5bed,_0x2dd69e,_0x1c19b6,_0x1fbdd6,_0x3f485d,_0x213952);},'ggOjp':function(_0x209261,_0x261e9d,_0x566af0){return _0x209261(_0x261e9d,_0x566af0);},'rjCyO':function(_0x5508d4,_0x5a36f7,_0x308047,_0x429792,_0x1c33c3,_0x4b7feb){return _0x5508d4(_0x5a36f7,_0x308047,_0x429792,_0x1c33c3,_0x4b7feb);},'zRGwq':_0x4c3f6c(0x143),'SxpuQ':_0x4c3f6c(0x12d),'jtqep':_0x4c3f6c(0x108),'AvnRl':_0x4c3f6c(0x16b),'PVwkq':function(_0x4d2f92,_0x5083d3,_0x195a68){return _0x4d2f92(_0x5083d3,_0x195a68);},'eGcml':function(_0x57396c,_0x1addbd,_0x3bba3b){return _0x57396c(_0x1addbd,_0x3bba3b);},'QIgFI':function(_0xaba2a,_0x7f9638){return _0xaba2a===_0x7f9638;},'HyLSX':_0x4c3f6c(0xf7),'dFkij':function(_0x10ac6f,_0x46ec49){return _0x10ac6f===_0x46ec49;},'gNWSg':_0x4c3f6c(0x152),'oCDOs':_0x4c3f6c(0x128),'LzLgO':function(_0x59b5f8,_0x5aa4f8,_0x4aa2af,_0xff3a4,_0x3ec6af,_0x170eb8,_0x4766b5){return _0x59b5f8(_0x5aa4f8,_0x4aa2af,_0xff3a4,_0x3ec6af,_0x170eb8,_0x4766b5);},'lyOsp':'invalid-grid-id','jrnDo':function(_0x38cc69,_0x123656,_0x4542c3,_0x48c33e,_0x3fd3a8,_0x125d76,_0x11a8d6){return _0x38cc69(_0x123656,_0x4542c3,_0x48c33e,_0x3fd3a8,_0x125d76,_0x11a8d6);},'SvtgB':_0x4c3f6c(0x109)};try{global_registry[_0x4c3f6c(0x193)]=_0x6ab9a8[_0x4c3f6c(0x172)](uuidv4);!fs[_0x4c3f6c(0x16d)](_0x6ab9a8[_0x4c3f6c(0x127)](getCredentialsPath))&&(_0x6ab9a8['QqiEx'](_0x6ab9a8['kVSFI'],_0x6ab9a8[_0x4c3f6c(0x16f)])?_0x40e91c=_0x4c3f6c(0x149)+_0x290d11[_0x4c3f6c(0x159)]+'\x22\x20and\x20ID\x20'+_0x5cdda3['id']+_0x4c3f6c(0x13c)+_0x5b53d9[_0x4c3f6c(0x13b)]+_0x4c3f6c(0x144)+_0xe4d06a['clusterId']+_0x4c3f6c(0x135):(console[_0x4c3f6c(0x104)](_0x6ab9a8[_0x4c3f6c(0x175)]),await _0x6ab9a8[_0x4c3f6c(0x13f)](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes[_0x4c3f6c(0x153)],_0x6ab9a8[_0x4c3f6c(0x16e)],null,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1)));_0x6ab9a8[_0x4c3f6c(0x121)](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes[_0x4c3f6c(0x106)],null,null,_0x41cb0b);!_0x41cb0b[_0x4c3f6c(0x12e)]&&(_0x6ab9a8['CTBYD'](_0x6ab9a8[_0x4c3f6c(0xfe)],_0x6ab9a8['kPnKb'])?(console[_0x4c3f6c(0x104)](_0x6ab9a8[_0x4c3f6c(0x176)]),process[_0x4c3f6c(0x14c)](0x1)):_0x7c4b54[_0x4c3f6c(0x13d)](_0x4c3f6c(0x15e)+_0x3c0cf8+_0x4c3f6c(0x189)));const _0x59bab8=JSON['parse'](fs['readFileSync'](_0x6ab9a8[_0x4c3f6c(0x127)](getCredentialsPath))),[_0x257821,_0x24174e]=await _0x6ab9a8[_0x4c3f6c(0x129)](getGridDetails,_0x59bab8[_0x4c3f6c(0x118)][_0x4c3f6c(0x171)],_0x59bab8[_0x4c3f6c(0x118)][_0x4c3f6c(0x173)],_0x41cb0b[_0x4c3f6c(0x12e)]);if(_0x24174e){const _0x46d44d=_0x24174e[_0x4c3f6c(0x13d)];let _0xb6b792=_0x4c3f6c(0x149)+_0x46d44d[_0x4c3f6c(0x159)]+_0x4c3f6c(0x10f)+_0x46d44d['id']+_0x4c3f6c(0x135);_0x24174e['onlyGridInCluster']&&_0x6ab9a8['HNfjd'](_0x24174e['clusterSpawnedVia'],_0x6ab9a8[_0x4c3f6c(0x196)])&&(_0x6ab9a8[_0x4c3f6c(0x142)](_0x6ab9a8[_0x4c3f6c(0x16a)],_0x6ab9a8[_0x4c3f6c(0x16a)])?_0xb6b792=_0x4c3f6c(0x149)+_0x46d44d[_0x4c3f6c(0x159)]+_0x4c3f6c(0x10f)+_0x46d44d['id']+_0x4c3f6c(0x13c)+_0x46d44d[_0x4c3f6c(0x13b)]+'\x22\x20with\x20ID\x20'+_0x46d44d[_0x4c3f6c(0x102)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x3663a8['warn']('Namespace:\x20'+_0x1aab1e+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x24fe8f=![]));const _0x4fe94e=await _0x6ab9a8[_0x4c3f6c(0x136)](inputConfirmation,_0xb6b792);(_0x6ab9a8['POnwP'](_0x4fe94e,undefined)||_0x6ab9a8['QqiEx'](_0x4fe94e,null)||!(_0x6ab9a8['nkMFa'](_0x4fe94e[_0x4c3f6c(0x14e)](),'y')||_0x6ab9a8[_0x4c3f6c(0x10d)](_0x4fe94e[_0x4c3f6c(0x14e)](),'n')))&&(_0x6ab9a8[_0x4c3f6c(0x169)](_0x6ab9a8['HRIWU'],_0x6ab9a8[_0x4c3f6c(0xf9)])?(console[_0x4c3f6c(0x104)](_0x6ab9a8[_0x4c3f6c(0x157)]),await _0x6ab9a8[_0x4c3f6c(0x183)](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes['ERROR'],_0x6ab9a8[_0x4c3f6c(0x195)],null,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1)):(_0x1ff052[_0x4c3f6c(0x13d)](_0x6ab9a8[_0x4c3f6c(0x12f)]),_0x4292ee[_0x4c3f6c(0x14c)](0x0)));if(_0x6ab9a8[_0x4c3f6c(0x169)](_0x4fe94e[_0x4c3f6c(0x14e)](),'n')){if(_0x6ab9a8[_0x4c3f6c(0x122)](_0x6ab9a8['WFipa'],_0x6ab9a8[_0x4c3f6c(0x182)]))process[_0x4c3f6c(0x14c)](0x0);else{const _0x409481={};_0x409481[_0x4c3f6c(0x17a)]=_0x6ab9a8['qHdJw'],_0x409481[_0x4c3f6c(0x133)]=_0x6ab9a8[_0x4c3f6c(0xfa)];const _0xe19584={};_0xe19584[_0x4c3f6c(0x17a)]=_0x6ab9a8[_0x4c3f6c(0x14a)],_0xe19584[_0x4c3f6c(0x133)]=_0x6ab9a8[_0x4c3f6c(0x10a)],_0xe19584[_0x4c3f6c(0x145)]=![];const _0x2ea969={};return _0x2ea969[_0x4c3f6c(0x15d)]=_0x409481,_0x2ea969[_0x4c3f6c(0x103)]=_0xe19584,_0x4acdee[_0x4c3f6c(0x10c)](_0x18951a['delete'])[_0x4c3f6c(0x181)](_0x577a82)['options'](_0x2ea969)['help'](_0x6ab9a8[_0x4c3f6c(0x11f)])[_0x4c3f6c(0x18b)];}}const _0x231f64=WS_ENDPOINT[_0x4c3f6c(0x166)](_0x6ab9a8['ZwYBx'],_0x59bab8['Browserstack'][_0x4c3f6c(0x171)])[_0x4c3f6c(0x166)](_0x6ab9a8[_0x4c3f6c(0x174)],_0x59bab8[_0x4c3f6c(0x118)]['password']),_0x55f278={};_0x55f278[_0x4c3f6c(0x105)]=ws,_0x55f278[_0x4c3f6c(0x131)]=0x36ee80;const _0x19240a=new ReconnectingWebSocket(_0x231f64,[],_0x55f278);global_registry['clusterRegion']=_0x46d44d[_0x4c3f6c(0x11e)];const _0x2e99e7=_0x46d44d[_0x4c3f6c(0x190)],_0x166777=await _0x6ab9a8['gVziM'](getCloudProviderObject,_0x2e99e7,_0x46d44d[_0x4c3f6c(0x13b)],_0x46d44d['name'],_0x19240a,webSocketUtils,_0x41cb0b),_0x471f02=await _0x166777[_0x4c3f6c(0x11c)]();if(_0x471f02){const _0x5aa13f=_0x6ab9a8['yxHdZ'](kebabCase,_0x46d44d[_0x4c3f6c(0x159)]),[_0x430729,_0x2d06c5,_0x73aff3,_0x572ba6,_0x18b84e,_0x4c83cd]=await _0x6ab9a8[_0x4c3f6c(0x180)](createK8sClient,_0x166777,_0x41cb0b[_0x4c3f6c(0x120)]);let _0x193049=!![];const _0x37485d={};_0x37485d[_0x4c3f6c(0x159)]=_0x5aa13f,await _0x430729['readNamespace'](_0x37485d)['then'](_0x35a032=>{const _0x85f326=_0x4c3f6c;_0x6ab9a8[_0x85f326(0x139)](_0x6ab9a8[_0x85f326(0x138)],_0x6ab9a8[_0x85f326(0x119)])?logger[_0x85f326(0x13d)]('Namespace:\x20'+_0x5aa13f+_0x85f326(0x189)):_0x63dd87[_0x85f326(0x14c)](0x0);})[_0x4c3f6c(0x15b)](_0x2b50d1=>{const _0x370ba4=_0x4c3f6c;_0x6ab9a8[_0x370ba4(0x122)](_0x6ab9a8[_0x370ba4(0x17b)],_0x6ab9a8['VAwic'])?(logger['warn'](_0x370ba4(0x15e)+_0x5aa13f+_0x370ba4(0x188)),_0x193049=![]):_0x3246f0['warn']('Cluster:\x20'+_0x15509c['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');});if(_0x193049){await _0x6ab9a8[_0x4c3f6c(0x11a)](removeGridComponents,_0x430729,_0x2d06c5,_0x73aff3,_0x572ba6,_0x5aa13f);if(_0x24174e[_0x4c3f6c(0x158)]){const _0x156d60=await _0x166777['isBrowserstackCluster']();_0x156d60?_0x6ab9a8[_0x4c3f6c(0x122)](_0x6ab9a8[_0x4c3f6c(0x141)],_0x6ab9a8[_0x4c3f6c(0x141)])?_0x20d590['warn'](_0x6ab9a8[_0x4c3f6c(0x151)]):await _0x166777['deleteCluster'](_0x430729,_0x46d44d['region']):_0x6ab9a8[_0x4c3f6c(0x142)](_0x6ab9a8[_0x4c3f6c(0x11d)],_0x6ab9a8[_0x4c3f6c(0x16c)])?(_0x3e820c['error'](_0x6ab9a8[_0x4c3f6c(0x176)]),_0x496dd8['exit'](0x1)):logger[_0x4c3f6c(0x185)](_0x4c3f6c(0x168)+_0x46d44d[_0x4c3f6c(0x13b)]+_0x4c3f6c(0x12c));}}}else logger[_0x4c3f6c(0x185)](_0x6ab9a8[_0x4c3f6c(0x151)]);const _0x3bcb42=_0x4c3f6c(0x18e)+AG_API_URL+_0x4c3f6c(0x160)+_0x41cb0b[_0x4c3f6c(0x12e)],_0x3db264={'method':_0x6ab9a8[_0x4c3f6c(0x18c)],'headers':_0x6ab9a8[_0x4c3f6c(0x15a)](getAuthHeader,_0x59bab8[_0x4c3f6c(0x118)]['username'],_0x59bab8[_0x4c3f6c(0x118)][_0x4c3f6c(0x173)]),'throwHttpErrors':![]},_0x4329ec=await _0x6ab9a8['eGcml'](got,_0x3bcb42,_0x3db264);_0x6ab9a8[_0x4c3f6c(0x139)](_0x4329ec,null)&&_0x6ab9a8[_0x4c3f6c(0x139)](_0x4329ec,undefined)&&_0x6ab9a8[_0x4c3f6c(0xf8)](_0x4329ec[_0x4c3f6c(0x186)],0xc8)&&(logger['info'](_0x6ab9a8[_0x4c3f6c(0x12f)]),process[_0x4c3f6c(0x14c)](0x0)),logger[_0x4c3f6c(0x104)](_0x4c3f6c(0x17d)+_0x4329ec[_0x4c3f6c(0x18f)]),await _0x6ab9a8[_0x4c3f6c(0x183)](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes[_0x4c3f6c(0x153)],_0x6ab9a8['HyLSX'],_0x257821,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1);}_0x6ab9a8[_0x4c3f6c(0x194)](_0x257821[_0x4c3f6c(0x186)],0x191)&&(logger[_0x4c3f6c(0x104)](_0x6ab9a8[_0x4c3f6c(0x147)]),await _0x6ab9a8['gVziM'](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes[_0x4c3f6c(0x153)],_0x6ab9a8[_0x4c3f6c(0x15c)],null,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1)),_0x6ab9a8[_0x4c3f6c(0x10d)](_0x257821[_0x4c3f6c(0x186)],0x190)&&(logger[_0x4c3f6c(0x104)](JSON[_0x4c3f6c(0x14b)](_0x257821[_0x4c3f6c(0x18f)])['message']),await _0x6ab9a8['LzLgO'](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes[_0x4c3f6c(0x153)],_0x6ab9a8[_0x4c3f6c(0x191)],null,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1)),logger[_0x4c3f6c(0x104)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4c3f6c(0xfc)](_0x257821)),await _0x6ab9a8[_0x4c3f6c(0x134)](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8[_0x4c3f6c(0x110)],messageTypes[_0x4c3f6c(0x153)],_0x6ab9a8[_0x4c3f6c(0x12b)],_0x257821,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1);}catch(_0x4ec298){logger[_0x4c3f6c(0x104)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x4ec298[_0x4c3f6c(0x111)]),await _0x6ab9a8[_0x4c3f6c(0x140)](sendInstrumentationEvent,_0x41cb0b,_0x6ab9a8['SyVyj'],messageTypes['ERROR'],_0x6ab9a8[_0x4c3f6c(0x178)],_0x4ec298,_0x41cb0b),process[_0x4c3f6c(0x14c)](0x1);}};function a11_0x528e(){const _0x25beee=['unauthorised','BUtUm','Delete\x20an\x20Automation\x20grid.','HyLSX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','laoEZ','gridId','SalIn','../../utils/webSocketUtils','connectionTimeout','Pass\x20the\x20ID\x20of\x20the\x20Grid','type','jrnDo','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','yxHdZ','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','YeIxr','CTBYD','reconnecting-websocket','clusterName','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','info','NMzmS','FzVrI','LzLgO','zRGwq','QqiEx','SUkZA','\x22\x20with\x20ID\x20','default','9848902pktznb','gNWSg','<UsernamePlaceholder>','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','MJVFn','parse','exit','../../utils/gridComponents','toLowerCase','delete-grid-called','../../utils/instrumentationUtils','StkKc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','6AXZBoH','boolean','5503010PpRZaX','rFCzf','onlyGridInCluster','name','PVwkq','catch','oCDOs','grid-id','Namespace:\x20','OeDVz','/packages/cli/grid/','handler','wYtyS','delete','../../utils/userInput','17934264GUzlwe','replace','help','Cluster:\x20','nkMFa','ZRXrl','DELETE','jtqep','existsSync','OAMgf','RKUba','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','username','DXbwy','password','emPEN','gAYaM','Uevgv','<PasswordPlaceholder>','SvtgB','DVSCs','description','SeYyM','QPiIk','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','../../utils/createk8sClient','JHfBv','ggOjp','epilogue','GNtOU','tvndw','277860ejjMlD','warn','statusCode','93354pqOznp','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','../../cloudproviders/utils','argv','AvnRl','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','body','cloudProvider','lyOsp','324493TjXvmC','requestId','dFkij','yAsKS','PCVbS','server-error','QIgFI','HRIWU','OSFIu','uoNvL','stringify','xKCRt','DCCQw','DKdCu','grid','11080456xjFeeT','clusterId','skip-tls-cert-verify','error','WebSocket','INFO','Successfully\x20deleted\x20the\x20grid','XgbDK','unknown-error','BVkoM','command','usage','HNfjd','../../config/constants','\x22\x20and\x20ID\x20','SyVyj','stack','kKNHc','rLtkF','desc','../../utils/utilityMethods','init-not-called','Skip\x20insecure\x20cert\x20verification.','Browserstack','mtjBj','rjCyO','options','isClusterPresent','SxpuQ','region','CKaNj','skipTlsCertVerify','LMedt','cuFgk','76AmVIzN','AZfOj','rmAsM','string','ppkzX'];a11_0x528e=function(){return _0x25beee;};return a11_0x528e();}
|
|
1
|
+
function a11_0x2080(){const _0x5b8851=['dGaKN','ZrivH','region','9061029zsqJxW','reconnecting-websocket','options','ayiWT','gTXSJ','10kRmlUL','desc','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','exit','VKsFI','lZNaQ','wifmM','uuid','RjBoE','handler','description','BBphG','command','IhavV','../../utils/utilityMethods','body','AweNm','xFHBn','UmkEg','DELETE','stringify','auAqo','18804aBqFDN','CATfM','PGvPI','QeMcP','kZpko','../../config/logger','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','usage','readNamespace','bsMLF','<UsernamePlaceholder>','FPzzi','ERROR','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','invalid-grid-id','invalid-input','Pass\x20the\x20ID\x20of\x20the\x20Grid','Skip\x20insecure\x20cert\x20verification.','grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','OgIwH','clusterName','AQClS','BeTGz','type','message','WebSocket','\x22\x20with\x20ID\x20','onlyGridInCluster','username','UZNmr','swMlV','EObOb','error','catch','bEOJu','isBrowserstackCluster','Namespace:\x20','OlJYu','swCgh','toLowerCase','replace','info','mQQXf','parse','help','giFTC','iWbrz','gridId','boolean','readFileSync','existsSync','epilogue','grid-id','../../utils/gridComponents','LVfZM','clusterId','10376016wiPSdg','446348xBNHOm','warn','lLUor','hFGpO','SPEzA','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','password','ZOBCd','WywDh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ukPDE','lDIgw','dCMbD','aUeEm','tnfTP','2649730VKVsKC','argv','builder','tcbnL','Failed\x20to\x20delete\x20resources!\x20Error:\x20','unauthorised','jNqxc','CuVKC','<PasswordPlaceholder>','GnNNb','delete','dJbTJ','../../utils/userInput','24HUSVuZ','../../cloudproviders/utils','oETDd','439700laNOUp','\x22\x20and\x20ID\x20','Delete\x20an\x20Automation\x20grid.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','AtGzU','clusterRegion','WHvNK','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','PqqRV','default','statusCode','got','smZIA','/packages/cli/grid/','Wdkkf','SqaKb','26BhIMza','ofdoY','CVTHf','Cluster:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','LxNnW','WrLEC','Browserstack','35949NQAAhH','then','unknown-error','CJQpn','MOHpo','../../utils/webSocketUtils','INFO','bTnYw'];a11_0x2080=function(){return _0x5b8851;};return a11_0x2080();}function a11_0x33b3(_0x2fb304,_0x2cdb39){const _0x2080b9=a11_0x2080();return a11_0x33b3=function(_0x33b337,_0x30cd5a){_0x33b337=_0x33b337-0x92;let _0x4ca13b=_0x2080b9[_0x33b337];return _0x4ca13b;},a11_0x33b3(_0x2fb304,_0x2cdb39);}const a11_0x4d2795=a11_0x33b3;(function(_0x82ab67,_0x2ba844){const _0x1c73a4=a11_0x33b3,_0x5eddc1=_0x82ab67();while(!![]){try{const _0x55bb9b=parseInt(_0x1c73a4(0xa9))/0x1+parseInt(_0x1c73a4(0xba))/0x2*(-parseInt(_0x1c73a4(0xc3))/0x3)+parseInt(_0x1c73a4(0xe9))/0x4+parseInt(_0x1c73a4(0x99))/0x5+parseInt(_0x1c73a4(0xa6))/0x6*(parseInt(_0x1c73a4(0x123))/0x7)+-parseInt(_0x1c73a4(0x122))/0x8+parseInt(_0x1c73a4(0xce))/0x9*(parseInt(_0x1c73a4(0xd3))/0xa);if(_0x55bb9b===_0x2ba844)break;else _0x5eddc1['push'](_0x5eddc1['shift']());}catch(_0x1306da){_0x5eddc1['push'](_0x5eddc1['shift']());}}}(a11_0x2080,0xbf42b));const fs=require('fs'),got=require(a11_0x4d2795(0xb5)),{v4:uuidv4}=require(a11_0x4d2795(0xda)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4d2795(0xcf)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x4d2795(0xee)),{getCloudProviderObject}=require(a11_0x4d2795(0xa7)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x4d2795(0x11f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x4d2795(0xa5)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x4d2795(0xe1)),webSocketUtils=require(a11_0x4d2795(0xc8));exports[a11_0x4d2795(0xdf)]=a11_0x4d2795(0xfb),exports[a11_0x4d2795(0xd4)]=a11_0x4d2795(0xab),exports[a11_0x4d2795(0x9b)]=function(_0x38f9e3){const _0x133763=a11_0x4d2795,_0x34ca75={};_0x34ca75[_0x133763(0xb9)]=_0x133763(0xf9),_0x34ca75[_0x133763(0x10c)]='string',_0x34ca75[_0x133763(0xcc)]=_0x133763(0xfa),_0x34ca75[_0x133763(0x126)]=_0x133763(0x11a),_0x34ca75[_0x133763(0xd7)]=_0x133763(0x116);const _0x1405bb=_0x34ca75,_0x33d9f8={};_0x33d9f8[_0x133763(0xdd)]=_0x1405bb['SqaKb'],_0x33d9f8[_0x133763(0x101)]=_0x1405bb[_0x133763(0x10c)];const _0x24a523={};_0x24a523[_0x133763(0xdd)]=_0x1405bb['ZrivH'],_0x24a523[_0x133763(0x101)]=_0x1405bb[_0x133763(0x126)],_0x24a523[_0x133763(0xb3)]=![];const _0x26c18e={};return _0x26c18e[_0x133763(0x11e)]=_0x33d9f8,_0x26c18e['skip-tls-cert-verify']=_0x24a523,_0x38f9e3['usage'](HELP_HEADER_MESSAGE['delete'])[_0x133763(0x11d)](HELP_FOOTER_MESSAGE)[_0x133763(0xd0)](_0x26c18e)[_0x133763(0x116)](_0x1405bb[_0x133763(0xd7)])[_0x133763(0x9a)];},exports[a11_0x4d2795(0xdc)]=async function(_0x10ff1a){const _0x2be8b4=a11_0x4d2795,_0x19e9a2={'xFHBn':_0x2be8b4(0xf9),'ukPDE':'string','HtrAv':_0x2be8b4(0xfa),'WrLEC':'boolean','zhIMk':_0x2be8b4(0x116),'lDIgw':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','dCMbD':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','tnfTP':function(_0x2762cb,_0x47e936){return _0x2762cb!==_0x47e936;},'PGvPI':'lseqO','UZNmr':_0x2be8b4(0xa4),'ayiWT':function(_0x285aed,_0x505850){return _0x285aed!==_0x505850;},'oETDd':_0x2be8b4(0x125),'swCgh':'Successfully\x20deleted\x20the\x20grid','EObOb':function(_0x24b0a5){return _0x24b0a5();},'bsMLF':function(_0x2e66ec,_0x393264){return _0x2e66ec!==_0x393264;},'AtGzU':_0x2be8b4(0x117),'uVHPv':_0x2be8b4(0xbe),'smZIA':function(_0x4dfad3,_0x313907,_0x4c27a3,_0x4ddf23,_0x4a00a5,_0x64e64a,_0x154a95){return _0x4dfad3(_0x313907,_0x4c27a3,_0x4ddf23,_0x4a00a5,_0x64e64a,_0x154a95);},'ofdoY':'delete-grid-called','CATfM':'init-not-called','LxNnW':function(_0x16c75a,_0x480dd6){return _0x16c75a===_0x480dd6;},'gTXSJ':_0x2be8b4(0xed),'WHvNK':function(_0x33a5c5,_0x305ef9,_0x19eb88,_0x5eaf8f){return _0x33a5c5(_0x305ef9,_0x19eb88,_0x5eaf8f);},'CuVKC':function(_0x2f2759,_0x54de71){return _0x2f2759===_0x54de71;},'aUeEm':_0x2be8b4(0xc2),'IhavV':function(_0x3164c8,_0x5976f7){return _0x3164c8!==_0x5976f7;},'CJQpn':_0x2be8b4(0xe5),'mQQXf':function(_0x532216,_0xdb014c){return _0x532216(_0xdb014c);},'iWbrz':function(_0x27e2bd,_0x1abdbc){return _0x27e2bd===_0x1abdbc;},'lZNaQ':function(_0x354d9b,_0x2f2de2){return _0x354d9b===_0x2f2de2;},'OlJYu':function(_0x498f52,_0x24eaa2){return _0x498f52===_0x24eaa2;},'fFDdE':_0x2be8b4(0xe8),'AweNm':_0x2be8b4(0x127),'tAswg':_0x2be8b4(0x128),'QeMcP':_0x2be8b4(0xf8),'OgIwH':_0x2be8b4(0x120),'oDNYO':_0x2be8b4(0xf3),'AQClS':_0x2be8b4(0xa1),'RjBoE':function(_0x45cb56,_0x1a6e24,_0x63527a){return _0x45cb56(_0x1a6e24,_0x63527a);},'tcbnL':function(_0x291124,_0x15cd03,_0x39a5d6,_0x1e9361,_0x15a1b5,_0x5eb593){return _0x291124(_0x15cd03,_0x39a5d6,_0x1e9361,_0x15a1b5,_0x5eb593);},'WywDh':function(_0x1126b8,_0xdfce81){return _0x1126b8!==_0xdfce81;},'jNqxc':_0x2be8b4(0xcb),'wifmM':function(_0x126380,_0x2f68ac){return _0x126380===_0x2f68ac;},'MOHpo':'amNZr','CVTHf':_0x2be8b4(0x108),'NnKzS':_0x2be8b4(0xe6),'ZOBCd':function(_0x459a9e,_0x468b4c,_0x1e13d3){return _0x459a9e(_0x468b4c,_0x1e13d3);},'bTnYw':function(_0x4389b3,_0x388527){return _0x4389b3===_0x388527;},'Wdkkf':'server-error','dynbw':_0x2be8b4(0x93),'BDNQw':_0x2be8b4(0x9e),'BBphG':function(_0x521aca,_0xe7109f){return _0x521aca===_0xe7109f;},'GnNNb':function(_0x3f4192,_0x544ca1,_0x5f2d68,_0x38da42,_0x4a78a1,_0x268a39,_0x1f4024){return _0x3f4192(_0x544ca1,_0x5f2d68,_0x38da42,_0x4a78a1,_0x268a39,_0x1f4024);},'BeTGz':_0x2be8b4(0xf7),'vIkWK':function(_0x4eb528,_0x1750b1,_0x2f74c1,_0x5c52a7,_0x4914f7,_0x4b977e,_0x578455){return _0x4eb528(_0x1750b1,_0x2f74c1,_0x5c52a7,_0x4914f7,_0x4b977e,_0x578455);},'PqqRV':_0x2be8b4(0xc5)};try{global_registry[_0x2be8b4(0xad)]=_0x19e9a2[_0x2be8b4(0x109)](uuidv4);if(!fs[_0x2be8b4(0x11c)](_0x19e9a2[_0x2be8b4(0x109)](getCredentialsPath))){if(_0x19e9a2[_0x2be8b4(0xf2)](_0x19e9a2['AtGzU'],_0x19e9a2[_0x2be8b4(0xae)])){const _0x295f25={};_0x295f25[_0x2be8b4(0xdd)]=_0x19e9a2[_0x2be8b4(0xe4)],_0x295f25['type']=_0x19e9a2[_0x2be8b4(0x94)];const _0x577e51={};_0x577e51['description']=_0x19e9a2['HtrAv'],_0x577e51[_0x2be8b4(0x101)]=_0x19e9a2[_0x2be8b4(0xc1)],_0x577e51[_0x2be8b4(0xb3)]=![];const _0x4bb184={};return _0x4bb184[_0x2be8b4(0x11e)]=_0x295f25,_0x4bb184['skip-tls-cert-verify']=_0x577e51,_0x5431d0[_0x2be8b4(0xf0)](_0x46359f[_0x2be8b4(0xa3)])[_0x2be8b4(0x11d)](_0x451ba6)[_0x2be8b4(0xd0)](_0x4bb184)[_0x2be8b4(0x116)](_0x19e9a2['zhIMk'])['argv'];}else console[_0x2be8b4(0x10a)](_0x19e9a2['uVHPv']),await _0x19e9a2['smZIA'](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2['ofdoY'],messageTypes[_0x2be8b4(0xf5)],_0x19e9a2[_0x2be8b4(0xea)],null,_0x10ff1a),process[_0x2be8b4(0xd6)](0x1);}_0x19e9a2[_0x2be8b4(0xb6)](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2[_0x2be8b4(0xbb)],messageTypes[_0x2be8b4(0xc9)],null,null,_0x10ff1a);!_0x10ff1a[_0x2be8b4(0x119)]&&(_0x19e9a2[_0x2be8b4(0xc0)](_0x19e9a2[_0x2be8b4(0xd2)],_0x19e9a2[_0x2be8b4(0xd2)])?(console['error'](_0x19e9a2[_0x2be8b4(0x96)]),process[_0x2be8b4(0xd6)](0x1)):_0x1b6ccc[_0x2be8b4(0x124)](_0x2be8b4(0xbd)+_0x227aea[_0x2be8b4(0xfe)]+_0x2be8b4(0xef)));const _0x5a02cb=JSON[_0x2be8b4(0x115)](fs[_0x2be8b4(0x11b)](_0x19e9a2[_0x2be8b4(0x109)](getCredentialsPath))),[_0x216faf,_0x300fe7]=await _0x19e9a2[_0x2be8b4(0xb0)](getGridDetails,_0x5a02cb[_0x2be8b4(0xc2)][_0x2be8b4(0x106)],_0x5a02cb[_0x2be8b4(0xc2)]['password'],_0x10ff1a[_0x2be8b4(0x119)]);if(_0x300fe7){const _0x516997=_0x300fe7[_0x2be8b4(0x113)];let _0x5ec3ae='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x516997[_0x2be8b4(0xbf)]+_0x2be8b4(0xaa)+_0x516997['id']+_0x2be8b4(0xf6);_0x300fe7[_0x2be8b4(0x105)]&&_0x19e9a2[_0x2be8b4(0xa0)](_0x300fe7['clusterSpawnedVia'],_0x19e9a2[_0x2be8b4(0x97)])&&(_0x19e9a2[_0x2be8b4(0xe0)](_0x19e9a2[_0x2be8b4(0xc6)],_0x19e9a2[_0x2be8b4(0xc6)])?_0x5f0d3b=_0x2be8b4(0xd5)+_0x4d1459[_0x2be8b4(0xbf)]+'\x22\x20and\x20ID\x20'+_0x2e7832['id']+_0x2be8b4(0xfc)+_0x31e85b['clusterName']+'\x22\x20with\x20ID\x20'+_0x2ed87d[_0x2be8b4(0x121)]+_0x2be8b4(0xf6):_0x5ec3ae=_0x2be8b4(0xd5)+_0x516997[_0x2be8b4(0xbf)]+_0x2be8b4(0xaa)+_0x516997['id']+_0x2be8b4(0xfc)+_0x516997[_0x2be8b4(0xfe)]+_0x2be8b4(0x104)+_0x516997[_0x2be8b4(0x121)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x9b3e9e=await _0x19e9a2[_0x2be8b4(0x114)](inputConfirmation,_0x5ec3ae);(_0x19e9a2[_0x2be8b4(0xa0)](_0x9b3e9e,undefined)||_0x19e9a2[_0x2be8b4(0x118)](_0x9b3e9e,null)||!(_0x19e9a2[_0x2be8b4(0xd8)](_0x9b3e9e[_0x2be8b4(0x111)](),'y')||_0x19e9a2[_0x2be8b4(0xa0)](_0x9b3e9e[_0x2be8b4(0x111)](),'n')))&&(_0x19e9a2[_0x2be8b4(0x10f)](_0x19e9a2['fFDdE'],_0x19e9a2[_0x2be8b4(0xe3)])?(_0x919ff8[_0x2be8b4(0x124)]('Namespace:\x20'+_0x5ebb69+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x1989a2=![]):(console[_0x2be8b4(0x10a)](_0x19e9a2['tAswg']),await _0x19e9a2[_0x2be8b4(0xb6)](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2['ofdoY'],messageTypes[_0x2be8b4(0xf5)],_0x19e9a2[_0x2be8b4(0xec)],null,_0x10ff1a),process[_0x2be8b4(0xd6)](0x1)));_0x19e9a2[_0x2be8b4(0x10f)](_0x9b3e9e['toLowerCase'](),'n')&&(_0x19e9a2[_0x2be8b4(0xa0)](_0x19e9a2[_0x2be8b4(0xfd)],_0x19e9a2[_0x2be8b4(0xfd)])?process[_0x2be8b4(0xd6)](0x0):_0x5358ba[_0x2be8b4(0x124)](_0x19e9a2[_0x2be8b4(0x95)]));const _0x52ba85=WS_ENDPOINT[_0x2be8b4(0x112)](_0x19e9a2['oDNYO'],_0x5a02cb['Browserstack'][_0x2be8b4(0x106)])[_0x2be8b4(0x112)](_0x19e9a2[_0x2be8b4(0xff)],_0x5a02cb['Browserstack'][_0x2be8b4(0x129)]),_0x454280={};_0x454280[_0x2be8b4(0x103)]=ws,_0x454280['connectionTimeout']=0x36ee80;const _0x5c9af9=new ReconnectingWebSocket(_0x52ba85,[],_0x454280);global_registry[_0x2be8b4(0xaf)]=_0x516997[_0x2be8b4(0xcd)];const _0x138140=_0x516997['cloudProvider'],_0x13d026=await _0x19e9a2['smZIA'](getCloudProviderObject,_0x138140,_0x516997['clusterName'],_0x516997[_0x2be8b4(0xbf)],_0x5c9af9,webSocketUtils,_0x10ff1a),_0x56099d=await _0x13d026['isClusterPresent']();if(_0x56099d){const _0x171df8=_0x19e9a2[_0x2be8b4(0x114)](kebabCase,_0x516997[_0x2be8b4(0xbf)]),[_0x4c27ff,_0x560c8a,_0x152a97,_0xfd18b2,_0x3e3516,_0x2a5716]=await _0x19e9a2[_0x2be8b4(0xdb)](createK8sClient,_0x13d026,_0x10ff1a['skipTlsCertVerify']);let _0x7a87e3=!![];const _0x3d7495={};_0x3d7495[_0x2be8b4(0xbf)]=_0x171df8,await _0x4c27ff[_0x2be8b4(0xf1)](_0x3d7495)[_0x2be8b4(0xc4)](_0x555d6c=>{const _0x5865ec=_0x2be8b4,_0x4803af={};_0x4803af[_0x5865ec(0xf4)]=_0x19e9a2[_0x5865ec(0x96)];const _0x23bbe2=_0x4803af;_0x19e9a2[_0x5865ec(0x98)](_0x19e9a2[_0x5865ec(0xeb)],_0x19e9a2[_0x5865ec(0x107)])?logger['info'](_0x5865ec(0x10e)+_0x171df8+_0x5865ec(0xb1)):(_0x2171c5[_0x5865ec(0x10a)](_0x23bbe2[_0x5865ec(0xf4)]),_0x9fe4ec['exit'](0x1));})[_0x2be8b4(0x10b)](_0x419dc5=>{const _0x466dd2=_0x2be8b4;_0x19e9a2[_0x466dd2(0xd1)](_0x19e9a2[_0x466dd2(0xa8)],_0x19e9a2['oETDd'])?_0x200e8d[_0x466dd2(0xd6)](0x0):(logger[_0x466dd2(0x124)](_0x466dd2(0x10e)+_0x171df8+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x7a87e3=![]);});if(_0x7a87e3){await _0x19e9a2[_0x2be8b4(0x9c)](removeGridComponents,_0x4c27ff,_0x560c8a,_0x152a97,_0xfd18b2,_0x171df8);if(_0x300fe7[_0x2be8b4(0x105)]){const _0x51d99c=await _0x13d026[_0x2be8b4(0x10d)]();_0x51d99c?_0x19e9a2[_0x2be8b4(0x92)](_0x19e9a2[_0x2be8b4(0x9f)],_0x19e9a2[_0x2be8b4(0x9f)])?_0x99726b[_0x2be8b4(0x113)]('Namespace:\x20'+_0x5dc4b0+_0x2be8b4(0xb1)):await _0x13d026['deleteCluster'](_0x4c27ff,_0x516997[_0x2be8b4(0xcd)]):_0x19e9a2[_0x2be8b4(0xd9)](_0x19e9a2[_0x2be8b4(0xc7)],_0x19e9a2[_0x2be8b4(0xbc)])?(_0x1e1dc4['info'](_0x19e9a2[_0x2be8b4(0x110)]),_0x1b5753['exit'](0x0)):logger[_0x2be8b4(0x124)]('Cluster:\x20'+_0x516997[_0x2be8b4(0xfe)]+_0x2be8b4(0xef));}}}else logger[_0x2be8b4(0x124)](_0x19e9a2[_0x2be8b4(0x95)]);const _0x9873ab='https://'+AG_API_URL+_0x2be8b4(0xb7)+_0x10ff1a[_0x2be8b4(0x119)],_0x4f6195={'method':_0x19e9a2['NnKzS'],'headers':_0x19e9a2[_0x2be8b4(0xdb)](getAuthHeader,_0x5a02cb['Browserstack'][_0x2be8b4(0x106)],_0x5a02cb['Browserstack'][_0x2be8b4(0x129)]),'throwHttpErrors':![]},_0x4e8b2e=await _0x19e9a2[_0x2be8b4(0x12a)](got,_0x9873ab,_0x4f6195);_0x19e9a2['IhavV'](_0x4e8b2e,null)&&_0x19e9a2[_0x2be8b4(0x92)](_0x4e8b2e,undefined)&&_0x19e9a2[_0x2be8b4(0xca)](_0x4e8b2e[_0x2be8b4(0xb4)],0xc8)&&(logger[_0x2be8b4(0x113)](_0x19e9a2[_0x2be8b4(0x110)]),process[_0x2be8b4(0xd6)](0x0)),logger[_0x2be8b4(0x10a)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x4e8b2e[_0x2be8b4(0xe2)]),await _0x19e9a2[_0x2be8b4(0xb6)](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2[_0x2be8b4(0xbb)],messageTypes['ERROR'],_0x19e9a2[_0x2be8b4(0xb8)],_0x216faf,_0x10ff1a),process['exit'](0x1);}_0x19e9a2[_0x2be8b4(0xa0)](_0x216faf[_0x2be8b4(0xb4)],0x191)&&(logger[_0x2be8b4(0x10a)](_0x19e9a2['dynbw']),await _0x19e9a2['smZIA'](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2[_0x2be8b4(0xbb)],messageTypes[_0x2be8b4(0xf5)],_0x19e9a2['BDNQw'],null,_0x10ff1a),process['exit'](0x1)),_0x19e9a2[_0x2be8b4(0xde)](_0x216faf[_0x2be8b4(0xb4)],0x190)&&(logger[_0x2be8b4(0x10a)](JSON[_0x2be8b4(0x115)](_0x216faf[_0x2be8b4(0xe2)])[_0x2be8b4(0x102)]),await _0x19e9a2[_0x2be8b4(0xa2)](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2[_0x2be8b4(0xbb)],messageTypes[_0x2be8b4(0xf5)],_0x19e9a2[_0x2be8b4(0x100)],null,_0x10ff1a),process[_0x2be8b4(0xd6)](0x1)),logger['error'](_0x2be8b4(0xac)+JSON[_0x2be8b4(0xe7)](_0x216faf)),await _0x19e9a2['vIkWK'](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2['ofdoY'],messageTypes[_0x2be8b4(0xf5)],_0x19e9a2['Wdkkf'],_0x216faf,_0x10ff1a),process[_0x2be8b4(0xd6)](0x1);}catch(_0x50a11b){logger[_0x2be8b4(0x10a)](_0x2be8b4(0x9d)+_0x50a11b['stack']),await _0x19e9a2[_0x2be8b4(0xb6)](sendInstrumentationEvent,_0x10ff1a,_0x19e9a2[_0x2be8b4(0xbb)],messageTypes[_0x2be8b4(0xf5)],_0x19e9a2[_0x2be8b4(0xb2)],_0x50a11b,_0x10ff1a),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x591c(){const _0x58c40f=['AhrAm','tilcu','14200ARjkNs','RAfTL','bstack-accesskey','error','../utils/utilityMethods','string','iEAtU','epilogue','bstackAccesskey','../utils/instrumentationUtils','exit','/automate/plan.json','vctzA','vbiuE','recommendCommands','hWGhY','password','INFO','989008ChMvTM','XcuKT','username','LbrBm','got','HduBr','bstackUsername','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XpnIP','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','UWqon','CrKbw','1126455PyrDva','../utils/userInput','2271AiCIvt','aLnOk','rYjiK','GET','init-called','KJXjY','mIVWR','wrong-creds','XbiKR','nNkAr','tOWyr','sjREh','help','parse','eNXTF','94sVHMVB','oQRBM','Kbtlo','../config/constants','BROWSERSTACK_ACCESS_KEY','GMBIF','wznqk','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','utf-8','fCgJL','strict','KuzyL','command','init','epneo','util','135cyDrlB','HfjoG','ROSjB','kEPGr','ahgwu','usage','nAval','kxfcZ','ERROR','DMEVg','fIUST','handler','existsSync','2075229qOqiHY','options','argv','10135520sQiYCj','fhxuU','https://','18lIZvsq','BROWSERSTACK_USERNAME','QbdiK','KXEXp','HndND','jHSCr','readFileSync','dxJva','tIXHz','Browserstack','writeFileSync','xFSUo','xNOal','63217eTUzsL','bstack-username','requestId','env','statusCode','pjOWO','desc','description','cRVPI','jsxIb','stack','unknown-error','vBSnj','stringify','type'];a12_0x591c=function(){return _0x58c40f;};return a12_0x591c();}const a12_0x5748c9=a12_0x5cba;(function(_0x3ce1dd,_0x414bbc){const _0x223723=a12_0x5cba,_0x117388=_0x3ce1dd();while(!![]){try{const _0x921a9b=parseInt(_0x223723(0xb7))/0x1*(-parseInt(_0x223723(0xc6))/0x2)+-parseInt(_0x223723(0xd6))/0x3*(parseInt(_0x223723(0x107))/0x4)+-parseInt(_0x223723(0xb5))/0x5+-parseInt(_0x223723(0xe9))/0x6*(-parseInt(_0x223723(0xf6))/0x7)+-parseInt(_0x223723(0xa9))/0x8+-parseInt(_0x223723(0xe3))/0x9+parseInt(_0x223723(0xe6))/0xa;if(_0x921a9b===_0x414bbc)break;else _0x117388['push'](_0x117388['shift']());}catch(_0x30c573){_0x117388['push'](_0x117388['shift']());}}}(a12_0x591c,0x2f864));function a12_0x5cba(_0x35b7dc,_0x227241){const _0x591cf7=a12_0x591c();return a12_0x5cba=function(_0x5cbabd,_0x3c0877){_0x5cbabd=_0x5cbabd-0xa5;let _0x54301d=_0x591cf7[_0x5cbabd];return _0x54301d;},a12_0x5cba(_0x35b7dc,_0x227241);}const fs=require('fs'),util=require(a12_0x5748c9(0xd5)),got=require(a12_0x5748c9(0xad)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x5748c9(0xb6)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5748c9(0xc9)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5748c9(0x10b)),{sendInstrumentationEvent}=require(a12_0x5748c9(0x110));exports[a12_0x5748c9(0xd2)]=a12_0x5748c9(0xd3),exports[a12_0x5748c9(0xfc)]=a12_0x5748c9(0xb2),exports['builder']=function(_0x2db092){const _0x2c81c7=a12_0x5748c9,_0x25e7bc={};_0x25e7bc[_0x2c81c7(0xb8)]=_0x2c81c7(0xcd),_0x25e7bc[_0x2c81c7(0x113)]=_0x2c81c7(0x10c),_0x25e7bc['rYjiK']=_0x2c81c7(0xb0),_0x25e7bc[_0x2c81c7(0xeb)]=_0x2c81c7(0xc3);const _0x1125ac=_0x25e7bc,_0x31cd95={};_0x31cd95[_0x2c81c7(0xfd)]=_0x1125ac[_0x2c81c7(0xb8)],_0x31cd95[_0x2c81c7(0x104)]=_0x1125ac['vctzA'];const _0x706604={};_0x706604[_0x2c81c7(0xfd)]=_0x1125ac[_0x2c81c7(0xb9)],_0x706604[_0x2c81c7(0x104)]=_0x1125ac[_0x2c81c7(0x113)];const _0x38a44c={};return _0x38a44c[_0x2c81c7(0xf7)]=_0x31cd95,_0x38a44c['bstack-accesskey']=_0x706604,_0x2db092[_0x2c81c7(0xdb)](HELP_HEADER_MESSAGE[_0x2c81c7(0xd3)])[_0x2c81c7(0x10e)](HELP_FOOTER_MESSAGE)[_0x2c81c7(0xe4)](_0x38a44c)[_0x2c81c7(0xa5)]()[_0x2c81c7(0xd0)]()['help'](_0x1125ac['QbdiK'])[_0x2c81c7(0xe5)];},exports[a12_0x5748c9(0xe1)]=async function(_0x2e53e4){const _0x5f52dc=a12_0x5748c9,_0x31452b={'XcuKT':function(_0x17290b){return _0x17290b();},'fhxuU':_0x5f52dc(0xce),'mIVWR':_0x5f52dc(0xcd),'fCgJL':_0x5f52dc(0x10c),'KuzyL':_0x5f52dc(0xb0),'RAfTL':_0x5f52dc(0xc3),'Kbtlo':function(_0x1321e5){return _0x1321e5();},'iEAtU':function(_0x3c0987,_0x38f1ff,_0x1e9c2a,_0x2ce5d0,_0x418536,_0x58dbf5,_0x580f29){return _0x3c0987(_0x38f1ff,_0x1e9c2a,_0x2ce5d0,_0x418536,_0x58dbf5,_0x580f29);},'XbiKR':_0x5f52dc(0xbb),'sjREh':function(_0x3b705e){return _0x3b705e();},'ROSjB':function(_0x5af1b7,_0x4e1ded){return _0x5af1b7===_0x4e1ded;},'tIXHz':_0x5f52dc(0x106),'LTERS':_0x5f52dc(0xdc),'jHSCr':function(_0x1f2cc6,_0x1b23ee){return _0x1f2cc6!==_0x1b23ee;},'HndND':_0x5f52dc(0xc1),'cRVPI':function(_0x2c3159,_0x2ca459){return _0x2c3159===_0x2ca459;},'pjOWO':_0x5f52dc(0xdd),'zGGam':_0x5f52dc(0xdf),'eNXTF':_0x5f52dc(0xac),'fIUST':_0x5f52dc(0xd9),'AhrAm':'Dfnrc','tHbBv':_0x5f52dc(0xd7),'hWGhY':function(_0x4f212c,_0x828093){return _0x4f212c===_0x828093;},'ahgwu':function(_0x58e85c,_0x1fdf89){return _0x58e85c===_0x1fdf89;},'XpnIP':'vcfmC','Oebcn':'khMxl','Jkjsk':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','wznqk':_0x5f52dc(0xba),'xFSUo':function(_0x27835f,_0x12547e,_0xeca223){return _0x27835f(_0x12547e,_0xeca223);},'CrKbw':function(_0x44d97b,_0x22424e){return _0x44d97b!==_0x22424e;},'Jnowb':function(_0x2a1d0e,_0x1e27e4){return _0x2a1d0e===_0x1e27e4;},'oQRBM':function(_0x4481f7,_0x7b9dc2){return _0x4481f7===_0x7b9dc2;},'vBSnj':'mLGKN','nNkAr':_0x5f52dc(0xec),'UWqon':'lNvJe','KJXjY':function(_0x4609c4){return _0x4609c4();},'HduBr':function(_0x1899fd,_0x359b80){return _0x1899fd===_0x359b80;},'GMBIF':_0x5f52dc(0xff),'xNOal':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','dxJva':_0x5f52dc(0xbe),'vbiuE':function(_0x620d13,_0x50899d,_0x532e8b,_0x496875,_0x67d282,_0x18a34f,_0x258eb5){return _0x620d13(_0x50899d,_0x532e8b,_0x496875,_0x67d282,_0x18a34f,_0x258eb5);},'epneo':_0x5f52dc(0x101)};try{global_registry[_0x5f52dc(0xf8)]=_0x31452b[_0x5f52dc(0xc8)](uuidv4),_0x31452b['iEAtU'](sendInstrumentationEvent,_0x2e53e4,_0x31452b[_0x5f52dc(0xbf)],messageTypes[_0x5f52dc(0xa8)],null,null,_0x2e53e4);const _0x9ca209=_0x31452b[_0x5f52dc(0xc2)](getDirForConfig);!fs['existsSync'](_0x9ca209)&&(_0x31452b[_0x5f52dc(0xd8)](_0x31452b[_0x5f52dc(0xf1)],_0x31452b['LTERS'])?_0x1021eb=_0x104a4c[_0x5f52dc(0xf9)][_0x5f52dc(0xea)]:fs['mkdirSync'](_0x9ca209));let _0xebf0e9,_0x349e07;process[_0x5f52dc(0xf9)][_0x5f52dc(0xea)]&&(_0x31452b[_0x5f52dc(0xee)](_0x31452b[_0x5f52dc(0xed)],_0x31452b[_0x5f52dc(0xed)])?_0x33f1c3=_0x4d545d['env'][_0x5f52dc(0xca)]:_0xebf0e9=process[_0x5f52dc(0xf9)][_0x5f52dc(0xea)]);process[_0x5f52dc(0xf9)][_0x5f52dc(0xca)]&&(_0x31452b[_0x5f52dc(0xfe)](_0x31452b[_0x5f52dc(0xfb)],_0x31452b['zGGam'])?_0x42bcee=_0x1311ff[_0x5f52dc(0x10f)]:_0x349e07=process['env']['BROWSERSTACK_ACCESS_KEY']);if(_0x2e53e4[_0x5f52dc(0xaf)]){if(_0x31452b[_0x5f52dc(0xfe)](_0x31452b[_0x5f52dc(0xc5)],_0x31452b[_0x5f52dc(0xe0)])){let _0x548e80={};const _0x4e3dce=_0x31452b[_0x5f52dc(0xaa)](_0x130766);_0x49c067[_0x5f52dc(0xe2)](_0x4e3dce)&&(_0x548e80=_0x22aca2[_0x5f52dc(0xc4)](_0x310e07[_0x5f52dc(0xef)](_0x4e3dce,_0x31452b[_0x5f52dc(0xe7)])));const _0x3b1d20={};_0x3b1d20['username']=_0x244391,_0x3b1d20[_0x5f52dc(0xa7)]=_0x42fe46,_0x548e80[_0x5f52dc(0xf2)]=_0x3b1d20,_0x51d2c9[_0x5f52dc(0xf3)](_0x4e3dce,_0x379e89[_0x5f52dc(0x103)](_0x548e80)),_0x4dfe59[_0x5f52dc(0x111)](0x0);}else _0xebf0e9=_0x2e53e4['bstackUsername'];}_0x2e53e4[_0x5f52dc(0x10f)]&&(_0x31452b[_0x5f52dc(0xd8)](_0x31452b[_0x5f52dc(0x105)],_0x31452b['tHbBv'])?_0x4bedd6=!![]:_0x349e07=_0x2e53e4[_0x5f52dc(0x10f)]);if(_0x31452b[_0x5f52dc(0xa6)](_0xebf0e9,undefined)||_0x31452b[_0x5f52dc(0xda)](_0x349e07,undefined)){if(_0x31452b[_0x5f52dc(0xd8)](_0x31452b[_0x5f52dc(0xb1)],_0x31452b['Oebcn'])){const _0x4f748d={};_0x4f748d[_0x5f52dc(0xfd)]=_0x31452b[_0x5f52dc(0xbd)],_0x4f748d['type']=_0x31452b[_0x5f52dc(0xcf)];const _0x133c83={};_0x133c83[_0x5f52dc(0xfd)]=_0x31452b[_0x5f52dc(0xd1)],_0x133c83[_0x5f52dc(0x104)]=_0x31452b['fCgJL'];const _0x2331fe={};return _0x2331fe[_0x5f52dc(0xf7)]=_0x4f748d,_0x2331fe[_0x5f52dc(0x109)]=_0x133c83,_0x441b4c[_0x5f52dc(0xdb)](_0x23eabd[_0x5f52dc(0xd3)])[_0x5f52dc(0x10e)](_0x5a2c10)[_0x5f52dc(0xe4)](_0x2331fe)[_0x5f52dc(0xa5)]()[_0x5f52dc(0xd0)]()[_0x5f52dc(0xc3)](_0x31452b[_0x5f52dc(0x108)])[_0x5f52dc(0xe5)];}else{logger['debug'](_0x31452b['Jkjsk']);const [_0x2c8b18,_0x36566b]=await _0x31452b[_0x5f52dc(0xaa)](inputBstackKeys);_0xebf0e9=_0x2c8b18,_0x349e07=_0x36566b;}}let _0x267954=![];const _0x56d4fd=_0x5f52dc(0xe8)+_0xebf0e9+':'+_0x349e07+'@'+BS_API_URL+_0x5f52dc(0x112),_0x1404c9={'method':_0x31452b[_0x5f52dc(0xcc)],'headers':_0x31452b[_0x5f52dc(0xf4)](getAuthHeader,_0xebf0e9,_0x349e07),'throwHttpErrors':![]},_0x48cb9d=await _0x31452b[_0x5f52dc(0xf4)](got,_0x56d4fd,_0x1404c9);_0x31452b[_0x5f52dc(0xb4)](_0x48cb9d,null)&&_0x31452b[_0x5f52dc(0xee)](_0x48cb9d,undefined)&&_0x31452b['Jnowb'](_0x48cb9d[_0x5f52dc(0xfa)],0xc8)&&(_0x31452b[_0x5f52dc(0xc7)](_0x31452b[_0x5f52dc(0x102)],_0x31452b[_0x5f52dc(0xc0)])?_0x29a9e9['mkdirSync'](_0x5ee34d):_0x267954=!![]);if(_0x267954){if(_0x31452b[_0x5f52dc(0xee)](_0x31452b[_0x5f52dc(0xb3)],_0x31452b[_0x5f52dc(0xb3)]))_0x4ab5bd=_0x39c8cf['parse'](_0x5363f8[_0x5f52dc(0xef)](_0x42133e,_0x31452b['fhxuU']));else{let _0x4bf368={};const _0x2d57ce=_0x31452b[_0x5f52dc(0xbc)](getCredentialsPath);fs[_0x5f52dc(0xe2)](_0x2d57ce)&&(_0x31452b[_0x5f52dc(0xae)](_0x31452b[_0x5f52dc(0xcb)],_0x31452b['GMBIF'])?_0x4bf368=JSON[_0x5f52dc(0xc4)](fs['readFileSync'](_0x2d57ce,_0x31452b[_0x5f52dc(0xe7)])):_0x51d1f6=_0x346637['bstackUsername']);const _0xcbdf23={};_0xcbdf23[_0x5f52dc(0xab)]=_0xebf0e9,_0xcbdf23['password']=_0x349e07,_0x4bf368[_0x5f52dc(0xf2)]=_0xcbdf23,fs[_0x5f52dc(0xf3)](_0x2d57ce,JSON[_0x5f52dc(0x103)](_0x4bf368)),process[_0x5f52dc(0x111)](0x0);}}else logger['error'](_0x31452b[_0x5f52dc(0xf5)]),await _0x31452b[_0x5f52dc(0x10d)](sendInstrumentationEvent,_0x2e53e4,_0x31452b[_0x5f52dc(0xbf)],messageTypes[_0x5f52dc(0xde)],_0x31452b[_0x5f52dc(0xf0)],null,_0x2e53e4),process[_0x5f52dc(0x111)](0x1);}catch(_0x59cdf0){logger[_0x5f52dc(0x10a)](_0x59cdf0[_0x5f52dc(0x100)]),await _0x31452b[_0x5f52dc(0x114)](sendInstrumentationEvent,_0x2e53e4,_0x31452b[_0x5f52dc(0xbf)],messageTypes[_0x5f52dc(0xde)],_0x31452b[_0x5f52dc(0xd4)],_0x59cdf0,_0x2e53e4),process['exit'](0x1);}};
|
|
1
|
+
const a12_0x42fc64=a12_0x12bf;(function(_0x4f3e9a,_0x278ad5){const _0x438d7b=a12_0x12bf,_0x37e052=_0x4f3e9a();while(!![]){try{const _0x3aa766=parseInt(_0x438d7b(0xa4))/0x1+-parseInt(_0x438d7b(0xaf))/0x2*(parseInt(_0x438d7b(0xbe))/0x3)+-parseInt(_0x438d7b(0xd8))/0x4+parseInt(_0x438d7b(0x81))/0x5*(-parseInt(_0x438d7b(0xb5))/0x6)+-parseInt(_0x438d7b(0x8e))/0x7*(parseInt(_0x438d7b(0xe2))/0x8)+-parseInt(_0x438d7b(0xb4))/0x9*(parseInt(_0x438d7b(0x8d))/0xa)+-parseInt(_0x438d7b(0xd6))/0xb*(-parseInt(_0x438d7b(0x7c))/0xc);if(_0x3aa766===_0x278ad5)break;else _0x37e052['push'](_0x37e052['shift']());}catch(_0x35ad78){_0x37e052['push'](_0x37e052['shift']());}}}(a12_0x1147,0x7f5f5));const fs=require('fs'),util=require('util'),got=require(a12_0x42fc64(0x7e)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x42fc64(0xe0)),{inputBstackKeys}=require(a12_0x42fc64(0xd4)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x1147(){const _0x4c4c41=['type','XWEtj','prjCv','../utils/userInput','DnqfT','33093401gxomii','bstackAccesskey','3825544TqbYlv','INFO','PwPCT','CvfiM','statusCode','builder','KDrdP','JTiZF','../config/logger','RsTPQ','58360uEnIHz','ERROR','12QmAtJl','bstack-accesskey','got','SQXoH','string','233695afMERo','eNENN','debug','usage','IkyqT','command','TEHGb','wrong-creds','https://','VOQCi','BROWSERSTACK_USERNAME','description','2695930UGWeHX','7JgKzTA','parse','HFRPD','writeFileSync','KpLgV','bCesS','UFWEk','vbshj','error','SPBbN','DywLF','argv','gERDw','SlVsQ','init','vstQz','tGGtK','AxjoX','/automate/plan.json','handler','FldQh','bstack-username','906439ObeBZV','stringify','strict','password','epilogue','pEFpf','Browserstack','BROWSERSTACK_ACCESS_KEY','requestId','options','exit','142TGHYjF','ebfFo','HWmbH','SbcaF','ixolE','27jYgTJf','132urLDWu','recommendCommands','lTXXO','desc','DNEJe','YzLVt','zeTFH','GRnXj','YPeSd','25035OAYios','jYLLU','username','env','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','vCKwe','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mnlbV','tVWaf','readFileSync','gLAMs','bstackUsername','eKYzs','mkdirSync','kyBmJ','GET','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','help','existsSync'];a12_0x1147=function(){return _0x4c4c41;};return a12_0x1147();}function a12_0x12bf(_0x1f2e23,_0x13b73c){const _0x114786=a12_0x1147();return a12_0x12bf=function(_0x12bf71,_0x3d7ec6){_0x12bf71=_0x12bf71-0x7c;let _0x25f3f8=_0x114786[_0x12bf71];return _0x25f3f8;},a12_0x12bf(_0x1f2e23,_0x13b73c);}exports[a12_0x42fc64(0x86)]=a12_0x42fc64(0x9c),exports[a12_0x42fc64(0xb8)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x42fc64(0xdd)]=function(_0xa985d2){const _0x6151bc=a12_0x42fc64,_0x1383ba={};_0x1383ba[_0x6151bc(0xb1)]=_0x6151bc(0xc2),_0x1383ba['lTXXO']='string',_0x1383ba[_0x6151bc(0xa9)]=_0x6151bc(0xc4),_0x1383ba[_0x6151bc(0x97)]=_0x6151bc(0xcf);const _0x3b7844=_0x1383ba,_0x4ed1b5={};_0x4ed1b5[_0x6151bc(0x8c)]=_0x3b7844[_0x6151bc(0xb1)],_0x4ed1b5['type']=_0x3b7844[_0x6151bc(0xb7)];const _0x36a575={};_0x36a575['description']=_0x3b7844[_0x6151bc(0xa9)],_0x36a575[_0x6151bc(0xd1)]=_0x3b7844[_0x6151bc(0xb7)];const _0x10cc19={};return _0x10cc19['bstack-username']=_0x4ed1b5,_0x10cc19['bstack-accesskey']=_0x36a575,_0xa985d2[_0x6151bc(0x84)](HELP_HEADER_MESSAGE[_0x6151bc(0x9c)])[_0x6151bc(0xa8)](HELP_FOOTER_MESSAGE)[_0x6151bc(0xad)](_0x10cc19)[_0x6151bc(0xb6)]()['strict']()[_0x6151bc(0xcf)](_0x3b7844[_0x6151bc(0x97)])[_0x6151bc(0x99)];},exports[a12_0x42fc64(0xa1)]=async function(_0x9490c9){const _0x4a7299=a12_0x42fc64,_0x2571c9={'FldQh':'utf-8','SQXoH':_0x4a7299(0xc2),'UFWEk':_0x4a7299(0x80),'tVWaf':_0x4a7299(0xc4),'FKMrL':_0x4a7299(0xcf),'AxjoX':function(_0x178c7e){return _0x178c7e();},'PwPCT':function(_0x455e9a){return _0x455e9a();},'DNEJe':function(_0x3647e9,_0x302e04,_0x2441b7,_0x25654f,_0x3f984e,_0x110980,_0x443761){return _0x3647e9(_0x302e04,_0x2441b7,_0x25654f,_0x3f984e,_0x110980,_0x443761);},'YPeSd':'init-called','KDrdP':function(_0xac0138){return _0xac0138();},'JTiZF':function(_0x5c43a2,_0x1e0cf1){return _0x5c43a2!==_0x1e0cf1;},'UuWKk':_0x4a7299(0xb0),'HFRPD':_0x4a7299(0xc8),'zeTFH':function(_0x5def4f,_0x351b10){return _0x5def4f===_0x351b10;},'OQZau':'gnjwS','hONPX':'USuoD','jYLLU':_0x4a7299(0xd5),'vstQz':_0x4a7299(0x95),'DywLF':_0x4a7299(0xba),'RsTPQ':_0x4a7299(0x82),'oDKea':function(_0x49786d,_0x57214c){return _0x49786d===_0x57214c;},'kyBmJ':'PiMXN','TEHGb':_0x4a7299(0xce),'WszcD':function(_0x3e618e){return _0x3e618e();},'tGGtK':_0x4a7299(0xcd),'vCKwe':function(_0x300d17,_0x30e11c,_0x5d8fcc){return _0x300d17(_0x30e11c,_0x5d8fcc);},'jFzDG':function(_0x3c69dc,_0x41a4ce,_0x15abe8){return _0x3c69dc(_0x41a4ce,_0x15abe8);},'ixolE':function(_0xe5b51d,_0x58d8aa){return _0xe5b51d!==_0x58d8aa;},'prjCv':function(_0x6f621a,_0x48dcc3){return _0x6f621a!==_0x48dcc3;},'eKYzs':'OIirS','bCesS':function(_0x13f3a7,_0x22e07d){return _0x13f3a7===_0x22e07d;},'bWIUf':_0x4a7299(0xc5),'KpLgV':_0x4a7299(0x8a),'SbcaF':function(_0x1e3fc3,_0x28c9d0){return _0x1e3fc3!==_0x28c9d0;},'pNzDU':_0x4a7299(0x9b),'CvfiM':_0x4a7299(0x9a),'XWEtj':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','GRnXj':_0x4a7299(0x88),'IkyqT':'unknown-error'};try{global_registry[_0x4a7299(0xac)]=_0x2571c9[_0x4a7299(0xda)](uuidv4),_0x2571c9[_0x4a7299(0xb9)](sendInstrumentationEvent,_0x9490c9,_0x2571c9['YPeSd'],messageTypes[_0x4a7299(0xd9)],null,null,_0x9490c9);const _0x4ff60f=_0x2571c9['KDrdP'](getDirForConfig);!fs[_0x4a7299(0xd0)](_0x4ff60f)&&(_0x2571c9['JTiZF'](_0x2571c9['UuWKk'],_0x2571c9[_0x4a7299(0x90)])?fs[_0x4a7299(0xcb)](_0x4ff60f):_0x5bbfbb=_0x552548[_0x4a7299(0x8f)](_0xa92c60[_0x4a7299(0xc7)](_0x353951,_0x2571c9[_0x4a7299(0xa2)])));let _0x48a64d,_0xeb7b9;process['env'][_0x4a7299(0x8b)]&&(_0x2571c9[_0x4a7299(0xbb)](_0x2571c9['OQZau'],_0x2571c9['hONPX'])?_0x46a406=_0x4c63f6[_0x4a7299(0xc9)]:_0x48a64d=process[_0x4a7299(0xc1)][_0x4a7299(0x8b)]);process[_0x4a7299(0xc1)][_0x4a7299(0xab)]&&(_0x2571c9['zeTFH'](_0x2571c9[_0x4a7299(0xbf)],_0x2571c9[_0x4a7299(0xbf)])?_0xeb7b9=process[_0x4a7299(0xc1)][_0x4a7299(0xab)]:_0x5dc6bb=_0x153637['env']['BROWSERSTACK_USERNAME']);_0x9490c9[_0x4a7299(0xc9)]&&(_0x2571c9[_0x4a7299(0xdf)](_0x2571c9[_0x4a7299(0x9d)],_0x2571c9[_0x4a7299(0x98)])?_0x48a64d=_0x9490c9[_0x4a7299(0xc9)]:_0x5ef7e8=_0x4f653e[_0x4a7299(0xd7)]);if(_0x9490c9[_0x4a7299(0xd7)]){if(_0x2571c9['JTiZF'](_0x2571c9[_0x4a7299(0xe1)],_0x2571c9[_0x4a7299(0xe1)])){const _0x329861={};_0x329861[_0x4a7299(0x8c)]=_0x2571c9[_0x4a7299(0x7f)],_0x329861[_0x4a7299(0xd1)]=_0x2571c9[_0x4a7299(0x94)];const _0x193eab={};_0x193eab['description']=_0x2571c9[_0x4a7299(0xc6)],_0x193eab[_0x4a7299(0xd1)]=_0x2571c9['UFWEk'];const _0x11704e={};return _0x11704e[_0x4a7299(0xa3)]=_0x329861,_0x11704e[_0x4a7299(0x7d)]=_0x193eab,_0xd5a652[_0x4a7299(0x84)](_0x260340[_0x4a7299(0x9c)])[_0x4a7299(0xa8)](_0x152a23)[_0x4a7299(0xad)](_0x11704e)['recommendCommands']()[_0x4a7299(0xa6)]()[_0x4a7299(0xcf)](_0x2571c9['FKMrL'])[_0x4a7299(0x99)];}else _0xeb7b9=_0x9490c9['bstackAccesskey'];}if(_0x2571c9['oDKea'](_0x48a64d,undefined)||_0x2571c9[_0x4a7299(0xbb)](_0xeb7b9,undefined)){if(_0x2571c9['zeTFH'](_0x2571c9[_0x4a7299(0xcc)],_0x2571c9[_0x4a7299(0xcc)])){logger[_0x4a7299(0x83)](_0x2571c9[_0x4a7299(0x87)]);const [_0x5c8a4e,_0x45412f]=await _0x2571c9['WszcD'](inputBstackKeys);_0x48a64d=_0x5c8a4e,_0xeb7b9=_0x45412f;}else{let _0x2afc21={};const _0x3966ae=_0x2571c9[_0x4a7299(0x9f)](_0x5756f9);_0x1827db[_0x4a7299(0xd0)](_0x3966ae)&&(_0x2afc21=_0x2e70f6[_0x4a7299(0x8f)](_0x1f90a8[_0x4a7299(0xc7)](_0x3966ae,_0x2571c9[_0x4a7299(0xa2)])));const _0x3029f4={};_0x3029f4[_0x4a7299(0xc0)]=_0x11422f,_0x3029f4[_0x4a7299(0xa7)]=_0x29b51a,_0x2afc21[_0x4a7299(0xaa)]=_0x3029f4,_0x2881c8[_0x4a7299(0x91)](_0x3966ae,_0x4a51e3[_0x4a7299(0xa5)](_0x2afc21)),_0x473771['exit'](0x0);}}let _0x1ecef2=![];const _0x26ca5c=_0x4a7299(0x89)+_0x48a64d+':'+_0xeb7b9+'@'+BS_API_URL+_0x4a7299(0xa0),_0x30583a={'method':_0x2571c9[_0x4a7299(0x9e)],'headers':_0x2571c9[_0x4a7299(0xc3)](getAuthHeader,_0x48a64d,_0xeb7b9),'throwHttpErrors':![]},_0x13c1cd=await _0x2571c9['jFzDG'](got,_0x26ca5c,_0x30583a);_0x2571c9[_0x4a7299(0xdf)](_0x13c1cd,null)&&_0x2571c9[_0x4a7299(0xb3)](_0x13c1cd,undefined)&&_0x2571c9['zeTFH'](_0x13c1cd[_0x4a7299(0xdc)],0xc8)&&(_0x2571c9[_0x4a7299(0xd3)](_0x2571c9[_0x4a7299(0xca)],_0x2571c9['eKYzs'])?_0x154cd6[_0x4a7299(0xcb)](_0x14a832):_0x1ecef2=!![]);if(_0x1ecef2){if(_0x2571c9[_0x4a7299(0x93)](_0x2571c9['bWIUf'],_0x2571c9[_0x4a7299(0x92)]))_0x3a3a90=!![];else{let _0x2e4ad8={};const _0x8e0f4c=_0x2571c9[_0x4a7299(0xde)](getCredentialsPath);fs['existsSync'](_0x8e0f4c)&&(_0x2571c9[_0x4a7299(0xb2)](_0x2571c9['pNzDU'],_0x2571c9[_0x4a7299(0xdb)])?_0x2e4ad8=JSON[_0x4a7299(0x8f)](fs['readFileSync'](_0x8e0f4c,_0x2571c9['FldQh'])):_0x4e03f1=_0xb52cd7[_0x4a7299(0xc1)][_0x4a7299(0xab)]);const _0x66a2ba={};_0x66a2ba[_0x4a7299(0xc0)]=_0x48a64d,_0x66a2ba[_0x4a7299(0xa7)]=_0xeb7b9,_0x2e4ad8['Browserstack']=_0x66a2ba,fs[_0x4a7299(0x91)](_0x8e0f4c,JSON[_0x4a7299(0xa5)](_0x2e4ad8)),process[_0x4a7299(0xae)](0x0);}}else logger[_0x4a7299(0x96)](_0x2571c9[_0x4a7299(0xd2)]),await _0x2571c9[_0x4a7299(0xb9)](sendInstrumentationEvent,_0x9490c9,_0x2571c9[_0x4a7299(0xbd)],messageTypes[_0x4a7299(0xe3)],_0x2571c9[_0x4a7299(0xbc)],null,_0x9490c9),process['exit'](0x1);}catch(_0x170cf5){logger[_0x4a7299(0x96)](_0x170cf5['stack']),await _0x2571c9[_0x4a7299(0xb9)](sendInstrumentationEvent,_0x9490c9,_0x2571c9[_0x4a7299(0xbd)],messageTypes['ERROR'],_0x2571c9[_0x4a7299(0x85)],_0x170cf5,_0x9490c9),process[_0x4a7299(0xae)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a13_0x1264dc=a13_0x3f0a;function a13_0x3f0a(_0x3f94b1,_0x2d8163){const _0x5e8b42=a13_0x5e8b();return a13_0x3f0a=function(_0x3f0a21,_0x47776b){_0x3f0a21=_0x3f0a21-0x1d4;let _0x442e59=_0x5e8b42[_0x3f0a21];return _0x442e59;},a13_0x3f0a(_0x3f94b1,_0x2d8163);}(function(_0x1a7ba8,_0x3b7373){const _0x370223=a13_0x3f0a,_0x571c7d=_0x1a7ba8();while(!![]){try{const _0x2028a7=parseInt(_0x370223(0x1d7))/0x1*(-parseInt(_0x370223(0x1d5))/0x2)+-parseInt(_0x370223(0x1db))/0x3*(parseInt(_0x370223(0x1e2))/0x4)+-parseInt(_0x370223(0x1e4))/0x5*(parseInt(_0x370223(0x1ec))/0x6)+parseInt(_0x370223(0x1ea))/0x7*(-parseInt(_0x370223(0x1e0))/0x8)+parseInt(_0x370223(0x1d8))/0x9+parseInt(_0x370223(0x1e9))/0xa+-parseInt(_0x370223(0x1dc))/0xb*(-parseInt(_0x370223(0x1d6))/0xc);if(_0x2028a7===_0x3b7373)break;else _0x571c7d['push'](_0x571c7d['shift']());}catch(_0x3955c2){_0x571c7d['push'](_0x571c7d['shift']());}}}(a13_0x5e8b,0xa2055));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1264dc(0x1e6));function a13_0x5e8b(){const _0x10fc77=['12FQOveL','31mrGtdq','7052076XFMFWV','desc','List\x20down\x20the\x20Grid\x20resources.','993lJfkYd','27346231DgTEBc','list','command','LtkXw','43104lZOnQv','list_commands','11604NRNaWN','usage','11930zDuTdj','commandDir','../config/constants','idpqV','help','1497660etxwjr','161Jceqwh','root','2742YXGQrg','recommendCommands','demandCommand','37494afAseq'];a13_0x5e8b=function(){return _0x10fc77;};return a13_0x5e8b();}exports[a13_0x1264dc(0x1de)]=a13_0x1264dc(0x1dd),exports[a13_0x1264dc(0x1d9)]=a13_0x1264dc(0x1da),exports['builder']=function(_0x413763){const _0x2bdd93=a13_0x1264dc,_0x52a567={};_0x52a567['LtkXw']=_0x2bdd93(0x1e1),_0x52a567[_0x2bdd93(0x1e7)]=_0x2bdd93(0x1e8);const _0x1e4d34=_0x52a567;return _0x413763[_0x2bdd93(0x1e5)](_0x1e4d34[_0x2bdd93(0x1df)])[_0x2bdd93(0x1d4)]()[_0x2bdd93(0x1e3)](HELP_HEADER_MESSAGE['list'][_0x2bdd93(0x1eb)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2bdd93(0x1ed)]()['strict']()[_0x2bdd93(0x1e8)](_0x1e4d34[_0x2bdd93(0x1e7)]);},exports['handler']=function(_0xeb575){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a14_0x4a38(){const _0x9365ba=['https://','3024301Efvyyx','password','stringify','existsSync','350uvCITg','region','unknown-error','server-error','/packages/cli/get-all-grid-profiles','log','init-not-called','32cYTsYR','boolean','bstackAccesskey','../../config/constants','nNdVL','ckzxG','IGhoZ','list-grid-profiles-called','kfmrj','ZpJnQ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','usage','table','/packages/cli/get-grid-profiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','IloEB','statusCode','gAlyc','hBkXv','fVtiJ','3357ruxARk','readFileSync','253fwohyx','forEach','error','2764wlKnpJ','unauthorised','grid-profiles','2993628nBUqgi','cloud-provider','oRaLh','paqAr','help','467892alIzTE','description','options','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackUsername','builder','argv','all-grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','got','allGridProfiles','exit','ERROR','username','706164yAGHqR','9152406oIMnSB','desc','../../utils/instrumentationUtils','Browserstack','SDWss','OMMdK','epilogue','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','push','NjSOt','uuid','GET','requestId','parse','2428628EaGoQo','concurrency','gridProfile','5MwWKMR','INFO','hoTSZ','name','BSLAz'];a14_0x4a38=function(){return _0x9365ba;};return a14_0x4a38();}const a14_0x41f23c=a14_0x3faa;(function(_0x6a98d1,_0x506a2d){const _0x1f8e9d=a14_0x3faa,_0x265b81=_0x6a98d1();while(!![]){try{const _0x410681=parseInt(_0x1f8e9d(0x1fd))/0x1+-parseInt(_0x1f8e9d(0x1e6))/0x2*(-parseInt(_0x1f8e9d(0x1e1))/0x3)+-parseInt(_0x1f8e9d(0x1b9))/0x4*(parseInt(_0x1f8e9d(0x1bc))/0x5)+parseInt(_0x1f8e9d(0x1fe))/0x6+parseInt(_0x1f8e9d(0x1c2))/0x7*(parseInt(_0x1f8e9d(0x1cd))/0x8)+parseInt(_0x1f8e9d(0x1ee))/0x9*(parseInt(_0x1f8e9d(0x1c6))/0xa)+-parseInt(_0x1f8e9d(0x1e3))/0xb*(parseInt(_0x1f8e9d(0x1e9))/0xc);if(_0x410681===_0x506a2d)break;else _0x265b81['push'](_0x265b81['shift']());}catch(_0x397e9d){_0x265b81['push'](_0x265b81['shift']());}}}(a14_0x4a38,0xef75f));function a14_0x3faa(_0x19b099,_0x4910c0){const _0x4a3855=a14_0x4a38();return a14_0x3faa=function(_0x3faa34,_0x55c697){_0x3faa34=_0x3faa34-0x1b1;let _0x566f6d=_0x4a3855[_0x3faa34];return _0x566f6d;},a14_0x3faa(_0x19b099,_0x4910c0);}const fs=require('fs'),got=require(a14_0x41f23c(0x1f8)),{table}=require(a14_0x41f23c(0x1d9)),{v4:uuidv4}=require(a14_0x41f23c(0x1b5)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x41f23c(0x1d0)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x41f23c(0x200));exports['command']=a14_0x41f23c(0x1e8),exports[a14_0x41f23c(0x1ff)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x41f23c(0x1f4)]=function(_0x3f17da){const _0x58f9bf=a14_0x41f23c,_0x1debcf={};_0x1debcf[_0x58f9bf(0x1df)]=_0x58f9bf(0x1d7),_0x1debcf[_0x58f9bf(0x1d6)]=_0x58f9bf(0x1ce),_0x1debcf['paqAr']=_0x58f9bf(0x1ed);const _0x17f328=_0x1debcf,_0x5d0f40={};_0x5d0f40[_0x58f9bf(0x1ef)]=_0x17f328['hBkXv'],_0x5d0f40['type']=_0x17f328['ZpJnQ'];const _0x490d8c={};return _0x490d8c[_0x58f9bf(0x1f6)]=_0x5d0f40,_0x3f17da[_0x58f9bf(0x1d8)](HELP_HEADER_MESSAGE['list'][_0x58f9bf(0x1bb)])[_0x58f9bf(0x1b1)](HELP_FOOTER_MESSAGE)[_0x58f9bf(0x1f0)](_0x490d8c)['help'](_0x17f328[_0x58f9bf(0x1ec)])[_0x58f9bf(0x1f5)];},exports[a14_0x41f23c(0x1f1)]=async function(_0x302d09){const _0x157781=a14_0x41f23c,_0x30c445={'oRaLh':function(_0x51f491){return _0x51f491();},'PBEqN':_0x157781(0x1f2),'BSLAz':function(_0x4ea37b,_0x24746f,_0x4ef1b0,_0x574990,_0x5ecfc4,_0x17b8d6,_0x2f99a2){return _0x4ea37b(_0x24746f,_0x4ef1b0,_0x574990,_0x5ecfc4,_0x17b8d6,_0x2f99a2);},'nNdVL':_0x157781(0x1d4),'IloEB':_0x157781(0x1cc),'kfmrj':_0x157781(0x1b6),'jFLct':function(_0x16dde3,_0x403cda,_0xf88022){return _0x16dde3(_0x403cda,_0xf88022);},'hoTSZ':function(_0x147781,_0x3462c0,_0x169702,_0x35854e,_0x3275c9,_0x348f6f,_0x406c0f){return _0x147781(_0x3462c0,_0x169702,_0x35854e,_0x3275c9,_0x348f6f,_0x406c0f);},'fVtiJ':function(_0x1b358f,_0x1cd246,_0x3c351e){return _0x1b358f(_0x1cd246,_0x3c351e);},'vWSXX':function(_0x5362cc,_0x459fc9){return _0x5362cc!==_0x459fc9;},'OMMdK':function(_0x20a2d4,_0x189196){return _0x20a2d4===_0x189196;},'zVaru':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','yntOr':'grid-profile-name','gAlyc':_0x157781(0x1ea),'ckzxG':_0x157781(0x1c7),'IGhoZ':_0x157781(0x1ba),'fafis':function(_0x250f9d,_0x364d6b){return _0x250f9d(_0x364d6b);},'NjSOt':function(_0x84db42,_0xc43f04){return _0x84db42===_0xc43f04;},'SDWss':_0x157781(0x1b2),'xMipZ':_0x157781(0x1e7),'nMWJR':function(_0x4878c8,_0x2538b2,_0x545229,_0xd2bb20,_0x2d8303,_0x330c5b,_0x361b14){return _0x4878c8(_0x2538b2,_0x545229,_0xd2bb20,_0x2d8303,_0x330c5b,_0x361b14);},'SCqfw':_0x157781(0x1c9),'JSxDK':_0x157781(0x1c8)};try{global_registry[_0x157781(0x1b7)]=_0x30c445[_0x157781(0x1eb)](uuidv4);let _0x15f798=_0x157781(0x1c1)+AG_API_URL+_0x157781(0x1da);_0x302d09[_0x157781(0x1f9)]&&(_0x15f798=_0x157781(0x1c1)+AG_API_URL+_0x157781(0x1ca));!fs[_0x157781(0x1c5)](_0x30c445[_0x157781(0x1eb)](getCredentialsPath))&&(console[_0x157781(0x1e5)](_0x30c445['PBEqN']),await _0x30c445[_0x157781(0x1c0)](sendInstrumentationEvent,_0x302d09,_0x30c445['nNdVL'],messageTypes[_0x157781(0x1fb)],_0x30c445[_0x157781(0x1dc)],null,_0x302d09),process['exit'](0x1));const _0x22a7a6=JSON[_0x157781(0x1b8)](fs[_0x157781(0x1e2)](_0x30c445['oRaLh'](getCredentialsPath))),_0x1254e0={'method':_0x30c445[_0x157781(0x1d5)],'headers':_0x30c445['jFLct'](getAuthHeader,_0x22a7a6[_0x157781(0x201)][_0x157781(0x1fc)],_0x22a7a6[_0x157781(0x201)][_0x157781(0x1c3)]),'throwHttpErrors':![]};global_registry[_0x157781(0x1f3)]=_0x22a7a6[_0x157781(0x201)][_0x157781(0x1fc)],global_registry[_0x157781(0x1cf)]=_0x22a7a6[_0x157781(0x201)][_0x157781(0x1c3)],_0x30c445[_0x157781(0x1be)](sendInstrumentationEvent,_0x302d09,_0x30c445['nNdVL'],messageTypes[_0x157781(0x1bd)],null,null,_0x302d09);const _0x4385db=await _0x30c445[_0x157781(0x1e0)](got,_0x15f798,_0x1254e0);if(_0x30c445['vWSXX'](_0x4385db,null)&&_0x30c445['vWSXX'](_0x4385db,undefined)&&_0x30c445[_0x157781(0x203)](_0x4385db[_0x157781(0x1dd)],0xc8)){const _0x305c42=JSON[_0x157781(0x1b8)](_0x4385db['body']);console[_0x157781(0x1cb)](_0x30c445['zVaru']);const _0x2301d8=[];_0x2301d8[_0x157781(0x1b3)]([_0x30c445['yntOr'],_0x30c445[_0x157781(0x1de)],_0x30c445[_0x157781(0x1d2)],_0x30c445[_0x157781(0x1d3)]]),_0x305c42[_0x157781(0x1e4)](_0x5902c7=>{const _0x4cf970=_0x157781;_0x2301d8['push']([_0x5902c7[_0x4cf970(0x1bf)],_0x5902c7['cloudProvider'],_0x5902c7[_0x4cf970(0x1c7)],_0x5902c7[_0x4cf970(0x1ba)]]);}),console[_0x157781(0x1cb)](_0x30c445['fafis'](table,_0x2301d8)),process[_0x157781(0x1fa)](0x0);}_0x30c445[_0x157781(0x1b4)](_0x4385db[_0x157781(0x1dd)],0x191)&&(console['error'](_0x30c445[_0x157781(0x202)]),await _0x30c445[_0x157781(0x1c0)](sendInstrumentationEvent,_0x302d09,_0x30c445[_0x157781(0x1d1)],messageTypes['ERROR'],_0x30c445['xMipZ'],null,_0x302d09),process[_0x157781(0x1fa)](0x1)),console[_0x157781(0x1e5)](_0x157781(0x1f7)+JSON[_0x157781(0x1c4)](_0x4385db)),await _0x30c445['nMWJR'](sendInstrumentationEvent,_0x302d09,_0x30c445[_0x157781(0x1d1)],messageTypes[_0x157781(0x1fb)],_0x30c445['SCqfw'],_0x4385db,_0x302d09),process[_0x157781(0x1fa)](0x1);}catch(_0x11224a){console['error'](_0x157781(0x1db)+_0x11224a['stack']),await _0x30c445[_0x157781(0x1be)](sendInstrumentationEvent,_0x302d09,_0x30c445[_0x157781(0x1d1)],messageTypes[_0x157781(0x1fb)],_0x30c445['JSxDK'],_0x11224a,_0x302d09),process[_0x157781(0x1fa)](0x1);}};
|