browserstack-node-sdk 1.31.0 → 1.31.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/config/constants.js +1 -1
  18. package/ats/src/config/logger.js +1 -1
  19. package/ats/src/index.js +1 -1
  20. package/ats/src/utils/AWSUtils.js +1 -1
  21. package/ats/src/utils/createAutoscalerStack.js +1 -1
  22. package/ats/src/utils/createClusterStack.js +1 -1
  23. package/ats/src/utils/createk8sClient.js +1 -1
  24. package/ats/src/utils/deleteStack.js +1 -1
  25. package/ats/src/utils/gridComponents.js +1 -1
  26. package/ats/src/utils/hstUtils.js +1 -1
  27. package/ats/src/utils/instrumentationUtils.js +1 -1
  28. package/ats/src/utils/userInput.js +1 -1
  29. package/ats/src/utils/utilityMethods.js +1 -1
  30. package/ats/src/utils/webSocketUtils.js +1 -1
  31. package/package.json +1 -1
  32. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  33. package/src/bin/codeceptjs/command.js +1 -1
  34. package/src/bin/cucumber-js/command.js +1 -1
  35. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  37. package/src/bin/cucumber-js/test.setup.js +1 -1
  38. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  39. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  40. package/src/bin/jest/command.js +1 -1
  41. package/src/bin/jest/customImplements/customCircus.js +1 -1
  42. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  43. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  44. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  45. package/src/bin/jest/jest.setup.js +1 -1
  46. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  47. package/src/bin/jest/test-observability/helper.js +1 -1
  48. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  49. package/src/bin/jest/test-observability/test-details.js +1 -1
  50. package/src/bin/jest/test_before.setup.js +1 -1
  51. package/src/bin/launcher/launcher.js +1 -1
  52. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  53. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  54. package/src/bin/mocha/command.js +1 -1
  55. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  56. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  57. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  58. package/src/bin/mocha/test.setup.js +1 -1
  59. package/src/bin/nightwatch/command.js +1 -1
  60. package/src/bin/playwright/accessibility-helper.js +1 -1
  61. package/src/bin/playwright/command.js +1 -1
  62. package/src/bin/playwright/globalSetup.js +1 -1
  63. package/src/bin/playwright/mock-process.js +1 -1
  64. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  65. package/src/bin/playwright/reporter/reporter.js +1 -1
  66. package/src/bin/playwright/reporter/test-details.js +1 -1
  67. package/src/bin/runner.js +1 -1
  68. package/src/bin/setup.js +1 -1
  69. package/src/bin/test-runner/index.js +1 -1
  70. package/src/bin/test-runner/runTest.js +1 -1
  71. package/src/bin/test-runner/testWorker.js +1 -1
  72. package/src/bin/utils/constants.js +1 -1
  73. package/src/bin/utils/log4jsAppender.js +1 -1
  74. package/src/bin/utils/logPatcher.js +1 -1
  75. package/src/bin/utils/logReportingAPI.js +1 -1
  76. package/src/bin/vanilla-js/command.js +1 -1
  77. package/src/browserstackSDKMethods.js +1 -0
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/percy/utils.js +1 -1
  94. package/src/helpers/request-spy.js +1 -1
  95. package/src/helpers/setKeepAlive.js +1 -1
  96. package/src/helpers/test-observability/constants.js +1 -1
  97. package/src/helpers/test-observability/error-handler.js +1 -1
  98. package/src/helpers/test-observability/performance-tester.js +1 -1
  99. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  100. package/src/helpers/test-observability/sessionHandler.js +1 -1
  101. package/src/helpers/test-observability/utils.js +1 -1
  102. package/src/helpers/w3cMapping.js +1 -1
  103. package/src/hubAllocationMethods.js +1 -1
  104. package/src/index.js +1 -1
  105. package/ats/src/cloudproviders/gcs.js +0 -1
