browserstack-node-sdk 1.25.4 → 1.26.0

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 (81) 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/utils/AWSUtils.js +1 -1
  16. package/ats/src/utils/createAutoscalerStack.js +1 -1
  17. package/ats/src/utils/createClusterStack.js +1 -1
  18. package/ats/src/utils/createk8sClient.js +1 -1
  19. package/ats/src/utils/deleteStack.js +1 -1
  20. package/ats/src/utils/gridComponents.js +1 -1
  21. package/ats/src/utils/hstUtils.js +1 -1
  22. package/ats/src/utils/instrumentationUtils.js +1 -1
  23. package/ats/src/utils/userInput.js +1 -1
  24. package/ats/src/utils/utilityMethods.js +1 -1
  25. package/ats/src/utils/webSocketUtils.js +1 -1
  26. package/package.json +1 -1
  27. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  28. package/src/bin/codeceptjs/command.js +1 -1
  29. package/src/bin/cucumber-js/command.js +1 -1
  30. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  31. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  32. package/src/bin/cucumber-js/test.setup.js +1 -1
  33. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  34. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  35. package/src/bin/jest/command.js +1 -1
  36. package/src/bin/jest/customEnvironment.js +1 -1
  37. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  38. package/src/bin/jest/jest.setup.js +1 -1
  39. package/src/bin/jest/test_before.setup.js +1 -1
  40. package/src/bin/launcher/launcher.js +1 -1
  41. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  42. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  43. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  44. package/src/bin/mocha/command.js +1 -1
  45. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  46. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  47. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  48. package/src/bin/mocha/test.setup.js +1 -1
  49. package/src/bin/nightwatch/command.js +1 -1
  50. package/src/bin/playwright/command.js +1 -1
  51. package/src/bin/playwright/globalSetup.js +1 -1
  52. package/src/bin/playwright/mock-process.js +1 -1
  53. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  54. package/src/bin/playwright/reporter/reporter.js +1 -1
  55. package/src/bin/playwright/reporter/test-details.js +1 -1
  56. package/src/bin/runner.js +1 -1
  57. package/src/bin/setup.js +1 -1
  58. package/src/bin/test-runner/index.js +1 -1
  59. package/src/bin/test-runner/runTest.js +1 -1
  60. package/src/bin/test-runner/testWorker.js +1 -1
  61. package/src/bin/utils/constants.js +1 -1
  62. package/src/bin/utils/log4jsAppender.js +1 -1
  63. package/src/bin/utils/logPatcher.js +1 -1
  64. package/src/bin/utils/logReportingAPI.js +1 -1
  65. package/src/bin/vanilla-js/command.js +1 -1
  66. package/src/helpers/BrowserStackSetup.js +1 -1
  67. package/src/helpers/capsMapping.js +1 -1
  68. package/src/helpers/helper.js +1 -1
  69. package/src/helpers/logger.js +1 -1
  70. package/src/helpers/patchHelpers.js +1 -1
  71. package/src/helpers/request-spy.js +1 -1
  72. package/src/helpers/setKeepAlive.js +1 -1
  73. package/src/helpers/test-observability/constants.js +1 -1
  74. package/src/helpers/test-observability/error-handler.js +1 -1
  75. package/src/helpers/test-observability/performance-tester.js +1 -1
  76. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  77. package/src/helpers/test-observability/sessionHandler.js +1 -1
  78. package/src/helpers/test-observability/utils.js +1 -1
  79. package/src/helpers/w3cMapping.js +1 -1
  80. package/src/hubAllocationMethods.js +1 -1
  81. 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_0x26ac9a=a0_0x36ee;function a0_0x36ee(_0x39bccf,_0x50914f){const _0x9eaf4b=a0_0x9eaf();return a0_0x36ee=function(_0x36ee99,_0x284b0b){_0x36ee99=_0x36ee99-0x154;let _0x3bc7c5=_0x9eaf4b[_0x36ee99];return _0x3bc7c5;},a0_0x36ee(_0x39bccf,_0x50914f);}(function(_0x4fc9da,_0x27e5e9){const _0x48b0a1=a0_0x36ee,_0x494b58=_0x4fc9da();while(!![]){try{const _0x5554a3=parseInt(_0x48b0a1(0x16f))/0x1*(parseInt(_0x48b0a1(0x19f))/0x2)+-parseInt(_0x48b0a1(0x1a2))/0x3*(-parseInt(_0x48b0a1(0x195))/0x4)+-parseInt(_0x48b0a1(0x187))/0x5*(parseInt(_0x48b0a1(0x166))/0x6)+-parseInt(_0x48b0a1(0x167))/0x7+-parseInt(_0x48b0a1(0x1a9))/0x8+-parseInt(_0x48b0a1(0x158))/0x9+parseInt(_0x48b0a1(0x19a))/0xa*(parseInt(_0x48b0a1(0x1ae))/0xb);if(_0x5554a3===_0x27e5e9)break;else _0x494b58['push'](_0x494b58['shift']());}catch(_0x1607ad){_0x494b58['push'](_0x494b58['shift']());}}}(a0_0x9eaf,0x514f7));const fs=require('fs'),util=require(a0_0x26ac9a(0x1aa)),request=require('request'),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a0_0x26ac9a(0x165)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x26ac9a(0x19b)),{getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a0_0x26ac9a(0x1b5)),promisifiedRequest=util['promisify'](request);function a0_0x9eaf(){const _0x5a031b=['desc','list','1770JeZGfr','FcPhk','help','rRtwA','PUT','usage','unknown-error','VOjog','ERROR','strict','\x20\x20grid-profile:\x20','gqKMz','stringify','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','4eCStLh','name','length','hNUsJ','parse','30zjuqdo','../config/constants','url','svnKc','xHprv','979382ixnRbd','GdPEX','Failed\x20to\x20configure\x20resources!\x20Error:\x20','914421sGSsPo','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','AmgRN','bcqUm','HBkhY','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OvlAx','3466240BjvlWr','util','Browserstack','qTJZn','body','4958459wlgSHq','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Qyjbx','hjNMR','invalid-selection','exit','method','../utils/instrumentationUtils','VQYiv','server-error','INFO','ZWNOG','4746051aBTjyc','PStYA','error','configure','unauthorised','log','auth','aHdUM','WVLbz','FloRj','QlyYE','username','kHGMN','../utils/userInput','3282tMKHnG','4616507snfHPm','existsSync','profileId','cZNPj','HsMwt','jXbfw','kWAyI','json','1UnxVdC','GET','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','stack','yjrRJ','mtwFB','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','WjLEa','JgclH','configure-called','statusCode','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','command','edYyr','password','recommendCommands','goBbl','/packages/cli/configure','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','kCzXa','jAcjl','invalid-input'];a0_0x9eaf=function(){return _0x5a031b;};return a0_0x9eaf();}exports[a0_0x26ac9a(0x17b)]=a0_0x26ac9a(0x15b),exports[a0_0x26ac9a(0x185)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x292d2f){const _0x2403eb=a0_0x26ac9a,_0x56e692={};_0x56e692[_0x2403eb(0x1a5)]=_0x2403eb(0x189);const _0x576819=_0x56e692;return _0x292d2f[_0x2403eb(0x18c)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x576819[_0x2403eb(0x1a5)])[_0x2403eb(0x17e)]()[_0x2403eb(0x190)]()['argv'];},exports['handler']=async function(_0xaad06a){const _0x23f62f=a0_0x26ac9a,_0x160e9d={'WVLbz':function(_0x5b4bf7){return _0x5b4bf7();},'ZWNOG':function(_0xd93d30){return _0xd93d30();},'svnKc':_0x23f62f(0x1a7),'cZNPj':function(_0x9f363f,_0x52f2a6,_0x2bcbb7,_0x49c546,_0x12fd4f,_0x19a14d,_0x42c323){return _0x9f363f(_0x52f2a6,_0x2bcbb7,_0x49c546,_0x12fd4f,_0x19a14d,_0x42c323);},'WjLEa':_0x23f62f(0x178),'qTJZn':'init-not-called','OvlAx':function(_0x59b85a,_0x229df1,_0x454919,_0x1a6009,_0x120a01,_0x2b52ce,_0x367ce2){return _0x59b85a(_0x229df1,_0x454919,_0x1a6009,_0x120a01,_0x2b52ce,_0x367ce2);},'eQsky':_0x23f62f(0x170),'VQYiv':function(_0x563c15,_0x3770c0){return _0x563c15(_0x3770c0);},'Qyjbx':function(_0x36202e,_0x5a0d8a){return _0x36202e!==_0x5a0d8a;},'kHGMN':function(_0x5ea8ca,_0x289a00){return _0x5ea8ca===_0x289a00;},'rRtwA':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','FcPhk':'core:','kWAyI':_0x23f62f(0x1a3),'goBbl':function(_0x44ade1,_0x56dbe5){return _0x44ade1===_0x56dbe5;},'ErMLH':function(_0x2bda9e,_0x41aebf){return _0x2bda9e===_0x41aebf;},'hjNMR':function(_0x3ab5d1,_0xe1995b){return _0x3ab5d1===_0xe1995b;},'HBkhY':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','gqKMz':function(_0x337f4b,_0x4488e0,_0x54e8bf,_0x2c94fc,_0x4ab12f,_0x1f3004,_0x3af961){return _0x337f4b(_0x4488e0,_0x54e8bf,_0x2c94fc,_0x4ab12f,_0x1f3004,_0x3af961);},'kCzXa':_0x23f62f(0x184),'HsMwt':function(_0x350105,_0xcffea){return _0x350105===_0xcffea;},'mXPbA':_0x23f62f(0x17a),'PStYA':function(_0x4571c2,_0x911241){return _0x4571c2<_0x911241;},'AmgRN':function(_0x260477,_0x55ede5){return _0x260477+_0x55ede5;},'jAcjl':function(_0x2229df,_0x3be03b){return _0x2229df(_0x3be03b);},'edYyr':_0x23f62f(0x175),'hNUsJ':function(_0xf8e165,_0x521068){return _0xf8e165(_0x521068);},'FloRj':function(_0x3ac8ac,_0x404312){return _0x3ac8ac>_0x404312;},'BYRPD':_0x23f62f(0x1b2),'VOjog':function(_0x445a8c,_0x42fcc9){return _0x445a8c-_0x42fcc9;},'QlyYE':_0x23f62f(0x18b),'aHdUM':function(_0x301c87,_0xdbf16e){return _0x301c87!==_0xdbf16e;},'JSUUp':function(_0x250d4a,_0x945014){return _0x250d4a!==_0x945014;},'mtwFB':'Updated\x20default\x20Grid\x20Profile\x20successfully','xHprv':function(_0x2c195f,_0x29588b,_0x47ffe8,_0x5f0fe8,_0x475e20,_0x18b444,_0x41c48d){return _0x2c195f(_0x29588b,_0x47ffe8,_0x5f0fe8,_0x475e20,_0x18b444,_0x41c48d);},'jXbfw':_0x23f62f(0x15c),'HsSOg':function(_0x34171d,_0x10403f,_0x5a8f40,_0x35425c,_0x5220a4,_0x29e7ff,_0x2b87be){return _0x34171d(_0x10403f,_0x5a8f40,_0x35425c,_0x5220a4,_0x29e7ff,_0x2b87be);},'GdPEX':_0x23f62f(0x155),'JgclH':function(_0x59f277,_0xeaaf43,_0x4335cc,_0x354f65,_0x1f3ab7,_0x809ffc,_0x45db40){return _0x59f277(_0xeaaf43,_0x4335cc,_0x354f65,_0x1f3ab7,_0x809ffc,_0x45db40);},'RhcRg':function(_0x5dc04e,_0x382b8e,_0x3e500f,_0x3de831,_0x232a55,_0x17f4da,_0x117c7d){return _0x5dc04e(_0x382b8e,_0x3e500f,_0x3de831,_0x232a55,_0x17f4da,_0x117c7d);},'yjrRJ':_0x23f62f(0x18d)};try{global_registry['requestId']=_0x160e9d[_0x23f62f(0x160)](uuidv4);const _0x2f2893='https://'+AG_API_URL+_0x23f62f(0x180);!fs[_0x23f62f(0x168)](_0x160e9d[_0x23f62f(0x157)](getCredentialsPath))&&(console[_0x23f62f(0x15a)](_0x160e9d[_0x23f62f(0x19d)]),await _0x160e9d['cZNPj'](sendInstrumentationEvent,_0xaad06a,_0x160e9d['WjLEa'],messageTypes['ERROR'],_0x160e9d[_0x23f62f(0x1ac)],null,_0xaad06a),process[_0x23f62f(0x1b3)](0x1));await _0x160e9d[_0x23f62f(0x1a8)](sendInstrumentationEvent,_0xaad06a,_0x160e9d[_0x23f62f(0x176)],messageTypes[_0x23f62f(0x156)],null,null,_0xaad06a);const _0x4966bc=JSON['parse'](fs['readFileSync'](_0x160e9d[_0x23f62f(0x160)](getCredentialsPath))),_0x2b8021={};_0x2b8021[_0x23f62f(0x163)]=_0x4966bc[_0x23f62f(0x1ab)][_0x23f62f(0x163)],_0x2b8021[_0x23f62f(0x17d)]=_0x4966bc[_0x23f62f(0x1ab)][_0x23f62f(0x17d)];const _0xdac5ef={};_0xdac5ef[_0x23f62f(0x19c)]=_0x2f2893,_0xdac5ef[_0x23f62f(0x1b4)]=_0x160e9d['eQsky'],_0xdac5ef[_0x23f62f(0x15e)]=_0x2b8021;const _0x378bea=_0xdac5ef,_0x446fc5=await _0x160e9d[_0x23f62f(0x154)](promisifiedRequest,_0x378bea);if(_0x160e9d[_0x23f62f(0x1b0)](_0x446fc5,null)&&_0x160e9d[_0x23f62f(0x1b0)](_0x446fc5,undefined)&&_0x160e9d['kHGMN'](_0x446fc5[_0x23f62f(0x179)],0xc8)){const _0x4380b3=JSON[_0x23f62f(0x199)](_0x446fc5[_0x23f62f(0x1ad)]);console[_0x23f62f(0x15d)](_0x160e9d[_0x23f62f(0x18a)]),console[_0x23f62f(0x15d)](_0x160e9d[_0x23f62f(0x188)]),console[_0x23f62f(0x15d)]('\x20\x20username:\x20'+_0x4966bc[_0x23f62f(0x1ab)][_0x23f62f(0x163)]),console[_0x23f62f(0x15d)](_0x23f62f(0x191)+_0x4380b3['active'][_0x23f62f(0x196)]);const _0x48c351=await _0x160e9d['VQYiv'](inputConfirmation,_0x160e9d[_0x23f62f(0x16d)]);(_0x160e9d[_0x23f62f(0x17f)](_0x48c351,undefined)||_0x160e9d['ErMLH'](_0x48c351,null)||!(_0x160e9d[_0x23f62f(0x17f)](_0x48c351['toLowerCase'](),'y')||_0x160e9d[_0x23f62f(0x1b1)](_0x48c351['toLowerCase'](),'n')))&&(console[_0x23f62f(0x15a)](_0x160e9d[_0x23f62f(0x1a6)]),await _0x160e9d[_0x23f62f(0x192)](sendInstrumentationEvent,_0xaad06a,_0x160e9d[_0x23f62f(0x176)],messageTypes[_0x23f62f(0x18f)],_0x160e9d[_0x23f62f(0x182)],null,_0xaad06a),process['exit'](0x1));_0x160e9d[_0x23f62f(0x16b)](_0x48c351['toLowerCase'](),'n')&&process[_0x23f62f(0x1b3)](0x0);console[_0x23f62f(0x15d)](_0x160e9d['mXPbA']);const _0x211e75=_0x4380b3['list'][_0x23f62f(0x197)];for(let _0x3786be=0x0;_0x160e9d[_0x23f62f(0x159)](_0x3786be,_0x211e75);_0x3786be+=0x1){console[_0x23f62f(0x15d)]('['+_0x160e9d[_0x23f62f(0x1a4)](_0x3786be,0x1)+']\x20'+_0x4380b3[_0x23f62f(0x186)][_0x3786be][_0x23f62f(0x196)]);}const _0x1bd18c=await _0x160e9d[_0x23f62f(0x183)](inputConfirmation,_0x160e9d[_0x23f62f(0x17c)]),_0x230e03=_0x160e9d[_0x23f62f(0x198)](Number,_0x1bd18c);(_0x160e9d[_0x23f62f(0x183)](isNaN,_0x230e03)||_0x160e9d['PStYA'](_0x230e03,0x0)||_0x160e9d[_0x23f62f(0x161)](_0x230e03,_0x211e75))&&(console[_0x23f62f(0x15a)](_0x160e9d[_0x23f62f(0x1a6)]),await _0x160e9d['OvlAx'](sendInstrumentationEvent,_0xaad06a,_0x160e9d[_0x23f62f(0x176)],messageTypes[_0x23f62f(0x18f)],_0x160e9d['BYRPD'],null,_0xaad06a),process['exit'](0x1));_0x160e9d[_0x23f62f(0x157)](closeInput);const _0x47993a=_0x4380b3[_0x23f62f(0x186)][_0x160e9d[_0x23f62f(0x18e)](_0x230e03,0x1)]['id'],_0xd404a3={};_0xd404a3[_0x23f62f(0x163)]=_0x4966bc['Browserstack']['username'],_0xd404a3['password']=_0x4966bc[_0x23f62f(0x1ab)][_0x23f62f(0x17d)];const _0x2825b0={};_0x2825b0[_0x23f62f(0x169)]=_0x47993a;const _0x5b608d={};_0x5b608d[_0x23f62f(0x19c)]=_0x2f2893,_0x5b608d['method']=_0x160e9d[_0x23f62f(0x162)],_0x5b608d['auth']=_0xd404a3,_0x5b608d[_0x23f62f(0x1ad)]=_0x2825b0,_0x5b608d[_0x23f62f(0x16e)]=!![];const _0x3abef2=_0x5b608d,_0x42f11c=await _0x160e9d['VQYiv'](promisifiedRequest,_0x3abef2);_0x160e9d[_0x23f62f(0x15f)](_0x42f11c,null)&&_0x160e9d['JSUUp'](_0x42f11c,undefined)&&_0x160e9d[_0x23f62f(0x164)](_0x42f11c[_0x23f62f(0x179)],0xc8)&&(console[_0x23f62f(0x15d)](_0x160e9d[_0x23f62f(0x174)]),process['exit'](0x0)),_0x160e9d[_0x23f62f(0x1b1)](_0x42f11c[_0x23f62f(0x179)],0x191)&&(console[_0x23f62f(0x15a)](_0x23f62f(0x171)),await _0x160e9d[_0x23f62f(0x19e)](sendInstrumentationEvent,_0xaad06a,_0x160e9d['WjLEa'],messageTypes[_0x23f62f(0x18f)],_0x160e9d['jXbfw'],null,_0xaad06a),process[_0x23f62f(0x1b3)](0x1)),console[_0x23f62f(0x15a)](_0x23f62f(0x1af)+JSON[_0x23f62f(0x193)](_0x42f11c)),await _0x160e9d['HsSOg'](sendInstrumentationEvent,_0xaad06a,_0x160e9d[_0x23f62f(0x176)],messageTypes['ERROR'],_0x160e9d['GdPEX'],_0x42f11c,_0xaad06a),process[_0x23f62f(0x1b3)](0x1);}_0x160e9d['HsMwt'](_0x446fc5[_0x23f62f(0x179)],0x191)&&(console['error'](_0x23f62f(0x194)),await _0x160e9d[_0x23f62f(0x177)](sendInstrumentationEvent,_0xaad06a,_0x160e9d['WjLEa'],messageTypes['ERROR'],_0x160e9d[_0x23f62f(0x16c)],null,_0xaad06a),process[_0x23f62f(0x1b3)](0x1)),console[_0x23f62f(0x15a)](_0x23f62f(0x181)+JSON[_0x23f62f(0x193)](_0x446fc5)),await _0x160e9d[_0x23f62f(0x16a)](sendInstrumentationEvent,_0xaad06a,_0x160e9d['WjLEa'],messageTypes[_0x23f62f(0x18f)],_0x160e9d[_0x23f62f(0x1a0)],_0x446fc5,_0xaad06a),process[_0x23f62f(0x1b3)](0x1);}catch(_0xfdfa43){console[_0x23f62f(0x15a)](_0x23f62f(0x1a1)+_0xfdfa43[_0x23f62f(0x172)]),await _0x160e9d['RhcRg'](sendInstrumentationEvent,_0xaad06a,_0x160e9d[_0x23f62f(0x176)],messageTypes[_0x23f62f(0x18f)],_0x160e9d[_0x23f62f(0x173)],_0xfdfa43,_0xaad06a),process['exit'](0x1);}};
