browserstack-node-sdk 1.31.2 → 1.31.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/config/constants.js +1 -1
  18. package/ats/src/config/logger.js +1 -1
  19. package/ats/src/index.js +1 -1
  20. package/ats/src/utils/AWSUtils.js +1 -1
  21. package/ats/src/utils/createAutoscalerStack.js +1 -1
  22. package/ats/src/utils/createClusterStack.js +1 -1
  23. package/ats/src/utils/createk8sClient.js +1 -1
  24. package/ats/src/utils/deleteStack.js +1 -1
  25. package/ats/src/utils/gridComponents.js +1 -1
  26. package/ats/src/utils/hstUtils.js +1 -1
  27. package/ats/src/utils/instrumentationUtils.js +1 -1
  28. package/ats/src/utils/userInput.js +1 -1
  29. package/ats/src/utils/utilityMethods.js +1 -1
  30. package/ats/src/utils/webSocketUtils.js +1 -1
  31. package/package.json +1 -1
  32. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  33. package/src/bin/codeceptjs/command.js +1 -1
  34. package/src/bin/cucumber-js/command.js +1 -1
  35. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  37. package/src/bin/cucumber-js/test.setup.js +1 -1
  38. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  39. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  40. package/src/bin/jest/command.js +1 -1
  41. package/src/bin/jest/customImplements/customCircus.js +1 -1
  42. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  43. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  44. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  45. package/src/bin/jest/jest.setup.js +1 -1
  46. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  47. package/src/bin/jest/test-observability/helper.js +1 -1
  48. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  49. package/src/bin/jest/test-observability/test-details.js +1 -1
  50. package/src/bin/jest/test_before.setup.js +1 -1
  51. package/src/bin/launcher/launcher.js +1 -1
  52. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  53. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  54. package/src/bin/mocha/command.js +1 -1
  55. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  56. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  57. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  58. package/src/bin/mocha/test.setup.js +1 -1
  59. package/src/bin/nightwatch/command.js +1 -1
  60. package/src/bin/playwright/accessibility-helper.js +1 -1
  61. package/src/bin/playwright/command.js +1 -1
  62. package/src/bin/playwright/globalSetup.js +1 -1
  63. package/src/bin/playwright/mock-process.js +1 -1
  64. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  65. package/src/bin/playwright/reporter/reporter.js +1 -1
  66. package/src/bin/playwright/reporter/test-details.js +1 -1
  67. package/src/bin/runner.js +1 -1
  68. package/src/bin/setup.js +1 -1
  69. package/src/bin/test-runner/index.js +1 -1
  70. package/src/bin/test-runner/runTest.js +1 -1
  71. package/src/bin/test-runner/testWorker.js +1 -1
  72. package/src/bin/utils/constants.js +1 -1
  73. package/src/bin/utils/log4jsAppender.js +1 -1
  74. package/src/bin/utils/logPatcher.js +1 -1
  75. package/src/bin/utils/logReportingAPI.js +1 -1
  76. package/src/bin/vanilla-js/command.js +1 -1
  77. package/src/browserstackSDKMethods.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/percy/utils.js +1 -1
  94. package/src/helpers/request-spy.js +1 -1
  95. package/src/helpers/setKeepAlive.js +1 -1
  96. package/src/helpers/test-observability/constants.js +1 -1
  97. package/src/helpers/test-observability/error-handler.js +1 -1
  98. package/src/helpers/test-observability/performance-tester.js +1 -1
  99. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  100. package/src/helpers/test-observability/sessionHandler.js +1 -1
  101. package/src/helpers/test-observability/utils.js +1 -1
  102. package/src/helpers/w3cMapping.js +1 -1
  103. package/src/hubAllocationMethods.js +1 -1
  104. package/src/index.js +1 -1
  105. package/ats/src/cloudproviders/gcs.js +0 -1