@@ -1 +1 @@
1
- const a10_0x3001d3=a10_0x32cb;(function(_0x372e7a,_0x49d01f){const _0x54b7ec=a10_0x32cb,_0x3b0ae9=_0x372e7a();while(!![]){try{const _0xbf1b7e=parseInt(_0x54b7ec(0x1f6))/0x1*(parseInt(_0x54b7ec(0x191))/0x2)+parseInt(_0x54b7ec(0x264))/0x3+-parseInt(_0x54b7ec(0x23d))/0x4+-parseInt(_0x54b7ec(0x1e5))/0x5+parseInt(_0x54b7ec(0x15a))/0x6*(parseInt(_0x54b7ec(0x138))/0x7)+-parseInt(_0x54b7ec(0x26f))/0x8*(-parseInt(_0x54b7ec(0x1f4))/0x9)+-parseInt(_0x54b7ec(0x258))/0xa;if(_0xbf1b7e===_0x49d01f)break;else _0x3b0ae9['push'](_0x3b0ae9['shift']());}catch(_0x4c3a73){_0x3b0ae9['push'](_0x3b0ae9['shift']());}}}(a10_0x34fe,0xb30da));function a10_0x32cb(_0x59eb59,_0x5decd4){const _0x34fe99=a10_0x34fe();return a10_0x32cb=function(_0x32cb5b,_0x3b30e6){_0x32cb5b=_0x32cb5b-0x134;let _0x5ca99b=_0x34fe99[_0x32cb5b];return _0x5ca99b;},a10_0x32cb(_0x59eb59,_0x5decd4);}const fs=require('fs'),ws=require('ws'),util=require(a10_0x3001d3(0x266)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a10_0x3001d3(0x1f0)),{v4:uuidv4}=require(a10_0x3001d3(0x1d9)),webSocketUtils=require(a10_0x3001d3(0x192)),{logger}=require(a10_0x3001d3(0x20c)),{inputCloudProviderKeys}=require(a10_0x3001d3(0x13c)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x3001d3(0x181)),{getCloudProviderObject}=require(a10_0x3001d3(0x15d)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x3001d3(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x3001d3(0x1d2)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x3001d3(0x158)),promisifiedRequest=util[a10_0x3001d3(0x1ae)](request);function a10_0x34fe(){const _0x451405=['description','username','TjCCO','TsgSY','https://','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','kBoeH','FlBBU','hRiXu','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','../../utils/instrumentationUtils','fCzMo','18iRbJWE','rfjoP','gridProfileId','../../cloudproviders/utils','GdLWK','SJUAI','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cfYbO','WapMB','XArVw','browserVersion','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','getGridHostname','xPIrG','cloudProvider','umhOf','updatePreSpawnedCluster','options','NIetd','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','create','existsSync','HxDjY','isPrivateGrid','LsbAW','../../config/constants','PeuQw','IKCUm','smrBw','pre-spawned-subnets-not-selected','grid','YzdLc','WjFuA','Found\x20Subnets:\x20','MnGyD','exit','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','cSbHv','HRJhi','../../utils/utilityMethods','clusterName','gridProfiles','CLI\x20run\x20finished:\x20','UmUiY','help','annotations','vtEQn','zxaCt','Found\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','dlEaU','AMXQB','private-ingress-nginx-controller','create-grid-checks-auth-failed','lTclK','90730unzYGw','../../utils/webSocketUtils','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','LOG','jMRtU','UeuEf','Create\x20a\x20new\x20Automation\x20grid.','Create\x20a\x20private/public\x20grid.','MaoNT','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','eACIw','create-grid-checks-invalid-profile','3|2|0|7|5|8|6|1|4','evluk','includes','ohFko','jwQFk','Aiopy','swUbT','gOegF','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','RIxOJ','htUHz','minNodes','yhtCn','s3BucketName','defaultGridProfile','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','password','promisify','\x20are\x20not\x20present\x20in\x20VPC:\x20','isClusterPresent','true','keNPy','isVPCPresent','Spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','toLowerCase','create-grid-called','securityGroups','bJTnj','deleteCluster','Adding\x20Websocket\x20listeners','://','configureIfNotConfigured','fetchLocalCreds','mEHNv','AkvSN','JUdtg','\x27\x20grid\x20profile','JeMLX','Cluster\x20','CXPXM','metadata','qkrKr','LhSII','CLI_RUN_STARTED','INFO','JrnOc','AweVX','stringify','getResourceClientId','createOtherResources','EDtxq','handler','../../utils/gridComponents','name','statusCode','YrENF','split','get-grid-url-auth-failed','McqWM','uuid','JgTTS','pBGiI','OLssf','nIYNf','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','\x20using\x20\x27','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','message','createdBy','AVWwP','<UsernamePlaceholder>','4388020zNUyRP','private-grid','dYyGl','Deleting\x20the\x20CloudFormation\x20Stacks','gridName','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Uefom','CLI\x20run\x20started','replace','bstackAccesskey','PBXmf','request','TcNEK','VYVNT','wPkgb','9bWxUeF','Fysrp','29FyyInT','ingress-nginx','create-grid-checks-grid-already-exists','grid-profile','auth','Cluster\x20created\x20successfully','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','ibyyo','Kuwrr','YYVRI','bIBzh','bGHcj','lupwU','ACPjc','zIatK','managedBy','setupNewCluster','BcGYc','AvITE','ingress-nginx-controller','Grid\x20can\x20be\x20accessed\x20at:\x20','grid-spawning-failed','../../config/logger','oZFZj','gridProfile','wAFJS','IphAH','VFKUj','create-grid-checks-non-200','yWgGq','debug','sJlMF','epilogue','s3Bucket','PgOgD','uIZyB','ydsdr','oMTDw','hfokr','\x20in\x20existing\x20cluster\x20\x27','alreadyPresent','maxNodes','GAPgN','aEnqp','cluster-name','user','fkIzu','type','RohNS','iQXZi','sendEventToBackend','Jmbzd','pioSd','hubVersion','nCFwW','ijTxB','ERROR','body','bstackUsername','subnets','clusterRegion','GsiNk','WMdjk','Namespace\x20Created','https','HlXBy','concurrency','wuVGO','info','init-not-called','connectionTimeout','429328RIzIVJ','dDnCM','prespawned-cluster-args-not-passed','kmfjQ','warn','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','GXnwJ','VYTRE','Subnets:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','delay','get-grid-url-null-response','eZOVi','PCUoj','Oltdj','fBVbu','grid-name','Grid\x20profile\x20fetched\x20from\x20backend','eswaR','BZzGe','route53','vrFVR','vOwKc','Hwagy','Namespace\x20created','/packages/cli/get-grid-url?gridIdentifier=','ikujd','18234340QiUDcS','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','IkmxJ','waFmG','lZnHl','s3bucket','2|4|3|0|1','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hSLjC','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','argv','command','788598SLSvqt','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','util','mycaW','parse','GOMkY','GET','OSytz','bkKPD','error','fDrET','6900200otEYsi','xKmSj','PzNBe','tbboi','readNamespacedService','XEBCQ','2568524ajEcOO','pGVeY','Grid\x20spawned\x20on\x20the\x20cluster','setupAutoscaler','../../utils/userInput','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','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.','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','writeFileSync','create-grid-checks-null-response','WebSocket','cNDqi','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ggbyg','cloud-provider','QLsBU','region','hEpTk','privateGrid','IxsFW'];a10_0x34fe=function(){return _0x451405;};return a10_0x34fe();}exports[a10_0x3001d3(0x263)]=a10_0x3001d3(0x178),exports['desc']=a10_0x3001d3(0x197),exports['builder']=function(_0x119d39){const _0xec252e=a10_0x3001d3,_0x1f0ac6={};_0x1f0ac6[_0xec252e(0x207)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x1f0ac6['cfYbO']='string',_0x1f0ac6[_0xec252e(0x200)]=_0xec252e(0x1b5),_0x1f0ac6[_0xec252e(0x190)]=_0xec252e(0x141),_0x1f0ac6['ACPjc']=_0xec252e(0x160),_0x1f0ac6['zIatK']=_0xec252e(0x16d),_0x1f0ac6[_0xec252e(0x170)]=_0xec252e(0x198),_0x1f0ac6['wPkgb']=_0xec252e(0x186);const _0x304598=_0x1f0ac6,_0x34a2ab={};_0x34a2ab[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x207)],_0x34a2ab[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x47218f={};_0x47218f['description']=_0x304598[_0xec252e(0x200)],_0x47218f[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x4dba77={};_0x4dba77[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x190)],_0x4dba77[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x51b7b5={};_0x51b7b5[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x203)],_0x51b7b5[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x3d730e={};_0x3d730e[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x204)],_0x3d730e[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x32a7d9={};_0x32a7d9[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x170)],_0x32a7d9[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x56ec54={};return _0x56ec54[_0xec252e(0x24d)]=_0x34a2ab,_0x56ec54['grid-profile']=_0x47218f,_0x56ec54[_0xec252e(0x222)]=_0x4dba77,_0x56ec54['cloud-provider']=_0x51b7b5,_0x56ec54[_0xec252e(0x14a)]=_0x3d730e,_0x56ec54[_0xec252e(0x1e6)]=_0x32a7d9,_0x119d39['usage'](HELP_HEADER_MESSAGE[_0xec252e(0x16e)])[_0xec252e(0x216)](HELP_FOOTER_MESSAGE)[_0xec252e(0x16b)](_0x56ec54)[_0xec252e(0x186)](_0x304598[_0xec252e(0x1f3)])[_0xec252e(0x262)];},exports[a10_0x3001d3(0x1d1)]=async function(_0x1dd5d9){const _0x5c2704=a10_0x3001d3,_0x26a945={'dYyGl':_0x5c2704(0x26d),'fBVbu':_0x5c2704(0x241),'AweVX':_0x5c2704(0x236),'vrFVR':'http','tQlKY':_0x5c2704(0x261),'YzdLc':_0x5c2704(0x242),'PCUoj':'string','jMRtU':_0x5c2704(0x1b5),'cSbHv':_0x5c2704(0x141),'keNPy':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SJUAI':_0x5c2704(0x16d),'lJVPQ':'Create\x20a\x20private/public\x20grid.','bJTnj':_0x5c2704(0x186),'IxsFW':_0x5c2704(0x19d),'YYVRI':function(_0x467c04){return _0x467c04();},'TsgSY':function(_0x5acc1c,_0x4b22c0){return _0x5acc1c===_0x4b22c0;},'iQXZi':_0x5c2704(0x233),'fkIzu':_0x5c2704(0x210),'PzNBe':_0x5c2704(0x25f),'UeuEf':function(_0x25486f,_0x205ad0,_0x43f6fd,_0x53d0d3,_0x1c535d,_0x1879c7,_0x7b7b6d){return _0x25486f(_0x205ad0,_0x43f6fd,_0x53d0d3,_0x1c535d,_0x1879c7,_0x7b7b6d);},'Kuwrr':_0x5c2704(0x1b7),'OSytz':_0x5c2704(0x23b),'dlEaU':function(_0xac728a){return _0xac728a();},'mycaW':_0x5c2704(0x1e4),'eZOVi':'<PasswordPlaceholder>','MaoNT':_0x5c2704(0x1bb),'smrBw':function(_0x2b79b9,_0x1ece7d){return _0x2b79b9===_0x1ece7d;},'Oltdj':_0x5c2704(0x174),'ZLCoP':function(_0x564c80,_0x29b1e7){return _0x564c80!==_0x29b1e7;},'CXPXM':'WUllu','WMdjk':_0x5c2704(0x1f1),'xPIrG':_0x5c2704(0x1e0),'sJlMF':function(_0x4b465b,_0x2607eb,_0x5d1cdf,_0x1b8eec,_0x254ba2,_0x35b3f1,_0x24a6c0,_0x299d0a){return _0x4b465b(_0x2607eb,_0x5d1cdf,_0x1b8eec,_0x254ba2,_0x35b3f1,_0x24a6c0,_0x299d0a);},'cbiGM':_0x5c2704(0x23f),'nCFwW':_0x5c2704(0x24f),'nPcfk':_0x5c2704(0x246),'yhtCn':function(_0x405440,_0x466cb2,_0x8de645,_0x1ea837,_0x100cb6,_0x328fce,_0xf9ade3,_0x3b95d1){return _0x405440(_0x466cb2,_0x8de645,_0x1ea837,_0x100cb6,_0x328fce,_0xf9ade3,_0x3b95d1);},'KQnBA':'non-aws-azure-cluster','pBGiI':function(_0x17cd64,_0x1500bb){return _0x17cd64===_0x1500bb;},'VBNIy':_0x5c2704(0x1b1),'RIxOJ':_0x5c2704(0x1d0),'IKCUm':_0x5c2704(0x221),'YWHYl':'ikNtF','AVWwP':_0x5c2704(0x26a),'Hwagy':function(_0x4f966a,_0x9bdb29){return _0x4f966a(_0x9bdb29);},'GdLWK':function(_0x3808fe,_0x45984c){return _0x3808fe===_0x45984c;},'GAPgN':function(_0x235568,_0x378056){return _0x235568===_0x378056;},'dDnCM':function(_0x24909e,_0x1663b8){return _0x24909e!==_0x1663b8;},'ydsdr':_0x5c2704(0x1c8),'umhOf':_0x5c2704(0x219),'kmfjQ':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','hfokr':_0x5c2704(0x143),'jwQFk':function(_0x35c84d,_0x26b61e){return _0x35c84d===_0x26b61e;},'gOegF':function(_0xaf9921,_0x4e334f){return _0xaf9921!==_0x4e334f;},'vOwKc':_0x5c2704(0x155),'hRiXu':_0x5c2704(0x139),'YrENF':_0x5c2704(0x165),'IijOR':_0x5c2704(0x18f),'VFKUj':function(_0x9be88f,_0x4b3c00){return _0x9be88f!==_0x4b3c00;},'agrws':'TiaSk','oMTDw':_0x5c2704(0x154),'pioSd':_0x5c2704(0x212),'Aiopy':_0x5c2704(0x24e),'PgOgD':function(_0x1b57f7,_0x4f65d3){return _0x1b57f7!==_0x4f65d3;},'VXFtH':_0x5c2704(0x1c7),'cNDqi':_0x5c2704(0x157),'PBXmf':_0x5c2704(0x1f8),'WjFuA':function(_0xb09f0,_0x2bc4f3){return _0xb09f0!==_0x2bc4f3;},'WapMB':_0x5c2704(0x147),'HlXBy':function(_0xdbd23a,_0x3414f5){return _0xdbd23a===_0x3414f5;},'BZzGe':function(_0x577c56,_0x58745f){return _0x577c56!==_0x58745f;},'wuVGO':_0x5c2704(0x16c),'rfjoP':_0x5c2704(0x25b),'tbboi':_0x5c2704(0x1de),'QLsBU':function(_0x411372,_0x2edde7,_0x7518f9,_0x94a6c,_0x111a6b,_0x4e1266,_0x577bd3,_0x4ea26f){return _0x411372(_0x2edde7,_0x7518f9,_0x94a6c,_0x111a6b,_0x4e1266,_0x577bd3,_0x4ea26f);},'AMXQB':_0x5c2704(0x19c),'fCzMo':function(_0x34691f,_0x42d9a3){return _0x34691f===_0x42d9a3;},'JrnOc':function(_0x1f50db,_0x425d2f){return _0x1f50db!==_0x425d2f;},'xKmSj':_0x5c2704(0x19b),'hEpTk':_0x5c2704(0x1da),'WvgWH':_0x5c2704(0x25c),'MnGyD':function(_0xa8bddd,_0x1ef569,_0x46cb28,_0x4d8d02,_0x57c1bf,_0x5e9604,_0x442e9f,_0x1332f1,_0x2339e1,_0x3976e5,_0x12b709,_0x42607f){return _0xa8bddd(_0x1ef569,_0x46cb28,_0x4d8d02,_0x57c1bf,_0x5e9604,_0x442e9f,_0x1332f1,_0x2339e1,_0x3976e5,_0x12b709,_0x42607f);},'McqWM':'2|3|6|0|4|1|8|5|7','LsbAW':function(_0x36fd2e,_0x37ef87,_0x473354,_0x350463,_0x5c8ed0,_0x1e3147){return _0x36fd2e(_0x37ef87,_0x473354,_0x350463,_0x5c8ed0,_0x1e3147);},'htUHz':function(_0x1b1fea,_0xdf405d){return _0x1b1fea===_0xdf405d;},'LcqEq':_0x5c2704(0x1ea),'fDrET':function(_0x223771,_0x20d846){return _0x223771===_0x20d846;},'RohNS':function(_0x123714,_0x445509,_0x574f8d,_0x5c4ef2){return _0x123714(_0x445509,_0x574f8d,_0x5c4ef2);},'bkKPD':_0x5c2704(0x146),'ijTxB':_0x5c2704(0x140),'AkvSN':_0x5c2704(0x1fc),'JeMLX':function(_0x28be06,_0x494947){return _0x28be06!=_0x494947;},'EfbgJ':function(_0x1174bb,_0x1f52c0){return _0x1174bb!==_0x1f52c0;},'jLBXe':function(_0x40046d,_0x5de5bc){return _0x40046d>_0x5de5bc;},'TjCCO':function(_0x19c7f5,_0x1efcfa){return _0x19c7f5===_0x1efcfa;},'VYTRE':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','wAFJS':_0x5c2704(0x177),'XArVw':_0x5c2704(0x193),'bGHcj':'pre-spawned-invalid-vpc','cemMG':'pre-spawned-invalid-subnets','lupwU':_0x5c2704(0x25e),'Jmbzd':_0x5c2704(0x1fb),'ibyyo':_0x5c2704(0x13f),'Fysrp':function(_0xa4e6ab,_0x75d3df){return _0xa4e6ab===_0x75d3df;},'yWgGq':function(_0x34cbe4,_0x56a087){return _0x34cbe4(_0x56a087);},'fQXJG':function(_0x5adfbc,_0x4d6daa){return _0x5adfbc===_0x4d6daa;},'QDMbH':function(_0x3502a2,_0x378025){return _0x3502a2==_0x378025;},'Uefom':'Creating\x20namespace','HRJhi':function(_0x2a09e8,_0x4a964c){return _0x2a09e8!==_0x4a964c;},'RbDOW':'default','UmUiY':'Browserstack','mEHNv':_0x5c2704(0x235),'hSLjC':_0x5c2704(0x255),'JUdtg':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','OLssf':'Spawning\x20Grid\x20on\x20the\x20Cluster','wqqUq':function(_0xb4279e,_0x281de2){return _0xb4279e===_0x281de2;},'swUbT':function(_0x21e27b,_0x2e2db3,_0x14ec03,_0x387eaf,_0x5bf792,_0x36894d,_0x159507,_0x39d5a8,_0x44c59c,_0x4bef8d,_0x31778f){return _0x21e27b(_0x2e2db3,_0x14ec03,_0x387eaf,_0x5bf792,_0x36894d,_0x159507,_0x39d5a8,_0x44c59c,_0x4bef8d,_0x31778f);},'evluk':_0x5c2704(0x13a),'zxaCt':_0x5c2704(0x19a),'MwsZK':function(_0x5233eb,_0x314f76,_0x579f02){return _0x5233eb(_0x314f76,_0x579f02);},'vtEQn':_0x5c2704(0x18e),'GXnwJ':_0x5c2704(0x209),'oZFZj':_0x5c2704(0x1f7),'GOMkY':function(_0x70583c,_0x3b6e69){return _0x70583c(_0x3b6e69);},'AvITE':function(_0x248f1d,_0x508d3f){return _0x248f1d==_0x508d3f;},'IIcyb':function(_0x1cdc00,_0x17b556){return _0x1cdc00==_0x17b556;},'VYVNT':_0x5c2704(0x1a5),'XEBCQ':function(_0x1cb5aa,_0x5e7433,_0xc2a1f4,_0x1178c9,_0x13c86d,_0x4e0dab,_0x3ec4ce,_0x291dca){return _0x1cb5aa(_0x5e7433,_0xc2a1f4,_0x1178c9,_0x13c86d,_0x4e0dab,_0x3ec4ce,_0x291dca);},'bjMDi':_0x5c2704(0x248),'IkmxJ':function(_0x19611b,_0x13ce3c){return _0x19611b===_0x13ce3c;},'pXJPX':_0x5c2704(0x13d),'ikujd':_0x5c2704(0x1d7),'nIYNf':'get-grid-url-non-200','ohFko':function(_0x212250,_0x215370,_0x294380,_0x2f1644,_0x36e637,_0x5b0eae,_0x5c85f7){return _0x212250(_0x215370,_0x294380,_0x2f1644,_0x36e637,_0x5b0eae,_0x5c85f7);},'tMWdt':_0x5c2704(0x20b)};let _0x54a859=![],_0x24885d,_0x5f249d,_0x5674ae,_0x186a99,_0x490b6e,_0x209796,_0x590919,_0x528161,_0x1564a7,_0x3e0648,_0x1ad787,_0x97e97c,_0x4716d0=0x1,_0x4c3bb1=0xe;try{global_registry['requestId']=_0x26a945['YYVRI'](uuidv4),global_registry[_0x5c2704(0x171)]=![];if(!fs[_0x5c2704(0x16f)](_0x26a945[_0x5c2704(0x1ff)](getCredentialsPath))){if(_0x26a945[_0x5c2704(0x151)](_0x26a945[_0x5c2704(0x227)],_0x26a945[_0x5c2704(0x224)])){const _0x1ab096={};_0x1ab096['type']=_0x50bebb[_0x5c2704(0x194)],_0x1ab096['message']=_0x126ee0,_0x3a0afd[_0x5c2704(0x228)](_0x42c636,_0x1ab096,_0x26a945[_0x5c2704(0x1e7)],!![]);}else console[_0x5c2704(0x26d)](_0x26a945[_0x5c2704(0x134)]),await _0x26a945[_0x5c2704(0x196)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945['Kuwrr'],messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x26b)],null,_0x1dd5d9),process[_0x5c2704(0x17d)](0x1);}await _0x26a945[_0x5c2704(0x196)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945[_0x5c2704(0x1fe)],messageTypes[_0x5c2704(0x1ca)],null,null,_0x1dd5d9);const _0x4ed58a=JSON[_0x5c2704(0x268)](fs['readFileSync'](_0x26a945[_0x5c2704(0x18c)](getCredentialsPath)));global_registry[_0x5c2704(0x230)]=_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x14f)],global_registry[_0x5c2704(0x1ee)]=_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x1ad)];const _0x52be78=WS_ENDPOINT[_0x5c2704(0x1ed)](_0x26a945[_0x5c2704(0x267)],_0x4ed58a['Browserstack'][_0x5c2704(0x14f)])[_0x5c2704(0x1ed)](_0x26a945[_0x5c2704(0x249)],_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x1ad)]),_0xb802c9={};_0xb802c9[_0x5c2704(0x144)]=ws,_0xb802c9[_0x5c2704(0x23c)]=0x36ee80,_0x3e0648=new ReconnectingWebSocket(_0x52be78,[],_0xb802c9),logger['debug'](_0x26a945[_0x5c2704(0x199)]),webSocketUtils['addListeners'](_0x3e0648,_0x1dd5d9[_0x5c2704(0x223)],_0x1dd5d9[_0x5c2704(0x1ad)]);let _0x5774a1=DEFAULT_GRID_NAME;if(_0x1dd5d9['clusterName']||_0x1dd5d9[_0x5c2704(0x168)]||_0x1dd5d9[_0x5c2704(0x14a)]){if(_0x26a945[_0x5c2704(0x176)](_0x26a945[_0x5c2704(0x24b)],_0x26a945[_0x5c2704(0x24b)])){!(_0x1dd5d9[_0x5c2704(0x182)]&&_0x1dd5d9[_0x5c2704(0x168)]&&_0x1dd5d9[_0x5c2704(0x14a)])&&(_0x26a945['ZLCoP'](_0x26a945[_0x5c2704(0x1c5)],_0x26a945[_0x5c2704(0x234)])?(_0x24885d=_0x26a945[_0x5c2704(0x167)],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['cbiGM'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x1c4c58[_0x5c2704(0x168)]={});if(![AWS,AZURE,GCP][_0x5c2704(0x19f)](_0x1dd5d9[_0x5c2704(0x168)][_0x5c2704(0x1b6)]())){if(_0x26a945[_0x5c2704(0x151)](_0x26a945['nCFwW'],_0x26a945[_0x5c2704(0x22c)]))_0x24885d=_0x26a945['nPcfk'],await _0x26a945[_0x5c2704(0x1a9)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['KQnBA'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1);else{const _0x4c7226={};_0x4c7226[_0x5c2704(0x225)]=_0x189e40[_0x5c2704(0x194)],_0x4c7226[_0x5c2704(0x1e1)]=_0x5c2704(0x1c4)+_0x358396+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x4973c7[_0x5c2704(0x228)](_0xc98cea,_0x4c7226,_0x26a945[_0x5c2704(0x24c)]),_0x27be86['info'](_0x5c2704(0x1c4)+_0x504888+_0x5c2704(0x18b)),_0x306a5d=!![];}}_0x1dd5d9[_0x5c2704(0x14c)]&&_0x26a945['pBGiI'](_0x1dd5d9[_0x5c2704(0x14c)][_0x5c2704(0x1b6)](),_0x26a945['VBNIy'])&&(_0x26a945[_0x5c2704(0x176)](_0x26a945[_0x5c2704(0x1a6)],_0x26a945['RIxOJ'])?global_registry[_0x5c2704(0x171)]=!![]:_0x347327[_0x5c2704(0x171)]=!![]),_0x54a859=!![],_0x5674ae=_0x1dd5d9['clusterName'],_0x5f249d=_0x1dd5d9[_0x5c2704(0x168)][_0x5c2704(0x1b6)](),_0x186a99=_0x1dd5d9[_0x5c2704(0x14a)];}else _0x299dc8=_0x2ffdf8[_0x5c2704(0x251)],_0x14462c=_0x26a945['AweVX'];}_0x1dd5d9[_0x5c2704(0x1e9)]&&(_0x26a945[_0x5c2704(0x1db)](_0x26a945[_0x5c2704(0x175)],_0x26a945['YWHYl'])?_0x49ecbc=_0x18a193[_0x500d30[_0x5c2704(0x20e)]]:_0x5774a1=_0x1dd5d9[_0x5c2704(0x1e9)]);global_registry[_0x5c2704(0x1e9)]=_0x5774a1;const _0x6f2f40={};_0x6f2f40[_0x5c2704(0x14f)]=_0x4ed58a['Browserstack'][_0x5c2704(0x14f)],_0x6f2f40['password']=_0x4ed58a['Browserstack']['password'];const _0x5cbcbc={};_0x5cbcbc['method']=_0x26a945[_0x5c2704(0x1e3)],_0x5cbcbc[_0x5c2704(0x1fa)]=_0x6f2f40;const _0x416183=_0x5cbcbc,_0x10b5c1='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x1f4cdc={};_0x1f4cdc[_0x5c2704(0x1e9)]=_0x5774a1;const _0x19f658={'url':_0x10b5c1,'qs':_0x1f4cdc,..._0x416183},_0x2c052d=_0x19f658,_0x5ad05a=await _0x26a945[_0x5c2704(0x254)](promisifiedRequest,_0x2c052d);(_0x26a945[_0x5c2704(0x15e)](_0x5ad05a,null)||_0x26a945[_0x5c2704(0x220)](_0x5ad05a,undefined))&&(_0x26a945[_0x5c2704(0x23e)](_0x26a945[_0x5c2704(0x21a)],_0x26a945[_0x5c2704(0x169)])?(_0x24885d=_0x26a945[_0x5c2704(0x240)],await _0x26a945[_0x5c2704(0x1a9)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x21c)],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0xeaa9ec=_0x26a945[_0x5c2704(0x252)]);_0x26a945[_0x5c2704(0x1a1)](_0x5ad05a[_0x5c2704(0x1d4)],0x191)&&(_0x26a945[_0x5c2704(0x1a4)](_0x26a945[_0x5c2704(0x253)],_0x26a945[_0x5c2704(0x156)])?(_0x24885d=_0x26a945[_0x5c2704(0x1d5)],await _0x26a945['yhtCn'](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['IijOR'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):(_0x52ca4a[_0x5c2704(0x26d)](_0x26a945['tQlKY']),_0x118947[_0x5c2704(0x17d)](0x1)));_0x26a945[_0x5c2704(0x1a4)](_0x5ad05a[_0x5c2704(0x1d4)],0xc8)&&(_0x26a945[_0x5c2704(0x211)](_0x26a945['agrws'],_0x26a945[_0x5c2704(0x21b)])?(_0x24885d=_0x5c2704(0x17e)+JSON[_0x5c2704(0x1cd)](_0x5ad05a),await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x22a)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x249fc6[_0x5c2704(0x23a)]('Found\x20Subnets:\x20'+_0x56af87['stringify'](_0x353312)+'\x20'));const _0x18ad03=JSON[_0x5c2704(0x268)](_0x5ad05a['body']),_0x2bfb2a={};_0x2bfb2a[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x1c9)],_0x2bfb2a[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x2bfb2a);const _0xcc2b2e={};_0xcc2b2e[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0xcc2b2e['message']=_0x26a945[_0x5c2704(0x1a2)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0xcc2b2e);if(_0x18ad03[_0x5c2704(0x21e)]){if(_0x26a945[_0x5c2704(0x218)](_0x26a945['VXFtH'],_0x26a945['VXFtH'])){const _0x30fd68={};_0x30fd68[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x179)],_0x30fd68[_0x5c2704(0x225)]=_0x26a945['PCUoj'];const _0x4d8885={};_0x4d8885[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x195)],_0x4d8885[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x240447={};_0x240447[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x17f)],_0x240447[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x42372d={};_0x42372d[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x1b2)],_0x42372d[_0x5c2704(0x225)]=_0x26a945['PCUoj'];const _0x4a1094={};_0x4a1094[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x15f)],_0x4a1094[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x2ae999={};_0x2ae999['description']=_0x26a945['lJVPQ'],_0x2ae999[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x2563e7={};return _0x2563e7['grid-name']=_0x30fd68,_0x2563e7[_0x5c2704(0x1f9)]=_0x4d8885,_0x2563e7[_0x5c2704(0x222)]=_0x240447,_0x2563e7[_0x5c2704(0x148)]=_0x42372d,_0x2563e7['region']=_0x4a1094,_0x2563e7[_0x5c2704(0x1e6)]=_0x2ae999,_0x2bc470['usage'](_0x37a67d[_0x5c2704(0x16e)])[_0x5c2704(0x216)](_0x245b13)[_0x5c2704(0x16b)](_0x2563e7)[_0x5c2704(0x186)](_0x26a945[_0x5c2704(0x1b9)])[_0x5c2704(0x262)];}else _0x24885d=_0x26a945[_0x5c2704(0x145)],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x1ef)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1);}const _0x1a47c9=_0x18ad03[_0x5c2704(0x183)];let _0x2c1880=_0x1a47c9[_0x18ad03[_0x5c2704(0x1ab)]];if(_0x1dd5d9['gridProfile']){if(_0x26a945[_0x5c2704(0x17a)](_0x26a945[_0x5c2704(0x162)],_0x26a945[_0x5c2704(0x162)]))throw _0x5d53b1;else _0x2c1880=_0x1a47c9[_0x1dd5d9[_0x5c2704(0x20e)]];}if(_0x26a945[_0x5c2704(0x237)](_0x54a859,![])){if(_0x26a945['BZzGe'](_0x26a945[_0x5c2704(0x239)],_0x26a945[_0x5c2704(0x239)]))_0x342b63['info'](_0x5c2704(0x18a)+_0x4c163e+'\x20');else{_0x26a945['HlXBy'](_0x2c1880,undefined)&&(_0x26a945['smrBw'](_0x26a945[_0x5c2704(0x15b)],_0x26a945[_0x5c2704(0x15b)])?(_0x24885d=_0x26a945[_0x5c2704(0x135)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x18d)],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x14ddb7[_0x5c2704(0x171)]=!![]);global_registry[_0x5c2704(0x15c)]=_0x2c1880['id'];if(_0x26a945[_0x5c2704(0x159)](_0x5f249d,AZURE)||_0x26a945[_0x5c2704(0x159)](_0x2c1880?.[_0x5c2704(0x168)],AZURE)){if(_0x26a945[_0x5c2704(0x1cb)](_0x26a945[_0x5c2704(0x270)],_0x26a945[_0x5c2704(0x14b)]))console[_0x5c2704(0x26d)](_0x26a945['tQlKY']),process['exit'](0x1);else{const _0x55e3d8=_0x26a945[_0x5c2704(0x14d)][_0x5c2704(0x1d6)]('|');let _0x5072b7=0x0;while(!![]){switch(_0x55e3d8[_0x5072b7++]){case'0':_0x4de7b4[_0x5c2704(0x23a)](_0x41f9e1);continue;case'1':_0x242d70[_0x5c2704(0x22b)]=_0x487c4a[_0x5c2704(0x22b)];continue;case'2':_0x37fe87=_0x5c2704(0x1b4)+_0x43ca79+_0x5c2704(0x21d)+_0x4de971+'\x27';continue;case'3':const _0x5018a1={};_0x5018a1[_0x5c2704(0x225)]=_0x3604f6[_0x5c2704(0x1c9)],_0x5018a1[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),_0x5c228a[_0x5c2704(0x228)](_0x4f1c8d,_0x5018a1);continue;case'4':_0x46b5e0[_0x5c2704(0x164)]=_0x409a23[_0x5c2704(0x164)];continue;case'5':_0x3d7160['cloudProvider']=_0x2b8ddd;continue;case'6':_0x469dce['clusterName']=_0x247320;continue;case'7':const _0x4c1110={};_0x4c1110['type']=_0x3142ed[_0x5c2704(0x194)],_0x4c1110[_0x5c2704(0x1e1)]=_0x452978,_0x36c344['sendEventToBackend'](_0x338160,_0x4c1110);continue;case'8':_0x14b05a[_0x5c2704(0x232)]=_0x43cd2f;continue;}break;}}}_0x24885d='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x5774a1+_0x5c2704(0x1df)+_0x2c1880[_0x5c2704(0x1d3)]+_0x5c2704(0x1c2),logger[_0x5c2704(0x23a)](_0x24885d);const _0x1c151f={};_0x1c151f[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x1c151f[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1c151f),_0x5f249d=_0x2c1880[_0x5c2704(0x168)],_0x5674ae=_0x2c1880[_0x5c2704(0x182)],_0x186a99=_0x2c1880[_0x5c2704(0x14a)],_0x490b6e=_0x2c1880[_0x5c2704(0x238)],_0x209796=_0x2c1880['instanceType'],_0x590919=_0x2c1880['vpc'],securityGroups=_0x2c1880[_0x5c2704(0x1b8)],subnets=_0x2c1880[_0x5c2704(0x231)],_0x528161=_0x2c1880[_0x5c2704(0x25d)],_0x4716d0=_0x2c1880[_0x5c2704(0x1a8)],_0x4c3bb1=_0x2c1880[_0x5c2704(0x21f)],_0x1ad787=_0x18ad03['hubVersion'],_0x97e97c=_0x18ad03[_0x5c2704(0x164)],_0x26a945[_0x5c2704(0x250)](_0x2c1880[_0x5c2704(0x14c)],undefined)&&_0x2c1880['privateGrid']&&(_0x26a945[_0x5c2704(0x176)](_0x26a945['WvgWH'],_0x26a945['WvgWH'])?global_registry[_0x5c2704(0x171)]=!![]:_0x223928=_0x13dd03[_0x5c2704(0x1e9)]),_0x26a945[_0x5c2704(0x17c)](updateGlobalRegistryWithConfig,_0x5f249d,_0x5674ae,_0x186a99,_0x490b6e,_0x209796,_0x528161,_0x2c1880,_0x1ad787,_0x97e97c,_0x4716d0,_0x4c3bb1);}}else{const _0x5b324d=_0x26a945[_0x5c2704(0x1d8)][_0x5c2704(0x1d6)]('|');let _0x1204ca=0x0;while(!![]){switch(_0x5b324d[_0x1204ca++]){case'0':const _0x48a8de={};_0x48a8de[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x48a8de[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x48a8de);continue;case'1':global_registry[_0x5c2704(0x232)]=_0x186a99;continue;case'2':const _0x37d27b={};_0x37d27b['type']=WS_EVENTS[_0x5c2704(0x1c9)],_0x37d27b[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x37d27b);continue;case'3':_0x24885d=_0x5c2704(0x1b4)+_0x5774a1+_0x5c2704(0x21d)+_0x5674ae+'\x27';continue;case'4':global_registry['cloudProvider']=_0x5f249d;continue;case'5':global_registry[_0x5c2704(0x22b)]=_0x18ad03[_0x5c2704(0x22b)];continue;case'6':logger['info'](_0x24885d);continue;case'7':global_registry['browserVersion']=_0x18ad03[_0x5c2704(0x164)];continue;case'8':global_registry['clusterName']=_0x5674ae;continue;}break;}}const _0x284664=_0x26a945[_0x5c2704(0x172)](getCloudProviderObject,_0x5f249d,_0x5674ae,_0x5774a1,_0x3e0648,webSocketUtils),_0x3c58c5=_0x4ed58a['cloudProvider']||{};if(_0x26a945[_0x5c2704(0x1a7)](_0x3c58c5[_0x5f249d],undefined)){logger[_0x5c2704(0x23a)](_0x26a945['LcqEq']);_0x26a945[_0x5c2704(0x26e)](_0x4ed58a[_0x5c2704(0x168)],undefined)&&(_0x4ed58a[_0x5c2704(0x168)]={});_0x4ed58a[_0x5c2704(0x168)][_0x5f249d]={};const _0x3884f7=await _0x26a945[_0x5c2704(0x226)](inputCloudProviderKeys,_0x5f249d,_0x4ed58a,_0x284664);fs[_0x5c2704(0x142)](_0x26a945[_0x5c2704(0x1ff)](getCredentialsPath),JSON[_0x5c2704(0x1cd)](_0x3884f7)),logger[_0x5c2704(0x214)](_0x26a945[_0x5c2704(0x26c)]);}else{_0x24885d=_0x26a945[_0x5c2704(0x22d)];const _0x57d6d3={};_0x57d6d3['type']=WS_EVENTS['LOG'],_0x57d6d3[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x57d6d3),logger[_0x5c2704(0x23a)](_0x24885d),await _0x284664[_0x5c2704(0x1be)](_0x3c58c5);}_0x284664[_0x5c2704(0x1bd)]();let _0x20b5e6;if(_0x26a945['pBGiI'](_0x54a859,![])){_0x24885d=_0x5c2704(0x1ac)+_0x186a99+').';const _0x229c12={};_0x229c12[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x229c12[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x229c12),logger[_0x5c2704(0x23a)](_0x24885d);const _0x2df98d=await _0x284664[_0x5c2704(0x1b0)]();if(_0x2df98d){const _0x1f0977={};_0x1f0977[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x1f0977['message']=_0x5c2704(0x1c4)+_0x5674ae+_0x5c2704(0x18b),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1f0977,_0x26a945[_0x5c2704(0x24c)]),logger[_0x5c2704(0x23a)](_0x5c2704(0x1c4)+_0x5674ae+_0x5c2704(0x18b)),_0x54a859=!![];}else{const _0x3fefeb={};_0x3fefeb[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x3fefeb['message']=_0x26a945[_0x5c2704(0x1c0)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x3fefeb),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1c0)]);const _0x1893f5=_0x26a945['JeMLX'](_0x590919,null)&&_0x26a945[_0x5c2704(0x1cb)](_0x590919,undefined),_0x5afc76=_0x26a945[_0x5c2704(0x1c3)](subnets,null)&&_0x26a945['EfbgJ'](subnets,undefined)&&_0x26a945['jLBXe'](subnets['length'],0x0);if(_0x1893f5){_0x26a945[_0x5c2704(0x150)](_0x5afc76,![])&&(_0x24885d=_0x26a945[_0x5c2704(0x244)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945['Kuwrr'],_0x26a945[_0x5c2704(0x20f)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));const _0x241a6c=await _0x284664[_0x5c2704(0x1b3)](_0x590919);_0x26a945['TjCCO'](_0x241a6c,![])?(_0x24885d=_0x26a945[_0x5c2704(0x163)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x201)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):logger[_0x5c2704(0x23a)](_0x5c2704(0x18a)+_0x590919+'\x20');const _0x20d1f6=await _0x284664['isSubnetsValid'](subnets,_0x590919);_0x26a945[_0x5c2704(0x1a7)](_0x20d1f6[0x0],![])?(_0x24885d=_0x5c2704(0x245)+_0x20d1f6[0x1]+_0x5c2704(0x1af)+_0x590919+_0x5c2704(0x259),await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['cemMG'],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):logger[_0x5c2704(0x23a)](_0x5c2704(0x17b)+JSON[_0x5c2704(0x1cd)](subnets)+'\x20'),await _0x284664['setupNewCluster'](_0x590919,subnets);}else{const _0x214d9e=_0x26a945[_0x5c2704(0x202)]['split']('|');let _0x3b9994=0x0;while(!![]){switch(_0x214d9e[_0x3b9994++]){case'0':const _0x16e177={};_0x16e177[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x16e177[_0x5c2704(0x1e1)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e0648,_0x16e177);continue;case'1':logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x229)]);continue;case'2':const _0x51a776={};_0x51a776[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x51a776[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x1fd)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x51a776);continue;case'3':await _0x284664[_0x5c2704(0x206)]();continue;case'4':logger['info'](_0x26a945[_0x5c2704(0x1fd)]);continue;}break;}}}}_0x54a859&&_0x26a945[_0x5c2704(0x1f5)](_0x5f249d,AZURE)&&(global_registry[_0x5c2704(0x217)]=_0x18ad03[_0x5c2704(0x1aa)],await _0x284664[_0x5c2704(0x16a)](),await _0x284664[_0x5c2704(0x1cf)]());const [_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x2726b4,_0x2c3642]=await _0x26a945[_0x5c2704(0x213)](createK8sClient,_0x284664);_0x26a945['fQXJG'](_0x54a859,![])&&_0x26a945['QDMbH'](_0x5f249d,AWS)&&(_0x20b5e6=await _0x284664[_0x5c2704(0x13b)](_0x376c93,_0x1dd5d9));try{_0x1564a7=_0x26a945[_0x5c2704(0x254)](kebabCase,_0x5774a1),logger['info'](_0x26a945[_0x5c2704(0x1eb)]);const _0x190172={};_0x190172[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x190172[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x1eb)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x190172);if(_0x26a945[_0x5c2704(0x180)](_0x1564a7,_0x26a945['RbDOW'])){const _0x213a53={};_0x213a53[_0x5c2704(0x1e2)]=_0x26a945[_0x5c2704(0x185)],_0x213a53[_0x5c2704(0x205)]=_0x26a945[_0x5c2704(0x185)];const _0xaee292={};_0xaee292[_0x5c2704(0x1d3)]=_0x1564a7,_0xaee292[_0x5c2704(0x187)]=_0x213a53;const _0x5e105b={};_0x5e105b[_0x5c2704(0x1c6)]=_0xaee292;let _0x25af81=_0x5e105b;await _0x376c93['createNamespace'](_0x25af81),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1bf)]);}const _0xe75015={};_0xe75015['type']=WS_EVENTS[_0x5c2704(0x194)],_0xe75015[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x260)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0xe75015);const _0x118cac={};_0x118cac[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x118cac['message']=_0x26a945[_0x5c2704(0x1c1)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x118cac),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1dc)]);let _0x384073={};_0x26a945['wqqUq'](_0x5f249d,AZURE)&&(_0x384073={'clientId':await _0x284664[_0x5c2704(0x1ce)]('turboscale-managed-identity-'+_0x5674ae)});await _0x26a945[_0x5c2704(0x1a3)](addGridComponents,_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x1564a7,_0x5674ae,_0x20b5e6,_0x2726b4,_0x2c3642,_0x384073),_0x24885d=_0x26a945[_0x5c2704(0x19e)],logger[_0x5c2704(0x23a)](_0x24885d);const _0x3895a3={};_0x3895a3['type']=WS_EVENTS[_0x5c2704(0x194)],_0x3895a3[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x3895a3),_0x24885d=_0x26a945[_0x5c2704(0x189)],logger[_0x5c2704(0x23a)](_0x24885d);const _0x1b1fa1={};_0x1b1fa1[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x1b1fa1[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1b1fa1),await webSocketUtils[_0x5c2704(0x247)](0xea60);const _0x557b48=await _0x26a945['MwsZK'](getNamespaceUID,_0x376c93,_0x1564a7);let _0x3b7526=global_registry[_0x5c2704(0x171)]?_0x26a945[_0x5c2704(0x188)]:_0x26a945[_0x5c2704(0x243)],_0x40afcb=await _0x376c93[_0x5c2704(0x136)](_0x3b7526,_0x26a945[_0x5c2704(0x20d)]),_0x3f29f3=_0x284664[_0x5c2704(0x166)](_0x40afcb)+'/'+_0x1564a7,_0x40ca5f=_0x26a945[_0x5c2704(0x252)];try{const _0x5972d7={'url':_0x5c2704(0x152)+AG_API_URL+_0x5c2704(0x256)+_0x557b48,..._0x416183},_0x46f466=_0x5972d7,_0x5d8e8d=await _0x26a945[_0x5c2704(0x269)](promisifiedRequest,_0x46f466);(_0x26a945[_0x5c2704(0x208)](_0x5d8e8d,null)||_0x26a945['IIcyb'](_0x5d8e8d,undefined))&&(_0x24885d=_0x26a945[_0x5c2704(0x1f2)],await _0x26a945[_0x5c2704(0x137)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945['Kuwrr'],_0x26a945['bjMDi'],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));_0x26a945['IkmxJ'](_0x5d8e8d[_0x5c2704(0x1d4)],0x191)&&(_0x24885d=_0x26a945['pXJPX'],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x257)],_0x26a945['dYyGl']),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));_0x26a945['dDnCM'](_0x5d8e8d[_0x5c2704(0x1d4)],0xc8)&&(_0x24885d=_0x5c2704(0x153)+JSON[_0x5c2704(0x1cd)](_0x5d8e8d),await _0x26a945['sJlMF'](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x1dd)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1));const _0xc4b156=JSON[_0x5c2704(0x268)](_0x5d8e8d[_0x5c2704(0x22f)]);_0xc4b156[_0x5c2704(0x251)]&&(_0x3f29f3=_0xc4b156['route53'],_0x40ca5f=_0x26a945[_0x5c2704(0x1cc)]),global_registry[_0x5c2704(0x171)]&&(_0x40ca5f=_0x26a945[_0x5c2704(0x252)]);}catch(_0x26e3c7){}_0x24885d=_0x5c2704(0x20a)+_0x3f29f3+'\x20',logger[_0x5c2704(0x23a)](_0x24885d);const _0x45f598={};_0x45f598[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x45f598['message']=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x45f598),_0x24885d='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x40ca5f+_0x5c2704(0x1bc)+_0x3f29f3+'/wd/hub',logger['info'](_0x24885d);const _0x48f036={};_0x48f036[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x48f036[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x48f036);const _0x5138e7={};_0x5138e7[_0x5c2704(0x225)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5138e7[_0x5c2704(0x1e1)]=_0x5c2704(0x184)+_0x3f29f3,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x5138e7),await webSocketUtils[_0x5c2704(0x247)](0x7d0);}catch(_0x1e8078){if(_0x26a945[_0x5c2704(0x25a)](_0x54a859,![]))try{logger[_0x5c2704(0x23a)](_0x5c2704(0x1e8)),await _0x26a945[_0x5c2704(0x172)](removeGridComponents,_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x1564a7),await _0x284664[_0x5c2704(0x1ba)](_0x376c93,global_registry[_0x5c2704(0x232)]);}catch(_0x41e351){throw _0x41e351;}throw _0x1e8078;}}catch(_0x43b49d){const _0x16bf6a=_0x5c2704(0x265)+_0x43b49d+'\x20\x0a'+JSON[_0x5c2704(0x1cd)](_0x43b49d)+'\x20';if(_0x3e0648){const _0x290406={};_0x290406['type']=WS_EVENTS[_0x5c2704(0x194)],_0x290406['message']=_0x16bf6a,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x290406,_0x26a945[_0x5c2704(0x1e7)],!![]);}await webSocketUtils[_0x5c2704(0x247)](0x7d0);const _0x284361={};_0x284361[_0x5c2704(0x26d)]=_0x16bf6a,await _0x26a945[_0x5c2704(0x1a0)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945[_0x5c2704(0x1fe)],messageTypes[_0x5c2704(0x22e)],_0x26a945['tMWdt'],_0x284361,_0x1dd5d9),logger['error'](_0x16bf6a);}process['exit'](0x0);};
1
+ const a9_0x4d963e=a9_0x4de7;(function(_0x144430,_0x7957b0){const _0xa57e7e=a9_0x4de7,_0x49ceaa=_0x144430();while(!![]){try{const _0x44d873=parseInt(_0xa57e7e(0x11f))/0x1+parseInt(_0xa57e7e(0x122))/0x2+parseInt(_0xa57e7e(0x12f))/0x3*(-parseInt(_0xa57e7e(0x1b8))/0x4)+-parseInt(_0xa57e7e(0x192))/0x5*(-parseInt(_0xa57e7e(0x130))/0x6)+parseInt(_0xa57e7e(0x126))/0x7*(parseInt(_0xa57e7e(0x1d2))/0x8)+-parseInt(_0xa57e7e(0xaf))/0x9+-parseInt(_0xa57e7e(0x152))/0xa;if(_0x44d873===_0x7957b0)break;else _0x49ceaa['push'](_0x49ceaa['shift']());}catch(_0x1b529b){_0x49ceaa['push'](_0x49ceaa['shift']());}}}(a9_0x2d39,0xdc872));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a9_0x4d963e(0x120)),{v4:uuidv4}=require(a9_0x4d963e(0x12d)),webSocketUtils=require(a9_0x4d963e(0x18d)),{logger}=require(a9_0x4d963e(0x1a8)),{inputCloudProviderKeys}=require(a9_0x4d963e(0xb1)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x4d963e(0x125)),{getCloudProviderObject}=require(a9_0x4d963e(0x10a)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x4d963e(0x128)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x4d963e(0x16f)),{createK8sClient}=require(a9_0x4d963e(0x119)),{sendInstrumentationEvent}=require(a9_0x4d963e(0x115)),promisifiedRequest=util[a9_0x4d963e(0x1b3)](request);function a9_0x4de7(_0x14e6e9,_0x4cf617){const _0x2d394f=a9_0x2d39();return a9_0x4de7=function(_0x4de77b,_0x498b95){_0x4de77b=_0x4de77b-0xa9;let _0x5f1083=_0x2d394f[_0x4de77b];return _0x5f1083;},a9_0x4de7(_0x14e6e9,_0x4cf617);}exports['command']='grid',exports[a9_0x4d963e(0xcb)]=a9_0x4d963e(0x1a4),exports[a9_0x4d963e(0x1c7)]=function(_0x57a590){const _0x57b0d2=a9_0x4d963e,_0x2ca0b1={};_0x2ca0b1[_0x57b0d2(0x148)]=_0x57b0d2(0x12b),_0x2ca0b1['Fachw']='string',_0x2ca0b1[_0x57b0d2(0xc0)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2ca0b1['IKCas']=_0x57b0d2(0x181),_0x2ca0b1[_0x57b0d2(0xd1)]=_0x57b0d2(0xe2),_0x2ca0b1[_0x57b0d2(0x1b4)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2ca0b1[_0x57b0d2(0xac)]=_0x57b0d2(0x10e),_0x2ca0b1['NGYGi']=_0x57b0d2(0xf2);const _0x4dc6e4=_0x2ca0b1,_0x1b0447={};_0x1b0447['description']=_0x4dc6e4['bLSxG'],_0x1b0447[_0x57b0d2(0x19e)]=_0x4dc6e4['Fachw'];const _0x3b0588={};_0x3b0588[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0xc0)],_0x3b0588['type']=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x129da8={};_0x129da8[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0x1ac)],_0x129da8[_0x57b0d2(0x19e)]=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x59a60e={};_0x59a60e[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0xd1)],_0x59a60e['type']=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x35a981={};_0x35a981[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0x1b4)],_0x35a981['type']=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x5737be={};_0x5737be[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0xac)],_0x5737be[_0x57b0d2(0x19e)]=_0x4dc6e4['Fachw'];const _0x13facd={};return _0x13facd['grid-name']=_0x1b0447,_0x13facd[_0x57b0d2(0x105)]=_0x3b0588,_0x13facd['cluster-name']=_0x129da8,_0x13facd[_0x57b0d2(0x19f)]=_0x59a60e,_0x13facd[_0x57b0d2(0xf8)]=_0x35a981,_0x13facd['private-grid']=_0x5737be,_0x57a590[_0x57b0d2(0xe6)](HELP_HEADER_MESSAGE[_0x57b0d2(0xe8)])[_0x57b0d2(0x124)](HELP_FOOTER_MESSAGE)[_0x57b0d2(0x111)](_0x13facd)[_0x57b0d2(0xf2)](_0x4dc6e4[_0x57b0d2(0xdd)])[_0x57b0d2(0x194)];},exports['handler']=async function(_0x4d6030){const _0x11a267=a9_0x4d963e,_0x3a3ce4={'Xogey':'error','GuRgc':_0x11a267(0x1c2),'dxNqQ':_0x11a267(0x176),'JMfDQ':_0x11a267(0x12b),'arUaZ':'string','WhgHo':_0x11a267(0x131),'MOOdE':_0x11a267(0x181),'ctNxn':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','zxdKR':_0x11a267(0xff),'iGyyb':_0x11a267(0x10e),'qeyTU':_0x11a267(0xf2),'anhoW':_0x11a267(0x168),'LUvWt':_0x11a267(0x188),'jAUWt':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','xROLH':function(_0x53c6bc){return _0x53c6bc();},'LJUEB':function(_0xafb16d,_0xcda06){return _0xafb16d!==_0xcda06;},'pGJix':_0x11a267(0x14e),'iywcJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LrsKS':function(_0x35f9b1,_0x548130,_0x5d6349,_0x490ff6,_0x6215d5,_0x56e629,_0x47d528){return _0x35f9b1(_0x548130,_0x5d6349,_0x490ff6,_0x6215d5,_0x56e629,_0x47d528);},'isvwQ':_0x11a267(0xc1),'JrQXg':_0x11a267(0xda),'ccBoH':_0x11a267(0x163),'NJVAR':_0x11a267(0xea),'GLrHL':_0x11a267(0x1bf),'OToZK':function(_0x1556f1,_0x301b3c){return _0x1556f1===_0x301b3c;},'lgbqE':_0x11a267(0xd8),'auLME':'ptfsx','LDBpv':function(_0x59f741,_0x2ec0d1){return _0x59f741!==_0x2ec0d1;},'tTnyJ':'gDsci','zfYAo':_0x11a267(0xfd),'zACnP':function(_0x568c1a,_0x83d649,_0x4eb97e,_0x13561d,_0x113397,_0x27afef,_0x3eb6c0,_0x430160){return _0x568c1a(_0x83d649,_0x4eb97e,_0x13561d,_0x113397,_0x27afef,_0x3eb6c0,_0x430160);},'SdwUW':_0x11a267(0x175),'ZRkgR':_0x11a267(0x1a6),'hEUFf':_0x11a267(0x140),'vBnOd':_0x11a267(0x1cc),'zevvS':function(_0x237ccf,_0x370576){return _0x237ccf===_0x370576;},'spzub':_0x11a267(0x1a2),'UIhfA':_0x11a267(0x19a),'TvTOP':_0x11a267(0x11b),'EKWrI':'RxxNh','nMRAV':_0x11a267(0x118),'Hjdkn':function(_0x440b54,_0x11b864){return _0x440b54(_0x11b864);},'lTMVg':function(_0x50c73e,_0x263bbb){return _0x50c73e!==_0x263bbb;},'aGinf':_0x11a267(0x198),'BggkF':_0x11a267(0x113),'sFlro':function(_0x5ddf17,_0x5d5259,_0x2af2c6,_0x301a29,_0xef3a78,_0x21a724,_0x1c2f76,_0x510e00){return _0x5ddf17(_0x5d5259,_0x2af2c6,_0x301a29,_0xef3a78,_0x21a724,_0x1c2f76,_0x510e00);},'vIFJC':'create-grid-checks-null-response','fyvtl':function(_0x4bcaa5,_0x5b11d7){return _0x4bcaa5===_0x5b11d7;},'KGVJd':_0x11a267(0x18a),'BWOlE':_0x11a267(0x17e),'SBeih':_0x11a267(0x107),'mNsOz':function(_0x1e2e66,_0x41afed,_0x55e735,_0x2af11d,_0x355e5e,_0x3757ad,_0x184950,_0x30dfe8){return _0x1e2e66(_0x41afed,_0x55e735,_0x2af11d,_0x355e5e,_0x3757ad,_0x184950,_0x30dfe8);},'VUCYf':_0x11a267(0x173),'vTClC':function(_0x2b3de9,_0x2f4c32){return _0x2b3de9!==_0x2f4c32;},'qKhMa':'JojrP','dEZNt':_0x11a267(0x189),'frmgv':'Grid\x20profile\x20fetched\x20from\x20backend','jxGEi':function(_0x30834f,_0x56345a){return _0x30834f!==_0x56345a;},'IgcdD':_0x11a267(0xdb),'QTABV':_0x11a267(0xd6),'PhSJG':_0x11a267(0x1a5),'KkcAL':'create-grid-checks-grid-already-exists','Vzeoq':function(_0x1e5c6d,_0xb6a19f){return _0x1e5c6d!==_0xb6a19f;},'xQGzZ':_0x11a267(0xec),'RZlFv':function(_0x39bb59,_0x35a0d5){return _0x39bb59===_0x35a0d5;},'PbEtK':_0x11a267(0x10b),'vaLYG':function(_0x221fc2,_0x38a23b){return _0x221fc2===_0x38a23b;},'CnjIU':_0x11a267(0xfe),'GkJTq':_0x11a267(0x133),'iWZiz':_0x11a267(0x1b2),'yluSr':_0x11a267(0x141),'imXEI':function(_0x3e5c3b,_0x4801d4){return _0x3e5c3b===_0x4801d4;},'xNgkq':function(_0x3e89fb,_0x4ecbd6){return _0x3e89fb===_0x4ecbd6;},'kxuFF':function(_0x501c99,_0x2c6e9f){return _0x501c99===_0x2c6e9f;},'awFSA':_0x11a267(0xcc),'ulMOc':_0x11a267(0x14b),'tionc':function(_0x402c10,_0x258294){return _0x402c10===_0x258294;},'HORuX':_0x11a267(0x1b5),'xjUaZ':'iBLaA','hjwaJ':function(_0x40fdf3,_0x1c7667,_0x287100,_0x458baa,_0x483550,_0x3313e2,_0x1a7237,_0x44ab83,_0x26dd45,_0x5a7129,_0x2fd0c3,_0x36358b){return _0x40fdf3(_0x1c7667,_0x287100,_0x458baa,_0x483550,_0x3313e2,_0x1a7237,_0x44ab83,_0x26dd45,_0x5a7129,_0x2fd0c3,_0x36358b);},'oatXv':_0x11a267(0xb3),'CaeAn':function(_0x1cdb37,_0x367141,_0x350752,_0xadb06,_0xff5e18,_0xeeb0cf){return _0x1cdb37(_0x367141,_0x350752,_0xadb06,_0xff5e18,_0xeeb0cf);},'wAiUG':_0x11a267(0x1cb),'lPpGU':function(_0x10ace4,_0x4ff2b6){return _0x10ace4===_0x4ff2b6;},'XzzYv':function(_0x23ad53,_0x23fb68,_0x5555fd,_0x3dd1a3){return _0x23ad53(_0x23fb68,_0x5555fd,_0x3dd1a3);},'wMeoJ':function(_0x24a1fa){return _0x24a1fa();},'LSNuD':_0x11a267(0xd2),'TymTH':_0x11a267(0x10c),'FapUJ':function(_0x3e25cd,_0x5e557c){return _0x3e25cd===_0x5e557c;},'UUKbn':_0x11a267(0x145),'FrBSx':function(_0x5a481d,_0xcd83b3){return _0x5a481d!=_0xcd83b3;},'GMgak':function(_0x5b394c,_0x335402){return _0x5b394c!=_0x335402;},'GqenP':function(_0x4113cc,_0x43d331){return _0x4113cc>_0x43d331;},'XEQGC':function(_0x176832,_0x3d7001){return _0x176832===_0x3d7001;},'slLbS':_0x11a267(0x162),'mZwnU':_0x11a267(0x109),'PKlZo':_0x11a267(0x11a),'MBdsp':function(_0x30d8fe,_0x41b2a4,_0x4c2e87,_0x2f8912,_0x58be92,_0x17f898,_0x3a63b0,_0x11d49e){return _0x30d8fe(_0x41b2a4,_0x4c2e87,_0x2f8912,_0x58be92,_0x17f898,_0x3a63b0,_0x11d49e);},'bBHjv':_0x11a267(0x127),'LxaGM':function(_0x41d032,_0x631ef0){return _0x41d032===_0x631ef0;},'uVfdZ':function(_0xeb0a3f,_0x5efa87,_0x51a423,_0x29e2a6,_0x5e5081,_0x4f1960,_0x3f18b1,_0x1f06c3){return _0xeb0a3f(_0x5efa87,_0x51a423,_0x29e2a6,_0x5e5081,_0x4f1960,_0x3f18b1,_0x1f06c3);},'AnpcI':_0x11a267(0x161),'ipqQd':'2|1|4|3|0','kthDu':_0x11a267(0xe5),'armTC':_0x11a267(0x166),'VbbNN':function(_0x56d1e2,_0x27fc3c){return _0x56d1e2(_0x27fc3c);},'VkZLd':function(_0x13def3,_0xeae91b){return _0x13def3==_0xeae91b;},'MaMoO':function(_0x2b64b6,_0x55694a){return _0x2b64b6(_0x55694a);},'qvaUy':'Creating\x20namespace','wIFbL':'default','xzPne':'Browserstack','okMgj':'Namespace\x20Created','vCFaM':_0x11a267(0x146),'Echdk':_0x11a267(0x158),'GiaGv':_0x11a267(0xbf),'WPPxZ':function(_0x57fbde,_0x1b04f9,_0x4c2cea,_0x2ddb2a,_0x465a3c,_0x4d8955,_0x17e81f,_0x4d106b,_0x332730,_0x592361,_0x42630e){return _0x57fbde(_0x1b04f9,_0x4c2cea,_0x2ddb2a,_0x465a3c,_0x4d8955,_0x17e81f,_0x4d106b,_0x332730,_0x592361,_0x42630e);},'jeQtA':'Grid\x20spawned\x20on\x20the\x20cluster','zIKTB':_0x11a267(0x16e),'rQxFa':function(_0x25179a,_0x5e77b4,_0x340e12){return _0x25179a(_0x5e77b4,_0x340e12);},'pAArs':_0x11a267(0x135),'MjgCT':_0x11a267(0x156),'WvTAH':_0x11a267(0x1d5),'ESWNU':function(_0x4b1f00,_0x49071f){return _0x4b1f00==_0x49071f;},'vVLzG':function(_0x8db9c3,_0x172c75){return _0x8db9c3==_0x172c75;},'nGKJl':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','stnta':function(_0x5aa482,_0xa5d444,_0x473003,_0x18864c,_0x56e2de,_0x5e5cff,_0x476ec6,_0x5a1102){return _0x5aa482(_0xa5d444,_0x473003,_0x18864c,_0x56e2de,_0x5e5cff,_0x476ec6,_0x5a1102);},'UFoyO':_0x11a267(0x190),'HEpqs':function(_0xa063f7,_0x4f8a18){return _0xa063f7===_0x4f8a18;},'caNrR':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','MSMRj':function(_0x290e4d,_0x1e43c0,_0x28f5b2,_0x2c2083,_0x14fe31,_0x355f81,_0x13d410,_0x164ad){return _0x290e4d(_0x1e43c0,_0x28f5b2,_0x2c2083,_0x14fe31,_0x355f81,_0x13d410,_0x164ad);},'gFpGs':_0x11a267(0xc6),'eHUgv':function(_0xaded46,_0x40a75a){return _0xaded46!==_0x40a75a;},'DHCkt':function(_0x15ed4a,_0x4b4d6a,_0x5cc25e,_0x43d778,_0x5b48c7,_0xdba315,_0x453ebd,_0x3006a9){return _0x15ed4a(_0x4b4d6a,_0x5cc25e,_0x43d778,_0x5b48c7,_0xdba315,_0x453ebd,_0x3006a9);},'SeoAz':_0x11a267(0x1cf),'BAMoz':function(_0x4d98bc,_0x33d36c){return _0x4d98bc===_0x33d36c;},'fiSwL':function(_0x57e626,_0x389eea,_0x4a12a2,_0x354a5a,_0x450c4d,_0x1f5d33,_0x368ed0){return _0x57e626(_0x389eea,_0x4a12a2,_0x354a5a,_0x450c4d,_0x1f5d33,_0x368ed0);},'nKkim':'grid-spawning-failed'};let _0x154369=![],_0x4c6388,_0x3e80f3,_0x1db46b,_0x196ad2,_0x4ab34d,_0x2e8d0a,_0x4f55bc,_0x5bb483,_0x143875,_0x4e518c,_0x2d8c66,_0x54671b,_0x2808af=0x1,_0x140628=0xe;try{global_registry['requestId']=_0x3a3ce4['xROLH'](uuidv4),global_registry[_0x11a267(0x18e)]=![];!fs[_0x11a267(0x19d)](_0x3a3ce4[_0x11a267(0x1ad)](getCredentialsPath))&&(_0x3a3ce4['LJUEB'](_0x3a3ce4[_0x11a267(0xb8)],_0x3a3ce4[_0x11a267(0xb8)])?_0x520aea[_0x11a267(0xd9)](_0x11a267(0x139)+_0x1522c7+'\x20'):(console['error'](_0x3a3ce4[_0x11a267(0x104)]),await _0x3a3ce4['LrsKS'](sendInstrumentationEvent,_0x4d6030,_0x3a3ce4['isvwQ'],messageTypes['ERROR'],_0x3a3ce4[_0x11a267(0xeb)],null,_0x4d6030),process[_0x11a267(0x1b9)](0x1)));await _0x3a3ce4['LrsKS'](sendInstrumentationEvent,_0x4d6030,_0x3a3ce4[_0x11a267(0xb7)],messageTypes[_0x11a267(0x18b)],null,null,_0x4d6030);const _0x4f4a67=JSON['parse'](fs[_0x11a267(0x13a)](_0x3a3ce4['xROLH'](getCredentialsPath)));global_registry[_0x11a267(0xf4)]=_0x4f4a67[_0x11a267(0x121)]['username'],global_registry['bstackAccesskey']=_0x4f4a67['Browserstack'][_0x11a267(0xb5)];const _0x30d551=WS_ENDPOINT[_0x11a267(0xc3)](_0x3a3ce4[_0x11a267(0x1b1)],_0x4f4a67['Browserstack'][_0x11a267(0x143)])[_0x11a267(0xc3)](_0x3a3ce4[_0x11a267(0xe1)],_0x4f4a67['Browserstack'][_0x11a267(0xb5)]),_0x14f630={};_0x14f630[_0x11a267(0xc5)]=ws,_0x14f630[_0x11a267(0x11d)]=0x36ee80,_0x4e518c=new ReconnectingWebSocket(_0x30d551,[],_0x14f630),logger[_0x11a267(0x17a)](_0x3a3ce4[_0x11a267(0x1a9)]),webSocketUtils[_0x11a267(0x100)](_0x4e518c,_0x4d6030['user'],_0x4d6030[_0x11a267(0xb5)]);let _0xcd517a=DEFAULT_GRID_NAME;if(_0x4d6030[_0x11a267(0x110)]||_0x4d6030[_0x11a267(0x182)]||_0x4d6030['region']){if(_0x3a3ce4['OToZK'](_0x3a3ce4[_0x11a267(0x106)],_0x3a3ce4[_0x11a267(0xe0)]))_0xa87f4c[_0x11a267(0xd9)]('Found\x20Subnets:\x20'+_0x5ff540[_0x11a267(0xd3)](_0x43efb5)+'\x20');else{if(!(_0x4d6030[_0x11a267(0x110)]&&_0x4d6030[_0x11a267(0x182)]&&_0x4d6030[_0x11a267(0xf8)])){if(_0x3a3ce4[_0x11a267(0x147)](_0x3a3ce4[_0x11a267(0xf1)],_0x3a3ce4[_0x11a267(0xf1)])){const _0x1f6379={};_0x1f6379['type']=_0x2efc77[_0x11a267(0x134)],_0x1f6379[_0x11a267(0x1a3)]=_0x432750,_0x4006c9['sendEventToBackend'](_0x1ec01d,_0x1f6379,_0x3a3ce4[_0x11a267(0x1d8)],!![]);}else _0x4c6388=_0x3a3ce4[_0x11a267(0x13c)],await _0x3a3ce4['zACnP'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x1d7)],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1);}![AWS,AZURE,GCP][_0x11a267(0x136)](_0x4d6030['cloudProvider'][_0x11a267(0x16a)]())&&(_0x3a3ce4[_0x11a267(0x1c6)](_0x3a3ce4[_0x11a267(0xbb)],_0x3a3ce4['ZRkgR'])?(_0x4c6388=_0x3a3ce4[_0x11a267(0x129)],await _0x3a3ce4['zACnP'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0xc2)],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1)):_0x12291a['isPrivateGrid']=!![]);if(_0x4d6030[_0x11a267(0x167)]&&_0x3a3ce4['zevvS'](_0x4d6030['privateGrid']['toLowerCase'](),_0x3a3ce4[_0x11a267(0x172)])){if(_0x3a3ce4['LDBpv'](_0x3a3ce4[_0x11a267(0x16c)],_0x3a3ce4[_0x11a267(0x16c)])){const _0x22034e=_0x3a3ce4[_0x11a267(0x144)][_0x11a267(0x18f)]('|');let _0x15204b=0x0;while(!![]){switch(_0x22034e[_0x15204b++]){case'0':_0x40a605=_0x11a267(0x10f)+_0x395a02+_0x11a267(0xab)+_0x505a8a+'\x27';continue;case'1':_0x5d5e9c['hubVersion']=_0x278491[_0x11a267(0xce)];continue;case'2':_0x419060['clusterRegion']=_0xf48335;continue;case'3':const _0xccef6={};_0xccef6[_0x11a267(0x19e)]=_0x5bedc3['CLI_RUN_STARTED'],_0xccef6[_0x11a267(0x1a3)]=_0x11a267(0xe7),_0x167f28[_0x11a267(0x1ca)](_0xbc4a1a,_0xccef6);continue;case'4':_0x49ddc1[_0x11a267(0x16b)]=_0xb3dfa9['browserVersion'];continue;case'5':const _0x3c0328={};_0x3c0328['type']=_0x2953c8[_0x11a267(0x134)],_0x3c0328[_0x11a267(0x1a3)]=_0x3243fd,_0x5ccc4c[_0x11a267(0x1ca)](_0x26e664,_0x3c0328);continue;case'6':_0x587f66[_0x11a267(0x182)]=_0x8ac08c;continue;case'7':_0x436dac['clusterName']=_0x1a797c;continue;case'8':_0x42e335[_0x11a267(0xd9)](_0x4a147e);continue;}break;}}else global_registry[_0x11a267(0x18e)]=!![];}_0x154369=!![],_0x1db46b=_0x4d6030[_0x11a267(0x110)],_0x3e80f3=_0x4d6030['cloudProvider'][_0x11a267(0x16a)](),_0x196ad2=_0x4d6030['region'];}}if(_0x4d6030[_0x11a267(0xba)]){if(_0x3a3ce4[_0x11a267(0x196)](_0x3a3ce4[_0x11a267(0x19b)],_0x3a3ce4[_0x11a267(0xb9)]))throw _0x16ba1d;else _0xcd517a=_0x4d6030['gridName'];}global_registry[_0x11a267(0xba)]=_0xcd517a;const _0x3595e4={};_0x3595e4[_0x11a267(0x143)]=_0x4f4a67[_0x11a267(0x121)]['username'],_0x3595e4[_0x11a267(0xb5)]=_0x4f4a67['Browserstack'][_0x11a267(0xb5)];const _0x3333ec={};_0x3333ec[_0x11a267(0x17b)]=_0x3a3ce4['nMRAV'],_0x3333ec['auth']=_0x3595e4;const _0x360315=_0x3333ec,_0x2ecf29=_0x11a267(0xcd)+AG_API_URL+'/packages/cli/create-grid-checks',_0x3cbf42={};_0x3cbf42[_0x11a267(0xba)]=_0xcd517a;const _0x34e93b={'url':_0x2ecf29,'qs':_0x3cbf42,..._0x360315},_0x605e1e=_0x34e93b,_0x3c75cf=await _0x3a3ce4[_0x11a267(0x199)](promisifiedRequest,_0x605e1e);(_0x3a3ce4['zevvS'](_0x3c75cf,null)||_0x3a3ce4[_0x11a267(0x196)](_0x3c75cf,undefined))&&(_0x3a3ce4[_0x11a267(0x151)](_0x3a3ce4[_0x11a267(0x154)],_0x3a3ce4[_0x11a267(0x154)])?(_0x4be441=_0x316cb6[_0x11a267(0x186)],_0x43eb07=_0x3a3ce4['dxNqQ']):(_0x4c6388=_0x3a3ce4[_0x11a267(0x184)],await _0x3a3ce4[_0x11a267(0xbc)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x12e)],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process[_0x11a267(0x1b9)](0x1)));_0x3a3ce4[_0x11a267(0x1c6)](_0x3c75cf[_0x11a267(0x1d1)],0x191)&&(_0x3a3ce4[_0x11a267(0x137)](_0x3a3ce4[_0x11a267(0x117)],_0x3a3ce4[_0x11a267(0x165)])?_0x5111ca[_0x11a267(0x18e)]=!![]:(_0x4c6388=_0x3a3ce4['SBeih'],await _0x3a3ce4[_0x11a267(0x177)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4['VUCYf'],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process['exit'](0x1)));_0x3a3ce4[_0x11a267(0x15d)](_0x3c75cf[_0x11a267(0x1d1)],0xc8)&&(_0x3a3ce4[_0x11a267(0x103)](_0x3a3ce4[_0x11a267(0x12a)],_0x3a3ce4['qKhMa'])?_0x32ed81=_0x50cc92['gridName']:(_0x4c6388=_0x11a267(0x174)+JSON[_0x11a267(0xd3)](_0x3c75cf),await _0x3a3ce4[_0x11a267(0xbc)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4['dEZNt'],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process['exit'](0x1)));const _0x871f0f=JSON[_0x11a267(0x12c)](_0x3c75cf[_0x11a267(0x1c1)]),_0x557e8c={};_0x557e8c[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x1c0)],_0x557e8c[_0x11a267(0x1a3)]=_0x11a267(0xe7),webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x557e8c);const _0x12fba3={};_0x12fba3[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x12fba3[_0x11a267(0x1a3)]=_0x3a3ce4[_0x11a267(0x18c)],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x12fba3);if(_0x871f0f['alreadyPresent']){if(_0x3a3ce4[_0x11a267(0x15c)](_0x3a3ce4[_0x11a267(0x15e)],_0x3a3ce4[_0x11a267(0x17c)]))_0x4c6388=_0x3a3ce4[_0x11a267(0xf6)],await _0x3a3ce4[_0x11a267(0x177)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4['KkcAL'],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1);else{const _0x5e5e92={};_0x5e5e92[_0x11a267(0x1b0)]=_0x3a3ce4[_0x11a267(0x160)],_0x5e5e92[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x17b285={};_0x17b285[_0x11a267(0x1b0)]=_0x3a3ce4['WhgHo'],_0x17b285[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x163c4b={};_0x163c4b[_0x11a267(0x1b0)]=_0x3a3ce4['MOOdE'],_0x163c4b[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x1cdbf6={};_0x1cdbf6[_0x11a267(0x1b0)]=_0x3a3ce4[_0x11a267(0x1be)],_0x1cdbf6[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x47a2eb={};_0x47a2eb[_0x11a267(0x1b0)]=_0x3a3ce4[_0x11a267(0xe4)],_0x47a2eb['type']=_0x3a3ce4[_0x11a267(0x1aa)];const _0x500b86={};_0x500b86[_0x11a267(0x1b0)]=_0x3a3ce4['iGyyb'],_0x500b86['type']=_0x3a3ce4[_0x11a267(0x1aa)];const _0x56b025={};return _0x56b025[_0x11a267(0x1d0)]=_0x5e5e92,_0x56b025[_0x11a267(0x105)]=_0x17b285,_0x56b025[_0x11a267(0x185)]=_0x163c4b,_0x56b025[_0x11a267(0x19f)]=_0x1cdbf6,_0x56b025[_0x11a267(0xf8)]=_0x47a2eb,_0x56b025['private-grid']=_0x500b86,_0x243f7e[_0x11a267(0xe6)](_0x4b87c2[_0x11a267(0xe8)])[_0x11a267(0x124)](_0x10f4f7)[_0x11a267(0x111)](_0x56b025)[_0x11a267(0xf2)](_0x3a3ce4[_0x11a267(0x1a1)])[_0x11a267(0x194)];}}const _0x4fdf9f=_0x871f0f[_0x11a267(0x114)];let _0x2fdd3a=_0x4fdf9f[_0x871f0f[_0x11a267(0xd0)]];_0x4d6030[_0x11a267(0xcf)]&&(_0x3a3ce4['Vzeoq'](_0x3a3ce4['xQGzZ'],_0x3a3ce4[_0x11a267(0x1c9)])?_0xafa592=_0x3a3ce4[_0x11a267(0x1ae)]:_0x2fdd3a=_0x4fdf9f[_0x4d6030[_0x11a267(0xcf)]]);if(_0x3a3ce4['fyvtl'](_0x154369,![])){if(_0x3a3ce4[_0x11a267(0x1d6)](_0x3a3ce4[_0x11a267(0x108)],_0x3a3ce4[_0x11a267(0x108)])){if(_0x3a3ce4[_0x11a267(0x1c6)](_0x2fdd3a,undefined)){if(_0x3a3ce4[_0x11a267(0x179)](_0x3a3ce4[_0x11a267(0x1cd)],_0x3a3ce4[_0x11a267(0x1d4)])){const _0x392fc2={};_0x392fc2[_0x11a267(0x19e)]=_0x65a5c3[_0x11a267(0x134)],_0x392fc2[_0x11a267(0x1a3)]='Cluster\x20'+_0x125a0c+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x1415c4[_0x11a267(0x1ca)](_0x4d4173,_0x392fc2,_0x3a3ce4['LUvWt']),_0x545619[_0x11a267(0xd9)]('Cluster\x20'+_0x52134a+_0x11a267(0xde)),_0x20a260=!![];}else _0x4c6388=_0x3a3ce4[_0x11a267(0x1b7)],await _0x3a3ce4[_0x11a267(0x1ce)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes['ERROR'],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0xaa)],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process['exit'](0x1);}global_registry['gridProfileId']=_0x2fdd3a['id'];(_0x3a3ce4[_0x11a267(0x1bc)](_0x3e80f3,AZURE)||_0x3a3ce4[_0x11a267(0xb4)](_0x2fdd3a?.[_0x11a267(0x182)],AZURE))&&(_0x3a3ce4[_0x11a267(0xb0)](_0x3a3ce4[_0x11a267(0xc8)],_0x3a3ce4['ulMOc'])?_0x5ea728=_0x9912c1[_0xf71336[_0x11a267(0xcf)]]:(console[_0x11a267(0xae)](_0x3a3ce4[_0x11a267(0x14c)]),process[_0x11a267(0x1b9)](0x1)));_0x4c6388=_0x11a267(0xd4)+_0xcd517a+_0x11a267(0x16d)+_0x2fdd3a[_0x11a267(0x13d)]+_0x11a267(0x1c5),logger[_0x11a267(0xd9)](_0x4c6388);const _0x184a55={};_0x184a55[_0x11a267(0x19e)]=WS_EVENTS['LOG'],_0x184a55['message']=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x184a55),_0x3e80f3=_0x2fdd3a[_0x11a267(0x182)],_0x1db46b=_0x2fdd3a[_0x11a267(0x110)],_0x196ad2=_0x2fdd3a[_0x11a267(0xf8)],_0x4ab34d=_0x2fdd3a[_0x11a267(0xfa)],_0x2e8d0a=_0x2fdd3a[_0x11a267(0xf9)],_0x4f55bc=_0x2fdd3a['vpc'],securityGroups=_0x2fdd3a['securityGroups'],subnets=_0x2fdd3a[_0x11a267(0x116)],_0x5bb483=_0x2fdd3a[_0x11a267(0x17f)],_0x2808af=_0x2fdd3a[_0x11a267(0x159)],_0x140628=_0x2fdd3a[_0x11a267(0xbd)],_0x2d8c66=_0x871f0f['hubVersion'],_0x54671b=_0x871f0f[_0x11a267(0x16b)],_0x3a3ce4[_0x11a267(0x147)](_0x2fdd3a['privateGrid'],undefined)&&_0x2fdd3a[_0x11a267(0x167)]&&(_0x3a3ce4[_0x11a267(0x1af)](_0x3a3ce4[_0x11a267(0x132)],_0x3a3ce4['xjUaZ'])?_0x502f20['cloudProvider']={}:global_registry['isPrivateGrid']=!![]),_0x3a3ce4['hjwaJ'](updateGlobalRegistryWithConfig,_0x3e80f3,_0x1db46b,_0x196ad2,_0x4ab34d,_0x2e8d0a,_0x5bb483,_0x2fdd3a,_0x2d8c66,_0x54671b,_0x2808af,_0x140628);}else _0x5c2af9[_0x11a267(0xae)](_0x3a3ce4['jAUWt']),_0x55d545['exit'](0x1);}else{const _0x48324e=_0x3a3ce4['oatXv'][_0x11a267(0x18f)]('|');let _0x13607f=0x0;while(!![]){switch(_0x48324e[_0x13607f++]){case'0':_0x4c6388='Spawning\x20the\x20grid\x20'+_0xcd517a+_0x11a267(0xab)+_0x1db46b+'\x27';continue;case'1':global_registry['browserVersion']=_0x871f0f[_0x11a267(0x16b)];continue;case'2':logger[_0x11a267(0xd9)](_0x4c6388);continue;case'3':global_registry[_0x11a267(0x182)]=_0x3e80f3;continue;case'4':global_registry['clusterRegion']=_0x196ad2;continue;case'5':global_registry[_0x11a267(0xce)]=_0x871f0f[_0x11a267(0xce)];continue;case'6':const _0x6b09c5={};_0x6b09c5[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x1c0)],_0x6b09c5[_0x11a267(0x1a3)]='CLI\x20run\x20started',webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x6b09c5);continue;case'7':const _0x787d22={};_0x787d22[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x787d22[_0x11a267(0x1a3)]=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x787d22);continue;case'8':global_registry[_0x11a267(0x110)]=_0x1db46b;continue;}break;}}const _0x337e8b=_0x3a3ce4[_0x11a267(0x15a)](getCloudProviderObject,_0x3e80f3,_0x1db46b,_0xcd517a,_0x4e518c,webSocketUtils),_0x31366a=_0x4f4a67[_0x11a267(0x182)]||{};if(_0x3a3ce4['RZlFv'](_0x31366a[_0x3e80f3],undefined)){logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0xfc)]);_0x3a3ce4['lPpGU'](_0x4f4a67[_0x11a267(0x182)],undefined)&&(_0x4f4a67['cloudProvider']={});_0x4f4a67[_0x11a267(0x182)][_0x3e80f3]={};const _0x50c91a=await _0x3a3ce4['XzzYv'](inputCloudProviderKeys,_0x3e80f3,_0x4f4a67,_0x337e8b);fs['writeFileSync'](_0x3a3ce4[_0x11a267(0x153)](getCredentialsPath),JSON[_0x11a267(0xd3)](_0x50c91a)),logger['debug'](_0x3a3ce4[_0x11a267(0x17d)]);}else{_0x4c6388=_0x3a3ce4[_0x11a267(0xdc)];const _0xf01655={};_0xf01655[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0xf01655['message']=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0xf01655),logger[_0x11a267(0xd9)](_0x4c6388),await _0x337e8b[_0x11a267(0x13b)](_0x31366a);}_0x337e8b['configureIfNotConfigured']();let _0x138b7f;if(_0x3a3ce4[_0x11a267(0xef)](_0x154369,![])){_0x4c6388=_0x11a267(0x183)+_0x196ad2+').';const _0x578270={};_0x578270[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x578270['message']=_0x4c6388,webSocketUtils['sendEventToBackend'](_0x4e518c,_0x578270),logger[_0x11a267(0xd9)](_0x4c6388);const _0xa418b1=await _0x337e8b[_0x11a267(0x149)]();if(_0xa418b1){const _0x3b2d66={};_0x3b2d66[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x3b2d66[_0x11a267(0x1a3)]=_0x11a267(0xdf)+_0x1db46b+_0x11a267(0xde),webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x3b2d66,_0x3a3ce4[_0x11a267(0x1ba)]),logger[_0x11a267(0xd9)](_0x11a267(0xdf)+_0x1db46b+_0x11a267(0xde)),_0x154369=!![];}else{const _0x4a1e05={};_0x4a1e05[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x4a1e05[_0x11a267(0x1a3)]=_0x3a3ce4['UUKbn'],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x4a1e05),logger[_0x11a267(0xd9)](_0x3a3ce4['UUKbn']);const _0x194c31=_0x3a3ce4['FrBSx'](_0x4f55bc,null)&&_0x3a3ce4['vTClC'](_0x4f55bc,undefined),_0x3a1da5=_0x3a3ce4[_0x11a267(0x15b)](subnets,null)&&_0x3a3ce4[_0x11a267(0x15d)](subnets,undefined)&&_0x3a3ce4[_0x11a267(0x1ab)](subnets['length'],0x0);if(_0x194c31){_0x3a3ce4[_0x11a267(0x102)](_0x3a1da5,![])&&(_0x4c6388=_0x3a3ce4[_0x11a267(0xe3)],await _0x3a3ce4['mNsOz'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes['ERROR'],_0x3a3ce4['isvwQ'],_0x3a3ce4[_0x11a267(0x13f)],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1));const _0x31163c=await _0x337e8b[_0x11a267(0x1b6)](_0x4f55bc);_0x3a3ce4[_0x11a267(0x137)](_0x31163c,![])?(_0x4c6388=_0x3a3ce4[_0x11a267(0xd5)],await _0x3a3ce4[_0x11a267(0x1c8)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes['ERROR'],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x169)],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process[_0x11a267(0x1b9)](0x1)):logger[_0x11a267(0xd9)]('Found\x20VPC:\x20'+_0x4f55bc+'\x20');const _0x3855a4=await _0x337e8b[_0x11a267(0xb2)](subnets,_0x4f55bc);_0x3a3ce4[_0x11a267(0xbe)](_0x3855a4[0x0],![])?(_0x4c6388=_0x11a267(0x197)+_0x3855a4[0x1]+_0x11a267(0x178)+_0x4f55bc+_0x11a267(0xf7),await _0x3a3ce4['uVfdZ'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0xb6)],_0x3a3ce4['Xogey']),logger['error'](_0x4c6388),process['exit'](0x1)):logger[_0x11a267(0xd9)](_0x11a267(0xe9)+JSON['stringify'](subnets)+'\x20'),await _0x337e8b[_0x11a267(0x142)](_0x4f55bc,subnets);}else{const _0x178100=_0x3a3ce4['ipqQd'][_0x11a267(0x18f)]('|');let _0x52a092=0x0;while(!![]){switch(_0x178100[_0x52a092++]){case'0':logger[_0x11a267(0xd9)](_0x3a3ce4['kthDu']);continue;case'1':logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x195)]);continue;case'2':const _0x1387bd={};_0x1387bd[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x1387bd[_0x11a267(0x1a3)]=_0x3a3ce4[_0x11a267(0x195)],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1387bd);continue;case'3':const _0x5c2eca={};_0x5c2eca[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x5c2eca[_0x11a267(0x1a3)]=_0x11a267(0xe5),webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x5c2eca);continue;case'4':await _0x337e8b['setupNewCluster']();continue;}break;}}}}_0x154369&&_0x3a3ce4['lPpGU'](_0x3e80f3,AZURE)&&(global_registry[_0x11a267(0x155)]=_0x871f0f[_0x11a267(0x1c3)],await _0x337e8b[_0x11a267(0x112)](),await _0x337e8b['createOtherResources']());const [_0x3ecbe0,_0x4673d5,_0x19c36a,_0x48d772,_0x2dcb5a,_0x4b2158]=await _0x3a3ce4[_0x11a267(0x15f)](createK8sClient,_0x337e8b);_0x3a3ce4[_0x11a267(0xb4)](_0x154369,![])&&_0x3a3ce4[_0x11a267(0xee)](_0x3e80f3,AWS)&&(_0x138b7f=await _0x337e8b[_0x11a267(0x1c4)](_0x3ecbe0,_0x4d6030));try{_0x143875=_0x3a3ce4[_0x11a267(0x14a)](kebabCase,_0xcd517a),logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x1bb)]);const _0x1044ab={};_0x1044ab['type']=WS_EVENTS[_0x11a267(0x134)],_0x1044ab[_0x11a267(0x1a3)]=_0x3a3ce4['qvaUy'],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1044ab);if(_0x3a3ce4[_0x11a267(0x103)](_0x143875,_0x3a3ce4[_0x11a267(0x101)])){const _0x145bcc={};_0x145bcc['createdBy']=_0x3a3ce4['xzPne'],_0x145bcc[_0x11a267(0xca)]=_0x3a3ce4[_0x11a267(0x150)];const _0x190b0f={};_0x190b0f[_0x11a267(0x13d)]=_0x143875,_0x190b0f[_0x11a267(0x14d)]=_0x145bcc;const _0x59585e={};_0x59585e[_0x11a267(0x13e)]=_0x190b0f;let _0x19815e=_0x59585e;await _0x3ecbe0['createNamespace'](_0x19815e),logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x123)]);}const _0x1f236e={};_0x1f236e[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x1f236e[_0x11a267(0x1a3)]=_0x3a3ce4['vCFaM'],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1f236e);const _0x243eef={};_0x243eef[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x243eef['message']=_0x3a3ce4[_0x11a267(0x170)],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x243eef),logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x19c)]);let _0x4f5f0e={};_0x3a3ce4[_0x11a267(0x1af)](_0x3e80f3,AZURE)&&(_0x4f5f0e={'clientId':await _0x337e8b[_0x11a267(0x164)](_0x11a267(0xc4)+_0x1db46b)});await _0x3a3ce4[_0x11a267(0xad)](addGridComponents,_0x3ecbe0,_0x4673d5,_0x19c36a,_0x48d772,_0x143875,_0x1db46b,_0x138b7f,_0x2dcb5a,_0x4b2158,_0x4f5f0e),_0x4c6388=_0x3a3ce4['jeQtA'],logger['info'](_0x4c6388);const _0x2d2ea3={};_0x2d2ea3[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x2d2ea3[_0x11a267(0x1a3)]=_0x4c6388,webSocketUtils['sendEventToBackend'](_0x4e518c,_0x2d2ea3),_0x4c6388=_0x3a3ce4['zIKTB'],logger['info'](_0x4c6388);const _0x1377f1={};_0x1377f1[_0x11a267(0x19e)]=WS_EVENTS['LOG'],_0x1377f1['message']=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1377f1),await webSocketUtils[_0x11a267(0x193)](0xea60);const _0x2a8287=await _0x3a3ce4[_0x11a267(0xf0)](getNamespaceUID,_0x3ecbe0,_0x143875);let _0x22c8ab=global_registry[_0x11a267(0x18e)]?_0x3a3ce4['pAArs']:_0x3a3ce4[_0x11a267(0x191)],_0x204649=await _0x3ecbe0[_0x11a267(0xfb)](_0x22c8ab,_0x3a3ce4[_0x11a267(0xc9)]),_0x578488=_0x337e8b['getGridHostname'](_0x204649)+'/'+_0x143875,_0x200255=_0x3a3ce4[_0x11a267(0x1ae)];try{const _0x1f7521={'url':_0x11a267(0xcd)+AG_API_URL+_0x11a267(0xc7)+_0x2a8287,..._0x360315},_0x5234d0=_0x1f7521,_0x2719d2=await _0x3a3ce4[_0x11a267(0x14a)](promisifiedRequest,_0x5234d0);(_0x3a3ce4[_0x11a267(0x180)](_0x2719d2,null)||_0x3a3ce4['vVLzG'](_0x2719d2,undefined))&&(_0x4c6388=_0x3a3ce4[_0x11a267(0x171)],await _0x3a3ce4[_0x11a267(0x187)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4['isvwQ'],_0x3a3ce4['UFoyO'],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process[_0x11a267(0x1b9)](0x1));_0x3a3ce4[_0x11a267(0x10d)](_0x2719d2[_0x11a267(0x1d1)],0x191)&&(_0x4c6388=_0x3a3ce4[_0x11a267(0x1bd)],await _0x3a3ce4['MSMRj'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x14f)],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1));_0x3a3ce4['eHUgv'](_0x2719d2[_0x11a267(0x1d1)],0xc8)&&(_0x4c6388='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x2719d2),await _0x3a3ce4[_0x11a267(0xf5)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x157)],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1));const _0x392e16=JSON[_0x11a267(0x12c)](_0x2719d2[_0x11a267(0x1c1)]);_0x392e16[_0x11a267(0x186)]&&(_0x578488=_0x392e16['route53'],_0x200255=_0x3a3ce4['dxNqQ']),global_registry[_0x11a267(0x18e)]&&(_0x200255=_0x3a3ce4[_0x11a267(0x1ae)]);}catch(_0x134c2f){}_0x4c6388='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x578488+'\x20',logger[_0x11a267(0xd9)](_0x4c6388);const _0xf7a1cc={};_0xf7a1cc[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0xf7a1cc['message']=_0x4c6388,webSocketUtils['sendEventToBackend'](_0x4e518c,_0xf7a1cc),_0x4c6388=_0x11a267(0x11e)+_0x200255+'://'+_0x578488+_0x11a267(0xd7),logger[_0x11a267(0xd9)](_0x4c6388);const _0x2a2320={};_0x2a2320[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x2a2320[_0x11a267(0x1a3)]=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x2a2320);const _0x55f593={};_0x55f593['type']=WS_EVENTS['CLI_RUN_FINISHED'],_0x55f593[_0x11a267(0x1a3)]='CLI\x20run\x20finished:\x20'+_0x578488,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x55f593),await webSocketUtils[_0x11a267(0x193)](0x7d0);}catch(_0x5b4239){if(_0x3a3ce4[_0x11a267(0x1d3)](_0x154369,![]))try{logger[_0x11a267(0xd9)](_0x11a267(0x1a0)),await _0x3a3ce4[_0x11a267(0x15a)](removeGridComponents,_0x3ecbe0,_0x4673d5,_0x19c36a,_0x48d772,_0x143875),await _0x337e8b['deleteCluster'](_0x3ecbe0,global_registry[_0x11a267(0xed)]);}catch(_0x340c1a){throw _0x340c1a;}throw _0x5b4239;}}catch(_0x4024d4){const _0x3a5a54=_0x11a267(0x138)+_0x4024d4+'\x20\x0a'+JSON[_0x11a267(0xd3)](_0x4024d4)+'\x20';if(_0x4e518c){const _0x55b36c={};_0x55b36c[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x55b36c[_0x11a267(0x1a3)]=_0x3a5a54,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x55b36c,_0x3a3ce4[_0x11a267(0x1d8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x9b15a5={};_0x9b15a5[_0x11a267(0xae)]=_0x3a5a54,await _0x3a3ce4[_0x11a267(0x11c)](sendInstrumentationEvent,_0x4d6030,_0x3a3ce4['isvwQ'],messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xa9)],_0x9b15a5,_0x4d6030),logger[_0x11a267(0xae)](_0x3a5a54);}process[_0x11a267(0x1b9)](0x0);};function a9_0x2d39(){const _0x5c3dca=['CLI_RUN_STARTED','body','3|0|8|5|6|2|7|1|4','s3BucketName','setupAutoscaler','\x27\x20grid\x20profile','OToZK','builder','MBdsp','xQGzZ','sendEventToBackend','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','non-aws-azure-cluster','CnjIU','zACnP','get-grid-url-non-200','grid-name','statusCode','1458008WOCsjq','BAMoz','GkJTq','ingress-nginx','RZlFv','SdwUW','Xogey','nKkim','yluSr','\x20in\x20existing\x20cluster\x20\x27','BjTDp','WPPxZ','error','2346300FtzvxH','kxuFF','../../utils/userInput','isSubnetsValid','6|0|2|7|3|4|8|5|1','xNgkq','password','AnpcI','isvwQ','pGJix','EKWrI','gridName','ZRkgR','sFlro','maxNodes','LxaGM','Spawning\x20Grid\x20on\x20the\x20Cluster','vIlBM','create-grid-called','vBnOd','replace','turboscale-managed-identity-','WebSocket','get-grid-url-auth-failed','/packages/cli/get-grid-url?gridIdentifier=','awFSA','WvTAH','managedBy','desc','lUTBJ','https://','hubVersion','gridProfile','defaultGridProfile','LMCRI','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','stringify','Will\x20be\x20spawning\x20the\x20grid\x20','PKlZo','nhKgM','/wd/hub','MqsBd','info','init-not-called','SJVLI','TymTH','NGYGi','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Cluster\x20','auLME','NJVAR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','slLbS','zxdKR','Cluster\x20created\x20successfully','usage','CLI\x20run\x20started','create','Found\x20Subnets:\x20','<PasswordPlaceholder>','JrQXg','vftPk','clusterRegion','VkZLd','FapUJ','rQxFa','tTnyJ','help','ERROR','bstackUsername','DHCkt','PhSJG','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','region','instanceType','concurrency','readNamespacedService','wAiUG','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cNBHO','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','addListeners','wIFbL','XEQGC','LJUEB','iywcJ','grid-profile','lgbqE','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','PbEtK','pre-spawned-subnets-not-selected','../../cloudproviders/utils','QclrJ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','HEpqs','Create\x20a\x20private/public\x20grid.','Spawning\x20the\x20grid\x20','clusterName','options','updatePreSpawnedCluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfiles','../../utils/instrumentationUtils','subnets','KGVJd','GET','../../utils/createk8sClient','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','VxXxn','fiSwL','connectionTimeout','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','1761411lBDbFx','request','Browserstack','1225022rWwGcU','okMgj','epilogue','../../utils/utilityMethods','35AUVkKj','pre-spawned-invalid-vpc','../../config/constants','hEUFf','qKhMa','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','parse','uuid','vIFJC','15stgfXU','12FBaISd','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HORuX','txHCX','LOG','private-ingress-nginx-controller','includes','fyvtl','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Found\x20VPC:\x20','readFileSync','fetchLocalCreds','zfYAo','name','metadata','mZwnU','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','create-grid-checks-invalid-profile','setupNewCluster','username','GuRgc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Namespace\x20created','LDBpv','bLSxG','isClusterPresent','MaMoO','aGOZh','jAUWt','annotations','YcoPr','gFpGs','xzPne','lTMVg','6183140MVRysW','wMeoJ','aGinf','s3Bucket','ingress-nginx-controller','SeoAz','Spawning\x20grid\x20on\x20to\x20the\x20cluster','minNodes','CaeAn','GMgak','jxGEi','vTClC','IgcdD','VbbNN','JMfDQ','pre-spawned-invalid-subnets','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','<UsernamePlaceholder>','getResourceClientId','BWOlE','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.','privateGrid','http','bBHjv','toLowerCase','browserVersion','UIhfA','\x20using\x20\x27','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','../../utils/gridComponents','Echdk','nGKJl','spzub','create-grid-checks-auth-failed','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','prespawned-cluster-args-not-passed','https','mNsOz','\x20are\x20not\x20present\x20in\x20VPC:\x20','vaLYG','debug','method','QTABV','LSNuD','goVPY','s3bucket','ESWNU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cloudProvider','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','BggkF','cluster-name','route53','stnta','warn','create-grid-checks-non-200','NGxUG','INFO','frmgv','../../utils/webSocketUtils','isPrivateGrid','split','get-grid-url-null-response','MjgCT','413760AzKcSQ','delay','argv','armTC','zevvS','Subnets:\x20','jxzjl','Hjdkn','SOLXK','TvTOP','GiaGv','existsSync','type','cloud-provider','Deleting\x20the\x20CloudFormation\x20Stacks','qeyTU','true','message','Create\x20a\x20new\x20Automation\x20grid.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','TBoab','Fachw','../../config/logger','GLrHL','arUaZ','GqenP','IKCas','xROLH','anhoW','tionc','description','ccBoH','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','promisify','hqrHu','EUuLq','isVPCPresent','iWZiz','1334708CWuhpD','exit','LUvWt','qvaUy','imXEI','caNrR','ctNxn','Adding\x20Websocket\x20listeners'];a9_0x2d39=function(){return _0x5c3dca;};return a9_0x2d39();}
@@ -1 +1 @@
1
- function a11_0x468c(_0x20925f,_0x11e40b){const _0xc7ee5=a11_0xc7ee();return a11_0x468c=function(_0x468c05,_0x12c1d0){_0x468c05=_0x468c05-0x1ac;let _0x468790=_0xc7ee5[_0x468c05];return _0x468790;},a11_0x468c(_0x20925f,_0x11e40b);}const a11_0xa2b006=a11_0x468c;(function(_0x573440,_0x303063){const _0x3b7d59=a11_0x468c,_0x4ea20f=_0x573440();while(!![]){try{const _0x16f8b2=-parseInt(_0x3b7d59(0x1b2))/0x1+-parseInt(_0x3b7d59(0x1b3))/0x2+parseInt(_0x3b7d59(0x1be))/0x3*(-parseInt(_0x3b7d59(0x1b1))/0x4)+parseInt(_0x3b7d59(0x1b7))/0x5*(-parseInt(_0x3b7d59(0x1b6))/0x6)+-parseInt(_0x3b7d59(0x1c0))/0x7*(-parseInt(_0x3b7d59(0x1ba))/0x8)+parseInt(_0x3b7d59(0x1bd))/0x9+-parseInt(_0x3b7d59(0x1b0))/0xa*(-parseInt(_0x3b7d59(0x1ae))/0xb);if(_0x16f8b2===_0x303063)break;else _0x4ea20f['push'](_0x4ea20f['shift']());}catch(_0x4f3514){_0x4ea20f['push'](_0x4ea20f['shift']());}}}(a11_0xc7ee,0xd9685));function a11_0xc7ee(){const _0x39edb6=['../config/constants','1482390LHPcgR','67266cMFDHE','strict','6104182XYYYYM','demandCommand','handler','delete_commands','delete','List\x20Grid\x20resources.','27632tkfvOC','QAhlC','18940AuaFgn','8xjERrU','1776230SyJWiM','3504858EFRowk','command','epilogue','12CIogpI','3326150gxmKCv','help','builder','8JQBIoh','hLLVO'];a11_0xc7ee=function(){return _0x39edb6;};return a11_0xc7ee();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0xa2b006(0x1bc));exports[a11_0xa2b006(0x1b4)]='delete',exports['desc']=a11_0xa2b006(0x1ad),exports[a11_0xa2b006(0x1b9)]=function(_0x27a0a3){const _0x3f6512=a11_0xa2b006,_0x31bbd3={};_0x31bbd3[_0x3f6512(0x1bb)]=_0x3f6512(0x1c3),_0x31bbd3['QAhlC']='help';const _0x5b7147=_0x31bbd3;return _0x27a0a3['usage'](HELP_HEADER_MESSAGE[_0x3f6512(0x1ac)])[_0x3f6512(0x1b5)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5b7147[_0x3f6512(0x1bb)])[_0x3f6512(0x1c1)]()['recommendCommands']()[_0x3f6512(0x1bf)]()[_0x3f6512(0x1b8)](_0x5b7147[_0x3f6512(0x1af)]);},exports[a11_0xa2b006(0x1c2)]=function(_0x3087d7){};
1
+ const a10_0xcb553c=a10_0x1f3d;(function(_0x27df8d,_0x5cc078){const _0x362d59=a10_0x1f3d,_0x572568=_0x27df8d();while(!![]){try{const _0x24f1fa=parseInt(_0x362d59(0x7d))/0x1+-parseInt(_0x362d59(0x75))/0x2+-parseInt(_0x362d59(0x73))/0x3+parseInt(_0x362d59(0x79))/0x4*(-parseInt(_0x362d59(0x78))/0x5)+parseInt(_0x362d59(0x6a))/0x6+parseInt(_0x362d59(0x7a))/0x7*(-parseInt(_0x362d59(0x7c))/0x8)+parseInt(_0x362d59(0x70))/0x9;if(_0x24f1fa===_0x5cc078)break;else _0x572568['push'](_0x572568['shift']());}catch(_0x591740){_0x572568['push'](_0x572568['shift']());}}}(a10_0x58b8,0x9545f));function a10_0x58b8(){const _0x4769c2=['help','recommendCommands','delete_commands','NMAFv','21933567UMtKzG','strict','command','2370714GaIfkT','builder','549792pGUfgL','demandCommand','HOmeC','205FtDkGh','62796ISRutp','161wvbcUB','delete','318376iusPIF','245168elDVRm','desc','3319896HgUGJv','usage'];a10_0x58b8=function(){return _0x4769c2;};return a10_0x58b8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x1f3d(_0x5aba8c,_0x38d140){const _0x58b81d=a10_0x58b8();return a10_0x1f3d=function(_0x1f3d34,_0x57817c){_0x1f3d34=_0x1f3d34-0x69;let _0x38b8ad=_0x58b81d[_0x1f3d34];return _0x38b8ad;},a10_0x1f3d(_0x5aba8c,_0x38d140);}exports[a10_0xcb553c(0x72)]=a10_0xcb553c(0x7b),exports[a10_0xcb553c(0x69)]='List\x20Grid\x20resources.',exports[a10_0xcb553c(0x74)]=function(_0xa53a97){const _0x176c17=a10_0xcb553c,_0x5379f3={};_0x5379f3['NMAFv']=_0x176c17(0x6e),_0x5379f3[_0x176c17(0x77)]=_0x176c17(0x6c);const _0x48fdf6=_0x5379f3;return _0xa53a97[_0x176c17(0x6b)](HELP_HEADER_MESSAGE[_0x176c17(0x7b)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x48fdf6[_0x176c17(0x6f)])[_0x176c17(0x76)]()[_0x176c17(0x6d)]()[_0x176c17(0x71)]()[_0x176c17(0x6c)](_0x48fdf6['HOmeC']);},exports['handler']=function(_0x3e4e71){};
@@ -1 +1 @@
1
- function a12_0x58aa(_0x481350,_0x383976){const _0x5d5967=a12_0x5d59();return a12_0x58aa=function(_0x58aa07,_0x41f742){_0x58aa07=_0x58aa07-0x172;let _0x6a0c36=_0x5d5967[_0x58aa07];return _0x6a0c36;},a12_0x58aa(_0x481350,_0x383976);}const a12_0x592975=a12_0x58aa;(function(_0x14c474,_0x486abf){const _0x40738d=a12_0x58aa,_0x5c80c1=_0x14c474();while(!![]){try{const _0x5958ff=-parseInt(_0x40738d(0x1e4))/0x1+parseInt(_0x40738d(0x1a4))/0x2+-parseInt(_0x40738d(0x187))/0x3+parseInt(_0x40738d(0x197))/0x4+-parseInt(_0x40738d(0x1f7))/0x5+parseInt(_0x40738d(0x1db))/0x6*(parseInt(_0x40738d(0x1a2))/0x7)+parseInt(_0x40738d(0x1c1))/0x8;if(_0x5958ff===_0x486abf)break;else _0x5c80c1['push'](_0x5c80c1['shift']());}catch(_0x44c2a4){_0x5c80c1['push'](_0x5c80c1['shift']());}}}(a12_0x5d59,0x629d8));function a12_0x5d59(){const _0x279541=['QxvLu','taFwK','UgYut','hpwVZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','Niqpp','deleteCluster','ySfbI','RgBzX','2777384ZyIhro','WTpPB','bchad','statusCode','hgoNH','../../config/logger','IdidF','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','aKqOJ','hKZMK','configureIfNotConfigured','CbbBA','JDlEu','IWiow','pyGix','invalid-input','unknown-error','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x22\x20with\x20ID\x20','yvIEn','sMPRQ','INFO','toLowerCase','message','Cluster:\x20','name','1698NMuexw','ozSOP','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','drxvB','DzKOK','string','method','zFBSW','532652IlmKxp','delete-grid-called','BoxlA','LAhoD','eSPHO','kxTPe','grid','cloudProvider','qJVZn','error','ykyQW','requestId','Succesfully\x20deleted\x20the\x20grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','HmmHV','AzLGk','parse','argv','/packages/cli/grid/','327995xcSRmY','eobrL','\x22\x20and\x20ID\x20','epilogue','server-error','grid-id','imBcC','CeQGo','warn','SMbSA','exit','BoULK','QdKRz','Browserstack','tsUWO','stringify','delete','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/userInput','command','spZoB','gridId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','desc','Delete\x20an\x20Automation\x20grid.','password','debug','Failed\x20to\x20delete\x20resources!\x20Error:\x20','init-not-called','bqxwY','kzCUC','existsSync','TrrZN','../../utils/gridComponents','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','info','fvYjW','wDuVa','2382147cUxtHD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','isBrowserstackCluster','uuid','writeFileSync','unauthorised','RPmDC','type','DELETE','onlyGridInCluster','fetchLocalCreds','rNnLE','csGIa','../../utils/instrumentationUtils','nqRVu','3118332xzeuHt','voYer','auth','help','../../cloudproviders/utils','HAZRK','util','kvixw','egPBG','stack','kXxXT','10661ZXUkQw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','476926eqNExF','usage','yAaBw','wHAdV','nSQhs','yciyf','qgBKP','lqwMJ','zdIeG','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../../utils/createk8sClient','body','xPufZ','qAZjl','ZdfqD','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','clusterName','clusterId','username'];a12_0x5d59=function(){return _0x279541;};return a12_0x5d59();}const fs=require('fs'),util=require(a12_0x592975(0x19d)),request=require('request'),{v4:uuidv4}=require(a12_0x592975(0x18b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x592975(0x1c6)),{getCloudProviderObject}=require(a12_0x592975(0x19b)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x592975(0x182)),{sendInstrumentationEvent}=require(a12_0x592975(0x195)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x592975(0x173)),{createK8sClient}=require(a12_0x592975(0x1ae)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util['promisify'](request);exports[a12_0x592975(0x174)]=a12_0x592975(0x1ea),exports[a12_0x592975(0x178)]=a12_0x592975(0x179),exports['builder']=function(_0x455b47){const _0x2d4acf=a12_0x592975,_0x24a70b={};_0x24a70b['QxvLu']=_0x2d4acf(0x1d2),_0x24a70b[_0x2d4acf(0x1d5)]=_0x2d4acf(0x1e1),_0x24a70b['eSPHO']=_0x2d4acf(0x19a);const _0x4bdb6f=_0x24a70b,_0xabcdaa={};_0xabcdaa[_0x2d4acf(0x1dd)]=_0x4bdb6f[_0x2d4acf(0x1b7)],_0xabcdaa[_0x2d4acf(0x18f)]=_0x4bdb6f[_0x2d4acf(0x1d5)];const _0x5ee538={};return _0x5ee538['grid-id']=_0xabcdaa,_0x455b47['usage'](HELP_HEADER_MESSAGE[_0x2d4acf(0x207)])[_0x2d4acf(0x1fa)](HELP_FOOTER_MESSAGE)['options'](_0x5ee538)[_0x2d4acf(0x19a)](_0x4bdb6f[_0x2d4acf(0x1e8)])['argv'];},exports['handler']=async function(_0x21feb1){const _0xcfa034=a12_0x592975,_0x2bda73={'RPmDC':'Pass\x20the\x20ID\x20of\x20the\x20Grid','rNnLE':_0xcfa034(0x1e1),'TrrZN':_0xcfa034(0x19a),'wDuVa':_0xcfa034(0x1b3),'CCiui':function(_0x36dced){return _0x36dced();},'fvYjW':function(_0x15ca1b){return _0x15ca1b();},'hpwVZ':function(_0x420010,_0x6b22cb){return _0x420010!==_0x6b22cb;},'ySfbI':_0xcfa034(0x1cd),'yciyf':'lMXPs','qgBKP':_0xcfa034(0x1bb),'SMbSA':function(_0x3c5370,_0x9a8028,_0x128937,_0x248e3d,_0x2a42d0,_0x422782,_0x23ae91){return _0x3c5370(_0x9a8028,_0x128937,_0x248e3d,_0x2a42d0,_0x422782,_0x23ae91);},'kzCUC':_0xcfa034(0x1e5),'IdidF':_0xcfa034(0x17d),'IWiow':function(_0xf1f9a1,_0x39e1c5,_0x8e4d6f,_0x5eb57c,_0x25de66,_0x1bedaa,_0x116c9f){return _0xf1f9a1(_0x39e1c5,_0x8e4d6f,_0x5eb57c,_0x25de66,_0x1bedaa,_0x116c9f);},'nSQhs':_0xcfa034(0x1b1),'qJVZn':_0xcfa034(0x1b2),'ozSOP':function(_0x416b1d,_0x36e6e3,_0x5d0103,_0x4c92db){return _0x416b1d(_0x36e6e3,_0x5d0103,_0x4c92db);},'CbbBA':function(_0x3c3b37,_0x17eeee){return _0x3c3b37===_0x17eeee;},'HAZRK':_0xcfa034(0x204),'zFBSW':_0xcfa034(0x1b9),'BoxlA':function(_0x63ad5b,_0x11efb0){return _0x63ad5b(_0x11efb0);},'AzLGk':function(_0x366711,_0x2f0720){return _0x366711===_0x2f0720;},'spZoB':function(_0x3db54f,_0x52824b){return _0x3db54f===_0x52824b;},'hKZMK':_0xcfa034(0x1fe),'csGIa':_0xcfa034(0x177),'EKJaI':function(_0x25dc5c,_0x3b962a,_0x2e5621,_0x26bff4,_0x36fd79,_0x14b25b,_0x326ab8){return _0x25dc5c(_0x3b962a,_0x2e5621,_0x26bff4,_0x36fd79,_0x14b25b,_0x326ab8);},'yAaBw':_0xcfa034(0x1d0),'ykyQW':function(_0x2fdf60,_0x1a5c83){return _0x2fdf60===_0x1a5c83;},'voYer':function(_0x4b5d57,_0x14dc94){return _0x4b5d57!==_0x14dc94;},'lqwMJ':_0xcfa034(0x1b0),'tsUWO':_0xcfa034(0x1c0),'hgoNH':function(_0xaba775,_0x238d9b,_0x2c5847,_0xf9c1fd){return _0xaba775(_0x238d9b,_0x2c5847,_0xf9c1fd);},'LAhoD':function(_0x327742,_0x190de4){return _0x327742!==_0x190de4;},'drxvB':_0xcfa034(0x1c3),'nqRVu':_0xcfa034(0x1b8),'imBcC':_0xcfa034(0x1ad),'eobrL':function(_0xdb00fd,_0x48c293){return _0xdb00fd===_0x48c293;},'kxTPe':_0xcfa034(0x1f2),'DzKOK':_0xcfa034(0x17e),'KqUym':function(_0x3a325f){return _0x3a325f();},'QdKRz':_0xcfa034(0x1c8),'DfNZk':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','KotQG':function(_0xd29b3a,_0x348333){return _0xd29b3a(_0x348333);},'pyGix':function(_0x419575,_0xac2e2a,_0x803601,_0xb11c2b,_0x5164e3,_0x35acb1){return _0x419575(_0xac2e2a,_0x803601,_0xb11c2b,_0x5164e3,_0x35acb1);},'yvIEn':_0xcfa034(0x190),'zdIeG':function(_0x5e4909,_0x168c2a){return _0x5e4909(_0x168c2a);},'aKqOJ':function(_0x8a1632,_0x4fbf70){return _0x8a1632!==_0x4fbf70;},'WTpPB':_0xcfa034(0x1fb),'egPBG':function(_0x23cfeb,_0x57aa48,_0x565c1f,_0x500a8c,_0x2acbb2,_0x56992c,_0x1ad281){return _0x23cfeb(_0x57aa48,_0x565c1f,_0x500a8c,_0x2acbb2,_0x56992c,_0x1ad281);},'wHAdV':_0xcfa034(0x18d),'kvixw':'invalid-grid-id','kXxXT':function(_0xa57869,_0x57912e,_0x4e2bbe,_0x3b6a62,_0x46274e,_0x1ab07e,_0x4489c6){return _0xa57869(_0x57912e,_0x4e2bbe,_0x3b6a62,_0x46274e,_0x1ab07e,_0x4489c6);},'Niqpp':function(_0x597a9c,_0x526bd3,_0xfc4a91,_0x9a9e7f,_0x148b64,_0x59165b,_0x23f406){return _0x597a9c(_0x526bd3,_0xfc4a91,_0x9a9e7f,_0x148b64,_0x59165b,_0x23f406);},'BoULK':_0xcfa034(0x1d1)};try{global_registry[_0xcfa034(0x1ef)]=_0x2bda73['CCiui'](uuidv4);!fs[_0xcfa034(0x180)](_0x2bda73[_0xcfa034(0x185)](getCredentialsPath))&&(_0x2bda73['hpwVZ'](_0x2bda73[_0xcfa034(0x1bf)],_0x2bda73[_0xcfa034(0x1a9)])?(console[_0xcfa034(0x1ed)](_0x2bda73[_0xcfa034(0x1aa)]),await _0x2bda73[_0xcfa034(0x200)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x1c7)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1)):_0x24d35b[_0xcfa034(0x1ff)](_0xcfa034(0x1d9)+_0x293933[_0xcfa034(0x1b4)]+_0xcfa034(0x188)));_0x2bda73[_0xcfa034(0x1ce)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1d6)],null,null,_0x21feb1);!_0x21feb1[_0xcfa034(0x176)]&&(_0x2bda73[_0xcfa034(0x1ba)](_0x2bda73[_0xcfa034(0x1a8)],_0x2bda73[_0xcfa034(0x1ec)])?(console[_0xcfa034(0x1ed)](_0x2bda73[_0xcfa034(0x186)]),process[_0xcfa034(0x201)](0x1)):_0x204dcd[_0xcfa034(0x1eb)]={});const _0x4dcd10=JSON['parse'](fs['readFileSync'](_0x2bda73[_0xcfa034(0x185)](getCredentialsPath))),[_0xde9e3b,_0x5076f3]=await _0x2bda73[_0xcfa034(0x1dc)](getGridDetails,_0x4dcd10['Browserstack'][_0xcfa034(0x1b6)],_0x4dcd10[_0xcfa034(0x204)][_0xcfa034(0x17a)],_0x21feb1['gridId']);if(_0x5076f3){const _0xc56907=_0x5076f3[_0xcfa034(0x184)];let _0x410f11=_0xcfa034(0x172)+_0xc56907['name']+_0xcfa034(0x1f9)+_0xc56907['id']+_0xcfa034(0x183),_0x1ccd79;_0x5076f3['onlyGridInCluster']&&_0x2bda73['CbbBA'](_0x5076f3['clusterSpawnedVia'],_0x2bda73[_0xcfa034(0x19c)])&&(_0x2bda73[_0xcfa034(0x1cc)](_0x2bda73['zFBSW'],_0x2bda73[_0xcfa034(0x1e3)])?_0x410f11=_0xcfa034(0x172)+_0xc56907[_0xcfa034(0x1da)]+'\x22\x20and\x20ID\x20'+_0xc56907['id']+_0xcfa034(0x1f1)+_0xc56907[_0xcfa034(0x1b4)]+'\x22\x20with\x20ID\x20'+_0xc56907[_0xcfa034(0x1b5)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':_0x309c23='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x359544[_0xcfa034(0x1da)]+_0xcfa034(0x1f9)+_0x4ad9c4['id']+_0xcfa034(0x1f1)+_0x5958a3['clusterName']+_0xcfa034(0x1d3)+_0x43c35a[_0xcfa034(0x1b5)]+_0xcfa034(0x183));_0x1ccd79=await _0x2bda73[_0xcfa034(0x1e6)](inputConfirmation,_0x410f11);if(_0x2bda73[_0xcfa034(0x1cc)](_0x1ccd79,undefined)||_0x2bda73[_0xcfa034(0x1f3)](_0x1ccd79,null)||!(_0x2bda73[_0xcfa034(0x175)](_0x1ccd79[_0xcfa034(0x1d7)](),'y')||_0x2bda73[_0xcfa034(0x1f3)](_0x1ccd79['toLowerCase'](),'n'))){if(_0x2bda73['AzLGk'](_0x2bda73[_0xcfa034(0x1ca)],_0x2bda73[_0xcfa034(0x1ca)]))console['error'](_0x2bda73[_0xcfa034(0x194)]),await _0x2bda73['EKJaI'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1a6)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1);else{const _0x553b6f={};_0x553b6f['description']=_0x2bda73[_0xcfa034(0x18e)],_0x553b6f[_0xcfa034(0x18f)]=_0x2bda73[_0xcfa034(0x193)];const _0x5cbdb4={};return _0x5cbdb4[_0xcfa034(0x1fc)]=_0x553b6f,_0x3348e2[_0xcfa034(0x1a5)](_0x2b3c6f[_0xcfa034(0x207)])[_0xcfa034(0x1fa)](_0xa02121)['options'](_0x5cbdb4)[_0xcfa034(0x19a)](_0x2bda73[_0xcfa034(0x181)])[_0xcfa034(0x1f5)];}}_0x2bda73[_0xcfa034(0x1ee)](_0x1ccd79['toLowerCase'](),'n')&&(_0x2bda73[_0xcfa034(0x198)](_0x2bda73[_0xcfa034(0x1ab)],_0x2bda73[_0xcfa034(0x205)])?process[_0xcfa034(0x201)](0x0):_0x2534fa[_0xcfa034(0x201)](0x0));global_registry['clusterRegion']=_0xc56907['region'];const _0x1e1524=_0xc56907[_0xcfa034(0x1eb)],_0x26471e=_0x2bda73[_0xcfa034(0x1c5)](getCloudProviderObject,_0x1e1524,_0xc56907[_0xcfa034(0x1b4)],_0xc56907[_0xcfa034(0x1da)]),_0xfd75c8=_0x4dcd10[_0xcfa034(0x1eb)];if(_0x2bda73[_0xcfa034(0x1ee)](_0xfd75c8[_0x1e1524],undefined)){if(_0x2bda73[_0xcfa034(0x1e7)](_0x2bda73[_0xcfa034(0x1df)],_0x2bda73[_0xcfa034(0x196)])){logger[_0xcfa034(0x184)](_0x2bda73[_0xcfa034(0x1fd)]);_0x2bda73[_0xcfa034(0x1ee)](_0x4dcd10['cloudProvider'],undefined)&&(_0x2bda73[_0xcfa034(0x1f8)](_0x2bda73[_0xcfa034(0x1e9)],_0x2bda73[_0xcfa034(0x1e0)])?(_0x13e9f0['info'](_0xcfa034(0x1f0)),_0x553c3a[_0xcfa034(0x201)](0x0)):_0x4dcd10[_0xcfa034(0x1eb)]={});_0x4dcd10[_0xcfa034(0x1eb)][_0x1e1524]={};const _0x4a3ca5=await _0x2bda73['ozSOP'](inputCloudProviderKeys,_0x1e1524,_0x4dcd10,_0x26471e);fs[_0xcfa034(0x18c)](_0x2bda73['KqUym'](getCredentialsPath),JSON[_0xcfa034(0x206)](_0x4a3ca5)),logger[_0xcfa034(0x17b)](_0x2bda73[_0xcfa034(0x203)]);}else _0x1c5e49[_0xcfa034(0x1ed)](_0x2bda73['wDuVa']),_0x63dd57[_0xcfa034(0x201)](0x1);}else logger[_0xcfa034(0x184)](_0x2bda73['DfNZk']),await _0x26471e[_0xcfa034(0x192)](_0xfd75c8);_0x26471e[_0xcfa034(0x1cb)]();const _0x42c833=_0x2bda73['KotQG'](kebabCase,_0xc56907[_0xcfa034(0x1da)]),[_0x2cbeee,_0x4ffb07,_0x51bb87,_0x2829d3,_0x32cda6,_0x556455]=await _0x2bda73[_0xcfa034(0x1e6)](createK8sClient,_0x26471e);await _0x2bda73[_0xcfa034(0x1cf)](removeGridComponents,_0x2cbeee,_0x4ffb07,_0x51bb87,_0x2829d3,_0x42c833);if(_0x5076f3[_0xcfa034(0x191)]){const _0x1da583=await _0x26471e[_0xcfa034(0x18a)]();_0x1da583?await _0x26471e[_0xcfa034(0x1be)](_0x2cbeee,_0xc56907['region']):logger[_0xcfa034(0x1ff)](_0xcfa034(0x1d9)+_0xc56907[_0xcfa034(0x1b4)]+_0xcfa034(0x188));}const _0x207e79='https://'+AG_API_URL+_0xcfa034(0x1f6)+_0x21feb1[_0xcfa034(0x176)],_0x51b55d={};_0x51b55d['username']=_0x4dcd10[_0xcfa034(0x204)][_0xcfa034(0x1b6)],_0x51b55d['password']=_0x4dcd10['Browserstack'][_0xcfa034(0x17a)];const _0x26e675={};_0x26e675['url']=_0x207e79,_0x26e675[_0xcfa034(0x1e2)]=_0x2bda73[_0xcfa034(0x1d4)],_0x26e675[_0xcfa034(0x199)]=_0x51b55d;const _0x46313a=_0x26e675,_0x2c4e04=await _0x2bda73[_0xcfa034(0x1ac)](promisifiedRequest,_0x46313a);_0x2bda73[_0xcfa034(0x1c9)](_0x2c4e04,null)&&_0x2bda73[_0xcfa034(0x198)](_0x2c4e04,undefined)&&_0x2bda73[_0xcfa034(0x175)](_0x2c4e04[_0xcfa034(0x1c4)],0xc8)&&(logger['info'](_0xcfa034(0x1f0)),process[_0xcfa034(0x201)](0x0)),logger[_0xcfa034(0x1ed)](_0xcfa034(0x189)+JSON[_0xcfa034(0x206)](_0x2c4e04)),await _0x2bda73['SMbSA'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73['WTpPB'],_0xde9e3b,_0x21feb1),process[_0xcfa034(0x201)](0x1);}_0x2bda73[_0xcfa034(0x175)](_0xde9e3b['statusCode'],0x191)&&(logger[_0xcfa034(0x1ed)](_0xcfa034(0x1a3)),await _0x2bda73['egPBG'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1a7)],null,_0x21feb1),process['exit'](0x1)),_0x2bda73['CbbBA'](_0xde9e3b[_0xcfa034(0x1c4)],0x190)&&(logger[_0xcfa034(0x1ed)](JSON[_0xcfa034(0x1f4)](_0xde9e3b[_0xcfa034(0x1af)])[_0xcfa034(0x1d8)]),await _0x2bda73[_0xcfa034(0x19f)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x19e)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1)),logger[_0xcfa034(0x1ed)](_0xcfa034(0x1de)+JSON[_0xcfa034(0x206)](_0xde9e3b)),await _0x2bda73[_0xcfa034(0x1a1)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1c2)],_0xde9e3b,_0x21feb1),process[_0xcfa034(0x201)](0x1);}catch(_0x1b12f6){logger[_0xcfa034(0x1ed)](_0xcfa034(0x17c)+_0x1b12f6[_0xcfa034(0x1a0)]),await _0x2bda73[_0xcfa034(0x1bd)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x202)],_0x1b12f6,_0x21feb1),process[_0xcfa034(0x201)](0x1);}};
1
+ const a11_0x5337b9=a11_0x3950;(function(_0x432f27,_0x334d4f){const _0x8d27b3=a11_0x3950,_0x30dc53=_0x432f27();while(!![]){try{const _0x430991=-parseInt(_0x8d27b3(0x13c))/0x1+parseInt(_0x8d27b3(0xe0))/0x2+parseInt(_0x8d27b3(0xf9))/0x3+parseInt(_0x8d27b3(0xc0))/0x4*(parseInt(_0x8d27b3(0xe3))/0x5)+parseInt(_0x8d27b3(0xf7))/0x6*(-parseInt(_0x8d27b3(0x11b))/0x7)+-parseInt(_0x8d27b3(0x130))/0x8*(parseInt(_0x8d27b3(0x117))/0x9)+parseInt(_0x8d27b3(0x11d))/0xa;if(_0x430991===_0x334d4f)break;else _0x30dc53['push'](_0x30dc53['shift']());}catch(_0x1aebef){_0x30dc53['push'](_0x30dc53['shift']());}}}(a11_0xceac,0x222b9));function a11_0x3950(_0x4f9341,_0x37b56f){const _0xceacdf=a11_0xceac();return a11_0x3950=function(_0x395091,_0xb1c661){_0x395091=_0x395091-0xb7;let _0x795701=_0xceacdf[_0x395091];return _0x795701;},a11_0x3950(_0x4f9341,_0x37b56f);}const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a11_0x5337b9(0x129)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x5337b9(0x109)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5337b9(0x114)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x5337b9(0x135)),{createK8sClient}=require(a11_0x5337b9(0x144)),{kebabCase,getCredentialsPath,getGridDetails}=require(a11_0x5337b9(0x138)),promisifiedRequest=util[a11_0x5337b9(0xda)](request);function a11_0xceac(){const _0x12a995=['uVFgR','parse','navlO','VcSjP','KytRh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Delete\x20an\x20Automation\x20grid.','IqCRB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterId','xxHwh','deleteCluster','body','mYpub','15558XkfMtJ','iKYSx','663633LXEqjK','debug','jwLGx','VnuHW','gDWDB','hpoCz','RVPYv','rXOWz','clusterRegion','bmVfy','init-not-called','moYdn','Browserstack','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','stringify','sVuje','../../config/constants','vtnCj','oHqbn','toLowerCase','jfGee','UtzPI','info','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x22\x20with\x20ID\x20','options','dXzgQ','../../utils/gridComponents','usage','existsSync','9dOlrsY','argv','message','method','483NVrdOn','UacEt','2128170dbqZGX','password','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','cpZHi','onlyGridInCluster','nrBko','type','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','auth','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','invalid-input','CPEWn','uuid','UmqgI','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','statusCode','MfXjN','gKMWO','delete','1684888Ddnqfl','stack','Failed\x20to\x20delete\x20resources!\x20Error:\x20','isBrowserstackCluster','ZISdk','../../utils/userInput','/packages/cli/grid/','DELETE','../../utils/utilityMethods','error','handler','JNIGh','162864LIDxRX','lZvrv','string','wnsNP','sXKdg','grid','XKCRI','help','../../utils/createk8sClient','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','invalid-grid-id','XCHtA','xfphm','fGhMf','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UMOZf','writeFileSync','clusterName','JKUfo','rrprj','exit','7988Vobgbp','ZDRcl','warn','\x22\x20and\x20ID\x20','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','asmiH','dMyKa','ERROR','Cluster:\x20','epilogue','INFO','wviCa','unauthorised','description','delete-grid-called','region','ZAISq','EciXY','Succesfully\x20deleted\x20the\x20grid','https://','clusterSpawnedVia','server-error','configureIfNotConfigured','PiLDL','hffAI','readFileSync','promisify','RLUjj','jlYAQ','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','requestId','FNvOF','89292kOMLfF','fetchLocalCreds','wRtzg','535mijAjg','username','CUAAF','bLeQF','name','gridId'];a11_0xceac=function(){return _0x12a995;};return a11_0xceac();}exports['command']=a11_0x5337b9(0x141),exports['desc']=a11_0x5337b9(0xef),exports['builder']=function(_0x13e394){const _0x34fcc6=a11_0x5337b9,_0xbaedc7={};_0xbaedc7[_0x34fcc6(0x128)]=_0x34fcc6(0x110),_0xbaedc7[_0x34fcc6(0xe5)]=_0x34fcc6(0x13e),_0xbaedc7['RLUjj']=_0x34fcc6(0x143);const _0x360078=_0xbaedc7,_0x533424={};_0x533424[_0x34fcc6(0xcd)]=_0x360078[_0x34fcc6(0x128)],_0x533424[_0x34fcc6(0x123)]=_0x360078[_0x34fcc6(0xe5)];const _0x32a2f4={};return _0x32a2f4['grid-id']=_0x533424,_0x13e394[_0x34fcc6(0x115)](HELP_HEADER_MESSAGE[_0x34fcc6(0x12f)])[_0x34fcc6(0xc9)](HELP_FOOTER_MESSAGE)[_0x34fcc6(0x112)](_0x32a2f4)[_0x34fcc6(0x143)](_0x360078[_0x34fcc6(0xdb)])['argv'];},exports[a11_0x5337b9(0x13a)]=async function(_0x42912b){const _0x82b16a=a11_0x5337b9,_0x3e3c23={'ZISdk':_0x82b16a(0x12b),'KytRh':_0x82b16a(0x110),'dXzgQ':_0x82b16a(0x13e),'QYvxD':'help','XCHtA':function(_0x19f1bc){return _0x19f1bc();},'navlO':function(_0x3d9073){return _0x3d9073();},'huitR':function(_0x3c4d6c,_0x3a3c7d){return _0x3c4d6c!==_0x3a3c7d;},'wviCa':_0x82b16a(0x12a),'sVuje':_0x82b16a(0xb9),'asmiH':function(_0x20129f,_0x2dc9f7,_0x269995,_0x227927,_0x5784d2,_0x834b25,_0x36f2b6){return _0x20129f(_0x2dc9f7,_0x269995,_0x227927,_0x5784d2,_0x834b25,_0x36f2b6);},'UacEt':_0x82b16a(0xce),'ZDRcl':_0x82b16a(0x103),'bmVfy':function(_0x5490e3,_0x3e4d42,_0xd094b7,_0x16280f,_0x579d4c,_0x26747a,_0x1a1313){return _0x5490e3(_0x3e4d42,_0xd094b7,_0x16280f,_0x579d4c,_0x26747a,_0x1a1313);},'cpZHi':function(_0x29662e,_0x2816ff){return _0x29662e===_0x2816ff;},'hpoCz':_0x82b16a(0xf3),'bLeQF':'cpYyL','VcSjP':function(_0x44723c,_0x2e31a2,_0x1464d5,_0x39ee14){return _0x44723c(_0x2e31a2,_0x1464d5,_0x39ee14);},'jlYAQ':function(_0x3f26d9,_0x4599c6){return _0x3f26d9===_0x4599c6;},'MfXjN':_0x82b16a(0x105),'XxJlc':function(_0x13bd91,_0x4b6083){return _0x13bd91!==_0x4b6083;},'FNvOF':_0x82b16a(0xf8),'vtnCj':function(_0x350196,_0x40c2c3){return _0x350196(_0x40c2c3);},'JNIGh':function(_0x31417a,_0x42891f){return _0x31417a===_0x42891f;},'UtzPI':function(_0x4d4d0b,_0x102c89){return _0x4d4d0b===_0x102c89;},'uVFgR':_0x82b16a(0xfd),'rXOWz':_0x82b16a(0x126),'Xbpgl':_0x82b16a(0x127),'jfGee':function(_0x17690a,_0x110ac5){return _0x17690a===_0x110ac5;},'moYdn':function(_0x2103a7,_0x261c32){return _0x2103a7!==_0x261c32;},'UMOZf':_0x82b16a(0xe2),'xfphm':function(_0x2be7e6,_0x10c33e,_0x4fb6f0,_0x21f4b8){return _0x2be7e6(_0x10c33e,_0x4fb6f0,_0x21f4b8);},'jwLGx':function(_0x4c470d,_0x205f93){return _0x4c470d===_0x205f93;},'rrprj':_0x82b16a(0x122),'IqCRB':_0x82b16a(0xd0),'RVPYv':_0x82b16a(0x11f),'sXKdg':function(_0xdbd359,_0x4b32e7){return _0xdbd359===_0x4b32e7;},'FJYrI':_0x82b16a(0xb7),'mYpub':_0x82b16a(0x13f),'VnuHW':function(_0x48952b){return _0x48952b();},'oHqbn':_0x82b16a(0x124),'aVpid':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','cZWLc':function(_0x4967b3,_0x18a75c){return _0x4967b3(_0x18a75c);},'hffAI':function(_0x47e29f,_0x1dcb46,_0x3984e8,_0x311eaf,_0x28ac94,_0x8f84b9){return _0x47e29f(_0x1dcb46,_0x3984e8,_0x311eaf,_0x28ac94,_0x8f84b9);},'dMyKa':_0x82b16a(0x137),'LyvBB':function(_0x48c1b8,_0x1518b7){return _0x48c1b8(_0x1518b7);},'JKUfo':function(_0x1b9a7b,_0x3a2014){return _0x1b9a7b!==_0x3a2014;},'PiLDL':function(_0x103e02,_0x23a6a0){return _0x103e02!==_0x23a6a0;},'XKCRI':_0x82b16a(0xd5),'lZvrv':function(_0x140879,_0x307bcb,_0x564ccb,_0x222394,_0x158f2a,_0x3d9b51,_0x49a394){return _0x140879(_0x307bcb,_0x564ccb,_0x222394,_0x158f2a,_0x3d9b51,_0x49a394);},'HhjaB':_0x82b16a(0xcc),'ZdKEI':_0x82b16a(0x146),'EciXY':function(_0x23124e,_0x530850,_0x1b4804,_0x5713b5,_0x2bb9e5,_0x188a91,_0x3f24f6){return _0x23124e(_0x530850,_0x1b4804,_0x5713b5,_0x2bb9e5,_0x188a91,_0x3f24f6);},'gKMWO':function(_0x2a8425,_0xae80b7,_0x2378d0,_0x3013fb,_0xdb8f5f,_0x4ac69b,_0x38ad2f){return _0x2a8425(_0xae80b7,_0x2378d0,_0x3013fb,_0xdb8f5f,_0x4ac69b,_0x38ad2f);},'meWye':'unknown-error'};try{global_registry[_0x82b16a(0xde)]=_0x3e3c23[_0x82b16a(0x147)](uuidv4);!fs[_0x82b16a(0x116)](_0x3e3c23[_0x82b16a(0xeb)](getCredentialsPath))&&(_0x3e3c23['huitR'](_0x3e3c23[_0x82b16a(0xcb)],_0x3e3c23[_0x82b16a(0xcb)])?_0x1e4fd2=_0x82b16a(0x106)+_0x5596ed[_0x82b16a(0xe7)]+_0x82b16a(0xc3)+_0x4b5776['id']+_0x82b16a(0xc4)+_0x181e44[_0x82b16a(0xbc)]+_0x82b16a(0x111)+_0x37f242[_0x82b16a(0xf2)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console[_0x82b16a(0x139)](_0x3e3c23[_0x82b16a(0x108)]),await _0x3e3c23[_0x82b16a(0xc5)](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xc7)],_0x3e3c23[_0x82b16a(0xc1)],null,_0x42912b),process['exit'](0x1)));_0x3e3c23[_0x82b16a(0x102)](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xca)],null,null,_0x42912b);!_0x42912b[_0x82b16a(0xe8)]&&(_0x3e3c23[_0x82b16a(0x120)](_0x3e3c23[_0x82b16a(0xfe)],_0x3e3c23[_0x82b16a(0xe6)])?(_0x495eb6['error'](_0x3e3c23['ZISdk']),_0x391c2d['exit'](0x1)):(console[_0x82b16a(0x139)](_0x3e3c23[_0x82b16a(0x134)]),process['exit'](0x1)));const _0x4ed61b=JSON[_0x82b16a(0xea)](fs[_0x82b16a(0xd9)](_0x3e3c23[_0x82b16a(0x147)](getCredentialsPath))),[_0xfde3ab,_0x2ccc82]=await _0x3e3c23['VcSjP'](getGridDetails,_0x4ed61b['Browserstack'][_0x82b16a(0xe4)],_0x4ed61b[_0x82b16a(0x105)][_0x82b16a(0x11e)],_0x42912b[_0x82b16a(0xe8)]);if(_0x2ccc82){const _0x910802=_0x2ccc82['info'];let _0x2de89c=_0x82b16a(0x106)+_0x910802['name']+_0x82b16a(0xc3)+_0x910802['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x26653c;if(_0x2ccc82[_0x82b16a(0x121)]&&_0x3e3c23[_0x82b16a(0xdc)](_0x2ccc82[_0x82b16a(0xd4)],_0x3e3c23[_0x82b16a(0x12d)])){if(_0x3e3c23['XxJlc'](_0x3e3c23[_0x82b16a(0xdf)],_0x3e3c23[_0x82b16a(0xdf)])){const _0x5e7e01={};_0x5e7e01[_0x82b16a(0xcd)]=_0x3e3c23[_0x82b16a(0xed)],_0x5e7e01[_0x82b16a(0x123)]=_0x3e3c23[_0x82b16a(0x113)];const _0x22279c={};return _0x22279c['grid-id']=_0x5e7e01,_0x362da6['usage'](_0x30809f[_0x82b16a(0x12f)])[_0x82b16a(0xc9)](_0x5d62b9)['options'](_0x22279c)[_0x82b16a(0x143)](_0x3e3c23['QYvxD'])[_0x82b16a(0x118)];}else _0x2de89c=_0x82b16a(0x106)+_0x910802[_0x82b16a(0xe7)]+_0x82b16a(0xc3)+_0x910802['id']+_0x82b16a(0xc4)+_0x910802[_0x82b16a(0xbc)]+_0x82b16a(0x111)+_0x910802['clusterId']+_0x82b16a(0xdd);}_0x26653c=await _0x3e3c23[_0x82b16a(0x10a)](inputConfirmation,_0x2de89c);(_0x3e3c23[_0x82b16a(0x13b)](_0x26653c,undefined)||_0x3e3c23[_0x82b16a(0xdc)](_0x26653c,null)||!(_0x3e3c23[_0x82b16a(0x120)](_0x26653c[_0x82b16a(0x10c)](),'y')||_0x3e3c23[_0x82b16a(0xdc)](_0x26653c[_0x82b16a(0x10c)](),'n')))&&(_0x3e3c23[_0x82b16a(0x10e)](_0x3e3c23[_0x82b16a(0xe9)],_0x3e3c23['uVFgR'])?(console[_0x82b16a(0x139)](_0x3e3c23[_0x82b16a(0x100)]),await _0x3e3c23[_0x82b16a(0xc5)](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xc7)],_0x3e3c23['Xbpgl'],null,_0x42912b),process[_0x82b16a(0xbf)](0x1)):_0x53e569['cloudProvider']={});_0x3e3c23[_0x82b16a(0x10d)](_0x26653c[_0x82b16a(0x10c)](),'n')&&(_0x3e3c23[_0x82b16a(0x104)](_0x3e3c23['UMOZf'],_0x3e3c23[_0x82b16a(0xba)])?(_0x43e3c0['info'](_0x82b16a(0xd2)),_0xc69772['exit'](0x0)):process[_0x82b16a(0xbf)](0x0));global_registry[_0x82b16a(0x101)]=_0x910802[_0x82b16a(0xcf)];const _0x43a7fc=_0x910802[_0x82b16a(0xb8)],_0x2ff597=_0x3e3c23[_0x82b16a(0x148)](getCloudProviderObject,_0x43a7fc,_0x910802[_0x82b16a(0xbc)],_0x910802['name']),_0x5d4570=_0x4ed61b[_0x82b16a(0xb8)];if(_0x3e3c23['jwLGx'](_0x5d4570[_0x43a7fc],undefined)){if(_0x3e3c23['moYdn'](_0x3e3c23[_0x82b16a(0xbe)],_0x3e3c23[_0x82b16a(0xf0)])){logger[_0x82b16a(0x10f)](_0x3e3c23[_0x82b16a(0xff)]);_0x3e3c23[_0x82b16a(0x140)](_0x4ed61b[_0x82b16a(0xb8)],undefined)&&(_0x3e3c23[_0x82b16a(0x13b)](_0x3e3c23['FJYrI'],_0x3e3c23[_0x82b16a(0xf6)])?_0x5bddb0['warn'](_0x82b16a(0xc8)+_0x5c4205['clusterName']+_0x82b16a(0x145)):_0x4ed61b[_0x82b16a(0xb8)]={});_0x4ed61b[_0x82b16a(0xb8)][_0x43a7fc]={};const _0x54a278=await _0x3e3c23[_0x82b16a(0xec)](inputCloudProviderKeys,_0x43a7fc,_0x4ed61b,_0x2ff597);fs[_0x82b16a(0xbb)](_0x3e3c23[_0x82b16a(0xfc)](getCredentialsPath),JSON[_0x82b16a(0x107)](_0x54a278)),logger[_0x82b16a(0xfa)](_0x3e3c23[_0x82b16a(0x10b)]);}else _0x2d59e5[_0x82b16a(0xbf)](0x0);}else logger['info'](_0x3e3c23['aVpid']),await _0x2ff597[_0x82b16a(0xe1)](_0x5d4570);_0x2ff597[_0x82b16a(0xd6)]();const _0x153f2c=_0x3e3c23['cZWLc'](kebabCase,_0x910802[_0x82b16a(0xe7)]),[_0xbda1e6,_0x189fc1,_0xe52be,_0x328e16,_0x4c16b6,_0xa321b]=await _0x3e3c23[_0x82b16a(0x10a)](createK8sClient,_0x2ff597);await _0x3e3c23[_0x82b16a(0xd8)](removeGridComponents,_0xbda1e6,_0x189fc1,_0xe52be,_0x328e16,_0x153f2c);if(_0x2ccc82[_0x82b16a(0x121)]){const _0x1fb884=await _0x2ff597[_0x82b16a(0x133)]();_0x1fb884?await _0x2ff597[_0x82b16a(0xf4)](_0xbda1e6,_0x910802[_0x82b16a(0xcf)]):logger[_0x82b16a(0xc2)](_0x82b16a(0xc8)+_0x910802[_0x82b16a(0xbc)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x300494=_0x82b16a(0xd3)+AG_API_URL+_0x82b16a(0x136)+_0x42912b[_0x82b16a(0xe8)],_0x300c6b={};_0x300c6b['username']=_0x4ed61b['Browserstack'][_0x82b16a(0xe4)],_0x300c6b[_0x82b16a(0x11e)]=_0x4ed61b[_0x82b16a(0x105)]['password'];const _0x599e89={};_0x599e89['url']=_0x300494,_0x599e89[_0x82b16a(0x11a)]=_0x3e3c23[_0x82b16a(0xc6)],_0x599e89[_0x82b16a(0x125)]=_0x300c6b;const _0x57e802=_0x599e89,_0x71b807=await _0x3e3c23['LyvBB'](promisifiedRequest,_0x57e802);_0x3e3c23[_0x82b16a(0xbd)](_0x71b807,null)&&_0x3e3c23[_0x82b16a(0xd7)](_0x71b807,undefined)&&_0x3e3c23[_0x82b16a(0x120)](_0x71b807[_0x82b16a(0x12c)],0xc8)&&(logger['info'](_0x82b16a(0xd2)),process[_0x82b16a(0xbf)](0x0)),logger[_0x82b16a(0x139)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x82b16a(0x107)](_0x71b807)),await _0x3e3c23['bmVfy'](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xc7)],_0x3e3c23['XKCRI'],_0xfde3ab,_0x42912b),process[_0x82b16a(0xbf)](0x1);}_0x3e3c23[_0x82b16a(0xdc)](_0xfde3ab[_0x82b16a(0x12c)],0x191)&&(logger[_0x82b16a(0x139)](_0x82b16a(0xf1)),await _0x3e3c23[_0x82b16a(0x13d)](sendInstrumentationEvent,_0x42912b,_0x3e3c23['UacEt'],messageTypes[_0x82b16a(0xc7)],_0x3e3c23['HhjaB'],null,_0x42912b),process[_0x82b16a(0xbf)](0x1)),_0x3e3c23[_0x82b16a(0xfb)](_0xfde3ab['statusCode'],0x190)&&(logger[_0x82b16a(0x139)](JSON[_0x82b16a(0xea)](_0xfde3ab[_0x82b16a(0xf5)])[_0x82b16a(0x119)]),await _0x3e3c23['asmiH'](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes['ERROR'],_0x3e3c23['ZdKEI'],null,_0x42912b),process[_0x82b16a(0xbf)](0x1)),logger[_0x82b16a(0x139)](_0x82b16a(0xee)+JSON['stringify'](_0xfde3ab)),await _0x3e3c23[_0x82b16a(0xd1)](sendInstrumentationEvent,_0x42912b,_0x3e3c23['UacEt'],messageTypes[_0x82b16a(0xc7)],_0x3e3c23[_0x82b16a(0x142)],_0xfde3ab,_0x42912b),process[_0x82b16a(0xbf)](0x1);}catch(_0x19efa6){logger['error'](_0x82b16a(0x132)+_0x19efa6[_0x82b16a(0x131)]),await _0x3e3c23[_0x82b16a(0x12e)](sendInstrumentationEvent,_0x42912b,_0x3e3c23['UacEt'],messageTypes['ERROR'],_0x3e3c23['meWye'],_0x19efa6,_0x42912b),process[_0x82b16a(0xbf)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x44c8cb=a13_0x4ffa;(function(_0x5ba7ec,_0x12306e){const _0x4707b5=a13_0x4ffa,_0x54df55=_0x5ba7ec();while(!![]){try{const _0x3d2600=parseInt(_0x4707b5(0x1a5))/0x1+parseInt(_0x4707b5(0x192))/0x2+-parseInt(_0x4707b5(0x17a))/0x3*(parseInt(_0x4707b5(0x17e))/0x4)+-parseInt(_0x4707b5(0x177))/0x5*(-parseInt(_0x4707b5(0x1c1))/0x6)+parseInt(_0x4707b5(0x1ae))/0x7+parseInt(_0x4707b5(0x189))/0x8+parseInt(_0x4707b5(0x18a))/0x9*(-parseInt(_0x4707b5(0x1c2))/0xa);if(_0x3d2600===_0x12306e)break;else _0x54df55['push'](_0x54df55['shift']());}catch(_0x4f2ffc){_0x54df55['push'](_0x54df55['shift']());}}}(a13_0x28a5,0xc91e2));function a13_0x4ffa(_0x4ab3ca,_0x441711){const _0x28a5b8=a13_0x28a5();return a13_0x4ffa=function(_0x4ffa3a,_0x5007f4){_0x4ffa3a=_0x4ffa3a-0x16d;let _0x13d95d=_0x28a5b8[_0x4ffa3a];return _0x13d95d;},a13_0x4ffa(_0x4ab3ca,_0x441711);}const fs=require('fs'),util=require(a13_0x44c8cb(0x1cd)),request=require(a13_0x44c8cb(0x1d0)),{v4:uuidv4}=require(a13_0x44c8cb(0x1ad)),{logger}=require(a13_0x44c8cb(0x19d)),{inputBstackKeys}=require(a13_0x44c8cb(0x18c)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x44c8cb(0x1b7)),{getDirForConfig,getCredentialsPath}=require(a13_0x44c8cb(0x187)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);function a13_0x28a5(){const _0x3b129f=['uuid','6190779VUQBuf','lLRRL','bGohq','GaQxo','dnwen','EFqVv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','QjjTM','INFO','../config/constants','pGmMq','https://','usage','epilogue','tdpuD','description','argv','stringify','existsSync','6ToEVKW','225630htYqYG','bstackUsername','chVRN','ERROR','builder','recommendCommands','fgCgc','desc','type','readFileSync','JSuXr','util','FUXmN','bstack-username','request','XSfgR','rQdlP','unknown-error','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lFqlJ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','utf-8','BROWSERSTACK_ACCESS_KEY','qlUDg','vUIKI','3714915PLVFME','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','JcAQM','36753iKWAKE','string','handler','FCAVU','36IluVNo','YXdpZ','CZvuU','FdhqO','AJtxk','options','parse','env','RJvCY','../utils/utilityMethods','SOJBB','4382424dlmQGD','846QsMcCK','strict','../utils/userInput','statusCode','username','siKKq','RfPXw','KYuSe','1619370RUmImx','NbMpk','init','yAcYE','error','stack','debug','mkdirSync','apYHa','PnmhY','vtYXx','../config/logger','Browserstack','MpWdJ','rIiyt','LRcku','writeFileSync','help','MTvzg','70091cLzXAi','bstackAccesskey','hInGn','password','BROWSERSTACK_USERNAME','bstack-accesskey','FeQAP','exit'];a13_0x28a5=function(){return _0x3b129f;};return a13_0x28a5();}exports['command']=a13_0x44c8cb(0x194),exports[a13_0x44c8cb(0x1c9)]=a13_0x44c8cb(0x178),exports[a13_0x44c8cb(0x1c6)]=function(_0x43827c){const _0x44b0de=a13_0x44c8cb,_0x5b5eb7={};_0x5b5eb7[_0x44b0de(0x182)]=_0x44b0de(0x172),_0x5b5eb7[_0x44b0de(0x186)]='string',_0x5b5eb7[_0x44b0de(0x17f)]=_0x44b0de(0x170),_0x5b5eb7[_0x44b0de(0x1a7)]=_0x44b0de(0x1a3);const _0x2b38ce=_0x5b5eb7,_0x1d9907={};_0x1d9907['description']=_0x2b38ce[_0x44b0de(0x182)],_0x1d9907[_0x44b0de(0x1ca)]=_0x2b38ce[_0x44b0de(0x186)];const _0x2bf4bb={};_0x2bf4bb[_0x44b0de(0x1bd)]=_0x2b38ce[_0x44b0de(0x17f)],_0x2bf4bb[_0x44b0de(0x1ca)]=_0x2b38ce[_0x44b0de(0x186)];const _0x2d4a17={};return _0x2d4a17[_0x44b0de(0x1cf)]=_0x1d9907,_0x2d4a17[_0x44b0de(0x1aa)]=_0x2bf4bb,_0x43827c[_0x44b0de(0x1ba)](HELP_HEADER_MESSAGE[_0x44b0de(0x194)])[_0x44b0de(0x1bb)](HELP_FOOTER_MESSAGE)['options'](_0x2d4a17)[_0x44b0de(0x1c7)]()['strict']()[_0x44b0de(0x1a3)](_0x2b38ce[_0x44b0de(0x1a7)])[_0x44b0de(0x1be)];},exports[a13_0x44c8cb(0x17c)]=async function(_0x588c08){const _0x5746f5=a13_0x44c8cb,_0x4e0a26={'dnwen':function(_0x4aaba0){return _0x4aaba0();},'vtYXx':_0x5746f5(0x173),'FUXmN':_0x5746f5(0x172),'CZvuU':_0x5746f5(0x17b),'lrOga':_0x5746f5(0x170),'JSuXr':'help','FeQAP':function(_0x34b687,_0x104f5a,_0x39ca3f,_0x374bb5,_0xa8cc51,_0x24c337,_0x27bf2e){return _0x34b687(_0x104f5a,_0x39ca3f,_0x374bb5,_0xa8cc51,_0x24c337,_0x27bf2e);},'SOJBB':'init-called','MTvzg':function(_0x290899,_0x22b324){return _0x290899===_0x22b324;},'qlUDg':'wJSRZ','lFqlJ':function(_0x27e5c4,_0x3dc45b){return _0x27e5c4!==_0x3dc45b;},'EFqVv':_0x5746f5(0x193),'JcAQM':_0x5746f5(0x1b1),'aDfxw':_0x5746f5(0x19b),'vUIKI':_0x5746f5(0x1b5),'UnLxq':_0x5746f5(0x195),'yfBjO':_0x5746f5(0x181),'pGmMq':'epLHz','LRcku':function(_0x407096,_0x2cc3df){return _0x407096===_0x2cc3df;},'MpWdJ':function(_0x6d08ac,_0x5168c5){return _0x6d08ac===_0x5168c5;},'icuCD':_0x5746f5(0x191),'RfPXw':_0x5746f5(0x1a0),'SeTZs':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','DgtYj':function(_0x3609a5){return _0x3609a5();},'lLRRL':'GET','XSfgR':function(_0xaed5e3,_0x560559){return _0xaed5e3(_0x560559);},'chVRN':function(_0x15602f,_0x5db50b){return _0x15602f!==_0x5db50b;},'tdpuD':'UGiMd','lAcIm':_0x5746f5(0x17d),'apYHa':_0x5746f5(0x16e),'fgCgc':function(_0x330cce){return _0x330cce();},'bGohq':'VOJrm','EBdzW':_0x5746f5(0x1b4),'siKKq':'wrong-creds','sQSan':_0x5746f5(0x16f)};try{global_registry['requestId']=_0x4e0a26[_0x5746f5(0x1b2)](uuidv4),_0x4e0a26['FeQAP'](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes[_0x5746f5(0x1b6)],null,null,_0x588c08);const _0x572b54=_0x4e0a26[_0x5746f5(0x1b2)](getDirForConfig);if(!fs[_0x5746f5(0x1c0)](_0x572b54)){if(_0x4e0a26['MTvzg'](_0x4e0a26[_0x5746f5(0x175)],_0x4e0a26['qlUDg']))fs[_0x5746f5(0x199)](_0x572b54);else{let _0x586ee8={};const _0x3a81f9=_0x4e0a26[_0x5746f5(0x1b2)](_0x4bc0bc);_0x4cd040['existsSync'](_0x3a81f9)&&(_0x586ee8=_0x173e73[_0x5746f5(0x184)](_0x1d8f37[_0x5746f5(0x1cb)](_0x3a81f9,_0x4e0a26[_0x5746f5(0x19c)])));const _0x22ff86={};_0x22ff86[_0x5746f5(0x18e)]=_0x2da674,_0x22ff86[_0x5746f5(0x1a8)]=_0x3fe2f1,_0x586ee8[_0x5746f5(0x19e)]=_0x22ff86,_0x568b41['writeFileSync'](_0x3a81f9,_0x49200c[_0x5746f5(0x1bf)](_0x586ee8)),_0x495298['exit'](0x0);}}let _0xbb5970,_0x4d026a;process[_0x5746f5(0x185)]['BROWSERSTACK_USERNAME']&&(_0x4e0a26[_0x5746f5(0x171)](_0x4e0a26[_0x5746f5(0x1b3)],_0x4e0a26[_0x5746f5(0x179)])?_0xbb5970=process[_0x5746f5(0x185)][_0x5746f5(0x1a9)]:_0x38b54=_0x460060[_0x5746f5(0x185)][_0x5746f5(0x174)]);process[_0x5746f5(0x185)]['BROWSERSTACK_ACCESS_KEY']&&(_0x4e0a26[_0x5746f5(0x1a4)](_0x4e0a26['aDfxw'],_0x4e0a26[_0x5746f5(0x176)])?_0x226db1=_0x1ea767[_0x5746f5(0x185)][_0x5746f5(0x1a9)]:_0x4d026a=process[_0x5746f5(0x185)][_0x5746f5(0x174)]);_0x588c08[_0x5746f5(0x1c3)]&&(_0x4e0a26[_0x5746f5(0x171)](_0x4e0a26['UnLxq'],_0x4e0a26['yfBjO'])?_0xbb5970=_0x588c08[_0x5746f5(0x1c3)]:_0x61b4cc=_0x3d919b['parse'](_0x36ba15[_0x5746f5(0x1cb)](_0x52e9ee,_0x4e0a26[_0x5746f5(0x19c)])));_0x588c08['bstackAccesskey']&&(_0x4e0a26['lFqlJ'](_0x4e0a26[_0x5746f5(0x1b8)],_0x4e0a26['pGmMq'])?_0x1dea13=_0x59d975[_0x5746f5(0x1a6)]:_0x4d026a=_0x588c08[_0x5746f5(0x1a6)]);if(_0x4e0a26[_0x5746f5(0x1a1)](_0xbb5970,undefined)||_0x4e0a26[_0x5746f5(0x1a1)](_0x4d026a,undefined)){if(_0x4e0a26[_0x5746f5(0x19f)](_0x4e0a26['icuCD'],_0x4e0a26[_0x5746f5(0x190)]))_0x1ebe8d=_0x2d27e4[_0x5746f5(0x1c3)];else{logger[_0x5746f5(0x198)](_0x4e0a26['SeTZs']);const [_0x2d6f54,_0x1637e1]=await _0x4e0a26['DgtYj'](inputBstackKeys);_0xbb5970=_0x2d6f54,_0x4d026a=_0x1637e1;}}let _0x3aff76=![];const _0x3b6fb4={};_0x3b6fb4['url']=_0x5746f5(0x1b9)+_0xbb5970+':'+_0x4d026a+'@'+BS_API_URL+'/automate/plan.json',_0x3b6fb4['method']=_0x4e0a26[_0x5746f5(0x1af)];const _0x10c341=_0x3b6fb4,_0x1f148d=await _0x4e0a26[_0x5746f5(0x16d)](promisifiedRequest,_0x10c341);_0x4e0a26['lFqlJ'](_0x1f148d,null)&&_0x4e0a26[_0x5746f5(0x171)](_0x1f148d,undefined)&&_0x4e0a26[_0x5746f5(0x1a4)](_0x1f148d[_0x5746f5(0x18d)],0xc8)&&(_0x4e0a26[_0x5746f5(0x1c4)](_0x4e0a26[_0x5746f5(0x1bc)],_0x4e0a26['lAcIm'])?_0x3aff76=!![]:_0x40bdfe[_0x5746f5(0x199)](_0x2b5b2c));if(_0x3aff76){if(_0x4e0a26['chVRN'](_0x4e0a26['apYHa'],_0x4e0a26[_0x5746f5(0x19a)])){const _0xc3ddc={};_0xc3ddc[_0x5746f5(0x1bd)]=_0x4e0a26[_0x5746f5(0x1ce)],_0xc3ddc[_0x5746f5(0x1ca)]=_0x4e0a26[_0x5746f5(0x180)];const _0x5cfbeb={};_0x5cfbeb[_0x5746f5(0x1bd)]=_0x4e0a26['lrOga'],_0x5cfbeb[_0x5746f5(0x1ca)]=_0x4e0a26[_0x5746f5(0x180)];const _0x244bf6={};return _0x244bf6[_0x5746f5(0x1cf)]=_0xc3ddc,_0x244bf6[_0x5746f5(0x1aa)]=_0x5cfbeb,_0x12004b['usage'](_0x299b59[_0x5746f5(0x194)])[_0x5746f5(0x1bb)](_0x34f343)[_0x5746f5(0x183)](_0x244bf6)[_0x5746f5(0x1c7)]()[_0x5746f5(0x18b)]()[_0x5746f5(0x1a3)](_0x4e0a26[_0x5746f5(0x1cc)])[_0x5746f5(0x1be)];}else{let _0x1d0c4d={};const _0x1f7ad9=_0x4e0a26[_0x5746f5(0x1c8)](getCredentialsPath);fs[_0x5746f5(0x1c0)](_0x1f7ad9)&&(_0x4e0a26[_0x5746f5(0x1a4)](_0x4e0a26[_0x5746f5(0x1b0)],_0x4e0a26[_0x5746f5(0x1b0)])?_0x1d0c4d=JSON[_0x5746f5(0x184)](fs['readFileSync'](_0x1f7ad9,_0x4e0a26[_0x5746f5(0x19c)])):_0x44c1a5=!![]);const _0x6f3aef={};_0x6f3aef[_0x5746f5(0x18e)]=_0xbb5970,_0x6f3aef[_0x5746f5(0x1a8)]=_0x4d026a,_0x1d0c4d['Browserstack']=_0x6f3aef,fs[_0x5746f5(0x1a2)](_0x1f7ad9,JSON[_0x5746f5(0x1bf)](_0x1d0c4d)),process[_0x5746f5(0x1ac)](0x0);}}else logger[_0x5746f5(0x196)](_0x4e0a26['EBdzW']),await _0x4e0a26['FeQAP'](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes['ERROR'],_0x4e0a26[_0x5746f5(0x18f)],null,_0x588c08),process[_0x5746f5(0x1ac)](0x1);}catch(_0x534bd1){logger['error'](_0x534bd1[_0x5746f5(0x197)]),await _0x4e0a26[_0x5746f5(0x1ab)](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes[_0x5746f5(0x1c5)],_0x4e0a26['sQSan'],_0x534bd1,_0x588c08),process[_0x5746f5(0x1ac)](0x1);}};
1
+ function a12_0x1b0d(_0xa39339,_0x5589e1){const _0x80e783=a12_0x80e7();return a12_0x1b0d=function(_0x1b0dec,_0x4087cf){_0x1b0dec=_0x1b0dec-0x1bf;let _0x1a0d33=_0x80e783[_0x1b0dec];return _0x1a0d33;},a12_0x1b0d(_0xa39339,_0x5589e1);}const a12_0xe6b16c=a12_0x1b0d;(function(_0x20d443,_0x4792fd){const _0x5e232e=a12_0x1b0d,_0x48d306=_0x20d443();while(!![]){try{const _0x26cdb7=parseInt(_0x5e232e(0x21f))/0x1*(parseInt(_0x5e232e(0x1de))/0x2)+parseInt(_0x5e232e(0x1f7))/0x3+-parseInt(_0x5e232e(0x22d))/0x4+parseInt(_0x5e232e(0x1c1))/0x5*(parseInt(_0x5e232e(0x1d8))/0x6)+-parseInt(_0x5e232e(0x1ec))/0x7+-parseInt(_0x5e232e(0x1fa))/0x8+-parseInt(_0x5e232e(0x205))/0x9*(-parseInt(_0x5e232e(0x1d4))/0xa);if(_0x26cdb7===_0x4792fd)break;else _0x48d306['push'](_0x48d306['shift']());}catch(_0xa637cc){_0x48d306['push'](_0x48d306['shift']());}}}(a12_0x80e7,0xae934));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0xe6b16c(0x1dc)),{logger}=require(a12_0xe6b16c(0x1c2)),{inputBstackKeys}=require(a12_0xe6b16c(0x21a)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0xe6b16c(0x216)),{getDirForConfig,getCredentialsPath}=require(a12_0xe6b16c(0x227)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a12_0xe6b16c(0x20c)]=a12_0xe6b16c(0x1db),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0xe6b16c(0x214)]=function(_0x183d5f){const _0xb598ff=a12_0xe6b16c,_0x4bd2dd={};_0x4bd2dd['YEGKf']=_0xb598ff(0x1e9),_0x4bd2dd['JCKOW']='string',_0x4bd2dd['cAOyV']=_0xb598ff(0x213),_0x4bd2dd[_0xb598ff(0x1d1)]=_0xb598ff(0x22a);const _0x196e69=_0x4bd2dd,_0x4e378b={};_0x4e378b[_0xb598ff(0x223)]=_0x196e69[_0xb598ff(0x225)],_0x4e378b[_0xb598ff(0x1f4)]=_0x196e69['JCKOW'];const _0x4b8a74={};_0x4b8a74[_0xb598ff(0x223)]=_0x196e69['cAOyV'],_0x4b8a74[_0xb598ff(0x1f4)]=_0x196e69[_0xb598ff(0x201)];const _0x3bd37e={};return _0x3bd37e[_0xb598ff(0x1e4)]=_0x4e378b,_0x3bd37e[_0xb598ff(0x203)]=_0x4b8a74,_0x183d5f[_0xb598ff(0x215)](HELP_HEADER_MESSAGE[_0xb598ff(0x1db)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xb598ff(0x1dd)](_0x3bd37e)[_0xb598ff(0x22b)]()['strict']()[_0xb598ff(0x22a)](_0x196e69['eUxxD'])[_0xb598ff(0x1d0)];},exports[a12_0xe6b16c(0x1f9)]=async function(_0x1234ce){const _0x1b3408=a12_0xe6b16c,_0xa1ff00={'WGMWs':_0x1b3408(0x1e9),'Epztv':'string','NaFAX':_0x1b3408(0x213),'BdYLO':_0x1b3408(0x22a),'RSGBw':_0x1b3408(0x20f),'rzSWI':function(_0x3a6a26){return _0x3a6a26();},'GfXdV':function(_0x2894cf){return _0x2894cf();},'GjQmH':function(_0x4a3b4f,_0x1c465a,_0x486178,_0x46a653,_0x260720,_0x31afae,_0x527677){return _0x4a3b4f(_0x1c465a,_0x486178,_0x46a653,_0x260720,_0x31afae,_0x527677);},'GchnM':_0x1b3408(0x1cf),'BmQtB':function(_0x4b2b24){return _0x4b2b24();},'IHTIh':function(_0x2bcf13,_0x17a83d){return _0x2bcf13!==_0x17a83d;},'RtMKP':_0x1b3408(0x219),'jIpSN':_0x1b3408(0x22c),'kDgpm':_0x1b3408(0x1e1),'DNJFq':function(_0x4197e3,_0x20de52){return _0x4197e3!==_0x20de52;},'hpyFh':_0x1b3408(0x1cd),'mYvgi':_0x1b3408(0x1d5),'joBds':_0x1b3408(0x1ca),'vLwsl':function(_0x2c6d4f,_0x5737c5){return _0x2c6d4f===_0x5737c5;},'GAZPH':_0x1b3408(0x210),'wtPYu':function(_0xa2f72,_0x4c2215){return _0xa2f72===_0x4c2215;},'uUtIH':_0x1b3408(0x220),'AbzDl':_0x1b3408(0x21e),'VMUbN':function(_0x1db6e2){return _0x1db6e2();},'WEblr':_0x1b3408(0x1df),'izGob':function(_0x5836f6,_0x4376db){return _0x5836f6(_0x4376db);},'uqHdY':function(_0xe074f1,_0x1311e3){return _0xe074f1!==_0x1311e3;},'JuNsD':function(_0x2645d2,_0x3233bb){return _0x2645d2!==_0x3233bb;},'QBsqj':function(_0x22cd80,_0x508df0){return _0x22cd80===_0x508df0;},'NDtZp':_0x1b3408(0x1f0),'Hchna':_0x1b3408(0x20b),'zQPqB':_0x1b3408(0x1d7),'RGTWh':function(_0x57bbb1){return _0x57bbb1();},'xjmsH':function(_0x352937,_0x179216){return _0x352937===_0x179216;},'cBphb':'oamIw','cMxQj':_0x1b3408(0x1f6),'URYgS':_0x1b3408(0x1f5),'fFlCi':_0x1b3408(0x1ff),'yuOpL':function(_0xe54dc8,_0x4998f5,_0x4ce669,_0x42cead,_0x21f0eb,_0x364778,_0x170f09){return _0xe54dc8(_0x4998f5,_0x4ce669,_0x42cead,_0x21f0eb,_0x364778,_0x170f09);},'NLuuy':_0x1b3408(0x222)};try{global_registry[_0x1b3408(0x20a)]=_0xa1ff00[_0x1b3408(0x209)](uuidv4),_0xa1ff00[_0x1b3408(0x21c)](sendInstrumentationEvent,_0x1234ce,_0xa1ff00[_0x1b3408(0x1d2)],messageTypes['INFO'],null,null,_0x1234ce);const _0xdc282a=_0xa1ff00[_0x1b3408(0x1f1)](getDirForConfig);!fs[_0x1b3408(0x1d3)](_0xdc282a)&&(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x1e2)],_0xa1ff00[_0x1b3408(0x1e2)])?_0x24cb19=_0x5c74a5[_0x1b3408(0x1cc)]:fs[_0x1b3408(0x1e0)](_0xdc282a));let _0x2d6109,_0x231d39;if(process[_0x1b3408(0x1ee)][_0x1b3408(0x1c9)]){if(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x229)],_0xa1ff00[_0x1b3408(0x1e5)]))_0x2d6109=process[_0x1b3408(0x1ee)][_0x1b3408(0x1c9)];else{const _0x3aa69a={};_0x3aa69a[_0x1b3408(0x223)]=_0xa1ff00[_0x1b3408(0x1e7)],_0x3aa69a[_0x1b3408(0x1f4)]=_0xa1ff00[_0x1b3408(0x1f8)];const _0x407f07={};_0x407f07[_0x1b3408(0x223)]=_0xa1ff00[_0x1b3408(0x1d6)],_0x407f07[_0x1b3408(0x1f4)]=_0xa1ff00[_0x1b3408(0x1f8)];const _0x4b9b79={};return _0x4b9b79['bstack-username']=_0x3aa69a,_0x4b9b79[_0x1b3408(0x203)]=_0x407f07,_0x4d9802[_0x1b3408(0x215)](_0x233396['init'])[_0x1b3408(0x204)](_0x3a9322)[_0x1b3408(0x1dd)](_0x4b9b79)['recommendCommands']()[_0x1b3408(0x212)]()[_0x1b3408(0x22a)](_0xa1ff00[_0x1b3408(0x1cb)])[_0x1b3408(0x1d0)];}}process[_0x1b3408(0x1ee)][_0x1b3408(0x1e8)]&&(_0xa1ff00[_0x1b3408(0x228)](_0xa1ff00['hpyFh'],_0xa1ff00[_0x1b3408(0x1e6)])?_0x231d39=process[_0x1b3408(0x1ee)][_0x1b3408(0x1e8)]:_0x276c2a=_0x5ccb9a[_0x1b3408(0x1ee)][_0x1b3408(0x1e8)]);_0x1234ce['bstackUsername']&&(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x20e)],_0xa1ff00[_0x1b3408(0x20e)])?_0x2d5ac2=_0x4ef4bb[_0x1b3408(0x1ee)][_0x1b3408(0x1c9)]:_0x2d6109=_0x1234ce[_0x1b3408(0x1fe)]);_0x1234ce[_0x1b3408(0x1cc)]&&(_0xa1ff00['vLwsl'](_0xa1ff00[_0x1b3408(0x1bf)],_0xa1ff00['GAZPH'])?_0x231d39=_0x1234ce['bstackAccesskey']:_0x377563=_0x49b9ed[_0x1b3408(0x1c8)](_0x6ff2d9[_0x1b3408(0x21b)](_0x5d79e6,_0xa1ff00[_0x1b3408(0x211)])));if(_0xa1ff00[_0x1b3408(0x1ef)](_0x2d6109,undefined)||_0xa1ff00[_0x1b3408(0x1ce)](_0x231d39,undefined)){if(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x207)],_0xa1ff00['uUtIH']))_0x5a3e51=_0x146df1[_0x1b3408(0x1fe)];else{logger[_0x1b3408(0x1fb)](_0xa1ff00[_0x1b3408(0x1d9)]);const [_0x3e954a,_0x3f58b7]=await _0xa1ff00[_0x1b3408(0x1da)](inputBstackKeys);_0x2d6109=_0x3e954a,_0x231d39=_0x3f58b7;}}let _0x50f015=![];const _0x5c1f9a={};_0x5c1f9a[_0x1b3408(0x1c5)]=_0x1b3408(0x1c0)+_0x2d6109+':'+_0x231d39+'@'+BS_API_URL+'/automate/plan.json',_0x5c1f9a[_0x1b3408(0x206)]=_0xa1ff00[_0x1b3408(0x1f3)];const _0x434f35=_0x5c1f9a,_0x23597d=await _0xa1ff00[_0x1b3408(0x224)](promisifiedRequest,_0x434f35);if(_0xa1ff00['uqHdY'](_0x23597d,null)&&_0xa1ff00[_0x1b3408(0x1fc)](_0x23597d,undefined)&&_0xa1ff00[_0x1b3408(0x1c4)](_0x23597d['statusCode'],0xc8)){if(_0xa1ff00[_0x1b3408(0x1c4)](_0xa1ff00[_0x1b3408(0x200)],_0xa1ff00[_0x1b3408(0x200)]))_0x50f015=!![];else{let _0x52df13={};const _0x58c285=_0xa1ff00[_0x1b3408(0x226)](_0x3e6a78);_0x3229b0[_0x1b3408(0x1d3)](_0x58c285)&&(_0x52df13=_0x351b36[_0x1b3408(0x1c8)](_0x16a037[_0x1b3408(0x21b)](_0x58c285,_0xa1ff00[_0x1b3408(0x211)])));const _0x58c450={};_0x58c450[_0x1b3408(0x1e3)]=_0x5255f8,_0x58c450['password']=_0x481ab9,_0x52df13[_0x1b3408(0x1c7)]=_0x58c450,_0x1b61f2[_0x1b3408(0x20d)](_0x58c285,_0x2ebae5[_0x1b3408(0x1c6)](_0x52df13)),_0x3ef38c[_0x1b3408(0x202)](0x0);}}if(_0x50f015){if(_0xa1ff00['IHTIh'](_0xa1ff00[_0x1b3408(0x22e)],_0xa1ff00[_0x1b3408(0x1eb)])){let _0x192d8e={};const _0x23ba8e=_0xa1ff00[_0x1b3408(0x1ed)](getCredentialsPath);fs[_0x1b3408(0x1d3)](_0x23ba8e)&&(_0xa1ff00[_0x1b3408(0x217)](_0xa1ff00[_0x1b3408(0x1fd)],_0xa1ff00['cMxQj'])?_0x3bbfad=!![]:_0x192d8e=JSON[_0x1b3408(0x1c8)](fs['readFileSync'](_0x23ba8e,_0xa1ff00[_0x1b3408(0x211)])));const _0x47960c={};_0x47960c[_0x1b3408(0x1e3)]=_0x2d6109,_0x47960c['password']=_0x231d39,_0x192d8e['Browserstack']=_0x47960c,fs[_0x1b3408(0x20d)](_0x23ba8e,JSON[_0x1b3408(0x1c6)](_0x192d8e)),process[_0x1b3408(0x202)](0x0);}else _0x5e510b[_0x1b3408(0x1e0)](_0x597e2f);}else logger['error'](_0xa1ff00[_0x1b3408(0x221)]),await _0xa1ff00[_0x1b3408(0x21c)](sendInstrumentationEvent,_0x1234ce,_0xa1ff00[_0x1b3408(0x1d2)],messageTypes[_0x1b3408(0x1c3)],_0xa1ff00[_0x1b3408(0x1ea)],null,_0x1234ce),process['exit'](0x1);}catch(_0x3b7372){logger[_0x1b3408(0x1f2)](_0x3b7372[_0x1b3408(0x21d)]),await _0xa1ff00[_0x1b3408(0x218)](sendInstrumentationEvent,_0x1234ce,_0xa1ff00[_0x1b3408(0x1d2)],messageTypes[_0x1b3408(0x1c3)],_0xa1ff00['NLuuy'],_0x3b7372,_0x1234ce),process[_0x1b3408(0x202)](0x1);}};function a12_0x80e7(){const _0x58e427=['Epztv','handler','7460168XLclKl','debug','JuNsD','cBphb','bstackUsername','wrong-creds','NDtZp','JCKOW','exit','bstack-accesskey','epilogue','864QoJSGA','method','uUtIH','IHTIh','GfXdV','requestId','LPrqk','command','writeFileSync','joBds','utf-8','ESkAz','RSGBw','strict','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','usage','../config/constants','xjmsH','yuOpL','LUOnX','../utils/userInput','readFileSync','GjQmH','stack','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','154792emBEgm','mgxXx','URYgS','unknown-error','description','izGob','YEGKf','rzSWI','../utils/utilityMethods','DNJFq','jIpSN','help','recommendCommands','CvvgJ','2063020JHjCNe','Hchna','GAZPH','https://','10FWfCJQ','../config/logger','ERROR','QBsqj','url','stringify','Browserstack','parse','BROWSERSTACK_USERNAME','DlPQp','BdYLO','bstackAccesskey','hebfR','vLwsl','init-called','argv','eUxxD','GchnM','existsSync','80890iVliFP','jCdQM','NaFAX','Ayzmz','2957916XbcBCy','AbzDl','VMUbN','init','uuid','options','14nVjvLV','GET','mkdirSync','ePHpa','RtMKP','username','bstack-username','kDgpm','mYvgi','WGMWs','BROWSERSTACK_ACCESS_KEY','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','fFlCi','zQPqB','9102786cusIXu','RGTWh','env','wtPYu','VXnOn','BmQtB','error','WEblr','type','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','CjPfq','1853022YoTeCE'];a12_0x80e7=function(){return _0x58e427;};return a12_0x80e7();}
@@ -1 +1 @@
1
- function a14_0x34f8(_0x402a5f,_0x1e18ef){const _0x17da57=a14_0x17da();return a14_0x34f8=function(_0x34f88d,_0x3b5136){_0x34f88d=_0x34f88d-0xf8;let _0x44e464=_0x17da57[_0x34f88d];return _0x44e464;},a14_0x34f8(_0x402a5f,_0x1e18ef);}const a14_0x246f7a=a14_0x34f8;(function(_0x4e0d61,_0xc8e98f){const _0x428786=a14_0x34f8,_0x3577a8=_0x4e0d61();while(!![]){try{const _0x5b7f19=parseInt(_0x428786(0xfe))/0x1+-parseInt(_0x428786(0xfc))/0x2*(parseInt(_0x428786(0x10c))/0x3)+-parseInt(_0x428786(0x100))/0x4+parseInt(_0x428786(0x110))/0x5+parseInt(_0x428786(0xf9))/0x6*(-parseInt(_0x428786(0x111))/0x7)+parseInt(_0x428786(0x109))/0x8*(parseInt(_0x428786(0x107))/0x9)+-parseInt(_0x428786(0xff))/0xa;if(_0x5b7f19===_0xc8e98f)break;else _0x3577a8['push'](_0x3577a8['shift']());}catch(_0xc11b3){_0x3577a8['push'](_0x3577a8['shift']());}}}(a14_0x17da,0x92124));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x246f7a(0xfa));function a14_0x17da(){const _0x3e9337=['../config/constants','epilogue','89970eLtQpi','root','809324zzihWc','2167290ZNtVlR','4593716jyrcNW','YTTgV','commandDir','usage','help','list_commands','Qhimn','10384137tEpWcH','handler','8tieuXE','demandCommand','list','24fpqHqX','recommendCommands','desc','List\x20down\x20the\x20Grid\x20resources.','3264885hkmUcI','1024618tupIxe','command','12abieyY'];a14_0x17da=function(){return _0x3e9337;};return a14_0x17da();}exports[a14_0x246f7a(0xf8)]=a14_0x246f7a(0x10b),exports[a14_0x246f7a(0x10e)]=a14_0x246f7a(0x10f),exports['builder']=function(_0x14cf97){const _0x1b10bc=a14_0x246f7a,_0xfed328={};_0xfed328[_0x1b10bc(0x106)]=_0x1b10bc(0x105),_0xfed328[_0x1b10bc(0x101)]=_0x1b10bc(0x104);const _0xb9dc41=_0xfed328;return _0x14cf97[_0x1b10bc(0x102)](_0xb9dc41[_0x1b10bc(0x106)])[_0x1b10bc(0x10a)]()[_0x1b10bc(0x103)](HELP_HEADER_MESSAGE[_0x1b10bc(0x10b)][_0x1b10bc(0xfd)])[_0x1b10bc(0xfb)](HELP_FOOTER_MESSAGE)[_0x1b10bc(0x10d)]()['strict']()[_0x1b10bc(0x104)](_0xb9dc41[_0x1b10bc(0x101)]);},exports[a14_0x246f7a(0x108)]=function(_0x5cea5d){};
1
+ const a13_0x594484=a13_0x1774;(function(_0x1593f7,_0x33bc04){const _0x50bfba=a13_0x1774,_0x522b=_0x1593f7();while(!![]){try{const _0x5b1368=-parseInt(_0x50bfba(0xba))/0x1*(parseInt(_0x50bfba(0xb6))/0x2)+-parseInt(_0x50bfba(0xae))/0x3*(-parseInt(_0x50bfba(0xbc))/0x4)+parseInt(_0x50bfba(0xbe))/0x5+parseInt(_0x50bfba(0xaa))/0x6*(-parseInt(_0x50bfba(0xb3))/0x7)+-parseInt(_0x50bfba(0xb1))/0x8*(-parseInt(_0x50bfba(0xb9))/0x9)+-parseInt(_0x50bfba(0xb4))/0xa*(parseInt(_0x50bfba(0xbb))/0xb)+parseInt(_0x50bfba(0xa8))/0xc;if(_0x5b1368===_0x33bc04)break;else _0x522b['push'](_0x522b['shift']());}catch(_0x43fe68){_0x522b['push'](_0x522b['shift']());}}}(a13_0x4389,0xbb77a));function a13_0x1774(_0x5ae41f,_0xb9ec63){const _0x438939=a13_0x4389();return a13_0x1774=function(_0x1774e5,_0x4222c6){_0x1774e5=_0x1774e5-0xa4;let _0x118a64=_0x438939[_0x1774e5];return _0x118a64;},a13_0x1774(_0x5ae41f,_0xb9ec63);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x594484(0xab));function a13_0x4389(){const _0x55bcd0=['handler','300870qxBhRn','15XHybpp','8558uiJxLZ','57756wAunuR','list_commands','4740625pDvCgr','builder','desc','commandDir','list','22803876zdLeIe','command','42LTbkNR','../config/constants','demandCommand','root','12bszOsQ','epilogue','LylIM','40vuljiE','strict','1316462zihOld','10270DaUiaX','yLbei','25336BcscTL','help'];a13_0x4389=function(){return _0x55bcd0;};return a13_0x4389();}exports[a13_0x594484(0xa9)]=a13_0x594484(0xa7),exports[a13_0x594484(0xa5)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x594484(0xa4)]=function(_0x313e77){const _0xff7ee5=a13_0x594484,_0x46272a={};_0x46272a[_0xff7ee5(0xb5)]=_0xff7ee5(0xbd),_0x46272a[_0xff7ee5(0xb0)]=_0xff7ee5(0xb7);const _0xf37200=_0x46272a;return _0x313e77[_0xff7ee5(0xa6)](_0xf37200[_0xff7ee5(0xb5)])[_0xff7ee5(0xac)]()['usage'](HELP_HEADER_MESSAGE['list'][_0xff7ee5(0xad)])[_0xff7ee5(0xaf)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0xff7ee5(0xb2)]()[_0xff7ee5(0xb7)](_0xf37200[_0xff7ee5(0xb0)]);},exports[a13_0x594484(0xb8)]=function(_0x5e6c46){};
@@ -1 +1 @@
1
- const a15_0x21923d=a15_0x2b9f;(function(_0x3ca35e,_0x51fcf0){const _0x31770c=a15_0x2b9f,_0x818b7a=_0x3ca35e();while(!![]){try{const _0xbcbb42=parseInt(_0x31770c(0x193))/0x1*(parseInt(_0x31770c(0x192))/0x2)+parseInt(_0x31770c(0x17a))/0x3+-parseInt(_0x31770c(0x198))/0x4*(-parseInt(_0x31770c(0x181))/0x5)+-parseInt(_0x31770c(0x195))/0x6*(parseInt(_0x31770c(0x1a4))/0x7)+-parseInt(_0x31770c(0x177))/0x8+parseInt(_0x31770c(0x17b))/0x9*(parseInt(_0x31770c(0x15b))/0xa)+-parseInt(_0x31770c(0x176))/0xb;if(_0xbcbb42===_0x51fcf0)break;else _0x818b7a['push'](_0x818b7a['shift']());}catch(_0x358079){_0x818b7a['push'](_0x818b7a['shift']());}}}(a15_0x26df,0xdcdda));function a15_0x2b9f(_0x42846c,_0x4ede5d){const _0x26df21=a15_0x26df();return a15_0x2b9f=function(_0x2b9fd2,_0x2f1f4d){_0x2b9fd2=_0x2b9fd2-0x159;let _0x5ec4ec=_0x26df21[_0x2b9fd2];return _0x5ec4ec;},a15_0x2b9f(_0x42846c,_0x4ede5d);}function a15_0x26df(){const _0x11a78b=['log','usage','body','table','command','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','promisify','error','request','https://','forEach','init-not-called','boolean','description','bstackAccesskey','34273338TsLvea','1316496aWmCqK','khRkk','NUSkl','3060732jzPBNm','9jAFzUH','util','FmuKr','aXMck','concurrency','bstackUsername','4145185QxLiXj','BsKAi','iheEP','kKpJR','UoDqY','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/instrumentationUtils','epilogue','AJgdQ','vcFwZ','builder','password','aSmKb','MmOlo','auth','handler','existsSync','250wgeSoI','14401jWobwN','Browserstack','654upvEDG','dcSNS','method','4AZqlwa','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','unknown-error','ZTexZ','type','stringify','INFO','XWhNU','allGridProfiles','all-grid-profiles','ERROR','Qdloq','19103ZdvpPt','push','options','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid-profiles','srdFo','HDNSr','url','/packages/cli/get-grid-profiles','cloud-provider','EHrIo','desc','AQIPA','cloudProvider','region','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','username','help','server-error','EjbGg','parse','8330410wLeyvC','unauthorised','requestId','list-grid-profiles-called','stack','../../utils/utilityMethods','IHNni','exit','GET','../../config/constants','statusCode'];a15_0x26df=function(){return _0x11a78b;};return a15_0x26df();}const fs=require('fs'),util=require(a15_0x21923d(0x17c)),request=require(a15_0x21923d(0x16f)),{table}=require(a15_0x21923d(0x169)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x21923d(0x164)),{getCredentialsPath}=require(a15_0x21923d(0x160)),{sendInstrumentationEvent}=require(a15_0x21923d(0x187)),promisifiedRequest=util[a15_0x21923d(0x16d)](request);exports[a15_0x21923d(0x16a)]=a15_0x21923d(0x1a8),exports[a15_0x21923d(0x1af)]=a15_0x21923d(0x199),exports[a15_0x21923d(0x18b)]=function(_0x368e7b){const _0x57dabc=a15_0x21923d,_0x8eb309={};_0x8eb309[_0x57dabc(0x196)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x8eb309[_0x57dabc(0x1aa)]=_0x57dabc(0x173),_0x8eb309[_0x57dabc(0x189)]='help';const _0x10047c=_0x8eb309,_0x5e1388={};_0x5e1388[_0x57dabc(0x174)]=_0x10047c['dcSNS'],_0x5e1388[_0x57dabc(0x19c)]=_0x10047c[_0x57dabc(0x1aa)];const _0x514bae={};return _0x514bae[_0x57dabc(0x1a1)]=_0x5e1388,_0x368e7b[_0x57dabc(0x167)](HELP_HEADER_MESSAGE[_0x57dabc(0x16b)]['gridProfile'])[_0x57dabc(0x188)](HELP_FOOTER_MESSAGE)[_0x57dabc(0x1a6)](_0x514bae)[_0x57dabc(0x1b5)](_0x10047c[_0x57dabc(0x189)])['argv'];},exports[a15_0x21923d(0x190)]=async function(_0x515bda){const _0x14a7dd=a15_0x21923d,_0x4f83af={'MmOlo':function(_0x5480eb){return _0x5480eb();},'vmBKI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EHrIo':function(_0x54bda2,_0x2f8b6c,_0x739831,_0x9bf0c7,_0x53bc66,_0x24d319,_0x1fb709){return _0x54bda2(_0x2f8b6c,_0x739831,_0x9bf0c7,_0x53bc66,_0x24d319,_0x1fb709);},'BsKAi':_0x14a7dd(0x15e),'aXMck':_0x14a7dd(0x172),'NUSkl':function(_0x57d8fa,_0xab27e5,_0x36dc3c,_0x4caae4,_0x370b98,_0x12f8fa,_0x52cf97){return _0x57d8fa(_0xab27e5,_0x36dc3c,_0x4caae4,_0x370b98,_0x12f8fa,_0x52cf97);},'Qdloq':_0x14a7dd(0x163),'IHNni':function(_0x37d56f,_0x202743){return _0x37d56f(_0x202743);},'IbJPL':function(_0x522fcc,_0x54367b){return _0x522fcc!==_0x54367b;},'ZTexZ':function(_0x379a6e,_0x2f697c){return _0x379a6e!==_0x2f697c;},'UoDqY':function(_0x5bf38a,_0x125c94){return _0x5bf38a===_0x125c94;},'FmuKr':_0x14a7dd(0x1b3),'EjbGg':'grid-profile-name','kKpJR':_0x14a7dd(0x1ad),'aSmKb':_0x14a7dd(0x1b2),'XWhNU':'concurrency','iheEP':function(_0x4ceef1,_0xd357ed){return _0x4ceef1===_0xd357ed;},'AQIPA':_0x14a7dd(0x15c),'srdFo':_0x14a7dd(0x1b6),'khRkk':function(_0x3817b7,_0x4fd549,_0x187675,_0x39dbd0,_0x4de139,_0x33db10,_0x294844){return _0x3817b7(_0x4fd549,_0x187675,_0x39dbd0,_0x4de139,_0x33db10,_0x294844);},'vcFwZ':_0x14a7dd(0x19a)};try{global_registry[_0x14a7dd(0x15d)]=_0x4f83af[_0x14a7dd(0x18e)](uuidv4);let _0x10c171='https://'+AG_API_URL+_0x14a7dd(0x1ac);_0x515bda[_0x14a7dd(0x1a0)]&&(_0x10c171=_0x14a7dd(0x170)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x14a7dd(0x191)](_0x4f83af[_0x14a7dd(0x18e)](getCredentialsPath))&&(console['error'](_0x4f83af['vmBKI']),await _0x4f83af[_0x14a7dd(0x1ae)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes['ERROR'],_0x4f83af[_0x14a7dd(0x17e)],null,_0x515bda),process[_0x14a7dd(0x162)](0x1));_0x4f83af[_0x14a7dd(0x179)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes[_0x14a7dd(0x19e)],null,null,_0x515bda);const _0x5795a9=JSON[_0x14a7dd(0x15a)](fs['readFileSync'](_0x4f83af[_0x14a7dd(0x18e)](getCredentialsPath))),_0x4c7693={};_0x4c7693['username']=_0x5795a9[_0x14a7dd(0x194)][_0x14a7dd(0x1b4)],_0x4c7693['password']=_0x5795a9['Browserstack'][_0x14a7dd(0x18c)];const _0x451438={};_0x451438[_0x14a7dd(0x1ab)]=_0x10c171,_0x451438[_0x14a7dd(0x197)]=_0x4f83af[_0x14a7dd(0x1a3)],_0x451438[_0x14a7dd(0x18f)]=_0x4c7693;const _0x1b496e=_0x451438;global_registry[_0x14a7dd(0x180)]=_0x5795a9[_0x14a7dd(0x194)]['username'],global_registry[_0x14a7dd(0x175)]=_0x5795a9[_0x14a7dd(0x194)][_0x14a7dd(0x18c)];const _0x4bd927=await _0x4f83af[_0x14a7dd(0x161)](promisifiedRequest,_0x1b496e);if(_0x4f83af['IbJPL'](_0x4bd927,null)&&_0x4f83af[_0x14a7dd(0x19b)](_0x4bd927,undefined)&&_0x4f83af[_0x14a7dd(0x185)](_0x4bd927[_0x14a7dd(0x165)],0xc8)){const _0x455c26=JSON[_0x14a7dd(0x15a)](_0x4bd927[_0x14a7dd(0x168)]);console[_0x14a7dd(0x166)](_0x4f83af[_0x14a7dd(0x17d)]);const _0x3cb4c5=[];_0x3cb4c5[_0x14a7dd(0x1a5)]([_0x4f83af[_0x14a7dd(0x159)],_0x4f83af[_0x14a7dd(0x184)],_0x4f83af[_0x14a7dd(0x18d)],_0x4f83af[_0x14a7dd(0x19f)]]),_0x455c26[_0x14a7dd(0x171)](_0x11241f=>{const _0x1302e0=_0x14a7dd;_0x3cb4c5[_0x1302e0(0x1a5)]([_0x11241f['name'],_0x11241f[_0x1302e0(0x1b1)],_0x11241f[_0x1302e0(0x1b2)],_0x11241f[_0x1302e0(0x17f)]]);}),console[_0x14a7dd(0x166)](_0x4f83af[_0x14a7dd(0x161)](table,_0x3cb4c5)),process[_0x14a7dd(0x162)](0x0);}_0x4f83af[_0x14a7dd(0x183)](_0x4bd927[_0x14a7dd(0x165)],0x191)&&(console['error'](_0x14a7dd(0x16c)),await _0x4f83af[_0x14a7dd(0x1ae)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes['ERROR'],_0x4f83af[_0x14a7dd(0x1b0)],null,_0x515bda),process[_0x14a7dd(0x162)](0x1)),console[_0x14a7dd(0x16e)](_0x14a7dd(0x186)+JSON[_0x14a7dd(0x19d)](_0x4bd927)),await _0x4f83af[_0x14a7dd(0x179)](sendInstrumentationEvent,_0x515bda,_0x4f83af['BsKAi'],messageTypes[_0x14a7dd(0x1a2)],_0x4f83af[_0x14a7dd(0x1a9)],_0x4bd927,_0x515bda),process[_0x14a7dd(0x162)](0x1);}catch(_0x23f49f){console[_0x14a7dd(0x16e)](_0x14a7dd(0x1a7)+_0x23f49f[_0x14a7dd(0x15f)]),await _0x4f83af[_0x14a7dd(0x178)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes[_0x14a7dd(0x1a2)],_0x4f83af[_0x14a7dd(0x18a)],_0x23f49f,_0x515bda),process[_0x14a7dd(0x162)](0x1);}};
1
+ function a14_0x3058(){const _0x52d881=['grid-profile-name','https://','username','password','wqqIx','forEach','allGridProfiles','init-not-called','push','log','AvNiV','grid-profiles','rJKJZ','kmFeR','18520erjZHp','concurrency','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','util','6779312tWCyDL','sVezr','ERROR','usage','unknown-error','handler','desc','help','error','1736588SPYPQf','GET','promisify','cloud-provider','list','statusCode','exit','1810188WWshgq','kYuuT','body','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','region','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UuzSd','/packages/cli/get-all-grid-profiles','Browserstack','stringify','table','bsqVv','2199792vtCJea','gridProfile','description','bstackUsername','/packages/cli/get-grid-profiles','url','wZLXu','idkFn','PAPYh','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','426gRIgHr','server-error','Failed\x20to\x20list\x20resources!\x20Error:\x20','eQCaA','CyZHB','bstackAccesskey','pYcGg','request','parse','cloudProvider','boolean','GBkVZ','730628ptNlaM','2hDrGND','options','existsSync','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unauthorised','pZesI','INFO','readFileSync','method','euznA','sREwD','requestId','builder','auth','ZXCZd','uCiKG','argv','451497aTBKUa','name'];a14_0x3058=function(){return _0x52d881;};return a14_0x3058();}const a14_0x5dfe3d=a14_0x3308;(function(_0x737a0f,_0x266c2d){const _0x45fe4e=a14_0x3308,_0x9c034=_0x737a0f();while(!![]){try{const _0x4b0971=-parseInt(_0x45fe4e(0xaf))/0x1*(-parseInt(_0x45fe4e(0xb0))/0x2)+-parseInt(_0x45fe4e(0xc2))/0x3+parseInt(_0x45fe4e(0xf3))/0x4+parseInt(_0x45fe4e(0xd2))/0x5*(parseInt(_0x45fe4e(0xa3))/0x6)+-parseInt(_0x45fe4e(0xdf))/0x7+-parseInt(_0x45fe4e(0xd6))/0x8+parseInt(_0x45fe4e(0xe6))/0x9;if(_0x4b0971===_0x266c2d)break;else _0x9c034['push'](_0x9c034['shift']());}catch(_0x137499){_0x9c034['push'](_0x9c034['shift']());}}}(a14_0x3058,0x79c07));const fs=require('fs'),util=require(a14_0x5dfe3d(0xd5)),request=require(a14_0x5dfe3d(0xaa)),{table}=require(a14_0x5dfe3d(0xf1)),{v4:uuidv4}=require(a14_0x5dfe3d(0xb3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x5dfe3d(0xa1)),promisifiedRequest=util[a14_0x5dfe3d(0xe1)](request);function a14_0x3308(_0x19392f,_0x19f474){const _0x30584b=a14_0x3058();return a14_0x3308=function(_0x3308fe,_0x928f7){_0x3308fe=_0x3308fe-0x9f;let _0x575d8f=_0x30584b[_0x3308fe];return _0x575d8f;},a14_0x3308(_0x19392f,_0x19f474);}exports['command']=a14_0x5dfe3d(0xcf),exports[a14_0x5dfe3d(0xdc)]=a14_0x5dfe3d(0xd4),exports[a14_0x5dfe3d(0xbd)]=function(_0x18712a){const _0x53e791=a14_0x5dfe3d,_0x5a8045={};_0x5a8045[_0x53e791(0xae)]=_0x53e791(0xe9),_0x5a8045['idkFn']=_0x53e791(0xad),_0x5a8045[_0x53e791(0xc0)]=_0x53e791(0xdd);const _0x5f5202=_0x5a8045,_0x9f105b={};_0x9f105b[_0x53e791(0xf5)]=_0x5f5202[_0x53e791(0xae)],_0x9f105b['type']=_0x5f5202[_0x53e791(0x9f)];const _0x3453a8={};return _0x3453a8['all-grid-profiles']=_0x9f105b,_0x18712a[_0x53e791(0xd9)](HELP_HEADER_MESSAGE[_0x53e791(0xe3)][_0x53e791(0xf4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x53e791(0xb1)](_0x3453a8)[_0x53e791(0xdd)](_0x5f5202['uCiKG'])[_0x53e791(0xc1)];},exports[a14_0x5dfe3d(0xdb)]=async function(_0x363c13){const _0x2e87af=a14_0x5dfe3d,_0x5e60d7={'ZXCZd':function(_0x1eb097){return _0x1eb097();},'pZesI':function(_0x280e21){return _0x280e21();},'AvNiV':_0x2e87af(0xec),'eQCaA':function(_0x16eece,_0xd5d84f,_0x39159d,_0x5bb133,_0x3ee9ae,_0x15c948,_0x552dd7){return _0x16eece(_0xd5d84f,_0x39159d,_0x5bb133,_0x3ee9ae,_0x15c948,_0x552dd7);},'CyZHB':'list-grid-profiles-called','kjdKy':_0x2e87af(0xcb),'zuHZm':function(_0x37ea91,_0x42a634,_0x520d7e,_0x6e69d9,_0x215b7c,_0x5be202,_0x1ce530){return _0x37ea91(_0x42a634,_0x520d7e,_0x6e69d9,_0x215b7c,_0x5be202,_0x1ce530);},'bsqVv':_0x2e87af(0xe0),'rJKJZ':function(_0x58a98f,_0x239997){return _0x58a98f(_0x239997);},'wqqIx':function(_0x53c8ec,_0x10d361){return _0x53c8ec!==_0x10d361;},'hqWcs':function(_0x271517,_0x1e2666){return _0x271517!==_0x1e2666;},'kmFeR':function(_0x194d32,_0x153ab9){return _0x194d32===_0x153ab9;},'sVezr':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','kAxoN':_0x2e87af(0xc4),'PxTSG':_0x2e87af(0xe2),'pYcGg':_0x2e87af(0xea),'euznA':'concurrency','sREwD':function(_0x46dd29,_0x3cc2b7){return _0x46dd29(_0x3cc2b7);},'AYCVB':function(_0x156b2c,_0x31a5cc){return _0x156b2c===_0x31a5cc;},'UuzSd':function(_0x3764e5,_0x3d34c6,_0x961d19,_0xf94ece,_0x48019f,_0x2f6655,_0x367400){return _0x3764e5(_0x3d34c6,_0x961d19,_0xf94ece,_0x48019f,_0x2f6655,_0x367400);},'wZLXu':_0x2e87af(0xb5),'kYuuT':function(_0x3c2826,_0x3292be,_0x10af17,_0x4fa161,_0x479664,_0x3b0ec8,_0x1cc06b){return _0x3c2826(_0x3292be,_0x10af17,_0x4fa161,_0x479664,_0x3b0ec8,_0x1cc06b);},'iFUAZ':_0x2e87af(0xa4),'eEbUr':function(_0x4b5513,_0x5661d7,_0xca1367,_0x3ff9e3,_0x2bd413,_0x240afb,_0x58d667){return _0x4b5513(_0x5661d7,_0xca1367,_0x3ff9e3,_0x2bd413,_0x240afb,_0x58d667);},'PAPYh':_0x2e87af(0xda)};try{global_registry[_0x2e87af(0xbc)]=_0x5e60d7[_0x2e87af(0xbf)](uuidv4);let _0x3fa72e=_0x2e87af(0xc5)+AG_API_URL+_0x2e87af(0xf7);_0x363c13[_0x2e87af(0xca)]&&(_0x3fa72e=_0x2e87af(0xc5)+AG_API_URL+_0x2e87af(0xee));!fs[_0x2e87af(0xb2)](_0x5e60d7[_0x2e87af(0xb6)](getCredentialsPath))&&(console[_0x2e87af(0xde)](_0x5e60d7[_0x2e87af(0xce)]),await _0x5e60d7[_0x2e87af(0xa6)](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7['kjdKy'],null,_0x363c13),process[_0x2e87af(0xe5)](0x1));_0x5e60d7['zuHZm'](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xb7)],null,null,_0x363c13);const _0x4e0510=JSON[_0x2e87af(0xab)](fs[_0x2e87af(0xb8)](_0x5e60d7[_0x2e87af(0xbf)](getCredentialsPath))),_0x5706d3={};_0x5706d3[_0x2e87af(0xc6)]=_0x4e0510[_0x2e87af(0xef)]['username'],_0x5706d3[_0x2e87af(0xc7)]=_0x4e0510[_0x2e87af(0xef)][_0x2e87af(0xc7)];const _0x49edd3={};_0x49edd3[_0x2e87af(0xf8)]=_0x3fa72e,_0x49edd3[_0x2e87af(0xb9)]=_0x5e60d7[_0x2e87af(0xf2)],_0x49edd3[_0x2e87af(0xbe)]=_0x5706d3;const _0x217b54=_0x49edd3;global_registry[_0x2e87af(0xf6)]=_0x4e0510[_0x2e87af(0xef)][_0x2e87af(0xc6)],global_registry[_0x2e87af(0xa8)]=_0x4e0510[_0x2e87af(0xef)][_0x2e87af(0xc7)];const _0xc54b34=await _0x5e60d7[_0x2e87af(0xd0)](promisifiedRequest,_0x217b54);if(_0x5e60d7[_0x2e87af(0xc8)](_0xc54b34,null)&&_0x5e60d7['hqWcs'](_0xc54b34,undefined)&&_0x5e60d7[_0x2e87af(0xd1)](_0xc54b34[_0x2e87af(0xe4)],0xc8)){const _0x3ec0d9=JSON[_0x2e87af(0xab)](_0xc54b34[_0x2e87af(0xe8)]);console[_0x2e87af(0xcd)](_0x5e60d7[_0x2e87af(0xd7)]);const _0x143151=[];_0x143151[_0x2e87af(0xcc)]([_0x5e60d7['kAxoN'],_0x5e60d7['PxTSG'],_0x5e60d7[_0x2e87af(0xa9)],_0x5e60d7[_0x2e87af(0xba)]]),_0x3ec0d9[_0x2e87af(0xc9)](_0x337514=>{const _0x6a2761=_0x2e87af;_0x143151[_0x6a2761(0xcc)]([_0x337514[_0x6a2761(0xc3)],_0x337514[_0x6a2761(0xac)],_0x337514[_0x6a2761(0xea)],_0x337514[_0x6a2761(0xd3)]]);}),console[_0x2e87af(0xcd)](_0x5e60d7[_0x2e87af(0xbb)](table,_0x143151)),process[_0x2e87af(0xe5)](0x0);}_0x5e60d7['AYCVB'](_0xc54b34[_0x2e87af(0xe4)],0x191)&&(console[_0x2e87af(0xde)](_0x2e87af(0xb4)),await _0x5e60d7[_0x2e87af(0xed)](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7[_0x2e87af(0xf9)],null,_0x363c13),process[_0x2e87af(0xe5)](0x1)),console['error'](_0x2e87af(0xa2)+JSON[_0x2e87af(0xf0)](_0xc54b34)),await _0x5e60d7[_0x2e87af(0xe7)](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7['iFUAZ'],_0xc54b34,_0x363c13),process['exit'](0x1);}catch(_0x161912){console[_0x2e87af(0xde)](_0x2e87af(0xa5)+_0x161912[_0x2e87af(0xeb)]),await _0x5e60d7['eEbUr'](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7[_0x2e87af(0xa0)],_0x161912,_0x363c13),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x3d849a=a16_0x53ce;(function(_0x2d5df1,_0x3bb3fe){const _0x588504=a16_0x53ce,_0x1a61d5=_0x2d5df1();while(!![]){try{const _0x1193d6=-parseInt(_0x588504(0x14e))/0x1*(-parseInt(_0x588504(0x123))/0x2)+parseInt(_0x588504(0x11b))/0x3+parseInt(_0x588504(0x137))/0x4+parseInt(_0x588504(0x111))/0x5*(parseInt(_0x588504(0x132))/0x6)+-parseInt(_0x588504(0x12c))/0x7+-parseInt(_0x588504(0x131))/0x8*(-parseInt(_0x588504(0x14b))/0x9)+parseInt(_0x588504(0x133))/0xa*(-parseInt(_0x588504(0x160))/0xb);if(_0x1193d6===_0x3bb3fe)break;else _0x1a61d5['push'](_0x1a61d5['shift']());}catch(_0xeb0a12){_0x1a61d5['push'](_0x1a61d5['shift']());}}}(a16_0x44a6,0xcfce9));const fs=require('fs'),util=require(a16_0x3d849a(0x117)),request=require(a16_0x3d849a(0x138)),{table}=require('table'),{v4:uuidv4}=require(a16_0x3d849a(0x165)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x3d849a(0x15a)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a16_0x3d849a(0x119)),promisifiedRequest=util[a16_0x3d849a(0x11a)](request);function a16_0x53ce(_0x4d18b5,_0x2bac7b){const _0x44a604=a16_0x44a6();return a16_0x53ce=function(_0x53cea2,_0x177f7f){_0x53cea2=_0x53cea2-0x10c;let _0x35ccff=_0x44a604[_0x53cea2];return _0x35ccff;},a16_0x53ce(_0x4d18b5,_0x2bac7b);}exports[a16_0x3d849a(0x120)]='grids',exports['desc']=a16_0x3d849a(0x134),exports[a16_0x3d849a(0x11c)]=function(_0x4c573a){const _0x1d823b=a16_0x3d849a,_0x555baf={};_0x555baf[_0x1d823b(0x114)]=_0x1d823b(0x10f),_0x555baf['UdCMA']=_0x1d823b(0x10e),_0x555baf[_0x1d823b(0x122)]='help';const _0x285f87=_0x555baf,_0x4fae40={};_0x4fae40[_0x1d823b(0x157)]=_0x285f87['EqUVl'],_0x4fae40['type']=_0x285f87[_0x1d823b(0x116)];const _0x14ffc7={};return _0x14ffc7['all-grids']=_0x4fae40,_0x4c573a[_0x1d823b(0x112)](HELP_HEADER_MESSAGE[_0x1d823b(0x115)][_0x1d823b(0x10c)])[_0x1d823b(0x14f)](HELP_FOOTER_MESSAGE)['options'](_0x14ffc7)[_0x1d823b(0x144)](_0x285f87[_0x1d823b(0x122)])[_0x1d823b(0x124)];},exports[a16_0x3d849a(0x167)]=async function(_0x3dc004){const _0x5d7d7c=a16_0x3d849a,_0x1c81e0={'YkZiV':function(_0x24038a){return _0x24038a();},'FrtLD':function(_0x3f514a){return _0x3f514a();},'PiAPm':_0x5d7d7c(0x154),'gWwNs':function(_0xe43f1e,_0x461d7d,_0x2e9a77,_0xd21854,_0x15892a,_0x59cad7,_0x1abd2b){return _0xe43f1e(_0x461d7d,_0x2e9a77,_0xd21854,_0x15892a,_0x59cad7,_0x1abd2b);},'WGudO':_0x5d7d7c(0x152),'qdoTE':_0x5d7d7c(0x14d),'URzZv':function(_0x50f935){return _0x50f935();},'qxXcQ':'GET','OmzGV':function(_0x52cd1f,_0x520e2d){return _0x52cd1f(_0x520e2d);},'jwdJn':function(_0x32b89f,_0x3c8b12){return _0x32b89f!==_0x3c8b12;},'uQBPd':function(_0x18f6db,_0x47eb17){return _0x18f6db!==_0x47eb17;},'pJyYl':function(_0x41113e,_0x438bd1){return _0x41113e===_0x438bd1;},'Rprug':_0x5d7d7c(0x13f),'viwbm':_0x5d7d7c(0x143),'hBYIQ':'grid-name','LVgxG':_0x5d7d7c(0x166),'eBWHz':_0x5d7d7c(0x12b),'vIOdE':_0x5d7d7c(0x15f),'iAmKt':_0x5d7d7c(0x146),'czkQa':function(_0x2476b9,_0x508569){return _0x2476b9===_0x508569;},'pfJSP':function(_0x288140,_0x3e5c43,_0x46ac42,_0x33984d,_0x9571e3,_0x712927,_0xfdcd16){return _0x288140(_0x3e5c43,_0x46ac42,_0x33984d,_0x9571e3,_0x712927,_0xfdcd16);},'CePxb':_0x5d7d7c(0x13a),'xrFoI':_0x5d7d7c(0x159),'ROySd':function(_0x304266,_0x3ade3c,_0x3c8573,_0x44a312,_0x3a2b78,_0x5d6c4b,_0x38981b){return _0x304266(_0x3ade3c,_0x3c8573,_0x44a312,_0x3a2b78,_0x5d6c4b,_0x38981b);},'kPuqa':'unknown-error'};try{global_registry[_0x5d7d7c(0x11e)]=_0x1c81e0[_0x5d7d7c(0x14c)](uuidv4);!fs[_0x5d7d7c(0x129)](_0x1c81e0[_0x5d7d7c(0x136)](getCredentialsPath))&&(console['error'](_0x1c81e0['PiAPm']),await _0x1c81e0[_0x5d7d7c(0x130)](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x163)],_0x1c81e0[_0x5d7d7c(0x11d)],null,_0x3dc004),process[_0x5d7d7c(0x135)](0x1));const _0x48e705=JSON[_0x5d7d7c(0x153)](fs[_0x5d7d7c(0x141)](_0x1c81e0[_0x5d7d7c(0x13b)](getCredentialsPath)));let _0x53b291='https://'+AG_API_URL+'/packages/cli/get-grids';_0x3dc004[_0x5d7d7c(0x113)]&&(_0x53b291=_0x5d7d7c(0x11f)+AG_API_URL+_0x5d7d7c(0x13d));const _0x4eaa00={};_0x4eaa00['username']=_0x48e705[_0x5d7d7c(0x12d)][_0x5d7d7c(0x15d)],_0x4eaa00[_0x5d7d7c(0x121)]=_0x48e705['Browserstack'][_0x5d7d7c(0x121)];const _0x46b958={};_0x46b958[_0x5d7d7c(0x148)]=_0x53b291,_0x46b958[_0x5d7d7c(0x150)]=_0x1c81e0[_0x5d7d7c(0x147)],_0x46b958['auth']=_0x4eaa00;const _0x4122eb=_0x46b958;global_registry['bstackUsername']=_0x48e705['Browserstack'][_0x5d7d7c(0x15d)],global_registry[_0x5d7d7c(0x10d)]=_0x48e705[_0x5d7d7c(0x12d)][_0x5d7d7c(0x121)],_0x1c81e0['gWwNs'](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x128)],null,null,_0x3dc004);const _0x395431=await _0x1c81e0[_0x5d7d7c(0x15b)](promisifiedRequest,_0x4122eb);if(_0x1c81e0[_0x5d7d7c(0x162)](_0x395431,null)&&_0x1c81e0[_0x5d7d7c(0x13e)](_0x395431,undefined)&&_0x1c81e0[_0x5d7d7c(0x155)](_0x395431[_0x5d7d7c(0x145)],0xc8)){const _0x27e5ed=JSON[_0x5d7d7c(0x153)](_0x395431[_0x5d7d7c(0x149)]);console[_0x5d7d7c(0x168)](_0x1c81e0[_0x5d7d7c(0x140)]);const _0x1060a7=[];_0x1060a7['push']([_0x1c81e0[_0x5d7d7c(0x158)],_0x1c81e0['hBYIQ'],_0x1c81e0[_0x5d7d7c(0x139)],_0x1c81e0['eBWHz'],_0x1c81e0[_0x5d7d7c(0x12f)],_0x1c81e0[_0x5d7d7c(0x118)]]),_0x27e5ed['forEach'](_0xb53fe8=>{const _0x7b84e6=_0x5d7d7c;_0x1060a7[_0x7b84e6(0x126)]([_0xb53fe8['id'],_0xb53fe8[_0x7b84e6(0x127)],_0xb53fe8['status'],_0xb53fe8[_0x7b84e6(0x12b)],_0xb53fe8[_0x7b84e6(0x15f)],_0xb53fe8[_0x7b84e6(0x161)]]);}),console[_0x5d7d7c(0x168)](_0x1c81e0['OmzGV'](table,_0x1060a7)),process['exit'](0x0);}_0x1c81e0[_0x5d7d7c(0x12e)](_0x395431[_0x5d7d7c(0x145)],0x191)&&(console[_0x5d7d7c(0x15c)](_0x5d7d7c(0x156)),await _0x1c81e0['pfJSP'](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x163)],_0x1c81e0[_0x5d7d7c(0x110)],null,_0x3dc004),process['exit'](0x1)),console[_0x5d7d7c(0x15c)](_0x5d7d7c(0x15e)+JSON[_0x5d7d7c(0x125)](_0x395431)),await _0x1c81e0[_0x5d7d7c(0x13c)](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x163)],_0x1c81e0[_0x5d7d7c(0x14a)],_0x395431,_0x3dc004),process[_0x5d7d7c(0x135)](0x1);}catch(_0x4cf8bb){console[_0x5d7d7c(0x15c)](_0x5d7d7c(0x12a)+_0x4cf8bb[_0x5d7d7c(0x151)]),await _0x1c81e0[_0x5d7d7c(0x142)](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes['ERROR'],_0x1c81e0['kPuqa'],_0x4cf8bb,_0x3dc004),process['exit'](0x1);}};function a16_0x44a6(){const _0x22b463=['bstackAccesskey','boolean','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','CePxb','11405PBaEhY','usage','allGrids','EqUVl','list','UdCMA','util','iAmKt','../../utils/instrumentationUtils','promisify','2396538JsKkDd','builder','qdoTE','requestId','https://','command','password','lIWML','6wUEPkX','argv','stringify','push','name','INFO','existsSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','running','8288497THZuhR','Browserstack','czkQa','vIOdE','gWwNs','24HCKoSW','4458uIUliq','62230SVltVY','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','exit','FrtLD','1039232GBPtky','request','LVgxG','unauthorised','URzZv','pfJSP','/packages/cli/get-all-grids','uQBPd','\x0aFound\x20the\x20following\x20grids:\x0a','Rprug','readFileSync','ROySd','grid-id','help','statusCode','cluster-name','qxXcQ','url','body','xrFoI','2679588fPAJZk','YkZiV','init-not-called','404619rpxCBG','epilogue','method','stack','list-grids-called','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pJyYl','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','viwbm','server-error','../../config/constants','OmzGV','error','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','queued','4994LANPPc','clusterName','jwdJn','ERROR','WGudO','uuid','status','handler','log','grid'];a16_0x44a6=function(){return _0x22b463;};return a16_0x44a6();}
1
+ const a15_0x498c00=a15_0xf69b;(function(_0x25b339,_0x4748da){const _0xdc9fe4=a15_0xf69b,_0x16bc51=_0x25b339();while(!![]){try{const _0x39e83d=parseInt(_0xdc9fe4(0xe3))/0x1*(-parseInt(_0xdc9fe4(0xc5))/0x2)+parseInt(_0xdc9fe4(0xe8))/0x3*(parseInt(_0xdc9fe4(0xba))/0x4)+-parseInt(_0xdc9fe4(0xcf))/0x5*(parseInt(_0xdc9fe4(0xe9))/0x6)+-parseInt(_0xdc9fe4(0xbc))/0x7+-parseInt(_0xdc9fe4(0xa0))/0x8*(parseInt(_0xdc9fe4(0xe7))/0x9)+parseInt(_0xdc9fe4(0xbb))/0xa+parseInt(_0xdc9fe4(0xc2))/0xb;if(_0x39e83d===_0x4748da)break;else _0x16bc51['push'](_0x16bc51['shift']());}catch(_0x5a22f3){_0x16bc51['push'](_0x16bc51['shift']());}}}(a15_0x20a7,0xba0bc));const fs=require('fs'),util=require(a15_0x498c00(0xd1)),request=require(a15_0x498c00(0xf3)),{table}=require(a15_0x498c00(0xeb)),{v4:uuidv4}=require(a15_0x498c00(0xb2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x498c00(0xa9)),{getCredentialsPath}=require(a15_0x498c00(0xc6)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a15_0x498c00(0xcb)](request);function a15_0xf69b(_0x1f7300,_0x242787){const _0x20a777=a15_0x20a7();return a15_0xf69b=function(_0xf69b8e,_0xc4a662){_0xf69b8e=_0xf69b8e-0x99;let _0x11915b=_0x20a777[_0xf69b8e];return _0x11915b;},a15_0xf69b(_0x1f7300,_0x242787);}function a15_0x20a7(){const _0x2aab78=['statusCode','list-grids-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','waVlj','QAiHd','allGrids','request','type','RNSdN','running','desc','mOoYv','requestId','IvfmD','mOEiY','all-grids','56VCJWbe','push','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','readFileSync','tqfwZ','sIKPB','https://','../../config/constants','dAMqw','bstackUsername','builder','username','epilogue','cluster-name','INFO','options','uuid','url','name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','status','exit','qQCwQ','vglFT','2040niwKdT','6026760HMWQCu','6615553nfkFur','nlhgb','handler','tDHZX','grid-name','BULwH','18969159EQUwfO','log','init-not-called','2968142CDqXpG','../../utils/utilityMethods','body','ERROR','Failed\x20to\x20list\x20resources!\x20Error:\x20','error','promisify','JvfGl','unknown-error','grid','55XXvQWK','unauthorised','util','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','grids','queued','forEach','xOxgt','eMTfW','help','FMHEo','Browserstack','stack','clusterName','/packages/cli/get-grids','server-error','grNOL','tqRyg','parse','1XSNYOZ','auth','GET','kKZNg','516546SvgQCm','8517BlQWOc','99318YgeMvG','YyiCp','table'];a15_0x20a7=function(){return _0x2aab78;};return a15_0x20a7();}exports[a15_0x498c00(0xd3)]=a15_0x498c00(0xd4),exports[a15_0x498c00(0x9a)]=a15_0x498c00(0xb5),exports[a15_0x498c00(0xac)]=function(_0x576909){const _0x1b8285=a15_0x498c00,_0x1c1084={};_0x1c1084[_0x1b8285(0x9d)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1c1084['dAMqw']='boolean',_0x1c1084[_0x1b8285(0xf1)]='help';const _0x555477=_0x1c1084,_0x147605={};_0x147605['description']=_0x555477[_0x1b8285(0x9d)],_0x147605[_0x1b8285(0xf4)]=_0x555477[_0x1b8285(0xaa)];const _0x221170={};return _0x221170[_0x1b8285(0x9f)]=_0x147605,_0x576909['usage'](HELP_HEADER_MESSAGE['list'][_0x1b8285(0xce)])[_0x1b8285(0xae)](HELP_FOOTER_MESSAGE)[_0x1b8285(0xb1)](_0x221170)[_0x1b8285(0xd9)](_0x555477[_0x1b8285(0xf1)])[_0x1b8285(0xa2)];},exports[a15_0x498c00(0xbe)]=async function(_0x42f1f8){const _0x51f36b=a15_0x498c00,_0x5f3637={'YyiCp':function(_0x26786e){return _0x26786e();},'kKZNg':function(_0x56cd14){return _0x56cd14();},'BULwH':_0x51f36b(0xd2),'sIKPB':function(_0x7c9569,_0x3846cd,_0x295631,_0x275503,_0x4e067c,_0x2dbabf,_0x5a0ae0){return _0x7c9569(_0x3846cd,_0x295631,_0x275503,_0x4e067c,_0x2dbabf,_0x5a0ae0);},'vglFT':_0x51f36b(0xed),'FMHEo':_0x51f36b(0xc4),'tqRyg':_0x51f36b(0xe5),'tqfwZ':function(_0x312fc0,_0x1214d7,_0x20fb3c,_0x2febc1,_0x49337a,_0x8e8d5c,_0x16725f){return _0x312fc0(_0x1214d7,_0x20fb3c,_0x2febc1,_0x49337a,_0x8e8d5c,_0x16725f);},'xOxgt':function(_0x3923ce,_0x50c976){return _0x3923ce(_0x50c976);},'mOEiY':function(_0x4b4346,_0x687183){return _0x4b4346!==_0x687183;},'mOoYv':function(_0x44d708,_0x409dc8){return _0x44d708===_0x409dc8;},'grNOL':'\x0aFound\x20the\x20following\x20grids:\x0a','nlhgb':'grid-id','MOZka':_0x51f36b(0xc0),'eMTfW':_0x51f36b(0xb6),'zkDbp':_0x51f36b(0x99),'RNSdN':'queued','JvfGl':_0x51f36b(0xaf),'GIzbA':function(_0x213a01,_0x54d36c){return _0x213a01(_0x54d36c);},'qQCwQ':_0x51f36b(0xd0),'waVlj':_0x51f36b(0xdf),'tDHZX':_0x51f36b(0xcd)};try{global_registry[_0x51f36b(0x9c)]=_0x5f3637[_0x51f36b(0xea)](uuidv4);!fs['existsSync'](_0x5f3637[_0x51f36b(0xe6)](getCredentialsPath))&&(console[_0x51f36b(0xca)](_0x5f3637[_0x51f36b(0xc1)]),await _0x5f3637[_0x51f36b(0xa7)](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xc8)],_0x5f3637[_0x51f36b(0xda)],null,_0x42f1f8),process[_0x51f36b(0xb7)](0x1));const _0x167f74=JSON[_0x51f36b(0xe2)](fs[_0x51f36b(0xa5)](_0x5f3637['YyiCp'](getCredentialsPath)));let _0x31826b=_0x51f36b(0xa8)+AG_API_URL+_0x51f36b(0xde);_0x42f1f8[_0x51f36b(0xf2)]&&(_0x31826b='https://'+AG_API_URL+_0x51f36b(0xa4));const _0x2dc3a0={};_0x2dc3a0[_0x51f36b(0xad)]=_0x167f74['Browserstack'][_0x51f36b(0xad)],_0x2dc3a0[_0x51f36b(0xef)]=_0x167f74['Browserstack'][_0x51f36b(0xef)];const _0x37a219={};_0x37a219[_0x51f36b(0xb3)]=_0x31826b,_0x37a219['method']=_0x5f3637[_0x51f36b(0xe1)],_0x37a219[_0x51f36b(0xe4)]=_0x2dc3a0;const _0x1d8f57=_0x37a219;global_registry[_0x51f36b(0xab)]=_0x167f74[_0x51f36b(0xdb)][_0x51f36b(0xad)],global_registry['bstackAccesskey']=_0x167f74[_0x51f36b(0xdb)][_0x51f36b(0xef)],_0x5f3637['tqfwZ'](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xb0)],null,null,_0x42f1f8);const _0x46b8b1=await _0x5f3637[_0x51f36b(0xd7)](promisifiedRequest,_0x1d8f57);if(_0x5f3637[_0x51f36b(0x9e)](_0x46b8b1,null)&&_0x5f3637[_0x51f36b(0x9e)](_0x46b8b1,undefined)&&_0x5f3637['mOoYv'](_0x46b8b1[_0x51f36b(0xec)],0xc8)){const _0x2cbbf6=JSON[_0x51f36b(0xe2)](_0x46b8b1[_0x51f36b(0xc7)]);console[_0x51f36b(0xc3)](_0x5f3637[_0x51f36b(0xe0)]);const _0xe57158=[];_0xe57158[_0x51f36b(0xa1)]([_0x5f3637[_0x51f36b(0xbd)],_0x5f3637['MOZka'],_0x5f3637[_0x51f36b(0xd8)],_0x5f3637['zkDbp'],_0x5f3637[_0x51f36b(0xf5)],_0x5f3637[_0x51f36b(0xcc)]]),_0x2cbbf6[_0x51f36b(0xd6)](_0xc0d911=>{const _0x20471b=_0x51f36b;_0xe57158[_0x20471b(0xa1)]([_0xc0d911['id'],_0xc0d911[_0x20471b(0xb4)],_0xc0d911['status'],_0xc0d911[_0x20471b(0x99)],_0xc0d911[_0x20471b(0xd5)],_0xc0d911[_0x20471b(0xdd)]]);}),console[_0x51f36b(0xc3)](_0x5f3637['GIzbA'](table,_0xe57158)),process[_0x51f36b(0xb7)](0x0);}_0x5f3637[_0x51f36b(0x9b)](_0x46b8b1[_0x51f36b(0xec)],0x191)&&(console['error'](_0x51f36b(0xa3)),await _0x5f3637['tqfwZ'](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xc8)],_0x5f3637[_0x51f36b(0xb8)],null,_0x42f1f8),process[_0x51f36b(0xb7)](0x1)),console[_0x51f36b(0xca)](_0x51f36b(0xee)+JSON['stringify'](_0x46b8b1)),await _0x5f3637[_0x51f36b(0xa7)](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xc8)],_0x5f3637[_0x51f36b(0xf0)],_0x46b8b1,_0x42f1f8),process['exit'](0x1);}catch(_0x221953){console[_0x51f36b(0xca)](_0x51f36b(0xc9)+_0x221953[_0x51f36b(0xdc)]),await _0x5f3637[_0x51f36b(0xa6)](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes['ERROR'],_0x5f3637[_0x51f36b(0xbf)],_0x221953,_0x42f1f8),process[_0x51f36b(0xb7)](0x1);}};