@@ -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_0x92ee8a=a1_0x1c59;function a1_0x1c59(_0x193f2b,_0x39773e){const _0x18f00e=a1_0x18f0();return a1_0x1c59=function(_0x1c5925,_0x1debaa){_0x1c5925=_0x1c5925-0xb6;let _0x4f68c4=_0x18f00e[_0x1c5925];return _0x4f68c4;},a1_0x1c59(_0x193f2b,_0x39773e);}function a1_0x18f0(){const _0x430a39=['tZztH','609590prtprB','connect_commands','3QPHPwJ','../config/constants','2977856xqOwRV','demandCommand','builder','201489WKwjlO','desc','commandDir','command','153MTIESV','2745445kMKfNs','help','1091324ZZzWQr','strict','recommendCommands','523159miIKwY','connect','12QkNmfs','1008314CJmuiD','epilogue','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','sPbzN'];a1_0x18f0=function(){return _0x430a39;};return a1_0x18f0();}(function(_0x3ca6d1,_0x3f9a32){const _0x4dfc54=a1_0x1c59,_0x272694=_0x3ca6d1();while(!![]){try{const _0x11ff89=-parseInt(_0x4dfc54(0xcc))/0x1+-parseInt(_0x4dfc54(0xc0))/0x2*(parseInt(_0x4dfc54(0xc7))/0x3)+parseInt(_0x4dfc54(0xba))/0x4+-parseInt(_0x4dfc54(0xb8))/0x5+parseInt(_0x4dfc54(0xbf))/0x6*(-parseInt(_0x4dfc54(0xbd))/0x7)+parseInt(_0x4dfc54(0xc9))/0x8+-parseInt(_0x4dfc54(0xb7))/0x9*(-parseInt(_0x4dfc54(0xc5))/0xa);if(_0x11ff89===_0x3f9a32)break;else _0x272694['push'](_0x272694['shift']());}catch(_0x3636ed){_0x272694['push'](_0x272694['shift']());}}}(a1_0x18f0,0x43aa5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x92ee8a(0xc8));exports[a1_0x92ee8a(0xb6)]=a1_0x92ee8a(0xbe),exports[a1_0x92ee8a(0xcd)]=a1_0x92ee8a(0xc2),exports[a1_0x92ee8a(0xcb)]=function(_0x4a6150){const _0x1a7027=a1_0x92ee8a,_0x52cb1f={};_0x52cb1f[_0x1a7027(0xc4)]=_0x1a7027(0xc6),_0x52cb1f['sPbzN']=_0x1a7027(0xb9);const _0x515a3d=_0x52cb1f;return _0x4a6150['usage'](HELP_HEADER_MESSAGE[_0x1a7027(0xbe)])[_0x1a7027(0xc1)](HELP_FOOTER_MESSAGE)[_0x1a7027(0xce)](_0x515a3d[_0x1a7027(0xc4)])[_0x1a7027(0xca)]()[_0x1a7027(0xbc)]()[_0x1a7027(0xbb)]()[_0x1a7027(0xb9)](_0x515a3d[_0x1a7027(0xc3)]);},exports['handler']=function(_0xb5d73c){};
@@ -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_0x48eb4a=a2_0x1c56;(function(_0x4abd34,_0xd5b009){const _0x4a0d7a=a2_0x1c56,_0x3fba6a=_0x4abd34();while(!![]){try{const _0x2b442a=-parseInt(_0x4a0d7a(0x120))/0x1+-parseInt(_0x4a0d7a(0x109))/0x2*(parseInt(_0x4a0d7a(0x115))/0x3)+-parseInt(_0x4a0d7a(0x124))/0x4*(-parseInt(_0x4a0d7a(0x128))/0x5)+parseInt(_0x4a0d7a(0x14f))/0x6*(parseInt(_0x4a0d7a(0x13d))/0x7)+parseInt(_0x4a0d7a(0xf3))/0x8+-parseInt(_0x4a0d7a(0x122))/0x9*(-parseInt(_0x4a0d7a(0xf9))/0xa)+parseInt(_0x4a0d7a(0x103))/0xb;if(_0x2b442a===_0xd5b009)break;else _0x3fba6a['push'](_0x3fba6a['shift']());}catch(_0x3f195a){_0x3fba6a['push'](_0x3fba6a['shift']());}}}(a2_0x4a95,0x6b440));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x48eb4a(0x116)),{logger}=require(a2_0x48eb4a(0xf6)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x48eb4a(0xf8));function a2_0x1c56(_0x508576,_0x5b9546){const _0x4a955e=a2_0x4a95();return a2_0x1c56=function(_0x1c56c3,_0xf91af9){_0x1c56c3=_0x1c56c3-0xef;let _0x35ebbf=_0x4a955e[_0x1c56c3];return _0x35ebbf;},a2_0x1c56(_0x508576,_0x5b9546);}exports[a2_0x48eb4a(0x10c)]=a2_0x48eb4a(0xfd),exports[a2_0x48eb4a(0x133)]=a2_0x48eb4a(0x11e),exports[a2_0x48eb4a(0x146)]=_0xa21544=>{const _0x5f080b=a2_0x48eb4a,_0x11b6e9={};_0x11b6e9['gDCuT']=_0x5f080b(0x147),_0x11b6e9[_0x5f080b(0x142)]=_0x5f080b(0x13b),_0x11b6e9[_0x5f080b(0x107)]=_0x5f080b(0xf2),_0x11b6e9[_0x5f080b(0x119)]=_0x5f080b(0x121),_0x11b6e9['nCmQe']=_0x5f080b(0x11c),_0x11b6e9[_0x5f080b(0x135)]=_0x5f080b(0x12f),_0x11b6e9[_0x5f080b(0x13a)]=_0x5f080b(0x13e);const _0xc74522=_0x11b6e9,_0x56916a={};_0x56916a['description']=_0xc74522[_0x5f080b(0x132)],_0x56916a['type']=_0xc74522[_0x5f080b(0x142)];const _0x5dc46e={};_0x5dc46e[_0x5f080b(0x137)]=_0xc74522[_0x5f080b(0x107)],_0x5dc46e[_0x5f080b(0x14b)]=_0xc74522[_0x5f080b(0x142)];const _0x23c44a={};_0x23c44a[_0x5f080b(0x138)]=!![],_0x23c44a['description']=_0xc74522[_0x5f080b(0x119)],_0x23c44a['type']=_0xc74522[_0x5f080b(0x142)];const _0x58d726={};_0x58d726[_0x5f080b(0x137)]=_0xc74522[_0x5f080b(0x10b)],_0x58d726['type']=_0xc74522[_0x5f080b(0x142)];const _0x3eb08e={};_0x3eb08e['description']=_0xc74522[_0x5f080b(0x135)],_0x3eb08e['type']=_0xc74522[_0x5f080b(0x142)];const _0x108176={};return _0x108176['bstack-username']=_0x56916a,_0x108176[_0x5f080b(0x14e)]=_0x5dc46e,_0x108176[_0x5f080b(0x106)]=_0x23c44a,_0x108176[_0x5f080b(0x140)]=_0x58d726,_0x108176[_0x5f080b(0xff)]=_0x3eb08e,_0xa21544[_0x5f080b(0x104)](HELP_HEADER_MESSAGE[_0x5f080b(0x114)])[_0x5f080b(0xfa)](HELP_FOOTER_MESSAGE)[_0x5f080b(0x113)](_0x108176)[_0x5f080b(0x13e)](_0xc74522[_0x5f080b(0x13a)])[_0x5f080b(0x150)];},exports[a2_0x48eb4a(0x112)]=async _0xe2270a=>{const _0x5e52d0=a2_0x48eb4a,_0x55422c={'zAKVm':function(_0x40411e,_0x35dae6){return _0x40411e==_0x35dae6;},'KoLsN':function(_0x7cfe57,_0x3a9153){return _0x7cfe57(_0x3a9153);},'QgMTt':function(_0x56919d,_0x326c38){return _0x56919d!==_0x326c38;},'IjIPX':_0x5e52d0(0x131),'jcXcO':_0x5e52d0(0x12b),'Ardxk':function(_0xa3031a,_0x30a02b){return _0xa3031a(_0x30a02b);},'UBeGC':function(_0x4e397d,_0x3ae0c2){return _0x4e397d==_0x3ae0c2;},'OwJzT':function(_0x334805,_0x24a7bb){return _0x334805(_0x24a7bb);},'GyoXV':function(_0x249a47,_0x29f014){return _0x249a47(_0x29f014);},'ykbtF':_0x5e52d0(0x139),'opoMv':_0x5e52d0(0x143),'crCZn':_0x5e52d0(0x149),'LaYzT':function(_0x2aa072,_0x16fe79){return _0x2aa072(_0x16fe79);},'aYTDi':function(_0x23870b,_0x56feeb){return _0x23870b(_0x56feeb);},'pVSZP':function(_0x52702f,_0x552dfc){return _0x52702f===_0x552dfc;},'LFlLc':_0x5e52d0(0x101),'udKdC':function(_0x5a7206,_0x386135){return _0x5a7206(_0x386135);},'RdInF':function(_0x2db651,_0x22758f,_0x33fa5e){return _0x2db651(_0x22758f,_0x33fa5e);},'BmnOX':function(_0x2aff60,_0x5ac284){return _0x2aff60&&_0x5ac284;},'FdGJt':'tvoLA','uWqFN':'DCAOq','UICuL':function(_0x56c5e9,_0x4c3ec7,_0x31778e,_0x3120f3){return _0x56c5e9(_0x4c3ec7,_0x31778e,_0x3120f3);},'JpxOm':_0x5e52d0(0x110),'qGqBl':_0x5e52d0(0x148),'TgiLE':function(_0x5b66e3,_0x5ee7e6){return _0x5b66e3(_0x5ee7e6);},'FwHfw':function(_0x4693b6,_0x2da329){return _0x4693b6===_0x2da329;},'RrRAV':_0x5e52d0(0x11d),'TshRU':function(_0x7e95f7,_0x1f0d26){return _0x7e95f7!==_0x1f0d26;},'zpuPt':'KPZnH','FBwDG':function(_0x427780,_0x33a380){return _0x427780===_0x33a380;},'VagQC':_0x5e52d0(0x100),'vJFBM':function(_0x47cc49,_0x36d2b1){return _0x47cc49(_0x36d2b1);},'xAtia':function(_0x316cdc,_0x4aa2b3){return _0x316cdc===_0x4aa2b3;},'fAxie':'ZMelR','jcybG':function(_0x1fa670,_0x2e2c85){return _0x1fa670(_0x2e2c85);}};let _0x3e6dd0=_0xe2270a[_0x5e52d0(0x141)],_0x186b89=_0xe2270a['bstackAccesskey'],_0x1f0483=_0xe2270a['advanceOptions'];const _0xf52f3c=_0x4d0b9f=>{const _0x3e20d4=_0x5e52d0,_0x11b121={'rQvif':function(_0x5a93f9,_0x1b753b){return _0x55422c['zAKVm'](_0x5a93f9,_0x1b753b);},'nNvOu':function(_0x3d5928,_0x2f798b){const _0x56cdc8=a2_0x1c56;return _0x55422c[_0x56cdc8(0x127)](_0x3d5928,_0x2f798b);}};_0x55422c['QgMTt'](_0x55422c[_0x3e20d4(0xf4)],_0x55422c[_0x3e20d4(0x102)])?(logger[_0x3e20d4(0x153)](_0x4d0b9f),process[_0x3e20d4(0x130)](0x1)):(_0x3c0f13++,_0x11b121['rQvif'](_0x4ee8d9,0x1)&&_0x51632c&&_0x4ee8a2[_0x3e20d4(0xfb)]()&&_0x11b121['nNvOu'](_0x9726ff,_0x4107e0));};[_0x3e6dd0,_0x186b89]=_0x55422c[_0x5e52d0(0x11f)](fetchOrUpdateUserConfig,_0x3e6dd0,_0x186b89);!_0x55422c['BmnOX'](_0x3e6dd0,_0x186b89)&&(_0x55422c[_0x5e52d0(0x10d)](_0x55422c[_0x5e52d0(0x10e)],_0x55422c[_0x5e52d0(0x118)])?_0x55422c[_0x5e52d0(0x14a)](_0xf52f3c,_0x5e52d0(0x12d)):_0x55422c[_0x5e52d0(0x108)](_0x17c198,_0x5e52d0(0x12d)));let _0x219243=_0xe2270a[_0x5e52d0(0x134)],_0x533a21=await _0x55422c[_0x5e52d0(0x10f)](getGridDetails,_0x3e6dd0,_0x186b89,_0x219243);if(!_0x533a21){if(_0x55422c[_0x5e52d0(0x125)](_0x55422c[_0x5e52d0(0x12c)],_0x55422c[_0x5e52d0(0x11b)])){_0x1c9e2c=_0x5e52d0(0x126),_0x211d06[_0x5e52d0(0xfc)](_0x494149);try{const _0x1a2d7d={};_0x1a2d7d[_0x5e52d0(0x145)]=_0x226ec2,_0x1a2d7d[_0x5e52d0(0xef)]=_0x3bc626[_0x5e52d0(0xef)],_0x1a2d7d[_0x5e52d0(0x129)]=_0x63d77a;const _0x40d879=_0x1a2d7d,_0x4123eb=_0x55422c[_0x5e52d0(0x13f)](_0x3aec05,_0x40d879);let _0x5aa9a0=0x0;const _0x2b2866=async()=>{const _0x532535=_0x5e52d0;_0x5aa9a0++,_0x55422c[_0x532535(0x117)](_0x5aa9a0,0x1)&&_0x4123eb&&_0x4123eb['isRunning']()&&_0x55422c[_0x532535(0x14a)](_0x54961f,_0x4123eb);};_0x276f43['on'](_0x55422c[_0x5e52d0(0xf7)],_0x2b2866),_0x292043['on'](_0x55422c['opoMv'],_0x2b2866),_0x54e42f['on'](_0x55422c[_0x5e52d0(0x123)],_0x2b2866),_0x256319=_0x5e52d0(0x11a),_0x752677[_0x5e52d0(0xfc)](_0x529e60);}catch(_0x568cc4){_0x55422c[_0x5e52d0(0x14a)](_0xe02978,_0x5e52d0(0x14c));}}else _0x55422c['TgiLE'](_0xf52f3c,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');}let _0x27771d=_0x55422c['FwHfw'](_0xe2270a[_0x5e52d0(0x144)],_0x55422c[_0x5e52d0(0x13c)])?!![]:![];if(_0x533a21&&_0x533a21[_0x5e52d0(0x154)]&&_0x27771d){if(_0x55422c['TshRU'](_0x55422c[_0x5e52d0(0xfe)],_0x55422c['zpuPt'])){const _0x56576a={'qfgOG':function(_0xf36c22,_0x1f9dd8){const _0x30c8c2=_0x5e52d0;return _0x55422c[_0x30c8c2(0x105)](_0xf36c22,_0x1f9dd8);},'eWKWN':function(_0xa7e9a5,_0x1fa7ca){const _0x43d3da=_0x5e52d0;return _0x55422c[_0x43d3da(0x108)](_0xa7e9a5,_0x1fa7ca);}},_0x2052ca={};_0x2052ca[_0x5e52d0(0x145)]=_0x196ad1,_0x2052ca[_0x5e52d0(0xef)]=_0x3267fd[_0x5e52d0(0xef)],_0x2052ca[_0x5e52d0(0x129)]=_0x33fae9;const _0x114f83=_0x2052ca,_0x1a6496=_0x55422c['LaYzT'](_0x49c182,_0x114f83);let _0x1998f4=0x0;const _0x3f98b0=async()=>{const _0x373ec5=_0x5e52d0;_0x1998f4++,_0x56576a['qfgOG'](_0x1998f4,0x1)&&_0x1a6496&&_0x1a6496[_0x373ec5(0xfb)]()&&_0x56576a[_0x373ec5(0xf1)](_0x97ee86,_0x1a6496);};_0x5cbb81['on'](_0x55422c[_0x5e52d0(0xf7)],_0x3f98b0),_0x38db84['on'](_0x55422c[_0x5e52d0(0x14d)],_0x3f98b0),_0x473f27['on'](_0x55422c[_0x5e52d0(0x123)],_0x3f98b0),_0x77775b=_0x5e52d0(0x11a),_0x5a46fb[_0x5e52d0(0xfc)](_0xa25bbb);}else{logMessage=_0x5e52d0(0x126),logger['info'](logMessage);try{if(_0x55422c[_0x5e52d0(0x10a)](_0x55422c[_0x5e52d0(0xf5)],_0x55422c[_0x5e52d0(0xf5)])){const _0x31e531={};_0x31e531[_0x5e52d0(0x145)]=_0x186b89,_0x31e531[_0x5e52d0(0xef)]=_0x533a21['customRepeaters'],_0x31e531[_0x5e52d0(0x129)]=_0x1f0483;const _0x6c309f=_0x31e531,_0x351b0a=_0x55422c[_0x5e52d0(0x12e)](startLocalBinarySync,_0x6c309f);let _0xb42806=0x0;const _0x179fad=async()=>{const _0x4b73b2=_0x5e52d0;_0x55422c[_0x4b73b2(0x125)](_0x55422c[_0x4b73b2(0x152)],_0x55422c[_0x4b73b2(0x152)])?(_0xb42806++,_0x55422c[_0x4b73b2(0x105)](_0xb42806,0x1)&&_0x351b0a&&_0x351b0a[_0x4b73b2(0xfb)]()&&_0x55422c[_0x4b73b2(0x127)](stopLocalBinary,_0x351b0a)):_0x55422c[_0x4b73b2(0xf0)](_0x1c3e5a,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');};process['on'](_0x55422c['ykbtF'],_0x179fad),process['on'](_0x55422c[_0x5e52d0(0x14d)],_0x179fad),process['on'](_0x55422c['crCZn'],_0x179fad),logMessage='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.',logger[_0x5e52d0(0xfc)](logMessage);}else _0x55422c[_0x5e52d0(0x151)](_0x418e3d,_0x5e52d0(0x14c));}catch(_0x11d242){_0x55422c[_0x5e52d0(0x111)](_0x55422c[_0x5e52d0(0x12a)],_0x55422c[_0x5e52d0(0x12a)])?_0x55422c[_0x5e52d0(0x136)](_0xf52f3c,_0x5e52d0(0x14c)):(_0x3e2efd[_0x5e52d0(0x153)](_0x285b74),_0x568ce7['exit'](0x1));}}}process[_0x5e52d0(0x130)](0x0);};function a2_0x4a95(){const _0x22461c=['aYTDi','eWKWN','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','2028952iOcBtx','IjIPX','VagQC','../../config/logger','ykbtF','../../utils/utilityMethods','970BpyeDg','epilogue','isRunning','info','grid','zpuPt','advance-options','RQbvW','UwGfP','jcXcO','3117697ifZQWd','usage','zAKVm','grid-id','iFcex','Ardxk','56pSlBkf','FBwDG','nCmQe','command','QgMTt','FdGJt','UICuL','SDuqE','xAtia','handler','options','create','24663ceEGVN','../../config/constants','UBeGC','uWqFN','aNvnY','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.','qGqBl','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','true','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','RdInF','803205RDEJTE','Pass\x20the\x20ID\x20of\x20the\x20Grid','36513TUICnm','crCZn','2228RCtLVP','pVSZP','Grid\x20type:\x20Trial','KoLsN','4775VGaKfO','browserStackLocalOptions','fAxie','RCztL','JpxOm','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','vJFBM','Advance\x20options\x20for\x20Browserstack\x20Local','exit','qTTPs','gDCuT','desc','gridId','fexGU','jcybG','description','demandOption','beforeExit','qCLtG','string','RrRAV','71701tBnxYV','help','GyoXV','use-staging','bstackUsername','TMXVu','SIGINT','useStaging','accessKey','builder','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','sghbI','SIGTERM','OwJzT','type','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','opoMv','bstack-accesskey','6UtASyN','argv','udKdC','LFlLc','error','isTrialGrid','customRepeaters'];a2_0x4a95=function(){return _0x22461c;};return a2_0x4a95();}
@@ -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_0x5c97b8=a3_0x258a;function a3_0x3bb8(){const _0xa8853f=['bevAb','handler','6272992ciJgTr','837978tbxSbH','612353zLpUiG','commandDir','demandCommand','epilogue','recommendCommands','779366mprOFc','command','create','31180DDrqAJ','help','builder','45JJADHl','strict','Create\x20a\x20new\x20Automation\x20grid.','../config/constants','aLUoG','293430JyRxUF','desc','968868QvsdYO'];a3_0x3bb8=function(){return _0xa8853f;};return a3_0x3bb8();}(function(_0x5f5439,_0x169993){const _0x2b97c2=a3_0x258a,_0x1c1298=_0x5f5439();while(!![]){try{const _0x2eeea=parseInt(_0x2b97c2(0xa1))/0x1+parseInt(_0x2b97c2(0x96))/0x2+parseInt(_0x2b97c2(0xa7))/0x3+-parseInt(_0x2b97c2(0x99))/0x4*(-parseInt(_0x2b97c2(0x9c))/0x5)+parseInt(_0x2b97c2(0xa3))/0x6+-parseInt(_0x2b97c2(0xa8))/0x7+-parseInt(_0x2b97c2(0xa6))/0x8;if(_0x2eeea===_0x169993)break;else _0x1c1298['push'](_0x1c1298['shift']());}catch(_0x512148){_0x1c1298['push'](_0x1c1298['shift']());}}}(a3_0x3bb8,0x4eba5));function a3_0x258a(_0x4e359a,_0x7d7be5){const _0x3bb83e=a3_0x3bb8();return a3_0x258a=function(_0x258a5e,_0x426a39){_0x258a5e=_0x258a5e-0x92;let _0x2f581d=_0x3bb83e[_0x258a5e];return _0x2f581d;},a3_0x258a(_0x4e359a,_0x7d7be5);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x5c97b8(0x9f));exports[a3_0x5c97b8(0x97)]='create',exports[a3_0x5c97b8(0xa2)]=a3_0x5c97b8(0x9e),exports[a3_0x5c97b8(0x9b)]=function(_0x516cd6){const _0x351663=a3_0x5c97b8,_0x172a1f={};_0x172a1f[_0x351663(0xa0)]='create_commands',_0x172a1f[_0x351663(0xa4)]='help';const _0x57a6d8=_0x172a1f;return _0x516cd6['usage'](HELP_HEADER_MESSAGE[_0x351663(0x98)])[_0x351663(0x94)](HELP_FOOTER_MESSAGE)[_0x351663(0x92)](_0x57a6d8[_0x351663(0xa0)])[_0x351663(0x93)]()[_0x351663(0x95)]()[_0x351663(0x9d)]()[_0x351663(0x9a)](_0x57a6d8[_0x351663(0xa4)]);},exports[a3_0x5c97b8(0xa5)]=function(_0xb7426c){};
@@ -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_0x5f47ad=a4_0xbf68;(function(_0x5254cb,_0x28ed85){const _0x467c86=a4_0xbf68,_0x2d5da5=_0x5254cb();while(!![]){try{const _0x4b30f0=parseInt(_0x467c86(0x23e))/0x1+parseInt(_0x467c86(0x28f))/0x2+-parseInt(_0x467c86(0x21b))/0x3*(-parseInt(_0x467c86(0x224))/0x4)+-parseInt(_0x467c86(0x241))/0x5+-parseInt(_0x467c86(0x203))/0x6+parseInt(_0x467c86(0x299))/0x7+parseInt(_0x467c86(0x28b))/0x8;if(_0x4b30f0===_0x28ed85)break;else _0x2d5da5['push'](_0x2d5da5['shift']());}catch(_0x274156){_0x2d5da5['push'](_0x2d5da5['shift']());}}}(a4_0x49ed,0xd19ef));function a4_0x49ed(){const _0x1023c5=['prespawned-cluster-args-not-passed','GSaXr','../../utils/deleteStack','CWyIL','LOG','GIQZP','pZnuz','certificateAuthority','WKdMD','cluster','kube-system','init-not-called','region','8565390omiWrU','zVaEg','Found\x20VPC:\x20','eAhxj','KRqZn','QRyLT','JTMBX','Wjitq','help','yiKKx','createNamespace','CLI\x20run\x20finished:\x20','gFpGw','QTsdu','subnets','cluster-name','grid-profile','Create\x20a\x20new\x20Automation\x20grid.','pwbSo','../../utils/userInput','Cclxv','vLind','\x27\x20grid\x20profile','requestId','3ceVFxJ','Kpwpg','request','match','name','mgUTi','oHfls','type','GVcbL','621260TrDXtp','delay','RLWIr','LKYkf','handler','kiMAg','secret','HahvJ','lNsis','SIZhf','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','szjkj','s3bucket','SZTov','gridProfileId','error','zDcCT','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','readFileSync','CTydw','KbRzY','Cluster\x20=>\x20','bKIGv','usage','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','kgaSk','621889OgtBrZ','cloudProvider','../../utils/createClusterStack','3899995hoGnGm','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Cluster\x20','Found\x20Subnets:\x20','warn','options','WYfpN','gridProfile','FRrAg','../../config/logger','fIonm','Skipping\x20Autoscaler\x20due\x20to:\x20','Namespace\x20created','lrkXN','create-grid-checks-non-200','mEWsZ','dBQVI','SCdTQ','password','OBKHW','body','eBdoO',',\x20NodeRole\x20=>\x20','alreadyPresent','CLI_RUN_STARTED','instanceType','OutputValue','5|6|4|1|0|3|2','nvLKd','../../utils/AWSUtils','UHKzX','catch','ZcfIb','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','AkMBQ','zttgX','split','clusterName','iXKQW','username','Creating\x20namespace','Grid\x20can\x20be\x20accessed\x20at:\x20','ssZWG','user','FgsuP','../../utils/createAutoscalerStack','https://','7|5|2|6|4|3|0|1',':4444/wd/hub','securityGroups','create-grid-checks-auth-failed','hostname','AaMeo','mMlAk','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','statusCode','addListeners','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hrNJE','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','xfCbX','jKUAA','ingress','XjCBA','eXXsA','../../utils/gridComponents','1|0|3|2|4','gridName','levKz','HAUZl','Cluster\x20and\x20node\x20group\x20created\x20successfully','Browserstack','10586096fyWxbH','replace','VbfxY','metadata','1281144mOUutx','TxTRX','Stacks','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','MPioc','Outputs','\x20using\x20\x27','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',',\x20Subnets\x20=>\x20','concurrency','2275931kAVbwo','kMbdI','EJMTJ','fvyDn','grid-name','parse','OyXEh','FKUQV','GwkUm','debug','ABbNd','nrrGq','managedBy','kCifP','lItjZ','Autoscaler\x20Role\x20created.ARN:\x20','boRYW','writeFileSync','qCZsD','SecurityGroups\x20=>\x20','\x20in\x20existing\x20cluster\x20\x27','command','Configuring\x20AWS','reconnecting-websocket','INFO','crNIg','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','CLI\x20run\x20started','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','bstackAccesskey','status','WARNING','cloudProviderSecretKey','DPyoD','toLowerCase','message','Deleting\x20the\x20CloudFormation\x20Stacks',',\x20SecurityGroups\x20=>\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ClusterRole\x20=>\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','reportToGalactusAndSendToEDS','Authmap\x20already\x20exists.\x20Not\x20updating','maoUJ','sendEventToBackend','defaultGridProfile','<UsernamePlaceholder>','create','../../utils/instrumentationUtils','grid','accessKey','auth','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','Creating\x20Autoscaler\x20Role','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','dHIHA','ERROR','length','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','AsOfN','YSOfG','xdWVZ','loadBalancer','Spawning\x20the\x20grid\x20','uhzix','hyWBZ','qzAMG','epilogue','cloudProviderAccessKey','kviMK','DnQoP','gridProfiles','<PasswordPlaceholder>','fYtdt','FLqqk','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rCuxD','dEOvq','util','VQdqY','exit','dTzHY','hnmxr','txvdw','VlgGo','mTWkQ','NodeRole\x20=>\x20','daqoO','rdDil','nodeRole','aSQoj','Grid\x20spawned\x20on\x20the\x20cluster','QJSOQ','info','JRHXp','uUErz','ajliF','WebSocket','bstackUsername','VykXQ','pskSJ','hJOCq','../../utils/utilityMethods','description','create-grid-called','browserstack-turboscale-grid-service','CLI_RUN_FINISHED','WFUXL','OmmDU','method','Subnets\x20=>\x20','clusterRegion','ADlFe','FTOPy','argv','DTtdB','gPJfq','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.','Following\x20resources\x20are\x20created:','stringify','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','aws','3|4|1|6|7|0|2|5','uuid','create-grid-checks-grid-already-exists','TVyBs','gDYHl','iaJFt','0|4|3|2|1','PISsY','zwUZU','default','../../utils/hstUtils','YPKgK',',\x20ClusterRole\x20=>\x20','fXwVc','pre-spawned-invalid-vpc','Ldqlm','xqpZu','desc','eSajG','Grid\x20profile\x20fetched\x20from\x20backend','bsTlW','-NodeGroup','non-aws-cluster','xSqEk','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','promisify'];a4_0x49ed=function(){return _0x1023c5;};return a4_0x49ed();}function a4_0xbf68(_0x3110e7,_0x220262){const _0x49ed0b=a4_0x49ed();return a4_0xbf68=function(_0xbf68c3,_0x446c23){_0xbf68c3=_0xbf68c3-0x1d4;let _0x4f206d=_0x49ed0b[_0xbf68c3];return _0x4f206d;},a4_0xbf68(_0x3110e7,_0x220262);}const fs=require('fs'),ws=require('ws'),util=require(a4_0x5f47ad(0x2e7)),ReconnectingWebSocket=require(a4_0x5f47ad(0x2b0)),request=require(a4_0x5f47ad(0x21d)),{v4:uuidv4}=require(a4_0x5f47ad(0x1dd)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a4_0x5f47ad(0x24b)),{inputCloudProviderKeys}=require(a4_0x5f47ad(0x216)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x5f47ad(0x2ff)),{sendAWSInfoToHST}=require(a4_0x5f47ad(0x1e6)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require(a4_0x5f47ad(0x25f)),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x5f47ad(0x284)),{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_0x5f47ad(0x240)),{createAutoscalerStack}=require(a4_0x5f47ad(0x26f)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a4_0x5f47ad(0x2c9)),{deleteClusterStack}=require(a4_0x5f47ad(0x1f8)),promisifiedRequest=util[a4_0x5f47ad(0x1f5)](request);exports[a4_0x5f47ad(0x2ae)]=a4_0x5f47ad(0x2ca),exports[a4_0x5f47ad(0x1ed)]=a4_0x5f47ad(0x214),exports['builder']=function(_0x46a66a){const _0x412747=a4_0x5f47ad,_0x32bb1e={};_0x32bb1e['fYtdt']=_0x412747(0x243),_0x32bb1e[_0x412747(0x215)]='string',_0x32bb1e[_0x412747(0x1e4)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x32bb1e['GrxGO']=_0x412747(0x2e4),_0x32bb1e['CWyIL']=_0x412747(0x2c1),_0x32bb1e[_0x412747(0x21c)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x32bb1e[_0x412747(0x226)]=_0x412747(0x20b);const _0xf6d184=_0x32bb1e,_0x3edce7={};_0x3edce7['description']=_0xf6d184[_0x412747(0x2e2)],_0x3edce7[_0x412747(0x222)]=_0xf6d184[_0x412747(0x215)];const _0x2fd680={};_0x2fd680[_0x412747(0x300)]=_0xf6d184[_0x412747(0x1e4)],_0x2fd680[_0x412747(0x222)]=_0xf6d184[_0x412747(0x215)];const _0x195541={};_0x195541[_0x412747(0x300)]=_0xf6d184['GrxGO'],_0x195541[_0x412747(0x222)]=_0xf6d184[_0x412747(0x215)];const _0x3739f1={};_0x3739f1[_0x412747(0x300)]=_0xf6d184[_0x412747(0x1f9)],_0x3739f1[_0x412747(0x222)]=_0xf6d184[_0x412747(0x215)];const _0x60c9b2={};_0x60c9b2['description']=_0xf6d184[_0x412747(0x21c)],_0x60c9b2['type']=_0xf6d184[_0x412747(0x215)];const _0x100770={};return _0x100770[_0x412747(0x29d)]=_0x3edce7,_0x100770[_0x412747(0x213)]=_0x2fd680,_0x100770[_0x412747(0x212)]=_0x195541,_0x100770['cloud-provider']=_0x3739f1,_0x100770[_0x412747(0x202)]=_0x60c9b2,_0x46a66a[_0x412747(0x23b)](HELP_HEADER_MESSAGE[_0x412747(0x2c8)])[_0x412747(0x2dc)](HELP_FOOTER_MESSAGE)[_0x412747(0x247)](_0x100770)[_0x412747(0x20b)](_0xf6d184[_0x412747(0x226)])[_0x412747(0x1d4)];},exports[a4_0x5f47ad(0x228)]=async function(_0x34c713){const _0x238b88=a4_0x5f47ad,_0x2e1945={'pPJuX':_0x238b88(0x243),'DPyoD':'string','dxXcg':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hrWcn':_0x238b88(0x2e4),'GKnZq':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ajliF':_0x238b88(0x296),'eAhxj':_0x238b88(0x20b),'UHKzX':_0x238b88(0x233),'nrrGq':_0x238b88(0x2c3),'xfCbX':_0x238b88(0x2af),'SCdTQ':function(_0x93aa63){return _0x93aa63();},'FKUQV':'2|1|3|4|0','TVyBs':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','iaJFt':_0x238b88(0x271),'mEWsZ':'2|0|4|1|5|6|3','Cclxv':_0x238b88(0x1dc),'dBQVI':function(_0x94fac8,_0x38417d){return _0x94fac8===_0x38417d;},'XjCBA':_0x238b88(0x276),'kviMK':'kFvmJ','txvdw':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WKdMD':function(_0x59cb37,_0x1cd166,_0x518e36,_0x5c8411,_0x5e9495,_0x107fe6,_0x2aaa45){return _0x59cb37(_0x1cd166,_0x518e36,_0x5c8411,_0x5e9495,_0x107fe6,_0x2aaa45);},'FLqqk':_0x238b88(0x301),'gcHol':_0x238b88(0x201),'rCuxD':function(_0x3a6ada,_0x330894,_0x5abfab,_0x4c1ba2,_0x33c7ce,_0x1f6004,_0x941c3){return _0x3a6ada(_0x330894,_0x5abfab,_0x4c1ba2,_0x33c7ce,_0x1f6004,_0x941c3);},'EkEKY':_0x238b88(0x2c7),'boRYW':_0x238b88(0x2e1),'BEbbi':'Adding\x20Websocket\x20listeners','qzAMG':function(_0x352629,_0x1f232f){return _0x352629===_0x1f232f;},'FsquW':_0x238b88(0x283),'QRyLT':_0x238b88(0x223),'jFlqt':_0x238b88(0x1e9),'ABbNd':_0x238b88(0x229),'ssZWG':_0x238b88(0x2b3),'SIZhf':function(_0x5729f9,_0x58d467,_0xdc61c5,_0x5e4bf8,_0x19584c,_0x235c2b,_0x4d4a0e,_0x2cead1){return _0x5729f9(_0x58d467,_0xdc61c5,_0x5e4bf8,_0x19584c,_0x235c2b,_0x4d4a0e,_0x2cead1);},'CTydw':_0x238b88(0x1f6),'GwkUm':function(_0x5617bd,_0x5c8fd1){return _0x5617bd!==_0x5c8fd1;},'dHIHA':_0x238b88(0x1db),'WFUXL':function(_0x18ac10,_0x3e8609){return _0x18ac10!==_0x3e8609;},'eSajG':_0x238b88(0x309),'Wjitq':_0x238b88(0x277),'WYfpN':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','hnmxr':_0x238b88(0x1f2),'FTOPy':_0x238b88(0x2a6),'NpkyV':'PStZz','JTMBX':function(_0x5ba5e0,_0x40e16e){return _0x5ba5e0===_0x40e16e;},'GSaXr':'YSoyO','vJJBy':_0x238b88(0x1ec),'HahvJ':'GET','dTzHY':function(_0x300a3d,_0x583433){return _0x300a3d(_0x583433);},'daqoO':function(_0xb751f9,_0xc010c9){return _0xb751f9==_0xc010c9;},'OmmDU':_0x238b88(0x2a7),'mffuu':_0x238b88(0x2bf),'fIonm':'create-grid-checks-null-response','lNsis':function(_0x7cef66,_0x5ce6eb){return _0x7cef66!==_0x5ce6eb;},'JRHXp':'QIHWu','mTWkQ':_0x238b88(0x234),'vLind':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','AkMBQ':_0x238b88(0x274),'LKYkf':function(_0x35673b,_0x3ab621){return _0x35673b!==_0x3ab621;},'fqhCF':_0x238b88(0x257),'qCZsD':'RcDZx','zVaEg':_0x238b88(0x250),'GIQZP':_0x238b88(0x1ef),'gFpGw':function(_0x5a0bc7,_0x4af731){return _0x5a0bc7!==_0x4af731;},'yiKKx':_0x238b88(0x1e0),'QTsdu':_0x238b88(0x2e6),'MPioc':_0x238b88(0x1da),'KbRzY':_0x238b88(0x1de),'hrNJE':function(_0x36bd4c,_0x143ff6){return _0x36bd4c!==_0x143ff6;},'nvLKd':_0x238b88(0x24a),'SzwwZ':'IBDdk','DnQoP':function(_0x14f76b,_0x6eb826){return _0x14f76b!==_0x6eb826;},'iXKQW':_0x238b88(0x1fc),'VlgGo':_0x238b88(0x2b2),'bsTlW':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','TxTRX':'create-grid-checks-invalid-profile','uhzix':function(_0x1c6c14,_0x157db1,_0x10bfc3,_0x11fbcd,_0x33380d,_0xb2f0d8,_0x215425,_0x5d7ae5){return _0x1c6c14(_0x157db1,_0x10bfc3,_0x11fbcd,_0x33380d,_0xb2f0d8,_0x215425,_0x5d7ae5);},'aSQoj':_0x238b88(0x25d),'OyXEh':function(_0x5702a4,_0x558ada){return _0x5702a4===_0x558ada;},'jKUAA':_0x238b88(0x27e),'KRqZn':_0x238b88(0x2b5),'toQeG':_0x238b88(0x285),'QJSOQ':function(_0x264091){return _0x264091();},'mgUTi':function(_0x4cdfb9,_0x1f9b3d,_0x47377b){return _0x4cdfb9(_0x1f9b3d,_0x47377b);},'PISsY':'warn','Ldqlm':_0x238b88(0x27c),'kMbdI':function(_0x26afcd,_0x22f87b){return _0x26afcd!=_0x22f87b;},'levKz':function(_0xef81f4,_0x11aa31){return _0xef81f4>_0x11aa31;},'maoUJ':_0x238b88(0x1f4),'OHQsm':'pre-spawned-subnets-not-selected','DTtdB':function(_0x17d7c6,_0x26aeaa){return _0x17d7c6===_0x26aeaa;},'cBNbH':_0x238b88(0x23c),'YSOfG':function(_0x105e94,_0x121567,_0x53e705,_0x3c909d,_0x5132e5,_0x3b3179,_0x3bbb79,_0x4b410f){return _0x105e94(_0x121567,_0x53e705,_0x3c909d,_0x5132e5,_0x3b3179,_0x3bbb79,_0x4b410f);},'JrnVT':_0x238b88(0x1ea),'xdWVZ':function(_0x1a6a4c,_0x4e3af6,_0x17d4fd,_0x2d51f2){return _0x1a6a4c(_0x4e3af6,_0x17d4fd,_0x2d51f2);},'VQdqY':function(_0x1feb40,_0x3f50c7,_0x2d3d70,_0x2d620f,_0x5b120f,_0x37dfed,_0x573dfb,_0xb84999){return _0x1feb40(_0x3f50c7,_0x2d3d70,_0x2d620f,_0x5b120f,_0x37dfed,_0x573dfb,_0xb84999);},'rdDil':'pre-spawned-invalid-subnets','YPKgK':_0x238b88(0x1d8),'pskSJ':_0x238b88(0x1d7),'AsOfN':_0x238b88(0x263),'HAUZl':_0x238b88(0x2cd),'hyWBZ':function(_0x11cdda,_0x5330ab){return _0x11cdda(_0x5330ab);},'tpkxK':_0x238b88(0x289),'lrkXN':function(_0x4a39ff,_0x637979){return _0x4a39ff(_0x637979);},'WfMtU':function(_0x32aee4,_0x31540f,_0x2030b5,_0x57bab8,_0x2b5115){return _0x32aee4(_0x31540f,_0x2030b5,_0x57bab8,_0x2b5115);},'kcDvs':function(_0x57e72e,_0x109d6c){return _0x57e72e===_0x109d6c;},'bKIGv':_0x238b88(0x2ce),'ofNYx':function(_0x56c7f8,_0x10c513){return _0x56c7f8!==_0x10c513;},'gPJfq':function(_0x871f7,_0x4b9335,_0x2d94ea,_0x2b0389,_0x30bb8c,_0x4ba14e,_0x19355a,_0x48717e){return _0x871f7(_0x4b9335,_0x2d94ea,_0x2b0389,_0x30bb8c,_0x4ba14e,_0x19355a,_0x48717e);},'VykXQ':_0x238b88(0x2c2),'mEAKa':'warning','VbfxY':_0x238b88(0x1e2),'FgsuP':function(_0x703d06,_0x4f1b3e){return _0x703d06(_0x4f1b3e);},'zDxWl':'autoscaler-creation-failed','zttgX':function(_0x5a704c,_0x4d68e3,_0x333497){return _0x5a704c(_0x4d68e3,_0x333497);},'hJOCq':function(_0xbc0536,_0x1ea249){return _0xbc0536(_0x1ea249);},'XvRcg':_0x238b88(0x200),'OBKHW':function(_0x49d8c9,_0x42832){return _0x49d8c9(_0x42832);},'EJMTJ':_0x238b88(0x26a),'eJRyn':function(_0x13c6f6,_0x12c963){return _0x13c6f6!==_0x12c963;},'xSqEk':_0x238b88(0x1e5),'ZcfIb':_0x238b88(0x28a),'SZTov':'Namespace\x20Created','kgaSk':_0x238b88(0x24e),'AMcji':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','fWPcD':_0x238b88(0x279),'RRrOn':function(_0x4870ca,_0x378443,_0x43c5a9,_0x22f8ab,_0x690f60,_0xaeefa5,_0xd20681,_0x3b6ae8,_0xeeb4da){return _0x4870ca(_0x378443,_0x43c5a9,_0x22f8ab,_0x690f60,_0xaeefa5,_0xd20681,_0x3b6ae8,_0xeeb4da);},'fvyDn':_0x238b88(0x2f4),'uUErz':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','oHfls':_0x238b88(0x302),'lXRPP':function(_0x22d13b,_0xb17c5f){return _0x22d13b===_0xb17c5f;},'szjkj':function(_0x2b1e87,_0x521651,_0x34975f,_0x157be4,_0x1cd461,_0x472f18){return _0x2b1e87(_0x521651,_0x34975f,_0x157be4,_0x1cd461,_0x472f18);},'xzmsS':'grid-spawning-failed'};let _0x4f9c85=![],_0xddd2d5,_0x2a507d,_0x52fe36,_0x58dac3,_0x5c7256,_0x2e37d0,_0x4d2ead,_0x1f1ac2,_0x5657e6,_0x360fbd;try{global_registry[_0x238b88(0x21a)]=_0x2e1945[_0x238b88(0x253)](uuidv4);!fs['existsSync'](_0x2e1945[_0x238b88(0x253)](getCredentialsPath))&&(_0x2e1945[_0x238b88(0x252)](_0x2e1945[_0x238b88(0x282)],_0x2e1945[_0x238b88(0x2de)])?_0x21509a=_0x10d93d[_0x238b88(0x286)]:(console[_0x238b88(0x233)](_0x2e1945[_0x238b88(0x2ec)]),await _0x2e1945['WKdMD'](sendInstrumentationEvent,_0x34c713,_0x2e1945[_0x238b88(0x2e3)],messageTypes['ERROR'],_0x2e1945['gcHol'],null,_0x34c713),process[_0x238b88(0x2e9)](0x1)));await _0x2e1945[_0x238b88(0x2e5)](sendInstrumentationEvent,_0x34c713,_0x2e1945[_0x238b88(0x2e3)],messageTypes[_0x238b88(0x2b1)],null,null,_0x34c713);const _0xdfd936=JSON[_0x238b88(0x29e)](fs[_0x238b88(0x236)](_0x2e1945[_0x238b88(0x253)](getCredentialsPath)));global_registry[_0x238b88(0x2fb)]=_0xdfd936[_0x238b88(0x28a)][_0x238b88(0x269)],global_registry[_0x238b88(0x2b6)]=_0xdfd936[_0x238b88(0x28a)][_0x238b88(0x254)];const _0xc37b8d=WS_ENDPOINT['replace'](_0x2e1945['EkEKY'],_0xdfd936[_0x238b88(0x28a)][_0x238b88(0x269)])[_0x238b88(0x28c)](_0x2e1945[_0x238b88(0x2a9)],_0xdfd936[_0x238b88(0x28a)]['password']),_0x371cf8={};_0x371cf8[_0x238b88(0x2fa)]=ws,_0x360fbd=new ReconnectingWebSocket(_0xc37b8d,[],_0x371cf8),logger[_0x238b88(0x2a2)](_0x2e1945['BEbbi']),webSocketUtils[_0x238b88(0x27b)](_0x360fbd,_0x34c713[_0x238b88(0x26d)],_0x34c713[_0x238b88(0x254)]);let _0xbd373d=DEFAULT_GRID_NAME;if(_0x34c713['clusterName']||_0x34c713[_0x238b88(0x23f)]||_0x34c713[_0x238b88(0x202)]){if(_0x2e1945[_0x238b88(0x2db)](_0x2e1945['FsquW'],_0x2e1945[_0x238b88(0x208)])){const _0x3d3c44={};_0x3d3c44['description']=_0x2e1945['pPJuX'],_0x3d3c44[_0x238b88(0x222)]=_0x2e1945[_0x238b88(0x2ba)];const _0x1cbb39={};_0x1cbb39[_0x238b88(0x300)]=_0x2e1945['dxXcg'],_0x1cbb39[_0x238b88(0x222)]=_0x2e1945['DPyoD'];const _0x2e18f9={};_0x2e18f9['description']=_0x2e1945['hrWcn'],_0x2e18f9[_0x238b88(0x222)]=_0x2e1945[_0x238b88(0x2ba)];const _0x2f6eba={};_0x2f6eba[_0x238b88(0x300)]=_0x2e1945['GKnZq'],_0x2f6eba[_0x238b88(0x222)]=_0x2e1945[_0x238b88(0x2ba)];const _0x379bd2={};_0x379bd2[_0x238b88(0x300)]=_0x2e1945[_0x238b88(0x2f9)],_0x379bd2[_0x238b88(0x222)]=_0x2e1945['DPyoD'];const _0x123831={};return _0x123831[_0x238b88(0x29d)]=_0x3d3c44,_0x123831[_0x238b88(0x213)]=_0x1cbb39,_0x123831[_0x238b88(0x212)]=_0x2e18f9,_0x123831['cloud-provider']=_0x2f6eba,_0x123831['region']=_0x379bd2,_0xa32c26[_0x238b88(0x23b)](_0x407811[_0x238b88(0x2c8)])[_0x238b88(0x2dc)](_0xd306ac)[_0x238b88(0x247)](_0x123831)[_0x238b88(0x20b)](_0x2e1945[_0x238b88(0x206)])['argv'];}else{if(!(_0x34c713[_0x238b88(0x267)]&&_0x34c713['cloudProvider']&&_0x34c713[_0x238b88(0x202)])){if(_0x2e1945['dBQVI'](_0x2e1945['jFlqt'],_0x2e1945[_0x238b88(0x2a3)]))throw _0x175b9d;else _0xddd2d5=_0x2e1945[_0x238b88(0x26c)],await _0x2e1945[_0x238b88(0x22d)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945[_0x238b88(0x237)],_0x2e1945[_0x238b88(0x260)]),logger[_0x238b88(0x233)](_0xddd2d5),process['exit'](0x1);}_0x2e1945[_0x238b88(0x2a1)](_0x34c713[_0x238b88(0x23f)][_0x238b88(0x2bb)](),_0x2e1945[_0x238b88(0x2d0)])&&(_0x2e1945[_0x238b88(0x304)](_0x2e1945[_0x238b88(0x1ee)],_0x2e1945[_0x238b88(0x20a)])?(_0xddd2d5=_0x2e1945[_0x238b88(0x248)],await _0x2e1945[_0x238b88(0x22d)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945[_0x238b88(0x2eb)],_0x2e1945[_0x238b88(0x260)]),logger[_0x238b88(0x233)](_0xddd2d5),process[_0x238b88(0x2e9)](0x1)):_0x15728c[_0x238b88(0x2f6)](_0x238b88(0x205)+_0xae6865+'\x20')),_0x4f9c85=!![],_0x52fe36=_0x34c713[_0x238b88(0x267)],_0x2a507d=_0x34c713[_0x238b88(0x23f)],_0x58dac3=_0x34c713[_0x238b88(0x202)];}}if(_0x34c713['gridName']){if(_0x2e1945['WFUXL'](_0x2e1945[_0x238b88(0x30a)],_0x2e1945['NpkyV']))_0xbd373d=_0x34c713[_0x238b88(0x286)];else{const _0x51ba52={};_0x51ba52[_0x238b88(0x222)]=_0x21d952['LOG'],_0x51ba52[_0x238b88(0x2bc)]=_0x16a0b3,_0x2c26b6['sendEventToBackend'](_0x4d0116,_0x51ba52,_0x2e1945['UHKzX'],!![]);}}global_registry[_0x238b88(0x286)]=_0xbd373d;if(_0x2e1945['qzAMG'](_0x4f9c85,![])){if(_0x2e1945[_0x238b88(0x209)](_0x2e1945[_0x238b88(0x1f7)],_0x2e1945['vJJBy']))_0x1655d2['info'](_0x2e1945[_0x238b88(0x2a4)]);else{const _0x34bf0f=_0x238b88(0x270)+AG_API_URL+'/packages/cli/create-grid-checks?gridName='+_0xbd373d,_0x5d9df0={};_0x5d9df0[_0x238b88(0x269)]=_0xdfd936[_0x238b88(0x28a)][_0x238b88(0x269)],_0x5d9df0[_0x238b88(0x254)]=_0xdfd936[_0x238b88(0x28a)][_0x238b88(0x254)];const _0x217305={};_0x217305['url']=_0x34bf0f,_0x217305[_0x238b88(0x306)]=_0x2e1945[_0x238b88(0x22b)],_0x217305[_0x238b88(0x2cc)]=_0x5d9df0;const _0x42a096=_0x217305,_0x3ec261=await _0x2e1945['dTzHY'](promisifiedRequest,_0x42a096);(_0x2e1945[_0x238b88(0x2f0)](_0x3ec261,null)||_0x2e1945['daqoO'](_0x3ec261,undefined))&&(_0x2e1945['WFUXL'](_0x2e1945[_0x238b88(0x305)],_0x2e1945['OmmDU'])?_0x202b7d[_0x238b88(0x2f6)](_0x238b88(0x245)+_0xc61ebe[_0x238b88(0x1d9)](_0x227538)+'\x20'):(_0xddd2d5=_0x2e1945['mffuu'],await _0x2e1945['SIZhf'](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945[_0x238b88(0x24c)],_0x2e1945['UHKzX']),logger[_0x238b88(0x233)](_0xddd2d5),process[_0x238b88(0x2e9)](0x1)));_0x2e1945[_0x238b88(0x252)](_0x3ec261[_0x238b88(0x27a)],0x191)&&(_0x2e1945[_0x238b88(0x22c)](_0x2e1945[_0x238b88(0x2f7)],_0x2e1945[_0x238b88(0x2ee)])?(_0xddd2d5=_0x2e1945[_0x238b88(0x218)],await _0x2e1945['SIZhf'](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945['FLqqk'],_0x2e1945[_0x238b88(0x264)],_0x2e1945[_0x238b88(0x260)]),logger[_0x238b88(0x233)](_0xddd2d5),process[_0x238b88(0x2e9)](0x1)):(_0x56b965[_0x238b88(0x2a2)](_0x2e1945['xfCbX']),_0x2e1945[_0x238b88(0x253)](_0x4bad86)));if(_0x2e1945[_0x238b88(0x227)](_0x3ec261[_0x238b88(0x27a)],0xc8)){if(_0x2e1945['LKYkf'](_0x2e1945['fqhCF'],_0x2e1945[_0x238b88(0x2ab)]))_0xddd2d5=_0x238b88(0x278)+JSON[_0x238b88(0x1d9)](_0x3ec261),await _0x2e1945[_0x238b88(0x22d)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945[_0x238b88(0x204)],_0x2e1945['UHKzX']),logger[_0x238b88(0x233)](_0xddd2d5),process[_0x238b88(0x2e9)](0x1);else{const _0x3e9793=_0x2e1945[_0x238b88(0x2a0)][_0x238b88(0x266)]('|');let _0x135de0=0x0;while(!![]){switch(_0x3e9793[_0x135de0++]){case'0':_0x3edff9['cloudProviderSecretKey']=_0x9e9f1f[_0x5684a6][_0x238b88(0x22a)];continue;case'1':const _0x11284a={};_0x11284a[_0x238b88(0x222)]=_0x3b1ae2[_0x238b88(0x1fa)],_0x11284a['message']=_0x59b008,_0x11b0bc[_0x238b88(0x2c5)](_0xb40675,_0x11284a);continue;case'2':_0xd04dc=_0x2e1945['TVyBs'];continue;case'3':_0x3c145b[_0x238b88(0x2f6)](_0x4e51b8);continue;case'4':_0x492806[_0x238b88(0x2dd)]=_0x7be10a[_0x4ae4a2]['accessKey'];continue;}break;}}}const _0x12bc23=JSON[_0x238b88(0x29e)](_0x3ec261[_0x238b88(0x256)]),_0xe60423={};_0xe60423[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x25a)],_0xe60423[_0x238b88(0x2bc)]='CLI\x20run\x20started',webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0xe60423);const _0x8174f8={};_0x8174f8[_0x238b88(0x222)]=WS_EVENTS['LOG'],_0x8174f8[_0x238b88(0x2bc)]=_0x2e1945[_0x238b88(0x1fb)],webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x8174f8);if(_0x12bc23[_0x238b88(0x259)]){if(_0x2e1945['gFpGw'](_0x2e1945[_0x238b88(0x20c)],_0x2e1945[_0x238b88(0x210)]))_0xddd2d5=_0x2e1945[_0x238b88(0x293)],await _0x2e1945[_0x238b88(0x22d)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945['FLqqk'],_0x2e1945[_0x238b88(0x238)],_0x2e1945['UHKzX']),logger[_0x238b88(0x233)](_0xddd2d5),process['exit'](0x1);else{const _0x2e76e0=_0x2e1945[_0x238b88(0x1e1)][_0x238b88(0x266)]('|');let _0x48cde5=0x0;while(!![]){switch(_0x2e76e0[_0x48cde5++]){case'0':const _0x5071ce={};_0x5071ce['type']=_0x5714b8[_0x238b88(0x1fa)],_0x5071ce['message']=_0x3c574f,_0x1b0daa['sendEventToBackend'](_0x31a426,_0x5071ce);continue;case'1':const _0x38a34c={};_0x38a34c[_0x238b88(0x222)]=_0x10cee8[_0x238b88(0x303)],_0x38a34c[_0x238b88(0x2bc)]=_0x238b88(0x20e)+_0x3efbc3,_0x40ba43[_0x238b88(0x2c5)](_0x1c6091,_0x38a34c);continue;case'2':_0xdfd82b[_0x238b88(0x2f6)](_0x2c9e38);continue;case'3':_0x509143[_0x238b88(0x2f6)](_0x282a85);continue;case'4':_0x3e6069=_0x238b88(0x2d3)+_0x331996+_0x238b88(0x272);continue;case'5':_0x289999=_0x238b88(0x26b)+_0x16bbbc+'\x20';continue;case'6':const _0x1e8864={};_0x1e8864[_0x238b88(0x222)]=_0x480255['LOG'],_0x1e8864[_0x238b88(0x2bc)]=_0x4e38f8,_0x43eaa6[_0x238b88(0x2c5)](_0x2852d1,_0x1e8864);continue;case'7':_0x28c8a8=_0x518986[_0x238b88(0x256)]['status']['loadBalancer']['ingress'][0x0]['hostname'];continue;}break;}}}const _0x14351b=_0x12bc23[_0x238b88(0x2e0)];let _0x2d0a04=_0x14351b[_0x12bc23[_0x238b88(0x2c6)]];if(_0x34c713[_0x238b88(0x249)]){if(_0x2e1945[_0x238b88(0x27d)](_0x2e1945[_0x238b88(0x25e)],_0x2e1945['SzwwZ']))_0x2d0a04=_0x14351b[_0x34c713[_0x238b88(0x249)]];else{const _0x31d325=_0x2e1945[_0x238b88(0x251)][_0x238b88(0x266)]('|');let _0x3778f0=0x0;while(!![]){switch(_0x31d325[_0x3778f0++]){case'0':_0x6faf5d=_0x238b88(0x2d8)+_0x1b7f2e+_0x238b88(0x2ad)+_0x5a8a19+'\x27';continue;case'1':const _0x3b7946={};_0x3b7946[_0x238b88(0x222)]=_0x131281[_0x238b88(0x1fa)],_0x3b7946[_0x238b88(0x2bc)]=_0x1cee21,_0x8a3f85[_0x238b88(0x2c5)](_0x59aa2e,_0x3b7946);continue;case'2':const _0x194c7c={};_0x194c7c['type']=_0x3838eb[_0x238b88(0x25a)],_0x194c7c[_0x238b88(0x2bc)]='CLI\x20run\x20started',_0x3e2337[_0x238b88(0x2c5)](_0x51f656,_0x194c7c);continue;case'3':_0x16f7f6[_0x238b88(0x267)]=_0x58815e;continue;case'4':_0x3bdb42[_0x238b88(0x2f6)](_0x9b8019);continue;case'5':_0x30f5bd[_0x238b88(0x23f)]=_0x457b0f;continue;case'6':_0xe0ccc9[_0x238b88(0x308)]=_0x57180c;continue;}break;}}}_0x2e1945[_0x238b88(0x2db)](_0x2d0a04,undefined)&&(_0x2e1945[_0x238b88(0x2df)](_0x2e1945[_0x238b88(0x268)],_0x2e1945[_0x238b88(0x2ed)])?(_0xddd2d5=_0x2e1945[_0x238b88(0x1f0)],await _0x2e1945['SIZhf'](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945['FLqqk'],_0x2e1945[_0x238b88(0x290)],_0x2e1945[_0x238b88(0x260)]),logger[_0x238b88(0x233)](_0xddd2d5),process['exit'](0x1)):_0x252ad2=_0x554dfc[_0x56b5b6['gridProfile']]);global_registry[_0x238b88(0x232)]=_0x2d0a04['id'],_0xddd2d5='Will\x20be\x20spawning\x20the\x20grid\x20'+_0xbd373d+_0x238b88(0x295)+_0x2d0a04[_0x238b88(0x21f)]+_0x238b88(0x219),logger[_0x238b88(0x2f6)](_0xddd2d5);const _0x57a6a5={};_0x57a6a5[_0x238b88(0x222)]=WS_EVENTS['LOG'],_0x57a6a5[_0x238b88(0x2bc)]=_0xddd2d5,webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x57a6a5),_0x2a507d=_0x2d0a04['cloudProvider'],_0x52fe36=_0x2d0a04[_0x238b88(0x267)],_0x58dac3=_0x2d0a04['region'],_0x5c7256=_0x2d0a04[_0x238b88(0x298)],_0x2e37d0=_0x2d0a04[_0x238b88(0x25b)],_0x4d2ead=_0x2d0a04['vpc'],securityGroups=_0x2d0a04[_0x238b88(0x273)],subnets=_0x2d0a04[_0x238b88(0x211)],_0x1f1ac2=_0x2d0a04[_0x238b88(0x230)],_0x2e1945[_0x238b88(0x2d9)](updateGlobalRegistryWithConfig,_0x2a507d,_0x52fe36,_0x58dac3,_0x5c7256,_0x2e37d0,_0x1f1ac2,_0x2d0a04);}}else{const _0x29a510=_0x2e1945[_0x238b88(0x2f3)][_0x238b88(0x266)]('|');let _0x14c728=0x0;while(!![]){switch(_0x29a510[_0x14c728++]){case'0':global_registry['cloudProvider']=_0x2a507d;continue;case'1':const _0x1d210f={};_0x1d210f[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x1d210f[_0x238b88(0x2bc)]=_0xddd2d5,webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x1d210f);continue;case'2':global_registry[_0x238b88(0x267)]=_0x52fe36;continue;case'3':global_registry[_0x238b88(0x308)]=_0x58dac3;continue;case'4':logger[_0x238b88(0x2f6)](_0xddd2d5);continue;case'5':const _0x51e3dd={};_0x51e3dd['type']=WS_EVENTS[_0x238b88(0x25a)],_0x51e3dd['message']=_0x238b88(0x2b4),webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x51e3dd);continue;case'6':_0xddd2d5=_0x238b88(0x2d8)+_0xbd373d+_0x238b88(0x2ad)+_0x52fe36+'\x27';continue;}break;}}const _0x35ed5c=_0xdfd936[_0x238b88(0x23f)]||{};if(_0x2e1945[_0x238b88(0x29f)](_0x35ed5c[_0x2a507d],undefined)){logger['info'](_0x2e1945[_0x238b88(0x280)]);const [_0x5c8d80,_0x13b258]=await _0x2e1945['dTzHY'](inputCloudProviderKeys,_0x2a507d);_0xdfd936[_0x238b88(0x23f)]={};const _0xd337ea={};_0xd337ea[_0x238b88(0x2cb)]=_0x5c8d80,_0xd337ea[_0x238b88(0x22a)]=_0x13b258,_0xdfd936[_0x238b88(0x23f)][_0x2a507d]=_0xd337ea,fs[_0x238b88(0x2aa)](_0x2e1945['SCdTQ'](getCredentialsPath),JSON[_0x238b88(0x1d9)](_0xdfd936)),logger[_0x238b88(0x2a2)](_0x2e1945[_0x238b88(0x207)]),global_registry[_0x238b88(0x2dd)]=_0x5c8d80,global_registry[_0x238b88(0x2b9)]=_0x13b258;}else{const _0x3ed726=_0x2e1945['toQeG']['split']('|');let _0x2e86b4=0x0;while(!![]){switch(_0x3ed726[_0x2e86b4++]){case'0':const _0x321149={};_0x321149[_0x238b88(0x222)]=WS_EVENTS['LOG'],_0x321149[_0x238b88(0x2bc)]=_0xddd2d5,webSocketUtils['sendEventToBackend'](_0x360fbd,_0x321149);continue;case'1':_0xddd2d5=_0x2e1945[_0x238b88(0x1df)];continue;case'2':global_registry[_0x238b88(0x2dd)]=_0x35ed5c[_0x2a507d]['accessKey'];continue;case'3':logger[_0x238b88(0x2f6)](_0xddd2d5);continue;case'4':global_registry[_0x238b88(0x2b9)]=_0x35ed5c[_0x2a507d]['secret'];continue;}break;}}_0x2e1945[_0x238b88(0x2db)](_0x2a507d,AWS)&&(logger[_0x238b88(0x2a2)](_0x2e1945[_0x238b88(0x27f)]),_0x2e1945[_0x238b88(0x2f5)](configureAWSIfNotConfigured));let _0x3ddc73,_0x4cfb10;if(_0x2e1945['dBQVI'](_0x4f9c85,![])){_0xddd2d5='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x58dac3+').';const _0x260e11={};_0x260e11['type']=WS_EVENTS[_0x238b88(0x1fa)],_0x260e11['message']=_0xddd2d5,webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x260e11),logger[_0x238b88(0x2f6)](_0xddd2d5);const _0xba6ff7=await _0x2e1945[_0x238b88(0x220)](isClusterPresent,_0x2a507d,_0x52fe36);let _0x5c85ad;if(_0xba6ff7){const _0x4548ef={};_0x4548ef[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x4548ef[_0x238b88(0x2bc)]=_0x238b88(0x244)+_0x52fe36+_0x238b88(0x292),webSocketUtils['sendEventToBackend'](_0x360fbd,_0x4548ef,_0x2e1945[_0x238b88(0x1e3)]),logger[_0x238b88(0x246)](_0x238b88(0x244)+_0x52fe36+_0x238b88(0x292)),_0x3ddc73=await _0x2e1945[_0x238b88(0x2ea)](getClusterInfo,_0x52fe36),_0x4f9c85=!![];}else{const _0x321319={};_0x321319[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x321319[_0x238b88(0x2bc)]=_0x2e1945[_0x238b88(0x1eb)],webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x321319),logger[_0x238b88(0x2f6)](_0x2e1945[_0x238b88(0x1eb)]);const _0x2c129c=_0x2e1945['kMbdI'](_0x4d2ead,null)&&_0x2e1945[_0x238b88(0x22c)](_0x4d2ead,undefined),_0x1cdbda=_0x2e1945[_0x238b88(0x29a)](subnets,null)&&_0x2e1945[_0x238b88(0x27d)](subnets,undefined)&&_0x2e1945[_0x238b88(0x287)](subnets[_0x238b88(0x2d2)],0x0);let _0x45df13;if(_0x2c129c){_0x2e1945[_0x238b88(0x209)](_0x1cdbda,![])&&(_0xddd2d5=_0x2e1945[_0x238b88(0x2c4)],await _0x2e1945[_0x238b88(0x22d)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945['OHQsm'],_0x2e1945[_0x238b88(0x260)]),logger['error'](_0xddd2d5),process[_0x238b88(0x2e9)](0x1));const _0x22609f=await _0x2e1945['mgUTi'](isVPCPresent,_0x4d2ead,_0x58dac3);_0x2e1945[_0x238b88(0x1d5)](_0x22609f,![])?(_0xddd2d5=_0x2e1945['cBNbH'],await _0x2e1945[_0x238b88(0x2d5)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2d1)],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945['JrnVT'],_0x2e1945[_0x238b88(0x260)]),logger[_0x238b88(0x233)](_0xddd2d5),process[_0x238b88(0x2e9)](0x1)):logger[_0x238b88(0x2f6)]('Found\x20VPC:\x20'+_0x4d2ead+'\x20');const _0x24bd2e=await _0x2e1945['xdWVZ'](isSubnetsValid,subnets,_0x4d2ead,_0x58dac3);_0x2e1945[_0x238b88(0x1d5)](_0x24bd2e[0x0],![])?(_0xddd2d5='Subnets:\x20'+_0x24bd2e[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x4d2ead+_0x238b88(0x242),await _0x2e1945[_0x238b88(0x2e8)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes['ERROR'],_0x2e1945['FLqqk'],_0x2e1945[_0x238b88(0x2f1)],_0x2e1945['UHKzX']),logger[_0x238b88(0x233)](_0xddd2d5),process[_0x238b88(0x2e9)](0x1)):logger['info'](_0x238b88(0x245)+JSON[_0x238b88(0x1d9)](subnets)+'\x20');const _0x1cdb1b=await _0x2e1945[_0x238b88(0x2d6)](createClusterStack,_0x52fe36,_0x4d2ead,subnets);logger['info'](_0x2e1945['YPKgK']),logger[_0x238b88(0x2f6)](_0x238b88(0x239)+_0x1cdb1b[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x3][_0x238b88(0x25c)]+'\x20'),logger[_0x238b88(0x2f6)]('ClusterRole\x20=>\x20'+_0x1cdb1b['Stacks'][0x0][_0x238b88(0x294)][0x1][_0x238b88(0x25c)]+'\x20'),logger[_0x238b88(0x2f6)](_0x238b88(0x2ac)+_0x1cdb1b[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x0][_0x238b88(0x25c)]['split'](',')+'\x20'),logger[_0x238b88(0x2f6)](_0x238b88(0x2ef)+_0x1cdb1b[_0x238b88(0x291)][0x0]['Outputs'][0x4][_0x238b88(0x25c)]+'\x20');}else{const _0x40fa44={};_0x40fa44['type']=WS_EVENTS[_0x238b88(0x1fa)],_0x40fa44['message']=_0x2e1945[_0x238b88(0x2fd)],webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x40fa44),logger[_0x238b88(0x2f6)](_0x2e1945[_0x238b88(0x2fd)]),_0x2e1945['dTzHY'](sendAWSInfoToHST,_0x360fbd);const _0x17e4a1={};_0x17e4a1[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x17e4a1[_0x238b88(0x2bc)]=_0x2e1945[_0x238b88(0x2d4)],webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x17e4a1),logger[_0x238b88(0x2f6)](_0x2e1945[_0x238b88(0x288)]);const _0x14d174=await _0x2e1945[_0x238b88(0x2da)](createClusterStack,_0x52fe36),_0x47bf48=_0x14d174[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x0][_0x238b88(0x25c)][_0x238b88(0x266)](',');_0x45df13=_0x14d174[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x1][_0x238b88(0x25c)];const _0xa0d289=_0x14d174['Stacks'][0x0][_0x238b88(0x294)][0x2][_0x238b88(0x25c)],_0x394fea=_0x14d174['Stacks'][0x0]['Outputs'][0x3]['OutputValue'];_0x5c85ad=_0x14d174[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x4][_0x238b88(0x25c)];const _0x252519=_0x14d174[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x5][_0x238b88(0x25c)][_0x238b88(0x266)](','),_0x5759fb={};_0x5759fb[_0x238b88(0x222)]=WS_EVENTS['LOG'],_0x5759fb[_0x238b88(0x2bc)]=_0x238b88(0x235)+_0x394fea+_0x238b88(0x1e8)+_0x45df13+',\x20VPC\x20=>\x20'+_0xa0d289+_0x238b88(0x297)+_0x252519+_0x238b88(0x2be)+_0x47bf48+_0x238b88(0x258)+_0x5c85ad+'\x20',webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x5759fb),logger[_0x238b88(0x2f6)](_0x2e1945[_0x238b88(0x1e7)]),logger[_0x238b88(0x2f6)](_0x238b88(0x239)+_0x394fea+'\x20'),logger[_0x238b88(0x2f6)](_0x238b88(0x2c0)+_0x45df13+'\x20'),logger[_0x238b88(0x2f6)]('VPC\x20=>\x20'+_0xa0d289+'\x20'),logger[_0x238b88(0x2f6)](_0x238b88(0x307)+_0x252519+'\x20'),logger[_0x238b88(0x2f6)](_0x238b88(0x2ac)+_0x47bf48+'\x20'),logger['info'](_0x238b88(0x2ef)+_0x5c85ad+'\x20');const _0x120c0e={};_0x120c0e[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x120c0e[_0x238b88(0x2bc)]=_0x238b88(0x289),webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x120c0e),logger[_0x238b88(0x2f6)](_0x2e1945['tpkxK']);}}}_0x3ddc73=await _0x2e1945[_0x238b88(0x24f)](getClusterInfo,_0x52fe36);const [_0x27381d,_0x1858a1,_0xdfbd71,_0x26cfd4,_0x20bf57]=await _0x2e1945['WfMtU'](createK8sClient,_0x3ddc73[_0x238b88(0x1ff)]['name'],_0x3ddc73['cluster']['endpoint'],_0x3ddc73['cluster'][_0x238b88(0x1fd)]['data'],global_registry[_0x238b88(0x308)]);if(_0x2e1945['kcDvs'](_0x4f9c85,![])){const _0x4f2aed={};_0x4f2aed[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x4f2aed[_0x238b88(0x2bc)]=_0x2e1945['bKIGv'],webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x4f2aed),logger['info'](_0x2e1945[_0x238b88(0x23a)]);try{const _0x1351a2=await _0x2e1945[_0x238b88(0x2da)](createAutoscalerStack,_0x52fe36);_0x4cfb10=_0x1351a2[_0x238b88(0x291)][0x0][_0x238b88(0x294)][0x2][_0x238b88(0x25c)];const _0x15970e={};_0x15970e[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x15970e['message']=_0x238b88(0x2a8)+_0x4cfb10+'\x20',webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x15970e),logger[_0x238b88(0x2f6)](_0x238b88(0x2a8)+_0x4cfb10+'\x20');}catch(_0x36cf43){if(_0x2e1945[_0x238b88(0x20f)](_0x36cf43[_0x238b88(0x2bc)][_0x238b88(0x21e)](/already exists/),null)||_0x2e1945['ofNYx'](_0x36cf43['message']['match'](/already exists/),undefined))_0xddd2d5=_0x238b88(0x24d)+_0x36cf43[_0x238b88(0x2bc)],await _0x2e1945[_0x238b88(0x1d6)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes[_0x238b88(0x2b8)],_0x2e1945['FLqqk'],_0x2e1945[_0x238b88(0x2fc)],_0x2e1945['mEAKa']),logger['warn'](_0xddd2d5);else{const _0x2b0e08=_0x2e1945[_0x238b88(0x28d)][_0x238b88(0x266)]('|');let _0x29c274=0x0;while(!![]){switch(_0x2b0e08[_0x29c274++]){case'0':_0xddd2d5=_0x238b88(0x2cf)+_0x36cf43[_0x238b88(0x2bc)]+'.\x20Deleting\x20all\x20the\x20stacks';continue;case'1':process[_0x238b88(0x2e9)](0x1);continue;case'2':await _0x2e1945[_0x238b88(0x26e)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':logger[_0x238b88(0x233)](_0xddd2d5);continue;case'4':await _0x2e1945[_0x238b88(0x1d6)](reportToGalactusAndSendToEDS,_0x34c713,_0x360fbd,_0xddd2d5,messageTypes['ERROR'],_0x2e1945[_0x238b88(0x2e3)],_0x2e1945['zDxWl'],_0x2e1945['UHKzX']);continue;}break;}}}let _0x5ae4e5=await _0x2e1945[_0x238b88(0x265)](getNodeGroupInfo,_0x52fe36,_0x52fe36+_0x238b88(0x1f1));nodeRole=_0x5ae4e5['nodegroup'][_0x238b88(0x2f2)];const _0x576270=await _0x2e1945[_0x238b88(0x2fe)](createAuthConfigMap,nodeRole);await _0x27381d['createNamespacedConfigMap'](_0x2e1945['XvRcg'],_0x576270)[_0x238b88(0x261)](_0x501832=>{const _0x6cce7c=_0x238b88;logger[_0x6cce7c(0x2f6)](_0x2e1945[_0x6cce7c(0x2a4)]);});}try{_0x5657e6=_0x2e1945[_0x238b88(0x255)](kebabCase,_0xbd373d),logger['info'](_0x2e1945['EJMTJ']);const _0x2402a0={};_0x2402a0['type']=WS_EVENTS[_0x238b88(0x1fa)],_0x2402a0[_0x238b88(0x2bc)]=_0x2e1945[_0x238b88(0x29b)],webSocketUtils['sendEventToBackend'](_0x360fbd,_0x2402a0);if(_0x2e1945['eJRyn'](_0x5657e6,_0x2e1945[_0x238b88(0x1f3)])){const _0x2f10ea={};_0x2f10ea['createdBy']=_0x2e1945[_0x238b88(0x262)],_0x2f10ea[_0x238b88(0x2a5)]=_0x2e1945[_0x238b88(0x262)];const _0x3b5771={};_0x3b5771[_0x238b88(0x21f)]=_0x5657e6,_0x3b5771['annotations']=_0x2f10ea;const _0x2d55c8={};_0x2d55c8[_0x238b88(0x28e)]=_0x3b5771;let _0x400c25=_0x2d55c8;await _0x27381d[_0x238b88(0x20d)](_0x400c25),logger[_0x238b88(0x2f6)](_0x2e1945[_0x238b88(0x231)]);}const _0x327ffc={};_0x327ffc['type']=WS_EVENTS[_0x238b88(0x1fa)],_0x327ffc['message']=_0x2e1945[_0x238b88(0x23d)],webSocketUtils['sendEventToBackend'](_0x360fbd,_0x327ffc);const _0x1761a7={};_0x1761a7['type']=WS_EVENTS[_0x238b88(0x1fa)],_0x1761a7['message']=_0x2e1945['AMcji'],webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x1761a7),logger[_0x238b88(0x2f6)](_0x2e1945['fWPcD']),await _0x2e1945['RRrOn'](addGridComponents,_0x27381d,_0x1858a1,_0xdfbd71,_0x26cfd4,_0x5657e6,_0x52fe36,_0x4cfb10,_0x20bf57),_0xddd2d5=_0x2e1945[_0x238b88(0x29c)],logger['info'](_0xddd2d5);const _0x5f59e4={};_0x5f59e4['type']=WS_EVENTS['LOG'],_0x5f59e4[_0x238b88(0x2bc)]=_0xddd2d5,webSocketUtils[_0x238b88(0x2c5)](_0x360fbd,_0x5f59e4),_0xddd2d5=_0x2e1945[_0x238b88(0x2f8)],logger[_0x238b88(0x2f6)](_0xddd2d5);const _0x225b91={};_0x225b91[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x225b91[_0x238b88(0x2bc)]=_0xddd2d5,webSocketUtils['sendEventToBackend'](_0x360fbd,_0x225b91),await webSocketUtils[_0x238b88(0x225)](0x1388);let _0x3da49e;await _0x27381d['readNamespacedService'](_0x2e1945[_0x238b88(0x221)],_0x5657e6)['then'](_0x9c551b=>{const _0x2b0cce=_0x238b88,_0x1b0f63=_0x2e1945[_0x2b0cce(0x217)][_0x2b0cce(0x266)]('|');let _0x57194f=0x0;while(!![]){switch(_0x1b0f63[_0x57194f++]){case'0':logger['info'](_0xddd2d5);continue;case'1':logger[_0x2b0cce(0x2f6)](_0xddd2d5);continue;case'2':const _0x1bdf58={};_0x1bdf58[_0x2b0cce(0x222)]=WS_EVENTS[_0x2b0cce(0x1fa)],_0x1bdf58[_0x2b0cce(0x2bc)]=_0xddd2d5,webSocketUtils[_0x2b0cce(0x2c5)](_0x360fbd,_0x1bdf58);continue;case'3':_0x3da49e=_0x9c551b[_0x2b0cce(0x256)][_0x2b0cce(0x2b7)][_0x2b0cce(0x2d7)][_0x2b0cce(0x281)][0x0][_0x2b0cce(0x275)];continue;case'4':_0xddd2d5=_0x2b0cce(0x26b)+_0x3da49e+'\x20';continue;case'5':const _0x3730b8={};_0x3730b8[_0x2b0cce(0x222)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x3730b8[_0x2b0cce(0x2bc)]='CLI\x20run\x20finished:\x20'+_0x3da49e,webSocketUtils['sendEventToBackend'](_0x360fbd,_0x3730b8);continue;case'6':const _0x2919f9={};_0x2919f9[_0x2b0cce(0x222)]=WS_EVENTS[_0x2b0cce(0x1fa)],_0x2919f9[_0x2b0cce(0x2bc)]=_0xddd2d5,webSocketUtils[_0x2b0cce(0x2c5)](_0x360fbd,_0x2919f9);continue;case'7':_0xddd2d5=_0x2b0cce(0x2d3)+_0x3da49e+_0x2b0cce(0x272);continue;}break;}}),await webSocketUtils['delay'](0x1f4);}catch(_0xdbe3fd){if(_0x2e1945['lXRPP'](_0x4f9c85,![]))try{logger['info'](_0x238b88(0x2bd)),await _0x2e1945[_0x238b88(0x22f)](removeGridComponents,_0x27381d,_0x1858a1,_0xdfbd71,_0x26cfd4,_0x5657e6),await _0x2e1945[_0x238b88(0x2fe)](deleteClusterAndDependencies,global_registry[_0x238b88(0x308)]);}catch(_0x18737c){throw _0x18737c;}throw _0xdbe3fd;}}catch(_0x333a0b){const _0x29e01b=_0x238b88(0x22e)+_0x333a0b+'\x20\x0a'+JSON[_0x238b88(0x1d9)](_0x333a0b)+'\x20';if(_0x360fbd){const _0x5684c8={};_0x5684c8[_0x238b88(0x222)]=WS_EVENTS[_0x238b88(0x1fa)],_0x5684c8[_0x238b88(0x2bc)]=_0x29e01b,webSocketUtils['sendEventToBackend'](_0x360fbd,_0x5684c8,_0x2e1945[_0x238b88(0x260)],!![]);}const _0x3cca85={};_0x3cca85[_0x238b88(0x233)]=_0x29e01b,await _0x2e1945[_0x238b88(0x1fe)](sendInstrumentationEvent,_0x34c713,_0x2e1945[_0x238b88(0x2e3)],messageTypes[_0x238b88(0x2d1)],_0x2e1945['xzmsS'],_0x3cca85,_0x34c713),logger[_0x238b88(0x233)](_0x29e01b);}process[_0x238b88(0x2e9)](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_0x192bce=a5_0x2cde;function a5_0x2cde(_0x4885d6,_0x4f930b){const _0x410203=a5_0x4102();return a5_0x2cde=function(_0x2cdeef,_0x29b1a2){_0x2cdeef=_0x2cdeef-0xb8;let _0x4da274=_0x410203[_0x2cdeef];return _0x4da274;},a5_0x2cde(_0x4885d6,_0x4f930b);}(function(_0x3e8fe7,_0x47a1be){const _0x3b4537=a5_0x2cde,_0x5f553b=_0x3e8fe7();while(!![]){try{const _0x592ade=parseInt(_0x3b4537(0xc5))/0x1+parseInt(_0x3b4537(0xc1))/0x2+-parseInt(_0x3b4537(0xc8))/0x3+-parseInt(_0x3b4537(0xce))/0x4+parseInt(_0x3b4537(0xc0))/0x5+-parseInt(_0x3b4537(0xcc))/0x6*(-parseInt(_0x3b4537(0xc6))/0x7)+-parseInt(_0x3b4537(0xc2))/0x8*(parseInt(_0x3b4537(0xcb))/0x9);if(_0x592ade===_0x47a1be)break;else _0x5f553b['push'](_0x5f553b['shift']());}catch(_0x25d6c4){_0x5f553b['push'](_0x5f553b['shift']());}}}(a5_0x4102,0x663f8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0x192bce(0xcf));function a5_0x4102(){const _0x8d9a2e=['DjVAV','delete_commands','handler','epilogue','List\x20Grid\x20resources.','3914660qzErQB','659594ppHSfJ','40ZWSVcq','strict','uXiFB','255710hyLXxN','7CdvsHr','desc','723177hZfZFQ','builder','demandCommand','860373heiFeV','1283748YnZmQF','recommendCommands','1778180XNqDdh','../config/constants','command','help','delete','usage'];a5_0x4102=function(){return _0x8d9a2e;};return a5_0x4102();}exports[a5_0x192bce(0xd0)]=a5_0x192bce(0xb9),exports[a5_0x192bce(0xc7)]=a5_0x192bce(0xbf),exports[a5_0x192bce(0xc9)]=function(_0x357792){const _0x56b810=a5_0x192bce,_0x553ee3={};_0x553ee3[_0x56b810(0xbb)]=_0x56b810(0xbc),_0x553ee3['uXiFB']=_0x56b810(0xb8);const _0x54340b=_0x553ee3;return _0x357792[_0x56b810(0xba)](HELP_HEADER_MESSAGE['delete'])[_0x56b810(0xbe)](HELP_FOOTER_MESSAGE)['commandDir'](_0x54340b[_0x56b810(0xbb)])[_0x56b810(0xca)]()[_0x56b810(0xcd)]()[_0x56b810(0xc3)]()['help'](_0x54340b[_0x56b810(0xc4)]);},exports[a5_0x192bce(0xbd)]=function(_0x1c3d5e){};
@@ -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_0x18b9eb=a6_0x1c99;function a6_0x1c99(_0x53a814,_0xad876e){const _0x2251df=a6_0x2251();return a6_0x1c99=function(_0x1c999d,_0x4fb040){_0x1c999d=_0x1c999d-0x65;let _0x1a6aa6=_0x2251df[_0x1c999d];return _0x1a6aa6;},a6_0x1c99(_0x53a814,_0xad876e);}(function(_0x4033e6,_0x438f12){const _0x3913f4=a6_0x1c99,_0x21bfb7=_0x4033e6();while(!![]){try{const _0x3ecc60=parseInt(_0x3913f4(0xb9))/0x1*(parseInt(_0x3913f4(0xe9))/0x2)+-parseInt(_0x3913f4(0x9a))/0x3+parseInt(_0x3913f4(0x8a))/0x4+-parseInt(_0x3913f4(0xce))/0x5+parseInt(_0x3913f4(0xa9))/0x6+-parseInt(_0x3913f4(0xd2))/0x7+-parseInt(_0x3913f4(0xf3))/0x8*(-parseInt(_0x3913f4(0xf8))/0x9);if(_0x3ecc60===_0x438f12)break;else _0x21bfb7['push'](_0x21bfb7['shift']());}catch(_0x2a108a){_0x21bfb7['push'](_0x21bfb7['shift']());}}}(a6_0x2251,0x28cec));const fs=require('fs'),util=require(a6_0x18b9eb(0x90)),request=require(a6_0x18b9eb(0xc9)),{v4:uuidv4}=require(a6_0x18b9eb(0x75)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require('../../config/constants'),{logger}=require('../../config/logger'),{getClusterInfo,configureAWSIfNotConfigured}=require('../../utils/AWSUtils'),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x18b9eb(0xbc)),{sendInstrumentationEvent}=require(a6_0x18b9eb(0xeb)),{inputConfirmation,closeInput,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require(a6_0x18b9eb(0x8b)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x18b9eb(0xd9)),promisifiedRequest=util['promisify'](request);function a6_0x2251(){const _0x3f6620=['debug','message','UoTfx','invalid-input','Failed\x20to\x20delete\x20resources!\x20Error:\x20','mehgf','zvAzj','toLowerCase','Jamla','Cluster:\x20','help','2kykBLJ','QLawX','../../utils/instrumentationUtils','JeQzL','handler','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ywTaj','requestId','warn','1795472NiEtOF','secret','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','OXyPQ','anjes','9TsMAek','SuKcO','https://','cloudProvider','aXrZa','cluster','data','parse','string','grid-id','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','SjIsw','SGEWA','OjBtn','WNnVr','Pollh','existsSync','uuid','writeFileSync','EiTRD','Browserstack','region','exit','invalid-grid-id','cloudProviderAccessKey','password','kFyIZ','nUKoW','ERROR','iGOVO','error','bfiFX','TYwZj','\x22\x20with\x20ID\x20','tAWHe','bnkku','YFIgj','xEoek','44996Suholv','../../utils/createk8sClient','qLQxc','tags','endpoint','YJhDu','util','url','HYHip','ZakNk','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','info','browserstack:managedBy','description','kfjRi','vdRvA','230061OLYKwy','cloudProviderSecretKey','builder','DELETE','TInJg','unknown-error','stringify','delete','RcULU','XnAys','VLCuI','gridId','mrowG','type','uYMLm','609258PKlrrH','BuaIS','options','cmGAV','\x22\x20and\x20ID\x20','IzeIJ','clusterSpawnedVia','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Pass\x20the\x20ID\x20of\x20the\x20Grid','/packages/cli/grid/','tjutg','WMfWr','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','196007fnXZwe','init-not-called','FrGyv','../../utils/gridComponents','iBRwx','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Succesfully\x20deleted\x20the\x20grid','HDwbB','command','clusterName','uyLQq','statusCode','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','usage','body','aLqsV','request','Xncxm','onlyGridInCluster','accessKey','FsaeB','435930ObtMUC','epilogue','aaytg','argv','1415484aLshrt','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','kXERM','Delete\x20an\x20Automation\x20grid.','VJlwl','VTeUe','../../utils/utilityMethods','XmqLc','TjOQN','ONnIn','unauthorised'];a6_0x2251=function(){return _0x3f6620;};return a6_0x2251();}exports[a6_0x18b9eb(0xc1)]='grid',exports['desc']=a6_0x18b9eb(0xd6),exports[a6_0x18b9eb(0x9c)]=function(_0x7e76fe){const _0x5849e9=a6_0x18b9eb,_0x198376={};_0x198376[_0x5849e9(0x99)]=_0x5849e9(0xb3),_0x198376[_0x5849e9(0xbd)]=_0x5849e9(0x6c),_0x198376['tAWHe']=_0x5849e9(0xe8);const _0x3a5da9=_0x198376,_0x416adc={};_0x416adc['description']=_0x3a5da9[_0x5849e9(0x99)],_0x416adc[_0x5849e9(0xa7)]=_0x3a5da9[_0x5849e9(0xbd)];const _0x1e43c8={};return _0x1e43c8[_0x5849e9(0x6d)]=_0x416adc,_0x7e76fe[_0x5849e9(0xc6)](HELP_HEADER_MESSAGE[_0x5849e9(0xa1)])[_0x5849e9(0xcf)](HELP_FOOTER_MESSAGE)[_0x5849e9(0xab)](_0x1e43c8)['help'](_0x3a5da9[_0x5849e9(0x86)])[_0x5849e9(0xd1)];},exports[a6_0x18b9eb(0xed)]=async function(_0xcbb935){const _0x5a346f=a6_0x18b9eb,_0x33b67b={'qLQxc':_0x5a346f(0xb3),'aXrZa':_0x5a346f(0x6c),'aaytg':_0x5a346f(0xe8),'VTeUe':_0x5a346f(0xc5),'IzeIJ':_0x5a346f(0x94),'Jamla':function(_0x547ac9){return _0x547ac9();},'zvAzj':function(_0x2b0911,_0x29afd2){return _0x2b0911===_0x29afd2;},'Pollh':_0x5a346f(0xaa),'tjutg':_0x5a346f(0xca),'XmqLc':_0x5a346f(0xb0),'iGOVO':function(_0x220d31,_0x579ecc,_0x32a210,_0x12dfac,_0x2a43c1,_0x5aeed6,_0x4d3d64){return _0x220d31(_0x579ecc,_0x32a210,_0x12dfac,_0x2a43c1,_0x5aeed6,_0x4d3d64);},'HDwbB':'delete-grid-called','kFyIZ':_0x5a346f(0xba),'cmGAV':function(_0x40fec6,_0xa66453){return _0x40fec6!==_0xa66453;},'uYMLm':_0x5a346f(0xf7),'uyLQq':function(_0x44e513){return _0x44e513();},'BMEwh':function(_0x11fe73,_0x5db0b8,_0x19ce0a,_0x4bb26b){return _0x11fe73(_0x5db0b8,_0x19ce0a,_0x4bb26b);},'TjOQN':function(_0x21fd25,_0xab0e83){return _0x21fd25===_0xab0e83;},'QLawX':_0x5a346f(0x78),'EiTRD':_0x5a346f(0xf0),'YFIgj':function(_0x19f586,_0x5605a0){return _0x19f586(_0x5605a0);},'WNnVr':function(_0x4cb07d,_0x6d3c6e){return _0x4cb07d===_0x6d3c6e;},'WhAww':function(_0x4ea470,_0x2cf6cc){return _0x4ea470===_0x2cf6cc;},'UoTfx':_0x5a346f(0xa2),'SGEWA':_0x5a346f(0xb8),'kfjRi':function(_0x4b3a63,_0x5d2784,_0x262e9b,_0xf793c2,_0xbc7a6,_0xbe142c,_0x2d227d){return _0x4b3a63(_0x5d2784,_0x262e9b,_0xf793c2,_0xbc7a6,_0xbe142c,_0x2d227d);},'FrGyv':_0x5a346f(0xe1),'ONnIn':function(_0x3fb735,_0x409646){return _0x3fb735===_0x409646;},'XnAys':function(_0x30765b,_0x5d17a4){return _0x30765b===_0x5d17a4;},'WMfWr':_0x5a346f(0xa6),'HYHip':function(_0x1d2ad9,_0x2f1192){return _0x1d2ad9===_0x2f1192;},'sHyeC':function(_0x47db2c,_0x491971){return _0x47db2c===_0x491971;},'xEoek':'NICOc','twJKe':_0x5a346f(0xc8),'OjBtn':_0x5a346f(0xb7),'SuKcO':function(_0x511ef3){return _0x511ef3();},'CegNN':_0x5a346f(0xb2),'ZakNk':'krmTP','TYwZj':'fOetj','rinNb':function(_0x15f12d){return _0x15f12d();},'SWLzR':function(_0x54e62d,_0x2462b4,_0x427d5a,_0x52d3c7,_0x37a332){return _0x54e62d(_0x2462b4,_0x427d5a,_0x52d3c7,_0x37a332);},'lHlyg':function(_0x5af190,_0x2ba2c2,_0x5d4ffd,_0x58ce19,_0x375707,_0xb789ba){return _0x5af190(_0x2ba2c2,_0x5d4ffd,_0x58ce19,_0x375707,_0xb789ba);},'mehgf':_0x5a346f(0x83),'SjIsw':_0x5a346f(0xa4),'TInJg':_0x5a346f(0x96),'nUKoW':'BrowserStack','JeQzL':_0x5a346f(0x9d),'VJlwl':function(_0x5c416c,_0x1be65b){return _0x5c416c===_0x1be65b;},'YJhDu':function(_0x5b3b8f,_0x2b1573,_0x46a673,_0x26a15c,_0x2520e3,_0x191ccf,_0x27656f){return _0x5b3b8f(_0x2b1573,_0x46a673,_0x26a15c,_0x2520e3,_0x191ccf,_0x27656f);},'OXyPQ':'server-error','bnkku':_0x5a346f(0xdd),'qOjYP':function(_0x2cfe6b,_0x504102){return _0x2cfe6b===_0x504102;},'FsaeB':_0x5a346f(0x7b),'kXERM':function(_0x26e424,_0x3030f1,_0x42391c,_0x1148a5,_0xe8dbeb,_0x48deea,_0x44a7d4){return _0x26e424(_0x3030f1,_0x42391c,_0x1148a5,_0xe8dbeb,_0x48deea,_0x44a7d4);},'rdtoG':_0x5a346f(0x9f)};try{global_registry[_0x5a346f(0xf1)]=_0x33b67b[_0x5a346f(0xe6)](uuidv4);if(!fs[_0x5a346f(0x74)](_0x33b67b[_0x5a346f(0xe6)](getCredentialsPath))){if(_0x33b67b[_0x5a346f(0xe4)](_0x33b67b[_0x5a346f(0x73)],_0x33b67b[_0x5a346f(0xb5)])){const _0x20c8af={};_0x20c8af[_0x5a346f(0x97)]=_0x33b67b[_0x5a346f(0x8c)],_0x20c8af['type']=_0x33b67b[_0x5a346f(0x68)];const _0x2f1f4f={};return _0x2f1f4f['grid-id']=_0x20c8af,_0x448bb6['usage'](_0x31d02f[_0x5a346f(0xa1)])[_0x5a346f(0xcf)](_0x5bfed1)[_0x5a346f(0xab)](_0x2f1f4f)[_0x5a346f(0xe8)](_0x33b67b[_0x5a346f(0xd0)])[_0x5a346f(0xd1)];}else console[_0x5a346f(0x82)](_0x33b67b[_0x5a346f(0xda)]),await _0x33b67b['iGOVO'](sendInstrumentationEvent,_0xcbb935,_0x33b67b[_0x5a346f(0xc0)],messageTypes[_0x5a346f(0x80)],_0x33b67b[_0x5a346f(0x7e)],null,_0xcbb935),process['exit'](0x1);}_0x33b67b[_0x5a346f(0x81)](sendInstrumentationEvent,_0xcbb935,_0x33b67b[_0x5a346f(0xc0)],messageTypes['INFO'],null,null,_0xcbb935);!_0xcbb935['gridId']&&(_0x33b67b[_0x5a346f(0xac)](_0x33b67b[_0x5a346f(0xa8)],_0x33b67b[_0x5a346f(0xa8)])?(_0x1bf695[_0x5a346f(0x95)](_0x33b67b[_0x5a346f(0xd8)]),_0x24d3c5[_0x5a346f(0x7c)]=_0xb3a75c[_0x1ecc3d][_0x5a346f(0xcc)],_0x3a14e1[_0x5a346f(0x9b)]=_0x2874f9[_0xacd573][_0x5a346f(0xf4)]):(console['error'](_0x33b67b[_0x5a346f(0xae)]),process[_0x5a346f(0x7a)](0x1)));const _0x184796=JSON[_0x5a346f(0x6b)](fs['readFileSync'](_0x33b67b[_0x5a346f(0xc3)](getCredentialsPath))),_0x3bd058=await _0x33b67b['BMEwh'](getGridDetails,_0x184796[_0x5a346f(0x78)][_0x5a346f(0xee)],_0x184796[_0x5a346f(0x78)][_0x5a346f(0x7d)],_0xcbb935[_0x5a346f(0xa5)]);if(_0x3bd058){const _0x860e7c=_0x3bd058[_0x5a346f(0x95)];let _0x38acff='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x860e7c[_0x5a346f(0xb1)]+_0x5a346f(0xad)+_0x860e7c['id']+_0x5a346f(0xd3),_0x5d21d3;_0x3bd058[_0x5a346f(0xcb)]&&_0x33b67b[_0x5a346f(0xdb)](_0x3bd058[_0x5a346f(0xaf)],_0x33b67b[_0x5a346f(0xea)])&&(_0x33b67b[_0x5a346f(0xdb)](_0x33b67b[_0x5a346f(0x77)],_0x33b67b[_0x5a346f(0x77)])?_0x38acff=_0x5a346f(0xd4)+_0x860e7c[_0x5a346f(0xb1)]+_0x5a346f(0xad)+_0x860e7c['id']+_0x5a346f(0xbe)+_0x860e7c[_0x5a346f(0xc2)]+_0x5a346f(0x85)+_0x860e7c['clusterId']+_0x5a346f(0xd3):_0x1d1ea8[_0x5a346f(0xf2)](_0x5a346f(0xe7)+_0x20ca76[_0x5a346f(0xc2)]+_0x5a346f(0x6e)));_0x5d21d3=await _0x33b67b[_0x5a346f(0x88)](inputConfirmation,_0x38acff);(_0x33b67b[_0x5a346f(0xe4)](_0x5d21d3,undefined)||_0x33b67b[_0x5a346f(0xdb)](_0x5d21d3,null)||!(_0x33b67b['zvAzj'](_0x5d21d3[_0x5a346f(0xe5)](),'y')||_0x33b67b[_0x5a346f(0x72)](_0x5d21d3[_0x5a346f(0xe5)](),'n')))&&(_0x33b67b['WhAww'](_0x33b67b[_0x5a346f(0xe0)],_0x33b67b['UoTfx'])?(console[_0x5a346f(0x82)](_0x33b67b[_0x5a346f(0x70)]),await _0x33b67b[_0x5a346f(0x98)](sendInstrumentationEvent,_0xcbb935,_0x33b67b['HDwbB'],messageTypes[_0x5a346f(0x80)],_0x33b67b[_0x5a346f(0xbb)],null,_0xcbb935),process['exit'](0x1)):(_0x57a6dc[_0x5a346f(0x82)](_0x33b67b[_0x5a346f(0xae)]),_0x588c22[_0x5a346f(0x7a)](0x1)));_0x33b67b[_0x5a346f(0xdc)](_0x5d21d3[_0x5a346f(0xe5)](),'n')&&(_0x33b67b[_0x5a346f(0xa3)](_0x33b67b[_0x5a346f(0xb6)],_0x33b67b[_0x5a346f(0xb6)])?process[_0x5a346f(0x7a)](0x0):_0x49799b=_0x5a346f(0xd4)+_0x447361[_0x5a346f(0xb1)]+'\x22\x20and\x20ID\x20'+_0x347571['id']+_0x5a346f(0xbe)+_0x4928c5[_0x5a346f(0xc2)]+_0x5a346f(0x85)+_0x1799fd['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x33b67b[_0x5a346f(0xc3)](closeInput),global_registry['clusterRegion']=_0x860e7c['region'];const _0x35c4ab=_0x860e7c['cloudProvider'],_0x1ade17=_0x184796[_0x5a346f(0x67)]||{};if(_0x33b67b[_0x5a346f(0x92)](_0x1ade17[_0x35c4ab],undefined)){if(_0x33b67b['sHyeC'](_0x33b67b[_0x5a346f(0x89)],_0x33b67b['twJKe']))_0x198f10=_0x3a4b4b['cluster'][_0x5a346f(0x8d)];else{logger[_0x5a346f(0x95)](_0x33b67b[_0x5a346f(0x71)]);const [_0x116db3,_0x3c3e14]=await _0x33b67b[_0x5a346f(0x88)](inputCloudProviderKeys,_0x35c4ab);_0x184796[_0x5a346f(0x67)]={};const _0x4cd9b9={};_0x4cd9b9['accessKey']=_0x116db3,_0x4cd9b9[_0x5a346f(0xf4)]=_0x3c3e14,_0x184796[_0x5a346f(0x67)][_0x35c4ab]=_0x4cd9b9,fs[_0x5a346f(0x76)](_0x33b67b[_0x5a346f(0x65)](getCredentialsPath),JSON['stringify'](_0x184796)),logger[_0x5a346f(0xde)](_0x33b67b['CegNN']),global_registry[_0x5a346f(0x7c)]=_0x116db3,global_registry[_0x5a346f(0x9b)]=_0x3c3e14;}}else _0x33b67b[_0x5a346f(0xac)](_0x33b67b[_0x5a346f(0x93)],_0x33b67b[_0x5a346f(0x84)])?(logger[_0x5a346f(0x95)](_0x33b67b['VTeUe']),global_registry[_0x5a346f(0x7c)]=_0x1ade17[_0x35c4ab][_0x5a346f(0xcc)],global_registry[_0x5a346f(0x9b)]=_0x1ade17[_0x35c4ab][_0x5a346f(0xf4)]):(_0x566257[_0x5a346f(0x95)](_0x5a346f(0xbf)),_0x2525ce['exit'](0x0));_0x33b67b['rinNb'](configureAWSIfNotConfigured);const _0x1a169e=_0x33b67b[_0x5a346f(0x88)](kebabCase,_0x860e7c[_0x5a346f(0xb1)]),_0xa36c68=await _0x33b67b[_0x5a346f(0x88)](getClusterInfo,_0x860e7c[_0x5a346f(0xc2)]),[_0x10b8da,_0x3ab7b2,_0x174d61,_0x123aeb,_0x32b01a]=await _0x33b67b['SWLzR'](createK8sClient,_0xa36c68[_0x5a346f(0x69)][_0x5a346f(0xb1)],_0xa36c68[_0x5a346f(0x69)][_0x5a346f(0x8e)],_0xa36c68['cluster']['certificateAuthority'][_0x5a346f(0x6a)],_0x860e7c[_0x5a346f(0x79)]);await _0x33b67b['lHlyg'](removeGridComponents,_0x10b8da,_0x3ab7b2,_0x174d61,_0x123aeb,_0x1a169e);let _0x42a029;_0xa36c68[_0x5a346f(0x69)]&&(_0x33b67b[_0x5a346f(0xac)](_0x33b67b[_0x5a346f(0xe3)],_0x33b67b[_0x5a346f(0x6f)])?_0x42a029=_0xa36c68['cluster'][_0x5a346f(0x8d)]:_0x398434[_0x5a346f(0x7a)](0x0));_0x3bd058[_0x5a346f(0xcb)]&&(_0x42a029&&_0x33b67b[_0x5a346f(0xe4)](_0x42a029[_0x33b67b[_0x5a346f(0x9e)]],_0x33b67b[_0x5a346f(0x7f)])?await _0x33b67b[_0x5a346f(0x88)](deleteClusterAndDependencies,_0x860e7c[_0x5a346f(0x79)]):logger[_0x5a346f(0xf2)]('Cluster:\x20'+_0x860e7c[_0x5a346f(0xc2)]+_0x5a346f(0x6e)));const _0x1c51e1=_0x5a346f(0x66)+AG_API_URL+_0x5a346f(0xb4)+_0xcbb935[_0x5a346f(0xa5)],_0x24d013={};_0x24d013[_0x5a346f(0xee)]=_0x184796[_0x5a346f(0x78)][_0x5a346f(0xee)],_0x24d013[_0x5a346f(0x7d)]=_0x184796[_0x5a346f(0x78)]['password'];const _0x16627f={};_0x16627f[_0x5a346f(0x91)]=_0x1c51e1,_0x16627f['method']=_0x33b67b[_0x5a346f(0xec)],_0x16627f['auth']=_0x24d013;const _0x287ad7=_0x16627f,_0x163944=await _0x33b67b[_0x5a346f(0x88)](promisifiedRequest,_0x287ad7);_0x33b67b[_0x5a346f(0xac)](_0x163944,null)&&_0x33b67b[_0x5a346f(0xac)](_0x163944,undefined)&&_0x33b67b[_0x5a346f(0xd7)](_0x163944[_0x5a346f(0xc4)],0xc8)&&(logger[_0x5a346f(0x95)](_0x5a346f(0xbf)),process[_0x5a346f(0x7a)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x5a346f(0xa0)](_0x163944)),await _0x33b67b['YJhDu'](sendInstrumentationEvent,_0xcbb935,_0x33b67b[_0x5a346f(0xc0)],messageTypes[_0x5a346f(0x80)],_0x33b67b[_0x5a346f(0xf6)],res,_0xcbb935),process['exit'](0x1);}_0x33b67b[_0x5a346f(0xd7)](res[_0x5a346f(0xc4)],0x191)&&(logger[_0x5a346f(0x82)](_0x5a346f(0xef)),await _0x33b67b[_0x5a346f(0x8f)](sendInstrumentationEvent,_0xcbb935,_0x33b67b['HDwbB'],messageTypes[_0x5a346f(0x80)],_0x33b67b[_0x5a346f(0x87)],null,_0xcbb935),process['exit'](0x1)),_0x33b67b['qOjYP'](res['statusCode'],0x190)&&(logger['error'](JSON['parse'](res[_0x5a346f(0xc7)])[_0x5a346f(0xdf)]),await _0x33b67b['YJhDu'](sendInstrumentationEvent,_0xcbb935,_0x33b67b[_0x5a346f(0xc0)],messageTypes[_0x5a346f(0x80)],_0x33b67b[_0x5a346f(0xcd)],null,_0xcbb935),process[_0x5a346f(0x7a)](0x1)),logger[_0x5a346f(0x82)](_0x5a346f(0xf5)+JSON[_0x5a346f(0xa0)](res)),await _0x33b67b[_0x5a346f(0x8f)](sendInstrumentationEvent,_0xcbb935,_0x33b67b[_0x5a346f(0xc0)],messageTypes['ERROR'],_0x33b67b[_0x5a346f(0xf6)],res,_0xcbb935),process[_0x5a346f(0x7a)](0x1);}catch(_0x45fb64){logger[_0x5a346f(0x82)](_0x5a346f(0xe2)+_0x45fb64['stack']),await _0x33b67b[_0x5a346f(0xd5)](sendInstrumentationEvent,_0xcbb935,_0x33b67b[_0x5a346f(0xc0)],messageTypes[_0x5a346f(0x80)],_0x33b67b['rdtoG'],_0x45fb64,_0xcbb935),process[_0x5a346f(0x7a)](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_0x1e2483=a7_0x549e;function a7_0x549e(_0x4cced3,_0x1d4a40){const _0x3a7ba6=a7_0x3a7b();return a7_0x549e=function(_0x549ec8,_0x5b4790){_0x549ec8=_0x549ec8-0x1de;let _0x11730b=_0x3a7ba6[_0x549ec8];return _0x11730b;},a7_0x549e(_0x4cced3,_0x1d4a40);}function a7_0x3a7b(){const _0x42faf3=['zjNAj','bstackUsername','promisify','cPLUg','argv','yLYba','strict','../utils/instrumentationUtils','YcDor','IAYgC','LqbbG','password','readFileSync','Browserstack','description','username','26KZKyCv','xZnMl','statusCode','DJICV','mhUGW','UWzBm','2809160qtbWBN','MEByh','cANwy','iVXAC','vBqBl','EeHkH','mtboK','hGzrQ','GET','recommendCommands','jJorb','chMRG','gojDW','JMYxL','MRtTF','../utils/utilityMethods','../config/constants','init','help','string','zBoZa','kUZsj','NOZQn','bstackAccesskey','exit','type','bSgjc','UAXUC','util','requestId','LSejA','utf-8','gpQxU','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','7xALvYZ','QTANS','3hVOVpB','../config/logger','ZMmNr','KqSwJ','BROWSERSTACK_ACCESS_KEY','writeFileSync','3664204yROcNW','existsSync','bstack-accesskey','bstack-username','https://','BROWSERSTACK_USERNAME','INFO','PehbF','oYiHu','PAzYX','rJlSA','parse','handler','mkdirSync','desc','9mDbuUk','dBfun','4189710gzWEWa','debug','kjngq','62645pbjflG','uuid','epilogue','env','command','RPpHp','url','usage','stack','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','unknown-error','LXnpd','qcBWr','951198ejjOZR','stringify','error','wrong-creds','xLBfD','MpOqD','nYpar','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ERROR','4675528ZXsMUR','agwFe','olmzs','10039623GoZKWf','mOyIl'];a7_0x3a7b=function(){return _0x42faf3;};return a7_0x3a7b();}(function(_0x4ff363,_0x1ec261){const _0x2820f9=a7_0x549e,_0x13cfc0=_0x4ff363();while(!![]){try{const _0x216b96=-parseInt(_0x2820f9(0x1de))/0x1*(-parseInt(_0x2820f9(0x209))/0x2)+parseInt(_0x2820f9(0x233))/0x3*(-parseInt(_0x2820f9(0x239))/0x4)+-parseInt(_0x2820f9(0x20f))/0x5+-parseInt(_0x2820f9(0x1eb))/0x6*(-parseInt(_0x2820f9(0x231))/0x7)+-parseInt(_0x2820f9(0x1f4))/0x8*(-parseInt(_0x2820f9(0x248))/0x9)+-parseInt(_0x2820f9(0x24a))/0xa+parseInt(_0x2820f9(0x1f7))/0xb;if(_0x216b96===_0x1ec261)break;else _0x13cfc0['push'](_0x13cfc0['shift']());}catch(_0x356a8d){_0x13cfc0['push'](_0x13cfc0['shift']());}}}(a7_0x3a7b,0x8bf0e));const fs=require('fs'),util=require(a7_0x1e2483(0x22b)),request=require('request'),{v4:uuidv4}=require(a7_0x1e2483(0x1df)),{logger}=require(a7_0x1e2483(0x234)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x1e2483(0x21f)),{getDirForConfig,getCredentialsPath}=require(a7_0x1e2483(0x21e)),{sendInstrumentationEvent}=require(a7_0x1e2483(0x200)),promisifiedRequest=util[a7_0x1e2483(0x1fb)](request);exports[a7_0x1e2483(0x1e2)]=a7_0x1e2483(0x220),exports[a7_0x1e2483(0x247)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x18b68b){const _0x516f28=a7_0x1e2483,_0x555d81={};_0x555d81[_0x516f28(0x21c)]=_0x516f28(0x230),_0x555d81['LSejA']=_0x516f28(0x222),_0x555d81[_0x516f28(0x215)]=_0x516f28(0x1e7),_0x555d81['kUZsj']=_0x516f28(0x221);const _0x345c43=_0x555d81,_0x5162e2={};_0x5162e2['description']=_0x345c43[_0x516f28(0x21c)],_0x5162e2[_0x516f28(0x228)]=_0x345c43['LSejA'];const _0x1b1358={};_0x1b1358[_0x516f28(0x207)]=_0x345c43[_0x516f28(0x215)],_0x1b1358['type']=_0x345c43[_0x516f28(0x22d)];const _0x6e2a78={};return _0x6e2a78[_0x516f28(0x23c)]=_0x5162e2,_0x6e2a78[_0x516f28(0x23b)]=_0x1b1358,_0x18b68b[_0x516f28(0x1e5)](HELP_HEADER_MESSAGE['init'])[_0x516f28(0x1e0)](HELP_FOOTER_MESSAGE)['options'](_0x6e2a78)[_0x516f28(0x218)]()[_0x516f28(0x1ff)]()['help'](_0x345c43[_0x516f28(0x224)])[_0x516f28(0x1fd)];},exports[a7_0x1e2483(0x245)]=async function(_0x667044){const _0x209c29=a7_0x1e2483,_0x54d920={'qcBWr':_0x209c29(0x22e),'xLBfD':function(_0x2f66d2){return _0x2f66d2();},'UAXUC':_0x209c29(0x230),'mOyIl':_0x209c29(0x222),'cPLUg':_0x209c29(0x1e7),'iVXAC':_0x209c29(0x221),'MpOqD':function(_0x3e79a2,_0x35a3f7,_0x3ca7d7,_0x3f3eb2,_0x21243a,_0x25e38d,_0x5d8659){return _0x3e79a2(_0x35a3f7,_0x3ca7d7,_0x3f3eb2,_0x21243a,_0x25e38d,_0x5d8659);},'yLYba':'init-called','agwFe':function(_0x3c6a2d){return _0x3c6a2d();},'YcDor':function(_0x6105cb,_0x29da4b){return _0x6105cb===_0x29da4b;},'hGzrQ':'vOZyX','Gcfow':'PmfhJ','chMRG':_0x209c29(0x219),'LXnpd':_0x209c29(0x24c),'aYjYx':_0x209c29(0x1f9),'xZnMl':function(_0x4a9565,_0x240b13){return _0x4a9565!==_0x240b13;},'UWzBm':_0x209c29(0x21b),'DJICV':_0x209c29(0x240),'LqbbG':_0x209c29(0x229),'cANwy':_0x209c29(0x232),'EeHkH':_0x209c29(0x1f2),'KqSwJ':function(_0xcb3299){return _0xcb3299();},'nYpar':_0x209c29(0x217),'vzTAv':function(_0x5f3234,_0x4eee12){return _0x5f3234(_0x4eee12);},'NOZQn':function(_0x1e665b,_0x340aca){return _0x1e665b!==_0x340aca;},'ZMmNr':function(_0x12850a,_0x57a654){return _0x12850a===_0x57a654;},'dBfun':function(_0x4019b5,_0x158129){return _0x4019b5!==_0x158129;},'oYiHu':_0x209c29(0x21d),'mhUGW':'CkEjp','gpQxU':function(_0x3645c2,_0x5a1a38){return _0x3645c2===_0x5a1a38;},'SlaKl':_0x209c29(0x242),'svXFo':_0x209c29(0x1e3),'IAYgC':function(_0x5f29d6){return _0x5f29d6();},'olmzs':function(_0x282a8e,_0x5bb628){return _0x282a8e===_0x5bb628;},'nAfdJ':_0x209c29(0x223),'rJlSA':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','vBqBl':_0x209c29(0x1ee),'MEByh':_0x209c29(0x1e8)};try{global_registry[_0x209c29(0x22c)]=_0x54d920[_0x209c29(0x1ef)](uuidv4),_0x54d920[_0x209c29(0x1f0)](sendInstrumentationEvent,_0x667044,_0x54d920['yLYba'],messageTypes[_0x209c29(0x23f)],null,null,_0x667044);const _0x1f6bbd=_0x54d920[_0x209c29(0x1f5)](getDirForConfig);!fs[_0x209c29(0x23a)](_0x1f6bbd)&&(_0x54d920[_0x209c29(0x201)](_0x54d920['hGzrQ'],_0x54d920[_0x209c29(0x216)])?fs['mkdirSync'](_0x1f6bbd):_0x3199fe=!![]);let _0x5092a2,_0x25fdd2;_0x667044['bstackUsername']&&(_0x54d920[_0x209c29(0x201)](_0x54d920['Gcfow'],_0x54d920[_0x209c29(0x21a)])?_0x2b700c=_0x349fc5[_0x209c29(0x244)](_0x3b0b42[_0x209c29(0x205)](_0x4663a6,_0x54d920[_0x209c29(0x1ea)])):_0x5092a2=_0x667044[_0x209c29(0x1fa)]);process[_0x209c29(0x1e1)]['BROWSERSTACK_USERNAME']&&(_0x54d920['YcDor'](_0x54d920[_0x209c29(0x1e9)],_0x54d920['aYjYx'])?_0x56e900=_0x3f7d14['env'][_0x209c29(0x237)]:_0x5092a2=process[_0x209c29(0x1e1)][_0x209c29(0x23e)]);if(_0x667044[_0x209c29(0x226)]){if(_0x54d920[_0x209c29(0x20a)](_0x54d920[_0x209c29(0x20e)],_0x54d920[_0x209c29(0x20e)])){let _0x2b89c6={};const _0x41c13f=_0x54d920[_0x209c29(0x1ef)](_0xb0b7ae);_0x39554d[_0x209c29(0x23a)](_0x41c13f)&&(_0x2b89c6=_0x3ecf75[_0x209c29(0x244)](_0x2c1f5f['readFileSync'](_0x41c13f,_0x54d920['qcBWr'])));const _0x20823b={};_0x20823b[_0x209c29(0x208)]=_0x3d1afe,_0x20823b[_0x209c29(0x204)]=_0x501557,_0x2b89c6['Browserstack']=_0x20823b,_0x5a9744[_0x209c29(0x238)](_0x41c13f,_0x3d7dee[_0x209c29(0x1ec)](_0x2b89c6)),_0x5712f1[_0x209c29(0x227)](0x0);}else _0x25fdd2=_0x667044[_0x209c29(0x226)];}process[_0x209c29(0x1e1)]['BROWSERSTACK_ACCESS_KEY']&&(_0x54d920[_0x209c29(0x201)](_0x54d920['DJICV'],_0x54d920[_0x209c29(0x20c)])?_0x25fdd2=process[_0x209c29(0x1e1)][_0x209c29(0x237)]:_0x108a70[_0x209c29(0x246)](_0x4fe372));if(_0x54d920['YcDor'](_0x5092a2,undefined)||_0x54d920['YcDor'](_0x25fdd2,undefined)){if(_0x54d920[_0x209c29(0x20a)](_0x54d920[_0x209c29(0x203)],_0x54d920[_0x209c29(0x211)])){logger[_0x209c29(0x24b)](_0x54d920[_0x209c29(0x214)]);const [_0x5d875c,_0x2c11a9]=await _0x54d920[_0x209c29(0x236)](inputBstackKeys);_0x5092a2=_0x5d875c,_0x25fdd2=_0x2c11a9;}else _0x345e02=_0x5097b6[_0x209c29(0x226)];}let _0x5b32e6=![];const _0x5d59cc={};_0x5d59cc[_0x209c29(0x1e4)]=_0x209c29(0x23d)+_0x5092a2+':'+_0x25fdd2+'@'+BS_API_URL+'/automate/plan.json',_0x5d59cc['method']=_0x54d920[_0x209c29(0x1f1)];const _0x4105d1=_0x5d59cc,_0x5f5671=await _0x54d920['vzTAv'](promisifiedRequest,_0x4105d1);_0x54d920[_0x209c29(0x225)](_0x5f5671,null)&&_0x54d920[_0x209c29(0x20a)](_0x5f5671,undefined)&&_0x54d920[_0x209c29(0x235)](_0x5f5671[_0x209c29(0x20b)],0xc8)&&(_0x54d920[_0x209c29(0x249)](_0x54d920[_0x209c29(0x241)],_0x54d920[_0x209c29(0x20d)])?_0x5b32e6=!![]:_0x191b4c=_0x341669[_0x209c29(0x1fa)]);if(_0x5b32e6){if(_0x54d920[_0x209c29(0x22f)](_0x54d920['SlaKl'],_0x54d920['svXFo']))_0xdd4e6f=_0x295813[_0x209c29(0x1e1)][_0x209c29(0x23e)];else{let _0x1a67ff={};const _0x27b72c=_0x54d920[_0x209c29(0x202)](getCredentialsPath);if(fs[_0x209c29(0x23a)](_0x27b72c)){if(_0x54d920[_0x209c29(0x1f6)](_0x54d920['nAfdJ'],_0x54d920['nAfdJ']))_0x1a67ff=JSON[_0x209c29(0x244)](fs[_0x209c29(0x205)](_0x27b72c,_0x54d920['qcBWr']));else{const _0x214353={};_0x214353[_0x209c29(0x207)]=_0x54d920[_0x209c29(0x22a)],_0x214353[_0x209c29(0x228)]=_0x54d920[_0x209c29(0x1f8)];const _0x3d3d8d={};_0x3d3d8d[_0x209c29(0x207)]=_0x54d920[_0x209c29(0x1fc)],_0x3d3d8d[_0x209c29(0x228)]=_0x54d920['mOyIl'];const _0x323ce4={};return _0x323ce4['bstack-username']=_0x214353,_0x323ce4[_0x209c29(0x23b)]=_0x3d3d8d,_0x4f8474[_0x209c29(0x1e5)](_0x28c969[_0x209c29(0x220)])[_0x209c29(0x1e0)](_0x5cae64)['options'](_0x323ce4)[_0x209c29(0x218)]()[_0x209c29(0x1ff)]()[_0x209c29(0x221)](_0x54d920[_0x209c29(0x212)])[_0x209c29(0x1fd)];}}const _0x55d47c={};_0x55d47c[_0x209c29(0x208)]=_0x5092a2,_0x55d47c[_0x209c29(0x204)]=_0x25fdd2,_0x1a67ff[_0x209c29(0x206)]=_0x55d47c,fs['writeFileSync'](_0x27b72c,JSON['stringify'](_0x1a67ff)),process[_0x209c29(0x227)](0x0);}}else logger[_0x209c29(0x1ed)](_0x54d920[_0x209c29(0x243)]),await _0x54d920['MpOqD'](sendInstrumentationEvent,_0x667044,_0x54d920['yLYba'],messageTypes['ERROR'],_0x54d920[_0x209c29(0x213)],null,_0x667044),process[_0x209c29(0x227)](0x1);}catch(_0x3b9a8a){logger[_0x209c29(0x1ed)](_0x3b9a8a[_0x209c29(0x1e6)]),await _0x54d920[_0x209c29(0x1f0)](sendInstrumentationEvent,_0x667044,_0x54d920[_0x209c29(0x1fe)],messageTypes[_0x209c29(0x1f3)],_0x54d920[_0x209c29(0x210)],_0x3b9a8a,_0x667044),process[_0x209c29(0x227)](0x1);}};