browserstack-node-sdk 1.56.0 → 1.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) 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/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/globals.js +1 -1
  161. package/src/helpers/helper.js +1 -1
  162. package/src/helpers/logger.js +1 -1
  163. package/src/helpers/metadata.js +1 -1
  164. package/src/helpers/patchHelper.js +1 -1
  165. package/src/helpers/patchHelpers.js +1 -1
  166. package/src/helpers/percy/Percy.js +1 -1
  167. package/src/helpers/percy/PercyBinary.js +1 -1
  168. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  169. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  170. package/src/helpers/percy/PercySDK.js +1 -1
  171. package/src/helpers/percy/index.js +1 -1
  172. package/src/helpers/percy/utils.js +1 -1
  173. package/src/helpers/performance/constants.js +1 -1
  174. package/src/helpers/performance/performance-tester.js +1 -1
  175. package/src/helpers/playwright-helper.js +1 -1
  176. package/src/helpers/processHelper.js +1 -1
  177. package/src/helpers/puppeteer-helper.js +1 -1
  178. package/src/helpers/request-spy.js +1 -1
  179. package/src/helpers/setKeepAlive.js +1 -1
  180. package/src/helpers/stackFrameUtils.js +1 -1
  181. package/src/helpers/test-observability/constants.js +1 -1
  182. package/src/helpers/test-observability/error-handler.js +1 -1
  183. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  184. package/src/helpers/test-observability/sessionHandler.js +1 -1
  185. package/src/helpers/test-observability/utils.js +1 -1
  186. package/src/helpers/test-orchestration/constants.js +1 -1
  187. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  188. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  189. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  190. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  191. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  192. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  193. package/src/helpers/testhub/constants.js +1 -1
  194. package/src/helpers/testhub/testhubHandler.js +1 -1
  195. package/src/helpers/testhub/utils.js +1 -1
  196. package/src/helpers/timeoutPromise.js +1 -1
  197. package/src/helpers/utilities.js +1 -1
  198. package/src/helpers/w3cMapping.js +1 -1
  199. package/src/hubAllocationMethods.js +1 -1
  200. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a53_0x506eed=a53_0x57cd;function a53_0x57cd(_0x31a239,_0x49affe){const _0x1922f0=a53_0x1922();return a53_0x57cd=function(_0x57cd23,_0x1d0388){_0x57cd23=_0x57cd23-0x1ee;let _0x58b4b2=_0x1922f0[_0x57cd23];return _0x58b4b2;},a53_0x57cd(_0x31a239,_0x49affe);}(function(_0x1e43fc,_0x16b931){const _0x2dc74f=a53_0x57cd,_0x3700c8=_0x1e43fc();while(!![]){try{const _0x460804=-parseInt(_0x2dc74f(0x206))/0x1*(-parseInt(_0x2dc74f(0x21f))/0x2)+parseInt(_0x2dc74f(0x24a))/0x3*(-parseInt(_0x2dc74f(0x1f6))/0x4)+-parseInt(_0x2dc74f(0x1fd))/0x5*(parseInt(_0x2dc74f(0x219))/0x6)+parseInt(_0x2dc74f(0x21a))/0x7*(parseInt(_0x2dc74f(0x210))/0x8)+parseInt(_0x2dc74f(0x21d))/0x9+parseInt(_0x2dc74f(0x1ef))/0xa+-parseInt(_0x2dc74f(0x1f5))/0xb;if(_0x460804===_0x16b931)break;else _0x3700c8['push'](_0x3700c8['shift']());}catch(_0x901baa){_0x3700c8['push'](_0x3700c8['shift']());}}}(a53_0x1922,0x55cf4));const path=require(a53_0x506eed(0x1fb)),url=require(a53_0x506eed(0x23f)),util=require(a53_0x506eed(0x22e)),{nestedKeyValue,isFalse}=require(a53_0x506eed(0x213)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a53_0x506eed(0x21c))[a53_0x506eed(0x1f2)],constants=require('../utils/constants'),BrowserstackCLI=require(a53_0x506eed(0x20a)),AutomationFrameworkState=require(a53_0x506eed(0x22a)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0x12b3cd=>{const _0x5c4048=a53_0x506eed,_0x788040={'LCTNQ':'chrome','WBXoC':function(_0x14bd93,_0x2ad0ff){return _0x14bd93(_0x2ad0ff);}};try{const _0x15b8e0=url[_0x5c4048(0x234)](_0x12b3cd),_0x44876d=new URLSearchParams(_0x15b8e0[_0x5c4048(0x203)]),_0x5ca5a5=Object[_0x5c4048(0x235)](_0x44876d[_0x5c4048(0x20b)]()),_0x1a102f=JSON[_0x5c4048(0x234)](_0x5ca5a5[_0x5c4048(0x1f3)]);if(_0x1a102f&&(_0x1a102f[_0x5c4048(0x238)]||_0x1a102f['browserName']))return _0x1a102f[_0x5c4048(0x238)]||_0x1a102f[_0x5c4048(0x22f)];return _0x788040[_0x5c4048(0x209)];}catch(_0x1e4dfc){_0x788040[_0x5c4048(0x244)](debug,_0x5c4048(0x218)+_0x1e4dfc[_0x5c4048(0x233)]());}},getCloudProviderFromWsEndpoint=_0x5dd609=>{const _0xf9e286=a53_0x506eed,_0x5cec7c={};_0x5cec7c[_0xf9e286(0x1f1)]=_0xf9e286(0x23b),_0x5cec7c['xCzLW']='unknown_grid';const _0x4a7ec1=_0x5cec7c;if(_0x5dd609[_0xf9e286(0x1f8)](constants[_0xf9e286(0x223)])||_0x5dd609[_0xf9e286(0x1f8)](constants[_0xf9e286(0x225)]))return _0x4a7ec1['VnzCP'];return _0x4a7ec1[_0xf9e286(0x208)];},a53_0x16017c={};a53_0x16017c[a53_0x506eed(0x1ee)]=undefined,a53_0x16017c[a53_0x506eed(0x22c)]=undefined,a53_0x16017c[a53_0x506eed(0x238)]=undefined,a53_0x16017c['browser_version']=undefined,a53_0x16017c[a53_0x506eed(0x212)]=undefined,a53_0x16017c[a53_0x506eed(0x21b)]=undefined,a53_0x16017c[a53_0x506eed(0x23c)]=undefined,a53_0x16017c[a53_0x506eed(0x1f4)]={};class PuppeteerSessionDetails{static [a53_0x506eed(0x246)]=a53_0x16017c;constructor(){const _0x17d482=a53_0x506eed,_0x355376={};_0x355376[_0x17d482(0x1fc)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0xeb2861=_0x355376;throw new Error(_0xeb2861[_0x17d482(0x1fc)]);}static [a53_0x506eed(0x214)]=null;static async[a53_0x506eed(0x226)](_0x27f35e,_0x3c7f04){const _0xc57c5e=a53_0x506eed,_0x5e6139={'jQHvF':_0xc57c5e(0x20e),'wMoXK':function(_0x28a391,_0x3cdc2d){return _0x28a391===_0x3cdc2d;},'PHAjP':_0xc57c5e(0x1fa),'IvMnx':'local_grid','UHxnn':function(_0x4eed09,_0x4748d9){return _0x4eed09(_0x4748d9);},'eofdv':_0xc57c5e(0x23b),'UWWgN':_0xc57c5e(0x23e),'IlnON':_0xc57c5e(0x201),'DWgLs':function(_0xf620cb,_0x472644){return _0xf620cb(_0x472644);},'LVWpz':function(_0x1f9c6c){return _0x1f9c6c();}};try{let _0x45e494=_0x5e6139[_0xc57c5e(0x202)],_0x12143d=null;_0x27f35e&&_0x5e6139[_0xc57c5e(0x227)](typeof _0x27f35e['version'],_0x5e6139['PHAjP'])&&(_0x12143d=await _0x27f35e[_0xc57c5e(0x237)]());let _0x39c912=null,_0x548ee3=null,_0x3e2841=null,_0x3b5246=_0x5e6139[_0xc57c5e(0x20f)];if(_0x3c7f04){_0x3b5246=_0x5e6139[_0xc57c5e(0x1ff)](getCloudProviderFromWsEndpoint,_0x3c7f04);if(_0x5e6139[_0xc57c5e(0x227)](_0x3b5246,_0x5e6139[_0xc57c5e(0x21e)]))_0x3e2841=constants['ATS_WSS_URL_REGEX']?constants[_0xc57c5e(0x220)][_0xc57c5e(0x240)](_0x3c7f04)?_0x5e6139[_0xc57c5e(0x211)]:_0x5e6139[_0xc57c5e(0x200)]:_0x5e6139[_0xc57c5e(0x200)],_0x45e494=_0x5e6139['DWgLs'](getBrowserFromWSEndpoint,_0x3c7f04)||_0x45e494,_0x39c912=this[_0xc57c5e(0x246)][_0xc57c5e(0x212)],_0x548ee3=this[_0xc57c5e(0x246)][_0xc57c5e(0x21b)];else{const _0x5b7658=await _0x5e6139['LVWpz'](getPlatformDetails);_0x39c912=_0x5b7658[_0xc57c5e(0x221)],_0x548ee3=_0x5b7658[_0xc57c5e(0x217)];}}else{const _0x348e5b=await _0x5e6139[_0xc57c5e(0x239)](getPlatformDetails);_0x39c912=_0x348e5b[_0xc57c5e(0x221)],_0x548ee3=_0x348e5b['platformVersion'];}const _0x30e833={};_0x30e833[_0xc57c5e(0x238)]=_0x45e494,_0x30e833[_0xc57c5e(0x207)]=_0x12143d,_0x30e833['capabilities']={},_0x30e833[_0xc57c5e(0x212)]=_0x39c912,_0x30e833[_0xc57c5e(0x21b)]=_0x548ee3,_0x30e833[_0xc57c5e(0x23c)]=_0x3e2841;const _0x39f3ad=_0x30e833,_0x44a983={};_0x44a983[_0xc57c5e(0x1ee)]=_0x3b5246,this['currentSessionDetails']=Object['assign']({},this[_0xc57c5e(0x246)],_0x44a983,_0x39f3ad);}catch(_0x2bbc9c){_0x5e6139['UHxnn'](debug,_0xc57c5e(0x228)+util[_0xc57c5e(0x248)](_0x2bbc9c)),this[_0xc57c5e(0x214)]=_0x2bbc9c[_0xc57c5e(0x233)]();}}static[a53_0x506eed(0x24c)](_0x1fd441){const _0x1cc61b=a53_0x506eed,_0x59bdda={'lqORz':function(_0x59b6f4,_0x5974ba){return _0x59b6f4===_0x5974ba;},'NweNj':_0x1cc61b(0x241),'xgKCX':function(_0x3a5c9d,_0x379703){return _0x3a5c9d(_0x379703);},'eYhDY':function(_0x31be71,_0x21bd02){return _0x31be71===_0x21bd02;},'vuZcS':function(_0x1cc7d5,_0x53c79e){return _0x1cc7d5(_0x53c79e);},'fbbLM':_0x1cc61b(0x24b),'YOSUV':function(_0x2b1e10,_0x5ab1d4){return _0x2b1e10(_0x5ab1d4);}},_0x550702=this;try{const _0x5431ad=_0x1fd441['_connection']||_0x1fd441['connection'];if(!_0x5431ad||_0x5431ad['_bstackPatched'])return;const _0x3e587a=_0x5431ad[_0x1cc61b(0x247)];_0x5431ad['onmessage']=function(_0x1ddde7){const _0x436425=_0x1cc61b;try{const _0x583595=_0x59bdda['lqORz'](typeof _0x1ddde7,_0x59bdda[_0x436425(0x236)])?JSON[_0x436425(0x234)](_0x1ddde7):_0x1ddde7,_0x3b5440=_0x583595?.[_0x436425(0x23a)]||_0x583595?.[_0x436425(0x230)]||_0x583595?.[_0x436425(0x22d)]?.['bsParams']||_0x583595?.[_0x436425(0x22d)]?.[_0x436425(0x23a)]||_0x583595?.['result']?.[_0x436425(0x230)]||_0x583595?.['result']?.[_0x436425(0x23a)];if(_0x3b5440){if(BrowserstackCLI[_0x436425(0x20c)]()[_0x436425(0x215)]()){const _0x4227fc={};_0x4227fc[_0x436425(0x216)]=_0x583595,BrowserstackCLI[_0x436425(0x20c)]()[_0x436425(0x222)]()[_0x436425(0x23d)](AutomationFrameworkState[_0x436425(0x232)],HookState[_0x436425(0x242)],_0x4227fc);}else{const _0x3b0af0=_0x3b5440[_0x436425(0x1fe)],_0x1622de=_0x3b5440['platformDetails'];_0x1622de&&(_0x59bdda['xgKCX'](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON['stringify'](_0x1622de)),_0x550702[_0x436425(0x246)]['platform']=_0x1622de[_0x436425(0x221)],_0x550702['currentSessionDetails'][_0x436425(0x21b)]=_0x1622de[_0x436425(0x217)]),_0x3b0af0&&(_0x59bdda[_0x436425(0x205)](debug,_0x436425(0x231)+_0x3b0af0),_0x550702[_0x436425(0x246)][_0x436425(0x22c)]=_0x3b0af0);}_0x59bdda[_0x436425(0x249)](typeof _0x1ddde7,_0x59bdda['NweNj'])&&(delete _0x583595['bStackParams'],delete _0x583595[_0x436425(0x230)],_0x583595[_0x436425(0x22d)]&&(delete _0x583595['params'][_0x436425(0x230)],delete _0x583595[_0x436425(0x22d)]['bStackParams']),_0x583595['result']&&(delete _0x583595[_0x436425(0x22b)][_0x436425(0x230)],delete _0x583595[_0x436425(0x22b)]['bStackParams']));}}catch(_0x2ada77){_0x59bdda[_0x436425(0x204)](debug,_0x436425(0x1f9)+_0x2ada77['message']);}return _0x3e587a?.[_0x436425(0x224)](this,arguments);},_0x5431ad[_0x1cc61b(0x243)]=!![],logger[_0x1cc61b(0x245)](_0x59bdda['fbbLM']);}catch(_0x599b03){_0x59bdda[_0x1cc61b(0x1f0)](debug,_0x1cc61b(0x1f7)+util[_0x1cc61b(0x248)](_0x599b03)),_0x550702[_0x1cc61b(0x214)]=_0x599b03[_0x1cc61b(0x233)]();}}static[a53_0x506eed(0x20d)](){const _0x2a6c25=a53_0x506eed;return this[_0x2a6c25(0x246)];}}function a53_0x1922(){const _0x4d65ae=['automate','jQHvF','query','vuZcS','xgKCX','1wwHGFX','browser_version','xCzLW','LCTNQ','../v2/browserstackCLI','entries','getInstance','getDetails','chrome','IvMnx','8vJFQeU','UWWgN','platform','../../helpers/helper','sessionError','isRunning','message','platformVersion','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','1326jiLPWn','2207933JOyIUq','platform_version','../../helpers/logger','5228856YtuPPz','eofdv','1077598BmrVco','ATS_WSS_URL_REGEX','platformName','getAutomationFramework','BSTACK_URL','apply','BSTACK_ATS_URL','setupBrowserDetails','wMoXK','Error\x20in\x20setupBrowserDetails:\x20','exports','../v2/state/automationFrameworkState.js','result','bsSessionId','params','util','browserName','bsParams','Setting\x20session\x20id\x20received\x20from\x20BS\x20','PLAYWRIGHT_DISPATCH','toString','parse','fromEntries','NweNj','version','browser','LVWpz','bStackParams','browserstack','product','trackEvent','turboscale','url','test','string','POST','_bstackPatched','WBXoC','debug','currentSessionDetails','onmessage','format','eYhDY','4893axQNzI','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','patchConnection','cloudProvider','2947640TDqghP','YOSUV','VnzCP','winstonLogger','caps','capabilities','9215085aCQLlY','672seCfHT','Error\x20in\x20patchConnection:\x20','includes','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','function','path','DJWfn','6035iVAjwp','sessionId','UHxnn','IlnON'];a53_0x1922=function(){return _0x4d65ae;};return a53_0x1922();}module[a53_0x506eed(0x229)]=PuppeteerSessionDetails;
1
+ const a53_0x5dda6c=a53_0x1a58;function a53_0x3eea(){const _0x3470af=['stringify','platformVersion','toString','../../helpers/helper','bsSessionId','ATS_WSS_URL_REGEX','../v2/browserstackCLI','function','IxgPa','JzxZE','capabilities','PLAYWRIGHT_DISPATCH','ciaeU','WHkqs','wRAzZ','118484Yurbbq','bStackParams','2299712ojdztb','unknown_grid','bsParams','5OLMJzq','browser_version','version','onmessage','getInstance','browser','apply','string','qyYKm','entries','RiBMn','query','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','caps','../utils/constants','browserName','Error\x20in\x20setupBrowserDetails:\x20','util','currentSessionDetails','naqMz','3563468QtHcMz','_bstackPatched','KHkew','Error\x20in\x20patchConnection:\x20','yfhXf','getAutomationFramework','platform','xSRNQ','cQGBm','trackEvent','FvpYx','parse','fromEntries','kaEWW','message','turboscale','cloudProvider','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','local_grid','test','patchConnection','winstonLogger','OSslg','debug','../../helpers/test-observability/utils','2099181tPfhNs','xQwOm','sessionId','format','EZxoC','sessionError','BSTACK_ATS_URL','connection','POST','zwbsm','browserstack','IJuRP','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','58185rNgYJA','isRunning','6MZthJz','../v2/state/hookState.js','1016isUhJK','15498200QIcYZW','GZTRR','platformName','result','platform_version','chrome','3784053aDTSlR','includes','setupBrowserDetails','BSTACK_URL','product','params','Setting\x20session\x20id\x20received\x20from\x20BS\x20'];a53_0x3eea=function(){return _0x3470af;};return a53_0x3eea();}(function(_0x2ed4e6,_0x4ba414){const _0x1bd455=a53_0x1a58,_0x30ed0f=_0x2ed4e6();while(!![]){try{const _0x56e89d=parseInt(_0x1bd455(0xb2))/0x1+-parseInt(_0x1bd455(0xb4))/0x2+-parseInt(_0x1bd455(0xe4))/0x3+-parseInt(_0x1bd455(0xcb))/0x4*(-parseInt(_0x1bd455(0xb7))/0x5)+parseInt(_0x1bd455(0xf3))/0x6*(-parseInt(_0x1bd455(0xfc))/0x7)+parseInt(_0x1bd455(0xf5))/0x8*(parseInt(_0x1bd455(0xf1))/0x9)+parseInt(_0x1bd455(0xf6))/0xa;if(_0x56e89d===_0x4ba414)break;else _0x30ed0f['push'](_0x30ed0f['shift']());}catch(_0x1b6e7f){_0x30ed0f['push'](_0x30ed0f['shift']());}}}(a53_0x3eea,0xf1b70));const path=require('path'),url=require('url'),util=require(a53_0x5dda6c(0xc8)),{nestedKeyValue,isFalse}=require(a53_0x5dda6c(0x106)),{debug,getPlatformDetails}=require(a53_0x5dda6c(0xe3)),logger=require('../../helpers/logger')[a53_0x5dda6c(0xe0)],constants=require(a53_0x5dda6c(0xc5)),BrowserstackCLI=require(a53_0x5dda6c(0x109)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a53_0x5dda6c(0xf4)),getBrowserFromWSEndpoint=_0x247836=>{const _0x284a3e=a53_0x5dda6c,_0x25f6c9={'naqMz':_0x284a3e(0xfb),'FvpYx':function(_0x5ce9b1,_0x5d855c){return _0x5ce9b1(_0x5d855c);}};try{const _0x4f22e0=url[_0x284a3e(0xd6)](_0x247836),_0x588d9d=new URLSearchParams(_0x4f22e0[_0x284a3e(0xc2)]),_0xc73403=Object[_0x284a3e(0xd7)](_0x588d9d[_0x284a3e(0xc0)]()),_0x16cb4c=JSON[_0x284a3e(0xd6)](_0xc73403[_0x284a3e(0xc4)]);if(_0x16cb4c&&(_0x16cb4c[_0x284a3e(0xbc)]||_0x16cb4c[_0x284a3e(0xc6)]))return _0x16cb4c[_0x284a3e(0xbc)]||_0x16cb4c[_0x284a3e(0xc6)];return _0x25f6c9[_0x284a3e(0xca)];}catch(_0x476c2c){_0x25f6c9[_0x284a3e(0xd5)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x476c2c[_0x284a3e(0x105)]());}},getCloudProviderFromWsEndpoint=_0x3522c6=>{const _0x4bd0a4=a53_0x5dda6c,_0xab9209={};_0xab9209[_0x4bd0a4(0xef)]=_0x4bd0a4(0xee),_0xab9209[_0x4bd0a4(0xe8)]=_0x4bd0a4(0xb5);const _0x4d05c9=_0xab9209;if(_0x3522c6[_0x4bd0a4(0xfd)](constants[_0x4bd0a4(0xff)])||_0x3522c6[_0x4bd0a4(0xfd)](constants[_0x4bd0a4(0xea)]))return _0x4d05c9['IJuRP'];return _0x4d05c9[_0x4bd0a4(0xe8)];},a53_0x1fa778={};a53_0x1fa778[a53_0x5dda6c(0xdb)]=undefined,a53_0x1fa778[a53_0x5dda6c(0x107)]=undefined,a53_0x1fa778['browser']=undefined,a53_0x1fa778[a53_0x5dda6c(0xb8)]=undefined,a53_0x1fa778['platform']=undefined,a53_0x1fa778[a53_0x5dda6c(0xfa)]=undefined,a53_0x1fa778[a53_0x5dda6c(0x100)]=undefined,a53_0x1fa778[a53_0x5dda6c(0xad)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a53_0x1fa778;constructor(){const _0x5b6889=a53_0x5dda6c,_0x1e46ab={};_0x1e46ab['wRAzZ']=_0x5b6889(0xdc);const _0x229e83=_0x1e46ab;throw new Error(_0x229e83[_0x5b6889(0xb1)]);}static [a53_0x5dda6c(0xe9)]=null;static async[a53_0x5dda6c(0xfe)](_0x10cbf1,_0x130af9){const _0x1e85da=a53_0x5dda6c,_0x25aa8b={'JzxZE':_0x1e85da(0xfb),'xSRNQ':function(_0x5f51bf,_0x18fe6c){return _0x5f51bf===_0x18fe6c;},'VkTiL':_0x1e85da(0x10a),'NeGEg':_0x1e85da(0xdd),'peJXK':function(_0x5a8f55,_0x483e22){return _0x5a8f55(_0x483e22);},'zwbsm':'browserstack','GZTRR':_0x1e85da(0xda),'KHkew':'automate','BdCTo':function(_0x52f593,_0x2de51d){return _0x52f593(_0x2de51d);},'OSslg':function(_0x47aafb){return _0x47aafb();},'RiBMn':function(_0x187212){return _0x187212();},'TGTct':function(_0x5562c3,_0x18afab){return _0x5562c3(_0x18afab);}};try{let _0x2467a2=_0x25aa8b[_0x1e85da(0xac)],_0x2d90cb=null;_0x10cbf1&&_0x25aa8b[_0x1e85da(0xd2)](typeof _0x10cbf1[_0x1e85da(0xb9)],_0x25aa8b['VkTiL'])&&(_0x2d90cb=await _0x10cbf1[_0x1e85da(0xb9)]());let _0x355b6d=null,_0x5f060e=null,_0x4b5e19=null,_0x25f445=_0x25aa8b['NeGEg'];if(_0x130af9){_0x25f445=_0x25aa8b['peJXK'](getCloudProviderFromWsEndpoint,_0x130af9);if(_0x25aa8b[_0x1e85da(0xd2)](_0x25f445,_0x25aa8b[_0x1e85da(0xed)]))_0x4b5e19=constants[_0x1e85da(0x108)]?constants[_0x1e85da(0x108)][_0x1e85da(0xde)](_0x130af9)?_0x25aa8b[_0x1e85da(0xf7)]:_0x25aa8b[_0x1e85da(0xcd)]:_0x25aa8b['KHkew'],_0x2467a2=_0x25aa8b['BdCTo'](getBrowserFromWSEndpoint,_0x130af9)||_0x2467a2,_0x355b6d=this[_0x1e85da(0xc9)]['platform'],_0x5f060e=this[_0x1e85da(0xc9)][_0x1e85da(0xfa)];else{const _0x275877=await _0x25aa8b[_0x1e85da(0xe1)](getPlatformDetails);_0x355b6d=_0x275877[_0x1e85da(0xf8)],_0x5f060e=_0x275877['platformVersion'];}}else{const _0x400c7e=await _0x25aa8b[_0x1e85da(0xc1)](getPlatformDetails);_0x355b6d=_0x400c7e['platformName'],_0x5f060e=_0x400c7e[_0x1e85da(0x104)];}const _0x30c6ca={};_0x30c6ca[_0x1e85da(0xbc)]=_0x2467a2,_0x30c6ca['browser_version']=_0x2d90cb,_0x30c6ca[_0x1e85da(0xad)]={},_0x30c6ca['platform']=_0x355b6d,_0x30c6ca[_0x1e85da(0xfa)]=_0x5f060e,_0x30c6ca['product']=_0x4b5e19;const _0x24150b=_0x30c6ca,_0x25b49d={};_0x25b49d['cloudProvider']=_0x25f445,this[_0x1e85da(0xc9)]=Object['assign']({},this['currentSessionDetails'],_0x25b49d,_0x24150b);}catch(_0x4c050d){_0x25aa8b['TGTct'](debug,_0x1e85da(0xc7)+util[_0x1e85da(0xe7)](_0x4c050d)),this['sessionError']=_0x4c050d[_0x1e85da(0x105)]();}}static[a53_0x5dda6c(0xdf)](_0x14ec8c){const _0x576b28=a53_0x5dda6c,_0x1f97cc={'kaEWW':function(_0xbf16c8,_0x2b5656){return _0xbf16c8===_0x2b5656;},'cQGBm':_0x576b28(0xbe),'qyYKm':function(_0x1f9e29,_0x2d2c02){return _0x1f9e29(_0x2d2c02);},'IxgPa':function(_0x308b40,_0x32061e){return _0x308b40(_0x32061e);},'xQwOm':function(_0x4a2832,_0x3f33a6){return _0x4a2832===_0x3f33a6;},'ciaeU':function(_0x5bbb09,_0x3ac190){return _0x5bbb09(_0x3ac190);},'WHkqs':_0x576b28(0xc3),'yfhXf':function(_0x501c4f,_0x5def4c){return _0x501c4f(_0x5def4c);}},_0x28988b=this;try{const _0x4af80a=_0x14ec8c['_connection']||_0x14ec8c[_0x576b28(0xeb)];if(!_0x4af80a||_0x4af80a['_bstackPatched'])return;const _0x12a680=_0x4af80a['onmessage'];_0x4af80a[_0x576b28(0xba)]=function(_0x5c9e6e){const _0x31e148=_0x576b28;try{const _0x2bfdd1=_0x1f97cc[_0x31e148(0xd8)](typeof _0x5c9e6e,_0x1f97cc[_0x31e148(0xd3)])?JSON['parse'](_0x5c9e6e):_0x5c9e6e,_0x3854c1=_0x2bfdd1?.['bStackParams']||_0x2bfdd1?.[_0x31e148(0xb6)]||_0x2bfdd1?.[_0x31e148(0x101)]?.[_0x31e148(0xb6)]||_0x2bfdd1?.[_0x31e148(0x101)]?.['bStackParams']||_0x2bfdd1?.[_0x31e148(0xf9)]?.[_0x31e148(0xb6)]||_0x2bfdd1?.[_0x31e148(0xf9)]?.[_0x31e148(0xb3)];if(_0x3854c1){if(BrowserstackCLI[_0x31e148(0xbb)]()[_0x31e148(0xf2)]()){const _0x3b7ede={};_0x3b7ede[_0x31e148(0xd9)]=_0x2bfdd1,BrowserstackCLI['getInstance']()[_0x31e148(0xd0)]()[_0x31e148(0xd4)](AutomationFrameworkState[_0x31e148(0xae)],HookState[_0x31e148(0xec)],_0x3b7ede);}else{const _0x5b8d68=_0x3854c1[_0x31e148(0xe6)],_0x190518=_0x3854c1['platformDetails'];_0x190518&&(_0x1f97cc[_0x31e148(0xbf)](debug,_0x31e148(0xf0)+JSON[_0x31e148(0x103)](_0x190518)),_0x28988b[_0x31e148(0xc9)][_0x31e148(0xd1)]=_0x190518[_0x31e148(0xf8)],_0x28988b['currentSessionDetails'][_0x31e148(0xfa)]=_0x190518[_0x31e148(0x104)]),_0x5b8d68&&(_0x1f97cc[_0x31e148(0xab)](debug,_0x31e148(0x102)+_0x5b8d68),_0x28988b[_0x31e148(0xc9)][_0x31e148(0x107)]=_0x5b8d68);}_0x1f97cc[_0x31e148(0xe5)](typeof _0x5c9e6e,_0x1f97cc['cQGBm'])&&(delete _0x2bfdd1['bStackParams'],delete _0x2bfdd1[_0x31e148(0xb6)],_0x2bfdd1[_0x31e148(0x101)]&&(delete _0x2bfdd1['params']['bsParams'],delete _0x2bfdd1[_0x31e148(0x101)][_0x31e148(0xb3)]),_0x2bfdd1[_0x31e148(0xf9)]&&(delete _0x2bfdd1['result'][_0x31e148(0xb6)],delete _0x2bfdd1[_0x31e148(0xf9)][_0x31e148(0xb3)]));}}catch(_0x125082){_0x1f97cc[_0x31e148(0xaf)](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x125082[_0x31e148(0xd9)]);}return _0x12a680?.[_0x31e148(0xbd)](this,arguments);},_0x4af80a[_0x576b28(0xcc)]=!![],logger[_0x576b28(0xe2)](_0x1f97cc[_0x576b28(0xb0)]);}catch(_0x38c734){_0x1f97cc[_0x576b28(0xcf)](debug,_0x576b28(0xce)+util[_0x576b28(0xe7)](_0x38c734)),_0x28988b[_0x576b28(0xe9)]=_0x38c734['toString']();}}static['getDetails'](){const _0x1c5747=a53_0x5dda6c;return this[_0x1c5747(0xc9)];}}function a53_0x1a58(_0x179290,_0x323a9e){const _0x3eeac7=a53_0x3eea();return a53_0x1a58=function(_0x1a58ba,_0x462b64){_0x1a58ba=_0x1a58ba-0xab;let _0x34ee1e=_0x3eeac7[_0x1a58ba];return _0x34ee1e;},a53_0x1a58(_0x179290,_0x323a9e);}module['exports']=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a54_0x16e26d=a54_0x1588;(function(_0x3ab89f,_0x2f9400){const _0x2f488a=a54_0x1588,_0x59c999=_0x3ab89f();while(!![]){try{const _0x13ac9e=-parseInt(_0x2f488a(0x1ee))/0x1*(-parseInt(_0x2f488a(0x1d7))/0x2)+-parseInt(_0x2f488a(0x1fd))/0x3*(parseInt(_0x2f488a(0x1dd))/0x4)+parseInt(_0x2f488a(0x1e9))/0x5+-parseInt(_0x2f488a(0x1f5))/0x6*(parseInt(_0x2f488a(0x1f3))/0x7)+-parseInt(_0x2f488a(0x1d0))/0x8*(-parseInt(_0x2f488a(0x1ef))/0x9)+-parseInt(_0x2f488a(0x1fa))/0xa*(-parseInt(_0x2f488a(0x1dc))/0xb)+-parseInt(_0x2f488a(0x1d5))/0xc*(parseInt(_0x2f488a(0x1e7))/0xd);if(_0x13ac9e===_0x2f9400)break;else _0x59c999['push'](_0x59c999['shift']());}catch(_0x497535){_0x59c999['push'](_0x59c999['shift']());}}}(a54_0x5b5a,0x38114));const {isTrue,isBrowserstackInfra}=require(a54_0x16e26d(0x1de)),setKeepAlive=require(a54_0x16e26d(0x1f9)),util=require(a54_0x16e26d(0x1ec)),logger=require(a54_0x16e26d(0x1e0))['winstonLogger'],{shouldProcessEventForTesthub}=require(a54_0x16e26d(0x1da)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x124ef3={};function a54_0x1588(_0x3042c6,_0x1feda4){const _0x5b5af2=a54_0x5b5a();return a54_0x1588=function(_0x158869,_0x1d124f){_0x158869=_0x158869-0x1cf;let _0x2e5386=_0x5b5af2[_0x158869];return _0x2e5386;},a54_0x1588(_0x3042c6,_0x1feda4);}function a54_0x5b5a(){const _0x3ed638=['36RfUEGP','BROWSERSTACK_PUPPETEER','env','initializePuppeteerPatching','193109QeTHkA','JEST','24denzaM','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','bootstrap','debug','../../helpers/setKeepAlive','1522460jQoxYt','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','PUPPETEER','1046220VDrMpA','__skipSessionName','skipSessionStatus','276984LZCsMU','puppeteer','true','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','397836qOOSOe','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','20882kaZHrs','getInstance','../utils/constants','../../helpers/testhub/utils','../v2/cliUtils','11dczQWH','4UmADsj','../../helpers/helper','format','../../helpers/logger','__workerDetails','skipSessionName','currentTest','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../v2/browserstackCLI','catch','39fDtQGp','o11ySyncDone','712335WIlQxh','../utils/puppeteer-patcher','jestConfig','util','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','34VlBqEI'];a54_0x5b5a=function(){return _0x3ed638;};return a54_0x5b5a();}a54_0x124ef3['workerInfo']=undefined,a54_0x124ef3[a54_0x16e26d(0x1e3)]={},a54_0x124ef3[a54_0x16e26d(0x1e8)]=![],a54_0x124ef3['pwPage']=null,a54_0x124ef3['isPageFixture']=![],a54_0x124ef3[a54_0x16e26d(0x1e3)]['id']=undefined,a54_0x124ef3[a54_0x16e26d(0x1e3)]['testInfo']=undefined;const workerDetails=a54_0x124ef3;global[a54_0x16e26d(0x1e1)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x16e26d(0x1fe)]=isTrue(global['jestConfig']?.[a54_0x16e26d(0x1e2)]),global['__skipSessionStatus']=isTrue(global[a54_0x16e26d(0x1eb)]?.[a54_0x16e26d(0x1cf)])):(global['__skipSessionName']=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a54_0x16e26d(0x1d1))||helper['getPackageVersion']('puppeteer-core');if(puppeteerVersion)try{logger['debug'](a54_0x16e26d(0x1d6)),puppeteerPatcher=require(a54_0x16e26d(0x1ea)),puppeteerPatcher[a54_0x16e26d(0x1f2)](global['jestConfig']),logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1f6));}catch(a54_0x5dffc6){logger['debug'](a54_0x16e26d(0x1d4)+util['format'](a54_0x5dffc6));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x16e26d(0x1e5)),CLIUtils=require(a54_0x16e26d(0x1db)),{FRAMEWORKS}=require(a54_0x16e26d(0x1d9));BrowserstackCLI[a54_0x16e26d(0x1d8)]()['isCliEnabled']()&&(logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1d3)),process[a54_0x16e26d(0x1f1)][a54_0x16e26d(0x1f0)]=a54_0x16e26d(0x1d2),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a54_0x16e26d(0x1f4)],FRAMEWORKS[a54_0x16e26d(0x1fc)]),BrowserstackCLI['getInstance']()[a54_0x16e26d(0x1f7)]()[a54_0x16e26d(0x1e6)](_0x4c07dc=>{const _0x4fa88d=a54_0x16e26d;logger[_0x4fa88d(0x1f8)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util['format'](_0x4c07dc));}));}catch(a54_0xb15bea){logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1ed)+util['format'](a54_0xb15bea));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x596aa2){logger['debug'](a54_0x16e26d(0x1fb)+util[a54_0x16e26d(0x1df)](a54_0x596aa2));}logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1e4));
1
+ const a54_0x4ff27d=a54_0x104d;(function(_0xca4f19,_0x16cd25){const _0x264091=a54_0x104d,_0x4346d4=_0xca4f19();while(!![]){try{const _0x59b92c=-parseInt(_0x264091(0x6c))/0x1*(-parseInt(_0x264091(0x82))/0x2)+-parseInt(_0x264091(0x8b))/0x3+parseInt(_0x264091(0x68))/0x4*(parseInt(_0x264091(0x94))/0x5)+parseInt(_0x264091(0x7a))/0x6+-parseInt(_0x264091(0x75))/0x7+parseInt(_0x264091(0x7d))/0x8+-parseInt(_0x264091(0x69))/0x9;if(_0x59b92c===_0x16cd25)break;else _0x4346d4['push'](_0x4346d4['shift']());}catch(_0x30ea27){_0x4346d4['push'](_0x4346d4['shift']());}}}(a54_0x3e3c,0xa14bb));const {isTrue,isBrowserstackInfra}=require(a54_0x4ff27d(0x83)),setKeepAlive=require(a54_0x4ff27d(0x71)),util=require(a54_0x4ff27d(0x84)),logger=require(a54_0x4ff27d(0x8a))[a54_0x4ff27d(0x70)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x20beaf={};a54_0x20beaf[a54_0x4ff27d(0x72)]=undefined,a54_0x20beaf[a54_0x4ff27d(0x6b)]={},a54_0x20beaf[a54_0x4ff27d(0x91)]=![],a54_0x20beaf[a54_0x4ff27d(0x85)]=null,a54_0x20beaf[a54_0x4ff27d(0x74)]=![],a54_0x20beaf[a54_0x4ff27d(0x6b)]['id']=undefined,a54_0x20beaf[a54_0x4ff27d(0x6b)]['testInfo']=undefined;const workerDetails=a54_0x20beaf;global[a54_0x4ff27d(0x73)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();function a54_0x3e3c(){const _0x554b0d=['2521842QQVIEf','jestConfig','__skipSessionStatus','puppeteer-core','BROWSERSTACK_PUPPETEER','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','o11ySyncDone','../v2/cliUtils','isCliEnabled','68015YoYGof','PUPPETEER','332PTBwnM','5265693OpkIxD','getPackageVersion','currentTest','2439aLDbiT','catch','../v2/browserstackCLI','bootstrap','winstonLogger','../../helpers/setKeepAlive','workerInfo','__workerDetails','isPageFixture','1106609DoQuCp','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','format','getInstance','182034AAisNQ','puppeteer','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','3236608huQszE','debug','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','../utils/puppeteer-patcher','558ktKaVt','../../helpers/helper','util','pwPage','setFrameworkDetail','__skipSessionName','../utils/constants','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../../helpers/logger'];a54_0x3e3c=function(){return _0x554b0d;};return a54_0x3e3c();}if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x4ff27d(0x87)]=isTrue(global[a54_0x4ff27d(0x8c)]?.['skipSessionName']),global[a54_0x4ff27d(0x8d)]=isTrue(global[a54_0x4ff27d(0x8c)]?.['skipSessionStatus'])):(global[a54_0x4ff27d(0x87)]=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a54_0x4ff27d(0x7b))||helper[a54_0x4ff27d(0x6a)](a54_0x4ff27d(0x8e));if(puppeteerVersion)try{logger['debug'](a54_0x4ff27d(0x90)),puppeteerPatcher=require(a54_0x4ff27d(0x81)),puppeteerPatcher[a54_0x4ff27d(0x7f)](global[a54_0x4ff27d(0x8c)]),logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x77));}catch(a54_0xa25738){logger[a54_0x4ff27d(0x7e)]('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util[a54_0x4ff27d(0x78)](a54_0xa25738));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x4ff27d(0x6e)),CLIUtils=require(a54_0x4ff27d(0x92)),{FRAMEWORKS}=require(a54_0x4ff27d(0x88));BrowserstackCLI[a54_0x4ff27d(0x79)]()[a54_0x4ff27d(0x93)]()&&(logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x89)),process['env'][a54_0x4ff27d(0x8f)]='true',CLIUtils[a54_0x4ff27d(0x86)](FRAMEWORKS['JEST'],FRAMEWORKS[a54_0x4ff27d(0x95)]),BrowserstackCLI[a54_0x4ff27d(0x79)]()[a54_0x4ff27d(0x6f)]()[a54_0x4ff27d(0x6d)](_0x12f4a1=>{const _0x171b38=a54_0x4ff27d;logger['debug'](_0x171b38(0x76)+util[_0x171b38(0x78)](_0x12f4a1));}));}catch(a54_0x54a045){logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x80)+util[a54_0x4ff27d(0x78)](a54_0x54a045));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x29a735){logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x7c)+util[a54_0x4ff27d(0x78)](a54_0x29a735));}function a54_0x104d(_0x31d987,_0x453a46){const _0x3e3c40=a54_0x3e3c();return a54_0x104d=function(_0x104d32,_0x8f5582){_0x104d32=_0x104d32-0x68;let _0x521a21=_0x3e3c40[_0x104d32];return _0x521a21;},a54_0x104d(_0x31d987,_0x453a46);}logger[a54_0x4ff27d(0x7e)]('[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed');
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a55_0x4eb42f=a55_0x226c;(function(_0x30d045,_0xe471d3){const _0x219d09=a55_0x226c,_0x29363b=_0x30d045();while(!![]){try{const _0x29ba46=parseInt(_0x219d09(0xcf))/0x1+-parseInt(_0x219d09(0x131))/0x2*(-parseInt(_0x219d09(0xc9))/0x3)+-parseInt(_0x219d09(0x120))/0x4+-parseInt(_0x219d09(0xf5))/0x5*(parseInt(_0x219d09(0x13f))/0x6)+parseInt(_0x219d09(0xdb))/0x7+parseInt(_0x219d09(0xe7))/0x8+parseInt(_0x219d09(0x119))/0x9*(-parseInt(_0x219d09(0x129))/0xa);if(_0x29ba46===_0xe471d3)break;else _0x29363b['push'](_0x29363b['shift']());}catch(_0x1aae02){_0x29363b['push'](_0x29363b['shift']());}}}(a55_0x4f3f,0xc4005));function a55_0x226c(_0x33687e,_0x287071){const _0x4f3ff0=a55_0x4f3f();return a55_0x226c=function(_0x226cd0,_0x433982){_0x226cd0=_0x226cd0-0xa6;let _0x927e1b=_0x4f3ff0[_0x226cd0];return _0x927e1b;},a55_0x226c(_0x33687e,_0x287071);}const fs=require('fs'),path=require('path'),util=require(a55_0x4eb42f(0xde)),spawn=require('child_process')[a55_0x4eb42f(0xb5)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x4eb42f(0x143))[a55_0x4eb42f(0xd0)],helper=require(a55_0x4eb42f(0x116)),utilities=require(a55_0x4eb42f(0xe1)),{default:BrowserStackSetup}=require(a55_0x4eb42f(0xe0)),{FRAMEWORKS}=require(a55_0x4eb42f(0xbf)),runIntegrations=require(a55_0x4eb42f(0x104)),yargs=require('yargs'),Constants=require(a55_0x4eb42f(0xfa)),BrowserstackCLI=require(a55_0x4eb42f(0x127)),{isNewman}=require(a55_0x4eb42f(0xfb)),logger=require(a55_0x4eb42f(0xd1))[a55_0x4eb42f(0x115)],origArgs=Object[a55_0x4eb42f(0xc5)]([],process[a55_0x4eb42f(0x11f)]),captureError=async(_0x2a2738,_0x409d80,_0x54d22e,_0x10f6fc=null,_0x4d6747=![])=>{const _0x3ef4de=a55_0x4eb42f,_0x40e288={'UXzVp':function(_0x41ce8e,_0x40c3d8,_0x29a019,_0x159c2e){return _0x41ce8e(_0x40c3d8,_0x29a019,_0x159c2e);},'VYcBd':'SDKTestSuccessful'};try{logger[_0x3ef4de(0xf3)](_0x3ef4de(0x107)+origArgs[_0x3ef4de(0xcc)]('\x20')),await _0x40e288[_0x3ef4de(0x121)](_0x2a2738,_0x409d80,_0x10f6fc,_0x54d22e);}catch(_0x305d56){process[_0x3ef4de(0xa6)]=0x1,logger[_0x3ef4de(0xea)](util['format'](_0x305d56));const _0x409c11={'globalException':util[_0x3ef4de(0x12d)]('%j',_0x305d56)};PerformanceTester[_0x3ef4de(0xef)](PerformanceEvents[_0x3ef4de(0x135)],![],util['format'](_0x305d56));if(helper[_0x3ef4de(0x148)](global[_0x3ef4de(0x12e)])&&helper[_0x3ef4de(0x148)](global['framework']))return;try{utilities[_0x3ef4de(0x139)](_0x40e288[_0x3ef4de(0x130)],_0x409c11,global[_0x3ef4de(0x12e)],global['framework']);}catch(_0x36b1b1){logger[_0x3ef4de(0xe9)](_0x3ef4de(0x122)+_0x36b1b1['stack']);}try{await helper[_0x3ef4de(0x10d)](global[_0x3ef4de(0x12e)]);}catch(_0x57f71c){logger[_0x3ef4de(0xe9)](_0x3ef4de(0xbb)+_0x57f71c['stack']);}PerformanceTester[_0x3ef4de(0xef)](PerformanceEvents[_0x3ef4de(0x135)],![],util[_0x3ef4de(0x12d)](_0x305d56));}finally{!_0x4d6747&&await BrowserstackCLI[_0x3ef4de(0x133)]()['stop'](),PerformanceTester[_0x3ef4de(0xb8)](PerformanceEvents[_0x3ef4de(0xee)]);}};try{const browserstackFolderPath=path[a55_0x4eb42f(0xcc)](helper[a55_0x4eb42f(0x114)](),'.browserstack');if(fs[a55_0x4eb42f(0xbd)](browserstackFolderPath)){const filePath=path[a55_0x4eb42f(0xcc)](browserstackFolderPath,'.local-not-set.json');fs[a55_0x4eb42f(0xbd)](filePath)&&fs[a55_0x4eb42f(0xfe)](filePath);}}catch(a55_0x33925e){logger['debug'](a55_0x4eb42f(0xc7)+a55_0x33925e[a55_0x4eb42f(0xfc)]);}function a55_0x4f3f(){const _0x2653e1=['AMmjc','iOskY','RWuNP','INFO','load\x20[subcommand]','sendLogs','demandCommand','ats','findAndReplace','dyjTB','LKJsw','JbSHz','homedir','winstonLogger','../helpers/helper','NEWMAN','BerfK','1024722GZNuDS','option','CUCUMBER','node','DigYs','YcHyp','argv','2372404lIKWZo','UXzVp','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','cucumber-js','Parsing\x20command\x20line\x20arguments','./cucumber-js/command','filter','./v2/browserstackCLI','VANILLA','20XDZUDT','nightwatch','../../ats/src/index','setTestObservabilityDisable','format','config','ICTkt','VYcBd','683662JAAFFI','auxzJ','getInstance','strict','SDK_SETUP','pw:channel\x20auto-capture\x20seed\x20failed:\x20','showHelpOnFail','setBrowserStackAutomationDisable','fireFunnelTestEvent','jest','mocha/lib/cli/commands.js','newman','split','help','272334qTgSYG','mRPqT','some','pw:channel','../helpers/performance/constants','cRpFF','getConfigPath','Undnm','--no-opts','isUndefined','exitCode','--opts','SHHNy','dElyB','Opzdj','gJllQ','./load/index','./mocha/command','./newman/command','handler','lyEve','usage','mocha/lib/cli/run.js','usage:\x20$0\x20<command>\x20[args]','JNhos','spawn','--no-package','IMxFS','start','PLAYWRIGHT','GwtBe','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','slice','existsSync','umNdJ','../helpers/test-observability/constants','RcTrA','dzVWP','cFPGB','disableAutoCaptureLogs','push','assign','playwright','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','describe','6bwLdox','gXPGB','PhKNG','join','eBIBb','DEBUG_FILE','644201Fyjxke','EVENTS','../helpers/logger','DEUHc','map','wrap','getPwChannelLogPath','QACuh','Show\x20help','Runs\x20the\x20binary\x20with\x20load\x20command','mocha/lib/cli/cli.js','icaJc','1941492ACeNkF','HST','NIGHTWATCH','util','env','../helpers/BrowserStackSetup','../helpers/utilities','command','NWAcw','DEBUG','--require','-pw:*','8498928soNcpz','codeceptjs','debug','error','FMEea','mocha','boolean','SDK_CLEANUP','end','CODECEPTJS','includes','wQvZY','info','--no-config','115bAECCx','./jest/command','JEST','framework','dot-notation','./utils/constants','./newman/helper','message','pkXqV','unlinkSync','niApa','JpEcE','exitProcess','trim','iwyDD','./integrations/command','integrations','BROWSERSTACK_CONFIG_FILE_PATH','Running\x20SDK\x20with\x20args\x20'];a55_0x4f3f=function(){return _0x2653e1;};return a55_0x4f3f();}process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xf1)](a55_0x4eb42f(0xec))&&(!process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xf1)](a55_0x4eb42f(0xa7))&&process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xc4)](a55_0x4eb42f(0x147)),!process['argv']['find'](_0x19f9d4=>_0x19f9d4[a55_0x4eb42f(0xf1)]('--config'))&&process[a55_0x4eb42f(0x11f)]['push'](a55_0x4eb42f(0xf4)),!process[a55_0x4eb42f(0x11f)]['includes']('--package')&&process[a55_0x4eb42f(0x11f)]['push'](a55_0x4eb42f(0xb6)),helper[a55_0x4eb42f(0x110)](process[a55_0x4eb42f(0x11f)],a55_0x4eb42f(0xe5),'--mochaRequire'));PerformanceTester[a55_0x4eb42f(0xb8)](PerformanceEvents[a55_0x4eb42f(0x135)]);const a55_0x49a271={};a55_0x49a271[a55_0x4eb42f(0xf9)]=![];const argv=yargs['parserConfiguration'](a55_0x49a271)[a55_0x4eb42f(0xb1)](a55_0x4eb42f(0xb3))['alias']('v','version')[a55_0x4eb42f(0xc8)]('v')['alias']('h',a55_0x4eb42f(0x13e))[a55_0x4eb42f(0x13e)]('help')[a55_0x4eb42f(0x137)](!![],Constants['VERSION']['HELP'])['command'](a55_0x4eb42f(0x13a),Constants[a55_0x4eb42f(0xf7)]['INFO'],function(_0x5e7749){const _0x57c5ef=a55_0x4eb42f,_0x5177b8={'JNhos':_0x57c5ef(0x13a),'JbSHz':function(_0x45c2d5,_0x12693a,_0x3bebdc,_0x9b5fef,_0x24231c,_0x2d81a2){return _0x45c2d5(_0x12693a,_0x3bebdc,_0x9b5fef,_0x24231c,_0x2d81a2);},'PTgkX':function(_0x249b83,_0x19b831){return _0x249b83(_0x19b831);},'wXITS':_0x57c5ef(0xf6)},_0x19e8d0=process['argv'][_0x57c5ef(0xbc)](0x2);helper['setTestObservabilityDisable'](),helper[_0x57c5ef(0x138)](),_0x5e7749['strict'](![]);const _0x42d7af=new BrowserStackSetup(_0x5e7749[_0x57c5ef(0x11f)],_0x5177b8[_0x57c5ef(0xb4)]);return _0x5177b8[_0x57c5ef(0x113)](captureError,_0x5177b8['PTgkX'](require,_0x5177b8['wXITS']),_0x5e7749[_0x57c5ef(0x11f)],_0x42d7af,_0x19e8d0,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0xec),Constants['MOCHA'][a55_0x4eb42f(0x10b)],_0x1fe898=>{const _0x865cda=a55_0x4eb42f,_0x2fb9e1={'lzVow':function(_0x5d8965,_0x2cb40e,_0x2bb759,_0x440b6e){return _0x5d8965(_0x2cb40e,_0x2bb759,_0x440b6e);},'lyEve':function(_0x14920a,_0x2af60f){return _0x14920a(_0x2af60f);},'AMhrD':_0x865cda(0xad),'Opzdj':_0x865cda(0xec),'AMmjc':_0x865cda(0x124),'DigYs':function(_0x557502,_0x4b3ec5,_0x250a9){return _0x557502(_0x4b3ec5,_0x250a9);},'umNdJ':_0x865cda(0xb2),'niApa':function(_0xaac6e3,_0x55657e,_0x571d48){return _0xaac6e3(_0x55657e,_0x571d48);},'cFPGB':_0x865cda(0x13b),'PhKNG':_0x865cda(0xd9),'RcTrA':function(_0x18e555){return _0x18e555();}};process[_0x865cda(0x11f)]=process['argv'][_0x865cda(0xbc)](0x1),helper[_0x865cda(0x12c)](),helper['setBrowserStackAutomationDisable']();const _0x3b7baa=new BrowserStackSetup(_0x1fe898[_0x865cda(0x11f)],_0x2fb9e1[_0x865cda(0xaa)]);logger[_0x865cda(0xe9)](_0x2fb9e1[_0x865cda(0x108)]);const _0xb9b333=_0x2fb9e1[_0x865cda(0x11d)](requireModule,_0x2fb9e1[_0x865cda(0xbe)],_0x2fb9e1['Opzdj']),_0xd50f9=_0x2fb9e1[_0x865cda(0xff)](requireModule,_0x2fb9e1[_0x865cda(0xc2)],_0x2fb9e1['Opzdj']);delete _0xb9b333[_0x865cda(0xaf)],_0xb9b333['handler']=function(_0x245aec){const _0x226fd1=_0x865cda;return _0x2fb9e1['lzVow'](captureError,_0x2fb9e1[_0x226fd1(0xb0)](require,_0x2fb9e1['AMhrD']),_0x245aec,_0x3b7baa);},_0xd50f9['run']=_0xb9b333;const {main:_0x1527d0}=_0x2fb9e1[_0x865cda(0x11d)](requireModule,_0x2fb9e1[_0x865cda(0xcb)],_0x2fb9e1[_0x865cda(0xaa)]);_0x2fb9e1[_0x865cda(0xc0)](_0x1527d0);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x123),Constants[a55_0x4eb42f(0x11b)]['INFO'],function(_0x53b0a7){const _0x2a1dad=a55_0x4eb42f,_0x74830f={'RWuNP':'cucumber-js','eBIBb':function(_0x53006c,_0xe4577a,_0x302b44,_0x4ad43b,_0x357755,_0x5b0fed){return _0x53006c(_0xe4577a,_0x302b44,_0x4ad43b,_0x357755,_0x5b0fed);},'dyjTB':function(_0x51483f,_0x40ddcb){return _0x51483f(_0x40ddcb);},'BerfK':_0x2a1dad(0x125)},_0x1794b8=process[_0x2a1dad(0x11f)]['slice'](0x2),_0x1998bb=new BrowserStackSetup(_0x53b0a7[_0x2a1dad(0x11f)],_0x74830f[_0x2a1dad(0x10a)]);return _0x74830f[_0x2a1dad(0xcd)](captureError,_0x74830f[_0x2a1dad(0x111)](require,_0x74830f[_0x2a1dad(0x118)]),_0x53b0a7[_0x2a1dad(0x11f)],_0x1998bb,_0x1794b8,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x11c),Constants[a55_0x4eb42f(0x128)][a55_0x4eb42f(0x10b)],function(_0x5bbbba){const _0x48f22f=a55_0x4eb42f,_0x4fd1c3={'icaJc':'vanilla','IMxFS':function(_0x4ee765,_0x4434dc){return _0x4ee765(_0x4434dc);},'hKIZd':_0x48f22f(0x13c),'DEUHc':function(_0x45130e,_0x5f237d,_0x3bba8d,_0x388e80,_0x2d8afe){return _0x45130e(_0x5f237d,_0x3bba8d,_0x388e80,_0x2d8afe);},'pkXqV':_0x48f22f(0xae),'qRsTm':function(_0x3253bc,_0x4a0274,_0xe6f5fc,_0x363891,_0x435677){return _0x3253bc(_0x4a0274,_0xe6f5fc,_0x363891,_0x435677);},'LKJsw':function(_0x143acf,_0x55c46a){return _0x143acf(_0x55c46a);},'iOskY':'./vanilla-js/command'},_0x837376=process[_0x48f22f(0x11f)][_0x48f22f(0xbc)](0x2),_0x57c364=new BrowserStackSetup(_0x5bbbba[_0x48f22f(0x11f)],_0x4fd1c3[_0x48f22f(0xda)]),_0x1447f2=_0x57c364?_0x57c364['config']:null;if(_0x4fd1c3[_0x48f22f(0xb7)](isNewman,_0x1447f2))return _0x57c364[_0x48f22f(0xf8)]=_0x4fd1c3['hKIZd'],global[_0x48f22f(0xf8)]=_0x4fd1c3['hKIZd'],_0x4fd1c3[_0x48f22f(0xd2)](captureError,_0x4fd1c3['IMxFS'](require,_0x4fd1c3[_0x48f22f(0xfd)]),_0x5bbbba['argv'],_0x57c364,_0x837376);return _0x4fd1c3['qRsTm'](captureError,_0x4fd1c3[_0x48f22f(0x112)](require,_0x4fd1c3[_0x48f22f(0x109)]),_0x5bbbba['argv'],_0x57c364,_0x837376);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x12a),Constants[a55_0x4eb42f(0xdd)][a55_0x4eb42f(0x10b)],function(_0x29c965){const _0x19585d=a55_0x4eb42f,_0x4cb8d1={'YcHyp':function(_0x235d87,_0x47c10a,_0x4b87ea,_0x8bba5b,_0x157eca){return _0x235d87(_0x47c10a,_0x4b87ea,_0x8bba5b,_0x157eca);},'FMEea':function(_0x313396,_0x17fa01){return _0x313396(_0x17fa01);},'thGoh':'./nightwatch/command'},_0x4ef00d=process[_0x19585d(0x11f)][_0x19585d(0xbc)](0x2),_0x367a7d=new BrowserStackSetup(_0x29c965['argv']);return _0x4cb8d1[_0x19585d(0x11e)](captureError,_0x4cb8d1[_0x19585d(0xeb)](require,_0x4cb8d1['thGoh']),_0x29c965[_0x19585d(0x11f)],_0x367a7d,_0x4ef00d);})['command'](a55_0x4eb42f(0xe8),Constants[a55_0x4eb42f(0xf0)][a55_0x4eb42f(0x10b)],function(_0x37a47f){const _0x456073=a55_0x4eb42f,_0x2b3055={'XmTfj':'codeceptjs','ICTkt':function(_0x1a4e14,_0x2a85bd,_0x198c4d,_0x2c7664,_0x1250b8){return _0x1a4e14(_0x2a85bd,_0x198c4d,_0x2c7664,_0x1250b8);},'JpEcE':function(_0x3c1047,_0x1a98df){return _0x3c1047(_0x1a98df);},'Undnm':'./codeceptjs/command'},_0x4d5088=process[_0x456073(0x11f)]['slice'](0x2),_0x163f67=new BrowserStackSetup(_0x37a47f[_0x456073(0x11f)],_0x2b3055['XmTfj']);return _0x2b3055[_0x456073(0x12f)](captureError,_0x2b3055[_0x456073(0x100)](require,_0x2b3055[_0x456073(0x146)]),_0x37a47f['argv'],_0x163f67,_0x4d5088);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x10f),Constants[a55_0x4eb42f(0xdc)]['INFO'],function(_0x4a9cf1){const _0x37b379=a55_0x4eb42f,_0x26e440={'mRPqT':function(_0x4e9296,_0xe680a3,_0x5a7190){return _0x4e9296(_0xe680a3,_0x5a7190);},'iwyDD':function(_0x5849c4,_0x589a9f){return _0x5849c4(_0x589a9f);},'rLQEV':_0x37b379(0x12b)},_0x51b192=process[_0x37b379(0x11f)][_0x37b379(0xbc)](0x2);return _0x26e440[_0x37b379(0x140)](captureError,_0x26e440[_0x37b379(0x103)](require,_0x26e440['rLQEV']),_0x4a9cf1);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x105),Constants['INTEGRATIONS'][a55_0x4eb42f(0x10b)],function(_0x9fadf7){const _0x4cc5d0=a55_0x4eb42f,_0x55a5d5={'cRpFF':function(_0x348c55,_0x2d1977){return _0x348c55(_0x2d1977);}};return _0x55a5d5[_0x4cc5d0(0x144)](runIntegrations,_0x9fadf7);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0xc6),Constants[a55_0x4eb42f(0xb9)][a55_0x4eb42f(0x10b)],function(_0x4a94b9){const _0x447584=a55_0x4eb42f,_0x1b8eaa={'GLhmW':_0x447584(0x142),'auxzJ':function(_0x46b224,_0x201b54){return _0x46b224&&_0x201b54;},'gJllQ':function(_0x4f18d6,_0x10f63a,_0x399188,_0x1c93e7,_0x183356,_0xefa621){return _0x4f18d6(_0x10f63a,_0x399188,_0x1c93e7,_0x183356,_0xefa621);},'QACuh':function(_0x4621ef,_0x1c1f43){return _0x4621ef(_0x1c1f43);},'nPzYu':'./playwright/command'},_0x165601=process['argv'][_0x447584(0xbc)](0x2);helper[_0x447584(0x145)](process['argv'])&&(process[_0x447584(0xdf)][_0x447584(0x106)]=helper[_0x447584(0x145)](process[_0x447584(0x11f)]));helper['setTestObservabilityDisable'](),helper[_0x447584(0x138)]();const _0x242af2=new BrowserStackSetup(_0x4a94b9[_0x447584(0x11f)],FRAMEWORKS[_0x447584(0xb9)]);try{if(!_0x242af2[_0x447584(0x12e)]||!_0x242af2[_0x447584(0x12e)][_0x447584(0xc3)]){const _0x9e06c=_0x1b8eaa['GLhmW'],_0xe6c013=process[_0x447584(0xdf)]['DEBUG']||'',_0x454ee1=_0xe6c013[_0x447584(0x13d)](',')[_0x447584(0xd3)](_0x1a8bc0=>_0x1a8bc0[_0x447584(0x102)]())[_0x447584(0x126)](Boolean),_0x23fb34=_0x454ee1[_0x447584(0x141)](_0x229d8a=>_0x229d8a==='-pw:channel'||_0x229d8a===_0x447584(0xe6)||_0x229d8a==='-*'),_0x475734=_0x454ee1[_0x447584(0x141)](_0x1ed734=>_0x1ed734===_0x9e06c||_0x1ed734==='pw:*'||_0x1ed734==='*');if(_0x1b8eaa[_0x447584(0x132)](!_0x23fb34,!_0x475734)){const _0x3d6efb=helper[_0x447584(0xd5)]();_0x3d6efb&&(process[_0x447584(0xdf)][_0x447584(0xe4)]=_0xe6c013?_0xe6c013+','+_0x9e06c:_0x9e06c,!process[_0x447584(0xdf)][_0x447584(0xce)]&&(process[_0x447584(0xdf)]['DEBUG_FILE']=_0x3d6efb));}}}catch(_0x3cb1bb){logger[_0x447584(0xe9)](_0x447584(0x136)+util['format'](_0x3cb1bb));}return _0x1b8eaa[_0x447584(0xab)](captureError,_0x1b8eaa[_0x447584(0xd6)](require,_0x1b8eaa['nPzYu']),_0x4a94b9[_0x447584(0x11f)],_0x242af2,_0x165601,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x10c),a55_0x4eb42f(0xd8),function(_0x498a1e){const _0x3b837b=a55_0x4eb42f,_0x465da={};_0x465da[_0x3b837b(0xca)]=_0x3b837b(0x13e),_0x465da['SHHNy']=_0x3b837b(0xed),_0x465da['dzVWP']=_0x3b837b(0xd7);const _0x39536a=_0x465da;return _0x498a1e[_0x3b837b(0x13e)](![])[_0x3b837b(0x11a)](_0x39536a[_0x3b837b(0xca)],{'alias':'h','type':_0x39536a[_0x3b837b(0xa8)],'describe':_0x39536a[_0x3b837b(0xc1)]})['strict'](![])[_0x3b837b(0x101)](![]);},function(_0x162709){const _0x41edf4=a55_0x4eb42f,_0x28c894={'GwtBe':function(_0x2271d8,_0x757da7,_0x21d9dc){return _0x2271d8(_0x757da7,_0x21d9dc);},'wQvZY':function(_0x3d270b,_0x40a001){return _0x3d270b(_0x40a001);},'EaagZ':_0x41edf4(0xac)},_0x5f5c20={};return _0x5f5c20[_0x41edf4(0x11f)]=_0x162709,_0x28c894[_0x41edf4(0xba)](captureError,_0x28c894[_0x41edf4(0xf2)](require,_0x28c894['EaagZ']),_0x5f5c20);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x13c),Constants[a55_0x4eb42f(0x117)][a55_0x4eb42f(0x10b)],function(_0x388ace){const _0xc8e4db=a55_0x4eb42f,_0x410e33={'NWAcw':_0xc8e4db(0x13c),'LvZHm':function(_0xd970b,_0x38a25d,_0x4749eb,_0x347de6,_0x40d714){return _0xd970b(_0x38a25d,_0x4749eb,_0x347de6,_0x40d714);},'ASaIo':function(_0x34b56b,_0x4bda28){return _0x34b56b(_0x4bda28);},'dElyB':_0xc8e4db(0xae)},_0x2273cc=process[_0xc8e4db(0x11f)][_0xc8e4db(0xbc)](0x2);helper[_0xc8e4db(0x12c)](),helper['setBrowserStackAutomationDisable'](),_0x388ace[_0xc8e4db(0x134)](![]);const _0x53bd24=new BrowserStackSetup(_0x388ace[_0xc8e4db(0x11f)],_0x410e33[_0xc8e4db(0xe3)]);return _0x410e33['LvZHm'](captureError,_0x410e33['ASaIo'](require,_0x410e33[_0xc8e4db(0xa9)]),_0x388ace[_0xc8e4db(0x11f)],_0x53bd24,_0x2273cc);})[a55_0x4eb42f(0x10e)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x4eb42f(0xd4)](null)['argv'];!helper[a55_0x4eb42f(0x148)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a55_0x4eb42f(0xea)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
2
+ 'use strict';const a55_0x5828fd=a55_0x5076;(function(_0x3f8511,_0x493696){const _0x21f953=a55_0x5076,_0x5119a4=_0x3f8511();while(!![]){try{const _0x17766a=-parseInt(_0x21f953(0x1ec))/0x1+parseInt(_0x21f953(0x1eb))/0x2*(-parseInt(_0x21f953(0x223))/0x3)+-parseInt(_0x21f953(0x26d))/0x4+-parseInt(_0x21f953(0x20f))/0x5+-parseInt(_0x21f953(0x1f2))/0x6+-parseInt(_0x21f953(0x231))/0x7*(parseInt(_0x21f953(0x20a))/0x8)+parseInt(_0x21f953(0x281))/0x9;if(_0x17766a===_0x493696)break;else _0x5119a4['push'](_0x5119a4['shift']());}catch(_0x4b1451){_0x5119a4['push'](_0x5119a4['shift']());}}}(a55_0x468e,0x750c8));function a55_0x468e(){const _0x55c355=['assign','./mocha/command','tFUoZ','28283229TfivCj','start','usage','homedir','MOCHA','run','ZNwhK','CODECEPTJS','disableAutoCaptureLogs','NrtXq','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','getPwChannelLogPath','./playwright/command','ojHCy','uyWwL','./cucumber-js/command','20dmMbxO','261862SebInG','--opts','env','ENaya','vanilla','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','3903150agjofn','setBrowserStackAutomationDisable','demandCommand','some','DEBUG_FILE','BROWSERSTACK_CONFIG_FILE_PATH','Secbr','./nightwatch/command','AhJBP','../helpers/test-observability/constants','winstonLogger','VANILLA','--config','exitCode','NEWMAN','tDEzo','existsSync','getConfigPath','MdIgr','util','alias','help','CquFM','error','30632WAximD','jwFSi','message','SDK_SETUP','LnZHh','2663590BnrHga','eXoOt','KVmlU','Running\x20SDK\x20with\x20args\x20','stack','strict','--require','end','DEBUG','option','INTEGRATIONS','idPOk','setTestObservabilityDisable','VERSION','playwright','jest','./load/index','ZzWBg','../helpers/logger','./vanilla-js/command','33237myYiwf','mocha','newman','jNWVD','yargs','path','format','getInstance','NHOzz','command','gdZEk','OJcfy','./newman/helper','../helpers/performance/performance-tester','945rTTVTU','NIGHTWATCH','config','codeceptjs','argv','showHelpOnFail','filter','pw:*','DRgxi','SvKIn','../helpers/performance/constants','mocha/lib/cli/run.js','XrhaA','Show\x20help','HELP','fireFunnelTestEvent','--no-config','nnddP','oMJvp','push','nvejM','INFO','CUCUMBER','jmSJO','pw:channel\x20auto-capture\x20seed\x20failed:\x20','isUndefined','OlzdF','--package','framework','stop','JujtH','spawn','slice','rqxdQ','PQCIv','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','cksGc','eXKMe','TbowU','ycYVm','./utils/constants','ats','--mochaRequire','includes','URJPl','node','../helpers/helper','KriVW','-pw:*','version','join','./newman/command','NuoPd','cucumber-js','ebCKM','../../ats/src/index','zVPeD','unlinkSync','./v2/browserstackCLI','EPvHV','2361356CpUMYd','PLAYWRIGHT','../helpers/utilities','./integrations/command','handler','bteeY','./jest/command','jMEvx','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','pw:channel','oxHQx','map','debug','EVENTS','-pw:channel','xLHit','usage:\x20$0\x20<command>\x20[args]'];a55_0x468e=function(){return _0x55c355;};return a55_0x468e();}const fs=require('fs'),path=require(a55_0x5828fd(0x228)),util=require(a55_0x5828fd(0x205)),spawn=require('child_process')[a55_0x5828fd(0x250)],{requireModule}=require('../helpers/helper'),PerformanceTester=require(a55_0x5828fd(0x230)),PerformanceEvents=require(a55_0x5828fd(0x23b))[a55_0x5828fd(0x27a)],helper=require(a55_0x5828fd(0x25f)),utilities=require(a55_0x5828fd(0x26f)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a55_0x5828fd(0x1fb)),runIntegrations=require(a55_0x5828fd(0x270)),yargs=require(a55_0x5828fd(0x227)),Constants=require(a55_0x5828fd(0x259)),BrowserstackCLI=require(a55_0x5828fd(0x26b)),{isNewman}=require(a55_0x5828fd(0x22f)),logger=require(a55_0x5828fd(0x221))[a55_0x5828fd(0x1fc)],origArgs=Object[a55_0x5828fd(0x27e)]([],process[a55_0x5828fd(0x235)]),captureError=async(_0x38b92f,_0x3c2012,_0x3860f5,_0x3ce476=null,_0x5d070f=![])=>{const _0x32b934=a55_0x5828fd,_0x3b74a5={'rqxdQ':function(_0x103e0d,_0x4e1e4a,_0xadbd9e,_0x224126){return _0x103e0d(_0x4e1e4a,_0xadbd9e,_0x224126);},'ENaya':'SDKTestSuccessful'};try{logger['info'](_0x32b934(0x212)+origArgs[_0x32b934(0x263)]('\x20')),await _0x3b74a5[_0x32b934(0x252)](_0x38b92f,_0x3c2012,_0x3ce476,_0x3860f5);}catch(_0x5f57fd){process[_0x32b934(0x1ff)]=0x1,logger[_0x32b934(0x209)](util[_0x32b934(0x229)](_0x5f57fd));const _0xe4e10a={'globalException':util['format']('%j',_0x5f57fd)};PerformanceTester[_0x32b934(0x216)](PerformanceEvents[_0x32b934(0x20d)],![],util[_0x32b934(0x229)](_0x5f57fd));if(helper[_0x32b934(0x24a)](global['config'])&&helper[_0x32b934(0x24a)](global[_0x32b934(0x24d)]))return;try{utilities[_0x32b934(0x240)](_0x3b74a5[_0x32b934(0x1ef)],_0xe4e10a,global[_0x32b934(0x233)],global[_0x32b934(0x24d)]);}catch(_0x1b0293){logger[_0x32b934(0x279)](_0x32b934(0x254)+_0x1b0293[_0x32b934(0x213)]);}try{await helper['sendLogs'](global['config']);}catch(_0x75fdcb){logger[_0x32b934(0x279)](_0x32b934(0x275)+_0x75fdcb[_0x32b934(0x213)]);}PerformanceTester['end'](PerformanceEvents[_0x32b934(0x20d)],![],util[_0x32b934(0x229)](_0x5f57fd));}finally{!_0x5d070f&&await BrowserstackCLI[_0x32b934(0x22a)]()[_0x32b934(0x24e)](),PerformanceTester[_0x32b934(0x282)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a55_0x5828fd(0x284)](),'.browserstack');if(fs[a55_0x5828fd(0x202)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,'.local-not-set.json');fs[a55_0x5828fd(0x202)](filePath)&&fs[a55_0x5828fd(0x26a)](filePath);}}catch(a55_0x57531e){logger[a55_0x5828fd(0x279)](a55_0x5828fd(0x1f1)+a55_0x57531e[a55_0x5828fd(0x20c)]);}process[a55_0x5828fd(0x235)][a55_0x5828fd(0x25c)](a55_0x5828fd(0x224))&&(!process[a55_0x5828fd(0x235)][a55_0x5828fd(0x25c)](a55_0x5828fd(0x1ed))&&process['argv']['push']('--no-opts'),!process[a55_0x5828fd(0x235)]['find'](_0x3a6ddd=>_0x3a6ddd['includes'](a55_0x5828fd(0x1fe)))&&process['argv'][a55_0x5828fd(0x244)](a55_0x5828fd(0x241)),!process['argv'][a55_0x5828fd(0x25c)](a55_0x5828fd(0x24c))&&process[a55_0x5828fd(0x235)]['push']('--no-package'),helper['findAndReplace'](process[a55_0x5828fd(0x235)],a55_0x5828fd(0x215),a55_0x5828fd(0x25b)));PerformanceTester[a55_0x5828fd(0x282)](PerformanceEvents[a55_0x5828fd(0x20d)]);function a55_0x5076(_0x37fad3,_0x324b42){const _0x468e35=a55_0x468e();return a55_0x5076=function(_0x5076dc,_0x4f0b09){_0x5076dc=_0x5076dc-0x1e4;let _0x2e1245=_0x468e35[_0x5076dc];return _0x2e1245;},a55_0x5076(_0x37fad3,_0x324b42);}const a55_0x4ab806={};a55_0x4ab806['dot-notation']=![];const argv=yargs['parserConfiguration'](a55_0x4ab806)[a55_0x5828fd(0x283)](a55_0x5828fd(0x27d))[a55_0x5828fd(0x206)]('v',a55_0x5828fd(0x262))['describe']('v')[a55_0x5828fd(0x206)]('h','help')[a55_0x5828fd(0x207)](a55_0x5828fd(0x207))[a55_0x5828fd(0x236)](!![],Constants[a55_0x5828fd(0x21c)][a55_0x5828fd(0x23f)])[a55_0x5828fd(0x22c)](a55_0x5828fd(0x21e),Constants['JEST'][a55_0x5828fd(0x246)],function(_0x3fd8f7){const _0xa643b2=a55_0x5828fd,_0x31b1bb={'CquFM':_0xa643b2(0x21e),'NHOzz':function(_0x57d44f,_0x51f902,_0x3af735,_0x1e1183,_0x1e6da3,_0x249725){return _0x57d44f(_0x51f902,_0x3af735,_0x1e1183,_0x1e6da3,_0x249725);},'jwFSi':function(_0x2ef2dc,_0x3a77af){return _0x2ef2dc(_0x3a77af);},'Sqmbe':_0xa643b2(0x273)},_0x1c0138=process[_0xa643b2(0x235)][_0xa643b2(0x251)](0x2);helper[_0xa643b2(0x21b)](),helper[_0xa643b2(0x1f3)](),_0x3fd8f7[_0xa643b2(0x214)](![]);const _0x244d40=new BrowserStackSetup(_0x3fd8f7[_0xa643b2(0x235)],_0x31b1bb[_0xa643b2(0x208)]);return _0x31b1bb[_0xa643b2(0x22b)](captureError,_0x31b1bb[_0xa643b2(0x20b)](require,_0x31b1bb['Sqmbe']),_0x3fd8f7[_0xa643b2(0x235)],_0x244d40,_0x1c0138,!![]);})[a55_0x5828fd(0x22c)]('mocha',Constants[a55_0x5828fd(0x285)][a55_0x5828fd(0x246)],_0x1b0939=>{const _0x45192a=a55_0x5828fd,_0x284ff5={'DCzVP':function(_0x12dab2,_0x5602f3,_0x58febf,_0x549d70){return _0x12dab2(_0x5602f3,_0x58febf,_0x549d70);},'gdZEk':function(_0x4f6a05,_0x56d12d){return _0x4f6a05(_0x56d12d);},'AJQeE':_0x45192a(0x27f),'oxHQx':'mocha','ZzWBg':'Parsing\x20command\x20line\x20arguments','JujtH':function(_0x5be2fe,_0x5335e2,_0x545a02){return _0x5be2fe(_0x5335e2,_0x545a02);},'XrhaA':_0x45192a(0x23c),'jmSJO':'mocha/lib/cli/commands.js','DRgxi':function(_0x44a6ff,_0x54816f,_0x45873b){return _0x44a6ff(_0x54816f,_0x45873b);},'OJcfy':'mocha/lib/cli/cli.js','ojHCy':function(_0x32fd58){return _0x32fd58();}};process[_0x45192a(0x235)]=process[_0x45192a(0x235)][_0x45192a(0x251)](0x1),helper[_0x45192a(0x21b)](),helper[_0x45192a(0x1f3)]();const _0x18bb55=new BrowserStackSetup(_0x1b0939['argv'],_0x284ff5['oxHQx']);logger[_0x45192a(0x279)](_0x284ff5[_0x45192a(0x220)]);const _0x816c=_0x284ff5[_0x45192a(0x24f)](requireModule,_0x284ff5[_0x45192a(0x23d)],_0x284ff5[_0x45192a(0x277)]),_0x120e3e=_0x284ff5[_0x45192a(0x24f)](requireModule,_0x284ff5[_0x45192a(0x248)],_0x284ff5[_0x45192a(0x277)]);delete _0x816c[_0x45192a(0x271)],_0x816c['handler']=function(_0x34ef9b){const _0x4af4e2=_0x45192a;return _0x284ff5['DCzVP'](captureError,_0x284ff5[_0x4af4e2(0x22d)](require,_0x284ff5['AJQeE']),_0x34ef9b,_0x18bb55);},_0x120e3e[_0x45192a(0x286)]=_0x816c;const {main:_0x9115a1}=_0x284ff5[_0x45192a(0x239)](requireModule,_0x284ff5[_0x45192a(0x22e)],_0x284ff5[_0x45192a(0x277)]);_0x284ff5[_0x45192a(0x1e8)](_0x9115a1);})[a55_0x5828fd(0x22c)]('cucumber-js',Constants[a55_0x5828fd(0x247)]['INFO'],function(_0x58d539){const _0x1d0597=a55_0x5828fd,_0x1268de={'NuoPd':_0x1d0597(0x266),'nnddP':function(_0x4549aa,_0x3aa98e,_0x104d8d,_0xbb5279,_0x5755c5,_0x578353){return _0x4549aa(_0x3aa98e,_0x104d8d,_0xbb5279,_0x5755c5,_0x578353);},'gfyEm':function(_0x226a6d,_0x402f13){return _0x226a6d(_0x402f13);},'xLHit':_0x1d0597(0x1ea)},_0x45b9da=process[_0x1d0597(0x235)][_0x1d0597(0x251)](0x2),_0x44b264=new BrowserStackSetup(_0x58d539[_0x1d0597(0x235)],_0x1268de[_0x1d0597(0x265)]);return _0x1268de[_0x1d0597(0x242)](captureError,_0x1268de['gfyEm'](require,_0x1268de[_0x1d0597(0x27c)]),_0x58d539[_0x1d0597(0x235)],_0x44b264,_0x45b9da,!![]);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x25e),Constants[a55_0x5828fd(0x1fd)][a55_0x5828fd(0x246)],function(_0x38d875){const _0x52500c=a55_0x5828fd,_0x272956={'KriVW':_0x52500c(0x1f0),'ycYVm':function(_0x2545a7,_0x11a13f){return _0x2545a7(_0x11a13f);},'zVPeD':'newman','OlzdF':function(_0x231bb1,_0x4f385e,_0x5ac95c,_0x3677f4,_0x2e5948){return _0x231bb1(_0x4f385e,_0x5ac95c,_0x3677f4,_0x2e5948);},'Rwwnn':_0x52500c(0x264),'MdIgr':function(_0x1f8e91,_0x3c3fc0){return _0x1f8e91(_0x3c3fc0);},'nvejM':_0x52500c(0x222)},_0x2d6120=process[_0x52500c(0x235)]['slice'](0x2),_0x192309=new BrowserStackSetup(_0x38d875[_0x52500c(0x235)],_0x272956[_0x52500c(0x260)]),_0x26f4f3=_0x192309?_0x192309[_0x52500c(0x233)]:null;if(_0x272956[_0x52500c(0x258)](isNewman,_0x26f4f3))return _0x192309[_0x52500c(0x24d)]=_0x272956['zVPeD'],global[_0x52500c(0x24d)]=_0x272956[_0x52500c(0x269)],_0x272956[_0x52500c(0x24b)](captureError,_0x272956['ycYVm'](require,_0x272956['Rwwnn']),_0x38d875['argv'],_0x192309,_0x2d6120);return _0x272956['OlzdF'](captureError,_0x272956[_0x52500c(0x204)](require,_0x272956[_0x52500c(0x245)]),_0x38d875[_0x52500c(0x235)],_0x192309,_0x2d6120);})[a55_0x5828fd(0x22c)]('nightwatch',Constants[a55_0x5828fd(0x232)]['INFO'],function(_0x11410b){const _0x4d7d95=a55_0x5828fd,_0x261f61={'ZNwhK':function(_0x58eb97,_0x1f36ca,_0x1528d6,_0xabd4ad,_0x4643ad){return _0x58eb97(_0x1f36ca,_0x1528d6,_0xabd4ad,_0x4643ad);},'AhJBP':function(_0x561e0b,_0x55b4cd){return _0x561e0b(_0x55b4cd);},'EPvHV':_0x4d7d95(0x1f9)},_0x21ed8b=process[_0x4d7d95(0x235)]['slice'](0x2),_0xbd743=new BrowserStackSetup(_0x11410b[_0x4d7d95(0x235)]);return _0x261f61[_0x4d7d95(0x287)](captureError,_0x261f61[_0x4d7d95(0x1fa)](require,_0x261f61[_0x4d7d95(0x26c)]),_0x11410b[_0x4d7d95(0x235)],_0xbd743,_0x21ed8b);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x234),Constants[a55_0x5828fd(0x288)][a55_0x5828fd(0x246)],function(_0x2dafbf){const _0x268640=a55_0x5828fd,_0x155b8d={'oMJvp':_0x268640(0x234),'bteeY':function(_0x1005a9,_0x87bf11,_0x41f64d,_0x3cd56e,_0x1aa040){return _0x1005a9(_0x87bf11,_0x41f64d,_0x3cd56e,_0x1aa040);},'jMEvx':function(_0x54fcb4,_0x439193){return _0x54fcb4(_0x439193);},'uyWwL':'./codeceptjs/command'},_0x13ddfd=process[_0x268640(0x235)][_0x268640(0x251)](0x2),_0x2f9170=new BrowserStackSetup(_0x2dafbf[_0x268640(0x235)],_0x155b8d[_0x268640(0x243)]);return _0x155b8d[_0x268640(0x272)](captureError,_0x155b8d[_0x268640(0x274)](require,_0x155b8d[_0x268640(0x1e9)]),_0x2dafbf['argv'],_0x2f9170,_0x13ddfd);})['command'](a55_0x5828fd(0x25a),Constants['HST'][a55_0x5828fd(0x246)],function(_0x40cf03){const _0x546997=a55_0x5828fd,_0x1669dc={'TbowU':function(_0x4cd6e4,_0x1a5c68,_0x4fb21e){return _0x4cd6e4(_0x1a5c68,_0x4fb21e);},'URJPl':function(_0x306270,_0xe3795f){return _0x306270(_0xe3795f);},'tDEzo':_0x546997(0x268)},_0x3db43b=process[_0x546997(0x235)]['slice'](0x2);return _0x1669dc[_0x546997(0x257)](captureError,_0x1669dc[_0x546997(0x25d)](require,_0x1669dc[_0x546997(0x201)]),_0x40cf03);})[a55_0x5828fd(0x22c)]('integrations',Constants[a55_0x5828fd(0x219)][a55_0x5828fd(0x246)],function(_0x6d2353){const _0x38b6c0={'tKDlv':function(_0x7cac43,_0x187dd9){return _0x7cac43(_0x187dd9);}};return _0x38b6c0['tKDlv'](runIntegrations,_0x6d2353);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x21d),Constants['PLAYWRIGHT'][a55_0x5828fd(0x246)],function(_0x327049){const _0x36121b=a55_0x5828fd,_0x2b7128={'jNWVD':_0x36121b(0x276),'cksGc':function(_0x26d21f,_0x335a6a){return _0x26d21f&&_0x335a6a;},'eXKMe':function(_0x1a2a83,_0x4783dc,_0x257be0,_0x45ea0a,_0x130ebb,_0x5210a1){return _0x1a2a83(_0x4783dc,_0x257be0,_0x45ea0a,_0x130ebb,_0x5210a1);},'GAZqR':function(_0x76d132,_0x526edc){return _0x76d132(_0x526edc);},'LnZHh':_0x36121b(0x1e7)},_0x27eb1c=process['argv'][_0x36121b(0x251)](0x2);helper[_0x36121b(0x203)](process['argv'])&&(process[_0x36121b(0x1ee)][_0x36121b(0x1f7)]=helper['getConfigPath'](process[_0x36121b(0x235)]));helper[_0x36121b(0x21b)](),helper[_0x36121b(0x1f3)]();const _0x5a301f=new BrowserStackSetup(_0x327049[_0x36121b(0x235)],FRAMEWORKS[_0x36121b(0x26e)]);try{if(!_0x5a301f[_0x36121b(0x233)]||!_0x5a301f[_0x36121b(0x233)][_0x36121b(0x289)]){const _0x404be1=_0x2b7128[_0x36121b(0x226)],_0x5de929=process[_0x36121b(0x1ee)][_0x36121b(0x217)]||'',_0x61b319=_0x5de929['split'](',')[_0x36121b(0x278)](_0x21f3c7=>_0x21f3c7['trim']())[_0x36121b(0x237)](Boolean),_0x47a8f7=_0x61b319[_0x36121b(0x1f5)](_0x4fc76c=>_0x4fc76c===_0x36121b(0x27b)||_0x4fc76c===_0x36121b(0x261)||_0x4fc76c==='-*'),_0x59ca86=_0x61b319['some'](_0x47a156=>_0x47a156===_0x404be1||_0x47a156===_0x36121b(0x238)||_0x47a156==='*');if(_0x2b7128[_0x36121b(0x255)](!_0x47a8f7,!_0x59ca86)){const _0x1b9e40=helper[_0x36121b(0x1e6)]();_0x1b9e40&&(process[_0x36121b(0x1ee)][_0x36121b(0x217)]=_0x5de929?_0x5de929+','+_0x404be1:_0x404be1,!process['env'][_0x36121b(0x1f6)]&&(process['env']['DEBUG_FILE']=_0x1b9e40));}}}catch(_0x63c98f){logger[_0x36121b(0x279)](_0x36121b(0x249)+util[_0x36121b(0x229)](_0x63c98f));}return _0x2b7128[_0x36121b(0x256)](captureError,_0x2b7128['GAZqR'](require,_0x2b7128[_0x36121b(0x20e)]),_0x327049[_0x36121b(0x235)],_0x5a301f,_0x27eb1c,!![]);})[a55_0x5828fd(0x22c)]('load\x20[subcommand]','Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x6cfc11){const _0x3dd53e=a55_0x5828fd,_0x48bbfc={};_0x48bbfc[_0x3dd53e(0x211)]=_0x3dd53e(0x207),_0x48bbfc[_0x3dd53e(0x267)]='boolean',_0x48bbfc[_0x3dd53e(0x210)]=_0x3dd53e(0x23e);const _0x2069b7=_0x48bbfc;return _0x6cfc11[_0x3dd53e(0x207)](![])[_0x3dd53e(0x218)](_0x2069b7['KVmlU'],{'alias':'h','type':_0x2069b7[_0x3dd53e(0x267)],'describe':_0x2069b7[_0x3dd53e(0x210)]})['strict'](![])['exitProcess'](![]);},function(_0x3d7d66){const _0x524de6=a55_0x5828fd,_0x56bd62={'Secbr':function(_0x302282,_0x2dc988,_0x8ccae2){return _0x302282(_0x2dc988,_0x8ccae2);},'CPMfD':function(_0xca69e1,_0x455e89){return _0xca69e1(_0x455e89);},'tFUoZ':_0x524de6(0x21f)},_0x40df92={};return _0x40df92[_0x524de6(0x235)]=_0x3d7d66,_0x56bd62[_0x524de6(0x1f8)](captureError,_0x56bd62['CPMfD'](require,_0x56bd62[_0x524de6(0x280)]),_0x40df92);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x225),Constants[a55_0x5828fd(0x200)]['INFO'],function(_0x31d1ba){const _0x4857db=a55_0x5828fd,_0x2ddbde={'SvKIn':'newman','PQCIv':function(_0x29bf6d,_0x84ee5f,_0x52ce4d,_0x2f8e06,_0x45357b){return _0x29bf6d(_0x84ee5f,_0x52ce4d,_0x2f8e06,_0x45357b);},'NrtXq':function(_0x5d534d,_0x52d12b){return _0x5d534d(_0x52d12b);},'idPOk':_0x4857db(0x264)},_0x16890c=process[_0x4857db(0x235)][_0x4857db(0x251)](0x2);helper[_0x4857db(0x21b)](),helper['setBrowserStackAutomationDisable'](),_0x31d1ba[_0x4857db(0x214)](![]);const _0x328ebd=new BrowserStackSetup(_0x31d1ba[_0x4857db(0x235)],_0x2ddbde[_0x4857db(0x23a)]);return _0x2ddbde[_0x4857db(0x253)](captureError,_0x2ddbde[_0x4857db(0x1e4)](require,_0x2ddbde[_0x4857db(0x21a)]),_0x31d1ba[_0x4857db(0x235)],_0x328ebd,_0x16890c);})[a55_0x5828fd(0x1f4)](0x1,a55_0x5828fd(0x1e5))['wrap'](null)[a55_0x5828fd(0x235)];!helper[a55_0x5828fd(0x24a)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x5828fd(0x25a)&&console['error']('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a56_0x4b260b=a56_0x1925;(function(_0x381955,_0x4cbeb0){const _0x40b38b=a56_0x1925,_0x1783ed=_0x381955();while(!![]){try{const _0x500af2=parseInt(_0x40b38b(0x117))/0x1*(parseInt(_0x40b38b(0x11f))/0x2)+parseInt(_0x40b38b(0xed))/0x3+parseInt(_0x40b38b(0x106))/0x4+-parseInt(_0x40b38b(0x133))/0x5+parseInt(_0x40b38b(0x12e))/0x6+-parseInt(_0x40b38b(0x115))/0x7+-parseInt(_0x40b38b(0xff))/0x8;if(_0x500af2===_0x4cbeb0)break;else _0x1783ed['push'](_0x1783ed['shift']());}catch(_0xe6209c){_0x1783ed['push'](_0x1783ed['shift']());}}}(a56_0x33bd,0xd874c));const fs=require('fs'),helper=require(a56_0x4b260b(0xf1)),utilities=require(a56_0x4b260b(0x116)),yaml=require('js-yaml'),yargs=require(a56_0x4b260b(0x118)),logger=require(a56_0x4b260b(0xf9))['winstonLogger'],configFileTemplate=__dirname+a56_0x4b260b(0x104),configFileTemplatePW=__dirname+a56_0x4b260b(0x110),configFile=process['cwd']()+'/browserstack.yml',packageFile=process['cwd']()+a56_0x4b260b(0x10b),frameworks=['mocha',a56_0x4b260b(0x11d),a56_0x4b260b(0x127),a56_0x4b260b(0x111),a56_0x4b260b(0xfb),a56_0x4b260b(0x128),a56_0x4b260b(0xfe)];let config;function a56_0x1925(_0x2380e5,_0x571e97){const _0x33bd9f=a56_0x33bd();return a56_0x1925=function(_0x1925ff,_0x4a1c21){_0x1925ff=_0x1925ff-0xed;let _0x4de9bd=_0x33bd9f[_0x1925ff];return _0x4de9bd;},a56_0x1925(_0x2380e5,_0x571e97);}logger[a56_0x4b260b(0x12c)](a56_0x4b260b(0x10e)),createConfigurationFile(yargs['argv']['username'],yargs['argv'][a56_0x4b260b(0xf7)],yargs['argv'][a56_0x4b260b(0xfe)]);try{sdkSetup();}catch(a56_0x3d2dac){logger['debug'](a56_0x4b260b(0xfa)+a56_0x3d2dac);}addScriptInPackageJson();function createConfigurationFile(_0xb555c2,_0x3f2a3d,_0x2a5e8e=![]){const _0x738747=a56_0x4b260b,_0x1a9c76={};_0x1a9c76['nCQLq']=_0x738747(0x130),_0x1a9c76[_0x738747(0x109)]='YOUR_USERNAME',_0x1a9c76['xwCQJ']=_0x738747(0x108);const _0x44dbfe=_0x1a9c76;try{let _0x3f9e23=fs[_0x738747(0x11b)](_0x2a5e8e?configFileTemplatePW:configFileTemplate,_0x44dbfe[_0x738747(0x129)]);_0xb555c2&&(_0x3f9e23=_0x3f9e23['replace'](_0x44dbfe['kmNEt'],_0xb555c2)),_0x3f2a3d&&(_0x3f9e23=_0x3f9e23[_0x738747(0x12b)](_0x44dbfe['xwCQJ'],_0x3f2a3d)),config=yaml[_0x738747(0x122)](_0x3f9e23),fs[_0x738747(0x107)](configFile,_0x3f9e23,_0x786cf9=>{const _0xcabd45=_0x738747;_0x786cf9&&logger[_0xcabd45(0x10f)](_0x786cf9);});}catch(_0x2dcebd){logger['error'](_0x2dcebd);}}function addPostInstallScript(_0x239c4e,_0x1fd448){const _0x5a69ce=a56_0x4b260b,_0x2d4f39={};_0x2d4f39[_0x5a69ce(0x105)]=_0x5a69ce(0x12a),_0x2d4f39[_0x5a69ce(0x126)]=_0x5a69ce(0xf4),_0x2d4f39[_0x5a69ce(0x11c)]=_0x5a69ce(0x11a);const _0x171a65=_0x2d4f39;let _0x17c87=_0x239c4e[_0x171a65['JLwnG']];if(_0x17c87&&_0x17c87[_0x5a69ce(0xf0)](_0x171a65[_0x5a69ce(0x126)]))return;!_0x17c87?_0x17c87=_0x171a65[_0x5a69ce(0x126)]:_0x17c87+=_0x171a65['EdVGD'],_0x1fd448[_0x5a69ce(0x124)]([_0x171a65['JLwnG'],_0x17c87]);}function addScriptInPackageJson(){const _0x5d8d59=a56_0x4b260b,_0x4760c6={'BaxGk':_0x5d8d59(0x130),'gAAFi':function(_0x157097,_0x2a011d){return _0x157097<_0x2a011d;},'oanHf':function(_0x4de90f,_0x54accf,_0x53a61c){return _0x4de90f(_0x54accf,_0x53a61c);},'oHawl':function(_0x43385a,_0x2d9c82,_0x25058e){return _0x43385a(_0x2d9c82,_0x25058e);},'QTekY':function(_0x4065fe,_0xdc617c){return _0x4065fe<_0xdc617c;},'wFOFm':function(_0x3e6fa6,_0x367631){return _0x3e6fa6!==_0x367631;},'ruurz':_0x5d8d59(0x114)},_0x26d58e=JSON[_0x5d8d59(0x125)](fs[_0x5d8d59(0x11b)](packageFile,_0x4760c6['BaxGk'])),_0x58bf89=[];for(let _0x4ec5bd=0x0;_0x4760c6[_0x5d8d59(0x120)](_0x4ec5bd,frameworks[_0x5d8d59(0xef)]);_0x4ec5bd+=0x1){const _0x13a23c=_0x4760c6[_0x5d8d59(0x101)](findScriptsWithFramework,_0x26d58e[_0x5d8d59(0x121)],frameworks[_0x4ec5bd]);for(let _0x463d0d=0x0;_0x4760c6[_0x5d8d59(0x120)](_0x463d0d,_0x13a23c['length']);_0x463d0d+=0x1){_0x58bf89[_0x5d8d59(0x124)](_0x4760c6[_0x5d8d59(0x101)](getUpdatedCommand,_0x26d58e[_0x5d8d59(0x121)],_0x13a23c[_0x463d0d]));}_0x4760c6[_0x5d8d59(0x10c)](addPostInstallScript,_0x26d58e[_0x5d8d59(0x121)],_0x58bf89);}const _0x5b9725={..._0x26d58e[_0x5d8d59(0x121)]},_0x1bc08a=_0x5b9725;for(let _0x57d55e=0x0;_0x4760c6[_0x5d8d59(0xf6)](_0x57d55e,_0x58bf89[_0x5d8d59(0xef)]);_0x57d55e+=0x1){_0x1bc08a[_0x58bf89[_0x57d55e][0x0]]=_0x58bf89[_0x57d55e][0x1];}_0x4760c6[_0x5d8d59(0x11e)](JSON[_0x5d8d59(0x112)](_0x26d58e['scripts']),JSON['stringify'](_0x1bc08a))&&(logger[_0x5d8d59(0x12c)](_0x4760c6[_0x5d8d59(0x113)]),_0x26d58e['scripts']=_0x1bc08a,fs[_0x5d8d59(0x107)](packageFile,JSON['stringify'](_0x26d58e,null,0x2),_0x3d8914=>{const _0x4c7348=_0x5d8d59;_0x3d8914&&logger[_0x4c7348(0x10f)](_0x3d8914);}));};function findScriptsWithFramework(_0x218ae7,_0x4f5d43){const _0xfc8b82=a56_0x4b260b,_0x475a02={};_0x475a02['OTsXO']=function(_0x551b52,_0x3f4d88){return _0x551b52<_0x3f4d88;},_0x475a02['jkPNE']=_0xfc8b82(0x10a);const _0xf5c59c=_0x475a02,_0x51ab88=[],_0x527595=Object[_0xfc8b82(0x12d)](_0x218ae7);for(let _0x15c97f=0x0;_0xf5c59c['OTsXO'](_0x15c97f,_0x527595['length']);_0x15c97f+=0x1){_0x527595[_0x15c97f][0x1][_0xfc8b82(0xf0)](_0x4f5d43)&&!_0x527595[_0x15c97f][0x1][_0xfc8b82(0xf0)](_0xf5c59c[_0xfc8b82(0xfc)])&&_0x51ab88['push'](_0x527595[_0x15c97f][0x0]);}return _0x51ab88;}function getUpdatedCommand(_0x524d49,_0x291609){const _0x1cb72e=a56_0x4b260b,_0x3e6004={};_0x3e6004[_0x1cb72e(0xf8)]=function(_0x3a1654,_0x45fe40){return _0x3a1654!==_0x45fe40;},_0x3e6004[_0x1cb72e(0xee)]='browserstack-node-sdk',_0x3e6004[_0x1cb72e(0xf3)]=function(_0x27f1f4,_0x5e726a){return _0x27f1f4===_0x5e726a;};const _0x437c51=_0x3e6004,_0xc34954=_0x291609+_0x1cb72e(0x131),_0x45f079=_0x524d49[_0x291609],_0x3a218b=_0x45f079[_0x1cb72e(0xfd)]('\x20');for(const _0x39f0fe of frameworks){if(_0x437c51['DAhZa'](_0x3a218b[_0x1cb72e(0x12f)](_0x39f0fe),-0x1)){_0x3a218b[_0x1cb72e(0xf2)](_0x3a218b[_0x1cb72e(0x12f)](_0x39f0fe),0x0,_0x437c51['YXAwR']);break;}}let _0x4b4825=_0x3a218b[_0x1cb72e(0xf5)]('\x20');return _0x437c51[_0x1cb72e(0xf3)](_0x4b4825,_0x45f079)&&(_0x4b4825='browserstack-node-sdk\x20'+_0x45f079),[_0xc34954,_0x4b4825];}function sdkSetup(){const _0x376602=a56_0x4b260b,_0x2bd777={};_0x2bd777[_0x376602(0x103)]=_0x376602(0x123),_0x2bd777['aEmeK']='SDKSetup';const _0x323ddd=_0x2bd777;if(helper[_0x376602(0x100)](config))return;config[_0x376602(0x102)]=_0x323ddd[_0x376602(0x103)];try{utilities[_0x376602(0x132)](_0x323ddd['aEmeK'],{},config,'');}catch(_0x41d9e0){logger[_0x376602(0x10d)](_0x376602(0xfa)+_0x41d9e0);}}function a56_0x33bd(){const _0x155677=['info','entries','851274OJuJOg','indexOf','utf8','-browserstack','fireFunnelTestEvent','1472915KyTaci','2251506GPUeQS','YXAwR','length','includes','../helpers/helper','splice','XEJSL','npm\x20update\x20browserstack-node-sdk','join','QTekY','key','DAhZa','../helpers/logger','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','nightwatch','jkPNE','split','playwright','3999584TmDVcv','isUndefined','oanHf','source','xQxFa','/../../browserstack.yml.sample','JLwnG','5047640nwbRdr','writeFileSync','YOUR_ACCESS_KEY','kmNEt','browserstack-node-sdk','/package.json','oHawl','debug','Creating\x20configuration\x20file...','error','/../../browserstack.pw.yml.sample','node','stringify','ruurz','Adding\x20new\x20script(s)\x20in\x20package.json...','4266402lWnEaS','../helpers/utilities','1Vsapil','yargs','Setup\x20completed','\x20&&\x20npm\x20update\x20browserstack-node-sdk','readFileSync','EdVGD','jest','wFOFm','272660XGhJxz','gAAFi','scripts','load','node-setup','push','parse','kHwZT','cucumber-js','codeceptjs','nCQLq','postinstall','replace'];a56_0x33bd=function(){return _0x155677;};return a56_0x33bd();}logger['info'](a56_0x4b260b(0x119));
3
+ const a56_0x5f2e36=a56_0xc508;(function(_0x5c864e,_0x41b3f8){const _0x3e9fa2=a56_0xc508,_0xd79748=_0x5c864e();while(!![]){try{const _0x2050de=-parseInt(_0x3e9fa2(0x21a))/0x1+parseInt(_0x3e9fa2(0x226))/0x2+-parseInt(_0x3e9fa2(0x1f9))/0x3+-parseInt(_0x3e9fa2(0x1ea))/0x4+-parseInt(_0x3e9fa2(0x1dd))/0x5*(parseInt(_0x3e9fa2(0x1fb))/0x6)+-parseInt(_0x3e9fa2(0x20e))/0x7*(-parseInt(_0x3e9fa2(0x212))/0x8)+-parseInt(_0x3e9fa2(0x20b))/0x9*(-parseInt(_0x3e9fa2(0x21b))/0xa);if(_0x2050de===_0x41b3f8)break;else _0xd79748['push'](_0xd79748['shift']());}catch(_0xc6526c){_0xd79748['push'](_0xd79748['shift']());}}}(a56_0x4be6,0x53203));const fs=require('fs'),helper=require(a56_0x5f2e36(0x1f6)),utilities=require(a56_0x5f2e36(0x1db)),yaml=require(a56_0x5f2e36(0x1de)),yargs=require(a56_0x5f2e36(0x20c)),logger=require(a56_0x5f2e36(0x214))['winstonLogger'],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a56_0x5f2e36(0x1ff),configFile=process[a56_0x5f2e36(0x211)]()+a56_0x5f2e36(0x1f3),packageFile=process['cwd']()+a56_0x5f2e36(0x1fc),frameworks=[a56_0x5f2e36(0x205),a56_0x5f2e36(0x1ef),'cucumber-js',a56_0x5f2e36(0x1fe),'nightwatch',a56_0x5f2e36(0x1ed),'playwright'];let config;logger[a56_0x5f2e36(0x221)](a56_0x5f2e36(0x203)),createConfigurationFile(yargs['argv'][a56_0x5f2e36(0x21c)],yargs[a56_0x5f2e36(0x219)][a56_0x5f2e36(0x21f)],yargs[a56_0x5f2e36(0x219)][a56_0x5f2e36(0x1fd)]);try{sdkSetup();}catch(a56_0x2ae777){logger[a56_0x5f2e36(0x1e8)](a56_0x5f2e36(0x204)+a56_0x2ae777);}addScriptInPackageJson();function createConfigurationFile(_0x5e21e1,_0x52c305,_0xd29f18=![]){const _0x2357ce=a56_0x5f2e36,_0x1539d1={};_0x1539d1[_0x2357ce(0x224)]=_0x2357ce(0x210),_0x1539d1[_0x2357ce(0x209)]=_0x2357ce(0x201),_0x1539d1[_0x2357ce(0x1e9)]=_0x2357ce(0x220);const _0x5914ca=_0x1539d1;try{let _0x424235=fs['readFileSync'](_0xd29f18?configFileTemplatePW:configFileTemplate,_0x5914ca[_0x2357ce(0x224)]);_0x5e21e1&&(_0x424235=_0x424235[_0x2357ce(0x1e2)](_0x5914ca[_0x2357ce(0x209)],_0x5e21e1)),_0x52c305&&(_0x424235=_0x424235[_0x2357ce(0x1e2)](_0x5914ca[_0x2357ce(0x1e9)],_0x52c305)),config=yaml[_0x2357ce(0x1da)](_0x424235),fs[_0x2357ce(0x223)](configFile,_0x424235,_0x7fbf43=>{const _0x4b499b=_0x2357ce;_0x7fbf43&&logger[_0x4b499b(0x202)](_0x7fbf43);});}catch(_0x480dd1){logger[_0x2357ce(0x202)](_0x480dd1);}}function addPostInstallScript(_0x5d2091,_0x5db993){const _0x3917fe=a56_0x5f2e36,_0xd33421={};_0xd33421[_0x3917fe(0x225)]=_0x3917fe(0x1f2),_0xd33421[_0x3917fe(0x1f4)]=_0x3917fe(0x1e5),_0xd33421[_0x3917fe(0x1e7)]=_0x3917fe(0x1e4);const _0x1b3e2c=_0xd33421;let _0x585429=_0x5d2091[_0x1b3e2c[_0x3917fe(0x225)]];if(_0x585429&&_0x585429[_0x3917fe(0x1df)](_0x1b3e2c[_0x3917fe(0x1f4)]))return;!_0x585429?_0x585429=_0x1b3e2c['VDDwL']:_0x585429+=_0x1b3e2c['jxkcv'],_0x5db993['push']([_0x1b3e2c[_0x3917fe(0x225)],_0x585429]);}function addScriptInPackageJson(){const _0x5e508d=a56_0x5f2e36,_0x5f52d3={'UEfXQ':_0x5e508d(0x210),'yeJEs':function(_0x5bef03,_0x45f90b){return _0x5bef03<_0x45f90b;},'KYaRZ':function(_0x18511a,_0x11050c,_0x94516f){return _0x18511a(_0x11050c,_0x94516f);},'wqzLl':function(_0x41292d,_0x5db440){return _0x41292d!==_0x5db440;},'Zaomp':_0x5e508d(0x1dc)},_0x33c6ae=JSON[_0x5e508d(0x206)](fs['readFileSync'](packageFile,_0x5f52d3[_0x5e508d(0x200)])),_0x1916bf=[];for(let _0x3b47c0=0x0;_0x5f52d3[_0x5e508d(0x1f8)](_0x3b47c0,frameworks['length']);_0x3b47c0+=0x1){const _0x21e85e=_0x5f52d3[_0x5e508d(0x215)](findScriptsWithFramework,_0x33c6ae[_0x5e508d(0x20f)],frameworks[_0x3b47c0]);for(let _0x6aa609=0x0;_0x5f52d3[_0x5e508d(0x1f8)](_0x6aa609,_0x21e85e[_0x5e508d(0x1e0)]);_0x6aa609+=0x1){_0x1916bf['push'](_0x5f52d3[_0x5e508d(0x215)](getUpdatedCommand,_0x33c6ae[_0x5e508d(0x20f)],_0x21e85e[_0x6aa609]));}_0x5f52d3[_0x5e508d(0x215)](addPostInstallScript,_0x33c6ae['scripts'],_0x1916bf);}const _0x2f7272={..._0x33c6ae[_0x5e508d(0x20f)]},_0x502cd0=_0x2f7272;for(let _0x52cb49=0x0;_0x5f52d3[_0x5e508d(0x1f8)](_0x52cb49,_0x1916bf['length']);_0x52cb49+=0x1){_0x502cd0[_0x1916bf[_0x52cb49][0x0]]=_0x1916bf[_0x52cb49][0x1];}_0x5f52d3[_0x5e508d(0x1eb)](JSON[_0x5e508d(0x218)](_0x33c6ae['scripts']),JSON[_0x5e508d(0x218)](_0x502cd0))&&(logger[_0x5e508d(0x221)](_0x5f52d3[_0x5e508d(0x208)]),_0x33c6ae['scripts']=_0x502cd0,fs[_0x5e508d(0x223)](packageFile,JSON[_0x5e508d(0x218)](_0x33c6ae,null,0x2),_0x1b7092=>{_0x1b7092&&logger['error'](_0x1b7092);}));};function findScriptsWithFramework(_0x44d0e5,_0x58604b){const _0x25f5a9=a56_0x5f2e36,_0x303c3e={};_0x303c3e[_0x25f5a9(0x207)]=function(_0x331dec,_0x661b82){return _0x331dec<_0x661b82;},_0x303c3e[_0x25f5a9(0x1e3)]=_0x25f5a9(0x1e1);const _0x11fc37=_0x303c3e,_0x57e9a8=[],_0x244493=Object['entries'](_0x44d0e5);for(let _0x23f24f=0x0;_0x11fc37[_0x25f5a9(0x207)](_0x23f24f,_0x244493['length']);_0x23f24f+=0x1){_0x244493[_0x23f24f][0x1][_0x25f5a9(0x1df)](_0x58604b)&&!_0x244493[_0x23f24f][0x1][_0x25f5a9(0x1df)](_0x11fc37['YjPtf'])&&_0x57e9a8[_0x25f5a9(0x217)](_0x244493[_0x23f24f][0x0]);}return _0x57e9a8;}function a56_0xc508(_0x7141f4,_0x2ea334){const _0x4be6be=a56_0x4be6();return a56_0xc508=function(_0xc508e5,_0x2ec672){_0xc508e5=_0xc508e5-0x1da;let _0x37758e=_0x4be6be[_0xc508e5];return _0x37758e;},a56_0xc508(_0x7141f4,_0x2ea334);}function getUpdatedCommand(_0x69a7ac,_0x3778f1){const _0x1b873f=a56_0x5f2e36,_0x5a397f={};_0x5a397f[_0x1b873f(0x213)]=function(_0x1b47bb,_0x1874e9){return _0x1b47bb!==_0x1874e9;},_0x5a397f['jCXip']=_0x1b873f(0x1e1),_0x5a397f['zuAHL']=function(_0x4f73c1,_0x12e286){return _0x4f73c1===_0x12e286;};const _0x10d332=_0x5a397f,_0x4eba1e=_0x3778f1+_0x1b873f(0x1ee),_0x4d4efd=_0x69a7ac[_0x3778f1],_0x20f7cf=_0x4d4efd[_0x1b873f(0x1f0)]('\x20');for(const _0x267877 of frameworks){if(_0x10d332[_0x1b873f(0x213)](_0x20f7cf['indexOf'](_0x267877),-0x1)){_0x20f7cf[_0x1b873f(0x21e)](_0x20f7cf[_0x1b873f(0x21d)](_0x267877),0x0,_0x10d332[_0x1b873f(0x216)]);break;}}let _0x53c0c1=_0x20f7cf['join']('\x20');return _0x10d332[_0x1b873f(0x20d)](_0x53c0c1,_0x4d4efd)&&(_0x53c0c1='browserstack-node-sdk\x20'+_0x4d4efd),[_0x4eba1e,_0x53c0c1];}function sdkSetup(){const _0x4397d1=a56_0x5f2e36,_0x20565b={};_0x20565b[_0x4397d1(0x20a)]=_0x4397d1(0x1f1),_0x20565b['RtzHf']=_0x4397d1(0x1f5);const _0x26f3ca=_0x20565b;if(helper[_0x4397d1(0x1f7)](config))return;config[_0x4397d1(0x1e6)]=_0x26f3ca[_0x4397d1(0x20a)];try{utilities[_0x4397d1(0x222)](_0x26f3ca[_0x4397d1(0x1fa)],{},config,'');}catch(_0x4a9910){logger[_0x4397d1(0x1e8)](_0x4397d1(0x204)+_0x4a9910);}}logger[a56_0x5f2e36(0x221)](a56_0x5f2e36(0x1ec));function a56_0x4be6(){const _0x99b4a8=['indexOf','splice','key','YOUR_ACCESS_KEY','info','fireFunnelTestEvent','writeFileSync','cMkzC','ExPKT','1229640uOwRur','load','../helpers/utilities','Adding\x20new\x20script(s)\x20in\x20package.json...','2334565OvnTtI','js-yaml','includes','length','browserstack-node-sdk','replace','YjPtf','\x20&&\x20npm\x20update\x20browserstack-node-sdk','npm\x20update\x20browserstack-node-sdk','source','jxkcv','debug','IUYTp','1028172MnGlrl','wqzLl','Setup\x20completed','codeceptjs','-browserstack','jest','split','node-setup','postinstall','/browserstack.yml','VDDwL','SDKSetup','../helpers/helper','isUndefined','yeJEs','186261cksEaA','RtzHf','6GeEYhg','/package.json','playwright','node','/../../browserstack.pw.yml.sample','UEfXQ','YOUR_USERNAME','error','Creating\x20configuration\x20file...','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','mocha','parse','yjNmK','Zaomp','JDDOK','BfBES','594HmtUto','yargs','zuAHL','629769pgitiK','scripts','utf8','cwd','56SmjNTi','hjFXS','../helpers/logger','KYaRZ','jCXip','push','stringify','argv','216997NiPBPr','14990eyRLgC','username'];a56_0x4be6=function(){return _0x99b4a8;};return a56_0x4be6();}
@@ -1 +1 @@
1
- const a57_0x42fe1b=a57_0x5139;(function(_0x1a3456,_0x27f411){const _0x221b22=a57_0x5139,_0x54bfce=_0x1a3456();while(!![]){try{const _0x5e67c2=parseInt(_0x221b22(0x18a))/0x1*(parseInt(_0x221b22(0x1a3))/0x2)+parseInt(_0x221b22(0x188))/0x3+parseInt(_0x221b22(0x1d7))/0x4+parseInt(_0x221b22(0x180))/0x5*(parseInt(_0x221b22(0x1a1))/0x6)+parseInt(_0x221b22(0x19e))/0x7*(-parseInt(_0x221b22(0x191))/0x8)+parseInt(_0x221b22(0x19f))/0x9+-parseInt(_0x221b22(0x196))/0xa;if(_0x5e67c2===_0x27f411)break;else _0x54bfce['push'](_0x54bfce['shift']());}catch(_0x36cc96){_0x54bfce['push'](_0x54bfce['shift']());}}}(a57_0x505a,0xcb11e));function a57_0x5139(_0x4cc3aa,_0x22d130){const _0x505aea=a57_0x505a();return a57_0x5139=function(_0x5139a1,_0x3a3dbd){_0x5139a1=_0x5139a1-0x17a;let _0x43a0b0=_0x505aea[_0x5139a1];return _0x43a0b0;},a57_0x5139(_0x4cc3aa,_0x22d130);}const Worker=require('jest-worker')[a57_0x42fe1b(0x1ca)],Emittery=require(a57_0x42fe1b(0x1a2)),pLimit=require(a57_0x42fe1b(0x1a8)),{parentPort}=require('worker_threads'),util=require(a57_0x42fe1b(0x1d4)),logger=require(a57_0x42fe1b(0x17e))['winstonLogger'],PerformanceTester=require(a57_0x42fe1b(0x1c2)),PerformanceEvents=require('../../helpers/performance/constants')[a57_0x42fe1b(0x1af)],{debug}=require(a57_0x42fe1b(0x187)),TestHubHandler=require(a57_0x42fe1b(0x198));function a57_0x505a(){const _0x5b7c7b=['format','stop','waitForExit','end','../../helpers/performance/performance-tester','platform-run-failure','vPNUM','debug','config','VYMqB','mCksD','parallelCucumberRun','Worker','exitCode','exit','\x20for','vanillaWorker','_workerPool','iVkFQ','xheGy','Running\x20','parallelVanillaRun','util','test-file-failure','Workers\x20failed\x20to\x20exit\x20gracefully','657744Jzbsyg','error','all','platform-run-success','ZrSHL','../../helpers/logger','ZZfpr','85lETgir','SDK_SETUP','platformCaps','emit','file','failureCount','TdNRF','../../helpers/test-observability/utils','2595882TnfWJp','getWorkers','86598qwwmLk','map','SNJDn','getStderr','log','resolve','json','4903952jEMQax','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','_child','SIpvL','zTucU','15163430FPMxBw','Xkchn','../../helpers/testhub/testhubHandler','push','RLIqU','postMessage','worker','test-file-success','7hADYNw','4150530CjwEjb','LFLdM','243822uuHXcp','emittery','18bSXVEh','platforms','./testWorker.js','length','Exception\x20in\x20sending\x20worker\x20message\x20','p-limit','HRWnN','stderr','Fuwom','test-file-start','JLpBs','platform','EVENTS','configuration','pipe','VSELe','icxgo','platform-run-start','tueHy','then','NcMWs','todWh','stdout','uIHns','fmbvc','platformIndex','getStdout'];a57_0x505a=function(){return _0x5b7c7b;};return a57_0x505a();}exports['parallelTestRun']=(_0x57699f,_0x262299,_0x50b653)=>new Promise(async _0x1760ba=>{const _0x2d6fdd=a57_0x42fe1b,_0x1c1952={'iVkFQ':_0x2d6fdd(0x185),'vPNUM':function(_0x473cce,_0x181715){return _0x473cce+_0x181715;},'VYMqB':'results','pAznV':_0x2d6fdd(0x1d6),'LFLdM':function(_0x2e6d4e,_0x419ec7){return _0x2e6d4e(_0x419ec7);},'HRWnN':function(_0x3bd44c,_0x60594e){return _0x3bd44c(_0x60594e);},'uIHns':_0x2d6fdd(0x1ac),'Fuwom':_0x2d6fdd(0x1a5),'HnjFA':_0x2d6fdd(0x19c),'fmbvc':'json','Xkchn':'pipe','lkspd':function(_0x31e5de,_0x3ef056){return _0x31e5de*_0x3ef056;},'icxgo':_0x2d6fdd(0x19d),'eXIPg':_0x2d6fdd(0x1d5)},_0xdec388=_0x50b653[_0x2d6fdd(0x1c6)],_0x2d85c6={},_0x19a53b=new Worker(require[_0x2d6fdd(0x18f)](_0x1c1952[_0x2d6fdd(0x1ab)]),{'exposedMethods':[_0x1c1952['HnjFA']],'forkOptions':{'serialization':_0x1c1952[_0x2d6fdd(0x1bb)],'stdio':_0x1c1952[_0x2d6fdd(0x197)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x1c1952['lkspd'](_0x262299,0x1),'enableWorkerThreads':!![]}),_0x44dc17=new Emittery();_0x44dc17['on'](_0x1c1952[_0x2d6fdd(0x1b3)],_0x189c60=>{const _0x525a32=_0x2d6fdd;_0x2d85c6[_0x189c60[0x0]]?(_0x2d85c6[_0x189c60[0x0]][_0x1c1952[_0x525a32(0x1d0)]]=_0x1c1952[_0x525a32(0x1c4)](_0x2d85c6[_0x189c60[0x0]][_0x1c1952[_0x525a32(0x1d0)]],_0x189c60[0x1][_0x1c1952[_0x525a32(0x1d0)]]),_0x2d85c6[_0x189c60[0x0]][_0x1c1952['VYMqB']]=[..._0x2d85c6[_0x189c60[0x0]][_0x1c1952['VYMqB']],..._0x189c60[0x1][_0x1c1952[_0x525a32(0x1c7)]]]):_0x2d85c6[_0x189c60[0x0]]={'failureCount':_0x189c60[0x1][_0x1c1952[_0x525a32(0x1d0)]],'results':[..._0x189c60[0x1][_0x1c1952[_0x525a32(0x1c7)]]]};}),_0x44dc17['on'](_0x1c1952['eXIPg'],_0x1cdeca=>console['log'](_0x1cdeca[0x1]));_0x19a53b['getStdout']()&&_0x19a53b[_0x2d6fdd(0x1bd)]()['pipe'](process[_0x2d6fdd(0x1b9)]);_0x19a53b[_0x2d6fdd(0x18d)]()&&_0x19a53b['getStderr']()['pipe'](process[_0x2d6fdd(0x1aa)]);const _0x45a872=async()=>{const _0x2696c2=_0x2d6fdd,{forceExited:_0x191342}=await _0x19a53b[_0x2696c2(0x1c1)]();_0x191342&&console['error'](_0x1c1952['pAznV']);try{await TestHubHandler[_0x2696c2(0x1bf)]();}catch(_0x4785fc){_0x1c1952[_0x2696c2(0x1a0)](debug,_0x2696c2(0x192)+_0x4785fc);}_0x1c1952[_0x2696c2(0x1a9)](_0x1760ba,_0x2d85c6);},_0x5e8f8f=_0x1c1952[_0x2d6fdd(0x1a9)](pLimit,_0x1c1952['lkspd'](_0x262299,0x1)),_0x30e736=_0x2a1ce6=>_0x5e8f8f(async()=>{const _0x27cc91=_0x2d6fdd;await _0x44dc17[_0x27cc91(0x183)](_0x1c1952[_0x27cc91(0x1ba)],_0x2a1ce6);const _0x324910=_0x19a53b[_0x27cc91(0x19c)](_0x2a1ce6,_0xdec388);try{parentPort&&_0x324910['UNSTABLE_onCustomMessage'](_0x542db2=>{const _0x518115=_0x27cc91;try{parentPort[_0x518115(0x19b)](_0x542db2);}catch(_0x281b26){logger[_0x518115(0x1c5)](_0x518115(0x1a7)+util['format'](_0x281b26));}});}catch(_0x5504ae){logger['debug']('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x27cc91(0x1be)](_0x5504ae));}return _0x324910;});PerformanceTester[_0x2d6fdd(0x1c1)](PerformanceEvents[_0x2d6fdd(0x181)]),Promise[_0x2d6fdd(0x17b)](_0x57699f['map'](_0x5218d8=>_0x30e736(_0x5218d8)[_0x2d6fdd(0x1b6)](_0x390656=>_0x44dc17[_0x2d6fdd(0x183)](_0x2d6fdd(0x19d),[_0x5218d8['configuration'][_0x2d6fdd(0x1ae)],_0x390656]),_0x1299b6=>_0x44dc17[_0x2d6fdd(0x183)]('test-file-failure',[_0x5218d8,_0x1299b6]))))[_0x2d6fdd(0x1b6)](_0x45a872,_0x45a872);}),exports[a57_0x42fe1b(0x1c9)]=(_0x2063ed,_0x4e0f2d,_0x151a6d,_0x5a4fed,_0x23c93f)=>{const _0x24bd9e=a57_0x42fe1b,_0x1f5f00={'XZcDj':_0x24bd9e(0x1d6),'qPnBi':function(_0x257166,_0x42ed9d){return _0x257166(_0x42ed9d);},'mCksD':_0x24bd9e(0x1b4),'xheGy':_0x24bd9e(0x1a5),'VSELe':'cucumberWorker','hieSW':_0x24bd9e(0x190),'todWh':'pipe','RLIqU':_0x24bd9e(0x17c),'tueHy':'platform-run-failure','SIpvL':function(_0x4fa2f2,_0x1043af){return _0x4fa2f2(_0x1043af);}};return new Promise(_0x19ab24=>{const _0x3a73d7=_0x24bd9e,_0x554d75={};_0x554d75['TdNRF']=_0x1f5f00[_0x3a73d7(0x1c8)];const _0xcf6f8c=_0x554d75,_0xc1a22e=[],_0x9d1707=new Worker(require[_0x3a73d7(0x18f)](_0x1f5f00[_0x3a73d7(0x1d1)]),{'exposedMethods':[_0x1f5f00[_0x3a73d7(0x1b2)]],'forkOptions':{'serialization':_0x1f5f00['hieSW'],'stdio':_0x1f5f00[_0x3a73d7(0x1b8)]},'numWorkers':_0x2063ed[_0x3a73d7(0x1a6)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x42e4f5=new Emittery();_0x42e4f5['on'](_0x1f5f00[_0x3a73d7(0x19a)],_0x37f93a=>{const _0x3edd55=_0x3a73d7;_0xc1a22e[_0x3edd55(0x199)]([_0x37f93a[0x0],_0x37f93a[0x1]]);}),_0x42e4f5['on'](_0x1f5f00[_0x3a73d7(0x1b5)],_0x308fcd=>console[_0x3a73d7(0x18e)](_0x308fcd[0x1]));_0x9d1707[_0x3a73d7(0x1bd)]()&&_0x9d1707[_0x3a73d7(0x1bd)]()[_0x3a73d7(0x1b1)](process['stdout']);_0x9d1707['getStderr']()&&_0x9d1707[_0x3a73d7(0x18d)]()['pipe'](process['stderr']);const _0x1904be=async()=>{const _0x26afa1=_0x3a73d7,{forceExited:_0x3cebf1}=await _0x9d1707[_0x26afa1(0x1c1)]();_0x3cebf1&&console[_0x26afa1(0x17a)](_0x1f5f00['XZcDj']),_0x1f5f00['qPnBi'](_0x19ab24,_0xc1a22e);},_0x2068fa=_0x1f5f00[_0x3a73d7(0x194)](pLimit,_0x2063ed[_0x3a73d7(0x1a6)]||0x1),_0x10ee83=(_0x80211d,_0x40ab46)=>_0x2068fa(async()=>{const _0x5e8567=_0x3a73d7;return await _0x42e4f5[_0x5e8567(0x183)](_0xcf6f8c[_0x5e8567(0x186)],_0x80211d),_0x4e0f2d[_0x5e8567(0x182)]=_0x151a6d[_0x5e8567(0x1a4)][_0x40ab46],_0x4e0f2d[_0x5e8567(0x1bc)]=_0x40ab46,_0x9d1707['cucumberWorker'](_0x80211d,_0x4e0f2d,_0x151a6d,_0x5a4fed,_0x23c93f);});Promise[_0x3a73d7(0x17b)](_0x2063ed[_0x3a73d7(0x18b)]((_0x212e72,_0x1ff1fb)=>_0x10ee83(_0x212e72,_0x1ff1fb)[_0x3a73d7(0x1b6)](_0x298839=>_0x42e4f5['emit'](_0x3a73d7(0x17c),[_0x212e72,_0x298839]),_0x495eb3=>_0x42e4f5[_0x3a73d7(0x183)](_0x3a73d7(0x1c3),[_0x212e72,_0x495eb3]))))['then'](_0x1904be,_0x1904be);});},exports[a57_0x42fe1b(0x1d3)]=(_0xc47d6a,_0x2e4819)=>new Promise(_0x1654e8=>{const _0x2cba2c=a57_0x42fe1b,_0x507364={'cqJqz':function(_0x14d65a,_0xa80d29){return _0x14d65a===_0xa80d29;},'SNJDn':function(_0x838ffd,_0x5bfacc){return _0x838ffd!==_0x5bfacc;},'iXTaX':_0x2cba2c(0x1cc),'hGyQc':_0x2cba2c(0x1d6),'ZrSHL':function(_0x2d6751,_0x47c871){return _0x2d6751(_0x47c871);},'oHKmY':_0x2cba2c(0x1a5),'zTucU':'vanillaWorker','NcMWs':_0x2cba2c(0x190),'EeWts':_0x2cba2c(0x1b1),'ZZfpr':_0x2cba2c(0x19d),'JLpBs':_0x2cba2c(0x1d5),'ExRSf':function(_0x3502a1,_0x129948){return _0x3502a1(_0x129948);}},_0x483988={},_0x2c0d8f=new Worker(require[_0x2cba2c(0x18f)](_0x507364['oHKmY']),{'exposedMethods':[_0x507364[_0x2cba2c(0x195)]],'forkOptions':{'serialization':_0x507364[_0x2cba2c(0x1b7)],'stdio':_0x507364['EeWts']},'numWorkers':_0x2e4819,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x1a69f4=new Emittery();_0x1a69f4['on'](_0x507364[_0x2cba2c(0x17f)],_0x2a46ea=>{const _0xb7d32d=_0x2cba2c;_0x2a46ea[0x0]&&logger['info'](_0xb7d32d(0x1d2)+_0x2a46ea[0x1]+_0xb7d32d(0x1cd),_0x2a46ea[0x0]);}),_0x1a69f4['on'](_0x507364[_0x2cba2c(0x1ad)],_0x28909d=>{const _0x16d8b4=_0x2cba2c;process[_0x16d8b4(0x1cb)]=0x1;});_0x2c0d8f['getStdout']()&&_0x2c0d8f[_0x2cba2c(0x1bd)]()['pipe'](process[_0x2cba2c(0x1b9)]);_0x2c0d8f[_0x2cba2c(0x18d)]()&&_0x2c0d8f['getStderr']()['pipe'](process[_0x2cba2c(0x1aa)]);const _0x1f5015=async()=>{const _0x221909=_0x2cba2c;let _0x165740=0x0;const _0x96c682=_0x2c0d8f[_0x221909(0x1cf)][_0x221909(0x189)](),_0x3e9759=()=>{},_0x418a0b=_0x96c682['map'](async _0x3fe53e=>{const _0x4819f3=_0x221909,_0x4d0818={'japUH':function(_0x459ec3,_0x234e4d){return _0x507364['cqJqz'](_0x459ec3,_0x234e4d);},'xibOy':function(_0xeb7f01,_0xc06fb8){const _0x5e33e1=a57_0x5139;return _0x507364[_0x5e33e1(0x18c)](_0xeb7f01,_0xc06fb8);}};_0x3fe53e['send']([0x2,![]],_0x3e9759,_0x3e9759,_0x3e9759),_0x3fe53e[_0x4819f3(0x193)]['on'](_0x507364['iXTaX'],_0x5f2a3a=>{_0x4d0818['japUH'](_0x165740,0x0)&&_0x4d0818['xibOy'](_0x5f2a3a,0x0)&&(_0x165740=_0x5f2a3a);}),await _0x3fe53e[_0x4819f3(0x1c0)]();});await Promise[_0x221909(0x17b)](_0x418a0b),process['exitCode']=_0x165740;const {forceExited:_0x19b9ac}=await _0x2c0d8f[_0x221909(0x1c1)]();_0x19b9ac&&console['error'](_0x507364['hGyQc']),_0x507364[_0x221909(0x17d)](_0x1654e8,_0x483988);},_0x3cac1f=_0x507364['ExRSf'](pLimit,_0x2e4819),_0x4b7744=_0x4a2aa3=>_0x3cac1f(async()=>{const _0x52bafc=_0x2cba2c;return _0x2c0d8f[_0x52bafc(0x1ce)](_0x4a2aa3);});Promise['all'](_0xc47d6a[_0x2cba2c(0x18b)](_0x123464=>_0x4b7744(_0x123464)[_0x2cba2c(0x1b6)](_0x71b5e6=>_0x1a69f4[_0x2cba2c(0x183)](_0x2cba2c(0x19d),[_0x123464[_0x2cba2c(0x1b0)][_0x2cba2c(0x1ae)],_0x123464['configuration'][_0x2cba2c(0x184)]]),_0x45b32c=>_0x1a69f4[_0x2cba2c(0x183)](_0x2cba2c(0x1d5),[_0x123464,_0x45b32c]))))['then'](_0x1f5015,_0x1f5015);});
1
+ function a57_0x1c7a(_0x37170d,_0x2e91dc){const _0x2e22f0=a57_0x2e22();return a57_0x1c7a=function(_0x1c7ade,_0x22d9d4){_0x1c7ade=_0x1c7ade-0x1c4;let _0xfc7e75=_0x2e22f0[_0x1c7ade];return _0xfc7e75;},a57_0x1c7a(_0x37170d,_0x2e91dc);}function a57_0x2e22(){const _0x26cf80=['platformIndex','../../helpers/performance/performance-tester','wGLsU','SDK_SETUP','config','EVENTS','util','oJxSG','platform','getStdout','test-file-failure','all','vanillaWorker','aGLDK','20rieIeH','platformCaps','_child','OlIVg','KqvUi','waitForExit','../../helpers/testhub/testhubHandler','Workers\x20failed\x20to\x20exit\x20gracefully','platform-run-start','uWfIa','postMessage','aBiVO','mZNbA','debug','3010736IHNQOT','_workerPool','Worker','resolve','VmbbH','format','3063473CBtRSo','iuoyh','GcBHY','info','27238986zccwOc','p-limit','UNSTABLE_onCustomMessage','LPKpX','platform-run-success','OwPtz','86848YNoaQI','nZyDw','6FcccrG','ZrGRb','./testWorker.js','worker_threads','\x20for','Exception\x20in\x20sending\x20worker\x20message\x20','Idwku','JHZcG','platforms','stderr','pipe','sSkfw','parallelVanillaRun','cucumberWorker','zqqZC','configuration','emit','exitCode','tKiYf','../../helpers/test-observability/utils','../../helpers/logger','wpNvI','fpbes','../../helpers/performance/constants','YtoIi','map','getWorkers','json','getStderr','10314504FVwzLh','nIJpZ','exit','eZEGL','then','test-file-success','platform-run-failure','worker','mELfh','end','483116sCfTWx','UuGNU','error','zAvcF','CValr','1793045dPIpVr','push','PPHyc','wLQSK','stdout','parallelCucumberRun','file'];a57_0x2e22=function(){return _0x26cf80;};return a57_0x2e22();}const a57_0x3fa19a=a57_0x1c7a;(function(_0x1c01f5,_0x53531e){const _0x23f1e1=a57_0x1c7a,_0x5372ec=_0x1c01f5();while(!![]){try{const _0x17b4a0=parseInt(_0x23f1e1(0x1fb))/0x1+-parseInt(_0x23f1e1(0x1f6))/0x2*(-parseInt(_0x23f1e1(0x1cf))/0x3)+parseInt(_0x23f1e1(0x1cd))/0x4*(-parseInt(_0x23f1e1(0x210))/0x5)+parseInt(_0x23f1e1(0x1ec))/0x6+parseInt(_0x23f1e1(0x224))/0x7+-parseInt(_0x23f1e1(0x21e))/0x8+-parseInt(_0x23f1e1(0x1c7))/0x9;if(_0x17b4a0===_0x53531e)break;else _0x5372ec['push'](_0x5372ec['shift']());}catch(_0x2938eb){_0x5372ec['push'](_0x5372ec['shift']());}}}(a57_0x2e22,0xe6424));const Worker=require('jest-worker')[a57_0x3fa19a(0x220)],Emittery=require('emittery'),pLimit=require(a57_0x3fa19a(0x1c8)),{parentPort}=require(a57_0x3fa19a(0x1d2)),util=require(a57_0x3fa19a(0x208)),logger=require(a57_0x3fa19a(0x1e3))['winstonLogger'],PerformanceTester=require(a57_0x3fa19a(0x203)),PerformanceEvents=require(a57_0x3fa19a(0x1e6))[a57_0x3fa19a(0x207)],{debug}=require(a57_0x3fa19a(0x1e2)),TestHubHandler=require(a57_0x3fa19a(0x216));exports['parallelTestRun']=(_0x2bad66,_0x4dc39d,_0x4f157f)=>new Promise(async _0x17546c=>{const _0x2b524f=a57_0x3fa19a,_0x11940d={'Idwku':'failureCount','GcBHY':function(_0x349757,_0x46195b){return _0x349757+_0x46195b;},'wLQSK':'results','fpbes':'Workers\x20failed\x20to\x20exit\x20gracefully','wpNvI':function(_0x124061,_0x6f7a75){return _0x124061(_0x6f7a75);},'OwPtz':function(_0x45ec72,_0x526823){return _0x45ec72(_0x526823);},'khCVe':'test-file-start','nZyDw':_0x2b524f(0x1d1),'mELfh':'worker','aGLDK':_0x2b524f(0x1ea),'Uhwih':'pipe','UREbr':function(_0x20b849,_0x160b3d){return _0x20b849*_0x160b3d;},'aBiVO':_0x2b524f(0x1f1),'nIJpZ':_0x2b524f(0x20c),'LPKpX':function(_0x26230c,_0x453649){return _0x26230c(_0x453649);},'OlIVg':function(_0x5b438f,_0x4612a3){return _0x5b438f*_0x4612a3;}},_0x59bb42=_0x4f157f[_0x2b524f(0x206)],_0x56c65b={},_0x14ca30=new Worker(require[_0x2b524f(0x221)](_0x11940d[_0x2b524f(0x1ce)]),{'exposedMethods':[_0x11940d[_0x2b524f(0x1f4)]],'forkOptions':{'serialization':_0x11940d[_0x2b524f(0x20f)],'stdio':_0x11940d['Uhwih']},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x11940d['UREbr'](_0x4dc39d,0x1),'enableWorkerThreads':!![]}),_0x53e1a6=new Emittery();_0x53e1a6['on'](_0x11940d[_0x2b524f(0x21b)],_0x1587b4=>{const _0xf7e0f7=_0x2b524f;_0x56c65b[_0x1587b4[0x0]]?(_0x56c65b[_0x1587b4[0x0]][_0x11940d['Idwku']]=_0x11940d[_0xf7e0f7(0x1c5)](_0x56c65b[_0x1587b4[0x0]][_0x11940d['Idwku']],_0x1587b4[0x1][_0x11940d[_0xf7e0f7(0x1d5)]]),_0x56c65b[_0x1587b4[0x0]][_0x11940d['wLQSK']]=[..._0x56c65b[_0x1587b4[0x0]][_0x11940d[_0xf7e0f7(0x1fe)]],..._0x1587b4[0x1][_0x11940d['wLQSK']]]):_0x56c65b[_0x1587b4[0x0]]={'failureCount':_0x1587b4[0x1][_0x11940d[_0xf7e0f7(0x1d5)]],'results':[..._0x1587b4[0x1][_0x11940d['wLQSK']]]};}),_0x53e1a6['on'](_0x11940d[_0x2b524f(0x1ed)],_0x1719d2=>console['log'](_0x1719d2[0x1]));_0x14ca30[_0x2b524f(0x20b)]()&&_0x14ca30[_0x2b524f(0x20b)]()['pipe'](process[_0x2b524f(0x1ff)]);_0x14ca30[_0x2b524f(0x1eb)]()&&_0x14ca30[_0x2b524f(0x1eb)]()[_0x2b524f(0x1d9)](process[_0x2b524f(0x1d8)]);const _0x3d026d=async()=>{const _0x303917=_0x2b524f,{forceExited:_0x1090cd}=await _0x14ca30[_0x303917(0x1f5)]();_0x1090cd&&console[_0x303917(0x1f8)](_0x11940d[_0x303917(0x1e5)]);try{await TestHubHandler['stop']();}catch(_0x1c8066){_0x11940d[_0x303917(0x1e4)](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x1c8066);}_0x11940d[_0x303917(0x1cc)](_0x17546c,_0x56c65b);},_0x13d9c5=_0x11940d[_0x2b524f(0x1ca)](pLimit,_0x11940d[_0x2b524f(0x213)](_0x4dc39d,0x1)),_0x5e554f=_0x29bf09=>_0x13d9c5(async()=>{const _0x7781c5=_0x2b524f;await _0x53e1a6[_0x7781c5(0x1df)](_0x11940d['khCVe'],_0x29bf09);const _0x35bc57=_0x14ca30[_0x7781c5(0x1f3)](_0x29bf09,_0x59bb42);try{parentPort&&_0x35bc57[_0x7781c5(0x1c9)](_0x1d5311=>{const _0x555496=_0x7781c5;try{parentPort[_0x555496(0x21a)](_0x1d5311);}catch(_0x31f6f9){logger[_0x555496(0x21d)](_0x555496(0x1d4)+util[_0x555496(0x223)](_0x31f6f9));}});}catch(_0x13b32e){logger['debug']('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x7781c5(0x223)](_0x13b32e));}return _0x35bc57;});PerformanceTester['end'](PerformanceEvents[_0x2b524f(0x205)]),Promise[_0x2b524f(0x20d)](_0x2bad66[_0x2b524f(0x1e8)](_0x28121b=>_0x5e554f(_0x28121b)[_0x2b524f(0x1f0)](_0x2e20b5=>_0x53e1a6['emit'](_0x2b524f(0x1f1),[_0x28121b[_0x2b524f(0x1de)]['platform'],_0x2e20b5]),_0x1f5529=>_0x53e1a6[_0x2b524f(0x1df)](_0x2b524f(0x20c),[_0x28121b,_0x1f5529]))))[_0x2b524f(0x1f0)](_0x3d026d,_0x3d026d);}),exports[a57_0x3fa19a(0x200)]=(_0x36a177,_0xf8ad35,_0x16a5c4,_0x1cca49,_0x2ddbbb)=>{const _0x3a77e8=a57_0x3fa19a,_0x147653={'UuGNU':_0x3a77e8(0x217),'mZNbA':function(_0xf0f95,_0x12ccdc){return _0xf0f95(_0x12ccdc);},'CValr':_0x3a77e8(0x218),'eZEGL':_0x3a77e8(0x1d1),'VmbbH':_0x3a77e8(0x1dc),'uWfIa':_0x3a77e8(0x1ea),'hiLLY':_0x3a77e8(0x1d9),'gTugX':_0x3a77e8(0x1cb),'AaDQL':_0x3a77e8(0x1f2),'oJxSG':function(_0x203936,_0x5a0f7f){return _0x203936(_0x5a0f7f);}};return new Promise(_0x1d45d7=>{const _0x593a7b=_0x3a77e8,_0x3bd0fc={};_0x3bd0fc['tKiYf']=_0x147653[_0x593a7b(0x1fa)];const _0x49fab8=_0x3bd0fc,_0x856d1a=[],_0x750722=new Worker(require[_0x593a7b(0x221)](_0x147653[_0x593a7b(0x1ef)]),{'exposedMethods':[_0x147653[_0x593a7b(0x222)]],'forkOptions':{'serialization':_0x147653[_0x593a7b(0x219)],'stdio':_0x147653['hiLLY']},'numWorkers':_0x36a177['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x1bed29=new Emittery();_0x1bed29['on'](_0x147653['gTugX'],_0x3b6895=>{const _0x136f3d=_0x593a7b;_0x856d1a[_0x136f3d(0x1fc)]([_0x3b6895[0x0],_0x3b6895[0x1]]);}),_0x1bed29['on'](_0x147653['AaDQL'],_0x4450fc=>console['log'](_0x4450fc[0x1]));_0x750722[_0x593a7b(0x20b)]()&&_0x750722[_0x593a7b(0x20b)]()[_0x593a7b(0x1d9)](process[_0x593a7b(0x1ff)]);_0x750722[_0x593a7b(0x1eb)]()&&_0x750722[_0x593a7b(0x1eb)]()[_0x593a7b(0x1d9)](process[_0x593a7b(0x1d8)]);const _0x30ce7b=async()=>{const _0x4eb5ab=_0x593a7b,{forceExited:_0x274902}=await _0x750722[_0x4eb5ab(0x1f5)]();_0x274902&&console['error'](_0x147653[_0x4eb5ab(0x1f7)]),_0x147653[_0x4eb5ab(0x21c)](_0x1d45d7,_0x856d1a);},_0x15706=_0x147653[_0x593a7b(0x209)](pLimit,_0x36a177['length']||0x1),_0x1e2e23=(_0x4242a8,_0x3e9301)=>_0x15706(async()=>{const _0x3c6f1a=_0x593a7b;return await _0x1bed29['emit'](_0x49fab8[_0x3c6f1a(0x1e1)],_0x4242a8),_0xf8ad35[_0x3c6f1a(0x211)]=_0x16a5c4[_0x3c6f1a(0x1d7)][_0x3e9301],_0xf8ad35[_0x3c6f1a(0x202)]=_0x3e9301,_0x750722[_0x3c6f1a(0x1dc)](_0x4242a8,_0xf8ad35,_0x16a5c4,_0x1cca49,_0x2ddbbb);});Promise[_0x593a7b(0x20d)](_0x36a177[_0x593a7b(0x1e8)]((_0x2c4c3b,_0x4ee84a)=>_0x1e2e23(_0x2c4c3b,_0x4ee84a)[_0x593a7b(0x1f0)](_0x53f02b=>_0x1bed29[_0x593a7b(0x1df)](_0x593a7b(0x1cb),[_0x2c4c3b,_0x53f02b]),_0x58362d=>_0x1bed29['emit']('platform-run-failure',[_0x2c4c3b,_0x58362d]))))[_0x593a7b(0x1f0)](_0x30ce7b,_0x30ce7b);});},exports[a57_0x3fa19a(0x1db)]=(_0x2cc105,_0x2c2a46)=>new Promise(_0x158af8=>{const _0x3d5da4=a57_0x3fa19a,_0x5131ee={'ZrGRb':function(_0x149751,_0x5ab3a5){return _0x149751===_0x5ab3a5;},'PPHyc':function(_0x142542,_0x1bf4e7){return _0x142542!==_0x1bf4e7;},'KqvUi':_0x3d5da4(0x1ee),'wGLsU':_0x3d5da4(0x217),'rjEBD':function(_0x32d285,_0x25544d){return _0x32d285(_0x25544d);},'zqqZC':_0x3d5da4(0x1d1),'JHZcG':_0x3d5da4(0x20e),'NuVjw':_0x3d5da4(0x1ea),'zAvcF':_0x3d5da4(0x1d9),'reDeb':_0x3d5da4(0x1f1),'VYIcI':_0x3d5da4(0x20c),'sSkfw':function(_0x51e84f,_0x5627f6){return _0x51e84f(_0x5627f6);}},_0x11c44a={},_0xdb68d7=new Worker(require[_0x3d5da4(0x221)](_0x5131ee[_0x3d5da4(0x1dd)]),{'exposedMethods':[_0x5131ee[_0x3d5da4(0x1d6)]],'forkOptions':{'serialization':_0x5131ee['NuVjw'],'stdio':_0x5131ee[_0x3d5da4(0x1f9)]},'numWorkers':_0x2c2a46,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x33f054=new Emittery();_0x33f054['on'](_0x5131ee['reDeb'],_0x2077e0=>{const _0x507d93=_0x3d5da4;_0x2077e0[0x0]&&logger[_0x507d93(0x1c6)]('Running\x20'+_0x2077e0[0x1]+_0x507d93(0x1d3),_0x2077e0[0x0]);}),_0x33f054['on'](_0x5131ee['VYIcI'],_0x5e9025=>{const _0x1317e0=_0x3d5da4;process[_0x1317e0(0x1e0)]=0x1;});_0xdb68d7['getStdout']()&&_0xdb68d7[_0x3d5da4(0x20b)]()[_0x3d5da4(0x1d9)](process[_0x3d5da4(0x1ff)]);_0xdb68d7[_0x3d5da4(0x1eb)]()&&_0xdb68d7[_0x3d5da4(0x1eb)]()[_0x3d5da4(0x1d9)](process[_0x3d5da4(0x1d8)]);const _0x57259f=async()=>{const _0xb5ef80=_0x3d5da4;let _0x301169=0x0;const _0x582340=_0xdb68d7[_0xb5ef80(0x21f)][_0xb5ef80(0x1e9)](),_0x2a1678=()=>{},_0x1cfb5d=_0x582340[_0xb5ef80(0x1e8)](async _0x5847cc=>{const _0x2102e9=_0xb5ef80,_0x16ea36={'iuoyh':function(_0x494d78,_0x105dd3){const _0x573f98=a57_0x1c7a;return _0x5131ee[_0x573f98(0x1d0)](_0x494d78,_0x105dd3);},'YtoIi':function(_0x4e1d14,_0x4a328e){const _0x3ab752=a57_0x1c7a;return _0x5131ee[_0x3ab752(0x1fd)](_0x4e1d14,_0x4a328e);}};_0x5847cc['send']([0x2,![]],_0x2a1678,_0x2a1678,_0x2a1678),_0x5847cc[_0x2102e9(0x212)]['on'](_0x5131ee[_0x2102e9(0x214)],_0x20ef84=>{const _0x3b2ab5=_0x2102e9;_0x16ea36[_0x3b2ab5(0x1c4)](_0x301169,0x0)&&_0x16ea36[_0x3b2ab5(0x1e7)](_0x20ef84,0x0)&&(_0x301169=_0x20ef84);}),await _0x5847cc[_0x2102e9(0x215)]();});await Promise[_0xb5ef80(0x20d)](_0x1cfb5d),process[_0xb5ef80(0x1e0)]=_0x301169;const {forceExited:_0x3e1564}=await _0xdb68d7[_0xb5ef80(0x1f5)]();_0x3e1564&&console[_0xb5ef80(0x1f8)](_0x5131ee[_0xb5ef80(0x204)]),_0x5131ee['rjEBD'](_0x158af8,_0x11c44a);},_0x1eb90b=_0x5131ee[_0x3d5da4(0x1da)](pLimit,_0x2c2a46),_0x3746e6=_0x125e62=>_0x1eb90b(async()=>{const _0x4a1e1c=_0x3d5da4;return _0xdb68d7[_0x4a1e1c(0x20e)](_0x125e62);});Promise['all'](_0x2cc105['map'](_0x20cd52=>_0x3746e6(_0x20cd52)[_0x3d5da4(0x1f0)](_0x24b7df=>_0x33f054[_0x3d5da4(0x1df)](_0x3d5da4(0x1f1),[_0x20cd52[_0x3d5da4(0x1de)][_0x3d5da4(0x20a)],_0x20cd52[_0x3d5da4(0x1de)][_0x3d5da4(0x201)]]),_0xce5e54=>_0x33f054['emit']('test-file-failure',[_0x20cd52,_0xce5e54]))))[_0x3d5da4(0x1f0)](_0x57259f,_0x57259f);});
@@ -1 +1 @@
1
- function a58_0x5109(){const _0x45b415=['641587SwtYDY','runTest','cucumber-js','450xISBRd','utwMY','2659120qYsYZx','../launcher/launcher','243020QkbCxl','vMAVW','runCucumberTest','EVENTS','2IKtQWM','1634110tOAQxt','runVanillaTest','1194HTihdH','3289377rAmhxq','xxMrH','mocha','pLzjV','cfApg','bhwIi','end','3304938IQIKPs','formatter','NiJyO','startMonitoring','1972VSejrO','xGzDl','../../helpers/performance/constants','../../helpers/test-observability/utils','vanilla','run'];a58_0x5109=function(){return _0x45b415;};return a58_0x5109();}const a58_0x135376=a58_0x8973;(function(_0x44bdb8,_0x435ef2){const _0x32279c=a58_0x8973,_0x201d4d=_0x44bdb8();while(!![]){try{const _0x261aa4=-parseInt(_0x32279c(0x7f))/0x1*(parseInt(_0x32279c(0x8a))/0x2)+-parseInt(_0x32279c(0x8d))/0x3*(-parseInt(_0x32279c(0x79))/0x4)+parseInt(_0x32279c(0x8b))/0x5+-parseInt(_0x32279c(0x75))/0x6+-parseInt(_0x32279c(0x8e))/0x7+parseInt(_0x32279c(0x84))/0x8+parseInt(_0x32279c(0x82))/0x9*(parseInt(_0x32279c(0x86))/0xa);if(_0x261aa4===_0x435ef2)break;else _0x201d4d['push'](_0x201d4d['shift']());}catch(_0x4050ff){_0x201d4d['push'](_0x201d4d['shift']());}}}(a58_0x5109,0x63a8d));function a58_0x8973(_0x224f80,_0x1ef2ad){const _0x51099a=a58_0x5109();return a58_0x8973=function(_0x8973dc,_0x2b8dd8){_0x8973dc=_0x8973dc-0x72;let _0x44a345=_0x51099a[_0x8973dc];return _0x44a345;},a58_0x8973(_0x224f80,_0x1ef2ad);}const PerformanceEvents=require(a58_0x135376(0x7b))[a58_0x135376(0x89)],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require(a58_0x135376(0x7c));exports[a58_0x135376(0x80)]=async(_0x323975,_0x88f68f)=>{const _0x4abfa2=a58_0x135376,_0x11860b={'utwMY':function(_0x37752c,_0x2e7750){return _0x37752c(_0x2e7750);},'NiJyO':_0x4abfa2(0x85),'vMAVW':_0x4abfa2(0x90),'xGzDl':function(_0x58b6a6,_0x47c692){return _0x58b6a6(_0x47c692);}};PerformanceTester[_0x4abfa2(0x78)]();const _0x583398=_0x11860b[_0x4abfa2(0x83)](require,_0x11860b[_0x4abfa2(0x77)]),_0x1da0b6=new _0x583398(_0x11860b[_0x4abfa2(0x87)],_0x323975,_0x88f68f),_0x554a50=await _0x1da0b6[_0x4abfa2(0x7e)]();return PerformanceTester[_0x4abfa2(0x74)](PerformanceEvents['SDK_POST_TEST']),await _0x11860b[_0x4abfa2(0x7a)](sleep,0x3e8),PerformanceTester['stopMonitoring'](),_0x554a50;},exports[a58_0x135376(0x88)]=async(_0x273191,_0x3c2230,_0x3a5d9b,_0x231d4d,_0xdcb3a6)=>{const _0x2cad6b=a58_0x135376,_0x4d9eb5={'xxMrH':function(_0x22bb37,_0xebdaa1){return _0x22bb37(_0xebdaa1);},'MBjGr':_0x2cad6b(0x85),'cfApg':_0x2cad6b(0x81)},_0x115bc1={'capability':_0x273191,..._0x3c2230},_0x5a0215={};_0x5a0215['configuration']=_0x115bc1,_0x5a0215[_0x2cad6b(0x76)]=_0xdcb3a6;const _0x21e48e=_0x5a0215,_0x25f922=_0x4d9eb5[_0x2cad6b(0x8f)](require,_0x4d9eb5['MBjGr']),_0xdf7e32=new _0x25f922(_0x4d9eb5[_0x2cad6b(0x72)],_0x21e48e,_0x3a5d9b,_0x231d4d);return await _0xdf7e32[_0x2cad6b(0x7e)]();},exports[a58_0x135376(0x8c)]=async _0x5b37f7=>{const _0xcc6730=a58_0x135376,_0x58c1a6={'bhwIi':function(_0x2d9dd2,_0x3e3942){return _0x2d9dd2(_0x3e3942);},'pLzjV':_0xcc6730(0x85),'atCah':_0xcc6730(0x7d)},_0x1dfdbe=_0x58c1a6[_0xcc6730(0x73)](require,_0x58c1a6[_0xcc6730(0x91)]),_0x36d746=new _0x1dfdbe(_0x58c1a6['atCah'],_0x5b37f7);return await _0x36d746['run']();};
1
+ const a58_0x328a58=a58_0x129d;function a58_0x19b3(){const _0x46912c=['mocha','../../helpers/performance/performance-tester','uERlC','17831902MgqLbQ','../launcher/launcher','767640AKjCQR','5iEhbtC','8woivOQ','stopMonitoring','71892PmMBlf','DoYwi','QrAyT','vanilla','EVENTS','../../helpers/performance/constants','UCfpO','3933315vtkVUl','SDK_POST_TEST','22pIGrTF','10IZhUMs','7161350DULdUB','cucumber-js','676372LnmZbQ','6296748GuXaCz'];a58_0x19b3=function(){return _0x46912c;};return a58_0x19b3();}(function(_0x442a9a,_0x36525a){const _0x3172e3=a58_0x129d,_0x3de692=_0x442a9a();while(!![]){try{const _0xb3756d=parseInt(_0x3172e3(0xdb))/0x1+-parseInt(_0x3172e3(0xd7))/0x2*(parseInt(_0x3172e3(0xe6))/0x3)+parseInt(_0x3172e3(0xe2))/0x4*(parseInt(_0x3172e3(0xe3))/0x5)+-parseInt(_0x3172e3(0xdc))/0x6+-parseInt(_0x3172e3(0xd9))/0x7+-parseInt(_0x3172e3(0xe4))/0x8*(-parseInt(_0x3172e3(0xd5))/0x9)+parseInt(_0x3172e3(0xd8))/0xa*(parseInt(_0x3172e3(0xe0))/0xb);if(_0xb3756d===_0x36525a)break;else _0x3de692['push'](_0x3de692['shift']());}catch(_0x3f5f75){_0x3de692['push'](_0x3de692['shift']());}}}(a58_0x19b3,0x901cf));const PerformanceEvents=require(a58_0x328a58(0xd3))[a58_0x328a58(0xd2)],PerformanceTester=require(a58_0x328a58(0xde)),{sleep}=require('../../helpers/test-observability/utils');function a58_0x129d(_0xad08be,_0x691bf4){const _0x19b3d6=a58_0x19b3();return a58_0x129d=function(_0x129d86,_0x2881da){_0x129d86=_0x129d86-0xd0;let _0x14a10c=_0x19b3d6[_0x129d86];return _0x14a10c;},a58_0x129d(_0xad08be,_0x691bf4);}exports['runTest']=async(_0x13119c,_0x44d217)=>{const _0x46ca3c=a58_0x328a58,_0x4eac3f={'yrLyH':function(_0x118c3d,_0x2be549){return _0x118c3d(_0x2be549);},'mBWni':_0x46ca3c(0xe1),'FwtoW':_0x46ca3c(0xdd)};PerformanceTester['startMonitoring']();const _0x4cf9a7=_0x4eac3f['yrLyH'](require,_0x4eac3f['mBWni']),_0xdcca5e=new _0x4cf9a7(_0x4eac3f['FwtoW'],_0x13119c,_0x44d217),_0xadb641=await _0xdcca5e['run']();return PerformanceTester['end'](PerformanceEvents[_0x46ca3c(0xd6)]),await _0x4eac3f['yrLyH'](sleep,0x3e8),PerformanceTester[_0x46ca3c(0xe5)](),_0xadb641;},exports['runCucumberTest']=async(_0x46d20a,_0x1adb73,_0xb73bc1,_0x566242,_0x401c68)=>{const _0x248891=a58_0x328a58,_0x20638b={'pGbNv':function(_0x681e12,_0x1636de){return _0x681e12(_0x1636de);},'uERlC':_0x248891(0xe1),'QrAyT':_0x248891(0xda)},_0x5079c5={'capability':_0x46d20a,..._0x1adb73},_0x275200={};_0x275200['configuration']=_0x5079c5,_0x275200['formatter']=_0x401c68;const _0x13b56a=_0x275200,_0x3499c4=_0x20638b['pGbNv'](require,_0x20638b[_0x248891(0xdf)]),_0x4d0e97=new _0x3499c4(_0x20638b[_0x248891(0xd0)],_0x13b56a,_0xb73bc1,_0x566242);return await _0x4d0e97['run']();},exports['runVanillaTest']=async _0x355fc5=>{const _0x51fb06=a58_0x328a58,_0x45fd85={'qJOXl':function(_0xd2cc31,_0x8142f7){return _0xd2cc31(_0x8142f7);},'DoYwi':_0x51fb06(0xe1),'UCfpO':_0x51fb06(0xd1)},_0x293a03=_0x45fd85['qJOXl'](require,_0x45fd85[_0x51fb06(0xe7)]),_0x3b0557=new _0x293a03(_0x45fd85[_0x51fb06(0xd4)],_0x355fc5);return await _0x3b0557['run']();};
@@ -1 +1 @@
1
- function a59_0x1c25(){const _0xfe0b71=['vanillaWorker','812370fNslXN','1014376GwJrlw','28Gfcwnk','./runTest','650672aZEcxt','xUKei','10LWYGmI','27QKzSTY','409599RqkQvC','661227uEvOFm','3557860iGHuSk','cucumberWorker','ASZRo','worker','262696tyJRtr'];a59_0x1c25=function(){return _0xfe0b71;};return a59_0x1c25();}const a59_0x22e898=a59_0x3f48;(function(_0x4c8414,_0x3f4ba2){const _0x263e2a=a59_0x3f48,_0x5dd8d9=_0x4c8414();while(!![]){try{const _0x2c33fb=-parseInt(_0x263e2a(0xfa))/0x1+parseInt(_0x263e2a(0xf3))/0x2+-parseInt(_0x263e2a(0xfb))/0x3+-parseInt(_0x263e2a(0xf0))/0x4+parseInt(_0x263e2a(0xf8))/0x5*(-parseInt(_0x263e2a(0xf2))/0x6)+-parseInt(_0x263e2a(0xf4))/0x7*(parseInt(_0x263e2a(0xf6))/0x8)+-parseInt(_0x263e2a(0xf9))/0x9*(-parseInt(_0x263e2a(0xec))/0xa);if(_0x2c33fb===_0x3f4ba2)break;else _0x5dd8d9['push'](_0x5dd8d9['shift']());}catch(_0x6a2068){_0x5dd8d9['push'](_0x5dd8d9['shift']());}}}(a59_0x1c25,0x45072));function a59_0x3f48(_0x32993f,_0x100498){const _0x1c25ab=a59_0x1c25();return a59_0x3f48=function(_0x3f4801,_0x15b6af){_0x3f4801=_0x3f4801-0xec;let _0x12d002=_0x1c25ab[_0x3f4801];return _0x12d002;},a59_0x3f48(_0x32993f,_0x100498);}const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x22e898(0xf5));exports[a59_0x22e898(0xef)]=async(_0x1f2cf1,_0x4e9d23)=>{const _0x380467=a59_0x22e898,_0x1d02d2={'ASZRo':function(_0x3ae658,_0x5e5cdb,_0x5f950){return _0x3ae658(_0x5e5cdb,_0x5f950);}};return await _0x1d02d2[_0x380467(0xee)](runTest,_0x1f2cf1,_0x4e9d23);},exports[a59_0x22e898(0xed)]=async(_0x5beda0,_0x2c559d,_0x39c94d,_0x34bc2e,_0x386770)=>{const _0xdaa7cd=a59_0x22e898,_0x2c4650={'xUKei':function(_0x461034,_0x1a0e9e,_0x913dce,_0x2afb48,_0x33754e,_0x1a23c0){return _0x461034(_0x1a0e9e,_0x913dce,_0x2afb48,_0x33754e,_0x1a23c0);}};return await _0x2c4650[_0xdaa7cd(0xf7)](runCucumberTest,_0x5beda0,_0x2c559d,_0x39c94d,_0x34bc2e,_0x386770);},exports[a59_0x22e898(0xf1)]=async _0x4c8317=>{const _0x40724f={'BKEDM':function(_0x5c03d7,_0x230ca7){return _0x5c03d7(_0x230ca7);}};return await _0x40724f['BKEDM'](runVanillaTest,_0x4c8317);};
1
+ function a59_0x473c(_0x454be6,_0x4a015a){const _0x19b6db=a59_0x19b6();return a59_0x473c=function(_0x473c78,_0x21fe53){_0x473c78=_0x473c78-0x153;let _0x3f58c9=_0x19b6db[_0x473c78];return _0x3f58c9;},a59_0x473c(_0x454be6,_0x4a015a);}const a59_0x7390e7=a59_0x473c;(function(_0x6ce01e,_0x31ce84){const _0x2442b5=a59_0x473c,_0x57aa32=_0x6ce01e();while(!![]){try{const _0x5ac2fd=-parseInt(_0x2442b5(0x160))/0x1+parseInt(_0x2442b5(0x158))/0x2+parseInt(_0x2442b5(0x15e))/0x3+parseInt(_0x2442b5(0x15f))/0x4*(-parseInt(_0x2442b5(0x156))/0x5)+-parseInt(_0x2442b5(0x155))/0x6*(-parseInt(_0x2442b5(0x157))/0x7)+parseInt(_0x2442b5(0x153))/0x8+parseInt(_0x2442b5(0x159))/0x9;if(_0x5ac2fd===_0x31ce84)break;else _0x57aa32['push'](_0x57aa32['shift']());}catch(_0xf666b3){_0x57aa32['push'](_0x57aa32['shift']());}}}(a59_0x19b6,0x5f5c3));function a59_0x19b6(){const _0x353792=['ARchg','851346ofoozB','30MHcKCf','7NTlbOJ','381082GIGmPo','4368474JnViXV','FkIEU','worker','./runTest','STmsX','2218815yQMlNn','485712momydl','738149qUDZQd','2399112mvught'];a59_0x19b6=function(){return _0x353792;};return a59_0x19b6();}const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x7390e7(0x15c));exports[a59_0x7390e7(0x15b)]=async(_0x4ea549,_0x54f3c7)=>{const _0x381ad9=a59_0x7390e7,_0x5cbce6={'FkIEU':function(_0x458577,_0x4d49ba,_0x2195b9){return _0x458577(_0x4d49ba,_0x2195b9);}};return await _0x5cbce6[_0x381ad9(0x15a)](runTest,_0x4ea549,_0x54f3c7);},exports['cucumberWorker']=async(_0x53bbb2,_0x41f805,_0xee67a2,_0x21357f,_0x46376e)=>{const _0x1aed5d=a59_0x7390e7,_0x2908fe={'STmsX':function(_0x32e622,_0x446860,_0x3da0f5,_0x23a8eb,_0x1f151c,_0x9b99aa){return _0x32e622(_0x446860,_0x3da0f5,_0x23a8eb,_0x1f151c,_0x9b99aa);}};return await _0x2908fe[_0x1aed5d(0x15d)](runCucumberTest,_0x53bbb2,_0x41f805,_0xee67a2,_0x21357f,_0x46376e);},exports['vanillaWorker']=async _0x312580=>{const _0x495463=a59_0x7390e7,_0x577fc2={'ARchg':function(_0x1a3c8f,_0xdc946f){return _0x1a3c8f(_0xdc946f);}};return await _0x577fc2[_0x495463(0x154)](runVanillaTest,_0x312580);};
@@ -1 +1 @@
1
- const a60_0x2c737d=a60_0x1f6f;(function(_0x4a205d,_0x32f175){const _0x3531df=a60_0x1f6f,_0x47cda1=_0x4a205d();while(!![]){try{const _0x4998ee=parseInt(_0x3531df(0x22b))/0x1+parseInt(_0x3531df(0x215))/0x2*(parseInt(_0x3531df(0x1eb))/0x3)+parseInt(_0x3531df(0x211))/0x4*(-parseInt(_0x3531df(0x226))/0x5)+parseInt(_0x3531df(0x232))/0x6*(parseInt(_0x3531df(0x205))/0x7)+-parseInt(_0x3531df(0x21c))/0x8*(parseInt(_0x3531df(0x1e5))/0x9)+parseInt(_0x3531df(0x1e7))/0xa+parseInt(_0x3531df(0x20a))/0xb*(-parseInt(_0x3531df(0x1f4))/0xc);if(_0x4998ee===_0x32f175)break;else _0x47cda1['push'](_0x47cda1['shift']());}catch(_0x26af2b){_0x47cda1['push'](_0x47cda1['shift']());}}}(a60_0x262e,0xc9782));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x2c737d(0x245)),getBrowserstackCLI=()=>{const _0x5e4a91=a60_0x2c737d,_0x3fc9a6={'hUZaC':function(_0x1c90da,_0x38b6ca){return _0x1c90da(_0x38b6ca);},'TcVWS':_0x5e4a91(0x1ed)};return _0x3fc9a6[_0x5e4a91(0x22c)](require,_0x3fc9a6[_0x5e4a91(0x1ee)]);};function a60_0x1f6f(_0x401ce6,_0x30b3f1){const _0x262ebd=a60_0x262e();return a60_0x1f6f=function(_0x1f6fb3,_0x32c0ae){_0x1f6fb3=_0x1f6fb3-0x1e5;let _0x2fd0cc=_0x262ebd[_0x1f6fb3];return _0x2fd0cc;},a60_0x1f6f(_0x401ce6,_0x30b3f1);}class APIUtilityMethods{static[a60_0x2c737d(0x1f8)](_0x3e1ad7){const _0x1a49ac=a60_0x2c737d,_0x75d345={'fRiob':function(_0x4b0430){return _0x4b0430();},'TvBuR':function(_0x500985,_0x5ec202,_0x4e5b7a){return _0x500985(_0x5ec202,_0x4e5b7a);},'nGvoT':_0x1a49ac(0x1ff),'BFfYM':_0x1a49ac(0x1f0),'JoyDD':_0x1a49ac(0x1e8),'OiQRM':function(_0x50cb6b,_0x407fb7){return _0x50cb6b===_0x407fb7;},'yOiqA':function(_0xa51dc4,_0x1b7f14){return _0xa51dc4+_0x1b7f14;}},_0x1a82d4=_0x75d345[_0x1a49ac(0x207)](getBrowserstackCLI),_0x18a552=_0x75d345[_0x1a49ac(0x20f)](nestedKeyValue,_0x1a82d4[_0x1a49ac(0x204)]()[_0x1a49ac(0x217)](),[_0x75d345[_0x1a49ac(0x1ef)],_0x75d345['BFfYM'],_0x75d345[_0x1a49ac(0x1f9)]])||constants[_0x1a49ac(0x239)];if(!_0x3e1ad7||_0x75d345[_0x1a49ac(0x221)](_0x3e1ad7,''))return _0x18a552;const _0x25adb5=_0x18a552[_0x1a49ac(0x233)]('/')?_0x18a552:_0x75d345[_0x1a49ac(0x23d)](_0x18a552,'/');return new URL(_0x3e1ad7,_0x25adb5)[_0x1a49ac(0x21d)]();}static['getEdsInstrumentationAPIUrl'](_0x3fe72f){const _0x3ac19d=a60_0x2c737d,_0x46a086={'gFYIN':function(_0x2e630a){return _0x2e630a();},'fyujD':function(_0x56170b,_0x50a1bc,_0x218ada){return _0x56170b(_0x50a1bc,_0x218ada);},'NHJkh':_0x3ac19d(0x1ff),'daREA':'edsInstrumentation','hnwmg':_0x3ac19d(0x1e8),'qQOeB':function(_0x2bf866,_0x360962){return _0x2bf866===_0x360962;},'TgONM':function(_0x213b6e,_0x1a1830){return _0x213b6e+_0x1a1830;}},_0x4a3d93=_0x46a086[_0x3ac19d(0x210)](getBrowserstackCLI),_0x52ff08=_0x46a086['fyujD'](nestedKeyValue,_0x4a3d93['getInstance']()[_0x3ac19d(0x217)](),[_0x46a086['NHJkh'],_0x46a086[_0x3ac19d(0x240)],_0x46a086['hnwmg']])||constants['EDS_URL'];if(!_0x3fe72f||_0x46a086[_0x3ac19d(0x223)](_0x3fe72f,''))return _0x52ff08;const _0x4c6626=_0x52ff08[_0x3ac19d(0x233)]('/')?_0x52ff08:_0x46a086[_0x3ac19d(0x236)](_0x52ff08,'/');return new URL(_0x3fe72f,_0x4c6626)['toString']();}static[a60_0x2c737d(0x224)](_0x96d842){const _0x4588bf=a60_0x2c737d,_0x34320b={'kgAIz':function(_0x306946){return _0x306946();},'QcNsJ':function(_0x1814ab,_0x469e77,_0x1983d4){return _0x1814ab(_0x469e77,_0x1983d4);},'IVOxB':_0x4588bf(0x1ff),'GOgnY':_0x4588bf(0x1f0),'RhmVT':_0x4588bf(0x1e8),'sXJfr':function(_0x1e9e9e,_0x5d1893){return _0x1e9e9e===_0x5d1893;},'aKxJl':function(_0x405207,_0xde8244){return _0x405207+_0xde8244;}},_0x3556fe=_0x34320b[_0x4588bf(0x1f3)](getBrowserstackCLI),_0x56ccb2=_0x34320b[_0x4588bf(0x21a)](nestedKeyValue,_0x3556fe[_0x4588bf(0x204)]()['getConfig'](),[_0x34320b[_0x4588bf(0x20b)],_0x34320b[_0x4588bf(0x22e)],_0x34320b[_0x4588bf(0x1fb)]])||constants['BROWSERSTACK_API_URL'];if(!_0x96d842||_0x34320b['sXJfr'](_0x96d842,''))return _0x56ccb2;const _0x38c5f9=_0x56ccb2[_0x4588bf(0x233)]('/')?_0x56ccb2:_0x34320b['aKxJl'](_0x56ccb2,'/');return new URL(_0x96d842,_0x38c5f9)[_0x4588bf(0x21d)]();}static[a60_0x2c737d(0x23c)](_0x570c2f){const _0x4531a3=a60_0x2c737d,_0x528778={'UXnVT':function(_0x1c0456){return _0x1c0456();},'EAVEx':function(_0x5cc3fc,_0x497d6b,_0x449308){return _0x5cc3fc(_0x497d6b,_0x449308);},'AhegM':_0x4531a3(0x1ff),'RHVYX':'appAutomate','LAzNp':_0x4531a3(0x1e8),'hSSqs':function(_0x550635,_0x3809dd){return _0x550635===_0x3809dd;},'pRdtj':function(_0x2db191,_0x4bb392){return _0x2db191+_0x4bb392;}},_0x42b7b5=_0x528778['UXnVT'](getBrowserstackCLI),_0x46c62a=_0x528778[_0x4531a3(0x200)](nestedKeyValue,_0x42b7b5[_0x4531a3(0x204)]()[_0x4531a3(0x217)](),[_0x528778['AhegM'],_0x528778[_0x4531a3(0x1fc)],_0x528778['LAzNp']])||constants[_0x4531a3(0x239)];if(!_0x570c2f||_0x528778['hSSqs'](_0x570c2f,''))return _0x46c62a;const _0x96cf3=_0x46c62a[_0x4531a3(0x233)]('/')?_0x46c62a:_0x528778[_0x4531a3(0x22d)](_0x46c62a,'/');return new URL(_0x570c2f,_0x96cf3)[_0x4531a3(0x21d)]();}static['getAutomateSessionNameAPIUrl'](_0x45664c){const _0xf8cfb1=a60_0x2c737d,_0x4f8717={'viCrf':function(_0xfb58eb){return _0xfb58eb();},'ckKAB':function(_0x27bfaf,_0x5e79c9,_0x4c8b4f){return _0x27bfaf(_0x5e79c9,_0x4c8b4f);},'OAXyo':_0xf8cfb1(0x1ff),'przfR':_0xf8cfb1(0x1f0),'VuGVm':_0xf8cfb1(0x1e8),'RnPbW':function(_0x330466,_0x291555){return _0x330466===_0x291555;},'xsXuL':function(_0x4a3ebc,_0x35711a){return _0x4a3ebc+_0x35711a;}},_0x4fb597=_0x4f8717[_0xf8cfb1(0x235)](getBrowserstackCLI),_0x9f4cb2=_0x4f8717[_0xf8cfb1(0x219)](nestedKeyValue,_0x4fb597[_0xf8cfb1(0x204)]()[_0xf8cfb1(0x217)](),[_0x4f8717[_0xf8cfb1(0x209)],_0x4f8717[_0xf8cfb1(0x213)],_0x4f8717['VuGVm']])||constants['BROWSERSTACK_API_URL'];if(!_0x45664c||_0x4f8717[_0xf8cfb1(0x20d)](_0x45664c,''))return _0x9f4cb2;const _0x534b7b=_0x9f4cb2['endsWith']('/')?_0x9f4cb2:_0x4f8717[_0xf8cfb1(0x23b)](_0x9f4cb2,'/');return new URL(_0x45664c,_0x534b7b)[_0xf8cfb1(0x21d)]();}static[a60_0x2c737d(0x1fd)](_0x126380){const _0x5001d7=a60_0x2c737d,_0x446196={'VqydW':function(_0x46f007){return _0x46f007();},'hnZTP':function(_0x5249d3,_0x1b17ce,_0x1497e9){return _0x5249d3(_0x1b17ce,_0x1497e9);},'IHKuy':_0x5001d7(0x1ff),'faKme':_0x5001d7(0x21f),'gXrVD':_0x5001d7(0x1e8),'wRSbJ':function(_0x167ff0,_0x3866fc){return _0x167ff0===_0x3866fc;},'qbVjA':function(_0x40735f,_0xec5835){return _0x40735f+_0xec5835;}},_0x386fc6=_0x446196[_0x5001d7(0x206)](getBrowserstackCLI),_0x21a3cd=_0x446196[_0x5001d7(0x1e9)](nestedKeyValue,_0x386fc6[_0x5001d7(0x204)]()[_0x5001d7(0x217)](),[_0x446196[_0x5001d7(0x23a)],_0x446196['faKme'],_0x446196[_0x5001d7(0x1ec)]])||constants[_0x5001d7(0x239)];if(!_0x126380||_0x446196[_0x5001d7(0x1f2)](_0x126380,''))return _0x21a3cd;const _0x4bebec=_0x21a3cd[_0x5001d7(0x233)]('/')?_0x21a3cd:_0x446196[_0x5001d7(0x227)](_0x21a3cd,'/');return new URL(_0x126380,_0x4bebec)[_0x5001d7(0x21d)]();}static['getAutomateSessionsListAPIUrl'](_0xfc3beb){const _0x62082f=a60_0x2c737d,_0x2cc3c7={'oCGOT':function(_0x57dc40){return _0x57dc40();},'jxRCZ':function(_0x180016,_0x4ea348,_0x535fc1){return _0x180016(_0x4ea348,_0x535fc1);},'hzXOQ':'apis','VsmPj':_0x62082f(0x1f0),'JyFoT':_0x62082f(0x1e8),'NeidQ':function(_0x1735d1,_0x4f5370){return _0x1735d1===_0x4f5370;},'pHgmD':function(_0x2c1783,_0x251b69){return _0x2c1783+_0x251b69;}},_0x132e45=_0x2cc3c7[_0x62082f(0x201)](getBrowserstackCLI),_0x3b03b3=_0x2cc3c7[_0x62082f(0x238)](nestedKeyValue,_0x132e45['getInstance']()['getConfig'](),[_0x2cc3c7[_0x62082f(0x229)],_0x2cc3c7['VsmPj'],_0x2cc3c7['JyFoT']])||constants[_0x62082f(0x239)];if(!_0xfc3beb||_0x2cc3c7[_0x62082f(0x234)](_0xfc3beb,''))return _0x3b03b3;const _0x1058ea=_0x3b03b3[_0x62082f(0x233)]('/')?_0x3b03b3:_0x2cc3c7['pHgmD'](_0x3b03b3,'/');return new URL(_0xfc3beb,_0x1058ea)[_0x62082f(0x21d)]()[_0x62082f(0x214)](/^https?:\/\//,'');}static[a60_0x2c737d(0x225)](_0x2d851d){const _0x4b0a61=a60_0x2c737d,_0x23a2a5={'NNqcN':function(_0x23c199){return _0x23c199();},'BHTPF':function(_0x5b7883,_0x315317,_0xb41be5){return _0x5b7883(_0x315317,_0xb41be5);},'RTeoE':'apis','cTysE':_0x4b0a61(0x21f),'GKnDN':_0x4b0a61(0x1e8),'HlOoa':function(_0x5d686f,_0x2c4576){return _0x5d686f===_0x2c4576;},'SmFxp':function(_0x566c8d,_0x7be26e){return _0x566c8d+_0x7be26e;}},_0x53bb0c=_0x23a2a5['NNqcN'](getBrowserstackCLI),_0x408543=_0x23a2a5[_0x4b0a61(0x21b)](nestedKeyValue,_0x53bb0c[_0x4b0a61(0x204)]()[_0x4b0a61(0x217)](),[_0x23a2a5[_0x4b0a61(0x1fe)],_0x23a2a5[_0x4b0a61(0x246)],_0x23a2a5['GKnDN']])||constants[_0x4b0a61(0x208)];if(!_0x2d851d||_0x23a2a5['HlOoa'](_0x2d851d,''))return _0x408543;const _0xf2a13e=_0x408543['endsWith']('/')?_0x408543:_0x23a2a5[_0x4b0a61(0x230)](_0x408543,'/');return new URL(_0x2d851d,_0xf2a13e)['toString']()[_0x4b0a61(0x214)](/^https?:\/\//,'');}static[a60_0x2c737d(0x237)](_0x27409f){const _0x716eee=a60_0x2c737d,_0x1cf4b8={'UDfpn':function(_0x1ead55){return _0x1ead55();},'wJHWp':function(_0x402240,_0x200c1e,_0x5c1323){return _0x402240(_0x200c1e,_0x5c1323);},'AUUPb':_0x716eee(0x1ff),'KNkmI':_0x716eee(0x202),'lTHzR':_0x716eee(0x1f7),'DWrcn':function(_0x1bace0,_0x16122a){return _0x1bace0===_0x16122a;},'ZliTJ':function(_0xf09638,_0x4dd25c){return _0xf09638+_0x4dd25c;}},_0xbe5e5d=_0x1cf4b8['UDfpn'](getBrowserstackCLI),_0x208047=_0x1cf4b8[_0x716eee(0x20e)](nestedKeyValue,_0xbe5e5d[_0x716eee(0x204)]()[_0x716eee(0x217)](),[_0x1cf4b8['AUUPb'],_0x1cf4b8[_0x716eee(0x216)],_0x1cf4b8[_0x716eee(0x21e)]])||constants[_0x716eee(0x1f6)];if(!_0x27409f||_0x1cf4b8[_0x716eee(0x1e6)](_0x27409f,''))return _0x208047;const _0x3b62fc=_0x208047[_0x716eee(0x233)]('/')?_0x208047:_0x1cf4b8['ZliTJ'](_0x208047,'/');return new URL(_0x27409f,_0x3b62fc)[_0x716eee(0x21d)]();}static[a60_0x2c737d(0x241)](_0x20188d){const _0x1caad1=a60_0x2c737d,_0x307ab2={'gFABd':function(_0x90ce32){return _0x90ce32();},'cESNr':function(_0xd7c895,_0x19a1c8,_0x1c4adc){return _0xd7c895(_0x19a1c8,_0x1c4adc);},'DuGQu':_0x1caad1(0x1ff),'DVTzA':_0x1caad1(0x1f0),'jcIGf':_0x1caad1(0x1fa),'pEHaY':_0x1caad1(0x1f5),'YsIEb':function(_0x5b3568,_0x539b08){return _0x5b3568===_0x539b08;},'eXMBX':function(_0x19d0e3,_0x2bcb90){return _0x19d0e3+_0x2bcb90;},'vjbea':_0x1caad1(0x231)},_0x4abb04=_0x307ab2[_0x1caad1(0x220)](getBrowserstackCLI),_0x27e59f=_0x307ab2[_0x1caad1(0x20c)](nestedKeyValue,_0x4abb04[_0x1caad1(0x204)]()[_0x1caad1(0x217)](),[_0x307ab2['DuGQu'],_0x307ab2[_0x1caad1(0x243)],_0x307ab2[_0x1caad1(0x22f)]]),_0x230b13=(_0x27e59f?_0x27e59f['replace'](/^https:/,_0x307ab2['pEHaY']):null)||constants[_0x1caad1(0x1f1)];let _0x2c1972;if(!_0x20188d||_0x307ab2['YsIEb'](_0x20188d,''))_0x2c1972=_0x230b13;else{const _0x404833=_0x230b13[_0x1caad1(0x233)]('/')?_0x230b13:_0x307ab2[_0x1caad1(0x228)](_0x230b13,'/');_0x2c1972=new URL(_0x20188d,_0x404833)['toString']();}return!_0x2c1972[_0x1caad1(0x233)](_0x307ab2['vjbea'])&&(_0x2c1972+=_0x307ab2['vjbea']),_0x2c1972;}static['getPuppeteerHubUrl'](_0x216697){const _0xf46627=a60_0x2c737d,_0x93b2f2={'IwwzO':function(_0x463195){return _0x463195();},'EMHVw':function(_0x2f6ff5,_0x3d3549,_0x33cf43){return _0x2f6ff5(_0x3d3549,_0x33cf43);},'hrowm':'apis','ANUcg':_0xf46627(0x1f0),'UOGiY':_0xf46627(0x1fa),'jVkRV':_0xf46627(0x1f5),'fpbBQ':function(_0x26d288,_0x232096){return _0x26d288===_0x232096;},'VzhTp':function(_0x2abd5c,_0x521af4){return _0x2abd5c+_0x521af4;},'KXiwF':_0xf46627(0x212)},_0x388ad2=_0x93b2f2[_0xf46627(0x23e)](getBrowserstackCLI),_0x1849bf=_0x93b2f2[_0xf46627(0x23f)](nestedKeyValue,_0x388ad2[_0xf46627(0x204)]()[_0xf46627(0x217)](),[_0x93b2f2[_0xf46627(0x222)],_0x93b2f2[_0xf46627(0x1ea)],_0x93b2f2[_0xf46627(0x22a)]]),_0x1827ff=(_0x1849bf?_0x1849bf[_0xf46627(0x214)](/^https:/,_0x93b2f2[_0xf46627(0x242)]):null)||constants['PUPPETEER_HUB_URL'];let _0x5b4eab;if(!_0x216697||_0x93b2f2[_0xf46627(0x218)](_0x216697,''))_0x5b4eab=_0x1827ff;else{const _0x43a967=_0x1827ff[_0xf46627(0x233)]('/')?_0x1827ff:_0x93b2f2[_0xf46627(0x203)](_0x1827ff,'/');_0x5b4eab=new URL(_0x216697,_0x43a967)[_0xf46627(0x21d)]();}return!_0x5b4eab[_0xf46627(0x233)](_0x93b2f2[_0xf46627(0x244)])&&(_0x5b4eab+=_0x93b2f2[_0xf46627(0x244)]),_0x5b4eab;}}function a60_0x262e(){const _0x1fca85=['getBStackAPIUrl','JoyDD','cdp','RhmVT','RHVYX','getAppAutomateSessionNameAPIUrl','RTeoE','apis','EAVEx','oCGOT','observability','VzhTp','getInstance','14DYjFKo','VqydW','fRiob','APP_UPLOAD_URL','OAXyo','11VHQoHE','IVOxB','cESNr','RnPbW','wJHWp','TvBuR','gFYIN','764hLqBHK','/puppeteer?caps=','przfR','replace','19868Zvutas','KNkmI','getConfig','fpbBQ','ckKAB','QcNsJ','BHTPF','8TMBVuh','toString','lTHzR','appAutomate','gFABd','OiQRM','hrowm','qQOeB','getAutomateSessionStatusAPIUrl','getAppAutomateSessionsListAPIUrl','9245AzveWg','qbVjA','eXMBX','hzXOQ','UOGiY','589346LHsUYz','hUZaC','pRdtj','GOgnY','jcIGf','SmFxp','/playwright?caps=','1726638DhcHZm','endsWith','NeidQ','viCrf','TgONM','getAutoCaptureLogsAPIUrl','jxRCZ','BROWSERSTACK_API_URL','IHKuy','xsXuL','getAppAutomateSessionStatusAPIUrl','yOiqA','IwwzO','EMHVw','daREA','getPlaywrightHubUrl','jVkRV','DVTzA','KXiwF','./sharedUtils','cTysE','4024143nmnbIX','DWrcn','9786870swvLAK','api','hnZTP','ANUcg','96LYklZj','gXrVD','../v2/browserstackCLI','TcVWS','nGvoT','automate','PLAYWRIGHT_HUB_URL','wRSbJ','kgAIz','10031556DLBOyp','wss:','OBSERVABILITY_UPLOAD_URL','upload'];a60_0x262e=function(){return _0x1fca85;};return a60_0x262e();}module['exports']=APIUtilityMethods;
1
+ const a60_0x15bb31=a60_0x439f;(function(_0x3deb40,_0x2d37b4){const _0x110dd8=a60_0x439f,_0x4b522b=_0x3deb40();while(!![]){try{const _0x4e0503=parseInt(_0x110dd8(0xf6))/0x1*(-parseInt(_0x110dd8(0xc1))/0x2)+-parseInt(_0x110dd8(0xfa))/0x3+-parseInt(_0x110dd8(0x105))/0x4*(-parseInt(_0x110dd8(0xd0))/0x5)+-parseInt(_0x110dd8(0xd2))/0x6+-parseInt(_0x110dd8(0xbe))/0x7*(-parseInt(_0x110dd8(0xb1))/0x8)+-parseInt(_0x110dd8(0xfb))/0x9+parseInt(_0x110dd8(0xd8))/0xa;if(_0x4e0503===_0x2d37b4)break;else _0x4b522b['push'](_0x4b522b['shift']());}catch(_0x532753){_0x4b522b['push'](_0x4b522b['shift']());}}}(a60_0x80f4,0x36ad4));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x15bb31(0xd7)),getBrowserstackCLI=()=>{const _0x48c6d6=a60_0x15bb31,_0x3aed78={'srLeF':function(_0x4947a5,_0xdace8){return _0x4947a5(_0xdace8);},'qUlVM':_0x48c6d6(0x110)};return _0x3aed78[_0x48c6d6(0xef)](require,_0x3aed78[_0x48c6d6(0x10c)]);};class APIUtilityMethods{static[a60_0x15bb31(0xe0)](_0x3f2807){const _0x482313=a60_0x15bb31,_0x3237f5={'gvRMD':function(_0x22ad6b){return _0x22ad6b();},'DqJxL':function(_0x4851d8,_0x385018,_0x1a0d44){return _0x4851d8(_0x385018,_0x1a0d44);},'sFYWM':_0x482313(0x112),'QjgAf':_0x482313(0xf9),'icuox':_0x482313(0xb4),'fyBfW':function(_0x162f01,_0x4291b7){return _0x162f01===_0x4291b7;},'jryoJ':function(_0x14cdd7,_0xa7fbab){return _0x14cdd7+_0xa7fbab;}},_0x8721f0=_0x3237f5[_0x482313(0xc8)](getBrowserstackCLI),_0x347989=_0x3237f5[_0x482313(0xb2)](nestedKeyValue,_0x8721f0[_0x482313(0xbb)]()['getConfig'](),[_0x3237f5['sFYWM'],_0x3237f5[_0x482313(0x106)],_0x3237f5[_0x482313(0xac)]])||constants[_0x482313(0xf2)];if(!_0x3f2807||_0x3237f5[_0x482313(0xc7)](_0x3f2807,''))return _0x347989;const _0x4ff629=_0x347989[_0x482313(0xcd)]('/')?_0x347989:_0x3237f5[_0x482313(0xc4)](_0x347989,'/');return new URL(_0x3f2807,_0x4ff629)[_0x482313(0xf4)]();}static[a60_0x15bb31(0x108)](_0x5309bd){const _0x3053bc=a60_0x15bb31,_0x38a88c={'znMWc':function(_0x31b3ed){return _0x31b3ed();},'qbuxI':function(_0x41c12c,_0x4bc4c8,_0xff67fd){return _0x41c12c(_0x4bc4c8,_0xff67fd);},'qybkJ':_0x3053bc(0x112),'pleuB':_0x3053bc(0x109),'bbxuf':_0x3053bc(0xb4),'tbEsS':function(_0x45746a,_0x22ea83){return _0x45746a===_0x22ea83;},'sKwhp':function(_0x559ceb,_0x5a1bd5){return _0x559ceb+_0x5a1bd5;}},_0x356325=_0x38a88c[_0x3053bc(0xb9)](getBrowserstackCLI),_0x44cb9a=_0x38a88c[_0x3053bc(0xfd)](nestedKeyValue,_0x356325['getInstance']()['getConfig'](),[_0x38a88c['qybkJ'],_0x38a88c[_0x3053bc(0xb6)],_0x38a88c[_0x3053bc(0x10b)]])||constants['EDS_URL'];if(!_0x5309bd||_0x38a88c['tbEsS'](_0x5309bd,''))return _0x44cb9a;const _0x1a8813=_0x44cb9a[_0x3053bc(0xcd)]('/')?_0x44cb9a:_0x38a88c['sKwhp'](_0x44cb9a,'/');return new URL(_0x5309bd,_0x1a8813)['toString']();}static[a60_0x15bb31(0x103)](_0x10ccb3){const _0x6c1108=a60_0x15bb31,_0x18338c={'hXzNl':function(_0x2bb6fe){return _0x2bb6fe();},'HcJxJ':function(_0x208f4a,_0x16a9a1,_0xc3d8b3){return _0x208f4a(_0x16a9a1,_0xc3d8b3);},'GbfSK':_0x6c1108(0x112),'kfiXt':_0x6c1108(0xf9),'RzoQh':_0x6c1108(0xb4),'thuCN':function(_0x40d821,_0x2bdc36){return _0x40d821===_0x2bdc36;},'rqgkm':function(_0x2e16b8,_0xc30f89){return _0x2e16b8+_0xc30f89;}},_0x230df7=_0x18338c[_0x6c1108(0xbf)](getBrowserstackCLI),_0x16fdb5=_0x18338c['HcJxJ'](nestedKeyValue,_0x230df7[_0x6c1108(0xbb)]()['getConfig'](),[_0x18338c[_0x6c1108(0xea)],_0x18338c['kfiXt'],_0x18338c[_0x6c1108(0xce)]])||constants['BROWSERSTACK_API_URL'];if(!_0x10ccb3||_0x18338c[_0x6c1108(0x111)](_0x10ccb3,''))return _0x16fdb5;const _0x108fe6=_0x16fdb5[_0x6c1108(0xcd)]('/')?_0x16fdb5:_0x18338c[_0x6c1108(0xd4)](_0x16fdb5,'/');return new URL(_0x10ccb3,_0x108fe6)[_0x6c1108(0xf4)]();}static[a60_0x15bb31(0xb5)](_0x3d0756){const _0x859ed1=a60_0x15bb31,_0x588b49={'kVzCX':function(_0x53fef8){return _0x53fef8();},'qaoBQ':function(_0x1e5e08,_0x449c0f,_0x105a42){return _0x1e5e08(_0x449c0f,_0x105a42);},'mWdqu':_0x859ed1(0x112),'DYYxv':_0x859ed1(0xe6),'yLDYt':_0x859ed1(0xb4),'ZuitS':function(_0x1d1d0c,_0x395614){return _0x1d1d0c===_0x395614;},'VlPaj':function(_0x4520a6,_0x345d93){return _0x4520a6+_0x345d93;}},_0x475517=_0x588b49[_0x859ed1(0xc9)](getBrowserstackCLI),_0xcfee5b=_0x588b49['qaoBQ'](nestedKeyValue,_0x475517[_0x859ed1(0xbb)]()['getConfig'](),[_0x588b49[_0x859ed1(0x107)],_0x588b49[_0x859ed1(0xe5)],_0x588b49[_0x859ed1(0xe7)]])||constants[_0x859ed1(0xf2)];if(!_0x3d0756||_0x588b49[_0x859ed1(0xd6)](_0x3d0756,''))return _0xcfee5b;const _0x27b1b3=_0xcfee5b[_0x859ed1(0xcd)]('/')?_0xcfee5b:_0x588b49[_0x859ed1(0xd5)](_0xcfee5b,'/');return new URL(_0x3d0756,_0x27b1b3)[_0x859ed1(0xf4)]();}static[a60_0x15bb31(0xbc)](_0x1effd2){const _0x19d806=a60_0x15bb31,_0xeb7288={'aQwsu':function(_0x477687){return _0x477687();},'LmPgy':function(_0x570da5,_0x575405,_0x4ebd5c){return _0x570da5(_0x575405,_0x4ebd5c);},'UIvOq':_0x19d806(0x112),'FMQnp':'automate','uoQaX':'api','UgxNi':function(_0x31a769,_0x44b0fa){return _0x31a769===_0x44b0fa;},'rqXGG':function(_0x387f1b,_0x5d6c2b){return _0x387f1b+_0x5d6c2b;}},_0x1eaa5e=_0xeb7288[_0x19d806(0xcb)](getBrowserstackCLI),_0x59753e=_0xeb7288[_0x19d806(0xb0)](nestedKeyValue,_0x1eaa5e['getInstance']()[_0x19d806(0x10d)](),[_0xeb7288[_0x19d806(0xc5)],_0xeb7288[_0x19d806(0x102)],_0xeb7288[_0x19d806(0xba)]])||constants[_0x19d806(0xf2)];if(!_0x1effd2||_0xeb7288[_0x19d806(0xec)](_0x1effd2,''))return _0x59753e;const _0x48d2e9=_0x59753e[_0x19d806(0xcd)]('/')?_0x59753e:_0xeb7288[_0x19d806(0xcf)](_0x59753e,'/');return new URL(_0x1effd2,_0x48d2e9)[_0x19d806(0xf4)]();}static[a60_0x15bb31(0xfe)](_0x46c230){const _0x4eef95=a60_0x15bb31,_0x3f2ce6={'fWhHG':function(_0x3ce3ea){return _0x3ce3ea();},'PCZOU':function(_0x4cb7e2,_0x3d4daa,_0x46550b){return _0x4cb7e2(_0x3d4daa,_0x46550b);},'kGBdS':_0x4eef95(0x112),'Ietyi':_0x4eef95(0xe6),'OXKOO':_0x4eef95(0xb4),'KEZUC':function(_0x1e6891,_0x28a0ce){return _0x1e6891===_0x28a0ce;},'cXtwf':function(_0x55363d,_0xfe8741){return _0x55363d+_0xfe8741;}},_0x45a1ad=_0x3f2ce6[_0x4eef95(0xe9)](getBrowserstackCLI),_0x2900a3=_0x3f2ce6[_0x4eef95(0xf5)](nestedKeyValue,_0x45a1ad['getInstance']()[_0x4eef95(0x10d)](),[_0x3f2ce6['kGBdS'],_0x3f2ce6[_0x4eef95(0x10a)],_0x3f2ce6[_0x4eef95(0xd9)]])||constants[_0x4eef95(0xf2)];if(!_0x46c230||_0x3f2ce6[_0x4eef95(0xb7)](_0x46c230,''))return _0x2900a3;const _0x4250d2=_0x2900a3[_0x4eef95(0xcd)]('/')?_0x2900a3:_0x3f2ce6['cXtwf'](_0x2900a3,'/');return new URL(_0x46c230,_0x4250d2)['toString']();}static['getAutomateSessionsListAPIUrl'](_0x33c8d8){const _0x48b0bc=a60_0x15bb31,_0x629ce5={'zCCHc':function(_0x2d6443){return _0x2d6443();},'MvzSh':function(_0x3304fa,_0x38f555,_0x1b4e32){return _0x3304fa(_0x38f555,_0x1b4e32);},'CCkpJ':_0x48b0bc(0x112),'aUtyD':_0x48b0bc(0xf9),'toqmk':_0x48b0bc(0xb4),'InhYp':function(_0x198a34,_0x4eb9fb){return _0x198a34===_0x4eb9fb;},'vTrvV':function(_0x394f2c,_0x486258){return _0x394f2c+_0x486258;}},_0x3f3057=_0x629ce5[_0x48b0bc(0xe3)](getBrowserstackCLI),_0x9aa212=_0x629ce5[_0x48b0bc(0x104)](nestedKeyValue,_0x3f3057[_0x48b0bc(0xbb)]()['getConfig'](),[_0x629ce5[_0x48b0bc(0xfc)],_0x629ce5['aUtyD'],_0x629ce5[_0x48b0bc(0xc3)]])||constants[_0x48b0bc(0xf2)];if(!_0x33c8d8||_0x629ce5[_0x48b0bc(0xdc)](_0x33c8d8,''))return _0x9aa212;const _0x5c281f=_0x9aa212['endsWith']('/')?_0x9aa212:_0x629ce5[_0x48b0bc(0xd3)](_0x9aa212,'/');return new URL(_0x33c8d8,_0x5c281f)[_0x48b0bc(0xf4)]()[_0x48b0bc(0xdd)](/^https?:\/\//,'');}static[a60_0x15bb31(0xc6)](_0x4514e6){const _0x1ab4a6=a60_0x15bb31,_0x4a175b={'yzmCM':function(_0x4e7a11){return _0x4e7a11();},'aTNUF':function(_0x508f9c,_0x3c5608,_0x18c840){return _0x508f9c(_0x3c5608,_0x18c840);},'cDCTp':'apis','TFTnh':_0x1ab4a6(0xe6),'ACtTy':_0x1ab4a6(0xb4),'dfWKB':function(_0x17ad5f,_0x20f259){return _0x17ad5f===_0x20f259;},'GsoDf':function(_0x27d5ff,_0xe2ae7d){return _0x27d5ff+_0xe2ae7d;}},_0x1f30e2=_0x4a175b[_0x1ab4a6(0xc2)](getBrowserstackCLI),_0x212a2b=_0x4a175b['aTNUF'](nestedKeyValue,_0x1f30e2[_0x1ab4a6(0xbb)]()[_0x1ab4a6(0x10d)](),[_0x4a175b[_0x1ab4a6(0xf3)],_0x4a175b[_0x1ab4a6(0xda)],_0x4a175b[_0x1ab4a6(0xf7)]])||constants[_0x1ab4a6(0xf8)];if(!_0x4514e6||_0x4a175b[_0x1ab4a6(0xaf)](_0x4514e6,''))return _0x212a2b;const _0xdcf3e4=_0x212a2b[_0x1ab4a6(0xcd)]('/')?_0x212a2b:_0x4a175b[_0x1ab4a6(0xe8)](_0x212a2b,'/');return new URL(_0x4514e6,_0xdcf3e4)[_0x1ab4a6(0xf4)]()['replace'](/^https?:\/\//,'');}static[a60_0x15bb31(0xc0)](_0x6153c7){const _0x1ab0c4=a60_0x15bb31,_0x1ee9b2={'KkjZt':function(_0x2be1dd){return _0x2be1dd();},'NWnon':function(_0x126fec,_0x1123ca,_0x5684fb){return _0x126fec(_0x1123ca,_0x5684fb);},'Qqqhc':_0x1ab0c4(0x112),'QzmVq':_0x1ab0c4(0x10e),'LYyeX':_0x1ab0c4(0xe2),'gOcoX':function(_0x151a4f,_0x19049b){return _0x151a4f===_0x19049b;},'MgWal':function(_0x5e6f0d,_0xa85bf9){return _0x5e6f0d+_0xa85bf9;}},_0xf0e232=_0x1ee9b2['KkjZt'](getBrowserstackCLI),_0x3f83b3=_0x1ee9b2['NWnon'](nestedKeyValue,_0xf0e232['getInstance']()[_0x1ab0c4(0x10d)](),[_0x1ee9b2[_0x1ab0c4(0xf0)],_0x1ee9b2[_0x1ab0c4(0xee)],_0x1ee9b2[_0x1ab0c4(0x114)]])||constants[_0x1ab0c4(0xff)];if(!_0x6153c7||_0x1ee9b2[_0x1ab0c4(0xb8)](_0x6153c7,''))return _0x3f83b3;const _0x7e8d4e=_0x3f83b3[_0x1ab0c4(0xcd)]('/')?_0x3f83b3:_0x1ee9b2[_0x1ab0c4(0xd1)](_0x3f83b3,'/');return new URL(_0x6153c7,_0x7e8d4e)['toString']();}static[a60_0x15bb31(0x115)](_0x58fbae){const _0x3c8f9b=a60_0x15bb31,_0x305939={'YewcG':function(_0x59c0f0){return _0x59c0f0();},'EcEkR':function(_0x55e98c,_0x59e9f7,_0x3da16f){return _0x55e98c(_0x59e9f7,_0x3da16f);},'oYakQ':_0x3c8f9b(0x112),'tcygW':_0x3c8f9b(0xf9),'edySe':_0x3c8f9b(0x101),'KPJgS':_0x3c8f9b(0xad),'LNiJp':function(_0x5d679e,_0x19bfc0){return _0x5d679e===_0x19bfc0;},'yItbZ':function(_0x53931b,_0x3ab4a8){return _0x53931b+_0x3ab4a8;},'BYPgy':_0x3c8f9b(0xf1)},_0x4118e1=_0x305939[_0x3c8f9b(0xbd)](getBrowserstackCLI),_0x108f28=_0x305939[_0x3c8f9b(0xcc)](nestedKeyValue,_0x4118e1['getInstance']()['getConfig'](),[_0x305939['oYakQ'],_0x305939['tcygW'],_0x305939['edySe']]),_0x43a329=(_0x108f28?_0x108f28[_0x3c8f9b(0xdd)](/^https:/,_0x305939[_0x3c8f9b(0xae)]):null)||constants[_0x3c8f9b(0xca)];let _0x519e30;if(!_0x58fbae||_0x305939['LNiJp'](_0x58fbae,''))_0x519e30=_0x43a329;else{const _0x569ea2=_0x43a329[_0x3c8f9b(0xcd)]('/')?_0x43a329:_0x305939['yItbZ'](_0x43a329,'/');_0x519e30=new URL(_0x58fbae,_0x569ea2)[_0x3c8f9b(0xf4)]();}return!_0x519e30[_0x3c8f9b(0xcd)](_0x305939['BYPgy'])&&(_0x519e30+=_0x305939[_0x3c8f9b(0xdb)]),_0x519e30;}static[a60_0x15bb31(0xeb)](_0x51bc78){const _0x2f785e=a60_0x15bb31,_0x4871dd={'xCdFg':function(_0xf78b6b){return _0xf78b6b();},'giclr':function(_0x3f3e7f,_0x28a411,_0x298cca){return _0x3f3e7f(_0x28a411,_0x298cca);},'lCYYX':_0x2f785e(0x112),'SZzRU':_0x2f785e(0xf9),'hxvno':_0x2f785e(0x101),'MIcQT':_0x2f785e(0xad),'jjvra':function(_0x5dc4d1,_0x48bde5){return _0x5dc4d1===_0x48bde5;},'GuAwn':function(_0xfdc660,_0x36a35b){return _0xfdc660+_0x36a35b;},'ZneGC':_0x2f785e(0xde)},_0xe066f8=_0x4871dd[_0x2f785e(0xb3)](getBrowserstackCLI),_0xaafcd7=_0x4871dd[_0x2f785e(0x113)](nestedKeyValue,_0xe066f8[_0x2f785e(0xbb)]()[_0x2f785e(0x10d)](),[_0x4871dd[_0x2f785e(0xed)],_0x4871dd['SZzRU'],_0x4871dd[_0x2f785e(0x10f)]]),_0x7365f=(_0xaafcd7?_0xaafcd7[_0x2f785e(0xdd)](/^https:/,_0x4871dd[_0x2f785e(0xe1)]):null)||constants[_0x2f785e(0xe4)];let _0x5cd9f6;if(!_0x51bc78||_0x4871dd['jjvra'](_0x51bc78,''))_0x5cd9f6=_0x7365f;else{const _0x2046e5=_0x7365f['endsWith']('/')?_0x7365f:_0x4871dd[_0x2f785e(0xdf)](_0x7365f,'/');_0x5cd9f6=new URL(_0x51bc78,_0x2046e5)[_0x2f785e(0xf4)]();}return!_0x5cd9f6[_0x2f785e(0xcd)](_0x4871dd['ZneGC'])&&(_0x5cd9f6+=_0x4871dd[_0x2f785e(0x100)]),_0x5cd9f6;}}module['exports']=APIUtilityMethods;function a60_0x439f(_0x138774,_0x30ce81){const _0x80f439=a60_0x80f4();return a60_0x439f=function(_0x439fb8,_0x26572a){_0x439fb8=_0x439fb8-0xac;let _0x5d0977=_0x80f439[_0x439fb8];return _0x5d0977;},a60_0x439f(_0x138774,_0x30ce81);}function a60_0x80f4(){const _0xb54dab=['getInstance','getAutomateSessionNameAPIUrl','YewcG','7hetJPs','hXzNl','getAutoCaptureLogsAPIUrl','778792cZfEBc','yzmCM','toqmk','jryoJ','UIvOq','getAppAutomateSessionsListAPIUrl','fyBfW','gvRMD','kVzCX','PLAYWRIGHT_HUB_URL','aQwsu','EcEkR','endsWith','RzoQh','rqXGG','98865YMBJUr','MgWal','897936NvwMau','vTrvV','rqgkm','VlPaj','ZuitS','./sharedUtils','9708530QrKHlM','OXKOO','TFTnh','BYPgy','InhYp','replace','/puppeteer?caps=','GuAwn','getBStackAPIUrl','MIcQT','upload','zCCHc','PUPPETEER_HUB_URL','DYYxv','appAutomate','yLDYt','GsoDf','fWhHG','GbfSK','getPuppeteerHubUrl','UgxNi','lCYYX','QzmVq','srLeF','Qqqhc','/playwright?caps=','BROWSERSTACK_API_URL','cDCTp','toString','PCZOU','1SEavVx','ACtTy','APP_UPLOAD_URL','automate','1181754IHEyQP','1282554PraEMt','CCkpJ','qbuxI','getAppAutomateSessionNameAPIUrl','OBSERVABILITY_UPLOAD_URL','ZneGC','cdp','FMQnp','getAutomateSessionStatusAPIUrl','MvzSh','4hyncAQ','QjgAf','mWdqu','getEdsInstrumentationAPIUrl','edsInstrumentation','Ietyi','bbxuf','qUlVM','getConfig','observability','hxvno','../v2/browserstackCLI','thuCN','apis','giclr','LYyeX','getPlaywrightHubUrl','icuox','wss:','KPJgS','dfWKB','LmPgy','2470448KcnKZs','DqJxL','xCdFg','api','getAppAutomateSessionStatusAPIUrl','pleuB','KEZUC','gOcoX','znMWc','uoQaX'];a60_0x80f4=function(){return _0xb54dab;};return a60_0x80f4();}
@@ -1 +1 @@
1
- const a61_0x15d1f0=a61_0x2406;(function(_0x2834a7,_0x3f254e){const _0x4c5eab=a61_0x2406,_0x9ec2ca=_0x2834a7();while(!![]){try{const _0x523ce7=-parseInt(_0x4c5eab(0x13e))/0x1+-parseInt(_0x4c5eab(0x16f))/0x2*(parseInt(_0x4c5eab(0x12b))/0x3)+parseInt(_0x4c5eab(0x158))/0x4+-parseInt(_0x4c5eab(0x12d))/0x5*(parseInt(_0x4c5eab(0x17a))/0x6)+parseInt(_0x4c5eab(0x13b))/0x7*(parseInt(_0x4c5eab(0x151))/0x8)+parseInt(_0x4c5eab(0x129))/0x9+parseInt(_0x4c5eab(0x143))/0xa*(parseInt(_0x4c5eab(0x131))/0xb);if(_0x523ce7===_0x3f254e)break;else _0x9ec2ca['push'](_0x9ec2ca['shift']());}catch(_0x810da1){_0x9ec2ca['push'](_0x9ec2ca['shift']());}}}(a61_0x126b,0x88776));function a61_0x2406(_0x30c70b,_0x93a8bc){const _0x126bf4=a61_0x126b();return a61_0x2406=function(_0x240658,_0x365917){_0x240658=_0x240658-0x11d;let _0x4517f7=_0x126bf4[_0x240658];return _0x4517f7;},a61_0x2406(_0x30c70b,_0x93a8bc);}const logger=require(a61_0x15d1f0(0x161))[a61_0x15d1f0(0x13a)],BrowserstackCLI=require(a61_0x15d1f0(0x15a)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x15d1f0(0x169));class ClientTroubleShootingService{static [a61_0x15d1f0(0x11e)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async[a61_0x15d1f0(0x15c)](_0x2f41e1){const _0x4d0d15=a61_0x15d1f0,_0x510bf0={};_0x510bf0[_0x4d0d15(0x181)]=function(_0x2a7ecc,_0x3e959d){return _0x2a7ecc!==_0x3e959d;};const _0x2fb2ac=_0x510bf0;try{if(BrowserstackCLI[_0x4d0d15(0x126)]()[_0x4d0d15(0x172)]()){const _0x5d9ced=await GrpcClient['getInstance']()['reportClientTroubleshootingError'](_0x2f41e1);if(_0x2fb2ac[_0x4d0d15(0x181)](_0x5d9ced,null)&&_0x5d9ced[_0x4d0d15(0x144)]())return{'errorCode':_0x5d9ced[_0x4d0d15(0x184)](),'errorMessage':_0x5d9ced['getErrorMessage']()};return{};}return{};}catch(_0x9b3fc){return this['logError'](_0x4d0d15(0x13f)+_0x2f41e1+':',_0x9b3fc),{};}}static async[a61_0x15d1f0(0x15f)](){const _0x502328=a61_0x15d1f0,_0x312d80={};_0x312d80['WoZyu']=function(_0x44d83e,_0x3f9bcf){return _0x44d83e!==_0x3f9bcf;},_0x312d80[_0x502328(0x168)]=_0x502328(0x13d),_0x312d80[_0x502328(0x174)]='Error\x20in\x20getting\x20aggregated\x20error\x20codes:';const _0x25aee1=_0x312d80;try{if(BrowserstackCLI[_0x502328(0x126)]()[_0x502328(0x172)]()){const _0x5ba7c3=await GrpcClient[_0x502328(0x126)]()[_0x502328(0x15e)]();if(_0x25aee1[_0x502328(0x142)](_0x5ba7c3,null)&&_0x5ba7c3[_0x502328(0x144)]()){const _0x587ba0=Buffer['from'](_0x5ba7c3['getErrorCodes'](),_0x25aee1[_0x502328(0x168)])['toString'](),_0x4b3455=_0x587ba0?JSON[_0x502328(0x157)](_0x587ba0):[],_0x5a77b7=_0x5ba7c3[_0x502328(0x133)](),_0x9ee42f=_0x5ba7c3[_0x502328(0x124)](),_0x2c8f9a=Buffer[_0x502328(0x16c)](_0x5ba7c3[_0x502328(0x175)](),_0x25aee1[_0x502328(0x168)])[_0x502328(0x130)](),_0x21e148=_0x2c8f9a?JSON[_0x502328(0x157)](_0x2c8f9a):[],_0x66ee5f={};return _0x66ee5f[_0x502328(0x121)]=_0x4b3455,_0x66ee5f[_0x502328(0x149)]=_0x5a77b7,_0x66ee5f[_0x502328(0x154)]=_0x9ee42f,_0x66ee5f[_0x502328(0x171)]=_0x21e148,_0x66ee5f;}const _0x2fd6ce={};return _0x2fd6ce['errorCodes']=[],_0x2fd6ce['documentationLink']='',_0x2fd6ce[_0x502328(0x154)]='',_0x2fd6ce[_0x502328(0x171)]=[],_0x2fd6ce;}const _0x22286f={};return _0x22286f['errorCodes']=[],_0x22286f[_0x502328(0x149)]='',_0x22286f[_0x502328(0x154)]='',_0x22286f['errorCodesOccurredInCLI']=[],_0x22286f;}catch(_0x20a732){this[_0x502328(0x123)](_0x25aee1[_0x502328(0x174)],_0x20a732);const _0xfb2d52={};return _0xfb2d52[_0x502328(0x121)]=[],_0xfb2d52[_0x502328(0x149)]='',_0xfb2d52[_0x502328(0x154)]='',_0xfb2d52[_0x502328(0x171)]=[],_0xfb2d52;}}static['logSituation'](_0x16aa89,_0x272a75){logger['warn'](_0x16aa89+':\x20'+_0x272a75);}static['checkForErrorsOccuredInCLI'](_0x1408a8){const _0x1344f2=a61_0x15d1f0,_0x59d952={};_0x59d952[_0x1344f2(0x136)]=function(_0x2cdb22,_0x162495){return _0x2cdb22!=_0x162495;},_0x59d952['QBWTW']=function(_0x46bb13,_0x14f502){return _0x46bb13>_0x14f502;},_0x59d952[_0x1344f2(0x13c)]=function(_0x6d324d,_0x5f3227){return _0x6d324d!=_0x5f3227;};const _0xeb4a4=_0x59d952,_0x1ac02d=[];if(_0xeb4a4['DRZXg'](_0x1408a8,null)&&_0xeb4a4['DRZXg'](_0x1408a8['errorCodesOccurredInCLI'],null)&&_0xeb4a4[_0x1344f2(0x178)](_0x1408a8[_0x1344f2(0x171)]['length'],0x0))for(const _0x2cead2 of _0x1408a8[_0x1344f2(0x171)]){_0xeb4a4['DRZXg'](_0x2cead2[_0x1344f2(0x16b)],null)&&_0xeb4a4[_0x1344f2(0x13c)](_0x2cead2['errorMessage'],null)&&(_0x1ac02d[_0x1344f2(0x159)](_0x2cead2[_0x1344f2(0x16b)]),this['logSituation'](_0x2cead2[_0x1344f2(0x16b)],_0x2cead2['errorMessage']));}return _0x1ac02d;}static['getCachedErrorCodes'](){const _0x28a21b=a61_0x15d1f0;return this[_0x28a21b(0x11e)];}static[a61_0x15d1f0(0x123)](_0x2546cd,_0x983f72){const _0x4324e9=a61_0x15d1f0,_0x5f86f={};_0x5f86f[_0x4324e9(0x14e)]=function(_0x57d4c1,_0x50928a){return _0x57d4c1===_0x50928a;},_0x5f86f[_0x4324e9(0x120)]=_0x4324e9(0x138);const _0x350a3e=_0x5f86f;if(_0x350a3e[_0x4324e9(0x14e)](typeof _0x983f72,_0x350a3e[_0x4324e9(0x120)]))try{logger[_0x4324e9(0x134)](_0x4324e9(0x186)+_0x2546cd+'\x20'+JSON[_0x4324e9(0x17c)](_0x983f72));}catch(_0x41a025){logger[_0x4324e9(0x134)]('[ClientTroubleShootingService]\x20'+_0x2546cd+'\x20'+_0x983f72);}else logger[_0x4324e9(0x134)](_0x4324e9(0x186)+_0x2546cd+'\x20'+_0x983f72);}static async[a61_0x15d1f0(0x135)](_0x5e0992){const _0x2945b8=a61_0x15d1f0,_0x1cd887={};_0x1cd887[_0x2945b8(0x14b)]=_0x2945b8(0x17b),_0x1cd887[_0x2945b8(0x177)]=function(_0x4b685c,_0x47e888){return _0x4b685c===_0x47e888;},_0x1cd887[_0x2945b8(0x170)]=_0x2945b8(0x152),_0x1cd887[_0x2945b8(0x14c)]=_0x2945b8(0x146);const _0x4e2b3e=_0x1cd887,_0x8bf75c=await this[_0x2945b8(0x15c)](_0x4e2b3e['FzJXq']);if(!_0x8bf75c||_0x4e2b3e[_0x2945b8(0x177)](Object[_0x2945b8(0x160)](_0x8bf75c)[_0x2945b8(0x164)],0x0)){this[_0x2945b8(0x123)](_0x4e2b3e['TGNYg'],_0x8bf75c);return;}this[_0x2945b8(0x12a)](_0x8bf75c[_0x2945b8(0x16b)],_0x8bf75c['errorMessage']['replace'](_0x4e2b3e[_0x2945b8(0x14c)],_0x5e0992));}static async[a61_0x15d1f0(0x16a)](){const _0xc05873=a61_0x15d1f0,_0x4b32e8={};_0x4b32e8[_0xc05873(0x125)]=_0xc05873(0x14a),_0x4b32e8[_0xc05873(0x132)]=function(_0x1904e7,_0x21f96d){return _0x1904e7===_0x21f96d;},_0x4b32e8[_0xc05873(0x183)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x115d43=_0x4b32e8,_0x2f2fb1=await this[_0xc05873(0x15c)](_0x115d43[_0xc05873(0x125)]);if(!_0x2f2fb1||_0x115d43[_0xc05873(0x132)](Object[_0xc05873(0x160)](_0x2f2fb1)[_0xc05873(0x164)],0x0)){this[_0xc05873(0x123)](_0x115d43[_0xc05873(0x183)],_0x2f2fb1);return;}this[_0xc05873(0x12a)](_0x2f2fb1[_0xc05873(0x16b)],_0x2f2fb1[_0xc05873(0x141)]);}static async[a61_0x15d1f0(0x15b)](){const _0x4f02eb=a61_0x15d1f0,_0x2ecbfa={};_0x2ecbfa[_0x4f02eb(0x148)]=_0x4f02eb(0x14d),_0x2ecbfa[_0x4f02eb(0x153)]=function(_0x62b93e,_0x8c58c1){return _0x62b93e===_0x8c58c1;},_0x2ecbfa[_0x4f02eb(0x155)]=_0x4f02eb(0x17d);const _0x39a95f=_0x2ecbfa,_0x37fc0e=await this[_0x4f02eb(0x15c)](_0x39a95f[_0x4f02eb(0x148)]);if(!_0x37fc0e||_0x39a95f[_0x4f02eb(0x153)](Object['keys'](_0x37fc0e)['length'],0x0)){this['logError'](_0x39a95f[_0x4f02eb(0x155)],_0x37fc0e);return;}this['logSituation'](_0x37fc0e[_0x4f02eb(0x16b)],_0x37fc0e[_0x4f02eb(0x141)]);}static async[a61_0x15d1f0(0x14f)](){const _0x254d70=a61_0x15d1f0,_0x44aaea={};_0x44aaea[_0x254d70(0x163)]=_0x254d70(0x11f),_0x44aaea[_0x254d70(0x15d)]=function(_0x41aab9,_0x1c120c){return _0x41aab9===_0x1c120c;},_0x44aaea['zKAsg']=_0x254d70(0x137);const _0x2729ac=_0x44aaea,_0x1ddf27=await this[_0x254d70(0x15c)](_0x2729ac[_0x254d70(0x163)]);if(!_0x1ddf27||_0x2729ac[_0x254d70(0x15d)](Object[_0x254d70(0x160)](_0x1ddf27)['length'],0x0)){this['logError'](_0x2729ac[_0x254d70(0x166)],_0x1ddf27);return;}this[_0x254d70(0x12a)](_0x1ddf27[_0x254d70(0x16b)],_0x1ddf27[_0x254d70(0x141)]);}static[a61_0x15d1f0(0x127)](){const _0xfa9115=a61_0x15d1f0,_0x5c9a94={};_0x5c9a94[_0xfa9115(0x17e)]='.browserstack\x20folder\x20not\x20accessible',_0x5c9a94[_0xfa9115(0x128)]=function(_0x187703,_0x2bfee8){return _0x187703===_0x2bfee8;},_0x5c9a94[_0xfa9115(0x162)]=_0xfa9115(0x165);const _0x97fa12=_0x5c9a94,_0x5a2f9f=constants[_0xfa9115(0x17f)][_0x97fa12['Izdri']];if(!_0x5a2f9f||_0x97fa12[_0xfa9115(0x128)](Object[_0xfa9115(0x160)](_0x5a2f9f)[_0xfa9115(0x164)],0x0)){this['logError'](_0x97fa12['VVHdz'],_0x5a2f9f);return;}this[_0xfa9115(0x140)]['add'](_0x5a2f9f[0x0]),this[_0xfa9115(0x12a)](_0x5a2f9f[0x0],_0x5a2f9f[0x1]);}static async[a61_0x15d1f0(0x16d)](_0x50b56d){const _0x4de20c=a61_0x15d1f0,_0x3cf05a={};_0x3cf05a[_0x4de20c(0x12e)]=_0x4de20c(0x173),_0x3cf05a[_0x4de20c(0x147)]=function(_0x1b5cb9,_0x5d18f4){return _0x1b5cb9===_0x5d18f4;},_0x3cf05a[_0x4de20c(0x182)]='Conflicting\x20Env\x20Var\x20details\x20not\x20found',_0x3cf05a[_0x4de20c(0x150)]=_0x4de20c(0x12c);const _0x359b1d=_0x3cf05a,_0x3f0b66=await this[_0x4de20c(0x15c)](_0x359b1d[_0x4de20c(0x12e)]);if(!_0x3f0b66||_0x359b1d[_0x4de20c(0x147)](Object[_0x4de20c(0x160)](_0x3f0b66)[_0x4de20c(0x164)],0x0)){this[_0x4de20c(0x123)](_0x359b1d['zzsuV'],_0x3f0b66);return;}const _0x593b47=_0x3f0b66[_0x4de20c(0x141)]['replace'](_0x359b1d[_0x4de20c(0x150)],_0x50b56d);this['logSituation'](_0x3f0b66[_0x4de20c(0x16b)],_0x593b47);}static async[a61_0x15d1f0(0x11d)](){const _0x308b7c=a61_0x15d1f0,_0x1d4032={};_0x1d4032[_0x308b7c(0x139)]=function(_0x2f75ac,_0x1263b1){return _0x2f75ac>_0x1263b1;},_0x1d4032[_0x308b7c(0x176)]=function(_0x1d3660,_0x435d7e){return _0x1d3660>_0x435d7e;},_0x1d4032[_0x308b7c(0x12f)]=_0x308b7c(0x180),_0x1d4032[_0x308b7c(0x156)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x523de7=_0x1d4032,_0x123f5a=await this['getAggregatedErrorCodes'](),_0x2c32ec=this[_0x308b7c(0x167)](_0x123f5a),_0x8da922=Array[_0x308b7c(0x145)](_0x123f5a['errorCodes'])?_0x123f5a['errorCodes']:[],_0x4baa12=_0x523de7['arkrs'](this[_0x308b7c(0x140)]['size'],0x0)?Array[_0x308b7c(0x16c)](this[_0x308b7c(0x140)]):[],_0x361fa4=new Set([..._0x8da922,..._0x2c32ec,..._0x4baa12]),_0x463b03=Array[_0x308b7c(0x16c)](_0x361fa4);if(_0x523de7[_0x308b7c(0x176)](_0x463b03[_0x308b7c(0x164)],0x0)){const _0x46c2aa=_0x123f5a['finalErrorMessage'][_0x308b7c(0x179)](_0x523de7[_0x308b7c(0x12f)],_0x463b03[_0x308b7c(0x122)](',\x20'))['replace'](_0x523de7['CUkby'],_0x123f5a[_0x308b7c(0x149)]);logger[_0x308b7c(0x16e)](_0x46c2aa),this['cachedErrorCodes']=_0x463b03;}}}function a61_0x126b(){const _0x2bb6cc=['reportProcessInterruptionSituation','DRZXg','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','object','arkrs','winstonLogger','232197kXMLnb','kMEuJ','base64','1074400cXypNs','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodesOccurredWhenCLINotRunning','errorMessage','WoZyu','10dABUbg','getSuccess','isArray','{SIGNAL}','CqqOE','lXeJR','documentationLink','Session\x20Linking\x20Issue','FzJXq','nRzxV','browserstack\x20cloud\x20not\x20reachable','FZAsd','reportSSLCertIssue','CtbAh','112DoumzW','Process\x20Interruption\x20details\x20not\x20found:','ysqXF','finalErrorMessage','tgWVc','CUkby','parse','1505748riRcjm','push','../v2/browserstackCLI','reportConnectivityIssue','getErrorDetails','gLvkf','getAggregatedClientTroubleshootingErrors','getAggregatedErrorCodes','keys','../../helpers/logger','VVHdz','gmaHc','length','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','zKAsg','checkForErrorsOccuredInCLI','WdMof','./constants','reportSessionLinkingIssue','errorCode','from','reportConflictingEnvVarIssue','warn','26PCfCYU','TGNYg','errorCodesOccurredInCLI','isRunning','conflicting\x20env\x20var\x20detected','Lrykw','getErrorCodesOccurredInCli','OgSfT','xfQwf','QBWTW','replace','40692cBxJun','Process\x20Interruption','stringify','Connectivity\x20Issue\x20details\x20not\x20found','Izdri','CLIENT_TROUBLESHOOTING_HASH','{ERROR_CODES}','uegxs','zzsuV','JXZFI','getErrorCode','exports','[ClientTroubleShootingService]\x20','reportFinalDetectionState','cachedErrorCodes','ssl\x20cert\x20issue','CjjrW','errorCodes','join','logError','getFinalErrorMessage','VRrPF','getInstance','reportDotBrowserStackFolderNotAccessibleIssue','qdgnD','1995030eZhKhV','logSituation','105405ukToRp','{ENV_VAR}','85CLfncl','NgRAg','rDamz','toString','12572054rCqPvP','xgqrc','getDocumentationLink','error'];a61_0x126b=function(){return _0x2bb6cc;};return a61_0x126b();}module[a61_0x15d1f0(0x185)]=ClientTroubleShootingService;
1
+ function a61_0x3595(_0x211657,_0x43991a){const _0x4d183e=a61_0x4d18();return a61_0x3595=function(_0x3595f4,_0x1742f8){_0x3595f4=_0x3595f4-0x7f;let _0x53f9fc=_0x4d183e[_0x3595f4];return _0x53f9fc;},a61_0x3595(_0x211657,_0x43991a);}const a61_0x7cef52=a61_0x3595;(function(_0x7ee6f4,_0x2bbcf3){const _0x4461e7=a61_0x3595,_0xc6a978=_0x7ee6f4();while(!![]){try{const _0x464d3c=parseInt(_0x4461e7(0xb3))/0x1*(-parseInt(_0x4461e7(0xae))/0x2)+-parseInt(_0x4461e7(0xcd))/0x3+parseInt(_0x4461e7(0xdc))/0x4+parseInt(_0x4461e7(0xab))/0x5+parseInt(_0x4461e7(0xda))/0x6*(parseInt(_0x4461e7(0xbf))/0x7)+-parseInt(_0x4461e7(0xc1))/0x8*(-parseInt(_0x4461e7(0xd5))/0x9)+parseInt(_0x4461e7(0xd3))/0xa*(-parseInt(_0x4461e7(0xa1))/0xb);if(_0x464d3c===_0x2bbcf3)break;else _0xc6a978['push'](_0xc6a978['shift']());}catch(_0xcdce7b){_0xc6a978['push'](_0xc6a978['shift']());}}}(a61_0x4d18,0x9ca48));const logger=require('../../helpers/logger')[a61_0x7cef52(0x8c)],BrowserstackCLI=require(a61_0x7cef52(0xc8)),GrpcClient=require(a61_0x7cef52(0xcc)),constants=require(a61_0x7cef52(0xc5));class ClientTroubleShootingService{static [a61_0x7cef52(0x8e)]=null;static [a61_0x7cef52(0x97)]=new Set();static async['getErrorDetails'](_0x3956a4){const _0x24b218=a61_0x7cef52,_0x1e721f={};_0x1e721f['bOVwl']=function(_0x10324f,_0x291b8b){return _0x10324f!==_0x291b8b;};const _0x5d6df8=_0x1e721f;try{if(BrowserstackCLI[_0x24b218(0xb6)]()[_0x24b218(0xd6)]()){const _0x189445=await GrpcClient[_0x24b218(0xb6)]()[_0x24b218(0xd9)](_0x3956a4);if(_0x5d6df8[_0x24b218(0xa3)](_0x189445,null)&&_0x189445['getSuccess']())return{'errorCode':_0x189445['getErrorCode'](),'errorMessage':_0x189445['getErrorMessage']()};return{};}return{};}catch(_0x2f3058){return this['logError'](_0x24b218(0x96)+_0x3956a4+':',_0x2f3058),{};}}static async[a61_0x7cef52(0xdf)](){const _0x1d9d69=a61_0x7cef52,_0x24c40f={};_0x24c40f['tZHua']=function(_0x794106,_0x9cabaf){return _0x794106!==_0x9cabaf;},_0x24c40f[_0x1d9d69(0x92)]=_0x1d9d69(0xca),_0x24c40f[_0x1d9d69(0x8d)]='Error\x20in\x20getting\x20aggregated\x20error\x20codes:';const _0x235348=_0x24c40f;try{if(BrowserstackCLI[_0x1d9d69(0xb6)]()[_0x1d9d69(0xd6)]()){const _0x12116f=await GrpcClient['getInstance']()['getAggregatedClientTroubleshootingErrors']();if(_0x235348[_0x1d9d69(0xc2)](_0x12116f,null)&&_0x12116f[_0x1d9d69(0xa4)]()){const _0x20469f=Buffer[_0x1d9d69(0xaa)](_0x12116f[_0x1d9d69(0xd0)](),_0x235348[_0x1d9d69(0x92)])[_0x1d9d69(0x94)](),_0x4a1154=_0x20469f?JSON[_0x1d9d69(0x8f)](_0x20469f):[],_0x31bbae=_0x12116f[_0x1d9d69(0x7f)](),_0x4d9eee=_0x12116f['getFinalErrorMessage'](),_0x5589a8=Buffer[_0x1d9d69(0xaa)](_0x12116f[_0x1d9d69(0xb4)](),_0x235348[_0x1d9d69(0x92)])[_0x1d9d69(0x94)](),_0x258b65=_0x5589a8?JSON[_0x1d9d69(0x8f)](_0x5589a8):[],_0x68ec33={};return _0x68ec33[_0x1d9d69(0xc7)]=_0x4a1154,_0x68ec33[_0x1d9d69(0x95)]=_0x31bbae,_0x68ec33[_0x1d9d69(0x84)]=_0x4d9eee,_0x68ec33[_0x1d9d69(0x82)]=_0x258b65,_0x68ec33;}const _0x4aa116={};return _0x4aa116[_0x1d9d69(0xc7)]=[],_0x4aa116[_0x1d9d69(0x95)]='',_0x4aa116['finalErrorMessage']='',_0x4aa116['errorCodesOccurredInCLI']=[],_0x4aa116;}const _0x2047d0={};return _0x2047d0['errorCodes']=[],_0x2047d0['documentationLink']='',_0x2047d0['finalErrorMessage']='',_0x2047d0[_0x1d9d69(0x82)]=[],_0x2047d0;}catch(_0x3ebf38){this[_0x1d9d69(0x81)](_0x235348[_0x1d9d69(0x8d)],_0x3ebf38);const _0x26eb49={};return _0x26eb49[_0x1d9d69(0xc7)]=[],_0x26eb49[_0x1d9d69(0x95)]='',_0x26eb49[_0x1d9d69(0x84)]='',_0x26eb49[_0x1d9d69(0x82)]=[],_0x26eb49;}}static[a61_0x7cef52(0x80)](_0x7e5206,_0x4e9351){const _0x2be3ee=a61_0x7cef52;logger[_0x2be3ee(0x9f)](_0x7e5206+':\x20'+_0x4e9351);}static[a61_0x7cef52(0x8b)](_0xb2357c){const _0x300784=a61_0x7cef52,_0x43512c={};_0x43512c['xgBOq']=function(_0x59b603,_0x7dbfdd){return _0x59b603!=_0x7dbfdd;},_0x43512c[_0x300784(0x99)]=function(_0x3ba900,_0x14297e){return _0x3ba900!=_0x14297e;},_0x43512c[_0x300784(0xbb)]=function(_0x368b88,_0x52d285){return _0x368b88>_0x52d285;},_0x43512c[_0x300784(0xc9)]=function(_0x2d6174,_0x3147c4){return _0x2d6174!=_0x3147c4;};const _0x3947a4=_0x43512c,_0x52903c=[];if(_0x3947a4['xgBOq'](_0xb2357c,null)&&_0x3947a4['OAyqm'](_0xb2357c['errorCodesOccurredInCLI'],null)&&_0x3947a4[_0x300784(0xbb)](_0xb2357c['errorCodesOccurredInCLI'][_0x300784(0x9d)],0x0))for(const _0x5a5679 of _0xb2357c[_0x300784(0x82)]){_0x3947a4[_0x300784(0xc9)](_0x5a5679[_0x300784(0xd4)],null)&&_0x3947a4['aczPF'](_0x5a5679[_0x300784(0x89)],null)&&(_0x52903c[_0x300784(0xa9)](_0x5a5679['errorCode']),this[_0x300784(0x80)](_0x5a5679['errorCode'],_0x5a5679['errorMessage']));}return _0x52903c;}static[a61_0x7cef52(0x9a)](){const _0x458729=a61_0x7cef52;return this[_0x458729(0x8e)];}static[a61_0x7cef52(0x81)](_0x26cc49,_0x4bcaa4){const _0x4b7315=a61_0x7cef52,_0x2033a5={};_0x2033a5[_0x4b7315(0xdd)]=function(_0x367779,_0x14e047){return _0x367779===_0x14e047;},_0x2033a5[_0x4b7315(0xa0)]=_0x4b7315(0x87);const _0x569573=_0x2033a5;if(_0x569573[_0x4b7315(0xdd)](typeof _0x4bcaa4,_0x569573[_0x4b7315(0xa0)]))try{logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+JSON['stringify'](_0x4bcaa4));}catch(_0x1862d3){logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+_0x4bcaa4);}else logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+_0x4bcaa4);}static async[a61_0x7cef52(0xd2)](_0x9a930d){const _0x26616f=a61_0x7cef52,_0x210842={};_0x210842[_0x26616f(0xd7)]=_0x26616f(0xc4),_0x210842[_0x26616f(0xb0)]=function(_0x62861f,_0x2313be){return _0x62861f===_0x2313be;},_0x210842['IfHTs']=_0x26616f(0xb1),_0x210842[_0x26616f(0xd1)]=_0x26616f(0x85);const _0x2c08af=_0x210842,_0x3dbc49=await this[_0x26616f(0xbe)](_0x2c08af['oMUDj']);if(!_0x3dbc49||_0x2c08af['gFHbs'](Object[_0x26616f(0xb2)](_0x3dbc49)[_0x26616f(0x9d)],0x0)){this[_0x26616f(0x81)](_0x2c08af[_0x26616f(0x9c)],_0x3dbc49);return;}this[_0x26616f(0x80)](_0x3dbc49[_0x26616f(0xd4)],_0x3dbc49[_0x26616f(0x89)][_0x26616f(0xe3)](_0x2c08af['BkTky'],_0x9a930d));}static async[a61_0x7cef52(0xba)](){const _0x3bed9d=a61_0x7cef52,_0x186030={};_0x186030['stwYr']='Session\x20Linking\x20Issue',_0x186030[_0x3bed9d(0x83)]=function(_0x4e200f,_0x401a9c){return _0x4e200f===_0x401a9c;},_0x186030[_0x3bed9d(0xc6)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x26ca77=_0x186030,_0x461c4c=await this['getErrorDetails'](_0x26ca77[_0x3bed9d(0xce)]);if(!_0x461c4c||_0x26ca77[_0x3bed9d(0x83)](Object[_0x3bed9d(0xb2)](_0x461c4c)[_0x3bed9d(0x9d)],0x0)){this['logError'](_0x26ca77['WThew'],_0x461c4c);return;}this['logSituation'](_0x461c4c[_0x3bed9d(0xd4)],_0x461c4c['errorMessage']);}static async[a61_0x7cef52(0x90)](){const _0x8d9e09=a61_0x7cef52,_0x244102={};_0x244102[_0x8d9e09(0xc0)]=_0x8d9e09(0xa6),_0x244102[_0x8d9e09(0xc3)]=function(_0x23713b,_0x3ce20e){return _0x23713b===_0x3ce20e;},_0x244102['lrbhl']='Connectivity\x20Issue\x20details\x20not\x20found';const _0x33705d=_0x244102,_0x5f0c41=await this['getErrorDetails'](_0x33705d[_0x8d9e09(0xc0)]);if(!_0x5f0c41||_0x33705d[_0x8d9e09(0xc3)](Object[_0x8d9e09(0xb2)](_0x5f0c41)[_0x8d9e09(0x9d)],0x0)){this[_0x8d9e09(0x81)](_0x33705d[_0x8d9e09(0xa2)],_0x5f0c41);return;}this[_0x8d9e09(0x80)](_0x5f0c41['errorCode'],_0x5f0c41[_0x8d9e09(0x89)]);}static async[a61_0x7cef52(0xbd)](){const _0x3ceae2=a61_0x7cef52,_0x1eda9b={};_0x1eda9b['TElwC']=_0x3ceae2(0x93),_0x1eda9b[_0x3ceae2(0xcb)]=function(_0x4547a4,_0x4d45d8){return _0x4547a4===_0x4d45d8;},_0x1eda9b[_0x3ceae2(0xa5)]=_0x3ceae2(0xe1);const _0x57c2f6=_0x1eda9b,_0x32bd0b=await this[_0x3ceae2(0xbe)](_0x57c2f6[_0x3ceae2(0xbc)]);if(!_0x32bd0b||_0x57c2f6[_0x3ceae2(0xcb)](Object['keys'](_0x32bd0b)[_0x3ceae2(0x9d)],0x0)){this['logError'](_0x57c2f6[_0x3ceae2(0xa5)],_0x32bd0b);return;}this[_0x3ceae2(0x80)](_0x32bd0b['errorCode'],_0x32bd0b[_0x3ceae2(0x89)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x4b201a=a61_0x7cef52,_0x52ca22={};_0x52ca22['jHvek']=_0x4b201a(0xac),_0x52ca22[_0x4b201a(0xb5)]=function(_0x4974c2,_0x4f5fc5){return _0x4974c2===_0x4f5fc5;},_0x52ca22['pGmRA']=_0x4b201a(0x9b);const _0x33ae63=_0x52ca22,_0x34e9a6=constants[_0x4b201a(0xe2)][_0x33ae63[_0x4b201a(0x88)]];if(!_0x34e9a6||_0x33ae63[_0x4b201a(0xb5)](Object['keys'](_0x34e9a6)[_0x4b201a(0x9d)],0x0)){this[_0x4b201a(0x81)](_0x33ae63[_0x4b201a(0x91)],_0x34e9a6);return;}this[_0x4b201a(0x97)][_0x4b201a(0x9e)](_0x34e9a6[0x0]),this['logSituation'](_0x34e9a6[0x0],_0x34e9a6[0x1]);}static async['reportConflictingEnvVarIssue'](_0x3ba052){const _0x3dae6a=a61_0x7cef52,_0x2c00bf={};_0x2c00bf['kxgIZ']='conflicting\x20env\x20var\x20detected',_0x2c00bf[_0x3dae6a(0xd8)]=function(_0x38516f,_0x3084c5){return _0x38516f===_0x3084c5;},_0x2c00bf['YKpSs']=_0x3dae6a(0xb7),_0x2c00bf[_0x3dae6a(0xe0)]=_0x3dae6a(0xde);const _0x2c7ba9=_0x2c00bf,_0x468e56=await this['getErrorDetails'](_0x2c7ba9['kxgIZ']);if(!_0x468e56||_0x2c7ba9[_0x3dae6a(0xd8)](Object['keys'](_0x468e56)[_0x3dae6a(0x9d)],0x0)){this[_0x3dae6a(0x81)](_0x2c7ba9['YKpSs'],_0x468e56);return;}const _0x380e4f=_0x468e56[_0x3dae6a(0x89)][_0x3dae6a(0xe3)](_0x2c7ba9['QhiAw'],_0x3ba052);this[_0x3dae6a(0x80)](_0x468e56[_0x3dae6a(0xd4)],_0x380e4f);}static async[a61_0x7cef52(0x98)](){const _0x17aa23=a61_0x7cef52,_0x51b287={};_0x51b287[_0x17aa23(0xdb)]=function(_0x481515,_0x26850a){return _0x481515>_0x26850a;},_0x51b287[_0x17aa23(0xcf)]=function(_0x1c18b3,_0xb40dc4){return _0x1c18b3>_0xb40dc4;},_0x51b287[_0x17aa23(0xa8)]=_0x17aa23(0xaf),_0x51b287[_0x17aa23(0xa7)]=_0x17aa23(0x86);const _0x1eb0c5=_0x51b287,_0x580f9d=await this[_0x17aa23(0xdf)](),_0x237855=this[_0x17aa23(0x8b)](_0x580f9d),_0x4c87e8=Array[_0x17aa23(0x8a)](_0x580f9d[_0x17aa23(0xc7)])?_0x580f9d[_0x17aa23(0xc7)]:[],_0x44c5b0=_0x1eb0c5[_0x17aa23(0xdb)](this[_0x17aa23(0x97)]['size'],0x0)?Array[_0x17aa23(0xaa)](this[_0x17aa23(0x97)]):[],_0x3c6a6f=new Set([..._0x4c87e8,..._0x237855,..._0x44c5b0]),_0x154ffd=Array[_0x17aa23(0xaa)](_0x3c6a6f);if(_0x1eb0c5[_0x17aa23(0xcf)](_0x154ffd[_0x17aa23(0x9d)],0x0)){const _0x39b0e8=_0x580f9d[_0x17aa23(0x84)][_0x17aa23(0xe3)](_0x1eb0c5[_0x17aa23(0xa8)],_0x154ffd[_0x17aa23(0xb8)](',\x20'))[_0x17aa23(0xe3)](_0x1eb0c5[_0x17aa23(0xa7)],_0x580f9d[_0x17aa23(0x95)]);logger[_0x17aa23(0x9f)](_0x39b0e8),this[_0x17aa23(0x8e)]=_0x154ffd;}}}module['exports']=ClientTroubleShootingService;function a61_0x4d18(){const _0x418878=['reportConnectivityIssue','pGmRA','qeqNR','ssl\x20cert\x20issue','toString','documentationLink','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodesOccurredWhenCLINotRunning','reportFinalDetectionState','OAyqm','getCachedErrorCodes','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','IfHTs','length','add','warn','ulkOd','165QpvWnG','lrbhl','bOVwl','getSuccess','yoZXO','browserstack\x20cloud\x20not\x20reachable','gDVFp','zswzf','push','from','4593450AtPEzO','.browserstack\x20folder\x20not\x20accessible','[ClientTroubleShootingService]\x20','2uTYivK','{ERROR_CODES}','gFHbs','Process\x20Interruption\x20details\x20not\x20found:','keys','721537aEmURA','getErrorCodesOccurredInCli','zrlNY','getInstance','Conflicting\x20Env\x20Var\x20details\x20not\x20found','join','error','reportSessionLinkingIssue','llnmB','TElwC','reportSSLCertIssue','getErrorDetails','511jcIuRt','oEozb','6856UObQzP','tZHua','ACeGw','Process\x20Interruption','./constants','WThew','errorCodes','../v2/browserstackCLI','aczPF','base64','DlFhd','../v2/grpcClient','2117031QPGCdB','stwYr','qEkrX','getErrorCodes','BkTky','reportProcessInterruptionSituation','116410NzhfGV','errorCode','7398DafJtJ','isRunning','oMUDj','BraAi','reportClientTroubleshootingError','22158AAVHpA','HsZld','1402816iPftGJ','sBJsq','{ENV_VAR}','getAggregatedErrorCodes','QhiAw','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','CLIENT_TROUBLESHOOTING_HASH','replace','getDocumentationLink','logSituation','logError','errorCodesOccurredInCLI','BHIqA','finalErrorMessage','{SIGNAL}','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','object','jHvek','errorMessage','isArray','checkForErrorsOccuredInCLI','winstonLogger','piJdS','cachedErrorCodes','parse'];a61_0x4d18=function(){return _0x418878;};return a61_0x4d18();}