browserstack-node-sdk 1.28.3 → 1.28.5

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 (99) 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/templates/gcpresources/gkecluster.json +6 -0
  22. package/ats/src/utils/AWSUtils.js +1 -1
  23. package/ats/src/utils/createAutoscalerStack.js +1 -1
  24. package/ats/src/utils/createClusterStack.js +1 -1
  25. package/ats/src/utils/createk8sClient.js +1 -1
  26. package/ats/src/utils/deleteStack.js +1 -1
  27. package/ats/src/utils/gridComponents.js +1 -1
  28. package/ats/src/utils/hstUtils.js +1 -1
  29. package/ats/src/utils/instrumentationUtils.js +1 -1
  30. package/ats/src/utils/userInput.js +1 -1
  31. package/ats/src/utils/utilityMethods.js +1 -1
  32. package/ats/src/utils/webSocketUtils.js +1 -1
  33. package/package.json +1 -1
  34. package/src/assets/report.html +184 -0
  35. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  36. package/src/bin/codeceptjs/command.js +1 -1
  37. package/src/bin/cucumber-js/command.js +1 -1
  38. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  39. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  40. package/src/bin/cucumber-js/test.setup.js +1 -1
  41. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  42. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  43. package/src/bin/jest/command.js +1 -1
  44. package/src/bin/jest/customEnvironment.js +1 -1
  45. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test_before.setup.js +1 -1
  48. package/src/bin/launcher/launcher.js +1 -1
  49. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  50. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  51. package/src/bin/mocha/command.js +1 -1
  52. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  53. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  54. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  55. package/src/bin/mocha/test.setup.js +1 -1
  56. package/src/bin/nightwatch/command.js +1 -1
  57. package/src/bin/playwright/accessibility-helper.js +1 -1
  58. package/src/bin/playwright/command.js +1 -1
  59. package/src/bin/playwright/globalSetup.js +1 -1
  60. package/src/bin/playwright/mock-process.js +1 -1
  61. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  62. package/src/bin/playwright/reporter/reporter.js +1 -1
  63. package/src/bin/playwright/reporter/test-details.js +1 -1
  64. package/src/bin/runner.js +1 -1
  65. package/src/bin/setup.js +1 -1
  66. package/src/bin/test-runner/index.js +1 -1
  67. package/src/bin/test-runner/runTest.js +1 -1
  68. package/src/bin/test-runner/testWorker.js +1 -1
  69. package/src/bin/utils/constants.js +1 -1
  70. package/src/bin/utils/log4jsAppender.js +1 -1
  71. package/src/bin/utils/logPatcher.js +1 -1
  72. package/src/bin/utils/logReportingAPI.js +1 -1
  73. package/src/bin/vanilla-js/command.js +1 -1
  74. package/src/helpers/BrowserStackSetup.js +1 -1
  75. package/src/helpers/accessibility-automation/constants.js +1 -1
  76. package/src/helpers/accessibility-automation/helper.js +1 -1
  77. package/src/helpers/ats/constants.js +1 -1
  78. package/src/helpers/ats/helper.js +1 -1
  79. package/src/helpers/capsMapping.js +1 -1
  80. package/src/helpers/helper.js +1 -1
  81. package/src/helpers/logger.js +1 -1
  82. package/src/helpers/patchHelpers.js +1 -1
  83. package/src/helpers/percy/Percy.js +1 -1
  84. package/src/helpers/percy/PercyBinary.js +1 -1
  85. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  86. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  87. package/src/helpers/percy/PercySDK.js +1 -1
  88. package/src/helpers/percy/index.js +1 -1
  89. package/src/helpers/request-spy.js +1 -1
  90. package/src/helpers/setKeepAlive.js +1 -1
  91. package/src/helpers/test-observability/constants.js +1 -1
  92. package/src/helpers/test-observability/error-handler.js +1 -1
  93. package/src/helpers/test-observability/performance-tester.js +1 -1
  94. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  95. package/src/helpers/test-observability/sessionHandler.js +1 -1
  96. package/src/helpers/test-observability/utils.js +1 -1
  97. package/src/helpers/w3cMapping.js +1 -1
  98. package/src/hubAllocationMethods.js +1 -1
  99. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x2e715a=a9_0x67e6;function a9_0x67e6(_0x82bee3,_0x4fcc91){const _0x2e3ab4=a9_0x2e3a();return a9_0x67e6=function(_0x67e625,_0x5e9afd){_0x67e625=_0x67e625-0xba;let _0xb11fad=_0x2e3ab4[_0x67e625];return _0xb11fad;},a9_0x67e6(_0x82bee3,_0x4fcc91);}(function(_0x22e364,_0x5e0b58){const _0x310f30=a9_0x67e6,_0x5dd895=_0x22e364();while(!![]){try{const _0x49cc97=-parseInt(_0x310f30(0xbb))/0x1*(-parseInt(_0x310f30(0xc1))/0x2)+-parseInt(_0x310f30(0xcc))/0x3+-parseInt(_0x310f30(0xc2))/0x4+parseInt(_0x310f30(0xc7))/0x5+parseInt(_0x310f30(0xbe))/0x6+parseInt(_0x310f30(0xbf))/0x7*(parseInt(_0x310f30(0xce))/0x8)+-parseInt(_0x310f30(0xca))/0x9;if(_0x49cc97===_0x5e0b58)break;else _0x5dd895['push'](_0x5dd895['shift']());}catch(_0x156072){_0x5dd895['push'](_0x5dd895['shift']());}}}(a9_0x2e3a,0xcfb6f));function a9_0x2e3a(){const _0x3ab88f=['exlev','commandDir','10097802cdOOhO','command','540432KFAbsZ','strict','3510872TVEHUt','builder','533590VRrblf','Create\x20a\x20new\x20Automation\x20grid.','zqBYD','2266032nNEWPb','7tiDtSN','../config/constants','4FjMEqZ','3458352yLeCkL','usage','desc','create_commands','help','5668990pZgAvd'];a9_0x2e3a=function(){return _0x3ab88f;};return a9_0x2e3a();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x2e715a(0xc0));exports[a9_0x2e715a(0xcb)]='create',exports[a9_0x2e715a(0xc4)]=a9_0x2e715a(0xbc),exports[a9_0x2e715a(0xba)]=function(_0x532339){const _0x4fac6d=a9_0x2e715a,_0x29c5a8={};_0x29c5a8[_0x4fac6d(0xbd)]=_0x4fac6d(0xc5),_0x29c5a8['exlev']='help';const _0x59a0db=_0x29c5a8;return _0x532339[_0x4fac6d(0xc3)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4fac6d(0xc9)](_0x59a0db[_0x4fac6d(0xbd)])['demandCommand']()['recommendCommands']()[_0x4fac6d(0xcd)]()[_0x4fac6d(0xc6)](_0x59a0db[_0x4fac6d(0xc8)]);},exports['handler']=function(_0xe74c5d){};
