browserstack-node-sdk 1.28.2 → 1.28.3

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 (97) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customEnvironment.js +1 -1
  43. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  44. package/src/bin/jest/jest.setup.js +1 -1
  45. package/src/bin/jest/test_before.setup.js +1 -1
  46. package/src/bin/launcher/launcher.js +1 -1
  47. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  48. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  49. package/src/bin/mocha/command.js +1 -1
  50. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  51. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  52. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  53. package/src/bin/mocha/test.setup.js +1 -1
  54. package/src/bin/nightwatch/command.js +1 -1
  55. package/src/bin/playwright/accessibility-helper.js +1 -1
  56. package/src/bin/playwright/command.js +1 -1
  57. package/src/bin/playwright/globalSetup.js +1 -1
  58. package/src/bin/playwright/mock-process.js +1 -1
  59. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  60. package/src/bin/playwright/reporter/reporter.js +1 -1
  61. package/src/bin/playwright/reporter/test-details.js +1 -1
  62. package/src/bin/runner.js +1 -1
  63. package/src/bin/setup.js +1 -1
  64. package/src/bin/test-runner/index.js +1 -1
  65. package/src/bin/test-runner/runTest.js +1 -1
  66. package/src/bin/test-runner/testWorker.js +1 -1
  67. package/src/bin/utils/constants.js +1 -1
  68. package/src/bin/utils/log4jsAppender.js +1 -1
  69. package/src/bin/utils/logPatcher.js +1 -1
  70. package/src/bin/utils/logReportingAPI.js +1 -1
  71. package/src/bin/vanilla-js/command.js +1 -1
  72. package/src/helpers/BrowserStackSetup.js +1 -1
  73. package/src/helpers/accessibility-automation/constants.js +1 -1
  74. package/src/helpers/accessibility-automation/helper.js +1 -1
  75. package/src/helpers/ats/constants.js +1 -1
  76. package/src/helpers/ats/helper.js +1 -1
  77. package/src/helpers/capsMapping.js +1 -1
  78. package/src/helpers/helper.js +1 -1
  79. package/src/helpers/logger.js +1 -1
  80. package/src/helpers/patchHelpers.js +1 -1
  81. package/src/helpers/percy/Percy.js +1 -0
  82. package/src/helpers/percy/PercyBinary.js +1 -0
  83. package/src/helpers/percy/PercyCaptureMap.js +1 -0
  84. package/src/helpers/percy/PercyCaptureModes.js +1 -0
  85. package/src/helpers/percy/PercySDK.js +1 -0
  86. package/src/helpers/percy/index.js +1 -0
  87. package/src/helpers/request-spy.js +1 -1
  88. package/src/helpers/setKeepAlive.js +1 -1
  89. package/src/helpers/test-observability/constants.js +1 -1
  90. package/src/helpers/test-observability/error-handler.js +1 -1
  91. package/src/helpers/test-observability/performance-tester.js +1 -1
  92. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  93. package/src/helpers/test-observability/sessionHandler.js +1 -1
  94. package/src/helpers/test-observability/utils.js +1 -1
  95. package/src/helpers/w3cMapping.js +1 -1
  96. package/src/hubAllocationMethods.js +1 -1
  97. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x2e1e(_0x265d78,_0x5acbb5){const _0x5d30b1=a9_0x5d30();return a9_0x2e1e=function(_0x2e1e50,_0x2e3442){_0x2e1e50=_0x2e1e50-0x1bd;let _0x18d621=_0x5d30b1[_0x2e1e50];return _0x18d621;},a9_0x2e1e(_0x265d78,_0x5acbb5);}const a9_0x484822=a9_0x2e1e;(function(_0x40dedb,_0x4f34e5){const _0x56406a=a9_0x2e1e,_0x665281=_0x40dedb();while(!![]){try{const _0x5725cf=parseInt(_0x56406a(0x1cb))/0x1+-parseInt(_0x56406a(0x1bf))/0x2*(parseInt(_0x56406a(0x1cf))/0x3)+-parseInt(_0x56406a(0x1ca))/0x4*(parseInt(_0x56406a(0x1cc))/0x5)+-parseInt(_0x56406a(0x1c8))/0x6*(parseInt(_0x56406a(0x1c3))/0x7)+parseInt(_0x56406a(0x1c1))/0x8+parseInt(_0x56406a(0x1c0))/0x9*(parseInt(_0x56406a(0x1cd))/0xa)+parseInt(_0x56406a(0x1c6))/0xb*(-parseInt(_0x56406a(0x1c5))/0xc);if(_0x5725cf===_0x4f34e5)break;else _0x665281['push'](_0x665281['shift']());}catch(_0x396223){_0x665281['push'](_0x665281['shift']());}}}(a9_0x5d30,0x23560));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x484822(0x1c2));exports['command']=a9_0x484822(0x1bd),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x484822(0x1d1)]=function(_0x12517b){const _0x170aa6=a9_0x484822,_0x512fb2={};_0x512fb2['TiEoV']=_0x170aa6(0x1ce),_0x512fb2[_0x170aa6(0x1be)]=_0x170aa6(0x1d0);const _0x53b0bf=_0x512fb2;return _0x12517b['usage'](HELP_HEADER_MESSAGE[_0x170aa6(0x1bd)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x53b0bf[_0x170aa6(0x1c4)])['demandCommand']()['recommendCommands']()[_0x170aa6(0x1c7)]()[_0x170aa6(0x1d0)](_0x53b0bf['odjsT']);},exports[a9_0x484822(0x1c9)]=function(_0x2b1ed5){};function a9_0x5d30(){const _0x57f7f0=['17181qMbnRY','989208NYRqCO','../config/constants','117411OrTslu','TiEoV','4404RTeEVr','1232jCfCmQ','strict','72FFgzCc','handler','284VAodbG','197137iNcpBl','1910pevbOU','1490HNTSJg','create_commands','3EVZSIN','help','builder','create','odjsT','381982YbXauy'];a9_0x5d30=function(){return _0x57f7f0;};return a9_0x5d30();}
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 +1 @@
1
- function a10_0xa764(_0xd41875,_0x29ca70){const _0x4bacaf=a10_0x4bac();return a10_0xa764=function(_0xa76437,_0x25f1db){_0xa76437=_0xa76437-0x113;let _0x5e4fe8=_0x4bacaf[_0xa76437];return _0x5e4fe8;},a10_0xa764(_0xd41875,_0x29ca70);}const a10_0x3f0e8c=a10_0xa764;function a10_0x4bac(){const _0x24c999=['Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','wyVcs','XuOdN','debug','gridName','reconnecting-websocket','HUZym','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','desc','fSlGC','TokcX','s3Bucket','jLzDT','sendEventToBackend','cvXqv','tRifL','cluster-name','CLI_RUN_STARTED','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','5|8|7|2|0|3|4|1|6','Qvkxx','description','SkDUf','84MSNKTL','qTLaD','FZPKq','/packages/cli/create-grid-checks','sxglv','PhUtW','yidti','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','7|8|0|6|3|2|1|4|5','\x20in\x20existing\x20cluster\x20\x27','gridProfile','NGgrf','isVPCPresent','cTVGO','createdBy','includes','user','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','SetuS','lvnDg','YDZsl','eCsCb','username','ksSEV','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','GET','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','mQXtZ','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','private-ingress-nginx-controller','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QIUty','hubVersion','TwUoK','iYOmm','OjnXz','toLowerCase','HKXwh','ygUao','VTKCF','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','CLI_RUN_FINISHED','../../utils/userInput','isPrivateGrid','usage','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','xfRgb','CLI\x20run\x20started','pDekf','split','rwHfq','Found\x20Subnets:\x20','301931VEhgND','LOG','uuid','concurrency','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','YvgVb','cloud-provider','create','/wd/hub','vGkgE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','https://','gridProfiles','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','route53','grid-spawning-failed','defaultGridProfile','warn','IsGvi','https','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','pre-spawned-invalid-vpc','DNpzB','nDiDS','name','HlQdQ','Wenud','cqtQg','vpYCf','Spawning\x20the\x20grid\x20','grid-name','PsuGS','IeUvt','kFpjK','FCGCx','default','replace','builder','XumuH','argv','parse','ewnsI','Kxjbm','Grid\x20can\x20be\x20accessed\x20at:\x20','SigQM','options','isSubnetsValid','length','metadata','RnHjc','Grid\x20spawned\x20on\x20the\x20cluster','password','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','HKSdM','CLI\x20run\x20finished:\x20','delay','ybEBt','YnLbP','PxmxB','coZGc','writeFileSync','connectionTimeout','Create\x20a\x20private/public\x20grid.','5285020gcmeuJ','info','clusterRegion','Deleting\x20the\x20CloudFormation\x20Stacks','getResourceClientId','browserVersion','exit','4|2|3|1|0','dqjqq','DlChs','OMeJY','privateGrid','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','1231000FItLbt','wroNv','Sxthc','cIwve','maxNodes','epilogue','\x20using\x20\x27','fXvJX','ISMMf','mNAlF','bQocu','gRXet','bstackAccesskey','pCDZW','oVNGn','hoeHI','9269640AhKobX','createOtherResources','iUziD','UMNdm','hfsmf','stringify','Creating\x20namespace','private-grid','type','qLCtB','Namespace\x20created','KpCeZ','../../utils/gridComponents','createNamespace','eGeea','<UsernamePlaceholder>','CaaOp','9951088bakOsZ','fetchLocalCreds','xWinD','Namespace\x20Created','grid-profile','existsSync','Cluster\x20created\x20successfully','DlaZT','widIB','fCxjC','create-grid-checks-grid-already-exists','message','Found\x20VPC:\x20','/packages/cli/get-grid-url?gridIdentifier=','xsaey','Will\x20be\x20spawning\x20the\x20grid\x20','wygtv','PxaJP','NfDta','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','tdWGP','util','WkCvU','BmpUy','QLOMq','nGdUz','instanceType','setupNewCluster','statusCode','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','create-grid-checks-invalid-profile','qgGbv','rkocY','OpzVs','skBiP','mpgIU','XXVBd','help','WaoJO','TMRhm','../../utils/webSocketUtils','promisify','ERROR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','syFqK','error','tTxKZ','body','fJySH','VvxCY','ptylf','auth','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.','string','JPGkD','OtQDO','method','INFO','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','clusterName','TeLMJ','oRfGg','ZViff','handler','create-grid-checks-auth-failed','huRTq','../../utils/createk8sClient','QUuZo','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','annotations','command','alreadyPresent','readFileSync','1NBvhxr','Cluster\x20','http','bstackUsername','request','NRTbQ','ejumN','turboscale-managed-identity-','securityGroups','non-aws-azure-cluster','Browserstack','quMUQ','WVFCR','4209096DSIRUX','quzOX','Spawning\x20grid\x20on\x20to\x20the\x20cluster','region','cVjwk','requestId','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','subnets','readNamespacedService','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Rbdba','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','SFltA','\x20are\x20not\x20present\x20in\x20VPC:\x20','pre-spawned-subnets-not-selected','pLWqW','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','hPJJu','CEgpY','\x27\x20grid\x20profile','updatePreSpawnedCluster','../../cloudproviders/utils','qKtbe','configureIfNotConfigured','oRBFb','wAieD','create-grid-checks-non-200','INHOn','cloudProvider','managedBy','RoLHb','psgnL','KOuYn','TLEJY','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','rCXge','deleteCluster','ingress-nginx-controller','Spawning\x20Grid\x20on\x20the\x20Cluster','tsLxg','Create\x20a\x20new\x20Automation\x20grid.','wMFpk','2479188LXbOxn'];a10_0x4bac=function(){return _0x24c999;};return a10_0x4bac();}(function(_0x1e054c,_0x351205){const _0x43e27b=a10_0xa764,_0xc3ac02=_0x1e054c();while(!![]){try{const _0x54b97a=parseInt(_0x43e27b(0x169))/0x1*(parseInt(_0x43e27b(0x239))/0x2)+parseInt(_0x43e27b(0x176))/0x3+-parseInt(_0x43e27b(0x1a0))/0x4+parseInt(_0x43e27b(0x22c))/0x5+-parseInt(_0x43e27b(0x1b8))/0x6*(-parseInt(_0x43e27b(0x1ec))/0x7)+-parseInt(_0x43e27b(0x120))/0x8+-parseInt(_0x43e27b(0x249))/0x9;if(_0x54b97a===_0x351205)break;else _0xc3ac02['push'](_0xc3ac02['shift']());}catch(_0x3cb3a2){_0xc3ac02['push'](_0xc3ac02['shift']());}}}(a10_0x4bac,0xbfd5b));const fs=require('fs'),ws=require('ws'),util=require(a10_0x3f0e8c(0x135)),ReconnectingWebSocket=require(a10_0x3f0e8c(0x1a6)),request=require(a10_0x3f0e8c(0x16d)),{v4:uuidv4}=require(a10_0x3f0e8c(0x1ee)),webSocketUtils=require(a10_0x3f0e8c(0x148)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a10_0x3f0e8c(0x1e2)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x3f0e8c(0x18b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x3f0e8c(0x11b)),{createK8sClient}=require(a10_0x3f0e8c(0x162)),{sendInstrumentationEvent}=require(a10_0x3f0e8c(0x201)),promisifiedRequest=util[a10_0x3f0e8c(0x149)](request);exports[a10_0x3f0e8c(0x166)]='grid',exports[a10_0x3f0e8c(0x1a9)]=a10_0x3f0e8c(0x19e),exports[a10_0x3f0e8c(0x212)]=function(_0x362022){const _0x16d5e0=a10_0x3f0e8c,_0xe8038e={};_0xe8038e[_0x16d5e0(0x140)]=_0x16d5e0(0x186),_0xe8038e['pLWqW']=_0x16d5e0(0x155),_0xe8038e[_0x16d5e0(0x1e6)]=_0x16d5e0(0x1f9),_0xe8038e[_0x16d5e0(0x1e8)]=_0x16d5e0(0x17c),_0xe8038e[_0x16d5e0(0x1d7)]=_0x16d5e0(0x1f6),_0xe8038e[_0x16d5e0(0x204)]=_0x16d5e0(0x1d6),_0xe8038e['tAqhN']=_0x16d5e0(0x22b),_0xe8038e['LAYBw']=_0x16d5e0(0x145);const _0x45bdb6=_0xe8038e,_0x58c600={};_0x58c600[_0x16d5e0(0x1b6)]=_0x45bdb6['rkocY'],_0x58c600[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x10696d={};_0x10696d['description']=_0x45bdb6[_0x16d5e0(0x1e6)],_0x10696d[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x2c0a7a={};_0x2c0a7a[_0x16d5e0(0x1b6)]=_0x45bdb6[_0x16d5e0(0x1e8)],_0x2c0a7a[_0x16d5e0(0x117)]=_0x45bdb6['pLWqW'];const _0x1eeb2b={};_0x1eeb2b[_0x16d5e0(0x1b6)]=_0x45bdb6[_0x16d5e0(0x1d7)],_0x1eeb2b[_0x16d5e0(0x117)]=_0x45bdb6['pLWqW'];const _0x4d8653={};_0x4d8653['description']=_0x45bdb6[_0x16d5e0(0x204)],_0x4d8653[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x56ea53={};_0x56ea53[_0x16d5e0(0x1b6)]=_0x45bdb6['tAqhN'],_0x56ea53[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x24ddf3={};return _0x24ddf3['grid-name']=_0x58c600,_0x24ddf3[_0x16d5e0(0x124)]=_0x10696d,_0x24ddf3[_0x16d5e0(0x1b1)]=_0x2c0a7a,_0x24ddf3[_0x16d5e0(0x1f2)]=_0x1eeb2b,_0x24ddf3[_0x16d5e0(0x179)]=_0x4d8653,_0x24ddf3[_0x16d5e0(0x116)]=_0x56ea53,_0x362022[_0x16d5e0(0x1e4)](HELP_HEADER_MESSAGE['create'])[_0x16d5e0(0x23e)](HELP_FOOTER_MESSAGE)[_0x16d5e0(0x21a)](_0x24ddf3)[_0x16d5e0(0x145)](_0x45bdb6['LAYBw'])['argv'];},exports[a10_0x3f0e8c(0x15f)]=async function(_0x185d9e){const _0x47124c=a10_0x3f0e8c,_0x26f966={'iYOmm':_0x47124c(0x1ff),'gRXet':_0x47124c(0x1fd),'OpzVs':_0x47124c(0x1e0),'DlaZT':_0x47124c(0x14d),'xsaey':_0x47124c(0x16b),'cvXqv':_0x47124c(0x1c0),'qKtbe':_0x47124c(0x186),'tsLxg':'string','mQXtZ':_0x47124c(0x1f9),'SetuS':_0x47124c(0x17c),'huRTq':_0x47124c(0x1f6),'kXKPs':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UvGwT':_0x47124c(0x22b),'VvxCY':_0x47124c(0x145),'iMjHY':function(_0x1aa011){return _0x1aa011();},'quMUQ':function(_0x247f82){return _0x247f82();},'HKXwh':function(_0x512068,_0x2abd61){return _0x512068===_0x2abd61;},'INHOn':_0x47124c(0x144),'ewnsI':_0x47124c(0x197),'rCXge':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HUZym':function(_0x426ade,_0x4ef5e2,_0xbf3d77,_0x41d8d4,_0x46405d,_0xb34bbb,_0x23e0a4){return _0x426ade(_0x4ef5e2,_0xbf3d77,_0x41d8d4,_0x46405d,_0xb34bbb,_0x23e0a4);},'YDZsl':'create-grid-called','NSCwK':'init-not-called','XxDxB':function(_0x1cce6b,_0x1bcc39,_0x3846e8,_0x306921,_0x3904aa,_0x571328,_0x5be4fe){return _0x1cce6b(_0x1bcc39,_0x3846e8,_0x306921,_0x3904aa,_0x571328,_0x5be4fe);},'kFpjK':_0x47124c(0x11e),'pCDZW':'<PasswordPlaceholder>','hoeHI':'Adding\x20Websocket\x20listeners','eGeea':function(_0x34f879,_0x485224){return _0x34f879!==_0x485224;},'tRifL':'KVlmw','NfDta':function(_0x510d02,_0x5e5ba4){return _0x510d02===_0x5e5ba4;},'PXgbQ':'vWpKN','bQocu':_0x47124c(0x208),'vpYCf':_0x47124c(0x1b3),'OjnXz':function(_0x3a06bb,_0x2fe8a7,_0x2e64f3,_0x50dcdb,_0x2fabec,_0xef6055,_0x5d7e32,_0x32c666){return _0x3a06bb(_0x2fe8a7,_0x2e64f3,_0x50dcdb,_0x2fabec,_0xef6055,_0x5d7e32,_0x32c666);},'qgGbv':'prespawned-cluster-args-not-passed','rwHfq':function(_0x456e10,_0x14fcac){return _0x456e10===_0x14fcac;},'wroNv':'uWkYd','yidti':_0x47124c(0x1a1),'xutqQ':function(_0x38e0f5,_0x1b3799,_0x306075,_0x2dfc44,_0x25fe79,_0x3403f1,_0x52288c,_0x3716aa){return _0x38e0f5(_0x1b3799,_0x306075,_0x2dfc44,_0x25fe79,_0x3403f1,_0x52288c,_0x3716aa);},'KvghQ':_0x47124c(0x172),'FZPKq':'true','oRfGg':function(_0x5670cd,_0x5c2279){return _0x5670cd===_0x5c2279;},'YnLbP':_0x47124c(0x1bd),'CEgpY':function(_0x39f0b6,_0x59e0df){return _0x39f0b6===_0x59e0df;},'nGdUz':_0x47124c(0x16e),'DlChs':_0x47124c(0x1d1),'NGgrf':function(_0x37cab8,_0x425d96){return _0x37cab8(_0x425d96);},'CymjU':function(_0x9026ec,_0x27f8a2){return _0x9026ec===_0x27f8a2;},'SkDUf':function(_0xda60a3,_0x1e23b0){return _0xda60a3===_0x1e23b0;},'DNpzB':_0x47124c(0x21e),'OMeJY':_0x47124c(0x221),'WVFCR':'create-grid-checks-null-response','WaoJO':function(_0x1b91a8,_0x44dd3f){return _0x1b91a8===_0x44dd3f;},'JPGkD':_0x47124c(0x1b5),'eCsCb':_0x47124c(0x1bf),'iUziD':_0x47124c(0x160),'OtQDO':function(_0x3029a6,_0x4257b8){return _0x3029a6!==_0x4257b8;},'XhNQu':'yGiaK','PsuGS':_0x47124c(0x128),'iDslv':_0x47124c(0x190),'ksSEV':'Grid\x20profile\x20fetched\x20from\x20backend','KpCeZ':function(_0x59b2db,_0x265839){return _0x59b2db!==_0x265839;},'BmpUy':_0x47124c(0x18e),'ZViff':_0x47124c(0x15a),'TMRhm':function(_0x537085,_0x26e550,_0x408d51,_0x522e39,_0x22d61c,_0x19556c,_0x2204f2,_0x25cf23){return _0x537085(_0x26e550,_0x408d51,_0x522e39,_0x22d61c,_0x19556c,_0x2204f2,_0x25cf23);},'oVNGn':_0x47124c(0x12a),'FCGCx':_0x47124c(0x11f),'xWinD':'meNTN','fSlGC':function(_0x46385f,_0x5cfa6e){return _0x46385f===_0x5cfa6e;},'KOuYn':function(_0xc1cfdf,_0x4227f5){return _0xc1cfdf===_0x4227f5;},'mpgIU':_0x47124c(0x194),'peiNj':_0x47124c(0x16f),'lvnDg':_0x47124c(0x134),'fJySH':'OLTRb','UMNdm':_0x47124c(0x1d0),'ybEBt':function(_0x2a04d8,_0x4730c2,_0x43a857,_0x19ff73,_0x1bb3c4,_0x3d083b,_0x18b61e,_0x13f796){return _0x2a04d8(_0x4730c2,_0x43a857,_0x19ff73,_0x1bb3c4,_0x3d083b,_0x18b61e,_0x13f796);},'RnmPD':_0x47124c(0x13e),'PxmxB':function(_0x411794,_0x2cbd4d){return _0x411794===_0x2cbd4d;},'TokcX':'icTYt','dqjqq':_0x47124c(0x20d),'hPJJu':'tdwxX','Sxthc':function(_0x135718,_0xac3382,_0x40c714,_0x581b82,_0x458b00,_0x319869,_0x4a9950,_0x1bfdac,_0x1f657f,_0x24437a,_0x493b19,_0xb8798a){return _0x135718(_0xac3382,_0x40c714,_0x581b82,_0x458b00,_0x319869,_0x4a9950,_0x1bfdac,_0x1f657f,_0x24437a,_0x493b19,_0xb8798a);},'fXvJX':_0x47124c(0x1b4),'psgnL':function(_0x5aeeda,_0x1164bf,_0x4c53fc,_0x4ae2aa,_0x5f2a16,_0x432d59){return _0x5aeeda(_0x1164bf,_0x4c53fc,_0x4ae2aa,_0x5f2a16,_0x432d59);},'QLOMq':_0x47124c(0x133),'SFltA':function(_0x95a52a,_0x63197b){return _0x95a52a===_0x63197b;},'fCxjC':function(_0x536ed3,_0xae91fd,_0xf48bb8,_0x296ee4){return _0x536ed3(_0xae91fd,_0xf48bb8,_0x296ee4);},'YvgVb':_0x47124c(0x1d2),'GUSfF':_0x47124c(0x1c9),'ptylf':function(_0x5a66db,_0x1913cf){return _0x5a66db===_0x1913cf;},'qLCtB':_0x47124c(0x1d4),'TeLMJ':function(_0x51e79b,_0x1a28dd){return _0x51e79b!=_0x1a28dd;},'sxglv':function(_0x4d5321,_0xd0201c){return _0x4d5321!==_0xd0201c;},'skBiP':function(_0x13b5a8,_0x513699){return _0x13b5a8>_0x513699;},'wyVcs':function(_0x47d330,_0xa40086){return _0x47d330===_0xa40086;},'TwUoK':_0x47124c(0x198),'WkCvU':function(_0x5c0b45,_0x531ca1,_0x20e7f2,_0x347f32,_0x2b74e0,_0x1d2795,_0xf53de1,_0x3aaf94){return _0x5c0b45(_0x531ca1,_0x20e7f2,_0x347f32,_0x2b74e0,_0x1d2795,_0xf53de1,_0x3aaf94);},'Kxjbm':_0x47124c(0x184),'wAieD':_0x47124c(0x164),'cTVGO':_0x47124c(0x202),'wYTbR':'pre-spawned-invalid-subnets','XumuH':_0x47124c(0x233),'SigQM':_0x47124c(0x126),'syFqK':_0x47124c(0x154),'IsGvi':function(_0x4bc130,_0x580029){return _0x4bc130(_0x580029);},'dpYLp':function(_0x483f87,_0x102105){return _0x483f87===_0x102105;},'ISMMf':function(_0x126d69,_0x5c0a00){return _0x126d69==_0x5c0a00;},'hfsmf':function(_0x6d3830,_0x17ad6c){return _0x6d3830(_0x17ad6c);},'ygUao':_0x47124c(0x115),'cVjwk':_0x47124c(0x210),'HlQdQ':_0x47124c(0x173),'tTxKZ':_0x47124c(0x123),'Rbdba':_0x47124c(0x119),'Wenud':_0x47124c(0x178),'vGkgE':_0x47124c(0x19c),'qTLaD':function(_0x5b2979,_0x5f1d65,_0x498304,_0xc3ff00,_0xa5c945,_0x14b17c,_0x29a2c1,_0x5af384,_0x79f29b,_0xc907e3,_0x51eaf6){return _0x5b2979(_0x5f1d65,_0x498304,_0xc3ff00,_0xa5c945,_0x14b17c,_0x29a2c1,_0x5af384,_0x79f29b,_0xc907e3,_0x51eaf6);},'wygtv':_0x47124c(0x21f),'ibsbk':_0x47124c(0x1e5),'jLzDT':function(_0x1aa069,_0x1fd528,_0x152359){return _0x1aa069(_0x1fd528,_0x152359);},'coZGc':_0x47124c(0x1d5),'PxaJP':_0x47124c(0x19b),'XuOdN':'ingress-nginx','HKSdM':function(_0x4dd5ac,_0x111e12){return _0x4dd5ac==_0x111e12;},'MjGtN':_0x47124c(0x181),'yqHDF':'get-grid-url-null-response','VTKCF':_0x47124c(0x200),'QUuZo':function(_0x14cd4b,_0x184e7e,_0x40eaac,_0x5d50f4,_0x5c54b0,_0x2a68f5,_0x2744da,_0x42aeb1){return _0x14cd4b(_0x184e7e,_0x40eaac,_0x5d50f4,_0x5c54b0,_0x2a68f5,_0x2744da,_0x42aeb1);},'wMFpk':'get-grid-url-auth-failed','cIwve':function(_0x2b9e55,_0x3c9a7c){return _0x2b9e55!==_0x3c9a7c;},'SiFDV':'get-grid-url-non-200','mNAlF':function(_0x3df24e,_0x1aa412,_0x3edecb,_0x161ebe,_0x494e19,_0x1b7768){return _0x3df24e(_0x1aa412,_0x3edecb,_0x161ebe,_0x494e19,_0x1b7768);},'quzOX':_0x47124c(0x1fb)};let _0x536463=![],_0x4e6822,_0x53f1fb,_0x505ec3,_0x42d50f,_0x383a12,_0x46f58d,_0x2d5700,_0x3737fa,_0x134530,_0x24545e,_0x53ce91,_0x21eeee,_0x3cce2f=0x1,_0x258696=0xe;try{global_registry[_0x47124c(0x17b)]=_0x26f966['iMjHY'](uuidv4),global_registry[_0x47124c(0x1e3)]=![];!fs[_0x47124c(0x125)](_0x26f966[_0x47124c(0x174)](getCredentialsPath))&&(_0x26f966[_0x47124c(0x1dd)](_0x26f966[_0x47124c(0x191)],_0x26f966[_0x47124c(0x216)])?_0x311843[_0x47124c(0x22d)](_0x47124c(0x12c)+_0x2dc10f+'\x20'):(console['error'](_0x26f966[_0x47124c(0x199)]),await _0x26f966['HUZym'](sendInstrumentationEvent,_0x185d9e,_0x26f966[_0x47124c(0x1cc)],messageTypes[_0x47124c(0x14a)],_0x26f966['NSCwK'],null,_0x185d9e),process[_0x47124c(0x232)](0x1)));await _0x26f966['XxDxB'](sendInstrumentationEvent,_0x185d9e,_0x26f966[_0x47124c(0x1cc)],messageTypes[_0x47124c(0x159)],null,null,_0x185d9e);const _0x15ab25=JSON[_0x47124c(0x215)](fs[_0x47124c(0x168)](_0x26f966['iMjHY'](getCredentialsPath)));global_registry[_0x47124c(0x16c)]=_0x15ab25[_0x47124c(0x173)]['username'],global_registry[_0x47124c(0x245)]=_0x15ab25[_0x47124c(0x173)][_0x47124c(0x220)];const _0x61edfa=WS_ENDPOINT[_0x47124c(0x211)](_0x26f966[_0x47124c(0x20e)],_0x15ab25['Browserstack'][_0x47124c(0x1ce)])['replace'](_0x26f966[_0x47124c(0x246)],_0x15ab25[_0x47124c(0x173)][_0x47124c(0x220)]),_0xc51246={};_0xc51246['WebSocket']=ws,_0xc51246[_0x47124c(0x22a)]=0x36ee80,_0x24545e=new ReconnectingWebSocket(_0x61edfa,[],_0xc51246),logger[_0x47124c(0x1a4)](_0x26f966[_0x47124c(0x248)]),webSocketUtils['addListeners'](_0x24545e,_0x185d9e[_0x47124c(0x1c8)],_0x185d9e[_0x47124c(0x220)]);let _0x38bfef=DEFAULT_GRID_NAME;if(_0x185d9e[_0x47124c(0x15b)]||_0x185d9e['cloudProvider']||_0x185d9e['region']){if(_0x26f966[_0x47124c(0x11d)](_0x26f966[_0x47124c(0x1b0)],_0x26f966['tRifL']))_0x5789f1=_0x57c511[_0x47124c(0x1fa)],_0x5d06f7=_0x26f966[_0x47124c(0x1da)];else{!(_0x185d9e[_0x47124c(0x15b)]&&_0x185d9e[_0x47124c(0x192)]&&_0x185d9e[_0x47124c(0x179)])&&(_0x26f966[_0x47124c(0x132)](_0x26f966['PXgbQ'],_0x26f966[_0x47124c(0x243)])?_0x465092[_0x47124c(0x1e3)]=!![]:(_0x4e6822=_0x26f966[_0x47124c(0x209)],await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x13f)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1)));![AWS,AZURE,GCP][_0x47124c(0x1c7)](_0x185d9e['cloudProvider'][_0x47124c(0x1dc)]())&&(_0x26f966[_0x47124c(0x1ea)](_0x26f966[_0x47124c(0x23a)],_0x26f966[_0x47124c(0x23a)])?(_0x4e6822=_0x26f966[_0x47124c(0x1be)],await _0x26f966['xutqQ'](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966['KvghQ'],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1)):_0x51f36c=_0x19f6af[_0xbfe32b[_0x47124c(0x1c2)]]);if(_0x185d9e[_0x47124c(0x237)]&&_0x26f966[_0x47124c(0x1ea)](_0x185d9e['privateGrid'][_0x47124c(0x1dc)](),_0x26f966[_0x47124c(0x1ba)])){if(_0x26f966[_0x47124c(0x15d)](_0x26f966[_0x47124c(0x226)],_0x26f966[_0x47124c(0x226)]))global_registry[_0x47124c(0x1e3)]=!![];else{const _0x3dc84a={};_0x3dc84a['type']=_0x56b58f[_0x47124c(0x1ed)],_0x3dc84a[_0x47124c(0x12b)]=_0x47124c(0x16a)+_0x29a036+_0x47124c(0x1a8),_0x53f503['sendEventToBackend'](_0x534476,_0x3dc84a,_0x26f966[_0x47124c(0x244)]),_0x269e91[_0x47124c(0x22d)](_0x47124c(0x16a)+_0x479b09+_0x47124c(0x1a8)),_0x6a8593=!![];}}_0x536463=!![],_0x505ec3=_0x185d9e[_0x47124c(0x15b)],_0x53f1fb=_0x185d9e['cloudProvider'][_0x47124c(0x1dc)](),_0x42d50f=_0x185d9e[_0x47124c(0x179)];}}if(_0x185d9e[_0x47124c(0x1a5)]){if(_0x26f966[_0x47124c(0x188)](_0x26f966[_0x47124c(0x139)],_0x26f966['nGdUz']))_0x38bfef=_0x185d9e[_0x47124c(0x1a5)];else throw _0x444246;}global_registry[_0x47124c(0x1a5)]=_0x38bfef;const _0x262d1b={};_0x262d1b[_0x47124c(0x1ce)]=_0x15ab25[_0x47124c(0x173)][_0x47124c(0x1ce)],_0x262d1b[_0x47124c(0x220)]=_0x15ab25['Browserstack']['password'];const _0x2c5bf0={};_0x2c5bf0[_0x47124c(0x158)]=_0x26f966[_0x47124c(0x235)],_0x2c5bf0[_0x47124c(0x153)]=_0x262d1b;const _0x452295=_0x2c5bf0,_0x54a22a=_0x47124c(0x1f7)+AG_API_URL+_0x47124c(0x1bb),_0x2f141b={};_0x2f141b[_0x47124c(0x1a5)]=_0x38bfef;const _0x5356d9={'url':_0x54a22a,'qs':_0x2f141b,..._0x452295},_0x43ea03=_0x5356d9,_0x3561a7=await _0x26f966[_0x47124c(0x1c3)](promisifiedRequest,_0x43ea03);(_0x26f966['CymjU'](_0x3561a7,null)||_0x26f966[_0x47124c(0x1b7)](_0x3561a7,undefined))&&(_0x26f966[_0x47124c(0x11d)](_0x26f966[_0x47124c(0x203)],_0x26f966['DNpzB'])?(_0x418dd0[_0x47124c(0x14d)](_0x26f966[_0x47124c(0x141)]),_0x158368[_0x47124c(0x232)](0x1)):(_0x4e6822=_0x26f966[_0x47124c(0x236)],await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966['YDZsl'],_0x26f966[_0x47124c(0x175)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1)));_0x26f966[_0x47124c(0x146)](_0x3561a7[_0x47124c(0x13c)],0x191)&&(_0x26f966[_0x47124c(0x11d)](_0x26f966['JPGkD'],_0x26f966[_0x47124c(0x156)])?_0x2656b1['cloudProvider']={}:(_0x4e6822=_0x26f966[_0x47124c(0x1cd)],await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x24b)],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1)));_0x26f966['OtQDO'](_0x3561a7[_0x47124c(0x13c)],0xc8)&&(_0x26f966[_0x47124c(0x157)](_0x26f966['XhNQu'],_0x26f966[_0x47124c(0x20c)])?(_0x4e6822=_0x47124c(0x14b)+JSON[_0x47124c(0x114)](_0x3561a7),await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966['YDZsl'],_0x26f966['iDslv'],_0x26f966[_0x47124c(0x127)]),logger['error'](_0x4e6822),process[_0x47124c(0x232)](0x1)):_0x398788[_0x47124c(0x22d)](_0x47124c(0x1eb)+_0x5cf56d[_0x47124c(0x114)](_0x1c354c)+'\x20'));const _0x495b98=JSON[_0x47124c(0x215)](_0x3561a7['body']),_0x4f5959={};_0x4f5959[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1b2)],_0x4f5959[_0x47124c(0x12b)]=_0x47124c(0x1e7),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x4f5959);const _0x482c92={};_0x482c92[_0x47124c(0x117)]=WS_EVENTS['LOG'],_0x482c92[_0x47124c(0x12b)]=_0x26f966[_0x47124c(0x1cf)],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x482c92);if(_0x495b98[_0x47124c(0x167)]){if(_0x26f966['KpCeZ'](_0x26f966[_0x47124c(0x137)],_0x26f966[_0x47124c(0x137)])){const _0x480dd9={};_0x480dd9[_0x47124c(0x117)]=_0x5f1f69[_0x47124c(0x1ed)],_0x480dd9[_0x47124c(0x12b)]=_0x2d9cbd,_0x207879[_0x47124c(0x1ae)](_0x54fba1,_0x480dd9,_0x26f966['DlaZT'],!![]);}else _0x4e6822=_0x26f966[_0x47124c(0x15e)],await _0x26f966[_0x47124c(0x147)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x247)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1);}const _0x538366=_0x495b98[_0x47124c(0x1f8)];let _0x35a325=_0x538366[_0x495b98[_0x47124c(0x1fc)]];_0x185d9e[_0x47124c(0x1c2)]&&(_0x26f966['KpCeZ'](_0x26f966[_0x47124c(0x20f)],_0x26f966[_0x47124c(0x122)])?_0x35a325=_0x538366[_0x185d9e['gridProfile']]:_0x19e508=_0x26f966[_0x47124c(0x12e)]);if(_0x26f966[_0x47124c(0x1aa)](_0x536463,![])){if(_0x26f966[_0x47124c(0x196)](_0x26f966[_0x47124c(0x143)],_0x26f966['peiNj']))_0x592b41=_0xeae389[_0x47124c(0x1a5)];else{if(_0x26f966[_0x47124c(0x1dd)](_0x35a325,undefined)){if(_0x26f966['OtQDO'](_0x26f966[_0x47124c(0x1cb)],_0x26f966[_0x47124c(0x150)]))_0x4e6822=_0x26f966[_0x47124c(0x24c)],await _0x26f966[_0x47124c(0x225)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966['YDZsl'],_0x26f966['RnmPD'],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1);else{const _0x59daca=_0x26f966[_0x47124c(0x1af)][_0x47124c(0x1e9)]('|');let _0xd106f5=0x0;while(!![]){switch(_0x59daca[_0xd106f5++]){case'0':_0x20a6ec[_0x47124c(0x22d)](_0x590b76);continue;case'1':_0x330e82['clusterName']=_0x3bc79f;continue;case'2':_0x39e1c3['clusterRegion']=_0x4133e9;continue;case'3':_0x2149d7[_0x47124c(0x192)]=_0xac0305;continue;case'4':_0x275e1d[_0x47124c(0x1d8)]=_0x554769['hubVersion'];continue;case'5':_0x393c5d[_0x47124c(0x231)]=_0x312bd2[_0x47124c(0x231)];continue;case'6':const _0x31ae22={};_0x31ae22[_0x47124c(0x117)]=_0x20e759['LOG'],_0x31ae22[_0x47124c(0x12b)]=_0x481040,_0x16e28e['sendEventToBackend'](_0x1d5620,_0x31ae22);continue;case'7':const _0x122e66={};_0x122e66[_0x47124c(0x117)]=_0x5d5c0c[_0x47124c(0x1b2)],_0x122e66[_0x47124c(0x12b)]=_0x47124c(0x1e7),_0x4b62d6['sendEventToBackend'](_0x4f7664,_0x122e66);continue;case'8':_0x4a43c6=_0x47124c(0x20a)+_0x1ee586+_0x47124c(0x1c1)+_0x1b6025+'\x27';continue;}break;}}}global_registry['gridProfileId']=_0x35a325['id'];if(_0x26f966[_0x47124c(0x227)](_0x53f1fb,AZURE)||_0x26f966[_0x47124c(0x132)](_0x35a325?.[_0x47124c(0x192)],AZURE)){if(_0x26f966[_0x47124c(0x132)](_0x26f966[_0x47124c(0x1ab)],_0x26f966[_0x47124c(0x234)])){const _0x445991={};_0x445991['description']=_0x26f966[_0x47124c(0x18c)],_0x445991[_0x47124c(0x117)]=_0x26f966[_0x47124c(0x19d)];const _0x1a7269={};_0x1a7269[_0x47124c(0x1b6)]=_0x26f966[_0x47124c(0x1d3)],_0x1a7269['type']=_0x26f966[_0x47124c(0x19d)];const _0x42bd96={};_0x42bd96['description']=_0x26f966[_0x47124c(0x1ca)],_0x42bd96['type']=_0x26f966[_0x47124c(0x19d)];const _0x223659={};_0x223659[_0x47124c(0x1b6)]=_0x26f966[_0x47124c(0x161)],_0x223659[_0x47124c(0x117)]=_0x26f966[_0x47124c(0x19d)];const _0x2bef4c={};_0x2bef4c[_0x47124c(0x1b6)]=_0x26f966['kXKPs'],_0x2bef4c[_0x47124c(0x117)]=_0x26f966['tsLxg'];const _0x469772={};_0x469772[_0x47124c(0x1b6)]=_0x26f966['UvGwT'],_0x469772[_0x47124c(0x117)]=_0x26f966['tsLxg'];const _0x426a6d={};return _0x426a6d[_0x47124c(0x20b)]=_0x445991,_0x426a6d[_0x47124c(0x124)]=_0x1a7269,_0x426a6d['cluster-name']=_0x42bd96,_0x426a6d[_0x47124c(0x1f2)]=_0x223659,_0x426a6d[_0x47124c(0x179)]=_0x2bef4c,_0x426a6d[_0x47124c(0x116)]=_0x469772,_0x591f44['usage'](_0x47467d[_0x47124c(0x1f3)])['epilogue'](_0x2bf5a4)[_0x47124c(0x21a)](_0x426a6d)['help'](_0x26f966[_0x47124c(0x151)])[_0x47124c(0x214)];}else console[_0x47124c(0x14d)](_0x26f966[_0x47124c(0x141)]),process[_0x47124c(0x232)](0x1);}_0x4e6822=_0x47124c(0x12f)+_0x38bfef+_0x47124c(0x23f)+_0x35a325[_0x47124c(0x205)]+_0x47124c(0x189),logger[_0x47124c(0x22d)](_0x4e6822);const _0xf98a72={};_0xf98a72['type']=WS_EVENTS[_0x47124c(0x1ed)],_0xf98a72['message']=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0xf98a72),_0x53f1fb=_0x35a325[_0x47124c(0x192)],_0x505ec3=_0x35a325[_0x47124c(0x15b)],_0x42d50f=_0x35a325[_0x47124c(0x179)],_0x383a12=_0x35a325[_0x47124c(0x1ef)],_0x46f58d=_0x35a325[_0x47124c(0x13a)],_0x2d5700=_0x35a325['vpc'],securityGroups=_0x35a325[_0x47124c(0x171)],subnets=_0x35a325[_0x47124c(0x17d)],_0x3737fa=_0x35a325['s3bucket'],_0x3cce2f=_0x35a325['minNodes'],_0x258696=_0x35a325[_0x47124c(0x23d)],_0x53ce91=_0x495b98['hubVersion'],_0x21eeee=_0x495b98[_0x47124c(0x231)],_0x26f966[_0x47124c(0x11a)](_0x35a325[_0x47124c(0x237)],undefined)&&_0x35a325['privateGrid']&&(_0x26f966[_0x47124c(0x11a)](_0x26f966[_0x47124c(0x187)],_0x26f966['hPJJu'])?_0x35225f[_0x47124c(0x1e3)]=!![]:global_registry[_0x47124c(0x1e3)]=!![]),_0x26f966[_0x47124c(0x23b)](updateGlobalRegistryWithConfig,_0x53f1fb,_0x505ec3,_0x42d50f,_0x383a12,_0x46f58d,_0x3737fa,_0x35a325,_0x53ce91,_0x21eeee,_0x3cce2f,_0x258696);}}else{const _0x2f7662=_0x26f966[_0x47124c(0x240)][_0x47124c(0x1e9)]('|');let _0x4b91fe=0x0;while(!![]){switch(_0x2f7662[_0x4b91fe++]){case'0':global_registry[_0x47124c(0x192)]=_0x53f1fb;continue;case'1':global_registry[_0x47124c(0x1d8)]=_0x495b98[_0x47124c(0x1d8)];continue;case'2':const _0x3de625={};_0x3de625[_0x47124c(0x117)]=WS_EVENTS['LOG'],_0x3de625[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x3de625);continue;case'3':global_registry[_0x47124c(0x22e)]=_0x42d50f;continue;case'4':global_registry['clusterName']=_0x505ec3;continue;case'5':const _0x2195e7={};_0x2195e7[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1b2)],_0x2195e7['message']=_0x47124c(0x1e7),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x2195e7);continue;case'6':global_registry['browserVersion']=_0x495b98[_0x47124c(0x231)];continue;case'7':logger['info'](_0x4e6822);continue;case'8':_0x4e6822='Spawning\x20the\x20grid\x20'+_0x38bfef+'\x20in\x20existing\x20cluster\x20\x27'+_0x505ec3+'\x27';continue;}break;}}const _0x1638f7=_0x26f966[_0x47124c(0x195)](getCloudProviderObject,_0x53f1fb,_0x505ec3,_0x38bfef,_0x24545e,webSocketUtils),_0x4128cc=_0x15ab25[_0x47124c(0x192)]||{};if(_0x26f966[_0x47124c(0x15d)](_0x4128cc[_0x53f1fb],undefined)){logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x138)]);_0x26f966[_0x47124c(0x182)](_0x15ab25['cloudProvider'],undefined)&&(_0x15ab25['cloudProvider']={});_0x15ab25[_0x47124c(0x192)][_0x53f1fb]={};const _0x2bdea3=await _0x26f966[_0x47124c(0x129)](inputCloudProviderKeys,_0x53f1fb,_0x15ab25,_0x1638f7);fs[_0x47124c(0x229)](_0x26f966['quMUQ'](getCredentialsPath),JSON[_0x47124c(0x114)](_0x2bdea3)),logger[_0x47124c(0x1a4)](_0x26f966[_0x47124c(0x1f1)]);}else{_0x4e6822=_0x26f966['GUSfF'];const _0xa0e848={};_0xa0e848[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0xa0e848[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0xa0e848),logger['info'](_0x4e6822),await _0x1638f7[_0x47124c(0x121)](_0x4128cc);}_0x1638f7[_0x47124c(0x18d)]();let _0x2b3a9f;if(_0x26f966[_0x47124c(0x152)](_0x536463,![])){_0x4e6822=_0x47124c(0x13d)+_0x42d50f+').';const _0x49ef63={};_0x49ef63[_0x47124c(0x117)]=WS_EVENTS['LOG'],_0x49ef63[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x49ef63),logger['info'](_0x4e6822);const _0xd866ee=await _0x1638f7['isClusterPresent']();if(_0xd866ee){const _0x596906={};_0x596906[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x596906[_0x47124c(0x12b)]='Cluster\x20'+_0x505ec3+_0x47124c(0x1a8),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x596906,_0x26f966[_0x47124c(0x244)]),logger[_0x47124c(0x22d)](_0x47124c(0x16a)+_0x505ec3+_0x47124c(0x1a8)),_0x536463=!![];}else{const _0x36f76d={};_0x36f76d[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x36f76d[_0x47124c(0x12b)]=_0x26f966['qLCtB'],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x36f76d),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x118)]);const _0x30e26e=_0x26f966[_0x47124c(0x15c)](_0x2d5700,null)&&_0x26f966[_0x47124c(0x11d)](_0x2d5700,undefined),_0x55ea45=_0x26f966[_0x47124c(0x15c)](subnets,null)&&_0x26f966[_0x47124c(0x1bc)](subnets,undefined)&&_0x26f966[_0x47124c(0x142)](subnets[_0x47124c(0x21c)],0x0);if(_0x30e26e){_0x26f966['wyVcs'](_0x55ea45,![])&&(_0x4e6822=_0x26f966[_0x47124c(0x1d9)],await _0x26f966[_0x47124c(0x136)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x217)],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1));const _0x38e1a4=await _0x1638f7[_0x47124c(0x1c4)](_0x2d5700);_0x26f966[_0x47124c(0x1b7)](_0x38e1a4,![])?(_0x4e6822=_0x26f966[_0x47124c(0x18f)],await _0x26f966[_0x47124c(0x147)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x1c5)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1)):logger[_0x47124c(0x22d)]('Found\x20VPC:\x20'+_0x2d5700+'\x20');const _0x112670=await _0x1638f7[_0x47124c(0x21b)](subnets,_0x2d5700);_0x26f966[_0x47124c(0x1a2)](_0x112670[0x0],![])?(_0x4e6822='Subnets:\x20'+_0x112670[0x1]+_0x47124c(0x183)+_0x2d5700+_0x47124c(0x238),await _0x26f966[_0x47124c(0x225)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966['wYTbR'],_0x26f966[_0x47124c(0x127)]),logger['error'](_0x4e6822),process[_0x47124c(0x232)](0x1)):logger[_0x47124c(0x22d)](_0x47124c(0x1eb)+JSON[_0x47124c(0x114)](subnets)+'\x20'),await _0x1638f7[_0x47124c(0x13b)](_0x2d5700,subnets);}else{const _0x15b2ec=_0x26f966[_0x47124c(0x213)][_0x47124c(0x1e9)]('|');let _0x3c058e=0x0;while(!![]){switch(_0x15b2ec[_0x3c058e++]){case'0':logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x219)]);continue;case'1':const _0xbd7861={};_0xbd7861[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0xbd7861[_0x47124c(0x12b)]=_0x47124c(0x126),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0xbd7861);continue;case'2':logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x14c)]);continue;case'3':await _0x1638f7[_0x47124c(0x13b)]();continue;case'4':const _0x24ddef={};_0x24ddef['type']=WS_EVENTS['LOG'],_0x24ddef['message']=_0x26f966['syFqK'],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x24ddef);continue;}break;}}}}_0x536463&&_0x26f966[_0x47124c(0x188)](_0x53f1fb,AZURE)&&(global_registry[_0x47124c(0x1ac)]=_0x495b98['s3BucketName'],await _0x1638f7[_0x47124c(0x18a)](),await _0x1638f7[_0x47124c(0x24a)]());const [_0x130614,_0x3b7dd3,_0x20ec92,_0x57bfa3,_0x1408be,_0x3db274]=await _0x26f966['IsGvi'](createK8sClient,_0x1638f7);_0x26f966['dpYLp'](_0x536463,![])&&_0x26f966['ISMMf'](_0x53f1fb,AWS)&&(_0x2b3a9f=await _0x1638f7['setupAutoscaler'](_0x130614,_0x185d9e));try{_0x134530=_0x26f966[_0x47124c(0x113)](kebabCase,_0x38bfef),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x1de)]);const _0x5db1e5={};_0x5db1e5[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x5db1e5['message']=_0x26f966[_0x47124c(0x1de)],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x5db1e5);if(_0x26f966[_0x47124c(0x1bc)](_0x134530,_0x26f966[_0x47124c(0x17a)])){const _0x38ebdb={};_0x38ebdb[_0x47124c(0x1c6)]=_0x26f966[_0x47124c(0x206)],_0x38ebdb[_0x47124c(0x193)]=_0x26f966[_0x47124c(0x206)];const _0x21965a={};_0x21965a[_0x47124c(0x205)]=_0x134530,_0x21965a[_0x47124c(0x165)]=_0x38ebdb;const _0x4f05b2={};_0x4f05b2[_0x47124c(0x21d)]=_0x21965a;let _0x49197a=_0x4f05b2;await _0x130614[_0x47124c(0x11c)](_0x49197a),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x14e)]);}const _0x5189ce={};_0x5189ce[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x5189ce[_0x47124c(0x12b)]=_0x26f966[_0x47124c(0x180)],webSocketUtils['sendEventToBackend'](_0x24545e,_0x5189ce);const _0x1eaeaf={};_0x1eaeaf[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x1eaeaf[_0x47124c(0x12b)]=_0x26f966[_0x47124c(0x207)],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x1eaeaf),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x1f5)]);let _0x948527={};_0x26f966[_0x47124c(0x1ea)](_0x53f1fb,AZURE)&&(_0x948527={'clientId':await _0x1638f7[_0x47124c(0x230)](_0x47124c(0x170)+_0x505ec3)});await _0x26f966[_0x47124c(0x1b9)](addGridComponents,_0x130614,_0x3b7dd3,_0x20ec92,_0x57bfa3,_0x134530,_0x505ec3,_0x2b3a9f,_0x1408be,_0x3db274,_0x948527),_0x4e6822=_0x26f966[_0x47124c(0x130)],logger[_0x47124c(0x22d)](_0x4e6822);const _0x368daa={};_0x368daa['type']=WS_EVENTS[_0x47124c(0x1ed)],_0x368daa['message']=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x368daa),_0x4e6822=_0x26f966['ibsbk'],logger[_0x47124c(0x22d)](_0x4e6822);const _0x3e429b={};_0x3e429b[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x3e429b[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0x3e429b),await webSocketUtils['delay'](0xea60);const _0x2cf00a=await _0x26f966[_0x47124c(0x1ad)](getNamespaceUID,_0x130614,_0x134530);let _0x3b77c5=global_registry[_0x47124c(0x1e3)]?_0x26f966[_0x47124c(0x228)]:_0x26f966[_0x47124c(0x131)],_0x593620=await _0x130614[_0x47124c(0x17e)](_0x3b77c5,_0x26f966[_0x47124c(0x1a3)]),_0x226b28=_0x1638f7['getGridHostname'](_0x593620)+'/'+_0x134530,_0x2f6147=_0x26f966[_0x47124c(0x12e)];try{const _0x131b9d={'url':_0x47124c(0x1f7)+AG_API_URL+_0x47124c(0x12d)+_0x2cf00a,..._0x452295},_0xefda4a=_0x131b9d,_0x2fc4a4=await _0x26f966[_0x47124c(0x1fe)](promisifiedRequest,_0xefda4a);(_0x26f966[_0x47124c(0x241)](_0x2fc4a4,null)||_0x26f966[_0x47124c(0x222)](_0x2fc4a4,undefined))&&(_0x4e6822=_0x26f966['MjGtN'],await _0x26f966['TMRhm'](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966['yqHDF'],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1));_0x26f966['PxmxB'](_0x2fc4a4[_0x47124c(0x13c)],0x191)&&(_0x4e6822=_0x26f966[_0x47124c(0x1df)],await _0x26f966[_0x47124c(0x163)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x19f)],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1));_0x26f966[_0x47124c(0x23c)](_0x2fc4a4[_0x47124c(0x13c)],0xc8)&&(_0x4e6822='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x47124c(0x114)](_0x2fc4a4),await _0x26f966[_0x47124c(0x136)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966['YDZsl'],_0x26f966['SiFDV'],_0x26f966[_0x47124c(0x127)]),logger['error'](_0x4e6822),process[_0x47124c(0x232)](0x1));const _0x4c38e7=JSON[_0x47124c(0x215)](_0x2fc4a4[_0x47124c(0x14f)]);_0x4c38e7[_0x47124c(0x1fa)]&&(_0x226b28=_0x4c38e7[_0x47124c(0x1fa)],_0x2f6147=_0x26f966[_0x47124c(0x1da)]),global_registry['isPrivateGrid']&&(_0x2f6147=_0x26f966['xsaey']);}catch(_0x5dc81b){}_0x4e6822=_0x47124c(0x218)+_0x226b28+'\x20',logger[_0x47124c(0x22d)](_0x4e6822);const _0x42f27f={};_0x42f27f['type']=WS_EVENTS[_0x47124c(0x1ed)],_0x42f27f[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0x42f27f),_0x4e6822=_0x47124c(0x1f0)+_0x2f6147+'://'+_0x226b28+_0x47124c(0x1f4),logger[_0x47124c(0x22d)](_0x4e6822);const _0x4e024c={};_0x4e024c[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x4e024c[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x4e024c);const _0x321296={};_0x321296[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1e1)],_0x321296[_0x47124c(0x12b)]=_0x47124c(0x223)+_0x226b28,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x321296),await webSocketUtils[_0x47124c(0x224)](0x7d0);}catch(_0x296646){if(_0x26f966[_0x47124c(0x15d)](_0x536463,![]))try{logger[_0x47124c(0x22d)](_0x47124c(0x22f)),await _0x26f966[_0x47124c(0x242)](removeGridComponents,_0x130614,_0x3b7dd3,_0x20ec92,_0x57bfa3,_0x134530),await _0x1638f7[_0x47124c(0x19a)](_0x130614,global_registry[_0x47124c(0x22e)]);}catch(_0xf0ac2d){throw _0xf0ac2d;}throw _0x296646;}}catch(_0x63a4f9){const _0x5e6f17=_0x47124c(0x17f)+_0x63a4f9+'\x20\x0a'+JSON[_0x47124c(0x114)](_0x63a4f9)+'\x20';if(_0x24545e){const _0x12b46c={};_0x12b46c['type']=WS_EVENTS[_0x47124c(0x1ed)],_0x12b46c[_0x47124c(0x12b)]=_0x5e6f17,webSocketUtils['sendEventToBackend'](_0x24545e,_0x12b46c,_0x26f966[_0x47124c(0x127)],!![]);}await webSocketUtils[_0x47124c(0x224)](0x7d0);const _0x5a0cc4={};_0x5a0cc4['error']=_0x5e6f17,await _0x26f966[_0x47124c(0x1a7)](sendInstrumentationEvent,_0x185d9e,_0x26f966[_0x47124c(0x1cc)],messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x177)],_0x5a0cc4,_0x185d9e),logger[_0x47124c(0x14d)](_0x5e6f17);}process[_0x47124c(0x232)](0x0);};
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 +1 @@
1
- const a11_0x351809=a11_0x4360;function a11_0x354a(){const _0x591c76=['demandCommand','command','43772cpnXzT','167354nIhQVh','6UgKXdp','builder','124155SAcLmo','handler','usage','sSRAO','366489uQzoZY','epilogue','delete_commands','16zfdTZQ','pICol','strict','2442727JRqOWC','delete','commandDir','help','1014448fRdngT','recommendCommands','1019097hSUBFH','List\x20Grid\x20resources.','../config/constants'];a11_0x354a=function(){return _0x591c76;};return a11_0x354a();}(function(_0x345b5e,_0x2ebcb1){const _0x292c62=a11_0x4360,_0x4ae34a=_0x345b5e();while(!![]){try{const _0x931bc9=-parseInt(_0x292c62(0x7b))/0x1+parseInt(_0x292c62(0x7c))/0x2+parseInt(_0x292c62(0x76))/0x3+parseInt(_0x292c62(0x74))/0x4+-parseInt(_0x292c62(0x7f))/0x5+-parseInt(_0x292c62(0x7d))/0x6*(parseInt(_0x292c62(0x70))/0x7)+-parseInt(_0x292c62(0x6d))/0x8*(parseInt(_0x292c62(0x6a))/0x9);if(_0x931bc9===_0x2ebcb1)break;else _0x4ae34a['push'](_0x4ae34a['shift']());}catch(_0x227588){_0x4ae34a['push'](_0x4ae34a['shift']());}}}(a11_0x354a,0x2b73e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x351809(0x78));function a11_0x4360(_0x3dd0a3,_0x5c2867){const _0x354a20=a11_0x354a();return a11_0x4360=function(_0x436082,_0x33ae69){_0x436082=_0x436082-0x68;let _0x5a9bdb=_0x354a20[_0x436082];return _0x5a9bdb;},a11_0x4360(_0x3dd0a3,_0x5c2867);}exports[a11_0x351809(0x7a)]=a11_0x351809(0x71),exports['desc']=a11_0x351809(0x77),exports[a11_0x351809(0x7e)]=function(_0x7e78d4){const _0xe8341d=a11_0x351809,_0x2c54d6={};_0x2c54d6[_0xe8341d(0x69)]=_0xe8341d(0x6c),_0x2c54d6[_0xe8341d(0x6e)]=_0xe8341d(0x73);const _0x88bd2f=_0x2c54d6;return _0x7e78d4[_0xe8341d(0x68)](HELP_HEADER_MESSAGE['delete'])[_0xe8341d(0x6b)](HELP_FOOTER_MESSAGE)[_0xe8341d(0x72)](_0x88bd2f['sSRAO'])[_0xe8341d(0x79)]()[_0xe8341d(0x75)]()[_0xe8341d(0x6f)]()[_0xe8341d(0x73)](_0x88bd2f[_0xe8341d(0x6e)]);},exports[a11_0x351809(0x80)]=function(_0x2c78c4){};
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 +1 @@
1
- const a12_0x3faab4=a12_0x2ee8;(function(_0x5d9d3c,_0x5ecb5a){const _0x2c579d=a12_0x2ee8,_0x4b7f8e=_0x5d9d3c();while(!![]){try{const _0x41585b=parseInt(_0x2c579d(0x166))/0x1*(-parseInt(_0x2c579d(0x161))/0x2)+-parseInt(_0x2c579d(0x192))/0x3*(parseInt(_0x2c579d(0x160))/0x4)+parseInt(_0x2c579d(0x188))/0x5*(parseInt(_0x2c579d(0x1d3))/0x6)+-parseInt(_0x2c579d(0x185))/0x7+-parseInt(_0x2c579d(0x16b))/0x8+-parseInt(_0x2c579d(0x1a7))/0x9+-parseInt(_0x2c579d(0x170))/0xa*(-parseInt(_0x2c579d(0x183))/0xb);if(_0x41585b===_0x5ecb5a)break;else _0x4b7f8e['push'](_0x4b7f8e['shift']());}catch(_0x5f01ce){_0x4b7f8e['push'](_0x4b7f8e['shift']());}}}(a12_0x1edc,0x57e5a));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0x3faab4(0x189)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x3faab4(0x171)),{logger}=require(a12_0x3faab4(0x194)),{getCloudProviderObject}=require(a12_0x3faab4(0x159)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a12_0x3faab4(0x1d6)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x3faab4(0x191)),{createK8sClient}=require(a12_0x3faab4(0x1b3)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x3faab4(0x1ce)),promisifiedRequest=util['promisify'](request);exports[a12_0x3faab4(0x164)]=a12_0x3faab4(0x1ac),exports[a12_0x3faab4(0x195)]=a12_0x3faab4(0x187),exports['builder']=function(_0x40521b){const _0x203571=a12_0x3faab4,_0x49de28={};_0x49de28[_0x203571(0x175)]=_0x203571(0x158),_0x49de28[_0x203571(0x1c7)]=_0x203571(0x1c6),_0x49de28[_0x203571(0x1a8)]=_0x203571(0x1cb);const _0x2f4c55=_0x49de28,_0x1a644a={};_0x1a644a[_0x203571(0x1b2)]=_0x2f4c55[_0x203571(0x175)],_0x1a644a[_0x203571(0x1b8)]=_0x2f4c55[_0x203571(0x1c7)];const _0x33d9e3={};return _0x33d9e3['grid-id']=_0x1a644a,_0x40521b[_0x203571(0x173)](HELP_HEADER_MESSAGE[_0x203571(0x168)])[_0x203571(0x196)](HELP_FOOTER_MESSAGE)[_0x203571(0x165)](_0x33d9e3)[_0x203571(0x1cb)](_0x2f4c55[_0x203571(0x1a8)])[_0x203571(0x16c)];},exports['handler']=async function(_0x33d901){const _0x4ced53=a12_0x3faab4,_0x32a16b={'IqoIL':_0x4ced53(0x1e2),'BABOc':_0x4ced53(0x158),'zZMCZ':'string','BcfJk':_0x4ced53(0x1cb),'OWrOe':function(_0x4aa32b){return _0x4aa32b();},'EPwEH':function(_0x47b072,_0x5ba77a){return _0x47b072===_0x5ba77a;},'ReUjD':_0x4ced53(0x1dd),'GEwwv':_0x4ced53(0x1b0),'YDSuh':function(_0x1bba0b,_0xc4cde6,_0x2bcd3b,_0x184f3d,_0xb36548,_0x3e49e1,_0x2b2032){return _0x1bba0b(_0xc4cde6,_0x2bcd3b,_0x184f3d,_0xb36548,_0x3e49e1,_0x2b2032);},'LeXlJ':'delete-grid-called','DksVw':_0x4ced53(0x186),'CNKrX':function(_0x25f358,_0x55cf13){return _0x25f358!==_0x55cf13;},'jMqwE':_0x4ced53(0x182),'EZbof':function(_0x18ebae){return _0x18ebae();},'NrfAm':function(_0x18b834,_0x439ff2,_0x4a6d8a,_0x488c2b){return _0x18b834(_0x439ff2,_0x4a6d8a,_0x488c2b);},'ibqgI':_0x4ced53(0x167),'SwDBA':_0x4ced53(0x17c),'hbRAf':_0x4ced53(0x1c8),'Nuhyj':function(_0x25b5eb,_0x79b7a7){return _0x25b5eb(_0x79b7a7);},'WlmPN':function(_0x15c1a0,_0x39bd0a){return _0x15c1a0===_0x39bd0a;},'JhsOg':function(_0x2b68c3,_0x302d5){return _0x2b68c3===_0x302d5;},'RWmDk':_0x4ced53(0x174),'ketlf':'dsVkv','loZZw':_0x4ced53(0x19f),'fjQqO':_0x4ced53(0x1ae),'WXERi':function(_0x20faf9,_0xef67ba){return _0x20faf9!==_0xef67ba;},'kOxhq':'kMnZJ','EakdM':function(_0x1f8882,_0x21f552,_0x24a8e7,_0x4514ea){return _0x1f8882(_0x21f552,_0x24a8e7,_0x4514ea);},'JOlhu':function(_0x39fa02,_0x335429){return _0x39fa02===_0x335429;},'NxGSz':_0x4ced53(0x15e),'lrWXb':_0x4ced53(0x1b1),'KfICq':_0x4ced53(0x190),'kJKLJ':_0x4ced53(0x1d1),'rmwsH':_0x4ced53(0x1ba),'HYYPZ':_0x4ced53(0x1e4),'EFnEk':_0x4ced53(0x16f),'varHC':function(_0x216dcc,_0x3c104b,_0x1929a5,_0x141c84,_0x1940cd,_0x5e8cd8){return _0x216dcc(_0x3c104b,_0x1929a5,_0x141c84,_0x1940cd,_0x5e8cd8);},'JulgC':'DELETE','tLDkV':function(_0x11d3d1,_0x5854a2){return _0x11d3d1(_0x5854a2);},'EdlsF':function(_0x1a2f43,_0x1e8a69){return _0x1a2f43!==_0x1e8a69;},'iNcpf':function(_0x47734c,_0x486f76){return _0x47734c===_0x486f76;},'GykEP':_0x4ced53(0x15b),'fleeU':function(_0x1133de,_0x42d88c,_0x5ff2de,_0x1e3e5e,_0x2c97b3,_0x15ba3a,_0x48267d){return _0x1133de(_0x42d88c,_0x5ff2de,_0x1e3e5e,_0x2c97b3,_0x15ba3a,_0x48267d);},'MAhKS':_0x4ced53(0x1de),'DkKnf':function(_0x33c5da,_0x219f30,_0x2976c0,_0x46e26a,_0xfdd2,_0x34ee6c,_0x12c26d){return _0x33c5da(_0x219f30,_0x2976c0,_0x46e26a,_0xfdd2,_0x34ee6c,_0x12c26d);},'YOHrh':_0x4ced53(0x1af),'DcgzE':'unknown-error'};try{global_registry[_0x4ced53(0x16a)]=_0x32a16b['OWrOe'](uuidv4);!fs[_0x4ced53(0x1d8)](_0x32a16b['OWrOe'](getCredentialsPath))&&(_0x32a16b['EPwEH'](_0x32a16b['ReUjD'],_0x32a16b[_0x4ced53(0x179)])?(console['error'](_0x32a16b[_0x4ced53(0x1df)]),await _0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b['DksVw'],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)):_0x2cef20['warn']('Cluster:\x20'+_0x59459f['clusterName']+_0x4ced53(0x169)));_0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b['LeXlJ'],messageTypes[_0x4ced53(0x18e)],null,null,_0x33d901);!_0x33d901[_0x4ced53(0x19a)]&&(_0x32a16b[_0x4ced53(0x18d)](_0x32a16b[_0x4ced53(0x1e0)],_0x32a16b[_0x4ced53(0x1e0)])?_0x323178=_0x4ced53(0x17d)+_0x5d15e8['name']+'\x22\x20and\x20ID\x20'+_0x5e5927['id']+_0x4ced53(0x1e3)+_0xc2cc56[_0x4ced53(0x15d)]+_0x4ced53(0x1a5)+_0x27d4bf[_0x4ced53(0x1a6)]+_0x4ced53(0x1b5):(console[_0x4ced53(0x19b)](_0x32a16b[_0x4ced53(0x1be)]),process[_0x4ced53(0x1a0)](0x1)));const _0x5b9fa9=JSON[_0x4ced53(0x18f)](fs[_0x4ced53(0x1a2)](_0x32a16b[_0x4ced53(0x1a1)](getCredentialsPath))),[_0x39853a,_0x27ba3d]=await _0x32a16b[_0x4ced53(0x17e)](getGridDetails,_0x5b9fa9['Browserstack'][_0x4ced53(0x198)],_0x5b9fa9[_0x4ced53(0x167)][_0x4ced53(0x172)],_0x33d901[_0x4ced53(0x19a)]);if(_0x27ba3d){const _0x5f6e1=_0x27ba3d[_0x4ced53(0x1e6)];let _0x42bfa5=_0x4ced53(0x17d)+_0x5f6e1[_0x4ced53(0x176)]+'\x22\x20and\x20ID\x20'+_0x5f6e1['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x592e69;_0x27ba3d[_0x4ced53(0x1a9)]&&_0x32a16b[_0x4ced53(0x1aa)](_0x27ba3d[_0x4ced53(0x1dc)],_0x32a16b[_0x4ced53(0x1e1)])&&(_0x32a16b[_0x4ced53(0x1aa)](_0x32a16b[_0x4ced53(0x1c9)],_0x32a16b[_0x4ced53(0x1c5)])?(_0xfacd45[_0x4ced53(0x1e6)](_0x4ced53(0x17f)),_0x301567['exit'](0x0)):_0x42bfa5=_0x4ced53(0x17d)+_0x5f6e1[_0x4ced53(0x176)]+_0x4ced53(0x1cf)+_0x5f6e1['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x5f6e1['clusterName']+_0x4ced53(0x1a5)+_0x5f6e1[_0x4ced53(0x1a6)]+_0x4ced53(0x1b5));_0x592e69=await _0x32a16b[_0x4ced53(0x18b)](inputConfirmation,_0x42bfa5);(_0x32a16b[_0x4ced53(0x1aa)](_0x592e69,undefined)||_0x32a16b[_0x4ced53(0x1aa)](_0x592e69,null)||!(_0x32a16b[_0x4ced53(0x18a)](_0x592e69[_0x4ced53(0x181)](),'y')||_0x32a16b['EPwEH'](_0x592e69[_0x4ced53(0x181)](),'n')))&&(_0x32a16b[_0x4ced53(0x16e)](_0x32a16b[_0x4ced53(0x1cd)],_0x32a16b[_0x4ced53(0x1c4)])?(_0x840447[_0x4ced53(0x19b)](_0x32a16b[_0x4ced53(0x1be)]),_0x556db4['exit'](0x1)):(console[_0x4ced53(0x19b)](_0x32a16b[_0x4ced53(0x17b)]),await _0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x178)],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)));if(_0x32a16b[_0x4ced53(0x18a)](_0x592e69[_0x4ced53(0x181)](),'n')){if(_0x32a16b[_0x4ced53(0x19e)](_0x32a16b[_0x4ced53(0x19d)],_0x32a16b[_0x4ced53(0x19d)])){const _0x461e75={};_0x461e75['description']=_0x32a16b[_0x4ced53(0x197)],_0x461e75[_0x4ced53(0x1b8)]=_0x32a16b['zZMCZ'];const _0x4d4e15={};return _0x4d4e15[_0x4ced53(0x1d9)]=_0x461e75,_0x5b8675[_0x4ced53(0x173)](_0x449f35[_0x4ced53(0x168)])[_0x4ced53(0x196)](_0x81566f)[_0x4ced53(0x165)](_0x4d4e15)[_0x4ced53(0x1cb)](_0x32a16b[_0x4ced53(0x184)])[_0x4ced53(0x16c)];}else process['exit'](0x0);}global_registry[_0x4ced53(0x1e5)]=_0x5f6e1['region'];const _0x550f58=_0x5f6e1[_0x4ced53(0x1d5)],_0x912d38=_0x32a16b['EakdM'](getCloudProviderObject,_0x550f58,_0x5f6e1[_0x4ced53(0x15d)],_0x5f6e1['name']),_0x273950=_0x5b9fa9['cloudProvider'];if(_0x32a16b[_0x4ced53(0x16e)](_0x273950[_0x550f58],undefined)){if(_0x32a16b['JOlhu'](_0x32a16b[_0x4ced53(0x1e7)],_0x32a16b[_0x4ced53(0x1a3)]))_0x2a6909[_0x4ced53(0x1d5)]={};else{logger[_0x4ced53(0x1e6)](_0x32a16b[_0x4ced53(0x1ad)]);_0x32a16b['WlmPN'](_0x5b9fa9['cloudProvider'],undefined)&&(_0x32a16b[_0x4ced53(0x1aa)](_0x32a16b[_0x4ced53(0x1bf)],_0x32a16b[_0x4ced53(0x1c2)])?_0xbe90d8['exit'](0x0):_0x5b9fa9['cloudProvider']={});_0x5b9fa9[_0x4ced53(0x1d5)][_0x550f58]={};const _0x3afe70=await _0x32a16b[_0x4ced53(0x193)](inputCloudProviderKeys,_0x550f58,_0x5b9fa9,_0x912d38);fs[_0x4ced53(0x1c0)](_0x32a16b[_0x4ced53(0x1bc)](getCredentialsPath),JSON['stringify'](_0x3afe70)),logger[_0x4ced53(0x1bb)](_0x32a16b['HYYPZ']);}}else logger[_0x4ced53(0x1e6)](_0x32a16b[_0x4ced53(0x1d2)]),await _0x912d38[_0x4ced53(0x199)](_0x273950);_0x912d38['configureIfNotConfigured']();const _0x423fc8=_0x32a16b[_0x4ced53(0x18b)](kebabCase,_0x5f6e1[_0x4ced53(0x176)]),[_0x2a1f06,_0x5690c3,_0x2ab967,_0x4461b7,_0x32dd7d,_0x18389a]=await _0x32a16b[_0x4ced53(0x18b)](createK8sClient,_0x912d38);await _0x32a16b[_0x4ced53(0x1c1)](removeGridComponents,_0x2a1f06,_0x5690c3,_0x2ab967,_0x4461b7,_0x423fc8);if(_0x27ba3d[_0x4ced53(0x1a9)]){const _0x3f0363=await _0x912d38['isBrowserstackCluster']();_0x3f0363?await _0x912d38[_0x4ced53(0x1db)](_0x2a1f06,_0x5f6e1[_0x4ced53(0x1cc)]):logger[_0x4ced53(0x162)](_0x4ced53(0x1a4)+_0x5f6e1[_0x4ced53(0x15d)]+_0x4ced53(0x169));}const _0x4ca625=_0x4ced53(0x1b4)+AG_API_URL+_0x4ced53(0x1e9)+_0x33d901['gridId'],_0x2f27b9={};_0x2f27b9[_0x4ced53(0x198)]=_0x5b9fa9[_0x4ced53(0x167)][_0x4ced53(0x198)],_0x2f27b9[_0x4ced53(0x172)]=_0x5b9fa9[_0x4ced53(0x167)][_0x4ced53(0x172)];const _0x3b8950={};_0x3b8950[_0x4ced53(0x177)]=_0x4ca625,_0x3b8950['method']=_0x32a16b[_0x4ced53(0x1c3)],_0x3b8950[_0x4ced53(0x163)]=_0x2f27b9;const _0x9eb7ec=_0x3b8950,_0x5f5b28=await _0x32a16b[_0x4ced53(0x1b9)](promisifiedRequest,_0x9eb7ec);_0x32a16b[_0x4ced53(0x19e)](_0x5f5b28,null)&&_0x32a16b[_0x4ced53(0x16d)](_0x5f5b28,undefined)&&_0x32a16b[_0x4ced53(0x17a)](_0x5f5b28[_0x4ced53(0x1b6)],0xc8)&&(logger[_0x4ced53(0x1e6)]('Succesfully\x20deleted\x20the\x20grid'),process['exit'](0x0)),logger[_0x4ced53(0x19b)](_0x4ced53(0x1d0)+JSON[_0x4ced53(0x19c)](_0x5f5b28)),await _0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x1b7)],_0x39853a,_0x33d901),process[_0x4ced53(0x1a0)](0x1);}_0x32a16b[_0x4ced53(0x17a)](_0x39853a[_0x4ced53(0x1b6)],0x191)&&(logger[_0x4ced53(0x19b)](_0x4ced53(0x1d4)),await _0x32a16b[_0x4ced53(0x15f)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x15c)],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)),_0x32a16b[_0x4ced53(0x18a)](_0x39853a[_0x4ced53(0x1b6)],0x190)&&(logger['error'](JSON[_0x4ced53(0x18f)](_0x39853a[_0x4ced53(0x1bd)])['message']),await _0x32a16b[_0x4ced53(0x1d7)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x1ab)],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)),logger[_0x4ced53(0x19b)](_0x4ced53(0x18c)+JSON[_0x4ced53(0x19c)](_0x39853a)),await _0x32a16b[_0x4ced53(0x15f)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes['ERROR'],_0x32a16b['GykEP'],_0x39853a,_0x33d901),process[_0x4ced53(0x1a0)](0x1);}catch(_0x45247a){logger['error'](_0x4ced53(0x1e8)+_0x45247a[_0x4ced53(0x1da)]),await _0x32a16b[_0x4ced53(0x1d7)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b['DcgzE'],_0x45247a,_0x33d901),process[_0x4ced53(0x1a0)](0x1);}};function a12_0x2ee8(_0x49b4ae,_0x418f77){const _0x1edc0e=a12_0x1edc();return a12_0x2ee8=function(_0x2ee89f,_0x2ebf01){_0x2ee89f=_0x2ee89f-0x158;let _0x386ead=_0x1edc0e[_0x2ee89f];return _0x386ead;},a12_0x2ee8(_0x49b4ae,_0x418f77);}function a12_0x1edc(){const _0x4ed361=['\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','requestId','5639312DkLTtJ','argv','EdlsF','JhsOg','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','30auXPBK','../../config/constants','password','usage','pIZnU','kdURG','name','url','fjQqO','ReUjD','iNcpf','loZZw','HPXkm','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','NrfAm','Succesfully\x20deleted\x20the\x20grid','ERROR','toLowerCase','OaBcY','7078060renska','BcfJk','4135607nhLPFZ','init-not-called','Delete\x20an\x20Automation\x20grid.','1865XzSHDL','uuid','WlmPN','Nuhyj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','CNKrX','INFO','parse','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../../utils/userInput','833649jJAzTM','EakdM','../../config/logger','desc','epilogue','BABOc','username','fetchLocalCreds','gridId','error','stringify','kOxhq','WXERi','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','exit','EZbof','readFileSync','lrWXb','Cluster:\x20','\x22\x20with\x20ID\x20','clusterId','4545963rOFcXr','tjMDZ','onlyGridInCluster','EPwEH','YOHrh','grid','KfICq','invalid-input','invalid-grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lSwCG','description','../../utils/createk8sClient','https://','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','statusCode','GykEP','type','tLDkV','PSBrs','debug','OWrOe','body','IqoIL','kJKLJ','writeFileSync','varHC','rmwsH','JulgC','ketlf','hbRAf','string','xCqVM','NWSAm','SwDBA','LeXlJ','help','region','RWmDk','../../utils/utilityMethods','\x22\x20and\x20ID\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','GzMjG','EFnEk','10452CSLWXp','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','../../utils/instrumentationUtils','DkKnf','existsSync','grid-id','stack','deleteCluster','clusterSpawnedVia','YKROe','unauthorised','GEwwv','jMqwE','ibqgI','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','clusterRegion','info','NxGSz','Failed\x20to\x20delete\x20resources!\x20Error:\x20','/packages/cli/grid/','Pass\x20the\x20ID\x20of\x20the\x20Grid','../../cloudproviders/utils','YDSuh','server-error','MAhKS','clusterName','JSLMY','fleeU','4ZQTAHa','56566ATtLsv','warn','auth','command','options','5CNFsjk','Browserstack','delete'];a12_0x1edc=function(){return _0x4ed361;};return a12_0x1edc();}
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 +1 @@
1
- const a13_0x219d7a=a13_0x3425;function a13_0x4a8e(){const _0x5e6396=['stringify','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','acULn','rxnkg','request','argv','INFO','xjvSb','nOKMb','recommendCommands','username','MjrfO','NZPzC','string','bstackUsername','MuiOj','mkdirSync','MSdyS','desc','password','BROWSERSTACK_ACCESS_KEY','dftiG','type','400266KZeNWH','pMXWo','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','NRTfE','options','command','TGnrT','BROWSERSTACK_USERNAME','statusCode','VvtMe','wHyWZ','url','xIvQx','../config/constants','VGOKw','help','pvEXx','existsSync','5WDaBzB','epilogue','TtSwI','LNSDJ','zalkU','env','3ggeTDu','piOSG','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','parse','laMUe','91230DplnWt','SOqAm','readFileSync','ZLZhq','1092560DtuPar','GTZmM','gwrcu','error','../utils/instrumentationUtils','description','nMliX','init','dbvEZ','dAtIp','Browserstack','zTemL','builder','821676hMqnNY','/automate/plan.json','bBgQU','sonoq','sZxgX','rhHMv','KMqdD','bstackAccesskey','423801lxTDKS','bstack-accesskey','handler','FhqND','jLvZo','KqnUH','init-called','rbDFu','PZnEc','uuid','fymea','strict','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','eNbvU','usage','uPRJn','GET','../utils/utilityMethods','OJUey','wrong-creds','https://','promisify','exit','LkqID','debug','1347262DOakYD','stack','ZQjqB','writeFileSync','150852hrJjqH'];a13_0x4a8e=function(){return _0x5e6396;};return a13_0x4a8e();}(function(_0x3a64b2,_0x2496b3){const _0x57c9b2=a13_0x3425,_0x42e783=_0x3a64b2();while(!![]){try{const _0x30a4c7=-parseInt(_0x57c9b2(0x1aa))/0x1*(parseInt(_0x57c9b2(0x1af))/0x2)+-parseInt(_0x57c9b2(0x1c8))/0x3+-parseInt(_0x57c9b2(0x17a))/0x4+parseInt(_0x57c9b2(0x1a4))/0x5*(parseInt(_0x57c9b2(0x1c0))/0x6)+parseInt(_0x57c9b2(0x176))/0x7+parseInt(_0x57c9b2(0x1b3))/0x8+-parseInt(_0x57c9b2(0x192))/0x9;if(_0x30a4c7===_0x2496b3)break;else _0x42e783['push'](_0x42e783['shift']());}catch(_0x50a349){_0x42e783['push'](_0x42e783['shift']());}}}(a13_0x4a8e,0x19cd3));const fs=require('fs'),util=require('util'),request=require(a13_0x219d7a(0x17f)),{v4:uuidv4}=require(a13_0x219d7a(0x1d1)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x219d7a(0x19f)),{getDirForConfig,getCredentialsPath}=require(a13_0x219d7a(0x16e)),{sendInstrumentationEvent}=require(a13_0x219d7a(0x1b7)),promisifiedRequest=util[a13_0x219d7a(0x172)](request);function a13_0x3425(_0x1936de,_0x4c0fa8){const _0x4a8e2b=a13_0x4a8e();return a13_0x3425=function(_0x342566,_0x509aac){_0x342566=_0x342566-0x16a;let _0x3e29f1=_0x4a8e2b[_0x342566];return _0x3e29f1;},a13_0x3425(_0x1936de,_0x4c0fa8);}exports[a13_0x219d7a(0x197)]=a13_0x219d7a(0x1ba),exports[a13_0x219d7a(0x18d)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a13_0x219d7a(0x1bf)]=function(_0x5de67f){const _0x41b8e7=a13_0x219d7a,_0x2ae0a7={};_0x2ae0a7[_0x41b8e7(0x174)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2ae0a7['xIvQx']=_0x41b8e7(0x188),_0x2ae0a7[_0x41b8e7(0x1b0)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2ae0a7[_0x41b8e7(0x1a7)]=_0x41b8e7(0x1a1);const _0x132325=_0x2ae0a7,_0x24eceb={};_0x24eceb[_0x41b8e7(0x1b8)]=_0x132325[_0x41b8e7(0x174)],_0x24eceb[_0x41b8e7(0x191)]=_0x132325[_0x41b8e7(0x19e)];const _0x3ad5e9={};_0x3ad5e9[_0x41b8e7(0x1b8)]=_0x132325[_0x41b8e7(0x1b0)],_0x3ad5e9[_0x41b8e7(0x191)]=_0x132325[_0x41b8e7(0x19e)];const _0x275ce7={};return _0x275ce7['bstack-username']=_0x24eceb,_0x275ce7[_0x41b8e7(0x1c9)]=_0x3ad5e9,_0x5de67f[_0x41b8e7(0x16b)](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x41b8e7(0x196)](_0x275ce7)[_0x41b8e7(0x184)]()[_0x41b8e7(0x1d3)]()[_0x41b8e7(0x1a1)](_0x132325['LNSDJ'])['argv'];},exports[a13_0x219d7a(0x1ca)]=async function(_0x3c1ac9){const _0x189627=a13_0x219d7a,_0x25d347={'xjvSb':function(_0x10efdb){return _0x10efdb();},'MSdyS':'utf-8','dbvEZ':_0x189627(0x1d4),'jLvZo':_0x189627(0x188),'MjrfO':_0x189627(0x1ac),'uPRJn':'help','VGOKw':function(_0x281579,_0xc19e74,_0x400632,_0x1d8e62,_0x105177,_0x5e663e,_0x41be8a){return _0x281579(_0xc19e74,_0x400632,_0x1d8e62,_0x105177,_0x5e663e,_0x41be8a);},'PZnEc':_0x189627(0x1ce),'ZLZhq':function(_0x3b8cf4,_0x2fdc73){return _0x3b8cf4!==_0x2fdc73;},'NZPzC':_0x189627(0x190),'nMliX':_0x189627(0x17e),'gwrcu':_0x189627(0x18a),'dAtIp':_0x189627(0x183),'piOSG':function(_0x592848,_0x483483){return _0x592848===_0x483483;},'pvEXx':_0x189627(0x1cb),'laMUe':_0x189627(0x1d2),'KMqdD':_0x189627(0x195),'bBgQU':function(_0x58408e,_0x170999){return _0x58408e===_0x170999;},'wHyWZ':function(_0x2fb3b1,_0x1de514){return _0x2fb3b1===_0x1de514;},'TGnrT':_0x189627(0x19b),'ZQjqB':'odxUl','hPKkI':_0x189627(0x194),'zTemL':function(_0x2f54f3){return _0x2f54f3();},'UjsGA':_0x189627(0x16d),'eNbvU':function(_0x470bd1,_0x1519b6){return _0x470bd1(_0x1519b6);},'sZxgX':function(_0x440c31,_0xb9be5c){return _0x440c31!==_0xb9be5c;},'mjLDX':function(_0x536732,_0x998750){return _0x536732!==_0x998750;},'UwNoU':function(_0x2496bc,_0x49d970){return _0x2496bc===_0x49d970;},'KqnUH':'EEjEO','GTZmM':function(_0x4294f5,_0x41505f){return _0x4294f5!==_0x41505f;},'rhHMv':_0x189627(0x1cf),'sonoq':_0x189627(0x1a6),'acULn':function(_0x5298c7,_0x598741){return _0x5298c7!==_0x598741;},'OJUey':'tVzBN','pMXWo':_0x189627(0x17c),'zalkU':_0x189627(0x170),'rTzJs':'unknown-error'};try{global_registry['requestId']=_0x25d347[_0x189627(0x182)](uuidv4),_0x25d347[_0x189627(0x1a0)](sendInstrumentationEvent,_0x3c1ac9,_0x25d347[_0x189627(0x1d0)],messageTypes[_0x189627(0x181)],null,null,_0x3c1ac9);const _0x381cdc=_0x25d347['xjvSb'](getDirForConfig);if(!fs[_0x189627(0x1a3)](_0x381cdc)){if(_0x25d347[_0x189627(0x1b2)](_0x25d347[_0x189627(0x187)],_0x25d347[_0x189627(0x187)])){let _0x71e441={};const _0x407794=_0x25d347[_0x189627(0x182)](_0x55f1c5);_0x11b0dc[_0x189627(0x1a3)](_0x407794)&&(_0x71e441=_0x5cba4e[_0x189627(0x1ad)](_0x5a725b[_0x189627(0x1b1)](_0x407794,_0x25d347[_0x189627(0x18c)])));const _0x5188b6={};_0x5188b6['username']=_0x63c96,_0x5188b6[_0x189627(0x18e)]=_0x85b2d8,_0x71e441[_0x189627(0x1bd)]=_0x5188b6,_0x32a60a[_0x189627(0x179)](_0x407794,_0x3264ba[_0x189627(0x17b)](_0x71e441)),_0x72ac94[_0x189627(0x173)](0x0);}else fs[_0x189627(0x18b)](_0x381cdc);}let _0x3de9f2,_0x3eab7d;process[_0x189627(0x1a9)][_0x189627(0x199)]&&(_0x25d347['ZLZhq'](_0x25d347[_0x189627(0x1b9)],_0x25d347['nMliX'])?_0x5f48b8=!![]:_0x3de9f2=process[_0x189627(0x1a9)][_0x189627(0x199)]);process[_0x189627(0x1a9)][_0x189627(0x18f)]&&(_0x25d347[_0x189627(0x1b2)](_0x25d347[_0x189627(0x1b5)],_0x25d347[_0x189627(0x1bc)])?_0x3eab7d=process[_0x189627(0x1a9)][_0x189627(0x18f)]:_0x4d8c9a[_0x189627(0x18b)](_0x5f0e04));_0x3c1ac9[_0x189627(0x189)]&&(_0x25d347[_0x189627(0x1ab)](_0x25d347[_0x189627(0x1a2)],_0x25d347[_0x189627(0x1ae)])?_0xe105b0=_0x5a01e6[_0x189627(0x1a9)][_0x189627(0x199)]:_0x3de9f2=_0x3c1ac9[_0x189627(0x189)]);if(_0x3c1ac9[_0x189627(0x1c7)]){if(_0x25d347[_0x189627(0x1ab)](_0x25d347[_0x189627(0x1c6)],_0x25d347['KMqdD']))_0x3eab7d=_0x3c1ac9[_0x189627(0x1c7)];else{const _0x56bc77={};_0x56bc77['description']=_0x25d347[_0x189627(0x1bb)],_0x56bc77[_0x189627(0x191)]=_0x25d347[_0x189627(0x1cc)];const _0x27f2a4={};_0x27f2a4['description']=_0x25d347[_0x189627(0x186)],_0x27f2a4[_0x189627(0x191)]=_0x25d347['jLvZo'];const _0x4a94e7={};return _0x4a94e7['bstack-username']=_0x56bc77,_0x4a94e7[_0x189627(0x1c9)]=_0x27f2a4,_0x1e04a5[_0x189627(0x16b)](_0x216744[_0x189627(0x1ba)])[_0x189627(0x1a5)](_0x1c8a1c)['options'](_0x4a94e7)[_0x189627(0x184)]()['strict']()[_0x189627(0x1a1)](_0x25d347[_0x189627(0x16c)])[_0x189627(0x180)];}}if(_0x25d347[_0x189627(0x1c2)](_0x3de9f2,undefined)||_0x25d347['wHyWZ'](_0x3eab7d,undefined)){if(_0x25d347[_0x189627(0x19c)](_0x25d347[_0x189627(0x198)],_0x25d347[_0x189627(0x178)]))_0x270a00=_0x4abc37[_0x189627(0x1a9)][_0x189627(0x18f)];else{logger[_0x189627(0x175)](_0x25d347['hPKkI']);const [_0x3a0a81,_0x516f8c]=await _0x25d347[_0x189627(0x1be)](inputBstackKeys);_0x3de9f2=_0x3a0a81,_0x3eab7d=_0x516f8c;}}let _0x4e0b16=![];const _0x2fdd96={};_0x2fdd96[_0x189627(0x19d)]=_0x189627(0x171)+_0x3de9f2+':'+_0x3eab7d+'@'+BS_API_URL+_0x189627(0x1c1),_0x2fdd96['method']=_0x25d347['UjsGA'];const _0x4e8b00=_0x2fdd96,_0x1f6d14=await _0x25d347[_0x189627(0x16a)](promisifiedRequest,_0x4e8b00);_0x25d347[_0x189627(0x1c4)](_0x1f6d14,null)&&_0x25d347['mjLDX'](_0x1f6d14,undefined)&&_0x25d347['UwNoU'](_0x1f6d14[_0x189627(0x19a)],0xc8)&&(_0x25d347[_0x189627(0x1c2)](_0x25d347['KqnUH'],_0x25d347[_0x189627(0x1cd)])?_0x4e0b16=!![]:_0x4b749a=_0x4240ef[_0x189627(0x1ad)](_0x66453a['readFileSync'](_0x11937d,_0x25d347[_0x189627(0x18c)])));if(_0x4e0b16){if(_0x25d347[_0x189627(0x1b4)](_0x25d347[_0x189627(0x1c5)],_0x25d347[_0x189627(0x1c3)])){let _0x30ec6b={};const _0xdb797f=_0x25d347[_0x189627(0x182)](getCredentialsPath);fs[_0x189627(0x1a3)](_0xdb797f)&&(_0x25d347[_0x189627(0x17d)](_0x25d347[_0x189627(0x16f)],_0x25d347[_0x189627(0x16f)])?_0x2686cc=_0x5c49c2[_0x189627(0x189)]:_0x30ec6b=JSON[_0x189627(0x1ad)](fs[_0x189627(0x1b1)](_0xdb797f,_0x25d347[_0x189627(0x18c)])));const _0x444e7e={};_0x444e7e[_0x189627(0x185)]=_0x3de9f2,_0x444e7e[_0x189627(0x18e)]=_0x3eab7d,_0x30ec6b['Browserstack']=_0x444e7e,fs[_0x189627(0x179)](_0xdb797f,JSON[_0x189627(0x17b)](_0x30ec6b)),process[_0x189627(0x173)](0x0);}else _0x5881ce=_0x2aa135[_0x189627(0x1c7)];}else logger[_0x189627(0x1b6)](_0x25d347[_0x189627(0x193)]),await _0x25d347[_0x189627(0x1a0)](sendInstrumentationEvent,_0x3c1ac9,_0x25d347[_0x189627(0x1d0)],messageTypes['ERROR'],_0x25d347[_0x189627(0x1a8)],null,_0x3c1ac9),process[_0x189627(0x173)](0x1);}catch(_0x5d2e34){logger['error'](_0x5d2e34[_0x189627(0x177)]),await _0x25d347[_0x189627(0x1a0)](sendInstrumentationEvent,_0x3c1ac9,_0x25d347[_0x189627(0x1d0)],messageTypes['ERROR'],_0x25d347['rTzJs'],_0x5d2e34,_0x3c1ac9),process[_0x189627(0x173)](0x1);}};
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 +1 @@
1
- const a14_0x432028=a14_0x3344;(function(_0x400f03,_0x3c3ceb){const _0x2bdec4=a14_0x3344,_0x70794=_0x400f03();while(!![]){try{const _0x1df05c=-parseInt(_0x2bdec4(0x120))/0x1*(-parseInt(_0x2bdec4(0x128))/0x2)+-parseInt(_0x2bdec4(0x12e))/0x3+parseInt(_0x2bdec4(0x123))/0x4+-parseInt(_0x2bdec4(0x12c))/0x5+parseInt(_0x2bdec4(0x121))/0x6*(-parseInt(_0x2bdec4(0x12a))/0x7)+parseInt(_0x2bdec4(0x129))/0x8*(-parseInt(_0x2bdec4(0x122))/0x9)+parseInt(_0x2bdec4(0x124))/0xa;if(_0x1df05c===_0x3c3ceb)break;else _0x70794['push'](_0x70794['shift']());}catch(_0x80360a){_0x70794['push'](_0x70794['shift']());}}}(a14_0x13c7,0xd83c1));function a14_0x13c7(){const _0x13628c=['5442735YGvnFr','help','1635729DpaJdg','strict','List\x20down\x20the\x20Grid\x20resources.','epilogue','../config/constants','recommendCommands','commandDir','builder','list','1qZunOz','396444qaNEbF','10809540xvRDfw','7045500apKPFS','23275070JtOTKw','mUruE','command','desc','188366lWFoZI','8KSfFLE','49FkEsUa','usage'];a14_0x13c7=function(){return _0x13628c;};return a14_0x13c7();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x432028(0x132));function a14_0x3344(_0x347898,_0xc57155){const _0x13c789=a14_0x13c7();return a14_0x3344=function(_0x33444a,_0x27e1cf){_0x33444a=_0x33444a-0x11f;let _0x13c10b=_0x13c789[_0x33444a];return _0x13c10b;},a14_0x3344(_0x347898,_0xc57155);}exports[a14_0x432028(0x126)]=a14_0x432028(0x11f),exports[a14_0x432028(0x127)]=a14_0x432028(0x130),exports[a14_0x432028(0x135)]=function(_0x3a4161){const _0x47a02f=a14_0x432028,_0x4c4d89={};_0x4c4d89[_0x47a02f(0x125)]='list_commands',_0x4c4d89['PgCiZ']=_0x47a02f(0x12d);const _0xf585dc=_0x4c4d89;return _0x3a4161[_0x47a02f(0x134)](_0xf585dc['mUruE'])['demandCommand']()[_0x47a02f(0x12b)](HELP_HEADER_MESSAGE[_0x47a02f(0x11f)]['root'])[_0x47a02f(0x131)](HELP_FOOTER_MESSAGE)[_0x47a02f(0x133)]()[_0x47a02f(0x12f)]()[_0x47a02f(0x12d)](_0xf585dc['PgCiZ']);},exports['handler']=function(_0xfde8ee){};
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 +1 @@
1
- const a15_0x12919b=a15_0x57a9;function a15_0x9cbd(){const _0x503794=['IaoUg','unknown-error','1893344sCoYPX','1030574jeRlvO','usage','YyHZQ','wJmrT','https://','qCFkZ','requestId','request','password','concurrency','CVBbw','desc','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Browserstack','252VZJSms','exit','log','8VTLEAH','allGridProfiles','region','error','body','11xcpcll','table','/packages/cli/get-grid-profiles','name','PExCE','sKUmw','../../utils/instrumentationUtils','49170GrHxFA','server-error','ONCgW','description','WZaWR','util','GET','CnxcQ','builder','all-grid-profiles','3213711fzQPVW','stack','deVQW','23767170JbVYDD','method','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','GwUsM','1056456UNWSce','push','bstackAccesskey','stringify','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','grid-profiles','ERROR','gbbsJ','epilogue','nJDZw','Failed\x20to\x20list\x20resources!\x20Error:\x20','forEach','handler','VzxVo','15186ylNrzL','list-grid-profiles-called','HfMqG','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','YthDx','cloudProvider','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Lhbxc','1001iHcoVd','help','uuid','grid-profile-name','username','url','parse','/packages/cli/get-all-grid-profiles','cloud-provider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wnSZO','jHrrX','existsSync','llMAZ'];a15_0x9cbd=function(){return _0x503794;};return a15_0x9cbd();}(function(_0x39ade1,_0x3def87){const _0x27cce0=a15_0x57a9,_0x29191d=_0x39ade1();while(!![]){try{const _0x2ddc99=parseInt(_0x27cce0(0x13f))/0x1+parseInt(_0x27cce0(0x13e))/0x2+parseInt(_0x27cce0(0x16e))/0x3+parseInt(_0x27cce0(0x14d))/0x4*(parseInt(_0x27cce0(0x15c))/0x5)+-parseInt(_0x27cce0(0x17c))/0x6*(-parseInt(_0x27cce0(0x185))/0x7)+-parseInt(_0x27cce0(0x150))/0x8*(parseInt(_0x27cce0(0x166))/0x9)+-parseInt(_0x27cce0(0x169))/0xa*(parseInt(_0x27cce0(0x155))/0xb);if(_0x2ddc99===_0x3def87)break;else _0x29191d['push'](_0x29191d['shift']());}catch(_0x2afca1){_0x29191d['push'](_0x29191d['shift']());}}}(a15_0x9cbd,0x8ce35));function a15_0x57a9(_0x302472,_0x1a495b){const _0x9cbdb1=a15_0x9cbd();return a15_0x57a9=function(_0x57a96f,_0x1ebccc){_0x57a96f=_0x57a96f-0x13a;let _0x208b21=_0x9cbdb1[_0x57a96f];return _0x208b21;},a15_0x57a9(_0x302472,_0x1a495b);}const fs=require('fs'),util=require(a15_0x12919b(0x161)),request=require(a15_0x12919b(0x146)),{table}=require(a15_0x12919b(0x156)),{v4:uuidv4}=require(a15_0x12919b(0x187)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x12919b(0x15b)),promisifiedRequest=util['promisify'](request);exports['command']=a15_0x12919b(0x173),exports[a15_0x12919b(0x14a)]=a15_0x12919b(0x17f),exports[a15_0x12919b(0x164)]=function(_0x46e574){const _0x236852=a15_0x12919b,_0x3778f9={};_0x3778f9[_0x236852(0x177)]=_0x236852(0x172),_0x3778f9[_0x236852(0x15a)]='boolean',_0x3778f9[_0x236852(0x168)]='help';const _0x5d6591=_0x3778f9,_0x13e6ae={};_0x13e6ae[_0x236852(0x15f)]=_0x5d6591[_0x236852(0x177)],_0x13e6ae['type']=_0x5d6591['sKUmw'];const _0x33ccda={};return _0x33ccda[_0x236852(0x165)]=_0x13e6ae,_0x46e574[_0x236852(0x140)](HELP_HEADER_MESSAGE[_0x236852(0x182)]['gridProfile'])[_0x236852(0x176)](HELP_FOOTER_MESSAGE)['options'](_0x33ccda)[_0x236852(0x186)](_0x5d6591[_0x236852(0x168)])['argv'];},exports[a15_0x12919b(0x17a)]=async function(_0x56d05a){const _0x4020ed=a15_0x12919b,_0x1fda4a={'HfMqG':function(_0x303126){return _0x303126();},'PExCE':_0x4020ed(0x18e),'qCFkZ':function(_0x28d154,_0x3379de,_0x936588,_0x3fcd4f,_0x305115,_0x5515b9,_0x39c3f8){return _0x28d154(_0x3379de,_0x936588,_0x3fcd4f,_0x305115,_0x5515b9,_0x39c3f8);},'ONCgW':_0x4020ed(0x17d),'CVBbw':_0x4020ed(0x16c),'Lhbxc':_0x4020ed(0x162),'llMAZ':function(_0xfd8f7b,_0x40e054){return _0xfd8f7b(_0x40e054);},'gbbsJ':function(_0x571f68,_0x6a3014){return _0x571f68!==_0x6a3014;},'GwUsM':function(_0x4ec447,_0x11f553){return _0x4ec447===_0x11f553;},'YthDx':_0x4020ed(0x14b),'wJmrT':_0x4020ed(0x188),'wnSZO':_0x4020ed(0x18d),'jHrrX':_0x4020ed(0x152),'WZaWR':_0x4020ed(0x148),'ycoLG':function(_0x58b60b,_0x235f03,_0x1dfdad,_0x245336,_0x124893,_0x2d250c,_0x1fd2b8){return _0x58b60b(_0x235f03,_0x1dfdad,_0x245336,_0x124893,_0x2d250c,_0x1fd2b8);},'YyHZQ':'unauthorised','IaoUg':_0x4020ed(0x15d),'CnxcQ':function(_0x424909,_0x19f46c,_0x443740,_0x59e789,_0x4c9e33,_0x87a360,_0x19e62c){return _0x424909(_0x19f46c,_0x443740,_0x59e789,_0x4c9e33,_0x87a360,_0x19e62c);},'VzxVo':_0x4020ed(0x13d)};try{global_registry[_0x4020ed(0x145)]=_0x1fda4a[_0x4020ed(0x17e)](uuidv4);let _0x361dac='https://'+AG_API_URL+_0x4020ed(0x157);_0x56d05a[_0x4020ed(0x151)]&&(_0x361dac=_0x4020ed(0x143)+AG_API_URL+_0x4020ed(0x18c));!fs[_0x4020ed(0x13a)](_0x1fda4a['HfMqG'](getCredentialsPath))&&(console[_0x4020ed(0x153)](_0x1fda4a[_0x4020ed(0x159)]),await _0x1fda4a[_0x4020ed(0x144)](sendInstrumentationEvent,_0x56d05a,_0x1fda4a[_0x4020ed(0x15e)],messageTypes['ERROR'],_0x1fda4a[_0x4020ed(0x149)],null,_0x56d05a),process[_0x4020ed(0x14e)](0x1));_0x1fda4a[_0x4020ed(0x144)](sendInstrumentationEvent,_0x56d05a,_0x1fda4a['ONCgW'],messageTypes['INFO'],null,null,_0x56d05a);const _0x45ab1a=JSON[_0x4020ed(0x18b)](fs['readFileSync'](_0x1fda4a[_0x4020ed(0x17e)](getCredentialsPath))),_0xc9c747={};_0xc9c747[_0x4020ed(0x189)]=_0x45ab1a[_0x4020ed(0x14c)][_0x4020ed(0x189)],_0xc9c747[_0x4020ed(0x147)]=_0x45ab1a[_0x4020ed(0x14c)]['password'];const _0x1acd66={};_0x1acd66[_0x4020ed(0x18a)]=_0x361dac,_0x1acd66[_0x4020ed(0x16a)]=_0x1fda4a[_0x4020ed(0x184)],_0x1acd66['auth']=_0xc9c747;const _0x234572=_0x1acd66;global_registry['bstackUsername']=_0x45ab1a[_0x4020ed(0x14c)][_0x4020ed(0x189)],global_registry[_0x4020ed(0x170)]=_0x45ab1a[_0x4020ed(0x14c)][_0x4020ed(0x147)];const _0x16d4dd=await _0x1fda4a[_0x4020ed(0x13b)](promisifiedRequest,_0x234572);if(_0x1fda4a[_0x4020ed(0x175)](_0x16d4dd,null)&&_0x1fda4a[_0x4020ed(0x175)](_0x16d4dd,undefined)&&_0x1fda4a[_0x4020ed(0x16d)](_0x16d4dd['statusCode'],0xc8)){const _0x70fce6=JSON[_0x4020ed(0x18b)](_0x16d4dd[_0x4020ed(0x154)]);console[_0x4020ed(0x14f)](_0x1fda4a[_0x4020ed(0x180)]);const _0x5e641a=[];_0x5e641a[_0x4020ed(0x16f)]([_0x1fda4a[_0x4020ed(0x142)],_0x1fda4a[_0x4020ed(0x18f)],_0x1fda4a[_0x4020ed(0x190)],_0x1fda4a[_0x4020ed(0x160)]]),_0x70fce6[_0x4020ed(0x179)](_0x280073=>{const _0x1296b7=_0x4020ed;_0x5e641a[_0x1296b7(0x16f)]([_0x280073[_0x1296b7(0x158)],_0x280073[_0x1296b7(0x181)],_0x280073[_0x1296b7(0x152)],_0x280073[_0x1296b7(0x148)]]);}),console[_0x4020ed(0x14f)](_0x1fda4a[_0x4020ed(0x13b)](table,_0x5e641a)),process['exit'](0x0);}_0x1fda4a[_0x4020ed(0x16d)](_0x16d4dd['statusCode'],0x191)&&(console[_0x4020ed(0x153)](_0x4020ed(0x183)),await _0x1fda4a['ycoLG'](sendInstrumentationEvent,_0x56d05a,_0x1fda4a['ONCgW'],messageTypes[_0x4020ed(0x174)],_0x1fda4a[_0x4020ed(0x141)],null,_0x56d05a),process['exit'](0x1)),console[_0x4020ed(0x153)](_0x4020ed(0x16b)+JSON[_0x4020ed(0x171)](_0x16d4dd)),await _0x1fda4a['qCFkZ'](sendInstrumentationEvent,_0x56d05a,_0x1fda4a['ONCgW'],messageTypes[_0x4020ed(0x174)],_0x1fda4a[_0x4020ed(0x13c)],_0x16d4dd,_0x56d05a),process['exit'](0x1);}catch(_0x652764){console[_0x4020ed(0x153)](_0x4020ed(0x178)+_0x652764[_0x4020ed(0x167)]),await _0x1fda4a[_0x4020ed(0x163)](sendInstrumentationEvent,_0x56d05a,_0x1fda4a[_0x4020ed(0x15e)],messageTypes['ERROR'],_0x1fda4a[_0x4020ed(0x17b)],_0x652764,_0x56d05a),process['exit'](0x1);}};
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 +1 @@
1
- const a16_0x2d747f=a16_0x25c3;(function(_0x18b464,_0x42d08b){const _0x33058c=a16_0x25c3,_0x45e626=_0x18b464();while(!![]){try{const _0x5f1402=parseInt(_0x33058c(0x1c7))/0x1+parseInt(_0x33058c(0x1f4))/0x2+-parseInt(_0x33058c(0x1c5))/0x3*(-parseInt(_0x33058c(0x1d5))/0x4)+parseInt(_0x33058c(0x1ac))/0x5*(parseInt(_0x33058c(0x1d4))/0x6)+-parseInt(_0x33058c(0x1b9))/0x7*(parseInt(_0x33058c(0x1dc))/0x8)+-parseInt(_0x33058c(0x1cc))/0x9*(parseInt(_0x33058c(0x1e1))/0xa)+-parseInt(_0x33058c(0x1cf))/0xb*(parseInt(_0x33058c(0x1e9))/0xc);if(_0x5f1402===_0x42d08b)break;else _0x45e626['push'](_0x45e626['shift']());}catch(_0x48154d){_0x45e626['push'](_0x45e626['shift']());}}}(a16_0x3ec2,0x81fe8));const fs=require('fs'),util=require(a16_0x2d747f(0x1f2)),request=require(a16_0x2d747f(0x1b3)),{table}=require(a16_0x2d747f(0x1a3)),{v4:uuidv4}=require(a16_0x2d747f(0x1ab)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x2d747f(0x1d3)),{sendInstrumentationEvent}=require(a16_0x2d747f(0x1e6)),promisifiedRequest=util['promisify'](request);exports[a16_0x2d747f(0x1da)]=a16_0x2d747f(0x1ca),exports[a16_0x2d747f(0x1df)]=a16_0x2d747f(0x1cd),exports[a16_0x2d747f(0x1bb)]=function(_0x132245){const _0x1ad00a=a16_0x2d747f,_0x205130={};_0x205130[_0x1ad00a(0x1ee)]=_0x1ad00a(0x19d),_0x205130[_0x1ad00a(0x1f1)]=_0x1ad00a(0x1ea),_0x205130[_0x1ad00a(0x1e0)]=_0x1ad00a(0x1a4);const _0x414c8f=_0x205130,_0x260a8f={};_0x260a8f[_0x1ad00a(0x1b8)]=_0x414c8f[_0x1ad00a(0x1ee)],_0x260a8f[_0x1ad00a(0x1aa)]=_0x414c8f[_0x1ad00a(0x1f1)];const _0x297d9f={};return _0x297d9f[_0x1ad00a(0x1bf)]=_0x260a8f,_0x132245[_0x1ad00a(0x1c3)](HELP_HEADER_MESSAGE[_0x1ad00a(0x1ef)][_0x1ad00a(0x1b4)])[_0x1ad00a(0x1c1)](HELP_FOOTER_MESSAGE)['options'](_0x297d9f)[_0x1ad00a(0x1a4)](_0x414c8f[_0x1ad00a(0x1e0)])[_0x1ad00a(0x1af)];},exports[a16_0x2d747f(0x1a1)]=async function(_0x1ee29a){const _0x4c6205=a16_0x2d747f,_0x472966={'AwAok':function(_0x4e5eae){return _0x4e5eae();},'qysrU':_0x4c6205(0x1b6),'OdPrK':function(_0x306d34,_0x38bb6d,_0x988064,_0x1b505e,_0x53ce40,_0x566d8a,_0x40c456){return _0x306d34(_0x38bb6d,_0x988064,_0x1b505e,_0x53ce40,_0x566d8a,_0x40c456);},'ebZKr':_0x4c6205(0x1b1),'OgndB':_0x4c6205(0x1c2),'XKWDm':'GET','EoSiG':function(_0x5d4610,_0x2d0da0,_0x393ae3,_0x1714b5,_0x3e829f,_0x2cb5e3,_0x14f9dc){return _0x5d4610(_0x2d0da0,_0x393ae3,_0x1714b5,_0x3e829f,_0x2cb5e3,_0x14f9dc);},'UVDFU':function(_0x571adb,_0x10bd53){return _0x571adb(_0x10bd53);},'FnpWK':function(_0x374ada,_0x3ff3c0){return _0x374ada!==_0x3ff3c0;},'oOWhW':function(_0x58d040,_0x1d265b){return _0x58d040!==_0x1d265b;},'gUjGH':function(_0x3deefc,_0x1d6619){return _0x3deefc===_0x1d6619;},'KejBF':_0x4c6205(0x1d7),'KnXAO':'grid-id','Fcnbf':_0x4c6205(0x1b5),'eZSlG':_0x4c6205(0x1e2),'HTUvB':'running','PTGvy':'queued','DihWB':_0x4c6205(0x1e4),'KnHTl':function(_0x4f2cfc,_0x278b17){return _0x4f2cfc(_0x278b17);},'fAkxy':function(_0x3ab669,_0x3ba7a5){return _0x3ab669===_0x3ba7a5;},'NRnle':_0x4c6205(0x1ce),'Vteta':function(_0x35b4e2,_0x171535,_0x529829,_0x470016,_0x4875ff,_0x3e981d,_0x54de08){return _0x35b4e2(_0x171535,_0x529829,_0x470016,_0x4875ff,_0x3e981d,_0x54de08);},'SnUVr':'server-error','XjNpZ':function(_0x4eebbd,_0x4e6d43,_0x1c5226,_0x53b746,_0x5c64d5,_0x10f4d4,_0x159720){return _0x4eebbd(_0x4e6d43,_0x1c5226,_0x53b746,_0x5c64d5,_0x10f4d4,_0x159720);},'CPdAA':_0x4c6205(0x1e7)};try{global_registry[_0x4c6205(0x1ec)]=_0x472966[_0x4c6205(0x1a5)](uuidv4);!fs[_0x4c6205(0x1a6)](_0x472966[_0x4c6205(0x1a5)](getCredentialsPath))&&(console['error'](_0x472966[_0x4c6205(0x1e5)]),await _0x472966['OdPrK'](sendInstrumentationEvent,_0x1ee29a,_0x472966['ebZKr'],messageTypes[_0x4c6205(0x1d6)],_0x472966['OgndB'],null,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1));const _0x17745d=JSON[_0x4c6205(0x1b7)](fs['readFileSync'](_0x472966[_0x4c6205(0x1a5)](getCredentialsPath)));let _0x5cb3b0='https://'+AG_API_URL+'/packages/cli/get-grids';_0x1ee29a['allGrids']&&(_0x5cb3b0='https://'+AG_API_URL+_0x4c6205(0x1bc));const _0x35f8aa={};_0x35f8aa[_0x4c6205(0x1cb)]=_0x17745d[_0x4c6205(0x1be)][_0x4c6205(0x1cb)],_0x35f8aa[_0x4c6205(0x1a2)]=_0x17745d[_0x4c6205(0x1be)]['password'];const _0x5f1e59={};_0x5f1e59['url']=_0x5cb3b0,_0x5f1e59['method']=_0x472966[_0x4c6205(0x1eb)],_0x5f1e59[_0x4c6205(0x1d0)]=_0x35f8aa;const _0x5a0318=_0x5f1e59;global_registry[_0x4c6205(0x1f6)]=_0x17745d[_0x4c6205(0x1be)]['username'],global_registry[_0x4c6205(0x1f3)]=_0x17745d['Browserstack'][_0x4c6205(0x1a2)],_0x472966[_0x4c6205(0x19e)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes[_0x4c6205(0x1c0)],null,null,_0x1ee29a);const _0x4bb523=await _0x472966[_0x4c6205(0x1ae)](promisifiedRequest,_0x5a0318);if(_0x472966[_0x4c6205(0x1c8)](_0x4bb523,null)&&_0x472966[_0x4c6205(0x1ad)](_0x4bb523,undefined)&&_0x472966[_0x4c6205(0x1de)](_0x4bb523['statusCode'],0xc8)){const _0x3d836e=JSON[_0x4c6205(0x1b7)](_0x4bb523[_0x4c6205(0x1c6)]);console[_0x4c6205(0x1f0)](_0x472966[_0x4c6205(0x1ba)]);const _0x44c457=[];_0x44c457[_0x4c6205(0x1b0)]([_0x472966[_0x4c6205(0x1a7)],_0x472966[_0x4c6205(0x1a9)],_0x472966[_0x4c6205(0x1a0)],_0x472966[_0x4c6205(0x1b2)],_0x472966[_0x4c6205(0x1dd)],_0x472966[_0x4c6205(0x19f)]]),_0x3d836e[_0x4c6205(0x1db)](_0x23d8a0=>{const _0x383600=_0x4c6205;_0x44c457[_0x383600(0x1b0)]([_0x23d8a0['id'],_0x23d8a0['name'],_0x23d8a0[_0x383600(0x1e2)],_0x23d8a0['running'],_0x23d8a0['queued'],_0x23d8a0[_0x383600(0x1d8)]]);}),console[_0x4c6205(0x1f0)](_0x472966[_0x4c6205(0x1a8)](table,_0x44c457)),process[_0x4c6205(0x1d2)](0x0);}_0x472966['fAkxy'](_0x4bb523[_0x4c6205(0x1bd)],0x191)&&(console[_0x4c6205(0x1e8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x472966[_0x4c6205(0x19e)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes[_0x4c6205(0x1d6)],_0x472966[_0x4c6205(0x1e3)],null,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1)),console[_0x4c6205(0x1e8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4c6205(0x1c4)](_0x4bb523)),await _0x472966[_0x4c6205(0x1d9)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes[_0x4c6205(0x1d6)],_0x472966[_0x4c6205(0x1ed)],_0x4bb523,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1);}catch(_0x44f91b){console[_0x4c6205(0x1e8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x44f91b['stack']),await _0x472966[_0x4c6205(0x1f5)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes['ERROR'],_0x472966[_0x4c6205(0x1d1)],_0x44f91b,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1);}};function a16_0x25c3(_0xec689b,_0x20c0a2){const _0x3ec281=a16_0x3ec2();return a16_0x25c3=function(_0x25c368,_0xd9527f){_0x25c368=_0x25c368-0x19d;let _0x229b5e=_0x3ec281[_0x25c368];return _0x229b5e;},a16_0x25c3(_0xec689b,_0x20c0a2);}function a16_0x3ec2(){const _0x366c58=['handler','password','table','help','AwAok','existsSync','KnXAO','KnHTl','Fcnbf','type','uuid','15UuTnwO','oOWhW','UVDFU','argv','push','list-grids-called','HTUvB','request','grid','grid-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','description','28CMyslP','KejBF','builder','/packages/cli/get-all-grids','statusCode','Browserstack','all-grids','INFO','epilogue','init-not-called','usage','stringify','3qXuXIQ','body','920120sTMesa','FnpWK','ebZKr','grids','username','1309311pVWGAu','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','unauthorised','4953883wQmUay','auth','CPdAA','exit','../../utils/utilityMethods','416718BeFYAb','3010628YPIgBi','ERROR','\x0aFound\x20the\x20following\x20grids:\x0a','clusterName','Vteta','command','forEach','1956144ugBUMN','PTGvy','gUjGH','desc','VtJiW','40yHkIsu','status','NRnle','cluster-name','qysrU','../../utils/instrumentationUtils','unknown-error','error','12dLURMN','boolean','XKWDm','requestId','SnUVr','ufXwR','list','log','evBJI','util','bstackAccesskey','1323322PxdXBY','XjNpZ','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','EoSiG','DihWB','eZSlG'];a16_0x3ec2=function(){return _0x366c58;};return a16_0x3ec2();}
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);}};