browserstack-node-sdk 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customImplements/customCircus.js +1 -1
  43. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  44. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  45. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  48. package/src/bin/jest/test-observability/helper.js +1 -1
  49. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  50. package/src/bin/jest/test-observability/test-details.js +1 -1
  51. package/src/bin/jest/test_before.setup.js +1 -1
  52. package/src/bin/launcher/launcher.js +1 -1
  53. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  54. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/mocha/command.js +1 -1
  56. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  57. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  58. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  59. package/src/bin/mocha/test.setup.js +1 -1
  60. package/src/bin/nightwatch/command.js +1 -1
  61. package/src/bin/playwright/accessibility-helper.js +1 -1
  62. package/src/bin/playwright/command.js +1 -1
  63. package/src/bin/playwright/globalSetup.js +1 -1
  64. package/src/bin/playwright/mock-process.js +1 -1
  65. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  66. package/src/bin/playwright/reporter/reporter.js +1 -1
  67. package/src/bin/playwright/reporter/test-details.js +1 -1
  68. package/src/bin/runner.js +1 -1
  69. package/src/bin/setup.js +1 -1
  70. package/src/bin/test-runner/index.js +1 -1
  71. package/src/bin/test-runner/runTest.js +1 -1
  72. package/src/bin/test-runner/testWorker.js +1 -1
  73. package/src/bin/utils/constants.js +1 -1
  74. package/src/bin/utils/log4jsAppender.js +1 -1
  75. package/src/bin/utils/logPatcher.js +1 -1
  76. package/src/bin/utils/logReportingAPI.js +1 -1
  77. package/src/bin/vanilla-js/command.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/request-spy.js +1 -1
  94. package/src/helpers/setKeepAlive.js +1 -1
  95. package/src/helpers/test-observability/constants.js +1 -1
  96. package/src/helpers/test-observability/error-handler.js +1 -1
  97. package/src/helpers/test-observability/performance-tester.js +1 -1
  98. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  99. package/src/helpers/test-observability/sessionHandler.js +1 -1
  100. package/src/helpers/test-observability/utils.js +1 -1
  101. package/src/helpers/w3cMapping.js +1 -1
  102. package/src/hubAllocationMethods.js +1 -1
  103. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x5ee73d=a9_0x4150;(function(_0x466ad8,_0x3e52a3){const _0xad1601=a9_0x4150,_0x31fbfe=_0x466ad8();while(!![]){try{const _0x443139=parseInt(_0xad1601(0x1aa))/0x1*(parseInt(_0xad1601(0x1b4))/0x2)+-parseInt(_0xad1601(0x1a7))/0x3+parseInt(_0xad1601(0x1b0))/0x4*(parseInt(_0xad1601(0x1b9))/0x5)+-parseInt(_0xad1601(0x1ab))/0x6*(parseInt(_0xad1601(0x1a6))/0x7)+parseInt(_0xad1601(0x1b5))/0x8*(parseInt(_0xad1601(0x1b6))/0x9)+parseInt(_0xad1601(0x1a1))/0xa*(-parseInt(_0xad1601(0x1b3))/0xb)+-parseInt(_0xad1601(0x1a9))/0xc;if(_0x443139===_0x3e52a3)break;else _0x31fbfe['push'](_0x31fbfe['shift']());}catch(_0x25e878){_0x31fbfe['push'](_0x31fbfe['shift']());}}}(a9_0x5165,0x2e9cc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x5ee73d(0x1a3));function a9_0x4150(_0x4532d1,_0x386d77){const _0x51650e=a9_0x5165();return a9_0x4150=function(_0x41508f,_0x2f9a78){_0x41508f=_0x41508f-0x1a0;let _0x1dec68=_0x51650e[_0x41508f];return _0x1dec68;},a9_0x4150(_0x4532d1,_0x386d77);}function a9_0x5165(){const _0x4000ba=['1229020MGtoGC','usage','strict','1947MQEYsg','18572TMZlyA','10104Gbbznd','2511fAtGdB','XqlUL','create','5WOdVqs','command','recommendCommands','fcjZo','2510foyoSf','desc','../config/constants','create_commands','builder','18466UnAEFO','48774BslCUR','handler','4849428XsbLyj','1EPpMUn','30GrqstC','commandDir','help','Create\x20a\x20new\x20Automation\x20grid.','epilogue'];a9_0x5165=function(){return _0x4000ba;};return a9_0x5165();}exports[a9_0x5ee73d(0x1ba)]=a9_0x5ee73d(0x1b8),exports[a9_0x5ee73d(0x1a2)]=a9_0x5ee73d(0x1ae),exports[a9_0x5ee73d(0x1a5)]=function(_0x57e4b4){const _0x2c34d0=a9_0x5ee73d,_0x32cf30={};_0x32cf30[_0x2c34d0(0x1a0)]=_0x2c34d0(0x1a4),_0x32cf30['XqlUL']=_0x2c34d0(0x1ad);const _0x545b9f=_0x32cf30;return _0x57e4b4[_0x2c34d0(0x1b1)](HELP_HEADER_MESSAGE[_0x2c34d0(0x1b8)])[_0x2c34d0(0x1af)](HELP_FOOTER_MESSAGE)[_0x2c34d0(0x1ac)](_0x545b9f[_0x2c34d0(0x1a0)])['demandCommand']()[_0x2c34d0(0x1bb)]()[_0x2c34d0(0x1b2)]()['help'](_0x545b9f[_0x2c34d0(0x1b7)]);},exports[a9_0x5ee73d(0x1a8)]=function(_0x882757){};
1
+ function a9_0x5c02(_0xe48e62,_0x158918){const _0x50fa0b=a9_0x50fa();return a9_0x5c02=function(_0x5c02d5,_0x1fd53b){_0x5c02d5=_0x5c02d5-0xbb;let _0x518a70=_0x50fa0b[_0x5c02d5];return _0x518a70;},a9_0x5c02(_0xe48e62,_0x158918);}const a9_0x5c660c=a9_0x5c02;function a9_0x50fa(){const _0x4b6514=['strict','590JnYUzu','RARCM','demandCommand','11631744muSWvc','help','desc','4623315uriLxW','767202zGXhYP','../config/constants','command','4bqIpDy','handler','36vvOqWv','create_commands','315YHqSJP','recommendCommands','3836vhSWzh','10130856MLPwim','epilogue','builder','create','144123CAjBtA','171886qTRtpU'];a9_0x50fa=function(){return _0x4b6514;};return a9_0x50fa();}(function(_0x1e5696,_0x507645){const _0x40241b=a9_0x5c02,_0x5a9bb0=_0x1e5696();while(!![]){try{const _0x5a2276=parseInt(_0x40241b(0xc4))/0x1*(parseInt(_0x40241b(0xc6))/0x2)+-parseInt(_0x40241b(0xbd))/0x3*(-parseInt(_0x40241b(0xc0))/0x4)+-parseInt(_0x40241b(0xbc))/0x5+-parseInt(_0x40241b(0xc2))/0x6*(parseInt(_0x40241b(0xcb))/0x7)+-parseInt(_0x40241b(0xc7))/0x8+parseInt(_0x40241b(0xd1))/0x9+-parseInt(_0x40241b(0xce))/0xa*(-parseInt(_0x40241b(0xcc))/0xb);if(_0x5a2276===_0x507645)break;else _0x5a9bb0['push'](_0x5a9bb0['shift']());}catch(_0x535e82){_0x5a9bb0['push'](_0x5a9bb0['shift']());}}}(a9_0x50fa,0xb9794));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x5c660c(0xbe));exports[a9_0x5c660c(0xbf)]='create',exports[a9_0x5c660c(0xbb)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x5c660c(0xc9)]=function(_0x4f29b0){const _0x555950=a9_0x5c660c,_0x3895d1={};_0x3895d1[_0x555950(0xcf)]=_0x555950(0xc3),_0x3895d1['nvfMT']=_0x555950(0xd2);const _0x5885f=_0x3895d1;return _0x4f29b0['usage'](HELP_HEADER_MESSAGE[_0x555950(0xca)])[_0x555950(0xc8)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5885f[_0x555950(0xcf)])[_0x555950(0xd0)]()[_0x555950(0xc5)]()[_0x555950(0xcd)]()[_0x555950(0xd2)](_0x5885f['nvfMT']);},exports[a9_0x5c660c(0xc1)]=function(_0x280733){};
@@ -1 +1 @@
1
- function a10_0xbbce(){const _0x45ae01=['../../config/constants','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','drOiN','vbCGr','isVPCPresent','UTxOw','lgnaK','command','gridProfile','YIpBj','split','Create\x20a\x20new\x20Automation\x20grid.','createdBy','Will\x20be\x20spawning\x20the\x20grid\x20','sTPmP','BIvtw','4541202bvLWkH','YWZig','kGfQF','exit','../../utils/gridComponents','eLDgC','turboscale-managed-identity-','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','KUXOH','Browserstack','readFileSync','YbRAg','xxQOd','xdOfk','Spawning\x20grid\x20on\x20to\x20the\x20cluster','private-grid','TqGuw','YxPvG','ceJXN','CLI\x20run\x20finished:\x20','zdsQC','UlnxE','stringify','createOtherResources','kQNMg','QRoGj','diSEH','IgMWf','CLI_RUN_STARTED','vpc','ILHXM','browserVersion','string','Namespace\x20Created','promisify','4321592qzRMtU','mcSti','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','YsRNS','Found\x20Subnets:\x20','kpMDR','GebBt','setupNewCluster','Deleting\x20the\x20CloudFormation\x20Stacks','bstackUsername','vFqnJ','route53','xEEfv','../../config/logger','get-grid-url-null-response','ERROR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Found\x20VPC:\x20','pre-spawned-subnets-not-selected','QalSM','parse','tXyOI','1|0|2|4|3','8|4|7|2|0|1|3|5|6','ZDswz','s3Bucket','../../utils/webSocketUtils','create-grid-called','UcPAA','Grid\x20spawned\x20on\x20the\x20cluster','tSXnf','description','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','tHXXv','clusterName','rXHzn','gOSNn','fXPqn','warn','existsSync','UUflZ','24796qmDnVj','jrOob','JUEji','2|3|0|8|4|7|1|6|5','iTGVo','Grid\x20profile\x20fetched\x20from\x20backend','NooEg','reconnecting-websocket','info','grid','XPcha','QwFDi','get-grid-url-non-200','XYimR','hnEBJ','cloud-provider','pXtIP','epilogue','grid-profile','statusCode','s3bucket','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','ygKGn','SFvES','usage','https','CLI\x20run\x20started','/wd/hub','Grid\x20can\x20be\x20accessed\x20at:\x20','ftWyb','setupAutoscaler','gridProfiles','fetchLocalCreds','clkfR','gridName','Vuwwr','KXNbw','jiOaU','UdrVz','sTzHx','LOG','iGhND','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','sendEventToBackend','https://','replace','deleteCluster','4174709RmRIZZ','debug','VtMHi','delay','690QCNDWb','ZDkTp','fMEHw','PRaOO','http','PLswP','VZyrH','password','ygGIG','RlIby','privateGrid','NRtRu','length','kefoS','dGIST','Cluster\x20','uzJuQ','updatePreSpawnedCluster','9lVjBcm','help','qfBmM','KmYzG','addListeners','sGPtl','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','WebSocket','zJIRf','INFO','fxAhL','1737777FaXHFR','vZXPk','IWEIC','nQkVr','non-aws-azure-cluster','options','FFsfq','true','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','137HOiuUe','type','nfRay','create-grid-checks-null-response','name','jPqwi','clusterRegion','includes','\x20in\x20existing\x20cluster\x20\x27','prespawned-cluster-args-not-passed','toLowerCase','PUssz','xVZgU','\x20using\x20\x27','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','://','../../utils/userInput','method','create-grid-checks-grid-already-exists','ingress-nginx-controller','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','LqiVG','username','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','yJoiu','qFkUt','/packages/cli/create-grid-checks','defaultGridProfile','kErhk','<UsernamePlaceholder>','obUul','body','sTGKV','../../utils/instrumentationUtils','EnHiz','aJckM','TOFyC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','hubVersion','uuid','Spawning\x20Grid\x20on\x20the\x20Cluster','2833230apEGXH','vQvRp','grid-name','rFbHF','MLiEP','zZAWn','subnets','isPrivateGrid','s3BucketName','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','auth','KjFpX','jLCim','UpmJr','Eosra','CclGJ','OBodI','create-grid-checks-non-200','NEAxo','metadata','user','bUEoC','error','QhUxS','lNhRM','SNuuR','Cluster\x20created\x20successfully','PsQwC','IeiqV','MkzAv','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','readNamespacedService','getResourceClientId','GET','BLnSk','PgHCC','qnnfB','RDJvo','TWGyp','yrbYd','LsqbU','Spawning\x20the\x20grid\x20','yKYFB','region','grid-spawning-failed','builder','ktLsj','OlOIZ','GsDnc','jCYux','Create\x20a\x20private/public\x20grid.','NIuih','13100cQZzHn','securityGroups','clNPk','33AIhppX','YtUOM','Subnets:\x20','get-grid-url-auth-failed','tffdC','skqeP','message','writeFileSync','WPjAU','createNamespace','create','wWbNp','managedBy','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','qimmH','ingress-nginx','qfkyR','\x27\x20grid\x20profile','kFtjE','wFrpx','handler','AOTsW','KKhyg','cloudProvider','FnmVL','private-ingress-nginx-controller','bstackAccesskey','../../cloudproviders/utils','vNrFG','isSubnetsValid','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster'];a10_0xbbce=function(){return _0x45ae01;};return a10_0xbbce();}const a10_0x59c16d=a10_0x52e3;(function(_0x2a28df,_0x5953e7){const _0x181b3c=a10_0x52e3,_0x1ffb63=_0x2a28df();while(!![]){try{const _0x2ebe90=parseInt(_0x181b3c(0x1bb))/0x1*(parseInt(_0x181b3c(0xe2))/0x2)+-parseInt(_0x181b3c(0x1b2))/0x3+parseInt(_0x181b3c(0x161))/0x4*(-parseInt(_0x181b3c(0x195))/0x5)+parseInt(_0x181b3c(0x114))/0x6+parseInt(_0x181b3c(0x191))/0x7+parseInt(_0x181b3c(0x138))/0x8*(parseInt(_0x181b3c(0x1a7))/0x9)+-parseInt(_0x181b3c(0x1e4))/0xa*(parseInt(_0x181b3c(0xe5))/0xb);if(_0x2ebe90===_0x5953e7)break;else _0x1ffb63['push'](_0x1ffb63['shift']());}catch(_0x10fe81){_0x1ffb63['push'](_0x1ffb63['shift']());}}}(a10_0xbbce,0x7b901));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x59c16d(0x168)),request=require('request'),{v4:uuidv4}=require(a10_0x59c16d(0x1e2)),webSocketUtils=require(a10_0x59c16d(0x152)),{logger}=require(a10_0x59c16d(0x145)),{inputCloudProviderKeys}=require(a10_0x59c16d(0x1cb)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x59c16d(0x100)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x59c16d(0x104)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x59c16d(0x118)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x59c16d(0x1dc)),promisifiedRequest=util[a10_0x59c16d(0x137)](request);function a10_0x52e3(_0x105bd2,_0x3578b5){const _0xbbce59=a10_0xbbce();return a10_0x52e3=function(_0x52e365,_0x3c2d04){_0x52e365=_0x52e365-0xc1;let _0x309b25=_0xbbce59[_0x52e365];return _0x309b25;},a10_0x52e3(_0x105bd2,_0x3578b5);}exports[a10_0x59c16d(0x10b)]=a10_0x59c16d(0x16a),exports['desc']=a10_0x59c16d(0x10f),exports[a10_0x59c16d(0xdb)]=function(_0x5d5c8d){const _0x1826d9=a10_0x59c16d,_0x44e78a={};_0x44e78a[_0x1826d9(0x165)]=_0x1826d9(0x105),_0x44e78a[_0x1826d9(0x188)]=_0x1826d9(0x135),_0x44e78a[_0x1826d9(0xd5)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x44e78a['XYimR']=_0x1826d9(0x18b),_0x44e78a[_0x1826d9(0x12e)]=_0x1826d9(0x1ba),_0x44e78a[_0x1826d9(0x121)]=_0x1826d9(0x1e0),_0x44e78a[_0x1826d9(0x182)]='Create\x20a\x20private/public\x20grid.',_0x44e78a['nQkVr']='help';const _0x4f0819=_0x44e78a,_0x36c393={};_0x36c393[_0x1826d9(0x157)]=_0x4f0819['iTGVo'],_0x36c393[_0x1826d9(0x1bc)]=_0x4f0819['sTzHx'];const _0x1c88c1={};_0x1c88c1[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0xd5)],_0x1c88c1[_0x1826d9(0x1bc)]=_0x4f0819[_0x1826d9(0x188)];const _0x1adb8d={};_0x1adb8d[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0x16e)],_0x1adb8d['type']=_0x4f0819[_0x1826d9(0x188)];const _0x498bb3={};_0x498bb3[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0x12e)],_0x498bb3[_0x1826d9(0x1bc)]=_0x4f0819[_0x1826d9(0x188)];const _0x165741={};_0x165741['description']=_0x4f0819[_0x1826d9(0x121)],_0x165741[_0x1826d9(0x1bc)]=_0x4f0819[_0x1826d9(0x188)];const _0x31ee29={};_0x31ee29[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0x182)],_0x31ee29['type']=_0x4f0819['sTzHx'];const _0x14d908={};return _0x14d908[_0x1826d9(0x1e6)]=_0x36c393,_0x14d908['grid-profile']=_0x1c88c1,_0x14d908['cluster-name']=_0x1adb8d,_0x14d908[_0x1826d9(0x170)]=_0x498bb3,_0x14d908[_0x1826d9(0xd9)]=_0x165741,_0x14d908[_0x1826d9(0x124)]=_0x31ee29,_0x5d5c8d['usage'](HELP_HEADER_MESSAGE['create'])[_0x1826d9(0x172)](HELP_FOOTER_MESSAGE)[_0x1826d9(0x1b7)](_0x14d908)[_0x1826d9(0x1a8)](_0x4f0819[_0x1826d9(0x1b5)])['argv'];},exports[a10_0x59c16d(0xf9)]=async function(_0x312e6a){const _0xd2bec8=a10_0x59c16d,_0x160873={'lNhRM':_0xd2bec8(0x158),'vbCGr':_0xd2bec8(0x199),'KUXOH':_0xd2bec8(0x15e),'UcPAA':_0xd2bec8(0x105),'iGhND':_0xd2bec8(0x135),'YbRAg':_0xd2bec8(0x1ed),'VtMHi':_0xd2bec8(0x18b),'AOTsW':_0xd2bec8(0x1ba),'sGPtl':_0xd2bec8(0x1e0),'QhUxS':_0xd2bec8(0xe0),'Yacmy':_0xd2bec8(0x1a8),'skqeP':_0xd2bec8(0xc4),'kFtjE':_0xd2bec8(0x164),'KmYzG':_0xd2bec8(0x17a),'FFsfq':function(_0x2dc80f){return _0x2dc80f();},'SFvES':function(_0x2ac5bf){return _0x2ac5bf();},'uzJuQ':function(_0x30896f,_0x533ea0){return _0x30896f!==_0x533ea0;},'RlIby':_0xd2bec8(0x19d),'fXPqn':_0xd2bec8(0x11b),'MLiEP':function(_0x3610bc,_0x426111,_0x51aae0,_0x2d8b98,_0xe860e3,_0x2c030e,_0x1eae7d){return _0x3610bc(_0x426111,_0x51aae0,_0x2d8b98,_0xe860e3,_0x2c030e,_0x1eae7d);},'TOFyC':_0xd2bec8(0x153),'IeiqV':'init-not-called','xdOfk':function(_0x3613fa,_0x34f229,_0x358d1a,_0x3ad83c,_0x1602ed,_0x43d5f4,_0x433834){return _0x3613fa(_0x34f229,_0x358d1a,_0x3ad83c,_0x1602ed,_0x43d5f4,_0x433834);},'sTPmP':_0xd2bec8(0x1d8),'jrOob':'<PasswordPlaceholder>','zZAWn':'Adding\x20Websocket\x20listeners','drOiN':function(_0x224aa2,_0x493abe){return _0x224aa2===_0x493abe;},'UdrVz':_0xd2bec8(0x1a3),'NRtRu':function(_0x5881ee,_0x2bd8fa){return _0x5881ee!==_0x2bd8fa;},'XLKkH':_0xd2bec8(0x127),'DcTRv':'gjFGp','ygKGn':_0xd2bec8(0x103),'fxAhL':function(_0x112b69,_0x22cd98,_0x1de0b8,_0x40ae79,_0xea0c87,_0x4eb3f1,_0x58897a,_0x5ca290){return _0x112b69(_0x22cd98,_0x1de0b8,_0x40ae79,_0xea0c87,_0x4eb3f1,_0x58897a,_0x5ca290);},'kefoS':_0xd2bec8(0x1c4),'SFisv':'qXxdA','aJckM':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FnmVL':_0xd2bec8(0x1b6),'tffdC':function(_0x5758a0,_0x2dba69){return _0x5758a0===_0x2dba69;},'INyev':_0xd2bec8(0x1b9),'wWbNp':_0xd2bec8(0xd6),'EnHiz':_0xd2bec8(0x15b),'dWoIn':_0xd2bec8(0x186),'GsDnc':_0xd2bec8(0x10d),'WPjAU':_0xd2bec8(0xcf),'Ftbin':function(_0x3f0690,_0x4d0633){return _0x3f0690(_0x4d0633);},'clNPk':function(_0x143b0d,_0x2ac6e9){return _0x143b0d===_0x2ac6e9;},'pIwaG':function(_0x509f27,_0x5730d3){return _0x509f27!==_0x5730d3;},'kGfQF':_0xd2bec8(0x142),'mcSti':'VpGsw','UTxOw':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','PLswP':function(_0x5d424c,_0x2743ce,_0x2e6286,_0x572671,_0xea7336,_0x297853,_0xc0290f,_0x523595){return _0x5d424c(_0x2743ce,_0x2e6286,_0x572671,_0xea7336,_0x297853,_0xc0290f,_0x523595);},'wqfgq':_0xd2bec8(0x1be),'NooEg':'pivcb','YtUOM':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','PUssz':'create-grid-checks-auth-failed','CclGJ':function(_0x58dd8d,_0x20ce67){return _0x58dd8d!==_0x20ce67;},'yKYFB':_0xd2bec8(0x1f2),'SClgm':function(_0x2a4a43,_0x319193,_0x21d547,_0x4909c0,_0x241f47,_0x4132bc,_0x504f0d,_0x42e0f6){return _0x2a4a43(_0x319193,_0x21d547,_0x4909c0,_0x241f47,_0x4132bc,_0x504f0d,_0x42e0f6);},'SNuuR':_0xd2bec8(0x1f5),'UpmJr':_0xd2bec8(0x166),'ZDswz':'nKWjQ','hnEBJ':_0xd2bec8(0x14b),'lgnaK':_0xd2bec8(0x18c),'RTJyl':function(_0x2fcb91,_0x28bbce,_0x278021,_0x2d26db,_0x257bc3,_0x563f01,_0x19fa70,_0x2e1b76){return _0x2fcb91(_0x28bbce,_0x278021,_0x2d26db,_0x257bc3,_0x563f01,_0x19fa70,_0x2e1b76);},'ILHXM':_0xd2bec8(0x1cd),'qnnfB':function(_0x1b661f,_0xb087ab){return _0x1b661f!==_0xb087ab;},'VZyrH':_0xd2bec8(0x16b),'UUflZ':function(_0x31d479,_0x1a639d){return _0x31d479===_0x1a639d;},'NiWLH':'wwhEH','rdFpz':function(_0x3aed2d,_0x42549d){return _0x3aed2d===_0x42549d;},'eLDgC':function(_0x431e0c,_0x5d9238){return _0x431e0c!==_0x5d9238;},'QwFDi':_0xd2bec8(0x197),'jCYux':_0xd2bec8(0xc9),'WRKFg':_0xd2bec8(0x13a),'jPqwi':function(_0x336bc0,_0x292484,_0x121a90,_0x3be0ab,_0x4240ae,_0x8d484a,_0x5c7fea,_0x222439){return _0x336bc0(_0x292484,_0x121a90,_0x3be0ab,_0x4240ae,_0x8d484a,_0x5c7fea,_0x222439);},'ZsdrN':'create-grid-checks-invalid-profile','wFrpx':_0xd2bec8(0x126),'IWEIC':_0xd2bec8(0xd3),'TWGyp':function(_0x27fd6b,_0x41ad3e){return _0x27fd6b!==_0x41ad3e;},'UlnxE':_0xd2bec8(0x12f),'zJIRf':_0xd2bec8(0xd1),'LqiVG':function(_0x399954,_0x3a3be6,_0x9d8f0b,_0x169007,_0x2ccdee,_0x115b28,_0x6440f4,_0x2052dc,_0x3d82d5,_0x218e45,_0x16c94d,_0x53b1f1){return _0x399954(_0x3a3be6,_0x9d8f0b,_0x169007,_0x2ccdee,_0x115b28,_0x6440f4,_0x2052dc,_0x3d82d5,_0x218e45,_0x16c94d,_0x53b1f1);},'nfRay':_0xd2bec8(0x14f),'OlOIZ':function(_0x302521,_0x58bb52,_0x1d1546,_0x3073a2,_0x323ccd,_0x84c29c){return _0x302521(_0x58bb52,_0x1d1546,_0x3073a2,_0x323ccd,_0x84c29c);},'vNrFG':_0xd2bec8(0x1c9),'sTGKV':function(_0x570889,_0x30722c,_0x1dd41b,_0x57f9ac){return _0x570889(_0x30722c,_0x1dd41b,_0x57f9ac);},'ZDkTp':function(_0x1257f2){return _0x1257f2();},'BLnSk':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','obUul':_0xd2bec8(0x1d2),'PRaOO':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','KjFpX':function(_0x68c5b6,_0x442e8b){return _0x68c5b6!=_0x442e8b;},'xEEfv':function(_0x218d18,_0x4a4ff9){return _0x218d18!==_0x4a4ff9;},'kQNMg':function(_0xd6228e,_0xba1562){return _0xd6228e>_0xba1562;},'gOSNn':function(_0x18ff83,_0x5b0ac5){return _0x18ff83===_0x5b0ac5;},'tHXXv':_0xd2bec8(0x1cf),'vQvRp':function(_0x37c06c,_0x47be08,_0x51670d,_0xaf81ae,_0x30d4f7,_0x1e2f21,_0x378a62,_0x40830f){return _0x37c06c(_0x47be08,_0x51670d,_0xaf81ae,_0x30d4f7,_0x1e2f21,_0x378a62,_0x40830f);},'vZXPk':_0xd2bec8(0x14a),'tXyOI':function(_0x45ea6a,_0x1b1f89){return _0x45ea6a===_0x1b1f89;},'BCkTq':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Vuwwr':function(_0x275b8f,_0x172037,_0x35b0aa,_0x4f153e,_0x46129c,_0x2840e4,_0x4763a5,_0x371ee6){return _0x275b8f(_0x172037,_0x35b0aa,_0x4f153e,_0x46129c,_0x2840e4,_0x4763a5,_0x371ee6);},'qfBmM':'pre-spawned-invalid-vpc','MgwTG':function(_0x48cba6,_0x36352e){return _0x48cba6===_0x36352e;},'zdsQC':function(_0x12ea48,_0xed9b83,_0x4cd5ba,_0x5042eb,_0xbf4ac7,_0x3330a6,_0x1b713c,_0x36f1f8){return _0x12ea48(_0xed9b83,_0x4cd5ba,_0x5042eb,_0xbf4ac7,_0x3330a6,_0x1b713c,_0x36f1f8);},'tSXnf':'pre-spawned-invalid-subnets','qFkUt':_0xd2bec8(0x14e),'yJoiu':'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.','IgMWf':_0xd2bec8(0xc8),'KXNbw':function(_0x4d12ae,_0x2095c3){return _0x4d12ae(_0x2095c3);},'NEAxo':function(_0x32a493,_0x140853){return _0x32a493==_0x140853;},'bUEoC':function(_0x4a286d,_0x5bff78){return _0x4a286d(_0x5bff78);},'xVZgU':'Creating\x20namespace','NIuih':'default','YsRNS':'Browserstack','KKhyg':_0xd2bec8(0x136),'pXtIP':'Namespace\x20created','kErhk':_0xd2bec8(0x123),'MkzAv':_0xd2bec8(0x1e3),'jLCim':function(_0x348be0,_0x28bb63,_0x4c5833,_0x2c2653,_0x541b79,_0x4492e7,_0x424c19,_0x2e36ef,_0x5c2a55,_0x24327c,_0x57dfa5){return _0x348be0(_0x28bb63,_0x4c5833,_0x2c2653,_0x541b79,_0x4492e7,_0x424c19,_0x2e36ef,_0x5c2a55,_0x24327c,_0x57dfa5);},'qimmH':_0xd2bec8(0x155),'isNIQ':_0xd2bec8(0x1ad),'dIIRh':function(_0x6ff5b6,_0x293f35,_0x2c80d1){return _0x6ff5b6(_0x293f35,_0x2c80d1);},'ktLsj':_0xd2bec8(0xfe),'OBodI':_0xd2bec8(0x1ce),'qfkyR':_0xd2bec8(0xf4),'JUEji':function(_0x47a011,_0x5f3c40){return _0x47a011==_0x5f3c40;},'GebBt':_0xd2bec8(0x176),'IQWjU':_0xd2bec8(0x146),'YWZig':function(_0x24e262,_0x29317f){return _0x24e262===_0x29317f;},'kpMDR':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','rFbHF':_0xd2bec8(0xe8),'TqGuw':function(_0x582390,_0x171102,_0x13f959,_0x7745d2,_0x440073,_0x421c57,_0x3fc27f,_0x14cccc){return _0x582390(_0x171102,_0x13f959,_0x7745d2,_0x440073,_0x421c57,_0x3fc27f,_0x14cccc);},'BIvtw':_0xd2bec8(0x16d),'RYKtM':function(_0x23cdd3,_0x2af341,_0x12b320,_0x1c9aec,_0x5399c1,_0x325318){return _0x23cdd3(_0x2af341,_0x12b320,_0x1c9aec,_0x5399c1,_0x325318);},'ftWyb':_0xd2bec8(0xda)};let _0x10a055=![],_0x40ff6d,_0x628063,_0x50f49c,_0x575def,_0xed1f,_0x3fc2c1,_0x435d86,_0x3de1ad,_0x507ed3,_0x55b3d5,_0x77cbb7,_0x3b0815,_0x922d83=0x1,_0x362c7a=0xe;try{global_registry['requestId']=_0x160873[_0xd2bec8(0x1b8)](uuidv4),global_registry[_0xd2bec8(0x1eb)]=![];!fs[_0xd2bec8(0x15f)](_0x160873[_0xd2bec8(0x178)](getCredentialsPath))&&(_0x160873[_0xd2bec8(0x1a5)](_0x160873[_0xd2bec8(0x19e)],_0x160873['RlIby'])?_0x34b16e=_0x138b74[_0x4fffe0['gridProfile']]:(console[_0xd2bec8(0xc4)](_0x160873[_0xd2bec8(0x15d)]),await _0x160873[_0xd2bec8(0x1e8)](sendInstrumentationEvent,_0x312e6a,_0x160873[_0xd2bec8(0x1df)],messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0xca)],null,_0x312e6a),process[_0xd2bec8(0x117)](0x1)));await _0x160873[_0xd2bec8(0x122)](sendInstrumentationEvent,_0x312e6a,_0x160873[_0xd2bec8(0x1df)],messageTypes[_0xd2bec8(0x1b0)],null,null,_0x312e6a);const _0x432ba1=JSON[_0xd2bec8(0x14c)](fs[_0xd2bec8(0x11f)](_0x160873[_0xd2bec8(0x178)](getCredentialsPath)));global_registry[_0xd2bec8(0x141)]=_0x432ba1[_0xd2bec8(0x11e)]['username'],global_registry[_0xd2bec8(0xff)]=_0x432ba1[_0xd2bec8(0x11e)][_0xd2bec8(0x19c)];const _0x2b2110=WS_ENDPOINT[_0xd2bec8(0x18f)](_0x160873[_0xd2bec8(0x112)],_0x432ba1['Browserstack'][_0xd2bec8(0x1d1)])['replace'](_0x160873[_0xd2bec8(0x162)],_0x432ba1[_0xd2bec8(0x11e)]['password']),_0x1d3388={};_0x1d3388[_0xd2bec8(0x1ae)]=ws,_0x1d3388['connectionTimeout']=0x36ee80,_0x55b3d5=new ReconnectingWebSocket(_0x2b2110,[],_0x1d3388),logger[_0xd2bec8(0x192)](_0x160873[_0xd2bec8(0x1e9)]),webSocketUtils[_0xd2bec8(0x1ab)](_0x55b3d5,_0x312e6a[_0xd2bec8(0xc2)],_0x312e6a[_0xd2bec8(0x19c)]);let _0x104bf4=DEFAULT_GRID_NAME;(_0x312e6a[_0xd2bec8(0x15a)]||_0x312e6a['cloudProvider']||_0x312e6a[_0xd2bec8(0xd9)])&&(_0x160873[_0xd2bec8(0x106)](_0x160873[_0xd2bec8(0x187)],_0x160873[_0xd2bec8(0x187)])?(!(_0x312e6a[_0xd2bec8(0x15a)]&&_0x312e6a['cloudProvider']&&_0x312e6a['region'])&&(_0x160873[_0xd2bec8(0x1a0)](_0x160873['XLKkH'],_0x160873['DcTRv'])?(_0x40ff6d=_0x160873[_0xd2bec8(0x177)],await _0x160873[_0xd2bec8(0x1b1)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1a2)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):_0x5e4e0d['info'](_0xd2bec8(0x13c)+_0x42ae68[_0xd2bec8(0x12b)](_0x3a07b6)+'\x20')),![AWS,AZURE,GCP][_0xd2bec8(0x1c2)](_0x312e6a[_0xd2bec8(0xfc)][_0xd2bec8(0x1c5)]())&&(_0x160873[_0xd2bec8(0x1a5)](_0x160873['SFisv'],_0x160873['SFisv'])?_0x3c3609[_0xd2bec8(0xfc)]={}:(_0x40ff6d=_0x160873[_0xd2bec8(0x1de)],await _0x160873[_0xd2bec8(0x1b1)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0xfd)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1))),_0x312e6a['privateGrid']&&_0x160873[_0xd2bec8(0xe9)](_0x312e6a['privateGrid'][_0xd2bec8(0x1c5)](),_0x160873['INyev'])&&(_0x160873['tffdC'](_0x160873[_0xd2bec8(0xf0)],_0x160873[_0xd2bec8(0x1dd)])?(_0x54f630[_0xd2bec8(0xc4)](_0x160873[_0xd2bec8(0xc6)]),_0x586c2c[_0xd2bec8(0x117)](0x1)):global_registry[_0xd2bec8(0x1eb)]=!![]),_0x10a055=!![],_0x50f49c=_0x312e6a[_0xd2bec8(0x15a)],_0x628063=_0x312e6a[_0xd2bec8(0xfc)][_0xd2bec8(0x1c5)](),_0x575def=_0x312e6a[_0xd2bec8(0xd9)]):_0x3c541b=_0x160873[_0xd2bec8(0x107)]);_0x312e6a['gridName']&&(_0x160873[_0xd2bec8(0x1a0)](_0x160873['dWoIn'],_0x160873[_0xd2bec8(0xde)])?_0x104bf4=_0x312e6a[_0xd2bec8(0x183)]:_0x185478[_0xd2bec8(0x1eb)]=!![]);global_registry[_0xd2bec8(0x183)]=_0x104bf4;const _0x54a55a={};_0x54a55a[_0xd2bec8(0x1d1)]=_0x432ba1['Browserstack'][_0xd2bec8(0x1d1)],_0x54a55a[_0xd2bec8(0x19c)]=_0x432ba1[_0xd2bec8(0x11e)][_0xd2bec8(0x19c)];const _0x1b68a9={};_0x1b68a9[_0xd2bec8(0x1cc)]=_0x160873[_0xd2bec8(0xed)],_0x1b68a9[_0xd2bec8(0x1ee)]=_0x54a55a;const _0x1d6523=_0x1b68a9,_0x14204d='https://'+AG_API_URL+_0xd2bec8(0x1d5),_0x248920={};_0x248920[_0xd2bec8(0x183)]=_0x104bf4;const _0x434362={'url':_0x14204d,'qs':_0x248920,..._0x1d6523},_0x58a077=_0x434362,_0x16004a=await _0x160873['Ftbin'](promisifiedRequest,_0x58a077);(_0x160873[_0xd2bec8(0x106)](_0x16004a,null)||_0x160873[_0xd2bec8(0xe4)](_0x16004a,undefined))&&(_0x160873['pIwaG'](_0x160873[_0xd2bec8(0x116)],_0x160873[_0xd2bec8(0x139)])?(_0x40ff6d=_0x160873[_0xd2bec8(0x109)],await _0x160873[_0xd2bec8(0x19a)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873['wqfgq'],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):_0x42418c[_0xd2bec8(0x169)](_0xd2bec8(0x149)+_0x5179b5+'\x20'));if(_0x160873[_0xd2bec8(0xe4)](_0x16004a[_0xd2bec8(0x174)],0x191)){if(_0x160873[_0xd2bec8(0xe4)](_0x160873[_0xd2bec8(0x167)],_0x160873[_0xd2bec8(0x167)]))_0x40ff6d=_0x160873[_0xd2bec8(0xe6)],await _0x160873[_0xd2bec8(0x1b1)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1c6)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1);else{const _0xe511e5={};_0xe511e5[_0xd2bec8(0x1bc)]=_0x134d97[_0xd2bec8(0x189)],_0xe511e5[_0xd2bec8(0xeb)]=_0xd2bec8(0x1a4)+_0x5639f8+_0xd2bec8(0x11c),_0x37fc2a[_0xd2bec8(0x18d)](_0x425049,_0xe511e5,_0x160873[_0xd2bec8(0x11d)]),_0x6c151b[_0xd2bec8(0x169)](_0xd2bec8(0x1a4)+_0x512653+_0xd2bec8(0x11c)),_0x524775=!![];}}if(_0x160873[_0xd2bec8(0x1f3)](_0x16004a[_0xd2bec8(0x174)],0xc8)){if(_0x160873['tffdC'](_0x160873[_0xd2bec8(0xd8)],_0x160873[_0xd2bec8(0xd8)]))_0x40ff6d=_0xd2bec8(0x148)+JSON[_0xd2bec8(0x12b)](_0x16004a),await _0x160873['SClgm'](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0xc7)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process['exit'](0x1);else throw _0x511033;}const _0x2f237f=JSON[_0xd2bec8(0x14c)](_0x16004a[_0xd2bec8(0x1da)]),_0x53aabc={};_0x53aabc[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x131)],_0x53aabc[_0xd2bec8(0xeb)]=_0xd2bec8(0x17b),webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x53aabc);const _0x54a34c={};_0x54a34c['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x54a34c[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x1f1)],webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x54a34c);if(_0x2f237f['alreadyPresent']){if(_0x160873['clNPk'](_0x160873[_0xd2bec8(0x150)],_0x160873[_0xd2bec8(0x16f)])){const _0x20a7b6={};_0x20a7b6[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0x154)],_0x20a7b6[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x4bfebb={};_0x4bfebb['description']=_0x160873[_0xd2bec8(0x120)],_0x4bfebb[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x47c909={};_0x47c909[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0x193)],_0x47c909['type']=_0x160873[_0xd2bec8(0x18a)];const _0x240773={};_0x240773[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0xfa)],_0x240773[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x31f446={};_0x31f446[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0x1ac)],_0x31f446[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x2c1a27={};_0x2c1a27[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0xc5)],_0x2c1a27[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x201a8b={};return _0x201a8b[_0xd2bec8(0x1e6)]=_0x20a7b6,_0x201a8b[_0xd2bec8(0x173)]=_0x4bfebb,_0x201a8b['cluster-name']=_0x47c909,_0x201a8b[_0xd2bec8(0x170)]=_0x240773,_0x201a8b[_0xd2bec8(0xd9)]=_0x31f446,_0x201a8b[_0xd2bec8(0x124)]=_0x2c1a27,_0x46ab85[_0xd2bec8(0x179)](_0x29efe5[_0xd2bec8(0xef)])[_0xd2bec8(0x172)](_0x762195)[_0xd2bec8(0x1b7)](_0x201a8b)['help'](_0x160873['Yacmy'])['argv'];}else _0x40ff6d=_0x160873[_0xd2bec8(0x10a)],await _0x160873['RTJyl'](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x133)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1);}const _0x185fd1=_0x2f237f[_0xd2bec8(0x180)];let _0x41c339=_0x185fd1[_0x2f237f[_0xd2bec8(0x1d6)]];_0x312e6a['gridProfile']&&(_0x160873[_0xd2bec8(0xd2)](_0x160873[_0xd2bec8(0x19b)],_0x160873[_0xd2bec8(0x19b)])?_0x530a97[_0xd2bec8(0x1eb)]=!![]:_0x41c339=_0x185fd1[_0x312e6a[_0xd2bec8(0x10c)]]);if(_0x160873[_0xd2bec8(0x160)](_0x10a055,![])){if(_0x160873[_0xd2bec8(0x1f3)](_0x160873['NiWLH'],_0x160873['NiWLH'])){const _0x463162={};_0x463162[_0xd2bec8(0x1bc)]=_0x3b8d1d['LOG'],_0x463162[_0xd2bec8(0xeb)]=_0x3d1809,_0x48466f[_0xd2bec8(0x18d)](_0x28f3aa,_0x463162,_0x160873[_0xd2bec8(0xea)],!![]);}else{if(_0x160873['rdFpz'](_0x41c339,undefined)){if(_0x160873[_0xd2bec8(0x119)](_0x160873[_0xd2bec8(0x16c)],_0x160873[_0xd2bec8(0xdf)]))_0x40ff6d=_0x160873['WRKFg'],await _0x160873[_0xd2bec8(0x1c0)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873['ZsdrN'],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1);else{const _0x502d24=_0x160873[_0xd2bec8(0xf7)][_0xd2bec8(0x10e)]('|');let _0x856ae7=0x0;while(!![]){switch(_0x502d24[_0x856ae7++]){case'0':_0x166824['info'](_0x1d03fe);continue;case'1':_0x33042c[_0xd2bec8(0x15a)]=_0x430a88;continue;case'2':const _0x17128d={};_0x17128d['type']=_0x44cc96['CLI_RUN_STARTED'],_0x17128d[_0xd2bec8(0xeb)]=_0xd2bec8(0x17b),_0x1d7084[_0xd2bec8(0x18d)](_0x34a400,_0x17128d);continue;case'3':_0x2f31ef=_0xd2bec8(0xd7)+_0x559c0e+_0xd2bec8(0x1c3)+_0x2732ff+'\x27';continue;case'4':_0x172723[_0xd2bec8(0xfc)]=_0x6f7ef7;continue;case'5':_0x48ea3d['browserVersion']=_0x42f717[_0xd2bec8(0x134)];continue;case'6':_0x1bee19[_0xd2bec8(0x1e1)]=_0x451205[_0xd2bec8(0x1e1)];continue;case'7':_0x52d602[_0xd2bec8(0x1c1)]=_0xc601ff;continue;case'8':const _0xc7c8f2={};_0xc7c8f2[_0xd2bec8(0x1bc)]=_0x467662[_0xd2bec8(0x189)],_0xc7c8f2['message']=_0x5c2be1,_0x26927a['sendEventToBackend'](_0x500328,_0xc7c8f2);continue;}break;}}}global_registry['gridProfileId']=_0x41c339['id'];(_0x160873['drOiN'](_0x628063,AZURE)||_0x160873[_0xd2bec8(0x160)](_0x41c339?.[_0xd2bec8(0xfc)],AZURE))&&(_0x160873[_0xd2bec8(0xe9)](_0x160873[_0xd2bec8(0xf8)],_0x160873[_0xd2bec8(0x1b4)])?_0x56f4eb=_0x3e05d1[_0xd2bec8(0x183)]:(console['error'](_0x160873[_0xd2bec8(0xc6)]),process['exit'](0x1)));_0x40ff6d=_0xd2bec8(0x111)+_0x104bf4+_0xd2bec8(0x1c8)+_0x41c339[_0xd2bec8(0x1bf)]+_0xd2bec8(0xf6),logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x3ef023={};_0x3ef023[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x3ef023[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x3ef023),_0x628063=_0x41c339[_0xd2bec8(0xfc)],_0x50f49c=_0x41c339['clusterName'],_0x575def=_0x41c339[_0xd2bec8(0xd9)],_0xed1f=_0x41c339['concurrency'],_0x3fc2c1=_0x41c339['instanceType'],_0x435d86=_0x41c339[_0xd2bec8(0x132)],securityGroups=_0x41c339[_0xd2bec8(0xe3)],subnets=_0x41c339[_0xd2bec8(0x1ea)],_0x3de1ad=_0x41c339[_0xd2bec8(0x175)],_0x922d83=_0x41c339['minNodes'],_0x362c7a=_0x41c339['maxNodes'],_0x77cbb7=_0x2f237f[_0xd2bec8(0x1e1)],_0x3b0815=_0x2f237f[_0xd2bec8(0x134)],_0x160873[_0xd2bec8(0xd4)](_0x41c339[_0xd2bec8(0x19f)],undefined)&&_0x41c339['privateGrid']&&(_0x160873['UUflZ'](_0x160873[_0xd2bec8(0x12a)],_0x160873[_0xd2bec8(0x1af)])?(_0x15445e=_0x2ec481[_0xd2bec8(0x143)],_0x1750ca=_0x160873[_0xd2bec8(0x1aa)]):global_registry['isPrivateGrid']=!![]),_0x160873[_0xd2bec8(0x1d0)](updateGlobalRegistryWithConfig,_0x628063,_0x50f49c,_0x575def,_0xed1f,_0x3fc2c1,_0x3de1ad,_0x41c339,_0x77cbb7,_0x3b0815,_0x922d83,_0x362c7a);}}else{const _0x1ebb8f=_0x160873[_0xd2bec8(0x1bd)][_0xd2bec8(0x10e)]('|');let _0x42f705=0x0;while(!![]){switch(_0x1ebb8f[_0x42f705++]){case'0':global_registry[_0xd2bec8(0xfc)]=_0x628063;continue;case'1':global_registry[_0xd2bec8(0x1c1)]=_0x575def;continue;case'2':const _0x3720b6={};_0x3720b6['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x3720b6[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x3720b6);continue;case'3':global_registry[_0xd2bec8(0x15a)]=_0x50f49c;continue;case'4':_0x40ff6d='Spawning\x20the\x20grid\x20'+_0x104bf4+_0xd2bec8(0x1c3)+_0x50f49c+'\x27';continue;case'5':global_registry[_0xd2bec8(0x1e1)]=_0x2f237f['hubVersion'];continue;case'6':global_registry[_0xd2bec8(0x134)]=_0x2f237f[_0xd2bec8(0x134)];continue;case'7':logger['info'](_0x40ff6d);continue;case'8':const _0x43d075={};_0x43d075[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x131)],_0x43d075[_0xd2bec8(0xeb)]=_0xd2bec8(0x17b),webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x43d075);continue;}break;}}const _0x21bf48=_0x160873[_0xd2bec8(0xdd)](getCloudProviderObject,_0x628063,_0x50f49c,_0x104bf4,_0x55b3d5,webSocketUtils),_0x5cd447=_0x432ba1[_0xd2bec8(0xfc)]||{};if(_0x160873['rdFpz'](_0x5cd447[_0x628063],undefined)){logger['info'](_0x160873[_0xd2bec8(0x101)]);_0x160873[_0xd2bec8(0x106)](_0x432ba1[_0xd2bec8(0xfc)],undefined)&&(_0x432ba1[_0xd2bec8(0xfc)]={});_0x432ba1[_0xd2bec8(0xfc)][_0x628063]={};const _0xddfa3e=await _0x160873[_0xd2bec8(0x1db)](inputCloudProviderKeys,_0x628063,_0x432ba1,_0x21bf48);fs[_0xd2bec8(0xec)](_0x160873[_0xd2bec8(0x196)](getCredentialsPath),JSON['stringify'](_0xddfa3e)),logger[_0xd2bec8(0x192)](_0x160873[_0xd2bec8(0xd0)]);}else{_0x40ff6d=_0x160873[_0xd2bec8(0x1d9)];const _0x3a7040={};_0x3a7040[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x3a7040['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x3a7040),logger[_0xd2bec8(0x169)](_0x40ff6d),await _0x21bf48[_0xd2bec8(0x181)](_0x5cd447);}_0x21bf48['configureIfNotConfigured']();let _0x301469;if(_0x160873['rdFpz'](_0x10a055,![])){_0x40ff6d='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x575def+').';const _0x30c786={};_0x30c786['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x30c786[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x30c786),logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x2b24a0=await _0x21bf48['isClusterPresent']();if(_0x2b24a0){const _0x30c158={};_0x30c158[_0xd2bec8(0x1bc)]=WS_EVENTS['LOG'],_0x30c158[_0xd2bec8(0xeb)]=_0xd2bec8(0x1a4)+_0x50f49c+_0xd2bec8(0x11c),webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x30c158,_0x160873[_0xd2bec8(0x11d)]),logger[_0xd2bec8(0x169)]('Cluster\x20'+_0x50f49c+_0xd2bec8(0x11c)),_0x10a055=!![];}else{const _0x4c7270={};_0x4c7270['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x4c7270[_0xd2bec8(0xeb)]=_0x160873['PRaOO'],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x4c7270),logger['info'](_0x160873[_0xd2bec8(0x198)]);const _0x5a63a4=_0x160873[_0xd2bec8(0x1ef)](_0x435d86,null)&&_0x160873[_0xd2bec8(0x144)](_0x435d86,undefined),_0x4a6ecc=_0x160873['KjFpX'](subnets,null)&&_0x160873[_0xd2bec8(0x1a5)](subnets,undefined)&&_0x160873[_0xd2bec8(0x12d)](subnets[_0xd2bec8(0x1a1)],0x0);if(_0x5a63a4){_0x160873[_0xd2bec8(0x15c)](_0x4a6ecc,![])&&(_0x40ff6d=_0x160873[_0xd2bec8(0x159)],await _0x160873[_0xd2bec8(0x1e5)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1b3)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));const _0x5b4e9e=await _0x21bf48[_0xd2bec8(0x108)](_0x435d86);_0x160873[_0xd2bec8(0x14d)](_0x5b4e9e,![])?(_0x40ff6d=_0x160873['BCkTq'],await _0x160873[_0xd2bec8(0x184)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1a9)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):logger[_0xd2bec8(0x169)](_0xd2bec8(0x149)+_0x435d86+'\x20');const _0x7ed838=await _0x21bf48[_0xd2bec8(0x102)](subnets,_0x435d86);_0x160873['MgwTG'](_0x7ed838[0x0],![])?(_0x40ff6d=_0xd2bec8(0xe7)+_0x7ed838[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x435d86+_0xd2bec8(0xf2),await _0x160873[_0xd2bec8(0x129)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x156)],_0x160873['skqeP']),logger['error'](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):logger[_0xd2bec8(0x169)]('Found\x20Subnets:\x20'+JSON[_0xd2bec8(0x12b)](subnets)+'\x20'),await _0x21bf48[_0xd2bec8(0x13f)](_0x435d86,subnets);}else{const _0x23c76a=_0x160873[_0xd2bec8(0x1d4)][_0xd2bec8(0x10e)]('|');let _0x431b83=0x0;while(!![]){switch(_0x23c76a[_0x431b83++]){case'0':logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0x1d3)]);continue;case'1':const _0x5e2cbc={};_0x5e2cbc['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x5e2cbc[_0xd2bec8(0xeb)]=_0x160873['yJoiu'],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x5e2cbc);continue;case'2':await _0x21bf48[_0xd2bec8(0x13f)]();continue;case'3':logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0x130)]);continue;case'4':const _0x13796f={};_0x13796f['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x13796f[_0xd2bec8(0xeb)]=_0xd2bec8(0xc8),webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x13796f);continue;}break;}}}}_0x10a055&&_0x160873['gOSNn'](_0x628063,AZURE)&&(global_registry[_0xd2bec8(0x151)]=_0x2f237f[_0xd2bec8(0x1ec)],await _0x21bf48[_0xd2bec8(0x1a6)](),await _0x21bf48[_0xd2bec8(0x12c)]());const [_0x3025ab,_0xc1165,_0x4d96ee,_0x5d3ce0,_0x15bdf2,_0x33e645]=await _0x160873[_0xd2bec8(0x185)](createK8sClient,_0x21bf48);_0x160873['rdFpz'](_0x10a055,![])&&_0x160873[_0xd2bec8(0x1f6)](_0x628063,AWS)&&(_0x301469=await _0x21bf48[_0xd2bec8(0x17f)](_0x3025ab,_0x312e6a));try{_0x507ed3=_0x160873[_0xd2bec8(0xc3)](kebabCase,_0x104bf4),logger[_0xd2bec8(0x169)](_0x160873['xVZgU']);const _0x5ad19f={};_0x5ad19f[_0xd2bec8(0x1bc)]=WS_EVENTS['LOG'],_0x5ad19f[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x1c7)],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x5ad19f);if(_0x160873['TWGyp'](_0x507ed3,_0x160873[_0xd2bec8(0xe1)])){const _0x935d8e={};_0x935d8e[_0xd2bec8(0x110)]=_0x160873[_0xd2bec8(0x13b)],_0x935d8e[_0xd2bec8(0xf1)]=_0x160873[_0xd2bec8(0x13b)];const _0x317fa2={};_0x317fa2[_0xd2bec8(0x1bf)]=_0x507ed3,_0x317fa2['annotations']=_0x935d8e;const _0x376a5b={};_0x376a5b[_0xd2bec8(0xc1)]=_0x317fa2;let _0x98304e=_0x376a5b;await _0x3025ab[_0xd2bec8(0xee)](_0x98304e),logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0xfb)]);}const _0x59ee76={};_0x59ee76[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x59ee76[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x171)],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x59ee76);const _0x4159f1={};_0x4159f1['type']=WS_EVENTS['LOG'],_0x4159f1[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x1d7)],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x4159f1),logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0xcb)]);let _0x22c2e1={};_0x160873[_0xd2bec8(0x15c)](_0x628063,AZURE)&&(_0x22c2e1={'clientId':await _0x21bf48[_0xd2bec8(0xce)](_0xd2bec8(0x11a)+_0x50f49c)});await _0x160873[_0xd2bec8(0x1f0)](addGridComponents,_0x3025ab,_0xc1165,_0x4d96ee,_0x5d3ce0,_0x507ed3,_0x50f49c,_0x301469,_0x15bdf2,_0x33e645,_0x22c2e1),_0x40ff6d=_0x160873[_0xd2bec8(0xf3)],logger['info'](_0x40ff6d);const _0x312eb2={};_0x312eb2[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x312eb2['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x312eb2),_0x40ff6d=_0x160873['isNIQ'],logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x3ee92f={};_0x3ee92f[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x3ee92f['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x3ee92f),await webSocketUtils[_0xd2bec8(0x194)](0xea60);const _0x132094=await _0x160873['dIIRh'](getNamespaceUID,_0x3025ab,_0x507ed3);let _0x1e77f7=global_registry['isPrivateGrid']?_0x160873[_0xd2bec8(0xdc)]:_0x160873[_0xd2bec8(0x1f4)],_0xc4a609=await _0x3025ab[_0xd2bec8(0xcd)](_0x1e77f7,_0x160873[_0xd2bec8(0xf5)]),_0x59aaa1=_0x21bf48['getGridHostname'](_0xc4a609)+'/'+_0x507ed3,_0x54c40f=_0x160873[_0xd2bec8(0x107)];try{const _0x3b98f9={'url':_0xd2bec8(0x18e)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x132094,..._0x1d6523},_0x1ffd70=_0x3b98f9,_0x12bb71=await _0x160873['KXNbw'](promisifiedRequest,_0x1ffd70);(_0x160873[_0xd2bec8(0x163)](_0x12bb71,null)||_0x160873[_0xd2bec8(0x163)](_0x12bb71,undefined))&&(_0x40ff6d=_0x160873[_0xd2bec8(0x13e)],await _0x160873[_0xd2bec8(0x184)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873['IQWjU'],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));_0x160873[_0xd2bec8(0x115)](_0x12bb71[_0xd2bec8(0x174)],0x191)&&(_0x40ff6d=_0x160873[_0xd2bec8(0x13d)],await _0x160873['jPqwi'](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1e7)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));_0x160873[_0xd2bec8(0x1a5)](_0x12bb71[_0xd2bec8(0x174)],0xc8)&&(_0x40ff6d='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0xd2bec8(0x12b)](_0x12bb71),await _0x160873[_0xd2bec8(0x125)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x113)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));const _0x21a8de=JSON[_0xd2bec8(0x14c)](_0x12bb71[_0xd2bec8(0x1da)]);_0x21a8de[_0xd2bec8(0x143)]&&(_0x59aaa1=_0x21a8de[_0xd2bec8(0x143)],_0x54c40f=_0x160873[_0xd2bec8(0x1aa)]),global_registry[_0xd2bec8(0x1eb)]&&(_0x54c40f=_0x160873[_0xd2bec8(0x107)]);}catch(_0x39e9b0){}_0x40ff6d=_0xd2bec8(0x17d)+_0x59aaa1+'\x20',logger['info'](_0x40ff6d);const _0x4d21a1={};_0x4d21a1['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x4d21a1['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x4d21a1),_0x40ff6d=_0xd2bec8(0xcc)+_0x54c40f+_0xd2bec8(0x1ca)+_0x59aaa1+_0xd2bec8(0x17c),logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x2f5f78={};_0x2f5f78['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x2f5f78[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x2f5f78);const _0x243fb8={};_0x243fb8[_0xd2bec8(0x1bc)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x243fb8[_0xd2bec8(0xeb)]=_0xd2bec8(0x128)+_0x59aaa1,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x243fb8),await webSocketUtils[_0xd2bec8(0x194)](0x7d0);}catch(_0x512fc1){if(_0x160873[_0xd2bec8(0x15c)](_0x10a055,![]))try{logger['info'](_0xd2bec8(0x140)),await _0x160873['RYKtM'](removeGridComponents,_0x3025ab,_0xc1165,_0x4d96ee,_0x5d3ce0,_0x507ed3),await _0x21bf48[_0xd2bec8(0x190)](_0x3025ab,global_registry[_0xd2bec8(0x1c1)]);}catch(_0x43defb){throw _0x43defb;}throw _0x512fc1;}}catch(_0x1fd119){const _0x599ebb='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1fd119+'\x20\x0a'+JSON['stringify'](_0x1fd119)+'\x20';if(_0x55b3d5){const _0x1cbdab={};_0x1cbdab[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x1cbdab[_0xd2bec8(0xeb)]=_0x599ebb,webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x1cbdab,_0x160873[_0xd2bec8(0xea)],!![]);}await webSocketUtils[_0xd2bec8(0x194)](0x7d0);const _0x4c9c47={};_0x4c9c47[_0xd2bec8(0xc4)]=_0x599ebb,await _0x160873[_0xd2bec8(0x1e8)](sendInstrumentationEvent,_0x312e6a,_0x160873[_0xd2bec8(0x1df)],messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x17e)],_0x4c9c47,_0x312e6a),logger[_0xd2bec8(0xc4)](_0x599ebb);}process[_0xd2bec8(0x117)](0x0);};
1
+ function a10_0xe1cb(_0x3f3d66,_0x507a72){const _0x29da62=a10_0x29da();return a10_0xe1cb=function(_0xe1cbb2,_0xd7fd65){_0xe1cbb2=_0xe1cbb2-0x14d;let _0x2195c9=_0x29da62[_0xe1cbb2];return _0x2195c9;},a10_0xe1cb(_0x3f3d66,_0x507a72);}const a10_0x1c2dec=a10_0xe1cb;(function(_0x5ad673,_0x3b6856){const _0x1ea286=a10_0xe1cb,_0x278e04=_0x5ad673();while(!![]){try{const _0x241028=-parseInt(_0x1ea286(0x26b))/0x1*(-parseInt(_0x1ea286(0x22d))/0x2)+-parseInt(_0x1ea286(0x1fe))/0x3*(-parseInt(_0x1ea286(0x186))/0x4)+parseInt(_0x1ea286(0x207))/0x5+parseInt(_0x1ea286(0x236))/0x6+parseInt(_0x1ea286(0x270))/0x7+-parseInt(_0x1ea286(0x255))/0x8*(parseInt(_0x1ea286(0x1be))/0x9)+-parseInt(_0x1ea286(0x20f))/0xa;if(_0x241028===_0x3b6856)break;else _0x278e04['push'](_0x278e04['shift']());}catch(_0x371b68){_0x278e04['push'](_0x278e04['shift']());}}}(a10_0x29da,0xbfee0));const fs=require('fs'),ws=require('ws'),util=require(a10_0x1c2dec(0x18b)),ReconnectingWebSocket=require(a10_0x1c2dec(0x175)),request=require(a10_0x1c2dec(0x1c0)),{v4:uuidv4}=require(a10_0x1c2dec(0x1ec)),webSocketUtils=require(a10_0x1c2dec(0x1c7)),{logger}=require(a10_0x1c2dec(0x201)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x1c2dec(0x1e9)),{getCloudProviderObject}=require(a10_0x1c2dec(0x219)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x1c2dec(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x1c2dec(0x242)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x1c2dec(0x1b3)),promisifiedRequest=util[a10_0x1c2dec(0x1ca)](request);function a10_0x29da(){const _0x279707=['exit','create-grid-checks-non-200','HKAVP','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','replace','create-grid-called','INFO','auth','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','TbouZ','init-not-called','ILyZI','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','ktruN','CLI_RUN_STARTED','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','qRlkg','UWLGZ','xZbCR','YTPiu','uRWxJ','route53','desc','https://','../../config/constants','Found\x20Subnets:\x20','reconnecting-websocket','jJwiz','clusterRegion','NxVXh','fgEyV','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','createdBy','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Pxscq','8|4|5|3|2|7|6|0|1','isVPCPresent','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','region','gridProfile','PCucE','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','XZlWF','4kuSmGD','configureIfNotConfigured','raNIV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','browserVersion','util','prespawned-cluster-args-not-passed','eTLsm','getResourceClientId','deleteCluster','http','pfjoc','name','eEXSN','xesNb','KifIJ','jFAPZ','annotations','TJPxI','akxJS','FeRkK','lgiYe','PyExj','Create\x20a\x20new\x20Automation\x20grid.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rswby','lcNHw','RLYBU','FOKaX','createOtherResources','Namespace\x20created','tSUEw','zJJFY','description','private-grid','kajts','isPrivateGrid','DxaKK','GTyTc','setupNewCluster','WebSocket','RDNIW','1|6|3|0|4|7|2|8|5','length','fmAMB','../../utils/instrumentationUtils','Subnets:\x20','fFfCm','sendEventToBackend','HQJzj','user','Found\x20VPC:\x20','ACcxd','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','TgixQ','username','36dCzwUB','RmIIj','request','usage','oWqoW','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','securityGroups','bstackUsername','OtKrB','../../utils/webSocketUtils','bstackAccesskey','qgzXq','promisify','JBpvb','cluster-name','s3bucket','nIBAM','BLnRx','GbIAd','Ctncc','PncGk','oGMrW','oqAfE','LUAsa','ingress-nginx','/packages/cli/get-grid-url?gridIdentifier=','tFkTo','lTDiQ','existsSync','hnJtD','tRMXF','CDKmv','private-ingress-nginx-controller','body','wChUy','defaultGridProfile','xdXYJ','LGnSP','epilogue','Spawning\x20the\x20grid\x20','help','CkxVL','pre-spawned-invalid-vpc','../../utils/utilityMethods','\x27\x20grid\x20profile','tABOU','uuid','QzKaQ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','pre-spawned-subnets-not-selected','delay','\x20using\x20\x27','privateGrid','toLowerCase','setupAutoscaler','Rnflw','QkFQt','JWRAk','Grid\x20profile\x20fetched\x20from\x20backend','HVTeD','amQrY','xiLyq','tFmXw','2551182RwJhGI','GSSXG','cloud-provider','../../config/logger','gridProfileId','LOG','writeFileSync','NlXLe','true','1989165zZWpBn','get-grid-url-auth-failed','statusCode','rrltt','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Namespace\x20Created','builder','YWPHM','6845120sgvIeX','ZDOlV','DadOD','concurrency','SzTvX','iNCuP','argv','managedBy','uvQmU','hOCEM','../../cloudproviders/utils','stringify','WAxST','eaxwN','subnets','isClusterPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getGridHostname','grid','UjrcG','includes','xYVgC','fcgAs','://','command','Browserstack','readNamespacedService','TkEsu','yGIFk','whoIb','2ndyWnE','s3BucketName','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','GoqJV','Cluster\x20created\x20successfully','yMojM','sxNPo','Will\x20be\x20spawning\x20the\x20grid\x20','SqWfy','2369670tTcbuV','SyctC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error','ioZbT','parse','Adding\x20Websocket\x20listeners','vBLMR','SjuZH','metadata','ERROR','SEzec','../../utils/gridComponents','warn','https','CgnJY','CIexP','info','TqiGs','connectionTimeout','AUOgf','eSEeH','turboscale-managed-identity-','grid-profile','Cluster\x20','get-grid-url-non-200','GET','ouvbC','updatePreSpawnedCluster','AyLqh','TWyHr','1820152ilamsY','create-grid-checks-invalid-profile','NUHzw','s3Bucket','cloudProvider','handler','Deleting\x20the\x20CloudFormation\x20Stacks','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','instanceType','readFileSync','clusterName','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ntvkG','get-grid-url-null-response','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','pre-spawned-invalid-subnets','maxNodes','Spawning\x20Grid\x20on\x20the\x20Cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ccoVW','JrRIi','RBqpm','610813qTfyJD','message','\x20in\x20existing\x20cluster\x20\x27','Create\x20a\x20private/public\x20grid.','password','887229qufiHs','vZtNL','addListeners','AqIPG','grid-name','JCtPf','fTtst','yOyPJ','string','hubVersion','split','create-grid-checks-auth-failed','type','wkmou','CxMrv','create','emlYz','minNodes','TlJKO','KcKio','gridName','debug','VwPEk','lDXUu','VNmYv'];a10_0x29da=function(){return _0x279707;};return a10_0x29da();}exports[a10_0x1c2dec(0x227)]=a10_0x1c2dec(0x221),exports[a10_0x1c2dec(0x171)]=a10_0x1c2dec(0x19d),exports[a10_0x1c2dec(0x20d)]=function(_0x2cf4db){const _0x4aa674=a10_0x1c2dec,_0x2e5660={};_0x2e5660['vxtoN']=_0x4aa674(0x22f),_0x2e5660[_0x4aa674(0x15a)]='string',_0x2e5660[_0x4aa674(0x1c9)]=_0x4aa674(0x25c),_0x2e5660['QzKaQ']=_0x4aa674(0x19e),_0x2e5660[_0x4aa674(0x222)]=_0x4aa674(0x21f),_0x2e5660['agJhJ']=_0x4aa674(0x238),_0x2e5660['SjuZH']=_0x4aa674(0x26e),_0x2e5660[_0x4aa674(0x22a)]=_0x4aa674(0x1e6);const _0x2e46a1=_0x2e5660,_0xc0f00d={};_0xc0f00d[_0x4aa674(0x1a7)]=_0x2e46a1['vxtoN'],_0xc0f00d[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x4e8139={};_0x4e8139[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x1c9)],_0x4e8139[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x1ee42c={};_0x1ee42c[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x1ed)],_0x1ee42c[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x437600={};_0x437600[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x222)],_0x437600[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x1e42d6={};_0x1e42d6[_0x4aa674(0x1a7)]=_0x2e46a1['agJhJ'],_0x1e42d6[_0x4aa674(0x14e)]=_0x2e46a1['VNmYv'];const _0x43ad41={};_0x43ad41['description']=_0x2e46a1[_0x4aa674(0x23e)],_0x43ad41[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x4a387f={};return _0x4a387f[_0x4aa674(0x274)]=_0xc0f00d,_0x4a387f[_0x4aa674(0x24d)]=_0x4e8139,_0x4a387f[_0x4aa674(0x1cc)]=_0x1ee42c,_0x4a387f[_0x4aa674(0x200)]=_0x437600,_0x4a387f[_0x4aa674(0x181)]=_0x1e42d6,_0x4a387f[_0x4aa674(0x1a8)]=_0x43ad41,_0x2cf4db[_0x4aa674(0x1c1)](HELP_HEADER_MESSAGE[_0x4aa674(0x151)])[_0x4aa674(0x1e4)](HELP_FOOTER_MESSAGE)['options'](_0x4a387f)[_0x4aa674(0x1e6)](_0x2e46a1[_0x4aa674(0x22a)])[_0x4aa674(0x215)];},exports[a10_0x1c2dec(0x25a)]=async function(_0x133bef){const _0x1b04c0=a10_0x1c2dec,_0x23609c={'pyVDX':_0x1b04c0(0x22f),'SqWfy':_0x1b04c0(0x278),'wkmou':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','fkuEu':_0x1b04c0(0x19e),'jqHay':_0x1b04c0(0x21f),'UWLGZ':_0x1b04c0(0x238),'TyvDM':_0x1b04c0(0x26e),'ioZbT':_0x1b04c0(0x1e6),'DmAcQ':_0x1b04c0(0x1b0),'WAxST':_0x1b04c0(0x243),'zJJFY':_0x1b04c0(0x239),'qRlkg':_0x1b04c0(0x190),'CVrou':_0x1b04c0(0x244),'NlXLe':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','aZNbL':function(_0xa74348){return _0xa74348();},'lDXUu':function(_0x417c3a){return _0x417c3a();},'BLnRx':function(_0x24ab1c,_0x3a3d1b){return _0x24ab1c!==_0x3a3d1b;},'CkxVL':_0x1b04c0(0x1e0),'SzTvX':_0x1b04c0(0x189),'Rnflw':function(_0x4ab647,_0x37416e,_0x48f09e,_0x2035d3,_0xd0d3f,_0xf3c3e9,_0x4edaaa){return _0x4ab647(_0x37416e,_0x48f09e,_0x2035d3,_0xd0d3f,_0xf3c3e9,_0x4edaaa);},'ACcxd':_0x1b04c0(0x160),'tFkTo':_0x1b04c0(0x165),'fFfCm':function(_0xbb6237,_0x155abf,_0x22396d,_0xe240be,_0x485f4a,_0x118f72,_0x4c28e9){return _0xbb6237(_0x155abf,_0x22396d,_0xe240be,_0x485f4a,_0x118f72,_0x4c28e9);},'RLYBU':'<UsernamePlaceholder>','QkFQt':'<PasswordPlaceholder>','ntvkG':_0x1b04c0(0x23c),'tSUEw':function(_0x491dee,_0x53be4d){return _0x491dee===_0x53be4d;},'fZLWv':'QQANq','XZlWF':_0x1b04c0(0x17d),'iNCuP':_0x1b04c0(0x17c),'vBLMR':function(_0x449e50,_0x1a599c,_0x306e58,_0x39075c,_0x1ae914,_0x1420bc,_0x4b0ba6,_0x1636b1){return _0x449e50(_0x1a599c,_0x306e58,_0x39075c,_0x1ae914,_0x1420bc,_0x4b0ba6,_0x1636b1);},'fOaFS':_0x1b04c0(0x18c),'ILyZI':'uoqhJ','VwPEk':_0x1b04c0(0x15e),'PCucE':'non-aws-azure-cluster','CDKmv':_0x1b04c0(0x206),'uvQmU':function(_0x21d209,_0x164969){return _0x21d209===_0x164969;},'rrltt':_0x1b04c0(0x210),'BYJNK':_0x1b04c0(0x1db),'OtKrB':_0x1b04c0(0x20e),'oWqoW':_0x1b04c0(0x194),'tRMXF':_0x1b04c0(0x250),'emlYz':function(_0x2538a7,_0x482ab7){return _0x2538a7(_0x482ab7);},'RmIIj':function(_0x21525a,_0x154bae){return _0x21525a===_0x154bae;},'fgEyV':_0x1b04c0(0x154),'JBpvb':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ZbfoD':'create-grid-checks-null-response','FOKaX':function(_0x4d49fc,_0x6f8434){return _0x4d49fc===_0x6f8434;},'hOCEM':function(_0x531aad,_0x53fb0d){return _0x531aad===_0x53fb0d;},'pfjoc':_0x1b04c0(0x195),'TWyHr':_0x1b04c0(0x17a),'PVNEo':function(_0x38e0f5,_0x3bab4b,_0x46d61a,_0x274834,_0x32cfdd,_0x4f82f6,_0x49afc1,_0x5734a4){return _0x38e0f5(_0x3bab4b,_0x46d61a,_0x274834,_0x32cfdd,_0x4f82f6,_0x49afc1,_0x5734a4);},'HKAVP':_0x1b04c0(0x14d),'sbxfn':function(_0x54898b,_0x10109b){return _0x54898b!==_0x10109b;},'lTDiQ':function(_0x480a36,_0x5b76fc){return _0x480a36===_0x5b76fc;},'TbouZ':_0x1b04c0(0x178),'vZtNL':function(_0x5219b9,_0x47e896,_0x560495,_0x23f865,_0x119d88,_0x56427d,_0x1d1abf,_0x6263b9){return _0x5219b9(_0x47e896,_0x560495,_0x23f865,_0x119d88,_0x56427d,_0x1d1abf,_0x6263b9);},'CIexP':_0x1b04c0(0x15c),'LdDsL':_0x1b04c0(0x1f9),'DadOD':function(_0x2b0e3c,_0x4f70aa){return _0x2b0e3c!==_0x4f70aa;},'raNIV':_0x1b04c0(0x196),'GoqJV':_0x1b04c0(0x1bb),'zqsmJ':'create-grid-checks-grid-already-exists','oGMrW':function(_0x1e7575,_0x19b878){return _0x1e7575===_0x19b878;},'NuKnJ':_0x1b04c0(0x21c),'eTLsm':_0x1b04c0(0x16d),'GTyTc':function(_0x5e3153,_0x202624){return _0x5e3153===_0x202624;},'KcKio':_0x1b04c0(0x248),'SyctC':_0x1b04c0(0x1eb),'SEzec':function(_0x577816,_0x1d1ac6){return _0x577816!==_0x1d1ac6;},'xYVgC':_0x1b04c0(0x277),'jJwiz':_0x1b04c0(0x1bc),'qHBkS':_0x1b04c0(0x267),'Ctncc':function(_0x166982,_0x11edf1,_0x54fcae,_0x4b8982,_0x3934ae,_0xd41d02,_0x59b9da,_0x23d341){return _0x166982(_0x11edf1,_0x54fcae,_0x4b8982,_0x3934ae,_0xd41d02,_0x59b9da,_0x23d341);},'NUHzw':_0x1b04c0(0x256),'eEXSN':function(_0x305e56,_0x3515f3){return _0x305e56!==_0x3515f3;},'lcNHw':'LTuKL','TJPxI':'FuPut','kajts':'nvDJr','sxNPo':function(_0x5870c3,_0xf97efc,_0x397ad5,_0x52a259,_0x586918,_0x499ff8,_0x2b5ea5,_0x3a52de,_0x4123df,_0x3250dd,_0x1d87f3,_0x5414f0){return _0x5870c3(_0xf97efc,_0x397ad5,_0x52a259,_0x586918,_0x499ff8,_0x2b5ea5,_0x3a52de,_0x4123df,_0x3250dd,_0x1d87f3,_0x5414f0);},'amQrY':_0x1b04c0(0x17e),'uRWxJ':function(_0x269b4c,_0x2deb24,_0x1a3215,_0x3d1f1c,_0x5e19ae,_0x1952de){return _0x269b4c(_0x2deb24,_0x1a3215,_0x3d1f1c,_0x5e19ae,_0x1952de);},'LGnSP':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','GSSXG':function(_0x2aeb20,_0x27601b){return _0x2aeb20===_0x27601b;},'FeRkK':function(_0x5ef7b0,_0x2fb5e5,_0x5427e7,_0x4dae6f){return _0x5ef7b0(_0x2fb5e5,_0x5427e7,_0x4dae6f);},'eSEeH':function(_0xb55593){return _0xb55593();},'LUAsa':_0x1b04c0(0x184),'fcgAs':_0x1b04c0(0x1ef),'azENH':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','HQJzj':function(_0x38cf26,_0x22f2b7){return _0x38cf26!=_0x22f2b7;},'RDNIW':function(_0x1143ce,_0x53b62c){return _0x1143ce!==_0x53b62c;},'DxaKK':function(_0x3dde55,_0x2aa740){return _0x3dde55>_0x2aa740;},'AqIPG':function(_0x21505f,_0x533750){return _0x21505f===_0x533750;},'JrRIi':_0x1b04c0(0x16a),'xTdtK':_0x1b04c0(0x1f0),'vfwYf':function(_0x4550cb,_0x48628c){return _0x4550cb===_0x48628c;},'tFmXw':_0x1b04c0(0x163),'JCtPf':_0x1b04c0(0x1e8),'yMojM':function(_0x3fbdb4,_0x56ba5f){return _0x3fbdb4===_0x56ba5f;},'WYcCw':function(_0x4c70f6,_0x3b3ae4,_0x70d660,_0x9855c8,_0x457ed4,_0x180ae5,_0x7bf6f5,_0x484770){return _0x4c70f6(_0x3b3ae4,_0x70d660,_0x9855c8,_0x457ed4,_0x180ae5,_0x7bf6f5,_0x484770);},'JWRAk':_0x1b04c0(0x264),'xdXYJ':'0|3|4|1|2','akxJS':_0x1b04c0(0x167),'PyExj':_0x1b04c0(0x231),'ouvbC':function(_0xcad8e3,_0x299c1a){return _0xcad8e3===_0x299c1a;},'CgnJY':function(_0x190653,_0x56b53d){return _0x190653==_0x56b53d;},'ktruN':function(_0x2e6696,_0x4fb209){return _0x2e6696(_0x4fb209);},'oqAfE':'Creating\x20namespace','fTtst':'default','CxMrv':_0x1b04c0(0x228),'tVZlY':_0x1b04c0(0x20c),'yGIFk':_0x1b04c0(0x1a4),'xiLyq':_0x1b04c0(0x20b),'AUOgf':_0x1b04c0(0x266),'csclZ':function(_0x429225,_0x5844db){return _0x429225===_0x5844db;},'GlhHU':function(_0x14bf00,_0xdfc4f7,_0x5b344f,_0x5eaf27,_0x405576,_0xd4d003,_0x3b4092,_0x259d1d,_0x7f5f62,_0x8f3924,_0x5800cb){return _0x14bf00(_0xdfc4f7,_0x5b344f,_0x5eaf27,_0x405576,_0xd4d003,_0x3b4092,_0x259d1d,_0x7f5f62,_0x8f3924,_0x5800cb);},'YTPiu':'Grid\x20spawned\x20on\x20the\x20cluster','fmAMB':_0x1b04c0(0x1c3),'ojLjL':function(_0x5b2155,_0x3055c7,_0x54d8a1){return _0x5b2155(_0x3055c7,_0x54d8a1);},'HVTeD':_0x1b04c0(0x1de),'RoOlh':'ingress-nginx-controller','RBqpm':_0x1b04c0(0x1d6),'whoIb':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','PncGk':function(_0x59a519,_0x359794,_0x1417a5,_0x8cb735,_0x3799e2,_0x3bcce7,_0x556c07,_0x1d60f1){return _0x59a519(_0x359794,_0x1417a5,_0x8cb735,_0x3799e2,_0x3bcce7,_0x556c07,_0x1d60f1);},'ewOKI':_0x1b04c0(0x262),'dWVcC':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ccoVW':function(_0x57a1f9,_0x57c263,_0xda42f0,_0x20adeb,_0x1413cc,_0x12f688,_0x163457,_0x429bfe){return _0x57a1f9(_0x57c263,_0xda42f0,_0x20adeb,_0x1413cc,_0x12f688,_0x163457,_0x429bfe);},'GbIAd':_0x1b04c0(0x208),'nIBAM':function(_0x158737,_0x431f17,_0x1e40d8,_0x2ba6a8,_0x3f949d,_0x379c2f,_0x5233ee,_0x220417){return _0x158737(_0x431f17,_0x1e40d8,_0x2ba6a8,_0x3f949d,_0x379c2f,_0x5233ee,_0x220417);},'rswby':_0x1b04c0(0x24f),'lgiYe':function(_0x280f99,_0x3ce7f0){return _0x280f99===_0x3ce7f0;},'AyLqh':'grid-spawning-failed'};let _0x7a1151=![],_0xcf0089,_0x138d77,_0x4c1666,_0x489b50,_0x459179,_0x25ce5a,_0x2f847c,_0x3ee750,_0xde8b46,_0x89fe0f,_0x58c612,_0x459630,_0x501916=0x1,_0x54a841=0xe;try{global_registry['requestId']=_0x23609c['aZNbL'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs[_0x1b04c0(0x1da)](_0x23609c['lDXUu'](getCredentialsPath))){if(_0x23609c['BLnRx'](_0x23609c['CkxVL'],_0x23609c[_0x1b04c0(0x1e7)])){const _0x4b6a95={};_0x4b6a95[_0x1b04c0(0x1a7)]=_0x23609c['pyVDX'],_0x4b6a95[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x4de980={};_0x4de980[_0x1b04c0(0x1a7)]=_0x23609c[_0x1b04c0(0x14f)],_0x4de980[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x5a9b34={};_0x5a9b34[_0x1b04c0(0x1a7)]=_0x23609c['fkuEu'],_0x5a9b34['type']=_0x23609c[_0x1b04c0(0x235)];const _0x165be7={};_0x165be7[_0x1b04c0(0x1a7)]=_0x23609c['jqHay'],_0x165be7[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x1ee728={};_0x1ee728['description']=_0x23609c[_0x1b04c0(0x16c)],_0x1ee728['type']=_0x23609c[_0x1b04c0(0x235)];const _0x525b29={};_0x525b29[_0x1b04c0(0x1a7)]=_0x23609c['TyvDM'],_0x525b29[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x31d102={};return _0x31d102[_0x1b04c0(0x274)]=_0x4b6a95,_0x31d102[_0x1b04c0(0x24d)]=_0x4de980,_0x31d102[_0x1b04c0(0x1cc)]=_0x5a9b34,_0x31d102[_0x1b04c0(0x200)]=_0x165be7,_0x31d102[_0x1b04c0(0x181)]=_0x1ee728,_0x31d102[_0x1b04c0(0x1a8)]=_0x525b29,_0x2aa592[_0x1b04c0(0x1c1)](_0x520691[_0x1b04c0(0x151)])[_0x1b04c0(0x1e4)](_0x1ddb6b)['options'](_0x31d102)[_0x1b04c0(0x1e6)](_0x23609c[_0x1b04c0(0x23a)])['argv'];}else console[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x213)]),await _0x23609c[_0x1b04c0(0x1f6)](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1d8)],null,_0x133bef),process[_0x1b04c0(0x15b)](0x1);}await _0x23609c[_0x1b04c0(0x1b5)](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes[_0x1b04c0(0x161)],null,null,_0x133bef);const _0x2be0d4=JSON[_0x1b04c0(0x23b)](fs[_0x1b04c0(0x25e)](_0x23609c[_0x1b04c0(0x159)](getCredentialsPath)));global_registry[_0x1b04c0(0x1c5)]=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x1bd)],global_registry[_0x1b04c0(0x1c8)]=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x26f)];const _0x4ee036=WS_ENDPOINT['replace'](_0x23609c[_0x1b04c0(0x1a1)],_0x2be0d4[_0x1b04c0(0x228)]['username'])[_0x1b04c0(0x15f)](_0x23609c[_0x1b04c0(0x1f7)],_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x26f)]),_0x5e796a={};_0x5e796a[_0x1b04c0(0x1ae)]=ws,_0x5e796a[_0x1b04c0(0x249)]=0x36ee80,_0x89fe0f=new ReconnectingWebSocket(_0x4ee036,[],_0x5e796a),logger['debug'](_0x23609c[_0x1b04c0(0x261)]),webSocketUtils[_0x1b04c0(0x272)](_0x89fe0f,_0x133bef[_0x1b04c0(0x1b8)],_0x133bef[_0x1b04c0(0x26f)]);let _0x3fed32=DEFAULT_GRID_NAME;if(_0x133bef[_0x1b04c0(0x25f)]||_0x133bef[_0x1b04c0(0x259)]||_0x133bef['region']){if(_0x23609c[_0x1b04c0(0x1a5)](_0x23609c['fZLWv'],_0x23609c['fZLWv'])){if(!(_0x133bef[_0x1b04c0(0x25f)]&&_0x133bef['cloudProvider']&&_0x133bef[_0x1b04c0(0x181)])){if(_0x23609c[_0x1b04c0(0x1a5)](_0x23609c[_0x1b04c0(0x185)],_0x23609c[_0x1b04c0(0x185)]))_0xcf0089=_0x23609c[_0x1b04c0(0x214)],await _0x23609c['vBLMR'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['fOaFS'],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);else{const _0x5782f5=_0x23609c['DmAcQ'][_0x1b04c0(0x27a)]('|');let _0x26f3e8=0x0;while(!![]){switch(_0x5782f5[_0x26f3e8++]){case'0':const _0x582b24={};_0x582b24[_0x1b04c0(0x14e)]=_0x8fc526[_0x1b04c0(0x203)],_0x582b24[_0x1b04c0(0x26c)]=_0x1cd481,_0x4cb4ab['sendEventToBackend'](_0x45e523,_0x582b24);continue;case'1':const _0xe5287c={};_0xe5287c[_0x1b04c0(0x14e)]=_0x350da4['CLI_RUN_STARTED'],_0xe5287c['message']='CLI\x20run\x20started',_0x5a0892[_0x1b04c0(0x1b6)](_0x2ea94f,_0xe5287c);continue;case'2':_0x502447[_0x1b04c0(0x25f)]=_0x500c60;continue;case'3':_0x40f16f[_0x1b04c0(0x247)](_0x2fc6e1);continue;case'4':_0x363ba7[_0x1b04c0(0x259)]=_0x1b1de9;continue;case'5':_0x326844['browserVersion']=_0x259687['browserVersion'];continue;case'6':_0x1fe75b=_0x1b04c0(0x1e5)+_0x4f32f1+_0x1b04c0(0x26d)+_0x3a2bd9+'\x27';continue;case'7':_0x42c80c[_0x1b04c0(0x177)]=_0x244d14;continue;case'8':_0x44b05b[_0x1b04c0(0x279)]=_0x101eec[_0x1b04c0(0x279)];continue;}break;}}}if(![AWS,AZURE,GCP][_0x1b04c0(0x223)](_0x133bef['cloudProvider']['toLowerCase']())){if(_0x23609c['BLnRx'](_0x23609c[_0x1b04c0(0x166)],_0x23609c[_0x1b04c0(0x166)])){const _0x39b54f={};_0x39b54f[_0x1b04c0(0x14e)]=_0x1b518a['LOG'],_0x39b54f[_0x1b04c0(0x26c)]=_0x1b04c0(0x24e)+_0x1c6f7b+_0x1b04c0(0x263),_0x571ebd[_0x1b04c0(0x1b6)](_0x44b7a4,_0x39b54f,_0x23609c[_0x1b04c0(0x21b)]),_0x30c40d[_0x1b04c0(0x247)](_0x1b04c0(0x24e)+_0x548aab+_0x1b04c0(0x263)),_0x704363=!![];}else _0xcf0089=_0x23609c[_0x1b04c0(0x158)],await _0x23609c[_0x1b04c0(0x23d)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x183)],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);}_0x133bef[_0x1b04c0(0x1f3)]&&_0x23609c[_0x1b04c0(0x1a5)](_0x133bef[_0x1b04c0(0x1f3)]['toLowerCase'](),_0x23609c[_0x1b04c0(0x1dd)])&&(_0x23609c[_0x1b04c0(0x217)](_0x23609c[_0x1b04c0(0x20a)],_0x23609c['BYJNK'])?_0x2d9006['isPrivateGrid']=!![]:global_registry[_0x1b04c0(0x1aa)]=!![]),_0x7a1151=!![],_0x4c1666=_0x133bef['clusterName'],_0x138d77=_0x133bef['cloudProvider'][_0x1b04c0(0x1f4)](),_0x489b50=_0x133bef[_0x1b04c0(0x181)];}else _0x5a733d[_0x1b04c0(0x247)](_0x1b04c0(0x1b9)+_0x763d50+'\x20');}_0x133bef['gridName']&&(_0x23609c['BLnRx'](_0x23609c[_0x1b04c0(0x1c6)],_0x23609c[_0x1b04c0(0x1c2)])?_0x3fed32=_0x133bef[_0x1b04c0(0x156)]:_0x4f5c02['cloudProvider']={});global_registry['gridName']=_0x3fed32;const _0x2edef1={};_0x2edef1['username']=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x1bd)],_0x2edef1[_0x1b04c0(0x26f)]=_0x2be0d4[_0x1b04c0(0x228)]['password'];const _0x205038={};_0x205038['method']=_0x23609c[_0x1b04c0(0x1dc)],_0x205038[_0x1b04c0(0x162)]=_0x2edef1;const _0x275b28=_0x205038,_0x5b6b39=_0x1b04c0(0x172)+AG_API_URL+'/packages/cli/create-grid-checks',_0x62b62a={};_0x62b62a[_0x1b04c0(0x156)]=_0x3fed32;const _0x132e4b={'url':_0x5b6b39,'qs':_0x62b62a,..._0x275b28},_0x55ab61=_0x132e4b,_0x5c8fc5=await _0x23609c[_0x1b04c0(0x152)](promisifiedRequest,_0x55ab61);if(_0x23609c[_0x1b04c0(0x1bf)](_0x5c8fc5,null)||_0x23609c['RmIIj'](_0x5c8fc5,undefined)){if(_0x23609c['tSUEw'](_0x23609c[_0x1b04c0(0x179)],_0x23609c[_0x1b04c0(0x179)]))_0xcf0089=_0x23609c[_0x1b04c0(0x1cb)],await _0x23609c['vBLMR'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c['ZbfoD'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);else{const _0x31c246={};_0x31c246['type']=_0x5d0377[_0x1b04c0(0x203)],_0x31c246['message']=_0x3cd0dd,_0x20c31c[_0x1b04c0(0x1b6)](_0x4e833e,_0x31c246,_0x23609c[_0x1b04c0(0x1a6)],!![]);}}_0x23609c[_0x1b04c0(0x1a2)](_0x5c8fc5['statusCode'],0x191)&&(_0x23609c[_0x1b04c0(0x218)](_0x23609c[_0x1b04c0(0x191)],_0x23609c['pfjoc'])?(_0xcf0089=_0x23609c[_0x1b04c0(0x254)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x15d)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)):_0x346eb6=_0x23609c[_0x1b04c0(0x16b)]);_0x23609c['sbxfn'](_0x5c8fc5[_0x1b04c0(0x209)],0xc8)&&(_0x23609c[_0x1b04c0(0x1d9)](_0x23609c[_0x1b04c0(0x164)],_0x23609c['TbouZ'])?(_0xcf0089=_0x1b04c0(0x260)+JSON[_0x1b04c0(0x21a)](_0x5c8fc5),await _0x23609c[_0x1b04c0(0x271)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x246)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)):_0x27aaa6=_0x44150f[_0x1b04c0(0x156)]);const _0x37775c=JSON['parse'](_0x5c8fc5[_0x1b04c0(0x1df)]),_0x59fff9={};_0x59fff9[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x169)],_0x59fff9['message']='CLI\x20run\x20started',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x59fff9);const _0x5c14fc={};_0x5c14fc[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x5c14fc[_0x1b04c0(0x26c)]=_0x23609c['LdDsL'],webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x5c14fc);_0x37775c['alreadyPresent']&&(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x188)],_0x23609c[_0x1b04c0(0x188)])?_0x39463d=_0x595e9a[_0xc5000f['gridProfile']]:(_0xcf0089=_0x23609c[_0x1b04c0(0x230)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['zqsmJ'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)));const _0x1294c8=_0x37775c['gridProfiles'];let _0x5cc656=_0x1294c8[_0x37775c[_0x1b04c0(0x1e1)]];_0x133bef['gridProfile']&&(_0x23609c[_0x1b04c0(0x1d3)](_0x23609c['NuKnJ'],_0x23609c[_0x1b04c0(0x18d)])?_0x5ab629['isPrivateGrid']=!![]:_0x5cc656=_0x1294c8[_0x133bef[_0x1b04c0(0x182)]]);if(_0x23609c[_0x1b04c0(0x1ac)](_0x7a1151,![])){if(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x155)],_0x23609c[_0x1b04c0(0x237)])){_0x23609c[_0x1b04c0(0x1d9)](_0x5cc656,undefined)&&(_0x23609c[_0x1b04c0(0x241)](_0x23609c[_0x1b04c0(0x224)],_0x23609c[_0x1b04c0(0x176)])?(_0xcf0089=_0x23609c['qHBkS'],await _0x23609c[_0x1b04c0(0x1d1)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x257)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):_0x5e44b5[_0x1b04c0(0x247)](_0x1b04c0(0x174)+_0xcb2421[_0x1b04c0(0x21a)](_0x215d0f)+'\x20'));global_registry[_0x1b04c0(0x202)]=_0x5cc656['id'];(_0x23609c[_0x1b04c0(0x1bf)](_0x138d77,AZURE)||_0x23609c[_0x1b04c0(0x1d9)](_0x5cc656?.[_0x1b04c0(0x259)],AZURE))&&(_0x23609c[_0x1b04c0(0x193)](_0x23609c['lcNHw'],_0x23609c[_0x1b04c0(0x1a0)])?(_0xb85b4a=_0x3a075f[_0x1b04c0(0x170)],_0x5d0191=_0x23609c['CVrou']):(console[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x205)]),process[_0x1b04c0(0x15b)](0x1)));_0xcf0089=_0x1b04c0(0x234)+_0x3fed32+_0x1b04c0(0x1f2)+_0x5cc656['name']+_0x1b04c0(0x1ea),logger['info'](_0xcf0089);const _0xc6f889={};_0xc6f889[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0xc6f889[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0xc6f889),_0x138d77=_0x5cc656[_0x1b04c0(0x259)],_0x4c1666=_0x5cc656[_0x1b04c0(0x25f)],_0x489b50=_0x5cc656[_0x1b04c0(0x181)],_0x459179=_0x5cc656[_0x1b04c0(0x212)],_0x25ce5a=_0x5cc656[_0x1b04c0(0x25d)],_0x2f847c=_0x5cc656['vpc'],securityGroups=_0x5cc656[_0x1b04c0(0x1c4)],subnets=_0x5cc656[_0x1b04c0(0x21d)],_0x3ee750=_0x5cc656[_0x1b04c0(0x1cd)],_0x501916=_0x5cc656[_0x1b04c0(0x153)],_0x54a841=_0x5cc656[_0x1b04c0(0x265)],_0x58c612=_0x37775c[_0x1b04c0(0x279)],_0x459630=_0x37775c[_0x1b04c0(0x18a)];if(_0x23609c['BLnRx'](_0x5cc656[_0x1b04c0(0x1f3)],undefined)&&_0x5cc656[_0x1b04c0(0x1f3)]){if(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x198)],_0x23609c[_0x1b04c0(0x1a9)]))global_registry[_0x1b04c0(0x1aa)]=!![];else throw _0x509d20;}_0x23609c[_0x1b04c0(0x233)](updateGlobalRegistryWithConfig,_0x138d77,_0x4c1666,_0x489b50,_0x459179,_0x25ce5a,_0x3ee750,_0x5cc656,_0x58c612,_0x459630,_0x501916,_0x54a841);}else _0x3ca4a3[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x205)]),_0xb7df36[_0x1b04c0(0x15b)](0x1);}else{const _0xf62571=_0x23609c[_0x1b04c0(0x1fb)][_0x1b04c0(0x27a)]('|');let _0x3a569b=0x0;while(!![]){switch(_0xf62571[_0x3a569b++]){case'0':global_registry['hubVersion']=_0x37775c['hubVersion'];continue;case'1':global_registry['browserVersion']=_0x37775c[_0x1b04c0(0x18a)];continue;case'2':global_registry[_0x1b04c0(0x259)]=_0x138d77;continue;case'3':const _0x3faae3={};_0x3faae3[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x3faae3[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x3faae3);continue;case'4':_0xcf0089=_0x1b04c0(0x1e5)+_0x3fed32+_0x1b04c0(0x26d)+_0x4c1666+'\x27';continue;case'5':logger[_0x1b04c0(0x247)](_0xcf0089);continue;case'6':global_registry['clusterName']=_0x4c1666;continue;case'7':global_registry[_0x1b04c0(0x177)]=_0x489b50;continue;case'8':const _0x44f87a={};_0x44f87a[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x169)],_0x44f87a['message']='CLI\x20run\x20started',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x44f87a);continue;}break;}}const _0x3590fa=_0x23609c[_0x1b04c0(0x16f)](getCloudProviderObject,_0x138d77,_0x4c1666,_0x3fed32,_0x89fe0f,webSocketUtils),_0x11d64b=_0x2be0d4[_0x1b04c0(0x259)]||{};if(_0x23609c['lTDiQ'](_0x11d64b[_0x138d77],undefined)){logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x1e3)]);_0x23609c[_0x1b04c0(0x1ff)](_0x2be0d4[_0x1b04c0(0x259)],undefined)&&(_0x2be0d4['cloudProvider']={});_0x2be0d4[_0x1b04c0(0x259)][_0x138d77]={};const _0xcf9820=await _0x23609c[_0x1b04c0(0x19a)](inputCloudProviderKeys,_0x138d77,_0x2be0d4,_0x3590fa);fs[_0x1b04c0(0x204)](_0x23609c[_0x1b04c0(0x24b)](getCredentialsPath),JSON[_0x1b04c0(0x21a)](_0xcf9820)),logger[_0x1b04c0(0x157)](_0x23609c[_0x1b04c0(0x1d5)]);}else{_0xcf0089=_0x23609c[_0x1b04c0(0x225)];const _0x2a8111={};_0x2a8111['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x2a8111[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x2a8111),logger[_0x1b04c0(0x247)](_0xcf0089),await _0x3590fa['fetchLocalCreds'](_0x11d64b);}_0x3590fa[_0x1b04c0(0x187)]();let _0xfa9ef5;if(_0x23609c[_0x1b04c0(0x217)](_0x7a1151,![])){_0xcf0089=_0x1b04c0(0x1ee)+_0x489b50+').';const _0x241d82={};_0x241d82[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x241d82[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x241d82),logger[_0x1b04c0(0x247)](_0xcf0089);const _0xb75f1b=await _0x3590fa[_0x1b04c0(0x21e)]();if(_0xb75f1b){const _0x4d654f={};_0x4d654f[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x4d654f[_0x1b04c0(0x26c)]=_0x1b04c0(0x24e)+_0x4c1666+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x4d654f,_0x23609c[_0x1b04c0(0x21b)]),logger[_0x1b04c0(0x247)](_0x1b04c0(0x24e)+_0x4c1666+_0x1b04c0(0x263)),_0x7a1151=!![];}else{const _0x367dc4={};_0x367dc4[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x367dc4['message']=_0x23609c['azENH'],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x367dc4),logger[_0x1b04c0(0x247)](_0x23609c['azENH']);const _0x56581f=_0x23609c[_0x1b04c0(0x1b7)](_0x2f847c,null)&&_0x23609c[_0x1b04c0(0x1af)](_0x2f847c,undefined),_0x46bbd3=_0x23609c[_0x1b04c0(0x1b7)](subnets,null)&&_0x23609c['sbxfn'](subnets,undefined)&&_0x23609c[_0x1b04c0(0x1ab)](subnets[_0x1b04c0(0x1b1)],0x0);if(_0x56581f){_0x23609c[_0x1b04c0(0x273)](_0x46bbd3,![])&&(_0xcf0089=_0x23609c[_0x1b04c0(0x269)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['xTdtK'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));const _0x14027e=await _0x3590fa[_0x1b04c0(0x17f)](_0x2f847c);_0x23609c['vfwYf'](_0x14027e,![])?(_0xcf0089=_0x23609c[_0x1b04c0(0x1fd)],await _0x23609c[_0x1b04c0(0x271)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x275)],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):logger[_0x1b04c0(0x247)]('Found\x20VPC:\x20'+_0x2f847c+'\x20');const _0x259ef9=await _0x3590fa['isSubnetsValid'](subnets,_0x2f847c);_0x23609c[_0x1b04c0(0x232)](_0x259ef9[0x0],![])?(_0xcf0089=_0x1b04c0(0x1b4)+_0x259ef9[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2f847c+_0x1b04c0(0x180),await _0x23609c['WYcCw'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x1f8)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):logger[_0x1b04c0(0x247)](_0x1b04c0(0x174)+JSON[_0x1b04c0(0x21a)](subnets)+'\x20'),await _0x3590fa[_0x1b04c0(0x1ad)](_0x2f847c,subnets);}else{const _0x3e44b3=_0x23609c[_0x1b04c0(0x1e2)][_0x1b04c0(0x27a)]('|');let _0x3defcb=0x0;while(!![]){switch(_0x3e44b3[_0x3defcb++]){case'0':const _0x37c943={};_0x37c943[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x37c943[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x199)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x37c943);continue;case'1':const _0x2c98e8={};_0x2c98e8[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x2c98e8[_0x1b04c0(0x26c)]=_0x1b04c0(0x231),webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x2c98e8);continue;case'2':logger['info'](_0x23609c[_0x1b04c0(0x19c)]);continue;case'3':logger['info'](_0x23609c[_0x1b04c0(0x199)]);continue;case'4':await _0x3590fa[_0x1b04c0(0x1ad)]();continue;}break;}}}}_0x7a1151&&_0x23609c[_0x1b04c0(0x251)](_0x138d77,AZURE)&&(global_registry[_0x1b04c0(0x258)]=_0x37775c[_0x1b04c0(0x22e)],await _0x3590fa[_0x1b04c0(0x252)](),await _0x3590fa[_0x1b04c0(0x1a3)]());const [_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xa4a0f8,_0x36c623]=await _0x23609c[_0x1b04c0(0x152)](createK8sClient,_0x3590fa);_0x23609c[_0x1b04c0(0x217)](_0x7a1151,![])&&_0x23609c[_0x1b04c0(0x245)](_0x138d77,AWS)&&(_0xfa9ef5=await _0x3590fa[_0x1b04c0(0x1f5)](_0x89eaf8,_0x133bef));try{_0xde8b46=_0x23609c[_0x1b04c0(0x168)](kebabCase,_0x3fed32),logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x1d4)]);const _0x1ab002={};_0x1ab002['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x1ab002[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x1d4)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x1ab002);if(_0x23609c[_0x1b04c0(0x1cf)](_0xde8b46,_0x23609c[_0x1b04c0(0x276)])){const _0x83d937={};_0x83d937[_0x1b04c0(0x17b)]=_0x23609c[_0x1b04c0(0x150)],_0x83d937[_0x1b04c0(0x216)]=_0x23609c[_0x1b04c0(0x150)];const _0x4ca5b9={};_0x4ca5b9[_0x1b04c0(0x192)]=_0xde8b46,_0x4ca5b9[_0x1b04c0(0x197)]=_0x83d937;const _0x5d7641={};_0x5d7641[_0x1b04c0(0x23f)]=_0x4ca5b9;let _0x39fb83=_0x5d7641;await _0x89eaf8['createNamespace'](_0x39fb83),logger[_0x1b04c0(0x247)](_0x23609c['tVZlY']);}const _0x15c561={};_0x15c561[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x15c561[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x22b)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x15c561);const _0x73812b={};_0x73812b[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x73812b[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x1fc)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x73812b),logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x24a)]);let _0x332b2f={};_0x23609c['csclZ'](_0x138d77,AZURE)&&(_0x332b2f={'clientId':await _0x3590fa[_0x1b04c0(0x18e)](_0x1b04c0(0x24c)+_0x4c1666)});await _0x23609c['GlhHU'](addGridComponents,_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xde8b46,_0x4c1666,_0xfa9ef5,_0xa4a0f8,_0x36c623,_0x332b2f),_0xcf0089=_0x23609c[_0x1b04c0(0x16e)],logger[_0x1b04c0(0x247)](_0xcf0089);const _0x222c48={};_0x222c48['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x222c48[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x222c48),_0xcf0089=_0x23609c[_0x1b04c0(0x1b2)],logger[_0x1b04c0(0x247)](_0xcf0089);const _0x180a22={};_0x180a22['type']=WS_EVENTS['LOG'],_0x180a22['message']=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x180a22),await webSocketUtils['delay'](0xea60);const _0x3cb517=await _0x23609c['ojLjL'](getNamespaceUID,_0x89eaf8,_0xde8b46);let _0x5165fd=global_registry[_0x1b04c0(0x1aa)]?_0x23609c[_0x1b04c0(0x1fa)]:_0x23609c['RoOlh'],_0x5185ce=await _0x89eaf8[_0x1b04c0(0x229)](_0x5165fd,_0x23609c[_0x1b04c0(0x26a)]),_0x27b40e=_0x3590fa[_0x1b04c0(0x220)](_0x5185ce)+'/'+_0xde8b46,_0xbae292=_0x23609c[_0x1b04c0(0x16b)];try{const _0x5915b8={'url':'https://'+AG_API_URL+_0x1b04c0(0x1d7)+_0x3cb517,..._0x275b28},_0x56404a=_0x5915b8,_0x220fe5=await _0x23609c['emlYz'](promisifiedRequest,_0x56404a);(_0x23609c[_0x1b04c0(0x245)](_0x220fe5,null)||_0x23609c[_0x1b04c0(0x245)](_0x220fe5,undefined))&&(_0xcf0089=_0x23609c[_0x1b04c0(0x22c)],await _0x23609c[_0x1b04c0(0x1d2)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['ewOKI'],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));_0x23609c[_0x1b04c0(0x251)](_0x220fe5['statusCode'],0x191)&&(_0xcf0089=_0x23609c['dWVcC'],await _0x23609c[_0x1b04c0(0x268)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x1d0)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1));_0x23609c['SEzec'](_0x220fe5[_0x1b04c0(0x209)],0xc8)&&(_0xcf0089='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1b04c0(0x21a)](_0x220fe5),await _0x23609c[_0x1b04c0(0x1ce)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x19f)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));const _0x47accc=JSON[_0x1b04c0(0x23b)](_0x220fe5[_0x1b04c0(0x1df)]);_0x47accc[_0x1b04c0(0x170)]&&(_0x27b40e=_0x47accc[_0x1b04c0(0x170)],_0xbae292=_0x23609c['CVrou']),global_registry[_0x1b04c0(0x1aa)]&&(_0xbae292=_0x23609c['qRlkg']);}catch(_0x2972ae){}_0xcf0089='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x27b40e+'\x20',logger[_0x1b04c0(0x247)](_0xcf0089);const _0x2c2b13={};_0x2c2b13[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x2c2b13[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x2c2b13),_0xcf0089='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0xbae292+_0x1b04c0(0x226)+_0x27b40e+'/wd/hub',logger[_0x1b04c0(0x247)](_0xcf0089);const _0xff536b={};_0xff536b[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0xff536b[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0xff536b);const _0x41dffa={};_0x41dffa[_0x1b04c0(0x14e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x41dffa['message']='CLI\x20run\x20finished:\x20'+_0x27b40e,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x41dffa),await webSocketUtils[_0x1b04c0(0x1f1)](0x7d0);}catch(_0xeca5e6){if(_0x23609c[_0x1b04c0(0x19b)](_0x7a1151,![]))try{logger[_0x1b04c0(0x247)](_0x1b04c0(0x25b)),await _0x23609c['uRWxJ'](removeGridComponents,_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xde8b46),await _0x3590fa[_0x1b04c0(0x18f)](_0x89eaf8,global_registry[_0x1b04c0(0x177)]);}catch(_0x4f219a){throw _0x4f219a;}throw _0xeca5e6;}}catch(_0x5b9740){const _0x12acba='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x5b9740+'\x20\x0a'+JSON[_0x1b04c0(0x21a)](_0x5b9740)+'\x20';if(_0x89fe0f){const _0x5e2eb8={};_0x5e2eb8[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x5e2eb8[_0x1b04c0(0x26c)]=_0x12acba,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x5e2eb8,_0x23609c[_0x1b04c0(0x1a6)],!![]);}await webSocketUtils[_0x1b04c0(0x1f1)](0x7d0);const _0x3152ae={};_0x3152ae[_0x1b04c0(0x239)]=_0x12acba,await _0x23609c['Rnflw'](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x253)],_0x3152ae,_0x133bef),logger['error'](_0x12acba);}process[_0x1b04c0(0x15b)](0x0);};
@@ -1 +1 @@
1
- function a11_0x1a0b(_0x4dcf77,_0x326661){const _0x1729a7=a11_0x1729();return a11_0x1a0b=function(_0x1a0bde,_0x10cb18){_0x1a0bde=_0x1a0bde-0xde;let _0x5c0a5a=_0x1729a7[_0x1a0bde];return _0x5c0a5a;},a11_0x1a0b(_0x4dcf77,_0x326661);}function a11_0x1729(){const _0x70d228=['33716mxhWKb','8377011ZKaGhs','delete','builder','List\x20Grid\x20resources.','command','commandDir','recommendCommands','410jHIVna','desc','238602qxoTXC','../config/constants','MAdHO','2072712qeXGqe','150cOMWDc','vaBNB','4BPcguh','10172420EcXlCD','1678608wnKxUL','demandCommand','466462CyswdG','help'];a11_0x1729=function(){return _0x70d228;};return a11_0x1729();}const a11_0xd7d601=a11_0x1a0b;(function(_0x402cc3,_0x461aea){const _0x357978=a11_0x1a0b,_0x1c7b1a=_0x402cc3();while(!![]){try{const _0x19f5b4=parseInt(_0x357978(0xef))/0x1*(parseInt(_0x357978(0xf3))/0x2)+-parseInt(_0x357978(0xec))/0x3+-parseInt(_0x357978(0xdf))/0x4*(parseInt(_0x357978(0xe7))/0x5)+parseInt(_0x357978(0xed))/0x6*(parseInt(_0x357978(0xe9))/0x7)+parseInt(_0x357978(0xf1))/0x8+-parseInt(_0x357978(0xe0))/0x9+parseInt(_0x357978(0xf0))/0xa;if(_0x19f5b4===_0x461aea)break;else _0x1c7b1a['push'](_0x1c7b1a['shift']());}catch(_0x522866){_0x1c7b1a['push'](_0x1c7b1a['shift']());}}}(a11_0x1729,0xaab91));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0xd7d601(0xea));exports[a11_0xd7d601(0xe4)]=a11_0xd7d601(0xe1),exports[a11_0xd7d601(0xe8)]=a11_0xd7d601(0xe3),exports[a11_0xd7d601(0xe2)]=function(_0x27bf31){const _0x4f1fb6=a11_0xd7d601,_0xa4ae7d={};_0xa4ae7d[_0x4f1fb6(0xeb)]='delete_commands',_0xa4ae7d['vaBNB']=_0x4f1fb6(0xde);const _0x47c2d2=_0xa4ae7d;return _0x27bf31['usage'](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4f1fb6(0xe5)](_0x47c2d2[_0x4f1fb6(0xeb)])[_0x4f1fb6(0xf2)]()[_0x4f1fb6(0xe6)]()['strict']()[_0x4f1fb6(0xde)](_0x47c2d2[_0x4f1fb6(0xee)]);},exports['handler']=function(_0x14a6cd){};
1
+ const a11_0x26f567=a11_0x55ee;(function(_0x59e63a,_0x1bf1bd){const _0x577c85=a11_0x55ee,_0x18f819=_0x59e63a();while(!![]){try{const _0x4729c4=-parseInt(_0x577c85(0x109))/0x1*(-parseInt(_0x577c85(0x102))/0x2)+parseInt(_0x577c85(0x104))/0x3+parseInt(_0x577c85(0x103))/0x4*(parseInt(_0x577c85(0xff))/0x5)+-parseInt(_0x577c85(0x100))/0x6+parseInt(_0x577c85(0x10f))/0x7+-parseInt(_0x577c85(0x10b))/0x8+-parseInt(_0x577c85(0x10d))/0x9;if(_0x4729c4===_0x1bf1bd)break;else _0x18f819['push'](_0x18f819['shift']());}catch(_0x17ad72){_0x18f819['push'](_0x18f819['shift']());}}}(a11_0x41b5,0x39bdc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='delete',exports[a11_0x26f567(0x10a)]=a11_0x26f567(0x10e),exports[a11_0x26f567(0x110)]=function(_0x265347){const _0x3c959a=a11_0x26f567,_0x1eacd8={};_0x1eacd8[_0x3c959a(0x106)]=_0x3c959a(0x108),_0x1eacd8['wVGwN']=_0x3c959a(0xfe);const _0x4c395b=_0x1eacd8;return _0x265347['usage'](HELP_HEADER_MESSAGE['delete'])[_0x3c959a(0x101)](HELP_FOOTER_MESSAGE)[_0x3c959a(0x105)](_0x4c395b[_0x3c959a(0x106)])['demandCommand']()[_0x3c959a(0xfd)]()['strict']()[_0x3c959a(0xfe)](_0x4c395b[_0x3c959a(0x107)]);},exports[a11_0x26f567(0x10c)]=function(_0x2e73af){};function a11_0x55ee(_0x3c4505,_0x3e6da3){const _0x41b536=a11_0x41b5();return a11_0x55ee=function(_0x55ee2f,_0x5c70f8){_0x55ee2f=_0x55ee2f-0xfd;let _0xd45b3a=_0x41b536[_0x55ee2f];return _0xd45b3a;},a11_0x55ee(_0x3c4505,_0x3e6da3);}function a11_0x41b5(){const _0x5e8655=['epilogue','14108ZLOZRQ','4fYrUMy','1385919lVNCZk','commandDir','yrxYa','wVGwN','delete_commands','61ISiOwl','desc','3772600CMAlog','handler','6004593OSMTFM','List\x20Grid\x20resources.','2584022ztyXNA','builder','recommendCommands','help','888335QjoqsV','382920gFOOlR'];a11_0x41b5=function(){return _0x5e8655;};return a11_0x41b5();}
@@ -1 +1 @@
1
- function a12_0x47f7(){const _0x328592=['stack','bMHGm','kZULv','dTJyu','FOslJ','epilogue','1474xxOHqq','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Cluster:\x20','GlcKc','SrKCe','JtbXM','server-error','737463IyHMuX','help','FEdbG','message','wShIG','685325FhnNWL','WsPdq','TeLDR','init-not-called','zNGtj','debug','2473566YDKkcZ','mXzMy','parse','FuEIE','../../config/constants','QIdiT','configureIfNotConfigured','Succesfully\x20deleted\x20the\x20grid','fSKpf','Browserstack','uuid','usage','FPSxm','XcIDl','existsSync','info','argv','pLBQq','9EfRlDv','TUaPy','method','8503550dJlrIW','gryTb','exit','../../config/logger','puxxi','desc','cyJCp','wBYNu','stringify','description','cloudProvider','\x22\x20with\x20ID\x20','205AvRXRb','https://','clusterName','YXOTi','password','Fohox','QoIjI','type','Failed\x20to\x20delete\x20resources!\x20Error:\x20','promisify','lBLNG','viVUB','pRqCt','Pass\x20the\x20ID\x20of\x20the\x20Grid','grid-id','delete-grid-called','INFO','UiCPa','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','uoigw','command','../../utils/gridComponents','YCFdc','lMrFL','../../utils/userInput','isBrowserstackCluster','eIZSg','isWLY','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','ERPZZ','name','wRISk','../../cloudproviders/utils','statusCode','UNUEm','warn','WrAmp','error','StDOu','region','vkMQr','request','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','fetchLocalCreds','LGJXE','handler','gridId','\x22\x20and\x20ID\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Eruvo','username','Delete\x20an\x20Automation\x20grid.','11bjQfmQ','delete','KMAUk','MDKpf','586432DzzmDF','ERROR','xoqDc','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','AHJBo','JTzcd','jiXDJ','unauthorised','deleteCluster','1680776dQFWCM','VgJkC','aahGT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','onlyGridInCluster','8BRKPgg','zRXIA','SGhFX','BOUeV','toLowerCase','DELETE','grid','/packages/cli/grid/','clusterId','flDyh'];a12_0x47f7=function(){return _0x328592;};return a12_0x47f7();}const a12_0x850af5=a12_0x5c43;function a12_0x5c43(_0x3cd9a6,_0x1740f1){const _0x47f77f=a12_0x47f7();return a12_0x5c43=function(_0x5c4324,_0x569777){_0x5c4324=_0x5c4324-0xdf;let _0xe25f41=_0x47f77f[_0x5c4324];return _0xe25f41;},a12_0x5c43(_0x3cd9a6,_0x1740f1);}(function(_0x7ce0ce,_0x134bbd){const _0x5deb03=a12_0x5c43,_0xe41a23=_0x7ce0ce();while(!![]){try{const _0x492f94=parseInt(_0x5deb03(0x140))/0x1*(parseInt(_0x5deb03(0x10d))/0x2)+-parseInt(_0x5deb03(0x114))/0x3*(parseInt(_0x5deb03(0xfd))/0x4)+-parseInt(_0x5deb03(0x119))/0x5+-parseInt(_0x5deb03(0x11f))/0x6+parseInt(_0x5deb03(0xef))/0x7+-parseInt(_0x5deb03(0xf8))/0x8*(-parseInt(_0x5deb03(0x131))/0x9)+-parseInt(_0x5deb03(0x134))/0xa*(-parseInt(_0x5deb03(0xeb))/0xb);if(_0x492f94===_0x134bbd)break;else _0xe41a23['push'](_0xe41a23['shift']());}catch(_0x688838){_0xe41a23['push'](_0xe41a23['shift']());}}}(a12_0x47f7,0x3e189));const fs=require('fs'),util=require('util'),request=require(a12_0x850af5(0xe0)),{v4:uuidv4}=require(a12_0x850af5(0x129)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x850af5(0x123)),{logger}=require(a12_0x850af5(0x137)),{getCloudProviderObject}=require(a12_0x850af5(0x161)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x850af5(0x155)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x850af5(0x158)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util[a12_0x850af5(0x149)](request);exports[a12_0x850af5(0x154)]=a12_0x850af5(0x103),exports[a12_0x850af5(0x139)]=a12_0x850af5(0xea),exports['builder']=function(_0x3496a6){const _0x36625e=a12_0x850af5,_0x5bfed2={};_0x5bfed2[_0x36625e(0x163)]=_0x36625e(0x14d),_0x5bfed2[_0x36625e(0xed)]='string',_0x5bfed2[_0x36625e(0x108)]=_0x36625e(0x115);const _0x229995=_0x5bfed2,_0x531f36={};_0x531f36[_0x36625e(0x13d)]=_0x229995[_0x36625e(0x163)],_0x531f36[_0x36625e(0x147)]=_0x229995[_0x36625e(0xed)];const _0x2590dc={};return _0x2590dc[_0x36625e(0x14e)]=_0x531f36,_0x3496a6[_0x36625e(0x12a)](HELP_HEADER_MESSAGE[_0x36625e(0xec)])[_0x36625e(0x10c)](HELP_FOOTER_MESSAGE)['options'](_0x2590dc)[_0x36625e(0x115)](_0x229995['bMHGm'])[_0x36625e(0x12f)];},exports[a12_0x850af5(0xe4)]=async function(_0x4d1107){const _0x2a787d=a12_0x850af5,_0xfd00b1={'xoqDc':_0x2a787d(0x14d),'WsPdq':'string','oBpmJ':_0x2a787d(0x115),'dhZPb':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Eruvo':function(_0x28020d){return _0x28020d();},'SrKCe':function(_0x2b9b18){return _0x2b9b18();},'aahGT':function(_0x5af638,_0x2b6784){return _0x5af638!==_0x2b6784;},'vkMQr':'GFEvI','YXOTi':_0x2a787d(0x132),'gryTb':_0x2a787d(0xe7),'FPSxm':function(_0xd3c5cb,_0x3b9d7a,_0x283801,_0x35e29f,_0x481c7d,_0x48bd0d,_0x21c93c){return _0xd3c5cb(_0x3b9d7a,_0x283801,_0x35e29f,_0x481c7d,_0x48bd0d,_0x21c93c);},'eIZSg':_0x2a787d(0x14f),'FOslJ':_0x2a787d(0x11c),'pRqCt':function(_0x46849f,_0x368b00,_0x364fc5,_0x287f23,_0x11f7fb,_0x54a2ec,_0x53245a){return _0x46849f(_0x368b00,_0x364fc5,_0x287f23,_0x11f7fb,_0x54a2ec,_0x53245a);},'babzS':_0x2a787d(0xfe),'uoigw':_0x2a787d(0x145),'BOUeV':function(_0x4a17f8,_0x66162f,_0x4ba415,_0x1a8dd9){return _0x4a17f8(_0x66162f,_0x4ba415,_0x1a8dd9);},'FEdbG':function(_0xea9f23,_0xa7a1b7){return _0xea9f23===_0xa7a1b7;},'zNGtj':_0x2a787d(0x128),'kZULv':'RxNZL','pLBQq':_0x2a787d(0x15e),'WrAmp':function(_0x40591c,_0x1a21be){return _0x40591c(_0x1a21be);},'FuEIE':function(_0x57aee6,_0x53ba8d){return _0x57aee6===_0x53ba8d;},'LGJXE':function(_0x443327,_0x4e2a98){return _0x443327!==_0x4e2a98;},'xyMke':_0x2a787d(0x120),'SrvXg':_0x2a787d(0xf4),'lMrFL':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','wShIG':'invalid-input','GlcKc':function(_0x3c1486,_0x20e307){return _0x3c1486===_0x20e307;},'XcIDl':_0x2a787d(0x13b),'MDKpf':_0x2a787d(0x160),'isWLY':function(_0x5aba68,_0x1a660f,_0x1853b6,_0x5ec62d){return _0x5aba68(_0x1a660f,_0x1853b6,_0x5ec62d);},'puxxi':function(_0x31f40c,_0x1dab9d){return _0x31f40c===_0x1dab9d;},'SGhFX':'DZwsY','flDyh':'FkNdk','cyJCp':_0x2a787d(0x15d),'AHJBo':'yMVOp','jiXDJ':'xVYNA','fSKpf':function(_0x3fb2da,_0x1b7c91,_0x3bb2bc,_0x201947){return _0x3fb2da(_0x1b7c91,_0x3bb2bc,_0x201947);},'viVUB':function(_0x46483a){return _0x46483a();},'QXklD':_0x2a787d(0x15c),'cANCm':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','dTJyu':function(_0x1eeb21,_0xdb59ed,_0x1a182d,_0x52bd99,_0x4958cd,_0x2f8ad0){return _0x1eeb21(_0xdb59ed,_0x1a182d,_0x52bd99,_0x4958cd,_0x2f8ad0);},'StDOu':_0x2a787d(0x102),'TeLDR':function(_0x68d30a,_0x496108){return _0x68d30a(_0x496108);},'UiCPa':function(_0x3e1566,_0x17e683){return _0x3e1566!==_0x17e683;},'QIdiT':function(_0x1f612d,_0xfdccd6,_0x3a63dd,_0x13812a,_0x4360d3,_0x562999,_0x591073){return _0x1f612d(_0xfdccd6,_0x3a63dd,_0x13812a,_0x4360d3,_0x562999,_0x591073);},'QoIjI':_0x2a787d(0x113),'JtbXM':function(_0xef921d,_0x430824,_0x1e6747,_0x510db5,_0x46fdca,_0x5030a9,_0x21de44){return _0xef921d(_0x430824,_0x1e6747,_0x510db5,_0x46fdca,_0x5030a9,_0x21de44);},'YCFdc':_0x2a787d(0xf6),'CTJPe':'invalid-grid-id','lBLNG':function(_0xc55582,_0x1aeb00,_0xf6aa36,_0x595fcf,_0x6fbca0,_0x5145f7,_0x4e1993){return _0xc55582(_0x1aeb00,_0xf6aa36,_0x595fcf,_0x6fbca0,_0x5145f7,_0x4e1993);},'NcjDI':function(_0x1ab381,_0xfc5ea1,_0x56bb07,_0xd30810,_0x51d973,_0x4087e9,_0x1a8a90){return _0x1ab381(_0xfc5ea1,_0x56bb07,_0xd30810,_0x51d973,_0x4087e9,_0x1a8a90);},'VgJkC':'unknown-error'};try{global_registry['requestId']=_0xfd00b1[_0x2a787d(0xe8)](uuidv4);!fs[_0x2a787d(0x12d)](_0xfd00b1[_0x2a787d(0x111)](getCredentialsPath))&&(_0xfd00b1[_0x2a787d(0xfa)](_0xfd00b1[_0x2a787d(0xdf)],_0xfd00b1[_0x2a787d(0x143)])?(console[_0x2a787d(0x166)](_0xfd00b1[_0x2a787d(0x135)]),await _0xfd00b1[_0x2a787d(0x12b)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1['eIZSg'],messageTypes['ERROR'],_0xfd00b1[_0x2a787d(0x10b)],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)):_0x2f1589[_0x2a787d(0x136)](0x0));_0xfd00b1[_0x2a787d(0x14c)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0x150)],null,null,_0x4d1107);!_0x4d1107[_0x2a787d(0xe5)]&&(_0xfd00b1['aahGT'](_0xfd00b1['babzS'],_0xfd00b1[_0x2a787d(0x153)])?(console['error'](_0xfd00b1['dhZPb']),process[_0x2a787d(0x136)](0x1)):_0xce270f[_0x2a787d(0x13e)]={});const _0x4ec1ca=JSON[_0x2a787d(0x121)](fs['readFileSync'](_0xfd00b1[_0x2a787d(0x111)](getCredentialsPath))),[_0x1cf593,_0x3f1e96]=await _0xfd00b1[_0x2a787d(0x100)](getGridDetails,_0x4ec1ca[_0x2a787d(0x128)][_0x2a787d(0xe9)],_0x4ec1ca[_0x2a787d(0x128)][_0x2a787d(0x144)],_0x4d1107[_0x2a787d(0xe5)]);if(_0x3f1e96){const _0xa6a83b=_0x3f1e96[_0x2a787d(0x12e)];let _0x4355be=_0x2a787d(0x10e)+_0xa6a83b[_0x2a787d(0x15f)]+_0x2a787d(0xe6)+_0xa6a83b['id']+_0x2a787d(0x152),_0x11d702;if(_0x3f1e96['onlyGridInCluster']&&_0xfd00b1['FEdbG'](_0x3f1e96['clusterSpawnedVia'],_0xfd00b1[_0x2a787d(0x11d)])){if(_0xfd00b1['FEdbG'](_0xfd00b1[_0x2a787d(0x109)],_0xfd00b1[_0x2a787d(0x130)])){const _0x16e01b={};_0x16e01b[_0x2a787d(0x13d)]=_0xfd00b1[_0x2a787d(0xf1)],_0x16e01b[_0x2a787d(0x147)]=_0xfd00b1[_0x2a787d(0x11a)];const _0x40d910={};return _0x40d910[_0x2a787d(0x14e)]=_0x16e01b,_0x3b1d67[_0x2a787d(0x12a)](_0x1979db[_0x2a787d(0xec)])[_0x2a787d(0x10c)](_0x5820d1)['options'](_0x40d910)['help'](_0xfd00b1['oBpmJ'])[_0x2a787d(0x12f)];}else _0x4355be=_0x2a787d(0x10e)+_0xa6a83b[_0x2a787d(0x15f)]+_0x2a787d(0xe6)+_0xa6a83b['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xa6a83b[_0x2a787d(0x142)]+_0x2a787d(0x13f)+_0xa6a83b['clusterId']+_0x2a787d(0x152);}_0x11d702=await _0xfd00b1[_0x2a787d(0x165)](inputConfirmation,_0x4355be);(_0xfd00b1[_0x2a787d(0x116)](_0x11d702,undefined)||_0xfd00b1['FEdbG'](_0x11d702,null)||!(_0xfd00b1['FEdbG'](_0x11d702['toLowerCase'](),'y')||_0xfd00b1[_0x2a787d(0x122)](_0x11d702[_0x2a787d(0x101)](),'n')))&&(_0xfd00b1[_0x2a787d(0xe3)](_0xfd00b1['xyMke'],_0xfd00b1['SrvXg'])?(console[_0x2a787d(0x166)](_0xfd00b1[_0x2a787d(0x157)]),await _0xfd00b1[_0x2a787d(0x14c)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes['ERROR'],_0xfd00b1[_0x2a787d(0x118)],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)):(_0x427803[_0x2a787d(0x12e)](_0x2a787d(0x126)),_0x5be189[_0x2a787d(0x136)](0x0)));_0xfd00b1[_0x2a787d(0x116)](_0x11d702[_0x2a787d(0x101)](),'n')&&(_0xfd00b1[_0x2a787d(0x110)](_0xfd00b1[_0x2a787d(0x12c)],_0xfd00b1[_0x2a787d(0xee)])?_0x538705['warn'](_0x2a787d(0x10f)+_0x63acbd[_0x2a787d(0x142)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):process[_0x2a787d(0x136)](0x0));global_registry['clusterRegion']=_0xa6a83b[_0x2a787d(0x168)];const _0x27ae28=_0xa6a83b['cloudProvider'],_0xd6f483=_0xfd00b1[_0x2a787d(0x15b)](getCloudProviderObject,_0x27ae28,_0xa6a83b[_0x2a787d(0x142)],_0xa6a83b['name']),_0xba9c61=_0x4ec1ca['cloudProvider'];if(_0xfd00b1[_0x2a787d(0x138)](_0xba9c61[_0x27ae28],undefined)){if(_0xfd00b1[_0x2a787d(0x122)](_0xfd00b1[_0x2a787d(0xff)],_0xfd00b1[_0x2a787d(0x106)]))_0x4413ce=_0x2a787d(0x10e)+_0x43255e[_0x2a787d(0x15f)]+'\x22\x20and\x20ID\x20'+_0xa467db['id']+_0x2a787d(0xf2)+_0xfc2b86['clusterName']+_0x2a787d(0x13f)+_0x3a0149[_0x2a787d(0x105)]+_0x2a787d(0x152);else{logger[_0x2a787d(0x12e)](_0xfd00b1[_0x2a787d(0x13a)]);_0xfd00b1[_0x2a787d(0x122)](_0x4ec1ca[_0x2a787d(0x13e)],undefined)&&(_0xfd00b1['puxxi'](_0xfd00b1[_0x2a787d(0xf3)],_0xfd00b1[_0x2a787d(0xf5)])?(_0x5b17a3[_0x2a787d(0x166)](_0xfd00b1['dhZPb']),_0x35beb2[_0x2a787d(0x136)](0x1)):_0x4ec1ca[_0x2a787d(0x13e)]={});_0x4ec1ca[_0x2a787d(0x13e)][_0x27ae28]={};const _0x3ed94c=await _0xfd00b1[_0x2a787d(0x127)](inputCloudProviderKeys,_0x27ae28,_0x4ec1ca,_0xd6f483);fs['writeFileSync'](_0xfd00b1[_0x2a787d(0x14b)](getCredentialsPath),JSON[_0x2a787d(0x13c)](_0x3ed94c)),logger[_0x2a787d(0x11e)](_0xfd00b1['QXklD']);}}else logger['info'](_0xfd00b1['cANCm']),await _0xd6f483[_0x2a787d(0xe2)](_0xba9c61);_0xd6f483[_0x2a787d(0x125)]();const _0x272418=_0xfd00b1['WrAmp'](kebabCase,_0xa6a83b[_0x2a787d(0x15f)]),[_0x7d34e,_0x209d4d,_0x1ac5e4,_0x37ff61,_0x5a3d7a,_0x464b45]=await _0xfd00b1['WrAmp'](createK8sClient,_0xd6f483);await _0xfd00b1[_0x2a787d(0x10a)](removeGridComponents,_0x7d34e,_0x209d4d,_0x1ac5e4,_0x37ff61,_0x272418);if(_0x3f1e96[_0x2a787d(0xfc)]){const _0x509938=await _0xd6f483[_0x2a787d(0x159)]();_0x509938?await _0xd6f483[_0x2a787d(0xf7)](_0x7d34e,_0xa6a83b[_0x2a787d(0x168)]):logger[_0x2a787d(0x164)]('Cluster:\x20'+_0xa6a83b[_0x2a787d(0x142)]+_0x2a787d(0xe1));}const _0x459fd4=_0x2a787d(0x141)+AG_API_URL+_0x2a787d(0x104)+_0x4d1107[_0x2a787d(0xe5)],_0xbfe28b={};_0xbfe28b[_0x2a787d(0xe9)]=_0x4ec1ca['Browserstack'][_0x2a787d(0xe9)],_0xbfe28b[_0x2a787d(0x144)]=_0x4ec1ca[_0x2a787d(0x128)][_0x2a787d(0x144)];const _0x26652f={};_0x26652f['url']=_0x459fd4,_0x26652f[_0x2a787d(0x133)]=_0xfd00b1[_0x2a787d(0x167)],_0x26652f['auth']=_0xbfe28b;const _0x3d60bd=_0x26652f,_0x330496=await _0xfd00b1[_0x2a787d(0x11b)](promisifiedRequest,_0x3d60bd);_0xfd00b1[_0x2a787d(0xfa)](_0x330496,null)&&_0xfd00b1[_0x2a787d(0x151)](_0x330496,undefined)&&_0xfd00b1[_0x2a787d(0x138)](_0x330496[_0x2a787d(0x162)],0xc8)&&(logger[_0x2a787d(0x12e)](_0x2a787d(0x126)),process[_0x2a787d(0x136)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x2a787d(0x13c)](_0x330496)),await _0xfd00b1[_0x2a787d(0x124)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1['eIZSg'],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0x146)],_0x1cf593,_0x4d1107),process[_0x2a787d(0x136)](0x1);}_0xfd00b1[_0x2a787d(0x138)](_0x1cf593['statusCode'],0x191)&&(logger[_0x2a787d(0x166)](_0x2a787d(0xfb)),await _0xfd00b1[_0x2a787d(0x112)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0x156)],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)),_0xfd00b1[_0x2a787d(0x116)](_0x1cf593[_0x2a787d(0x162)],0x190)&&(logger['error'](JSON['parse'](_0x1cf593['body'])[_0x2a787d(0x117)]),await _0xfd00b1['QIdiT'](sendInstrumentationEvent,_0x4d1107,_0xfd00b1['eIZSg'],messageTypes[_0x2a787d(0xf0)],_0xfd00b1['CTJPe'],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)),logger[_0x2a787d(0x166)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2a787d(0x13c)](_0x1cf593)),await _0xfd00b1[_0x2a787d(0x14a)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0x146)],_0x1cf593,_0x4d1107),process[_0x2a787d(0x136)](0x1);}catch(_0x205a20){logger['error'](_0x2a787d(0x148)+_0x205a20[_0x2a787d(0x107)]),await _0xfd00b1['NcjDI'](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0xf9)],_0x205a20,_0x4d1107),process['exit'](0x1);}};
1
+ const a12_0x101f18=a12_0x2fab;function a12_0x2fab(_0x3b3a86,_0xc3a3b1){const _0x5c2a0b=a12_0x5c2a();return a12_0x2fab=function(_0x2fab63,_0x4d2ab8){_0x2fab63=_0x2fab63-0x15a;let _0x3878ee=_0x5c2a0b[_0x2fab63];return _0x3878ee;},a12_0x2fab(_0x3b3a86,_0xc3a3b1);}(function(_0x2d23d5,_0x35ae37){const _0x562772=a12_0x2fab,_0x4dcee4=_0x2d23d5();while(!![]){try{const _0x607f5d=-parseInt(_0x562772(0x16f))/0x1+-parseInt(_0x562772(0x173))/0x2+parseInt(_0x562772(0x1ce))/0x3*(-parseInt(_0x562772(0x170))/0x4)+-parseInt(_0x562772(0x1ab))/0x5*(-parseInt(_0x562772(0x1ac))/0x6)+-parseInt(_0x562772(0x183))/0x7*(parseInt(_0x562772(0x184))/0x8)+parseInt(_0x562772(0x187))/0x9*(-parseInt(_0x562772(0x1a5))/0xa)+-parseInt(_0x562772(0x18f))/0xb*(-parseInt(_0x562772(0x1db))/0xc);if(_0x607f5d===_0x35ae37)break;else _0x4dcee4['push'](_0x4dcee4['shift']());}catch(_0x53b4ab){_0x4dcee4['push'](_0x4dcee4['shift']());}}}(a12_0x5c2a,0x39f68));const fs=require('fs'),util=require(a12_0x101f18(0x1dd)),request=require(a12_0x101f18(0x1c9)),{v4:uuidv4}=require(a12_0x101f18(0x1b8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x101f18(0x1b4)),{logger}=require(a12_0x101f18(0x1c7)),{getCloudProviderObject}=require(a12_0x101f18(0x1bc)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a12_0x101f18(0x1e3)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x101f18(0x18e)),{createK8sClient}=require(a12_0x101f18(0x1c6)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x101f18(0x15f)),promisifiedRequest=util[a12_0x101f18(0x1d5)](request);exports[a12_0x101f18(0x178)]='grid',exports['desc']=a12_0x101f18(0x1a8),exports['builder']=function(_0x58bf23){const _0x101e0e=a12_0x101f18,_0x38b025={};_0x38b025[_0x101e0e(0x177)]=_0x101e0e(0x1d8),_0x38b025['ruuKb']=_0x101e0e(0x172),_0x38b025['lsJsz']=_0x101e0e(0x1b9);const _0x362205=_0x38b025,_0x3e0a27={};_0x3e0a27[_0x101e0e(0x175)]=_0x362205[_0x101e0e(0x177)],_0x3e0a27['type']=_0x362205[_0x101e0e(0x182)];const _0x1a5de6={};return _0x1a5de6['grid-id']=_0x3e0a27,_0x58bf23[_0x101e0e(0x163)](HELP_HEADER_MESSAGE[_0x101e0e(0x1e2)])[_0x101e0e(0x166)](HELP_FOOTER_MESSAGE)[_0x101e0e(0x1b1)](_0x1a5de6)[_0x101e0e(0x1b9)](_0x362205[_0x101e0e(0x1af)])[_0x101e0e(0x1d2)];},exports[a12_0x101f18(0x1c1)]=async function(_0xbefbfb){const _0x5277c4=a12_0x101f18,_0x339835={'PQAdA':_0x5277c4(0x193),'eXDZD':_0x5277c4(0x1d8),'DtrOM':_0x5277c4(0x172),'vGSWT':'help','fVCqH':function(_0x5d6480){return _0x5d6480();},'fEHSY':function(_0x223ebc,_0x3ec455){return _0x223ebc===_0x3ec455;},'Fgidm':_0x5277c4(0x195),'qBNQy':_0x5277c4(0x1e1),'utYDe':_0x5277c4(0x1d3),'YRLMq':function(_0x4f5741,_0x587bd2,_0x4b1dd7,_0x5b6e33,_0x369ea4,_0x576de9,_0x7ed169){return _0x4f5741(_0x587bd2,_0x4b1dd7,_0x5b6e33,_0x369ea4,_0x576de9,_0x7ed169);},'DzTVG':'delete-grid-called','wXUCn':_0x5277c4(0x15e),'aEGkT':function(_0x57efbd,_0x70fd65,_0x107323,_0x9099c,_0x452efb,_0x53b94b,_0x305335){return _0x57efbd(_0x70fd65,_0x107323,_0x9099c,_0x452efb,_0x53b94b,_0x305335);},'KOkLX':function(_0x1bc89d,_0x47aec2){return _0x1bc89d!==_0x47aec2;},'IgbTO':_0x5277c4(0x1e0),'jzVYE':_0x5277c4(0x1cd),'SIkMn':function(_0x436d6d,_0x132c98,_0x138ab8,_0x426440){return _0x436d6d(_0x132c98,_0x138ab8,_0x426440);},'NvMJe':function(_0x263644,_0x483e57){return _0x263644===_0x483e57;},'QlPAE':_0x5277c4(0x1b6),'ZAWUB':function(_0x4cdeb0,_0x972e39){return _0x4cdeb0!==_0x972e39;},'OHDuu':_0x5277c4(0x188),'KmfFF':'iWHFV','SEuAl':function(_0x56f96b,_0x901595){return _0x56f96b(_0x901595);},'oXCFE':function(_0x4eb471,_0x418536){return _0x4eb471===_0x418536;},'Zxapi':_0x5277c4(0x1e4),'jFpHo':'PCNdI','vFMLp':_0x5277c4(0x1a1),'tTeLi':_0x5277c4(0x1c2),'NemkO':function(_0x16d8cf,_0x4a0542){return _0x16d8cf===_0x4a0542;},'ZkGDf':_0x5277c4(0x19e),'XBxlk':_0x5277c4(0x1e7),'YdbiJ':function(_0x13582c,_0x1d5f3b){return _0x13582c!==_0x1d5f3b;},'mNlJp':'kEMtJ','jCPdA':_0x5277c4(0x1b3),'cmLHd':_0x5277c4(0x1ca),'Cbbhc':function(_0x559198,_0x4db6f9){return _0x559198===_0x4db6f9;},'Zgatu':_0x5277c4(0x1c4),'zbbtG':function(_0x3a836e,_0x186ae6,_0x22b251,_0x2e55e9){return _0x3a836e(_0x186ae6,_0x22b251,_0x2e55e9);},'yNstX':function(_0x1916f6){return _0x1916f6();},'gQsYX':_0x5277c4(0x1e8),'mLHSb':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','hdDVR':function(_0x3e5181,_0x399d70,_0x2ba3a1,_0x542ff8,_0x848b1,_0x3ce8c6){return _0x3e5181(_0x399d70,_0x2ba3a1,_0x542ff8,_0x848b1,_0x3ce8c6);},'ioffO':'DELETE','lKbuF':function(_0x565091,_0x2f175b){return _0x565091!==_0x2f175b;},'teDVt':function(_0x49fd49,_0x521240){return _0x49fd49===_0x521240;},'ggDVy':function(_0x141551,_0x58741a,_0x385fc1,_0x4f9dca,_0x3aeaef,_0x13c2b7,_0x2d9554){return _0x141551(_0x58741a,_0x385fc1,_0x4f9dca,_0x3aeaef,_0x13c2b7,_0x2d9554);},'OolSr':_0x5277c4(0x16c),'YgkmH':function(_0x28c7e7,_0x524286){return _0x28c7e7===_0x524286;},'bTCNI':_0x5277c4(0x19c),'iazPW':function(_0x2e728a,_0x975935){return _0x2e728a===_0x975935;},'DRVGo':_0x5277c4(0x160),'wBiVX':_0x5277c4(0x1d9)};try{global_registry[_0x5277c4(0x1a7)]=_0x339835[_0x5277c4(0x1d4)](uuidv4);!fs[_0x5277c4(0x19b)](_0x339835[_0x5277c4(0x1d4)](getCredentialsPath))&&(_0x339835['fEHSY'](_0x339835[_0x5277c4(0x198)],_0x339835[_0x5277c4(0x1c3)])?_0x5e817f[_0x5277c4(0x1bb)]={}:(console[_0x5277c4(0x192)](_0x339835['utYDe']),await _0x339835[_0x5277c4(0x196)](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x16b)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1)));_0x339835[_0x5277c4(0x174)](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1a0)],null,null,_0xbefbfb);!_0xbefbfb[_0x5277c4(0x186)]&&(_0x339835[_0x5277c4(0x1de)](_0x339835['IgbTO'],_0x339835['jzVYE'])?(console[_0x5277c4(0x192)](_0x339835['PQAdA']),process[_0x5277c4(0x185)](0x1)):_0x249c10=_0x5277c4(0x1e6)+_0x2aef6b['name']+_0x5277c4(0x15b)+_0x4d705d['id']+_0x5277c4(0x167)+_0x1f3ec8[_0x5277c4(0x1e5)]+'\x22\x20with\x20ID\x20'+_0x2a0d49[_0x5277c4(0x16a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x5a9e05=JSON[_0x5277c4(0x1d0)](fs[_0x5277c4(0x194)](_0x339835['fVCqH'](getCredentialsPath))),[_0xfe23fa,_0x593d2b]=await _0x339835['SIkMn'](getGridDetails,_0x5a9e05[_0x5277c4(0x1b6)][_0x5277c4(0x1aa)],_0x5a9e05['Browserstack'][_0x5277c4(0x19a)],_0xbefbfb['gridId']);if(_0x593d2b){const _0x110702=_0x593d2b[_0x5277c4(0x1bf)];let _0x43cce0=_0x5277c4(0x1e6)+_0x110702['name']+_0x5277c4(0x15b)+_0x110702['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x75b7e4;_0x593d2b[_0x5277c4(0x1c8)]&&_0x339835[_0x5277c4(0x16e)](_0x593d2b['clusterSpawnedVia'],_0x339835[_0x5277c4(0x1a4)])&&(_0x339835[_0x5277c4(0x16d)](_0x339835['OHDuu'],_0x339835[_0x5277c4(0x199)])?_0x43cce0=_0x5277c4(0x1e6)+_0x110702[_0x5277c4(0x18b)]+_0x5277c4(0x15b)+_0x110702['id']+_0x5277c4(0x167)+_0x110702['clusterName']+_0x5277c4(0x191)+_0x110702[_0x5277c4(0x16a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x513421[_0x5277c4(0x192)](_0x339835['PQAdA']),_0x5b73e5[_0x5277c4(0x185)](0x1)));_0x75b7e4=await _0x339835[_0x5277c4(0x168)](inputConfirmation,_0x43cce0);if(_0x339835[_0x5277c4(0x16e)](_0x75b7e4,undefined)||_0x339835[_0x5277c4(0x162)](_0x75b7e4,null)||!(_0x339835[_0x5277c4(0x16e)](_0x75b7e4['toLowerCase'](),'y')||_0x339835[_0x5277c4(0x162)](_0x75b7e4[_0x5277c4(0x197)](),'n'))){if(_0x339835[_0x5277c4(0x16d)](_0x339835['Zxapi'],_0x339835['jFpHo']))console['error'](_0x339835[_0x5277c4(0x1d6)]),await _0x339835[_0x5277c4(0x196)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x161)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1);else{const _0x23ac57={};_0x23ac57[_0x5277c4(0x175)]=_0x339835[_0x5277c4(0x1b5)],_0x23ac57[_0x5277c4(0x190)]=_0x339835['DtrOM'];const _0x2dae1c={};return _0x2dae1c[_0x5277c4(0x1d1)]=_0x23ac57,_0x245d54[_0x5277c4(0x163)](_0x1fc6db['delete'])[_0x5277c4(0x166)](_0x4c568f)[_0x5277c4(0x1b1)](_0x2dae1c)[_0x5277c4(0x1b9)](_0x339835[_0x5277c4(0x1d7)])[_0x5277c4(0x1d2)];}}_0x339835[_0x5277c4(0x162)](_0x75b7e4['toLowerCase'](),'n')&&(_0x339835['NemkO'](_0x339835[_0x5277c4(0x165)],_0x339835['XBxlk'])?_0x30d6e2[_0x5277c4(0x185)](0x0):process[_0x5277c4(0x185)](0x0));global_registry[_0x5277c4(0x19d)]=_0x110702[_0x5277c4(0x169)];const _0xaf76b2=_0x110702[_0x5277c4(0x1bb)],_0x3bd251=_0x339835[_0x5277c4(0x1dc)](getCloudProviderObject,_0xaf76b2,_0x110702[_0x5277c4(0x1e5)],_0x110702[_0x5277c4(0x18b)]),_0x4bf480=_0x5a9e05[_0x5277c4(0x1bb)];if(_0x339835['oXCFE'](_0x4bf480[_0xaf76b2],undefined)){if(_0x339835[_0x5277c4(0x180)](_0x339835[_0x5277c4(0x176)],_0x339835[_0x5277c4(0x1cc)])){logger['info'](_0x339835[_0x5277c4(0x1da)]);_0x339835[_0x5277c4(0x181)](_0x5a9e05[_0x5277c4(0x1bb)],undefined)&&(_0x339835['oXCFE'](_0x339835[_0x5277c4(0x1be)],_0x339835['Zgatu'])?_0x5a9e05[_0x5277c4(0x1bb)]={}:(_0x49e1fe['info']('Succesfully\x20deleted\x20the\x20grid'),_0x221492['exit'](0x0)));_0x5a9e05[_0x5277c4(0x1bb)][_0xaf76b2]={};const _0x29131e=await _0x339835[_0x5277c4(0x1a3)](inputCloudProviderKeys,_0xaf76b2,_0x5a9e05,_0x3bd251);fs[_0x5277c4(0x1cf)](_0x339835['yNstX'](getCredentialsPath),JSON[_0x5277c4(0x19f)](_0x29131e)),logger[_0x5277c4(0x1a9)](_0x339835['gQsYX']);}else _0x2b6ed2[_0x5277c4(0x1c0)](_0x5277c4(0x17d)+_0x1b158b[_0x5277c4(0x1e5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}else logger['info'](_0x339835[_0x5277c4(0x1cb)]),await _0x3bd251[_0x5277c4(0x1a2)](_0x4bf480);_0x3bd251['configureIfNotConfigured']();const _0x19849e=_0x339835[_0x5277c4(0x168)](kebabCase,_0x110702[_0x5277c4(0x18b)]),[_0x43e6a6,_0x546218,_0x202b55,_0x24f8a8,_0x2f3fdf,_0x461e82]=await _0x339835['SEuAl'](createK8sClient,_0x3bd251);await _0x339835[_0x5277c4(0x1b0)](removeGridComponents,_0x43e6a6,_0x546218,_0x202b55,_0x24f8a8,_0x19849e);if(_0x593d2b['onlyGridInCluster']){const _0x19ff66=await _0x3bd251[_0x5277c4(0x17c)]();_0x19ff66?await _0x3bd251[_0x5277c4(0x1df)](_0x43e6a6,_0x110702[_0x5277c4(0x169)]):logger[_0x5277c4(0x1c0)](_0x5277c4(0x17d)+_0x110702['clusterName']+_0x5277c4(0x1c5));}const _0xbbf03b=_0x5277c4(0x18d)+AG_API_URL+_0x5277c4(0x1b7)+_0xbefbfb[_0x5277c4(0x186)],_0x1db0f4={};_0x1db0f4['username']=_0x5a9e05[_0x5277c4(0x1b6)][_0x5277c4(0x1aa)],_0x1db0f4[_0x5277c4(0x19a)]=_0x5a9e05[_0x5277c4(0x1b6)]['password'];const _0x19d249={};_0x19d249[_0x5277c4(0x179)]=_0xbbf03b,_0x19d249[_0x5277c4(0x1b2)]=_0x339835[_0x5277c4(0x1a6)],_0x19d249[_0x5277c4(0x171)]=_0x1db0f4;const _0x18b338=_0x19d249,_0x4f23b4=await _0x339835[_0x5277c4(0x168)](promisifiedRequest,_0x18b338);_0x339835[_0x5277c4(0x180)](_0x4f23b4,null)&&_0x339835['lKbuF'](_0x4f23b4,undefined)&&_0x339835[_0x5277c4(0x15c)](_0x4f23b4[_0x5277c4(0x15a)],0xc8)&&(logger[_0x5277c4(0x1bf)](_0x5277c4(0x18c)),process[_0x5277c4(0x185)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x5277c4(0x19f)](_0x4f23b4)),await _0x339835[_0x5277c4(0x18a)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1bd)],_0xfe23fa,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}_0x339835['YgkmH'](_0xfe23fa['statusCode'],0x191)&&(logger[_0x5277c4(0x192)](_0x5277c4(0x15d)),await _0x339835['aEGkT'](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes['ERROR'],_0x339835[_0x5277c4(0x189)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1)),_0x339835[_0x5277c4(0x17a)](_0xfe23fa[_0x5277c4(0x15a)],0x190)&&(logger['error'](JSON[_0x5277c4(0x1d0)](_0xfe23fa[_0x5277c4(0x1ae)])[_0x5277c4(0x17e)]),await _0x339835['aEGkT'](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1ba)],_0x339835['DRVGo'],null,_0xbefbfb),process['exit'](0x1)),logger[_0x5277c4(0x192)](_0x5277c4(0x164)+JSON[_0x5277c4(0x19f)](_0xfe23fa)),await _0x339835['ggDVy'](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1bd)],_0xfe23fa,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}catch(_0x566ee6){logger[_0x5277c4(0x192)](_0x5277c4(0x17b)+_0x566ee6['stack']),await _0x339835[_0x5277c4(0x174)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1ad)],_0x566ee6,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}};function a12_0x5c2a(){const _0x461e25=['jCPdA','oJrbg','1215402CgiPFw','writeFileSync','parse','grid-id','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fVCqH','promisify','vFMLp','vGSWT','Pass\x20the\x20ID\x20of\x20the\x20Grid','unknown-error','cmLHd','3135228ESxYsq','SIkMn','util','KOkLX','deleteCluster','XupiH','cnAqh','delete','../../utils/instrumentationUtils','kyCeu','clusterName','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','HtwnO','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','statusCode','\x22\x20and\x20ID\x20','teDVt','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','../../utils/utilityMethods','invalid-grid-id','tTeLi','oXCFE','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZkGDf','epilogue','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','SEuAl','region','clusterId','wXUCn','server-error','ZAWUB','NvMJe','355166IhPMgl','4LRJecc','auth','string','439466jJEnwU','aEGkT','description','mNlJp','cfOLB','command','url','iazPW','Failed\x20to\x20delete\x20resources!\x20Error:\x20','isBrowserstackCluster','Cluster:\x20','message','DzTVG','YdbiJ','Cbbhc','ruuKb','2868383dqeuWZ','8HQbOnx','exit','gridId','9DfwQYE','TvOfq','bTCNI','ggDVy','name','Succesfully\x20deleted\x20the\x20grid','https://','../../utils/userInput','77aIBYex','type','\x22\x20with\x20ID\x20','error','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','readFileSync','lupQm','YRLMq','toLowerCase','Fgidm','KmfFF','password','existsSync','unauthorised','clusterRegion','WGFSK','stringify','INFO','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fetchLocalCreds','zbbtG','QlPAE','2957590pAYaiC','ioffO','requestId','Delete\x20an\x20Automation\x20grid.','debug','username','455FKeoln','6204TWKvqI','wBiVX','body','lsJsz','hdDVR','options','method','gTCVJ','../../config/constants','eXDZD','Browserstack','/packages/cli/grid/','uuid','help','ERROR','cloudProvider','../../cloudproviders/utils','OolSr','Zgatu','info','warn','handler','invalid-input','qBNQy','MvWbN','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/createk8sClient','../../config/logger','onlyGridInCluster','request','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','mLHSb'];a12_0x5c2a=function(){return _0x461e25;};return a12_0x5c2a();}
@@ -1 +1 @@
1
- function a13_0x5188(){const _0x5c98c7=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','../config/logger','ZBSmm','bstack-accesskey','985819Cvmijj','stringify','util','argv','mgsgX','INFO','existsSync','../utils/instrumentationUtils','description','dzsuP','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','16238100lFHWWM','promisify','error','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','1721792EXtyNu','https://','gFtFr','slCgT','exit','rKdvB','requestId','SGeYZ','method','NpraX','/automate/plan.json','GET','DEoQb','zXadI','ERROR','Fmvud','Jpkwj','MZdFQ','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','handler','tDtel','bstackAccesskey','string','22842KVjkWN','writeFileSync','recommendCommands','EHWfP','QhcTz','mrIMC','xtjXN','mkdirSync','wllWE','help','unknown-error','XHmxK','YLwZD','eOYfF','HuEuS','init-called','uuid','UIEFe','MOQlb','qWBdu','152469bLWbzx','type','bstack-username','4893119regiel','url','epilogue','BROWSERSTACK_USERNAME','Browserstack','Ewgov','5VwcNhC','qjUre','sulZS','kUSCh','JTafH','RZxKT','wrong-creds','options','WeETB','WEPiW','parse','cvqCN','username','qEKXv','4803534iZgBVD','command','QMwPd','yUSxq','request','rBNTP','strict','2bCGkat','YYCPy','BROWSERSTACK_ACCESS_KEY','944wenfFQ','eEflu','Eciqt','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','init','IEhOw','bstackUsername','PGRnO','env','PHZXx','usage','Qqdhd','readFileSync','builder'];a13_0x5188=function(){return _0x5c98c7;};return a13_0x5188();}function a13_0x8aac(_0x5341cf,_0x1ecbfb){const _0x518889=a13_0x5188();return a13_0x8aac=function(_0x8aac90,_0xb5442b){_0x8aac90=_0x8aac90-0x188;let _0x21f050=_0x518889[_0x8aac90];return _0x21f050;},a13_0x8aac(_0x5341cf,_0x1ecbfb);}const a13_0xa4edc9=a13_0x8aac;(function(_0x202ff7,_0x12b07c){const _0x5c4e80=a13_0x8aac,_0x503eb2=_0x202ff7();while(!![]){try{const _0x263c2f=-parseInt(_0x5c4e80(0x1ba))/0x1*(parseInt(_0x5c4e80(0x1a5))/0x2)+-parseInt(_0x5c4e80(0x1f4))/0x3+parseInt(_0x5c4e80(0x1c9))/0x4+-parseInt(_0x5c4e80(0x190))/0x5*(parseInt(_0x5c4e80(0x19e))/0x6)+parseInt(_0x5c4e80(0x18a))/0x7+parseInt(_0x5c4e80(0x1a8))/0x8*(-parseInt(_0x5c4e80(0x1e0))/0x9)+parseInt(_0x5c4e80(0x1c5))/0xa;if(_0x263c2f===_0x12b07c)break;else _0x503eb2['push'](_0x503eb2['shift']());}catch(_0x3feb36){_0x503eb2['push'](_0x503eb2['shift']());}}}(a13_0x5188,0x96870));const fs=require('fs'),util=require(a13_0xa4edc9(0x1bc)),request=require(a13_0xa4edc9(0x1a2)),{v4:uuidv4}=require(a13_0xa4edc9(0x1f0)),{logger}=require(a13_0xa4edc9(0x1b7)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0xa4edc9(0x1c1)),promisifiedRequest=util[a13_0xa4edc9(0x1c6)](request);exports[a13_0xa4edc9(0x19f)]=a13_0xa4edc9(0x1ac),exports['desc']=a13_0xa4edc9(0x1c8),exports[a13_0xa4edc9(0x1b5)]=function(_0x59e955){const _0x19ccf9=a13_0xa4edc9,_0x4acacb={};_0x4acacb['Ibsoi']=_0x19ccf9(0x1c4),_0x4acacb['Fmvud']=_0x19ccf9(0x1df),_0x4acacb[_0x19ccf9(0x1f2)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4acacb[_0x19ccf9(0x1e4)]=_0x19ccf9(0x1e9);const _0x273294=_0x4acacb,_0x5c3734={};_0x5c3734['description']=_0x273294['Ibsoi'],_0x5c3734[_0x19ccf9(0x188)]=_0x273294['Fmvud'];const _0x1551d6={};_0x1551d6[_0x19ccf9(0x1c2)]=_0x273294[_0x19ccf9(0x1f2)],_0x1551d6['type']=_0x273294[_0x19ccf9(0x1d8)];const _0xaf611d={};return _0xaf611d['bstack-username']=_0x5c3734,_0xaf611d[_0x19ccf9(0x1b9)]=_0x1551d6,_0x59e955[_0x19ccf9(0x1b2)](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x19ccf9(0x197)](_0xaf611d)[_0x19ccf9(0x1e2)]()[_0x19ccf9(0x1a4)]()[_0x19ccf9(0x1e9)](_0x273294[_0x19ccf9(0x1e4)])[_0x19ccf9(0x1bd)];},exports[a13_0xa4edc9(0x1dc)]=async function(_0xc6f188){const _0x10d4b=a13_0xa4edc9,_0x3d5262={'SGeYZ':'utf-8','cvqCN':_0x10d4b(0x1c4),'ZBSmm':_0x10d4b(0x1df),'tDtel':_0x10d4b(0x1db),'QMwPd':_0x10d4b(0x1e9),'Zrtkj':function(_0x17583f){return _0x17583f();},'Jpkwj':function(_0x43aa75){return _0x43aa75();},'Eciqt':function(_0x3ce696,_0x310204,_0x3faf6e,_0x4b5dee,_0x519c24,_0x79d91a,_0x2f932e){return _0x3ce696(_0x310204,_0x3faf6e,_0x4b5dee,_0x519c24,_0x79d91a,_0x2f932e);},'DEoQb':_0x10d4b(0x1ef),'kUSCh':function(_0x621e41){return _0x621e41();},'YLwZD':function(_0x28eb58,_0x4ab43a){return _0x28eb58!==_0x4ab43a;},'slCgT':'uyVXk','mrIMC':function(_0x4258bd,_0x5f4353){return _0x4258bd===_0x5f4353;},'HuEuS':_0x10d4b(0x1ce),'wllWE':_0x10d4b(0x19d),'ChvxI':_0x10d4b(0x191),'PGRnO':function(_0xbe7514,_0x25d12a){return _0xbe7514===_0x25d12a;},'eEflu':_0x10d4b(0x18f),'YYCPy':_0x10d4b(0x198),'Qqdhd':_0x10d4b(0x194),'zXadI':_0x10d4b(0x192),'gFtFr':_0x10d4b(0x1b6),'eOYfF':function(_0x344c6e){return _0x344c6e();},'WEPiW':_0x10d4b(0x1d4),'mgsgX':function(_0x3ade57,_0x34cb93){return _0x3ade57(_0x34cb93);},'qWBdu':function(_0x584f27,_0x50a60f){return _0x584f27!==_0x50a60f;},'guVtN':function(_0x5af424,_0x180a83){return _0x5af424===_0x180a83;},'MZdFQ':_0x10d4b(0x1e3),'PHZXx':_0x10d4b(0x1eb),'IEhOw':function(_0x3dd289,_0x2c3401){return _0x3dd289!==_0x2c3401;},'xtjXN':_0x10d4b(0x1d2),'RZxKT':'rRKXN','dzsuP':_0x10d4b(0x1ab),'UIEFe':_0x10d4b(0x196),'yUSxq':function(_0xfe576d,_0xec3c80,_0x5f4b67,_0x4406f6,_0x38c10f,_0x630296,_0x5f5b10){return _0xfe576d(_0xec3c80,_0x5f4b67,_0x4406f6,_0x38c10f,_0x630296,_0x5f5b10);},'rBNTP':_0x10d4b(0x1ea)};try{global_registry[_0x10d4b(0x1cf)]=_0x3d5262[_0x10d4b(0x1d9)](uuidv4),_0x3d5262['Eciqt'](sendInstrumentationEvent,_0xc6f188,_0x3d5262['DEoQb'],messageTypes[_0x10d4b(0x1bf)],null,null,_0xc6f188);const _0xb95a50=_0x3d5262[_0x10d4b(0x193)](getDirForConfig);!fs[_0x10d4b(0x1c0)](_0xb95a50)&&(_0x3d5262[_0x10d4b(0x1ec)](_0x3d5262['slCgT'],_0x3d5262[_0x10d4b(0x1cc)])?_0x3db423=_0x236eda['env'][_0x10d4b(0x18d)]:fs[_0x10d4b(0x1e7)](_0xb95a50));let _0x46a9e2,_0x3dbe23;process[_0x10d4b(0x1b0)][_0x10d4b(0x18d)]&&(_0x3d5262[_0x10d4b(0x1e5)](_0x3d5262['HuEuS'],_0x3d5262[_0x10d4b(0x1ee)])?_0x46a9e2=process[_0x10d4b(0x1b0)]['BROWSERSTACK_USERNAME']:_0x5c9bfd=_0x2ecf33[_0x10d4b(0x1b0)][_0x10d4b(0x1a7)]);process[_0x10d4b(0x1b0)][_0x10d4b(0x1a7)]&&(_0x3d5262[_0x10d4b(0x1e5)](_0x3d5262[_0x10d4b(0x1e8)],_0x3d5262['wllWE'])?_0x3dbe23=process[_0x10d4b(0x1b0)]['BROWSERSTACK_ACCESS_KEY']:_0x427f48=_0x3e1213[_0x10d4b(0x19a)](_0xa746da['readFileSync'](_0x211299,_0x3d5262[_0x10d4b(0x1d0)])));if(_0xc6f188[_0x10d4b(0x1ae)]){if(_0x3d5262[_0x10d4b(0x1ec)](_0x3d5262['ChvxI'],_0x3d5262['ChvxI'])){const _0x3d4405={};_0x3d4405[_0x10d4b(0x1c2)]=_0x3d5262[_0x10d4b(0x19b)],_0x3d4405[_0x10d4b(0x188)]=_0x3d5262[_0x10d4b(0x1b8)];const _0x2bad30={};_0x2bad30[_0x10d4b(0x1c2)]=_0x3d5262[_0x10d4b(0x1dd)],_0x2bad30['type']=_0x3d5262[_0x10d4b(0x1b8)];const _0x5f412d={};return _0x5f412d[_0x10d4b(0x189)]=_0x3d4405,_0x5f412d[_0x10d4b(0x1b9)]=_0x2bad30,_0x1a0940[_0x10d4b(0x1b2)](_0x598883['init'])[_0x10d4b(0x18c)](_0x4b2ccd)[_0x10d4b(0x197)](_0x5f412d)['recommendCommands']()[_0x10d4b(0x1a4)]()[_0x10d4b(0x1e9)](_0x3d5262[_0x10d4b(0x1a0)])[_0x10d4b(0x1bd)];}else _0x46a9e2=_0xc6f188['bstackUsername'];}_0xc6f188['bstackAccesskey']&&(_0x3d5262[_0x10d4b(0x1af)](_0x3d5262[_0x10d4b(0x1a9)],_0x3d5262[_0x10d4b(0x1a6)])?_0x338433=_0x89c3cf['bstackUsername']:_0x3dbe23=_0xc6f188[_0x10d4b(0x1de)]);if(_0x3d5262[_0x10d4b(0x1af)](_0x46a9e2,undefined)||_0x3d5262[_0x10d4b(0x1af)](_0x3dbe23,undefined)){if(_0x3d5262[_0x10d4b(0x1ec)](_0x3d5262[_0x10d4b(0x1b3)],_0x3d5262[_0x10d4b(0x1d6)])){logger['debug'](_0x3d5262[_0x10d4b(0x1cb)]);const [_0x4e094c,_0x296e9a]=await _0x3d5262[_0x10d4b(0x1ed)](inputBstackKeys);_0x46a9e2=_0x4e094c,_0x3dbe23=_0x296e9a;}else _0x21cc75=!![];}let _0x125586=![];const _0x569847={};_0x569847[_0x10d4b(0x18b)]=_0x10d4b(0x1ca)+_0x46a9e2+':'+_0x3dbe23+'@'+BS_API_URL+_0x10d4b(0x1d3),_0x569847[_0x10d4b(0x1d1)]=_0x3d5262[_0x10d4b(0x199)];const _0x36c58e=_0x569847,_0x3b3429=await _0x3d5262[_0x10d4b(0x1be)](promisifiedRequest,_0x36c58e);_0x3d5262[_0x10d4b(0x1ec)](_0x3b3429,null)&&_0x3d5262[_0x10d4b(0x1f3)](_0x3b3429,undefined)&&_0x3d5262[_0x10d4b(0x1af)](_0x3b3429['statusCode'],0xc8)&&(_0x3d5262['guVtN'](_0x3d5262[_0x10d4b(0x1da)],_0x3d5262[_0x10d4b(0x1b1)])?_0x4ac7b5[_0x10d4b(0x1e7)](_0x23721e):_0x125586=!![]);if(_0x125586){if(_0x3d5262[_0x10d4b(0x1ad)](_0x3d5262['xtjXN'],_0x3d5262[_0x10d4b(0x1e6)])){let _0x12aa3b={};const _0x5a0993=_0x3d5262['Zrtkj'](_0x18eaec);_0x2893da[_0x10d4b(0x1c0)](_0x5a0993)&&(_0x12aa3b=_0x2aaeec[_0x10d4b(0x19a)](_0x934a78[_0x10d4b(0x1b4)](_0x5a0993,_0x3d5262[_0x10d4b(0x1d0)])));const _0xb2562d={};_0xb2562d[_0x10d4b(0x19c)]=_0xc1ae4c,_0xb2562d['password']=_0x56a5b6,_0x12aa3b[_0x10d4b(0x18e)]=_0xb2562d,_0x188d44[_0x10d4b(0x1e1)](_0x5a0993,_0x129144[_0x10d4b(0x1bb)](_0x12aa3b)),_0x23ff6c[_0x10d4b(0x1cd)](0x0);}else{let _0xbb6405={};const _0x438819=_0x3d5262['Zrtkj'](getCredentialsPath);fs[_0x10d4b(0x1c0)](_0x438819)&&(_0x3d5262[_0x10d4b(0x1ad)](_0x3d5262[_0x10d4b(0x195)],_0x3d5262[_0x10d4b(0x195)])?_0x2df41c=_0x51d9fc[_0x10d4b(0x1de)]:_0xbb6405=JSON[_0x10d4b(0x19a)](fs[_0x10d4b(0x1b4)](_0x438819,_0x3d5262[_0x10d4b(0x1d0)])));const _0x5478de={};_0x5478de[_0x10d4b(0x19c)]=_0x46a9e2,_0x5478de['password']=_0x3dbe23,_0xbb6405[_0x10d4b(0x18e)]=_0x5478de,fs['writeFileSync'](_0x438819,JSON[_0x10d4b(0x1bb)](_0xbb6405)),process[_0x10d4b(0x1cd)](0x0);}}else logger[_0x10d4b(0x1c7)](_0x3d5262[_0x10d4b(0x1c3)]),await _0x3d5262[_0x10d4b(0x1aa)](sendInstrumentationEvent,_0xc6f188,_0x3d5262[_0x10d4b(0x1d5)],messageTypes[_0x10d4b(0x1d7)],_0x3d5262[_0x10d4b(0x1f1)],null,_0xc6f188),process['exit'](0x1);}catch(_0x587678){logger[_0x10d4b(0x1c7)](_0x587678['stack']),await _0x3d5262[_0x10d4b(0x1a1)](sendInstrumentationEvent,_0xc6f188,_0x3d5262[_0x10d4b(0x1d5)],messageTypes[_0x10d4b(0x1d7)],_0x3d5262[_0x10d4b(0x1a3)],_0x587678,_0xc6f188),process[_0x10d4b(0x1cd)](0x1);}};
1
+ function a13_0x54fb(){const _0x1e59d2=['exit','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','string','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','options','DzWpS','wrong-creds','utf-8','ZgpcA','stringify','VkosP','viWVB','/automate/plan.json','bstackUsername','help','hIFLG','tBXah','faDSG','nmWPN','NLyiz','type','init','bstack-username','gRINp','bAapV','9939123esWXKg','env','wJdGP','MVWAb','JNnpB','85HtOeaz','requestId','INFO','argv','XMImB','mkdirSync','Oqyty','readFileSync','init-called','username','desc','opypq','zaioi','url','usage','FFLTM','DpjcT','jdLag','../config/logger','iLTej','xtqTP','https://','useNm','BROWSERSTACK_ACCESS_KEY','description','parse','bstackAccesskey','TvXIG','vGmlc','vhKJO','DLjzv','builder','unknown-error','1820donjDH','GET','JxQHv','IBSAb','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','request','26fwbiiU','8ltVhZi','1285666vwlDnh','aECcn','stack','3477528CxBSFK','BROWSERSTACK_USERNAME','LCsaD','Zsyjt','dIWdN','epilogue','osXcF','CPHtE','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','rAUKc','dJuYI','80971rwFvQu','writeFileSync','60684zdjYgn','statusCode','MCJAI','137265XaYmFD','recommendCommands','ottTO','nwYDb','promisify','strict','5562403joUbNy','existsSync','VWbjt','handler','Browserstack','PjViT','../utils/instrumentationUtils','honXp','method','password','vfrpX','6EYTlcC','OuHCL','util','dLEVb','error','ERROR'];a13_0x54fb=function(){return _0x1e59d2;};return a13_0x54fb();}const a13_0x5be148=a13_0x3c96;function a13_0x3c96(_0x31d9d2,_0x462ad7){const _0x54fbb7=a13_0x54fb();return a13_0x3c96=function(_0x3c96e4,_0x3ade23){_0x3c96e4=_0x3c96e4-0x129;let _0x420371=_0x54fbb7[_0x3c96e4];return _0x420371;},a13_0x3c96(_0x31d9d2,_0x462ad7);}(function(_0x2c3ada,_0x27ca7c){const _0x1fbca4=a13_0x3c96,_0x108d11=_0x2c3ada();while(!![]){try{const _0x18d170=parseInt(_0x1fbca4(0x16d))/0x1+parseInt(_0x1fbca4(0x16b))/0x2*(-parseInt(_0x1fbca4(0x181))/0x3)+-parseInt(_0x1fbca4(0x17e))/0x4*(-parseInt(_0x1fbca4(0x143))/0x5)+-parseInt(_0x1fbca4(0x192))/0x6*(parseInt(_0x1fbca4(0x187))/0x7)+-parseInt(_0x1fbca4(0x16c))/0x8*(parseInt(_0x1fbca4(0x13e))/0x9)+-parseInt(_0x1fbca4(0x164))/0xa*(-parseInt(_0x1fbca4(0x17c))/0xb)+parseInt(_0x1fbca4(0x170))/0xc;if(_0x18d170===_0x27ca7c)break;else _0x108d11['push'](_0x108d11['shift']());}catch(_0x1b7e22){_0x108d11['push'](_0x108d11['shift']());}}}(a13_0x54fb,0xa5d6e));const fs=require('fs'),util=require(a13_0x5be148(0x194)),request=require(a13_0x5be148(0x16a)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x5be148(0x155)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0x5be148(0x18d)),promisifiedRequest=util[a13_0x5be148(0x185)](request);exports['command']=a13_0x5be148(0x13a),exports[a13_0x5be148(0x14d)]=a13_0x5be148(0x178),exports[a13_0x5be148(0x162)]=function(_0x173dc5){const _0x4fc93b=a13_0x5be148,_0x4745de={};_0x4745de[_0x4fc93b(0x12f)]=_0x4fc93b(0x168),_0x4745de[_0x4fc93b(0x14f)]=_0x4fc93b(0x19a),_0x4745de[_0x4fc93b(0x18c)]=_0x4fc93b(0x199),_0x4745de[_0x4fc93b(0x154)]=_0x4fc93b(0x133);const _0x4c4e00=_0x4745de,_0x3449b2={};_0x3449b2[_0x4fc93b(0x15b)]=_0x4c4e00[_0x4fc93b(0x12f)],_0x3449b2[_0x4fc93b(0x139)]=_0x4c4e00['zaioi'];const _0x21fccc={};_0x21fccc[_0x4fc93b(0x15b)]=_0x4c4e00[_0x4fc93b(0x18c)],_0x21fccc[_0x4fc93b(0x139)]=_0x4c4e00['zaioi'];const _0x464952={};return _0x464952[_0x4fc93b(0x13b)]=_0x3449b2,_0x464952[_0x4fc93b(0x169)]=_0x21fccc,_0x173dc5[_0x4fc93b(0x151)](HELP_HEADER_MESSAGE[_0x4fc93b(0x13a)])[_0x4fc93b(0x175)](HELP_FOOTER_MESSAGE)[_0x4fc93b(0x129)](_0x464952)[_0x4fc93b(0x182)]()[_0x4fc93b(0x186)]()[_0x4fc93b(0x133)](_0x4c4e00[_0x4fc93b(0x154)])[_0x4fc93b(0x146)];},exports[a13_0x5be148(0x18a)]=async function(_0xfdbd21){const _0x277911=a13_0x5be148,_0x24b8f4={'IBSAb':_0x277911(0x168),'LCsaD':'string','viWVB':_0x277911(0x199),'opypq':_0x277911(0x133),'JxQHv':_0x277911(0x12c),'tBXah':function(_0x192a1f){return _0x192a1f();},'aECcn':function(_0x4bbe92,_0x139445,_0x35b02f,_0x352ff8,_0xcc267a,_0x2ea144,_0x443ea2){return _0x4bbe92(_0x139445,_0x35b02f,_0x352ff8,_0xcc267a,_0x2ea144,_0x443ea2);},'nwYDb':_0x277911(0x14b),'useNm':function(_0x10f2e2){return _0x10f2e2();},'VWbjt':function(_0x497df4,_0x306db2){return _0x497df4===_0x306db2;},'vhKJO':_0x277911(0x195),'hIFLG':_0x277911(0x191),'ZgpcA':function(_0x4d1eaa,_0x150c18){return _0x4d1eaa!==_0x150c18;},'faDSG':_0x277911(0x15f),'WXpjw':'Pgitn','TvXIG':_0x277911(0x18e),'YVxBQ':_0x277911(0x12a),'Oqyty':_0x277911(0x17a),'xtqTP':_0x277911(0x152),'ottTO':function(_0x103c06,_0x4e3c34){return _0x103c06===_0x4e3c34;},'XMImB':function(_0xe9e07,_0x532953){return _0xe9e07!==_0x532953;},'UPmcO':_0x277911(0x13d),'CmMLd':_0x277911(0x137),'osXcF':_0x277911(0x19b),'DpjcT':_0x277911(0x165),'rCSji':function(_0x4788ab,_0x5d9d28){return _0x4788ab(_0x5d9d28);},'zDcBz':function(_0xd37882,_0x4b7a5c){return _0xd37882!==_0x4b7a5c;},'MVWAb':function(_0x21ccbf,_0x5dd50a){return _0x21ccbf!==_0x5dd50a;},'CPHtE':_0x277911(0x193),'iLTej':_0x277911(0x138),'wJdGP':function(_0x4531c5,_0x52f666){return _0x4531c5===_0x52f666;},'FIOOB':'mcOVZ','tSSXf':function(_0x892def){return _0x892def();},'gRINp':function(_0x267769,_0x31ec31){return _0x267769!==_0x31ec31;},'MCJAI':_0x277911(0x173),'dJuYI':_0x277911(0x174),'JNnpB':_0x277911(0x179),'DLjzv':_0x277911(0x12b),'Dojod':_0x277911(0x163)};try{global_registry[_0x277911(0x144)]=_0x24b8f4[_0x277911(0x135)](uuidv4),_0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x145)],null,null,_0xfdbd21);const _0x28c2f5=_0x24b8f4['useNm'](getDirForConfig);if(!fs[_0x277911(0x188)](_0x28c2f5)){if(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x160)],_0x24b8f4[_0x277911(0x134)])){const _0xe7903e={};_0xe7903e[_0x277911(0x15b)]=_0x24b8f4[_0x277911(0x167)],_0xe7903e['type']=_0x24b8f4[_0x277911(0x172)];const _0x385eb0={};_0x385eb0[_0x277911(0x15b)]=_0x24b8f4[_0x277911(0x130)],_0x385eb0[_0x277911(0x139)]=_0x24b8f4[_0x277911(0x172)];const _0xaff6fd={};return _0xaff6fd[_0x277911(0x13b)]=_0xe7903e,_0xaff6fd[_0x277911(0x169)]=_0x385eb0,_0x32c4b8['usage'](_0x3813ae[_0x277911(0x13a)])[_0x277911(0x175)](_0x1ed290)[_0x277911(0x129)](_0xaff6fd)['recommendCommands']()[_0x277911(0x186)]()['help'](_0x24b8f4[_0x277911(0x14e)])[_0x277911(0x146)];}else fs[_0x277911(0x148)](_0x28c2f5);}let _0x3c0845,_0x312168;process[_0x277911(0x13f)][_0x277911(0x171)]&&(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x136)],_0x24b8f4['WXpjw'])?_0x3c0845=process[_0x277911(0x13f)]['BROWSERSTACK_USERNAME']:_0x3045a9=_0x1f0784[_0x277911(0x13f)][_0x277911(0x171)]);process[_0x277911(0x13f)][_0x277911(0x15a)]&&(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x15e)],_0x24b8f4['YVxBQ'])?_0x2b4709=_0x20279e[_0x277911(0x15c)](_0x460f66[_0x277911(0x14a)](_0x56f064,_0x24b8f4[_0x277911(0x166)])):_0x312168=process[_0x277911(0x13f)][_0x277911(0x15a)]);_0xfdbd21[_0x277911(0x132)]&&(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x149)],_0x24b8f4[_0x277911(0x149)])?_0x54da8f=_0x119516[_0x277911(0x15d)]:_0x3c0845=_0xfdbd21[_0x277911(0x132)]);if(_0xfdbd21['bstackAccesskey']){if(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x157)],_0x24b8f4['xtqTP'])){let _0x25310c={};const _0x266c3a=_0x24b8f4['tBXah'](_0x56fc28);_0x3ce9f2[_0x277911(0x188)](_0x266c3a)&&(_0x25310c=_0x147ec1[_0x277911(0x15c)](_0x3d570f[_0x277911(0x14a)](_0x266c3a,_0x24b8f4[_0x277911(0x166)])));const _0x24b1ed={};_0x24b1ed[_0x277911(0x14c)]=_0x4f9e3a,_0x24b1ed['password']=_0x5e24ef,_0x25310c['Browserstack']=_0x24b1ed,_0x2e6c5a[_0x277911(0x17d)](_0x266c3a,_0x76c2ef[_0x277911(0x12e)](_0x25310c)),_0x160e05['exit'](0x0);}else _0x312168=_0xfdbd21[_0x277911(0x15d)];}if(_0x24b8f4[_0x277911(0x189)](_0x3c0845,undefined)||_0x24b8f4[_0x277911(0x183)](_0x312168,undefined)){if(_0x24b8f4[_0x277911(0x147)](_0x24b8f4['UPmcO'],_0x24b8f4['CmMLd'])){logger['debug'](_0x24b8f4[_0x277911(0x176)]);const [_0x20f229,_0x2d6603]=await _0x24b8f4[_0x277911(0x159)](inputBstackKeys);_0x3c0845=_0x20f229,_0x312168=_0x2d6603;}else _0x78bdc0=!![];}let _0x2e0537=![];const _0x27a050={};_0x27a050[_0x277911(0x150)]=_0x277911(0x158)+_0x3c0845+':'+_0x312168+'@'+BS_API_URL+_0x277911(0x131),_0x27a050[_0x277911(0x18f)]=_0x24b8f4[_0x277911(0x153)];const _0x48f9da=_0x27a050,_0x2f5f8b=await _0x24b8f4['rCSji'](promisifiedRequest,_0x48f9da);_0x24b8f4['zDcBz'](_0x2f5f8b,null)&&_0x24b8f4[_0x277911(0x141)](_0x2f5f8b,undefined)&&_0x24b8f4[_0x277911(0x183)](_0x2f5f8b[_0x277911(0x17f)],0xc8)&&(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x177)],_0x24b8f4[_0x277911(0x156)])?_0x54b21e[_0x277911(0x148)](_0x1e49be):_0x2e0537=!![]);if(_0x2e0537){if(_0x24b8f4[_0x277911(0x140)](_0x24b8f4['FIOOB'],_0x24b8f4['FIOOB'])){let _0x3e2646={};const _0x348de3=_0x24b8f4['tSSXf'](getCredentialsPath);fs['existsSync'](_0x348de3)&&(_0x24b8f4[_0x277911(0x13c)](_0x24b8f4[_0x277911(0x180)],_0x24b8f4[_0x277911(0x17b)])?_0x3e2646=JSON[_0x277911(0x15c)](fs[_0x277911(0x14a)](_0x348de3,_0x24b8f4['JxQHv'])):_0xe1c537=_0x39c3d9['bstackUsername']);const _0x535e36={};_0x535e36[_0x277911(0x14c)]=_0x3c0845,_0x535e36[_0x277911(0x190)]=_0x312168,_0x3e2646[_0x277911(0x18b)]=_0x535e36,fs[_0x277911(0x17d)](_0x348de3,JSON[_0x277911(0x12e)](_0x3e2646)),process[_0x277911(0x198)](0x0);}else _0x2d4d44=_0x37b68f[_0x277911(0x13f)]['BROWSERSTACK_ACCESS_KEY'];}else logger[_0x277911(0x196)](_0x24b8f4[_0x277911(0x142)]),await _0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x197)],_0x24b8f4[_0x277911(0x161)],null,_0xfdbd21),process[_0x277911(0x198)](0x1);}catch(_0x587c7a){logger['error'](_0x587c7a[_0x277911(0x16f)]),await _0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x197)],_0x24b8f4['Dojod'],_0x587c7a,_0xfdbd21),process[_0x277911(0x198)](0x1);}};
@@ -1 +1 @@
1
- function a14_0x354b(){const _0x144b8b=['TmNYL','5PMplHa','TrKjO','2fLFwdM','2044092OXyRwJ','144IqWNtO','builder','desc','1160PkzSnN','handler','1898964PcoFTP','2088627VcHsyg','epilogue','List\x20down\x20the\x20Grid\x20resources.','55DmQIXg','list','root','6162344pWNqfR','278404NOQBgS','usage','186627ZBJFmK','help','14589YOfCWt'];a14_0x354b=function(){return _0x144b8b;};return a14_0x354b();}const a14_0x394630=a14_0x1570;function a14_0x1570(_0x5ecf88,_0x1e6712){const _0x354b97=a14_0x354b();return a14_0x1570=function(_0x1570dc,_0x1927d9){_0x1570dc=_0x1570dc-0x6d;let _0x10f6aa=_0x354b97[_0x1570dc];return _0x10f6aa;},a14_0x1570(_0x5ecf88,_0x1e6712);}(function(_0x33ec8a,_0x4a9f9d){const _0x47fe83=a14_0x1570,_0x1a175e=_0x33ec8a();while(!![]){try{const _0x5368d3=parseInt(_0x47fe83(0x7c))/0x1*(parseInt(_0x47fe83(0x74))/0x2)+parseInt(_0x47fe83(0x6d))/0x3+-parseInt(_0x47fe83(0x83))/0x4*(-parseInt(_0x47fe83(0x7a))/0x5)+parseInt(_0x47fe83(0x7e))/0x6*(-parseInt(_0x47fe83(0x76))/0x7)+parseInt(_0x47fe83(0x73))/0x8+parseInt(_0x47fe83(0x78))/0x9*(-parseInt(_0x47fe83(0x81))/0xa)+parseInt(_0x47fe83(0x70))/0xb*(-parseInt(_0x47fe83(0x7d))/0xc);if(_0x5368d3===_0x4a9f9d)break;else _0x1a175e['push'](_0x1a175e['shift']());}catch(_0x2557a6){_0x1a175e['push'](_0x1a175e['shift']());}}}(a14_0x354b,0x83d8a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a14_0x394630(0x71),exports[a14_0x394630(0x80)]=a14_0x394630(0x6f),exports[a14_0x394630(0x7f)]=function(_0x393481){const _0x6036e3=a14_0x394630,_0x4422a3={};_0x4422a3[_0x6036e3(0x7b)]='list_commands',_0x4422a3[_0x6036e3(0x79)]=_0x6036e3(0x77);const _0x306402=_0x4422a3;return _0x393481['commandDir'](_0x306402['TrKjO'])['demandCommand']()[_0x6036e3(0x75)](HELP_HEADER_MESSAGE[_0x6036e3(0x71)][_0x6036e3(0x72)])[_0x6036e3(0x6e)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()['help'](_0x306402[_0x6036e3(0x79)]);},exports[a14_0x394630(0x82)]=function(_0x4af5ac){};
1
+ function a14_0x5f53(_0x138f59,_0x108595){const _0x4d5313=a14_0x4d53();return a14_0x5f53=function(_0x5f53ff,_0x1f8b91){_0x5f53ff=_0x5f53ff-0x15e;let _0x34e44e=_0x4d5313[_0x5f53ff];return _0x34e44e;},a14_0x5f53(_0x138f59,_0x108595);}function a14_0x4d53(){const _0x5ab0b2=['command','UwJvD','1620552tqCOSk','333595kgeKqF','list_commands','List\x20down\x20the\x20Grid\x20resources.','4150512qUlYYF','2459009BzWoyv','27muIFuM','1005395uCMbyE','hkKWT','usage','12vZDtJo','strict','commandDir','recommendCommands','list','620470IiEJNc','../config/constants','261906NSZkHf','6ZjfOhN','help'];a14_0x4d53=function(){return _0x5ab0b2;};return a14_0x4d53();}const a14_0x1697e4=a14_0x5f53;(function(_0x338129,_0x5d1ee2){const _0x50e550=a14_0x5f53,_0x4e9c31=_0x338129();while(!![]){try{const _0x4e8759=parseInt(_0x50e550(0x16f))/0x1+-parseInt(_0x50e550(0x162))/0x2*(-parseInt(_0x50e550(0x169))/0x3)+-parseInt(_0x50e550(0x16e))/0x4+-parseInt(_0x50e550(0x15f))/0x5+parseInt(_0x50e550(0x16a))/0x6*(parseInt(_0x50e550(0x173))/0x7)+-parseInt(_0x50e550(0x172))/0x8+parseInt(_0x50e550(0x15e))/0x9*(parseInt(_0x50e550(0x167))/0xa);if(_0x4e8759===_0x5d1ee2)break;else _0x4e9c31['push'](_0x4e9c31['shift']());}catch(_0x506b32){_0x4e9c31['push'](_0x4e9c31['shift']());}}}(a14_0x4d53,0x41dec));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x1697e4(0x168));exports[a14_0x1697e4(0x16c)]='list',exports['desc']=a14_0x1697e4(0x171),exports['builder']=function(_0x38293d){const _0x1104a6=a14_0x1697e4,_0x18f60d={};_0x18f60d[_0x1104a6(0x16d)]=_0x1104a6(0x170),_0x18f60d[_0x1104a6(0x160)]=_0x1104a6(0x16b);const _0x524e02=_0x18f60d;return _0x38293d[_0x1104a6(0x164)](_0x524e02[_0x1104a6(0x16d)])['demandCommand']()[_0x1104a6(0x161)](HELP_HEADER_MESSAGE[_0x1104a6(0x166)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1104a6(0x165)]()[_0x1104a6(0x163)]()[_0x1104a6(0x16b)](_0x524e02['hkKWT']);},exports['handler']=function(_0x33e7f7){};
@@ -1 +1 @@
1
- const a15_0x413c2e=a15_0x5737;function a15_0x5d86(){const _0x37ebb3=['server-error','gridProfile','url','Browserstack','GhSMj','grid-profile-name','4672932clqHCm','help','argv','password','66fTvWSG','list-grid-profiles-called','mCJze','bstackUsername','bstackAccesskey','UcVjQ','https://','push','DEgwh','table','Jzdhf','AqGGq','wipYa','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ofkQn','usage','parse','../../config/constants','26604qhbLaF','13626dZgWLS','handler','rMsVc','Ktlii','gZSWU','auth','VPWuI','ERROR','Ichou','/packages/cli/get-grid-profiles','10fOTtgC','username','pcgWQ','1760MOmpTv','list','uuid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','concurrency','28815bhBsmr','1062544IJvOJb','unknown-error','../../utils/instrumentationUtils','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','error','region','SwIwE','27672QwDOvi','exit','type','command','grid-profiles','readFileSync','existsSync','requestId','6JlOLAJ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','method','allGridProfiles','stringify','NjXyF','10880Lkdala','../../utils/utilityMethods','/packages/cli/get-all-grid-profiles','872VrqDTH','tgrJs','promisify','statusCode','cloudProvider','stack','init-not-called','INFO','boolean','request','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','body','name','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','ZFzqW','unauthorised'];a15_0x5d86=function(){return _0x37ebb3;};return a15_0x5d86();}(function(_0x3d8a8a,_0x1668a7){const _0x1c1609=a15_0x5737,_0x4502da=_0x3d8a8a();while(!![]){try{const _0x4a9a1d=parseInt(_0x1c1609(0x1de))/0x1*(parseInt(_0x1c1609(0x1ee))/0x2)+-parseInt(_0x1c1609(0x211))/0x3*(parseInt(_0x1c1609(0x1cb))/0x4)+-parseInt(_0x1c1609(0x1d6))/0x5*(-parseInt(_0x1c1609(0x1e6))/0x6)+parseInt(_0x1c1609(0x1df))/0x7+parseInt(_0x1c1609(0x1f7))/0x8*(-parseInt(_0x1c1609(0x1cc))/0x9)+-parseInt(_0x1c1609(0x1f4))/0xa*(parseInt(_0x1c1609(0x1d9))/0xb)+parseInt(_0x1c1609(0x20d))/0xc;if(_0x4a9a1d===_0x1668a7)break;else _0x4502da['push'](_0x4502da['shift']());}catch(_0x2cb31f){_0x4502da['push'](_0x4502da['shift']());}}}(a15_0x5d86,0x24f94));const fs=require('fs'),util=require('util'),request=require(a15_0x413c2e(0x200)),{table}=require(a15_0x413c2e(0x21a)),{v4:uuidv4}=require(a15_0x413c2e(0x1db)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x413c2e(0x1ca)),{getCredentialsPath}=require(a15_0x413c2e(0x1f5)),{sendInstrumentationEvent}=require(a15_0x413c2e(0x1e1)),promisifiedRequest=util[a15_0x413c2e(0x1f9)](request);function a15_0x5737(_0x577b9f,_0x5cd67f){const _0x5d8657=a15_0x5d86();return a15_0x5737=function(_0x5737d2,_0x237fe1){_0x5737d2=_0x5737d2-0x1c3;let _0x2b060f=_0x5d8657[_0x5737d2];return _0x2b060f;},a15_0x5737(_0x577b9f,_0x5cd67f);}exports[a15_0x413c2e(0x1e9)]=a15_0x413c2e(0x1ea),exports['desc']=a15_0x413c2e(0x1e2),exports['builder']=function(_0xd25abc){const _0x3427a4=a15_0x413c2e,_0x4a624b={};_0x4a624b[_0x3427a4(0x1c5)]=_0x3427a4(0x204),_0x4a624b[_0x3427a4(0x216)]=_0x3427a4(0x1ff),_0x4a624b[_0x3427a4(0x213)]=_0x3427a4(0x20e);const _0x5a4707=_0x4a624b,_0x204615={};_0x204615['description']=_0x5a4707[_0x3427a4(0x1c5)],_0x204615[_0x3427a4(0x1e8)]=_0x5a4707[_0x3427a4(0x216)];const _0x28d9c8={};return _0x28d9c8['all-grid-profiles']=_0x204615,_0xd25abc[_0x3427a4(0x1c8)](HELP_HEADER_MESSAGE[_0x3427a4(0x1da)][_0x3427a4(0x208)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x28d9c8)['help'](_0x5a4707[_0x3427a4(0x213)])[_0x3427a4(0x20f)];},exports[a15_0x413c2e(0x1cd)]=async function(_0x425932){const _0x2bf3e9=a15_0x413c2e,_0x4d34b5={'tgrJs':function(_0xd37bc5){return _0xd37bc5();},'GhSMj':function(_0x74d1a){return _0x74d1a();},'rMsVc':_0x2bf3e9(0x1dc),'gZSWU':function(_0x244fb1,_0x57878b,_0x4199a6,_0x4db9a1,_0x40f99b,_0x4adb29,_0x4369f0){return _0x244fb1(_0x57878b,_0x4199a6,_0x4db9a1,_0x40f99b,_0x4adb29,_0x4369f0);},'ofkQn':_0x2bf3e9(0x212),'NXjys':_0x2bf3e9(0x1fd),'Jzdhf':'GET','YGoih':function(_0x3dd3ef,_0x588439){return _0x3dd3ef(_0x588439);},'ZFzqW':function(_0x79536b,_0xc8877f){return _0x79536b!==_0xc8877f;},'qWMIC':function(_0xdb2be0,_0x3c63b3){return _0xdb2be0===_0x3c63b3;},'DEgwh':_0x2bf3e9(0x201),'VPWuI':_0x2bf3e9(0x20c),'pcgWQ':'cloud-provider','AqGGq':_0x2bf3e9(0x1e4),'uxdEN':_0x2bf3e9(0x1dd),'RNWIT':function(_0x100aa1,_0x4b4f2b){return _0x100aa1(_0x4b4f2b);},'NjXyF':function(_0x480f5e,_0x32cf51){return _0x480f5e===_0x32cf51;},'Ichou':_0x2bf3e9(0x206),'GbDrQ':_0x2bf3e9(0x207),'SwIwE':function(_0xc8b3b5,_0x4f1a5f,_0x143b1c,_0x296643,_0x4b46eb,_0x109b4b,_0x4270cf){return _0xc8b3b5(_0x4f1a5f,_0x143b1c,_0x296643,_0x4b46eb,_0x109b4b,_0x4270cf);},'Ktlii':_0x2bf3e9(0x1e0)};try{global_registry[_0x2bf3e9(0x1ed)]=_0x4d34b5[_0x2bf3e9(0x1f8)](uuidv4);let _0x3f180c='https://'+AG_API_URL+_0x2bf3e9(0x1d5);_0x425932[_0x2bf3e9(0x1f1)]&&(_0x3f180c=_0x2bf3e9(0x217)+AG_API_URL+_0x2bf3e9(0x1f6));!fs[_0x2bf3e9(0x1ec)](_0x4d34b5[_0x2bf3e9(0x20b)](getCredentialsPath))&&(console[_0x2bf3e9(0x1e3)](_0x4d34b5[_0x2bf3e9(0x1ce)]),await _0x4d34b5['gZSWU'](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes['ERROR'],_0x4d34b5['NXjys'],null,_0x425932),process[_0x2bf3e9(0x1e7)](0x1));_0x4d34b5[_0x2bf3e9(0x1d0)](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes[_0x2bf3e9(0x1fe)],null,null,_0x425932);const _0x4c033b=JSON[_0x2bf3e9(0x1c9)](fs[_0x2bf3e9(0x1eb)](_0x4d34b5[_0x2bf3e9(0x1f8)](getCredentialsPath))),_0x4fc28c={};_0x4fc28c[_0x2bf3e9(0x1d7)]=_0x4c033b['Browserstack'][_0x2bf3e9(0x1d7)],_0x4fc28c[_0x2bf3e9(0x210)]=_0x4c033b[_0x2bf3e9(0x20a)][_0x2bf3e9(0x210)];const _0x1887f7={};_0x1887f7[_0x2bf3e9(0x209)]=_0x3f180c,_0x1887f7[_0x2bf3e9(0x1f0)]=_0x4d34b5[_0x2bf3e9(0x1c3)],_0x1887f7[_0x2bf3e9(0x1d1)]=_0x4fc28c;const _0x8e8e20=_0x1887f7;global_registry[_0x2bf3e9(0x214)]=_0x4c033b[_0x2bf3e9(0x20a)][_0x2bf3e9(0x1d7)],global_registry[_0x2bf3e9(0x215)]=_0x4c033b[_0x2bf3e9(0x20a)][_0x2bf3e9(0x210)];const _0x262ffc=await _0x4d34b5['YGoih'](promisifiedRequest,_0x8e8e20);if(_0x4d34b5[_0x2bf3e9(0x205)](_0x262ffc,null)&&_0x4d34b5[_0x2bf3e9(0x205)](_0x262ffc,undefined)&&_0x4d34b5['qWMIC'](_0x262ffc[_0x2bf3e9(0x1fa)],0xc8)){const _0xa0002a=JSON['parse'](_0x262ffc[_0x2bf3e9(0x202)]);console['log'](_0x4d34b5[_0x2bf3e9(0x219)]);const _0x37b4ec=[];_0x37b4ec[_0x2bf3e9(0x218)]([_0x4d34b5[_0x2bf3e9(0x1d2)],_0x4d34b5[_0x2bf3e9(0x1d8)],_0x4d34b5[_0x2bf3e9(0x1c4)],_0x4d34b5['uxdEN']]),_0xa0002a['forEach'](_0x19b2ca=>{const _0x4dc509=_0x2bf3e9;_0x37b4ec[_0x4dc509(0x218)]([_0x19b2ca[_0x4dc509(0x203)],_0x19b2ca[_0x4dc509(0x1fb)],_0x19b2ca['region'],_0x19b2ca[_0x4dc509(0x1dd)]]);}),console['log'](_0x4d34b5['RNWIT'](table,_0x37b4ec)),process[_0x2bf3e9(0x1e7)](0x0);}_0x4d34b5[_0x2bf3e9(0x1f3)](_0x262ffc[_0x2bf3e9(0x1fa)],0x191)&&(console['error'](_0x2bf3e9(0x1ef)),await _0x4d34b5[_0x2bf3e9(0x1d0)](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes['ERROR'],_0x4d34b5[_0x2bf3e9(0x1d4)],null,_0x425932),process[_0x2bf3e9(0x1e7)](0x1)),console[_0x2bf3e9(0x1e3)](_0x2bf3e9(0x1c6)+JSON[_0x2bf3e9(0x1f2)](_0x262ffc)),await _0x4d34b5[_0x2bf3e9(0x1d0)](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes[_0x2bf3e9(0x1d3)],_0x4d34b5['GbDrQ'],_0x262ffc,_0x425932),process[_0x2bf3e9(0x1e7)](0x1);}catch(_0x3b8303){console[_0x2bf3e9(0x1e3)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x3b8303[_0x2bf3e9(0x1fc)]),await _0x4d34b5[_0x2bf3e9(0x1e5)](sendInstrumentationEvent,_0x425932,_0x4d34b5['ofkQn'],messageTypes[_0x2bf3e9(0x1d3)],_0x4d34b5[_0x2bf3e9(0x1cf)],_0x3b8303,_0x425932),process['exit'](0x1);}};
1
+ const a15_0x4d5ae4=a15_0x5435;(function(_0x17b5cb,_0x333d01){const _0x56fda6=a15_0x5435,_0x160613=_0x17b5cb();while(!![]){try{const _0x881b6f=-parseInt(_0x56fda6(0x1f0))/0x1+parseInt(_0x56fda6(0x223))/0x2+parseInt(_0x56fda6(0x23d))/0x3+parseInt(_0x56fda6(0x203))/0x4+-parseInt(_0x56fda6(0x230))/0x5+parseInt(_0x56fda6(0x225))/0x6+-parseInt(_0x56fda6(0x20a))/0x7;if(_0x881b6f===_0x333d01)break;else _0x160613['push'](_0x160613['shift']());}catch(_0x45efaf){_0x160613['push'](_0x160613['shift']());}}}(a15_0x1855,0xae5c7));const fs=require('fs'),util=require(a15_0x4d5ae4(0x1ec)),request=require(a15_0x4d5ae4(0x1f6)),{table}=require('table'),{v4:uuidv4}=require(a15_0x4d5ae4(0x21b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x4d5ae4(0x1ee)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x4d5ae4(0x237)),promisifiedRequest=util['promisify'](request);function a15_0x5435(_0x15e8cc,_0x31b9ce){const _0x18554e=a15_0x1855();return a15_0x5435=function(_0x5435e5,_0x53a88d){_0x5435e5=_0x5435e5-0x1eb;let _0x160564=_0x18554e[_0x5435e5];return _0x160564;},a15_0x5435(_0x15e8cc,_0x31b9ce);}function a15_0x1855(){const _0x3e7dc5=['vOivb','../../utils/instrumentationUtils','vJHgG','xtSQl','ujqhF','method','YdFbh','981576nHfABM','ERROR','MIidy','grid-profiles','lEqad','util','Browserstack','../../config/constants','body','83001KpySYp','nhpRF','iOCHH','eeXLP','KfTPs','stack','request','error','description','list','allGridProfiles','push','region','cDDNq','Failed\x20to\x20list\x20resources!\x20Error:\x20','LaDvp','jJBnj','cloud-provider','type','1232600gzxMiD','HPRvI','cloudProvider','ACjXy','argv','handler','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','9016798vaNRsJ','statusCode','help','usage','existsSync','readFileSync','log','/packages/cli/get-grid-profiles','bstackUsername','name','EPgPB','concurrency','grid-profile-name','parse','requestId','stringify','epilogue','uuid','password','init-not-called','desc','server-error','TwbUy','options','list-grid-profiles-called','2438990LflDBa','nPuZu','2814330zroVMD','boolean','bDBBR','/packages/cli/get-all-grid-profiles','yddmc','ddZNP','exit','url','CzQWh','username','builder','1192970PPipVR','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','https://','gridProfile','GET','unauthorised'];a15_0x1855=function(){return _0x3e7dc5;};return a15_0x1855();}exports['command']=a15_0x4d5ae4(0x240),exports[a15_0x4d5ae4(0x21e)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4d5ae4(0x22f)]=function(_0x374272){const _0x3b4a1d=a15_0x4d5ae4,_0x21287e={};_0x21287e[_0x3b4a1d(0x200)]=_0x3b4a1d(0x231),_0x21287e['xtSQl']=_0x3b4a1d(0x226),_0x21287e[_0x3b4a1d(0x220)]=_0x3b4a1d(0x20c);const _0x1c51c0=_0x21287e,_0x4c4e71={};_0x4c4e71[_0x3b4a1d(0x1f8)]=_0x1c51c0['jJBnj'],_0x4c4e71[_0x3b4a1d(0x202)]=_0x1c51c0[_0x3b4a1d(0x239)];const _0x4883ee={};return _0x4883ee['all-grid-profiles']=_0x4c4e71,_0x374272[_0x3b4a1d(0x20d)](HELP_HEADER_MESSAGE[_0x3b4a1d(0x1f9)][_0x3b4a1d(0x233)])[_0x3b4a1d(0x21a)](HELP_FOOTER_MESSAGE)[_0x3b4a1d(0x221)](_0x4883ee)[_0x3b4a1d(0x20c)](_0x1c51c0[_0x3b4a1d(0x220)])[_0x3b4a1d(0x207)];},exports[a15_0x4d5ae4(0x208)]=async function(_0x1c7cae){const _0x37a3ad=a15_0x4d5ae4,_0x9da205={'cDDNq':function(_0x25b35d){return _0x25b35d();},'eeXLP':function(_0x44fd9c){return _0x44fd9c();},'nhpRF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nPuZu':function(_0x175d70,_0x24423e,_0x57a0c5,_0x18676b,_0x4e9b51,_0x1815c5,_0x1052d8){return _0x175d70(_0x24423e,_0x57a0c5,_0x18676b,_0x4e9b51,_0x1815c5,_0x1052d8);},'HPRvI':_0x37a3ad(0x222),'vOivb':_0x37a3ad(0x21d),'ACjXy':function(_0x4fd4a8,_0x5461c5,_0x15f41f,_0x1432fd,_0x2962e4,_0x29386b,_0x4e22fd){return _0x4fd4a8(_0x5461c5,_0x15f41f,_0x1432fd,_0x2962e4,_0x29386b,_0x4e22fd);},'ddZNP':_0x37a3ad(0x234),'yddmc':function(_0x55c080,_0x248eba){return _0x55c080(_0x248eba);},'bDBBR':function(_0xe1f996,_0x3a9262){return _0xe1f996!==_0x3a9262;},'MIidy':function(_0x4be47f,_0x281f){return _0x4be47f===_0x281f;},'LaDvp':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','EPgPB':_0x37a3ad(0x216),'CzQWh':_0x37a3ad(0x201),'KfTPs':_0x37a3ad(0x1fc),'lEqad':_0x37a3ad(0x215),'iOCHH':function(_0x150822,_0x17679a,_0x370746,_0x53a877,_0x1648fa,_0xd9eace,_0x784b42){return _0x150822(_0x17679a,_0x370746,_0x53a877,_0x1648fa,_0xd9eace,_0x784b42);},'vJHgG':_0x37a3ad(0x235),'YdFbh':_0x37a3ad(0x21f),'mrzcN':function(_0x30308b,_0x45243a,_0x198bd0,_0x2cd0da,_0x8cefa7,_0xe742d4,_0x4989db){return _0x30308b(_0x45243a,_0x198bd0,_0x2cd0da,_0x8cefa7,_0xe742d4,_0x4989db);},'ujqhF':'unknown-error'};try{global_registry[_0x37a3ad(0x218)]=_0x9da205[_0x37a3ad(0x1fd)](uuidv4);let _0x338f4b=_0x37a3ad(0x232)+AG_API_URL+_0x37a3ad(0x211);_0x1c7cae[_0x37a3ad(0x1fa)]&&(_0x338f4b='https://'+AG_API_URL+_0x37a3ad(0x228));!fs[_0x37a3ad(0x20e)](_0x9da205[_0x37a3ad(0x1f3)](getCredentialsPath))&&(console['error'](_0x9da205[_0x37a3ad(0x1f1)]),await _0x9da205[_0x37a3ad(0x224)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x236)],null,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1));_0x9da205[_0x37a3ad(0x206)](sendInstrumentationEvent,_0x1c7cae,_0x9da205['HPRvI'],messageTypes['INFO'],null,null,_0x1c7cae);const _0x45bf43=JSON[_0x37a3ad(0x217)](fs[_0x37a3ad(0x20f)](_0x9da205[_0x37a3ad(0x1f3)](getCredentialsPath))),_0x1c5726={};_0x1c5726['username']=_0x45bf43[_0x37a3ad(0x1ed)]['username'],_0x1c5726[_0x37a3ad(0x21c)]=_0x45bf43[_0x37a3ad(0x1ed)][_0x37a3ad(0x21c)];const _0x4c121f={};_0x4c121f[_0x37a3ad(0x22c)]=_0x338f4b,_0x4c121f[_0x37a3ad(0x23b)]=_0x9da205[_0x37a3ad(0x22a)],_0x4c121f['auth']=_0x1c5726;const _0x2b545c=_0x4c121f;global_registry[_0x37a3ad(0x212)]=_0x45bf43['Browserstack'][_0x37a3ad(0x22e)],global_registry['bstackAccesskey']=_0x45bf43[_0x37a3ad(0x1ed)][_0x37a3ad(0x21c)];const _0x1f10a9=await _0x9da205['yddmc'](promisifiedRequest,_0x2b545c);if(_0x9da205['bDBBR'](_0x1f10a9,null)&&_0x9da205[_0x37a3ad(0x227)](_0x1f10a9,undefined)&&_0x9da205[_0x37a3ad(0x23f)](_0x1f10a9['statusCode'],0xc8)){const _0x74072b=JSON[_0x37a3ad(0x217)](_0x1f10a9[_0x37a3ad(0x1ef)]);console[_0x37a3ad(0x210)](_0x9da205[_0x37a3ad(0x1ff)]);const _0x9c3f4e=[];_0x9c3f4e[_0x37a3ad(0x1fb)]([_0x9da205[_0x37a3ad(0x214)],_0x9da205[_0x37a3ad(0x22d)],_0x9da205[_0x37a3ad(0x1f4)],_0x9da205[_0x37a3ad(0x1eb)]]),_0x74072b['forEach'](_0x588bc3=>{const _0x537687=_0x37a3ad;_0x9c3f4e[_0x537687(0x1fb)]([_0x588bc3[_0x537687(0x213)],_0x588bc3[_0x537687(0x205)],_0x588bc3[_0x537687(0x1fc)],_0x588bc3[_0x537687(0x215)]]);}),console['log'](_0x9da205[_0x37a3ad(0x229)](table,_0x9c3f4e)),process[_0x37a3ad(0x22b)](0x0);}_0x9da205[_0x37a3ad(0x23f)](_0x1f10a9[_0x37a3ad(0x20b)],0x191)&&(console[_0x37a3ad(0x1f7)](_0x37a3ad(0x209)),await _0x9da205[_0x37a3ad(0x1f2)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x238)],null,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1)),console[_0x37a3ad(0x1f7)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x37a3ad(0x219)](_0x1f10a9)),await _0x9da205[_0x37a3ad(0x224)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x23c)],_0x1f10a9,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1);}catch(_0x3a0d52){console['error'](_0x37a3ad(0x1fe)+_0x3a0d52[_0x37a3ad(0x1f5)]),await _0x9da205['mrzcN'](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x23a)],_0x3a0d52,_0x1c7cae),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x1ccbdd=a16_0x3cbb;function a16_0x3a53(){const _0x30da28=['neeMz','status','FGKqn','901278ZjrERr','psjoK','exit','qHmKu','ZWLpm','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GEQBQ','queued','21763iPgJjK','wgxDM','XwYon','usage','1951416UuROFW','clusterName','grid-id','8045rfzTSE','CzEwj','tuVpT','handler','cluster-name','allGrids','list','promisify','options','904uYPOsN','ciqDo','/packages/cli/get-all-grids','password','requestId','2748YzGMUk','PECmo','ZAOFb','XCJmg','INFO','argv','type','desc','description','statusCode','1669635NCAbvf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','existsSync','command','epilogue','ERROR','builder','method','dDZQy','grid-name','push','797051EIZgCx','username','forEach','579454GfDPYt','table','parse','https://','bstackUsername','boolean','gWQcS','stack','auth','NimUf','Rlkgr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WMqEa','tNkIo','kjkyf','../../utils/utilityMethods','Failed\x20to\x20list\x20resources!\x20Error:\x20','request','error','Browserstack','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','FilxG','uuid','readFileSync','url','stringify','util','../../config/constants','JcdAf','running','help','/packages/cli/get-grids','\x0aFound\x20the\x20following\x20grids:\x0a','all-grids','body'];a16_0x3a53=function(){return _0x30da28;};return a16_0x3a53();}(function(_0x4e4eef,_0x4a30b9){const _0x568a2c=a16_0x3cbb,_0x648cbd=_0x4e4eef();while(!![]){try{const _0x413639=-parseInt(_0x568a2c(0x214))/0x1+parseInt(_0x568a2c(0x1bb))/0x2+parseInt(_0x568a2c(0x1e2))/0x3+parseInt(_0x568a2c(0x1ee))/0x4+parseInt(_0x568a2c(0x1f1))/0x5*(parseInt(_0x568a2c(0x1ff))/0x6)+-parseInt(_0x568a2c(0x1ea))/0x7*(parseInt(_0x568a2c(0x1fa))/0x8)+-parseInt(_0x568a2c(0x209))/0x9;if(_0x413639===_0x4a30b9)break;else _0x648cbd['push'](_0x648cbd['shift']());}catch(_0x582c6e){_0x648cbd['push'](_0x648cbd['shift']());}}}(a16_0x3a53,0x75716));function a16_0x3cbb(_0x46c806,_0x493a8a){const _0x3a530c=a16_0x3a53();return a16_0x3cbb=function(_0x3cbbd3,_0x28dfcd){_0x3cbbd3=_0x3cbbd3-0x1ba;let _0x41d6b0=_0x3a530c[_0x3cbbd3];return _0x41d6b0;},a16_0x3cbb(_0x46c806,_0x493a8a);}const fs=require('fs'),util=require(a16_0x1ccbdd(0x1d6)),request=require(a16_0x1ccbdd(0x1cc)),{table}=require(a16_0x1ccbdd(0x1bc)),{v4:uuidv4}=require(a16_0x1ccbdd(0x1d2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x1ccbdd(0x1d7)),{getCredentialsPath}=require(a16_0x1ccbdd(0x1ca)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a16_0x1ccbdd(0x1f8)](request);exports[a16_0x1ccbdd(0x20c)]='grids',exports[a16_0x1ccbdd(0x206)]=a16_0x1ccbdd(0x1d0),exports[a16_0x1ccbdd(0x20f)]=function(_0x2a353b){const _0x4c1a18=a16_0x1ccbdd,_0x22ed6a={};_0x22ed6a[_0x4c1a18(0x211)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x22ed6a['EfHIr']=_0x4c1a18(0x1c0),_0x22ed6a['ZWLpm']='help';const _0x3a35ce=_0x22ed6a,_0x15df0b={};_0x15df0b[_0x4c1a18(0x207)]=_0x3a35ce[_0x4c1a18(0x211)],_0x15df0b[_0x4c1a18(0x205)]=_0x3a35ce['EfHIr'];const _0x4f2dde={};return _0x4f2dde[_0x4c1a18(0x1dd)]=_0x15df0b,_0x2a353b[_0x4c1a18(0x1ed)](HELP_HEADER_MESSAGE[_0x4c1a18(0x1f7)]['grid'])[_0x4c1a18(0x20d)](HELP_FOOTER_MESSAGE)[_0x4c1a18(0x1f9)](_0x4f2dde)[_0x4c1a18(0x1da)](_0x3a35ce[_0x4c1a18(0x1e6)])[_0x4c1a18(0x204)];},exports[a16_0x1ccbdd(0x1f4)]=async function(_0x3b2907){const _0x53b7b3=a16_0x1ccbdd,_0x3cd109={'CzEwj':function(_0x3766ad){return _0x3766ad();},'kjkyf':_0x53b7b3(0x20a),'ZAOFb':function(_0x439cb9,_0x195a39,_0x164c6e,_0x4dfaf8,_0xcb7ffd,_0x4b32d1,_0x2eb48c){return _0x439cb9(_0x195a39,_0x164c6e,_0x4dfaf8,_0xcb7ffd,_0x4b32d1,_0x2eb48c);},'FGKqn':'list-grids-called','tuVpT':_0x53b7b3(0x1cf),'gWQcS':function(_0x4907ac){return _0x4907ac();},'teIwh':'GET','PECmo':function(_0xf7a878,_0x13b6dd){return _0xf7a878(_0x13b6dd);},'XwYon':function(_0x53983a,_0x3bcb3b){return _0x53983a!==_0x3bcb3b;},'FilxG':function(_0x1b8103,_0x1bd399){return _0x1b8103!==_0x1bd399;},'WMqEa':function(_0xd41fa0,_0x1e24dd){return _0xd41fa0===_0x1e24dd;},'tNkIo':_0x53b7b3(0x1dc),'NimUf':_0x53b7b3(0x1f0),'wgxDM':_0x53b7b3(0x212),'qHmKu':_0x53b7b3(0x1e0),'ciqDo':_0x53b7b3(0x1d9),'Rlkgr':_0x53b7b3(0x1e9),'GEQBQ':_0x53b7b3(0x1f5),'XCJmg':'unauthorised','JcdAf':function(_0x193723,_0x58d0bd,_0x1c143e,_0x5760de,_0x1b4635,_0x1b721a,_0x6844c1){return _0x193723(_0x58d0bd,_0x1c143e,_0x5760de,_0x1b4635,_0x1b721a,_0x6844c1);},'psjoK':'server-error','neeMz':'unknown-error'};try{global_registry[_0x53b7b3(0x1fe)]=_0x3cd109[_0x53b7b3(0x1f2)](uuidv4);!fs[_0x53b7b3(0x20b)](_0x3cd109[_0x53b7b3(0x1f2)](getCredentialsPath))&&(console[_0x53b7b3(0x1cd)](_0x3cd109[_0x53b7b3(0x1c9)]),await _0x3cd109[_0x53b7b3(0x201)](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x1f3)],null,_0x3b2907),process['exit'](0x1));const _0x1dc15e=JSON[_0x53b7b3(0x1bd)](fs[_0x53b7b3(0x1d3)](_0x3cd109[_0x53b7b3(0x1c1)](getCredentialsPath)));let _0xbb5242=_0x53b7b3(0x1be)+AG_API_URL+_0x53b7b3(0x1db);_0x3b2907[_0x53b7b3(0x1f6)]&&(_0xbb5242=_0x53b7b3(0x1be)+AG_API_URL+_0x53b7b3(0x1fc));const _0x154eae={};_0x154eae['username']=_0x1dc15e['Browserstack'][_0x53b7b3(0x215)],_0x154eae['password']=_0x1dc15e[_0x53b7b3(0x1ce)]['password'];const _0x56b0a7={};_0x56b0a7[_0x53b7b3(0x1d4)]=_0xbb5242,_0x56b0a7[_0x53b7b3(0x210)]=_0x3cd109['teIwh'],_0x56b0a7[_0x53b7b3(0x1c3)]=_0x154eae;const _0xe32d1e=_0x56b0a7;global_registry[_0x53b7b3(0x1bf)]=_0x1dc15e['Browserstack'][_0x53b7b3(0x215)],global_registry['bstackAccesskey']=_0x1dc15e[_0x53b7b3(0x1ce)][_0x53b7b3(0x1fd)],_0x3cd109['ZAOFb'](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x203)],null,null,_0x3b2907);const _0x54e5c2=await _0x3cd109[_0x53b7b3(0x200)](promisifiedRequest,_0xe32d1e);if(_0x3cd109[_0x53b7b3(0x1ec)](_0x54e5c2,null)&&_0x3cd109[_0x53b7b3(0x1d1)](_0x54e5c2,undefined)&&_0x3cd109['WMqEa'](_0x54e5c2[_0x53b7b3(0x208)],0xc8)){const _0x33455d=JSON['parse'](_0x54e5c2[_0x53b7b3(0x1de)]);console['log'](_0x3cd109[_0x53b7b3(0x1c8)]);const _0x312b34=[];_0x312b34[_0x53b7b3(0x213)]([_0x3cd109[_0x53b7b3(0x1c4)],_0x3cd109[_0x53b7b3(0x1eb)],_0x3cd109[_0x53b7b3(0x1e5)],_0x3cd109[_0x53b7b3(0x1fb)],_0x3cd109[_0x53b7b3(0x1c5)],_0x3cd109[_0x53b7b3(0x1e8)]]),_0x33455d[_0x53b7b3(0x1ba)](_0xf54765=>{const _0x2f4db1=_0x53b7b3;_0x312b34[_0x2f4db1(0x213)]([_0xf54765['id'],_0xf54765['name'],_0xf54765[_0x2f4db1(0x1e0)],_0xf54765[_0x2f4db1(0x1d9)],_0xf54765[_0x2f4db1(0x1e9)],_0xf54765[_0x2f4db1(0x1ef)]]);}),console['log'](_0x3cd109[_0x53b7b3(0x200)](table,_0x312b34)),process[_0x53b7b3(0x1e4)](0x0);}_0x3cd109[_0x53b7b3(0x1c7)](_0x54e5c2['statusCode'],0x191)&&(console[_0x53b7b3(0x1cd)](_0x53b7b3(0x1c6)),await _0x3cd109[_0x53b7b3(0x201)](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x202)],null,_0x3b2907),process['exit'](0x1)),console['error'](_0x53b7b3(0x1e7)+JSON[_0x53b7b3(0x1d5)](_0x54e5c2)),await _0x3cd109[_0x53b7b3(0x1d8)](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x1e3)],_0x54e5c2,_0x3b2907),process[_0x53b7b3(0x1e4)](0x1);}catch(_0x23d1d0){console[_0x53b7b3(0x1cd)](_0x53b7b3(0x1cb)+_0x23d1d0[_0x53b7b3(0x1c2)]),await _0x3cd109['JcdAf'](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x1df)],_0x23d1d0,_0x3b2907),process[_0x53b7b3(0x1e4)](0x1);}};
1
+ const a16_0x311c7a=a16_0x17eb;function a16_0x17eb(_0x3f8f9f,_0x22f470){const _0x93925a=a16_0x9392();return a16_0x17eb=function(_0x17eb45,_0x2c676f){_0x17eb45=_0x17eb45-0x1a5;let _0x4725cc=_0x93925a[_0x17eb45];return _0x4725cc;},a16_0x17eb(_0x3f8f9f,_0x22f470);}function a16_0x9392(){const _0x21b724=['CvHDw','qCEKm','usage','tNuvE','qOfre','command','requestId','options','clusterName','pkKia','promisify','help','builder','password','kcvcJ','stringify','11287881RnzKcl','20lbIuyn','push','QAotV','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','type','epilogue','dpIxD','init-not-called','running','all-grids','exit','101968xjURlW','eusMF','handler','QgRVU','request','GET','boolean','../../config/constants','existsSync','AGndM','list','statusCode','parse','1182088zNiyoO','grid','bKxCP','../../utils/instrumentationUtils','OXHTk','util','terCx','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','aQpWS','argv','/packages/cli/get-grids','table','Browserstack','grid-name','username','grids','qSExM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','bstackAccesskey','ymFSN','iRKzq','url','14AxbXLP','\x0aFound\x20the\x20following\x20grids:\x0a','../../utils/utilityMethods','error','https://','ERROR','GQzcm','VVsLL','method','cluster-name','server-error','2193288lVmutX','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','49339iwrbnc','queued','body','/packages/cli/get-all-grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','618504qaxwrO','XOAeC','grid-id','status','unauthorised','1369756Fcnkkv','nTlOn'];a16_0x9392=function(){return _0x21b724;};return a16_0x9392();}(function(_0x4a36c8,_0x3bb2ad){const _0x588ea8=a16_0x17eb,_0xa21920=_0x4a36c8();while(!![]){try{const _0xe578cf=-parseInt(_0x588ea8(0x1fe))/0x1+parseInt(_0x588ea8(0x1ae))/0x2+parseInt(_0x588ea8(0x1a9))/0x3+-parseInt(_0x588ea8(0x1cd))/0x4*(-parseInt(_0x588ea8(0x1c1))/0x5)+parseInt(_0x588ea8(0x1fc))/0x6+parseInt(_0x588ea8(0x1f1))/0x7*(parseInt(_0x588ea8(0x1da))/0x8)+-parseInt(_0x588ea8(0x1c0))/0x9;if(_0xe578cf===_0x3bb2ad)break;else _0xa21920['push'](_0xa21920['shift']());}catch(_0x246dc9){_0xa21920['push'](_0xa21920['shift']());}}}(a16_0x9392,0x55948));const fs=require('fs'),util=require(a16_0x311c7a(0x1df)),request=require(a16_0x311c7a(0x1d1)),{table}=require(a16_0x311c7a(0x1e5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x311c7a(0x1d4)),{getCredentialsPath}=require(a16_0x311c7a(0x1f3)),{sendInstrumentationEvent}=require(a16_0x311c7a(0x1dd)),promisifiedRequest=util[a16_0x311c7a(0x1ba)](request);exports[a16_0x311c7a(0x1b5)]=a16_0x311c7a(0x1e9),exports[a16_0x311c7a(0x1ec)]=a16_0x311c7a(0x1fd),exports[a16_0x311c7a(0x1bc)]=function(_0x285587){const _0xf6e9eb=a16_0x311c7a,_0x23cc49={};_0x23cc49['qSExM']=_0xf6e9eb(0x1e1),_0x23cc49[_0xf6e9eb(0x1ee)]=_0xf6e9eb(0x1d3),_0x23cc49['qCEKm']=_0xf6e9eb(0x1bb);const _0x2c5be9=_0x23cc49,_0xe471b2={};_0xe471b2['description']=_0x2c5be9[_0xf6e9eb(0x1ea)],_0xe471b2[_0xf6e9eb(0x1c6)]=_0x2c5be9['ymFSN'];const _0x2182ea={};return _0x2182ea[_0xf6e9eb(0x1cb)]=_0xe471b2,_0x285587[_0xf6e9eb(0x1b2)](HELP_HEADER_MESSAGE[_0xf6e9eb(0x1d7)][_0xf6e9eb(0x1db)])[_0xf6e9eb(0x1c7)](HELP_FOOTER_MESSAGE)[_0xf6e9eb(0x1b7)](_0x2182ea)['help'](_0x2c5be9[_0xf6e9eb(0x1b1)])[_0xf6e9eb(0x1e3)];},exports[a16_0x311c7a(0x1cf)]=async function(_0x1d2e6a){const _0x80f1a1=a16_0x311c7a,_0x1d01a3={'qOfre':function(_0xc9be9){return _0xc9be9();},'uQLdp':function(_0x34e6fa){return _0x34e6fa();},'ZcikI':_0x80f1a1(0x1c5),'GQzcm':function(_0x24fe7f,_0x586941,_0x4320ee,_0x3b98f8,_0x55b278,_0x54febd,_0x42851a){return _0x24fe7f(_0x586941,_0x4320ee,_0x3b98f8,_0x55b278,_0x54febd,_0x42851a);},'OXHTk':'list-grids-called','PkFfC':_0x80f1a1(0x1c9),'AGndM':function(_0xc0aa4a){return _0xc0aa4a();},'XOAeC':_0x80f1a1(0x1d2),'eusMF':function(_0x2a2686,_0x39ead3){return _0x2a2686(_0x39ead3);},'oKGwf':function(_0x44b200,_0x5c0a64){return _0x44b200!==_0x5c0a64;},'SzZrX':function(_0x1c7d91,_0x3b8caa){return _0x1c7d91!==_0x3b8caa;},'iRKzq':function(_0x5d277e,_0x4a9ca8){return _0x5d277e===_0x4a9ca8;},'IPDfn':_0x80f1a1(0x1f2),'aQpWS':_0x80f1a1(0x1ab),'terCx':_0x80f1a1(0x1e7),'pkKia':_0x80f1a1(0x1ac),'bKxCP':_0x80f1a1(0x1ca),'QAotV':_0x80f1a1(0x1a5),'dpIxD':_0x80f1a1(0x1fa),'kcvcJ':function(_0x32ec78,_0x44ee02){return _0x32ec78===_0x44ee02;},'nTlOn':function(_0x25327c,_0x12eeab,_0x2148e8,_0x5591e3,_0x335c2f,_0x5ddabe,_0x34337c){return _0x25327c(_0x12eeab,_0x2148e8,_0x5591e3,_0x335c2f,_0x5ddabe,_0x34337c);},'CvHDw':_0x80f1a1(0x1ad),'QgRVU':_0x80f1a1(0x1fb),'VVsLL':function(_0x175e3a,_0x3666f2,_0x26dcac,_0x10a3bf,_0x4dc1ad,_0x5a7bf9,_0x4a504e){return _0x175e3a(_0x3666f2,_0x26dcac,_0x10a3bf,_0x4dc1ad,_0x5a7bf9,_0x4a504e);},'tNuvE':'unknown-error'};try{global_registry[_0x80f1a1(0x1b6)]=_0x1d01a3[_0x80f1a1(0x1b4)](uuidv4);!fs[_0x80f1a1(0x1d5)](_0x1d01a3['uQLdp'](getCredentialsPath))&&(console[_0x80f1a1(0x1f4)](_0x1d01a3['ZcikI']),await _0x1d01a3['GQzcm'](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3['PkFfC'],null,_0x1d2e6a),process['exit'](0x1));const _0x26f25e=JSON[_0x80f1a1(0x1d9)](fs['readFileSync'](_0x1d01a3[_0x80f1a1(0x1d6)](getCredentialsPath)));let _0x8b7d61=_0x80f1a1(0x1f5)+AG_API_URL+_0x80f1a1(0x1e4);_0x1d2e6a['allGrids']&&(_0x8b7d61=_0x80f1a1(0x1f5)+AG_API_URL+_0x80f1a1(0x1a7));const _0x389515={};_0x389515[_0x80f1a1(0x1e8)]=_0x26f25e[_0x80f1a1(0x1e6)]['username'],_0x389515[_0x80f1a1(0x1bd)]=_0x26f25e[_0x80f1a1(0x1e6)]['password'];const _0x215962={};_0x215962[_0x80f1a1(0x1f0)]=_0x8b7d61,_0x215962[_0x80f1a1(0x1f9)]=_0x1d01a3[_0x80f1a1(0x1aa)],_0x215962['auth']=_0x389515;const _0xd406b=_0x215962;global_registry['bstackUsername']=_0x26f25e['Browserstack']['username'],global_registry[_0x80f1a1(0x1ed)]=_0x26f25e['Browserstack'][_0x80f1a1(0x1bd)],_0x1d01a3[_0x80f1a1(0x1f7)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3['OXHTk'],messageTypes[_0x80f1a1(0x1c4)],null,null,_0x1d2e6a);const _0x5a37e4=await _0x1d01a3[_0x80f1a1(0x1ce)](promisifiedRequest,_0xd406b);if(_0x1d01a3['oKGwf'](_0x5a37e4,null)&&_0x1d01a3['SzZrX'](_0x5a37e4,undefined)&&_0x1d01a3[_0x80f1a1(0x1ef)](_0x5a37e4[_0x80f1a1(0x1d8)],0xc8)){const _0x23fff3=JSON[_0x80f1a1(0x1d9)](_0x5a37e4[_0x80f1a1(0x1a6)]);console['log'](_0x1d01a3['IPDfn']);const _0x1e7ba8=[];_0x1e7ba8[_0x80f1a1(0x1c2)]([_0x1d01a3[_0x80f1a1(0x1e2)],_0x1d01a3[_0x80f1a1(0x1e0)],_0x1d01a3[_0x80f1a1(0x1b9)],_0x1d01a3[_0x80f1a1(0x1dc)],_0x1d01a3[_0x80f1a1(0x1c3)],_0x1d01a3[_0x80f1a1(0x1c8)]]),_0x23fff3['forEach'](_0x196d83=>{const _0x180276=_0x80f1a1;_0x1e7ba8[_0x180276(0x1c2)]([_0x196d83['id'],_0x196d83['name'],_0x196d83[_0x180276(0x1ac)],_0x196d83[_0x180276(0x1ca)],_0x196d83['queued'],_0x196d83[_0x180276(0x1b8)]]);}),console['log'](_0x1d01a3['eusMF'](table,_0x1e7ba8)),process['exit'](0x0);}_0x1d01a3[_0x80f1a1(0x1be)](_0x5a37e4[_0x80f1a1(0x1d8)],0x191)&&(console[_0x80f1a1(0x1f4)](_0x80f1a1(0x1eb)),await _0x1d01a3[_0x80f1a1(0x1af)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3[_0x80f1a1(0x1b0)],null,_0x1d2e6a),process['exit'](0x1)),console[_0x80f1a1(0x1f4)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x80f1a1(0x1bf)](_0x5a37e4)),await _0x1d01a3[_0x80f1a1(0x1f7)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3[_0x80f1a1(0x1d0)],_0x5a37e4,_0x1d2e6a),process['exit'](0x1);}catch(_0x2e9df9){console['error'](_0x80f1a1(0x1a8)+_0x2e9df9['stack']),await _0x1d01a3[_0x80f1a1(0x1f8)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3['OXHTk'],messageTypes['ERROR'],_0x1d01a3[_0x80f1a1(0x1b3)],_0x2e9df9,_0x1d2e6a),process[_0x80f1a1(0x1cc)](0x1);}};