browserstack-node-sdk 1.53.5 → 1.53.6

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 (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a49_0x110859=a49_0x51b7;(function(_0x56c142,_0x2880e4){const _0x430ba8=a49_0x51b7,_0x31f788=_0x56c142();while(!![]){try{const _0x2379b0=parseInt(_0x430ba8(0x10d))/0x1+parseInt(_0x430ba8(0x108))/0x2+-parseInt(_0x430ba8(0x14b))/0x3+parseInt(_0x430ba8(0x13f))/0x4*(-parseInt(_0x430ba8(0x139))/0x5)+parseInt(_0x430ba8(0x159))/0x6*(parseInt(_0x430ba8(0x152))/0x7)+-parseInt(_0x430ba8(0x137))/0x8*(parseInt(_0x430ba8(0x105))/0x9)+parseInt(_0x430ba8(0x162))/0xa*(parseInt(_0x430ba8(0x14e))/0xb);if(_0x2379b0===_0x2880e4)break;else _0x31f788['push'](_0x31f788['shift']());}catch(_0x20574a){_0x31f788['push'](_0x31f788['shift']());}}}(a49_0xcff8,0x80774));const path=require(a49_0x110859(0x100)),url=require(a49_0x110859(0x12f)),util=require('util'),{nestedKeyValue,isFalse}=require(a49_0x110859(0x134)),{debug,getPlatformDetails}=require(a49_0x110859(0x124)),logger=require(a49_0x110859(0x107))[a49_0x110859(0x104)],constants=require('../utils/constants'),BrowserstackCLI=require(a49_0x110859(0x15b)),AutomationFrameworkState=require(a49_0x110859(0x141)),HookState=require(a49_0x110859(0x102)),getBrowserFromWSEndpoint=_0x248ca7=>{const _0x5502b3=a49_0x110859,_0x267094={'ibOiz':_0x5502b3(0x109),'Ecjuo':function(_0x32fb42,_0x55a31f){return _0x32fb42(_0x55a31f);}};try{const _0xa2f3c6=url['parse'](_0x248ca7),_0x128c14=new URLSearchParams(_0xa2f3c6[_0x5502b3(0x10b)]),_0x310556=Object[_0x5502b3(0x147)](_0x128c14[_0x5502b3(0x15d)]()),_0x55bcd7=JSON[_0x5502b3(0x130)](_0x310556[_0x5502b3(0x156)]);if(_0x55bcd7&&(_0x55bcd7['browser']||_0x55bcd7[_0x5502b3(0x119)]))return _0x55bcd7[_0x5502b3(0x111)]||_0x55bcd7[_0x5502b3(0x119)];return _0x267094['ibOiz'];}catch(_0x1819f1){_0x267094[_0x5502b3(0x103)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x1819f1[_0x5502b3(0x14d)]());}},getCloudProviderFromWsEndpoint=_0x36737b=>{const _0x1505d9=a49_0x110859,_0x5c429c={};_0x5c429c[_0x1505d9(0x146)]=_0x1505d9(0x11e),_0x5c429c[_0x1505d9(0x11b)]=_0x1505d9(0x160);const _0x588f9a=_0x5c429c;if(_0x36737b['includes'](constants[_0x1505d9(0x126)])||_0x36737b[_0x1505d9(0x10e)](constants[_0x1505d9(0x12e)]))return _0x588f9a[_0x1505d9(0x146)];return _0x588f9a['RvMBJ'];},a49_0x2c73fc={};function a49_0x51b7(_0x551f26,_0x3b5710){const _0xcff86e=a49_0xcff8();return a49_0x51b7=function(_0x51b778,_0x342e0d){_0x51b778=_0x51b778-0x100;let _0x1b57f6=_0xcff86e[_0x51b778];return _0x1b57f6;},a49_0x51b7(_0x551f26,_0x3b5710);}a49_0x2c73fc[a49_0x110859(0x13b)]=undefined,a49_0x2c73fc[a49_0x110859(0x122)]=undefined,a49_0x2c73fc[a49_0x110859(0x111)]=undefined,a49_0x2c73fc[a49_0x110859(0x132)]=undefined,a49_0x2c73fc[a49_0x110859(0x149)]=undefined,a49_0x2c73fc[a49_0x110859(0x142)]=undefined,a49_0x2c73fc[a49_0x110859(0x11f)]=undefined,a49_0x2c73fc[a49_0x110859(0x15e)]={};class PuppeteerSessionDetails{static [a49_0x110859(0x151)]=a49_0x2c73fc;constructor(){const _0x5c4a04=a49_0x110859,_0x22a2cd={};_0x22a2cd[_0x5c4a04(0x10f)]=_0x5c4a04(0x133);const _0x29c7d8=_0x22a2cd;throw new Error(_0x29c7d8[_0x5c4a04(0x10f)]);}static [a49_0x110859(0x116)]=null;static async['setupBrowserDetails'](_0x45f239,_0x1dc43d){const _0x4a96e2=a49_0x110859,_0x3faf98={'SABQv':_0x4a96e2(0x109),'XJFgE':function(_0x5f3749,_0x3809a3){return _0x5f3749===_0x3809a3;},'bXoUl':_0x4a96e2(0x121),'ZeHpS':'local_grid','KNfAe':function(_0x23e6ad,_0x1ffae9){return _0x23e6ad(_0x1ffae9);},'bWmNv':function(_0x327529,_0x14d4f8){return _0x327529===_0x14d4f8;},'NXuKi':_0x4a96e2(0x11e),'fyBaa':_0x4a96e2(0x129),'XrADw':_0x4a96e2(0x101),'LSMBO':function(_0x18ad2c){return _0x18ad2c();},'hThNr':function(_0x52bf42){return _0x52bf42();},'iIrGJ':function(_0x4e96b4,_0x196185){return _0x4e96b4(_0x196185);}};try{let _0x4fb488=_0x3faf98[_0x4a96e2(0x112)],_0x343594=null;_0x45f239&&_0x3faf98[_0x4a96e2(0x15c)](typeof _0x45f239['version'],_0x3faf98[_0x4a96e2(0x15f)])&&(_0x343594=await _0x45f239[_0x4a96e2(0x148)]());let _0x39d7f4=null,_0x83f948=null,_0x4d63c2=null,_0x9f7020=_0x3faf98[_0x4a96e2(0x12d)];if(_0x1dc43d){_0x9f7020=_0x3faf98[_0x4a96e2(0x161)](getCloudProviderFromWsEndpoint,_0x1dc43d);if(_0x3faf98[_0x4a96e2(0x153)](_0x9f7020,_0x3faf98[_0x4a96e2(0x143)]))_0x4d63c2=constants[_0x4a96e2(0x13e)]?constants[_0x4a96e2(0x13e)][_0x4a96e2(0x150)](_0x1dc43d)?_0x3faf98[_0x4a96e2(0x155)]:_0x3faf98[_0x4a96e2(0x158)]:_0x3faf98[_0x4a96e2(0x158)],_0x4fb488=_0x3faf98[_0x4a96e2(0x161)](getBrowserFromWSEndpoint,_0x1dc43d)||_0x4fb488,_0x39d7f4=this[_0x4a96e2(0x151)]['platform'],_0x83f948=this[_0x4a96e2(0x151)][_0x4a96e2(0x142)];else{const _0x397955=await _0x3faf98[_0x4a96e2(0x118)](getPlatformDetails);_0x39d7f4=_0x397955[_0x4a96e2(0x12a)],_0x83f948=_0x397955[_0x4a96e2(0x15a)];}}else{const _0x3975a8=await _0x3faf98[_0x4a96e2(0x117)](getPlatformDetails);_0x39d7f4=_0x3975a8['platformName'],_0x83f948=_0x3975a8[_0x4a96e2(0x15a)];}const _0x347cba={};_0x347cba[_0x4a96e2(0x111)]=_0x4fb488,_0x347cba['browser_version']=_0x343594,_0x347cba[_0x4a96e2(0x15e)]={},_0x347cba[_0x4a96e2(0x149)]=_0x39d7f4,_0x347cba[_0x4a96e2(0x142)]=_0x83f948,_0x347cba[_0x4a96e2(0x11f)]=_0x4d63c2;const _0xcb795e=_0x347cba,_0x1fd0f7={};_0x1fd0f7[_0x4a96e2(0x13b)]=_0x9f7020,this['currentSessionDetails']=Object['assign']({},this[_0x4a96e2(0x151)],_0x1fd0f7,_0xcb795e);}catch(_0x3ea96e){_0x3faf98[_0x4a96e2(0x14a)](debug,_0x4a96e2(0x13a)+util['format'](_0x3ea96e)),this[_0x4a96e2(0x116)]=_0x3ea96e[_0x4a96e2(0x14d)]();}}static[a49_0x110859(0x145)](_0x184f3f){const _0x56568d=a49_0x110859,_0x339a60={'Seoyh':function(_0x5956c2,_0x561886){return _0x5956c2===_0x561886;},'sjelv':_0x56568d(0x128),'MGAao':function(_0x4b681c,_0x3e562f){return _0x4b681c(_0x3e562f);},'VFcyc':function(_0x129def,_0x34c776){return _0x129def(_0x34c776);},'blMCt':_0x56568d(0x14f),'qJoaS':function(_0x335229,_0x8d214c){return _0x335229(_0x8d214c);}},_0xd34640=this;try{const _0x1077fd=_0x184f3f[_0x56568d(0x144)]||_0x184f3f['connection'];if(!_0x1077fd||_0x1077fd[_0x56568d(0x10a)])return;const _0x130f5d=_0x1077fd[_0x56568d(0x12c)];_0x1077fd[_0x56568d(0x12c)]=function(_0x452898){const _0x2318df=_0x56568d;try{const _0x37c7b7=_0x339a60[_0x2318df(0x138)](typeof _0x452898,_0x339a60[_0x2318df(0x11a)])?JSON[_0x2318df(0x130)](_0x452898):_0x452898,_0x33afa8=_0x37c7b7?.[_0x2318df(0x11c)]||_0x37c7b7?.[_0x2318df(0x13d)]||_0x37c7b7?.['params']?.[_0x2318df(0x13d)]||_0x37c7b7?.['params']?.[_0x2318df(0x11c)]||_0x37c7b7?.[_0x2318df(0x14c)]?.['bsParams']||_0x37c7b7?.[_0x2318df(0x14c)]?.[_0x2318df(0x11c)];if(_0x33afa8){if(BrowserstackCLI[_0x2318df(0x110)]()[_0x2318df(0x13c)]()){const _0x5cb215={};_0x5cb215['message']=_0x37c7b7,BrowserstackCLI[_0x2318df(0x110)]()[_0x2318df(0x113)]()[_0x2318df(0x127)](AutomationFrameworkState[_0x2318df(0x120)],HookState[_0x2318df(0x131)],_0x5cb215);}else{const _0x2099db=_0x33afa8[_0x2318df(0x115)],_0x25db43=_0x33afa8[_0x2318df(0x123)];_0x25db43&&(_0x339a60[_0x2318df(0x12b)](debug,_0x2318df(0x140)+JSON[_0x2318df(0x11d)](_0x25db43)),_0xd34640[_0x2318df(0x151)][_0x2318df(0x149)]=_0x25db43[_0x2318df(0x12a)],_0xd34640[_0x2318df(0x151)][_0x2318df(0x142)]=_0x25db43[_0x2318df(0x15a)]),_0x2099db&&(_0x339a60[_0x2318df(0x114)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x2099db),_0xd34640['currentSessionDetails'][_0x2318df(0x122)]=_0x2099db);}_0x339a60[_0x2318df(0x138)](typeof _0x452898,_0x339a60[_0x2318df(0x11a)])&&(delete _0x37c7b7[_0x2318df(0x11c)],delete _0x37c7b7[_0x2318df(0x13d)],_0x37c7b7[_0x2318df(0x125)]&&(delete _0x37c7b7['params'][_0x2318df(0x13d)],delete _0x37c7b7[_0x2318df(0x125)][_0x2318df(0x11c)]),_0x37c7b7['result']&&(delete _0x37c7b7[_0x2318df(0x14c)]['bsParams'],delete _0x37c7b7[_0x2318df(0x14c)]['bStackParams']));}}catch(_0x29261f){_0x339a60[_0x2318df(0x12b)](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x29261f[_0x2318df(0x135)]);}return _0x130f5d?.[_0x2318df(0x10c)](this,arguments);},_0x1077fd[_0x56568d(0x10a)]=!![],logger[_0x56568d(0x157)](_0x339a60[_0x56568d(0x154)]);}catch(_0x3bf1b1){_0x339a60['qJoaS'](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x56568d(0x136)](_0x3bf1b1)),_0xd34640[_0x56568d(0x116)]=_0x3bf1b1['toString']();}}static['getDetails'](){const _0x539cb4=a49_0x110859;return this[_0x539cb4(0x151)];}}module[a49_0x110859(0x106)]=PuppeteerSessionDetails;function a49_0xcff8(){const _0x68f2bf=['../v2/state/automationFrameworkState.js','platform_version','NXuKi','_connection','patchConnection','IUrnI','fromEntries','version','platform','iIrGJ','2534421fQNtUH','result','toString','18076179PXtbcs','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','test','currentSessionDetails','3038HTfTCS','bWmNv','blMCt','fyBaa','caps','debug','XrADw','540qDZlRO','platformVersion','../v2/browserstackCLI','XJFgE','entries','capabilities','bXoUl','unknown_grid','KNfAe','10RfdcTk','path','automate','../v2/state/hookState.js','Ecjuo','winstonLogger','508140DxWrec','exports','../../helpers/logger','340700ESkeUR','chrome','_bstackPatched','query','apply','702829Odrijc','includes','OBbxH','getInstance','browser','SABQv','getAutomationFramework','VFcyc','sessionId','sessionError','hThNr','LSMBO','browserName','sjelv','RvMBJ','bStackParams','stringify','browserstack','product','PLAYWRIGHT_DISPATCH','function','bsSessionId','platformDetails','../../helpers/test-observability/utils','params','BSTACK_URL','trackEvent','string','turboscale','platformName','MGAao','onmessage','ZeHpS','BSTACK_ATS_URL','url','parse','POST','browser_version','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../../helpers/helper','message','format','80pkLziS','Seoyh','4525pvkmEV','Error\x20in\x20setupBrowserDetails:\x20','cloudProvider','isRunning','bsParams','ATS_WSS_URL_REGEX','2740yfaUsh','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'];a49_0xcff8=function(){return _0x68f2bf;};return a49_0xcff8();}
1
+ const a49_0x51914a=a49_0x5887;(function(_0x82b487,_0x3c45c5){const _0x343204=a49_0x5887,_0x56e792=_0x82b487();while(!![]){try{const _0x5ed432=parseInt(_0x343204(0x11d))/0x1+-parseInt(_0x343204(0xcf))/0x2*(-parseInt(_0x343204(0xc9))/0x3)+-parseInt(_0x343204(0xfa))/0x4+parseInt(_0x343204(0x11a))/0x5*(parseInt(_0x343204(0x11e))/0x6)+parseInt(_0x343204(0x104))/0x7+-parseInt(_0x343204(0x11b))/0x8*(-parseInt(_0x343204(0x114))/0x9)+parseInt(_0x343204(0xe1))/0xa*(-parseInt(_0x343204(0x11f))/0xb);if(_0x5ed432===_0x3c45c5)break;else _0x56e792['push'](_0x56e792['shift']());}catch(_0x8766d8){_0x56e792['push'](_0x56e792['shift']());}}}(a49_0x42be,0x3d62d));function a49_0x5887(_0x290956,_0x5c050c){const _0x42bef6=a49_0x42be();return a49_0x5887=function(_0x588787,_0x449fff){_0x588787=_0x588787-0xc7;let _0x46d8a9=_0x42bef6[_0x588787];return _0x46d8a9;},a49_0x5887(_0x290956,_0x5c050c);}const path=require(a49_0x51914a(0xdc)),url=require(a49_0x51914a(0x113)),util=require(a49_0x51914a(0xfc)),{nestedKeyValue,isFalse}=require(a49_0x51914a(0xf2)),{debug,getPlatformDetails}=require(a49_0x51914a(0x102)),logger=require(a49_0x51914a(0x118))[a49_0x51914a(0x120)],constants=require(a49_0x51914a(0xcd)),BrowserstackCLI=require(a49_0x51914a(0x106)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a49_0x51914a(0xf0)),getBrowserFromWSEndpoint=_0x842337=>{const _0x47becd=a49_0x51914a,_0xe8cf93={'asNOy':'chrome','UfEuL':function(_0x120aeb,_0x486ba3){return _0x120aeb(_0x486ba3);}};try{const _0x2a82a0=url[_0x47becd(0x123)](_0x842337),_0x3f88dd=new URLSearchParams(_0x2a82a0[_0x47becd(0xd6)]),_0x14c6c6=Object['fromEntries'](_0x3f88dd[_0x47becd(0xf4)]()),_0x1c64da=JSON[_0x47becd(0x123)](_0x14c6c6['caps']);if(_0x1c64da&&(_0x1c64da[_0x47becd(0xde)]||_0x1c64da[_0x47becd(0xe9)]))return _0x1c64da[_0x47becd(0xde)]||_0x1c64da[_0x47becd(0xe9)];return _0xe8cf93[_0x47becd(0xf6)];}catch(_0x54d192){_0xe8cf93[_0x47becd(0xe2)](debug,_0x47becd(0xdb)+_0x54d192[_0x47becd(0xe0)]());}},getCloudProviderFromWsEndpoint=_0x59af90=>{const _0xd8665c=a49_0x51914a,_0x493947={};_0x493947[_0xd8665c(0xe7)]='browserstack',_0x493947[_0xd8665c(0xf1)]=_0xd8665c(0xd5);const _0x5c0c9c=_0x493947;if(_0x59af90[_0xd8665c(0x128)](constants[_0xd8665c(0x115)])||_0x59af90[_0xd8665c(0x128)](constants[_0xd8665c(0xdd)]))return _0x5c0c9c['XYGcD'];return _0x5c0c9c['WEtBH'];},a49_0x2a06ad={};a49_0x2a06ad['cloudProvider']=undefined,a49_0x2a06ad['bsSessionId']=undefined,a49_0x2a06ad['browser']=undefined,a49_0x2a06ad[a49_0x51914a(0x10b)]=undefined,a49_0x2a06ad[a49_0x51914a(0xc8)]=undefined,a49_0x2a06ad[a49_0x51914a(0xd4)]=undefined,a49_0x2a06ad[a49_0x51914a(0xee)]=undefined,a49_0x2a06ad[a49_0x51914a(0xcc)]={};class PuppeteerSessionDetails{static [a49_0x51914a(0x105)]=a49_0x2a06ad;constructor(){const _0x2d07eb=a49_0x51914a,_0x4211ba={};_0x4211ba[_0x2d07eb(0xe6)]=_0x2d07eb(0xef);const _0x37bdf5=_0x4211ba;throw new Error(_0x37bdf5['DIwQb']);}static [a49_0x51914a(0xd2)]=null;static async[a49_0x51914a(0xeb)](_0x1e4137,_0x1d46c4){const _0x2986b5=a49_0x51914a,_0x1e0695={'kMcpx':_0x2986b5(0xf3),'obJYl':function(_0x3ad4fb,_0x9bd126){return _0x3ad4fb===_0x9bd126;},'FsLoc':_0x2986b5(0x103),'sRtvS':'local_grid','DlHPE':function(_0x787cb,_0x27accc){return _0x787cb(_0x27accc);},'eoNsq':function(_0x57181c,_0x18708d){return _0x57181c===_0x18708d;},'NGDPJ':_0x2986b5(0xcb),'OvWjc':_0x2986b5(0xd7),'IHdnB':'automate','kBZnr':function(_0x11a28b,_0x5d79ce){return _0x11a28b(_0x5d79ce);},'flSfT':function(_0x8249aa){return _0x8249aa();},'dZPNP':function(_0x1e3569,_0x403b24){return _0x1e3569(_0x403b24);}};try{let _0x17d22a=_0x1e0695[_0x2986b5(0xd8)],_0x4eef60=null;_0x1e4137&&_0x1e0695[_0x2986b5(0x127)](typeof _0x1e4137['version'],_0x1e0695[_0x2986b5(0x10a)])&&(_0x4eef60=await _0x1e4137[_0x2986b5(0x110)]());let _0x17603b=null,_0xc44711=null,_0x744818=null,_0xcd6747=_0x1e0695[_0x2986b5(0xf8)];if(_0x1d46c4){_0xcd6747=_0x1e0695[_0x2986b5(0xea)](getCloudProviderFromWsEndpoint,_0x1d46c4);if(_0x1e0695['eoNsq'](_0xcd6747,_0x1e0695[_0x2986b5(0xe3)]))_0x744818=constants['ATS_WSS_URL_REGEX']?constants['ATS_WSS_URL_REGEX'][_0x2986b5(0x10e)](_0x1d46c4)?_0x1e0695['OvWjc']:_0x1e0695[_0x2986b5(0xd1)]:_0x1e0695[_0x2986b5(0xd1)],_0x17d22a=_0x1e0695[_0x2986b5(0x10c)](getBrowserFromWSEndpoint,_0x1d46c4)||_0x17d22a,_0x17603b=this[_0x2986b5(0x105)]['platform'],_0xc44711=this[_0x2986b5(0x105)][_0x2986b5(0xd4)];else{const _0x319f5b=await _0x1e0695[_0x2986b5(0xd9)](getPlatformDetails);_0x17603b=_0x319f5b[_0x2986b5(0x111)],_0xc44711=_0x319f5b[_0x2986b5(0x107)];}}else{const _0x86abb4=await _0x1e0695[_0x2986b5(0xd9)](getPlatformDetails);_0x17603b=_0x86abb4[_0x2986b5(0x111)],_0xc44711=_0x86abb4['platformVersion'];}const _0x13e5de={};_0x13e5de['browser']=_0x17d22a,_0x13e5de[_0x2986b5(0x10b)]=_0x4eef60,_0x13e5de[_0x2986b5(0xcc)]={},_0x13e5de[_0x2986b5(0xc8)]=_0x17603b,_0x13e5de[_0x2986b5(0xd4)]=_0xc44711,_0x13e5de[_0x2986b5(0xee)]=_0x744818;const _0x110e5a=_0x13e5de,_0x24d314={};_0x24d314[_0x2986b5(0xda)]=_0xcd6747,this[_0x2986b5(0x105)]=Object[_0x2986b5(0xfd)]({},this[_0x2986b5(0x105)],_0x24d314,_0x110e5a);}catch(_0xe48f6){_0x1e0695[_0x2986b5(0x101)](debug,_0x2986b5(0xed)+util['format'](_0xe48f6)),this['sessionError']=_0xe48f6[_0x2986b5(0xe0)]();}}static[a49_0x51914a(0xdf)](_0x5f0c4a){const _0xfcf4c0=a49_0x51914a,_0x4e2ea1={'WsqPj':function(_0x570073,_0x16d5c0){return _0x570073===_0x16d5c0;},'mtqHB':_0xfcf4c0(0xec),'UWRpu':function(_0x30a25d,_0x113e08){return _0x30a25d(_0x113e08);},'xBecU':function(_0x4920da,_0x205c67){return _0x4920da(_0x205c67);},'bWHaj':function(_0x3c5c7d,_0x41be1a){return _0x3c5c7d===_0x41be1a;},'VkbvX':function(_0x49c812,_0x1296c1){return _0x49c812(_0x1296c1);},'RGRHk':_0xfcf4c0(0xce)},_0x2d333a=this;try{const _0x15f6fa=_0x5f0c4a[_0xfcf4c0(0x124)]||_0x5f0c4a[_0xfcf4c0(0x122)];if(!_0x15f6fa||_0x15f6fa['_bstackPatched'])return;const _0x49da90=_0x15f6fa[_0xfcf4c0(0x112)];_0x15f6fa[_0xfcf4c0(0x112)]=function(_0x581a96){const _0x1f7a3d=_0xfcf4c0;try{const _0x39f9c7=_0x4e2ea1['WsqPj'](typeof _0x581a96,_0x4e2ea1[_0x1f7a3d(0x109)])?JSON[_0x1f7a3d(0x123)](_0x581a96):_0x581a96,_0x37836e=_0x39f9c7?.['bStackParams']||_0x39f9c7?.[_0x1f7a3d(0xff)]||_0x39f9c7?.[_0x1f7a3d(0xc7)]?.[_0x1f7a3d(0xff)]||_0x39f9c7?.['params']?.['bStackParams']||_0x39f9c7?.[_0x1f7a3d(0x121)]?.[_0x1f7a3d(0xff)]||_0x39f9c7?.['result']?.['bStackParams'];if(_0x37836e){if(BrowserstackCLI[_0x1f7a3d(0xe8)]()[_0x1f7a3d(0xca)]()){const _0x191d61={};_0x191d61[_0x1f7a3d(0xe5)]=_0x39f9c7,BrowserstackCLI[_0x1f7a3d(0xe8)]()['getAutomationFramework']()[_0x1f7a3d(0xfb)](AutomationFrameworkState[_0x1f7a3d(0xd3)],HookState[_0x1f7a3d(0xfe)],_0x191d61);}else{const _0x182e7e=_0x37836e[_0x1f7a3d(0x108)],_0x327677=_0x37836e['platformDetails'];_0x327677&&(_0x4e2ea1['UWRpu'](debug,_0x1f7a3d(0x11c)+JSON[_0x1f7a3d(0x100)](_0x327677)),_0x2d333a[_0x1f7a3d(0x105)][_0x1f7a3d(0xc8)]=_0x327677['platformName'],_0x2d333a['currentSessionDetails'][_0x1f7a3d(0xd4)]=_0x327677[_0x1f7a3d(0x107)]),_0x182e7e&&(_0x4e2ea1[_0x1f7a3d(0xf9)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x182e7e),_0x2d333a[_0x1f7a3d(0x105)]['bsSessionId']=_0x182e7e);}_0x4e2ea1[_0x1f7a3d(0xd0)](typeof _0x581a96,_0x4e2ea1[_0x1f7a3d(0x109)])&&(delete _0x39f9c7[_0x1f7a3d(0x10f)],delete _0x39f9c7[_0x1f7a3d(0xff)],_0x39f9c7[_0x1f7a3d(0xc7)]&&(delete _0x39f9c7[_0x1f7a3d(0xc7)][_0x1f7a3d(0xff)],delete _0x39f9c7[_0x1f7a3d(0xc7)][_0x1f7a3d(0x10f)]),_0x39f9c7[_0x1f7a3d(0x121)]&&(delete _0x39f9c7['result']['bsParams'],delete _0x39f9c7['result'][_0x1f7a3d(0x10f)]));}}catch(_0x19c49c){_0x4e2ea1['VkbvX'](debug,_0x1f7a3d(0x119)+_0x19c49c[_0x1f7a3d(0xe5)]);}return _0x49da90?.[_0x1f7a3d(0x116)](this,arguments);},_0x15f6fa[_0xfcf4c0(0x125)]=!![],logger[_0xfcf4c0(0x10d)](_0x4e2ea1[_0xfcf4c0(0xf7)]);}catch(_0x5742fd){_0x4e2ea1[_0xfcf4c0(0xe4)](debug,_0xfcf4c0(0xf5)+util['format'](_0x5742fd)),_0x2d333a[_0xfcf4c0(0xd2)]=_0x5742fd['toString']();}}static[a49_0x51914a(0x117)](){const _0x3bb4c8=a49_0x51914a;return this[_0x3bb4c8(0x105)];}}function a49_0x42be(){const _0x15acaf=['_bstackPatched','exports','obJYl','includes','params','platform','3DembCc','isRunning','browserstack','capabilities','../utils/constants','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','495466jGPzHw','bWHaj','IHdnB','sessionError','PLAYWRIGHT_DISPATCH','platform_version','unknown_grid','query','turboscale','kMcpx','flSfT','cloudProvider','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','path','BSTACK_ATS_URL','browser','patchConnection','toString','30DlyCsq','UfEuL','NGDPJ','UWRpu','message','DIwQb','XYGcD','getInstance','browserName','DlHPE','setupBrowserDetails','string','Error\x20in\x20setupBrowserDetails:\x20','product','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../v2/state/hookState.js','WEtBH','../../helpers/helper','chrome','entries','Error\x20in\x20patchConnection:\x20','asNOy','RGRHk','sRtvS','xBecU','1439340SFzHqM','trackEvent','util','assign','POST','bsParams','stringify','dZPNP','../../helpers/test-observability/utils','function','2368037dZEFBt','currentSessionDetails','../v2/browserstackCLI','platformVersion','sessionId','mtqHB','FsLoc','browser_version','kBZnr','debug','test','bStackParams','version','platformName','onmessage','url','1181835ymbcJq','BSTACK_URL','apply','getDetails','../../helpers/logger','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','500wxMClY','16PtaJKV','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','377737mialsw','8934FmlATo','2801403VcYrJa','winstonLogger','result','connection','parse','_connection'];a49_0x42be=function(){return _0x15acaf;};return a49_0x42be();}module[a49_0x51914a(0x126)]=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a50_0x392973=a50_0x5064;(function(_0x36473d,_0x4dc762){const _0x3f97b0=a50_0x5064,_0x288b08=_0x36473d();while(!![]){try{const _0xfe0aac=parseInt(_0x3f97b0(0xfb))/0x1*(-parseInt(_0x3f97b0(0xfd))/0x2)+-parseInt(_0x3f97b0(0x10d))/0x3*(-parseInt(_0x3f97b0(0x104))/0x4)+-parseInt(_0x3f97b0(0x110))/0x5+-parseInt(_0x3f97b0(0xf5))/0x6+-parseInt(_0x3f97b0(0x102))/0x7+parseInt(_0x3f97b0(0x11f))/0x8+parseInt(_0x3f97b0(0x121))/0x9*(parseInt(_0x3f97b0(0x105))/0xa);if(_0xfe0aac===_0x4dc762)break;else _0x288b08['push'](_0x288b08['shift']());}catch(_0x4e95d0){_0x288b08['push'](_0x288b08['shift']());}}}(a50_0x40e5,0xae43b));const {isTrue,isBrowserstackInfra}=require(a50_0x392973(0x122)),setKeepAlive=require(a50_0x392973(0xfc)),util=require(a50_0x392973(0xfa)),logger=require('../../helpers/logger')[a50_0x392973(0xf8)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a50_0x3b089b={};a50_0x3b089b['workerInfo']=undefined,a50_0x3b089b[a50_0x392973(0x11e)]={},a50_0x3b089b[a50_0x392973(0xfe)]=![],a50_0x3b089b['pwPage']=null,a50_0x3b089b[a50_0x392973(0xf7)]=![],a50_0x3b089b[a50_0x392973(0x11e)]['id']=undefined,a50_0x3b089b[a50_0x392973(0x11e)][a50_0x392973(0x10c)]=undefined;const workerDetails=a50_0x3b089b;function a50_0x5064(_0xdcd96b,_0x60e251){const _0x40e5d8=a50_0x40e5();return a50_0x5064=function(_0x506408,_0x117bda){_0x506408=_0x506408-0xf5;let _0x145999=_0x40e5d8[_0x506408];return _0x145999;},a50_0x5064(_0xdcd96b,_0x60e251);}global[a50_0x392973(0x10f)]=workerDetails;function a50_0x40e5(){const _0x273e6d=['getInstance','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../v2/cliUtils','initializePuppeteerPatching','skipSessionName','env','jestConfig','../v2/browserstackCLI','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','true','setFrameworkDetail','puppeteer','__skipSessionStatus','currentTest','5062128FKKLnP','BROWSERSTACK_PUPPETEER','225ealgrS','../../helpers/helper','8469492hXYTxM','format','isPageFixture','winstonLogger','catch','util','1046091bJiYeQ','../../helpers/setKeepAlive','2qkAyCE','o11ySyncDone','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','__skipSessionName','3502429xoTOhU','PUPPETEER','880FomXSU','1283180DRmgoV','skipSessionStatus','bootstrap','JEST','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','debug','testInfo','7359gpGXBc','getPackageVersion','__workerDetails','3542845pTnhGi'];a50_0x40e5=function(){return _0x273e6d;};return a50_0x40e5();}let puppeteerPatcher=null;setKeepAlive();if(global[a50_0x392973(0x117)])try{isBrowserstackInfra()?(global[a50_0x392973(0x101)]=isTrue(global[a50_0x392973(0x117)]?.[a50_0x392973(0x115)]),global[a50_0x392973(0x11d)]=isTrue(global['jestConfig']?.[a50_0x392973(0x106)])):(global[a50_0x392973(0x101)]=!![],global[a50_0x392973(0x11d)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a50_0x392973(0x11c))||helper[a50_0x392973(0x10e)]('puppeteer-core');if(puppeteerVersion)try{logger[a50_0x392973(0x10b)](a50_0x392973(0xff)),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a50_0x392973(0x114)](global[a50_0x392973(0x117)]),logger[a50_0x392973(0x10b)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a50_0x35107c){logger[a50_0x392973(0x10b)](a50_0x392973(0x109)+util[a50_0x392973(0xf6)](a50_0x35107c));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a50_0x392973(0x118)),CLIUtils=require(a50_0x392973(0x113)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger[a50_0x392973(0x10b)](a50_0x392973(0x112)),process[a50_0x392973(0x116)][a50_0x392973(0x120)]=a50_0x392973(0x11a),CLIUtils[a50_0x392973(0x11b)](FRAMEWORKS[a50_0x392973(0x108)],FRAMEWORKS[a50_0x392973(0x103)]),BrowserstackCLI[a50_0x392973(0x111)]()[a50_0x392973(0x107)]()[a50_0x392973(0xf9)](_0x10812a=>{const _0x351730=a50_0x392973;logger[_0x351730(0x10b)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x351730(0xf6)](_0x10812a));}));}catch(a50_0x3e45dc){logger[a50_0x392973(0x10b)](a50_0x392973(0x10a)+util[a50_0x392973(0xf6)](a50_0x3e45dc));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a50_0x27c352){logger[a50_0x392973(0x10b)](a50_0x392973(0x119)+util[a50_0x392973(0xf6)](a50_0x27c352));}logger[a50_0x392973(0x10b)](a50_0x392973(0x100));
1
+ const a50_0x4b3707=a50_0x5a09;(function(_0x294302,_0x78b7a7){const _0x3a0446=a50_0x5a09,_0x39d1f5=_0x294302();while(!![]){try{const _0x50f8c9=-parseInt(_0x3a0446(0xf9))/0x1*(parseInt(_0x3a0446(0xf2))/0x2)+parseInt(_0x3a0446(0x10f))/0x3+-parseInt(_0x3a0446(0xfc))/0x4+-parseInt(_0x3a0446(0xf6))/0x5+-parseInt(_0x3a0446(0x111))/0x6+-parseInt(_0x3a0446(0xed))/0x7+-parseInt(_0x3a0446(0x115))/0x8*(-parseInt(_0x3a0446(0xee))/0x9);if(_0x50f8c9===_0x78b7a7)break;else _0x39d1f5['push'](_0x39d1f5['shift']());}catch(_0x2113ab){_0x39d1f5['push'](_0x39d1f5['shift']());}}}(a50_0x22db,0x81beb));const {isTrue,isBrowserstackInfra}=require(a50_0x4b3707(0x10a)),setKeepAlive=require(a50_0x4b3707(0xfb)),util=require('util'),logger=require('../../helpers/logger')[a50_0x4b3707(0xf0)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a50_0x5b897f={};function a50_0x22db(){const _0x181554=['__skipSessionName','initializePuppeteerPatching','getInstance','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','jestConfig','format','../../helpers/helper','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','bootstrap','catch','BROWSERSTACK_PUPPETEER','1019391NKBRbT','skipSessionStatus','2184252mtnBAB','o11ySyncDone','workerInfo','debug','8FUjVTr','isPageFixture','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','../utils/constants','97958rmvzro','30241269gglTtc','setFrameworkDetail','winstonLogger','../v2/cliUtils','2TDsHyt','true','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','__workerDetails','3645560IMOhoX','puppeteer','testInfo','998583kHZksZ','puppeteer-core','../../helpers/setKeepAlive','4251088Paaoor','skipSessionName','JEST','__skipSessionStatus','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','currentTest','getPackageVersion'];a50_0x22db=function(){return _0x181554;};return a50_0x22db();}a50_0x5b897f[a50_0x4b3707(0x113)]=undefined,a50_0x5b897f[a50_0x4b3707(0x101)]={},a50_0x5b897f[a50_0x4b3707(0x112)]=![],a50_0x5b897f['pwPage']=null,a50_0x5b897f[a50_0x4b3707(0x116)]=![],a50_0x5b897f[a50_0x4b3707(0x101)]['id']=undefined,a50_0x5b897f[a50_0x4b3707(0x101)][a50_0x4b3707(0xf8)]=undefined;const workerDetails=a50_0x5b897f;global[a50_0x4b3707(0xf5)]=workerDetails;let puppeteerPatcher=null;function a50_0x5a09(_0x9a10b4,_0x45a722){const _0x22dbf2=a50_0x22db();return a50_0x5a09=function(_0x5a094a,_0x4a327f){_0x5a094a=_0x5a094a-0xeb;let _0x2a413e=_0x22dbf2[_0x5a094a];return _0x2a413e;},a50_0x5a09(_0x9a10b4,_0x45a722);}setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a50_0x4b3707(0x103)]=isTrue(global[a50_0x4b3707(0x108)]?.[a50_0x4b3707(0xfd)]),global[a50_0x4b3707(0xff)]=isTrue(global[a50_0x4b3707(0x108)]?.[a50_0x4b3707(0x110)])):(global[a50_0x4b3707(0x103)]=!![],global[a50_0x4b3707(0xff)]=!![]);const helper=require(a50_0x4b3707(0x10a)),puppeteerVersion=helper[a50_0x4b3707(0x102)](a50_0x4b3707(0xf7))||helper[a50_0x4b3707(0x102)](a50_0x4b3707(0xfa));if(puppeteerVersion)try{logger[a50_0x4b3707(0x114)](a50_0x4b3707(0xeb)),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a50_0x4b3707(0x104)](global['jestConfig']),logger[a50_0x4b3707(0x114)](a50_0x4b3707(0x106));}catch(a50_0x179a86){logger['debug'](a50_0x4b3707(0xf4)+util['format'](a50_0x179a86));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a50_0x4b3707(0xf1)),{FRAMEWORKS}=require(a50_0x4b3707(0xec));BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger['debug'](a50_0x4b3707(0x100)),process['env'][a50_0x4b3707(0x10e)]=a50_0x4b3707(0xf3),CLIUtils[a50_0x4b3707(0xef)](FRAMEWORKS[a50_0x4b3707(0xfe)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a50_0x4b3707(0x105)]()[a50_0x4b3707(0x10c)]()[a50_0x4b3707(0x10d)](_0x36880e=>{const _0x37bf7c=a50_0x4b3707;logger[_0x37bf7c(0x114)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x37bf7c(0x109)](_0x36880e));}));}catch(a50_0x4635c9){logger[a50_0x4b3707(0x114)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a50_0x4b3707(0x109)](a50_0x4635c9));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a50_0x1f507c){logger[a50_0x4b3707(0x114)](a50_0x4b3707(0x107)+util['format'](a50_0x1f507c));}logger[a50_0x4b3707(0x114)](a50_0x4b3707(0x10b));
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a51_0x43318f=a51_0x5d28;(function(_0x29377d,_0x310dcc){const _0x44d8c5=a51_0x5d28,_0x5050ee=_0x29377d();while(!![]){try{const _0x22ebe1=-parseInt(_0x44d8c5(0x157))/0x1+parseInt(_0x44d8c5(0xfc))/0x2*(parseInt(_0x44d8c5(0x110))/0x3)+parseInt(_0x44d8c5(0x119))/0x4*(-parseInt(_0x44d8c5(0x140))/0x5)+-parseInt(_0x44d8c5(0x133))/0x6+parseInt(_0x44d8c5(0x13a))/0x7+-parseInt(_0x44d8c5(0x15c))/0x8+-parseInt(_0x44d8c5(0x149))/0x9*(-parseInt(_0x44d8c5(0x10a))/0xa);if(_0x22ebe1===_0x310dcc)break;else _0x5050ee['push'](_0x5050ee['shift']());}catch(_0x48193d){_0x5050ee['push'](_0x5050ee['shift']());}}}(a51_0x8ea8,0x39ac6));const fs=require('fs'),path=require('path'),util=require('util'),spawn=require(a51_0x43318f(0x128))[a51_0x43318f(0x10b)],{requireModule}=require(a51_0x43318f(0x135)),PerformanceTester=require(a51_0x43318f(0x144)),PerformanceEvents=require(a51_0x43318f(0x175))['EVENTS'],helper=require(a51_0x43318f(0x135)),utilities=require(a51_0x43318f(0x13e)),{default:BrowserStackSetup}=require(a51_0x43318f(0x17d)),{FRAMEWORKS}=require(a51_0x43318f(0x117)),runIntegrations=require('./integrations/command'),yargs=require(a51_0x43318f(0x15e)),Constants=require('./utils/constants'),BrowserstackCLI=require(a51_0x43318f(0x173)),logger=require(a51_0x43318f(0x126))[a51_0x43318f(0x182)],origArgs=Object['assign']([],process[a51_0x43318f(0x116)]),captureError=async(_0x22671a,_0x344ea7,_0x5bf652,_0xd60811=null,_0x269c56=![])=>{const _0x5428e9=a51_0x43318f,_0x2e3505={'cMOCu':function(_0x2e5a20,_0x597757,_0x1d2697,_0x43faf8){return _0x2e5a20(_0x597757,_0x1d2697,_0x43faf8);},'PHgXC':'SDKTestSuccessful'};try{logger[_0x5428e9(0x183)](_0x5428e9(0x13b)+origArgs[_0x5428e9(0x14b)]('\x20')),await _0x2e3505[_0x5428e9(0xfe)](_0x22671a,_0x344ea7,_0xd60811,_0x5bf652);}catch(_0x167b01){process['exitCode']=0x1,logger['error'](util[_0x5428e9(0x13f)](_0x167b01));const _0x1771b0={'globalException':util['format']('%j',_0x167b01)};PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util[_0x5428e9(0x13f)](_0x167b01));if(helper[_0x5428e9(0xed)](global['config'])&&helper[_0x5428e9(0xed)](global[_0x5428e9(0x130)]))return;try{utilities[_0x5428e9(0x132)](_0x2e3505[_0x5428e9(0x15a)],_0x1771b0,global[_0x5428e9(0x181)],global[_0x5428e9(0x130)]);}catch(_0x521481){logger[_0x5428e9(0x184)](_0x5428e9(0x12f)+_0x521481[_0x5428e9(0x11c)]);}try{await helper[_0x5428e9(0x16e)](global[_0x5428e9(0x181)]);}catch(_0x442258){logger[_0x5428e9(0x184)](_0x5428e9(0x16f)+_0x442258[_0x5428e9(0x11c)]);}PerformanceTester[_0x5428e9(0x136)](PerformanceEvents[_0x5428e9(0xfd)],![],util[_0x5428e9(0x13f)](_0x167b01));}finally{!_0x269c56&&await BrowserstackCLI[_0x5428e9(0x134)]()[_0x5428e9(0x12d)](),PerformanceTester[_0x5428e9(0x11a)](PerformanceEvents[_0x5428e9(0x147)]);}};try{const browserstackFolderPath=path[a51_0x43318f(0x14b)](helper['homedir'](),'.browserstack');if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a51_0x43318f(0x14b)](browserstackFolderPath,a51_0x43318f(0x17f));fs[a51_0x43318f(0x158)](filePath)&&fs[a51_0x43318f(0x162)](filePath);}}catch(a51_0x5377b2){logger[a51_0x43318f(0x184)](a51_0x43318f(0x12a)+a51_0x5377b2['message']);}function a51_0x8ea8(){const _0x42c025=['isUndefined','../../ats/src/index','NIGHTWATCH','Udgca','oKjQs','slice','GyMbo','IGsPl','./mocha/command','./vanilla-js/command','setBrowserStackAutomationDisable','BROWSERSTACK_CONFIG_FILE_PATH','DGSLp','jest','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','82CbtFpE','SDK_SETUP','cMOCu','Runs\x20the\x20binary\x20with\x20load\x20command','GXLaY','run','lGwBV','-pw:channel','CUCUMBER','./playwright/command','mocha/lib/cli/run.js','disableAutoCaptureLogs','setTestObservabilityDisable','dkKSz','10220TaeskQ','spawn','xFLuu','aLSWd','MOCHA','EDOkw','1701pOabiZ','--no-config','DEBUG_FILE','dot-notation','VANILLA','filter','argv','../helpers/test-observability/constants','IFaqU','4euRiUR','start','getPwChannelLogPath','stack','MLgGg','kriwE','bbGnC','WxmhR','lwhSn','alias','./jest/command','tNbtT','CODECEPTJS','../helpers/logger','NzuJx','child_process','XkbxC','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','mocha','vanilla','stop','aDEFB','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','framework','--mochaRequire','fireFunnelTestEvent','2057100HEOQTl','getInstance','../helpers/helper','end','mocha/lib/cli/commands.js','mFcXX','IRSQs','592116nWuQdm','Running\x20SDK\x20with\x20args\x20','--opts','INchL','../helpers/utilities','format','838895cWJqcX','HfOcW','hZMaF','env','../helpers/performance/performance-tester','parserConfiguration','xQCUl','SDK_CLEANUP','trim','8136SDLpvQ','INFO','join','integrations','JEST','pw:channel\x20auto-capture\x20seed\x20failed:\x20','ySceS','help','./nightwatch/command','cucumber-js','--no-package','error','ats','strict','131139bdGEEh','existsSync','usage','PHgXC','nightwatch','1229800HqvorS','iaOMl','yargs','pw:*','vQwBG','map','unlinkSync','sMzOu','mocha/lib/cli/cli.js','AaBAR','exitProcess','demandCommand','getConfigPath','command','--require','uZldV','HST','pw:channel','sendLogs','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','INTEGRATIONS','--package','some','./v2/browserstackCLI','load\x20[subcommand]','../helpers/performance/constants','push','pZFpb','DEBUG','usage:\x20$0\x20<command>\x20[args]','XPZGJ','PLAYWRIGHT','node','../helpers/BrowserStackSetup','includes','.local-not-set.json','codeceptjs','config','winstonLogger','info','debug','rIDvI','Parsing\x20command\x20line\x20arguments','VERSION','boolean'];a51_0x8ea8=function(){return _0x42c025;};return a51_0x8ea8();}function a51_0x5d28(_0x4bb19d,_0x9f5cf2){const _0x8ea89=a51_0x8ea8();return a51_0x5d28=function(_0x5d281c,_0x579caf){_0x5d281c=_0x5d281c-0xeb;let _0x3adca5=_0x8ea89[_0x5d281c];return _0x3adca5;},a51_0x5d28(_0x4bb19d,_0x9f5cf2);}process[a51_0x43318f(0x116)]['includes'](a51_0x43318f(0x12b))&&(!process[a51_0x43318f(0x116)][a51_0x43318f(0x17e)](a51_0x43318f(0x13c))&&process[a51_0x43318f(0x116)][a51_0x43318f(0x176)]('--no-opts'),!process[a51_0x43318f(0x116)]['find'](_0x8c0341=>_0x8c0341['includes']('--config'))&&process[a51_0x43318f(0x116)]['push'](a51_0x43318f(0x111)),!process[a51_0x43318f(0x116)][a51_0x43318f(0x17e)](a51_0x43318f(0x171))&&process['argv'][a51_0x43318f(0x176)](a51_0x43318f(0x153)),helper['findAndReplace'](process['argv'],a51_0x43318f(0x16a),a51_0x43318f(0x131)));PerformanceTester['start'](PerformanceEvents['SDK_SETUP']);const a51_0x2aeb32={};a51_0x2aeb32[a51_0x43318f(0x113)]=![];const argv=yargs[a51_0x43318f(0x145)](a51_0x2aeb32)[a51_0x43318f(0x159)](a51_0x43318f(0x179))[a51_0x43318f(0x122)]('v','version')['describe']('v')[a51_0x43318f(0x122)]('h',a51_0x43318f(0x150))[a51_0x43318f(0x150)](a51_0x43318f(0x150))['showHelpOnFail'](!![],Constants[a51_0x43318f(0xeb)]['HELP'])[a51_0x43318f(0x169)](a51_0x43318f(0xfa),Constants[a51_0x43318f(0x14d)][a51_0x43318f(0x14a)],function(_0x1c68a2){const _0x35d7d1=a51_0x43318f,_0x425bdd={'GyMbo':'jest','kriwE':function(_0x444184,_0x1c26db,_0x4ed10d,_0x423136,_0x1504ed,_0x1b4219){return _0x444184(_0x1c26db,_0x4ed10d,_0x423136,_0x1504ed,_0x1b4219);},'NzuJx':function(_0x55a3d9,_0x51bfe3){return _0x55a3d9(_0x51bfe3);},'sMzOu':_0x35d7d1(0x123)},_0x1f21e0=process['argv'][_0x35d7d1(0xf2)](0x2);helper[_0x35d7d1(0x108)](),helper[_0x35d7d1(0xf7)](),_0x1c68a2['strict'](![]);const _0x4321f1=new BrowserStackSetup(_0x1c68a2[_0x35d7d1(0x116)],_0x425bdd[_0x35d7d1(0xf3)]);return _0x425bdd[_0x35d7d1(0x11e)](captureError,_0x425bdd[_0x35d7d1(0x127)](require,_0x425bdd[_0x35d7d1(0x163)]),_0x1c68a2[_0x35d7d1(0x116)],_0x4321f1,_0x1f21e0,!![]);})['command'](a51_0x43318f(0x12b),Constants[a51_0x43318f(0x10e)]['INFO'],_0x2c18f9=>{const _0x4898e6=a51_0x43318f,_0x5d4b60={'mFcXX':function(_0x29cbc0,_0x3680a5,_0x32aac5,_0x2cd8ed){return _0x29cbc0(_0x3680a5,_0x32aac5,_0x2cd8ed);},'CZHMo':function(_0x34fb94,_0x4bf111){return _0x34fb94(_0x4bf111);},'eGDJS':_0x4898e6(0xf5),'aLSWd':_0x4898e6(0x12b),'qMaxH':_0x4898e6(0x186),'MLgGg':function(_0x7bb30b,_0x164678,_0x39f3f1){return _0x7bb30b(_0x164678,_0x39f3f1);},'ySceS':_0x4898e6(0x106),'DGSLp':function(_0x91e047,_0x23e4a1,_0x4fef50){return _0x91e047(_0x23e4a1,_0x4fef50);},'EDOkw':_0x4898e6(0x137),'HfOcW':_0x4898e6(0x164),'iaOMl':function(_0x54b66c){return _0x54b66c();}};process[_0x4898e6(0x116)]=process[_0x4898e6(0x116)]['slice'](0x1),helper[_0x4898e6(0x108)](),helper[_0x4898e6(0xf7)]();const _0x41f23e=new BrowserStackSetup(_0x2c18f9[_0x4898e6(0x116)],_0x5d4b60[_0x4898e6(0x10d)]);logger[_0x4898e6(0x184)](_0x5d4b60['qMaxH']);const _0x27f67b=_0x5d4b60[_0x4898e6(0x11d)](requireModule,_0x5d4b60[_0x4898e6(0x14f)],_0x5d4b60['aLSWd']),_0x242de4=_0x5d4b60[_0x4898e6(0xf9)](requireModule,_0x5d4b60[_0x4898e6(0x10f)],_0x5d4b60[_0x4898e6(0x10d)]);delete _0x27f67b['handler'],_0x27f67b['handler']=function(_0x189a97){const _0x5febab=_0x4898e6;return _0x5d4b60[_0x5febab(0x138)](captureError,_0x5d4b60['CZHMo'](require,_0x5d4b60['eGDJS']),_0x189a97,_0x41f23e);},_0x242de4[_0x4898e6(0x101)]=_0x27f67b;const {main:_0x3e36a7}=_0x5d4b60[_0x4898e6(0xf9)](requireModule,_0x5d4b60[_0x4898e6(0x141)],_0x5d4b60[_0x4898e6(0x10d)]);_0x5d4b60[_0x4898e6(0x15d)](_0x3e36a7);})[a51_0x43318f(0x169)]('cucumber-js',Constants[a51_0x43318f(0x104)][a51_0x43318f(0x14a)],function(_0x1f92a7){const _0xa6c02a=a51_0x43318f,_0x3a505c={'LPfBn':_0xa6c02a(0x152),'oKjQs':function(_0x4906a6,_0x111389,_0x3653bf,_0x41f5e7,_0x58d665,_0x31095a){return _0x4906a6(_0x111389,_0x3653bf,_0x41f5e7,_0x58d665,_0x31095a);},'tNbtT':function(_0x5067e6,_0x10bb7a){return _0x5067e6(_0x10bb7a);},'SDavO':'./cucumber-js/command'},_0xe376c6=process['argv']['slice'](0x2),_0x3fc103=new BrowserStackSetup(_0x1f92a7['argv'],_0x3a505c['LPfBn']);return _0x3a505c[_0xa6c02a(0xf1)](captureError,_0x3a505c[_0xa6c02a(0x124)](require,_0x3a505c['SDavO']),_0x1f92a7[_0xa6c02a(0x116)],_0x3fc103,_0xe376c6,!![]);})[a51_0x43318f(0x169)](a51_0x43318f(0x17c),Constants[a51_0x43318f(0x114)][a51_0x43318f(0x14a)],function(_0xb9603b){const _0x509590=a51_0x43318f,_0x4ddaa5={'Udgca':_0x509590(0x12c),'xQCUl':function(_0x509e7e,_0x35c521,_0x104adb,_0x35b86,_0x286ff6){return _0x509e7e(_0x35c521,_0x104adb,_0x35b86,_0x286ff6);},'GXLaY':function(_0x122932,_0x24a9e7){return _0x122932(_0x24a9e7);},'xFLuu':_0x509590(0xf6)},_0x24f8c2=process['argv'][_0x509590(0xf2)](0x2),_0x8e4908=new BrowserStackSetup(_0xb9603b[_0x509590(0x116)],_0x4ddaa5[_0x509590(0xf0)]);return _0x4ddaa5[_0x509590(0x146)](captureError,_0x4ddaa5[_0x509590(0x100)](require,_0x4ddaa5[_0x509590(0x10c)]),_0xb9603b['argv'],_0x8e4908,_0x24f8c2);})[a51_0x43318f(0x169)](a51_0x43318f(0x15b),Constants[a51_0x43318f(0xef)]['INFO'],function(_0x4d97d8){const _0x337afb=a51_0x43318f,_0x1338bd={'lwhSn':function(_0x715e9b,_0x246c09,_0x448643,_0x13f76f,_0x2825dc){return _0x715e9b(_0x246c09,_0x448643,_0x13f76f,_0x2825dc);},'yHlgO':function(_0x53f420,_0x3bec54){return _0x53f420(_0x3bec54);},'IFaqU':_0x337afb(0x151)},_0x4e6ee9=process[_0x337afb(0x116)]['slice'](0x2),_0x61e998=new BrowserStackSetup(_0x4d97d8['argv']);return _0x1338bd[_0x337afb(0x121)](captureError,_0x1338bd['yHlgO'](require,_0x1338bd[_0x337afb(0x118)]),_0x4d97d8['argv'],_0x61e998,_0x4e6ee9);})['command']('codeceptjs',Constants[a51_0x43318f(0x125)]['INFO'],function(_0x51c09b){const _0x24edfa=a51_0x43318f,_0x2af3de={'pZFpb':_0x24edfa(0x180),'aDEFB':function(_0x4f9038,_0x381a3a,_0x4ee39f,_0x45fc9d,_0x1c4cc1){return _0x4f9038(_0x381a3a,_0x4ee39f,_0x45fc9d,_0x1c4cc1);},'WzONl':function(_0x2e6467,_0x1e657c){return _0x2e6467(_0x1e657c);},'IGsPl':'./codeceptjs/command'},_0x48bb2d=process[_0x24edfa(0x116)][_0x24edfa(0xf2)](0x2),_0x575fb7=new BrowserStackSetup(_0x51c09b[_0x24edfa(0x116)],_0x2af3de[_0x24edfa(0x177)]);return _0x2af3de[_0x24edfa(0x12e)](captureError,_0x2af3de['WzONl'](require,_0x2af3de[_0x24edfa(0xf4)]),_0x51c09b[_0x24edfa(0x116)],_0x575fb7,_0x48bb2d);})[a51_0x43318f(0x169)]('ats',Constants[a51_0x43318f(0x16c)][a51_0x43318f(0x14a)],function(_0x37b8e6){const _0x243c0c=a51_0x43318f,_0x5f1dd0={'IRSQs':function(_0x1f2a25,_0x4c7cb0,_0x59fe04){return _0x1f2a25(_0x4c7cb0,_0x59fe04);},'hZMaF':function(_0x541db5,_0x3d2f7c){return _0x541db5(_0x3d2f7c);},'dkKSz':_0x243c0c(0xee)},_0x4d3f38=process[_0x243c0c(0x116)][_0x243c0c(0xf2)](0x2);return _0x5f1dd0[_0x243c0c(0x139)](captureError,_0x5f1dd0[_0x243c0c(0x142)](require,_0x5f1dd0[_0x243c0c(0x109)]),_0x37b8e6);})[a51_0x43318f(0x169)](a51_0x43318f(0x14c),Constants[a51_0x43318f(0x170)][a51_0x43318f(0x14a)],function(_0x3a75d6){const _0xc0ac18=a51_0x43318f,_0x248603={'vQwBG':function(_0xf4875a,_0x3f91fd){return _0xf4875a(_0x3f91fd);}};return _0x248603[_0xc0ac18(0x160)](runIntegrations,_0x3a75d6);})[a51_0x43318f(0x169)]('playwright',Constants['PLAYWRIGHT']['INFO'],function(_0x3a388c){const _0x5ad413=a51_0x43318f,_0xe9ac13={'AaBAR':_0x5ad413(0x16d),'rRTOX':function(_0x5324aa,_0x555e22){return _0x5324aa&&_0x555e22;},'XkbxC':function(_0x580369,_0x4586c4,_0x5e33e5,_0x4ae392,_0x17c734,_0x591e7b){return _0x580369(_0x4586c4,_0x5e33e5,_0x4ae392,_0x17c734,_0x591e7b);},'INchL':function(_0x58df44,_0x54d909){return _0x58df44(_0x54d909);},'uZldV':_0x5ad413(0x105)},_0x4d7741=process[_0x5ad413(0x116)][_0x5ad413(0xf2)](0x2);helper[_0x5ad413(0x168)](process['argv'])&&(process[_0x5ad413(0x143)][_0x5ad413(0xf8)]=helper[_0x5ad413(0x168)](process[_0x5ad413(0x116)]));helper[_0x5ad413(0x108)](),helper['setBrowserStackAutomationDisable']();const _0x2dfa37=new BrowserStackSetup(_0x3a388c[_0x5ad413(0x116)],FRAMEWORKS[_0x5ad413(0x17b)]);try{if(!_0x2dfa37[_0x5ad413(0x181)]||!_0x2dfa37[_0x5ad413(0x181)][_0x5ad413(0x107)]){const _0x195d16=_0xe9ac13[_0x5ad413(0x165)],_0x57896a=process[_0x5ad413(0x143)][_0x5ad413(0x178)]||'',_0x4ec8f6=_0x57896a['split'](',')[_0x5ad413(0x161)](_0xda6b3f=>_0xda6b3f[_0x5ad413(0x148)]())[_0x5ad413(0x115)](Boolean),_0x2db19c=_0x4ec8f6[_0x5ad413(0x172)](_0x5e92ee=>_0x5e92ee===_0x5ad413(0x103)||_0x5e92ee==='-pw:*'||_0x5e92ee==='-*'),_0x33af43=_0x4ec8f6[_0x5ad413(0x172)](_0x5a5dd9=>_0x5a5dd9===_0x195d16||_0x5a5dd9===_0x5ad413(0x15f)||_0x5a5dd9==='*');if(_0xe9ac13['rRTOX'](!_0x2db19c,!_0x33af43)){const _0x2a2da5=helper[_0x5ad413(0x11b)]();_0x2a2da5&&(process[_0x5ad413(0x143)][_0x5ad413(0x178)]=_0x57896a?_0x57896a+','+_0x195d16:_0x195d16,!process[_0x5ad413(0x143)][_0x5ad413(0x112)]&&(process[_0x5ad413(0x143)][_0x5ad413(0x112)]=_0x2a2da5));}}}catch(_0x55243b){logger['debug'](_0x5ad413(0x14e)+util['format'](_0x55243b));}return _0xe9ac13[_0x5ad413(0x129)](captureError,_0xe9ac13[_0x5ad413(0x13d)](require,_0xe9ac13[_0x5ad413(0x16b)]),_0x3a388c[_0x5ad413(0x116)],_0x2dfa37,_0x4d7741,!![]);})[a51_0x43318f(0x169)](a51_0x43318f(0x174),a51_0x43318f(0xff),function(_0x28dc89){const _0x5097c4=a51_0x43318f,_0x5cefe1={};_0x5cefe1[_0x5097c4(0x11f)]=_0x5097c4(0x150),_0x5cefe1[_0x5097c4(0x185)]=_0x5097c4(0xec),_0x5cefe1[_0x5097c4(0x17a)]='Show\x20help';const _0x19d106=_0x5cefe1;return _0x28dc89[_0x5097c4(0x150)](![])['option'](_0x19d106[_0x5097c4(0x11f)],{'alias':'h','type':_0x19d106['rIDvI'],'describe':_0x19d106['XPZGJ']})[_0x5097c4(0x156)](![])[_0x5097c4(0x166)](![]);},function(_0x4b4396){const _0x32f793=a51_0x43318f,_0x122d3c={'WxmhR':function(_0x46970e,_0x6e2de4,_0x462bd4){return _0x46970e(_0x6e2de4,_0x462bd4);},'bpigM':function(_0xe9c7fb,_0x448104){return _0xe9c7fb(_0x448104);},'lGwBV':'./load/index'},_0x193fdf={};return _0x193fdf[_0x32f793(0x116)]=_0x4b4396,_0x122d3c[_0x32f793(0x120)](captureError,_0x122d3c['bpigM'](require,_0x122d3c[_0x32f793(0x102)]),_0x193fdf);})[a51_0x43318f(0x167)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')['wrap'](null)['argv'];!helper[a51_0x43318f(0xed)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a51_0x43318f(0x155)&&console[a51_0x43318f(0x154)](a51_0x43318f(0xfb));
2
+ 'use strict';const a51_0x25e60e=a51_0x317c;(function(_0x1cf8c0,_0x2f5834){const _0xb9576b=a51_0x317c,_0x32f9ce=_0x1cf8c0();while(!![]){try{const _0x35adb7=parseInt(_0xb9576b(0xbb))/0x1+-parseInt(_0xb9576b(0xc5))/0x2*(-parseInt(_0xb9576b(0xb3))/0x3)+parseInt(_0xb9576b(0x117))/0x4*(parseInt(_0xb9576b(0xb4))/0x5)+parseInt(_0xb9576b(0xc7))/0x6+parseInt(_0xb9576b(0x102))/0x7*(-parseInt(_0xb9576b(0xc0))/0x8)+-parseInt(_0xb9576b(0x13a))/0x9*(parseInt(_0xb9576b(0x11d))/0xa)+-parseInt(_0xb9576b(0x14c))/0xb*(parseInt(_0xb9576b(0xcb))/0xc);if(_0x35adb7===_0x2f5834)break;else _0x32f9ce['push'](_0x32f9ce['shift']());}catch(_0x5bb1a2){_0x32f9ce['push'](_0x32f9ce['shift']());}}}(a51_0x2e7b,0x41d3b));function a51_0x317c(_0x38319c,_0x5c9cb2){const _0x2e7bba=a51_0x2e7b();return a51_0x317c=function(_0x317cd3,_0x793f49){_0x317cd3=_0x317cd3-0xb1;let _0x1db01c=_0x2e7bba[_0x317cd3];return _0x1db01c;},a51_0x317c(_0x38319c,_0x5c9cb2);}const fs=require('fs'),path=require(a51_0x25e60e(0x10a)),util=require('util'),spawn=require(a51_0x25e60e(0xdf))[a51_0x25e60e(0xe4)],{requireModule}=require(a51_0x25e60e(0xf3)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require('../helpers/performance/constants')[a51_0x25e60e(0x12e)],helper=require(a51_0x25e60e(0xf3)),utilities=require(a51_0x25e60e(0x116)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require(a51_0x25e60e(0x130)),yargs=require(a51_0x25e60e(0xd1)),Constants=require(a51_0x25e60e(0x13c)),BrowserstackCLI=require(a51_0x25e60e(0x11c)),logger=require(a51_0x25e60e(0xb7))['winstonLogger'],origArgs=Object[a51_0x25e60e(0x104)]([],process['argv']),captureError=async(_0x220eb7,_0x2642d6,_0x3840ca,_0x30971b=null,_0x49d539=![])=>{const _0xf05354=a51_0x25e60e,_0x48b630={'cHrFI':function(_0x54c3de,_0x4640dc,_0x23cb50,_0x384469){return _0x54c3de(_0x4640dc,_0x23cb50,_0x384469);},'VudaL':'SDKTestSuccessful'};try{logger[_0xf05354(0xf2)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0xf05354(0x106)]('\x20')),await _0x48b630[_0xf05354(0x110)](_0x220eb7,_0x2642d6,_0x30971b,_0x3840ca);}catch(_0x55909d){process[_0xf05354(0x132)]=0x1,logger[_0xf05354(0xd5)](util[_0xf05354(0xb5)](_0x55909d));const _0x4d76f3={'globalException':util['format']('%j',_0x55909d)};PerformanceTester[_0xf05354(0x11a)](PerformanceEvents[_0xf05354(0x128)],![],util[_0xf05354(0xb5)](_0x55909d));if(helper[_0xf05354(0xeb)](global['config'])&&helper[_0xf05354(0xeb)](global[_0xf05354(0xd7)]))return;try{utilities['fireFunnelTestEvent'](_0x48b630['VudaL'],_0x4d76f3,global[_0xf05354(0x133)],global['framework']);}catch(_0x182e00){logger['debug'](_0xf05354(0xcd)+_0x182e00[_0xf05354(0xd8)]);}try{await helper[_0xf05354(0x100)](global[_0xf05354(0x133)]);}catch(_0x2327b1){logger[_0xf05354(0x145)](_0xf05354(0x13b)+_0x2327b1[_0xf05354(0xd8)]);}PerformanceTester[_0xf05354(0x11a)](PerformanceEvents['SDK_SETUP'],![],util[_0xf05354(0xb5)](_0x55909d));}finally{!_0x49d539&&await BrowserstackCLI[_0xf05354(0x138)]()[_0xf05354(0xf7)](),PerformanceTester[_0xf05354(0x10f)](PerformanceEvents[_0xf05354(0xec)]);}};function a51_0x2e7b(){const _0x2c8ca1=['IQxff','NIGHTWATCH','6585TYQqIF','1033435jOpdNb','format','--mochaRequire','../helpers/logger','-pw:*','PgWfv','jest','476489jxmzXM','load\x20[subcommand]','wrap','wViFM','JlUFi','64mzaNph','qrLRU','PLAYWRIGHT','--package','tNmgI','166jjZugI','INFO','1739772sYjqyR','setTestObservabilityDisable','disableAutoCaptureLogs','mocha/lib/cli/cli.js','24nHbkOw','setBrowserStackAutomationDisable','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','slice','KLDJt','describe','yargs','poVeD','oZHiZ','uKxkZ','error','-pw:channel','framework','stack','alias','pw:channel\x20auto-capture\x20seed\x20failed:\x20','INTEGRATIONS','DEBUG','LUdgE','Parsing\x20command\x20line\x20arguments','child_process','usage:\x20$0\x20<command>\x20[args]','unlinkSync','JSSCI','some','spawn','push','TVpjI','homedir','avmwR','SlCNQ','dot-notation','isUndefined','SDK_CLEANUP','argv','handler','MOCHA','NPErn','playwright','info','../helpers/helper','RMzyE','YOCWl','./mocha/command','stop','--no-package','--config','help','.local-not-set.json','uwfDL','JcLRl','nwBWA','message','sendLogs','GdOns','109697QCPGgQ','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','assign','jCFeC','join','Runs\x20the\x20binary\x20with\x20load\x20command','cDBEY','--require','path','mocha/lib/cli/run.js','zYlzo','boolean','IEFXI','start','cHrFI','run','uCgUA','mocha','vanilla','cucumber-js','../helpers/utilities','4mTiett','strict','./playwright/command','end','getConfigPath','./v2/browserstackCLI','11340MiaVtS','.browserstack','includes','usage','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','YITNk','getPwChannelLogPath','demandCommand','CUCUMBER','DEBUG_FILE','node','SDK_SETUP','exitProcess','fSbmM','mocha/lib/cli/commands.js','./cucumber-js/command','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','EVENTS','ZrUwr','./integrations/command','--no-opts','exitCode','config','codeceptjs','pw:channel','SqDcE','pw:*','getInstance','LgAei','4122vKzmAW','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','./utils/constants','option','CODECEPTJS','JEST','Jbobo','existsSync','showHelpOnFail','map','./vanilla-js/command','debug','env','nightwatch','version','BROWSERSTACK_CONFIG_FILE_PATH','knymW','HQatF','1325258GRkrSB','findAndReplace','command','ohjoz'];a51_0x2e7b=function(){return _0x2c8ca1;};return a51_0x2e7b();}try{const browserstackFolderPath=path[a51_0x25e60e(0x106)](helper[a51_0x25e60e(0xe7)](),a51_0x25e60e(0x11e));if(fs[a51_0x25e60e(0x141)](browserstackFolderPath)){const filePath=path[a51_0x25e60e(0x106)](browserstackFolderPath,a51_0x25e60e(0xfb));fs[a51_0x25e60e(0x141)](filePath)&&fs[a51_0x25e60e(0xe1)](filePath);}}catch(a51_0x34118c){logger[a51_0x25e60e(0x145)](a51_0x25e60e(0x121)+a51_0x34118c[a51_0x25e60e(0xff)]);}process[a51_0x25e60e(0xed)]['includes'](a51_0x25e60e(0x113))&&(!process[a51_0x25e60e(0xed)][a51_0x25e60e(0x11f)]('--opts')&&process[a51_0x25e60e(0xed)]['push'](a51_0x25e60e(0x131)),!process[a51_0x25e60e(0xed)]['find'](_0x18c359=>_0x18c359[a51_0x25e60e(0x11f)](a51_0x25e60e(0xf9)))&&process[a51_0x25e60e(0xed)][a51_0x25e60e(0xe5)]('--no-config'),!process[a51_0x25e60e(0xed)][a51_0x25e60e(0x11f)](a51_0x25e60e(0xc3))&&process[a51_0x25e60e(0xed)][a51_0x25e60e(0xe5)](a51_0x25e60e(0xf8)),helper[a51_0x25e60e(0x14d)](process['argv'],a51_0x25e60e(0x109),a51_0x25e60e(0xb6)));PerformanceTester[a51_0x25e60e(0x10f)](PerformanceEvents[a51_0x25e60e(0x128)]);const a51_0x3cec6e={};a51_0x3cec6e[a51_0x25e60e(0xea)]=![];const argv=yargs['parserConfiguration'](a51_0x3cec6e)[a51_0x25e60e(0x120)](a51_0x25e60e(0xe0))[a51_0x25e60e(0xd9)]('v',a51_0x25e60e(0x148))[a51_0x25e60e(0xd0)]('v')['alias']('h','help')['help'](a51_0x25e60e(0xfa))[a51_0x25e60e(0x142)](!![],Constants['VERSION']['HELP'])[a51_0x25e60e(0x14e)](a51_0x25e60e(0xba),Constants[a51_0x25e60e(0x13f)][a51_0x25e60e(0xc6)],function(_0x4a0a26){const _0x1a9dcc=a51_0x25e60e,_0x44c4a3={'zYlzo':_0x1a9dcc(0xba),'ohjoz':function(_0x642ccf,_0x1d5ded,_0x451328,_0x4f28da,_0x2f1921,_0x21e04e){return _0x642ccf(_0x1d5ded,_0x451328,_0x4f28da,_0x2f1921,_0x21e04e);},'PgWfv':function(_0x59ac31,_0x2b899f){return _0x59ac31(_0x2b899f);},'nwBWA':'./jest/command'},_0x341476=process['argv'][_0x1a9dcc(0xce)](0x2);helper[_0x1a9dcc(0xc8)](),helper[_0x1a9dcc(0xcc)](),_0x4a0a26[_0x1a9dcc(0x118)](![]);const _0xa9098c=new BrowserStackSetup(_0x4a0a26[_0x1a9dcc(0xed)],_0x44c4a3[_0x1a9dcc(0x10c)]);return _0x44c4a3[_0x1a9dcc(0x14f)](captureError,_0x44c4a3[_0x1a9dcc(0xb9)](require,_0x44c4a3[_0x1a9dcc(0xfe)]),_0x4a0a26[_0x1a9dcc(0xed)],_0xa9098c,_0x341476,!![]);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0x113),Constants[a51_0x25e60e(0xef)][a51_0x25e60e(0xc6)],_0x4a2081=>{const _0x346d29=a51_0x25e60e,_0x48754d={'Jbobo':function(_0x505b96,_0x2e63d3,_0x50b81f,_0x23c64b){return _0x505b96(_0x2e63d3,_0x50b81f,_0x23c64b);},'tNmgI':function(_0x4cedec,_0x1dba3b){return _0x4cedec(_0x1dba3b);},'LUdgE':_0x346d29(0xf6),'KLDJt':_0x346d29(0x113),'YOCWl':_0x346d29(0xde),'IEFXI':function(_0x5b51dc,_0x3f1e5b,_0x373729){return _0x5b51dc(_0x3f1e5b,_0x373729);},'cDBEY':_0x346d29(0x10b),'oNZFq':_0x346d29(0x12b),'YITNk':_0x346d29(0xca),'ZrUwr':function(_0x4c81a1){return _0x4c81a1();}};process['argv']=process[_0x346d29(0xed)][_0x346d29(0xce)](0x1),helper[_0x346d29(0xc8)](),helper[_0x346d29(0xcc)]();const _0x1290b6=new BrowserStackSetup(_0x4a2081[_0x346d29(0xed)],_0x48754d[_0x346d29(0xcf)]);logger[_0x346d29(0x145)](_0x48754d[_0x346d29(0xf5)]);const _0x21df0e=_0x48754d[_0x346d29(0x10e)](requireModule,_0x48754d[_0x346d29(0x108)],_0x48754d['KLDJt']),_0x532ffd=_0x48754d[_0x346d29(0x10e)](requireModule,_0x48754d['oNZFq'],_0x48754d[_0x346d29(0xcf)]);delete _0x21df0e[_0x346d29(0xee)],_0x21df0e[_0x346d29(0xee)]=function(_0x5dfc42){const _0x5346e9=_0x346d29;return _0x48754d[_0x5346e9(0x140)](captureError,_0x48754d[_0x5346e9(0xc4)](require,_0x48754d[_0x5346e9(0xdd)]),_0x5dfc42,_0x1290b6);},_0x532ffd[_0x346d29(0x111)]=_0x21df0e;const {main:_0x7398ee}=_0x48754d[_0x346d29(0x10e)](requireModule,_0x48754d[_0x346d29(0x122)],_0x48754d['KLDJt']);_0x48754d[_0x346d29(0x12f)](_0x7398ee);})[a51_0x25e60e(0x14e)]('cucumber-js',Constants[a51_0x25e60e(0x125)][a51_0x25e60e(0xc6)],function(_0x18c175){const _0x2e9432=a51_0x25e60e,_0xdd3670={'fSbmM':_0x2e9432(0x115),'uwfDL':function(_0x37f226,_0x38184a,_0x5ec8a3,_0x213e55,_0x8797c0,_0x1b26d1){return _0x37f226(_0x38184a,_0x5ec8a3,_0x213e55,_0x8797c0,_0x1b26d1);},'JcLRl':function(_0x1b1bcc,_0x454546){return _0x1b1bcc(_0x454546);},'knymW':_0x2e9432(0x12c)},_0x136cd1=process[_0x2e9432(0xed)][_0x2e9432(0xce)](0x2),_0x2e5801=new BrowserStackSetup(_0x18c175[_0x2e9432(0xed)],_0xdd3670[_0x2e9432(0x12a)]);return _0xdd3670[_0x2e9432(0xfc)](captureError,_0xdd3670[_0x2e9432(0xfd)](require,_0xdd3670[_0x2e9432(0x14a)]),_0x18c175[_0x2e9432(0xed)],_0x2e5801,_0x136cd1,!![]);})['command'](a51_0x25e60e(0x127),Constants['VANILLA'][a51_0x25e60e(0xc6)],function(_0x1f309d){const _0x344ce3=a51_0x25e60e,_0x567731={'SqDcE':_0x344ce3(0x114),'fsZli':function(_0x8b6ec3,_0x410f1c,_0x2119b0,_0x5b6636,_0x5f99bb){return _0x8b6ec3(_0x410f1c,_0x2119b0,_0x5b6636,_0x5f99bb);},'ZHQom':function(_0x251a12,_0x6ba73e){return _0x251a12(_0x6ba73e);},'wViFM':_0x344ce3(0x144)},_0x25a037=process[_0x344ce3(0xed)][_0x344ce3(0xce)](0x2),_0x40a51b=new BrowserStackSetup(_0x1f309d['argv'],_0x567731[_0x344ce3(0x136)]);return _0x567731['fsZli'](captureError,_0x567731['ZHQom'](require,_0x567731[_0x344ce3(0xbe)]),_0x1f309d[_0x344ce3(0xed)],_0x40a51b,_0x25a037);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0x147),Constants[a51_0x25e60e(0xb2)]['INFO'],function(_0x282e45){const _0x193515=a51_0x25e60e,_0x10cade={'TVpjI':function(_0x509b78,_0x1357e9,_0x2f6d50,_0x34b387,_0x3bd980){return _0x509b78(_0x1357e9,_0x2f6d50,_0x34b387,_0x3bd980);},'LgAei':function(_0x42bb8b,_0x198b83){return _0x42bb8b(_0x198b83);},'GdOns':'./nightwatch/command'},_0x5725dc=process[_0x193515(0xed)][_0x193515(0xce)](0x2),_0x4187bb=new BrowserStackSetup(_0x282e45[_0x193515(0xed)]);return _0x10cade[_0x193515(0xe6)](captureError,_0x10cade[_0x193515(0x139)](require,_0x10cade[_0x193515(0x101)]),_0x282e45[_0x193515(0xed)],_0x4187bb,_0x5725dc);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0x134),Constants[a51_0x25e60e(0x13e)][a51_0x25e60e(0xc6)],function(_0x4bf82f){const _0x3ab9fc=a51_0x25e60e,_0x2c2559={'uCgUA':_0x3ab9fc(0x134),'oZHiZ':function(_0x537727,_0x410369,_0x408aa8,_0x52fc7f,_0x3b7ad7){return _0x537727(_0x410369,_0x408aa8,_0x52fc7f,_0x3b7ad7);},'JSSCI':function(_0x434dc3,_0x21751b){return _0x434dc3(_0x21751b);},'IQxff':'./codeceptjs/command'},_0x501775=process['argv']['slice'](0x2),_0x4f6981=new BrowserStackSetup(_0x4bf82f['argv'],_0x2c2559[_0x3ab9fc(0x112)]);return _0x2c2559[_0x3ab9fc(0xd3)](captureError,_0x2c2559[_0x3ab9fc(0xe2)](require,_0x2c2559[_0x3ab9fc(0xb1)]),_0x4bf82f[_0x3ab9fc(0xed)],_0x4f6981,_0x501775);})[a51_0x25e60e(0x14e)]('ats',Constants['HST'][a51_0x25e60e(0xc6)],function(_0x539de1){const _0x9e8851=a51_0x25e60e,_0x351971={'osOnk':function(_0x40bc76,_0x2d960e,_0x2ed162){return _0x40bc76(_0x2d960e,_0x2ed162);},'nCTIa':function(_0x8ba88,_0x5a6b37){return _0x8ba88(_0x5a6b37);},'SlCNQ':'../../ats/src/index'},_0x456108=process['argv'][_0x9e8851(0xce)](0x2);return _0x351971['osOnk'](captureError,_0x351971['nCTIa'](require,_0x351971[_0x9e8851(0xe9)]),_0x539de1);})[a51_0x25e60e(0x14e)]('integrations',Constants[a51_0x25e60e(0xdb)][a51_0x25e60e(0xc6)],function(_0x1099f5){const _0x598662=a51_0x25e60e,_0x18bc86={'JlUFi':function(_0x724946,_0xc6ca55){return _0x724946(_0xc6ca55);}};return _0x18bc86[_0x598662(0xbf)](runIntegrations,_0x1099f5);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0xf1),Constants[a51_0x25e60e(0xc2)][a51_0x25e60e(0xc6)],function(_0x2518c4){const _0x2ba943=a51_0x25e60e,_0x1a71ec={'uKxkZ':_0x2ba943(0x135),'NPErn':function(_0x6601a0,_0x450801){return _0x6601a0&&_0x450801;},'HQatF':function(_0x7d3d0,_0x5e28df,_0xe0936b,_0x24eb2b,_0x33c1d8,_0x54296d){return _0x7d3d0(_0x5e28df,_0xe0936b,_0x24eb2b,_0x33c1d8,_0x54296d);},'iAvKI':function(_0x5073d8,_0x3ba76c){return _0x5073d8(_0x3ba76c);},'CZNnC':_0x2ba943(0x119)},_0x445367=process['argv'][_0x2ba943(0xce)](0x2);helper[_0x2ba943(0x11b)](process['argv'])&&(process['env'][_0x2ba943(0x149)]=helper['getConfigPath'](process[_0x2ba943(0xed)]));helper[_0x2ba943(0xc8)](),helper[_0x2ba943(0xcc)]();const _0x53d6ab=new BrowserStackSetup(_0x2518c4[_0x2ba943(0xed)],FRAMEWORKS[_0x2ba943(0xc2)]);try{if(!_0x53d6ab[_0x2ba943(0x133)]||!_0x53d6ab[_0x2ba943(0x133)][_0x2ba943(0xc9)]){const _0x42f70b=_0x1a71ec[_0x2ba943(0xd4)],_0x58ca5a=process[_0x2ba943(0x146)][_0x2ba943(0xdc)]||'',_0x1c0570=_0x58ca5a['split'](',')[_0x2ba943(0x143)](_0x139d87=>_0x139d87['trim']())['filter'](Boolean),_0x1ddf3e=_0x1c0570['some'](_0x837655=>_0x837655===_0x2ba943(0xd6)||_0x837655===_0x2ba943(0xb8)||_0x837655==='-*'),_0x39a834=_0x1c0570[_0x2ba943(0xe3)](_0x188beb=>_0x188beb===_0x42f70b||_0x188beb===_0x2ba943(0x137)||_0x188beb==='*');if(_0x1a71ec[_0x2ba943(0xf0)](!_0x1ddf3e,!_0x39a834)){const _0xe275f4=helper[_0x2ba943(0x123)]();_0xe275f4&&(process[_0x2ba943(0x146)][_0x2ba943(0xdc)]=_0x58ca5a?_0x58ca5a+','+_0x42f70b:_0x42f70b,!process['env'][_0x2ba943(0x126)]&&(process[_0x2ba943(0x146)]['DEBUG_FILE']=_0xe275f4));}}}catch(_0x5b96aa){logger[_0x2ba943(0x145)](_0x2ba943(0xda)+util[_0x2ba943(0xb5)](_0x5b96aa));}return _0x1a71ec[_0x2ba943(0x14b)](captureError,_0x1a71ec['iAvKI'](require,_0x1a71ec['CZNnC']),_0x2518c4[_0x2ba943(0xed)],_0x53d6ab,_0x445367,!![]);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0xbc),a51_0x25e60e(0x107),function(_0x3a2513){const _0x2049d3=a51_0x25e60e,_0xd95e6b={};_0xd95e6b['wXnTi']=_0x2049d3(0xfa),_0xd95e6b['avmwR']=_0x2049d3(0x10d),_0xd95e6b[_0x2049d3(0xc1)]='Show\x20help';const _0x1339d2=_0xd95e6b;return _0x3a2513['help'](![])[_0x2049d3(0x13d)](_0x1339d2['wXnTi'],{'alias':'h','type':_0x1339d2[_0x2049d3(0xe8)],'describe':_0x1339d2[_0x2049d3(0xc1)]})[_0x2049d3(0x118)](![])[_0x2049d3(0x129)](![]);},function(_0x299d86){const _0x12118b=a51_0x25e60e,_0x14cb8d={'jCFeC':function(_0x53a7e7,_0x58fd40,_0x2c457f){return _0x53a7e7(_0x58fd40,_0x2c457f);},'RMzyE':function(_0x31e331,_0x4b6778){return _0x31e331(_0x4b6778);},'poVeD':'./load/index'},_0x82c57d={};return _0x82c57d[_0x12118b(0xed)]=_0x299d86,_0x14cb8d[_0x12118b(0x105)](captureError,_0x14cb8d[_0x12118b(0xf4)](require,_0x14cb8d[_0x12118b(0xd2)]),_0x82c57d);})[a51_0x25e60e(0x124)](0x1,a51_0x25e60e(0x103))[a51_0x25e60e(0xbd)](null)[a51_0x25e60e(0xed)];!helper[a51_0x25e60e(0xeb)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console['error'](a51_0x25e60e(0x12d));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a52_0x556a64=a52_0x19a9;(function(_0x1f698b,_0x24d3aa){const _0x583bc3=a52_0x19a9,_0x5bb5a3=_0x1f698b();while(!![]){try{const _0x478cf5=-parseInt(_0x583bc3(0x115))/0x1+-parseInt(_0x583bc3(0x10c))/0x2+-parseInt(_0x583bc3(0xda))/0x3+parseInt(_0x583bc3(0x114))/0x4+parseInt(_0x583bc3(0xe4))/0x5+parseInt(_0x583bc3(0x11d))/0x6*(parseInt(_0x583bc3(0x102))/0x7)+parseInt(_0x583bc3(0x106))/0x8*(parseInt(_0x583bc3(0xd2))/0x9);if(_0x478cf5===_0x24d3aa)break;else _0x5bb5a3['push'](_0x5bb5a3['shift']());}catch(_0x453117){_0x5bb5a3['push'](_0x5bb5a3['shift']());}}}(a52_0x4cef,0x3045f));const fs=require('fs'),helper=require(a52_0x556a64(0xfd)),utilities=require(a52_0x556a64(0x110)),yaml=require('js-yaml'),yargs=require(a52_0x556a64(0x119)),logger=require(a52_0x556a64(0xfb))[a52_0x556a64(0xfa)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a52_0x556a64(0xe9),configFile=process[a52_0x556a64(0x116)]()+a52_0x556a64(0xe1),packageFile=process[a52_0x556a64(0x116)]()+a52_0x556a64(0x105),frameworks=['mocha',a52_0x556a64(0x10f),a52_0x556a64(0xdd),a52_0x556a64(0xe8),a52_0x556a64(0xd6),a52_0x556a64(0xe3),'playwright'];let config;function a52_0x4cef(){const _0x2e89b1=['cucumber-js','readFileSync','node-setup','scripts','/browserstack.yml','Fioyg','codeceptjs','1430495GkARWA','UPOes','Ykyoi','-browserstack','node','/../../browserstack.pw.yml.sample','Creating\x20configuration\x20file...','push','stringify','indexOf','Setup\x20completed','replace','npm\x20update\x20browserstack-node-sdk','CmJDt','hvuOG','utf8','UncZP','username','YOUR_ACCESS_KEY','postinstall','kFlWo','AxZDR','winstonLogger','../helpers/logger','argv','../helpers/helper','length','ynCyc','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','YOUR_USERNAME','154uBwHnM','browserstack-node-sdk','Adding\x20new\x20script(s)\x20in\x20package.json...','/package.json','568TbdsvM','OVUKU','entries','isUndefined','parse','Vtsim','94950UsmMIE','error','PxctF','jest','../helpers/utilities','load','includes','fireFunnelTestEvent','426288LqFDWa','40543wEpjwP','cwd','source','info','yargs','wyiJy','playwright','writeFileSync','4614eRXIJL','16578xvaDJU','cTxPJ','split','OReKt','nightwatch','WoTle','mXVzr','TXWbN','763878vKHzVW','iiEhh','SDKSetup'];a52_0x4cef=function(){return _0x2e89b1;};return a52_0x4cef();}logger[a52_0x556a64(0x118)](a52_0x556a64(0xea)),createConfigurationFile(yargs[a52_0x556a64(0xfc)][a52_0x556a64(0xf5)],yargs[a52_0x556a64(0xfc)]['key'],yargs[a52_0x556a64(0xfc)][a52_0x556a64(0x11b)]);function a52_0x19a9(_0x1468b6,_0x5a323a){const _0x4cef6d=a52_0x4cef();return a52_0x19a9=function(_0x19a97b,_0x2e5f23){_0x19a97b=_0x19a97b-0xd2;let _0x50fab4=_0x4cef6d[_0x19a97b];return _0x50fab4;},a52_0x19a9(_0x1468b6,_0x5a323a);}try{sdkSetup();}catch(a52_0x3c6f09){logger['debug'](a52_0x556a64(0x100)+a52_0x3c6f09);}addScriptInPackageJson();function createConfigurationFile(_0x5044ea,_0x5b3a74,_0x375bce=![]){const _0x5ce7eb=a52_0x556a64,_0x110355={};_0x110355[_0x5ce7eb(0xd5)]=_0x5ce7eb(0xf3),_0x110355[_0x5ce7eb(0xdb)]=_0x5ce7eb(0x101),_0x110355['ugCMk']=_0x5ce7eb(0xf6);const _0x4e549f=_0x110355;try{let _0x3fb38c=fs[_0x5ce7eb(0xde)](_0x375bce?configFileTemplatePW:configFileTemplate,_0x4e549f[_0x5ce7eb(0xd5)]);_0x5044ea&&(_0x3fb38c=_0x3fb38c[_0x5ce7eb(0xef)](_0x4e549f[_0x5ce7eb(0xdb)],_0x5044ea)),_0x5b3a74&&(_0x3fb38c=_0x3fb38c[_0x5ce7eb(0xef)](_0x4e549f['ugCMk'],_0x5b3a74)),config=yaml[_0x5ce7eb(0x111)](_0x3fb38c),fs[_0x5ce7eb(0x11c)](configFile,_0x3fb38c,_0x29133f=>{_0x29133f&&logger['error'](_0x29133f);});}catch(_0x357a72){logger[_0x5ce7eb(0x10d)](_0x357a72);}}function addPostInstallScript(_0x56b12b,_0x55d0c9){const _0x255744=a52_0x556a64,_0x4eadfe={};_0x4eadfe['Vtsim']=_0x255744(0xf7),_0x4eadfe[_0x255744(0xf8)]=_0x255744(0xf0),_0x4eadfe['hvuOG']='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0xedd92b=_0x4eadfe;let _0x30dee7=_0x56b12b[_0xedd92b['Vtsim']];if(_0x30dee7&&_0x30dee7[_0x255744(0x112)](_0xedd92b[_0x255744(0xf8)]))return;!_0x30dee7?_0x30dee7=_0xedd92b[_0x255744(0xf8)]:_0x30dee7+=_0xedd92b[_0x255744(0xf2)],_0x55d0c9[_0x255744(0xeb)]([_0xedd92b[_0x255744(0x10b)],_0x30dee7]);}function addScriptInPackageJson(){const _0x2dbb61=a52_0x556a64,_0x4fa9e1={'OVUKU':_0x2dbb61(0xf3),'AxZDR':function(_0x45516e,_0x381201){return _0x45516e<_0x381201;},'mXVzr':function(_0x5def80,_0xd02ac9,_0xb75992){return _0x5def80(_0xd02ac9,_0xb75992);},'cTxPJ':function(_0x57931d,_0x156365){return _0x57931d<_0x156365;},'WoTle':function(_0xd36848,_0x5812c2,_0x34ac64){return _0xd36848(_0x5812c2,_0x34ac64);},'ynCyc':function(_0x13f2ac,_0x2bc1ac){return _0x13f2ac!==_0x2bc1ac;},'CmJDt':_0x2dbb61(0x104)},_0x3871d8=JSON[_0x2dbb61(0x10a)](fs[_0x2dbb61(0xde)](packageFile,_0x4fa9e1[_0x2dbb61(0x107)])),_0x21b33e=[];for(let _0x83e68d=0x0;_0x4fa9e1['AxZDR'](_0x83e68d,frameworks[_0x2dbb61(0xfe)]);_0x83e68d+=0x1){const _0x4c425e=_0x4fa9e1[_0x2dbb61(0xd8)](findScriptsWithFramework,_0x3871d8['scripts'],frameworks[_0x83e68d]);for(let _0x5a4852=0x0;_0x4fa9e1[_0x2dbb61(0xd3)](_0x5a4852,_0x4c425e[_0x2dbb61(0xfe)]);_0x5a4852+=0x1){_0x21b33e[_0x2dbb61(0xeb)](_0x4fa9e1[_0x2dbb61(0xd8)](getUpdatedCommand,_0x3871d8['scripts'],_0x4c425e[_0x5a4852]));}_0x4fa9e1[_0x2dbb61(0xd7)](addPostInstallScript,_0x3871d8[_0x2dbb61(0xe0)],_0x21b33e);}const _0x1d479b={..._0x3871d8[_0x2dbb61(0xe0)]},_0x5df0ee=_0x1d479b;for(let _0x3297ac=0x0;_0x4fa9e1[_0x2dbb61(0xf9)](_0x3297ac,_0x21b33e['length']);_0x3297ac+=0x1){_0x5df0ee[_0x21b33e[_0x3297ac][0x0]]=_0x21b33e[_0x3297ac][0x1];}_0x4fa9e1[_0x2dbb61(0xff)](JSON['stringify'](_0x3871d8[_0x2dbb61(0xe0)]),JSON[_0x2dbb61(0xec)](_0x5df0ee))&&(logger['info'](_0x4fa9e1[_0x2dbb61(0xf1)]),_0x3871d8[_0x2dbb61(0xe0)]=_0x5df0ee,fs[_0x2dbb61(0x11c)](packageFile,JSON['stringify'](_0x3871d8,null,0x2),_0x42d21d=>{const _0x5257f6=_0x2dbb61;_0x42d21d&&logger[_0x5257f6(0x10d)](_0x42d21d);}));};function findScriptsWithFramework(_0x237360,_0x59e6a8){const _0x1a7c00=a52_0x556a64,_0x8e8e64={};_0x8e8e64[_0x1a7c00(0xf4)]=function(_0x1e9b7c,_0x3bac2e){return _0x1e9b7c<_0x3bac2e;},_0x8e8e64[_0x1a7c00(0xd9)]=_0x1a7c00(0x103);const _0x16238d=_0x8e8e64,_0x4e468d=[],_0x5008a7=Object[_0x1a7c00(0x108)](_0x237360);for(let _0x5113ae=0x0;_0x16238d[_0x1a7c00(0xf4)](_0x5113ae,_0x5008a7['length']);_0x5113ae+=0x1){_0x5008a7[_0x5113ae][0x1][_0x1a7c00(0x112)](_0x59e6a8)&&!_0x5008a7[_0x5113ae][0x1][_0x1a7c00(0x112)](_0x16238d['TXWbN'])&&_0x4e468d[_0x1a7c00(0xeb)](_0x5008a7[_0x5113ae][0x0]);}return _0x4e468d;}function getUpdatedCommand(_0x180dcf,_0x495744){const _0x12cddc=a52_0x556a64,_0x5ef243={};_0x5ef243[_0x12cddc(0x10e)]=function(_0x13f4a4,_0x29085e){return _0x13f4a4!==_0x29085e;},_0x5ef243[_0x12cddc(0xe6)]=_0x12cddc(0x103),_0x5ef243[_0x12cddc(0xe2)]=function(_0x47f6da,_0x3d2e0f){return _0x47f6da===_0x3d2e0f;};const _0x14c75a=_0x5ef243,_0x29eaa3=_0x495744+_0x12cddc(0xe7),_0x31c654=_0x180dcf[_0x495744],_0x4be1d3=_0x31c654[_0x12cddc(0xd4)]('\x20');for(const _0x1b39b8 of frameworks){if(_0x14c75a[_0x12cddc(0x10e)](_0x4be1d3['indexOf'](_0x1b39b8),-0x1)){_0x4be1d3['splice'](_0x4be1d3[_0x12cddc(0xed)](_0x1b39b8),0x0,_0x14c75a['Ykyoi']);break;}}let _0x2038cb=_0x4be1d3['join']('\x20');return _0x14c75a[_0x12cddc(0xe2)](_0x2038cb,_0x31c654)&&(_0x2038cb='browserstack-node-sdk\x20'+_0x31c654),[_0x29eaa3,_0x2038cb];}function sdkSetup(){const _0x42b1c3=a52_0x556a64,_0x3ddcd9={};_0x3ddcd9['UPOes']=_0x42b1c3(0xdf),_0x3ddcd9[_0x42b1c3(0x11a)]=_0x42b1c3(0xdc);const _0x2e6627=_0x3ddcd9;if(helper[_0x42b1c3(0x109)](config))return;config[_0x42b1c3(0x117)]=_0x2e6627[_0x42b1c3(0xe5)];try{utilities[_0x42b1c3(0x113)](_0x2e6627['wyiJy'],{},config,'');}catch(_0x465fcd){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x465fcd);}}logger[a52_0x556a64(0x118)](a52_0x556a64(0xee));
3
+ const a52_0x2cddea=a52_0x22ba;(function(_0x3817f6,_0x55125b){const _0x3b4c57=a52_0x22ba,_0x14ab57=_0x3817f6();while(!![]){try{const _0x440720=parseInt(_0x3b4c57(0xaa))/0x1*(-parseInt(_0x3b4c57(0xd6))/0x2)+-parseInt(_0x3b4c57(0xb3))/0x3*(parseInt(_0x3b4c57(0xb7))/0x4)+parseInt(_0x3b4c57(0xba))/0x5+parseInt(_0x3b4c57(0xb1))/0x6+-parseInt(_0x3b4c57(0xce))/0x7+parseInt(_0x3b4c57(0xbd))/0x8+parseInt(_0x3b4c57(0xb2))/0x9;if(_0x440720===_0x55125b)break;else _0x14ab57['push'](_0x14ab57['shift']());}catch(_0x371796){_0x14ab57['push'](_0x14ab57['shift']());}}}(a52_0x468c,0xb0af4));const fs=require('fs'),helper=require(a52_0x2cddea(0xd9)),utilities=require(a52_0x2cddea(0xae)),yaml=require(a52_0x2cddea(0xab)),yargs=require(a52_0x2cddea(0xc3)),logger=require('../helpers/logger')[a52_0x2cddea(0xbe)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a52_0x2cddea(0xa4),configFile=process['cwd']()+a52_0x2cddea(0xc7),packageFile=process[a52_0x2cddea(0xb6)]()+a52_0x2cddea(0xd7),frameworks=[a52_0x2cddea(0x9d),a52_0x2cddea(0xcd),a52_0x2cddea(0x9b),a52_0x2cddea(0xa8),'nightwatch',a52_0x2cddea(0xbf),a52_0x2cddea(0xa1)];let config;logger[a52_0x2cddea(0x9a)](a52_0x2cddea(0xb5)),createConfigurationFile(yargs[a52_0x2cddea(0x97)][a52_0x2cddea(0x93)],yargs['argv'][a52_0x2cddea(0xc6)],yargs[a52_0x2cddea(0x97)]['playwright']);try{sdkSetup();}catch(a52_0xae9dce){logger[a52_0x2cddea(0xcb)](a52_0x2cddea(0x9e)+a52_0xae9dce);}addScriptInPackageJson();function createConfigurationFile(_0x32518f,_0x11c907,_0x2b7abd=![]){const _0x1bc6df=a52_0x2cddea,_0x44f818={};_0x44f818[_0x1bc6df(0xd2)]=_0x1bc6df(0xa0),_0x44f818[_0x1bc6df(0xc8)]=_0x1bc6df(0xa3),_0x44f818[_0x1bc6df(0xad)]=_0x1bc6df(0xb0);const _0x2ac094=_0x44f818;try{let _0x2234d2=fs['readFileSync'](_0x2b7abd?configFileTemplatePW:configFileTemplate,_0x2ac094['SLcfX']);_0x32518f&&(_0x2234d2=_0x2234d2[_0x1bc6df(0xd3)](_0x2ac094[_0x1bc6df(0xc8)],_0x32518f)),_0x11c907&&(_0x2234d2=_0x2234d2[_0x1bc6df(0xd3)](_0x2ac094[_0x1bc6df(0xad)],_0x11c907)),config=yaml[_0x1bc6df(0xb4)](_0x2234d2),fs[_0x1bc6df(0x99)](configFile,_0x2234d2,_0x1a48cd=>{const _0x84a19a=_0x1bc6df;_0x1a48cd&&logger[_0x84a19a(0xca)](_0x1a48cd);});}catch(_0x1a891b){logger[_0x1bc6df(0xca)](_0x1a891b);}}function addPostInstallScript(_0x5ca3aa,_0x42c23f){const _0x3b47b8=a52_0x2cddea,_0x339d06={};_0x339d06[_0x3b47b8(0xb9)]=_0x3b47b8(0xc5),_0x339d06[_0x3b47b8(0xc9)]='npm\x20update\x20browserstack-node-sdk',_0x339d06[_0x3b47b8(0x98)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x14e9a8=_0x339d06;let _0x79c25c=_0x5ca3aa[_0x14e9a8[_0x3b47b8(0xb9)]];if(_0x79c25c&&_0x79c25c[_0x3b47b8(0xc0)](_0x14e9a8['WAstu']))return;!_0x79c25c?_0x79c25c=_0x14e9a8[_0x3b47b8(0xc9)]:_0x79c25c+=_0x14e9a8[_0x3b47b8(0x98)],_0x42c23f['push']([_0x14e9a8['flFYY'],_0x79c25c]);}function addScriptInPackageJson(){const _0x1a27ef=a52_0x2cddea,_0xd1b384={'kTujx':_0x1a27ef(0xa0),'miBno':function(_0x3bc073,_0x52303c){return _0x3bc073<_0x52303c;},'UCwtA':function(_0x352e1e,_0x54c73d,_0x474ec8){return _0x352e1e(_0x54c73d,_0x474ec8);},'WySfM':function(_0x4a8172,_0xafb24e){return _0x4a8172<_0xafb24e;},'IQWQr':function(_0x5f1617,_0x4d9642,_0x326b2a){return _0x5f1617(_0x4d9642,_0x326b2a);},'nmRHy':function(_0x62e8c3,_0x20423b){return _0x62e8c3!==_0x20423b;},'chmpg':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x1cee36=JSON[_0x1a27ef(0xbc)](fs[_0x1a27ef(0x94)](packageFile,_0xd1b384[_0x1a27ef(0xc4)])),_0x4b737c=[];for(let _0x24bd4d=0x0;_0xd1b384[_0x1a27ef(0xa9)](_0x24bd4d,frameworks[_0x1a27ef(0xd5)]);_0x24bd4d+=0x1){const _0x43c9a5=_0xd1b384[_0x1a27ef(0xd0)](findScriptsWithFramework,_0x1cee36['scripts'],frameworks[_0x24bd4d]);for(let _0x4c79ee=0x0;_0xd1b384[_0x1a27ef(0xcf)](_0x4c79ee,_0x43c9a5[_0x1a27ef(0xd5)]);_0x4c79ee+=0x1){_0x4b737c[_0x1a27ef(0x9f)](_0xd1b384[_0x1a27ef(0xd0)](getUpdatedCommand,_0x1cee36[_0x1a27ef(0x92)],_0x43c9a5[_0x4c79ee]));}_0xd1b384[_0x1a27ef(0xa6)](addPostInstallScript,_0x1cee36[_0x1a27ef(0x92)],_0x4b737c);}const _0x1478a7={..._0x1cee36[_0x1a27ef(0x92)]},_0x6d0667=_0x1478a7;for(let _0x4d0075=0x0;_0xd1b384[_0x1a27ef(0xcf)](_0x4d0075,_0x4b737c[_0x1a27ef(0xd5)]);_0x4d0075+=0x1){_0x6d0667[_0x4b737c[_0x4d0075][0x0]]=_0x4b737c[_0x4d0075][0x1];}_0xd1b384[_0x1a27ef(0xd4)](JSON[_0x1a27ef(0x95)](_0x1cee36[_0x1a27ef(0x92)]),JSON[_0x1a27ef(0x95)](_0x6d0667))&&(logger[_0x1a27ef(0x9a)](_0xd1b384[_0x1a27ef(0xc1)]),_0x1cee36['scripts']=_0x6d0667,fs['writeFileSync'](packageFile,JSON[_0x1a27ef(0x95)](_0x1cee36,null,0x2),_0x33e37a=>{const _0x2ab4b6=_0x1a27ef;_0x33e37a&&logger[_0x2ab4b6(0xca)](_0x33e37a);}));};function findScriptsWithFramework(_0x46bf8d,_0x3f1da9){const _0x39d4fe=a52_0x2cddea,_0x71a1cb={};_0x71a1cb[_0x39d4fe(0xd1)]=function(_0x43e5c3,_0x5ea54d){return _0x43e5c3<_0x5ea54d;},_0x71a1cb[_0x39d4fe(0xa2)]='browserstack-node-sdk';const _0x2f0e7d=_0x71a1cb,_0x16e6b6=[],_0x3c8a27=Object['entries'](_0x46bf8d);for(let _0x4677aa=0x0;_0x2f0e7d[_0x39d4fe(0xd1)](_0x4677aa,_0x3c8a27['length']);_0x4677aa+=0x1){_0x3c8a27[_0x4677aa][0x1]['includes'](_0x3f1da9)&&!_0x3c8a27[_0x4677aa][0x1][_0x39d4fe(0xc0)](_0x2f0e7d[_0x39d4fe(0xa2)])&&_0x16e6b6[_0x39d4fe(0x9f)](_0x3c8a27[_0x4677aa][0x0]);}return _0x16e6b6;}function getUpdatedCommand(_0x73fcf2,_0x376785){const _0xd7e0b6=a52_0x2cddea,_0x193d9b={};_0x193d9b[_0xd7e0b6(0xa5)]=function(_0xa59507,_0x3cc3a1){return _0xa59507!==_0x3cc3a1;},_0x193d9b[_0xd7e0b6(0x96)]='browserstack-node-sdk',_0x193d9b[_0xd7e0b6(0xcc)]=function(_0x507cbd,_0x44759e){return _0x507cbd===_0x44759e;};const _0x404bec=_0x193d9b,_0x2ad26b=_0x376785+'-browserstack',_0x4941de=_0x73fcf2[_0x376785],_0x4a4fbd=_0x4941de[_0xd7e0b6(0xb8)]('\x20');for(const _0x37fccb of frameworks){if(_0x404bec[_0xd7e0b6(0xa5)](_0x4a4fbd[_0xd7e0b6(0xc2)](_0x37fccb),-0x1)){_0x4a4fbd['splice'](_0x4a4fbd[_0xd7e0b6(0xc2)](_0x37fccb),0x0,_0x404bec[_0xd7e0b6(0x96)]);break;}}let _0xb7b52e=_0x4a4fbd['join']('\x20');return _0x404bec[_0xd7e0b6(0xcc)](_0xb7b52e,_0x4941de)&&(_0xb7b52e=_0xd7e0b6(0xac)+_0x4941de),[_0x2ad26b,_0xb7b52e];}function sdkSetup(){const _0x3b27f6=a52_0x2cddea,_0x269ac0={};_0x269ac0[_0x3b27f6(0xbb)]='node-setup',_0x269ac0[_0x3b27f6(0xa7)]='SDKSetup';const _0x5bb138=_0x269ac0;if(helper[_0x3b27f6(0x9c)](config))return;config[_0x3b27f6(0xaf)]=_0x5bb138[_0x3b27f6(0xbb)];try{utilities['fireFunnelTestEvent'](_0x5bb138[_0x3b27f6(0xa7)],{},config,'');}catch(_0x3dcaa7){logger['debug'](_0x3b27f6(0x9e)+_0x3dcaa7);}}function a52_0x22ba(_0x1a2d47,_0x4f246a){const _0x468cb8=a52_0x468c();return a52_0x22ba=function(_0x22bad1,_0x370707){_0x22bad1=_0x22bad1-0x92;let _0x5408f6=_0x468cb8[_0x22bad1];return _0x5408f6;},a52_0x22ba(_0x1a2d47,_0x4f246a);}function a52_0x468c(){const _0x3bb4e7=['flFYY','149795zEOXUj','rIwSP','parse','10930768VvZbjU','winstonLogger','codeceptjs','includes','chmpg','indexOf','yargs','kTujx','postinstall','key','/browserstack.yml','EgpFY','WAstu','error','debug','dauSA','jest','3329340hjLIyx','WySfM','UCwtA','WRYpB','SLcfX','replace','nmRHy','length','377650XPkrwO','/package.json','Setup\x20completed','../helpers/helper','scripts','username','readFileSync','stringify','MKhDx','argv','juDIk','writeFileSync','info','cucumber-js','isUndefined','mocha','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','push','utf8','playwright','kPWRv','YOUR_USERNAME','/../../browserstack.pw.yml.sample','zDMru','IQWQr','DsYrM','node','miBno','2cHfOpg','js-yaml','browserstack-node-sdk\x20','eePOh','../helpers/utilities','source','YOUR_ACCESS_KEY','2689770PQWySK','3647610jhsMrw','6LGVCEH','load','Creating\x20configuration\x20file...','cwd','1345840LiNqGd','split'];a52_0x468c=function(){return _0x3bb4e7;};return a52_0x468c();}logger[a52_0x2cddea(0x9a)](a52_0x2cddea(0xd8));
@@ -1 +1 @@
1
- function a53_0x126d(){const _0x4bfdc8=['file','exitCode','platformCaps','pkyZp','getWorkers','jiUmM','YMsFY','platform-run-success','all','hUCgr','PEsfP','error','xydEM','Worker','configuration','aYssX','cucumberWorker','info','CRbyE','debug','getStderr','push','ydvUm','Usejc','platform-run-start','20Tengnr','platform','postMessage','test-file-success','parallelCucumberRun','stderr','end','stdout','STiyQ','send','XrJNB','parallelTestRun','ePaBG','map','../../helpers/logger','_child','winstonLogger','142pVkGUE','nLWvI','emittery','getStdout','Running\x20','128iVbOsS','exit','Exception\x20in\x20sending\x20worker\x20message\x20','failureCount','TGeyJ','Ashjv','waitForExit','results','emit','vanillaWorker','test-file-start','jKFen','_workerPool','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','veFJD','platforms','qzMMD','ovBaI','../../helpers/performance/performance-tester','then','util','PzOwO','../../helpers/performance/constants','format','pAlVQ','eFRiV','16094007kDsSfa','json','GemnB','log','QKrSh','PcdXN','PKeig','1855900bXzuDm','UvINl','671461KBKlHg','pipe','platformIndex','qEZir','lYgws','glgIp','./testWorker.js','843PtXUtY','parallelVanillaRun','Workers\x20failed\x20to\x20exit\x20gracefully','9107034gKnMUZ','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','stop','p-limit','Xfros','yHXET','UNSTABLE_onCustomMessage','test-file-failure','7495920gQfDlW','length','worker','DPffi','eJTdS','1690308kohGqt','resolve','../../helpers/test-observability/utils'];a53_0x126d=function(){return _0x4bfdc8;};return a53_0x126d();}const a53_0x587314=a53_0x1789;(function(_0x3909c6,_0x3172f5){const _0x8b20b8=a53_0x1789,_0x398310=_0x3909c6();while(!![]){try{const _0x293899=-parseInt(_0x8b20b8(0x1e3))/0x1+-parseInt(_0x8b20b8(0x210))/0x2*(parseInt(_0x8b20b8(0x1d3))/0x3)+parseInt(_0x8b20b8(0x1ca))/0x4+-parseInt(_0x8b20b8(0x1de))/0x5+-parseInt(_0x8b20b8(0x1d6))/0x6+-parseInt(_0x8b20b8(0x1cc))/0x7*(-parseInt(_0x8b20b8(0x215))/0x8)+-parseInt(_0x8b20b8(0x1c3))/0x9*(-parseInt(_0x8b20b8(0x1ff))/0xa);if(_0x293899===_0x3172f5)break;else _0x398310['push'](_0x398310['shift']());}catch(_0x2c4899){_0x398310['push'](_0x398310['shift']());}}}(a53_0x126d,0xcf023));const Worker=require('jest-worker')[a53_0x587314(0x1f3)],Emittery=require(a53_0x587314(0x212)),pLimit=require(a53_0x587314(0x1d9)),{parentPort}=require('worker_threads'),util=require(a53_0x587314(0x1bd)),logger=require(a53_0x587314(0x20d))[a53_0x587314(0x20f)],PerformanceTester=require(a53_0x587314(0x1bb)),PerformanceEvents=require(a53_0x587314(0x1bf))['EVENTS'],{debug}=require(a53_0x587314(0x1e5)),TestHubHandler=require('../../helpers/testhub/testhubHandler');function a53_0x1789(_0x877df6,_0x215247){const _0x126dfd=a53_0x126d();return a53_0x1789=function(_0x17890e,_0x599869){_0x17890e=_0x17890e-0x1b0;let _0x43ac18=_0x126dfd[_0x17890e];return _0x43ac18;},a53_0x1789(_0x877df6,_0x215247);}exports[a53_0x587314(0x20a)]=(_0x51610b,_0x4e4b3d,_0x5ef784)=>new Promise(async _0x3720bb=>{const _0x464b58=a53_0x587314,_0x575750={'PzOwO':_0x464b58(0x218),'pkyZp':function(_0x5b7597,_0x4c35be){return _0x5b7597+_0x4c35be;},'xydEM':_0x464b58(0x1b0),'veFJD':_0x464b58(0x1d5),'AMiZr':function(_0xab2c37,_0x285633){return _0xab2c37(_0x285633);},'ovBaI':function(_0xed9071,_0x1f1ebe){return _0xed9071(_0x1f1ebe);},'sZgNg':_0x464b58(0x1b3),'QKrSh':_0x464b58(0x1d2),'DPffi':_0x464b58(0x1e0),'eJTdS':'json','Xfros':'pipe','qEZir':function(_0x302c88,_0x59e2f6){return _0x302c88*_0x59e2f6;},'GemnB':_0x464b58(0x202),'qzMMD':_0x464b58(0x1dd),'ePaBG':function(_0x5d1828,_0x5c06a7){return _0x5d1828(_0x5c06a7);},'aYssX':function(_0x1ea67a,_0x474745){return _0x1ea67a*_0x474745;}},_0x3f4f3a=_0x5ef784['config'],_0x2a8db6={},_0x4bccdd=new Worker(require[_0x464b58(0x1e4)](_0x575750[_0x464b58(0x1c7)]),{'exposedMethods':[_0x575750[_0x464b58(0x1e1)]],'forkOptions':{'serialization':_0x575750[_0x464b58(0x1e2)],'stdio':_0x575750[_0x464b58(0x1da)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x575750[_0x464b58(0x1cf)](_0x4e4b3d,0x1),'enableWorkerThreads':!![]}),_0x6b3dfc=new Emittery();_0x6b3dfc['on'](_0x575750[_0x464b58(0x1c5)],_0x5571d4=>{const _0x28f277=_0x464b58;_0x2a8db6[_0x5571d4[0x0]]?(_0x2a8db6[_0x5571d4[0x0]][_0x575750['PzOwO']]=_0x575750[_0x28f277(0x1e9)](_0x2a8db6[_0x5571d4[0x0]][_0x575750[_0x28f277(0x1be)]],_0x5571d4[0x1][_0x575750['PzOwO']]),_0x2a8db6[_0x5571d4[0x0]][_0x575750[_0x28f277(0x1f2)]]=[..._0x2a8db6[_0x5571d4[0x0]][_0x575750['xydEM']],..._0x5571d4[0x1][_0x575750[_0x28f277(0x1f2)]]]):_0x2a8db6[_0x5571d4[0x0]]={'failureCount':_0x5571d4[0x1][_0x575750[_0x28f277(0x1be)]],'results':[..._0x5571d4[0x1][_0x575750[_0x28f277(0x1f2)]]]};}),_0x6b3dfc['on'](_0x575750[_0x464b58(0x1b9)],_0x24bc51=>console[_0x464b58(0x1c6)](_0x24bc51[0x1]));_0x4bccdd[_0x464b58(0x213)]()&&_0x4bccdd['getStdout']()[_0x464b58(0x1cd)](process['stdout']);_0x4bccdd[_0x464b58(0x1fa)]()&&_0x4bccdd[_0x464b58(0x1fa)]()[_0x464b58(0x1cd)](process[_0x464b58(0x204)]);const _0x3749e3=async()=>{const _0x1fceff=_0x464b58,{forceExited:_0x3573a8}=await _0x4bccdd[_0x1fceff(0x205)]();_0x3573a8&&console[_0x1fceff(0x1f1)](_0x575750[_0x1fceff(0x1b7)]);try{await TestHubHandler[_0x1fceff(0x1d8)]();}catch(_0x3b10ba){_0x575750['AMiZr'](debug,_0x1fceff(0x1d7)+_0x3b10ba);}_0x575750[_0x1fceff(0x1ba)](_0x3720bb,_0x2a8db6);},_0x4cd69c=_0x575750[_0x464b58(0x20b)](pLimit,_0x575750[_0x464b58(0x1f5)](_0x4e4b3d,0x1)),_0xafefe7=_0x56620a=>_0x4cd69c(async()=>{const _0x42ccf0=_0x464b58;await _0x6b3dfc[_0x42ccf0(0x1b1)](_0x575750['sZgNg'],_0x56620a);const _0x5c99f4=_0x4bccdd['worker'](_0x56620a,_0x3f4f3a);try{parentPort&&_0x5c99f4[_0x42ccf0(0x1dc)](_0x5385f5=>{const _0x15ee39=_0x42ccf0;try{parentPort[_0x15ee39(0x201)](_0x5385f5);}catch(_0x215452){logger[_0x15ee39(0x1f9)](_0x15ee39(0x217)+util[_0x15ee39(0x1c0)](_0x215452));}});}catch(_0x3da6fd){logger[_0x42ccf0(0x1f9)](_0x42ccf0(0x1b6)+util['format'](_0x3da6fd));}return _0x5c99f4;});PerformanceTester[_0x464b58(0x205)](PerformanceEvents['SDK_SETUP']),Promise[_0x464b58(0x1ee)](_0x51610b[_0x464b58(0x20c)](_0x262f00=>_0xafefe7(_0x262f00)[_0x464b58(0x1bc)](_0x170ec9=>_0x6b3dfc['emit'](_0x464b58(0x202),[_0x262f00[_0x464b58(0x1f4)][_0x464b58(0x200)],_0x170ec9]),_0x37bce7=>_0x6b3dfc[_0x464b58(0x1b1)]('test-file-failure',[_0x262f00,_0x37bce7]))))['then'](_0x3749e3,_0x3749e3);}),exports[a53_0x587314(0x203)]=(_0x4e93bf,_0x595b2d,_0x23d0ba,_0x254315,_0x73e0b3)=>{const _0x12be43=a53_0x587314,_0x58e852={'UvINl':_0x12be43(0x1d5),'ydvUm':function(_0x74a48,_0x291256){return _0x74a48(_0x291256);},'YMsFY':_0x12be43(0x1fe),'eFRiV':_0x12be43(0x1d2),'TGeyJ':_0x12be43(0x1f6),'nEzYH':_0x12be43(0x1c4),'yHXET':'pipe','nLWvI':_0x12be43(0x1ed),'qIaLE':'platform-run-failure','PcdXN':function(_0x5d7e49,_0x32352c){return _0x5d7e49(_0x32352c);}};return new Promise(_0x4f2e0e=>{const _0x2dddfb=_0x12be43,_0xfea92={'jKFen':_0x58e852[_0x2dddfb(0x1cb)],'Usejc':function(_0x4c7275,_0x50bf30){const _0x253394=_0x2dddfb;return _0x58e852[_0x253394(0x1fc)](_0x4c7275,_0x50bf30);},'VQUJI':_0x58e852[_0x2dddfb(0x1ec)]},_0xee9f40=[],_0x596386=new Worker(require[_0x2dddfb(0x1e4)](_0x58e852[_0x2dddfb(0x1c2)]),{'exposedMethods':[_0x58e852[_0x2dddfb(0x219)]],'forkOptions':{'serialization':_0x58e852['nEzYH'],'stdio':_0x58e852[_0x2dddfb(0x1db)]},'numWorkers':_0x4e93bf[_0x2dddfb(0x1df)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x2a1896=new Emittery();_0x2a1896['on'](_0x58e852[_0x2dddfb(0x211)],_0x7015a4=>{const _0xdce46f=_0x2dddfb;_0xee9f40[_0xdce46f(0x1fb)]([_0x7015a4[0x0],_0x7015a4[0x1]]);}),_0x2a1896['on'](_0x58e852['qIaLE'],_0x3d317a=>console[_0x2dddfb(0x1c6)](_0x3d317a[0x1]));_0x596386[_0x2dddfb(0x213)]()&&_0x596386[_0x2dddfb(0x213)]()[_0x2dddfb(0x1cd)](process[_0x2dddfb(0x206)]);_0x596386['getStderr']()&&_0x596386['getStderr']()[_0x2dddfb(0x1cd)](process[_0x2dddfb(0x204)]);const _0x3e8860=async()=>{const _0x5b0653=_0x2dddfb,{forceExited:_0x571cf0}=await _0x596386[_0x5b0653(0x205)]();_0x571cf0&&console[_0x5b0653(0x1f1)](_0xfea92[_0x5b0653(0x1b4)]),_0xfea92[_0x5b0653(0x1fd)](_0x4f2e0e,_0xee9f40);},_0x1cc6b7=_0x58e852[_0x2dddfb(0x1c8)](pLimit,_0x4e93bf[_0x2dddfb(0x1df)]||0x1),_0x54ff36=(_0x3908a6,_0x1786bb)=>_0x1cc6b7(async()=>{const _0x909700=_0x2dddfb;return await _0x2a1896[_0x909700(0x1b1)](_0xfea92['VQUJI'],_0x3908a6),_0x595b2d[_0x909700(0x1e8)]=_0x23d0ba[_0x909700(0x1b8)][_0x1786bb],_0x595b2d[_0x909700(0x1ce)]=_0x1786bb,_0x596386['cucumberWorker'](_0x3908a6,_0x595b2d,_0x23d0ba,_0x254315,_0x73e0b3);});Promise[_0x2dddfb(0x1ee)](_0x4e93bf['map']((_0x3b672b,_0x558f8f)=>_0x54ff36(_0x3b672b,_0x558f8f)[_0x2dddfb(0x1bc)](_0x4d75fd=>_0x2a1896[_0x2dddfb(0x1b1)](_0x2dddfb(0x1ed),[_0x3b672b,_0x4d75fd]),_0x1acf3c=>_0x2a1896['emit']('platform-run-failure',[_0x3b672b,_0x1acf3c]))))['then'](_0x3e8860,_0x3e8860);});},exports[a53_0x587314(0x1d4)]=(_0x4f7edc,_0x258164)=>new Promise(_0x39cd1d=>{const _0x34b8e5=a53_0x587314,_0x5d49eb={'egykB':function(_0x16757f,_0x1e83aa){return _0x16757f===_0x1e83aa;},'jiUmM':function(_0x37c18b,_0x50ecc4){return _0x37c18b!==_0x50ecc4;},'FdlfD':_0x34b8e5(0x216),'aKcTe':'Workers\x20failed\x20to\x20exit\x20gracefully','lYgws':function(_0x240185,_0xd5a0ca){return _0x240185(_0xd5a0ca);},'PEsfP':_0x34b8e5(0x1d2),'tKzjG':_0x34b8e5(0x1b2),'CRbyE':_0x34b8e5(0x1c4),'Ashjv':_0x34b8e5(0x1cd),'dPdoD':_0x34b8e5(0x202),'PKeig':_0x34b8e5(0x1dd),'XrJNB':function(_0x5a4eda,_0x271432){return _0x5a4eda(_0x271432);}},_0x4bc4dd={},_0x37b047=new Worker(require[_0x34b8e5(0x1e4)](_0x5d49eb[_0x34b8e5(0x1f0)]),{'exposedMethods':[_0x5d49eb['tKzjG']],'forkOptions':{'serialization':_0x5d49eb[_0x34b8e5(0x1f8)],'stdio':_0x5d49eb[_0x34b8e5(0x21a)]},'numWorkers':_0x258164,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x544008=new Emittery();_0x544008['on'](_0x5d49eb['dPdoD'],_0x505c2b=>{const _0x55ab24=_0x34b8e5;_0x505c2b[0x0]&&logger[_0x55ab24(0x1f7)](_0x55ab24(0x214)+_0x505c2b[0x1]+'\x20for',_0x505c2b[0x0]);}),_0x544008['on'](_0x5d49eb[_0x34b8e5(0x1c9)],_0x10b3c4=>{const _0x4ba4c0=_0x34b8e5;process[_0x4ba4c0(0x1e7)]=0x1;});_0x37b047[_0x34b8e5(0x213)]()&&_0x37b047[_0x34b8e5(0x213)]()[_0x34b8e5(0x1cd)](process[_0x34b8e5(0x206)]);_0x37b047[_0x34b8e5(0x1fa)]()&&_0x37b047[_0x34b8e5(0x1fa)]()['pipe'](process[_0x34b8e5(0x204)]);const _0x70c34a=async()=>{const _0x5eafd9=_0x34b8e5,_0x4ba970={'STiyQ':function(_0xf9bae4,_0x10891a){return _0x5d49eb['egykB'](_0xf9bae4,_0x10891a);},'glgIp':function(_0x3c86ca,_0x478f0f){const _0x541b02=a53_0x1789;return _0x5d49eb[_0x541b02(0x1eb)](_0x3c86ca,_0x478f0f);},'FEuxE':_0x5d49eb['FdlfD']};let _0x190454=0x0;const _0x322f66=_0x37b047[_0x5eafd9(0x1b5)][_0x5eafd9(0x1ea)](),_0x14e1fd=()=>{},_0x3d2c4c=_0x322f66[_0x5eafd9(0x20c)](async _0x49056c=>{const _0xe5d506=_0x5eafd9,_0x4c09ff={'pAlVQ':function(_0x2bb8fb,_0x4c53cb){const _0x552acb=a53_0x1789;return _0x4ba970[_0x552acb(0x207)](_0x2bb8fb,_0x4c53cb);},'hUCgr':function(_0x164d81,_0x5a9ca9){const _0x30d8a4=a53_0x1789;return _0x4ba970[_0x30d8a4(0x1d1)](_0x164d81,_0x5a9ca9);}};_0x49056c[_0xe5d506(0x208)]([0x2,![]],_0x14e1fd,_0x14e1fd,_0x14e1fd),_0x49056c[_0xe5d506(0x20e)]['on'](_0x4ba970['FEuxE'],_0x4f1f70=>{const _0x2bf0f4=_0xe5d506;_0x4c09ff[_0x2bf0f4(0x1c1)](_0x190454,0x0)&&_0x4c09ff[_0x2bf0f4(0x1ef)](_0x4f1f70,0x0)&&(_0x190454=_0x4f1f70);}),await _0x49056c[_0xe5d506(0x21b)]();});await Promise[_0x5eafd9(0x1ee)](_0x3d2c4c),process[_0x5eafd9(0x1e7)]=_0x190454;const {forceExited:_0x947466}=await _0x37b047['end']();_0x947466&&console['error'](_0x5d49eb['aKcTe']),_0x5d49eb[_0x5eafd9(0x1d0)](_0x39cd1d,_0x4bc4dd);},_0x11cb16=_0x5d49eb[_0x34b8e5(0x209)](pLimit,_0x258164),_0x285b6d=_0x5356f8=>_0x11cb16(async()=>{const _0x37ae23=_0x34b8e5;return _0x37b047[_0x37ae23(0x1b2)](_0x5356f8);});Promise[_0x34b8e5(0x1ee)](_0x4f7edc[_0x34b8e5(0x20c)](_0x4621b4=>_0x285b6d(_0x4621b4)['then'](_0x57bfd7=>_0x544008[_0x34b8e5(0x1b1)](_0x34b8e5(0x202),[_0x4621b4[_0x34b8e5(0x1f4)][_0x34b8e5(0x200)],_0x4621b4[_0x34b8e5(0x1f4)][_0x34b8e5(0x1e6)]]),_0x2d5d05=>_0x544008[_0x34b8e5(0x1b1)](_0x34b8e5(0x1dd),[_0x4621b4,_0x2d5d05]))))[_0x34b8e5(0x1bc)](_0x70c34a,_0x70c34a);});
1
+ const a53_0x269611=a53_0x216e;(function(_0x268652,_0x3368e1){const _0x2bcecc=a53_0x216e,_0x2a4aa6=_0x268652();while(!![]){try{const _0x55b723=-parseInt(_0x2bcecc(0x198))/0x1+-parseInt(_0x2bcecc(0x1b8))/0x2+parseInt(_0x2bcecc(0x177))/0x3+-parseInt(_0x2bcecc(0x18f))/0x4*(parseInt(_0x2bcecc(0x1ca))/0x5)+-parseInt(_0x2bcecc(0x1d1))/0x6+parseInt(_0x2bcecc(0x1c2))/0x7+parseInt(_0x2bcecc(0x1a6))/0x8;if(_0x55b723===_0x3368e1)break;else _0x2a4aa6['push'](_0x2a4aa6['shift']());}catch(_0x5a665c){_0x2a4aa6['push'](_0x2a4aa6['shift']());}}}(a53_0x44ed,0xe4ebc));function a53_0x44ed(){const _0x4414ac=['emit','Exception\x20in\x20sending\x20worker\x20message\x20','platform-run-failure','TzwCL','LwEUp','_child','all','platform','WLIQq','getStdout','Workers\x20failed\x20to\x20exit\x20gracefully','166232HUClec','QkVCI','test-file-start','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','VtpTJ','worker_threads','send','failureCount','gJNaA','postMessage','10143259mouHZh','emittery','\x20for','p-limit','VVqHi','config','getWorkers','getStderr','21330GgnpgE','SDK_SETUP','Worker','stdout','stderr','platformIndex','then','1731612NmuweI','cYVpS','exitCode','waitForExit','gvVuR','../../helpers/performance/performance-tester','test-file-success','2168883fPAobO','gJpHv','resolve','ZqqhJ','../../helpers/test-observability/utils','debug','EVENTS','DghbD','jest-worker','format','SGZKw','pipe','dcoFH','info','worker','bDdGk','exit','JwmKK','vanillaWorker','configuration','length','platformCaps','parallelCucumberRun','platforms','1136bkSgCZ','json','stop','cucumberWorker','WYjTu','qRtrc','end','AkUPy','bHPTo','560878embWcc','rlQkZ','platform-run-success','../../helpers/performance/constants','Running\x20','error','util','DYebJ','map','LXWwW','FVGDN','Nzklx','test-file-failure','platform-run-start','7278416FvgbDc','kAPIa','push','log','QVlLo','zjoQv','_workerPool'];a53_0x44ed=function(){return _0x4414ac;};return a53_0x44ed();}function a53_0x216e(_0x198d21,_0x5921b0){const _0x44eded=a53_0x44ed();return a53_0x216e=function(_0x216e83,_0x15b435){_0x216e83=_0x216e83-0x175;let _0x247708=_0x44eded[_0x216e83];return _0x247708;},a53_0x216e(_0x198d21,_0x5921b0);}const Worker=require(a53_0x269611(0x17f))[a53_0x269611(0x1cc)],Emittery=require(a53_0x269611(0x1c3)),pLimit=require(a53_0x269611(0x1c5)),{parentPort}=require(a53_0x269611(0x1bd)),util=require(a53_0x269611(0x19e)),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a53_0x269611(0x175)),PerformanceEvents=require(a53_0x269611(0x19b))[a53_0x269611(0x17d)],{debug}=require(a53_0x269611(0x17b)),TestHubHandler=require('../../helpers/testhub/testhubHandler');exports['parallelTestRun']=(_0x5378c0,_0x57756c,_0x41f42f)=>new Promise(async _0x238139=>{const _0x5bf8f8=a53_0x269611,_0x360a0d={'SGZKw':_0x5bf8f8(0x1bf),'PyFAi':function(_0x292d77,_0x27743c){return _0x292d77+_0x27743c;},'cYVpS':'results','lrNHS':_0x5bf8f8(0x1b7),'xyPhm':function(_0x557b22,_0x319df3){return _0x557b22(_0x319df3);},'LXWwW':function(_0xfb0998,_0x193935){return _0xfb0998(_0x193935);},'rlQkZ':_0x5bf8f8(0x1ba),'TzwCL':'./testWorker.js','AkUPy':_0x5bf8f8(0x185),'VtpTJ':_0x5bf8f8(0x190),'gJNaA':_0x5bf8f8(0x182),'LwEUp':function(_0x938240,_0x449b95){return _0x938240*_0x449b95;},'bDdGk':_0x5bf8f8(0x176),'Nzklx':_0x5bf8f8(0x1a4),'FVGDN':function(_0x1ccebf,_0x21fd92){return _0x1ccebf(_0x21fd92);}},_0x16fe4b=_0x41f42f[_0x5bf8f8(0x1c7)],_0x331b36={},_0x509a7f=new Worker(require[_0x5bf8f8(0x179)](_0x360a0d[_0x5bf8f8(0x1b0)]),{'exposedMethods':[_0x360a0d[_0x5bf8f8(0x196)]],'forkOptions':{'serialization':_0x360a0d[_0x5bf8f8(0x1bc)],'stdio':_0x360a0d[_0x5bf8f8(0x1c0)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x360a0d[_0x5bf8f8(0x1b1)](_0x57756c,0x1),'enableWorkerThreads':!![]}),_0x58e5bb=new Emittery();_0x58e5bb['on'](_0x360a0d[_0x5bf8f8(0x186)],_0x36a060=>{const _0x1fdc72=_0x5bf8f8;_0x331b36[_0x36a060[0x0]]?(_0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x181)]]=_0x360a0d['PyFAi'](_0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x181)]],_0x36a060[0x1][_0x360a0d[_0x1fdc72(0x181)]]),_0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x1d2)]]=[..._0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x1d2)]],..._0x36a060[0x1][_0x360a0d[_0x1fdc72(0x1d2)]]]):_0x331b36[_0x36a060[0x0]]={'failureCount':_0x36a060[0x1][_0x360a0d[_0x1fdc72(0x181)]],'results':[..._0x36a060[0x1][_0x360a0d[_0x1fdc72(0x1d2)]]]};}),_0x58e5bb['on'](_0x360a0d[_0x5bf8f8(0x1a3)],_0x6fb4cf=>console['log'](_0x6fb4cf[0x1]));_0x509a7f[_0x5bf8f8(0x1b6)]()&&_0x509a7f[_0x5bf8f8(0x1b6)]()['pipe'](process[_0x5bf8f8(0x1cd)]);_0x509a7f['getStderr']()&&_0x509a7f[_0x5bf8f8(0x1c9)]()[_0x5bf8f8(0x182)](process[_0x5bf8f8(0x1ce)]);const _0x44375a=async()=>{const _0x1b7067=_0x5bf8f8,{forceExited:_0x2e1617}=await _0x509a7f['end']();_0x2e1617&&console['error'](_0x360a0d['lrNHS']);try{await TestHubHandler[_0x1b7067(0x191)]();}catch(_0x231d26){_0x360a0d['xyPhm'](debug,_0x1b7067(0x1bb)+_0x231d26);}_0x360a0d[_0x1b7067(0x1a1)](_0x238139,_0x331b36);},_0x461d9b=_0x360a0d[_0x5bf8f8(0x1a2)](pLimit,_0x360a0d[_0x5bf8f8(0x1b1)](_0x57756c,0x1)),_0x4b23e8=_0x3efbdc=>_0x461d9b(async()=>{const _0x52e7f1=_0x5bf8f8;await _0x58e5bb[_0x52e7f1(0x1ad)](_0x360a0d[_0x52e7f1(0x199)],_0x3efbdc);const _0x46c459=_0x509a7f[_0x52e7f1(0x185)](_0x3efbdc,_0x16fe4b);try{parentPort&&_0x46c459['UNSTABLE_onCustomMessage'](_0x1d3bcf=>{const _0x1a0287=_0x52e7f1;try{parentPort[_0x1a0287(0x1c1)](_0x1d3bcf);}catch(_0x356362){logger['debug'](_0x1a0287(0x1ae)+util[_0x1a0287(0x180)](_0x356362));}});}catch(_0x425625){logger[_0x52e7f1(0x17c)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x52e7f1(0x180)](_0x425625));}return _0x46c459;});PerformanceTester[_0x5bf8f8(0x195)](PerformanceEvents[_0x5bf8f8(0x1cb)]),Promise['all'](_0x5378c0[_0x5bf8f8(0x1a0)](_0x45bf75=>_0x4b23e8(_0x45bf75)['then'](_0x3c3f7e=>_0x58e5bb[_0x5bf8f8(0x1ad)](_0x5bf8f8(0x176),[_0x45bf75[_0x5bf8f8(0x18a)]['platform'],_0x3c3f7e]),_0x4014c3=>_0x58e5bb[_0x5bf8f8(0x1ad)](_0x5bf8f8(0x1a4),[_0x45bf75,_0x4014c3]))))[_0x5bf8f8(0x1d0)](_0x44375a,_0x44375a);}),exports[a53_0x269611(0x18d)]=(_0x3eadb4,_0x5eb5b8,_0x42e8df,_0x232f5e,_0x4f9468)=>{const _0x327730=a53_0x269611,_0x57edbc={'qRtrc':'Workers\x20failed\x20to\x20exit\x20gracefully','WLIQq':function(_0x9a3a4d,_0x3afcf0){return _0x9a3a4d(_0x3afcf0);},'bHPTo':_0x327730(0x1a5),'DYebJ':'./testWorker.js','DghbD':_0x327730(0x192),'gJpHv':'json','BFEef':'pipe','ebbgt':_0x327730(0x19a),'VVqHi':'platform-run-failure','QkVCI':function(_0x535681,_0x33b96b){return _0x535681(_0x33b96b);}};return new Promise(_0x47b257=>{const _0x5f3a86=_0x327730,_0x15a400={};_0x15a400[_0x5f3a86(0x17a)]=_0x57edbc[_0x5f3a86(0x197)];const _0x297267=_0x15a400,_0x313991=[],_0x341e35=new Worker(require[_0x5f3a86(0x179)](_0x57edbc[_0x5f3a86(0x19f)]),{'exposedMethods':[_0x57edbc[_0x5f3a86(0x17e)]],'forkOptions':{'serialization':_0x57edbc[_0x5f3a86(0x178)],'stdio':_0x57edbc['BFEef']},'numWorkers':_0x3eadb4[_0x5f3a86(0x18b)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x186f91=new Emittery();_0x186f91['on'](_0x57edbc['ebbgt'],_0x3aab51=>{const _0x3a0dd9=_0x5f3a86;_0x313991[_0x3a0dd9(0x1a8)]([_0x3aab51[0x0],_0x3aab51[0x1]]);}),_0x186f91['on'](_0x57edbc[_0x5f3a86(0x1c6)],_0x2942de=>console[_0x5f3a86(0x1a9)](_0x2942de[0x1]));_0x341e35['getStdout']()&&_0x341e35[_0x5f3a86(0x1b6)]()[_0x5f3a86(0x182)](process['stdout']);_0x341e35['getStderr']()&&_0x341e35[_0x5f3a86(0x1c9)]()['pipe'](process[_0x5f3a86(0x1ce)]);const _0x1295d8=async()=>{const _0x10ca9a=_0x5f3a86,{forceExited:_0xd388d6}=await _0x341e35[_0x10ca9a(0x195)]();_0xd388d6&&console[_0x10ca9a(0x19d)](_0x57edbc[_0x10ca9a(0x194)]),_0x57edbc[_0x10ca9a(0x1b5)](_0x47b257,_0x313991);},_0x4eb9af=_0x57edbc[_0x5f3a86(0x1b9)](pLimit,_0x3eadb4['length']||0x1),_0x5c7b88=(_0x1d2d5f,_0x279c8e)=>_0x4eb9af(async()=>{const _0x58681f=_0x5f3a86;return await _0x186f91['emit'](_0x297267[_0x58681f(0x17a)],_0x1d2d5f),_0x5eb5b8[_0x58681f(0x18c)]=_0x42e8df[_0x58681f(0x18e)][_0x279c8e],_0x5eb5b8[_0x58681f(0x1cf)]=_0x279c8e,_0x341e35['cucumberWorker'](_0x1d2d5f,_0x5eb5b8,_0x42e8df,_0x232f5e,_0x4f9468);});Promise[_0x5f3a86(0x1b3)](_0x3eadb4[_0x5f3a86(0x1a0)]((_0x228477,_0x24088b)=>_0x5c7b88(_0x228477,_0x24088b)[_0x5f3a86(0x1d0)](_0x34c59a=>_0x186f91[_0x5f3a86(0x1ad)]('platform-run-success',[_0x228477,_0x34c59a]),_0x293c7e=>_0x186f91[_0x5f3a86(0x1ad)](_0x5f3a86(0x1af),[_0x228477,_0x293c7e]))))['then'](_0x1295d8,_0x1295d8);});},exports['parallelVanillaRun']=(_0x3ab74b,_0x303ab4)=>new Promise(_0x1e4577=>{const _0x72a0e3=a53_0x269611,_0x396611={'zjoQv':function(_0x5920af,_0xee6d15){return _0x5920af===_0xee6d15;},'qzBsI':function(_0x5264ae,_0x511528){return _0x5264ae!==_0x511528;},'GOGMQ':_0x72a0e3(0x187),'QVlLo':_0x72a0e3(0x1b7),'gvVuR':function(_0xfcb510,_0x1d73ac){return _0xfcb510(_0x1d73ac);},'WYjTu':'./testWorker.js','hYsOp':_0x72a0e3(0x189),'KBFBf':_0x72a0e3(0x190),'kAPIa':'pipe','ErHOm':_0x72a0e3(0x176),'JwmKK':_0x72a0e3(0x1a4)},_0x736f21={},_0x2c0772=new Worker(require['resolve'](_0x396611[_0x72a0e3(0x193)]),{'exposedMethods':[_0x396611['hYsOp']],'forkOptions':{'serialization':_0x396611['KBFBf'],'stdio':_0x396611[_0x72a0e3(0x1a7)]},'numWorkers':_0x303ab4,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x56c3e0=new Emittery();_0x56c3e0['on'](_0x396611['ErHOm'],_0x122f35=>{const _0x1f5004=_0x72a0e3;_0x122f35[0x0]&&logger[_0x1f5004(0x184)](_0x1f5004(0x19c)+_0x122f35[0x1]+_0x1f5004(0x1c4),_0x122f35[0x0]);}),_0x56c3e0['on'](_0x396611[_0x72a0e3(0x188)],_0x543a81=>{const _0x371324=_0x72a0e3;process[_0x371324(0x1d3)]=0x1;});_0x2c0772[_0x72a0e3(0x1b6)]()&&_0x2c0772[_0x72a0e3(0x1b6)]()[_0x72a0e3(0x182)](process[_0x72a0e3(0x1cd)]);_0x2c0772[_0x72a0e3(0x1c9)]()&&_0x2c0772['getStderr']()[_0x72a0e3(0x182)](process['stderr']);const _0x78cf24=async()=>{const _0x2fe202=_0x72a0e3;let _0x5428e9=0x0;const _0xde5374=_0x2c0772[_0x2fe202(0x1ac)][_0x2fe202(0x1c8)](),_0x4d3095=()=>{},_0x387f7b=_0xde5374[_0x2fe202(0x1a0)](async _0x4fe0a3=>{const _0x27d67e=_0x2fe202,_0x13418b={'xaUlF':function(_0x1cf636,_0x28db28){const _0x195f8c=a53_0x216e;return _0x396611[_0x195f8c(0x1ab)](_0x1cf636,_0x28db28);},'dcoFH':function(_0x5d8280,_0x3e5d58){return _0x396611['qzBsI'](_0x5d8280,_0x3e5d58);}};_0x4fe0a3[_0x27d67e(0x1be)]([0x2,![]],_0x4d3095,_0x4d3095,_0x4d3095),_0x4fe0a3[_0x27d67e(0x1b2)]['on'](_0x396611['GOGMQ'],_0x1c8b7b=>{const _0x4ad70a=_0x27d67e;_0x13418b['xaUlF'](_0x5428e9,0x0)&&_0x13418b[_0x4ad70a(0x183)](_0x1c8b7b,0x0)&&(_0x5428e9=_0x1c8b7b);}),await _0x4fe0a3[_0x27d67e(0x1d4)]();});await Promise[_0x2fe202(0x1b3)](_0x387f7b),process[_0x2fe202(0x1d3)]=_0x5428e9;const {forceExited:_0x1c5ad7}=await _0x2c0772[_0x2fe202(0x195)]();_0x1c5ad7&&console[_0x2fe202(0x19d)](_0x396611[_0x2fe202(0x1aa)]),_0x396611[_0x2fe202(0x1d5)](_0x1e4577,_0x736f21);},_0x408f8a=_0x396611[_0x72a0e3(0x1d5)](pLimit,_0x303ab4),_0xdbe2bb=_0x509149=>_0x408f8a(async()=>{const _0x54482f=_0x72a0e3;return _0x2c0772[_0x54482f(0x189)](_0x509149);});Promise[_0x72a0e3(0x1b3)](_0x3ab74b[_0x72a0e3(0x1a0)](_0x43dee7=>_0xdbe2bb(_0x43dee7)[_0x72a0e3(0x1d0)](_0x125d63=>_0x56c3e0[_0x72a0e3(0x1ad)](_0x72a0e3(0x176),[_0x43dee7['configuration'][_0x72a0e3(0x1b4)],_0x43dee7['configuration']['file']]),_0x2f1203=>_0x56c3e0[_0x72a0e3(0x1ad)]('test-file-failure',[_0x43dee7,_0x2f1203]))))[_0x72a0e3(0x1d0)](_0x78cf24,_0x78cf24);});
@@ -1 +1 @@
1
- const a54_0x384e2a=a54_0x3964;(function(_0x7bb0a7,_0x5371e4){const _0x459801=a54_0x3964,_0x25e759=_0x7bb0a7();while(!![]){try{const _0x588b09=-parseInt(_0x459801(0x16c))/0x1+parseInt(_0x459801(0x16e))/0x2*(-parseInt(_0x459801(0x172))/0x3)+parseInt(_0x459801(0x175))/0x4+parseInt(_0x459801(0x17d))/0x5*(-parseInt(_0x459801(0x17f))/0x6)+-parseInt(_0x459801(0x18b))/0x7*(parseInt(_0x459801(0x179))/0x8)+-parseInt(_0x459801(0x16d))/0x9*(parseInt(_0x459801(0x186))/0xa)+-parseInt(_0x459801(0x174))/0xb*(-parseInt(_0x459801(0x18a))/0xc);if(_0x588b09===_0x5371e4)break;else _0x25e759['push'](_0x25e759['shift']());}catch(_0x2a72da){_0x25e759['push'](_0x25e759['shift']());}}}(a54_0x5ddf,0x4bf46));const PerformanceEvents=require(a54_0x384e2a(0x181))[a54_0x384e2a(0x178)],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require(a54_0x384e2a(0x176));function a54_0x5ddf(){const _0x1478e3=['SDK_POST_TEST','94260EnSwzn','7QsVVWh','YNgjk','../launcher/launcher','164742BkboIN','2331DikijR','73598kmoiaF','end','eCmHM','cucumber-js','6MeEZFh','WExpb','2167nbAxOA','285648knVzVQ','../../helpers/test-observability/utils','formatter','EVENTS','4662904OOaYvS','GsjED','runTest','runVanillaTest','273895Krgspw','runCucumberTest','30tBTLsP','GZyFv','../../helpers/performance/constants','LguCh','vanilla','stopMonitoring','mocha','8210tbSGqW','CYgmb','run'];a54_0x5ddf=function(){return _0x1478e3;};return a54_0x5ddf();}function a54_0x3964(_0x549158,_0x2395e6){const _0x5ddf95=a54_0x5ddf();return a54_0x3964=function(_0x39649c,_0x2380fc){_0x39649c=_0x39649c-0x16a;let _0x1614ce=_0x5ddf95[_0x39649c];return _0x1614ce;},a54_0x3964(_0x549158,_0x2395e6);}exports[a54_0x384e2a(0x17b)]=async(_0x2b679a,_0x3938b9)=>{const _0x5c8f6a=a54_0x384e2a,_0x485e76={'GZyFv':function(_0x4ad051,_0x45cdfa){return _0x4ad051(_0x45cdfa);},'GsjED':'../launcher/launcher','EsePK':_0x5c8f6a(0x185)};PerformanceTester['startMonitoring']();const _0x3e26f1=_0x485e76[_0x5c8f6a(0x180)](require,_0x485e76[_0x5c8f6a(0x17a)]),_0x34ec1a=new _0x3e26f1(_0x485e76['EsePK'],_0x2b679a,_0x3938b9),_0x2df0a2=await _0x34ec1a[_0x5c8f6a(0x188)]();return PerformanceTester[_0x5c8f6a(0x16f)](PerformanceEvents[_0x5c8f6a(0x189)]),await _0x485e76[_0x5c8f6a(0x180)](sleep,0x3e8),PerformanceTester[_0x5c8f6a(0x184)](),_0x2df0a2;},exports[a54_0x384e2a(0x17e)]=async(_0x3411e0,_0x211987,_0x7172c8,_0x413afd,_0x125e44)=>{const _0x3f992e=a54_0x384e2a,_0x32aec4={'WExpb':function(_0x3033f4,_0x57dcc6){return _0x3033f4(_0x57dcc6);},'LguCh':_0x3f992e(0x16b),'CYgmb':_0x3f992e(0x171)},_0x2c2006={'capability':_0x3411e0,..._0x211987},_0x494ea7={};_0x494ea7['configuration']=_0x2c2006,_0x494ea7[_0x3f992e(0x177)]=_0x125e44;const _0x8e56eb=_0x494ea7,_0x22dc43=_0x32aec4[_0x3f992e(0x173)](require,_0x32aec4[_0x3f992e(0x182)]),_0x4132f1=new _0x22dc43(_0x32aec4[_0x3f992e(0x187)],_0x8e56eb,_0x7172c8,_0x413afd);return await _0x4132f1[_0x3f992e(0x188)]();},exports[a54_0x384e2a(0x17c)]=async _0x30df68=>{const _0x45b963=a54_0x384e2a,_0x40f715={'eCmHM':function(_0x4a9028,_0x4db7ac){return _0x4a9028(_0x4db7ac);},'YNgjk':_0x45b963(0x16b),'AQonc':_0x45b963(0x183)},_0x1b2957=_0x40f715[_0x45b963(0x170)](require,_0x40f715[_0x45b963(0x16a)]),_0x37b333=new _0x1b2957(_0x40f715['AQonc'],_0x30df68);return await _0x37b333['run']();};
1
+ const a54_0x16a8cb=a54_0x53d3;function a54_0x44c5(){const _0x5c2109=['vanilla','jsXOy','TCsZk','../../helpers/performance/constants','runTest','runVanillaTest','8ugKEpz','../../helpers/test-observability/utils','mocha','EVENTS','145ovGBLb','run','1562323vwcYje','SDK_POST_TEST','315467aEvoQW','formatter','273838XCxPHn','../launcher/launcher','QYTxG','runCucumberTest','1934910jtdsqw','startMonitoring','caBbL','cucumber-js','../../helpers/performance/performance-tester','130632bhSxnN','vXojm','rUYAe','end','9048JxyFDo','SWATd','314292WDmTIo','LXdKX'];a54_0x44c5=function(){return _0x5c2109;};return a54_0x44c5();}(function(_0x580968,_0x2d1d14){const _0x55c0d5=a54_0x53d3,_0xf55f88=_0x580968();while(!![]){try{const _0x5d4e79=parseInt(_0x55c0d5(0x132))/0x1+parseInt(_0x55c0d5(0x134))/0x2+-parseInt(_0x55c0d5(0x122))/0x3+parseInt(_0x55c0d5(0x11c))/0x4+parseInt(_0x55c0d5(0x12e))/0x5*(-parseInt(_0x55c0d5(0x120))/0x6)+parseInt(_0x55c0d5(0x130))/0x7*(parseInt(_0x55c0d5(0x12a))/0x8)+-parseInt(_0x55c0d5(0x117))/0x9;if(_0x5d4e79===_0x2d1d14)break;else _0xf55f88['push'](_0xf55f88['shift']());}catch(_0x8b7011){_0xf55f88['push'](_0xf55f88['shift']());}}}(a54_0x44c5,0x542ab));const PerformanceEvents=require(a54_0x16a8cb(0x127))[a54_0x16a8cb(0x12d)],PerformanceTester=require(a54_0x16a8cb(0x11b)),{sleep}=require(a54_0x16a8cb(0x12b));function a54_0x53d3(_0x347b2d,_0x1828a2){const _0x44c5ec=a54_0x44c5();return a54_0x53d3=function(_0x53d310,_0x3d02ae){_0x53d310=_0x53d310-0x116;let _0x80ad39=_0x44c5ec[_0x53d310];return _0x80ad39;},a54_0x53d3(_0x347b2d,_0x1828a2);}exports[a54_0x16a8cb(0x128)]=async(_0x5107ea,_0x1e1ede)=>{const _0x113cd4=a54_0x16a8cb,_0xf739d8={'vXojm':function(_0x4627aa,_0x3ff721){return _0x4627aa(_0x3ff721);},'QYTxG':'../launcher/launcher','caBbL':_0x113cd4(0x12c)};PerformanceTester[_0x113cd4(0x118)]();const _0x3a90d0=_0xf739d8[_0x113cd4(0x11d)](require,_0xf739d8[_0x113cd4(0x136)]),_0x45480d=new _0x3a90d0(_0xf739d8[_0x113cd4(0x119)],_0x5107ea,_0x1e1ede),_0x200a32=await _0x45480d[_0x113cd4(0x12f)]();return PerformanceTester[_0x113cd4(0x11f)](PerformanceEvents[_0x113cd4(0x131)]),await _0xf739d8[_0x113cd4(0x11d)](sleep,0x3e8),PerformanceTester['stopMonitoring'](),_0x200a32;},exports[a54_0x16a8cb(0x116)]=async(_0x469172,_0x3a88e9,_0x42e4c5,_0xe8594a,_0x130d0f)=>{const _0x11a950=a54_0x16a8cb,_0x497401={'rUYAe':function(_0x5ac13d,_0x15f45e){return _0x5ac13d(_0x15f45e);},'TCsZk':_0x11a950(0x135),'HqpjR':_0x11a950(0x11a)},_0x423322={'capability':_0x469172,..._0x3a88e9},_0x25058a={};_0x25058a['configuration']=_0x423322,_0x25058a[_0x11a950(0x133)]=_0x130d0f;const _0x26a237=_0x25058a,_0x278287=_0x497401[_0x11a950(0x11e)](require,_0x497401[_0x11a950(0x126)]),_0x4cd470=new _0x278287(_0x497401['HqpjR'],_0x26a237,_0x42e4c5,_0xe8594a);return await _0x4cd470[_0x11a950(0x12f)]();},exports[a54_0x16a8cb(0x129)]=async _0x247570=>{const _0x53391f=a54_0x16a8cb,_0x2f5eb7={'LXdKX':function(_0x379f93,_0x4c25ce){return _0x379f93(_0x4c25ce);},'SWATd':_0x53391f(0x135),'jsXOy':_0x53391f(0x124)},_0x2e5e73=_0x2f5eb7[_0x53391f(0x123)](require,_0x2f5eb7[_0x53391f(0x121)]),_0x5d27e1=new _0x2e5e73(_0x2f5eb7[_0x53391f(0x125)],_0x247570);return await _0x5d27e1[_0x53391f(0x12f)]();};
@@ -1 +1 @@
1
- function a55_0x2f8d(_0x4e8593,_0x38918c){const _0x3438c4=a55_0x3438();return a55_0x2f8d=function(_0x2f8d36,_0x1dc4e8){_0x2f8d36=_0x2f8d36-0x7b;let _0x50605b=_0x3438c4[_0x2f8d36];return _0x50605b;},a55_0x2f8d(_0x4e8593,_0x38918c);}const a55_0x5ea501=a55_0x2f8d;(function(_0xc12dae,_0x57f282){const _0x568672=a55_0x2f8d,_0x32d935=_0xc12dae();while(!![]){try{const _0x8d2059=parseInt(_0x568672(0x84))/0x1*(-parseInt(_0x568672(0x80))/0x2)+parseInt(_0x568672(0x7f))/0x3+-parseInt(_0x568672(0x7c))/0x4*(-parseInt(_0x568672(0x82))/0x5)+-parseInt(_0x568672(0x87))/0x6*(-parseInt(_0x568672(0x88))/0x7)+-parseInt(_0x568672(0x83))/0x8*(parseInt(_0x568672(0x86))/0x9)+-parseInt(_0x568672(0x7e))/0xa*(parseInt(_0x568672(0x85))/0xb)+parseInt(_0x568672(0x7b))/0xc;if(_0x8d2059===_0x57f282)break;else _0x32d935['push'](_0x32d935['shift']());}catch(_0x347549){_0x32d935['push'](_0x32d935['shift']());}}}(a55_0x3438,0x69e8a));const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');function a55_0x3438(){const _0x360458=['20fCqrOU','RxAGJ','5aSIPLF','91896RWtEoR','12677EdlAHx','683309kQKpGf','387vHylUQ','390GHZQzv','21679DABfHa','1935564JZNnlM','722332NwvvHr','worker','20iCAKbU','1906698JJTKYH'];a55_0x3438=function(){return _0x360458;};return a55_0x3438();}exports[a55_0x5ea501(0x7d)]=async(_0x1ac921,_0x250387)=>{const _0x238c64={'EjnOZ':function(_0x2329f5,_0xc6a78,_0x2dfe91){return _0x2329f5(_0xc6a78,_0x2dfe91);}};return await _0x238c64['EjnOZ'](runTest,_0x1ac921,_0x250387);},exports['cucumberWorker']=async(_0x14bee5,_0x4c58a7,_0x422a94,_0x285a2b,_0x574256)=>{const _0x319f6f={'ranKq':function(_0x5127de,_0x5b2ea2,_0x4df15f,_0x579337,_0x1d3ae9,_0x306151){return _0x5127de(_0x5b2ea2,_0x4df15f,_0x579337,_0x1d3ae9,_0x306151);}};return await _0x319f6f['ranKq'](runCucumberTest,_0x14bee5,_0x4c58a7,_0x422a94,_0x285a2b,_0x574256);},exports['vanillaWorker']=async _0x352f9a=>{const _0x965a0f=a55_0x5ea501,_0xc04fba={'RxAGJ':function(_0x14817c,_0x4a20f0){return _0x14817c(_0x4a20f0);}};return await _0xc04fba[_0x965a0f(0x81)](runVanillaTest,_0x352f9a);};
1
+ const a55_0x1f11c3=a55_0x22b1;(function(_0x1ff062,_0x21caec){const _0x4eb413=a55_0x22b1,_0x195996=_0x1ff062();while(!![]){try{const _0x43a315=parseInt(_0x4eb413(0xf1))/0x1*(parseInt(_0x4eb413(0xf4))/0x2)+-parseInt(_0x4eb413(0xf3))/0x3+-parseInt(_0x4eb413(0xef))/0x4+-parseInt(_0x4eb413(0xf2))/0x5+parseInt(_0x4eb413(0xe8))/0x6*(-parseInt(_0x4eb413(0xea))/0x7)+-parseInt(_0x4eb413(0xe7))/0x8*(-parseInt(_0x4eb413(0xed))/0x9)+-parseInt(_0x4eb413(0xe9))/0xa*(-parseInt(_0x4eb413(0xee))/0xb);if(_0x43a315===_0x21caec)break;else _0x195996['push'](_0x195996['shift']());}catch(_0xa56db){_0x195996['push'](_0x195996['shift']());}}}(a55_0x1970,0x5533c));const {runTest,runCucumberTest,runVanillaTest}=require(a55_0x1f11c3(0xf0));function a55_0x22b1(_0x3b75df,_0x196d01){const _0x1970be=a55_0x1970();return a55_0x22b1=function(_0x22b1e1,_0x2c7080){_0x22b1e1=_0x22b1e1-0xe6;let _0x24b8e1=_0x1970be[_0x22b1e1];return _0x24b8e1;},a55_0x22b1(_0x3b75df,_0x196d01);}exports[a55_0x1f11c3(0xeb)]=async(_0x397838,_0xf283de)=>{const _0x4f3fb9=a55_0x1f11c3,_0x18742c={'mltoI':function(_0x5690e5,_0x1c3485,_0x26280f){return _0x5690e5(_0x1c3485,_0x26280f);}};return await _0x18742c[_0x4f3fb9(0xe6)](runTest,_0x397838,_0xf283de);},exports['cucumberWorker']=async(_0x233e14,_0x4e6d11,_0x2546f2,_0x213359,_0x3016ea)=>{const _0x3e6c42={'ghDZZ':function(_0x367e03,_0x547efe,_0x59a512,_0x158a05,_0xe69b8,_0x3e2a09){return _0x367e03(_0x547efe,_0x59a512,_0x158a05,_0xe69b8,_0x3e2a09);}};return await _0x3e6c42['ghDZZ'](runCucumberTest,_0x233e14,_0x4e6d11,_0x2546f2,_0x213359,_0x3016ea);},exports['vanillaWorker']=async _0x27101e=>{const _0x1e582f=a55_0x1f11c3,_0x466731={'aRGuc':function(_0x19e177,_0x5bd08b){return _0x19e177(_0x5bd08b);}};return await _0x466731[_0x1e582f(0xec)](runVanillaTest,_0x27101e);};function a55_0x1970(){const _0x31f9c3=['./runTest','67UtaiVn','541630JKMHms','824868sGGnpK','10446AkiLOg','mltoI','24KBkpyX','962142drGWeZ','171460iYgGnt','7sBxTyy','worker','aRGuc','1353267BHcXYy','286SNEVbc','1416796xqBzvi'];a55_0x1970=function(){return _0x31f9c3;};return a55_0x1970();}
@@ -1 +1 @@
1
- const a56_0x4ae0c7=a56_0xa9f7;function a56_0xa9f7(_0xd59720,_0x478bdf){const _0x19bc74=a56_0x19bc();return a56_0xa9f7=function(_0xa9f713,_0x3f5282){_0xa9f713=_0xa9f713-0x1c1;let _0x4f9a51=_0x19bc74[_0xa9f713];return _0x4f9a51;},a56_0xa9f7(_0xd59720,_0x478bdf);}(function(_0x2d2879,_0xc8066e){const _0x27e106=a56_0xa9f7,_0x4e6818=_0x2d2879();while(!![]){try{const _0x4b643f=parseInt(_0x27e106(0x1dc))/0x1*(-parseInt(_0x27e106(0x1ee))/0x2)+parseInt(_0x27e106(0x1d9))/0x3+parseInt(_0x27e106(0x1fe))/0x4*(-parseInt(_0x27e106(0x1c6))/0x5)+parseInt(_0x27e106(0x206))/0x6+-parseInt(_0x27e106(0x1f5))/0x7+parseInt(_0x27e106(0x1ef))/0x8+parseInt(_0x27e106(0x1d4))/0x9;if(_0x4b643f===_0xc8066e)break;else _0x4e6818['push'](_0x4e6818['shift']());}catch(_0x23ff88){_0x4e6818['push'](_0x4e6818['shift']());}}}(a56_0x19bc,0xca961));const constants=require(a56_0x4ae0c7(0x1e7)),{nestedKeyValue}=require(a56_0x4ae0c7(0x1ff)),getBrowserstackCLI=()=>{const _0xe0cd1f=a56_0x4ae0c7,_0x2d57b8={'wBLqa':function(_0xa5d4f1,_0xafd43d){return _0xa5d4f1(_0xafd43d);},'OpsbS':_0xe0cd1f(0x209)};return _0x2d57b8['wBLqa'](require,_0x2d57b8[_0xe0cd1f(0x1df)]);};function a56_0x19bc(){const _0x173f24=['FmXcX','guNFJ','AJAcW','apis','KatBw','./constants','IfrgQ','Xjpzw','QlIMH','MiuGy','endsWith','getPuppeteerHubUrl','2wUZHKZ','11563680uYPDWb','getConfig','toString','TnoHQ','cRljo','getInstance','8716764LJahTN','/puppeteer?caps=','PLAYWRIGHT_HUB_URL','bjEPC','OrqnM','exports','sTijZ','OBSERVABILITY_UPLOAD_URL','YQheg','4GpZIJE','./sharedUtils','dWtBy','esCAQ','wWFoa','UCYwD','api','getAutomateSessionStatusAPIUrl','5760900NiKtxh','NJEVB','jcuqM','../v2/browserstackCLI','lorYO','xRLaL','axSsd','IvjRh','jFIMh','cdp','zwHTG','hCckd','GKWKN','BROWSERSTACK_API_URL','getAutomateSessionsListAPIUrl','xtzUP','tHWsb','MsuAM','ihjkQ','appAutomate','tPdaP','gBnWt','dxEmj','getAppAutomateSessionStatusAPIUrl','FFCQV','getPlaywrightHubUrl','pCVuO','automate','TVZVg','wss:','replace','upload','APP_UPLOAD_URL','EJwoG','getEdsInstrumentationAPIUrl','4143455KgUKLx','jXiJe','ZUdsR','getAppAutomateSessionsListAPIUrl','/playwright?caps=','mbWQn','lRlJG','EwOwv','getAppAutomateSessionNameAPIUrl','FQGkx','getAutomateSessionNameAPIUrl','ESKdo','PoUBY','Uwqlo','4183236eTzrUY','xSQPZ','kcXHg','EDS_URL','getBStackAPIUrl','1118790PydGJn','GAgYu','getAutoCaptureLogsAPIUrl','339608UzJXSe','BIkga','trFiE','OpsbS','observability','OHvSw'];a56_0x19bc=function(){return _0x173f24;};return a56_0x19bc();}class APIUtilityMethods{static[a56_0x4ae0c7(0x1d8)](_0x31d233){const _0x2faa8c=a56_0x4ae0c7,_0x7429ea={'sTijZ':function(_0x5ab2c9){return _0x5ab2c9();},'AJAcW':function(_0x2842fd,_0x296113,_0x1d4dfe){return _0x2842fd(_0x296113,_0x1d4dfe);},'esCAQ':_0x2faa8c(0x1e5),'FFCQV':_0x2faa8c(0x221),'trFiE':'api','lRlJG':function(_0x20adf5,_0x4135a2){return _0x20adf5===_0x4135a2;},'hYCsk':function(_0x1d4e62,_0x32a962){return _0x1d4e62+_0x32a962;}},_0x5df5a1=_0x7429ea[_0x2faa8c(0x1fb)](getBrowserstackCLI),_0x4ac266=_0x7429ea[_0x2faa8c(0x1e4)](nestedKeyValue,_0x5df5a1[_0x2faa8c(0x1f4)]()[_0x2faa8c(0x1f0)](),[_0x7429ea[_0x2faa8c(0x201)],_0x7429ea[_0x2faa8c(0x21e)],_0x7429ea[_0x2faa8c(0x1de)]])||constants[_0x2faa8c(0x213)];if(!_0x31d233||_0x7429ea[_0x2faa8c(0x1cc)](_0x31d233,''))return _0x4ac266;const _0x3c1fa9=_0x4ac266[_0x2faa8c(0x1ec)]('/')?_0x4ac266:_0x7429ea['hYCsk'](_0x4ac266,'/');return new URL(_0x31d233,_0x3c1fa9)[_0x2faa8c(0x1f1)]();}static[a56_0x4ae0c7(0x1c5)](_0x1290f5){const _0x5a1faf=a56_0x4ae0c7,_0x5089bb={'TVZVg':function(_0x453077){return _0x453077();},'ZyZGD':function(_0xfd012f,_0x34c792,_0x415a80){return _0xfd012f(_0x34c792,_0x415a80);},'xtzUP':'apis','xRLaL':'edsInstrumentation','axSsd':_0x5a1faf(0x204),'BIkga':function(_0x155b5e,_0x9c1aaa){return _0x155b5e===_0x9c1aaa;},'tYfBX':function(_0x6907a8,_0x411496){return _0x6907a8+_0x411496;}},_0x412edf=_0x5089bb[_0x5a1faf(0x222)](getBrowserstackCLI),_0x39684d=_0x5089bb['ZyZGD'](nestedKeyValue,_0x412edf['getInstance']()[_0x5a1faf(0x1f0)](),[_0x5089bb[_0x5a1faf(0x215)],_0x5089bb[_0x5a1faf(0x20b)],_0x5089bb[_0x5a1faf(0x20c)]])||constants[_0x5a1faf(0x1d7)];if(!_0x1290f5||_0x5089bb[_0x5a1faf(0x1dd)](_0x1290f5,''))return _0x39684d;const _0x7e3c6f=_0x39684d[_0x5a1faf(0x1ec)]('/')?_0x39684d:_0x5089bb['tYfBX'](_0x39684d,'/');return new URL(_0x1290f5,_0x7e3c6f)[_0x5a1faf(0x1f1)]();}static[a56_0x4ae0c7(0x205)](_0x1311a9){const _0x5508a4=a56_0x4ae0c7,_0x68c01={'XuNcQ':function(_0x1d7068){return _0x1d7068();},'HsQej':function(_0x436fda,_0x7742db,_0x4c3702){return _0x436fda(_0x7742db,_0x4c3702);},'TuGNJ':_0x5508a4(0x1e5),'HuhMS':'automate','tPdaP':_0x5508a4(0x204),'GKWKN':function(_0x4569a8,_0x1478be){return _0x4569a8===_0x1478be;},'OHenN':function(_0x820164,_0x34e119){return _0x820164+_0x34e119;}},_0x1ea5e5=_0x68c01['XuNcQ'](getBrowserstackCLI),_0x1a660e=_0x68c01['HsQej'](nestedKeyValue,_0x1ea5e5[_0x5508a4(0x1f4)]()['getConfig'](),[_0x68c01['TuGNJ'],_0x68c01['HuhMS'],_0x68c01[_0x5508a4(0x21a)]])||constants[_0x5508a4(0x213)];if(!_0x1311a9||_0x68c01[_0x5508a4(0x212)](_0x1311a9,''))return _0x1a660e;const _0x481ab2=_0x1a660e[_0x5508a4(0x1ec)]('/')?_0x1a660e:_0x68c01['OHenN'](_0x1a660e,'/');return new URL(_0x1311a9,_0x481ab2)['toString']();}static[a56_0x4ae0c7(0x21d)](_0x41416f){const _0x47cc9c=a56_0x4ae0c7,_0x5df346={'HphMQ':function(_0x3c698c){return _0x3c698c();},'YQheg':function(_0x4e2172,_0x5da465,_0x3a89fc){return _0x4e2172(_0x5da465,_0x3a89fc);},'EJwoG':_0x47cc9c(0x1e5),'mbWQn':_0x47cc9c(0x219),'pCVuO':_0x47cc9c(0x204),'NJEVB':function(_0x13023b,_0x3e3836){return _0x13023b===_0x3e3836;},'tHWsb':function(_0x63ec1b,_0x5a57e8){return _0x63ec1b+_0x5a57e8;}},_0x573215=_0x5df346['HphMQ'](getBrowserstackCLI),_0x407d24=_0x5df346[_0x47cc9c(0x1fd)](nestedKeyValue,_0x573215['getInstance']()[_0x47cc9c(0x1f0)](),[_0x5df346[_0x47cc9c(0x1c4)],_0x5df346[_0x47cc9c(0x1cb)],_0x5df346[_0x47cc9c(0x220)]])||constants[_0x47cc9c(0x213)];if(!_0x41416f||_0x5df346[_0x47cc9c(0x207)](_0x41416f,''))return _0x407d24;const _0x3af21b=_0x407d24['endsWith']('/')?_0x407d24:_0x5df346[_0x47cc9c(0x216)](_0x407d24,'/');return new URL(_0x41416f,_0x3af21b)[_0x47cc9c(0x1f1)]();}static[a56_0x4ae0c7(0x1d0)](_0x4568c2){const _0x387a9e=a56_0x4ae0c7,_0x3dd480={'ksnSe':function(_0x45cb3e){return _0x45cb3e();},'dxEmj':function(_0x51c6cc,_0x520e3f,_0x1c7270){return _0x51c6cc(_0x520e3f,_0x1c7270);},'XwrBq':_0x387a9e(0x1e5),'GAgYu':_0x387a9e(0x221),'jcuqM':_0x387a9e(0x204),'zwHTG':function(_0x304373,_0x4f3096){return _0x304373===_0x4f3096;},'GtXZo':function(_0x47fbf3,_0x4a9f4b){return _0x47fbf3+_0x4a9f4b;}},_0x265291=_0x3dd480['ksnSe'](getBrowserstackCLI),_0x30825f=_0x3dd480[_0x387a9e(0x21c)](nestedKeyValue,_0x265291[_0x387a9e(0x1f4)]()[_0x387a9e(0x1f0)](),[_0x3dd480['XwrBq'],_0x3dd480[_0x387a9e(0x1da)],_0x3dd480[_0x387a9e(0x208)]])||constants['BROWSERSTACK_API_URL'];if(!_0x4568c2||_0x3dd480[_0x387a9e(0x210)](_0x4568c2,''))return _0x30825f;const _0x551f3a=_0x30825f[_0x387a9e(0x1ec)]('/')?_0x30825f:_0x3dd480['GtXZo'](_0x30825f,'/');return new URL(_0x4568c2,_0x551f3a)[_0x387a9e(0x1f1)]();}static[a56_0x4ae0c7(0x1ce)](_0xd71b7a){const _0x17d21b=a56_0x4ae0c7,_0x65a1b8={'dWtBy':function(_0x168c8b){return _0x168c8b();},'Uwqlo':function(_0x5694e3,_0x34626f,_0x3ad2f8){return _0x5694e3(_0x34626f,_0x3ad2f8);},'MsuAM':_0x17d21b(0x1e5),'bmztd':_0x17d21b(0x219),'cRljo':_0x17d21b(0x204),'tTSGY':function(_0x405598,_0xcf846){return _0x405598===_0xcf846;},'IvjRh':function(_0x516d90,_0x4fb849){return _0x516d90+_0x4fb849;}},_0x1f399f=_0x65a1b8[_0x17d21b(0x200)](getBrowserstackCLI),_0x5e01ea=_0x65a1b8[_0x17d21b(0x1d3)](nestedKeyValue,_0x1f399f[_0x17d21b(0x1f4)]()[_0x17d21b(0x1f0)](),[_0x65a1b8[_0x17d21b(0x217)],_0x65a1b8['bmztd'],_0x65a1b8[_0x17d21b(0x1f3)]])||constants[_0x17d21b(0x213)];if(!_0xd71b7a||_0x65a1b8['tTSGY'](_0xd71b7a,''))return _0x5e01ea;const _0x424a6f=_0x5e01ea['endsWith']('/')?_0x5e01ea:_0x65a1b8[_0x17d21b(0x20d)](_0x5e01ea,'/');return new URL(_0xd71b7a,_0x424a6f)['toString']();}static[a56_0x4ae0c7(0x214)](_0x4a88de){const _0x59a710=a56_0x4ae0c7,_0x5d44c2={'jXiJe':function(_0x27a3a9){return _0x27a3a9();},'IfrgQ':function(_0x36fd17,_0x3ea15c,_0x3e6441){return _0x36fd17(_0x3ea15c,_0x3e6441);},'EwOwv':'apis','kcXHg':_0x59a710(0x221),'OHvSw':_0x59a710(0x204),'SIPFB':function(_0xba4e8d,_0x11f24c){return _0xba4e8d===_0x11f24c;},'PoUBY':function(_0x476611,_0x37ddeb){return _0x476611+_0x37ddeb;}},_0x5e2727=_0x5d44c2[_0x59a710(0x1c7)](getBrowserstackCLI),_0x3201ce=_0x5d44c2[_0x59a710(0x1e8)](nestedKeyValue,_0x5e2727[_0x59a710(0x1f4)]()[_0x59a710(0x1f0)](),[_0x5d44c2[_0x59a710(0x1cd)],_0x5d44c2[_0x59a710(0x1d6)],_0x5d44c2[_0x59a710(0x1e1)]])||constants[_0x59a710(0x213)];if(!_0x4a88de||_0x5d44c2['SIPFB'](_0x4a88de,''))return _0x3201ce;const _0x488eab=_0x3201ce[_0x59a710(0x1ec)]('/')?_0x3201ce:_0x5d44c2[_0x59a710(0x1d2)](_0x3201ce,'/');return new URL(_0x4a88de,_0x488eab)[_0x59a710(0x1f1)]()[_0x59a710(0x1c1)](/^https?:\/\//,'');}static[a56_0x4ae0c7(0x1c9)](_0x2e8977){const _0x92549b=a56_0x4ae0c7,_0x3407bf={'UCYwD':function(_0x5a26ef){return _0x5a26ef();},'CqaOA':function(_0x43bc59,_0x1bd5b8,_0x4086e5){return _0x43bc59(_0x1bd5b8,_0x4086e5);},'hCckd':_0x92549b(0x1e5),'EGooL':_0x92549b(0x219),'vmgJk':_0x92549b(0x204),'jFIMh':function(_0x18a890,_0x1bb186){return _0x18a890===_0x1bb186;},'ihjkQ':function(_0x2fe31c,_0x51f659){return _0x2fe31c+_0x51f659;}},_0x4b8e97=_0x3407bf[_0x92549b(0x203)](getBrowserstackCLI),_0x40bbc9=_0x3407bf['CqaOA'](nestedKeyValue,_0x4b8e97[_0x92549b(0x1f4)]()[_0x92549b(0x1f0)](),[_0x3407bf[_0x92549b(0x211)],_0x3407bf['EGooL'],_0x3407bf['vmgJk']])||constants[_0x92549b(0x1c3)];if(!_0x2e8977||_0x3407bf[_0x92549b(0x20e)](_0x2e8977,''))return _0x40bbc9;const _0x2971d1=_0x40bbc9['endsWith']('/')?_0x40bbc9:_0x3407bf[_0x92549b(0x218)](_0x40bbc9,'/');return new URL(_0x2e8977,_0x2971d1)[_0x92549b(0x1f1)]()['replace'](/^https?:\/\//,'');}static[a56_0x4ae0c7(0x1db)](_0x40450c){const _0x189020=a56_0x4ae0c7,_0x49b464={'KatBw':function(_0x3bdd5b){return _0x3bdd5b();},'FfDdl':function(_0x318ff6,_0x509781,_0x48889){return _0x318ff6(_0x509781,_0x48889);},'lVpjA':_0x189020(0x1e5),'FmXcX':_0x189020(0x1e0),'EZrxp':_0x189020(0x1c2),'OrqnM':function(_0xaddf4e,_0x49a1bc){return _0xaddf4e===_0x49a1bc;},'TnoHQ':function(_0x1b78eb,_0x670ed3){return _0x1b78eb+_0x670ed3;}},_0x2bd2d3=_0x49b464[_0x189020(0x1e6)](getBrowserstackCLI),_0x73b26a=_0x49b464['FfDdl'](nestedKeyValue,_0x2bd2d3[_0x189020(0x1f4)]()['getConfig'](),[_0x49b464['lVpjA'],_0x49b464[_0x189020(0x1e2)],_0x49b464['EZrxp']])||constants[_0x189020(0x1fc)];if(!_0x40450c||_0x49b464[_0x189020(0x1f9)](_0x40450c,''))return _0x73b26a;const _0x595d86=_0x73b26a[_0x189020(0x1ec)]('/')?_0x73b26a:_0x49b464[_0x189020(0x1f2)](_0x73b26a,'/');return new URL(_0x40450c,_0x595d86)[_0x189020(0x1f1)]();}static[a56_0x4ae0c7(0x21f)](_0x3efc2b){const _0x10cfc0=a56_0x4ae0c7,_0xa84cf4={'rrPna':function(_0x53ad17){return _0x53ad17();},'Xjpzw':function(_0x54e900,_0x149c82,_0x1641d9){return _0x54e900(_0x149c82,_0x1641d9);},'SGmAL':'apis','ZUdsR':_0x10cfc0(0x221),'lorYO':_0x10cfc0(0x20f),'FQGkx':_0x10cfc0(0x223),'gVmvx':function(_0x28b349,_0x4d96cb){return _0x28b349===_0x4d96cb;},'bjEPC':function(_0x36b010,_0xe2a88a){return _0x36b010+_0xe2a88a;},'xSQPZ':_0x10cfc0(0x1ca)},_0x1a167e=_0xa84cf4['rrPna'](getBrowserstackCLI),_0x11ba09=_0xa84cf4[_0x10cfc0(0x1e9)](nestedKeyValue,_0x1a167e[_0x10cfc0(0x1f4)]()[_0x10cfc0(0x1f0)](),[_0xa84cf4['SGmAL'],_0xa84cf4[_0x10cfc0(0x1c8)],_0xa84cf4[_0x10cfc0(0x20a)]]),_0x425306=(_0x11ba09?_0x11ba09[_0x10cfc0(0x1c1)](/^https:/,_0xa84cf4[_0x10cfc0(0x1cf)]):null)||constants[_0x10cfc0(0x1f7)];let _0x2b7b14;if(!_0x3efc2b||_0xa84cf4['gVmvx'](_0x3efc2b,''))_0x2b7b14=_0x425306;else{const _0x54f314=_0x425306[_0x10cfc0(0x1ec)]('/')?_0x425306:_0xa84cf4[_0x10cfc0(0x1f8)](_0x425306,'/');_0x2b7b14=new URL(_0x3efc2b,_0x54f314)[_0x10cfc0(0x1f1)]();}return!_0x2b7b14[_0x10cfc0(0x1ec)](_0xa84cf4[_0x10cfc0(0x1d5)])&&(_0x2b7b14+=_0xa84cf4[_0x10cfc0(0x1d5)]),_0x2b7b14;}static[a56_0x4ae0c7(0x1ed)](_0x21ee00){const _0x48c7c0=a56_0x4ae0c7,_0x5d7f80={'wWFoa':function(_0x4a0635){return _0x4a0635();},'QlIMH':function(_0x10f1a8,_0x5a5722,_0x5b8100){return _0x10f1a8(_0x5a5722,_0x5b8100);},'MiuGy':_0x48c7c0(0x1e5),'guNFJ':_0x48c7c0(0x221),'EWXxN':_0x48c7c0(0x20f),'mbHFY':_0x48c7c0(0x223),'ESKdo':function(_0x514778,_0x5e3957){return _0x514778===_0x5e3957;},'RiMzh':function(_0x207f7e,_0x4daeb0){return _0x207f7e+_0x4daeb0;},'gBnWt':_0x48c7c0(0x1f6)},_0x13808f=_0x5d7f80[_0x48c7c0(0x202)](getBrowserstackCLI),_0x341aec=_0x5d7f80[_0x48c7c0(0x1ea)](nestedKeyValue,_0x13808f[_0x48c7c0(0x1f4)]()['getConfig'](),[_0x5d7f80[_0x48c7c0(0x1eb)],_0x5d7f80[_0x48c7c0(0x1e3)],_0x5d7f80['EWXxN']]),_0x492848=(_0x341aec?_0x341aec[_0x48c7c0(0x1c1)](/^https:/,_0x5d7f80['mbHFY']):null)||constants['PUPPETEER_HUB_URL'];let _0x4e321e;if(!_0x21ee00||_0x5d7f80[_0x48c7c0(0x1d1)](_0x21ee00,''))_0x4e321e=_0x492848;else{const _0x5b7f5b=_0x492848[_0x48c7c0(0x1ec)]('/')?_0x492848:_0x5d7f80['RiMzh'](_0x492848,'/');_0x4e321e=new URL(_0x21ee00,_0x5b7f5b)[_0x48c7c0(0x1f1)]();}return!_0x4e321e[_0x48c7c0(0x1ec)](_0x5d7f80[_0x48c7c0(0x21b)])&&(_0x4e321e+=_0x5d7f80[_0x48c7c0(0x21b)]),_0x4e321e;}}module[a56_0x4ae0c7(0x1fa)]=APIUtilityMethods;
1
+ function a56_0x3c92(_0x3911cd,_0x4b4e62){const _0x4766c1=a56_0x4766();return a56_0x3c92=function(_0x3c9230,_0x4a1eb7){_0x3c9230=_0x3c9230-0x79;let _0x325049=_0x4766c1[_0x3c9230];return _0x325049;},a56_0x3c92(_0x3911cd,_0x4b4e62);}const a56_0x306cef=a56_0x3c92;(function(_0xf9fd9e,_0x4813e0){const _0x258e7b=a56_0x3c92,_0x5d1237=_0xf9fd9e();while(!![]){try{const _0x2cf60e=-parseInt(_0x258e7b(0xa3))/0x1*(parseInt(_0x258e7b(0xc3))/0x2)+-parseInt(_0x258e7b(0xd8))/0x3+-parseInt(_0x258e7b(0xc6))/0x4+-parseInt(_0x258e7b(0xb6))/0x5+-parseInt(_0x258e7b(0x96))/0x6+-parseInt(_0x258e7b(0x79))/0x7*(parseInt(_0x258e7b(0x9d))/0x8)+parseInt(_0x258e7b(0x7f))/0x9;if(_0x2cf60e===_0x4813e0)break;else _0x5d1237['push'](_0x5d1237['shift']());}catch(_0x1468ee){_0x5d1237['push'](_0x5d1237['shift']());}}}(a56_0x4766,0x409e0));const constants=require('./constants'),{nestedKeyValue}=require(a56_0x306cef(0xa8)),getBrowserstackCLI=()=>{const _0x226f6a=a56_0x306cef,_0x13147b={'SzYvV':function(_0x561e4d,_0xc992c8){return _0x561e4d(_0xc992c8);},'ouxkW':_0x226f6a(0x7a)};return _0x13147b[_0x226f6a(0xb8)](require,_0x13147b[_0x226f6a(0x83)]);};class APIUtilityMethods{static[a56_0x306cef(0xa6)](_0x37f85d){const _0xd38a0a=a56_0x306cef,_0x305fc6={'HRcQO':function(_0x2abb2f){return _0x2abb2f();},'MxBiA':function(_0x4937ac,_0x5bb8e6,_0x4cb341){return _0x4937ac(_0x5bb8e6,_0x4cb341);},'JFIcO':_0xd38a0a(0xab),'zNVpJ':_0xd38a0a(0xbb),'OTdSG':_0xd38a0a(0xce),'CKghi':function(_0x49208a,_0x1c62b6){return _0x49208a===_0x1c62b6;},'LfMyQ':function(_0x1df6e0,_0x23f2e2){return _0x1df6e0+_0x23f2e2;}},_0x17532a=_0x305fc6[_0xd38a0a(0xd2)](getBrowserstackCLI),_0x503e78=_0x305fc6[_0xd38a0a(0xbd)](nestedKeyValue,_0x17532a[_0xd38a0a(0x82)]()[_0xd38a0a(0xa4)](),[_0x305fc6[_0xd38a0a(0xd1)],_0x305fc6['zNVpJ'],_0x305fc6['OTdSG']])||constants['BROWSERSTACK_API_URL'];if(!_0x37f85d||_0x305fc6['CKghi'](_0x37f85d,''))return _0x503e78;const _0x1a03b8=_0x503e78[_0xd38a0a(0x8b)]('/')?_0x503e78:_0x305fc6[_0xd38a0a(0x8c)](_0x503e78,'/');return new URL(_0x37f85d,_0x1a03b8)[_0xd38a0a(0x88)]();}static['getEdsInstrumentationAPIUrl'](_0xf2c06b){const _0x223372=a56_0x306cef,_0x396210={'wFFlA':function(_0x412340){return _0x412340();},'hVnXp':function(_0xa1ba3,_0xf68b4e,_0xeba123){return _0xa1ba3(_0xf68b4e,_0xeba123);},'lBKWq':'apis','ncTqC':_0x223372(0xb3),'UiWVq':'api','njTRX':function(_0x56343c,_0x1f376c){return _0x56343c===_0x1f376c;},'aMigY':function(_0x3366b5,_0x303a2e){return _0x3366b5+_0x303a2e;}},_0x571cb9=_0x396210[_0x223372(0xa1)](getBrowserstackCLI),_0x4a4770=_0x396210['hVnXp'](nestedKeyValue,_0x571cb9['getInstance']()[_0x223372(0xa4)](),[_0x396210[_0x223372(0x9e)],_0x396210[_0x223372(0x99)],_0x396210[_0x223372(0xcd)]])||constants[_0x223372(0xa2)];if(!_0xf2c06b||_0x396210['njTRX'](_0xf2c06b,''))return _0x4a4770;const _0x8d357f=_0x4a4770[_0x223372(0x8b)]('/')?_0x4a4770:_0x396210[_0x223372(0x8f)](_0x4a4770,'/');return new URL(_0xf2c06b,_0x8d357f)[_0x223372(0x88)]();}static[a56_0x306cef(0x92)](_0xa260df){const _0x1dfc50=a56_0x306cef,_0x544230={'VEqJO':function(_0x1a728f){return _0x1a728f();},'lzDjQ':function(_0x103aa4,_0x5cace4,_0x52c85d){return _0x103aa4(_0x5cace4,_0x52c85d);},'AGRLw':_0x1dfc50(0xab),'XYUnh':'automate','YBbZc':'api','wKoYi':function(_0xae5619,_0x33193f){return _0xae5619===_0x33193f;},'vAxya':function(_0x158ee6,_0x54c838){return _0x158ee6+_0x54c838;}},_0x4f6744=_0x544230['VEqJO'](getBrowserstackCLI),_0x7069a4=_0x544230[_0x1dfc50(0xd7)](nestedKeyValue,_0x4f6744[_0x1dfc50(0x82)]()[_0x1dfc50(0xa4)](),[_0x544230['AGRLw'],_0x544230['XYUnh'],_0x544230[_0x1dfc50(0x84)]])||constants[_0x1dfc50(0xc5)];if(!_0xa260df||_0x544230[_0x1dfc50(0x93)](_0xa260df,''))return _0x7069a4;const _0x37392a=_0x7069a4[_0x1dfc50(0x8b)]('/')?_0x7069a4:_0x544230['vAxya'](_0x7069a4,'/');return new URL(_0xa260df,_0x37392a)[_0x1dfc50(0x88)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x4efa20){const _0x43e13e=a56_0x306cef,_0x3c16ab={'kLZLH':function(_0x3595ea){return _0x3595ea();},'ATHnH':function(_0x141bb2,_0x74a20f,_0x536e63){return _0x141bb2(_0x74a20f,_0x536e63);},'vTJpk':_0x43e13e(0xab),'VKGKW':_0x43e13e(0xbe),'DQlPG':_0x43e13e(0xce),'rbCHN':function(_0x323497,_0x262c7d){return _0x323497===_0x262c7d;},'pbgGn':function(_0x50992b,_0x1ea0fe){return _0x50992b+_0x1ea0fe;}},_0x51e703=_0x3c16ab[_0x43e13e(0xb1)](getBrowserstackCLI),_0x571f27=_0x3c16ab[_0x43e13e(0x98)](nestedKeyValue,_0x51e703[_0x43e13e(0x82)]()['getConfig'](),[_0x3c16ab[_0x43e13e(0xac)],_0x3c16ab['VKGKW'],_0x3c16ab[_0x43e13e(0xbf)]])||constants[_0x43e13e(0xc5)];if(!_0x4efa20||_0x3c16ab[_0x43e13e(0xb4)](_0x4efa20,''))return _0x571f27;const _0x5d2851=_0x571f27[_0x43e13e(0x8b)]('/')?_0x571f27:_0x3c16ab[_0x43e13e(0x7b)](_0x571f27,'/');return new URL(_0x4efa20,_0x5d2851)['toString']();}static['getAutomateSessionNameAPIUrl'](_0x3f1a6a){const _0x8ecafb=a56_0x306cef,_0x1f938a={'FyIiz':function(_0x322914){return _0x322914();},'ddPUu':function(_0x2b5f6c,_0xf80b75,_0x42ca39){return _0x2b5f6c(_0xf80b75,_0x42ca39);},'GCvAi':'apis','MYCzA':_0x8ecafb(0xbb),'oisVJ':_0x8ecafb(0xce),'agOIX':function(_0x456f9e,_0x2f3e65){return _0x456f9e===_0x2f3e65;},'wmvAC':function(_0x5f39d4,_0x163250){return _0x5f39d4+_0x163250;}},_0x15ca8a=_0x1f938a['FyIiz'](getBrowserstackCLI),_0x4e1eb5=_0x1f938a['ddPUu'](nestedKeyValue,_0x15ca8a[_0x8ecafb(0x82)]()[_0x8ecafb(0xa4)](),[_0x1f938a[_0x8ecafb(0xa7)],_0x1f938a['MYCzA'],_0x1f938a[_0x8ecafb(0x9c)]])||constants[_0x8ecafb(0xc5)];if(!_0x3f1a6a||_0x1f938a[_0x8ecafb(0x85)](_0x3f1a6a,''))return _0x4e1eb5;const _0x5258f4=_0x4e1eb5[_0x8ecafb(0x8b)]('/')?_0x4e1eb5:_0x1f938a[_0x8ecafb(0xc1)](_0x4e1eb5,'/');return new URL(_0x3f1a6a,_0x5258f4)[_0x8ecafb(0x88)]();}static['getAppAutomateSessionNameAPIUrl'](_0x45ae3b){const _0xd4a417=a56_0x306cef,_0x1acefe={'rKfZA':function(_0x2dfdf2){return _0x2dfdf2();},'BwBbe':function(_0x2cd44b,_0x439ace,_0x5a90e2){return _0x2cd44b(_0x439ace,_0x5a90e2);},'vvdbu':_0xd4a417(0xab),'WQEun':_0xd4a417(0xbe),'BXlmm':_0xd4a417(0xce),'CgKer':function(_0x3a23c2,_0x18be69){return _0x3a23c2===_0x18be69;},'JLxCL':function(_0xdcd1f1,_0x253bf7){return _0xdcd1f1+_0x253bf7;}},_0x39db90=_0x1acefe[_0xd4a417(0x90)](getBrowserstackCLI),_0x214e8b=_0x1acefe[_0xd4a417(0x7c)](nestedKeyValue,_0x39db90['getInstance']()[_0xd4a417(0xa4)](),[_0x1acefe['vvdbu'],_0x1acefe[_0xd4a417(0xb9)],_0x1acefe[_0xd4a417(0x95)]])||constants[_0xd4a417(0xc5)];if(!_0x45ae3b||_0x1acefe[_0xd4a417(0x8a)](_0x45ae3b,''))return _0x214e8b;const _0x3019ef=_0x214e8b[_0xd4a417(0x8b)]('/')?_0x214e8b:_0x1acefe[_0xd4a417(0xb7)](_0x214e8b,'/');return new URL(_0x45ae3b,_0x3019ef)[_0xd4a417(0x88)]();}static[a56_0x306cef(0xd5)](_0xc78a2){const _0x96f2cd=a56_0x306cef,_0x4b4050={'eKsUX':function(_0x3c4595){return _0x3c4595();},'BEOud':function(_0xe5a853,_0x4d2e9c,_0x4a60cf){return _0xe5a853(_0x4d2e9c,_0x4a60cf);},'dHnpE':'apis','RrfYg':'automate','Patfi':_0x96f2cd(0xce),'XguiY':function(_0x4f5d6d,_0x5470ca){return _0x4f5d6d===_0x5470ca;},'tqKVQ':function(_0xce3b82,_0x254561){return _0xce3b82+_0x254561;}},_0x22982e=_0x4b4050['eKsUX'](getBrowserstackCLI),_0x5c3cef=_0x4b4050[_0x96f2cd(0xd0)](nestedKeyValue,_0x22982e[_0x96f2cd(0x82)]()[_0x96f2cd(0xa4)](),[_0x4b4050[_0x96f2cd(0x81)],_0x4b4050[_0x96f2cd(0xc2)],_0x4b4050['Patfi']])||constants[_0x96f2cd(0xc5)];if(!_0xc78a2||_0x4b4050[_0x96f2cd(0x86)](_0xc78a2,''))return _0x5c3cef;const _0x5acd78=_0x5c3cef[_0x96f2cd(0x8b)]('/')?_0x5c3cef:_0x4b4050[_0x96f2cd(0xa9)](_0x5c3cef,'/');return new URL(_0xc78a2,_0x5acd78)[_0x96f2cd(0x88)]()[_0x96f2cd(0x80)](/^https?:\/\//,'');}static[a56_0x306cef(0xad)](_0x488abd){const _0x1fb89f=a56_0x306cef,_0x394c28={'FFNZv':function(_0x1c47fc){return _0x1c47fc();},'wKbTa':function(_0x16c7a1,_0x12f4fe,_0x4c3d3d){return _0x16c7a1(_0x12f4fe,_0x4c3d3d);},'yorEb':'apis','xfOox':_0x1fb89f(0xbe),'eDOTf':_0x1fb89f(0xce),'EuYIK':function(_0x1debe1,_0x4fee4f){return _0x1debe1===_0x4fee4f;},'NLcPo':function(_0x2484b4,_0x5d342d){return _0x2484b4+_0x5d342d;}},_0x4df318=_0x394c28[_0x1fb89f(0x7e)](getBrowserstackCLI),_0xbdfd8e=_0x394c28[_0x1fb89f(0xba)](nestedKeyValue,_0x4df318[_0x1fb89f(0x82)]()['getConfig'](),[_0x394c28[_0x1fb89f(0x9a)],_0x394c28[_0x1fb89f(0xd4)],_0x394c28[_0x1fb89f(0x8d)]])||constants['APP_UPLOAD_URL'];if(!_0x488abd||_0x394c28[_0x1fb89f(0xcf)](_0x488abd,''))return _0xbdfd8e;const _0x3424bc=_0xbdfd8e[_0x1fb89f(0x8b)]('/')?_0xbdfd8e:_0x394c28['NLcPo'](_0xbdfd8e,'/');return new URL(_0x488abd,_0x3424bc)[_0x1fb89f(0x88)]()[_0x1fb89f(0x80)](/^https?:\/\//,'');}static[a56_0x306cef(0xcb)](_0x1305f1){const _0xb3ab5a=a56_0x306cef,_0x352586={'nYEQa':function(_0x3cea88){return _0x3cea88();},'sagxN':function(_0x4f2035,_0x3b78f1,_0x33d003){return _0x4f2035(_0x3b78f1,_0x33d003);},'Hbise':'apis','xEsNm':_0xb3ab5a(0x91),'XfbGI':_0xb3ab5a(0xa5),'EWQPU':function(_0x25c0d9,_0x3fc729){return _0x25c0d9===_0x3fc729;},'ETSBL':function(_0x4ccef3,_0x407fff){return _0x4ccef3+_0x407fff;}},_0xfb9e0a=_0x352586[_0xb3ab5a(0xc7)](getBrowserstackCLI),_0x55e4d1=_0x352586[_0xb3ab5a(0xaf)](nestedKeyValue,_0xfb9e0a[_0xb3ab5a(0x82)]()[_0xb3ab5a(0xa4)](),[_0x352586[_0xb3ab5a(0x7d)],_0x352586[_0xb3ab5a(0xc9)],_0x352586[_0xb3ab5a(0xa0)]])||constants[_0xb3ab5a(0xcc)];if(!_0x1305f1||_0x352586[_0xb3ab5a(0xb5)](_0x1305f1,''))return _0x55e4d1;const _0x2f0900=_0x55e4d1[_0xb3ab5a(0x8b)]('/')?_0x55e4d1:_0x352586['ETSBL'](_0x55e4d1,'/');return new URL(_0x1305f1,_0x2f0900)[_0xb3ab5a(0x88)]();}static[a56_0x306cef(0xc8)](_0x1745cd){const _0x1b47c3=a56_0x306cef,_0x65c7f8={'HCfgt':function(_0xe267c){return _0xe267c();},'ajlXG':function(_0x2bacdf,_0x56fc08,_0x374eef){return _0x2bacdf(_0x56fc08,_0x374eef);},'vqwGk':_0x1b47c3(0xab),'lFTmM':_0x1b47c3(0xbb),'QIYPQ':'cdp','fBQUa':_0x1b47c3(0xb0),'OTtWz':function(_0x3723f1,_0x1d798b){return _0x3723f1===_0x1d798b;},'obVbF':function(_0x1b05c0,_0x1961a3){return _0x1b05c0+_0x1961a3;},'XUTnk':'/playwright?caps='},_0x421a37=_0x65c7f8[_0x1b47c3(0x87)](getBrowserstackCLI),_0x5a2ba7=_0x65c7f8[_0x1b47c3(0xbc)](nestedKeyValue,_0x421a37[_0x1b47c3(0x82)]()[_0x1b47c3(0xa4)](),[_0x65c7f8[_0x1b47c3(0xca)],_0x65c7f8[_0x1b47c3(0xaa)],_0x65c7f8[_0x1b47c3(0xae)]]),_0x477483=(_0x5a2ba7?_0x5a2ba7[_0x1b47c3(0x80)](/^https:/,_0x65c7f8[_0x1b47c3(0x97)]):null)||constants[_0x1b47c3(0x9f)];let _0x296152;if(!_0x1745cd||_0x65c7f8['OTtWz'](_0x1745cd,''))_0x296152=_0x477483;else{const _0x409fb9=_0x477483[_0x1b47c3(0x8b)]('/')?_0x477483:_0x65c7f8['obVbF'](_0x477483,'/');_0x296152=new URL(_0x1745cd,_0x409fb9)[_0x1b47c3(0x88)]();}return!_0x296152['endsWith'](_0x65c7f8[_0x1b47c3(0x89)])&&(_0x296152+=_0x65c7f8[_0x1b47c3(0x89)]),_0x296152;}static['getPuppeteerHubUrl'](_0x166f9c){const _0x269b7d=a56_0x306cef,_0x2337f2={'zScxX':function(_0x2ea117){return _0x2ea117();},'kbexz':function(_0x392193,_0xbc2f8a,_0x4e2a93){return _0x392193(_0xbc2f8a,_0x4e2a93);},'bONZy':_0x269b7d(0xab),'LpJUC':'automate','IgOfK':_0x269b7d(0xb2),'hdyQP':'wss:','EeXkK':function(_0x317e3b,_0x186da1){return _0x317e3b===_0x186da1;},'mporz':function(_0x272629,_0x41a095){return _0x272629+_0x41a095;},'ZaUkk':_0x269b7d(0x94)},_0x26267c=_0x2337f2['zScxX'](getBrowserstackCLI),_0x45e879=_0x2337f2[_0x269b7d(0xc0)](nestedKeyValue,_0x26267c[_0x269b7d(0x82)]()[_0x269b7d(0xa4)](),[_0x2337f2['bONZy'],_0x2337f2[_0x269b7d(0xd9)],_0x2337f2['IgOfK']]),_0x41103d=(_0x45e879?_0x45e879[_0x269b7d(0x80)](/^https:/,_0x2337f2[_0x269b7d(0x8e)]):null)||constants[_0x269b7d(0xc4)];let _0x5c1c73;if(!_0x166f9c||_0x2337f2[_0x269b7d(0xd3)](_0x166f9c,''))_0x5c1c73=_0x41103d;else{const _0x3764a4=_0x41103d['endsWith']('/')?_0x41103d:_0x2337f2['mporz'](_0x41103d,'/');_0x5c1c73=new URL(_0x166f9c,_0x3764a4)[_0x269b7d(0x88)]();}return!_0x5c1c73[_0x269b7d(0x8b)](_0x2337f2[_0x269b7d(0xd6)])&&(_0x5c1c73+=_0x2337f2[_0x269b7d(0xd6)]),_0x5c1c73;}}function a56_0x4766(){const _0x420332=['LfMyQ','eDOTf','hdyQP','aMigY','rKfZA','observability','getAutomateSessionStatusAPIUrl','wKoYi','/puppeteer?caps=','BXlmm','2753766DHEuhJ','fBQUa','ATHnH','ncTqC','yorEb','exports','oisVJ','2552zBqjEs','lBKWq','PLAYWRIGHT_HUB_URL','XfbGI','wFFlA','EDS_URL','169gvmOkf','getConfig','upload','getBStackAPIUrl','GCvAi','./sharedUtils','tqKVQ','lFTmM','apis','vTJpk','getAppAutomateSessionsListAPIUrl','QIYPQ','sagxN','wss:','kLZLH','cdp','edsInstrumentation','rbCHN','EWQPU','2191795Aojgvy','JLxCL','SzYvV','WQEun','wKbTa','automate','ajlXG','MxBiA','appAutomate','DQlPG','kbexz','wmvAC','RrfYg','5342JJNNww','PUPPETEER_HUB_URL','BROWSERSTACK_API_URL','2011064CBVEwX','nYEQa','getPlaywrightHubUrl','xEsNm','vqwGk','getAutoCaptureLogsAPIUrl','OBSERVABILITY_UPLOAD_URL','UiWVq','api','EuYIK','BEOud','JFIcO','HRcQO','EeXkK','xfOox','getAutomateSessionsListAPIUrl','ZaUkk','lzDjQ','1262025EhexQo','LpJUC','2156pDXTVI','../v2/browserstackCLI','pbgGn','BwBbe','Hbise','FFNZv','23715756RXcpZP','replace','dHnpE','getInstance','ouxkW','YBbZc','agOIX','XguiY','HCfgt','toString','XUTnk','CgKer','endsWith'];a56_0x4766=function(){return _0x420332;};return a56_0x4766();}module[a56_0x306cef(0x9b)]=APIUtilityMethods;
@@ -1 +1 @@
1
- const a57_0x3a333d=a57_0x10bb;(function(_0x17aa5b,_0xcf4871){const _0x47a3be=a57_0x10bb,_0x13d3e6=_0x17aa5b();while(!![]){try{const _0x6342aa=parseInt(_0x47a3be(0xda))/0x1*(parseInt(_0x47a3be(0xb7))/0x2)+-parseInt(_0x47a3be(0xe9))/0x3+parseInt(_0x47a3be(0xa8))/0x4+parseInt(_0x47a3be(0xc0))/0x5+-parseInt(_0x47a3be(0xaa))/0x6*(parseInt(_0x47a3be(0xcb))/0x7)+parseInt(_0x47a3be(0xd6))/0x8*(-parseInt(_0x47a3be(0xd9))/0x9)+-parseInt(_0x47a3be(0xa1))/0xa;if(_0x6342aa===_0xcf4871)break;else _0x13d3e6['push'](_0x13d3e6['shift']());}catch(_0x3ca700){_0x13d3e6['push'](_0x13d3e6['shift']());}}}(a57_0x5875,0xd9c0a));const logger=require(a57_0x3a333d(0x90))[a57_0x3a333d(0xc4)],BrowserstackCLI=require('../v2/browserstackCLI'),GrpcClient=require(a57_0x3a333d(0xe5)),constants=require('./constants');function a57_0x10bb(_0x37b62a,_0x3c1f3e){const _0x587516=a57_0x5875();return a57_0x10bb=function(_0x10bb53,_0x3e1aac){_0x10bb53=_0x10bb53-0x8b;let _0x5d058d=_0x587516[_0x10bb53];return _0x5d058d;},a57_0x10bb(_0x37b62a,_0x3c1f3e);}function a57_0x5875(){const _0x57cf5a=['replace','warn','winstonLogger','getInstance','checkForErrorsOccuredInCLI','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','join','fimZU','cachedErrorCodes','714soVBMB','error','isArray','tvVQl','CLIENT_TROUBLESHOOTING_HASH','ywbOk','HxTTe','reportConnectivityIssue','from','ssl\x20cert\x20issue','RaApx','349352djcwGp','errorCodesOccurredWhenCLINotRunning','WuIFX','27TvxBVe','29IgLCWT','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodes','getErrorCode','reportSSLCertIssue','conflicting\x20env\x20var\x20detected','CdJoz','OBObb','exports','getAggregatedClientTroubleshootingErrors','{ERROR_CODES}','../v2/grpcClient','FVaTh','push','sDSGd','2159115pKWfjU','getDocumentationLink','vlpcp','finalErrorMessage','getAggregatedErrorCodes','keys','Process\x20Interruption','length','RBbFP','errorCode','getErrorCodes','myosn','Connectivity\x20Issue\x20details\x20not\x20found','XiBWR','wNWuL','logSituation','parse','object','../../helpers/logger','getFinalErrorMessage','browserstack\x20cloud\x20not\x20reachable','reportProcessInterruptionSituation','getErrorCodesOccurredInCli','pxocU','vsivS','getErrorDetails','stringify','Iosad','bwRpD','Session\x20Linking\x20Issue','pkDpg','{SIGNAL}','bWlta','NHVEV','documentationLink','11074090MMoIQG','Session\x20Linking\x20Issue\x20details\x20not\x20found','base64','toString','eoyVA','logError','reportDotBrowserStackFolderNotAccessibleIssue','3299788ICOCfM','lcnKx','52482mMeDAd','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','RmWiJ','Process\x20Interruption\x20details\x20not\x20found:','sGwJK','reportClientTroubleshootingError','[ClientTroubleShootingService]\x20','qPaDw','AXRaB','.browserstack\x20folder\x20not\x20accessible','vnTLH','loDwk','isRunning','88604ruDElV','KsFap','errorCodesOccurredInCLI','reportConflictingEnvVarIssue','getSuccess','getCachedErrorCodes','pQlBM','errorMessage','reportFinalDetectionState','8162620kIQQHb','ajRSU'];a57_0x5875=function(){return _0x57cf5a;};return a57_0x5875();}class ClientTroubleShootingService{static [a57_0x3a333d(0xca)]=null;static [a57_0x3a333d(0xd7)]=new Set();static async[a57_0x3a333d(0x97)](_0x6a5040){const _0x73983f=a57_0x3a333d,_0x23d343={};_0x23d343[_0x73983f(0x99)]=function(_0x19ad4f,_0xfa13d8){return _0x19ad4f!==_0xfa13d8;};const _0x55a625=_0x23d343;try{if(BrowserstackCLI[_0x73983f(0xc5)]()[_0x73983f(0xb6)]()){const _0x38055a=await GrpcClient['getInstance']()[_0x73983f(0xaf)](_0x6a5040);if(_0x55a625[_0x73983f(0x99)](_0x38055a,null)&&_0x38055a[_0x73983f(0xbb)]())return{'errorCode':_0x38055a[_0x73983f(0xdd)](),'errorMessage':_0x38055a['getErrorMessage']()};return{};}return{};}catch(_0xc40cca){return this[_0x73983f(0xa6)](_0x73983f(0xdb)+_0x6a5040+':',_0xc40cca),{};}}static async[a57_0x3a333d(0xed)](){const _0x180acf=a57_0x3a333d,_0x5003b3={};_0x5003b3[_0x180acf(0xe0)]=function(_0x5e7cdb,_0xc8f0aa){return _0x5e7cdb!==_0xc8f0aa;},_0x5003b3[_0x180acf(0xe1)]=_0x180acf(0xa3),_0x5003b3[_0x180acf(0xe8)]=_0x180acf(0xab);const _0x4fdfb6=_0x5003b3;try{if(BrowserstackCLI[_0x180acf(0xc5)]()['isRunning']()){const _0x1efe87=await GrpcClient[_0x180acf(0xc5)]()[_0x180acf(0xe3)]();if(_0x4fdfb6['CdJoz'](_0x1efe87,null)&&_0x1efe87[_0x180acf(0xbb)]()){const _0x320e80=Buffer['from'](_0x1efe87[_0x180acf(0xf3)](),_0x4fdfb6[_0x180acf(0xe1)])[_0x180acf(0xa4)](),_0x5a1477=_0x320e80?JSON[_0x180acf(0x8e)](_0x320e80):[],_0x4ecb53=_0x1efe87[_0x180acf(0xea)](),_0x534e50=_0x1efe87[_0x180acf(0x91)](),_0x4606ac=Buffer[_0x180acf(0xd3)](_0x1efe87[_0x180acf(0x94)](),_0x4fdfb6[_0x180acf(0xe1)])[_0x180acf(0xa4)](),_0x5838d0=_0x4606ac?JSON[_0x180acf(0x8e)](_0x4606ac):[],_0x94456d={};return _0x94456d[_0x180acf(0xdc)]=_0x5a1477,_0x94456d[_0x180acf(0xa0)]=_0x4ecb53,_0x94456d[_0x180acf(0xec)]=_0x534e50,_0x94456d[_0x180acf(0xb9)]=_0x5838d0,_0x94456d;}const _0x4f12a1={};return _0x4f12a1[_0x180acf(0xdc)]=[],_0x4f12a1['documentationLink']='',_0x4f12a1[_0x180acf(0xec)]='',_0x4f12a1[_0x180acf(0xb9)]=[],_0x4f12a1;}const _0x2b55c7={};return _0x2b55c7['errorCodes']=[],_0x2b55c7[_0x180acf(0xa0)]='',_0x2b55c7[_0x180acf(0xec)]='',_0x2b55c7[_0x180acf(0xb9)]=[],_0x2b55c7;}catch(_0x84890c){this[_0x180acf(0xa6)](_0x4fdfb6[_0x180acf(0xe8)],_0x84890c);const _0x49caf9={};return _0x49caf9['errorCodes']=[],_0x49caf9[_0x180acf(0xa0)]='',_0x49caf9[_0x180acf(0xec)]='',_0x49caf9[_0x180acf(0xb9)]=[],_0x49caf9;}}static[a57_0x3a333d(0x8d)](_0xa7af45,_0x49c954){const _0x3900c6=a57_0x3a333d;logger[_0x3900c6(0xc3)](_0xa7af45+':\x20'+_0x49c954);}static[a57_0x3a333d(0xc6)](_0x8bde93){const _0x542eaf=a57_0x3a333d,_0x582799={};_0x582799[_0x542eaf(0xf4)]=function(_0x1fcc28,_0x113996){return _0x1fcc28!=_0x113996;},_0x582799['qPaDw']=function(_0x54e6cd,_0x2e42fd){return _0x54e6cd!=_0x2e42fd;},_0x582799[_0x542eaf(0x95)]=function(_0x2572b5,_0x3d3093){return _0x2572b5>_0x3d3093;};const _0x3566ce=_0x582799,_0x1e62df=[];if(_0x3566ce[_0x542eaf(0xf4)](_0x8bde93,null)&&_0x3566ce[_0x542eaf(0xb1)](_0x8bde93[_0x542eaf(0xb9)],null)&&_0x3566ce[_0x542eaf(0x95)](_0x8bde93[_0x542eaf(0xb9)][_0x542eaf(0xf0)],0x0))for(const _0xf7a54c of _0x8bde93[_0x542eaf(0xb9)]){_0x3566ce[_0x542eaf(0xb1)](_0xf7a54c[_0x542eaf(0xf2)],null)&&_0x3566ce[_0x542eaf(0xf4)](_0xf7a54c[_0x542eaf(0xbe)],null)&&(_0x1e62df[_0x542eaf(0xe7)](_0xf7a54c[_0x542eaf(0xf2)]),this[_0x542eaf(0x8d)](_0xf7a54c[_0x542eaf(0xf2)],_0xf7a54c[_0x542eaf(0xbe)]));}return _0x1e62df;}static[a57_0x3a333d(0xbc)](){return this['cachedErrorCodes'];}static[a57_0x3a333d(0xa6)](_0x19086f,_0x1538b9){const _0x30bb04=a57_0x3a333d,_0xfa32f2={};_0xfa32f2[_0x30bb04(0xd1)]=function(_0x35a29a,_0x11db88){return _0x35a29a===_0x11db88;},_0xfa32f2['pkDpg']=_0x30bb04(0x8f);const _0x3e773f=_0xfa32f2;if(_0x3e773f[_0x30bb04(0xd1)](typeof _0x1538b9,_0x3e773f[_0x30bb04(0x9c)]))try{logger[_0x30bb04(0xcc)](_0x30bb04(0xb0)+_0x19086f+'\x20'+JSON[_0x30bb04(0x98)](_0x1538b9));}catch(_0x3eb14e){logger[_0x30bb04(0xcc)](_0x30bb04(0xb0)+_0x19086f+'\x20'+_0x1538b9);}else logger['error'](_0x30bb04(0xb0)+_0x19086f+'\x20'+_0x1538b9);}static async[a57_0x3a333d(0x93)](_0x10ab8e){const _0x247b01=a57_0x3a333d,_0x3a4299={};_0x3a4299[_0x247b01(0xd0)]=_0x247b01(0xef),_0x3a4299[_0x247b01(0xac)]=function(_0x220ad9,_0x44bda5){return _0x220ad9===_0x44bda5;},_0x3a4299[_0x247b01(0xb5)]=_0x247b01(0xad),_0x3a4299[_0x247b01(0xeb)]=_0x247b01(0x9d);const _0x1ffb8a=_0x3a4299,_0x7936c0=await this[_0x247b01(0x97)](_0x1ffb8a[_0x247b01(0xd0)]);if(!_0x7936c0||_0x1ffb8a['RmWiJ'](Object['keys'](_0x7936c0)[_0x247b01(0xf0)],0x0)){this[_0x247b01(0xa6)](_0x1ffb8a[_0x247b01(0xb5)],_0x7936c0);return;}this[_0x247b01(0x8d)](_0x7936c0[_0x247b01(0xf2)],_0x7936c0[_0x247b01(0xbe)][_0x247b01(0xc2)](_0x1ffb8a[_0x247b01(0xeb)],_0x10ab8e));}static async['reportSessionLinkingIssue'](){const _0x550617=a57_0x3a333d,_0x52bb60={};_0x52bb60[_0x550617(0xbd)]=_0x550617(0x9b),_0x52bb60['AXRaB']=function(_0x598af5,_0x58a487){return _0x598af5===_0x58a487;},_0x52bb60[_0x550617(0xa5)]=_0x550617(0xa2);const _0xa269b9=_0x52bb60,_0x27e8ac=await this[_0x550617(0x97)](_0xa269b9['pQlBM']);if(!_0x27e8ac||_0xa269b9[_0x550617(0xb2)](Object[_0x550617(0xee)](_0x27e8ac)[_0x550617(0xf0)],0x0)){this[_0x550617(0xa6)](_0xa269b9['eoyVA'],_0x27e8ac);return;}this[_0x550617(0x8d)](_0x27e8ac[_0x550617(0xf2)],_0x27e8ac[_0x550617(0xbe)]);}static async[a57_0x3a333d(0xd2)](){const _0x482f0e=a57_0x3a333d,_0x3616de={};_0x3616de['XiBWR']=_0x482f0e(0x92),_0x3616de[_0x482f0e(0xd5)]=function(_0x3c4d13,_0x343f79){return _0x3c4d13===_0x343f79;},_0x3616de[_0x482f0e(0x8c)]=_0x482f0e(0xf5);const _0x450270=_0x3616de,_0x27ae25=await this[_0x482f0e(0x97)](_0x450270[_0x482f0e(0x8b)]);if(!_0x27ae25||_0x450270[_0x482f0e(0xd5)](Object['keys'](_0x27ae25)[_0x482f0e(0xf0)],0x0)){this['logError'](_0x450270['wNWuL'],_0x27ae25);return;}this[_0x482f0e(0x8d)](_0x27ae25[_0x482f0e(0xf2)],_0x27ae25[_0x482f0e(0xbe)]);}static async[a57_0x3a333d(0xde)](){const _0x58aa6b=a57_0x3a333d,_0x3f9174={};_0x3f9174[_0x58aa6b(0xae)]=_0x58aa6b(0xd4),_0x3f9174[_0x58aa6b(0x9f)]=function(_0x4bafea,_0x196f17){return _0x4bafea===_0x196f17;},_0x3f9174[_0x58aa6b(0xd8)]=_0x58aa6b(0xc7);const _0x34bad2=_0x3f9174,_0x2e2917=await this[_0x58aa6b(0x97)](_0x34bad2[_0x58aa6b(0xae)]);if(!_0x2e2917||_0x34bad2[_0x58aa6b(0x9f)](Object[_0x58aa6b(0xee)](_0x2e2917)['length'],0x0)){this['logError'](_0x34bad2['WuIFX'],_0x2e2917);return;}this[_0x58aa6b(0x8d)](_0x2e2917[_0x58aa6b(0xf2)],_0x2e2917[_0x58aa6b(0xbe)]);}static[a57_0x3a333d(0xa7)](){const _0xe9c489=a57_0x3a333d,_0x4aa33d={};_0x4aa33d[_0xe9c489(0xb4)]=_0xe9c489(0xb3),_0x4aa33d[_0xe9c489(0xce)]=function(_0x535d71,_0x1945e7){return _0x535d71===_0x1945e7;},_0x4aa33d['KsFap']='.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found';const _0x3878ab=_0x4aa33d,_0x1be803=constants[_0xe9c489(0xcf)][_0x3878ab[_0xe9c489(0xb4)]];if(!_0x1be803||_0x3878ab['tvVQl'](Object[_0xe9c489(0xee)](_0x1be803)[_0xe9c489(0xf0)],0x0)){this[_0xe9c489(0xa6)](_0x3878ab[_0xe9c489(0xb8)],_0x1be803);return;}this[_0xe9c489(0xd7)]['add'](_0x1be803[0x0]),this[_0xe9c489(0x8d)](_0x1be803[0x0],_0x1be803[0x1]);}static async[a57_0x3a333d(0xba)](_0x20e40c){const _0x44ae34=a57_0x3a333d,_0x12d3a1={};_0x12d3a1[_0x44ae34(0x9e)]=_0x44ae34(0xdf),_0x12d3a1['FVaTh']=function(_0x17727e,_0x40dc4e){return _0x17727e===_0x40dc4e;},_0x12d3a1['bwRpD']='Conflicting\x20Env\x20Var\x20details\x20not\x20found',_0x12d3a1[_0x44ae34(0xc9)]='{ENV_VAR}';const _0x4a6ca3=_0x12d3a1,_0x4f9424=await this[_0x44ae34(0x97)](_0x4a6ca3[_0x44ae34(0x9e)]);if(!_0x4f9424||_0x4a6ca3[_0x44ae34(0xe6)](Object[_0x44ae34(0xee)](_0x4f9424)[_0x44ae34(0xf0)],0x0)){this[_0x44ae34(0xa6)](_0x4a6ca3[_0x44ae34(0x9a)],_0x4f9424);return;}const _0x4487c0=_0x4f9424[_0x44ae34(0xbe)]['replace'](_0x4a6ca3['fimZU'],_0x20e40c);this[_0x44ae34(0x8d)](_0x4f9424[_0x44ae34(0xf2)],_0x4487c0);}static async[a57_0x3a333d(0xbf)](){const _0x52c246=a57_0x3a333d,_0x3d852c={};_0x3d852c[_0x52c246(0xa9)]=function(_0x55997,_0x445f05){return _0x55997>_0x445f05;},_0x3d852c[_0x52c246(0xc1)]=function(_0x1dc51f,_0x452759){return _0x1dc51f>_0x452759;},_0x3d852c[_0x52c246(0xf1)]=_0x52c246(0xe4),_0x3d852c[_0x52c246(0x96)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x18f3b7=_0x3d852c,_0x4e9595=await this['getAggregatedErrorCodes'](),_0x3456c5=this[_0x52c246(0xc6)](_0x4e9595),_0x48b336=Array[_0x52c246(0xcd)](_0x4e9595['errorCodes'])?_0x4e9595[_0x52c246(0xdc)]:[],_0x194b81=_0x18f3b7['lcnKx'](this[_0x52c246(0xd7)]['size'],0x0)?Array['from'](this[_0x52c246(0xd7)]):[],_0x47eeca=new Set([..._0x48b336,..._0x3456c5,..._0x194b81]),_0x4a9f9a=Array[_0x52c246(0xd3)](_0x47eeca);if(_0x18f3b7[_0x52c246(0xc1)](_0x4a9f9a[_0x52c246(0xf0)],0x0)){const _0xbd10c6=_0x4e9595[_0x52c246(0xec)]['replace'](_0x18f3b7[_0x52c246(0xf1)],_0x4a9f9a[_0x52c246(0xc8)](',\x20'))[_0x52c246(0xc2)](_0x18f3b7[_0x52c246(0x96)],_0x4e9595[_0x52c246(0xa0)]);logger[_0x52c246(0xc3)](_0xbd10c6),this[_0x52c246(0xca)]=_0x4a9f9a;}}}module[a57_0x3a333d(0xe2)]=ClientTroubleShootingService;
1
+ function a57_0x118e(){const _0x10fa11=['parse','CJMjN','16mXyooo','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','replace','logError','getErrorCode','isArray','xLCih','exports','reportClientTroubleshootingError','add','getSuccess','{ERROR_CODES}','DoHiq','ArSsG','emRLe','AOiQn','fbVqH','jGrbu','.browserstack\x20folder\x20not\x20accessible','2875155IjeNdx','VSnfg','VljQv','stringify','finalErrorMessage','63qrlHoa','error','errorCodesOccurredWhenCLINotRunning','1450aPPVqb','./constants','getErrorCodesOccurredInCli','winstonLogger','from','dZGGz','isRunning','ScdVg','getInstance','getDocumentationLink','conflicting\x20env\x20var\x20detected','getAggregatedErrorCodes','qRCBk','FxkVM','CLIENT_TROUBLESHOOTING_HASH','reportProcessInterruptionSituation','errorCodes','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','reportConnectivityIssue','WZtSE','ssl\x20cert\x20issue','logSituation','documentationLink','73998qErsRR','204067bVSJBM','27654CtJFjU','KfSAj','CzMlC','../v2/grpcClient','BjIpA','getFinalErrorMessage','8AnBubr','errorMessage','73998PPEFmg','XeQKr','eIyxC','Conflicting\x20Env\x20Var\x20details\x20not\x20found','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','vxvtI','HivgL','object','[ClientTroubleShootingService]\x20','getErrorDetails','errorCode','Process\x20Interruption\x20details\x20not\x20found:','toString','1728ENfgWA','DbCYu','push','getErrorCodes','checkForErrorsOccuredInCLI','TcPuX','getCachedErrorCodes','keys','uHUpf','../../helpers/logger','length','warn','reportSSLCertIssue','Connectivity\x20Issue\x20details\x20not\x20found','5374232FYZKxa','Error\x20in\x20getting\x20error\x20details\x20for\x20','wzpBH','errorCodesOccurredInCLI','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','join','cachedErrorCodes','972305HVDtVV','fTscd','YeHCG','JrbVj','getErrorMessage','hCswE'];a57_0x118e=function(){return _0x10fa11;};return a57_0x118e();}const a57_0x54458a=a57_0x2b01;(function(_0x2bff67,_0x3b6d46){const _0x39ba3a=a57_0x2b01,_0x148f24=_0x2bff67();while(!![]){try{const _0x3d9fb6=parseInt(_0x39ba3a(0x1a6))/0x1*(parseInt(_0x39ba3a(0x1ad))/0x2)+parseInt(_0x39ba3a(0x186))/0x3+-parseInt(_0x39ba3a(0x173))/0x4*(parseInt(_0x39ba3a(0x16b))/0x5)+parseInt(_0x39ba3a(0x1af))/0x6*(-parseInt(_0x39ba3a(0x18b))/0x7)+parseInt(_0x39ba3a(0x164))/0x8+parseInt(_0x39ba3a(0x1a5))/0x9*(-parseInt(_0x39ba3a(0x18e))/0xa)+parseInt(_0x39ba3a(0x1a7))/0xb*(parseInt(_0x39ba3a(0x1bc))/0xc);if(_0x3d9fb6===_0x3b6d46)break;else _0x148f24['push'](_0x148f24['shift']());}catch(_0x4546d6){_0x148f24['push'](_0x148f24['shift']());}}}(a57_0x118e,0xb1979));const logger=require(a57_0x54458a(0x1c5))[a57_0x54458a(0x191)],BrowserstackCLI=require('../v2/browserstackCLI'),GrpcClient=require(a57_0x54458a(0x1aa)),constants=require(a57_0x54458a(0x18f));class ClientTroubleShootingService{static [a57_0x54458a(0x16a)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async['getErrorDetails'](_0x5dfdd0){const _0x515506=a57_0x54458a,_0x590fe7={};_0x590fe7[_0x515506(0x172)]=function(_0x30db7b,_0x3323d0){return _0x30db7b!==_0x3323d0;};const _0xbfdc76=_0x590fe7;try{if(BrowserstackCLI[_0x515506(0x196)]()['isRunning']()){const _0x4359ef=await GrpcClient[_0x515506(0x196)]()[_0x515506(0x17b)](_0x5dfdd0);if(_0xbfdc76['CJMjN'](_0x4359ef,null)&&_0x4359ef[_0x515506(0x17d)]())return{'errorCode':_0x4359ef[_0x515506(0x177)](),'errorMessage':_0x4359ef[_0x515506(0x16f)]()};return{};}return{};}catch(_0x21782e){return this[_0x515506(0x176)](_0x515506(0x165)+_0x5dfdd0+':',_0x21782e),{};}}static async[a57_0x54458a(0x199)](){const _0x356484=a57_0x54458a,_0x1696b2={};_0x1696b2[_0x356484(0x181)]=function(_0x4b9b74,_0x506c85){return _0x4b9b74!==_0x506c85;},_0x1696b2[_0x356484(0x1bd)]='base64',_0x1696b2['zBYdv']=_0x356484(0x168);const _0x1723c2=_0x1696b2;try{if(BrowserstackCLI['getInstance']()[_0x356484(0x194)]()){const _0x4c249c=await GrpcClient[_0x356484(0x196)]()['getAggregatedClientTroubleshootingErrors']();if(_0x1723c2[_0x356484(0x181)](_0x4c249c,null)&&_0x4c249c[_0x356484(0x17d)]()){const _0x1f9df2=Buffer['from'](_0x4c249c[_0x356484(0x1bf)](),_0x1723c2[_0x356484(0x1bd)])[_0x356484(0x1bb)](),_0x4e5bf1=_0x1f9df2?JSON[_0x356484(0x171)](_0x1f9df2):[],_0x52511e=_0x4c249c[_0x356484(0x197)](),_0x3fb348=_0x4c249c[_0x356484(0x1ac)](),_0x12a7fb=Buffer[_0x356484(0x192)](_0x4c249c[_0x356484(0x190)](),_0x1723c2['DbCYu'])[_0x356484(0x1bb)](),_0x3d42f7=_0x12a7fb?JSON[_0x356484(0x171)](_0x12a7fb):[],_0x307075={};return _0x307075[_0x356484(0x19e)]=_0x4e5bf1,_0x307075[_0x356484(0x1a4)]=_0x52511e,_0x307075[_0x356484(0x18a)]=_0x3fb348,_0x307075[_0x356484(0x167)]=_0x3d42f7,_0x307075;}const _0x11e696={};return _0x11e696['errorCodes']=[],_0x11e696[_0x356484(0x1a4)]='',_0x11e696[_0x356484(0x18a)]='',_0x11e696[_0x356484(0x167)]=[],_0x11e696;}const _0x50a1ad={};return _0x50a1ad['errorCodes']=[],_0x50a1ad[_0x356484(0x1a4)]='',_0x50a1ad[_0x356484(0x18a)]='',_0x50a1ad[_0x356484(0x167)]=[],_0x50a1ad;}catch(_0x686f6e){this[_0x356484(0x176)](_0x1723c2['zBYdv'],_0x686f6e);const _0x2358c4={};return _0x2358c4[_0x356484(0x19e)]=[],_0x2358c4[_0x356484(0x1a4)]='',_0x2358c4[_0x356484(0x18a)]='',_0x2358c4[_0x356484(0x167)]=[],_0x2358c4;}}static[a57_0x54458a(0x1a3)](_0x24f46e,_0x122559){const _0x54ba04=a57_0x54458a;logger[_0x54ba04(0x1c7)](_0x24f46e+':\x20'+_0x122559);}static[a57_0x54458a(0x1c0)](_0x239a82){const _0x2d5a0a=a57_0x54458a,_0x482427={};_0x482427[_0x2d5a0a(0x19a)]=function(_0x289fd3,_0x2091a8){return _0x289fd3!=_0x2091a8;},_0x482427[_0x2d5a0a(0x183)]=function(_0x100cbd,_0x342a79){return _0x100cbd>_0x342a79;},_0x482427[_0x2d5a0a(0x1a9)]=function(_0x2fc342,_0x59d3ec){return _0x2fc342!=_0x59d3ec;};const _0x253766=_0x482427,_0x3b6b18=[];if(_0x253766[_0x2d5a0a(0x19a)](_0x239a82,null)&&_0x253766[_0x2d5a0a(0x19a)](_0x239a82[_0x2d5a0a(0x167)],null)&&_0x253766[_0x2d5a0a(0x183)](_0x239a82[_0x2d5a0a(0x167)][_0x2d5a0a(0x1c6)],0x0))for(const _0x594611 of _0x239a82['errorCodesOccurredInCLI']){_0x253766[_0x2d5a0a(0x1a9)](_0x594611[_0x2d5a0a(0x1b9)],null)&&_0x253766[_0x2d5a0a(0x19a)](_0x594611[_0x2d5a0a(0x1ae)],null)&&(_0x3b6b18[_0x2d5a0a(0x1be)](_0x594611[_0x2d5a0a(0x1b9)]),this[_0x2d5a0a(0x1a3)](_0x594611[_0x2d5a0a(0x1b9)],_0x594611[_0x2d5a0a(0x1ae)]));}return _0x3b6b18;}static[a57_0x54458a(0x1c2)](){const _0x548f24=a57_0x54458a;return this[_0x548f24(0x16a)];}static[a57_0x54458a(0x176)](_0x1f60c0,_0x5bc689){const _0x1c90a1=a57_0x54458a,_0x324b2d={};_0x324b2d[_0x1c90a1(0x1b1)]=function(_0x1cbd68,_0x53c2ac){return _0x1cbd68===_0x53c2ac;},_0x324b2d[_0x1c90a1(0x16d)]=_0x1c90a1(0x1b6);const _0x208f7d=_0x324b2d;if(_0x208f7d['eIyxC'](typeof _0x5bc689,_0x208f7d[_0x1c90a1(0x16d)]))try{logger[_0x1c90a1(0x18c)](_0x1c90a1(0x1b7)+_0x1f60c0+'\x20'+JSON[_0x1c90a1(0x189)](_0x5bc689));}catch(_0x587a24){logger[_0x1c90a1(0x18c)](_0x1c90a1(0x1b7)+_0x1f60c0+'\x20'+_0x5bc689);}else logger['error']('[ClientTroubleShootingService]\x20'+_0x1f60c0+'\x20'+_0x5bc689);}static async[a57_0x54458a(0x19d)](_0x92da5a){const _0x2bf7e3=a57_0x54458a,_0x11d6ee={};_0x11d6ee[_0x2bf7e3(0x166)]='Process\x20Interruption',_0x11d6ee[_0x2bf7e3(0x195)]=function(_0x2b764a,_0x312679){return _0x2b764a===_0x312679;},_0x11d6ee[_0x2bf7e3(0x1c1)]=_0x2bf7e3(0x1ba),_0x11d6ee[_0x2bf7e3(0x1c4)]='{SIGNAL}';const _0x3b4c3b=_0x11d6ee,_0x228d47=await this[_0x2bf7e3(0x1b8)](_0x3b4c3b[_0x2bf7e3(0x166)]);if(!_0x228d47||_0x3b4c3b[_0x2bf7e3(0x195)](Object[_0x2bf7e3(0x1c3)](_0x228d47)[_0x2bf7e3(0x1c6)],0x0)){this[_0x2bf7e3(0x176)](_0x3b4c3b[_0x2bf7e3(0x1c1)],_0x228d47);return;}this['logSituation'](_0x228d47[_0x2bf7e3(0x1b9)],_0x228d47[_0x2bf7e3(0x1ae)][_0x2bf7e3(0x175)](_0x3b4c3b[_0x2bf7e3(0x1c4)],_0x92da5a));}static async['reportSessionLinkingIssue'](){const _0x58b610=a57_0x54458a,_0x3d82a4={};_0x3d82a4[_0x58b610(0x170)]='Session\x20Linking\x20Issue',_0x3d82a4['XPCBl']=function(_0x257859,_0x3f7140){return _0x257859===_0x3f7140;},_0x3d82a4[_0x58b610(0x1b4)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x1d7174=_0x3d82a4,_0x448fad=await this[_0x58b610(0x1b8)](_0x1d7174[_0x58b610(0x170)]);if(!_0x448fad||_0x1d7174['XPCBl'](Object['keys'](_0x448fad)[_0x58b610(0x1c6)],0x0)){this[_0x58b610(0x176)](_0x1d7174[_0x58b610(0x1b4)],_0x448fad);return;}this[_0x58b610(0x1a3)](_0x448fad[_0x58b610(0x1b9)],_0x448fad['errorMessage']);}static async[a57_0x54458a(0x1a0)](){const _0x19efdd=a57_0x54458a,_0x8c713f={};_0x8c713f[_0x19efdd(0x1b0)]='browserstack\x20cloud\x20not\x20reachable',_0x8c713f[_0x19efdd(0x19b)]=function(_0x1f853c,_0xdeb421){return _0x1f853c===_0xdeb421;},_0x8c713f['BjIpA']=_0x19efdd(0x1c9);const _0x38d07d=_0x8c713f,_0x5f154a=await this[_0x19efdd(0x1b8)](_0x38d07d['XeQKr']);if(!_0x5f154a||_0x38d07d['FxkVM'](Object[_0x19efdd(0x1c3)](_0x5f154a)['length'],0x0)){this[_0x19efdd(0x176)](_0x38d07d[_0x19efdd(0x1ab)],_0x5f154a);return;}this[_0x19efdd(0x1a3)](_0x5f154a['errorCode'],_0x5f154a[_0x19efdd(0x1ae)]);}static async[a57_0x54458a(0x1c8)](){const _0x497ec2=a57_0x54458a,_0x3f2e76={};_0x3f2e76[_0x497ec2(0x193)]=_0x497ec2(0x1a2),_0x3f2e76[_0x497ec2(0x1a8)]=function(_0x3e3c25,_0x1a842e){return _0x3e3c25===_0x1a842e;},_0x3f2e76[_0x497ec2(0x179)]=_0x497ec2(0x174);const _0x23862f=_0x3f2e76,_0x2b18be=await this['getErrorDetails'](_0x23862f['dZGGz']);if(!_0x2b18be||_0x23862f[_0x497ec2(0x1a8)](Object[_0x497ec2(0x1c3)](_0x2b18be)[_0x497ec2(0x1c6)],0x0)){this[_0x497ec2(0x176)](_0x23862f[_0x497ec2(0x179)],_0x2b18be);return;}this[_0x497ec2(0x1a3)](_0x2b18be[_0x497ec2(0x1b9)],_0x2b18be[_0x497ec2(0x1ae)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x5c50f0=a57_0x54458a,_0x586953={};_0x586953[_0x5c50f0(0x184)]=_0x5c50f0(0x185),_0x586953[_0x5c50f0(0x16c)]=function(_0x5a6b32,_0x93ab11){return _0x5a6b32===_0x93ab11;},_0x586953['GHonv']=_0x5c50f0(0x1b3);const _0x511e1a=_0x586953,_0x52fdd1=constants[_0x5c50f0(0x19c)][_0x511e1a['jGrbu']];if(!_0x52fdd1||_0x511e1a[_0x5c50f0(0x16c)](Object[_0x5c50f0(0x1c3)](_0x52fdd1)[_0x5c50f0(0x1c6)],0x0)){this[_0x5c50f0(0x176)](_0x511e1a['GHonv'],_0x52fdd1);return;}this[_0x5c50f0(0x18d)][_0x5c50f0(0x17c)](_0x52fdd1[0x0]),this[_0x5c50f0(0x1a3)](_0x52fdd1[0x0],_0x52fdd1[0x1]);}static async['reportConflictingEnvVarIssue'](_0x24cabd){const _0x601783=a57_0x54458a,_0x10fb3d={};_0x10fb3d['DoHiq']=_0x601783(0x198),_0x10fb3d['VSnfg']=function(_0x248bc8,_0x51c4e7){return _0x248bc8===_0x51c4e7;},_0x10fb3d[_0x601783(0x1b5)]=_0x601783(0x1b2),_0x10fb3d['JrbVj']='{ENV_VAR}';const _0x15bfaf=_0x10fb3d,_0x57e964=await this[_0x601783(0x1b8)](_0x15bfaf[_0x601783(0x17f)]);if(!_0x57e964||_0x15bfaf[_0x601783(0x187)](Object[_0x601783(0x1c3)](_0x57e964)[_0x601783(0x1c6)],0x0)){this[_0x601783(0x176)](_0x15bfaf[_0x601783(0x1b5)],_0x57e964);return;}const _0x4a9361=_0x57e964[_0x601783(0x1ae)][_0x601783(0x175)](_0x15bfaf[_0x601783(0x16e)],_0x24cabd);this[_0x601783(0x1a3)](_0x57e964[_0x601783(0x1b9)],_0x4a9361);}static async['reportFinalDetectionState'](){const _0x436e24=a57_0x54458a,_0xb9c495={};_0xb9c495[_0x436e24(0x182)]=function(_0x3a2201,_0x371831){return _0x3a2201>_0x371831;},_0xb9c495[_0x436e24(0x1a1)]=function(_0x840808,_0x591d1c){return _0x840808>_0x591d1c;},_0xb9c495[_0x436e24(0x188)]=_0x436e24(0x17e),_0xb9c495['ArSsG']=_0x436e24(0x19f);const _0xb8709f=_0xb9c495,_0x386426=await this[_0x436e24(0x199)](),_0x4b899e=this[_0x436e24(0x1c0)](_0x386426),_0x4d1541=Array[_0x436e24(0x178)](_0x386426[_0x436e24(0x19e)])?_0x386426[_0x436e24(0x19e)]:[],_0x5350b0=_0xb8709f['AOiQn'](this['errorCodesOccurredWhenCLINotRunning']['size'],0x0)?Array['from'](this[_0x436e24(0x18d)]):[],_0x58de03=new Set([..._0x4d1541,..._0x4b899e,..._0x5350b0]),_0x2a2336=Array[_0x436e24(0x192)](_0x58de03);if(_0xb8709f[_0x436e24(0x1a1)](_0x2a2336['length'],0x0)){const _0x2b5f94=_0x386426['finalErrorMessage'][_0x436e24(0x175)](_0xb8709f['VljQv'],_0x2a2336[_0x436e24(0x169)](',\x20'))[_0x436e24(0x175)](_0xb8709f[_0x436e24(0x180)],_0x386426['documentationLink']);logger[_0x436e24(0x1c7)](_0x2b5f94),this[_0x436e24(0x16a)]=_0x2a2336;}}}function a57_0x2b01(_0x50cb0d,_0x572094){const _0x118e5e=a57_0x118e();return a57_0x2b01=function(_0x2b01da,_0x1b4cb0){_0x2b01da=_0x2b01da-0x164;let _0x300f2e=_0x118e5e[_0x2b01da];return _0x300f2e;},a57_0x2b01(_0x50cb0d,_0x572094);}module[a57_0x54458a(0x17a)]=ClientTroubleShootingService;