browserstack-node-sdk 1.25.4 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/ats/src/commands/configure.js +1 -1
  2. package/ats/src/commands/connect.js +1 -1
  3. package/ats/src/commands/connect_commands/grid.js +1 -1
  4. package/ats/src/commands/create.js +1 -1
  5. package/ats/src/commands/create_commands/grid.js +1 -1
  6. package/ats/src/commands/delete.js +1 -1
  7. package/ats/src/commands/delete_commands/grid.js +1 -1
  8. package/ats/src/commands/init.js +1 -1
  9. package/ats/src/commands/list.js +1 -1
  10. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  11. package/ats/src/commands/list_commands/grids.js +1 -1
  12. package/ats/src/config/constants.js +1 -1
  13. package/ats/src/config/logger.js +1 -1
  14. package/ats/src/index.js +1 -1
  15. package/ats/src/templates/hub-deployment.yaml +2 -2
  16. package/ats/src/utils/AWSUtils.js +1 -1
  17. package/ats/src/utils/createAutoscalerStack.js +1 -1
  18. package/ats/src/utils/createClusterStack.js +1 -1
  19. package/ats/src/utils/createk8sClient.js +1 -1
  20. package/ats/src/utils/deleteStack.js +1 -1
  21. package/ats/src/utils/gridComponents.js +1 -1
  22. package/ats/src/utils/hstUtils.js +1 -1
  23. package/ats/src/utils/instrumentationUtils.js +1 -1
  24. package/ats/src/utils/userInput.js +1 -1
  25. package/ats/src/utils/utilityMethods.js +1 -1
  26. package/ats/src/utils/webSocketUtils.js +1 -1
  27. package/package.json +1 -1
  28. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  29. package/src/bin/codeceptjs/command.js +1 -1
  30. package/src/bin/cucumber-js/command.js +1 -1
  31. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  32. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  33. package/src/bin/cucumber-js/test.setup.js +1 -1
  34. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  35. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  36. package/src/bin/jest/command.js +1 -1
  37. package/src/bin/jest/customEnvironment.js +1 -1
  38. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  39. package/src/bin/jest/jest.setup.js +1 -1
  40. package/src/bin/jest/test_before.setup.js +1 -1
  41. package/src/bin/launcher/launcher.js +1 -1
  42. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  43. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  44. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  45. package/src/bin/mocha/command.js +1 -1
  46. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  47. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  48. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  49. package/src/bin/mocha/test.setup.js +1 -1
  50. package/src/bin/nightwatch/command.js +1 -1
  51. package/src/bin/playwright/command.js +1 -1
  52. package/src/bin/playwright/globalSetup.js +1 -1
  53. package/src/bin/playwright/mock-process.js +1 -1
  54. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  55. package/src/bin/playwright/reporter/reporter.js +1 -1
  56. package/src/bin/playwright/reporter/test-details.js +1 -1
  57. package/src/bin/runner.js +1 -1
  58. package/src/bin/setup.js +1 -1
  59. package/src/bin/test-runner/index.js +1 -1
  60. package/src/bin/test-runner/runTest.js +1 -1
  61. package/src/bin/test-runner/testWorker.js +1 -1
  62. package/src/bin/utils/constants.js +1 -1
  63. package/src/bin/utils/log4jsAppender.js +1 -1
  64. package/src/bin/utils/logPatcher.js +1 -1
  65. package/src/bin/utils/logReportingAPI.js +1 -1
  66. package/src/bin/vanilla-js/command.js +1 -1
  67. package/src/helpers/BrowserStackSetup.js +1 -1
  68. package/src/helpers/capsMapping.js +1 -1
  69. package/src/helpers/helper.js +1 -1
  70. package/src/helpers/logger.js +1 -1
  71. package/src/helpers/patchHelpers.js +1 -1
  72. package/src/helpers/request-spy.js +1 -1
  73. package/src/helpers/setKeepAlive.js +1 -1
  74. package/src/helpers/test-observability/constants.js +1 -1
  75. package/src/helpers/test-observability/error-handler.js +1 -1
  76. package/src/helpers/test-observability/performance-tester.js +1 -1
  77. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  78. package/src/helpers/test-observability/sessionHandler.js +1 -1
  79. package/src/helpers/test-observability/utils.js +1 -1
  80. package/src/helpers/w3cMapping.js +1 -1
  81. package/src/hubAllocationMethods.js +1 -1
  82. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a0_0x132d5d=a0_0x1366;function a0_0x580b(){const _0x41ed36=['../utils/utilityMethods','readFileSync','cvtdJ','64694awsJdh','stringify','TNkpQ','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','10qOoqcA','WkxXu','rHjcW','password','HVqkw','XGMdm','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','PEdIZ','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','2140259VhHWhN','usage','https://','VIosH','isuUo','lnTkL','PUT','../utils/instrumentationUtils','GET','16nuodnZ','OifCh','url','OMuzs','EGOEA','IGPJc','oSfRg','statusCode','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','error','ZjoJT','Updated\x20default\x20Grid\x20Profile\x20successfully','profileId','existsSync','iyxXg','mXcyc','list','XNXzB','NlirT','6sMNGIQ','2bMpvTz','4974165yPeRZn','request','log','builder','SFjLy','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','invalid-selection','username','configure-called','HRQcy','parse','ZTewP','init-not-called','uuid','AuyNf','invalid-input','util','YhVmJ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','requestId','Browserstack','stack','exit','1077128sThCEG','toLowerCase','29943120rZdVRS','TQBRR','ndcmw','recommendCommands','gUjjO','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','unknown-error','HGkvT','dZXcL','\x20\x20grid-profile:\x20','method','aOPrX','../config/constants','7738535ElWQNg','../utils/userInput','804BQMbPc','zEmXX','auth','unauthorised','iEcKJ','body','help','qDmFu','promisify','ERROR','desc','epilogue','nRVdM','HgfqC','server-error','INFO','length','ULjSc','command','48683SvrfAN','configure','name'];a0_0x580b=function(){return _0x41ed36;};return a0_0x580b();}function a0_0x1366(_0x478008,_0x1c3cc2){const _0x580b7f=a0_0x580b();return a0_0x1366=function(_0x136697,_0x1c46ea){_0x136697=_0x136697-0xbd;let _0x4f4f41=_0x580b7f[_0x136697];return _0x4f4f41;},a0_0x1366(_0x478008,_0x1c3cc2);}(function(_0x3c71fe,_0x577e75){const _0x14fccb=a0_0x1366,_0x23f665=_0x3c71fe();while(!![]){try{const _0x381c2a=-parseInt(_0x14fccb(0xd8))/0x1*(-parseInt(_0x14fccb(0x10b))/0x2)+-parseInt(_0x14fccb(0x10a))/0x3*(parseInt(_0x14fccb(0x123))/0x4)+-parseInt(_0x14fccb(0xc3))/0x5+parseInt(_0x14fccb(0xc5))/0x6*(parseInt(_0x14fccb(0xde))/0x7)+parseInt(_0x14fccb(0xf7))/0x8*(-parseInt(_0x14fccb(0x10c))/0x9)+-parseInt(_0x14fccb(0xe4))/0xa*(-parseInt(_0x14fccb(0xee))/0xb)+parseInt(_0x14fccb(0x125))/0xc;if(_0x381c2a===_0x577e75)break;else _0x23f665['push'](_0x23f665['shift']());}catch(_0x3e696b){_0x23f665['push'](_0x23f665['shift']());}}}(a0_0x580b,0xbfb93));const fs=require('fs'),util=require(a0_0x132d5d(0x11c)),request=require(a0_0x132d5d(0x10d)),{v4:uuidv4}=require(a0_0x132d5d(0x119)),{inputConfirmation,closeInput}=require(a0_0x132d5d(0xc4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x132d5d(0xc2)),{getCredentialsPath}=require(a0_0x132d5d(0xdb)),{sendInstrumentationEvent}=require(a0_0x132d5d(0xf5)),promisifiedRequest=util[a0_0x132d5d(0xcd)](request);exports[a0_0x132d5d(0xd7)]=a0_0x132d5d(0xd9),exports[a0_0x132d5d(0xcf)]=a0_0x132d5d(0xed),exports[a0_0x132d5d(0x10f)]=function(_0x394b3c){const _0x854bda=a0_0x132d5d,_0xacb12d={};_0xacb12d[_0x854bda(0xd1)]=_0x854bda(0xcb);const _0x4da1e9=_0xacb12d;return _0x394b3c[_0x854bda(0xef)](HELP_HEADER_MESSAGE[_0x854bda(0xd9)])[_0x854bda(0xd0)](HELP_FOOTER_MESSAGE)['help'](_0x4da1e9[_0x854bda(0xd1)])[_0x854bda(0x128)]()['strict']()['argv'];},exports['handler']=async function(_0x33337e){const _0x62e60b=a0_0x132d5d,_0x39a993={'Zklhe':function(_0xe370be){return _0xe370be();},'oQkse':_0x62e60b(0x11e),'vAlcJ':function(_0x332fab,_0x3defd3,_0x4ac7e8,_0x3fb7e5,_0x5a5d2b,_0x6b6077,_0xccc111){return _0x332fab(_0x3defd3,_0x4ac7e8,_0x3fb7e5,_0x5a5d2b,_0x6b6077,_0xccc111);},'AuyNf':_0x62e60b(0x114),'cvtdJ':_0x62e60b(0x118),'dZXcL':function(_0x2ceba8,_0x264e37,_0x95b1f2,_0x3d96bc,_0x4a2967,_0x25f752,_0x55d630){return _0x2ceba8(_0x264e37,_0x95b1f2,_0x3d96bc,_0x4a2967,_0x25f752,_0x55d630);},'iyxXg':function(_0x50a93c){return _0x50a93c();},'ZTewP':_0x62e60b(0xf6),'mXcyc':function(_0x8a5ec5,_0x5e73b5){return _0x8a5ec5(_0x5e73b5);},'HgfqC':function(_0x450c96,_0xa06a83){return _0x450c96!==_0xa06a83;},'EvYGy':function(_0x180367,_0x2140e9){return _0x180367!==_0x2140e9;},'zEmXX':function(_0x5c3e6e,_0x25efa9){return _0x5c3e6e===_0x25efa9;},'HVqkw':_0x62e60b(0x111),'oSfRg':'core:','lnTkL':_0x62e60b(0xe2),'qDmFu':function(_0x3023b8,_0x5e1988){return _0x3023b8===_0x5e1988;},'aOPrX':function(_0x231cd2,_0x431d49){return _0x231cd2===_0x431d49;},'NlirT':_0x62e60b(0xec),'OMuzs':_0x62e60b(0x11b),'EbATF':function(_0x41cf70,_0x3f99ae){return _0x41cf70===_0x3f99ae;},'EGOEA':_0x62e60b(0xea),'TQBRR':function(_0x1ff479,_0x339327){return _0x1ff479<_0x339327;},'OifCh':function(_0xa5f0e3,_0x1b15a4){return _0xa5f0e3+_0x1b15a4;},'PEdIZ':function(_0x19b8e6,_0x1898be){return _0x19b8e6(_0x1898be);},'HGkvT':_0x62e60b(0x12a),'MpLMo':function(_0x52bbe5,_0x539b3a){return _0x52bbe5<_0x539b3a;},'TNkpQ':function(_0x1f5f51,_0x464b47){return _0x1f5f51>_0x464b47;},'IGPJc':function(_0x51e88b,_0x3487a6,_0x40b37c,_0x25c86d,_0x2dc25e,_0x303e4d,_0x4acfed){return _0x51e88b(_0x3487a6,_0x40b37c,_0x25c86d,_0x2dc25e,_0x303e4d,_0x4acfed);},'VIosH':_0x62e60b(0x112),'HRQcy':function(_0x2e3bee){return _0x2e3bee();},'rHjcW':function(_0x178353,_0x539d04){return _0x178353-_0x539d04;},'ULjSc':_0x62e60b(0xf4),'SFjLy':function(_0x1564b0,_0x1383d0){return _0x1564b0!==_0x1383d0;},'iEcKJ':function(_0x361add,_0x3a9c60){return _0x361add===_0x3a9c60;},'ZjoJT':_0x62e60b(0x102),'XNXzB':function(_0x3b7a10,_0x49287e){return _0x3b7a10===_0x49287e;},'dAzXS':_0x62e60b(0xc8),'WkxXu':function(_0xab6ddb,_0x43fb5d,_0x5354ca,_0x3e581b,_0x4b2dfa,_0x26c9dc,_0x123ae4){return _0xab6ddb(_0x43fb5d,_0x5354ca,_0x3e581b,_0x4b2dfa,_0x26c9dc,_0x123ae4);},'gUjjO':_0x62e60b(0xd3),'isuUo':function(_0x10cbac,_0x5cbcfa,_0x2b0f39,_0x214ac3,_0x32db22,_0x15b417,_0xd7d5c8){return _0x10cbac(_0x5cbcfa,_0x2b0f39,_0x214ac3,_0x32db22,_0x15b417,_0xd7d5c8);},'XGMdm':function(_0x41aa4b,_0x1b7145,_0x43fd50,_0x368563,_0x4bef7a,_0x5555a8,_0x2b517d){return _0x41aa4b(_0x1b7145,_0x43fd50,_0x368563,_0x4bef7a,_0x5555a8,_0x2b517d);},'ndcmw':function(_0x453151,_0x4d2be9,_0x44a8f5,_0x106244,_0x3df5b1,_0x11b575,_0x5edc86){return _0x453151(_0x4d2be9,_0x44a8f5,_0x106244,_0x3df5b1,_0x11b575,_0x5edc86);},'YhVmJ':_0x62e60b(0x12b)};try{global_registry[_0x62e60b(0x11f)]=_0x39a993['Zklhe'](uuidv4);const _0x540341=_0x62e60b(0xf0)+AG_API_URL+'/packages/cli/configure';!fs[_0x62e60b(0x104)](_0x39a993['Zklhe'](getCredentialsPath))&&(console[_0x62e60b(0x100)](_0x39a993['oQkse']),await _0x39a993['vAlcJ'](sendInstrumentationEvent,_0x33337e,_0x39a993['AuyNf'],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0xdd)],null,_0x33337e),process[_0x62e60b(0x122)](0x1));await _0x39a993[_0x62e60b(0xbe)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xd4)],null,null,_0x33337e);const _0x2e6c78=JSON['parse'](fs[_0x62e60b(0xdc)](_0x39a993[_0x62e60b(0x105)](getCredentialsPath))),_0x444c98={};_0x444c98['username']=_0x2e6c78['Browserstack']['username'],_0x444c98[_0x62e60b(0xe7)]=_0x2e6c78[_0x62e60b(0x120)][_0x62e60b(0xe7)];const _0x43e17a={};_0x43e17a[_0x62e60b(0xf9)]=_0x540341,_0x43e17a[_0x62e60b(0xc0)]=_0x39a993[_0x62e60b(0x117)],_0x43e17a[_0x62e60b(0xc7)]=_0x444c98;const _0xa3e3bc=_0x43e17a,_0x39acdc=await _0x39a993['mXcyc'](promisifiedRequest,_0xa3e3bc);if(_0x39a993[_0x62e60b(0xd2)](_0x39acdc,null)&&_0x39a993['EvYGy'](_0x39acdc,undefined)&&_0x39a993[_0x62e60b(0xc6)](_0x39acdc['statusCode'],0xc8)){const _0x4c940f=JSON[_0x62e60b(0x116)](_0x39acdc[_0x62e60b(0xca)]);console[_0x62e60b(0x10e)](_0x39a993[_0x62e60b(0xe8)]),console['log'](_0x39a993[_0x62e60b(0xfd)]),console['log']('\x20\x20username:\x20'+_0x2e6c78[_0x62e60b(0x120)]['username']),console['log'](_0x62e60b(0xbf)+_0x4c940f['active']['name']);const _0x28463e=await _0x39a993[_0x62e60b(0x106)](inputConfirmation,_0x39a993[_0x62e60b(0xf3)]);(_0x39a993['zEmXX'](_0x28463e,undefined)||_0x39a993[_0x62e60b(0xcc)](_0x28463e,null)||!(_0x39a993[_0x62e60b(0xc1)](_0x28463e[_0x62e60b(0x124)](),'y')||_0x39a993['zEmXX'](_0x28463e[_0x62e60b(0x124)](),'n')))&&(console[_0x62e60b(0x100)](_0x39a993[_0x62e60b(0x109)]),await _0x39a993['vAlcJ'](sendInstrumentationEvent,_0x33337e,_0x39a993['AuyNf'],messageTypes['ERROR'],_0x39a993[_0x62e60b(0xfa)],null,_0x33337e),process[_0x62e60b(0x122)](0x1));_0x39a993['EbATF'](_0x28463e[_0x62e60b(0x124)](),'n')&&process['exit'](0x0);console[_0x62e60b(0x10e)](_0x39a993[_0x62e60b(0xfb)]);const _0x341d63=_0x4c940f[_0x62e60b(0x107)][_0x62e60b(0xd5)];for(let _0xcf2c24=0x0;_0x39a993[_0x62e60b(0x126)](_0xcf2c24,_0x341d63);_0xcf2c24+=0x1){console['log']('['+_0x39a993[_0x62e60b(0xf8)](_0xcf2c24,0x1)+']\x20'+_0x4c940f[_0x62e60b(0x107)][_0xcf2c24][_0x62e60b(0xda)]);}const _0x4a2167=await _0x39a993[_0x62e60b(0xeb)](inputConfirmation,_0x39a993[_0x62e60b(0xbd)]),_0x2432d2=_0x39a993[_0x62e60b(0x106)](Number,_0x4a2167);(_0x39a993['PEdIZ'](isNaN,_0x2432d2)||_0x39a993['MpLMo'](_0x2432d2,0x0)||_0x39a993[_0x62e60b(0xe0)](_0x2432d2,_0x341d63))&&(console['error'](_0x39a993[_0x62e60b(0x109)]),await _0x39a993[_0x62e60b(0xfc)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes['ERROR'],_0x39a993[_0x62e60b(0xf1)],null,_0x33337e),process['exit'](0x1));_0x39a993[_0x62e60b(0x115)](closeInput);const _0x1961c0=_0x4c940f[_0x62e60b(0x107)][_0x39a993[_0x62e60b(0xe6)](_0x2432d2,0x1)]['id'],_0x36292d={};_0x36292d['username']=_0x2e6c78['Browserstack'][_0x62e60b(0x113)],_0x36292d[_0x62e60b(0xe7)]=_0x2e6c78[_0x62e60b(0x120)]['password'];const _0x16d5e8={};_0x16d5e8[_0x62e60b(0x103)]=_0x1961c0;const _0x3d9ed5={};_0x3d9ed5[_0x62e60b(0xf9)]=_0x540341,_0x3d9ed5[_0x62e60b(0xc0)]=_0x39a993[_0x62e60b(0xd6)],_0x3d9ed5[_0x62e60b(0xc7)]=_0x36292d,_0x3d9ed5[_0x62e60b(0xca)]=_0x16d5e8,_0x3d9ed5['json']=!![];const _0x173a64=_0x3d9ed5,_0x46a40c=await _0x39a993[_0x62e60b(0xeb)](promisifiedRequest,_0x173a64);_0x39a993[_0x62e60b(0x110)](_0x46a40c,null)&&_0x39a993['EvYGy'](_0x46a40c,undefined)&&_0x39a993[_0x62e60b(0xc9)](_0x46a40c[_0x62e60b(0xfe)],0xc8)&&(console[_0x62e60b(0x10e)](_0x39a993[_0x62e60b(0x101)]),process[_0x62e60b(0x122)](0x0)),_0x39a993[_0x62e60b(0x108)](_0x46a40c[_0x62e60b(0xfe)],0x191)&&(console[_0x62e60b(0x100)](_0x62e60b(0xff)),await _0x39a993[_0x62e60b(0xbe)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993['dAzXS'],null,_0x33337e),process[_0x62e60b(0x122)](0x1)),console[_0x62e60b(0x100)](_0x62e60b(0xe1)+JSON['stringify'](_0x46a40c)),await _0x39a993[_0x62e60b(0xe5)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0x129)],_0x46a40c,_0x33337e),process[_0x62e60b(0x122)](0x1);}_0x39a993['aOPrX'](_0x39acdc[_0x62e60b(0xfe)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x39a993[_0x62e60b(0xf2)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes['ERROR'],_0x39a993['dAzXS'],null,_0x33337e),process[_0x62e60b(0x122)](0x1)),console[_0x62e60b(0x100)](_0x62e60b(0xe3)+JSON[_0x62e60b(0xdf)](_0x39acdc)),await _0x39a993[_0x62e60b(0xe9)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0x129)],_0x39acdc,_0x33337e),process[_0x62e60b(0x122)](0x1);}catch(_0x29f72d){console[_0x62e60b(0x100)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x29f72d[_0x62e60b(0x121)]),await _0x39a993[_0x62e60b(0x127)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0x11d)],_0x29f72d,_0x33337e),process[_0x62e60b(0x122)](0x1);}};
