browserstack-node-sdk 1.34.22 → 1.34.24
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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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 -0
- package/src/helpers/central-scanner/helpers.js +1 -0
- 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-tester.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_0x46b176=a9_0x4343;function a9_0x5993(){const _0x7f999=['ACmFf','OVnmh','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','qBdzU','VwDIZ','INFO','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','://','clusterRegion','XhdyJ','pgbED','privateGrid','uBdIs','\x20are\x20not\x20present\x20in\x20VPC:\x20','init-not-called','pAgsJ','mNOff','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','HIwZj','gridName','MEeEo','skipTlsCertVerify','jPVXC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','GeWUc','Deleting\x20the\x20CloudFormation\x20Stacks','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','isNewAWSCluster','coLvU','annotations','24GlVfSi','NWHOQ','string','error','options','subnets','isSubnetsValid','setupNewCluster','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','AwNFa','fysTn','usage','Browserstack','qrCoy','VtOVx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cIzRZ','22iENjGh','browserVersion','eqrvh','hubVersion','WJEEq','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','FJXem','xELZy','private-grid','statusCode','length','4CdQPuA','yWglq','getResourceClientId','2|1|3|4|5|8|10|12|13|14|9|11|0|6|7','Skip\x20insecure\x20cert\x20verification.','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','alreadyPresent','Create\x20a\x20private/public\x20grid.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Namespace\x20created','mNlnu','SxeEA','CLI\x20run\x20started','kRIyC','Grid\x20profile\x20fetched\x20from\x20backend','qYEDN','YjQtb','description','kuqAP','Spawning\x20the\x20grid\x20','ViuGq','create-grid-checks-null-response','zjerR','RBIFc','GET','grid-profile','ENuHR','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DQSDl','clusterName','xoZLV','hoGZV','user','\x27\x20grid\x20profile','nUIRh','https','gridProfile','msnaA','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','xrYWH','KwEom','mrJLh','readFileSync','Grid\x20can\x20be\x20accessed\x20at:\x20','jrROE','zrYJa','YvDEB','Cluster:\x20','defaultGridProfile','iviOP','https://','grid-name','get-grid-url-null-response','pGtuV','MiBye','kyBAY','eZfDC','rAkEi','deleteCluster','WgAUC','UFtVT','GSCBJ','Cluster\x20','nkfDE','KNLNw','bPZSB','yrbQP','YfdRT','parse','AlkrF','maxNodes','ZDaKM','IUALx','BbrVf','private-ingress-nginx-controller','jNdSJ','HWwcZ','tKZvF','LbBuo','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','tCnXV','get-grid-url-non-200','FqeBS','QKjHm','readNamespacedService','uOTyw','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','UMhbr','bxFBA','8|5|7|6|2|0|1|3|4','xaJDh','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','CSssk','Creating\x20namespace','uBNMV','DkumJ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','cloudProvider','non-aws-azure-cluster','epilogue','connectionTimeout','JbVsb','dmDvB','argv','OHsQL','reconnecting-websocket','206802RgchCI','mYLqP','/wd/hub','updateClusterAlreadyPresent','TVknx','help','peSlt','bxTxy','CLI\x20run\x20finished:\x20','fXqzL','dXThF','managedBy','CLI_RUN_STARTED','YqBoF','aVogi','MvXjN','edKUo','desc','Kpdlf','IfEGn','exit','<UsernamePlaceholder>','uWsEr','lToLT','2490nSXKKf','create','concurrency','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SwaOc','\x20using\x20\x27','gQKVN','/packages/cli/get-grid-url?gridIdentifier=','Create\x20a\x20new\x20Automation\x20grid.','toLowerCase','ccWSr','vpc','bstackUsername','GRFKZ','fZiZV','VSXol','1525834unuqVy','pre-spawned-invalid-subnets','replace','iusGY','yjxQq','KGrjc','sendEventToBackend','CLI_RUN_FINISHED','cluster-name','bstyD','sPZwm','instanceType','isPrivateGrid','Found\x20Subnets:\x20','ingress-nginx','ReMFp','xCfiS','Rsvwm','command','FqSKS','Grid\x20spawned\x20on\x20the\x20cluster','LOG','createOtherResources','rtTpK','SkUWq','got','bXROZ','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Svtcw','uIGnC','xMRKJ','gPBEK','WebSocket','tUwTf','type','ptNQZ','xSgWo','wTenF','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','create-grid-checks-non-200','dXjmR','kqjlg','Subnets:\x20','stringify','bNTaf','VpCtz','\x20in\x20existing\x20cluster\x20\x27','bstackAccesskey','ORAbi','xVQjQ','tARWA','/packages/cli/create-grid-checks','ERROR','EsVOU','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gugKy','IxgRX','XcrqA','prespawned-cluster-args-not-passed','isClusterPresent','fjHQv','setupAutoscaler','izYKj','JmgKJ','2703732wGdJIc','aneuG','ryvyJ','qXeZu','nJyAl','get-grid-url-auth-failed','minNodes','nacGf','split','pre-spawned-subnets-not-selected','dGuwY','SrxBH','delay','1iNmlAd','mbHdV','sYfIx','../../utils/instrumentationUtils','name','cIAGU','ncpNp','info','PmdaC','WrGJl','KbFSP','region','QVlZS','LTObL','DJzgL','namespace','cNFdx','message','body','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','route53','cBjOE','vqIyB','gridProfileId','RSMbh','yqZkr','boolean','../../config/constants','../../utils/webSocketUtils','sendResourceDataToHST','vyaws','../../utils/createk8sClient','984487nArlMR','oTIdc','password','UvIUc','1925385ooQFxr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','14265OXMrBf','1172856wBEAFp','aQqMb','LgLqu','s3bucket','RoVmQ','skip-tls-cert-verify','newCluster'];a9_0x5993=function(){return _0x7f999;};return a9_0x5993();}(function(_0x37e84d,_0x5cb045){const _0x46de22=a9_0x4343,_0xe760fa=_0x37e84d();while(!![]){try{const _0x2f28b5=-parseInt(_0x46de22(0x147))/0x1*(parseInt(_0x46de22(0xfa))/0x2)+parseInt(_0x46de22(0xd1))/0x3*(parseInt(_0x46de22(0x1b0))/0x4)+parseInt(_0x46de22(0x16b))/0x5+-parseInt(_0x46de22(0x194))/0x6*(-parseInt(_0x46de22(0x167))/0x7)+parseInt(_0x46de22(0x16f))/0x8+parseInt(_0x46de22(0x16e))/0x9*(-parseInt(_0x46de22(0xe9))/0xa)+-parseInt(_0x46de22(0x1a5))/0xb*(-parseInt(_0x46de22(0x13a))/0xc);if(_0x2f28b5===_0x5cb045)break;else _0xe760fa['push'](_0xe760fa['shift']());}catch(_0x1c9d54){_0xe760fa['push'](_0xe760fa['shift']());}}}(a9_0x5993,0x6f61e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x46b176(0xd0)),got=require(a9_0x46b176(0x113)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x46b176(0x163)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=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(a9_0x46b176(0x162)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x46b176(0x166)),{sendInstrumentationEvent}=require(a9_0x46b176(0x14a));function a9_0x4343(_0x5d62d4,_0xd05cb9){const _0x599345=a9_0x5993();return a9_0x4343=function(_0x434381,_0x506ec5){_0x434381=_0x434381-0xaa;let _0x301d41=_0x599345[_0x434381];return _0x301d41;},a9_0x4343(_0x5d62d4,_0xd05cb9);}exports[a9_0x46b176(0x10c)]='grid',exports[a9_0x46b176(0xe2)]=a9_0x46b176(0xf2),exports['builder']=function(_0x433e4a){const _0xa9f93c=a9_0x46b176,_0x3b767d={};_0x3b767d[_0xa9f93c(0x1e9)]=_0xa9f93c(0x190),_0x3b767d['mbHdV']=_0xa9f93c(0x196),_0x3b767d[_0xa9f93c(0x1c7)]=_0xa9f93c(0x1b9),_0x3b767d[_0xa9f93c(0xf0)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3b767d[_0xa9f93c(0x149)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3b767d[_0xa9f93c(0xdf)]=_0xa9f93c(0x18d),_0x3b767d[_0xa9f93c(0xd2)]=_0xa9f93c(0x1b8),_0x3b767d[_0xa9f93c(0x170)]=_0xa9f93c(0x1b4),_0x3b767d[_0xa9f93c(0x1ee)]='boolean',_0x3b767d['xELZy']=_0xa9f93c(0xd6);const _0x4ed0ed=_0x3b767d,_0x37a28e={};_0x37a28e[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x1e9)],_0x37a28e[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x14f7d8={};_0x14f7d8['description']=_0x4ed0ed[_0xa9f93c(0x1c7)],_0x14f7d8['type']=_0x4ed0ed[_0xa9f93c(0x148)];const _0x158ff4={};_0x158ff4[_0xa9f93c(0x1c2)]=_0x4ed0ed['gQKVN'],_0x158ff4[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x634d7a={};_0x634d7a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x149)],_0x634d7a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x592767={};_0x592767[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xdf)],_0x592767[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x3c575a={};_0x3c575a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xd2)],_0x3c575a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x31c9e9={};_0x31c9e9[_0xa9f93c(0x1c2)]=_0x4ed0ed['aQqMb'],_0x31c9e9[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x1ee)],_0x31c9e9[_0xa9f93c(0x1b5)]=![];const _0x12b946={};return _0x12b946[_0xa9f93c(0x1e6)]=_0x37a28e,_0x12b946[_0xa9f93c(0x1ca)]=_0x14f7d8,_0x12b946['cluster-name']=_0x158ff4,_0x12b946['cloud-provider']=_0x634d7a,_0x12b946[_0xa9f93c(0x152)]=_0x592767,_0x12b946[_0xa9f93c(0x1ad)]=_0x3c575a,_0x12b946[_0xa9f93c(0x174)]=_0x31c9e9,_0x433e4a[_0xa9f93c(0x19f)](HELP_HEADER_MESSAGE[_0xa9f93c(0xea)])[_0xa9f93c(0xca)](HELP_FOOTER_MESSAGE)[_0xa9f93c(0x198)](_0x12b946)[_0xa9f93c(0xd6)](_0x4ed0ed[_0xa9f93c(0x1ac)])[_0xa9f93c(0xce)];},exports['handler']=async function(_0x1e646d){const _0x1eb15a=a9_0x46b176,_0x4e9ab7={'izYKj':_0x1eb15a(0x197),'KNLNw':_0x1eb15a(0xc0),'XcrqA':_0x1eb15a(0x1bd),'xMRKJ':_0x1eb15a(0x1d4),'SxeEA':'warn','lToLT':function(_0x5cedd5,_0x1c034f){return _0x5cedd5===_0x1c034f;},'tCnXV':'http','XXnTA':_0x1eb15a(0x190),'CSssk':_0x1eb15a(0x196),'ptNQZ':_0x1eb15a(0x1b9),'qnVOn':_0x1eb15a(0x17c),'zFvCu':_0x1eb15a(0xed),'pJFXa':_0x1eb15a(0x18d),'TVknx':_0x1eb15a(0x1b8),'gugKy':_0x1eb15a(0x1b4),'PTqqi':_0x1eb15a(0x161),'dXjmR':_0x1eb15a(0xd6),'trSnM':_0x1eb15a(0x1b3),'ReMFp':function(_0x1f8c1c,_0x185f93){return _0x1f8c1c!==_0x185f93;},'ORAbi':function(_0x4bcdd3,_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a){return _0x4bcdd3(_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a);},'mNlnu':function(_0x2ce0dd){return _0x2ce0dd();},'qBdzU':function(_0x19d77b){return _0x19d77b();},'eZfDC':function(_0x37d901,_0x53ef35){return _0x37d901===_0x53ef35;},'xSgWo':_0x1eb15a(0xb0),'UnjVI':_0x1eb15a(0x16c),'pAgsJ':function(_0x322a72,_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8){return _0x322a72(_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8);},'UFtVT':'create-grid-called','EsVOU':_0x1eb15a(0x184),'NafWy':function(_0x44e546,_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c){return _0x44e546(_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c);},'vyaws':_0x1eb15a(0xe6),'mNOff':'<PasswordPlaceholder>','Dveph':'Adding\x20Websocket\x20listeners','YjQtb':'NpAnv','AwNFa':_0x1eb15a(0xbc),'tLDGV':_0x1eb15a(0x15a),'IfEGn':function(_0x5a0f5e,_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da){return _0x5a0f5e(_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da);},'sPZwm':_0x1eb15a(0x134),'ENuHR':function(_0x2d0c08,_0x2ff38b){return _0x2d0c08!==_0x2ff38b;},'cIAGU':_0x1eb15a(0x17f),'Kpdlf':'VNPMn','MPHat':_0x1eb15a(0x187),'KKAAR':_0x1eb15a(0xc9),'gPBEK':function(_0x424c8e,_0x325eff){return _0x424c8e===_0x325eff;},'hoGZV':'true','msnaA':_0x1eb15a(0x123),'NurFa':_0x1eb15a(0xb2),'KbFSP':function(_0x52268c,_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec){return _0x52268c(_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec);},'ryvyJ':_0x1eb15a(0x1a1),'ZDaKM':'kREUQ','jrROE':function(_0x4125a5,_0x2df749){return _0x4125a5!==_0x2df749;},'SrxBH':_0x1eb15a(0x111),'jPVXC':function(_0x24b213,_0x137628){return _0x24b213===_0x137628;},'VwDIZ':'FStst','HWwcZ':_0x1eb15a(0x157),'wTenF':_0x1eb15a(0x1c9),'bxFBA':function(_0x41c63c,_0x52b5c3,_0x799a54){return _0x41c63c(_0x52b5c3,_0x799a54);},'tARWA':_0x1eb15a(0xd7),'yWglq':_0x1eb15a(0x12b),'AlkrF':function(_0x48d9c0,_0xb306ed){return _0x48d9c0===_0xb306ed;},'KGrjc':function(_0x58259c,_0x4cce14){return _0x58259c===_0x4cce14;},'uWsEr':_0x1eb15a(0x116),'YfdRT':_0x1eb15a(0xaf),'ryqMU':_0x1eb15a(0xc2),'Vzevk':_0x1eb15a(0x1c6),'vqIyB':function(_0x23a8ce,_0x2f8cd7){return _0x23a8ce!==_0x2f8cd7;},'zbzfW':'EuIRv','dvwya':_0x1eb15a(0x1e8),'iusGY':_0x1eb15a(0x1d8),'FJXem':function(_0x2cd472,_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c){return _0x2cd472(_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c);},'Askyt':'create-grid-checks-auth-failed','DJzgL':function(_0x31f3bd,_0x4657ef){return _0x31f3bd!==_0x4657ef;},'xCfiS':_0x1eb15a(0xcf),'ccWSr':_0x1eb15a(0x114),'ViuGq':_0x1eb15a(0x121),'fZiZV':_0x1eb15a(0x1bf),'bNTaf':'EUoPx','ZFCzR':_0x1eb15a(0x150),'xrYWH':'create-grid-checks-grid-already-exists','fXqzL':function(_0x517267,_0x560d7f){return _0x517267===_0x560d7f;},'tUwTf':_0x1eb15a(0x13e),'EpKhD':_0x1eb15a(0x1db),'ACmFf':function(_0x51b6d6,_0x57b3e6){return _0x51b6d6===_0x57b3e6;},'yqZkr':function(_0x56c4b7,_0x48c8fc){return _0x56c4b7!==_0x48c8fc;},'xoZLV':_0x1eb15a(0x1c8),'JbVsb':function(_0x3ea28d,_0x56921c){return _0x3ea28d===_0x56921c;},'SkUWq':_0x1eb15a(0x1dc),'QVlZS':_0x1eb15a(0x1cc),'nacGf':function(_0x2bf68e,_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82){return _0x2bf68e(_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82);},'VSXol':'create-grid-checks-invalid-profile','fjHQv':function(_0x54f245,_0x32bb2f){return _0x54f245!==_0x32bb2f;},'uIGnC':'DCYCo','MvXjN':function(_0x1e2703,_0x46b7f7){return _0x1e2703===_0x46b7f7;},'edKUo':function(_0x5e9aed,_0xb64ace){return _0x5e9aed!==_0xb64ace;},'IkphZ':'WqdOU','DQSDl':_0x1eb15a(0x18a),'bPZSB':function(_0x50bf76,_0x138997){return _0x50bf76!==_0x138997;},'uBNMV':function(_0x10a000,_0x595b48){return _0x10a000!==_0x595b48;},'VtOVx':_0x1eb15a(0x18e),'dGuwY':function(_0x44a596,_0x3c8018){return _0x44a596===_0x3c8018;},'RSMbh':_0x1eb15a(0x19e),'uIEYT':_0x1eb15a(0x14d),'nUIRh':function(_0x1dbeb6,_0x51dd73){return _0x1dbeb6!==_0x51dd73;},'wWcnG':_0x1eb15a(0x10d),'OVnmh':function(_0x2b509,_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea){return _0x2b509(_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea);},'cBjOE':'axfPa','bLsIE':_0x1eb15a(0x188),'GaASA':'6|5|8|0|3|1|2|7|4','oTIdc':function(_0x306d28,_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb){return _0x306d28(_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb);},'yrbQP':function(_0x4ce4f0,_0x39883f){return _0x4ce4f0===_0x39883f;},'dXThF':_0x1eb15a(0x1d7),'FqeBS':function(_0x40fbe0,_0x286158){return _0x40fbe0!=_0x286158;},'qXeZu':function(_0x42208f,_0x4131ee){return _0x42208f!=_0x4131ee;},'wGCms':function(_0x55abd8,_0x5e8314){return _0x55abd8>_0x5e8314;},'LTObL':_0x1eb15a(0x115),'rAkEi':function(_0x3c0689,_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be){return _0x3c0689(_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be);},'pgbED':_0x1eb15a(0x143),'Rsvwm':function(_0x472fe3,_0x33ab69){return _0x472fe3===_0x33ab69;},'yjxQq':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','cZNav':function(_0x45a563,_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401){return _0x45a563(_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401);},'uBdIs':'pre-spawned-invalid-vpc','iviOP':function(_0x1e254a,_0x335b36){return _0x1e254a===_0x335b36;},'tKZvF':function(_0x4b96b3,_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587){return _0x4b96b3(_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587);},'kuqAP':_0x1eb15a(0xfb),'DkumJ':'3|2|1|0|4','JmgKJ':'Cluster\x20created\x20successfully','NWHOQ':'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.','cIzRZ':function(_0xdaeb6c,_0x3e04b7,_0x14ff55){return _0xdaeb6c(_0x3e04b7,_0x14ff55);},'UMhbr':function(_0x79aca,_0x42e9a5){return _0x79aca===_0x42e9a5;},'VpCtz':function(_0x16636c,_0xde38e6){return _0x16636c(_0xde38e6);},'RoVmQ':_0x1eb15a(0xc4),'xaJDh':function(_0x6aa91e,_0x2694cb){return _0x6aa91e!==_0x2694cb;},'GSCBJ':_0x1eb15a(0x1b5),'GRFKZ':_0x1eb15a(0x1a0),'UvIUc':'Namespace\x20Created','QKjHm':_0x1eb15a(0x1ba),'LbBuo':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','WJEEq':'Spawning\x20Grid\x20on\x20the\x20Cluster','eqrvh':function(_0x28bcdd,_0x48c217){return _0x28bcdd===_0x48c217;},'YqBoF':function(_0x47bb2c,_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a){return _0x47bb2c(_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a);},'bstyD':_0x1eb15a(0x10e),'IxgRX':_0x1eb15a(0xbd),'kRIyC':function(_0x1cf01d,_0x56cc12,_0x7f779e,_0x473325,_0x17c88e){return _0x1cf01d(_0x56cc12,_0x7f779e,_0x473325,_0x17c88e);},'zrYJa':_0x1eb15a(0xb1),'TPNEx':'ingress-nginx-controller','PmdaC':_0x1eb15a(0x108),'YvDEB':function(_0x5b5dce,_0x4c80e7){return _0x5b5dce===_0x4c80e7;},'EiApa':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','EXcCh':function(_0x23d03c,_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513){return _0x23d03c(_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513);},'bxTxy':_0x1eb15a(0x1e7),'qYEDN':_0x1eb15a(0x130),'coLvU':function(_0x3035c8,_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98){return _0x3035c8(_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98);},'aneuG':_0x1eb15a(0x13f),'kyBAY':function(_0x222f10,_0x4d5ced){return _0x222f10!==_0x4d5ced;},'dmDvB':_0x1eb15a(0xb8),'SwaOc':_0x1eb15a(0x18f),'LgLqu':function(_0x513ea9,_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0){return _0x513ea9(_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0);},'ISzzb':function(_0x499116,_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16){return _0x499116(_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16);},'nkfDE':'grid-spawning-failed'};let _0x38d54d=![],_0x30ca7b=![],_0x45da56,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x3c7e12,_0xd6f39,_0x12d00d,_0x6e7eae,_0x3dea52,_0x502ccc,_0x3da2f5,_0xbef3c2,_0x5c251e=0x1,_0x4d9d6b=0xe;try{global_registry['requestId']=_0x4e9ab7[_0x1eb15a(0x1bb)](uuidv4),global_registry[_0x1eb15a(0x106)]=![];!fs['existsSync'](_0x4e9ab7[_0x1eb15a(0x179)](getCredentialsPath))&&(_0x4e9ab7['eZfDC'](_0x4e9ab7[_0x1eb15a(0x11e)],_0x4e9ab7[_0x1eb15a(0x11e)])?(console[_0x1eb15a(0x197)](_0x4e9ab7['UnjVI']),await _0x4e9ab7[_0x1eb15a(0x185)](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x12f)],null,_0x1e646d),process['exit'](0x1)):_0x381634[_0x1eb15a(0x106)]=!![]);await _0x4e9ab7['NafWy'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x17b)],null,null,_0x1e646d);const _0x28cd26=JSON[_0x1eb15a(0xab)](fs[_0x1eb15a(0x1dd)](_0x4e9ab7[_0x1eb15a(0x1bb)](getCredentialsPath)));global_registry[_0x1eb15a(0xf6)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],global_registry[_0x1eb15a(0x129)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)];const _0x2609d9=WS_ENDPOINT[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x165)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)])[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x186)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),_0x33c6a1={};_0x33c6a1[_0x1eb15a(0x11a)]=ws,_0x33c6a1[_0x1eb15a(0xcb)]=0x36ee80,_0x502ccc=new ReconnectingWebSocket(_0x2609d9,[],_0x33c6a1),logger['debug'](_0x4e9ab7['Dveph']),webSocketUtils['addListeners'](_0x502ccc,_0x1e646d[_0x1eb15a(0x1d1)],_0x1e646d[_0x1eb15a(0x169)]);const _0x421e22=_0x1e646d['gridName']||DEFAULT_GRID_NAME;if(_0x1e646d[_0x1eb15a(0x1ce)]||_0x1e646d[_0x1eb15a(0xc8)]||_0x1e646d['region']){if(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1c1)],_0x4e9ab7[_0x1eb15a(0x1c1)]))_0x213004[_0x1eb15a(0x14e)](_0x1eb15a(0x107)+_0x10da4b[_0x1eb15a(0x125)](_0x41c6b2)+'\x20');else{if(!(_0x1e646d[_0x1eb15a(0x1ce)]&&_0x1e646d[_0x1eb15a(0xc8)]&&_0x1e646d[_0x1eb15a(0x152)])){if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x4e9ab7[_0x1eb15a(0x19d)],_0x4e9ab7['AwNFa']))_0x45da56=_0x4e9ab7['tLDGV'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x104)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1);else throw new _0x237944(_0x1eb15a(0x1f1)+_0x47f49f+_0x1eb15a(0x120));}![AWS,AZURE,GCP]['includes'](_0x1e646d[_0x1eb15a(0xc8)]['toLowerCase']())&&(_0x4e9ab7[_0x1eb15a(0x1cb)](_0x4e9ab7[_0x1eb15a(0x14c)],_0x4e9ab7[_0x1eb15a(0xe3)])?(_0x45da56=_0x4e9ab7['MPHat'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['KKAAR'],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x4d22c5[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x552a96[_0x1eb15a(0x1ce)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x1c0f45=![],_0x201f26=!![]));_0x1e646d[_0x1eb15a(0x181)]&&_0x4e9ab7[_0x1eb15a(0x119)](_0x1e646d[_0x1eb15a(0x181)][_0x1eb15a(0xf3)](),_0x4e9ab7[_0x1eb15a(0x1d0)])&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1d6)],_0x4e9ab7['NurFa'])?global_registry[_0x1eb15a(0x106)]=!![]:_0x4282f0['isPrivateGrid']=!![]);global_registry[_0x1eb15a(0xc8)]=_0x1e646d['cloudProvider'],global_registry['clusterRegion']=_0x1e646d['region'],global_registry[_0x1eb15a(0x1ce)]=_0x1e646d[_0x1eb15a(0x1ce)];const _0x4f084a=await _0x4e9ab7[_0x1eb15a(0x151)](getCloudProviderObject,_0x1e646d[_0x1eb15a(0xc8)],_0x1e646d['clusterName'],_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d),_0x65da63=await _0x4f084a[_0x1eb15a(0x135)]();if(!_0x65da63)_0x4e9ab7['ReMFp'](_0x4e9ab7[_0x1eb15a(0x13c)],_0x4e9ab7[_0x1eb15a(0xae)])?(logger[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x1e646d['clusterName']+_0x1eb15a(0x178)),_0x38d54d=![],_0x30ca7b=!![]):_0x19b043=_0x31604b[_0x22e799['gridProfile']];else{if(_0x4e9ab7[_0x1eb15a(0x1df)](_0x4e9ab7[_0x1eb15a(0x145)],_0x4e9ab7[_0x1eb15a(0x145)])){const _0x2e3670={};_0x2e3670[_0x1eb15a(0x11c)]=_0x4e0ac5[_0x1eb15a(0x10f)],_0x2e3670[_0x1eb15a(0x158)]=_0x49adc4,_0x456201['sendEventToBackend'](_0x13964a,_0x2e3670,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}else _0x38d54d=!![];}_0x4dd671=_0x1e646d['clusterName'],_0x1fbbfb=_0x1e646d['cloudProvider'][_0x1eb15a(0xf3)](),_0x386c66=_0x1e646d[_0x1eb15a(0x152)];}}else _0x1e646d[_0x1eb15a(0x1d5)]&&(_0x4e9ab7[_0x1eb15a(0x18c)](_0x4e9ab7[_0x1eb15a(0x17a)],_0x4e9ab7[_0x1eb15a(0xb3)])?_0x4351d9=null:global_registry[_0x1eb15a(0x1d5)]=_0x1e646d[_0x1eb15a(0x1d5)]);global_registry[_0x1eb15a(0x189)]=_0x1e646d['gridName'];const _0x28b9b4={'method':_0x4e9ab7[_0x1eb15a(0x11f)],'headers':_0x4e9ab7[_0x1eb15a(0xbf)](getAuthHeader,_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),'throwHttpErrors':![]},_0x2a9c10={};_0x2a9c10['gridName']=_0x421e22;const _0x59ff85=_0x2a9c10;if(_0x30ca7b){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x12c)],_0x4e9ab7[_0x1eb15a(0x1b1)])){const _0x45babd=_0x4e9ab7[_0x1eb15a(0x1f3)]['split']('|');let _0x3ef62d=0x0;while(!![]){switch(_0x45babd[_0x3ef62d++]){case'0':_0x4e3828['clusterRegion']=_0x9f0458;continue;case'1':_0xd7088c[_0x1eb15a(0x1ce)]=_0x44f5ee;continue;case'2':_0x5efaf0[_0x1eb15a(0xc8)]=_0x4b9e57;continue;case'3':_0x59877f[_0x1eb15a(0x1a8)]=_0x20917d['hubVersion'];continue;case'4':_0x27a07e['browserVersion']=_0xdfa615['browserVersion'];continue;case'5':_0x4ad48b=_0x1eb15a(0x1c4)+_0x585e09+_0x1eb15a(0x128)+_0x5f413f+'\x27';continue;case'6':const _0x418aa4={};_0x418aa4[_0x1eb15a(0x11c)]=_0x4558a4[_0x1eb15a(0x10f)],_0x418aa4[_0x1eb15a(0x158)]=_0x18e42b,_0x3107ff['sendEventToBackend'](_0x41f2aa,_0x418aa4);continue;case'7':_0x52156c[_0x1eb15a(0x14e)](_0x4aec24);continue;case'8':const _0x12fec0={};_0x12fec0[_0x1eb15a(0x11c)]=_0x2b5905[_0x1eb15a(0xdd)],_0x12fec0[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],_0x36a461[_0x1eb15a(0x100)](_0x194477,_0x12fec0);continue;}break;}}else _0x59ff85['region']=_0x386c66,_0x59ff85[_0x1eb15a(0xc8)]=_0x1fbbfb,_0x59ff85['newCluster']=!![];}const _0x6c45bd='https://'+AG_API_URL+_0x1eb15a(0x12d),_0x2cf8e4={'searchParams':_0x59ff85,'throwHttpErrors':![],..._0x28b9b4},_0x53e889=_0x2cf8e4,_0x260988=await _0x4e9ab7[_0x1eb15a(0xbf)](got,_0x6c45bd,_0x53e889);(_0x4e9ab7[_0x1eb15a(0xac)](_0x260988,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x260988,undefined))&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0xe7)],_0x4e9ab7[_0x1eb15a(0xaa)])?(_0x45da56=_0x4e9ab7['ryqMU'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7['Vzevk'],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x2bb132=_0x46d7ec[_0x1eb15a(0x15b)],_0x305e4a=_0x4e9ab7[_0x1eb15a(0x118)]));_0x4e9ab7[_0x1eb15a(0x1eb)](_0x260988[_0x1eb15a(0x1ae)],0x191)&&(_0x4e9ab7[_0x1eb15a(0x15d)](_0x4e9ab7['zbzfW'],_0x4e9ab7['dvwya'])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfd)],await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['Askyt'],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1)):_0x470165=null);if(_0x4e9ab7[_0x1eb15a(0x155)](_0x260988['statusCode'],0xc8)){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x10a)],_0x4e9ab7[_0x1eb15a(0xf4)])){const _0x572a49={};_0x572a49[_0x1eb15a(0x11c)]=_0x92c68d[_0x1eb15a(0x10f)],_0x572a49['message']='Cluster\x20'+_0x8462bd+_0x1eb15a(0x1aa),_0x368ef6[_0x1eb15a(0x100)](_0x200059,_0x572a49,_0x4e9ab7[_0x1eb15a(0x1bc)]),_0x4cb63d[_0x1eb15a(0x14e)]('Cluster\x20'+_0x3ddf02+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa93c64=!![];if(_0x4e9ab7[_0x1eb15a(0xe8)](_0xdd030,!![]))throw new _0x3a16c5(_0x1eb15a(0x1f1)+_0x12d07a+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else _0x45da56='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1eb15a(0x125)](_0x260988[_0x1eb15a(0x159)]),await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c5)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1);}const _0x5c6778=JSON[_0x1eb15a(0xab)](_0x260988[_0x1eb15a(0x159)]),_0x125bb5={};_0x125bb5[_0x1eb15a(0x11c)]=WS_EVENTS['CLI_RUN_STARTED'],_0x125bb5[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x125bb5);const _0xbc9e88={};_0xbc9e88[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0xbc9e88[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xf8)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0xbc9e88);_0x5c6778[_0x1eb15a(0x1b7)]&&(_0x4e9ab7['ENuHR'](_0x4e9ab7[_0x1eb15a(0x126)],_0x4e9ab7['ZFCzR'])?(_0x45da56='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x421e22+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1da)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):_0x469481=_0x4e9ab7['tCnXV']);const _0x2e3ed0=_0x5c6778['gridProfiles'];let _0x204fb5=_0x2e3ed0[_0x5c6778[_0x1eb15a(0x1e3)]];if(_0x1e646d[_0x1eb15a(0x1d5)]){if(_0x4e9ab7['fXqzL'](_0x4e9ab7[_0x1eb15a(0x11b)],_0x4e9ab7['EpKhD'])){const _0x3ce5fe={};_0x3ce5fe[_0x1eb15a(0x1c2)]=_0x4e9ab7['XXnTA'],_0x3ce5fe[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x5f181b={};_0x5f181b[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x11d)],_0x5f181b[_0x1eb15a(0x11c)]=_0x4e9ab7['CSssk'];const _0x4a7915={};_0x4a7915[_0x1eb15a(0x1c2)]=_0x4e9ab7['qnVOn'],_0x4a7915[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x176bbf={};_0x176bbf[_0x1eb15a(0x1c2)]=_0x4e9ab7['zFvCu'],_0x176bbf[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x8c4f96={};_0x8c4f96['description']=_0x4e9ab7['pJFXa'],_0x8c4f96['type']=_0x4e9ab7['CSssk'];const _0x47df57={};_0x47df57[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0xd5)],_0x47df57['type']=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x2fc92c={};_0x2fc92c[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x131)],_0x2fc92c[_0x1eb15a(0x11c)]=_0x4e9ab7['PTqqi'],_0x2fc92c[_0x1eb15a(0x1b5)]=![];const _0x2d0b3a={};return _0x2d0b3a['grid-name']=_0x3ce5fe,_0x2d0b3a[_0x1eb15a(0x1ca)]=_0x5f181b,_0x2d0b3a[_0x1eb15a(0x102)]=_0x4a7915,_0x2d0b3a['cloud-provider']=_0x176bbf,_0x2d0b3a[_0x1eb15a(0x152)]=_0x8c4f96,_0x2d0b3a['private-grid']=_0x47df57,_0x2d0b3a[_0x1eb15a(0x174)]=_0x2fc92c,_0x2a5c80[_0x1eb15a(0x19f)](_0x4dbd8d[_0x1eb15a(0xea)])[_0x1eb15a(0xca)](_0x2a52d1)[_0x1eb15a(0x198)](_0x2d0b3a)[_0x1eb15a(0xd6)](_0x4e9ab7[_0x1eb15a(0x122)])[_0x1eb15a(0xce)];}else _0x204fb5=_0x2e3ed0[_0x1e646d['gridProfile']];}if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0x176)](_0x30ca7b,![])){if(_0x4e9ab7[_0x1eb15a(0x160)](_0x4e9ab7[_0x1eb15a(0x1cf)],_0x4e9ab7['xoZLV']))_0x14952e[_0x1eb15a(0x152)]=_0x456bff,_0x46c45a['cloudProvider']=_0xbfed4f,_0x101cfb[_0x1eb15a(0x175)]=!![];else{_0x4e9ab7[_0x1eb15a(0xcc)](_0x204fb5,undefined)&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x112)],_0x4e9ab7[_0x1eb15a(0x112)])?_0x566453[_0x1eb15a(0x106)]=!![]:(_0x45da56=_0x4e9ab7[_0x1eb15a(0x153)],await _0x4e9ab7[_0x1eb15a(0x141)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0xf9)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1)));global_registry[_0x1eb15a(0x15e)]=_0x204fb5['id'],_0x45da56='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x421e22+_0x1eb15a(0xef)+_0x204fb5[_0x1eb15a(0x14b)]+_0x1eb15a(0x1d2),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x12cd1c={};_0x12cd1c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x12cd1c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x12cd1c),_0x1fbbfb=_0x204fb5[_0x1eb15a(0xc8)],_0x4dd671=_0x204fb5[_0x1eb15a(0x1ce)],_0x386c66=_0x204fb5[_0x1eb15a(0x152)],_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=_0x204fb5[_0x1eb15a(0xf5)],_0xd6f39=_0x204fb5['securityGroups'],_0x12d00d=_0x204fb5[_0x1eb15a(0x199)],_0x6e7eae=_0x204fb5['s3bucket'],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x3c7e12&&_0x4e9ab7[_0x1eb15a(0xff)](_0x3c7e12[_0x1eb15a(0x1af)],0x0)&&(_0x4e9ab7[_0x1eb15a(0x136)](_0x4e9ab7['uIGnC'],_0x4e9ab7[_0x1eb15a(0x117)])?_0x545223['info']('Found\x20VPC:\x20'+_0x19abb6+'\x20'):_0x3c7e12=null),_0x12d00d&&_0x4e9ab7['MvXjN'](_0x12d00d['length'],0x0)&&(_0x4e9ab7[_0x1eb15a(0xe1)](_0x4e9ab7['IkphZ'],_0x4e9ab7[_0x1eb15a(0x1cd)])?_0x12d00d=null:_0x2abf26=!![]),_0x4e9ab7[_0x1eb15a(0x1f4)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7[_0x1eb15a(0xc5)](_0x4e9ab7[_0x1eb15a(0x1a2)],_0x4e9ab7[_0x1eb15a(0x1a2)])?_0xe6d78d[_0x1eb15a(0x164)]():global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x12a)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xff)](_0x30ca7b,!![])){if(_0x4e9ab7[_0x1eb15a(0x144)](_0x4e9ab7[_0x1eb15a(0x15f)],_0x4e9ab7['uIEYT']))_0x20832a['gridProfile']=_0x5a2a37[_0x1eb15a(0x1d5)];else{_0x45da56=_0x1eb15a(0xb6)+_0x421e22,logger['info'](_0x45da56);const _0x1455a3={};_0x1455a3['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0x1455a3['message']=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1455a3),_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=null,_0xd6f39=null,_0x12d00d=null,_0x6e7eae=_0x204fb5[_0x1eb15a(0x172)],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x4e9ab7[_0x1eb15a(0x136)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7['nUIRh'](_0x4e9ab7['wWcnG'],_0x4e9ab7['wWcnG'])?_0x4d1bd1[_0x1eb15a(0x197)](_0x1eb15a(0x1a3)+_0x5e7ff9+'\x20\x0a'+_0x228bac['stringify'](_0x49043a[_0x1eb15a(0x1d9)])):global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x177)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xe8)](_0x4e9ab7[_0x1eb15a(0x15c)],_0x4e9ab7['bLsIE'])){const _0xf3cab2=_0x4e9ab7['trSnM']['split']('|');let _0x11bf7b=0x0;while(!![]){switch(_0xf3cab2[_0x11bf7b++]){case'0':_0x1e4f5b=_0x169fb7[_0x1eb15a(0x1a6)];continue;case'1':_0x32c880['info'](_0x32e804);continue;case'2':_0x5f1a47=_0x1eb15a(0xb6)+_0x5a30d6;continue;case'3':const _0x4843cc={};_0x4843cc[_0x1eb15a(0x11c)]=_0x366e11[_0x1eb15a(0x10f)],_0x4843cc[_0x1eb15a(0x158)]=_0x335a08,_0x362884[_0x1eb15a(0x100)](_0x1b3a58,_0x4843cc);continue;case'4':_0x51a51e=_0x2d225e[_0x1eb15a(0xeb)];continue;case'5':_0x176dbf=_0x5bd08c[_0x1eb15a(0x105)];continue;case'6':_0x4e9ab7[_0x1eb15a(0x109)](_0xe37171[_0x1eb15a(0x181)],_0x18d905)&&_0x899bbc[_0x1eb15a(0x181)]&&(_0x20fc7a[_0x1eb15a(0x106)]=!![]);continue;case'7':_0x4e9ab7[_0x1eb15a(0x12a)](_0x4a333c,_0x3f7dae,_0x5cfd14,_0x2ab831,_0xb0717,_0x53a783,_0x6248de,_0x4adbcb,_0x510d52,_0x1886aa,_0xee38f3,_0x101592);continue;case'8':_0x281635=null;continue;case'9':_0xd4ede2=_0x4149f6[_0x1eb15a(0xad)];continue;case'10':_0x4b828c=null;continue;case'11':_0x2073c6=_0x2ecc3b[_0x1eb15a(0x1a8)];continue;case'12':_0x36e633=null;continue;case'13':_0x527bfe=_0x4518f5[_0x1eb15a(0x172)];continue;case'14':_0xb156a3=_0x1ac28c[_0x1eb15a(0x140)];continue;}break;}}else{const _0x5a9beb=_0x4e9ab7['GaASA'][_0x1eb15a(0x142)]('|');let _0x722407=0x0;while(!![]){switch(_0x5a9beb[_0x722407++]){case'0':const _0x621f92={};_0x621f92[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x621f92[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x621f92);continue;case'1':global_registry[_0x1eb15a(0x17e)]=_0x386c66;continue;case'2':global_registry[_0x1eb15a(0x1ce)]=_0x4dd671;continue;case'3':global_registry[_0x1eb15a(0xc8)]=_0x1fbbfb;continue;case'4':global_registry['browserVersion']=_0x5c6778['browserVersion'];continue;case'5':_0x45da56=_0x1eb15a(0x1c4)+_0x421e22+_0x1eb15a(0x128)+_0x4dd671+'\x27';continue;case'6':const _0x7df28={};_0x7df28[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0xdd)],_0x7df28[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x7df28);continue;case'7':global_registry[_0x1eb15a(0x1a8)]=_0x5c6778[_0x1eb15a(0x1a8)];continue;case'8':logger[_0x1eb15a(0x14e)](_0x45da56);continue;}break;}}}}const _0x136799=await _0x4e9ab7[_0x1eb15a(0x168)](getCloudProviderObject,_0x1fbbfb,_0x4dd671,_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d);_0x4e9ab7[_0x1eb15a(0x1df)](_0x1fbbfb,AZURE)&&_0x136799[_0x1eb15a(0x164)]();let _0x4b92b;if(_0x4e9ab7[_0x1eb15a(0xda)](_0x38d54d,![])){_0x45da56=_0x1eb15a(0xc7)+_0x386c66+').';const _0xcfcbe9={};_0xcfcbe9[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xcfcbe9[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0xcfcbe9),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x523fa6=await _0x136799[_0x1eb15a(0x135)]();if(_0x523fa6){const _0x1f41eb={};_0x1f41eb[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x1f41eb[_0x1eb15a(0x158)]='Cluster\x20'+_0x4dd671+_0x1eb15a(0x1aa),webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1f41eb,_0x4e9ab7[_0x1eb15a(0x1bc)]),logger['info'](_0x1eb15a(0x1f1)+_0x4dd671+_0x1eb15a(0x1aa)),_0x38d54d=!![];if(_0x4e9ab7[_0x1eb15a(0x1f5)](_0x30ca7b,!![]))throw new Error('Cluster\x20'+_0x4dd671+_0x1eb15a(0x120));}else{const _0x3ba1b5={};_0x3ba1b5[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3ba1b5['message']=_0x4e9ab7[_0x1eb15a(0xdb)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x3ba1b5),logger['info'](_0x4e9ab7['dXThF']);const _0xad6cd9=_0x4e9ab7[_0x1eb15a(0xb9)](_0x3c7e12,null)&&_0x4e9ab7['edKUo'](_0x3c7e12,undefined),_0x2b643e=_0x4e9ab7[_0x1eb15a(0x13d)](_0x12d00d,null)&&_0x4e9ab7[_0x1eb15a(0x1d3)](_0x12d00d,undefined)&&_0x4e9ab7['wGCms'](_0x12d00d[_0x1eb15a(0x1af)],0x0);if(_0xad6cd9){_0x4e9ab7[_0x1eb15a(0xac)](_0x2b643e,![])&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x154)],await _0x4e9ab7[_0x1eb15a(0x1ec)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0x180)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1));const _0x458804=await _0x136799['isVPCPresent'](_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x10b)](_0x458804,![])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfe)],await _0x4e9ab7['cZNav'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x182)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):logger[_0x1eb15a(0x14e)]('Found\x20VPC:\x20'+_0x3c7e12+'\x20');const _0x5e3692=await _0x136799[_0x1eb15a(0x19a)](_0x12d00d,_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x1e4)](_0x5e3692[0x0],![])?(_0x45da56=_0x1eb15a(0x124)+JSON['stringify'](_0x5e3692[0x1])+_0x1eb15a(0x183)+_0x3c7e12+_0x1eb15a(0x1b6),await _0x4e9ab7[_0x1eb15a(0xb4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c3)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](_0x12d00d)+'\x20'),await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);}else{const _0x69ecd3=_0x4e9ab7[_0x1eb15a(0xc6)][_0x1eb15a(0x142)]('|');let _0x517e35=0x0;while(!![]){switch(_0x69ecd3[_0x517e35++]){case'0':const _0x2832a7={};_0x2832a7[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2832a7[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x139)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2832a7);continue;case'1':await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);continue;case'2':logger[_0x1eb15a(0x14e)](_0x4e9ab7['NWHOQ']);continue;case'3':const _0x506f70={};_0x506f70[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x506f70[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x195)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x506f70);continue;case'4':logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x139)]);continue;}break;}}}}_0x38d54d&&_0x4e9ab7[_0x1eb15a(0xe0)](_0x1fbbfb,AZURE)&&(await _0x136799[_0x1eb15a(0xd4)](),await _0x136799[_0x1eb15a(0x110)]());const [_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x39b946,_0x3abcea]=await _0x4e9ab7[_0x1eb15a(0x1a4)](createK8sClient,_0x136799,_0x1e646d[_0x1eb15a(0x18b)]);_0x4e9ab7[_0x1eb15a(0x119)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0xbe)](_0x1fbbfb,AWS)&&(global_registry[_0x1eb15a(0x191)]=!![],_0x4b92b=await _0x136799[_0x1eb15a(0x137)](_0x51b6da,_0x1e646d));try{_0x3dea52=_0x4e9ab7[_0x1eb15a(0x127)](kebabCase,_0x421e22),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x173)]);const _0x4c074c={};_0x4c074c[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x4c074c[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x173)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x4c074c);if(_0x4e9ab7[_0x1eb15a(0xc1)](_0x3dea52,_0x4e9ab7[_0x1eb15a(0x1f0)])){const _0x4add87={};_0x4add87['createdBy']=_0x4e9ab7[_0x1eb15a(0xf7)],_0x4add87[_0x1eb15a(0xdc)]=_0x4e9ab7[_0x1eb15a(0xf7)];const _0x564fc3={};_0x564fc3[_0x1eb15a(0x14b)]=_0x3dea52,_0x564fc3[_0x1eb15a(0x193)]=_0x4add87;const _0x3fb259={};_0x3fb259['metadata']=_0x564fc3;const _0x504909=_0x3fb259,_0xdfff54={};_0xdfff54[_0x1eb15a(0x159)]=_0x504909,await _0x51b6da['createNamespace'](_0xdfff54),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x16a)]);}const _0x2a648d={};_0x2a648d[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2a648d[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xba)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2a648d);const _0xf4c0ae={};_0xf4c0ae['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0xf4c0ae[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xb5)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xf4c0ae),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x1a9)]);let _0x42b287={};_0x4e9ab7[_0x1eb15a(0x1a7)](_0x1fbbfb,AZURE)&&(_0x42b287={'clientId':await _0x136799[_0x1eb15a(0x1b2)]('turboscale-managed-identity-'+_0x4dd671)});await _0x4e9ab7[_0x1eb15a(0xde)](addGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52,_0x4dd671,_0x4b92b,_0x39b946,_0x3abcea,_0x42b287),_0x45da56=_0x4e9ab7[_0x1eb15a(0x103)],logger['info'](_0x45da56);const _0x91c01b={};_0x91c01b[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x91c01b[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x91c01b),_0x45da56=_0x4e9ab7[_0x1eb15a(0x132)],logger[_0x1eb15a(0x14e)](_0x45da56);const _0x5027ef={};_0x5027ef[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x5027ef[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0x5027ef),await _0x4e9ab7[_0x1eb15a(0x1be)](waitForDeployment,_0x24bead,_0x3dea52,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x2f22c0=await _0x4e9ab7[_0x1eb15a(0x1a4)](getNamespaceUID,_0x51b6da,_0x3dea52),_0x8c0045=global_registry[_0x1eb15a(0x106)]?_0x4e9ab7[_0x1eb15a(0x1e0)]:_0x4e9ab7['TPNEx'],_0xdc65f2={};_0xdc65f2[_0x1eb15a(0x14b)]=_0x8c0045,_0xdc65f2[_0x1eb15a(0x156)]=_0x4e9ab7[_0x1eb15a(0x14f)];const _0x1ab2e6=await _0x51b6da[_0x1eb15a(0xbb)](_0xdc65f2);let _0x413f09=_0x136799['getGridHostname'](_0x1ab2e6)+'/'+_0x3dea52,_0x3dc2d7=_0x4e9ab7[_0x1eb15a(0xb7)];try{const _0x19b0ae=_0x1eb15a(0x1e5)+AG_API_URL+_0x1eb15a(0xf1)+_0x2f22c0,_0x169df3=await _0x4e9ab7['bxFBA'](got,_0x19b0ae,_0x28b9b4);(_0x4e9ab7['YvDEB'](_0x169df3,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x169df3,undefined))&&(_0x45da56=_0x4e9ab7['EiApa'],await _0x4e9ab7['EXcCh'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xd8)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0xe8)](_0x169df3[_0x1eb15a(0x1ae)],0x191)&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x1c0)],await _0x4e9ab7[_0x1eb15a(0x192)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x13b)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0x1ea)](_0x169df3['statusCode'],0xc8)&&(_0x45da56=_0x1eb15a(0x19c)+JSON[_0x1eb15a(0x125)](_0x169df3),await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xcd)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1));const _0x38865a=JSON[_0x1eb15a(0xab)](_0x169df3[_0x1eb15a(0x159)]);_0x38865a[_0x1eb15a(0x15b)]&&(_0x413f09=_0x38865a[_0x1eb15a(0x15b)],_0x3dc2d7=_0x4e9ab7['xMRKJ']),global_registry['isPrivateGrid']&&(_0x3dc2d7=_0x4e9ab7['tCnXV']);}catch(_0x596067){}_0x45da56=_0x1eb15a(0x1de)+_0x413f09+'\x20',logger['info'](_0x45da56);const _0x39a864={};_0x39a864[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x39a864[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x39a864),_0x45da56='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x3dc2d7+_0x1eb15a(0x17d)+_0x413f09+_0x1eb15a(0xd3),logger[_0x1eb15a(0x14e)](_0x45da56);const _0xc1fe6c={};_0xc1fe6c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xc1fe6c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xc1fe6c);const _0x2f390f={};_0x2f390f[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x101)],_0x2f390f['message']=_0x1eb15a(0xd9)+_0x413f09,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2f390f),await webSocketUtils[_0x1eb15a(0x146)](0x7d0);}catch(_0x2c28b5){logger[_0x1eb15a(0x197)](_0x1eb15a(0xec)+_0x2c28b5+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x2c28b5[_0x1eb15a(0x1d9)]));if(_0x4e9ab7[_0x1eb15a(0x1e1)](_0x38d54d,![]))try{logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0xee)]),await _0x4e9ab7[_0x1eb15a(0x171)](removeGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52),await _0x136799[_0x1eb15a(0x1ed)](_0x51b6da,global_registry[_0x1eb15a(0x17e)]);}catch(_0x45ef40){logger[_0x1eb15a(0x197)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x45ef40+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x45ef40[_0x1eb15a(0x1d9)]));}throw _0x2c28b5;}}catch(_0x1bec1f){const _0xb905c6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1bec1f+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x1bec1f['stack']);if(_0x502ccc){const _0x3a8454={};_0x3a8454[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3a8454[_0x1eb15a(0x158)]=_0xb905c6,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x3a8454,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}await webSocketUtils[_0x1eb15a(0x146)](0x7d0);const _0x2cf676={};_0x2cf676[_0x1eb15a(0x197)]=_0xb905c6,await _0x4e9ab7['ISzzb'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1f2)],_0x2cf676,_0x1e646d),logger['error'](_0xb905c6);}process[_0x1eb15a(0xe5)](0x0);};
|
|
1
|
+
const a9_0x4fe302=a9_0x331d;(function(_0x1a6fb7,_0x16e630){const _0x2c3181=a9_0x331d,_0x12151d=_0x1a6fb7();while(!![]){try{const _0x335309=parseInt(_0x2c3181(0x27a))/0x1*(parseInt(_0x2c3181(0x180))/0x2)+parseInt(_0x2c3181(0x1fc))/0x3*(parseInt(_0x2c3181(0x1be))/0x4)+parseInt(_0x2c3181(0x1fd))/0x5+parseInt(_0x2c3181(0x1cd))/0x6*(parseInt(_0x2c3181(0x269))/0x7)+-parseInt(_0x2c3181(0x27d))/0x8*(-parseInt(_0x2c3181(0x1e5))/0x9)+parseInt(_0x2c3181(0x19c))/0xa*(-parseInt(_0x2c3181(0x16b))/0xb)+-parseInt(_0x2c3181(0x1ba))/0xc*(parseInt(_0x2c3181(0x23f))/0xd);if(_0x335309===_0x16e630)break;else _0x12151d['push'](_0x12151d['shift']());}catch(_0x185ad9){_0x12151d['push'](_0x12151d['shift']());}}}(a9_0x14d3,0xc7635));function a9_0x331d(_0x45a81e,_0xf221e7){const _0x14d37a=a9_0x14d3();return a9_0x331d=function(_0x331dd5,_0x5bce76){_0x331dd5=_0x331dd5-0x144;let _0x2d576d=_0x14d37a[_0x331dd5];return _0x2d576d;},a9_0x331d(_0x45a81e,_0xf221e7);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x4fe302(0x166)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x4fe302(0x16f)),{logger}=require(a9_0x4fe302(0x1c8)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x4fe302(0x209)),{getCloudProviderObject}=require(a9_0x4fe302(0x15f)),{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_0x4fe302(0x155)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x4fe302(0x275)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x4fe302(0x207)]=a9_0x4fe302(0x272),exports[a9_0x4fe302(0x17c)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x4fe302(0x1fb)]=function(_0x47a0b8){const _0x1bd396=a9_0x4fe302,_0x59b284={};_0x59b284[_0x1bd396(0x16a)]=_0x1bd396(0x232),_0x59b284['yGJoT']=_0x1bd396(0x1f2),_0x59b284[_0x1bd396(0x17f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x59b284[_0x1bd396(0x1ac)]=_0x1bd396(0x1c3),_0x59b284[_0x1bd396(0x268)]=_0x1bd396(0x1e1),_0x59b284[_0x1bd396(0x271)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x59b284[_0x1bd396(0x249)]=_0x1bd396(0x18c),_0x59b284['Gttmv']='Skip\x20insecure\x20cert\x20verification.',_0x59b284['VhpiQ']=_0x1bd396(0x147),_0x59b284['ExCEH']=_0x1bd396(0x170);const _0x2335b8=_0x59b284,_0x3e0e81={};_0x3e0e81[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x16a)],_0x3e0e81[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x12ef50={};_0x12ef50['description']=_0x2335b8['nzTAk'],_0x12ef50[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x500b79={};_0x500b79[_0x1bd396(0x1b7)]=_0x2335b8['EdDxq'],_0x500b79['type']=_0x2335b8[_0x1bd396(0x205)];const _0x375736={};_0x375736['description']=_0x2335b8['OFZWL'],_0x375736[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0xfcc3={};_0xfcc3[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x271)],_0xfcc3[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x3d023d={};_0x3d023d[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x249)],_0x3d023d[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x2fa616={};_0x2fa616[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x23c)],_0x2fa616[_0x1bd396(0x22c)]=_0x2335b8['VhpiQ'],_0x2fa616[_0x1bd396(0x22e)]=![];const _0x11c8e8={};return _0x11c8e8[_0x1bd396(0x14f)]=_0x3e0e81,_0x11c8e8['grid-profile']=_0x12ef50,_0x11c8e8[_0x1bd396(0x22d)]=_0x500b79,_0x11c8e8[_0x1bd396(0x286)]=_0x375736,_0x11c8e8[_0x1bd396(0x22b)]=_0xfcc3,_0x11c8e8[_0x1bd396(0x152)]=_0x3d023d,_0x11c8e8[_0x1bd396(0x228)]=_0x2fa616,_0x47a0b8[_0x1bd396(0x278)](HELP_HEADER_MESSAGE[_0x1bd396(0x1d8)])[_0x1bd396(0x23a)](HELP_FOOTER_MESSAGE)[_0x1bd396(0x197)](_0x11c8e8)[_0x1bd396(0x170)](_0x2335b8[_0x1bd396(0x179)])['argv'];},exports[a9_0x4fe302(0x1e4)]=async function(_0xb447a5){const _0x3ab92d=a9_0x4fe302,_0x39dedd={'YzdBk':'http','rZwOX':_0x3ab92d(0x232),'XshOt':_0x3ab92d(0x1f2),'jJBcM':_0x3ab92d(0x1e0),'MVyea':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AKPUA':_0x3ab92d(0x1e1),'ollXu':_0x3ab92d(0x151),'BgDsP':'Create\x20a\x20private/public\x20grid.','imomt':_0x3ab92d(0x17b),'FKwhx':_0x3ab92d(0x147),'HbBJS':_0x3ab92d(0x170),'SbnkV':'0|7|1|3|5|8|2|6|4','gIFMQ':_0x3ab92d(0x26a),'GJWZW':_0x3ab92d(0x1d7),'iEMEG':_0x3ab92d(0x28d),'MPazf':function(_0x303b12,_0x214801){return _0x303b12===_0x214801;},'rrpTl':_0x3ab92d(0x16c),'mucGo':function(_0x2f801c,_0x53ac70){return _0x2f801c!==_0x53ac70;},'MLmXU':function(_0x22b06f,_0x41596c,_0x5d5713,_0xe088f2,_0x547329,_0xce9497,_0x4fb8a9,_0x2213d7,_0x3e6ff6,_0x4eff84,_0xdc0179,_0xdfff59){return _0x22b06f(_0x41596c,_0x5d5713,_0xe088f2,_0x547329,_0xce9497,_0x4fb8a9,_0x2213d7,_0x3e6ff6,_0x4eff84,_0xdc0179,_0xdfff59);},'wFbmF':_0x3ab92d(0x164),'RgvST':function(_0x15857d){return _0x15857d();},'YCCQw':function(_0x1f8848){return _0x1f8848();},'mqhBv':function(_0x412828,_0x5d3f55){return _0x412828!==_0x5d3f55;},'opCAb':_0x3ab92d(0x219),'Zeabo':_0x3ab92d(0x18b),'fTnfP':_0x3ab92d(0x203),'cypbA':function(_0x147a3e,_0x279393,_0x5251c1,_0x182f8d,_0x424970,_0x12f6bd,_0x9fd1af){return _0x147a3e(_0x279393,_0x5251c1,_0x182f8d,_0x424970,_0x12f6bd,_0x9fd1af);},'HdXnm':_0x3ab92d(0x238),'DyNvl':_0x3ab92d(0x19a),'fJyay':_0x3ab92d(0x182),'kTovD':'<PasswordPlaceholder>','ZWJvE':'Adding\x20Websocket\x20listeners','TFtbY':function(_0x40302d,_0x37d5a6){return _0x40302d!==_0x37d5a6;},'JmLDI':'QoaRK','Hkscs':_0x3ab92d(0x198),'RJqUV':_0x3ab92d(0x20b),'BHDrH':_0x3ab92d(0x169),'xCSZU':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','wCsFP':function(_0x4c6070,_0x1e7154,_0x469e0c,_0x507984,_0x5d9c19,_0x22685a,_0x4d4bfd,_0x22e449){return _0x4c6070(_0x1e7154,_0x469e0c,_0x507984,_0x5d9c19,_0x22685a,_0x4d4bfd,_0x22e449);},'wXKZC':_0x3ab92d(0x292),'ZDCYh':'gPInq','qSQHT':_0x3ab92d(0x1e3),'Tqkup':function(_0x4a4e3a,_0x3910ff,_0x3caf5f,_0x1a0250,_0x30805b,_0x1a674f,_0x31be60,_0xe97bd5){return _0x4a4e3a(_0x3910ff,_0x3caf5f,_0x1a0250,_0x30805b,_0x1a674f,_0x31be60,_0xe97bd5);},'zyUIn':_0x3ab92d(0x200),'qenoZ':function(_0x56ce16,_0x5f940d){return _0x56ce16===_0x5f940d;},'udQIY':_0x3ab92d(0x177),'GfqGA':_0x3ab92d(0x206),'Rcmvr':function(_0x54ed70,_0x20c638){return _0x54ed70===_0x20c638;},'Vtqem':_0x3ab92d(0x243),'fWqDH':function(_0x1f6407,_0x1bb08c){return _0x1f6407!==_0x1bb08c;},'iKxKc':_0x3ab92d(0x235),'BcFQK':function(_0x5ccf63,_0x297bb5){return _0x5ccf63!==_0x297bb5;},'ZQfSX':_0x3ab92d(0x25c),'edpIo':'NASfz','mncIC':_0x3ab92d(0x241),'rFmcI':function(_0x1bc70e,_0x10f804,_0x12425b){return _0x1bc70e(_0x10f804,_0x12425b);},'boQEa':function(_0x404f47,_0x3df56e){return _0x404f47!==_0x3df56e;},'OCXtX':_0x3ab92d(0x199),'NQYAH':function(_0x460367,_0xa9c138){return _0x460367===_0xa9c138;},'wBDxS':'hRCOd','mWgEL':_0x3ab92d(0x263),'mriOj':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','haEMs':'create-grid-checks-null-response','qJyRd':function(_0x1a06be,_0x18b88a){return _0x1a06be===_0x18b88a;},'WaGkx':_0x3ab92d(0x1ef),'Unlqt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hfgxa':function(_0x241fa2,_0x2d77d1,_0x419340,_0x7783d0,_0x5e0241,_0x13f118,_0x5938ff,_0x12eb3a){return _0x241fa2(_0x2d77d1,_0x419340,_0x7783d0,_0x5e0241,_0x13f118,_0x5938ff,_0x12eb3a);},'BWJbI':_0x3ab92d(0x160),'LpVyz':_0x3ab92d(0x225),'uzAJi':'create-grid-checks-non-200','vbMmw':_0x3ab92d(0x144),'fLIfW':_0x3ab92d(0x28a),'IZPjj':function(_0x42e6d4,_0x20f4df,_0x2ca3e0,_0x53e102,_0x2faae5,_0x2f3c23,_0x5b1a5d,_0x5f05d0){return _0x42e6d4(_0x20f4df,_0x2ca3e0,_0x53e102,_0x2faae5,_0x2f3c23,_0x5b1a5d,_0x5f05d0);},'tlOaR':'create-grid-checks-grid-already-exists','ckTcN':_0x3ab92d(0x1bf),'KBZMN':_0x3ab92d(0x153),'Mthkv':_0x3ab92d(0x19b),'iWNiE':_0x3ab92d(0x1d3),'mIkNv':_0x3ab92d(0x22a),'tqdys':function(_0x187579,_0x1834e4){return _0x187579===_0x1834e4;},'ShQNQ':function(_0x308b5c,_0xd48e67){return _0x308b5c===_0xd48e67;},'Apvzs':_0x3ab92d(0x245),'qZiuA':'BZEYz','cOpYo':function(_0x447231,_0x155fe3){return _0x447231===_0x155fe3;},'NxOuM':_0x3ab92d(0x234),'fctUV':function(_0x41673b,_0x34a32e){return _0x41673b!==_0x34a32e;},'tpfJF':_0x3ab92d(0x165),'esWUe':function(_0x14b0f0,_0x158b4c,_0x1c0d04,_0x2acfb1,_0x51efb4,_0x17a7a9,_0x51c41d,_0x470442,_0x45b945,_0x4af619,_0x4f2e72,_0x42704c){return _0x14b0f0(_0x158b4c,_0x1c0d04,_0x2acfb1,_0x51efb4,_0x17a7a9,_0x51c41d,_0x470442,_0x45b945,_0x4af619,_0x4f2e72,_0x42704c);},'YbfXu':function(_0x59abe6,_0x2e7459){return _0x59abe6===_0x2e7459;},'imKsE':_0x3ab92d(0x25a),'pQWeA':'YrcTw','VXhWt':_0x3ab92d(0x256),'hVHZy':_0x3ab92d(0x1ff),'NYpjz':function(_0x14696e,_0x40fc5d,_0x44276a,_0x333e31,_0x1de3a8,_0x5340d5,_0x3c211b,_0x4b90dd,_0x6f3bf4,_0x963cde,_0x11fe66,_0x354d70){return _0x14696e(_0x40fc5d,_0x44276a,_0x333e31,_0x1de3a8,_0x5340d5,_0x3c211b,_0x4b90dd,_0x6f3bf4,_0x963cde,_0x11fe66,_0x354d70);},'yuCBt':_0x3ab92d(0x1c9),'ddJjY':_0x3ab92d(0x259),'fGpej':_0x3ab92d(0x1f7),'xQvHS':function(_0x433a79,_0x3b2e1f,_0x3c9612,_0x5effa2,_0x2e87a1,_0x24f66d,_0x2403e9){return _0x433a79(_0x3b2e1f,_0x3c9612,_0x5effa2,_0x2e87a1,_0x24f66d,_0x2403e9);},'ndpMu':function(_0x5ddeeb,_0x591c8a){return _0x5ddeeb!==_0x591c8a;},'HLFNO':_0x3ab92d(0x20f),'ILYfD':function(_0x33f629,_0x2cc052){return _0x33f629!=_0x2cc052;},'TzzOL':function(_0x470ae6,_0x39bd04){return _0x470ae6!==_0x39bd04;},'wPJak':function(_0x56b132,_0x12f4a0){return _0x56b132!==_0x12f4a0;},'TxOpQ':function(_0x5f04a9,_0x266e8b){return _0x5f04a9>_0x266e8b;},'bJlXx':_0x3ab92d(0x21e),'oMRHc':_0x3ab92d(0x281),'WatbA':function(_0x41d3c4,_0x3cf152){return _0x41d3c4===_0x3cf152;},'eCFTd':_0x3ab92d(0x273),'hPoNa':_0x3ab92d(0x258),'Gjvnq':function(_0x81a503,_0x5e73a8){return _0x81a503===_0x5e73a8;},'BPHAo':function(_0x42f6bd,_0x5d17ee,_0x190c72,_0x1a07b2,_0x89871b,_0x42d07c,_0x464d7e,_0x1a85e5){return _0x42f6bd(_0x5d17ee,_0x190c72,_0x1a07b2,_0x89871b,_0x42d07c,_0x464d7e,_0x1a85e5);},'OKzTm':_0x3ab92d(0x1dd),'xEDzT':'2|4|1|0|3','NBKit':_0x3ab92d(0x242),'BjVob':_0x3ab92d(0x24e),'juShH':function(_0x10fe5e,_0x4dabce,_0x32f72f){return _0x10fe5e(_0x4dabce,_0x32f72f);},'obzcp':function(_0x3a2a4f,_0x4b3c51){return _0x3a2a4f(_0x4b3c51);},'UjPwI':_0x3ab92d(0x280),'CTaDw':_0x3ab92d(0x22e),'OeHVw':_0x3ab92d(0x25e),'EMYoo':'Namespace\x20Created','mybgp':_0x3ab92d(0x15e),'cyZXo':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','FjeEb':_0x3ab92d(0x1d1),'UiEQR':function(_0x5cf0cb,_0x1ec848){return _0x5cf0cb===_0x1ec848;},'nZwov':function(_0x5b7b7d,_0x1ca681,_0x4f94f2,_0x5205a7,_0x2462e6,_0x11d97b,_0x4a8e3d,_0x1e7965,_0x554207,_0xd3e5fd,_0x2af734){return _0x5b7b7d(_0x1ca681,_0x4f94f2,_0x5205a7,_0x2462e6,_0x11d97b,_0x4a8e3d,_0x1e7965,_0x554207,_0xd3e5fd,_0x2af734);},'GZlXJ':'Grid\x20spawned\x20on\x20the\x20cluster','ozkVB':_0x3ab92d(0x17e),'RuMZW':function(_0x34ffd8,_0x3e1ac2,_0x55308b,_0x1e9cf8,_0x1f9577){return _0x34ffd8(_0x3e1ac2,_0x55308b,_0x1e9cf8,_0x1f9577);},'ovEKU':_0x3ab92d(0x1cb),'bQBCo':'ingress-nginx-controller','UhBOU':_0x3ab92d(0x1f4),'nEjRp':function(_0x4eb7ce,_0x425ee8,_0x982c7f){return _0x4eb7ce(_0x425ee8,_0x982c7f);},'QxMbc':function(_0xde1dea,_0x5d0e02){return _0xde1dea===_0x5d0e02;},'oFwnU':_0x3ab92d(0x28c),'XYOms':_0x3ab92d(0x27c),'eacCa':_0x3ab92d(0x167),'itNTU':'get-grid-url-auth-failed','XhOOz':_0x3ab92d(0x18a),'TmzWr':function(_0x456336,_0x13aa9e){return _0x456336===_0x13aa9e;},'mTVlL':_0x3ab92d(0x289),'pFJCK':function(_0x429fc2,_0x3011b4,_0x173cc0,_0x2b9b4e,_0x1707e2,_0x21b4e6){return _0x429fc2(_0x3011b4,_0x173cc0,_0x2b9b4e,_0x1707e2,_0x21b4e6);},'cWduq':function(_0xf510b4,_0x27595c,_0x23c2ca,_0x303302,_0x4f1ccd,_0x388060,_0x3a6f92){return _0xf510b4(_0x27595c,_0x23c2ca,_0x303302,_0x4f1ccd,_0x388060,_0x3a6f92);},'rscqc':_0x3ab92d(0x17d)};let _0x5ae8eb=![],_0x715ae2=![],_0x410ece,_0x3fceae,_0x449adf,_0xa30b42,_0x5302df,_0x3330e3,_0x55df78,_0x2e1526,_0x7c0b1c,_0x5b6524,_0x4543f5,_0x52523e,_0x3c131b,_0x24ccb7,_0x827fd0=0x1,_0x1c537a=0xe;try{global_registry[_0x3ab92d(0x282)]=_0x39dedd[_0x3ab92d(0x176)](uuidv4),global_registry[_0x3ab92d(0x196)]=![];!fs[_0x3ab92d(0x28b)](_0x39dedd[_0x3ab92d(0x1a1)](getCredentialsPath))&&(_0x39dedd[_0x3ab92d(0x21b)](_0x39dedd[_0x3ab92d(0x159)],_0x39dedd['Zeabo'])?(console['error'](_0x39dedd['fTnfP']),await _0x39dedd['cypbA'](sendInstrumentationEvent,_0xb447a5,_0x39dedd[_0x3ab92d(0x285)],messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x20e)],null,_0xb447a5),process['exit'](0x1)):_0x441872=!![]);await _0x39dedd[_0x3ab92d(0x1d0)](sendInstrumentationEvent,_0xb447a5,_0x39dedd[_0x3ab92d(0x285)],messageTypes[_0x3ab92d(0x1f8)],null,null,_0xb447a5);const _0x989e82=JSON[_0x3ab92d(0x1f1)](fs[_0x3ab92d(0x1de)](_0x39dedd['RgvST'](getCredentialsPath)));global_registry['bstackUsername']=_0x989e82['Browserstack'][_0x3ab92d(0x19e)],global_registry[_0x3ab92d(0x240)]=_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x277)];const _0x41aeb9=WS_ENDPOINT['replace'](_0x39dedd[_0x3ab92d(0x212)],_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x19e)])[_0x3ab92d(0x1eb)](_0x39dedd[_0x3ab92d(0x1c0)],_0x989e82[_0x3ab92d(0x25e)]['password']),_0x11ab3b={};_0x11ab3b['WebSocket']=ws,_0x11ab3b[_0x3ab92d(0x1b1)]=0x36ee80,_0x52523e=new ReconnectingWebSocket(_0x41aeb9,[],_0x11ab3b),logger['debug'](_0x39dedd['ZWJvE']),webSocketUtils[_0x3ab92d(0x16e)](_0x52523e,_0xb447a5[_0x3ab92d(0x1d6)],_0xb447a5[_0x3ab92d(0x277)]);const _0x375250=_0xb447a5[_0x3ab92d(0x1fe)]||DEFAULT_GRID_NAME;if(_0xb447a5[_0x3ab92d(0x244)]||_0xb447a5['cloudProvider']||_0xb447a5[_0x3ab92d(0x22b)]){if(_0x39dedd[_0x3ab92d(0x157)](_0x39dedd[_0x3ab92d(0x1ed)],_0x39dedd[_0x3ab92d(0x27e)])){!(_0xb447a5['clusterName']&&_0xb447a5[_0x3ab92d(0x28e)]&&_0xb447a5[_0x3ab92d(0x22b)])&&(_0x39dedd['MPazf'](_0x39dedd['RJqUV'],_0x39dedd[_0x3ab92d(0x250)])?(_0x3e8331[_0x3ab92d(0x22b)]=_0x3cc1fb,_0x263e2a['cloudProvider']=_0x2cbe40,_0x37dbaa[_0x3ab92d(0x15b)]=!![]):(_0x410ece=_0x39dedd[_0x3ab92d(0x287)],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['wXKZC'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)));![AWS,AZURE,GCP][_0x3ab92d(0x1dc)](_0xb447a5[_0x3ab92d(0x28e)][_0x3ab92d(0x1ea)]())&&(_0x39dedd[_0x3ab92d(0x22f)](_0x39dedd[_0x3ab92d(0x1ad)],_0x39dedd[_0x3ab92d(0x1ad)])?(_0x410ece=_0x39dedd[_0x3ab92d(0x14b)],await _0x39dedd[_0x3ab92d(0x24b)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd['HdXnm'],_0x39dedd[_0x3ab92d(0x15c)],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)):_0x187fbd=_0x39dedd[_0x3ab92d(0x257)]);_0xb447a5[_0x3ab92d(0x183)]&&_0x39dedd[_0x3ab92d(0x264)](_0xb447a5[_0x3ab92d(0x183)][_0x3ab92d(0x1ea)](),_0x39dedd['udQIY'])&&(_0x39dedd[_0x3ab92d(0x264)](_0x39dedd[_0x3ab92d(0x26f)],_0x39dedd[_0x3ab92d(0x26f)])?global_registry[_0x3ab92d(0x196)]=!![]:_0x4286b1=null);global_registry[_0x3ab92d(0x28e)]=_0xb447a5[_0x3ab92d(0x28e)],global_registry['clusterRegion']=_0xb447a5[_0x3ab92d(0x22b)],global_registry[_0x3ab92d(0x244)]=_0xb447a5[_0x3ab92d(0x244)];const _0x145ec0=await _0x39dedd['cypbA'](getCloudProviderObject,_0xb447a5[_0x3ab92d(0x28e)],_0xb447a5[_0x3ab92d(0x244)],_0x375250,_0x52523e,webSocketUtils,_0xb447a5),_0x2feede=await _0x145ec0['isClusterPresent']();!_0x2feede?_0x39dedd[_0x3ab92d(0x266)](_0x39dedd[_0x3ab92d(0x1f5)],_0x39dedd[_0x3ab92d(0x1f5)])?(logger[_0x3ab92d(0x204)](_0x3ab92d(0x145)+_0xb447a5['clusterName']+_0x3ab92d(0x227)),_0x5ae8eb=![],_0x715ae2=!![]):_0x4ba0c5[_0x3ab92d(0x196)]=!![]:_0x39dedd['fWqDH'](_0x39dedd['iKxKc'],_0x39dedd[_0x3ab92d(0x1a0)])?_0x29311c=_0x2bf88f[_0xb8b776['gridProfile']]:_0x5ae8eb=!![],_0x449adf=_0xb447a5[_0x3ab92d(0x244)],_0x3fceae=_0xb447a5['cloudProvider'][_0x3ab92d(0x1ea)](),_0xa30b42=_0xb447a5[_0x3ab92d(0x22b)];}else _0x1672f0[_0x3ab92d(0x204)](_0x3ab92d(0x14a)+_0x491f89+'\x20');}else{if(_0xb447a5[_0x3ab92d(0x171)]){if(_0x39dedd['BcFQK'](_0x39dedd[_0x3ab92d(0x261)],_0x39dedd[_0x3ab92d(0x20a)]))global_registry[_0x3ab92d(0x171)]=_0xb447a5['gridProfile'];else{const _0x5f7797={};_0x5f7797[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x1b4)],_0x5f7797[_0x3ab92d(0x22c)]=_0x39dedd['XshOt'];const _0x11ab65={};_0x11ab65[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x224)],_0x11ab65[_0x3ab92d(0x22c)]=_0x39dedd[_0x3ab92d(0x214)];const _0x296f86={};_0x296f86[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x26e)],_0x296f86['type']=_0x39dedd[_0x3ab92d(0x214)];const _0x611203={};_0x611203['description']=_0x39dedd[_0x3ab92d(0x192)],_0x611203[_0x3ab92d(0x22c)]=_0x39dedd['XshOt'];const _0x214f44={};_0x214f44[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x1a2)],_0x214f44['type']=_0x39dedd[_0x3ab92d(0x214)];const _0x1f839d={};_0x1f839d[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x252)],_0x1f839d[_0x3ab92d(0x22c)]=_0x39dedd[_0x3ab92d(0x214)];const _0x2363a7={};_0x2363a7[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x191)],_0x2363a7[_0x3ab92d(0x22c)]=_0x39dedd[_0x3ab92d(0x208)],_0x2363a7[_0x3ab92d(0x22e)]=![];const _0x292ad3={};return _0x292ad3[_0x3ab92d(0x14f)]=_0x5f7797,_0x292ad3[_0x3ab92d(0x1a6)]=_0x11ab65,_0x292ad3[_0x3ab92d(0x22d)]=_0x296f86,_0x292ad3['cloud-provider']=_0x611203,_0x292ad3['region']=_0x214f44,_0x292ad3['private-grid']=_0x1f839d,_0x292ad3[_0x3ab92d(0x228)]=_0x2363a7,_0x4b4ff4['usage'](_0x17dcf1['create'])[_0x3ab92d(0x23a)](_0x595898)['options'](_0x292ad3)[_0x3ab92d(0x170)](_0x39dedd[_0x3ab92d(0x1b5)])[_0x3ab92d(0x237)];}}}global_registry[_0x3ab92d(0x1fe)]=_0xb447a5[_0x3ab92d(0x1fe)];const _0x35b590={'method':_0x39dedd['mncIC'],'headers':_0x39dedd[_0x3ab92d(0x1a8)](getAuthHeader,_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x19e)],_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x277)]),'throwHttpErrors':![]},_0x5477e9={};_0x5477e9[_0x3ab92d(0x1fe)]=_0x375250;const _0x4acaf1=_0x5477e9;if(_0x715ae2){if(_0x39dedd[_0x3ab92d(0x230)](_0x39dedd[_0x3ab92d(0x158)],_0x39dedd[_0x3ab92d(0x158)])){const _0x503e56=_0x39dedd[_0x3ab92d(0x195)][_0x3ab92d(0x1d5)]('|');let _0x48f667=0x0;while(!![]){switch(_0x503e56[_0x48f667++]){case'0':const _0x345564={};_0x345564['type']=_0x303eb9[_0x3ab92d(0x248)],_0x345564[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x284)],_0xf139e1[_0x3ab92d(0x215)](_0x31f4dd,_0x345564);continue;case'1':_0x2c8bb6[_0x3ab92d(0x204)](_0x4c0176);continue;case'2':_0x9207ea[_0x3ab92d(0x244)]=_0x8a365f;continue;case'3':const _0x23bbf5={};_0x23bbf5[_0x3ab92d(0x22c)]=_0x3012c1[_0x3ab92d(0x1e8)],_0x23bbf5[_0x3ab92d(0x1b3)]=_0x1940da,_0x57c92d['sendEventToBackend'](_0x26bb12,_0x23bbf5);continue;case'4':_0xb2bdd7[_0x3ab92d(0x1e2)]=_0x106360[_0x3ab92d(0x1e2)];continue;case'5':_0x5d5dce[_0x3ab92d(0x28e)]=_0x1369f2;continue;case'6':_0x42c4e[_0x3ab92d(0x210)]=_0x59e684['hubVersion'];continue;case'7':_0x14cccf=_0x3ab92d(0x222)+_0x1e23a1+'\x20in\x20existing\x20cluster\x20\x27'+_0x19b0da+'\x27';continue;case'8':_0x16141d['clusterRegion']=_0x2636f7;continue;}break;}}else _0x4acaf1['region']=_0xa30b42,_0x4acaf1[_0x3ab92d(0x28e)]=_0x3fceae,_0x4acaf1[_0x3ab92d(0x15b)]=!![];}const _0x359a72='https://'+AG_API_URL+_0x3ab92d(0x18f),_0x1e5148={'searchParams':_0x4acaf1,'throwHttpErrors':![],..._0x35b590},_0xf6da9f=_0x1e5148,_0x3c81fb=await _0x39dedd[_0x3ab92d(0x1a8)](got,_0x359a72,_0xf6da9f);(_0x39dedd[_0x3ab92d(0x1d4)](_0x3c81fb,null)||_0x39dedd[_0x3ab92d(0x22f)](_0x3c81fb,undefined))&&(_0x39dedd['qenoZ'](_0x39dedd['wBDxS'],_0x39dedd['mWgEL'])?(_0x49878d=_0x26bfc0[_0x3ab92d(0x1e9)],_0x59a2f4=_0x39dedd[_0x3ab92d(0x236)]):(_0x410ece=_0x39dedd[_0x3ab92d(0x1c2)],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes['ERROR'],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['haEMs'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)));_0x39dedd[_0x3ab92d(0x172)](_0x3c81fb[_0x3ab92d(0x149)],0x191)&&(_0x39dedd[_0x3ab92d(0x230)](_0x39dedd[_0x3ab92d(0x254)],_0x39dedd[_0x3ab92d(0x254)])?_0x4a55d0=null:(_0x410ece=_0x39dedd[_0x3ab92d(0x267)],await _0x39dedd[_0x3ab92d(0x163)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd['HdXnm'],_0x39dedd['BWJbI'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process['exit'](0x1)));if(_0x39dedd[_0x3ab92d(0x21b)](_0x3c81fb[_0x3ab92d(0x149)],0xc8)){if(_0x39dedd[_0x3ab92d(0x21b)](_0x39dedd[_0x3ab92d(0x186)],_0x39dedd[_0x3ab92d(0x186)])){const _0x321a77={};_0x321a77[_0x3ab92d(0x22c)]=_0x8f1620[_0x3ab92d(0x1e8)],_0x321a77[_0x3ab92d(0x1b3)]=_0x3ab92d(0x288)+_0x59f09b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x58bce4[_0x3ab92d(0x215)](_0x59deae,_0x321a77,_0x39dedd[_0x3ab92d(0x150)]),_0x2821de[_0x3ab92d(0x204)](_0x3ab92d(0x288)+_0x35eb1d+_0x3ab92d(0x1ce)),_0x85c0b7=!![];if(_0x39dedd[_0x3ab92d(0x22f)](_0x50533e,!![]))throw new _0x477515(_0x3ab92d(0x288)+_0x1ff4ae+_0x3ab92d(0x226));}else _0x410ece=_0x3ab92d(0x1df)+JSON[_0x3ab92d(0x25b)](_0x3c81fb[_0x3ab92d(0x25f)]),await _0x39dedd[_0x3ab92d(0x163)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x24f)],_0x39dedd[_0x3ab92d(0x154)]),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1);}const _0x924db4=JSON[_0x3ab92d(0x1f1)](_0x3c81fb['body']),_0x19bb50={};_0x19bb50[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x248)],_0x19bb50[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x284)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x19bb50);const _0x5bdece={};_0x5bdece['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0x5bdece[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x217)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x5bdece);_0x924db4[_0x3ab92d(0x173)]&&(_0x39dedd['boQEa'](_0x39dedd[_0x3ab92d(0x255)],_0x39dedd[_0x3ab92d(0x255)])?_0x40d93a[_0x3ab92d(0x1e7)]():(_0x410ece=_0x3ab92d(0x1d2)+_0x375250+_0x3ab92d(0x1af),await _0x39dedd[_0x3ab92d(0x279)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x21f)],_0x39dedd[_0x3ab92d(0x154)]),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1)));const _0x22134e=_0x924db4['gridProfiles'];let _0x4c5511=_0x22134e[_0x924db4[_0x3ab92d(0x23e)]];if(_0xb447a5['gridProfile']){if(_0x39dedd[_0x3ab92d(0x172)](_0x39dedd[_0x3ab92d(0x162)],_0x39dedd[_0x3ab92d(0x162)]))_0x4c5511=_0x22134e[_0xb447a5[_0x3ab92d(0x171)]];else{const _0x3fb0f1=_0x39dedd['rrpTl'][_0x3ab92d(0x1d5)]('|');let _0x4b0466=0x0;while(!![]){switch(_0x3fb0f1[_0x4b0466++]){case'0':_0x130b6b=_0x3ab92d(0x23b)+_0x2fb26f;continue;case'1':_0x2bc683=_0x13821d[_0x3ab92d(0x26c)];continue;case'2':_0x46ca9e=null;continue;case'3':_0xd00fe3=_0x354181['minNodes'];continue;case'4':_0x1bb51a=_0x36f88a[_0x3ab92d(0x1e2)];continue;case'5':_0x920b50=_0x47154b[_0x3ab92d(0x21c)];continue;case'6':_0x1cbedd=_0x28756e[_0x3ab92d(0x210)];continue;case'7':_0x1e1219=null;continue;case'8':_0x39dedd[_0x3ab92d(0x220)](_0x9c8b15[_0x3ab92d(0x183)],_0x29099e)&&_0x11fc8f[_0x3ab92d(0x183)]&&(_0x52db01['isPrivateGrid']=!![]);continue;case'9':_0x3885ff=_0x38438a[_0x3ab92d(0x233)];continue;case'10':_0x39dedd['MLmXU'](_0x413dcf,_0x52b4bd,_0x544ca6,_0x32bb9e,_0x16b3a7,_0x4ec78e,_0x49b6df,_0x3647a7,_0x58937e,_0x20b76a,_0x1fa634,_0x496af2);continue;case'11':_0x1902a0=_0x183adf[_0x3ab92d(0x25d)];continue;case'12':_0x4cb023=null;continue;case'13':_0x2997f0[_0x3ab92d(0x204)](_0x1886c0);continue;case'14':const _0x5cfa12={};_0x5cfa12[_0x3ab92d(0x22c)]=_0x1f8894[_0x3ab92d(0x1e8)],_0x5cfa12[_0x3ab92d(0x1b3)]=_0x499261,_0x4c788b[_0x3ab92d(0x215)](_0x578aee,_0x5cfa12);continue;}break;}}}if(_0x39dedd[_0x3ab92d(0x172)](_0x5ae8eb,![])&&_0x39dedd[_0x3ab92d(0x1d4)](_0x715ae2,![])){if(_0x39dedd[_0x3ab92d(0x157)](_0x39dedd[_0x3ab92d(0x19f)],_0x39dedd[_0x3ab92d(0x19f)]))_0x26e4ea['isPrivateGrid']=!![];else{_0x39dedd[_0x3ab92d(0x1d4)](_0x4c5511,undefined)&&(_0x39dedd['fWqDH'](_0x39dedd[_0x3ab92d(0x168)],_0x39dedd[_0x3ab92d(0x168)])?_0x40a3f2[_0x3ab92d(0x164)](_0x3ab92d(0x239)+_0xff4bbc+'\x20\x0a'+_0x3b3bdd[_0x3ab92d(0x25b)](_0x4343b2[_0x3ab92d(0x23d)])):(_0x410ece=_0x39dedd['iWNiE'],await _0x39dedd['Tqkup'](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['mIkNv'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)));global_registry[_0x3ab92d(0x276)]=_0x4c5511['id'],_0x410ece=_0x3ab92d(0x1b0)+_0x375250+_0x3ab92d(0x229)+_0x4c5511['name']+_0x3ab92d(0x251),logger[_0x3ab92d(0x204)](_0x410ece);const _0xf43886={};_0xf43886['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0xf43886[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0xf43886),_0x3fceae=_0x4c5511[_0x3ab92d(0x28e)],_0x449adf=_0x4c5511[_0x3ab92d(0x244)],_0xa30b42=_0x4c5511[_0x3ab92d(0x22b)],_0x5302df=_0x4c5511[_0x3ab92d(0x233)],_0x3330e3=_0x4c5511[_0x3ab92d(0x25d)],_0x55df78=_0x4c5511[_0x3ab92d(0x18d)],_0x2e1526=_0x4c5511[_0x3ab92d(0x1b2)],_0x7c0b1c=_0x4c5511['subnets'],_0x5b6524=_0x4c5511[_0x3ab92d(0x21c)],_0x827fd0=_0x4c5511[_0x3ab92d(0x1cf)],_0x1c537a=_0x4c5511[_0x3ab92d(0x26c)],_0x3c131b=_0x924db4['hubVersion'],_0x24ccb7=_0x924db4[_0x3ab92d(0x1e2)];if(_0x55df78&&_0x39dedd['tqdys'](_0x55df78[_0x3ab92d(0x1bd)],0x0)){if(_0x39dedd[_0x3ab92d(0x20c)](_0x39dedd[_0x3ab92d(0x1d9)],_0x39dedd[_0x3ab92d(0x1f0)]))throw new _0x343814('Cluster\x20'+_0x1197e7+_0x3ab92d(0x226));else _0x55df78=null;}_0x7c0b1c&&_0x39dedd[_0x3ab92d(0x1f9)](_0x7c0b1c[_0x3ab92d(0x1bd)],0x0)&&(_0x39dedd[_0x3ab92d(0x20c)](_0x39dedd['NxOuM'],_0x39dedd[_0x3ab92d(0x1db)])?_0x7c0b1c=null:_0x21e0d1[_0x3ab92d(0x171)]=_0x251b2c[_0x3ab92d(0x171)]),_0x39dedd[_0x3ab92d(0x220)](_0x4c5511[_0x3ab92d(0x183)],undefined)&&_0x4c5511['privateGrid']&&(_0x39dedd[_0x3ab92d(0x231)](_0x39dedd[_0x3ab92d(0x188)],_0x39dedd['tpfJF'])?(_0x37db92[_0x3ab92d(0x204)]('Cluster:\x20'+_0x41e7f5[_0x3ab92d(0x244)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4bfd47=![],_0x1adb6d=!![]):global_registry[_0x3ab92d(0x196)]=!![]),_0x39dedd[_0x3ab92d(0x24a)](updateGlobalRegistryWithConfig,_0x3fceae,_0x449adf,_0xa30b42,_0x5302df,_0x3330e3,_0x5b6524,_0x4c5511,_0x3c131b,_0x24ccb7,_0x827fd0,_0x1c537a);}}else{if(_0x39dedd[_0x3ab92d(0x270)](_0x715ae2,!![])){if(_0x39dedd[_0x3ab92d(0x157)](_0x39dedd[_0x3ab92d(0x15d)],_0x39dedd[_0x3ab92d(0x1f6)])){_0x410ece=_0x3ab92d(0x23b)+_0x375250,logger[_0x3ab92d(0x204)](_0x410ece);const _0xcc8c2c={};_0xcc8c2c[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0xcc8c2c[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0xcc8c2c),_0x5302df=_0x4c5511[_0x3ab92d(0x233)],_0x3330e3=_0x4c5511[_0x3ab92d(0x25d)],_0x55df78=null,_0x2e1526=null,_0x7c0b1c=null,_0x5b6524=_0x4c5511['s3bucket'],_0x827fd0=_0x4c5511['minNodes'],_0x1c537a=_0x4c5511[_0x3ab92d(0x26c)],_0x3c131b=_0x924db4[_0x3ab92d(0x210)],_0x24ccb7=_0x924db4['browserVersion'],_0x39dedd[_0x3ab92d(0x21b)](_0x4c5511[_0x3ab92d(0x183)],undefined)&&_0x4c5511['privateGrid']&&(_0x39dedd[_0x3ab92d(0x231)](_0x39dedd['VXhWt'],_0x39dedd['hVHZy'])?global_registry[_0x3ab92d(0x196)]=!![]:_0x2daf1f[_0x3ab92d(0x196)]=!![]),_0x39dedd[_0x3ab92d(0x247)](updateGlobalRegistryWithConfig,_0x3fceae,_0x449adf,_0xa30b42,_0x5302df,_0x3330e3,_0x5b6524,_0x4c5511,_0x3c131b,_0x24ccb7,_0x827fd0,_0x1c537a);}else{const _0x2c6c4e={};_0x2c6c4e[_0x3ab92d(0x22c)]=_0x13f3f0[_0x3ab92d(0x1e8)],_0x2c6c4e[_0x3ab92d(0x1b3)]=_0x44dac3,_0x503230['sendEventToBackend'](_0x3eea2d,_0x2c6c4e,_0x39dedd[_0x3ab92d(0x154)],!![]);}}else{if(_0x39dedd['fctUV'](_0x39dedd['yuCBt'],_0x39dedd[_0x3ab92d(0x1c6)])){const _0x20f7ab=_0x39dedd[_0x3ab92d(0x260)]['split']('|');let _0x3f21b7=0x0;while(!![]){switch(_0x20f7ab[_0x3f21b7++]){case'0':global_registry[_0x3ab92d(0x1e2)]=_0x924db4[_0x3ab92d(0x1e2)];continue;case'1':global_registry['clusterName']=_0x449adf;continue;case'2':const _0x23ddf6={};_0x23ddf6[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x248)],_0x23ddf6[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x284)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x23ddf6);continue;case'3':logger[_0x3ab92d(0x204)](_0x410ece);continue;case'4':const _0x39123d={};_0x39123d['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0x39123d[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils['sendEventToBackend'](_0x52523e,_0x39123d);continue;case'5':global_registry[_0x3ab92d(0x210)]=_0x924db4[_0x3ab92d(0x210)];continue;case'6':_0x410ece=_0x3ab92d(0x222)+_0x375250+_0x3ab92d(0x1ee)+_0x449adf+'\x27';continue;case'7':global_registry[_0x3ab92d(0x1ae)]=_0xa30b42;continue;case'8':global_registry[_0x3ab92d(0x28e)]=_0x3fceae;continue;}break;}}else _0x594e6b['info']('Found\x20Subnets:\x20'+_0x49ed0e[_0x3ab92d(0x25b)](_0x3e3862)+'\x20');}}const _0x1ed526=await _0x39dedd['xQvHS'](getCloudProviderObject,_0x3fceae,_0x449adf,_0x375250,_0x52523e,webSocketUtils,_0xb447a5);_0x39dedd[_0x3ab92d(0x253)](_0x3fceae,AZURE)&&_0x1ed526[_0x3ab92d(0x1e7)]();let _0x150c02;if(_0x39dedd[_0x3ab92d(0x264)](_0x5ae8eb,![])){_0x410ece=_0x3ab92d(0x146)+_0xa30b42+').';const _0x418059={};_0x418059[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x418059[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils['sendEventToBackend'](_0x52523e,_0x418059),logger[_0x3ab92d(0x204)](_0x410ece);const _0x19d430=await _0x1ed526[_0x3ab92d(0x1c4)]();if(_0x19d430){const _0x263ddc={};_0x263ddc[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x263ddc['message']=_0x3ab92d(0x288)+_0x449adf+_0x3ab92d(0x1ce),webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x263ddc,_0x39dedd[_0x3ab92d(0x150)]),logger[_0x3ab92d(0x204)](_0x3ab92d(0x288)+_0x449adf+_0x3ab92d(0x1ce)),_0x5ae8eb=!![];if(_0x39dedd[_0x3ab92d(0x264)](_0x715ae2,!![]))throw new Error('Cluster\x20'+_0x449adf+_0x3ab92d(0x226));}else{const _0x353ccd={};_0x353ccd[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x353ccd[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x1bb)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x353ccd),logger['info'](_0x39dedd['HLFNO']);const _0x22b4f1=_0x39dedd[_0x3ab92d(0x14e)](_0x55df78,null)&&_0x39dedd[_0x3ab92d(0x1cc)](_0x55df78,undefined),_0x547a0d=_0x39dedd[_0x3ab92d(0x14e)](_0x7c0b1c,null)&&_0x39dedd[_0x3ab92d(0x216)](_0x7c0b1c,undefined)&&_0x39dedd[_0x3ab92d(0x185)](_0x7c0b1c[_0x3ab92d(0x1bd)],0x0);if(_0x22b4f1){_0x39dedd[_0x3ab92d(0x172)](_0x547a0d,![])&&(_0x410ece=_0x39dedd[_0x3ab92d(0x1a3)],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes['ERROR'],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x178)],_0x39dedd[_0x3ab92d(0x154)]),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));const _0x46e1ff=await _0x1ed526['isVPCPresent'](_0x55df78);_0x39dedd['WatbA'](_0x46e1ff,![])?(_0x410ece=_0x39dedd['eCFTd'],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes['ERROR'],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['hPoNa'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)):logger[_0x3ab92d(0x204)](_0x3ab92d(0x14a)+_0x55df78+'\x20');const _0x2d976a=await _0x1ed526[_0x3ab92d(0x274)](_0x7c0b1c,_0x55df78);_0x39dedd[_0x3ab92d(0x24d)](_0x2d976a[0x0],![])?(_0x410ece=_0x3ab92d(0x193)+JSON[_0x3ab92d(0x25b)](_0x2d976a[0x1])+_0x3ab92d(0x16d)+_0x55df78+_0x3ab92d(0x1fa),await _0x39dedd[_0x3ab92d(0x19d)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['OKzTm'],_0x39dedd['wFbmF']),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)):logger[_0x3ab92d(0x204)]('Found\x20Subnets:\x20'+JSON[_0x3ab92d(0x25b)](_0x7c0b1c)+'\x20'),await _0x1ed526[_0x3ab92d(0x223)](_0x55df78,_0x7c0b1c);}else{const _0x352f9b=_0x39dedd[_0x3ab92d(0x17a)]['split']('|');let _0x2cff91=0x0;while(!![]){switch(_0x352f9b[_0x2cff91++]){case'0':const _0x270d7e={};_0x270d7e['type']=WS_EVENTS['LOG'],_0x270d7e[_0x3ab92d(0x1b3)]=_0x39dedd['NBKit'],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x270d7e);continue;case'1':await _0x1ed526['setupNewCluster'](_0x55df78,_0x7c0b1c);continue;case'2':const _0x50c5a8={};_0x50c5a8[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x50c5a8[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x265)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x50c5a8);continue;case'3':logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x1ec)]);continue;case'4':logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x265)]);continue;}break;}}}}_0x5ae8eb&&_0x39dedd[_0x3ab92d(0x20c)](_0x3fceae,AZURE)&&(await _0x1ed526[_0x3ab92d(0x1a5)](),await _0x1ed526[_0x3ab92d(0x1b8)]());const [_0x4a945f,_0xe3cf99,_0x25e026,_0x2a5d9a,_0x59025e,_0x236b0b]=await _0x39dedd[_0x3ab92d(0x15a)](createK8sClient,_0x1ed526,_0xb447a5[_0x3ab92d(0x26d)]);_0x39dedd[_0x3ab92d(0x264)](_0x5ae8eb,![])&&_0x39dedd[_0x3ab92d(0x14d)](_0x3fceae,AWS)&&(global_registry[_0x3ab92d(0x1aa)]=!![],_0x150c02=await _0x1ed526[_0x3ab92d(0x1a4)](_0x4a945f,_0xb447a5));try{_0x4543f5=_0x39dedd[_0x3ab92d(0x14c)](kebabCase,_0x375250),logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x291)]);const _0x37c0d3={};_0x37c0d3[_0x3ab92d(0x22c)]=WS_EVENTS['LOG'],_0x37c0d3[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x291)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x37c0d3);if(_0x39dedd[_0x3ab92d(0x230)](_0x4543f5,_0x39dedd[_0x3ab92d(0x194)])){const _0x197870={};_0x197870['createdBy']=_0x39dedd['OeHVw'],_0x197870['managedBy']=_0x39dedd[_0x3ab92d(0x1b6)];const _0x4dce87={};_0x4dce87[_0x3ab92d(0x262)]=_0x4543f5,_0x4dce87[_0x3ab92d(0x1c1)]=_0x197870;const _0x246c84={};_0x246c84[_0x3ab92d(0x1c5)]=_0x4dce87;const _0x49b4eb=_0x246c84,_0x5c689d={};_0x5c689d[_0x3ab92d(0x25f)]=_0x49b4eb,await _0x4a945f['createNamespace'](_0x5c689d),logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x21d)]);}const _0x370b92={};_0x370b92[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x370b92[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x174)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x370b92);const _0x54add8={};_0x54add8[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x54add8['message']=_0x39dedd[_0x3ab92d(0x1b9)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x54add8),logger[_0x3ab92d(0x204)](_0x39dedd['FjeEb']);let _0x2ca068={};_0x39dedd[_0x3ab92d(0x148)](_0x3fceae,AZURE)&&(_0x2ca068={'clientId':await _0x1ed526['getResourceClientId'](_0x3ab92d(0x156)+_0x449adf)});await _0x39dedd['nZwov'](addGridComponents,_0x4a945f,_0xe3cf99,_0x25e026,_0x2a5d9a,_0x4543f5,_0x449adf,_0x150c02,_0x59025e,_0x236b0b,_0x2ca068),_0x410ece=_0x39dedd[_0x3ab92d(0x1a9)],logger[_0x3ab92d(0x204)](_0x410ece);const _0x4b6e48={};_0x4b6e48[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x4b6e48[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x4b6e48),_0x410ece=_0x39dedd[_0x3ab92d(0x1ca)],logger[_0x3ab92d(0x204)](_0x410ece);const _0x2fb4ef={};_0x2fb4ef[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x2fb4ef[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x2fb4ef),await _0x39dedd[_0x3ab92d(0x1ab)](waitForDeployment,_0xe3cf99,_0x4543f5,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4cb359=await _0x39dedd[_0x3ab92d(0x15a)](getNamespaceUID,_0x4a945f,_0x4543f5),_0x564a45=global_registry[_0x3ab92d(0x196)]?_0x39dedd['ovEKU']:_0x39dedd[_0x3ab92d(0x28f)],_0x3670cd={};_0x3670cd[_0x3ab92d(0x262)]=_0x564a45,_0x3670cd['namespace']=_0x39dedd[_0x3ab92d(0x201)];const _0x4f5c57=await _0x4a945f[_0x3ab92d(0x24c)](_0x3670cd);let _0x21fd4f=_0x1ed526[_0x3ab92d(0x1f3)](_0x4f5c57)+'/'+_0x4543f5,_0x5de53c=_0x39dedd[_0x3ab92d(0x257)];try{const _0x5b0cea=_0x3ab92d(0x1c7)+AG_API_URL+_0x3ab92d(0x21a)+_0x4cb359,_0x29ec1c=await _0x39dedd['nEjRp'](got,_0x5b0cea,_0x35b590);(_0x39dedd[_0x3ab92d(0x20d)](_0x29ec1c,null)||_0x39dedd[_0x3ab92d(0x172)](_0x29ec1c,undefined))&&(_0x410ece=_0x39dedd[_0x3ab92d(0x184)],await _0x39dedd['wCsFP'](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x246)],_0x39dedd['wFbmF']),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));_0x39dedd[_0x3ab92d(0x1d4)](_0x29ec1c[_0x3ab92d(0x149)],0x191)&&(_0x410ece=_0x39dedd[_0x3ab92d(0x1bc)],await _0x39dedd['Tqkup'](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x175)],_0x39dedd['wFbmF']),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));_0x39dedd[_0x3ab92d(0x253)](_0x29ec1c[_0x3ab92d(0x149)],0xc8)&&(_0x410ece=_0x3ab92d(0x283)+JSON[_0x3ab92d(0x25b)](_0x29ec1c),await _0x39dedd[_0x3ab92d(0x24b)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x190)],_0x39dedd['wFbmF']),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));const _0x113458=JSON[_0x3ab92d(0x1f1)](_0x29ec1c[_0x3ab92d(0x25f)]);_0x113458[_0x3ab92d(0x1e9)]&&(_0x21fd4f=_0x113458[_0x3ab92d(0x1e9)],_0x5de53c=_0x39dedd[_0x3ab92d(0x236)]),global_registry[_0x3ab92d(0x196)]&&(_0x5de53c=_0x39dedd['YzdBk']);}catch(_0xc5ea99){}_0x410ece=_0x3ab92d(0x218)+_0x21fd4f+'\x20',logger[_0x3ab92d(0x204)](_0x410ece);const _0x43b303={};_0x43b303['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0x43b303['message']=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x43b303),_0x410ece=_0x3ab92d(0x27b)+_0x5de53c+_0x3ab92d(0x181)+_0x21fd4f+_0x3ab92d(0x1a7),logger[_0x3ab92d(0x204)](_0x410ece);const _0x192152={};_0x192152[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x192152[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils['sendEventToBackend'](_0x52523e,_0x192152);const _0x9218b5={};_0x9218b5[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1da)],_0x9218b5[_0x3ab92d(0x1b3)]=_0x3ab92d(0x221)+_0x21fd4f,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x9218b5),await webSocketUtils[_0x3ab92d(0x290)](0x7d0);}catch(_0x2d0ed8){logger[_0x3ab92d(0x164)](_0x3ab92d(0x26b)+_0x2d0ed8+'\x20\x0a'+JSON['stringify'](_0x2d0ed8[_0x3ab92d(0x23d)]));if(_0x39dedd[_0x3ab92d(0x213)](_0x5ae8eb,![]))try{logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x187)]),await _0x39dedd[_0x3ab92d(0x1e6)](removeGridComponents,_0x4a945f,_0xe3cf99,_0x25e026,_0x2a5d9a,_0x4543f5),await _0x1ed526[_0x3ab92d(0x18e)](_0x4a945f,global_registry[_0x3ab92d(0x1ae)]);}catch(_0x342fc1){logger[_0x3ab92d(0x164)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x342fc1+'\x20\x0a'+JSON[_0x3ab92d(0x25b)](_0x342fc1[_0x3ab92d(0x23d)]));}throw _0x2d0ed8;}}catch(_0x36eed7){const _0x25487a=_0x3ab92d(0x161)+_0x36eed7+'\x20\x0a'+JSON['stringify'](_0x36eed7['stack']);if(_0x52523e){const _0x38e838={};_0x38e838[_0x3ab92d(0x22c)]=WS_EVENTS['LOG'],_0x38e838[_0x3ab92d(0x1b3)]=_0x25487a,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x38e838,_0x39dedd[_0x3ab92d(0x154)],!![]);}await webSocketUtils[_0x3ab92d(0x290)](0x7d0);const _0x3eee6c={};_0x3eee6c[_0x3ab92d(0x164)]=_0x25487a,await _0x39dedd['cWduq'](sendInstrumentationEvent,_0xb447a5,_0x39dedd[_0x3ab92d(0x285)],messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x27f)],_0x3eee6c,_0xb447a5),logger[_0x3ab92d(0x164)](_0x25487a);}process[_0x3ab92d(0x202)](0x0);};function a9_0x14d3(){const _0x54afb3=['Cluster\x20created\x20successfully','CAOPf','clusterName','wkRBg','XYOms','NYpjz','CLI_RUN_STARTED','JboPa','esWUe','Tqkup','readNamespacedService','Gjvnq','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.','uzAJi','BHDrH','\x27\x20grid\x20profile','BgDsP','ndpMu','WaGkx','fLIfW','idKmu','YzdBk','pre-spawned-invalid-vpc','oVHOi','FZXYN','stringify','OFYAs','instanceType','Browserstack','body','fGpej','ZQfSX','name','cjrUI','qenoZ','BjVob','Rcmvr','Unlqt','OFZWL','295610pXzXey','CLI\x20run\x20started','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','maxNodes','skipTlsCertVerify','MVyea','GfqGA','YbfXu','QZDPb','grid','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','isSubnetsValid','../../utils/createk8sClient','gridProfileId','password','usage','IZPjj','3bJoWln','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','get-grid-url-null-response','560EaWECg','Hkscs','rscqc','Creating\x20namespace','pre-spawned-subnets-not-selected','requestId','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','gIFMQ','HdXnm','cloud-provider','xCSZU','Cluster\x20','Deleting\x20the\x20CloudFormation\x20Stacks','quOhW','existsSync','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','warn','cloudProvider','bQBCo','delay','UjPwI','prespawned-cluster-args-not-passed','Grid\x20profile\x20fetched\x20from\x20backend','Cluster:\x20','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','boolean','UiEQR','statusCode','Found\x20VPC:\x20','qSQHT','obzcp','WatbA','ILYfD','grid-name','iEMEG','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','private-grid','dQbvm','wFbmF','../../config/constants','turboscale-managed-identity-','TFtbY','OCXtX','opCAb','juShH','newCluster','zyUIn','imKsE','Namespace\x20created','../../cloudproviders/utils','create-grid-checks-auth-failed','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ckTcN','hfgxa','error','FqXQe','reconnecting-websocket','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Mthkv','fsXoq','JTMBb','11tnjNvF','0|13|14|9|11|12|7|2|5|3|1|6|4|8|10','\x20are\x20not\x20present\x20in\x20VPC:\x20','addListeners','../../utils/webSocketUtils','help','gridProfile','qJyRd','alreadyPresent','mybgp','itNTU','RgvST','true','oMRHc','ExCEH','xEDzT','Skip\x20insecure\x20cert\x20verification.','desc','grid-spawning-failed','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','nzTAk','667196TRqJpJ','://','<UsernamePlaceholder>','privateGrid','oFwnU','TxOpQ','LpVyz','mTVlL','tpfJF','ERROR','get-grid-url-non-200','HtYfy','Create\x20a\x20private/public\x20grid.','vpc','deleteCluster','/packages/cli/create-grid-checks','XhOOz','imomt','AKPUA','Subnets:\x20','CTaDw','SbnkV','isPrivateGrid','options','BoiCf','sucmn','init-not-called','lXKmJ','9693770wAPFzY','BPHAo','username','KBZMN','iKxKc','YCCQw','ollXu','bJlXx','setupAutoscaler','updateClusterAlreadyPresent','grid-profile','/wd/hub','rFmcI','GZlXJ','isNewAWSCluster','RuMZW','EdDxq','ZDCYh','clusterRegion','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Will\x20be\x20spawning\x20the\x20grid\x20','connectionTimeout','securityGroups','message','rZwOX','HbBJS','OeHVw','description','createOtherResources','cyZXo','132wAbaxp','HLFNO','eacCa','length','53612QOEbhq','AOIbN','kTovD','annotations','mriOj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','isClusterPresent','metadata','ddJjY','https://','../../config/logger','ElnRX','ozkVB','private-ingress-nginx-controller','TzzOL','102KFhltj','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','minNodes','cypbA','Spawning\x20Grid\x20on\x20the\x20Cluster','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','NQYAH','split','user','https','create','Apvzs','CLI_RUN_FINISHED','NxOuM','includes','pre-spawned-invalid-subnets','readFileSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','browserVersion','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','handler','50769jqvVdb','pFJCK','sendResourceDataToHST','LOG','route53','toLowerCase','replace','NBKit','JmLDI','\x20in\x20existing\x20cluster\x20\x27','hOYiR','qZiuA','parse','string','getGridHostname','ingress-nginx','Vtqem','pQWeA','2|6|3|4|8|7|1|5|0','INFO','cOpYo','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','builder','174OYplxb','4751040NJpeCl','gridName','xgRty','non-aws-azure-cluster','UhBOU','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','info','yGJoT','FTpPS','command','FKwhx','../../utils/utilityMethods','edpIo','vXlnF','ShQNQ','QxMbc','DyNvl','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hubVersion','wCsFP','fJyay','TmzWr','XshOt','sendEventToBackend','wPJak','vbMmw','Grid\x20can\x20be\x20accessed\x20at:\x20','EXmRw','/packages/cli/get-grid-url?gridIdentifier=','mqhBv','s3bucket','EMYoo','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','tlOaR','mucGo','CLI\x20run\x20finished:\x20','Spawning\x20the\x20grid\x20','setupNewCluster','jJBcM','afEfa','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','skip-tls-cert-verify','\x20using\x20\x27','create-grid-checks-invalid-profile','region','type','cluster-name','default','MPazf','boQEa','fctUV','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','concurrency','pHJkf','VYdpu','GJWZW','argv','create-grid-called','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','epilogue','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Gttmv','stack','defaultGridProfile','2428738vdOZdC','bstackAccesskey','GET'];a9_0x14d3=function(){return _0x54afb3;};return a9_0x14d3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a10_0x2b4d(){const _0x1d7da9=['257529lLeSAc','epilogue','strict','9tGHwiO','demandCommand','1988682gVfQhe','../config/constants','commandDir','recommendCommands','usage','builder','346LkNYvt','pzeym','7196090IRUCie','3681nUCxKz','5WokjIh','desc','8701nOFyBq','2516644lsaDpO','delete_commands','7bMXMPS','handler','delete','912XdmncK','IWVON','help','6378576qTPklD'];a10_0x2b4d=function(){return _0x1d7da9;};return a10_0x2b4d();}const a10_0x4e671e=a10_0x35f1;function a10_0x35f1(_0x2c8790,_0x23f549){const _0x2b4d9d=a10_0x2b4d();return a10_0x35f1=function(_0x35f16e,_0x433238){_0x35f16e=_0x35f16e-0xc0;let _0x3fb663=_0x2b4d9d[_0x35f16e];return _0x3fb663;},a10_0x35f1(_0x2c8790,_0x23f549);}(function(_0x22b012,_0x3d36a8){const _0x471f23=a10_0x35f1,_0x3a560b=_0x22b012();while(!![]){try{const _0x14a08d=-parseInt(_0x471f23(0xce))/0x1+parseInt(_0x471f23(0xd9))/0x2*(parseInt(_0x471f23(0xc1))/0x3)+parseInt(_0x471f23(0xc5))/0x4*(-parseInt(_0x471f23(0xc2))/0x5)+parseInt(_0x471f23(0xd3))/0x6*(-parseInt(_0x471f23(0xc7))/0x7)+parseInt(_0x471f23(0xcd))/0x8+parseInt(_0x471f23(0xd1))/0x9*(parseInt(_0x471f23(0xc0))/0xa)+parseInt(_0x471f23(0xc4))/0xb*(-parseInt(_0x471f23(0xca))/0xc);if(_0x14a08d===_0x3d36a8)break;else _0x3a560b['push'](_0x3a560b['shift']());}catch(_0x2e03b7){_0x3a560b['push'](_0x3a560b['shift']());}}}(a10_0x2b4d,0x6e185));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x4e671e(0xd4));exports['command']=a10_0x4e671e(0xc9),exports[a10_0x4e671e(0xc3)]='List\x20Grid\x20resources.',exports[a10_0x4e671e(0xd8)]=function(_0x383cfa){const _0x4d1e42=a10_0x4e671e,_0x3f7854={};_0x3f7854[_0x4d1e42(0xcb)]=_0x4d1e42(0xc6),_0x3f7854['pzeym']=_0x4d1e42(0xcc);const _0x2ebe00=_0x3f7854;return _0x383cfa[_0x4d1e42(0xd7)](HELP_HEADER_MESSAGE['delete'])[_0x4d1e42(0xcf)](HELP_FOOTER_MESSAGE)[_0x4d1e42(0xd5)](_0x2ebe00[_0x4d1e42(0xcb)])[_0x4d1e42(0xd2)]()[_0x4d1e42(0xd6)]()[_0x4d1e42(0xd0)]()['help'](_0x2ebe00[_0x4d1e42(0xda)]);},exports[a10_0x4e671e(0xc8)]=function(_0x54e2e1){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x2d7847=a11_0x3d2f;(function(_0xe1a39c,_0x269e42){const _0x243e16=a11_0x3d2f,_0x462d06=_0xe1a39c();while(!![]){try{const _0x339ea8=parseInt(_0x243e16(0xf5))/0x1+-parseInt(_0x243e16(0xb9))/0x2+-parseInt(_0x243e16(0xcf))/0x3*(-parseInt(_0x243e16(0x10d))/0x4)+parseInt(_0x243e16(0x11c))/0x5+parseInt(_0x243e16(0xb5))/0x6*(-parseInt(_0x243e16(0xc8))/0x7)+-parseInt(_0x243e16(0xa6))/0x8*(-parseInt(_0x243e16(0xd2))/0x9)+parseInt(_0x243e16(0xb1))/0xa*(parseInt(_0x243e16(0xfd))/0xb);if(_0x339ea8===_0x269e42)break;else _0x462d06['push'](_0x462d06['shift']());}catch(_0x1a6796){_0x462d06['push'](_0x462d06['shift']());}}}(a11_0x2356,0xc87a1));function a11_0x3d2f(_0x1680fa,_0x4461f6){const _0x23569d=a11_0x2356();return a11_0x3d2f=function(_0x3d2ff8,_0x185772){_0x3d2ff8=_0x3d2ff8-0x87;let _0x42ad84=_0x23569d[_0x3d2ff8];return _0x42ad84;},a11_0x3d2f(_0x1680fa,_0x4461f6);}const fs=require('fs'),got=require(a11_0x2d7847(0x8b)),{v4:uuidv4}=require(a11_0x2d7847(0x9b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x2d7847(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2d7847(0xa8)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x2d7847(0xef)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x2d7847(0x8f)),{createK8sClient}=require(a11_0x2d7847(0x106)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2d7847(0x8d)),webSocketUtils=require(a11_0x2d7847(0xb4));exports[a11_0x2d7847(0xb8)]='grid',exports[a11_0x2d7847(0x107)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x303060){const _0x1f0c2d=a11_0x2d7847,_0x30f42f={};_0x30f42f[_0x1f0c2d(0xc6)]=_0x1f0c2d(0xff),_0x30f42f['eTdwW']=_0x1f0c2d(0xed),_0x30f42f[_0x1f0c2d(0xd8)]=_0x1f0c2d(0xea),_0x30f42f[_0x1f0c2d(0xc0)]=_0x1f0c2d(0x10b),_0x30f42f[_0x1f0c2d(0xcc)]=_0x1f0c2d(0x96);const _0x2bf72d=_0x30f42f,_0x5284ff={};_0x5284ff[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xc6)],_0x5284ff[_0x1f0c2d(0xa4)]=_0x2bf72d[_0x1f0c2d(0x113)];const _0x6b0872={};_0x6b0872[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xd8)],_0x6b0872[_0x1f0c2d(0xa4)]=_0x2bf72d['IQpMJ'],_0x6b0872[_0x1f0c2d(0xf8)]=![];const _0x374c4a={};return _0x374c4a[_0x1f0c2d(0xf9)]=_0x5284ff,_0x374c4a[_0x1f0c2d(0xbc)]=_0x6b0872,_0x303060[_0x1f0c2d(0xf0)](HELP_HEADER_MESSAGE[_0x1f0c2d(0xfc)])[_0x1f0c2d(0xfb)](HELP_FOOTER_MESSAGE)[_0x1f0c2d(0xb7)](_0x374c4a)[_0x1f0c2d(0x96)](_0x2bf72d['soRul'])[_0x1f0c2d(0xe5)];},exports[a11_0x2d7847(0xb2)]=async function(_0x11d0d2){const _0x5adc26=a11_0x2d7847,_0x81b355={'XMzie':'Pass\x20the\x20ID\x20of\x20the\x20Grid','lJJKN':_0x5adc26(0xed),'hmHbl':_0x5adc26(0xea),'htvHr':_0x5adc26(0x10b),'aGVis':_0x5adc26(0x96),'hYTQg':_0x5adc26(0x9a),'aiCDI':function(_0xfdb477,_0x18f141){return _0xfdb477!==_0x18f141;},'zrwmE':_0x5adc26(0x119),'mUlpu':_0x5adc26(0x98),'qFtYS':_0x5adc26(0xf1),'GLtEr':function(_0x24a618,_0x4f34fe){return _0x24a618!==_0x4f34fe;},'oCJYC':_0x5adc26(0xdc),'npkof':_0x5adc26(0xaa),'KEocd':_0x5adc26(0xfe),'Tiaam':function(_0x16089b){return _0x16089b();},'XheEZ':function(_0x4f51b5){return _0x4f51b5();},'TQgIl':function(_0x331d7e,_0x21bdd2){return _0x331d7e===_0x21bdd2;},'nuggI':_0x5adc26(0xe7),'FNsSS':_0x5adc26(0x121),'OPawG':function(_0x2c67af,_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add){return _0x2c67af(_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add);},'uFytz':'delete-grid-called','rVPkv':'init-not-called','AsbOv':_0x5adc26(0x125),'LLpAD':function(_0x33d5ff){return _0x33d5ff();},'UscVG':function(_0x30d8fc,_0x1d7555,_0x45e434,_0x373606){return _0x30d8fc(_0x1d7555,_0x45e434,_0x373606);},'xRWdm':'Browserstack','ozCQX':function(_0x7cd8f9,_0x5433da){return _0x7cd8f9!==_0x5433da;},'NDvFU':'VvDNK','WOQpK':_0x5adc26(0xba),'mKaHv':function(_0x28d86a,_0x334011){return _0x28d86a(_0x334011);},'iKgPf':function(_0x502da9,_0x422f09){return _0x502da9===_0x422f09;},'KWyxp':'JflJo','fxltw':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','TSLIM':_0x5adc26(0x10f),'UTLSH':function(_0xb94c1f,_0x572e4c){return _0xb94c1f===_0x572e4c;},'CjrNn':_0x5adc26(0x8c),'koWba':_0x5adc26(0x101),'PmVFo':_0x5adc26(0x112),'VcgYS':_0x5adc26(0xda),'notyg':function(_0xcfb2a5,_0x580454,_0x444e95){return _0xcfb2a5(_0x580454,_0x444e95);},'qIfOG':function(_0x3e135b,_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1){return _0x3e135b(_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1);},'sAWaQ':_0x5adc26(0x11b),'vTgYp':function(_0x81b01c,_0x5f34aa){return _0x81b01c!==_0x5f34aa;},'MGUOO':_0x5adc26(0xd5),'XpEQq':_0x5adc26(0x11e),'ywAUk':function(_0x50922f,_0x220f6d){return _0x50922f!==_0x220f6d;},'nIqRh':function(_0x4cf0fd,_0x4acae7){return _0x4cf0fd!==_0x4acae7;},'TdcbF':_0x5adc26(0xeb),'BGniu':function(_0x3ca293,_0x40cb1d){return _0x3ca293===_0x40cb1d;},'BMmIl':_0x5adc26(0xf3),'MmSvB':_0x5adc26(0xd1),'QDrat':function(_0x4fd584,_0x38d00f){return _0x4fd584===_0x38d00f;},'HSees':function(_0x44908c,_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f){return _0x44908c(_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f);},'bzUTQ':_0x5adc26(0x90),'jrHyj':function(_0x35a05f,_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5){return _0x35a05f(_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5);},'zETIA':function(_0x41691d,_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00){return _0x41691d(_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00);},'WeCuQ':_0x5adc26(0x8a)};try{global_registry[_0x5adc26(0xd4)]=_0x81b355[_0x5adc26(0xa3)](uuidv4);if(!fs[_0x5adc26(0xe8)](_0x81b355[_0x5adc26(0x92)](getCredentialsPath))){if(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0xc7)],_0x81b355[_0x5adc26(0xc7)]))console[_0x5adc26(0x95)](_0x81b355['FNsSS']),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes[_0x5adc26(0xf2)],_0x81b355['rVPkv'],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1);else{const _0x4b5f09={};_0x4b5f09['description']=_0x81b355[_0x5adc26(0xa2)],_0x4b5f09[_0x5adc26(0xa4)]=_0x81b355[_0x5adc26(0xca)];const _0x2c5feb={};_0x2c5feb[_0x5adc26(0xd9)]=_0x81b355['hmHbl'],_0x2c5feb['type']=_0x81b355[_0x5adc26(0x124)],_0x2c5feb[_0x5adc26(0xf8)]=![];const _0x120599={};return _0x120599[_0x5adc26(0xf9)]=_0x4b5f09,_0x120599[_0x5adc26(0xbc)]=_0x2c5feb,_0x236f24[_0x5adc26(0xf0)](_0x58bf81['delete'])[_0x5adc26(0xfb)](_0x3715f1)[_0x5adc26(0xb7)](_0x120599)[_0x5adc26(0x96)](_0x81b355[_0x5adc26(0x11d)])[_0x5adc26(0xe5)];}}_0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf6)],null,null,_0x11d0d2);!_0x11d0d2[_0x5adc26(0xdd)]&&(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0x105)],_0x81b355[_0x5adc26(0x105)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),process[_0x5adc26(0xad)](0x1)):_0x24d9d4[_0x5adc26(0xd0)](_0x81b355[_0x5adc26(0xfa)]));const _0x5ba8b4=JSON['parse'](fs[_0x5adc26(0x10a)](_0x81b355[_0x5adc26(0x10c)](getCredentialsPath))),[_0x1dc571,_0x271b41]=await _0x81b355['UscVG'](getGridDetails,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4['Browserstack'][_0x5adc26(0xb6)],_0x11d0d2[_0x5adc26(0xdd)]);if(_0x271b41){const _0x28630d=_0x271b41[_0x5adc26(0x100)];let _0xd1894b=_0x5adc26(0x97)+_0x28630d[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x28630d['id']+_0x5adc26(0x102);_0x271b41[_0x5adc26(0xc5)]&&_0x81b355[_0x5adc26(0xde)](_0x271b41[_0x5adc26(0x9e)],_0x81b355[_0x5adc26(0xbf)])&&(_0x81b355['ozCQX'](_0x81b355[_0x5adc26(0x93)],_0x81b355[_0x5adc26(0xc1)])?_0xd1894b=_0x5adc26(0x97)+_0x28630d['name']+'\x22\x20and\x20ID\x20'+_0x28630d['id']+_0x5adc26(0xee)+_0x28630d[_0x5adc26(0xab)]+_0x5adc26(0xae)+_0x28630d['clusterId']+_0x5adc26(0x102):_0x5e113a[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x4a88e5[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x1ff89b=await _0x81b355[_0x5adc26(0xcd)](inputConfirmation,_0xd1894b);(_0x81b355['TQgIl'](_0x1ff89b,undefined)||_0x81b355[_0x5adc26(0x116)](_0x1ff89b,null)||!(_0x81b355[_0x5adc26(0x116)](_0x1ff89b[_0x5adc26(0xe2)](),'y')||_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')))&&(_0x81b355[_0x5adc26(0xde)](_0x81b355['KWyxp'],_0x81b355[_0x5adc26(0xc2)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xf7)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xcb)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)):_0x328051[_0x5adc26(0xad)](0x0));_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')&&(_0x81b355['UTLSH'](_0x81b355['CjrNn'],_0x81b355[_0x5adc26(0xce)])?(_0x5344d3['warn'](_0x5adc26(0x108)+_0x2371ac+_0x5adc26(0xe9)),_0x3603fc=![]):process[_0x5adc26(0xad)](0x0));const _0x3d7d29=WS_ENDPOINT[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x110)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)])[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x109)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),_0x1df103={};_0x1df103[_0x5adc26(0xa9)]=ws,_0x1df103['connectionTimeout']=0x36ee80;const _0x906625=new ReconnectingWebSocket(_0x3d7d29,[],_0x1df103);global_registry[_0x5adc26(0xd7)]=_0x28630d['region'];const _0x4e771f=_0x28630d[_0x5adc26(0xb3)],_0x5ee590=await _0x81b355[_0x5adc26(0xe0)](getCloudProviderObject,_0x4e771f,_0x28630d[_0x5adc26(0xab)],_0x28630d[_0x5adc26(0x11a)],_0x906625,webSocketUtils,_0x11d0d2),_0x303769=await _0x5ee590[_0x5adc26(0x117)]();if(_0x303769){const _0xf15f05=_0x81b355[_0x5adc26(0xcd)](kebabCase,_0x28630d['name']),[_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0x640e08,_0x30025c]=await _0x81b355[_0x5adc26(0x115)](createK8sClient,_0x5ee590,_0x11d0d2[_0x5adc26(0x123)]);let _0x45cf96=!![];const _0x37c4aa={};_0x37c4aa[_0x5adc26(0x11a)]=_0xf15f05,await _0x1cf5cc[_0x5adc26(0x104)](_0x37c4aa)['then'](_0x1101ad=>{const _0x4c80be=_0x5adc26;_0x81b355[_0x4c80be(0x87)](_0x81b355[_0x4c80be(0x111)],_0x81b355[_0x4c80be(0x118)])?logger['info'](_0x4c80be(0x108)+_0xf15f05+_0x4c80be(0xd3)):_0x5631b0[_0x4c80be(0x100)](_0x4c80be(0x108)+_0xdd6ddc+_0x4c80be(0xd3));})['catch'](_0x49e44c=>{const _0xf47bae=_0x5adc26;_0x81b355[_0xf47bae(0xac)](_0x81b355[_0xf47bae(0x8e)],_0x81b355[_0xf47bae(0xc9)])?(logger[_0xf47bae(0xd0)](_0xf47bae(0x108)+_0xf15f05+_0xf47bae(0xe9)),_0x45cf96=![]):(_0x972b97['info'](_0x81b355[_0xf47bae(0x114)]),_0x46d6ae['exit'](0x0));});if(_0x45cf96){await _0x81b355[_0x5adc26(0x99)](removeGridComponents,_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0xf15f05);if(_0x271b41[_0x5adc26(0xc5)]){const _0x1552e3=await _0x5ee590[_0x5adc26(0x122)]();_0x1552e3?_0x81b355['iKgPf'](_0x81b355[_0x5adc26(0x126)],_0x81b355[_0x5adc26(0x126)])?await _0x5ee590['deleteCluster'](_0x1cf5cc,_0x28630d[_0x5adc26(0xb0)]):_0x21ea0c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4f7f90[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x5efcc9['id']+_0x5adc26(0xee)+_0x476f77[_0x5adc26(0xab)]+'\x22\x20with\x20ID\x20'+_0x23a80e[_0x5adc26(0xbd)]+_0x5adc26(0x102):_0x81b355[_0x5adc26(0xa0)](_0x81b355['MGUOO'],_0x81b355[_0x5adc26(0xa1)])?(_0x912dab[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),_0xc2dac8[_0x5adc26(0xad)](0x1)):logger[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x28630d[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger['warn'](_0x81b355[_0x5adc26(0xfa)]);const _0x4b1900=_0x5adc26(0xd6)+AG_API_URL+'/packages/cli/grid/'+_0x11d0d2[_0x5adc26(0xdd)],_0x2b199a={'method':_0x81b355[_0x5adc26(0x9c)],'headers':_0x81b355[_0x5adc26(0x115)](getAuthHeader,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),'throwHttpErrors':![]},_0x442974=await _0x81b355['notyg'](got,_0x4b1900,_0x2b199a);_0x81b355['ywAUk'](_0x442974,null)&&_0x81b355[_0x5adc26(0xdb)](_0x442974,undefined)&&_0x81b355['TQgIl'](_0x442974[_0x5adc26(0xe3)],0xc8)&&(logger[_0x5adc26(0x100)](_0x81b355[_0x5adc26(0x114)]),process[_0x5adc26(0xad)](0x0)),logger[_0x5adc26(0x95)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x442974[_0x5adc26(0xe1)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}_0x81b355[_0x5adc26(0x94)](_0x1dc571['statusCode'],0x191)&&(logger[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0x103)]),await _0x81b355['OPawG'](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x9d)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),_0x81b355[_0x5adc26(0xdf)](_0x1dc571[_0x5adc26(0xe3)],0x190)&&(logger[_0x5adc26(0x95)](JSON[_0x5adc26(0x120)](_0x1dc571[_0x5adc26(0xe1)])[_0x5adc26(0x9f)]),await _0x81b355[_0x5adc26(0x11f)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xe6)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),logger[_0x5adc26(0x95)](_0x5adc26(0xc4)+JSON['stringify'](_0x1dc571)),await _0x81b355[_0x5adc26(0xbe)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}catch(_0x421b90){logger[_0x5adc26(0x95)](_0x5adc26(0xa5)+_0x421b90[_0x5adc26(0x91)]),await _0x81b355['zETIA'](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xbb)],_0x421b90,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}};function a11_0x2356(){const _0x459165=['4018870RmfeAK','aGVis','DELETE','HSees','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isBrowserstackCluster','skipTlsCertVerify','htvHr','IsAGe','sAWaQ','aiCDI','uFytz','TdcbF','unknown-error','got','LpSqr','../../utils/utilityMethods','oCJYC','../../utils/userInput','invalid-grid-id','stack','XheEZ','NDvFU','BGniu','error','help','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','BZgTn','qIfOG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','uuid','XpEQq','MmSvB','clusterSpawnedVia','message','vTgYp','MGUOO','XMzie','Tiaam','type','Failed\x20to\x20delete\x20resources!\x20Error:\x20','74744ETfFDB','replace','../../config/constants','WebSocket','KHJeu','clusterName','GLtEr','exit','\x22\x20with\x20ID\x20','KEocd','region','1270wXEVmQ','handler','cloudProvider','../../utils/webSocketUtils','6zfaJVh','password','options','command','2676138liPXvj','iuKGR','WeCuQ','skip-tls-cert-verify','clusterId','jrHyj','xRWdm','IQpMJ','WOQpK','KWyxp','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','onlyGridInCluster','DEeCi','nuggI','4955321cledKv','npkof','lJJKN','TSLIM','soRul','mKaHv','koWba','1611UJdSik','warn','unauthorised','504nqgofF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','requestId','EgQsl','https://','clusterRegion','LtyVT','description','<PasswordPlaceholder>','nIqRh','fvAjZ','gridId','TQgIl','QDrat','OPawG','body','toLowerCase','statusCode','\x22\x20and\x20ID\x20','argv','bzUTQ','aNeQM','existsSync','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Skip\x20insecure\x20cert\x20verification.','server-error','reconnecting-websocket','string','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../cloudproviders/utils','usage','Successfully\x20deleted\x20the\x20grid','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','545677IXfDtT','INFO','fxltw','default','grid-id','hYTQg','epilogue','delete','41437pgVHnU','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Pass\x20the\x20ID\x20of\x20the\x20Grid','info','HyizB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','BMmIl','readNamespace','AsbOv','../../utils/createk8sClient','desc','Namespace:\x20','VcgYS','readFileSync','boolean','LLpAD','3844rEMJJu','Cluster:\x20','invalid-input','PmVFo','zrwmE','<UsernamePlaceholder>','eTdwW','qFtYS','notyg','iKgPf','isClusterPresent','mUlpu','ofPvJ','name','eUxgK'];a11_0x2356=function(){return _0x459165;};return a11_0x2356();}
|
|
1
|
+
function a11_0x31d8(){const _0x2269ed=['6UkPEvM','uuid','../../utils/gridComponents','boolean','delete-grid-called','LFccb','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','jbmoq','\x22\x20and\x20ID\x20','PCivh','Delete\x20an\x20Automation\x20grid.','vFNek','https://','PxZEl','YxkvK','TxGIE','UdMhq','clusterId','ypMEO','hQmTn','delete','epilogue','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','server-error','sIftU','usage','gridId','Xboei','tQABn','2440140WWllAf','clusterRegion','feiFl','317600MSpZpB','mGlZv','command','got','isBrowserstackCluster','fPhyr','connectionTimeout','fiipP','pArvh','54lFQjmD','then','wdbbX','existsSync','YiTFh','SBlka','Cluster:\x20','region','mnLnD','../../utils/createk8sClient','VdWtI','pMQLD','QMtiN','NNscn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','50277QernSm','hynCV','136gocZKx','body','warn','3931907LoVIfG','stack','Failed\x20to\x20delete\x20resources!\x20Error:\x20','description','556760SSDyZz','type','erYmM','WOUZH','uLKLT','requestId','Mczbr','error','QHsaM','ahRSE','password','skipTlsCertVerify','skip-tls-cert-verify','name','isClusterPresent','message','2638705aJmeCt','../../utils/webSocketUtils','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','MxXAK','builder','exit','../../utils/userInput','GfWIu','aVEeU','RZTLV','RyLuP','nwvtZ','YqUew','options','asbQD','invalid-grid-id','/packages/cli/grid/','grid-id','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','default','SgVqq','cAWwY','ZPFBJ','grid','itOwl','633244GGFywN','wvbQW','NaZai','../../config/logger','invalid-input','whqDB','AKZLW','abJYZ','Namespace:\x20','mdOOB','argv','<UsernamePlaceholder>','info','parse','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterName','statusCode','Pass\x20the\x20ID\x20of\x20the\x20Grid','onlyGridInCluster','gWFXh','Ujbyy','Dcreo','FXsRq','ERROR','<PasswordPlaceholder>','Successfully\x20deleted\x20the\x20grid','Browserstack','readNamespace','WebSocket','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','init-not-called','../../config/constants','unauthorised','handler','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Skip\x20insecure\x20cert\x20verification.','CwjtC','../../cloudproviders/utils','help','toLowerCase','\x22\x20with\x20ID\x20','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','ZThcZ','CAMWR','username'];a11_0x31d8=function(){return _0x2269ed;};return a11_0x31d8();}const a11_0x1fec45=a11_0x2051;(function(_0x6d591a,_0x18e008){const _0x5a8c=a11_0x2051,_0x4ebc20=_0x6d591a();while(!![]){try{const _0x5e4d8c=parseInt(_0x5a8c(0x22a))/0x1+parseInt(_0x5a8c(0x201))/0x2+-parseInt(_0x5a8c(0x1f8))/0x3*(-parseInt(_0x5a8c(0x1fa))/0x4)+parseInt(_0x5a8c(0x211))/0x5*(-parseInt(_0x5a8c(0x1c0))/0x6)+-parseInt(_0x5a8c(0x1fd))/0x7+-parseInt(_0x5a8c(0x1e0))/0x8*(parseInt(_0x5a8c(0x1e9))/0x9)+parseInt(_0x5a8c(0x1dd))/0xa;if(_0x5e4d8c===_0x18e008)break;else _0x4ebc20['push'](_0x4ebc20['shift']());}catch(_0x5215cf){_0x4ebc20['push'](_0x4ebc20['shift']());}}}(a11_0x31d8,0x611ea));const fs=require('fs'),got=require(a11_0x1fec45(0x1e3)),{v4:uuidv4}=require(a11_0x1fec45(0x1c1)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1fec45(0x1b0)),{logger}=require(a11_0x1fec45(0x22d)),{getCloudProviderObject}=require(a11_0x1fec45(0x1b6)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1fec45(0x1c2)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x1fec45(0x217)),{createK8sClient}=require(a11_0x1fec45(0x1f2)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x1fec45(0x212));function a11_0x2051(_0x102116,_0x132251){const _0x31d814=a11_0x31d8();return a11_0x2051=function(_0x205106,_0x4c676e){_0x205106=_0x205106-0x1af;let _0x26c25b=_0x31d814[_0x205106];return _0x26c25b;},a11_0x2051(_0x102116,_0x132251);}exports[a11_0x1fec45(0x1e2)]=a11_0x1fec45(0x228),exports[a11_0x1fec45(0x238)]=a11_0x1fec45(0x1ca),exports[a11_0x1fec45(0x215)]=function(_0x3a70ee){const _0x1d5e4b=a11_0x1fec45,_0x3ff045={};_0x3ff045[_0x1d5e4b(0x1d0)]=_0x1d5e4b(0x23c),_0x3ff045[_0x1d5e4b(0x22c)]='string',_0x3ff045['pMQLD']='Skip\x20insecure\x20cert\x20verification.',_0x3ff045['pArvh']=_0x1d5e4b(0x1c3),_0x3ff045[_0x1d5e4b(0x227)]='help';const _0x502a45=_0x3ff045,_0x4feb1a={};_0x4feb1a[_0x1d5e4b(0x200)]=_0x502a45[_0x1d5e4b(0x1d0)],_0x4feb1a[_0x1d5e4b(0x202)]=_0x502a45['NaZai'];const _0x2dcd8f={};_0x2dcd8f[_0x1d5e4b(0x200)]=_0x502a45[_0x1d5e4b(0x1f4)],_0x2dcd8f[_0x1d5e4b(0x202)]=_0x502a45[_0x1d5e4b(0x1e8)],_0x2dcd8f[_0x1d5e4b(0x224)]=![];const _0x12e923={};return _0x12e923[_0x1d5e4b(0x222)]=_0x4feb1a,_0x12e923[_0x1d5e4b(0x20d)]=_0x2dcd8f,_0x3a70ee[_0x1d5e4b(0x1d9)](HELP_HEADER_MESSAGE[_0x1d5e4b(0x1d4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1d5e4b(0x21e)](_0x12e923)['help'](_0x502a45['ZPFBJ'])['argv'];},exports[a11_0x1fec45(0x1b2)]=async function(_0x1a5892){const _0x5086c8=a11_0x1fec45,_0x2df648={'gWFXh':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','ZyVPc':_0x5086c8(0x23c),'Ujbyy':'string','whqDB':_0x5086c8(0x1b4),'asbQD':_0x5086c8(0x1c3),'CAMWR':_0x5086c8(0x1b7),'aVEeU':_0x5086c8(0x244),'YqUew':_0x5086c8(0x213),'RyLuP':function(_0x375377,_0x48d5e4){return _0x375377===_0x48d5e4;},'cAWwY':_0x5086c8(0x1db),'tQABn':'iIuUf','Dcreo':function(_0x3ed916,_0x4722e0){return _0x3ed916===_0x4722e0;},'erYmM':_0x5086c8(0x1c5),'NNscn':function(_0x45d216){return _0x45d216();},'WOUZH':function(_0x75c09){return _0x75c09();},'GfWIu':_0x5086c8(0x21c),'yFYfF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YxkvK':function(_0x1caea6,_0x250986,_0x5c577b,_0x5d72a3,_0x55ff02,_0xa411a0,_0x544804){return _0x1caea6(_0x250986,_0x5c577b,_0x5d72a3,_0x55ff02,_0xa411a0,_0x544804);},'itOwl':_0x5086c8(0x1c4),'cVaAm':_0x5086c8(0x1af),'mwJPF':function(_0x3864b3,_0x46316e,_0x515d87,_0x3332c5,_0x2e9398,_0x77d6fe,_0x497073){return _0x3864b3(_0x46316e,_0x515d87,_0x3332c5,_0x2e9398,_0x77d6fe,_0x497073);},'RZTLV':'oHAbt','fiipP':'jtCgm','hQmTn':function(_0x3df850){return _0x3df850();},'fPhyr':function(_0x1d2990,_0x4e7d10,_0x3c9157,_0xac6c1){return _0x1d2990(_0x4e7d10,_0x3c9157,_0xac6c1);},'feiFl':function(_0x24c7f9,_0x31df87){return _0x24c7f9===_0x31df87;},'mnLnD':'Browserstack','VdWtI':function(_0x54a531,_0x3b5135){return _0x54a531!==_0x3b5135;},'mGlZv':_0x5086c8(0x1cd),'JTVMT':function(_0xd6f622,_0x2f693e){return _0xd6f622(_0x2f693e);},'SBlka':function(_0x42e1e4,_0x3d15bd){return _0x42e1e4===_0x3d15bd;},'MxXAK':_0x5086c8(0x20a),'iCTgP':_0x5086c8(0x1d6),'uLKLT':_0x5086c8(0x22e),'SgVqq':_0x5086c8(0x1d2),'wvbQW':_0x5086c8(0x235),'HGyIM':_0x5086c8(0x243),'wdbbX':function(_0x36c7db,_0x34b78e){return _0x36c7db(_0x34b78e);},'QHsaM':function(_0x7c6572,_0x4dab35,_0x49e8bf){return _0x7c6572(_0x4dab35,_0x49e8bf);},'ZThcZ':function(_0x414d3f,_0x40c038,_0x46370d,_0x51143d,_0x32a7f7,_0x2c5af4){return _0x414d3f(_0x40c038,_0x46370d,_0x51143d,_0x32a7f7,_0x2c5af4);},'vFNek':_0x5086c8(0x241),'mdOOB':_0x5086c8(0x1b5),'HFMQF':_0x5086c8(0x1ed),'Mczbr':'DELETE','QMtiN':function(_0x48d7c9,_0x26abec,_0x47b069){return _0x48d7c9(_0x26abec,_0x47b069);},'kUwmx':function(_0x4586d4,_0x5c4c3c){return _0x4586d4!==_0x5c4c3c;},'AKZLW':function(_0x4d9a12,_0x15d2e0){return _0x4d9a12===_0x15d2e0;},'hynCV':_0x5086c8(0x1d7),'RDPhl':function(_0x59a397,_0xe26a8c){return _0x59a397===_0xe26a8c;},'sIftU':_0x5086c8(0x239),'abJYZ':_0x5086c8(0x1b1),'jbmoq':function(_0x1e0b27,_0x10141d){return _0x1e0b27===_0x10141d;},'OevRj':_0x5086c8(0x220),'PCivh':function(_0x3bdc96,_0x4fb092,_0x3fec6e,_0x37331e,_0x1632ec,_0x1d3ca1,_0x4cb8c0){return _0x3bdc96(_0x4fb092,_0x3fec6e,_0x37331e,_0x1632ec,_0x1d3ca1,_0x4cb8c0);},'KpfDC':function(_0x486a0c,_0x16959a,_0x346672,_0x43d30f,_0x1d829e,_0x5f41b6,_0x530946){return _0x486a0c(_0x16959a,_0x346672,_0x43d30f,_0x1d829e,_0x5f41b6,_0x530946);},'TxGIE':'unknown-error'};try{global_registry[_0x5086c8(0x206)]=_0x2df648[_0x5086c8(0x1f6)](uuidv4);!fs[_0x5086c8(0x1ec)](_0x2df648[_0x5086c8(0x204)](getCredentialsPath))&&(_0x2df648[_0x5086c8(0x240)](_0x2df648[_0x5086c8(0x218)],_0x2df648[_0x5086c8(0x218)])?(console[_0x5086c8(0x208)](_0x2df648['yFYfF']),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648['itOwl'],messageTypes['ERROR'],_0x2df648['cVaAm'],null,_0x1a5892),process[_0x5086c8(0x216)](0x1)):_0x1ffae0['warn'](_0x2df648[_0x5086c8(0x23e)]));_0x2df648['mwJPF'](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes['INFO'],null,null,_0x1a5892);!_0x1a5892[_0x5086c8(0x1da)]&&(_0x2df648[_0x5086c8(0x240)](_0x2df648[_0x5086c8(0x21a)],_0x2df648[_0x5086c8(0x1e7)])?_0x91d425[_0x5086c8(0x236)]('Namespace:\x20'+_0x399193+_0x5086c8(0x223)):(console[_0x5086c8(0x208)](_0x2df648[_0x5086c8(0x21d)]),process[_0x5086c8(0x216)](0x1)));const _0xa145a0=JSON[_0x5086c8(0x237)](fs['readFileSync'](_0x2df648[_0x5086c8(0x1d3)](getCredentialsPath))),[_0xd8c6c2,_0x2503c8]=await _0x2df648[_0x5086c8(0x1e5)](getGridDetails,_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x1bf)],_0xa145a0['Browserstack'][_0x5086c8(0x20b)],_0x1a5892[_0x5086c8(0x1da)]);if(_0x2503c8){const _0x1d7956=_0x2503c8['info'];let _0x509175=_0x5086c8(0x248)+_0x1d7956[_0x5086c8(0x20e)]+_0x5086c8(0x1c8)+_0x1d7956['id']+_0x5086c8(0x1b3);if(_0x2503c8[_0x5086c8(0x23d)]&&_0x2df648[_0x5086c8(0x1df)](_0x2503c8['clusterSpawnedVia'],_0x2df648[_0x5086c8(0x1f1)])){if(_0x2df648[_0x5086c8(0x1f3)](_0x2df648[_0x5086c8(0x1e1)],_0x2df648[_0x5086c8(0x1e1)])){const _0x2b2fd3={};_0x2b2fd3[_0x5086c8(0x200)]=_0x2df648['ZyVPc'],_0x2b2fd3['type']=_0x2df648[_0x5086c8(0x23f)];const _0x1eba24={};_0x1eba24[_0x5086c8(0x200)]=_0x2df648[_0x5086c8(0x22f)],_0x1eba24[_0x5086c8(0x202)]=_0x2df648[_0x5086c8(0x21f)],_0x1eba24[_0x5086c8(0x224)]=![];const _0x3b2791={};return _0x3b2791[_0x5086c8(0x222)]=_0x2b2fd3,_0x3b2791['skip-tls-cert-verify']=_0x1eba24,_0x337f55['usage'](_0x2c856c[_0x5086c8(0x1d4)])[_0x5086c8(0x1d5)](_0x476c7d)[_0x5086c8(0x21e)](_0x3b2791)[_0x5086c8(0x1b7)](_0x2df648[_0x5086c8(0x1be)])[_0x5086c8(0x234)];}else _0x509175=_0x5086c8(0x248)+_0x1d7956['name']+_0x5086c8(0x1c8)+_0x1d7956['id']+_0x5086c8(0x1bb)+_0x1d7956['clusterName']+'\x22\x20with\x20ID\x20'+_0x1d7956[_0x5086c8(0x1d1)]+_0x5086c8(0x1b3);}const _0x1c5322=await _0x2df648['JTVMT'](inputConfirmation,_0x509175);(_0x2df648[_0x5086c8(0x1df)](_0x1c5322,undefined)||_0x2df648['SBlka'](_0x1c5322,null)||!(_0x2df648[_0x5086c8(0x1df)](_0x1c5322[_0x5086c8(0x1b8)](),'y')||_0x2df648[_0x5086c8(0x1ee)](_0x1c5322[_0x5086c8(0x1b8)](),'n')))&&(_0x2df648['VdWtI'](_0x2df648['MxXAK'],_0x2df648[_0x5086c8(0x214)])?(_0x4c3cbb[_0x5086c8(0x236)](_0x2df648[_0x5086c8(0x219)]),_0x38f257['exit'](0x0)):(console['error'](_0x2df648['iCTgP']),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes['ERROR'],_0x2df648[_0x5086c8(0x205)],null,_0x1a5892),process['exit'](0x1)));_0x2df648[_0x5086c8(0x1ee)](_0x1c5322[_0x5086c8(0x1b8)](),'n')&&(_0x2df648['RyLuP'](_0x2df648[_0x5086c8(0x225)],_0x2df648[_0x5086c8(0x225)])?process[_0x5086c8(0x216)](0x0):_0x4395ab[_0x5086c8(0x216)](0x0));const _0x2c0880=WS_ENDPOINT['replace'](_0x2df648[_0x5086c8(0x22b)],_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x1bf)])['replace'](_0x2df648['HGyIM'],_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x20b)]),_0x72738b={};_0x72738b[_0x5086c8(0x247)]=ws,_0x72738b[_0x5086c8(0x1e6)]=0x36ee80;const _0x1beb06=new ReconnectingWebSocket(_0x2c0880,[],_0x72738b);global_registry[_0x5086c8(0x1de)]=_0x1d7956[_0x5086c8(0x1f0)];const _0x5ae1ef=_0x1d7956['cloudProvider'],_0xe834e6=await _0x2df648[_0x5086c8(0x1ce)](getCloudProviderObject,_0x5ae1ef,_0x1d7956[_0x5086c8(0x23a)],_0x1d7956[_0x5086c8(0x20e)],_0x1beb06,webSocketUtils,_0x1a5892),_0x21fc93=await _0xe834e6[_0x5086c8(0x20f)]();if(_0x21fc93){const _0x4d2c80=_0x2df648[_0x5086c8(0x1eb)](kebabCase,_0x1d7956[_0x5086c8(0x20e)]),[_0x98ade5,_0x445525,_0x1aa7f7,_0xea6d3f,_0x2b61d7,_0x4b416b]=await _0x2df648[_0x5086c8(0x209)](createK8sClient,_0xe834e6,_0x1a5892[_0x5086c8(0x20c)]);let _0x17cc6e=!![];const _0x562b76={};_0x562b76[_0x5086c8(0x20e)]=_0x4d2c80,await _0x98ade5[_0x5086c8(0x246)](_0x562b76)[_0x5086c8(0x1ea)](_0x2c4054=>{const _0x302175=_0x5086c8;_0x2df648[_0x302175(0x21b)](_0x2df648[_0x302175(0x226)],_0x2df648[_0x302175(0x1dc)])?(_0x2112df[_0x302175(0x208)](_0x2df648['YqUew']),_0x2f8cad[_0x302175(0x216)](0x1)):logger[_0x302175(0x236)]('Namespace:\x20'+_0x4d2c80+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})['catch'](_0x53547b=>{const _0x3f6984=_0x5086c8;_0x2df648[_0x3f6984(0x240)](_0x2df648[_0x3f6984(0x203)],_0x2df648[_0x3f6984(0x203)])?(logger[_0x3f6984(0x1fc)](_0x3f6984(0x232)+_0x4d2c80+_0x3f6984(0x1ba)),_0x17cc6e=![]):_0x4b37bd=_0x3f6984(0x248)+_0x46a632['name']+_0x3f6984(0x1c8)+_0x5b54a4['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2bb002[_0x3f6984(0x23a)]+_0x3f6984(0x1b9)+_0x5308ac[_0x3f6984(0x1d1)]+_0x3f6984(0x1b3);});if(_0x17cc6e){await _0x2df648[_0x5086c8(0x1bd)](removeGridComponents,_0x98ade5,_0x445525,_0x1aa7f7,_0xea6d3f,_0x4d2c80);if(_0x2503c8[_0x5086c8(0x23d)]){const _0x27d8eb=await _0xe834e6[_0x5086c8(0x1e4)]();_0x27d8eb?_0x2df648[_0x5086c8(0x21b)](_0x2df648['vFNek'],_0x2df648[_0x5086c8(0x1cb)])?await _0xe834e6['deleteCluster'](_0x98ade5,_0x1d7956[_0x5086c8(0x1f0)]):_0x54960d['warn']('Cluster:\x20'+_0x3d02d6[_0x5086c8(0x23a)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x2df648[_0x5086c8(0x1df)](_0x2df648[_0x5086c8(0x233)],_0x2df648['HFMQF'])?(_0x56aa17['warn'](_0x5086c8(0x232)+_0x4835ed+_0x5086c8(0x1ba)),_0x215bd4=![]):logger[_0x5086c8(0x1fc)](_0x5086c8(0x1ef)+_0x1d7956['clusterName']+_0x5086c8(0x1c6));}}}else logger[_0x5086c8(0x1fc)](_0x2df648[_0x5086c8(0x23e)]);const _0x1b1098=_0x5086c8(0x1cc)+AG_API_URL+_0x5086c8(0x221)+_0x1a5892[_0x5086c8(0x1da)],_0x3c426a={'method':_0x2df648[_0x5086c8(0x207)],'headers':_0x2df648[_0x5086c8(0x209)](getAuthHeader,_0xa145a0[_0x5086c8(0x245)]['username'],_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x20b)]),'throwHttpErrors':![]},_0x447195=await _0x2df648[_0x5086c8(0x1f5)](got,_0x1b1098,_0x3c426a);_0x2df648['kUwmx'](_0x447195,null)&&_0x2df648[_0x5086c8(0x1f3)](_0x447195,undefined)&&_0x2df648[_0x5086c8(0x230)](_0x447195[_0x5086c8(0x23b)],0xc8)&&(logger[_0x5086c8(0x236)](_0x2df648[_0x5086c8(0x219)]),process[_0x5086c8(0x216)](0x0)),logger[_0x5086c8(0x208)](_0x5086c8(0x1bc)+_0x447195[_0x5086c8(0x1fb)]),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648['itOwl'],messageTypes[_0x5086c8(0x242)],_0x2df648['hynCV'],_0xd8c6c2,_0x1a5892),process[_0x5086c8(0x216)](0x1);}_0x2df648['RDPhl'](_0xd8c6c2['statusCode'],0x191)&&(logger['error'](_0x2df648[_0x5086c8(0x1d8)]),await _0x2df648['YxkvK'](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes[_0x5086c8(0x242)],_0x2df648[_0x5086c8(0x231)],null,_0x1a5892),process[_0x5086c8(0x216)](0x1)),_0x2df648[_0x5086c8(0x1c7)](_0xd8c6c2[_0x5086c8(0x23b)],0x190)&&(logger[_0x5086c8(0x208)](JSON['parse'](_0xd8c6c2['body'])[_0x5086c8(0x210)]),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes[_0x5086c8(0x242)],_0x2df648['OevRj'],null,_0x1a5892),process['exit'](0x1)),logger[_0x5086c8(0x208)](_0x5086c8(0x1f7)+JSON['stringify'](_0xd8c6c2)),await _0x2df648[_0x5086c8(0x1c9)](sendInstrumentationEvent,_0x1a5892,_0x2df648['itOwl'],messageTypes[_0x5086c8(0x242)],_0x2df648[_0x5086c8(0x1f9)],_0xd8c6c2,_0x1a5892),process['exit'](0x1);}catch(_0xc4e810){logger['error'](_0x5086c8(0x1ff)+_0xc4e810[_0x5086c8(0x1fe)]),await _0x2df648['KpfDC'](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes[_0x5086c8(0x242)],_0x2df648[_0x5086c8(0x1cf)],_0xc4e810,_0x1a5892),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x21e0(){const _0x3542ae=['Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','tdFiF','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xiQaW','debug','ERROR','75whpmuI','zGgtY','gMtSZ','help','../utils/userInput','command','AnViP','error','username','existsSync','strict','argv','rZaOy','../config/constants','qxNDu','utf-8','ROygq','bstackUsername','bstackAccesskey','DFvWf','OLHVX','/automate/plan.json','11864gENRVC','QNWWQ','NFLJf','TxluJ','YsWAs','string','uuid','builder','ILTUn','BROWSERSTACK_USERNAME','GET','handler','readFileSync','BROWSERSTACK_ACCESS_KEY','enjAb','Browserstack','mkdirSync','PADZA','ffUSi','EBnyr','168512BXAxDW','parse','GvIxH','bstack-accesskey','cItLB','266412buOULj','YOBIu','CXwHA','CzzfK','AWpUP','cGfPX','init','pdTCo','KrxRC','NwTBk','type','usage','40CCcURy','description','bstack-username','writeFileSync','Fjzxa','IrRdR','util','VkOEm','stringify','vnBCb','uDePm','524601lesGSm','requestId','exit','qRALm','options','299844JfFkpV','../config/logger','recommendCommands','nFgdE','JHdBu','desc','Dmiuy','129984YCsKoY','unknown-error','../utils/utilityMethods','env','903urGpOr','wrong-creds','epilogue','got','XvcYF','init-called','MAOJf','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','password','1858455sLEhid','YZftM','statusCode','TiTXH','https://','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a12_0x21e0=function(){return _0x3542ae;};return a12_0x21e0();}const a12_0x353539=a12_0x14fe;(function(_0x3cd4cc,_0x2dff28){const _0x3b3133=a12_0x14fe,_0x77fa4a=_0x3cd4cc();while(!![]){try{const _0x5d290c=parseInt(_0x3b3133(0x127))/0x1+-parseInt(_0x3b3133(0x10b))/0x2+-parseInt(_0x3b3133(0x12c))/0x3+-parseInt(_0x3b3133(0x133))/0x4+-parseInt(_0x3b3133(0x14d))/0x5*(-parseInt(_0x3b3133(0x110))/0x6)+-parseInt(_0x3b3133(0x137))/0x7*(-parseInt(_0x3b3133(0xf7))/0x8)+parseInt(_0x3b3133(0x141))/0x9*(-parseInt(_0x3b3133(0x11c))/0xa);if(_0x5d290c===_0x2dff28)break;else _0x77fa4a['push'](_0x77fa4a['shift']());}catch(_0x43e590){_0x77fa4a['push'](_0x77fa4a['shift']());}}}(a12_0x21e0,0x52d3a));function a12_0x14fe(_0x298925,_0x556c19){const _0x21e00e=a12_0x21e0();return a12_0x14fe=function(_0x14fef1,_0x3ca55e){_0x14fef1=_0x14fef1-0xeb;let _0x254003=_0x21e00e[_0x14fef1];return _0x254003;},a12_0x14fe(_0x298925,_0x556c19);}const fs=require('fs'),util=require(a12_0x353539(0x122)),got=require(a12_0x353539(0x13a)),{v4:uuidv4}=require(a12_0x353539(0xfd)),{logger}=require(a12_0x353539(0x12d)),{inputBstackKeys}=require(a12_0x353539(0x151)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x353539(0xee)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x353539(0x135)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x353539(0x152)]=a12_0x353539(0x116),exports[a12_0x353539(0x131)]=a12_0x353539(0x147),exports[a12_0x353539(0xfe)]=function(_0x389cc8){const _0x5ca59e=a12_0x353539,_0x3edcfc={};_0x3edcfc['pdTCo']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['AnViP']=_0x5ca59e(0xfc),_0x3edcfc[_0x5ca59e(0xfa)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['cItLB']='help';const _0x40557c=_0x3edcfc,_0x2bec83={};_0x2bec83[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0x117)],_0x2bec83[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x3b0739={};_0x3b0739[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0xfa)],_0x3b0739[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x27f392={};return _0x27f392['bstack-username']=_0x2bec83,_0x27f392[_0x5ca59e(0x10e)]=_0x3b0739,_0x389cc8[_0x5ca59e(0x11b)](HELP_HEADER_MESSAGE[_0x5ca59e(0x116)])[_0x5ca59e(0x139)](HELP_FOOTER_MESSAGE)[_0x5ca59e(0x12b)](_0x27f392)[_0x5ca59e(0x12e)]()[_0x5ca59e(0xeb)]()['help'](_0x40557c[_0x5ca59e(0x10f)])[_0x5ca59e(0xec)];},exports[a12_0x353539(0x102)]=async function(_0x1447c3){const _0x246093=a12_0x353539,_0x1551cb={'xgIGf':_0x246093(0x149),'VkOEm':'string','YsWAs':_0x246093(0x146),'enjAb':_0x246093(0x150),'zGgtY':function(_0x5df156){return _0x5df156();},'QNWWQ':_0x246093(0xf0),'nFgdE':function(_0x4a4fa5,_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f){return _0x4a4fa5(_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f);},'KrxRC':_0x246093(0x13c),'ILTUn':function(_0x50c75a){return _0x50c75a();},'ROygq':function(_0x2c4662,_0x38e511){return _0x2c4662===_0x38e511;},'NwTBk':'HOMzC','tdFiF':_0x246093(0x126),'XvcYF':_0x246093(0x13d),'CXwHA':'DBtjc','nkKXB':function(_0x5b433b,_0x49504c){return _0x5b433b!==_0x49504c;},'qxNDu':_0x246093(0xf9),'YOBIu':function(_0x26f3f0,_0xf8837a){return _0x26f3f0!==_0xf8837a;},'Dmiuy':_0x246093(0x130),'gMtSZ':_0x246093(0x115),'IrRdR':function(_0x11fce9,_0x1b4404){return _0x11fce9!==_0x1b4404;},'lRvpY':'JpoEb','rZaOy':_0x246093(0x120),'AWpUP':_0x246093(0x13e),'lEUqF':function(_0xad546f){return _0xad546f();},'GqmGP':_0x246093(0x101),'JCXQX':function(_0x2822d2,_0x535dbd,_0x5911d9){return _0x2822d2(_0x535dbd,_0x5911d9);},'cLXgL':function(_0x2187a6,_0x3b2a72,_0x3cf1f1){return _0x2187a6(_0x3b2a72,_0x3cf1f1);},'ortFI':function(_0x8ee6da,_0x4348e4){return _0x8ee6da!==_0x4348e4;},'PADZA':function(_0xf5829,_0x477e83){return _0xf5829===_0x477e83;},'xiQaW':_0x246093(0x144),'vnBCb':_0x246093(0x10a),'GvIxH':_0x246093(0x142),'DFvWf':function(_0x2d061f){return _0x2d061f();},'pwIDw':_0x246093(0x113),'OQAud':_0x246093(0x13f),'ffUSi':function(_0x2e3a4a,_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c){return _0x2e3a4a(_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c);},'OLHVX':_0x246093(0x138),'qRALm':_0x246093(0x134)};try{global_registry[_0x246093(0x128)]=_0x1551cb[_0x246093(0x14e)](uuidv4),_0x1551cb[_0x246093(0x12f)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['INFO'],null,null,_0x1447c3);const _0xeab71a=_0x1551cb[_0x246093(0xff)](getDirForConfig);if(!fs['existsSync'](_0xeab71a)){if(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x119)],_0x1551cb[_0x246093(0x148)])){const _0x465f5b={};_0x465f5b[_0x246093(0x11d)]=_0x1551cb['xgIGf'],_0x465f5b[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x16b266={};_0x16b266[_0x246093(0x11d)]=_0x1551cb[_0x246093(0xfb)],_0x16b266[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x2b12f2={};return _0x2b12f2[_0x246093(0x11e)]=_0x465f5b,_0x2b12f2['bstack-accesskey']=_0x16b266,_0x12c8c5[_0x246093(0x11b)](_0x4f04e7[_0x246093(0x116)])[_0x246093(0x139)](_0x7d5716)[_0x246093(0x12b)](_0x2b12f2)['recommendCommands']()[_0x246093(0xeb)]()[_0x246093(0x150)](_0x1551cb[_0x246093(0x105)])[_0x246093(0xec)];}else fs[_0x246093(0x107)](_0xeab71a);}let _0x1f83d9,_0x112180;process[_0x246093(0x136)][_0x246093(0x100)]&&(_0x1551cb['ROygq'](_0x1551cb['XvcYF'],_0x1551cb[_0x246093(0x13b)])?_0x1f83d9=process[_0x246093(0x136)][_0x246093(0x100)]:_0x1aeb0e=!![]);process[_0x246093(0x136)][_0x246093(0x104)]&&(_0x1551cb['ROygq'](_0x1551cb[_0x246093(0x112)],_0x1551cb['CXwHA'])?_0x112180=process[_0x246093(0x136)]['BROWSERSTACK_ACCESS_KEY']:_0x52b151=_0x4471a4[_0x246093(0xf3)]);_0x1447c3[_0x246093(0xf2)]&&(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0xef)],_0x1551cb[_0x246093(0xef)])?_0x4e98b8=_0x3e189b[_0x246093(0xf2)]:_0x1f83d9=_0x1447c3['bstackUsername']);if(_0x1447c3[_0x246093(0xf3)]){if(_0x1551cb[_0x246093(0x111)](_0x1551cb[_0x246093(0x132)],_0x1551cb[_0x246093(0x14f)]))_0x112180=_0x1447c3[_0x246093(0xf3)];else{let _0x3f0cb9={};const _0x2be034=_0x1551cb['zGgtY'](_0x450ef8);_0x2cbca7[_0x246093(0x156)](_0x2be034)&&(_0x3f0cb9=_0x2959a6[_0x246093(0x10c)](_0x1510e9[_0x246093(0x103)](_0x2be034,_0x1551cb[_0x246093(0xf8)])));const _0x1c48f4={};_0x1c48f4[_0x246093(0x155)]=_0x4c83cf,_0x1c48f4[_0x246093(0x140)]=_0xf739fd,_0x3f0cb9[_0x246093(0x106)]=_0x1c48f4,_0x4e7c51['writeFileSync'](_0x2be034,_0x2deb6b[_0x246093(0x124)](_0x3f0cb9)),_0x3a9b87[_0x246093(0x129)](0x0);}}if(_0x1551cb[_0x246093(0xf1)](_0x1f83d9,undefined)||_0x1551cb[_0x246093(0xf1)](_0x112180,undefined)){if(_0x1551cb[_0x246093(0x121)](_0x1551cb['lRvpY'],_0x1551cb[_0x246093(0xed)])){logger[_0x246093(0x14b)](_0x1551cb[_0x246093(0x114)]);const [_0x3b7b8d,_0x596668]=await _0x1551cb['lEUqF'](inputBstackKeys);_0x1f83d9=_0x3b7b8d,_0x112180=_0x596668;}else _0x105601=_0x41db84[_0x246093(0x10c)](_0x230f98['readFileSync'](_0x3fecee,_0x1551cb[_0x246093(0xf8)]));}let _0x3753c8=![];const _0x4d315e=_0x246093(0x145)+_0x1f83d9+':'+_0x112180+'@'+BS_API_URL+_0x246093(0xf6),_0x55cc1d={'method':_0x1551cb['GqmGP'],'headers':_0x1551cb['JCXQX'](getAuthHeader,_0x1f83d9,_0x112180),'throwHttpErrors':![]},_0x2bd92e=await _0x1551cb['cLXgL'](got,_0x4d315e,_0x55cc1d);_0x1551cb['YOBIu'](_0x2bd92e,null)&&_0x1551cb['ortFI'](_0x2bd92e,undefined)&&_0x1551cb[_0x246093(0x108)](_0x2bd92e[_0x246093(0x143)],0xc8)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x14a)],_0x1551cb['xiQaW'])?_0x3753c8=!![]:_0x54d0d2=_0x414695[_0x246093(0x136)][_0x246093(0x100)]);if(_0x3753c8){if(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0x125)],_0x1551cb[_0x246093(0x10d)])){let _0x4337c2={};const _0x428aa1=_0x1551cb[_0x246093(0xf4)](getCredentialsPath);fs['existsSync'](_0x428aa1)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb['pwIDw'],_0x1551cb['pwIDw'])?_0x4337c2=JSON[_0x246093(0x10c)](fs[_0x246093(0x103)](_0x428aa1,_0x1551cb[_0x246093(0xf8)])):_0x464a59[_0x246093(0x107)](_0x6dce7a));const _0x193125={};_0x193125[_0x246093(0x155)]=_0x1f83d9,_0x193125[_0x246093(0x140)]=_0x112180,_0x4337c2[_0x246093(0x106)]=_0x193125,fs[_0x246093(0x11f)](_0x428aa1,JSON[_0x246093(0x124)](_0x4337c2)),process[_0x246093(0x129)](0x0);}else _0x2d94c9=_0x554432[_0x246093(0x136)][_0x246093(0x104)];}else logger[_0x246093(0x154)](_0x1551cb['OQAud']),await _0x1551cb['ffUSi'](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes[_0x246093(0x14c)],_0x1551cb[_0x246093(0xf5)],null,_0x1447c3),process[_0x246093(0x129)](0x1);}catch(_0x48cb45){logger[_0x246093(0x154)](_0x48cb45['stack']),await _0x1551cb[_0x246093(0x109)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['ERROR'],_0x1551cb[_0x246093(0x12a)],_0x48cb45,_0x1447c3),process[_0x246093(0x129)](0x1);}};
|
|
1
|
+
const a12_0x170515=a12_0x26f5;function a12_0x26f5(_0x47e0d2,_0x4fdc57){const _0xa4321a=a12_0xa432();return a12_0x26f5=function(_0x26f58a,_0x45a05f){_0x26f58a=_0x26f58a-0xe7;let _0x1b4d44=_0xa4321a[_0x26f58a];return _0x1b4d44;},a12_0x26f5(_0x47e0d2,_0x4fdc57);}(function(_0x27f9d9,_0x1e99af){const _0x432315=a12_0x26f5,_0x7a1cb8=_0x27f9d9();while(!![]){try{const _0x5d128f=-parseInt(_0x432315(0x134))/0x1*(parseInt(_0x432315(0x156))/0x2)+-parseInt(_0x432315(0x109))/0x3+-parseInt(_0x432315(0x11c))/0x4*(parseInt(_0x432315(0x131))/0x5)+parseInt(_0x432315(0x136))/0x6*(-parseInt(_0x432315(0xff))/0x7)+parseInt(_0x432315(0x111))/0x8*(parseInt(_0x432315(0x106))/0x9)+-parseInt(_0x432315(0x13f))/0xa+parseInt(_0x432315(0x127))/0xb;if(_0x5d128f===_0x1e99af)break;else _0x7a1cb8['push'](_0x7a1cb8['shift']());}catch(_0x32b36b){_0x7a1cb8['push'](_0x7a1cb8['shift']());}}}(a12_0xa432,0xcb377));const fs=require('fs'),util=require('util'),got=require(a12_0x170515(0x149)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x170515(0x12d)),{inputBstackKeys}=require(a12_0x170515(0x105)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x170515(0x154)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x170515(0x11d));function a12_0xa432(){const _0x247f1d=['tosBp','toOKB','debug','exit','BROWSERSTACK_ACCESS_KEY','parse','username','REBEx','eWDyR','usage','bSyqa','cCDvu','stack','ZSeUu','epilogue','KyjQo','password','RSKnG','35DcfUCL','stringify','string','strict','argv','KvaEu','../utils/userInput','63oIZkLF','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','rVBnV','3799038LfQydx','requestId','pGRvD','mkdirSync','eEgLJ','aNGOa','type','command','227296ZphDKM','Wokab','description','raTwB','error','jsuel','env','RFjvZ','LNnlN','XUaJc','weHzN','36GrMqny','../utils/instrumentationUtils','statusCode','RvKEF','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','qrowP','options','YfDQV','readFileSync','zcOWX','CMeAr','65450495NaguCn','udiJE','WcrdY','existsSync','mIrlP','writeFileSync','../config/logger','Browserstack','wlrhE','QKZNH','855405SrzrAL','wrong-creds','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','18573zVXqhH','QEXDz','1227300JHlUKr','QYHYY','gISiJ','bstackAccesskey','BROWSERSTACK_USERNAME','nCKjw','FaBTn','uWiyw','bstack-accesskey','10791230przJrw','bstackUsername','Idchw','init','https://','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','desc','qjeVB','help','OjWTz','got','init-called','XHeUM','mNYSc','LBgeM','builder','WQHlU','EpBpa','/automate/plan.json','rswFE','eaxER','../config/constants','recommendCommands','44wKOnFm','sECdt','ERROR','GET','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','bstack-username','handler'];a12_0xa432=function(){return _0x247f1d;};return a12_0xa432();}exports[a12_0x170515(0x110)]=a12_0x170515(0x142),exports[a12_0x170515(0x145)]=a12_0x170515(0xea),exports[a12_0x170515(0x14e)]=function(_0x86f3ac){const _0x5874c4=a12_0x170515,_0x10cbd3={};_0x10cbd3[_0x5874c4(0x152)]=_0x5874c4(0x133),_0x10cbd3[_0x5874c4(0x12b)]=_0x5874c4(0x101),_0x10cbd3[_0x5874c4(0x121)]=_0x5874c4(0x107),_0x10cbd3['eWDyR']=_0x5874c4(0x147);const _0x2c75fe=_0x10cbd3,_0x47878c={};_0x47878c[_0x5874c4(0x113)]=_0x2c75fe[_0x5874c4(0x152)],_0x47878c[_0x5874c4(0x10f)]=_0x2c75fe['mIrlP'];const _0x4d04c6={};_0x4d04c6[_0x5874c4(0x113)]=_0x2c75fe['qrowP'],_0x4d04c6[_0x5874c4(0x10f)]=_0x2c75fe['mIrlP'];const _0x5104d5={};return _0x5104d5['bstack-username']=_0x47878c,_0x5104d5[_0x5874c4(0x13e)]=_0x4d04c6,_0x86f3ac[_0x5874c4(0xf6)](HELP_HEADER_MESSAGE[_0x5874c4(0x142)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5874c4(0x122)](_0x5104d5)[_0x5874c4(0x155)]()[_0x5874c4(0x102)]()[_0x5874c4(0x147)](_0x2c75fe[_0x5874c4(0xf5)])['argv'];},exports[a12_0x170515(0xec)]=async function(_0x513789){const _0x3aebac=a12_0x170515,_0x43456b={'FaBTn':'utf-8','udiJE':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XHeUM':_0x3aebac(0x101),'YGgYM':_0x3aebac(0x107),'Wokab':'help','gISiJ':function(_0x51c1c9){return _0x51c1c9();},'OjWTz':function(_0x438c98,_0x57f384,_0x2a7c33,_0x11ab9c,_0x459c59,_0x4bf4ce,_0x55a81b){return _0x438c98(_0x57f384,_0x2a7c33,_0x11ab9c,_0x459c59,_0x4bf4ce,_0x55a81b);},'tosBp':_0x3aebac(0x14a),'cCDvu':function(_0x2f8676,_0x232145){return _0x2f8676===_0x232145;},'zcOWX':'BlnNV','QKZNH':_0x3aebac(0xfa),'YfDQV':function(_0x1a37e0,_0x2e409e){return _0x1a37e0!==_0x2e409e;},'LNnlN':_0x3aebac(0x11a),'uFEnv':_0x3aebac(0x14c),'bSyqa':function(_0x5ef4d9,_0x46487c){return _0x5ef4d9!==_0x46487c;},'aNGOa':'qorzT','weHzN':_0x3aebac(0x11f),'QEXDz':'HEzZb','Idchw':_0x3aebac(0x14f),'KyjQo':_0x3aebac(0xe7),'REBEx':function(_0x408223,_0x30ac30){return _0x408223===_0x30ac30;},'eEgLJ':function(_0x1615a8,_0x5b131f){return _0x1615a8!==_0x5b131f;},'RFjvZ':_0x3aebac(0x10b),'uWiyw':'iDwoX','raTwB':_0x3aebac(0x144),'EpBpa':function(_0x439810){return _0x439810();},'NhJay':_0x3aebac(0xe9),'toOKB':function(_0x429362,_0x47d551,_0x129d4c){return _0x429362(_0x47d551,_0x129d4c);},'rVBnV':function(_0x3894a6,_0x3cd4b7){return _0x3894a6!==_0x3cd4b7;},'jsuel':_0x3aebac(0x153),'zwhdD':'ccUTP','wlrhE':function(_0x38397f,_0x41418c){return _0x38397f===_0x41418c;},'nCKjw':_0x3aebac(0x146),'CMeAr':function(_0x47b576,_0x267a70){return _0x47b576===_0x267a70;},'QYHYY':_0x3aebac(0x14d),'KvaEu':_0x3aebac(0x120),'GzKLD':function(_0x38b044,_0xfdf6e,_0x355978,_0x27e659,_0xc20cc5,_0x1f6671,_0x24a207){return _0x38b044(_0xfdf6e,_0x355978,_0x27e659,_0xc20cc5,_0x1f6671,_0x24a207);},'WcrdY':_0x3aebac(0x132),'RSKnG':'unknown-error'};try{global_registry[_0x3aebac(0x10a)]=_0x43456b[_0x3aebac(0x138)](uuidv4),_0x43456b[_0x3aebac(0x148)](sendInstrumentationEvent,_0x513789,_0x43456b[_0x3aebac(0xed)],messageTypes['INFO'],null,null,_0x513789);const _0x652139=_0x43456b[_0x3aebac(0x138)](getDirForConfig);!fs[_0x3aebac(0x12a)](_0x652139)&&(_0x43456b['cCDvu'](_0x43456b[_0x3aebac(0x125)],_0x43456b[_0x3aebac(0x130)])?_0x36b473=_0x1d1ada[_0x3aebac(0xf2)](_0x20ca14['readFileSync'](_0x582d9b,_0x43456b[_0x3aebac(0x13c)])):fs[_0x3aebac(0x10c)](_0x652139));let _0x52c5cf,_0x1ffe50;process[_0x3aebac(0x117)][_0x3aebac(0x13a)]&&(_0x43456b[_0x3aebac(0x123)](_0x43456b[_0x3aebac(0x119)],_0x43456b['uFEnv'])?_0x52c5cf=process[_0x3aebac(0x117)]['BROWSERSTACK_USERNAME']:_0x3d8921[_0x3aebac(0x10c)](_0x100aa3));if(process[_0x3aebac(0x117)][_0x3aebac(0xf1)]){if(_0x43456b[_0x3aebac(0xf7)](_0x43456b[_0x3aebac(0x10e)],_0x43456b[_0x3aebac(0x11b)]))_0x1ffe50=process[_0x3aebac(0x117)]['BROWSERSTACK_ACCESS_KEY'];else{const _0x13f18f={};_0x13f18f[_0x3aebac(0x113)]=_0x43456b[_0x3aebac(0x128)],_0x13f18f['type']=_0x43456b[_0x3aebac(0x14b)];const _0x22d954={};_0x22d954[_0x3aebac(0x113)]=_0x43456b['YGgYM'],_0x22d954[_0x3aebac(0x10f)]=_0x43456b[_0x3aebac(0x14b)];const _0x5513c1={};return _0x5513c1[_0x3aebac(0xeb)]=_0x13f18f,_0x5513c1[_0x3aebac(0x13e)]=_0x22d954,_0xcf5943[_0x3aebac(0xf6)](_0x3dcf72[_0x3aebac(0x142)])[_0x3aebac(0xfb)](_0x5c18a7)[_0x3aebac(0x122)](_0x5513c1)[_0x3aebac(0x155)]()[_0x3aebac(0x102)]()['help'](_0x43456b[_0x3aebac(0x112)])[_0x3aebac(0x103)];}}if(_0x513789[_0x3aebac(0x140)]){if(_0x43456b[_0x3aebac(0xf8)](_0x43456b[_0x3aebac(0x135)],_0x43456b['QEXDz']))_0x52c5cf=_0x513789[_0x3aebac(0x140)];else{let _0x4d5960={};const _0x1fffa7=_0x43456b[_0x3aebac(0x138)](_0x154d1a);_0x3ef1c7[_0x3aebac(0x12a)](_0x1fffa7)&&(_0x4d5960=_0x3889bb[_0x3aebac(0xf2)](_0x3e7fe0['readFileSync'](_0x1fffa7,_0x43456b[_0x3aebac(0x13c)])));const _0x2a9bb4={};_0x2a9bb4[_0x3aebac(0xf3)]=_0x4e57ba,_0x2a9bb4[_0x3aebac(0xfd)]=_0x2810d8,_0x4d5960['Browserstack']=_0x2a9bb4,_0x4acb67[_0x3aebac(0x12c)](_0x1fffa7,_0x55c0fb[_0x3aebac(0x100)](_0x4d5960)),_0x13709a[_0x3aebac(0xf0)](0x0);}}_0x513789['bstackAccesskey']&&(_0x43456b[_0x3aebac(0xf7)](_0x43456b[_0x3aebac(0x141)],_0x43456b[_0x3aebac(0xfc)])?_0x1ffe50=_0x513789[_0x3aebac(0x139)]:_0x4299f9=_0x13e3cc[_0x3aebac(0x117)][_0x3aebac(0xf1)]);if(_0x43456b['cCDvu'](_0x52c5cf,undefined)||_0x43456b[_0x3aebac(0xf4)](_0x1ffe50,undefined)){if(_0x43456b[_0x3aebac(0x10d)](_0x43456b[_0x3aebac(0x118)],_0x43456b[_0x3aebac(0x13d)])){logger[_0x3aebac(0xef)](_0x43456b[_0x3aebac(0x114)]);const [_0x1d330f,_0x4286d6]=await _0x43456b[_0x3aebac(0x150)](inputBstackKeys);_0x52c5cf=_0x1d330f,_0x1ffe50=_0x4286d6;}else _0x5318a7=_0x1fd93c['env'][_0x3aebac(0x13a)];}let _0x14b692=![];const _0x4f5288=_0x3aebac(0x143)+_0x52c5cf+':'+_0x1ffe50+'@'+BS_API_URL+_0x3aebac(0x151),_0x94ea7a={'method':_0x43456b['NhJay'],'headers':_0x43456b[_0x3aebac(0xee)](getAuthHeader,_0x52c5cf,_0x1ffe50),'throwHttpErrors':![]},_0x354c3d=await _0x43456b['toOKB'](got,_0x4f5288,_0x94ea7a);_0x43456b['eEgLJ'](_0x354c3d,null)&&_0x43456b[_0x3aebac(0x108)](_0x354c3d,undefined)&&_0x43456b[_0x3aebac(0xf8)](_0x354c3d[_0x3aebac(0x11e)],0xc8)&&(_0x43456b[_0x3aebac(0xf4)](_0x43456b[_0x3aebac(0x116)],_0x43456b['zwhdD'])?_0x332724=_0x42d282['bstackUsername']:_0x14b692=!![]);if(_0x14b692){if(_0x43456b[_0x3aebac(0x12f)](_0x43456b[_0x3aebac(0x13b)],_0x43456b[_0x3aebac(0x13b)])){let _0x704d2f={};const _0x357cec=_0x43456b[_0x3aebac(0x150)](getCredentialsPath);fs[_0x3aebac(0x12a)](_0x357cec)&&(_0x43456b[_0x3aebac(0x126)](_0x43456b[_0x3aebac(0x137)],_0x43456b[_0x3aebac(0x137)])?_0x704d2f=JSON['parse'](fs[_0x3aebac(0x124)](_0x357cec,_0x43456b[_0x3aebac(0x13c)])):_0x4439be=!![]);const _0x43d49f={};_0x43d49f[_0x3aebac(0xf3)]=_0x52c5cf,_0x43d49f[_0x3aebac(0xfd)]=_0x1ffe50,_0x704d2f[_0x3aebac(0x12e)]=_0x43d49f,fs[_0x3aebac(0x12c)](_0x357cec,JSON[_0x3aebac(0x100)](_0x704d2f)),process[_0x3aebac(0xf0)](0x0);}else _0x5a4b64=_0x45e4ae[_0x3aebac(0x139)];}else logger['error'](_0x43456b[_0x3aebac(0x104)]),await _0x43456b['GzKLD'](sendInstrumentationEvent,_0x513789,_0x43456b[_0x3aebac(0xed)],messageTypes[_0x3aebac(0xe8)],_0x43456b[_0x3aebac(0x129)],null,_0x513789),process[_0x3aebac(0xf0)](0x1);}catch(_0x10be23){logger[_0x3aebac(0x115)](_0x10be23[_0x3aebac(0xf9)]),await _0x43456b[_0x3aebac(0x148)](sendInstrumentationEvent,_0x513789,_0x43456b['tosBp'],messageTypes[_0x3aebac(0xe8)],_0x43456b[_0x3aebac(0xfe)],_0x10be23,_0x513789),process[_0x3aebac(0xf0)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x3b28c5=a13_0x1066;function a13_0x1066(_0xe0882d,_0x1567cf){const _0x1a3eef=a13_0x1a3e();return a13_0x1066=function(_0x106683,_0x33885f){_0x106683=_0x106683-0x1d4;let _0xf8f0b=_0x1a3eef[_0x106683];return _0xf8f0b;},a13_0x1066(_0xe0882d,_0x1567cf);}(function(_0x851c1b,_0x49d0da){const _0x5d8e80=a13_0x1066,_0xaf5285=_0x851c1b();while(!![]){try{const _0x113634=-parseInt(_0x5d8e80(0x1e5))/0x1*(-parseInt(_0x5d8e80(0x1e0))/0x2)+-parseInt(_0x5d8e80(0x1d9))/0x3+parseInt(_0x5d8e80(0x1d6))/0x4+-parseInt(_0x5d8e80(0x1e2))/0x5+-parseInt(_0x5d8e80(0x1d7))/0x6+parseInt(_0x5d8e80(0x1e6))/0x7*(parseInt(_0x5d8e80(0x1dc))/0x8)+parseInt(_0x5d8e80(0x1e1))/0x9;if(_0x113634===_0x49d0da)break;else _0xaf5285['push'](_0xaf5285['shift']());}catch(_0xec0926){_0xaf5285['push'](_0xaf5285['shift']());}}}(a13_0x1a3e,0xda534));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x1a3e(){const _0xebbd46=['help','List\x20down\x20the\x20Grid\x20resources.','2330yHPKcl','1043TncetC','JvNeY','epilogue','list','list_commands','1746272JVWtcZ','6063876ozauMV','builder','3269652VXBOOl','handler','desc','87344iTqttL','strict','Jnymc','recommendCommands','576uynRCL','4021848RUJVJY','932360crxlaX'];a13_0x1a3e=function(){return _0xebbd46;};return a13_0x1a3e();}exports['command']=a13_0x3b28c5(0x1d4),exports[a13_0x3b28c5(0x1db)]=a13_0x3b28c5(0x1e4),exports[a13_0x3b28c5(0x1d8)]=function(_0x840ab8){const _0x16b68f=a13_0x3b28c5,_0x42b199={};_0x42b199['JvNeY']=_0x16b68f(0x1d5),_0x42b199[_0x16b68f(0x1de)]=_0x16b68f(0x1e3);const _0x2fbdb7=_0x42b199;return _0x840ab8['commandDir'](_0x2fbdb7[_0x16b68f(0x1e7)])['demandCommand']()['usage'](HELP_HEADER_MESSAGE['list']['root'])[_0x16b68f(0x1e8)](HELP_FOOTER_MESSAGE)[_0x16b68f(0x1df)]()[_0x16b68f(0x1dd)]()['help'](_0x2fbdb7[_0x16b68f(0x1de)]);},exports[a13_0x3b28c5(0x1da)]=function(_0x2ba3fe){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x4caa03=a14_0x443b;function a14_0x443b(_0x517416,_0x354beb){const _0x4d4b77=a14_0x4d4b();return a14_0x443b=function(_0x443b34,_0x5cf517){_0x443b34=_0x443b34-0x9e;let _0x29804f=_0x4d4b77[_0x443b34];return _0x29804f;},a14_0x443b(_0x517416,_0x354beb);}(function(_0x7c9ff1,_0x69cd60){const _0x3808ec=a14_0x443b,_0x9790ea=_0x7c9ff1();while(!![]){try{const _0x13c752=-parseInt(_0x3808ec(0xbd))/0x1*(-parseInt(_0x3808ec(0xec))/0x2)+parseInt(_0x3808ec(0xbf))/0x3+parseInt(_0x3808ec(0xef))/0x4*(-parseInt(_0x3808ec(0xe5))/0x5)+parseInt(_0x3808ec(0xe9))/0x6+-parseInt(_0x3808ec(0xb5))/0x7+parseInt(_0x3808ec(0xcf))/0x8+parseInt(_0x3808ec(0xb7))/0x9*(-parseInt(_0x3808ec(0xac))/0xa);if(_0x13c752===_0x69cd60)break;else _0x9790ea['push'](_0x9790ea['shift']());}catch(_0x418b40){_0x9790ea['push'](_0x9790ea['shift']());}}}(a14_0x4d4b,0x3274c));const fs=require('fs'),got=require(a14_0x4caa03(0xcb)),{table}=require(a14_0x4caa03(0xf0)),{v4:uuidv4}=require(a14_0x4caa03(0xed)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x4caa03(0xce)),{getCredentialsPath,getAuthHeader}=require(a14_0x4caa03(0xbe)),{sendInstrumentationEvent}=require(a14_0x4caa03(0xea));exports[a14_0x4caa03(0xb6)]=a14_0x4caa03(0xd5),exports['desc']=a14_0x4caa03(0xd4),exports[a14_0x4caa03(0xbc)]=function(_0x59dde7){const _0x415d0a=a14_0x4caa03,_0x22f824={};_0x22f824[_0x415d0a(0xa4)]=_0x415d0a(0xe1),_0x22f824[_0x415d0a(0xba)]=_0x415d0a(0xb9),_0x22f824[_0x415d0a(0xee)]='help';const _0x4f5549=_0x22f824,_0x2fc386={};_0x2fc386[_0x415d0a(0xdd)]=_0x4f5549['HIjSu'],_0x2fc386[_0x415d0a(0xcd)]=_0x4f5549['xXCuA'];const _0x59b46d={};return _0x59b46d[_0x415d0a(0xf1)]=_0x2fc386,_0x59dde7[_0x415d0a(0xe2)](HELP_HEADER_MESSAGE[_0x415d0a(0xa8)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x415d0a(0xc7)](_0x59b46d)[_0x415d0a(0xa1)](_0x4f5549[_0x415d0a(0xee)])[_0x415d0a(0xeb)];},exports['handler']=async function(_0x544684){const _0x3ab20e=a14_0x4caa03,_0x418554={'PQvlY':function(_0x544940){return _0x544940();},'fvgne':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cDucz':function(_0x21aa51,_0x4848cf,_0x252348,_0x5d88c4,_0xc1dc29,_0x3c8ad6,_0x30a772){return _0x21aa51(_0x4848cf,_0x252348,_0x5d88c4,_0xc1dc29,_0x3c8ad6,_0x30a772);},'ENgIB':'list-grid-profiles-called','aeddT':'init-not-called','ESUEd':function(_0x1009e7){return _0x1009e7();},'cUnWC':'GET','PGzYW':function(_0x3d038b,_0x360e35,_0x2471de){return _0x3d038b(_0x360e35,_0x2471de);},'RueFM':function(_0x49b29c,_0x41ec7c,_0x2fc270,_0x3fac24,_0x8e814e,_0x26c8f5,_0x4a77f7){return _0x49b29c(_0x41ec7c,_0x2fc270,_0x3fac24,_0x8e814e,_0x26c8f5,_0x4a77f7);},'mxCmJ':function(_0x27d168,_0x463260,_0x17e8ae){return _0x27d168(_0x463260,_0x17e8ae);},'uSTCz':function(_0x387067,_0x5bcef7){return _0x387067!==_0x5bcef7;},'ZKPvK':function(_0x22a379,_0x5811d6){return _0x22a379===_0x5811d6;},'ntYID':_0x3ab20e(0xcc),'usNWh':_0x3ab20e(0xb3),'oOtoK':_0x3ab20e(0xd1),'Uixau':_0x3ab20e(0xd0),'VJfYu':_0x3ab20e(0xdf),'pVDIZ':function(_0x44b4fb,_0x23dc4c){return _0x44b4fb(_0x23dc4c);},'qHNer':_0x3ab20e(0xd9),'nLBhG':function(_0x2d1afc,_0x3dff42,_0x3ef3d1,_0x1869f0,_0x108df0,_0x5e7518,_0x3d9fc1){return _0x2d1afc(_0x3dff42,_0x3ef3d1,_0x1869f0,_0x108df0,_0x5e7518,_0x3d9fc1);},'nAwZM':_0x3ab20e(0xa7),'cUWoA':function(_0x281b2e,_0x4c3fcc,_0x17ad03,_0x5bd741,_0x5c7f04,_0x9a4381,_0x4b20c9){return _0x281b2e(_0x4c3fcc,_0x17ad03,_0x5bd741,_0x5c7f04,_0x9a4381,_0x4b20c9);},'mzEYN':'server-error','NGBiF':function(_0x48413f,_0x2c8e59,_0x5bcca4,_0x571860,_0x2c1ab4,_0x3cf6bf,_0x1abb05){return _0x48413f(_0x2c8e59,_0x5bcca4,_0x571860,_0x2c1ab4,_0x3cf6bf,_0x1abb05);},'SWhqj':_0x3ab20e(0xe4)};try{global_registry[_0x3ab20e(0xd7)]=_0x418554[_0x3ab20e(0xe6)](uuidv4);let _0x5b7993=_0x3ab20e(0xbb)+AG_API_URL+_0x3ab20e(0xe7);_0x544684[_0x3ab20e(0xaf)]&&(_0x5b7993=_0x3ab20e(0xbb)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x3ab20e(0xc4)](_0x418554[_0x3ab20e(0xe6)](getCredentialsPath))&&(console[_0x3ab20e(0xad)](_0x418554[_0x3ab20e(0xdb)]),await _0x418554[_0x3ab20e(0xd8)](sendInstrumentationEvent,_0x544684,_0x418554['ENgIB'],messageTypes[_0x3ab20e(0xc6)],_0x418554[_0x3ab20e(0xc9)],null,_0x544684),process['exit'](0x1));const _0x58ab61=JSON[_0x3ab20e(0x9e)](fs[_0x3ab20e(0xb8)](_0x418554['ESUEd'](getCredentialsPath))),_0x505962={'method':_0x418554[_0x3ab20e(0xb1)],'headers':_0x418554[_0x3ab20e(0xa2)](getAuthHeader,_0x58ab61['Browserstack'][_0x3ab20e(0xf2)],_0x58ab61[_0x3ab20e(0xaa)][_0x3ab20e(0xc8)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x58ab61[_0x3ab20e(0xaa)]['username'],global_registry['bstackAccesskey']=_0x58ab61[_0x3ab20e(0xaa)][_0x3ab20e(0xc8)],_0x418554[_0x3ab20e(0xde)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes[_0x3ab20e(0xb0)],null,null,_0x544684);const _0x2c8599=await _0x418554[_0x3ab20e(0xab)](got,_0x5b7993,_0x505962);if(_0x418554[_0x3ab20e(0xa5)](_0x2c8599,null)&&_0x418554[_0x3ab20e(0xa5)](_0x2c8599,undefined)&&_0x418554[_0x3ab20e(0xa6)](_0x2c8599[_0x3ab20e(0xc1)],0xc8)){const _0x5ee29d=JSON['parse'](_0x2c8599[_0x3ab20e(0xc2)]);console[_0x3ab20e(0xa0)](_0x418554[_0x3ab20e(0xb4)]);const _0x19fde3=[];_0x19fde3['push']([_0x418554[_0x3ab20e(0xd6)],_0x418554[_0x3ab20e(0xb2)],_0x418554['Uixau'],_0x418554['VJfYu']]),_0x5ee29d[_0x3ab20e(0xc0)](_0x323d47=>{const _0x2f12e9=_0x3ab20e;_0x19fde3['push']([_0x323d47[_0x2f12e9(0xe0)],_0x323d47[_0x2f12e9(0xd2)],_0x323d47[_0x2f12e9(0xd0)],_0x323d47[_0x2f12e9(0xdf)]]);}),console[_0x3ab20e(0xa0)](_0x418554['pVDIZ'](table,_0x19fde3)),process[_0x3ab20e(0xda)](0x0);}_0x418554[_0x3ab20e(0xa6)](_0x2c8599[_0x3ab20e(0xc1)],0x191)&&(console['error'](_0x418554[_0x3ab20e(0xa3)]),await _0x418554[_0x3ab20e(0xa9)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes['ERROR'],_0x418554[_0x3ab20e(0xca)],null,_0x544684),process[_0x3ab20e(0xda)](0x1)),console[_0x3ab20e(0xad)](_0x3ab20e(0xc3)+JSON['stringify'](_0x2c8599)),await _0x418554[_0x3ab20e(0xd3)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes[_0x3ab20e(0xc6)],_0x418554[_0x3ab20e(0x9f)],_0x2c8599,_0x544684),process[_0x3ab20e(0xda)](0x1);}catch(_0x9b1eaf){console[_0x3ab20e(0xad)](_0x3ab20e(0xe8)+_0x9b1eaf[_0x3ab20e(0xdc)]),await _0x418554[_0x3ab20e(0xae)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes['ERROR'],_0x418554[_0x3ab20e(0xe3)],_0x9b1eaf,_0x544684),process['exit'](0x1);}};function a14_0x4d4b(){const _0x4908fc=['https://','builder','9211QwsTRC','../../utils/utilityMethods','880695ffLzcJ','forEach','statusCode','body','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','ENgIB','ERROR','options','password','aeddT','nAwZM','got','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','type','../../config/constants','1066528NIQfmR','region','cloud-provider','cloudProvider','cUWoA','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','grid-profiles','usNWh','requestId','cDucz','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','fvgne','stack','description','RueFM','concurrency','name','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','usage','SWhqj','unknown-error','10145Xruixf','PQvlY','/packages/cli/get-grid-profiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','726468xTdNCv','../../utils/instrumentationUtils','argv','82BDzchZ','uuid','RaSZg','684RNeiKF','table','all-grid-profiles','username','parse','mzEYN','log','help','PGzYW','qHNer','HIjSu','uSTCz','ZKPvK','unauthorised','list','nLBhG','Browserstack','mxCmJ','730EYKYLp','error','NGBiF','allGridProfiles','INFO','cUnWC','oOtoK','grid-profile-name','ntYID','638064aqlaug','command','34623UqdHrG','readFileSync','boolean','xXCuA'];a14_0x4d4b=function(){return _0x4908fc;};return a14_0x4d4b();}
|