browserstack-node-sdk 1.34.18 → 1.34.19

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 (127) 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/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/globals.js +1 -1
  101. package/src/helpers/helper.js +1 -1
  102. package/src/helpers/logger.js +1 -1
  103. package/src/helpers/patchHelper.js +1 -1
  104. package/src/helpers/patchHelpers.js +1 -1
  105. package/src/helpers/percy/Percy.js +1 -1
  106. package/src/helpers/percy/PercyBinary.js +1 -1
  107. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  108. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  109. package/src/helpers/percy/PercySDK.js +1 -1
  110. package/src/helpers/percy/index.js +1 -1
  111. package/src/helpers/percy/utils.js +1 -1
  112. package/src/helpers/performance-tester.js +1 -1
  113. package/src/helpers/request-spy.js +1 -1
  114. package/src/helpers/setKeepAlive.js +1 -1
  115. package/src/helpers/test-observability/constants.js +1 -1
  116. package/src/helpers/test-observability/error-handler.js +1 -1
  117. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  118. package/src/helpers/test-observability/sessionHandler.js +1 -1
  119. package/src/helpers/test-observability/utils.js +1 -1
  120. package/src/helpers/testhub/constants.js +1 -1
  121. package/src/helpers/testhub/testhubHandler.js +1 -1
  122. package/src/helpers/testhub/utils.js +1 -1
  123. package/src/helpers/timeoutPromise.js +1 -1
  124. package/src/helpers/utilities.js +1 -1
  125. package/src/helpers/w3cMapping.js +1 -1
  126. package/src/hubAllocationMethods.js +1 -1
  127. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x34bf03=a9_0x4668;(function(_0x2f890a,_0x753eff){const _0x43ad89=a9_0x4668,_0x1cc609=_0x2f890a();while(!![]){try{const _0x4ba276=-parseInt(_0x43ad89(0xab))/0x1+parseInt(_0x43ad89(0x8d))/0x2+parseInt(_0x43ad89(0x7a))/0x3*(parseInt(_0x43ad89(0x78))/0x4)+parseInt(_0x43ad89(0x199))/0x5*(-parseInt(_0x43ad89(0xf0))/0x6)+-parseInt(_0x43ad89(0xf2))/0x7+parseInt(_0x43ad89(0xae))/0x8*(-parseInt(_0x43ad89(0x149))/0x9)+parseInt(_0x43ad89(0x90))/0xa;if(_0x4ba276===_0x753eff)break;else _0x1cc609['push'](_0x1cc609['shift']());}catch(_0x205962){_0x1cc609['push'](_0x1cc609['shift']());}}}(a9_0x1153,0x958b6));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x34bf03(0x7b)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x34bf03(0x197)),{logger}=require(a9_0x34bf03(0x145)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x34bf03(0x188)),{getCloudProviderObject}=require(a9_0x34bf03(0xf5)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x34bf03(0x11c)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x34bf03(0xd9)),{createK8sClient}=require(a9_0x34bf03(0x138)),{sendInstrumentationEvent}=require(a9_0x34bf03(0x141));function a9_0x1153(){const _0x593b0b=['getResourceClientId','Jabgi','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','gXJvR','../../utils/instrumentationUtils','zvyqM','command','epilogue','../../config/logger','XPKxN','gridProfileId','qiQpD','1877868hrceUo','OVcok','Adding\x20Websocket\x20listeners','cyGmU','NSpxh','jtzUF','GHxQR','EfSLu','HmCvo','qVPuo','ScBbk','wyUWt','grid-profile','defaultGridProfile','cloud-provider','ingress-nginx','pOFOt','IFjpR','CAXvR','CULdd','elJKX','gmKQR','voqFO','FPcOb','get-grid-url-non-200','yxiHj','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','grid-name','xxcEs','bbQps','VkTgu','isNewAWSCluster','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','KXmYp','AFmxn','concurrency','browserVersion','xVFIz','statusCode','region','DwHCQ','NzRqI','warn','SvMai','isPrivateGrid','\x20are\x20not\x20present\x20in\x20VPC:\x20','XFjOG','LBndF','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','KzGpS','MyzYB','OqFkb','INFO','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','qlbKd','default','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','isClusterPresent','ZQipc','<UsernamePlaceholder>','vPWFd','qvQyV','../../utils/utilityMethods','description','readFileSync','Cluster\x20','/packages/cli/create-grid-checks','exit','privateGrid','CbESw','setupAutoscaler','Found\x20Subnets:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','info','metadata','route53','create-grid-checks-grid-already-exists','../../utils/webSocketUtils','maxNodes','5MCzftU','ERROR','type','clusterRegion','mOieg','addListeners','totmw','debug','turboscale-managed-identity-','twglk','clmUk','gridProfiles','eMktJ','spmJC','alreadyPresent','string','hHKQX','options','\x27\x20grid\x20profile','MKNlb','PaDKG','skip-tls-cert-verify','WuknU','bstackUsername','XGAoP','password','non-aws-azure-cluster','skipTlsCertVerify','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','KSNUD','ujFcu','handler','IQtJJ','WebSocket','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','gXaad','1356viaxqT','LTmFI','600owCtcB','got','clusterName','kViPN','CLI_RUN_STARTED','gridName','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Czxxf','connectionTimeout','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','FHKpi','WvUDN','updateClusterAlreadyPresent','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','boolean','rBUkZ','VeqNj','vzyXa','181504yGrNiM','OOFrK','Namespace\x20Created','20349800YCnTBy','create-grid-checks-null-response','Mbsfx','tvTBx','instanceType','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Will\x20be\x20spawning\x20the\x20grid\x20','split','s3bucket','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Namespace\x20created','vJcaX','aJaBJ','usage','UovmN','private-ingress-nginx-controller','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','error','create','Cluster\x20created\x20successfully','delay','wdOIT','toLowerCase','dQjKc','eLojZ','RWgJw','sFEIY','626627gEXiPP','kAZpi','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','8mIeFVR','mdBUJ','XErNc','get-grid-url-auth-failed','stringify','LOG','pLcub','<PasswordPlaceholder>','CLI\x20run\x20started','mglhi','name','NWafj','newCluster','YnoLB','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','argv','Oiqtl','Found\x20VPC:\x20','hBFcz','czhcI','gridProfile','QxPZE','Cluster:\x20','SBVgd','GzYFv','http','CTSNV','hubVersion','pre-spawned-invalid-vpc','wcNsd','coSjn','replace','mRJGR','body','Subnets:\x20','://','cluster-name','NQnnm','MXQSX','get-grid-url-null-response','lgejU','sXbGZ','../../utils/gridComponents','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','TrKhF','WSWNL','parse','vpc','skHcF','Grid\x20profile\x20fetched\x20from\x20backend','sendResourceDataToHST','zmThC','Skip\x20insecure\x20cert\x20verification.','zwOMs','RuNRv','zmVdA','namespace','zzaQS','NRQyo','stack','https://','MMQxp','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Grid\x20can\x20be\x20accessed\x20at:\x20','create-grid-called','1125246OwFrsq','qxxTS','3907246qvXVTC','lRmOR','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','../../cloudproviders/utils','Grid\x20spawned\x20on\x20the\x20cluster','vHIrt','HtSHk','vmcIE','setupNewCluster','QFdkb','help','YQLTx','zWBMZ','builder','xJKwJ','fYXlS','cloudProvider','swtVf','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.','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','securityGroups','CLI_RUN_FINISHED','/packages/cli/get-grid-url?gridIdentifier=','siUum','JlHYm','requestId','oPkZj','create-grid-checks-non-200','JYCko','ZPTzc','pBkeJ','true','message','UrVCb','pcefO','createOtherResources','vHsgk','xjUCc','IADJy','Browserstack','RlurI','ZiomI','../../config/constants','init-not-called','Spawning\x20the\x20grid\x20','annotations','existsSync','RfeWg','XxLve','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','HYEIM','UpYGq','sendEventToBackend','LJLMV','hgSaA','XnTkC','GWLhg','ingress-nginx-controller','OiCWn','tIRsx','wRsap','length','minNodes','DVerD','bstackAccesskey','AwsTM','desc','username','uZBlP','QavWu','../../utils/createk8sClient','Creating\x20namespace','grid','eGebx','AkmoP'];a9_0x1153=function(){return _0x593b0b;};return a9_0x1153();}function a9_0x4668(_0x475a5a,_0x17c786){const _0x1153b4=a9_0x1153();return a9_0x4668=function(_0x466863,_0x2b9971){_0x466863=_0x466863-0x68;let _0x322aa6=_0x1153b4[_0x466863];return _0x322aa6;},a9_0x4668(_0x475a5a,_0x17c786);}exports[a9_0x34bf03(0x143)]=a9_0x34bf03(0x13a),exports[a9_0x34bf03(0x134)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x34bf03(0xff)]=function(_0x3f8e1d){const _0x465ae7=a9_0x34bf03,_0x5bf0ec={};_0x5bf0ec['duBdG']=_0x465ae7(0x179),_0x5bf0ec['qVPuo']=_0x465ae7(0x1a8),_0x5bf0ec[_0x465ae7(0xc1)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5bf0ec[_0x465ae7(0xd8)]=_0x465ae7(0xad),_0x5bf0ec[_0x465ae7(0xc4)]=_0x465ae7(0x76),_0x5bf0ec[_0x465ae7(0x187)]=_0x465ae7(0xbd),_0x5bf0ec[_0x465ae7(0x12e)]='Create\x20a\x20private/public\x20grid.',_0x5bf0ec[_0x465ae7(0xa9)]='Skip\x20insecure\x20cert\x20verification.',_0x5bf0ec[_0x465ae7(0x10c)]=_0x465ae7(0x89),_0x5bf0ec[_0x465ae7(0x13e)]=_0x465ae7(0xfc);const _0x5c6412=_0x5bf0ec,_0x48363e={};_0x48363e['description']=_0x5c6412['duBdG'],_0x48363e['type']=_0x5c6412[_0x465ae7(0x152)];const _0x8c4c5e={};_0x8c4c5e[_0x465ae7(0x189)]=_0x5c6412[_0x465ae7(0xc1)],_0x8c4c5e[_0x465ae7(0x19b)]=_0x5c6412[_0x465ae7(0x152)];const _0x1d93e6={};_0x1d93e6[_0x465ae7(0x189)]=_0x5c6412[_0x465ae7(0xd8)],_0x1d93e6['type']=_0x5c6412['qVPuo'];const _0x54ffa7={};_0x54ffa7[_0x465ae7(0x189)]=_0x5c6412[_0x465ae7(0xc4)],_0x54ffa7[_0x465ae7(0x19b)]=_0x5c6412[_0x465ae7(0x152)];const _0x1498c4={};_0x1498c4[_0x465ae7(0x189)]=_0x5c6412[_0x465ae7(0x187)],_0x1498c4[_0x465ae7(0x19b)]=_0x5c6412[_0x465ae7(0x152)];const _0x5d739b={};_0x5d739b['description']=_0x5c6412[_0x465ae7(0x12e)],_0x5d739b[_0x465ae7(0x19b)]=_0x5c6412[_0x465ae7(0x152)];const _0x3d5acb={};_0x3d5acb[_0x465ae7(0x189)]=_0x5c6412[_0x465ae7(0xa9)],_0x3d5acb[_0x465ae7(0x19b)]=_0x5c6412['oPkZj'],_0x3d5acb['default']=![];const _0x310ad9={};return _0x310ad9[_0x465ae7(0x164)]=_0x48363e,_0x310ad9[_0x465ae7(0x155)]=_0x8c4c5e,_0x310ad9[_0x465ae7(0xd3)]=_0x1d93e6,_0x310ad9[_0x465ae7(0x157)]=_0x54ffa7,_0x310ad9[_0x465ae7(0x170)]=_0x1498c4,_0x310ad9['private-grid']=_0x5d739b,_0x310ad9[_0x465ae7(0x69)]=_0x3d5acb,_0x3f8e1d['usage'](HELP_HEADER_MESSAGE['create'])[_0x465ae7(0x144)](HELP_FOOTER_MESSAGE)[_0x465ae7(0x1aa)](_0x310ad9)[_0x465ae7(0xfc)](_0x5c6412['Jabgi'])[_0x465ae7(0xbe)];},exports[a9_0x34bf03(0x73)]=async function(_0x3b6188){const _0x41e203=a9_0x34bf03,_0x19813={'sINbv':'7|4|5|2|1|6|0|3|8','pcefO':_0x41e203(0xb6),'SvMai':'https','YQLTx':_0x41e203(0xa1),'vzyXa':'3|4|9|11|13|8|1|10|12|5|14|2|6|0|7','KSNUD':function(_0x1f7a7e,_0xb9e308){return _0x1f7a7e!==_0xb9e308;},'MyzYB':function(_0xd24146,_0x9692b6,_0x5ee62a,_0xae3bfc,_0x30d124,_0x19874c,_0x4c8996,_0x571d26,_0x2308eb,_0x5e1b1d,_0x4fcd0b,_0x3d48d3){return _0xd24146(_0x9692b6,_0x5ee62a,_0xae3bfc,_0x30d124,_0x19874c,_0x4c8996,_0x571d26,_0x2308eb,_0x5e1b1d,_0x4fcd0b,_0x3d48d3);},'rBUkZ':_0x41e203(0x173),'zwOMs':function(_0x49fe75,_0x22e60c){return _0x49fe75===_0x22e60c;},'ScBbk':_0x41e203(0xc8),'dQjKc':_0x41e203(0x179),'YnoLB':_0x41e203(0x1a8),'YMKAC':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','kGYkm':_0x41e203(0xad),'HmLMO':_0x41e203(0x76),'UpYGq':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Czxxf':'Create\x20a\x20private/public\x20grid.','uZBHg':_0x41e203(0xe3),'kViPN':'boolean','QavWu':_0x41e203(0xfc),'NWafj':function(_0x9e716f){return _0x9e716f();},'GHxQR':'VOOhc','QFdkb':_0x41e203(0x88),'QVvTa':function(_0x13d4cd,_0xebe187,_0x1b3a9e,_0x17a643,_0x5bc966,_0x42e89d,_0x3a2b73){return _0x13d4cd(_0xebe187,_0x1b3a9e,_0x17a643,_0x5bc966,_0x42e89d,_0x3a2b73);},'CbESw':_0x41e203(0xef),'xxcEs':_0x41e203(0x11d),'UrVCb':function(_0xf5332,_0x58ffcc,_0x4cb4dd,_0x2bd4f9,_0x12ea44,_0x44f556,_0x250362){return _0xf5332(_0x58ffcc,_0x4cb4dd,_0x2bd4f9,_0x12ea44,_0x44f556,_0x250362);},'sFEIY':function(_0x23bd2f){return _0x23bd2f();},'SBNNG':_0x41e203(0x185),'spmJC':_0x41e203(0xb5),'wcNsd':_0x41e203(0x14b),'lRmOR':function(_0x1b3a11,_0x532fe5){return _0x1b3a11===_0x532fe5;},'EfSLu':_0x41e203(0x14a),'mOieg':_0x41e203(0xf7),'TrKhF':'xuoss','xVFIz':_0x41e203(0xa8),'CAXvR':_0x41e203(0x163),'XGAoP':function(_0x53dc5d,_0x3ab784,_0x4f0662,_0x1cdfb5,_0x212e8b,_0x2b8495,_0x30a272,_0x129197){return _0x53dc5d(_0x3ab784,_0x4f0662,_0x1cdfb5,_0x212e8b,_0x2b8495,_0x30a272,_0x129197);},'eGebx':'prespawned-cluster-args-not-passed','AkmoP':function(_0x353c16,_0x521e2c){return _0x353c16!==_0x521e2c;},'vHsgk':_0x41e203(0x129),'XFjOG':_0x41e203(0x169),'ZiomI':_0x41e203(0x6e),'hgSaA':_0x41e203(0x111),'OqFkb':function(_0x152f52,_0x2d0cb8){return _0x152f52===_0x2d0cb8;},'swtVf':_0x41e203(0xdc),'GSdhN':_0x41e203(0x146),'vPWFd':_0x41e203(0xd4),'aJaBJ':_0x41e203(0x148),'HmCvo':_0x41e203(0x122),'MKNlb':'GET','IFjpR':function(_0x3976a6,_0x7b46df,_0x1ad877){return _0x3976a6(_0x7b46df,_0x1ad877);},'CTSNV':_0x41e203(0x160),'YHcTb':_0x41e203(0x16b),'czhcI':function(_0x206f87,_0x176058,_0x3792a2){return _0x206f87(_0x176058,_0x3792a2);},'xjUCc':function(_0x3f8d1f,_0x437166){return _0x3f8d1f===_0x437166;},'IADJy':'eRrdX','totmw':_0x41e203(0xcf),'JYCko':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','hHKQX':_0x41e203(0x91),'Mbsfx':function(_0xc8c825,_0x55b08e){return _0xc8c825===_0x55b08e;},'pLcub':function(_0x2044ea,_0x21b5f7){return _0x2044ea!==_0x21b5f7;},'jtMzH':_0x41e203(0xaf),'vmcIE':'bqyXy','VeqNj':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','OiCWn':'create-grid-checks-auth-failed','HtSHk':function(_0x18a9dc,_0x2a84ae){return _0x18a9dc!==_0x2a84ae;},'ctUya':_0x41e203(0x17a),'XErNc':function(_0xe5becf,_0x21eb7,_0x575b16,_0x28d8f8,_0x37e3be,_0x3c6f13,_0xb085ee,_0x34a460){return _0xe5becf(_0x21eb7,_0x575b16,_0x28d8f8,_0x37e3be,_0x3c6f13,_0xb085ee,_0x34a460);},'glkYN':_0x41e203(0x10d),'hRrct':_0x41e203(0xe0),'CULdd':'OnbEm','WvUDN':_0x41e203(0x196),'bcjLE':function(_0x1f11da,_0x4e6adc){return _0x1f11da===_0x4e6adc;},'uZBlP':'qMymj','gXaad':function(_0x490820,_0x25aceb){return _0x490820===_0x25aceb;},'vwrFL':_0x41e203(0xcd),'qlbKd':function(_0x1b6cae,_0x1e3a79){return _0x1b6cae===_0x1e3a79;},'gmKQR':_0x41e203(0x1a3),'PaDKG':_0x41e203(0xf4),'NRQyo':'create-grid-checks-invalid-profile','ZQipc':function(_0x10734b,_0x555b6d){return _0x10734b===_0x555b6d;},'MXQSX':_0x41e203(0x131),'pOFOt':_0x41e203(0x100),'tIRsx':_0x41e203(0x10a),'AwsTM':_0x41e203(0xa5),'qauWM':function(_0x76d77c,_0xf0373e){return _0x76d77c===_0xf0373e;},'RuNRv':'YrFEI','zmVdA':function(_0x54e041,_0x1f597a,_0x2df28f,_0x19aebe,_0x5b8fcb,_0xe7598e,_0x5aed6a,_0x59cc16,_0x5297f9,_0x16829b,_0x205fd0,_0x541850){return _0x54e041(_0x1f597a,_0x2df28f,_0x19aebe,_0x5b8fcb,_0xe7598e,_0x5aed6a,_0x59cc16,_0x5297f9,_0x16829b,_0x205fd0,_0x541850);},'NzRqI':function(_0xdf0c66,_0x3c2d86){return _0xdf0c66===_0x3c2d86;},'cyGmU':_0x41e203(0x142),'OOFrK':function(_0x1d6691,_0x9cd5a2){return _0x1d6691!==_0x9cd5a2;},'eMktJ':_0x41e203(0xc6),'qEOOs':_0x41e203(0x124),'VneeX':_0x41e203(0x171),'IQtJJ':'5|3|8|4|6|0|7|2|1','zyeMk':function(_0x29e8cf,_0x42ce2d){return _0x29e8cf===_0x42ce2d;},'WuknU':function(_0x4c379e,_0x456c87){return _0x4c379e===_0x456c87;},'LBndF':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','twglk':function(_0x192889,_0x5ad005){return _0x192889!=_0x5ad005;},'zzaQS':function(_0x36f469,_0x5b39f4){return _0x36f469!=_0x5b39f4;},'siUum':function(_0xea9f1c,_0x178460){return _0xea9f1c>_0x178460;},'GWLhg':_0x41e203(0xda),'pBkeJ':function(_0x2783a5,_0x4604ee,_0x1341a5,_0x362b69,_0x310f5e,_0x3105f2,_0x3ba77a,_0x539137){return _0x2783a5(_0x4604ee,_0x1341a5,_0x362b69,_0x310f5e,_0x3105f2,_0x3ba77a,_0x539137);},'LJLMV':'pre-spawned-subnets-not-selected','tvTBx':_0x41e203(0x17e),'kAZpi':function(_0x15956a,_0x27a03c,_0x324ee9,_0x13b803,_0x4cbcae,_0x4371c8,_0x1f3c8f,_0x47dc00){return _0x15956a(_0x27a03c,_0x324ee9,_0x13b803,_0x4cbcae,_0x4371c8,_0x1f3c8f,_0x47dc00);},'ODPrx':_0x41e203(0xcb),'ujFcu':function(_0x10dd9b,_0x3d993a){return _0x10dd9b===_0x3d993a;},'GzYFv':'pre-spawned-invalid-subnets','LTmFI':'0|3|1|2|4','Oiqtl':_0x41e203(0x104),'wyUWt':_0x41e203(0xa3),'voqFO':function(_0x100934,_0x1e61f7){return _0x100934===_0x1e61f7;},'ZPTzc':function(_0x2c9b25,_0x20c0e3){return _0x2c9b25===_0x20c0e3;},'yxiHj':function(_0x22520e,_0x34e091){return _0x22520e(_0x34e091);},'mglhi':_0x41e203(0x139),'FHKpi':function(_0x5b6e89,_0x3787b0){return _0x5b6e89!==_0x3787b0;},'KXmYp':_0x41e203(0x180),'jtzUF':'Browserstack','MMQxp':_0x41e203(0x8f),'xgXip':_0x41e203(0x9a),'YiUdl':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','zWBMZ':'Spawning\x20Grid\x20on\x20the\x20Cluster','lgejU':function(_0x1904c1,_0x265cdf,_0x35d325,_0x3b1630,_0x3a32d9,_0x1c49b4,_0x49da98,_0x237392,_0x3139fd,_0x5c4894,_0x566028){return _0x1904c1(_0x265cdf,_0x35d325,_0x3b1630,_0x3a32d9,_0x1c49b4,_0x49da98,_0x237392,_0x3139fd,_0x5c4894,_0x566028);},'NSpxh':_0x41e203(0xf6),'WcCJf':_0x41e203(0x105),'fYXlS':function(_0x1ff78d,_0x23fcea,_0x3cbcd9,_0x160017,_0x55c3cc){return _0x1ff78d(_0x23fcea,_0x3cbcd9,_0x160017,_0x55c3cc);},'bbQps':function(_0x1c63b3,_0x4c9a12,_0x1f1ddc){return _0x1c63b3(_0x4c9a12,_0x1f1ddc);},'RlurI':_0x41e203(0x9f),'vJcaX':_0x41e203(0x12b),'elJKX':_0x41e203(0x158),'RfeWg':_0x41e203(0xed),'zmThC':function(_0x55240d,_0x289797,_0x54fab6,_0x5a891e,_0x4d8b19,_0xb45686,_0x2c01fc,_0x4ca90e){return _0x55240d(_0x289797,_0x54fab6,_0x5a891e,_0x4d8b19,_0xb45686,_0x2c01fc,_0x4ca90e);},'YDlDS':_0x41e203(0xd6),'vYbpH':_0x41e203(0x80),'VkTgu':_0x41e203(0xb1),'gXJvR':function(_0x4a1d6e,_0x454ae0,_0x259d7d,_0xbe3c2e,_0x1eecad,_0x56bed4,_0x20b92d,_0x32440b){return _0x4a1d6e(_0x454ae0,_0x259d7d,_0xbe3c2e,_0x1eecad,_0x56bed4,_0x20b92d,_0x32440b);},'qxxTS':_0x41e203(0x161),'UovmN':'Deleting\x20the\x20CloudFormation\x20Stacks','skHcF':function(_0x418745,_0x483bec,_0x36253d,_0x5d0e3b,_0x1b52f1,_0x4b067e){return _0x418745(_0x483bec,_0x36253d,_0x5d0e3b,_0x1b52f1,_0x4b067e);},'FLTBr':'grid-spawning-failed'};let _0x141ca1=![],_0x482c57=![],_0x3c6cfe,_0x26ff09,_0x32b2fd,_0x50f1ac,_0x16cb98,_0x35a725,_0x427447,_0x7147f5,_0x4cd2c0,_0x54b76e,_0x440fb7,_0x13c44f,_0x10f002,_0x2a78e5,_0xda2bec=0x1,_0x534623=0xe;try{global_registry[_0x41e203(0x10b)]=_0x19813[_0x41e203(0xb9)](uuidv4),global_registry[_0x41e203(0x175)]=![];if(!fs[_0x41e203(0x120)](_0x19813[_0x41e203(0xb9)](getCredentialsPath))){if(_0x19813[_0x41e203(0xe4)](_0x19813[_0x41e203(0x14f)],_0x19813['GHxQR']))console[_0x41e203(0xa1)](_0x19813[_0x41e203(0xfb)]),await _0x19813['QVvTa'](sendInstrumentationEvent,_0x3b6188,_0x19813[_0x41e203(0x18f)],messageTypes['ERROR'],_0x19813[_0x41e203(0x165)],null,_0x3b6188),process['exit'](0x1);else{const _0x232757=_0x19813['sINbv'][_0x41e203(0x97)]('|');let _0x5177d5=0x0;while(!![]){switch(_0x232757[_0x5177d5++]){case'0':_0x5b6145['clusterName']=_0x4ef348;continue;case'1':_0x215d03[_0x41e203(0x102)]=_0x15bb5b;continue;case'2':const _0x497ce1={};_0x497ce1[_0x41e203(0x19b)]=_0x3fe4e5[_0x41e203(0xb3)],_0x497ce1[_0x41e203(0x112)]=_0x2d3267,_0x73d3e9['sendEventToBackend'](_0x5d4995,_0x497ce1);continue;case'3':_0x2869c6[_0x41e203(0xca)]=_0x2bbfac['hubVersion'];continue;case'4':_0x1f5140=_0x41e203(0x11e)+_0xbd7d4d+'\x20in\x20existing\x20cluster\x20\x27'+_0x2f76b0+'\x27';continue;case'5':_0x2d7066[_0x41e203(0x193)](_0x2194dc);continue;case'6':_0x2c897e[_0x41e203(0x19c)]=_0x57c71f;continue;case'7':const _0x3dece3={};_0x3dece3[_0x41e203(0x19b)]=_0xbe22b8[_0x41e203(0x7e)],_0x3dece3['message']=_0x19813[_0x41e203(0x114)],_0x334dc9[_0x41e203(0x126)](_0x1ac8e8,_0x3dece3);continue;case'8':_0x255c22[_0x41e203(0x16d)]=_0x2e05e3['browserVersion'];continue;}break;}}}await _0x19813['UrVCb'](sendInstrumentationEvent,_0x3b6188,_0x19813['CbESw'],messageTypes[_0x41e203(0x17d)],null,null,_0x3b6188);const _0x5e91bc=JSON['parse'](fs[_0x41e203(0x18a)](_0x19813[_0x41e203(0xaa)](getCredentialsPath)));global_registry[_0x41e203(0x6b)]=_0x5e91bc[_0x41e203(0x119)]['username'],global_registry[_0x41e203(0x132)]=_0x5e91bc[_0x41e203(0x119)][_0x41e203(0x6d)];const _0x3b3d30=WS_ENDPOINT[_0x41e203(0xce)](_0x19813['SBNNG'],_0x5e91bc[_0x41e203(0x119)][_0x41e203(0x135)])['replace'](_0x19813[_0x41e203(0x1a6)],_0x5e91bc[_0x41e203(0x119)][_0x41e203(0x6d)]),_0x52f7f2={};_0x52f7f2[_0x41e203(0x75)]=ws,_0x52f7f2[_0x41e203(0x82)]=0x36ee80,_0x13c44f=new ReconnectingWebSocket(_0x3b3d30,[],_0x52f7f2),logger[_0x41e203(0x1a0)](_0x19813[_0x41e203(0xcc)]),webSocketUtils[_0x41e203(0x19e)](_0x13c44f,_0x3b6188['user'],_0x3b6188[_0x41e203(0x6d)]);const _0x50696a=_0x3b6188[_0x41e203(0x7f)]||DEFAULT_GRID_NAME;if(_0x3b6188['clusterName']||_0x3b6188[_0x41e203(0x102)]||_0x3b6188[_0x41e203(0x170)]){if(_0x19813[_0x41e203(0xf3)](_0x19813[_0x41e203(0x150)],_0x19813[_0x41e203(0x19d)]))_0x20da64=_0x4e8e3e[_0x41e203(0x195)],_0x135ed1=_0x19813[_0x41e203(0x174)];else{!(_0x3b6188[_0x41e203(0x7c)]&&_0x3b6188[_0x41e203(0x102)]&&_0x3b6188[_0x41e203(0x170)])&&(_0x19813[_0x41e203(0xf3)](_0x19813[_0x41e203(0xdb)],_0x19813[_0x41e203(0x16e)])?_0x38c434=null:(_0x3c6cfe=_0x19813[_0x41e203(0x15b)],await _0x19813[_0x41e203(0x6c)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes['ERROR'],_0x19813['CbESw'],_0x19813[_0x41e203(0x13b)],_0x19813[_0x41e203(0xfd)]),logger['error'](_0x3c6cfe),process[_0x41e203(0x18d)](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x3b6188[_0x41e203(0x102)][_0x41e203(0xa6)]())){if(_0x19813[_0x41e203(0x13c)](_0x19813['vHsgk'],_0x19813[_0x41e203(0x116)])){const _0xc58047={};_0xc58047['type']=_0x51b171['LOG'],_0xc58047[_0x41e203(0x112)]=_0x4a454c,_0x3dc5f0[_0x41e203(0x126)](_0xb248cb,_0xc58047,_0x19813['YQLTx'],!![]);}else _0x3c6cfe=_0x19813[_0x41e203(0x177)],await _0x19813[_0x41e203(0x6c)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813['CbESw'],_0x19813[_0x41e203(0x11b)],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1);}_0x3b6188[_0x41e203(0x18e)]&&_0x19813[_0x41e203(0xf3)](_0x3b6188['privateGrid'][_0x41e203(0xa6)](),_0x19813[_0x41e203(0x128)])&&(_0x19813[_0x41e203(0x17c)](_0x19813[_0x41e203(0x103)],_0x19813['GSdhN'])?_0x5072fa[_0x41e203(0xc3)]=_0x3b9bb6[_0x41e203(0xc3)]:global_registry['isPrivateGrid']=!![]);global_registry[_0x41e203(0x102)]=_0x3b6188[_0x41e203(0x102)],global_registry['clusterRegion']=_0x3b6188[_0x41e203(0x170)],global_registry[_0x41e203(0x7c)]=_0x3b6188[_0x41e203(0x7c)];const _0x2012ef=await _0x19813['QVvTa'](getCloudProviderObject,_0x3b6188[_0x41e203(0x102)],_0x3b6188[_0x41e203(0x7c)],_0x50696a,_0x13c44f,webSocketUtils,_0x3b6188),_0x26fb46=await _0x2012ef[_0x41e203(0x183)]();if(!_0x26fb46)_0x19813[_0x41e203(0x71)](_0x19813['vPWFd'],_0x19813[_0x41e203(0x186)])?_0x43fdf7[_0x41e203(0x175)]=!![]:(logger[_0x41e203(0x193)]('Cluster:\x20'+_0x3b6188['clusterName']+_0x41e203(0x95)),_0x141ca1=![],_0x482c57=!![]);else{if(_0x19813[_0x41e203(0xf3)](_0x19813[_0x41e203(0x9c)],_0x19813[_0x41e203(0x9c)]))_0x141ca1=!![];else{const _0xa12b63=_0x19813[_0x41e203(0x8c)][_0x41e203(0x97)]('|');let _0x54bdfb=0x0;while(!![]){switch(_0xa12b63[_0x54bdfb++]){case'0':_0x19813[_0x41e203(0x71)](_0x4897ed['privateGrid'],_0x545848)&&_0x148455[_0x41e203(0x18e)]&&(_0x20e944[_0x41e203(0x175)]=!![]);continue;case'1':_0x1dc8a4=null;continue;case'2':_0x2df8a2=_0x435dd0[_0x41e203(0xca)];continue;case'3':_0x235f83=_0x41e203(0x181)+_0x2f5bba;continue;case'4':_0xcb9627[_0x41e203(0x193)](_0xe88423);continue;case'5':_0x46dad0=_0x38de1b[_0x41e203(0x130)];continue;case'6':_0x16e5f0=_0x209dfb[_0x41e203(0x16d)];continue;case'7':_0x19813[_0x41e203(0x17b)](_0x3d710e,_0x3d41df,_0x29fe1f,_0x2e3d4b,_0x103d78,_0x487849,_0x2a5b2e,_0x46d787,_0x1159ce,_0x13f6e3,_0xd6c3c5,_0x7a74b0);continue;case'8':_0x28b245=null;continue;case'9':const _0x36cf25={};_0x36cf25[_0x41e203(0x19b)]=_0x255e0b[_0x41e203(0xb3)],_0x36cf25[_0x41e203(0x112)]=_0x3ce812,_0x26d691['sendEventToBackend'](_0x35ad8f,_0x36cf25);continue;case'10':_0x2b851f=null;continue;case'11':_0x265cf0=_0x295bc2[_0x41e203(0x16c)];continue;case'12':_0xc744bf=_0x328cb0[_0x41e203(0x98)];continue;case'13':_0x2089d3=_0x5eb46f[_0x41e203(0x94)];continue;case'14':_0x2080b6=_0x3e6bf1[_0x41e203(0x198)];continue;}break;}}}_0x32b2fd=_0x3b6188[_0x41e203(0x7c)],_0x26ff09=_0x3b6188['cloudProvider'][_0x41e203(0xa6)](),_0x50f1ac=_0x3b6188['region'];}}else _0x3b6188[_0x41e203(0xc3)]&&(_0x19813[_0x41e203(0x71)](_0x19813['HmCvo'],_0x19813[_0x41e203(0x151)])?(_0x2fac08[_0x41e203(0x170)]=_0x3d884c,_0x180ce9[_0x41e203(0x102)]=_0x4896e5,_0x39b72a[_0x41e203(0xba)]=!![]):global_registry[_0x41e203(0xc3)]=_0x3b6188[_0x41e203(0xc3)]);global_registry[_0x41e203(0x7f)]=_0x3b6188[_0x41e203(0x7f)];const _0x3c426f={'method':_0x19813[_0x41e203(0x1ac)],'headers':_0x19813[_0x41e203(0x15a)](getAuthHeader,_0x5e91bc[_0x41e203(0x119)][_0x41e203(0x135)],_0x5e91bc['Browserstack'][_0x41e203(0x6d)]),'throwHttpErrors':![]},_0x56ea18={};_0x56ea18[_0x41e203(0x7f)]=_0x50696a;const _0x7aa228=_0x56ea18;_0x482c57&&(_0x19813[_0x41e203(0x13c)](_0x19813[_0x41e203(0xc9)],_0x19813['YHcTb'])?(_0x7aa228[_0x41e203(0x170)]=_0x50f1ac,_0x7aa228[_0x41e203(0x102)]=_0x26ff09,_0x7aa228[_0x41e203(0xba)]=!![]):_0x18ca17[_0x41e203(0x193)](_0x41e203(0xc0)+_0x2d1db2+'\x20'));const _0x491150=_0x41e203(0xeb)+AG_API_URL+_0x41e203(0x18c),_0x3d33eb={'searchParams':_0x7aa228,'throwHttpErrors':![],..._0x3c426f},_0x339059=_0x3d33eb,_0x902d43=await _0x19813[_0x41e203(0xc2)](got,_0x491150,_0x339059);if(_0x19813[_0x41e203(0xf3)](_0x902d43,null)||_0x19813[_0x41e203(0x117)](_0x902d43,undefined)){if(_0x19813[_0x41e203(0xf3)](_0x19813[_0x41e203(0x118)],_0x19813[_0x41e203(0x19f)]))throw new _0x31485f(_0x41e203(0x18b)+_0x2441ed+_0x41e203(0x70));else _0x3c6cfe=_0x19813[_0x41e203(0x10e)],await _0x19813[_0x41e203(0x6c)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813[_0x41e203(0x1a9)],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1);}_0x19813[_0x41e203(0x92)](_0x902d43[_0x41e203(0x16f)],0x191)&&(_0x19813[_0x41e203(0xb4)](_0x19813['jtMzH'],_0x19813[_0x41e203(0xf9)])?(_0x3c6cfe=_0x19813[_0x41e203(0x8b)],await _0x19813[_0x41e203(0x6c)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813[_0x41e203(0x12c)],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1)):_0x256f55=_0x5bcb31[_0x189499[_0x41e203(0xc3)]]);if(_0x19813[_0x41e203(0xf8)](_0x902d43[_0x41e203(0x16f)],0xc8)){if(_0x19813[_0x41e203(0x13c)](_0x19813['ctUya'],_0x19813['ctUya'])){const _0x2473d8={};_0x2473d8['type']=_0x5d972f[_0x41e203(0xb3)],_0x2473d8[_0x41e203(0x112)]=_0x41e203(0x18b)+_0x538fe2+_0x41e203(0x192),_0x581376['sendEventToBackend'](_0x539e10,_0x2473d8,_0x19813[_0x41e203(0x8a)]),_0x22a22f[_0x41e203(0x193)](_0x41e203(0x18b)+_0x4e503e+_0x41e203(0x192)),_0x3ab4c4=!![];if(_0x19813[_0x41e203(0xe4)](_0x458c77,!![]))throw new _0xd750a4(_0x41e203(0x18b)+_0x5c7ae7+_0x41e203(0x70));}else _0x3c6cfe=_0x41e203(0xbc)+JSON[_0x41e203(0xb2)](_0x902d43[_0x41e203(0xd0)]),await _0x19813['XErNc'](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813['glkYN'],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1);}const _0x19ebf6=JSON['parse'](_0x902d43[_0x41e203(0xd0)]),_0x2b1846={};_0x2b1846[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0x7e)],_0x2b1846['message']=_0x19813[_0x41e203(0x114)],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x2b1846);const _0x47a5a1={};_0x47a5a1[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x47a5a1['message']=_0x19813['hRrct'],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x47a5a1);_0x19ebf6[_0x41e203(0x1a7)]&&(_0x19813[_0x41e203(0xf3)](_0x19813[_0x41e203(0x15c)],_0x19813['CULdd'])?(_0x3c6cfe='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x50696a+_0x41e203(0x123),await _0x19813[_0x41e203(0xb0)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813[_0x41e203(0x85)],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process['exit'](0x1)):(_0x4c480b[_0x41e203(0x193)](_0x41e203(0xc5)+_0x48cdd6[_0x41e203(0x7c)]+_0x41e203(0x95)),_0x2958fd=![],_0x3bd6d8=!![]));const _0x13aa70=_0x19ebf6[_0x41e203(0x1a4)];let _0x32c9ed=_0x13aa70[_0x19ebf6[_0x41e203(0x156)]];_0x3b6188[_0x41e203(0xc3)]&&(_0x19813['bcjLE'](_0x19813[_0x41e203(0x136)],_0x19813[_0x41e203(0x136)])?_0x32c9ed=_0x13aa70[_0x3b6188[_0x41e203(0xc3)]]:_0xdb8e7e=_0x19813['ScBbk']);if(_0x19813[_0x41e203(0x77)](_0x141ca1,![])&&_0x19813[_0x41e203(0xf3)](_0x482c57,![])){if(_0x19813[_0x41e203(0x13c)](_0x19813['vwrFL'],_0x19813['vwrFL']))_0x1b9048=!![];else{_0x19813['xjUCc'](_0x32c9ed,undefined)&&(_0x19813[_0x41e203(0x17f)](_0x19813[_0x41e203(0x15e)],_0x19813[_0x41e203(0x15e)])?(_0x3c6cfe=_0x19813[_0x41e203(0x68)],await _0x19813[_0x41e203(0xb0)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813['CbESw'],_0x19813[_0x41e203(0xe9)],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1)):_0x10b8a6['isPrivateGrid']=!![]);global_registry[_0x41e203(0x147)]=_0x32c9ed['id'],_0x3c6cfe=_0x41e203(0x96)+_0x50696a+'\x20using\x20\x27'+_0x32c9ed[_0x41e203(0xb8)]+_0x41e203(0x1ab),logger[_0x41e203(0x193)](_0x3c6cfe);const _0x498f58={};_0x498f58['type']=WS_EVENTS[_0x41e203(0xb3)],_0x498f58[_0x41e203(0x112)]=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x498f58),_0x26ff09=_0x32c9ed['cloudProvider'],_0x32b2fd=_0x32c9ed[_0x41e203(0x7c)],_0x50f1ac=_0x32c9ed['region'],_0x16cb98=_0x32c9ed[_0x41e203(0x16c)],_0x35a725=_0x32c9ed['instanceType'],_0x427447=_0x32c9ed[_0x41e203(0xde)],_0x7147f5=_0x32c9ed[_0x41e203(0x106)],_0x4cd2c0=_0x32c9ed['subnets'],_0x54b76e=_0x32c9ed[_0x41e203(0x98)],_0xda2bec=_0x32c9ed['minNodes'],_0x534623=_0x32c9ed[_0x41e203(0x198)],_0x10f002=_0x19ebf6['hubVersion'],_0x2a78e5=_0x19ebf6['browserVersion'];_0x427447&&_0x19813['Mbsfx'](_0x427447[_0x41e203(0x12f)],0x0)&&(_0x19813[_0x41e203(0x184)](_0x19813[_0x41e203(0xd5)],_0x19813[_0x41e203(0x159)])?_0x5e358a[_0x41e203(0xe1)]():_0x427447=null);if(_0x4cd2c0&&_0x19813['OqFkb'](_0x4cd2c0['length'],0x0)){if(_0x19813['Mbsfx'](_0x19813[_0x41e203(0x12d)],_0x19813[_0x41e203(0x133)])){const _0x1654a5={};_0x1654a5[_0x41e203(0x189)]=_0x19813[_0x41e203(0xa7)],_0x1654a5[_0x41e203(0x19b)]=_0x19813[_0x41e203(0xbb)];const _0x392720={};_0x392720[_0x41e203(0x189)]=_0x19813['YMKAC'],_0x392720['type']=_0x19813[_0x41e203(0xbb)];const _0x2324b4={};_0x2324b4[_0x41e203(0x189)]=_0x19813['kGYkm'],_0x2324b4[_0x41e203(0x19b)]=_0x19813['YnoLB'];const _0xa80e9={};_0xa80e9[_0x41e203(0x189)]=_0x19813['HmLMO'],_0xa80e9[_0x41e203(0x19b)]=_0x19813[_0x41e203(0xbb)];const _0x5bfd76={};_0x5bfd76['description']=_0x19813[_0x41e203(0x125)],_0x5bfd76[_0x41e203(0x19b)]=_0x19813[_0x41e203(0xbb)];const _0x4bb010={};_0x4bb010['description']=_0x19813[_0x41e203(0x81)],_0x4bb010['type']=_0x19813[_0x41e203(0xbb)];const _0x3483cf={};_0x3483cf[_0x41e203(0x189)]=_0x19813['uZBHg'],_0x3483cf[_0x41e203(0x19b)]=_0x19813[_0x41e203(0x7d)],_0x3483cf['default']=![];const _0x29a686={};return _0x29a686[_0x41e203(0x164)]=_0x1654a5,_0x29a686[_0x41e203(0x155)]=_0x392720,_0x29a686['cluster-name']=_0x2324b4,_0x29a686[_0x41e203(0x157)]=_0xa80e9,_0x29a686['region']=_0x5bfd76,_0x29a686['private-grid']=_0x4bb010,_0x29a686[_0x41e203(0x69)]=_0x3483cf,_0x21a9fe[_0x41e203(0x9d)](_0x5b9e17[_0x41e203(0xa2)])['epilogue'](_0x20e541)[_0x41e203(0x1aa)](_0x29a686)[_0x41e203(0xfc)](_0x19813[_0x41e203(0x137)])[_0x41e203(0xbe)];}else _0x4cd2c0=null;}_0x19813[_0x41e203(0xf8)](_0x32c9ed['privateGrid'],undefined)&&_0x32c9ed[_0x41e203(0x18e)]&&(_0x19813['qauWM'](_0x19813[_0x41e203(0xe5)],_0x19813[_0x41e203(0xe5)])?global_registry[_0x41e203(0x175)]=!![]:_0x293dda['error'](_0x41e203(0x99)+_0x307290+'\x20\x0a'+_0x492836[_0x41e203(0xb2)](_0x4679f1[_0x41e203(0xea)]))),_0x19813[_0x41e203(0xe6)](updateGlobalRegistryWithConfig,_0x26ff09,_0x32b2fd,_0x50f1ac,_0x16cb98,_0x35a725,_0x54b76e,_0x32c9ed,_0x10f002,_0x2a78e5,_0xda2bec,_0x534623);}}else{if(_0x19813[_0x41e203(0x172)](_0x482c57,!![])){if(_0x19813[_0x41e203(0x92)](_0x19813[_0x41e203(0x14c)],_0x19813[_0x41e203(0x14c)])){_0x3c6cfe=_0x41e203(0x181)+_0x50696a,logger[_0x41e203(0x193)](_0x3c6cfe);const _0x26f304={};_0x26f304[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x26f304[_0x41e203(0x112)]=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x26f304),_0x16cb98=_0x32c9ed[_0x41e203(0x16c)],_0x35a725=_0x32c9ed[_0x41e203(0x94)],_0x427447=null,_0x7147f5=null,_0x4cd2c0=null,_0x54b76e=_0x32c9ed[_0x41e203(0x98)],_0xda2bec=_0x32c9ed[_0x41e203(0x130)],_0x534623=_0x32c9ed['maxNodes'],_0x10f002=_0x19ebf6[_0x41e203(0xca)],_0x2a78e5=_0x19ebf6[_0x41e203(0x16d)],_0x19813[_0x41e203(0x8e)](_0x32c9ed[_0x41e203(0x18e)],undefined)&&_0x32c9ed[_0x41e203(0x18e)]&&(_0x19813['HtSHk'](_0x19813[_0x41e203(0x1a5)],_0x19813[_0x41e203(0x1a5)])?_0x3d1cbf[_0x41e203(0x193)](_0x41e203(0x191)+_0x181946[_0x41e203(0xb2)](_0x4b858f)+'\x20'):global_registry[_0x41e203(0x175)]=!![]),_0x19813['MyzYB'](updateGlobalRegistryWithConfig,_0x26ff09,_0x32b2fd,_0x50f1ac,_0x16cb98,_0x35a725,_0x54b76e,_0x32c9ed,_0x10f002,_0x2a78e5,_0xda2bec,_0x534623);}else _0x5eb003=null;}else{if(_0x19813[_0x41e203(0xf3)](_0x19813['qEOOs'],_0x19813['VneeX']))_0x5392ae[_0x41e203(0x175)]=!![];else{const _0x5897ce=_0x19813[_0x41e203(0x74)][_0x41e203(0x97)]('|');let _0x1b6127=0x0;while(!![]){switch(_0x5897ce[_0x1b6127++]){case'0':global_registry[_0x41e203(0x19c)]=_0x50f1ac;continue;case'1':global_registry[_0x41e203(0x16d)]=_0x19ebf6[_0x41e203(0x16d)];continue;case'2':global_registry[_0x41e203(0xca)]=_0x19ebf6[_0x41e203(0xca)];continue;case'3':_0x3c6cfe=_0x41e203(0x11e)+_0x50696a+'\x20in\x20existing\x20cluster\x20\x27'+_0x32b2fd+'\x27';continue;case'4':const _0x360425={};_0x360425[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x360425['message']=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x360425);continue;case'5':const _0x5d170f={};_0x5d170f[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0x7e)],_0x5d170f[_0x41e203(0x112)]=_0x19813['pcefO'],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x5d170f);continue;case'6':global_registry[_0x41e203(0x102)]=_0x26ff09;continue;case'7':global_registry[_0x41e203(0x7c)]=_0x32b2fd;continue;case'8':logger[_0x41e203(0x193)](_0x3c6cfe);continue;}break;}}}}const _0x10662d=await _0x19813['UrVCb'](getCloudProviderObject,_0x26ff09,_0x32b2fd,_0x50696a,_0x13c44f,webSocketUtils,_0x3b6188);_0x19813['pLcub'](_0x26ff09,AZURE)&&_0x10662d[_0x41e203(0xe1)]();let _0x4cf379;if(_0x19813['zyeMk'](_0x141ca1,![])){_0x3c6cfe=_0x41e203(0x87)+_0x50f1ac+').';const _0x385f36={};_0x385f36[_0x41e203(0x19b)]=WS_EVENTS['LOG'],_0x385f36[_0x41e203(0x112)]=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x385f36),logger[_0x41e203(0x193)](_0x3c6cfe);const _0x28906c=await _0x10662d[_0x41e203(0x183)]();if(_0x28906c){const _0x26bc21={};_0x26bc21[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x26bc21[_0x41e203(0x112)]=_0x41e203(0x18b)+_0x32b2fd+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x26bc21,_0x19813[_0x41e203(0x8a)]),logger[_0x41e203(0x193)](_0x41e203(0x18b)+_0x32b2fd+_0x41e203(0x192)),_0x141ca1=!![];if(_0x19813[_0x41e203(0x6a)](_0x482c57,!![]))throw new Error(_0x41e203(0x18b)+_0x32b2fd+_0x41e203(0x70));}else{const _0x2bd42f={};_0x2bd42f[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x2bd42f[_0x41e203(0x112)]=_0x19813[_0x41e203(0x178)],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x2bd42f),logger[_0x41e203(0x193)](_0x19813[_0x41e203(0x178)]);const _0x521a2f=_0x19813[_0x41e203(0x1a2)](_0x427447,null)&&_0x19813[_0x41e203(0xf8)](_0x427447,undefined),_0xa765b4=_0x19813[_0x41e203(0xe8)](_0x4cd2c0,null)&&_0x19813['KSNUD'](_0x4cd2c0,undefined)&&_0x19813[_0x41e203(0x109)](_0x4cd2c0[_0x41e203(0x12f)],0x0);if(_0x521a2f){_0x19813[_0x41e203(0xf3)](_0xa765b4,![])&&(_0x3c6cfe=_0x19813[_0x41e203(0x12a)],await _0x19813[_0x41e203(0x110)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813[_0x41e203(0x127)],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1));const _0x2996c8=await _0x10662d['isVPCPresent'](_0x427447);_0x19813['xjUCc'](_0x2996c8,![])?(_0x3c6cfe=_0x19813[_0x41e203(0x93)],await _0x19813[_0x41e203(0xac)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes['ERROR'],_0x19813[_0x41e203(0x18f)],_0x19813['ODPrx'],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1)):logger[_0x41e203(0x193)]('Found\x20VPC:\x20'+_0x427447+'\x20');const _0x427106=await _0x10662d['isSubnetsValid'](_0x4cd2c0,_0x427447);_0x19813[_0x41e203(0x72)](_0x427106[0x0],![])?(_0x3c6cfe=_0x41e203(0xd1)+JSON['stringify'](_0x427106[0x1])+_0x41e203(0x176)+_0x427447+_0x41e203(0x13f),await _0x19813[_0x41e203(0xb0)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813['CbESw'],_0x19813[_0x41e203(0xc7)],_0x19813['YQLTx']),logger[_0x41e203(0xa1)](_0x3c6cfe),process['exit'](0x1)):logger[_0x41e203(0x193)](_0x41e203(0x191)+JSON[_0x41e203(0xb2)](_0x4cd2c0)+'\x20'),await _0x10662d[_0x41e203(0xfa)](_0x427447,_0x4cd2c0);}else{const _0x248d81=_0x19813[_0x41e203(0x79)][_0x41e203(0x97)]('|');let _0x254e67=0x0;while(!![]){switch(_0x248d81[_0x254e67++]){case'0':const _0x5f33b3={};_0x5f33b3[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x5f33b3[_0x41e203(0x112)]=_0x19813['Oiqtl'],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x5f33b3);continue;case'1':await _0x10662d[_0x41e203(0xfa)](_0x427447,_0x4cd2c0);continue;case'2':const _0x1119d2={};_0x1119d2[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x1119d2[_0x41e203(0x112)]=_0x19813[_0x41e203(0x154)],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x1119d2);continue;case'3':logger[_0x41e203(0x193)](_0x19813[_0x41e203(0xbf)]);continue;case'4':logger[_0x41e203(0x193)](_0x19813['wyUWt']);continue;}break;}}}}_0x141ca1&&_0x19813[_0x41e203(0x6a)](_0x26ff09,AZURE)&&(await _0x10662d[_0x41e203(0x86)](),await _0x10662d[_0x41e203(0x115)]());const [_0x4efa4a,_0x3be688,_0x1f2e68,_0x34f654,_0x181349,_0x527517]=await _0x19813[_0x41e203(0x15a)](createK8sClient,_0x10662d,_0x3b6188[_0x41e203(0x6f)]);_0x19813[_0x41e203(0x15f)](_0x141ca1,![])&&_0x19813[_0x41e203(0x10f)](_0x26ff09,AWS)&&(global_registry[_0x41e203(0x168)]=!![],_0x4cf379=await _0x10662d[_0x41e203(0x190)](_0x4efa4a,_0x3b6188));try{_0x440fb7=_0x19813[_0x41e203(0x162)](kebabCase,_0x50696a),logger[_0x41e203(0x193)](_0x19813[_0x41e203(0xb7)]);const _0x45dfe8={};_0x45dfe8['type']=WS_EVENTS[_0x41e203(0xb3)],_0x45dfe8[_0x41e203(0x112)]=_0x19813[_0x41e203(0xb7)],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x45dfe8);if(_0x19813[_0x41e203(0x84)](_0x440fb7,_0x19813[_0x41e203(0x16a)])){const _0x40cc0b={};_0x40cc0b['createdBy']=_0x19813[_0x41e203(0x14e)],_0x40cc0b['managedBy']=_0x19813[_0x41e203(0x14e)];const _0x26d7da={};_0x26d7da[_0x41e203(0xb8)]=_0x440fb7,_0x26d7da[_0x41e203(0x11f)]=_0x40cc0b;const _0x5774c9={};_0x5774c9[_0x41e203(0x194)]=_0x26d7da;const _0xb20617=_0x5774c9,_0x11ae5d={};_0x11ae5d[_0x41e203(0xd0)]=_0xb20617,await _0x4efa4a['createNamespace'](_0x11ae5d),logger['info'](_0x19813[_0x41e203(0xec)]);}const _0x47cb89={};_0x47cb89[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x47cb89['message']=_0x19813['xgXip'],webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x47cb89);const _0x47e7ba={};_0x47e7ba[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x47e7ba[_0x41e203(0x112)]=_0x19813['YiUdl'],webSocketUtils['sendEventToBackend'](_0x13c44f,_0x47e7ba),logger['info'](_0x19813[_0x41e203(0xfe)]);let _0xe39e17={};_0x19813['NzRqI'](_0x26ff09,AZURE)&&(_0xe39e17={'clientId':await _0x10662d[_0x41e203(0x13d)](_0x41e203(0x1a1)+_0x32b2fd)});await _0x19813[_0x41e203(0xd7)](addGridComponents,_0x4efa4a,_0x3be688,_0x1f2e68,_0x34f654,_0x440fb7,_0x32b2fd,_0x4cf379,_0x181349,_0x527517,_0xe39e17),_0x3c6cfe=_0x19813[_0x41e203(0x14d)],logger[_0x41e203(0x193)](_0x3c6cfe);const _0x6f76dd={};_0x6f76dd[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x6f76dd[_0x41e203(0x112)]=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x6f76dd),_0x3c6cfe=_0x19813['WcCJf'],logger[_0x41e203(0x193)](_0x3c6cfe);const _0x408943={};_0x408943[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0xb3)],_0x408943[_0x41e203(0x112)]=_0x3c6cfe,webSocketUtils['sendEventToBackend'](_0x13c44f,_0x408943),await _0x19813[_0x41e203(0x101)](waitForDeployment,_0x3be688,_0x440fb7,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x3d0a3a=await _0x19813[_0x41e203(0x166)](getNamespaceUID,_0x4efa4a,_0x440fb7),_0x185746=global_registry[_0x41e203(0x175)]?_0x19813[_0x41e203(0x11a)]:_0x19813[_0x41e203(0x9b)],_0x2a95b9={};_0x2a95b9[_0x41e203(0xb8)]=_0x185746,_0x2a95b9[_0x41e203(0xe7)]=_0x19813[_0x41e203(0x15d)];const _0x49211f=await _0x4efa4a['readNamespacedService'](_0x2a95b9);let _0x37d30a=_0x10662d['getGridHostname'](_0x49211f)+'/'+_0x440fb7,_0x377232=_0x19813[_0x41e203(0x153)];try{const _0x5e8684=_0x41e203(0xeb)+AG_API_URL+_0x41e203(0x108)+_0x3d0a3a,_0x32157d=await _0x19813['IFjpR'](got,_0x5e8684,_0x3c426f);(_0x19813[_0x41e203(0x17f)](_0x32157d,null)||_0x19813['ZPTzc'](_0x32157d,undefined))&&(_0x3c6cfe=_0x19813[_0x41e203(0x121)],await _0x19813[_0x41e203(0xe2)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813['CbESw'],_0x19813['YDlDS'],_0x19813[_0x41e203(0xfd)]),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1));_0x19813[_0x41e203(0x92)](_0x32157d[_0x41e203(0x16f)],0x191)&&(_0x3c6cfe=_0x19813['vYbpH'],await _0x19813[_0x41e203(0xe2)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813[_0x41e203(0x167)],_0x19813[_0x41e203(0xfd)]),logger['error'](_0x3c6cfe),process[_0x41e203(0x18d)](0x1));_0x19813[_0x41e203(0xf8)](_0x32157d[_0x41e203(0x16f)],0xc8)&&(_0x3c6cfe='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x32157d),await _0x19813[_0x41e203(0x140)](reportToGalactusAndSendToEDS,_0x3b6188,_0x13c44f,_0x3c6cfe,messageTypes[_0x41e203(0x19a)],_0x19813[_0x41e203(0x18f)],_0x19813[_0x41e203(0xf1)],_0x19813['YQLTx']),logger[_0x41e203(0xa1)](_0x3c6cfe),process[_0x41e203(0x18d)](0x1));const _0x1e41d0=JSON[_0x41e203(0xdd)](_0x32157d[_0x41e203(0xd0)]);_0x1e41d0[_0x41e203(0x195)]&&(_0x37d30a=_0x1e41d0[_0x41e203(0x195)],_0x377232=_0x19813[_0x41e203(0x174)]),global_registry[_0x41e203(0x175)]&&(_0x377232=_0x19813['ScBbk']);}catch(_0x518ead){}_0x3c6cfe=_0x41e203(0xee)+_0x37d30a+'\x20',logger['info'](_0x3c6cfe);const _0x200eaa={};_0x200eaa['type']=WS_EVENTS[_0x41e203(0xb3)],_0x200eaa['message']=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x200eaa),_0x3c6cfe=_0x41e203(0x182)+_0x377232+_0x41e203(0xd2)+_0x37d30a+'/wd/hub',logger['info'](_0x3c6cfe);const _0x5566da={};_0x5566da[_0x41e203(0x19b)]=WS_EVENTS['LOG'],_0x5566da['message']=_0x3c6cfe,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x5566da);const _0xecbd75={};_0xecbd75[_0x41e203(0x19b)]=WS_EVENTS[_0x41e203(0x107)],_0xecbd75[_0x41e203(0x112)]='CLI\x20run\x20finished:\x20'+_0x37d30a,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0xecbd75),await webSocketUtils[_0x41e203(0xa4)](0x7d0);}catch(_0x2a84b6){logger['error'](_0x41e203(0xa0)+_0x2a84b6+'\x20\x0a'+JSON[_0x41e203(0xb2)](_0x2a84b6['stack']));if(_0x19813[_0x41e203(0x117)](_0x141ca1,![]))try{logger[_0x41e203(0x193)](_0x19813[_0x41e203(0x9e)]),await _0x19813[_0x41e203(0xdf)](removeGridComponents,_0x4efa4a,_0x3be688,_0x1f2e68,_0x34f654,_0x440fb7),await _0x10662d['deleteCluster'](_0x4efa4a,global_registry[_0x41e203(0x19c)]);}catch(_0x1251eb){logger[_0x41e203(0xa1)](_0x41e203(0x99)+_0x1251eb+'\x20\x0a'+JSON[_0x41e203(0xb2)](_0x1251eb[_0x41e203(0xea)]));}throw _0x2a84b6;}}catch(_0x167380){const _0x5ab51a=_0x41e203(0x83)+_0x167380+'\x20\x0a'+JSON[_0x41e203(0xb2)](_0x167380['stack']);if(_0x13c44f){const _0x1be155={};_0x1be155['type']=WS_EVENTS[_0x41e203(0xb3)],_0x1be155[_0x41e203(0x112)]=_0x5ab51a,webSocketUtils[_0x41e203(0x126)](_0x13c44f,_0x1be155,_0x19813[_0x41e203(0xfd)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x235c7a={};_0x235c7a[_0x41e203(0xa1)]=_0x5ab51a,await _0x19813[_0x41e203(0x113)](sendInstrumentationEvent,_0x3b6188,_0x19813[_0x41e203(0x18f)],messageTypes[_0x41e203(0x19a)],_0x19813['FLTBr'],_0x235c7a,_0x3b6188),logger[_0x41e203(0xa1)](_0x5ab51a);}process[_0x41e203(0x18d)](0x0);};
1
+ function a9_0x2cca(_0x381803,_0x40342d){const _0x57a538=a9_0x57a5();return a9_0x2cca=function(_0x2cca71,_0x30e2f5){_0x2cca71=_0x2cca71-0x1ba;let _0x2d8a98=_0x57a538[_0x2cca71];return _0x2d8a98;},a9_0x2cca(_0x381803,_0x40342d);}const a9_0x24d3e9=a9_0x2cca;function a9_0x57a5(){const _0x2f7434=['subnets','aVOjh','LOG','1227465CmQBhd','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','isPrivateGrid','drutV','BVwuU','grid','clusterRegion','create-grid-checks-non-200','DpTmB','vEoRE','qrQTq','Grid\x20profile\x20fetched\x20from\x20backend','1030056ZWgNRT','JwHsZ','body','uNxoE','../../config/constants','addListeners','https://','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','vmPQI','1239448bUowQK','tPsqf','nWbUb','non-aws-azure-cluster','boolean','lJmQD','qAWrz','cloudProvider','../../utils/gridComponents','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Subnets:\x20','readNamespacedService','error','../../utils/utilityMethods','ekewH','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','setupAutoscaler','cloud-provider','loMvJ','ZcXYS','zkArH','delay','Will\x20be\x20spawning\x20the\x20grid\x20','pPyPP','grid-spawning-failed','Adding\x20Websocket\x20listeners','PWPuS','DSjZr','uloJY','Cluster\x20created\x20successfully','replace','XFORz','SxZln','name','createdBy','create-grid-called','unaTP','get-grid-url-null-response','goiIn','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','ofrYR','options','namespace','ingress-nginx-controller','Create\x20a\x20private/public\x20grid.','zlkLZ','Logec','help','hubVersion','description','QxyLV','Spawning\x20the\x20grid\x20','Browserstack','AigEg','private-grid','rQaOi','epilogue','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','viOKk','get-grid-url-non-200','xnSBQ','FLSTd','EMUEl','create','length','iAyhQ','oswCv','zREul','sendEventToBackend','dKLcJ','maxNodes','minNodes','createNamespace','create-grid-checks-grid-already-exists','Iexjw','FlJep','\x20in\x20existing\x20cluster\x20\x27','browserVersion','requestId','username','usage','zunyz','deleteCluster','type','eoSdT','KkEfd','RQkHV','debug','hFbhH','Create\x20a\x20new\x20Automation\x20grid.','MMoOj','sDTYe','concurrency','handler','true','EBdvP','gwGTX','9NJhbsM','ULADF','route53','annotations','ZRGuY','UjnHB','http','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','yGdtT','grid-name','wBsEC','gridProfiles','UuMSt','bstackAccesskey','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','/wd/hub','readFileSync','2hnKrSr','fZvHa','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','uAcnA','vuprP','includes','\x27\x20grid\x20profile','hiPtp','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','jICQd','isVPCPresent','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Namespace\x20created','managedBy','parse','MhDGk','newCluster','737lLPKzI','IPcbR','scXBv','EpraQ','TfeIV','yaRoL','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','s3bucket','TWJYh','builder','yAnuj','gridProfileId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KrpkE','GyYmj','trCjU','CLI_RUN_STARTED','uuid','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','reconnecting-websocket','wewVg','rFigk','MIoaE','ingress-nginx','ZAHCN','vrvqW','Dppbn','aCGKx','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','tSkXH','QFjzf','REjEd','turboscale-managed-identity-','user','Deleting\x20the\x20CloudFormation\x20Stacks','bMAAz','vpc','skip-tls-cert-verify','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','stack','sBFWM','zTXCp','statusCode','info','jQOcH','init-not-called','Krpwx','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','pre-spawned-invalid-vpc','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','GET','Found\x20VPC:\x20','hQMoT','https','isSubnetsValid','KRRZP','Cluster:\x20','UmgwO','6|5|0|1|3|4|7|8|2','VjLeb','Grid\x20spawned\x20on\x20the\x20cluster','pDEtB','VeyOE','region','Zddjn','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','bPjSV','warn','ZUxJq','CLI\x20run\x20started','stringify','osPNr','WphGg','zrtXw','isClusterPresent','tgHGZ','Aqxct','../../utils/webSocketUtils','TwOfW','../../utils/createk8sClient','ZWGkb','6342750pPQZgz','toLowerCase','existsSync','Creating\x20namespace','privateGrid','egLYa','zMTGf','aGIPk','jhBzj','tUZVc','../../utils/instrumentationUtils','default','OIXAZ','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Ymlbz','got','Cluster\x20','Found\x20Subnets:\x20','getGridHostname','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','EkiMX','zUEUZ','mJzJj','clusterName','RcPrk','pre-spawned-subnets-not-selected','INFO','SeDWt','/packages/cli/get-grid-url?gridIdentifier=','5307320xkVGQk','367630kJqLXx','pMHPN','/packages/cli/create-grid-checks','CLI_RUN_FINISHED','FYSHq','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ZyUsM','ASaVC','AoYFE','eJISR','cSwFg','ybVOd','gridProfile','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','\x20are\x20not\x20present\x20in\x20VPC:\x20','string','getResourceClientId','TCycn','tyMdl','tPlgW','aKjNn','SaKbx','setupNewCluster','instanceType','message','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','2967819uXQuSU','PjGCi','ERROR','QxYvr','bHggm','private-ingress-nginx-controller','UsDjg','connectionTimeout','nJYkL','NIbkW','lZWby','create-grid-checks-null-response','rQbAX','AyQIp','4|1|3|0|2','sendResourceDataToHST','HaHTi','NYKgT','fRTvX','password','7|2|4|6|5|14|11|1|8|13|9|10|0|3|12','cluster-name','exit','Spawning\x20Grid\x20on\x20the\x20Cluster','zBUtH','20rqGglh','../../config/logger','rndoO','prespawned-cluster-args-not-passed','split','rlxMB','grid-profile','ywQci','VFvyX','VlIvr'];a9_0x57a5=function(){return _0x2f7434;};return a9_0x57a5();}(function(_0x1f287e,_0x180686){const _0x1bdec3=a9_0x2cca,_0x3bdf8d=_0x1f287e();while(!![]){try{const _0x206d8b=parseInt(_0x1bdec3(0x285))/0x1*(-parseInt(_0x1bdec3(0x302))/0x2)+parseInt(_0x1bdec3(0x253))/0x3+parseInt(_0x1bdec3(0x26c))/0x4*(parseInt(_0x1bdec3(0x279))/0x5)+parseInt(_0x1bdec3(0x21b))/0x6+parseInt(_0x1bdec3(0x28e))/0x7+parseInt(_0x1bdec3(0x238))/0x8*(parseInt(_0x1bdec3(0x2f0))/0x9)+parseInt(_0x1bdec3(0x239))/0xa*(-parseInt(_0x1bdec3(0x1ca))/0xb);if(_0x206d8b===_0x180686)break;else _0x3bdf8d['push'](_0x3bdf8d['shift']());}catch(_0x2f16a0){_0x3bdf8d['push'](_0x3bdf8d['shift']());}}}(a9_0x57a5,0x97a6d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x24d3e9(0x1dd)),got=require(a9_0x24d3e9(0x22a)),{v4:uuidv4}=require(a9_0x24d3e9(0x1db)),webSocketUtils=require(a9_0x24d3e9(0x217)),{logger}=require(a9_0x24d3e9(0x26d)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x24d3e9(0x29b)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x24d3e9(0x289)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x24d3e9(0x296)),{createK8sClient}=require(a9_0x24d3e9(0x219)),{sendInstrumentationEvent}=require(a9_0x24d3e9(0x225));exports['command']=a9_0x24d3e9(0x27e),exports['desc']=a9_0x24d3e9(0x2e8),exports[a9_0x24d3e9(0x1d3)]=function(_0x2f332f){const _0x3c0013=a9_0x24d3e9,_0x5c871f={};_0x5c871f[_0x3c0013(0x274)]=_0x3c0013(0x29d),_0x5c871f[_0x3c0013(0x2ae)]=_0x3c0013(0x248),_0x5c871f['qwPDh']=_0x3c0013(0x1e6),_0x5c871f[_0x3c0013(0x1ed)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x5c871f[_0x3c0013(0x26e)]=_0x3c0013(0x1bb),_0x5c871f[_0x3c0013(0x1e7)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5c871f[_0x3c0013(0x2c4)]=_0x3c0013(0x2bb),_0x5c871f['FOJFu']='Skip\x20insecure\x20cert\x20verification.',_0x5c871f[_0x3c0013(0x263)]=_0x3c0013(0x292),_0x5c871f[_0x3c0013(0x256)]=_0x3c0013(0x2be);const _0x1be4be=_0x5c871f,_0x44808b={};_0x44808b[_0x3c0013(0x2c0)]=_0x1be4be[_0x3c0013(0x274)],_0x44808b['type']=_0x1be4be['SxZln'];const _0x107855={};_0x107855[_0x3c0013(0x2c0)]=_0x1be4be['qwPDh'],_0x107855[_0x3c0013(0x2e2)]=_0x1be4be[_0x3c0013(0x2ae)];const _0x2e2214={};_0x2e2214['description']=_0x1be4be[_0x3c0013(0x1ed)],_0x2e2214[_0x3c0013(0x2e2)]=_0x1be4be[_0x3c0013(0x2ae)];const _0x390748={};_0x390748[_0x3c0013(0x2c0)]=_0x1be4be['rndoO'],_0x390748[_0x3c0013(0x2e2)]=_0x1be4be[_0x3c0013(0x2ae)];const _0x1af3fa={};_0x1af3fa[_0x3c0013(0x2c0)]=_0x1be4be['tSkXH'],_0x1af3fa['type']=_0x1be4be['SxZln'];const _0x482a7b={};_0x482a7b['description']=_0x1be4be[_0x3c0013(0x2c4)],_0x482a7b[_0x3c0013(0x2e2)]=_0x1be4be['SxZln'];const _0x5f0a4c={};_0x5f0a4c[_0x3c0013(0x2c0)]=_0x1be4be['FOJFu'],_0x5f0a4c[_0x3c0013(0x2e2)]=_0x1be4be['HaHTi'],_0x5f0a4c[_0x3c0013(0x226)]=![];const _0xe344e4={};return _0xe344e4[_0x3c0013(0x2fa)]=_0x44808b,_0xe344e4[_0x3c0013(0x272)]=_0x107855,_0xe344e4[_0x3c0013(0x268)]=_0x2e2214,_0xe344e4[_0x3c0013(0x29f)]=_0x390748,_0xe344e4[_0x3c0013(0x209)]=_0x1af3fa,_0xe344e4[_0x3c0013(0x2c5)]=_0x482a7b,_0xe344e4[_0x3c0013(0x1ef)]=_0x5f0a4c,_0x2f332f[_0x3c0013(0x2df)](HELP_HEADER_MESSAGE[_0x3c0013(0x2ce)])[_0x3c0013(0x2c7)](HELP_FOOTER_MESSAGE)[_0x3c0013(0x2b8)](_0xe344e4)['help'](_0x1be4be[_0x3c0013(0x256)])['argv'];},exports[a9_0x24d3e9(0x2ec)]=async function(_0x181033){const _0x4471c3=a9_0x24d3e9,_0x420874={'egLYa':_0x4471c3(0x20d),'sDTYe':function(_0x351672,_0x26c7da){return _0x351672===_0x26c7da;},'ZyUsM':_0x4471c3(0x2f6),'jQOcH':_0x4471c3(0x29a),'EBdvP':_0x4471c3(0x29d),'Zddjn':_0x4471c3(0x248),'nJYkL':_0x4471c3(0x1e6),'UtPtF':_0x4471c3(0x2b6),'jhBzj':_0x4471c3(0x1bb),'WphGg':_0x4471c3(0x27a),'zaDvY':_0x4471c3(0x2bb),'ZWGkb':'Skip\x20insecure\x20cert\x20verification.','Iexjw':_0x4471c3(0x292),'RQkHV':_0x4471c3(0x2be),'rsaAq':_0x4471c3(0x267),'tPsqf':function(_0x775a8a,_0x280331){return _0x775a8a!==_0x280331;},'rQaOi':function(_0x3f1ebc,_0x24ff76,_0x231f38,_0x302b50,_0x25ad88,_0x34acb0,_0xea5831,_0x471a0c,_0xe37ce4,_0xd264c1,_0x58457c,_0x10624a){return _0x3f1ebc(_0x24ff76,_0x231f38,_0x302b50,_0x25ad88,_0x34acb0,_0xea5831,_0x471a0c,_0xe37ce4,_0xd264c1,_0x58457c,_0x10624a);},'KrpkE':_0x4471c3(0x204),'TWJYh':_0x4471c3(0x20f),'PjGCi':_0x4471c3(0x1ff),'hFbhH':function(_0x57fc90){return _0x57fc90();},'QMqbx':'aoTiH','rPcCR':_0x4471c3(0x1d6),'zUEUZ':function(_0x14ff30,_0x22328e,_0x5afe4b,_0x342752,_0x43f950,_0x59ddf3,_0x29be58){return _0x14ff30(_0x22328e,_0x5afe4b,_0x342752,_0x43f950,_0x59ddf3,_0x29be58);},'EMUEl':_0x4471c3(0x2b1),'FlJep':_0x4471c3(0x1f7),'NIbkW':function(_0x1359ad){return _0x1359ad();},'lJmQD':'<UsernamePlaceholder>','TwOfW':'<PasswordPlaceholder>','tUZVc':_0x4471c3(0x2a7),'uAcnA':function(_0x212723,_0x32c700){return _0x212723===_0x32c700;},'UmgwO':'lGlpo','ywQci':_0x4471c3(0x2e9),'ZAHCN':function(_0x30fdaf,_0x4ae5ea){return _0x30fdaf!==_0x4ae5ea;},'osPNr':_0x4471c3(0x2a8),'hAXlq':_0x4471c3(0x20b),'SeDWt':function(_0x316929,_0xe3cef0,_0x466c56,_0x255189,_0x2af7c9,_0x201147,_0x5191a5,_0x1f872b){return _0x316929(_0xe3cef0,_0x466c56,_0x255189,_0x2af7c9,_0x201147,_0x5191a5,_0x1f872b);},'hiPtp':_0x4471c3(0x26f),'dKqVA':_0x4471c3(0x2cb),'Ycong':'gMwfx','oswCv':_0x4471c3(0x1c1),'hQMoT':_0x4471c3(0x291),'pMHPN':_0x4471c3(0x2ed),'ULADF':_0x4471c3(0x1df),'Krpwx':'xJgqF','mJzJj':'QIZhN','EpraQ':'QsfKj','yaRoL':function(_0x26a9c4,_0xa3727e){return _0x26a9c4===_0xa3727e;},'aCGKx':_0x4471c3(0x283),'rlxMB':_0x4471c3(0x23d),'QWGoe':_0x4471c3(0x1fc),'FLSTd':function(_0x22bf00,_0x415a5d,_0x3c21f9){return _0x22bf00(_0x415a5d,_0x3c21f9);},'BVwuU':_0x4471c3(0x1de),'zunyz':function(_0x2f8ff4,_0x2fe48a){return _0x2f8ff4!==_0x2fe48a;},'XFORz':_0x4471c3(0x24d),'nzuqL':_0x4471c3(0x257),'yAnuj':_0x4471c3(0x1fb),'EkiMX':_0x4471c3(0x25e),'AoYFE':function(_0x217722,_0x416166){return _0x217722===_0x416166;},'KRRZP':function(_0x21827e,_0x170599){return _0x21827e!==_0x170599;},'gwGTX':_0x4471c3(0x260),'DpTmB':_0x4471c3(0x1d0),'cSwFg':function(_0x2b046d,_0x1fa368,_0x4fb63e,_0x1999b8,_0x4aeb4e,_0x5af096,_0x3f6c7f,_0x76962c){return _0x2b046d(_0x1fa368,_0x4fb63e,_0x1999b8,_0x4aeb4e,_0x5af096,_0x3f6c7f,_0x76962c);},'eJISR':'create-grid-checks-auth-failed','MhDGk':function(_0x53c4ed,_0x1a26dd){return _0x53c4ed===_0x1a26dd;},'XvSHK':_0x4471c3(0x2f5),'pPyPP':'SAexK','fRTvX':_0x4471c3(0x280),'zTXCp':_0x4471c3(0x284),'jICQd':function(_0x2c2dac,_0x1e11c9){return _0x2c2dac===_0x1e11c9;},'ZUxJq':_0x4471c3(0x24b),'aVOjh':_0x4471c3(0x2d8),'goiIn':'TBoCW','VlIvr':'rTPHv','ZcXYS':function(_0x2af857,_0x15e574){return _0x2af857===_0x15e574;},'ekewH':function(_0x595560,_0x357f3e){return _0x595560!==_0x357f3e;},'VjLeb':_0x4471c3(0x1d9),'fNxYg':'ieHYC','zMTGf':_0x4471c3(0x2fb),'NWxOh':_0x4471c3(0x297),'unaTP':function(_0x3e30ed,_0x22e2da,_0x440d64,_0x3242b2,_0x1d647e,_0x17b132,_0xc688b5,_0x3e1a3d){return _0x3e30ed(_0x22e2da,_0x440d64,_0x3242b2,_0x1d647e,_0x17b132,_0xc688b5,_0x3e1a3d);},'zlkLZ':'create-grid-checks-invalid-profile','vmPQI':function(_0x144d71,_0x4fbb43){return _0x144d71===_0x4fbb43;},'QFjzf':function(_0xbc5cb2,_0x35a29b){return _0xbc5cb2===_0x35a29b;},'Dppbn':_0x4471c3(0x233),'OIXAZ':function(_0x4b44cc,_0x1edb93){return _0x4b44cc===_0x1edb93;},'Aqxct':_0x4471c3(0x1e0),'oBENg':function(_0x900ccf,_0x5047de){return _0x900ccf!==_0x5047de;},'ekJSR':_0x4471c3(0x2e3),'KkEfd':_0x4471c3(0x2a9),'uloJY':function(_0x4a460a,_0x924e60){return _0x4a460a===_0x924e60;},'dkjWq':function(_0x1933a7,_0x38db0b){return _0x1933a7===_0x38db0b;},'loMvJ':_0x4471c3(0x2bd),'sBFWM':function(_0x1194f3,_0x3806bc){return _0x1194f3!==_0x3806bc;},'SaKbx':_0x4471c3(0x244),'vrvqW':'hLhqZ','ofrYR':'RyGOK','NYKgT':'4|5|6|8|1|2|7|3|0','rQbAX':function(_0x3a607f,_0x2d5e92){return _0x3a607f!==_0x2d5e92;},'IPcbR':function(_0x1b0fa3,_0x4b992e){return _0x1b0fa3===_0x4b992e;},'UuMSt':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','UeIfy':function(_0x3caebd,_0xf02670){return _0x3caebd!=_0xf02670;},'lZWby':function(_0x119c6f,_0x191125){return _0x119c6f!==_0x191125;},'blobk':function(_0x5f05db,_0x165d74){return _0x5f05db!=_0x165d74;},'qAWrz':function(_0x99b7fa,_0x4fc714){return _0x99b7fa>_0x4fc714;},'tPlgW':function(_0x54a1b4,_0x2ac21c){return _0x54a1b4===_0x2ac21c;},'QxyLV':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','tSCCz':_0x4471c3(0x234),'dyeEx':function(_0x466786,_0x2b4b1b){return _0x466786===_0x2b4b1b;},'nWbUb':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','epIOi':_0x4471c3(0x1fa),'zBUtH':function(_0xfc820e,_0x50c94b){return _0xfc820e===_0x50c94b;},'zREul':'pre-spawned-invalid-subnets','VySHF':_0x4471c3(0x261),'zrtXw':_0x4471c3(0x2ab),'UsDjg':'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.','scXBv':function(_0x2bc9ab,_0x316150,_0x46de76){return _0x2bc9ab(_0x316150,_0x46de76);},'WLKxR':function(_0x11a086,_0x746559){return _0x11a086===_0x746559;},'drutV':function(_0x3de1c3,_0x5db3e0){return _0x3de1c3(_0x5db3e0);},'REjEd':_0x4471c3(0x21e),'iAyhQ':function(_0xde4061,_0x266dc0){return _0xde4061!==_0x266dc0;},'ZRGuY':_0x4471c3(0x226),'vuprP':'Browserstack','SNMCY':'Namespace\x20Created','TfeIV':_0x4471c3(0x1c5),'dKLcJ':_0x4471c3(0x1c4),'aGIPk':_0x4471c3(0x26a),'vGWBA':function(_0x2d6425,_0x111d16,_0x535bc6,_0xa5905b,_0xff20cb,_0x11aa96,_0x13c622,_0x4f19dd,_0xc301cf,_0x1848e5,_0x4c70b3){return _0x2d6425(_0x111d16,_0x535bc6,_0xa5905b,_0xff20cb,_0x11aa96,_0x13c622,_0x4f19dd,_0xc301cf,_0x1848e5,_0x4c70b3);},'viOKk':_0x4471c3(0x206),'GyYmj':_0x4471c3(0x1dc),'zkArH':function(_0x4a9986,_0x3b2495,_0xe8783f,_0x3b7b64,_0x188a25){return _0x4a9986(_0x3b2495,_0xe8783f,_0x3b7b64,_0x188a25);},'uNxoE':_0x4471c3(0x258),'ASaVC':_0x4471c3(0x2ba),'tgHGZ':_0x4471c3(0x1e1),'VeyOE':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','CRhAJ':function(_0x35e672,_0x17a398,_0x627cae,_0x50f233,_0x2a2e6e,_0x382ccf,_0x4abf25,_0x4522d7){return _0x35e672(_0x17a398,_0x627cae,_0x50f233,_0x2a2e6e,_0x382ccf,_0x4abf25,_0x4522d7);},'yGdtT':_0x4471c3(0x2b3),'pDEtB':function(_0x100f48,_0x4d34ca){return _0x100f48===_0x4d34ca;},'Ymlbz':_0x4471c3(0x2ff),'TCycn':function(_0x3661bb,_0x344b9b,_0x1e9154,_0x5430c1,_0x28072,_0x578f48,_0x47b3d5,_0x11dbd8){return _0x3661bb(_0x344b9b,_0x1e9154,_0x5430c1,_0x28072,_0x578f48,_0x47b3d5,_0x11dbd8);},'JwHsZ':'get-grid-url-auth-failed','AZyFE':function(_0x4c07ab,_0x5cbea0){return _0x4c07ab!==_0x5cbea0;},'IUwvl':_0x4471c3(0x2ca),'bPjSV':function(_0x4a2688,_0x14c3b6){return _0x4a2688===_0x14c3b6;},'vEoRE':_0x4471c3(0x1ec),'iSIiV':function(_0x317e6a,_0x5487f8,_0x547bc5,_0x3f35f7,_0x513f5c,_0x3e4736){return _0x317e6a(_0x5487f8,_0x547bc5,_0x3f35f7,_0x513f5c,_0x3e4736);},'fZvHa':_0x4471c3(0x2a6)};let _0x28bebf=![],_0x26ea02=![],_0x295df8,_0x400499,_0x48cd47,_0x143f16,_0x32356c,_0x43b362,_0xd7c56e,_0xd0fb75,_0x39877f,_0xbdb8d3,_0x7383ca,_0x1af1a8,_0x43bfc1,_0x36f901,_0x50be1f=0x1,_0xa366c=0xe;try{global_registry[_0x4471c3(0x2dd)]=_0x420874[_0x4471c3(0x2e7)](uuidv4),global_registry[_0x4471c3(0x27b)]=![];!fs[_0x4471c3(0x21d)](_0x420874[_0x4471c3(0x2e7)](getCredentialsPath))&&(_0x420874[_0x4471c3(0x2ea)](_0x420874['QMqbx'],_0x420874['QMqbx'])?(console[_0x4471c3(0x29a)](_0x420874['rPcCR']),await _0x420874[_0x4471c3(0x230)](sendInstrumentationEvent,_0x181033,_0x420874[_0x4471c3(0x2cd)],messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2da)],null,_0x181033),process['exit'](0x1)):(_0x253e8a[_0x4471c3(0x209)]=_0xa42dcb,_0x4324b1[_0x4471c3(0x295)]=_0x3b1ac0,_0x3d9c28['newCluster']=!![]));await _0x420874[_0x4471c3(0x230)](sendInstrumentationEvent,_0x181033,_0x420874[_0x4471c3(0x2cd)],messageTypes[_0x4471c3(0x235)],null,null,_0x181033);const _0x5c2888=JSON['parse'](fs[_0x4471c3(0x301)](_0x420874[_0x4471c3(0x25c)](getCredentialsPath)));global_registry['bstackUsername']=_0x5c2888[_0x4471c3(0x2c3)][_0x4471c3(0x2de)],global_registry[_0x4471c3(0x2fe)]=_0x5c2888[_0x4471c3(0x2c3)][_0x4471c3(0x266)];const _0x14a41b=WS_ENDPOINT[_0x4471c3(0x2ac)](_0x420874[_0x4471c3(0x293)],_0x5c2888[_0x4471c3(0x2c3)]['username'])[_0x4471c3(0x2ac)](_0x420874[_0x4471c3(0x218)],_0x5c2888[_0x4471c3(0x2c3)][_0x4471c3(0x266)]),_0x359e04={};_0x359e04['WebSocket']=ws,_0x359e04[_0x4471c3(0x25a)]=0x36ee80,_0x1af1a8=new ReconnectingWebSocket(_0x14a41b,[],_0x359e04),logger[_0x4471c3(0x2e6)](_0x420874[_0x4471c3(0x224)]),webSocketUtils[_0x4471c3(0x28a)](_0x1af1a8,_0x181033[_0x4471c3(0x1eb)],_0x181033['password']);const _0x332774=_0x181033['gridName']||DEFAULT_GRID_NAME;if(_0x181033[_0x4471c3(0x232)]||_0x181033[_0x4471c3(0x295)]||_0x181033['region']){if(_0x420874['uAcnA'](_0x420874[_0x4471c3(0x203)],_0x420874[_0x4471c3(0x273)]))_0x5c410f['sendResourceDataToHST']();else{if(!(_0x181033[_0x4471c3(0x232)]&&_0x181033[_0x4471c3(0x295)]&&_0x181033['region'])){if(_0x420874[_0x4471c3(0x1e2)](_0x420874[_0x4471c3(0x211)],_0x420874[_0x4471c3(0x211)])){const _0x5879e5={};_0x5879e5[_0x4471c3(0x2e2)]=_0x57d65c[_0x4471c3(0x278)],_0x5879e5['message']=_0x4471c3(0x22b)+_0x592a60+_0x4471c3(0x2c8),_0x250cd2[_0x4471c3(0x2d3)](_0x6f1e98,_0x5879e5,_0x420874[_0x4471c3(0x220)]),_0x116585[_0x4471c3(0x1f5)](_0x4471c3(0x22b)+_0x4bdda2+_0x4471c3(0x2c8)),_0x4478b8=!![];if(_0x420874['sDTYe'](_0x2ae838,!![]))throw new _0x59964d(_0x4471c3(0x22b)+_0x3335cd+_0x4471c3(0x22e));}else _0x295df8=_0x420874['hAXlq'],await _0x420874[_0x4471c3(0x236)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes['ERROR'],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x1c0)],_0x420874['jQOcH']),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1);}![AWS,AZURE,GCP][_0x4471c3(0x1be)](_0x181033['cloudProvider'][_0x4471c3(0x21c)]())&&(_0x420874[_0x4471c3(0x28f)](_0x420874['dKqVA'],_0x420874['Ycong'])?(_0x295df8=_0x420874[_0x4471c3(0x2d1)],await _0x420874[_0x4471c3(0x236)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874['EMUEl'],_0x420874[_0x4471c3(0x1fe)],_0x420874[_0x4471c3(0x1f6)]),logger[_0x4471c3(0x29a)](_0x295df8),process['exit'](0x1)):_0x27f862['error'](_0x4471c3(0x2f8)+_0x23d901+'\x20\x0a'+_0x48e613[_0x4471c3(0x210)](_0x16f15f[_0x4471c3(0x1f1)])));_0x181033['privateGrid']&&_0x420874[_0x4471c3(0x2ea)](_0x181033[_0x4471c3(0x21f)][_0x4471c3(0x21c)](),_0x420874[_0x4471c3(0x23a)])&&(_0x420874[_0x4471c3(0x1bc)](_0x420874[_0x4471c3(0x2f1)],_0x420874[_0x4471c3(0x2f1)])?global_registry[_0x4471c3(0x27b)]=!![]:_0xc4a5f9[_0x4471c3(0x27b)]=!![]);global_registry[_0x4471c3(0x295)]=_0x181033[_0x4471c3(0x295)],global_registry[_0x4471c3(0x27f)]=_0x181033[_0x4471c3(0x209)],global_registry[_0x4471c3(0x232)]=_0x181033[_0x4471c3(0x232)];const _0x3995f0=await _0x420874['zUEUZ'](getCloudProviderObject,_0x181033[_0x4471c3(0x295)],_0x181033['clusterName'],_0x332774,_0x1af1a8,webSocketUtils,_0x181033),_0x1c97c6=await _0x3995f0['isClusterPresent']();!_0x1c97c6?_0x420874[_0x4471c3(0x1bc)](_0x420874[_0x4471c3(0x1f8)],_0x420874[_0x4471c3(0x231)])?_0x49f4b0=_0xec0fa8[_0x379e06['gridProfile']]:(logger['info'](_0x4471c3(0x202)+_0x181033[_0x4471c3(0x232)]+_0x4471c3(0x228)),_0x28bebf=![],_0x26ea02=!![]):_0x420874[_0x4471c3(0x2ea)](_0x420874['EpraQ'],_0x420874[_0x4471c3(0x1cd)])?_0x28bebf=!![]:(_0xcddcf[_0x4471c3(0x1f5)](_0x4471c3(0x202)+_0x4a8597[_0x4471c3(0x232)]+_0x4471c3(0x228)),_0x5582c0=![],_0x2889e3=!![]),_0x48cd47=_0x181033['clusterName'],_0x400499=_0x181033[_0x4471c3(0x295)]['toLowerCase'](),_0x143f16=_0x181033[_0x4471c3(0x209)];}}else _0x181033['gridProfile']&&(_0x420874[_0x4471c3(0x1cf)](_0x420874[_0x4471c3(0x1e5)],_0x420874[_0x4471c3(0x271)])?_0x5b3e68['isPrivateGrid']=!![]:global_registry[_0x4471c3(0x245)]=_0x181033[_0x4471c3(0x245)]);global_registry['gridName']=_0x181033['gridName'];const _0x32ac32={'method':_0x420874['QWGoe'],'headers':_0x420874[_0x4471c3(0x2cc)](getAuthHeader,_0x5c2888[_0x4471c3(0x2c3)][_0x4471c3(0x2de)],_0x5c2888[_0x4471c3(0x2c3)]['password']),'throwHttpErrors':![]},_0x5d927b={};_0x5d927b['gridName']=_0x332774;const _0x53b841=_0x5d927b;_0x26ea02&&(_0x420874['sDTYe'](_0x420874['BVwuU'],_0x420874[_0x4471c3(0x27d)])?(_0x53b841['region']=_0x143f16,_0x53b841['cloudProvider']=_0x400499,_0x53b841[_0x4471c3(0x1c9)]=!![]):_0x5707ce[_0x4471c3(0x1f5)](_0x4471c3(0x1fd)+_0x5988df+'\x20'));const _0xd149e8='https://'+AG_API_URL+_0x4471c3(0x23b),_0x542498={'searchParams':_0x53b841,'throwHttpErrors':![],..._0x32ac32},_0x1b3169=_0x542498,_0x105fa1=await _0x420874[_0x4471c3(0x2cc)](got,_0xd149e8,_0x1b3169);(_0x420874[_0x4471c3(0x1bc)](_0x105fa1,null)||_0x420874[_0x4471c3(0x1cf)](_0x105fa1,undefined))&&(_0x420874[_0x4471c3(0x2e0)](_0x420874[_0x4471c3(0x2ad)],_0x420874['nzuqL'])?(_0x295df8=_0x420874[_0x4471c3(0x1d4)],await _0x420874[_0x4471c3(0x236)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x22f)],_0x420874[_0x4471c3(0x1f6)]),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1)):_0x55a646[_0x4471c3(0x1f5)](_0x4471c3(0x22c)+_0x50b42a['stringify'](_0x132c01)+'\x20'));_0x420874['AoYFE'](_0x105fa1[_0x4471c3(0x1f4)],0x191)&&(_0x420874[_0x4471c3(0x201)](_0x420874[_0x4471c3(0x2ef)],_0x420874[_0x4471c3(0x2ef)])?_0x195af5['isPrivateGrid']=!![]:(_0x295df8=_0x420874[_0x4471c3(0x281)],await _0x420874[_0x4471c3(0x243)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes['ERROR'],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x242)],_0x420874[_0x4471c3(0x1f6)]),logger['error'](_0x295df8),process[_0x4471c3(0x269)](0x1)));if(_0x420874[_0x4471c3(0x28f)](_0x105fa1['statusCode'],0xc8)){if(_0x420874[_0x4471c3(0x1c8)](_0x420874['XvSHK'],_0x420874[_0x4471c3(0x2a5)]))throw new _0x308586(_0x4471c3(0x22b)+_0x25b9b6+_0x4471c3(0x22e));else _0x295df8='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4471c3(0x210)](_0x105fa1[_0x4471c3(0x287)]),await _0x420874[_0x4471c3(0x243)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes['ERROR'],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x265)],_0x420874[_0x4471c3(0x1f6)]),logger['error'](_0x295df8),process[_0x4471c3(0x269)](0x1);}const _0xdb5dc1=JSON['parse'](_0x105fa1[_0x4471c3(0x287)]),_0x5ccf72={};_0x5ccf72[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x1da)],_0x5ccf72[_0x4471c3(0x251)]=_0x420874[_0x4471c3(0x1d2)],webSocketUtils['sendEventToBackend'](_0x1af1a8,_0x5ccf72);const _0x4e7fa9={};_0x4e7fa9[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x4e7fa9[_0x4471c3(0x251)]=_0x420874[_0x4471c3(0x1f3)],webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x4e7fa9);_0xdb5dc1['alreadyPresent']&&(_0x420874[_0x4471c3(0x1c2)](_0x420874['ZUxJq'],_0x420874[_0x4471c3(0x20e)])?(_0x295df8=_0x4471c3(0x28c)+_0x332774+_0x4471c3(0x252),await _0x420874[_0x4471c3(0x243)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x277)],_0x420874['jQOcH']),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1)):_0x3541ce=_0x420874[_0x4471c3(0x23f)]);const _0x5f413f=_0xdb5dc1[_0x4471c3(0x2fc)];let _0xd85d13=_0x5f413f[_0xdb5dc1['defaultGridProfile']];if(_0x181033[_0x4471c3(0x245)]){if(_0x420874[_0x4471c3(0x28f)](_0x420874[_0x4471c3(0x2b4)],_0x420874[_0x4471c3(0x275)]))_0xd85d13=_0x5f413f[_0x181033['gridProfile']];else{const _0xfa64d3={};_0xfa64d3['type']=_0x4c73dd[_0x4471c3(0x278)],_0xfa64d3[_0x4471c3(0x251)]=_0x1c4154,_0x36b75a[_0x4471c3(0x2d3)](_0x2f131b,_0xfa64d3,_0x420874['jQOcH'],!![]);}}if(_0x420874[_0x4471c3(0x241)](_0x28bebf,![])&&_0x420874[_0x4471c3(0x2a1)](_0x26ea02,![])){if(_0x420874[_0x4471c3(0x29c)](_0x420874[_0x4471c3(0x205)],_0x420874[_0x4471c3(0x205)])){const _0x27d4c0={};_0x27d4c0[_0x4471c3(0x2c0)]=_0x420874[_0x4471c3(0x2ee)],_0x27d4c0[_0x4471c3(0x2e2)]=_0x420874[_0x4471c3(0x20a)];const _0x3858af={};_0x3858af[_0x4471c3(0x2c0)]=_0x420874[_0x4471c3(0x25b)],_0x3858af[_0x4471c3(0x2e2)]=_0x420874[_0x4471c3(0x20a)];const _0x36dd4e={};_0x36dd4e[_0x4471c3(0x2c0)]=_0x420874['UtPtF'],_0x36dd4e[_0x4471c3(0x2e2)]=_0x420874['Zddjn'];const _0xaea692={};_0xaea692[_0x4471c3(0x2c0)]=_0x420874[_0x4471c3(0x223)],_0xaea692[_0x4471c3(0x2e2)]=_0x420874[_0x4471c3(0x20a)];const _0x250e50={};_0x250e50[_0x4471c3(0x2c0)]=_0x420874[_0x4471c3(0x212)],_0x250e50[_0x4471c3(0x2e2)]=_0x420874[_0x4471c3(0x20a)];const _0x4b7daf={};_0x4b7daf[_0x4471c3(0x2c0)]=_0x420874['zaDvY'],_0x4b7daf[_0x4471c3(0x2e2)]=_0x420874['Zddjn'];const _0x42387d={};_0x42387d[_0x4471c3(0x2c0)]=_0x420874[_0x4471c3(0x21a)],_0x42387d[_0x4471c3(0x2e2)]=_0x420874[_0x4471c3(0x2d9)],_0x42387d[_0x4471c3(0x226)]=![];const _0x44414c={};return _0x44414c['grid-name']=_0x27d4c0,_0x44414c['grid-profile']=_0x3858af,_0x44414c['cluster-name']=_0x36dd4e,_0x44414c['cloud-provider']=_0xaea692,_0x44414c['region']=_0x250e50,_0x44414c[_0x4471c3(0x2c5)]=_0x4b7daf,_0x44414c[_0x4471c3(0x1ef)]=_0x42387d,_0x1d6b2a['usage'](_0x199b48['create'])[_0x4471c3(0x2c7)](_0x5a06ad)[_0x4471c3(0x2b8)](_0x44414c)['help'](_0x420874[_0x4471c3(0x2e5)])['argv'];}else{if(_0x420874['MhDGk'](_0xd85d13,undefined)){if(_0x420874['KRRZP'](_0x420874['fNxYg'],_0x420874[_0x4471c3(0x221)]))_0x295df8=_0x420874['NWxOh'],await _0x420874['unaTP'](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x2bc)],_0x420874[_0x4471c3(0x1f6)]),logger['error'](_0x295df8),process[_0x4471c3(0x269)](0x1);else{const _0xc59013=_0x420874['rsaAq'][_0x4471c3(0x270)]('|');let _0x15f5ec=0x0;while(!![]){switch(_0xc59013[_0x15f5ec++]){case'0':_0x30cd7e=_0x37b445[_0x4471c3(0x2dc)];continue;case'1':_0x512ef0=null;continue;case'2':_0x2f9187[_0x4471c3(0x1f5)](_0x3692f6);continue;case'3':_0x420874[_0x4471c3(0x28f)](_0x58277a[_0x4471c3(0x21f)],_0x17ba25)&&_0x198311[_0x4471c3(0x21f)]&&(_0xe97ee3[_0x4471c3(0x27b)]=!![]);continue;case'4':const _0x354de3={};_0x354de3[_0x4471c3(0x2e2)]=_0x2e6740[_0x4471c3(0x278)],_0x354de3[_0x4471c3(0x251)]=_0x3125ed,_0x3b6e25['sendEventToBackend'](_0x3b5a3f,_0x354de3);continue;case'5':_0xd49a3f=_0x245ca6[_0x4471c3(0x250)];continue;case'6':_0x4868d5=_0x4d136e[_0x4471c3(0x2eb)];continue;case'7':_0x431c69=_0x4471c3(0x2b5)+_0x5c6121;continue;case'8':_0x1a5e62=_0x1dce2d[_0x4471c3(0x1d1)];continue;case'9':_0x18ec7c=_0x55cd33['maxNodes'];continue;case'10':_0xad14d9=_0x19daf9[_0x4471c3(0x2bf)];continue;case'11':_0x1fb80d=null;continue;case'12':_0x420874[_0x4471c3(0x2c6)](_0x32ad58,_0x15307b,_0x435786,_0x5a626,_0x4607ab,_0x304926,_0x4fb289,_0x395551,_0x5d9b88,_0x1db1bb,_0x168100,_0x262d53);continue;case'13':_0x524c17=_0x1cc4eb[_0x4471c3(0x2d6)];continue;case'14':_0x45959e=null;continue;}break;}}}global_registry[_0x4471c3(0x1d5)]=_0xd85d13['id'],_0x295df8=_0x4471c3(0x2a4)+_0x332774+'\x20using\x20\x27'+_0xd85d13['name']+_0x4471c3(0x1bf),logger[_0x4471c3(0x1f5)](_0x295df8);const _0x2ac17c={};_0x2ac17c['type']=WS_EVENTS[_0x4471c3(0x278)],_0x2ac17c['message']=_0x295df8,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x2ac17c),_0x400499=_0xd85d13['cloudProvider'],_0x48cd47=_0xd85d13[_0x4471c3(0x232)],_0x143f16=_0xd85d13[_0x4471c3(0x209)],_0x32356c=_0xd85d13['concurrency'],_0x43b362=_0xd85d13['instanceType'],_0xd7c56e=_0xd85d13[_0x4471c3(0x1ee)],_0xd0fb75=_0xd85d13['securityGroups'],_0x39877f=_0xd85d13[_0x4471c3(0x276)],_0xbdb8d3=_0xd85d13[_0x4471c3(0x1d1)],_0x50be1f=_0xd85d13[_0x4471c3(0x2d6)],_0xa366c=_0xd85d13[_0x4471c3(0x2d5)],_0x43bfc1=_0xdb5dc1['hubVersion'],_0x36f901=_0xdb5dc1[_0x4471c3(0x2dc)];if(_0xd7c56e&&_0x420874['vmPQI'](_0xd7c56e[_0x4471c3(0x2cf)],0x0)){if(_0x420874['QFjzf'](_0x420874['Dppbn'],_0x420874[_0x4471c3(0x1e4)]))_0xd7c56e=null;else{const _0x342d15=_0x420874[_0x4471c3(0x1d7)]['split']('|');let _0x5715e2=0x0;while(!![]){switch(_0x342d15[_0x5715e2++]){case'0':_0x506dca[_0x4471c3(0x1f5)](_0x4bf5fe);continue;case'1':const _0x325e47={};_0x325e47[_0x4471c3(0x2e2)]=_0x32ff31[_0x4471c3(0x278)],_0x325e47[_0x4471c3(0x251)]=_0xd75bb6,_0x3f61b5['sendEventToBackend'](_0x26f8f6,_0x325e47);continue;case'2':_0x599011[_0x4471c3(0x2dc)]=_0x1c179c[_0x4471c3(0x2dc)];continue;case'3':_0x393eb9[_0x4471c3(0x295)]=_0x33496b;continue;case'4':_0x3d4121[_0x4471c3(0x27f)]=_0x1734db;continue;case'5':_0x1b031c=_0x4471c3(0x2c2)+_0x21c44d+_0x4471c3(0x2db)+_0x15bf18+'\x27';continue;case'6':const _0x8261d0={};_0x8261d0[_0x4471c3(0x2e2)]=_0xdff011['CLI_RUN_STARTED'],_0x8261d0[_0x4471c3(0x251)]=_0x420874['TWJYh'],_0x4e0dd2[_0x4471c3(0x2d3)](_0x1d8137,_0x8261d0);continue;case'7':_0x15f408[_0x4471c3(0x232)]=_0x52faf4;continue;case'8':_0x5e3eba[_0x4471c3(0x2bf)]=_0x353ae0[_0x4471c3(0x2bf)];continue;}break;}}}_0x39877f&&_0x420874[_0x4471c3(0x227)](_0x39877f['length'],0x0)&&(_0x420874[_0x4471c3(0x2e0)](_0x420874['Aqxct'],_0x420874[_0x4471c3(0x216)])?_0x425ce0=null:_0x39877f=null),_0x420874['oBENg'](_0xd85d13[_0x4471c3(0x21f)],undefined)&&_0xd85d13[_0x4471c3(0x21f)]&&(_0x420874['yaRoL'](_0x420874['ekJSR'],_0x420874[_0x4471c3(0x2e4)])?(_0x3b6dab=_0x6af985[_0x4471c3(0x2f2)],_0x26605e=_0x420874[_0x4471c3(0x254)]):global_registry[_0x4471c3(0x27b)]=!![]),_0x420874[_0x4471c3(0x2c6)](updateGlobalRegistryWithConfig,_0x400499,_0x48cd47,_0x143f16,_0x32356c,_0x43b362,_0xbdb8d3,_0xd85d13,_0x43bfc1,_0x36f901,_0x50be1f,_0xa366c);}}else{if(_0x420874[_0x4471c3(0x2aa)](_0x26ea02,!![])){if(_0x420874['dkjWq'](_0x420874[_0x4471c3(0x2a0)],_0x420874[_0x4471c3(0x2a0)])){_0x295df8='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x332774,logger[_0x4471c3(0x1f5)](_0x295df8);const _0x1e13e1={};_0x1e13e1[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x1e13e1['message']=_0x295df8,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x1e13e1),_0x32356c=_0xd85d13[_0x4471c3(0x2eb)],_0x43b362=_0xd85d13[_0x4471c3(0x250)],_0xd7c56e=null,_0xd0fb75=null,_0x39877f=null,_0xbdb8d3=_0xd85d13[_0x4471c3(0x1d1)],_0x50be1f=_0xd85d13[_0x4471c3(0x2d6)],_0xa366c=_0xd85d13[_0x4471c3(0x2d5)],_0x43bfc1=_0xdb5dc1['hubVersion'],_0x36f901=_0xdb5dc1[_0x4471c3(0x2dc)],_0x420874[_0x4471c3(0x201)](_0xd85d13[_0x4471c3(0x21f)],undefined)&&_0xd85d13[_0x4471c3(0x21f)]&&(_0x420874[_0x4471c3(0x1f2)](_0x420874[_0x4471c3(0x24e)],_0x420874[_0x4471c3(0x1e3)])?global_registry['isPrivateGrid']=!![]:_0x354c43[_0x4471c3(0x245)]=_0x527e44[_0x4471c3(0x245)]),_0x420874[_0x4471c3(0x2c6)](updateGlobalRegistryWithConfig,_0x400499,_0x48cd47,_0x143f16,_0x32356c,_0x43b362,_0xbdb8d3,_0xd85d13,_0x43bfc1,_0x36f901,_0x50be1f,_0xa366c);}else _0x1e8a5c=null;}else{if(_0x420874[_0x4471c3(0x2e0)](_0x420874[_0x4471c3(0x2b7)],_0x420874[_0x4471c3(0x2b7)]))_0x6d5012=!![];else{const _0x1bb38b=_0x420874[_0x4471c3(0x264)][_0x4471c3(0x270)]('|');let _0x1a5240=0x0;while(!![]){switch(_0x1bb38b[_0x1a5240++]){case'0':global_registry[_0x4471c3(0x2dc)]=_0xdb5dc1[_0x4471c3(0x2dc)];continue;case'1':global_registry['cloudProvider']=_0x400499;continue;case'2':global_registry[_0x4471c3(0x27f)]=_0x143f16;continue;case'3':global_registry[_0x4471c3(0x2bf)]=_0xdb5dc1[_0x4471c3(0x2bf)];continue;case'4':const _0x4cc08e={};_0x4cc08e[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x1da)],_0x4cc08e[_0x4471c3(0x251)]=_0x420874['TWJYh'],webSocketUtils['sendEventToBackend'](_0x1af1a8,_0x4cc08e);continue;case'5':_0x295df8=_0x4471c3(0x2c2)+_0x332774+_0x4471c3(0x2db)+_0x48cd47+'\x27';continue;case'6':logger['info'](_0x295df8);continue;case'7':global_registry[_0x4471c3(0x232)]=_0x48cd47;continue;case'8':const _0x4f8213={};_0x4f8213[_0x4471c3(0x2e2)]=WS_EVENTS['LOG'],_0x4f8213[_0x4471c3(0x251)]=_0x295df8,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x4f8213);continue;}break;}}}}const _0x148ad5=await _0x420874[_0x4471c3(0x230)](getCloudProviderObject,_0x400499,_0x48cd47,_0x332774,_0x1af1a8,webSocketUtils,_0x181033);_0x420874[_0x4471c3(0x25f)](_0x400499,AZURE)&&_0x148ad5[_0x4471c3(0x262)]();let _0x4b8a2f;if(_0x420874[_0x4471c3(0x1cb)](_0x28bebf,![])){_0x295df8=_0x4471c3(0x2f7)+_0x143f16+').';const _0x2ddda5={};_0x2ddda5[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x2ddda5[_0x4471c3(0x251)]=_0x295df8,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x2ddda5),logger[_0x4471c3(0x1f5)](_0x295df8);const _0x5f0534=await _0x148ad5[_0x4471c3(0x214)]();if(_0x5f0534){const _0x174bd4={};_0x174bd4[_0x4471c3(0x2e2)]=WS_EVENTS['LOG'],_0x174bd4[_0x4471c3(0x251)]=_0x4471c3(0x22b)+_0x48cd47+_0x4471c3(0x2c8),webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x174bd4,_0x420874['egLYa']),logger[_0x4471c3(0x1f5)](_0x4471c3(0x22b)+_0x48cd47+_0x4471c3(0x2c8)),_0x28bebf=!![];if(_0x420874['dkjWq'](_0x26ea02,!![]))throw new Error(_0x4471c3(0x22b)+_0x48cd47+_0x4471c3(0x22e));}else{const _0x461e6e={};_0x461e6e[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x461e6e[_0x4471c3(0x251)]=_0x420874[_0x4471c3(0x2fd)],webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x461e6e),logger['info'](_0x420874[_0x4471c3(0x2fd)]);const _0x4deb11=_0x420874['UeIfy'](_0xd7c56e,null)&&_0x420874[_0x4471c3(0x25d)](_0xd7c56e,undefined),_0x523cc5=_0x420874['blobk'](_0x39877f,null)&&_0x420874['lZWby'](_0x39877f,undefined)&&_0x420874[_0x4471c3(0x294)](_0x39877f[_0x4471c3(0x2cf)],0x0);if(_0x4deb11){_0x420874[_0x4471c3(0x24c)](_0x523cc5,![])&&(_0x295df8=_0x420874[_0x4471c3(0x2c1)],await _0x420874['SeDWt'](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874['tSCCz'],_0x420874[_0x4471c3(0x1f6)]),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1));const _0x1aadaf=await _0x148ad5[_0x4471c3(0x1c3)](_0xd7c56e);_0x420874['dyeEx'](_0x1aadaf,![])?(_0x295df8=_0x420874[_0x4471c3(0x290)],await _0x420874['unaTP'](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874['epIOi'],_0x420874[_0x4471c3(0x1f6)]),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1)):logger[_0x4471c3(0x1f5)](_0x4471c3(0x1fd)+_0xd7c56e+'\x20');const _0x58b7e5=await _0x148ad5[_0x4471c3(0x200)](_0x39877f,_0xd7c56e);_0x420874[_0x4471c3(0x26b)](_0x58b7e5[0x0],![])?(_0x295df8=_0x4471c3(0x298)+JSON['stringify'](_0x58b7e5[0x1])+_0x4471c3(0x247)+_0xd7c56e+_0x4471c3(0x1f0),await _0x420874[_0x4471c3(0x243)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x2d2)],_0x420874['jQOcH']),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1)):logger['info'](_0x4471c3(0x22c)+JSON['stringify'](_0x39877f)+'\x20'),await _0x148ad5['setupNewCluster'](_0xd7c56e,_0x39877f);}else{const _0x1a3d56=_0x420874['VySHF'][_0x4471c3(0x270)]('|');let _0x155c26=0x0;while(!![]){switch(_0x1a3d56[_0x155c26++]){case'0':const _0x8bb59b={};_0x8bb59b[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x8bb59b[_0x4471c3(0x251)]=_0x420874['zrtXw'],webSocketUtils['sendEventToBackend'](_0x1af1a8,_0x8bb59b);continue;case'1':logger[_0x4471c3(0x1f5)](_0x420874['UsDjg']);continue;case'2':logger['info'](_0x420874[_0x4471c3(0x213)]);continue;case'3':await _0x148ad5[_0x4471c3(0x24f)](_0xd7c56e,_0x39877f);continue;case'4':const _0x394c2b={};_0x394c2b['type']=WS_EVENTS[_0x4471c3(0x278)],_0x394c2b[_0x4471c3(0x251)]=_0x420874[_0x4471c3(0x259)],webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x394c2b);continue;}break;}}}}_0x28bebf&&_0x420874[_0x4471c3(0x28d)](_0x400499,AZURE)&&(await _0x148ad5['updateClusterAlreadyPresent'](),await _0x148ad5['createOtherResources']());const [_0x5d781f,_0x3364e3,_0x51d493,_0x2d69a7,_0x46368c,_0x3181c2]=await _0x420874[_0x4471c3(0x1cc)](createK8sClient,_0x148ad5,_0x181033['skipTlsCertVerify']);_0x420874['WLKxR'](_0x28bebf,![])&&_0x420874[_0x4471c3(0x2ea)](_0x400499,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x4b8a2f=await _0x148ad5[_0x4471c3(0x29e)](_0x5d781f,_0x181033));try{_0x7383ca=_0x420874[_0x4471c3(0x27c)](kebabCase,_0x332774),logger['info'](_0x420874[_0x4471c3(0x1e9)]);const _0x1b8c2c={};_0x1b8c2c[_0x4471c3(0x2e2)]=WS_EVENTS['LOG'],_0x1b8c2c[_0x4471c3(0x251)]=_0x420874['REjEd'],webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x1b8c2c);if(_0x420874[_0x4471c3(0x2d0)](_0x7383ca,_0x420874[_0x4471c3(0x2f4)])){const _0x43ca46={};_0x43ca46[_0x4471c3(0x2b0)]=_0x420874[_0x4471c3(0x1bd)],_0x43ca46[_0x4471c3(0x1c6)]=_0x420874['vuprP'];const _0x2a19b8={};_0x2a19b8[_0x4471c3(0x2af)]=_0x7383ca,_0x2a19b8[_0x4471c3(0x2f3)]=_0x43ca46;const _0x3d0495={};_0x3d0495['metadata']=_0x2a19b8;const _0x287924=_0x3d0495,_0x20903e={};_0x20903e[_0x4471c3(0x287)]=_0x287924,await _0x5d781f[_0x4471c3(0x2d7)](_0x20903e),logger['info'](_0x420874['SNMCY']);}const _0x37b7cd={};_0x37b7cd['type']=WS_EVENTS[_0x4471c3(0x278)],_0x37b7cd[_0x4471c3(0x251)]=_0x420874[_0x4471c3(0x1ce)],webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x37b7cd);const _0x228595={};_0x228595[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x228595[_0x4471c3(0x251)]=_0x420874[_0x4471c3(0x2d4)],webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x228595),logger[_0x4471c3(0x1f5)](_0x420874[_0x4471c3(0x222)]);let _0x3ae948={};_0x420874[_0x4471c3(0x1c8)](_0x400499,AZURE)&&(_0x3ae948={'clientId':await _0x148ad5[_0x4471c3(0x249)](_0x4471c3(0x1ea)+_0x48cd47)});await _0x420874['vGWBA'](addGridComponents,_0x5d781f,_0x3364e3,_0x51d493,_0x2d69a7,_0x7383ca,_0x48cd47,_0x4b8a2f,_0x46368c,_0x3181c2,_0x3ae948),_0x295df8=_0x420874[_0x4471c3(0x2c9)],logger['info'](_0x295df8);const _0x32def8={};_0x32def8[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x32def8[_0x4471c3(0x251)]=_0x295df8,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x32def8),_0x295df8=_0x420874[_0x4471c3(0x1d8)],logger[_0x4471c3(0x1f5)](_0x295df8);const _0x186b38={};_0x186b38[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x186b38[_0x4471c3(0x251)]=_0x295df8,webSocketUtils['sendEventToBackend'](_0x1af1a8,_0x186b38),await _0x420874[_0x4471c3(0x2a2)](waitForDeployment,_0x3364e3,_0x7383ca,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x3d5680=await _0x420874[_0x4471c3(0x1cc)](getNamespaceUID,_0x5d781f,_0x7383ca),_0x1c3c98=global_registry[_0x4471c3(0x27b)]?_0x420874[_0x4471c3(0x288)]:_0x420874[_0x4471c3(0x240)],_0x578cfe={};_0x578cfe[_0x4471c3(0x2af)]=_0x1c3c98,_0x578cfe[_0x4471c3(0x2b9)]=_0x420874[_0x4471c3(0x215)];const _0x5ca042=await _0x5d781f[_0x4471c3(0x299)](_0x578cfe);let _0x1e4c79=_0x148ad5[_0x4471c3(0x22d)](_0x5ca042)+'/'+_0x7383ca,_0xb99a53=_0x420874['ZyUsM'];try{const _0x13072c=_0x4471c3(0x28b)+AG_API_URL+_0x4471c3(0x237)+_0x3d5680,_0x223d07=await _0x420874[_0x4471c3(0x1cc)](got,_0x13072c,_0x32ac32);(_0x420874[_0x4471c3(0x1e8)](_0x223d07,null)||_0x420874['sDTYe'](_0x223d07,undefined))&&(_0x295df8=_0x420874[_0x4471c3(0x208)],await _0x420874['CRhAJ'](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x2cd)],_0x420874[_0x4471c3(0x2f9)],_0x420874['jQOcH']),logger[_0x4471c3(0x29a)](_0x295df8),process['exit'](0x1));_0x420874[_0x4471c3(0x207)](_0x223d07[_0x4471c3(0x1f4)],0x191)&&(_0x295df8=_0x420874[_0x4471c3(0x229)],await _0x420874[_0x4471c3(0x24a)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes[_0x4471c3(0x255)],_0x420874['EMUEl'],_0x420874[_0x4471c3(0x286)],_0x420874[_0x4471c3(0x1f6)]),logger[_0x4471c3(0x29a)](_0x295df8),process['exit'](0x1));_0x420874['AZyFE'](_0x223d07['statusCode'],0xc8)&&(_0x295df8='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4471c3(0x210)](_0x223d07),await _0x420874[_0x4471c3(0x2b2)](reportToGalactusAndSendToEDS,_0x181033,_0x1af1a8,_0x295df8,messageTypes['ERROR'],_0x420874['EMUEl'],_0x420874['IUwvl'],_0x420874[_0x4471c3(0x1f6)]),logger[_0x4471c3(0x29a)](_0x295df8),process[_0x4471c3(0x269)](0x1));const _0x1a17d2=JSON[_0x4471c3(0x1c7)](_0x223d07[_0x4471c3(0x287)]);_0x1a17d2[_0x4471c3(0x2f2)]&&(_0x1e4c79=_0x1a17d2[_0x4471c3(0x2f2)],_0xb99a53=_0x420874[_0x4471c3(0x254)]),global_registry[_0x4471c3(0x27b)]&&(_0xb99a53=_0x420874[_0x4471c3(0x23f)]);}catch(_0x282690){}_0x295df8='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x1e4c79+'\x20',logger['info'](_0x295df8);const _0x3af306={};_0x3af306['type']=WS_EVENTS[_0x4471c3(0x278)],_0x3af306['message']=_0x295df8,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x3af306),_0x295df8=_0x4471c3(0x246)+_0xb99a53+'://'+_0x1e4c79+_0x4471c3(0x300),logger[_0x4471c3(0x1f5)](_0x295df8);const _0x964df0={};_0x964df0[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x278)],_0x964df0['message']=_0x295df8,webSocketUtils['sendEventToBackend'](_0x1af1a8,_0x964df0);const _0x5485a9={};_0x5485a9[_0x4471c3(0x2e2)]=WS_EVENTS[_0x4471c3(0x23c)],_0x5485a9[_0x4471c3(0x251)]='CLI\x20run\x20finished:\x20'+_0x1e4c79,webSocketUtils['sendEventToBackend'](_0x1af1a8,_0x5485a9),await webSocketUtils[_0x4471c3(0x2a3)](0x7d0);}catch(_0x3631b1){logger[_0x4471c3(0x29a)](_0x4471c3(0x1f9)+_0x3631b1+'\x20\x0a'+JSON[_0x4471c3(0x210)](_0x3631b1[_0x4471c3(0x1f1)]));if(_0x420874[_0x4471c3(0x20c)](_0x28bebf,![]))try{logger['info'](_0x420874[_0x4471c3(0x282)]),await _0x420874['iSIiV'](removeGridComponents,_0x5d781f,_0x3364e3,_0x51d493,_0x2d69a7,_0x7383ca),await _0x148ad5[_0x4471c3(0x2e1)](_0x5d781f,global_registry[_0x4471c3(0x27f)]);}catch(_0xe41507){logger[_0x4471c3(0x29a)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0xe41507+'\x20\x0a'+JSON['stringify'](_0xe41507[_0x4471c3(0x1f1)]));}throw _0x3631b1;}}catch(_0x189fda){const _0x5525dc=_0x4471c3(0x23e)+_0x189fda+'\x20\x0a'+JSON[_0x4471c3(0x210)](_0x189fda[_0x4471c3(0x1f1)]);if(_0x1af1a8){const _0x557c53={};_0x557c53['type']=WS_EVENTS[_0x4471c3(0x278)],_0x557c53[_0x4471c3(0x251)]=_0x5525dc,webSocketUtils[_0x4471c3(0x2d3)](_0x1af1a8,_0x557c53,_0x420874['jQOcH'],!![]);}await webSocketUtils[_0x4471c3(0x2a3)](0x7d0);const _0x3e87a5={};_0x3e87a5['error']=_0x5525dc,await _0x420874[_0x4471c3(0x230)](sendInstrumentationEvent,_0x181033,_0x420874[_0x4471c3(0x2cd)],messageTypes[_0x4471c3(0x255)],_0x420874[_0x4471c3(0x1ba)],_0x3e87a5,_0x181033),logger[_0x4471c3(0x29a)](_0x5525dc);}process[_0x4471c3(0x269)](0x0);};
@@ -1 +1 @@
1
- function a10_0xe8a1(_0x5d2def,_0x55a965){const _0xf3bb03=a10_0xf3bb();return a10_0xe8a1=function(_0xe8a131,_0x4afb60){_0xe8a131=_0xe8a131-0x89;let _0x5c0401=_0xf3bb03[_0xe8a131];return _0x5c0401;},a10_0xe8a1(_0x5d2def,_0x55a965);}const a10_0x16e539=a10_0xe8a1;(function(_0x11ef1c,_0x3f5b22){const _0x4e68f3=a10_0xe8a1,_0x3ede9c=_0x11ef1c();while(!![]){try{const _0x57e426=-parseInt(_0x4e68f3(0x9a))/0x1+parseInt(_0x4e68f3(0x9e))/0x2+-parseInt(_0x4e68f3(0x8a))/0x3+parseInt(_0x4e68f3(0x89))/0x4+parseInt(_0x4e68f3(0x98))/0x5*(-parseInt(_0x4e68f3(0x8d))/0x6)+parseInt(_0x4e68f3(0x90))/0x7+parseInt(_0x4e68f3(0x9c))/0x8*(-parseInt(_0x4e68f3(0x8b))/0x9);if(_0x57e426===_0x3f5b22)break;else _0x3ede9c['push'](_0x3ede9c['shift']());}catch(_0x3f9b1c){_0x3ede9c['push'](_0x3ede9c['shift']());}}}(a10_0xf3bb,0xed6ce));function a10_0xf3bb(){const _0x2fe704=['3630908llFjCf','KBqAr','3667960zwYPou','177639EgyLgz','45uOYXzb','help','132534GqrHdg','builder','recommendCommands','5473559JHxdpW','commandDir','delete_commands','handler','PRTMV','desc','../config/constants','epilogue','20jvlHta','demandCommand','418103fZsOUO','List\x20Grid\x20resources.','3161944RTCtFz','delete'];a10_0xf3bb=function(){return _0x2fe704;};return a10_0xf3bb();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x16e539(0x96));exports['command']=a10_0x16e539(0x9d),exports[a10_0x16e539(0x95)]=a10_0x16e539(0x9b),exports[a10_0x16e539(0x8e)]=function(_0x40e43f){const _0x417713=a10_0x16e539,_0x3c06c3={};_0x3c06c3[_0x417713(0x94)]=_0x417713(0x92),_0x3c06c3[_0x417713(0x9f)]=_0x417713(0x8c);const _0x1ac0d7=_0x3c06c3;return _0x40e43f['usage'](HELP_HEADER_MESSAGE[_0x417713(0x9d)])[_0x417713(0x97)](HELP_FOOTER_MESSAGE)[_0x417713(0x91)](_0x1ac0d7[_0x417713(0x94)])[_0x417713(0x99)]()[_0x417713(0x8f)]()['strict']()[_0x417713(0x8c)](_0x1ac0d7[_0x417713(0x9f)]);},exports[a10_0x16e539(0x93)]=function(_0x40f180){};
1
+ function a10_0x498b(){const _0x1455cc=['10lfULer','CCKcs','84JkITiK','2956611qZlecf','282spyYfR','epilogue','5907090ebDawE','handler','60985fEyKem','6690344MEsmTX','demandCommand','List\x20Grid\x20resources.','desc','42344mSJroB','53986xvaAAq','5975550SdQaPx','strict','AAPdz','delete_commands','delete','builder','commandDir'];a10_0x498b=function(){return _0x1455cc;};return a10_0x498b();}const a10_0x4983a3=a10_0x541a;function a10_0x541a(_0x54fa55,_0x428cd0){const _0x498b86=a10_0x498b();return a10_0x541a=function(_0x541a3c,_0x3ba500){_0x541a3c=_0x541a3c-0xd4;let _0x386f59=_0x498b86[_0x541a3c];return _0x386f59;},a10_0x541a(_0x54fa55,_0x428cd0);}(function(_0x9f30e0,_0x23f698){const _0x293113=a10_0x541a,_0x41de0e=_0x9f30e0();while(!![]){try{const _0x1d56b8=-parseInt(_0x293113(0xd8))/0x1*(-parseInt(_0x293113(0xe0))/0x2)+parseInt(_0x293113(0xe2))/0x3*(-parseInt(_0x293113(0xd7))/0x4)+-parseInt(_0x293113(0xe8))/0x5*(-parseInt(_0x293113(0xe4))/0x6)+-parseInt(_0x293113(0xe3))/0x7+-parseInt(_0x293113(0xe9))/0x8+parseInt(_0x293113(0xd9))/0x9+parseInt(_0x293113(0xe6))/0xa;if(_0x1d56b8===_0x23f698)break;else _0x41de0e['push'](_0x41de0e['shift']());}catch(_0x3e5e5a){_0x41de0e['push'](_0x41de0e['shift']());}}}(a10_0x498b,0x84836));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a10_0x4983a3(0xdd),exports[a10_0x4983a3(0xd6)]=a10_0x4983a3(0xd5),exports[a10_0x4983a3(0xde)]=function(_0x515869){const _0x9d1fd9=a10_0x4983a3,_0x503ad4={};_0x503ad4[_0x9d1fd9(0xe1)]=_0x9d1fd9(0xdc),_0x503ad4[_0x9d1fd9(0xdb)]='help';const _0x36bdba=_0x503ad4;return _0x515869['usage'](HELP_HEADER_MESSAGE[_0x9d1fd9(0xdd)])[_0x9d1fd9(0xe5)](HELP_FOOTER_MESSAGE)[_0x9d1fd9(0xdf)](_0x36bdba[_0x9d1fd9(0xe1)])[_0x9d1fd9(0xd4)]()['recommendCommands']()[_0x9d1fd9(0xda)]()['help'](_0x36bdba[_0x9d1fd9(0xdb)]);},exports[a10_0x4983a3(0xe7)]=function(_0x55f33f){};
@@ -1 +1 @@
1
- const a11_0x2b7aa5=a11_0x29db;(function(_0x36b52a,_0x110ed4){const _0x181805=a11_0x29db,_0x269798=_0x36b52a();while(!![]){try{const _0x5c7300=-parseInt(_0x181805(0xf2))/0x1*(-parseInt(_0x181805(0xf7))/0x2)+-parseInt(_0x181805(0xdc))/0x3*(parseInt(_0x181805(0xe3))/0x4)+parseInt(_0x181805(0x131))/0x5+parseInt(_0x181805(0x100))/0x6+parseInt(_0x181805(0xae))/0x7+-parseInt(_0x181805(0x11e))/0x8+-parseInt(_0x181805(0xac))/0x9;if(_0x5c7300===_0x110ed4)break;else _0x269798['push'](_0x269798['shift']());}catch(_0x48a25d){_0x269798['push'](_0x269798['shift']());}}}(a11_0x11fa,0x812e4));function a11_0x29db(_0x275a56,_0x3be780){const _0x11fa22=a11_0x11fa();return a11_0x29db=function(_0x29dba5,_0x30613a){_0x29dba5=_0x29dba5-0xaa;let _0xc87061=_0x11fa22[_0x29dba5];return _0xc87061;},a11_0x29db(_0x275a56,_0x3be780);}const fs=require('fs'),got=require(a11_0x2b7aa5(0xbb)),{v4:uuidv4}=require(a11_0x2b7aa5(0x120)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x2b7aa5(0xc1)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2b7aa5(0xb4)),{logger}=require(a11_0x2b7aa5(0x12b)),{getCloudProviderObject}=require(a11_0x2b7aa5(0x104)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2b7aa5(0x130)),{sendInstrumentationEvent}=require(a11_0x2b7aa5(0x127)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2b7aa5(0xaa)),webSocketUtils=require(a11_0x2b7aa5(0x149));function a11_0x11fa(){const _0x529788=['onlyGridInCluster','unauthorised','2774256bUDBfc','Browserstack','name','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../../cloudproviders/utils','<PasswordPlaceholder>','EMITC','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Yzspl','xPHBR','yBxrD','DaAmG','info','Namespace:\x20','<UsernamePlaceholder>','JCJNY','ruNQv','body','VNmsG','hYQDq','buWDs','default','bEvEc','Pass\x20the\x20ID\x20of\x20the\x20Grid','Successfully\x20deleted\x20the\x20grid','MsupJ','eAXeL','username','clusterId','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','736368fKBNCV','YpslM','uuid','xwkxz','desc','dvEIa','boolean','INFO','grid','../../utils/instrumentationUtils','vHzyY','DELETE','ygnTC','../../config/logger','argv','RXvmI','imwhz','qzAei','../../utils/gridComponents','32925YgCQSG','unknown-error','XpWIj','JMSyJ','replace','toLowerCase','type','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','dnPiS','\x22\x20and\x20ID\x20','GJAid','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','mAzkk','ZlTpR','statusCode','lxLfG','mTIsm','GqUCS','usage','clusterRegion','NkXWo','XejJy','UAlKk','../../utils/webSocketUtils','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','HnQmc','init-not-called','../../utils/utilityMethods','nKmON','4125528QhXGpC','then','3606309jIagwq','options','exit','stack','xTJrr','existsSync','../../config/constants','Ylupe','sCsTG','uHzLM','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','xcyqu','Delete\x20an\x20Automation\x20grid.','got','invalid-input','epilogue','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','string','skip-tls-cert-verify','reconnecting-websocket','gcLYS','ZLfIr','Failed\x20to\x20delete\x20resources!\x20Error:\x20','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','gtcaN','zifCm','error','/packages/cli/grid/','jJcKv','MmTqQ','gVpBE','Skip\x20insecure\x20cert\x20verification.','delete','bfPvs','HDIpI','requestId','password','uRlCk','isBrowserstackCluster','region','wevdS','dNxrd','parse','mMHGk','WebSocket','\x22\x20with\x20ID\x20','3KHHNDh','message','builder','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','dfyIV','AwngJ','OXRJN','312780hlboyW','Cluster:\x20','SBvcm','gutFv','skipTlsCertVerify','cloudProvider','delete-grid-called','readNamespace','deleteCluster','readFileSync','KyAiB','wVsvX','invalid-grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridId','1367bLzJra','description','catch','FYygp','server-error','254FHSUzA','warn','fDXRr','nSBvu','OxyRo','xsOIu','rVEIg'];a11_0x11fa=function(){return _0x529788;};return a11_0x11fa();}exports['command']=a11_0x2b7aa5(0x126),exports[a11_0x2b7aa5(0x122)]=a11_0x2b7aa5(0xba),exports[a11_0x2b7aa5(0xde)]=function(_0x220d2b){const _0x488859=a11_0x2b7aa5,_0xc2c0ab={};_0xc2c0ab[_0x488859(0x12e)]=_0x488859(0x117),_0xc2c0ab[_0x488859(0x106)]=_0x488859(0xbf),_0xc2c0ab[_0x488859(0xd3)]=_0x488859(0xcd),_0xc2c0ab[_0x488859(0x11f)]='boolean',_0xc2c0ab[_0x488859(0xfc)]='help';const _0x4faf7a=_0xc2c0ab,_0x559407={};_0x559407[_0x488859(0xf3)]=_0x4faf7a[_0x488859(0x12e)],_0x559407[_0x488859(0x137)]=_0x4faf7a[_0x488859(0x106)];const _0x45c3f6={};_0x45c3f6[_0x488859(0xf3)]=_0x4faf7a[_0x488859(0xd3)],_0x45c3f6[_0x488859(0x137)]=_0x4faf7a[_0x488859(0x11f)],_0x45c3f6[_0x488859(0x115)]=![];const _0x2d07cc={};return _0x2d07cc['grid-id']=_0x559407,_0x2d07cc[_0x488859(0xc0)]=_0x45c3f6,_0x220d2b[_0x488859(0x144)](HELP_HEADER_MESSAGE[_0x488859(0xce)])[_0x488859(0xbd)](HELP_FOOTER_MESSAGE)[_0x488859(0xaf)](_0x2d07cc)['help'](_0x4faf7a[_0x488859(0xfc)])[_0x488859(0x12c)];},exports['handler']=async function(_0x1fad0d){const _0x5afebe=a11_0x2b7aa5,_0x465cd2={'mMHGk':_0x5afebe(0x118),'XejJy':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','OXRJN':function(_0x3686bd,_0x5e8e7d){return _0x3686bd!==_0x5e8e7d;},'HXDCr':_0x5afebe(0x10f),'zifCm':_0x5afebe(0x12a),'dfyIV':function(_0x24f7a0,_0x10f886){return _0x24f7a0===_0x10f886;},'PuTIW':_0x5afebe(0xab),'qzAei':_0x5afebe(0x112),'OxyRo':'Pass\x20the\x20ID\x20of\x20the\x20Grid','buWDs':_0x5afebe(0xbf),'xcyqu':_0x5afebe(0xcd),'TOOFc':_0x5afebe(0x124),'HEAWt':'help','wevdS':_0x5afebe(0x14a),'AwngJ':function(_0x5770fa){return _0x5770fa();},'NGLMZ':function(_0x557284){return _0x557284();},'DaAmG':_0x5afebe(0xfd),'wEtjt':'EPbhu','bEvEc':_0x5afebe(0x138),'RXvmI':function(_0x1816f6,_0x50e726,_0x500d3c,_0x46217c,_0x5743c0,_0x3e3649,_0x11f4f7){return _0x1816f6(_0x50e726,_0x500d3c,_0x46217c,_0x5743c0,_0x3e3649,_0x11f4f7);},'uHzLM':_0x5afebe(0xe9),'SBvcm':_0x5afebe(0x14c),'lxLfG':function(_0x25b7bf,_0x188199,_0x45b360,_0xffb01,_0x4375ab,_0x40ce90,_0x96fe03){return _0x25b7bf(_0x188199,_0x45b360,_0xffb01,_0x4375ab,_0x40ce90,_0x96fe03);},'xPHBR':function(_0x3c580b,_0x8f503b){return _0x3c580b===_0x8f503b;},'gutFv':_0x5afebe(0xcb),'sCsTG':function(_0x2af4ab,_0x32f1fb,_0x3c0e91,_0x46f44c){return _0x2af4ab(_0x32f1fb,_0x3c0e91,_0x46f44c);},'Yzspl':function(_0x2d6d75,_0x5e3037){return _0x2d6d75===_0x5e3037;},'kDAld':_0x5afebe(0x101),'XpWIj':_0x5afebe(0xed),'Ylupe':_0x5afebe(0xca),'vHzyY':function(_0x4bf103,_0x41bcb5){return _0x4bf103(_0x41bcb5);},'xTJrr':function(_0xecc0b2,_0x50abd5){return _0xecc0b2===_0x50abd5;},'dNxrd':function(_0x55adf5,_0x4b8979){return _0x55adf5===_0x4b8979;},'hYQDq':_0x5afebe(0x14b),'NkXWo':_0x5afebe(0x103),'mTIsm':_0x5afebe(0xbc),'nSBvu':function(_0x34c8a2,_0x278f18){return _0x34c8a2===_0x278f18;},'CfNix':_0x5afebe(0x110),'fDXRr':_0x5afebe(0x10e),'gVpBE':_0x5afebe(0x105),'mAzkk':function(_0x2a5c0b,_0x24e072,_0x84e016,_0x1204a5,_0x1aef04,_0xb9f4b9,_0x3ce1a5){return _0x2a5c0b(_0x24e072,_0x84e016,_0x1204a5,_0x1aef04,_0xb9f4b9,_0x3ce1a5);},'gcLYS':function(_0x35bfdc,_0x42c909,_0x9f54ed){return _0x35bfdc(_0x42c909,_0x9f54ed);},'wVsvX':function(_0x4a59c2,_0x3c4ecb,_0x35e845,_0x1de38f,_0x562287,_0x153113){return _0x4a59c2(_0x3c4ecb,_0x35e845,_0x1de38f,_0x562287,_0x153113);},'ZLfIr':function(_0x38e18f,_0x3f7bcb){return _0x38e18f===_0x3f7bcb;},'aNCQG':_0x5afebe(0x119),'dvEIa':_0x5afebe(0x13c),'FYygp':function(_0xdb9eb5,_0x1db520){return _0xdb9eb5===_0x1db520;},'bfPvs':_0x5afebe(0x148),'xwkxz':'Drcjt','yBxrD':_0x5afebe(0x129),'gtcaN':function(_0x138afd,_0x4400f2){return _0x138afd!==_0x4400f2;},'rpdrf':function(_0x26a145,_0x1a1fd3){return _0x26a145===_0x1a1fd3;},'JMSyJ':_0x5afebe(0xf6),'dnPiS':function(_0x14fd97,_0x92d2e5){return _0x14fd97===_0x92d2e5;},'ZlTpR':_0x5afebe(0xf0),'WVwtd':function(_0x1fccb7,_0x20c637,_0x16ec2f,_0x732485,_0x38f60e,_0x2a8627,_0x3fb5d9){return _0x1fccb7(_0x20c637,_0x16ec2f,_0x732485,_0x38f60e,_0x2a8627,_0x3fb5d9);},'HDIpI':_0x5afebe(0xff),'eAXeL':_0x5afebe(0xef),'GqUCS':function(_0x4b58b5,_0x272b5a,_0x542709,_0x34affe,_0x19882b,_0x382d07,_0x13f479){return _0x4b58b5(_0x272b5a,_0x542709,_0x34affe,_0x19882b,_0x382d07,_0x13f479);},'SqNUq':_0x5afebe(0x132)};try{global_registry[_0x5afebe(0xd1)]=_0x465cd2[_0x5afebe(0xe1)](uuidv4);!fs[_0x5afebe(0xb3)](_0x465cd2['NGLMZ'](getCredentialsPath))&&(_0x465cd2[_0x5afebe(0xe0)](_0x465cd2[_0x5afebe(0x10b)],_0x465cd2['wEtjt'])?(_0x5b729d[_0x5afebe(0x10c)](_0x465cd2[_0x5afebe(0xd9)]),_0x239cd4[_0x5afebe(0xb0)](0x0)):(console[_0x5afebe(0xc8)](_0x465cd2[_0x5afebe(0x116)]),await _0x465cd2[_0x5afebe(0x12d)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2[_0x5afebe(0xb7)],messageTypes[_0x5afebe(0x139)],_0x465cd2[_0x5afebe(0xe5)],null,_0x1fad0d),process[_0x5afebe(0xb0)](0x1)));_0x465cd2[_0x5afebe(0x141)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2[_0x5afebe(0xb7)],messageTypes[_0x5afebe(0x125)],null,null,_0x1fad0d);!_0x1fad0d[_0x5afebe(0xf1)]&&(_0x465cd2[_0x5afebe(0x109)](_0x465cd2[_0x5afebe(0xe6)],_0x465cd2['gutFv'])?(console['error'](_0x465cd2[_0x5afebe(0xd6)]),process['exit'](0x1)):_0x3f8c48['warn'](_0x465cd2[_0x5afebe(0x147)]));const _0x1eb41c=JSON[_0x5afebe(0xd8)](fs[_0x5afebe(0xec)](_0x465cd2['NGLMZ'](getCredentialsPath))),[_0x196365,_0x586ebf]=await _0x465cd2[_0x5afebe(0xb6)](getGridDetails,_0x1eb41c[_0x5afebe(0x101)]['username'],_0x1eb41c[_0x5afebe(0x101)]['password'],_0x1fad0d[_0x5afebe(0xf1)]);if(_0x586ebf){const _0x2e6937=_0x586ebf[_0x5afebe(0x10c)];let _0x377b30='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2e6937[_0x5afebe(0x102)]+_0x5afebe(0x13b)+_0x2e6937['id']+_0x5afebe(0x13d);_0x586ebf[_0x5afebe(0xfe)]&&_0x465cd2[_0x5afebe(0x108)](_0x586ebf['clusterSpawnedVia'],_0x465cd2['kDAld'])&&(_0x465cd2[_0x5afebe(0xe0)](_0x465cd2[_0x5afebe(0x133)],_0x465cd2[_0x5afebe(0xb5)])?(_0x11e31b['warn'](_0x5afebe(0x10d)+_0x423e0b+_0x5afebe(0xc5)),_0x8ca77a=![]):_0x377b30=_0x5afebe(0xbe)+_0x2e6937[_0x5afebe(0x102)]+_0x5afebe(0x13b)+_0x2e6937['id']+_0x5afebe(0xb8)+_0x2e6937['clusterName']+_0x5afebe(0xdb)+_0x2e6937[_0x5afebe(0x11c)]+_0x5afebe(0x13d));const _0x2be5a8=await _0x465cd2['vHzyY'](inputConfirmation,_0x377b30);(_0x465cd2[_0x5afebe(0x108)](_0x2be5a8,undefined)||_0x465cd2[_0x5afebe(0x109)](_0x2be5a8,null)||!(_0x465cd2[_0x5afebe(0xb2)](_0x2be5a8[_0x5afebe(0x136)](),'y')||_0x465cd2[_0x5afebe(0xd7)](_0x2be5a8[_0x5afebe(0x136)](),'n')))&&(_0x465cd2[_0x5afebe(0xe2)](_0x465cd2[_0x5afebe(0x113)],_0x465cd2['hYQDq'])?_0x1ca8dc[_0x5afebe(0xf8)](_0x5afebe(0xe4)+_0x413628['clusterName']+_0x5afebe(0xdf)):(console[_0x5afebe(0xc8)](_0x465cd2[_0x5afebe(0x146)]),await _0x465cd2[_0x5afebe(0x12d)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2['uHzLM'],messageTypes[_0x5afebe(0x139)],_0x465cd2[_0x5afebe(0x142)],null,_0x1fad0d),process['exit'](0x1)));_0x465cd2[_0x5afebe(0xfa)](_0x2be5a8[_0x5afebe(0x136)](),'n')&&(_0x465cd2[_0x5afebe(0x109)](_0x465cd2['CfNix'],_0x465cd2['CfNix'])?process[_0x5afebe(0xb0)](0x0):_0x45c29e[_0x5afebe(0xb0)](0x0));const _0x135dc7=WS_ENDPOINT[_0x5afebe(0x135)](_0x465cd2[_0x5afebe(0xf9)],_0x1eb41c['Browserstack']['username'])['replace'](_0x465cd2[_0x5afebe(0xcc)],_0x1eb41c[_0x5afebe(0x101)][_0x5afebe(0xd2)]),_0x1fcef9={};_0x1fcef9[_0x5afebe(0xda)]=ws,_0x1fcef9['connectionTimeout']=0x36ee80;const _0xdb5c73=new ReconnectingWebSocket(_0x135dc7,[],_0x1fcef9);global_registry[_0x5afebe(0x145)]=_0x2e6937[_0x5afebe(0xd5)];const _0x8da59d=_0x2e6937[_0x5afebe(0xe8)],_0x175074=await _0x465cd2[_0x5afebe(0x13e)](getCloudProviderObject,_0x8da59d,_0x2e6937['clusterName'],_0x2e6937[_0x5afebe(0x102)],_0xdb5c73,webSocketUtils,_0x1fad0d),_0x140ba9=await _0x175074['isClusterPresent']();if(_0x140ba9){const _0x16acec=_0x465cd2[_0x5afebe(0x128)](kebabCase,_0x2e6937[_0x5afebe(0x102)]),[_0x4b0610,_0x48814e,_0x3f3a5b,_0x393e3f,_0x40230f,_0x3b838c]=await _0x465cd2[_0x5afebe(0xc2)](createK8sClient,_0x175074,_0x1fad0d[_0x5afebe(0xe7)]);let _0x342301=!![];const _0xe0cade={};_0xe0cade['name']=_0x16acec,await _0x4b0610[_0x5afebe(0xea)](_0xe0cade)[_0x5afebe(0xad)](_0x34afc8=>{const _0x54fae7=_0x5afebe;_0x465cd2['OXRJN'](_0x465cd2['HXDCr'],_0x465cd2[_0x54fae7(0xc7)])?logger[_0x54fae7(0x10c)](_0x54fae7(0x10d)+_0x16acec+_0x54fae7(0x11d)):_0x1e03d7[_0x54fae7(0x10c)](_0x54fae7(0x10d)+_0x574949+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x5afebe(0xf4)](_0x2159d7=>{const _0x595ad2=_0x5afebe;_0x465cd2[_0x595ad2(0xe0)](_0x465cd2['PuTIW'],_0x465cd2[_0x595ad2(0x12f)])?_0x41f019='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4758ab[_0x595ad2(0x102)]+'\x22\x20and\x20ID\x20'+_0x3dc8cd['id']+_0x595ad2(0xb8)+_0x16da90['clusterName']+_0x595ad2(0xdb)+_0x1d56cb['clusterId']+_0x595ad2(0x13d):(logger[_0x595ad2(0xf8)](_0x595ad2(0x10d)+_0x16acec+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x342301=![]);});if(_0x342301){await _0x465cd2[_0x5afebe(0xee)](removeGridComponents,_0x4b0610,_0x48814e,_0x3f3a5b,_0x393e3f,_0x16acec);if(_0x586ebf[_0x5afebe(0xfe)]){const _0x7f7623=await _0x175074[_0x5afebe(0xd4)]();if(_0x7f7623){if(_0x465cd2[_0x5afebe(0xc3)](_0x465cd2['aNCQG'],_0x465cd2[_0x5afebe(0x123)])){const _0x2ebbe7={};_0x2ebbe7[_0x5afebe(0xf3)]=_0x465cd2[_0x5afebe(0xfb)],_0x2ebbe7[_0x5afebe(0x137)]=_0x465cd2[_0x5afebe(0x114)];const _0x5e1474={};_0x5e1474[_0x5afebe(0xf3)]=_0x465cd2[_0x5afebe(0xb9)],_0x5e1474[_0x5afebe(0x137)]=_0x465cd2['TOOFc'],_0x5e1474[_0x5afebe(0x115)]=![];const _0x1a0659={};return _0x1a0659['grid-id']=_0x2ebbe7,_0x1a0659[_0x5afebe(0xc0)]=_0x5e1474,_0x57d6de[_0x5afebe(0x144)](_0x474f9d[_0x5afebe(0xce)])[_0x5afebe(0xbd)](_0x29903c)[_0x5afebe(0xaf)](_0x1a0659)['help'](_0x465cd2['HEAWt'])['argv'];}else await _0x175074[_0x5afebe(0xeb)](_0x4b0610,_0x2e6937[_0x5afebe(0xd5)]);}else _0x465cd2[_0x5afebe(0xf5)](_0x465cd2[_0x5afebe(0xcf)],_0x465cd2[_0x5afebe(0x121)])?(_0x801020[_0x5afebe(0xc8)](_0x465cd2[_0x5afebe(0xd6)]),_0x223908[_0x5afebe(0xb0)](0x1)):logger['warn']('Cluster:\x20'+_0x2e6937['clusterName']+_0x5afebe(0xdf));}}}else logger[_0x5afebe(0xf8)](_0x465cd2['XejJy']);const _0x151888='https://'+AG_API_URL+_0x5afebe(0xc9)+_0x1fad0d[_0x5afebe(0xf1)],_0x406659={'method':_0x465cd2[_0x5afebe(0x10a)],'headers':_0x465cd2['gcLYS'](getAuthHeader,_0x1eb41c[_0x5afebe(0x101)][_0x5afebe(0x11b)],_0x1eb41c[_0x5afebe(0x101)][_0x5afebe(0xd2)]),'throwHttpErrors':![]},_0x416a22=await _0x465cd2[_0x5afebe(0xc2)](got,_0x151888,_0x406659);_0x465cd2['OXRJN'](_0x416a22,null)&&_0x465cd2[_0x5afebe(0xc6)](_0x416a22,undefined)&&_0x465cd2['rpdrf'](_0x416a22[_0x5afebe(0x140)],0xc8)&&(logger['info'](_0x465cd2[_0x5afebe(0xd9)]),process[_0x5afebe(0xb0)](0x0)),logger['error'](_0x5afebe(0x107)+_0x416a22[_0x5afebe(0x111)]),await _0x465cd2[_0x5afebe(0x12d)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2[_0x5afebe(0xb7)],messageTypes[_0x5afebe(0x139)],_0x465cd2['JMSyJ'],_0x196365,_0x1fad0d),process[_0x5afebe(0xb0)](0x1);}_0x465cd2[_0x5afebe(0x13a)](_0x196365[_0x5afebe(0x140)],0x191)&&(logger[_0x5afebe(0xc8)](_0x465cd2[_0x5afebe(0x13f)]),await _0x465cd2['WVwtd'](sendInstrumentationEvent,_0x1fad0d,_0x465cd2['uHzLM'],messageTypes[_0x5afebe(0x139)],_0x465cd2[_0x5afebe(0xd0)],null,_0x1fad0d),process[_0x5afebe(0xb0)](0x1)),_0x465cd2['dNxrd'](_0x196365[_0x5afebe(0x140)],0x190)&&(logger[_0x5afebe(0xc8)](JSON['parse'](_0x196365['body'])[_0x5afebe(0xdd)]),await _0x465cd2[_0x5afebe(0x13e)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2['uHzLM'],messageTypes[_0x5afebe(0x139)],_0x465cd2[_0x5afebe(0x11a)],null,_0x1fad0d),process[_0x5afebe(0xb0)](0x1)),logger[_0x5afebe(0xc8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x196365)),await _0x465cd2[_0x5afebe(0x141)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2[_0x5afebe(0xb7)],messageTypes[_0x5afebe(0x139)],_0x465cd2[_0x5afebe(0x134)],_0x196365,_0x1fad0d),process['exit'](0x1);}catch(_0x323595){logger[_0x5afebe(0xc8)](_0x5afebe(0xc4)+_0x323595[_0x5afebe(0xb1)]),await _0x465cd2[_0x5afebe(0x143)](sendInstrumentationEvent,_0x1fad0d,_0x465cd2[_0x5afebe(0xb7)],messageTypes[_0x5afebe(0x139)],_0x465cd2['SqNUq'],_0x323595,_0x1fad0d),process[_0x5afebe(0xb0)](0x1);}};
1
+ function a11_0x2e24(_0x43c558,_0x17d004){const _0x32ade1=a11_0x32ad();return a11_0x2e24=function(_0x2e245c,_0x29421b){_0x2e245c=_0x2e245c-0x135;let _0x40a3dd=_0x32ade1[_0x2e245c];return _0x40a3dd;},a11_0x2e24(_0x43c558,_0x17d004);}const a11_0x2da8f2=a11_0x2e24;(function(_0x5444fd,_0x361084){const _0x1e0916=a11_0x2e24,_0x61ec76=_0x5444fd();while(!![]){try{const _0x1944b4=-parseInt(_0x1e0916(0x19d))/0x1*(parseInt(_0x1e0916(0x1ac))/0x2)+parseInt(_0x1e0916(0x193))/0x3+-parseInt(_0x1e0916(0x18b))/0x4+-parseInt(_0x1e0916(0x177))/0x5+-parseInt(_0x1e0916(0x13d))/0x6+parseInt(_0x1e0916(0x1a2))/0x7*(parseInt(_0x1e0916(0x176))/0x8)+parseInt(_0x1e0916(0x17d))/0x9;if(_0x1944b4===_0x361084)break;else _0x61ec76['push'](_0x61ec76['shift']());}catch(_0x59c59e){_0x61ec76['push'](_0x61ec76['shift']());}}}(a11_0x32ad,0x35752));function a11_0x32ad(){const _0x5d4f97=['NkcOr','default','WqhJz','isClusterPresent','4yaRUdm','../../config/logger','desc','Successfully\x20deleted\x20the\x20grid','epduv','statusCode','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','oHvXY','OQfMe','exit','wchIt','Browserstack','usage','description','zxPwi','OlTYy','password','readFileSync','DELETE','tgzCD','existsSync','ZIubR','clusterName','FFMoM','ZrmLo','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x22\x20with\x20ID\x20','MLVpV','hdAFc','help','QgSKR','../../utils/createk8sClient','riTeM','../../utils/webSocketUtils','MatRW','2363838fNmlXs','XEVfa','oGKBf','boolean','MSzNL','options','delete','qFCdd','FMMoH','NlBcZ','funoO','error','Pass\x20the\x20ID\x20of\x20the\x20Grid','builder','tQCLc','azLGQ','uuid','region','tFdeE','BXQjY','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','clusterId','<PasswordPlaceholder>','Osbkd','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Gmnpr','fokDX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','tLGod','LPUtb','Namespace:\x20','replace','yILRr','vCprq','delete-grid-called','ERROR','OZeSX','xbLTa','string','name','lGQtE','onlyGridInCluster','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','connectionTimeout','gtaOf','toLowerCase','server-error','warn','IgtnG','bxUOZ','cloudProvider','../../utils/instrumentationUtils','INFO','clusterRegion','xwKvF','VallV','gzdvR','8iewnOR','115125AQFKBT','rGaWc','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','kVXOb','../../cloudproviders/utils','body','1762119myqibW','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','grid','../../config/constants','qiBDn','Failed\x20to\x20delete\x20resources!\x20Error:\x20','YKiNE','HuPaa','isBrowserstackCluster','uSwAh','\x22\x20and\x20ID\x20','/packages/cli/grid/','unknown-error','Skip\x20insecure\x20cert\x20verification.','115704xYPBMv','rWOYH','skipTlsCertVerify','unauthorised','sOjTI','ycghA','username','info','760296BaQtRw','readNamespace','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XkbbG','ALpJP','WebSocket','handler','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','PtuaQ','20620IjadsJ','grid-id','command','message','epilogue','1798321rzqxMQ','parse','skip-tls-cert-verify','zksOU','lRpNT','type'];a11_0x32ad=function(){return _0x5d4f97;};return a11_0x32ad();}const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x2da8f2(0x14d)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2da8f2(0x180)),{logger}=require(a11_0x2da8f2(0x1ad)),{getCloudProviderObject}=require(a11_0x2da8f2(0x17b)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x2da8f2(0x170)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x2da8f2(0x139)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x2da8f2(0x13b));exports[a11_0x2da8f2(0x19f)]=a11_0x2da8f2(0x17f),exports[a11_0x2da8f2(0x1ae)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x2da8f2(0x14a)]=function(_0x46fd99){const _0x4a663e=a11_0x2da8f2,_0x5aeed0={};_0x5aeed0[_0x4a663e(0x186)]=_0x4a663e(0x149),_0x5aeed0[_0x4a663e(0x184)]=_0x4a663e(0x163),_0x5aeed0[_0x4a663e(0x1c0)]=_0x4a663e(0x18a),_0x5aeed0[_0x4a663e(0x161)]=_0x4a663e(0x140),_0x5aeed0[_0x4a663e(0x156)]=_0x4a663e(0x137);const _0x3ff882=_0x5aeed0,_0x5e6db5={};_0x5e6db5['description']=_0x3ff882[_0x4a663e(0x186)],_0x5e6db5['type']=_0x3ff882[_0x4a663e(0x184)];const _0x447869={};_0x447869['description']=_0x3ff882[_0x4a663e(0x1c0)],_0x447869[_0x4a663e(0x1a7)]=_0x3ff882[_0x4a663e(0x161)],_0x447869[_0x4a663e(0x1a9)]=![];const _0x266b31={};return _0x266b31[_0x4a663e(0x19e)]=_0x5e6db5,_0x266b31[_0x4a663e(0x1a4)]=_0x447869,_0x46fd99[_0x4a663e(0x1b9)](HELP_HEADER_MESSAGE[_0x4a663e(0x143)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a663e(0x142)](_0x266b31)[_0x4a663e(0x137)](_0x3ff882[_0x4a663e(0x156)])['argv'];},exports[a11_0x2da8f2(0x19a)]=async function(_0x5e35c8){const _0x3b3416=a11_0x2da8f2,_0x51b44a={'PWxqp':_0x3b3416(0x149),'lGQtE':_0x3b3416(0x163),'qiBDn':_0x3b3416(0x18a),'Osbkd':_0x3b3416(0x140),'OQfMe':'help','FFMoM':_0x3b3416(0x19b),'ycghA':_0x3b3416(0x179),'MatRW':function(_0x3177d2,_0x30888d){return _0x3177d2!==_0x30888d;},'kVXOb':_0x3b3416(0x173),'riTeM':function(_0x5ff8c1,_0x7a3059){return _0x5ff8c1!==_0x7a3059;},'hcsbt':_0x3b3416(0x1b7),'xbLTa':_0x3b3416(0x14f),'vCprq':_0x3b3416(0x1af),'QgSKR':function(_0x2bff5a){return _0x2bff5a();},'PtuaQ':function(_0x37a20d){return _0x37a20d();},'lRpNT':'ugBVx','lbJdr':_0x3b3416(0x1c6),'OpTGz':function(_0x21ce3d,_0x55a87c,_0x3c1c4d,_0x16f927,_0x4d2846,_0x2c58ab,_0x405cfe){return _0x21ce3d(_0x55a87c,_0x3c1c4d,_0x16f927,_0x4d2846,_0x2c58ab,_0x405cfe);},'IgtnG':_0x3b3416(0x15f),'sOjTI':'init-not-called','MLVpV':function(_0x439b6c,_0x33635f,_0x4f5ffd,_0x2daa47,_0x44aa23,_0xbbea19,_0x485fb5){return _0x439b6c(_0x33635f,_0x4f5ffd,_0x2daa47,_0x44aa23,_0xbbea19,_0x485fb5);},'VallV':_0x3b3416(0x1bc),'YKiNE':function(_0x1abf73){return _0x1abf73();},'ZrmLo':function(_0x1da066,_0x11c55b,_0x16c514,_0x19721d){return _0x1da066(_0x11c55b,_0x16c514,_0x19721d);},'WqhJz':function(_0x4d1735,_0x437e1b){return _0x4d1735===_0x437e1b;},'jICgx':_0x3b3416(0x1b8),'SGOrv':'yevAB','BXQjY':'BZEMA','qFCdd':function(_0x4db186,_0x299e92){return _0x4db186(_0x299e92);},'NlBcZ':function(_0x8b9c2f,_0x1989a2){return _0x8b9c2f===_0x1989a2;},'rGaWc':function(_0x5d461c,_0x236d9c){return _0x5d461c===_0x236d9c;},'LPUtb':function(_0x202a10,_0x28aabe){return _0x202a10!==_0x28aabe;},'NkcOr':_0x3b3416(0x157),'azLGQ':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','dFcmH':function(_0x309499,_0x3e72bf,_0x354b58,_0xd34c71,_0x17626c,_0x4e13ef,_0x1a03e8){return _0x309499(_0x3e72bf,_0x354b58,_0xd34c71,_0x17626c,_0x4e13ef,_0x1a03e8);},'FMMoH':'invalid-input','MSzNL':'LZLfv','XkbbG':'<UsernamePlaceholder>','ALpJP':_0x3b3416(0x153),'funoO':function(_0x16c4ef,_0x564d81,_0x5acbf3,_0x4d44f2,_0x23c217,_0x3c271d,_0x24f83f){return _0x16c4ef(_0x564d81,_0x5acbf3,_0x4d44f2,_0x23c217,_0x3c271d,_0x24f83f);},'ZIubR':function(_0x36f21a,_0x428848){return _0x36f21a(_0x428848);},'vVAtD':function(_0xf71710,_0x3e5faa,_0x377005){return _0xf71710(_0x3e5faa,_0x377005);},'rWOYH':function(_0x3b17de,_0x43091b,_0x1b854c,_0xc616ef,_0xcbc0f4,_0x38af5f){return _0x3b17de(_0x43091b,_0x1b854c,_0xc616ef,_0xcbc0f4,_0x38af5f);},'zxPwi':function(_0x46b113,_0x14b5ea){return _0x46b113!==_0x14b5ea;},'aajap':_0x3b3416(0x1a5),'fFNow':_0x3b3416(0x1b0),'jUZpw':_0x3b3416(0x136),'fQWSp':_0x3b3416(0x159),'gzdvR':_0x3b3416(0x1bf),'jKckF':function(_0x2be5ef,_0x65f269,_0xbd5031){return _0x2be5ef(_0x65f269,_0xbd5031);},'LJCld':function(_0x300088,_0x38512a){return _0x300088!==_0x38512a;},'iqlTC':function(_0x5c7532,_0x27dc29){return _0x5c7532!==_0x27dc29;},'cCMGv':function(_0x1762da,_0x1fc432){return _0x1762da===_0x1fc432;},'yILRr':_0x3b3416(0x16b),'cBPVZ':_0x3b3416(0x1b3),'oHvXY':function(_0x431112,_0x434a72,_0x369378,_0x4e0540,_0x107ced,_0x22edec,_0x103901){return _0x431112(_0x434a72,_0x369378,_0x4e0540,_0x107ced,_0x22edec,_0x103901);},'XEVfa':_0x3b3416(0x18e),'bxUOZ':function(_0xe865be,_0x30af23){return _0xe865be===_0x30af23;},'CRplM':function(_0x507ccd,_0xe6bfc4,_0x5bb74e,_0x1a2c42,_0x313923,_0x9d0f5b,_0x20363a){return _0x507ccd(_0xe6bfc4,_0x5bb74e,_0x1a2c42,_0x313923,_0x9d0f5b,_0x20363a);},'oGKBf':'invalid-grid-id','tQCLc':function(_0x54cc51,_0x316511,_0x2538df,_0x1f96c5,_0xa827f5,_0x3366f1,_0x447e65){return _0x54cc51(_0x316511,_0x2538df,_0x1f96c5,_0xa827f5,_0x3366f1,_0x447e65);},'gtaOf':function(_0x2f2e29,_0x539733,_0x1a0ae7,_0x348fc2,_0x175b83,_0x1eba53,_0x1a9d90){return _0x2f2e29(_0x539733,_0x1a0ae7,_0x348fc2,_0x175b83,_0x1eba53,_0x1a9d90);},'UAxxF':_0x3b3416(0x189)};try{global_registry['requestId']=_0x51b44a[_0x3b3416(0x138)](uuidv4);!fs[_0x3b3416(0x1c1)](_0x51b44a[_0x3b3416(0x19c)](getCredentialsPath))&&(_0x51b44a['riTeM'](_0x51b44a[_0x3b3416(0x1a6)],_0x51b44a['lRpNT'])?_0x44211e[_0x3b3416(0x1b6)](0x0):(console[_0x3b3416(0x148)](_0x51b44a['lbJdr']),await _0x51b44a['OpTGz'](sendInstrumentationEvent,_0x5e35c8,_0x51b44a['IgtnG'],messageTypes[_0x3b3416(0x160)],_0x51b44a[_0x3b3416(0x18f)],null,_0x5e35c8),process['exit'](0x1)));_0x51b44a[_0x3b3416(0x135)](sendInstrumentationEvent,_0x5e35c8,_0x51b44a['IgtnG'],messageTypes[_0x3b3416(0x171)],null,null,_0x5e35c8);if(!_0x5e35c8['gridId']){if(_0x51b44a[_0x3b3416(0x13a)](_0x51b44a[_0x3b3416(0x174)],_0x51b44a[_0x3b3416(0x174)])){const _0x1aa3c4={};_0x1aa3c4[_0x3b3416(0x1ba)]=_0x51b44a['PWxqp'],_0x1aa3c4[_0x3b3416(0x1a7)]=_0x51b44a[_0x3b3416(0x165)];const _0x3b76bd={};_0x3b76bd[_0x3b3416(0x1ba)]=_0x51b44a[_0x3b3416(0x181)],_0x3b76bd[_0x3b3416(0x1a7)]=_0x51b44a[_0x3b3416(0x154)],_0x3b76bd[_0x3b3416(0x1a9)]=![];const _0x3d88a7={};return _0x3d88a7['grid-id']=_0x1aa3c4,_0x3d88a7[_0x3b3416(0x1a4)]=_0x3b76bd,_0x13005a[_0x3b3416(0x1b9)](_0x4b9097[_0x3b3416(0x143)])[_0x3b3416(0x1a1)](_0x14414d)[_0x3b3416(0x142)](_0x3d88a7)[_0x3b3416(0x137)](_0x51b44a[_0x3b3416(0x1b5)])['argv'];}else console[_0x3b3416(0x148)](_0x51b44a[_0x3b3416(0x190)]),process['exit'](0x1);}const _0x4e6517=JSON[_0x3b3416(0x1a3)](fs[_0x3b3416(0x1be)](_0x51b44a[_0x3b3416(0x183)](getCredentialsPath))),[_0x1e912d,_0x5706cf]=await _0x51b44a[_0x3b3416(0x1c5)](getGridDetails,_0x4e6517[_0x3b3416(0x1b8)][_0x3b3416(0x191)],_0x4e6517['Browserstack']['password'],_0x5e35c8[_0x3b3416(0x1b2)]);if(_0x5706cf){const _0x4c3e42=_0x5706cf[_0x3b3416(0x192)];let _0x310ca9='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4c3e42[_0x3b3416(0x164)]+_0x3b3416(0x187)+_0x4c3e42['id']+_0x3b3416(0x151);_0x5706cf['onlyGridInCluster']&&_0x51b44a[_0x3b3416(0x1aa)](_0x5706cf['clusterSpawnedVia'],_0x51b44a['jICgx'])&&(_0x51b44a['WqhJz'](_0x51b44a['SGOrv'],_0x51b44a[_0x3b3416(0x150)])?_0x3ba814['warn'](_0x51b44a[_0x3b3416(0x1c4)]):_0x310ca9='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4c3e42[_0x3b3416(0x164)]+_0x3b3416(0x187)+_0x4c3e42['id']+_0x3b3416(0x17e)+_0x4c3e42['clusterName']+'\x22\x20with\x20ID\x20'+_0x4c3e42[_0x3b3416(0x152)]+_0x3b3416(0x151));const _0x23efa5=await _0x51b44a[_0x3b3416(0x144)](inputConfirmation,_0x310ca9);(_0x51b44a[_0x3b3416(0x146)](_0x23efa5,undefined)||_0x51b44a['NlBcZ'](_0x23efa5,null)||!(_0x51b44a[_0x3b3416(0x178)](_0x23efa5[_0x3b3416(0x16a)](),'y')||_0x51b44a[_0x3b3416(0x146)](_0x23efa5['toLowerCase'](),'n')))&&(_0x51b44a[_0x3b3416(0x15a)](_0x51b44a[_0x3b3416(0x1a8)],_0x51b44a[_0x3b3416(0x1a8)])?(_0x348b1a[_0x3b3416(0x16c)](_0x3b3416(0x15b)+_0x4a1346+_0x3b3416(0x155)),_0x48e8ef=![]):(console[_0x3b3416(0x148)](_0x51b44a[_0x3b3416(0x14c)]),await _0x51b44a['dFcmH'](sendInstrumentationEvent,_0x5e35c8,_0x51b44a[_0x3b3416(0x16d)],messageTypes[_0x3b3416(0x160)],_0x51b44a[_0x3b3416(0x145)],null,_0x5e35c8),process['exit'](0x1)));_0x51b44a[_0x3b3416(0x178)](_0x23efa5['toLowerCase'](),'n')&&(_0x51b44a['LPUtb'](_0x51b44a['MSzNL'],_0x51b44a[_0x3b3416(0x141)])?(_0x7772a1[_0x3b3416(0x148)](_0x51b44a[_0x3b3416(0x190)]),_0x244726[_0x3b3416(0x1b6)](0x1)):process['exit'](0x0));const _0x3fd7d6=WS_ENDPOINT[_0x3b3416(0x15c)](_0x51b44a[_0x3b3416(0x197)],_0x4e6517[_0x3b3416(0x1b8)][_0x3b3416(0x191)])[_0x3b3416(0x15c)](_0x51b44a[_0x3b3416(0x198)],_0x4e6517[_0x3b3416(0x1b8)]['password']),_0x53fea2={};_0x53fea2[_0x3b3416(0x199)]=ws,_0x53fea2[_0x3b3416(0x168)]=0x36ee80;const _0x224dcf=new ReconnectingWebSocket(_0x3fd7d6,[],_0x53fea2);global_registry[_0x3b3416(0x172)]=_0x4c3e42[_0x3b3416(0x14e)];const _0xc7c229=_0x4c3e42[_0x3b3416(0x16f)],_0x2729ac=await _0x51b44a[_0x3b3416(0x147)](getCloudProviderObject,_0xc7c229,_0x4c3e42[_0x3b3416(0x1c3)],_0x4c3e42['name'],_0x224dcf,webSocketUtils,_0x5e35c8),_0x51cf9d=await _0x2729ac[_0x3b3416(0x1ab)]();if(_0x51cf9d){const _0x11682a=_0x51b44a[_0x3b3416(0x1c2)](kebabCase,_0x4c3e42[_0x3b3416(0x164)]),[_0x5b2a2a,_0x2208b4,_0x366452,_0x379a81,_0x42aaee,_0x53edac]=await _0x51b44a['vVAtD'](createK8sClient,_0x2729ac,_0x5e35c8[_0x3b3416(0x18d)]);let _0x4ae00c=!![];const _0x599ca2={};_0x599ca2[_0x3b3416(0x164)]=_0x11682a,await _0x5b2a2a[_0x3b3416(0x194)](_0x599ca2)['then'](_0x359c5f=>{const _0x1ca91d=_0x3b3416;_0x51b44a[_0x1ca91d(0x13c)](_0x51b44a[_0x1ca91d(0x17a)],_0x51b44a[_0x1ca91d(0x17a)])?_0x2e8e80[_0x1ca91d(0x192)]('Namespace:\x20'+_0x3ea05e+_0x1ca91d(0x167)):logger['info'](_0x1ca91d(0x15b)+_0x11682a+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})['catch'](_0x84ed65=>{const _0x4ef2a3=_0x3b3416;_0x51b44a[_0x4ef2a3(0x13a)](_0x51b44a['hcsbt'],_0x51b44a[_0x4ef2a3(0x162)])?(logger['warn']('Namespace:\x20'+_0x11682a+_0x4ef2a3(0x155)),_0x4ae00c=![]):_0x251088[_0x4ef2a3(0x16c)]('Cluster:\x20'+_0x2cbb14[_0x4ef2a3(0x1c3)]+_0x4ef2a3(0x158));});if(_0x4ae00c){await _0x51b44a[_0x3b3416(0x18c)](removeGridComponents,_0x5b2a2a,_0x2208b4,_0x366452,_0x379a81,_0x11682a);if(_0x5706cf[_0x3b3416(0x166)]){const _0x247d2d=await _0x2729ac[_0x3b3416(0x185)]();_0x247d2d?_0x51b44a[_0x3b3416(0x1bb)](_0x51b44a['aajap'],_0x51b44a['fFNow'])?await _0x2729ac['deleteCluster'](_0x5b2a2a,_0x4c3e42['region']):(_0x27ee74[_0x3b3416(0x192)](_0x51b44a[_0x3b3416(0x15e)]),_0xf03124[_0x3b3416(0x1b6)](0x0)):_0x51b44a[_0x3b3416(0x13c)](_0x51b44a['jUZpw'],_0x51b44a['fQWSp'])?logger[_0x3b3416(0x16c)]('Cluster:\x20'+_0x4c3e42[_0x3b3416(0x1c3)]+_0x3b3416(0x158)):_0x1b0afa='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5a622e[_0x3b3416(0x164)]+'\x22\x20and\x20ID\x20'+_0x35d0e4['id']+_0x3b3416(0x17e)+_0x1b71ed['clusterName']+_0x3b3416(0x1c7)+_0x527b3a[_0x3b3416(0x152)]+_0x3b3416(0x151);}}}else logger[_0x3b3416(0x16c)](_0x51b44a[_0x3b3416(0x1c4)]);const _0x57189a='https://'+AG_API_URL+_0x3b3416(0x188)+_0x5e35c8[_0x3b3416(0x1b2)],_0x3ce7ad={'method':_0x51b44a[_0x3b3416(0x175)],'headers':_0x51b44a['jKckF'](getAuthHeader,_0x4e6517[_0x3b3416(0x1b8)][_0x3b3416(0x191)],_0x4e6517[_0x3b3416(0x1b8)][_0x3b3416(0x1bd)]),'throwHttpErrors':![]},_0x1b8dd7=await _0x51b44a['vVAtD'](got,_0x57189a,_0x3ce7ad);_0x51b44a['LJCld'](_0x1b8dd7,null)&&_0x51b44a['iqlTC'](_0x1b8dd7,undefined)&&_0x51b44a['cCMGv'](_0x1b8dd7[_0x3b3416(0x1b1)],0xc8)&&(logger['info'](_0x51b44a[_0x3b3416(0x15e)]),process['exit'](0x0)),logger['error'](_0x3b3416(0x195)+_0x1b8dd7[_0x3b3416(0x17c)]),await _0x51b44a['funoO'](sendInstrumentationEvent,_0x5e35c8,_0x51b44a[_0x3b3416(0x16d)],messageTypes[_0x3b3416(0x160)],_0x51b44a['yILRr'],_0x1e912d,_0x5e35c8),process[_0x3b3416(0x1b6)](0x1);}_0x51b44a['NlBcZ'](_0x1e912d[_0x3b3416(0x1b1)],0x191)&&(logger[_0x3b3416(0x148)](_0x51b44a['cBPVZ']),await _0x51b44a[_0x3b3416(0x1b4)](sendInstrumentationEvent,_0x5e35c8,_0x51b44a['IgtnG'],messageTypes['ERROR'],_0x51b44a[_0x3b3416(0x13e)],null,_0x5e35c8),process['exit'](0x1)),_0x51b44a[_0x3b3416(0x16e)](_0x1e912d[_0x3b3416(0x1b1)],0x190)&&(logger[_0x3b3416(0x148)](JSON['parse'](_0x1e912d[_0x3b3416(0x17c)])[_0x3b3416(0x1a0)]),await _0x51b44a['CRplM'](sendInstrumentationEvent,_0x5e35c8,_0x51b44a[_0x3b3416(0x16d)],messageTypes[_0x3b3416(0x160)],_0x51b44a[_0x3b3416(0x13f)],null,_0x5e35c8),process[_0x3b3416(0x1b6)](0x1)),logger['error'](_0x3b3416(0x196)+JSON['stringify'](_0x1e912d)),await _0x51b44a[_0x3b3416(0x14b)](sendInstrumentationEvent,_0x5e35c8,_0x51b44a[_0x3b3416(0x16d)],messageTypes[_0x3b3416(0x160)],_0x51b44a[_0x3b3416(0x15d)],_0x1e912d,_0x5e35c8),process['exit'](0x1);}catch(_0x4d29d0){logger[_0x3b3416(0x148)](_0x3b3416(0x182)+_0x4d29d0['stack']),await _0x51b44a[_0x3b3416(0x169)](sendInstrumentationEvent,_0x5e35c8,_0x51b44a[_0x3b3416(0x16d)],messageTypes['ERROR'],_0x51b44a['UAxxF'],_0x4d29d0,_0x5e35c8),process[_0x3b3416(0x1b6)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x1b7517=a12_0x272f;function a12_0x272f(_0x1795b0,_0x158e49){const _0x41326d=a12_0x4132();return a12_0x272f=function(_0x272f74,_0x521609){_0x272f74=_0x272f74-0xab;let _0x2195ec=_0x41326d[_0x272f74];return _0x2195ec;},a12_0x272f(_0x1795b0,_0x158e49);}(function(_0x15b11c,_0x236a09){const _0x174be2=a12_0x272f,_0xa85796=_0x15b11c();while(!![]){try{const _0x16aed6=-parseInt(_0x174be2(0xe8))/0x1*(parseInt(_0x174be2(0xe6))/0x2)+parseInt(_0x174be2(0xe2))/0x3+parseInt(_0x174be2(0xab))/0x4+parseInt(_0x174be2(0xee))/0x5+parseInt(_0x174be2(0x109))/0x6*(-parseInt(_0x174be2(0xad))/0x7)+parseInt(_0x174be2(0xc6))/0x8+-parseInt(_0x174be2(0xf5))/0x9*(parseInt(_0x174be2(0xae))/0xa);if(_0x16aed6===_0x236a09)break;else _0xa85796['push'](_0xa85796['shift']());}catch(_0x4deb5a){_0xa85796['push'](_0xa85796['shift']());}}}(a12_0x4132,0xcf149));const fs=require('fs'),util=require(a12_0x1b7517(0xb0)),got=require(a12_0x1b7517(0xed)),{v4:uuidv4}=require(a12_0x1b7517(0xf7)),{logger}=require(a12_0x1b7517(0xf9)),{inputBstackKeys}=require(a12_0x1b7517(0xcd)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x1b7517(0xb9)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x1b7517(0x101)),{sendInstrumentationEvent}=require(a12_0x1b7517(0xe0));function a12_0x4132(){const _0x3b1f44=['xlwNS','19867410veXIKT','username','uuid','exit','../config/logger','hTUjq','argv','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','LOcFF','XWfRA','strict','../utils/utilityMethods','ymawl','OFEVM','JyTuW','yzMWi','debug','kdkHC','command','250938kVPVHr','BwIHe','string','recommendCommands','statusCode','bstackUsername','handler','DbqPY','cWwxg','error','VSBIl','type','yfvJc','KaeQl','description','readFileSync','onCHF','5594704XvVIvB','options','189xynZdu','10TAmAvC','wrong-creds','util','tnqId','lcHlO','vUOGw','JkdLt','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','WobpM','bstackAccesskey','/automate/plan.json','../config/constants','mkdirSync','wZrNt','Soegn','mEaxU','https://','BROWSERSTACK_ACCESS_KEY','bstack-accesskey','IgpjX','writeFileSync','BiPlp','parse','DUwhj','6869848WuSRGc','requestId','eTvog','KBhCD','usage','CYeAb','unknown-error','../utils/userInput','init-called','builder','uxVFG','ffdUh','existsSync','Rkapf','INFO','OhNTu','kclmt','GET','WKmBW','env','Browserstack','pqXqz','BllTU','rKoHz','password','stringify','../utils/instrumentationUtils','ERROR','4308843dTBPZx','help','bstack-username','BROWSERSTACK_USERNAME','1382kJBXem','init','58bvWoRk','desc','IQJiC','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','kASOu','got','2656510MQgJHi','MjWtG','jkwgY','CQoYo','dqFju','uxPoI'];a12_0x4132=function(){return _0x3b1f44;};return a12_0x4132();}exports[a12_0x1b7517(0x108)]=a12_0x1b7517(0xe7),exports[a12_0x1b7517(0xe9)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x1b7517(0xcf)]=function(_0x48596a){const _0xf30f60=a12_0x1b7517,_0x155e82={};_0x155e82[_0xf30f60(0x119)]=_0xf30f60(0xfd),_0x155e82[_0xf30f60(0xf3)]=_0xf30f60(0x10b),_0x155e82[_0xf30f60(0xf4)]=_0xf30f60(0xfc),_0x155e82[_0xf30f60(0xbc)]=_0xf30f60(0xe3);const _0xd89135=_0x155e82,_0x329686={};_0x329686[_0xf30f60(0x117)]=_0xd89135[_0xf30f60(0x119)],_0x329686['type']=_0xd89135['uxPoI'];const _0x111a1a={};_0x111a1a[_0xf30f60(0x117)]=_0xd89135[_0xf30f60(0xf4)],_0x111a1a[_0xf30f60(0x114)]=_0xd89135[_0xf30f60(0xf3)];const _0x17fa76={};return _0x17fa76[_0xf30f60(0xe4)]=_0x329686,_0x17fa76[_0xf30f60(0xc0)]=_0x111a1a,_0x48596a[_0xf30f60(0xca)](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xf30f60(0xac)](_0x17fa76)[_0xf30f60(0x10c)]()[_0xf30f60(0x100)]()[_0xf30f60(0xe3)](_0xd89135[_0xf30f60(0xbc)])[_0xf30f60(0xfb)];},exports[a12_0x1b7517(0x10f)]=async function(_0x89422e){const _0x440001=a12_0x1b7517,_0x46875c={'kASOu':_0x440001(0xfd),'pqXqz':_0x440001(0x10b),'ylAmv':_0x440001(0xfc),'WobpM':_0x440001(0xe3),'cWwxg':function(_0x3df1f1){return _0x3df1f1();},'eTvog':'utf-8','wZrNt':function(_0x2e8c96){return _0x2e8c96();},'Rkapf':function(_0x387d1d,_0x23af58,_0xe842de,_0x2dbae9,_0xff0729,_0x1405af,_0x37d10b){return _0x387d1d(_0x23af58,_0xe842de,_0x2dbae9,_0xff0729,_0x1405af,_0x37d10b);},'lcHlO':_0x440001(0xce),'tnqId':function(_0x4b7da8){return _0x4b7da8();},'BllTU':function(_0x20bb15,_0x481d47){return _0x20bb15===_0x481d47;},'qvjte':_0x440001(0xb4),'LOcFF':function(_0x121a9e,_0x41d614){return _0x121a9e!==_0x41d614;},'VSBIl':_0x440001(0xf1),'yfvJc':function(_0x1214ad,_0x2ef0a7){return _0x1214ad===_0x2ef0a7;},'uxVFG':_0x440001(0xbd),'aZmuQ':_0x440001(0x110),'gPkBq':'bhWQr','XWfRA':_0x440001(0xd5),'WKmBW':_0x440001(0xc9),'yzMWi':function(_0xc13b50,_0x24ad3e){return _0xc13b50===_0x24ad3e;},'IHNzx':function(_0x206c46,_0x38dcf3){return _0x206c46===_0x38dcf3;},'rKoHz':_0x440001(0xfa),'ffdUh':_0x440001(0xb3),'Gblpj':_0x440001(0xb5),'mhHVI':_0x440001(0xd7),'CivBE':function(_0x5d5189,_0x4ab8c0,_0x54e187){return _0x5d5189(_0x4ab8c0,_0x54e187);},'DUwhj':function(_0x3dff73,_0xc5714a,_0x1cff65){return _0x3dff73(_0xc5714a,_0x1cff65);},'IgpjX':function(_0x18c15a,_0x56779e){return _0x18c15a===_0x56779e;},'kdkHC':function(_0x10f235,_0x3c3d7f){return _0x10f235===_0x3c3d7f;},'MjWtG':_0x440001(0x103),'dqFju':function(_0xabb250,_0x319d4c){return _0xabb250!==_0x319d4c;},'KaeQl':_0x440001(0xf0),'CYeAb':_0x440001(0xea),'laxdI':function(_0x36929c){return _0x36929c();},'pCjGl':_0x440001(0xd6),'BiPlp':_0x440001(0xeb),'ymawl':_0x440001(0xaf),'BwIHe':function(_0x4e3268,_0x1044ea,_0x125557,_0x1766e7,_0x1c3953,_0xe336e8,_0x127c72){return _0x4e3268(_0x1044ea,_0x125557,_0x1766e7,_0x1c3953,_0xe336e8,_0x127c72);},'JyTuW':_0x440001(0xcc)};try{global_registry[_0x440001(0xc7)]=_0x46875c[_0x440001(0xbb)](uuidv4),_0x46875c['Rkapf'](sendInstrumentationEvent,_0x89422e,_0x46875c['lcHlO'],messageTypes[_0x440001(0xd4)],null,null,_0x89422e);const _0x165619=_0x46875c[_0x440001(0xb1)](getDirForConfig);!fs[_0x440001(0xd2)](_0x165619)&&(_0x46875c[_0x440001(0xdc)](_0x46875c['qvjte'],_0x46875c['qvjte'])?fs[_0x440001(0xba)](_0x165619):_0x44ca4e=_0x10bf09[_0x440001(0xd9)][_0x440001(0xe5)]);let _0x4bf495,_0xaecb28;if(process['env'][_0x440001(0xe5)]){if(_0x46875c[_0x440001(0xfe)](_0x46875c[_0x440001(0x113)],_0x46875c[_0x440001(0x113)])){const _0x5cf38a={};_0x5cf38a[_0x440001(0x117)]=_0x46875c[_0x440001(0xec)],_0x5cf38a[_0x440001(0x114)]=_0x46875c['pqXqz'];const _0x504c25={};_0x504c25[_0x440001(0x117)]=_0x46875c['ylAmv'],_0x504c25[_0x440001(0x114)]=_0x46875c[_0x440001(0xdb)];const _0x36214a={};return _0x36214a[_0x440001(0xe4)]=_0x5cf38a,_0x36214a['bstack-accesskey']=_0x504c25,_0x70c7b1['usage'](_0x47ee0d[_0x440001(0xe7)])['epilogue'](_0xe1b0da)[_0x440001(0xac)](_0x36214a)[_0x440001(0x10c)]()[_0x440001(0x100)]()[_0x440001(0xe3)](_0x46875c[_0x440001(0xb6)])[_0x440001(0xfb)];}else _0x4bf495=process[_0x440001(0xd9)][_0x440001(0xe5)];}process[_0x440001(0xd9)]['BROWSERSTACK_ACCESS_KEY']&&(_0x46875c[_0x440001(0x115)](_0x46875c[_0x440001(0xd0)],_0x46875c['aZmuQ'])?_0x500abb=_0x43e54d['bstackUsername']:_0xaecb28=process[_0x440001(0xd9)][_0x440001(0xbf)]);_0x89422e[_0x440001(0x10e)]&&(_0x46875c[_0x440001(0xfe)](_0x46875c['gPkBq'],_0x46875c[_0x440001(0xff)])?_0x4bf495=_0x89422e[_0x440001(0x10e)]:_0x4dceb9=_0x5eec90[_0x440001(0xd9)][_0x440001(0xbf)]);_0x89422e[_0x440001(0xb7)]&&(_0x46875c[_0x440001(0xfe)](_0x46875c['WKmBW'],_0x46875c[_0x440001(0xd8)])?_0x3ca32d=_0x343415[_0x440001(0xb7)]:_0xaecb28=_0x89422e['bstackAccesskey']);if(_0x46875c[_0x440001(0x105)](_0x4bf495,undefined)||_0x46875c[_0x440001(0x115)](_0xaecb28,undefined)){if(_0x46875c['IHNzx'](_0x46875c[_0x440001(0xdd)],_0x46875c[_0x440001(0xd1)]))_0x2b69a7[_0x440001(0xba)](_0x164c01);else{logger[_0x440001(0x106)](_0x46875c['Gblpj']);const [_0x5cbf1b,_0x51f5b8]=await _0x46875c['cWwxg'](inputBstackKeys);_0x4bf495=_0x5cbf1b,_0xaecb28=_0x51f5b8;}}let _0x57e196=![];const _0x2929bf=_0x440001(0xbe)+_0x4bf495+':'+_0xaecb28+'@'+BS_API_URL+_0x440001(0xb8),_0x30e96b={'method':_0x46875c['mhHVI'],'headers':_0x46875c['CivBE'](getAuthHeader,_0x4bf495,_0xaecb28),'throwHttpErrors':![]},_0x33a7d5=await _0x46875c[_0x440001(0xc5)](got,_0x2929bf,_0x30e96b);if(_0x46875c['LOcFF'](_0x33a7d5,null)&&_0x46875c['LOcFF'](_0x33a7d5,undefined)&&_0x46875c[_0x440001(0xc1)](_0x33a7d5[_0x440001(0x10d)],0xc8)){if(_0x46875c[_0x440001(0x107)](_0x46875c[_0x440001(0xef)],_0x46875c[_0x440001(0xef)]))_0x57e196=!![];else{let _0xfb74ad={};const _0x457181=_0x46875c[_0x440001(0x111)](_0x2d6bee);_0x473c60[_0x440001(0xd2)](_0x457181)&&(_0xfb74ad=_0x56a340[_0x440001(0xc4)](_0x4bdf[_0x440001(0x118)](_0x457181,_0x46875c[_0x440001(0xc8)])));const _0x34f205={};_0x34f205[_0x440001(0xf6)]=_0x141efc,_0x34f205[_0x440001(0xde)]=_0x2d23de,_0xfb74ad[_0x440001(0xda)]=_0x34f205,_0x406e00[_0x440001(0xc2)](_0x457181,_0x109851[_0x440001(0xdf)](_0xfb74ad)),_0x194b0f[_0x440001(0xf8)](0x0);}}if(_0x57e196){if(_0x46875c[_0x440001(0xf2)](_0x46875c[_0x440001(0x116)],_0x46875c[_0x440001(0xcb)])){let _0x1459fe={};const _0x1d6ca9=_0x46875c['laxdI'](getCredentialsPath);fs['existsSync'](_0x1d6ca9)&&(_0x46875c['dqFju'](_0x46875c['pCjGl'],_0x46875c['pCjGl'])?_0x5dff0a=_0x4366df['parse'](_0x28416c[_0x440001(0x118)](_0x4f3360,_0x46875c[_0x440001(0xc8)])):_0x1459fe=JSON[_0x440001(0xc4)](fs[_0x440001(0x118)](_0x1d6ca9,_0x46875c[_0x440001(0xc8)])));const _0x162f51={};_0x162f51[_0x440001(0xf6)]=_0x4bf495,_0x162f51[_0x440001(0xde)]=_0xaecb28,_0x1459fe[_0x440001(0xda)]=_0x162f51,fs['writeFileSync'](_0x1d6ca9,JSON[_0x440001(0xdf)](_0x1459fe)),process['exit'](0x0);}else _0x57e0df=!![];}else logger['error'](_0x46875c[_0x440001(0xc3)]),await _0x46875c[_0x440001(0xd3)](sendInstrumentationEvent,_0x89422e,_0x46875c['lcHlO'],messageTypes[_0x440001(0xe1)],_0x46875c[_0x440001(0x102)],null,_0x89422e),process[_0x440001(0xf8)](0x1);}catch(_0x580d61){logger[_0x440001(0x112)](_0x580d61['stack']),await _0x46875c[_0x440001(0x10a)](sendInstrumentationEvent,_0x89422e,_0x46875c[_0x440001(0xb2)],messageTypes['ERROR'],_0x46875c[_0x440001(0x104)],_0x580d61,_0x89422e),process[_0x440001(0xf8)](0x1);}};
1
+ function a12_0xe136(_0xf62e86,_0x44ae72){const _0x32079c=a12_0x3207();return a12_0xe136=function(_0xe136c9,_0x455afa){_0xe136c9=_0xe136c9-0x152;let _0x338c76=_0x32079c[_0xe136c9];return _0x338c76;},a12_0xe136(_0xf62e86,_0x44ae72);}const a12_0x36253b=a12_0xe136;(function(_0x3f35e6,_0x42431b){const _0x1a478e=a12_0xe136,_0x3d152c=_0x3f35e6();while(!![]){try{const _0x7bf234=parseInt(_0x1a478e(0x18b))/0x1+parseInt(_0x1a478e(0x17c))/0x2*(-parseInt(_0x1a478e(0x160))/0x3)+parseInt(_0x1a478e(0x1a9))/0x4*(-parseInt(_0x1a478e(0x16f))/0x5)+parseInt(_0x1a478e(0x181))/0x6*(parseInt(_0x1a478e(0x195))/0x7)+-parseInt(_0x1a478e(0x1a4))/0x8+-parseInt(_0x1a478e(0x182))/0x9*(-parseInt(_0x1a478e(0x159))/0xa)+parseInt(_0x1a478e(0x199))/0xb;if(_0x7bf234===_0x42431b)break;else _0x3d152c['push'](_0x3d152c['shift']());}catch(_0x43a6e2){_0x3d152c['push'](_0x3d152c['shift']());}}}(a12_0x3207,0x2c0e5));function a12_0x3207(){const _0xa35958=['uNOWs','strict','type','options','8736KeQnND','ZPevW','../utils/userInput','readFileSync','help','ctsYZ','handler','qTmuv','ADSYF','writeFileSync','stack','WYOgV','ybCvm','parse','argv','699505ehSiCz','XwvfI','vqkFh','wKsPO','bstackUsername','aJsYN','BROWSERSTACK_USERNAME','wcTre','usage','nnxoC','HtOjb','password','GET','128XzQwfR','Browserstack','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','BDGvk','existsSync','1500pfEbxq','9aUUfHj','tlkYS','ZGkVB','vcZrh','../config/constants','Jxuyy','builder','JHEby','stringify','264729UMIrVY','../utils/utilityMethods','tJpbk','init','bstackAccesskey','pziDO','string','ERROR','../config/logger','FgJrk','4109YTQvUb','GZjEY','TiNsk','util','2307261gjSTOE','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','command','dRJhl','nxEKz','../utils/instrumentationUtils','wrong-creds','EXhca','description','utf-8','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','828704VpbUeQ','INFO','error','NEgUZ','VLnFX','8wMTAEc','kSeWk','uWJRX','requestId','epilogue','tDcmR','Ktpad','https://','fknSj','dTPJh','exit','UXlYz','mhFkY','wDENZ','bstack-username','got','BLXKb','debug','qZnov','env','BROWSERSTACK_ACCESS_KEY','recommendCommands','slpTq','pACKY','bstack-accesskey','1289810CxDcTr','/automate/plan.json','PZzCk'];a12_0x3207=function(){return _0xa35958;};return a12_0x3207();}const fs=require('fs'),util=require(a12_0x36253b(0x198)),got=require(a12_0x36253b(0x1b8)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x36253b(0x193)),{inputBstackKeys}=require(a12_0x36253b(0x162)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x36253b(0x186)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x36253b(0x18c)),{sendInstrumentationEvent}=require(a12_0x36253b(0x19e));exports[a12_0x36253b(0x19b)]=a12_0x36253b(0x18e),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x36253b(0x188)]=function(_0x1b7796){const _0x23b37d=a12_0x36253b,_0x30baa4={};_0x30baa4['nxEKz']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x30baa4[_0x23b37d(0x1b2)]=_0x23b37d(0x191),_0x30baa4[_0x23b37d(0x194)]=_0x23b37d(0x19a),_0x30baa4[_0x23b37d(0x15c)]=_0x23b37d(0x164);const _0x3d610c=_0x30baa4,_0x2d3c65={};_0x2d3c65['description']=_0x3d610c[_0x23b37d(0x19d)],_0x2d3c65[_0x23b37d(0x15e)]=_0x3d610c[_0x23b37d(0x1b2)];const _0x5e5e3c={};_0x5e5e3c[_0x23b37d(0x1a1)]=_0x3d610c['FgJrk'],_0x5e5e3c['type']=_0x3d610c[_0x23b37d(0x1b2)];const _0x3dae47={};return _0x3dae47[_0x23b37d(0x1b7)]=_0x2d3c65,_0x3dae47[_0x23b37d(0x158)]=_0x5e5e3c,_0x1b7796[_0x23b37d(0x177)](HELP_HEADER_MESSAGE[_0x23b37d(0x18e)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x3dae47)['recommendCommands']()[_0x23b37d(0x15d)]()['help'](_0x3d610c[_0x23b37d(0x15c)])[_0x23b37d(0x16e)];},exports[a12_0x36253b(0x166)]=async function(_0x2963b4){const _0x313967=a12_0x36253b,_0xd834c6={'dRJhl':_0x313967(0x1a3),'mhFkY':_0x313967(0x191),'wKsPO':_0x313967(0x19a),'JvSvj':_0x313967(0x164),'IHrox':function(_0x1343fb){return _0x1343fb();},'tDcmR':_0x313967(0x1a2),'VLnFX':function(_0x3537a6){return _0x3537a6();},'XwvfI':function(_0x201be8,_0x93acce,_0x5d2b97,_0x382704,_0x1d2736,_0x341a62,_0x23f933){return _0x201be8(_0x93acce,_0x5d2b97,_0x382704,_0x1d2736,_0x341a62,_0x23f933);},'pACKY':'init-called','VPrFR':function(_0x44eaf9){return _0x44eaf9();},'TiNsk':function(_0x5249c1,_0x1c3788){return _0x5249c1!==_0x1c3788;},'aJsYN':_0x313967(0x183),'ZPevW':'pHHCa','xhMvE':function(_0x3a8bda,_0x4329e5){return _0x3a8bda===_0x4329e5;},'wcTre':_0x313967(0x184),'uWJRX':_0x313967(0x196),'HtOjb':_0x313967(0x18d),'UXlYz':function(_0x11dcef,_0x3e987f){return _0x11dcef!==_0x3e987f;},'pziDO':_0x313967(0x1aa),'ctsYZ':_0x313967(0x1b6),'Ktpad':function(_0x4a59f2,_0x4a456b){return _0x4a59f2!==_0x4a456b;},'mPOPI':_0x313967(0x16c),'Rrnba':function(_0x346927,_0x213df2){return _0x346927===_0x213df2;},'sGjVb':function(_0x3e0633,_0x49e410){return _0x3e0633===_0x49e410;},'dSxEt':_0x313967(0x185),'sjTAp':_0x313967(0x1a0),'wWQCn':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','nnxoC':_0x313967(0x17b),'ADSYF':function(_0x5d7a8b,_0x283fb1,_0x13b3ce){return _0x5d7a8b(_0x283fb1,_0x13b3ce);},'pkJyz':function(_0x4e9950,_0x23986a){return _0x4e9950===_0x23986a;},'BLXKb':function(_0x425188,_0x50f993){return _0x425188!==_0x50f993;},'vqkFh':'EaTcd','NEgUZ':function(_0x28a13f,_0x34e3a4){return _0x28a13f!==_0x34e3a4;},'WYOgV':_0x313967(0x1b1),'BDGvk':'tcPvY','slpTq':function(_0x425525,_0x552e1d){return _0x425525===_0x552e1d;},'JHEby':_0x313967(0x15b),'qTmuv':_0x313967(0x17e),'Jxuyy':_0x313967(0x19f),'UCnhn':function(_0x60e754,_0x251e62,_0x343996,_0x32e085,_0x250842,_0x2103b2,_0xaed110){return _0x60e754(_0x251e62,_0x343996,_0x32e085,_0x250842,_0x2103b2,_0xaed110);},'qZnov':'unknown-error'};try{global_registry[_0x313967(0x1ac)]=_0xd834c6[_0x313967(0x1a8)](uuidv4),_0xd834c6['XwvfI'](sendInstrumentationEvent,_0x2963b4,_0xd834c6[_0x313967(0x157)],messageTypes[_0x313967(0x1a5)],null,null,_0x2963b4);const _0x29e35a=_0xd834c6['VPrFR'](getDirForConfig);!fs[_0x313967(0x180)](_0x29e35a)&&(_0xd834c6[_0x313967(0x197)](_0xd834c6[_0x313967(0x174)],_0xd834c6[_0x313967(0x161)])?fs['mkdirSync'](_0x29e35a):_0x50d814['mkdirSync'](_0x545d1c));let _0x2883c0,_0x504de8;if(process[_0x313967(0x153)][_0x313967(0x175)]){if(_0xd834c6['xhMvE'](_0xd834c6[_0x313967(0x176)],_0xd834c6[_0x313967(0x1ab)])){const _0x1aa719={};_0x1aa719[_0x313967(0x1a1)]=_0xd834c6[_0x313967(0x19c)],_0x1aa719[_0x313967(0x15e)]=_0xd834c6[_0x313967(0x1b5)];const _0x9d94f1={};_0x9d94f1[_0x313967(0x1a1)]=_0xd834c6[_0x313967(0x172)],_0x9d94f1[_0x313967(0x15e)]=_0xd834c6[_0x313967(0x1b5)];const _0x485573={};return _0x485573[_0x313967(0x1b7)]=_0x1aa719,_0x485573[_0x313967(0x158)]=_0x9d94f1,_0x21711f[_0x313967(0x177)](_0x56d0fc[_0x313967(0x18e)])[_0x313967(0x1ad)](_0x3d068b)[_0x313967(0x15f)](_0x485573)[_0x313967(0x155)]()['strict']()['help'](_0xd834c6['JvSvj'])[_0x313967(0x16e)];}else _0x2883c0=process['env'][_0x313967(0x175)];}process['env'][_0x313967(0x154)]&&(_0xd834c6[_0x313967(0x197)](_0xd834c6['HtOjb'],_0xd834c6[_0x313967(0x179)])?_0x279580=!![]:_0x504de8=process[_0x313967(0x153)][_0x313967(0x154)]);if(_0x2963b4['bstackUsername']){if(_0xd834c6[_0x313967(0x1b4)](_0xd834c6[_0x313967(0x190)],_0xd834c6[_0x313967(0x165)]))_0x2883c0=_0x2963b4[_0x313967(0x173)];else{let _0x2dacbd={};const _0x58fe11=_0xd834c6['IHrox'](_0xfc2747);_0x3b522d[_0x313967(0x180)](_0x58fe11)&&(_0x2dacbd=_0x378dfe[_0x313967(0x16d)](_0x339592['readFileSync'](_0x58fe11,_0xd834c6[_0x313967(0x1ae)])));const _0x570836={};_0x570836['username']=_0x27a7df,_0x570836[_0x313967(0x17a)]=_0x513262,_0x2dacbd[_0x313967(0x17d)]=_0x570836,_0x4449e0[_0x313967(0x169)](_0x58fe11,_0x48ecad[_0x313967(0x18a)](_0x2dacbd)),_0x88b77[_0x313967(0x1b3)](0x0);}}_0x2963b4[_0x313967(0x18f)]&&(_0xd834c6['Ktpad'](_0xd834c6['mPOPI'],_0xd834c6['mPOPI'])?_0x34ffdb=_0x5505d4[_0x313967(0x153)][_0x313967(0x175)]:_0x504de8=_0x2963b4[_0x313967(0x18f)]);if(_0xd834c6['Rrnba'](_0x2883c0,undefined)||_0xd834c6['sGjVb'](_0x504de8,undefined)){if(_0xd834c6[_0x313967(0x197)](_0xd834c6['dSxEt'],_0xd834c6['sjTAp'])){logger[_0x313967(0x1ba)](_0xd834c6['wWQCn']);const [_0x3e7d4e,_0x531a0a]=await _0xd834c6[_0x313967(0x1a8)](inputBstackKeys);_0x2883c0=_0x3e7d4e,_0x504de8=_0x531a0a;}else _0x5255ef=_0x407ae7[_0x313967(0x16d)](_0x2a9da7[_0x313967(0x163)](_0x36b13a,_0xd834c6['tDcmR']));}let _0x3a397c=![];const _0x223465=_0x313967(0x1b0)+_0x2883c0+':'+_0x504de8+'@'+BS_API_URL+_0x313967(0x15a),_0x37cf43={'method':_0xd834c6[_0x313967(0x178)],'headers':_0xd834c6[_0x313967(0x168)](getAuthHeader,_0x2883c0,_0x504de8),'throwHttpErrors':![]},_0x403213=await _0xd834c6['ADSYF'](got,_0x223465,_0x37cf43);_0xd834c6[_0x313967(0x1af)](_0x403213,null)&&_0xd834c6[_0x313967(0x1af)](_0x403213,undefined)&&_0xd834c6['pkJyz'](_0x403213['statusCode'],0xc8)&&(_0xd834c6[_0x313967(0x1b9)](_0xd834c6[_0x313967(0x171)],_0xd834c6['vqkFh'])?_0x5ad473=_0x366227['bstackUsername']:_0x3a397c=!![]);if(_0x3a397c){if(_0xd834c6[_0x313967(0x1a7)](_0xd834c6[_0x313967(0x16b)],_0xd834c6[_0x313967(0x17f)])){let _0x3e1c23={};const _0x31e52e=_0xd834c6[_0x313967(0x1a8)](getCredentialsPath);fs[_0x313967(0x180)](_0x31e52e)&&(_0xd834c6[_0x313967(0x156)](_0xd834c6[_0x313967(0x189)],_0xd834c6['JHEby'])?_0x3e1c23=JSON[_0x313967(0x16d)](fs[_0x313967(0x163)](_0x31e52e,_0xd834c6['tDcmR'])):_0x4423c8=_0x273878[_0x313967(0x18f)]);const _0x2a7825={};_0x2a7825['username']=_0x2883c0,_0x2a7825[_0x313967(0x17a)]=_0x504de8,_0x3e1c23[_0x313967(0x17d)]=_0x2a7825,fs[_0x313967(0x169)](_0x31e52e,JSON[_0x313967(0x18a)](_0x3e1c23)),process[_0x313967(0x1b3)](0x0);}else _0x50608a=_0x13e239[_0x313967(0x153)]['BROWSERSTACK_ACCESS_KEY'];}else logger['error'](_0xd834c6[_0x313967(0x167)]),await _0xd834c6[_0x313967(0x170)](sendInstrumentationEvent,_0x2963b4,_0xd834c6['pACKY'],messageTypes[_0x313967(0x192)],_0xd834c6[_0x313967(0x187)],null,_0x2963b4),process['exit'](0x1);}catch(_0x3dba03){logger[_0x313967(0x1a6)](_0x3dba03[_0x313967(0x16a)]),await _0xd834c6['UCnhn'](sendInstrumentationEvent,_0x2963b4,_0xd834c6['pACKY'],messageTypes[_0x313967(0x192)],_0xd834c6[_0x313967(0x152)],_0x3dba03,_0x2963b4),process[_0x313967(0x1b3)](0x1);}};
@@ -1 +1 @@
1
- function a13_0x2ef5(){const _0x31f089=['builder','763470RNctvo','desc','help','4cRBfMX','strict','27wOtffu','command','171xxKoQn','root','7834yjgWDE','2161327dPlKXA','demandCommand','list','list_commands','usage','recommendCommands','rtOYS','48674MAJxAJ','433730YbGPrr','aBGia','455920SoiwKA','1102825ZpaAEN'];a13_0x2ef5=function(){return _0x31f089;};return a13_0x2ef5();}const a13_0x53c562=a13_0x3955;(function(_0x51fcae,_0x5b6026){const _0x5eeb3e=a13_0x3955,_0x7fd392=_0x51fcae();while(!![]){try{const _0x3bea11=-parseInt(_0x5eeb3e(0x123))/0x1+-parseInt(_0x5eeb3e(0x11b))/0x2*(-parseInt(_0x5eeb3e(0x119))/0x3)+-parseInt(_0x5eeb3e(0x12c))/0x4*(-parseInt(_0x5eeb3e(0x127))/0x5)+-parseInt(_0x5eeb3e(0x129))/0x6+-parseInt(_0x5eeb3e(0x11c))/0x7+-parseInt(_0x5eeb3e(0x126))/0x8*(-parseInt(_0x5eeb3e(0x12e))/0x9)+parseInt(_0x5eeb3e(0x124))/0xa;if(_0x3bea11===_0x5b6026)break;else _0x7fd392['push'](_0x7fd392['shift']());}catch(_0x5ea8e8){_0x7fd392['push'](_0x7fd392['shift']());}}}(a13_0x2ef5,0x2a5b9));function a13_0x3955(_0x54b937,_0x2181f2){const _0x2ef552=a13_0x2ef5();return a13_0x3955=function(_0x39556c,_0x296d5f){_0x39556c=_0x39556c-0x119;let _0x321507=_0x2ef552[_0x39556c];return _0x321507;},a13_0x3955(_0x54b937,_0x2181f2);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x53c562(0x12f)]=a13_0x53c562(0x11e),exports[a13_0x53c562(0x12a)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x53c562(0x128)]=function(_0x41f1ad){const _0x2f8e5e=a13_0x53c562,_0x4aedb0={};_0x4aedb0[_0x2f8e5e(0x125)]=_0x2f8e5e(0x11f),_0x4aedb0[_0x2f8e5e(0x122)]=_0x2f8e5e(0x12b);const _0x3cf274=_0x4aedb0;return _0x41f1ad['commandDir'](_0x3cf274[_0x2f8e5e(0x125)])[_0x2f8e5e(0x11d)]()[_0x2f8e5e(0x120)](HELP_HEADER_MESSAGE['list'][_0x2f8e5e(0x11a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f8e5e(0x121)]()[_0x2f8e5e(0x12d)]()[_0x2f8e5e(0x12b)](_0x3cf274[_0x2f8e5e(0x122)]);},exports['handler']=function(_0x3231b8){};
1
+ function a13_0x1a62(){const _0x1ff32a=['16xVrnlW','1231882BcGdmT','strict','recommendCommands','demandCommand','desc','list','../config/constants','root','handler','rJJep','14540643ZpqJIG','List\x20down\x20the\x20Grid\x20resources.','4794432dJHDfW','1PyPoil','usage','2558375jzNGNA','commandDir','1442756YerOmC','WdYQE','help','1625004RxnCnh','1507723btPIgG'];a13_0x1a62=function(){return _0x1ff32a;};return a13_0x1a62();}function a13_0x3777(_0x367234,_0x3ba72c){const _0x1a6295=a13_0x1a62();return a13_0x3777=function(_0x377798,_0x33b5ec){_0x377798=_0x377798-0x188;let _0x14ecbf=_0x1a6295[_0x377798];return _0x14ecbf;},a13_0x3777(_0x367234,_0x3ba72c);}const a13_0x3d3998=a13_0x3777;(function(_0x5c4e0f,_0x56f52c){const _0x1a7238=a13_0x3777,_0x55eba5=_0x5c4e0f();while(!![]){try{const _0x3dc71b=parseInt(_0x1a7238(0x18d))/0x1*(parseInt(_0x1a7238(0x197))/0x2)+-parseInt(_0x1a7238(0x194))/0x3+-parseInt(_0x1a7238(0x191))/0x4+-parseInt(_0x1a7238(0x18f))/0x5+-parseInt(_0x1a7238(0x18c))/0x6+parseInt(_0x1a7238(0x195))/0x7*(parseInt(_0x1a7238(0x196))/0x8)+parseInt(_0x1a7238(0x18a))/0x9;if(_0x3dc71b===_0x56f52c)break;else _0x55eba5['push'](_0x55eba5['shift']());}catch(_0x12ab85){_0x55eba5['push'](_0x55eba5['shift']());}}}(a13_0x1a62,0x6dada));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3d3998(0x19d));exports['command']=a13_0x3d3998(0x19c),exports[a13_0x3d3998(0x19b)]=a13_0x3d3998(0x18b),exports['builder']=function(_0x343ffe){const _0x36cf2e=a13_0x3d3998,_0x138f7e={};_0x138f7e[_0x36cf2e(0x189)]='list_commands',_0x138f7e[_0x36cf2e(0x192)]=_0x36cf2e(0x193);const _0x1a4fde=_0x138f7e;return _0x343ffe[_0x36cf2e(0x190)](_0x1a4fde[_0x36cf2e(0x189)])[_0x36cf2e(0x19a)]()[_0x36cf2e(0x18e)](HELP_HEADER_MESSAGE[_0x36cf2e(0x19c)][_0x36cf2e(0x19e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x36cf2e(0x199)]()[_0x36cf2e(0x198)]()[_0x36cf2e(0x193)](_0x1a4fde[_0x36cf2e(0x192)]);},exports[a13_0x3d3998(0x188)]=function(_0x7c7a50){};
@@ -1 +1 @@
1
- const a14_0x340354=a14_0x9b30;function a14_0xa0df(){const _0xd0be42=['table','FYukK','qmkfv','got','FOZTx','dHdkc','xinQJ','push','command','4lONheH','GET','handler','4957870xUtDyB','481644FmtECi','username','bstackAccesskey','4360326YItXDt','existsSync','stack','region','3022173JCICfK','wrbMK','exit','ndTxJ','readFileSync','log','../../utils/instrumentationUtils','cloud-provider','Failed\x20to\x20list\x20resources!\x20Error:\x20','1265105bWJFTk','forEach','concurrency','45FaTHRl','grid-profile-name','/packages/cli/get-all-grid-profiles','boolean','init-not-called','desc','ckdmB','INFO','WayOF','HgOLu','cloudProvider','server-error','name','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','help','all-grid-profiles','allGridProfiles','vGMCf','AFdxH','ERROR','body','1151373niUSza','tWOna','Browserstack','grid-profiles','gridProfile','list-grid-profiles-called','2179878YMfgsU','iJbTw','statusCode','mhgLg','description','options','RTfrE','waavy','https://','16WVShIe','stringify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nCbPJ','olaOn','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','error','NmNmI','list','bstackUsername','CwgUZ','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','pzTdT','yoBCp','epilogue','password'];a14_0xa0df=function(){return _0xd0be42;};return a14_0xa0df();}function a14_0x9b30(_0x4e0773,_0x3cc9d6){const _0xa0df45=a14_0xa0df();return a14_0x9b30=function(_0x9b309,_0x16657e){_0x9b309=_0x9b309-0x114;let _0x1829dc=_0xa0df45[_0x9b309];return _0x1829dc;},a14_0x9b30(_0x4e0773,_0x3cc9d6);}(function(_0x276d62,_0x5e9667){const _0x747758=a14_0x9b30,_0x2b6ac7=_0x276d62();while(!![]){try{const _0x45abc1=-parseInt(_0x747758(0x14d))/0x1+-parseInt(_0x747758(0x127))/0x2+parseInt(_0x747758(0x121))/0x3*(-parseInt(_0x747758(0x149))/0x4)+parseInt(_0x747758(0x15d))/0x5+parseInt(_0x747758(0x150))/0x6+-parseInt(_0x747758(0x154))/0x7*(parseInt(_0x747758(0x130))/0x8)+parseInt(_0x747758(0x160))/0x9*(parseInt(_0x747758(0x14c))/0xa);if(_0x45abc1===_0x5e9667)break;else _0x2b6ac7['push'](_0x2b6ac7['shift']());}catch(_0x34afb8){_0x2b6ac7['push'](_0x2b6ac7['shift']());}}}(a14_0xa0df,0x9c351));const fs=require('fs'),got=require(a14_0x340354(0x143)),{table}=require(a14_0x340354(0x140)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x340354(0x15a));exports[a14_0x340354(0x148)]=a14_0x340354(0x124),exports[a14_0x340354(0x165)]=a14_0x340354(0x13b),exports['builder']=function(_0x1d35d9){const _0x49e3f0=a14_0x340354,_0x11e5b1={};_0x11e5b1['olaOn']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x11e5b1[_0x49e3f0(0x13a)]=_0x49e3f0(0x163),_0x11e5b1[_0x49e3f0(0x12d)]=_0x49e3f0(0x11a);const _0x3d0268=_0x11e5b1,_0x338c4d={};_0x338c4d[_0x49e3f0(0x12b)]=_0x3d0268[_0x49e3f0(0x134)],_0x338c4d['type']=_0x3d0268[_0x49e3f0(0x13a)];const _0xc0dc93={};return _0xc0dc93[_0x49e3f0(0x11b)]=_0x338c4d,_0x1d35d9['usage'](HELP_HEADER_MESSAGE[_0x49e3f0(0x138)][_0x49e3f0(0x125)])[_0x49e3f0(0x13e)](HELP_FOOTER_MESSAGE)[_0x49e3f0(0x12c)](_0xc0dc93)[_0x49e3f0(0x11a)](_0x3d0268['RTfrE'])['argv'];},exports[a14_0x340354(0x14b)]=async function(_0x155317){const _0x1a885c=a14_0x340354,_0x44a3e3={'nCbPJ':function(_0x32519b){return _0x32519b();},'dHdkc':function(_0x1cd374){return _0x1cd374();},'wrbMK':_0x1a885c(0x132),'mhgLg':function(_0x18e637,_0x538ed9,_0x3404fe,_0x494afb,_0x4861c0,_0x51413f,_0x2d3f44){return _0x18e637(_0x538ed9,_0x3404fe,_0x494afb,_0x4861c0,_0x51413f,_0x2d3f44);},'WayOF':_0x1a885c(0x126),'vGMCf':_0x1a885c(0x164),'IgePp':function(_0x37eed2){return _0x37eed2();},'VPzSt':_0x1a885c(0x14a),'qmkfv':function(_0x15603d,_0x494d32,_0x370d35){return _0x15603d(_0x494d32,_0x370d35);},'HperE':function(_0xa17828,_0x5be253){return _0xa17828!==_0x5be253;},'AFdxH':function(_0xfa5231,_0x8a6edc){return _0xfa5231!==_0x8a6edc;},'HgOLu':function(_0x5bc106,_0x3e3f37){return _0x5bc106===_0x3e3f37;},'tWOna':_0x1a885c(0x135),'yMikE':_0x1a885c(0x161),'ckdmB':_0x1a885c(0x15b),'pzTdT':'region','yoBCp':_0x1a885c(0x15f),'FOZTx':function(_0x9d714b,_0x4e7a42){return _0x9d714b(_0x4e7a42);},'uqgYP':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xinQJ':function(_0x5bd7a7,_0x240d3a,_0x136fbf,_0x203e0e,_0x48f8f9,_0xe7b565,_0x300105){return _0x5bd7a7(_0x240d3a,_0x136fbf,_0x203e0e,_0x48f8f9,_0xe7b565,_0x300105);},'NmNmI':'unauthorised','iJbTw':function(_0x51fe25,_0x35b8fb,_0x49a14d,_0x4d50a6,_0xafa04f,_0x25bdc5,_0x7308db){return _0x51fe25(_0x35b8fb,_0x49a14d,_0x4d50a6,_0xafa04f,_0x25bdc5,_0x7308db);},'ndTxJ':_0x1a885c(0x117),'FYukK':function(_0x5189e3,_0x25cf69,_0x5b5fff,_0x5ab177,_0x4926e6,_0x50eb40,_0x2043b9){return _0x5189e3(_0x25cf69,_0x5b5fff,_0x5ab177,_0x4926e6,_0x50eb40,_0x2043b9);},'waavy':'unknown-error'};try{global_registry['requestId']=_0x44a3e3[_0x1a885c(0x133)](uuidv4);let _0x1c5e8f='https://'+AG_API_URL+'/packages/cli/get-grid-profiles';_0x155317[_0x1a885c(0x11c)]&&(_0x1c5e8f=_0x1a885c(0x12f)+AG_API_URL+_0x1a885c(0x162));!fs[_0x1a885c(0x151)](_0x44a3e3[_0x1a885c(0x145)](getCredentialsPath))&&(console[_0x1a885c(0x136)](_0x44a3e3[_0x1a885c(0x155)]),await _0x44a3e3[_0x1a885c(0x12a)](sendInstrumentationEvent,_0x155317,_0x44a3e3['WayOF'],messageTypes[_0x1a885c(0x11f)],_0x44a3e3[_0x1a885c(0x11d)],null,_0x155317),process['exit'](0x1));const _0x5e3518=JSON['parse'](fs[_0x1a885c(0x158)](_0x44a3e3['IgePp'](getCredentialsPath))),_0x2d1aa9={'method':_0x44a3e3['VPzSt'],'headers':_0x44a3e3[_0x1a885c(0x142)](getAuthHeader,_0x5e3518[_0x1a885c(0x123)][_0x1a885c(0x14e)],_0x5e3518['Browserstack'][_0x1a885c(0x13f)]),'throwHttpErrors':![]};global_registry[_0x1a885c(0x139)]=_0x5e3518[_0x1a885c(0x123)]['username'],global_registry[_0x1a885c(0x14f)]=_0x5e3518['Browserstack'][_0x1a885c(0x13f)],_0x44a3e3[_0x1a885c(0x12a)](sendInstrumentationEvent,_0x155317,_0x44a3e3[_0x1a885c(0x114)],messageTypes[_0x1a885c(0x167)],null,null,_0x155317);const _0x4a6d07=await _0x44a3e3['qmkfv'](got,_0x1c5e8f,_0x2d1aa9);if(_0x44a3e3['HperE'](_0x4a6d07,null)&&_0x44a3e3[_0x1a885c(0x11e)](_0x4a6d07,undefined)&&_0x44a3e3[_0x1a885c(0x115)](_0x4a6d07[_0x1a885c(0x129)],0xc8)){const _0x589ba3=JSON['parse'](_0x4a6d07[_0x1a885c(0x120)]);console['log'](_0x44a3e3[_0x1a885c(0x122)]);const _0x19e9cc=[];_0x19e9cc[_0x1a885c(0x147)]([_0x44a3e3['yMikE'],_0x44a3e3[_0x1a885c(0x166)],_0x44a3e3[_0x1a885c(0x13c)],_0x44a3e3[_0x1a885c(0x13d)]]),_0x589ba3[_0x1a885c(0x15e)](_0x4dad91=>{const _0xca55bd=_0x1a885c;_0x19e9cc[_0xca55bd(0x147)]([_0x4dad91[_0xca55bd(0x118)],_0x4dad91[_0xca55bd(0x116)],_0x4dad91[_0xca55bd(0x153)],_0x4dad91[_0xca55bd(0x15f)]]);}),console[_0x1a885c(0x159)](_0x44a3e3[_0x1a885c(0x144)](table,_0x19e9cc)),process[_0x1a885c(0x156)](0x0);}_0x44a3e3[_0x1a885c(0x115)](_0x4a6d07[_0x1a885c(0x129)],0x191)&&(console[_0x1a885c(0x136)](_0x44a3e3['uqgYP']),await _0x44a3e3[_0x1a885c(0x146)](sendInstrumentationEvent,_0x155317,_0x44a3e3[_0x1a885c(0x114)],messageTypes[_0x1a885c(0x11f)],_0x44a3e3[_0x1a885c(0x137)],null,_0x155317),process['exit'](0x1)),console[_0x1a885c(0x136)](_0x1a885c(0x119)+JSON[_0x1a885c(0x131)](_0x4a6d07)),await _0x44a3e3[_0x1a885c(0x128)](sendInstrumentationEvent,_0x155317,_0x44a3e3[_0x1a885c(0x114)],messageTypes['ERROR'],_0x44a3e3[_0x1a885c(0x157)],_0x4a6d07,_0x155317),process['exit'](0x1);}catch(_0x3dbe82){console['error'](_0x1a885c(0x15c)+_0x3dbe82[_0x1a885c(0x152)]),await _0x44a3e3[_0x1a885c(0x141)](sendInstrumentationEvent,_0x155317,_0x44a3e3[_0x1a885c(0x114)],messageTypes['ERROR'],_0x44a3e3[_0x1a885c(0x12e)],_0x3dbe82,_0x155317),process[_0x1a885c(0x156)](0x1);}};
1
+ const a14_0x1cf65c=a14_0x5480;function a14_0x3448(){const _0x49f5f4=['all-grid-profiles','existsSync','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','unauthorised','table','../../utils/utilityMethods','ycrtp','../../config/constants','kOtOf','BNNlK','Browserstack','vKNNh','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','163056wbfKyO','GET','FrFoY','type','log','unknown-error','parse','709723fhYpzl','CXUoM','concurrency','bstackUsername','body','handler','exit','grid-profile-name','gridProfile','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','qHZSZ','loDFB','command','init-not-called','PnHib','60BDfrMr','1763536dRAdkN','80082BUoVHx','stack','Failed\x20to\x20list\x20resources!\x20Error:\x20','options','list','forEach','statusCode','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloud-provider','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','username','IMxwt','builder','PLIxt','help','6989160DEQuII','cloudProvider','desc','ZrycE','../../utils/instrumentationUtils','readFileSync','push','mcBob','102kWEYIk','HsdIY','9EsEQhz','region','boolean','bQVoj','grid-profiles','213105nlXnrq','CTIrv','DLMFv','epilogue','got','cJTHc','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','1856984cxHFtB','server-error','error','avuSl','ERROR','https://'];a14_0x3448=function(){return _0x49f5f4;};return a14_0x3448();}function a14_0x5480(_0x479bd6,_0x21fb5e){const _0x344809=a14_0x3448();return a14_0x5480=function(_0x548032,_0x4574c5){_0x548032=_0x548032-0x76;let _0x3959fe=_0x344809[_0x548032];return _0x3959fe;},a14_0x5480(_0x479bd6,_0x21fb5e);}(function(_0x3472ae,_0x531730){const _0x20d926=a14_0x5480,_0x56f9b0=_0x3472ae();while(!![]){try{const _0x662e47=parseInt(_0x20d926(0x88))/0x1+parseInt(_0x20d926(0xc8))/0x2+parseInt(_0x20d926(0xa0))/0x3*(-parseInt(_0x20d926(0x9e))/0x4)+parseInt(_0x20d926(0xbf))/0x5*(-parseInt(_0x20d926(0xb8))/0x6)+parseInt(_0x20d926(0x8f))/0x7+parseInt(_0x20d926(0x9f))/0x8*(-parseInt(_0x20d926(0xba))/0x9)+parseInt(_0x20d926(0xb0))/0xa;if(_0x662e47===_0x531730)break;else _0x56f9b0['push'](_0x56f9b0['shift']());}catch(_0x3ac475){_0x56f9b0['push'](_0x56f9b0['shift']());}}}(a14_0x3448,0x8568c));const fs=require('fs'),got=require(a14_0x1cf65c(0xc3)),{table}=require(a14_0x1cf65c(0x7f)),{v4:uuidv4}=require(a14_0x1cf65c(0xc5)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1cf65c(0x82)),{getCredentialsPath,getAuthHeader}=require(a14_0x1cf65c(0x80)),{sendInstrumentationEvent}=require(a14_0x1cf65c(0xb4));exports[a14_0x1cf65c(0x9b)]=a14_0x1cf65c(0xbe),exports[a14_0x1cf65c(0xb2)]=a14_0x1cf65c(0x98),exports[a14_0x1cf65c(0xad)]=function(_0x4269f7){const _0x152ec0=a14_0x1cf65c,_0x343168={};_0x343168[_0x152ec0(0xb9)]=_0x152ec0(0xaa),_0x343168[_0x152ec0(0x99)]=_0x152ec0(0xbc),_0x343168[_0x152ec0(0xc4)]=_0x152ec0(0xaf);const _0x4377a8=_0x343168,_0x4805ce={};_0x4805ce['description']=_0x4377a8['HsdIY'],_0x4805ce[_0x152ec0(0x8b)]=_0x4377a8[_0x152ec0(0x99)];const _0x10d7e3={};return _0x10d7e3[_0x152ec0(0x7b)]=_0x4805ce,_0x4269f7['usage'](HELP_HEADER_MESSAGE[_0x152ec0(0xa4)][_0x152ec0(0x97)])[_0x152ec0(0xc2)](HELP_FOOTER_MESSAGE)[_0x152ec0(0xa3)](_0x10d7e3)[_0x152ec0(0xaf)](_0x4377a8[_0x152ec0(0xc4)])['argv'];},exports[a14_0x1cf65c(0x94)]=async function(_0x22bf17){const _0x5c6a24=a14_0x1cf65c,_0x54cbbc={'loDFB':function(_0x40bb84){return _0x40bb84();},'SCWlk':_0x5c6a24(0xa8),'kOtOf':function(_0x3c1d5d,_0x4fdca4,_0x26ad49,_0x3b7b33,_0x9200ae,_0x5a6ac9,_0x29f427){return _0x3c1d5d(_0x4fdca4,_0x26ad49,_0x3b7b33,_0x9200ae,_0x5a6ac9,_0x29f427);},'DLMFv':'list-grid-profiles-called','rbnMx':_0x5c6a24(0x9c),'oHmrO':_0x5c6a24(0x89),'PLIxt':function(_0x15a831,_0x5f3bcd,_0x307e72){return _0x15a831(_0x5f3bcd,_0x307e72);},'CXUoM':function(_0x3a9b79,_0x3217d8,_0x24e0a6){return _0x3a9b79(_0x3217d8,_0x24e0a6);},'fxLYI':function(_0x581cfc,_0x286abc){return _0x581cfc!==_0x286abc;},'ycrtp':function(_0x4bfd58,_0x5cef09){return _0x4bfd58!==_0x5cef09;},'BNNlK':function(_0x13d209,_0x23b376){return _0x13d209===_0x23b376;},'mcBob':_0x5c6a24(0x7d),'LaGwU':_0x5c6a24(0x96),'PnHib':_0x5c6a24(0xa9),'IMxwt':_0x5c6a24(0xbb),'HWZEM':_0x5c6a24(0x91),'vKNNh':function(_0x1366df,_0x2ca518){return _0x1366df(_0x2ca518);},'CTIrv':function(_0x2e37e7,_0x2a03af){return _0x2e37e7===_0x2a03af;},'FrFoY':_0x5c6a24(0x87),'avuSl':_0x5c6a24(0x7e),'bQVoj':function(_0x353507,_0x5c8336,_0x293947,_0x5b2e13,_0x2bc5e8,_0x53ea58,_0x1b98df){return _0x353507(_0x5c8336,_0x293947,_0x5b2e13,_0x2bc5e8,_0x53ea58,_0x1b98df);},'ZrycE':_0x5c6a24(0x76),'HWgEU':_0x5c6a24(0x8d)};try{global_registry['requestId']=_0x54cbbc['loDFB'](uuidv4);let _0x4fe016=_0x5c6a24(0x7a)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x22bf17['allGridProfiles']&&(_0x4fe016='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x5c6a24(0x7c)](_0x54cbbc[_0x5c6a24(0x9a)](getCredentialsPath))&&(console[_0x5c6a24(0x77)](_0x54cbbc['SCWlk']),await _0x54cbbc['kOtOf'](sendInstrumentationEvent,_0x22bf17,_0x54cbbc[_0x5c6a24(0xc1)],messageTypes[_0x5c6a24(0x79)],_0x54cbbc['rbnMx'],null,_0x22bf17),process['exit'](0x1));const _0x1d617d=JSON[_0x5c6a24(0x8e)](fs[_0x5c6a24(0xb5)](_0x54cbbc[_0x5c6a24(0x9a)](getCredentialsPath))),_0x436c22={'method':_0x54cbbc['oHmrO'],'headers':_0x54cbbc[_0x5c6a24(0xae)](getAuthHeader,_0x1d617d['Browserstack']['username'],_0x1d617d[_0x5c6a24(0x85)]['password']),'throwHttpErrors':![]};global_registry[_0x5c6a24(0x92)]=_0x1d617d[_0x5c6a24(0x85)][_0x5c6a24(0xab)],global_registry[_0x5c6a24(0xc7)]=_0x1d617d['Browserstack']['password'],_0x54cbbc['kOtOf'](sendInstrumentationEvent,_0x22bf17,_0x54cbbc[_0x5c6a24(0xc1)],messageTypes['INFO'],null,null,_0x22bf17);const _0x536de7=await _0x54cbbc[_0x5c6a24(0x90)](got,_0x4fe016,_0x436c22);if(_0x54cbbc['fxLYI'](_0x536de7,null)&&_0x54cbbc[_0x5c6a24(0x81)](_0x536de7,undefined)&&_0x54cbbc[_0x5c6a24(0x84)](_0x536de7['statusCode'],0xc8)){const _0x17bf78=JSON['parse'](_0x536de7[_0x5c6a24(0x93)]);console[_0x5c6a24(0x8c)](_0x54cbbc[_0x5c6a24(0xb7)]);const _0x5ca3be=[];_0x5ca3be['push']([_0x54cbbc['LaGwU'],_0x54cbbc[_0x5c6a24(0x9d)],_0x54cbbc[_0x5c6a24(0xac)],_0x54cbbc['HWZEM']]),_0x17bf78[_0x5c6a24(0xa5)](_0x34a160=>{const _0x37fa18=_0x5c6a24;_0x5ca3be[_0x37fa18(0xb6)]([_0x34a160[_0x37fa18(0xa7)],_0x34a160[_0x37fa18(0xb1)],_0x34a160[_0x37fa18(0xbb)],_0x34a160['concurrency']]);}),console['log'](_0x54cbbc[_0x5c6a24(0x86)](table,_0x5ca3be)),process[_0x5c6a24(0x95)](0x0);}_0x54cbbc[_0x5c6a24(0xc0)](_0x536de7[_0x5c6a24(0xa6)],0x191)&&(console['error'](_0x54cbbc[_0x5c6a24(0x8a)]),await _0x54cbbc[_0x5c6a24(0x83)](sendInstrumentationEvent,_0x22bf17,_0x54cbbc['DLMFv'],messageTypes[_0x5c6a24(0x79)],_0x54cbbc[_0x5c6a24(0x78)],null,_0x22bf17),process[_0x5c6a24(0x95)](0x1)),console['error'](_0x5c6a24(0xc6)+JSON['stringify'](_0x536de7)),await _0x54cbbc[_0x5c6a24(0xbd)](sendInstrumentationEvent,_0x22bf17,_0x54cbbc['DLMFv'],messageTypes[_0x5c6a24(0x79)],_0x54cbbc[_0x5c6a24(0xb3)],_0x536de7,_0x22bf17),process[_0x5c6a24(0x95)](0x1);}catch(_0x325814){console[_0x5c6a24(0x77)](_0x5c6a24(0xa2)+_0x325814[_0x5c6a24(0xa1)]),await _0x54cbbc[_0x5c6a24(0x83)](sendInstrumentationEvent,_0x22bf17,_0x54cbbc[_0x5c6a24(0xc1)],messageTypes[_0x5c6a24(0x79)],_0x54cbbc['HWgEU'],_0x325814,_0x22bf17),process[_0x5c6a24(0x95)](0x1);}};
@@ -1 +1 @@
1
- const a15_0x247c8f=a15_0x20ba;(function(_0x54d966,_0x2fdf3f){const _0x1546b3=a15_0x20ba,_0x5e0447=_0x54d966();while(!![]){try{const _0x2255f4=parseInt(_0x1546b3(0x17a))/0x1+-parseInt(_0x1546b3(0x16b))/0x2*(-parseInt(_0x1546b3(0x15a))/0x3)+parseInt(_0x1546b3(0x180))/0x4*(parseInt(_0x1546b3(0x184))/0x5)+-parseInt(_0x1546b3(0x163))/0x6*(-parseInt(_0x1546b3(0x160))/0x7)+parseInt(_0x1546b3(0x147))/0x8*(-parseInt(_0x1546b3(0x190))/0x9)+-parseInt(_0x1546b3(0x162))/0xa+parseInt(_0x1546b3(0x172))/0xb;if(_0x2255f4===_0x2fdf3f)break;else _0x5e0447['push'](_0x5e0447['shift']());}catch(_0x146e25){_0x5e0447['push'](_0x5e0447['shift']());}}}(a15_0x340c,0x3c70c));const fs=require('fs'),got=require(a15_0x247c8f(0x158)),{table}=require(a15_0x247c8f(0x152)),{v4:uuidv4}=require(a15_0x247c8f(0x18b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x247c8f(0x169)),{getCredentialsPath,getAuthHeader}=require(a15_0x247c8f(0x19f)),{sendInstrumentationEvent}=require(a15_0x247c8f(0x197));function a15_0x340c(){const _0x12043e=['grid-name','help','../../utils/instrumentationUtils','command','boolean','options','WnOvo','list','pArzZ','VJcvk','../../utils/utilityMethods','6744WaamyE','forEach','HOmtB','status','readFileSync','PWwnD','init-not-called','Browserstack','bstackUsername','exit','SxCqO','table','push','ERROR','ynBFD','allGrids','FTxWj','got','stringify','3DpLJod','Zvvhk','cKKmL','parse','wtTpL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1660939vKQLvN','eVSvU','4204260fLQBza','6qcDKHA','type','usage','sYMZr','/packages/cli/get-all-grids','grid-id','../../config/constants','description','324482YALxED','iYEQd','handler','running','ftnjN','clusterName','cluster-name','4083717BOOSAg','epilogue','LyuYH','password','argv','requestId','all-grids','grids','26264bTQKfE','server-error','/packages/cli/get-grids','unknown-error','body','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','36084SEpffm','error','unauthorised','username','135NaZFkY','Failed\x20to\x20list\x20resources!\x20Error:\x20','qCWKn','LJAWN','list-grids-called','statusCode','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','uuid','wAXbX','IJbSn','queued','desc','3978HKsYjp','name','https://','IlGNA','GET'];a15_0x340c=function(){return _0x12043e;};return a15_0x340c();}function a15_0x20ba(_0x3fbd0f,_0x20c510){const _0x340cfd=a15_0x340c();return a15_0x20ba=function(_0x20ba25,_0x36d0f2){_0x20ba25=_0x20ba25-0x147;let _0xf53e85=_0x340cfd[_0x20ba25];return _0xf53e85;},a15_0x20ba(_0x3fbd0f,_0x20c510);}exports[a15_0x247c8f(0x198)]=a15_0x247c8f(0x179),exports[a15_0x247c8f(0x18f)]=a15_0x247c8f(0x17f),exports['builder']=function(_0x5d9387){const _0x955c28=a15_0x247c8f,_0x1f5605={};_0x1f5605['IJbSn']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1f5605[_0x955c28(0x19b)]=_0x955c28(0x199),_0x1f5605[_0x955c28(0x174)]=_0x955c28(0x196);const _0xe8fc0e=_0x1f5605,_0x51bfbd={};_0x51bfbd[_0x955c28(0x16a)]=_0xe8fc0e[_0x955c28(0x18d)],_0x51bfbd[_0x955c28(0x164)]=_0xe8fc0e[_0x955c28(0x19b)];const _0x46356a={};return _0x46356a[_0x955c28(0x178)]=_0x51bfbd,_0x5d9387[_0x955c28(0x165)](HELP_HEADER_MESSAGE[_0x955c28(0x19c)]['grid'])[_0x955c28(0x173)](HELP_FOOTER_MESSAGE)[_0x955c28(0x19a)](_0x46356a)[_0x955c28(0x196)](_0xe8fc0e[_0x955c28(0x174)])[_0x955c28(0x176)];},exports[a15_0x247c8f(0x16d)]=async function(_0x55d9b2){const _0x3fbceb=a15_0x247c8f,_0x425741={'IlGNA':function(_0x5ae64b){return _0x5ae64b();},'pArzZ':function(_0x887b32){return _0x887b32();},'KeErZ':_0x3fbceb(0x18a),'wtTpL':function(_0x51e9a8,_0x1d379f,_0x42ff41,_0x1e7459,_0x19ce4d,_0x36c5d1,_0xa5addd){return _0x51e9a8(_0x1d379f,_0x42ff41,_0x1e7459,_0x19ce4d,_0x36c5d1,_0xa5addd);},'eVSvU':_0x3fbceb(0x188),'ynBFD':_0x3fbceb(0x14d),'qCWKn':function(_0x353eb4){return _0x353eb4();},'KVtyV':_0x3fbceb(0x194),'cKKmL':function(_0x341134,_0x5da467,_0x494c5d){return _0x341134(_0x5da467,_0x494c5d);},'iYEQd':function(_0x1e0107,_0x382c42,_0x2400eb,_0x176f5a,_0x10bac1,_0x406f0b,_0x4d7e15){return _0x1e0107(_0x382c42,_0x2400eb,_0x176f5a,_0x10bac1,_0x406f0b,_0x4d7e15);},'FTxWj':function(_0x348345,_0x90d4a7){return _0x348345!==_0x90d4a7;},'bkRie':function(_0x14960a,_0x47185b){return _0x14960a===_0x47185b;},'jYVHT':'\x0aFound\x20the\x20following\x20grids:\x0a','VJcvk':_0x3fbceb(0x168),'sYMZr':_0x3fbceb(0x195),'quYxd':_0x3fbceb(0x14a),'ftnjN':_0x3fbceb(0x16e),'wAXbX':_0x3fbceb(0x18e),'RZiRN':_0x3fbceb(0x171),'HOmtB':function(_0x1f15ff,_0xc7674f){return _0x1f15ff(_0xc7674f);},'PWwnD':_0x3fbceb(0x15f),'LJAWN':function(_0x19e15c,_0x267b61,_0x21e4e1,_0x5f540f,_0x163654,_0x1fb60a,_0x248430){return _0x19e15c(_0x267b61,_0x21e4e1,_0x5f540f,_0x163654,_0x1fb60a,_0x248430);},'LtbiQ':_0x3fbceb(0x182),'SxCqO':_0x3fbceb(0x17b),'Zvvhk':_0x3fbceb(0x17d)};try{global_registry[_0x3fbceb(0x177)]=_0x425741[_0x3fbceb(0x193)](uuidv4);!fs['existsSync'](_0x425741[_0x3fbceb(0x19d)](getCredentialsPath))&&(console['error'](_0x425741['KeErZ']),await _0x425741[_0x3fbceb(0x15e)](sendInstrumentationEvent,_0x55d9b2,_0x425741[_0x3fbceb(0x161)],messageTypes[_0x3fbceb(0x154)],_0x425741[_0x3fbceb(0x155)],null,_0x55d9b2),process[_0x3fbceb(0x150)](0x1));const _0x1eb213=JSON[_0x3fbceb(0x15d)](fs[_0x3fbceb(0x14b)](_0x425741[_0x3fbceb(0x186)](getCredentialsPath)));let _0x9fd8f4=_0x3fbceb(0x192)+AG_API_URL+_0x3fbceb(0x17c);_0x55d9b2[_0x3fbceb(0x156)]&&(_0x9fd8f4=_0x3fbceb(0x192)+AG_API_URL+_0x3fbceb(0x167));const _0x564c28={'method':_0x425741['KVtyV'],'headers':_0x425741[_0x3fbceb(0x15c)](getAuthHeader,_0x1eb213['Browserstack'][_0x3fbceb(0x183)],_0x1eb213[_0x3fbceb(0x14e)][_0x3fbceb(0x175)]),'throwHttpErrors':![]};global_registry[_0x3fbceb(0x14f)]=_0x1eb213[_0x3fbceb(0x14e)][_0x3fbceb(0x183)],global_registry['bstackAccesskey']=_0x1eb213[_0x3fbceb(0x14e)][_0x3fbceb(0x175)],_0x425741['iYEQd'](sendInstrumentationEvent,_0x55d9b2,_0x425741[_0x3fbceb(0x161)],messageTypes['INFO'],null,null,_0x55d9b2);const _0x1e3364=await _0x425741['cKKmL'](got,_0x9fd8f4,_0x564c28);if(_0x425741[_0x3fbceb(0x157)](_0x1e3364,null)&&_0x425741[_0x3fbceb(0x157)](_0x1e3364,undefined)&&_0x425741['bkRie'](_0x1e3364[_0x3fbceb(0x189)],0xc8)){const _0x467f10=JSON[_0x3fbceb(0x15d)](_0x1e3364[_0x3fbceb(0x17e)]);console['log'](_0x425741['jYVHT']);const _0x335b06=[];_0x335b06[_0x3fbceb(0x153)]([_0x425741[_0x3fbceb(0x19e)],_0x425741[_0x3fbceb(0x166)],_0x425741['quYxd'],_0x425741[_0x3fbceb(0x16f)],_0x425741[_0x3fbceb(0x18c)],_0x425741['RZiRN']]),_0x467f10[_0x3fbceb(0x148)](_0x399553=>{const _0xb80f5f=_0x3fbceb;_0x335b06['push']([_0x399553['id'],_0x399553[_0xb80f5f(0x191)],_0x399553[_0xb80f5f(0x14a)],_0x399553[_0xb80f5f(0x16e)],_0x399553[_0xb80f5f(0x18e)],_0x399553[_0xb80f5f(0x170)]]);}),console['log'](_0x425741[_0x3fbceb(0x149)](table,_0x335b06)),process['exit'](0x0);}_0x425741['bkRie'](_0x1e3364[_0x3fbceb(0x189)],0x191)&&(console[_0x3fbceb(0x181)](_0x425741[_0x3fbceb(0x14c)]),await _0x425741['LJAWN'](sendInstrumentationEvent,_0x55d9b2,_0x425741[_0x3fbceb(0x161)],messageTypes[_0x3fbceb(0x154)],_0x425741['LtbiQ'],null,_0x55d9b2),process[_0x3fbceb(0x150)](0x1)),console[_0x3fbceb(0x181)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3fbceb(0x159)](_0x1e3364)),await _0x425741[_0x3fbceb(0x16c)](sendInstrumentationEvent,_0x55d9b2,_0x425741[_0x3fbceb(0x161)],messageTypes[_0x3fbceb(0x154)],_0x425741[_0x3fbceb(0x151)],_0x1e3364,_0x55d9b2),process[_0x3fbceb(0x150)](0x1);}catch(_0x4e66b6){console[_0x3fbceb(0x181)](_0x3fbceb(0x185)+_0x4e66b6['stack']),await _0x425741[_0x3fbceb(0x187)](sendInstrumentationEvent,_0x55d9b2,_0x425741[_0x3fbceb(0x161)],messageTypes[_0x3fbceb(0x154)],_0x425741[_0x3fbceb(0x15b)],_0x4e66b6,_0x55d9b2),process[_0x3fbceb(0x150)](0x1);}};
1
+ const a15_0x250a56=a15_0x5d5c;function a15_0x4e5a(){const _0x4b430a=['queued','/packages/cli/get-grids','exit','KRHvB','bstackUsername','unknown-error','epilogue','grid','list','parse','4293940RnvDeX','8033625MEciFL','14147960uvHuLy','../../config/constants','540192joZetr','arYaR','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','XKayJ','grid-id','egHmR','AfQYo','11238mzVpSk','grids','got','stringify','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RydzB','/packages/cli/get-all-grids','737417XvBDrd','Lgavk','LaiDZ','uuid','all-grids','../../utils/instrumentationUtils','PZYxs','builder','MHHuK','mFCvs','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','VRMNA','type','Ramgl','statusCode','init-not-called','forEach','command','4182536uMTrIq','help','push','szuaF','name','Browserstack','ERROR','yiPpJ','4610McAQks','status','list-grids-called','ulaxz','stack','\x0aFound\x20the\x20following\x20grids:\x0a','allGrids','readFileSync','GET','maNpP','options','server-error','requestId','uBInm','boolean','password','table','3ZaoDll','https://','eHYyb','gMijy','username','ocpsc','INFO','handler','desc','JAOZU','../../utils/utilityMethods','log'];a15_0x4e5a=function(){return _0x4b430a;};return a15_0x4e5a();}function a15_0x5d5c(_0x157fab,_0x55ade4){const _0x4e5a41=a15_0x4e5a();return a15_0x5d5c=function(_0x5d5cc6,_0x486f0f){_0x5d5cc6=_0x5d5cc6-0x1eb;let _0x445eff=_0x4e5a41[_0x5d5cc6];return _0x445eff;},a15_0x5d5c(_0x157fab,_0x55ade4);}(function(_0x852aa7,_0x1e0a15){const _0x5cfe05=a15_0x5d5c,_0x274843=_0x852aa7();while(!![]){try{const _0x3b37f4=-parseInt(_0x5cfe05(0x214))/0x1+parseInt(_0x5cfe05(0x204))/0x2*(parseInt(_0x5cfe05(0x23f))/0x3)+parseInt(_0x5cfe05(0x226))/0x4+-parseInt(_0x5cfe05(0x22e))/0x5*(parseInt(_0x5cfe05(0x20b))/0x6)+-parseInt(_0x5cfe05(0x200))/0x7+parseInt(_0x5cfe05(0x202))/0x8+parseInt(_0x5cfe05(0x201))/0x9;if(_0x3b37f4===_0x1e0a15)break;else _0x274843['push'](_0x274843['shift']());}catch(_0x3ca528){_0x274843['push'](_0x274843['shift']());}}}(a15_0x4e5a,0xdb823));const fs=require('fs'),got=require(a15_0x250a56(0x20d)),{table}=require(a15_0x250a56(0x23e)),{v4:uuidv4}=require(a15_0x250a56(0x217)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x250a56(0x203)),{getCredentialsPath,getAuthHeader}=require(a15_0x250a56(0x1f4)),{sendInstrumentationEvent}=require(a15_0x250a56(0x219));exports[a15_0x250a56(0x225)]=a15_0x250a56(0x20c),exports[a15_0x250a56(0x1f2)]=a15_0x250a56(0x206),exports[a15_0x250a56(0x21b)]=function(_0x3a24d3){const _0x40e5f8=a15_0x250a56,_0x484048={};_0x484048[_0x40e5f8(0x22d)]=_0x40e5f8(0x210),_0x484048[_0x40e5f8(0x1f3)]=_0x40e5f8(0x23c),_0x484048['EonWf']=_0x40e5f8(0x227);const _0x324fb9=_0x484048,_0x1f06d1={};_0x1f06d1['description']=_0x324fb9[_0x40e5f8(0x22d)],_0x1f06d1[_0x40e5f8(0x220)]=_0x324fb9['JAOZU'];const _0x1af8b6={};return _0x1af8b6[_0x40e5f8(0x218)]=_0x1f06d1,_0x3a24d3['usage'](HELP_HEADER_MESSAGE[_0x40e5f8(0x1fe)][_0x40e5f8(0x1fd)])[_0x40e5f8(0x1fc)](HELP_FOOTER_MESSAGE)[_0x40e5f8(0x238)](_0x1af8b6)['help'](_0x324fb9['EonWf'])['argv'];},exports[a15_0x250a56(0x1f1)]=async function(_0x20b27c){const _0xaaea17=a15_0x250a56,_0x98b1c2={'MHHuK':function(_0x32aa54){return _0x32aa54();},'mlUGK':function(_0x143a7c){return _0x143a7c();},'AfQYo':_0xaaea17(0x211),'Lgavk':function(_0xc65f27,_0x19734b,_0x2d1319,_0x5d6439,_0x145adf,_0x3ae44c,_0x57d70a){return _0xc65f27(_0x19734b,_0x2d1319,_0x5d6439,_0x145adf,_0x3ae44c,_0x57d70a);},'Ramgl':_0xaaea17(0x230),'KRHvB':_0xaaea17(0x223),'ulaxz':function(_0x2ee46f){return _0x2ee46f();},'zQgCP':_0xaaea17(0x236),'uBInm':function(_0x231d35,_0x16d77a,_0x46b9e5){return _0x231d35(_0x16d77a,_0x46b9e5);},'ocpsc':function(_0x299b56,_0x193ad5){return _0x299b56!==_0x193ad5;},'VRMNA':function(_0x5323d7,_0x94d5b3){return _0x5323d7===_0x94d5b3;},'RydzB':_0xaaea17(0x233),'maNpP':_0xaaea17(0x208),'gMijy':'grid-name','XKayJ':'status','arYaR':'running','egHmR':'queued','eHYyb':'cluster-name','LdTKH':function(_0x44668a,_0x167985){return _0x44668a(_0x167985);},'mFCvs':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LaiDZ':'unauthorised','szuaF':_0xaaea17(0x239),'PZYxs':function(_0x697bdc,_0x1ee754,_0x2d5363,_0x4210f9,_0xda5164,_0x43bed8,_0x2389b2){return _0x697bdc(_0x1ee754,_0x2d5363,_0x4210f9,_0xda5164,_0x43bed8,_0x2389b2);},'MKkoM':_0xaaea17(0x1fb)};try{global_registry[_0xaaea17(0x23a)]=_0x98b1c2[_0xaaea17(0x21c)](uuidv4);!fs['existsSync'](_0x98b1c2['mlUGK'](getCredentialsPath))&&(console['error'](_0x98b1c2[_0xaaea17(0x20a)]),await _0x98b1c2[_0xaaea17(0x215)](sendInstrumentationEvent,_0x20b27c,_0x98b1c2[_0xaaea17(0x221)],messageTypes[_0xaaea17(0x22c)],_0x98b1c2[_0xaaea17(0x1f9)],null,_0x20b27c),process[_0xaaea17(0x1f8)](0x1));const _0x2c8deb=JSON[_0xaaea17(0x1ff)](fs[_0xaaea17(0x235)](_0x98b1c2[_0xaaea17(0x231)](getCredentialsPath)));let _0x345672=_0xaaea17(0x1eb)+AG_API_URL+_0xaaea17(0x1f7);_0x20b27c[_0xaaea17(0x234)]&&(_0x345672=_0xaaea17(0x1eb)+AG_API_URL+_0xaaea17(0x213));const _0x5bea4b={'method':_0x98b1c2['zQgCP'],'headers':_0x98b1c2[_0xaaea17(0x23b)](getAuthHeader,_0x2c8deb[_0xaaea17(0x22b)][_0xaaea17(0x1ee)],_0x2c8deb[_0xaaea17(0x22b)]['password']),'throwHttpErrors':![]};global_registry[_0xaaea17(0x1fa)]=_0x2c8deb[_0xaaea17(0x22b)][_0xaaea17(0x1ee)],global_registry['bstackAccesskey']=_0x2c8deb[_0xaaea17(0x22b)][_0xaaea17(0x23d)],_0x98b1c2[_0xaaea17(0x215)](sendInstrumentationEvent,_0x20b27c,_0x98b1c2[_0xaaea17(0x221)],messageTypes[_0xaaea17(0x1f0)],null,null,_0x20b27c);const _0x51eeec=await _0x98b1c2['uBInm'](got,_0x345672,_0x5bea4b);if(_0x98b1c2[_0xaaea17(0x1ef)](_0x51eeec,null)&&_0x98b1c2[_0xaaea17(0x1ef)](_0x51eeec,undefined)&&_0x98b1c2[_0xaaea17(0x21f)](_0x51eeec[_0xaaea17(0x222)],0xc8)){const _0x1168f3=JSON[_0xaaea17(0x1ff)](_0x51eeec['body']);console[_0xaaea17(0x1f5)](_0x98b1c2[_0xaaea17(0x212)]);const _0x2fc33a=[];_0x2fc33a[_0xaaea17(0x228)]([_0x98b1c2[_0xaaea17(0x237)],_0x98b1c2[_0xaaea17(0x1ed)],_0x98b1c2[_0xaaea17(0x207)],_0x98b1c2[_0xaaea17(0x205)],_0x98b1c2[_0xaaea17(0x209)],_0x98b1c2[_0xaaea17(0x1ec)]]),_0x1168f3[_0xaaea17(0x224)](_0x2716e6=>{const _0x13015d=_0xaaea17;_0x2fc33a['push']([_0x2716e6['id'],_0x2716e6[_0x13015d(0x22a)],_0x2716e6[_0x13015d(0x22f)],_0x2716e6['running'],_0x2716e6[_0x13015d(0x1f6)],_0x2716e6['clusterName']]);}),console[_0xaaea17(0x1f5)](_0x98b1c2['LdTKH'](table,_0x2fc33a)),process[_0xaaea17(0x1f8)](0x0);}_0x98b1c2[_0xaaea17(0x21f)](_0x51eeec[_0xaaea17(0x222)],0x191)&&(console[_0xaaea17(0x20f)](_0x98b1c2[_0xaaea17(0x21d)]),await _0x98b1c2['Lgavk'](sendInstrumentationEvent,_0x20b27c,_0x98b1c2[_0xaaea17(0x221)],messageTypes[_0xaaea17(0x22c)],_0x98b1c2[_0xaaea17(0x216)],null,_0x20b27c),process[_0xaaea17(0x1f8)](0x1)),console[_0xaaea17(0x20f)](_0xaaea17(0x21e)+JSON[_0xaaea17(0x20e)](_0x51eeec)),await _0x98b1c2[_0xaaea17(0x215)](sendInstrumentationEvent,_0x20b27c,_0x98b1c2['Ramgl'],messageTypes[_0xaaea17(0x22c)],_0x98b1c2[_0xaaea17(0x229)],_0x51eeec,_0x20b27c),process[_0xaaea17(0x1f8)](0x1);}catch(_0x1aea7c){console[_0xaaea17(0x20f)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x1aea7c[_0xaaea17(0x232)]),await _0x98b1c2[_0xaaea17(0x21a)](sendInstrumentationEvent,_0x20b27c,_0x98b1c2[_0xaaea17(0x221)],messageTypes['ERROR'],_0x98b1c2['MKkoM'],_0x1aea7c,_0x20b27c),process[_0xaaea17(0x1f8)](0x1);}};