1
+ const a0_0x2141d6=a0_0x2799;function a0_0x2799(_0xcc941a,_0x478051){const _0x3012f5=a0_0x3012();return a0_0x2799=function(_0x27996b,_0x4a5cd4){_0x27996b=_0x27996b-0xfe;let _0x4f7214=_0x3012f5[_0x27996b];return _0x4f7214;},a0_0x2799(_0xcc941a,_0x478051);}(function(_0x4c3a11,_0xa4b08){const _0x209249=a0_0x2799,_0x50bec0=_0x4c3a11();while(!![]){try{const _0x4c6a99=parseInt(_0x209249(0x156))/0x1*(parseInt(_0x209249(0x11d))/0x2)+-parseInt(_0x209249(0x119))/0x3+parseInt(_0x209249(0x154))/0x4+-parseInt(_0x209249(0x134))/0x5+parseInt(_0x209249(0x11c))/0x6*(-parseInt(_0x209249(0x14d))/0x7)+-parseInt(_0x209249(0x144))/0x8*(parseInt(_0x209249(0x14c))/0x9)+parseInt(_0x209249(0x159))/0xa;if(_0x4c6a99===_0xa4b08)break;else _0x50bec0['push'](_0x50bec0['shift']());}catch(_0x416fbd){_0x50bec0['push'](_0x50bec0['shift']());}}}(a0_0x3012,0xd48e3));const fs=require('fs'),util=require(a0_0x2141d6(0x12e)),request=require('request'),{v4:uuidv4}=require(a0_0x2141d6(0x137)),{inputConfirmation,closeInput}=require(a0_0x2141d6(0x111)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x2141d6(0x152)),{getCredentialsPath}=require(a0_0x2141d6(0x13a)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports['command']=a0_0x2141d6(0x138),exports[a0_0x2141d6(0x133)]=a0_0x2141d6(0x10e),exports['builder']=function(_0x338f5d){const _0x140c4d=a0_0x2141d6,_0x12f411={};_0x12f411['Qwqqo']=_0x140c4d(0x121);const _0x1a91be=_0x12f411;return _0x338f5d[_0x140c4d(0x117)](HELP_HEADER_MESSAGE[_0x140c4d(0x138)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x140c4d(0x121)](_0x1a91be['Qwqqo'])[_0x140c4d(0x13e)]()['strict']()[_0x140c4d(0x10f)];},exports['handler']=async function(_0x5e3a1b){const _0x47fa52=a0_0x2141d6,_0x3f0f9b={'enRvn':function(_0x414300){return _0x414300();},'DmsNB':function(_0x2def6d){return _0x2def6d();},'sidFT':_0x47fa52(0x15a),'jrkgt':function(_0x5fbc1a,_0x6bda,_0x4259cf,_0x4f9e85,_0x5186bf,_0x38b86f,_0x53f8e6){return _0x5fbc1a(_0x6bda,_0x4259cf,_0x4f9e85,_0x5186bf,_0x38b86f,_0x53f8e6);},'SOFJJ':_0x47fa52(0x108),'LPJKz':_0x47fa52(0x13c),'sPXAk':_0x47fa52(0x106),'yGzzv':function(_0x45b8e9,_0x17af85){return _0x45b8e9(_0x17af85);},'umCjw':function(_0x292dc2,_0xa67cdb){return _0x292dc2!==_0xa67cdb;},'UMYFv':function(_0xae3f8f,_0x4a22e9){return _0xae3f8f!==_0x4a22e9;},'IFcQC':function(_0x1cfc8a,_0xa07774){return _0x1cfc8a===_0xa07774;},'MOaiG':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','AMOVg':_0x47fa52(0x14b),'MkwBG':_0x47fa52(0x110),'FdTvF':function(_0x13dafc,_0x48668d){return _0x13dafc===_0x48668d;},'YvByh':function(_0x142608,_0xfd9baa){return _0x142608===_0xfd9baa;},'QTCio':_0x47fa52(0x15c),'WxNLw':function(_0x2be99a,_0x49cd85,_0x3f96e5,_0x178455,_0x100a8d,_0x103c56,_0x506baf){return _0x2be99a(_0x49cd85,_0x3f96e5,_0x178455,_0x100a8d,_0x103c56,_0x506baf);},'FJTrM':'invalid-input','hplFW':function(_0xe7df9d,_0x4124b8){return _0xe7df9d===_0x4124b8;},'RdFhy':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','KNEFD':function(_0x292c77,_0x4b23ef){return _0x292c77<_0x4b23ef;},'GeZzg':function(_0x3de54c,_0x5bfbf8){return _0x3de54c+_0x5bfbf8;},'Xoovf':_0x47fa52(0x158),'YXsRB':function(_0xfc1708,_0x2787c3){return _0xfc1708(_0x2787c3);},'HNiIC':function(_0x45bf7b,_0x57cd55){return _0x45bf7b(_0x57cd55);},'sLAle':function(_0x35226e,_0x468cb3){return _0x35226e<_0x468cb3;},'jMgIY':function(_0x40d348,_0x2e1ef0){return _0x40d348>_0x2e1ef0;},'tMUgQ':_0x47fa52(0x101),'RJNFI':function(_0x1f1d81){return _0x1f1d81();},'BGSEC':function(_0x2abad9,_0x424397){return _0x2abad9-_0x424397;},'Dhbng':_0x47fa52(0x105),'UXghf':function(_0x1a3de5,_0x73539d){return _0x1a3de5(_0x73539d);},'mOUeW':function(_0x247e9c,_0x18e3e3){return _0x247e9c!==_0x18e3e3;},'Ztuyp':_0x47fa52(0x104),'NqjTm':_0x47fa52(0x143),'pQIKr':function(_0x176806,_0xe3945b,_0x4a7d65,_0x5f3163,_0x3e7ddd,_0x375053,_0x2b5efd){return _0x176806(_0xe3945b,_0x4a7d65,_0x5f3163,_0x3e7ddd,_0x375053,_0x2b5efd);},'RpwTK':_0x47fa52(0x11e),'NmTHQ':function(_0x325373,_0x252cb3){return _0x325373===_0x252cb3;},'SIXJg':'unknown-error'};try{global_registry[_0x47fa52(0x12a)]=_0x3f0f9b[_0x47fa52(0x114)](uuidv4);const _0x122b60='https://'+AG_API_URL+_0x47fa52(0x11b);!fs[_0x47fa52(0x10d)](_0x3f0f9b[_0x47fa52(0x12f)](getCredentialsPath))&&(console[_0x47fa52(0x10b)](_0x3f0f9b[_0x47fa52(0x13f)]),await _0x3f0f9b[_0x47fa52(0x100)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b['LPJKz'],null,_0x5e3a1b),process[_0x47fa52(0xff)](0x1));await _0x3f0f9b[_0x47fa52(0x100)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x14f)],null,null,_0x5e3a1b);const _0x49b93d=JSON[_0x47fa52(0x149)](fs[_0x47fa52(0x142)](_0x3f0f9b['DmsNB'](getCredentialsPath))),_0x1bc7ed={};_0x1bc7ed['username']=_0x49b93d['Browserstack'][_0x47fa52(0x157)],_0x1bc7ed[_0x47fa52(0x141)]=_0x49b93d[_0x47fa52(0x122)][_0x47fa52(0x141)];const _0x500513={};_0x500513[_0x47fa52(0xfe)]=_0x122b60,_0x500513[_0x47fa52(0x10a)]=_0x3f0f9b[_0x47fa52(0x132)],_0x500513['auth']=_0x1bc7ed;const _0x38670f=_0x500513,_0x1a57ae=await _0x3f0f9b['yGzzv'](promisifiedRequest,_0x38670f);if(_0x3f0f9b[_0x47fa52(0x115)](_0x1a57ae,null)&&_0x3f0f9b[_0x47fa52(0x116)](_0x1a57ae,undefined)&&_0x3f0f9b[_0x47fa52(0x147)](_0x1a57ae[_0x47fa52(0x15b)],0xc8)){const _0x3532c2=JSON[_0x47fa52(0x149)](_0x1a57ae[_0x47fa52(0x151)]);console[_0x47fa52(0x139)](_0x3f0f9b[_0x47fa52(0x130)]),console['log'](_0x3f0f9b['AMOVg']),console[_0x47fa52(0x139)]('\x20\x20username:\x20'+_0x49b93d['Browserstack']['username']),console[_0x47fa52(0x139)](_0x47fa52(0x125)+_0x3532c2[_0x47fa52(0x136)][_0x47fa52(0x11a)]);const _0x485a76=await _0x3f0f9b[_0x47fa52(0x13d)](inputConfirmation,_0x3f0f9b[_0x47fa52(0x140)]);(_0x3f0f9b[_0x47fa52(0x123)](_0x485a76,undefined)||_0x3f0f9b[_0x47fa52(0x123)](_0x485a76,null)||!(_0x3f0f9b[_0x47fa52(0x123)](_0x485a76['toLowerCase'](),'y')||_0x3f0f9b[_0x47fa52(0x148)](_0x485a76[_0x47fa52(0x109)](),'n')))&&(console[_0x47fa52(0x10b)](_0x3f0f9b[_0x47fa52(0x131)]),await _0x3f0f9b[_0x47fa52(0x155)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b['FJTrM'],null,_0x5e3a1b),process['exit'](0x1));_0x3f0f9b[_0x47fa52(0x145)](_0x485a76[_0x47fa52(0x109)](),'n')&&process[_0x47fa52(0xff)](0x0);console[_0x47fa52(0x139)](_0x3f0f9b[_0x47fa52(0x127)]);const _0x22db8b=_0x3532c2['list'][_0x47fa52(0x146)];for(let _0x4ee407=0x0;_0x3f0f9b[_0x47fa52(0x118)](_0x4ee407,_0x22db8b);_0x4ee407+=0x1){console['log']('['+_0x3f0f9b[_0x47fa52(0x12b)](_0x4ee407,0x1)+']\x20'+_0x3532c2[_0x47fa52(0x124)][_0x4ee407][_0x47fa52(0x11a)]);}const _0x40fab1=await _0x3f0f9b[_0x47fa52(0x13d)](inputConfirmation,_0x3f0f9b['Xoovf']),_0x1c3bb7=_0x3f0f9b[_0x47fa52(0x15d)](Number,_0x40fab1);(_0x3f0f9b[_0x47fa52(0x153)](isNaN,_0x1c3bb7)||_0x3f0f9b['sLAle'](_0x1c3bb7,0x0)||_0x3f0f9b[_0x47fa52(0x150)](_0x1c3bb7,_0x22db8b))&&(console[_0x47fa52(0x10b)](_0x3f0f9b['QTCio']),await _0x3f0f9b[_0x47fa52(0x100)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b['tMUgQ'],null,_0x5e3a1b),process[_0x47fa52(0xff)](0x1));_0x3f0f9b[_0x47fa52(0x113)](closeInput);const _0x5ae01d=_0x3532c2['list'][_0x3f0f9b[_0x47fa52(0x102)](_0x1c3bb7,0x1)]['id'],_0x1e5ae4={};_0x1e5ae4[_0x47fa52(0x157)]=_0x49b93d[_0x47fa52(0x122)][_0x47fa52(0x157)],_0x1e5ae4[_0x47fa52(0x141)]=_0x49b93d[_0x47fa52(0x122)][_0x47fa52(0x141)];const _0x1e3726={};_0x1e3726[_0x47fa52(0x126)]=_0x5ae01d;const _0x50b492={};_0x50b492[_0x47fa52(0xfe)]=_0x122b60,_0x50b492[_0x47fa52(0x10a)]=_0x3f0f9b[_0x47fa52(0x12c)],_0x50b492['auth']=_0x1e5ae4,_0x50b492[_0x47fa52(0x151)]=_0x1e3726,_0x50b492['json']=!![];const _0x2b1f35=_0x50b492,_0xe7014=await _0x3f0f9b[_0x47fa52(0x11f)](promisifiedRequest,_0x2b1f35);_0x3f0f9b[_0x47fa52(0x115)](_0xe7014,null)&&_0x3f0f9b['mOUeW'](_0xe7014,undefined)&&_0x3f0f9b['FdTvF'](_0xe7014['statusCode'],0xc8)&&(console[_0x47fa52(0x139)](_0x3f0f9b[_0x47fa52(0x135)]),process[_0x47fa52(0xff)](0x0)),_0x3f0f9b[_0x47fa52(0x123)](_0xe7014[_0x47fa52(0x15b)],0x191)&&(console[_0x47fa52(0x10b)](_0x47fa52(0x128)),await _0x3f0f9b[_0x47fa52(0x155)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b[_0x47fa52(0x103)],null,_0x5e3a1b),process[_0x47fa52(0xff)](0x1)),console[_0x47fa52(0x10b)](_0x47fa52(0x129)+JSON[_0x47fa52(0x112)](_0xe7014)),await _0x3f0f9b[_0x47fa52(0x10c)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b['SOFJJ'],messageTypes['ERROR'],_0x3f0f9b[_0x47fa52(0x120)],_0xe7014,_0x5e3a1b),process[_0x47fa52(0xff)](0x1);}_0x3f0f9b['NmTHQ'](_0x1a57ae['statusCode'],0x191)&&(console[_0x47fa52(0x10b)](_0x47fa52(0x14e)),await _0x3f0f9b[_0x47fa52(0x100)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b['NqjTm'],null,_0x5e3a1b),process[_0x47fa52(0xff)](0x1)),console[_0x47fa52(0x10b)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1a57ae)),await _0x3f0f9b[_0x47fa52(0x155)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b['RpwTK'],_0x1a57ae,_0x5e3a1b),process[_0x47fa52(0xff)](0x1);}catch(_0x4754f7){console[_0x47fa52(0x10b)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x4754f7[_0x47fa52(0x107)]),await _0x3f0f9b[_0x47fa52(0x100)](sendInstrumentationEvent,_0x5e3a1b,_0x3f0f9b[_0x47fa52(0x13b)],messageTypes[_0x47fa52(0x12d)],_0x3f0f9b[_0x47fa52(0x14a)],_0x4754f7,_0x5e3a1b),process[_0x47fa52(0xff)](0x1);}};function a0_0x3012(){const _0x2ebc77=['1021000SuIpxr','hplFW','length','IFcQC','YvByh','parse','SIXJg','core:','72dltOpl','14KMvZhU','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','INFO','jMgIY','body','../config/constants','HNiIC','3813436LrGiyU','WxNLw','2roWbwD','username','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','22067620BdZGRw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','YXsRB','url','exit','jrkgt','invalid-selection','BGSEC','NqjTm','Updated\x20default\x20Grid\x20Profile\x20successfully','PUT','GET','stack','configure-called','toLowerCase','method','error','pQIKr','existsSync','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','argv','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','../utils/userInput','stringify','RJNFI','enRvn','umCjw','UMYFv','usage','KNEFD','4720827moaaLf','name','/packages/cli/configure','1841706obhgie','1290346LMJFbl','server-error','UXghf','RpwTK','help','Browserstack','FdTvF','list','\x20\x20grid-profile:\x20','profileId','RdFhy','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','requestId','GeZzg','Dhbng','ERROR','util','DmsNB','MOaiG','QTCio','sPXAk','desc','1856645iZMnHg','Ztuyp','active','uuid','configure','log','../utils/utilityMethods','SOFJJ','init-not-called','yGzzv','recommendCommands','sidFT','MkwBG','password','readFileSync','unauthorised'];a0_0x3012=function(){return _0x2ebc77;};return a0_0x3012();}
@@ -1 +1 @@
1
- function a1_0x7fa4(){const _0x3f2293=['builder','strict','help','connect','21hXXOMH','1468372uZpGci','wicdm','30984orUGlF','112748nfOdlr','15732846HvUNRp','295hiBgtz','recommendCommands','epilogue','usage','746194ABbUgB','1428438BmkZmJ','619064QvNfth','command','handler'];a1_0x7fa4=function(){return _0x3f2293;};return a1_0x7fa4();}function a1_0x5035(_0x46e25c,_0x2ebe99){const _0x7fa403=a1_0x7fa4();return a1_0x5035=function(_0x5035f6,_0x4638b7){_0x5035f6=_0x5035f6-0x13a;let _0x230797=_0x7fa403[_0x5035f6];return _0x230797;},a1_0x5035(_0x46e25c,_0x2ebe99);}const a1_0x427417=a1_0x5035;(function(_0x580ecc,_0x21fbfd){const _0x13f801=a1_0x5035,_0x44be74=_0x580ecc();while(!![]){try{const _0x49a3a4=-parseInt(_0x13f801(0x146))/0x1+-parseInt(_0x13f801(0x14c))/0x2+-parseInt(_0x13f801(0x13a))/0x3+-parseInt(_0x13f801(0x143))/0x4+parseInt(_0x13f801(0x148))/0x5*(-parseInt(_0x13f801(0x145))/0x6)+-parseInt(_0x13f801(0x142))/0x7*(-parseInt(_0x13f801(0x13b))/0x8)+parseInt(_0x13f801(0x147))/0x9;if(_0x49a3a4===_0x21fbfd)break;else _0x44be74['push'](_0x44be74['shift']());}catch(_0x33aca3){_0x44be74['push'](_0x44be74['shift']());}}}(a1_0x7fa4,0x54973));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a1_0x427417(0x13c)]=a1_0x427417(0x141),exports['desc']='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a1_0x427417(0x13e)]=function(_0x2882aa){const _0x2c59e1=a1_0x427417,_0x4085af={};_0x4085af[_0x2c59e1(0x144)]='connect_commands',_0x4085af['qvUQO']=_0x2c59e1(0x140);const _0x29033b=_0x4085af;return _0x2882aa[_0x2c59e1(0x14b)](HELP_HEADER_MESSAGE[_0x2c59e1(0x141)])[_0x2c59e1(0x14a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x29033b[_0x2c59e1(0x144)])['demandCommand']()[_0x2c59e1(0x149)]()[_0x2c59e1(0x13f)]()['help'](_0x29033b['qvUQO']);},exports[a1_0x427417(0x13d)]=function(_0x32cf83){};
1
+ const a1_0x28535e=a1_0x4928;function a1_0x4f3a(){const _0x207e81=['demandCommand','2799130MIJSIo','../config/constants','312tGdjTj','handler','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','966946dzVPdD','17907381YBnHLT','epilogue','command','622136fBULOm','HUyxG','77LDasWg','1309806lfsbsu','52296VkNUXY','471208OApwcZ','desc','commandDir','edlpM','strict','help','connect'];a1_0x4f3a=function(){return _0x207e81;};return a1_0x4f3a();}(function(_0x95c66f,_0x2ef6c0){const _0x4c189a=a1_0x4928,_0x3b07b3=_0x95c66f();while(!![]){try{const _0x4d4289=-parseInt(_0x4c189a(0x1dd))/0x1+parseInt(_0x4c189a(0x1d4))/0x2+parseInt(_0x4c189a(0x1dc))/0x3*(-parseInt(_0x4c189a(0x1d1))/0x4)+-parseInt(_0x4c189a(0x1cf))/0x5+-parseInt(_0x4c189a(0x1db))/0x6+parseInt(_0x4c189a(0x1da))/0x7*(parseInt(_0x4c189a(0x1d8))/0x8)+parseInt(_0x4c189a(0x1d5))/0x9;if(_0x4d4289===_0x2ef6c0)break;else _0x3b07b3['push'](_0x3b07b3['shift']());}catch(_0x292a93){_0x3b07b3['push'](_0x3b07b3['shift']());}}}(a1_0x4f3a,0xafae4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x28535e(0x1d0));function a1_0x4928(_0x1bca06,_0x239698){const _0x4f3a50=a1_0x4f3a();return a1_0x4928=function(_0x492807,_0x2cf232){_0x492807=_0x492807-0x1ce;let _0x4b3399=_0x4f3a50[_0x492807];return _0x4b3399;},a1_0x4928(_0x1bca06,_0x239698);}exports[a1_0x28535e(0x1d7)]=a1_0x28535e(0x1e3),exports[a1_0x28535e(0x1de)]=a1_0x28535e(0x1d3),exports['builder']=function(_0x34b2e7){const _0x3ba69b=a1_0x28535e,_0x1b5bb4={};_0x1b5bb4[_0x3ba69b(0x1d9)]='connect_commands',_0x1b5bb4[_0x3ba69b(0x1e0)]=_0x3ba69b(0x1e2);const _0x17ec0d=_0x1b5bb4;return _0x34b2e7['usage'](HELP_HEADER_MESSAGE['connect'])[_0x3ba69b(0x1d6)](HELP_FOOTER_MESSAGE)[_0x3ba69b(0x1df)](_0x17ec0d[_0x3ba69b(0x1d9)])[_0x3ba69b(0x1ce)]()['recommendCommands']()[_0x3ba69b(0x1e1)]()[_0x3ba69b(0x1e2)](_0x17ec0d[_0x3ba69b(0x1e0)]);},exports[a1_0x28535e(0x1d2)]=function(_0x32e9ea){};
@@ -1 +1 @@
1
- const a2_0x425b8e=a2_0x3a30;function a2_0x4f03(){const _0x50b86d=['uHMrj','usage','argv','handler','AdOZy','string','isRunning','TtGLK','YSiuQ','1158437AynQGa','Grid\x20type:\x20Trial','105266xQkFTl','vhDCi','error','22HnCvRX','ThYFV','yyWZh','customRepeaters','BaUaM','fjIjv','2098311HdzPkK','type','IGSaA','grid','eYpaH','uPjju','XwHkk','grid-id','Advance\x20options\x20for\x20Browserstack\x20Local','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','DnjHh','eXbbF','659385yjypRJ','advanceOptions','GfcJn','UWRum','mjpuw','exit','lDfYZ','KxSCh','true','JGuUI','jCjgU','KLjGI','DVlXN','zrfof','Pass\x20the\x20ID\x20of\x20the\x20Grid','options','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','qlZRX','ZOrJW','bdtJO','mZidF','bstack-username','24488250HFtJeZ','description','create','3125512upEmmS','advance-options','AUDpv','SIGTERM','useStaging','QLnIk','Dizzg','NFMWv','accessKey','bstack-accesskey','epilogue','aTKQS','UNzCj','CYksA','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','fsPBX','demandOption','ZtqLv','eiImt','gridId','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','command','sXSvO','NsXvg','../../config/constants','SrHSn','builder','ALkcG','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','use-staging','browserStackLocalOptions','WHxUv','bstackAccesskey','BKRHf','136ENCESC','RhikL','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','info','ajtlQ','fLyuT','help','hOUnh','../../config/logger','hoaQK','4819355MzTUAz','6okEskM'];a2_0x4f03=function(){return _0x50b86d;};return a2_0x4f03();}(function(_0x5b8eec,_0x44ed43){const _0x4b27b9=a2_0x3a30,_0x18dffd=_0x5b8eec();while(!![]){try{const _0x5af8f5=-parseInt(_0x4b27b9(0x1f6))/0x1*(parseInt(_0x4b27b9(0x1f3))/0x2)+parseInt(_0x4b27b9(0x1fc))/0x3+parseInt(_0x4b27b9(0x221))/0x4+-parseInt(_0x4b27b9(0x24f))/0x5*(parseInt(_0x4b27b9(0x1e7))/0x6)+parseInt(_0x4b27b9(0x1f1))/0x7+parseInt(_0x4b27b9(0x245))/0x8*(-parseInt(_0x4b27b9(0x208))/0x9)+parseInt(_0x4b27b9(0x21e))/0xa;if(_0x5af8f5===_0x44ed43)break;else _0x18dffd['push'](_0x18dffd['shift']());}catch(_0x3d8abd){_0x18dffd['push'](_0x18dffd['shift']());}}}(a2_0x4f03,0xb1b15));function a2_0x3a30(_0x59c56e,_0x223dcf){const _0x4f0363=a2_0x4f03();return a2_0x3a30=function(_0x3a30bc,_0x4a0bbd){_0x3a30bc=_0x3a30bc-0x1e7;let _0x4b452c=_0x4f0363[_0x3a30bc];return _0x4b452c;},a2_0x3a30(_0x59c56e,_0x223dcf);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x425b8e(0x239)),{logger}=require(a2_0x425b8e(0x24d)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports[a2_0x425b8e(0x236)]=a2_0x425b8e(0x1ff),exports['desc']=a2_0x425b8e(0x218),exports[a2_0x425b8e(0x23b)]=_0x51df3d=>{const _0x249c62=a2_0x425b8e,_0x509dff={};_0x509dff[_0x249c62(0x1f8)]=_0x249c62(0x247),_0x509dff[_0x249c62(0x201)]=_0x249c62(0x1ed),_0x509dff[_0x249c62(0x238)]=_0x249c62(0x23f),_0x509dff[_0x249c62(0x223)]=_0x249c62(0x216),_0x509dff['RhikL']=_0x249c62(0x23e),_0x509dff[_0x249c62(0x249)]=_0x249c62(0x204),_0x509dff[_0x249c62(0x227)]=_0x249c62(0x24b);const _0xbf7b8e=_0x509dff,_0x578cf6={};_0x578cf6[_0x249c62(0x21f)]=_0xbf7b8e['yyWZh'],_0x578cf6[_0x249c62(0x1fd)]=_0xbf7b8e['uPjju'];const _0x3d9678={};_0x3d9678[_0x249c62(0x21f)]=_0xbf7b8e[_0x249c62(0x238)],_0x3d9678[_0x249c62(0x1fd)]=_0xbf7b8e['uPjju'];const _0x2a2123={};_0x2a2123[_0x249c62(0x231)]=!![],_0x2a2123[_0x249c62(0x21f)]=_0xbf7b8e[_0x249c62(0x223)],_0x2a2123[_0x249c62(0x1fd)]=_0xbf7b8e[_0x249c62(0x201)];const _0x1595ef={};_0x1595ef[_0x249c62(0x21f)]=_0xbf7b8e[_0x249c62(0x246)],_0x1595ef[_0x249c62(0x1fd)]=_0xbf7b8e[_0x249c62(0x201)];const _0x2ab293={};_0x2ab293['description']=_0xbf7b8e[_0x249c62(0x249)],_0x2ab293[_0x249c62(0x1fd)]=_0xbf7b8e['uPjju'];const _0x5397c2={};return _0x5397c2[_0x249c62(0x21d)]=_0x578cf6,_0x5397c2[_0x249c62(0x22a)]=_0x3d9678,_0x5397c2[_0x249c62(0x203)]=_0x2a2123,_0x5397c2[_0x249c62(0x240)]=_0x1595ef,_0x5397c2[_0x249c62(0x222)]=_0x2ab293,_0x51df3d[_0x249c62(0x1e9)](HELP_HEADER_MESSAGE[_0x249c62(0x220)])[_0x249c62(0x22b)](HELP_FOOTER_MESSAGE)[_0x249c62(0x217)](_0x5397c2)[_0x249c62(0x24b)](_0xbf7b8e[_0x249c62(0x227)])['argv'];},exports[a2_0x425b8e(0x1eb)]=async _0xd65302=>{const _0x3a9ad8=a2_0x425b8e,_0x2418da={'uHMrj':function(_0xbe8cef,_0x447ac5){return _0xbe8cef(_0x447ac5);},'BKRHf':'beforeExit','jCjgU':'SIGINT','eXbbF':_0x3a9ad8(0x224),'TtGLK':function(_0xde1d16,_0x301b01){return _0xde1d16==_0x301b01;},'zrfof':function(_0x56af41,_0x182587){return _0x56af41(_0x182587);},'ZOrJW':function(_0x549b9b,_0x2f3227){return _0x549b9b===_0x2f3227;},'iFqqc':_0x3a9ad8(0x214),'QLnIk':_0x3a9ad8(0x232),'mZidF':function(_0x452f63,_0xdfed31){return _0x452f63==_0xdfed31;},'sXSvO':_0x3a9ad8(0x247),'fsPBX':'string','KxSCh':_0x3a9ad8(0x23f),'FmMUb':_0x3a9ad8(0x216),'cbcbH':_0x3a9ad8(0x23e),'fLyuT':_0x3a9ad8(0x204),'aTKQS':_0x3a9ad8(0x24b),'XwHkk':'iKrnI','lDfYZ':'NwBFk','eiImt':function(_0x59285c,_0x35910f){return _0x59285c==_0x35910f;},'bdtJO':function(_0x62225,_0x39902b){return _0x62225(_0x39902b);},'JEPxZ':function(_0xe0744,_0x4cd7f4,_0x2875f7){return _0xe0744(_0x4cd7f4,_0x2875f7);},'UWRum':function(_0x35c475,_0x5e49c0){return _0x35c475&&_0x5e49c0;},'ALkcG':function(_0x244b6d,_0x22c4c1){return _0x244b6d!==_0x22c4c1;},'CYksA':_0x3a9ad8(0x206),'hoaQK':_0x3a9ad8(0x20a),'JGuUI':function(_0x5a1a20,_0x424051,_0x12accd,_0x262786){return _0x5a1a20(_0x424051,_0x12accd,_0x262786);},'BaUaM':function(_0x398523,_0x279385){return _0x398523===_0x279385;},'hOUnh':_0x3a9ad8(0x1fb),'NFMWv':function(_0x4bbf60,_0x652b58){return _0x4bbf60(_0x652b58);},'IGSaA':function(_0x51f130,_0x265b3b){return _0x51f130===_0x265b3b;},'ThYFV':_0x3a9ad8(0x210),'YSiuQ':function(_0x9e09e0,_0x7c7cc){return _0x9e09e0===_0x7c7cc;},'qRrEr':_0x3a9ad8(0x1ec),'eJOpp':_0x3a9ad8(0x23a),'UIhbM':function(_0x450be6,_0x4307e2){return _0x450be6===_0x4307e2;},'KLjGI':_0x3a9ad8(0x1f4),'eaAXJ':_0x3a9ad8(0x242),'mjpuw':_0x3a9ad8(0x219)};let _0x181337=_0xd65302['bstackUsername'],_0x48f5df=_0xd65302[_0x3a9ad8(0x243)],_0x86de6f=_0xd65302[_0x3a9ad8(0x209)];const _0x48275e=_0x53e7f6=>{const _0x29c786=_0x3a9ad8,_0x390cf5={'eYpaH':function(_0xe781a9,_0x264154){const _0x59bffa=a2_0x3a30;return _0x2418da[_0x59bffa(0x1ef)](_0xe781a9,_0x264154);},'ShBPy':function(_0x21b6c9,_0x4e7c35){const _0x2fb693=a2_0x3a30;return _0x2418da[_0x2fb693(0x215)](_0x21b6c9,_0x4e7c35);}};if(_0x2418da[_0x29c786(0x21a)](_0x2418da['iFqqc'],_0x2418da[_0x29c786(0x226)])){_0xa23f0a='Grid\x20type:\x20Trial',_0x51e620[_0x29c786(0x248)](_0x1383dd);try{const _0x337101={};_0x337101['accessKey']=_0x4b681f,_0x337101[_0x29c786(0x1f9)]=_0x47cd64[_0x29c786(0x1f9)],_0x337101[_0x29c786(0x241)]=_0xcb8030;const _0x51cedb=_0x337101,_0x1f61c0=_0x2418da[_0x29c786(0x1e8)](_0x1bbbb1,_0x51cedb);let _0x1d9e25=0x0;const _0xe6fc74=async()=>{const _0x5b8697=_0x29c786;_0x1d9e25++,_0x390cf5[_0x5b8697(0x200)](_0x1d9e25,0x1)&&_0x1f61c0&&_0x1f61c0[_0x5b8697(0x1ee)]()&&_0x390cf5['ShBPy'](_0x53edfd,_0x1f61c0);};_0x3d0da7['on'](_0x2418da[_0x29c786(0x244)],_0xe6fc74),_0x169092['on'](_0x2418da[_0x29c786(0x212)],_0xe6fc74),_0xdcd3f1['on'](_0x2418da[_0x29c786(0x207)],_0xe6fc74),_0x105c27=_0x29c786(0x23d),_0x329672['info'](_0x50ed2d);}catch(_0x2ef587){_0x2418da[_0x29c786(0x1e8)](_0x12eb5a,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}else logger[_0x29c786(0x1f5)](_0x53e7f6),process[_0x29c786(0x20d)](0x1);};[_0x181337,_0x48f5df]=_0x2418da['JEPxZ'](fetchOrUpdateUserConfig,_0x181337,_0x48f5df);!_0x2418da[_0x3a9ad8(0x20b)](_0x181337,_0x48f5df)&&(_0x2418da[_0x3a9ad8(0x23c)](_0x2418da[_0x3a9ad8(0x22e)],_0x2418da[_0x3a9ad8(0x24e)])?_0x2418da['bdtJO'](_0x48275e,_0x3a9ad8(0x235)):(_0x23a8d6++,_0x2418da[_0x3a9ad8(0x21c)](_0x34adef,0x1)&&_0x1d7217&&_0x59d6cc['isRunning']()&&_0x2418da['zrfof'](_0x4c95a5,_0xc3c5f1)));let _0x30f4bf=_0xd65302[_0x3a9ad8(0x234)],_0x35b980=await _0x2418da[_0x3a9ad8(0x211)](getGridDetails,_0x181337,_0x48f5df,_0x30f4bf);if(!_0x35b980){if(_0x2418da[_0x3a9ad8(0x1fa)](_0x2418da['hOUnh'],_0x2418da[_0x3a9ad8(0x24c)]))_0x2418da[_0x3a9ad8(0x228)](_0x48275e,_0x3a9ad8(0x205));else{const _0x1da2ae={};_0x1da2ae[_0x3a9ad8(0x21f)]=_0x2418da[_0x3a9ad8(0x237)],_0x1da2ae['type']=_0x2418da[_0x3a9ad8(0x230)];const _0x318fb9={};_0x318fb9[_0x3a9ad8(0x21f)]=_0x2418da[_0x3a9ad8(0x20f)],_0x318fb9[_0x3a9ad8(0x1fd)]=_0x2418da[_0x3a9ad8(0x230)];const _0x3465c9={};_0x3465c9[_0x3a9ad8(0x231)]=!![],_0x3465c9[_0x3a9ad8(0x21f)]=_0x2418da['FmMUb'],_0x3465c9[_0x3a9ad8(0x1fd)]=_0x2418da[_0x3a9ad8(0x230)];const _0x4dded5={};_0x4dded5[_0x3a9ad8(0x21f)]=_0x2418da['cbcbH'],_0x4dded5[_0x3a9ad8(0x1fd)]=_0x2418da[_0x3a9ad8(0x230)];const _0x287db6={};_0x287db6[_0x3a9ad8(0x21f)]=_0x2418da[_0x3a9ad8(0x24a)],_0x287db6['type']=_0x2418da[_0x3a9ad8(0x230)];const _0x2e5a6e={};return _0x2e5a6e['bstack-username']=_0x1da2ae,_0x2e5a6e[_0x3a9ad8(0x22a)]=_0x318fb9,_0x2e5a6e[_0x3a9ad8(0x203)]=_0x3465c9,_0x2e5a6e[_0x3a9ad8(0x240)]=_0x4dded5,_0x2e5a6e[_0x3a9ad8(0x222)]=_0x287db6,_0x1bc7d0['usage'](_0x37fb53[_0x3a9ad8(0x220)])[_0x3a9ad8(0x22b)](_0x19081b)[_0x3a9ad8(0x217)](_0x2e5a6e)[_0x3a9ad8(0x24b)](_0x2418da[_0x3a9ad8(0x22c)])[_0x3a9ad8(0x1ea)];}}let _0x578aa4=_0x2418da[_0x3a9ad8(0x1fe)](_0xd65302[_0x3a9ad8(0x225)],_0x2418da[_0x3a9ad8(0x1f7)])?!![]:![];if(_0x35b980&&_0x35b980['isTrialGrid']&&_0x578aa4){if(_0x2418da[_0x3a9ad8(0x1f0)](_0x2418da['qRrEr'],_0x2418da['eJOpp']))_0x5053b6[_0x3a9ad8(0x1f5)](_0x57027c),_0x3a6ed8[_0x3a9ad8(0x20d)](0x1);else{logMessage=_0x3a9ad8(0x1f2),logger['info'](logMessage);try{if(_0x2418da['UIhbM'](_0x2418da[_0x3a9ad8(0x213)],_0x2418da['eaAXJ']))_0x2418da[_0x3a9ad8(0x1e8)](_0x3c45a9,_0x3a9ad8(0x205));else{const _0x52fa34={};_0x52fa34[_0x3a9ad8(0x229)]=_0x48f5df,_0x52fa34[_0x3a9ad8(0x1f9)]=_0x35b980[_0x3a9ad8(0x1f9)],_0x52fa34[_0x3a9ad8(0x241)]=_0x86de6f;const _0x2ccc3d=_0x52fa34,_0x50aca1=_0x2418da[_0x3a9ad8(0x215)](startLocalBinarySync,_0x2ccc3d);let _0x1a675d=0x0;const _0x1fc488=async()=>{const _0x1c4e01=_0x3a9ad8,_0x1e04ec={'UNzCj':function(_0x119455,_0x4b26e3){return _0x2418da['uHMrj'](_0x119455,_0x4b26e3);}};_0x2418da[_0x1c4e01(0x21a)](_0x2418da[_0x1c4e01(0x202)],_0x2418da[_0x1c4e01(0x20e)])?_0x1e04ec[_0x1c4e01(0x22d)](_0x45f69d,_0x1c4e01(0x235)):(_0x1a675d++,_0x2418da[_0x1c4e01(0x233)](_0x1a675d,0x1)&&_0x50aca1&&_0x50aca1['isRunning']()&&_0x2418da[_0x1c4e01(0x21b)](stopLocalBinary,_0x50aca1));};process['on'](_0x2418da[_0x3a9ad8(0x244)],_0x1fc488),process['on'](_0x2418da[_0x3a9ad8(0x212)],_0x1fc488),process['on'](_0x2418da[_0x3a9ad8(0x207)],_0x1fc488),logMessage=_0x3a9ad8(0x23d),logger['info'](logMessage);}}catch(_0x42a761){_0x2418da[_0x3a9ad8(0x23c)](_0x2418da['mjpuw'],_0x2418da[_0x3a9ad8(0x20c)])?_0x2418da[_0x3a9ad8(0x1e8)](_0x328a2d,_0x3a9ad8(0x22f)):_0x2418da[_0x3a9ad8(0x228)](_0x48275e,_0x3a9ad8(0x22f));}}}process[_0x3a9ad8(0x20d)](0x0);};
1
+ const a2_0x4a6f57=a2_0xcee3;function a2_0xcee3(_0x3cd3b6,_0x4c92e8){const _0x29ee0b=a2_0x29ee();return a2_0xcee3=function(_0xcee3c9,_0x3f7918){_0xcee3c9=_0xcee3c9-0x72;let _0x5be3c8=_0x29ee0b[_0xcee3c9];return _0x5be3c8;},a2_0xcee3(_0x3cd3b6,_0x4c92e8);}(function(_0x531c1e,_0x117293){const _0x362a45=a2_0xcee3,_0x5402d9=_0x531c1e();while(!![]){try{const _0x4b2d5a=parseInt(_0x362a45(0xcf))/0x1*(parseInt(_0x362a45(0x9b))/0x2)+-parseInt(_0x362a45(0x8e))/0x3*(-parseInt(_0x362a45(0xa1))/0x4)+-parseInt(_0x362a45(0xc8))/0x5*(parseInt(_0x362a45(0xda))/0x6)+-parseInt(_0x362a45(0xb6))/0x7+-parseInt(_0x362a45(0x89))/0x8*(parseInt(_0x362a45(0x81))/0x9)+parseInt(_0x362a45(0xa2))/0xa+parseInt(_0x362a45(0x86))/0xb*(parseInt(_0x362a45(0x87))/0xc);if(_0x4b2d5a===_0x117293)break;else _0x5402d9['push'](_0x5402d9['shift']());}catch(_0x465de4){_0x5402d9['push'](_0x5402d9['shift']());}}}(a2_0x29ee,0xe99df));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x4a6f57(0xcc));exports[a2_0x4a6f57(0xd7)]=a2_0x4a6f57(0xac),exports[a2_0x4a6f57(0xd2)]=a2_0x4a6f57(0xc5),exports[a2_0x4a6f57(0x92)]=_0x55a68d=>{const _0x5dc87e=a2_0x4a6f57,_0x581338={};_0x581338['IifJh']=_0x5dc87e(0x91),_0x581338[_0x5dc87e(0x8b)]='string',_0x581338['pJZsf']=_0x5dc87e(0x95),_0x581338['JQXgA']=_0x5dc87e(0xdd),_0x581338[_0x5dc87e(0xb9)]=_0x5dc87e(0x9a),_0x581338[_0x5dc87e(0xcb)]=_0x5dc87e(0xbd),_0x581338[_0x5dc87e(0xc6)]=_0x5dc87e(0xb7);const _0x4252b5=_0x581338,_0x3fd8b8={};_0x3fd8b8[_0x5dc87e(0xa4)]=_0x4252b5[_0x5dc87e(0xa3)],_0x3fd8b8[_0x5dc87e(0xb2)]=_0x4252b5[_0x5dc87e(0x8b)];const _0x18694d={};_0x18694d[_0x5dc87e(0xa4)]=_0x4252b5['pJZsf'],_0x18694d[_0x5dc87e(0xb2)]=_0x4252b5[_0x5dc87e(0x8b)];const _0x254517={};_0x254517[_0x5dc87e(0x9c)]=!![],_0x254517[_0x5dc87e(0xa4)]=_0x4252b5[_0x5dc87e(0xb8)],_0x254517[_0x5dc87e(0xb2)]=_0x4252b5['MYxnq'];const _0x3f9332={};_0x3f9332['description']=_0x4252b5[_0x5dc87e(0xb9)],_0x3f9332[_0x5dc87e(0xb2)]=_0x4252b5[_0x5dc87e(0x8b)];const _0x32a339={};_0x32a339['description']=_0x4252b5['Jxiei'],_0x32a339['type']=_0x4252b5['MYxnq'];const _0x1d860e={};return _0x1d860e['bstack-username']=_0x3fd8b8,_0x1d860e['bstack-accesskey']=_0x18694d,_0x1d860e[_0x5dc87e(0xc2)]=_0x254517,_0x1d860e[_0x5dc87e(0xaf)]=_0x3f9332,_0x1d860e[_0x5dc87e(0xb0)]=_0x32a339,_0x55a68d[_0x5dc87e(0x97)](HELP_HEADER_MESSAGE[_0x5dc87e(0x98)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5dc87e(0xbf)](_0x1d860e)[_0x5dc87e(0xb7)](_0x4252b5[_0x5dc87e(0xc6)])['argv'];},exports[a2_0x4a6f57(0x7a)]=async _0x138a25=>{const _0x34ad01=a2_0x4a6f57,_0x444d39={'wzGQr':function(_0x4045f8,_0x41db68){return _0x4045f8(_0x41db68);},'ZOLCP':function(_0x117d66,_0x104554){return _0x117d66!==_0x104554;},'wSsUy':_0x34ad01(0xc7),'xmfYP':'SQmER','pJhLJ':function(_0x514ee0,_0x4fbab0){return _0x514ee0==_0x4fbab0;},'bBRbU':function(_0x27aa84,_0x512ca0){return _0x27aa84(_0x512ca0);},'cAFdx':_0x34ad01(0x91),'GzhYM':_0x34ad01(0x85),'ZDhnB':_0x34ad01(0x95),'KTQho':_0x34ad01(0xdd),'ycwzK':_0x34ad01(0x9a),'oPdVF':_0x34ad01(0xbd),'KPjck':'help','BQUxj':function(_0x1edd91,_0x433013){return _0x1edd91!==_0x433013;},'BmrDz':_0x34ad01(0x76),'oKbEv':_0x34ad01(0xd9),'PRyex':function(_0x5a3560,_0x12b700){return _0x5a3560(_0x12b700);},'sLioO':function(_0x117144,_0x1b04fb){return _0x117144(_0x1b04fb);},'yRADj':_0x34ad01(0x94),'XLywM':_0x34ad01(0x80),'pFxjL':'SIGTERM','CAQrM':function(_0x19b12e,_0x3e1302,_0x2a809f){return _0x19b12e(_0x3e1302,_0x2a809f);},'xUbCp':function(_0x3a0979,_0x541a33){return _0x3a0979&&_0x541a33;},'qalHR':function(_0x497d7a,_0x587144){return _0x497d7a===_0x587144;},'hCUnt':_0x34ad01(0xc4),'eNzQz':function(_0x5c0403,_0x427df2){return _0x5c0403(_0x427df2);},'DqJfP':function(_0xf5d52d,_0xe9a5e5,_0xf522b4,_0x2ed4ae){return _0xf5d52d(_0xe9a5e5,_0xf522b4,_0x2ed4ae);},'YWLOe':_0x34ad01(0xb4),'AnuSJ':'fzaaS','pjyzX':_0x34ad01(0x84),'iRhNK':_0x34ad01(0x83),'CgIyz':_0x34ad01(0x73),'jTwHG':function(_0x1f8a0a,_0x4cd57d){return _0x1f8a0a===_0x4cd57d;},'YdlXQ':_0x34ad01(0xa8),'eAiwl':_0x34ad01(0x79),'gJKWB':function(_0x6596a5,_0x521801){return _0x6596a5(_0x521801);}};let _0x4c802=_0x138a25[_0x34ad01(0xcd)],_0x2afd29=_0x138a25[_0x34ad01(0xde)],_0x461b24=_0x138a25[_0x34ad01(0xaa)];const _0x16f63d=_0x1ed390=>{const _0x5805fb=_0x34ad01,_0x5cff46={'MdUsY':function(_0xe81fdf,_0xd4db6e){const _0x11892b=a2_0xcee3;return _0x444d39[_0x11892b(0xb5)](_0xe81fdf,_0xd4db6e);}};_0x444d39[_0x5805fb(0x93)](_0x444d39[_0x5805fb(0x8d)],_0x444d39[_0x5805fb(0x7f)])?(logger[_0x5805fb(0xc3)](_0x1ed390),process[_0x5805fb(0xb3)](0x1)):_0x5cff46['MdUsY'](_0x52d6d0,_0x5805fb(0xa9));};[_0x4c802,_0x2afd29]=_0x444d39[_0x34ad01(0x82)](fetchOrUpdateUserConfig,_0x4c802,_0x2afd29);!_0x444d39[_0x34ad01(0xca)](_0x4c802,_0x2afd29)&&(_0x444d39[_0x34ad01(0xbe)](_0x444d39[_0x34ad01(0xdc)],_0x444d39[_0x34ad01(0xdc)])?_0x444d39['eNzQz'](_0x16f63d,_0x34ad01(0x8c)):(_0x1bec87++,_0x444d39['pJhLJ'](_0x59fe2a,0x1)&&_0x4e21d7&&_0x36339f[_0x34ad01(0x78)]()&&_0x444d39['bBRbU'](_0x5f5b2f,_0x265979)));let _0x2525bc=_0x138a25[_0x34ad01(0xd4)],_0x2be121=await _0x444d39[_0x34ad01(0xa0)](getGridDetails,_0x4c802,_0x2afd29,_0x2525bc);if(!_0x2be121){if(_0x444d39[_0x34ad01(0xba)](_0x444d39[_0x34ad01(0x74)],_0x444d39[_0x34ad01(0xd5)]))_0x444d39[_0x34ad01(0x9f)](_0x16f63d,_0x34ad01(0xa9));else{const _0x11a0b7={};_0x11a0b7[_0x34ad01(0xa4)]=_0x444d39[_0x34ad01(0xc0)],_0x11a0b7[_0x34ad01(0xb2)]=_0x444d39[_0x34ad01(0xbb)];const _0x593269={};_0x593269[_0x34ad01(0xa4)]=_0x444d39[_0x34ad01(0xab)],_0x593269[_0x34ad01(0xb2)]=_0x444d39['GzhYM'];const _0x1c857b={};_0x1c857b[_0x34ad01(0x9c)]=!![],_0x1c857b['description']=_0x444d39[_0x34ad01(0x96)],_0x1c857b[_0x34ad01(0xb2)]=_0x444d39[_0x34ad01(0xbb)];const _0x34d6c0={};_0x34d6c0[_0x34ad01(0xa4)]=_0x444d39[_0x34ad01(0xad)],_0x34d6c0['type']=_0x444d39[_0x34ad01(0xbb)];const _0x15593b={};_0x15593b[_0x34ad01(0xa4)]=_0x444d39[_0x34ad01(0xd1)],_0x15593b[_0x34ad01(0xb2)]=_0x444d39[_0x34ad01(0xbb)];const _0x15c473={};return _0x15c473[_0x34ad01(0xc1)]=_0x11a0b7,_0x15c473[_0x34ad01(0xd3)]=_0x593269,_0x15c473[_0x34ad01(0xc2)]=_0x1c857b,_0x15c473[_0x34ad01(0xaf)]=_0x34d6c0,_0x15c473['advance-options']=_0x15593b,_0x276202['usage'](_0x227d68[_0x34ad01(0x98)])[_0x34ad01(0x9e)](_0x4c8b2c)[_0x34ad01(0xbf)](_0x15c473)['help'](_0x444d39[_0x34ad01(0x88)])[_0x34ad01(0x8f)];}}let _0x16c227=_0x444d39['qalHR'](_0x138a25[_0x34ad01(0x8a)],_0x444d39[_0x34ad01(0xe0)])?!![]:![];if(_0x2be121&&_0x2be121[_0x34ad01(0x99)]&&_0x16c227){if(_0x444d39['ZOLCP'](_0x444d39[_0x34ad01(0x90)],_0x444d39['CgIyz'])){logMessage='Grid\x20type:\x20Trial',logger['info'](logMessage);try{if(_0x444d39[_0x34ad01(0xb1)](_0x444d39[_0x34ad01(0xbc)],_0x444d39['YdlXQ'])){const _0x31559a={};_0x31559a[_0x34ad01(0xa6)]=_0x2afd29,_0x31559a[_0x34ad01(0x7c)]=_0x2be121[_0x34ad01(0x7c)],_0x31559a['browserStackLocalOptions']=_0x461b24;const _0x18077e=_0x31559a,_0x3b4a4a=_0x444d39[_0x34ad01(0xdf)](startLocalBinarySync,_0x18077e);let _0x4d7b3b=0x0;const _0x467042=async()=>{const _0x48bf3c=_0x34ad01,_0x4b2e92={'kEMLL':function(_0x1d0fbf,_0x49627d){const _0x1a129c=a2_0xcee3;return _0x444d39[_0x1a129c(0xdf)](_0x1d0fbf,_0x49627d);}};_0x444d39['BQUxj'](_0x444d39[_0x48bf3c(0xa7)],_0x444d39[_0x48bf3c(0x7d)])?(_0x4d7b3b++,_0x444d39['pJhLJ'](_0x4d7b3b,0x1)&&_0x3b4a4a&&_0x3b4a4a[_0x48bf3c(0x78)]()&&_0x444d39[_0x48bf3c(0xae)](stopLocalBinary,_0x3b4a4a)):_0x4b2e92[_0x48bf3c(0xce)](_0x3fae37,_0x48bf3c(0x8c));};process['on'](_0x444d39[_0x34ad01(0x7b)],_0x467042),process['on'](_0x444d39['XLywM'],_0x467042),process['on'](_0x444d39[_0x34ad01(0xd6)],_0x467042),logMessage=_0x34ad01(0x77),logger[_0x34ad01(0x7e)](logMessage);}else{const _0x71c16f={'srSuD':function(_0x315e91,_0xe388ae){const _0x1662ee=_0x34ad01;return _0x444d39[_0x1662ee(0x72)](_0x315e91,_0xe388ae);},'ioENX':function(_0x2d5d5f,_0x1dac62){const _0x5324bc=_0x34ad01;return _0x444d39[_0x5324bc(0x9f)](_0x2d5d5f,_0x1dac62);}},_0xa0ddd9={};_0xa0ddd9[_0x34ad01(0xa6)]=_0x41ff95,_0xa0ddd9[_0x34ad01(0x7c)]=_0x53cf83['customRepeaters'],_0xa0ddd9[_0x34ad01(0x75)]=_0x4a2e07;const _0xa16c24=_0xa0ddd9,_0x544b4d=_0x444d39[_0x34ad01(0x9f)](_0x1a8d88,_0xa16c24);let _0x4021c2=0x0;const _0x492f69=async()=>{const _0x186ec3=_0x34ad01;_0x4021c2++,_0x71c16f[_0x186ec3(0xd0)](_0x4021c2,0x1)&&_0x544b4d&&_0x544b4d[_0x186ec3(0x78)]()&&_0x71c16f[_0x186ec3(0xd8)](_0x13da97,_0x544b4d);};_0x2526e3['on'](_0x444d39[_0x34ad01(0x7b)],_0x492f69),_0xffd3d4['on'](_0x444d39[_0x34ad01(0x9d)],_0x492f69),_0x1621cf['on'](_0x444d39['pFxjL'],_0x492f69),_0x54c03e=_0x34ad01(0x77),_0x153608['info'](_0x5a29cf);}}catch(_0x4c2c90){_0x444d39[_0x34ad01(0xbe)](_0x444d39[_0x34ad01(0xdb)],_0x444d39[_0x34ad01(0xdb)])?_0x444d39[_0x34ad01(0xa5)](_0x16f63d,_0x34ad01(0xc9)):(_0x426b6c[_0x34ad01(0xc3)](_0xdffc83),_0x153c1a[_0x34ad01(0xb3)](0x1));}}else _0x444d39[_0x34ad01(0xdf)](_0x2327f1,_0x34ad01(0xc9));}process[_0x34ad01(0xb3)](0x0);};function a2_0x29ee(){const _0x24e9b5=['gzuPP','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','advanceOptions','ZDhnB','grid','ycwzK','PRyex','use-staging','advance-options','jTwHG','type','exit','ukQWG','wzGQr','3086573jEztdJ','help','JQXgA','mufsS','BQUxj','GzhYM','YdlXQ','Advance\x20options\x20for\x20Browserstack\x20Local','qalHR','options','cAFdx','bstack-username','grid-id','error','lQXVL','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','wjvjP','eoKCq','686935SIMhlf','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','xUbCp','Jxiei','../../utils/utilityMethods','bstackUsername','kEMLL','1401149lRIbTo','srSuD','oPdVF','desc','bstack-accesskey','gridId','AnuSJ','pFxjL','command','ioENX','XQrlC','72WKivMM','eAiwl','hCUnt','Pass\x20the\x20ID\x20of\x20the\x20Grid','bstackAccesskey','bBRbU','pjyzX','pJhLJ','jSqSy','YWLOe','browserStackLocalOptions','nqHiE','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','isRunning','keIkt','handler','yRADj','customRepeaters','oKbEv','info','xmfYP','SIGINT','7146iwyiwF','CAQrM','OmGgX','true','string','2123fUHUmq','36588ifuwwg','KPjck','3120NfmzmA','useStaging','MYxnq','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','wSsUy','719799TLfHXY','argv','iRhNK','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','ZOLCP','beforeExit','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','KTQho','usage','create','isTrialGrid','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','2rwCjgI','demandOption','XLywM','epilogue','sLioO','DqJfP','4mzlrvN','11265990JspXIt','IifJh','description','gJKWB','accessKey','BmrDz'];a2_0x29ee=function(){return _0x24e9b5;};return a2_0x29ee();}
@@ -1 +1 @@
1
- const a3_0x1a87b0=a3_0x33ff;(function(_0x37ce10,_0x3f202d){const _0x3ab266=a3_0x33ff,_0x3cc361=_0x37ce10();while(!![]){try{const _0x387032=parseInt(_0x3ab266(0x126))/0x1+parseInt(_0x3ab266(0x13c))/0x2*(parseInt(_0x3ab266(0x139))/0x3)+-parseInt(_0x3ab266(0x12b))/0x4*(-parseInt(_0x3ab266(0x12d))/0x5)+-parseInt(_0x3ab266(0x12a))/0x6+-parseInt(_0x3ab266(0x134))/0x7+parseInt(_0x3ab266(0x129))/0x8+parseInt(_0x3ab266(0x13a))/0x9;if(_0x387032===_0x3f202d)break;else _0x3cc361['push'](_0x3cc361['shift']());}catch(_0x58eb88){_0x3cc361['push'](_0x3cc361['shift']());}}}(a3_0x50cd,0x2eec4));function a3_0x33ff(_0x522502,_0x1a8eb6){const _0x50cd75=a3_0x50cd();return a3_0x33ff=function(_0x33ff2b,_0xe2a3e7){_0x33ff2b=_0x33ff2b-0x126;let _0x5b8392=_0x50cd75[_0x33ff2b];return _0x5b8392;},a3_0x33ff(_0x522502,_0x1a8eb6);}function a3_0x50cd(){const _0x16ae00=['241490TvgZUQ','73828ueqyKN','demandCommand','epilogue','797280hXmEYW','1836066RNbUcq','12pbaCJp','handler','197575ObSWPd','XtuSf','usage','desc','create','commandDir','Create\x20a\x20new\x20Automation\x20grid.','643342CKwHmq','../config/constants','create_commands','help','strict','3XYPftw','1596015METvKm','builder'];a3_0x50cd=function(){return _0x16ae00;};return a3_0x50cd();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x1a87b0(0x135));exports['command']='create',exports[a3_0x1a87b0(0x130)]=a3_0x1a87b0(0x133),exports[a3_0x1a87b0(0x13b)]=function(_0x16412a){const _0x1fa492=a3_0x1a87b0,_0x367457={};_0x367457[_0x1fa492(0x12e)]=_0x1fa492(0x136),_0x367457['jaPaL']=_0x1fa492(0x137);const _0x5ea5c4=_0x367457;return _0x16412a[_0x1fa492(0x12f)](HELP_HEADER_MESSAGE[_0x1fa492(0x131)])[_0x1fa492(0x128)](HELP_FOOTER_MESSAGE)[_0x1fa492(0x132)](_0x5ea5c4[_0x1fa492(0x12e)])[_0x1fa492(0x127)]()['recommendCommands']()[_0x1fa492(0x138)]()[_0x1fa492(0x137)](_0x5ea5c4['jaPaL']);},exports[a3_0x1a87b0(0x12c)]=function(_0x525b4d){};
1
+ const a3_0x20c222=a3_0x3121;function a3_0x3121(_0x715f09,_0x524eaa){const _0x2cf338=a3_0x2cf3();return a3_0x3121=function(_0x3121fc,_0x4e55cd){_0x3121fc=_0x3121fc-0xbd;let _0x4ecad8=_0x2cf338[_0x3121fc];return _0x4ecad8;},a3_0x3121(_0x715f09,_0x524eaa);}function a3_0x2cf3(){const _0x1b3eb6=['create_commands','11UvfFMl','12SzZbyz','7248SYdfGG','loEeJ','106090wGlDWv','epilogue','5552390INPXRA','builder','124SnxmWK','214644Dqjuzq','create','help','commandDir','recommendCommands','208KfgLXY','command','2jKLajZ','1379avJqJe','496994CWQcfs','usage','1577871dSKNyG','../config/constants','4239vqyVIg','HbmTY','Create\x20a\x20new\x20Automation\x20grid.'];a3_0x2cf3=function(){return _0x1b3eb6;};return a3_0x2cf3();}(function(_0x2fa0b2,_0x4b960){const _0x5c6033=a3_0x3121,_0x1cdcbb=_0x2fa0b2();while(!![]){try{const _0x2eda27=-parseInt(_0x5c6033(0xd1))/0x1*(-parseInt(_0x5c6033(0xcf))/0x2)+-parseInt(_0x5c6033(0xd3))/0x3+parseInt(_0x5c6033(0xc7))/0x4*(parseInt(_0x5c6033(0xc3))/0x5)+parseInt(_0x5c6033(0xc0))/0x6*(parseInt(_0x5c6033(0xd0))/0x7)+-parseInt(_0x5c6033(0xc1))/0x8*(parseInt(_0x5c6033(0xd5))/0x9)+-parseInt(_0x5c6033(0xc5))/0xa*(-parseInt(_0x5c6033(0xbf))/0xb)+-parseInt(_0x5c6033(0xc8))/0xc*(parseInt(_0x5c6033(0xcd))/0xd);if(_0x2eda27===_0x4b960)break;else _0x1cdcbb['push'](_0x1cdcbb['shift']());}catch(_0xa36d9c){_0x1cdcbb['push'](_0x1cdcbb['shift']());}}}(a3_0x2cf3,0x731d6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x20c222(0xd4));exports[a3_0x20c222(0xce)]=a3_0x20c222(0xc9),exports['desc']=a3_0x20c222(0xbd),exports[a3_0x20c222(0xc6)]=function(_0xb217db){const _0x4fb83d=a3_0x20c222,_0x48dd76={};_0x48dd76[_0x4fb83d(0xd6)]=_0x4fb83d(0xbe),_0x48dd76[_0x4fb83d(0xc2)]=_0x4fb83d(0xca);const _0x5a9a3b=_0x48dd76;return _0xb217db[_0x4fb83d(0xd2)](HELP_HEADER_MESSAGE[_0x4fb83d(0xc9)])[_0x4fb83d(0xc4)](HELP_FOOTER_MESSAGE)[_0x4fb83d(0xcb)](_0x5a9a3b[_0x4fb83d(0xd6)])['demandCommand']()[_0x4fb83d(0xcc)]()['strict']()[_0x4fb83d(0xca)](_0x5a9a3b['loEeJ']);},exports['handler']=function(_0x5723ca){};
@@ -1 +1 @@
1
- const a4_0x24aeda=a4_0x1bb6;function a4_0x1ea5(){const _0x2539e8=['metadata','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','GpnzD','nodegroup','match','defaultGridProfile','accessKey','Subnets\x20=>\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Creating\x20namespace','Spawning\x20the\x20grid\x20','WjYSh','QyyzR','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','data','exit','ZoKeg','Deleting\x20the\x20CloudFormation\x20Stacks','IaCPA','catch','INFO','<UsernamePlaceholder>','cYUUA','grid','cluster','cluster-name','statusCode','aws','GGxrN','qCMXr','grid-profile','2835469MYMjHu','ClusterRole\x20=>\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress','MoRQv','EGntQ','tvmLR','stringify','pre-spawned-invalid-vpc','sZBJd','HBBzA','WARNING','Stacks','Cluster\x20and\x20node\x20group\x20created\x20successfully','debug','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','zujJC','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','oghIR','readFileSync','bstackAccesskey','LOG','cYMAw','fDKJU','cloudProviderAccessKey','clusterName','eAFUg','ZQifN','OutputValue','YVJHj','writeFileSync','FfkMS','GET','method','owNat','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','create-grid-checks-auth-failed','HvZlB','create-grid-checks-grid-already-exists','AcrAz','dVSWM','.\x20Deleting\x20all\x20the\x20stacks','FoRmK','string','region','handler','../../utils/instrumentationUtils','40210oTCyNw','mSQMr','peFFU','cloudProvider','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GmAtZ','pre-spawned-subnets-not-selected','createNamespacedConfigMap','DAudn','SEUIm','266866VUCNAa','type','<PasswordPlaceholder>','Spawning\x20Grid\x20on\x20the\x20Cluster','fkefJ','create-grid-checks-invalid-profile','Skipping\x20Autoscaler\x20due\x20to:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',',\x20ClusterRole\x20=>\x20','zbGQm','SoiFb','autoscaler-creation-failed','name','DNYvX','../../utils/createk8sClient','secret','KYBmx',',\x20NodeRole\x20=>\x20','xVdch','GvPzP','Cluster\x20=>\x20','iKDCN','https://','hGsZA','../../utils/deleteStack','EntKf','ZLdWv','YxBea','vVhVP','IfiVy','delay','NodeRole\x20=>\x20','ngMdL','3|0|4|2|5|6|1','WGsTN','CJBta','aFIzE','ZStPG','NbgrC','3zKUiCD','SecurityGroups\x20=>\x20','Subnets:\x20','warning','clusterRegion','promisify','util','../../utils/utilityMethods','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Outputs','message','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','annotations','reconnecting-websocket','body','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','pveOA','YFehC','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','IXaKP','zFmdo','securityGroups','eBBDq','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','gAEqS','1393542yvGHGw','8UVelGh','Namespace\x20created','Grid\x20profile\x20fetched\x20from\x20backend','Autoscaler\x20Role\x20created.ARN:\x20','s3bucket','password','febqu','Create\x20a\x20new\x20Automation\x20grid.','parse','emPuL','4|1|6|3|0|2|5','nodeRole','nTafK','FSQGs','Grid\x20spawned\x20on\x20the\x20cluster','SDMTS','ffYZa','sBEii','85DOixYi','rapCM','BaCfA','aOTaT','BSqcR','wBUbR','Grid\x20can\x20be\x20accessed\x20at:\x20','rqXKA','Browserstack','existsSync','wYBRg','\x20using\x20\x27','CLI_RUN_FINISHED','WHrIg','MAAHl','description','replace','WINAN','alreadyPresent','hCoIx','ElZmC','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','rxhnD','Found\x20Subnets:\x20','115272UXiGPv','HoXzN','MIKVx','../../utils/createClusterStack','Found\x20VPC:\x20','XQJal','createdBy','grid-name','DUKgv','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Cluster\x20','vLEcM','CLI\x20run\x20started','vmMyY','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','gridProfile','browserstack-turboscale-grid-service','jgaHO','toLowerCase','6|7|4|0|5|3|2|1','EyQBv','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','rMTII','concurrency','warn','GpBaR','../../utils/hstUtils','nyPBe','wqYtt','mQgXX','split','1|2|3|0|4','Following\x20resources\x20are\x20created:','dFxbe','hWVNi','ERROR','help','3|1|4|2|0','MgWxb','1146066KrEkal','create-grid-checks-non-200','igWIf','error','../../utils/AWSUtils','KzUYb','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/create-grid-checks?gridName=','ZWERW','DBBmq','\x20in\x20existing\x20cluster\x20\x27','instanceType','OzNHF','Authmap\x20already\x20exists.\x20Not\x20updating','gvASp','epilogue','PXfXi','KsZJj','create','builder',',\x20Subnets\x20=>\x20','../../config/constants','status','ZulKW','createNamespace','loadBalancer','VPC\x20=>\x20','vIPeM','../../utils/createAutoscalerStack','sIAYl','DCnXA','endpoint','cloudProviderSecretKey','mjweq','../../utils/userInput','usage','FCcrp','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.','username','uuid','eyopF','tNJaI','gLBso','certificateAuthority','../../utils/webSocketUtils','gridProfiles','uIsmz','pqfmC','reportToGalactusAndSendToEDS','sendEventToBackend',':4444/wd/hub','DRHip','Rvkyb','JgHhM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','url','kLwEt','KnJAw','vpc','options','gridName','non-aws-cluster','create-grid-checks-null-response','info','teVJv','IAneR','rTdmx','qSUlI','JttsO','319146IvSfvr','readNamespacedService','length','1309DVVfGW','ogPgl','CLI\x20run\x20finished:\x20','mbxDb','auth',',\x20SecurityGroups\x20=>\x20','CLI_RUN_STARTED'];a4_0x1ea5=function(){return _0x2539e8;};return a4_0x1ea5();}(function(_0xbe673c,_0x523862){const _0x4e939a=a4_0x1bb6,_0x13fd79=_0xbe673c();while(!![]){try{const _0x1ecdf1=-parseInt(_0x4e939a(0x1c6))/0x1*(-parseInt(_0x4e939a(0x2da))/0x2)+-parseInt(_0x4e939a(0x277))/0x3+-parseInt(_0x4e939a(0x20b))/0x4*(parseInt(_0x4e939a(0x1f3))/0x5)+-parseInt(_0x4e939a(0x232))/0x6+parseInt(_0x4e939a(0x2a1))/0x7*(parseInt(_0x4e939a(0x1e1))/0x8)+-parseInt(_0x4e939a(0x1e0))/0x9+-parseInt(_0x4e939a(0x2d0))/0xa*(-parseInt(_0x4e939a(0x27a))/0xb);if(_0x1ecdf1===_0x523862)break;else _0x13fd79['push'](_0x13fd79['shift']());}catch(_0x199735){_0x13fd79['push'](_0x13fd79['shift']());}}}(a4_0x1ea5,0x536e0));const fs=require('fs'),ws=require('ws'),util=require(a4_0x24aeda(0x1cc)),ReconnectingWebSocket=require(a4_0x24aeda(0x1d3)),request=require('request'),{v4:uuidv4}=require(a4_0x24aeda(0x259)),webSocketUtils=require(a4_0x24aeda(0x25e)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a4_0x24aeda(0x254)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x24aeda(0x1cd)),{sendAWSInfoToHST}=require(a4_0x24aeda(0x225)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require(a4_0x24aeda(0x236)),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require('../../utils/gridComponents'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require(a4_0x24aeda(0x247)),{createClusterStack}=require(a4_0x24aeda(0x20e)),{createAutoscalerStack}=require(a4_0x24aeda(0x24e)),{createK8sClient}=require(a4_0x24aeda(0x2e8)),{sendInstrumentationEvent}=require(a4_0x24aeda(0x2cf)),{deleteClusterStack}=require(a4_0x24aeda(0x1b7)),promisifiedRequest=util[a4_0x24aeda(0x1cb)](request);function a4_0x1bb6(_0xe9ab76,_0x3dca0b){const _0x1ea57a=a4_0x1ea5();return a4_0x1bb6=function(_0x1bb66d,_0x329b99){_0x1bb66d=_0x1bb66d-0x1b5;let _0x52f689=_0x1ea57a[_0x1bb66d];return _0x52f689;},a4_0x1bb6(_0xe9ab76,_0x3dca0b);}exports['command']=a4_0x24aeda(0x299),exports['desc']=a4_0x24aeda(0x1e8),exports[a4_0x24aeda(0x245)]=function(_0x1e5caa){const _0x185533=a4_0x24aeda,_0x23eb04={};_0x23eb04[_0x185533(0x284)]=_0x185533(0x1d1),_0x23eb04['hWVNi']=_0x185533(0x2cc),_0x23eb04[_0x185533(0x2c3)]=_0x185533(0x2d4),_0x23eb04[_0x185533(0x1f1)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x23eb04[_0x185533(0x1b6)]=_0x185533(0x2a3),_0x23eb04[_0x185533(0x26a)]=_0x185533(0x2e1),_0x23eb04[_0x185533(0x1f7)]=_0x185533(0x22f);const _0x4db99b=_0x23eb04,_0x266b16={};_0x266b16[_0x185533(0x202)]=_0x4db99b['GpnzD'],_0x266b16[_0x185533(0x2db)]=_0x4db99b[_0x185533(0x22d)];const _0x1d42e6={};_0x1d42e6['description']=_0x4db99b['owNat'],_0x1d42e6[_0x185533(0x2db)]=_0x4db99b[_0x185533(0x22d)];const _0x141790={};_0x141790['description']=_0x4db99b[_0x185533(0x1f1)],_0x141790[_0x185533(0x2db)]=_0x4db99b['hWVNi'];const _0x469daf={};_0x469daf[_0x185533(0x202)]=_0x4db99b[_0x185533(0x1b6)],_0x469daf[_0x185533(0x2db)]=_0x4db99b[_0x185533(0x22d)];const _0x13af07={};_0x13af07[_0x185533(0x202)]=_0x4db99b[_0x185533(0x26a)],_0x13af07['type']=_0x4db99b[_0x185533(0x22d)];const _0x3a0aa8={};return _0x3a0aa8[_0x185533(0x212)]=_0x266b16,_0x3a0aa8[_0x185533(0x2a0)]=_0x1d42e6,_0x3a0aa8[_0x185533(0x29b)]=_0x141790,_0x3a0aa8['cloud-provider']=_0x469daf,_0x3a0aa8[_0x185533(0x2cd)]=_0x13af07,_0x1e5caa[_0x185533(0x255)](HELP_HEADER_MESSAGE[_0x185533(0x244)])[_0x185533(0x241)](HELP_FOOTER_MESSAGE)[_0x185533(0x26d)](_0x3a0aa8)[_0x185533(0x22f)](_0x4db99b[_0x185533(0x1f7)])['argv'];},exports[a4_0x24aeda(0x2ce)]=async function(_0xa5f36e){const _0x3f1c49=a4_0x24aeda,_0x455e53={'QFiUD':'0|1|2|3|4','vmMyY':_0x3f1c49(0x1d5),'sIAYl':_0x3f1c49(0x23f),'gvASp':'0|6|7|4|1|3|2|5','ZWERW':_0x3f1c49(0x1d1),'eAFUg':_0x3f1c49(0x2cc),'cYMAw':_0x3f1c49(0x2d4),'WjYSh':_0x3f1c49(0x268),'SKape':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','KzUYb':_0x3f1c49(0x2e1),'oghIR':_0x3f1c49(0x22f),'OzNHF':_0x3f1c49(0x1eb),'SoiFb':_0x3f1c49(0x235),'zFmdo':'Configuring\x20AWS','CJBta':function(_0x89b560){return _0x89b560();},'XQJal':_0x3f1c49(0x21e),'qCMXr':function(_0x12005a){return _0x12005a();},'xVdch':function(_0xa0d3f5){return _0xa0d3f5();},'emPuL':function(_0x526136,_0x16d4a0){return _0x526136===_0x16d4a0;},'MoRQv':'ctxgN','Ivjap':_0x3f1c49(0x282),'IaCPA':function(_0x4c72f6,_0x878be2,_0x1d8a15,_0x9b2c4d,_0x48c85d,_0x70d81,_0x161bc7){return _0x4c72f6(_0x878be2,_0x1d8a15,_0x9b2c4d,_0x48c85d,_0x70d81,_0x161bc7);},'KYBmx':'create-grid-called','MAAHl':'init-not-called','IAneR':function(_0x173e94,_0x30cd15,_0x1962c5,_0x55d2d2,_0x10b8cb,_0x56c01e,_0x5491d0){return _0x173e94(_0x30cd15,_0x1962c5,_0x55d2d2,_0x10b8cb,_0x56c01e,_0x5491d0);},'ZLdWv':_0x3f1c49(0x297),'YVJHj':_0x3f1c49(0x2dc),'FoRmK':'Adding\x20Websocket\x20listeners','MgWxb':function(_0x5748f2,_0x32b699){return _0x5748f2!==_0x32b699;},'ElZmC':_0x3f1c49(0x2a6),'aOTaT':function(_0x3657a5,_0x5751c1){return _0x3657a5===_0x5751c1;},'SDMTS':'rataC','ogPgl':_0x3f1c49(0x243),'Irktq':_0x3f1c49(0x214),'pveOA':function(_0x2ce79a,_0x1d499b,_0x24d526,_0x4961e3,_0x4b2ff0,_0x5717f9,_0x10f2b4,_0x84ed00){return _0x2ce79a(_0x1d499b,_0x24d526,_0x4961e3,_0x4b2ff0,_0x5717f9,_0x10f2b4,_0x84ed00);},'lYeox':'prespawned-cluster-args-not-passed','vLEcM':function(_0x2ef211,_0x2abd60){return _0x2ef211!==_0x2abd60;},'rtGnO':_0x3f1c49(0x29d),'ZhHLY':function(_0x445f91,_0x26b7dd){return _0x445f91!==_0x26b7dd;},'rxhnD':'JwAhB','ngMdL':_0x3f1c49(0x28a),'HBBzA':function(_0x493c42,_0x4268cc,_0x1cdee5,_0x2ff281,_0x27b470,_0x1bcb63,_0x1fb9fc,_0x54b870){return _0x493c42(_0x4268cc,_0x1cdee5,_0x2ff281,_0x27b470,_0x1bcb63,_0x1fb9fc,_0x54b870);},'YxBea':_0x3f1c49(0x26f),'GpBaR':_0x3f1c49(0x1c4),'wYBRg':function(_0x45fbb0,_0x3e8e62){return _0x45fbb0!==_0x3e8e62;},'rapCM':_0x3f1c49(0x200),'UVask':_0x3f1c49(0x2c1),'PXfXi':function(_0x106b94,_0x5b4dd5){return _0x106b94(_0x5b4dd5);},'aPhmY':function(_0x21022d,_0x1c660e){return _0x21022d==_0x1c660e;},'mQgXX':function(_0x1a50d8,_0x255004){return _0x1a50d8==_0x255004;},'SRCZV':function(_0x24c934,_0x5c130d){return _0x24c934!==_0x5c130d;},'GmAtZ':_0x3f1c49(0x28e),'BaCfA':_0x3f1c49(0x275),'vIPeM':_0x3f1c49(0x2b0),'sBEii':function(_0x44e918,_0x228cb4,_0x463e86,_0x23afee,_0x4496d0,_0x1dd378,_0x14ae17,_0x1db1c1){return _0x44e918(_0x228cb4,_0x463e86,_0x23afee,_0x4496d0,_0x1dd378,_0x14ae17,_0x1db1c1);},'zbGQm':_0x3f1c49(0x270),'IfiVy':function(_0x1c7727,_0x1a33b4){return _0x1c7727===_0x1a33b4;},'rlHhG':function(_0x9b40fb,_0x2bb595){return _0x9b40fb!==_0x2bb595;},'mbxDb':_0x3f1c49(0x25a),'eBBDq':_0x3f1c49(0x292),'SEUIm':_0x3f1c49(0x238),'mjweq':function(_0x33576a,_0x154b33,_0x46ed0c,_0x4c9209,_0x19bd4f,_0xc51f3e,_0x267545,_0x4fd0fc){return _0x33576a(_0x154b33,_0x46ed0c,_0x4c9209,_0x19bd4f,_0xc51f3e,_0x267545,_0x4fd0fc);},'LEjja':_0x3f1c49(0x2c5),'GGxrN':function(_0x19b131,_0x331f16){return _0x19b131!==_0x331f16;},'rqXKA':'QwGMt','aFIzE':_0x3f1c49(0x233),'igWIf':_0x3f1c49(0x1e3),'teVJv':_0x3f1c49(0x2d2),'febqu':_0x3f1c49(0x1b8),'zHEFl':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','tNJaI':function(_0x16ae05,_0x9999c6,_0x4f14f8,_0x11812e,_0x1ee8cc,_0x32865b,_0x193c3e,_0x56ee22){return _0x16ae05(_0x9999c6,_0x4f14f8,_0x11812e,_0x1ee8cc,_0x32865b,_0x193c3e,_0x56ee22);},'uZzrN':_0x3f1c49(0x2c7),'dVSWM':'qYIfV','HoXzN':_0x3f1c49(0x213),'ZQifN':'Lyhik','VwoHK':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','vVhVP':function(_0x32306d,_0x3c509f,_0x577618,_0x5af543,_0x73256b,_0x68f306,_0x280649,_0x425847){return _0x32306d(_0x3c509f,_0x577618,_0x5af543,_0x73256b,_0x68f306,_0x280649,_0x425847);},'wBUbR':_0x3f1c49(0x2df),'dIHum':_0x3f1c49(0x1c0),'ekHhv':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','jgaHO':function(_0x3c5542,_0x8bfadd){return _0x3c5542(_0x8bfadd);},'rzLjA':_0x3f1c49(0x2c4),'nyPBe':_0x3f1c49(0x22a),'wqYtt':function(_0x481f2f,_0x5a871d){return _0x481f2f===_0x5a871d;},'gLBso':function(_0x23fcb0){return _0x23fcb0();},'FfkMS':function(_0x585dad,_0x21dbf9){return _0x585dad===_0x21dbf9;},'NncDE':function(_0x19fc3b,_0x1e4c19,_0x1a8bbf){return _0x19fc3b(_0x1e4c19,_0x1a8bbf);},'DNYvX':_0x3f1c49(0x223),'cYUUA':_0x3f1c49(0x1dd),'gwWYe':function(_0x1dd9cf,_0x2a378e){return _0x1dd9cf!=_0x2a378e;},'JgHhM':function(_0x1d04e5,_0x3158f7){return _0x1d04e5!=_0x3158f7;},'GvPzP':function(_0x3a3728,_0x1c28e9){return _0x3a3728!==_0x1c28e9;},'JttsO':function(_0x34f128,_0x9a263f){return _0x34f128>_0x9a263f;},'mSQMr':_0x3f1c49(0x1de),'NbgrC':_0x3f1c49(0x2d6),'RbKpl':function(_0x56ebd0,_0x12e8fe,_0x5a0b14){return _0x56ebd0(_0x12e8fe,_0x5a0b14);},'AcrAz':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','DBBmq':_0x3f1c49(0x2a9),'KnJAw':function(_0x38ca0f,_0x17603a,_0x578401,_0x5b922b){return _0x38ca0f(_0x17603a,_0x578401,_0x5b922b);},'aNFJh':function(_0x41d1b3,_0x1e2c31,_0x344835,_0x19e3ef,_0x2192f9,_0x268035,_0xb3836c,_0x15564b){return _0x41d1b3(_0x1e2c31,_0x344835,_0x19e3ef,_0x2192f9,_0x268035,_0xb3836c,_0x15564b);},'dFxbe':'pre-spawned-invalid-subnets','HvZlB':function(_0x5c18d2,_0x5ac301,_0x5b806a,_0x3494af){return _0x5c18d2(_0x5ac301,_0x5b806a,_0x3494af);},'hCoIx':_0x3f1c49(0x22b),'YFehC':_0x3f1c49(0x257),'kciUP':function(_0x27f110,_0x27814c){return _0x27f110(_0x27814c);},'WGsTN':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','rMTII':_0x3f1c49(0x219),'MIKVx':function(_0x218d68,_0x11e886){return _0x218d68(_0x11e886);},'pqfmC':_0x3f1c49(0x2ae),'uIsmz':function(_0x1ebdae,_0x5d32d9,_0xf72283,_0x47a39f,_0x1c5e35){return _0x1ebdae(_0x5d32d9,_0xf72283,_0x47a39f,_0x1c5e35);},'fkefJ':function(_0x561ea3,_0x30e32a){return _0x561ea3===_0x30e32a;},'ZulKW':'Creating\x20Autoscaler\x20Role','zujJC':_0x3f1c49(0x262),'tvmLR':_0x3f1c49(0x1c9),'DKCmh':_0x3f1c49(0x230),'ilMhu':function(_0x34fb85,_0x3e31ef,_0x1a813d,_0x100263,_0x299e41,_0x40d565,_0x39555c,_0x36aa60){return _0x34fb85(_0x3e31ef,_0x1a813d,_0x100263,_0x299e41,_0x40d565,_0x39555c,_0x36aa60);},'xTVeH':_0x3f1c49(0x2e5),'IXaKP':function(_0x2a09e7,_0x113151){return _0x2a09e7(_0x113151);},'OGmyk':function(_0x599bc6,_0x46fb94,_0x45e6d5){return _0x599bc6(_0x46fb94,_0x45e6d5);},'gAEqS':'kube-system','DAudn':_0x3f1c49(0x28b),'sZBJd':function(_0x5888ac,_0x201517){return _0x5888ac!==_0x201517;},'iKDCN':'default','FCcrp':_0x3f1c49(0x1fb),'EyQBv':'Namespace\x20Created','yyDPq':_0x3f1c49(0x1e2),'DCnXA':_0x3f1c49(0x1ce),'WINAN':_0x3f1c49(0x2dd),'kvpKy':function(_0x28de32,_0xbd2a02,_0x505b0f,_0xb3f75b,_0x510fee,_0x31da16,_0x145211,_0x2cf376,_0x3d16fa){return _0x28de32(_0xbd2a02,_0x505b0f,_0xb3f75b,_0x510fee,_0x31da16,_0x145211,_0x2cf376,_0x3d16fa);},'FSQGs':_0x3f1c49(0x1ef),'ToBOy':_0x3f1c49(0x220),'Rvkyb':_0x3f1c49(0x21b),'DRHip':function(_0x372e19,_0x421769,_0x58a218,_0x5c053b,_0xf330a5,_0x5b850b){return _0x372e19(_0x421769,_0x58a218,_0x5c053b,_0xf330a5,_0x5b850b);},'fDKJU':function(_0x331244,_0x1f36fd){return _0x331244(_0x1f36fd);},'rTdmx':function(_0x13d69d,_0x13b164,_0x2b4f8d,_0x293f09,_0x5adc7a,_0x3c7688,_0x13db5d){return _0x13d69d(_0x13b164,_0x2b4f8d,_0x293f09,_0x5adc7a,_0x3c7688,_0x13db5d);},'nTafK':'grid-spawning-failed'};let _0x3866ba=![],_0x321769,_0x14f745,_0x221934,_0x548185,_0x130b38,_0x2e3bc1,_0x5f2f3c,_0x584351,_0x4abc5d,_0x37da82;try{global_registry['requestId']=_0x455e53[_0x3f1c49(0x29f)](uuidv4);!fs[_0x3f1c49(0x1fc)](_0x455e53[_0x3f1c49(0x2ec)](getCredentialsPath))&&(_0x455e53[_0x3f1c49(0x1ea)](_0x455e53[_0x3f1c49(0x2a5)],_0x455e53[_0x3f1c49(0x2a5)])?(console['error'](_0x455e53['Ivjap']),await _0x455e53[_0x3f1c49(0x294)](sendInstrumentationEvent,_0xa5f36e,_0x455e53[_0x3f1c49(0x2ea)],messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x201)],null,_0xa5f36e),process[_0x3f1c49(0x291)](0x1)):_0x3571d9=_0x3a7959['gridName']);await _0x455e53[_0x3f1c49(0x273)](sendInstrumentationEvent,_0xa5f36e,_0x455e53[_0x3f1c49(0x2ea)],messageTypes[_0x3f1c49(0x296)],null,null,_0xa5f36e);const _0xc8d625=JSON[_0x3f1c49(0x1e9)](fs[_0x3f1c49(0x2b4)](_0x455e53[_0x3f1c49(0x29f)](getCredentialsPath)));global_registry['bstackUsername']=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x258)],global_registry[_0x3f1c49(0x2b5)]=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x1e6)];const _0x3a3185=WS_ENDPOINT[_0x3f1c49(0x203)](_0x455e53[_0x3f1c49(0x1b9)],_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x258)])[_0x3f1c49(0x203)](_0x455e53[_0x3f1c49(0x2be)],_0xc8d625['Browserstack'][_0x3f1c49(0x1e6)]),_0x160c1f={};_0x160c1f['WebSocket']=ws,_0x37da82=new ReconnectingWebSocket(_0x3a3185,[],_0x160c1f),logger[_0x3f1c49(0x2af)](_0x455e53[_0x3f1c49(0x2cb)]),webSocketUtils['addListeners'](_0x37da82,_0xa5f36e['user'],_0xa5f36e[_0x3f1c49(0x1e6)]);let _0x1d2b0a=DEFAULT_GRID_NAME;if(_0xa5f36e[_0x3f1c49(0x2ba)]||_0xa5f36e[_0x3f1c49(0x2d3)]||_0xa5f36e[_0x3f1c49(0x2cd)]){if(_0x455e53[_0x3f1c49(0x231)](_0x455e53[_0x3f1c49(0x207)],_0x455e53[_0x3f1c49(0x207)])){const _0xe7aedc=_0x455e53['QFiUD'][_0x3f1c49(0x229)]('|');let _0x2220f1=0x0;while(!![]){switch(_0xe7aedc[_0x2220f1++]){case'0':_0x2466fb=_0x455e53[_0x3f1c49(0x218)];continue;case'1':const _0xa78d7a={};_0xa78d7a[_0x3f1c49(0x2db)]=_0x4730eb[_0x3f1c49(0x2b6)],_0xa78d7a[_0x3f1c49(0x1d0)]=_0x38044b,_0x140b08[_0x3f1c49(0x263)](_0x285d42,_0xa78d7a);continue;case'2':_0x5a90dd['info'](_0x2a9245);continue;case'3':_0x2681e2['cloudProviderAccessKey']=_0x453ff7[_0x492803][_0x3f1c49(0x288)];continue;case'4':_0x27011b[_0x3f1c49(0x252)]=_0x1fa3e7[_0x4a857a]['secret'];continue;}break;}}else{!(_0xa5f36e[_0x3f1c49(0x2ba)]&&_0xa5f36e[_0x3f1c49(0x2d3)]&&_0xa5f36e[_0x3f1c49(0x2cd)])&&(_0x455e53['aOTaT'](_0x455e53[_0x3f1c49(0x1f0)],_0x455e53[_0x3f1c49(0x27b)])?_0x33dd2a[_0x3f1c49(0x271)](_0x455e53['sIAYl']):(_0x321769=_0x455e53['Irktq'],await _0x455e53[_0x3f1c49(0x1d6)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['lYeox'],_0x455e53['SoiFb']),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1)));if(_0x455e53[_0x3f1c49(0x216)](_0xa5f36e['cloudProvider'][_0x3f1c49(0x21d)](),_0x455e53['rtGnO'])){if(_0x455e53['ZhHLY'](_0x455e53[_0x3f1c49(0x209)],_0x455e53[_0x3f1c49(0x209)])){const _0x5c7a95=_0x455e53[_0x3f1c49(0x240)][_0x3f1c49(0x229)]('|');let _0xae4d98=0x0;while(!![]){switch(_0x5c7a95[_0xae4d98++]){case'0':_0x5e180d=_0x5d14e7[_0x3f1c49(0x1d4)]['status'][_0x3f1c49(0x24b)][_0x3f1c49(0x2a4)][0x0]['hostname'];continue;case'1':_0x519e5e='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://'+_0x2e4a9c+_0x3f1c49(0x264);continue;case'2':const _0x3fe075={};_0x3fe075[_0x3f1c49(0x2db)]=_0x4e53a8[_0x3f1c49(0x2b6)],_0x3fe075[_0x3f1c49(0x1d0)]=_0x1e7282,_0x5e3dd4['sendEventToBackend'](_0x3fe900,_0x3fe075);continue;case'3':_0x1484c7['info'](_0xe72b20);continue;case'4':const _0x29768d={};_0x29768d[_0x3f1c49(0x2db)]=_0xdf5388['LOG'],_0x29768d[_0x3f1c49(0x1d0)]=_0x118ab7,_0x30bb6d[_0x3f1c49(0x263)](_0x1a8291,_0x29768d);continue;case'5':const _0x43bbc8={};_0x43bbc8[_0x3f1c49(0x2db)]=_0x4ab37e['CLI_RUN_FINISHED'],_0x43bbc8[_0x3f1c49(0x1d0)]=_0x3f1c49(0x27c)+_0x4281ad,_0xae346b['sendEventToBackend'](_0x57ed09,_0x43bbc8);continue;case'6':_0x418348=_0x3f1c49(0x1f9)+_0x5a9eed+'\x20';continue;case'7':_0x461f42[_0x3f1c49(0x271)](_0x47a50f);continue;}break;}}else _0x321769=_0x455e53[_0x3f1c49(0x1bf)],await _0x455e53[_0x3f1c49(0x2ab)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x1ba)],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process['exit'](0x1);}_0x3866ba=!![],_0x221934=_0xa5f36e['clusterName'],_0x14f745=_0xa5f36e[_0x3f1c49(0x2d3)],_0x548185=_0xa5f36e['region'];}}_0xa5f36e[_0x3f1c49(0x26e)]&&(_0x455e53['ZhHLY'](_0x455e53[_0x3f1c49(0x224)],_0x455e53[_0x3f1c49(0x224)])?_0x292ada=_0x336b61[_0x4903e3[_0x3f1c49(0x21a)]]:_0x1d2b0a=_0xa5f36e[_0x3f1c49(0x26e)]);global_registry[_0x3f1c49(0x26e)]=_0x1d2b0a;if(_0x455e53['emPuL'](_0x3866ba,![])){if(_0x455e53['wYBRg'](_0x455e53[_0x3f1c49(0x1f4)],_0x455e53['rapCM']))_0x57c404[_0x3f1c49(0x271)](_0x3f1c49(0x20a)+_0x1bcfc0['stringify'](_0x2ea03d)+'\x20');else{const _0x8a61a6=_0x3f1c49(0x1b5)+AG_API_URL+_0x3f1c49(0x239)+_0x1d2b0a,_0x501a68={};_0x501a68[_0x3f1c49(0x258)]=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x258)],_0x501a68[_0x3f1c49(0x1e6)]=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x1e6)];const _0x43a29e={};_0x43a29e[_0x3f1c49(0x269)]=_0x8a61a6,_0x43a29e[_0x3f1c49(0x2c2)]=_0x455e53['UVask'],_0x43a29e[_0x3f1c49(0x27e)]=_0x501a68;const _0x4c318a=_0x43a29e,_0x23df3c=await _0x455e53['PXfXi'](promisifiedRequest,_0x4c318a);(_0x455e53['aPhmY'](_0x23df3c,null)||_0x455e53[_0x3f1c49(0x228)](_0x23df3c,undefined))&&(_0x455e53['SRCZV'](_0x455e53[_0x3f1c49(0x2d5)],_0x455e53[_0x3f1c49(0x1f5)])?(_0x321769=_0x455e53[_0x3f1c49(0x24d)],await _0x455e53[_0x3f1c49(0x1f2)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x2e3)],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1)):_0x2f9d06[_0x3f1c49(0x271)](_0x3f1c49(0x20f)+_0xfeaef+'\x20'));if(_0x455e53[_0x3f1c49(0x1bc)](_0x23df3c[_0x3f1c49(0x29c)],0x191)){if(_0x455e53['rlHhG'](_0x455e53[_0x3f1c49(0x27d)],_0x455e53[_0x3f1c49(0x1dc)]))_0x321769=_0x455e53[_0x3f1c49(0x2d9)],await _0x455e53[_0x3f1c49(0x253)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['LEjja'],_0x455e53['SoiFb']),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1);else{const _0x45cb16={};_0x45cb16[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x23a)],_0x45cb16[_0x3f1c49(0x2db)]=_0x455e53[_0x3f1c49(0x2bb)];const _0x51d1d8={};_0x51d1d8[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x2b7)],_0x51d1d8[_0x3f1c49(0x2db)]=_0x455e53[_0x3f1c49(0x2bb)];const _0x5676f5={};_0x5676f5[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x28d)],_0x5676f5[_0x3f1c49(0x2db)]=_0x455e53['eAFUg'];const _0x2dd7c1={};_0x2dd7c1['description']=_0x455e53['SKape'],_0x2dd7c1['type']=_0x455e53[_0x3f1c49(0x2bb)];const _0x41da1b={};_0x41da1b[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x237)],_0x41da1b[_0x3f1c49(0x2db)]=_0x455e53[_0x3f1c49(0x2bb)];const _0x5d1371={};return _0x5d1371[_0x3f1c49(0x212)]=_0x45cb16,_0x5d1371[_0x3f1c49(0x2a0)]=_0x51d1d8,_0x5d1371[_0x3f1c49(0x29b)]=_0x5676f5,_0x5d1371['cloud-provider']=_0x2dd7c1,_0x5d1371['region']=_0x41da1b,_0x1b9217['usage'](_0x1c01c4[_0x3f1c49(0x244)])[_0x3f1c49(0x241)](_0x2a797b)[_0x3f1c49(0x26d)](_0x5d1371)[_0x3f1c49(0x22f)](_0x455e53[_0x3f1c49(0x2b3)])['argv'];}}if(_0x455e53['GGxrN'](_0x23df3c[_0x3f1c49(0x29c)],0xc8)){if(_0x455e53['IfiVy'](_0x455e53[_0x3f1c49(0x1fa)],_0x455e53[_0x3f1c49(0x1fa)]))_0x321769=_0x3f1c49(0x2b2)+JSON[_0x3f1c49(0x2a8)](_0x23df3c),await _0x455e53[_0x3f1c49(0x1f2)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x1c3)],_0x455e53['SoiFb']),logger[_0x3f1c49(0x235)](_0x321769),process['exit'](0x1);else throw _0x1c1b14;}const _0x47b68d=JSON[_0x3f1c49(0x1e9)](_0x23df3c[_0x3f1c49(0x1d4)]),_0x2780a6={};_0x2780a6[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x280)],_0x2780a6[_0x3f1c49(0x1d0)]=_0x3f1c49(0x217),webSocketUtils['sendEventToBackend'](_0x37da82,_0x2780a6);const _0x5f2082={};_0x5f2082[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x5f2082['message']=_0x455e53[_0x3f1c49(0x234)],webSocketUtils['sendEventToBackend'](_0x37da82,_0x5f2082);if(_0x47b68d[_0x3f1c49(0x205)]){if(_0x455e53[_0x3f1c49(0x1fd)](_0x455e53[_0x3f1c49(0x272)],_0x455e53[_0x3f1c49(0x1e7)]))_0x321769=_0x455e53['zHEFl'],await _0x455e53[_0x3f1c49(0x25b)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['uZzrN'],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1);else{const _0x23ee91=_0x455e53[_0x3f1c49(0x23e)][_0x3f1c49(0x229)]('|');let _0x485042=0x0;while(!![]){switch(_0x23ee91[_0x485042++]){case'0':_0x38dd14[_0x3f1c49(0x2d3)]=_0x380cdd;continue;case'1':_0x8796d2=_0x3f1c49(0x28c)+_0x4cd6f0+'\x20in\x20existing\x20cluster\x20\x27'+_0x2392ea+'\x27';continue;case'2':_0x38b126[_0x3f1c49(0x1ca)]=_0x14ec16;continue;case'3':const _0x48a9c4={};_0x48a9c4[_0x3f1c49(0x2db)]=_0x5bdc80[_0x3f1c49(0x2b6)],_0x48a9c4['message']=_0x2cc5e3,_0x4ba036['sendEventToBackend'](_0x44a2a8,_0x48a9c4);continue;case'4':const _0xa95b9e={};_0xa95b9e['type']=_0x409329[_0x3f1c49(0x280)],_0xa95b9e['message']=_0x3f1c49(0x217),_0xdebad3['sendEventToBackend'](_0x2826ad,_0xa95b9e);continue;case'5':_0x46a14f['clusterName']=_0xd66da1;continue;case'6':_0x5e9683[_0x3f1c49(0x271)](_0x3d5b99);continue;}break;}}}const _0x42db86=_0x47b68d[_0x3f1c49(0x25f)];let _0xeff3a=_0x42db86[_0x47b68d[_0x3f1c49(0x287)]];if(_0xa5f36e[_0x3f1c49(0x21a)]){if(_0x455e53['emPuL'](_0x455e53[_0x3f1c49(0x2c9)],_0x455e53[_0x3f1c49(0x20c)])){const _0x4b0eb9={};_0x4b0eb9[_0x3f1c49(0x2db)]=_0x5c0e81[_0x3f1c49(0x2b6)],_0x4b0eb9[_0x3f1c49(0x1d0)]=_0x4ad867,_0xfa8bf[_0x3f1c49(0x263)](_0xd2b4bc,_0x4b0eb9,_0x455e53[_0x3f1c49(0x2e4)],!![]);}else _0xeff3a=_0x42db86[_0xa5f36e[_0x3f1c49(0x21a)]];}_0x455e53[_0x3f1c49(0x1f6)](_0xeff3a,undefined)&&(_0x455e53['emPuL'](_0x455e53[_0x3f1c49(0x2bc)],_0x455e53[_0x3f1c49(0x2bc)])?(_0x321769=_0x455e53['VwoHK'],await _0x455e53[_0x3f1c49(0x1bb)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x1f8)],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1)):(_0x3c2842['debug'](_0x455e53[_0x3f1c49(0x1da)]),_0x455e53[_0x3f1c49(0x1c2)](_0xdaa000)));global_registry['gridProfileId']=_0xeff3a['id'],_0x321769='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1d2b0a+_0x3f1c49(0x1fe)+_0xeff3a['name']+'\x27\x20grid\x20profile',logger[_0x3f1c49(0x271)](_0x321769);const _0x525fab={};_0x525fab['type']=WS_EVENTS['LOG'],_0x525fab['message']=_0x321769,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x525fab),_0x14f745=_0xeff3a['cloudProvider'],_0x221934=_0xeff3a[_0x3f1c49(0x2ba)],_0x548185=_0xeff3a['region'],_0x130b38=_0xeff3a[_0x3f1c49(0x222)],_0x2e3bc1=_0xeff3a[_0x3f1c49(0x23d)],_0x5f2f3c=_0xeff3a[_0x3f1c49(0x26c)],securityGroups=_0xeff3a[_0x3f1c49(0x1db)],subnets=_0xeff3a['subnets'],_0x584351=_0xeff3a[_0x3f1c49(0x1e5)],_0x455e53['HBBzA'](updateGlobalRegistryWithConfig,_0x14f745,_0x221934,_0x548185,_0x130b38,_0x2e3bc1,_0x584351,_0xeff3a);}}else{const _0x33da7c=_0x455e53['dIHum'][_0x3f1c49(0x229)]('|');let _0x281690=0x0;while(!![]){switch(_0x33da7c[_0x281690++]){case'0':_0x321769=_0x3f1c49(0x28c)+_0x1d2b0a+_0x3f1c49(0x23c)+_0x221934+'\x27';continue;case'1':global_registry[_0x3f1c49(0x2ba)]=_0x221934;continue;case'2':const _0x312dec={};_0x312dec['type']=WS_EVENTS['LOG'],_0x312dec[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x312dec);continue;case'3':const _0x2a6f33={};_0x2a6f33[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x280)],_0x2a6f33[_0x3f1c49(0x1d0)]=_0x3f1c49(0x217),webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x2a6f33);continue;case'4':logger[_0x3f1c49(0x271)](_0x321769);continue;case'5':global_registry[_0x3f1c49(0x2d3)]=_0x14f745;continue;case'6':global_registry[_0x3f1c49(0x1ca)]=_0x548185;continue;}break;}}const _0xbb0404=_0xc8d625[_0x3f1c49(0x2d3)]||{};if(_0x455e53[_0x3f1c49(0x1f6)](_0xbb0404[_0x14f745],undefined)){logger[_0x3f1c49(0x271)](_0x455e53['ekHhv']);const [_0x18a0da,_0x414c57]=await _0x455e53[_0x3f1c49(0x21c)](inputCloudProviderKeys,_0x14f745);_0xc8d625[_0x3f1c49(0x2d3)]={};const _0x586b1f={};_0x586b1f[_0x3f1c49(0x288)]=_0x18a0da,_0x586b1f[_0x3f1c49(0x2e9)]=_0x414c57,_0xc8d625[_0x3f1c49(0x2d3)][_0x14f745]=_0x586b1f,fs[_0x3f1c49(0x2bf)](_0x455e53[_0x3f1c49(0x1c2)](getCredentialsPath),JSON[_0x3f1c49(0x2a8)](_0xc8d625)),logger[_0x3f1c49(0x2af)](_0x455e53['rzLjA']),global_registry['cloudProviderAccessKey']=_0x18a0da,global_registry[_0x3f1c49(0x252)]=_0x414c57;}else{const _0x2d4259=_0x455e53[_0x3f1c49(0x226)][_0x3f1c49(0x229)]('|');let _0x5ccc2b=0x0;while(!![]){switch(_0x2d4259[_0x5ccc2b++]){case'0':global_registry[_0x3f1c49(0x2b9)]=_0xbb0404[_0x14f745][_0x3f1c49(0x288)];continue;case'1':_0x321769=_0x455e53[_0x3f1c49(0x218)];continue;case'2':const _0x2fd5ce={};_0x2fd5ce[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x2fd5ce[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x2fd5ce);continue;case'3':logger[_0x3f1c49(0x271)](_0x321769);continue;case'4':global_registry[_0x3f1c49(0x252)]=_0xbb0404[_0x14f745][_0x3f1c49(0x2e9)];continue;}break;}}_0x455e53[_0x3f1c49(0x227)](_0x14f745,AWS)&&(logger[_0x3f1c49(0x2af)](_0x455e53['zFmdo']),_0x455e53[_0x3f1c49(0x25c)](configureAWSIfNotConfigured));let _0x5c7d6d,_0x43ca80;if(_0x455e53[_0x3f1c49(0x2c0)](_0x3866ba,![])){_0x321769='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x548185+').';const _0x4fea32={};_0x4fea32['type']=WS_EVENTS['LOG'],_0x4fea32[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x4fea32),logger['info'](_0x321769);const _0x3a82ce=await _0x455e53['NncDE'](isClusterPresent,_0x14f745,_0x221934);let _0x3d2f4c;if(_0x3a82ce){const _0x40a773={};_0x40a773[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x40a773[_0x3f1c49(0x1d0)]=_0x3f1c49(0x215)+_0x221934+_0x3f1c49(0x1d8),webSocketUtils['sendEventToBackend'](_0x37da82,_0x40a773,_0x455e53[_0x3f1c49(0x2e7)]),logger[_0x3f1c49(0x223)](_0x3f1c49(0x215)+_0x221934+_0x3f1c49(0x1d8)),_0x5c7d6d=await _0x455e53[_0x3f1c49(0x242)](getClusterInfo,_0x221934),_0x3866ba=!![];}else{const _0x205835={};_0x205835['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x205835[_0x3f1c49(0x1d0)]=_0x455e53['cYUUA'],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x205835),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x298)]);const _0x35b2be=_0x455e53['gwWYe'](_0x5f2f3c,null)&&_0x455e53['GGxrN'](_0x5f2f3c,undefined),_0x3caf69=_0x455e53[_0x3f1c49(0x267)](subnets,null)&&_0x455e53[_0x3f1c49(0x2ed)](subnets,undefined)&&_0x455e53[_0x3f1c49(0x276)](subnets[_0x3f1c49(0x279)],0x0);let _0x4fdb8b;if(_0x35b2be){_0x455e53[_0x3f1c49(0x1bc)](_0x3caf69,![])&&(_0x321769=_0x455e53[_0x3f1c49(0x2d1)],await _0x455e53[_0x3f1c49(0x1bb)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x1c5)],_0x455e53[_0x3f1c49(0x2e4)]),logger['error'](_0x321769),process['exit'](0x1));const _0x5796ce=await _0x455e53['RbKpl'](isVPCPresent,_0x5f2f3c,_0x548185);_0x455e53[_0x3f1c49(0x1ea)](_0x5796ce,![])?(_0x321769=_0x455e53[_0x3f1c49(0x2c8)],await _0x455e53[_0x3f1c49(0x1d6)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x23b)],_0x455e53['SoiFb']),logger['error'](_0x321769),process[_0x3f1c49(0x291)](0x1)):logger[_0x3f1c49(0x271)](_0x3f1c49(0x20f)+_0x5f2f3c+'\x20');const _0x210063=await _0x455e53[_0x3f1c49(0x26b)](isSubnetsValid,subnets,_0x5f2f3c,_0x548185);_0x455e53[_0x3f1c49(0x1ea)](_0x210063[0x0],![])?(_0x321769=_0x3f1c49(0x1c8)+_0x210063[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x5f2f3c+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x455e53['aNFJh'](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x22c)],_0x455e53[_0x3f1c49(0x2e4)]),logger['error'](_0x321769),process['exit'](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0x3f1c49(0x2a8)](subnets)+'\x20');const _0x17c670=await _0x455e53[_0x3f1c49(0x2c6)](createClusterStack,_0x221934,_0x5f2f3c,subnets);logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x206)]),logger[_0x3f1c49(0x271)](_0x3f1c49(0x2ee)+_0x17c670['Stacks'][0x0][_0x3f1c49(0x1cf)][0x3][_0x3f1c49(0x2bd)]+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x2a2)+_0x17c670[_0x3f1c49(0x2ad)][0x0]['Outputs'][0x1][_0x3f1c49(0x2bd)]+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x1c7)+_0x17c670[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x0][_0x3f1c49(0x2bd)][_0x3f1c49(0x229)](',')+'\x20'),logger['info'](_0x3f1c49(0x1be)+_0x17c670[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x4][_0x3f1c49(0x2bd)]+'\x20');}else{const _0x535386={};_0x535386[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x535386[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x1d7)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x535386),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x1d7)]),_0x455e53['kciUP'](sendAWSInfoToHST,_0x37da82);const _0x341268={};_0x341268[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x341268[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x1c1)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x341268),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x221)]);const _0x4b57d5=await _0x455e53[_0x3f1c49(0x20d)](createClusterStack,_0x221934),_0x17f563=_0x4b57d5[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x0]['OutputValue']['split'](',');_0x4fdb8b=_0x4b57d5['Stacks'][0x0]['Outputs'][0x1][_0x3f1c49(0x2bd)];const _0x180fcb=_0x4b57d5[_0x3f1c49(0x2ad)][0x0]['Outputs'][0x2][_0x3f1c49(0x2bd)],_0x13117c=_0x4b57d5[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x3][_0x3f1c49(0x2bd)];_0x3d2f4c=_0x4b57d5['Stacks'][0x0][_0x3f1c49(0x1cf)][0x4]['OutputValue'];const _0x4d00ba=_0x4b57d5[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x5]['OutputValue'][_0x3f1c49(0x229)](','),_0x67cfc={};_0x67cfc[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x67cfc[_0x3f1c49(0x1d0)]='Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20'+_0x13117c+_0x3f1c49(0x2e2)+_0x4fdb8b+',\x20VPC\x20=>\x20'+_0x180fcb+_0x3f1c49(0x246)+_0x4d00ba+_0x3f1c49(0x27f)+_0x17f563+_0x3f1c49(0x2eb)+_0x3d2f4c+'\x20',webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x67cfc),logger['info'](_0x455e53['hCoIx']),logger[_0x3f1c49(0x271)]('Cluster\x20=>\x20'+_0x13117c+'\x20'),logger[_0x3f1c49(0x271)]('ClusterRole\x20=>\x20'+_0x4fdb8b+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x24c)+_0x180fcb+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x289)+_0x4d00ba+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x1c7)+_0x17f563+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x1be)+_0x3d2f4c+'\x20');const _0x4541bf={};_0x4541bf['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x4541bf[_0x3f1c49(0x1d0)]=_0x3f1c49(0x2ae),webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x4541bf),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x261)]);}}}_0x5c7d6d=await _0x455e53[_0x3f1c49(0x242)](getClusterInfo,_0x221934);const [_0x5cc782,_0x38d9a6,_0x221aee,_0x599de4,_0x559948]=await _0x455e53[_0x3f1c49(0x260)](createK8sClient,_0x5c7d6d[_0x3f1c49(0x29a)][_0x3f1c49(0x2e6)],_0x5c7d6d['cluster'][_0x3f1c49(0x251)],_0x5c7d6d[_0x3f1c49(0x29a)][_0x3f1c49(0x25d)][_0x3f1c49(0x290)],global_registry[_0x3f1c49(0x1ca)]);if(_0x455e53[_0x3f1c49(0x2de)](_0x3866ba,![])){const _0x1c8403={};_0x1c8403['type']=WS_EVENTS['LOG'],_0x1c8403[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x249)],webSocketUtils['sendEventToBackend'](_0x37da82,_0x1c8403),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x249)]);try{const _0x36bc2c=await _0x455e53[_0x3f1c49(0x20d)](createAutoscalerStack,_0x221934);_0x43ca80=_0x36bc2c[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x2][_0x3f1c49(0x2bd)];const _0x5d396d={};_0x5d396d[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x5d396d['message']=_0x3f1c49(0x1e4)+_0x43ca80+'\x20',webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x5d396d),logger['info'](_0x3f1c49(0x1e4)+_0x43ca80+'\x20');}catch(_0xae1eda){if(_0x455e53[_0x3f1c49(0x29e)](_0xae1eda[_0x3f1c49(0x1d0)][_0x3f1c49(0x286)](/already exists/),null)||_0x455e53[_0x3f1c49(0x1fd)](_0xae1eda[_0x3f1c49(0x1d0)][_0x3f1c49(0x286)](/already exists/),undefined))_0x321769=_0x3f1c49(0x2e0)+_0xae1eda[_0x3f1c49(0x1d0)],await _0x455e53[_0x3f1c49(0x253)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x2ac)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x2b1)],_0x455e53[_0x3f1c49(0x2a7)]),logger[_0x3f1c49(0x223)](_0x321769);else{const _0x33204e=_0x455e53['DKCmh'][_0x3f1c49(0x229)]('|');let _0x56af20=0x0;while(!![]){switch(_0x33204e[_0x56af20++]){case'0':process[_0x3f1c49(0x291)](0x1);continue;case'1':await _0x455e53['ilMhu'](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['xTVeH'],_0x455e53['SoiFb']);continue;case'2':await _0x455e53[_0x3f1c49(0x1d9)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':_0x321769=_0x3f1c49(0x208)+_0xae1eda[_0x3f1c49(0x1d0)]+_0x3f1c49(0x2ca);continue;case'4':logger['error'](_0x321769);continue;}break;}}}let _0x370550=await _0x455e53['OGmyk'](getNodeGroupInfo,_0x221934,_0x221934+'-NodeGroup');nodeRole=_0x370550[_0x3f1c49(0x285)][_0x3f1c49(0x1ec)];const _0x356634=await _0x455e53['PXfXi'](createAuthConfigMap,nodeRole);await _0x5cc782[_0x3f1c49(0x2d7)](_0x455e53[_0x3f1c49(0x1df)],_0x356634)[_0x3f1c49(0x295)](_0x379e2a=>{const _0x3893df=_0x3f1c49;logger[_0x3893df(0x271)](_0x455e53[_0x3893df(0x24f)]);});}try{_0x4abc5d=_0x455e53[_0x3f1c49(0x21c)](kebabCase,_0x1d2b0a),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x2d8)]);const _0x5b97e0={};_0x5b97e0[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x5b97e0[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x2d8)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x5b97e0);if(_0x455e53[_0x3f1c49(0x2aa)](_0x4abc5d,_0x455e53[_0x3f1c49(0x2ef)])){const _0x56bc4b={};_0x56bc4b[_0x3f1c49(0x211)]=_0x455e53[_0x3f1c49(0x256)],_0x56bc4b['managedBy']=_0x455e53[_0x3f1c49(0x256)];const _0x461f32={};_0x461f32[_0x3f1c49(0x2e6)]=_0x4abc5d,_0x461f32[_0x3f1c49(0x1d2)]=_0x56bc4b;const _0x16dff9={};_0x16dff9[_0x3f1c49(0x281)]=_0x461f32;let _0x3d7215=_0x16dff9;await _0x5cc782[_0x3f1c49(0x24a)](_0x3d7215),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x21f)]);}const _0x4d2476={};_0x4d2476[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x4d2476['message']=_0x455e53['yyDPq'],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x4d2476);const _0x45cb18={};_0x45cb18[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x45cb18[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x250)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x45cb18),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x204)]),await _0x455e53['kvpKy'](addGridComponents,_0x5cc782,_0x38d9a6,_0x221aee,_0x599de4,_0x4abc5d,_0x221934,_0x43ca80,_0x559948),_0x321769=_0x455e53[_0x3f1c49(0x1ee)],logger['info'](_0x321769);const _0x308f79={};_0x308f79[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x308f79[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x308f79),_0x321769=_0x455e53['ToBOy'],logger[_0x3f1c49(0x271)](_0x321769);const _0x1fbbbb={};_0x1fbbbb['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x1fbbbb['message']=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x1fbbbb),await webSocketUtils[_0x3f1c49(0x1bd)](0x1388);let _0x5a363b;await _0x5cc782[_0x3f1c49(0x278)](_0x455e53[_0x3f1c49(0x266)],_0x4abc5d)['then'](_0x1c863=>{const _0x24ae4d=_0x3f1c49,_0x2304e4=_0x455e53[_0x24ae4d(0x210)][_0x24ae4d(0x229)]('|');let _0xd77663=0x0;while(!![]){switch(_0x2304e4[_0xd77663++]){case'0':const _0x49b227={};_0x49b227[_0x24ae4d(0x2db)]=WS_EVENTS['LOG'],_0x49b227['message']=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x49b227);continue;case'1':const _0x5d1d9f={};_0x5d1d9f[_0x24ae4d(0x2db)]=WS_EVENTS[_0x24ae4d(0x1ff)],_0x5d1d9f[_0x24ae4d(0x1d0)]='CLI\x20run\x20finished:\x20'+_0x5a363b,webSocketUtils[_0x24ae4d(0x263)](_0x37da82,_0x5d1d9f);continue;case'2':const _0x5c7de7={};_0x5c7de7[_0x24ae4d(0x2db)]=WS_EVENTS['LOG'],_0x5c7de7[_0x24ae4d(0x1d0)]=_0x321769,webSocketUtils[_0x24ae4d(0x263)](_0x37da82,_0x5c7de7);continue;case'3':logger[_0x24ae4d(0x271)](_0x321769);continue;case'4':logger[_0x24ae4d(0x271)](_0x321769);continue;case'5':_0x321769=_0x24ae4d(0x28f)+_0x5a363b+':4444/wd/hub';continue;case'6':_0x5a363b=_0x1c863[_0x24ae4d(0x1d4)][_0x24ae4d(0x248)][_0x24ae4d(0x24b)][_0x24ae4d(0x2a4)][0x0]['hostname'];continue;case'7':_0x321769='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x5a363b+'\x20';continue;}break;}}),await webSocketUtils[_0x3f1c49(0x1bd)](0x1f4);}catch(_0x3a4485){if(_0x455e53[_0x3f1c49(0x2de)](_0x3866ba,![]))try{logger['info'](_0x3f1c49(0x293)),await _0x455e53[_0x3f1c49(0x265)](removeGridComponents,_0x5cc782,_0x38d9a6,_0x221aee,_0x599de4,_0x4abc5d),await _0x455e53[_0x3f1c49(0x2b8)](deleteClusterAndDependencies,global_registry['clusterRegion']);}catch(_0x372644){throw _0x372644;}throw _0x3a4485;}}catch(_0x7e2dc5){const _0x572294=_0x3f1c49(0x283)+_0x7e2dc5+'\x20\x0a'+JSON['stringify'](_0x7e2dc5)+'\x20';if(_0x37da82){const _0x4c72ca={};_0x4c72ca['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x4c72ca[_0x3f1c49(0x1d0)]=_0x572294,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x4c72ca,_0x455e53['SoiFb'],!![]);}const _0x3ee98f={};_0x3ee98f[_0x3f1c49(0x235)]=_0x572294,await _0x455e53[_0x3f1c49(0x274)](sendInstrumentationEvent,_0xa5f36e,_0x455e53[_0x3f1c49(0x2ea)],messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x1ed)],_0x3ee98f,_0xa5f36e),logger[_0x3f1c49(0x235)](_0x572294);}process[_0x3f1c49(0x291)](0x0);};
1
+ const a4_0x43a40d=a4_0x44dc;function a4_0x1d7a(){const _0x4d62d3=['QZIFF','region','unNnJ','warning','Deleting\x20the\x20CloudFormation\x20Stacks','WebSocket','Namespace\x20created','433FswDPJ','QMBfE','3|0|1|4|2','PPYVn','reportToGalactusAndSendToEDS','eRbNv','ZVisv','stringify','irZsz',',\x20ClusterRole\x20=>\x20','RlatC','Skipping\x20Autoscaler\x20due\x20to:\x20','../../utils/utilityMethods','YaBhD','2195384GLwrpX','voTMk','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','gONLy','INFO','MlekO','JVidE','gridName','hXGQp','-NodeGroup','bstackAccesskey','DWAof','mNZda','Cluster\x20','status','vpc','builder','ingress','cluster','MhKeu','fcQmA','usage','cloudProviderAccessKey','4405599imJucO','JaOHj','string','handler','length','clusterName','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','TGQip','options','6|5|1|0|4|3|7|2','ODWcn','hostname','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','GLuWT','create','clusterRegion','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','WARNING','FNOPl','7|8|4|2|3|6|1|5|0','TwTiu','nodeRole','securityGroups','split','1032915xgAhiY','QnxDl','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','PfYrk','KGCRR','EZheb','kFzqb','prespawned-cluster-args-not-passed',',\x20NodeRole\x20=>\x20','rpJpw','eHJtg','8|3|4|9|5|1|0|7|2|10|6|11','Rkeky','HWCXx','CLI\x20run\x20started','\x20are\x20not\x20present\x20in\x20VPC:\x20','IsDRl','\x20in\x20existing\x20cluster\x20\x27','non-aws-cluster','1838YMhxPJ','pre-spawned-subnets-not-selected','<UsernamePlaceholder>','jkqWV','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','epilogue','1920611DRLnOv','request','1|0|2|3|4','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','kube-system','VPC\x20=>\x20','Authmap\x20already\x20exists.\x20Not\x20updating','skeBk','managedBy','ClusterRole\x20=>\x20','6828WCGPSF','rMHmU','auth','bELAl','delay','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','eKhpy','eODkq','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','yANKd','fHVfj','Found\x20VPC:\x20','bUAdf','../../utils/deleteStack','20GGgNwH','data','WLZEC','OutputValue','Grid\x20can\x20be\x20accessed\x20at:\x20','lBQmA','Configuring\x20AWS','sOvUr','hXBJO','metadata','GET','create-grid-checks-invalid-profile','sJiHT','iyuyz','VtsIB','fgzyA','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','name','zRjOs','sqnlw','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','nPqKQ','Will\x20be\x20spawning\x20the\x20grid\x20','wDmvN','cluster-name','155BwdzmO','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','existsSync','Create\x20a\x20new\x20Automation\x20grid.',',\x20Subnets\x20=>\x20','XgUYV','password','GxMWe','uuid','hubVersion','type','replace',':4444/wd/hub','addListeners','subnets','plBIe','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','certificateAuthority','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','vxIVI','GWHCf','description','message','VvnVN','xGbdT','browserVersion','fEEpC','AFxJC','sendEventToBackend','writeFileSync','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','createdBy','FacHf','IgEXs','CLI_RUN_STARTED','sXewA','NKdfM','HpdGe','Creating\x20Autoscaler\x20Role','catch','<PasswordPlaceholder>','autoscaler-creation-failed','FClGo','uEaqA','createNamespace','command','ripnl','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','create-grid-checks-null-response',',\x20SecurityGroups\x20=>\x20','method','cloud-provider','ngKyV','statusCode','.\x20Deleting\x20all\x20the\x20stacks','Dlqyl','../../utils/AWSUtils','error','create-grid-checks-non-200','exit','Spawning\x20Grid\x20on\x20the\x20Cluster','XlqBt','util','debug','CrOzb','Creating\x20namespace','dCugk','info','cloudProviderSecretKey','xaxMz','ZTZdJ','pre-spawned-invalid-subnets','nodegroup','teJeW','argv','s3bucket','match','gridProfiles','defaultGridProfile','grid-spawning-failed','instanceType','aws','Spawning\x20the\x20grid\x20','vMSOh','CLI_RUN_FINISHED','Browserstack','AdfFL','endpoint','Adding\x20Websocket\x20listeners','loadBalancer','PmYMT','GqdRn','CLI\x20run\x20finished:\x20','tfnKW','wcaxV','aeYmW','concurrency','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','parse','AXnEQ','../../utils/userInput','createNamespacedConfigMap','mZQYR','HxpUW','Autoscaler\x20Role\x20created.ARN:\x20','ZrGpt','cloudProvider','RlUWq','BolPM','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Outputs','yaPoH','Subnets\x20=>\x20','jvjLY','Subnets:\x20','Grid\x20profile\x20fetched\x20from\x20backend','LHIVo','jtKYI','SecurityGroups\x20=>\x20','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','XIlkA','dyhoA','gridProfileId','fqkli','kjflg','PpRSz','KfMWk','ERROR','username','jAvgP','NWotY','byEqT','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','16559916qGIFTH','../../utils/hstUtils','18pQIKxy','browserstack-turboscale-grid-service','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','annotations','\x20using\x20\x27','Stacks','then','JtKOz','22lLaOLg','init-not-called','0|1|2|4|3','RFDPx','Spawning\x20grid\x20on\x20to\x20the\x20cluster','nnFgj','toLowerCase','../../utils/instrumentationUtils','gridProfile','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Namespace\x20Created','body','Uqxll','NodeRole\x20=>\x20','yNSzG','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',',\x20VPC\x20=>\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Cluster\x20=>\x20','grid-name','accessKey','KKEnw','help','FlLMA','Cluster\x20and\x20node\x20group\x20created\x20successfully','1|7|6|3|0|2|5|4|8','../../utils/createAutoscalerStack','6|7|0|1|2|4|3|5','Fveuk','xmJWu','onrCW','zmywd','../../utils/createClusterStack','RkntV','promisify','CjCWE','desc','Found\x20Subnets:\x20','create-grid-checks-grid-already-exists','user','yYPbQ','fgrsF','LOG','ZQOYe','AxJZz','warn','create-grid-checks-auth-failed','koWHv','grid','readNamespacedService','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.','\x27\x20grid\x20profile','nFSnC','alreadyPresent'];a4_0x1d7a=function(){return _0x4d62d3;};return a4_0x1d7a();}(function(_0x304ab1,_0x16aa98){const _0x2d0c96=a4_0x44dc,_0x2325a2=_0x304ab1();while(!![]){try{const _0x4d321e=parseInt(_0x2d0c96(0x147))/0x1*(parseInt(_0x2d0c96(0x197))/0x2)+-parseInt(_0x2d0c96(0x184))/0x3+-parseInt(_0x2d0c96(0x1a8))/0x4*(parseInt(_0x2d0c96(0x1cf))/0x5)+parseInt(_0x2d0c96(0x102))/0x6*(-parseInt(_0x2d0c96(0x19d))/0x7)+-parseInt(_0x2d0c96(0x155))/0x8+parseInt(_0x2d0c96(0x16c))/0x9*(-parseInt(_0x2d0c96(0x1b6))/0xa)+-parseInt(_0x2d0c96(0x10a))/0xb*(-parseInt(_0x2d0c96(0x100))/0xc);if(_0x4d321e===_0x16aa98)break;else _0x2325a2['push'](_0x2325a2['shift']());}catch(_0x3df8ba){_0x2325a2['push'](_0x2325a2['shift']());}}}(a4_0x1d7a,0xa705f));const fs=require('fs'),ws=require('ws'),util=require(a4_0x43a40d(0xb9)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a4_0x43a40d(0x19e)),{v4:uuidv4}=require(a4_0x43a40d(0x1d7)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a4_0x43a40d(0xdf)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x43a40d(0x153)),{sendAWSInfoToHST}=require(a4_0x43a40d(0x101)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require(a4_0x43a40d(0xb3)),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require('../../utils/gridComponents'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require('../../config/constants'),{createClusterStack}=require(a4_0x43a40d(0x12a)),{createAutoscalerStack}=require(a4_0x43a40d(0x124)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a4_0x43a40d(0x111)),{deleteClusterStack}=require(a4_0x43a40d(0x1b5)),promisifiedRequest=util[a4_0x43a40d(0x12c)](request);function a4_0x44dc(_0x3bca47,_0x3aa4a2){const _0x1d7aaa=a4_0x1d7a();return a4_0x44dc=function(_0x44dc1e,_0x5cd8c3){_0x44dc1e=_0x44dc1e-0x91;let _0x32ba87=_0x1d7aaa[_0x44dc1e];return _0x32ba87;},a4_0x44dc(_0x3bca47,_0x3aa4a2);}exports[a4_0x43a40d(0xa8)]=a4_0x43a40d(0x13a),exports[a4_0x43a40d(0x12e)]=a4_0x43a40d(0x1d2),exports[a4_0x43a40d(0x165)]=function(_0x376ba4){const _0x4b5779=a4_0x43a40d,_0x16efa6={};_0x16efa6[_0x4b5779(0x93)]=_0x4b5779(0xff),_0x16efa6[_0x4b5779(0xd5)]=_0x4b5779(0x16e),_0x16efa6[_0x4b5779(0xb8)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x16efa6[_0x4b5779(0x15a)]=_0x4b5779(0x11b),_0x16efa6[_0x4b5779(0x169)]=_0x4b5779(0x19b),_0x16efa6['buqGU']=_0x4b5779(0x1ad),_0x16efa6[_0x4b5779(0x135)]=_0x4b5779(0x120);const _0x45b456=_0x16efa6,_0x412f2c={};_0x412f2c[_0x4b5779(0x1e4)]=_0x45b456[_0x4b5779(0x93)],_0x412f2c['type']=_0x45b456[_0x4b5779(0xd5)];const _0x5f113d={};_0x5f113d[_0x4b5779(0x1e4)]=_0x45b456['XlqBt'],_0x5f113d[_0x4b5779(0x1d9)]=_0x45b456[_0x4b5779(0xd5)];const _0x283463={};_0x283463[_0x4b5779(0x1e4)]=_0x45b456[_0x4b5779(0x15a)],_0x283463[_0x4b5779(0x1d9)]=_0x45b456[_0x4b5779(0xd5)];const _0x532f20={};_0x532f20[_0x4b5779(0x1e4)]=_0x45b456[_0x4b5779(0x169)],_0x532f20[_0x4b5779(0x1d9)]=_0x45b456[_0x4b5779(0xd5)];const _0x55d1ab={};_0x55d1ab[_0x4b5779(0x1e4)]=_0x45b456['buqGU'],_0x55d1ab[_0x4b5779(0x1d9)]=_0x45b456[_0x4b5779(0xd5)];const _0x244657={};return _0x244657[_0x4b5779(0x11d)]=_0x412f2c,_0x244657['grid-profile']=_0x5f113d,_0x244657[_0x4b5779(0x1ce)]=_0x283463,_0x244657[_0x4b5779(0xae)]=_0x532f20,_0x244657['region']=_0x55d1ab,_0x376ba4[_0x4b5779(0x16a)](HELP_HEADER_MESSAGE[_0x4b5779(0x17a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4b5779(0x174)](_0x244657)[_0x4b5779(0x120)](_0x45b456['ZQOYe'])[_0x4b5779(0xc5)];},exports[a4_0x43a40d(0x16f)]=async function(_0x504270){const _0x3236f8=a4_0x43a40d,_0x177add={'JKbnw':_0x3236f8(0x10c),'tfnKW':_0x3236f8(0xf2),'RkntV':_0x3236f8(0x1bc),'nFSnC':function(_0x4ee89e){return _0x4ee89e();},'rMHmU':_0x3236f8(0x1a4),'XIlkA':_0x3236f8(0x123),'dstqB':_0x3236f8(0x125),'QnxDl':'6|7|1|2|10|3|11|9|5|8|0|4','iyuyz':function(_0x3e72ee,_0x361cb2,_0x365df7,_0x472bd6,_0x57d6a6,_0x413a97,_0x15426e,_0x134e9e,_0x474441,_0x45be7d){return _0x3e72ee(_0x361cb2,_0x365df7,_0x472bd6,_0x57d6a6,_0x413a97,_0x15426e,_0x134e9e,_0x474441,_0x45be7d);},'sOvUr':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ripnl':'string','PPYVn':_0x3236f8(0x119),'FClGo':_0x3236f8(0x11b),'bKLbX':_0x3236f8(0x19b),'RFDPx':_0x3236f8(0x1ad),'sJiHT':_0x3236f8(0x120),'xmJWu':_0x3236f8(0xb4),'yYPbQ':_0x3236f8(0x175),'TGQip':function(_0x4f889a,_0x22ecd7){return _0x4f889a===_0x22ecd7;},'Dlqyl':_0x3236f8(0xa6),'plBIe':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mNZda':function(_0x3fd038,_0x4132d4,_0x2c7b4f,_0x1f149a,_0x4a4219,_0x3e526c,_0x15ae57){return _0x3fd038(_0x4132d4,_0x2c7b4f,_0x1f149a,_0x4a4219,_0x3e526c,_0x15ae57);},'vMSOh':'create-grid-called','EZheb':_0x3236f8(0x10b),'jHmpY':function(_0x225832){return _0x225832();},'bELAl':_0x3236f8(0x199),'XgUYV':_0x3236f8(0xa3),'jphQC':_0x3236f8(0xd3),'Rkeky':function(_0x5ce105,_0x33dbdf){return _0x5ce105!==_0x33dbdf;},'bUAdf':'ytcNz','lvrJB':_0x3236f8(0x1b2),'eKhpy':function(_0x2e2f66,_0x1b591b){return _0x2e2f66!==_0x1b591b;},'VvnVN':'nqUqx','bkJmL':'VUqHI','etXJg':_0x3236f8(0x1df),'ZrGpt':function(_0x553ad7,_0x2c491e,_0x34a0c7,_0xb07d93,_0xa1818e,_0x2c0563,_0x4a0547,_0x16ebc2){return _0x553ad7(_0x2c491e,_0x34a0c7,_0xb07d93,_0xa1818e,_0x2c0563,_0x4a0547,_0x16ebc2);},'GLuWT':_0x3236f8(0x18b),'sXewA':function(_0x472995,_0x27f591){return _0x472995!==_0x27f591;},'IgEXs':_0x3236f8(0xcc),'sqnlw':'gXQcF','kFzqb':_0x3236f8(0x99),'FacHf':_0x3236f8(0x196),'OULEG':_0x3236f8(0x96),'uyxIU':_0x3236f8(0x187),'mZQYR':_0x3236f8(0x1c0),'hXBJO':function(_0x3a8cf9,_0x60fe27){return _0x3a8cf9(_0x60fe27);},'jtKYI':function(_0x37a50b,_0x2346a3){return _0x37a50b===_0x2346a3;},'dyhoA':function(_0x551e44,_0x222157){return _0x551e44===_0x222157;},'xaxMz':function(_0x306a09,_0x1e05f0){return _0x306a09!==_0x1e05f0;},'QMBfE':_0x3236f8(0xe7),'GqdRn':_0x3236f8(0x157),'JaOHj':_0x3236f8(0xab),'wcaxV':function(_0x31a5af,_0x26cd3b){return _0x31a5af===_0x26cd3b;},'yANKd':'fFOXU','YaBhD':_0x3236f8(0x172),'HpdGe':function(_0x27a555,_0x40b83c,_0x3d3318,_0x4d51dd,_0x59c588,_0x2e8c15,_0x220230,_0x22465c){return _0x27a555(_0x40b83c,_0x3d3318,_0x4d51dd,_0x59c588,_0x2e8c15,_0x220230,_0x22465c);},'jkqWV':_0x3236f8(0x138),'CrOzb':function(_0x2c42d7,_0x4fe0ff){return _0x2c42d7!==_0x4fe0ff;},'QZIFF':function(_0x57672e,_0x54bae5){return _0x57672e===_0x54bae5;},'xqGgx':_0x3236f8(0xfc),'ngKyV':_0x3236f8(0xb5),'DWAof':_0x3236f8(0xee),'vwoRX':function(_0x129181,_0x3a6acf){return _0x129181===_0x3a6acf;},'nnFgj':'WKYVa','FXDiS':_0x3236f8(0x118),'GxMWe':_0x3236f8(0xe8),'AxJZz':function(_0x813f5c,_0x35fb09,_0x1f1c80,_0x321477,_0x5a07d5,_0x3561eb,_0x440eec,_0x452802){return _0x813f5c(_0x35fb09,_0x1f1c80,_0x321477,_0x5a07d5,_0x3561eb,_0x440eec,_0x452802);},'vxIVI':_0x3236f8(0x130),'ODWcn':function(_0x18d79c,_0x104cc1){return _0x18d79c!==_0x104cc1;},'wOFWH':_0x3236f8(0xf9),'TwTiu':_0x3236f8(0x188),'HWCXx':function(_0x46a824,_0x44fd0){return _0x46a824!==_0x44fd0;},'gONLy':_0x3236f8(0xfe),'zRjOs':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','unNnJ':_0x3236f8(0x1c1),'rpJpw':function(_0x418e32,_0x26cc8a){return _0x418e32===_0x26cc8a;},'NWotY':'fNQfg','VtsIB':_0x3236f8(0x18f),'fEEpC':function(_0x2728ac,_0x428181){return _0x2728ac!==_0x428181;},'ZgWVW':_0x3236f8(0xea),'GiXCN':_0x3236f8(0x17f),'KKEnw':_0x3236f8(0x1a1),'ZTZdJ':function(_0x51cf54,_0x8fb437){return _0x51cf54(_0x8fb437);},'eODkq':function(_0x57ebfc){return _0x57ebfc();},'FNOPl':_0x3236f8(0x178),'eHJtg':_0x3236f8(0x19f),'irZsz':function(_0x271bb0,_0x54bda3,_0x50c52d){return _0x271bb0(_0x54bda3,_0x50c52d);},'MhKeu':_0x3236f8(0x137),'aEbjc':_0x3236f8(0x1ca),'eRbNv':function(_0x55fecd,_0x50f8ec){return _0x55fecd!=_0x50f8ec;},'fqkli':function(_0xc5fe5,_0x3e4e9c){return _0xc5fe5!=_0x3e4e9c;},'hXGQp':function(_0x2f16b5,_0x1aaaf4){return _0x2f16b5!==_0x1aaaf4;},'Fveuk':function(_0x334e09,_0x276dc1){return _0x334e09>_0x276dc1;},'xpfyD':function(_0x3ecdd7,_0x322828){return _0x3ecdd7===_0x322828;},'nOxHA':_0x3236f8(0x17c),'JVidE':_0x3236f8(0x198),'lBQmA':function(_0xcb39e7,_0x2b1230){return _0xcb39e7===_0x2b1230;},'kjflg':_0x3236f8(0x1b0),'sEEhm':'pre-spawned-invalid-vpc','fgzyA':function(_0x47189f,_0x6c4e7c,_0xa09aa8,_0x259c7c){return _0x47189f(_0x6c4e7c,_0xa09aa8,_0x259c7c);},'nPqKQ':function(_0x2c029a,_0x6be67f){return _0x2c029a===_0x6be67f;},'onrCW':_0x3236f8(0xc2),'jvjLY':'Following\x20resources\x20are\x20created:','skeBk':_0x3236f8(0x13c),'WLZEC':function(_0x3d4d3a,_0x3398c9){return _0x3d4d3a(_0x3398c9);},'AdfFL':_0x3236f8(0xdc),'krDOY':_0x3236f8(0x1e1),'CjCWE':function(_0x53471b,_0x5e2e98){return _0x53471b(_0x5e2e98);},'VGeSc':_0x3236f8(0x122),'GMbVu':function(_0x3f7101,_0x574b81){return _0x3f7101(_0x574b81);},'Uqxll':function(_0x41283a,_0x47de21,_0x25ed94,_0x7e8d0f,_0xb23b1d){return _0x41283a(_0x47de21,_0x25ed94,_0x7e8d0f,_0xb23b1d);},'IsDRl':function(_0x499a20,_0x37b9c2){return _0x499a20===_0x37b9c2;},'NKdfM':_0x3236f8(0xa1),'wDmvN':function(_0xef403f,_0x24f06e){return _0xef403f(_0x24f06e);},'JtKOz':function(_0x573103,_0x54d793){return _0x573103!==_0x54d793;},'LHIVo':_0x3236f8(0x14b),'rjzgU':_0x3236f8(0x143),'fgrsF':_0x3236f8(0x149),'aeYmW':function(_0x3c55b5,_0x4ad78a,_0x457b33,_0x2f4dba,_0xde5918,_0x49b68a,_0x5c3b69,_0xaca74f){return _0x3c55b5(_0x4ad78a,_0x457b33,_0x2f4dba,_0xde5918,_0x49b68a,_0x5c3b69,_0xaca74f);},'FlLMA':_0x3236f8(0xa4),'HxpUW':function(_0x2dd81e,_0x205e5d,_0x494e63){return _0x2dd81e(_0x205e5d,_0x494e63);},'voTMk':_0x3236f8(0x1a2),'koWHv':function(_0x29c779,_0x4598f6){return _0x29c779(_0x4598f6);},'zmywd':_0x3236f8(0xbc),'nejwj':function(_0x961117,_0x18edfc){return _0x961117!==_0x18edfc;},'ZVisv':'default','GWHCf':_0x3236f8(0xd0),'teJeW':_0x3236f8(0x114),'aeGoO':_0x3236f8(0x146),'NBUsQ':_0x3236f8(0x10e),'qBxSm':_0x3236f8(0xb7),'RlUWq':function(_0x58c9e2,_0x16c1c2,_0x40b11a,_0x1f1129,_0x2d05d2,_0x967d7,_0x416a77,_0x2d20fd,_0x5b0b24){return _0x58c9e2(_0x16c1c2,_0x40b11a,_0x1f1129,_0x2d05d2,_0x967d7,_0x416a77,_0x2d20fd,_0x5b0b24);},'XgsdX':'Grid\x20spawned\x20on\x20the\x20cluster','PpRSz':_0x3236f8(0x1a0),'lxkpa':_0x3236f8(0x103),'RlatC':function(_0x4e3c9e,_0x1134d2,_0x2e97f4,_0x26941e,_0x4e4df4,_0xfc88f3){return _0x4e3c9e(_0x1134d2,_0x2e97f4,_0x26941e,_0x4e4df4,_0xfc88f3);},'AXnEQ':function(_0x176402,_0x4e90f5,_0x4bf5c3,_0x13deab,_0x1648bf,_0x4bacd2,_0x1e0191){return _0x176402(_0x4e90f5,_0x4bf5c3,_0x13deab,_0x1648bf,_0x4bacd2,_0x1e0191);},'dCugk':_0x3236f8(0xca)};let _0x1edc9a=![],_0x5d513a,_0x5eb7b0,_0x1bd565,_0x2e8410,_0x583ecc,_0x1ee298,_0x14f6c5,_0x3eff9c,_0x210c11,_0x43c8f7,_0x159a5f,_0x1674ff;try{global_registry['requestId']=_0x177add[_0x3236f8(0x13e)](uuidv4);if(!fs[_0x3236f8(0x1d1)](_0x177add['nFSnC'](getCredentialsPath))){if(_0x177add[_0x3236f8(0x173)](_0x177add[_0x3236f8(0xb2)],_0x177add['Dlqyl']))console[_0x3236f8(0xb4)](_0x177add[_0x3236f8(0x1de)]),await _0x177add['mNZda'](sendInstrumentationEvent,_0x504270,_0x177add['vMSOh'],messageTypes[_0x3236f8(0xfa)],_0x177add[_0x3236f8(0x189)],null,_0x504270),process[_0x3236f8(0xb6)](0x1);else throw _0x1cac4f;}await _0x177add[_0x3236f8(0x161)](sendInstrumentationEvent,_0x504270,_0x177add[_0x3236f8(0xce)],messageTypes[_0x3236f8(0x159)],null,null,_0x504270);const _0x39ff1e=JSON['parse'](fs['readFileSync'](_0x177add['jHmpY'](getCredentialsPath)));global_registry['bstackUsername']=_0x39ff1e['Browserstack'][_0x3236f8(0xfb)],global_registry[_0x3236f8(0x15f)]=_0x39ff1e[_0x3236f8(0xd0)]['password'];const _0x827854=WS_ENDPOINT[_0x3236f8(0x1da)](_0x177add[_0x3236f8(0x1ab)],_0x39ff1e[_0x3236f8(0xd0)]['username'])['replace'](_0x177add[_0x3236f8(0x1d4)],_0x39ff1e['Browserstack'][_0x3236f8(0x1d5)]),_0x3316d9={};_0x3316d9[_0x3236f8(0x145)]=ws,_0x43c8f7=new ReconnectingWebSocket(_0x827854,[],_0x3316d9),logger[_0x3236f8(0xba)](_0x177add['jphQC']),webSocketUtils[_0x3236f8(0x1dc)](_0x43c8f7,_0x504270[_0x3236f8(0x131)],_0x504270[_0x3236f8(0x1d5)]);let _0x3adbf4=DEFAULT_GRID_NAME;if(_0x504270[_0x3236f8(0x171)]||_0x504270[_0x3236f8(0xe5)]||_0x504270['region']){if(_0x177add[_0x3236f8(0x190)](_0x177add[_0x3236f8(0x1b4)],_0x177add['lvrJB'])){if(!(_0x504270[_0x3236f8(0x171)]&&_0x504270['cloudProvider']&&_0x504270[_0x3236f8(0x141)])){if(_0x177add[_0x3236f8(0x1ae)](_0x177add[_0x3236f8(0x92)],_0x177add['bkJmL']))_0x5d513a=_0x177add['etXJg'],await _0x177add['ZrGpt'](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0x179)],_0x177add['xmJWu']),logger[_0x3236f8(0xb4)](_0x5d513a),process[_0x3236f8(0xb6)](0x1);else{const _0x5ebac3=_0x177add['JKbnw'][_0x3236f8(0x183)]('|');let _0x3ab210=0x0;while(!![]){switch(_0x5ebac3[_0x3ab210++]){case'0':_0x4c44a4=_0x177add[_0x3236f8(0xd8)];continue;case'1':const _0x22952c={};_0x22952c['type']=_0x406b64['LOG'],_0x22952c[_0x3236f8(0x91)]=_0x2ed2d1,_0x1362e9[_0x3236f8(0x97)](_0x19e032,_0x22952c);continue;case'2':_0x460df6[_0x3236f8(0xbe)](_0x468207);continue;case'3':_0x3bab18[_0x3236f8(0xbf)]=_0x47855b[_0x2b0260]['secret'];continue;case'4':_0x401377[_0x3236f8(0x16b)]=_0x36aaab[_0x570c92]['accessKey'];continue;}break;}}}_0x177add[_0x3236f8(0x9e)](_0x504270[_0x3236f8(0xe5)][_0x3236f8(0x110)](),_0x177add[_0x3236f8(0x9c)])&&(_0x177add['sXewA'](_0x177add[_0x3236f8(0x1c9)],_0x177add[_0x3236f8(0x1c9)])?(_0xf2a46f['debug'](_0x177add['RkntV']),_0x177add[_0x3236f8(0x13e)](_0x70515)):(_0x5d513a=_0x177add[_0x3236f8(0x18a)],await _0x177add[_0x3236f8(0xe4)](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes['ERROR'],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0x9b)],_0x177add[_0x3236f8(0x127)]),logger[_0x3236f8(0xb4)](_0x5d513a),process[_0x3236f8(0xb6)](0x1))),_0x1edc9a=!![],_0x1bd565=_0x504270['clusterName'],_0x5eb7b0=_0x504270[_0x3236f8(0xe5)],_0x2e8410=_0x504270['region'];}else _0x20c990=_0x5176db['gridName'];}_0x504270[_0x3236f8(0x15c)]&&(_0x177add[_0x3236f8(0x173)](_0x177add['OULEG'],_0x177add['uyxIU'])?_0x2e9d7a[_0x3236f8(0xbe)](_0x177add['rMHmU']):_0x3adbf4=_0x504270[_0x3236f8(0x15c)]);global_registry[_0x3236f8(0x15c)]=_0x3adbf4;const _0x4dee9b='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x5040c0={};_0x5040c0[_0x3236f8(0xfb)]=_0x39ff1e[_0x3236f8(0xd0)][_0x3236f8(0xfb)],_0x5040c0[_0x3236f8(0x1d5)]=_0x39ff1e[_0x3236f8(0xd0)][_0x3236f8(0x1d5)];const _0x339150={};_0x339150[_0x3236f8(0x15c)]=_0x3adbf4;const _0x5057a8={};_0x5057a8['url']=_0x4dee9b,_0x5057a8[_0x3236f8(0xad)]=_0x177add[_0x3236f8(0xe1)],_0x5057a8[_0x3236f8(0x1aa)]=_0x5040c0,_0x5057a8['qs']=_0x339150;const _0x875507=_0x5057a8,_0x1795c3=await _0x177add[_0x3236f8(0x1be)](promisifiedRequest,_0x875507);if(_0x177add['jtKYI'](_0x1795c3,null)||_0x177add[_0x3236f8(0xf4)](_0x1795c3,undefined)){if(_0x177add[_0x3236f8(0xc0)](_0x177add[_0x3236f8(0x148)],_0x177add['QMBfE'])){const _0x5614ad=_0x177add[_0x3236f8(0xf3)][_0x3236f8(0x183)]('|');let _0x5d7ff7=0x0;while(!![]){switch(_0x5614ad[_0x5d7ff7++]){case'0':_0x1a1d0f[_0x3236f8(0xe5)]=_0x2e3bfd;continue;case'1':const _0x543cee={};_0x543cee[_0x3236f8(0x1d9)]=_0x9a611['CLI_RUN_STARTED'],_0x543cee[_0x3236f8(0x91)]=_0x3236f8(0x192),_0x5efcc2[_0x3236f8(0x97)](_0x44b3f2,_0x543cee);continue;case'2':_0x54b5ce[_0x3236f8(0x17b)]=_0x1c8edc;continue;case'3':const _0x5bc91c={};_0x5bc91c['type']=_0x2db236[_0x3236f8(0x134)],_0x5bc91c['message']=_0x426052,_0x425f4b[_0x3236f8(0x97)](_0xf394df,_0x5bc91c);continue;case'4':_0x2c0ffa['hubVersion']=_0x405e15[_0x3236f8(0x1d8)];continue;case'5':_0x6e9209['clusterName']=_0x5abff9;continue;case'6':_0x5a9a69[_0x3236f8(0xbe)](_0x352a6d);continue;case'7':_0x345184='Spawning\x20the\x20grid\x20'+_0x52973a+_0x3236f8(0x195)+_0x4440ac+'\x27';continue;case'8':_0x50e3c9['browserVersion']=_0x395fcf[_0x3236f8(0x94)];continue;}break;}}else _0x5d513a=_0x177add[_0x3236f8(0xd6)],await _0x177add[_0x3236f8(0xe4)](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add['vMSOh'],_0x177add[_0x3236f8(0x16d)],_0x177add[_0x3236f8(0x127)]),logger[_0x3236f8(0xb4)](_0x5d513a),process[_0x3236f8(0xb6)](0x1);}if(_0x177add[_0x3236f8(0xf0)](_0x1795c3[_0x3236f8(0xb0)],0x191)){if(_0x177add[_0x3236f8(0xd9)](_0x177add[_0x3236f8(0x1b1)],_0x177add['yANKd']))_0x5d513a=_0x177add[_0x3236f8(0x154)],await _0x177add[_0x3236f8(0xa0)](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add['vMSOh'],_0x177add[_0x3236f8(0x19a)],_0x177add[_0x3236f8(0x127)]),logger[_0x3236f8(0xb4)](_0x5d513a),process[_0x3236f8(0xb6)](0x1);else{const _0x5362ef=_0x177add['dstqB'][_0x3236f8(0x183)]('|');let _0x15f90c=0x0;while(!![]){switch(_0x5362ef[_0x15f90c++]){case'0':_0x1a4721[_0x3236f8(0xbe)](_0x1e7ac2);continue;case'1':const _0xc27474={};_0xc27474['type']=_0xea55b[_0x3236f8(0x134)],_0xc27474[_0x3236f8(0x91)]=_0x756369,_0x111d85[_0x3236f8(0x97)](_0x249f59,_0xc27474);continue;case'2':_0x2c019b=_0x3236f8(0xaa)+_0x165a23+_0x3236f8(0x1db);continue;case'3':const _0x30d751={};_0x30d751[_0x3236f8(0x1d9)]=_0x2ff6a8['LOG'],_0x30d751[_0x3236f8(0x91)]=_0x4a3a37,_0x7cea88['sendEventToBackend'](_0x34db9a,_0x30d751);continue;case'4':_0x5a50e9[_0x3236f8(0xbe)](_0x341a2e);continue;case'5':const _0x11492d={};_0x11492d[_0x3236f8(0x1d9)]=_0x353a68['CLI_RUN_FINISHED'],_0x11492d[_0x3236f8(0x91)]=_0x3236f8(0xd7)+_0x4b0d81,_0xc66ee0[_0x3236f8(0x97)](_0x41cb81,_0x11492d);continue;case'6':_0x4c3383=_0x3ecdb0[_0x3236f8(0x115)][_0x3236f8(0x163)][_0x3236f8(0xd4)][_0x3236f8(0x166)][0x0][_0x3236f8(0x177)];continue;case'7':_0x5176d3=_0x3236f8(0x1ba)+_0x584bd5+'\x20';continue;}break;}}}_0x177add[_0x3236f8(0xbb)](_0x1795c3[_0x3236f8(0xb0)],0xc8)&&(_0x177add[_0x3236f8(0x140)](_0x177add['xqGgx'],_0x177add['xqGgx'])?(_0x5d513a=_0x3236f8(0x113)+JSON['stringify'](_0x1795c3),await _0x177add[_0x3236f8(0xe4)](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes['ERROR'],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0xaf)],_0x177add[_0x3236f8(0x127)]),logger['error'](_0x5d513a),process[_0x3236f8(0xb6)](0x1)):_0x595634[_0x3236f8(0xbe)](_0x3236f8(0x1b3)+_0x22a62d+'\x20'));const _0xfcba42=JSON[_0x3236f8(0xdd)](_0x1795c3[_0x3236f8(0x115)]),_0x4cdd8e={};_0x4cdd8e[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x9d)],_0x4cdd8e['message']=_0x3236f8(0x192),webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x4cdd8e);const _0xa4a0d4={};_0xa4a0d4[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0xa4a0d4[_0x3236f8(0x91)]=_0x177add[_0x3236f8(0x160)],webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0xa4a0d4);if(_0xfcba42[_0x3236f8(0x13f)]){if(_0x177add['vwoRX'](_0x177add[_0x3236f8(0x10f)],_0x177add['FXDiS'])){const _0x17773f=_0x177add[_0x3236f8(0x185)][_0x3236f8(0x183)]('|');let _0x52aaa3=0x0;while(!![]){switch(_0x17773f[_0x52aaa3++]){case'0':_0x4503ae=_0x717ec0[_0x3236f8(0x94)];continue;case'1':_0x1031b3=_0x5304e2[_0x3236f8(0x141)];continue;case'2':_0x6e58b9=_0x4b3c47[_0x3236f8(0xdb)];continue;case'3':_0x4fb288=_0xbb254d[_0x3236f8(0x164)];continue;case'4':_0x177add[_0x3236f8(0x1c3)](_0x32695e,_0x655fd9,_0x5f33c2,_0x3b73d5,_0x4f7035,_0x3a3b59,_0x3e2fb3,_0x584988,_0x4cd384,_0x581b88);continue;case'5':_0x155929=_0x33bd27[_0x3236f8(0xc6)];continue;case'6':_0x38582d=_0x410f88['cloudProvider'];continue;case'7':_0x11b643=_0x26b042['clusterName'];continue;case'8':_0x34a382=_0x4f878f[_0x3236f8(0x1d8)];continue;case'9':_0x381c0c=_0x510735['subnets'];continue;case'10':_0x110fb8=_0x863063[_0x3236f8(0xcb)];continue;case'11':_0x12ed6c=_0x1de292['securityGroups'];continue;}break;}}else _0x5d513a=_0x177add[_0x3236f8(0x1d6)],await _0x177add['AxJZz'](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0x1e2)],_0x177add[_0x3236f8(0x127)]),logger['error'](_0x5d513a),process[_0x3236f8(0xb6)](0x1);}const _0x3ce868=_0xfcba42[_0x3236f8(0xc8)];let _0x110b4e=_0x3ce868[_0xfcba42[_0x3236f8(0xc9)]];if(_0x504270[_0x3236f8(0x112)]){if(_0x177add[_0x3236f8(0x176)](_0x177add['wOFWH'],_0x177add[_0x3236f8(0x180)]))_0x110b4e=_0x3ce868[_0x504270[_0x3236f8(0x112)]];else{const _0x89db71={};_0x89db71[_0x3236f8(0x1e4)]=_0x177add[_0x3236f8(0x1bd)],_0x89db71[_0x3236f8(0x1d9)]=_0x177add[_0x3236f8(0xa9)];const _0x3aafd6={};_0x3aafd6[_0x3236f8(0x1e4)]=_0x177add[_0x3236f8(0x14a)],_0x3aafd6[_0x3236f8(0x1d9)]=_0x177add[_0x3236f8(0xa9)];const _0x3493aa={};_0x3493aa['description']=_0x177add[_0x3236f8(0xa5)],_0x3493aa[_0x3236f8(0x1d9)]=_0x177add[_0x3236f8(0xa9)];const _0x10934f={};_0x10934f['description']=_0x177add['bKLbX'],_0x10934f['type']=_0x177add[_0x3236f8(0xa9)];const _0x495686={};_0x495686[_0x3236f8(0x1e4)]=_0x177add[_0x3236f8(0x10d)],_0x495686[_0x3236f8(0x1d9)]=_0x177add[_0x3236f8(0xa9)];const _0x4c901f={};return _0x4c901f[_0x3236f8(0x11d)]=_0x89db71,_0x4c901f['grid-profile']=_0x3aafd6,_0x4c901f['cluster-name']=_0x3493aa,_0x4c901f[_0x3236f8(0xae)]=_0x10934f,_0x4c901f[_0x3236f8(0x141)]=_0x495686,_0x3ddbc2['usage'](_0x3f100e[_0x3236f8(0x17a)])[_0x3236f8(0x19c)](_0x4b9337)[_0x3236f8(0x174)](_0x4c901f)['help'](_0x177add[_0x3236f8(0x1c2)])[_0x3236f8(0xc5)];}}_0x177add['vwoRX'](_0x110b4e,undefined)&&(_0x177add[_0x3236f8(0x191)](_0x177add[_0x3236f8(0x158)],_0x177add[_0x3236f8(0x158)])?_0x2c226e['info'](_0x3236f8(0x12f)+_0x235636[_0x3236f8(0x14e)](_0x5e5352)+'\x20'):(_0x5d513a=_0x177add[_0x3236f8(0x1c8)],await _0x177add['ZrGpt'](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add['vMSOh'],_0x177add[_0x3236f8(0x142)],_0x177add[_0x3236f8(0x127)]),logger[_0x3236f8(0xb4)](_0x5d513a),process['exit'](0x1)));global_registry[_0x3236f8(0xf5)]=_0x110b4e['id'],_0x5d513a=_0x3236f8(0x1cc)+_0x3adbf4+_0x3236f8(0x106)+_0x110b4e[_0x3236f8(0x1c7)]+_0x3236f8(0x13d),logger[_0x3236f8(0xbe)](_0x5d513a);const _0x45e243={};_0x45e243[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x45e243[_0x3236f8(0x91)]=_0x5d513a,webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x45e243);if(_0x177add[_0x3236f8(0x18d)](_0x1edc9a,![])){if(_0x177add['dyhoA'](_0x177add[_0x3236f8(0xfd)],_0x177add['NWotY'])){const _0x118470=_0x177add[_0x3236f8(0x1c4)][_0x3236f8(0x183)]('|');let _0xaff983=0x0;while(!![]){switch(_0x118470[_0xaff983++]){case'0':securityGroups=_0x110b4e[_0x3236f8(0x182)];continue;case'1':_0x14f6c5=_0x110b4e['vpc'];continue;case'2':_0x3eff9c=_0x110b4e[_0x3236f8(0xc6)];continue;case'3':_0x1bd565=_0x110b4e[_0x3236f8(0x171)];continue;case'4':_0x2e8410=_0x110b4e[_0x3236f8(0x141)];continue;case'5':_0x1ee298=_0x110b4e[_0x3236f8(0xcb)];continue;case'6':_0x1674ff=_0xfcba42[_0x3236f8(0x94)];continue;case'7':subnets=_0x110b4e[_0x3236f8(0x1dd)];continue;case'8':_0x5eb7b0=_0x110b4e[_0x3236f8(0xe5)];continue;case'9':_0x583ecc=_0x110b4e['concurrency'];continue;case'10':_0x159a5f=_0xfcba42[_0x3236f8(0x1d8)];continue;case'11':_0x177add[_0x3236f8(0x1c3)](updateGlobalRegistryWithConfig,_0x5eb7b0,_0x1bd565,_0x2e8410,_0x583ecc,_0x1ee298,_0x3eff9c,_0x110b4e,_0x159a5f,_0x1674ff);continue;}break;}}else _0x192655=_0x25664f[_0x132ba2['gridProfile']];}else{if(_0x177add[_0x3236f8(0x95)](_0x177add['ZgWVW'],_0x177add['ZgWVW'])){const _0xe7269c={};_0xe7269c[_0x3236f8(0x1d9)]=_0x46f65e['LOG'],_0xe7269c[_0x3236f8(0x91)]=_0x4c34a4,_0x538ba4['sendEventToBackend'](_0x48be8b,_0xe7269c,_0x177add['xmJWu'],!![]);}else{const _0x2247e3=_0x177add['GiXCN'][_0x3236f8(0x183)]('|');let _0x66bf48=0x0;while(!![]){switch(_0x2247e3[_0x66bf48++]){case'0':global_registry[_0x3236f8(0x94)]=_0xfcba42[_0x3236f8(0x94)];continue;case'1':global_registry[_0x3236f8(0x171)]=_0x1bd565;continue;case'2':const _0x2e6db5={};_0x2e6db5[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x2e6db5['message']=_0x5d513a,webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x2e6db5);continue;case'3':global_registry['cloudProvider']=_0x5eb7b0;continue;case'4':logger['info'](_0x5d513a);continue;case'5':global_registry[_0x3236f8(0x1d8)]=_0xfcba42[_0x3236f8(0x1d8)];continue;case'6':global_registry[_0x3236f8(0x17b)]=_0x2e8410;continue;case'7':const _0x381df2={};_0x381df2[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x9d)],_0x381df2[_0x3236f8(0x91)]='CLI\x20run\x20started',webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x381df2);continue;case'8':_0x5d513a=_0x3236f8(0xcd)+_0x3adbf4+_0x3236f8(0x195)+_0x1bd565+'\x27';continue;}break;}}}const _0x5d78ec=_0x39ff1e[_0x3236f8(0xe5)]||{};if(_0x177add[_0x3236f8(0xd9)](_0x5d78ec[_0x5eb7b0],undefined)){logger['info'](_0x177add[_0x3236f8(0x11f)]);const [_0x1a0ad8,_0x1acc98]=await _0x177add[_0x3236f8(0xc1)](inputCloudProviderKeys,_0x5eb7b0);_0x39ff1e['cloudProvider']={};const _0x5edd0c={};_0x5edd0c[_0x3236f8(0x11e)]=_0x1a0ad8,_0x5edd0c['secret']=_0x1acc98,_0x39ff1e[_0x3236f8(0xe5)][_0x5eb7b0]=_0x5edd0c,fs[_0x3236f8(0x98)](_0x177add[_0x3236f8(0x1af)](getCredentialsPath),JSON[_0x3236f8(0x14e)](_0x39ff1e)),logger[_0x3236f8(0xba)](_0x177add[_0x3236f8(0x17e)]),global_registry[_0x3236f8(0x16b)]=_0x1a0ad8,global_registry['cloudProviderSecretKey']=_0x1acc98;}else{const _0x4467dd=_0x177add[_0x3236f8(0x18e)]['split']('|');let _0x2aee12=0x0;while(!![]){switch(_0x4467dd[_0x2aee12++]){case'0':const _0x4c7f4d={};_0x4c7f4d[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x4c7f4d[_0x3236f8(0x91)]=_0x5d513a,webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x4c7f4d);continue;case'1':_0x5d513a=_0x177add[_0x3236f8(0xd8)];continue;case'2':logger[_0x3236f8(0xbe)](_0x5d513a);continue;case'3':global_registry[_0x3236f8(0x16b)]=_0x5d78ec[_0x5eb7b0]['accessKey'];continue;case'4':global_registry[_0x3236f8(0xbf)]=_0x5d78ec[_0x5eb7b0]['secret'];continue;}break;}}_0x177add[_0x3236f8(0x18d)](_0x5eb7b0,AWS)&&(logger['debug'](_0x177add[_0x3236f8(0x12b)]),_0x177add[_0x3236f8(0x1af)](configureAWSIfNotConfigured));let _0xe50e13,_0x42446d;if(_0x177add['vwoRX'](_0x1edc9a,![])){_0x5d513a='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x2e8410+').';const _0x316464={};_0x316464[_0x3236f8(0x1d9)]=WS_EVENTS['LOG'],_0x316464['message']=_0x5d513a,webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x316464),logger['info'](_0x5d513a);const _0x56432c=await _0x177add[_0x3236f8(0x14f)](isClusterPresent,_0x5eb7b0,_0x1bd565);let _0x2def86;if(_0x56432c){const _0x163c7f={};_0x163c7f['type']=WS_EVENTS['LOG'],_0x163c7f[_0x3236f8(0x91)]=_0x3236f8(0x162)+_0x1bd565+_0x3236f8(0x104),webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x163c7f,_0x177add[_0x3236f8(0x168)]),logger[_0x3236f8(0x137)]('Cluster\x20'+_0x1bd565+_0x3236f8(0x104)),_0xe50e13=await _0x177add[_0x3236f8(0x1be)](getClusterInfo,_0x1bd565),_0x1edc9a=!![];}else{const _0x1d8aab={};_0x1d8aab['type']=WS_EVENTS['LOG'],_0x1d8aab[_0x3236f8(0x91)]=_0x177add['aEbjc'],webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x1d8aab),logger['info'](_0x177add['aEbjc']);const _0x5501b0=_0x177add[_0x3236f8(0x14c)](_0x14f6c5,null)&&_0x177add[_0x3236f8(0x1ae)](_0x14f6c5,undefined),_0xdbe97a=_0x177add[_0x3236f8(0xf6)](subnets,null)&&_0x177add[_0x3236f8(0x15d)](subnets,undefined)&&_0x177add[_0x3236f8(0x126)](subnets[_0x3236f8(0x170)],0x0);let _0x1531ef;if(_0x5501b0){_0x177add['xpfyD'](_0xdbe97a,![])&&(_0x5d513a=_0x177add['nOxHA'],await _0x177add['ZrGpt'](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0x15b)],_0x177add['xmJWu']),logger[_0x3236f8(0xb4)](_0x5d513a),process[_0x3236f8(0xb6)](0x1));const _0x40212e=await _0x177add[_0x3236f8(0x14f)](isVPCPresent,_0x14f6c5,_0x2e8410);_0x177add[_0x3236f8(0x1bb)](_0x40212e,![])?(_0x5d513a=_0x177add[_0x3236f8(0xf7)],await _0x177add['HpdGe'](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes['ERROR'],_0x177add[_0x3236f8(0xce)],_0x177add['sEEhm'],_0x177add['xmJWu']),logger[_0x3236f8(0xb4)](_0x5d513a),process['exit'](0x1)):logger['info'](_0x3236f8(0x1b3)+_0x14f6c5+'\x20');const _0x136dc0=await _0x177add[_0x3236f8(0x1c5)](isSubnetsValid,subnets,_0x14f6c5,_0x2e8410);_0x177add['nPqKQ'](_0x136dc0[0x0],![])?(_0x5d513a=_0x3236f8(0xed)+_0x136dc0[0x1]+_0x3236f8(0x193)+_0x14f6c5+_0x3236f8(0x1d0),await _0x177add['ZrGpt'](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes['ERROR'],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0x128)],_0x177add['xmJWu']),logger['error'](_0x5d513a),process[_0x3236f8(0xb6)](0x1)):logger[_0x3236f8(0xbe)](_0x3236f8(0x12f)+JSON[_0x3236f8(0x14e)](subnets)+'\x20');const _0xafd447=await _0x177add[_0x3236f8(0x1c5)](createClusterStack,_0x1bd565,_0x14f6c5,subnets);logger[_0x3236f8(0xbe)](_0x177add[_0x3236f8(0xec)]),logger[_0x3236f8(0xbe)](_0x3236f8(0x11c)+_0xafd447[_0x3236f8(0x107)][0x0]['Outputs'][0x3]['OutputValue']+'\x20'),logger[_0x3236f8(0xbe)](_0x3236f8(0x1a7)+_0xafd447[_0x3236f8(0x107)][0x0][_0x3236f8(0xe9)][0x1]['OutputValue']+'\x20'),logger['info'](_0x3236f8(0xf1)+_0xafd447[_0x3236f8(0x107)][0x0][_0x3236f8(0xe9)][0x0][_0x3236f8(0x1b9)][_0x3236f8(0x183)](',')+'\x20'),logger[_0x3236f8(0xbe)](_0x3236f8(0x117)+_0xafd447['Stacks'][0x0][_0x3236f8(0xe9)][0x4][_0x3236f8(0x1b9)]+'\x20');}else{const _0x5be93c={};_0x5be93c[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x5be93c[_0x3236f8(0x91)]=_0x177add[_0x3236f8(0x1a5)],webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x5be93c),logger[_0x3236f8(0xbe)](_0x177add[_0x3236f8(0x1a5)]),_0x177add[_0x3236f8(0x1b8)](sendAWSInfoToHST,_0x43c8f7);const _0x4b5245={};_0x4b5245['type']=WS_EVENTS[_0x3236f8(0x134)],_0x4b5245['message']=_0x177add[_0x3236f8(0xd1)],webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x4b5245),logger[_0x3236f8(0xbe)](_0x177add['krDOY']);const _0x152ddd=await _0x177add[_0x3236f8(0x12d)](createClusterStack,_0x1bd565),_0x419249=_0x152ddd[_0x3236f8(0x107)][0x0][_0x3236f8(0xe9)][0x0][_0x3236f8(0x1b9)][_0x3236f8(0x183)](',');_0x1531ef=_0x152ddd[_0x3236f8(0x107)][0x0][_0x3236f8(0xe9)][0x1][_0x3236f8(0x1b9)];const _0x1872fe=_0x152ddd[_0x3236f8(0x107)][0x0][_0x3236f8(0xe9)][0x2]['OutputValue'],_0x456ebb=_0x152ddd[_0x3236f8(0x107)][0x0]['Outputs'][0x3][_0x3236f8(0x1b9)];_0x2def86=_0x152ddd['Stacks'][0x0][_0x3236f8(0xe9)][0x4][_0x3236f8(0x1b9)];const _0x122887=_0x152ddd[_0x3236f8(0x107)][0x0][_0x3236f8(0xe9)][0x5][_0x3236f8(0x1b9)][_0x3236f8(0x183)](','),_0x10f00a={};_0x10f00a[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x10f00a[_0x3236f8(0x91)]='Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20'+_0x456ebb+_0x3236f8(0x150)+_0x1531ef+_0x3236f8(0x11a)+_0x1872fe+_0x3236f8(0x1d3)+_0x122887+_0x3236f8(0xac)+_0x419249+_0x3236f8(0x18c)+_0x2def86+'\x20',webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x10f00a),logger['info'](_0x177add[_0x3236f8(0xec)]),logger[_0x3236f8(0xbe)]('Cluster\x20=>\x20'+_0x456ebb+'\x20'),logger[_0x3236f8(0xbe)]('ClusterRole\x20=>\x20'+_0x1531ef+'\x20'),logger[_0x3236f8(0xbe)](_0x3236f8(0x1a3)+_0x1872fe+'\x20'),logger['info'](_0x3236f8(0xeb)+_0x122887+'\x20'),logger['info'](_0x3236f8(0xf1)+_0x419249+'\x20'),logger[_0x3236f8(0xbe)](_0x3236f8(0x117)+_0x2def86+'\x20');const _0x4ee8a1={};_0x4ee8a1['type']=WS_EVENTS[_0x3236f8(0x134)],_0x4ee8a1[_0x3236f8(0x91)]=_0x3236f8(0x122),webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x4ee8a1),logger[_0x3236f8(0xbe)](_0x177add['VGeSc']);}}}_0xe50e13=await _0x177add['GMbVu'](getClusterInfo,_0x1bd565);const [_0x5432a0,_0x236eaa,_0x1aad85,_0x124716,_0x47992a]=await _0x177add[_0x3236f8(0x116)](createK8sClient,_0xe50e13['cluster'][_0x3236f8(0x1c7)],_0xe50e13[_0x3236f8(0x167)][_0x3236f8(0xd2)],_0xe50e13[_0x3236f8(0x167)][_0x3236f8(0x1e0)][_0x3236f8(0x1b7)],global_registry[_0x3236f8(0x17b)]);if(_0x177add[_0x3236f8(0x194)](_0x1edc9a,![])){const _0x2587cd={};_0x2587cd['type']=WS_EVENTS[_0x3236f8(0x134)],_0x2587cd['message']=_0x177add[_0x3236f8(0x9f)],webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x2587cd),logger[_0x3236f8(0xbe)](_0x177add[_0x3236f8(0x9f)]);try{const _0x112e1f=await _0x177add[_0x3236f8(0x1cd)](createAutoscalerStack,_0x1bd565);_0x42446d=_0x112e1f['Stacks'][0x0][_0x3236f8(0xe9)][0x2][_0x3236f8(0x1b9)];const _0x40428a={};_0x40428a[_0x3236f8(0x1d9)]=WS_EVENTS['LOG'],_0x40428a['message']=_0x3236f8(0xe3)+_0x42446d+'\x20',webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x40428a),logger[_0x3236f8(0xbe)](_0x3236f8(0xe3)+_0x42446d+'\x20');}catch(_0x4bd8b0){if(_0x177add[_0x3236f8(0x109)](_0x4bd8b0[_0x3236f8(0x91)]['match'](/already exists/),null)||_0x177add[_0x3236f8(0x9e)](_0x4bd8b0['message'][_0x3236f8(0xc7)](/already exists/),undefined))_0x5d513a=_0x3236f8(0x152)+_0x4bd8b0[_0x3236f8(0x91)],await _0x177add[_0x3236f8(0x136)](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0x17d)],_0x177add[_0x3236f8(0xce)],_0x177add[_0x3236f8(0xef)],_0x177add['rjzgU']),logger['warn'](_0x5d513a);else{const _0x1c14a5=_0x177add[_0x3236f8(0x133)][_0x3236f8(0x183)]('|');let _0x4718db=0x0;while(!![]){switch(_0x1c14a5[_0x4718db++]){case'0':await _0x177add[_0x3236f8(0xda)](reportToGalactusAndSendToEDS,_0x504270,_0x43c8f7,_0x5d513a,messageTypes[_0x3236f8(0xfa)],_0x177add['vMSOh'],_0x177add[_0x3236f8(0x121)],_0x177add['xmJWu']);continue;case'1':logger[_0x3236f8(0xb4)](_0x5d513a);continue;case'2':process['exit'](0x1);continue;case'3':_0x5d513a=_0x3236f8(0x1c6)+_0x4bd8b0[_0x3236f8(0x91)]+_0x3236f8(0xb1);continue;case'4':await _0x177add[_0x3236f8(0x1be)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;}break;}}}let _0x199ac8=await _0x177add[_0x3236f8(0xe2)](getNodeGroupInfo,_0x1bd565,_0x1bd565+_0x3236f8(0x15e));nodeRole=_0x199ac8[_0x3236f8(0xc3)][_0x3236f8(0x181)];const _0x16245f=await _0x177add[_0x3236f8(0x12d)](createAuthConfigMap,nodeRole);await _0x5432a0[_0x3236f8(0xe0)](_0x177add[_0x3236f8(0x156)],_0x16245f)[_0x3236f8(0xa2)](_0x31e4ab=>{const _0x242ecb=_0x3236f8;logger[_0x242ecb(0xbe)](_0x177add[_0x242ecb(0x1a9)]);});}try{_0x210c11=_0x177add[_0x3236f8(0x139)](kebabCase,_0x3adbf4),logger['info'](_0x177add[_0x3236f8(0x129)]);const _0x464612={};_0x464612[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x464612['message']=_0x177add[_0x3236f8(0x129)],webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x464612);if(_0x177add['nejwj'](_0x210c11,_0x177add[_0x3236f8(0x14d)])){const _0x516ab0={};_0x516ab0[_0x3236f8(0x9a)]=_0x177add[_0x3236f8(0x1e3)],_0x516ab0[_0x3236f8(0x1a6)]=_0x177add['GWHCf'];const _0x5f11b3={};_0x5f11b3['name']=_0x210c11,_0x5f11b3[_0x3236f8(0x105)]=_0x516ab0;const _0x1cf290={};_0x1cf290[_0x3236f8(0x1bf)]=_0x5f11b3;let _0x2747a3=_0x1cf290;await _0x5432a0[_0x3236f8(0xa7)](_0x2747a3),logger[_0x3236f8(0xbe)](_0x177add[_0x3236f8(0xc4)]);}const _0x25d00a={};_0x25d00a[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x25d00a[_0x3236f8(0x91)]=_0x177add['aeGoO'],webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x25d00a);const _0x508a35={};_0x508a35[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x508a35[_0x3236f8(0x91)]=_0x177add['NBUsQ'],webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x508a35),logger[_0x3236f8(0xbe)](_0x177add['qBxSm']),await _0x177add[_0x3236f8(0xe6)](addGridComponents,_0x5432a0,_0x236eaa,_0x1aad85,_0x124716,_0x210c11,_0x1bd565,_0x42446d,_0x47992a),_0x5d513a=_0x177add['XgsdX'],logger['info'](_0x5d513a);const _0x49152b={};_0x49152b[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x49152b[_0x3236f8(0x91)]=_0x5d513a,webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x49152b),_0x5d513a=_0x177add[_0x3236f8(0xf8)],logger[_0x3236f8(0xbe)](_0x5d513a);const _0x3f86be={};_0x3f86be[_0x3236f8(0x1d9)]=WS_EVENTS[_0x3236f8(0x134)],_0x3f86be[_0x3236f8(0x91)]=_0x5d513a,webSocketUtils[_0x3236f8(0x97)](_0x43c8f7,_0x3f86be),await webSocketUtils[_0x3236f8(0x1ac)](0x1388);let _0x850ce7;await _0x5432a0[_0x3236f8(0x13b)](_0x177add['lxkpa'],_0x210c11)[_0x3236f8(0x108)](_0x31d5c6=>{const _0x414b38=_0x3236f8,_0xd9b4b5=_0x177add[_0x414b38(0x132)]['split']('|');let _0x53a80b=0x0;while(!![]){switch(_0xd9b4b5[_0x53a80b++]){case'0':const _0x49f17f={};_0x49f17f[_0x414b38(0x1d9)]=WS_EVENTS[_0x414b38(0x134)],_0x49f17f[_0x414b38(0x91)]=_0x5d513a,webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x49f17f);continue;case'1':logger[_0x414b38(0xbe)](_0x5d513a);continue;case'2':const _0x10ab7b={};_0x10ab7b[_0x414b38(0x1d9)]=WS_EVENTS[_0x414b38(0xcf)],_0x10ab7b[_0x414b38(0x91)]=_0x414b38(0xd7)+_0x850ce7,webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x10ab7b);continue;case'3':logger[_0x414b38(0xbe)](_0x5d513a);continue;case'4':_0x5d513a=_0x414b38(0xaa)+_0x850ce7+':4444/wd/hub';continue;case'5':_0x5d513a=_0x414b38(0x1ba)+_0x850ce7+'\x20';continue;case'6':_0x850ce7=_0x31d5c6['body'][_0x414b38(0x163)][_0x414b38(0xd4)][_0x414b38(0x166)][0x0][_0x414b38(0x177)];continue;case'7':const _0x479639={};_0x479639[_0x414b38(0x1d9)]=WS_EVENTS['LOG'],_0x479639[_0x414b38(0x91)]=_0x5d513a,webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x479639);continue;}break;}}),await webSocketUtils[_0x3236f8(0x1ac)](0x1f4);}catch(_0xd81d0c){if(_0x177add[_0x3236f8(0x1cb)](_0x1edc9a,![]))try{logger['info'](_0x3236f8(0x144)),await _0x177add[_0x3236f8(0x151)](removeGridComponents,_0x5432a0,_0x236eaa,_0x1aad85,_0x124716,_0x210c11),await _0x177add[_0x3236f8(0x12d)](deleteClusterAndDependencies,global_registry[_0x3236f8(0x17b)]);}catch(_0x292f74){throw _0x292f74;}throw _0xd81d0c;}}catch(_0xd78ea1){const _0x5ed95d=_0x3236f8(0x186)+_0xd78ea1+'\x20\x0a'+JSON[_0x3236f8(0x14e)](_0xd78ea1)+'\x20';if(_0x43c8f7){const _0x3d8333={};_0x3d8333['type']=WS_EVENTS['LOG'],_0x3d8333['message']=_0x5ed95d,webSocketUtils['sendEventToBackend'](_0x43c8f7,_0x3d8333,_0x177add[_0x3236f8(0x127)],!![]);}const _0x5949ab={};_0x5949ab['error']=_0x5ed95d,await _0x177add[_0x3236f8(0xde)](sendInstrumentationEvent,_0x504270,_0x177add[_0x3236f8(0xce)],messageTypes['ERROR'],_0x177add[_0x3236f8(0xbd)],_0x5949ab,_0x504270),logger[_0x3236f8(0xb4)](_0x5ed95d);}process[_0x3236f8(0xb6)](0x0);};
@@ -1 +1 @@
1
- const a5_0x2d0f80=a5_0x5c15;(function(_0x1f009a,_0x5d8ced){const _0x23b733=a5_0x5c15,_0xab9c10=_0x1f009a();while(!![]){try{const _0x1aae81=parseInt(_0x23b733(0x8f))/0x1+-parseInt(_0x23b733(0x8c))/0x2+-parseInt(_0x23b733(0x83))/0x3+-parseInt(_0x23b733(0x85))/0x4+parseInt(_0x23b733(0x88))/0x5+-parseInt(_0x23b733(0x80))/0x6+-parseInt(_0x23b733(0x86))/0x7*(-parseInt(_0x23b733(0x7f))/0x8);if(_0x1aae81===_0x5d8ced)break;else _0xab9c10['push'](_0xab9c10['shift']());}catch(_0xfb32fa){_0xab9c10['push'](_0xab9c10['shift']());}}}(a5_0x5626,0x6fd6d));function a5_0x5626(){const _0x2caf19=['desc','1807556tdOCSw','fNfib','demandCommand','142zsmCBy','commandDir','delete_commands','handler','sIqnA','24iHnSQD','354732jftBsV','../config/constants','epilogue','2684340vzwMhN','usage','846776FVxqRw','4211557TMquDz','help','3611860RNmMip','delete','builder'];a5_0x5626=function(){return _0x2caf19;};return a5_0x5626();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0x2d0f80(0x81));function a5_0x5c15(_0x55f114,_0x43917b){const _0x562649=a5_0x5626();return a5_0x5c15=function(_0x5c15bb,_0x381093){_0x5c15bb=_0x5c15bb-0x7e;let _0x30227e=_0x562649[_0x5c15bb];return _0x30227e;},a5_0x5c15(_0x55f114,_0x43917b);}exports['command']='delete',exports[a5_0x2d0f80(0x8b)]='List\x20Grid\x20resources.',exports[a5_0x2d0f80(0x8a)]=function(_0x478403){const _0x545c90=a5_0x2d0f80,_0x266056={};_0x266056[_0x545c90(0x7e)]=_0x545c90(0x91),_0x266056[_0x545c90(0x8d)]=_0x545c90(0x87);const _0x492a19=_0x266056;return _0x478403[_0x545c90(0x84)](HELP_HEADER_MESSAGE[_0x545c90(0x89)])[_0x545c90(0x82)](HELP_FOOTER_MESSAGE)[_0x545c90(0x90)](_0x492a19['sIqnA'])[_0x545c90(0x8e)]()['recommendCommands']()['strict']()['help'](_0x492a19[_0x545c90(0x8d)]);},exports[a5_0x2d0f80(0x92)]=function(_0x44a98e){};
1
+ const a5_0x327507=a5_0x3dc8;(function(_0x2e002e,_0x3ce9ab){const _0xc55dee=a5_0x3dc8,_0x2c60f2=_0x2e002e();while(!![]){try{const _0x54013e=parseInt(_0xc55dee(0x1d1))/0x1+-parseInt(_0xc55dee(0x1dd))/0x2*(parseInt(_0xc55dee(0x1d9))/0x3)+parseInt(_0xc55dee(0x1d0))/0x4+parseInt(_0xc55dee(0x1e1))/0x5+parseInt(_0xc55dee(0x1dc))/0x6*(parseInt(_0xc55dee(0x1d5))/0x7)+-parseInt(_0xc55dee(0x1e2))/0x8+parseInt(_0xc55dee(0x1e0))/0x9;if(_0x54013e===_0x3ce9ab)break;else _0x2c60f2['push'](_0x2c60f2['shift']());}catch(_0x39e164){_0x2c60f2['push'](_0x2c60f2['shift']());}}}(a5_0x5e03,0x5f1ce));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a5_0x5e03(){const _0x40bfba=['506MdmtKJ','recommendCommands','epilogue','442467NnGMtN','632055SzcoOL','906648ggAQEs','demandCommand','builder','2190116HwDyMJ','56808OfierE','delete','help','handler','7GquSKa','strict','desc','FigIF','7821KjuKtZ','List\x20Grid\x20resources.','BAMuN','2295438aIdFvj'];a5_0x5e03=function(){return _0x40bfba;};return a5_0x5e03();}function a5_0x3dc8(_0x480533,_0xda7dd5){const _0x5e03d8=a5_0x5e03();return a5_0x3dc8=function(_0x3dc81c,_0x141b94){_0x3dc81c=_0x3dc81c-0x1d0;let _0x2f75a5=_0x5e03d8[_0x3dc81c];return _0x2f75a5;},a5_0x3dc8(_0x480533,_0xda7dd5);}exports['command']=a5_0x327507(0x1d2),exports[a5_0x327507(0x1d7)]=a5_0x327507(0x1da),exports[a5_0x327507(0x1e4)]=function(_0x1342f0){const _0x4cc4e2=a5_0x327507,_0x52e7c6={};_0x52e7c6[_0x4cc4e2(0x1d8)]='delete_commands',_0x52e7c6['BAMuN']='help';const _0x2ad6d2=_0x52e7c6;return _0x1342f0['usage'](HELP_HEADER_MESSAGE['delete'])[_0x4cc4e2(0x1df)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2ad6d2[_0x4cc4e2(0x1d8)])[_0x4cc4e2(0x1e3)]()[_0x4cc4e2(0x1de)]()[_0x4cc4e2(0x1d6)]()[_0x4cc4e2(0x1d3)](_0x2ad6d2[_0x4cc4e2(0x1db)]);},exports[a5_0x327507(0x1d4)]=function(_0x1d73af){};
@@ -1 +1 @@
1
- const a6_0x1cd06a=a6_0x1e26;function a6_0x1e26(_0x1db2dc,_0x5a06a5){const _0x5cf8d1=a6_0x5cf8();return a6_0x1e26=function(_0x1e2636,_0x2cbada){_0x1e2636=_0x1e2636-0x1de;let _0x3b7b3b=_0x5cf8d1[_0x1e2636];return _0x3b7b3b;},a6_0x1e26(_0x1db2dc,_0x5a06a5);}(function(_0x539e25,_0x288fb6){const _0x3f0de0=a6_0x1e26,_0x4a6318=_0x539e25();while(!![]){try{const _0x4d2a11=parseInt(_0x3f0de0(0x23e))/0x1+-parseInt(_0x3f0de0(0x232))/0x2+parseInt(_0x3f0de0(0x21e))/0x3+-parseInt(_0x3f0de0(0x25c))/0x4+-parseInt(_0x3f0de0(0x23f))/0x5+-parseInt(_0x3f0de0(0x272))/0x6*(-parseInt(_0x3f0de0(0x1f9))/0x7)+-parseInt(_0x3f0de0(0x264))/0x8*(-parseInt(_0x3f0de0(0x218))/0x9);if(_0x4d2a11===_0x288fb6)break;else _0x4a6318['push'](_0x4a6318['shift']());}catch(_0x24c760){_0x4a6318['push'](_0x4a6318['shift']());}}}(a6_0x5cf8,0xb2685));const fs=require('fs'),util=require(a6_0x1cd06a(0x212)),request=require(a6_0x1cd06a(0x1df)),{v4:uuidv4}=require(a6_0x1cd06a(0x25a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x1cd06a(0x227)),{logger}=require(a6_0x1cd06a(0x215)),{getClusterInfo,configureAWSIfNotConfigured}=require('../../utils/AWSUtils'),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x1cd06a(0x205)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x1cd06a(0x1e3)),{createK8sClient}=require(a6_0x1cd06a(0x1f1)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x1cd06a(0x1e2)),promisifiedRequest=util[a6_0x1cd06a(0x21f)](request);exports['command']='grid',exports['desc']='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x12a2ac){const _0x2705d4=a6_0x1cd06a,_0x25f0d4={};_0x25f0d4['RIntt']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x25f0d4[_0x2705d4(0x273)]='string',_0x25f0d4[_0x2705d4(0x203)]='help';const _0x50e48f=_0x25f0d4,_0x37fc54={};_0x37fc54['description']=_0x50e48f[_0x2705d4(0x26b)],_0x37fc54[_0x2705d4(0x22b)]=_0x50e48f[_0x2705d4(0x273)];const _0x3fc1dd={};return _0x3fc1dd[_0x2705d4(0x245)]=_0x37fc54,_0x12a2ac[_0x2705d4(0x22c)](HELP_HEADER_MESSAGE[_0x2705d4(0x1e7)])[_0x2705d4(0x213)](HELP_FOOTER_MESSAGE)['options'](_0x3fc1dd)[_0x2705d4(0x20d)](_0x50e48f[_0x2705d4(0x203)])[_0x2705d4(0x266)];},exports[a6_0x1cd06a(0x240)]=async function(_0x4a64c2){const _0x21ad00=a6_0x1cd06a,_0x2e0457={'QCMGR':_0x21ad00(0x22f),'sjYPl':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','awfEd':_0x21ad00(0x236),'gDlyj':_0x21ad00(0x25b),'HSEgZ':_0x21ad00(0x20d),'DfFyv':function(_0xbfec43){return _0xbfec43();},'fjNsN':function(_0x5c9cf2){return _0x5c9cf2();},'IpLig':function(_0x1697b1,_0x2c13ff){return _0x1697b1===_0x2c13ff;},'HPHff':'uBqHj','xgTNS':_0x21ad00(0x20b),'UfwDa':function(_0x2d7054,_0x322d17,_0x14dea3,_0x528813,_0xda997f,_0x670ce,_0x2cd2d7){return _0x2d7054(_0x322d17,_0x14dea3,_0x528813,_0xda997f,_0x670ce,_0x2cd2d7);},'sxxpc':_0x21ad00(0x267),'USlGr':_0x21ad00(0x230),'vVsIV':function(_0x1ff3b9,_0x37ede7,_0x38e790,_0x19936d,_0xc12309,_0xf6d6f4,_0x504faa){return _0x1ff3b9(_0x37ede7,_0x38e790,_0x19936d,_0xc12309,_0xf6d6f4,_0x504faa);},'ztKYM':_0x21ad00(0x23d),'oMkIU':_0x21ad00(0x239),'NNosI':function(_0x140ca8,_0x1c10ae,_0xa151db,_0x578215){return _0x140ca8(_0x1c10ae,_0xa151db,_0x578215);},'sIjxn':'Browserstack','atlrK':function(_0x5a54b7,_0x168fb7){return _0x5a54b7!==_0x168fb7;},'TxgqS':_0x21ad00(0x22d),'DFHbj':function(_0x1235e3,_0x539334){return _0x1235e3(_0x539334);},'tGLJb':function(_0x14dee0,_0x4ba9a6){return _0x14dee0===_0x4ba9a6;},'MoulF':function(_0x400e9,_0x56ef93){return _0x400e9===_0x56ef93;},'PjiQY':function(_0x6818d,_0xaa51bc){return _0x6818d===_0xaa51bc;},'rsvMq':function(_0x24a57e,_0x154f35){return _0x24a57e===_0x154f35;},'pgKdN':function(_0x4b74ae,_0x51aa9a){return _0x4b74ae!==_0x51aa9a;},'llToS':_0x21ad00(0x202),'TmScW':_0x21ad00(0x21d),'ZAZcd':_0x21ad00(0x208),'uJUVc':_0x21ad00(0x258),'BehLK':'yVWVl','yYgJU':_0x21ad00(0x210),'rYBmt':function(_0x1fa288){return _0x1fa288();},'JnjjI':_0x21ad00(0x1e4),'TQEqD':_0x21ad00(0x24d),'pQPVv':_0x21ad00(0x1f2),'YvsCr':_0x21ad00(0x228),'ljOWd':function(_0x444f60,_0x12625d){return _0x444f60===_0x12625d;},'utDVQ':_0x21ad00(0x244),'eeGWN':function(_0x1a3c9c){return _0x1a3c9c();},'clYiA':function(_0x33862f,_0xf086fa){return _0x33862f(_0xf086fa);},'PhNmF':function(_0x45ca2d,_0x69d788,_0x73a7b4,_0x441373,_0x578e1b){return _0x45ca2d(_0x69d788,_0x73a7b4,_0x441373,_0x578e1b);},'goWLn':function(_0x527871,_0x889022,_0x36496d,_0x38d3c8,_0x2003b5,_0xffde6f){return _0x527871(_0x889022,_0x36496d,_0x38d3c8,_0x2003b5,_0xffde6f);},'pWyrF':function(_0x2c53b3,_0x438b44){return _0x2c53b3===_0x438b44;},'mXHbp':_0x21ad00(0x24f),'LoBFa':'browserstack:managedBy','UKeoA':_0x21ad00(0x26e),'fiLRX':'DELETE','qeoiR':function(_0x4dcf89,_0x9ed668){return _0x4dcf89!==_0x9ed668;},'jghPP':function(_0x1f5d09,_0x9f5575){return _0x1f5d09!==_0x9f5575;},'eGNWt':function(_0x498012,_0x2c1d64){return _0x498012===_0x2c1d64;},'GOHJA':function(_0x4d6594,_0x1aecc3,_0x5c51c4,_0x554303,_0x28ba5b,_0x2a83c8,_0x4b53e7){return _0x4d6594(_0x1aecc3,_0x5c51c4,_0x554303,_0x28ba5b,_0x2a83c8,_0x4b53e7);},'oJKzw':_0x21ad00(0x270),'RxdWr':function(_0x4d3f85,_0x5d86f2){return _0x4d3f85===_0x5d86f2;},'sBUgE':_0x21ad00(0x1e0),'FrMGq':_0x21ad00(0x1ee),'UwuNy':function(_0x56c10b,_0x3b15ad,_0x536708,_0x508a32,_0x56df9c,_0x338b38,_0x5247b2){return _0x56c10b(_0x3b15ad,_0x536708,_0x508a32,_0x56df9c,_0x338b38,_0x5247b2);},'MowWn':'unknown-error'};try{global_registry[_0x21ad00(0x1f0)]=_0x2e0457[_0x21ad00(0x25e)](uuidv4);!fs[_0x21ad00(0x1fe)](_0x2e0457[_0x21ad00(0x242)](getCredentialsPath))&&(_0x2e0457[_0x21ad00(0x269)](_0x2e0457[_0x21ad00(0x1f7)],_0x2e0457[_0x21ad00(0x1f7)])?(console['error'](_0x2e0457[_0x21ad00(0x223)]),await _0x2e0457['UfwDa'](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x207)],null,_0x4a64c2),process[_0x21ad00(0x20f)](0x1)):_0x41c572[_0x21ad00(0x20f)](0x0));_0x2e0457[_0x21ad00(0x1f8)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x248)],null,null,_0x4a64c2);!_0x4a64c2[_0x21ad00(0x249)]&&(_0x2e0457[_0x21ad00(0x269)](_0x2e0457[_0x21ad00(0x220)],_0x2e0457[_0x21ad00(0x1f4)])?_0x2339e=_0xfd6d6c[_0x21ad00(0x243)][_0x21ad00(0x271)]:(console['error'](_0x2e0457[_0x21ad00(0x1f5)]),process[_0x21ad00(0x20f)](0x1)));const _0x22ba65=JSON[_0x21ad00(0x276)](fs[_0x21ad00(0x268)](_0x2e0457[_0x21ad00(0x25e)](getCredentialsPath))),_0x5b991c=await _0x2e0457[_0x21ad00(0x1ef)](getGridDetails,_0x22ba65['Browserstack'][_0x21ad00(0x1e8)],_0x22ba65[_0x21ad00(0x209)][_0x21ad00(0x21c)],_0x4a64c2[_0x21ad00(0x249)]);if(_0x5b991c){const _0x26be8f=_0x5b991c[_0x21ad00(0x225)];let _0x248705=_0x21ad00(0x256)+_0x26be8f['name']+_0x21ad00(0x1fd)+_0x26be8f['id']+_0x21ad00(0x1eb),_0x2331da;_0x5b991c[_0x21ad00(0x275)]&&_0x2e0457[_0x21ad00(0x269)](_0x5b991c[_0x21ad00(0x279)],_0x2e0457[_0x21ad00(0x235)])&&(_0x2e0457['atlrK'](_0x2e0457[_0x21ad00(0x224)],_0x2e0457[_0x21ad00(0x224)])?(_0x39a143['error'](_0x2e0457['QCMGR']),_0x2f66fb[_0x21ad00(0x20f)](0x1)):_0x248705=_0x21ad00(0x256)+_0x26be8f[_0x21ad00(0x20c)]+'\x22\x20and\x20ID\x20'+_0x26be8f['id']+_0x21ad00(0x221)+_0x26be8f[_0x21ad00(0x1e9)]+'\x22\x20with\x20ID\x20'+_0x26be8f['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x2331da=await _0x2e0457[_0x21ad00(0x255)](inputConfirmation,_0x248705);(_0x2e0457[_0x21ad00(0x20e)](_0x2331da,undefined)||_0x2e0457[_0x21ad00(0x222)](_0x2331da,null)||!(_0x2e0457[_0x21ad00(0x1ed)](_0x2331da['toLowerCase'](),'y')||_0x2e0457[_0x21ad00(0x25d)](_0x2331da[_0x21ad00(0x20a)](),'n')))&&(_0x2e0457[_0x21ad00(0x1ff)](_0x2e0457[_0x21ad00(0x216)],_0x2e0457[_0x21ad00(0x237)])?(console[_0x21ad00(0x1e6)](_0x2e0457['ZAZcd']),await _0x2e0457[_0x21ad00(0x25f)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x1e1)],null,_0x4a64c2),process[_0x21ad00(0x20f)](0x1)):(_0x2208e[_0x21ad00(0x225)](_0x2e0457['sjYPl']),_0x386d71['cloudProviderAccessKey']=_0x3365e6[_0x5137db][_0x21ad00(0x206)],_0x285715[_0x21ad00(0x24a)]=_0x50f1c1[_0x5e4cb5][_0x21ad00(0x219)]));_0x2e0457[_0x21ad00(0x269)](_0x2331da['toLowerCase'](),'n')&&(_0x2e0457['atlrK'](_0x2e0457[_0x21ad00(0x252)],_0x2e0457[_0x21ad00(0x265)])?process[_0x21ad00(0x20f)](0x0):_0x426492='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x332d9e[_0x21ad00(0x20c)]+_0x21ad00(0x1fd)+_0x28a1de['id']+_0x21ad00(0x221)+_0x1050ed[_0x21ad00(0x1e9)]+'\x22\x20with\x20ID\x20'+_0x116cb6[_0x21ad00(0x27b)]+_0x21ad00(0x1eb));_0x2e0457['rYBmt'](closeInput),global_registry[_0x21ad00(0x234)]=_0x26be8f[_0x21ad00(0x1fc)];const _0x5a5278=_0x26be8f[_0x21ad00(0x1ec)],_0x35a002=_0x22ba65[_0x21ad00(0x1ec)]||{};if(_0x2e0457[_0x21ad00(0x1ed)](_0x35a002[_0x5a5278],undefined)){if(_0x2e0457[_0x21ad00(0x1ff)](_0x2e0457[_0x21ad00(0x231)],_0x2e0457[_0x21ad00(0x262)])){logger[_0x21ad00(0x225)](_0x2e0457[_0x21ad00(0x217)]);const [_0x4107c9,_0x10d5f1]=await _0x2e0457['DFHbj'](inputCloudProviderKeys,_0x5a5278);_0x22ba65[_0x21ad00(0x1ec)]={};const _0x51eba1={};_0x51eba1['accessKey']=_0x4107c9,_0x51eba1[_0x21ad00(0x219)]=_0x10d5f1,_0x22ba65[_0x21ad00(0x1ec)][_0x5a5278]=_0x51eba1,fs[_0x21ad00(0x250)](_0x2e0457['rYBmt'](getCredentialsPath),JSON[_0x21ad00(0x278)](_0x22ba65)),logger['debug'](_0x2e0457['YvsCr']),global_registry[_0x21ad00(0x26c)]=_0x4107c9,global_registry[_0x21ad00(0x24a)]=_0x10d5f1;}else{const _0x4746f9={};_0x4746f9[_0x21ad00(0x211)]=_0x2e0457['awfEd'],_0x4746f9['type']=_0x2e0457[_0x21ad00(0x1f3)];const _0x6d9985={};return _0x6d9985[_0x21ad00(0x245)]=_0x4746f9,_0x58d53b['usage'](_0x432f47[_0x21ad00(0x1e7)])[_0x21ad00(0x213)](_0x4c32bf)[_0x21ad00(0x277)](_0x6d9985)['help'](_0x2e0457[_0x21ad00(0x1e5)])['argv'];}}else _0x2e0457[_0x21ad00(0x247)](_0x2e0457[_0x21ad00(0x26d)],_0x2e0457[_0x21ad00(0x26d)])?(logger[_0x21ad00(0x225)](_0x2e0457[_0x21ad00(0x1fb)]),global_registry[_0x21ad00(0x26c)]=_0x35a002[_0x5a5278]['accessKey'],global_registry[_0x21ad00(0x24a)]=_0x35a002[_0x5a5278][_0x21ad00(0x219)]):(_0xb0b7fe[_0x21ad00(0x225)](_0x21ad00(0x24e)),_0x44d4dd['exit'](0x0));_0x2e0457[_0x21ad00(0x1ea)](configureAWSIfNotConfigured);const _0xc33fe5=_0x2e0457['clYiA'](kebabCase,_0x26be8f[_0x21ad00(0x20c)]),_0x1f9972=await _0x2e0457[_0x21ad00(0x255)](getClusterInfo,_0x26be8f[_0x21ad00(0x1e9)]),[_0x15236f,_0x75dec,_0x43eaff,_0x3dc563,_0x23850c]=await _0x2e0457[_0x21ad00(0x246)](createK8sClient,_0x1f9972[_0x21ad00(0x243)][_0x21ad00(0x20c)],_0x1f9972['cluster']['endpoint'],_0x1f9972[_0x21ad00(0x243)][_0x21ad00(0x229)][_0x21ad00(0x201)],_0x26be8f[_0x21ad00(0x1fc)]);await _0x2e0457[_0x21ad00(0x1fa)](removeGridComponents,_0x15236f,_0x75dec,_0x43eaff,_0x3dc563,_0xc33fe5);let _0xfa73c8;_0x1f9972[_0x21ad00(0x243)]&&(_0x2e0457[_0x21ad00(0x22e)](_0x2e0457[_0x21ad00(0x204)],_0x2e0457[_0x21ad00(0x204)])?_0xfa73c8=_0x1f9972[_0x21ad00(0x243)][_0x21ad00(0x271)]:_0x536693[_0x21ad00(0x253)]('Cluster:\x20'+_0x36f912['clusterName']+_0x21ad00(0x263)));_0x5b991c[_0x21ad00(0x275)]&&(_0xfa73c8&&_0x2e0457[_0x21ad00(0x1ed)](_0xfa73c8[_0x2e0457[_0x21ad00(0x24b)]],_0x2e0457[_0x21ad00(0x21a)])?await _0x2e0457[_0x21ad00(0x255)](deleteClusterAndDependencies,_0x26be8f[_0x21ad00(0x1fc)]):logger[_0x21ad00(0x253)](_0x21ad00(0x238)+_0x26be8f[_0x21ad00(0x1e9)]+_0x21ad00(0x263)));const _0x1d53d7=_0x21ad00(0x27a)+AG_API_URL+_0x21ad00(0x26a)+_0x4a64c2[_0x21ad00(0x249)],_0x530298={};_0x530298[_0x21ad00(0x1e8)]=_0x22ba65[_0x21ad00(0x209)]['username'],_0x530298[_0x21ad00(0x21c)]=_0x22ba65[_0x21ad00(0x209)]['password'];const _0x246a32={};_0x246a32[_0x21ad00(0x1f6)]=_0x1d53d7,_0x246a32[_0x21ad00(0x226)]=_0x2e0457[_0x21ad00(0x24c)],_0x246a32[_0x21ad00(0x251)]=_0x530298;const _0x38232f=_0x246a32,_0x261966=await _0x2e0457[_0x21ad00(0x241)](promisifiedRequest,_0x38232f);_0x2e0457['qeoiR'](_0x261966,null)&&_0x2e0457['jghPP'](_0x261966,undefined)&&_0x2e0457[_0x21ad00(0x214)](_0x261966[_0x21ad00(0x21b)],0xc8)&&(logger[_0x21ad00(0x225)]('Succesfully\x20deleted\x20the\x20grid'),process[_0x21ad00(0x20f)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x21ad00(0x278)](_0x261966)),await _0x2e0457[_0x21ad00(0x261)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes['ERROR'],_0x2e0457[_0x21ad00(0x260)],res,_0x4a64c2),process['exit'](0x1);}_0x2e0457[_0x21ad00(0x23b)](res['statusCode'],0x191)&&(logger[_0x21ad00(0x1e6)](_0x21ad00(0x274)),await _0x2e0457[_0x21ad00(0x1f8)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x1de)],null,_0x4a64c2),process['exit'](0x1)),_0x2e0457[_0x21ad00(0x222)](res[_0x21ad00(0x21b)],0x190)&&(logger['error'](JSON[_0x21ad00(0x276)](res[_0x21ad00(0x26f)])[_0x21ad00(0x23a)]),await _0x2e0457[_0x21ad00(0x1f8)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x23c)],null,_0x4a64c2),process[_0x21ad00(0x20f)](0x1)),logger[_0x21ad00(0x1e6)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](res)),await _0x2e0457[_0x21ad00(0x257)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes['ERROR'],_0x2e0457[_0x21ad00(0x260)],res,_0x4a64c2),process[_0x21ad00(0x20f)](0x1);}catch(_0x1817e5){logger[_0x21ad00(0x1e6)](_0x21ad00(0x259)+_0x1817e5[_0x21ad00(0x22a)]),await _0x2e0457[_0x21ad00(0x25f)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x254)],_0x1817e5,_0x4a64c2),process[_0x21ad00(0x20f)](0x1);}};function a6_0x5cf8(){const _0x23120c=['cloudProviderAccessKey','utDVQ','BrowserStack','body','server-error','tags','6149472pClKon','LAbCr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','onlyGridInCluster','parse','options','stringify','clusterSpawnedVia','https://','clusterId','sBUgE','request','unauthorised','uJUVc','../../utils/utilityMethods','../../utils/userInput','EWiVl','HSEgZ','error','delete','username','clusterName','eeGWN','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','cloudProvider','PjiQY','invalid-grid-id','NNosI','requestId','../../utils/createk8sClient','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gDlyj','oMkIU','QCMGR','url','HPHff','vVsIV','7TiLZOW','goWLn','sjYPl','region','\x22\x20and\x20ID\x20','existsSync','pgKdN','sxxpc','data','DAoqC','BYrvU','mXHbp','../../utils/gridComponents','accessKey','USlGr','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Browserstack','toLowerCase','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','help','tGLJb','exit','xRycZ','description','util','epilogue','eGNWt','../../config/logger','llToS','pQPVv','9fvqLFd','secret','UKeoA','statusCode','password','veFhE','2702130mKuGMe','promisify','ztKYM','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','MoulF','xgTNS','TxgqS','info','method','../../config/constants','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','certificateAuthority','stack','type','usage','ZqdUv','pWyrF','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','init-not-called','JnjjI','2885166kxHIZM','ERROR','clusterRegion','sIjxn','Pass\x20the\x20ID\x20of\x20the\x20Grid','TmScW','Cluster:\x20','rxFzZ','message','RxdWr','FrMGq','ISgiU','114123quuOEQ','4068235aPVaVQ','handler','clYiA','fjNsN','cluster','gouUy','grid-id','PhNmF','ljOWd','INFO','gridId','cloudProviderSecretKey','LoBFa','fiLRX','vbcRV','Succesfully\x20deleted\x20the\x20grid','aDQNf','writeFileSync','auth','BehLK','warn','MowWn','DFHbj','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','UwuNy','invalid-input','Failed\x20to\x20delete\x20resources!\x20Error:\x20','uuid','string','4907988ByMhEp','rsvMq','DfFyv','UfwDa','oJKzw','GOHJA','TQEqD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','17393912FeRJzU','yYgJU','argv','delete-grid-called','readFileSync','IpLig','/packages/cli/grid/','RIntt'];a6_0x5cf8=function(){return _0x23120c;};return a6_0x5cf8();}
1
+ const a6_0x1059f0=a6_0x5e20;(function(_0x12dbcf,_0x269ca1){const _0x42b6b6=a6_0x5e20,_0x2927b3=_0x12dbcf();while(!![]){try{const _0xf9e06c=-parseInt(_0x42b6b6(0xa5))/0x1+-parseInt(_0x42b6b6(0x106))/0x2*(parseInt(_0x42b6b6(0xa4))/0x3)+-parseInt(_0x42b6b6(0xe4))/0x4+-parseInt(_0x42b6b6(0xfd))/0x5*(parseInt(_0x42b6b6(0xaf))/0x6)+-parseInt(_0x42b6b6(0xeb))/0x7+parseInt(_0x42b6b6(0xee))/0x8+parseInt(_0x42b6b6(0xc9))/0x9;if(_0xf9e06c===_0x269ca1)break;else _0x2927b3['push'](_0x2927b3['shift']());}catch(_0x2a80de){_0x2927b3['push'](_0x2927b3['shift']());}}}(a6_0x4679,0x7286b));const fs=require('fs'),util=require('util'),request=require(a6_0x1059f0(0x130)),{v4:uuidv4}=require(a6_0x1059f0(0x133)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x1059f0(0xad)),{logger}=require(a6_0x1059f0(0xc3)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0x1059f0(0xae)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a6_0x1059f0(0xfb)),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x1059f0(0xdb)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x1059f0(0xb7)),promisifiedRequest=util[a6_0x1059f0(0xec)](request);function a6_0x4679(){const _0x4efee6=['region','statusCode','ArDKi','argv','FHNKD','clusterId','method','usage','lQJan','Pass\x20the\x20ID\x20of\x20the\x20Grid','exit','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','xKkYv','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','SBFMU','password','readFileSync','options','Browserstack','MMBTe','zYeqj','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','endpoint','qtGJA','DELETE','name','epilogue','RMVPW','yHvEv','nTawt','kXDdS','oKqZl','writeFileSync','axAmH','tHVqo','cloudProviderSecretKey','xLwea','pifEA','request','builder','grid','uuid','onlyGridInCluster','MBXjF','qEgTL','6FJEAaq','446359BqYnfj','BrowserStack','Delete\x20an\x20Automation\x20grid.','snPAg','auth','server-error','\x22\x20and\x20ID\x20','zJeDE','../../config/constants','../../utils/AWSUtils','18fZiqvw','\x22\x20with\x20ID\x20','existsSync','info','ERROR','parse','SosTC','toLowerCase','../../utils/utilityMethods','type','debug','Ldnaq','delete','XJzAY','https://','YTukQ','mkrvD','Cluster:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','yJAjR','../../config/logger','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','message','jdrAi','string','invalid-grid-id','25829082RCEHuC','bIkTp','stringify','ShqGb','yqJHC','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterSpawnedVia','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','description','tags','help','VYalO','browserstack:managedBy','unauthorised','grOeD','dZzkj','warn','../../utils/userInput','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','WkgIx','cloudProvider','command','OYGMG','username','YQEOK','rCzvF','2618348gGFWPU','error','grid-id','eZfdH','gEgaE','cloudProviderAccessKey','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','4102000FSVmZD','promisify','amscj','2591920BuEngk','gkpIp','JzSML','NfpVe','YvKHc','unknown-error','Wjhkh','invalid-input','url','SNCjr','rTFem','TGZfl','accessKey','../../utils/instrumentationUtils','stack','600635IToBYs','ikBfa','cluster','HnFnY','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GAPrx','zFjmf','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterName','677462CZNsFC','fnJAc','secret','glkZZ'];a6_0x4679=function(){return _0x4efee6;};return a6_0x4679();}function a6_0x5e20(_0x26cd86,_0x64f640){const _0x4679ec=a6_0x4679();return a6_0x5e20=function(_0x5e2069,_0x3ceb32){_0x5e2069=_0x5e2069-0xa3;let _0x208647=_0x4679ec[_0x5e2069];return _0x208647;},a6_0x5e20(_0x26cd86,_0x64f640);}exports[a6_0x1059f0(0xdf)]=a6_0x1059f0(0x132),exports['desc']=a6_0x1059f0(0xa7),exports[a6_0x1059f0(0x131)]=function(_0x49ab8f){const _0x2047c3=a6_0x1059f0,_0x39403c={};_0x39403c['xBYCF']=_0x2047c3(0x113),_0x39403c[_0x2047c3(0xac)]=_0x2047c3(0xc7),_0x39403c[_0x2047c3(0x11e)]=_0x2047c3(0xd4);const _0x5dee80=_0x39403c,_0x191299={};_0x191299[_0x2047c3(0xd2)]=_0x5dee80['xBYCF'],_0x191299[_0x2047c3(0xb8)]=_0x5dee80[_0x2047c3(0xac)];const _0x1eead8={};return _0x1eead8[_0x2047c3(0xe6)]=_0x191299,_0x49ab8f[_0x2047c3(0x111)](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2047c3(0x11b)](_0x1eead8)[_0x2047c3(0xd4)](_0x5dee80[_0x2047c3(0x11e)])[_0x2047c3(0x10d)];},exports['handler']=async function(_0x1dc3ac){const _0x3cab2c=a6_0x1059f0,_0x48a37b={'YQEOK':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','lQJan':_0x3cab2c(0xc4),'tHVqo':_0x3cab2c(0x113),'FuoIw':_0x3cab2c(0xc7),'xLwea':_0x3cab2c(0xd4),'axAmH':function(_0x275d83){return _0x275d83();},'mkrvD':function(_0x27861d){return _0x27861d();},'dZzkj':function(_0x4894ad,_0x1d14cc){return _0x4894ad===_0x1d14cc;},'GmdyL':'lVFSm','SosTC':_0x3cab2c(0x127),'qEgTL':_0x3cab2c(0x101),'xKkYv':function(_0x16853c,_0x21223a,_0x5c8edd,_0x59be1a,_0x497226,_0x316395,_0x1f8558){return _0x16853c(_0x21223a,_0x5c8edd,_0x59be1a,_0x497226,_0x316395,_0x1f8558);},'HnFnY':'delete-grid-called','JzSML':'init-not-called','rTFem':_0x3cab2c(0xf2),'YTkca':function(_0x2d7876,_0x2c183c,_0x1c68ca,_0x4f72ba){return _0x2d7876(_0x2c183c,_0x1c68ca,_0x4f72ba);},'Ldnaq':function(_0x158bc6,_0x130f00){return _0x158bc6===_0x130f00;},'WkgIx':'Browserstack','oKqZl':function(_0x4e71c9,_0x45605f){return _0x4e71c9!==_0x45605f;},'MMBTe':_0x3cab2c(0xf7),'Wjhkh':'Fkjqg','jdrAi':function(_0x142b7e,_0x130378){return _0x142b7e(_0x130378);},'zFjmf':function(_0x208646,_0x2fd7ef){return _0x208646===_0x2fd7ef;},'endIT':'NPMog','ikBfa':_0x3cab2c(0x115),'yJAjR':function(_0x4df1fc,_0x47972e,_0x3a3855,_0x5c1600,_0x1f3f6d,_0x47f1ea,_0x38999a){return _0x4df1fc(_0x47972e,_0x3a3855,_0x5c1600,_0x1f3f6d,_0x47f1ea,_0x38999a);},'TGZfl':_0x3cab2c(0xf5),'yHvEv':_0x3cab2c(0x109),'VYalO':_0x3cab2c(0xcd),'SBFMU':function(_0x43d082,_0x12e56d){return _0x43d082===_0x12e56d;},'XJzAY':function(_0x5acdcc,_0x37a10d){return _0x5acdcc===_0x37a10d;},'rCzvF':_0x3cab2c(0xcc),'bIkTp':_0x3cab2c(0xd1),'VybPD':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','OYGMG':function(_0x5d72de,_0x3f31d0){return _0x5d72de!==_0x3f31d0;},'kXDdS':_0x3cab2c(0xe7),'pifEA':function(_0x529dfb,_0x10891d,_0x156b9f,_0x541aa7,_0x3e3794){return _0x529dfb(_0x10891d,_0x156b9f,_0x541aa7,_0x3e3794);},'RMVPW':function(_0x4c0941,_0x2f6e64,_0x5d3882,_0x1336bd,_0xde0985,_0x5eea5f){return _0x4c0941(_0x2f6e64,_0x5d3882,_0x1336bd,_0xde0985,_0x5eea5f);},'snPAg':function(_0x264776,_0x284d6e){return _0x264776!==_0x284d6e;},'gkpIp':_0x3cab2c(0x121),'NfpVe':_0x3cab2c(0xd6),'grOeD':_0x3cab2c(0xa6),'gEgaE':function(_0xadc1e9,_0x5d4dd5){return _0xadc1e9(_0x5d4dd5);},'ArDKi':_0x3cab2c(0x122),'YTukQ':_0x3cab2c(0xaa),'PVJla':function(_0x384e30,_0x512236){return _0x384e30===_0x512236;},'amscj':_0x3cab2c(0xd7),'GAPrx':function(_0x46e96a,_0x3d9900){return _0x46e96a===_0x3d9900;},'MBXjF':_0x3cab2c(0xc8),'fnJAc':function(_0x46f1af,_0x216783,_0x2bd766,_0x5551d7,_0x2aeeab,_0x22851e,_0x177d2e){return _0x46f1af(_0x216783,_0x2bd766,_0x5551d7,_0x2aeeab,_0x22851e,_0x177d2e);},'FHNKD':function(_0x145e86,_0x1dfa8c,_0x1e692d,_0x259a5a,_0x3001d2,_0x250020,_0x4ca77e){return _0x145e86(_0x1dfa8c,_0x1e692d,_0x259a5a,_0x3001d2,_0x250020,_0x4ca77e);},'soKet':_0x3cab2c(0xf3)};try{global_registry['requestId']=_0x48a37b['axAmH'](uuidv4);!fs[_0x3cab2c(0xb1)](_0x48a37b[_0x3cab2c(0xbf)](getCredentialsPath))&&(_0x48a37b[_0x3cab2c(0xd9)](_0x48a37b['GmdyL'],_0x48a37b[_0x3cab2c(0xb5)])?_0x41132b[_0x3cab2c(0x114)](0x0):(console['error'](_0x48a37b[_0x3cab2c(0xa3)]),await _0x48a37b[_0x3cab2c(0x116)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes[_0x3cab2c(0xb3)],_0x48a37b[_0x3cab2c(0xf0)],null,_0x1dc3ac),process[_0x3cab2c(0x114)](0x1)));_0x48a37b['xKkYv'](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes['INFO'],null,null,_0x1dc3ac);!_0x1dc3ac[_0x3cab2c(0xce)]&&(_0x48a37b['dZzkj'](_0x48a37b[_0x3cab2c(0xf8)],_0x48a37b['rTFem'])?(console['error'](_0x48a37b['YQEOK']),process['exit'](0x1)):(_0x4fea01[_0x3cab2c(0xe5)](_0x48a37b[_0x3cab2c(0xe2)]),_0x5ef01c[_0x3cab2c(0x114)](0x1)));const _0x44ec10=JSON['parse'](fs[_0x3cab2c(0x11a)](_0x48a37b[_0x3cab2c(0x12b)](getCredentialsPath))),_0x5b53de=await _0x48a37b['YTkca'](getGridDetails,_0x44ec10['Browserstack'][_0x3cab2c(0xe1)],_0x44ec10[_0x3cab2c(0x11c)]['password'],_0x1dc3ac[_0x3cab2c(0xce)]);if(_0x5b53de){const _0x1fbb57=_0x5b53de[_0x3cab2c(0xb2)];let _0x4cf746=_0x3cab2c(0x11f)+_0x1fbb57[_0x3cab2c(0x123)]+_0x3cab2c(0xab)+_0x1fbb57['id']+_0x3cab2c(0xea),_0x5a1fd5;_0x5b53de[_0x3cab2c(0x134)]&&_0x48a37b[_0x3cab2c(0xba)](_0x5b53de[_0x3cab2c(0xd0)],_0x48a37b[_0x3cab2c(0xdd)])&&(_0x48a37b['oKqZl'](_0x48a37b[_0x3cab2c(0x11d)],_0x48a37b[_0x3cab2c(0xf4)])?_0x4cf746=_0x3cab2c(0x11f)+_0x1fbb57[_0x3cab2c(0x123)]+_0x3cab2c(0xab)+_0x1fbb57['id']+_0x3cab2c(0xdc)+_0x1fbb57[_0x3cab2c(0x105)]+'\x22\x20with\x20ID\x20'+_0x1fbb57[_0x3cab2c(0x10f)]+_0x3cab2c(0xea):(_0x237a7f[_0x3cab2c(0xb2)]('Succesfully\x20deleted\x20the\x20grid'),_0x33ad08[_0x3cab2c(0x114)](0x0)));_0x5a1fd5=await _0x48a37b['jdrAi'](inputConfirmation,_0x4cf746);(_0x48a37b[_0x3cab2c(0xba)](_0x5a1fd5,undefined)||_0x48a37b[_0x3cab2c(0xba)](_0x5a1fd5,null)||!(_0x48a37b[_0x3cab2c(0xba)](_0x5a1fd5[_0x3cab2c(0xb6)](),'y')||_0x48a37b[_0x3cab2c(0x103)](_0x5a1fd5[_0x3cab2c(0xb6)](),'n')))&&(_0x48a37b[_0x3cab2c(0xd9)](_0x48a37b['endIT'],_0x48a37b['endIT'])?(console['error'](_0x48a37b[_0x3cab2c(0xfe)]),await _0x48a37b[_0x3cab2c(0xc2)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes['ERROR'],_0x48a37b[_0x3cab2c(0xf9)],null,_0x1dc3ac),process[_0x3cab2c(0x114)](0x1)):_0x14a73c['warn'](_0x3cab2c(0xc0)+_0x4d2e00[_0x3cab2c(0x105)]+_0x3cab2c(0x117)));_0x48a37b[_0x3cab2c(0xba)](_0x5a1fd5[_0x3cab2c(0xb6)](),'n')&&(_0x48a37b[_0x3cab2c(0x129)](_0x48a37b[_0x3cab2c(0x126)],_0x48a37b[_0x3cab2c(0xd5)])?process[_0x3cab2c(0x114)](0x0):(_0x9d96e5['info'](_0x48a37b[_0x3cab2c(0x112)]),_0x3675a0['cloudProviderAccessKey']=_0x33420c[_0x159d59]['accessKey'],_0x3b7664[_0x3cab2c(0x12d)]=_0xa5d0b6[_0x1affa3]['secret']));_0x48a37b['mkrvD'](closeInput),global_registry['clusterRegion']=_0x1fbb57[_0x3cab2c(0x10a)];const _0x1d11df=_0x1fbb57[_0x3cab2c(0xde)],_0x4fc054=_0x44ec10[_0x3cab2c(0xde)]||{};if(_0x48a37b[_0x3cab2c(0x118)](_0x4fc054[_0x1d11df],undefined)){if(_0x48a37b[_0x3cab2c(0xbc)](_0x48a37b[_0x3cab2c(0xe3)],_0x48a37b[_0x3cab2c(0xe3)])){logger[_0x3cab2c(0xb2)](_0x48a37b[_0x3cab2c(0xca)]);const [_0x43bf9a,_0x456681]=await _0x48a37b[_0x3cab2c(0xc6)](inputCloudProviderKeys,_0x1d11df);_0x44ec10['cloudProvider']={};const _0x435b7b={};_0x435b7b[_0x3cab2c(0xfa)]=_0x43bf9a,_0x435b7b[_0x3cab2c(0x108)]=_0x456681,_0x44ec10[_0x3cab2c(0xde)][_0x1d11df]=_0x435b7b,fs[_0x3cab2c(0x12a)](_0x48a37b[_0x3cab2c(0x12b)](getCredentialsPath),JSON['stringify'](_0x44ec10)),logger[_0x3cab2c(0xb9)](_0x48a37b['VybPD']),global_registry['cloudProviderAccessKey']=_0x43bf9a,global_registry[_0x3cab2c(0x12d)]=_0x456681;}else{const _0x57ea15={};_0x57ea15['description']=_0x48a37b[_0x3cab2c(0x12c)],_0x57ea15[_0x3cab2c(0xb8)]=_0x48a37b['FuoIw'];const _0x338c8e={};return _0x338c8e[_0x3cab2c(0xe6)]=_0x57ea15,_0x1277de['usage'](_0x408ab3[_0x3cab2c(0xbb)])[_0x3cab2c(0x124)](_0x18c318)[_0x3cab2c(0x11b)](_0x338c8e)['help'](_0x48a37b[_0x3cab2c(0x12e)])[_0x3cab2c(0x10d)];}}else _0x48a37b[_0x3cab2c(0xe0)](_0x48a37b['kXDdS'],_0x48a37b[_0x3cab2c(0x128)])?_0x15ce87=_0x3cab2c(0x11f)+_0x3627c8['name']+_0x3cab2c(0xab)+_0x3ee6b7['id']+_0x3cab2c(0xdc)+_0x5673ee['clusterName']+_0x3cab2c(0xb0)+_0x3a6cb4[_0x3cab2c(0x10f)]+_0x3cab2c(0xea):(logger['info'](_0x48a37b[_0x3cab2c(0x112)]),global_registry[_0x3cab2c(0xe9)]=_0x4fc054[_0x1d11df]['accessKey'],global_registry[_0x3cab2c(0x12d)]=_0x4fc054[_0x1d11df][_0x3cab2c(0x108)]);_0x48a37b[_0x3cab2c(0xbf)](configureAWSIfNotConfigured);const _0x170b8f=_0x48a37b['jdrAi'](kebabCase,_0x1fbb57['name']),_0x2275a9=await _0x48a37b[_0x3cab2c(0xc6)](getClusterInfo,_0x1fbb57[_0x3cab2c(0x105)]),[_0x111bd0,_0x570c38,_0x3e5c8c,_0x2a64c7,_0x3f7943]=await _0x48a37b[_0x3cab2c(0x12f)](createK8sClient,_0x2275a9['cluster'][_0x3cab2c(0x123)],_0x2275a9[_0x3cab2c(0xff)][_0x3cab2c(0x120)],_0x2275a9[_0x3cab2c(0xff)]['certificateAuthority']['data'],_0x1fbb57[_0x3cab2c(0x10a)]);await _0x48a37b[_0x3cab2c(0x125)](removeGridComponents,_0x111bd0,_0x570c38,_0x3e5c8c,_0x2a64c7,_0x170b8f);let _0x38e82e;_0x2275a9['cluster']&&(_0x48a37b[_0x3cab2c(0xa8)](_0x48a37b[_0x3cab2c(0xef)],_0x48a37b[_0x3cab2c(0xef)])?_0x340df5=_0x10d124['cluster']['tags']:_0x38e82e=_0x2275a9[_0x3cab2c(0xff)][_0x3cab2c(0xd3)]);_0x5b53de[_0x3cab2c(0x134)]&&(_0x38e82e&&_0x48a37b[_0x3cab2c(0xd9)](_0x38e82e[_0x48a37b[_0x3cab2c(0xf1)]],_0x48a37b[_0x3cab2c(0xd8)])?await _0x48a37b[_0x3cab2c(0xe8)](deleteClusterAndDependencies,_0x1fbb57[_0x3cab2c(0x10a)]):logger[_0x3cab2c(0xda)]('Cluster:\x20'+_0x1fbb57['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x1a46c1=_0x3cab2c(0xbd)+AG_API_URL+'/packages/cli/grid/'+_0x1dc3ac[_0x3cab2c(0xce)],_0x3998c2={};_0x3998c2[_0x3cab2c(0xe1)]=_0x44ec10[_0x3cab2c(0x11c)][_0x3cab2c(0xe1)],_0x3998c2[_0x3cab2c(0x119)]=_0x44ec10[_0x3cab2c(0x11c)][_0x3cab2c(0x119)];const _0x58287e={};_0x58287e[_0x3cab2c(0xf6)]=_0x1a46c1,_0x58287e[_0x3cab2c(0x110)]=_0x48a37b[_0x3cab2c(0x10c)],_0x58287e[_0x3cab2c(0xa9)]=_0x3998c2;const _0x2b0274=_0x58287e,_0x1bcdf9=await _0x48a37b['gEgaE'](promisifiedRequest,_0x2b0274);_0x48a37b[_0x3cab2c(0x129)](_0x1bcdf9,null)&&_0x48a37b[_0x3cab2c(0xe0)](_0x1bcdf9,undefined)&&_0x48a37b[_0x3cab2c(0xd9)](_0x1bcdf9['statusCode'],0xc8)&&(logger['info']('Succesfully\x20deleted\x20the\x20grid'),process[_0x3cab2c(0x114)](0x0)),logger[_0x3cab2c(0xe5)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x3cab2c(0xcb)](_0x1bcdf9)),await _0x48a37b[_0x3cab2c(0x116)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes[_0x3cab2c(0xb3)],_0x48a37b[_0x3cab2c(0xbe)],res,_0x1dc3ac),process[_0x3cab2c(0x114)](0x1);}_0x48a37b['PVJla'](res[_0x3cab2c(0x10b)],0x191)&&(logger[_0x3cab2c(0xe5)](_0x3cab2c(0xcf)),await _0x48a37b[_0x3cab2c(0x116)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes[_0x3cab2c(0xb3)],_0x48a37b[_0x3cab2c(0xed)],null,_0x1dc3ac),process['exit'](0x1)),_0x48a37b[_0x3cab2c(0x102)](res[_0x3cab2c(0x10b)],0x190)&&(logger[_0x3cab2c(0xe5)](JSON[_0x3cab2c(0xb4)](res['body'])[_0x3cab2c(0xc5)]),await _0x48a37b[_0x3cab2c(0xc2)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes[_0x3cab2c(0xb3)],_0x48a37b[_0x3cab2c(0x135)],null,_0x1dc3ac),process['exit'](0x1)),logger['error'](_0x3cab2c(0xc1)+JSON['stringify'](res)),await _0x48a37b[_0x3cab2c(0x107)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b['HnFnY'],messageTypes[_0x3cab2c(0xb3)],_0x48a37b[_0x3cab2c(0xbe)],res,_0x1dc3ac),process[_0x3cab2c(0x114)](0x1);}catch(_0x5470f0){logger[_0x3cab2c(0xe5)](_0x3cab2c(0x104)+_0x5470f0[_0x3cab2c(0xfc)]),await _0x48a37b[_0x3cab2c(0x10e)](sendInstrumentationEvent,_0x1dc3ac,_0x48a37b[_0x3cab2c(0x100)],messageTypes[_0x3cab2c(0xb3)],_0x48a37b['soKet'],_0x5470f0,_0x1dc3ac),process[_0x3cab2c(0x114)](0x1);}};
@@ -1 +1 @@
1
- const a7_0x4eedca=a7_0x626a;(function(_0x47f2eb,_0x321670){const _0x2992fa=a7_0x626a,_0x475c90=_0x47f2eb();while(!![]){try{const _0x3b32b4=-parseInt(_0x2992fa(0xbc))/0x1*(parseInt(_0x2992fa(0xd8))/0x2)+parseInt(_0x2992fa(0x108))/0x3+parseInt(_0x2992fa(0xef))/0x4*(-parseInt(_0x2992fa(0xf2))/0x5)+-parseInt(_0x2992fa(0xb9))/0x6*(-parseInt(_0x2992fa(0x107))/0x7)+parseInt(_0x2992fa(0xfe))/0x8+parseInt(_0x2992fa(0xe1))/0x9*(parseInt(_0x2992fa(0xf7))/0xa)+-parseInt(_0x2992fa(0xdf))/0xb*(parseInt(_0x2992fa(0xc4))/0xc);if(_0x3b32b4===_0x321670)break;else _0x475c90['push'](_0x475c90['shift']());}catch(_0x90ee65){_0x475c90['push'](_0x475c90['shift']());}}}(a7_0x3122,0x62455));function a7_0x626a(_0x9f3064,_0x28ddc9){const _0x3122e7=a7_0x3122();return a7_0x626a=function(_0x626af3,_0x463603){_0x626af3=_0x626af3-0xad;let _0x1b29d8=_0x3122e7[_0x626af3];return _0x1b29d8;},a7_0x626a(_0x9f3064,_0x28ddc9);}function a7_0x3122(){const _0x1eb09e=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','wrong-creds','kDqgS','BROWSERSTACK_USERNAME','wwnxZ','existsSync','epilogue','stack','eoDMR','tesUw','bstack-username','help','parse','command','usage','VvVQw','debug','oxHcG','GVVRM','env','136866OfowWb','https://','XkfZn','61xzHhPC','ksscQ','MkTgJ','handler','GHLGI','bstackAccesskey','promisify','InNRd','89688stpLfo','Plxgn','bstack-accesskey','../utils/utilityMethods','CbzJR','GZopd','tdEMo','hVOkA','rwDIl','readFileSync','type','HHABU','password','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ElpJS','Browserstack','utf-8','CvfiO','QuDMc','ixxmx','13990IYeJfZ','AoLBg','string','requestId','bstackUsername','uuid','GET','869wocjsI','recommendCommands','9taGqdK','UDQyK','desc','lUrXX','writeFileSync','../utils/instrumentationUtils','MkZBk','GMVvm','mkdirSync','username','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','dgdQp','strict','mRcDj','24AwfRun','ujqkx','FGpPQ','662705EWOkxw','rmabY','BROWSERSTACK_ACCESS_KEY','INFO','qQsnf','144070plHXZm','util','init','vOHnJ','PUamZ','oOYMl','yrdDS','5563648hgIDMv','nucHM','ORCHP','options','dYLpn','unknown-error','description','../config/logger','url','245QCBpFG','2119968KrYGls','exit','stringify','UThKe','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','raFGf','init-called'];a7_0x3122=function(){return _0x1eb09e;};return a7_0x3122();}const fs=require('fs'),util=require(a7_0x4eedca(0xf8)),request=require('request'),{v4:uuidv4}=require(a7_0x4eedca(0xdd)),{logger}=require(a7_0x4eedca(0x105)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require(a7_0x4eedca(0xc7)),{sendInstrumentationEvent}=require(a7_0x4eedca(0xe6)),promisifiedRequest=util[a7_0x4eedca(0xc2)](request);exports[a7_0x4eedca(0xb2)]=a7_0x4eedca(0xf9),exports[a7_0x4eedca(0xe3)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x2b88e9){const _0x3bf502=a7_0x4eedca,_0x4e1d37={};_0x4e1d37[_0x3bf502(0xb7)]=_0x3bf502(0xd1),_0x4e1d37[_0x3bf502(0xe2)]=_0x3bf502(0xda),_0x4e1d37[_0x3bf502(0xf3)]=_0x3bf502(0x10c),_0x4e1d37[_0x3bf502(0xc3)]='help';const _0x2f0091=_0x4e1d37,_0x4a86da={};_0x4a86da[_0x3bf502(0x104)]=_0x2f0091['GVVRM'],_0x4a86da['type']=_0x2f0091['UDQyK'];const _0x52e74a={};_0x52e74a[_0x3bf502(0x104)]=_0x2f0091[_0x3bf502(0xf3)],_0x52e74a[_0x3bf502(0xce)]=_0x2f0091[_0x3bf502(0xe2)];const _0x135ed9={};return _0x135ed9[_0x3bf502(0xaf)]=_0x4a86da,_0x135ed9[_0x3bf502(0xc6)]=_0x52e74a,_0x2b88e9[_0x3bf502(0xb3)](HELP_HEADER_MESSAGE[_0x3bf502(0xf9)])[_0x3bf502(0x115)](HELP_FOOTER_MESSAGE)[_0x3bf502(0x101)](_0x135ed9)['recommendCommands']()[_0x3bf502(0xed)]()[_0x3bf502(0xb0)](_0x2f0091[_0x3bf502(0xc3)])['argv'];},exports[a7_0x4eedca(0xbf)]=async function(_0x138680){const _0x44e527=a7_0x4eedca,_0x2252b8={'wwnxZ':_0x44e527(0xd1),'PUamZ':'string','BUEtI':_0x44e527(0x10c),'IpGXP':_0x44e527(0xb0),'AoLBg':function(_0x211649){return _0x211649();},'hVOkA':_0x44e527(0xd4),'UThKe':function(_0x7a61e6,_0xb412a,_0x182370,_0x2e3133,_0x4933b0,_0xb4b377,_0xe74764){return _0x7a61e6(_0xb412a,_0x182370,_0x2e3133,_0x4933b0,_0xb4b377,_0xe74764);},'XkfZn':_0x44e527(0x10e),'nucHM':function(_0x366a48){return _0x366a48();},'dYLpn':function(_0x596aa3,_0xd5309b){return _0x596aa3!==_0xd5309b;},'MkTgJ':'wsvOx','AEaEM':_0x44e527(0xd2),'kDqgS':function(_0x25992e,_0x463ed4){return _0x25992e===_0x463ed4;},'rwDIl':_0x44e527(0xcf),'QuDMc':_0x44e527(0xb6),'FGpPQ':function(_0x1a5210,_0x2a0e3b){return _0x1a5210===_0x2a0e3b;},'raFGf':_0x44e527(0xfc),'ixxmx':'tAiGT','MkZBk':function(_0x47f7a6,_0x11de58){return _0x47f7a6!==_0x11de58;},'ORCHP':'ZARLd','CbzJR':_0x44e527(0xf6),'tesUw':_0x44e527(0xe8),'fUYrI':_0x44e527(0x10f),'tdEMo':function(_0x7ec404){return _0x7ec404();},'vVtTU':_0x44e527(0xde),'JHGPH':function(_0x5a4a92,_0x4407e2){return _0x5a4a92(_0x4407e2);},'eoDMR':function(_0x1f2c59,_0x3f67f6){return _0x1f2c59!==_0x3f67f6;},'ujqkx':function(_0x13e433,_0x489fb9){return _0x13e433===_0x489fb9;},'ksscQ':_0x44e527(0xec),'GHLGI':function(_0x358b20,_0x2d642f){return _0x358b20===_0x2d642f;},'Plxgn':_0x44e527(0xb4),'yrdDS':_0x44e527(0xd5),'GZopd':function(_0x339a6a,_0x698dff){return _0x339a6a!==_0x698dff;},'rQzdj':'KzHnV','mRcDj':'hCJji','gjREq':_0x44e527(0xeb),'vOHnJ':_0x44e527(0x110),'lUrXX':_0x44e527(0x103)};try{global_registry[_0x44e527(0xdb)]=_0x2252b8[_0x44e527(0xd9)](uuidv4),_0x2252b8[_0x44e527(0x10b)](sendInstrumentationEvent,_0x138680,_0x2252b8[_0x44e527(0xbb)],messageTypes[_0x44e527(0xf5)],null,null,_0x138680);const _0xc776e9=_0x2252b8[_0x44e527(0xff)](getDirForConfig);!fs[_0x44e527(0x114)](_0xc776e9)&&(_0x2252b8[_0x44e527(0x102)](_0x2252b8[_0x44e527(0xbe)],_0x2252b8['AEaEM'])?fs[_0x44e527(0xe9)](_0xc776e9):_0x23506a[_0x44e527(0xe9)](_0x4da86c));let _0xf1c49a,_0x374594;if(_0x138680[_0x44e527(0xdc)]){if(_0x2252b8[_0x44e527(0x111)](_0x2252b8[_0x44e527(0xcc)],_0x2252b8[_0x44e527(0xcc)]))_0xf1c49a=_0x138680[_0x44e527(0xdc)];else{const _0x3f097d={};_0x3f097d[_0x44e527(0x104)]=_0x2252b8[_0x44e527(0x113)],_0x3f097d[_0x44e527(0xce)]=_0x2252b8[_0x44e527(0xfb)];const _0x1850f1={};_0x1850f1['description']=_0x2252b8['BUEtI'],_0x1850f1[_0x44e527(0xce)]=_0x2252b8[_0x44e527(0xfb)];const _0x70ed3d={};return _0x70ed3d['bstack-username']=_0x3f097d,_0x70ed3d['bstack-accesskey']=_0x1850f1,_0xbb1de4['usage'](_0x4985f1['init'])[_0x44e527(0x115)](_0x273f93)[_0x44e527(0x101)](_0x70ed3d)[_0x44e527(0xe0)]()['strict']()[_0x44e527(0xb0)](_0x2252b8['IpGXP'])['argv'];}}process[_0x44e527(0xb8)]['BROWSERSTACK_USERNAME']&&(_0x2252b8[_0x44e527(0x102)](_0x2252b8['QuDMc'],_0x2252b8[_0x44e527(0xd6)])?_0x1bf0fa=!![]:_0xf1c49a=process[_0x44e527(0xb8)][_0x44e527(0x112)]);if(_0x138680[_0x44e527(0xc1)]){if(_0x2252b8[_0x44e527(0xf1)](_0x2252b8[_0x44e527(0x10d)],_0x2252b8[_0x44e527(0xd7)])){let _0xd6b454={};const _0x48f2cf=_0x2252b8[_0x44e527(0xd9)](_0x5a2050);_0x2b8a9a['existsSync'](_0x48f2cf)&&(_0xd6b454=_0x545c94['parse'](_0x358652[_0x44e527(0xcd)](_0x48f2cf,_0x2252b8[_0x44e527(0xcb)])));const _0x1683d4={};_0x1683d4[_0x44e527(0xea)]=_0x5e1d70,_0x1683d4['password']=_0x56d870,_0xd6b454[_0x44e527(0xd3)]=_0x1683d4,_0x5bdf3e[_0x44e527(0xe5)](_0x48f2cf,_0x32a835[_0x44e527(0x10a)](_0xd6b454)),_0x3f22f5['exit'](0x0);}else _0x374594=_0x138680[_0x44e527(0xc1)];}process['env'][_0x44e527(0xf4)]&&(_0x2252b8[_0x44e527(0xe7)](_0x2252b8[_0x44e527(0x100)],_0x2252b8[_0x44e527(0xc8)])?_0x374594=process[_0x44e527(0xb8)][_0x44e527(0xf4)]:_0x36cb6e=_0x1f508c[_0x44e527(0xb1)](_0x3309ca['readFileSync'](_0x3863ed,_0x2252b8[_0x44e527(0xcb)])));if(_0x2252b8['kDqgS'](_0xf1c49a,undefined)||_0x2252b8[_0x44e527(0x111)](_0x374594,undefined)){if(_0x2252b8[_0x44e527(0x111)](_0x2252b8[_0x44e527(0xae)],_0x2252b8[_0x44e527(0xae)])){logger[_0x44e527(0xb5)](_0x2252b8['fUYrI']);const [_0x29f3d3,_0x4e9bf2]=await _0x2252b8[_0x44e527(0xca)](inputBstackKeys);_0xf1c49a=_0x29f3d3,_0x374594=_0x4e9bf2;}else _0x5056ae=_0x1b9f95[_0x44e527(0xc1)];}let _0x2e1d4e=![];const _0x2b5f88={};_0x2b5f88[_0x44e527(0x106)]=_0x44e527(0xba)+_0xf1c49a+':'+_0x374594+'@'+BS_API_URL+'/automate/plan.json',_0x2b5f88['method']=_0x2252b8['vVtTU'];const _0x4b3e93=_0x2b5f88,_0x180918=await _0x2252b8['JHGPH'](promisifiedRequest,_0x4b3e93);_0x2252b8[_0x44e527(0xad)](_0x180918,null)&&_0x2252b8[_0x44e527(0x102)](_0x180918,undefined)&&_0x2252b8[_0x44e527(0x111)](_0x180918['statusCode'],0xc8)&&(_0x2252b8[_0x44e527(0xf0)](_0x2252b8[_0x44e527(0xbd)],_0x2252b8[_0x44e527(0xbd)])?_0x2e1d4e=!![]:_0x1c6c20=_0x170006[_0x44e527(0xdc)]);if(_0x2e1d4e){if(_0x2252b8[_0x44e527(0xc0)](_0x2252b8[_0x44e527(0xc5)],_0x2252b8[_0x44e527(0xfd)]))_0x1c9bd1=_0x3fdbfe[_0x44e527(0xb8)][_0x44e527(0xf4)];else{let _0x440ee2={};const _0x7f9c14=_0x2252b8[_0x44e527(0xca)](getCredentialsPath);fs[_0x44e527(0x114)](_0x7f9c14)&&(_0x2252b8[_0x44e527(0xc9)](_0x2252b8['rQzdj'],_0x2252b8[_0x44e527(0xee)])?_0x440ee2=JSON['parse'](fs[_0x44e527(0xcd)](_0x7f9c14,_0x2252b8['hVOkA'])):_0x2fdd8b=_0x2cd002['env'][_0x44e527(0x112)]);const _0x33984d={};_0x33984d[_0x44e527(0xea)]=_0xf1c49a,_0x33984d[_0x44e527(0xd0)]=_0x374594,_0x440ee2[_0x44e527(0xd3)]=_0x33984d,fs[_0x44e527(0xe5)](_0x7f9c14,JSON[_0x44e527(0x10a)](_0x440ee2)),process[_0x44e527(0x109)](0x0);}}else logger['error'](_0x2252b8['gjREq']),await _0x2252b8['UThKe'](sendInstrumentationEvent,_0x138680,_0x2252b8[_0x44e527(0xbb)],messageTypes['ERROR'],_0x2252b8[_0x44e527(0xfa)],null,_0x138680),process[_0x44e527(0x109)](0x1);}catch(_0x53e583){logger['error'](_0x53e583[_0x44e527(0x116)]),await _0x2252b8[_0x44e527(0x10b)](sendInstrumentationEvent,_0x138680,_0x2252b8[_0x44e527(0xbb)],messageTypes['ERROR'],_0x2252b8[_0x44e527(0xe4)],_0x53e583,_0x138680),process[_0x44e527(0x109)](0x1);}};
1
+ const a7_0x51bafb=a7_0x5054;function a7_0x5054(_0x3a99e5,_0x579715){const _0x186596=a7_0x1865();return a7_0x5054=function(_0x5054a1,_0x39da09){_0x5054a1=_0x5054a1-0x162;let _0x523346=_0x186596[_0x5054a1];return _0x523346;},a7_0x5054(_0x3a99e5,_0x579715);}(function(_0x49842a,_0x5ef509){const _0xf024f6=a7_0x5054,_0x40b875=_0x49842a();while(!![]){try{const _0x5e99c5=parseInt(_0xf024f6(0x1c2))/0x1*(-parseInt(_0xf024f6(0x168))/0x2)+parseInt(_0xf024f6(0x19f))/0x3+-parseInt(_0xf024f6(0x1b6))/0x4+-parseInt(_0xf024f6(0x192))/0x5+-parseInt(_0xf024f6(0x195))/0x6+-parseInt(_0xf024f6(0x1a8))/0x7*(-parseInt(_0xf024f6(0x1a2))/0x8)+parseInt(_0xf024f6(0x1cf))/0x9*(parseInt(_0xf024f6(0x181))/0xa);if(_0x5e99c5===_0x5ef509)break;else _0x40b875['push'](_0x40b875['shift']());}catch(_0x50a99e){_0x40b875['push'](_0x40b875['shift']());}}}(a7_0x1865,0x8b75e));const fs=require('fs'),util=require(a7_0x51bafb(0x162)),request=require(a7_0x51bafb(0x173)),{v4:uuidv4}=require(a7_0x51bafb(0x191)),{logger}=require(a7_0x51bafb(0x1b2)),{inputBstackKeys}=require(a7_0x51bafb(0x1c9)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x51bafb(0x185)),{getDirForConfig,getCredentialsPath}=require(a7_0x51bafb(0x1d1)),{sendInstrumentationEvent}=require(a7_0x51bafb(0x1a0)),promisifiedRequest=util[a7_0x51bafb(0x167)](request);function a7_0x1865(){const _0x4cab15=['Xedjx','WwMBI','builder','argv','uuid','3456080ZgWIZv','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','fwgIm','2634042UeXaMI','kbpWd','epilogue','options','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','tvvhd','wrong-creds','UrgKr','GiNTQ','VAzNy','298248qWqViq','../utils/instrumentationUtils','stringify','24gNvkyE','dRaQG','IzCHN','BROWSERSTACK_ACCESS_KEY','stack','bstackUsername','2424023dJpFoT','eyFsu','parse','command','password','recommendCommands','env','type','exit','Browserstack','../config/logger','pbcWg','YOrVo','dUaVN','854940FclpOX','GEPKP','PCjGG','JyOfs','utf-8','unknown-error','esqQX','DhiRQ','mZyxQ','MIoqh','method','debug','57693rnAQrW','bstackAccesskey','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','KwSTj','Ckgro','existsSync','../utils/userInput','bstack-username','dyNlr','readFileSync','CyVzM','RGiRF','11665278SUIJYj','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../utils/utilityMethods','gEcds','init','CQHpy','util','AJsaC','handler','INFO','uiHEc','promisify','18kuTRCG','UrpxP','pskBk','QgIMd','usage','BROWSERSTACK_USERNAME','https://','GET','username','CoYFL','cRJfs','request','/automate/plan.json','rSlQY','bITHR','statusCode','mIMKv','strict','mkdirSync','JNizI','HXfbN','ovLVE','olYsE','HMiam','ERROR','10xKSVBv','error','bCSxT','description','../config/constants','url','YXJLe','iKkse','writeFileSync','help','vFkNz','init-called'];a7_0x1865=function(){return _0x4cab15;};return a7_0x1865();}exports[a7_0x51bafb(0x1ab)]='init',exports['desc']=a7_0x51bafb(0x1c4),exports[a7_0x51bafb(0x18f)]=function(_0x11c7d5){const _0x471ac7=a7_0x51bafb,_0x237e0b={};_0x237e0b['mwqNC']=_0x471ac7(0x193),_0x237e0b[_0x471ac7(0x1b4)]='string',_0x237e0b['ovLVE']=_0x471ac7(0x1d0),_0x237e0b[_0x471ac7(0x1cd)]=_0x471ac7(0x18a);const _0x518909=_0x237e0b,_0x2cb8ec={};_0x2cb8ec['description']=_0x518909['mwqNC'],_0x2cb8ec[_0x471ac7(0x1af)]=_0x518909[_0x471ac7(0x1b4)];const _0x1c8948={};_0x1c8948[_0x471ac7(0x184)]=_0x518909[_0x471ac7(0x17d)],_0x1c8948[_0x471ac7(0x1af)]=_0x518909[_0x471ac7(0x1b4)];const _0x35e0c2={};return _0x35e0c2[_0x471ac7(0x1ca)]=_0x2cb8ec,_0x35e0c2['bstack-accesskey']=_0x1c8948,_0x11c7d5[_0x471ac7(0x16c)](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x471ac7(0x198)](_0x35e0c2)[_0x471ac7(0x1ad)]()[_0x471ac7(0x179)]()['help'](_0x518909[_0x471ac7(0x1cd)])['argv'];},exports[a7_0x51bafb(0x164)]=async function(_0x4657ac){const _0x6e99e5=a7_0x51bafb,_0x420d21={'UrgKr':_0x6e99e5(0x1ba),'EhPhC':_0x6e99e5(0x193),'oXpHY':'string','uwXmw':_0x6e99e5(0x1d0),'rSlQY':_0x6e99e5(0x18a),'DhiRQ':function(_0x1f04e6){return _0x1f04e6();},'PCjGG':function(_0x4faab6,_0x14b159,_0x2e451a,_0x6f7723,_0x35fdb9,_0x44ce12,_0x1094ad){return _0x4faab6(_0x14b159,_0x2e451a,_0x6f7723,_0x35fdb9,_0x44ce12,_0x1094ad);},'JyOfs':_0x6e99e5(0x18c),'YTZTl':function(_0x4dc416){return _0x4dc416();},'CoYFL':function(_0x3571e3,_0x1cad61){return _0x3571e3!==_0x1cad61;},'KwSTj':_0x6e99e5(0x178),'cRJfs':_0x6e99e5(0x19d),'IzCHN':_0x6e99e5(0x166),'GEPKP':function(_0x2e5eff,_0x163feb){return _0x2e5eff!==_0x163feb;},'YXJLe':_0x6e99e5(0x18d),'dUaVN':function(_0x40a16d,_0x512295){return _0x40a16d===_0x512295;},'kbpWd':_0x6e99e5(0x1be),'MIoqh':function(_0x33f64b,_0x1009ec){return _0x33f64b===_0x1009ec;},'gEcds':'QearS','pbcWg':_0x6e99e5(0x18e),'HXfbN':function(_0x4f61b3,_0x42221e){return _0x4f61b3===_0x42221e;},'olYsE':function(_0x3e0935,_0x3d82b5){return _0x3e0935===_0x3d82b5;},'eyFsu':function(_0x34da77,_0x549cf3){return _0x34da77!==_0x549cf3;},'dRaQG':'yODjt','dyNlr':_0x6e99e5(0x199),'AJsaC':_0x6e99e5(0x16f),'UrpxP':function(_0x2225f4,_0x34d806){return _0x2225f4(_0x34d806);},'fwgIm':function(_0x4b0e27,_0x348fd3){return _0x4b0e27!==_0x348fd3;},'JNizI':function(_0x4fe57b,_0x41a97e){return _0x4fe57b===_0x41a97e;},'Ckgro':function(_0x575838,_0x38ec85){return _0x575838===_0x38ec85;},'RYbjw':_0x6e99e5(0x18b),'bCSxT':_0x6e99e5(0x176),'HMiam':_0x6e99e5(0x188),'esqQX':'zRmTT','tvvhd':function(_0x3998c5){return _0x3998c5();},'CQHpy':function(_0x3d3e46,_0x190fb8){return _0x3d3e46!==_0x190fb8;},'RGiRF':_0x6e99e5(0x16a),'UuaYE':_0x6e99e5(0x1c5),'VAzNy':_0x6e99e5(0x19b),'QgIMd':function(_0x588279,_0x5e3cb5,_0x5cc9ad,_0x5622fa,_0x11cebf,_0x52b605,_0xe7cd55){return _0x588279(_0x5e3cb5,_0x5cc9ad,_0x5622fa,_0x11cebf,_0x52b605,_0xe7cd55);},'qSLHP':_0x6e99e5(0x1bb)};try{global_registry['requestId']=_0x420d21[_0x6e99e5(0x1bd)](uuidv4),_0x420d21[_0x6e99e5(0x1b8)](sendInstrumentationEvent,_0x4657ac,_0x420d21['JyOfs'],messageTypes[_0x6e99e5(0x165)],null,null,_0x4657ac);const _0x1b9b9f=_0x420d21['YTZTl'](getDirForConfig);!fs[_0x6e99e5(0x1c8)](_0x1b9b9f)&&(_0x420d21['CoYFL'](_0x420d21[_0x6e99e5(0x1c6)],_0x420d21[_0x6e99e5(0x172)])?fs[_0x6e99e5(0x17a)](_0x1b9b9f):_0x4c5afc=!![]);let _0x28059d,_0x2068cb;_0x4657ac[_0x6e99e5(0x1a7)]&&(_0x420d21[_0x6e99e5(0x171)](_0x420d21[_0x6e99e5(0x1a4)],_0x420d21[_0x6e99e5(0x1a4)])?_0x502341[_0x6e99e5(0x17a)](_0x21fef4):_0x28059d=_0x4657ac[_0x6e99e5(0x1a7)]);process['env'][_0x6e99e5(0x16d)]&&(_0x420d21[_0x6e99e5(0x1b7)](_0x420d21[_0x6e99e5(0x187)],_0x420d21[_0x6e99e5(0x187)])?_0x5ad29e=_0x40da96[_0x6e99e5(0x1aa)](_0xec1435[_0x6e99e5(0x1cc)](_0xcb2dab,_0x420d21[_0x6e99e5(0x19c)])):_0x28059d=process['env'][_0x6e99e5(0x16d)]);_0x4657ac['bstackAccesskey']&&(_0x420d21[_0x6e99e5(0x1b5)](_0x420d21[_0x6e99e5(0x196)],_0x420d21[_0x6e99e5(0x196)])?_0x2068cb=_0x4657ac[_0x6e99e5(0x1c3)]:_0x1436e3=_0x5735ee[_0x6e99e5(0x1ae)][_0x6e99e5(0x16d)]);if(process[_0x6e99e5(0x1ae)][_0x6e99e5(0x1a5)]){if(_0x420d21[_0x6e99e5(0x1bf)](_0x420d21[_0x6e99e5(0x1d2)],_0x420d21[_0x6e99e5(0x1b3)])){const _0x42d709={};_0x42d709[_0x6e99e5(0x184)]=_0x420d21['EhPhC'],_0x42d709[_0x6e99e5(0x1af)]=_0x420d21['oXpHY'];const _0x569645={};_0x569645[_0x6e99e5(0x184)]=_0x420d21['uwXmw'],_0x569645[_0x6e99e5(0x1af)]=_0x420d21['oXpHY'];const _0x5c4831={};return _0x5c4831['bstack-username']=_0x42d709,_0x5c4831['bstack-accesskey']=_0x569645,_0x4b5d96[_0x6e99e5(0x16c)](_0x198b55[_0x6e99e5(0x1d3)])[_0x6e99e5(0x197)](_0xbb18dd)[_0x6e99e5(0x198)](_0x5c4831)[_0x6e99e5(0x1ad)]()[_0x6e99e5(0x179)]()['help'](_0x420d21[_0x6e99e5(0x175)])[_0x6e99e5(0x190)];}else _0x2068cb=process['env']['BROWSERSTACK_ACCESS_KEY'];}if(_0x420d21[_0x6e99e5(0x17c)](_0x28059d,undefined)||_0x420d21[_0x6e99e5(0x17e)](_0x2068cb,undefined)){if(_0x420d21[_0x6e99e5(0x1a9)](_0x420d21[_0x6e99e5(0x1a3)],_0x420d21[_0x6e99e5(0x1a3)])){let _0x4df168={};const _0x16f857=_0x420d21['DhiRQ'](_0x36648f);_0x319938[_0x6e99e5(0x1c8)](_0x16f857)&&(_0x4df168=_0x528537[_0x6e99e5(0x1aa)](_0x5d5e64[_0x6e99e5(0x1cc)](_0x16f857,_0x420d21[_0x6e99e5(0x19c)])));const _0x111a42={};_0x111a42[_0x6e99e5(0x170)]=_0x1b3074,_0x111a42[_0x6e99e5(0x1ac)]=_0x8ef151,_0x4df168[_0x6e99e5(0x1b1)]=_0x111a42,_0x3dc728[_0x6e99e5(0x189)](_0x16f857,_0x4b6bf5[_0x6e99e5(0x1a1)](_0x4df168)),_0x3cb00a[_0x6e99e5(0x1b0)](0x0);}else{logger[_0x6e99e5(0x1c1)](_0x420d21[_0x6e99e5(0x1cb)]);const [_0x131e02,_0x3bae19]=await _0x420d21[_0x6e99e5(0x1bd)](inputBstackKeys);_0x28059d=_0x131e02,_0x2068cb=_0x3bae19;}}let _0x40c3b2=![];const _0x9ec38a={};_0x9ec38a[_0x6e99e5(0x186)]=_0x6e99e5(0x16e)+_0x28059d+':'+_0x2068cb+'@'+BS_API_URL+_0x6e99e5(0x174),_0x9ec38a[_0x6e99e5(0x1c0)]=_0x420d21[_0x6e99e5(0x163)];const _0x3b0fae=_0x9ec38a,_0x9dd9e8=await _0x420d21[_0x6e99e5(0x169)](promisifiedRequest,_0x3b0fae);_0x420d21[_0x6e99e5(0x1a9)](_0x9dd9e8,null)&&_0x420d21[_0x6e99e5(0x194)](_0x9dd9e8,undefined)&&_0x420d21[_0x6e99e5(0x17b)](_0x9dd9e8[_0x6e99e5(0x177)],0xc8)&&(_0x420d21[_0x6e99e5(0x1c7)](_0x420d21['RYbjw'],_0x420d21[_0x6e99e5(0x183)])?_0x158ce8=_0x311808[_0x6e99e5(0x1c3)]:_0x40c3b2=!![]);if(_0x40c3b2){if(_0x420d21[_0x6e99e5(0x17c)](_0x420d21[_0x6e99e5(0x17f)],_0x420d21[_0x6e99e5(0x1bc)]))_0x20f8db=_0x2f25b6['env'][_0x6e99e5(0x1a5)];else{let _0x47e304={};const _0x219f90=_0x420d21[_0x6e99e5(0x19a)](getCredentialsPath);fs[_0x6e99e5(0x1c8)](_0x219f90)&&(_0x420d21[_0x6e99e5(0x1d4)](_0x420d21[_0x6e99e5(0x1ce)],_0x420d21[_0x6e99e5(0x1ce)])?_0x22eb3e=_0x1014c2[_0x6e99e5(0x1a7)]:_0x47e304=JSON[_0x6e99e5(0x1aa)](fs[_0x6e99e5(0x1cc)](_0x219f90,_0x420d21['UrgKr'])));const _0x1e7887={};_0x1e7887[_0x6e99e5(0x170)]=_0x28059d,_0x1e7887[_0x6e99e5(0x1ac)]=_0x2068cb,_0x47e304[_0x6e99e5(0x1b1)]=_0x1e7887,fs[_0x6e99e5(0x189)](_0x219f90,JSON['stringify'](_0x47e304)),process[_0x6e99e5(0x1b0)](0x0);}}else logger[_0x6e99e5(0x182)](_0x420d21['UuaYE']),await _0x420d21[_0x6e99e5(0x1b8)](sendInstrumentationEvent,_0x4657ac,_0x420d21[_0x6e99e5(0x1b9)],messageTypes[_0x6e99e5(0x180)],_0x420d21[_0x6e99e5(0x19e)],null,_0x4657ac),process['exit'](0x1);}catch(_0x4f3395){logger[_0x6e99e5(0x182)](_0x4f3395[_0x6e99e5(0x1a6)]),await _0x420d21[_0x6e99e5(0x16b)](sendInstrumentationEvent,_0x4657ac,_0x420d21[_0x6e99e5(0x1b9)],messageTypes['ERROR'],_0x420d21['qSLHP'],_0x4f3395,_0x4657ac),process[_0x6e99e5(0x1b0)](0x1);}};