1
+ const a9_0x1e8797=a9_0x1d54;(function(_0x6ecc51,_0x272282){const _0x5ac297=a9_0x1d54,_0xdcf6dc=_0x6ecc51();while(!![]){try{const _0x1c2e02=parseInt(_0x5ac297(0x1f0))/0x1*(parseInt(_0x5ac297(0x1ee))/0x2)+-parseInt(_0x5ac297(0x1e5))/0x3*(parseInt(_0x5ac297(0x1eb))/0x4)+parseInt(_0x5ac297(0x1e4))/0x5*(-parseInt(_0x5ac297(0x1dd))/0x6)+-parseInt(_0x5ac297(0x1ef))/0x7*(parseInt(_0x5ac297(0x1e1))/0x8)+-parseInt(_0x5ac297(0x1de))/0x9+parseInt(_0x5ac297(0x1f1))/0xa+parseInt(_0x5ac297(0x1ec))/0xb;if(_0x1c2e02===_0x272282)break;else _0xdcf6dc['push'](_0xdcf6dc['shift']());}catch(_0x2884b4){_0xdcf6dc['push'](_0xdcf6dc['shift']());}}}(a9_0x5408,0x4b1b7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x1e8797(0x1ed));function a9_0x1d54(_0x10d2a6,_0x4609b4){const _0x540875=a9_0x5408();return a9_0x1d54=function(_0x1d54ac,_0x3c3a22){_0x1d54ac=_0x1d54ac-0x1db;let _0x26700b=_0x540875[_0x1d54ac];return _0x26700b;},a9_0x1d54(_0x10d2a6,_0x4609b4);}function a9_0x5408(){const _0x46515d=['recommendCommands','4nxZRdv','9551982dkELmA','../config/constants','2wzZjio','944076dJzpxD','369790Hogssl','3772300PEQzxh','demandCommand','strict','45510bzjHZc','1944936RfCfvC','gHRsC','command','24mWUvme','builder','help','125tMvLzp','1492230KIkQgr','usage','fSZKO','create','create_commands'];a9_0x5408=function(){return _0x46515d;};return a9_0x5408();}exports[a9_0x1e8797(0x1e0)]=a9_0x1e8797(0x1e8),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x1e8797(0x1e2)]=function(_0x218d00){const _0x56e40e=a9_0x1e8797,_0x4c0b82={};_0x4c0b82[_0x56e40e(0x1e7)]=_0x56e40e(0x1e9),_0x4c0b82['gHRsC']=_0x56e40e(0x1e3);const _0x5403da=_0x4c0b82;return _0x218d00[_0x56e40e(0x1e6)](HELP_HEADER_MESSAGE[_0x56e40e(0x1e8)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x5403da[_0x56e40e(0x1e7)])[_0x56e40e(0x1db)]()[_0x56e40e(0x1ea)]()[_0x56e40e(0x1dc)]()[_0x56e40e(0x1e3)](_0x5403da[_0x56e40e(0x1df)]);},exports['handler']=function(_0x2b986d){};
@@ -1 +1 @@
1
- function a10_0x1eff(){const _0x2f8351=['../../utils/instrumentationUtils','hubVersion','grid-profile','tjYwR','3822540VJdlut','dQKyQ','rpNoq','\x20in\x20existing\x20cluster\x20\x27','username','UfPyF','1288917fhZTjw','QqXYK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','irGAp','zNdnq','LDBre','jJAEH','Cluster\x20','CLI\x20run\x20started','onIBj','DZYvT','QfgxJ','pre-spawned-subnets-not-selected','YnWJC','pVKNA','s3BucketName','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','LOG','GBCpj','zaanH','statusCode','create-grid-called','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.','://','HjSBS','tpDIM','clusterName','https','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','body','route53','yFqvf','RKERQ','getResourceClientId','jxhyT','readFileSync','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','handler','IzcYC','Namespace\x20Created','fuTID','RyrXf','cloudProvider','dEFff','length','grid-name','privateGrid','PbBHH','FfFsq','warn','concurrency','CZtFN','http','xTcTC','fpDkO','IiIWo','gridProfileId','grid-spawning-failed','zjtKz','VXqmt','browserVersion','PiFZK','ingress-nginx','VPACi','QuXxJ','bstackUsername','5|1|6|7|0|2|4|8|3','existsSync','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','iwspL','isPrivateGrid','s3bucket','Spawning\x20the\x20grid\x20','Will\x20be\x20spawning\x20the\x20grid\x20','jBEiV','auth','non-aws-azure-cluster','get-grid-url-null-response','grid','error','3iydhFx','type','adXFc','tSORC','eoAVi','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','info','help','26842cBjNbn','writeFileSync','LJMQL','qCuLz','BXgQU','turboscale-managed-identity-','fetchLocalCreds','createdBy','NVlFz','zDWjQ','Namespace\x20created','create-grid-checks-null-response','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','uIBAv','ZgonX','ictQP','aGTSZ','kDiTE','BqCSy','aSFST','create-grid-checks-non-200','1|5|0|2|3|7|4|6|8','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','irzfR','pVJIo','Create\x20a\x20new\x20Automation\x20grid.','gridProfile','ABoPm','vpc','exit','185zkiIZR','mdyGk','get-grid-url-non-200','create','cSEaI','util','ERROR','/wd/hub','argv','8HSCFHs','builder','wuAIG','isClusterPresent','iEJao','910793VaqEDZ','onOqE','annotations','aGEup','fTkLW','UUemQ','oHxmA','uZBaT','options','Njotl','WebSocket','Creating\x20namespace','gywVY','BzxOs','Browserstack','38saQshv','requestId','zUiNL','reconnecting-websocket','password','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','JevTI','MJDpm','AooSS','uiOsg','\x27\x20grid\x20profile','clusterRegion','AwGON','bcBEb','method','toLowerCase','isSubnetsValid','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','bzGjK','get-grid-url-auth-failed','Found\x20Subnets:\x20','bstackAccesskey','managedBy','init-not-called','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','epilogue','create-grid-checks-grid-already-exists','87618DnYpwm','XUIgU','Grid\x20can\x20be\x20accessed\x20at:\x20','WgZCo','lnxUg','pzODL','hzFcd','addListeners','createOtherResources','/packages/cli/get-grid-url?gridIdentifier=','NpdRJ','kydOe','JJJEf','region','cuhwe','private-ingress-nginx-controller','YyAhS','BVlsR','promisify','iKIIS','FxrqF','setupAutoscaler','sBuVl','CLI_RUN_STARTED','../../config/logger','https://','metadata','hVqHE','12zoHaZj','jQHCC','replace','951012tMrbBP','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/create-grid-checks','description','sjJLM','sendEventToBackend','SEPyY','JblkK','xtalp','../../utils/createk8sClient','yoTzc','IzSgG','s3Bucket','YlHxZ','pre-spawned-invalid-vpc','connectionTimeout','uuid','cluster-name','NxLRZ','11HXvSQB','xvflQ','ccWMf','ODMOH','540440BOgiNO','uTAtc','request','../../utils/gridComponents','securityGroups','VaOPU','pdmIo','private-grid','Found\x20VPC:\x20','../../config/constants','delay','jNrNW','RHcjO','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ngxMo','wWeng','Cluster\x20created\x20successfully','true','bnJdv','createNamespace','instanceType','VbxiQ','BmrSP','Spawning\x20Grid\x20on\x20the\x20Cluster','lzBbp','isVPCPresent','cloud-provider','TZmpO','URttk','ooBAs','Grid\x20spawned\x20on\x20the\x20cluster','desc','CtfUC','Create\x20a\x20private/public\x20grid.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','message','alreadyPresent','defaultGridProfile','IMCHi','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','OgqRH','ClQbP','oIpwg','\x20are\x20not\x20present\x20in\x20VPC:\x20','FAGAA','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','minNodes','qQLsJ','getGridHostname','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','user','JfmBQ','YuGeW','setupNewCluster','iuCKE','rwZOz','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','usage','create-grid-checks-invalid-profile','uyfXe','hWOwv','VDhnx','Deleting\x20the\x20CloudFormation\x20Stacks','DASUh','CbjRU','string','Grid\x20profile\x20fetched\x20from\x20backend','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','INFO','OYXGs','stringify','KsDWs','subnets','DuwfP','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','VloOL','configureIfNotConfigured','pPFuf','pdvGi','beiLA','gridName','wWgqp','wzJhw','command','dHhaj','split'];a10_0x1eff=function(){return _0x2f8351;};return a10_0x1eff();}const a10_0xdcb783=a10_0x6a52;function a10_0x6a52(_0x1ce290,_0xe289f8){const _0x1eff07=a10_0x1eff();return a10_0x6a52=function(_0x6a52a9,_0x142d71){_0x6a52a9=_0x6a52a9-0x109;let _0x42d594=_0x1eff07[_0x6a52a9];return _0x42d594;},a10_0x6a52(_0x1ce290,_0xe289f8);}(function(_0x1c8f0a,_0x148a32){const _0x297379=a10_0x6a52,_0x2d4bd0=_0x1c8f0a();while(!![]){try{const _0x4e9078=-parseInt(_0x297379(0x218))/0x1*(parseInt(_0x297379(0x10e))/0x2)+parseInt(_0x297379(0x210))/0x3*(-parseInt(_0x297379(0x15f))/0x4)+-parseInt(_0x297379(0x236))/0x5*(-parseInt(_0x297379(0x129))/0x6)+parseInt(_0x297379(0x1bf))/0x7+-parseInt(_0x297379(0x23f))/0x8*(parseInt(_0x297379(0x148))/0x9)+-parseInt(_0x297379(0x1b9))/0xa*(-parseInt(_0x297379(0x15b))/0xb)+parseInt(_0x297379(0x145))/0xc*(-parseInt(_0x297379(0x244))/0xd);if(_0x4e9078===_0x148a32)break;else _0x2d4bd0['push'](_0x2d4bd0['shift']());}catch(_0xdf062f){_0x2d4bd0['push'](_0x2d4bd0['shift']());}}}(a10_0x1eff,0x45ca3));const fs=require('fs'),ws=require('ws'),util=require(a10_0xdcb783(0x23b)),ReconnectingWebSocket=require(a10_0xdcb783(0x111)),request=require(a10_0xdcb783(0x161)),{v4:uuidv4}=require(a10_0xdcb783(0x158)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a10_0xdcb783(0x141)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0xdcb783(0x168)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0xdcb783(0x162)),{createK8sClient}=require(a10_0xdcb783(0x151)),{sendInstrumentationEvent}=require(a10_0xdcb783(0x1b5)),promisifiedRequest=util[a10_0xdcb783(0x13b)](request);exports[a10_0xdcb783(0x1b2)]=a10_0xdcb783(0x20e),exports[a10_0xdcb783(0x17e)]=a10_0xdcb783(0x231),exports[a10_0xdcb783(0x240)]=function(_0x1473bf){const _0x4be587=a10_0xdcb783,_0x32e65f={};_0x32e65f['VbxiQ']='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x32e65f[_0x4be587(0x233)]=_0x4be587(0x1a0),_0x32e65f['jQHCC']=_0x4be587(0x1e4),_0x32e65f['yKZWJ']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x32e65f[_0x4be587(0x24b)]=_0x4be587(0x215),_0x32e65f[_0x4be587(0x1f0)]=_0x4be587(0x1d0),_0x32e65f['jJAEH']=_0x4be587(0x180),_0x32e65f['oHxmA']=_0x4be587(0x217);const _0x4e6cfc=_0x32e65f,_0x3aaf48={};_0x3aaf48[_0x4be587(0x14b)]=_0x4e6cfc[_0x4be587(0x174)],_0x3aaf48['type']=_0x4e6cfc[_0x4be587(0x233)];const _0x54a1c7={};_0x54a1c7['description']=_0x4e6cfc[_0x4be587(0x146)],_0x54a1c7[_0x4be587(0x211)]=_0x4e6cfc[_0x4be587(0x233)];const _0x30cb63={};_0x30cb63[_0x4be587(0x14b)]=_0x4e6cfc['yKZWJ'],_0x30cb63[_0x4be587(0x211)]=_0x4e6cfc[_0x4be587(0x233)];const _0x53f4aa={};_0x53f4aa[_0x4be587(0x14b)]=_0x4e6cfc[_0x4be587(0x24b)],_0x53f4aa['type']=_0x4e6cfc['ABoPm'];const _0xcc475e={};_0xcc475e['description']=_0x4e6cfc['FfFsq'],_0xcc475e['type']=_0x4e6cfc[_0x4be587(0x233)];const _0x267c62={};_0x267c62[_0x4be587(0x14b)]=_0x4e6cfc[_0x4be587(0x1c6)],_0x267c62[_0x4be587(0x211)]=_0x4e6cfc[_0x4be587(0x233)];const _0x100d9b={};return _0x100d9b[_0x4be587(0x1ed)]=_0x3aaf48,_0x100d9b[_0x4be587(0x1b7)]=_0x54a1c7,_0x100d9b[_0x4be587(0x159)]=_0x30cb63,_0x100d9b[_0x4be587(0x179)]=_0x53f4aa,_0x100d9b[_0x4be587(0x136)]=_0xcc475e,_0x100d9b[_0x4be587(0x166)]=_0x267c62,_0x1473bf[_0x4be587(0x198)](HELP_HEADER_MESSAGE['create'])[_0x4be587(0x127)](HELP_FOOTER_MESSAGE)[_0x4be587(0x24c)](_0x100d9b)[_0x4be587(0x217)](_0x4e6cfc[_0x4be587(0x24a)])[_0x4be587(0x23e)];},exports[a10_0xdcb783(0x1e5)]=async function(_0x453497){const _0x3e257d=a10_0xdcb783,_0x5c6aaf={'yoTzc':_0x3e257d(0x202),'YyAhS':_0x3e257d(0x1f1),'sBuVl':_0x3e257d(0x1f4),'rwZOz':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','iEJao':_0x3e257d(0x1a0),'BVlsR':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vCUmB':_0x3e257d(0x190),'irzfR':_0x3e257d(0x215),'pdvGi':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xZVYP':'Create\x20a\x20private/public\x20grid.','pPFuf':_0x3e257d(0x217),'bcBEb':_0x3e257d(0x204),'NVlFz':_0x3e257d(0x1db),'beiLA':_0x3e257d(0x20f),'fuTID':function(_0x1bc2d2){return _0x1bc2d2();},'kydOe':function(_0x351b33){return _0x351b33();},'JevTI':function(_0x3be601,_0x2c233d){return _0x3be601!==_0x2c233d;},'naQZr':'EdLHm','uiOsg':_0x3e257d(0x15d),'QuXxJ':_0x3e257d(0x1c1),'FxrqF':function(_0x4a0af0,_0x19ef14,_0x309a38,_0x6a305d,_0x1ecf2e,_0x987ac1,_0x481d8c){return _0x4a0af0(_0x19ef14,_0x309a38,_0x6a305d,_0x1ecf2e,_0x987ac1,_0x481d8c);},'aGTSZ':_0x3e257d(0x1d5),'BwaUT':_0x3e257d(0x125),'OgqRH':function(_0x1f193c,_0x4ddc04,_0x18165e,_0x1774d8,_0x4ea9ba,_0x3db0e5,_0x3fe60b){return _0x1f193c(_0x4ddc04,_0x18165e,_0x1774d8,_0x4ea9ba,_0x3db0e5,_0x3fe60b);},'NxLRZ':'<UsernamePlaceholder>','wzJhw':'<PasswordPlaceholder>','BPvLB':'Adding\x20Websocket\x20listeners','YuGeW':function(_0x236397,_0x285ed3){return _0x236397!==_0x285ed3;},'irGAp':_0x3e257d(0x18b),'BmrSP':_0x3e257d(0x1fb),'ngxMo':function(_0x175aa2,_0x1431c1){return _0x175aa2!==_0x1431c1;},'IMCHi':_0x3e257d(0x1b0),'aSFST':_0x3e257d(0x1dc),'QqXYK':function(_0x12d732,_0x58027a,_0x217a7b,_0x5a85a5,_0x6dff58,_0x5804ba,_0x10c15,_0x54bd63){return _0x12d732(_0x58027a,_0x217a7b,_0x5a85a5,_0x6dff58,_0x5804ba,_0x10c15,_0x54bd63);},'yFqvf':'prespawned-cluster-args-not-passed','fTkLW':function(_0x2f5cb6,_0x2e5873){return _0x2f5cb6!==_0x2e5873;},'wWeng':_0x3e257d(0x153),'onOqE':_0x3e257d(0x137),'RyrXf':_0x3e257d(0x16c),'xtalp':function(_0x6dcae1,_0x2742ed,_0x5e0e56,_0x25ff78,_0x54f079,_0x8191fe,_0x23867d,_0x2e55d1){return _0x6dcae1(_0x2742ed,_0x5e0e56,_0x25ff78,_0x54f079,_0x8191fe,_0x23867d,_0x2e55d1);},'fpDkO':_0x3e257d(0x20c),'UUemQ':function(_0x5ed541,_0x47b1c9){return _0x5ed541===_0x47b1c9;},'ClQbP':_0x3e257d(0x170),'IiIWo':function(_0x3ba1aa,_0x30856d){return _0x3ba1aa!==_0x30856d;},'iuCKE':_0x3e257d(0x1eb),'rpNoq':_0x3e257d(0x212),'uTAtc':function(_0x4b8ac6,_0xda8d21){return _0x4b8ac6===_0xda8d21;},'BXgQU':'ZxTKj','VloOL':'GET','uyfXe':function(_0xa99f3,_0x2492e6){return _0xa99f3(_0x2492e6);},'hWOwv':_0x3e257d(0x241),'pVJIo':_0x3e257d(0x186),'DZYvT':function(_0x2d495e,_0x3e45f5,_0xc531ae,_0x31cc33,_0x400a91,_0x5b945e,_0x2b8726,_0xb601d1){return _0x2d495e(_0x3e45f5,_0xc531ae,_0x31cc33,_0x400a91,_0x5b945e,_0x2b8726,_0xb601d1);},'LDBre':_0x3e257d(0x223),'TZmpO':function(_0x1ddd25,_0x4ccb18){return _0x1ddd25===_0x4ccb18;},'LgbxI':function(_0x1161f8,_0x455ffb){return _0x1161f8!==_0x455ffb;},'eoAVi':_0x3e257d(0x12e),'URttk':_0x3e257d(0x18e),'jBEiV':_0x3e257d(0x149),'dQKyQ':function(_0x27382b,_0x176b92,_0x20cc04,_0x2860d1,_0x189e1b,_0x411bb3,_0x2cb3e2,_0x4bbfb4){return _0x27382b(_0x176b92,_0x20cc04,_0x2860d1,_0x189e1b,_0x411bb3,_0x2cb3e2,_0x4bbfb4);},'dyNxP':'create-grid-checks-auth-failed','zjtKz':_0x3e257d(0x22a),'MJDpm':function(_0x51be46,_0x386895,_0x2b42d6,_0x5d611d,_0x240895,_0x100c49,_0xdc7460,_0x3a1a10){return _0x51be46(_0x386895,_0x2b42d6,_0x5d611d,_0x240895,_0x100c49,_0xdc7460,_0x3a1a10);},'SEPyY':_0x3e257d(0x22c),'hzFcd':_0x3e257d(0x1a1),'RHcjO':function(_0x300173,_0xfcfdce){return _0x300173===_0xfcfdce;},'IdZRk':_0x3e257d(0x24d),'XUIgU':'AjvkB','CbjRU':_0x3e257d(0x181),'JblkK':_0x3e257d(0x128),'AooSS':function(_0x5b34c8,_0x214d9c){return _0x5b34c8!==_0x214d9c;},'YlHxZ':_0x3e257d(0x23a),'ODMOH':_0x3e257d(0x1d8),'onIBj':_0x3e257d(0x237),'gywVY':'caiGR','GBCpj':'hXPKU','PiFZK':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','sjJLM':function(_0x31c8c8,_0x33e7c5,_0x342b08,_0x57bba9,_0x3f44de,_0x51590a,_0x57b57d,_0x12f08e){return _0x31c8c8(_0x33e7c5,_0x342b08,_0x57bba9,_0x3f44de,_0x51590a,_0x57b57d,_0x12f08e);},'qkIbd':_0x3e257d(0x199),'BzxOs':function(_0x3c696d,_0x45fdbb){return _0x3c696d===_0x45fdbb;},'UaMix':function(_0x5487ec,_0x5116d3){return _0x5487ec===_0x5116d3;},'XpHzI':_0x3e257d(0x192),'kaNzf':'pqvWL','jxhyT':function(_0x50f2d5,_0x2132ca){return _0x50f2d5!==_0x2132ca;},'VaOPU':_0x3e257d(0x226),'tpDIM':_0x3e257d(0x221),'DNzQf':function(_0x4c8fff,_0x34701b,_0x1e408e,_0x475269,_0x556375,_0x2a8859,_0x43313e,_0x593e11,_0xdb4419,_0x379f18,_0x568125,_0x2a677a){return _0x4c8fff(_0x34701b,_0x1e408e,_0x475269,_0x556375,_0x2a8859,_0x43313e,_0x593e11,_0xdb4419,_0x379f18,_0x568125,_0x2a677a);},'ooBAs':_0x3e257d(0x22d),'iKIIS':function(_0x418627,_0xf2c02a,_0x1f10e6,_0x28bb55,_0x2e3fa5,_0xd8e63d){return _0x418627(_0xf2c02a,_0x1f10e6,_0x28bb55,_0x2e3fa5,_0xd8e63d);},'tSORC':function(_0xdca110,_0x29b98a){return _0xdca110===_0x29b98a;},'ictQP':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','puKEu':function(_0x36d33f,_0x3e6104){return _0x36d33f===_0x3e6104;},'DuwfP':function(_0xda7b2f,_0x2b5a7a,_0x43edf1,_0x28a05d){return _0xda7b2f(_0x2b5a7a,_0x43edf1,_0x28a05d);},'bzGjK':function(_0xadc6ea){return _0xadc6ea();},'PnBJj':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','HJQEf':_0x3e257d(0x1c2),'kDiTE':function(_0x5eb4ab,_0x3b05f5){return _0x5eb4ab===_0x3b05f5;},'oIpwg':_0x3e257d(0x18c),'WgZCo':function(_0x5cdd30,_0x310d07){return _0x5cdd30!=_0x310d07;},'zUiNL':function(_0x11ff3c,_0x2e8ad7){return _0x11ff3c!==_0x2e8ad7;},'xvflQ':function(_0x3c3a43,_0x5f08a4){return _0x3c3a43!==_0x5f08a4;},'RKERQ':function(_0x5158b0,_0x44fc13){return _0x5158b0>_0x44fc13;},'VPACi':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','pVKNA':_0x3e257d(0x1cc),'pdXNu':_0x3e257d(0x1a9),'lnxUg':_0x3e257d(0x156),'PbBHH':function(_0x1cf2da,_0x191678,_0x192a8e,_0x276c77,_0x215656,_0x4b0228,_0xcff02a,_0xc132f4){return _0x1cf2da(_0x191678,_0x192a8e,_0x276c77,_0x215656,_0x4b0228,_0xcff02a,_0xc132f4);},'Nyoui':'pre-spawned-invalid-subnets','czJEZ':'4|1|2|3|0','NpdRJ':_0x3e257d(0x16f),'OYXGs':_0x3e257d(0x1d6),'lzBbp':function(_0x1005d7,_0x3f4c68){return _0x1005d7(_0x3f4c68);},'hVqHE':function(_0x35ebe8,_0x3734c1){return _0x35ebe8==_0x3734c1;},'LJMQL':_0x3e257d(0x10a),'UfPyF':function(_0x3183c8,_0x1ee201){return _0x3183c8!==_0x1ee201;},'Wqcoq':'default','aGEup':_0x3e257d(0x10d),'VDhnx':_0x3e257d(0x1e7),'YnWJC':_0x3e257d(0x222),'KsDWs':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','tjYwR':_0x3e257d(0x176),'hraXf':function(_0x29707a,_0x2e7b12){return _0x29707a===_0x2e7b12;},'uIBAv':function(_0x1cc1d9,_0x4402d7,_0x2ffc96,_0x890b8,_0x274286,_0x412c35,_0x301e03,_0x18eb05,_0x18ccd6,_0x474825,_0x41faa2){return _0x1cc1d9(_0x4402d7,_0x2ffc96,_0x890b8,_0x274286,_0x412c35,_0x301e03,_0x18eb05,_0x18ccd6,_0x474825,_0x41faa2);},'AwGON':_0x3e257d(0x17d),'bnJdv':_0x3e257d(0x22e),'pdmIo':function(_0x594f4d,_0x201419,_0x23de92){return _0x594f4d(_0x201419,_0x23de92);},'xTcTC':_0x3e257d(0x138),'qCuLz':'ingress-nginx-controller','pljfT':_0x3e257d(0x1fe),'DASUh':function(_0x277734,_0x185ba4){return _0x277734==_0x185ba4;},'dHhaj':function(_0x47c87f,_0x1ba540){return _0x47c87f==_0x1ba540;},'ElVhS':_0x3e257d(0x11f),'nEPcT':_0x3e257d(0x20d),'zaanH':function(_0x17e7aa,_0xa7aa3f){return _0x17e7aa===_0xa7aa3f;},'zNdnq':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','CZtFN':function(_0xacf400,_0x5aef6a,_0x516d47,_0x4ac55c,_0x139fa7,_0x5456ad,_0x46a93a,_0xd0e6b1){return _0xacf400(_0x5aef6a,_0x516d47,_0x4ac55c,_0x139fa7,_0x5456ad,_0x46a93a,_0xd0e6b1);},'CtfUC':_0x3e257d(0x121),'JJJEf':function(_0x1d90d1,_0x57b427,_0x4285b3,_0x473652,_0x501de3,_0x201448,_0x517f69,_0x21ff42){return _0x1d90d1(_0x57b427,_0x4285b3,_0x473652,_0x501de3,_0x201448,_0x517f69,_0x21ff42);},'QfgxJ':_0x3e257d(0x238),'jNrNW':function(_0x5b673b,_0x49af58){return _0x5b673b===_0x49af58;},'iwspL':function(_0x48ee28,_0x1e52f8,_0x22d406,_0x10c4d5,_0x171333,_0x419b4d){return _0x48ee28(_0x1e52f8,_0x22d406,_0x10c4d5,_0x171333,_0x419b4d);},'IzcYC':_0x3e257d(0x1f9)};let _0xc959c7=![],_0xcd440f,_0x246311,_0x1b5df5,_0x4599b6,_0x4f7d56,_0x4e1d68,_0x6db9a8,_0x53f4f7,_0x4de76c,_0x561851,_0x3f7caa,_0x8c1aa1,_0x730521=0x1,_0xde9ed5=0xe;try{global_registry[_0x3e257d(0x10f)]=_0x5c6aaf[_0x3e257d(0x1e8)](uuidv4),global_registry[_0x3e257d(0x206)]=![];!fs[_0x3e257d(0x203)](_0x5c6aaf[_0x3e257d(0x134)](getCredentialsPath))&&(_0x5c6aaf[_0x3e257d(0x114)](_0x5c6aaf['naQZr'],_0x5c6aaf[_0x3e257d(0x117)])?(console[_0x3e257d(0x20f)](_0x5c6aaf[_0x3e257d(0x200)]),await _0x5c6aaf['FxrqF'](sendInstrumentationEvent,_0x453497,_0x5c6aaf[_0x3e257d(0x228)],messageTypes['ERROR'],_0x5c6aaf['BwaUT'],null,_0x453497),process[_0x3e257d(0x235)](0x1)):_0x2d487e['isPrivateGrid']=!![]);await _0x5c6aaf[_0x3e257d(0x187)](sendInstrumentationEvent,_0x453497,_0x5c6aaf['aGTSZ'],messageTypes[_0x3e257d(0x1a3)],null,null,_0x453497);const _0xe1ed7e=JSON['parse'](fs[_0x3e257d(0x1e3)](_0x5c6aaf[_0x3e257d(0x134)](getCredentialsPath)));global_registry[_0x3e257d(0x201)]=_0xe1ed7e[_0x3e257d(0x10d)][_0x3e257d(0x1bd)],global_registry[_0x3e257d(0x123)]=_0xe1ed7e[_0x3e257d(0x10d)]['password'];const _0x2e4a04=WS_ENDPOINT[_0x3e257d(0x147)](_0x5c6aaf[_0x3e257d(0x15a)],_0xe1ed7e[_0x3e257d(0x10d)][_0x3e257d(0x1bd)])[_0x3e257d(0x147)](_0x5c6aaf[_0x3e257d(0x1b1)],_0xe1ed7e['Browserstack'][_0x3e257d(0x112)]),_0x1a178e={};_0x1a178e[_0x3e257d(0x109)]=ws,_0x1a178e[_0x3e257d(0x157)]=0x36ee80,_0x561851=new ReconnectingWebSocket(_0x2e4a04,[],_0x1a178e),logger['debug'](_0x5c6aaf['BPvLB']),webSocketUtils[_0x3e257d(0x130)](_0x561851,_0x453497[_0x3e257d(0x191)],_0x453497[_0x3e257d(0x112)]);let _0xa07af8=DEFAULT_GRID_NAME;if(_0x453497[_0x3e257d(0x1da)]||_0x453497[_0x3e257d(0x1ea)]||_0x453497[_0x3e257d(0x136)]){if(_0x5c6aaf[_0x3e257d(0x193)](_0x5c6aaf[_0x3e257d(0x1c3)],_0x5c6aaf[_0x3e257d(0x175)])){!(_0x453497[_0x3e257d(0x1da)]&&_0x453497[_0x3e257d(0x1ea)]&&_0x453497[_0x3e257d(0x136)])&&(_0x5c6aaf[_0x3e257d(0x16d)](_0x5c6aaf[_0x3e257d(0x185)],_0x5c6aaf[_0x3e257d(0x185)])?_0x52dab4[_0x3e257d(0x1ea)]={}:(_0xcd440f=_0x5c6aaf[_0x3e257d(0x22b)],await _0x5c6aaf[_0x3e257d(0x1c0)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x1df)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process['exit'](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x453497[_0x3e257d(0x1ea)][_0x3e257d(0x11d)]())){if(_0x5c6aaf[_0x3e257d(0x248)](_0x5c6aaf[_0x3e257d(0x16e)],_0x5c6aaf[_0x3e257d(0x245)]))_0xcd440f=_0x5c6aaf[_0x3e257d(0x1e9)],await _0x5c6aaf[_0x3e257d(0x150)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes['ERROR'],_0x5c6aaf['aGTSZ'],_0x5c6aaf[_0x3e257d(0x1f6)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1);else{const _0x2f1419=_0x5c6aaf[_0x3e257d(0x152)][_0x3e257d(0x1b4)]('|');let _0xadb48c=0x0;while(!![]){switch(_0x2f1419[_0xadb48c++]){case'0':_0x14edae[_0x3e257d(0x1ea)]=_0x284d1d;continue;case'1':_0x1bd7b7=_0x3e257d(0x208)+_0x54ce5f+_0x3e257d(0x1bc)+_0x3148aa+'\x27';continue;case'2':_0x3d8232[_0x3e257d(0x119)]=_0x3e8827;continue;case'3':_0x4addea[_0x3e257d(0x1fc)]=_0x5972ee[_0x3e257d(0x1fc)];continue;case'4':_0x1a2703['clusterName']=_0x31bb6d;continue;case'5':const _0x27df54={};_0x27df54[_0x3e257d(0x211)]=_0x4f81aa[_0x3e257d(0x140)],_0x27df54[_0x3e257d(0x182)]=_0x3e257d(0x1c8),_0x29f096[_0x3e257d(0x14d)](_0x39eedb,_0x27df54);continue;case'6':_0x242173[_0x3e257d(0x216)](_0x4b7821);continue;case'7':const _0x7edc54={};_0x7edc54['type']=_0x1513ad[_0x3e257d(0x1d1)],_0x7edc54[_0x3e257d(0x182)]=_0x5b5b0e,_0x554fd9['sendEventToBackend'](_0x7ea10f,_0x7edc54);continue;case'8':_0x146a49[_0x3e257d(0x1b6)]=_0x135ead[_0x3e257d(0x1b6)];continue;}break;}}}if(_0x453497[_0x3e257d(0x1ee)]&&_0x5c6aaf[_0x3e257d(0x249)](_0x453497[_0x3e257d(0x1ee)]['toLowerCase'](),_0x5c6aaf[_0x3e257d(0x188)])){if(_0x5c6aaf[_0x3e257d(0x1f7)](_0x5c6aaf[_0x3e257d(0x195)],_0x5c6aaf[_0x3e257d(0x1bb)]))global_registry[_0x3e257d(0x206)]=!![];else{const _0xeb1654={};_0xeb1654['type']=_0x4f1b38[_0x3e257d(0x1d1)],_0xeb1654[_0x3e257d(0x182)]=_0x3e257d(0x1c7)+_0x415ad1+_0x3e257d(0x126),_0x1f2ab6['sendEventToBackend'](_0x35c902,_0xeb1654,_0x5c6aaf[_0x3e257d(0x139)]),_0x2fc7d5[_0x3e257d(0x216)](_0x3e257d(0x1c7)+_0x3ed71b+_0x3e257d(0x126)),_0x512981=!![];}}_0xc959c7=!![],_0x1b5df5=_0x453497[_0x3e257d(0x1da)],_0x246311=_0x453497[_0x3e257d(0x1ea)]['toLowerCase'](),_0x4599b6=_0x453497[_0x3e257d(0x136)];}else _0x45f1d1=_0x5c6aaf[_0x3e257d(0x13f)];}if(_0x453497[_0x3e257d(0x1af)]){if(_0x5c6aaf[_0x3e257d(0x160)](_0x5c6aaf[_0x3e257d(0x21c)],_0x5c6aaf[_0x3e257d(0x21c)]))_0xa07af8=_0x453497[_0x3e257d(0x1af)];else{const _0x3cdd39={};_0x3cdd39[_0x3e257d(0x14b)]=_0x5c6aaf[_0x3e257d(0x196)],_0x3cdd39[_0x3e257d(0x211)]=_0x5c6aaf[_0x3e257d(0x243)];const _0x51f4a2={};_0x51f4a2[_0x3e257d(0x14b)]=_0x5c6aaf[_0x3e257d(0x13a)],_0x51f4a2[_0x3e257d(0x211)]=_0x5c6aaf[_0x3e257d(0x243)];const _0x29878d={};_0x29878d[_0x3e257d(0x14b)]=_0x5c6aaf['vCUmB'],_0x29878d['type']=_0x5c6aaf['iEJao'];const _0x268be5={};_0x268be5['description']=_0x5c6aaf[_0x3e257d(0x22f)],_0x268be5['type']=_0x5c6aaf[_0x3e257d(0x243)];const _0x3aca16={};_0x3aca16[_0x3e257d(0x14b)]=_0x5c6aaf[_0x3e257d(0x1ad)],_0x3aca16['type']=_0x5c6aaf['iEJao'];const _0x17a5d5={};_0x17a5d5[_0x3e257d(0x14b)]=_0x5c6aaf['xZVYP'],_0x17a5d5[_0x3e257d(0x211)]=_0x5c6aaf[_0x3e257d(0x243)];const _0x5da071={};return _0x5da071['grid-name']=_0x3cdd39,_0x5da071[_0x3e257d(0x1b7)]=_0x51f4a2,_0x5da071[_0x3e257d(0x159)]=_0x29878d,_0x5da071[_0x3e257d(0x179)]=_0x268be5,_0x5da071[_0x3e257d(0x136)]=_0x3aca16,_0x5da071[_0x3e257d(0x166)]=_0x17a5d5,_0x302dcf[_0x3e257d(0x198)](_0x3beec5[_0x3e257d(0x239)])[_0x3e257d(0x127)](_0x296d19)['options'](_0x5da071)[_0x3e257d(0x217)](_0x5c6aaf[_0x3e257d(0x1ac)])[_0x3e257d(0x23e)];}}global_registry['gridName']=_0xa07af8;const _0x3ac5cc={};_0x3ac5cc['username']=_0xe1ed7e[_0x3e257d(0x10d)]['username'],_0x3ac5cc[_0x3e257d(0x112)]=_0xe1ed7e[_0x3e257d(0x10d)]['password'];const _0x4e9d87={};_0x4e9d87[_0x3e257d(0x11c)]=_0x5c6aaf[_0x3e257d(0x1aa)],_0x4e9d87[_0x3e257d(0x20b)]=_0x3ac5cc;const _0x1d1de2=_0x4e9d87,_0x33975f=_0x3e257d(0x142)+AG_API_URL+_0x3e257d(0x14a),_0x3db1f5={};_0x3db1f5[_0x3e257d(0x1af)]=_0xa07af8;const _0x3823d6={'url':_0x33975f,'qs':_0x3db1f5,..._0x1d1de2},_0x49d900=_0x3823d6,_0x4690e7=await _0x5c6aaf[_0x3e257d(0x19a)](promisifiedRequest,_0x49d900);(_0x5c6aaf['uTAtc'](_0x4690e7,null)||_0x5c6aaf[_0x3e257d(0x160)](_0x4690e7,undefined))&&(_0x5c6aaf[_0x3e257d(0x160)](_0x5c6aaf[_0x3e257d(0x19b)],_0x5c6aaf['hWOwv'])?(_0xcd440f=_0x5c6aaf[_0x3e257d(0x230)],await _0x5c6aaf[_0x3e257d(0x1ca)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf['aGTSZ'],_0x5c6aaf[_0x3e257d(0x1c5)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)):_0x16d3ee=_0x495f24['gridName']);_0x5c6aaf[_0x3e257d(0x17a)](_0x4690e7[_0x3e257d(0x1d4)],0x191)&&(_0x5c6aaf['LgbxI'](_0x5c6aaf[_0x3e257d(0x214)],_0x5c6aaf[_0x3e257d(0x17b)])?(_0xcd440f=_0x5c6aaf[_0x3e257d(0x20a)],await _0x5c6aaf[_0x3e257d(0x1ba)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf['dyNxP'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)):(_0x6058c2[_0x3e257d(0x20f)](_0x5c6aaf[_0x3e257d(0x11b)]),_0x51ebe8[_0x3e257d(0x235)](0x1)));if(_0x5c6aaf['JevTI'](_0x4690e7[_0x3e257d(0x1d4)],0xc8)){if(_0x5c6aaf['fTkLW'](_0x5c6aaf['zjtKz'],_0x5c6aaf[_0x3e257d(0x1fa)]))throw _0x2233bf;else _0xcd440f=_0x3e257d(0x113)+JSON['stringify'](_0x4690e7),await _0x5c6aaf[_0x3e257d(0x115)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x14e)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1);}const _0x38c19a=JSON['parse'](_0x4690e7[_0x3e257d(0x1dd)]),_0x5ba31c={};_0x5ba31c[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x140)],_0x5ba31c[_0x3e257d(0x182)]=_0x3e257d(0x1c8),webSocketUtils['sendEventToBackend'](_0x561851,_0x5ba31c);const _0x4dad02={};_0x4dad02[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x4dad02[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x12f)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x4dad02);_0x38c19a[_0x3e257d(0x183)]&&(_0x5c6aaf['RHcjO'](_0x5c6aaf['IdZRk'],_0x5c6aaf[_0x3e257d(0x12a)])?_0x38308b[_0x3e257d(0x216)]('Found\x20VPC:\x20'+_0x30314e+'\x20'):(_0xcd440f=_0x5c6aaf[_0x3e257d(0x19f)],await _0x5c6aaf[_0x3e257d(0x1c0)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf['aGTSZ'],_0x5c6aaf[_0x3e257d(0x14f)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)));const _0x136706=_0x38c19a['gridProfiles'];let _0x292f0b=_0x136706[_0x38c19a[_0x3e257d(0x184)]];_0x453497[_0x3e257d(0x232)]&&(_0x5c6aaf[_0x3e257d(0x116)](_0x5c6aaf[_0x3e257d(0x155)],_0x5c6aaf[_0x3e257d(0x15e)])?_0x292f0b=_0x136706[_0x453497['gridProfile']]:(_0x2a3a00=_0x4bb0a4[_0x3e257d(0x1de)],_0x450b41=_0x5c6aaf['NVlFz']));if(_0x5c6aaf[_0x3e257d(0x16b)](_0xc959c7,![])){if(_0x5c6aaf['RHcjO'](_0x5c6aaf[_0x3e257d(0x1c9)],_0x5c6aaf[_0x3e257d(0x10b)]))_0x4028f1[_0x3e257d(0x216)](_0x3e257d(0x122)+_0x2d6efd[_0x3e257d(0x1a5)](_0xed4bf4)+'\x20');else{if(_0x5c6aaf[_0x3e257d(0x17a)](_0x292f0b,undefined)){if(_0x5c6aaf[_0x3e257d(0x160)](_0x5c6aaf[_0x3e257d(0x1d2)],_0x5c6aaf[_0x3e257d(0x1d2)]))_0xcd440f=_0x5c6aaf[_0x3e257d(0x1fd)],await _0x5c6aaf[_0x3e257d(0x14c)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf['aGTSZ'],_0x5c6aaf['qkIbd'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1);else{const _0x373b63={};_0x373b63[_0x3e257d(0x211)]=_0x524eb7[_0x3e257d(0x1d1)],_0x373b63[_0x3e257d(0x182)]=_0x3a30f8,_0x411930['sendEventToBackend'](_0x1ff267,_0x373b63,_0x5c6aaf[_0x3e257d(0x1ae)],!![]);}}global_registry[_0x3e257d(0x1f8)]=_0x292f0b['id'];(_0x5c6aaf[_0x3e257d(0x10c)](_0x246311,AZURE)||_0x5c6aaf[_0x3e257d(0x17a)](_0x292f0b?.[_0x3e257d(0x1ea)],AZURE))&&(_0x5c6aaf['UaMix'](_0x5c6aaf['XpHzI'],_0x5c6aaf['kaNzf'])?_0x46fdd2[_0x3e257d(0x206)]=!![]:(console[_0x3e257d(0x20f)](_0x5c6aaf[_0x3e257d(0x11b)]),process[_0x3e257d(0x235)](0x1)));_0xcd440f=_0x3e257d(0x209)+_0xa07af8+'\x20using\x20\x27'+_0x292f0b['name']+_0x3e257d(0x118),logger['info'](_0xcd440f);const _0x51d54b={};_0x51d54b[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x51d54b[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils['sendEventToBackend'](_0x561851,_0x51d54b),_0x246311=_0x292f0b[_0x3e257d(0x1ea)],_0x1b5df5=_0x292f0b[_0x3e257d(0x1da)],_0x4599b6=_0x292f0b[_0x3e257d(0x136)],_0x4f7d56=_0x292f0b[_0x3e257d(0x1f2)],_0x4e1d68=_0x292f0b[_0x3e257d(0x173)],_0x6db9a8=_0x292f0b[_0x3e257d(0x234)],securityGroups=_0x292f0b[_0x3e257d(0x163)],subnets=_0x292f0b[_0x3e257d(0x1a7)],_0x53f4f7=_0x292f0b[_0x3e257d(0x207)],_0x730521=_0x292f0b[_0x3e257d(0x18d)],_0xde9ed5=_0x292f0b['maxNodes'],_0x3f7caa=_0x38c19a['hubVersion'],_0x8c1aa1=_0x38c19a[_0x3e257d(0x1fc)],_0x5c6aaf[_0x3e257d(0x1e2)](_0x292f0b[_0x3e257d(0x1ee)],undefined)&&_0x292f0b['privateGrid']&&(_0x5c6aaf['ngxMo'](_0x5c6aaf[_0x3e257d(0x164)],_0x5c6aaf[_0x3e257d(0x1d9)])?global_registry[_0x3e257d(0x206)]=!![]:_0x2ae520=_0x4dc3ce[_0x5ca812[_0x3e257d(0x232)]]),_0x5c6aaf['DNzQf'](updateGlobalRegistryWithConfig,_0x246311,_0x1b5df5,_0x4599b6,_0x4f7d56,_0x4e1d68,_0x53f4f7,_0x292f0b,_0x3f7caa,_0x8c1aa1,_0x730521,_0xde9ed5);}}else{const _0x10080e=_0x5c6aaf[_0x3e257d(0x17c)][_0x3e257d(0x1b4)]('|');let _0x5e7706=0x0;while(!![]){switch(_0x10080e[_0x5e7706++]){case'0':logger[_0x3e257d(0x216)](_0xcd440f);continue;case'1':const _0x57d7a4={};_0x57d7a4[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x140)],_0x57d7a4[_0x3e257d(0x182)]='CLI\x20run\x20started',webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x57d7a4);continue;case'2':const _0x266b9f={};_0x266b9f[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x266b9f[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x266b9f);continue;case'3':global_registry['cloudProvider']=_0x246311;continue;case'4':global_registry[_0x3e257d(0x1da)]=_0x1b5df5;continue;case'5':_0xcd440f=_0x3e257d(0x208)+_0xa07af8+_0x3e257d(0x1bc)+_0x1b5df5+'\x27';continue;case'6':global_registry[_0x3e257d(0x1b6)]=_0x38c19a[_0x3e257d(0x1b6)];continue;case'7':global_registry['clusterRegion']=_0x4599b6;continue;case'8':global_registry[_0x3e257d(0x1fc)]=_0x38c19a[_0x3e257d(0x1fc)];continue;}break;}}const _0x57bd4c=_0x5c6aaf[_0x3e257d(0x13c)](getCloudProviderObject,_0x246311,_0x1b5df5,_0xa07af8,_0x561851,webSocketUtils),_0x22cf9f=_0xe1ed7e[_0x3e257d(0x1ea)]||{};if(_0x5c6aaf['tSORC'](_0x22cf9f[_0x246311],undefined)){logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x227)]);_0x5c6aaf['puKEu'](_0xe1ed7e[_0x3e257d(0x1ea)],undefined)&&(_0xe1ed7e['cloudProvider']={});_0xe1ed7e['cloudProvider'][_0x246311]={};const _0x2ebdc2=await _0x5c6aaf[_0x3e257d(0x1a8)](inputCloudProviderKeys,_0x246311,_0xe1ed7e,_0x57bd4c);fs[_0x3e257d(0x219)](_0x5c6aaf[_0x3e257d(0x120)](getCredentialsPath),JSON['stringify'](_0x2ebdc2)),logger['debug'](_0x5c6aaf['PnBJj']);}else{_0xcd440f=_0x5c6aaf['HJQEf'];const _0x53f8bc={};_0x53f8bc[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x53f8bc[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x53f8bc),logger[_0x3e257d(0x216)](_0xcd440f),await _0x57bd4c[_0x3e257d(0x21e)](_0x22cf9f);}_0x57bd4c[_0x3e257d(0x1ab)]();let _0x21b862;if(_0x5c6aaf[_0x3e257d(0x229)](_0xc959c7,![])){_0xcd440f='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x4599b6+').';const _0x3d70f5={};_0x3d70f5[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x3d70f5[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x3d70f5),logger[_0x3e257d(0x216)](_0xcd440f);const _0x32250b=await _0x57bd4c[_0x3e257d(0x242)]();if(_0x32250b){const _0x4b40bd={};_0x4b40bd['type']=WS_EVENTS['LOG'],_0x4b40bd[_0x3e257d(0x182)]=_0x3e257d(0x1c7)+_0x1b5df5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x4b40bd,_0x5c6aaf[_0x3e257d(0x139)]),logger[_0x3e257d(0x216)](_0x3e257d(0x1c7)+_0x1b5df5+_0x3e257d(0x126)),_0xc959c7=!![];}else{const _0x391209={};_0x391209[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x391209[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x189)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x391209),logger['info'](_0x5c6aaf[_0x3e257d(0x189)]);const _0x49a9a2=_0x5c6aaf[_0x3e257d(0x12c)](_0x6db9a8,null)&&_0x5c6aaf[_0x3e257d(0x110)](_0x6db9a8,undefined),_0x379dea=_0x5c6aaf[_0x3e257d(0x12c)](subnets,null)&&_0x5c6aaf[_0x3e257d(0x15c)](subnets,undefined)&&_0x5c6aaf[_0x3e257d(0x1e0)](subnets[_0x3e257d(0x1ec)],0x0);if(_0x49a9a2){_0x5c6aaf[_0x3e257d(0x249)](_0x379dea,![])&&(_0xcd440f=_0x5c6aaf[_0x3e257d(0x1ff)],await _0x5c6aaf[_0x3e257d(0x1c0)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x1ce)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));const _0x4d81d9=await _0x57bd4c[_0x3e257d(0x178)](_0x6db9a8);_0x5c6aaf[_0x3e257d(0x229)](_0x4d81d9,![])?(_0xcd440f=_0x5c6aaf['pdXNu'],await _0x5c6aaf[_0x3e257d(0x1ca)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x12d)],_0x5c6aaf['beiLA']),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)):logger[_0x3e257d(0x216)](_0x3e257d(0x167)+_0x6db9a8+'\x20');const _0x2b60c8=await _0x57bd4c[_0x3e257d(0x11e)](subnets,_0x6db9a8);_0x5c6aaf[_0x3e257d(0x213)](_0x2b60c8[0x0],![])?(_0xcd440f='Subnets:\x20'+_0x2b60c8[0x1]+_0x3e257d(0x18a)+_0x6db9a8+_0x3e257d(0x197),await _0x5c6aaf[_0x3e257d(0x1ef)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf['Nyoui'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger['error'](_0xcd440f),process['exit'](0x1)):logger[_0x3e257d(0x216)]('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x57bd4c['setupNewCluster'](_0x6db9a8,subnets);}else{const _0x3e58c9=_0x5c6aaf['czJEZ'][_0x3e257d(0x1b4)]('|');let _0x1be549=0x0;while(!![]){switch(_0x3e58c9[_0x1be549++]){case'0':logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x133)]);continue;case'1':logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x1a4)]);continue;case'2':await _0x57bd4c[_0x3e257d(0x194)]();continue;case'3':const _0x218c19={};_0x218c19[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x218c19[_0x3e257d(0x182)]=_0x3e257d(0x16f),webSocketUtils['sendEventToBackend'](_0x561851,_0x218c19);continue;case'4':const _0x370890={};_0x370890[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x370890[_0x3e257d(0x182)]=_0x5c6aaf['OYXGs'],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x370890);continue;}break;}}}}_0xc959c7&&_0x5c6aaf[_0x3e257d(0x16b)](_0x246311,AZURE)&&(global_registry[_0x3e257d(0x154)]=_0x38c19a[_0x3e257d(0x1cf)],await _0x57bd4c['updatePreSpawnedCluster'](),await _0x57bd4c[_0x3e257d(0x131)]());const [_0x12c55f,_0x58e554,_0x547653,_0x215a5f,_0x460aef,_0x21a45a]=await _0x5c6aaf['lzBbp'](createK8sClient,_0x57bd4c);_0x5c6aaf[_0x3e257d(0x160)](_0xc959c7,![])&&_0x5c6aaf[_0x3e257d(0x144)](_0x246311,AWS)&&(_0x21b862=await _0x57bd4c[_0x3e257d(0x13e)](_0x12c55f,_0x453497));try{_0x4de76c=_0x5c6aaf[_0x3e257d(0x177)](kebabCase,_0xa07af8),logger['info'](_0x5c6aaf[_0x3e257d(0x21a)]);const _0x514493={};_0x514493[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x514493[_0x3e257d(0x182)]=_0x5c6aaf['LJMQL'],webSocketUtils['sendEventToBackend'](_0x561851,_0x514493);if(_0x5c6aaf[_0x3e257d(0x1be)](_0x4de76c,_0x5c6aaf['Wqcoq'])){const _0x30b297={};_0x30b297[_0x3e257d(0x21f)]=_0x5c6aaf[_0x3e257d(0x247)],_0x30b297[_0x3e257d(0x124)]=_0x5c6aaf[_0x3e257d(0x247)];const _0x340a8b={};_0x340a8b['name']=_0x4de76c,_0x340a8b[_0x3e257d(0x246)]=_0x30b297;const _0x2a00ab={};_0x2a00ab[_0x3e257d(0x143)]=_0x340a8b;let _0x555bc4=_0x2a00ab;await _0x12c55f[_0x3e257d(0x172)](_0x555bc4),logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x19c)]);}const _0x34e524={};_0x34e524['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0x34e524[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x1cd)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x34e524);const _0x538691={};_0x538691['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0x538691[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x1a6)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x538691),logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x1b8)]);let _0x1bd476={};_0x5c6aaf['hraXf'](_0x246311,AZURE)&&(_0x1bd476={'clientId':await _0x57bd4c[_0x3e257d(0x1e1)](_0x3e257d(0x21d)+_0x1b5df5)});await _0x5c6aaf[_0x3e257d(0x225)](addGridComponents,_0x12c55f,_0x58e554,_0x547653,_0x215a5f,_0x4de76c,_0x1b5df5,_0x21b862,_0x460aef,_0x21a45a,_0x1bd476),_0xcd440f=_0x5c6aaf[_0x3e257d(0x11a)],logger[_0x3e257d(0x216)](_0xcd440f);const _0xd0b9a8={};_0xd0b9a8['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0xd0b9a8[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils['sendEventToBackend'](_0x561851,_0xd0b9a8),_0xcd440f=_0x5c6aaf[_0x3e257d(0x171)],logger['info'](_0xcd440f);const _0x32f527={};_0x32f527[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x32f527['message']=_0xcd440f,webSocketUtils['sendEventToBackend'](_0x561851,_0x32f527),await webSocketUtils['delay'](0xea60);const _0x495186=await _0x5c6aaf[_0x3e257d(0x165)](getNamespaceUID,_0x12c55f,_0x4de76c);let _0x41ca2e=global_registry[_0x3e257d(0x206)]?_0x5c6aaf[_0x3e257d(0x1f5)]:_0x5c6aaf[_0x3e257d(0x21b)],_0x20ef44=await _0x12c55f['readNamespacedService'](_0x41ca2e,_0x5c6aaf['pljfT']),_0x517c99=_0x57bd4c[_0x3e257d(0x18f)](_0x20ef44)+'/'+_0x4de76c,_0x47d85a=_0x5c6aaf[_0x3e257d(0x13f)];try{const _0x8c661f={'url':_0x3e257d(0x142)+AG_API_URL+_0x3e257d(0x132)+_0x495186,..._0x1d1de2},_0x220230=_0x8c661f,_0x370811=await _0x5c6aaf[_0x3e257d(0x19a)](promisifiedRequest,_0x220230);(_0x5c6aaf[_0x3e257d(0x19e)](_0x370811,null)||_0x5c6aaf[_0x3e257d(0x1b3)](_0x370811,undefined))&&(_0xcd440f=_0x5c6aaf['ElVhS'],await _0x5c6aaf[_0x3e257d(0x1ca)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf['nEPcT'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));_0x5c6aaf[_0x3e257d(0x1d3)](_0x370811['statusCode'],0x191)&&(_0xcd440f=_0x5c6aaf[_0x3e257d(0x1c4)],await _0x5c6aaf[_0x3e257d(0x1f3)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x17f)],_0x5c6aaf['beiLA']),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));_0x5c6aaf[_0x3e257d(0x1f7)](_0x370811[_0x3e257d(0x1d4)],0xc8)&&(_0xcd440f=_0x3e257d(0x224)+JSON[_0x3e257d(0x1a5)](_0x370811),await _0x5c6aaf[_0x3e257d(0x135)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x1cb)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));const _0x3978cf=JSON['parse'](_0x370811[_0x3e257d(0x1dd)]);_0x3978cf[_0x3e257d(0x1de)]&&(_0x517c99=_0x3978cf[_0x3e257d(0x1de)],_0x47d85a=_0x5c6aaf[_0x3e257d(0x220)]),global_registry[_0x3e257d(0x206)]&&(_0x47d85a=_0x5c6aaf[_0x3e257d(0x13f)]);}catch(_0x318dfa){}_0xcd440f=_0x3e257d(0x12b)+_0x517c99+'\x20',logger['info'](_0xcd440f);const _0x21d8cc={};_0x21d8cc['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0x21d8cc['message']=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x21d8cc),_0xcd440f=_0x3e257d(0x1a2)+_0x47d85a+_0x3e257d(0x1d7)+_0x517c99+_0x3e257d(0x23d),logger[_0x3e257d(0x216)](_0xcd440f);const _0xf615de={};_0xf615de[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0xf615de[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0xf615de);const _0x5cc8c0={};_0x5cc8c0[_0x3e257d(0x211)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5cc8c0['message']='CLI\x20run\x20finished:\x20'+_0x517c99,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x5cc8c0),await webSocketUtils[_0x3e257d(0x169)](0x7d0);}catch(_0x462d33){if(_0x5c6aaf[_0x3e257d(0x16a)](_0xc959c7,![]))try{logger['info'](_0x3e257d(0x19d)),await _0x5c6aaf[_0x3e257d(0x205)](removeGridComponents,_0x12c55f,_0x58e554,_0x547653,_0x215a5f,_0x4de76c),await _0x57bd4c['deleteCluster'](_0x12c55f,global_registry['clusterRegion']);}catch(_0x3a44d9){throw _0x3a44d9;}throw _0x462d33;}}catch(_0x517d84){const _0x1cbbb2='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x517d84+'\x20\x0a'+JSON[_0x3e257d(0x1a5)](_0x517d84)+'\x20';if(_0x561851){const _0x1064d8={};_0x1064d8[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x1064d8['message']=_0x1cbbb2,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x1064d8,_0x5c6aaf[_0x3e257d(0x1ae)],!![]);}await webSocketUtils[_0x3e257d(0x169)](0x7d0);const _0x343e0d={};_0x343e0d['error']=_0x1cbbb2,await _0x5c6aaf[_0x3e257d(0x13d)](sendInstrumentationEvent,_0x453497,_0x5c6aaf[_0x3e257d(0x228)],messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x1e6)],_0x343e0d,_0x453497),logger['error'](_0x1cbbb2);}process[_0x3e257d(0x235)](0x0);};
1
+ function a10_0x2930(){const _0x2f1e38=['cjJAe','KpQck','Yxlhc','cujKv','alreadyPresent','bstackUsername','TpaHv','error','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Browserstack','SXzgE','region','\x20are\x20not\x20present\x20in\x20VPC:\x20','VYMik','createOtherResources','../../utils/webSocketUtils','HPRlz','Creating\x20namespace','viCgN','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.','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','dCvAi','instanceType','sendEventToBackend','xEBCl','warn','get-grid-url-auth-failed','EXEmB','1586ZumMWe','Create\x20a\x20new\x20Automation\x20grid.','uuid','length','TyIfc','21105WndAZQ','HYNcJ','name','ZIaKM','afFuy','isPrivateGrid','securityGroups','IQYIl','info','https://','BNadr','configureIfNotConfigured','zTDKN','540yzWRFg','rCoED','clusterName','JXBOO','ejnBh','GAZIX','body','ffTJz','Grid\x20can\x20be\x20accessed\x20at:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','create-grid-checks-null-response','aqZai','default','create-grid-checks-invalid-profile','kfpMj','QrKAN','Subnets:\x20','epilogue','\x20in\x20existing\x20cluster\x20\x27','/packages/cli/create-grid-checks','UyDwd','ingress-nginx','non-aws-azure-cluster','hFjcu','CLI\x20run\x20started','oTlgj','uPsEX','create-grid-checks-non-200','isSubnetsValid','WzlTM','650LTvefx','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','EohVb','Found\x20VPC:\x20','nZvLa','private-grid','create-grid-called','PIlCN','password','BkVJU','get-grid-url-null-response','pfyHp','CAGcu','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','writeFileSync','createdBy','HICvw','cpJtV','KeCpY','gridProfile','Mrvbs','pre-spawned-subnets-not-selected','/wd/hub','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','QYIuN','pEwfb','OyCmv','myodK','vpc','cloud-provider','reconnecting-websocket','TDCTh','AlnDV','Create\x20a\x20private/public\x20grid.','6536GiTyrP','subnets','wcDLz','replace','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','privateGrid','getGridHostname','548gKjFHx','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','://','TpjYv','Will\x20be\x20spawning\x20the\x20grid\x20','Cluster\x20','browserVersion','3|1|2|0|7|4|5|8|6','vUOJr','cluster-name','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','usage','cEYzy','pdzuq','Lucwe','hubVersion','BOpsX','split','toLowerCase','getResourceClientId','../../config/constants','http','minNodes','vzkQu','VJSyT','GET','MiPQA','IAQRy','annotations','s3BucketName','pre-spawned-invalid-subnets','message','eNjYQ','mMUCG','exit','jAWYR','desc','Cluster\x20created\x20successfully','apcKr','kRize','totdL','LFjSo','PoPkA','6|8|7|1|3|4|2|5|0','XXbJc','nQUBY','swGHz','CLI_RUN_STARTED','private-ingress-nginx-controller','Adding\x20Websocket\x20listeners','updatePreSpawnedCluster','MjyRv','KzMEC','grid-name','DroQD','tesPe','fMHbS','LOG','lnZRc','WdUNe','TKbRN','addListeners','../../config/logger','UPKQs','parse','https','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','XXFSv','XYswo','GOVvK','1352313EMCPTk','oGnjm','Lxnex','RVHjg','request','cIIfg','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','qNXNF','cQhfb','TSisq','isVPCPresent','Namespace\x20created','gqMgG','type','Spawning\x20the\x20grid\x20','bGvVj','wEcHP','command','ewcnK','turboscale-managed-identity-','clusterRegion','fetchLocalCreds','EwdSU','cloudProvider','route53','create','mydrh','hHMMg','SowEL','Grid\x20spawned\x20on\x20the\x20cluster','MphBa','../../utils/gridComponents','GxYOf','gridProfiles','string','create-grid-checks-grid-already-exists','rSGWR','../../utils/userInput','OKELn','ieeJQ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','hRBtk','miVkA','ohxRr','168311hDAGZH','LdFnE','createNamespace','readNamespacedService','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','stringify','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QwcFO','CDYTB','description','xhvRu','2130642vGxXxZ','xYRrp','isClusterPresent','CLI\x20run\x20finished:\x20','XGRon','../../cloudproviders/utils','yfQXD','SrHIg','help','delay','gridName','INFO','pre-spawned-invalid-vpc','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','true','2751UpXpQh','4095138BBZKfH','jqZUr','username','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20grid\x20on\x20to\x20the\x20cluster','uldbH','grid-profile','llQAx','IWWEC','jKXCM','argv','ERROR','method','statusCode','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','debug','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','auth','QregD','ntcRJ','grid','get-grid-url-non-200','loWqD','Audip','user','LNeTY','fDkVN','WgLjT','dYdeE','gridProfileId','prespawned-cluster-args-not-passed','setupAutoscaler'];a10_0x2930=function(){return _0x2f1e38;};return a10_0x2930();}const a10_0x5f1b6f=a10_0xcad2;function a10_0xcad2(_0x3ac8ad,_0x165c38){const _0x2930dc=a10_0x2930();return a10_0xcad2=function(_0xcad2be,_0x2c4fd5){_0xcad2be=_0xcad2be-0x82;let _0x1c69ee=_0x2930dc[_0xcad2be];return _0x1c69ee;},a10_0xcad2(_0x3ac8ad,_0x165c38);}(function(_0x15f860,_0x9e4093){const _0x5e5e3c=a10_0xcad2,_0x3604a5=_0x15f860();while(!![]){try{const _0x4b277d=-parseInt(_0x5e5e3c(0x8d))/0x1*(parseInt(_0x5e5e3c(0x157))/0x2)+parseInt(_0x5e5e3c(0xd3))/0x3+parseInt(_0x5e5e3c(0x169))/0x4*(parseInt(_0x5e5e3c(0x15c))/0x5)+parseInt(_0x5e5e3c(0x11a))/0x6+-parseInt(_0x5e5e3c(0x119))/0x7*(-parseInt(_0x5e5e3c(0x86))/0x8)+-parseInt(_0x5e5e3c(0x10a))/0x9+parseInt(_0x5e5e3c(0x187))/0xa*(-parseInt(_0x5e5e3c(0xff))/0xb);if(_0x4b277d===_0x9e4093)break;else _0x3604a5['push'](_0x3604a5['shift']());}catch(_0x5906e0){_0x3604a5['push'](_0x3604a5['shift']());}}}(a10_0x2930,0x577c7));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x5f1b6f(0x82)),request=require(a10_0x5f1b6f(0xd7)),{v4:uuidv4}=require(a10_0x5f1b6f(0x159)),webSocketUtils=require(a10_0x5f1b6f(0x149)),{logger}=require(a10_0x5f1b6f(0xcb)),{inputCloudProviderKeys}=require(a10_0x5f1b6f(0xf8)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x5f1b6f(0x10f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x5f1b6f(0xa1)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x5f1b6f(0xf2)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a10_0x5f1b6f(0xe4)]=a10_0x5f1b6f(0x12e),exports[a10_0x5f1b6f(0xb1)]=a10_0x5f1b6f(0x158),exports['builder']=function(_0x59dfc9){const _0x26bacc=a10_0x5f1b6f,_0x718e6={};_0x718e6[_0x26bacc(0x10e)]=_0x26bacc(0x12a),_0x718e6[_0x26bacc(0x1a2)]='string',_0x718e6['cEYzy']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x718e6['HimXA']=_0x26bacc(0x8e),_0x718e6[_0x26bacc(0xcc)]=_0x26bacc(0x105),_0x718e6[_0x26bacc(0x122)]=_0x26bacc(0x172),_0x718e6[_0x26bacc(0x95)]=_0x26bacc(0x85),_0x718e6[_0x26bacc(0x16c)]=_0x26bacc(0x112);const _0x52e61f=_0x718e6,_0x49ffe5={};_0x49ffe5[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x10e)],_0x49ffe5[_0x26bacc(0xe0)]=_0x52e61f[_0x26bacc(0x1a2)];const _0x183b0d={};_0x183b0d[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x99)],_0x183b0d[_0x26bacc(0xe0)]=_0x52e61f['myodK'];const _0x607359={};_0x607359[_0x26bacc(0x108)]=_0x52e61f['HimXA'],_0x607359[_0x26bacc(0xe0)]=_0x52e61f['myodK'];const _0x10491f={};_0x10491f[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0xcc)],_0x10491f[_0x26bacc(0xe0)]=_0x52e61f[_0x26bacc(0x1a2)];const _0x114679={};_0x114679[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x122)],_0x114679[_0x26bacc(0xe0)]=_0x52e61f[_0x26bacc(0x1a2)];const _0x319661={};_0x319661[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x95)],_0x319661[_0x26bacc(0xe0)]=_0x52e61f['myodK'];const _0x211f74={};return _0x211f74[_0x26bacc(0xc2)]=_0x49ffe5,_0x211f74[_0x26bacc(0x120)]=_0x183b0d,_0x211f74[_0x26bacc(0x96)]=_0x607359,_0x211f74[_0x26bacc(0x1a4)]=_0x10491f,_0x211f74[_0x26bacc(0x145)]=_0x114679,_0x211f74['private-grid']=_0x319661,_0x59dfc9['usage'](HELP_HEADER_MESSAGE[_0x26bacc(0xec)])[_0x26bacc(0x17a)](HELP_FOOTER_MESSAGE)['options'](_0x211f74)[_0x26bacc(0x112)](_0x52e61f['JXBOO'])['argv'];},exports['handler']=async function(_0x7fb3b6){const _0x4f9049=a10_0x5f1b6f,_0x4d4013={'shcLQ':_0x4f9049(0xb8),'wEcHP':_0x4f9049(0x12a),'totdL':_0x4f9049(0xf5),'LdFnE':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LFjSo':_0x4f9049(0x8e),'gWpJM':_0x4f9049(0x105),'LNeTY':_0x4f9049(0x172),'uldbH':_0x4f9049(0x85),'TKbRN':_0x4f9049(0x112),'xYRrp':_0x4f9049(0x141),'yfQXD':_0x4f9049(0xa2),'SowEL':_0x4f9049(0x154),'rCoED':_0x4f9049(0x97),'SrHIg':_0x4f9049(0xce),'EohVb':function(_0x21115f){return _0x21115f();},'loWqD':function(_0x53a1ed,_0x5f5c82){return _0x53a1ed===_0x5f5c82;},'oGnjm':_0x4f9049(0x18b),'MphBa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WdUNe':function(_0x194d5e,_0x3bc12b,_0x396238,_0x33b16f,_0x1c8d40,_0x2aa3e7,_0x160a7b){return _0x194d5e(_0x3bc12b,_0x396238,_0x33b16f,_0x1c8d40,_0x2aa3e7,_0x160a7b);},'zTDKN':_0x4f9049(0x18d),'DDQeT':'init-not-called','qNXNF':'<UsernamePlaceholder>','TDCTh':'<PasswordPlaceholder>','OKELn':_0x4f9049(0xbe),'TpjYv':function(_0x1a12b0,_0x42b963){return _0x1a12b0===_0x42b963;},'hRBtk':'BYNsX','WzlTM':function(_0x56226a,_0x52b1c5){return _0x56226a===_0x52b1c5;},'viPSA':_0x4f9049(0x136),'DroQD':_0x4f9049(0xe5),'HICvw':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','GAZIX':function(_0x4ecf9b,_0x196b54,_0x4fa55d,_0x9895f6,_0x2f6fa1,_0xfa5423,_0x5cf26d,_0x40f256){return _0x4ecf9b(_0x196b54,_0x4fa55d,_0x9895f6,_0x2f6fa1,_0xfa5423,_0x5cf26d,_0x40f256);},'MiPQA':_0x4f9049(0x138),'SXzgE':function(_0x20d4b2,_0x1e8339){return _0x20d4b2!==_0x1e8339;},'qcZHP':_0x4f9049(0xee),'svtTe':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','afFuy':_0x4f9049(0x17f),'tRbRJ':_0x4f9049(0x118),'mFRVs':_0x4f9049(0x170),'cpJtV':_0x4f9049(0x18e),'KpQck':function(_0x3a3245,_0x37e158){return _0x3a3245!==_0x37e158;},'oTlgj':_0x4f9049(0x11b),'VJSyT':_0x4f9049(0xba),'dCvAi':_0x4f9049(0xa6),'VYMik':function(_0x79509,_0x2af66f){return _0x79509(_0x2af66f);},'TSisq':function(_0x5f449e,_0x31e5e5){return _0x5f449e===_0x31e5e5;},'eoLVp':function(_0x5854a2,_0x5e9d9e){return _0x5854a2!==_0x5e9d9e;},'cujKv':_0x4f9049(0xfd),'xhvRu':_0x4f9049(0xb3),'Yxlhc':_0x4f9049(0x194),'swGHz':_0x4f9049(0x173),'LmccG':function(_0x12e537,_0x513085){return _0x12e537===_0x513085;},'QregD':function(_0xfd1b6d,_0x2f0172){return _0xfd1b6d!==_0x2f0172;},'EwdSU':_0x4f9049(0xad),'PoPkA':_0x4f9049(0xd9),'jTdRs':function(_0x29b619,_0x466edf,_0xd3df7b,_0x5fc6ae,_0x5e50f7,_0x41c259,_0x363a00,_0x3c0c3b){return _0x29b619(_0x466edf,_0xd3df7b,_0x5fc6ae,_0x5e50f7,_0x41c259,_0x363a00,_0x3c0c3b);},'TlXbM':'create-grid-checks-auth-failed','ieeJQ':function(_0x1b6d52,_0xb7aa22){return _0x1b6d52===_0xb7aa22;},'XXFSv':'wiNwx','VBRYI':_0x4f9049(0x190),'Lucwe':function(_0x2bd660,_0x3989f5,_0x2f5029,_0xaefc2,_0x2423a1,_0xd59833,_0x958c91,_0x3354fb){return _0x2bd660(_0x3989f5,_0x2f5029,_0xaefc2,_0x2423a1,_0xd59833,_0x958c91,_0x3354fb);},'Mrvbs':_0x4f9049(0x184),'aqZai':'Grid\x20profile\x20fetched\x20from\x20backend','mydrh':function(_0x10adbc,_0x26f170){return _0x10adbc===_0x26f170;},'kfpMj':_0x4f9049(0x153),'pEwfb':_0x4f9049(0x121),'nbMTp':_0x4f9049(0x128),'OckhT':_0x4f9049(0xf6),'OyCmv':function(_0x139a85,_0x2bac84){return _0x139a85!==_0x2bac84;},'pfyHp':_0x4f9049(0x106),'TpaHv':function(_0x41bf36,_0x2d86c4){return _0x41bf36===_0x2d86c4;},'aKpTL':_0x4f9049(0x178),'tTrTI':'dMpqg','kRize':_0x4f9049(0x14a),'cIIfg':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','SYePY':_0x4f9049(0x176),'wcDLz':_0x4f9049(0x14c),'ZbshN':function(_0x167c14,_0x5542d5){return _0x167c14!==_0x5542d5;},'jAWYR':_0x4f9049(0x9a),'fMHbS':_0x4f9049(0x135),'IAQRy':function(_0x4db993,_0x1831c9,_0x3fd084,_0x12dfdb,_0x49bf4c,_0x4e9238,_0x55f90f,_0x23e5e0,_0x3d610f,_0x2412d8,_0x3c39cc,_0x40188a){return _0x4db993(_0x1831c9,_0x3fd084,_0x12dfdb,_0x49bf4c,_0x4e9238,_0x55f90f,_0x23e5e0,_0x3d610f,_0x2412d8,_0x3c39cc,_0x40188a);},'oEVvZ':_0x4f9049(0x94),'GOVvK':function(_0x597fb6,_0x375f58,_0x13dba7,_0x388a03,_0x22ace2,_0xe42a93){return _0x597fb6(_0x375f58,_0x13dba7,_0x388a03,_0x22ace2,_0xe42a93);},'rSGWR':function(_0x47e190,_0x19296c){return _0x47e190===_0x19296c;},'vfKOX':_0x4f9049(0x19e),'ZIaKM':function(_0x42b277,_0x1ac13b,_0x4cdc9f,_0x41d515){return _0x42b277(_0x1ac13b,_0x4cdc9f,_0x41d515);},'itlcQ':_0x4f9049(0x188),'anbuY':_0x4f9049(0xfb),'KzMEC':_0x4f9049(0x103),'cjJAe':function(_0x56a011,_0x19ace6){return _0x56a011!=_0x19ace6;},'BOpsX':function(_0xfc3af7,_0x22634d){return _0xfc3af7!==_0x22634d;},'UphKl':function(_0x7e3d69,_0x3f3316){return _0x7e3d69!==_0x3f3316;},'CDYTB':function(_0x363051,_0x425e6e){return _0x363051>_0x425e6e;},'mMUCG':function(_0x23c81e,_0x43d4ed){return _0x23c81e===_0x43d4ed;},'WMIGk':_0x4f9049(0x142),'IQYIl':_0x4f9049(0x19c),'tesPe':_0x4f9049(0x14e),'UyDwd':function(_0x3236fe,_0x217d03,_0x367e49,_0x517cdb,_0x2a7c43,_0x182424,_0x15ff0e,_0x3f7d2a){return _0x3236fe(_0x217d03,_0x367e49,_0x517cdb,_0x2a7c43,_0x182424,_0x15ff0e,_0x3f7d2a);},'XYswo':_0x4f9049(0x116),'KeCpY':function(_0x5bf1b8,_0x3d7cea,_0x3a0c0f,_0x15cade,_0x3017ec,_0x51062a,_0xb2603f,_0x16ce81){return _0x5bf1b8(_0x3d7cea,_0x3a0c0f,_0x15cade,_0x3017ec,_0x51062a,_0xb2603f,_0x16ce81);},'nvQeY':_0x4f9049(0xab),'miogP':'4|3|0|1|2','hMlaT':_0x4f9049(0xb2),'TyIfc':_0x4f9049(0x14d),'bGvVj':function(_0x1a26ed,_0x18a858){return _0x1a26ed==_0x18a858;},'kdOXP':function(_0x41754b,_0x58affd){return _0x41754b(_0x58affd);},'hFjcu':_0x4f9049(0x14b),'fDkVN':function(_0x5a4eda,_0x27d723){return _0x5a4eda!==_0x27d723;},'esntu':_0x4f9049(0x175),'cQhfb':_0x4f9049(0x143),'Audip':'Namespace\x20Created','BNadr':_0x4f9049(0xde),'qwghn':_0x4f9049(0x11e),'HYNcJ':'Spawning\x20Grid\x20on\x20the\x20Cluster','AlnDV':function(_0xf59472,_0x506457){return _0xf59472===_0x506457;},'uuiME':function(_0x5434ce,_0x2de980,_0x5ba7c6,_0x45415f,_0x41fb88,_0x4d8432,_0x5d0940,_0x2aad8c,_0x11a0a9,_0x42e08f,_0x1aec1f){return _0x5434ce(_0x2de980,_0x5ba7c6,_0x45415f,_0x41fb88,_0x4d8432,_0x5d0940,_0x2aad8c,_0x11a0a9,_0x42e08f,_0x1aec1f);},'lnZRc':_0x4f9049(0xf0),'CAGcu':_0x4f9049(0xcf),'MjyRv':function(_0x17da7d,_0x2abc8c,_0x5bd851){return _0x17da7d(_0x2abc8c,_0x5bd851);},'uPsEX':_0x4f9049(0xbd),'Lxnex':'ingress-nginx-controller','jKXCM':_0x4f9049(0x17e),'ejnBh':function(_0x5457dc,_0x4fbf84){return _0x5457dc==_0x4fbf84;},'QYIuN':_0x4f9049(0x117),'ntcRJ':function(_0x10bc41,_0x404475,_0xeebcda,_0x4bb3e1,_0x438da4,_0x46c5cb,_0x27ca68,_0x230f8c){return _0x10bc41(_0x404475,_0xeebcda,_0x4bb3e1,_0x438da4,_0x46c5cb,_0x27ca68,_0x230f8c);},'RVHjg':_0x4f9049(0x191),'ohxRr':function(_0x5de542,_0x101edd){return _0x5de542===_0x101edd;},'vzkQu':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZAprF':function(_0xfe6dd9,_0x7aeb3f,_0x33f4ae,_0x32943a,_0x2710a8,_0x2f366c,_0x4e15f2,_0x3813f4){return _0xfe6dd9(_0x7aeb3f,_0x33f4ae,_0x32943a,_0x2710a8,_0x2f366c,_0x4e15f2,_0x3813f4);},'UEMKb':_0x4f9049(0x155),'XXbJc':function(_0x4a9c46,_0xe32dc0){return _0x4a9c46!==_0xe32dc0;},'GxYOf':_0x4f9049(0x12f),'knDqf':function(_0x422d80,_0x2dfb19){return _0x422d80===_0x2dfb19;},'gqMgG':function(_0x333f0c,_0x36ae3e,_0x498f47,_0x1c6caf,_0xc45d82,_0x28aadd){return _0x333f0c(_0x36ae3e,_0x498f47,_0x1c6caf,_0xc45d82,_0x28aadd);},'EXEmB':'grid-spawning-failed'};let _0x3108ee=![],_0x54194c,_0x21461b,_0x2de30b,_0x11807a,_0x572abb,_0x1c73fd,_0x27ee11,_0x1e428b,_0x5f320a,_0x25ebb3,_0x5cc038,_0x37e88a,_0x46bb9f=0x1,_0x5825f9=0xe;try{global_registry['requestId']=_0x4d4013[_0x4f9049(0x189)](uuidv4),global_registry[_0x4f9049(0x161)]=![];if(!fs['existsSync'](_0x4d4013[_0x4f9049(0x189)](getCredentialsPath))){if(_0x4d4013[_0x4f9049(0x130)](_0x4d4013[_0x4f9049(0xd4)],_0x4d4013[_0x4f9049(0xd4)]))console[_0x4f9049(0x141)](_0x4d4013[_0x4f9049(0xf1)]),await _0x4d4013[_0x4f9049(0xc8)](sendInstrumentationEvent,_0x7fb3b6,_0x4d4013[_0x4f9049(0x168)],messageTypes[_0x4f9049(0x125)],_0x4d4013['DDQeT'],null,_0x7fb3b6),process['exit'](0x1);else{const _0x182a69=_0x4d4013['shcLQ']['split']('|');let _0x234d58=0x0;while(!![]){switch(_0x182a69[_0x234d58++]){case'0':_0x5a1e04[_0x4f9049(0x93)]=_0x59314b['browserVersion'];continue;case'1':const _0x570438={};_0x570438[_0x4f9049(0xe0)]=_0xaeac26[_0x4f9049(0xc6)],_0x570438[_0x4f9049(0xac)]=_0x4536d7,_0x521d66[_0x4f9049(0x152)](_0x4b8eae,_0x570438);continue;case'2':_0x18c827[_0x4f9049(0x16b)]=_0x302126;continue;case'3':_0x731924[_0x4f9049(0xea)]=_0xf79e57;continue;case'4':_0x3650ff[_0x4f9049(0xe7)]=_0x2efadb;continue;case'5':_0x35073d[_0x4f9049(0x9c)]=_0x4d341c[_0x4f9049(0x9c)];continue;case'6':const _0x12fc35={};_0x12fc35[_0x4f9049(0xe0)]=_0x1367ad[_0x4f9049(0xbc)],_0x12fc35['message']='CLI\x20run\x20started',_0x34766e[_0x4f9049(0x152)](_0x4c269a,_0x12fc35);continue;case'7':_0x303035[_0x4f9049(0x164)](_0x18be3e);continue;case'8':_0x24aced='Spawning\x20the\x20grid\x20'+_0x1f1d92+_0x4f9049(0x17b)+_0x24c7f3+'\x27';continue;}break;}}}await _0x4d4013[_0x4f9049(0xc8)](sendInstrumentationEvent,_0x7fb3b6,_0x4d4013['zTDKN'],messageTypes[_0x4f9049(0x115)],null,null,_0x7fb3b6);const _0x54d08e=JSON['parse'](fs['readFileSync'](_0x4d4013[_0x4f9049(0x189)](getCredentialsPath)));global_registry[_0x4f9049(0x13f)]=_0x54d08e['Browserstack'][_0x4f9049(0x11c)],global_registry['bstackAccesskey']=_0x54d08e['Browserstack'][_0x4f9049(0x18f)];const _0xc1e188=WS_ENDPOINT[_0x4f9049(0x89)](_0x4d4013[_0x4f9049(0xda)],_0x54d08e['Browserstack']['username'])['replace'](_0x4d4013[_0x4f9049(0x83)],_0x54d08e[_0x4f9049(0x143)][_0x4f9049(0x18f)]),_0x28ab4c={};_0x28ab4c['WebSocket']=ws,_0x28ab4c['connectionTimeout']=0x36ee80,_0x25ebb3=new ReconnectingWebSocket(_0xc1e188,[],_0x28ab4c),logger['debug'](_0x4d4013[_0x4f9049(0xf9)]),webSocketUtils[_0x4f9049(0xca)](_0x25ebb3,_0x7fb3b6[_0x4f9049(0x132)],_0x7fb3b6[_0x4f9049(0x18f)]);let _0x2a468a=DEFAULT_GRID_NAME;if(_0x7fb3b6[_0x4f9049(0x16b)]||_0x7fb3b6[_0x4f9049(0xea)]||_0x7fb3b6[_0x4f9049(0x145)]){if(_0x4d4013['TpjYv'](_0x4d4013[_0x4f9049(0xfc)],_0x4d4013['hRBtk'])){!(_0x7fb3b6['clusterName']&&_0x7fb3b6[_0x4f9049(0xea)]&&_0x7fb3b6['region'])&&(_0x4d4013[_0x4f9049(0x186)](_0x4d4013['viPSA'],_0x4d4013[_0x4f9049(0xc3)])?_0x278ba8['isPrivateGrid']=!![]:(_0x54194c=_0x4d4013[_0x4f9049(0x197)],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013['zTDKN'],_0x4d4013[_0x4f9049(0xa7)],_0x4d4013['xYRrp']),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)));![AWS,AZURE,GCP]['includes'](_0x7fb3b6['cloudProvider']['toLowerCase']())&&(_0x4d4013[_0x4f9049(0x144)](_0x4d4013['qcZHP'],_0x4d4013['qcZHP'])?_0x20733f[_0x4f9049(0x164)](_0x4f9049(0x18a)+_0x2a5a5b+'\x20'):(_0x54194c=_0x4d4013['svtTe'],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0x160)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)));if(_0x7fb3b6[_0x4f9049(0x8b)]&&_0x4d4013[_0x4f9049(0x90)](_0x7fb3b6[_0x4f9049(0x8b)][_0x4f9049(0x9f)](),_0x4d4013['tRbRJ'])){if(_0x4d4013[_0x4f9049(0x144)](_0x4d4013['mFRVs'],_0x4d4013[_0x4f9049(0x198)]))global_registry['isPrivateGrid']=!![];else{const _0x5f4298={};_0x5f4298[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0xe3)],_0x5f4298['type']=_0x4d4013['totdL'];const _0x1f26e3={};_0x1f26e3['description']=_0x4d4013[_0x4f9049(0x100)],_0x1f26e3[_0x4f9049(0xe0)]=_0x4d4013[_0x4f9049(0xb5)];const _0x4dac2a={};_0x4dac2a[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0xb6)],_0x4dac2a[_0x4f9049(0xe0)]=_0x4d4013[_0x4f9049(0xb5)];const _0x35b86a={};_0x35b86a[_0x4f9049(0x108)]=_0x4d4013['gWpJM'],_0x35b86a['type']=_0x4d4013[_0x4f9049(0xb5)];const _0x26d359={};_0x26d359[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0x133)],_0x26d359['type']=_0x4d4013[_0x4f9049(0xb5)];const _0x286dc8={};_0x286dc8[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0x11f)],_0x286dc8[_0x4f9049(0xe0)]=_0x4d4013[_0x4f9049(0xb5)];const _0x435f7d={};return _0x435f7d[_0x4f9049(0xc2)]=_0x5f4298,_0x435f7d[_0x4f9049(0x120)]=_0x1f26e3,_0x435f7d[_0x4f9049(0x96)]=_0x4dac2a,_0x435f7d['cloud-provider']=_0x35b86a,_0x435f7d[_0x4f9049(0x145)]=_0x26d359,_0x435f7d[_0x4f9049(0x18c)]=_0x286dc8,_0x2ce140[_0x4f9049(0x98)](_0x480105['create'])['epilogue'](_0x10e6ff)['options'](_0x435f7d)['help'](_0x4d4013[_0x4f9049(0xc9)])[_0x4f9049(0x124)];}}_0x3108ee=!![],_0x2de30b=_0x7fb3b6[_0x4f9049(0x16b)],_0x21461b=_0x7fb3b6['cloudProvider'][_0x4f9049(0x9f)](),_0x11807a=_0x7fb3b6[_0x4f9049(0x145)];}else throw _0x3f4e61;}_0x7fb3b6[_0x4f9049(0x114)]&&(_0x4d4013[_0x4f9049(0x13b)](_0x4d4013[_0x4f9049(0x182)],_0x4d4013[_0x4f9049(0xa5)])?_0x2a468a=_0x7fb3b6[_0x4f9049(0x114)]:_0x5c1ed5[_0x4f9049(0xea)]={});global_registry[_0x4f9049(0x114)]=_0x2a468a;const _0x2b617e={};_0x2b617e[_0x4f9049(0x11c)]=_0x54d08e[_0x4f9049(0x143)][_0x4f9049(0x11c)],_0x2b617e[_0x4f9049(0x18f)]=_0x54d08e['Browserstack'][_0x4f9049(0x18f)];const _0x466c62={};_0x466c62[_0x4f9049(0x126)]=_0x4d4013[_0x4f9049(0x150)],_0x466c62[_0x4f9049(0x12b)]=_0x2b617e;const _0xc1c395=_0x466c62,_0x388512=_0x4f9049(0x165)+AG_API_URL+_0x4f9049(0x17c),_0x5a9e03={};_0x5a9e03[_0x4f9049(0x114)]=_0x2a468a;const _0x4e2550={'url':_0x388512,'qs':_0x5a9e03,..._0xc1c395},_0x416055=_0x4e2550,_0x5bcf55=await _0x4d4013['VYMik'](promisifiedRequest,_0x416055);if(_0x4d4013[_0x4f9049(0xdc)](_0x5bcf55,null)||_0x4d4013[_0x4f9049(0x90)](_0x5bcf55,undefined)){if(_0x4d4013['eoLVp'](_0x4d4013[_0x4f9049(0x13d)],_0x4d4013[_0x4f9049(0x109)]))_0x54194c=_0x4d4013[_0x4f9049(0x13c)],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xbb)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1);else{const _0x169d61={};_0x169d61[_0x4f9049(0xe0)]=_0xd90336[_0x4f9049(0xc6)],_0x169d61[_0x4f9049(0xac)]=_0x22eba7,_0x4ac7e1['sendEventToBackend'](_0x4a1b70,_0x169d61,_0x4d4013['xYRrp'],!![]);}}_0x4d4013['LmccG'](_0x5bcf55[_0x4f9049(0x127)],0x191)&&(_0x4d4013[_0x4f9049(0x12c)](_0x4d4013[_0x4f9049(0xe9)],_0x4d4013[_0x4f9049(0xe9)])?_0x3a42d3=_0x4d4013[_0x4f9049(0x110)]:(_0x54194c=_0x4d4013[_0x4f9049(0xb7)],await _0x4d4013['jTdRs'](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013['zTDKN'],_0x4d4013['TlXbM'],_0x4d4013[_0x4f9049(0x10b)]),logger['error'](_0x54194c),process[_0x4f9049(0xaf)](0x1)));if(_0x4d4013[_0x4f9049(0x144)](_0x5bcf55[_0x4f9049(0x127)],0xc8)){if(_0x4d4013[_0x4f9049(0xfa)](_0x4d4013[_0x4f9049(0xd0)],_0x4d4013['VBRYI'])){const _0x446aab={};_0x446aab[_0x4f9049(0xe0)]=_0x1cb10e['LOG'],_0x446aab[_0x4f9049(0xac)]=_0x4f9049(0x92)+_0x309498+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x2d1948[_0x4f9049(0x152)](_0x5b772a,_0x446aab,_0x4d4013[_0x4f9049(0xef)]),_0xd4b9d4['info']('Cluster\x20'+_0x2cd006+_0x4f9049(0x14f)),_0x1b10be=!![];}else _0x54194c='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4f9049(0x104)](_0x5bcf55),await _0x4d4013[_0x4f9049(0x9b)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0x19b)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1);}const _0x2f960a=JSON['parse'](_0x5bcf55[_0x4f9049(0x16f)]),_0x2febef={};_0x2febef[_0x4f9049(0xe0)]=WS_EVENTS['CLI_RUN_STARTED'],_0x2febef[_0x4f9049(0xac)]=_0x4f9049(0x181),webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x2febef);const _0xb9d702={};_0xb9d702[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0xb9d702['message']=_0x4d4013[_0x4f9049(0x174)],webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0xb9d702);_0x2f960a[_0x4f9049(0x13e)]&&(_0x4d4013[_0x4f9049(0xed)](_0x4d4013[_0x4f9049(0x177)],_0x4d4013[_0x4f9049(0x1a0)])?(_0x1350c2[_0x4f9049(0x141)](_0x4d4013[_0x4f9049(0x16a)]),_0x52962a['exit'](0x1)):(_0x54194c=_0x4d4013['nbMTp'],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['OckhT'],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1)));const _0x47010e=_0x2f960a[_0x4f9049(0xf4)];let _0x4f2629=_0x47010e[_0x2f960a['defaultGridProfile']];_0x7fb3b6[_0x4f9049(0x19a)]&&(_0x4d4013[_0x4f9049(0x1a1)](_0x4d4013[_0x4f9049(0x192)],_0x4d4013['pfyHp'])?_0x2b0305[_0x4f9049(0x164)]('Found\x20Subnets:\x20'+_0x36f8e1[_0x4f9049(0x104)](_0x4eaee3)+'\x20'):_0x4f2629=_0x47010e[_0x7fb3b6[_0x4f9049(0x19a)]]);if(_0x4d4013[_0x4f9049(0x90)](_0x3108ee,![])){if(_0x4d4013[_0x4f9049(0x140)](_0x4d4013['aKpTL'],_0x4d4013['tTrTI']))_0x32bbfa[_0x4f9049(0x161)]=!![];else{_0x4d4013[_0x4f9049(0x90)](_0x4f2629,undefined)&&(_0x4d4013[_0x4f9049(0x1a1)](_0x4d4013[_0x4f9049(0xb4)],_0x4d4013[_0x4f9049(0xb4)])?_0x2209dc=_0xedcf90[_0x294241[_0x4f9049(0x19a)]]:(_0x54194c=_0x4d4013[_0x4f9049(0xd8)],await _0x4d4013[_0x4f9049(0x9b)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['SYePY'],_0x4d4013['xYRrp']),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1)));global_registry[_0x4f9049(0x137)]=_0x4f2629['id'];(_0x4d4013[_0x4f9049(0x90)](_0x21461b,AZURE)||_0x4d4013[_0x4f9049(0x186)](_0x4f2629?.[_0x4f9049(0xea)],AZURE))&&(_0x4d4013[_0x4f9049(0x1a1)](_0x4d4013[_0x4f9049(0x88)],_0x4d4013[_0x4f9049(0x88)])?_0x4ff9c0=_0x3c5bf1[_0x4f9049(0x114)]:(console['error'](_0x4d4013['rCoED']),process[_0x4f9049(0xaf)](0x1)));_0x54194c=_0x4f9049(0x91)+_0x2a468a+'\x20using\x20\x27'+_0x4f2629[_0x4f9049(0x15e)]+'\x27\x20grid\x20profile',logger[_0x4f9049(0x164)](_0x54194c);const _0x84e625={};_0x84e625['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x84e625[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x84e625),_0x21461b=_0x4f2629['cloudProvider'],_0x2de30b=_0x4f2629[_0x4f9049(0x16b)],_0x11807a=_0x4f2629[_0x4f9049(0x145)],_0x572abb=_0x4f2629['concurrency'],_0x1c73fd=_0x4f2629[_0x4f9049(0x151)],_0x27ee11=_0x4f2629[_0x4f9049(0x1a3)],securityGroups=_0x4f2629[_0x4f9049(0x162)],subnets=_0x4f2629[_0x4f9049(0x87)],_0x1e428b=_0x4f2629['s3bucket'],_0x46bb9f=_0x4f2629[_0x4f9049(0xa3)],_0x5825f9=_0x4f2629['maxNodes'],_0x5cc038=_0x2f960a[_0x4f9049(0x9c)],_0x37e88a=_0x2f960a[_0x4f9049(0x93)],_0x4d4013[_0x4f9049(0x144)](_0x4f2629['privateGrid'],undefined)&&_0x4f2629[_0x4f9049(0x8b)]&&(_0x4d4013['ZbshN'](_0x4d4013[_0x4f9049(0xb0)],_0x4d4013[_0x4f9049(0xc5)])?global_registry[_0x4f9049(0x161)]=!![]:(_0x2593f8=_0x42f3b9[_0x4f9049(0xeb)],_0x276c43=_0x4d4013[_0x4f9049(0x111)])),_0x4d4013[_0x4f9049(0xa8)](updateGlobalRegistryWithConfig,_0x21461b,_0x2de30b,_0x11807a,_0x572abb,_0x1c73fd,_0x1e428b,_0x4f2629,_0x5cc038,_0x37e88a,_0x46bb9f,_0x5825f9);}}else{const _0xa8ae40=_0x4d4013['oEVvZ'][_0x4f9049(0x9e)]('|');let _0x1c942a=0x0;while(!![]){switch(_0xa8ae40[_0x1c942a++]){case'0':const _0x414d08={};_0x414d08[_0x4f9049(0xe0)]=WS_EVENTS['LOG'],_0x414d08[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x414d08);continue;case'1':_0x54194c=_0x4f9049(0xe1)+_0x2a468a+_0x4f9049(0x17b)+_0x2de30b+'\x27';continue;case'2':logger[_0x4f9049(0x164)](_0x54194c);continue;case'3':const _0x5557d9={};_0x5557d9[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xbc)],_0x5557d9[_0x4f9049(0xac)]=_0x4f9049(0x181),webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x5557d9);continue;case'4':global_registry[_0x4f9049(0xe7)]=_0x11807a;continue;case'5':global_registry[_0x4f9049(0x16b)]=_0x2de30b;continue;case'6':global_registry[_0x4f9049(0x93)]=_0x2f960a[_0x4f9049(0x93)];continue;case'7':global_registry[_0x4f9049(0xea)]=_0x21461b;continue;case'8':global_registry['hubVersion']=_0x2f960a['hubVersion'];continue;}break;}}const _0x504b67=_0x4d4013[_0x4f9049(0xd2)](getCloudProviderObject,_0x21461b,_0x2de30b,_0x2a468a,_0x25ebb3,webSocketUtils),_0x184d8d=_0x54d08e[_0x4f9049(0xea)]||{};if(_0x4d4013[_0x4f9049(0xf7)](_0x184d8d[_0x21461b],undefined)){logger[_0x4f9049(0x164)](_0x4d4013['vfKOX']);_0x4d4013[_0x4f9049(0xf7)](_0x54d08e[_0x4f9049(0xea)],undefined)&&(_0x54d08e[_0x4f9049(0xea)]={});_0x54d08e[_0x4f9049(0xea)][_0x21461b]={};const _0x48636d=await _0x4d4013[_0x4f9049(0x15f)](inputCloudProviderKeys,_0x21461b,_0x54d08e,_0x504b67);fs[_0x4f9049(0x195)](_0x4d4013['EohVb'](getCredentialsPath),JSON[_0x4f9049(0x104)](_0x48636d)),logger[_0x4f9049(0x129)](_0x4d4013['itlcQ']);}else{_0x54194c=_0x4d4013['anbuY'];const _0x5cb61f={};_0x5cb61f[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x5cb61f[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x5cb61f),logger[_0x4f9049(0x164)](_0x54194c),await _0x504b67[_0x4f9049(0xe8)](_0x184d8d);}_0x504b67[_0x4f9049(0x167)]();let _0x4a38a9;if(_0x4d4013[_0x4f9049(0xed)](_0x3108ee,![])){_0x54194c='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x11807a+').';const _0x25a6cf={};_0x25a6cf[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x25a6cf[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x25a6cf),logger[_0x4f9049(0x164)](_0x54194c);const _0xbd1135=await _0x504b67[_0x4f9049(0x10c)]();if(_0xbd1135){const _0x3adbd5={};_0x3adbd5['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x3adbd5[_0x4f9049(0xac)]=_0x4f9049(0x92)+_0x2de30b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x3adbd5,_0x4d4013[_0x4f9049(0xef)]),logger[_0x4f9049(0x164)]('Cluster\x20'+_0x2de30b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3108ee=!![];}else{const _0x242c10={};_0x242c10['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x242c10[_0x4f9049(0xac)]=_0x4d4013[_0x4f9049(0xc1)],webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x242c10),logger[_0x4f9049(0x164)](_0x4d4013['KzMEC']);const _0x2267db=_0x4d4013[_0x4f9049(0x13a)](_0x27ee11,null)&&_0x4d4013[_0x4f9049(0x9d)](_0x27ee11,undefined),_0x4d4f85=_0x4d4013['cjJAe'](subnets,null)&&_0x4d4013['UphKl'](subnets,undefined)&&_0x4d4013[_0x4f9049(0x107)](subnets[_0x4f9049(0x15a)],0x0);if(_0x2267db){_0x4d4013[_0x4f9049(0xae)](_0x4d4f85,![])&&(_0x54194c=_0x4d4013['WMIGk'],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0x163)],_0x4d4013[_0x4f9049(0x10b)]),logger['error'](_0x54194c),process['exit'](0x1));const _0x50571d=await _0x504b67[_0x4f9049(0xdd)](_0x27ee11);_0x4d4013['rSGWR'](_0x50571d,![])?(_0x54194c=_0x4d4013[_0x4f9049(0xc4)],await _0x4d4013[_0x4f9049(0x17d)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xd1)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)):logger[_0x4f9049(0x164)](_0x4f9049(0x18a)+_0x27ee11+'\x20');const _0x6bfb6=await _0x504b67[_0x4f9049(0x185)](subnets,_0x27ee11);_0x4d4013[_0x4f9049(0xdc)](_0x6bfb6[0x0],![])?(_0x54194c=_0x4f9049(0x179)+_0x6bfb6[0x1]+_0x4f9049(0x146)+_0x27ee11+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4d4013[_0x4f9049(0x199)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['nvQeY'],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x504b67['setupNewCluster'](_0x27ee11,subnets);}else{const _0x3351c9=_0x4d4013['miogP'][_0x4f9049(0x9e)]('|');let _0x4914e1=0x0;while(!![]){switch(_0x3351c9[_0x4914e1++]){case'0':await _0x504b67['setupNewCluster']();continue;case'1':const _0x54b4c4={};_0x54b4c4['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x54b4c4[_0x4f9049(0xac)]='Cluster\x20created\x20successfully',webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x54b4c4);continue;case'2':logger[_0x4f9049(0x164)](_0x4d4013['hMlaT']);continue;case'3':logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x15b)]);continue;case'4':const _0x59a5ae={};_0x59a5ae['type']=WS_EVENTS['LOG'],_0x59a5ae['message']=_0x4d4013[_0x4f9049(0x15b)],webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x59a5ae);continue;}break;}}}}_0x3108ee&&_0x4d4013['mMUCG'](_0x21461b,AZURE)&&(global_registry['s3Bucket']=_0x2f960a[_0x4f9049(0xaa)],await _0x504b67[_0x4f9049(0xbf)](),await _0x504b67[_0x4f9049(0x148)]());const [_0xf1e5f6,_0x2fb424,_0x39d6ac,_0x43f779,_0x3f06d2,_0xaaa68]=await _0x4d4013['VYMik'](createK8sClient,_0x504b67);_0x4d4013[_0x4f9049(0xdc)](_0x3108ee,![])&&_0x4d4013[_0x4f9049(0xe2)](_0x21461b,AWS)&&(_0x4a38a9=await _0x504b67[_0x4f9049(0x139)](_0xf1e5f6,_0x7fb3b6));try{_0x5f320a=_0x4d4013['kdOXP'](kebabCase,_0x2a468a),logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x180)]);const _0x290abc={};_0x290abc[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x290abc[_0x4f9049(0xac)]=_0x4d4013[_0x4f9049(0x180)],webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x290abc);if(_0x4d4013[_0x4f9049(0x134)](_0x5f320a,_0x4d4013['esntu'])){const _0x300544={};_0x300544[_0x4f9049(0x196)]=_0x4d4013[_0x4f9049(0xdb)],_0x300544['managedBy']=_0x4d4013['cQhfb'];const _0x41412c={};_0x41412c[_0x4f9049(0x15e)]=_0x5f320a,_0x41412c[_0x4f9049(0xa9)]=_0x300544;const _0xb26e2e={};_0xb26e2e['metadata']=_0x41412c;let _0x3df117=_0xb26e2e;await _0xf1e5f6[_0x4f9049(0x101)](_0x3df117),logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x131)]);}const _0xd64170={};_0xd64170[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0xd64170[_0x4f9049(0xac)]=_0x4d4013[_0x4f9049(0x166)],webSocketUtils['sendEventToBackend'](_0x25ebb3,_0xd64170);const _0x2a561e={};_0x2a561e[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x2a561e[_0x4f9049(0xac)]=_0x4d4013['qwghn'],webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x2a561e),logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x15d)]);let _0x30410b={};_0x4d4013[_0x4f9049(0x84)](_0x21461b,AZURE)&&(_0x30410b={'clientId':await _0x504b67[_0x4f9049(0xa0)](_0x4f9049(0xe6)+_0x2de30b)});await _0x4d4013['uuiME'](addGridComponents,_0xf1e5f6,_0x2fb424,_0x39d6ac,_0x43f779,_0x5f320a,_0x2de30b,_0x4a38a9,_0x3f06d2,_0xaaa68,_0x30410b),_0x54194c=_0x4d4013[_0x4f9049(0xc7)],logger[_0x4f9049(0x164)](_0x54194c);const _0x849029={};_0x849029[_0x4f9049(0xe0)]=WS_EVENTS['LOG'],_0x849029[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x849029),_0x54194c=_0x4d4013[_0x4f9049(0x193)],logger[_0x4f9049(0x164)](_0x54194c);const _0x14a1e8={};_0x14a1e8[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x14a1e8[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x14a1e8),await webSocketUtils[_0x4f9049(0x113)](0xea60);const _0x2b48da=await _0x4d4013[_0x4f9049(0xc0)](getNamespaceUID,_0xf1e5f6,_0x5f320a);let _0x63f687=global_registry[_0x4f9049(0x161)]?_0x4d4013[_0x4f9049(0x183)]:_0x4d4013[_0x4f9049(0xd5)],_0x2283b2=await _0xf1e5f6[_0x4f9049(0x102)](_0x63f687,_0x4d4013[_0x4f9049(0x123)]),_0x3de735=_0x504b67[_0x4f9049(0x8c)](_0x2283b2)+'/'+_0x5f320a,_0x41ce4e=_0x4d4013[_0x4f9049(0x110)];try{const _0x179b1f={'url':_0x4f9049(0x165)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x2b48da,..._0xc1c395},_0x98b43b=_0x179b1f,_0x5ed0d9=await _0x4d4013[_0x4f9049(0x147)](promisifiedRequest,_0x98b43b);(_0x4d4013[_0x4f9049(0x16d)](_0x5ed0d9,null)||_0x4d4013[_0x4f9049(0xe2)](_0x5ed0d9,undefined))&&(_0x54194c=_0x4d4013[_0x4f9049(0x19f)],await _0x4d4013[_0x4f9049(0x12d)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xd6)],_0x4d4013['xYRrp']),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1));_0x4d4013[_0x4f9049(0xfe)](_0x5ed0d9[_0x4f9049(0x127)],0x191)&&(_0x54194c=_0x4d4013[_0x4f9049(0xa4)],await _0x4d4013['ZAprF'](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['UEMKb'],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1));_0x4d4013[_0x4f9049(0xb9)](_0x5ed0d9['statusCode'],0xc8)&&(_0x54194c=_0x4f9049(0x11d)+JSON['stringify'](_0x5ed0d9),await _0x4d4013['GAZIX'](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xf3)],_0x4d4013[_0x4f9049(0x10b)]),logger['error'](_0x54194c),process[_0x4f9049(0xaf)](0x1));const _0x439967=JSON[_0x4f9049(0xcd)](_0x5ed0d9[_0x4f9049(0x16f)]);_0x439967[_0x4f9049(0xeb)]&&(_0x3de735=_0x439967['route53'],_0x41ce4e=_0x4d4013[_0x4f9049(0x111)]),global_registry[_0x4f9049(0x161)]&&(_0x41ce4e=_0x4d4013[_0x4f9049(0x110)]);}catch(_0x16e749){}_0x54194c=_0x4f9049(0x171)+_0x3de735+'\x20',logger[_0x4f9049(0x164)](_0x54194c);const _0x52cf82={};_0x52cf82[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x52cf82['message']=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x52cf82),_0x54194c=_0x4f9049(0x8a)+_0x41ce4e+_0x4f9049(0x8f)+_0x3de735+_0x4f9049(0x19d),logger[_0x4f9049(0x164)](_0x54194c);const _0x8e5f3e={};_0x8e5f3e[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x8e5f3e[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x8e5f3e);const _0x237680={};_0x237680[_0x4f9049(0xe0)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x237680[_0x4f9049(0xac)]=_0x4f9049(0x10d)+_0x3de735,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x237680),await webSocketUtils[_0x4f9049(0x113)](0x7d0);}catch(_0x5da3b5){if(_0x4d4013['knDqf'](_0x3108ee,![]))try{logger[_0x4f9049(0x164)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x4d4013[_0x4f9049(0xdf)](removeGridComponents,_0xf1e5f6,_0x2fb424,_0x39d6ac,_0x43f779,_0x5f320a),await _0x504b67['deleteCluster'](_0xf1e5f6,global_registry[_0x4f9049(0xe7)]);}catch(_0x3d0582){throw _0x3d0582;}throw _0x5da3b5;}}catch(_0x3c4c7f){const _0x466eac='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x3c4c7f+'\x20\x0a'+JSON[_0x4f9049(0x104)](_0x3c4c7f)+'\x20';if(_0x25ebb3){const _0x22e2a1={};_0x22e2a1[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x22e2a1[_0x4f9049(0xac)]=_0x466eac,webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x22e2a1,_0x4d4013[_0x4f9049(0x10b)],!![]);}await webSocketUtils[_0x4f9049(0x113)](0x7d0);const _0x3daa95={};_0x3daa95[_0x4f9049(0x141)]=_0x466eac,await _0x4d4013['WdUNe'](sendInstrumentationEvent,_0x7fb3b6,_0x4d4013[_0x4f9049(0x168)],messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x156)],_0x3daa95,_0x7fb3b6),logger['error'](_0x466eac);}process[_0x4f9049(0xaf)](0x0);};
@@ -1 +1 @@
1
- const a11_0x3a7631=a11_0x3c7e;(function(_0x1812bd,_0x1c93ab){const _0x4e3a4f=a11_0x3c7e,_0x58b035=_0x1812bd();while(!![]){try{const _0x1c207d=parseInt(_0x4e3a4f(0xbb))/0x1+-parseInt(_0x4e3a4f(0xc7))/0x2+-parseInt(_0x4e3a4f(0xcb))/0x3+-parseInt(_0x4e3a4f(0xbc))/0x4+-parseInt(_0x4e3a4f(0xc3))/0x5*(parseInt(_0x4e3a4f(0xbf))/0x6)+parseInt(_0x4e3a4f(0xba))/0x7+parseInt(_0x4e3a4f(0xb7))/0x8;if(_0x1c207d===_0x1c93ab)break;else _0x58b035['push'](_0x58b035['shift']());}catch(_0x3faa93){_0x58b035['push'](_0x58b035['shift']());}}}(a11_0x1fe2,0x23a52));function a11_0x1fe2(){const _0x38a5d9=['255sTGjGj','LOuJw','command','TplqH','63080WMqegF','commandDir','List\x20Grid\x20resources.','usage','57735grRNfN','recommendCommands','demandCommand','841216GBBmIV','../config/constants','builder','1491308mHHTML','275480BSiGYT','1042876CJfazI','delete_commands','help','16020ZDuevh','delete','strict','epilogue'];a11_0x1fe2=function(){return _0x38a5d9;};return a11_0x1fe2();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x3a7631(0xb8));function a11_0x3c7e(_0x493506,_0x353865){const _0x1fe26e=a11_0x1fe2();return a11_0x3c7e=function(_0x3c7ece,_0x1ee3c6){_0x3c7ece=_0x3c7ece-0xb5;let _0x5f1ad2=_0x1fe26e[_0x3c7ece];return _0x5f1ad2;},a11_0x3c7e(_0x493506,_0x353865);}exports[a11_0x3a7631(0xc5)]=a11_0x3a7631(0xc0),exports['desc']=a11_0x3a7631(0xc9),exports[a11_0x3a7631(0xb9)]=function(_0x404283){const _0x4b56c4=a11_0x3a7631,_0x15f98b={};_0x15f98b[_0x4b56c4(0xc6)]=_0x4b56c4(0xbd),_0x15f98b[_0x4b56c4(0xc4)]='help';const _0x3aad95=_0x15f98b;return _0x404283[_0x4b56c4(0xca)](HELP_HEADER_MESSAGE['delete'])[_0x4b56c4(0xc2)](HELP_FOOTER_MESSAGE)[_0x4b56c4(0xc8)](_0x3aad95[_0x4b56c4(0xc6)])[_0x4b56c4(0xb6)]()[_0x4b56c4(0xb5)]()[_0x4b56c4(0xc1)]()[_0x4b56c4(0xbe)](_0x3aad95[_0x4b56c4(0xc4)]);},exports['handler']=function(_0x1d3ad9){};
1
+ const a11_0x19b30c=a11_0x4771;function a11_0x4771(_0x42bf86,_0x3aef59){const _0x257c87=a11_0x257c();return a11_0x4771=function(_0x477150,_0x148085){_0x477150=_0x477150-0x18e;let _0x2aea0a=_0x257c87[_0x477150];return _0x2aea0a;},a11_0x4771(_0x42bf86,_0x3aef59);}(function(_0x13a567,_0x23d576){const _0x196288=a11_0x4771,_0x53c1d5=_0x13a567();while(!![]){try{const _0x2878af=-parseInt(_0x196288(0x193))/0x1*(-parseInt(_0x196288(0x194))/0x2)+-parseInt(_0x196288(0x19d))/0x3+-parseInt(_0x196288(0x198))/0x4+parseInt(_0x196288(0x199))/0x5*(-parseInt(_0x196288(0x1a6))/0x6)+-parseInt(_0x196288(0x19a))/0x7*(parseInt(_0x196288(0x19f))/0x8)+-parseInt(_0x196288(0x195))/0x9+parseInt(_0x196288(0x18e))/0xa;if(_0x2878af===_0x23d576)break;else _0x53c1d5['push'](_0x53c1d5['shift']());}catch(_0x22c758){_0x53c1d5['push'](_0x53c1d5['shift']());}}}(a11_0x257c,0x6b6ec));function a11_0x257c(){const _0x9d727a=['iOmru','recommendCommands','51270FyQgZy','8HRCGwp','2341908kUSVKX','usage','command','1074960AWYTdn','35qUmyed','77wtMdHh','delete','strict','982983uNspDw','commandDir','446680vpLjbl','demandCommand','builder','../config/constants','epilogue','desc','TtxJa','43116LciUZM','17560640aWBHPo','List\x20Grid\x20resources.','help'];a11_0x257c=function(){return _0x9d727a;};return a11_0x257c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x19b30c(0x1a2));exports[a11_0x19b30c(0x197)]=a11_0x19b30c(0x19b),exports[a11_0x19b30c(0x1a4)]=a11_0x19b30c(0x18f),exports[a11_0x19b30c(0x1a1)]=function(_0x1f91b8){const _0x24a458=a11_0x19b30c,_0x4647c0={};_0x4647c0[_0x24a458(0x191)]='delete_commands',_0x4647c0[_0x24a458(0x1a5)]=_0x24a458(0x190);const _0x1e1062=_0x4647c0;return _0x1f91b8[_0x24a458(0x196)](HELP_HEADER_MESSAGE[_0x24a458(0x19b)])[_0x24a458(0x1a3)](HELP_FOOTER_MESSAGE)[_0x24a458(0x19e)](_0x1e1062[_0x24a458(0x191)])[_0x24a458(0x1a0)]()[_0x24a458(0x192)]()[_0x24a458(0x19c)]()[_0x24a458(0x190)](_0x1e1062[_0x24a458(0x1a5)]);},exports['handler']=function(_0x5a9a23){};
@@ -1 +1 @@
1
- function a12_0x19f8(){const _0x38c02a=['dVVbZ','aDXGP','unknown-error','method','onlyGridInCluster','eBrOl','\x22\x20with\x20ID\x20','deleteCluster','stack','delete-grid-called','argv','kaHNY','lUrtg','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','gridId','SkkCR','1718aHdVYD','dGpJN','NuFzj','ieqwm','cfzaA','warn','type','../../utils/utilityMethods','string','TNCyn','writeFileSync','../../utils/gridComponents','Pass\x20the\x20ID\x20of\x20the\x20Grid','toLowerCase','oCxHx','name','help','XTVfQ','MNIZw','Succesfully\x20deleted\x20the\x20grid','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','request','6974648pZNgpP','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','wvwhe','desc','../../config/logger','ERROR','igYBc','info','/packages/cli/grid/','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','url','azasA','../../utils/instrumentationUtils','statusCode','314097ZamNoQ','gcodK','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','region','PGzCC','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','unauthorised','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','eWAVl','4312233XbhpCj','../../utils/createk8sClient','debug','INFO','1307WVydwa','exit','FPNYc','readFileSync','../../utils/userInput','hDzfx','QrrEJ','IjwSs','clusterName','19428yMbqUs','util','WPBlR','kDMSI','command','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','invalid-input','YmmpX','kZuee','wCOEg','Cluster:\x20','Fjlrc','ctJPD','Failed\x20to\x20delete\x20resources!\x20Error:\x20','xhyOP','error','XbJxR','9977unhxha','RqWoT','GilmT','zspku','username','Browserstack','taxPG','BmPpt','usage','uuid','NXvgr','8zusoIV','existsSync','https://','epilogue','TWWAn','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','cloudProvider','options','vgqWN','stringify','RqILb','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','delete','parse','35PewnTg','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','1509980pisanU','body','pemDD','ZZxXm','3BVaqHz','eXtpu','builder','rUoav','promisify','681396HHNYlw','rzdxk','nzvPJ','RkJju','clusterId','LJsiA','description','\x22\x20and\x20ID\x20','password'];a12_0x19f8=function(){return _0x38c02a;};return a12_0x19f8();}const a12_0x7577aa=a12_0x45d1;function a12_0x45d1(_0xe12a1d,_0x3d2fa5){const _0x19f809=a12_0x19f8();return a12_0x45d1=function(_0x45d19f,_0xa2aca5){_0x45d19f=_0x45d19f-0xe9;let _0x2154bf=_0x19f809[_0x45d19f];return _0x2154bf;},a12_0x45d1(_0xe12a1d,_0x3d2fa5);}(function(_0x1b47eb,_0x18f921){const _0x35cda8=a12_0x45d1,_0x3429db=_0x1b47eb();while(!![]){try{const _0x1712f3=-parseInt(_0x35cda8(0x166))/0x1*(-parseInt(_0x35cda8(0x134))/0x2)+parseInt(_0x35cda8(0x116))/0x3*(parseInt(_0x35cda8(0x14a))/0x4)+parseInt(_0x35cda8(0x110))/0x5*(-parseInt(_0x35cda8(0x11b))/0x6)+-parseInt(_0x35cda8(0x158))/0x7+-parseInt(_0x35cda8(0x102))/0x8*(-parseInt(_0x35cda8(0x162))/0x9)+-parseInt(_0x35cda8(0x112))/0xa+-parseInt(_0x35cda8(0xf7))/0xb*(parseInt(_0x35cda8(0x16f))/0xc);if(_0x1712f3===_0x18f921)break;else _0x3429db['push'](_0x3429db['shift']());}catch(_0x4debb0){_0x3429db['push'](_0x3429db['shift']());}}}(a12_0x19f8,0xd85e8));const fs=require('fs'),util=require(a12_0x7577aa(0x170)),request=require(a12_0x7577aa(0x149)),{v4:uuidv4}=require(a12_0x7577aa(0x100)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x7577aa(0x14e)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x7577aa(0x13f)),{sendInstrumentationEvent}=require(a12_0x7577aa(0x156)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x7577aa(0x16a)),{createK8sClient}=require(a12_0x7577aa(0x163)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x7577aa(0x13b)),promisifiedRequest=util[a12_0x7577aa(0x11a)](request);exports[a12_0x7577aa(0xea)]=a12_0x7577aa(0x15e),exports[a12_0x7577aa(0x14d)]='Delete\x20an\x20Automation\x20grid.',exports[a12_0x7577aa(0x118)]=function(_0x3480c1){const _0x36c9aa=a12_0x7577aa,_0x217aed={};_0x217aed[_0x36c9aa(0x11d)]=_0x36c9aa(0x140),_0x217aed['Fjlrc']='string',_0x217aed['eWAVl']=_0x36c9aa(0x144);const _0x342890=_0x217aed,_0x1c764e={};_0x1c764e[_0x36c9aa(0x121)]=_0x342890[_0x36c9aa(0x11d)],_0x1c764e[_0x36c9aa(0x13a)]=_0x342890[_0x36c9aa(0xf1)];const _0x7ff033={};return _0x7ff033['grid-id']=_0x1c764e,_0x3480c1[_0x36c9aa(0xff)](HELP_HEADER_MESSAGE[_0x36c9aa(0x10e)])[_0x36c9aa(0x105)](HELP_FOOTER_MESSAGE)[_0x36c9aa(0x109)](_0x7ff033)[_0x36c9aa(0x144)](_0x342890[_0x36c9aa(0x161)])[_0x36c9aa(0x12e)];},exports['handler']=async function(_0x5eb4fa){const _0x2340c0=a12_0x7577aa,_0xa23502={'vgqWN':_0x2340c0(0x140),'zkSGa':_0x2340c0(0x13c),'gcodK':_0x2340c0(0x144),'TNCyn':_0x2340c0(0x107),'RqILb':function(_0x3d1cf6){return _0x3d1cf6();},'isXHh':function(_0x22ba7d,_0x2fafd2){return _0x22ba7d!==_0x2fafd2;},'RqWoT':_0x2340c0(0x130),'aDXGP':'lJizs','azasA':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rUoav':function(_0x121f34,_0x412cc7,_0x11b8bc,_0x174f7a,_0xa9bef8,_0x2e3540,_0x38442a){return _0x121f34(_0x412cc7,_0x11b8bc,_0x174f7a,_0xa9bef8,_0x2e3540,_0x38442a);},'eXtpu':_0x2340c0(0x12d),'BpCSr':'init-not-called','BmPpt':function(_0xe12b4d,_0x393f75,_0x28c5c5,_0x1f0993,_0x323b0b,_0x5f0ad7,_0x28f053){return _0xe12b4d(_0x393f75,_0x28c5c5,_0x1f0993,_0x323b0b,_0x5f0ad7,_0x28f053);},'taxPG':function(_0x555361,_0x4f092b){return _0x555361!==_0x4f092b;},'dGpJN':_0x2340c0(0x115),'MNIZw':_0x2340c0(0xed),'NuFzj':function(_0x3fc24e,_0x1fb528,_0x3c0a71,_0x5accc1){return _0x3fc24e(_0x1fb528,_0x3c0a71,_0x5accc1);},'wCOEg':function(_0x486644,_0x5bb68c){return _0x486644===_0x5bb68c;},'EzpCx':_0x2340c0(0xfc),'NXvgr':function(_0x1ebaed,_0x3abaca){return _0x1ebaed!==_0x3abaca;},'igfgD':'lEhfA','TWWAn':_0x2340c0(0x14c),'RkJju':function(_0x3176bd,_0x524f21){return _0x3176bd(_0x524f21);},'kZuee':function(_0x14c176,_0x3be9ac){return _0x14c176===_0x3be9ac;},'GilmT':'Witey','eBrOl':'xbGsF','dVVbZ':_0x2340c0(0x131),'cfzaA':function(_0x4dac23,_0x5788ce,_0x51418f,_0x4d226d,_0xa6b93f,_0x611c1c,_0x215e92){return _0x4dac23(_0x5788ce,_0x51418f,_0x4d226d,_0xa6b93f,_0x611c1c,_0x215e92);},'igYBc':_0x2340c0(0xec),'XbJxR':'ZIHsd','ZNtVU':_0x2340c0(0x145),'LJsiA':function(_0xe95954,_0x5cb2ed,_0x4465ae,_0x492102){return _0xe95954(_0x5cb2ed,_0x4465ae,_0x492102);},'ctJPD':function(_0x35ba52,_0xa4c2e8){return _0x35ba52===_0xa4c2e8;},'ieqwm':function(_0x2810be,_0x48fa5b){return _0x2810be===_0x48fa5b;},'QMaht':_0x2340c0(0x16d),'xaoyx':_0x2340c0(0x114),'wGhWD':_0x2340c0(0x14b),'QrrEJ':function(_0x34455b,_0x408ecb){return _0x34455b===_0x408ecb;},'oCxHx':_0x2340c0(0x168),'cPvks':function(_0x4c0824){return _0x4c0824();},'NeTvW':_0x2340c0(0x15a),'xhyOP':_0x2340c0(0x148),'rzdxk':function(_0x6f5c93,_0x270886){return _0x6f5c93(_0x270886);},'slNCC':function(_0x3f1e7d,_0x2d82a5){return _0x3f1e7d(_0x2d82a5);},'SkkCR':function(_0x2a9795,_0x5ed6bb,_0x5bca10,_0xcefe5e,_0x3aac5c,_0x5a56cb){return _0x2a9795(_0x5ed6bb,_0x5bca10,_0xcefe5e,_0x3aac5c,_0x5a56cb);},'kaHNY':'DELETE','BLfzM':function(_0x2ebbd2,_0x14e020){return _0x2ebbd2!==_0x14e020;},'zspku':'server-error','kDMSI':function(_0x2da5c0,_0x951c4c){return _0x2da5c0===_0x951c4c;},'hDzfx':function(_0x1546f2,_0x1db70d,_0x51c9d1,_0x770682,_0x37b1df,_0x1a92ce,_0x141fac){return _0x1546f2(_0x1db70d,_0x51c9d1,_0x770682,_0x37b1df,_0x1a92ce,_0x141fac);},'cPhVT':_0x2340c0(0x15f),'XPcQA':function(_0x230019,_0x253517,_0x5b00bc,_0x49195b,_0x4535cd,_0x494f9b,_0x978b5c){return _0x230019(_0x253517,_0x5b00bc,_0x49195b,_0x4535cd,_0x494f9b,_0x978b5c);},'WPBlR':'invalid-grid-id','FpxMd':function(_0x465ad5,_0x17b9a7,_0x59ae3c,_0x204129,_0x410c75,_0xa8cf59,_0x3d62f1){return _0x465ad5(_0x17b9a7,_0x59ae3c,_0x204129,_0x410c75,_0xa8cf59,_0x3d62f1);},'PGzCC':_0x2340c0(0x126)};try{global_registry['requestId']=_0xa23502[_0x2340c0(0x10c)](uuidv4);!fs[_0x2340c0(0x103)](_0xa23502[_0x2340c0(0x10c)](getCredentialsPath))&&(_0xa23502['isXHh'](_0xa23502[_0x2340c0(0xf8)],_0xa23502[_0x2340c0(0x125)])?(console[_0x2340c0(0xf5)](_0xa23502[_0x2340c0(0x155)]),await _0xa23502['rUoav'](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x14f)],_0xa23502['BpCSr'],null,_0x5eb4fa),process[_0x2340c0(0x167)](0x1)):(_0x4ee8a3['info'](_0x2340c0(0x147)),_0x1c9557[_0x2340c0(0x167)](0x0)));_0xa23502[_0x2340c0(0xfe)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x165)],null,null,_0x5eb4fa);!_0x5eb4fa[_0x2340c0(0x132)]&&(_0xa23502[_0x2340c0(0xfd)](_0xa23502[_0x2340c0(0x135)],_0xa23502[_0x2340c0(0x146)])?(console[_0x2340c0(0xf5)](_0xa23502['TNCyn']),process[_0x2340c0(0x167)](0x1)):_0x1a080b[_0x2340c0(0x167)](0x0));const _0x4ad70d=JSON[_0x2340c0(0x10f)](fs[_0x2340c0(0x169)](_0xa23502[_0x2340c0(0x10c)](getCredentialsPath))),[_0x9333d8,_0x54e6b6]=await _0xa23502[_0x2340c0(0x136)](getGridDetails,_0x4ad70d[_0x2340c0(0xfc)][_0x2340c0(0xfb)],_0x4ad70d[_0x2340c0(0xfc)][_0x2340c0(0x123)],_0x5eb4fa[_0x2340c0(0x132)]);if(_0x54e6b6){const _0x2b04cb=_0x54e6b6['info'];let _0x283c69=_0x2340c0(0x10d)+_0x2b04cb[_0x2340c0(0x143)]+'\x22\x20and\x20ID\x20'+_0x2b04cb['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x2fd860;_0x54e6b6[_0x2340c0(0x128)]&&_0xa23502[_0x2340c0(0xef)](_0x54e6b6['clusterSpawnedVia'],_0xa23502['EzpCx'])&&(_0xa23502[_0x2340c0(0x101)](_0xa23502['igfgD'],_0xa23502[_0x2340c0(0x106)])?_0x283c69='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2b04cb[_0x2340c0(0x143)]+_0x2340c0(0x122)+_0x2b04cb['id']+_0x2340c0(0x111)+_0x2b04cb[_0x2340c0(0x16e)]+_0x2340c0(0x12a)+_0x2b04cb[_0x2340c0(0x11f)]+_0x2340c0(0x160):_0x466bf8['cloudProvider']={});_0x2fd860=await _0xa23502[_0x2340c0(0x11e)](inputConfirmation,_0x283c69);if(_0xa23502[_0x2340c0(0xef)](_0x2fd860,undefined)||_0xa23502[_0x2340c0(0xef)](_0x2fd860,null)||!(_0xa23502[_0x2340c0(0xef)](_0x2fd860['toLowerCase'](),'y')||_0xa23502[_0x2340c0(0xee)](_0x2fd860[_0x2340c0(0x141)](),'n'))){if(_0xa23502['NXvgr'](_0xa23502[_0x2340c0(0xf9)],_0xa23502[_0x2340c0(0x129)]))console[_0x2340c0(0xf5)](_0xa23502[_0x2340c0(0x124)]),await _0xa23502[_0x2340c0(0x138)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502['eXtpu'],messageTypes[_0x2340c0(0x14f)],_0xa23502[_0x2340c0(0x150)],null,_0x5eb4fa),process['exit'](0x1);else{const _0x4ec82={};_0x4ec82[_0x2340c0(0x121)]=_0xa23502[_0x2340c0(0x10a)],_0x4ec82['type']=_0xa23502['zkSGa'];const _0x3dbf2d={};return _0x3dbf2d['grid-id']=_0x4ec82,_0x451e3f[_0x2340c0(0xff)](_0x1f191d[_0x2340c0(0x10e)])[_0x2340c0(0x105)](_0xf4ced3)['options'](_0x3dbf2d)[_0x2340c0(0x144)](_0xa23502[_0x2340c0(0x159)])[_0x2340c0(0x12e)];}}_0xa23502[_0x2340c0(0xee)](_0x2fd860['toLowerCase'](),'n')&&(_0xa23502[_0x2340c0(0xee)](_0xa23502[_0x2340c0(0xf6)],_0xa23502['ZNtVU'])?(_0x45d29e[_0x2340c0(0xf5)](_0xa23502[_0x2340c0(0x13d)]),_0x2827d5[_0x2340c0(0x167)](0x1)):process[_0x2340c0(0x167)](0x0));global_registry['clusterRegion']=_0x2b04cb[_0x2340c0(0x15b)];const _0x49417b=_0x2b04cb[_0x2340c0(0x108)],_0x2e17d7=_0xa23502[_0x2340c0(0x120)](getCloudProviderObject,_0x49417b,_0x2b04cb[_0x2340c0(0x16e)],_0x2b04cb[_0x2340c0(0x143)]),_0x403477=_0x4ad70d['cloudProvider'];if(_0xa23502[_0x2340c0(0xf2)](_0x403477[_0x49417b],undefined)){if(_0xa23502[_0x2340c0(0x137)](_0xa23502['QMaht'],_0xa23502['xaoyx']))_0xf52df6[_0x2340c0(0x139)](_0x2340c0(0xf0)+_0x4dc1aa[_0x2340c0(0x16e)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');else{logger[_0x2340c0(0x151)](_0xa23502['wGhWD']);_0xa23502['QrrEJ'](_0x4ad70d['cloudProvider'],undefined)&&(_0xa23502[_0x2340c0(0x101)](_0xa23502[_0x2340c0(0x142)],_0xa23502[_0x2340c0(0x142)])?_0x2b1a3e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2af449[_0x2340c0(0x143)]+_0x2340c0(0x122)+_0x3f59e9['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x571ca6[_0x2340c0(0x16e)]+_0x2340c0(0x12a)+_0x105d85['clusterId']+_0x2340c0(0x160):_0x4ad70d[_0x2340c0(0x108)]={});_0x4ad70d[_0x2340c0(0x108)][_0x49417b]={};const _0x41c7fe=await _0xa23502[_0x2340c0(0x120)](inputCloudProviderKeys,_0x49417b,_0x4ad70d,_0x2e17d7);fs[_0x2340c0(0x13e)](_0xa23502['cPvks'](getCredentialsPath),JSON['stringify'](_0x41c7fe)),logger[_0x2340c0(0x164)](_0xa23502['NeTvW']);}}else logger[_0x2340c0(0x151)](_0xa23502[_0x2340c0(0xf4)]),await _0x2e17d7['fetchLocalCreds'](_0x403477);_0x2e17d7['configureIfNotConfigured']();const _0x480443=_0xa23502['rzdxk'](kebabCase,_0x2b04cb['name']),[_0x9d203a,_0x4c17c7,_0x236917,_0x4ab58b,_0x414ec0,_0x338775]=await _0xa23502['slNCC'](createK8sClient,_0x2e17d7);await _0xa23502[_0x2340c0(0x133)](removeGridComponents,_0x9d203a,_0x4c17c7,_0x236917,_0x4ab58b,_0x480443);if(_0x54e6b6[_0x2340c0(0x128)]){const _0x36b1a3=await _0x2e17d7['isBrowserstackCluster']();_0x36b1a3?await _0x2e17d7[_0x2340c0(0x12b)](_0x9d203a,_0x2b04cb[_0x2340c0(0x15b)]):logger['warn']('Cluster:\x20'+_0x2b04cb[_0x2340c0(0x16e)]+_0x2340c0(0xeb));}const _0x517a53=_0x2340c0(0x104)+AG_API_URL+_0x2340c0(0x152)+_0x5eb4fa[_0x2340c0(0x132)],_0x5ca4b8={};_0x5ca4b8['username']=_0x4ad70d[_0x2340c0(0xfc)][_0x2340c0(0xfb)],_0x5ca4b8[_0x2340c0(0x123)]=_0x4ad70d[_0x2340c0(0xfc)]['password'];const _0x55e5c8={};_0x55e5c8[_0x2340c0(0x154)]=_0x517a53,_0x55e5c8[_0x2340c0(0x127)]=_0xa23502[_0x2340c0(0x12f)],_0x55e5c8['auth']=_0x5ca4b8;const _0xb26b28=_0x55e5c8,_0x4062ff=await _0xa23502[_0x2340c0(0x11c)](promisifiedRequest,_0xb26b28);_0xa23502['BLfzM'](_0x4062ff,null)&&_0xa23502[_0x2340c0(0xfd)](_0x4062ff,undefined)&&_0xa23502[_0x2340c0(0x16c)](_0x4062ff[_0x2340c0(0x157)],0xc8)&&(logger[_0x2340c0(0x151)](_0x2340c0(0x147)),process[_0x2340c0(0x167)](0x0)),logger[_0x2340c0(0xf5)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x2340c0(0x10b)](_0x4062ff)),await _0xa23502[_0x2340c0(0x119)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes['ERROR'],_0xa23502[_0x2340c0(0xfa)],_0x9333d8,_0x5eb4fa),process[_0x2340c0(0x167)](0x1);}_0xa23502[_0x2340c0(0xe9)](_0x9333d8['statusCode'],0x191)&&(logger['error'](_0x2340c0(0x153)),await _0xa23502[_0x2340c0(0x16b)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x14f)],_0xa23502['cPhVT'],null,_0x5eb4fa),process[_0x2340c0(0x167)](0x1)),_0xa23502[_0x2340c0(0xf2)](_0x9333d8['statusCode'],0x190)&&(logger[_0x2340c0(0xf5)](JSON[_0x2340c0(0x10f)](_0x9333d8[_0x2340c0(0x113)])['message']),await _0xa23502['XPcQA'](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes['ERROR'],_0xa23502[_0x2340c0(0x171)],null,_0x5eb4fa),process['exit'](0x1)),logger['error'](_0x2340c0(0x15d)+JSON[_0x2340c0(0x10b)](_0x9333d8)),await _0xa23502[_0x2340c0(0x138)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x14f)],_0xa23502[_0x2340c0(0xfa)],_0x9333d8,_0x5eb4fa),process['exit'](0x1);}catch(_0x3fa59d){logger[_0x2340c0(0xf5)](_0x2340c0(0xf3)+_0x3fa59d[_0x2340c0(0x12c)]),await _0xa23502['FpxMd'](sendInstrumentationEvent,_0x5eb4fa,_0xa23502['eXtpu'],messageTypes['ERROR'],_0xa23502[_0x2340c0(0x15c)],_0x3fa59d,_0x5eb4fa),process[_0x2340c0(0x167)](0x1);}};
1
+ const a12_0x347c79=a12_0x5378;function a12_0x5378(_0x3a75e4,_0x1a9aa6){const _0x25ca96=a12_0x25ca();return a12_0x5378=function(_0x5378f1,_0x2fbbc1){_0x5378f1=_0x5378f1-0x177;let _0xe45085=_0x25ca96[_0x5378f1];return _0xe45085;},a12_0x5378(_0x3a75e4,_0x1a9aa6);}function a12_0x25ca(){const _0x25f266=['pKRaW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YLXbf','lcaLi','zxqdj','configureIfNotConfigured','name','YkGlp','QVlzv','unauthorised','DMTbY','iYuWJ','statusCode','clusterId','hHcFL','OaESU','xrfCQ','78470JnNoTr','DELETE','server-error','dcZnK','3vKCPKD','rfqJZ','rweci','SJHdq','\x22\x20and\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','gridId','mBsAz','grid','36494yiSxOY','/packages/cli/grid/','SOAXb','NWZVB','../../utils/utilityMethods','127384McpzAz','username','clusterName','ATsFh','XNabJ','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZXlqe','EUBuL','help','epilogue','zRRqU','toLowerCase','EqUxl','invalid-input','../../utils/userInput','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','KDpbk','djOfJ','readFileSync','lAwhV','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','retOi','30jSdjgj','description','uuid','1048201WoMmKC','../../utils/instrumentationUtils','NofrS','fetchLocalCreds','ypofp','2373810zQkpRD','../../config/logger','JBEwm','IYRKS','../../config/constants','36ElFAaf','zJoUJ','NIiQw','type','dejwz','stringify','SQxVh','dewTD','ERROR','rBTqW','Cluster:\x20','wXTwN','LSfsX','ivQgB','fmMKA','onlyGridInCluster','RQYvA','kyvlJ','IsGLN','INFO','info','NHErq','existsSync','builder','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','argv','https://','delete','Succesfully\x20deleted\x20the\x20grid','bDxlL','HXSXx','cloudProvider','password','hVmFs','Pass\x20the\x20ID\x20of\x20the\x20Grid','../../utils/createk8sClient','exit','writeFileSync','requestId','UIcOl','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','error','deleteCluster','Delete\x20an\x20Automation\x20grid.','method','VOxPo','ditas','EzJLM','oWvzk','command','clusterSpawnedVia','warn','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','JWIxn','576qfpNUe','grid-id','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Nhfsd','RIniU','../../utils/gridComponents','promisify','string','SLtKH','auth','Browserstack','delete-grid-called','region','unknown-error','\x22\x20with\x20ID\x20','jewMS','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','110484DmVwft','439764myIGnP','21mwelUe'];a12_0x25ca=function(){return _0x25f266;};return a12_0x25ca();}(function(_0x392538,_0x5c6a0d){const _0x130f7a=a12_0x5378,_0x3ee655=_0x392538();while(!![]){try{const _0x2c2d3b=parseInt(_0x130f7a(0x1c2))/0x1*(-parseInt(_0x130f7a(0x1cc))/0x2)+-parseInt(_0x130f7a(0x1e8))/0x3*(parseInt(_0x130f7a(0x1ab))/0x4)+parseInt(_0x130f7a(0x1f0))/0x5+-parseInt(_0x130f7a(0x1aa))/0x6*(-parseInt(_0x130f7a(0x1ac))/0x7)+-parseInt(_0x130f7a(0x1d1))/0x8*(-parseInt(_0x130f7a(0x199))/0x9)+-parseInt(_0x130f7a(0x1be))/0xa+-parseInt(_0x130f7a(0x1eb))/0xb*(-parseInt(_0x130f7a(0x1f5))/0xc);if(_0x2c2d3b===_0x5c6a0d)break;else _0x3ee655['push'](_0x3ee655['shift']());}catch(_0x3399d9){_0x3ee655['push'](_0x3ee655['shift']());}}}(a12_0x25ca,0xa44b7));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0x347c79(0x1ea)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x347c79(0x1f4)),{logger}=require(a12_0x347c79(0x1f1)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x347c79(0x19e)),{sendInstrumentationEvent}=require(a12_0x347c79(0x1ec)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x347c79(0x1e0)),{createK8sClient}=require(a12_0x347c79(0x186)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x347c79(0x1d0)),promisifiedRequest=util[a12_0x347c79(0x19f)](request);exports[a12_0x347c79(0x194)]=a12_0x347c79(0x1cb),exports['desc']=a12_0x347c79(0x18e),exports[a12_0x347c79(0x17a)]=function(_0x351282){const _0x13dd04=a12_0x347c79,_0xf52efc={};_0xf52efc[_0x13dd04(0x1dc)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0xf52efc[_0x13dd04(0x1b0)]=_0x13dd04(0x1a0),_0xf52efc['JWIxn']=_0x13dd04(0x1da);const _0x36f8b2=_0xf52efc,_0x446abb={};_0x446abb[_0x13dd04(0x1e9)]=_0x36f8b2['zRRqU'],_0x446abb[_0x13dd04(0x1f8)]=_0x36f8b2[_0x13dd04(0x1b0)];const _0x3d5154={};return _0x3d5154[_0x13dd04(0x19a)]=_0x446abb,_0x351282['usage'](HELP_HEADER_MESSAGE[_0x13dd04(0x17e)])[_0x13dd04(0x1db)](HELP_FOOTER_MESSAGE)['options'](_0x3d5154)[_0x13dd04(0x1da)](_0x36f8b2[_0x13dd04(0x198)])[_0x13dd04(0x17c)];},exports['handler']=async function(_0x2dd644){const _0x59f91f=a12_0x347c79,_0x4f851f={'rBTqW':_0x59f91f(0x18b),'SOAXb':_0x59f91f(0x185),'IYRKS':_0x59f91f(0x1a0),'HNqqC':_0x59f91f(0x1da),'Nhfsd':function(_0x30fa95){return _0x30fa95();},'LSfsX':function(_0x4f927f){return _0x4f927f();},'EqUxl':function(_0x94995d,_0x3c873e){return _0x94995d!==_0x3c873e;},'ZXlqe':'MEupS','hHcFL':'ThzZP','rweci':_0x59f91f(0x1ae),'XNabJ':function(_0x46f4a0,_0x44ed18,_0x1c65f5,_0x55af7b,_0x8a722e,_0x27c891,_0x13aa51){return _0x46f4a0(_0x44ed18,_0x1c65f5,_0x55af7b,_0x8a722e,_0x27c891,_0x13aa51);},'xrfCQ':_0x59f91f(0x1a4),'dQzOE':'init-not-called','EUBuL':function(_0x485264,_0x2e186b,_0x24b6b7,_0x490311,_0x5e1521,_0x2d8ce1,_0x37b768){return _0x485264(_0x2e186b,_0x24b6b7,_0x490311,_0x5e1521,_0x2d8ce1,_0x37b768);},'ivQgB':function(_0x3be24e,_0x26f989){return _0x3be24e===_0x26f989;},'zJoUJ':_0x59f91f(0x178),'SJHdq':_0x59f91f(0x181),'cpXHq':function(_0x1522be,_0x4f375e,_0x581f4c,_0x241ad2){return _0x1522be(_0x4f375e,_0x581f4c,_0x241ad2);},'lAwhV':function(_0x51978f,_0x169d43){return _0x51978f===_0x169d43;},'fmMKA':_0x59f91f(0x1a3),'KDpbk':_0x59f91f(0x1a1),'QVlzv':_0x59f91f(0x180),'SQxVh':function(_0x51aec8,_0x1287e7){return _0x51aec8(_0x1287e7);},'ATsFh':function(_0x5e5e9b,_0x3c388a){return _0x5e5e9b===_0x3c388a;},'ypofp':_0x59f91f(0x206),'hVmFs':_0x59f91f(0x1b4),'NofrS':_0x59f91f(0x197),'dejwz':function(_0x30b72d,_0x3ed294,_0x3bcd78,_0x2ea2a2,_0x57e309,_0x40d782,_0x43b43a){return _0x30b72d(_0x3ed294,_0x3bcd78,_0x2ea2a2,_0x57e309,_0x40d782,_0x43b43a);},'IsGLN':_0x59f91f(0x1df),'DMTbY':function(_0x2fbf8f,_0x463643){return _0x2fbf8f===_0x463643;},'zxqdj':function(_0x51534f,_0x370a40){return _0x51534f===_0x370a40;},'pKRaW':_0x59f91f(0x192),'jewMS':_0x59f91f(0x1af),'rfqJZ':function(_0xe7e4a4,_0x2cf1f6,_0x29ab39,_0x39faf3){return _0xe7e4a4(_0x2cf1f6,_0x29ab39,_0x39faf3);},'oWvzk':_0x59f91f(0x1fc),'retOi':'cWfyh','mBsAz':_0x59f91f(0x1e6),'NIiQw':function(_0x1d1799,_0x139200){return _0x1d1799!==_0x139200;},'RIniU':_0x59f91f(0x1f2),'QKGnu':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','dcZnK':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','OaESU':function(_0x4c67eb,_0x370c4f,_0x5254ec,_0x20b921,_0x1cd788,_0x4a941c){return _0x4c67eb(_0x370c4f,_0x5254ec,_0x20b921,_0x1cd788,_0x4a941c);},'YucZI':_0x59f91f(0x1bf),'djOfJ':function(_0xd493d,_0x20f694){return _0xd493d!==_0x20f694;},'ditas':function(_0x10d5ce,_0x4d94ac,_0x43e2e1,_0x2cee76,_0x9073e6,_0x58ba09,_0x5497dc){return _0x10d5ce(_0x4d94ac,_0x43e2e1,_0x2cee76,_0x9073e6,_0x58ba09,_0x5497dc);},'NWZVB':_0x59f91f(0x1c0),'wXTwN':function(_0x4b522c,_0x31bdda){return _0x4b522c===_0x31bdda;},'UIcOl':function(_0xd559,_0x175612,_0xe19f68,_0x39279c,_0x2b3b1d,_0x437e3f,_0x537999){return _0xd559(_0x175612,_0xe19f68,_0x39279c,_0x2b3b1d,_0x437e3f,_0x537999);},'dGFQq':_0x59f91f(0x1b6),'VOxPo':function(_0x2ec421,_0x493c07,_0x209af5,_0x4981d2,_0x5044df,_0x2f2814,_0x37d8ab){return _0x2ec421(_0x493c07,_0x209af5,_0x4981d2,_0x5044df,_0x2f2814,_0x37d8ab);},'fQNrb':'invalid-grid-id','iYuWJ':function(_0x55ae08,_0x113ee2,_0x8b1eeb,_0x76768d,_0x103b1b,_0x1800da,_0x25bd7c){return _0x55ae08(_0x113ee2,_0x8b1eeb,_0x76768d,_0x103b1b,_0x1800da,_0x25bd7c);},'RwGxv':function(_0x225a88,_0x1390f9,_0x32df99,_0x3aaf7f,_0x36d830,_0x35fc6e,_0xf4c937){return _0x225a88(_0x1390f9,_0x32df99,_0x3aaf7f,_0x36d830,_0x35fc6e,_0xf4c937);},'RQYvA':_0x59f91f(0x1a6)};try{global_registry[_0x59f91f(0x189)]=_0x4f851f['Nhfsd'](uuidv4);!fs[_0x59f91f(0x179)](_0x4f851f[_0x59f91f(0x201)](getCredentialsPath))&&(_0x4f851f[_0x59f91f(0x1de)](_0x4f851f[_0x59f91f(0x1d8)],_0x4f851f[_0x59f91f(0x1bb)])?(console[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1c4)]),await _0x4f851f[_0x59f91f(0x1d5)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes['ERROR'],_0x4f851f['dQzOE'],null,_0x2dd644),process[_0x59f91f(0x187)](0x1)):(_0x2f6be2[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1fe)]),_0x505995[_0x59f91f(0x187)](0x1)));_0x4f851f[_0x59f91f(0x1d9)](sendInstrumentationEvent,_0x2dd644,_0x4f851f['xrfCQ'],messageTypes[_0x59f91f(0x208)],null,null,_0x2dd644);!_0x2dd644[_0x59f91f(0x1c9)]&&(_0x4f851f[_0x59f91f(0x202)](_0x4f851f[_0x59f91f(0x1f6)],_0x4f851f[_0x59f91f(0x1c5)])?(_0x479ced[_0x59f91f(0x177)](_0x59f91f(0x17f)),_0xf26e48['exit'](0x0)):(console[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1fe)]),process['exit'](0x1)));const _0x48ea29=JSON['parse'](fs[_0x59f91f(0x1e4)](_0x4f851f[_0x59f91f(0x201)](getCredentialsPath))),[_0x1d2a1a,_0x190286]=await _0x4f851f['cpXHq'](getGridDetails,_0x48ea29[_0x59f91f(0x1a3)]['username'],_0x48ea29['Browserstack'][_0x59f91f(0x183)],_0x2dd644[_0x59f91f(0x1c9)]);if(_0x190286){const _0x12a01f=_0x190286[_0x59f91f(0x177)];let _0x4a005d=_0x59f91f(0x1d6)+_0x12a01f[_0x59f91f(0x1b3)]+_0x59f91f(0x1c6)+_0x12a01f['id']+_0x59f91f(0x1c7),_0x2cb6e3;_0x190286['onlyGridInCluster']&&_0x4f851f[_0x59f91f(0x1e5)](_0x190286[_0x59f91f(0x195)],_0x4f851f[_0x59f91f(0x203)])&&(_0x4f851f[_0x59f91f(0x1de)](_0x4f851f[_0x59f91f(0x1e2)],_0x4f851f[_0x59f91f(0x1b5)])?_0x4a005d=_0x59f91f(0x1d6)+_0x12a01f[_0x59f91f(0x1b3)]+'\x22\x20and\x20ID\x20'+_0x12a01f['id']+_0x59f91f(0x17b)+_0x12a01f[_0x59f91f(0x1d3)]+_0x59f91f(0x1a7)+_0x12a01f[_0x59f91f(0x1ba)]+_0x59f91f(0x1c7):_0x38bacd[_0x59f91f(0x196)](_0x59f91f(0x1ff)+_0x2b9a89['clusterName']+_0x59f91f(0x1c8)));_0x2cb6e3=await _0x4f851f['SQxVh'](inputConfirmation,_0x4a005d);if(_0x4f851f[_0x59f91f(0x202)](_0x2cb6e3,undefined)||_0x4f851f[_0x59f91f(0x1e5)](_0x2cb6e3,null)||!(_0x4f851f[_0x59f91f(0x202)](_0x2cb6e3[_0x59f91f(0x1dd)](),'y')||_0x4f851f[_0x59f91f(0x202)](_0x2cb6e3['toLowerCase'](),'n'))){if(_0x4f851f['ATsFh'](_0x4f851f[_0x59f91f(0x1ef)],_0x4f851f[_0x59f91f(0x184)])){const _0x23d2ab={};_0x23d2ab[_0x59f91f(0x1e9)]=_0x4f851f[_0x59f91f(0x1ce)],_0x23d2ab[_0x59f91f(0x1f8)]=_0x4f851f[_0x59f91f(0x1f3)];const _0x3200ba={};return _0x3200ba[_0x59f91f(0x19a)]=_0x23d2ab,_0x2f5e0e['usage'](_0x106d2d[_0x59f91f(0x17e)])[_0x59f91f(0x1db)](_0x36abdf)['options'](_0x3200ba)[_0x59f91f(0x1da)](_0x4f851f['HNqqC'])['argv'];}else console[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1ed)]),await _0x4f851f[_0x59f91f(0x1f9)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f[_0x59f91f(0x207)],null,_0x2dd644),process[_0x59f91f(0x187)](0x1);}_0x4f851f[_0x59f91f(0x1b7)](_0x2cb6e3[_0x59f91f(0x1dd)](),'n')&&(_0x4f851f[_0x59f91f(0x1b1)](_0x4f851f[_0x59f91f(0x1ad)],_0x4f851f[_0x59f91f(0x1a8)])?_0x117e9f=_0x59f91f(0x1d6)+_0x259008['name']+_0x59f91f(0x1c6)+_0x5bea6d['id']+_0x59f91f(0x17b)+_0x11d2b8['clusterName']+_0x59f91f(0x1a7)+_0x12a561['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':process[_0x59f91f(0x187)](0x0));global_registry['clusterRegion']=_0x12a01f[_0x59f91f(0x1a5)];const _0x1d13db=_0x12a01f[_0x59f91f(0x182)],_0x3b18bd=_0x4f851f[_0x59f91f(0x1c3)](getCloudProviderObject,_0x1d13db,_0x12a01f[_0x59f91f(0x1d3)],_0x12a01f[_0x59f91f(0x1b3)]),_0x1cb292=_0x48ea29[_0x59f91f(0x182)];if(_0x4f851f[_0x59f91f(0x1b1)](_0x1cb292[_0x1d13db],undefined)){if(_0x4f851f['ATsFh'](_0x4f851f[_0x59f91f(0x193)],_0x4f851f[_0x59f91f(0x1e7)]))_0x3f6ae1[_0x59f91f(0x187)](0x0);else{logger[_0x59f91f(0x177)](_0x4f851f[_0x59f91f(0x1ca)]);_0x4f851f[_0x59f91f(0x1d4)](_0x48ea29['cloudProvider'],undefined)&&(_0x4f851f[_0x59f91f(0x1f7)](_0x4f851f['RIniU'],_0x4f851f[_0x59f91f(0x19d)])?_0x5876bd[_0x59f91f(0x182)]={}:_0x48ea29['cloudProvider']={});_0x48ea29['cloudProvider'][_0x1d13db]={};const _0xb877c0=await _0x4f851f['rfqJZ'](inputCloudProviderKeys,_0x1d13db,_0x48ea29,_0x3b18bd);fs[_0x59f91f(0x188)](_0x4f851f[_0x59f91f(0x19c)](getCredentialsPath),JSON[_0x59f91f(0x1fa)](_0xb877c0)),logger['debug'](_0x4f851f['QKGnu']);}}else logger[_0x59f91f(0x177)](_0x4f851f[_0x59f91f(0x1c1)]),await _0x3b18bd[_0x59f91f(0x1ee)](_0x1cb292);_0x3b18bd[_0x59f91f(0x1b2)]();const _0x4294f2=_0x4f851f[_0x59f91f(0x1fb)](kebabCase,_0x12a01f[_0x59f91f(0x1b3)]),[_0xa6b06,_0x546e4b,_0x2e910e,_0x13dbea,_0x4ef479,_0x4ca83e]=await _0x4f851f[_0x59f91f(0x1fb)](createK8sClient,_0x3b18bd);await _0x4f851f[_0x59f91f(0x1bc)](removeGridComponents,_0xa6b06,_0x546e4b,_0x2e910e,_0x13dbea,_0x4294f2);if(_0x190286[_0x59f91f(0x204)]){const _0x5a71b5=await _0x3b18bd['isBrowserstackCluster']();_0x5a71b5?await _0x3b18bd[_0x59f91f(0x18d)](_0xa6b06,_0x12a01f[_0x59f91f(0x1a5)]):logger[_0x59f91f(0x196)]('Cluster:\x20'+_0x12a01f[_0x59f91f(0x1d3)]+_0x59f91f(0x1c8));}const _0x5b5641=_0x59f91f(0x17d)+AG_API_URL+_0x59f91f(0x1cd)+_0x2dd644[_0x59f91f(0x1c9)],_0x1dabb4={};_0x1dabb4[_0x59f91f(0x1d2)]=_0x48ea29['Browserstack'][_0x59f91f(0x1d2)],_0x1dabb4[_0x59f91f(0x183)]=_0x48ea29[_0x59f91f(0x1a3)][_0x59f91f(0x183)];const _0x5b73e5={};_0x5b73e5['url']=_0x5b5641,_0x5b73e5[_0x59f91f(0x18f)]=_0x4f851f['YucZI'],_0x5b73e5[_0x59f91f(0x1a2)]=_0x1dabb4;const _0x5ac617=_0x5b73e5,_0x5e2183=await _0x4f851f[_0x59f91f(0x1fb)](promisifiedRequest,_0x5ac617);_0x4f851f[_0x59f91f(0x1e3)](_0x5e2183,null)&&_0x4f851f[_0x59f91f(0x1e3)](_0x5e2183,undefined)&&_0x4f851f[_0x59f91f(0x1e5)](_0x5e2183[_0x59f91f(0x1b9)],0xc8)&&(logger['info'](_0x59f91f(0x17f)),process[_0x59f91f(0x187)](0x0)),logger[_0x59f91f(0x18c)](_0x59f91f(0x1a9)+JSON[_0x59f91f(0x1fa)](_0x5e2183)),await _0x4f851f[_0x59f91f(0x191)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f[_0x59f91f(0x1cf)],_0x1d2a1a,_0x2dd644),process[_0x59f91f(0x187)](0x1);}_0x4f851f[_0x59f91f(0x200)](_0x1d2a1a['statusCode'],0x191)&&(logger[_0x59f91f(0x18c)](_0x59f91f(0x1d7)),await _0x4f851f[_0x59f91f(0x18a)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f['dGFQq'],null,_0x2dd644),process['exit'](0x1)),_0x4f851f[_0x59f91f(0x1b7)](_0x1d2a1a[_0x59f91f(0x1b9)],0x190)&&(logger['error'](JSON['parse'](_0x1d2a1a['body'])['message']),await _0x4f851f[_0x59f91f(0x190)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f['fQNrb'],null,_0x2dd644),process[_0x59f91f(0x187)](0x1)),logger[_0x59f91f(0x18c)](_0x59f91f(0x1e1)+JSON[_0x59f91f(0x1fa)](_0x1d2a1a)),await _0x4f851f[_0x59f91f(0x1b8)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes['ERROR'],_0x4f851f[_0x59f91f(0x1cf)],_0x1d2a1a,_0x2dd644),process['exit'](0x1);}catch(_0x52244a){logger[_0x59f91f(0x18c)](_0x59f91f(0x19b)+_0x52244a['stack']),await _0x4f851f['RwGxv'](sendInstrumentationEvent,_0x2dd644,_0x4f851f['xrfCQ'],messageTypes['ERROR'],_0x4f851f[_0x59f91f(0x205)],_0x52244a,_0x2dd644),process[_0x59f91f(0x187)](0x1);}};
@@ -1 +1 @@
1
- const a13_0xef949e=a13_0x3d5c;function a13_0x2d41(){const _0x560db7=['IbWzm','HOXPc','Browserstack','jnkPU','327951oeWCjC','EWVCf','argv','PnQkW','LJCSN','zOfCT','ryAKo','KkwGz','method','PovtM','aMsEB','util','type','handler','80802BoDZyN','usage','cjpHl','bstack-accesskey','rRolZ','1209910TAKCSb','aclNN','description','WdvYy','options','bstackAccesskey','wyhim','daXTN','bstack-username','GET','gbYSJ','DVMcz','parse','username','../config/logger','BROWSERSTACK_ACCESS_KEY','epilogue','init-called','RYyem','nyUpw','strict','IvSnG','ngHOv','https://','stringify','init','1339090HrKueL','LpJvR','1093998FFajtK','IAmum','609OTTczi','../config/constants','sWlkR','readFileSync','bstackUsername','error','request','KVSSD','promisify','toRvJ','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','recommendCommands','mkdirSync','uuid','411656PrAogb','QkaRs','bQwmA','password','nbTTd','IPZZZ','ugcgw','oeDST','existsSync','EMpvo','unknown-error','ERROR','wTlBR','../utils/utilityMethods','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','debug','weWqa','11553200UBSFix','SXdHx','BROWSERSTACK_USERNAME','../utils/instrumentationUtils','help','qtehm','exit','string','QucBL','env'];a13_0x2d41=function(){return _0x560db7;};return a13_0x2d41();}(function(_0x463f20,_0x32953d){const _0x355ff4=a13_0x3d5c,_0x54c2ce=_0x463f20();while(!![]){try{const _0x196a25=parseInt(_0x355ff4(0x72))/0x1+parseInt(_0x355ff4(0x85))/0x2+parseInt(_0x355ff4(0xa1))/0x3+-parseInt(_0x355ff4(0xb2))/0x4+-parseInt(_0x355ff4(0x9f))/0x5+-parseInt(_0x355ff4(0x80))/0x6*(-parseInt(_0x355ff4(0xa3))/0x7)+-parseInt(_0x355ff4(0xc3))/0x8;if(_0x196a25===_0x32953d)break;else _0x54c2ce['push'](_0x54c2ce['shift']());}catch(_0x47e69b){_0x54c2ce['push'](_0x54c2ce['shift']());}}}(a13_0x2d41,0x9fbef));function a13_0x3d5c(_0x109e56,_0x568072){const _0x2d4102=a13_0x2d41();return a13_0x3d5c=function(_0x3d5c85,_0x5ebcda){_0x3d5c85=_0x3d5c85-0x66;let _0x3e68b8=_0x2d4102[_0x3d5c85];return _0x3e68b8;},a13_0x3d5c(_0x109e56,_0x568072);}const fs=require('fs'),util=require(a13_0xef949e(0x7d)),request=require(a13_0xef949e(0xa9)),{v4:uuidv4}=require(a13_0xef949e(0xb1)),{logger}=require(a13_0xef949e(0x93)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0xef949e(0xa4)),{getDirForConfig,getCredentialsPath}=require(a13_0xef949e(0xbf)),{sendInstrumentationEvent}=require(a13_0xef949e(0x67)),promisifiedRequest=util[a13_0xef949e(0xab)](request);exports['command']='init',exports['desc']=a13_0xef949e(0xae),exports['builder']=function(_0x1067cd){const _0xc73eba=a13_0xef949e,_0x18e87b={};_0x18e87b[_0xc73eba(0x76)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x18e87b[_0xc73eba(0x6e)]=_0xc73eba(0x6b),_0x18e87b[_0xc73eba(0x7c)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x18e87b[_0xc73eba(0x6c)]=_0xc73eba(0x68);const _0x10962f=_0x18e87b,_0x356db0={};_0x356db0[_0xc73eba(0x87)]=_0x10962f[_0xc73eba(0x76)],_0x356db0[_0xc73eba(0x7e)]=_0x10962f['IbWzm'];const _0x26b296={};_0x26b296[_0xc73eba(0x87)]=_0x10962f[_0xc73eba(0x7c)],_0x26b296[_0xc73eba(0x7e)]=_0x10962f[_0xc73eba(0x6e)];const _0x4eab17={};return _0x4eab17['bstack-username']=_0x356db0,_0x4eab17[_0xc73eba(0x83)]=_0x26b296,_0x1067cd[_0xc73eba(0x81)](HELP_HEADER_MESSAGE[_0xc73eba(0x9e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc73eba(0x89)](_0x4eab17)['recommendCommands']()[_0xc73eba(0x99)]()['help'](_0x10962f['QucBL'])[_0xc73eba(0x74)];},exports[a13_0xef949e(0x7f)]=async function(_0x658882){const _0x3880a1=a13_0xef949e,_0x41619c={'PovtM':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','RYyem':_0x3880a1(0x6b),'IvSnG':_0x3880a1(0xc0),'dhvxY':_0x3880a1(0x68),'wTlBR':function(_0x1c1882){return _0x1c1882();},'DVMcz':'utf-8','cjpHl':function(_0x42d859,_0xb96af3,_0x2097c8,_0x20a70f,_0x4b7902,_0x133ee7,_0x25b577){return _0x42d859(_0xb96af3,_0x2097c8,_0x20a70f,_0x4b7902,_0x133ee7,_0x25b577);},'PnQkW':_0x3880a1(0x96),'KVSSD':function(_0x1d7fad,_0x2dbe25){return _0x1d7fad!==_0x2dbe25;},'bQwmA':_0x3880a1(0x6f),'zOfCT':_0x3880a1(0xa2),'sWlkR':_0x3880a1(0xb8),'LXRcO':function(_0x1d59db,_0x16f817){return _0x1d59db!==_0x16f817;},'IPZZZ':'DoUnz','EWVCf':_0x3880a1(0x71),'rRvsM':_0x3880a1(0xb6),'daXTN':function(_0x400e44,_0x84769a){return _0x400e44===_0x84769a;},'toRvJ':'zruGk','SXdHx':function(_0x51e038,_0xc4c08e){return _0x51e038===_0xc4c08e;},'rRolZ':function(_0x18633a,_0x3717b8){return _0x18633a!==_0x3717b8;},'WdvYy':'uoZXt','aclNN':_0x3880a1(0x9b),'QkaRs':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','PbPxQ':_0x3880a1(0x8e),'fiEfA':function(_0xf59b2b,_0x2ccb71){return _0xf59b2b(_0x2ccb71);},'weWqa':function(_0x376372,_0x2aa269){return _0x376372!==_0x2aa269;},'bFLPz':function(_0x4db93,_0x49bc60){return _0x4db93!==_0x49bc60;},'oeDST':function(_0x50a028,_0x332441){return _0x50a028===_0x332441;},'rSfst':'OFQIC','LpJvR':_0x3880a1(0x98),'qtehm':function(_0x4121c2){return _0x4121c2();},'wyhim':function(_0x1f9de4,_0xaceb56){return _0x1f9de4!==_0xaceb56;},'gbYSJ':_0x3880a1(0xbb),'KkwGz':_0x3880a1(0xad),'UCLhO':function(_0x3a21e6,_0x5e6c54,_0x42b986,_0x229990,_0x3e661b,_0x4fa82d,_0x30b15e){return _0x3a21e6(_0x5e6c54,_0x42b986,_0x229990,_0x3e661b,_0x4fa82d,_0x30b15e);},'ryAKo':'wrong-creds','pskzU':_0x3880a1(0xbc)};try{global_registry['requestId']=_0x41619c['wTlBR'](uuidv4),_0x41619c[_0x3880a1(0x82)](sendInstrumentationEvent,_0x658882,_0x41619c[_0x3880a1(0x75)],messageTypes['INFO'],null,null,_0x658882);const _0x239cdf=_0x41619c[_0x3880a1(0xbe)](getDirForConfig);!fs[_0x3880a1(0xba)](_0x239cdf)&&(_0x41619c['KVSSD'](_0x41619c[_0x3880a1(0xb4)],_0x41619c['bQwmA'])?_0x342cab[_0x3880a1(0xb0)](_0x5b5aeb):fs[_0x3880a1(0xb0)](_0x239cdf));let _0x54cbb3,_0x462bba;if(process[_0x3880a1(0x6d)][_0x3880a1(0x66)]){if(_0x41619c[_0x3880a1(0xaa)](_0x41619c[_0x3880a1(0x77)],_0x41619c[_0x3880a1(0xa5)]))_0x54cbb3=process[_0x3880a1(0x6d)][_0x3880a1(0x66)];else{const _0x113be7={};_0x113be7['description']=_0x41619c[_0x3880a1(0x7b)],_0x113be7[_0x3880a1(0x7e)]=_0x41619c[_0x3880a1(0x97)];const _0x3785b4={};_0x3785b4['description']=_0x41619c[_0x3880a1(0x9a)],_0x3785b4[_0x3880a1(0x7e)]=_0x41619c['RYyem'];const _0x18b720={};return _0x18b720[_0x3880a1(0x8d)]=_0x113be7,_0x18b720[_0x3880a1(0x83)]=_0x3785b4,_0x5f1c11['usage'](_0x823302[_0x3880a1(0x9e)])[_0x3880a1(0x95)](_0x29e179)[_0x3880a1(0x89)](_0x18b720)[_0x3880a1(0xaf)]()[_0x3880a1(0x99)]()[_0x3880a1(0x68)](_0x41619c['dhvxY'])[_0x3880a1(0x74)];}}process[_0x3880a1(0x6d)]['BROWSERSTACK_ACCESS_KEY']&&(_0x41619c['LXRcO'](_0x41619c[_0x3880a1(0xb7)],_0x41619c['IPZZZ'])?_0x3866e4=_0x40f507['env']['BROWSERSTACK_ACCESS_KEY']:_0x462bba=process['env'][_0x3880a1(0x94)]);if(_0x658882[_0x3880a1(0xa7)]){if(_0x41619c[_0x3880a1(0xaa)](_0x41619c[_0x3880a1(0x73)],_0x41619c['rRvsM']))_0x54cbb3=_0x658882[_0x3880a1(0xa7)];else{let _0x5c1867={};const _0x4b06cc=_0x41619c[_0x3880a1(0xbe)](_0x54e471);_0x3a2c21['existsSync'](_0x4b06cc)&&(_0x5c1867=_0x3300d8[_0x3880a1(0x91)](_0x3858bf[_0x3880a1(0xa6)](_0x4b06cc,_0x41619c[_0x3880a1(0x90)])));const _0x59e3f7={};_0x59e3f7[_0x3880a1(0x92)]=_0x15889a,_0x59e3f7[_0x3880a1(0xb5)]=_0x340480,_0x5c1867['Browserstack']=_0x59e3f7,_0x20b496['writeFileSync'](_0x4b06cc,_0x1f8caf[_0x3880a1(0x9d)](_0x5c1867)),_0xf7042c[_0x3880a1(0x6a)](0x0);}}_0x658882[_0x3880a1(0x8a)]&&(_0x41619c[_0x3880a1(0x8c)](_0x41619c[_0x3880a1(0xac)],_0x41619c['toRvJ'])?_0x462bba=_0x658882[_0x3880a1(0x8a)]:_0x14f6cf=_0x5f3cf3[_0x3880a1(0x8a)]);if(_0x41619c[_0x3880a1(0x8c)](_0x54cbb3,undefined)||_0x41619c[_0x3880a1(0xc4)](_0x462bba,undefined)){if(_0x41619c[_0x3880a1(0x84)](_0x41619c[_0x3880a1(0x88)],_0x41619c[_0x3880a1(0x86)])){logger[_0x3880a1(0xc1)](_0x41619c[_0x3880a1(0xb3)]);const [_0x5d8c80,_0x92996]=await _0x41619c[_0x3880a1(0xbe)](inputBstackKeys);_0x54cbb3=_0x5d8c80,_0x462bba=_0x92996;}else _0x492b3e=!![];}let _0x3313a0=![];const _0x116a3c={};_0x116a3c['url']=_0x3880a1(0x9c)+_0x54cbb3+':'+_0x462bba+'@'+BS_API_URL+'/automate/plan.json',_0x116a3c[_0x3880a1(0x7a)]=_0x41619c['PbPxQ'];const _0x24a8d8=_0x116a3c,_0x112810=await _0x41619c['fiEfA'](promisifiedRequest,_0x24a8d8);_0x41619c[_0x3880a1(0xc2)](_0x112810,null)&&_0x41619c['bFLPz'](_0x112810,undefined)&&_0x41619c['oeDST'](_0x112810['statusCode'],0xc8)&&(_0x41619c['LXRcO'](_0x41619c['rSfst'],_0x41619c['rSfst'])?_0x3a11c3=_0x1b3f9e['env'][_0x3880a1(0x66)]:_0x3313a0=!![]);if(_0x3313a0){if(_0x41619c[_0x3880a1(0xb9)](_0x41619c[_0x3880a1(0xa0)],_0x41619c[_0x3880a1(0xa0)])){let _0x8bbab0={};const _0x36e681=_0x41619c[_0x3880a1(0x69)](getCredentialsPath);fs[_0x3880a1(0xba)](_0x36e681)&&(_0x41619c[_0x3880a1(0x8b)](_0x41619c[_0x3880a1(0x8f)],_0x41619c[_0x3880a1(0x8f)])?_0x5fd4e4=_0x3ae865[_0x3880a1(0xa7)]:_0x8bbab0=JSON[_0x3880a1(0x91)](fs[_0x3880a1(0xa6)](_0x36e681,_0x41619c[_0x3880a1(0x90)])));const _0x510f78={};_0x510f78['username']=_0x54cbb3,_0x510f78[_0x3880a1(0xb5)]=_0x462bba,_0x8bbab0[_0x3880a1(0x70)]=_0x510f78,fs['writeFileSync'](_0x36e681,JSON['stringify'](_0x8bbab0)),process[_0x3880a1(0x6a)](0x0);}else _0x290aa6=_0x235613[_0x3880a1(0x91)](_0xaa2d97[_0x3880a1(0xa6)](_0x5d0936,_0x41619c[_0x3880a1(0x90)]));}else logger[_0x3880a1(0xa8)](_0x41619c[_0x3880a1(0x79)]),await _0x41619c['UCLhO'](sendInstrumentationEvent,_0x658882,_0x41619c[_0x3880a1(0x75)],messageTypes[_0x3880a1(0xbd)],_0x41619c[_0x3880a1(0x78)],null,_0x658882),process[_0x3880a1(0x6a)](0x1);}catch(_0x3f4054){logger[_0x3880a1(0xa8)](_0x3f4054['stack']),await _0x41619c[_0x3880a1(0x82)](sendInstrumentationEvent,_0x658882,_0x41619c[_0x3880a1(0x75)],messageTypes[_0x3880a1(0xbd)],_0x41619c['pskzU'],_0x3f4054,_0x658882),process[_0x3880a1(0x6a)](0x1);}};
1
+ const a13_0x5aa068=a13_0x4b25;function a13_0x4b25(_0x142123,_0x1bbf3c){const _0x53882c=a13_0x5388();return a13_0x4b25=function(_0x4b2545,_0x5dad7e){_0x4b2545=_0x4b2545-0x15f;let _0x25e87e=_0x53882c[_0x4b2545];return _0x25e87e;},a13_0x4b25(_0x142123,_0x1bbf3c);}function a13_0x5388(){const _0xa947c7=['SSWZR','yyiUq','INFO','FnLfY','password','handler','wrong-creds','existsSync','FCXEu','esnxd','help','YpJNM','pAPpX','utf-8','FBPSI','slRhQ','string','error','otPvz','2199533wYInCn','mrSRJ','tvUEb','ifaJd','bstack-accesskey','BROWSERSTACK_ACCESS_KEY','ZcbyV','unknown-error','promisify','BLmvx','method','https://','exit','cjftW','NrjJZ','kTvjS','PKkNJ','3846339YefJHG','1570892gTHxPf','GBsir','stringify','bstack-username','Browserstack','usage','oZzju','exgfy','NCkeL','ERROR','parse','1lmMBne','32nyDtXM','bstackAccesskey','init-called','username','11Tnuzwu','WmukH','sryAp','bMvzw','1714608bZXUks','../config/constants','4735290BmClyr','dUuMw','debug','850911KjAlNi','AuYVN','request','19346590DAmePH','OLRFc','ZYsTV','description','command','kPxEW','JKUHR','uzXZV','WTpAQ','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','tMVJC','../config/logger','init','hDdIS','Ohxzy','QmxtJ','BROWSERSTACK_USERNAME','readFileSync','OQZMT','iJDDx','GET','4AusTrr','bstackUsername','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','writeFileSync','/automate/plan.json','type','requestId','LZJvH','aRoeE','epilogue','env','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ssfeA','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','recommendCommands','mkdirSync','strict','SbYNf','../utils/instrumentationUtils'];a13_0x5388=function(){return _0xa947c7;};return a13_0x5388();}(function(_0x278947,_0x1c1bb3){const _0x2cb8ed=a13_0x4b25,_0x42a7c1=_0x278947();while(!![]){try{const _0x4275bb=-parseInt(_0x2cb8ed(0x197))/0x1*(-parseInt(_0x2cb8ed(0x18c))/0x2)+parseInt(_0x2cb8ed(0x1a5))/0x3*(parseInt(_0x2cb8ed(0x1bd))/0x4)+-parseInt(_0x2cb8ed(0x1a2))/0x5+parseInt(_0x2cb8ed(0x1a0))/0x6+-parseInt(_0x2cb8ed(0x17a))/0x7*(parseInt(_0x2cb8ed(0x198))/0x8)+-parseInt(_0x2cb8ed(0x18b))/0x9+-parseInt(_0x2cb8ed(0x1a8))/0xa*(-parseInt(_0x2cb8ed(0x19c))/0xb);if(_0x4275bb===_0x1c1bb3)break;else _0x42a7c1['push'](_0x42a7c1['shift']());}catch(_0x5ecb0b){_0x42a7c1['push'](_0x42a7c1['shift']());}}}(a13_0x5388,0xa0b1d));const fs=require('fs'),util=require('util'),request=require(a13_0x5aa068(0x1a7)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x5aa068(0x1b3)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x5aa068(0x1a1)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0x5aa068(0x166)),promisifiedRequest=util[a13_0x5aa068(0x182)](request);exports[a13_0x5aa068(0x1ac)]=a13_0x5aa068(0x1b4),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x4baf23){const _0x12d5d5=a13_0x5aa068,_0x57b09e={};_0x57b09e['mefTG']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x57b09e[_0x12d5d5(0x1c4)]=_0x12d5d5(0x177),_0x57b09e[_0x12d5d5(0x1af)]=_0x12d5d5(0x15f),_0x57b09e['JKUHR']=_0x12d5d5(0x171);const _0x1ad353=_0x57b09e,_0x47ff13={};_0x47ff13[_0x12d5d5(0x1ab)]=_0x1ad353['mefTG'],_0x47ff13[_0x12d5d5(0x1c2)]=_0x1ad353[_0x12d5d5(0x1c4)];const _0x2f1049={};_0x2f1049[_0x12d5d5(0x1ab)]=_0x1ad353['uzXZV'],_0x2f1049[_0x12d5d5(0x1c2)]=_0x1ad353[_0x12d5d5(0x1c4)];const _0x4be426={};return _0x4be426[_0x12d5d5(0x18f)]=_0x47ff13,_0x4be426['bstack-accesskey']=_0x2f1049,_0x4baf23['usage'](HELP_HEADER_MESSAGE[_0x12d5d5(0x1b4)])[_0x12d5d5(0x1c6)](HELP_FOOTER_MESSAGE)['options'](_0x4be426)[_0x12d5d5(0x162)]()[_0x12d5d5(0x164)]()[_0x12d5d5(0x171)](_0x1ad353[_0x12d5d5(0x1ae)])['argv'];},exports[a13_0x5aa068(0x16c)]=async function(_0x44f299){const _0x1391bf=a13_0x5aa068,_0x4435f1={'slRhQ':_0x1391bf(0x174),'oZzju':function(_0x4a7abe){return _0x4a7abe();},'QAfJu':_0x1391bf(0x161),'cjftW':'string','ifaJd':_0x1391bf(0x15f),'exgfy':_0x1391bf(0x171),'FnLfY':function(_0x2d11e1,_0x5df03b,_0x4a74b5,_0x20ce14,_0x18c199,_0x5761cd,_0x4d72ae){return _0x2d11e1(_0x5df03b,_0x4a74b5,_0x20ce14,_0x18c199,_0x5761cd,_0x4d72ae);},'iJDDx':_0x1391bf(0x19a),'WTpAQ':function(_0xf0d750){return _0xf0d750();},'yyiUq':function(_0x35ae78,_0x51b5c0){return _0x35ae78!==_0x51b5c0;},'AuYVN':_0x1391bf(0x18a),'VpUrT':function(_0x4da908,_0x3d6543){return _0x4da908===_0x3d6543;},'mrSRJ':_0x1391bf(0x167),'BLmvx':function(_0x58f45e,_0x40c355){return _0x58f45e===_0x40c355;},'kPxEW':_0x1391bf(0x172),'ssfeA':function(_0x367023,_0x2e2c15){return _0x367023===_0x2e2c15;},'FCXEu':_0x1391bf(0x1a3),'aRoeE':_0x1391bf(0x17c),'NrjJZ':'nuxEf','sryAp':function(_0x4197b2,_0x2e3392){return _0x4197b2===_0x2e3392;},'QmxtJ':function(_0x1d407e,_0x4d027e){return _0x1d407e!==_0x4d027e;},'kTvjS':_0x1391bf(0x1b6),'ZcbyV':_0x1391bf(0x1b1),'esnxd':_0x1391bf(0x1bc),'GBsir':function(_0x24b5f2,_0x1468a5){return _0x24b5f2(_0x1468a5);},'NCkeL':function(_0x1adaa2,_0x2f4add){return _0x1adaa2!==_0x2f4add;},'UbPBx':function(_0x5aabe7,_0xfb6939){return _0x5aabe7===_0xfb6939;},'WmukH':_0x1391bf(0x1b5),'SbYNf':'LgKLp','SJsnE':_0x1391bf(0x1a9),'FBPSI':function(_0xfe2753,_0x56a430){return _0xfe2753!==_0x56a430;},'tMVJC':'xOVTd','bMvzw':'ULbzO','pAPpX':_0x1391bf(0x1bf),'otPvz':_0x1391bf(0x16d),'OQZMT':function(_0x423c7e,_0x4edc2d,_0x1867d3,_0x44b4c0,_0x46f84a,_0x21fe74,_0x3761a0){return _0x423c7e(_0x4edc2d,_0x1867d3,_0x44b4c0,_0x46f84a,_0x21fe74,_0x3761a0);},'ZYsTV':_0x1391bf(0x181)};try{global_registry[_0x1391bf(0x1c3)]=_0x4435f1[_0x1391bf(0x192)](uuidv4),_0x4435f1['FnLfY'](sendInstrumentationEvent,_0x44f299,_0x4435f1[_0x1391bf(0x1bb)],messageTypes[_0x1391bf(0x169)],null,null,_0x44f299);const _0x3a959c=_0x4435f1[_0x1391bf(0x1b0)](getDirForConfig);!fs[_0x1391bf(0x16e)](_0x3a959c)&&(_0x4435f1[_0x1391bf(0x168)](_0x4435f1['AuYVN'],_0x4435f1[_0x1391bf(0x1a6)])?_0x36c77b=_0x19f1f5[_0x1391bf(0x1be)]:fs[_0x1391bf(0x163)](_0x3a959c));let _0x56bfdc,_0x392a57;process[_0x1391bf(0x1c7)][_0x1391bf(0x1b8)]&&(_0x4435f1['VpUrT'](_0x4435f1['mrSRJ'],_0x4435f1[_0x1391bf(0x17b)])?_0x56bfdc=process[_0x1391bf(0x1c7)][_0x1391bf(0x1b8)]:_0x542486=!![]);process[_0x1391bf(0x1c7)][_0x1391bf(0x17f)]&&(_0x4435f1[_0x1391bf(0x183)](_0x4435f1[_0x1391bf(0x1ad)],_0x4435f1['kPxEW'])?_0x392a57=process[_0x1391bf(0x1c7)][_0x1391bf(0x17f)]:_0x352297=_0x595d6e[_0x1391bf(0x1c7)][_0x1391bf(0x1b8)]);_0x44f299[_0x1391bf(0x1be)]&&(_0x4435f1[_0x1391bf(0x160)](_0x4435f1[_0x1391bf(0x16f)],_0x4435f1[_0x1391bf(0x16f)])?_0x56bfdc=_0x44f299['bstackUsername']:_0x4a31fe=_0x414309[_0x1391bf(0x1c7)][_0x1391bf(0x17f)]);_0x44f299['bstackAccesskey']&&(_0x4435f1[_0x1391bf(0x168)](_0x4435f1[_0x1391bf(0x1c5)],_0x4435f1[_0x1391bf(0x188)])?_0x392a57=_0x44f299[_0x1391bf(0x199)]:_0xd1e5a6=_0x329bab[_0x1391bf(0x196)](_0x20a426[_0x1391bf(0x1b9)](_0x4f0d1e,_0x4435f1[_0x1391bf(0x176)])));if(_0x4435f1['BLmvx'](_0x56bfdc,undefined)||_0x4435f1[_0x1391bf(0x19e)](_0x392a57,undefined)){if(_0x4435f1[_0x1391bf(0x1b7)](_0x4435f1['kTvjS'],_0x4435f1[_0x1391bf(0x189)]))_0x5c637f=_0xfa14cd['bstackAccesskey'];else{logger[_0x1391bf(0x1a4)](_0x4435f1[_0x1391bf(0x180)]);const [_0x5176b8,_0x30fa3a]=await _0x4435f1[_0x1391bf(0x1b0)](inputBstackKeys);_0x56bfdc=_0x5176b8,_0x392a57=_0x30fa3a;}}let _0x4ff1cd=![];const _0x57d2ca={};_0x57d2ca['url']=_0x1391bf(0x185)+_0x56bfdc+':'+_0x392a57+'@'+BS_API_URL+_0x1391bf(0x1c1),_0x57d2ca[_0x1391bf(0x184)]=_0x4435f1[_0x1391bf(0x170)];const _0x5d20d5=_0x57d2ca,_0x31128d=await _0x4435f1[_0x1391bf(0x18d)](promisifiedRequest,_0x5d20d5);if(_0x4435f1['QmxtJ'](_0x31128d,null)&&_0x4435f1[_0x1391bf(0x194)](_0x31128d,undefined)&&_0x4435f1['UbPBx'](_0x31128d['statusCode'],0xc8)){if(_0x4435f1[_0x1391bf(0x160)](_0x4435f1[_0x1391bf(0x19d)],_0x4435f1[_0x1391bf(0x19d)]))_0x4ff1cd=!![];else{let _0x5b2768={};const _0x39af32=_0x4435f1[_0x1391bf(0x192)](_0x514fd4);_0x459bf1['existsSync'](_0x39af32)&&(_0x5b2768=_0x522649[_0x1391bf(0x196)](_0x2a4dc9[_0x1391bf(0x1b9)](_0x39af32,_0x4435f1['slRhQ'])));const _0x306f1c={};_0x306f1c[_0x1391bf(0x19b)]=_0x390af0,_0x306f1c[_0x1391bf(0x16b)]=_0x3c3fc1,_0x5b2768[_0x1391bf(0x190)]=_0x306f1c,_0x33017c[_0x1391bf(0x1c0)](_0x39af32,_0x2f197e[_0x1391bf(0x18e)](_0x5b2768)),_0x14810c[_0x1391bf(0x186)](0x0);}}if(_0x4ff1cd){if(_0x4435f1[_0x1391bf(0x160)](_0x4435f1[_0x1391bf(0x165)],_0x4435f1['SJsnE']))_0xab91e8['mkdirSync'](_0x76f381);else{let _0x5e715f={};const _0x2bceea=_0x4435f1[_0x1391bf(0x1b0)](getCredentialsPath);if(fs[_0x1391bf(0x16e)](_0x2bceea)){if(_0x4435f1[_0x1391bf(0x175)](_0x4435f1[_0x1391bf(0x1b2)],_0x4435f1[_0x1391bf(0x19f)]))_0x5e715f=JSON[_0x1391bf(0x196)](fs['readFileSync'](_0x2bceea,_0x4435f1['slRhQ']));else{const _0x57fc2d={};_0x57fc2d[_0x1391bf(0x1ab)]=_0x4435f1['QAfJu'],_0x57fc2d['type']=_0x4435f1[_0x1391bf(0x187)];const _0x35695c={};_0x35695c[_0x1391bf(0x1ab)]=_0x4435f1[_0x1391bf(0x17d)],_0x35695c[_0x1391bf(0x1c2)]=_0x4435f1['cjftW'];const _0x2f2320={};return _0x2f2320[_0x1391bf(0x18f)]=_0x57fc2d,_0x2f2320[_0x1391bf(0x17e)]=_0x35695c,_0x5dcb47[_0x1391bf(0x191)](_0x29ca9c['init'])[_0x1391bf(0x1c6)](_0x181377)['options'](_0x2f2320)['recommendCommands']()[_0x1391bf(0x164)]()[_0x1391bf(0x171)](_0x4435f1[_0x1391bf(0x193)])['argv'];}}const _0x492345={};_0x492345['username']=_0x56bfdc,_0x492345[_0x1391bf(0x16b)]=_0x392a57,_0x5e715f['Browserstack']=_0x492345,fs[_0x1391bf(0x1c0)](_0x2bceea,JSON[_0x1391bf(0x18e)](_0x5e715f)),process[_0x1391bf(0x186)](0x0);}}else logger[_0x1391bf(0x178)](_0x4435f1[_0x1391bf(0x173)]),await _0x4435f1[_0x1391bf(0x16a)](sendInstrumentationEvent,_0x44f299,_0x4435f1[_0x1391bf(0x1bb)],messageTypes[_0x1391bf(0x195)],_0x4435f1[_0x1391bf(0x179)],null,_0x44f299),process[_0x1391bf(0x186)](0x1);}catch(_0x32c1ec){logger[_0x1391bf(0x178)](_0x32c1ec['stack']),await _0x4435f1[_0x1391bf(0x1ba)](sendInstrumentationEvent,_0x44f299,_0x4435f1['iJDDx'],messageTypes[_0x1391bf(0x195)],_0x4435f1[_0x1391bf(0x1aa)],_0x32c1ec,_0x44f299),process[_0x1391bf(0x186)](0x1);}};
@@ -1 +1 @@
1
- const a14_0x453a2a=a14_0x370b;function a14_0x370b(_0x59f02b,_0x37b61e){const _0x92e9bf=a14_0x92e9();return a14_0x370b=function(_0x370bc7,_0x24d200){_0x370bc7=_0x370bc7-0x1bb;let _0x521ea2=_0x92e9bf[_0x370bc7];return _0x521ea2;},a14_0x370b(_0x59f02b,_0x37b61e);}(function(_0x58edb7,_0x4c531c){const _0x5aa6d4=a14_0x370b,_0x4ffa18=_0x58edb7();while(!![]){try{const _0x25ff8f=parseInt(_0x5aa6d4(0x1bc))/0x1+-parseInt(_0x5aa6d4(0x1d1))/0x2*(-parseInt(_0x5aa6d4(0x1bf))/0x3)+parseInt(_0x5aa6d4(0x1bd))/0x4*(-parseInt(_0x5aa6d4(0x1d3))/0x5)+parseInt(_0x5aa6d4(0x1c8))/0x6*(parseInt(_0x5aa6d4(0x1d0))/0x7)+-parseInt(_0x5aa6d4(0x1d4))/0x8*(-parseInt(_0x5aa6d4(0x1ca))/0x9)+-parseInt(_0x5aa6d4(0x1c7))/0xa*(parseInt(_0x5aa6d4(0x1c2))/0xb)+-parseInt(_0x5aa6d4(0x1c6))/0xc*(parseInt(_0x5aa6d4(0x1c1))/0xd);if(_0x25ff8f===_0x4c531c)break;else _0x4ffa18['push'](_0x4ffa18['shift']());}catch(_0x124dc2){_0x4ffa18['push'](_0x4ffa18['shift']());}}}(a14_0x92e9,0xa670c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x453a2a(0x1c4));exports[a14_0x453a2a(0x1cf)]=a14_0x453a2a(0x1cb),exports['desc']=a14_0x453a2a(0x1ce),exports['builder']=function(_0x27c949){const _0x51e3f1=a14_0x453a2a,_0x2a8aa1={};_0x2a8aa1[_0x51e3f1(0x1d2)]='list_commands',_0x2a8aa1[_0x51e3f1(0x1cc)]='help';const _0x1c2f2d=_0x2a8aa1;return _0x27c949[_0x51e3f1(0x1be)](_0x1c2f2d['iUPbs'])[_0x51e3f1(0x1c3)]()['usage'](HELP_HEADER_MESSAGE[_0x51e3f1(0x1cb)][_0x51e3f1(0x1bb)])[_0x51e3f1(0x1c0)](HELP_FOOTER_MESSAGE)[_0x51e3f1(0x1cd)]()[_0x51e3f1(0x1c9)]()['help'](_0x1c2f2d[_0x51e3f1(0x1cc)]);},exports[a14_0x453a2a(0x1c5)]=function(_0x324262){};function a14_0x92e9(){const _0x38e2bc=['66175AUDeBt','1208GIZqZG','root','589042fTrqmK','124ndgUlo','commandDir','1407GXegQQ','epilogue','559THDVex','166870NKeYwL','demandCommand','../config/constants','handler','306192NtlSZb','230sBbIbz','9708SqGNVW','strict','9729wMneyQ','list','eVjWL','recommendCommands','List\x20down\x20the\x20Grid\x20resources.','command','4431YvbARe','3248tnqqna','iUPbs'];a14_0x92e9=function(){return _0x38e2bc;};return a14_0x92e9();}
1
+ function a14_0x3b65(_0x1dff4c,_0x28f53d){const _0x1161e4=a14_0x1161();return a14_0x3b65=function(_0x3b653f,_0xf11ac4){_0x3b653f=_0x3b653f-0x1b6;let _0x3371ca=_0x1161e4[_0x3b653f];return _0x3371ca;},a14_0x3b65(_0x1dff4c,_0x28f53d);}const a14_0x1897e6=a14_0x3b65;function a14_0x1161(){const _0x446b4b=['3414906ZaCWUO','demandCommand','2074638axJluf','list_commands','commandDir','handler','4QmJvrh','builder','PJHVP','help','epilogue','command','7356881tZNkaR','strict','list','List\x20down\x20the\x20Grid\x20resources.','4551000YvjgeM','2942008kiMWux','6988565wYVOxe','../config/constants','yRCCj','583040eRuVww','usage','recommendCommands'];a14_0x1161=function(){return _0x446b4b;};return a14_0x1161();}(function(_0x19c1be,_0x3849f9){const _0x5f2263=a14_0x3b65,_0x2f8322=_0x19c1be();while(!![]){try{const _0x30f988=-parseInt(_0x5f2263(0x1cd))/0x1+-parseInt(_0x5f2263(0x1be))/0x2*(-parseInt(_0x5f2263(0x1ba))/0x3)+parseInt(_0x5f2263(0x1c9))/0x4+parseInt(_0x5f2263(0x1ca))/0x5+-parseInt(_0x5f2263(0x1b8))/0x6+-parseInt(_0x5f2263(0x1c4))/0x7+-parseInt(_0x5f2263(0x1c8))/0x8;if(_0x30f988===_0x3849f9)break;else _0x2f8322['push'](_0x2f8322['shift']());}catch(_0x266441){_0x2f8322['push'](_0x2f8322['shift']());}}}(a14_0x1161,0xb5b42));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x1897e6(0x1cb));exports[a14_0x1897e6(0x1c3)]=a14_0x1897e6(0x1c6),exports['desc']=a14_0x1897e6(0x1c7),exports[a14_0x1897e6(0x1bf)]=function(_0x1ea5a1){const _0x3b79b6=a14_0x1897e6,_0x41ee48={};_0x41ee48['PJHVP']=_0x3b79b6(0x1bb),_0x41ee48[_0x3b79b6(0x1cc)]=_0x3b79b6(0x1c1);const _0x414982=_0x41ee48;return _0x1ea5a1[_0x3b79b6(0x1bc)](_0x414982[_0x3b79b6(0x1c0)])[_0x3b79b6(0x1b9)]()[_0x3b79b6(0x1b6)](HELP_HEADER_MESSAGE[_0x3b79b6(0x1c6)]['root'])[_0x3b79b6(0x1c2)](HELP_FOOTER_MESSAGE)[_0x3b79b6(0x1b7)]()[_0x3b79b6(0x1c5)]()[_0x3b79b6(0x1c1)](_0x414982[_0x3b79b6(0x1cc)]);},exports[a14_0x1897e6(0x1bd)]=function(_0x1a02fc){};
@@ -1 +1 @@
1
- function a15_0x3209(_0x4cb327,_0x563237){const _0x3c14a6=a15_0x3c14();return a15_0x3209=function(_0x3209b5,_0x215bd0){_0x3209b5=_0x3209b5-0x70;let _0x492a5b=_0x3c14a6[_0x3209b5];return _0x492a5b;},a15_0x3209(_0x4cb327,_0x563237);}const a15_0x51aa35=a15_0x3209;(function(_0x2b5786,_0x1f5a70){const _0x1396ac=a15_0x3209,_0x4075e3=_0x2b5786();while(!![]){try{const _0x52268a=parseInt(_0x1396ac(0xa9))/0x1+parseInt(_0x1396ac(0xbf))/0x2+parseInt(_0x1396ac(0x8e))/0x3*(-parseInt(_0x1396ac(0x85))/0x4)+-parseInt(_0x1396ac(0x9d))/0x5+parseInt(_0x1396ac(0xac))/0x6*(-parseInt(_0x1396ac(0xb4))/0x7)+parseInt(_0x1396ac(0xbd))/0x8+parseInt(_0x1396ac(0xb6))/0x9*(parseInt(_0x1396ac(0x79))/0xa);if(_0x52268a===_0x1f5a70)break;else _0x4075e3['push'](_0x4075e3['shift']());}catch(_0x497177){_0x4075e3['push'](_0x4075e3['shift']());}}}(a15_0x3c14,0x28384));function a15_0x3c14(){const _0x146ce9=['hAgpH','lUXuz','1611813kCwiLK','EzJrv','117iivgcS','unauthorised','existsSync','request','gridProfile','exit','promisify','1834336ZiaxcG','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','135796cVnAXN','INFO','uuid','name','grid-profile-name','hGzuB','allGridProfiles','../../config/constants','stringify','error','epilogue','50790OYziYu','llhwY','push','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','list-grid-profiles-called','Browserstack','auth','ZuOfR','statusCode','handler','Failed\x20to\x20list\x20resources!\x20Error:\x20','cloudProvider','12NyHnWI','server-error','YJJsM','url','username','region','unknown-error','nRdGn','https://','48453gHpbqR','help','rMXvh','boolean','bstackUsername','iMTtK','all-grid-profiles','readFileSync','init-not-called','util','forEach','bstackAccesskey','BnysY','log','parse','411415uJvTht','OmJTD','lQnae','password','gkKIK','/packages/cli/get-grid-profiles','stack','ujWEm','requestId','builder','command','argv','162518SNIThh','/packages/cli/get-all-grid-profiles','desc','6aVJdTA','ERROR','body','method','concurrency','GET'];a15_0x3c14=function(){return _0x146ce9;};return a15_0x3c14();}const fs=require('fs'),util=require(a15_0x51aa35(0x97)),request=require(a15_0x51aa35(0xb9)),{table}=require('table'),{v4:uuidv4}=require(a15_0x51aa35(0x70)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x51aa35(0x75)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a15_0x51aa35(0xbc)](request);exports[a15_0x51aa35(0xa7)]='grid-profiles',exports[a15_0x51aa35(0xab)]=a15_0x51aa35(0x7c),exports[a15_0x51aa35(0xa6)]=function(_0x583080){const _0x495fa6=a15_0x51aa35,_0x3f61fb={};_0x3f61fb['RkwXl']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x3f61fb[_0x495fa6(0x9e)]=_0x495fa6(0x91),_0x3f61fb[_0x495fa6(0x90)]=_0x495fa6(0x8f);const _0x8c5b90=_0x3f61fb,_0x5ceb52={};_0x5ceb52['description']=_0x8c5b90['RkwXl'],_0x5ceb52['type']=_0x8c5b90['OmJTD'];const _0x14bafc={};return _0x14bafc[_0x495fa6(0x94)]=_0x5ceb52,_0x583080['usage'](HELP_HEADER_MESSAGE['list'][_0x495fa6(0xba)])[_0x495fa6(0x78)](HELP_FOOTER_MESSAGE)['options'](_0x14bafc)[_0x495fa6(0x8f)](_0x8c5b90['rMXvh'])[_0x495fa6(0xa8)];},exports[a15_0x51aa35(0x82)]=async function(_0x38533f){const _0x5f1d0d=a15_0x51aa35,_0x18a8da={'YJJsM':function(_0x2d9177){return _0x2d9177();},'iTDxK':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lUXuz':function(_0x55213e,_0x471836,_0x23b8a6,_0x3ec050,_0x4e8a39,_0x89e78,_0x17d61a){return _0x55213e(_0x471836,_0x23b8a6,_0x3ec050,_0x4e8a39,_0x89e78,_0x17d61a);},'ZuOfR':_0x5f1d0d(0x7d),'yWJEE':_0x5f1d0d(0x96),'iMTtK':_0x5f1d0d(0xb1),'nRdGn':function(_0x24c105,_0x1a85d6){return _0x24c105(_0x1a85d6);},'EzJrv':function(_0x335a4e,_0x5c63e6){return _0x335a4e!==_0x5c63e6;},'hGzuB':function(_0x4e63a9,_0x4dead4){return _0x4e63a9!==_0x4dead4;},'gkKIK':function(_0x2fa4a8,_0x45004c){return _0x2fa4a8===_0x45004c;},'IAbhT':_0x5f1d0d(0xbe),'lQnae':_0x5f1d0d(0x72),'aIuzv':'cloud-provider','ujWEm':_0x5f1d0d(0x8a),'naUFR':_0x5f1d0d(0xb0),'llhwY':function(_0x466f6f,_0x849864){return _0x466f6f===_0x849864;},'YaWeA':_0x5f1d0d(0xb7),'BnysY':function(_0x56897b,_0x3f095a,_0x720054,_0x4a1b3b,_0x978484,_0x390c6c,_0x5e8433){return _0x56897b(_0x3f095a,_0x720054,_0x4a1b3b,_0x978484,_0x390c6c,_0x5e8433);},'RuibG':_0x5f1d0d(0x86),'hAgpH':_0x5f1d0d(0x8b)};try{global_registry[_0x5f1d0d(0xa5)]=_0x18a8da['YJJsM'](uuidv4);let _0x41112e=_0x5f1d0d(0x8d)+AG_API_URL+_0x5f1d0d(0xa2);_0x38533f[_0x5f1d0d(0x74)]&&(_0x41112e=_0x5f1d0d(0x8d)+AG_API_URL+_0x5f1d0d(0xaa));!fs[_0x5f1d0d(0xb8)](_0x18a8da[_0x5f1d0d(0x87)](getCredentialsPath))&&(console['error'](_0x18a8da['iTDxK']),await _0x18a8da['lUXuz'](sendInstrumentationEvent,_0x38533f,_0x18a8da['ZuOfR'],messageTypes[_0x5f1d0d(0xad)],_0x18a8da['yWJEE'],null,_0x38533f),process[_0x5f1d0d(0xbb)](0x1));_0x18a8da[_0x5f1d0d(0xb3)](sendInstrumentationEvent,_0x38533f,_0x18a8da[_0x5f1d0d(0x80)],messageTypes[_0x5f1d0d(0xc0)],null,null,_0x38533f);const _0x46ac67=JSON[_0x5f1d0d(0x9c)](fs[_0x5f1d0d(0x95)](_0x18a8da[_0x5f1d0d(0x87)](getCredentialsPath))),_0x5bbbf8={};_0x5bbbf8[_0x5f1d0d(0x89)]=_0x46ac67[_0x5f1d0d(0x7e)][_0x5f1d0d(0x89)],_0x5bbbf8[_0x5f1d0d(0xa0)]=_0x46ac67['Browserstack'][_0x5f1d0d(0xa0)];const _0x2ef2ea={};_0x2ef2ea[_0x5f1d0d(0x88)]=_0x41112e,_0x2ef2ea[_0x5f1d0d(0xaf)]=_0x18a8da[_0x5f1d0d(0x93)],_0x2ef2ea[_0x5f1d0d(0x7f)]=_0x5bbbf8;const _0x3a9eee=_0x2ef2ea;global_registry[_0x5f1d0d(0x92)]=_0x46ac67[_0x5f1d0d(0x7e)][_0x5f1d0d(0x89)],global_registry[_0x5f1d0d(0x99)]=_0x46ac67[_0x5f1d0d(0x7e)]['password'];const _0x415516=await _0x18a8da[_0x5f1d0d(0x8c)](promisifiedRequest,_0x3a9eee);if(_0x18a8da[_0x5f1d0d(0xb5)](_0x415516,null)&&_0x18a8da[_0x5f1d0d(0x73)](_0x415516,undefined)&&_0x18a8da[_0x5f1d0d(0xa1)](_0x415516[_0x5f1d0d(0x81)],0xc8)){const _0x2a0aae=JSON[_0x5f1d0d(0x9c)](_0x415516[_0x5f1d0d(0xae)]);console[_0x5f1d0d(0x9b)](_0x18a8da['IAbhT']);const _0x3c199b=[];_0x3c199b[_0x5f1d0d(0x7b)]([_0x18a8da[_0x5f1d0d(0x9f)],_0x18a8da['aIuzv'],_0x18a8da[_0x5f1d0d(0xa4)],_0x18a8da['naUFR']]),_0x2a0aae[_0x5f1d0d(0x98)](_0x3ca769=>{const _0x5cdb2e=_0x5f1d0d;_0x3c199b[_0x5cdb2e(0x7b)]([_0x3ca769[_0x5cdb2e(0x71)],_0x3ca769[_0x5cdb2e(0x84)],_0x3ca769[_0x5cdb2e(0x8a)],_0x3ca769[_0x5cdb2e(0xb0)]]);}),console[_0x5f1d0d(0x9b)](_0x18a8da[_0x5f1d0d(0x8c)](table,_0x3c199b)),process[_0x5f1d0d(0xbb)](0x0);}_0x18a8da[_0x5f1d0d(0x7a)](_0x415516[_0x5f1d0d(0x81)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x18a8da[_0x5f1d0d(0xb3)](sendInstrumentationEvent,_0x38533f,_0x18a8da[_0x5f1d0d(0x80)],messageTypes[_0x5f1d0d(0xad)],_0x18a8da['YaWeA'],null,_0x38533f),process[_0x5f1d0d(0xbb)](0x1)),console[_0x5f1d0d(0x77)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5f1d0d(0x76)](_0x415516)),await _0x18a8da[_0x5f1d0d(0x9a)](sendInstrumentationEvent,_0x38533f,_0x18a8da['ZuOfR'],messageTypes[_0x5f1d0d(0xad)],_0x18a8da['RuibG'],_0x415516,_0x38533f),process[_0x5f1d0d(0xbb)](0x1);}catch(_0x2a6d68){console[_0x5f1d0d(0x77)](_0x5f1d0d(0x83)+_0x2a6d68[_0x5f1d0d(0xa3)]),await _0x18a8da[_0x5f1d0d(0x9a)](sendInstrumentationEvent,_0x38533f,_0x18a8da[_0x5f1d0d(0x80)],messageTypes[_0x5f1d0d(0xad)],_0x18a8da[_0x5f1d0d(0xb2)],_0x2a6d68,_0x38533f),process[_0x5f1d0d(0xbb)](0x1);}};
1
+ const a15_0x117603=a15_0x4f7d;function a15_0x4f7d(_0x1b51fd,_0x267efa){const _0x22677e=a15_0x2267();return a15_0x4f7d=function(_0x4f7de2,_0x3fd83a){_0x4f7de2=_0x4f7de2-0x128;let _0x55191b=_0x22677e[_0x4f7de2];return _0x55191b;},a15_0x4f7d(_0x1b51fd,_0x267efa);}(function(_0x3914eb,_0x501d54){const _0x21bda0=a15_0x4f7d,_0xea55d6=_0x3914eb();while(!![]){try{const _0x1540cc=parseInt(_0x21bda0(0x160))/0x1+-parseInt(_0x21bda0(0x16a))/0x2*(parseInt(_0x21bda0(0x147))/0x3)+parseInt(_0x21bda0(0x12a))/0x4+parseInt(_0x21bda0(0x175))/0x5+-parseInt(_0x21bda0(0x16b))/0x6+-parseInt(_0x21bda0(0x130))/0x7+parseInt(_0x21bda0(0x14f))/0x8;if(_0x1540cc===_0x501d54)break;else _0xea55d6['push'](_0xea55d6['shift']());}catch(_0x4588d1){_0xea55d6['push'](_0xea55d6['shift']());}}}(a15_0x2267,0xaf4c8));const fs=require('fs'),util=require(a15_0x117603(0x170)),request=require('request'),{table}=require(a15_0x117603(0x15e)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x117603(0x13d)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x117603(0x16e)),promisifiedRequest=util[a15_0x117603(0x16d)](request);function a15_0x2267(){const _0x2f30d1=['List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','region','Wjrsf','stringify','boolean','9279408UFYhOs','allGridProfiles','parse','options','desc','bstackUsername','builder','KEQdq','help','requestId','gridProfile','push','BaWtv','bstackAccesskey','all-grid-profiles','table','command','457167xGMFNx','ZlkiF','ERROR','auth','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','LbUGY','cloudProvider','ijMZU','https://','statusCode','66922QPxlhI','908388osQHTR','log','promisify','../../utils/instrumentationUtils','SDQMg','util','username','concurrency','unknown-error','usage','3815065SqxzRH','nMpCb','UtbYo','3676884rmlBBO','whhpe','wKBZR','bFbxq','body','cloud-provider','9748298KSdvmN','init-not-called','Niwnl','description','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','list-grid-profiles-called','rLWFd','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','aMPrT','uxfyD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-profile-name','../../config/constants','server-error','forEach','rtWnP','SyfaR','unauthorised','IwbeD','exit','method','error','93eveYCl','EjjnR','kjjsF'];a15_0x2267=function(){return _0x2f30d1;};return a15_0x2267();}exports[a15_0x117603(0x15f)]='grid-profiles',exports[a15_0x117603(0x153)]=a15_0x117603(0x14a),exports[a15_0x117603(0x155)]=function(_0x89f125){const _0x4882cc=a15_0x117603,_0x25635c={};_0x25635c[_0x4882cc(0x129)]=_0x4882cc(0x164),_0x25635c[_0x4882cc(0x148)]=_0x4882cc(0x14e),_0x25635c[_0x4882cc(0x14c)]=_0x4882cc(0x157);const _0x506651=_0x25635c,_0x718c72={};_0x718c72[_0x4882cc(0x133)]=_0x506651[_0x4882cc(0x129)],_0x718c72['type']=_0x506651['EjjnR'];const _0x78010e={};return _0x78010e[_0x4882cc(0x15d)]=_0x718c72,_0x89f125[_0x4882cc(0x174)](HELP_HEADER_MESSAGE['list'][_0x4882cc(0x159)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4882cc(0x152)](_0x78010e)[_0x4882cc(0x157)](_0x506651[_0x4882cc(0x14c)])['argv'];},exports['handler']=async function(_0x461824){const _0x13cee6=a15_0x117603,_0x2c3074={'uxfyD':function(_0x5ceede){return _0x5ceede();},'KEQdq':function(_0x7d2c02){return _0x7d2c02();},'whhpe':_0x13cee6(0x13b),'bFbxq':function(_0x29865f,_0x257dc2,_0x25d10b,_0x2e0cd7,_0xd42c2f,_0x31ce0a,_0xf85405){return _0x29865f(_0x257dc2,_0x25d10b,_0x2e0cd7,_0xd42c2f,_0x31ce0a,_0xf85405);},'ijMZU':_0x13cee6(0x136),'Niwnl':_0x13cee6(0x131),'kjjsF':function(_0xdb0cce){return _0xdb0cce();},'aMPrT':'GET','ZlkiF':function(_0x28d8f1,_0x34064a){return _0x28d8f1(_0x34064a);},'LbUGY':function(_0xf6f87c,_0x133444){return _0xf6f87c!==_0x133444;},'rLWFd':function(_0x3d0b35,_0x162b2c){return _0x3d0b35===_0x162b2c;},'IwbeD':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','nMpCb':_0x13cee6(0x13c),'SyfaR':_0x13cee6(0x12f),'rtWnP':_0x13cee6(0x14b),'xjuqp':_0x13cee6(0x172),'bvWqA':function(_0x38a742,_0x928266){return _0x38a742===_0x928266;},'SDQMg':_0x13cee6(0x142),'BaWtv':_0x13cee6(0x13e),'wKBZR':function(_0x435d4a,_0x5c00ab,_0x3dcd69,_0xdff85e,_0x3e7b63,_0x1e69fd,_0x170321){return _0x435d4a(_0x5c00ab,_0x3dcd69,_0xdff85e,_0x3e7b63,_0x1e69fd,_0x170321);},'jqkSG':_0x13cee6(0x173)};try{global_registry[_0x13cee6(0x158)]=_0x2c3074[_0x13cee6(0x13a)](uuidv4);let _0x354a06=_0x13cee6(0x168)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x461824[_0x13cee6(0x150)]&&(_0x354a06=_0x13cee6(0x168)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x2c3074[_0x13cee6(0x156)](getCredentialsPath))&&(console[_0x13cee6(0x146)](_0x2c3074[_0x13cee6(0x12b)]),await _0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes[_0x13cee6(0x162)],_0x2c3074[_0x13cee6(0x132)],null,_0x461824),process[_0x13cee6(0x144)](0x1));_0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes['INFO'],null,null,_0x461824);const _0x3d1861=JSON['parse'](fs['readFileSync'](_0x2c3074[_0x13cee6(0x149)](getCredentialsPath))),_0x14fa6a={};_0x14fa6a[_0x13cee6(0x171)]=_0x3d1861[_0x13cee6(0x135)][_0x13cee6(0x171)],_0x14fa6a['password']=_0x3d1861[_0x13cee6(0x135)]['password'];const _0x1211ed={};_0x1211ed['url']=_0x354a06,_0x1211ed[_0x13cee6(0x145)]=_0x2c3074[_0x13cee6(0x139)],_0x1211ed[_0x13cee6(0x163)]=_0x14fa6a;const _0x10795a=_0x1211ed;global_registry[_0x13cee6(0x154)]=_0x3d1861[_0x13cee6(0x135)]['username'],global_registry[_0x13cee6(0x15c)]=_0x3d1861[_0x13cee6(0x135)]['password'];const _0x521fa8=await _0x2c3074[_0x13cee6(0x161)](promisifiedRequest,_0x10795a);if(_0x2c3074[_0x13cee6(0x165)](_0x521fa8,null)&&_0x2c3074[_0x13cee6(0x165)](_0x521fa8,undefined)&&_0x2c3074[_0x13cee6(0x137)](_0x521fa8[_0x13cee6(0x169)],0xc8)){const _0x553612=JSON[_0x13cee6(0x151)](_0x521fa8[_0x13cee6(0x12e)]);console['log'](_0x2c3074[_0x13cee6(0x143)]);const _0x5d158c=[];_0x5d158c[_0x13cee6(0x15a)]([_0x2c3074[_0x13cee6(0x128)],_0x2c3074[_0x13cee6(0x141)],_0x2c3074[_0x13cee6(0x140)],_0x2c3074['xjuqp']]),_0x553612[_0x13cee6(0x13f)](_0x2728b6=>{const _0x2faf1e=_0x13cee6;_0x5d158c['push']([_0x2728b6['name'],_0x2728b6[_0x2faf1e(0x166)],_0x2728b6[_0x2faf1e(0x14b)],_0x2728b6[_0x2faf1e(0x172)]]);}),console[_0x13cee6(0x16c)](_0x2c3074[_0x13cee6(0x161)](table,_0x5d158c)),process[_0x13cee6(0x144)](0x0);}_0x2c3074['bvWqA'](_0x521fa8[_0x13cee6(0x169)],0x191)&&(console['error'](_0x13cee6(0x134)),await _0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes[_0x13cee6(0x162)],_0x2c3074[_0x13cee6(0x16f)],null,_0x461824),process[_0x13cee6(0x144)](0x1)),console['error'](_0x13cee6(0x138)+JSON[_0x13cee6(0x14d)](_0x521fa8)),await _0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes[_0x13cee6(0x162)],_0x2c3074[_0x13cee6(0x15b)],_0x521fa8,_0x461824),process[_0x13cee6(0x144)](0x1);}catch(_0x938c97){console[_0x13cee6(0x146)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x938c97['stack']),await _0x2c3074[_0x13cee6(0x12c)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes['ERROR'],_0x2c3074['jqkSG'],_0x938c97,_0x461824),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x5a3860=a16_0x2aac;function a16_0x5c73(){const _0x303126=['log','stack','../../utils/utilityMethods','exit','existsSync','UOlrA','qICmB','grid-name','url','method','running','XoKFw','util','../../utils/instrumentationUtils','requestId','695079kQeJcf','description','server-error','1260552vHFqzQ','name','list','bstackUsername','clusterName','grids','dAgfR','help','MBoOg','35NZrcwM','options','xXuSO','statusCode','https://','bdjhE','XQXZu','parse','queued','Browserstack','forEach','argv','body','init-not-called','table','2834616hSykpg','KxmAl','Msuhl','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','auth','command','7549384vDcdoH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','554564WTZTjV','Failed\x20to\x20list\x20resources!\x20Error:\x20','readFileSync','allGrids','dRCDj','Ortaz','push','list-grids-called','lAVPi','unknown-error','iXnhr','stringify','error','password','uPuia','epilogue','qYoor','DBUiL','INFO','status','grid-id','1657179IsYGbd','VLPts','grid','XVTlG','218057SkJeMu','poPZL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ERROR','JddXL','DCfpP','all-grids','username','cluster-name','bstackAccesskey'];a16_0x5c73=function(){return _0x303126;};return a16_0x5c73();}(function(_0x445cfa,_0x5112d0){const _0x2f6f6c=a16_0x2aac,_0x3886dc=_0x445cfa();while(!![]){try{const _0x44a506=parseInt(_0x2f6f6c(0x199))/0x1+parseInt(_0x2f6f6c(0x177))/0x2+-parseInt(_0x2f6f6c(0x195))/0x3+-parseInt(_0x2f6f6c(0x180))/0x4*(-parseInt(_0x2f6f6c(0x1be))/0x5)+-parseInt(_0x2f6f6c(0x1b5))/0x6+-parseInt(_0x2f6f6c(0x1b2))/0x7+-parseInt(_0x2f6f6c(0x17d))/0x8;if(_0x44a506===_0x5112d0)break;else _0x3886dc['push'](_0x3886dc['shift']());}catch(_0x18b854){_0x3886dc['push'](_0x3886dc['shift']());}}}(a16_0x5c73,0xc368d));const fs=require('fs'),util=require(a16_0x5a3860(0x1af)),request=require('request'),{table}=require(a16_0x5a3860(0x176)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x5a3860(0x1a5)),{sendInstrumentationEvent}=require(a16_0x5a3860(0x1b0)),promisifiedRequest=util['promisify'](request);function a16_0x2aac(_0x39821a,_0x5aab98){const _0x5c73a3=a16_0x5c73();return a16_0x2aac=function(_0x2aacdf,_0x2eb304){_0x2aacdf=_0x2aacdf-0x175;let _0x4f5669=_0x5c73a3[_0x2aacdf];return _0x4f5669;},a16_0x2aac(_0x39821a,_0x5aab98);}exports[a16_0x5a3860(0x17c)]=a16_0x5a3860(0x1ba),exports['desc']=a16_0x5a3860(0x17a),exports['builder']=function(_0xecdb03){const _0x372a40=a16_0x5a3860,_0x2ca74c={};_0x2ca74c[_0x372a40(0x1c3)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x2ca74c[_0x372a40(0x1c0)]='boolean',_0x2ca74c['qICmB']=_0x372a40(0x1bc);const _0x5c2979=_0x2ca74c,_0x2ff68b={};_0x2ff68b[_0x372a40(0x1b3)]=_0x5c2979['bdjhE'],_0x2ff68b['type']=_0x5c2979[_0x372a40(0x1c0)];const _0x792423={};return _0x792423[_0x372a40(0x19f)]=_0x2ff68b,_0xecdb03['usage'](HELP_HEADER_MESSAGE[_0x372a40(0x1b7)][_0x372a40(0x197)])[_0x372a40(0x18f)](HELP_FOOTER_MESSAGE)[_0x372a40(0x1bf)](_0x792423)['help'](_0x5c2979[_0x372a40(0x1a9)])[_0x372a40(0x1c9)];},exports['handler']=async function(_0x222309){const _0x4d1a26=a16_0x5a3860,_0x32f8b6={'DCfpP':function(_0x2647cd){return _0x2647cd();},'lMMGM':_0x4d1a26(0x17e),'UOlrA':function(_0x43f92b,_0x1f888b,_0x3f6605,_0x5aec4d,_0x542d77,_0x309e0a,_0x3da110){return _0x43f92b(_0x1f888b,_0x3f6605,_0x5aec4d,_0x542d77,_0x309e0a,_0x3da110);},'Msuhl':_0x4d1a26(0x187),'dAgfR':_0x4d1a26(0x175),'lAVPi':'GET','Ortaz':function(_0x292d42,_0x1f2c43,_0x533697,_0xa19785,_0x41bc86,_0xf403cc,_0x55323e){return _0x292d42(_0x1f2c43,_0x533697,_0xa19785,_0x41bc86,_0xf403cc,_0x55323e);},'DBUiL':function(_0x474304,_0x5b9e09){return _0x474304(_0x5b9e09);},'uPuia':function(_0x5c06e4,_0x163b15){return _0x5c06e4!==_0x163b15;},'MBoOg':function(_0x1efa43,_0x182fbc){return _0x1efa43!==_0x182fbc;},'XQXZu':function(_0x1188bd,_0x3bd172){return _0x1188bd===_0x3bd172;},'JddXL':'\x0aFound\x20the\x20following\x20grids:\x0a','XVTlG':_0x4d1a26(0x194),'TqIAc':_0x4d1a26(0x1aa),'XoKFw':_0x4d1a26(0x193),'zxdnj':_0x4d1a26(0x1ad),'XPuQp':_0x4d1a26(0x1c6),'dRCDj':_0x4d1a26(0x1a1),'VLPts':function(_0x3cfa71,_0x524f4d){return _0x3cfa71===_0x524f4d;},'iXnhr':function(_0x428e48,_0x1b7e96,_0x8bf4da,_0x58f718,_0x29b848,_0x2c89a0,_0x58c0cc){return _0x428e48(_0x1b7e96,_0x8bf4da,_0x58f718,_0x29b848,_0x2c89a0,_0x58c0cc);},'poPZL':_0x4d1a26(0x17f),'KxmAl':_0x4d1a26(0x1b4),'qYoor':_0x4d1a26(0x189)};try{global_registry[_0x4d1a26(0x1b1)]=_0x32f8b6[_0x4d1a26(0x19e)](uuidv4);!fs[_0x4d1a26(0x1a7)](_0x32f8b6['DCfpP'](getCredentialsPath))&&(console['error'](_0x32f8b6['lMMGM']),await _0x32f8b6[_0x4d1a26(0x1a8)](sendInstrumentationEvent,_0x222309,_0x32f8b6['Msuhl'],messageTypes['ERROR'],_0x32f8b6[_0x4d1a26(0x1bb)],null,_0x222309),process[_0x4d1a26(0x1a6)](0x1));const _0xac2083=JSON[_0x4d1a26(0x1c5)](fs[_0x4d1a26(0x182)](_0x32f8b6[_0x4d1a26(0x19e)](getCredentialsPath)));let _0x926857='https://'+AG_API_URL+'/packages/cli/get-grids';_0x222309[_0x4d1a26(0x183)]&&(_0x926857=_0x4d1a26(0x1c2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4cd39d={};_0x4cd39d[_0x4d1a26(0x1a0)]=_0xac2083[_0x4d1a26(0x1c7)][_0x4d1a26(0x1a0)],_0x4cd39d['password']=_0xac2083['Browserstack'][_0x4d1a26(0x18d)];const _0x3e389e={};_0x3e389e[_0x4d1a26(0x1ab)]=_0x926857,_0x3e389e[_0x4d1a26(0x1ac)]=_0x32f8b6[_0x4d1a26(0x188)],_0x3e389e[_0x4d1a26(0x17b)]=_0x4cd39d;const _0x168be5=_0x3e389e;global_registry[_0x4d1a26(0x1b8)]=_0xac2083['Browserstack'][_0x4d1a26(0x1a0)],global_registry[_0x4d1a26(0x1a2)]=_0xac2083[_0x4d1a26(0x1c7)][_0x4d1a26(0x18d)],_0x32f8b6[_0x4d1a26(0x185)](sendInstrumentationEvent,_0x222309,_0x32f8b6[_0x4d1a26(0x179)],messageTypes[_0x4d1a26(0x192)],null,null,_0x222309);const _0x5df877=await _0x32f8b6[_0x4d1a26(0x191)](promisifiedRequest,_0x168be5);if(_0x32f8b6[_0x4d1a26(0x18e)](_0x5df877,null)&&_0x32f8b6[_0x4d1a26(0x1bd)](_0x5df877,undefined)&&_0x32f8b6[_0x4d1a26(0x1c4)](_0x5df877[_0x4d1a26(0x1c1)],0xc8)){const _0x3438e5=JSON[_0x4d1a26(0x1c5)](_0x5df877[_0x4d1a26(0x1ca)]);console[_0x4d1a26(0x1a3)](_0x32f8b6[_0x4d1a26(0x19d)]);const _0x2e0ffc=[];_0x2e0ffc['push']([_0x32f8b6[_0x4d1a26(0x198)],_0x32f8b6['TqIAc'],_0x32f8b6[_0x4d1a26(0x1ae)],_0x32f8b6['zxdnj'],_0x32f8b6['XPuQp'],_0x32f8b6[_0x4d1a26(0x184)]]),_0x3438e5[_0x4d1a26(0x1c8)](_0x276e27=>{const _0x46a521=_0x4d1a26;_0x2e0ffc[_0x46a521(0x186)]([_0x276e27['id'],_0x276e27[_0x46a521(0x1b6)],_0x276e27[_0x46a521(0x193)],_0x276e27[_0x46a521(0x1ad)],_0x276e27[_0x46a521(0x1c6)],_0x276e27[_0x46a521(0x1b9)]]);}),console['log'](_0x32f8b6[_0x4d1a26(0x191)](table,_0x2e0ffc)),process[_0x4d1a26(0x1a6)](0x0);}_0x32f8b6[_0x4d1a26(0x196)](_0x5df877[_0x4d1a26(0x1c1)],0x191)&&(console[_0x4d1a26(0x18c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x32f8b6['iXnhr'](sendInstrumentationEvent,_0x222309,_0x32f8b6['Msuhl'],messageTypes[_0x4d1a26(0x19c)],_0x32f8b6[_0x4d1a26(0x19a)],null,_0x222309),process[_0x4d1a26(0x1a6)](0x1)),console[_0x4d1a26(0x18c)](_0x4d1a26(0x19b)+JSON[_0x4d1a26(0x18b)](_0x5df877)),await _0x32f8b6[_0x4d1a26(0x185)](sendInstrumentationEvent,_0x222309,_0x32f8b6[_0x4d1a26(0x179)],messageTypes[_0x4d1a26(0x19c)],_0x32f8b6[_0x4d1a26(0x178)],_0x5df877,_0x222309),process[_0x4d1a26(0x1a6)](0x1);}catch(_0x470ab0){console['error'](_0x4d1a26(0x181)+_0x470ab0[_0x4d1a26(0x1a4)]),await _0x32f8b6[_0x4d1a26(0x18a)](sendInstrumentationEvent,_0x222309,_0x32f8b6['Msuhl'],messageTypes[_0x4d1a26(0x19c)],_0x32f8b6[_0x4d1a26(0x190)],_0x470ab0,_0x222309),process[_0x4d1a26(0x1a6)](0x1);}};
1
+ const a16_0x1d25e1=a16_0x53ba;(function(_0x88dc74,_0x4fea7d){const _0x28e12d=a16_0x53ba,_0x4c7372=_0x88dc74();while(!![]){try{const _0x2ff7a9=parseInt(_0x28e12d(0xe4))/0x1+parseInt(_0x28e12d(0x115))/0x2*(-parseInt(_0x28e12d(0x132))/0x3)+parseInt(_0x28e12d(0xf0))/0x4+-parseInt(_0x28e12d(0x11d))/0x5*(parseInt(_0x28e12d(0x10d))/0x6)+-parseInt(_0x28e12d(0xef))/0x7*(-parseInt(_0x28e12d(0x12e))/0x8)+parseInt(_0x28e12d(0x108))/0x9*(-parseInt(_0x28e12d(0x10b))/0xa)+parseInt(_0x28e12d(0x107))/0xb*(parseInt(_0x28e12d(0x10a))/0xc);if(_0x2ff7a9===_0x4fea7d)break;else _0x4c7372['push'](_0x4c7372['shift']());}catch(_0x1aa359){_0x4c7372['push'](_0x4c7372['shift']());}}}(a16_0x227e,0x5ddc2));const fs=require('fs'),util=require('util'),request=require(a16_0x1d25e1(0xfe)),{table}=require(a16_0x1d25e1(0xe2)),{v4:uuidv4}=require(a16_0x1d25e1(0xf9)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x1d25e1(0xe0)),{sendInstrumentationEvent}=require(a16_0x1d25e1(0xf7)),promisifiedRequest=util[a16_0x1d25e1(0x109)](request);function a16_0x53ba(_0x56ab6f,_0x556d2c){const _0x227e4d=a16_0x227e();return a16_0x53ba=function(_0x53bafe,_0x594b67){_0x53bafe=_0x53bafe-0xe0;let _0x466d4e=_0x227e4d[_0x53bafe];return _0x466d4e;},a16_0x53ba(_0x56ab6f,_0x556d2c);}function a16_0x227e(){const _0x224f5d=['uuid','YyJqG','auth','/packages/cli/get-all-grids','unauthorised','request','help','bstackUsername','tXCTE','unknown-error','rPtgO','ZBIWe','forEach','existsSync','1746481tVkGZy','9HbMuxJ','promisify','48sstQKE','6243950EpMweV','clusterName','3000732AdubFg','requestId','JHFPA','name','GdAhS','stringify','url','exit','245282hGZVVc','ERROR','running','readFileSync','VJlDN','hTgbI','Docla','parse','5tHQRMw','Ogphh','bstackAccesskey','statusCode','queued','NyKle','DWLuh','grid-id','grids','handler','error','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','usage','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','167592hyGZgh','cNDVN','grid','jEpqb','9PKCVpr','VexFh','grid-name','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','builder','stack','../../utils/utilityMethods','options','table','init-not-called','210056SxJNGH','server-error','JXfpr','GET','password','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','all-grids','oiocB','body','push','217zuoFbc','1529324YwpZDW','QbmeX','status','xOYRR','list-grids-called','YqAjW','https://','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a'];a16_0x227e=function(){return _0x224f5d;};return a16_0x227e();}exports['command']=a16_0x1d25e1(0x125),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a16_0x1d25e1(0x138)]=function(_0x20703d){const _0x75ff07=a16_0x1d25e1,_0x2b0e59={};_0x2b0e59['WIRYe']=_0x75ff07(0x12d),_0x2b0e59['JXfpr']='boolean',_0x2b0e59['VJlDN']=_0x75ff07(0xff);const _0x256119=_0x2b0e59,_0x36d485={};_0x36d485['description']=_0x256119['WIRYe'],_0x36d485[_0x75ff07(0x135)]=_0x256119[_0x75ff07(0xe6)];const _0x46efe5={};return _0x46efe5[_0x75ff07(0xeb)]=_0x36d485,_0x20703d[_0x75ff07(0x12a)](HELP_HEADER_MESSAGE[_0x75ff07(0x12c)][_0x75ff07(0x130)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x75ff07(0xe1)](_0x46efe5)[_0x75ff07(0xff)](_0x256119[_0x75ff07(0x119)])['argv'];},exports[a16_0x1d25e1(0x126)]=async function(_0x228e6d){const _0x396f7d=a16_0x1d25e1,_0x9eee20={'Ogphh':function(_0x1dba97){return _0x1dba97();},'xOYRR':_0x396f7d(0x12b),'YyJqG':function(_0xa2dc58,_0x5595ca,_0x127f5e,_0x33c06f,_0x143a3e,_0x189b97,_0x2dd1c6){return _0xa2dc58(_0x5595ca,_0x127f5e,_0x33c06f,_0x143a3e,_0x189b97,_0x2dd1c6);},'cNDVN':_0x396f7d(0xf4),'meQWy':_0x396f7d(0xe3),'NyKle':function(_0x127adc){return _0x127adc();},'rkJwd':_0x396f7d(0xe7),'ZBIWe':function(_0x37c72d,_0x180992){return _0x37c72d(_0x180992);},'DWLuh':function(_0x25e2fb,_0x1c600c){return _0x25e2fb!==_0x1c600c;},'QbmeX':function(_0x45322e,_0x244a34){return _0x45322e!==_0x244a34;},'jEpqb':function(_0x4bce9b,_0x494ba1){return _0x4bce9b===_0x494ba1;},'hTgbI':_0x396f7d(0xf8),'FgXTV':_0x396f7d(0x124),'YqAjW':_0x396f7d(0x134),'dfdNQ':_0x396f7d(0xf2),'VexFh':_0x396f7d(0x117),'GdAhS':_0x396f7d(0x121),'rPtgO':'cluster-name','Docla':function(_0x1186d1,_0x10754b){return _0x1186d1===_0x10754b;},'JHFPA':_0x396f7d(0xfd),'kezTf':function(_0x4b3303,_0x35f00e,_0x22facc,_0x20b6a7,_0x1cb2f8,_0x166098,_0x154536){return _0x4b3303(_0x35f00e,_0x22facc,_0x20b6a7,_0x1cb2f8,_0x166098,_0x154536);},'tXCTE':_0x396f7d(0xe5),'uWrZO':function(_0x3cb77e,_0x466e5b,_0x4e1fbb,_0x476115,_0x2b335e,_0x3a83f5,_0x415017){return _0x3cb77e(_0x466e5b,_0x4e1fbb,_0x476115,_0x2b335e,_0x3a83f5,_0x415017);},'oiocB':_0x396f7d(0x102)};try{global_registry[_0x396f7d(0x10e)]=_0x9eee20['Ogphh'](uuidv4);!fs[_0x396f7d(0x106)](_0x9eee20[_0x396f7d(0x11e)](getCredentialsPath))&&(console[_0x396f7d(0x127)](_0x9eee20[_0x396f7d(0xf3)]),await _0x9eee20[_0x396f7d(0xfa)](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes['ERROR'],_0x9eee20['meQWy'],null,_0x228e6d),process[_0x396f7d(0x114)](0x1));const _0x5ac609=JSON[_0x396f7d(0x11c)](fs[_0x396f7d(0x118)](_0x9eee20[_0x396f7d(0x122)](getCredentialsPath)));let _0x5be39e=_0x396f7d(0xf6)+AG_API_URL+'/packages/cli/get-grids';_0x228e6d['allGrids']&&(_0x5be39e=_0x396f7d(0xf6)+AG_API_URL+_0x396f7d(0xfc));const _0x1e6342={};_0x1e6342[_0x396f7d(0xe9)]=_0x5ac609[_0x396f7d(0x137)][_0x396f7d(0xe9)],_0x1e6342[_0x396f7d(0xe8)]=_0x5ac609['Browserstack'][_0x396f7d(0xe8)];const _0x2e6da0={};_0x2e6da0[_0x396f7d(0x113)]=_0x5be39e,_0x2e6da0['method']=_0x9eee20['rkJwd'],_0x2e6da0[_0x396f7d(0xfb)]=_0x1e6342;const _0x367eac=_0x2e6da0;global_registry[_0x396f7d(0x100)]=_0x5ac609['Browserstack'][_0x396f7d(0xe9)],global_registry[_0x396f7d(0x11f)]=_0x5ac609[_0x396f7d(0x137)][_0x396f7d(0xe8)],_0x9eee20['YyJqG'](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes['INFO'],null,null,_0x228e6d);const _0x35fc7f=await _0x9eee20[_0x396f7d(0x104)](promisifiedRequest,_0x367eac);if(_0x9eee20[_0x396f7d(0x123)](_0x35fc7f,null)&&_0x9eee20[_0x396f7d(0xf1)](_0x35fc7f,undefined)&&_0x9eee20[_0x396f7d(0x131)](_0x35fc7f[_0x396f7d(0x120)],0xc8)){const _0x3b5df9=JSON[_0x396f7d(0x11c)](_0x35fc7f[_0x396f7d(0xed)]);console[_0x396f7d(0x128)](_0x9eee20[_0x396f7d(0x11a)]);const _0x144575=[];_0x144575[_0x396f7d(0xee)]([_0x9eee20['FgXTV'],_0x9eee20[_0x396f7d(0xf5)],_0x9eee20['dfdNQ'],_0x9eee20[_0x396f7d(0x133)],_0x9eee20[_0x396f7d(0x111)],_0x9eee20[_0x396f7d(0x103)]]),_0x3b5df9[_0x396f7d(0x105)](_0x3b9f1b=>{const _0x138651=_0x396f7d;_0x144575['push']([_0x3b9f1b['id'],_0x3b9f1b[_0x138651(0x110)],_0x3b9f1b[_0x138651(0xf2)],_0x3b9f1b['running'],_0x3b9f1b[_0x138651(0x121)],_0x3b9f1b[_0x138651(0x10c)]]);}),console[_0x396f7d(0x128)](_0x9eee20['ZBIWe'](table,_0x144575)),process['exit'](0x0);}_0x9eee20[_0x396f7d(0x11b)](_0x35fc7f[_0x396f7d(0x120)],0x191)&&(console[_0x396f7d(0x127)](_0x396f7d(0x136)),await _0x9eee20['YyJqG'](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes[_0x396f7d(0x116)],_0x9eee20[_0x396f7d(0x10f)],null,_0x228e6d),process['exit'](0x1)),console['error'](_0x396f7d(0xea)+JSON[_0x396f7d(0x112)](_0x35fc7f)),await _0x9eee20['kezTf'](sendInstrumentationEvent,_0x228e6d,_0x9eee20['cNDVN'],messageTypes[_0x396f7d(0x116)],_0x9eee20[_0x396f7d(0x101)],_0x35fc7f,_0x228e6d),process[_0x396f7d(0x114)](0x1);}catch(_0x26dff4){console[_0x396f7d(0x127)](_0x396f7d(0x129)+_0x26dff4[_0x396f7d(0x139)]),await _0x9eee20['uWrZO'](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes['ERROR'],_0x9eee20[_0x396f7d(0xec)],_0x26dff4,_0x228e6d),process[_0x396f7d(0x114)](0x1);}};