browserstack-node-sdk 1.29.3 → 1.30.1

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 (105) 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/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customImplements/customCircus.js +1 -0
  43. package/src/bin/jest/customImplements/customEnvironment.js +1 -0
  44. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -0
  45. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -0
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test-observability/data-hooks.js +1 -0
  48. package/src/bin/jest/test-observability/helper.js +1 -0
  49. package/src/bin/jest/test-observability/obsReporter.js +1 -0
  50. package/src/bin/jest/test-observability/test-details.js +1 -0
  51. package/src/bin/jest/test_before.setup.js +1 -1
  52. package/src/bin/launcher/launcher.js +1 -1
  53. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  54. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/mocha/command.js +1 -1
  56. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  57. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  58. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  59. package/src/bin/mocha/test.setup.js +1 -1
  60. package/src/bin/nightwatch/command.js +1 -1
  61. package/src/bin/playwright/accessibility-helper.js +1 -1
  62. package/src/bin/playwright/command.js +1 -1
  63. package/src/bin/playwright/globalSetup.js +1 -1
  64. package/src/bin/playwright/mock-process.js +1 -1
  65. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  66. package/src/bin/playwright/reporter/reporter.js +1 -1
  67. package/src/bin/playwright/reporter/test-details.js +1 -1
  68. package/src/bin/runner.js +1 -1
  69. package/src/bin/setup.js +1 -1
  70. package/src/bin/test-runner/index.js +1 -1
  71. package/src/bin/test-runner/runTest.js +1 -1
  72. package/src/bin/test-runner/testWorker.js +1 -1
  73. package/src/bin/utils/constants.js +1 -1
  74. package/src/bin/utils/log4jsAppender.js +1 -1
  75. package/src/bin/utils/logPatcher.js +1 -1
  76. package/src/bin/utils/logReportingAPI.js +1 -1
  77. package/src/bin/vanilla-js/command.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/request-spy.js +1 -1
  94. package/src/helpers/setKeepAlive.js +1 -1
  95. package/src/helpers/test-observability/constants.js +1 -1
  96. package/src/helpers/test-observability/error-handler.js +1 -1
  97. package/src/helpers/test-observability/performance-tester.js +1 -1
  98. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  99. package/src/helpers/test-observability/sessionHandler.js +1 -1
  100. package/src/helpers/test-observability/utils.js +1 -1
  101. package/src/helpers/w3cMapping.js +1 -1
  102. package/src/hubAllocationMethods.js +1 -1
  103. package/src/index.js +1 -1
  104. package/src/bin/jest/customEnvironment.js +0 -1
  105. package/src/bin/jest/customTestRunnerTemplate.js +0 -1
