browserstack-node-sdk 1.34.0 → 1.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +2 -2
  36. package/src/ai-sdk-node/bundle.js +1 -0
  37. package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
  38. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  39. package/src/bin/codeceptjs/command.js +1 -1
  40. package/src/bin/codeceptjs/helper.js +1 -1
  41. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  42. package/src/bin/cucumber-js/command.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  44. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  45. package/src/bin/cucumber-js/test-observability.js +1 -1
  46. package/src/bin/cucumber-js/test.setup.js +1 -1
  47. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  48. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  49. package/src/bin/integrations/command.js +1 -1
  50. package/src/bin/integrations/constants.js +1 -1
  51. package/src/bin/jest/command.js +1 -1
  52. package/src/bin/jest/customImplements/customCircus.js +1 -1
  53. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  54. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  55. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  56. package/src/bin/jest/jest.setup.js +1 -1
  57. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  58. package/src/bin/jest/test-observability/helper.js +1 -1
  59. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  60. package/src/bin/jest/test-observability/test-details.js +1 -1
  61. package/src/bin/jest/test_before.setup.js +1 -1
  62. package/src/bin/launcher/launcher.js +1 -1
  63. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  64. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  65. package/src/bin/mocha/command.js +1 -1
  66. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  67. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  68. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  69. package/src/bin/mocha/test.setup.js +1 -1
  70. package/src/bin/nightwatch/command.js +1 -1
  71. package/src/bin/playwright/accessibility-helper.js +1 -1
  72. package/src/bin/playwright/command.js +1 -1
  73. package/src/bin/playwright/globalSetup.js +1 -1
  74. package/src/bin/playwright/mock-process.js +1 -1
  75. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  76. package/src/bin/playwright/patches.js +1 -1
  77. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  78. package/src/bin/playwright/reporter/reporter.js +1 -1
  79. package/src/bin/playwright/reporter/test-details.js +1 -1
  80. package/src/bin/playwright/sessionDetails.js +1 -1
  81. package/src/bin/runner.js +1 -1
  82. package/src/bin/setup.js +1 -1
  83. package/src/bin/test-runner/index.js +1 -1
  84. package/src/bin/test-runner/runTest.js +1 -1
  85. package/src/bin/test-runner/testWorker.js +1 -1
  86. package/src/bin/utils/constants.js +1 -1
  87. package/src/bin/utils/log4jsAppender.js +1 -1
  88. package/src/bin/utils/logPatcher.js +1 -1
  89. package/src/bin/utils/logReportingAPI.js +1 -1
  90. package/src/bin/vanilla-js/command.js +1 -1
  91. package/src/browserStackSdk.js +1 -1
  92. package/src/helpers/BrowserStackSetup.js +1 -1
  93. package/src/helpers/accessibility-automation/constants.js +1 -1
  94. package/src/helpers/accessibility-automation/helper.js +1 -1
  95. package/src/helpers/accessibility-automation/scripts.js +1 -1
  96. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -0
  97. package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
  98. package/src/helpers/ats/constants.js +1 -1
  99. package/src/helpers/ats/helper.js +1 -1
  100. package/src/helpers/capsMapping.js +1 -1
  101. package/src/helpers/globals.js +1 -1
  102. package/src/helpers/helper.js +1 -1
  103. package/src/helpers/logger.js +1 -1
  104. package/src/helpers/patchHelpers.js +1 -1
  105. package/src/helpers/percy/Percy.js +1 -1
  106. package/src/helpers/percy/PercyBinary.js +1 -1
  107. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  108. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  109. package/src/helpers/percy/PercySDK.js +1 -1
  110. package/src/helpers/percy/index.js +1 -1
  111. package/src/helpers/percy/utils.js +1 -1
  112. package/src/helpers/performance-tester.js +1 -1
  113. package/src/helpers/request-spy.js +1 -1
  114. package/src/helpers/setKeepAlive.js +1 -1
  115. package/src/helpers/test-observability/constants.js +1 -1
  116. package/src/helpers/test-observability/error-handler.js +1 -1
  117. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  118. package/src/helpers/test-observability/sessionHandler.js +1 -1
  119. package/src/helpers/test-observability/utils.js +1 -1
  120. package/src/helpers/testhub/constants.js +1 -1
  121. package/src/helpers/testhub/testhubHandler.js +1 -1
  122. package/src/helpers/testhub/utils.js +1 -1
  123. package/src/helpers/timeoutPromise.js +1 -0
  124. package/src/helpers/w3cMapping.js +1 -1
  125. package/src/hubAllocationMethods.js +1 -1
  126. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x45d5(){const _0x1856b2=['cluster-name','includes','ZIRLN','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','IlzWU','1554723YJlbwg','aRWxD','YqqRT','UpIKH','parse','bkuIF','stack','bpWQp','jJWWD','replace','rPdka','FnvBS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qGOyf','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Grid\x20can\x20be\x20accessed\x20at:\x20','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','LOG','DghHk','metadata','baiET','YTKUt','256926hbskcq','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HfWYA','cSVBJ','name','ingress-nginx-controller','hubVersion','clusterRegion','connectionTimeout','10vUIrxE','qvIeq','WaiLW','Found\x20VPC:\x20','ktDal','sanux','abfgj','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','namespace','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','rMSGi','/packages/cli/get-grid-url?gridIdentifier=','lMgsV','7173287TWtXPq','cloud-provider','SoJEU','BbxJG','1|0|3|2|4','gridProfile','Grid\x20profile\x20fetched\x20from\x20backend','isNewAWSCluster','getResourceClientId','<PasswordPlaceholder>','non-aws-azure-cluster','createOtherResources','command','warn','HidwH','route53','QnRmy','Gzawj','init-not-called','dktNT','\x27\x20grid\x20profile','createdBy','description','info','writeFileSync','isSubnetsValid','pre-spawned-invalid-subnets','FSYvI','private-ingress-nginx-controller','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','handler','\x20are\x20not\x20present\x20in\x20VPC:\x20','create-grid-checks-null-response','HrLaY','desc','CLI\x20run\x20finished:\x20','maxNodes','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Spawning\x20the\x20grid\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Jgutr','DscTz','sendEventToBackend','gGtqz','pqQvU','gridName','oHqHz','DXoxM','://','iwqXl','cRTEZ','OnbBG','XPQvl','BSnHn','WINBy','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','iivbB','oBvan','create','gridProfileId','nwMQl','arvLj','JVXvm','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tiIEV','NxLRP','AYEou','BLJoD','yCMWs','alreadyPresent','type','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','user','toLowerCase','browserVersion','IjOWL','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','xXJUo','https://','iWnrN','SuoIT','length','concurrency','JOiAD','qkKkY','options','Rlbbe','KhCZV','vpc','usage','wXWCu','create-grid-checks-grid-already-exists','fetchLocalCreds','help','builder','XRYLS','xkHXD','bstackAccesskey','ZLrVP','pre-spawned-invalid-vpc','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','MGKEq','CXBVN','isPrivateGrid','s3bucket','Found\x20Subnets:\x20','ERROR','YGLIu','imJQB','ACSoN','CLI_RUN_STARTED','Cluster\x20','XFwoA','\x20in\x20existing\x20cluster\x20\x27','gridProfiles','grid-name','qMOKs','DoZVN','rFtaQ','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','vuXES','updatePreSpawnedCluster','Namespace\x20created','vVOqf','delay','vQCbH','cloudProvider','vBSku','VcRKD','iyYTZ','statusCode','stringify','pre-spawned-subnets-not-selected','configureIfNotConfigured','423712MAsQoq','iRaWM','sexdG','hbNUd','Spawning\x20Grid\x20on\x20the\x20Cluster','body','epilogue','SZpWQ','../../cloudproviders/utils','tMuNA','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','OyTTP','665010rSDTKE','hoUkD','OFgMH','103204UzUfQg','sendResourceDataToHST','noeqD','LYJXf','Spawning\x20grid\x20on\x20to\x20the\x20cluster','INFO','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','xfxRV','FvRQr','default','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','debug','LxtYH','\x20using\x20\x27','vpufJ','7|3|6|2|4|1|0|8|5','../../utils/gridComponents','true','../../utils/instrumentationUtils','cEdAG','Namespace\x20Created','string','clusterName','prespawned-cluster-args-not-passed','VDHAq','awEUF','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','region','bstackUsername','hNZcz','yxyks','gAlMQ','HsNxe','QnexA','1175060pWymCn','isClusterPresent','izyXY','https','UOUhz','../../utils/utilityMethods','Ogsak','jnRSU','grid','grid-spawning-failed','http','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','IhjSA','../../utils/createk8sClient','48NqmnDE','annotations','exit','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','private-grid','ejkrG','yaAYP','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.','get-grid-url-auth-failed','grid-profile','split','../../utils/userInput','iSvRb','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','BwYFF','CLI\x20run\x20started','hUrLQ','username','lpXjq','jQmSu','prKLc','/packages/cli/create-grid-checks','isVPCPresent','zxYcg','Creating\x20namespace','Browserstack','6|7|5|0|8|3|2|4|1','puKNZ','get-grid-url-non-200','BEIZQ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','qwDfu','YmsEy','Cluster\x20created\x20successfully','addListeners','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','FXOBA','yfxPt','SrhfJ','create-grid-checks-invalid-profile','Grid\x20spawned\x20on\x20the\x20cluster','lQImX','privateGrid','Chhjk','password','LJTeT','pnNKG','ZjWxe','yZPpW','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','tDPla','PWbbe','requestId','HUYjV','existsSync','Ftoiz','getGridHostname','LpNMR','98cCsHMD','mhEjQ','defaultGridProfile','Deleting\x20the\x20CloudFormation\x20Stacks','UqUan','SkokH','reconnecting-websocket','message','zKKeO','../../utils/webSocketUtils','grsIF','pyBUJ','<UsernamePlaceholder>','Create\x20a\x20private/public\x20grid.','../../config/logger','MeKnN','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','30KwhceL','create-grid-called','JZqUt'];a9_0x45d5=function(){return _0x1856b2;};return a9_0x45d5();}const a9_0x28992b=a9_0x446c;(function(_0x5be46d,_0x1b8584){const _0x4a1753=a9_0x446c,_0x412997=_0x5be46d();while(!![]){try{const _0x40fde5=parseInt(_0x4a1753(0xf8))/0x1+-parseInt(_0x4a1753(0x104))/0x2+parseInt(_0x4a1753(0x183))/0x3*(-parseInt(_0x4a1753(0x107))/0x4)+-parseInt(_0x4a1753(0x129))/0x5+-parseInt(_0x4a1753(0x1a1))/0x6*(-parseInt(_0x4a1753(0x172))/0x7)+parseInt(_0x4a1753(0x137))/0x8*(parseInt(_0x4a1753(0x18b))/0x9)+parseInt(_0x4a1753(0x1aa))/0xa*(-parseInt(_0x4a1753(0x1b7))/0xb);if(_0x40fde5===_0x1b8584)break;else _0x412997['push'](_0x412997['shift']());}catch(_0x594e56){_0x412997['push'](_0x412997['shift']());}}}(a9_0x45d5,0x8e19c));function a9_0x446c(_0x2d6f53,_0x37de94){const _0x45d5c8=a9_0x45d5();return a9_0x446c=function(_0x446c5a,_0x3637ca){_0x446c5a=_0x446c5a-0xcb;let _0x5024b9=_0x45d5c8[_0x446c5a];return _0x5024b9;},a9_0x446c(_0x2d6f53,_0x37de94);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x28992b(0x178)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x28992b(0x17b)),{logger}=require(a9_0x28992b(0x180)),{inputCloudProviderKeys}=require(a9_0x28992b(0x142)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x28992b(0x12e)),{getCloudProviderObject}=require(a9_0x28992b(0x100)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x28992b(0x117)),{createK8sClient}=require(a9_0x28992b(0x136)),{sendInstrumentationEvent}=require(a9_0x28992b(0x119));exports[a9_0x28992b(0x1c3)]=a9_0x28992b(0x131),exports[a9_0x28992b(0x1d9)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x28992b(0xd0)]=function(_0x3d0d68){const _0x5ea4df=a9_0x28992b,_0x3c7e1b={};_0x3c7e1b[_0x5ea4df(0x1b0)]=_0x5ea4df(0x199),_0x3c7e1b['jnRSU']=_0x5ea4df(0x11c),_0x3c7e1b['mhEjQ']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3c7e1b[_0x5ea4df(0x16f)]=_0x5ea4df(0x197),_0x3c7e1b['jJWWD']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3c7e1b['YqqRT']=_0x5ea4df(0x1de),_0x3c7e1b[_0x5ea4df(0xd2)]=_0x5ea4df(0x17f),_0x3c7e1b[_0x5ea4df(0x1b9)]=_0x5ea4df(0xcf);const _0x56d8c1=_0x3c7e1b,_0x5a77e1={};_0x5a77e1[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x1b0)],_0x5a77e1['type']=_0x56d8c1[_0x5ea4df(0x130)];const _0x46c7af={};_0x46c7af[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x173)],_0x46c7af['type']=_0x56d8c1['jnRSU'];const _0x162a7c={};_0x162a7c[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x16f)],_0x162a7c[_0x5ea4df(0x1fd)]=_0x56d8c1[_0x5ea4df(0x130)];const _0x4677a6={};_0x4677a6['description']=_0x56d8c1[_0x5ea4df(0x193)],_0x4677a6[_0x5ea4df(0x1fd)]=_0x56d8c1['jnRSU'];const _0x576b14={};_0x576b14[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x18d)],_0x576b14['type']=_0x56d8c1[_0x5ea4df(0x130)];const _0x38c2d3={};_0x38c2d3['description']=_0x56d8c1[_0x5ea4df(0xd2)],_0x38c2d3[_0x5ea4df(0x1fd)]=_0x56d8c1['jnRSU'];const _0x4b37fd={};return _0x4b37fd[_0x5ea4df(0xe5)]=_0x5a77e1,_0x4b37fd[_0x5ea4df(0x140)]=_0x46c7af,_0x4b37fd[_0x5ea4df(0x186)]=_0x162a7c,_0x4b37fd['cloud-provider']=_0x4677a6,_0x4b37fd[_0x5ea4df(0x122)]=_0x576b14,_0x4b37fd[_0x5ea4df(0x13b)]=_0x38c2d3,_0x3d0d68['usage'](HELP_HEADER_MESSAGE[_0x5ea4df(0x1f1)])[_0x5ea4df(0xfe)](HELP_FOOTER_MESSAGE)[_0x5ea4df(0x20c)](_0x4b37fd)[_0x5ea4df(0xcf)](_0x56d8c1[_0x5ea4df(0x1b9)])['argv'];},exports[a9_0x28992b(0x1d5)]=async function(_0x365fb0){const _0x51d05a=a9_0x28992b,_0x173de8={'OyTTP':_0x51d05a(0x1c4),'QnRmy':_0x51d05a(0x133),'iRaWM':_0x51d05a(0x12c),'yfxPt':_0x51d05a(0x199),'sanux':_0x51d05a(0x11c),'wXWCu':_0x51d05a(0x1a2),'zlKlJ':_0x51d05a(0x197),'Jgutr':_0x51d05a(0x111),'bkuIF':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bpWQp':_0x51d05a(0x17f),'bACrK':'help','dktNT':_0x51d05a(0x151),'ZLrVP':_0x51d05a(0x15b),'AYEou':function(_0x5898fc){return _0x5898fc();},'qvIeq':function(_0x2fca8a){return _0x2fca8a();},'cEdAG':function(_0x21f4c4,_0x527fac){return _0x21f4c4!==_0x527fac;},'bERsh':_0x51d05a(0x14e),'VDHAq':_0x51d05a(0x1dc),'IhjSA':function(_0xe20777,_0x108905,_0x2ed8e9,_0x34ac98,_0x56d9db,_0x1d8863,_0x4a08ff){return _0xe20777(_0x108905,_0x2ed8e9,_0x34ac98,_0x56d9db,_0x1d8863,_0x4a08ff);},'XRYLS':_0x51d05a(0x184),'UpIKH':_0x51d05a(0x1c9),'iwqXl':_0x51d05a(0x17e),'ZjWxe':_0x51d05a(0x1c0),'VcRKD':'Adding\x20Websocket\x20listeners','MeKnN':function(_0x2990c8,_0x47c802){return _0x2990c8===_0x47c802;},'YGLIu':_0x51d05a(0x20d),'MCrYd':_0x51d05a(0xf3),'lpXjq':function(_0x5645e4,_0x1f9762){return _0x5645e4!==_0x1f9762;},'FXOBA':'yFqSW','wRECR':_0x51d05a(0x182),'cRTEZ':function(_0x30e069,_0x3394f7,_0x24ee5e,_0x54b8e1,_0x1f53df,_0x3bbedc,_0x3e368d,_0x114692){return _0x30e069(_0x3394f7,_0x24ee5e,_0x54b8e1,_0x1f53df,_0x3bbedc,_0x3e368d,_0x114692);},'UjjCC':_0x51d05a(0x11e),'prKLc':function(_0x16b7e3,_0x4a4fc6){return _0x16b7e3!==_0x4a4fc6;},'aRWxD':'rqUoN','lQImX':_0x51d05a(0x15a),'hbNUd':_0x51d05a(0x1c1),'oADdG':_0x51d05a(0x118),'QnexA':_0x51d05a(0x1e3),'BwYFF':_0x51d05a(0x1e2),'yxyks':function(_0x35277f,_0x122dd3){return _0x35277f===_0x122dd3;},'qGOyf':_0x51d05a(0x1ba),'SrhfJ':_0x51d05a(0x12d),'Chhjk':_0x51d05a(0x1c5),'zKKeO':'GET','HUYjV':function(_0x58140c,_0x5e441a,_0x3050bd){return _0x58140c(_0x5e441a,_0x3050bd);},'SuoIT':function(_0x263a2e,_0x17feea){return _0x263a2e===_0x17feea;},'sexdG':'pEYuO','MGKEq':_0x51d05a(0x1b1),'SZpWQ':_0x51d05a(0x1d7),'vuXES':function(_0x2fd076,_0x70b474){return _0x2fd076===_0x70b474;},'xfxRV':function(_0x78a0cb,_0xd3a890){return _0x78a0cb!==_0xd3a890;},'iivbB':_0x51d05a(0x154),'imJQB':_0x51d05a(0x176),'tDPla':_0x51d05a(0x1d4),'UCEjl':'create-grid-checks-auth-failed','BSnHn':function(_0xacbdd9,_0x11323e){return _0xacbdd9!==_0x11323e;},'yZPpW':function(_0x2bcb4d,_0x38b7a2){return _0x2bcb4d===_0x38b7a2;},'DoZVN':_0x51d05a(0xe2),'iSvRb':_0x51d05a(0x177),'mOjze':'create-grid-checks-non-200','ACSoN':_0x51d05a(0x1bd),'PWbbe':_0x51d05a(0x188),'LYJXf':_0x51d05a(0x147),'DghHk':_0x51d05a(0x155),'yaAYP':function(_0x98f327,_0x1e25b3,_0x5ee19f,_0x186db9,_0x13d3fc,_0x29e29c,_0x2c9c01,_0xf88d9a){return _0x98f327(_0x1e25b3,_0x5ee19f,_0x186db9,_0x13d3fc,_0x29e29c,_0x2c9c01,_0xf88d9a);},'puKNZ':_0x51d05a(0xcd),'ktDal':function(_0x41102c,_0x5325fd){return _0x41102c!==_0x5325fd;},'DXoxM':'QKBNm','hNZcz':function(_0x1ead6a,_0x547743){return _0x1ead6a===_0x547743;},'yCMWs':_0x51d05a(0x1ea),'hoUkD':_0x51d05a(0x1ed),'grsIF':_0x51d05a(0x1b6),'qwDfu':_0x51d05a(0x10d),'vQCbH':function(_0x2c4193,_0xd0eacb,_0x4cb2aa,_0x1b6a75,_0x1993dd,_0x9e8a0b,_0x25962c,_0x3e5ead){return _0x2c4193(_0xd0eacb,_0x4cb2aa,_0x1b6a75,_0x1993dd,_0x9e8a0b,_0x25962c,_0x3e5ead);},'DscTz':_0x51d05a(0x15f),'xXJUo':_0x51d05a(0x20a),'awEUF':_0x51d05a(0x10f),'QygvT':function(_0x661a84,_0x20a071,_0x1423e1,_0x552acc,_0x259089,_0x2a2d8,_0x3478e4,_0x1c70ef,_0x29b61d,_0xebe861,_0x386360,_0x44c651){return _0x661a84(_0x20a071,_0x1423e1,_0x552acc,_0x259089,_0x2a2d8,_0x3478e4,_0x1c70ef,_0x29b61d,_0xebe861,_0x386360,_0x44c651);},'cNiwM':function(_0x263ed1,_0x386ebd){return _0x263ed1===_0x386ebd;},'cSVBJ':_0x51d05a(0xe6),'jQmSu':_0x51d05a(0x116),'AnrNW':function(_0xe7408b,_0x433c58,_0x47f198,_0x4b271d,_0x12adce,_0xa813fb,_0x2a3f21){return _0xe7408b(_0x433c58,_0x47f198,_0x4b271d,_0x12adce,_0xa813fb,_0x2a3f21);},'WdHWc':_0x51d05a(0x144),'FnvBS':function(_0x51c646,_0x2f9caa){return _0x51c646===_0x2f9caa;},'WaiLW':function(_0x2523ac,_0x51f83a,_0x483554,_0x307912){return _0x2523ac(_0x51f83a,_0x483554,_0x307912);},'NxLRP':_0x51d05a(0x189),'XPQvl':_0x51d05a(0x1b3),'HsNxe':function(_0x56611d,_0x50dcee){return _0x56611d!==_0x50dcee;},'ejkrG':function(_0x413e82,_0x398704){return _0x413e82===_0x398704;},'YTKUt':_0x51d05a(0x169),'tiIEV':function(_0x436382,_0x378174){return _0x436382!=_0x378174;},'IjOWL':function(_0x2b4260,_0x17b1c1){return _0x2b4260!==_0x17b1c1;},'qkKkY':function(_0xfd6818,_0x4c34ad){return _0xfd6818>_0x4c34ad;},'JVXvm':function(_0x308310,_0x444a9d){return _0x308310===_0x444a9d;},'rPdka':_0x51d05a(0xd6),'IlzWU':function(_0x2767ef,_0x5429b8,_0xdb5b11,_0x503681,_0x47441e,_0x5ae458,_0x45fe96,_0x5a7057){return _0x2767ef(_0x5429b8,_0xdb5b11,_0x503681,_0x47441e,_0x5ae458,_0x45fe96,_0x5a7057);},'lcERh':_0x51d05a(0xf6),'HfWYA':_0x51d05a(0x19b),'CXBVN':_0x51d05a(0xd5),'arvLj':function(_0x3d7e53,_0x2b8894){return _0x3d7e53===_0x2b8894;},'vVOqf':_0x51d05a(0x1d1),'vBSku':_0x51d05a(0x1bb),'YmsEy':_0x51d05a(0x13e),'pnNKG':_0x51d05a(0x158),'pyBUJ':function(_0x86cd3d,_0x89302){return _0x86cd3d(_0x89302);},'nwMQl':function(_0x31312f,_0x2454a3){return _0x31312f===_0x2454a3;},'LpNMR':function(_0x3250a5,_0x1d615e){return _0x3250a5==_0x1d615e;},'Gzawj':_0x51d05a(0x14f),'shSNr':function(_0x37ef29,_0x2ce3bf){return _0x37ef29!==_0x2ce3bf;},'rMSGi':_0x51d05a(0x110),'izyXY':'Browserstack','FSYvI':_0x51d05a(0x11b),'LJTeT':_0x51d05a(0xec),'Ogsak':_0x51d05a(0x10b),'rFtaQ':_0x51d05a(0xfc),'bsLpM':function(_0xcd49af,_0x4426e9){return _0xcd49af===_0x4426e9;},'BLJoD':function(_0x47f8b2,_0x210192,_0x4f23a1,_0xf20196,_0x12bc5f,_0x1432bf,_0xa377aa,_0x43ca2e,_0x563efa,_0x4d0712,_0x3f05ed){return _0x47f8b2(_0x210192,_0x4f23a1,_0xf20196,_0x12bc5f,_0x1432bf,_0xa377aa,_0x43ca2e,_0x563efa,_0x4d0712,_0x3f05ed);},'iWnrN':_0x51d05a(0x160),'yidNF':_0x51d05a(0x1ee),'baiET':function(_0x465346,_0x1571ab,_0x4e86a9,_0x5e14ca,_0x565338){return _0x465346(_0x1571ab,_0x4e86a9,_0x5e14ca,_0x565338);},'UDMOk':_0x51d05a(0x1d3),'oBvan':_0x51d05a(0x1a6),'noeqD':'ingress-nginx','oHqHz':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','UGoNK':'get-grid-url-null-response','ThQSW':function(_0x9ad728,_0x392688){return _0x9ad728===_0x392688;},'HrLaY':_0x51d05a(0x121),'KhCZV':_0x51d05a(0x13f),'gAlMQ':function(_0x4f58fb,_0x512655){return _0x4f58fb!==_0x512655;},'JZqUt':function(_0x3b63a7,_0x172ed5,_0x169530,_0x5cf25f,_0x555076,_0x4d0f2a,_0x1b706d,_0x3a8019){return _0x3b63a7(_0x172ed5,_0x169530,_0x5cf25f,_0x555076,_0x4d0f2a,_0x1b706d,_0x3a8019);},'LxtYH':_0x51d05a(0x153),'vpufJ':function(_0x5b0237,_0x1c7469,_0x21cc5f,_0x473fcc,_0x3c667a,_0x27ad57){return _0x5b0237(_0x1c7469,_0x21cc5f,_0x473fcc,_0x3c667a,_0x27ad57);},'tMuNA':function(_0x2b8d07,_0x4170ca,_0x55f930,_0x123349,_0x2b57ae,_0x3e780e,_0x107e88){return _0x2b8d07(_0x4170ca,_0x55f930,_0x123349,_0x2b57ae,_0x3e780e,_0x107e88);},'OFgMH':_0x51d05a(0x132)};let _0xbfa9fe=![],_0x174e0d,_0x3d863b,_0x1777a8,_0x7a0b16,_0x587efe,_0x2ef632,_0x4f60fd,_0x1b76ef,_0x3b88f2,_0x3a2e03,_0x5e63a8,_0x8c548a,_0x3acf6b=0x1,_0x188ce8=0xe;try{global_registry[_0x51d05a(0x16c)]=_0x173de8[_0x51d05a(0x1f9)](uuidv4),global_registry[_0x51d05a(0xd9)]=![];!fs[_0x51d05a(0x16e)](_0x173de8[_0x51d05a(0x1ab)](getCredentialsPath))&&(_0x173de8['cEdAG'](_0x173de8['bERsh'],_0x173de8['bERsh'])?_0x5b8768['info']('Found\x20VPC:\x20'+_0x13ed2e+'\x20'):(console[_0x51d05a(0x15b)](_0x173de8[_0x51d05a(0x11f)]),await _0x173de8[_0x51d05a(0x135)](sendInstrumentationEvent,_0x365fb0,_0x173de8[_0x51d05a(0xd1)],messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0x18e)],null,_0x365fb0),process[_0x51d05a(0x139)](0x1)));await _0x173de8['IhjSA'](sendInstrumentationEvent,_0x365fb0,_0x173de8[_0x51d05a(0xd1)],messageTypes[_0x51d05a(0x10c)],null,null,_0x365fb0);const _0x41239f=JSON['parse'](fs['readFileSync'](_0x173de8[_0x51d05a(0x1f9)](getCredentialsPath)));global_registry[_0x51d05a(0x123)]=_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x148)],global_registry[_0x51d05a(0xd3)]=_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x164)];const _0x351133=WS_ENDPOINT['replace'](_0x173de8[_0x51d05a(0x1e8)],_0x41239f[_0x51d05a(0x150)]['username'])[_0x51d05a(0x194)](_0x173de8[_0x51d05a(0x167)],_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x164)]),_0x35ce15={};_0x35ce15['WebSocket']=ws,_0x35ce15[_0x51d05a(0x1a9)]=0x36ee80,_0x3a2e03=new ReconnectingWebSocket(_0x351133,[],_0x35ce15),logger[_0x51d05a(0x112)](_0x173de8[_0x51d05a(0xf2)]),webSocketUtils[_0x51d05a(0x159)](_0x3a2e03,_0x365fb0[_0x51d05a(0x1ff)],_0x365fb0['password']);let _0x3897e9=DEFAULT_GRID_NAME;if(_0x365fb0[_0x51d05a(0x11d)]||_0x365fb0[_0x51d05a(0xf0)]||_0x365fb0[_0x51d05a(0x122)]){if(_0x173de8[_0x51d05a(0x181)](_0x173de8[_0x51d05a(0xdd)],_0x173de8['MCrYd']))_0x144074['isPrivateGrid']=!![];else{if(!(_0x365fb0[_0x51d05a(0x11d)]&&_0x365fb0[_0x51d05a(0xf0)]&&_0x365fb0['region'])){if(_0x173de8[_0x51d05a(0x149)](_0x173de8[_0x51d05a(0x15c)],_0x173de8[_0x51d05a(0x15c)])){const _0x189678={};_0x189678[_0x51d05a(0x1fd)]=_0x4fa859[_0x51d05a(0x19c)],_0x189678[_0x51d05a(0x179)]=_0x51d05a(0xe1)+_0x130112+_0x51d05a(0x13a),_0x1c7d1e[_0x51d05a(0x1e1)](_0x312828,_0x189678,_0x173de8[_0x51d05a(0x103)]),_0x17228f[_0x51d05a(0x1ce)](_0x51d05a(0xe1)+_0x2d4159+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x18eccd=!![];}else _0x174e0d=_0x173de8['wRECR'],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8['UjjCC'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1);}![AWS,AZURE,GCP][_0x51d05a(0x187)](_0x365fb0[_0x51d05a(0xf0)][_0x51d05a(0x200)]())&&(_0x173de8['prKLc'](_0x173de8['aRWxD'],_0x173de8[_0x51d05a(0x18c)])?_0x350442[_0x51d05a(0x15b)](_0x51d05a(0x134)+_0x32f3ea+'\x20\x0a'+_0x348aef[_0x51d05a(0xf5)](_0x941542['stack'])):(_0x174e0d=_0x173de8[_0x51d05a(0x161)],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xfb)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1))),_0x365fb0[_0x51d05a(0x162)]&&_0x173de8[_0x51d05a(0x181)](_0x365fb0[_0x51d05a(0x162)][_0x51d05a(0x200)](),_0x173de8['oADdG'])&&(_0x173de8[_0x51d05a(0x11a)](_0x173de8[_0x51d05a(0x128)],_0x173de8[_0x51d05a(0x145)])?global_registry[_0x51d05a(0xd9)]=!![]:_0x43215a=_0x173de8[_0x51d05a(0x1c7)]),_0xbfa9fe=!![],_0x1777a8=_0x365fb0[_0x51d05a(0x11d)],_0x3d863b=_0x365fb0[_0x51d05a(0xf0)]['toLowerCase'](),_0x7a0b16=_0x365fb0[_0x51d05a(0x122)];}}_0x365fb0[_0x51d05a(0x1e4)]&&(_0x173de8[_0x51d05a(0x125)](_0x173de8['qGOyf'],_0x173de8[_0x51d05a(0x198)])?_0x3897e9=_0x365fb0['gridName']:_0x3016b1=_0x5ebfda[_0x13e2e9[_0x51d05a(0x1bc)]]);_0x365fb0['gridProfile']&&(_0x173de8[_0x51d05a(0x149)](_0x173de8[_0x51d05a(0x15e)],_0x173de8[_0x51d05a(0x163)])?global_registry[_0x51d05a(0x1bc)]=_0x365fb0[_0x51d05a(0x1bc)]:(_0x4a6df2=_0x138ab5['route53'],_0x10b264=_0x173de8['iRaWM']));global_registry[_0x51d05a(0x1e4)]=_0x3897e9;const _0x19f989={'method':_0x173de8[_0x51d05a(0x17a)],'headers':_0x173de8[_0x51d05a(0x16d)](getAuthHeader,_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x148)],_0x41239f['Browserstack'][_0x51d05a(0x164)]),'throwHttpErrors':![]},_0x15517b='https://'+AG_API_URL+_0x51d05a(0x14c),_0x4ec9bd={};_0x4ec9bd[_0x51d05a(0x1e4)]=_0x3897e9;const _0x3ea63d={'searchParams':_0x4ec9bd,'throwHttpErrors':![],..._0x19f989},_0x1e3ec3=_0x3ea63d,_0x3a77b8=await _0x173de8['HUYjV'](got,_0x15517b,_0x1e3ec3);(_0x173de8[_0x51d05a(0x181)](_0x3a77b8,null)||_0x173de8[_0x51d05a(0x207)](_0x3a77b8,undefined))&&(_0x173de8[_0x51d05a(0x14b)](_0x173de8[_0x51d05a(0xfa)],_0x173de8[_0x51d05a(0xfa)])?_0x3b3c92[_0x51d05a(0x1bc)]=_0x5f4ce0[_0x51d05a(0x1bc)]:(_0x174e0d=_0x173de8[_0x51d05a(0xd7)],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes['ERROR'],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xff)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1)));_0x173de8[_0x51d05a(0xea)](_0x3a77b8[_0x51d05a(0xf4)],0x191)&&(_0x173de8[_0x51d05a(0x10e)](_0x173de8[_0x51d05a(0x1ef)],_0x173de8[_0x51d05a(0xde)])?(_0x174e0d=_0x173de8[_0x51d05a(0x16a)],await _0x173de8['cRTEZ'](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8['UCEjl'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1)):_0x4d665b[_0x51d05a(0x108)]());if(_0x173de8[_0x51d05a(0x1ec)](_0x3a77b8[_0x51d05a(0xf4)],0xc8)){if(_0x173de8[_0x51d05a(0x168)](_0x173de8[_0x51d05a(0xe7)],_0x173de8[_0x51d05a(0x143)])){const _0x1ce852={};_0x1ce852[_0x51d05a(0x1cd)]=_0x173de8[_0x51d05a(0x15d)],_0x1ce852['type']=_0x173de8[_0x51d05a(0x1af)];const _0x3e9b9a={};_0x3e9b9a['description']=_0x173de8[_0x51d05a(0xcc)],_0x3e9b9a[_0x51d05a(0x1fd)]=_0x173de8[_0x51d05a(0x1af)];const _0xc50f3f={};_0xc50f3f[_0x51d05a(0x1cd)]=_0x173de8['zlKlJ'],_0xc50f3f[_0x51d05a(0x1fd)]=_0x173de8[_0x51d05a(0x1af)];const _0x483be7={};_0x483be7['description']=_0x173de8[_0x51d05a(0x1df)],_0x483be7['type']=_0x173de8['sanux'];const _0x468b26={};_0x468b26[_0x51d05a(0x1cd)]=_0x173de8[_0x51d05a(0x190)],_0x468b26[_0x51d05a(0x1fd)]=_0x173de8[_0x51d05a(0x1af)];const _0x184fdd={};_0x184fdd[_0x51d05a(0x1cd)]=_0x173de8[_0x51d05a(0x192)],_0x184fdd['type']=_0x173de8[_0x51d05a(0x1af)];const _0x59dc1f={};return _0x59dc1f[_0x51d05a(0xe5)]=_0x1ce852,_0x59dc1f['grid-profile']=_0x3e9b9a,_0x59dc1f[_0x51d05a(0x186)]=_0xc50f3f,_0x59dc1f[_0x51d05a(0x1b8)]=_0x483be7,_0x59dc1f[_0x51d05a(0x122)]=_0x468b26,_0x59dc1f['private-grid']=_0x184fdd,_0x19f4a3[_0x51d05a(0xcb)](_0x595f9f[_0x51d05a(0x1f1)])[_0x51d05a(0xfe)](_0x331f52)[_0x51d05a(0x20c)](_0x59dc1f)['help'](_0x173de8['bACrK'])['argv'];}else _0x174e0d='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x51d05a(0xf5)](_0x3a77b8),await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes['ERROR'],_0x173de8[_0x51d05a(0xd1)],_0x173de8['mOjze'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1);}const _0x21524c=JSON[_0x51d05a(0x18f)](_0x3a77b8[_0x51d05a(0xfd)]),_0x3cbe06={};_0x3cbe06[_0x51d05a(0x1fd)]=WS_EVENTS['CLI_RUN_STARTED'],_0x3cbe06[_0x51d05a(0x179)]=_0x51d05a(0x146),webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x3cbe06);const _0x384c97={};_0x384c97[_0x51d05a(0x1fd)]=WS_EVENTS['LOG'],_0x384c97[_0x51d05a(0x179)]=_0x173de8[_0x51d05a(0xdf)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x384c97);if(_0x21524c[_0x51d05a(0x1fc)]){if(_0x173de8[_0x51d05a(0xea)](_0x173de8[_0x51d05a(0x16b)],_0x173de8[_0x51d05a(0x10a)])){const _0x12d6aa=_0x173de8[_0x51d05a(0x1ca)][_0x51d05a(0x141)]('|');let _0x3c566b=0x0;while(!![]){switch(_0x12d6aa[_0x3c566b++]){case'0':const _0xc43b9={};_0xc43b9[_0x51d05a(0x1fd)]=_0x2e8832[_0x51d05a(0x19c)],_0xc43b9[_0x51d05a(0x179)]=_0x276ab2,_0x34d006['sendEventToBackend'](_0x56f7f0,_0xc43b9);continue;case'1':_0x19afd9[_0x51d05a(0x201)]=_0x1add99[_0x51d05a(0x201)];continue;case'2':_0x3cdcba[_0x51d05a(0x11d)]=_0x9c2e55;continue;case'3':_0x396c68[_0x51d05a(0x1a8)]=_0x42c289;continue;case'4':_0x3e1373[_0x51d05a(0x1a7)]=_0x3521c2[_0x51d05a(0x1a7)];continue;case'5':_0x1603f1[_0x51d05a(0x1ce)](_0xc0d201);continue;case'6':const _0x3e4410={};_0x3e4410['type']=_0x22419e['CLI_RUN_STARTED'],_0x3e4410[_0x51d05a(0x179)]=_0x51d05a(0x146),_0x39d021['sendEventToBackend'](_0x1e7974,_0x3e4410);continue;case'7':_0xb920c=_0x51d05a(0x1dd)+_0x1eeca3+_0x51d05a(0xe3)+_0x3c6e20+'\x27';continue;case'8':_0x46e34f[_0x51d05a(0xf0)]=_0x1105c5;continue;}break;}}else _0x174e0d=_0x173de8[_0x51d05a(0x19d)],await _0x173de8[_0x51d05a(0x13d)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8['XRYLS'],_0x173de8[_0x51d05a(0x152)],_0x173de8[_0x51d05a(0xd4)]),logger['error'](_0x174e0d),process[_0x51d05a(0x139)](0x1);}const _0xf53109=_0x21524c[_0x51d05a(0xe4)];let _0x52d88a=_0xf53109[_0x21524c[_0x51d05a(0x174)]];_0x365fb0[_0x51d05a(0x1bc)]&&(_0x173de8[_0x51d05a(0x1ae)](_0x173de8[_0x51d05a(0x1e6)],_0x173de8[_0x51d05a(0x1e6)])?_0x4cbc0e[_0x51d05a(0xd9)]=!![]:_0x52d88a=_0xf53109[_0x365fb0[_0x51d05a(0x1bc)]]);if(_0x173de8[_0x51d05a(0x124)](_0xbfa9fe,![])){if(_0x173de8[_0x51d05a(0x1ae)](_0x173de8[_0x51d05a(0x1fb)],_0x173de8[_0x51d05a(0x105)])){_0x173de8['MeKnN'](_0x52d88a,undefined)&&(_0x173de8[_0x51d05a(0x125)](_0x173de8[_0x51d05a(0x17c)],_0x173de8[_0x51d05a(0x17c)])?(_0x174e0d=_0x173de8[_0x51d05a(0x156)],await _0x173de8[_0x51d05a(0xef)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8['XRYLS'],_0x173de8[_0x51d05a(0x1e0)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1)):_0xe45b10[_0x51d05a(0xf0)]={});global_registry[_0x51d05a(0x1f2)]=_0x52d88a['id'],_0x174e0d='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x3897e9+_0x51d05a(0x114)+_0x52d88a[_0x51d05a(0x1a5)]+_0x51d05a(0x1cb),logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x166cf0={};_0x166cf0[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x166cf0[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x166cf0),_0x3d863b=_0x52d88a[_0x51d05a(0xf0)],_0x1777a8=_0x52d88a[_0x51d05a(0x11d)],_0x7a0b16=_0x52d88a['region'],_0x587efe=_0x52d88a[_0x51d05a(0x209)],_0x2ef632=_0x52d88a['instanceType'],_0x4f60fd=_0x52d88a[_0x51d05a(0x20f)],securityGroups=_0x52d88a['securityGroups'],subnets=_0x52d88a['subnets'],_0x1b76ef=_0x52d88a[_0x51d05a(0xda)],_0x3acf6b=_0x52d88a['minNodes'],_0x188ce8=_0x52d88a[_0x51d05a(0x1db)],_0x5e63a8=_0x21524c[_0x51d05a(0x1a7)],_0x8c548a=_0x21524c[_0x51d05a(0x201)],_0x173de8[_0x51d05a(0x1ae)](_0x52d88a[_0x51d05a(0x162)],undefined)&&_0x52d88a[_0x51d05a(0x162)]&&(_0x173de8[_0x51d05a(0x11a)](_0x173de8[_0x51d05a(0x204)],_0x173de8[_0x51d05a(0x120)])?global_registry[_0x51d05a(0xd9)]=!![]:_0x30dbb4[_0x51d05a(0x1ce)](_0x51d05a(0xdb)+_0x22680e[_0x51d05a(0xf5)](_0xbb7f0f)+'\x20')),_0x173de8['QygvT'](updateGlobalRegistryWithConfig,_0x3d863b,_0x1777a8,_0x7a0b16,_0x587efe,_0x2ef632,_0x1b76ef,_0x52d88a,_0x5e63a8,_0x8c548a,_0x3acf6b,_0x188ce8);}else{const _0x15152f={};_0x15152f[_0x51d05a(0x1fd)]=_0x3d5078[_0x51d05a(0x19c)],_0x15152f[_0x51d05a(0x179)]=_0x452124,_0x3ba6a9[_0x51d05a(0x1e1)](_0x5840f6,_0x15152f,_0x173de8['ZLrVP'],!![]);}}else{if(_0x173de8['cNiwM'](_0x173de8[_0x51d05a(0x1a4)],_0x173de8[_0x51d05a(0x1a4)])){const _0x36b2e0=_0x173de8[_0x51d05a(0x14a)][_0x51d05a(0x141)]('|');let _0x9747e7=0x0;while(!![]){switch(_0x36b2e0[_0x9747e7++]){case'0':global_registry[_0x51d05a(0x11d)]=_0x1777a8;continue;case'1':global_registry[_0x51d05a(0x1a8)]=_0x7a0b16;continue;case'2':const _0xa193e5={};_0xa193e5[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0xa193e5[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0xa193e5);continue;case'3':_0x174e0d=_0x51d05a(0x1dd)+_0x3897e9+_0x51d05a(0xe3)+_0x1777a8+'\x27';continue;case'4':global_registry[_0x51d05a(0xf0)]=_0x3d863b;continue;case'5':global_registry[_0x51d05a(0x201)]=_0x21524c['browserVersion'];continue;case'6':logger[_0x51d05a(0x1ce)](_0x174e0d);continue;case'7':const _0x5998cd={};_0x5998cd[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0xe0)],_0x5998cd[_0x51d05a(0x179)]=_0x51d05a(0x146),webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x5998cd);continue;case'8':global_registry[_0x51d05a(0x1a7)]=_0x21524c[_0x51d05a(0x1a7)];continue;}break;}}else _0x7b77b7=_0x590621['gridName'];}const _0x1bece5=await _0x173de8['AnrNW'](getCloudProviderObject,_0x3d863b,_0x1777a8,_0x3897e9,_0x3a2e03,webSocketUtils,_0x365fb0),_0x13226f=_0x41239f['cloudProvider']||{};if(_0x173de8[_0x51d05a(0x181)](_0x13226f[_0x3d863b],undefined)){logger[_0x51d05a(0x1ce)](_0x173de8['WdHWc']);_0x173de8[_0x51d05a(0x196)](_0x41239f[_0x51d05a(0xf0)],undefined)&&(_0x41239f[_0x51d05a(0xf0)]={});_0x41239f[_0x51d05a(0xf0)][_0x3d863b]={};const _0x4dbc8a=await _0x173de8[_0x51d05a(0x1ac)](inputCloudProviderKeys,_0x3d863b,_0x41239f,_0x1bece5);fs[_0x51d05a(0x1cf)](_0x173de8[_0x51d05a(0x1f9)](getCredentialsPath),JSON[_0x51d05a(0xf5)](_0x4dbc8a)),logger[_0x51d05a(0x112)](_0x173de8[_0x51d05a(0x1f8)]);}else{_0x174e0d=_0x173de8[_0x51d05a(0x1eb)];const _0x129f8c={};_0x129f8c['type']=WS_EVENTS[_0x51d05a(0x19c)],_0x129f8c['message']=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x129f8c),logger[_0x51d05a(0x1ce)](_0x174e0d),await _0x1bece5[_0x51d05a(0xce)](_0x13226f);}_0x1bece5[_0x51d05a(0xf7)]();_0x173de8[_0x51d05a(0x127)](_0x3d863b,AZURE)&&_0x1bece5[_0x51d05a(0x108)]();let _0x5e903d;if(_0x173de8[_0x51d05a(0x13c)](_0xbfa9fe,![])){_0x174e0d=_0x51d05a(0x1fe)+_0x7a0b16+').';const _0x3788ed={};_0x3788ed[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x3788ed[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x3788ed),logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x3ec0b9=await _0x1bece5[_0x51d05a(0x12a)]();if(_0x3ec0b9){const _0x593dd7={};_0x593dd7[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x593dd7[_0x51d05a(0x179)]=_0x51d05a(0xe1)+_0x1777a8+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x593dd7,_0x173de8[_0x51d05a(0x103)]),logger[_0x51d05a(0x1ce)](_0x51d05a(0xe1)+_0x1777a8+_0x51d05a(0x13a)),_0xbfa9fe=!![];}else{const _0x32cbd6={};_0x32cbd6[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x32cbd6[_0x51d05a(0x179)]=_0x173de8[_0x51d05a(0x1a0)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x32cbd6),logger['info'](_0x173de8[_0x51d05a(0x1a0)]);const _0x1f42f4=_0x173de8['tiIEV'](_0x4f60fd,null)&&_0x173de8[_0x51d05a(0x127)](_0x4f60fd,undefined),_0x1f8d78=_0x173de8[_0x51d05a(0x1f7)](subnets,null)&&_0x173de8[_0x51d05a(0x202)](subnets,undefined)&&_0x173de8[_0x51d05a(0x20b)](subnets[_0x51d05a(0x208)],0x0);if(_0x1f42f4){_0x173de8[_0x51d05a(0x1f5)](_0x1f8d78,![])&&(_0x174e0d=_0x173de8[_0x51d05a(0x195)],await _0x173de8[_0x51d05a(0x18a)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8['XRYLS'],_0x173de8['lcERh'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1));const _0x570c40=await _0x1bece5[_0x51d05a(0x14d)](_0x4f60fd);_0x173de8[_0x51d05a(0xea)](_0x570c40,![])?(_0x174e0d=_0x173de8[_0x51d05a(0x1a3)],await _0x173de8['cRTEZ'](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xd8)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1)):logger[_0x51d05a(0x1ce)](_0x51d05a(0x1ad)+_0x4f60fd+'\x20');const _0x5c6df8=await _0x1bece5[_0x51d05a(0x1d0)](subnets,_0x4f60fd);_0x173de8[_0x51d05a(0x1f4)](_0x5c6df8[0x0],![])?(_0x174e0d='Subnets:\x20'+JSON['stringify'](_0x5c6df8[0x1])+_0x51d05a(0x1d6)+_0x4f60fd+_0x51d05a(0x102),await _0x173de8[_0x51d05a(0x13d)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xed)],_0x173de8[_0x51d05a(0xd4)]),logger['error'](_0x174e0d),process['exit'](0x1)):logger[_0x51d05a(0x1ce)](_0x51d05a(0xdb)+JSON[_0x51d05a(0xf5)](subnets)+'\x20'),await _0x1bece5['setupNewCluster'](_0x4f60fd,subnets);}else{const _0x2dca9d=_0x173de8[_0x51d05a(0xf1)][_0x51d05a(0x141)]('|');let _0x1229c6=0x0;while(!![]){switch(_0x2dca9d[_0x1229c6++]){case'0':logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0x157)]);continue;case'1':const _0x207350={};_0x207350[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x207350['message']=_0x173de8[_0x51d05a(0x157)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x207350);continue;case'2':const _0x2d54b7={};_0x2d54b7[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x2d54b7[_0x51d05a(0x179)]=_0x51d05a(0x158),webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x2d54b7);continue;case'3':await _0x1bece5['setupNewCluster']();continue;case'4':logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0x166)]);continue;}break;}}}}_0xbfa9fe&&_0x173de8[_0x51d05a(0x1f4)](_0x3d863b,AZURE)&&(await _0x1bece5[_0x51d05a(0xeb)](),await _0x1bece5[_0x51d05a(0x1c2)]());const [_0xb05fb9,_0x1c3ed2,_0x2939d9,_0x3d9bf4,_0x1d5120,_0x3b5939]=await _0x173de8[_0x51d05a(0x17d)](createK8sClient,_0x1bece5);_0x173de8[_0x51d05a(0x1f3)](_0xbfa9fe,![])&&_0x173de8[_0x51d05a(0x171)](_0x3d863b,AWS)&&(global_registry[_0x51d05a(0x1be)]=!![],_0x5e903d=await _0x1bece5['setupAutoscaler'](_0xb05fb9,_0x365fb0));try{_0x3b88f2=_0x173de8[_0x51d05a(0x17d)](kebabCase,_0x3897e9),logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0x1c8)]);const _0x2e4f97={};_0x2e4f97[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x2e4f97[_0x51d05a(0x179)]=_0x173de8[_0x51d05a(0x1c8)],webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x2e4f97);if(_0x173de8['shSNr'](_0x3b88f2,_0x173de8[_0x51d05a(0x1b4)])){const _0x5238bf={};_0x5238bf[_0x51d05a(0x1cc)]=_0x173de8[_0x51d05a(0x12b)],_0x5238bf['managedBy']=_0x173de8[_0x51d05a(0x12b)];const _0x8896a8={};_0x8896a8[_0x51d05a(0x1a5)]=_0x3b88f2,_0x8896a8[_0x51d05a(0x138)]=_0x5238bf;const _0x230ed6={};_0x230ed6[_0x51d05a(0x19e)]=_0x8896a8;let _0x256575=_0x230ed6;const _0x5b04f9={};_0x5b04f9[_0x51d05a(0xfd)]=_0x256575,await _0xb05fb9['createNamespace'](_0x5b04f9),logger['info'](_0x173de8[_0x51d05a(0x1d2)]);}const _0x558232={};_0x558232['type']=WS_EVENTS[_0x51d05a(0x19c)],_0x558232['message']=_0x173de8[_0x51d05a(0x165)],webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x558232);const _0x589789={};_0x589789[_0x51d05a(0x1fd)]=WS_EVENTS['LOG'],_0x589789['message']=_0x173de8[_0x51d05a(0x12f)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x589789),logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0xe8)]);let _0x13d82c={};_0x173de8['bsLpM'](_0x3d863b,AZURE)&&(_0x13d82c={'clientId':await _0x1bece5[_0x51d05a(0x1bf)]('turboscale-managed-identity-'+_0x1777a8)});await _0x173de8[_0x51d05a(0x1fa)](addGridComponents,_0xb05fb9,_0x1c3ed2,_0x2939d9,_0x3d9bf4,_0x3b88f2,_0x1777a8,_0x5e903d,_0x1d5120,_0x3b5939,_0x13d82c),_0x174e0d=_0x173de8[_0x51d05a(0x206)],logger[_0x51d05a(0x1ce)](_0x174e0d);const _0xe11c6a={};_0xe11c6a[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0xe11c6a[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0xe11c6a),_0x174e0d=_0x173de8['yidNF'],logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x1930f1={};_0x1930f1[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x1930f1[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x1930f1),await _0x173de8[_0x51d05a(0x19f)](waitForDeployment,_0x1c3ed2,_0x3b88f2,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x18fd66=await _0x173de8['HUYjV'](getNamespaceUID,_0xb05fb9,_0x3b88f2);let _0x2a9423=global_registry[_0x51d05a(0xd9)]?_0x173de8['UDMOk']:_0x173de8[_0x51d05a(0x1f0)];const _0x5cd7dd={};_0x5cd7dd[_0x51d05a(0x1a5)]=_0x2a9423,_0x5cd7dd[_0x51d05a(0x1b2)]=_0x173de8[_0x51d05a(0x109)];let _0x3dc9ce=await _0xb05fb9['readNamespacedService'](_0x5cd7dd),_0x1bf9a8=_0x1bece5[_0x51d05a(0x170)](_0x3dc9ce)+'/'+_0x3b88f2,_0x50f2eb=_0x173de8[_0x51d05a(0x1c7)];try{const _0x296463=_0x51d05a(0x205)+AG_API_URL+_0x51d05a(0x1b5)+_0x18fd66,_0x237801=await _0x173de8[_0x51d05a(0x16d)](got,_0x296463,_0x19f989);(_0x173de8[_0x51d05a(0x171)](_0x237801,null)||_0x173de8[_0x51d05a(0x171)](_0x237801,undefined))&&(_0x174e0d=_0x173de8[_0x51d05a(0x1e5)],await _0x173de8[_0x51d05a(0xef)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes['ERROR'],_0x173de8[_0x51d05a(0xd1)],_0x173de8['UGoNK'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1));_0x173de8['ThQSW'](_0x237801[_0x51d05a(0xf4)],0x191)&&(_0x174e0d=_0x173de8[_0x51d05a(0x1d8)],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0x20e)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1));_0x173de8[_0x51d05a(0x126)](_0x237801[_0x51d05a(0xf4)],0xc8)&&(_0x174e0d=_0x51d05a(0xe9)+JSON[_0x51d05a(0xf5)](_0x237801),await _0x173de8[_0x51d05a(0x185)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0x113)],_0x173de8[_0x51d05a(0xd4)]),logger['error'](_0x174e0d),process['exit'](0x1));const _0x420a5c=JSON[_0x51d05a(0x18f)](_0x237801[_0x51d05a(0xfd)]);_0x420a5c[_0x51d05a(0x1c6)]&&(_0x1bf9a8=_0x420a5c[_0x51d05a(0x1c6)],_0x50f2eb=_0x173de8[_0x51d05a(0xf9)]),global_registry[_0x51d05a(0xd9)]&&(_0x50f2eb=_0x173de8[_0x51d05a(0x1c7)]);}catch(_0x2d6bd7){}_0x174e0d=_0x51d05a(0x19a)+_0x1bf9a8+'\x20',logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x4ff99c={};_0x4ff99c[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x4ff99c[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x4ff99c),_0x174e0d=_0x51d05a(0x1f6)+_0x50f2eb+_0x51d05a(0x1e7)+_0x1bf9a8+'/wd/hub',logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x568245={};_0x568245[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x568245[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x568245);const _0x25a411={};_0x25a411[_0x51d05a(0x1fd)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x25a411['message']=_0x51d05a(0x1da)+_0x1bf9a8,webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x25a411),await webSocketUtils[_0x51d05a(0xee)](0x7d0);}catch(_0x2221b8){logger['error'](_0x51d05a(0x203)+_0x2221b8+'\x20\x0a'+JSON['stringify'](_0x2221b8[_0x51d05a(0x191)]));if(_0x173de8[_0x51d05a(0x125)](_0xbfa9fe,![]))try{logger['info'](_0x51d05a(0x175)),await _0x173de8[_0x51d05a(0x115)](removeGridComponents,_0xb05fb9,_0x1c3ed2,_0x2939d9,_0x3d9bf4,_0x3b88f2),await _0x1bece5['deleteCluster'](_0xb05fb9,global_registry[_0x51d05a(0x1a8)]);}catch(_0x2caf54){logger[_0x51d05a(0x15b)](_0x51d05a(0x134)+_0x2caf54+'\x20\x0a'+JSON['stringify'](_0x2caf54[_0x51d05a(0x191)]));}throw _0x2221b8;}}catch(_0x59a9d4){const _0x5e340c='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x59a9d4+'\x20\x0a'+JSON['stringify'](_0x59a9d4[_0x51d05a(0x191)]);if(_0x3a2e03){const _0x24f90e={};_0x24f90e[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x24f90e['message']=_0x5e340c,webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x24f90e,_0x173de8[_0x51d05a(0xd4)],!![]);}await webSocketUtils[_0x51d05a(0xee)](0x7d0);const _0x453f9b={};_0x453f9b[_0x51d05a(0x15b)]=_0x5e340c,await _0x173de8[_0x51d05a(0x101)](sendInstrumentationEvent,_0x365fb0,_0x173de8['XRYLS'],messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0x106)],_0x453f9b,_0x365fb0),logger[_0x51d05a(0x15b)](_0x5e340c);}process[_0x51d05a(0x139)](0x0);};
1
+ function a9_0x3167(_0x59bbd2,_0x497d13){const _0x55324f=a9_0x5532();return a9_0x3167=function(_0x316711,_0x15effd){_0x316711=_0x316711-0xf1;let _0x46aaa7=_0x55324f[_0x316711];return _0x46aaa7;},a9_0x3167(_0x59bbd2,_0x497d13);}const a9_0x23dbbb=a9_0x3167;(function(_0x52d68f,_0x53e9d6){const _0x1f7272=a9_0x3167,_0x393475=_0x52d68f();while(!![]){try{const _0xddf8af=parseInt(_0x1f7272(0x226))/0x1+parseInt(_0x1f7272(0x1b2))/0x2*(parseInt(_0x1f7272(0x1da))/0x3)+-parseInt(_0x1f7272(0x13d))/0x4+-parseInt(_0x1f7272(0x231))/0x5+parseInt(_0x1f7272(0x150))/0x6+parseInt(_0x1f7272(0x12d))/0x7*(-parseInt(_0x1f7272(0x1f2))/0x8)+-parseInt(_0x1f7272(0x147))/0x9*(-parseInt(_0x1f7272(0x1d6))/0xa);if(_0xddf8af===_0x53e9d6)break;else _0x393475['push'](_0x393475['shift']());}catch(_0x20d0db){_0x393475['push'](_0x393475['shift']());}}}(a9_0x5532,0x475e1));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x23dbbb(0x1fe)),got=require(a9_0x23dbbb(0x225)),{v4:uuidv4}=require(a9_0x23dbbb(0x1ff)),webSocketUtils=require(a9_0x23dbbb(0x215)),{logger}=require(a9_0x23dbbb(0x1a5)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x23dbbb(0x198)),{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_0x23dbbb(0x1d3)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x23dbbb(0x16d)),{createK8sClient}=require(a9_0x23dbbb(0x161)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0x5532(){const _0x181d23=['suCid','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','1|8|5|2|3|6|4|0|7','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ERROR','ingress-nginx-controller','QXFPY','cUWdj','aNegG','vXfAC','../../config/logger','namespace','<PasswordPlaceholder>','kxfgm','izkhG','jSMic','help','mbXkt','lrMSC','tRqho','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','sRUXo','AxMje','30538GhRPBb','securityGroups','description','managedBy','epilogue','oKPpq','eetsq','jQSbj','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','isNewAWSCluster','PIxll','rZSkF','true','sendEventToBackend','grid-profile','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','HzIZY','cwfOr','defaultGridProfile','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','RafyX','region','VwHeG','dUxbR','OpCdS','Spawning\x20grid\x20on\x20to\x20the\x20cluster','aQRoi','GET','KyDDE','info','CLI\x20run\x20started','jZIgb','dbVrp','../../config/constants','builder','https','8330RhXKRs','fSfQx','bKqMd','metadata','6gTIGCT','https://','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','get-grid-url-null-response','loavs','exit','Browserstack','XIXky','Uxyyd','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','pWUQq','body','Cluster\x20created\x20successfully','bstackAccesskey','RpwnD','stringify','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.','vlHPx','qCgRp','kYdIA','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CiAKg','vpc','pre-spawned-subnets-not-selected','7312RBbRnK','BBkbF','fNhag','HLaWt','mAYWv','RUHCS','http','Azemq','username','BWoTQ','CLI\x20run\x20finished:\x20','/packages/cli/create-grid-checks','reconnecting-websocket','uuid','cluster-name','agMFb','doMAR','error','Cluster:\x20','Create\x20a\x20private/public\x20grid.','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','grid','bbWtp','ingress-nginx','IpmJk','clusterRegion','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NevID','PdhzW','createOtherResources','eEVPK','mspbp','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ksdSs','ZEgMR','../../utils/webSocketUtils','naaRT','pre-spawned-invalid-subnets','gYwzj','readNamespacedService','Will\x20be\x20spawning\x20the\x20grid\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','jAGkV','/wd/hub','create','cbWxZ','create-grid-checks-null-response','ABEkM','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','mmNSq','VPWIu','got','7144nxAPyX','desc','message','lynGr','2|3|0|1|4','6|1|0|7|3|2|5|4|8','LZQBd','NyWZU','VOzTc','mwVQi','existsSync','1904515hgjNYh','VQYWt','wAhDL','Oktvh','Grid\x20spawned\x20on\x20the\x20cluster','wnzub','ZUnKO','readFileSync','djOdO','usage','vSfGr','fsdrX','Found\x20Subnets:\x20','debug','ToYaR','CfGzI','WebSocket','browserVersion','pOvOX','WBdJs','private-ingress-nginx-controller','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','create-grid-checks-non-200','qQiJd','warn','TMJdK','VEohJ','eveLr','nqTSD','IOECH','createNamespace','Found\x20VPC:\x20','create-grid-checks-auth-failed','SMaPM','isPrivateGrid','RWluq','hubVersion','flGco','://','cuQvH','cloudProvider','LYslF','name','replace','instanceType','dnDlh','wwXAr','handler','QkTCo','RBthg','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','minNodes','private-grid','pre-spawned-invalid-vpc','toLowerCase','length','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ZelVk','clusterName','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','mBHXC','subnets','setupNewCluster','SMJqx','type','argv','\x20in\x20existing\x20cluster\x20\x27','2009BbRXpO','create-grid-checks-invalid-profile','vSamH','CLI_RUN_STARTED','vDAXM','jmubA','Spawning\x20the\x20grid\x20','updateClusterAlreadyPresent','KEyvq','AVdAv','alreadyPresent','dEPBY','tLYYk','KGJrG','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','iLXjU','325376zrCKJy','init-not-called','Namespace\x20created','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridName','<UsernamePlaceholder>','Grid\x20profile\x20fetched\x20from\x20backend','UdAcS','VKYsT','FipHg','6948BeycZJ','isClusterPresent','gridProfile','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','hLLoR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GEBZF','cpvsd','Cpduo','2016768aCZPre','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','\x20are\x20not\x20present\x20in\x20VPC:\x20','requestId','split','SxVjJ','createdBy','CLI_RUN_FINISHED','hklSr','PGbNV','deleteCluster','prespawned-cluster-args-not-passed','aYzTi','uFtRU','newCluster','JbspO','password','../../utils/createk8sClient','ncwBZ','Create\x20a\x20new\x20Automation\x20grid.','mCBth','parse','route53','gridProfileId','Creating\x20namespace','faiOS','LFRmj','QuOeb','options','../../utils/gridComponents','Ycnzt','vWzNa','getGridHostname','turboscale-managed-identity-','/packages/cli/get-grid-url?gridIdentifier=','aCpoO','ltuMN','stack','zgrAY','uDgXZ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','grid-name','JZRXi','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','QNliN','sendResourceDataToHST','\x20using\x20\x27','isSubnetsValid','Deleting\x20the\x20CloudFormation\x20Stacks','Cluster\x20','oJceA','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ksiZf','maxNodes','concurrency','LOG','statusCode','annotations','command','lCFaq','lcPhP','LiQza','gagnj','heddl','create-grid-called','delay','VBCRi','MDBuY','Adding\x20Websocket\x20listeners','privateGrid','cloud-provider','fhknC','../../utils/utilityMethods','PioRd','oMCsj'];a9_0x5532=function(){return _0x181d23;};return a9_0x5532();}exports[a9_0x23dbbb(0x18a)]=a9_0x23dbbb(0x207),exports[a9_0x23dbbb(0x227)]=a9_0x23dbbb(0x163),exports[a9_0x23dbbb(0x1d4)]=function(_0x406151){const _0x377401=a9_0x23dbbb,_0x2f6406={};_0x2f6406[_0x377401(0x1e1)]=_0x377401(0x11c),_0x2f6406[_0x377401(0xf1)]='string',_0x2f6406[_0x377401(0x21f)]=_0x377401(0x14c),_0x2f6406[_0x377401(0x105)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2f6406['ZelVk']=_0x377401(0xfe),_0x2f6406[_0x377401(0x1f9)]=_0x377401(0x13b),_0x2f6406[_0x377401(0x103)]=_0x377401(0x205),_0x2f6406['LiQza']=_0x377401(0x1ab);const _0x4af667=_0x2f6406,_0x3e3780={};_0x3e3780[_0x377401(0x1b4)]=_0x4af667[_0x377401(0x1e1)],_0x3e3780[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x2b3e02={};_0x2b3e02['description']=_0x4af667[_0x377401(0x21f)],_0x2b3e02[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0xec9c55={};_0xec9c55['description']=_0x4af667[_0x377401(0x105)],_0xec9c55[_0x377401(0x12a)]=_0x4af667['djOdO'];const _0x3c7b8c={};_0x3c7b8c[_0x377401(0x1b4)]=_0x4af667[_0x377401(0x123)],_0x3c7b8c[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x3ce0fd={};_0x3ce0fd['description']=_0x4af667[_0x377401(0x1f9)],_0x3ce0fd[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x10bbea={};_0x10bbea[_0x377401(0x1b4)]=_0x4af667[_0x377401(0x103)],_0x10bbea[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x27ba11={};return _0x27ba11['grid-name']=_0x3e3780,_0x27ba11['grid-profile']=_0x2b3e02,_0x27ba11['cluster-name']=_0xec9c55,_0x27ba11[_0x377401(0x196)]=_0x3c7b8c,_0x27ba11['region']=_0x3ce0fd,_0x27ba11[_0x377401(0x11e)]=_0x10bbea,_0x406151['usage'](HELP_HEADER_MESSAGE[_0x377401(0x21e)])[_0x377401(0x1b6)](HELP_FOOTER_MESSAGE)[_0x377401(0x16c)](_0x27ba11)[_0x377401(0x1ab)](_0x4af667[_0x377401(0x18d)])[_0x377401(0x12b)];},exports[a9_0x23dbbb(0x118)]=async function(_0x50f118){const _0x3ab3f6=a9_0x23dbbb,_0x5a7d4d={'jSMic':_0x3ab3f6(0x22b),'mCBth':_0x3ab3f6(0x1d0),'GvKxr':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','CfGzI':'string','AxMje':_0x3ab3f6(0x14c),'stLmN':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','bbWtp':_0x3ab3f6(0xfe),'hgYaJ':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','LkEXN':_0x3ab3f6(0x205),'mIpAF':_0x3ab3f6(0x1ab),'MZBYc':_0x3ab3f6(0x1d5),'KyDDE':'9|3|6|13|2|11|7|0|10|14|1|12|5|4|8','LFRmj':function(_0x1a12af,_0x2edcf9){return _0x1a12af!==_0x2edcf9;},'VWIGr':function(_0x336d57,_0xcc15ce,_0x3b8c52,_0x4ab6b5,_0x270a65,_0x5668c6,_0x410d96,_0x9a9af7,_0x43e154,_0xad0be,_0x17afca,_0x96534f){return _0x336d57(_0xcc15ce,_0x3b8c52,_0x4ab6b5,_0x270a65,_0x5668c6,_0x410d96,_0x9a9af7,_0x43e154,_0xad0be,_0x17afca,_0x96534f);},'IOECH':_0x3ab3f6(0x1f8),'mmNSq':_0x3ab3f6(0x101),'RafyX':function(_0x1bb260,_0x55fce8){return _0x1bb260===_0x55fce8;},'cwfOr':_0x3ab3f6(0x203),'pWUQq':function(_0x477d7a){return _0x477d7a();},'zgrAY':_0x3ab3f6(0x18e),'lRbta':_0x3ab3f6(0x11b),'eEVPK':function(_0x23fa12,_0x3da331,_0x2668c3,_0x40fcb8,_0x362ae7,_0x58f5d9,_0x31f8e3){return _0x23fa12(_0x3da331,_0x2668c3,_0x40fcb8,_0x362ae7,_0x58f5d9,_0x31f8e3);},'Uxyyd':_0x3ab3f6(0x190),'QuOeb':_0x3ab3f6(0x13e),'rHnMS':_0x3ab3f6(0x142),'oKPpq':_0x3ab3f6(0x1a7),'dEPBY':_0x3ab3f6(0x194),'RUHCS':function(_0x27a591,_0x6a4d44){return _0x27a591===_0x6a4d44;},'PdhzW':_0x3ab3f6(0x1c9),'UdAcS':function(_0x47bf15,_0x2b281e){return _0x47bf15===_0x2b281e;},'PioRd':'XWIlm','fsdrX':_0x3ab3f6(0x1f5),'iLXjU':_0x3ab3f6(0x19c),'LYslF':function(_0x3aa574,_0x198b71,_0x4e971c,_0x2a71af,_0x2fbf9f,_0x242620,_0x52e396,_0x33fd95){return _0x3aa574(_0x198b71,_0x4e971c,_0x2a71af,_0x2fbf9f,_0x242620,_0x52e396,_0x33fd95);},'dwrkg':_0x3ab3f6(0x15b),'SxVjJ':'mLriF','HzIZY':_0x3ab3f6(0x237),'mwVQi':_0x3ab3f6(0x14a),'HLhpB':'non-aws-azure-cluster','ZEgMR':function(_0x4dd294,_0xe373dc){return _0x4dd294===_0xe373dc;},'KtaaN':_0x3ab3f6(0x1be),'qQiJd':_0x3ab3f6(0x18c),'cuQvH':_0x3ab3f6(0x11a),'VBCRi':function(_0x18109f,_0x1674b2){return _0x18109f===_0x1674b2;},'ksiZf':_0x3ab3f6(0x17c),'eveLr':_0x3ab3f6(0x1e8),'wAhDL':_0x3ab3f6(0x14f),'CiyVY':_0x3ab3f6(0x1cd),'suCid':function(_0x119001,_0x42a5eb,_0x57fca2){return _0x119001(_0x42a5eb,_0x57fca2);},'tLYYk':function(_0x228481,_0x1b2d8f){return _0x228481===_0x1b2d8f;},'sRUXo':_0x3ab3f6(0x131),'jFdxQ':function(_0x399100,_0x3c3b41,_0xbc067f){return _0x399100(_0x3c3b41,_0xbc067f);},'jQSbj':function(_0xf07601,_0xcf8cde){return _0xf07601===_0xcf8cde;},'aCpoO':function(_0x712c1c,_0x7f58e3){return _0x712c1c===_0x7f58e3;},'IpmJk':function(_0xb4ff54,_0x1612ed){return _0xb4ff54===_0x1612ed;},'mDMeN':_0x3ab3f6(0x22c),'wnzub':_0x3ab3f6(0x1d1),'VQYWt':_0x3ab3f6(0x122),'aQRoi':function(_0x2f638a,_0xb0d95b,_0xc4c3f3,_0x161e2b,_0x343fe4,_0x1d21db,_0xa4f49a,_0x1eb9a8){return _0x2f638a(_0xb0d95b,_0xc4c3f3,_0x161e2b,_0x343fe4,_0x1d21db,_0xa4f49a,_0x1eb9a8);},'lrMSC':_0x3ab3f6(0x220),'BBkbF':function(_0x383aef,_0x5742af){return _0x383aef===_0x5742af;},'AVdAv':'zJZDP','MDBuY':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','pOvOX':function(_0x51572b,_0x4141c3,_0x53b759,_0x3102cb,_0x1c48b6,_0x787328,_0x64acb7,_0xdb6c18){return _0x51572b(_0x4141c3,_0x53b759,_0x3102cb,_0x1c48b6,_0x787328,_0x64acb7,_0xdb6c18);},'kxfgm':_0x3ab3f6(0x109),'oJceA':function(_0x27c1e2,_0x28cb1b){return _0x27c1e2!==_0x28cb1b;},'uDgXZ':_0x3ab3f6(0x211),'bKqMd':_0x3ab3f6(0xff),'pEgVX':_0x3ab3f6(0x143),'tetJC':_0x3ab3f6(0x16e),'mAYWv':_0x3ab3f6(0x1bd),'FipHg':'create-grid-checks-grid-already-exists','VsMMj':_0x3ab3f6(0x218),'BWoTQ':_0x3ab3f6(0x119),'nrsfY':function(_0x2a86d6,_0x1ede24){return _0x2a86d6===_0x1ede24;},'SMaPM':function(_0x146aa2,_0x2cf0a8){return _0x146aa2!==_0x2cf0a8;},'oMCsj':_0x3ab3f6(0x162),'dbVrp':function(_0x24625d,_0x501164){return _0x24625d===_0x501164;},'KEyvq':'dpxBh','NevID':_0x3ab3f6(0x183),'hklSr':function(_0x2092c8,_0x2475ef,_0x1cf75f,_0x456ef3,_0x2545b6,_0x7051a1,_0x16d86c,_0x19cfa3){return _0x2092c8(_0x2475ef,_0x1cf75f,_0x456ef3,_0x2545b6,_0x7051a1,_0x16d86c,_0x19cfa3);},'fNhag':_0x3ab3f6(0x12e),'VwHeG':function(_0x33b5ef,_0x8661ba){return _0x33b5ef===_0x8661ba;},'loavs':function(_0x1f14f9,_0x3a39f7){return _0x1f14f9===_0x3a39f7;},'VPWIu':_0x3ab3f6(0x14b),'YFDZF':_0x3ab3f6(0x1bc),'wwXAr':_0x3ab3f6(0x159),'qCgRp':function(_0x34ebee,_0x3ce4b7,_0x54013f,_0x4102ee,_0x375132,_0x4a4243,_0x485627,_0x737af5,_0x2564df,_0x3bee46,_0x2722bc,_0xfdc3a5){return _0x34ebee(_0x3ce4b7,_0x54013f,_0x4102ee,_0x375132,_0x4a4243,_0x485627,_0x737af5,_0x2564df,_0x3bee46,_0x2722bc,_0xfdc3a5);},'aYzTi':_0x3ab3f6(0x116),'faiOS':'TobSh','pFTAh':'PYOHK','lynGr':function(_0x1edeb1,_0x525747){return _0x1edeb1===_0x525747;},'heddl':_0x3ab3f6(0xfc),'izkhG':'IlZYe','naaRT':_0x3ab3f6(0x19d),'Oktvh':function(_0x5938c6,_0x7f0d70,_0x10db0e,_0x49f596,_0x13c641,_0x3aa573,_0x44f6b4){return _0x5938c6(_0x7f0d70,_0x10db0e,_0x49f596,_0x13c641,_0x3aa573,_0x44f6b4);},'JZRXi':function(_0x11e419,_0x16d916){return _0x11e419===_0x16d916;},'VOzTc':_0x3ab3f6(0x1af),'RWluq':function(_0x5cbb4e,_0x39fcd4){return _0x5cbb4e!=_0x39fcd4;},'flGco':function(_0x1643e9,_0x3a3254){return _0x1643e9!==_0x3a3254;},'ToYaR':function(_0x4ce7df,_0x5819a3){return _0x4ce7df>_0x5819a3;},'vSfGr':_0x3ab3f6(0x1ba),'agMFb':function(_0x5113b6,_0xb1b6cf,_0x34f7a0,_0x381769,_0x1c9ba3,_0x16eb17,_0x5a579b,_0x6d0d96){return _0x5113b6(_0xb1b6cf,_0x34f7a0,_0x381769,_0x1c9ba3,_0x16eb17,_0x5a579b,_0x6d0d96);},'pNMqu':_0x3ab3f6(0x1f1),'uFtRU':function(_0x13955e,_0x4e6691){return _0x13955e===_0x4e6691;},'mBHXC':_0x3ab3f6(0x20c),'cUWdj':_0x3ab3f6(0x11f),'TMJdK':function(_0x47ad9b,_0x408165){return _0x47ad9b===_0x408165;},'cpvsd':_0x3ab3f6(0x217),'lCFaq':_0x3ab3f6(0x22a),'QXFPY':_0x3ab3f6(0x1e6),'VKYsT':_0x3ab3f6(0x1ea),'eetsq':function(_0x1bc337,_0x196ad7){return _0x1bc337(_0x196ad7);},'hGcsB':function(_0x2601d8,_0x37b325){return _0x2601d8(_0x37b325);},'fujUi':_0x3ab3f6(0x168),'EzrHo':'default','ABEkM':_0x3ab3f6(0x1e0),'doMAR':'Namespace\x20Created','fhknC':_0x3ab3f6(0x13f),'aNegG':_0x3ab3f6(0x1cb),'NyWZU':_0x3ab3f6(0x21b),'mbXkt':function(_0x1e8124,_0x5e92c3){return _0x1e8124===_0x5e92c3;},'GcwRA':function(_0x2061ff,_0x3a24c4,_0x2b1809,_0x1fe824,_0x268505,_0x1003bd,_0x46a891,_0x3c5ce2,_0x39a8f5,_0x531012,_0x4713d0){return _0x2061ff(_0x3a24c4,_0x2b1809,_0x1fe824,_0x268505,_0x1003bd,_0x46a891,_0x3c5ce2,_0x39a8f5,_0x531012,_0x4713d0);},'vXfAC':_0x3ab3f6(0x235),'GEBZF':_0x3ab3f6(0x1e3),'CiAKg':function(_0x878179,_0xe2e086,_0x48c84,_0x3f60ca,_0x33b117){return _0x878179(_0xe2e086,_0x48c84,_0x3f60ca,_0x33b117);},'SMJqx':function(_0x4b1eec,_0x4e661e,_0x49e78e){return _0x4b1eec(_0x4e661e,_0x49e78e);},'ksdSs':_0x3ab3f6(0xfd),'vlHPx':_0x3ab3f6(0x1a0),'vSamH':_0x3ab3f6(0x209),'tRqho':function(_0x317e53,_0x1ae803,_0x3c3038){return _0x317e53(_0x1ae803,_0x3c3038);},'ltuMN':function(_0x239d3a,_0x1f05bd){return _0x239d3a===_0x1f05bd;},'kYdIA':_0x3ab3f6(0x1c5),'vWzNa':_0x3ab3f6(0x1dd),'fhuoA':_0x3ab3f6(0x140),'OpCdS':'get-grid-url-auth-failed','jAGkV':function(_0x2bb52b,_0x4ade4d){return _0x2bb52b!==_0x4ade4d;},'dFVUI':'get-grid-url-non-200','fSfQx':function(_0x5bc245,_0x3c4705){return _0x5bc245===_0x3c4705;},'jmubA':_0x3ab3f6(0x180),'aalNE':function(_0x5e0591,_0x4e1e04,_0x1817a5,_0x50ec03,_0x346760,_0x3136d7){return _0x5e0591(_0x4e1e04,_0x1817a5,_0x50ec03,_0x346760,_0x3136d7);},'JbspO':function(_0xd531f8,_0x16f875,_0x28ac87,_0x3b6e20,_0x3cb333,_0x1ae540,_0x11809b){return _0xd531f8(_0x16f875,_0x28ac87,_0x3b6e20,_0x3cb333,_0x1ae540,_0x11809b);},'KGJrG':'grid-spawning-failed'};let _0x3e4203=![],_0x2dd9db=![],_0x4da45f,_0x164723,_0x3a4877,_0x183c6c,_0x1d107a,_0x21e934,_0x36775b,_0x324f05,_0x17384c,_0x37394d,_0xa65f22,_0xa1ab4e,_0x11fd0f,_0x544a09,_0x4ab4b6=0x1,_0x391fdf=0xe;try{global_registry[_0x3ab3f6(0x153)]=_0x5a7d4d[_0x3ab3f6(0x1e4)](uuidv4),global_registry[_0x3ab3f6(0x10b)]=![];if(!fs[_0x3ab3f6(0x230)](_0x5a7d4d[_0x3ab3f6(0x1e4)](getCredentialsPath))){if(_0x5a7d4d['LFRmj'](_0x5a7d4d[_0x3ab3f6(0x176)],_0x5a7d4d[_0x3ab3f6(0x176)])){const _0x501ecc=_0x5a7d4d[_0x3ab3f6(0x1aa)][_0x3ab3f6(0x154)]('|');let _0x41264f=0x0;while(!![]){switch(_0x501ecc[_0x41264f++]){case'0':_0x531ae6[_0x3ab3f6(0x1cf)](_0x14dc6a);continue;case'1':_0x37efd2=_0x3ab3f6(0x133)+_0x521432+_0x3ab3f6(0x12c)+_0x421296+'\x27';continue;case'2':_0x29804f[_0x3ab3f6(0x20b)]=_0x4ae224;continue;case'3':_0x59d396[_0x3ab3f6(0x111)]=_0x4a34cc;continue;case'4':_0x3bf4c5[_0x3ab3f6(0x10d)]=_0xa9258a[_0x3ab3f6(0x10d)];continue;case'5':_0x22b990['clusterName']=_0x325522;continue;case'6':const _0x1c886e={};_0x1c886e[_0x3ab3f6(0x12a)]=_0x193e56[_0x3ab3f6(0x130)],_0x1c886e['message']=_0x5a7d4d['mCBth'],_0x257092[_0x3ab3f6(0x1bf)](_0xe23cdd,_0x1c886e);continue;case'7':const _0x1cca99={};_0x1cca99[_0x3ab3f6(0x12a)]=_0x109105[_0x3ab3f6(0x187)],_0x1cca99[_0x3ab3f6(0x228)]=_0x18b581,_0x8dc781[_0x3ab3f6(0x1bf)](_0x2c8ce2,_0x1cca99);continue;case'8':_0x31da23[_0x3ab3f6(0xfa)]=_0x3daadd[_0x3ab3f6(0xfa)];continue;}break;}}else console[_0x3ab3f6(0x203)](_0x5a7d4d['lRbta']),await _0x5a7d4d[_0x3ab3f6(0x210)](sendInstrumentationEvent,_0x50f118,_0x5a7d4d['Uxyyd'],messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x16b)],null,_0x50f118),process['exit'](0x1);}await _0x5a7d4d[_0x3ab3f6(0x210)](sendInstrumentationEvent,_0x50f118,_0x5a7d4d[_0x3ab3f6(0x1e2)],messageTypes['INFO'],null,null,_0x50f118);const _0x70e9c1=JSON[_0x3ab3f6(0x165)](fs[_0x3ab3f6(0x238)](_0x5a7d4d['pWUQq'](getCredentialsPath)));global_registry['bstackUsername']=_0x70e9c1[_0x3ab3f6(0x1e0)][_0x3ab3f6(0x1fa)],global_registry[_0x3ab3f6(0x1e7)]=_0x70e9c1[_0x3ab3f6(0x1e0)][_0x3ab3f6(0x160)];const _0x2fd106=WS_ENDPOINT[_0x3ab3f6(0x114)](_0x5a7d4d['rHnMS'],_0x70e9c1[_0x3ab3f6(0x1e0)]['username'])['replace'](_0x5a7d4d[_0x3ab3f6(0x1b7)],_0x70e9c1['Browserstack'][_0x3ab3f6(0x160)]),_0x11c452={};_0x11c452[_0x3ab3f6(0xf9)]=ws,_0x11c452['connectionTimeout']=0x36ee80,_0xa1ab4e=new ReconnectingWebSocket(_0x2fd106,[],_0x11c452),logger[_0x3ab3f6(0xf6)](_0x5a7d4d[_0x3ab3f6(0x138)]),webSocketUtils['addListeners'](_0xa1ab4e,_0x50f118['user'],_0x50f118[_0x3ab3f6(0x160)]);const _0xd81cf0=_0x50f118['gridName']||DEFAULT_GRID_NAME;if(_0x50f118['clusterName']||_0x50f118[_0x3ab3f6(0x111)]||_0x50f118['region']){if(_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x5a7d4d[_0x3ab3f6(0x20e)],_0x5a7d4d[_0x3ab3f6(0x20e)])){!(_0x50f118[_0x3ab3f6(0x124)]&&_0x50f118['cloudProvider']&&_0x50f118[_0x3ab3f6(0x1c7)])&&(_0x5a7d4d[_0x3ab3f6(0x144)](_0x5a7d4d[_0x3ab3f6(0x199)],_0x5a7d4d[_0x3ab3f6(0xf4)])?_0x47447a[_0x3ab3f6(0x1cf)](_0x3ab3f6(0xf5)+_0x17d686[_0x3ab3f6(0x1e9)](_0x5510ee)+'\x20'):(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x13c)],await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['dwrkg'],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger['error'](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x50f118[_0x3ab3f6(0x111)][_0x3ab3f6(0x120)]())){if(_0x5a7d4d[_0x3ab3f6(0x1c6)](_0x5a7d4d[_0x3ab3f6(0x155)],_0x5a7d4d[_0x3ab3f6(0x1c2)])){const _0x58854f={};_0x58854f[_0x3ab3f6(0x1b4)]=_0x5a7d4d['GvKxr'],_0x58854f[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x23ecef={};_0x23ecef['description']=_0x5a7d4d[_0x3ab3f6(0x1b1)],_0x23ecef[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x5d494d={};_0x5d494d[_0x3ab3f6(0x1b4)]=_0x5a7d4d['stLmN'],_0x5d494d[_0x3ab3f6(0x12a)]=_0x5a7d4d['CfGzI'];const _0x39a7bb={};_0x39a7bb['description']=_0x5a7d4d[_0x3ab3f6(0x208)],_0x39a7bb['type']=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x436553={};_0x436553['description']=_0x5a7d4d['hgYaJ'],_0x436553[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x590178={};_0x590178['description']=_0x5a7d4d['LkEXN'],_0x590178[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x5ceb32={};return _0x5ceb32[_0x3ab3f6(0x179)]=_0x58854f,_0x5ceb32[_0x3ab3f6(0x1c0)]=_0x23ecef,_0x5ceb32[_0x3ab3f6(0x200)]=_0x5d494d,_0x5ceb32[_0x3ab3f6(0x196)]=_0x39a7bb,_0x5ceb32[_0x3ab3f6(0x1c7)]=_0x436553,_0x5ceb32[_0x3ab3f6(0x11e)]=_0x590178,_0x776098[_0x3ab3f6(0xf2)](_0x23c9d5[_0x3ab3f6(0x21e)])[_0x3ab3f6(0x1b6)](_0x1d4e88)[_0x3ab3f6(0x16c)](_0x5ceb32)['help'](_0x5a7d4d['mIpAF'])['argv'];}else _0x4da45f=_0x5a7d4d[_0x3ab3f6(0x22f)],await _0x5a7d4d['LYslF'](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['HLhpB'],_0x5a7d4d['cwfOr']),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1);}_0x50f118['privateGrid']&&_0x5a7d4d[_0x3ab3f6(0x214)](_0x50f118[_0x3ab3f6(0x195)]['toLowerCase'](),_0x5a7d4d['KtaaN'])&&(_0x5a7d4d[_0x3ab3f6(0x16a)](_0x5a7d4d['qQiJd'],_0x5a7d4d[_0x3ab3f6(0x100)])?_0x523e70=!![]:global_registry['isPrivateGrid']=!![]);global_registry['cloudProvider']=_0x50f118[_0x3ab3f6(0x111)],global_registry[_0x3ab3f6(0x20b)]=_0x50f118[_0x3ab3f6(0x1c7)],global_registry[_0x3ab3f6(0x124)]=_0x50f118['clusterName'];const _0x10417f=await _0x5a7d4d['eEVPK'](getCloudProviderObject,_0x50f118[_0x3ab3f6(0x111)],_0x50f118[_0x3ab3f6(0x124)],_0xd81cf0,_0xa1ab4e,webSocketUtils,_0x50f118),_0xfca41e=await _0x10417f[_0x3ab3f6(0x148)]();if(!_0xfca41e)_0x5a7d4d['RafyX'](_0x5a7d4d[_0x3ab3f6(0x110)],_0x5a7d4d[_0x3ab3f6(0x110)])?(logger[_0x3ab3f6(0x1cf)](_0x3ab3f6(0x204)+_0x50f118['clusterName']+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x3e4203=![],_0x2dd9db=!![]):_0x5bdda3=null;else{if(_0x5a7d4d[_0x3ab3f6(0x192)](_0x5a7d4d[_0x3ab3f6(0x184)],_0x5a7d4d[_0x3ab3f6(0x184)]))_0x3e4203=!![];else throw new _0x43a1d4(_0x3ab3f6(0x181)+_0x4d973b+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}_0x3a4877=_0x50f118[_0x3ab3f6(0x124)],_0x164723=_0x50f118[_0x3ab3f6(0x111)][_0x3ab3f6(0x120)](),_0x183c6c=_0x50f118[_0x3ab3f6(0x1c7)];}else _0x162585[_0x3ab3f6(0x10b)]=!![];}else _0x50f118[_0x3ab3f6(0x149)]&&(_0x5a7d4d['UdAcS'](_0x5a7d4d[_0x3ab3f6(0x104)],_0x5a7d4d[_0x3ab3f6(0x233)])?_0x1faf63=null:global_registry[_0x3ab3f6(0x149)]=_0x50f118[_0x3ab3f6(0x149)]);global_registry['gridName']=_0x50f118[_0x3ab3f6(0x141)];const _0x20142c={'method':_0x5a7d4d['CiyVY'],'headers':_0x5a7d4d[_0x3ab3f6(0x19b)](getAuthHeader,_0x70e9c1[_0x3ab3f6(0x1e0)][_0x3ab3f6(0x1fa)],_0x70e9c1[_0x3ab3f6(0x1e0)]['password']),'throwHttpErrors':![]},_0x2c3153={};_0x2c3153[_0x3ab3f6(0x141)]=_0xd81cf0;const _0xfebe02=_0x2c3153;_0x2dd9db&&(_0x5a7d4d[_0x3ab3f6(0x139)](_0x5a7d4d[_0x3ab3f6(0x1b0)],_0x5a7d4d[_0x3ab3f6(0x1b0)])?(_0xfebe02[_0x3ab3f6(0x1c7)]=_0x183c6c,_0xfebe02[_0x3ab3f6(0x111)]=_0x164723,_0xfebe02[_0x3ab3f6(0x15e)]=!![]):(_0x12807c=_0x12f9ec[_0x3ab3f6(0x166)],_0x6e022a=_0x5a7d4d['MZBYc']));const _0x42bf27='https://'+AG_API_URL+_0x3ab3f6(0x1fd),_0x2b8f77={'searchParams':_0xfebe02,'throwHttpErrors':![],..._0x20142c},_0x5052e6=_0x2b8f77,_0x48806a=await _0x5a7d4d['jFdxQ'](got,_0x42bf27,_0x5052e6);if(_0x5a7d4d[_0x3ab3f6(0x1b9)](_0x48806a,null)||_0x5a7d4d[_0x3ab3f6(0x173)](_0x48806a,undefined)){if(_0x5a7d4d[_0x3ab3f6(0x20a)](_0x5a7d4d['mDMeN'],_0x5a7d4d[_0x3ab3f6(0x236)])){const _0xe9fcea=_0x5a7d4d[_0x3ab3f6(0x1ce)][_0x3ab3f6(0x154)]('|');let _0x502ea3=0x0;while(!![]){switch(_0xe9fcea[_0x502ea3++]){case'0':_0x195759=null;continue;case'1':_0x3d4379=_0x209035[_0x3ab3f6(0x185)];continue;case'2':_0x244c88=_0x2d37dd[_0x3ab3f6(0x115)];continue;case'3':_0x14157e[_0x3ab3f6(0x1cf)](_0x22f2fd);continue;case'4':_0x5a7d4d['LFRmj'](_0x23ae2f[_0x3ab3f6(0x195)],_0x51f91e)&&_0x297665[_0x3ab3f6(0x195)]&&(_0x35fdd3[_0x3ab3f6(0x10b)]=!![]);continue;case'5':_0x108a9f=_0x4fe806[_0x3ab3f6(0xfa)];continue;case'6':const _0x4a857f={};_0x4a857f[_0x3ab3f6(0x12a)]=_0x1aae51[_0x3ab3f6(0x187)],_0x4a857f[_0x3ab3f6(0x228)]=_0x5f1625,_0x14dada[_0x3ab3f6(0x1bf)](_0x219db8,_0x4a857f);continue;case'7':_0x4c71bc=null;continue;case'8':_0x5a7d4d['VWIGr'](_0x107951,_0x449b2a,_0x383586,_0x324441,_0x405ae7,_0x4adb3c,_0x1284f3,_0x51ea7f,_0x2f691c,_0x3eb144,_0x12b79f,_0x4ff053);continue;case'9':_0x1aaebc='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x818129;continue;case'10':_0x5090b5=_0x3bcaea['s3bucket'];continue;case'11':_0x64e686=null;continue;case'12':_0xd25f6f=_0x3c1c17[_0x3ab3f6(0x10d)];continue;case'13':_0x10f887=_0x3954a7[_0x3ab3f6(0x186)];continue;case'14':_0x172330=_0x119668[_0x3ab3f6(0x11d)];continue;}break;}}else _0x4da45f=_0x5a7d4d[_0x3ab3f6(0x232)],await _0x5a7d4d['aQRoi'](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes['ERROR'],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1ad)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1);}_0x5a7d4d[_0x3ab3f6(0x1f3)](_0x48806a[_0x3ab3f6(0x188)],0x191)&&(_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x5a7d4d['AVdAv'],_0x5a7d4d[_0x3ab3f6(0x136)])?(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x193)],await _0x5a7d4d[_0x3ab3f6(0xfb)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1a8)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger['error'](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)):(_0x2c70d8[_0x3ab3f6(0x1cf)]('Cluster:\x20'+_0x26ee74[_0x3ab3f6(0x124)]+_0x3ab3f6(0x1ee)),_0x514fb5=![],_0x2068ce=!![]));_0x5a7d4d[_0x3ab3f6(0x182)](_0x48806a[_0x3ab3f6(0x188)],0xc8)&&(_0x5a7d4d[_0x3ab3f6(0x182)](_0x5a7d4d[_0x3ab3f6(0x177)],_0x5a7d4d[_0x3ab3f6(0x177)])?_0xf64a17=_0x5a7d4d[_0x3ab3f6(0x106)]:(_0x4da45f=_0x3ab3f6(0x178)+JSON['stringify'](_0x48806a[_0x3ab3f6(0x1e5)]),await _0x5a7d4d[_0x3ab3f6(0xfb)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1d8)],_0x5a7d4d['cwfOr']),logger['error'](_0x4da45f),process['exit'](0x1)));const _0x4fc25c=JSON[_0x3ab3f6(0x165)](_0x48806a[_0x3ab3f6(0x1e5)]),_0x461379={};_0x461379[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x130)],_0x461379[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x164)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x461379);const _0x486fdb={};_0x486fdb[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x486fdb[_0x3ab3f6(0x228)]=_0x5a7d4d['pEgVX'],webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x486fdb);_0x4fc25c[_0x3ab3f6(0x137)]&&(_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x5a7d4d['tetJC'],_0x5a7d4d[_0x3ab3f6(0x1f6)])?(_0x3b1d19[_0x3ab3f6(0x1c7)]=_0x583c79,_0x4453fe['cloudProvider']=_0x2e287c,_0x2231cb[_0x3ab3f6(0x15e)]=!![]):(_0x4da45f='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0xd81cf0+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x146)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1)));const _0x45d1fa=_0x4fc25c['gridProfiles'];let _0xee3fd7=_0x45d1fa[_0x4fc25c[_0x3ab3f6(0x1c4)]];_0x50f118[_0x3ab3f6(0x149)]&&(_0x5a7d4d[_0x3ab3f6(0x192)](_0x5a7d4d['VsMMj'],_0x5a7d4d[_0x3ab3f6(0x1fb)])?_0x4e6db9[_0x3ab3f6(0x203)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x17aca2+'\x20\x0a'+_0x115dad[_0x3ab3f6(0x1e9)](_0x36aad1[_0x3ab3f6(0x175)])):_0xee3fd7=_0x45d1fa[_0x50f118[_0x3ab3f6(0x149)]]);if(_0x5a7d4d['nrsfY'](_0x3e4203,![])&&_0x5a7d4d[_0x3ab3f6(0x214)](_0x2dd9db,![])){if(_0x5a7d4d[_0x3ab3f6(0x10a)](_0x5a7d4d['oMCsj'],_0x5a7d4d[_0x3ab3f6(0x19a)]))_0xcfcff[_0x3ab3f6(0x149)]=_0x465c7b[_0x3ab3f6(0x149)];else{_0x5a7d4d[_0x3ab3f6(0x1d2)](_0xee3fd7,undefined)&&(_0x5a7d4d[_0x3ab3f6(0x182)](_0x5a7d4d[_0x3ab3f6(0x135)],_0x5a7d4d[_0x3ab3f6(0x135)])?_0x26fb37['isPrivateGrid']=!![]:(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x20d)],await _0x5a7d4d[_0x3ab3f6(0x158)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d['Uxyyd'],_0x5a7d4d[_0x3ab3f6(0x1f4)],_0x5a7d4d['cwfOr']),logger['error'](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)));global_registry[_0x3ab3f6(0x167)]=_0xee3fd7['id'],_0x4da45f=_0x3ab3f6(0x21a)+_0xd81cf0+_0x3ab3f6(0x17e)+_0xee3fd7[_0x3ab3f6(0x113)]+'\x27\x20grid\x20profile',logger['info'](_0x4da45f);const _0x4c32b7={};_0x4c32b7[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x4c32b7[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4c32b7),_0x164723=_0xee3fd7[_0x3ab3f6(0x111)],_0x3a4877=_0xee3fd7[_0x3ab3f6(0x124)],_0x183c6c=_0xee3fd7[_0x3ab3f6(0x1c7)],_0x1d107a=_0xee3fd7[_0x3ab3f6(0x186)],_0x21e934=_0xee3fd7[_0x3ab3f6(0x115)],_0x36775b=_0xee3fd7[_0x3ab3f6(0x1f0)],_0x324f05=_0xee3fd7[_0x3ab3f6(0x1b3)],_0x17384c=_0xee3fd7[_0x3ab3f6(0x127)],_0x37394d=_0xee3fd7['s3bucket'],_0x4ab4b6=_0xee3fd7[_0x3ab3f6(0x11d)],_0x391fdf=_0xee3fd7['maxNodes'],_0x11fd0f=_0x4fc25c[_0x3ab3f6(0x10d)],_0x544a09=_0x4fc25c[_0x3ab3f6(0xfa)];_0x36775b&&_0x5a7d4d[_0x3ab3f6(0x1c8)](_0x36775b[_0x3ab3f6(0x121)],0x0)&&(_0x5a7d4d[_0x3ab3f6(0x1de)](_0x5a7d4d[_0x3ab3f6(0x224)],_0x5a7d4d['VPWIu'])?_0x36775b=null:_0x4b74f0[_0x3ab3f6(0x10b)]=!![]);_0x17384c&&_0x5a7d4d[_0x3ab3f6(0x144)](_0x17384c[_0x3ab3f6(0x121)],0x0)&&(_0x5a7d4d[_0x3ab3f6(0x192)](_0x5a7d4d['YFDZF'],_0x5a7d4d['YFDZF'])?_0x17384c=null:_0x17cf43=_0x49c461[_0x1699ff[_0x3ab3f6(0x149)]]);if(_0x5a7d4d[_0x3ab3f6(0x10a)](_0xee3fd7[_0x3ab3f6(0x195)],undefined)&&_0xee3fd7[_0x3ab3f6(0x195)]){if(_0x5a7d4d[_0x3ab3f6(0x182)](_0x5a7d4d[_0x3ab3f6(0x117)],_0x5a7d4d[_0x3ab3f6(0x117)])){const _0x8c02c4={};_0x8c02c4[_0x3ab3f6(0x12a)]=_0x1002be[_0x3ab3f6(0x187)],_0x8c02c4['message']=_0x3ab3f6(0x181)+_0x3372b8+_0x3ab3f6(0x17b),_0x55e921['sendEventToBackend'](_0x13af1f,_0x8c02c4,_0x5a7d4d[_0x3ab3f6(0x223)]),_0x8bf903[_0x3ab3f6(0x1cf)](_0x3ab3f6(0x181)+_0x228260+_0x3ab3f6(0x17b)),_0x5c0745=!![];if(_0x5a7d4d[_0x3ab3f6(0x1c6)](_0x4ae841,!![]))throw new _0x37bfd5(_0x3ab3f6(0x181)+_0x279465+_0x3ab3f6(0x151));}else global_registry[_0x3ab3f6(0x10b)]=!![];}_0x5a7d4d[_0x3ab3f6(0x1ec)](updateGlobalRegistryWithConfig,_0x164723,_0x3a4877,_0x183c6c,_0x1d107a,_0x21e934,_0x37394d,_0xee3fd7,_0x11fd0f,_0x544a09,_0x4ab4b6,_0x391fdf);}}else{if(_0x5a7d4d[_0x3ab3f6(0x1de)](_0x2dd9db,!![])){if(_0x5a7d4d[_0x3ab3f6(0x10a)](_0x5a7d4d['aYzTi'],_0x5a7d4d[_0x3ab3f6(0x15c)]))_0x510cd4[_0x3ab3f6(0x17d)]();else{_0x4da45f=_0x3ab3f6(0x19e)+_0xd81cf0,logger['info'](_0x4da45f);const _0xbef7dd={};_0xbef7dd[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0xbef7dd['message']=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0xbef7dd),_0x1d107a=_0xee3fd7[_0x3ab3f6(0x186)],_0x21e934=_0xee3fd7[_0x3ab3f6(0x115)],_0x36775b=null,_0x324f05=null,_0x17384c=null,_0x37394d=_0xee3fd7['s3bucket'],_0x4ab4b6=_0xee3fd7[_0x3ab3f6(0x11d)],_0x391fdf=_0xee3fd7['maxNodes'],_0x11fd0f=_0x4fc25c[_0x3ab3f6(0x10d)],_0x544a09=_0x4fc25c[_0x3ab3f6(0xfa)];if(_0x5a7d4d[_0x3ab3f6(0x16a)](_0xee3fd7[_0x3ab3f6(0x195)],undefined)&&_0xee3fd7[_0x3ab3f6(0x195)]){if(_0x5a7d4d[_0x3ab3f6(0x16a)](_0x5a7d4d[_0x3ab3f6(0x169)],_0x5a7d4d['pFTAh']))global_registry['isPrivateGrid']=!![];else{const _0x42e712={};_0x42e712[_0x3ab3f6(0x12a)]=_0x17a5b5[_0x3ab3f6(0x187)],_0x42e712[_0x3ab3f6(0x228)]=_0x49c7ae,_0x46b7ab[_0x3ab3f6(0x1bf)](_0xc4801d,_0x42e712,_0x5a7d4d[_0x3ab3f6(0x1c3)],!![]);}}_0x5a7d4d[_0x3ab3f6(0x1ec)](updateGlobalRegistryWithConfig,_0x164723,_0x3a4877,_0x183c6c,_0x1d107a,_0x21e934,_0x37394d,_0xee3fd7,_0x11fd0f,_0x544a09,_0x4ab4b6,_0x391fdf);}}else{if(_0x5a7d4d[_0x3ab3f6(0x229)](_0x5a7d4d[_0x3ab3f6(0x18f)],_0x5a7d4d[_0x3ab3f6(0x1a9)]))_0x5e875b['info'](_0x3ab3f6(0x108)+_0x32540a+'\x20');else{const _0x1ab2e0=_0x5a7d4d[_0x3ab3f6(0x216)][_0x3ab3f6(0x154)]('|');let _0x353d64=0x0;while(!![]){switch(_0x1ab2e0[_0x353d64++]){case'0':global_registry[_0x3ab3f6(0x10d)]=_0x4fc25c[_0x3ab3f6(0x10d)];continue;case'1':const _0x5448de={};_0x5448de[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x130)],_0x5448de[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x164)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x5448de);continue;case'2':const _0x30d84d={};_0x30d84d[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x30d84d[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x30d84d);continue;case'3':global_registry[_0x3ab3f6(0x111)]=_0x164723;continue;case'4':global_registry[_0x3ab3f6(0x124)]=_0x3a4877;continue;case'5':logger[_0x3ab3f6(0x1cf)](_0x4da45f);continue;case'6':global_registry[_0x3ab3f6(0x20b)]=_0x183c6c;continue;case'7':global_registry[_0x3ab3f6(0xfa)]=_0x4fc25c[_0x3ab3f6(0xfa)];continue;case'8':_0x4da45f=_0x3ab3f6(0x133)+_0xd81cf0+_0x3ab3f6(0x12c)+_0x3a4877+'\x27';continue;}break;}}}}const _0x37541a=await _0x5a7d4d[_0x3ab3f6(0x234)](getCloudProviderObject,_0x164723,_0x3a4877,_0xd81cf0,_0xa1ab4e,webSocketUtils,_0x50f118);_0x5a7d4d[_0x3ab3f6(0x182)](_0x164723,AZURE)&&_0x37541a['sendResourceDataToHST']();let _0x15acf2;if(_0x5a7d4d['jQSbj'](_0x3e4203,![])){_0x4da45f=_0x3ab3f6(0x125)+_0x183c6c+').';const _0x106e1f={};_0x106e1f['type']=WS_EVENTS[_0x3ab3f6(0x187)],_0x106e1f[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x106e1f),logger[_0x3ab3f6(0x1cf)](_0x4da45f);const _0x349ba3=await _0x37541a[_0x3ab3f6(0x148)]();if(_0x349ba3){const _0x4d0a74={};_0x4d0a74[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x4d0a74['message']='Cluster\x20'+_0x3a4877+_0x3ab3f6(0x17b),webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4d0a74,_0x5a7d4d['mmNSq']),logger['info'](_0x3ab3f6(0x181)+_0x3a4877+_0x3ab3f6(0x17b)),_0x3e4203=!![];if(_0x5a7d4d[_0x3ab3f6(0x17a)](_0x2dd9db,!![]))throw new Error(_0x3ab3f6(0x181)+_0x3a4877+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x1a5cbd={};_0x1a5cbd[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x1a5cbd[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x22e)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x1a5cbd),logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x22e)]);const _0x30eca1=_0x5a7d4d[_0x3ab3f6(0x10c)](_0x36775b,null)&&_0x5a7d4d[_0x3ab3f6(0x10a)](_0x36775b,undefined),_0x23d7ad=_0x5a7d4d[_0x3ab3f6(0x10c)](_0x17384c,null)&&_0x5a7d4d[_0x3ab3f6(0x10e)](_0x17384c,undefined)&&_0x5a7d4d[_0x3ab3f6(0xf7)](_0x17384c[_0x3ab3f6(0x121)],0x0);if(_0x30eca1){_0x5a7d4d[_0x3ab3f6(0x229)](_0x23d7ad,![])&&(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0xf3)],await _0x5a7d4d[_0x3ab3f6(0x201)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['pNMqu'],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1));const _0x4ac606=await _0x37541a['isVPCPresent'](_0x36775b);_0x5a7d4d[_0x3ab3f6(0x15d)](_0x4ac606,![])?(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x126)],await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1a2)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1)):logger[_0x3ab3f6(0x1cf)](_0x3ab3f6(0x108)+_0x36775b+'\x20');const _0x38f605=await _0x37541a[_0x3ab3f6(0x17f)](_0x17384c,_0x36775b);_0x5a7d4d[_0x3ab3f6(0x102)](_0x38f605[0x0],![])?(_0x4da45f='Subnets:\x20'+JSON['stringify'](_0x38f605[0x1])+_0x3ab3f6(0x152)+_0x36775b+_0x3ab3f6(0x212),await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x14e)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)):logger[_0x3ab3f6(0x1cf)](_0x3ab3f6(0xf5)+JSON[_0x3ab3f6(0x1e9)](_0x17384c)+'\x20'),await _0x37541a['setupNewCluster'](_0x36775b,_0x17384c);}else{const _0x413d9f=_0x5a7d4d[_0x3ab3f6(0x18b)][_0x3ab3f6(0x154)]('|');let _0x1fcba1=0x0;while(!![]){switch(_0x413d9f[_0x1fcba1++]){case'0':await _0x37541a[_0x3ab3f6(0x128)](_0x36775b,_0x17384c);continue;case'1':const _0x338b89={};_0x338b89['type']=WS_EVENTS[_0x3ab3f6(0x187)],_0x338b89['message']=_0x5a7d4d[_0x3ab3f6(0x1a1)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x338b89);continue;case'2':const _0x12f80a={};_0x12f80a[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x12f80a[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x145)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x12f80a);continue;case'3':logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x145)]);continue;case'4':logger['info'](_0x5a7d4d[_0x3ab3f6(0x1a1)]);continue;}break;}}}}_0x3e4203&&_0x5a7d4d[_0x3ab3f6(0x1b9)](_0x164723,AZURE)&&(await _0x37541a[_0x3ab3f6(0x134)](),await _0x37541a[_0x3ab3f6(0x20f)]());const [_0xdd18e0,_0x1f8bde,_0x5a2404,_0x32548f,_0x5c874b,_0x860910]=await _0x5a7d4d[_0x3ab3f6(0x1b8)](createK8sClient,_0x37541a);_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x3e4203,![])&&_0x5a7d4d[_0x3ab3f6(0x173)](_0x164723,AWS)&&(global_registry[_0x3ab3f6(0x1bb)]=!![],_0x15acf2=await _0x37541a['setupAutoscaler'](_0xdd18e0,_0x50f118));try{_0xa65f22=_0x5a7d4d['hGcsB'](kebabCase,_0xd81cf0),logger[_0x3ab3f6(0x1cf)](_0x5a7d4d['fujUi']);const _0x1fb745={};_0x1fb745['type']=WS_EVENTS[_0x3ab3f6(0x187)],_0x1fb745[_0x3ab3f6(0x228)]=_0x5a7d4d['fujUi'],webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x1fb745);if(_0x5a7d4d[_0x3ab3f6(0x10e)](_0xa65f22,_0x5a7d4d['EzrHo'])){const _0x5c012a={};_0x5c012a[_0x3ab3f6(0x156)]=_0x5a7d4d[_0x3ab3f6(0x221)],_0x5c012a[_0x3ab3f6(0x1b5)]=_0x5a7d4d[_0x3ab3f6(0x221)];const _0x56d4e9={};_0x56d4e9[_0x3ab3f6(0x113)]=_0xa65f22,_0x56d4e9[_0x3ab3f6(0x189)]=_0x5c012a;const _0x127e01={};_0x127e01[_0x3ab3f6(0x1d9)]=_0x56d4e9;const _0x3e495c=_0x127e01,_0x362d1d={};_0x362d1d[_0x3ab3f6(0x1e5)]=_0x3e495c,await _0xdd18e0[_0x3ab3f6(0x107)](_0x362d1d),logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x202)]);}const _0x4199b4={};_0x4199b4[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x4199b4[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x197)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4199b4);const _0x155b09={};_0x155b09[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x155b09[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x1a3)],webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x155b09),logger['info'](_0x5a7d4d[_0x3ab3f6(0x22d)]);let _0x7edebc={};_0x5a7d4d[_0x3ab3f6(0x1ac)](_0x164723,AZURE)&&(_0x7edebc={'clientId':await _0x37541a['getResourceClientId'](_0x3ab3f6(0x171)+_0x3a4877)});await _0x5a7d4d['GcwRA'](addGridComponents,_0xdd18e0,_0x1f8bde,_0x5a2404,_0x32548f,_0xa65f22,_0x3a4877,_0x15acf2,_0x5c874b,_0x860910,_0x7edebc),_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x1a4)],logger[_0x3ab3f6(0x1cf)](_0x4da45f);const _0x2175e0={};_0x2175e0[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x2175e0[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x2175e0),_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x14d)],logger['info'](_0x4da45f);const _0x2e793f={};_0x2e793f[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x2e793f[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x2e793f),await _0x5a7d4d[_0x3ab3f6(0x1ef)](waitForDeployment,_0x1f8bde,_0xa65f22,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x454fe7=await _0x5a7d4d[_0x3ab3f6(0x129)](getNamespaceUID,_0xdd18e0,_0xa65f22),_0x442501=global_registry[_0x3ab3f6(0x10b)]?_0x5a7d4d[_0x3ab3f6(0x213)]:_0x5a7d4d[_0x3ab3f6(0x1eb)],_0x173c2c={};_0x173c2c[_0x3ab3f6(0x113)]=_0x442501,_0x173c2c[_0x3ab3f6(0x1a6)]=_0x5a7d4d[_0x3ab3f6(0x12f)];const _0x4f1cb8=await _0xdd18e0[_0x3ab3f6(0x219)](_0x173c2c);let _0x388eb5=_0x37541a[_0x3ab3f6(0x170)](_0x4f1cb8)+'/'+_0xa65f22,_0x1cb712=_0x5a7d4d[_0x3ab3f6(0x106)];try{const _0x366f4c=_0x3ab3f6(0x1db)+AG_API_URL+_0x3ab3f6(0x172)+_0x454fe7,_0x3d828f=await _0x5a7d4d[_0x3ab3f6(0x1ae)](got,_0x366f4c,_0x20142c);(_0x5a7d4d[_0x3ab3f6(0x174)](_0x3d828f,null)||_0x5a7d4d[_0x3ab3f6(0x192)](_0x3d828f,undefined))&&(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x1ed)],await _0x5a7d4d['agMFb'](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes['ERROR'],_0x5a7d4d['Uxyyd'],_0x5a7d4d[_0x3ab3f6(0x16f)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1));_0x5a7d4d[_0x3ab3f6(0x214)](_0x3d828f['statusCode'],0x191)&&(_0x4da45f=_0x5a7d4d['fhuoA'],await _0x5a7d4d[_0x3ab3f6(0x1cc)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d['Uxyyd'],_0x5a7d4d[_0x3ab3f6(0x1ca)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1));_0x5a7d4d[_0x3ab3f6(0x21c)](_0x3d828f[_0x3ab3f6(0x188)],0xc8)&&(_0x4da45f='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x3ab3f6(0x1e9)](_0x3d828f),await _0x5a7d4d[_0x3ab3f6(0xfb)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['dFVUI'],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1));const _0x3b05c5=JSON[_0x3ab3f6(0x165)](_0x3d828f['body']);_0x3b05c5['route53']&&(_0x388eb5=_0x3b05c5[_0x3ab3f6(0x166)],_0x1cb712=_0x5a7d4d['MZBYc']),global_registry['isPrivateGrid']&&(_0x1cb712=_0x5a7d4d['IOECH']);}catch(_0x455f6c){}_0x4da45f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x388eb5+'\x20',logger['info'](_0x4da45f);const _0x31761c={};_0x31761c[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x31761c['message']=_0x4da45f,webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x31761c),_0x4da45f=_0x3ab3f6(0x1dc)+_0x1cb712+_0x3ab3f6(0x10f)+_0x388eb5+_0x3ab3f6(0x21d),logger[_0x3ab3f6(0x1cf)](_0x4da45f);const _0x41ba23={};_0x41ba23[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x41ba23[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x41ba23);const _0x4ab9bf={};_0x4ab9bf['type']=WS_EVENTS[_0x3ab3f6(0x157)],_0x4ab9bf[_0x3ab3f6(0x228)]=_0x3ab3f6(0x1fc)+_0x388eb5,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4ab9bf),await webSocketUtils[_0x3ab3f6(0x191)](0x7d0);}catch(_0x27bd56){logger[_0x3ab3f6(0x203)](_0x3ab3f6(0x1c1)+_0x27bd56+'\x20\x0a'+JSON['stringify'](_0x27bd56[_0x3ab3f6(0x175)]));if(_0x5a7d4d[_0x3ab3f6(0x1d7)](_0x3e4203,![]))try{logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x132)]),await _0x5a7d4d['aalNE'](removeGridComponents,_0xdd18e0,_0x1f8bde,_0x5a2404,_0x32548f,_0xa65f22),await _0x37541a[_0x3ab3f6(0x15a)](_0xdd18e0,global_registry[_0x3ab3f6(0x20b)]);}catch(_0x1faaa7){logger[_0x3ab3f6(0x203)](_0x3ab3f6(0x206)+_0x1faaa7+'\x20\x0a'+JSON[_0x3ab3f6(0x1e9)](_0x1faaa7[_0x3ab3f6(0x175)]));}throw _0x27bd56;}}catch(_0x13a306){const _0x55c5a5=_0x3ab3f6(0x222)+_0x13a306+'\x20\x0a'+JSON[_0x3ab3f6(0x1e9)](_0x13a306[_0x3ab3f6(0x175)]);if(_0xa1ab4e){const _0x191821={};_0x191821[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x191821[_0x3ab3f6(0x228)]=_0x55c5a5,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x191821,_0x5a7d4d[_0x3ab3f6(0x1c3)],!![]);}await webSocketUtils[_0x3ab3f6(0x191)](0x7d0);const _0x90b89c={};_0x90b89c[_0x3ab3f6(0x203)]=_0x55c5a5,await _0x5a7d4d[_0x3ab3f6(0x15f)](sendInstrumentationEvent,_0x50f118,_0x5a7d4d['Uxyyd'],messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x13a)],_0x90b89c,_0x50f118),logger[_0x3ab3f6(0x203)](_0x55c5a5);}process[_0x3ab3f6(0x1df)](0x0);};
@@ -1 +1 @@
1
- const a10_0x12509d=a10_0x27e7;(function(_0x5cfd1c,_0x6ebf3a){const _0x1172cf=a10_0x27e7,_0xa46beb=_0x5cfd1c();while(!![]){try{const _0x49431e=parseInt(_0x1172cf(0x134))/0x1+-parseInt(_0x1172cf(0x135))/0x2*(parseInt(_0x1172cf(0x125))/0x3)+-parseInt(_0x1172cf(0x127))/0x4*(parseInt(_0x1172cf(0x12c))/0x5)+parseInt(_0x1172cf(0x130))/0x6*(parseInt(_0x1172cf(0x12a))/0x7)+parseInt(_0x1172cf(0x126))/0x8+-parseInt(_0x1172cf(0x133))/0x9*(-parseInt(_0x1172cf(0x139))/0xa)+-parseInt(_0x1172cf(0x122))/0xb;if(_0x49431e===_0x6ebf3a)break;else _0xa46beb['push'](_0xa46beb['shift']());}catch(_0x26f84b){_0xa46beb['push'](_0xa46beb['shift']());}}}(a10_0x231f,0xca578));function a10_0x27e7(_0x203fa9,_0x276a10){const _0x231f20=a10_0x231f();return a10_0x27e7=function(_0x27e7ce,_0x2b3172){_0x27e7ce=_0x27e7ce-0x122;let _0x41c5ef=_0x231f20[_0x27e7ce];return _0x41c5ef;},a10_0x27e7(_0x203fa9,_0x276a10);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x12509d(0x129));function a10_0x231f(){const _0x15b1cc=['10UwfSJt','nJJzl','List\x20Grid\x20resources.','commandDir','30JEzlBQ','19874096NgtpsM','help','recommendCommands','54609DuUBGW','12108768Tqjgua','212252jSvglA','delete','../config/constants','322vWifnu','ttVVz','150nxOvXJ','builder','handler','usage','99510Hbugth','epilogue','delete_commands','2207313GrunPy','1306156qcTvph'];a10_0x231f=function(){return _0x15b1cc;};return a10_0x231f();}exports['command']=a10_0x12509d(0x128),exports['desc']=a10_0x12509d(0x137),exports[a10_0x12509d(0x12d)]=function(_0x202837){const _0x14873f=a10_0x12509d,_0x99daa={};_0x99daa[_0x14873f(0x12b)]=_0x14873f(0x132),_0x99daa[_0x14873f(0x136)]=_0x14873f(0x123);const _0x1d7094=_0x99daa;return _0x202837[_0x14873f(0x12f)](HELP_HEADER_MESSAGE[_0x14873f(0x128)])[_0x14873f(0x131)](HELP_FOOTER_MESSAGE)[_0x14873f(0x138)](_0x1d7094['ttVVz'])['demandCommand']()[_0x14873f(0x124)]()['strict']()[_0x14873f(0x123)](_0x1d7094['nJJzl']);},exports[a10_0x12509d(0x12e)]=function(_0x143cc4){};
1
+ const a10_0x1aa802=a10_0x4364;function a10_0x1c13(){const _0x688023=['13873995Ngokqu','8iWdGBC','390253eLYKKu','../config/constants','commandDir','2139400AaTLDt','usage','List\x20Grid\x20resources.','builder','6391126QwBDIf','1893840YMeOzv','delete','delete_commands','help','demandCommand','desc','6enEgqh','VJVUB','4436856SRteIL','handler','2014842HDRDYl','cONKw','command'];a10_0x1c13=function(){return _0x688023;};return a10_0x1c13();}(function(_0x6ff5c5,_0x578906){const _0x2ee05c=a10_0x4364,_0x2257e4=_0x6ff5c5();while(!![]){try{const _0x24adbe=parseInt(_0x2ee05c(0x1a6))/0x1+parseInt(_0x2ee05c(0x1a1))/0x2+-parseInt(_0x2ee05c(0x1b4))/0x3*(-parseInt(_0x2ee05c(0x1ae))/0x4)+-parseInt(_0x2ee05c(0x1a9))/0x5+-parseInt(_0x2ee05c(0x19f))/0x6+parseInt(_0x2ee05c(0x1ad))/0x7+-parseInt(_0x2ee05c(0x1a5))/0x8*(parseInt(_0x2ee05c(0x1a4))/0x9);if(_0x24adbe===_0x578906)break;else _0x2257e4['push'](_0x2257e4['shift']());}catch(_0xcc75d6){_0x2257e4['push'](_0x2257e4['shift']());}}}(a10_0x1c13,0x85f5d));function a10_0x4364(_0x1bf729,_0x1c38ac){const _0x1c136d=a10_0x1c13();return a10_0x4364=function(_0x4364e7,_0x590717){_0x4364e7=_0x4364e7-0x19e;let _0x24f844=_0x1c136d[_0x4364e7];return _0x24f844;},a10_0x4364(_0x1bf729,_0x1c38ac);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1aa802(0x1a7));exports[a10_0x1aa802(0x1a3)]=a10_0x1aa802(0x1af),exports[a10_0x1aa802(0x1b3)]=a10_0x1aa802(0x1ab),exports[a10_0x1aa802(0x1ac)]=function(_0x4faaef){const _0x4bedc0=a10_0x1aa802,_0x16f53d={};_0x16f53d['VJVUB']=_0x4bedc0(0x1b0),_0x16f53d[_0x4bedc0(0x1a2)]=_0x4bedc0(0x1b1);const _0x2606c1=_0x16f53d;return _0x4faaef[_0x4bedc0(0x1aa)](HELP_HEADER_MESSAGE[_0x4bedc0(0x1af)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4bedc0(0x1a8)](_0x2606c1[_0x4bedc0(0x19e)])[_0x4bedc0(0x1b2)]()['recommendCommands']()['strict']()[_0x4bedc0(0x1b1)](_0x2606c1['cONKw']);},exports[a10_0x1aa802(0x1a0)]=function(_0x100744){};
@@ -1 +1 @@
1
- const a11_0x266e99=a11_0x15cc;function a11_0x4752(){const _0x4f1415=['38iSSbtb','../../utils/gridComponents','delete','oBmov','UKaSa','gjzyD','error','zQUsJ','1916944PMpjeY','uuid','CzKLH','toLowerCase','XnShK','RssmW','ezJPU','options','onlyGridInCluster','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','/packages/cli/grid/','SJLrQ','delete-grid-called','QCIVq','edjZz','ODxVP','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','../../utils/createk8sClient','6452664UJMNHk','CRYSr','string','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','catch','\x22\x20with\x20ID\x20','parse','BHLqS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RBNFf','ZUNFW','clusterId','cloudProvider','hYRps','QVREK','RcwtK','JLyJk','ZlDZw','Namespace:\x20','MNLxA','../../config/logger','../../utils/userInput','info','iUTNM','Failed\x20to\x20delete\x20resources!\x20Error:\x20','deleteCluster','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','qMWZF','czhNI','Pass\x20the\x20ID\x20of\x20the\x20Grid','36JadcQK','INFO','ePigC','Rxdrf','password','eHKBm','https://','warn','epilogue','fXbHz','QPLxn','stringify','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','OJtFF','14486131AmaeSO','requestId','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','exit','argv','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','grid','gridId','OOrpO','ZmwQQ','region','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','RmBGR','dAaHe','rHcyy','10xchlpr','xREzp','name','7lnbrwV','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','isClusterPresent','UFKvN','Browserstack','kEXxx','WLxFH','help','invalid-grid-id','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','1468asefny','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XZQWU','type','Cluster:\x20','yfEbN','unauthorised','Successfully\x20deleted\x20the\x20grid','writeFileSync','144kNSynC','fetchLocalCreds','usage','uLxZe','KQORY','14187FXVVEP','../../config/constants','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','MblJy','Delete\x20an\x20Automation\x20grid.','7173YSAPVD','grid-id','../../utils/instrumentationUtils','DPgIi','readNamespace','RoWdl','ERROR','AVUyM','clusterName','3278180GxgTdG','isBrowserstackCluster','message','FljJZ','MXlwB','fZyfp','JKuAO','username','PUxdZ','DELETE','clusterSpawnedVia','lYRWV','OrRDG','unknown-error','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','readFileSync','eBnki','Qsayw','ovWpN','URNYc','\x22\x20and\x20ID\x20','DZhLr','configureIfNotConfigured','BGseB','yTTts','HTKLK','1207323vLKWbq','statusCode','AtPee','gINNp','xbcaS'];a11_0x4752=function(){return _0x4f1415;};return a11_0x4752();}function a11_0x15cc(_0x22671c,_0x267e84){const _0x475297=a11_0x4752();return a11_0x15cc=function(_0x15cc22,_0x2fe4aa){_0x15cc22=_0x15cc22-0x12c;let _0x589866=_0x475297[_0x15cc22];return _0x589866;},a11_0x15cc(_0x22671c,_0x267e84);}(function(_0x279e20,_0x2fc56a){const _0x1233cd=a11_0x15cc,_0x3df5a1=_0x279e20();while(!![]){try{const _0x1eade2=-parseInt(_0x1233cd(0x1be))/0x1*(-parseInt(_0x1233cd(0x148))/0x2)+parseInt(_0x1233cd(0x1b9))/0x3*(parseInt(_0x1233cd(0x1ab))/0x4)+-parseInt(_0x1233cd(0x1c7))/0x5+-parseInt(_0x1233cd(0x162))/0x6*(parseInt(_0x1233cd(0x1a1))/0x7)+-parseInt(_0x1233cd(0x150))/0x8*(-parseInt(_0x1233cd(0x180))/0x9)+parseInt(_0x1233cd(0x19e))/0xa*(-parseInt(_0x1233cd(0x18e))/0xb)+parseInt(_0x1233cd(0x1b4))/0xc*(parseInt(_0x1233cd(0x143))/0xd);if(_0x1eade2===_0x2fc56a)break;else _0x3df5a1['push'](_0x3df5a1['shift']());}catch(_0x158300){_0x3df5a1['push'](_0x3df5a1['shift']());}}}(a11_0x4752,0xdaef1));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x266e99(0x151)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x266e99(0x1ba)),{logger}=require(a11_0x266e99(0x176)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x266e99(0x149)),{sendInstrumentationEvent}=require(a11_0x266e99(0x1c0)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x266e99(0x177)),{createK8sClient}=require(a11_0x266e99(0x161)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods');exports['command']=a11_0x266e99(0x194),exports['desc']=a11_0x266e99(0x1bd),exports['builder']=function(_0x252236){const _0x286f2c=a11_0x266e99,_0xe405c8={};_0xe405c8[_0x286f2c(0x19c)]=_0x286f2c(0x17f),_0xe405c8[_0x286f2c(0x145)]=_0x286f2c(0x164),_0xe405c8[_0x286f2c(0x171)]=_0x286f2c(0x1a8);const _0xd3f755=_0xe405c8,_0x377f70={};_0x377f70['description']=_0xd3f755[_0x286f2c(0x19c)],_0x377f70['type']=_0xd3f755[_0x286f2c(0x145)];const _0x2efaa6={};return _0x2efaa6[_0x286f2c(0x1bf)]=_0x377f70,_0x252236[_0x286f2c(0x1b6)](HELP_HEADER_MESSAGE[_0x286f2c(0x14a)])[_0x286f2c(0x188)](HELP_FOOTER_MESSAGE)[_0x286f2c(0x157)](_0x2efaa6)['help'](_0xd3f755[_0x286f2c(0x171)])[_0x286f2c(0x192)];},exports['handler']=async function(_0x54214c){const _0x577659=a11_0x266e99,_0xb1aad6={'RoWdl':_0x577659(0x193),'qkfte':_0x577659(0x17f),'joeuX':_0x577659(0x164),'Rxdrf':'help','DPgIi':function(_0x5be669,_0x51b77e){return _0x5be669===_0x51b77e;},'JKuAO':_0x577659(0x16c),'yfEbN':_0x577659(0x1b7),'PUxdZ':function(_0x445fbf,_0x101a26){return _0x445fbf!==_0x101a26;},'oBmov':_0x577659(0x196),'WLxFH':function(_0xf40c1d){return _0xf40c1d();},'RmBGR':function(_0x5da8f1){return _0x5da8f1();},'HTKLK':function(_0x4270d4,_0x274fb0){return _0x4270d4===_0x274fb0;},'gINNp':'eNDAN','gjzyD':'nfvKP','iUTNM':_0x577659(0x165),'ovWpN':function(_0x389568,_0x1bd8a9,_0x1b84e5,_0x5533fb,_0x535abf,_0x987772,_0x281709){return _0x389568(_0x1bd8a9,_0x1b84e5,_0x5533fb,_0x535abf,_0x987772,_0x281709);},'BGseB':_0x577659(0x15c),'vcUDs':'init-not-called','QHuuX':function(_0x154105,_0x365977){return _0x154105!==_0x365977;},'lYRWV':_0x577659(0x163),'ePigC':function(_0x4c3e4b,_0xc8c2bf,_0x3c320a,_0x52fe79){return _0x4c3e4b(_0xc8c2bf,_0x3c320a,_0x52fe79);},'gIKaL':_0x577659(0x1a5),'RssmW':function(_0x1c967f,_0x383251){return _0x1c967f===_0x383251;},'eBnki':_0x577659(0x17d),'SJLrQ':_0x577659(0x17e),'ZlDZw':function(_0x27cf3f,_0x3124a2){return _0x27cf3f(_0x3124a2);},'UKaSa':function(_0x367c57,_0x5a7583){return _0x367c57===_0x5a7583;},'kEXxx':function(_0x1afa35,_0x4f8cd3){return _0x1afa35===_0x4f8cd3;},'hYRps':function(_0x323249,_0x25c977){return _0x323249===_0x25c977;},'UFKvN':'crXBc','vLtoN':_0x577659(0x175),'OrRDG':_0x577659(0x137),'XZQWU':function(_0x2bde92,_0x1cc859,_0x55b55b,_0x18ad86,_0x1b6eb1,_0x40e4ac,_0x4f526f){return _0x2bde92(_0x1cc859,_0x55b55b,_0x18ad86,_0x1b6eb1,_0x40e4ac,_0x4f526f);},'QVREK':'invalid-input','BHLqS':function(_0x38d591,_0x1cc429){return _0x38d591===_0x1cc429;},'XnShK':'PGqFH','CzKLH':_0x577659(0x18a),'yTTts':function(_0xea263b,_0xa072ff,_0x1db094,_0x430ce6,_0x557834){return _0xea263b(_0xa072ff,_0x1db094,_0x430ce6,_0x557834);},'MblJy':function(_0x25b89d,_0x6e0d6){return _0x25b89d===_0x6e0d6;},'MXlwB':_0x577659(0x18d),'ezJPU':'NjOhb','fZyfp':_0x577659(0x136),'ZmwQQ':_0x577659(0x172),'RZIGH':function(_0x38879e){return _0x38879e();},'xbcaS':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','rHcyy':_0x577659(0x19f),'bKBjf':_0x577659(0x18c),'edjZz':function(_0xd10b03,_0x3f2213){return _0xd10b03(_0x3f2213);},'Qsayw':function(_0x4563ef,_0x5a784e){return _0x4563ef(_0x5a784e);},'dFbOy':function(_0x124e28,_0x1d463d,_0x3522c9,_0x2e19a5,_0x4cf2ba,_0x234b81){return _0x124e28(_0x1d463d,_0x3522c9,_0x2e19a5,_0x4cf2ba,_0x234b81);},'eHKBm':_0x577659(0x131),'DZhLr':function(_0x24f188,_0x3c95dc,_0x586f98){return _0x24f188(_0x3c95dc,_0x586f98);},'AVUyM':function(_0xef702d,_0x42a0a6){return _0xef702d!==_0x42a0a6;},'ODxVP':function(_0x10f701,_0x4d985d){return _0x10f701!==_0x4d985d;},'RBNFf':function(_0x35d0a1,_0x214dcd){return _0x35d0a1===_0x214dcd;},'fXbHz':function(_0x1a2c7c,_0x4f0697,_0x51128b,_0x13783c,_0x1c0fc2,_0x3d1674,_0x5c6e22){return _0x1a2c7c(_0x4f0697,_0x51128b,_0x13783c,_0x1c0fc2,_0x3d1674,_0x5c6e22);},'MRljg':'server-error','KQORY':_0x577659(0x1b1),'QCIVq':_0x577659(0x1a9),'zQUsJ':function(_0x4c580b,_0x1aa7ed,_0x24d4e8,_0x4aadad,_0x25e33d,_0x16b2e5,_0x4d340d){return _0x4c580b(_0x1aa7ed,_0x24d4e8,_0x4aadad,_0x25e33d,_0x16b2e5,_0x4d340d);},'URNYc':function(_0x1ce14e,_0x28f539,_0x28832e,_0x5e549d,_0x4ddd22,_0x343ed0,_0xa36a18){return _0x1ce14e(_0x28f539,_0x28832e,_0x5e549d,_0x4ddd22,_0x343ed0,_0xa36a18);},'FljJZ':_0x577659(0x135)};try{global_registry[_0x577659(0x18f)]=_0xb1aad6[_0x577659(0x1a7)](uuidv4);!fs['existsSync'](_0xb1aad6[_0x577659(0x19b)](getCredentialsPath))&&(_0xb1aad6[_0x577659(0x142)](_0xb1aad6[_0x577659(0x146)],_0xb1aad6[_0x577659(0x14d)])?(_0x346953[_0x577659(0x187)](_0x577659(0x174)+_0x4420c9+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2fc249=![]):(console['error'](_0xb1aad6[_0x577659(0x179)]),await _0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes['ERROR'],_0xb1aad6['vcUDs'],null,_0x54214c),process[_0x577659(0x191)](0x1)));_0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x181)],null,null,_0x54214c);!_0x54214c[_0x577659(0x195)]&&(_0xb1aad6['QHuuX'](_0xb1aad6[_0x577659(0x133)],_0xb1aad6[_0x577659(0x133)])?_0x18c65d='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x27e853[_0x577659(0x1a0)]+'\x22\x20and\x20ID\x20'+_0x5568a9['id']+_0x577659(0x19a)+_0x1be87d[_0x577659(0x1c6)]+_0x577659(0x167)+_0x5be760[_0x577659(0x16d)]+_0x577659(0x190):(console['error'](_0xb1aad6[_0x577659(0x1c3)]),process[_0x577659(0x191)](0x1)));const _0x24b3f6=JSON[_0x577659(0x168)](fs[_0x577659(0x138)](_0xb1aad6[_0x577659(0x1a7)](getCredentialsPath))),[_0x3ca1b3,_0x1e92f0]=await _0xb1aad6['ePigC'](getGridDetails,_0x24b3f6[_0x577659(0x1a5)][_0x577659(0x12f)],_0x24b3f6[_0x577659(0x1a5)]['password'],_0x54214c[_0x577659(0x195)]);if(_0x1e92f0){const _0x1eb397=_0x1e92f0['info'];let _0xe8e733=_0x577659(0x159)+_0x1eb397[_0x577659(0x1a0)]+'\x22\x20and\x20ID\x20'+_0x1eb397['id']+_0x577659(0x190),_0x13f86d;_0x1e92f0['onlyGridInCluster']&&_0xb1aad6[_0x577659(0x1c1)](_0x1e92f0[_0x577659(0x132)],_0xb1aad6['gIKaL'])&&(_0xb1aad6['RssmW'](_0xb1aad6[_0x577659(0x139)],_0xb1aad6[_0x577659(0x15b)])?(_0x5a33a3[_0x577659(0x14e)](_0xb1aad6[_0x577659(0x1c3)]),_0x468f80[_0x577659(0x191)](0x1)):_0xe8e733=_0x577659(0x159)+_0x1eb397[_0x577659(0x1a0)]+_0x577659(0x13d)+_0x1eb397['id']+_0x577659(0x19a)+_0x1eb397[_0x577659(0x1c6)]+_0x577659(0x167)+_0x1eb397['clusterId']+_0x577659(0x190));_0x13f86d=await _0xb1aad6[_0x577659(0x173)](inputConfirmation,_0xe8e733);(_0xb1aad6[_0x577659(0x1c1)](_0x13f86d,undefined)||_0xb1aad6[_0x577659(0x14c)](_0x13f86d,null)||!(_0xb1aad6[_0x577659(0x1a6)](_0x13f86d[_0x577659(0x153)](),'y')||_0xb1aad6[_0x577659(0x16f)](_0x13f86d[_0x577659(0x153)](),'n')))&&(_0xb1aad6[_0x577659(0x1c1)](_0xb1aad6[_0x577659(0x1a4)],_0xb1aad6['vLtoN'])?_0x5af22d[_0x577659(0x187)](_0x577659(0x1af)+_0x378f0c[_0x577659(0x1c6)]+_0x577659(0x1aa)):(console[_0x577659(0x14e)](_0xb1aad6[_0x577659(0x134)]),await _0xb1aad6[_0x577659(0x1ad)](sendInstrumentationEvent,_0x54214c,_0xb1aad6['BGseB'],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x170)],null,_0x54214c),process['exit'](0x1)));_0xb1aad6[_0x577659(0x14c)](_0x13f86d[_0x577659(0x153)](),'n')&&(_0xb1aad6[_0x577659(0x169)](_0xb1aad6[_0x577659(0x154)],_0xb1aad6[_0x577659(0x152)])?_0x3501e8['warn'](_0x577659(0x1a2)):process[_0x577659(0x191)](0x0));global_registry['clusterRegion']=_0x1eb397[_0x577659(0x198)];const _0x534777=_0x1eb397[_0x577659(0x16e)],_0x3a1f1b=await _0xb1aad6[_0x577659(0x141)](getCloudProviderObject,_0x534777,_0x1eb397[_0x577659(0x1c6)],_0x1eb397['name'],_0x54214c),_0x397f41=_0x24b3f6['cloudProvider'];if(_0xb1aad6['UKaSa'](_0x397f41[_0x534777],undefined)){if(_0xb1aad6[_0x577659(0x1bc)](_0xb1aad6[_0x577659(0x12c)],_0xb1aad6[_0x577659(0x156)])){const _0x391a68={};_0x391a68['description']=_0xb1aad6['qkfte'],_0x391a68[_0x577659(0x1ae)]=_0xb1aad6['joeuX'];const _0x50f162={};return _0x50f162['grid-id']=_0x391a68,_0x20596d[_0x577659(0x1b6)](_0x45d932[_0x577659(0x14a)])[_0x577659(0x188)](_0x7cf5e4)[_0x577659(0x157)](_0x50f162)[_0x577659(0x1a8)](_0xb1aad6[_0x577659(0x183)])[_0x577659(0x192)];}else{logger[_0x577659(0x178)](_0xb1aad6[_0x577659(0x12d)]);_0xb1aad6[_0x577659(0x155)](_0x24b3f6[_0x577659(0x16e)],undefined)&&(_0xb1aad6[_0x577659(0x130)](_0xb1aad6[_0x577659(0x197)],_0xb1aad6[_0x577659(0x197)])?_0xfbc7f0['exit'](0x0):_0x24b3f6['cloudProvider']={});_0x24b3f6[_0x577659(0x16e)][_0x534777]={};const _0x4bbec2=await _0xb1aad6[_0x577659(0x182)](inputCloudProviderKeys,_0x534777,_0x24b3f6,_0x3a1f1b);fs[_0x577659(0x1b3)](_0xb1aad6['RZIGH'](getCredentialsPath),JSON[_0x577659(0x18b)](_0x4bbec2)),logger['debug'](_0xb1aad6[_0x577659(0x147)]);}}else _0xb1aad6[_0x577659(0x1bc)](_0xb1aad6['rHcyy'],_0xb1aad6[_0x577659(0x19d)])?(logger[_0x577659(0x178)](_0xb1aad6['bKBjf']),await _0x3a1f1b[_0x577659(0x1b5)](_0x397f41)):_0x567ffb[_0x577659(0x16e)]={};_0x3a1f1b[_0x577659(0x13f)]();const _0x23c80b=await _0x3a1f1b[_0x577659(0x1a3)]();if(_0x23c80b){const _0x4d743e=_0xb1aad6[_0x577659(0x15e)](kebabCase,_0x1eb397[_0x577659(0x1a0)]),[_0x3eebe2,_0x34f041,_0x506b64,_0x5ceaa8,_0x4c3460,_0x16571d]=await _0xb1aad6[_0x577659(0x13a)](createK8sClient,_0x3a1f1b);let _0x1beef5=!![];const _0x30f49b={};_0x30f49b[_0x577659(0x1a0)]=_0x4d743e,await _0x3eebe2[_0x577659(0x1c2)](_0x30f49b)['then'](_0x273cc0=>{const _0x5f30b9=_0x577659;_0xb1aad6['DPgIi'](_0xb1aad6[_0x5f30b9(0x12e)],_0xb1aad6[_0x5f30b9(0x1b0)])?(_0x5aab3a['info']('Successfully\x20deleted\x20the\x20grid'),_0x85e241[_0x5f30b9(0x191)](0x0)):logger[_0x5f30b9(0x178)](_0x5f30b9(0x174)+_0x4d743e+_0x5f30b9(0x17c));})[_0x577659(0x166)](_0x5ca322=>{const _0x4b0b71=_0x577659;_0xb1aad6[_0x4b0b71(0x130)](_0xb1aad6[_0x4b0b71(0x14b)],_0xb1aad6[_0x4b0b71(0x14b)])?_0x5cf138[_0x4b0b71(0x178)](_0x4b0b71(0x174)+_0x4dec46+_0x4b0b71(0x17c)):(logger[_0x4b0b71(0x187)](_0x4b0b71(0x174)+_0x4d743e+_0x4b0b71(0x1bb)),_0x1beef5=![]);});if(_0x1beef5){await _0xb1aad6['dFbOy'](removeGridComponents,_0x3eebe2,_0x34f041,_0x506b64,_0x5ceaa8,_0x4d743e);if(_0x1e92f0[_0x577659(0x158)]){const _0x5433ab=await _0x3a1f1b[_0x577659(0x1c8)]();_0x5433ab?await _0x3a1f1b[_0x577659(0x17b)](_0x3eebe2,_0x1eb397[_0x577659(0x198)]):logger['warn'](_0x577659(0x1af)+_0x1eb397['clusterName']+_0x577659(0x1aa));}}}else logger[_0x577659(0x187)](_0x577659(0x1a2));const _0x114c17=_0x577659(0x186)+AG_API_URL+_0x577659(0x15a)+_0x54214c[_0x577659(0x195)],_0x144596={'method':_0xb1aad6[_0x577659(0x185)],'headers':_0xb1aad6[_0x577659(0x13e)](getAuthHeader,_0x24b3f6[_0x577659(0x1a5)]['username'],_0x24b3f6[_0x577659(0x1a5)][_0x577659(0x184)]),'throwHttpErrors':![]},_0x505981=await _0xb1aad6[_0x577659(0x13e)](got,_0x114c17,_0x144596);_0xb1aad6[_0x577659(0x1c5)](_0x505981,null)&&_0xb1aad6[_0x577659(0x15f)](_0x505981,undefined)&&_0xb1aad6[_0x577659(0x16b)](_0x505981[_0x577659(0x144)],0xc8)&&(logger[_0x577659(0x178)](_0x577659(0x1b2)),process['exit'](0x0)),logger[_0x577659(0x14e)](_0x577659(0x160)+_0x505981[_0x577659(0x199)]),await _0xb1aad6[_0x577659(0x189)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes['ERROR'],_0xb1aad6['MRljg'],_0x3ca1b3,_0x54214c),process[_0x577659(0x191)](0x1);}_0xb1aad6[_0x577659(0x142)](_0x3ca1b3['statusCode'],0x191)&&(logger['error'](_0x577659(0x1ac)),await _0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x1b8)],null,_0x54214c),process['exit'](0x1)),_0xb1aad6['kEXxx'](_0x3ca1b3['statusCode'],0x190)&&(logger[_0x577659(0x14e)](JSON['parse'](_0x3ca1b3[_0x577659(0x199)])[_0x577659(0x1c9)]),await _0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x15d)],null,_0x54214c),process[_0x577659(0x191)](0x1)),logger[_0x577659(0x14e)](_0x577659(0x16a)+JSON['stringify'](_0x3ca1b3)),await _0xb1aad6[_0x577659(0x14f)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes['ERROR'],_0xb1aad6['MRljg'],_0x3ca1b3,_0x54214c),process[_0x577659(0x191)](0x1);}catch(_0x7ace9a){logger[_0x577659(0x14e)](_0x577659(0x17a)+_0x7ace9a['stack']),await _0xb1aad6[_0x577659(0x13c)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x1ca)],_0x7ace9a,_0x54214c),process[_0x577659(0x191)](0x1);}};
1
+ function a11_0x5a96(_0x134451,_0x1019c8){const _0x16e0ff=a11_0x16e0();return a11_0x5a96=function(_0x5a9669,_0x19efce){_0x5a9669=_0x5a9669-0xe6;let _0x57b559=_0x16e0ff[_0x5a9669];return _0x57b559;},a11_0x5a96(_0x134451,_0x1019c8);}const a11_0x218814=a11_0x5a96;function a11_0x16e0(){const _0x1f9fcc=['init-not-called','error','string','catch','../../utils/utilityMethods','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','eAMHf','yjEpQ','connectionTimeout','imhCJ','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20Grid','CWVVM','statusCode','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Cluster:\x20','DFpVm','yBWRz','LgSrI','toLowerCase','YCBIT','desc','CeIUp','<UsernamePlaceholder>','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','2LKamuA','Failed\x20to\x20delete\x20resources!\x20Error:\x20','../../config/logger','got','TalfO','ERROR','handler','wMDAO','gridId','readFileSync','742136AXWJod','XFLfs','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','KOpsP','bFVGT','SzwtX','ONVqe','../../utils/webSocketUtils','5407977plmjgz','Browserstack','cloudProvider','UUbAP','FcrGO','183594QpRjEd','Fwwxe','reconnecting-websocket','NNLij','username','epilogue','joMAa','password','znkCJ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','gHWlZ','215112aIYJnx','argv','bLcbg','../../utils/createk8sClient','clusterName','NvbHF','deleteCluster','CUYbT','existsSync','DnwgP','region','11675385WPhcDn','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','name','BNyjb','delete-grid-called','nDLPM','INFO','invalid-input','fFzXJ','type','help','EcIno','jFPgI','IhfIe','3066JUnTOy','wtoqX','command','KFCWM','../../cloudproviders/utils','<PasswordPlaceholder>','BAvqY','\x22\x20with\x20ID\x20','YuFlK','warn','readNamespace','message','LXsjU','4915LHXwXx','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','AggJQ','bxFsk','DELETE','TKOwA','AZeEL','MHzeu','BtNts','IWbqj','CvVOL','wBtyN','narwg','Namespace:\x20','jBGoS','info','MXVFp','wkDEI','cyrXg','stringify','vtJKM','usage','then','JEAOf','aRkGW','/packages/cli/grid/','grid','cBiaQ','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','clusterRegion','OVGWS','clusterSpawnedVia','options','DAvaE','TiNEV','ApWse','grid-id','utuVE','stack','\x22\x20and\x20ID\x20','qmQdN','exit','70xgPAkW','onlyGridInCluster','MTAJJ','replace','requestId','WpLxR','delete','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','parse','24092860JUCBLP','Delete\x20an\x20Automation\x20grid.'];a11_0x16e0=function(){return _0x1f9fcc;};return a11_0x16e0();}(function(_0xf45b6b,_0x6002bd){const _0x236449=a11_0x5a96,_0x2793a0=_0xf45b6b();while(!![]){try{const _0x46d741=-parseInt(_0x236449(0x139))/0x1+parseInt(_0x236449(0x122))/0x2*(parseInt(_0x236449(0x134))/0x3)+parseInt(_0x236449(0x144))/0x4+-parseInt(_0x236449(0x16a))/0x5*(parseInt(_0x236449(0x15d))/0x6)+-parseInt(_0x236449(0xfd))/0x7*(-parseInt(_0x236449(0x12c))/0x8)+parseInt(_0x236449(0x14f))/0x9+-parseInt(_0x236449(0x107))/0xa;if(_0x46d741===_0x6002bd)break;else _0x2793a0['push'](_0x2793a0['shift']());}catch(_0x22952b){_0x2793a0['push'](_0x2793a0['shift']());}}}(a11_0x16e0,0xf0c43));const fs=require('fs'),got=require(a11_0x218814(0x125)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x218814(0x13b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x218814(0x124)),{getCloudProviderObject}=require(a11_0x218814(0x161)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x218814(0x113)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x218814(0x147)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x218814(0x10d)),webSocketUtils=require(a11_0x218814(0x133));exports[a11_0x218814(0x15f)]=a11_0x218814(0xed),exports[a11_0x218814(0x11e)]=a11_0x218814(0x108),exports['builder']=function(_0x218cfb){const _0xacd4c=a11_0x218814,_0x508d66={};_0x508d66[_0xacd4c(0x179)]=_0xacd4c(0x114),_0x508d66['MHzeu']=_0xacd4c(0x10b),_0x508d66['IhfIe']=_0xacd4c(0x159);const _0x2e7962=_0x508d66,_0x2f51a4={};_0x2f51a4[_0xacd4c(0x105)]=_0x2e7962['jBGoS'],_0x2f51a4[_0xacd4c(0x158)]=_0x2e7962[_0xacd4c(0x172)];const _0x5d4e5c={};return _0x5d4e5c[_0xacd4c(0xf7)]=_0x2f51a4,_0x218cfb[_0xacd4c(0xe8)](HELP_HEADER_MESSAGE[_0xacd4c(0x103)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xacd4c(0xf3)](_0x5d4e5c)['help'](_0x2e7962[_0xacd4c(0x15c)])[_0xacd4c(0x145)];},exports[a11_0x218814(0x128)]=async function(_0x52c8cf){const _0x2615c9=a11_0x218814,_0x341f1e={'TKOwA':'Successfully\x20deleted\x20the\x20grid','wkDEI':'Pass\x20the\x20ID\x20of\x20the\x20Grid','OVGWS':_0x2615c9(0x10b),'utuVE':_0x2615c9(0x159),'gHWlZ':function(_0x506783,_0x40321a){return _0x506783===_0x40321a;},'AggJQ':_0x2615c9(0x11a),'JEAOf':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','XFLfs':'lZMqt','yjEpQ':_0x2615c9(0x16b),'eAMHf':function(_0x428a7c){return _0x428a7c();},'jFPgI':function(_0x977e00){return _0x977e00();},'cBiaQ':function(_0x20aadf,_0x2c6ed4){return _0x20aadf!==_0x2c6ed4;},'BtNts':_0x2615c9(0x131),'ObQvN':_0x2615c9(0x104),'YuFlK':function(_0x3ea1e4,_0x443f29,_0x5723fc,_0x4880fd,_0xd4a4e6,_0x3cc403,_0x35dffb){return _0x3ea1e4(_0x443f29,_0x5723fc,_0x4880fd,_0xd4a4e6,_0x3cc403,_0x35dffb);},'CvVOL':_0x2615c9(0x153),'nDLPM':_0x2615c9(0x109),'bLcbg':function(_0x58e6e1,_0x50f2a8){return _0x58e6e1===_0x50f2a8;},'IWbqj':_0x2615c9(0x17b),'BAvqY':function(_0x2d2c1c){return _0x2d2c1c();},'ApWse':function(_0x2ed73b,_0x105cb6,_0x36d273,_0x2021bf){return _0x2ed73b(_0x105cb6,_0x36d273,_0x2021bf);},'oZwSX':function(_0x33f371,_0x4e3e6c){return _0x33f371===_0x4e3e6c;},'TiNEV':_0x2615c9(0x135),'LgSrI':'enkUV','NvbHF':'YGxwO','qmQdN':function(_0xad9c82,_0x20bd20){return _0xad9c82(_0x20bd20);},'wMDAO':function(_0x13d6fd,_0xf3bb7c){return _0x13d6fd===_0xf3bb7c;},'LXsjU':function(_0x54c17f,_0x164fdf){return _0x54c17f===_0x164fdf;},'wtoqX':function(_0x26a36f,_0x1385ef){return _0x26a36f===_0x1385ef;},'vtJKM':function(_0x5f0b9b,_0x30b172){return _0x5f0b9b!==_0x30b172;},'joMAa':_0x2615c9(0x138),'zXWxa':_0x2615c9(0x117),'TalfO':function(_0x4aa2d8,_0xc11d27,_0x2b7930,_0x438c02,_0x21ce59,_0x22adf9,_0x34e727){return _0x4aa2d8(_0xc11d27,_0x2b7930,_0x438c02,_0x21ce59,_0x22adf9,_0x34e727);},'FYuRD':_0x2615c9(0x156),'fFzXJ':function(_0x5c83ea,_0x1fae49){return _0x5c83ea===_0x1fae49;},'aolng':function(_0x3a03bc,_0x48782a){return _0x3a03bc===_0x48782a;},'cyrXg':_0x2615c9(0x11d),'DnwgP':_0x2615c9(0x13c),'aRkGW':_0x2615c9(0x120),'CUYbT':_0x2615c9(0x162),'AZeEL':function(_0x55b2b0,_0x2ce912){return _0x55b2b0(_0x2ce912);},'cttvp':function(_0x278b3a,_0x253c72,_0x706387,_0x3958cc,_0x577e79,_0x4916f7){return _0x278b3a(_0x253c72,_0x706387,_0x3958cc,_0x577e79,_0x4916f7);},'DAvaE':_0x2615c9(0x119),'WYJwj':_0x2615c9(0x177),'BNyjb':function(_0x5aae70,_0x46347e){return _0x5aae70===_0x46347e;},'KFCWM':'ojRGC','wBtyN':_0x2615c9(0x102),'EcIno':_0x2615c9(0x16f),'bxFsk':function(_0x23485d,_0x29ca9d,_0x49f84d){return _0x23485d(_0x29ca9d,_0x49f84d);},'UUbAP':function(_0xee8765,_0x5506ba,_0x4201ef){return _0xee8765(_0x5506ba,_0x4201ef);},'CWVVM':'server-error','KOpsP':function(_0x1fe7aa,_0x3bc33f){return _0x1fe7aa===_0x3bc33f;},'CeIUp':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GwcjO':'unauthorised','znkCJ':function(_0x19299d,_0xdab7d3){return _0x19299d===_0xdab7d3;},'imhCJ':function(_0x55f4b5,_0x52c330,_0x1534c2,_0xd8363e,_0x59abdb,_0x37d526,_0x401a42){return _0x55f4b5(_0x52c330,_0x1534c2,_0xd8363e,_0x59abdb,_0x37d526,_0x401a42);},'bFVGT':'invalid-grid-id','itRBj':'unknown-error'};try{global_registry[_0x2615c9(0x101)]=_0x341f1e[_0x2615c9(0x10f)](uuidv4);!fs[_0x2615c9(0x14c)](_0x341f1e[_0x2615c9(0x15b)](getCredentialsPath))&&(_0x341f1e[_0x2615c9(0xee)](_0x341f1e[_0x2615c9(0x173)],_0x341f1e[_0x2615c9(0x173)])?_0x1b6108[_0x2615c9(0x17a)](_0x2615c9(0x178)+_0x53b292+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(console[_0x2615c9(0x10a)](_0x341f1e['ObQvN']),await _0x341f1e[_0x2615c9(0x165)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e[_0x2615c9(0x154)],null,_0x52c8cf),process[_0x2615c9(0xfc)](0x1)));_0x341f1e['YuFlK'](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x155)],null,null,_0x52c8cf);!_0x52c8cf[_0x2615c9(0x12a)]&&(_0x341f1e[_0x2615c9(0x146)](_0x341f1e[_0x2615c9(0x174)],_0x341f1e['IWbqj'])?(console[_0x2615c9(0x10a)](_0x341f1e['yjEpQ']),process[_0x2615c9(0xfc)](0x1)):_0x4ca54d=_0x2615c9(0xef)+_0x2b70f9['name']+_0x2615c9(0xfa)+_0x4a9ed6['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1cbd33[_0x2615c9(0x148)]+'\x22\x20with\x20ID\x20'+_0x5c789a['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x75c517=JSON[_0x2615c9(0x106)](fs[_0x2615c9(0x12b)](_0x341f1e[_0x2615c9(0x163)](getCredentialsPath))),[_0x274dbb,_0x14c8df]=await _0x341f1e[_0x2615c9(0xf6)](getGridDetails,_0x75c517[_0x2615c9(0x135)][_0x2615c9(0x13d)],_0x75c517['Browserstack'][_0x2615c9(0x140)],_0x52c8cf['gridId']);if(_0x14c8df){const _0x1c71e9=_0x14c8df[_0x2615c9(0x17a)];let _0x1c2390='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1c71e9[_0x2615c9(0x151)]+_0x2615c9(0xfa)+_0x1c71e9['id']+_0x2615c9(0x10e);_0x14c8df[_0x2615c9(0xfe)]&&_0x341f1e['oZwSX'](_0x14c8df[_0x2615c9(0xf2)],_0x341f1e[_0x2615c9(0xf5)])&&(_0x341f1e[_0x2615c9(0x146)](_0x341f1e[_0x2615c9(0x11b)],_0x341f1e[_0x2615c9(0x149)])?(_0x24cb30[_0x2615c9(0x166)]('Namespace:\x20'+_0x33e3be+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2bca76=![]):_0x1c2390=_0x2615c9(0xef)+_0x1c71e9['name']+_0x2615c9(0xfa)+_0x1c71e9['id']+_0x2615c9(0x142)+_0x1c71e9[_0x2615c9(0x148)]+_0x2615c9(0x164)+_0x1c71e9['clusterId']+_0x2615c9(0x10e));const _0x21be64=await _0x341f1e[_0x2615c9(0xfb)](inputConfirmation,_0x1c2390);(_0x341f1e[_0x2615c9(0x143)](_0x21be64,undefined)||_0x341f1e[_0x2615c9(0x129)](_0x21be64,null)||!(_0x341f1e[_0x2615c9(0x169)](_0x21be64['toLowerCase'](),'y')||_0x341f1e[_0x2615c9(0x15e)](_0x21be64[_0x2615c9(0x11c)](),'n')))&&(_0x341f1e['vtJKM'](_0x341f1e[_0x2615c9(0x13f)],_0x341f1e[_0x2615c9(0x13f)])?(_0x2d2ac8['info'](_0x341f1e['TKOwA']),_0x3bbc7a[_0x2615c9(0xfc)](0x0)):(console[_0x2615c9(0x10a)](_0x341f1e['zXWxa']),await _0x341f1e[_0x2615c9(0x126)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e['FYuRD'],null,_0x52c8cf),process[_0x2615c9(0xfc)](0x1)));_0x341f1e[_0x2615c9(0x157)](_0x21be64[_0x2615c9(0x11c)](),'n')&&(_0x341f1e['aolng'](_0x341f1e[_0x2615c9(0x17d)],_0x341f1e[_0x2615c9(0x14d)])?_0x464139['warn'](_0x2615c9(0x118)+_0x2cd1fd[_0x2615c9(0x148)]+_0x2615c9(0x12e)):process['exit'](0x0));const _0x7cc2c1=WS_ENDPOINT[_0x2615c9(0x100)](_0x341f1e[_0x2615c9(0xeb)],_0x75c517[_0x2615c9(0x135)][_0x2615c9(0x13d)])['replace'](_0x341f1e[_0x2615c9(0x14b)],_0x75c517[_0x2615c9(0x135)]['password']),_0x3c3dfb={};_0x3c3dfb['WebSocket']=ws,_0x3c3dfb[_0x2615c9(0x111)]=0x36ee80;const _0x211a5d=new ReconnectingWebSocket(_0x7cc2c1,[],_0x3c3dfb);global_registry[_0x2615c9(0xf0)]=_0x1c71e9['region'];const _0x50c481=_0x1c71e9[_0x2615c9(0x136)],_0x578025=await _0x341f1e[_0x2615c9(0x165)](getCloudProviderObject,_0x50c481,_0x1c71e9['clusterName'],_0x1c71e9['name'],_0x211a5d,webSocketUtils,_0x52c8cf),_0x37a322=await _0x578025['isClusterPresent']();if(_0x37a322){const _0x3a7c46=_0x341f1e[_0x2615c9(0xfb)](kebabCase,_0x1c71e9['name']),[_0x138c64,_0x36c130,_0x4e2637,_0x244339,_0xf7738c,_0x9b9d18]=await _0x341f1e[_0x2615c9(0x171)](createK8sClient,_0x578025);let _0x12adf5=!![];const _0x117ffc={};_0x117ffc[_0x2615c9(0x151)]=_0x3a7c46,await _0x138c64[_0x2615c9(0x167)](_0x117ffc)[_0x2615c9(0xe9)](_0x4b6a98=>{const _0x252c21=_0x2615c9,_0x316bbc={};_0x316bbc['MTAJJ']=_0x341f1e[_0x252c21(0x17c)],_0x316bbc['IBpLL']=_0x341f1e[_0x252c21(0xf1)],_0x316bbc[_0x252c21(0x132)]=_0x341f1e[_0x252c21(0xf8)];const _0x3cc610=_0x316bbc;if(_0x341f1e['gHWlZ'](_0x341f1e['AggJQ'],_0x341f1e[_0x252c21(0x16d)]))logger[_0x252c21(0x17a)](_0x252c21(0x178)+_0x3a7c46+_0x252c21(0x121));else{const _0x545589={};_0x545589[_0x252c21(0x105)]=_0x3cc610[_0x252c21(0xff)],_0x545589['type']=_0x3cc610['IBpLL'];const _0x4d0dd1={};return _0x4d0dd1['grid-id']=_0x545589,_0x685b49['usage'](_0x1734ca['delete'])[_0x252c21(0x13e)](_0x36ebc6)[_0x252c21(0xf3)](_0x4d0dd1)[_0x252c21(0x159)](_0x3cc610[_0x252c21(0x132)])[_0x252c21(0x145)];}})[_0x2615c9(0x10c)](_0x4e8221=>{const _0x31537f=_0x2615c9,_0x46cac5={};_0x46cac5[_0x31537f(0x13a)]=_0x341f1e['JEAOf'];const _0x21607b=_0x46cac5;_0x341f1e[_0x31537f(0x143)](_0x341f1e[_0x31537f(0x12d)],_0x341f1e[_0x31537f(0x12d)])?(logger[_0x31537f(0x166)](_0x31537f(0x178)+_0x3a7c46+_0x31537f(0x150)),_0x12adf5=![]):_0x519f81[_0x31537f(0x166)](_0x21607b[_0x31537f(0x13a)]);});if(_0x12adf5){await _0x341f1e['cttvp'](removeGridComponents,_0x138c64,_0x36c130,_0x4e2637,_0x244339,_0x3a7c46);if(_0x14c8df[_0x2615c9(0xfe)]){const _0xd14bf0=await _0x578025['isBrowserstackCluster']();_0xd14bf0?_0x341f1e[_0x2615c9(0xe7)](_0x341f1e[_0x2615c9(0xf4)],_0x341f1e['WYJwj'])?await _0x578025[_0x2615c9(0x14a)](_0x138c64,_0x1c71e9[_0x2615c9(0x14e)]):_0x49a0ad[_0x2615c9(0xfc)](0x0):_0x341f1e[_0x2615c9(0x152)](_0x341f1e[_0x2615c9(0x160)],_0x341f1e[_0x2615c9(0x176)])?(_0x4d3a33[_0x2615c9(0x10a)](_0x341f1e[_0x2615c9(0x110)]),_0x5b545c[_0x2615c9(0xfc)](0x1)):logger['warn']('Cluster:\x20'+_0x1c71e9[_0x2615c9(0x148)]+_0x2615c9(0x12e));}}}else logger[_0x2615c9(0x166)](_0x341f1e[_0x2615c9(0xea)]);const _0x408f27='https://'+AG_API_URL+_0x2615c9(0xec)+_0x52c8cf[_0x2615c9(0x12a)],_0x3a58c8={'method':_0x341f1e[_0x2615c9(0x15a)],'headers':_0x341f1e[_0x2615c9(0x16e)](getAuthHeader,_0x75c517[_0x2615c9(0x135)]['username'],_0x75c517[_0x2615c9(0x135)]['password']),'throwHttpErrors':![]},_0x3d851d=await _0x341f1e[_0x2615c9(0x137)](got,_0x408f27,_0x3a58c8);_0x341f1e['vtJKM'](_0x3d851d,null)&&_0x341f1e[_0x2615c9(0xe7)](_0x3d851d,undefined)&&_0x341f1e[_0x2615c9(0x143)](_0x3d851d[_0x2615c9(0x116)],0xc8)&&(logger[_0x2615c9(0x17a)](_0x341f1e[_0x2615c9(0x170)]),process[_0x2615c9(0xfc)](0x0)),logger[_0x2615c9(0x10a)](_0x2615c9(0x16c)+_0x3d851d['body']),await _0x341f1e['YuFlK'](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e[_0x2615c9(0x115)],_0x274dbb,_0x52c8cf),process['exit'](0x1);}_0x341f1e[_0x2615c9(0x12f)](_0x274dbb[_0x2615c9(0x116)],0x191)&&(logger[_0x2615c9(0x10a)](_0x341f1e[_0x2615c9(0x11f)]),await _0x341f1e[_0x2615c9(0x165)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e['CvVOL'],messageTypes['ERROR'],_0x341f1e['GwcjO'],null,_0x52c8cf),process[_0x2615c9(0xfc)](0x1)),_0x341f1e[_0x2615c9(0x141)](_0x274dbb[_0x2615c9(0x116)],0x190)&&(logger[_0x2615c9(0x10a)](JSON['parse'](_0x274dbb['body'])[_0x2615c9(0x168)]),await _0x341f1e[_0x2615c9(0x112)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e[_0x2615c9(0x130)],null,_0x52c8cf),process['exit'](0x1)),logger[_0x2615c9(0x10a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2615c9(0xe6)](_0x274dbb)),await _0x341f1e['TalfO'](sendInstrumentationEvent,_0x52c8cf,_0x341f1e['CvVOL'],messageTypes[_0x2615c9(0x127)],_0x341f1e['CWVVM'],_0x274dbb,_0x52c8cf),process['exit'](0x1);}catch(_0xd49b32){logger['error'](_0x2615c9(0x123)+_0xd49b32[_0x2615c9(0xf9)]),await _0x341f1e[_0x2615c9(0x165)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e['CvVOL'],messageTypes[_0x2615c9(0x127)],_0x341f1e['itRBj'],_0xd49b32,_0x52c8cf),process[_0x2615c9(0xfc)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x1be345=a12_0x3962;(function(_0x595708,_0x48d267){const _0xd1c02e=a12_0x3962,_0x1febba=_0x595708();while(!![]){try{const _0x58cec5=-parseInt(_0xd1c02e(0x207))/0x1*(-parseInt(_0xd1c02e(0x247))/0x2)+parseInt(_0xd1c02e(0x230))/0x3+parseInt(_0xd1c02e(0x1fe))/0x4+parseInt(_0xd1c02e(0x22b))/0x5*(-parseInt(_0xd1c02e(0x20c))/0x6)+-parseInt(_0xd1c02e(0x208))/0x7+-parseInt(_0xd1c02e(0x200))/0x8*(-parseInt(_0xd1c02e(0x217))/0x9)+parseInt(_0xd1c02e(0x23e))/0xa;if(_0x58cec5===_0x48d267)break;else _0x1febba['push'](_0x1febba['shift']());}catch(_0x4591de){_0x1febba['push'](_0x1febba['shift']());}}}(a12_0x3da2,0x7b868));const fs=require('fs'),util=require(a12_0x1be345(0x1fd)),got=require(a12_0x1be345(0x21c)),{v4:uuidv4}=require(a12_0x1be345(0x222)),{logger}=require(a12_0x1be345(0x234)),{inputBstackKeys}=require(a12_0x1be345(0x213)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x1be345(0x226)),{sendInstrumentationEvent}=require(a12_0x1be345(0x20a));exports[a12_0x1be345(0x242)]=a12_0x1be345(0x202),exports[a12_0x1be345(0x24d)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x1be345(0x24a)]=function(_0x9c989f){const _0x44e3de=a12_0x1be345,_0x5949d6={};_0x5949d6['npRQf']=_0x44e3de(0x23a),_0x5949d6[_0x44e3de(0x250)]=_0x44e3de(0x20f),_0x5949d6[_0x44e3de(0x22f)]=_0x44e3de(0x1f0),_0x5949d6[_0x44e3de(0x244)]=_0x44e3de(0x212);const _0x52f41e=_0x5949d6,_0x5d77ec={};_0x5d77ec[_0x44e3de(0x215)]=_0x52f41e[_0x44e3de(0x23f)],_0x5d77ec[_0x44e3de(0x24c)]=_0x52f41e['OWbnA'];const _0x97d75a={};_0x97d75a['description']=_0x52f41e['llHie'],_0x97d75a['type']=_0x52f41e[_0x44e3de(0x250)];const _0x3e426c={};return _0x3e426c['bstack-username']=_0x5d77ec,_0x3e426c['bstack-accesskey']=_0x97d75a,_0x9c989f['usage'](HELP_HEADER_MESSAGE['init'])[_0x44e3de(0x20e)](HELP_FOOTER_MESSAGE)[_0x44e3de(0x219)](_0x3e426c)[_0x44e3de(0x21b)]()[_0x44e3de(0x253)]()[_0x44e3de(0x212)](_0x52f41e['Dpddp'])[_0x44e3de(0x24f)];},exports[a12_0x1be345(0x205)]=async function(_0x3d0123){const _0xb8758b=a12_0x1be345,_0x1ae5e2={'OiCie':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lTqgZ':_0xb8758b(0x20f),'cWpoe':_0xb8758b(0x1f0),'xadwY':'help','ikJZy':function(_0x3050ed){return _0x3050ed();},'OsUTJ':_0xb8758b(0x22a),'CaEba':function(_0x247922,_0x4d7b94,_0x321aac,_0x345c47,_0x1588cf,_0x35f343,_0x48ba6c){return _0x247922(_0x4d7b94,_0x321aac,_0x345c47,_0x1588cf,_0x35f343,_0x48ba6c);},'gWjqQ':_0xb8758b(0x21d),'DTIDo':function(_0x4a1f3b,_0x46e6b8){return _0x4a1f3b!==_0x46e6b8;},'TtucR':'shgVq','oocRa':function(_0x5586df,_0x30b62f){return _0x5586df===_0x30b62f;},'tZVCz':_0xb8758b(0x209),'NDIJr':_0xb8758b(0x21a),'ySdGp':'keSFf','vkefW':function(_0x5f4f4a,_0x399b40){return _0x5f4f4a!==_0x399b40;},'GKhDt':_0xb8758b(0x206),'toiif':'vrINZ','bSDmJ':function(_0x58215c,_0x31f0c9){return _0x58215c===_0x31f0c9;},'ljwBO':_0xb8758b(0x254),'Idlul':_0xb8758b(0x239),'WNgEj':function(_0x5d5f1f,_0x21b6cb){return _0x5d5f1f!==_0x21b6cb;},'wxbIf':'ypYPT','xaBFz':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','QxafO':function(_0x3eaf3c){return _0x3eaf3c();},'uLOwA':'GET','MksSD':function(_0x324783,_0x576d58,_0x20457d){return _0x324783(_0x576d58,_0x20457d);},'PHJBQ':_0xb8758b(0x214),'SEsjP':_0xb8758b(0x249),'JKOOt':_0xb8758b(0x233),'BfveP':_0xb8758b(0x23d),'Cbyso':function(_0x695259,_0x3aa9c5){return _0x695259===_0x3aa9c5;},'IpHBK':_0xb8758b(0x1f5),'iyodc':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','DdDqp':_0xb8758b(0x20b),'ylrYb':function(_0xfe95eb,_0x4d1bc0,_0x59db72,_0x143bd1,_0x1096e2,_0x31f096,_0x506e77){return _0xfe95eb(_0x4d1bc0,_0x59db72,_0x143bd1,_0x1096e2,_0x31f096,_0x506e77);},'IkOVW':_0xb8758b(0x22e)};try{global_registry['requestId']=_0x1ae5e2[_0xb8758b(0x21e)](uuidv4),_0x1ae5e2[_0xb8758b(0x211)](sendInstrumentationEvent,_0x3d0123,_0x1ae5e2['gWjqQ'],messageTypes[_0xb8758b(0x20d)],null,null,_0x3d0123);const _0x4c6895=_0x1ae5e2[_0xb8758b(0x21e)](getDirForConfig);!fs[_0xb8758b(0x232)](_0x4c6895)&&(_0x1ae5e2[_0xb8758b(0x224)](_0x1ae5e2[_0xb8758b(0x227)],_0x1ae5e2[_0xb8758b(0x227)])?_0x3bd5a8=!![]:fs[_0xb8758b(0x221)](_0x4c6895));let _0x2fd8af,_0x232b8b;if(process[_0xb8758b(0x243)][_0xb8758b(0x1ef)]){if(_0x1ae5e2[_0xb8758b(0x22c)](_0x1ae5e2[_0xb8758b(0x23b)],_0x1ae5e2[_0xb8758b(0x23b)]))_0x2fd8af=process[_0xb8758b(0x243)][_0xb8758b(0x1ef)];else{const _0x2d2d09={};_0x2d2d09[_0xb8758b(0x215)]=_0x1ae5e2[_0xb8758b(0x252)],_0x2d2d09[_0xb8758b(0x24c)]=_0x1ae5e2[_0xb8758b(0x229)];const _0x464177={};_0x464177['description']=_0x1ae5e2[_0xb8758b(0x23c)],_0x464177['type']=_0x1ae5e2[_0xb8758b(0x229)];const _0x41dad9={};return _0x41dad9[_0xb8758b(0x203)]=_0x2d2d09,_0x41dad9[_0xb8758b(0x1f8)]=_0x464177,_0x4fc406['usage'](_0x3db227[_0xb8758b(0x202)])[_0xb8758b(0x20e)](_0x2cf436)[_0xb8758b(0x219)](_0x41dad9)[_0xb8758b(0x21b)]()[_0xb8758b(0x253)]()[_0xb8758b(0x212)](_0x1ae5e2[_0xb8758b(0x248)])['argv'];}}if(process['env'][_0xb8758b(0x1ff)]){if(_0x1ae5e2[_0xb8758b(0x22c)](_0x1ae5e2[_0xb8758b(0x1f4)],_0x1ae5e2[_0xb8758b(0x240)])){let _0x2c7b74={};const _0xe71e34=_0x1ae5e2['ikJZy'](_0x25e23b);_0x5ce80e[_0xb8758b(0x232)](_0xe71e34)&&(_0x2c7b74=_0x5e025e['parse'](_0x54fb14['readFileSync'](_0xe71e34,_0x1ae5e2['OsUTJ'])));const _0x2a7e88={};_0x2a7e88[_0xb8758b(0x236)]=_0x3e571a,_0x2a7e88[_0xb8758b(0x24b)]=_0x58518f,_0x2c7b74[_0xb8758b(0x201)]=_0x2a7e88,_0x2aba9e[_0xb8758b(0x216)](_0xe71e34,_0x3206af['stringify'](_0x2c7b74)),_0x5cdebc[_0xb8758b(0x225)](0x0);}else _0x232b8b=process[_0xb8758b(0x243)]['BROWSERSTACK_ACCESS_KEY'];}_0x3d0123[_0xb8758b(0x245)]&&(_0x1ae5e2[_0xb8758b(0x1fa)](_0x1ae5e2['GKhDt'],_0x1ae5e2[_0xb8758b(0x22d)])?_0x2fd8af=_0x3d0123[_0xb8758b(0x245)]:_0x169355=_0x75b31a[_0xb8758b(0x245)]);_0x3d0123[_0xb8758b(0x246)]&&(_0x1ae5e2[_0xb8758b(0x1f7)](_0x1ae5e2['ljwBO'],_0x1ae5e2[_0xb8758b(0x238)])?_0x2cbb08=_0x4606['env'][_0xb8758b(0x1ff)]:_0x232b8b=_0x3d0123[_0xb8758b(0x246)]);if(_0x1ae5e2[_0xb8758b(0x22c)](_0x2fd8af,undefined)||_0x1ae5e2['bSDmJ'](_0x232b8b,undefined)){if(_0x1ae5e2[_0xb8758b(0x1f3)](_0x1ae5e2[_0xb8758b(0x1fc)],_0x1ae5e2[_0xb8758b(0x1fc)]))_0x299a25[_0xb8758b(0x221)](_0x574713);else{logger[_0xb8758b(0x223)](_0x1ae5e2['xaBFz']);const [_0x1cde95,_0x463c0d]=await _0x1ae5e2['QxafO'](inputBstackKeys);_0x2fd8af=_0x1cde95,_0x232b8b=_0x463c0d;}}let _0x52e109=![];const _0x24e5c0=_0xb8758b(0x1f9)+_0x2fd8af+':'+_0x232b8b+'@'+BS_API_URL+'/automate/plan.json',_0x187acd={'method':_0x1ae5e2['uLOwA'],'headers':_0x1ae5e2[_0xb8758b(0x220)](getAuthHeader,_0x2fd8af,_0x232b8b),'throwHttpErrors':![]},_0x41fdec=await _0x1ae5e2[_0xb8758b(0x220)](got,_0x24e5c0,_0x187acd);_0x1ae5e2[_0xb8758b(0x224)](_0x41fdec,null)&&_0x1ae5e2[_0xb8758b(0x1fa)](_0x41fdec,undefined)&&_0x1ae5e2[_0xb8758b(0x22c)](_0x41fdec[_0xb8758b(0x228)],0xc8)&&(_0x1ae5e2[_0xb8758b(0x224)](_0x1ae5e2[_0xb8758b(0x1f2)],_0x1ae5e2[_0xb8758b(0x24e)])?_0x52e109=!![]:_0x20aed9=_0x2d8723[_0xb8758b(0x246)]);if(_0x52e109){if(_0x1ae5e2[_0xb8758b(0x1fa)](_0x1ae5e2[_0xb8758b(0x237)],_0x1ae5e2[_0xb8758b(0x251)])){let _0x4d8087={};const _0x53c9a5=_0x1ae5e2['QxafO'](getCredentialsPath);fs[_0xb8758b(0x232)](_0x53c9a5)&&(_0x1ae5e2['Cbyso'](_0x1ae5e2[_0xb8758b(0x204)],_0x1ae5e2[_0xb8758b(0x204)])?_0x4d8087=JSON[_0xb8758b(0x241)](fs[_0xb8758b(0x231)](_0x53c9a5,_0x1ae5e2[_0xb8758b(0x218)])):_0x31f678=_0x32a05e[_0xb8758b(0x241)](_0x297a54[_0xb8758b(0x231)](_0x9596f,_0x1ae5e2[_0xb8758b(0x218)])));const _0x1b9baf={};_0x1b9baf[_0xb8758b(0x236)]=_0x2fd8af,_0x1b9baf['password']=_0x232b8b,_0x4d8087[_0xb8758b(0x201)]=_0x1b9baf,fs[_0xb8758b(0x216)](_0x53c9a5,JSON[_0xb8758b(0x1f1)](_0x4d8087)),process['exit'](0x0);}else _0x32a87e=_0xd8e5e6[_0xb8758b(0x243)][_0xb8758b(0x1ef)];}else logger['error'](_0x1ae5e2[_0xb8758b(0x1fb)]),await _0x1ae5e2[_0xb8758b(0x211)](sendInstrumentationEvent,_0x3d0123,_0x1ae5e2['gWjqQ'],messageTypes[_0xb8758b(0x210)],_0x1ae5e2['DdDqp'],null,_0x3d0123),process['exit'](0x1);}catch(_0x245136){logger[_0xb8758b(0x1f6)](_0x245136[_0xb8758b(0x235)]),await _0x1ae5e2['ylrYb'](sendInstrumentationEvent,_0x3d0123,_0x1ae5e2[_0xb8758b(0x21f)],messageTypes['ERROR'],_0x1ae5e2['IkOVW'],_0x245136,_0x3d0123),process[_0xb8758b(0x225)](0x1);}};function a12_0x3962(_0x4dca99,_0x5ceb72){const _0x3da294=a12_0x3da2();return a12_0x3962=function(_0x39623f,_0x1470bd){_0x39623f=_0x39623f-0x1ef;let _0x1ae17f=_0x3da294[_0x39623f];return _0x1ae17f;},a12_0x3962(_0x4dca99,_0x5ceb72);}function a12_0x3da2(){const _0x35bd58=['type','desc','SEsjP','argv','OWbnA','BfveP','OiCie','strict','gkDgc','BROWSERSTACK_USERNAME','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','stringify','PHJBQ','WNgEj','NDIJr','tEEXr','error','bSDmJ','bstack-accesskey','https://','vkefW','iyodc','wxbIf','util','806980lEgtey','BROWSERSTACK_ACCESS_KEY','544jpyBTD','Browserstack','init','bstack-username','IpHBK','handler','JekwA','3635zYUffZ','7078512UZfYma','vxbBf','../utils/instrumentationUtils','wrong-creds','192WeoOXt','INFO','epilogue','string','ERROR','CaEba','help','../utils/userInput','MNque','description','writeFileSync','54909LDZzBn','OsUTJ','options','ALFVX','recommendCommands','got','init-called','ikJZy','gWjqQ','MksSD','mkdirSync','uuid','debug','DTIDo','exit','../utils/utilityMethods','TtucR','statusCode','lTqgZ','utf-8','117155LBarHt','oocRa','toiif','unknown-error','llHie','934194isecif','readFileSync','existsSync','UlnGn','../config/logger','stack','username','JKOOt','Idlul','FcaUg','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','tZVCz','cWpoe','NICNn','10445220FeDpHr','npRQf','ySdGp','parse','command','env','Dpddp','bstackUsername','bstackAccesskey','162RvWdVd','xadwY','UOcom','builder','password'];a12_0x3da2=function(){return _0x35bd58;};return a12_0x3da2();}
1
+ const a12_0x104dc3=a12_0x5902;(function(_0xc5c9cc,_0x190f0d){const _0x542bbe=a12_0x5902,_0x2a89e9=_0xc5c9cc();while(!![]){try{const _0xf0961f=-parseInt(_0x542bbe(0x11d))/0x1+parseInt(_0x542bbe(0xe4))/0x2+-parseInt(_0x542bbe(0x117))/0x3*(parseInt(_0x542bbe(0x11e))/0x4)+parseInt(_0x542bbe(0x114))/0x5+-parseInt(_0x542bbe(0x111))/0x6+parseInt(_0x542bbe(0x13b))/0x7+-parseInt(_0x542bbe(0x12c))/0x8*(-parseInt(_0x542bbe(0xe7))/0x9);if(_0xf0961f===_0x190f0d)break;else _0x2a89e9['push'](_0x2a89e9['shift']());}catch(_0x3d665c){_0x2a89e9['push'](_0x2a89e9['shift']());}}}(a12_0x49be,0x5febd));function a12_0x49be(){const _0x2983fb=['options','utf-8','51304EQdHKA','debug','type','bstackUsername','mkdirSync','existsSync','jaBUP','../config/logger','PxaKP','BROWSERSTACK_ACCESS_KEY','argv','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','requestId','https://','3951458YbgqJv','vesbq','bstack-accesskey','qaQEg','biMFG','gyvvo','Mznkd','tZHrm','NcrGg','description','rtonb','strict','LuAcB','joXMj','IiesZ','ERROR','desc','bxCSl','INFO','../utils/instrumentationUtils','1334206HxHhmF','UbVLe','help','801IkemVv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','ZUvuY','NOsjq','OskgD','writeFileSync','gROgt','bstack-username','util','statusCode','init','tSIKv','env','hnovb','AFSpu','WZAoj','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','error','wrong-creds','password','exit','string','BdXYg','GET','HdKKx','readFileSync','init-called','udzhZ','../utils/utilityMethods','usage','wtuPJ','dZYAM','builder','ENeAD','ZibnC','QILtK','stringify','../config/constants','stack','PADih','epilogue','xjyAz','3220836NdOSHF','fehMj','bmNYX','1480270fNwfRQ','bstackAccesskey','Browserstack','381iinPFJ','feznY','uuid','rbCWl','username','command','383214SMLzux','24740bLJyQY','eooLM','parse','recommendCommands','got','../utils/userInput','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','yPQHs','eMDOO','caeRa','handler','BROWSERSTACK_USERNAME'];a12_0x49be=function(){return _0x2983fb;};return a12_0x49be();}const fs=require('fs'),util=require(a12_0x104dc3(0xef)),got=require(a12_0x104dc3(0x122)),{v4:uuidv4}=require(a12_0x104dc3(0x119)),{logger}=require(a12_0x104dc3(0x133)),{inputBstackKeys}=require(a12_0x104dc3(0x123)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x104dc3(0x10c)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x104dc3(0x103)),{sendInstrumentationEvent}=require(a12_0x104dc3(0xe3));function a12_0x5902(_0xaf8e38,_0x589e81){const _0x49beca=a12_0x49be();return a12_0x5902=function(_0x590219,_0x15b435){_0x590219=_0x590219-0xd2;let _0xb4d93a=_0x49beca[_0x590219];return _0xb4d93a;},a12_0x5902(_0xaf8e38,_0x589e81);}exports[a12_0x104dc3(0x11c)]='init',exports[a12_0x104dc3(0xe0)]=a12_0x104dc3(0x124),exports[a12_0x104dc3(0x107)]=function(_0x5cb477){const _0x2548b9=a12_0x104dc3,_0x2803ea={};_0x2803ea[_0x2548b9(0xdc)]=_0x2548b9(0x137),_0x2803ea[_0x2548b9(0x110)]=_0x2548b9(0xfc),_0x2803ea['joXMj']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2803ea[_0x2548b9(0x10e)]=_0x2548b9(0xe6);const _0x32d043=_0x2803ea,_0x1d9170={};_0x1d9170['description']=_0x32d043[_0x2548b9(0xdc)],_0x1d9170[_0x2548b9(0x12e)]=_0x32d043[_0x2548b9(0x110)];const _0x2a9b94={};_0x2a9b94[_0x2548b9(0xd9)]=_0x32d043[_0x2548b9(0xdd)],_0x2a9b94[_0x2548b9(0x12e)]=_0x32d043[_0x2548b9(0x110)];const _0x49eba1={};return _0x49eba1['bstack-username']=_0x1d9170,_0x49eba1[_0x2548b9(0xd2)]=_0x2a9b94,_0x5cb477[_0x2548b9(0x104)](HELP_HEADER_MESSAGE[_0x2548b9(0xf1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2548b9(0x12a)](_0x49eba1)[_0x2548b9(0x121)]()[_0x2548b9(0xdb)]()[_0x2548b9(0xe6)](_0x32d043[_0x2548b9(0x10e)])[_0x2548b9(0x136)];},exports[a12_0x104dc3(0x128)]=async function(_0x3bf27a){const _0x26ccc6=a12_0x104dc3,_0xfd13c2={'yuHIa':_0x26ccc6(0x137),'udzhZ':_0x26ccc6(0xfc),'eMDOO':_0x26ccc6(0xf7),'ZUvuY':_0x26ccc6(0xe6),'Mznkd':function(_0x9fbac8){return _0x9fbac8();},'OskgD':_0x26ccc6(0x12b),'QILtK':function(_0x30767c,_0x206d1e,_0x174441,_0x194c88,_0x1ab7b1,_0x38f0d1,_0x35e3c0){return _0x30767c(_0x206d1e,_0x174441,_0x194c88,_0x1ab7b1,_0x38f0d1,_0x35e3c0);},'UbVLe':_0x26ccc6(0x101),'biMFG':function(_0x3ef78c){return _0x3ef78c();},'feznY':function(_0x40543c,_0x452cbe){return _0x40543c===_0x452cbe;},'rtonb':'SKokI','wtuPJ':function(_0x2b0c3f,_0x1b6e65){return _0x2b0c3f!==_0x1b6e65;},'vesbq':_0x26ccc6(0xf2),'WZAoj':_0x26ccc6(0xd3),'NcrGg':'tBmTk','bmNYX':function(_0x128d21,_0x5b82d3){return _0x128d21!==_0x5b82d3;},'gROgt':_0x26ccc6(0x125),'hnovb':'PJFrt','rbCWl':function(_0x44f0de,_0x56af51){return _0x44f0de===_0x56af51;},'jaBUP':function(_0x31505d,_0x2c041f){return _0x31505d===_0x2c041f;},'ZibnC':_0x26ccc6(0xde),'HdKKx':_0x26ccc6(0x138),'bxCSl':function(_0x66d8d8){return _0x66d8d8();},'woUtf':_0x26ccc6(0xfe),'fehMj':function(_0x24749e,_0x2f15c5,_0x38df99){return _0x24749e(_0x2f15c5,_0x38df99);},'caeRa':function(_0x4afbcf,_0x1163c0,_0x3007f4){return _0x4afbcf(_0x1163c0,_0x3007f4);},'gyvvo':function(_0x5e0199,_0x1f7cd6){return _0x5e0199!==_0x1f7cd6;},'dZYAM':function(_0x4cf1f8,_0x1f69ea){return _0x4cf1f8!==_0x1f69ea;},'PxaKP':_0x26ccc6(0x108),'BdXYg':_0x26ccc6(0xf5),'tZHrm':function(_0x15f7e5){return _0x15f7e5();},'NOsjq':_0x26ccc6(0x11f),'ARdoy':_0x26ccc6(0xe8),'GScNK':_0x26ccc6(0xf9),'goMPR':'unknown-error'};try{global_registry[_0x26ccc6(0x139)]=_0xfd13c2[_0x26ccc6(0xd6)](uuidv4),_0xfd13c2[_0x26ccc6(0x10a)](sendInstrumentationEvent,_0x3bf27a,_0xfd13c2[_0x26ccc6(0xe5)],messageTypes[_0x26ccc6(0xe2)],null,null,_0x3bf27a);const _0x5dea9c=_0xfd13c2[_0x26ccc6(0xd4)](getDirForConfig);if(!fs['existsSync'](_0x5dea9c)){if(_0xfd13c2['feznY'](_0xfd13c2['rtonb'],_0xfd13c2[_0x26ccc6(0xda)]))fs[_0x26ccc6(0x130)](_0x5dea9c);else{const _0x29d2e7={};_0x29d2e7[_0x26ccc6(0xd9)]=_0xfd13c2['yuHIa'],_0x29d2e7[_0x26ccc6(0x12e)]=_0xfd13c2[_0x26ccc6(0x102)];const _0x27adb8={};_0x27adb8[_0x26ccc6(0xd9)]=_0xfd13c2[_0x26ccc6(0x126)],_0x27adb8[_0x26ccc6(0x12e)]=_0xfd13c2[_0x26ccc6(0x102)];const _0x8c1039={};return _0x8c1039[_0x26ccc6(0xee)]=_0x29d2e7,_0x8c1039[_0x26ccc6(0xd2)]=_0x27adb8,_0x190711[_0x26ccc6(0x104)](_0x9283c9[_0x26ccc6(0xf1)])[_0x26ccc6(0x10f)](_0x5aa276)[_0x26ccc6(0x12a)](_0x8c1039)[_0x26ccc6(0x121)]()[_0x26ccc6(0xdb)]()[_0x26ccc6(0xe6)](_0xfd13c2[_0x26ccc6(0xe9)])['argv'];}}let _0x51992f,_0x253656;process[_0x26ccc6(0xf3)][_0x26ccc6(0x129)]&&(_0xfd13c2[_0x26ccc6(0x105)](_0xfd13c2[_0x26ccc6(0x13c)],_0xfd13c2[_0x26ccc6(0x13c)])?_0x5e51a4=_0x560701['env']['BROWSERSTACK_USERNAME']:_0x51992f=process[_0x26ccc6(0xf3)]['BROWSERSTACK_USERNAME']);if(process[_0x26ccc6(0xf3)]['BROWSERSTACK_ACCESS_KEY']){if(_0xfd13c2['wtuPJ'](_0xfd13c2[_0x26ccc6(0xf6)],_0xfd13c2[_0x26ccc6(0xd8)]))_0x253656=process[_0x26ccc6(0xf3)][_0x26ccc6(0x135)];else{let _0x16a6fc={};const _0x2b0b21=_0xfd13c2[_0x26ccc6(0xd6)](_0x4210e6);_0x5bb4f8[_0x26ccc6(0x131)](_0x2b0b21)&&(_0x16a6fc=_0x739bb3['parse'](_0x5db58e[_0x26ccc6(0x100)](_0x2b0b21,_0xfd13c2[_0x26ccc6(0xeb)])));const _0x106d73={};_0x106d73[_0x26ccc6(0x11b)]=_0x555cbe,_0x106d73[_0x26ccc6(0xfa)]=_0x32f8d6,_0x16a6fc[_0x26ccc6(0x116)]=_0x106d73,_0x4d8179['writeFileSync'](_0x2b0b21,_0x2620ea[_0x26ccc6(0x10b)](_0x16a6fc)),_0x325c8e[_0x26ccc6(0xfb)](0x0);}}_0x3bf27a[_0x26ccc6(0x12f)]&&(_0xfd13c2['bmNYX'](_0xfd13c2['gROgt'],_0xfd13c2[_0x26ccc6(0xed)])?_0xe98a2d=_0x5f4394[_0x26ccc6(0xf3)][_0x26ccc6(0x135)]:_0x51992f=_0x3bf27a['bstackUsername']);_0x3bf27a[_0x26ccc6(0x115)]&&(_0xfd13c2[_0x26ccc6(0x113)](_0xfd13c2[_0x26ccc6(0xf4)],_0xfd13c2[_0x26ccc6(0xf4)])?_0x588433=!![]:_0x253656=_0x3bf27a[_0x26ccc6(0x115)]);if(_0xfd13c2[_0x26ccc6(0x118)](_0x51992f,undefined)||_0xfd13c2[_0x26ccc6(0x11a)](_0x253656,undefined)){if(_0xfd13c2[_0x26ccc6(0x132)](_0xfd13c2['ZibnC'],_0xfd13c2[_0x26ccc6(0x109)])){logger[_0x26ccc6(0x12d)](_0xfd13c2[_0x26ccc6(0xff)]);const [_0x42cfa8,_0x54d011]=await _0xfd13c2[_0x26ccc6(0xe1)](inputBstackKeys);_0x51992f=_0x42cfa8,_0x253656=_0x54d011;}else _0x2615cd=_0x48fcff['bstackUsername'];}let _0x10094a=![];const _0x1ad833=_0x26ccc6(0x13a)+_0x51992f+':'+_0x253656+'@'+BS_API_URL+'/automate/plan.json',_0x46168d={'method':_0xfd13c2['woUtf'],'headers':_0xfd13c2[_0x26ccc6(0x112)](getAuthHeader,_0x51992f,_0x253656),'throwHttpErrors':![]},_0x5ae9e6=await _0xfd13c2[_0x26ccc6(0x127)](got,_0x1ad833,_0x46168d);_0xfd13c2[_0x26ccc6(0xd5)](_0x5ae9e6,null)&&_0xfd13c2[_0x26ccc6(0x106)](_0x5ae9e6,undefined)&&_0xfd13c2[_0x26ccc6(0x132)](_0x5ae9e6[_0x26ccc6(0xf0)],0xc8)&&(_0xfd13c2[_0x26ccc6(0x118)](_0xfd13c2[_0x26ccc6(0x134)],_0xfd13c2[_0x26ccc6(0x134)])?_0x10094a=!![]:_0x361ce0=_0x1b4325[_0x26ccc6(0x115)]);if(_0x10094a){if(_0xfd13c2['bmNYX'](_0xfd13c2['BdXYg'],_0xfd13c2[_0x26ccc6(0xfd)]))_0x4b0161=_0x1a8c14[_0x26ccc6(0x120)](_0x4814ec[_0x26ccc6(0x100)](_0x2e1dd7,_0xfd13c2[_0x26ccc6(0xeb)]));else{let _0x5e789d={};const _0xda0946=_0xfd13c2[_0x26ccc6(0xd7)](getCredentialsPath);fs['existsSync'](_0xda0946)&&(_0xfd13c2[_0x26ccc6(0x11a)](_0xfd13c2[_0x26ccc6(0xea)],_0xfd13c2[_0x26ccc6(0xea)])?_0x5e789d=JSON[_0x26ccc6(0x120)](fs[_0x26ccc6(0x100)](_0xda0946,_0xfd13c2[_0x26ccc6(0xeb)])):_0x397bcb['mkdirSync'](_0x16243b));const _0x47260f={};_0x47260f[_0x26ccc6(0x11b)]=_0x51992f,_0x47260f['password']=_0x253656,_0x5e789d[_0x26ccc6(0x116)]=_0x47260f,fs[_0x26ccc6(0xec)](_0xda0946,JSON[_0x26ccc6(0x10b)](_0x5e789d)),process[_0x26ccc6(0xfb)](0x0);}}else logger[_0x26ccc6(0xf8)](_0xfd13c2['ARdoy']),await _0xfd13c2[_0x26ccc6(0x10a)](sendInstrumentationEvent,_0x3bf27a,_0xfd13c2['UbVLe'],messageTypes[_0x26ccc6(0xdf)],_0xfd13c2['GScNK'],null,_0x3bf27a),process['exit'](0x1);}catch(_0x2c7b00){logger[_0x26ccc6(0xf8)](_0x2c7b00[_0x26ccc6(0x10d)]),await _0xfd13c2[_0x26ccc6(0x10a)](sendInstrumentationEvent,_0x3bf27a,_0xfd13c2[_0x26ccc6(0xe5)],messageTypes[_0x26ccc6(0xdf)],_0xfd13c2['goMPR'],_0x2c7b00,_0x3bf27a),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0xf982a2=a13_0x52f9;function a13_0x4fd9(){const _0x5b41bc=['builder','usage','root','demandCommand','8598732quRXIB','bVmSL','help','desc','6345IHCwaa','epilogue','4629121qVXmHe','374552GUSXWT','489015XFnNWk','30KhsBoG','../config/constants','2958576OwEOil','recommendCommands','714652poQCns','List\x20down\x20the\x20Grid\x20resources.','strict','19128itjuYD'];a13_0x4fd9=function(){return _0x5b41bc;};return a13_0x4fd9();}(function(_0x53ba65,_0x5a6f27){const _0x29c7ac=a13_0x52f9,_0x1abd2a=_0x53ba65();while(!![]){try{const _0xbb1b06=-parseInt(_0x29c7ac(0x18c))/0x1+parseInt(_0x29c7ac(0x19f))/0x2+-parseInt(_0x29c7ac(0x19c))/0x3+-parseInt(_0x29c7ac(0x19b))/0x4*(-parseInt(_0x29c7ac(0x19d))/0x5)+-parseInt(_0x29c7ac(0x194))/0x6+-parseInt(_0x29c7ac(0x19a))/0x7+-parseInt(_0x29c7ac(0x18f))/0x8*(-parseInt(_0x29c7ac(0x198))/0x9);if(_0xbb1b06===_0x5a6f27)break;else _0x1abd2a['push'](_0x1abd2a['shift']());}catch(_0x3ac7d6){_0x1abd2a['push'](_0x1abd2a['shift']());}}}(a13_0x4fd9,0xb8401));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0xf982a2(0x19e));function a13_0x52f9(_0x354036,_0x3c7fb3){const _0x4fd942=a13_0x4fd9();return a13_0x52f9=function(_0x52f9c5,_0x31257e){_0x52f9c5=_0x52f9c5-0x18b;let _0x3dafa6=_0x4fd942[_0x52f9c5];return _0x3dafa6;},a13_0x52f9(_0x354036,_0x3c7fb3);}exports['command']='list',exports[a13_0xf982a2(0x197)]=a13_0xf982a2(0x18d),exports[a13_0xf982a2(0x190)]=function(_0x1b1443){const _0x14eb17=a13_0xf982a2,_0x289e25={};_0x289e25['eQdnD']='list_commands',_0x289e25[_0x14eb17(0x195)]=_0x14eb17(0x196);const _0x2ea04e=_0x289e25;return _0x1b1443['commandDir'](_0x2ea04e['eQdnD'])[_0x14eb17(0x193)]()[_0x14eb17(0x191)](HELP_HEADER_MESSAGE['list'][_0x14eb17(0x192)])[_0x14eb17(0x199)](HELP_FOOTER_MESSAGE)[_0x14eb17(0x18b)]()[_0x14eb17(0x18e)]()[_0x14eb17(0x196)](_0x2ea04e[_0x14eb17(0x195)]);},exports['handler']=function(_0x271c45){};
1
+ const a13_0x41679c=a13_0x16e5;(function(_0xdc3eb8,_0x37f3af){const _0x3f757b=a13_0x16e5,_0x15eba8=_0xdc3eb8();while(!![]){try{const _0x2529e8=-parseInt(_0x3f757b(0x1c1))/0x1+parseInt(_0x3f757b(0x1c0))/0x2+-parseInt(_0x3f757b(0x1c7))/0x3+parseInt(_0x3f757b(0x1b8))/0x4*(-parseInt(_0x3f757b(0x1cc))/0x5)+-parseInt(_0x3f757b(0x1bc))/0x6+parseInt(_0x3f757b(0x1c6))/0x7*(parseInt(_0x3f757b(0x1bd))/0x8)+parseInt(_0x3f757b(0x1cb))/0x9;if(_0x2529e8===_0x37f3af)break;else _0x15eba8['push'](_0x15eba8['shift']());}catch(_0x4dec07){_0x15eba8['push'](_0x15eba8['shift']());}}}(a13_0x4f38,0x64510));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x41679c(0x1ba));function a13_0x16e5(_0x665a55,_0x178273){const _0x4f3816=a13_0x4f38();return a13_0x16e5=function(_0x16e523,_0x1c38fa){_0x16e523=_0x16e523-0x1b4;let _0xe40252=_0x4f3816[_0x16e523];return _0xe40252;},a13_0x16e5(_0x665a55,_0x178273);}exports[a13_0x41679c(0x1bb)]=a13_0x41679c(0x1b9),exports[a13_0x41679c(0x1bf)]=a13_0x41679c(0x1ca),exports[a13_0x41679c(0x1c3)]=function(_0x1fb07f){const _0x21a0be=a13_0x41679c,_0x3249cb={};_0x3249cb[_0x21a0be(0x1b7)]=_0x21a0be(0x1cd),_0x3249cb[_0x21a0be(0x1be)]=_0x21a0be(0x1b6);const _0x245a76=_0x3249cb;return _0x1fb07f[_0x21a0be(0x1b4)](_0x245a76['xLuYx'])[_0x21a0be(0x1c4)]()[_0x21a0be(0x1c2)](HELP_HEADER_MESSAGE[_0x21a0be(0x1b9)][_0x21a0be(0x1c5)])[_0x21a0be(0x1c8)](HELP_FOOTER_MESSAGE)[_0x21a0be(0x1b5)]()['strict']()[_0x21a0be(0x1b6)](_0x245a76[_0x21a0be(0x1be)]);},exports[a13_0x41679c(0x1c9)]=function(_0x1f8aca){};function a13_0x4f38(){const _0x469e7a=['6524vrnEJn','list','../config/constants','command','2551848gPeaRR','256SAIcjy','qzalo','desc','1628914uoWXhv','262327UaoSSR','usage','builder','demandCommand','root','23317oYupyJ','2046582ojLRxn','epilogue','handler','List\x20down\x20the\x20Grid\x20resources.','8896725acyGuW','395ncpTzW','list_commands','commandDir','recommendCommands','help','xLuYx'];a13_0x4f38=function(){return _0x469e7a;};return a13_0x4f38();}
@@ -1 +1 @@
1
- function a14_0x4260(_0x24b307,_0x557cb3){const _0x2ae1f5=a14_0x2ae1();return a14_0x4260=function(_0x4260b2,_0x1564d1){_0x4260b2=_0x4260b2-0xb2;let _0x8594f7=_0x2ae1f5[_0x4260b2];return _0x8594f7;},a14_0x4260(_0x24b307,_0x557cb3);}const a14_0x3b593f=a14_0x4260;(function(_0x4e7c1a,_0x1d4e5d){const _0x476398=a14_0x4260,_0x2b50b1=_0x4e7c1a();while(!![]){try{const _0x5d7ab7=-parseInt(_0x476398(0xf5))/0x1*(-parseInt(_0x476398(0xf7))/0x2)+parseInt(_0x476398(0xc8))/0x3+parseInt(_0x476398(0xe5))/0x4*(-parseInt(_0x476398(0xe2))/0x5)+parseInt(_0x476398(0xbb))/0x6+-parseInt(_0x476398(0xf2))/0x7+parseInt(_0x476398(0xb5))/0x8+-parseInt(_0x476398(0xd7))/0x9;if(_0x5d7ab7===_0x1d4e5d)break;else _0x2b50b1['push'](_0x2b50b1['shift']());}catch(_0x406150){_0x2b50b1['push'](_0x2b50b1['shift']());}}}(a14_0x2ae1,0xbfd01));const fs=require('fs'),got=require(a14_0x3b593f(0xee)),{table}=require('table'),{v4:uuidv4}=require(a14_0x3b593f(0xb4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x3b593f(0xf0)),{getCredentialsPath,getAuthHeader}=require(a14_0x3b593f(0xba)),{sendInstrumentationEvent}=require(a14_0x3b593f(0x102));function a14_0x2ae1(){const _0x54afde=['Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','got','stZyt','../../config/constants','grid-profiles','3457482RcSzSl','cloud-provider','stack','447nKkyfQ','allGridProfiles','5122AJSHUB','gridProfile','bstackAccesskey','type','SdsQm','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','description','ERROR','zUoBn','log','../../utils/instrumentationUtils','grid-profile-name','/packages/cli/get-grid-profiles','uuid','10263704gWmrWM','FYWcz','unauthorised','region','exit','../../utils/utilityMethods','8257938XCGSqc','fzcKQ','list','all-grid-profiles','usage','error','Browserstack','HBvbr','EfiaL','ZVEaL','username','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','3265428LzlOgJ','qcwOC','DZDVv','stringify','push','YDgZT','list-grid-profiles-called','unknown-error','CmCDi','builder','forEach','fiKjw','/packages/cli/get-all-grid-profiles','name','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','19836810NSeuJM','help','https://','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','existsSync','boolean','concurrency','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','command','epilogue','parse','335440wtPnQf','CDXsU','password','84nzRFCJ','INFO','bstackUsername','body','statusCode','desc','readFileSync','zLQPQ'];a14_0x2ae1=function(){return _0x54afde;};return a14_0x2ae1();}exports[a14_0x3b593f(0xdf)]=a14_0x3b593f(0xf1),exports[a14_0x3b593f(0xea)]=a14_0x3b593f(0xda),exports[a14_0x3b593f(0xd1)]=function(_0x92b965){const _0x40a971=a14_0x3b593f,_0x3c3138={};_0x3c3138['qGSwa']=_0x40a971(0xd6),_0x3c3138[_0x40a971(0xfb)]=_0x40a971(0xdc),_0x3c3138['YDgZT']=_0x40a971(0xd8);const _0xa6b8f3=_0x3c3138,_0xa4fd2e={};_0xa4fd2e[_0x40a971(0xfe)]=_0xa6b8f3['qGSwa'],_0xa4fd2e[_0x40a971(0xfa)]=_0xa6b8f3[_0x40a971(0xfb)];const _0x647d9={};return _0x647d9[_0x40a971(0xbe)]=_0xa4fd2e,_0x92b965[_0x40a971(0xbf)](HELP_HEADER_MESSAGE[_0x40a971(0xbd)][_0x40a971(0xf8)])[_0x40a971(0xe0)](HELP_FOOTER_MESSAGE)['options'](_0x647d9)['help'](_0xa6b8f3[_0x40a971(0xcd)])[_0x40a971(0xfd)];},exports['handler']=async function(_0x1d95e2){const _0x74b8eb=a14_0x3b593f,_0xa588e1={'qcwOC':function(_0x11a429){return _0x11a429();},'BFQDv':function(_0x13a2c5){return _0x13a2c5();},'xxnif':_0x74b8eb(0xfc),'Gqgua':function(_0x2043ad,_0x5b114e,_0x624751,_0x132520,_0x39c571,_0x34e69e,_0x3a493d){return _0x2043ad(_0x5b114e,_0x624751,_0x132520,_0x39c571,_0x34e69e,_0x3a493d);},'fiKjw':_0x74b8eb(0xce),'EfiaL':'init-not-called','FYWcz':function(_0x1f2edf){return _0x1f2edf();},'EAJfn':'GET','HBvbr':function(_0x2be0cb,_0x10a44a,_0x2678af){return _0x2be0cb(_0x10a44a,_0x2678af);},'fzcKQ':function(_0xe3244c,_0x56e23b,_0x5258d4,_0x3c059a,_0x3a6897,_0x3d90d8,_0x55b309){return _0xe3244c(_0x56e23b,_0x5258d4,_0x3c059a,_0x3a6897,_0x3d90d8,_0x55b309);},'vaLyF':function(_0x1bdf82,_0x5b5587){return _0x1bdf82!==_0x5b5587;},'CDXsU':function(_0x2e1e68,_0x31e44d){return _0x2e1e68===_0x31e44d;},'qmHWv':_0x74b8eb(0xde),'dHhCa':_0x74b8eb(0xb2),'cLGVi':_0x74b8eb(0xf3),'zUoBn':_0x74b8eb(0xb8),'zLQPQ':_0x74b8eb(0xdd),'stZyt':function(_0x34066e,_0x30eac2){return _0x34066e(_0x30eac2);},'CmCDi':function(_0x515741,_0x55e79a,_0x245fa0,_0x286bae,_0x5a027f,_0x2c3c70,_0x5170b2){return _0x515741(_0x55e79a,_0x245fa0,_0x286bae,_0x5a027f,_0x2c3c70,_0x5170b2);},'TOoFZ':_0x74b8eb(0xb7),'DZDVv':'server-error','ZVEaL':_0x74b8eb(0xcf)};try{global_registry[_0x74b8eb(0xc7)]=_0xa588e1[_0x74b8eb(0xc9)](uuidv4);let _0x49ad39=_0x74b8eb(0xd9)+AG_API_URL+_0x74b8eb(0xb3);_0x1d95e2[_0x74b8eb(0xf6)]&&(_0x49ad39=_0x74b8eb(0xd9)+AG_API_URL+_0x74b8eb(0xd4));!fs[_0x74b8eb(0xdb)](_0xa588e1['BFQDv'](getCredentialsPath))&&(console[_0x74b8eb(0xc0)](_0xa588e1['xxnif']),await _0xa588e1['Gqgua'](sendInstrumentationEvent,_0x1d95e2,_0xa588e1[_0x74b8eb(0xd3)],messageTypes['ERROR'],_0xa588e1[_0x74b8eb(0xc3)],null,_0x1d95e2),process['exit'](0x1));const _0x4cf9cc=JSON[_0x74b8eb(0xe1)](fs[_0x74b8eb(0xeb)](_0xa588e1[_0x74b8eb(0xb6)](getCredentialsPath))),_0x3d5f48={'method':_0xa588e1['EAJfn'],'headers':_0xa588e1['HBvbr'](getAuthHeader,_0x4cf9cc[_0x74b8eb(0xc1)][_0x74b8eb(0xc5)],_0x4cf9cc['Browserstack'][_0x74b8eb(0xe4)]),'throwHttpErrors':![]};global_registry[_0x74b8eb(0xe7)]=_0x4cf9cc[_0x74b8eb(0xc1)][_0x74b8eb(0xc5)],global_registry[_0x74b8eb(0xf9)]=_0x4cf9cc[_0x74b8eb(0xc1)]['password'],_0xa588e1[_0x74b8eb(0xbc)](sendInstrumentationEvent,_0x1d95e2,_0xa588e1[_0x74b8eb(0xd3)],messageTypes[_0x74b8eb(0xe6)],null,null,_0x1d95e2);const _0x5ae41c=await _0xa588e1[_0x74b8eb(0xc2)](got,_0x49ad39,_0x3d5f48);if(_0xa588e1['vaLyF'](_0x5ae41c,null)&&_0xa588e1['vaLyF'](_0x5ae41c,undefined)&&_0xa588e1[_0x74b8eb(0xe3)](_0x5ae41c[_0x74b8eb(0xe9)],0xc8)){const _0x4ca24e=JSON[_0x74b8eb(0xe1)](_0x5ae41c[_0x74b8eb(0xe8)]);console[_0x74b8eb(0x101)](_0xa588e1['qmHWv']);const _0x2e4687=[];_0x2e4687[_0x74b8eb(0xcc)]([_0xa588e1['dHhCa'],_0xa588e1['cLGVi'],_0xa588e1[_0x74b8eb(0x100)],_0xa588e1[_0x74b8eb(0xec)]]),_0x4ca24e[_0x74b8eb(0xd2)](_0x111465=>{const _0x3cadb1=_0x74b8eb;_0x2e4687[_0x3cadb1(0xcc)]([_0x111465[_0x3cadb1(0xd5)],_0x111465['cloudProvider'],_0x111465[_0x3cadb1(0xb8)],_0x111465[_0x3cadb1(0xdd)]]);}),console['log'](_0xa588e1[_0x74b8eb(0xef)](table,_0x2e4687)),process['exit'](0x0);}_0xa588e1[_0x74b8eb(0xe3)](_0x5ae41c[_0x74b8eb(0xe9)],0x191)&&(console[_0x74b8eb(0xc0)](_0x74b8eb(0xed)),await _0xa588e1['CmCDi'](sendInstrumentationEvent,_0x1d95e2,_0xa588e1[_0x74b8eb(0xd3)],messageTypes[_0x74b8eb(0xff)],_0xa588e1['TOoFZ'],null,_0x1d95e2),process[_0x74b8eb(0xb9)](0x1)),console[_0x74b8eb(0xc0)](_0x74b8eb(0xc6)+JSON[_0x74b8eb(0xcb)](_0x5ae41c)),await _0xa588e1[_0x74b8eb(0xd0)](sendInstrumentationEvent,_0x1d95e2,_0xa588e1[_0x74b8eb(0xd3)],messageTypes[_0x74b8eb(0xff)],_0xa588e1[_0x74b8eb(0xca)],_0x5ae41c,_0x1d95e2),process[_0x74b8eb(0xb9)](0x1);}catch(_0x459f73){console[_0x74b8eb(0xc0)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x459f73[_0x74b8eb(0xf4)]),await _0xa588e1[_0x74b8eb(0xd0)](sendInstrumentationEvent,_0x1d95e2,_0xa588e1[_0x74b8eb(0xd3)],messageTypes[_0x74b8eb(0xff)],_0xa588e1[_0x74b8eb(0xc4)],_0x459f73,_0x1d95e2),process[_0x74b8eb(0xb9)](0x1);}};
1
+ function a14_0x5966(_0x520427,_0x4c6cdd){const _0x5325f0=a14_0x5325();return a14_0x5966=function(_0x596687,_0x88dcf0){_0x596687=_0x596687-0xf4;let _0xe990f=_0x5325f0[_0x596687];return _0xe990f;},a14_0x5966(_0x520427,_0x4c6cdd);}const a14_0x38eb85=a14_0x5966;(function(_0x5d7429,_0xb2ac66){const _0x4f40e9=a14_0x5966,_0x1fe4b3=_0x5d7429();while(!![]){try{const _0x5a0680=parseInt(_0x4f40e9(0x11b))/0x1*(parseInt(_0x4f40e9(0x13e))/0x2)+parseInt(_0x4f40e9(0x123))/0x3*(-parseInt(_0x4f40e9(0x10f))/0x4)+-parseInt(_0x4f40e9(0x135))/0x5+-parseInt(_0x4f40e9(0x13b))/0x6*(parseInt(_0x4f40e9(0x10e))/0x7)+-parseInt(_0x4f40e9(0x101))/0x8*(-parseInt(_0x4f40e9(0x117))/0x9)+-parseInt(_0x4f40e9(0x136))/0xa*(-parseInt(_0x4f40e9(0x109))/0xb)+parseInt(_0x4f40e9(0x131))/0xc*(parseInt(_0x4f40e9(0x118))/0xd);if(_0x5a0680===_0xb2ac66)break;else _0x1fe4b3['push'](_0x1fe4b3['shift']());}catch(_0x147e5d){_0x1fe4b3['push'](_0x1fe4b3['shift']());}}}(a14_0x5325,0x6821a));const fs=require('fs'),got=require('got'),{table}=require(a14_0x38eb85(0xf9)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x38eb85(0x12d)),{getCredentialsPath,getAuthHeader}=require(a14_0x38eb85(0x122)),{sendInstrumentationEvent}=require(a14_0x38eb85(0x119));exports[a14_0x38eb85(0x128)]=a14_0x38eb85(0x114),exports[a14_0x38eb85(0x10c)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x48b482){const _0x379ddc=a14_0x38eb85,_0x52625d={};_0x52625d['WPOou']=_0x379ddc(0x143),_0x52625d['EAnvH']=_0x379ddc(0x137),_0x52625d[_0x379ddc(0x130)]=_0x379ddc(0x144);const _0x5745e2=_0x52625d,_0xe27c74={};_0xe27c74[_0x379ddc(0x12f)]=_0x5745e2[_0x379ddc(0xfc)],_0xe27c74[_0x379ddc(0x13d)]=_0x5745e2['EAnvH'];const _0x311487={};return _0x311487[_0x379ddc(0xfe)]=_0xe27c74,_0x48b482[_0x379ddc(0x10d)](HELP_HEADER_MESSAGE[_0x379ddc(0xf4)][_0x379ddc(0x120)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x379ddc(0x12b)](_0x311487)[_0x379ddc(0x144)](_0x5745e2['ygrrE'])['argv'];},exports['handler']=async function(_0x10a340){const _0x1322d2=a14_0x38eb85,_0x5b9d8d={'cPyQd':function(_0x597d81){return _0x597d81();},'ECkbz':_0x1322d2(0x112),'whxuM':function(_0x195b81,_0xa44c40,_0xd150c2,_0x5e2240,_0x151663,_0xa1976a,_0x5e4187){return _0x195b81(_0xa44c40,_0xd150c2,_0x5e2240,_0x151663,_0xa1976a,_0x5e4187);},'gXtnS':_0x1322d2(0x115),'PcWDO':'init-not-called','zstgY':function(_0x2ce87c){return _0x2ce87c();},'nEMLB':'GET','eaIQb':function(_0x1be671,_0x455d33,_0x56326d){return _0x1be671(_0x455d33,_0x56326d);},'DxqQg':function(_0x440ee5,_0x3de5ee,_0x193034,_0x4fa083,_0x53b1cf,_0x7486f,_0x1d84f3){return _0x440ee5(_0x3de5ee,_0x193034,_0x4fa083,_0x53b1cf,_0x7486f,_0x1d84f3);},'zTawm':function(_0x283a48,_0x1ca58f,_0x187978){return _0x283a48(_0x1ca58f,_0x187978);},'VqDQn':function(_0x16e58a,_0x3657d9){return _0x16e58a!==_0x3657d9;},'XtrYB':function(_0x384564,_0x582df9){return _0x384564!==_0x582df9;},'cleYd':function(_0x20d6de,_0x5bb68b){return _0x20d6de===_0x5bb68b;},'LuIax':_0x1322d2(0x116),'mDemE':_0x1322d2(0x108),'MCaEj':_0x1322d2(0x104),'hVyBn':'region','sHKqD':'concurrency','qoDdg':function(_0x3210d0,_0x39dabc){return _0x3210d0(_0x39dabc);},'AbPqN':function(_0x1fbe22,_0x1661d2){return _0x1fbe22===_0x1661d2;},'hHeaM':_0x1322d2(0x107),'uiEIf':_0x1322d2(0xfd),'hNUvm':'server-error','yXGFi':_0x1322d2(0x138)};try{global_registry[_0x1322d2(0x11d)]=_0x5b9d8d[_0x1322d2(0xfb)](uuidv4);let _0x4a6ad2='https://'+AG_API_URL+_0x1322d2(0x10a);_0x10a340['allGridProfiles']&&(_0x4a6ad2=_0x1322d2(0x141)+AG_API_URL+_0x1322d2(0x139));!fs['existsSync'](_0x5b9d8d[_0x1322d2(0xfb)](getCredentialsPath))&&(console['error'](_0x5b9d8d[_0x1322d2(0x105)]),await _0x5b9d8d[_0x1322d2(0x134)](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x142)],_0x5b9d8d['PcWDO'],null,_0x10a340),process[_0x1322d2(0x11c)](0x1));const _0x575926=JSON['parse'](fs[_0x1322d2(0xf6)](_0x5b9d8d[_0x1322d2(0x13f)](getCredentialsPath))),_0x59a77d={'method':_0x5b9d8d['nEMLB'],'headers':_0x5b9d8d[_0x1322d2(0x13c)](getAuthHeader,_0x575926[_0x1322d2(0x12a)][_0x1322d2(0x110)],_0x575926['Browserstack']['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x575926['Browserstack']['username'],global_registry[_0x1322d2(0x100)]=_0x575926[_0x1322d2(0x12a)][_0x1322d2(0x11a)],_0x5b9d8d['DxqQg'](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x133)],null,null,_0x10a340);const _0x30f845=await _0x5b9d8d[_0x1322d2(0x124)](got,_0x4a6ad2,_0x59a77d);if(_0x5b9d8d[_0x1322d2(0x103)](_0x30f845,null)&&_0x5b9d8d['XtrYB'](_0x30f845,undefined)&&_0x5b9d8d[_0x1322d2(0x121)](_0x30f845[_0x1322d2(0x127)],0xc8)){const _0xa5decc=JSON[_0x1322d2(0x12c)](_0x30f845['body']);console['log'](_0x5b9d8d[_0x1322d2(0x12e)]);const _0x5db8f2=[];_0x5db8f2['push']([_0x5b9d8d[_0x1322d2(0x111)],_0x5b9d8d[_0x1322d2(0xf8)],_0x5b9d8d['hVyBn'],_0x5b9d8d[_0x1322d2(0x11e)]]),_0xa5decc['forEach'](_0x215b43=>{const _0x536d43=_0x1322d2;_0x5db8f2[_0x536d43(0xf5)]([_0x215b43[_0x536d43(0x10b)],_0x215b43[_0x536d43(0x13a)],_0x215b43[_0x536d43(0x125)],_0x215b43[_0x536d43(0x102)]]);}),console['log'](_0x5b9d8d[_0x1322d2(0xff)](table,_0x5db8f2)),process['exit'](0x0);}_0x5b9d8d[_0x1322d2(0x129)](_0x30f845['statusCode'],0x191)&&(console[_0x1322d2(0x140)](_0x5b9d8d[_0x1322d2(0x132)]),await _0x5b9d8d[_0x1322d2(0x134)](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x142)],_0x5b9d8d[_0x1322d2(0xfa)],null,_0x10a340),process[_0x1322d2(0x11c)](0x1)),console[_0x1322d2(0x140)](_0x1322d2(0x145)+JSON[_0x1322d2(0xf7)](_0x30f845)),await _0x5b9d8d['DxqQg'](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x142)],_0x5b9d8d[_0x1322d2(0x106)],_0x30f845,_0x10a340),process[_0x1322d2(0x11c)](0x1);}catch(_0x5a0d38){console[_0x1322d2(0x140)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5a0d38[_0x1322d2(0x126)]),await _0x5b9d8d[_0x1322d2(0x134)](sendInstrumentationEvent,_0x10a340,_0x5b9d8d[_0x1322d2(0x11f)],messageTypes['ERROR'],_0x5b9d8d[_0x1322d2(0x113)],_0x5a0d38,_0x10a340),process['exit'](0x1);}};function a14_0x5325(){const _0x35b150=['Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','help','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','push','readFileSync','stringify','MCaEj','table','uiEIf','cPyQd','WPOou','unauthorised','all-grid-profiles','qoDdg','bstackAccesskey','3976CpoVLP','concurrency','VqDQn','cloud-provider','ECkbz','hNUvm','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid-profile-name','506aMqlnh','/packages/cli/get-grid-profiles','name','desc','usage','165193lLFakp','258556ERVuip','username','mDemE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yXGFi','grid-profiles','list-grid-profiles-called','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','2583wWDxcY','2688205KhSPCB','../../utils/instrumentationUtils','password','27LQnljq','exit','requestId','sHKqD','gXtnS','gridProfile','cleYd','../../utils/utilityMethods','15lGqaXS','zTawm','region','stack','statusCode','command','AbPqN','Browserstack','options','parse','../../config/constants','LuIax','description','ygrrE','24YOIgnE','hHeaM','INFO','whxuM','711030LpJRST','84740kSyPQz','boolean','unknown-error','/packages/cli/get-all-grid-profiles','cloudProvider','54svSLtF','eaIQb','type','11726pPZxLm','zstgY','error','https://','ERROR'];a14_0x5325=function(){return _0x35b150;};return a14_0x5325();}
@@ -1 +1 @@
1
- const a15_0x489eea=a15_0x36b3;(function(_0x3702a1,_0x25d51d){const _0x315cb1=a15_0x36b3,_0xc7de9d=_0x3702a1();while(!![]){try{const _0x45e102=parseInt(_0x315cb1(0x1e8))/0x1+parseInt(_0x315cb1(0x1a9))/0x2+-parseInt(_0x315cb1(0x1b1))/0x3*(parseInt(_0x315cb1(0x1e4))/0x4)+parseInt(_0x315cb1(0x1be))/0x5+-parseInt(_0x315cb1(0x1b5))/0x6*(-parseInt(_0x315cb1(0x1a0))/0x7)+parseInt(_0x315cb1(0x1c9))/0x8*(-parseInt(_0x315cb1(0x1e3))/0x9)+parseInt(_0x315cb1(0x1d5))/0xa;if(_0x45e102===_0x25d51d)break;else _0xc7de9d['push'](_0xc7de9d['shift']());}catch(_0x8316be){_0xc7de9d['push'](_0xc7de9d['shift']());}}}(a15_0x3393,0x5fb69));function a15_0x36b3(_0x3463b0,_0x3076f4){const _0x33933c=a15_0x3393();return a15_0x36b3=function(_0x36b3a1,_0x4a0ec5){_0x36b3a1=_0x36b3a1-0x198;let _0x22273e=_0x33933c[_0x36b3a1];return _0x22273e;},a15_0x36b3(_0x3463b0,_0x3076f4);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x489eea(0x1b8)),{v4:uuidv4}=require(a15_0x489eea(0x1d1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x489eea(0x1c4)),{getCredentialsPath,getAuthHeader}=require(a15_0x489eea(0x1aa)),{sendInstrumentationEvent}=require(a15_0x489eea(0x1dd));exports['command']='grids',exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x489eea(0x19a)]=function(_0x3d0fef){const _0x34e5af=a15_0x489eea,_0x1ab18d={};_0x1ab18d['becUH']=_0x34e5af(0x1e0),_0x1ab18d[_0x34e5af(0x1e7)]=_0x34e5af(0x1d4),_0x1ab18d[_0x34e5af(0x1ba)]=_0x34e5af(0x1a2);const _0x3ef176=_0x1ab18d,_0x2b6cf3={};_0x2b6cf3['description']=_0x3ef176[_0x34e5af(0x1c8)],_0x2b6cf3[_0x34e5af(0x1d3)]=_0x3ef176[_0x34e5af(0x1e7)];const _0x367862={};return _0x367862['all-grids']=_0x2b6cf3,_0x3d0fef[_0x34e5af(0x1c6)](HELP_HEADER_MESSAGE[_0x34e5af(0x1bf)][_0x34e5af(0x1d2)])[_0x34e5af(0x1d6)](HELP_FOOTER_MESSAGE)[_0x34e5af(0x1a6)](_0x367862)['help'](_0x3ef176[_0x34e5af(0x1ba)])['argv'];},exports[a15_0x489eea(0x19b)]=async function(_0x4f9b6c){const _0x797c8b=a15_0x489eea,_0x1c23d5={'yINIx':function(_0x41813a){return _0x41813a();},'wXyGP':function(_0x46ca17){return _0x46ca17();},'fAbSs':_0x797c8b(0x1a4),'cCjSf':function(_0x5a3eb2,_0x8030ef,_0xa18ff8,_0x281fe9,_0x269150,_0x857f17,_0x53ec94){return _0x5a3eb2(_0x8030ef,_0xa18ff8,_0x281fe9,_0x269150,_0x857f17,_0x53ec94);},'AwIRF':_0x797c8b(0x19f),'uSwfB':_0x797c8b(0x1da),'BSjQf':function(_0x289b9b){return _0x289b9b();},'DtJIy':_0x797c8b(0x1cb),'myjOs':function(_0x9ab607,_0x370b31,_0x1a26a5){return _0x9ab607(_0x370b31,_0x1a26a5);},'gTntf':function(_0x425b1d,_0x22cd60,_0x523b4c){return _0x425b1d(_0x22cd60,_0x523b4c);},'fmdIT':function(_0x33d86f,_0x214e0b){return _0x33d86f!==_0x214e0b;},'jpFpe':function(_0x300856,_0x15c93b){return _0x300856!==_0x15c93b;},'YGrjM':function(_0x553acd,_0xddfd19){return _0x553acd===_0xddfd19;},'IudaO':_0x797c8b(0x1e5),'fwaOg':_0x797c8b(0x1b9),'IrGnj':_0x797c8b(0x1b6),'KxYPg':_0x797c8b(0x1c5),'QkzzG':_0x797c8b(0x1b3),'yHsQu':_0x797c8b(0x1d7),'yfGmx':_0x797c8b(0x1cc),'KgtHM':function(_0x43ccf5,_0x1e984e){return _0x43ccf5(_0x1e984e);},'bpPOw':_0x797c8b(0x1d9),'XCpTs':_0x797c8b(0x1dc),'hZXfC':_0x797c8b(0x1c3)};try{global_registry[_0x797c8b(0x1e1)]=_0x1c23d5[_0x797c8b(0x1db)](uuidv4);!fs['existsSync'](_0x1c23d5['wXyGP'](getCredentialsPath))&&(console[_0x797c8b(0x1ce)](_0x1c23d5[_0x797c8b(0x1b2)]),await _0x1c23d5[_0x797c8b(0x1b7)](sendInstrumentationEvent,_0x4f9b6c,_0x1c23d5['AwIRF'],messageTypes[_0x797c8b(0x1ea)],_0x1c23d5[_0x797c8b(0x1b4)],null,_0x4f9b6c),process[_0x797c8b(0x1e2)](0x1));const _0x2f5f78=JSON[_0x797c8b(0x1a8)](fs[_0x797c8b(0x1d8)](_0x1c23d5[_0x797c8b(0x19d)](getCredentialsPath)));let _0x159fbc='https://'+AG_API_URL+'/packages/cli/get-grids';_0x4f9b6c['allGrids']&&(_0x159fbc=_0x797c8b(0x1c1)+AG_API_URL+_0x797c8b(0x1df));const _0x3ce58e={'method':_0x1c23d5[_0x797c8b(0x1ac)],'headers':_0x1c23d5[_0x797c8b(0x1bc)](getAuthHeader,_0x2f5f78[_0x797c8b(0x19c)][_0x797c8b(0x1e6)],_0x2f5f78['Browserstack'][_0x797c8b(0x198)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x2f5f78['Browserstack'][_0x797c8b(0x1e6)],global_registry['bstackAccesskey']=_0x2f5f78['Browserstack'][_0x797c8b(0x198)],_0x1c23d5['cCjSf'](sendInstrumentationEvent,_0x4f9b6c,_0x1c23d5[_0x797c8b(0x1bb)],messageTypes[_0x797c8b(0x1c0)],null,null,_0x4f9b6c);const _0x52f26a=await _0x1c23d5[_0x797c8b(0x1ad)](got,_0x159fbc,_0x3ce58e);if(_0x1c23d5['fmdIT'](_0x52f26a,null)&&_0x1c23d5[_0x797c8b(0x199)](_0x52f26a,undefined)&&_0x1c23d5[_0x797c8b(0x1de)](_0x52f26a[_0x797c8b(0x1b0)],0xc8)){const _0x35f6e5=JSON['parse'](_0x52f26a[_0x797c8b(0x1d0)]);console['log'](_0x1c23d5[_0x797c8b(0x1a1)]);const _0xaedd80=[];_0xaedd80[_0x797c8b(0x1a5)]([_0x1c23d5[_0x797c8b(0x1c2)],_0x1c23d5[_0x797c8b(0x1cf)],_0x1c23d5[_0x797c8b(0x1c7)],_0x1c23d5[_0x797c8b(0x1af)],_0x1c23d5[_0x797c8b(0x1ca)],_0x1c23d5['yfGmx']]),_0x35f6e5[_0x797c8b(0x19e)](_0x3c13c9=>{const _0x4fe772=_0x797c8b;_0xaedd80[_0x4fe772(0x1a5)]([_0x3c13c9['id'],_0x3c13c9['name'],_0x3c13c9[_0x4fe772(0x1c5)],_0x3c13c9[_0x4fe772(0x1b3)],_0x3c13c9[_0x4fe772(0x1d7)],_0x3c13c9[_0x4fe772(0x1ae)]]);}),console['log'](_0x1c23d5['KgtHM'](table,_0xaedd80)),process[_0x797c8b(0x1e2)](0x0);}_0x1c23d5['YGrjM'](_0x52f26a[_0x797c8b(0x1b0)],0x191)&&(console[_0x797c8b(0x1ce)](_0x797c8b(0x1e9)),await _0x1c23d5[_0x797c8b(0x1b7)](sendInstrumentationEvent,_0x4f9b6c,_0x1c23d5['AwIRF'],messageTypes[_0x797c8b(0x1ea)],_0x1c23d5['bpPOw'],null,_0x4f9b6c),process[_0x797c8b(0x1e2)](0x1)),console[_0x797c8b(0x1ce)](_0x797c8b(0x1cd)+JSON[_0x797c8b(0x1a3)](_0x52f26a)),await _0x1c23d5['cCjSf'](sendInstrumentationEvent,_0x4f9b6c,_0x1c23d5[_0x797c8b(0x1bb)],messageTypes['ERROR'],_0x1c23d5['XCpTs'],_0x52f26a,_0x4f9b6c),process['exit'](0x1);}catch(_0x5602aa){console[_0x797c8b(0x1ce)](_0x797c8b(0x1bd)+_0x5602aa[_0x797c8b(0x1ab)]),await _0x1c23d5[_0x797c8b(0x1b7)](sendInstrumentationEvent,_0x4f9b6c,_0x1c23d5['AwIRF'],messageTypes[_0x797c8b(0x1ea)],_0x1c23d5[_0x797c8b(0x1a7)],_0x5602aa,_0x4f9b6c),process[_0x797c8b(0x1e2)](0x1);}};function a15_0x3393(){const _0x1985ba=['password','jpFpe','builder','handler','Browserstack','BSjQf','forEach','list-grids-called','7ddteEc','IudaO','help','stringify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','push','options','hZXfC','parse','243008kiQEaT','../../utils/utilityMethods','stack','DtJIy','gTntf','clusterName','QkzzG','statusCode','3Qckqhw','fAbSs','running','uSwfB','449334NgyRVN','grid-name','cCjSf','table','grid-id','qIFqn','AwIRF','myjOs','Failed\x20to\x20list\x20resources!\x20Error:\x20','644395YlrjBf','list','INFO','https://','fwaOg','unknown-error','../../config/constants','status','usage','KxYPg','becUH','232spQEYk','yHsQu','GET','cluster-name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','IrGnj','body','uuid','grid','type','boolean','2171140AUVdWH','epilogue','queued','readFileSync','unauthorised','init-not-called','yINIx','server-error','../../utils/instrumentationUtils','YGrjM','/packages/cli/get-all-grids','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','requestId','exit','99513BZDmSF','1348812OaTNUh','\x0aFound\x20the\x20following\x20grids:\x0a','username','pOuLb','507511rvUqBT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR'];a15_0x3393=function(){return _0x1985ba;};return a15_0x3393();}
1
+ const a15_0x259434=a15_0x5898;function a15_0x5898(_0x2287d6,_0x376b95){const _0x39cd24=a15_0x39cd();return a15_0x5898=function(_0x58982b,_0x5ac0c0){_0x58982b=_0x58982b-0x159;let _0xabb3ec=_0x39cd24[_0x58982b];return _0xabb3ec;},a15_0x5898(_0x2287d6,_0x376b95);}(function(_0xa6daf5,_0x35dd3f){const _0x1c7994=a15_0x5898,_0x55f5f5=_0xa6daf5();while(!![]){try{const _0x39fce6=-parseInt(_0x1c7994(0x195))/0x1*(-parseInt(_0x1c7994(0x17c))/0x2)+parseInt(_0x1c7994(0x1a1))/0x3*(parseInt(_0x1c7994(0x174))/0x4)+-parseInt(_0x1c7994(0x198))/0x5*(parseInt(_0x1c7994(0x181))/0x6)+-parseInt(_0x1c7994(0x173))/0x7*(-parseInt(_0x1c7994(0x169))/0x8)+-parseInt(_0x1c7994(0x1a0))/0x9*(parseInt(_0x1c7994(0x1a3))/0xa)+-parseInt(_0x1c7994(0x159))/0xb+parseInt(_0x1c7994(0x183))/0xc;if(_0x39fce6===_0x35dd3f)break;else _0x55f5f5['push'](_0x55f5f5['shift']());}catch(_0x4f6cb6){_0x55f5f5['push'](_0x55f5f5['shift']());}}}(a15_0x39cd,0x788b9));const fs=require('fs'),got=require('got'),{table}=require(a15_0x259434(0x161)),{v4:uuidv4}=require(a15_0x259434(0x190)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x259434(0x180)),{sendInstrumentationEvent}=require(a15_0x259434(0x168));function a15_0x39cd(){const _0x4e587d=['QrPEA','grid-id','mMebU','cFdpk','7111DucKjL','exit','uyLFt','90FhdYLs','grids','unwyW','lRLSA','stack','eQqHB','password','stringify','9rXNhVG','111567ZlfLmo','/packages/cli/get-all-grids','4185530IvlkpV','https://','grid','9573058uorbVe','type','unauthorised','zHzya','username','ZykgC','queued','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','table','YoXVf','Failed\x20to\x20list\x20resources!\x20Error:\x20','bWAOP','existsSync','Ednqo','argv','../../utils/instrumentationUtils','920zukNmC','name','Lvagc','Qfpdb','bstackAccesskey','help','eGRpq','list','xXHWC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4109vCiYFj','8nUzfIx','GET','log','push','cluster-name','parse','DGlCu','forEach','160xzppFX','DYpaK','all-grids','zDWhI','../../utils/utilityMethods','205098AomEny','error','20245380uxfnLY','ERROR','Browserstack','fuZfn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cnXTD','running','\x0aFound\x20the\x20following\x20grids:\x0a','desc','ijzTv','options','handler','unknown-error','uuid'];a15_0x39cd=function(){return _0x4e587d;};return a15_0x39cd();}exports['command']=a15_0x259434(0x199),exports[a15_0x259434(0x18b)]=a15_0x259434(0x160),exports['builder']=function(_0x1a7bf6){const _0x3f76e0=a15_0x259434,_0x412da9={};_0x412da9[_0x3f76e0(0x186)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x412da9['DYpaK']='boolean',_0x412da9[_0x3f76e0(0x17a)]=_0x3f76e0(0x16e);const _0x2583d5=_0x412da9,_0xdcab19={};_0xdcab19['description']=_0x2583d5[_0x3f76e0(0x186)],_0xdcab19[_0x3f76e0(0x15a)]=_0x2583d5[_0x3f76e0(0x17d)];const _0x3067d6={};return _0x3067d6[_0x3f76e0(0x17e)]=_0xdcab19,_0x1a7bf6['usage'](HELP_HEADER_MESSAGE[_0x3f76e0(0x170)][_0x3f76e0(0x1a5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f76e0(0x18d)](_0x3067d6)[_0x3f76e0(0x16e)](_0x2583d5[_0x3f76e0(0x17a)])[_0x3f76e0(0x167)];},exports[a15_0x259434(0x18e)]=async function(_0x2143e7){const _0x42aaec=a15_0x259434,_0x14fe71={'cnXTD':function(_0x4b43c6){return _0x4b43c6();},'jipDY':_0x42aaec(0x172),'Ednqo':function(_0x4a7327,_0x5e7cc5,_0x201bc0,_0x5cd325,_0x269cab,_0x3af7b3,_0x3cbb6b){return _0x4a7327(_0x5e7cc5,_0x201bc0,_0x5cd325,_0x269cab,_0x3af7b3,_0x3cbb6b);},'Lvagc':'list-grids-called','SOQZz':'init-not-called','lRLSA':function(_0x366419){return _0x366419();},'Izoat':_0x42aaec(0x175),'ZykgC':function(_0x3b87c7,_0x44d090,_0x359122){return _0x3b87c7(_0x44d090,_0x359122);},'zHzya':function(_0x398cb5,_0x4d86b7,_0x60a939,_0x2762b2,_0x13c552,_0x55c3cd,_0x36e453){return _0x398cb5(_0x4d86b7,_0x60a939,_0x2762b2,_0x13c552,_0x55c3cd,_0x36e453);},'unwyW':function(_0x93bee1,_0x595c08){return _0x93bee1!==_0x595c08;},'bWAOP':function(_0x403667,_0xa4f398){return _0x403667===_0xa4f398;},'zDWhI':_0x42aaec(0x18a),'YoXVf':_0x42aaec(0x192),'ijzTv':'grid-name','Qfpdb':'status','uyLFt':_0x42aaec(0x189),'CPZpV':_0x42aaec(0x15f),'eGRpq':_0x42aaec(0x178),'SuMMs':function(_0x4ed27c,_0x3b8a31){return _0x4ed27c(_0x3b8a31);},'QrPEA':_0x42aaec(0x187),'eQqHB':function(_0xde7501,_0x5e985e,_0x55baf2,_0x381cde,_0x333245,_0x2f302b,_0x43ec42){return _0xde7501(_0x5e985e,_0x55baf2,_0x381cde,_0x333245,_0x2f302b,_0x43ec42);},'mMebU':_0x42aaec(0x15b),'MhbEm':function(_0x23c22b,_0x44c218,_0x1ee725,_0x2d9f50,_0x1f06ef,_0x4dae14,_0x4fc0c7){return _0x23c22b(_0x44c218,_0x1ee725,_0x2d9f50,_0x1f06ef,_0x4dae14,_0x4fc0c7);},'cFdpk':'server-error','EmCgC':function(_0x44998d,_0x1ed6bd,_0x2cd00a,_0x56b3cb,_0x3479d6,_0x19fda0,_0x3a02ae){return _0x44998d(_0x1ed6bd,_0x2cd00a,_0x56b3cb,_0x3479d6,_0x19fda0,_0x3a02ae);},'xXHWC':_0x42aaec(0x18f)};try{global_registry['requestId']=_0x14fe71[_0x42aaec(0x188)](uuidv4);!fs[_0x42aaec(0x165)](_0x14fe71[_0x42aaec(0x188)](getCredentialsPath))&&(console[_0x42aaec(0x182)](_0x14fe71['jipDY']),await _0x14fe71[_0x42aaec(0x166)](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71['SOQZz'],null,_0x2143e7),process[_0x42aaec(0x196)](0x1));const _0x2affa2=JSON[_0x42aaec(0x179)](fs['readFileSync'](_0x14fe71[_0x42aaec(0x19b)](getCredentialsPath)));let _0x17dee6=_0x42aaec(0x1a4)+AG_API_URL+'/packages/cli/get-grids';_0x2143e7['allGrids']&&(_0x17dee6=_0x42aaec(0x1a4)+AG_API_URL+_0x42aaec(0x1a2));const _0x4e8efb={'method':_0x14fe71['Izoat'],'headers':_0x14fe71[_0x42aaec(0x15e)](getAuthHeader,_0x2affa2[_0x42aaec(0x185)][_0x42aaec(0x15d)],_0x2affa2[_0x42aaec(0x185)][_0x42aaec(0x19e)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x2affa2[_0x42aaec(0x185)]['username'],global_registry[_0x42aaec(0x16d)]=_0x2affa2[_0x42aaec(0x185)]['password'],_0x14fe71[_0x42aaec(0x15c)](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes['INFO'],null,null,_0x2143e7);const _0x2d5600=await _0x14fe71[_0x42aaec(0x15e)](got,_0x17dee6,_0x4e8efb);if(_0x14fe71[_0x42aaec(0x19a)](_0x2d5600,null)&&_0x14fe71[_0x42aaec(0x19a)](_0x2d5600,undefined)&&_0x14fe71[_0x42aaec(0x164)](_0x2d5600['statusCode'],0xc8)){const _0x4cc8e5=JSON['parse'](_0x2d5600['body']);console['log'](_0x14fe71[_0x42aaec(0x17f)]);const _0xd361ba=[];_0xd361ba[_0x42aaec(0x177)]([_0x14fe71[_0x42aaec(0x162)],_0x14fe71[_0x42aaec(0x18c)],_0x14fe71[_0x42aaec(0x16c)],_0x14fe71[_0x42aaec(0x197)],_0x14fe71['CPZpV'],_0x14fe71[_0x42aaec(0x16f)]]),_0x4cc8e5[_0x42aaec(0x17b)](_0x472dd9=>{const _0x275c81=_0x42aaec;_0xd361ba['push']([_0x472dd9['id'],_0x472dd9[_0x275c81(0x16a)],_0x472dd9['status'],_0x472dd9[_0x275c81(0x189)],_0x472dd9['queued'],_0x472dd9['clusterName']]);}),console[_0x42aaec(0x176)](_0x14fe71['SuMMs'](table,_0xd361ba)),process['exit'](0x0);}_0x14fe71['bWAOP'](_0x2d5600['statusCode'],0x191)&&(console[_0x42aaec(0x182)](_0x14fe71[_0x42aaec(0x191)]),await _0x14fe71[_0x42aaec(0x19d)](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71[_0x42aaec(0x193)],null,_0x2143e7),process['exit'](0x1)),console[_0x42aaec(0x182)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x42aaec(0x19f)](_0x2d5600)),await _0x14fe71['MhbEm'](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71[_0x42aaec(0x194)],_0x2d5600,_0x2143e7),process['exit'](0x1);}catch(_0x7e00b3){console[_0x42aaec(0x182)](_0x42aaec(0x163)+_0x7e00b3[_0x42aaec(0x19c)]),await _0x14fe71['EmCgC'](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71[_0x42aaec(0x171)],_0x7e00b3,_0x2143e7),process[_0x42aaec(0x196)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x2da67b=a16_0x96c3;function a16_0x96c3(_0x1f1b50,_0x59a379){const _0x55e4e1=a16_0x55e4();return a16_0x96c3=function(_0x96c383,_0xa5bbe7){_0x96c383=_0x96c383-0x1c0;let _0x15501f=_0x55e4e1[_0x96c383];return _0x15501f;},a16_0x96c3(_0x1f1b50,_0x59a379);}function a16_0x55e4(){const _0x2073ab=['usage','builder','1020bdsgnd','start','command','4011MQelxe','4216520vmSmrZ','54OwvRcM','jGCVz','FOCQk','epilogue','recommendCommands','291046cykDRg','start_commands','1367920cCweGN','10892525NPfSMj','../config/constants','6YPPSZi','1016336ILoYRM','handler','Start\x20an\x20existing\x20Automation\x20grid.','400307argclA'];a16_0x55e4=function(){return _0x2073ab;};return a16_0x55e4();}(function(_0x1217dc,_0x31828d){const _0x549924=a16_0x96c3,_0x132dba=_0x1217dc();while(!![]){try{const _0x5644f1=parseInt(_0x549924(0x1c9))/0x1+-parseInt(_0x549924(0x1c0))/0x2+-parseInt(_0x549924(0x1cf))/0x3*(-parseInt(_0x549924(0x1cc))/0x4)+parseInt(_0x549924(0x1d0))/0x5+parseInt(_0x549924(0x1c5))/0x6*(-parseInt(_0x549924(0x1c3))/0x7)+parseInt(_0x549924(0x1c6))/0x8+parseInt(_0x549924(0x1d1))/0x9*(parseInt(_0x549924(0x1c2))/0xa);if(_0x5644f1===_0x31828d)break;else _0x132dba['push'](_0x132dba['shift']());}catch(_0x17ff11){_0x132dba['push'](_0x132dba['shift']());}}}(a16_0x55e4,0xcad16));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2da67b(0x1c4));exports[a16_0x2da67b(0x1ce)]=a16_0x2da67b(0x1cd),exports['desc']=a16_0x2da67b(0x1c8),exports[a16_0x2da67b(0x1cb)]=function(_0x35567d){const _0x864768=a16_0x2da67b,_0x1256a0={};_0x1256a0[_0x864768(0x1d3)]=_0x864768(0x1c1),_0x1256a0[_0x864768(0x1d2)]='help';const _0x1f7151=_0x1256a0;return _0x35567d[_0x864768(0x1ca)](HELP_HEADER_MESSAGE[_0x864768(0x1cd)])[_0x864768(0x1d4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1f7151['FOCQk'])['demandCommand']()[_0x864768(0x1d5)]()['strict']()['help'](_0x1f7151['jGCVz']);},exports[a16_0x2da67b(0x1c7)]=function(_0x121076){};
1
+ const a16_0x10f6c7=a16_0x28f4;(function(_0x40af83,_0x40aba4){const _0x1acc6d=a16_0x28f4,_0x1a9349=_0x40af83();while(!![]){try{const _0x946eee=parseInt(_0x1acc6d(0xc6))/0x1*(parseInt(_0x1acc6d(0xca))/0x2)+-parseInt(_0x1acc6d(0xd1))/0x3+parseInt(_0x1acc6d(0xc4))/0x4+-parseInt(_0x1acc6d(0xc5))/0x5+parseInt(_0x1acc6d(0xd0))/0x6*(parseInt(_0x1acc6d(0xce))/0x7)+parseInt(_0x1acc6d(0xcc))/0x8+parseInt(_0x1acc6d(0xd3))/0x9;if(_0x946eee===_0x40aba4)break;else _0x1a9349['push'](_0x1a9349['shift']());}catch(_0x2d308a){_0x1a9349['push'](_0x1a9349['shift']());}}}(a16_0x5935,0xdaa6b));function a16_0x28f4(_0x372781,_0x1014f2){const _0x59352b=a16_0x5935();return a16_0x28f4=function(_0x28f46a,_0x3398a2){_0x28f46a=_0x28f46a-0xc0;let _0x1c71bf=_0x59352b[_0x28f46a];return _0x1c71bf;},a16_0x28f4(_0x372781,_0x1014f2);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x10f6c7(0xd2));exports[a16_0x10f6c7(0xc2)]='start',exports['desc']=a16_0x10f6c7(0xc9),exports[a16_0x10f6c7(0xcd)]=function(_0x29e425){const _0x3fcacb=a16_0x10f6c7,_0x5e2cf5={};_0x5e2cf5['oooag']='start_commands',_0x5e2cf5[_0x3fcacb(0xc1)]=_0x3fcacb(0xcb);const _0x350294=_0x5e2cf5;return _0x29e425[_0x3fcacb(0xc0)](HELP_HEADER_MESSAGE['start'])[_0x3fcacb(0xc7)](HELP_FOOTER_MESSAGE)[_0x3fcacb(0xd4)](_0x350294[_0x3fcacb(0xcf)])['demandCommand']()[_0x3fcacb(0xc3)]()[_0x3fcacb(0xc8)]()['help'](_0x350294[_0x3fcacb(0xc1)]);},exports['handler']=function(_0x4811f3){};function a16_0x5935(){const _0x3c1536=['94IKmAbh','help','1813384FaDcdD','builder','33355AqJGWz','oooag','1344clEBfy','1448313laPgwR','../config/constants','4580118rIlQvo','commandDir','usage','LNxdZ','command','recommendCommands','924808CyYtaN','6170530yeFkfp','12305nfLyqs','epilogue','strict','Start\x20an\x20existing\x20Automation\x20grid.'];a16_0x5935=function(){return _0x3c1536;};return a16_0x5935();}