@@ -1 +1 @@
1
- function a9_0x30a9(_0x2f7110,_0x2a6162){const _0x4b016f=a9_0x4b01();return a9_0x30a9=function(_0x30a9b1,_0x1168de){_0x30a9b1=_0x30a9b1-0x1a9;let _0x129d59=_0x4b016f[_0x30a9b1];return _0x129d59;},a9_0x30a9(_0x2f7110,_0x2a6162);}const a9_0x39488d=a9_0x30a9;(function(_0x2c0d72,_0x249511){const _0x4f0e98=a9_0x30a9,_0x10295b=_0x2c0d72();while(!![]){try{const _0x3343d0=-parseInt(_0x4f0e98(0x1b4))/0x1+-parseInt(_0x4f0e98(0x1b9))/0x2*(parseInt(_0x4f0e98(0x1ac))/0x3)+parseInt(_0x4f0e98(0x1b2))/0x4*(parseInt(_0x4f0e98(0x1ae))/0x5)+-parseInt(_0x4f0e98(0x1bd))/0x6+parseInt(_0x4f0e98(0x1a9))/0x7+parseInt(_0x4f0e98(0x1be))/0x8+-parseInt(_0x4f0e98(0x1b8))/0x9;if(_0x3343d0===_0x249511)break;else _0x10295b['push'](_0x10295b['shift']());}catch(_0x515dad){_0x10295b['push'](_0x10295b['shift']());}}}(a9_0x4b01,0x5cfbb));function a9_0x4b01(){const _0x46c7f3=['commandDir','../config/constants','command','949500JUtvwH','238598ITZXHv','builder','epilogue','pfuvN','3117660yQmWol','4328992LDYsAN','1352197IyDgtC','UnYvs','strict','9CigQcw','usage','5azEVnT','demandCommand','desc','create_commands','2792276HUtsHr','help','68498tCRIHn'];a9_0x4b01=function(){return _0x46c7f3;};return a9_0x4b01();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x39488d(0x1b6));exports[a9_0x39488d(0x1b7)]='create',exports[a9_0x39488d(0x1b0)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x39488d(0x1ba)]=function(_0x2d29dd){const _0x413a44=a9_0x39488d,_0x3d2a39={};_0x3d2a39[_0x413a44(0x1bc)]=_0x413a44(0x1b1),_0x3d2a39[_0x413a44(0x1aa)]=_0x413a44(0x1b3);const _0x203ff8=_0x3d2a39;return _0x2d29dd[_0x413a44(0x1ad)](HELP_HEADER_MESSAGE['create'])[_0x413a44(0x1bb)](HELP_FOOTER_MESSAGE)[_0x413a44(0x1b5)](_0x203ff8[_0x413a44(0x1bc)])[_0x413a44(0x1af)]()['recommendCommands']()[_0x413a44(0x1ab)]()[_0x413a44(0x1b3)](_0x203ff8[_0x413a44(0x1aa)]);},exports['handler']=function(_0xc23805){};
1
+ const a8_0x103525=a8_0x3c24;function a8_0x3c24(_0x34152e,_0x4abab4){const _0x313bcd=a8_0x313b();return a8_0x3c24=function(_0x3c246b,_0x10c396){_0x3c246b=_0x3c246b-0x1eb;let _0x3ef6d2=_0x313bcd[_0x3c246b];return _0x3ef6d2;},a8_0x3c24(_0x34152e,_0x4abab4);}(function(_0x49f826,_0x22a013){const _0x4d6094=a8_0x3c24,_0x2be9d1=_0x49f826();while(!![]){try{const _0x4040b9=-parseInt(_0x4d6094(0x1eb))/0x1+parseInt(_0x4d6094(0x1ee))/0x2+-parseInt(_0x4d6094(0x1f2))/0x3*(parseInt(_0x4d6094(0x1fe))/0x4)+parseInt(_0x4d6094(0x1f9))/0x5+-parseInt(_0x4d6094(0x1f8))/0x6*(-parseInt(_0x4d6094(0x1f7))/0x7)+parseInt(_0x4d6094(0x1ef))/0x8*(-parseInt(_0x4d6094(0x1f3))/0x9)+parseInt(_0x4d6094(0x1ff))/0xa;if(_0x4040b9===_0x22a013)break;else _0x2be9d1['push'](_0x2be9d1['shift']());}catch(_0x44c69d){_0x2be9d1['push'](_0x2be9d1['shift']());}}}(a8_0x313b,0x39bbd));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x103525(0x1f4));exports[a8_0x103525(0x1f5)]=a8_0x103525(0x1f6),exports[a8_0x103525(0x1f1)]=a8_0x103525(0x1fc),exports['builder']=function(_0x527b10){const _0x2727bf=a8_0x103525,_0x5a4cf9={};_0x5a4cf9[_0x2727bf(0x200)]='create_commands',_0x5a4cf9[_0x2727bf(0x1f0)]='help';const _0x33de83=_0x5a4cf9;return _0x527b10[_0x2727bf(0x201)](HELP_HEADER_MESSAGE['create'])[_0x2727bf(0x1fb)](HELP_FOOTER_MESSAGE)['commandDir'](_0x33de83['xbyLZ'])[_0x2727bf(0x1fa)]()[_0x2727bf(0x1fd)]()['strict']()[_0x2727bf(0x1ed)](_0x33de83[_0x2727bf(0x1f0)]);},exports[a8_0x103525(0x1ec)]=function(_0x37673b){};function a8_0x313b(){const _0x522499=['6RphLXO','1535115HGhehS','demandCommand','epilogue','Create\x20a\x20new\x20Automation\x20grid.','recommendCommands','176756vKQBGr','1578190NmMuPl','xbyLZ','usage','332956iZwDHz','handler','help','834172DoqjwO','432jxzJXx','QUBza','desc','12iJgQED','25893DQhhjN','../config/constants','command','create','137333kgqWed'];a8_0x313b=function(){return _0x522499;};return a8_0x313b();}
@@ -1 +1 @@
1
- function a10_0x3d71(){const _0x40aaa7=['weuAQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','Namespace\x20Created','TXSgp','Will\x20be\x20spawning\x20the\x20grid\x20','argv','TMUGz','mULDZ','auth','string','Namespace\x20created','addListeners','user','eXkCf','split','minNodes','KiAWQ','exit','BtlWD','FmsQA','XagTZ','kjEBg','grid-name','promisify','hMWwM','Grid\x20spawned\x20on\x20the\x20cluster','isSubnetsValid','tqzTA','WebSocket','http','iPSRs','non-aws-azure-cluster','requestId','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','dRLLr','olunx','253XEXYWz','sendEventToBackend','usage','pre-spawned-subnets-not-selected','1185148jbNAZN','zyBwY','390yWOOMe','pre-spawned-invalid-subnets','region','PYzck','bzFVk','../../config/constants','CLI\x20run\x20started','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','yvUGM','fsjxa','iaDAx','managedBy','DFcjT','Smitd','sVMOk','iCZpR','ingress-nginx','esGhy','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','epilogue','hubVersion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','bnSus','body','Cluster\x20created\x20successfully','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','replace','BfXaa','util','defaultGridProfile','ERROR','MWvzu','IfcWM','Spawning\x20the\x20grid\x20','XZcAR','GET','5UPbOfh','nxYMt','abylF','ZOyay','gclbO','Spawning\x20Grid\x20on\x20the\x20Cluster','XLQcn','djydc','../../utils/webSocketUtils','obpuF','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','izdCi','stringify','CdUvO','cloudProvider','s3BucketName','reIsv','<PasswordPlaceholder>','LOG','viyRM','aTYNL','gNLyv','https://','Cluster\x20','BVznI','delay','uwzcY','statusCode','name','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','zgLaY','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cHSUJ','createNamespace','BOBIr','help','subnets','ingress-nginx-controller','xHoNK','JZXut','route53','MliuB','UEBar','bstackAccesskey','configureIfNotConfigured','Creating\x20namespace','QJofz','alreadyPresent','ImdAD','Fvidv','AMhNi','request','ULcNz','UmXiC','setupNewCluster','getResourceClientId','default','debug','message','toLowerCase','yczae','DpWbE','10jINtSD','tENvE','YdRpg','1819092OXvjaX','s3Bucket','vQvRF','SAglE','IKfJL','LxgsG','TaFNR','/wd/hub','../../cloudproviders/utils','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','JnOqs','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AMRwU','aBcif','updatePreSpawnedCluster','gridProfileId','getGridHostname','gEceu','7419OKuSiv','password','TVYUh','get-grid-url-null-response','BHtie','\x20in\x20existing\x20cluster\x20\x27','create-grid-checks-invalid-profile','ksQBD','nKeXg','bstackUsername','EPlAG','parse','OQcuF','wSSgf','UBUfe','writeFileSync','init-not-called','RnmXa','existsSync','wueAN','error','mBUHH','oJPvh','507285KmEhKr','lCzDp','gridProfile','isClusterPresent','Browserstack','INFO','msznN','length','/packages/cli/get-grid-url?gridIdentifier=','Create\x20a\x20private/public\x20grid.','cluster-name','private-grid','clusterName','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','PErEX','XwKTU','ymoAo','3|4|2|1|0','includes','bvXAU','dgpoY','../../utils/utilityMethods','115404mcluSE','BKRGQ','DCBCL','method','SkfKL','zTFHv','info','FdmgC','command','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','3773984xfvUDT','hnLgX','Grid\x20profile\x20fetched\x20from\x20backend','wIdqP','ovyFo','6|4|2|1|3|5|7|0|8','uHwSo','isPrivateGrid','LKYYO','BOphp','reconnecting-websocket','gridName','Create\x20a\x20new\x20Automation\x20grid.','handler','create','tCmFv','s3bucket','xmUKP','HjsdN','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','CLI\x20run\x20finished:\x20','wohtN','bmZjC','MIDje','RiKdr','https','gridProfiles','readFileSync','51076cvtSyP','ACLTW','true','<UsernamePlaceholder>','JaODs','privateGrid','cloud-provider','uuid','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','\x20are\x20not\x20present\x20in\x20VPC:\x20','RvdYB','desc','type','qaxcc','whfHX','clusterRegion','vZdho','create-grid-checks-auth-failed','maxNodes','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','EliXe','pawSq','BgVQS','readNamespacedService','isVPCPresent','mxUWK','7ggzmNh','fetchLocalCreds','../../utils/userInput','OIZNN','VyuzE','turboscale-managed-identity-','connectionTimeout','TXCPT','lPtIx','CcnCS','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','description','createdBy','AulQI','QnbRM','../../utils/createk8sClient','Xpoge','metadata','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.','createOtherResources','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','../../utils/gridComponents','builder','hsKSL','://','PWsgN','nnQHh','grid-profile','username','get-grid-url-auth-failed','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','eBugY','NSFAs','create-grid-checks-grid-already-exists','Found\x20Subnets:\x20','grid-spawning-failed','browserVersion','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','cfMpF','CLI_RUN_STARTED','YwyGc','dakqp','CLI_RUN_FINISHED'];a10_0x3d71=function(){return _0x40aaa7;};return a10_0x3d71();}const a10_0xfd270d=a10_0x339d;(function(_0x502d2e,_0x250cd9){const _0x197225=a10_0x339d,_0x264336=_0x502d2e();while(!![]){try{const _0x3b2d2d=-parseInt(_0x197225(0x196))/0x1+-parseInt(_0x197225(0x206))/0x2*(-parseInt(_0x197225(0x27d))/0x3)+parseInt(_0x197225(0x204))/0x4*(-parseInt(_0x197225(0x22a))/0x5)+parseInt(_0x197225(0x26b))/0x6*(parseInt(_0x197225(0x1b0))/0x7)+-parseInt(_0x197225(0x17a))/0x8+parseInt(_0x197225(0x15a))/0x9*(parseInt(_0x197225(0x268))/0xa)+-parseInt(_0x197225(0x200))/0xb*(-parseInt(_0x197225(0x170))/0xc);if(_0x3b2d2d===_0x250cd9)break;else _0x264336['push'](_0x264336['shift']());}catch(_0x5ba8e3){_0x264336['push'](_0x264336['shift']());}}}(a10_0x3d71,0x3b896));const fs=require('fs'),ws=require('ws'),util=require(a10_0xfd270d(0x222)),ReconnectingWebSocket=require(a10_0xfd270d(0x184)),request=require(a10_0xfd270d(0x25d)),{v4:uuidv4}=require(a10_0xfd270d(0x19d)),webSocketUtils=require(a10_0xfd270d(0x232)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a10_0xfd270d(0x1b2)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0xfd270d(0x16f)),{getCloudProviderObject}=require(a10_0xfd270d(0x273)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0xfd270d(0x20b)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0xfd270d(0x1c5)),{createK8sClient}=require(a10_0xfd270d(0x1bf)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a10_0xfd270d(0x1f3)](request);function a10_0x339d(_0x24c65b,_0xe65302){const _0x3d71d7=a10_0x3d71();return a10_0x339d=function(_0x339db5,_0x2ad2c4){_0x339db5=_0x339db5-0x158;let _0x98c4c=_0x3d71d7[_0x339db5];return _0x98c4c;},a10_0x339d(_0x24c65b,_0xe65302);}exports[a10_0xfd270d(0x178)]='grid',exports[a10_0xfd270d(0x1a1)]=a10_0xfd270d(0x186),exports[a10_0xfd270d(0x1c6)]=function(_0x4f4d7a){const _0x1d2035=a10_0xfd270d,_0x335f1b={};_0x335f1b[_0x1d2035(0x258)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x335f1b[_0x1d2035(0x230)]=_0x1d2035(0x1e5),_0x335f1b['vZdho']=_0x1d2035(0x21b),_0x335f1b[_0x1d2035(0x237)]=_0x1d2035(0x276),_0x335f1b[_0x1d2035(0x1fe)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x335f1b['fsjxa']=_0x1d2035(0x247),_0x335f1b[_0x1d2035(0x1f4)]=_0x1d2035(0x163),_0x335f1b[_0x1d2035(0x251)]=_0x1d2035(0x24d);const _0x517ee0=_0x335f1b,_0x4bd298={};_0x4bd298[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x258)],_0x4bd298[_0x1d2035(0x1a2)]=_0x517ee0[_0x1d2035(0x230)];const _0x25a0e6={};_0x25a0e6[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x1a6)],_0x25a0e6[_0x1d2035(0x1a2)]=_0x517ee0[_0x1d2035(0x230)];const _0x38441d={};_0x38441d[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x237)],_0x38441d['type']=_0x517ee0[_0x1d2035(0x230)];const _0xf2695a={};_0xf2695a[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x1fe)],_0xf2695a['type']=_0x517ee0['XLQcn'];const _0x14cacb={};_0x14cacb['description']=_0x517ee0[_0x1d2035(0x20f)],_0x14cacb['type']=_0x517ee0['XLQcn'];const _0x54685e={};_0x54685e[_0x1d2035(0x1bb)]=_0x517ee0['hMWwM'],_0x54685e[_0x1d2035(0x1a2)]=_0x517ee0['XLQcn'];const _0x5f0900={};return _0x5f0900[_0x1d2035(0x1f2)]=_0x4bd298,_0x5f0900[_0x1d2035(0x1cb)]=_0x25a0e6,_0x5f0900[_0x1d2035(0x164)]=_0x38441d,_0x5f0900[_0x1d2035(0x19c)]=_0xf2695a,_0x5f0900['region']=_0x14cacb,_0x5f0900[_0x1d2035(0x165)]=_0x54685e,_0x4f4d7a['usage'](HELP_HEADER_MESSAGE[_0x1d2035(0x188)])[_0x1d2035(0x219)](HELP_FOOTER_MESSAGE)['options'](_0x5f0900)['help'](_0x517ee0[_0x1d2035(0x251)])['argv'];},exports[a10_0xfd270d(0x187)]=async function(_0x3e45d0){const _0x270c2f=a10_0xfd270d,_0x1a64f3={'FmsQA':_0x270c2f(0x193),'ACLTW':_0x270c2f(0x1ce),'FdmgC':'1|5|7|3|4|0|8|6|2','EPlAG':'warn','CcnCS':_0x270c2f(0x1ba),'kjEBg':_0x270c2f(0x1e5),'sVMOk':_0x270c2f(0x21b),'IKfJL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','uHwSo':_0x270c2f(0x167),'ymoAo':_0x270c2f(0x247),'zhbAF':'Create\x20a\x20private/public\x20grid.','DCBCL':_0x270c2f(0x24d),'obpuF':_0x270c2f(0x291),'SkfKL':_0x270c2f(0x1f9),'dgpoY':function(_0x324216){return _0x324216();},'JnOqs':function(_0x36a7a0,_0x30c3c7){return _0x36a7a0!==_0x30c3c7;},'TMUGz':_0x270c2f(0x210),'zTFHv':_0x270c2f(0x249),'JBLkF':function(_0x2b63e4,_0x5c663d,_0x1d9cae,_0x5dcc35,_0x3fbea7,_0x524162,_0x20d9b7){return _0x2b63e4(_0x5c663d,_0x1d9cae,_0x5dcc35,_0x3fbea7,_0x524162,_0x20d9b7);},'Smitd':'create-grid-called','lCzDp':_0x270c2f(0x28d),'BOBIr':function(_0x525c45,_0x46d3b,_0x4ca000,_0x4019ad,_0x534001,_0x14f70a,_0x5eeb1f){return _0x525c45(_0x46d3b,_0x4ca000,_0x4019ad,_0x534001,_0x14f70a,_0x5eeb1f);},'evEfY':function(_0x3908b6){return _0x3908b6();},'EliXe':_0x270c2f(0x199),'cHSUJ':_0x270c2f(0x23b),'ovyFo':'Adding\x20Websocket\x20listeners','bvXAU':_0x270c2f(0x1e3),'AMhNi':_0x270c2f(0x1af),'JaODs':function(_0x1d6fc2,_0x4ec22d){return _0x1d6fc2!==_0x4ec22d;},'whfHX':_0x270c2f(0x248),'gclbO':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','BfXaa':function(_0x1fcecb,_0xb476cd,_0x5c2406,_0x2cd71b,_0x500066,_0x5eb93d,_0x4768cb,_0x26dd2a){return _0x1fcecb(_0xb476cd,_0x5c2406,_0x2cd71b,_0x500066,_0x5eb93d,_0x4768cb,_0x26dd2a);},'viyRM':'prespawned-cluster-args-not-passed','vQvRF':'fvJBu','PrjbC':_0x270c2f(0x20d),'mBUHH':function(_0x3b3960,_0x5d1838,_0x30dca6,_0x136bc0,_0x243f63,_0x10af4d,_0x3cb4a9,_0xc52bcc){return _0x3b3960(_0x5d1838,_0x30dca6,_0x136bc0,_0x243f63,_0x10af4d,_0x3cb4a9,_0xc52bcc);},'HjsdN':_0x270c2f(0x1fb),'msznN':function(_0x42f239,_0x3f9e2d){return _0x42f239===_0x3f9e2d;},'uxpPw':_0x270c2f(0x198),'PErEX':_0x270c2f(0x242),'AulQI':'idCKz','eBugY':function(_0x243260,_0x1df264){return _0x243260!==_0x1df264;},'tCmFv':'vEXBC','OCyoR':_0x270c2f(0x229),'TXCPT':function(_0x465147,_0x5355a8){return _0x465147(_0x5355a8);},'gEceu':function(_0x3971bc,_0x157e01){return _0x3971bc===_0x157e01;},'xHoNK':function(_0x34da4a,_0x36b86c){return _0x34da4a===_0x36b86c;},'gQvrA':_0x270c2f(0x1b4),'uwzcY':_0x270c2f(0x1ca),'AMRwU':_0x270c2f(0x21f),'MyJQX':'create-grid-checks-null-response','BgVQS':function(_0x348cb0,_0x3a1792){return _0x348cb0===_0x3a1792;},'tENvE':'wgHWv','XagTZ':_0x270c2f(0x23f),'RiSoe':_0x270c2f(0x1dc),'iCZpR':_0x270c2f(0x1a7),'ImdAD':function(_0x363e95,_0x51d4be){return _0x363e95!==_0x51d4be;},'OQcuF':function(_0x1c3beb,_0x5789d4){return _0x1c3beb===_0x5789d4;},'IfcWM':'BMEZP','ZSKxV':_0x270c2f(0x205),'BKRGQ':function(_0x2b3495,_0x248f61,_0x31bd1f,_0x99c44e,_0xf05fe1,_0x4d015e,_0x17212a,_0x204bec){return _0x2b3495(_0x248f61,_0x31bd1f,_0x99c44e,_0xf05fe1,_0x4d015e,_0x17212a,_0x204bec);},'xmUKP':'create-grid-checks-non-200','wIdqP':_0x270c2f(0x17c),'hnLgX':'uxHnl','TKlju':_0x270c2f(0x270),'fgkXi':_0x270c2f(0x1d5),'RvdYB':function(_0x3d5d8b,_0x465471,_0xaec198,_0x451004,_0x485f00,_0x572257,_0x272065,_0x93c71e){return _0x3d5d8b(_0x465471,_0xaec198,_0x451004,_0x485f00,_0x572257,_0x272065,_0x93c71e);},'olunx':_0x270c2f(0x1d1),'Fvidv':_0x270c2f(0x212),'nxYMt':function(_0x4dee1e,_0x17a671){return _0x4dee1e===_0x17a671;},'BOphp':_0x270c2f(0x1c7),'TVYUh':function(_0xda20c4,_0x2b4abf){return _0xda20c4!==_0x2b4abf;},'bmZjC':_0x270c2f(0x23e),'ORtnm':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','lPtIx':function(_0x122e9d,_0x54347e,_0x3c104a,_0x57a90c,_0x3c2477,_0x1ab955,_0x1cf337,_0x464d2a){return _0x122e9d(_0x54347e,_0x3c104a,_0x57a90c,_0x3c2477,_0x1ab955,_0x1cf337,_0x464d2a);},'QnbRM':_0x270c2f(0x283),'jqoqy':function(_0x30b0a0,_0x837a9a){return _0x30b0a0===_0x837a9a;},'eXkCf':function(_0x2d8480,_0x503b42){return _0x2d8480!==_0x503b42;},'reIsv':'vKigN','MliuB':_0x270c2f(0x266),'UEBar':function(_0x540c78,_0x35dddd,_0xece7a3,_0x3f8136,_0x4b6238,_0x5e8df5,_0x142c2c,_0x690a56,_0x192351,_0x4afae7,_0x4d78cc,_0x1ee36d){return _0x540c78(_0x35dddd,_0xece7a3,_0x3f8136,_0x4b6238,_0x5e8df5,_0x142c2c,_0x690a56,_0x192351,_0x4afae7,_0x4d78cc,_0x1ee36d);},'yvUGM':_0x270c2f(0x17f),'oJPvh':function(_0x4b04bb,_0x415eb3,_0x16d8ec,_0x3d2988,_0x5a43ca,_0x4c7a7e){return _0x4b04bb(_0x415eb3,_0x16d8ec,_0x3d2988,_0x5a43ca,_0x4c7a7e);},'wohtN':function(_0x1d4fdb,_0xbcb177){return _0x1d4fdb===_0xbcb177;},'BHtie':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','wueAN':function(_0xbd02b7,_0x4ed940){return _0xbd02b7===_0x4ed940;},'jEGcR':function(_0x452275,_0x1f785e,_0x3bcfd7,_0xd0f81){return _0x452275(_0x1f785e,_0x3bcfd7,_0xd0f81);},'szOwm':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','UmXiC':_0x270c2f(0x218),'MWvzu':function(_0x126ae0,_0x44cd34){return _0x126ae0===_0x44cd34;},'BtlWD':_0x270c2f(0x1c4),'YwyGc':function(_0x282e96,_0x533120){return _0x282e96!=_0x533120;},'XwKTU':function(_0x2b6437,_0x2a9485){return _0x2b6437!==_0x2a9485;},'nKeXg':function(_0x33fa1f,_0x7d4708){return _0x33fa1f>_0x7d4708;},'DpWbE':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','LbPSp':function(_0x532bff,_0x6e2dba,_0x2b7005,_0x4f8410,_0x10a5a1,_0x1ed80b,_0x3abb9a,_0x3a1ded){return _0x532bff(_0x6e2dba,_0x2b7005,_0x4f8410,_0x10a5a1,_0x1ed80b,_0x3abb9a,_0x3a1ded);},'ckLBo':_0x270c2f(0x203),'KiAWQ':function(_0x5571c9,_0x4859ed){return _0x5571c9===_0x4859ed;},'ULcNz':_0x270c2f(0x1a9),'YdRpg':'pre-spawned-invalid-vpc','SRqcP':function(_0x5d5054,_0x3bc28a,_0x291bd6,_0x19be1a,_0x5bd90d,_0x12f7b0,_0x41e6a3,_0x235d39){return _0x5d5054(_0x3bc28a,_0x291bd6,_0x19be1a,_0x5bd90d,_0x12f7b0,_0x41e6a3,_0x235d39);},'weuAQ':_0x270c2f(0x207),'ksQBD':_0x270c2f(0x16b),'XZcAR':_0x270c2f(0x21e),'abylF':_0x270c2f(0x1c2),'qaxcc':function(_0x46b89a,_0x4c5e37){return _0x46b89a===_0x4c5e37;},'djydc':function(_0x51bac3,_0x313e7b){return _0x51bac3===_0x313e7b;},'dakqp':function(_0x55dae4,_0x1c3584){return _0x55dae4==_0x1c3584;},'SAglE':function(_0x3cef96,_0x12424a){return _0x3cef96(_0x12424a);},'izdCi':_0x270c2f(0x257),'COZyl':function(_0x4c684b,_0x502166){return _0x4c684b!==_0x502166;},'wSSgf':_0x270c2f(0x262),'Xpoge':_0x270c2f(0x15e),'ZOyay':_0x270c2f(0x1de),'pawSq':_0x270c2f(0x1e6),'RiKdr':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','PYzck':_0x270c2f(0x22f),'NSFAs':function(_0x3b9bb6,_0x2cb617,_0x51d314,_0x23e212,_0x5a76df,_0x564755,_0xa59cd9,_0x1a6aa9,_0x14dc38,_0xde5b55,_0x198e32){return _0x3b9bb6(_0x2cb617,_0x51d314,_0x23e212,_0x5a76df,_0x564755,_0xa59cd9,_0x1a6aa9,_0x14dc38,_0xde5b55,_0x198e32);},'LKYYO':_0x270c2f(0x1f5),'bzFVk':_0x270c2f(0x18d),'TaFNR':function(_0x539e72,_0x1ceb24,_0x1e19f8){return _0x539e72(_0x1ceb24,_0x1e19f8);},'MIDje':'private-ingress-nginx-controller','zDHCl':_0x270c2f(0x24f),'iPSRs':_0x270c2f(0x216),'RnmXa':function(_0x1f43ea,_0x3976b7){return _0x1f43ea(_0x3976b7);},'WgrPE':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','tqzTA':_0x270c2f(0x280),'TXSgp':function(_0x7b53f0,_0x33f544){return _0x7b53f0===_0x33f544;},'bnSus':_0x270c2f(0x274),'aBcif':function(_0x4549fd,_0x1037f0,_0x297e97,_0x5860bf,_0x550066,_0x1a0ce4,_0x2ce636,_0xf68c3c){return _0x4549fd(_0x1037f0,_0x297e97,_0x5860bf,_0x550066,_0x1a0ce4,_0x2ce636,_0xf68c3c);},'esGhy':_0x270c2f(0x1cd),'cfMpF':function(_0x41d765,_0x5cec9c){return _0x41d765!==_0x5cec9c;},'PWsgN':'get-grid-url-non-200','UBUfe':function(_0x3a8cc1,_0x54ea9f){return _0x3a8cc1===_0x54ea9f;},'OIZNN':_0x270c2f(0x1d3)};let _0x377eee=![],_0x178d2c,_0x43d911,_0x4b2d26,_0x119ddd,_0x1619ca,_0x12f63a,_0x5c7d44,_0x3ad716,_0x356927,_0x2a11cc,_0x4dc2de,_0x194e74,_0x1da658=0x1,_0x161175=0xe;try{global_registry[_0x270c2f(0x1fc)]=_0x1a64f3[_0x270c2f(0x16e)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x270c2f(0x28f)](_0x1a64f3[_0x270c2f(0x16e)](getCredentialsPath))&&(_0x1a64f3['JnOqs'](_0x1a64f3[_0x270c2f(0x1e2)],_0x1a64f3['TMUGz'])?(_0x529372=_0x4ddc9a['route53'],_0x30c601=_0x1a64f3['FmsQA']):(console[_0x270c2f(0x291)](_0x1a64f3[_0x270c2f(0x175)]),await _0x1a64f3['JBLkF'](sendInstrumentationEvent,_0x3e45d0,_0x1a64f3['Smitd'],messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x15b)],null,_0x3e45d0),process[_0x270c2f(0x1ed)](0x1)));await _0x1a64f3[_0x270c2f(0x24c)](sendInstrumentationEvent,_0x3e45d0,_0x1a64f3[_0x270c2f(0x213)],messageTypes[_0x270c2f(0x15f)],null,null,_0x3e45d0);const _0x429571=JSON['parse'](fs[_0x270c2f(0x195)](_0x1a64f3['evEfY'](getCredentialsPath)));global_registry[_0x270c2f(0x286)]=_0x429571[_0x270c2f(0x15e)]['username'],global_registry[_0x270c2f(0x255)]=_0x429571['Browserstack'][_0x270c2f(0x27e)];const _0x5cdbe6=WS_ENDPOINT['replace'](_0x1a64f3[_0x270c2f(0x1aa)],_0x429571['Browserstack'][_0x270c2f(0x1cc)])[_0x270c2f(0x220)](_0x1a64f3[_0x270c2f(0x24a)],_0x429571[_0x270c2f(0x15e)][_0x270c2f(0x27e)]),_0x4c00a6={};_0x4c00a6[_0x270c2f(0x1f8)]=ws,_0x4c00a6[_0x270c2f(0x1b6)]=0x36ee80,_0x2a11cc=new ReconnectingWebSocket(_0x5cdbe6,[],_0x4c00a6),logger[_0x270c2f(0x263)](_0x1a64f3[_0x270c2f(0x17e)]),webSocketUtils[_0x270c2f(0x1e7)](_0x2a11cc,_0x3e45d0[_0x270c2f(0x1e8)],_0x3e45d0[_0x270c2f(0x27e)]);let _0xcc245e=DEFAULT_GRID_NAME;if(_0x3e45d0[_0x270c2f(0x166)]||_0x3e45d0['cloudProvider']||_0x3e45d0[_0x270c2f(0x208)]){if(_0x1a64f3[_0x270c2f(0x275)](_0x1a64f3[_0x270c2f(0x16d)],_0x1a64f3[_0x270c2f(0x25c)])){!(_0x3e45d0['clusterName']&&_0x3e45d0[_0x270c2f(0x238)]&&_0x3e45d0[_0x270c2f(0x208)])&&(_0x1a64f3['JaODs'](_0x1a64f3[_0x270c2f(0x1a4)],_0x1a64f3[_0x270c2f(0x1a4)])?_0x279c00['isPrivateGrid']=!![]:(_0x178d2c=_0x1a64f3[_0x270c2f(0x22e)],await _0x1a64f3['BfXaa'](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x23d)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));![AWS,AZURE,GCP][_0x270c2f(0x16c)](_0x3e45d0[_0x270c2f(0x238)][_0x270c2f(0x265)]())&&(_0x1a64f3['JaODs'](_0x1a64f3[_0x270c2f(0x26d)],_0x1a64f3[_0x270c2f(0x26d)])?(_0x2fc897[_0x270c2f(0x291)](_0x1a64f3[_0x270c2f(0x197)]),_0x1bdaf5[_0x270c2f(0x1ed)](0x1)):(_0x178d2c=_0x1a64f3['PrjbC'],await _0x1a64f3[_0x270c2f(0x158)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x18c)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));if(_0x3e45d0[_0x270c2f(0x19b)]&&_0x1a64f3[_0x270c2f(0x160)](_0x3e45d0[_0x270c2f(0x19b)]['toLowerCase'](),_0x1a64f3['uxpPw'])){if(_0x1a64f3[_0x270c2f(0x275)](_0x1a64f3[_0x270c2f(0x168)],_0x1a64f3[_0x270c2f(0x1bd)]))global_registry[_0x270c2f(0x181)]=!![];else{const _0x4a1a66=_0x1a64f3[_0x270c2f(0x177)][_0x270c2f(0x1ea)]('|');let _0x431d63=0x0;while(!![]){switch(_0x4a1a66[_0x431d63++]){case'0':_0x230458[_0x270c2f(0x1a5)]=_0x2035c2;continue;case'1':const _0x4b0444={};_0x4b0444[_0x270c2f(0x1a2)]=_0xda3420[_0x270c2f(0x1d7)],_0x4b0444['message']=_0x270c2f(0x20c),_0x4fc742['sendEventToBackend'](_0x75172f,_0x4b0444);continue;case'2':_0x4b3b4f['browserVersion']=_0x132aa3[_0x270c2f(0x1d4)];continue;case'3':const _0x5e2398={};_0x5e2398[_0x270c2f(0x1a2)]=_0x209c09[_0x270c2f(0x23c)],_0x5e2398[_0x270c2f(0x264)]=_0x57a7b1,_0x1f9cd6[_0x270c2f(0x201)](_0x3a0c51,_0x5e2398);continue;case'4':_0x2e8991['cloudProvider']=_0x529edf;continue;case'5':_0x125cc1=_0x270c2f(0x227)+_0xab2aa8+'\x20in\x20existing\x20cluster\x20\x27'+_0x245e41+'\x27';continue;case'6':_0x5481c3[_0x270c2f(0x21a)]=_0x1abecb[_0x270c2f(0x21a)];continue;case'7':_0x952a4e['info'](_0x40b0b1);continue;case'8':_0x992e8e[_0x270c2f(0x166)]=_0x485ada;continue;}break;}}}_0x377eee=!![],_0x4b2d26=_0x3e45d0[_0x270c2f(0x166)],_0x43d911=_0x3e45d0[_0x270c2f(0x238)][_0x270c2f(0x265)](),_0x119ddd=_0x3e45d0[_0x270c2f(0x208)];}else _0x8eccfe[_0x270c2f(0x181)]=!![];}_0x3e45d0[_0x270c2f(0x185)]&&(_0x1a64f3['eBugY'](_0x1a64f3[_0x270c2f(0x189)],_0x1a64f3[_0x270c2f(0x189)])?_0x1726ef=_0x23056f[_0x6ead75[_0x270c2f(0x15c)]]:_0xcc245e=_0x3e45d0[_0x270c2f(0x185)]);global_registry[_0x270c2f(0x185)]=_0xcc245e;const _0x4b13d8={};_0x4b13d8['username']=_0x429571[_0x270c2f(0x15e)]['username'],_0x4b13d8[_0x270c2f(0x27e)]=_0x429571[_0x270c2f(0x15e)][_0x270c2f(0x27e)];const _0x379303={};_0x379303[_0x270c2f(0x173)]=_0x1a64f3['OCyoR'],_0x379303[_0x270c2f(0x1e4)]=_0x4b13d8;const _0x421882=_0x379303,_0x561c6f=_0x270c2f(0x240)+AG_API_URL+'/packages/cli/create-grid-checks',_0x38ecfb={};_0x38ecfb[_0x270c2f(0x185)]=_0xcc245e;const _0x4acabd={'url':_0x561c6f,'qs':_0x38ecfb,..._0x421882},_0x3decdc=_0x4acabd,_0x3092bc=await _0x1a64f3[_0x270c2f(0x1b7)](promisifiedRequest,_0x3decdc);(_0x1a64f3[_0x270c2f(0x27c)](_0x3092bc,null)||_0x1a64f3['gEceu'](_0x3092bc,undefined))&&(_0x1a64f3[_0x270c2f(0x250)](_0x1a64f3['gQvrA'],_0x1a64f3[_0x270c2f(0x244)])?_0xed80b[_0x270c2f(0x176)]('Found\x20VPC:\x20'+_0x5704ab+'\x20'):(_0x178d2c=_0x1a64f3[_0x270c2f(0x277)],await _0x1a64f3[_0x270c2f(0x221)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3['MyJQX'],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process['exit'](0x1)));_0x1a64f3[_0x270c2f(0x1ac)](_0x3092bc['statusCode'],0x191)&&(_0x1a64f3[_0x270c2f(0x1ac)](_0x1a64f3[_0x270c2f(0x269)],_0x1a64f3[_0x270c2f(0x1f0)])?_0x5acd66['cloudProvider']={}:(_0x178d2c=_0x1a64f3['RiSoe'],await _0x1a64f3[_0x270c2f(0x221)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x215)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));if(_0x1a64f3[_0x270c2f(0x25a)](_0x3092bc[_0x270c2f(0x245)],0xc8)){if(_0x1a64f3[_0x270c2f(0x289)](_0x1a64f3[_0x270c2f(0x226)],_0x1a64f3['ZSKxV'])){const _0x2d1c0f={};_0x2d1c0f[_0x270c2f(0x1a2)]=_0x3df4ff[_0x270c2f(0x23c)],_0x2d1c0f[_0x270c2f(0x264)]=_0x270c2f(0x241)+_0x34727c+_0x270c2f(0x234),_0x1f6e04['sendEventToBackend'](_0x80cee,_0x2d1c0f,_0x1a64f3[_0x270c2f(0x287)]),_0xf9c759[_0x270c2f(0x176)](_0x270c2f(0x241)+_0x47d025+_0x270c2f(0x234)),_0x31da64=!![];}else _0x178d2c=_0x270c2f(0x1fd)+JSON[_0x270c2f(0x236)](_0x3092bc),await _0x1a64f3[_0x270c2f(0x171)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x18b)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1);}const _0xe11901=JSON['parse'](_0x3092bc[_0x270c2f(0x21d)]),_0x4d4455={};_0x4d4455['type']=WS_EVENTS[_0x270c2f(0x1d7)],_0x4d4455[_0x270c2f(0x264)]=_0x270c2f(0x20c),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x4d4455);const _0x516ef9={};_0x516ef9['type']=WS_EVENTS[_0x270c2f(0x23c)],_0x516ef9['message']=_0x1a64f3[_0x270c2f(0x17d)],webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x516ef9);if(_0xe11901[_0x270c2f(0x259)]){if(_0x1a64f3[_0x270c2f(0x19a)](_0x1a64f3[_0x270c2f(0x17b)],_0x1a64f3['TKlju']))_0x178d2c=_0x1a64f3['fgkXi'],await _0x1a64f3[_0x270c2f(0x1a0)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x1ff)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1);else{const _0x1ab44b={};_0x1ab44b['description']=_0x1a64f3[_0x270c2f(0x1b9)],_0x1ab44b[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x198f45={};_0x198f45[_0x270c2f(0x1bb)]=_0x1a64f3[_0x270c2f(0x214)],_0x198f45[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x1f0520={};_0x1f0520['description']=_0x1a64f3[_0x270c2f(0x26f)],_0x1f0520['type']=_0x1a64f3[_0x270c2f(0x1f1)];const _0x1f7309={};_0x1f7309[_0x270c2f(0x1bb)]=_0x1a64f3[_0x270c2f(0x180)],_0x1f7309[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x40fc1d={};_0x40fc1d[_0x270c2f(0x1bb)]=_0x1a64f3[_0x270c2f(0x16a)],_0x40fc1d[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x116622={};_0x116622[_0x270c2f(0x1bb)]=_0x1a64f3['zhbAF'],_0x116622[_0x270c2f(0x1a2)]=_0x1a64f3['kjEBg'];const _0x8af17d={};return _0x8af17d[_0x270c2f(0x1f2)]=_0x1ab44b,_0x8af17d[_0x270c2f(0x1cb)]=_0x198f45,_0x8af17d[_0x270c2f(0x164)]=_0x1f0520,_0x8af17d[_0x270c2f(0x19c)]=_0x1f7309,_0x8af17d[_0x270c2f(0x208)]=_0x40fc1d,_0x8af17d[_0x270c2f(0x165)]=_0x116622,_0x371be7[_0x270c2f(0x202)](_0x2abd48[_0x270c2f(0x188)])[_0x270c2f(0x219)](_0x2ddb31)[_0x270c2f(0x1dd)](_0x8af17d)[_0x270c2f(0x24d)](_0x1a64f3[_0x270c2f(0x172)])[_0x270c2f(0x1e1)];}}const _0x34e23f=_0xe11901[_0x270c2f(0x194)];let _0x584035=_0x34e23f[_0xe11901[_0x270c2f(0x223)]];if(_0x3e45d0[_0x270c2f(0x15c)]){if(_0x1a64f3[_0x270c2f(0x1cf)](_0x1a64f3[_0x270c2f(0x25b)],_0x1a64f3['Fvidv']))throw _0x186b1e;else _0x584035=_0x34e23f[_0x3e45d0[_0x270c2f(0x15c)]];}if(_0x1a64f3[_0x270c2f(0x22b)](_0x377eee,![])){if(_0x1a64f3[_0x270c2f(0x289)](_0x1a64f3[_0x270c2f(0x183)],_0x1a64f3[_0x270c2f(0x183)])){_0x1a64f3['gEceu'](_0x584035,undefined)&&(_0x1a64f3[_0x270c2f(0x27f)](_0x1a64f3[_0x270c2f(0x190)],_0x1a64f3[_0x270c2f(0x190)])?_0x5c2492['info'](_0x270c2f(0x1d2)+_0x368db2[_0x270c2f(0x236)](_0x470670)+'\x20'):(_0x178d2c=_0x1a64f3['ORtnm'],await _0x1a64f3[_0x270c2f(0x1b8)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x1be)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));global_registry[_0x270c2f(0x27a)]=_0x584035['id'];if(_0x1a64f3[_0x270c2f(0x22b)](_0x43d911,AZURE)||_0x1a64f3['jqoqy'](_0x584035?.[_0x270c2f(0x238)],AZURE)){if(_0x1a64f3[_0x270c2f(0x1e9)](_0x1a64f3[_0x270c2f(0x23a)],_0x1a64f3[_0x270c2f(0x23a)])){const _0x2f36f6={};_0x2f36f6[_0x270c2f(0x1a2)]=_0x123f6e[_0x270c2f(0x23c)],_0x2f36f6[_0x270c2f(0x264)]=_0x57ee3a,_0x48213a[_0x270c2f(0x201)](_0x272da6,_0x2f36f6,_0x1a64f3[_0x270c2f(0x233)],!![]);}else console[_0x270c2f(0x291)](_0x1a64f3[_0x270c2f(0x197)]),process[_0x270c2f(0x1ed)](0x1);}_0x178d2c=_0x270c2f(0x1e0)+_0xcc245e+'\x20using\x20\x27'+_0x584035[_0x270c2f(0x246)]+'\x27\x20grid\x20profile',logger[_0x270c2f(0x176)](_0x178d2c);const _0xfd56c9={};_0xfd56c9['type']=WS_EVENTS[_0x270c2f(0x23c)],_0xfd56c9[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0xfd56c9),_0x43d911=_0x584035['cloudProvider'],_0x4b2d26=_0x584035['clusterName'],_0x119ddd=_0x584035[_0x270c2f(0x208)],_0x1619ca=_0x584035['concurrency'],_0x12f63a=_0x584035['instanceType'],_0x5c7d44=_0x584035['vpc'],securityGroups=_0x584035['securityGroups'],subnets=_0x584035[_0x270c2f(0x24e)],_0x3ad716=_0x584035[_0x270c2f(0x18a)],_0x1da658=_0x584035[_0x270c2f(0x1eb)],_0x161175=_0x584035[_0x270c2f(0x1a8)],_0x4dc2de=_0xe11901[_0x270c2f(0x21a)],_0x194e74=_0xe11901['browserVersion'],_0x1a64f3['eBugY'](_0x584035[_0x270c2f(0x19b)],undefined)&&_0x584035[_0x270c2f(0x19b)]&&(_0x1a64f3[_0x270c2f(0x1ac)](_0x1a64f3[_0x270c2f(0x253)],_0x1a64f3[_0x270c2f(0x253)])?global_registry[_0x270c2f(0x181)]=!![]:_0x3c9250=_0x1a64f3['SkfKL']),_0x1a64f3[_0x270c2f(0x254)](updateGlobalRegistryWithConfig,_0x43d911,_0x4b2d26,_0x119ddd,_0x1619ca,_0x12f63a,_0x3ad716,_0x584035,_0x4dc2de,_0x194e74,_0x1da658,_0x161175);}else _0x30a820=_0x5e9e78[_0x270c2f(0x185)];}else{const _0x3965e8=_0x1a64f3[_0x270c2f(0x20e)][_0x270c2f(0x1ea)]('|');let _0x15436f=0x0;while(!![]){switch(_0x3965e8[_0x15436f++]){case'0':global_registry[_0x270c2f(0x21a)]=_0xe11901[_0x270c2f(0x21a)];continue;case'1':const _0xac5c42={};_0xac5c42['type']=WS_EVENTS['LOG'],_0xac5c42[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0xac5c42);continue;case'2':logger[_0x270c2f(0x176)](_0x178d2c);continue;case'3':global_registry['cloudProvider']=_0x43d911;continue;case'4':_0x178d2c=_0x270c2f(0x227)+_0xcc245e+_0x270c2f(0x282)+_0x4b2d26+'\x27';continue;case'5':global_registry[_0x270c2f(0x1a5)]=_0x119ddd;continue;case'6':const _0x595aef={};_0x595aef['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x595aef['message']=_0x270c2f(0x20c),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x595aef);continue;case'7':global_registry[_0x270c2f(0x166)]=_0x4b2d26;continue;case'8':global_registry[_0x270c2f(0x1d4)]=_0xe11901[_0x270c2f(0x1d4)];continue;}break;}}const _0x5ecdd5=_0x1a64f3[_0x270c2f(0x159)](getCloudProviderObject,_0x43d911,_0x4b2d26,_0xcc245e,_0x2a11cc,webSocketUtils),_0x32628c=_0x429571[_0x270c2f(0x238)]||{};if(_0x1a64f3[_0x270c2f(0x18f)](_0x32628c[_0x43d911],undefined)){logger['info'](_0x1a64f3[_0x270c2f(0x281)]);_0x1a64f3[_0x270c2f(0x290)](_0x429571['cloudProvider'],undefined)&&(_0x429571[_0x270c2f(0x238)]={});_0x429571['cloudProvider'][_0x43d911]={};const _0x292d2b=await _0x1a64f3['jEGcR'](inputCloudProviderKeys,_0x43d911,_0x429571,_0x5ecdd5);fs[_0x270c2f(0x28c)](_0x1a64f3[_0x270c2f(0x16e)](getCredentialsPath),JSON['stringify'](_0x292d2b)),logger['debug'](_0x1a64f3['szOwm']);}else{_0x178d2c=_0x1a64f3[_0x270c2f(0x25f)];const _0x2a6866={};_0x2a6866[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x2a6866[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x2a6866),logger[_0x270c2f(0x176)](_0x178d2c),await _0x5ecdd5[_0x270c2f(0x1b1)](_0x32628c);}_0x5ecdd5[_0x270c2f(0x256)]();let _0x56eac8;if(_0x1a64f3[_0x270c2f(0x225)](_0x377eee,![])){_0x178d2c=_0x270c2f(0x179)+_0x119ddd+').';const _0x2ac42c={};_0x2ac42c[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x2ac42c[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x2ac42c),logger['info'](_0x178d2c);const _0x2fc3f4=await _0x5ecdd5[_0x270c2f(0x15d)]();if(_0x2fc3f4){const _0x1d62a3={};_0x1d62a3[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x1d62a3[_0x270c2f(0x264)]=_0x270c2f(0x241)+_0x4b2d26+_0x270c2f(0x234),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x1d62a3,_0x1a64f3[_0x270c2f(0x287)]),logger['info']('Cluster\x20'+_0x4b2d26+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x377eee=!![];}else{const _0x414319={};_0x414319[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x414319['message']=_0x1a64f3[_0x270c2f(0x1ee)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x414319),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x1ee)]);const _0xc66033=_0x1a64f3[_0x270c2f(0x1d8)](_0x5c7d44,null)&&_0x1a64f3[_0x270c2f(0x169)](_0x5c7d44,undefined),_0x1060e7=_0x1a64f3[_0x270c2f(0x1d8)](subnets,null)&&_0x1a64f3[_0x270c2f(0x1e9)](subnets,undefined)&&_0x1a64f3[_0x270c2f(0x285)](subnets[_0x270c2f(0x161)],0x0);if(_0xc66033){_0x1a64f3[_0x270c2f(0x225)](_0x1060e7,![])&&(_0x178d2c=_0x1a64f3[_0x270c2f(0x267)],await _0x1a64f3['LbPSp'](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3['ckLBo'],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));const _0x574530=await _0x5ecdd5[_0x270c2f(0x1ae)](_0x5c7d44);_0x1a64f3[_0x270c2f(0x1ec)](_0x574530,![])?(_0x178d2c=_0x1a64f3[_0x270c2f(0x25e)],await _0x1a64f3[_0x270c2f(0x1a0)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x26a)],_0x1a64f3['obpuF']),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)):logger[_0x270c2f(0x176)]('Found\x20VPC:\x20'+_0x5c7d44+'\x20');const _0x2bce58=await _0x5ecdd5[_0x270c2f(0x1f6)](subnets,_0x5c7d44);_0x1a64f3[_0x270c2f(0x160)](_0x2bce58[0x0],![])?(_0x178d2c='Subnets:\x20'+_0x2bce58[0x1]+_0x270c2f(0x19f)+_0x5c7d44+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x1a64f3['SRqcP'](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x1db)],_0x1a64f3['obpuF']),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)):logger[_0x270c2f(0x176)]('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x5ecdd5[_0x270c2f(0x260)](_0x5c7d44,subnets);}else{const _0x23aef9=_0x1a64f3[_0x270c2f(0x284)][_0x270c2f(0x1ea)]('|');let _0x1c5af5=0x0;while(!![]){switch(_0x23aef9[_0x1c5af5++]){case'0':logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x228)]);continue;case'1':const _0x2c55f0={};_0x2c55f0[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x2c55f0[_0x270c2f(0x264)]=_0x270c2f(0x21e),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x2c55f0);continue;case'2':await _0x5ecdd5[_0x270c2f(0x260)]();continue;case'3':const _0x1d500d={};_0x1d500d[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x1d500d[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x22c)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x1d500d);continue;case'4':logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x22c)]);continue;}break;}}}}_0x377eee&&_0x1a64f3[_0x270c2f(0x1a3)](_0x43d911,AZURE)&&(global_registry[_0x270c2f(0x26c)]=_0xe11901[_0x270c2f(0x239)],await _0x5ecdd5[_0x270c2f(0x279)](),await _0x5ecdd5[_0x270c2f(0x1c3)]());const [_0x535cfd,_0x2a6a96,_0x352ef1,_0x15f3b3,_0x12d0b7,_0x4b4da1]=await _0x1a64f3['TXCPT'](createK8sClient,_0x5ecdd5);_0x1a64f3[_0x270c2f(0x231)](_0x377eee,![])&&_0x1a64f3['dakqp'](_0x43d911,AWS)&&(_0x56eac8=await _0x5ecdd5['setupAutoscaler'](_0x535cfd,_0x3e45d0));try{_0x356927=_0x1a64f3[_0x270c2f(0x26e)](kebabCase,_0xcc245e),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x235)]);const _0x4c3a22={};_0x4c3a22['type']=WS_EVENTS[_0x270c2f(0x23c)],_0x4c3a22[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x235)],webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x4c3a22);if(_0x1a64f3['COZyl'](_0x356927,_0x1a64f3[_0x270c2f(0x28a)])){const _0x16ebee={};_0x16ebee[_0x270c2f(0x1bc)]=_0x1a64f3[_0x270c2f(0x1c0)],_0x16ebee[_0x270c2f(0x211)]=_0x1a64f3[_0x270c2f(0x1c0)];const _0x152a25={};_0x152a25[_0x270c2f(0x246)]=_0x356927,_0x152a25['annotations']=_0x16ebee;const _0x58b619={};_0x58b619[_0x270c2f(0x1c1)]=_0x152a25;let _0x30bfdc=_0x58b619;await _0x535cfd[_0x270c2f(0x24b)](_0x30bfdc),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x22d)]);}const _0x55899d={};_0x55899d[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x55899d[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x1ab)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x55899d);const _0x51ea5e={};_0x51ea5e[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x51ea5e[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x192)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x51ea5e),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x209)]);let _0x1326a1={};_0x1a64f3['jqoqy'](_0x43d911,AZURE)&&(_0x1326a1={'clientId':await _0x5ecdd5[_0x270c2f(0x261)](_0x270c2f(0x1b5)+_0x4b2d26)});await _0x1a64f3[_0x270c2f(0x1d0)](addGridComponents,_0x535cfd,_0x2a6a96,_0x352ef1,_0x15f3b3,_0x356927,_0x4b2d26,_0x56eac8,_0x12d0b7,_0x4b4da1,_0x1326a1),_0x178d2c=_0x1a64f3[_0x270c2f(0x182)],logger['info'](_0x178d2c);const _0x5e97be={};_0x5e97be['type']=WS_EVENTS[_0x270c2f(0x23c)],_0x5e97be[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x5e97be),_0x178d2c=_0x1a64f3[_0x270c2f(0x20a)],logger[_0x270c2f(0x176)](_0x178d2c);const _0x4d8ab2={};_0x4d8ab2['type']=WS_EVENTS['LOG'],_0x4d8ab2[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x4d8ab2),await webSocketUtils[_0x270c2f(0x243)](0xea60);const _0x7d94b6=await _0x1a64f3[_0x270c2f(0x271)](getNamespaceUID,_0x535cfd,_0x356927);let _0xee56ae=global_registry[_0x270c2f(0x181)]?_0x1a64f3[_0x270c2f(0x191)]:_0x1a64f3['zDHCl'],_0x550ba3=await _0x535cfd[_0x270c2f(0x1ad)](_0xee56ae,_0x1a64f3[_0x270c2f(0x1fa)]),_0x4c6d6b=_0x5ecdd5[_0x270c2f(0x27b)](_0x550ba3)+'/'+_0x356927,_0x55f488=_0x1a64f3['SkfKL'];try{const _0x19268c={'url':_0x270c2f(0x240)+AG_API_URL+_0x270c2f(0x162)+_0x7d94b6,..._0x421882},_0x230c3a=_0x19268c,_0x2caa52=await _0x1a64f3[_0x270c2f(0x28e)](promisifiedRequest,_0x230c3a);(_0x1a64f3[_0x270c2f(0x1d9)](_0x2caa52,null)||_0x1a64f3[_0x270c2f(0x1d9)](_0x2caa52,undefined))&&(_0x178d2c=_0x1a64f3['WgrPE'],await _0x1a64f3[_0x270c2f(0x158)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x1f7)],_0x1a64f3['obpuF']),logger['error'](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));_0x1a64f3[_0x270c2f(0x1df)](_0x2caa52[_0x270c2f(0x245)],0x191)&&(_0x178d2c=_0x1a64f3[_0x270c2f(0x21c)],await _0x1a64f3[_0x270c2f(0x278)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x217)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));_0x1a64f3[_0x270c2f(0x1d6)](_0x2caa52[_0x270c2f(0x245)],0xc8)&&(_0x178d2c='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x270c2f(0x236)](_0x2caa52),await _0x1a64f3[_0x270c2f(0x171)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x1c9)],_0x1a64f3['obpuF']),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));const _0x10bd9a=JSON[_0x270c2f(0x288)](_0x2caa52['body']);_0x10bd9a[_0x270c2f(0x252)]&&(_0x4c6d6b=_0x10bd9a[_0x270c2f(0x252)],_0x55f488=_0x1a64f3[_0x270c2f(0x1ef)]),global_registry['isPrivateGrid']&&(_0x55f488=_0x1a64f3[_0x270c2f(0x174)]);}catch(_0x317404){}_0x178d2c='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x4c6d6b+'\x20',logger[_0x270c2f(0x176)](_0x178d2c);const _0x2e7a03={};_0x2e7a03[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x2e7a03[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x2e7a03),_0x178d2c=_0x270c2f(0x19e)+_0x55f488+_0x270c2f(0x1c8)+_0x4c6d6b+_0x270c2f(0x272),logger[_0x270c2f(0x176)](_0x178d2c);const _0x5df283={};_0x5df283[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x5df283[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x5df283);const _0x4e10df={};_0x4e10df[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x1da)],_0x4e10df[_0x270c2f(0x264)]=_0x270c2f(0x18e)+_0x4c6d6b,webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x4e10df),await webSocketUtils['delay'](0x7d0);}catch(_0x38336b){if(_0x1a64f3[_0x270c2f(0x28b)](_0x377eee,![]))try{logger[_0x270c2f(0x176)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x1a64f3[_0x270c2f(0x159)](removeGridComponents,_0x535cfd,_0x2a6a96,_0x352ef1,_0x15f3b3,_0x356927),await _0x5ecdd5['deleteCluster'](_0x535cfd,global_registry[_0x270c2f(0x1a5)]);}catch(_0x5efe74){throw _0x5efe74;}throw _0x38336b;}}catch(_0x4f3d2a){const _0x11c9c8='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x4f3d2a+'\x20\x0a'+JSON[_0x270c2f(0x236)](_0x4f3d2a)+'\x20';if(_0x2a11cc){const _0x208abb={};_0x208abb[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x208abb['message']=_0x11c9c8,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x208abb,_0x1a64f3[_0x270c2f(0x233)],!![]);}await webSocketUtils[_0x270c2f(0x243)](0x7d0);const _0x5dd66={};_0x5dd66[_0x270c2f(0x291)]=_0x11c9c8,await _0x1a64f3['JBLkF'](sendInstrumentationEvent,_0x3e45d0,_0x1a64f3[_0x270c2f(0x213)],messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x1b3)],_0x5dd66,_0x3e45d0),logger['error'](_0x11c9c8);}process['exit'](0x0);};
1
+ const a9_0x57a58d=a9_0x25a9;function a9_0x25a9(_0x55cc77,_0x2dda80){const _0x23021c=a9_0x2302();return a9_0x25a9=function(_0x25a96c,_0x12c27e){_0x25a96c=_0x25a96c-0x169;let _0x1f92a5=_0x23021c[_0x25a96c];return _0x1f92a5;},a9_0x25a9(_0x55cc77,_0x2dda80);}(function(_0x56a8a9,_0x5aa48e){const _0x15999e=a9_0x25a9,_0x294efa=_0x56a8a9();while(!![]){try{const _0x1b7ef8=-parseInt(_0x15999e(0x211))/0x1+parseInt(_0x15999e(0x1c3))/0x2+-parseInt(_0x15999e(0x1ac))/0x3+-parseInt(_0x15999e(0x207))/0x4*(-parseInt(_0x15999e(0x246))/0x5)+-parseInt(_0x15999e(0x200))/0x6*(parseInt(_0x15999e(0x1a3))/0x7)+-parseInt(_0x15999e(0x24b))/0x8*(-parseInt(_0x15999e(0x18a))/0x9)+parseInt(_0x15999e(0x199))/0xa;if(_0x1b7ef8===_0x5aa48e)break;else _0x294efa['push'](_0x294efa['shift']());}catch(_0x49dba0){_0x294efa['push'](_0x294efa['shift']());}}}(a9_0x2302,0x70d7f));const fs=require('fs'),ws=require('ws'),util=require(a9_0x57a58d(0x1a8)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require('request'),{v4:uuidv4}=require(a9_0x57a58d(0x249)),webSocketUtils=require(a9_0x57a58d(0x243)),{logger}=require(a9_0x57a58d(0x22f)),{inputCloudProviderKeys}=require(a9_0x57a58d(0x221)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x57a58d(0x1cf)),{getCloudProviderObject}=require(a9_0x57a58d(0x1d4)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x57a58d(0x270)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x57a58d(0x1c4)),{createK8sClient}=require(a9_0x57a58d(0x1a2)),{sendInstrumentationEvent}=require(a9_0x57a58d(0x287)),promisifiedRequest=util['promisify'](request);function a9_0x2302(){const _0x16e3f4=['subnets','isSubnetsValid','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.','gGTdD','djXnT','KVcPI','XVOkS','ZhGrS','createdBy','ybROE','ZJwuh','../../utils/instrumentationUtils','handler','ERROR','lEiUL','flFvZ','syfHO','WyEtu','gridProfileId','Namespace\x20Created','kPncF','aNrGS','user','fyddl','CLI_RUN_FINISHED','Browserstack','grid-profile','uGBZB','PAGSC','options','ZfScf','qmTlR','piSZu','instanceType','nHmgO','/packages/cli/create-grid-checks','LIofR','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','create-grid-checks-auth-failed','toLowerCase','split','ingress-nginx-controller','RSWEM','sendEventToBackend','\x20in\x20existing\x20cluster\x20\x27','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','pkVFX','writeFileSync','https://','9irEqGw','vpc','NQFyv','pusUq','existsSync','SJISx','CLI\x20run\x20started','metadata','route53','Create\x20a\x20new\x20Automation\x20grid.','epilogue','abfkv','parse','createOtherResources','private-ingress-nginx-controller','17344900rEDrjC','GzbiV','LEfnM','qbzpL','CLI_RUN_STARTED','deleteCluster','Grid\x20spawned\x20on\x20the\x20cluster','isPrivateGrid','description','../../utils/createk8sClient','91qVteLn','ixeMn','argv','xdYkp','lBpAT','util','username','IvZZK','LOG','2726808JTkISu','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','exit','maxNodes','minNodes','cloudProvider','DFLhl','lanOh','s3Bucket','ingress-nginx','private-grid','wnxcR','ljtMA','type','cloud-provider','ysciV','gridName','readNamespacedService','INFO','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','desc','KnpCp','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','1450qSsaCy','../../utils/gridComponents','EIdAW','iyXsB','ZHsnP','s3BucketName','yyWJZ','isVPCPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wyGXs','Spawning\x20Grid\x20on\x20the\x20Cluster','hmeLp','../../utils/utilityMethods','create','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zvBjN','CMogH','../../cloudproviders/utils','ORRtY','Found\x20Subnets:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Spawning\x20the\x20grid\x20','requestId','YdGMM','OgBdK','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','delay','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','\x27\x20grid\x20profile','iYyIU','UwhdA','ANeMC','JxBKP','non-aws-azure-cluster','create-grid-checks-grid-already-exists','DjVLF','stringify','create-grid-checks-invalid-profile','jUIXf','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Cluster\x20created\x20successfully','init-not-called','Subnets:\x20','ZiRsA','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','nLlKp','MQaqx','length','UnPbd','clusterRegion','Will\x20be\x20spawning\x20the\x20grid\x20','/packages/cli/get-grid-url?gridIdentifier=','slKZB','managedBy','\x20using\x20\x27','hQhKy','string','password','lsVxw','usage','308046HTMZyy','6|7|4|1|0|3|2|5|8','CLI\x20run\x20finished:\x20','bstackUsername','FeaKb','BSFtk','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','1275548FRMfbj','Cluster\x20','SoItc','cXZZI','fetchLocalCreds','getGridHostname','zjxHB','NLqyr','hANZa','browserVersion','60428OAVbbt','OMhuV','Yfkot','sVkAy','uxFWd','rtowi','RiqpE','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ctHQZ','BZdua','rMrpF','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','nBUYw','prlnU','FrxoH','cluster-name','../../utils/userInput','Create\x20a\x20private/public\x20grid.','Adding\x20Websocket\x20listeners','vfeVa','s3bucket','cicls','Aluhs','grid-spawning-failed','aRTNn','updatePreSpawnedCluster','gridProfile','setupAutoscaler','nNzyC','createNamespace','../../config/logger','ePSuR','http','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','configureIfNotConfigured','DUrsz','/wd/hub','isClusterPresent','gridProfiles','JJGHQ','GLfrz','alreadyPresent','emiDr','JAhSu','Found\x20VPC:\x20','pre-spawned-invalid-subnets','2|5|0|7|8|3|6|4|1','Namespace\x20created','Grid\x20profile\x20fetched\x20from\x20backend','body','../../utils/webSocketUtils','CdRXh','OoBkT','5JtZoOA','grid','hubVersion','uuid','EEoOj','359216jUfqlC','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','hHAyg','NUuOZ','HjXre','clusterName','default','VwgLz','true','xedYe','zCjPX','debug','error','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','UoDlZ','help','region','sIyin','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','YHxSm','FgXKZ','4|3|1|2|0','YlTWj','prespawned-cluster-args-not-passed','message','\x20are\x20not\x20present\x20in\x20VPC:\x20','Deleting\x20the\x20CloudFormation\x20Stacks','sHkko','bstackAccesskey','setupNewCluster','warn','kNKWX','MZRev','GNaIs','GET','defaultGridProfile','../../config/constants','turboscale-managed-identity-','name','<PasswordPlaceholder>','includes','info','privateGrid','statusCode','LCoij','zzjiv','zbPYB','kglRH'];a9_0x2302=function(){return _0x16e3f4;};return a9_0x2302();}exports['command']=a9_0x57a58d(0x247),exports[a9_0x57a58d(0x1c0)]=a9_0x57a58d(0x193),exports['builder']=function(_0x212262){const _0x5f3d55=a9_0x57a58d,_0x518f88={};_0x518f88[_0x5f3d55(0x1aa)]=_0x5f3d55(0x25d),_0x518f88[_0x5f3d55(0x24e)]='string',_0x518f88[_0x5f3d55(0x245)]=_0x5f3d55(0x206),_0x518f88[_0x5f3d55(0x19c)]=_0x5f3d55(0x1d7),_0x518f88[_0x5f3d55(0x195)]=_0x5f3d55(0x1cb),_0x518f88[_0x5f3d55(0x224)]=_0x5f3d55(0x25e),_0x518f88[_0x5f3d55(0x1a4)]=_0x5f3d55(0x222),_0x518f88[_0x5f3d55(0x21d)]=_0x5f3d55(0x25a);const _0x37cb8f=_0x518f88,_0x9165f={};_0x9165f['description']=_0x37cb8f['IvZZK'],_0x9165f[_0x5f3d55(0x1b9)]=_0x37cb8f[_0x5f3d55(0x24e)];const _0x174b2b={};_0x174b2b['description']=_0x37cb8f[_0x5f3d55(0x245)],_0x174b2b['type']=_0x37cb8f[_0x5f3d55(0x24e)];const _0x1073f2={};_0x1073f2[_0x5f3d55(0x1a1)]=_0x37cb8f[_0x5f3d55(0x19c)],_0x1073f2['type']=_0x37cb8f[_0x5f3d55(0x24e)];const _0xff2b={};_0xff2b[_0x5f3d55(0x1a1)]=_0x37cb8f[_0x5f3d55(0x195)],_0xff2b['type']=_0x37cb8f[_0x5f3d55(0x24e)];const _0x11a75b={};_0x11a75b[_0x5f3d55(0x1a1)]=_0x37cb8f['vfeVa'],_0x11a75b[_0x5f3d55(0x1b9)]=_0x37cb8f[_0x5f3d55(0x24e)];const _0x312875={};_0x312875[_0x5f3d55(0x1a1)]=_0x37cb8f['ixeMn'],_0x312875[_0x5f3d55(0x1b9)]=_0x37cb8f[_0x5f3d55(0x24e)];const _0x474843={};return _0x474843['grid-name']=_0x9165f,_0x474843[_0x5f3d55(0x172)]=_0x174b2b,_0x474843['cluster-name']=_0x1073f2,_0x474843[_0x5f3d55(0x1ba)]=_0xff2b,_0x474843['region']=_0x11a75b,_0x474843[_0x5f3d55(0x1b6)]=_0x312875,_0x212262[_0x5f3d55(0x1ff)](HELP_HEADER_MESSAGE[_0x5f3d55(0x1d0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f3d55(0x175)](_0x474843)[_0x5f3d55(0x25a)](_0x37cb8f[_0x5f3d55(0x21d)])[_0x5f3d55(0x1a5)];},exports[a9_0x57a58d(0x288)]=async function(_0x2eafee){const _0x2db0da=a9_0x57a58d,_0x2d2003={'EIdAW':'https','piSZu':'error','wnxcR':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','SJISx':_0x2db0da(0x26a),'flFvZ':_0x2db0da(0x231),'ybROE':_0x2db0da(0x25d),'lanOh':_0x2db0da(0x1fc),'QNPIH':_0x2db0da(0x206),'ANeMC':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','iYyIU':_0x2db0da(0x1cb),'WyEtu':_0x2db0da(0x25e),'KnpCp':'Create\x20a\x20private/public\x20grid.','FeaKb':'help','nLlKp':_0x2db0da(0x23f),'nHmgO':function(_0x2454a3){return _0x2454a3();},'VwgLz':function(_0x3a199b,_0x153664){return _0x3a199b!==_0x153664;},'hANZa':_0x2db0da(0x176),'ORRtY':_0x2db0da(0x1d1),'iyXsB':function(_0x96bc89,_0x352cb0,_0x345af3,_0x501232,_0x1cf2e0,_0x960aeb,_0x37797e){return _0x96bc89(_0x352cb0,_0x345af3,_0x501232,_0x1cf2e0,_0x960aeb,_0x37797e);},'YlTWj':'create-grid-called','REewm':_0x2db0da(0x1ed),'gzpBd':function(_0xf1aaba){return _0xf1aaba();},'ULoOa':'<UsernamePlaceholder>','sVkAy':_0x2db0da(0x273),'prlnU':_0x2db0da(0x223),'syfHO':function(_0x40cdea,_0x37f51a){return _0x40cdea===_0x37f51a;},'FBaax':_0x2db0da(0x259),'MZRev':function(_0x1e2ec4,_0x3fb726){return _0x1e2ec4===_0x3fb726;},'LIofR':_0x2db0da(0x280),'WtOxA':_0x2db0da(0x1f0),'Yfkot':function(_0x1b76bd,_0x244885,_0x37c6a5,_0x3f7a9d,_0x27dc48,_0x131d0c,_0x5bd9d5,_0x4d2c43){return _0x1b76bd(_0x244885,_0x37c6a5,_0x3f7a9d,_0x27dc48,_0x131d0c,_0x5bd9d5,_0x4d2c43);},'QANRx':_0x2db0da(0x263),'LEfnM':function(_0x5492d6,_0x555bd3){return _0x5492d6!==_0x555bd3;},'jUIXf':_0x2db0da(0x18c),'GzbiV':_0x2db0da(0x218),'MQaqx':_0x2db0da(0x1e5),'SkCYT':function(_0x25aaa8,_0x19bcc2){return _0x25aaa8===_0x19bcc2;},'zjxHB':_0x2db0da(0x253),'wyGXs':function(_0x4593b8,_0x1fd50f){return _0x4593b8!==_0x1fd50f;},'aRTNn':_0x2db0da(0x1b2),'DxFTT':'vVQjb','zzjiv':'LDcnO','sbVrP':_0x2db0da(0x26e),'ZhGrS':function(_0xc579a7,_0x5a82a9){return _0xc579a7(_0x5a82a9);},'EEoOj':function(_0x4f14e3,_0x1bf3e8){return _0x4f14e3===_0x1bf3e8;},'NLqyr':function(_0x2e636a,_0x5d9bbe){return _0x2e636a===_0x5d9bbe;},'pusUq':_0x2db0da(0x27b),'IBnAU':_0x2db0da(0x1dc),'rMrpF':'create-grid-checks-null-response','sIyin':function(_0x598a09,_0x5d5258){return _0x598a09===_0x5d5258;},'PAGSC':function(_0xf0306,_0x4d9105){return _0xf0306!==_0x4d9105;},'RSWEM':_0x2db0da(0x1f4),'jjGLL':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hQhKy':_0x2db0da(0x17e),'kPncF':function(_0x4c47a9,_0x21581c){return _0x4c47a9!==_0x21581c;},'ljtMA':_0x2db0da(0x1bb),'lvcnI':'LAmxs','lBpAT':'create-grid-checks-non-200','CdRXh':_0x2db0da(0x241),'Raqhq':'dWwIT','GLfrz':_0x2db0da(0x219),'HjXre':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','dZOjW':_0x2db0da(0x1e6),'OgBdK':_0x2db0da(0x1da),'yyWJZ':function(_0x53510d,_0x5bc8bd){return _0x53510d!==_0x5bc8bd;},'uxFWd':_0x2db0da(0x267),'AWcPs':function(_0x34e449,_0x447e41){return _0x34e449===_0x447e41;},'cicls':_0x2db0da(0x212),'xdYkp':_0x2db0da(0x186),'BSFtk':_0x2db0da(0x1e9),'qmTlR':'EMHRQ','ePSuR':_0x2db0da(0x282),'gGTdD':_0x2db0da(0x24d),'aNrGS':function(_0x57f5b1,_0x2d4188,_0x1ea1d6,_0x11b44f,_0x3e3c9e,_0x1c2e11,_0x3bf40f,_0x23858e,_0x4395ef,_0x541e82,_0x1ebfb0,_0x1e6d31){return _0x57f5b1(_0x2d4188,_0x1ea1d6,_0x11b44f,_0x3e3c9e,_0x1c2e11,_0x3bf40f,_0x23858e,_0x4395ef,_0x541e82,_0x1ebfb0,_0x1e6d31);},'WKhZw':_0x2db0da(0x201),'LCoij':function(_0x21bb44,_0x3ee14e,_0x427fa7,_0x48fc18,_0xc3f9c0,_0x2e8ea8){return _0x21bb44(_0x3ee14e,_0x427fa7,_0x48fc18,_0xc3f9c0,_0x2e8ea8);},'ueWxU':_0x2db0da(0x21c),'ZiRsA':function(_0x29ca2f,_0x59d36d){return _0x29ca2f===_0x59d36d;},'zCjPX':function(_0x501a14,_0x208326,_0xf6ca66,_0x4dc657){return _0x501a14(_0x208326,_0xf6ca66,_0x4dc657);},'rtowi':_0x2db0da(0x1de),'fUNqC':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','BZdua':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','FgXKZ':function(_0x23a26d,_0x5e9384){return _0x23a26d!=_0x5e9384;},'JJGHQ':function(_0x301594,_0x3cb8c3){return _0x301594>_0x3cb8c3;},'pkVFX':_0x2db0da(0x1ad),'zbPYB':'pre-spawned-subnets-not-selected','UwhdA':_0x2db0da(0x17d),'cXZZI':'pre-spawned-invalid-vpc','hmeLp':function(_0x209a77,_0x140116){return _0x209a77===_0x140116;},'FizZH':function(_0xf2db1a,_0x3206c1,_0x1ac6c5,_0x5918de,_0x3b8bed,_0x157b2d,_0x3020e1,_0x4096cc){return _0xf2db1a(_0x3206c1,_0x1ac6c5,_0x5918de,_0x3b8bed,_0x157b2d,_0x3020e1,_0x4096cc);},'FrxoH':_0x2db0da(0x23e),'CMogH':_0x2db0da(0x261),'DUrsz':_0x2db0da(0x1ec),'JAhSu':_0x2db0da(0x27e),'nNzyC':function(_0x171a92,_0xfe7913){return _0x171a92===_0xfe7913;},'DjVLF':function(_0x476593,_0x2302aa){return _0x476593==_0x2302aa;},'pDiEx':'Creating\x20namespace','GWbwJ':function(_0x1ed4ce,_0x1eed10){return _0x1ed4ce!==_0x1eed10;},'SoItc':_0x2db0da(0x251),'GNaIs':_0x2db0da(0x171),'VsPFA':_0x2db0da(0x16b),'EGeod':_0x2db0da(0x240),'emiDr':_0x2db0da(0x185),'JxBKP':_0x2db0da(0x1cd),'Aluhs':function(_0x505d1d,_0x57e038,_0x426f1f,_0x413356,_0x21d56c,_0x120f9a,_0x21c7fb,_0x7b7661,_0x555699,_0x2e4503,_0x35abf0){return _0x505d1d(_0x57e038,_0x426f1f,_0x413356,_0x21d56c,_0x120f9a,_0x21c7fb,_0x7b7661,_0x555699,_0x2e4503,_0x35abf0);},'kNKWX':_0x2db0da(0x19f),'YHxSm':_0x2db0da(0x1c2),'RiqpE':function(_0x43fc80,_0x57f6f7,_0x5d091d){return _0x43fc80(_0x57f6f7,_0x5d091d);},'IgOvJ':_0x2db0da(0x198),'slKZB':_0x2db0da(0x181),'uGBZB':_0x2db0da(0x1b5),'lEiUL':function(_0x150497,_0x3e7c8a){return _0x150497(_0x3e7c8a);},'NluDU':function(_0x21ce09,_0x1eeb64){return _0x21ce09==_0x1eeb64;},'lsVxw':_0x2db0da(0x232),'fyddl':function(_0x2a0427,_0x461967,_0x24e372,_0x7f96f5,_0x4af6c5,_0x3219bf,_0x355e6e,_0x1cffee){return _0x2a0427(_0x461967,_0x24e372,_0x7f96f5,_0x4af6c5,_0x3219bf,_0x355e6e,_0x1cffee);},'KVcPI':'get-grid-url-null-response','ZJwuh':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','zvBjN':function(_0x314891,_0x77a0f9,_0x26b034,_0x1a8cf0,_0x5cc11f,_0x51ed01,_0x146a62,_0x2655a){return _0x314891(_0x77a0f9,_0x26b034,_0x1a8cf0,_0x5cc11f,_0x51ed01,_0x146a62,_0x2655a);},'NWDVk':'get-grid-url-auth-failed','ZHsnP':function(_0x31f894,_0x1189d0){return _0x31f894!==_0x1189d0;},'xedYe':'get-grid-url-non-200','DYAyP':function(_0x20a52e,_0x36cb48){return _0x20a52e===_0x36cb48;},'foNzi':function(_0x16152c,_0x173abf,_0x48be0a,_0x46ceeb,_0x11ce8f,_0x45f81d,_0x1ace04){return _0x16152c(_0x173abf,_0x48be0a,_0x46ceeb,_0x11ce8f,_0x45f81d,_0x1ace04);},'sMDoB':_0x2db0da(0x228)};let _0x288c0b=![],_0x2f624c,_0x5ae78e,_0x3e24eb,_0x4433b3,_0x307d27,_0x40e977,_0x3fd7bc,_0x1cbd7f,_0x281eb2,_0x3e9446,_0x3fefbb,_0xc20db5,_0x43bed7=0x1,_0x3e4a0a=0xe;try{global_registry[_0x2db0da(0x1d9)]=_0x2d2003[_0x2db0da(0x17a)](uuidv4),global_registry[_0x2db0da(0x1a0)]=![];if(!fs[_0x2db0da(0x18e)](_0x2d2003[_0x2db0da(0x17a)](getCredentialsPath))){if(_0x2d2003[_0x2db0da(0x252)](_0x2d2003['hANZa'],_0x2d2003[_0x2db0da(0x20f)]))throw _0x13133c;else console[_0x2db0da(0x257)](_0x2d2003[_0x2db0da(0x1d5)]),await _0x2d2003[_0x2db0da(0x1c6)](sendInstrumentationEvent,_0x2eafee,_0x2d2003['YlTWj'],messageTypes[_0x2db0da(0x289)],_0x2d2003['REewm'],null,_0x2eafee),process[_0x2db0da(0x1ae)](0x1);}await _0x2d2003[_0x2db0da(0x1c6)](sendInstrumentationEvent,_0x2eafee,_0x2d2003[_0x2db0da(0x262)],messageTypes[_0x2db0da(0x1be)],null,null,_0x2eafee);const _0x11268d=JSON[_0x2db0da(0x196)](fs['readFileSync'](_0x2d2003['gzpBd'](getCredentialsPath)));global_registry[_0x2db0da(0x203)]=_0x11268d['Browserstack'][_0x2db0da(0x1a9)],global_registry[_0x2db0da(0x268)]=_0x11268d[_0x2db0da(0x171)]['password'];const _0x5cc4cc=WS_ENDPOINT['replace'](_0x2d2003['ULoOa'],_0x11268d[_0x2db0da(0x171)][_0x2db0da(0x1a9)])['replace'](_0x2d2003[_0x2db0da(0x214)],_0x11268d[_0x2db0da(0x171)]['password']),_0x718427={};_0x718427['WebSocket']=ws,_0x718427['connectionTimeout']=0x36ee80,_0x3e9446=new ReconnectingWebSocket(_0x5cc4cc,[],_0x718427),logger['debug'](_0x2d2003[_0x2db0da(0x21e)]),webSocketUtils['addListeners'](_0x3e9446,_0x2eafee[_0x2db0da(0x16e)],_0x2eafee['password']);let _0xa503a2=DEFAULT_GRID_NAME;if(_0x2eafee[_0x2db0da(0x250)]||_0x2eafee[_0x2db0da(0x1b1)]||_0x2eafee[_0x2db0da(0x25b)]){if(_0x2d2003[_0x2db0da(0x28c)](_0x2d2003['FBaax'],_0x2d2003['FBaax'])){!(_0x2eafee[_0x2db0da(0x250)]&&_0x2eafee['cloudProvider']&&_0x2eafee['region'])&&(_0x2d2003[_0x2db0da(0x26c)](_0x2d2003[_0x2db0da(0x17c)],_0x2d2003[_0x2db0da(0x17c)])?(_0x2f624c=_0x2d2003['WtOxA'],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003['QANRx'],_0x2d2003[_0x2db0da(0x178)]),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):(_0x558599=_0x11d36d[_0x2db0da(0x192)],_0x558928=_0x2d2003['EIdAW']));![AWS,AZURE,GCP][_0x2db0da(0x274)](_0x2eafee['cloudProvider']['toLowerCase']())&&(_0x2d2003[_0x2db0da(0x19b)](_0x2d2003[_0x2db0da(0x1ea)],_0x2d2003[_0x2db0da(0x1ea)])?_0x1af200[_0x2db0da(0x1a0)]=!![]:(_0x2f624c=_0x2d2003[_0x2db0da(0x19a)],await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x1f2)],_0x2d2003[_0x2db0da(0x178)]),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)));if(_0x2eafee[_0x2db0da(0x276)]&&_0x2d2003['SkCYT'](_0x2eafee[_0x2db0da(0x276)][_0x2db0da(0x17f)](),_0x2d2003[_0x2db0da(0x20d)])){if(_0x2d2003[_0x2db0da(0x1cc)](_0x2d2003[_0x2db0da(0x229)],_0x2d2003[_0x2db0da(0x229)])){const _0x164007={};_0x164007[_0x2db0da(0x1b9)]=_0x304c48[_0x2db0da(0x1ab)],_0x164007['message']=_0x4cfade,_0xa7143b[_0x2db0da(0x183)](_0x35d4fa,_0x164007,_0x2d2003['piSZu'],!![]);}else global_registry[_0x2db0da(0x1a0)]=!![];}_0x288c0b=!![],_0x3e24eb=_0x2eafee['clusterName'],_0x5ae78e=_0x2eafee[_0x2db0da(0x1b1)][_0x2db0da(0x17f)](),_0x4433b3=_0x2eafee[_0x2db0da(0x25b)];}else _0x1b5f83=_0x1564fd[_0x2db0da(0x1bc)];}_0x2eafee[_0x2db0da(0x1bc)]&&(_0x2d2003[_0x2db0da(0x19b)](_0x2d2003['DxFTT'],_0x2d2003[_0x2db0da(0x279)])?_0xa503a2=_0x2eafee[_0x2db0da(0x1bc)]:(_0xb9477f['error'](_0x2d2003[_0x2db0da(0x1b7)]),_0x116ebf[_0x2db0da(0x1ae)](0x1)));global_registry['gridName']=_0xa503a2;const _0x6aa83d={};_0x6aa83d[_0x2db0da(0x1a9)]=_0x11268d[_0x2db0da(0x171)]['username'],_0x6aa83d[_0x2db0da(0x1fd)]=_0x11268d[_0x2db0da(0x171)][_0x2db0da(0x1fd)];const _0x52d74b={};_0x52d74b['method']=_0x2d2003['sbVrP'],_0x52d74b['auth']=_0x6aa83d;const _0x28c126=_0x52d74b,_0x229159='https://'+AG_API_URL+_0x2db0da(0x17b),_0x1568b6={};_0x1568b6[_0x2db0da(0x1bc)]=_0xa503a2;const _0xd165d3={'url':_0x229159,'qs':_0x1568b6,..._0x28c126},_0x283afd=_0xd165d3,_0x555be8=await _0x2d2003['ZhGrS'](promisifiedRequest,_0x283afd);if(_0x2d2003[_0x2db0da(0x24a)](_0x555be8,null)||_0x2d2003['EEoOj'](_0x555be8,undefined)){if(_0x2d2003[_0x2db0da(0x20e)](_0x2d2003[_0x2db0da(0x18d)],_0x2d2003[_0x2db0da(0x18d)]))_0x2f624c=_0x2d2003['IBnAU'],await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003['YlTWj'],_0x2d2003[_0x2db0da(0x21b)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1);else{const _0x336333={};_0x336333[_0x2db0da(0x1b9)]=_0x46bb90[_0x2db0da(0x1ab)],_0x336333[_0x2db0da(0x264)]='Cluster\x20'+_0x2cd641+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x1e80ea[_0x2db0da(0x183)](_0x5c69f5,_0x336333,_0x2d2003['SJISx']),_0x36e6bb[_0x2db0da(0x275)](_0x2db0da(0x208)+_0x1bb360+_0x2db0da(0x1eb)),_0x1a04b8=!![];}}_0x2d2003[_0x2db0da(0x25c)](_0x555be8[_0x2db0da(0x277)],0x191)&&(_0x2d2003[_0x2db0da(0x174)](_0x2d2003['RSWEM'],_0x2d2003[_0x2db0da(0x182)])?_0x2caba7[_0x2db0da(0x275)](_0x2db0da(0x23d)+_0x2f01b+'\x20'):(_0x2f624c=_0x2d2003['jjGLL'],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x1fb)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)));_0x2d2003['kPncF'](_0x555be8['statusCode'],0xc8)&&(_0x2d2003[_0x2db0da(0x19b)](_0x2d2003[_0x2db0da(0x1b8)],_0x2d2003['lvcnI'])?(_0x2f624c=_0x2db0da(0x1df)+JSON[_0x2db0da(0x1e8)](_0x555be8),await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x1a7)],_0x2d2003['piSZu']),logger['error'](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):_0x5660e9[_0x2db0da(0x1a0)]=!![]);const _0xedb62b=JSON[_0x2db0da(0x196)](_0x555be8['body']),_0x32762a={};_0x32762a[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x19d)],_0x32762a[_0x2db0da(0x264)]='CLI\x20run\x20started',webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x32762a);const _0x11be5b={};_0x11be5b[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x11be5b['message']=_0x2d2003[_0x2db0da(0x244)],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x11be5b);_0xedb62b[_0x2db0da(0x23a)]&&(_0x2d2003['LEfnM'](_0x2d2003['Raqhq'],_0x2d2003[_0x2db0da(0x239)])?(_0x2f624c=_0x2d2003[_0x2db0da(0x24f)],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003['dZOjW'],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):_0x18e823=_0x2d2003[_0x2db0da(0x28b)]);const _0x2e3893=_0xedb62b[_0x2db0da(0x237)];let _0x1e8b6e=_0x2e3893[_0xedb62b[_0x2db0da(0x26f)]];_0x2eafee[_0x2db0da(0x22b)]&&(_0x2d2003[_0x2db0da(0x16c)](_0x2d2003[_0x2db0da(0x1db)],_0x2d2003[_0x2db0da(0x1db)])?_0x5c9ca8=_0x4ea652[_0x5eb83e[_0x2db0da(0x22b)]]:_0x1e8b6e=_0x2e3893[_0x2eafee[_0x2db0da(0x22b)]]);if(_0x2d2003[_0x2db0da(0x25c)](_0x288c0b,![])){if(_0x2d2003[_0x2db0da(0x1c9)](_0x2d2003[_0x2db0da(0x215)],_0x2d2003['uxFWd'])){const _0x4810e5={};_0x4810e5[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x285)],_0x4810e5[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x2c0357={};_0x2c0357[_0x2db0da(0x1a1)]=_0x2d2003['QNPIH'],_0x2c0357[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x21ef2a={};_0x21ef2a[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x1e3)],_0x21ef2a[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x346dca={};_0x346dca[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x1e1)],_0x346dca[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x3d4f16={};_0x3d4f16[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x169)],_0x3d4f16[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x1d0879={};_0x1d0879[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x1c1)],_0x1d0879[_0x2db0da(0x1b9)]=_0x2d2003['lanOh'];const _0x43c8ba={};return _0x43c8ba['grid-name']=_0x4810e5,_0x43c8ba[_0x2db0da(0x172)]=_0x2c0357,_0x43c8ba[_0x2db0da(0x220)]=_0x21ef2a,_0x43c8ba[_0x2db0da(0x1ba)]=_0x346dca,_0x43c8ba[_0x2db0da(0x25b)]=_0x3d4f16,_0x43c8ba['private-grid']=_0x1d0879,_0x212f75[_0x2db0da(0x1ff)](_0x108fb3[_0x2db0da(0x1d0)])[_0x2db0da(0x194)](_0x368d44)[_0x2db0da(0x175)](_0x43c8ba)['help'](_0x2d2003[_0x2db0da(0x204)])[_0x2db0da(0x1a5)];}else{if(_0x2d2003['AWcPs'](_0x1e8b6e,undefined)){if(_0x2d2003['wyGXs'](_0x2d2003[_0x2db0da(0x226)],_0x2d2003[_0x2db0da(0x226)])){const _0x4ab973=_0x2d2003[_0x2db0da(0x1f1)][_0x2db0da(0x180)]('|');let _0x1db28f=0x0;while(!![]){switch(_0x4ab973[_0x1db28f++]){case'0':_0x325abb[_0x2db0da(0x275)](_0x56b41b);continue;case'1':_0x5dcfbd[_0x2db0da(0x210)]=_0x1d21ec['browserVersion'];continue;case'2':const _0x3b6a79={};_0x3b6a79[_0x2db0da(0x1b9)]=_0x191dca[_0x2db0da(0x19d)],_0x3b6a79[_0x2db0da(0x264)]=_0x2db0da(0x190),_0x56f814[_0x2db0da(0x183)](_0x49fa40,_0x3b6a79);continue;case'3':_0x32bdaf['clusterRegion']=_0x22829f;continue;case'4':_0xf7370c['hubVersion']=_0x2f0ce2['hubVersion'];continue;case'5':_0x5d44de=_0x2db0da(0x1d8)+_0x2ded5b+_0x2db0da(0x184)+_0x4ec54c+'\x27';continue;case'6':_0x984440[_0x2db0da(0x250)]=_0x13069c;continue;case'7':const _0x40afea={};_0x40afea[_0x2db0da(0x1b9)]=_0x11fa08[_0x2db0da(0x1ab)],_0x40afea[_0x2db0da(0x264)]=_0x40e616,_0x5e7f7c['sendEventToBackend'](_0x1cd593,_0x40afea);continue;case'8':_0x4d12eb[_0x2db0da(0x1b1)]=_0x2c4c52;continue;}break;}}else _0x2f624c=_0x2d2003[_0x2db0da(0x1a6)],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x205)],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process[_0x2db0da(0x1ae)](0x1);}global_registry[_0x2db0da(0x16a)]=_0x1e8b6e['id'];(_0x2d2003[_0x2db0da(0x25c)](_0x5ae78e,AZURE)||_0x2d2003[_0x2db0da(0x28c)](_0x1e8b6e?.[_0x2db0da(0x1b1)],AZURE))&&(_0x2d2003[_0x2db0da(0x1cc)](_0x2d2003[_0x2db0da(0x177)],_0x2d2003[_0x2db0da(0x230)])?(console[_0x2db0da(0x257)](_0x2d2003[_0x2db0da(0x1b7)]),process['exit'](0x1)):_0x6ceef[_0x2db0da(0x1b1)]={});_0x2f624c=_0x2db0da(0x1f6)+_0xa503a2+_0x2db0da(0x1fa)+_0x1e8b6e[_0x2db0da(0x272)]+_0x2db0da(0x1e0),logger['info'](_0x2f624c);const _0x388cc8={};_0x388cc8[_0x2db0da(0x1b9)]=WS_EVENTS['LOG'],_0x388cc8[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x388cc8),_0x5ae78e=_0x1e8b6e[_0x2db0da(0x1b1)],_0x3e24eb=_0x1e8b6e[_0x2db0da(0x250)],_0x4433b3=_0x1e8b6e['region'],_0x307d27=_0x1e8b6e['concurrency'],_0x40e977=_0x1e8b6e[_0x2db0da(0x179)],_0x3fd7bc=_0x1e8b6e[_0x2db0da(0x18b)],securityGroups=_0x1e8b6e['securityGroups'],subnets=_0x1e8b6e[_0x2db0da(0x27c)],_0x1cbd7f=_0x1e8b6e[_0x2db0da(0x225)],_0x43bed7=_0x1e8b6e[_0x2db0da(0x1b0)],_0x3e4a0a=_0x1e8b6e[_0x2db0da(0x1af)],_0x3fefbb=_0xedb62b['hubVersion'],_0xc20db5=_0xedb62b[_0x2db0da(0x210)],_0x2d2003['wyGXs'](_0x1e8b6e[_0x2db0da(0x276)],undefined)&&_0x1e8b6e[_0x2db0da(0x276)]&&(_0x2d2003[_0x2db0da(0x25c)](_0x2d2003[_0x2db0da(0x27f)],_0x2d2003[_0x2db0da(0x27f)])?global_registry['isPrivateGrid']=!![]:_0x151eaa[_0x2db0da(0x275)](_0x2db0da(0x1d6)+_0x618742[_0x2db0da(0x1e8)](_0x23ea4b)+'\x20')),_0x2d2003[_0x2db0da(0x16d)](updateGlobalRegistryWithConfig,_0x5ae78e,_0x3e24eb,_0x4433b3,_0x307d27,_0x40e977,_0x1cbd7f,_0x1e8b6e,_0x3fefbb,_0xc20db5,_0x43bed7,_0x3e4a0a);}}else{const _0x228185=_0x2d2003['WKhZw']['split']('|');let _0x3e8240=0x0;while(!![]){switch(_0x228185[_0x3e8240++]){case'0':global_registry[_0x2db0da(0x1b1)]=_0x5ae78e;continue;case'1':const _0x1b8fe4={};_0x1b8fe4[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x1b8fe4[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x1b8fe4);continue;case'2':global_registry[_0x2db0da(0x250)]=_0x3e24eb;continue;case'3':global_registry[_0x2db0da(0x1f5)]=_0x4433b3;continue;case'4':logger[_0x2db0da(0x275)](_0x2f624c);continue;case'5':global_registry[_0x2db0da(0x248)]=_0xedb62b[_0x2db0da(0x248)];continue;case'6':const _0x5dbf98={};_0x5dbf98[_0x2db0da(0x1b9)]=WS_EVENTS['CLI_RUN_STARTED'],_0x5dbf98[_0x2db0da(0x264)]=_0x2db0da(0x190),webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x5dbf98);continue;case'7':_0x2f624c=_0x2db0da(0x1d8)+_0xa503a2+_0x2db0da(0x184)+_0x3e24eb+'\x27';continue;case'8':global_registry[_0x2db0da(0x210)]=_0xedb62b[_0x2db0da(0x210)];continue;}break;}}const _0x1b08e3=_0x2d2003[_0x2db0da(0x278)](getCloudProviderObject,_0x5ae78e,_0x3e24eb,_0xa503a2,_0x3e9446,webSocketUtils),_0x4d668d=_0x11268d[_0x2db0da(0x1b1)]||{};if(_0x2d2003[_0x2db0da(0x26c)](_0x4d668d[_0x5ae78e],undefined)){logger[_0x2db0da(0x275)](_0x2d2003['ueWxU']);_0x2d2003['ZiRsA'](_0x11268d[_0x2db0da(0x1b1)],undefined)&&(_0x11268d[_0x2db0da(0x1b1)]={});_0x11268d[_0x2db0da(0x1b1)][_0x5ae78e]={};const _0x5ad5f1=await _0x2d2003[_0x2db0da(0x255)](inputCloudProviderKeys,_0x5ae78e,_0x11268d,_0x1b08e3);fs[_0x2db0da(0x188)](_0x2d2003[_0x2db0da(0x17a)](getCredentialsPath),JSON[_0x2db0da(0x1e8)](_0x5ad5f1)),logger[_0x2db0da(0x256)](_0x2d2003[_0x2db0da(0x216)]);}else{_0x2f624c=_0x2d2003['fUNqC'];const _0x2f62af={};_0x2f62af[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x2f62af[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x2f62af),logger[_0x2db0da(0x275)](_0x2f624c),await _0x1b08e3[_0x2db0da(0x20b)](_0x4d668d);}_0x1b08e3[_0x2db0da(0x233)]();let _0x5d3512;if(_0x2d2003[_0x2db0da(0x1ef)](_0x288c0b,![])){_0x2f624c=_0x2db0da(0x24c)+_0x4433b3+').';const _0x23cf24={};_0x23cf24[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x23cf24[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x23cf24),logger[_0x2db0da(0x275)](_0x2f624c);const _0x424b53=await _0x1b08e3[_0x2db0da(0x236)]();if(_0x424b53){const _0x179964={};_0x179964[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x179964[_0x2db0da(0x264)]='Cluster\x20'+_0x3e24eb+_0x2db0da(0x1eb),webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x179964,_0x2d2003[_0x2db0da(0x18f)]),logger[_0x2db0da(0x275)](_0x2db0da(0x208)+_0x3e24eb+_0x2db0da(0x1eb)),_0x288c0b=!![];}else{const _0x1ce7e3={};_0x1ce7e3[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x1ce7e3[_0x2db0da(0x264)]=_0x2d2003[_0x2db0da(0x21a)],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x1ce7e3),logger[_0x2db0da(0x275)](_0x2d2003[_0x2db0da(0x21a)]);const _0x309d7a=_0x2d2003['FgXKZ'](_0x3fd7bc,null)&&_0x2d2003['yyWJZ'](_0x3fd7bc,undefined),_0x1e3246=_0x2d2003[_0x2db0da(0x260)](subnets,null)&&_0x2d2003[_0x2db0da(0x174)](subnets,undefined)&&_0x2d2003[_0x2db0da(0x238)](subnets[_0x2db0da(0x1f3)],0x0);if(_0x309d7a){_0x2d2003[_0x2db0da(0x1ef)](_0x1e3246,![])&&(_0x2f624c=_0x2d2003[_0x2db0da(0x187)],await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x27a)],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process[_0x2db0da(0x1ae)](0x1));const _0x2f0810=await _0x1b08e3[_0x2db0da(0x1ca)](_0x3fd7bc);_0x2d2003[_0x2db0da(0x20e)](_0x2f0810,![])?(_0x2f624c=_0x2d2003[_0x2db0da(0x1e2)],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x20a)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):logger[_0x2db0da(0x275)](_0x2db0da(0x23d)+_0x3fd7bc+'\x20');const _0x1da3df=await _0x1b08e3[_0x2db0da(0x27d)](subnets,_0x3fd7bc);_0x2d2003[_0x2db0da(0x1ce)](_0x1da3df[0x0],![])?(_0x2f624c=_0x2db0da(0x1ee)+_0x1da3df[0x1]+_0x2db0da(0x265)+_0x3fd7bc+_0x2db0da(0x1bf),await _0x2d2003['FizZH'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x21f)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process['exit'](0x1)):logger[_0x2db0da(0x275)](_0x2db0da(0x1d6)+JSON[_0x2db0da(0x1e8)](subnets)+'\x20'),await _0x1b08e3[_0x2db0da(0x269)](_0x3fd7bc,subnets);}else{const _0x3aa901=_0x2d2003[_0x2db0da(0x1d3)][_0x2db0da(0x180)]('|');let _0x442623=0x0;while(!![]){switch(_0x3aa901[_0x442623++]){case'0':logger[_0x2db0da(0x275)](_0x2d2003[_0x2db0da(0x234)]);continue;case'1':await _0x1b08e3['setupNewCluster']();continue;case'2':const _0x4963b4={};_0x4963b4[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x4963b4[_0x2db0da(0x264)]=_0x2db0da(0x1ec),webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x4963b4);continue;case'3':logger[_0x2db0da(0x275)](_0x2d2003[_0x2db0da(0x23c)]);continue;case'4':const _0x36a441={};_0x36a441[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x36a441[_0x2db0da(0x264)]=_0x2d2003['JAhSu'],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x36a441);continue;}break;}}}}_0x288c0b&&_0x2d2003[_0x2db0da(0x22d)](_0x5ae78e,AZURE)&&(global_registry[_0x2db0da(0x1b4)]=_0xedb62b[_0x2db0da(0x1c8)],await _0x1b08e3[_0x2db0da(0x22a)](),await _0x1b08e3[_0x2db0da(0x197)]());const [_0x48973c,_0x2a5f71,_0x318c51,_0x12dda1,_0x2f16cf,_0x330776]=await _0x2d2003['ZhGrS'](createK8sClient,_0x1b08e3);_0x2d2003[_0x2db0da(0x22d)](_0x288c0b,![])&&_0x2d2003[_0x2db0da(0x1e7)](_0x5ae78e,AWS)&&(_0x5d3512=await _0x1b08e3[_0x2db0da(0x22c)](_0x48973c,_0x2eafee));try{_0x281eb2=_0x2d2003[_0x2db0da(0x283)](kebabCase,_0xa503a2),logger['info'](_0x2d2003['pDiEx']);const _0x2b1caf={};_0x2b1caf['type']=WS_EVENTS[_0x2db0da(0x1ab)],_0x2b1caf[_0x2db0da(0x264)]=_0x2d2003['pDiEx'],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x2b1caf);if(_0x2d2003['GWbwJ'](_0x281eb2,_0x2d2003[_0x2db0da(0x209)])){const _0x822ede={};_0x822ede[_0x2db0da(0x284)]=_0x2d2003[_0x2db0da(0x26d)],_0x822ede[_0x2db0da(0x1f9)]=_0x2d2003[_0x2db0da(0x26d)];const _0x3496eb={};_0x3496eb[_0x2db0da(0x272)]=_0x281eb2,_0x3496eb['annotations']=_0x822ede;const _0x530ae7={};_0x530ae7[_0x2db0da(0x191)]=_0x3496eb;let _0x5ab41e=_0x530ae7;await _0x48973c[_0x2db0da(0x22e)](_0x5ab41e),logger[_0x2db0da(0x275)](_0x2d2003['VsPFA']);}const _0x261466={};_0x261466['type']=WS_EVENTS[_0x2db0da(0x1ab)],_0x261466['message']=_0x2d2003['EGeod'],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x261466);const _0x1c78c7={};_0x1c78c7[_0x2db0da(0x1b9)]=WS_EVENTS['LOG'],_0x1c78c7[_0x2db0da(0x264)]=_0x2d2003[_0x2db0da(0x23b)],webSocketUtils['sendEventToBackend'](_0x3e9446,_0x1c78c7),logger['info'](_0x2d2003[_0x2db0da(0x1e4)]);let _0x5f3a4f={};_0x2d2003['AWcPs'](_0x5ae78e,AZURE)&&(_0x5f3a4f={'clientId':await _0x1b08e3['getResourceClientId'](_0x2db0da(0x271)+_0x3e24eb)});await _0x2d2003[_0x2db0da(0x227)](addGridComponents,_0x48973c,_0x2a5f71,_0x318c51,_0x12dda1,_0x281eb2,_0x3e24eb,_0x5d3512,_0x2f16cf,_0x330776,_0x5f3a4f),_0x2f624c=_0x2d2003[_0x2db0da(0x26b)],logger[_0x2db0da(0x275)](_0x2f624c);const _0x3db7d7={};_0x3db7d7[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x3db7d7[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x3db7d7),_0x2f624c=_0x2d2003[_0x2db0da(0x25f)],logger[_0x2db0da(0x275)](_0x2f624c);const _0xcee08d={};_0xcee08d[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0xcee08d[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils['sendEventToBackend'](_0x3e9446,_0xcee08d),await webSocketUtils[_0x2db0da(0x1dd)](0xea60);const _0x391ec3=await _0x2d2003[_0x2db0da(0x217)](getNamespaceUID,_0x48973c,_0x281eb2);let _0x8caabd=global_registry['isPrivateGrid']?_0x2d2003['IgOvJ']:_0x2d2003[_0x2db0da(0x1f8)],_0x41b846=await _0x48973c[_0x2db0da(0x1bd)](_0x8caabd,_0x2d2003[_0x2db0da(0x173)]),_0x3f644d=_0x1b08e3[_0x2db0da(0x20c)](_0x41b846)+'/'+_0x281eb2,_0x3dbb3b=_0x2d2003[_0x2db0da(0x28b)];try{const _0x450c3f={'url':_0x2db0da(0x189)+AG_API_URL+_0x2db0da(0x1f7)+_0x391ec3,..._0x28c126},_0x520deb=_0x450c3f,_0x3d45ae=await _0x2d2003[_0x2db0da(0x28a)](promisifiedRequest,_0x520deb);(_0x2d2003[_0x2db0da(0x1e7)](_0x3d45ae,null)||_0x2d2003['NluDU'](_0x3d45ae,undefined))&&(_0x2f624c=_0x2d2003[_0x2db0da(0x1fe)],await _0x2d2003[_0x2db0da(0x16f)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003['YlTWj'],_0x2d2003[_0x2db0da(0x281)],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process['exit'](0x1));_0x2d2003[_0x2db0da(0x25c)](_0x3d45ae['statusCode'],0x191)&&(_0x2f624c=_0x2d2003[_0x2db0da(0x286)],await _0x2d2003[_0x2db0da(0x1d2)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003['NWDVk'],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process['exit'](0x1));_0x2d2003[_0x2db0da(0x1c7)](_0x3d45ae['statusCode'],0xc8)&&(_0x2f624c='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x2db0da(0x1e8)](_0x3d45ae),await _0x2d2003[_0x2db0da(0x1d2)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x254)],_0x2d2003[_0x2db0da(0x178)]),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1));const _0x15efae=JSON[_0x2db0da(0x196)](_0x3d45ae[_0x2db0da(0x242)]);_0x15efae[_0x2db0da(0x192)]&&(_0x3f644d=_0x15efae[_0x2db0da(0x192)],_0x3dbb3b=_0x2d2003[_0x2db0da(0x1c5)]),global_registry[_0x2db0da(0x1a0)]&&(_0x3dbb3b=_0x2d2003['flFvZ']);}catch(_0x5e60de){}_0x2f624c='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x3f644d+'\x20',logger[_0x2db0da(0x275)](_0x2f624c);const _0x2ef617={};_0x2ef617[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x2ef617['message']=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x2ef617),_0x2f624c=_0x2db0da(0x258)+_0x3dbb3b+'://'+_0x3f644d+_0x2db0da(0x235),logger[_0x2db0da(0x275)](_0x2f624c);const _0x55fc2d={};_0x55fc2d[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x55fc2d[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x55fc2d);const _0x276687={};_0x276687[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x170)],_0x276687[_0x2db0da(0x264)]=_0x2db0da(0x202)+_0x3f644d,webSocketUtils['sendEventToBackend'](_0x3e9446,_0x276687),await webSocketUtils[_0x2db0da(0x1dd)](0x7d0);}catch(_0x3dc9ce){if(_0x2d2003['DYAyP'](_0x288c0b,![]))try{logger[_0x2db0da(0x275)](_0x2db0da(0x266)),await _0x2d2003[_0x2db0da(0x278)](removeGridComponents,_0x48973c,_0x2a5f71,_0x318c51,_0x12dda1,_0x281eb2),await _0x1b08e3[_0x2db0da(0x19e)](_0x48973c,global_registry[_0x2db0da(0x1f5)]);}catch(_0x50f80c){throw _0x50f80c;}throw _0x3dc9ce;}}catch(_0x1510c5){const _0x32ffb0='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1510c5+'\x20\x0a'+JSON[_0x2db0da(0x1e8)](_0x1510c5)+'\x20';if(_0x3e9446){const _0x4003a4={};_0x4003a4[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x4003a4[_0x2db0da(0x264)]=_0x32ffb0,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x4003a4,_0x2d2003[_0x2db0da(0x178)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2c470e={};_0x2c470e[_0x2db0da(0x257)]=_0x32ffb0,await _0x2d2003['foNzi'](sendInstrumentationEvent,_0x2eafee,_0x2d2003[_0x2db0da(0x262)],messageTypes[_0x2db0da(0x289)],_0x2d2003['sMDoB'],_0x2c470e,_0x2eafee),logger['error'](_0x32ffb0);}process[_0x2db0da(0x1ae)](0x0);};
@@ -1 +1 @@
1
- const a11_0x457a56=a11_0x3b1e;function a11_0x3b1e(_0x2e595c,_0x22ae87){const _0x317a75=a11_0x317a();return a11_0x3b1e=function(_0x3b1ef1,_0x56f493){_0x3b1ef1=_0x3b1ef1-0x112;let _0x2537aa=_0x317a75[_0x3b1ef1];return _0x2537aa;},a11_0x3b1e(_0x2e595c,_0x22ae87);}(function(_0x115418,_0x58b7b5){const _0x38e18e=a11_0x3b1e,_0x2a3cc4=_0x115418();while(!![]){try{const _0x2cefa1=-parseInt(_0x38e18e(0x11e))/0x1+-parseInt(_0x38e18e(0x116))/0x2*(parseInt(_0x38e18e(0x128))/0x3)+parseInt(_0x38e18e(0x11c))/0x4*(-parseInt(_0x38e18e(0x118))/0x5)+parseInt(_0x38e18e(0x122))/0x6*(-parseInt(_0x38e18e(0x11b))/0x7)+-parseInt(_0x38e18e(0x115))/0x8*(parseInt(_0x38e18e(0x123))/0x9)+-parseInt(_0x38e18e(0x127))/0xa*(parseInt(_0x38e18e(0x113))/0xb)+parseInt(_0x38e18e(0x129))/0xc;if(_0x2cefa1===_0x58b7b5)break;else _0x2a3cc4['push'](_0x2a3cc4['shift']());}catch(_0x34f71b){_0x2a3cc4['push'](_0x2a3cc4['shift']());}}}(a11_0x317a,0xb22a9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x457a56(0x114));exports[a11_0x457a56(0x112)]=a11_0x457a56(0x117),exports['desc']=a11_0x457a56(0x121),exports['builder']=function(_0x3604b3){const _0x597ddb=a11_0x457a56,_0xe83219={};_0xe83219[_0x597ddb(0x124)]='delete_commands',_0xe83219[_0x597ddb(0x11f)]=_0x597ddb(0x12b);const _0xdcc298=_0xe83219;return _0x3604b3[_0x597ddb(0x11d)](HELP_HEADER_MESSAGE[_0x597ddb(0x117)])[_0x597ddb(0x120)](HELP_FOOTER_MESSAGE)[_0x597ddb(0x119)](_0xdcc298[_0x597ddb(0x124)])[_0x597ddb(0x12a)]()[_0x597ddb(0x125)]()[_0x597ddb(0x11a)]()['help'](_0xdcc298[_0x597ddb(0x11f)]);},exports[a11_0x457a56(0x126)]=function(_0xccc605){};function a11_0x317a(){const _0x1d9611=['handler','4436440EFbjXD','2325639rITBTz','70405272vqYfHe','demandCommand','help','command','11yrPsJD','../config/constants','11597464DoaxPj','2pTvxma','delete','2653655OsLuGV','commandDir','strict','7ATNbGv','4qsraTs','usage','1033308DNQIQx','VWmIU','epilogue','List\x20Grid\x20resources.','5428548kvetRX','9PPmkkO','qCDqg','recommendCommands'];a11_0x317a=function(){return _0x1d9611;};return a11_0x317a();}
1
+ const a10_0x395261=a10_0x4748;function a10_0x4748(_0x187d99,_0x3fc49c){const _0x263afd=a10_0x263a();return a10_0x4748=function(_0x474809,_0xfe4e17){_0x474809=_0x474809-0x77;let _0x3b5924=_0x263afd[_0x474809];return _0x3b5924;},a10_0x4748(_0x187d99,_0x3fc49c);}function a10_0x263a(){const _0x5793c6=['handler','24hpJiSA','help','desc','643119IVtKtQ','command','104feiBEu','WQdrd','epilogue','delete_commands','8235500IdbgcF','usage','16bCfTui','strict','demandCommand','dlUzl','10UXYAvV','1001350LpLOfs','12mqsFrj','720902hIxtwd','delete','7281461TymegL','4IZxUtC','11378MhZWNT','16794NvKwZW','List\x20Grid\x20resources.'];a10_0x263a=function(){return _0x5793c6;};return a10_0x263a();}(function(_0x2e9660,_0x475748){const _0x6b63d0=a10_0x4748,_0x3a2921=_0x2e9660();while(!![]){try{const _0xe80853=parseInt(_0x6b63d0(0x81))/0x1*(parseInt(_0x6b63d0(0x8a))/0x2)+parseInt(_0x6b63d0(0x88))/0x3*(-parseInt(_0x6b63d0(0x80))/0x4)+-parseInt(_0x6b63d0(0x7b))/0x5*(parseInt(_0x6b63d0(0x85))/0x6)+parseInt(_0x6b63d0(0x7d))/0x7*(-parseInt(_0x6b63d0(0x90))/0x8)+-parseInt(_0x6b63d0(0x82))/0x9*(-parseInt(_0x6b63d0(0x7a))/0xa)+-parseInt(_0x6b63d0(0x7f))/0xb*(-parseInt(_0x6b63d0(0x7c))/0xc)+parseInt(_0x6b63d0(0x8e))/0xd;if(_0xe80853===_0x475748)break;else _0x3a2921['push'](_0x3a2921['shift']());}catch(_0x43a3bb){_0x3a2921['push'](_0x3a2921['shift']());}}}(a10_0x263a,0xa2f9c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x395261(0x89)]=a10_0x395261(0x7e),exports[a10_0x395261(0x87)]=a10_0x395261(0x83),exports['builder']=function(_0x2f09ae){const _0x30559d=a10_0x395261,_0x366729={};_0x366729[_0x30559d(0x79)]=_0x30559d(0x8d),_0x366729[_0x30559d(0x8b)]=_0x30559d(0x86);const _0x265f83=_0x366729;return _0x2f09ae[_0x30559d(0x8f)](HELP_HEADER_MESSAGE[_0x30559d(0x7e)])[_0x30559d(0x8c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x265f83[_0x30559d(0x79)])[_0x30559d(0x78)]()['recommendCommands']()[_0x30559d(0x77)]()[_0x30559d(0x86)](_0x265f83[_0x30559d(0x8b)]);},exports[a10_0x395261(0x84)]=function(_0x3fc861){};
@@ -1 +1 @@
1
- function a12_0x1911(_0x5a2c27,_0x3309c8){const _0x1792e3=a12_0x1792();return a12_0x1911=function(_0x191127,_0x224e75){_0x191127=_0x191127-0x193;let _0x2ed413=_0x1792e3[_0x191127];return _0x2ed413;},a12_0x1911(_0x5a2c27,_0x3309c8);}const a12_0x4e08dc=a12_0x1911;(function(_0x305570,_0xee1874){const _0x46a950=a12_0x1911,_0x2c7277=_0x305570();while(!![]){try{const _0x2ce7ea=parseInt(_0x46a950(0x1fd))/0x1*(-parseInt(_0x46a950(0x193))/0x2)+parseInt(_0x46a950(0x1a9))/0x3*(-parseInt(_0x46a950(0x202))/0x4)+parseInt(_0x46a950(0x1cf))/0x5+-parseInt(_0x46a950(0x209))/0x6*(-parseInt(_0x46a950(0x195))/0x7)+parseInt(_0x46a950(0x1ba))/0x8+parseInt(_0x46a950(0x1c7))/0x9*(parseInt(_0x46a950(0x1f9))/0xa)+parseInt(_0x46a950(0x1d8))/0xb*(-parseInt(_0x46a950(0x1df))/0xc);if(_0x2ce7ea===_0xee1874)break;else _0x2c7277['push'](_0x2c7277['shift']());}catch(_0x1f626f){_0x2c7277['push'](_0x2c7277['shift']());}}}(a12_0x1792,0x2edb1));const fs=require('fs'),util=require(a12_0x4e08dc(0x1b5)),request=require(a12_0x4e08dc(0x1ae)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x4e08dc(0x199)),{getCloudProviderObject}=require(a12_0x4e08dc(0x1a8)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x4e08dc(0x197)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x4e08dc(0x216)),promisifiedRequest=util[a12_0x4e08dc(0x205)](request);function a12_0x1792(){const _0x5a11aa=['Dxzbi','sWDMd','YEHlV','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','util','password','requestId','invalid-grid-id','yQcAz','2992760iTqEaf','stringify','clusterName','gXMOg','qopsk','tSsLM','CoKLc','onlyGridInCluster','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','argv','method','existsSync','body','23058uzvOfA','mgDfh','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','cKfhH','Delete\x20an\x20Automation\x20grid.','type','xWTyD','grid-id','1381825vSVSDV','suvYN','YGvzV','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','BSyJj','string','invalid-input','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','DTHoa','110lIuCGJ','GSDOM','username','Pass\x20the\x20ID\x20of\x20the\x20Grid','gridId','writeFileSync','TMyeD','727476FbAEqQ','https://','usage','uLVDM','clusterRegion','handler','cloudProvider','TXrxj','url','NzzSF','PtLWf','help','uqkPA','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','options','info','Browserstack','\x22\x20with\x20ID\x20','VlYQV','INFO','tIlLu','deleteCluster','CdcWz','desc','stack','610MvDuip','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Succesfully\x20deleted\x20the\x20grid','builder','1FMkYVT','uqUpG','clusterId','UlvFr','gvMNR','966392xfVlun','init-not-called','/packages/cli/grid/','promisify','CSULr','ICtbZ','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','928644EbgLrd','QySXY','bLTyS','XbpUK','ERROR','qxNfR','\x22\x20and\x20ID\x20','delete-grid-called','error','yPbAw','xigrZ','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','rlCDR','../../utils/utilityMethods','statusCode','command','QslVZ','DELETE','wBBSr','ZDIsD','BIMON','name','ncsOv','YVcOP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','153082RhWXLs','warn','14RBHfMy','zoiCh','../../utils/userInput','debug','../../config/logger','xFIlS','NrXhm','server-error','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','toLowerCase','XGAWx','Failed\x20to\x20delete\x20resources!\x20Error:\x20','WGwiH','mKjJn','message','parse','epilogue','TsxLA','RLQSe','../../cloudproviders/utils','3ibWiZZ','GfWdv','description','grid','exit','request','delete','auth'];a12_0x1792=function(){return _0x5a11aa;};return a12_0x1792();}exports[a12_0x4e08dc(0x218)]=a12_0x4e08dc(0x1ac),exports[a12_0x4e08dc(0x1f7)]=a12_0x4e08dc(0x1cb),exports[a12_0x4e08dc(0x1fc)]=function(_0x3afe07){const _0xedb740=a12_0x4e08dc,_0x42706e={};_0x42706e[_0xedb740(0x1d3)]=_0xedb740(0x1db),_0x42706e[_0xedb740(0x200)]=_0xedb740(0x1d4),_0x42706e[_0xedb740(0x1f6)]=_0xedb740(0x1ea);const _0x1b2242=_0x42706e,_0x7f20d9={};_0x7f20d9['description']=_0x1b2242['BSyJj'],_0x7f20d9[_0xedb740(0x1cc)]=_0x1b2242[_0xedb740(0x200)];const _0x49363a={};return _0x49363a[_0xedb740(0x1ce)]=_0x7f20d9,_0x3afe07['usage'](HELP_HEADER_MESSAGE[_0xedb740(0x1af)])[_0xedb740(0x1a5)](HELP_FOOTER_MESSAGE)['options'](_0x49363a)[_0xedb740(0x1ea)](_0x1b2242['CdcWz'])[_0xedb740(0x1c3)];},exports[a12_0x4e08dc(0x1e4)]=async function(_0x2920ae){const _0x4dac75=a12_0x4e08dc,_0x235eb1={'bLTyS':_0x4dac75(0x1db),'oIqdh':_0x4dac75(0x1d4),'ZDIsD':_0x4dac75(0x1ea),'xWTyD':_0x4dac75(0x1d2),'TsxLA':function(_0x163d7f){return _0x163d7f();},'xFIlS':function(_0x257f12){return _0x257f12();},'yPbAw':function(_0x3d57dc,_0x3bda85){return _0x3d57dc!==_0x3bda85;},'CSULr':'cJLyH','TMyeD':'IXBlR','NrXhm':_0x4dac75(0x1ec),'tSsLM':function(_0x33b1d8,_0x23640f,_0x27db47,_0x41481c,_0xa53321,_0x5265db,_0x2616f7){return _0x33b1d8(_0x23640f,_0x27db47,_0x41481c,_0xa53321,_0x5265db,_0x2616f7);},'uqUpG':_0x4dac75(0x210),'GCOGo':_0x4dac75(0x203),'Dxzbi':function(_0x2f886b,_0x4433c1){return _0x2f886b===_0x4433c1;},'PtLWf':'BXENF','DTHoa':function(_0x349389){return _0x349389();},'tIlLu':function(_0x5aef4a,_0x4e8bb0,_0x15bc02,_0x21af6a){return _0x5aef4a(_0x4e8bb0,_0x15bc02,_0x21af6a);},'TXrxj':_0x4dac75(0x1f0),'jZtdv':function(_0x56285a,_0x1374c2){return _0x56285a!==_0x1374c2;},'uqkPA':_0x4dac75(0x201),'YdfjS':function(_0x594c65,_0x3bdecf){return _0x594c65(_0x3bdecf);},'qxNfR':function(_0x446401,_0x10740c){return _0x446401===_0x10740c;},'GfWdv':function(_0xf591be,_0x401ac5){return _0xf591be===_0x401ac5;},'eoHyt':function(_0x237338,_0x16406a){return _0x237338===_0x16406a;},'gXMOg':function(_0xc569b,_0x25a146){return _0xc569b===_0x25a146;},'mKjJn':'UQiRq','YEHlV':_0x4dac75(0x1fa),'wBBSr':function(_0x1e80a5,_0x49be48,_0x5513aa,_0x124d33,_0x4c44be,_0xb696e7,_0x424d31){return _0x1e80a5(_0x49be48,_0x5513aa,_0x124d33,_0x4c44be,_0xb696e7,_0x424d31);},'yvEcv':_0x4dac75(0x1d5),'sWDMd':function(_0x56a241,_0x24ceeb){return _0x56a241===_0x24ceeb;},'WGwiH':function(_0x47047f,_0x4559ab){return _0x47047f!==_0x4559ab;},'XGAWx':_0x4dac75(0x1c0),'jfgmq':_0x4dac75(0x1e2),'QslVZ':function(_0x1828ad,_0x37caff,_0x1b4a7a,_0x5bb341){return _0x1828ad(_0x37caff,_0x1b4a7a,_0x5bb341);},'YGvzV':_0x4dac75(0x21d),'VlYQV':_0x4dac75(0x214),'vsLcp':function(_0x58e970,_0x5e8e17){return _0x58e970!==_0x5e8e17;},'YVcOP':_0x4dac75(0x1a7),'ICtbZ':_0x4dac75(0x213),'mgDfh':function(_0x4cf969){return _0x4cf969();},'CpBeX':_0x4dac75(0x208),'QySXY':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','ncsOv':function(_0x24140c,_0x46d7c3){return _0x24140c(_0x46d7c3);},'cKfhH':function(_0x19036f,_0x1a8749){return _0x19036f(_0x1a8749);},'suvYN':function(_0x5712c6,_0x1cac4e,_0x4742eb,_0x37cbe1,_0x599c36,_0x5e8fc6){return _0x5712c6(_0x1cac4e,_0x4742eb,_0x37cbe1,_0x599c36,_0x5e8fc6);},'zoiCh':_0x4dac75(0x21a),'yQcAz':function(_0x49eee2,_0x2f8e6c){return _0x49eee2!==_0x2f8e6c;},'rlCDR':_0x4dac75(0x19c),'GSDOM':function(_0x5dec30,_0x2b46f7,_0x4b78ad,_0x2565da,_0x2188cf,_0xbf2c6c,_0x1b54a7){return _0x5dec30(_0x2b46f7,_0x4b78ad,_0x2565da,_0x2188cf,_0xbf2c6c,_0x1b54a7);},'ZypIE':'unauthorised','NzzSF':function(_0x166d1b,_0x2796c7,_0x43b8a8,_0x5879a6,_0x3c178c,_0x36973e,_0x256663){return _0x166d1b(_0x2796c7,_0x43b8a8,_0x5879a6,_0x3c178c,_0x36973e,_0x256663);},'yGmAP':_0x4dac75(0x1b8),'qopsk':function(_0x5d5869,_0x26e9a0,_0x376b2a,_0x44a2d0,_0x717859,_0x58c3ca,_0x51127b){return _0x5d5869(_0x26e9a0,_0x376b2a,_0x44a2d0,_0x717859,_0x58c3ca,_0x51127b);},'XbpUK':'unknown-error'};try{global_registry[_0x4dac75(0x1b7)]=_0x235eb1[_0x4dac75(0x1a6)](uuidv4);!fs[_0x4dac75(0x1c5)](_0x235eb1[_0x4dac75(0x19a)](getCredentialsPath))&&(_0x235eb1[_0x4dac75(0x212)](_0x235eb1[_0x4dac75(0x206)],_0x235eb1[_0x4dac75(0x1de)])?(console[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x19b)]),await _0x235eb1[_0x4dac75(0x1bf)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1['GCOGo'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)):_0x4ed0ad=_0x4dac75(0x1d6)+_0x456f0f[_0x4dac75(0x21e)]+'\x22\x20and\x20ID\x20'+_0x22e6b3['id']+_0x4dac75(0x1c2)+_0x305764[_0x4dac75(0x1bc)]+_0x4dac75(0x1f1)+_0x1d8fc4[_0x4dac75(0x1ff)]+_0x4dac75(0x1b4));_0x235eb1[_0x4dac75(0x1bf)](sendInstrumentationEvent,_0x2920ae,_0x235eb1['uqUpG'],messageTypes[_0x4dac75(0x1f3)],null,null,_0x2920ae);if(!_0x2920ae[_0x4dac75(0x1dc)]){if(_0x235eb1['Dxzbi'](_0x235eb1[_0x4dac75(0x1e9)],_0x235eb1[_0x4dac75(0x1e9)]))console[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x1cd)]),process[_0x4dac75(0x1ad)](0x1);else{const _0x1341ca={};_0x1341ca[_0x4dac75(0x1ab)]=_0x235eb1[_0x4dac75(0x20b)],_0x1341ca[_0x4dac75(0x1cc)]=_0x235eb1['oIqdh'];const _0x729181={};return _0x729181[_0x4dac75(0x1ce)]=_0x1341ca,_0x13cb71[_0x4dac75(0x1e1)](_0x33a131[_0x4dac75(0x1af)])[_0x4dac75(0x1a5)](_0x26d41e)[_0x4dac75(0x1ee)](_0x729181)[_0x4dac75(0x1ea)](_0x235eb1[_0x4dac75(0x21c)])['argv'];}}const _0x20f841=JSON[_0x4dac75(0x1a4)](fs['readFileSync'](_0x235eb1[_0x4dac75(0x1d7)](getCredentialsPath))),[_0x3ad0cd,_0x2328dd]=await _0x235eb1[_0x4dac75(0x1f4)](getGridDetails,_0x20f841[_0x4dac75(0x1f0)][_0x4dac75(0x1da)],_0x20f841[_0x4dac75(0x1f0)][_0x4dac75(0x1b6)],_0x2920ae[_0x4dac75(0x1dc)]);if(_0x2328dd){const _0xfc867d=_0x2328dd['info'];let _0x348d8a=_0x4dac75(0x1d6)+_0xfc867d[_0x4dac75(0x21e)]+_0x4dac75(0x20f)+_0xfc867d['id']+_0x4dac75(0x1b4),_0x53f649;_0x2328dd[_0x4dac75(0x1c1)]&&_0x235eb1['Dxzbi'](_0x2328dd['clusterSpawnedVia'],_0x235eb1[_0x4dac75(0x1e6)])&&(_0x235eb1['jZtdv'](_0x235eb1[_0x4dac75(0x1eb)],_0x235eb1['uqkPA'])?_0x1ae128[_0x4dac75(0x194)]('Cluster:\x20'+_0x278062[_0x4dac75(0x1bc)]+_0x4dac75(0x19d)):_0x348d8a=_0x4dac75(0x1d6)+_0xfc867d[_0x4dac75(0x21e)]+_0x4dac75(0x20f)+_0xfc867d['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xfc867d[_0x4dac75(0x1bc)]+'\x22\x20with\x20ID\x20'+_0xfc867d[_0x4dac75(0x1ff)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x53f649=await _0x235eb1['YdfjS'](inputConfirmation,_0x348d8a);(_0x235eb1[_0x4dac75(0x20e)](_0x53f649,undefined)||_0x235eb1[_0x4dac75(0x1aa)](_0x53f649,null)||!(_0x235eb1['eoHyt'](_0x53f649[_0x4dac75(0x19e)](),'y')||_0x235eb1[_0x4dac75(0x1bd)](_0x53f649[_0x4dac75(0x19e)](),'n')))&&(_0x235eb1[_0x4dac75(0x212)](_0x235eb1[_0x4dac75(0x1a2)],_0x235eb1[_0x4dac75(0x1a2)])?_0xa1a252[_0x4dac75(0x1ad)](0x0):(console[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x1b3)]),await _0x235eb1[_0x4dac75(0x21b)](sendInstrumentationEvent,_0x2920ae,_0x235eb1['uqUpG'],messageTypes[_0x4dac75(0x20d)],_0x235eb1['yvEcv'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)));_0x235eb1[_0x4dac75(0x1b2)](_0x53f649['toLowerCase'](),'n')&&(_0x235eb1[_0x4dac75(0x1a1)](_0x235eb1[_0x4dac75(0x19f)],_0x235eb1['jfgmq'])?process[_0x4dac75(0x1ad)](0x0):(_0x474866[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x1cd)]),_0x9e72f2['exit'](0x1)));global_registry[_0x4dac75(0x1e3)]=_0xfc867d[_0x4dac75(0x1ed)];const _0x3c4bdc=_0xfc867d[_0x4dac75(0x1e5)],_0x57e7bd=_0x235eb1[_0x4dac75(0x219)](getCloudProviderObject,_0x3c4bdc,_0xfc867d[_0x4dac75(0x1bc)],_0xfc867d[_0x4dac75(0x21e)]),_0x182089=_0x20f841['cloudProvider'];if(_0x235eb1[_0x4dac75(0x1aa)](_0x182089[_0x3c4bdc],undefined)){if(_0x235eb1[_0x4dac75(0x1bd)](_0x235eb1[_0x4dac75(0x1d1)],_0x235eb1['YGvzV'])){logger[_0x4dac75(0x1ef)](_0x235eb1[_0x4dac75(0x1f2)]);_0x235eb1['eoHyt'](_0x20f841[_0x4dac75(0x1e5)],undefined)&&(_0x235eb1['vsLcp'](_0x235eb1[_0x4dac75(0x220)],_0x235eb1[_0x4dac75(0x207)])?_0x20f841[_0x4dac75(0x1e5)]={}:(_0x83ba1f[_0x4dac75(0x1ef)]('Succesfully\x20deleted\x20the\x20grid'),_0x632914[_0x4dac75(0x1ad)](0x0)));_0x20f841[_0x4dac75(0x1e5)][_0x3c4bdc]={};const _0x373db8=await _0x235eb1[_0x4dac75(0x1f4)](inputCloudProviderKeys,_0x3c4bdc,_0x20f841,_0x57e7bd);fs[_0x4dac75(0x1dd)](_0x235eb1[_0x4dac75(0x1c8)](getCredentialsPath),JSON[_0x4dac75(0x1bb)](_0x373db8)),logger[_0x4dac75(0x198)](_0x235eb1['CpBeX']);}else _0x23679b[_0x4dac75(0x1e5)]={};}else logger[_0x4dac75(0x1ef)](_0x235eb1[_0x4dac75(0x20a)]),await _0x57e7bd['fetchLocalCreds'](_0x182089);_0x57e7bd['configureIfNotConfigured']();const _0x4a8f8b=_0x235eb1[_0x4dac75(0x21f)](kebabCase,_0xfc867d[_0x4dac75(0x21e)]),[_0x15e6d0,_0xd2e00f,_0x4484f8,_0x4beeaf,_0x2b265a,_0xa514d6]=await _0x235eb1[_0x4dac75(0x1ca)](createK8sClient,_0x57e7bd);await _0x235eb1[_0x4dac75(0x1d0)](removeGridComponents,_0x15e6d0,_0xd2e00f,_0x4484f8,_0x4beeaf,_0x4a8f8b);if(_0x2328dd[_0x4dac75(0x1c1)]){const _0x27a1c7=await _0x57e7bd['isBrowserstackCluster']();_0x27a1c7?await _0x57e7bd[_0x4dac75(0x1f5)](_0x15e6d0,_0xfc867d['region']):logger['warn']('Cluster:\x20'+_0xfc867d[_0x4dac75(0x1bc)]+_0x4dac75(0x19d));}const _0x4ed06b=_0x4dac75(0x1e0)+AG_API_URL+_0x4dac75(0x204)+_0x2920ae[_0x4dac75(0x1dc)],_0x36259b={};_0x36259b[_0x4dac75(0x1da)]=_0x20f841[_0x4dac75(0x1f0)][_0x4dac75(0x1da)],_0x36259b[_0x4dac75(0x1b6)]=_0x20f841['Browserstack'][_0x4dac75(0x1b6)];const _0x24dbc7={};_0x24dbc7[_0x4dac75(0x1e7)]=_0x4ed06b,_0x24dbc7[_0x4dac75(0x1c4)]=_0x235eb1[_0x4dac75(0x196)],_0x24dbc7[_0x4dac75(0x1b0)]=_0x36259b;const _0x426d15=_0x24dbc7,_0x2e694d=await _0x235eb1['ncsOv'](promisifiedRequest,_0x426d15);_0x235eb1[_0x4dac75(0x1b9)](_0x2e694d,null)&&_0x235eb1[_0x4dac75(0x1b9)](_0x2e694d,undefined)&&_0x235eb1[_0x4dac75(0x1b1)](_0x2e694d[_0x4dac75(0x217)],0xc8)&&(logger['info'](_0x4dac75(0x1fb)),process[_0x4dac75(0x1ad)](0x0)),logger[_0x4dac75(0x211)](_0x4dac75(0x1c9)+JSON[_0x4dac75(0x1bb)](_0x2e694d)),await _0x235eb1['wBBSr'](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1[_0x4dac75(0x215)],_0x3ad0cd,_0x2920ae),process[_0x4dac75(0x1ad)](0x1);}_0x235eb1[_0x4dac75(0x20e)](_0x3ad0cd[_0x4dac75(0x217)],0x191)&&(logger[_0x4dac75(0x211)](_0x4dac75(0x221)),await _0x235eb1[_0x4dac75(0x1d9)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1['ZypIE'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)),_0x235eb1['Dxzbi'](_0x3ad0cd['statusCode'],0x190)&&(logger[_0x4dac75(0x211)](JSON[_0x4dac75(0x1a4)](_0x3ad0cd[_0x4dac75(0x1c6)])[_0x4dac75(0x1a3)]),await _0x235eb1[_0x4dac75(0x1e8)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1['yGmAP'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)),logger[_0x4dac75(0x211)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4dac75(0x1bb)](_0x3ad0cd)),await _0x235eb1[_0x4dac75(0x1be)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1[_0x4dac75(0x215)],_0x3ad0cd,_0x2920ae),process[_0x4dac75(0x1ad)](0x1);}catch(_0x5a02dd){logger[_0x4dac75(0x211)](_0x4dac75(0x1a0)+_0x5a02dd[_0x4dac75(0x1f8)]),await _0x235eb1[_0x4dac75(0x1be)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1[_0x4dac75(0x20c)],_0x5a02dd,_0x2920ae),process[_0x4dac75(0x1ad)](0x1);}};
1
+ function a11_0x4e88(_0x41afcb,_0x5cb1ea){const _0x1b59f1=a11_0x1b59();return a11_0x4e88=function(_0x4e883a,_0x5f0c5c){_0x4e883a=_0x4e883a-0x7c;let _0x5bb7f3=_0x1b59f1[_0x4e883a];return _0x5bb7f3;},a11_0x4e88(_0x41afcb,_0x5cb1ea);}function a11_0x1b59(){const _0x46c245=['ITbpg','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','invalid-input','qZoer','stringify','Delete\x20an\x20Automation\x20grid.','desc','delete','type','parse','iKtax','WmVIY','Succesfully\x20deleted\x20the\x20grid','5eTehmu','exit','sODut','KenQh','Cluster:\x20','INFO','stack','onlyGridInCluster','oltZt','region','grid','message','JpQWR','../../config/constants','clusterSpawnedVia','VWUbg','QHgJl','xTrHg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','FWfHT','gtGuT','invalid-grid-id','431359jQAsXm','username','OBlPW','oIHlR','RdLCM','info','isBrowserstackCluster','xauOP','statusCode','fEDuo','requestId','../../cloudproviders/utils','delete-grid-called','JQLkR','error','MGGNq','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','request','init-not-called','RAnBM','argv','uuid','warn','clusterId','name','VhdLr','cloudProvider','oMwbM','14315RbvprY','2610730hcJqVy','BNeyn','../../utils/createk8sClient','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','\x22\x20and\x20ID\x20','debug','handler','oAKpd','gtykO','TaSgA','EIpAP','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','8TVzxEH','usage','writeFileSync','dHbxm','command','promisify','1410NSJKJH','RtcXA','441630DXlCxo','https://','string','EiYCx','description','../../utils/userInput','GDgXA','OzxgJ','../../utils/gridComponents','mEtSf','lJEsG','DMatp','grid-id','QDqch','options','method','Pass\x20the\x20ID\x20of\x20the\x20Grid','xCQLP','900092NxROGj','bulUo','toLowerCase','fRUKT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','xiyEj','url','1247128kRDjFO','gHthj','fQmXz','help','ihnSe','\x22\x20with\x20ID\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','CHMiD','Rnaul','11edPovL','nkBGC','builder','fetchLocalCreds','lZlyP','clusterName','WXjoj','/packages/cli/grid/','QfCed','body','rjtGY','2195118mndDNK','unauthorised','gSGsP','gVrGl','gridId','../../config/logger','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','ERROR','WWIem'];a11_0x1b59=function(){return _0x46c245;};return a11_0x1b59();}const a11_0x5ee19f=a11_0x4e88;(function(_0x5205d4,_0x1bb32a){const _0x4f9fd4=a11_0x4e88,_0x4a99de=_0x5205d4();while(!![]){try{const _0x189f64=-parseInt(_0x4f9fd4(0xe6))/0x1+parseInt(_0x4f9fd4(0x9c))/0x2+parseInt(_0x4f9fd4(0x8a))/0x3+parseInt(_0x4f9fd4(0xa4))/0x4*(-parseInt(_0x4f9fd4(0xd0))/0x5)+parseInt(_0x4f9fd4(0x88))/0x6*(parseInt(_0x4f9fd4(0x102))/0x7)+parseInt(_0x4f9fd4(0x82))/0x8*(parseInt(_0x4f9fd4(0xba))/0x9)+parseInt(_0x4f9fd4(0x103))/0xa*(-parseInt(_0x4f9fd4(0xaf))/0xb);if(_0x189f64===_0x1bb32a)break;else _0x4a99de['push'](_0x4a99de['shift']());}catch(_0x341e93){_0x4a99de['push'](_0x4a99de['shift']());}}}(a11_0x1b59,0x4d84f));const fs=require('fs'),util=require('util'),request=require(a11_0x5ee19f(0xf7)),{v4:uuidv4}=require(a11_0x5ee19f(0xfb)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x5ee19f(0xdd)),{logger}=require(a11_0x5ee19f(0xbf)),{getCloudProviderObject}=require(a11_0x5ee19f(0xf1)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5ee19f(0x92)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x5ee19f(0x8f)),{createK8sClient}=require(a11_0x5ee19f(0x105)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util[a11_0x5ee19f(0x87)](request);exports[a11_0x5ee19f(0x86)]=a11_0x5ee19f(0xda),exports[a11_0x5ee19f(0xc9)]=a11_0x5ee19f(0xc8),exports[a11_0x5ee19f(0xb1)]=function(_0x5c0d95){const _0x379f58=a11_0x5ee19f,_0x3b8c66={};_0x3b8c66[_0x379f58(0xc2)]=_0x379f58(0x9a),_0x3b8c66['RAnBM']=_0x379f58(0x8c),_0x3b8c66[_0x379f58(0xbc)]=_0x379f58(0xa7);const _0x5dd2ce=_0x3b8c66,_0x31d038={};_0x31d038[_0x379f58(0x8e)]=_0x5dd2ce['WWIem'],_0x31d038['type']=_0x5dd2ce[_0x379f58(0xf9)];const _0x59c790={};return _0x59c790[_0x379f58(0x96)]=_0x31d038,_0x5c0d95[_0x379f58(0x83)](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x379f58(0x98)](_0x59c790)[_0x379f58(0xa7)](_0x5dd2ce[_0x379f58(0xbc)])[_0x379f58(0xfa)];},exports[a11_0x5ee19f(0x7c)]=async function(_0x568291){const _0x15380b=a11_0x5ee19f,_0x9d7847={'GDgXA':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ihnSe':'Pass\x20the\x20ID\x20of\x20the\x20Grid','EiYCx':'string','CHMiD':_0x15380b(0xa7),'dHbxm':function(_0x21e509){return _0x21e509();},'OBlPW':function(_0x3d9a40,_0x666d48){return _0x3d9a40===_0x666d48;},'OzxgJ':_0x15380b(0xed),'xCQLP':_0x15380b(0xea),'iKtax':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lJEsG':function(_0x38e728,_0xdb70f7,_0x29ffec,_0x9227de,_0x525fb3,_0x1ebdb8,_0x679c6a){return _0x38e728(_0xdb70f7,_0x29ffec,_0x9227de,_0x525fb3,_0x1ebdb8,_0x679c6a);},'TaSgA':_0x15380b(0xf2),'sODut':_0x15380b(0xf8),'fEDuo':function(_0x24712f,_0x49dfaf,_0x3e873a,_0x44caf9,_0x132e84,_0x39869e,_0x2e5412){return _0x24712f(_0x49dfaf,_0x3e873a,_0x44caf9,_0x132e84,_0x39869e,_0x2e5412);},'oAKpd':function(_0x53104e,_0x12a666){return _0x53104e===_0x12a666;},'lZlyP':_0x15380b(0x9d),'nkBGC':function(_0x464711,_0x4d9c00,_0x36d287,_0x5cbcdf){return _0x464711(_0x4d9c00,_0x36d287,_0x5cbcdf);},'VhdLr':function(_0x50ca01,_0x362a20){return _0x50ca01===_0x362a20;},'Rnaul':_0x15380b(0xa1),'MGGNq':function(_0x2d3dbb,_0x2c3293){return _0x2d3dbb!==_0x2c3293;},'gHthj':_0x15380b(0xe9),'KenQh':_0x15380b(0x101),'rjtGY':function(_0x554b43,_0x155830){return _0x554b43(_0x155830);},'oltZt':function(_0x38a1b8,_0x157e46){return _0x38a1b8===_0x157e46;},'hWQfp':_0x15380b(0xc6),'QDqch':'sZqGa','BNeyn':_0x15380b(0xf6),'EIpAP':_0x15380b(0xc5),'DOHOu':_0x15380b(0x93),'QfCed':_0x15380b(0xdc),'gtykO':function(_0x55ea30,_0x50c5d1,_0x296378,_0x5de978){return _0x55ea30(_0x50c5d1,_0x296378,_0x5de978);},'QHgJl':function(_0x123b42,_0x2f8776){return _0x123b42!==_0x2f8776;},'DMatp':'AEuES','EaWBU':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gVrGl':function(_0x59fdbf,_0x3eedb0){return _0x59fdbf===_0x3eedb0;},'DdbGm':_0x15380b(0xe4),'TGJUQ':_0x15380b(0xdf),'xiyEj':function(_0x1e4a09){return _0x1e4a09();},'kjWti':_0x15380b(0xe2),'fQmXz':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','WmVIY':function(_0xd30357,_0x19eb8e,_0x21800e,_0x170c71,_0x3da974,_0x267301){return _0xd30357(_0x19eb8e,_0x21800e,_0x170c71,_0x3da974,_0x267301);},'WXjoj':'DELETE','OLCXL':function(_0x490064,_0x384b02){return _0x490064(_0x384b02);},'FWfHT':function(_0x446601,_0x19de07){return _0x446601!==_0x19de07;},'xTrHg':function(_0x6e0d1f,_0x4ef3cf){return _0x6e0d1f===_0x4ef3cf;},'JQLkR':'server-error','RtcXA':function(_0x2df110,_0x20b48f){return _0x2df110===_0x20b48f;},'OzStt':_0x15380b(0xbb),'ITbpg':function(_0x17a129,_0x3df87d){return _0x17a129===_0x3df87d;},'AGVzZ':_0x15380b(0xe5),'fRUKT':'unknown-error'};try{global_registry[_0x15380b(0xf0)]=_0x9d7847['dHbxm'](uuidv4);!fs['existsSync'](_0x9d7847[_0x15380b(0x85)](getCredentialsPath))&&(_0x9d7847['OBlPW'](_0x9d7847[_0x15380b(0x91)],_0x9d7847[_0x15380b(0x9b)])?_0x1e5d40[_0x15380b(0xd1)](0x0):(console[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0xcd)]),await _0x9d7847[_0x15380b(0x94)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0xd2)],null,_0x568291),process['exit'](0x1)));_0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847['TaSgA'],messageTypes[_0x15380b(0xd5)],null,null,_0x568291);!_0x568291[_0x15380b(0xbe)]&&(_0x9d7847[_0x15380b(0x7d)](_0x9d7847[_0x15380b(0xb3)],_0x9d7847[_0x15380b(0xb3)])?(console[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0x90)]),process[_0x15380b(0xd1)](0x1)):(_0x2bb462[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0x90)]),_0x4a9c29[_0x15380b(0xd1)](0x1)));const _0x80cf85=JSON[_0x15380b(0xcc)](fs['readFileSync'](_0x9d7847['dHbxm'](getCredentialsPath))),[_0x2c3e49,_0xd0e75a]=await _0x9d7847[_0x15380b(0xb0)](getGridDetails,_0x80cf85[_0x15380b(0xa1)][_0x15380b(0xe7)],_0x80cf85['Browserstack'][_0x15380b(0xab)],_0x568291[_0x15380b(0xbe)]);if(_0xd0e75a){const _0x5287f0=_0xd0e75a[_0x15380b(0xeb)];let _0x328a7c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5287f0[_0x15380b(0xfe)]+_0x15380b(0x108)+_0x5287f0['id']+_0x15380b(0xac),_0x193922;_0xd0e75a[_0x15380b(0xd7)]&&_0x9d7847['VhdLr'](_0xd0e75a[_0x15380b(0xde)],_0x9d7847[_0x15380b(0xae)])&&(_0x9d7847[_0x15380b(0xf5)](_0x9d7847[_0x15380b(0xa5)],_0x9d7847[_0x15380b(0xd3)])?_0x328a7c=_0x15380b(0xc4)+_0x5287f0[_0x15380b(0xfe)]+_0x15380b(0x108)+_0x5287f0['id']+_0x15380b(0x81)+_0x5287f0[_0x15380b(0xb4)]+'\x22\x20with\x20ID\x20'+_0x5287f0[_0x15380b(0xfd)]+_0x15380b(0xac):_0x4623a2='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5a6f39[_0x15380b(0xfe)]+'\x22\x20and\x20ID\x20'+_0x1cc380['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x36cb31[_0x15380b(0xb4)]+_0x15380b(0xa9)+_0x103eb9[_0x15380b(0xfd)]+_0x15380b(0xac));_0x193922=await _0x9d7847['rjtGY'](inputConfirmation,_0x328a7c);(_0x9d7847[_0x15380b(0xff)](_0x193922,undefined)||_0x9d7847['oltZt'](_0x193922,null)||!(_0x9d7847[_0x15380b(0xd8)](_0x193922['toLowerCase'](),'y')||_0x9d7847[_0x15380b(0x7d)](_0x193922[_0x15380b(0x9e)](),'n')))&&(_0x9d7847[_0x15380b(0xff)](_0x9d7847['hWQfp'],_0x9d7847[_0x15380b(0x97)])?_0x1ae999['warn']('Cluster:\x20'+_0x318ebe[_0x15380b(0xb4)]+_0x15380b(0xc0)):(console[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0x104)]),await _0x9d7847[_0x15380b(0x94)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0x80)],null,_0x568291),process[_0x15380b(0xd1)](0x1)));if(_0x9d7847[_0x15380b(0xe8)](_0x193922[_0x15380b(0x9e)](),'n')){if(_0x9d7847['MGGNq'](_0x9d7847['DOHOu'],_0x9d7847[_0x15380b(0xb7)]))process['exit'](0x0);else{const _0x51affa={};_0x51affa['description']=_0x9d7847[_0x15380b(0xa8)],_0x51affa[_0x15380b(0xcb)]=_0x9d7847[_0x15380b(0x8d)];const _0x45ea5c={};return _0x45ea5c[_0x15380b(0x96)]=_0x51affa,_0xe35478[_0x15380b(0x83)](_0x475de0[_0x15380b(0xca)])['epilogue'](_0xff0a86)[_0x15380b(0x98)](_0x45ea5c)[_0x15380b(0xa7)](_0x9d7847[_0x15380b(0xad)])[_0x15380b(0xfa)];}}global_registry['clusterRegion']=_0x5287f0[_0x15380b(0xd9)];const _0x5ec85a=_0x5287f0[_0x15380b(0x100)],_0x2bfc21=_0x9d7847[_0x15380b(0x7e)](getCloudProviderObject,_0x5ec85a,_0x5287f0['clusterName'],_0x5287f0[_0x15380b(0xfe)]),_0x23121d=_0x80cf85[_0x15380b(0x100)];if(_0x9d7847[_0x15380b(0xd8)](_0x23121d[_0x5ec85a],undefined)){if(_0x9d7847[_0x15380b(0xe0)](_0x9d7847[_0x15380b(0x95)],_0x9d7847[_0x15380b(0x95)]))_0x5c0a13[_0x15380b(0xeb)](_0x15380b(0xcf)),_0x298040['exit'](0x0);else{logger[_0x15380b(0xeb)](_0x9d7847['EaWBU']);_0x9d7847[_0x15380b(0xd8)](_0x80cf85['cloudProvider'],undefined)&&(_0x9d7847[_0x15380b(0xbd)](_0x9d7847['DdbGm'],_0x9d7847['TGJUQ'])?_0x365921[_0x15380b(0x100)]={}:_0x80cf85[_0x15380b(0x100)]={});_0x80cf85['cloudProvider'][_0x5ec85a]={};const _0x2338bd=await _0x9d7847[_0x15380b(0xb0)](inputCloudProviderKeys,_0x5ec85a,_0x80cf85,_0x2bfc21);fs[_0x15380b(0x84)](_0x9d7847[_0x15380b(0xa2)](getCredentialsPath),JSON[_0x15380b(0xc7)](_0x2338bd)),logger[_0x15380b(0x109)](_0x9d7847['kjWti']);}}else logger[_0x15380b(0xeb)](_0x9d7847[_0x15380b(0xa6)]),await _0x2bfc21[_0x15380b(0xb2)](_0x23121d);_0x2bfc21['configureIfNotConfigured']();const _0x4438aa=_0x9d7847['rjtGY'](kebabCase,_0x5287f0['name']),[_0x27b1f3,_0x38b2b4,_0x47fc60,_0x51b0e3,_0x5b368f,_0x8139fa]=await _0x9d7847[_0x15380b(0xb9)](createK8sClient,_0x2bfc21);await _0x9d7847[_0x15380b(0xce)](removeGridComponents,_0x27b1f3,_0x38b2b4,_0x47fc60,_0x51b0e3,_0x4438aa);if(_0xd0e75a['onlyGridInCluster']){const _0x2acb64=await _0x2bfc21[_0x15380b(0xec)]();_0x2acb64?await _0x2bfc21['deleteCluster'](_0x27b1f3,_0x5287f0[_0x15380b(0xd9)]):logger[_0x15380b(0xfc)](_0x15380b(0xd4)+_0x5287f0[_0x15380b(0xb4)]+_0x15380b(0xc0));}const _0x557c49=_0x15380b(0x8b)+AG_API_URL+_0x15380b(0xb6)+_0x568291['gridId'],_0x65062c={};_0x65062c[_0x15380b(0xe7)]=_0x80cf85['Browserstack'][_0x15380b(0xe7)],_0x65062c['password']=_0x80cf85[_0x15380b(0xa1)]['password'];const _0x2a6f2c={};_0x2a6f2c[_0x15380b(0xa3)]=_0x557c49,_0x2a6f2c[_0x15380b(0x99)]=_0x9d7847[_0x15380b(0xb5)],_0x2a6f2c['auth']=_0x65062c;const _0x375f17=_0x2a6f2c,_0x53fa8a=await _0x9d7847['OLCXL'](promisifiedRequest,_0x375f17);_0x9d7847[_0x15380b(0xe3)](_0x53fa8a,null)&&_0x9d7847['QHgJl'](_0x53fa8a,undefined)&&_0x9d7847[_0x15380b(0xe1)](_0x53fa8a[_0x15380b(0xee)],0xc8)&&(logger[_0x15380b(0xeb)]('Succesfully\x20deleted\x20the\x20grid'),process['exit'](0x0)),logger[_0x15380b(0xf4)](_0x15380b(0x107)+JSON[_0x15380b(0xc7)](_0x53fa8a)),await _0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847['JQLkR'],_0x2c3e49,_0x568291),process['exit'](0x1);}_0x9d7847[_0x15380b(0x89)](_0x2c3e49[_0x15380b(0xee)],0x191)&&(logger[_0x15380b(0xf4)](_0x15380b(0xa0)),await _0x9d7847[_0x15380b(0x94)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes['ERROR'],_0x9d7847['OzStt'],null,_0x568291),process['exit'](0x1)),_0x9d7847[_0x15380b(0xc3)](_0x2c3e49['statusCode'],0x190)&&(logger['error'](JSON['parse'](_0x2c3e49[_0x15380b(0xb8)])[_0x15380b(0xdb)]),await _0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847['AGVzZ'],null,_0x568291),process['exit'](0x1)),logger[_0x15380b(0xf4)](_0x15380b(0xaa)+JSON[_0x15380b(0xc7)](_0x2c3e49)),await _0x9d7847['fEDuo'](sendInstrumentationEvent,_0x568291,_0x9d7847['TaSgA'],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0xf3)],_0x2c3e49,_0x568291),process[_0x15380b(0xd1)](0x1);}catch(_0x5579e0){logger[_0x15380b(0xf4)](_0x15380b(0x106)+_0x5579e0[_0x15380b(0xd6)]),await _0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0x9f)],_0x5579e0,_0x568291),process[_0x15380b(0xd1)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x13e5a7=a13_0x2f78;(function(_0x576f77,_0x160246){const _0x5d9ccd=a13_0x2f78,_0xae88d2=_0x576f77();while(!![]){try{const _0x290a34=parseInt(_0x5d9ccd(0x1c4))/0x1*(parseInt(_0x5d9ccd(0x180))/0x2)+parseInt(_0x5d9ccd(0x1ad))/0x3*(-parseInt(_0x5d9ccd(0x179))/0x4)+parseInt(_0x5d9ccd(0x182))/0x5+-parseInt(_0x5d9ccd(0x1a8))/0x6*(parseInt(_0x5d9ccd(0x1c7))/0x7)+parseInt(_0x5d9ccd(0x19b))/0x8*(parseInt(_0x5d9ccd(0x1be))/0x9)+-parseInt(_0x5d9ccd(0x1cb))/0xa*(-parseInt(_0x5d9ccd(0x16e))/0xb)+parseInt(_0x5d9ccd(0x1d7))/0xc*(-parseInt(_0x5d9ccd(0x16f))/0xd);if(_0x290a34===_0x160246)break;else _0xae88d2['push'](_0xae88d2['shift']());}catch(_0x57dcd8){_0xae88d2['push'](_0xae88d2['shift']());}}}(a13_0x1629,0xbe060));function a13_0x2f78(_0x282ff6,_0x511366){const _0x16298d=a13_0x1629();return a13_0x2f78=function(_0x2f7899,_0x227159){_0x2f7899=_0x2f7899-0x16a;let _0x49e7a8=_0x16298d[_0x2f7899];return _0x49e7a8;},a13_0x2f78(_0x282ff6,_0x511366);}const fs=require('fs'),util=require('util'),request=require(a13_0x13e5a7(0x196)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x13e5a7(0x1b9)),{inputBstackKeys}=require(a13_0x13e5a7(0x190)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x13e5a7(0x1ab)),{getDirForConfig,getCredentialsPath}=require(a13_0x13e5a7(0x1d3)),{sendInstrumentationEvent}=require(a13_0x13e5a7(0x194)),promisifiedRequest=util[a13_0x13e5a7(0x1ba)](request);exports['command']=a13_0x13e5a7(0x19a),exports[a13_0x13e5a7(0x1ae)]=a13_0x13e5a7(0x1d9),exports['builder']=function(_0x5f2388){const _0x100b61=a13_0x13e5a7,_0x2fc300={};_0x2fc300['TcnCO']=_0x100b61(0x1da),_0x2fc300[_0x100b61(0x1bd)]='string',_0x2fc300[_0x100b61(0x173)]=_0x100b61(0x185),_0x2fc300[_0x100b61(0x188)]=_0x100b61(0x1a3);const _0x391b4d=_0x2fc300,_0x43a8ee={};_0x43a8ee[_0x100b61(0x1bc)]=_0x391b4d['TcnCO'],_0x43a8ee[_0x100b61(0x17a)]=_0x391b4d[_0x100b61(0x1bd)];const _0x55dc5d={};_0x55dc5d[_0x100b61(0x1bc)]=_0x391b4d[_0x100b61(0x173)],_0x55dc5d['type']=_0x391b4d[_0x100b61(0x1bd)];const _0x218bb6={};return _0x218bb6[_0x100b61(0x18e)]=_0x43a8ee,_0x218bb6[_0x100b61(0x1b4)]=_0x55dc5d,_0x5f2388['usage'](HELP_HEADER_MESSAGE[_0x100b61(0x19a)])[_0x100b61(0x1a4)](HELP_FOOTER_MESSAGE)[_0x100b61(0x183)](_0x218bb6)[_0x100b61(0x1c1)]()[_0x100b61(0x19e)]()[_0x100b61(0x1a3)](_0x391b4d['qSPwH'])['argv'];},exports[a13_0x13e5a7(0x199)]=async function(_0xb9112e){const _0x33f593=a13_0x13e5a7,_0x360d26={'ABMaE':'utf-8','MRCQH':function(_0x5ad544){return _0x5ad544();},'KeSJZ':_0x33f593(0x1da),'vBjNO':_0x33f593(0x1cf),'UMysk':_0x33f593(0x185),'VJQJC':_0x33f593(0x1a3),'AapGw':function(_0x472b8d){return _0x472b8d();},'FKVWC':function(_0x247f54,_0x13d17f,_0x32ec39,_0x41c596,_0x3f17e3,_0x2e03d7,_0x101355){return _0x247f54(_0x13d17f,_0x32ec39,_0x41c596,_0x3f17e3,_0x2e03d7,_0x101355);},'fVfEP':_0x33f593(0x1b0),'QwiwV':function(_0x46ef0e){return _0x46ef0e();},'pPTxp':function(_0x4d4496,_0x135220){return _0x4d4496===_0x135220;},'cdtjZ':_0x33f593(0x1c9),'HmZKa':function(_0x90ea26,_0x3406cb){return _0x90ea26!==_0x3406cb;},'OAMXM':'heNnO','VTcSG':_0x33f593(0x1c3),'OMozt':_0x33f593(0x198),'ldvsI':_0x33f593(0x1ce),'NVeul':function(_0x1596a3,_0x531f03){return _0x1596a3===_0x531f03;},'EoSlu':_0x33f593(0x16c),'fRFJZ':'ZYuYf','tMrLo':_0x33f593(0x19c),'pvVLZ':_0x33f593(0x1c2),'ioLfl':function(_0x445260,_0x4fdcce){return _0x445260===_0x4fdcce;},'KFGks':'jrZcQ','TZLpK':_0x33f593(0x1a0),'UrcxE':function(_0x207962){return _0x207962();},'JeKYo':_0x33f593(0x17f),'Jhhut':function(_0x1e7ea5,_0x463496){return _0x1e7ea5(_0x463496);},'zxmbI':function(_0x4b263a,_0x31e9a8){return _0x4b263a!==_0x31e9a8;},'LaZEi':_0x33f593(0x16d),'UITPU':function(_0x551b71,_0x38067c){return _0x551b71!==_0x38067c;},'vfOOK':_0x33f593(0x181),'SUhpJ':function(_0x5a2c27){return _0x5a2c27();},'kRkrZ':_0x33f593(0x17e),'GmDEb':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','XxeGO':function(_0x546ca0,_0x42de51,_0x34dd5e,_0x4433a5,_0x511fb5,_0x13d878,_0x55ef58){return _0x546ca0(_0x42de51,_0x34dd5e,_0x4433a5,_0x511fb5,_0x13d878,_0x55ef58);},'xaais':_0x33f593(0x172),'ZAcwN':'unknown-error'};try{global_registry[_0x33f593(0x1c0)]=_0x360d26[_0x33f593(0x1af)](uuidv4),_0x360d26[_0x33f593(0x16b)](sendInstrumentationEvent,_0xb9112e,_0x360d26[_0x33f593(0x17d)],messageTypes[_0x33f593(0x195)],null,null,_0xb9112e);const _0x9448e6=_0x360d26[_0x33f593(0x1aa)](getDirForConfig);!fs[_0x33f593(0x1d6)](_0x9448e6)&&(_0x360d26[_0x33f593(0x19f)](_0x360d26[_0x33f593(0x1cc)],_0x360d26[_0x33f593(0x1cc)])?fs[_0x33f593(0x1c5)](_0x9448e6):_0x3bdc42['mkdirSync'](_0x1308fb));let _0x5dc9f2,_0x3f1104;process[_0x33f593(0x1d5)][_0x33f593(0x1bb)]&&(_0x360d26[_0x33f593(0x197)](_0x360d26[_0x33f593(0x171)],_0x360d26[_0x33f593(0x18a)])?_0x5dc9f2=process['env'][_0x33f593(0x1bb)]:_0x42bac3=_0x2a0ff5[_0x33f593(0x1d4)]);process[_0x33f593(0x1d5)][_0x33f593(0x17c)]&&(_0x360d26[_0x33f593(0x19f)](_0x360d26[_0x33f593(0x17b)],_0x360d26['ldvsI'])?_0x132144=_0x73c6ab[_0x33f593(0x193)](_0x58e9d9['readFileSync'](_0x2d4b6d,_0x360d26[_0x33f593(0x1ac)])):_0x3f1104=process['env'][_0x33f593(0x17c)]);if(_0xb9112e['bstackUsername']){if(_0x360d26[_0x33f593(0x186)](_0x360d26[_0x33f593(0x1c6)],_0x360d26[_0x33f593(0x1a6)])){let _0x43cbfb={};const _0x2dc4a0=_0x360d26[_0x33f593(0x1d2)](_0x110b1c);_0x48b612[_0x33f593(0x1d6)](_0x2dc4a0)&&(_0x43cbfb=_0x22ccfb[_0x33f593(0x193)](_0x1d1460[_0x33f593(0x1b2)](_0x2dc4a0,_0x360d26['ABMaE'])));const _0x51e816={};_0x51e816[_0x33f593(0x1d0)]=_0x3ebefd,_0x51e816[_0x33f593(0x1a1)]=_0x4a5d2b,_0x43cbfb[_0x33f593(0x177)]=_0x51e816,_0x3e952c[_0x33f593(0x178)](_0x2dc4a0,_0x3dd08a[_0x33f593(0x176)](_0x43cbfb)),_0x377d8d['exit'](0x0);}else _0x5dc9f2=_0xb9112e[_0x33f593(0x1d4)];}_0xb9112e[_0x33f593(0x1b8)]&&(_0x360d26['pPTxp'](_0x360d26[_0x33f593(0x1c8)],_0x360d26[_0x33f593(0x189)])?_0x353162=_0x3de3b6[_0x33f593(0x1d5)][_0x33f593(0x17c)]:_0x3f1104=_0xb9112e[_0x33f593(0x1b8)]);if(_0x360d26[_0x33f593(0x186)](_0x5dc9f2,undefined)||_0x360d26['pPTxp'](_0x3f1104,undefined)){if(_0x360d26[_0x33f593(0x1a5)](_0x360d26[_0x33f593(0x1a7)],_0x360d26[_0x33f593(0x1a7)])){logger[_0x33f593(0x1b7)](_0x360d26[_0x33f593(0x18d)]);const [_0x3e904c,_0x420cc5]=await _0x360d26['UrcxE'](inputBstackKeys);_0x5dc9f2=_0x3e904c,_0x3f1104=_0x420cc5;}else _0x45515b=!![];}let _0x5c175f=![];const _0x11285e={};_0x11285e[_0x33f593(0x1d8)]=_0x33f593(0x18b)+_0x5dc9f2+':'+_0x3f1104+'@'+BS_API_URL+'/automate/plan.json',_0x11285e[_0x33f593(0x1b6)]=_0x360d26['JeKYo'];const _0x1382bf=_0x11285e,_0x2bc8e5=await _0x360d26[_0x33f593(0x174)](promisifiedRequest,_0x1382bf);_0x360d26['HmZKa'](_0x2bc8e5,null)&&_0x360d26[_0x33f593(0x192)](_0x2bc8e5,undefined)&&_0x360d26[_0x33f593(0x1a5)](_0x2bc8e5[_0x33f593(0x184)],0xc8)&&(_0x360d26[_0x33f593(0x192)](_0x360d26[_0x33f593(0x175)],_0x360d26[_0x33f593(0x175)])?_0x2d5568=_0x7624cc[_0x33f593(0x1d5)]['BROWSERSTACK_USERNAME']:_0x5c175f=!![]);if(_0x5c175f){if(_0x360d26[_0x33f593(0x1a9)](_0x360d26['vfOOK'],_0x360d26['vfOOK'])){const _0x24a71c={};_0x24a71c[_0x33f593(0x1bc)]=_0x360d26[_0x33f593(0x187)],_0x24a71c[_0x33f593(0x17a)]=_0x360d26['vBjNO'];const _0xc7196b={};_0xc7196b['description']=_0x360d26['UMysk'],_0xc7196b[_0x33f593(0x17a)]=_0x360d26[_0x33f593(0x1ca)];const _0x2142d6={};return _0x2142d6[_0x33f593(0x18e)]=_0x24a71c,_0x2142d6[_0x33f593(0x1b4)]=_0xc7196b,_0x20bd49[_0x33f593(0x1d1)](_0x3b0c7a[_0x33f593(0x19a)])[_0x33f593(0x1a4)](_0x2cc08a)[_0x33f593(0x183)](_0x2142d6)[_0x33f593(0x1c1)]()[_0x33f593(0x19e)]()[_0x33f593(0x1a3)](_0x360d26[_0x33f593(0x18c)])[_0x33f593(0x1bf)];}else{let _0x333d36={};const _0xb14875=_0x360d26[_0x33f593(0x191)](getCredentialsPath);fs['existsSync'](_0xb14875)&&(_0x360d26[_0x33f593(0x1a9)](_0x360d26[_0x33f593(0x1a2)],_0x360d26[_0x33f593(0x1a2)])?_0x1b39ba=_0x12b7d6[_0x33f593(0x1b8)]:_0x333d36=JSON[_0x33f593(0x193)](fs['readFileSync'](_0xb14875,_0x360d26[_0x33f593(0x1ac)])));const _0x5926ad={};_0x5926ad[_0x33f593(0x1d0)]=_0x5dc9f2,_0x5926ad[_0x33f593(0x1a1)]=_0x3f1104,_0x333d36[_0x33f593(0x177)]=_0x5926ad,fs[_0x33f593(0x178)](_0xb14875,JSON[_0x33f593(0x176)](_0x333d36)),process[_0x33f593(0x1cd)](0x0);}}else logger['error'](_0x360d26[_0x33f593(0x18f)]),await _0x360d26[_0x33f593(0x16a)](sendInstrumentationEvent,_0xb9112e,_0x360d26[_0x33f593(0x17d)],messageTypes[_0x33f593(0x170)],_0x360d26[_0x33f593(0x1b5)],null,_0xb9112e),process['exit'](0x1);}catch(_0x41a559){logger[_0x33f593(0x1b3)](_0x41a559[_0x33f593(0x19d)]),await _0x360d26[_0x33f593(0x16b)](sendInstrumentationEvent,_0xb9112e,_0x360d26[_0x33f593(0x17d)],messageTypes[_0x33f593(0x170)],_0x360d26[_0x33f593(0x1b1)],_0x41a559,_0xb9112e),process[_0x33f593(0x1cd)](0x1);}};function a13_0x1629(){const _0x22b1b3=['OAMXM','wrong-creds','IerAu','Jhhut','LaZEi','stringify','Browserstack','writeFileSync','33596jWcEDi','type','OMozt','BROWSERSTACK_ACCESS_KEY','fVfEP','qgzJy','GET','6wxFqNv','LeYyR','1686605ZmdUhO','options','statusCode','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','NVeul','KeSJZ','qSPwH','pvVLZ','VTcSG','https://','VJQJC','TZLpK','bstack-username','GmDEb','../utils/userInput','SUhpJ','zxmbI','parse','../utils/instrumentationUtils','INFO','request','HmZKa','QpfqO','handler','init','5428040CDIJdB','kFisE','stack','strict','pPTxp','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','password','kRkrZ','help','epilogue','ioLfl','fRFJZ','KFGks','230718diLFoU','UITPU','QwiwV','../config/constants','ABMaE','429svOvgo','desc','AapGw','init-called','ZAcwN','readFileSync','error','bstack-accesskey','xaais','method','debug','bstackAccesskey','../config/logger','promisify','BROWSERSTACK_USERNAME','description','EcbHt','9EPVFpD','argv','requestId','recommendCommands','dAZKD','mHFnx','232395WfxFgd','mkdirSync','EoSlu','133eQdyFX','tMrLo','fshdr','vBjNO','13871650qjrfNh','cdtjZ','exit','vltAx','string','username','usage','MRCQH','../utils/utilityMethods','bstackUsername','env','existsSync','146316OMdEXV','url','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XxeGO','FKVWC','claWG','UQjfA','11rdzrii','416SozYxm','ERROR'];a13_0x1629=function(){return _0x22b1b3;};return a13_0x1629();}
1
+ function a12_0x4d25(){const _0x151675=['ERbgy','QBuzv','bJspK','agCOh','OPIfY','../config/constants','1388025QoNbwf','options','528606jQbAGA','NKFOl','stack','existsSync','username','tFefC','dalXw','zkoDD','omwPi','WVYmM','wrong-creds','/automate/plan.json','BROWSERSTACK_ACCESS_KEY','GYqks','description','Sxcdm','3AFogps','bstackUsername','hRDRI','psGYt','bstackAccesskey','debug','VzamO','Browserstack','7019nbmQcB','YUplR','MgoRy','568124CBmGls','lGKQU','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','type','password','writeFileSync','BROWSERSTACK_USERNAME','xHpmr','bstack-username','unknown-error','NbILJ','NjsoZ','91ENhVXs','utf-8','pBwDw','PYKZS','../utils/userInput','help','argv','desc','slqvm','init-called','usmYc','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','INFO','strict','KgPcb','readFileSync','stringify','../utils/instrumentationUtils','ERROR','9186516qGhznM','recommendCommands','ldzuq','string','epilogue','GrvgP','NYPBu','NeRMr','error','krTUN','jcBGh','IOMjD','../config/logger','wkvFL','bstack-accesskey','parse','658506CyQymE','GET','tHGUZ','exit','bGEtY','init','24032ZHHxyl','env','GBOXd','uuid','RLGXo','cdXDH','handler','QDzdo','djRMj','DrgZe','statusCode','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','mkdirSync','nijIk','LBhMl','bgHMd','xihbp','GjjgR','usage','QoWfE','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','requestId','command','LlvfE'];a12_0x4d25=function(){return _0x151675;};return a12_0x4d25();}function a12_0xaf1d(_0x553347,_0x57cded){const _0x4d2568=a12_0x4d25();return a12_0xaf1d=function(_0xaf1dfb,_0x477330){_0xaf1dfb=_0xaf1dfb-0x94;let _0x1afb4b=_0x4d2568[_0xaf1dfb];return _0x1afb4b;},a12_0xaf1d(_0x553347,_0x57cded);}const a12_0x59d5e7=a12_0xaf1d;(function(_0x4a92f1,_0x5e1cbc){const _0x32f814=a12_0xaf1d,_0x476f91=_0x4a92f1();while(!![]){try{const _0x1e627a=-parseInt(_0x32f814(0xfd))/0x1+parseInt(_0x32f814(0xbf))/0x2*(-parseInt(_0x32f814(0xf5))/0x3)+-parseInt(_0x32f814(0x100))/0x4+-parseInt(_0x32f814(0xe3))/0x5+-parseInt(_0x32f814(0xe5))/0x6+-parseInt(_0x32f814(0x9c))/0x7*(-parseInt(_0x32f814(0xc5))/0x8)+parseInt(_0x32f814(0xaf))/0x9;if(_0x1e627a===_0x5e1cbc)break;else _0x476f91['push'](_0x476f91['shift']());}catch(_0x1fbf30){_0x476f91['push'](_0x476f91['shift']());}}}(a12_0x4d25,0x34ad7));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0x59d5e7(0xc8)),{logger}=require(a12_0x59d5e7(0xbb)),{inputBstackKeys}=require(a12_0x59d5e7(0xa0)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x59d5e7(0xe2)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x59d5e7(0xad)),promisifiedRequest=util['promisify'](request);exports[a12_0x59d5e7(0xdb)]=a12_0x59d5e7(0xc4),exports[a12_0x59d5e7(0xa3)]=a12_0x59d5e7(0xd0),exports['builder']=function(_0x33f12a){const _0x5f4263=a12_0x59d5e7,_0x21ec80={};_0x21ec80[_0x5f4263(0xb4)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x21ec80['hRDRI']=_0x5f4263(0xb2),_0x21ec80[_0x5f4263(0xc1)]=_0x5f4263(0xd9),_0x21ec80['QDzdo']='help';const _0x2b3767=_0x21ec80,_0x1efde={};_0x1efde[_0x5f4263(0xf3)]=_0x2b3767[_0x5f4263(0xb4)],_0x1efde[_0x5f4263(0x103)]=_0x2b3767[_0x5f4263(0xf7)];const _0x46b54c={};_0x46b54c[_0x5f4263(0xf3)]=_0x2b3767[_0x5f4263(0xc1)],_0x46b54c[_0x5f4263(0x103)]=_0x2b3767[_0x5f4263(0xf7)];const _0x206c39={};return _0x206c39[_0x5f4263(0x98)]=_0x1efde,_0x206c39['bstack-accesskey']=_0x46b54c,_0x33f12a[_0x5f4263(0xd7)](HELP_HEADER_MESSAGE[_0x5f4263(0xc4)])[_0x5f4263(0xb3)](HELP_FOOTER_MESSAGE)[_0x5f4263(0xe4)](_0x206c39)[_0x5f4263(0xb0)]()[_0x5f4263(0xa9)]()[_0x5f4263(0xa1)](_0x2b3767[_0x5f4263(0xcc)])[_0x5f4263(0xa2)];},exports[a12_0x59d5e7(0xcb)]=async function(_0x3e62cc){const _0x3b1ea6=a12_0x59d5e7,_0x4fe2c1={'NKFOl':function(_0x59e13f){return _0x59e13f();},'LBhMl':_0x3b1ea6(0x9d),'LlvfE':_0x3b1ea6(0xa7),'NbILJ':_0x3b1ea6(0xb2),'agCOh':_0x3b1ea6(0xd9),'WVlcc':_0x3b1ea6(0xa1),'GoIwC':function(_0x1e2628){return _0x1e2628();},'vOZWh':function(_0x1ea2d4,_0x27f8c2,_0x808f57,_0x45ffb9,_0xa26907,_0x30af9d,_0x4d09d0){return _0x1ea2d4(_0x27f8c2,_0x808f57,_0x45ffb9,_0xa26907,_0x30af9d,_0x4d09d0);},'zkoDD':_0x3b1ea6(0xa5),'DrgZe':function(_0x4cd494){return _0x4cd494();},'GYqks':function(_0x5b5b13,_0x208123){return _0x5b5b13!==_0x208123;},'bgHMd':_0x3b1ea6(0xe1),'tFefC':_0x3b1ea6(0xc9),'WVYmM':function(_0x1696d7,_0x407b48){return _0x1696d7===_0x407b48;},'KgPcb':_0x3b1ea6(0xf4),'xihbp':_0x3b1ea6(0xa6),'bJspK':function(_0x29dc58,_0xbd4554){return _0x29dc58!==_0xbd4554;},'krTUN':_0x3b1ea6(0xed),'pBwDw':function(_0x38a356,_0x3ac91d){return _0x38a356===_0x3ac91d;},'QBuzv':'kQkGM','IAJCr':function(_0x3a0aa9,_0x1e32d4){return _0x3a0aa9!==_0x1e32d4;},'TvQXI':'KHgsa','jcBGh':_0x3b1ea6(0x9b),'VzamO':function(_0x40d8ce,_0x1a24a4){return _0x40d8ce===_0x1a24a4;},'bGEtY':_0x3b1ea6(0xc7),'NeRMr':_0x3b1ea6(0xb5),'dalXw':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ldzuq':function(_0x570a35){return _0x570a35();},'utuhV':_0x3b1ea6(0xc0),'xHpmr':function(_0x19826f,_0x22392c){return _0x19826f(_0x22392c);},'ERbgy':function(_0x2c726b,_0x3ff74a){return _0x2c726b===_0x3ff74a;},'cdXDH':'BWnAq','iSFXG':_0x3b1ea6(0xbc),'psGYt':_0x3b1ea6(0xff),'YUplR':function(_0x32698d){return _0x32698d();},'GjjgR':function(_0x53e8a8,_0x523e8b){return _0x53e8a8===_0x523e8b;},'lGKQU':_0x3b1ea6(0xcd),'QoWfE':_0x3b1ea6(0xd2),'slqvm':_0x3b1ea6(0x102),'PYKZS':function(_0x13701f,_0x426c40,_0x4a1a8c,_0x3713cb,_0x52d36c,_0x210837,_0x17e9ba){return _0x13701f(_0x426c40,_0x4a1a8c,_0x3713cb,_0x52d36c,_0x210837,_0x17e9ba);},'IOMjD':_0x3b1ea6(0xef),'Ddvmc':_0x3b1ea6(0x99)};try{global_registry[_0x3b1ea6(0xda)]=_0x4fe2c1['GoIwC'](uuidv4),_0x4fe2c1['vOZWh'](sendInstrumentationEvent,_0x3e62cc,_0x4fe2c1[_0x3b1ea6(0xec)],messageTypes[_0x3b1ea6(0xa8)],null,null,_0x3e62cc);const _0x5262fd=_0x4fe2c1[_0x3b1ea6(0xce)](getDirForConfig);if(!fs[_0x3b1ea6(0xe8)](_0x5262fd)){if(_0x4fe2c1[_0x3b1ea6(0xf2)](_0x4fe2c1[_0x3b1ea6(0xd4)],_0x4fe2c1[_0x3b1ea6(0xea)]))fs[_0x3b1ea6(0xd1)](_0x5262fd);else{let _0x5a3c3f={};const _0x4fc7c5=_0x4fe2c1[_0x3b1ea6(0xe6)](_0x21df06);_0x47d1b9[_0x3b1ea6(0xe8)](_0x4fc7c5)&&(_0x5a3c3f=_0x5af9fc['parse'](_0x3c2c80['readFileSync'](_0x4fc7c5,_0x4fe2c1['LBhMl'])));const _0x342cd5={};_0x342cd5[_0x3b1ea6(0xe9)]=_0x174741,_0x342cd5[_0x3b1ea6(0x94)]=_0x33073e,_0x5a3c3f[_0x3b1ea6(0xfc)]=_0x342cd5,_0x5dd060[_0x3b1ea6(0x95)](_0x4fc7c5,_0x5110b5[_0x3b1ea6(0xac)](_0x5a3c3f)),_0x269d51['exit'](0x0);}}let _0x21f401,_0x3c3ff3;process[_0x3b1ea6(0xc6)]['BROWSERSTACK_USERNAME']&&(_0x4fe2c1[_0x3b1ea6(0xee)](_0x4fe2c1[_0x3b1ea6(0xaa)],_0x4fe2c1[_0x3b1ea6(0xd5)])?_0x2e89e9=_0x1cb03c[_0x3b1ea6(0xbe)](_0x154fc6[_0x3b1ea6(0xab)](_0xdcf3db,_0x4fe2c1[_0x3b1ea6(0xd3)])):_0x21f401=process[_0x3b1ea6(0xc6)][_0x3b1ea6(0x96)]);if(process[_0x3b1ea6(0xc6)]['BROWSERSTACK_ACCESS_KEY']){if(_0x4fe2c1[_0x3b1ea6(0xdf)](_0x4fe2c1[_0x3b1ea6(0xb8)],_0x4fe2c1[_0x3b1ea6(0xb8)])){const _0x5a89fc={};_0x5a89fc['description']=_0x4fe2c1[_0x3b1ea6(0xdc)],_0x5a89fc[_0x3b1ea6(0x103)]=_0x4fe2c1[_0x3b1ea6(0x9a)];const _0x381624={};_0x381624[_0x3b1ea6(0xf3)]=_0x4fe2c1[_0x3b1ea6(0xe0)],_0x381624[_0x3b1ea6(0x103)]=_0x4fe2c1[_0x3b1ea6(0x9a)];const _0x3b456f={};return _0x3b456f[_0x3b1ea6(0x98)]=_0x5a89fc,_0x3b456f[_0x3b1ea6(0xbd)]=_0x381624,_0x1f5a88[_0x3b1ea6(0xd7)](_0x23b8cb[_0x3b1ea6(0xc4)])[_0x3b1ea6(0xb3)](_0x3c6015)[_0x3b1ea6(0xe4)](_0x3b456f)[_0x3b1ea6(0xb0)]()[_0x3b1ea6(0xa9)]()['help'](_0x4fe2c1['WVlcc'])[_0x3b1ea6(0xa2)];}else _0x3c3ff3=process[_0x3b1ea6(0xc6)]['BROWSERSTACK_ACCESS_KEY'];}_0x3e62cc[_0x3b1ea6(0xf6)]&&(_0x4fe2c1[_0x3b1ea6(0x9e)](_0x4fe2c1[_0x3b1ea6(0xde)],_0x4fe2c1[_0x3b1ea6(0xde)])?_0x21f401=_0x3e62cc['bstackUsername']:_0xc8677=_0x5ea389[_0x3b1ea6(0xc6)][_0x3b1ea6(0xf1)]);_0x3e62cc[_0x3b1ea6(0xf9)]&&(_0x4fe2c1['IAJCr'](_0x4fe2c1['TvQXI'],_0x4fe2c1[_0x3b1ea6(0xb9)])?_0x3c3ff3=_0x3e62cc[_0x3b1ea6(0xf9)]:_0x64bb08=!![]);if(_0x4fe2c1[_0x3b1ea6(0x9e)](_0x21f401,undefined)||_0x4fe2c1[_0x3b1ea6(0xfb)](_0x3c3ff3,undefined)){if(_0x4fe2c1[_0x3b1ea6(0xf2)](_0x4fe2c1[_0x3b1ea6(0xc3)],_0x4fe2c1[_0x3b1ea6(0xb6)])){logger[_0x3b1ea6(0xfa)](_0x4fe2c1[_0x3b1ea6(0xeb)]);const [_0x54915b,_0x125f71]=await _0x4fe2c1[_0x3b1ea6(0xb1)](inputBstackKeys);_0x21f401=_0x54915b,_0x3c3ff3=_0x125f71;}else _0x1c3ff8=_0x34365f['env'][_0x3b1ea6(0x96)];}let _0x340f6c=![];const _0x4789a0={};_0x4789a0['url']='https://'+_0x21f401+':'+_0x3c3ff3+'@'+BS_API_URL+_0x3b1ea6(0xf0),_0x4789a0['method']=_0x4fe2c1['utuhV'];const _0x5ba66c=_0x4789a0,_0x1b2b4a=await _0x4fe2c1[_0x3b1ea6(0x97)](promisifiedRequest,_0x5ba66c);_0x4fe2c1[_0x3b1ea6(0xf2)](_0x1b2b4a,null)&&_0x4fe2c1['IAJCr'](_0x1b2b4a,undefined)&&_0x4fe2c1['VzamO'](_0x1b2b4a[_0x3b1ea6(0xcf)],0xc8)&&(_0x4fe2c1[_0x3b1ea6(0xdd)](_0x4fe2c1[_0x3b1ea6(0xca)],_0x4fe2c1['iSFXG'])?_0x27a035=_0x3be648[_0x3b1ea6(0xf6)]:_0x340f6c=!![]);if(_0x340f6c){if(_0x4fe2c1[_0x3b1ea6(0xf2)](_0x4fe2c1[_0x3b1ea6(0xf8)],_0x4fe2c1['psGYt']))_0x1d8e60['mkdirSync'](_0x30e90c);else{let _0x5da92a={};const _0x1aa142=_0x4fe2c1[_0x3b1ea6(0xfe)](getCredentialsPath);fs['existsSync'](_0x1aa142)&&(_0x4fe2c1[_0x3b1ea6(0xd6)](_0x4fe2c1[_0x3b1ea6(0x101)],_0x4fe2c1[_0x3b1ea6(0xd8)])?_0x11a5ff=_0x51f736['bstackAccesskey']:_0x5da92a=JSON[_0x3b1ea6(0xbe)](fs[_0x3b1ea6(0xab)](_0x1aa142,_0x4fe2c1[_0x3b1ea6(0xd3)])));const _0xbcd427={};_0xbcd427['username']=_0x21f401,_0xbcd427[_0x3b1ea6(0x94)]=_0x3c3ff3,_0x5da92a[_0x3b1ea6(0xfc)]=_0xbcd427,fs['writeFileSync'](_0x1aa142,JSON[_0x3b1ea6(0xac)](_0x5da92a)),process[_0x3b1ea6(0xc2)](0x0);}}else logger[_0x3b1ea6(0xb7)](_0x4fe2c1[_0x3b1ea6(0xa4)]),await _0x4fe2c1[_0x3b1ea6(0x9f)](sendInstrumentationEvent,_0x3e62cc,_0x4fe2c1[_0x3b1ea6(0xec)],messageTypes[_0x3b1ea6(0xae)],_0x4fe2c1[_0x3b1ea6(0xba)],null,_0x3e62cc),process['exit'](0x1);}catch(_0x5937d6){logger[_0x3b1ea6(0xb7)](_0x5937d6[_0x3b1ea6(0xe7)]),await _0x4fe2c1['vOZWh'](sendInstrumentationEvent,_0x3e62cc,_0x4fe2c1[_0x3b1ea6(0xec)],messageTypes['ERROR'],_0x4fe2c1['Ddvmc'],_0x5937d6,_0x3e62cc),process[_0x3b1ea6(0xc2)](0x1);}};
@@ -1 +1 @@
1
- const a14_0x47aec6=a14_0x4507;function a14_0x4507(_0x1925ff,_0x4d6ae3){const _0x6e2557=a14_0x6e25();return a14_0x4507=function(_0x4507d1,_0x1eac97){_0x4507d1=_0x4507d1-0x9f;let _0x250d32=_0x6e2557[_0x4507d1];return _0x250d32;},a14_0x4507(_0x1925ff,_0x4d6ae3);}function a14_0x6e25(){const _0x2c6654=['strict','handler','2528973wcCcIM','13337091sPkcZr','3380388xdWuVn','desc','20NogxTH','command','List\x20down\x20the\x20Grid\x20resources.','13974gbGNDy','commandDir','qdHKV','help','eanzy','demandCommand','8GDWJpx','root','list_commands','../config/constants','list','12902pmNmvN','4PohbpQ','1245SwpnsV','builder','1103879vGaumg','30618552qzDkgH','137kgFtEg','usage'];a14_0x6e25=function(){return _0x2c6654;};return a14_0x6e25();}(function(_0x408c73,_0x5e1159){const _0x1ef7de=a14_0x4507,_0x28f646=_0x408c73();while(!![]){try{const _0x3cb675=parseInt(_0x1ef7de(0xa7))/0x1*(parseInt(_0x1ef7de(0xa1))/0x2)+-parseInt(_0x1ef7de(0xab))/0x3*(-parseInt(_0x1ef7de(0xa2))/0x4)+parseInt(_0x1ef7de(0xa3))/0x5*(parseInt(_0x1ef7de(0xb2))/0x6)+-parseInt(_0x1ef7de(0xa5))/0x7*(-parseInt(_0x1ef7de(0xb8))/0x8)+parseInt(_0x1ef7de(0xac))/0x9+-parseInt(_0x1ef7de(0xaf))/0xa*(parseInt(_0x1ef7de(0xad))/0xb)+-parseInt(_0x1ef7de(0xa6))/0xc;if(_0x3cb675===_0x5e1159)break;else _0x28f646['push'](_0x28f646['shift']());}catch(_0xcac3c0){_0x28f646['push'](_0x28f646['shift']());}}}(a14_0x6e25,0xbe765));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x47aec6(0x9f));exports[a14_0x47aec6(0xb0)]='list',exports[a14_0x47aec6(0xae)]=a14_0x47aec6(0xb1),exports[a14_0x47aec6(0xa4)]=function(_0x4f3b23){const _0x27c972=a14_0x47aec6,_0x46ac15={};_0x46ac15[_0x27c972(0xb4)]=_0x27c972(0xba),_0x46ac15['eanzy']=_0x27c972(0xb5);const _0x500459=_0x46ac15;return _0x4f3b23[_0x27c972(0xb3)](_0x500459[_0x27c972(0xb4)])[_0x27c972(0xb7)]()[_0x27c972(0xa8)](HELP_HEADER_MESSAGE[_0x27c972(0xa0)][_0x27c972(0xb9)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x27c972(0xa9)]()['help'](_0x500459[_0x27c972(0xb6)]);},exports[a14_0x47aec6(0xaa)]=function(_0x4ee736){};
1
+ const a13_0x2b5887=a13_0x485e;function a13_0x3e6c(){const _0x241692=['316985QelUIy','8755480xceEXj','2004TXTBTE','usage','recommendCommands','2685490yhGCWs','5970714MmVigY','3222670VCQUkf','builder','list_commands','../config/constants','hlwZN','608SviEgz','handler','strict','9sWWjQw','2xzPmVH','3938501htwCxc','FgNUY','list','demandCommand','help'];a13_0x3e6c=function(){return _0x241692;};return a13_0x3e6c();}(function(_0x18e23d,_0x5e0862){const _0x2c2676=a13_0x485e,_0x3e1adf=_0x18e23d();while(!![]){try{const _0x2a191a=parseInt(_0x2c2676(0x1c2))/0x1*(parseInt(_0x2c2676(0x1d2))/0x2)+-parseInt(_0x2c2676(0x1c4))/0x3*(-parseInt(_0x2c2676(0x1ce))/0x4)+parseInt(_0x2c2676(0x1c7))/0x5+-parseInt(_0x2c2676(0x1c8))/0x6+-parseInt(_0x2c2676(0x1d3))/0x7+parseInt(_0x2c2676(0x1c3))/0x8+-parseInt(_0x2c2676(0x1d1))/0x9*(-parseInt(_0x2c2676(0x1c9))/0xa);if(_0x2a191a===_0x5e0862)break;else _0x3e1adf['push'](_0x3e1adf['shift']());}catch(_0x29f58c){_0x3e1adf['push'](_0x3e1adf['shift']());}}}(a13_0x3e6c,0xc6ddf));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2b5887(0x1cc));function a13_0x485e(_0x546a92,_0x5aa631){const _0x3e6cc8=a13_0x3e6c();return a13_0x485e=function(_0x485ee2,_0x4f5d8d){_0x485ee2=_0x485ee2-0x1be;let _0x15970b=_0x3e6cc8[_0x485ee2];return _0x15970b;},a13_0x485e(_0x546a92,_0x5aa631);}exports['command']=a13_0x2b5887(0x1bf),exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x2b5887(0x1ca)]=function(_0x563823){const _0x314865=a13_0x2b5887,_0x2a769f={};_0x2a769f['FgNUY']=_0x314865(0x1cb),_0x2a769f['hlwZN']=_0x314865(0x1c1);const _0x2b201b=_0x2a769f;return _0x563823['commandDir'](_0x2b201b[_0x314865(0x1be)])[_0x314865(0x1c0)]()[_0x314865(0x1c5)](HELP_HEADER_MESSAGE[_0x314865(0x1bf)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x314865(0x1c6)]()[_0x314865(0x1d0)]()[_0x314865(0x1c1)](_0x2b201b[_0x314865(0x1cd)]);},exports[a13_0x2b5887(0x1cf)]=function(_0x3f8225){};
@@ -1 +1 @@
1
- function a15_0x3820(){const _0x4b5397=['exit','server-error','/packages/cli/get-grid-profiles','9ZhQjfh','error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','12LSFkhh','argv','lqkov','command','HNZuq','method','Browserstack','GET','usage','7799beptZH','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','region','push','5185256YLjKYv','wLuHU','3686816cUcTQn','hNxve','EJJKH','description','password','INFO','url','BubZo','username','type','bstackAccesskey','../../utils/instrumentationUtils','ERROR','concurrency','unauthorised','allGridProfiles','../../config/constants','log','gridProfile','2890810uxxscC','util','statusCode','builder','339361NRAkLB','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','existsSync','3869356gjxwtR','yZvnm','cloud-provider','grid-profile-name','requestId','sVeMj','bstackUsername','dEKzv','3UDdDBR','request','grid-profiles','body','table','fSiGA','636PmRhFn','boolean','gBtFm','386poBDPY','parse','name','init-not-called','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','auth','pLIge','readFileSync','stringify','qozVW','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','200blPXrg','all-grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','help','cloudProvider','/packages/cli/get-all-grid-profiles','72306tsbMRS','RnZTE','epilogue'];a15_0x3820=function(){return _0x4b5397;};return a15_0x3820();}const a15_0x21ebea=a15_0x466e;(function(_0x2ed6c0,_0x59a7b1){const _0x6b5592=a15_0x466e,_0x29356b=_0x2ed6c0();while(!![]){try{const _0x38b8bd=-parseInt(_0x6b5592(0x92))/0x1*(parseInt(_0x6b5592(0x6d))/0x2)+-parseInt(_0x6b5592(0xbb))/0x3*(-parseInt(_0x6b5592(0xb3))/0x4)+parseInt(_0x6b5592(0xab))/0x5*(parseInt(_0x6b5592(0x89))/0x6)+parseInt(_0x6b5592(0x98))/0x7+parseInt(_0x6b5592(0x96))/0x8*(parseInt(_0x6b5592(0x85))/0x9)+-parseInt(_0x6b5592(0x78))/0xa*(parseInt(_0x6b5592(0xaf))/0xb)+-parseInt(_0x6b5592(0x6a))/0xc*(parseInt(_0x6b5592(0x7f))/0xd);if(_0x38b8bd===_0x59a7b1)break;else _0x29356b['push'](_0x29356b['shift']());}catch(_0x3d0e62){_0x29356b['push'](_0x29356b['shift']());}}}(a15_0x3820,0xd7357));const fs=require('fs'),util=require(a15_0x21ebea(0xac)),request=require(a15_0x21ebea(0xbc)),{table}=require(a15_0x21ebea(0x68)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x21ebea(0xa8)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x21ebea(0xa3)),promisifiedRequest=util['promisify'](request);function a15_0x466e(_0xa02704,_0x51178c){const _0x382055=a15_0x3820();return a15_0x466e=function(_0x466e01,_0x3f6e7c){_0x466e01=_0x466e01-0x66;let _0x7c58e9=_0x382055[_0x466e01];return _0x7c58e9;},a15_0x466e(_0xa02704,_0x51178c);}exports[a15_0x21ebea(0x8c)]=a15_0x21ebea(0x66),exports['desc']=a15_0x21ebea(0x77),exports[a15_0x21ebea(0xae)]=function(_0x362b06){const _0x479be6=a15_0x21ebea,_0x51926c={};_0x51926c[_0x479be6(0xba)]=_0x479be6(0x93),_0x51926c[_0x479be6(0x73)]=_0x479be6(0x6b),_0x51926c['hNxve']=_0x479be6(0x7c);const _0x95a950=_0x51926c,_0x4eae8f={};_0x4eae8f[_0x479be6(0x9b)]=_0x95a950[_0x479be6(0xba)],_0x4eae8f[_0x479be6(0xa1)]=_0x95a950[_0x479be6(0x73)];const _0x2b4472={};return _0x2b4472[_0x479be6(0x79)]=_0x4eae8f,_0x362b06[_0x479be6(0x91)](HELP_HEADER_MESSAGE[_0x479be6(0x88)][_0x479be6(0xaa)])[_0x479be6(0x81)](HELP_FOOTER_MESSAGE)['options'](_0x2b4472)[_0x479be6(0x7c)](_0x95a950[_0x479be6(0x99)])[_0x479be6(0x8a)];},exports['handler']=async function(_0x25b459){const _0x1dbf64=a15_0x21ebea,_0x260437={'HNZuq':function(_0x4d8ea9){return _0x4d8ea9();},'qozVW':function(_0x4cfb70){return _0x4cfb70();},'rPcYc':_0x1dbf64(0x87),'bOYtr':function(_0x8da363,_0x9508ea,_0x3ad076,_0x1b7900,_0x36d7c4,_0x502e9f,_0x160672){return _0x8da363(_0x9508ea,_0x3ad076,_0x1b7900,_0x36d7c4,_0x502e9f,_0x160672);},'gBtFm':'list-grid-profiles-called','djCki':_0x1dbf64(0x70),'EJJKH':function(_0x444435,_0x165dd7,_0x2a190e,_0xfa2089,_0x1aad5d,_0x345846,_0x2df6c9){return _0x444435(_0x165dd7,_0x2a190e,_0xfa2089,_0x1aad5d,_0x345846,_0x2df6c9);},'WJZzX':_0x1dbf64(0x90),'LnXFZ':function(_0x322c77,_0xe6eeb4){return _0x322c77(_0xe6eeb4);},'wLuHU':function(_0x2aa45a,_0x1bbca4){return _0x2aa45a!==_0x1bbca4;},'BubZo':function(_0x33206a,_0x3b87bc){return _0x33206a===_0x3b87bc;},'yZvnm':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','SaztM':_0x1dbf64(0xb6),'fSiGA':_0x1dbf64(0xb5),'hQbRd':_0x1dbf64(0x94),'mSuXE':_0x1dbf64(0xa5),'sICae':function(_0x4a48a1,_0x29cfcd,_0x4c9ea9,_0x6d73b0,_0x169853,_0x815b28,_0x9a1269){return _0x4a48a1(_0x29cfcd,_0x4c9ea9,_0x6d73b0,_0x169853,_0x815b28,_0x9a1269);},'jJWTz':_0x1dbf64(0xa6),'RnZTE':function(_0x3739a3,_0xf00014,_0xe364d3,_0x51cd84,_0x406ce5,_0x2d57b3,_0x38ebf4){return _0x3739a3(_0xf00014,_0xe364d3,_0x51cd84,_0x406ce5,_0x2d57b3,_0x38ebf4);},'lqkov':_0x1dbf64(0x83),'sVeMj':function(_0x3a6eda,_0x1ec61b,_0x2e1287,_0xf0f5a1,_0x13381e,_0x5b5ff1,_0x109c53){return _0x3a6eda(_0x1ec61b,_0x2e1287,_0xf0f5a1,_0x13381e,_0x5b5ff1,_0x109c53);},'MCePD':'unknown-error'};try{global_registry[_0x1dbf64(0xb7)]=_0x260437[_0x1dbf64(0x8d)](uuidv4);let _0x4cebda=_0x1dbf64(0xb1)+AG_API_URL+_0x1dbf64(0x84);_0x25b459[_0x1dbf64(0xa7)]&&(_0x4cebda=_0x1dbf64(0xb1)+AG_API_URL+_0x1dbf64(0x7e));!fs[_0x1dbf64(0xb2)](_0x260437[_0x1dbf64(0x76)](getCredentialsPath))&&(console[_0x1dbf64(0x86)](_0x260437['rPcYc']),await _0x260437['bOYtr'](sendInstrumentationEvent,_0x25b459,_0x260437['gBtFm'],messageTypes[_0x1dbf64(0xa4)],_0x260437['djCki'],null,_0x25b459),process[_0x1dbf64(0x82)](0x1));_0x260437[_0x1dbf64(0x9a)](sendInstrumentationEvent,_0x25b459,_0x260437[_0x1dbf64(0x6c)],messageTypes[_0x1dbf64(0x9d)],null,null,_0x25b459);const _0x7e75e0=JSON[_0x1dbf64(0x6e)](fs[_0x1dbf64(0x74)](_0x260437[_0x1dbf64(0x8d)](getCredentialsPath))),_0x301242={};_0x301242[_0x1dbf64(0xa0)]=_0x7e75e0[_0x1dbf64(0x8f)]['username'],_0x301242['password']=_0x7e75e0[_0x1dbf64(0x8f)][_0x1dbf64(0x9c)];const _0x3cacf2={};_0x3cacf2[_0x1dbf64(0x9e)]=_0x4cebda,_0x3cacf2[_0x1dbf64(0x8e)]=_0x260437['WJZzX'],_0x3cacf2[_0x1dbf64(0x72)]=_0x301242;const _0x179d27=_0x3cacf2;global_registry[_0x1dbf64(0xb9)]=_0x7e75e0[_0x1dbf64(0x8f)][_0x1dbf64(0xa0)],global_registry[_0x1dbf64(0xa2)]=_0x7e75e0[_0x1dbf64(0x8f)]['password'];const _0x3752cf=await _0x260437['LnXFZ'](promisifiedRequest,_0x179d27);if(_0x260437[_0x1dbf64(0x97)](_0x3752cf,null)&&_0x260437[_0x1dbf64(0x97)](_0x3752cf,undefined)&&_0x260437['BubZo'](_0x3752cf[_0x1dbf64(0xad)],0xc8)){const _0x5ad028=JSON['parse'](_0x3752cf[_0x1dbf64(0x67)]);console['log'](_0x260437[_0x1dbf64(0xb4)]);const _0x22fa41=[];_0x22fa41[_0x1dbf64(0x95)]([_0x260437['SaztM'],_0x260437[_0x1dbf64(0x69)],_0x260437['hQbRd'],_0x260437['mSuXE']]),_0x5ad028['forEach'](_0x3a1817=>{const _0x2aeb15=_0x1dbf64;_0x22fa41[_0x2aeb15(0x95)]([_0x3a1817[_0x2aeb15(0x6f)],_0x3a1817[_0x2aeb15(0x7d)],_0x3a1817[_0x2aeb15(0x94)],_0x3a1817[_0x2aeb15(0xa5)]]);}),console[_0x1dbf64(0xa9)](_0x260437['LnXFZ'](table,_0x22fa41)),process[_0x1dbf64(0x82)](0x0);}_0x260437[_0x1dbf64(0x9f)](_0x3752cf[_0x1dbf64(0xad)],0x191)&&(console['error'](_0x1dbf64(0x71)),await _0x260437['sICae'](sendInstrumentationEvent,_0x25b459,_0x260437['gBtFm'],messageTypes[_0x1dbf64(0xa4)],_0x260437['jJWTz'],null,_0x25b459),process[_0x1dbf64(0x82)](0x1)),console[_0x1dbf64(0x86)](_0x1dbf64(0x7a)+JSON[_0x1dbf64(0x75)](_0x3752cf)),await _0x260437[_0x1dbf64(0x80)](sendInstrumentationEvent,_0x25b459,_0x260437[_0x1dbf64(0x6c)],messageTypes[_0x1dbf64(0xa4)],_0x260437[_0x1dbf64(0x8b)],_0x3752cf,_0x25b459),process['exit'](0x1);}catch(_0x38c8dc){console[_0x1dbf64(0x86)](_0x1dbf64(0xb0)+_0x38c8dc[_0x1dbf64(0x7b)]),await _0x260437[_0x1dbf64(0xb8)](sendInstrumentationEvent,_0x25b459,_0x260437[_0x1dbf64(0x6c)],messageTypes[_0x1dbf64(0xa4)],_0x260437['MCePD'],_0x38c8dc,_0x25b459),process[_0x1dbf64(0x82)](0x1);}};
1
+ const a14_0x430993=a14_0x2556;function a14_0x2556(_0x2a66f6,_0x48a3dc){const _0x5626b1=a14_0x5626();return a14_0x2556=function(_0x2556b7,_0x555797){_0x2556b7=_0x2556b7-0xf7;let _0x526dc3=_0x5626b1[_0x2556b7];return _0x526dc3;},a14_0x2556(_0x2a66f6,_0x48a3dc);}(function(_0x19b639,_0x317102){const _0x2df50f=a14_0x2556,_0x48de72=_0x19b639();while(!![]){try{const _0x35e489=parseInt(_0x2df50f(0x145))/0x1*(-parseInt(_0x2df50f(0xfb))/0x2)+parseInt(_0x2df50f(0x130))/0x3+parseInt(_0x2df50f(0xf9))/0x4+parseInt(_0x2df50f(0x101))/0x5*(parseInt(_0x2df50f(0x13b))/0x6)+-parseInt(_0x2df50f(0x144))/0x7*(parseInt(_0x2df50f(0x12b))/0x8)+parseInt(_0x2df50f(0x10a))/0x9+parseInt(_0x2df50f(0x107))/0xa*(parseInt(_0x2df50f(0x140))/0xb);if(_0x35e489===_0x317102)break;else _0x48de72['push'](_0x48de72['shift']());}catch(_0x1cddaf){_0x48de72['push'](_0x48de72['shift']());}}}(a14_0x5626,0xa4dbd));function a14_0x5626(){const _0x2670c3=['argv','ERROR','push','auth','handler','928670yCHynY','stringify','promisify','builder','../../utils/utilityMethods','VVdqz','170zzhfbM','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','950202spkHpM','name','method','Browserstack','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','KLVST','https://','url','error','PVJwR','all-grid-profiles','type','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','unauthorised','server-error','../../config/constants','usage','bstackAccesskey','FvuoU','forEach','log','dLuQB','AnkuX','concurrency','exit','sTACi','OoDOR','grid-profiles','username','INFO','statusCode','epilogue','159792mXMzLB','description','Failed\x20to\x20list\x20resources!\x20Error:\x20','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Rjlqr','340752WVLATs','AyxQG','YoWXQ','request','boolean','options','list-grid-profiles-called','unknown-error','password','uuid','desc','6nUOLUq','cloud-provider','command','eQlkI','dKlJX','246851LcbSbu','region','hmnvc','bstackUsername','42qSorvM','1693lrdRnw','/packages/cli/get-all-grid-profiles','requestId','parse','YdbkO','table','nHtfc','stack','346360jnLhtT','list','92PFHvfD'];a14_0x5626=function(){return _0x2670c3;};return a14_0x5626();}const fs=require('fs'),util=require('util'),request=require(a14_0x430993(0x133)),{table}=require(a14_0x430993(0x14a)),{v4:uuidv4}=require(a14_0x430993(0x139)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x430993(0x11a)),{getCredentialsPath}=require(a14_0x430993(0x105)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a14_0x430993(0x103)](request);exports[a14_0x430993(0x13d)]=a14_0x430993(0x126),exports[a14_0x430993(0x13a)]=a14_0x430993(0x12e),exports[a14_0x430993(0x104)]=function(_0x46aad9){const _0x3188c9=a14_0x430993,_0xabb05d={};_0xabb05d[_0x3188c9(0x114)]=_0x3188c9(0x10f),_0xabb05d['OoDOR']=_0x3188c9(0x134),_0xabb05d[_0x3188c9(0x120)]='help';const _0x2d7353=_0xabb05d,_0x3327a4={};_0x3327a4[_0x3188c9(0x12c)]=_0x2d7353[_0x3188c9(0x114)],_0x3327a4[_0x3188c9(0x116)]=_0x2d7353[_0x3188c9(0x125)];const _0x533cbf={};return _0x533cbf[_0x3188c9(0x115)]=_0x3327a4,_0x46aad9[_0x3188c9(0x11b)](HELP_HEADER_MESSAGE[_0x3188c9(0xfa)]['gridProfile'])[_0x3188c9(0x12a)](HELP_FOOTER_MESSAGE)[_0x3188c9(0x135)](_0x533cbf)['help'](_0x2d7353[_0x3188c9(0x120)])[_0x3188c9(0xfc)];},exports[a14_0x430993(0x100)]=async function(_0x354510){const _0x5a5ad5=a14_0x430993,_0x2871b7={'KLVST':function(_0x50dd2b){return _0x50dd2b();},'FvuoU':function(_0x3b74fd){return _0x3b74fd();},'ShugN':_0x5a5ad5(0x109),'AyxQG':function(_0x288242,_0x3910c8,_0x359afe,_0x233d54,_0x14a7a7,_0x370614,_0xa1b532){return _0x288242(_0x3910c8,_0x359afe,_0x233d54,_0x14a7a7,_0x370614,_0xa1b532);},'AnkuX':_0x5a5ad5(0x136),'YdbkO':'init-not-called','sTACi':_0x5a5ad5(0x108),'TUxPK':function(_0x115e40,_0x134183){return _0x115e40(_0x134183);},'hmnvc':function(_0x56a516,_0x4a4ffd){return _0x56a516!==_0x4a4ffd;},'Rjlqr':function(_0x142efe,_0x1b4cda){return _0x142efe===_0x1b4cda;},'eQlkI':_0x5a5ad5(0x10e),'nHtfc':'grid-profile-name','dKlJX':_0x5a5ad5(0x13c),'YoWXQ':_0x5a5ad5(0x141),'aVJhv':_0x5a5ad5(0x122),'VVdqz':_0x5a5ad5(0x118),'IyLiF':function(_0x136622,_0xc80abe,_0x5cd0f0,_0x250ad7,_0x3101e0,_0x112cc7,_0x3a4bca){return _0x136622(_0xc80abe,_0x5cd0f0,_0x250ad7,_0x3101e0,_0x112cc7,_0x3a4bca);},'gfqMo':_0x5a5ad5(0x119),'bcHRG':_0x5a5ad5(0x137)};try{global_registry[_0x5a5ad5(0x147)]=_0x2871b7['KLVST'](uuidv4);let _0x90a679='https://'+AG_API_URL+'/packages/cli/get-grid-profiles';_0x354510['allGridProfiles']&&(_0x90a679=_0x5a5ad5(0x111)+AG_API_URL+_0x5a5ad5(0x146));!fs['existsSync'](_0x2871b7[_0x5a5ad5(0x11d)](getCredentialsPath))&&(console['error'](_0x2871b7['ShugN']),await _0x2871b7['AyxQG'](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7[_0x5a5ad5(0x149)],null,_0x354510),process[_0x5a5ad5(0x123)](0x1));_0x2871b7[_0x5a5ad5(0x131)](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0x128)],null,null,_0x354510);const _0x1afb6c=JSON[_0x5a5ad5(0x148)](fs['readFileSync'](_0x2871b7[_0x5a5ad5(0x110)](getCredentialsPath))),_0x5a4259={};_0x5a4259[_0x5a5ad5(0x127)]=_0x1afb6c[_0x5a5ad5(0x10d)][_0x5a5ad5(0x127)],_0x5a4259['password']=_0x1afb6c[_0x5a5ad5(0x10d)]['password'];const _0x34120e={};_0x34120e[_0x5a5ad5(0x112)]=_0x90a679,_0x34120e[_0x5a5ad5(0x10c)]=_0x2871b7[_0x5a5ad5(0x124)],_0x34120e[_0x5a5ad5(0xff)]=_0x5a4259;const _0x5c2da9=_0x34120e;global_registry[_0x5a5ad5(0x143)]=_0x1afb6c['Browserstack'][_0x5a5ad5(0x127)],global_registry[_0x5a5ad5(0x11c)]=_0x1afb6c[_0x5a5ad5(0x10d)][_0x5a5ad5(0x138)];const _0x276e5a=await _0x2871b7['TUxPK'](promisifiedRequest,_0x5c2da9);if(_0x2871b7['hmnvc'](_0x276e5a,null)&&_0x2871b7[_0x5a5ad5(0x142)](_0x276e5a,undefined)&&_0x2871b7[_0x5a5ad5(0x12f)](_0x276e5a['statusCode'],0xc8)){const _0x5d154a=JSON['parse'](_0x276e5a['body']);console[_0x5a5ad5(0x11f)](_0x2871b7[_0x5a5ad5(0x13e)]);const _0x13805b=[];_0x13805b[_0x5a5ad5(0xfe)]([_0x2871b7[_0x5a5ad5(0xf7)],_0x2871b7[_0x5a5ad5(0x13f)],_0x2871b7[_0x5a5ad5(0x132)],_0x2871b7['aVJhv']]),_0x5d154a[_0x5a5ad5(0x11e)](_0x442821=>{const _0x3c6eb7=_0x5a5ad5;_0x13805b[_0x3c6eb7(0xfe)]([_0x442821[_0x3c6eb7(0x10b)],_0x442821['cloudProvider'],_0x442821[_0x3c6eb7(0x141)],_0x442821[_0x3c6eb7(0x122)]]);}),console[_0x5a5ad5(0x11f)](_0x2871b7['TUxPK'](table,_0x13805b)),process[_0x5a5ad5(0x123)](0x0);}_0x2871b7['Rjlqr'](_0x276e5a[_0x5a5ad5(0x129)],0x191)&&(console[_0x5a5ad5(0x113)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x2871b7[_0x5a5ad5(0x131)](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7[_0x5a5ad5(0x106)],null,_0x354510),process[_0x5a5ad5(0x123)](0x1)),console['error'](_0x5a5ad5(0x117)+JSON[_0x5a5ad5(0x102)](_0x276e5a)),await _0x2871b7['IyLiF'](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7['gfqMo'],_0x276e5a,_0x354510),process['exit'](0x1);}catch(_0x5863ca){console[_0x5a5ad5(0x113)](_0x5a5ad5(0x12d)+_0x5863ca[_0x5a5ad5(0xf8)]),await _0x2871b7['IyLiF'](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7['bcHRG'],_0x5863ca,_0x354510),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x506fa1=a16_0x44ee;(function(_0x28762c,_0x433e9a){const _0x2d273f=a16_0x44ee,_0x18a46a=_0x28762c();while(!![]){try{const _0x19230d=-parseInt(_0x2d273f(0x222))/0x1+parseInt(_0x2d273f(0x213))/0x2+parseInt(_0x2d273f(0x22d))/0x3+parseInt(_0x2d273f(0x1f1))/0x4+parseInt(_0x2d273f(0x1f2))/0x5*(-parseInt(_0x2d273f(0x200))/0x6)+-parseInt(_0x2d273f(0x212))/0x7*(-parseInt(_0x2d273f(0x1f7))/0x8)+-parseInt(_0x2d273f(0x230))/0x9*(-parseInt(_0x2d273f(0x1fa))/0xa);if(_0x19230d===_0x433e9a)break;else _0x18a46a['push'](_0x18a46a['shift']());}catch(_0x44a685){_0x18a46a['push'](_0x18a46a['shift']());}}}(a16_0xb3d7,0x5cc96));function a16_0x44ee(_0x46d42d,_0x522dd5){const _0xb3d7b2=a16_0xb3d7();return a16_0x44ee=function(_0x44ee6c,_0x3ed00c){_0x44ee6c=_0x44ee6c-0x1e9;let _0x281c32=_0xb3d7b2[_0x44ee6c];return _0x281c32;},a16_0x44ee(_0x46d42d,_0x522dd5);}const fs=require('fs'),util=require(a16_0x506fa1(0x1f6)),request=require(a16_0x506fa1(0x238)),{table}=require(a16_0x506fa1(0x20a)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x506fa1(0x1e9)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a16_0x506fa1(0x215)](request);exports[a16_0x506fa1(0x1ff)]='grids',exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x2c09a6){const _0x5f0c2a=a16_0x506fa1,_0x45d8f4={};_0x45d8f4[_0x5f0c2a(0x236)]=_0x5f0c2a(0x1f5),_0x45d8f4[_0x5f0c2a(0x229)]=_0x5f0c2a(0x211),_0x45d8f4['ngQYO']=_0x5f0c2a(0x1ec);const _0x427bc1=_0x45d8f4,_0x1d1909={};_0x1d1909[_0x5f0c2a(0x1f9)]=_0x427bc1['qTlKz'],_0x1d1909[_0x5f0c2a(0x21a)]=_0x427bc1[_0x5f0c2a(0x229)];const _0xfddcb8={};return _0xfddcb8[_0x5f0c2a(0x232)]=_0x1d1909,_0x2c09a6[_0x5f0c2a(0x1ea)](HELP_HEADER_MESSAGE[_0x5f0c2a(0x20c)][_0x5f0c2a(0x228)])[_0x5f0c2a(0x1ed)](HELP_FOOTER_MESSAGE)['options'](_0xfddcb8)[_0x5f0c2a(0x1ec)](_0x427bc1['ngQYO'])[_0x5f0c2a(0x1f8)];},exports[a16_0x506fa1(0x20f)]=async function(_0x42975c){const _0x302286=a16_0x506fa1,_0x551635={'qbjUB':function(_0x508f13){return _0x508f13();},'BqBzR':function(_0x43a5e9){return _0x43a5e9();},'fhyjk':_0x302286(0x20d),'UBFuK':function(_0x1a0fd2,_0x279f7e,_0x482df5,_0x5ca13d,_0x5c5616,_0xb06843,_0x43d7b2){return _0x1a0fd2(_0x279f7e,_0x482df5,_0x5ca13d,_0x5c5616,_0xb06843,_0x43d7b2);},'FfAlL':_0x302286(0x224),'wCNdD':'init-not-called','npMrE':function(_0x1bb8b8){return _0x1bb8b8();},'GBJoU':_0x302286(0x226),'AcQIi':function(_0x48b4f5,_0x3a5fa0,_0x25bbac,_0x4ef260,_0x36b499,_0x2c2b67,_0x544de6){return _0x48b4f5(_0x3a5fa0,_0x25bbac,_0x4ef260,_0x36b499,_0x2c2b67,_0x544de6);},'jRcOm':function(_0x14aca2,_0x1b0db8){return _0x14aca2(_0x1b0db8);},'phUux':function(_0x1fae6b,_0x11d9dd){return _0x1fae6b!==_0x11d9dd;},'jklfQ':function(_0x396021,_0x5c73cc){return _0x396021===_0x5c73cc;},'nFRsk':_0x302286(0x233),'IuaKq':_0x302286(0x201),'gKcab':'grid-name','rwNyb':_0x302286(0x1fd),'Knbga':'running','dBwwb':_0x302286(0x23c),'MmvRK':'cluster-name','zNzvD':function(_0x74f7a,_0x5299fd){return _0x74f7a(_0x5299fd);},'NcfDh':function(_0x3dd8d1,_0x120bfd){return _0x3dd8d1===_0x120bfd;},'JcTVY':'unauthorised','NnCXV':'server-error','ZAgfA':_0x302286(0x214)};try{global_registry[_0x302286(0x210)]=_0x551635[_0x302286(0x221)](uuidv4);!fs[_0x302286(0x22c)](_0x551635[_0x302286(0x1f0)](getCredentialsPath))&&(console[_0x302286(0x208)](_0x551635[_0x302286(0x227)]),await _0x551635['UBFuK'](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes['ERROR'],_0x551635[_0x302286(0x21d)],null,_0x42975c),process[_0x302286(0x20e)](0x1));const _0x3cfac3=JSON[_0x302286(0x237)](fs[_0x302286(0x209)](_0x551635['npMrE'](getCredentialsPath)));let _0x3dafc7=_0x302286(0x216)+AG_API_URL+_0x302286(0x22f);_0x42975c[_0x302286(0x1fc)]&&(_0x3dafc7=_0x302286(0x216)+AG_API_URL+'/packages/cli/get-all-grids');const _0x53ea39={};_0x53ea39['username']=_0x3cfac3[_0x302286(0x203)][_0x302286(0x220)],_0x53ea39['password']=_0x3cfac3[_0x302286(0x203)][_0x302286(0x22a)];const _0x59db5e={};_0x59db5e[_0x302286(0x22b)]=_0x3dafc7,_0x59db5e[_0x302286(0x1ef)]=_0x551635[_0x302286(0x21f)],_0x59db5e['auth']=_0x53ea39;const _0x460a0d=_0x59db5e;global_registry['bstackUsername']=_0x3cfac3[_0x302286(0x203)]['username'],global_registry[_0x302286(0x23a)]=_0x3cfac3[_0x302286(0x203)][_0x302286(0x22a)],_0x551635[_0x302286(0x239)](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes['INFO'],null,null,_0x42975c);const _0xc13367=await _0x551635[_0x302286(0x218)](promisifiedRequest,_0x460a0d);if(_0x551635[_0x302286(0x231)](_0xc13367,null)&&_0x551635[_0x302286(0x231)](_0xc13367,undefined)&&_0x551635[_0x302286(0x223)](_0xc13367[_0x302286(0x20b)],0xc8)){const _0x1672ba=JSON[_0x302286(0x237)](_0xc13367[_0x302286(0x205)]);console[_0x302286(0x1ee)](_0x551635[_0x302286(0x235)]);const _0x3c7a5e=[];_0x3c7a5e[_0x302286(0x204)]([_0x551635[_0x302286(0x202)],_0x551635[_0x302286(0x207)],_0x551635[_0x302286(0x219)],_0x551635['Knbga'],_0x551635[_0x302286(0x1fb)],_0x551635['MmvRK']]),_0x1672ba['forEach'](_0x2a61a3=>{const _0x1e8a01=_0x302286;_0x3c7a5e[_0x1e8a01(0x204)]([_0x2a61a3['id'],_0x2a61a3[_0x1e8a01(0x1fe)],_0x2a61a3[_0x1e8a01(0x1fd)],_0x2a61a3[_0x1e8a01(0x206)],_0x2a61a3[_0x1e8a01(0x23c)],_0x2a61a3['clusterName']]);}),console[_0x302286(0x1ee)](_0x551635[_0x302286(0x21c)](table,_0x3c7a5e)),process[_0x302286(0x20e)](0x0);}_0x551635['NcfDh'](_0xc13367[_0x302286(0x20b)],0x191)&&(console[_0x302286(0x208)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x551635[_0x302286(0x1eb)](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes[_0x302286(0x225)],_0x551635[_0x302286(0x1f4)],null,_0x42975c),process[_0x302286(0x20e)](0x1)),console[_0x302286(0x208)](_0x302286(0x23b)+JSON[_0x302286(0x217)](_0xc13367)),await _0x551635[_0x302286(0x1eb)](sendInstrumentationEvent,_0x42975c,_0x551635['FfAlL'],messageTypes[_0x302286(0x225)],_0x551635[_0x302286(0x234)],_0xc13367,_0x42975c),process[_0x302286(0x20e)](0x1);}catch(_0xf22c00){console['error'](_0x302286(0x22e)+_0xf22c00[_0x302286(0x21b)]),await _0x551635['AcQIi'](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes['ERROR'],_0x551635[_0x302286(0x21e)],_0xf22c00,_0x42975c),process[_0x302286(0x20e)](0x1);}};function a16_0xb3d7(){const _0x4b59b2=['qbjUB','553919qOjGGC','jklfQ','list-grids-called','ERROR','GET','fhyjk','grid','FDMxw','password','url','existsSync','2122245qWpSoF','Failed\x20to\x20list\x20resources!\x20Error:\x20','/packages/cli/get-grids','464661wiGhIh','phUux','all-grids','\x0aFound\x20the\x20following\x20grids:\x0a','NnCXV','nFRsk','qTlKz','parse','request','AcQIi','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','queued','../../config/constants','usage','UBFuK','help','epilogue','log','method','BqBzR','1121540ZHksbE','4805PUpBcF','FfAlL','JcTVY','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','util','38400FEOeBm','argv','description','20InaPIY','dBwwb','allGrids','status','name','command','1302uZNXSa','grid-id','IuaKq','Browserstack','push','body','running','gKcab','error','readFileSync','table','statusCode','list','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','handler','requestId','boolean','42wJsaEv','45304gfLoEk','unknown-error','promisify','https://','stringify','jRcOm','rwNyb','type','stack','zNzvD','wCNdD','ZAgfA','GBJoU','username'];a16_0xb3d7=function(){return _0x4b59b2;};return a16_0xb3d7();}
1
+ const a15_0x3643cb=a15_0x1cf6;function a15_0x36e0(){const _0xfc4b9f=['ReBPp','cluster-name','options','/packages/cli/get-all-grids','33ZwtoFB','boolean','method','../../config/constants','MvrwY','WFspm','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','kswFV','init-not-called','8qDDafJ','3TonVuf','argv','1033225GFAYev','70dGlLyb','ERROR','ZALDm','HBlPi','builder','status','grid','allGrids','../../utils/utilityMethods','exit','tuSvN','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','638019DqCGwd','grid-name','running','help','llllv','126DbBCKt','tTikz','/packages/cli/get-grids','IKbSi','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','username','5163zdCogQ','omSgo','error','log','1718112RKHnMJ','wKTnE','parse','readFileSync','\x0aFound\x20the\x20following\x20grids:\x0a','zICRs','313558eXqtQW','server-error','6YdvOvY','QcMKt','body','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','28xFKruo','url','wLCRm','list-grids-called','3100004xQUmWq','clusterName','description','push','Isvsk','stringify','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','command','epilogue','queued','Ewmfm','bstackUsername','gitQI','Browserstack','yfNgt','zRKsz','OMSxy','handler','list','FnsFy','usage','promisify','all-grids','name','password','auth','table','vVuwM','INFO','10836228EzkvsL','grid-id','unauthorised','statusCode'];a15_0x36e0=function(){return _0xfc4b9f;};return a15_0x36e0();}(function(_0x16253b,_0x41d5bc){const _0x4a9155=a15_0x1cf6,_0x440e8d=_0x16253b();while(!![]){try{const _0x425b66=parseInt(_0x4a9155(0x16f))/0x1*(parseInt(_0x4a9155(0x169))/0x2)+parseInt(_0x4a9155(0x152))/0x3*(-parseInt(_0x4a9155(0x122))/0x4)+parseInt(_0x4a9155(0x154))/0x5*(parseInt(_0x4a9155(0x11a))/0x6)+-parseInt(_0x4a9155(0x118))/0x7*(parseInt(_0x4a9155(0x151))/0x8)+parseInt(_0x4a9155(0x164))/0x9*(-parseInt(_0x4a9155(0x155))/0xa)+parseInt(_0x4a9155(0x147))/0xb*(-parseInt(_0x4a9155(0x112))/0xc)+-parseInt(_0x4a9155(0x13f))/0xd*(-parseInt(_0x4a9155(0x11e))/0xe);if(_0x425b66===_0x41d5bc)break;else _0x440e8d['push'](_0x440e8d['shift']());}catch(_0x62debb){_0x440e8d['push'](_0x440e8d['shift']());}}}(a15_0x36e0,0x6eb5a));function a15_0x1cf6(_0x1febc6,_0x825d19){const _0x36e07e=a15_0x36e0();return a15_0x1cf6=function(_0x1cf69e,_0x437094){_0x1cf69e=_0x1cf69e-0x10f;let _0x964e25=_0x36e07e[_0x1cf69e];return _0x964e25;},a15_0x1cf6(_0x1febc6,_0x825d19);}const fs=require('fs'),util=require('util'),request=require('request'),{table}=require(a15_0x3643cb(0x13c)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3643cb(0x14a)),{getCredentialsPath}=require(a15_0x3643cb(0x15d)),{sendInstrumentationEvent}=require(a15_0x3643cb(0x163)),promisifiedRequest=util[a15_0x3643cb(0x137)](request);exports[a15_0x3643cb(0x129)]='grids',exports['desc']=a15_0x3643cb(0x128),exports[a15_0x3643cb(0x159)]=function(_0x340b7d){const _0x41e9db=a15_0x3643cb,_0x2d6ef9={};_0x2d6ef9[_0x41e9db(0x16a)]=_0x41e9db(0x16d),_0x2d6ef9['zkFVt']=_0x41e9db(0x148),_0x2d6ef9['llllv']=_0x41e9db(0x167);const _0x3ccf77=_0x2d6ef9,_0x57cabe={};_0x57cabe[_0x41e9db(0x124)]=_0x3ccf77[_0x41e9db(0x16a)],_0x57cabe['type']=_0x3ccf77['zkFVt'];const _0x5e7847={};return _0x5e7847[_0x41e9db(0x138)]=_0x57cabe,_0x340b7d[_0x41e9db(0x136)](HELP_HEADER_MESSAGE[_0x41e9db(0x134)][_0x41e9db(0x15b)])[_0x41e9db(0x12a)](HELP_FOOTER_MESSAGE)[_0x41e9db(0x145)](_0x5e7847)[_0x41e9db(0x167)](_0x3ccf77[_0x41e9db(0x168)])[_0x41e9db(0x153)];},exports[a15_0x3643cb(0x133)]=async function(_0x20ff41){const _0x1e75ec=a15_0x3643cb,_0x32a9dc={'Ewmfm':function(_0x1bf693){return _0x1bf693();},'HBlPi':function(_0x3f9a2f){return _0x3f9a2f();},'zRKsz':_0x1e75ec(0x11d),'omSgo':function(_0x5683f1,_0x25432f,_0x395140,_0x5890df,_0x10ea61,_0xad5eac,_0x210682){return _0x5683f1(_0x25432f,_0x395140,_0x5890df,_0x10ea61,_0xad5eac,_0x210682);},'tuSvN':_0x1e75ec(0x121),'wLCRm':_0x1e75ec(0x150),'zICRs':'GET','wKTnE':function(_0x1f6cd3,_0x15e792,_0x21bf07,_0x25e94a,_0x38be27,_0x4d673a,_0x41bb88){return _0x1f6cd3(_0x15e792,_0x21bf07,_0x25e94a,_0x38be27,_0x4d673a,_0x41bb88);},'MvrwY':function(_0x55b3b5,_0x41b181){return _0x55b3b5(_0x41b181);},'IKbSi':function(_0x324140,_0x1efc00){return _0x324140!==_0x1efc00;},'kswFV':function(_0x40fc02,_0x18583a){return _0x40fc02!==_0x18583a;},'FUdbG':function(_0x33e7c2,_0x49d028){return _0x33e7c2===_0x49d028;},'vVuwM':_0x1e75ec(0x116),'yfNgt':_0x1e75ec(0x140),'OMSxy':_0x1e75ec(0x165),'BrFTm':_0x1e75ec(0x15a),'gitQI':_0x1e75ec(0x166),'FnsFy':_0x1e75ec(0x12b),'Isvsk':_0x1e75ec(0x144),'QcMKt':function(_0x30cb49,_0x554792){return _0x30cb49===_0x554792;},'XKrvR':function(_0x4c517e,_0x57c648,_0x470c21,_0x43dad6,_0x2850e5,_0x4e4148,_0x3871a4){return _0x4c517e(_0x57c648,_0x470c21,_0x43dad6,_0x2850e5,_0x4e4148,_0x3871a4);},'ReBPp':_0x1e75ec(0x141),'ZALDm':_0x1e75ec(0x119),'WFspm':'unknown-error'};try{global_registry['requestId']=_0x32a9dc[_0x1e75ec(0x12c)](uuidv4);!fs['existsSync'](_0x32a9dc[_0x1e75ec(0x158)](getCredentialsPath))&&(console['error'](_0x32a9dc[_0x1e75ec(0x131)]),await _0x32a9dc[_0x1e75ec(0x10f)](sendInstrumentationEvent,_0x20ff41,_0x32a9dc[_0x1e75ec(0x15f)],messageTypes[_0x1e75ec(0x156)],_0x32a9dc[_0x1e75ec(0x120)],null,_0x20ff41),process[_0x1e75ec(0x15e)](0x1));const _0x42cf8e=JSON['parse'](fs[_0x1e75ec(0x115)](_0x32a9dc[_0x1e75ec(0x12c)](getCredentialsPath)));let _0x569eb3=_0x1e75ec(0x161)+AG_API_URL+_0x1e75ec(0x16b);_0x20ff41[_0x1e75ec(0x15c)]&&(_0x569eb3=_0x1e75ec(0x161)+AG_API_URL+_0x1e75ec(0x146));const _0x5bc744={};_0x5bc744['username']=_0x42cf8e[_0x1e75ec(0x12f)][_0x1e75ec(0x16e)],_0x5bc744[_0x1e75ec(0x13a)]=_0x42cf8e[_0x1e75ec(0x12f)][_0x1e75ec(0x13a)];const _0x5910fa={};_0x5910fa[_0x1e75ec(0x11f)]=_0x569eb3,_0x5910fa[_0x1e75ec(0x149)]=_0x32a9dc[_0x1e75ec(0x117)],_0x5910fa[_0x1e75ec(0x13b)]=_0x5bc744;const _0x1187db=_0x5910fa;global_registry[_0x1e75ec(0x12d)]=_0x42cf8e['Browserstack']['username'],global_registry['bstackAccesskey']=_0x42cf8e[_0x1e75ec(0x12f)]['password'],_0x32a9dc[_0x1e75ec(0x113)](sendInstrumentationEvent,_0x20ff41,_0x32a9dc[_0x1e75ec(0x15f)],messageTypes[_0x1e75ec(0x13e)],null,null,_0x20ff41);const _0x5a8ef3=await _0x32a9dc[_0x1e75ec(0x14b)](promisifiedRequest,_0x1187db);if(_0x32a9dc[_0x1e75ec(0x16c)](_0x5a8ef3,null)&&_0x32a9dc[_0x1e75ec(0x14f)](_0x5a8ef3,undefined)&&_0x32a9dc['FUdbG'](_0x5a8ef3['statusCode'],0xc8)){const _0x370428=JSON[_0x1e75ec(0x114)](_0x5a8ef3[_0x1e75ec(0x11c)]);console[_0x1e75ec(0x111)](_0x32a9dc[_0x1e75ec(0x13d)]);const _0x40b787=[];_0x40b787['push']([_0x32a9dc[_0x1e75ec(0x130)],_0x32a9dc[_0x1e75ec(0x132)],_0x32a9dc['BrFTm'],_0x32a9dc[_0x1e75ec(0x12e)],_0x32a9dc[_0x1e75ec(0x135)],_0x32a9dc[_0x1e75ec(0x126)]]),_0x370428['forEach'](_0x13ebaf=>{const _0x2d84dd=_0x1e75ec;_0x40b787[_0x2d84dd(0x125)]([_0x13ebaf['id'],_0x13ebaf[_0x2d84dd(0x139)],_0x13ebaf['status'],_0x13ebaf[_0x2d84dd(0x166)],_0x13ebaf[_0x2d84dd(0x12b)],_0x13ebaf[_0x2d84dd(0x123)]]);}),console[_0x1e75ec(0x111)](_0x32a9dc['MvrwY'](table,_0x40b787)),process[_0x1e75ec(0x15e)](0x0);}_0x32a9dc[_0x1e75ec(0x11b)](_0x5a8ef3[_0x1e75ec(0x142)],0x191)&&(console[_0x1e75ec(0x110)](_0x1e75ec(0x162)),await _0x32a9dc['XKrvR'](sendInstrumentationEvent,_0x20ff41,_0x32a9dc['tuSvN'],messageTypes[_0x1e75ec(0x156)],_0x32a9dc[_0x1e75ec(0x143)],null,_0x20ff41),process[_0x1e75ec(0x15e)](0x1)),console[_0x1e75ec(0x110)](_0x1e75ec(0x14e)+JSON[_0x1e75ec(0x127)](_0x5a8ef3)),await _0x32a9dc['omSgo'](sendInstrumentationEvent,_0x20ff41,_0x32a9dc[_0x1e75ec(0x15f)],messageTypes[_0x1e75ec(0x156)],_0x32a9dc[_0x1e75ec(0x157)],_0x5a8ef3,_0x20ff41),process['exit'](0x1);}catch(_0x502db0){console['error'](_0x1e75ec(0x160)+_0x502db0[_0x1e75ec(0x14d)]),await _0x32a9dc[_0x1e75ec(0x113)](sendInstrumentationEvent,_0x20ff41,_0x32a9dc[_0x1e75ec(0x15f)],messageTypes[_0x1e75ec(0x156)],_0x32a9dc[_0x1e75ec(0x14c)],_0x502db0,_0x20ff41),process[_0x1e75ec(0x15e)](0x1);}};