@@ -1 +1 @@
1
- const a9_0x520447=a9_0x8035;function a9_0x8035(_0x335f64,_0x41e2bf){const _0x5577ab=a9_0x5577();return a9_0x8035=function(_0x8035a2,_0x2f80a2){_0x8035a2=_0x8035a2-0xb9;let _0x3edcaa=_0x5577ab[_0x8035a2];return _0x3edcaa;},a9_0x8035(_0x335f64,_0x41e2bf);}(function(_0x13eb6f,_0x20491e){const _0x1ef9e1=a9_0x8035,_0x2cc107=_0x13eb6f();while(!![]){try{const _0x19dfff=-parseInt(_0x1ef9e1(0xb9))/0x1*(parseInt(_0x1ef9e1(0xcf))/0x2)+-parseInt(_0x1ef9e1(0xc1))/0x3+parseInt(_0x1ef9e1(0xc0))/0x4*(parseInt(_0x1ef9e1(0xc5))/0x5)+-parseInt(_0x1ef9e1(0xc7))/0x6+parseInt(_0x1ef9e1(0xcb))/0x7*(-parseInt(_0x1ef9e1(0xca))/0x8)+parseInt(_0x1ef9e1(0xbd))/0x9*(parseInt(_0x1ef9e1(0xbb))/0xa)+parseInt(_0x1ef9e1(0xc9))/0xb;if(_0x19dfff===_0x20491e)break;else _0x2cc107['push'](_0x2cc107['shift']());}catch(_0x2a5edf){_0x2cc107['push'](_0x2cc107['shift']());}}}(a9_0x5577,0xf1902));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a9_0x5577(){const _0x50e745=['4318404tNNziR','recommendCommands','commandDir','help','5OCVrQE','usage','10657326BnsMlJ','demandCommand','23735525vUkqPh','2907648ciOKXI','7GbtbMq','desc','create_commands','builder','2ZCvLXp','451983WKflCh','handler','18617360GFWDWE','qHPjp','9bOoCZE','create','Create\x20a\x20new\x20Automation\x20grid.','4004236oLOpQr'];a9_0x5577=function(){return _0x50e745;};return a9_0x5577();}exports['command']='create',exports[a9_0x520447(0xcc)]=a9_0x520447(0xbf),exports[a9_0x520447(0xce)]=function(_0x46ca25){const _0xf8a1cb=a9_0x520447,_0x3270c0={};_0x3270c0[_0xf8a1cb(0xbc)]=_0xf8a1cb(0xcd),_0x3270c0['oiqpS']=_0xf8a1cb(0xc4);const _0x3b2d9f=_0x3270c0;return _0x46ca25[_0xf8a1cb(0xc6)](HELP_HEADER_MESSAGE[_0xf8a1cb(0xbe)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xf8a1cb(0xc3)](_0x3b2d9f['qHPjp'])[_0xf8a1cb(0xc8)]()[_0xf8a1cb(0xc2)]()['strict']()[_0xf8a1cb(0xc4)](_0x3b2d9f['oiqpS']);},exports[a9_0x520447(0xba)]=function(_0x411eab){};
1
+ function a9_0x5c02(_0xe48e62,_0x158918){const _0x50fa0b=a9_0x50fa();return a9_0x5c02=function(_0x5c02d5,_0x1fd53b){_0x5c02d5=_0x5c02d5-0xbb;let _0x518a70=_0x50fa0b[_0x5c02d5];return _0x518a70;},a9_0x5c02(_0xe48e62,_0x158918);}const a9_0x5c660c=a9_0x5c02;function a9_0x50fa(){const _0x4b6514=['strict','590JnYUzu','RARCM','demandCommand','11631744muSWvc','help','desc','4623315uriLxW','767202zGXhYP','../config/constants','command','4bqIpDy','handler','36vvOqWv','create_commands','315YHqSJP','recommendCommands','3836vhSWzh','10130856MLPwim','epilogue','builder','create','144123CAjBtA','171886qTRtpU'];a9_0x50fa=function(){return _0x4b6514;};return a9_0x50fa();}(function(_0x1e5696,_0x507645){const _0x40241b=a9_0x5c02,_0x5a9bb0=_0x1e5696();while(!![]){try{const _0x5a2276=parseInt(_0x40241b(0xc4))/0x1*(parseInt(_0x40241b(0xc6))/0x2)+-parseInt(_0x40241b(0xbd))/0x3*(-parseInt(_0x40241b(0xc0))/0x4)+-parseInt(_0x40241b(0xbc))/0x5+-parseInt(_0x40241b(0xc2))/0x6*(parseInt(_0x40241b(0xcb))/0x7)+-parseInt(_0x40241b(0xc7))/0x8+parseInt(_0x40241b(0xd1))/0x9+-parseInt(_0x40241b(0xce))/0xa*(-parseInt(_0x40241b(0xcc))/0xb);if(_0x5a2276===_0x507645)break;else _0x5a9bb0['push'](_0x5a9bb0['shift']());}catch(_0x535e82){_0x5a9bb0['push'](_0x5a9bb0['shift']());}}}(a9_0x50fa,0xb9794));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x5c660c(0xbe));exports[a9_0x5c660c(0xbf)]='create',exports[a9_0x5c660c(0xbb)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x5c660c(0xc9)]=function(_0x4f29b0){const _0x555950=a9_0x5c660c,_0x3895d1={};_0x3895d1[_0x555950(0xcf)]=_0x555950(0xc3),_0x3895d1['nvfMT']=_0x555950(0xd2);const _0x5885f=_0x3895d1;return _0x4f29b0['usage'](HELP_HEADER_MESSAGE[_0x555950(0xca)])[_0x555950(0xc8)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5885f[_0x555950(0xcf)])[_0x555950(0xd0)]()[_0x555950(0xc5)]()[_0x555950(0xcd)]()[_0x555950(0xd2)](_0x5885f['nvfMT']);},exports[a9_0x5c660c(0xc1)]=function(_0x280733){};
@@ -1 +1 @@
1
- const a10_0x2da769=a10_0xfdbd;(function(_0x4b7bcd,_0x7ab37c){const _0x3d408f=a10_0xfdbd,_0x5bb6d3=_0x4b7bcd();while(!![]){try{const _0x4e343e=parseInt(_0x3d408f(0x2d0))/0x1+-parseInt(_0x3d408f(0x23d))/0x2*(parseInt(_0x3d408f(0x275))/0x3)+parseInt(_0x3d408f(0x2e3))/0x4+-parseInt(_0x3d408f(0x297))/0x5+-parseInt(_0x3d408f(0x205))/0x6+parseInt(_0x3d408f(0x261))/0x7+parseInt(_0x3d408f(0x22f))/0x8;if(_0x4e343e===_0x7ab37c)break;else _0x5bb6d3['push'](_0x5bb6d3['shift']());}catch(_0x228dc8){_0x5bb6d3['push'](_0x5bb6d3['shift']());}}}(a10_0x9995,0x4ae03));function a10_0xfdbd(_0x2d730a,_0x4447e4){const _0x9995a1=a10_0x9995();return a10_0xfdbd=function(_0xfdbd0a,_0x5ad812){_0xfdbd0a=_0xfdbd0a-0x1f3;let _0x30f931=_0x9995a1[_0xfdbd0a];return _0x30f931;},a10_0xfdbd(_0x2d730a,_0x4447e4);}const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x2da769(0x270)),request=require('request'),{v4:uuidv4}=require(a10_0x2da769(0x257)),webSocketUtils=require(a10_0x2da769(0x27b)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x2da769(0x26f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x2da769(0x20a)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a10_0x2da769(0x2b0)](request);function a10_0x9995(){const _0x44d01b=['Found\x20Subnets:\x20','hBKjd','AHNpd','<UsernamePlaceholder>','setupNewCluster','wgEiE','gridName','Subnets:\x20','PTKSp','uEgbt','fanYB','replace','maxNodes','319914LKubQD','http','deleteCluster','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','options','../../config/constants','8|2|7|1|3|5|0|4|6','kjlJB','ERROR','HyYEX','ZRtKv','method','TwRDg','bstackAccesskey','ABxzY','NJaOj','tFSxw','PzExr','string','dSGej','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hlcTC','toLowerCase','Cluster\x20created\x20successfully','ntseD','s3Bucket','create','body','VvcDe','KKcoV','oFwnw','create-grid-checks-non-200','fXIEi','Spawning\x20grid\x20on\x20to\x20the\x20cluster','private-grid','readNamespacedService','UUHMk','warn','UcIne','usage','mTtew','s3BucketName','1263192OoNRsU','IiFEo','managedBy','JoZJl','TBVqm','CLI\x20run\x20started','bKPrN','bYWah','bKyFr','qYXvF','euJSU','tMBgE','odJPn','cloud-provider','2538rFiUPR','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ZqjeN','ingress-nginx-controller','UfTpz','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','get-grid-url-auth-failed','dFNJR','IzJLa','CLeaN','dPtxz','HGNZN','MYqzo','sendEventToBackend','createNamespace','wXqhZ','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','QMTCT','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.','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','privateGrid','error','stringify','get-grid-url-non-200','uuid','pknjn','RToBg','jLVbz','clusterRegion','Lmsga','cluster-name','grid-name','sLYfC','Grid\x20spawned\x20on\x20the\x20cluster','1184134FmCdvD','oivvq','Namespace\x20created','ingress-nginx','LhMCP','grid','clusterName','cmqzU','getResourceClientId','name','delay','Browserstack','hjdeD','pkhgk','../../cloudproviders/utils','reconnecting-websocket','handler','aOsUk','Found\x20VPC:\x20','desc','849CoQSUF','FrfNP','eXaiP','IbYMr','setupAutoscaler','Create\x20a\x20private/public\x20grid.','../../utils/webSocketUtils','type','command','s3bucket','oeHsk','create-grid-checks-grid-already-exists','split','CLI\x20run\x20finished:\x20','OPGSX','PixRv','qStef','help','message','includes','ooluv','region','uxRtr','UgvrD','existsSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','grid-profile','browserVersion','hCehi','gTIst','\x27\x20grid\x20profile','default','wOzOz','isPrivateGrid','967450oHNHIo','ECKEl','LOG','parse','Cluster\x20','gztST','kRIry','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mTBOC','pre-spawned-invalid-vpc','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','createOtherResources','info','/packages/cli/create-grid-checks','gridProfileId','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','isVPCPresent','configureIfNotConfigured','Grid\x20profile\x20fetched\x20from\x20backend','lkJuj','prespawned-cluster-args-not-passed','xfJib','emKto','vlbsr','gridProfiles','promisify','isSubnetsValid','auth','/wd/hub','NQPdK','private-ingress-nginx-controller','JkwVM','AqYVp','get-grid-url-null-response','instanceType','bvCFi','Pistf','non-aws-azure-cluster','securityGroups','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','gYUGH','IaRbD','CLI_RUN_FINISHED','phjdu','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','password','https://','iuhyC','true','ugmoe','EIeZM','MsVNu','hHoeA','gHPdS','<PasswordPlaceholder>','JaBLz','oAOBe','540282itVWiV','route53','RJXHZ','aWXUL','ZNWQz','gridProfile','rgqjB','unsmo','minNodes','CjFsZ','mkfDU','ABthL','rhAUU','WQtUo','argv','QuZCQ','hqetP','description','iWDRC','181136GMhJCn','oYikZ','nGzOc','pre-spawned-subnets-not-selected','FUVHl','LtAvK','CJwRR','3|0|1|4|2','cloudProvider','Kotby','subnets','isClusterPresent','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','NvQft','zkeZJ','turboscale-managed-identity-','JEPQV','yIXQh','kNFVe','CLI_RUN_STARTED','LNLcg','defaultGridProfile','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ByJrm','metadata','hubVersion','GlbsI','YtQju','ONYmv','QmRrM','epilogue','statusCode','Spawning\x20the\x20grid\x20','debug','ZAeLo','oWuom','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','aElIB','dtWMk','fetchLocalCreds','WVoXv','create-grid-called','lrbTB','vpc','mXLWg','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','alreadyPresent','\x20in\x20existing\x20cluster\x20\x27','Grid\x20can\x20be\x20accessed\x20at:\x20','XqYjX','annotations','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','username','\x20are\x20not\x20present\x20in\x20VPC:\x20','pre-spawned-invalid-subnets','GET','wMrlk','length','exit','user','iMLTX','DqOMi','CVsjo','PopMv','Adding\x20Websocket\x20listeners','rvRPu'];a10_0x9995=function(){return _0x44d01b;};return a10_0x9995();}exports[a10_0x2da769(0x27d)]=a10_0x2da769(0x266),exports[a10_0x2da769(0x274)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x34c851){const _0xdae901=a10_0x2da769,_0x50ddd2={};_0x50ddd2[_0xdae901(0x2ff)]=_0xdae901(0x2c3),_0x50ddd2['aElIB']=_0xdae901(0x217),_0x50ddd2[_0xdae901(0x2f0)]=_0xdae901(0x2f9),_0x50ddd2[_0xdae901(0x25a)]=_0xdae901(0x307),_0x50ddd2[_0xdae901(0x247)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x50ddd2[_0xdae901(0x222)]=_0xdae901(0x252),_0x50ddd2['uEgbt']=_0xdae901(0x27a),_0x50ddd2[_0xdae901(0x278)]=_0xdae901(0x286);const _0x1011da=_0x50ddd2,_0x26e573={};_0x26e573[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x2ff)],_0x26e573['type']=_0x1011da['aElIB'];const _0xeee82e={};_0xeee82e[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x2f0)],_0xeee82e[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x3b624b={};_0x3b624b[_0xdae901(0x2e1)]=_0x1011da['jLVbz'],_0x3b624b[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x5599fd={};_0x5599fd[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x247)],_0x5599fd[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x1a2fbf={};_0x1a2fbf[_0xdae901(0x2e1)]=_0x1011da['KKcoV'],_0x1a2fbf[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x2b47f2={};_0x2b47f2[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x201)],_0x2b47f2[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x16998b={};return _0x16998b['grid-name']=_0x26e573,_0x16998b[_0xdae901(0x28f)]=_0xeee82e,_0x16998b['cluster-name']=_0x3b624b,_0x16998b[_0xdae901(0x23c)]=_0x5599fd,_0x16998b[_0xdae901(0x28a)]=_0x1a2fbf,_0x16998b[_0xdae901(0x227)]=_0x2b47f2,_0x34c851[_0xdae901(0x22c)](HELP_HEADER_MESSAGE[_0xdae901(0x21f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x16998b)[_0xdae901(0x286)](_0x1011da[_0xdae901(0x278)])['argv'];},exports[a10_0x2da769(0x271)]=async function(_0x37087d){const _0x18f372=a10_0x2da769,_0x42e3c7={'JkwVM':_0x18f372(0x2a6),'aWXUL':_0x18f372(0x2c3),'fXIEi':_0x18f372(0x217),'rhAUU':_0x18f372(0x2f9),'wXqhZ':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FUVHl':_0x18f372(0x242),'lygmJ':_0x18f372(0x252),'yCHzY':'Create\x20a\x20private/public\x20grid.','JaBLz':'help','bKyFr':_0x18f372(0x206),'JEPQV':_0x18f372(0x254),'xfJib':'https','hqetP':_0x18f372(0x20b),'MYqzo':_0x18f372(0x22a),'CjFsZ':function(_0x11739b){return _0x11739b();},'ZNWQz':function(_0x1f96a6,_0x57a262){return _0x1f96a6===_0x57a262;},'ntseD':_0x18f372(0x2f1),'kjlJB':_0x18f372(0x316),'pkhgk':function(_0x2f8583,_0x17f313,_0x21d34e,_0x13b848,_0x2c7002,_0xcc9215,_0x36e172){return _0x2f8583(_0x17f313,_0x21d34e,_0x13b848,_0x2c7002,_0xcc9215,_0x36e172);},'ZAeLo':_0x18f372(0x30c),'hCehi':'init-not-called','PopMv':function(_0x2cd15a,_0xda56ce,_0x4aaed8,_0x25963c,_0x2f3efa,_0x37fcbf,_0x563db9){return _0x2cd15a(_0xda56ce,_0x4aaed8,_0x25963c,_0x2f3efa,_0x37fcbf,_0x563db9);},'rvRPu':function(_0x16eb6b){return _0x16eb6b();},'rgqjB':_0x18f372(0x1fb),'Lmsga':_0x18f372(0x2cd),'WVoXv':_0x18f372(0x1f6),'jyfSO':function(_0x1d474d,_0x2f0467){return _0x1d474d!==_0x2f0467;},'oWuom':_0x18f372(0x27f),'LhMCP':_0x18f372(0x314),'iWDRC':_0x18f372(0x309),'KSdcq':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','QMTCT':function(_0x4a4338,_0x2a38e6,_0x341638,_0x5ec90e,_0x116ca9,_0x141309,_0x2c77ad,_0x459df9){return _0x4a4338(_0x2a38e6,_0x341638,_0x5ec90e,_0x116ca9,_0x141309,_0x2c77ad,_0x459df9);},'IaRbD':_0x18f372(0x2ab),'LNLcg':function(_0x50adad,_0xddbd48){return _0x50adad===_0xddbd48;},'AHNpd':_0x18f372(0x2e8),'dSGej':_0x18f372(0x208),'gztST':_0x18f372(0x2bc),'TwRDg':function(_0x5da0ba,_0x520181){return _0x5da0ba===_0x520181;},'oFwnw':_0x18f372(0x2c7),'NJaOj':function(_0x239be7,_0x48dc2e){return _0x239be7===_0x48dc2e;},'mXLWg':_0x18f372(0x2ad),'RJXHZ':'WKHFL','ABxzY':_0x18f372(0x31b),'QhnwR':function(_0x382aed,_0x278b84){return _0x382aed(_0x278b84);},'lrbTB':function(_0x257821,_0xf6110a){return _0x257821===_0xf6110a;},'LVwrm':_0x18f372(0x268),'ZRtKv':_0x18f372(0x2bb),'iuhyC':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','qStef':function(_0xc737c8,_0x5555cf,_0x223584,_0x4fd568,_0x1a8d36,_0x592288,_0x18dade,_0x9e3cb9){return _0xc737c8(_0x5555cf,_0x223584,_0x4fd568,_0x1a8d36,_0x592288,_0x18dade,_0x9e3cb9);},'tCHhu':'create-grid-checks-null-response','CLeaN':function(_0x38add5,_0x129e51){return _0x38add5===_0x129e51;},'LmnCh':_0x18f372(0x238),'wMrlk':'aKSIf','gTIst':_0x18f372(0x2be),'euJSU':'create-grid-checks-auth-failed','bKPrN':_0x18f372(0x2b7),'ECKEl':_0x18f372(0x1f4),'IzJLa':function(_0x48bb54,_0x53c0cf,_0x4566bd,_0x2f34c5,_0xaf6315,_0x24e83d,_0x5ab5c3,_0x2b1204){return _0x48bb54(_0x53c0cf,_0x4566bd,_0x2f34c5,_0xaf6315,_0x24e83d,_0x5ab5c3,_0x2b1204);},'unsmo':_0x18f372(0x224),'hjdeD':_0x18f372(0x2a9),'EIeZM':function(_0x2403fe,_0x312606){return _0x2403fe!==_0x312606;},'iMLTX':_0x18f372(0x29d),'QmRrM':_0x18f372(0x2a1),'YPFzk':_0x18f372(0x280),'sLYfC':_0x18f372(0x202),'oAOBe':function(_0x10c7a2,_0x3c35f5){return _0x10c7a2===_0x3c35f5;},'mTtew':_0x18f372(0x277),'PixRv':'xZMWt','Kotby':function(_0x53a3bc,_0x320943){return _0x53a3bc===_0x320943;},'ZqjeN':'WmkPB','IiFEo':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','OPGSX':function(_0x2af495,_0x88744e,_0x41cb7d,_0xd11806,_0x58b6f3,_0x44dfc2,_0x453417,_0x2c83ee){return _0x2af495(_0x88744e,_0x41cb7d,_0xd11806,_0x58b6f3,_0x44dfc2,_0x453417,_0x2c83ee);},'aOsUk':'create-grid-checks-invalid-profile','bvCFi':function(_0x143c26,_0x49e284){return _0x143c26===_0x49e284;},'uxRtr':function(_0x177c05,_0x1e6e2b){return _0x177c05!==_0x1e6e2b;},'tMBgE':_0x18f372(0x21a),'UfTpz':'YsNbn','pknjn':_0x18f372(0x221),'mXZzf':'WSDty','XXnAq':function(_0x50842d,_0x45e5fb,_0x171bff,_0x2691e6,_0xb0bb82,_0x4ead81,_0x46720c,_0x26fe4d,_0xcc0944,_0x5a731a,_0x3a1c58,_0x2eab5c){return _0x50842d(_0x45e5fb,_0x171bff,_0x2691e6,_0xb0bb82,_0x4ead81,_0x46720c,_0x26fe4d,_0xcc0944,_0x5a731a,_0x3a1c58,_0x2eab5c);},'ByJrm':'6|5|7|3|0|4|1|8|2','VGVAC':function(_0x7ada25,_0x5d68d7,_0x546d52,_0x5b16fe,_0x4d8c51,_0x233e15){return _0x7ada25(_0x5d68d7,_0x546d52,_0x5b16fe,_0x4d8c51,_0x233e15);},'TBVqm':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','mkfDU':function(_0x3e5370,_0x12f519){return _0x3e5370===_0x12f519;},'oYikZ':function(_0x257b3d,_0x1c7d79,_0x5650db,_0x25d5f7){return _0x257b3d(_0x1c7d79,_0x5650db,_0x25d5f7);},'ooluv':function(_0x3aa164){return _0x3aa164();},'PTKSp':_0x18f372(0x2ef),'CUXCN':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WQtUo':_0x18f372(0x219),'phjdu':function(_0x3dcfcf,_0x1e88d0){return _0x3dcfcf!=_0x1e88d0;},'oivvq':function(_0x41d0ac,_0x1038e7){return _0x41d0ac!=_0x1038e7;},'FrfNP':function(_0x1a4c1c,_0x16261b){return _0x1a4c1c!==_0x16261b;},'ugmoe':function(_0x39c944,_0x4bd80a){return _0x39c944>_0x4bd80a;},'RToBg':function(_0x45a5b6,_0x202c77){return _0x45a5b6===_0x202c77;},'PzExr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','UUHMk':function(_0x2a1704,_0x3c6d73,_0x590d1b,_0x519c04,_0x11646b,_0x4c9e11,_0x427a13,_0x35536b){return _0x2a1704(_0x3c6d73,_0x590d1b,_0x519c04,_0x11646b,_0x4c9e11,_0x427a13,_0x35536b);},'BtrBE':_0x18f372(0x2e6),'Gjkyy':_0x18f372(0x251),'JoZJl':_0x18f372(0x2a0),'mTBOC':function(_0x27a491,_0x2d3812){return _0x27a491===_0x2d3812;},'MsVNu':function(_0x1b1192,_0x532a17,_0x7fb8c0,_0x56243b,_0x4e35b1,_0xa8d1aa,_0x16b094,_0xb8aa30){return _0x1b1192(_0x532a17,_0x7fb8c0,_0x56243b,_0x4e35b1,_0xa8d1aa,_0x16b094,_0xb8aa30);},'HGNZN':_0x18f372(0x31a),'hBKjd':_0x18f372(0x2ea),'bYWah':_0x18f372(0x24f),'vYGjS':_0x18f372(0x21c),'NQPdK':function(_0x2d7799,_0x5f3a3d){return _0x2d7799==_0x5f3a3d;},'HyYEX':function(_0x32014e,_0x1d4633){return _0x32014e(_0x1d4633);},'vlbsr':'Creating\x20namespace','lkJuj':_0x18f372(0x294),'gYUGH':'Browserstack','LRhYL':'Namespace\x20Created','DqOMi':_0x18f372(0x263),'tFSxw':_0x18f372(0x226),'UcIne':'Spawning\x20Grid\x20on\x20the\x20Cluster','YtQju':function(_0x1de0bf,_0x2eba79){return _0x1de0bf===_0x2eba79;},'yIXQh':function(_0x47f53c,_0x3d825c,_0x17cb36,_0x27f004,_0x5e84f5,_0x2fa0b1,_0x29ff54,_0x310011,_0xeaf9bc,_0x843d67,_0xd8659){return _0x47f53c(_0x3d825c,_0x17cb36,_0x27f004,_0x5e84f5,_0x2fa0b1,_0x29ff54,_0x310011,_0xeaf9bc,_0x843d67,_0xd8659);},'NZYEA':_0x18f372(0x260),'odJPn':_0x18f372(0x29e),'CJwRR':function(_0x3a8a02,_0x3d5fe3,_0x106420){return _0x3a8a02(_0x3d5fe3,_0x106420);},'QuZCQ':_0x18f372(0x2b5),'wgEiE':_0x18f372(0x240),'UgvrD':_0x18f372(0x264),'gHPdS':function(_0x73d157,_0x1430d3){return _0x73d157(_0x1430d3);},'wOzOz':function(_0x521125,_0x3a4a96){return _0x521125==_0x3a4a96;},'dFNJR':_0x18f372(0x24d),'hHoeA':_0x18f372(0x2b8),'ANlsi':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','nGzOc':_0x18f372(0x243),'kNFVe':_0x18f372(0x256),'ABthL':function(_0x455a36,_0x30a478,_0x353f65,_0x5c28ed,_0x344131,_0x21010d){return _0x455a36(_0x30a478,_0x353f65,_0x5c28ed,_0x344131,_0x21010d);},'GlbsI':'grid-spawning-failed'};let _0x4ff1a1=![],_0x421223,_0x9e13f3,_0x4a6bb7,_0x35bbe6,_0x237481,_0x4af4c5,_0x298f12,_0x376c44,_0x2363e4,_0x1ea753,_0x1bf1f9,_0x55d4cf,_0xc1126a=0x1,_0x2333db=0xe;try{global_registry['requestId']=_0x42e3c7[_0x18f372(0x2d9)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x18f372(0x28d)](_0x42e3c7[_0x18f372(0x2d9)](getCredentialsPath))&&(_0x42e3c7['ZNWQz'](_0x42e3c7[_0x18f372(0x21d)],_0x42e3c7[_0x18f372(0x21d)])?(console['error'](_0x42e3c7[_0x18f372(0x20c)]),await _0x42e3c7[_0x18f372(0x26e)](sendInstrumentationEvent,_0x37087d,_0x42e3c7['ZAeLo'],messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x291)],null,_0x37087d),process[_0x18f372(0x31e)](0x1)):(_0x5b6f79[_0x18f372(0x254)](_0x42e3c7[_0x18f372(0x2b6)]),_0x30819c['exit'](0x1)));await _0x42e3c7[_0x18f372(0x1f5)](sendInstrumentationEvent,_0x37087d,_0x42e3c7[_0x18f372(0x305)],messageTypes['INFO'],null,null,_0x37087d);const _0x326126=JSON['parse'](fs['readFileSync'](_0x42e3c7[_0x18f372(0x1f7)](getCredentialsPath)));global_registry['bstackUsername']=_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)],global_registry[_0x18f372(0x212)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)];const _0x150b53=WS_ENDPOINT[_0x18f372(0x203)](_0x42e3c7[_0x18f372(0x2d6)],_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)])['replace'](_0x42e3c7[_0x18f372(0x25c)],_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)]),_0x1090f9={};_0x1090f9['WebSocket']=ws,_0x1090f9[_0x18f372(0x317)]=0x36ee80,_0x1ea753=new ReconnectingWebSocket(_0x150b53,[],_0x1090f9),logger['debug'](_0x42e3c7[_0x18f372(0x30b)]),webSocketUtils['addListeners'](_0x1ea753,_0x37087d[_0x18f372(0x31f)],_0x37087d[_0x18f372(0x2c4)]);let _0x2ac20e=DEFAULT_GRID_NAME;if(_0x37087d[_0x18f372(0x267)]||_0x37087d[_0x18f372(0x2eb)]||_0x37087d['region']){if(_0x42e3c7['jyfSO'](_0x42e3c7[_0x18f372(0x306)],_0x42e3c7[_0x18f372(0x265)])){!(_0x37087d['clusterName']&&_0x37087d[_0x18f372(0x2eb)]&&_0x37087d['region'])&&(_0x42e3c7[_0x18f372(0x2d4)](_0x42e3c7['iWDRC'],_0x42e3c7[_0x18f372(0x2e2)])?(_0x421223=_0x42e3c7['KSdcq'],await _0x42e3c7['QMTCT'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2c0)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process['exit'](0x1)):_0x4967e2[_0x18f372(0x296)]=!![]);if(![AWS,AZURE,GCP][_0x18f372(0x288)](_0x37087d[_0x18f372(0x2eb)][_0x18f372(0x21b)]())){if(_0x42e3c7[_0x18f372(0x2f7)](_0x42e3c7[_0x18f372(0x1fa)],_0x42e3c7[_0x18f372(0x1fa)]))_0x421223=_0x42e3c7[_0x18f372(0x218)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x29c)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1);else throw _0x1b4d87;}_0x37087d['privateGrid']&&_0x42e3c7[_0x18f372(0x211)](_0x37087d[_0x18f372(0x253)][_0x18f372(0x21b)](),_0x42e3c7[_0x18f372(0x223)])&&(_0x42e3c7[_0x18f372(0x214)](_0x42e3c7['mXLWg'],_0x42e3c7[_0x18f372(0x30f)])?global_registry[_0x18f372(0x296)]=!![]:_0x3a5f1d['cloudProvider']={}),_0x4ff1a1=!![],_0x4a6bb7=_0x37087d[_0x18f372(0x267)],_0x9e13f3=_0x37087d[_0x18f372(0x2eb)][_0x18f372(0x21b)](),_0x35bbe6=_0x37087d[_0x18f372(0x28a)];}else{const _0x557e03={};_0x557e03[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x2d3)],_0x557e03[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x26d191={};_0x26d191['description']=_0x42e3c7[_0x18f372(0x2dc)],_0x26d191[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x1fd032={};_0x1fd032[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x24c)],_0x1fd032[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x323a42={};_0x323a42[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x2e7)],_0x323a42[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x17ebef={};_0x17ebef[_0x18f372(0x2e1)]=_0x42e3c7['lygmJ'],_0x17ebef[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x43e070={};_0x43e070[_0x18f372(0x2e1)]=_0x42e3c7['yCHzY'],_0x43e070[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x4ddbee={};return _0x4ddbee[_0x18f372(0x25e)]=_0x557e03,_0x4ddbee[_0x18f372(0x28f)]=_0x26d191,_0x4ddbee[_0x18f372(0x25d)]=_0x1fd032,_0x4ddbee[_0x18f372(0x23c)]=_0x323a42,_0x4ddbee[_0x18f372(0x28a)]=_0x17ebef,_0x4ddbee[_0x18f372(0x227)]=_0x43e070,_0x37fa54[_0x18f372(0x22c)](_0x25fa5c[_0x18f372(0x21f)])[_0x18f372(0x301)](_0x488080)[_0x18f372(0x209)](_0x4ddbee)[_0x18f372(0x286)](_0x42e3c7[_0x18f372(0x2ce)])[_0x18f372(0x2de)];}}_0x37087d[_0x18f372(0x1fe)]&&(_0x42e3c7['LNLcg'](_0x42e3c7['RJXHZ'],_0x42e3c7[_0x18f372(0x2d2)])?_0x2ac20e=_0x37087d['gridName']:_0x533247=_0x42e3c7[_0x18f372(0x237)]);global_registry[_0x18f372(0x1fe)]=_0x2ac20e;const _0x154665={};_0x154665[_0x18f372(0x318)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)],_0x154665[_0x18f372(0x2c4)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)];const _0x10819c={};_0x10819c[_0x18f372(0x210)]=_0x42e3c7[_0x18f372(0x213)],_0x10819c[_0x18f372(0x2b2)]=_0x154665;const _0x209fce=_0x10819c,_0x44ee0b=_0x18f372(0x2c5)+AG_API_URL+_0x18f372(0x2a4),_0x4358c2={};_0x4358c2[_0x18f372(0x1fe)]=_0x2ac20e;const _0x221d92={'url':_0x44ee0b,'qs':_0x4358c2,..._0x209fce},_0x9f5b9b=_0x221d92,_0x305db5=await _0x42e3c7['QhnwR'](promisifiedRequest,_0x9f5b9b);if(_0x42e3c7[_0x18f372(0x211)](_0x305db5,null)||_0x42e3c7[_0x18f372(0x30d)](_0x305db5,undefined)){if(_0x42e3c7['jyfSO'](_0x42e3c7['LVwrm'],_0x42e3c7[_0x18f372(0x20f)]))_0x421223=_0x42e3c7[_0x18f372(0x2c6)],await _0x42e3c7[_0x18f372(0x285)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['tCHhu'],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process['exit'](0x1);else{const _0x5c6b05={};_0x5c6b05['type']=_0x1b8853[_0x18f372(0x299)],_0x5c6b05[_0x18f372(0x287)]=_0x2e1c77,_0xc5c4a3[_0x18f372(0x24a)](_0x3cb9f8,_0x5c6b05,_0x42e3c7['JEPQV'],!![]);}}_0x42e3c7[_0x18f372(0x246)](_0x305db5[_0x18f372(0x302)],0x191)&&(_0x42e3c7['LNLcg'](_0x42e3c7['LmnCh'],_0x42e3c7[_0x18f372(0x31c)])?(_0x276194=_0x12e61e[_0x18f372(0x2d1)],_0x3969af=_0x42e3c7[_0x18f372(0x2ac)]):(_0x421223=_0x42e3c7[_0x18f372(0x292)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x239)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1)));_0x42e3c7['jyfSO'](_0x305db5[_0x18f372(0x302)],0xc8)&&(_0x42e3c7[_0x18f372(0x2d4)](_0x42e3c7[_0x18f372(0x235)],_0x42e3c7[_0x18f372(0x298)])?_0x42f62a=_0x387386[_0x18f372(0x1fe)]:(_0x421223=_0x18f372(0x28e)+JSON[_0x18f372(0x255)](_0x305db5),await _0x42e3c7[_0x18f372(0x245)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2d7)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)));const _0x4ddf14=JSON[_0x18f372(0x29a)](_0x305db5[_0x18f372(0x220)]),_0x245143={};_0x245143[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x2f6)],_0x245143['message']=_0x18f372(0x234),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x245143);const _0x5e1e56={};_0x5e1e56[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x5e1e56['message']=_0x42e3c7[_0x18f372(0x26d)],webSocketUtils['sendEventToBackend'](_0x1ea753,_0x5e1e56);_0x4ddf14[_0x18f372(0x311)]&&(_0x42e3c7[_0x18f372(0x2c9)](_0x42e3c7['iMLTX'],_0x42e3c7[_0x18f372(0x320)])?_0x4fdf57['info']('Found\x20VPC:\x20'+_0x4ef534+'\x20'):(_0x421223=_0x42e3c7[_0x18f372(0x300)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['YPFzk'],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)));const _0x155495=_0x4ddf14[_0x18f372(0x2af)];let _0x3769e9=_0x155495[_0x4ddf14[_0x18f372(0x2f8)]];_0x37087d[_0x18f372(0x2d5)]&&(_0x42e3c7[_0x18f372(0x30d)](_0x42e3c7[_0x18f372(0x25f)],_0x42e3c7[_0x18f372(0x25f)])?_0x3769e9=_0x155495[_0x37087d[_0x18f372(0x2d5)]]:_0x340132[_0x18f372(0x296)]=!![]);if(_0x42e3c7['oAOBe'](_0x4ff1a1,![])){if(_0x42e3c7[_0x18f372(0x211)](_0x42e3c7[_0x18f372(0x22d)],_0x42e3c7[_0x18f372(0x284)])){const _0x5c8bb2=_0x42e3c7[_0x18f372(0x2e0)][_0x18f372(0x281)]('|');let _0x1b2aa0=0x0;while(!![]){switch(_0x5c8bb2[_0x1b2aa0++]){case'0':_0x3d449e[_0x18f372(0x267)]=_0xf60626;continue;case'1':const _0x136460={};_0x136460[_0x18f372(0x27c)]=_0x5c797f['LOG'],_0x136460['message']=_0x467f50,_0x128476[_0x18f372(0x24a)](_0x4e02ef,_0x136460);continue;case'2':_0x2fae54=_0x18f372(0x303)+_0x2cc265+_0x18f372(0x312)+_0x1d5fa2+'\x27';continue;case'3':_0x391b3b[_0x18f372(0x2eb)]=_0x52ef90;continue;case'4':_0x5f356e[_0x18f372(0x2fc)]=_0x48e578[_0x18f372(0x2fc)];continue;case'5':_0x3ccda5[_0x18f372(0x25b)]=_0x1f826b;continue;case'6':_0x3f0e07['browserVersion']=_0x3c8101[_0x18f372(0x290)];continue;case'7':_0x4a08f2[_0x18f372(0x2a3)](_0x2798fa);continue;case'8':const _0x44627d={};_0x44627d[_0x18f372(0x27c)]=_0x5f1419[_0x18f372(0x2f6)],_0x44627d[_0x18f372(0x287)]=_0x18f372(0x234),_0x3734e5['sendEventToBackend'](_0x48b071,_0x44627d);continue;}break;}}else{_0x42e3c7[_0x18f372(0x2ec)](_0x3769e9,undefined)&&(_0x42e3c7[_0x18f372(0x246)](_0x42e3c7[_0x18f372(0x23f)],_0x42e3c7[_0x18f372(0x23f)])?(_0x421223=_0x42e3c7[_0x18f372(0x230)],await _0x42e3c7[_0x18f372(0x283)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x272)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1)):_0x33f88b=_0x48dbd6[_0x258a1e[_0x18f372(0x2d5)]]);global_registry[_0x18f372(0x2a5)]=_0x3769e9['id'];(_0x42e3c7[_0x18f372(0x2ba)](_0x9e13f3,AZURE)||_0x42e3c7[_0x18f372(0x2cf)](_0x3769e9?.['cloudProvider'],AZURE))&&(_0x42e3c7['uxRtr'](_0x42e3c7[_0x18f372(0x23a)],_0x42e3c7[_0x18f372(0x241)])?(console[_0x18f372(0x254)](_0x42e3c7[_0x18f372(0x2b6)]),process['exit'](0x1)):_0x361051[_0x18f372(0x2a3)](_0x18f372(0x1f8)+_0x3e8c3e[_0x18f372(0x255)](_0x121a23)+'\x20'));_0x421223='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x2ac20e+'\x20using\x20\x27'+_0x3769e9[_0x18f372(0x26a)]+_0x18f372(0x293),logger[_0x18f372(0x2a3)](_0x421223);const _0x583d41={};_0x583d41[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x583d41[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x583d41),_0x9e13f3=_0x3769e9[_0x18f372(0x2eb)],_0x4a6bb7=_0x3769e9['clusterName'],_0x35bbe6=_0x3769e9[_0x18f372(0x28a)],_0x237481=_0x3769e9['concurrency'],_0x4af4c5=_0x3769e9[_0x18f372(0x2b9)],_0x298f12=_0x3769e9[_0x18f372(0x30e)],securityGroups=_0x3769e9[_0x18f372(0x2bd)],subnets=_0x3769e9[_0x18f372(0x2ed)],_0x376c44=_0x3769e9[_0x18f372(0x27e)],_0xc1126a=_0x3769e9[_0x18f372(0x2d8)],_0x2333db=_0x3769e9[_0x18f372(0x204)],_0x1bf1f9=_0x4ddf14[_0x18f372(0x2fc)],_0x55d4cf=_0x4ddf14[_0x18f372(0x290)];if(_0x42e3c7[_0x18f372(0x2c9)](_0x3769e9[_0x18f372(0x253)],undefined)&&_0x3769e9[_0x18f372(0x253)]){if(_0x42e3c7[_0x18f372(0x30d)](_0x42e3c7[_0x18f372(0x258)],_0x42e3c7['mXZzf'])){const _0x4fdf12={};_0x4fdf12[_0x18f372(0x27c)]=_0x19cf1d[_0x18f372(0x299)],_0x4fdf12[_0x18f372(0x287)]=_0x18f372(0x29b)+_0x485754+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0xc270f0[_0x18f372(0x24a)](_0x2adff9,_0x4fdf12,_0x42e3c7[_0x18f372(0x249)]),_0x51181c[_0x18f372(0x2a3)](_0x18f372(0x29b)+_0x428a27+_0x18f372(0x250)),_0x4cb7d3=!![];}else global_registry[_0x18f372(0x296)]=!![];}_0x42e3c7['XXnAq'](updateGlobalRegistryWithConfig,_0x9e13f3,_0x4a6bb7,_0x35bbe6,_0x237481,_0x4af4c5,_0x376c44,_0x3769e9,_0x1bf1f9,_0x55d4cf,_0xc1126a,_0x2333db);}}else{const _0xfadce0=_0x42e3c7[_0x18f372(0x2fa)][_0x18f372(0x281)]('|');let _0x1ea0eb=0x0;while(!![]){switch(_0xfadce0[_0x1ea0eb++]){case'0':global_registry['cloudProvider']=_0x9e13f3;continue;case'1':global_registry[_0x18f372(0x267)]=_0x4a6bb7;continue;case'2':global_registry[_0x18f372(0x290)]=_0x4ddf14['browserVersion'];continue;case'3':const _0x56499f={};_0x56499f[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x56499f[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x56499f);continue;case'4':global_registry[_0x18f372(0x25b)]=_0x35bbe6;continue;case'5':_0x421223=_0x18f372(0x303)+_0x2ac20e+_0x18f372(0x312)+_0x4a6bb7+'\x27';continue;case'6':const _0x5c3a99={};_0x5c3a99['type']=WS_EVENTS[_0x18f372(0x2f6)],_0x5c3a99[_0x18f372(0x287)]=_0x18f372(0x234),webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x5c3a99);continue;case'7':logger[_0x18f372(0x2a3)](_0x421223);continue;case'8':global_registry[_0x18f372(0x2fc)]=_0x4ddf14[_0x18f372(0x2fc)];continue;}break;}}const _0x4d506c=_0x42e3c7['VGVAC'](getCloudProviderObject,_0x9e13f3,_0x4a6bb7,_0x2ac20e,_0x1ea753,webSocketUtils),_0x301050=_0x326126[_0x18f372(0x2eb)]||{};if(_0x42e3c7['oAOBe'](_0x301050[_0x9e13f3],undefined)){logger['info'](_0x42e3c7[_0x18f372(0x233)]);_0x42e3c7['mkfDU'](_0x326126[_0x18f372(0x2eb)],undefined)&&(_0x326126[_0x18f372(0x2eb)]={});_0x326126[_0x18f372(0x2eb)][_0x9e13f3]={};const _0x327b0b=await _0x42e3c7[_0x18f372(0x2e4)](inputCloudProviderKeys,_0x9e13f3,_0x326126,_0x4d506c);fs['writeFileSync'](_0x42e3c7[_0x18f372(0x289)](getCredentialsPath),JSON['stringify'](_0x327b0b)),logger[_0x18f372(0x304)](_0x42e3c7[_0x18f372(0x200)]);}else{_0x421223=_0x42e3c7['CUXCN'];const _0x4d92b9={};_0x4d92b9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x4d92b9[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x4d92b9),logger[_0x18f372(0x2a3)](_0x421223),await _0x4d506c[_0x18f372(0x30a)](_0x301050);}_0x4d506c[_0x18f372(0x2a8)]();let _0x29375d;if(_0x42e3c7[_0x18f372(0x2da)](_0x4ff1a1,![])){_0x421223='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x35bbe6+').';const _0x5aded7={};_0x5aded7[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x5aded7[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x5aded7),logger[_0x18f372(0x2a3)](_0x421223);const _0xd5e36=await _0x4d506c[_0x18f372(0x2ee)]();if(_0xd5e36){const _0x165342={};_0x165342[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x165342[_0x18f372(0x287)]='Cluster\x20'+_0x4a6bb7+_0x18f372(0x250),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x165342,_0x42e3c7['MYqzo']),logger['info']('Cluster\x20'+_0x4a6bb7+_0x18f372(0x250)),_0x4ff1a1=!![];}else{const _0x1e1fd3={};_0x1e1fd3[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1e1fd3[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x2dd)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1e1fd3),logger[_0x18f372(0x2a3)](_0x42e3c7['WQtUo']);const _0x55db81=_0x42e3c7[_0x18f372(0x2c2)](_0x298f12,null)&&_0x42e3c7['EIeZM'](_0x298f12,undefined),_0x2870bd=_0x42e3c7[_0x18f372(0x262)](subnets,null)&&_0x42e3c7[_0x18f372(0x276)](subnets,undefined)&&_0x42e3c7[_0x18f372(0x2c8)](subnets[_0x18f372(0x31d)],0x0);if(_0x55db81){_0x42e3c7[_0x18f372(0x259)](_0x2870bd,![])&&(_0x421223=_0x42e3c7[_0x18f372(0x216)],await _0x42e3c7[_0x18f372(0x229)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['BtrBE'],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));const _0x52fb85=await _0x4d506c[_0x18f372(0x2a7)](_0x298f12);_0x42e3c7[_0x18f372(0x2d4)](_0x52fb85,![])?(_0x421223=_0x42e3c7['Gjkyy'],await _0x42e3c7['qStef'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x232)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)):logger['info'](_0x18f372(0x273)+_0x298f12+'\x20');const _0x336c80=await _0x4d506c[_0x18f372(0x2b1)](subnets,_0x298f12);_0x42e3c7[_0x18f372(0x29f)](_0x336c80[0x0],![])?(_0x421223=_0x18f372(0x1ff)+_0x336c80[0x1]+_0x18f372(0x319)+_0x298f12+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x42e3c7[_0x18f372(0x2ca)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x248)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)):logger[_0x18f372(0x2a3)](_0x18f372(0x1f8)+JSON[_0x18f372(0x255)](subnets)+'\x20'),await _0x4d506c['setupNewCluster'](_0x298f12,subnets);}else{const _0xe7d156=_0x42e3c7[_0x18f372(0x1f9)]['split']('|');let _0x204fc3=0x0;while(!![]){switch(_0xe7d156[_0x204fc3++]){case'0':logger[_0x18f372(0x2a3)](_0x42e3c7[_0x18f372(0x236)]);continue;case'1':await _0x4d506c[_0x18f372(0x1fc)]();continue;case'2':logger[_0x18f372(0x2a3)](_0x42e3c7['vYGjS']);continue;case'3':const _0x55eec4={};_0x55eec4[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x55eec4[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x236)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x55eec4);continue;case'4':const _0x15c1e4={};_0x15c1e4[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x15c1e4[_0x18f372(0x287)]=_0x18f372(0x21c),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x15c1e4);continue;}break;}}}}_0x4ff1a1&&_0x42e3c7[_0x18f372(0x2ba)](_0x9e13f3,AZURE)&&(global_registry[_0x18f372(0x21e)]=_0x4ddf14[_0x18f372(0x22e)],await _0x4d506c['updatePreSpawnedCluster'](),await _0x4d506c[_0x18f372(0x2a2)]());const [_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x36fa73,_0x1c98c8]=await _0x42e3c7['QhnwR'](createK8sClient,_0x4d506c);_0x42e3c7[_0x18f372(0x2d4)](_0x4ff1a1,![])&&_0x42e3c7[_0x18f372(0x2b4)](_0x9e13f3,AWS)&&(_0x29375d=await _0x4d506c[_0x18f372(0x279)](_0x4fb17a,_0x37087d));try{_0x2363e4=_0x42e3c7[_0x18f372(0x20e)](kebabCase,_0x2ac20e),logger['info'](_0x42e3c7[_0x18f372(0x2ae)]);const _0x432d46={};_0x432d46['type']=WS_EVENTS[_0x18f372(0x299)],_0x432d46[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x2ae)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x432d46);if(_0x42e3c7[_0x18f372(0x28b)](_0x2363e4,_0x42e3c7[_0x18f372(0x2aa)])){const _0x43ba58={};_0x43ba58['createdBy']=_0x42e3c7[_0x18f372(0x2bf)],_0x43ba58[_0x18f372(0x231)]=_0x42e3c7[_0x18f372(0x2bf)];const _0x1825c1={};_0x1825c1['name']=_0x2363e4,_0x1825c1[_0x18f372(0x315)]=_0x43ba58;const _0x251867={};_0x251867[_0x18f372(0x2fb)]=_0x1825c1;let _0x315e05=_0x251867;await _0x4fb17a[_0x18f372(0x24b)](_0x315e05),logger['info'](_0x42e3c7['LRhYL']);}const _0x19fbdb={};_0x19fbdb['type']=WS_EVENTS[_0x18f372(0x299)],_0x19fbdb[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x1f3)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x19fbdb);const _0x432db9={};_0x432db9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x432db9[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x215)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x432db9),logger[_0x18f372(0x2a3)](_0x42e3c7[_0x18f372(0x22b)]);let _0x52ce70={};_0x42e3c7['YtQju'](_0x9e13f3,AZURE)&&(_0x52ce70={'clientId':await _0x4d506c[_0x18f372(0x269)](_0x18f372(0x2f2)+_0x4a6bb7)});await _0x42e3c7[_0x18f372(0x2f4)](addGridComponents,_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x2363e4,_0x4a6bb7,_0x29375d,_0x36fa73,_0x1c98c8,_0x52ce70),_0x421223=_0x42e3c7['NZYEA'],logger[_0x18f372(0x2a3)](_0x421223);const _0x1abeef={};_0x1abeef[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1abeef[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1abeef),_0x421223=_0x42e3c7[_0x18f372(0x23b)],logger[_0x18f372(0x2a3)](_0x421223);const _0x1a7df9={};_0x1a7df9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1a7df9[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1a7df9),await webSocketUtils[_0x18f372(0x26b)](0xea60);const _0x1c5275=await _0x42e3c7[_0x18f372(0x2e9)](getNamespaceUID,_0x4fb17a,_0x2363e4);let _0x5aa659=global_registry[_0x18f372(0x296)]?_0x42e3c7[_0x18f372(0x2df)]:_0x42e3c7[_0x18f372(0x1fd)],_0x5455ea=await _0x4fb17a[_0x18f372(0x228)](_0x5aa659,_0x42e3c7[_0x18f372(0x28c)]),_0xb2c916=_0x4d506c['getGridHostname'](_0x5455ea)+'/'+_0x2363e4,_0x4abbc6=_0x42e3c7[_0x18f372(0x237)];try{const _0x1029a0={'url':_0x18f372(0x2c5)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1c5275,..._0x209fce},_0x3eb842=_0x1029a0,_0x53ebf4=await _0x42e3c7[_0x18f372(0x2cc)](promisifiedRequest,_0x3eb842);(_0x42e3c7[_0x18f372(0x295)](_0x53ebf4,null)||_0x42e3c7[_0x18f372(0x295)](_0x53ebf4,undefined))&&(_0x421223=_0x42e3c7[_0x18f372(0x244)],await _0x42e3c7[_0x18f372(0x245)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2cb)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));_0x42e3c7[_0x18f372(0x2ba)](_0x53ebf4[_0x18f372(0x302)],0x191)&&(_0x421223=_0x42e3c7['ANlsi'],await _0x42e3c7['UUHMk'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x2e5)],_0x42e3c7['JEPQV']),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));_0x42e3c7[_0x18f372(0x276)](_0x53ebf4[_0x18f372(0x302)],0xc8)&&(_0x421223=_0x18f372(0x23e)+JSON['stringify'](_0x53ebf4),await _0x42e3c7[_0x18f372(0x229)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x2f5)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1));const _0xf2b155=JSON[_0x18f372(0x29a)](_0x53ebf4[_0x18f372(0x220)]);_0xf2b155[_0x18f372(0x2d1)]&&(_0xb2c916=_0xf2b155['route53'],_0x4abbc6=_0x42e3c7[_0x18f372(0x2ac)]),global_registry[_0x18f372(0x296)]&&(_0x4abbc6=_0x42e3c7['bKyFr']);}catch(_0x5243d0){}_0x421223=_0x18f372(0x313)+_0xb2c916+'\x20',logger[_0x18f372(0x2a3)](_0x421223);const _0x27169b={};_0x27169b[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x27169b[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x27169b),_0x421223=_0x18f372(0x310)+_0x4abbc6+'://'+_0xb2c916+_0x18f372(0x2b3),logger[_0x18f372(0x2a3)](_0x421223);const _0x32e4a9={};_0x32e4a9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x32e4a9[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x32e4a9);const _0x45063f={};_0x45063f[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x2c1)],_0x45063f[_0x18f372(0x287)]=_0x18f372(0x282)+_0xb2c916,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x45063f),await webSocketUtils[_0x18f372(0x26b)](0x7d0);}catch(_0x5a6bdb){if(_0x42e3c7[_0x18f372(0x2fe)](_0x4ff1a1,![]))try{logger[_0x18f372(0x2a3)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x42e3c7[_0x18f372(0x2db)](removeGridComponents,_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x2363e4),await _0x4d506c[_0x18f372(0x207)](_0x4fb17a,global_registry[_0x18f372(0x25b)]);}catch(_0x440248){throw _0x440248;}throw _0x5a6bdb;}}catch(_0x46eedb){const _0xedc80a='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x46eedb+'\x20\x0a'+JSON[_0x18f372(0x255)](_0x46eedb)+'\x20';if(_0x1ea753){const _0x2be104={};_0x2be104[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x2be104[_0x18f372(0x287)]=_0xedc80a,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x2be104,_0x42e3c7[_0x18f372(0x2f3)],!![]);}await webSocketUtils[_0x18f372(0x26b)](0x7d0);const _0x14981e={};_0x14981e['error']=_0xedc80a,await _0x42e3c7['pkhgk'](sendInstrumentationEvent,_0x37087d,_0x42e3c7[_0x18f372(0x305)],messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x2fd)],_0x14981e,_0x37087d),logger[_0x18f372(0x254)](_0xedc80a);}process['exit'](0x0);};
1
+ function a10_0xe1cb(_0x3f3d66,_0x507a72){const _0x29da62=a10_0x29da();return a10_0xe1cb=function(_0xe1cbb2,_0xd7fd65){_0xe1cbb2=_0xe1cbb2-0x14d;let _0x2195c9=_0x29da62[_0xe1cbb2];return _0x2195c9;},a10_0xe1cb(_0x3f3d66,_0x507a72);}const a10_0x1c2dec=a10_0xe1cb;(function(_0x5ad673,_0x3b6856){const _0x1ea286=a10_0xe1cb,_0x278e04=_0x5ad673();while(!![]){try{const _0x241028=-parseInt(_0x1ea286(0x26b))/0x1*(-parseInt(_0x1ea286(0x22d))/0x2)+-parseInt(_0x1ea286(0x1fe))/0x3*(-parseInt(_0x1ea286(0x186))/0x4)+parseInt(_0x1ea286(0x207))/0x5+parseInt(_0x1ea286(0x236))/0x6+parseInt(_0x1ea286(0x270))/0x7+-parseInt(_0x1ea286(0x255))/0x8*(parseInt(_0x1ea286(0x1be))/0x9)+-parseInt(_0x1ea286(0x20f))/0xa;if(_0x241028===_0x3b6856)break;else _0x278e04['push'](_0x278e04['shift']());}catch(_0x371b68){_0x278e04['push'](_0x278e04['shift']());}}}(a10_0x29da,0xbfee0));const fs=require('fs'),ws=require('ws'),util=require(a10_0x1c2dec(0x18b)),ReconnectingWebSocket=require(a10_0x1c2dec(0x175)),request=require(a10_0x1c2dec(0x1c0)),{v4:uuidv4}=require(a10_0x1c2dec(0x1ec)),webSocketUtils=require(a10_0x1c2dec(0x1c7)),{logger}=require(a10_0x1c2dec(0x201)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x1c2dec(0x1e9)),{getCloudProviderObject}=require(a10_0x1c2dec(0x219)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x1c2dec(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x1c2dec(0x242)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x1c2dec(0x1b3)),promisifiedRequest=util[a10_0x1c2dec(0x1ca)](request);function a10_0x29da(){const _0x279707=['exit','create-grid-checks-non-200','HKAVP','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','replace','create-grid-called','INFO','auth','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','TbouZ','init-not-called','ILyZI','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.','ktruN','CLI_RUN_STARTED','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','qRlkg','UWLGZ','xZbCR','YTPiu','uRWxJ','route53','desc','https://','../../config/constants','Found\x20Subnets:\x20','reconnecting-websocket','jJwiz','clusterRegion','NxVXh','fgEyV','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','createdBy','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Pxscq','8|4|5|3|2|7|6|0|1','isVPCPresent','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','region','gridProfile','PCucE','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','XZlWF','4kuSmGD','configureIfNotConfigured','raNIV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','browserVersion','util','prespawned-cluster-args-not-passed','eTLsm','getResourceClientId','deleteCluster','http','pfjoc','name','eEXSN','xesNb','KifIJ','jFAPZ','annotations','TJPxI','akxJS','FeRkK','lgiYe','PyExj','Create\x20a\x20new\x20Automation\x20grid.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rswby','lcNHw','RLYBU','FOKaX','createOtherResources','Namespace\x20created','tSUEw','zJJFY','description','private-grid','kajts','isPrivateGrid','DxaKK','GTyTc','setupNewCluster','WebSocket','RDNIW','1|6|3|0|4|7|2|8|5','length','fmAMB','../../utils/instrumentationUtils','Subnets:\x20','fFfCm','sendEventToBackend','HQJzj','user','Found\x20VPC:\x20','ACcxd','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','TgixQ','username','36dCzwUB','RmIIj','request','usage','oWqoW','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','securityGroups','bstackUsername','OtKrB','../../utils/webSocketUtils','bstackAccesskey','qgzXq','promisify','JBpvb','cluster-name','s3bucket','nIBAM','BLnRx','GbIAd','Ctncc','PncGk','oGMrW','oqAfE','LUAsa','ingress-nginx','/packages/cli/get-grid-url?gridIdentifier=','tFkTo','lTDiQ','existsSync','hnJtD','tRMXF','CDKmv','private-ingress-nginx-controller','body','wChUy','defaultGridProfile','xdXYJ','LGnSP','epilogue','Spawning\x20the\x20grid\x20','help','CkxVL','pre-spawned-invalid-vpc','../../utils/utilityMethods','\x27\x20grid\x20profile','tABOU','uuid','QzKaQ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','pre-spawned-subnets-not-selected','delay','\x20using\x20\x27','privateGrid','toLowerCase','setupAutoscaler','Rnflw','QkFQt','JWRAk','Grid\x20profile\x20fetched\x20from\x20backend','HVTeD','amQrY','xiLyq','tFmXw','2551182RwJhGI','GSSXG','cloud-provider','../../config/logger','gridProfileId','LOG','writeFileSync','NlXLe','true','1989165zZWpBn','get-grid-url-auth-failed','statusCode','rrltt','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Namespace\x20Created','builder','YWPHM','6845120sgvIeX','ZDOlV','DadOD','concurrency','SzTvX','iNCuP','argv','managedBy','uvQmU','hOCEM','../../cloudproviders/utils','stringify','WAxST','eaxwN','subnets','isClusterPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getGridHostname','grid','UjrcG','includes','xYVgC','fcgAs','://','command','Browserstack','readNamespacedService','TkEsu','yGIFk','whoIb','2ndyWnE','s3BucketName','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','GoqJV','Cluster\x20created\x20successfully','yMojM','sxNPo','Will\x20be\x20spawning\x20the\x20grid\x20','SqWfy','2369670tTcbuV','SyctC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error','ioZbT','parse','Adding\x20Websocket\x20listeners','vBLMR','SjuZH','metadata','ERROR','SEzec','../../utils/gridComponents','warn','https','CgnJY','CIexP','info','TqiGs','connectionTimeout','AUOgf','eSEeH','turboscale-managed-identity-','grid-profile','Cluster\x20','get-grid-url-non-200','GET','ouvbC','updatePreSpawnedCluster','AyLqh','TWyHr','1820152ilamsY','create-grid-checks-invalid-profile','NUHzw','s3Bucket','cloudProvider','handler','Deleting\x20the\x20CloudFormation\x20Stacks','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','instanceType','readFileSync','clusterName','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ntvkG','get-grid-url-null-response','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','pre-spawned-invalid-subnets','maxNodes','Spawning\x20Grid\x20on\x20the\x20Cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ccoVW','JrRIi','RBqpm','610813qTfyJD','message','\x20in\x20existing\x20cluster\x20\x27','Create\x20a\x20private/public\x20grid.','password','887229qufiHs','vZtNL','addListeners','AqIPG','grid-name','JCtPf','fTtst','yOyPJ','string','hubVersion','split','create-grid-checks-auth-failed','type','wkmou','CxMrv','create','emlYz','minNodes','TlJKO','KcKio','gridName','debug','VwPEk','lDXUu','VNmYv'];a10_0x29da=function(){return _0x279707;};return a10_0x29da();}exports[a10_0x1c2dec(0x227)]=a10_0x1c2dec(0x221),exports[a10_0x1c2dec(0x171)]=a10_0x1c2dec(0x19d),exports[a10_0x1c2dec(0x20d)]=function(_0x2cf4db){const _0x4aa674=a10_0x1c2dec,_0x2e5660={};_0x2e5660['vxtoN']=_0x4aa674(0x22f),_0x2e5660[_0x4aa674(0x15a)]='string',_0x2e5660[_0x4aa674(0x1c9)]=_0x4aa674(0x25c),_0x2e5660['QzKaQ']=_0x4aa674(0x19e),_0x2e5660[_0x4aa674(0x222)]=_0x4aa674(0x21f),_0x2e5660['agJhJ']=_0x4aa674(0x238),_0x2e5660['SjuZH']=_0x4aa674(0x26e),_0x2e5660[_0x4aa674(0x22a)]=_0x4aa674(0x1e6);const _0x2e46a1=_0x2e5660,_0xc0f00d={};_0xc0f00d[_0x4aa674(0x1a7)]=_0x2e46a1['vxtoN'],_0xc0f00d[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x4e8139={};_0x4e8139[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x1c9)],_0x4e8139[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x1ee42c={};_0x1ee42c[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x1ed)],_0x1ee42c[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x437600={};_0x437600[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x222)],_0x437600[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x1e42d6={};_0x1e42d6[_0x4aa674(0x1a7)]=_0x2e46a1['agJhJ'],_0x1e42d6[_0x4aa674(0x14e)]=_0x2e46a1['VNmYv'];const _0x43ad41={};_0x43ad41['description']=_0x2e46a1[_0x4aa674(0x23e)],_0x43ad41[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x4a387f={};return _0x4a387f[_0x4aa674(0x274)]=_0xc0f00d,_0x4a387f[_0x4aa674(0x24d)]=_0x4e8139,_0x4a387f[_0x4aa674(0x1cc)]=_0x1ee42c,_0x4a387f[_0x4aa674(0x200)]=_0x437600,_0x4a387f[_0x4aa674(0x181)]=_0x1e42d6,_0x4a387f[_0x4aa674(0x1a8)]=_0x43ad41,_0x2cf4db[_0x4aa674(0x1c1)](HELP_HEADER_MESSAGE[_0x4aa674(0x151)])[_0x4aa674(0x1e4)](HELP_FOOTER_MESSAGE)['options'](_0x4a387f)[_0x4aa674(0x1e6)](_0x2e46a1[_0x4aa674(0x22a)])[_0x4aa674(0x215)];},exports[a10_0x1c2dec(0x25a)]=async function(_0x133bef){const _0x1b04c0=a10_0x1c2dec,_0x23609c={'pyVDX':_0x1b04c0(0x22f),'SqWfy':_0x1b04c0(0x278),'wkmou':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','fkuEu':_0x1b04c0(0x19e),'jqHay':_0x1b04c0(0x21f),'UWLGZ':_0x1b04c0(0x238),'TyvDM':_0x1b04c0(0x26e),'ioZbT':_0x1b04c0(0x1e6),'DmAcQ':_0x1b04c0(0x1b0),'WAxST':_0x1b04c0(0x243),'zJJFY':_0x1b04c0(0x239),'qRlkg':_0x1b04c0(0x190),'CVrou':_0x1b04c0(0x244),'NlXLe':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','aZNbL':function(_0xa74348){return _0xa74348();},'lDXUu':function(_0x417c3a){return _0x417c3a();},'BLnRx':function(_0x24ab1c,_0x3a3d1b){return _0x24ab1c!==_0x3a3d1b;},'CkxVL':_0x1b04c0(0x1e0),'SzTvX':_0x1b04c0(0x189),'Rnflw':function(_0x4ab647,_0x37416e,_0x48f09e,_0x2035d3,_0xd0d3f,_0xf3c3e9,_0x4edaaa){return _0x4ab647(_0x37416e,_0x48f09e,_0x2035d3,_0xd0d3f,_0xf3c3e9,_0x4edaaa);},'ACcxd':_0x1b04c0(0x160),'tFkTo':_0x1b04c0(0x165),'fFfCm':function(_0xbb6237,_0x155abf,_0x22396d,_0xe240be,_0x485f4a,_0x118f72,_0x4c28e9){return _0xbb6237(_0x155abf,_0x22396d,_0xe240be,_0x485f4a,_0x118f72,_0x4c28e9);},'RLYBU':'<UsernamePlaceholder>','QkFQt':'<PasswordPlaceholder>','ntvkG':_0x1b04c0(0x23c),'tSUEw':function(_0x491dee,_0x53be4d){return _0x491dee===_0x53be4d;},'fZLWv':'QQANq','XZlWF':_0x1b04c0(0x17d),'iNCuP':_0x1b04c0(0x17c),'vBLMR':function(_0x449e50,_0x1a599c,_0x306e58,_0x39075c,_0x1ae914,_0x1420bc,_0x4b0ba6,_0x1636b1){return _0x449e50(_0x1a599c,_0x306e58,_0x39075c,_0x1ae914,_0x1420bc,_0x4b0ba6,_0x1636b1);},'fOaFS':_0x1b04c0(0x18c),'ILyZI':'uoqhJ','VwPEk':_0x1b04c0(0x15e),'PCucE':'non-aws-azure-cluster','CDKmv':_0x1b04c0(0x206),'uvQmU':function(_0x21d209,_0x164969){return _0x21d209===_0x164969;},'rrltt':_0x1b04c0(0x210),'BYJNK':_0x1b04c0(0x1db),'OtKrB':_0x1b04c0(0x20e),'oWqoW':_0x1b04c0(0x194),'tRMXF':_0x1b04c0(0x250),'emlYz':function(_0x2538a7,_0x482ab7){return _0x2538a7(_0x482ab7);},'RmIIj':function(_0x21525a,_0x154bae){return _0x21525a===_0x154bae;},'fgEyV':_0x1b04c0(0x154),'JBpvb':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ZbfoD':'create-grid-checks-null-response','FOKaX':function(_0x4d49fc,_0x6f8434){return _0x4d49fc===_0x6f8434;},'hOCEM':function(_0x531aad,_0x53fb0d){return _0x531aad===_0x53fb0d;},'pfjoc':_0x1b04c0(0x195),'TWyHr':_0x1b04c0(0x17a),'PVNEo':function(_0x38e0f5,_0x3bab4b,_0x46d61a,_0x274834,_0x32cfdd,_0x4f82f6,_0x49afc1,_0x5734a4){return _0x38e0f5(_0x3bab4b,_0x46d61a,_0x274834,_0x32cfdd,_0x4f82f6,_0x49afc1,_0x5734a4);},'HKAVP':_0x1b04c0(0x14d),'sbxfn':function(_0x54898b,_0x10109b){return _0x54898b!==_0x10109b;},'lTDiQ':function(_0x480a36,_0x5b76fc){return _0x480a36===_0x5b76fc;},'TbouZ':_0x1b04c0(0x178),'vZtNL':function(_0x5219b9,_0x47e896,_0x560495,_0x23f865,_0x119d88,_0x56427d,_0x1d1abf,_0x6263b9){return _0x5219b9(_0x47e896,_0x560495,_0x23f865,_0x119d88,_0x56427d,_0x1d1abf,_0x6263b9);},'CIexP':_0x1b04c0(0x15c),'LdDsL':_0x1b04c0(0x1f9),'DadOD':function(_0x2b0e3c,_0x4f70aa){return _0x2b0e3c!==_0x4f70aa;},'raNIV':_0x1b04c0(0x196),'GoqJV':_0x1b04c0(0x1bb),'zqsmJ':'create-grid-checks-grid-already-exists','oGMrW':function(_0x1e7575,_0x19b878){return _0x1e7575===_0x19b878;},'NuKnJ':_0x1b04c0(0x21c),'eTLsm':_0x1b04c0(0x16d),'GTyTc':function(_0x5e3153,_0x202624){return _0x5e3153===_0x202624;},'KcKio':_0x1b04c0(0x248),'SyctC':_0x1b04c0(0x1eb),'SEzec':function(_0x577816,_0x1d1ac6){return _0x577816!==_0x1d1ac6;},'xYVgC':_0x1b04c0(0x277),'jJwiz':_0x1b04c0(0x1bc),'qHBkS':_0x1b04c0(0x267),'Ctncc':function(_0x166982,_0x11edf1,_0x54fcae,_0x4b8982,_0x3934ae,_0xd41d02,_0x59b9da,_0x23d341){return _0x166982(_0x11edf1,_0x54fcae,_0x4b8982,_0x3934ae,_0xd41d02,_0x59b9da,_0x23d341);},'NUHzw':_0x1b04c0(0x256),'eEXSN':function(_0x305e56,_0x3515f3){return _0x305e56!==_0x3515f3;},'lcNHw':'LTuKL','TJPxI':'FuPut','kajts':'nvDJr','sxNPo':function(_0x5870c3,_0xf97efc,_0x397ad5,_0x52a259,_0x586918,_0x499ff8,_0x2b5ea5,_0x3a52de,_0x4123df,_0x3250dd,_0x1d87f3,_0x5414f0){return _0x5870c3(_0xf97efc,_0x397ad5,_0x52a259,_0x586918,_0x499ff8,_0x2b5ea5,_0x3a52de,_0x4123df,_0x3250dd,_0x1d87f3,_0x5414f0);},'amQrY':_0x1b04c0(0x17e),'uRWxJ':function(_0x269b4c,_0x2deb24,_0x1a3215,_0x3d1f1c,_0x5e19ae,_0x1952de){return _0x269b4c(_0x2deb24,_0x1a3215,_0x3d1f1c,_0x5e19ae,_0x1952de);},'LGnSP':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','GSSXG':function(_0x2aeb20,_0x27601b){return _0x2aeb20===_0x27601b;},'FeRkK':function(_0x5ef7b0,_0x2fb5e5,_0x5427e7,_0x4dae6f){return _0x5ef7b0(_0x2fb5e5,_0x5427e7,_0x4dae6f);},'eSEeH':function(_0xb55593){return _0xb55593();},'LUAsa':_0x1b04c0(0x184),'fcgAs':_0x1b04c0(0x1ef),'azENH':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','HQJzj':function(_0x38cf26,_0x22f2b7){return _0x38cf26!=_0x22f2b7;},'RDNIW':function(_0x1143ce,_0x53b62c){return _0x1143ce!==_0x53b62c;},'DxaKK':function(_0x3dde55,_0x2aa740){return _0x3dde55>_0x2aa740;},'AqIPG':function(_0x21505f,_0x533750){return _0x21505f===_0x533750;},'JrRIi':_0x1b04c0(0x16a),'xTdtK':_0x1b04c0(0x1f0),'vfwYf':function(_0x4550cb,_0x48628c){return _0x4550cb===_0x48628c;},'tFmXw':_0x1b04c0(0x163),'JCtPf':_0x1b04c0(0x1e8),'yMojM':function(_0x3fbdb4,_0x56ba5f){return _0x3fbdb4===_0x56ba5f;},'WYcCw':function(_0x4c70f6,_0x3b3ae4,_0x70d660,_0x9855c8,_0x457ed4,_0x180ae5,_0x7bf6f5,_0x484770){return _0x4c70f6(_0x3b3ae4,_0x70d660,_0x9855c8,_0x457ed4,_0x180ae5,_0x7bf6f5,_0x484770);},'JWRAk':_0x1b04c0(0x264),'xdXYJ':'0|3|4|1|2','akxJS':_0x1b04c0(0x167),'PyExj':_0x1b04c0(0x231),'ouvbC':function(_0xcad8e3,_0x299c1a){return _0xcad8e3===_0x299c1a;},'CgnJY':function(_0x190653,_0x56b53d){return _0x190653==_0x56b53d;},'ktruN':function(_0x2e6696,_0x4fb209){return _0x2e6696(_0x4fb209);},'oqAfE':'Creating\x20namespace','fTtst':'default','CxMrv':_0x1b04c0(0x228),'tVZlY':_0x1b04c0(0x20c),'yGIFk':_0x1b04c0(0x1a4),'xiLyq':_0x1b04c0(0x20b),'AUOgf':_0x1b04c0(0x266),'csclZ':function(_0x429225,_0x5844db){return _0x429225===_0x5844db;},'GlhHU':function(_0x14bf00,_0xdfc4f7,_0x5b344f,_0x5eaf27,_0x405576,_0xd4d003,_0x3b4092,_0x259d1d,_0x7f5f62,_0x8f3924,_0x5800cb){return _0x14bf00(_0xdfc4f7,_0x5b344f,_0x5eaf27,_0x405576,_0xd4d003,_0x3b4092,_0x259d1d,_0x7f5f62,_0x8f3924,_0x5800cb);},'YTPiu':'Grid\x20spawned\x20on\x20the\x20cluster','fmAMB':_0x1b04c0(0x1c3),'ojLjL':function(_0x5b2155,_0x3055c7,_0x54d8a1){return _0x5b2155(_0x3055c7,_0x54d8a1);},'HVTeD':_0x1b04c0(0x1de),'RoOlh':'ingress-nginx-controller','RBqpm':_0x1b04c0(0x1d6),'whoIb':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','PncGk':function(_0x59a519,_0x359794,_0x1417a5,_0x8cb735,_0x3799e2,_0x3bcce7,_0x556c07,_0x1d60f1){return _0x59a519(_0x359794,_0x1417a5,_0x8cb735,_0x3799e2,_0x3bcce7,_0x556c07,_0x1d60f1);},'ewOKI':_0x1b04c0(0x262),'dWVcC':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ccoVW':function(_0x57a1f9,_0x57c263,_0xda42f0,_0x20adeb,_0x1413cc,_0x12f688,_0x163457,_0x429bfe){return _0x57a1f9(_0x57c263,_0xda42f0,_0x20adeb,_0x1413cc,_0x12f688,_0x163457,_0x429bfe);},'GbIAd':_0x1b04c0(0x208),'nIBAM':function(_0x158737,_0x431f17,_0x1e40d8,_0x2ba6a8,_0x3f949d,_0x379c2f,_0x5233ee,_0x220417){return _0x158737(_0x431f17,_0x1e40d8,_0x2ba6a8,_0x3f949d,_0x379c2f,_0x5233ee,_0x220417);},'rswby':_0x1b04c0(0x24f),'lgiYe':function(_0x280f99,_0x3ce7f0){return _0x280f99===_0x3ce7f0;},'AyLqh':'grid-spawning-failed'};let _0x7a1151=![],_0xcf0089,_0x138d77,_0x4c1666,_0x489b50,_0x459179,_0x25ce5a,_0x2f847c,_0x3ee750,_0xde8b46,_0x89fe0f,_0x58c612,_0x459630,_0x501916=0x1,_0x54a841=0xe;try{global_registry['requestId']=_0x23609c['aZNbL'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs[_0x1b04c0(0x1da)](_0x23609c['lDXUu'](getCredentialsPath))){if(_0x23609c['BLnRx'](_0x23609c['CkxVL'],_0x23609c[_0x1b04c0(0x1e7)])){const _0x4b6a95={};_0x4b6a95[_0x1b04c0(0x1a7)]=_0x23609c['pyVDX'],_0x4b6a95[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x4de980={};_0x4de980[_0x1b04c0(0x1a7)]=_0x23609c[_0x1b04c0(0x14f)],_0x4de980[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x5a9b34={};_0x5a9b34[_0x1b04c0(0x1a7)]=_0x23609c['fkuEu'],_0x5a9b34['type']=_0x23609c[_0x1b04c0(0x235)];const _0x165be7={};_0x165be7[_0x1b04c0(0x1a7)]=_0x23609c['jqHay'],_0x165be7[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x1ee728={};_0x1ee728['description']=_0x23609c[_0x1b04c0(0x16c)],_0x1ee728['type']=_0x23609c[_0x1b04c0(0x235)];const _0x525b29={};_0x525b29[_0x1b04c0(0x1a7)]=_0x23609c['TyvDM'],_0x525b29[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x31d102={};return _0x31d102[_0x1b04c0(0x274)]=_0x4b6a95,_0x31d102[_0x1b04c0(0x24d)]=_0x4de980,_0x31d102[_0x1b04c0(0x1cc)]=_0x5a9b34,_0x31d102[_0x1b04c0(0x200)]=_0x165be7,_0x31d102[_0x1b04c0(0x181)]=_0x1ee728,_0x31d102[_0x1b04c0(0x1a8)]=_0x525b29,_0x2aa592[_0x1b04c0(0x1c1)](_0x520691[_0x1b04c0(0x151)])[_0x1b04c0(0x1e4)](_0x1ddb6b)['options'](_0x31d102)[_0x1b04c0(0x1e6)](_0x23609c[_0x1b04c0(0x23a)])['argv'];}else console[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x213)]),await _0x23609c[_0x1b04c0(0x1f6)](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1d8)],null,_0x133bef),process[_0x1b04c0(0x15b)](0x1);}await _0x23609c[_0x1b04c0(0x1b5)](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes[_0x1b04c0(0x161)],null,null,_0x133bef);const _0x2be0d4=JSON[_0x1b04c0(0x23b)](fs[_0x1b04c0(0x25e)](_0x23609c[_0x1b04c0(0x159)](getCredentialsPath)));global_registry[_0x1b04c0(0x1c5)]=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x1bd)],global_registry[_0x1b04c0(0x1c8)]=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x26f)];const _0x4ee036=WS_ENDPOINT['replace'](_0x23609c[_0x1b04c0(0x1a1)],_0x2be0d4[_0x1b04c0(0x228)]['username'])[_0x1b04c0(0x15f)](_0x23609c[_0x1b04c0(0x1f7)],_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x26f)]),_0x5e796a={};_0x5e796a[_0x1b04c0(0x1ae)]=ws,_0x5e796a[_0x1b04c0(0x249)]=0x36ee80,_0x89fe0f=new ReconnectingWebSocket(_0x4ee036,[],_0x5e796a),logger['debug'](_0x23609c[_0x1b04c0(0x261)]),webSocketUtils[_0x1b04c0(0x272)](_0x89fe0f,_0x133bef[_0x1b04c0(0x1b8)],_0x133bef[_0x1b04c0(0x26f)]);let _0x3fed32=DEFAULT_GRID_NAME;if(_0x133bef[_0x1b04c0(0x25f)]||_0x133bef[_0x1b04c0(0x259)]||_0x133bef['region']){if(_0x23609c[_0x1b04c0(0x1a5)](_0x23609c['fZLWv'],_0x23609c['fZLWv'])){if(!(_0x133bef[_0x1b04c0(0x25f)]&&_0x133bef['cloudProvider']&&_0x133bef[_0x1b04c0(0x181)])){if(_0x23609c[_0x1b04c0(0x1a5)](_0x23609c[_0x1b04c0(0x185)],_0x23609c[_0x1b04c0(0x185)]))_0xcf0089=_0x23609c[_0x1b04c0(0x214)],await _0x23609c['vBLMR'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['fOaFS'],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);else{const _0x5782f5=_0x23609c['DmAcQ'][_0x1b04c0(0x27a)]('|');let _0x26f3e8=0x0;while(!![]){switch(_0x5782f5[_0x26f3e8++]){case'0':const _0x582b24={};_0x582b24[_0x1b04c0(0x14e)]=_0x8fc526[_0x1b04c0(0x203)],_0x582b24[_0x1b04c0(0x26c)]=_0x1cd481,_0x4cb4ab['sendEventToBackend'](_0x45e523,_0x582b24);continue;case'1':const _0xe5287c={};_0xe5287c[_0x1b04c0(0x14e)]=_0x350da4['CLI_RUN_STARTED'],_0xe5287c['message']='CLI\x20run\x20started',_0x5a0892[_0x1b04c0(0x1b6)](_0x2ea94f,_0xe5287c);continue;case'2':_0x502447[_0x1b04c0(0x25f)]=_0x500c60;continue;case'3':_0x40f16f[_0x1b04c0(0x247)](_0x2fc6e1);continue;case'4':_0x363ba7[_0x1b04c0(0x259)]=_0x1b1de9;continue;case'5':_0x326844['browserVersion']=_0x259687['browserVersion'];continue;case'6':_0x1fe75b=_0x1b04c0(0x1e5)+_0x4f32f1+_0x1b04c0(0x26d)+_0x3a2bd9+'\x27';continue;case'7':_0x42c80c[_0x1b04c0(0x177)]=_0x244d14;continue;case'8':_0x44b05b[_0x1b04c0(0x279)]=_0x101eec[_0x1b04c0(0x279)];continue;}break;}}}if(![AWS,AZURE,GCP][_0x1b04c0(0x223)](_0x133bef['cloudProvider']['toLowerCase']())){if(_0x23609c['BLnRx'](_0x23609c[_0x1b04c0(0x166)],_0x23609c[_0x1b04c0(0x166)])){const _0x39b54f={};_0x39b54f[_0x1b04c0(0x14e)]=_0x1b518a['LOG'],_0x39b54f[_0x1b04c0(0x26c)]=_0x1b04c0(0x24e)+_0x1c6f7b+_0x1b04c0(0x263),_0x571ebd[_0x1b04c0(0x1b6)](_0x44b7a4,_0x39b54f,_0x23609c[_0x1b04c0(0x21b)]),_0x30c40d[_0x1b04c0(0x247)](_0x1b04c0(0x24e)+_0x548aab+_0x1b04c0(0x263)),_0x704363=!![];}else _0xcf0089=_0x23609c[_0x1b04c0(0x158)],await _0x23609c[_0x1b04c0(0x23d)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x183)],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);}_0x133bef[_0x1b04c0(0x1f3)]&&_0x23609c[_0x1b04c0(0x1a5)](_0x133bef[_0x1b04c0(0x1f3)]['toLowerCase'](),_0x23609c[_0x1b04c0(0x1dd)])&&(_0x23609c[_0x1b04c0(0x217)](_0x23609c[_0x1b04c0(0x20a)],_0x23609c['BYJNK'])?_0x2d9006['isPrivateGrid']=!![]:global_registry[_0x1b04c0(0x1aa)]=!![]),_0x7a1151=!![],_0x4c1666=_0x133bef['clusterName'],_0x138d77=_0x133bef['cloudProvider'][_0x1b04c0(0x1f4)](),_0x489b50=_0x133bef[_0x1b04c0(0x181)];}else _0x5a733d[_0x1b04c0(0x247)](_0x1b04c0(0x1b9)+_0x763d50+'\x20');}_0x133bef['gridName']&&(_0x23609c['BLnRx'](_0x23609c[_0x1b04c0(0x1c6)],_0x23609c[_0x1b04c0(0x1c2)])?_0x3fed32=_0x133bef[_0x1b04c0(0x156)]:_0x4f5c02['cloudProvider']={});global_registry['gridName']=_0x3fed32;const _0x2edef1={};_0x2edef1['username']=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x1bd)],_0x2edef1[_0x1b04c0(0x26f)]=_0x2be0d4[_0x1b04c0(0x228)]['password'];const _0x205038={};_0x205038['method']=_0x23609c[_0x1b04c0(0x1dc)],_0x205038[_0x1b04c0(0x162)]=_0x2edef1;const _0x275b28=_0x205038,_0x5b6b39=_0x1b04c0(0x172)+AG_API_URL+'/packages/cli/create-grid-checks',_0x62b62a={};_0x62b62a[_0x1b04c0(0x156)]=_0x3fed32;const _0x132e4b={'url':_0x5b6b39,'qs':_0x62b62a,..._0x275b28},_0x55ab61=_0x132e4b,_0x5c8fc5=await _0x23609c[_0x1b04c0(0x152)](promisifiedRequest,_0x55ab61);if(_0x23609c[_0x1b04c0(0x1bf)](_0x5c8fc5,null)||_0x23609c['RmIIj'](_0x5c8fc5,undefined)){if(_0x23609c['tSUEw'](_0x23609c[_0x1b04c0(0x179)],_0x23609c[_0x1b04c0(0x179)]))_0xcf0089=_0x23609c[_0x1b04c0(0x1cb)],await _0x23609c['vBLMR'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c['ZbfoD'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);else{const _0x31c246={};_0x31c246['type']=_0x5d0377[_0x1b04c0(0x203)],_0x31c246['message']=_0x3cd0dd,_0x20c31c[_0x1b04c0(0x1b6)](_0x4e833e,_0x31c246,_0x23609c[_0x1b04c0(0x1a6)],!![]);}}_0x23609c[_0x1b04c0(0x1a2)](_0x5c8fc5['statusCode'],0x191)&&(_0x23609c[_0x1b04c0(0x218)](_0x23609c[_0x1b04c0(0x191)],_0x23609c['pfjoc'])?(_0xcf0089=_0x23609c[_0x1b04c0(0x254)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x15d)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)):_0x346eb6=_0x23609c[_0x1b04c0(0x16b)]);_0x23609c['sbxfn'](_0x5c8fc5[_0x1b04c0(0x209)],0xc8)&&(_0x23609c[_0x1b04c0(0x1d9)](_0x23609c[_0x1b04c0(0x164)],_0x23609c['TbouZ'])?(_0xcf0089=_0x1b04c0(0x260)+JSON[_0x1b04c0(0x21a)](_0x5c8fc5),await _0x23609c[_0x1b04c0(0x271)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x246)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)):_0x27aaa6=_0x44150f[_0x1b04c0(0x156)]);const _0x37775c=JSON['parse'](_0x5c8fc5[_0x1b04c0(0x1df)]),_0x59fff9={};_0x59fff9[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x169)],_0x59fff9['message']='CLI\x20run\x20started',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x59fff9);const _0x5c14fc={};_0x5c14fc[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x5c14fc[_0x1b04c0(0x26c)]=_0x23609c['LdDsL'],webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x5c14fc);_0x37775c['alreadyPresent']&&(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x188)],_0x23609c[_0x1b04c0(0x188)])?_0x39463d=_0x595e9a[_0xc5000f['gridProfile']]:(_0xcf0089=_0x23609c[_0x1b04c0(0x230)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['zqsmJ'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)));const _0x1294c8=_0x37775c['gridProfiles'];let _0x5cc656=_0x1294c8[_0x37775c[_0x1b04c0(0x1e1)]];_0x133bef['gridProfile']&&(_0x23609c[_0x1b04c0(0x1d3)](_0x23609c['NuKnJ'],_0x23609c[_0x1b04c0(0x18d)])?_0x5ab629['isPrivateGrid']=!![]:_0x5cc656=_0x1294c8[_0x133bef[_0x1b04c0(0x182)]]);if(_0x23609c[_0x1b04c0(0x1ac)](_0x7a1151,![])){if(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x155)],_0x23609c[_0x1b04c0(0x237)])){_0x23609c[_0x1b04c0(0x1d9)](_0x5cc656,undefined)&&(_0x23609c[_0x1b04c0(0x241)](_0x23609c[_0x1b04c0(0x224)],_0x23609c[_0x1b04c0(0x176)])?(_0xcf0089=_0x23609c['qHBkS'],await _0x23609c[_0x1b04c0(0x1d1)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x257)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):_0x5e44b5[_0x1b04c0(0x247)](_0x1b04c0(0x174)+_0xcb2421[_0x1b04c0(0x21a)](_0x215d0f)+'\x20'));global_registry[_0x1b04c0(0x202)]=_0x5cc656['id'];(_0x23609c[_0x1b04c0(0x1bf)](_0x138d77,AZURE)||_0x23609c[_0x1b04c0(0x1d9)](_0x5cc656?.[_0x1b04c0(0x259)],AZURE))&&(_0x23609c[_0x1b04c0(0x193)](_0x23609c['lcNHw'],_0x23609c[_0x1b04c0(0x1a0)])?(_0xb85b4a=_0x3a075f[_0x1b04c0(0x170)],_0x5d0191=_0x23609c['CVrou']):(console[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x205)]),process[_0x1b04c0(0x15b)](0x1)));_0xcf0089=_0x1b04c0(0x234)+_0x3fed32+_0x1b04c0(0x1f2)+_0x5cc656['name']+_0x1b04c0(0x1ea),logger['info'](_0xcf0089);const _0xc6f889={};_0xc6f889[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0xc6f889[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0xc6f889),_0x138d77=_0x5cc656[_0x1b04c0(0x259)],_0x4c1666=_0x5cc656[_0x1b04c0(0x25f)],_0x489b50=_0x5cc656[_0x1b04c0(0x181)],_0x459179=_0x5cc656[_0x1b04c0(0x212)],_0x25ce5a=_0x5cc656[_0x1b04c0(0x25d)],_0x2f847c=_0x5cc656['vpc'],securityGroups=_0x5cc656[_0x1b04c0(0x1c4)],subnets=_0x5cc656[_0x1b04c0(0x21d)],_0x3ee750=_0x5cc656[_0x1b04c0(0x1cd)],_0x501916=_0x5cc656[_0x1b04c0(0x153)],_0x54a841=_0x5cc656[_0x1b04c0(0x265)],_0x58c612=_0x37775c[_0x1b04c0(0x279)],_0x459630=_0x37775c[_0x1b04c0(0x18a)];if(_0x23609c['BLnRx'](_0x5cc656[_0x1b04c0(0x1f3)],undefined)&&_0x5cc656[_0x1b04c0(0x1f3)]){if(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x198)],_0x23609c[_0x1b04c0(0x1a9)]))global_registry[_0x1b04c0(0x1aa)]=!![];else throw _0x509d20;}_0x23609c[_0x1b04c0(0x233)](updateGlobalRegistryWithConfig,_0x138d77,_0x4c1666,_0x489b50,_0x459179,_0x25ce5a,_0x3ee750,_0x5cc656,_0x58c612,_0x459630,_0x501916,_0x54a841);}else _0x3ca4a3[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x205)]),_0xb7df36[_0x1b04c0(0x15b)](0x1);}else{const _0xf62571=_0x23609c[_0x1b04c0(0x1fb)][_0x1b04c0(0x27a)]('|');let _0x3a569b=0x0;while(!![]){switch(_0xf62571[_0x3a569b++]){case'0':global_registry['hubVersion']=_0x37775c['hubVersion'];continue;case'1':global_registry['browserVersion']=_0x37775c[_0x1b04c0(0x18a)];continue;case'2':global_registry[_0x1b04c0(0x259)]=_0x138d77;continue;case'3':const _0x3faae3={};_0x3faae3[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x3faae3[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x3faae3);continue;case'4':_0xcf0089=_0x1b04c0(0x1e5)+_0x3fed32+_0x1b04c0(0x26d)+_0x4c1666+'\x27';continue;case'5':logger[_0x1b04c0(0x247)](_0xcf0089);continue;case'6':global_registry['clusterName']=_0x4c1666;continue;case'7':global_registry[_0x1b04c0(0x177)]=_0x489b50;continue;case'8':const _0x44f87a={};_0x44f87a[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x169)],_0x44f87a['message']='CLI\x20run\x20started',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x44f87a);continue;}break;}}const _0x3590fa=_0x23609c[_0x1b04c0(0x16f)](getCloudProviderObject,_0x138d77,_0x4c1666,_0x3fed32,_0x89fe0f,webSocketUtils),_0x11d64b=_0x2be0d4[_0x1b04c0(0x259)]||{};if(_0x23609c['lTDiQ'](_0x11d64b[_0x138d77],undefined)){logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x1e3)]);_0x23609c[_0x1b04c0(0x1ff)](_0x2be0d4[_0x1b04c0(0x259)],undefined)&&(_0x2be0d4['cloudProvider']={});_0x2be0d4[_0x1b04c0(0x259)][_0x138d77]={};const _0xcf9820=await _0x23609c[_0x1b04c0(0x19a)](inputCloudProviderKeys,_0x138d77,_0x2be0d4,_0x3590fa);fs[_0x1b04c0(0x204)](_0x23609c[_0x1b04c0(0x24b)](getCredentialsPath),JSON[_0x1b04c0(0x21a)](_0xcf9820)),logger[_0x1b04c0(0x157)](_0x23609c[_0x1b04c0(0x1d5)]);}else{_0xcf0089=_0x23609c[_0x1b04c0(0x225)];const _0x2a8111={};_0x2a8111['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x2a8111[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x2a8111),logger[_0x1b04c0(0x247)](_0xcf0089),await _0x3590fa['fetchLocalCreds'](_0x11d64b);}_0x3590fa[_0x1b04c0(0x187)]();let _0xfa9ef5;if(_0x23609c[_0x1b04c0(0x217)](_0x7a1151,![])){_0xcf0089=_0x1b04c0(0x1ee)+_0x489b50+').';const _0x241d82={};_0x241d82[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x241d82[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x241d82),logger[_0x1b04c0(0x247)](_0xcf0089);const _0xb75f1b=await _0x3590fa[_0x1b04c0(0x21e)]();if(_0xb75f1b){const _0x4d654f={};_0x4d654f[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x4d654f[_0x1b04c0(0x26c)]=_0x1b04c0(0x24e)+_0x4c1666+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x4d654f,_0x23609c[_0x1b04c0(0x21b)]),logger[_0x1b04c0(0x247)](_0x1b04c0(0x24e)+_0x4c1666+_0x1b04c0(0x263)),_0x7a1151=!![];}else{const _0x367dc4={};_0x367dc4[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x367dc4['message']=_0x23609c['azENH'],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x367dc4),logger[_0x1b04c0(0x247)](_0x23609c['azENH']);const _0x56581f=_0x23609c[_0x1b04c0(0x1b7)](_0x2f847c,null)&&_0x23609c[_0x1b04c0(0x1af)](_0x2f847c,undefined),_0x46bbd3=_0x23609c[_0x1b04c0(0x1b7)](subnets,null)&&_0x23609c['sbxfn'](subnets,undefined)&&_0x23609c[_0x1b04c0(0x1ab)](subnets[_0x1b04c0(0x1b1)],0x0);if(_0x56581f){_0x23609c[_0x1b04c0(0x273)](_0x46bbd3,![])&&(_0xcf0089=_0x23609c[_0x1b04c0(0x269)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['xTdtK'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));const _0x14027e=await _0x3590fa[_0x1b04c0(0x17f)](_0x2f847c);_0x23609c['vfwYf'](_0x14027e,![])?(_0xcf0089=_0x23609c[_0x1b04c0(0x1fd)],await _0x23609c[_0x1b04c0(0x271)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x275)],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):logger[_0x1b04c0(0x247)]('Found\x20VPC:\x20'+_0x2f847c+'\x20');const _0x259ef9=await _0x3590fa['isSubnetsValid'](subnets,_0x2f847c);_0x23609c[_0x1b04c0(0x232)](_0x259ef9[0x0],![])?(_0xcf0089=_0x1b04c0(0x1b4)+_0x259ef9[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2f847c+_0x1b04c0(0x180),await _0x23609c['WYcCw'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x1f8)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):logger[_0x1b04c0(0x247)](_0x1b04c0(0x174)+JSON[_0x1b04c0(0x21a)](subnets)+'\x20'),await _0x3590fa[_0x1b04c0(0x1ad)](_0x2f847c,subnets);}else{const _0x3e44b3=_0x23609c[_0x1b04c0(0x1e2)][_0x1b04c0(0x27a)]('|');let _0x3defcb=0x0;while(!![]){switch(_0x3e44b3[_0x3defcb++]){case'0':const _0x37c943={};_0x37c943[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x37c943[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x199)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x37c943);continue;case'1':const _0x2c98e8={};_0x2c98e8[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x2c98e8[_0x1b04c0(0x26c)]=_0x1b04c0(0x231),webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x2c98e8);continue;case'2':logger['info'](_0x23609c[_0x1b04c0(0x19c)]);continue;case'3':logger['info'](_0x23609c[_0x1b04c0(0x199)]);continue;case'4':await _0x3590fa[_0x1b04c0(0x1ad)]();continue;}break;}}}}_0x7a1151&&_0x23609c[_0x1b04c0(0x251)](_0x138d77,AZURE)&&(global_registry[_0x1b04c0(0x258)]=_0x37775c[_0x1b04c0(0x22e)],await _0x3590fa[_0x1b04c0(0x252)](),await _0x3590fa[_0x1b04c0(0x1a3)]());const [_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xa4a0f8,_0x36c623]=await _0x23609c[_0x1b04c0(0x152)](createK8sClient,_0x3590fa);_0x23609c[_0x1b04c0(0x217)](_0x7a1151,![])&&_0x23609c[_0x1b04c0(0x245)](_0x138d77,AWS)&&(_0xfa9ef5=await _0x3590fa[_0x1b04c0(0x1f5)](_0x89eaf8,_0x133bef));try{_0xde8b46=_0x23609c[_0x1b04c0(0x168)](kebabCase,_0x3fed32),logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x1d4)]);const _0x1ab002={};_0x1ab002['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x1ab002[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x1d4)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x1ab002);if(_0x23609c[_0x1b04c0(0x1cf)](_0xde8b46,_0x23609c[_0x1b04c0(0x276)])){const _0x83d937={};_0x83d937[_0x1b04c0(0x17b)]=_0x23609c[_0x1b04c0(0x150)],_0x83d937[_0x1b04c0(0x216)]=_0x23609c[_0x1b04c0(0x150)];const _0x4ca5b9={};_0x4ca5b9[_0x1b04c0(0x192)]=_0xde8b46,_0x4ca5b9[_0x1b04c0(0x197)]=_0x83d937;const _0x5d7641={};_0x5d7641[_0x1b04c0(0x23f)]=_0x4ca5b9;let _0x39fb83=_0x5d7641;await _0x89eaf8['createNamespace'](_0x39fb83),logger[_0x1b04c0(0x247)](_0x23609c['tVZlY']);}const _0x15c561={};_0x15c561[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x15c561[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x22b)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x15c561);const _0x73812b={};_0x73812b[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x73812b[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x1fc)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x73812b),logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x24a)]);let _0x332b2f={};_0x23609c['csclZ'](_0x138d77,AZURE)&&(_0x332b2f={'clientId':await _0x3590fa[_0x1b04c0(0x18e)](_0x1b04c0(0x24c)+_0x4c1666)});await _0x23609c['GlhHU'](addGridComponents,_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xde8b46,_0x4c1666,_0xfa9ef5,_0xa4a0f8,_0x36c623,_0x332b2f),_0xcf0089=_0x23609c[_0x1b04c0(0x16e)],logger[_0x1b04c0(0x247)](_0xcf0089);const _0x222c48={};_0x222c48['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x222c48[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x222c48),_0xcf0089=_0x23609c[_0x1b04c0(0x1b2)],logger[_0x1b04c0(0x247)](_0xcf0089);const _0x180a22={};_0x180a22['type']=WS_EVENTS['LOG'],_0x180a22['message']=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x180a22),await webSocketUtils['delay'](0xea60);const _0x3cb517=await _0x23609c['ojLjL'](getNamespaceUID,_0x89eaf8,_0xde8b46);let _0x5165fd=global_registry[_0x1b04c0(0x1aa)]?_0x23609c[_0x1b04c0(0x1fa)]:_0x23609c['RoOlh'],_0x5185ce=await _0x89eaf8[_0x1b04c0(0x229)](_0x5165fd,_0x23609c[_0x1b04c0(0x26a)]),_0x27b40e=_0x3590fa[_0x1b04c0(0x220)](_0x5185ce)+'/'+_0xde8b46,_0xbae292=_0x23609c[_0x1b04c0(0x16b)];try{const _0x5915b8={'url':'https://'+AG_API_URL+_0x1b04c0(0x1d7)+_0x3cb517,..._0x275b28},_0x56404a=_0x5915b8,_0x220fe5=await _0x23609c['emlYz'](promisifiedRequest,_0x56404a);(_0x23609c[_0x1b04c0(0x245)](_0x220fe5,null)||_0x23609c[_0x1b04c0(0x245)](_0x220fe5,undefined))&&(_0xcf0089=_0x23609c[_0x1b04c0(0x22c)],await _0x23609c[_0x1b04c0(0x1d2)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['ewOKI'],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));_0x23609c[_0x1b04c0(0x251)](_0x220fe5['statusCode'],0x191)&&(_0xcf0089=_0x23609c['dWVcC'],await _0x23609c[_0x1b04c0(0x268)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x1d0)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1));_0x23609c['SEzec'](_0x220fe5[_0x1b04c0(0x209)],0xc8)&&(_0xcf0089='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1b04c0(0x21a)](_0x220fe5),await _0x23609c[_0x1b04c0(0x1ce)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x19f)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));const _0x47accc=JSON[_0x1b04c0(0x23b)](_0x220fe5[_0x1b04c0(0x1df)]);_0x47accc[_0x1b04c0(0x170)]&&(_0x27b40e=_0x47accc[_0x1b04c0(0x170)],_0xbae292=_0x23609c['CVrou']),global_registry[_0x1b04c0(0x1aa)]&&(_0xbae292=_0x23609c['qRlkg']);}catch(_0x2972ae){}_0xcf0089='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x27b40e+'\x20',logger[_0x1b04c0(0x247)](_0xcf0089);const _0x2c2b13={};_0x2c2b13[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x2c2b13[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x2c2b13),_0xcf0089='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0xbae292+_0x1b04c0(0x226)+_0x27b40e+'/wd/hub',logger[_0x1b04c0(0x247)](_0xcf0089);const _0xff536b={};_0xff536b[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0xff536b[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0xff536b);const _0x41dffa={};_0x41dffa[_0x1b04c0(0x14e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x41dffa['message']='CLI\x20run\x20finished:\x20'+_0x27b40e,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x41dffa),await webSocketUtils[_0x1b04c0(0x1f1)](0x7d0);}catch(_0xeca5e6){if(_0x23609c[_0x1b04c0(0x19b)](_0x7a1151,![]))try{logger[_0x1b04c0(0x247)](_0x1b04c0(0x25b)),await _0x23609c['uRWxJ'](removeGridComponents,_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xde8b46),await _0x3590fa[_0x1b04c0(0x18f)](_0x89eaf8,global_registry[_0x1b04c0(0x177)]);}catch(_0x4f219a){throw _0x4f219a;}throw _0xeca5e6;}}catch(_0x5b9740){const _0x12acba='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x5b9740+'\x20\x0a'+JSON[_0x1b04c0(0x21a)](_0x5b9740)+'\x20';if(_0x89fe0f){const _0x5e2eb8={};_0x5e2eb8[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x5e2eb8[_0x1b04c0(0x26c)]=_0x12acba,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x5e2eb8,_0x23609c[_0x1b04c0(0x1a6)],!![]);}await webSocketUtils[_0x1b04c0(0x1f1)](0x7d0);const _0x3152ae={};_0x3152ae[_0x1b04c0(0x239)]=_0x12acba,await _0x23609c['Rnflw'](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x253)],_0x3152ae,_0x133bef),logger['error'](_0x12acba);}process[_0x1b04c0(0x15b)](0x0);};
@@ -1 +1 @@
1
- const a11_0x1ad9b0=a11_0x1da8;(function(_0x39239d,_0x11361b){const _0xc802a4=a11_0x1da8,_0x3f8e91=_0x39239d();while(!![]){try{const _0x45d57b=parseInt(_0xc802a4(0x185))/0x1+parseInt(_0xc802a4(0x193))/0x2+-parseInt(_0xc802a4(0x186))/0x3+parseInt(_0xc802a4(0x18b))/0x4+-parseInt(_0xc802a4(0x198))/0x5+parseInt(_0xc802a4(0x18f))/0x6*(-parseInt(_0xc802a4(0x18e))/0x7)+parseInt(_0xc802a4(0x190))/0x8;if(_0x45d57b===_0x11361b)break;else _0x3f8e91['push'](_0x3f8e91['shift']());}catch(_0x1cd36c){_0x3f8e91['push'](_0x3f8e91['shift']());}}}(a11_0x3cee,0x5dfbe));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x1ad9b0(0x19a));function a11_0x1da8(_0x437ade,_0x3c2821){const _0x3cee39=a11_0x3cee();return a11_0x1da8=function(_0x1da81e,_0x24cc34){_0x1da81e=_0x1da81e-0x185;let _0x44c541=_0x3cee39[_0x1da81e];return _0x44c541;},a11_0x1da8(_0x437ade,_0x3c2821);}function a11_0x3cee(){const _0x212aeb=['TDGHk','recommendCommands','usage','List\x20Grid\x20resources.','1339160TVcERd','TjONB','../config/constants','290638AzwkUX','44514iBTWPx','epilogue','builder','command','help','520348uMbCuJ','delete','demandCommand','49rpmiAK','333918lgkWOo','4575616fzrwpS','strict','delete_commands','129044xVfjES'];a11_0x3cee=function(){return _0x212aeb;};return a11_0x3cee();}exports[a11_0x1ad9b0(0x189)]=a11_0x1ad9b0(0x18c),exports['desc']=a11_0x1ad9b0(0x197),exports[a11_0x1ad9b0(0x188)]=function(_0x6316a8){const _0x36466a=a11_0x1ad9b0,_0x46f487={};_0x46f487[_0x36466a(0x194)]=_0x36466a(0x192),_0x46f487[_0x36466a(0x199)]=_0x36466a(0x18a);const _0x281a14=_0x46f487;return _0x6316a8[_0x36466a(0x196)](HELP_HEADER_MESSAGE[_0x36466a(0x18c)])[_0x36466a(0x187)](HELP_FOOTER_MESSAGE)['commandDir'](_0x281a14[_0x36466a(0x194)])[_0x36466a(0x18d)]()[_0x36466a(0x195)]()[_0x36466a(0x191)]()[_0x36466a(0x18a)](_0x281a14['TjONB']);},exports['handler']=function(_0x5fa07f){};
1
+ const a11_0x26f567=a11_0x55ee;(function(_0x59e63a,_0x1bf1bd){const _0x577c85=a11_0x55ee,_0x18f819=_0x59e63a();while(!![]){try{const _0x4729c4=-parseInt(_0x577c85(0x109))/0x1*(-parseInt(_0x577c85(0x102))/0x2)+parseInt(_0x577c85(0x104))/0x3+parseInt(_0x577c85(0x103))/0x4*(parseInt(_0x577c85(0xff))/0x5)+-parseInt(_0x577c85(0x100))/0x6+parseInt(_0x577c85(0x10f))/0x7+-parseInt(_0x577c85(0x10b))/0x8+-parseInt(_0x577c85(0x10d))/0x9;if(_0x4729c4===_0x1bf1bd)break;else _0x18f819['push'](_0x18f819['shift']());}catch(_0x17ad72){_0x18f819['push'](_0x18f819['shift']());}}}(a11_0x41b5,0x39bdc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='delete',exports[a11_0x26f567(0x10a)]=a11_0x26f567(0x10e),exports[a11_0x26f567(0x110)]=function(_0x265347){const _0x3c959a=a11_0x26f567,_0x1eacd8={};_0x1eacd8[_0x3c959a(0x106)]=_0x3c959a(0x108),_0x1eacd8['wVGwN']=_0x3c959a(0xfe);const _0x4c395b=_0x1eacd8;return _0x265347['usage'](HELP_HEADER_MESSAGE['delete'])[_0x3c959a(0x101)](HELP_FOOTER_MESSAGE)[_0x3c959a(0x105)](_0x4c395b[_0x3c959a(0x106)])['demandCommand']()[_0x3c959a(0xfd)]()['strict']()[_0x3c959a(0xfe)](_0x4c395b[_0x3c959a(0x107)]);},exports[a11_0x26f567(0x10c)]=function(_0x2e73af){};function a11_0x55ee(_0x3c4505,_0x3e6da3){const _0x41b536=a11_0x41b5();return a11_0x55ee=function(_0x55ee2f,_0x5c70f8){_0x55ee2f=_0x55ee2f-0xfd;let _0xd45b3a=_0x41b536[_0x55ee2f];return _0xd45b3a;},a11_0x55ee(_0x3c4505,_0x3e6da3);}function a11_0x41b5(){const _0x5e8655=['epilogue','14108ZLOZRQ','4fYrUMy','1385919lVNCZk','commandDir','yrxYa','wVGwN','delete_commands','61ISiOwl','desc','3772600CMAlog','handler','6004593OSMTFM','List\x20Grid\x20resources.','2584022ztyXNA','builder','recommendCommands','help','888335QjoqsV','382920gFOOlR'];a11_0x41b5=function(){return _0x5e8655;};return a11_0x41b5();}
@@ -1 +1 @@
1
- function a12_0x104f(_0x40983d,_0x27e1fd){const _0xdfb807=a12_0xdfb8();return a12_0x104f=function(_0x104fde,_0x507289){_0x104fde=_0x104fde-0x1c4;let _0x20b5e0=_0xdfb807[_0x104fde];return _0x20b5e0;},a12_0x104f(_0x40983d,_0x27e1fd);}const a12_0x1ffe94=a12_0x104f;(function(_0x218c38,_0x583946){const _0x28afd5=a12_0x104f,_0x4f4ded=_0x218c38();while(!![]){try{const _0x1adbbd=-parseInt(_0x28afd5(0x24f))/0x1*(parseInt(_0x28afd5(0x21d))/0x2)+parseInt(_0x28afd5(0x1fe))/0x3+-parseInt(_0x28afd5(0x1da))/0x4+-parseInt(_0x28afd5(0x245))/0x5+parseInt(_0x28afd5(0x247))/0x6+-parseInt(_0x28afd5(0x1e1))/0x7+-parseInt(_0x28afd5(0x1e5))/0x8*(-parseInt(_0x28afd5(0x250))/0x9);if(_0x1adbbd===_0x583946)break;else _0x4f4ded['push'](_0x4f4ded['shift']());}catch(_0x442a0e){_0x4f4ded['push'](_0x4f4ded['shift']());}}}(a12_0xdfb8,0xa8121));const fs=require('fs'),util=require(a12_0x1ffe94(0x226)),request=require(a12_0x1ffe94(0x1ff)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x1ffe94(0x206)),{logger}=require(a12_0x1ffe94(0x21c)),{getCloudProviderObject}=require(a12_0x1ffe94(0x1d2)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x1ffe94(0x244)),{sendInstrumentationEvent}=require(a12_0x1ffe94(0x1f8)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x1ffe94(0x1f3)),{createK8sClient}=require(a12_0x1ffe94(0x1f0)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x1ffe94(0x23d)),promisifiedRequest=util[a12_0x1ffe94(0x1d8)](request);exports[a12_0x1ffe94(0x1f9)]=a12_0x1ffe94(0x241),exports['desc']=a12_0x1ffe94(0x1df),exports[a12_0x1ffe94(0x233)]=function(_0x5576b6){const _0x373ebe=a12_0x1ffe94,_0x3b402b={};_0x3b402b[_0x373ebe(0x207)]=_0x373ebe(0x202),_0x3b402b[_0x373ebe(0x1ed)]='string',_0x3b402b[_0x373ebe(0x24b)]=_0x373ebe(0x1e6);const _0x1aee7c=_0x3b402b,_0x4d5d76={};_0x4d5d76[_0x373ebe(0x1cc)]=_0x1aee7c[_0x373ebe(0x207)],_0x4d5d76[_0x373ebe(0x216)]=_0x1aee7c[_0x373ebe(0x1ed)];const _0x5764cf={};return _0x5764cf[_0x373ebe(0x23f)]=_0x4d5d76,_0x5576b6[_0x373ebe(0x1c7)](HELP_HEADER_MESSAGE[_0x373ebe(0x20b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x373ebe(0x1dc)](_0x5764cf)[_0x373ebe(0x1e6)](_0x1aee7c['igxLH'])[_0x373ebe(0x1e9)];},exports[a12_0x1ffe94(0x20f)]=async function(_0x39fee5){const _0x5ac9a3=a12_0x1ffe94,_0x5827e8={'HHRzf':_0x5ac9a3(0x202),'SmgVC':'string','VRswv':_0x5ac9a3(0x1e6),'myjul':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','hOBJH':function(_0x71b8a){return _0x71b8a();},'GHdYt':function(_0x457119,_0x128613){return _0x457119!==_0x128613;},'VdTuC':_0x5ac9a3(0x24c),'IvzLx':_0x5ac9a3(0x222),'uInUx':_0x5ac9a3(0x1e8),'nxKtX':function(_0x86ec77,_0x2db408,_0x5e6eac,_0x35445a,_0x19cd46,_0x7c25f2,_0x3c2be4){return _0x86ec77(_0x2db408,_0x5e6eac,_0x35445a,_0x19cd46,_0x7c25f2,_0x3c2be4);},'wqsbK':'delete-grid-called','fpsIp':'init-not-called','HRLIR':function(_0x3baa1a,_0x278049,_0x494f0b,_0x1a93eb,_0x34fe7e,_0x3ecd56,_0x1522cb){return _0x3baa1a(_0x278049,_0x494f0b,_0x1a93eb,_0x34fe7e,_0x3ecd56,_0x1522cb);},'cDein':function(_0x498b87,_0x1b6dfc){return _0x498b87===_0x1b6dfc;},'nTKJM':'cnkDp','RdLlJ':'fllFV','WKDsR':function(_0x3dedf3){return _0x3dedf3();},'FSgKZ':function(_0x29d69a,_0x5259a2,_0x3f17ef,_0x1181f7){return _0x29d69a(_0x5259a2,_0x3f17ef,_0x1181f7);},'pzlTF':'Browserstack','yCBdD':_0x5ac9a3(0x201),'zzZma':function(_0x11a1f2,_0xdbc8d2){return _0x11a1f2(_0xdbc8d2);},'QphRk':function(_0xa3af33,_0x13605d){return _0xa3af33===_0x13605d;},'qswNq':function(_0xc10e86,_0x2d121f){return _0xc10e86===_0x2d121f;},'VjtWu':function(_0xb8b8e8,_0x567937){return _0xb8b8e8===_0x567937;},'ynwRq':function(_0x10d2d6,_0x4bd6a8){return _0x10d2d6===_0x4bd6a8;},'QijuP':_0x5ac9a3(0x1f2),'YixYZ':_0x5ac9a3(0x230),'vDzyc':_0x5ac9a3(0x1e3),'Pmdop':function(_0x4068c0,_0x18bb6e,_0x272173,_0x58c320,_0x278da5,_0x3e77ac,_0x18c97c){return _0x4068c0(_0x18bb6e,_0x272173,_0x58c320,_0x278da5,_0x3e77ac,_0x18c97c);},'NOWkX':_0x5ac9a3(0x20c),'jjhtv':_0x5ac9a3(0x21b),'cUpVz':function(_0x40758c,_0x41ecb2){return _0x40758c!==_0x41ecb2;},'KPohX':_0x5ac9a3(0x220),'Herak':'pfQVb','qRjDv':_0x5ac9a3(0x210),'XOwhS':_0x5ac9a3(0x1fc),'cLjXn':_0x5ac9a3(0x1f5),'YRraz':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','QXxrX':_0x5ac9a3(0x24e),'ScSCe':function(_0x648240,_0x3aef4e){return _0x648240(_0x3aef4e);},'qdesi':function(_0x2e7f61,_0x198ee3,_0x325e3b,_0x3dc370,_0x422afd,_0x3eeb3d){return _0x2e7f61(_0x198ee3,_0x325e3b,_0x3dc370,_0x422afd,_0x3eeb3d);},'PcstK':_0x5ac9a3(0x242),'XpiCT':'server-error','BlzpY':function(_0x401b15,_0x12a221){return _0x401b15===_0x12a221;},'ALXHJ':function(_0x2afa0d,_0x46633a,_0x5d6196,_0x5f544f,_0x8ff9cd,_0x4beb77,_0x617e12){return _0x2afa0d(_0x46633a,_0x5d6196,_0x5f544f,_0x8ff9cd,_0x4beb77,_0x617e12);},'rnsFO':_0x5ac9a3(0x246),'kCgHR':function(_0x36c63e,_0x1851f2){return _0x36c63e===_0x1851f2;},'MtyKJ':function(_0x2ddf00,_0x3754ae,_0x3c8de7,_0x5eb121,_0x33ca6e,_0x42eaed,_0x2e2699){return _0x2ddf00(_0x3754ae,_0x3c8de7,_0x5eb121,_0x33ca6e,_0x42eaed,_0x2e2699);},'JxMfq':_0x5ac9a3(0x228),'jmIEl':function(_0x5d4a08,_0x4653be,_0x1784e8,_0x3caa7e,_0x4d3a03,_0x4155fd,_0xd41d66){return _0x5d4a08(_0x4653be,_0x1784e8,_0x3caa7e,_0x4d3a03,_0x4155fd,_0xd41d66);},'seoCQ':function(_0x165699,_0x4ccb39,_0x35591b,_0x207a6d,_0x36fa9f,_0x4f1aa4,_0x117e51){return _0x165699(_0x4ccb39,_0x35591b,_0x207a6d,_0x36fa9f,_0x4f1aa4,_0x117e51);},'ATdfT':'unknown-error'};try{global_registry[_0x5ac9a3(0x1e2)]=_0x5827e8[_0x5ac9a3(0x20d)](uuidv4);!fs[_0x5ac9a3(0x1d0)](_0x5827e8['hOBJH'](getCredentialsPath))&&(_0x5827e8[_0x5ac9a3(0x224)](_0x5827e8[_0x5ac9a3(0x1ec)],_0x5827e8['IvzLx'])?(console[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x24d)]),await _0x5827e8[_0x5ac9a3(0x21a)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x1f4)],null,_0x39fee5),process['exit'](0x1)):_0x568f2c=_0x5ac9a3(0x203)+_0x19d1cb['name']+'\x22\x20and\x20ID\x20'+_0x48f78d['id']+_0x5ac9a3(0x1c8)+_0xffa356[_0x5ac9a3(0x200)]+_0x5ac9a3(0x22b)+_0x579b41[_0x5ac9a3(0x1db)]+_0x5ac9a3(0x22c));_0x5827e8[_0x5ac9a3(0x1cb)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1d1)],null,null,_0x39fee5);if(!_0x39fee5[_0x5ac9a3(0x1f7)]){if(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x251)],_0x5827e8[_0x5ac9a3(0x232)])){const _0x33b05f={};_0x33b05f[_0x5ac9a3(0x1cc)]=_0x5827e8[_0x5ac9a3(0x22f)],_0x33b05f['type']=_0x5827e8[_0x5ac9a3(0x238)];const _0x554538={};return _0x554538[_0x5ac9a3(0x23f)]=_0x33b05f,_0x202727['usage'](_0x251f6d[_0x5ac9a3(0x20b)])[_0x5ac9a3(0x204)](_0x37a5b5)['options'](_0x554538)[_0x5ac9a3(0x1e6)](_0x5827e8[_0x5ac9a3(0x1eb)])[_0x5ac9a3(0x1e9)];}else console[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x209)]),process[_0x5ac9a3(0x214)](0x1);}const _0x412fdb=JSON[_0x5ac9a3(0x1f6)](fs[_0x5ac9a3(0x1ce)](_0x5827e8['WKDsR'](getCredentialsPath))),[_0x408363,_0x27722d]=await _0x5827e8[_0x5ac9a3(0x1ee)](getGridDetails,_0x412fdb[_0x5ac9a3(0x1d3)]['username'],_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1e0)],_0x39fee5[_0x5ac9a3(0x1f7)]);if(_0x27722d){const _0x30a118=_0x27722d[_0x5ac9a3(0x212)];let _0x493883=_0x5ac9a3(0x203)+_0x30a118[_0x5ac9a3(0x231)]+_0x5ac9a3(0x1c6)+_0x30a118['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x860cec;_0x27722d[_0x5ac9a3(0x1cf)]&&_0x5827e8[_0x5ac9a3(0x239)](_0x27722d['clusterSpawnedVia'],_0x5827e8[_0x5ac9a3(0x1fb)])&&(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x1d4)],_0x5827e8[_0x5ac9a3(0x1d4)])?_0x493883=_0x5ac9a3(0x203)+_0x30a118[_0x5ac9a3(0x231)]+_0x5ac9a3(0x1c6)+_0x30a118['id']+_0x5ac9a3(0x1c8)+_0x30a118['clusterName']+_0x5ac9a3(0x22b)+_0x30a118[_0x5ac9a3(0x1db)]+_0x5ac9a3(0x22c):_0x13621d[_0x5ac9a3(0x1fa)]={});_0x860cec=await _0x5827e8['zzZma'](inputConfirmation,_0x493883);(_0x5827e8[_0x5ac9a3(0x239)](_0x860cec,undefined)||_0x5827e8[_0x5ac9a3(0x225)](_0x860cec,null)||!(_0x5827e8[_0x5ac9a3(0x205)](_0x860cec[_0x5ac9a3(0x23c)](),'y')||_0x5827e8['VjtWu'](_0x860cec[_0x5ac9a3(0x23c)](),'n')))&&(_0x5827e8[_0x5ac9a3(0x211)](_0x5827e8[_0x5ac9a3(0x22e)],_0x5827e8['YixYZ'])?(_0x193bf8[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x209)]),_0x4b8fd2[_0x5ac9a3(0x214)](0x1)):(console[_0x5ac9a3(0x221)](_0x5827e8['vDzyc']),await _0x5827e8[_0x5ac9a3(0x1c5)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['NOWkX'],null,_0x39fee5),process[_0x5ac9a3(0x214)](0x1)));_0x5827e8[_0x5ac9a3(0x225)](_0x860cec[_0x5ac9a3(0x23c)](),'n')&&(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x23b)],_0x5827e8[_0x5ac9a3(0x23b)])?process[_0x5ac9a3(0x214)](0x0):_0x3cefe9[_0x5ac9a3(0x1c4)]('Cluster:\x20'+_0x29ac6b[_0x5ac9a3(0x200)]+_0x5ac9a3(0x20a)));global_registry[_0x5ac9a3(0x1c9)]=_0x30a118[_0x5ac9a3(0x1d5)];const _0x51dc44=_0x30a118['cloudProvider'],_0x3d9128=_0x5827e8['FSgKZ'](getCloudProviderObject,_0x51dc44,_0x30a118['clusterName'],_0x30a118[_0x5ac9a3(0x231)]),_0x3f7a6c=_0x412fdb[_0x5ac9a3(0x1fa)];if(_0x5827e8['QphRk'](_0x3f7a6c[_0x51dc44],undefined)){if(_0x5827e8[_0x5ac9a3(0x218)](_0x5827e8[_0x5ac9a3(0x213)],_0x5827e8[_0x5ac9a3(0x237)])){logger['info'](_0x5827e8[_0x5ac9a3(0x240)]);_0x5827e8[_0x5ac9a3(0x239)](_0x412fdb[_0x5ac9a3(0x1fa)],undefined)&&(_0x5827e8[_0x5ac9a3(0x224)](_0x5827e8[_0x5ac9a3(0x1d6)],_0x5827e8[_0x5ac9a3(0x1e7)])?_0x412fdb[_0x5ac9a3(0x1fa)]={}:_0x4446b6[_0x5ac9a3(0x214)](0x0));_0x412fdb[_0x5ac9a3(0x1fa)][_0x51dc44]={};const _0x4ceef0=await _0x5827e8[_0x5ac9a3(0x1ee)](inputCloudProviderKeys,_0x51dc44,_0x412fdb,_0x3d9128);fs[_0x5ac9a3(0x229)](_0x5827e8[_0x5ac9a3(0x23a)](getCredentialsPath),JSON[_0x5ac9a3(0x1dd)](_0x4ceef0)),logger['debug'](_0x5827e8[_0x5ac9a3(0x1cd)]);}else _0x48c46b[_0x5ac9a3(0x212)](_0x5ac9a3(0x21e)),_0x185b61[_0x5ac9a3(0x214)](0x0);}else logger[_0x5ac9a3(0x212)](_0x5827e8['QXxrX']),await _0x3d9128['fetchLocalCreds'](_0x3f7a6c);_0x3d9128[_0x5ac9a3(0x1d7)]();const _0x33ff5f=_0x5827e8[_0x5ac9a3(0x1d9)](kebabCase,_0x30a118[_0x5ac9a3(0x231)]),[_0x1a31ab,_0x46943b,_0x2b67e9,_0x77c032,_0xa09b94,_0x40dff9]=await _0x5827e8[_0x5ac9a3(0x248)](createK8sClient,_0x3d9128);await _0x5827e8['qdesi'](removeGridComponents,_0x1a31ab,_0x46943b,_0x2b67e9,_0x77c032,_0x33ff5f);if(_0x27722d[_0x5ac9a3(0x1cf)]){const _0x474ac0=await _0x3d9128[_0x5ac9a3(0x249)]();_0x474ac0?await _0x3d9128[_0x5ac9a3(0x20e)](_0x1a31ab,_0x30a118[_0x5ac9a3(0x1d5)]):logger[_0x5ac9a3(0x1c4)](_0x5ac9a3(0x1ef)+_0x30a118['clusterName']+_0x5ac9a3(0x20a));}const _0x3086ac=_0x5ac9a3(0x217)+AG_API_URL+_0x5ac9a3(0x24a)+_0x39fee5[_0x5ac9a3(0x1f7)],_0x5178f5={};_0x5178f5[_0x5ac9a3(0x1de)]=_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1de)],_0x5178f5[_0x5ac9a3(0x1e0)]=_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1e0)];const _0x35b45f={};_0x35b45f[_0x5ac9a3(0x22a)]=_0x3086ac,_0x35b45f[_0x5ac9a3(0x236)]=_0x5827e8['PcstK'],_0x35b45f[_0x5ac9a3(0x208)]=_0x5178f5;const _0x4503b1=_0x35b45f,_0x5e9417=await _0x5827e8[_0x5ac9a3(0x1d9)](promisifiedRequest,_0x4503b1);_0x5827e8[_0x5ac9a3(0x218)](_0x5e9417,null)&&_0x5827e8[_0x5ac9a3(0x224)](_0x5e9417,undefined)&&_0x5827e8[_0x5ac9a3(0x239)](_0x5e9417[_0x5ac9a3(0x21f)],0xc8)&&(logger[_0x5ac9a3(0x212)](_0x5ac9a3(0x21e)),process['exit'](0x0)),logger[_0x5ac9a3(0x221)](_0x5ac9a3(0x223)+JSON[_0x5ac9a3(0x1dd)](_0x5e9417)),await _0x5827e8[_0x5ac9a3(0x1cb)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x227)],_0x408363,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}_0x5827e8[_0x5ac9a3(0x1ea)](_0x408363[_0x5ac9a3(0x21f)],0x191)&&(logger[_0x5ac9a3(0x221)](_0x5ac9a3(0x234)),await _0x5827e8[_0x5ac9a3(0x219)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes['ERROR'],_0x5827e8[_0x5ac9a3(0x22d)],null,_0x39fee5),process['exit'](0x1)),_0x5827e8['kCgHR'](_0x408363[_0x5ac9a3(0x21f)],0x190)&&(logger['error'](JSON[_0x5ac9a3(0x1f6)](_0x408363[_0x5ac9a3(0x1ca)])['message']),await _0x5827e8[_0x5ac9a3(0x1fd)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x23e)],null,_0x39fee5),process[_0x5ac9a3(0x214)](0x1)),logger['error'](_0x5ac9a3(0x215)+JSON[_0x5ac9a3(0x1dd)](_0x408363)),await _0x5827e8[_0x5ac9a3(0x1f1)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['XpiCT'],_0x408363,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}catch(_0xc75ba1){logger[_0x5ac9a3(0x221)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0xc75ba1[_0x5ac9a3(0x235)]),await _0x5827e8['seoCQ'](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['ATdfT'],_0xc75ba1,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}};function a12_0xdfb8(){const _0x2dbedc=['options','stringify','username','Delete\x20an\x20Automation\x20grid.','password','8722756piHfBg','requestId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ERROR','765976upeIhM','help','cLjXn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','BlzpY','VRswv','VdTuC','jDIqI','FSgKZ','Cluster:\x20','../../utils/createk8sClient','jmIEl','CFVrj','../../utils/userInput','fpsIp','MFgFW','parse','gridId','../../utils/instrumentationUtils','command','cloudProvider','pzlTF','ucOBZ','MtyKJ','148317iuLymm','request','clusterName','RfrhM','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','epilogue','qswNq','../../config/constants','lOmQb','auth','myjul','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','delete','invalid-input','hOBJH','deleteCluster','handler','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','ynwRq','info','KPohX','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','https://','cUpVz','ALXHJ','nxKtX','XqYhA','../../config/logger','5212KQojHA','Succesfully\x20deleted\x20the\x20grid','statusCode','PAcOk','error','KJaoY','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','GHdYt','QphRk','util','XpiCT','invalid-grid-id','writeFileSync','url','\x22\x20with\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','rnsFO','QijuP','HHRzf','VsIgV','name','RdLlJ','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','method','Herak','SmgVC','cDein','WKDsR','jjhtv','toLowerCase','../../utils/utilityMethods','JxMfq','grid-id','qRjDv','grid','DELETE','wqsbK','../../utils/gridComponents','166805cNREAd','unauthorised','3760326YDOIzf','ScSCe','isBrowserstackCluster','/packages/cli/grid/','igxLH','NZGuo','uInUx','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','186EeNqRj','171VVczgJ','nTKJM','warn','Pmdop','\x22\x20and\x20ID\x20','usage','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','clusterRegion','body','HRLIR','description','YRraz','readFileSync','onlyGridInCluster','existsSync','INFO','../../cloudproviders/utils','Browserstack','yCBdD','region','XOwhS','configureIfNotConfigured','promisify','zzZma','171004yiHIoO','clusterId'];a12_0xdfb8=function(){return _0x2dbedc;};return a12_0xdfb8();}
1
+ const a12_0x101f18=a12_0x2fab;function a12_0x2fab(_0x3b3a86,_0xc3a3b1){const _0x5c2a0b=a12_0x5c2a();return a12_0x2fab=function(_0x2fab63,_0x4d2ab8){_0x2fab63=_0x2fab63-0x15a;let _0x3878ee=_0x5c2a0b[_0x2fab63];return _0x3878ee;},a12_0x2fab(_0x3b3a86,_0xc3a3b1);}(function(_0x2d23d5,_0x35ae37){const _0x562772=a12_0x2fab,_0x4dcee4=_0x2d23d5();while(!![]){try{const _0x607f5d=-parseInt(_0x562772(0x16f))/0x1+-parseInt(_0x562772(0x173))/0x2+parseInt(_0x562772(0x1ce))/0x3*(-parseInt(_0x562772(0x170))/0x4)+-parseInt(_0x562772(0x1ab))/0x5*(-parseInt(_0x562772(0x1ac))/0x6)+-parseInt(_0x562772(0x183))/0x7*(parseInt(_0x562772(0x184))/0x8)+parseInt(_0x562772(0x187))/0x9*(-parseInt(_0x562772(0x1a5))/0xa)+-parseInt(_0x562772(0x18f))/0xb*(-parseInt(_0x562772(0x1db))/0xc);if(_0x607f5d===_0x35ae37)break;else _0x4dcee4['push'](_0x4dcee4['shift']());}catch(_0x53b4ab){_0x4dcee4['push'](_0x4dcee4['shift']());}}}(a12_0x5c2a,0x39f68));const fs=require('fs'),util=require(a12_0x101f18(0x1dd)),request=require(a12_0x101f18(0x1c9)),{v4:uuidv4}=require(a12_0x101f18(0x1b8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x101f18(0x1b4)),{logger}=require(a12_0x101f18(0x1c7)),{getCloudProviderObject}=require(a12_0x101f18(0x1bc)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a12_0x101f18(0x1e3)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x101f18(0x18e)),{createK8sClient}=require(a12_0x101f18(0x1c6)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x101f18(0x15f)),promisifiedRequest=util[a12_0x101f18(0x1d5)](request);exports[a12_0x101f18(0x178)]='grid',exports['desc']=a12_0x101f18(0x1a8),exports['builder']=function(_0x58bf23){const _0x101e0e=a12_0x101f18,_0x38b025={};_0x38b025[_0x101e0e(0x177)]=_0x101e0e(0x1d8),_0x38b025['ruuKb']=_0x101e0e(0x172),_0x38b025['lsJsz']=_0x101e0e(0x1b9);const _0x362205=_0x38b025,_0x3e0a27={};_0x3e0a27[_0x101e0e(0x175)]=_0x362205[_0x101e0e(0x177)],_0x3e0a27['type']=_0x362205[_0x101e0e(0x182)];const _0x1a5de6={};return _0x1a5de6['grid-id']=_0x3e0a27,_0x58bf23[_0x101e0e(0x163)](HELP_HEADER_MESSAGE[_0x101e0e(0x1e2)])[_0x101e0e(0x166)](HELP_FOOTER_MESSAGE)[_0x101e0e(0x1b1)](_0x1a5de6)[_0x101e0e(0x1b9)](_0x362205[_0x101e0e(0x1af)])[_0x101e0e(0x1d2)];},exports[a12_0x101f18(0x1c1)]=async function(_0xbefbfb){const _0x5277c4=a12_0x101f18,_0x339835={'PQAdA':_0x5277c4(0x193),'eXDZD':_0x5277c4(0x1d8),'DtrOM':_0x5277c4(0x172),'vGSWT':'help','fVCqH':function(_0x5d6480){return _0x5d6480();},'fEHSY':function(_0x223ebc,_0x3ec455){return _0x223ebc===_0x3ec455;},'Fgidm':_0x5277c4(0x195),'qBNQy':_0x5277c4(0x1e1),'utYDe':_0x5277c4(0x1d3),'YRLMq':function(_0x4f5741,_0x587bd2,_0x4b1dd7,_0x5b6e33,_0x369ea4,_0x576de9,_0x7ed169){return _0x4f5741(_0x587bd2,_0x4b1dd7,_0x5b6e33,_0x369ea4,_0x576de9,_0x7ed169);},'DzTVG':'delete-grid-called','wXUCn':_0x5277c4(0x15e),'aEGkT':function(_0x57efbd,_0x70fd65,_0x107323,_0x9099c,_0x452efb,_0x53b94b,_0x305335){return _0x57efbd(_0x70fd65,_0x107323,_0x9099c,_0x452efb,_0x53b94b,_0x305335);},'KOkLX':function(_0x1bc89d,_0x47aec2){return _0x1bc89d!==_0x47aec2;},'IgbTO':_0x5277c4(0x1e0),'jzVYE':_0x5277c4(0x1cd),'SIkMn':function(_0x436d6d,_0x132c98,_0x138ab8,_0x426440){return _0x436d6d(_0x132c98,_0x138ab8,_0x426440);},'NvMJe':function(_0x263644,_0x483e57){return _0x263644===_0x483e57;},'QlPAE':_0x5277c4(0x1b6),'ZAWUB':function(_0x4cdeb0,_0x972e39){return _0x4cdeb0!==_0x972e39;},'OHDuu':_0x5277c4(0x188),'KmfFF':'iWHFV','SEuAl':function(_0x56f96b,_0x901595){return _0x56f96b(_0x901595);},'oXCFE':function(_0x4eb471,_0x418536){return _0x4eb471===_0x418536;},'Zxapi':_0x5277c4(0x1e4),'jFpHo':'PCNdI','vFMLp':_0x5277c4(0x1a1),'tTeLi':_0x5277c4(0x1c2),'NemkO':function(_0x16d8cf,_0x4a0542){return _0x16d8cf===_0x4a0542;},'ZkGDf':_0x5277c4(0x19e),'XBxlk':_0x5277c4(0x1e7),'YdbiJ':function(_0x13582c,_0x1d5f3b){return _0x13582c!==_0x1d5f3b;},'mNlJp':'kEMtJ','jCPdA':_0x5277c4(0x1b3),'cmLHd':_0x5277c4(0x1ca),'Cbbhc':function(_0x559198,_0x4db6f9){return _0x559198===_0x4db6f9;},'Zgatu':_0x5277c4(0x1c4),'zbbtG':function(_0x3a836e,_0x186ae6,_0x22b251,_0x2e55e9){return _0x3a836e(_0x186ae6,_0x22b251,_0x2e55e9);},'yNstX':function(_0x1916f6){return _0x1916f6();},'gQsYX':_0x5277c4(0x1e8),'mLHSb':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','hdDVR':function(_0x3e5181,_0x399d70,_0x2ba3a1,_0x542ff8,_0x848b1,_0x3ce8c6){return _0x3e5181(_0x399d70,_0x2ba3a1,_0x542ff8,_0x848b1,_0x3ce8c6);},'ioffO':'DELETE','lKbuF':function(_0x565091,_0x2f175b){return _0x565091!==_0x2f175b;},'teDVt':function(_0x49fd49,_0x521240){return _0x49fd49===_0x521240;},'ggDVy':function(_0x141551,_0x58741a,_0x385fc1,_0x4f9dca,_0x3aeaef,_0x13c2b7,_0x2d9554){return _0x141551(_0x58741a,_0x385fc1,_0x4f9dca,_0x3aeaef,_0x13c2b7,_0x2d9554);},'OolSr':_0x5277c4(0x16c),'YgkmH':function(_0x28c7e7,_0x524286){return _0x28c7e7===_0x524286;},'bTCNI':_0x5277c4(0x19c),'iazPW':function(_0x2e728a,_0x975935){return _0x2e728a===_0x975935;},'DRVGo':_0x5277c4(0x160),'wBiVX':_0x5277c4(0x1d9)};try{global_registry[_0x5277c4(0x1a7)]=_0x339835[_0x5277c4(0x1d4)](uuidv4);!fs[_0x5277c4(0x19b)](_0x339835[_0x5277c4(0x1d4)](getCredentialsPath))&&(_0x339835['fEHSY'](_0x339835[_0x5277c4(0x198)],_0x339835[_0x5277c4(0x1c3)])?_0x5e817f[_0x5277c4(0x1bb)]={}:(console[_0x5277c4(0x192)](_0x339835['utYDe']),await _0x339835[_0x5277c4(0x196)](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x16b)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1)));_0x339835[_0x5277c4(0x174)](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1a0)],null,null,_0xbefbfb);!_0xbefbfb[_0x5277c4(0x186)]&&(_0x339835[_0x5277c4(0x1de)](_0x339835['IgbTO'],_0x339835['jzVYE'])?(console[_0x5277c4(0x192)](_0x339835['PQAdA']),process[_0x5277c4(0x185)](0x1)):_0x249c10=_0x5277c4(0x1e6)+_0x2aef6b['name']+_0x5277c4(0x15b)+_0x4d705d['id']+_0x5277c4(0x167)+_0x1f3ec8[_0x5277c4(0x1e5)]+'\x22\x20with\x20ID\x20'+_0x2a0d49[_0x5277c4(0x16a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x5a9e05=JSON[_0x5277c4(0x1d0)](fs[_0x5277c4(0x194)](_0x339835['fVCqH'](getCredentialsPath))),[_0xfe23fa,_0x593d2b]=await _0x339835['SIkMn'](getGridDetails,_0x5a9e05[_0x5277c4(0x1b6)][_0x5277c4(0x1aa)],_0x5a9e05['Browserstack'][_0x5277c4(0x19a)],_0xbefbfb['gridId']);if(_0x593d2b){const _0x110702=_0x593d2b[_0x5277c4(0x1bf)];let _0x43cce0=_0x5277c4(0x1e6)+_0x110702['name']+_0x5277c4(0x15b)+_0x110702['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x75b7e4;_0x593d2b[_0x5277c4(0x1c8)]&&_0x339835[_0x5277c4(0x16e)](_0x593d2b['clusterSpawnedVia'],_0x339835[_0x5277c4(0x1a4)])&&(_0x339835[_0x5277c4(0x16d)](_0x339835['OHDuu'],_0x339835[_0x5277c4(0x199)])?_0x43cce0=_0x5277c4(0x1e6)+_0x110702[_0x5277c4(0x18b)]+_0x5277c4(0x15b)+_0x110702['id']+_0x5277c4(0x167)+_0x110702['clusterName']+_0x5277c4(0x191)+_0x110702[_0x5277c4(0x16a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x513421[_0x5277c4(0x192)](_0x339835['PQAdA']),_0x5b73e5[_0x5277c4(0x185)](0x1)));_0x75b7e4=await _0x339835[_0x5277c4(0x168)](inputConfirmation,_0x43cce0);if(_0x339835[_0x5277c4(0x16e)](_0x75b7e4,undefined)||_0x339835[_0x5277c4(0x162)](_0x75b7e4,null)||!(_0x339835[_0x5277c4(0x16e)](_0x75b7e4['toLowerCase'](),'y')||_0x339835[_0x5277c4(0x162)](_0x75b7e4[_0x5277c4(0x197)](),'n'))){if(_0x339835[_0x5277c4(0x16d)](_0x339835['Zxapi'],_0x339835['jFpHo']))console['error'](_0x339835[_0x5277c4(0x1d6)]),await _0x339835[_0x5277c4(0x196)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x161)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1);else{const _0x23ac57={};_0x23ac57[_0x5277c4(0x175)]=_0x339835[_0x5277c4(0x1b5)],_0x23ac57[_0x5277c4(0x190)]=_0x339835['DtrOM'];const _0x2dae1c={};return _0x2dae1c[_0x5277c4(0x1d1)]=_0x23ac57,_0x245d54[_0x5277c4(0x163)](_0x1fc6db['delete'])[_0x5277c4(0x166)](_0x4c568f)[_0x5277c4(0x1b1)](_0x2dae1c)[_0x5277c4(0x1b9)](_0x339835[_0x5277c4(0x1d7)])[_0x5277c4(0x1d2)];}}_0x339835[_0x5277c4(0x162)](_0x75b7e4['toLowerCase'](),'n')&&(_0x339835['NemkO'](_0x339835[_0x5277c4(0x165)],_0x339835['XBxlk'])?_0x30d6e2[_0x5277c4(0x185)](0x0):process[_0x5277c4(0x185)](0x0));global_registry[_0x5277c4(0x19d)]=_0x110702[_0x5277c4(0x169)];const _0xaf76b2=_0x110702[_0x5277c4(0x1bb)],_0x3bd251=_0x339835[_0x5277c4(0x1dc)](getCloudProviderObject,_0xaf76b2,_0x110702[_0x5277c4(0x1e5)],_0x110702[_0x5277c4(0x18b)]),_0x4bf480=_0x5a9e05[_0x5277c4(0x1bb)];if(_0x339835['oXCFE'](_0x4bf480[_0xaf76b2],undefined)){if(_0x339835[_0x5277c4(0x180)](_0x339835[_0x5277c4(0x176)],_0x339835[_0x5277c4(0x1cc)])){logger['info'](_0x339835[_0x5277c4(0x1da)]);_0x339835[_0x5277c4(0x181)](_0x5a9e05[_0x5277c4(0x1bb)],undefined)&&(_0x339835['oXCFE'](_0x339835[_0x5277c4(0x1be)],_0x339835['Zgatu'])?_0x5a9e05[_0x5277c4(0x1bb)]={}:(_0x49e1fe['info']('Succesfully\x20deleted\x20the\x20grid'),_0x221492['exit'](0x0)));_0x5a9e05[_0x5277c4(0x1bb)][_0xaf76b2]={};const _0x29131e=await _0x339835[_0x5277c4(0x1a3)](inputCloudProviderKeys,_0xaf76b2,_0x5a9e05,_0x3bd251);fs[_0x5277c4(0x1cf)](_0x339835['yNstX'](getCredentialsPath),JSON[_0x5277c4(0x19f)](_0x29131e)),logger[_0x5277c4(0x1a9)](_0x339835['gQsYX']);}else _0x2b6ed2[_0x5277c4(0x1c0)](_0x5277c4(0x17d)+_0x1b158b[_0x5277c4(0x1e5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}else logger['info'](_0x339835[_0x5277c4(0x1cb)]),await _0x3bd251[_0x5277c4(0x1a2)](_0x4bf480);_0x3bd251['configureIfNotConfigured']();const _0x19849e=_0x339835[_0x5277c4(0x168)](kebabCase,_0x110702[_0x5277c4(0x18b)]),[_0x43e6a6,_0x546218,_0x202b55,_0x24f8a8,_0x2f3fdf,_0x461e82]=await _0x339835['SEuAl'](createK8sClient,_0x3bd251);await _0x339835[_0x5277c4(0x1b0)](removeGridComponents,_0x43e6a6,_0x546218,_0x202b55,_0x24f8a8,_0x19849e);if(_0x593d2b['onlyGridInCluster']){const _0x19ff66=await _0x3bd251[_0x5277c4(0x17c)]();_0x19ff66?await _0x3bd251[_0x5277c4(0x1df)](_0x43e6a6,_0x110702[_0x5277c4(0x169)]):logger[_0x5277c4(0x1c0)](_0x5277c4(0x17d)+_0x110702['clusterName']+_0x5277c4(0x1c5));}const _0xbbf03b=_0x5277c4(0x18d)+AG_API_URL+_0x5277c4(0x1b7)+_0xbefbfb[_0x5277c4(0x186)],_0x1db0f4={};_0x1db0f4['username']=_0x5a9e05[_0x5277c4(0x1b6)][_0x5277c4(0x1aa)],_0x1db0f4[_0x5277c4(0x19a)]=_0x5a9e05[_0x5277c4(0x1b6)]['password'];const _0x19d249={};_0x19d249[_0x5277c4(0x179)]=_0xbbf03b,_0x19d249[_0x5277c4(0x1b2)]=_0x339835[_0x5277c4(0x1a6)],_0x19d249[_0x5277c4(0x171)]=_0x1db0f4;const _0x18b338=_0x19d249,_0x4f23b4=await _0x339835[_0x5277c4(0x168)](promisifiedRequest,_0x18b338);_0x339835[_0x5277c4(0x180)](_0x4f23b4,null)&&_0x339835['lKbuF'](_0x4f23b4,undefined)&&_0x339835[_0x5277c4(0x15c)](_0x4f23b4[_0x5277c4(0x15a)],0xc8)&&(logger[_0x5277c4(0x1bf)](_0x5277c4(0x18c)),process[_0x5277c4(0x185)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x5277c4(0x19f)](_0x4f23b4)),await _0x339835[_0x5277c4(0x18a)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1bd)],_0xfe23fa,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}_0x339835['YgkmH'](_0xfe23fa['statusCode'],0x191)&&(logger[_0x5277c4(0x192)](_0x5277c4(0x15d)),await _0x339835['aEGkT'](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes['ERROR'],_0x339835[_0x5277c4(0x189)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1)),_0x339835[_0x5277c4(0x17a)](_0xfe23fa[_0x5277c4(0x15a)],0x190)&&(logger['error'](JSON[_0x5277c4(0x1d0)](_0xfe23fa[_0x5277c4(0x1ae)])[_0x5277c4(0x17e)]),await _0x339835['aEGkT'](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1ba)],_0x339835['DRVGo'],null,_0xbefbfb),process['exit'](0x1)),logger[_0x5277c4(0x192)](_0x5277c4(0x164)+JSON[_0x5277c4(0x19f)](_0xfe23fa)),await _0x339835['ggDVy'](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1bd)],_0xfe23fa,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}catch(_0x566ee6){logger[_0x5277c4(0x192)](_0x5277c4(0x17b)+_0x566ee6['stack']),await _0x339835[_0x5277c4(0x174)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1ad)],_0x566ee6,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}};function a12_0x5c2a(){const _0x461e25=['jCPdA','oJrbg','1215402CgiPFw','writeFileSync','parse','grid-id','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fVCqH','promisify','vFMLp','vGSWT','Pass\x20the\x20ID\x20of\x20the\x20Grid','unknown-error','cmLHd','3135228ESxYsq','SIkMn','util','KOkLX','deleteCluster','XupiH','cnAqh','delete','../../utils/instrumentationUtils','kyCeu','clusterName','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','HtwnO','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','statusCode','\x22\x20and\x20ID\x20','teDVt','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','../../utils/utilityMethods','invalid-grid-id','tTeLi','oXCFE','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZkGDf','epilogue','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','SEuAl','region','clusterId','wXUCn','server-error','ZAWUB','NvMJe','355166IhPMgl','4LRJecc','auth','string','439466jJEnwU','aEGkT','description','mNlJp','cfOLB','command','url','iazPW','Failed\x20to\x20delete\x20resources!\x20Error:\x20','isBrowserstackCluster','Cluster:\x20','message','DzTVG','YdbiJ','Cbbhc','ruuKb','2868383dqeuWZ','8HQbOnx','exit','gridId','9DfwQYE','TvOfq','bTCNI','ggDVy','name','Succesfully\x20deleted\x20the\x20grid','https://','../../utils/userInput','77aIBYex','type','\x22\x20with\x20ID\x20','error','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','readFileSync','lupQm','YRLMq','toLowerCase','Fgidm','KmfFF','password','existsSync','unauthorised','clusterRegion','WGFSK','stringify','INFO','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fetchLocalCreds','zbbtG','QlPAE','2957590pAYaiC','ioffO','requestId','Delete\x20an\x20Automation\x20grid.','debug','username','455FKeoln','6204TWKvqI','wBiVX','body','lsJsz','hdDVR','options','method','gTCVJ','../../config/constants','eXDZD','Browserstack','/packages/cli/grid/','uuid','help','ERROR','cloudProvider','../../cloudproviders/utils','OolSr','Zgatu','info','warn','handler','invalid-input','qBNQy','MvWbN','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/createk8sClient','../../config/logger','onlyGridInCluster','request','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','mLHSb'];a12_0x5c2a=function(){return _0x461e25;};return a12_0x5c2a();}
@@ -1 +1 @@
1
- const a13_0x46a5d8=a13_0x337b;(function(_0x4691b0,_0x220cb6){const _0x17c03d=a13_0x337b,_0x21a454=_0x4691b0();while(!![]){try{const _0xce1e29=parseInt(_0x17c03d(0x20e))/0x1+parseInt(_0x17c03d(0x1d9))/0x2+parseInt(_0x17c03d(0x208))/0x3+parseInt(_0x17c03d(0x204))/0x4*(-parseInt(_0x17c03d(0x20f))/0x5)+-parseInt(_0x17c03d(0x216))/0x6*(parseInt(_0x17c03d(0x218))/0x7)+parseInt(_0x17c03d(0x1b6))/0x8*(-parseInt(_0x17c03d(0x1da))/0x9)+-parseInt(_0x17c03d(0x1fa))/0xa*(-parseInt(_0x17c03d(0x1d2))/0xb);if(_0xce1e29===_0x220cb6)break;else _0x21a454['push'](_0x21a454['shift']());}catch(_0x513372){_0x21a454['push'](_0x21a454['shift']());}}}(a13_0x4a99,0x8e24e));function a13_0x337b(_0x32a7fd,_0xac42cb){const _0x4a9971=a13_0x4a99();return a13_0x337b=function(_0x337b86,_0x5229b2){_0x337b86=_0x337b86-0x1b2;let _0x3d2918=_0x4a9971[_0x337b86];return _0x3d2918;},a13_0x337b(_0x32a7fd,_0xac42cb);}function a13_0x4a99(){const _0x55bac7=['uuid','BROWSERSTACK_ACCESS_KEY','../utils/utilityMethods','statusCode','mfATT','xJrYl','parse','INFO','options','readFileSync','PWUlY','writeFileSync','https://','pfDjG','GQQgL','bstackUsername','zwSJm','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','KYWeW','../utils/instrumentationUtils','debug','BROWSERSTACK_USERNAME','AKLhQ','WtSeW','../config/logger','init','eZuYV','9064mHvvDF','../config/constants','env','AWegI','error','recommendCommands','qQwyi','552902cjGUES','19539caXkmF','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','Browserstack','kGlkM','oesWX','strict','zsYlL','igvOq','mkdirSync','iWaGv','epilogue','string','exit','command','GET','TFAUW','apOyD','nkaAy','handler','OHhum','builder','/automate/plan.json','hvUQH','type','ppGGU','wrong-creds','help','WFVBG','pGyYk','RUsKp','ERROR','15360eJuEZU','UoqIV','bstack-username','BJrOj','PcLvM','password','username','pWIMr','byzTU','promisify','100780AysVTQ','XHvAP','zGSHW','OTFXd','438804hytVHV','unknown-error','kIyLP','QzUiW','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WfAFH','763495evToPw','45ggrpBU','rmIYp','KCiEL','existsSync','utvJd','description','method','15522GkDIqX','WvYju','2548olOsYf','argv','ECzgj','bstackAccesskey','init-called','eRvek','IqkKT','usage','stringify','2584OewUFF'];a13_0x4a99=function(){return _0x55bac7;};return a13_0x4a99();}const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a13_0x46a5d8(0x1b7)),{logger}=require(a13_0x46a5d8(0x1cf)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x46a5d8(0x1d3)),{getDirForConfig,getCredentialsPath}=require(a13_0x46a5d8(0x1b9)),{sendInstrumentationEvent}=require(a13_0x46a5d8(0x1ca)),promisifiedRequest=util[a13_0x46a5d8(0x203)](request);exports[a13_0x46a5d8(0x1e8)]=a13_0x46a5d8(0x1d0),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a13_0x46a5d8(0x1ef)]=function(_0x4701f4){const _0x354162=a13_0x46a5d8,_0x46d529={};_0x46d529['zsYlL']=_0x354162(0x20c),_0x46d529['BJrOj']='string',_0x46d529['GMZBx']=_0x354162(0x1db),_0x46d529[_0x354162(0x1cd)]=_0x354162(0x1f5);const _0x57be0c=_0x46d529,_0x28b6e2={};_0x28b6e2[_0x354162(0x214)]=_0x57be0c[_0x354162(0x1e1)],_0x28b6e2['type']=_0x57be0c[_0x354162(0x1fd)];const _0x5d7e5e={};_0x5d7e5e['description']=_0x57be0c['GMZBx'],_0x5d7e5e[_0x354162(0x1f2)]=_0x57be0c[_0x354162(0x1fd)];const _0x5ebd13={};return _0x5ebd13[_0x354162(0x1fc)]=_0x28b6e2,_0x5ebd13[_0x354162(0x1dc)]=_0x5d7e5e,_0x4701f4[_0x354162(0x1b4)](HELP_HEADER_MESSAGE['init'])[_0x354162(0x1e5)](HELP_FOOTER_MESSAGE)[_0x354162(0x1bf)](_0x5ebd13)[_0x354162(0x1d7)]()[_0x354162(0x1e0)]()[_0x354162(0x1f5)](_0x57be0c[_0x354162(0x1cd)])[_0x354162(0x219)];},exports[a13_0x46a5d8(0x1ed)]=async function(_0xba4dca){const _0x25a429=a13_0x46a5d8,_0x240a86={'WFVBG':'utf-8','PWUlY':_0x25a429(0x20c),'pfDjG':_0x25a429(0x1e6),'ppGGU':_0x25a429(0x1db),'eRvek':_0x25a429(0x1f5),'PcLvM':function(_0x20e70d){return _0x20e70d();},'oesWX':function(_0x24f5c5,_0x420a17,_0x199c5c,_0x3a3f71,_0x55f2d7,_0x2557ac,_0x338008){return _0x24f5c5(_0x420a17,_0x199c5c,_0x3a3f71,_0x55f2d7,_0x2557ac,_0x338008);},'WtSeW':_0x25a429(0x21c),'UoqIV':function(_0x537f23){return _0x537f23();},'rmIYp':function(_0x238463,_0x14fa27){return _0x238463===_0x14fa27;},'RUsKp':_0x25a429(0x1d5),'byzTU':function(_0x1149cf,_0x7e5e1a){return _0x1149cf!==_0x7e5e1a;},'hpSpD':_0x25a429(0x1c5),'zGSHW':_0x25a429(0x20a),'pGyYk':'zOVVr','OHhum':_0x25a429(0x20b),'CXxSP':'iLuGl','xJrYl':_0x25a429(0x1eb),'kGlkM':function(_0x296f54,_0x9244c){return _0x296f54===_0x9244c;},'vrWCm':function(_0x4a02cb,_0x2e3e0a){return _0x4a02cb!==_0x2e3e0a;},'eZuYV':_0x25a429(0x1c9),'mfATT':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','IqkKT':_0x25a429(0x1e9),'WvYju':function(_0x2125d6,_0x33880d){return _0x2125d6(_0x33880d);},'KCiEL':function(_0x566af0,_0x597e4a){return _0x566af0!==_0x597e4a;},'VYbYN':function(_0x74b81b,_0x2b5cd0){return _0x74b81b!==_0x2b5cd0;},'cTFaY':function(_0x4e25a0,_0x552e0e){return _0x4e25a0===_0x552e0e;},'BgfCJ':function(_0x210360,_0x24285d){return _0x210360===_0x24285d;},'hvUQH':'qTqQp','WfAFH':'wTIUC','pSxBQ':function(_0xa5a356,_0xfff476){return _0xa5a356!==_0xfff476;},'ECzgj':_0x25a429(0x1e4),'XHvAP':function(_0x6f2b13){return _0x6f2b13();},'utvJd':_0x25a429(0x1ea),'nkaAy':_0x25a429(0x201),'OTFXd':_0x25a429(0x1c8),'zwSJm':_0x25a429(0x1f4),'qQwyi':function(_0x3a0781,_0x27b9d9,_0x126e8b,_0x19a372,_0x34572d,_0x5daa51,_0x29ba53){return _0x3a0781(_0x27b9d9,_0x126e8b,_0x19a372,_0x34572d,_0x5daa51,_0x29ba53);},'igvOq':_0x25a429(0x209)};try{global_registry['requestId']=_0x240a86[_0x25a429(0x1fe)](uuidv4),_0x240a86[_0x25a429(0x1df)](sendInstrumentationEvent,_0xba4dca,_0x240a86['WtSeW'],messageTypes[_0x25a429(0x1be)],null,null,_0xba4dca);const _0x597932=_0x240a86[_0x25a429(0x1fb)](getDirForConfig);!fs[_0x25a429(0x212)](_0x597932)&&(_0x240a86[_0x25a429(0x210)](_0x240a86[_0x25a429(0x1f8)],_0x240a86['RUsKp'])?fs[_0x25a429(0x1e3)](_0x597932):_0x319429=_0x1ae831[_0x25a429(0x1d4)][_0x25a429(0x1cc)]);let _0x5a06f3,_0x4cdf18;process[_0x25a429(0x1d4)][_0x25a429(0x1cc)]&&(_0x240a86[_0x25a429(0x202)](_0x240a86['hpSpD'],_0x240a86['hpSpD'])?_0x14035e=_0x501110[_0x25a429(0x1bd)](_0x53849f[_0x25a429(0x1c0)](_0x35fc07,_0x240a86[_0x25a429(0x1f6)])):_0x5a06f3=process[_0x25a429(0x1d4)][_0x25a429(0x1cc)]);process[_0x25a429(0x1d4)][_0x25a429(0x1b8)]&&(_0x240a86[_0x25a429(0x202)](_0x240a86[_0x25a429(0x206)],_0x240a86[_0x25a429(0x1f7)])?_0x4cdf18=process['env'][_0x25a429(0x1b8)]:_0x10661a=_0x2f9ca7[_0x25a429(0x1d4)][_0x25a429(0x1b8)]);_0xba4dca['bstackUsername']&&(_0x240a86[_0x25a429(0x202)](_0x240a86[_0x25a429(0x1ee)],_0x240a86['CXxSP'])?_0x5a06f3=_0xba4dca[_0x25a429(0x1c6)]:_0x57228c=_0x3d47b5[_0x25a429(0x1c6)]);if(_0xba4dca['bstackAccesskey']){if(_0x240a86[_0x25a429(0x210)](_0x240a86['xJrYl'],_0x240a86[_0x25a429(0x1bc)]))_0x4cdf18=_0xba4dca[_0x25a429(0x21b)];else{const _0x5d055c={};_0x5d055c['description']=_0x240a86[_0x25a429(0x1c1)],_0x5d055c[_0x25a429(0x1f2)]=_0x240a86[_0x25a429(0x1c4)];const _0x277da9={};_0x277da9[_0x25a429(0x214)]=_0x240a86[_0x25a429(0x1f3)],_0x277da9[_0x25a429(0x1f2)]=_0x240a86[_0x25a429(0x1c4)];const _0x12a3fc={};return _0x12a3fc['bstack-username']=_0x5d055c,_0x12a3fc['bstack-accesskey']=_0x277da9,_0x5c6b08[_0x25a429(0x1b4)](_0x267230[_0x25a429(0x1d0)])['epilogue'](_0x12f106)[_0x25a429(0x1bf)](_0x12a3fc)[_0x25a429(0x1d7)]()[_0x25a429(0x1e0)]()[_0x25a429(0x1f5)](_0x240a86[_0x25a429(0x1b2)])['argv'];}}if(_0x240a86[_0x25a429(0x1de)](_0x5a06f3,undefined)||_0x240a86['kGlkM'](_0x4cdf18,undefined)){if(_0x240a86['vrWCm'](_0x240a86['eZuYV'],_0x240a86[_0x25a429(0x1d1)]))_0x342ae8=!![];else{logger[_0x25a429(0x1cb)](_0x240a86[_0x25a429(0x1bb)]);const [_0x4b50a1,_0x2e56bd]=await _0x240a86[_0x25a429(0x1fb)](inputBstackKeys);_0x5a06f3=_0x4b50a1,_0x4cdf18=_0x2e56bd;}}let _0x1e9db3=![];const _0x42b89f={};_0x42b89f['url']=_0x25a429(0x1c3)+_0x5a06f3+':'+_0x4cdf18+'@'+BS_API_URL+_0x25a429(0x1f0),_0x42b89f[_0x25a429(0x215)]=_0x240a86[_0x25a429(0x1b3)];const _0x8f127b=_0x42b89f,_0x55180a=await _0x240a86[_0x25a429(0x217)](promisifiedRequest,_0x8f127b);if(_0x240a86[_0x25a429(0x211)](_0x55180a,null)&&_0x240a86['VYbYN'](_0x55180a,undefined)&&_0x240a86['cTFaY'](_0x55180a[_0x25a429(0x1ba)],0xc8)){if(_0x240a86['BgfCJ'](_0x240a86[_0x25a429(0x1f1)],_0x240a86[_0x25a429(0x20d)])){let _0x1d74b1={};const _0x422e3f=_0x240a86[_0x25a429(0x1fe)](_0xd6bc4c);_0xa5a3b9[_0x25a429(0x212)](_0x422e3f)&&(_0x1d74b1=_0x2df074[_0x25a429(0x1bd)](_0x4b86a2['readFileSync'](_0x422e3f,_0x240a86[_0x25a429(0x1f6)])));const _0x4e68fb={};_0x4e68fb[_0x25a429(0x200)]=_0x1faa35,_0x4e68fb['password']=_0x1177f3,_0x1d74b1['Browserstack']=_0x4e68fb,_0x8cd72e[_0x25a429(0x1c2)](_0x422e3f,_0xa16de3[_0x25a429(0x1b5)](_0x1d74b1)),_0x4afd6e[_0x25a429(0x1e7)](0x0);}else _0x1e9db3=!![];}if(_0x1e9db3){if(_0x240a86['pSxBQ'](_0x240a86[_0x25a429(0x21a)],_0x240a86[_0x25a429(0x21a)]))_0x44bd8a['mkdirSync'](_0x269cc2);else{let _0x10dce5={};const _0x165271=_0x240a86[_0x25a429(0x205)](getCredentialsPath);fs['existsSync'](_0x165271)&&(_0x240a86[_0x25a429(0x210)](_0x240a86[_0x25a429(0x213)],_0x240a86[_0x25a429(0x1ec)])?_0xb17de2=_0x14e61b['bstackAccesskey']:_0x10dce5=JSON[_0x25a429(0x1bd)](fs[_0x25a429(0x1c0)](_0x165271,_0x240a86[_0x25a429(0x1f6)])));const _0x19046c={};_0x19046c[_0x25a429(0x200)]=_0x5a06f3,_0x19046c[_0x25a429(0x1ff)]=_0x4cdf18,_0x10dce5[_0x25a429(0x1dd)]=_0x19046c,fs[_0x25a429(0x1c2)](_0x165271,JSON[_0x25a429(0x1b5)](_0x10dce5)),process[_0x25a429(0x1e7)](0x0);}}else logger[_0x25a429(0x1d6)](_0x240a86[_0x25a429(0x207)]),await _0x240a86[_0x25a429(0x1df)](sendInstrumentationEvent,_0xba4dca,_0x240a86[_0x25a429(0x1ce)],messageTypes[_0x25a429(0x1f9)],_0x240a86[_0x25a429(0x1c7)],null,_0xba4dca),process[_0x25a429(0x1e7)](0x1);}catch(_0x43e855){logger[_0x25a429(0x1d6)](_0x43e855['stack']),await _0x240a86[_0x25a429(0x1d8)](sendInstrumentationEvent,_0xba4dca,_0x240a86['WtSeW'],messageTypes['ERROR'],_0x240a86[_0x25a429(0x1e2)],_0x43e855,_0xba4dca),process[_0x25a429(0x1e7)](0x1);}};
1
+ function a13_0x54fb(){const _0x1e59d2=['exit','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','string','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','options','DzWpS','wrong-creds','utf-8','ZgpcA','stringify','VkosP','viWVB','/automate/plan.json','bstackUsername','help','hIFLG','tBXah','faDSG','nmWPN','NLyiz','type','init','bstack-username','gRINp','bAapV','9939123esWXKg','env','wJdGP','MVWAb','JNnpB','85HtOeaz','requestId','INFO','argv','XMImB','mkdirSync','Oqyty','readFileSync','init-called','username','desc','opypq','zaioi','url','usage','FFLTM','DpjcT','jdLag','../config/logger','iLTej','xtqTP','https://','useNm','BROWSERSTACK_ACCESS_KEY','description','parse','bstackAccesskey','TvXIG','vGmlc','vhKJO','DLjzv','builder','unknown-error','1820donjDH','GET','JxQHv','IBSAb','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','request','26fwbiiU','8ltVhZi','1285666vwlDnh','aECcn','stack','3477528CxBSFK','BROWSERSTACK_USERNAME','LCsaD','Zsyjt','dIWdN','epilogue','osXcF','CPHtE','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','rAUKc','dJuYI','80971rwFvQu','writeFileSync','60684zdjYgn','statusCode','MCJAI','137265XaYmFD','recommendCommands','ottTO','nwYDb','promisify','strict','5562403joUbNy','existsSync','VWbjt','handler','Browserstack','PjViT','../utils/instrumentationUtils','honXp','method','password','vfrpX','6EYTlcC','OuHCL','util','dLEVb','error','ERROR'];a13_0x54fb=function(){return _0x1e59d2;};return a13_0x54fb();}const a13_0x5be148=a13_0x3c96;function a13_0x3c96(_0x31d9d2,_0x462ad7){const _0x54fbb7=a13_0x54fb();return a13_0x3c96=function(_0x3c96e4,_0x3ade23){_0x3c96e4=_0x3c96e4-0x129;let _0x420371=_0x54fbb7[_0x3c96e4];return _0x420371;},a13_0x3c96(_0x31d9d2,_0x462ad7);}(function(_0x2c3ada,_0x27ca7c){const _0x1fbca4=a13_0x3c96,_0x108d11=_0x2c3ada();while(!![]){try{const _0x18d170=parseInt(_0x1fbca4(0x16d))/0x1+parseInt(_0x1fbca4(0x16b))/0x2*(-parseInt(_0x1fbca4(0x181))/0x3)+-parseInt(_0x1fbca4(0x17e))/0x4*(-parseInt(_0x1fbca4(0x143))/0x5)+-parseInt(_0x1fbca4(0x192))/0x6*(parseInt(_0x1fbca4(0x187))/0x7)+-parseInt(_0x1fbca4(0x16c))/0x8*(parseInt(_0x1fbca4(0x13e))/0x9)+-parseInt(_0x1fbca4(0x164))/0xa*(-parseInt(_0x1fbca4(0x17c))/0xb)+parseInt(_0x1fbca4(0x170))/0xc;if(_0x18d170===_0x27ca7c)break;else _0x108d11['push'](_0x108d11['shift']());}catch(_0x1b7e22){_0x108d11['push'](_0x108d11['shift']());}}}(a13_0x54fb,0xa5d6e));const fs=require('fs'),util=require(a13_0x5be148(0x194)),request=require(a13_0x5be148(0x16a)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x5be148(0x155)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0x5be148(0x18d)),promisifiedRequest=util[a13_0x5be148(0x185)](request);exports['command']=a13_0x5be148(0x13a),exports[a13_0x5be148(0x14d)]=a13_0x5be148(0x178),exports[a13_0x5be148(0x162)]=function(_0x173dc5){const _0x4fc93b=a13_0x5be148,_0x4745de={};_0x4745de[_0x4fc93b(0x12f)]=_0x4fc93b(0x168),_0x4745de[_0x4fc93b(0x14f)]=_0x4fc93b(0x19a),_0x4745de[_0x4fc93b(0x18c)]=_0x4fc93b(0x199),_0x4745de[_0x4fc93b(0x154)]=_0x4fc93b(0x133);const _0x4c4e00=_0x4745de,_0x3449b2={};_0x3449b2[_0x4fc93b(0x15b)]=_0x4c4e00[_0x4fc93b(0x12f)],_0x3449b2[_0x4fc93b(0x139)]=_0x4c4e00['zaioi'];const _0x21fccc={};_0x21fccc[_0x4fc93b(0x15b)]=_0x4c4e00[_0x4fc93b(0x18c)],_0x21fccc[_0x4fc93b(0x139)]=_0x4c4e00['zaioi'];const _0x464952={};return _0x464952[_0x4fc93b(0x13b)]=_0x3449b2,_0x464952[_0x4fc93b(0x169)]=_0x21fccc,_0x173dc5[_0x4fc93b(0x151)](HELP_HEADER_MESSAGE[_0x4fc93b(0x13a)])[_0x4fc93b(0x175)](HELP_FOOTER_MESSAGE)[_0x4fc93b(0x129)](_0x464952)[_0x4fc93b(0x182)]()[_0x4fc93b(0x186)]()[_0x4fc93b(0x133)](_0x4c4e00[_0x4fc93b(0x154)])[_0x4fc93b(0x146)];},exports[a13_0x5be148(0x18a)]=async function(_0xfdbd21){const _0x277911=a13_0x5be148,_0x24b8f4={'IBSAb':_0x277911(0x168),'LCsaD':'string','viWVB':_0x277911(0x199),'opypq':_0x277911(0x133),'JxQHv':_0x277911(0x12c),'tBXah':function(_0x192a1f){return _0x192a1f();},'aECcn':function(_0x4bbe92,_0x139445,_0x35b02f,_0x352ff8,_0xcc267a,_0x2ea144,_0x443ea2){return _0x4bbe92(_0x139445,_0x35b02f,_0x352ff8,_0xcc267a,_0x2ea144,_0x443ea2);},'nwYDb':_0x277911(0x14b),'useNm':function(_0x10f2e2){return _0x10f2e2();},'VWbjt':function(_0x497df4,_0x306db2){return _0x497df4===_0x306db2;},'vhKJO':_0x277911(0x195),'hIFLG':_0x277911(0x191),'ZgpcA':function(_0x4d1eaa,_0x150c18){return _0x4d1eaa!==_0x150c18;},'faDSG':_0x277911(0x15f),'WXpjw':'Pgitn','TvXIG':_0x277911(0x18e),'YVxBQ':_0x277911(0x12a),'Oqyty':_0x277911(0x17a),'xtqTP':_0x277911(0x152),'ottTO':function(_0x103c06,_0x4e3c34){return _0x103c06===_0x4e3c34;},'XMImB':function(_0xe9e07,_0x532953){return _0xe9e07!==_0x532953;},'UPmcO':_0x277911(0x13d),'CmMLd':_0x277911(0x137),'osXcF':_0x277911(0x19b),'DpjcT':_0x277911(0x165),'rCSji':function(_0x4788ab,_0x5d9d28){return _0x4788ab(_0x5d9d28);},'zDcBz':function(_0xd37882,_0x4b7a5c){return _0xd37882!==_0x4b7a5c;},'MVWAb':function(_0x21ccbf,_0x5dd50a){return _0x21ccbf!==_0x5dd50a;},'CPHtE':_0x277911(0x193),'iLTej':_0x277911(0x138),'wJdGP':function(_0x4531c5,_0x52f666){return _0x4531c5===_0x52f666;},'FIOOB':'mcOVZ','tSSXf':function(_0x892def){return _0x892def();},'gRINp':function(_0x267769,_0x31ec31){return _0x267769!==_0x31ec31;},'MCJAI':_0x277911(0x173),'dJuYI':_0x277911(0x174),'JNnpB':_0x277911(0x179),'DLjzv':_0x277911(0x12b),'Dojod':_0x277911(0x163)};try{global_registry[_0x277911(0x144)]=_0x24b8f4[_0x277911(0x135)](uuidv4),_0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x145)],null,null,_0xfdbd21);const _0x28c2f5=_0x24b8f4['useNm'](getDirForConfig);if(!fs[_0x277911(0x188)](_0x28c2f5)){if(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x160)],_0x24b8f4[_0x277911(0x134)])){const _0xe7903e={};_0xe7903e[_0x277911(0x15b)]=_0x24b8f4[_0x277911(0x167)],_0xe7903e['type']=_0x24b8f4[_0x277911(0x172)];const _0x385eb0={};_0x385eb0[_0x277911(0x15b)]=_0x24b8f4[_0x277911(0x130)],_0x385eb0[_0x277911(0x139)]=_0x24b8f4[_0x277911(0x172)];const _0xaff6fd={};return _0xaff6fd[_0x277911(0x13b)]=_0xe7903e,_0xaff6fd[_0x277911(0x169)]=_0x385eb0,_0x32c4b8['usage'](_0x3813ae[_0x277911(0x13a)])[_0x277911(0x175)](_0x1ed290)[_0x277911(0x129)](_0xaff6fd)['recommendCommands']()[_0x277911(0x186)]()['help'](_0x24b8f4[_0x277911(0x14e)])[_0x277911(0x146)];}else fs[_0x277911(0x148)](_0x28c2f5);}let _0x3c0845,_0x312168;process[_0x277911(0x13f)][_0x277911(0x171)]&&(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x136)],_0x24b8f4['WXpjw'])?_0x3c0845=process[_0x277911(0x13f)]['BROWSERSTACK_USERNAME']:_0x3045a9=_0x1f0784[_0x277911(0x13f)][_0x277911(0x171)]);process[_0x277911(0x13f)][_0x277911(0x15a)]&&(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x15e)],_0x24b8f4['YVxBQ'])?_0x2b4709=_0x20279e[_0x277911(0x15c)](_0x460f66[_0x277911(0x14a)](_0x56f064,_0x24b8f4[_0x277911(0x166)])):_0x312168=process[_0x277911(0x13f)][_0x277911(0x15a)]);_0xfdbd21[_0x277911(0x132)]&&(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x149)],_0x24b8f4[_0x277911(0x149)])?_0x54da8f=_0x119516[_0x277911(0x15d)]:_0x3c0845=_0xfdbd21[_0x277911(0x132)]);if(_0xfdbd21['bstackAccesskey']){if(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x157)],_0x24b8f4['xtqTP'])){let _0x25310c={};const _0x266c3a=_0x24b8f4['tBXah'](_0x56fc28);_0x3ce9f2[_0x277911(0x188)](_0x266c3a)&&(_0x25310c=_0x147ec1[_0x277911(0x15c)](_0x3d570f[_0x277911(0x14a)](_0x266c3a,_0x24b8f4[_0x277911(0x166)])));const _0x24b1ed={};_0x24b1ed[_0x277911(0x14c)]=_0x4f9e3a,_0x24b1ed['password']=_0x5e24ef,_0x25310c['Browserstack']=_0x24b1ed,_0x2e6c5a[_0x277911(0x17d)](_0x266c3a,_0x76c2ef[_0x277911(0x12e)](_0x25310c)),_0x160e05['exit'](0x0);}else _0x312168=_0xfdbd21[_0x277911(0x15d)];}if(_0x24b8f4[_0x277911(0x189)](_0x3c0845,undefined)||_0x24b8f4[_0x277911(0x183)](_0x312168,undefined)){if(_0x24b8f4[_0x277911(0x147)](_0x24b8f4['UPmcO'],_0x24b8f4['CmMLd'])){logger['debug'](_0x24b8f4[_0x277911(0x176)]);const [_0x20f229,_0x2d6603]=await _0x24b8f4[_0x277911(0x159)](inputBstackKeys);_0x3c0845=_0x20f229,_0x312168=_0x2d6603;}else _0x78bdc0=!![];}let _0x2e0537=![];const _0x27a050={};_0x27a050[_0x277911(0x150)]=_0x277911(0x158)+_0x3c0845+':'+_0x312168+'@'+BS_API_URL+_0x277911(0x131),_0x27a050[_0x277911(0x18f)]=_0x24b8f4[_0x277911(0x153)];const _0x48f9da=_0x27a050,_0x2f5f8b=await _0x24b8f4['rCSji'](promisifiedRequest,_0x48f9da);_0x24b8f4['zDcBz'](_0x2f5f8b,null)&&_0x24b8f4[_0x277911(0x141)](_0x2f5f8b,undefined)&&_0x24b8f4[_0x277911(0x183)](_0x2f5f8b[_0x277911(0x17f)],0xc8)&&(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x177)],_0x24b8f4[_0x277911(0x156)])?_0x54b21e[_0x277911(0x148)](_0x1e49be):_0x2e0537=!![]);if(_0x2e0537){if(_0x24b8f4[_0x277911(0x140)](_0x24b8f4['FIOOB'],_0x24b8f4['FIOOB'])){let _0x3e2646={};const _0x348de3=_0x24b8f4['tSSXf'](getCredentialsPath);fs['existsSync'](_0x348de3)&&(_0x24b8f4[_0x277911(0x13c)](_0x24b8f4[_0x277911(0x180)],_0x24b8f4[_0x277911(0x17b)])?_0x3e2646=JSON[_0x277911(0x15c)](fs[_0x277911(0x14a)](_0x348de3,_0x24b8f4['JxQHv'])):_0xe1c537=_0x39c3d9['bstackUsername']);const _0x535e36={};_0x535e36[_0x277911(0x14c)]=_0x3c0845,_0x535e36[_0x277911(0x190)]=_0x312168,_0x3e2646[_0x277911(0x18b)]=_0x535e36,fs[_0x277911(0x17d)](_0x348de3,JSON[_0x277911(0x12e)](_0x3e2646)),process[_0x277911(0x198)](0x0);}else _0x2d4d44=_0x37b68f[_0x277911(0x13f)]['BROWSERSTACK_ACCESS_KEY'];}else logger[_0x277911(0x196)](_0x24b8f4[_0x277911(0x142)]),await _0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x197)],_0x24b8f4[_0x277911(0x161)],null,_0xfdbd21),process[_0x277911(0x198)](0x1);}catch(_0x587c7a){logger['error'](_0x587c7a[_0x277911(0x16f)]),await _0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x197)],_0x24b8f4['Dojod'],_0x587c7a,_0xfdbd21),process[_0x277911(0x198)](0x1);}};
@@ -1 +1 @@
1
- const a14_0x236c48=a14_0xea14;(function(_0x3a5c0a,_0x162aff){const _0x270f5c=a14_0xea14,_0x1aef72=_0x3a5c0a();while(!![]){try{const _0x12bd3a=parseInt(_0x270f5c(0x139))/0x1*(parseInt(_0x270f5c(0x12f))/0x2)+-parseInt(_0x270f5c(0x141))/0x3*(-parseInt(_0x270f5c(0x13d))/0x4)+parseInt(_0x270f5c(0x135))/0x5*(-parseInt(_0x270f5c(0x12a))/0x6)+parseInt(_0x270f5c(0x13e))/0x7*(-parseInt(_0x270f5c(0x131))/0x8)+parseInt(_0x270f5c(0x13b))/0x9*(parseInt(_0x270f5c(0x13c))/0xa)+-parseInt(_0x270f5c(0x133))/0xb*(-parseInt(_0x270f5c(0x12d))/0xc)+-parseInt(_0x270f5c(0x137))/0xd*(parseInt(_0x270f5c(0x142))/0xe);if(_0x12bd3a===_0x162aff)break;else _0x1aef72['push'](_0x1aef72['shift']());}catch(_0x46a26c){_0x1aef72['push'](_0x1aef72['shift']());}}}(a14_0x5063,0x1acf4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x236c48(0x132));exports[a14_0x236c48(0x12c)]=a14_0x236c48(0x136),exports[a14_0x236c48(0x13a)]=a14_0x236c48(0x128),exports[a14_0x236c48(0x140)]=function(_0x1bedb7){const _0x539277=a14_0x236c48,_0x35e150={};_0x35e150[_0x539277(0x127)]=_0x539277(0x130),_0x35e150[_0x539277(0x12b)]=_0x539277(0x138);const _0x4f09d2=_0x35e150;return _0x1bedb7['commandDir'](_0x4f09d2[_0x539277(0x127)])[_0x539277(0x129)]()[_0x539277(0x12e)](HELP_HEADER_MESSAGE[_0x539277(0x136)][_0x539277(0x134)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x539277(0x13f)]()['strict']()['help'](_0x4f09d2['mpAxK']);},exports[a14_0x236c48(0x126)]=function(_0x545ad2){};function a14_0xea14(_0x39681e,_0x565903){const _0x506322=a14_0x5063();return a14_0xea14=function(_0xea14f6,_0x4c0f73){_0xea14f6=_0xea14f6-0x126;let _0x594048=_0x506322[_0xea14f6];return _0x594048;},a14_0xea14(_0x39681e,_0x565903);}function a14_0x5063(){const _0x55d53a=['47824voPlxQ','recommendCommands','builder','51dkiZPe','852082kzFRtF','handler','FnTww','List\x20down\x20the\x20Grid\x20resources.','demandCommand','114HuTtZK','mpAxK','command','32748wnUYvg','usage','159990UItfGV','list_commands','192NtkZGW','../config/constants','561aJNOQx','root','47365CajxIU','list','39iAfzOE','help','2JpmYIm','desc','96048xKMpMr','190ZHAHoN','31628obnXoV'];a14_0x5063=function(){return _0x55d53a;};return a14_0x5063();}
1
+ function a14_0x5f53(_0x138f59,_0x108595){const _0x4d5313=a14_0x4d53();return a14_0x5f53=function(_0x5f53ff,_0x1f8b91){_0x5f53ff=_0x5f53ff-0x15e;let _0x34e44e=_0x4d5313[_0x5f53ff];return _0x34e44e;},a14_0x5f53(_0x138f59,_0x108595);}function a14_0x4d53(){const _0x5ab0b2=['command','UwJvD','1620552tqCOSk','333595kgeKqF','list_commands','List\x20down\x20the\x20Grid\x20resources.','4150512qUlYYF','2459009BzWoyv','27muIFuM','1005395uCMbyE','hkKWT','usage','12vZDtJo','strict','commandDir','recommendCommands','list','620470IiEJNc','../config/constants','261906NSZkHf','6ZjfOhN','help'];a14_0x4d53=function(){return _0x5ab0b2;};return a14_0x4d53();}const a14_0x1697e4=a14_0x5f53;(function(_0x338129,_0x5d1ee2){const _0x50e550=a14_0x5f53,_0x4e9c31=_0x338129();while(!![]){try{const _0x4e8759=parseInt(_0x50e550(0x16f))/0x1+-parseInt(_0x50e550(0x162))/0x2*(-parseInt(_0x50e550(0x169))/0x3)+-parseInt(_0x50e550(0x16e))/0x4+-parseInt(_0x50e550(0x15f))/0x5+parseInt(_0x50e550(0x16a))/0x6*(parseInt(_0x50e550(0x173))/0x7)+-parseInt(_0x50e550(0x172))/0x8+parseInt(_0x50e550(0x15e))/0x9*(parseInt(_0x50e550(0x167))/0xa);if(_0x4e8759===_0x5d1ee2)break;else _0x4e9c31['push'](_0x4e9c31['shift']());}catch(_0x506b32){_0x4e9c31['push'](_0x4e9c31['shift']());}}}(a14_0x4d53,0x41dec));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x1697e4(0x168));exports[a14_0x1697e4(0x16c)]='list',exports['desc']=a14_0x1697e4(0x171),exports['builder']=function(_0x38293d){const _0x1104a6=a14_0x1697e4,_0x18f60d={};_0x18f60d[_0x1104a6(0x16d)]=_0x1104a6(0x170),_0x18f60d[_0x1104a6(0x160)]=_0x1104a6(0x16b);const _0x524e02=_0x18f60d;return _0x38293d[_0x1104a6(0x164)](_0x524e02[_0x1104a6(0x16d)])['demandCommand']()[_0x1104a6(0x161)](HELP_HEADER_MESSAGE[_0x1104a6(0x166)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1104a6(0x165)]()[_0x1104a6(0x163)]()[_0x1104a6(0x16b)](_0x524e02['hkKWT']);},exports['handler']=function(_0x33e7f7){};
@@ -1 +1 @@
1
- const a15_0x48ac31=a15_0x5aa0;function a15_0x5aa0(_0x265f85,_0x164a7b){const _0x1ff4f2=a15_0x1ff4();return a15_0x5aa0=function(_0x5aa0c5,_0x3a1af5){_0x5aa0c5=_0x5aa0c5-0x1b8;let _0x54a10f=_0x1ff4f2[_0x5aa0c5];return _0x54a10f;},a15_0x5aa0(_0x265f85,_0x164a7b);}(function(_0x4bef82,_0x328845){const _0x421563=a15_0x5aa0,_0x189570=_0x4bef82();while(!![]){try{const _0x5f2658=-parseInt(_0x421563(0x202))/0x1+-parseInt(_0x421563(0x1e2))/0x2+parseInt(_0x421563(0x20a))/0x3*(parseInt(_0x421563(0x1fd))/0x4)+-parseInt(_0x421563(0x204))/0x5*(parseInt(_0x421563(0x1c1))/0x6)+parseInt(_0x421563(0x1de))/0x7*(-parseInt(_0x421563(0x1dc))/0x8)+parseInt(_0x421563(0x1d0))/0x9*(-parseInt(_0x421563(0x206))/0xa)+-parseInt(_0x421563(0x1ec))/0xb*(-parseInt(_0x421563(0x1ca))/0xc);if(_0x5f2658===_0x328845)break;else _0x189570['push'](_0x189570['shift']());}catch(_0x102ef8){_0x189570['push'](_0x189570['shift']());}}}(a15_0x1ff4,0x61280));function a15_0x1ff4(){const _0x3f1e46=['cloud-provider','username','2292mjQoZR','url','region','server-error','push','unknown-error','2271150XSUzBQ','ERROR','../../config/constants','TsTbL','log','table','ZMnWs','list-grid-profiles-called','all-grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hkcVy','zdXzH','56cHTjWB','INFO','231105XvsALT','grid-profiles','util','method','109806sWEOrU','gridProfile','parse','desc','cloudProvider','stack','RUeey','XDQUy','forEach','request','115148IEXqBd','/packages/cli/get-grid-profiles','boolean','builder','https://','MExfb','OmWUU','init-not-called','existsSync','Stpzf','type','QrCJq','CAIoW','usage','GET','promisify','/packages/cli/get-all-grid-profiles','4kppyNU','argv','error','CtSzO','lutrt','249828WCRife','exit','3192740xSKAoU','../../utils/instrumentationUtils','30eIJEMF','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','huCLA','epilogue','989994aTVAKI','readFileSync','eIelD','concurrency','unauthorised','bstackUsername','Browserstack','body','help','options','jkxok','requestId','statusCode','6rcQgpq','RaIjY','list','password','cqvBh','name','GBuyf'];a15_0x1ff4=function(){return _0x3f1e46;};return a15_0x1ff4();}const fs=require('fs'),util=require(a15_0x48ac31(0x1e0)),request=require(a15_0x48ac31(0x1eb)),{table}=require(a15_0x48ac31(0x1d5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x48ac31(0x1d2)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x48ac31(0x205)),promisifiedRequest=util[a15_0x48ac31(0x1fb)](request);exports['command']=a15_0x48ac31(0x1df),exports[a15_0x48ac31(0x1e5)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x48ac31(0x1ef)]=function(_0x212187){const _0x43c3cb=a15_0x48ac31,_0x4da552={};_0x4da552['gXkIk']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x4da552[_0x43c3cb(0x1f1)]=_0x43c3cb(0x1ee),_0x4da552[_0x43c3cb(0x1db)]=_0x43c3cb(0x1bc);const _0x356391=_0x4da552,_0x25c6a4={};_0x25c6a4['description']=_0x356391['gXkIk'],_0x25c6a4[_0x43c3cb(0x1f6)]=_0x356391[_0x43c3cb(0x1f1)];const _0x4ff132={};return _0x4ff132[_0x43c3cb(0x1d8)]=_0x25c6a4,_0x212187[_0x43c3cb(0x1f9)](HELP_HEADER_MESSAGE[_0x43c3cb(0x1c3)][_0x43c3cb(0x1e3)])[_0x43c3cb(0x209)](HELP_FOOTER_MESSAGE)[_0x43c3cb(0x1bd)](_0x4ff132)['help'](_0x356391[_0x43c3cb(0x1db)])[_0x43c3cb(0x1fe)];},exports['handler']=async function(_0x5d4e9b){const _0xefd3ac=a15_0x48ac31,_0x31d0f3={'hkcVy':function(_0x28b08f){return _0x28b08f();},'eIelD':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jkxok':function(_0x6bdbe5,_0x4ff8ac,_0x27c935,_0x18998a,_0x16d40a,_0x1f07e8,_0x4df65a){return _0x6bdbe5(_0x4ff8ac,_0x27c935,_0x18998a,_0x16d40a,_0x1f07e8,_0x4df65a);},'GBuyf':_0xefd3ac(0x1d7),'RUeey':_0xefd3ac(0x1f3),'OmWUU':_0xefd3ac(0x1fa),'ZMnWs':function(_0x40ebc2,_0x12639b){return _0x40ebc2(_0x12639b);},'cqvBh':function(_0x16ad74,_0x5f3767){return _0x16ad74!==_0x5f3767;},'sPbCb':function(_0x1d4654,_0x359b88){return _0x1d4654===_0x359b88;},'RaIjY':_0xefd3ac(0x207),'huCLA':'grid-profile-name','LGNrd':_0xefd3ac(0x1c8),'opVmy':'region','QrCJq':_0xefd3ac(0x20d),'Stpzf':function(_0x467b8a,_0x43f7a9){return _0x467b8a(_0x43f7a9);},'CtSzO':function(_0x45b9bd,_0x201cd9){return _0x45b9bd===_0x201cd9;},'XDQUy':_0xefd3ac(0x1b8),'TsTbL':function(_0x25ab85,_0x3f9b2c,_0x39fefa,_0x50326f,_0x56d0c2,_0x2bf71f,_0x23e653){return _0x25ab85(_0x3f9b2c,_0x39fefa,_0x50326f,_0x56d0c2,_0x2bf71f,_0x23e653);},'CAIoW':_0xefd3ac(0x1cd),'uWBYE':function(_0x541c8f,_0x56d89a,_0x34ab00,_0xf4cad2,_0x388b6f,_0x303108,_0x53e103){return _0x541c8f(_0x56d89a,_0x34ab00,_0xf4cad2,_0x388b6f,_0x303108,_0x53e103);},'lutrt':_0xefd3ac(0x1cf)};try{global_registry[_0xefd3ac(0x1bf)]=_0x31d0f3[_0xefd3ac(0x1da)](uuidv4);let _0x268889=_0xefd3ac(0x1f0)+AG_API_URL+_0xefd3ac(0x1ed);_0x5d4e9b['allGridProfiles']&&(_0x268889=_0xefd3ac(0x1f0)+AG_API_URL+_0xefd3ac(0x1fc));!fs[_0xefd3ac(0x1f4)](_0x31d0f3[_0xefd3ac(0x1da)](getCredentialsPath))&&(console[_0xefd3ac(0x1ff)](_0x31d0f3[_0xefd3ac(0x20c)]),await _0x31d0f3[_0xefd3ac(0x1be)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x1e8)],null,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1));_0x31d0f3[_0xefd3ac(0x1be)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1dd)],null,null,_0x5d4e9b);const _0x2e9610=JSON[_0xefd3ac(0x1e4)](fs[_0xefd3ac(0x20b)](_0x31d0f3['hkcVy'](getCredentialsPath))),_0x1dbaec={};_0x1dbaec[_0xefd3ac(0x1c9)]=_0x2e9610['Browserstack'][_0xefd3ac(0x1c9)],_0x1dbaec['password']=_0x2e9610[_0xefd3ac(0x1ba)]['password'];const _0x13c370={};_0x13c370[_0xefd3ac(0x1cb)]=_0x268889,_0x13c370[_0xefd3ac(0x1e1)]=_0x31d0f3[_0xefd3ac(0x1f2)],_0x13c370['auth']=_0x1dbaec;const _0x582b23=_0x13c370;global_registry[_0xefd3ac(0x1b9)]=_0x2e9610[_0xefd3ac(0x1ba)]['username'],global_registry['bstackAccesskey']=_0x2e9610[_0xefd3ac(0x1ba)][_0xefd3ac(0x1c4)];const _0x44887f=await _0x31d0f3[_0xefd3ac(0x1d6)](promisifiedRequest,_0x582b23);if(_0x31d0f3['cqvBh'](_0x44887f,null)&&_0x31d0f3[_0xefd3ac(0x1c5)](_0x44887f,undefined)&&_0x31d0f3['sPbCb'](_0x44887f['statusCode'],0xc8)){const _0x209c39=JSON[_0xefd3ac(0x1e4)](_0x44887f[_0xefd3ac(0x1bb)]);console['log'](_0x31d0f3[_0xefd3ac(0x1c2)]);const _0x510b8e=[];_0x510b8e[_0xefd3ac(0x1ce)]([_0x31d0f3[_0xefd3ac(0x208)],_0x31d0f3['LGNrd'],_0x31d0f3['opVmy'],_0x31d0f3[_0xefd3ac(0x1f7)]]),_0x209c39[_0xefd3ac(0x1ea)](_0x51053f=>{const _0x3c494b=_0xefd3ac;_0x510b8e['push']([_0x51053f[_0x3c494b(0x1c6)],_0x51053f[_0x3c494b(0x1e6)],_0x51053f[_0x3c494b(0x1cc)],_0x51053f[_0x3c494b(0x20d)]]);}),console[_0xefd3ac(0x1d4)](_0x31d0f3[_0xefd3ac(0x1f5)](table,_0x510b8e)),process[_0xefd3ac(0x203)](0x0);}_0x31d0f3[_0xefd3ac(0x200)](_0x44887f[_0xefd3ac(0x1c0)],0x191)&&(console[_0xefd3ac(0x1ff)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x31d0f3[_0xefd3ac(0x1be)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x1e9)],null,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1)),console[_0xefd3ac(0x1ff)](_0xefd3ac(0x1d9)+JSON['stringify'](_0x44887f)),await _0x31d0f3[_0xefd3ac(0x1d3)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x1f8)],_0x44887f,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1);}catch(_0x5b3495){console[_0xefd3ac(0x1ff)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5b3495[_0xefd3ac(0x1e7)]),await _0x31d0f3['uWBYE'](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x201)],_0x5b3495,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1);}};
1
+ const a15_0x4d5ae4=a15_0x5435;(function(_0x17b5cb,_0x333d01){const _0x56fda6=a15_0x5435,_0x160613=_0x17b5cb();while(!![]){try{const _0x881b6f=-parseInt(_0x56fda6(0x1f0))/0x1+parseInt(_0x56fda6(0x223))/0x2+parseInt(_0x56fda6(0x23d))/0x3+parseInt(_0x56fda6(0x203))/0x4+-parseInt(_0x56fda6(0x230))/0x5+parseInt(_0x56fda6(0x225))/0x6+-parseInt(_0x56fda6(0x20a))/0x7;if(_0x881b6f===_0x333d01)break;else _0x160613['push'](_0x160613['shift']());}catch(_0x45efaf){_0x160613['push'](_0x160613['shift']());}}}(a15_0x1855,0xae5c7));const fs=require('fs'),util=require(a15_0x4d5ae4(0x1ec)),request=require(a15_0x4d5ae4(0x1f6)),{table}=require('table'),{v4:uuidv4}=require(a15_0x4d5ae4(0x21b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x4d5ae4(0x1ee)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x4d5ae4(0x237)),promisifiedRequest=util['promisify'](request);function a15_0x5435(_0x15e8cc,_0x31b9ce){const _0x18554e=a15_0x1855();return a15_0x5435=function(_0x5435e5,_0x53a88d){_0x5435e5=_0x5435e5-0x1eb;let _0x160564=_0x18554e[_0x5435e5];return _0x160564;},a15_0x5435(_0x15e8cc,_0x31b9ce);}function a15_0x1855(){const _0x3e7dc5=['vOivb','../../utils/instrumentationUtils','vJHgG','xtSQl','ujqhF','method','YdFbh','981576nHfABM','ERROR','MIidy','grid-profiles','lEqad','util','Browserstack','../../config/constants','body','83001KpySYp','nhpRF','iOCHH','eeXLP','KfTPs','stack','request','error','description','list','allGridProfiles','push','region','cDDNq','Failed\x20to\x20list\x20resources!\x20Error:\x20','LaDvp','jJBnj','cloud-provider','type','1232600gzxMiD','HPRvI','cloudProvider','ACjXy','argv','handler','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','9016798vaNRsJ','statusCode','help','usage','existsSync','readFileSync','log','/packages/cli/get-grid-profiles','bstackUsername','name','EPgPB','concurrency','grid-profile-name','parse','requestId','stringify','epilogue','uuid','password','init-not-called','desc','server-error','TwbUy','options','list-grid-profiles-called','2438990LflDBa','nPuZu','2814330zroVMD','boolean','bDBBR','/packages/cli/get-all-grid-profiles','yddmc','ddZNP','exit','url','CzQWh','username','builder','1192970PPipVR','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','https://','gridProfile','GET','unauthorised'];a15_0x1855=function(){return _0x3e7dc5;};return a15_0x1855();}exports['command']=a15_0x4d5ae4(0x240),exports[a15_0x4d5ae4(0x21e)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4d5ae4(0x22f)]=function(_0x374272){const _0x3b4a1d=a15_0x4d5ae4,_0x21287e={};_0x21287e[_0x3b4a1d(0x200)]=_0x3b4a1d(0x231),_0x21287e['xtSQl']=_0x3b4a1d(0x226),_0x21287e[_0x3b4a1d(0x220)]=_0x3b4a1d(0x20c);const _0x1c51c0=_0x21287e,_0x4c4e71={};_0x4c4e71[_0x3b4a1d(0x1f8)]=_0x1c51c0['jJBnj'],_0x4c4e71[_0x3b4a1d(0x202)]=_0x1c51c0[_0x3b4a1d(0x239)];const _0x4883ee={};return _0x4883ee['all-grid-profiles']=_0x4c4e71,_0x374272[_0x3b4a1d(0x20d)](HELP_HEADER_MESSAGE[_0x3b4a1d(0x1f9)][_0x3b4a1d(0x233)])[_0x3b4a1d(0x21a)](HELP_FOOTER_MESSAGE)[_0x3b4a1d(0x221)](_0x4883ee)[_0x3b4a1d(0x20c)](_0x1c51c0[_0x3b4a1d(0x220)])[_0x3b4a1d(0x207)];},exports[a15_0x4d5ae4(0x208)]=async function(_0x1c7cae){const _0x37a3ad=a15_0x4d5ae4,_0x9da205={'cDDNq':function(_0x25b35d){return _0x25b35d();},'eeXLP':function(_0x44fd9c){return _0x44fd9c();},'nhpRF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nPuZu':function(_0x175d70,_0x24423e,_0x57a0c5,_0x18676b,_0x4e9b51,_0x1815c5,_0x1052d8){return _0x175d70(_0x24423e,_0x57a0c5,_0x18676b,_0x4e9b51,_0x1815c5,_0x1052d8);},'HPRvI':_0x37a3ad(0x222),'vOivb':_0x37a3ad(0x21d),'ACjXy':function(_0x4fd4a8,_0x5461c5,_0x15f41f,_0x1432fd,_0x2962e4,_0x29386b,_0x4e22fd){return _0x4fd4a8(_0x5461c5,_0x15f41f,_0x1432fd,_0x2962e4,_0x29386b,_0x4e22fd);},'ddZNP':_0x37a3ad(0x234),'yddmc':function(_0x55c080,_0x248eba){return _0x55c080(_0x248eba);},'bDBBR':function(_0xe1f996,_0x3a9262){return _0xe1f996!==_0x3a9262;},'MIidy':function(_0x4be47f,_0x281f){return _0x4be47f===_0x281f;},'LaDvp':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','EPgPB':_0x37a3ad(0x216),'CzQWh':_0x37a3ad(0x201),'KfTPs':_0x37a3ad(0x1fc),'lEqad':_0x37a3ad(0x215),'iOCHH':function(_0x150822,_0x17679a,_0x370746,_0x53a877,_0x1648fa,_0xd9eace,_0x784b42){return _0x150822(_0x17679a,_0x370746,_0x53a877,_0x1648fa,_0xd9eace,_0x784b42);},'vJHgG':_0x37a3ad(0x235),'YdFbh':_0x37a3ad(0x21f),'mrzcN':function(_0x30308b,_0x45243a,_0x198bd0,_0x2cd0da,_0x8cefa7,_0xe742d4,_0x4989db){return _0x30308b(_0x45243a,_0x198bd0,_0x2cd0da,_0x8cefa7,_0xe742d4,_0x4989db);},'ujqhF':'unknown-error'};try{global_registry[_0x37a3ad(0x218)]=_0x9da205[_0x37a3ad(0x1fd)](uuidv4);let _0x338f4b=_0x37a3ad(0x232)+AG_API_URL+_0x37a3ad(0x211);_0x1c7cae[_0x37a3ad(0x1fa)]&&(_0x338f4b='https://'+AG_API_URL+_0x37a3ad(0x228));!fs[_0x37a3ad(0x20e)](_0x9da205[_0x37a3ad(0x1f3)](getCredentialsPath))&&(console['error'](_0x9da205[_0x37a3ad(0x1f1)]),await _0x9da205[_0x37a3ad(0x224)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x236)],null,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1));_0x9da205[_0x37a3ad(0x206)](sendInstrumentationEvent,_0x1c7cae,_0x9da205['HPRvI'],messageTypes['INFO'],null,null,_0x1c7cae);const _0x45bf43=JSON[_0x37a3ad(0x217)](fs[_0x37a3ad(0x20f)](_0x9da205[_0x37a3ad(0x1f3)](getCredentialsPath))),_0x1c5726={};_0x1c5726['username']=_0x45bf43[_0x37a3ad(0x1ed)]['username'],_0x1c5726[_0x37a3ad(0x21c)]=_0x45bf43[_0x37a3ad(0x1ed)][_0x37a3ad(0x21c)];const _0x4c121f={};_0x4c121f[_0x37a3ad(0x22c)]=_0x338f4b,_0x4c121f[_0x37a3ad(0x23b)]=_0x9da205[_0x37a3ad(0x22a)],_0x4c121f['auth']=_0x1c5726;const _0x2b545c=_0x4c121f;global_registry[_0x37a3ad(0x212)]=_0x45bf43['Browserstack'][_0x37a3ad(0x22e)],global_registry['bstackAccesskey']=_0x45bf43[_0x37a3ad(0x1ed)][_0x37a3ad(0x21c)];const _0x1f10a9=await _0x9da205['yddmc'](promisifiedRequest,_0x2b545c);if(_0x9da205['bDBBR'](_0x1f10a9,null)&&_0x9da205[_0x37a3ad(0x227)](_0x1f10a9,undefined)&&_0x9da205[_0x37a3ad(0x23f)](_0x1f10a9['statusCode'],0xc8)){const _0x74072b=JSON[_0x37a3ad(0x217)](_0x1f10a9[_0x37a3ad(0x1ef)]);console[_0x37a3ad(0x210)](_0x9da205[_0x37a3ad(0x1ff)]);const _0x9c3f4e=[];_0x9c3f4e[_0x37a3ad(0x1fb)]([_0x9da205[_0x37a3ad(0x214)],_0x9da205[_0x37a3ad(0x22d)],_0x9da205[_0x37a3ad(0x1f4)],_0x9da205[_0x37a3ad(0x1eb)]]),_0x74072b['forEach'](_0x588bc3=>{const _0x537687=_0x37a3ad;_0x9c3f4e[_0x537687(0x1fb)]([_0x588bc3[_0x537687(0x213)],_0x588bc3[_0x537687(0x205)],_0x588bc3[_0x537687(0x1fc)],_0x588bc3[_0x537687(0x215)]]);}),console['log'](_0x9da205[_0x37a3ad(0x229)](table,_0x9c3f4e)),process[_0x37a3ad(0x22b)](0x0);}_0x9da205[_0x37a3ad(0x23f)](_0x1f10a9[_0x37a3ad(0x20b)],0x191)&&(console[_0x37a3ad(0x1f7)](_0x37a3ad(0x209)),await _0x9da205[_0x37a3ad(0x1f2)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x238)],null,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1)),console[_0x37a3ad(0x1f7)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x37a3ad(0x219)](_0x1f10a9)),await _0x9da205[_0x37a3ad(0x224)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x23c)],_0x1f10a9,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1);}catch(_0x3a0d52){console['error'](_0x37a3ad(0x1fe)+_0x3a0d52[_0x37a3ad(0x1f5)]),await _0x9da205['mrzcN'](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x23a)],_0x3a0d52,_0x1c7cae),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1256(){const _0x1e77d2=['1876553NqBOGD','stringify','10HXjtNp','bstackUsername','grid-name','227950YFpNpS','lVFWF','queued','GzLgs','stack','request','INFO','status','boolean','password','VuqBK','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','requestId','grid','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','readFileSync','method','iDNLl','GET','options','name','fbVGa','server-error','list-grids-called','exit','bstackAccesskey','description','IpHdj','ERROR','argv','../../utils/instrumentationUtils','parse','mjOTT','cluster-name','../../utils/utilityMethods','kQmtR','log','/packages/cli/get-all-grids','yXWRn','init-not-called','error','type','builder','uuid','16PrTrIg','WSmjr','uhDKI','2258244rrprNo','allGrids','YdDem','433252CtHthN','statusCode','unknown-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','Failed\x20to\x20list\x20resources!\x20Error:\x20','ZGNGl','/packages/cli/get-grids','DFENH','qMNln','mHbps','auth','handler','existsSync','9256077goWLEY','push','huazV','username','util','promisify','PNWsJ','Browserstack','778527LEwTnM','10TAcCMU','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','MdPyK','epilogue','aqliF','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','889628Bupshr','running'];a16_0x1256=function(){return _0x1e77d2;};return a16_0x1256();}const a16_0x889ee7=a16_0x8a6f;function a16_0x8a6f(_0xa5edc8,_0x5d9ee2){const _0x1256ec=a16_0x1256();return a16_0x8a6f=function(_0x8a6f31,_0x46eab3){_0x8a6f31=_0x8a6f31-0xa7;let _0x54ee57=_0x1256ec[_0x8a6f31];return _0x54ee57;},a16_0x8a6f(_0xa5edc8,_0x5d9ee2);}(function(_0x4edc76,_0x1a92dd){const _0x5f020b=a16_0x8a6f,_0x52d125=_0x4edc76();while(!![]){try{const _0x1fa9c5=-parseInt(_0x5f020b(0xdf))/0x1+parseInt(_0x5f020b(0xd8))/0x2+-parseInt(_0x5f020b(0xd0))/0x3+-parseInt(_0x5f020b(0xba))/0x4*(-parseInt(_0x5f020b(0xdc))/0x5)+-parseInt(_0x5f020b(0xb7))/0x6+parseInt(_0x5f020b(0xda))/0x7*(-parseInt(_0x5f020b(0xb4))/0x8)+-parseInt(_0x5f020b(0xc8))/0x9*(-parseInt(_0x5f020b(0xd1))/0xa);if(_0x1fa9c5===_0x1a92dd)break;else _0x52d125['push'](_0x52d125['shift']());}catch(_0x31a6e4){_0x52d125['push'](_0x52d125['shift']());}}}(a16_0x1256,0x46c6e));const fs=require('fs'),util=require(a16_0x889ee7(0xcc)),request=require(a16_0x889ee7(0xe4)),{table}=require('table'),{v4:uuidv4}=require(a16_0x889ee7(0xb3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x889ee7(0xaa)),{sendInstrumentationEvent}=require(a16_0x889ee7(0xfe)),promisifiedRequest=util[a16_0x889ee7(0xcd)](request);exports['command']='grids',exports[a16_0x889ee7(0xbe)]=a16_0x889ee7(0xee),exports[a16_0x889ee7(0xb2)]=function(_0x1865a6){const _0x20c84e=a16_0x889ee7,_0x3f4a54={};_0x3f4a54[_0x20c84e(0xab)]=_0x20c84e(0xd2),_0x3f4a54[_0x20c84e(0xc2)]=_0x20c84e(0xe7),_0x3f4a54[_0x20c84e(0xe0)]='help';const _0x55e62a=_0x3f4a54,_0x2494b8={};_0x2494b8[_0x20c84e(0xfa)]=_0x55e62a['kQmtR'],_0x2494b8[_0x20c84e(0xb1)]=_0x55e62a['DFENH'];const _0x258204={};return _0x258204['all-grids']=_0x2494b8,_0x1865a6['usage'](HELP_HEADER_MESSAGE['list'][_0x20c84e(0xed)])[_0x20c84e(0xd4)](HELP_FOOTER_MESSAGE)[_0x20c84e(0xf3)](_0x258204)['help'](_0x55e62a['lVFWF'])[_0x20c84e(0xfd)];},exports[a16_0x889ee7(0xc6)]=async function(_0xfe47ec){const _0x41ebe7=a16_0x889ee7,_0xeb8bf4={'GzLgs':function(_0x4ebb82){return _0x4ebb82();},'uhDKI':_0x41ebe7(0xeb),'mjOTT':function(_0x557389,_0x551e3f,_0x2a1627,_0xa5ef,_0x562f8e,_0x4b0a54,_0x59a8c8){return _0x557389(_0x551e3f,_0x2a1627,_0xa5ef,_0x562f8e,_0x4b0a54,_0x59a8c8);},'MdPyK':_0x41ebe7(0xf7),'YdDem':_0x41ebe7(0xaf),'mHbps':_0x41ebe7(0xf2),'yXWRn':function(_0x4242fd,_0x32753e,_0x22c7a9,_0x5c194b,_0x11a900,_0x2e1473,_0x4b5229){return _0x4242fd(_0x32753e,_0x22c7a9,_0x5c194b,_0x11a900,_0x2e1473,_0x4b5229);},'fbVGa':function(_0x48986f,_0x5ca800){return _0x48986f(_0x5ca800);},'WSmjr':function(_0x51b38e,_0x57f066){return _0x51b38e!==_0x57f066;},'oaMff':function(_0x5b183,_0xe783fb){return _0x5b183!==_0xe783fb;},'huazV':function(_0x47192a,_0x4fc6ea){return _0x47192a===_0x4fc6ea;},'IpHdj':'\x0aFound\x20the\x20following\x20grids:\x0a','trxOl':'grid-id','PNWsJ':_0x41ebe7(0xde),'LQaBN':_0x41ebe7(0xe6),'OpFVI':_0x41ebe7(0xd9),'aqliF':_0x41ebe7(0xe1),'ToUbE':_0x41ebe7(0xa9),'vAmhS':function(_0x1a0c19,_0x5b4296,_0x45e2d9,_0x4cb9a4,_0x3086f7,_0x31697c,_0x1a6665){return _0x1a0c19(_0x5b4296,_0x45e2d9,_0x4cb9a4,_0x3086f7,_0x31697c,_0x1a6665);},'qMNln':'unauthorised','iDNLl':_0x41ebe7(0xf6),'ZGNGl':function(_0x3aae90,_0x3f217e,_0x55d842,_0x1c854a,_0x31056a,_0xceb507,_0x34574c){return _0x3aae90(_0x3f217e,_0x55d842,_0x1c854a,_0x31056a,_0xceb507,_0x34574c);},'VuqBK':_0x41ebe7(0xbc)};try{global_registry[_0x41ebe7(0xec)]=_0xeb8bf4[_0x41ebe7(0xe2)](uuidv4);!fs[_0x41ebe7(0xc7)](_0xeb8bf4[_0x41ebe7(0xe2)](getCredentialsPath))&&(console[_0x41ebe7(0xb0)](_0xeb8bf4[_0x41ebe7(0xb6)]),await _0xeb8bf4[_0x41ebe7(0xa8)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4['MdPyK'],messageTypes['ERROR'],_0xeb8bf4[_0x41ebe7(0xb9)],null,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1));const _0x2ec0d7=JSON['parse'](fs[_0x41ebe7(0xef)](_0xeb8bf4[_0x41ebe7(0xe2)](getCredentialsPath)));let _0x23e45b=_0x41ebe7(0xd6)+AG_API_URL+_0x41ebe7(0xc1);_0xfe47ec[_0x41ebe7(0xb8)]&&(_0x23e45b=_0x41ebe7(0xd6)+AG_API_URL+_0x41ebe7(0xad));const _0xefcd50={};_0xefcd50[_0x41ebe7(0xcb)]=_0x2ec0d7['Browserstack']['username'],_0xefcd50[_0x41ebe7(0xe8)]=_0x2ec0d7[_0x41ebe7(0xcf)][_0x41ebe7(0xe8)];const _0x30b196={};_0x30b196['url']=_0x23e45b,_0x30b196[_0x41ebe7(0xf0)]=_0xeb8bf4[_0x41ebe7(0xc4)],_0x30b196[_0x41ebe7(0xc5)]=_0xefcd50;const _0x537189=_0x30b196;global_registry[_0x41ebe7(0xdd)]=_0x2ec0d7[_0x41ebe7(0xcf)]['username'],global_registry[_0x41ebe7(0xf9)]=_0x2ec0d7[_0x41ebe7(0xcf)][_0x41ebe7(0xe8)],_0xeb8bf4[_0x41ebe7(0xae)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4['MdPyK'],messageTypes[_0x41ebe7(0xe5)],null,null,_0xfe47ec);const _0x5a21ee=await _0xeb8bf4['fbVGa'](promisifiedRequest,_0x537189);if(_0xeb8bf4[_0x41ebe7(0xb5)](_0x5a21ee,null)&&_0xeb8bf4['oaMff'](_0x5a21ee,undefined)&&_0xeb8bf4[_0x41ebe7(0xca)](_0x5a21ee[_0x41ebe7(0xbb)],0xc8)){const _0x3fe103=JSON[_0x41ebe7(0xa7)](_0x5a21ee['body']);console[_0x41ebe7(0xac)](_0xeb8bf4[_0x41ebe7(0xfb)]);const _0x55c15b=[];_0x55c15b[_0x41ebe7(0xc9)]([_0xeb8bf4['trxOl'],_0xeb8bf4[_0x41ebe7(0xce)],_0xeb8bf4['LQaBN'],_0xeb8bf4['OpFVI'],_0xeb8bf4[_0x41ebe7(0xd5)],_0xeb8bf4['ToUbE']]),_0x3fe103['forEach'](_0x59c9cf=>{const _0x26be2c=_0x41ebe7;_0x55c15b[_0x26be2c(0xc9)]([_0x59c9cf['id'],_0x59c9cf[_0x26be2c(0xf4)],_0x59c9cf[_0x26be2c(0xe6)],_0x59c9cf[_0x26be2c(0xd9)],_0x59c9cf[_0x26be2c(0xe1)],_0x59c9cf[_0x26be2c(0xea)]]);}),console[_0x41ebe7(0xac)](_0xeb8bf4[_0x41ebe7(0xf5)](table,_0x55c15b)),process[_0x41ebe7(0xf8)](0x0);}_0xeb8bf4['huazV'](_0x5a21ee[_0x41ebe7(0xbb)],0x191)&&(console[_0x41ebe7(0xb0)](_0x41ebe7(0xbd)),await _0xeb8bf4['vAmhS'](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4[_0x41ebe7(0xd3)],messageTypes[_0x41ebe7(0xfc)],_0xeb8bf4[_0x41ebe7(0xc3)],null,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1)),console[_0x41ebe7(0xb0)](_0x41ebe7(0xd7)+JSON[_0x41ebe7(0xdb)](_0x5a21ee)),await _0xeb8bf4[_0x41ebe7(0xae)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4[_0x41ebe7(0xd3)],messageTypes[_0x41ebe7(0xfc)],_0xeb8bf4[_0x41ebe7(0xf1)],_0x5a21ee,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1);}catch(_0x5685f7){console[_0x41ebe7(0xb0)](_0x41ebe7(0xbf)+_0x5685f7[_0x41ebe7(0xe3)]),await _0xeb8bf4[_0x41ebe7(0xc0)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4[_0x41ebe7(0xd3)],messageTypes[_0x41ebe7(0xfc)],_0xeb8bf4[_0x41ebe7(0xe9)],_0x5685f7,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1);}};
1
+ const a16_0x311c7a=a16_0x17eb;function a16_0x17eb(_0x3f8f9f,_0x22f470){const _0x93925a=a16_0x9392();return a16_0x17eb=function(_0x17eb45,_0x2c676f){_0x17eb45=_0x17eb45-0x1a5;let _0x4725cc=_0x93925a[_0x17eb45];return _0x4725cc;},a16_0x17eb(_0x3f8f9f,_0x22f470);}function a16_0x9392(){const _0x21b724=['CvHDw','qCEKm','usage','tNuvE','qOfre','command','requestId','options','clusterName','pkKia','promisify','help','builder','password','kcvcJ','stringify','11287881RnzKcl','20lbIuyn','push','QAotV','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','type','epilogue','dpIxD','init-not-called','running','all-grids','exit','101968xjURlW','eusMF','handler','QgRVU','request','GET','boolean','../../config/constants','existsSync','AGndM','list','statusCode','parse','1182088zNiyoO','grid','bKxCP','../../utils/instrumentationUtils','OXHTk','util','terCx','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','aQpWS','argv','/packages/cli/get-grids','table','Browserstack','grid-name','username','grids','qSExM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','bstackAccesskey','ymFSN','iRKzq','url','14AxbXLP','\x0aFound\x20the\x20following\x20grids:\x0a','../../utils/utilityMethods','error','https://','ERROR','GQzcm','VVsLL','method','cluster-name','server-error','2193288lVmutX','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','49339iwrbnc','queued','body','/packages/cli/get-all-grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','618504qaxwrO','XOAeC','grid-id','status','unauthorised','1369756Fcnkkv','nTlOn'];a16_0x9392=function(){return _0x21b724;};return a16_0x9392();}(function(_0x4a36c8,_0x3bb2ad){const _0x588ea8=a16_0x17eb,_0xa21920=_0x4a36c8();while(!![]){try{const _0xe578cf=-parseInt(_0x588ea8(0x1fe))/0x1+parseInt(_0x588ea8(0x1ae))/0x2+parseInt(_0x588ea8(0x1a9))/0x3+-parseInt(_0x588ea8(0x1cd))/0x4*(-parseInt(_0x588ea8(0x1c1))/0x5)+parseInt(_0x588ea8(0x1fc))/0x6+parseInt(_0x588ea8(0x1f1))/0x7*(parseInt(_0x588ea8(0x1da))/0x8)+-parseInt(_0x588ea8(0x1c0))/0x9;if(_0xe578cf===_0x3bb2ad)break;else _0xa21920['push'](_0xa21920['shift']());}catch(_0x246dc9){_0xa21920['push'](_0xa21920['shift']());}}}(a16_0x9392,0x55948));const fs=require('fs'),util=require(a16_0x311c7a(0x1df)),request=require(a16_0x311c7a(0x1d1)),{table}=require(a16_0x311c7a(0x1e5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x311c7a(0x1d4)),{getCredentialsPath}=require(a16_0x311c7a(0x1f3)),{sendInstrumentationEvent}=require(a16_0x311c7a(0x1dd)),promisifiedRequest=util[a16_0x311c7a(0x1ba)](request);exports[a16_0x311c7a(0x1b5)]=a16_0x311c7a(0x1e9),exports[a16_0x311c7a(0x1ec)]=a16_0x311c7a(0x1fd),exports[a16_0x311c7a(0x1bc)]=function(_0x285587){const _0xf6e9eb=a16_0x311c7a,_0x23cc49={};_0x23cc49['qSExM']=_0xf6e9eb(0x1e1),_0x23cc49[_0xf6e9eb(0x1ee)]=_0xf6e9eb(0x1d3),_0x23cc49['qCEKm']=_0xf6e9eb(0x1bb);const _0x2c5be9=_0x23cc49,_0xe471b2={};_0xe471b2['description']=_0x2c5be9[_0xf6e9eb(0x1ea)],_0xe471b2[_0xf6e9eb(0x1c6)]=_0x2c5be9['ymFSN'];const _0x2182ea={};return _0x2182ea[_0xf6e9eb(0x1cb)]=_0xe471b2,_0x285587[_0xf6e9eb(0x1b2)](HELP_HEADER_MESSAGE[_0xf6e9eb(0x1d7)][_0xf6e9eb(0x1db)])[_0xf6e9eb(0x1c7)](HELP_FOOTER_MESSAGE)[_0xf6e9eb(0x1b7)](_0x2182ea)['help'](_0x2c5be9[_0xf6e9eb(0x1b1)])[_0xf6e9eb(0x1e3)];},exports[a16_0x311c7a(0x1cf)]=async function(_0x1d2e6a){const _0x80f1a1=a16_0x311c7a,_0x1d01a3={'qOfre':function(_0xc9be9){return _0xc9be9();},'uQLdp':function(_0x34e6fa){return _0x34e6fa();},'ZcikI':_0x80f1a1(0x1c5),'GQzcm':function(_0x24fe7f,_0x586941,_0x4320ee,_0x3b98f8,_0x55b278,_0x54febd,_0x42851a){return _0x24fe7f(_0x586941,_0x4320ee,_0x3b98f8,_0x55b278,_0x54febd,_0x42851a);},'OXHTk':'list-grids-called','PkFfC':_0x80f1a1(0x1c9),'AGndM':function(_0xc0aa4a){return _0xc0aa4a();},'XOAeC':_0x80f1a1(0x1d2),'eusMF':function(_0x2a2686,_0x39ead3){return _0x2a2686(_0x39ead3);},'oKGwf':function(_0x44b200,_0x5c0a64){return _0x44b200!==_0x5c0a64;},'SzZrX':function(_0x1c7d91,_0x3b8caa){return _0x1c7d91!==_0x3b8caa;},'iRKzq':function(_0x5d277e,_0x4a9ca8){return _0x5d277e===_0x4a9ca8;},'IPDfn':_0x80f1a1(0x1f2),'aQpWS':_0x80f1a1(0x1ab),'terCx':_0x80f1a1(0x1e7),'pkKia':_0x80f1a1(0x1ac),'bKxCP':_0x80f1a1(0x1ca),'QAotV':_0x80f1a1(0x1a5),'dpIxD':_0x80f1a1(0x1fa),'kcvcJ':function(_0x32ec78,_0x44ee02){return _0x32ec78===_0x44ee02;},'nTlOn':function(_0x25327c,_0x12eeab,_0x2148e8,_0x5591e3,_0x335c2f,_0x5ddabe,_0x34337c){return _0x25327c(_0x12eeab,_0x2148e8,_0x5591e3,_0x335c2f,_0x5ddabe,_0x34337c);},'CvHDw':_0x80f1a1(0x1ad),'QgRVU':_0x80f1a1(0x1fb),'VVsLL':function(_0x175e3a,_0x3666f2,_0x26dcac,_0x10a3bf,_0x4dc1ad,_0x5a7bf9,_0x4a504e){return _0x175e3a(_0x3666f2,_0x26dcac,_0x10a3bf,_0x4dc1ad,_0x5a7bf9,_0x4a504e);},'tNuvE':'unknown-error'};try{global_registry[_0x80f1a1(0x1b6)]=_0x1d01a3[_0x80f1a1(0x1b4)](uuidv4);!fs[_0x80f1a1(0x1d5)](_0x1d01a3['uQLdp'](getCredentialsPath))&&(console[_0x80f1a1(0x1f4)](_0x1d01a3['ZcikI']),await _0x1d01a3['GQzcm'](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3['PkFfC'],null,_0x1d2e6a),process['exit'](0x1));const _0x26f25e=JSON[_0x80f1a1(0x1d9)](fs['readFileSync'](_0x1d01a3[_0x80f1a1(0x1d6)](getCredentialsPath)));let _0x8b7d61=_0x80f1a1(0x1f5)+AG_API_URL+_0x80f1a1(0x1e4);_0x1d2e6a['allGrids']&&(_0x8b7d61=_0x80f1a1(0x1f5)+AG_API_URL+_0x80f1a1(0x1a7));const _0x389515={};_0x389515[_0x80f1a1(0x1e8)]=_0x26f25e[_0x80f1a1(0x1e6)]['username'],_0x389515[_0x80f1a1(0x1bd)]=_0x26f25e[_0x80f1a1(0x1e6)]['password'];const _0x215962={};_0x215962[_0x80f1a1(0x1f0)]=_0x8b7d61,_0x215962[_0x80f1a1(0x1f9)]=_0x1d01a3[_0x80f1a1(0x1aa)],_0x215962['auth']=_0x389515;const _0xd406b=_0x215962;global_registry['bstackUsername']=_0x26f25e['Browserstack']['username'],global_registry[_0x80f1a1(0x1ed)]=_0x26f25e['Browserstack'][_0x80f1a1(0x1bd)],_0x1d01a3[_0x80f1a1(0x1f7)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3['OXHTk'],messageTypes[_0x80f1a1(0x1c4)],null,null,_0x1d2e6a);const _0x5a37e4=await _0x1d01a3[_0x80f1a1(0x1ce)](promisifiedRequest,_0xd406b);if(_0x1d01a3['oKGwf'](_0x5a37e4,null)&&_0x1d01a3['SzZrX'](_0x5a37e4,undefined)&&_0x1d01a3[_0x80f1a1(0x1ef)](_0x5a37e4[_0x80f1a1(0x1d8)],0xc8)){const _0x23fff3=JSON[_0x80f1a1(0x1d9)](_0x5a37e4[_0x80f1a1(0x1a6)]);console['log'](_0x1d01a3['IPDfn']);const _0x1e7ba8=[];_0x1e7ba8[_0x80f1a1(0x1c2)]([_0x1d01a3[_0x80f1a1(0x1e2)],_0x1d01a3[_0x80f1a1(0x1e0)],_0x1d01a3[_0x80f1a1(0x1b9)],_0x1d01a3[_0x80f1a1(0x1dc)],_0x1d01a3[_0x80f1a1(0x1c3)],_0x1d01a3[_0x80f1a1(0x1c8)]]),_0x23fff3['forEach'](_0x196d83=>{const _0x180276=_0x80f1a1;_0x1e7ba8[_0x180276(0x1c2)]([_0x196d83['id'],_0x196d83['name'],_0x196d83[_0x180276(0x1ac)],_0x196d83[_0x180276(0x1ca)],_0x196d83['queued'],_0x196d83[_0x180276(0x1b8)]]);}),console['log'](_0x1d01a3['eusMF'](table,_0x1e7ba8)),process['exit'](0x0);}_0x1d01a3[_0x80f1a1(0x1be)](_0x5a37e4[_0x80f1a1(0x1d8)],0x191)&&(console[_0x80f1a1(0x1f4)](_0x80f1a1(0x1eb)),await _0x1d01a3[_0x80f1a1(0x1af)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3[_0x80f1a1(0x1b0)],null,_0x1d2e6a),process['exit'](0x1)),console[_0x80f1a1(0x1f4)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x80f1a1(0x1bf)](_0x5a37e4)),await _0x1d01a3[_0x80f1a1(0x1f7)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3[_0x80f1a1(0x1d0)],_0x5a37e4,_0x1d2e6a),process['exit'](0x1);}catch(_0x2e9df9){console['error'](_0x80f1a1(0x1a8)+_0x2e9df9['stack']),await _0x1d01a3[_0x80f1a1(0x1f8)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3['OXHTk'],messageTypes['ERROR'],_0x1d01a3[_0x80f1a1(0x1b3)],_0x2e9df9,_0x1d2e6a),process[_0x80f1a1(0x1cc)](0x1);}};