browserstack-node-sdk 1.58.0 → 1.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) 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/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  79. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  80. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  81. package/src/bin/mocha/test.setup.js +1 -1
  82. package/src/bin/newman/command.js +1 -1
  83. package/src/bin/newman/helper.js +1 -1
  84. package/src/bin/newman/reporter/index.js +1 -1
  85. package/src/bin/newman/scriptRunner.js +1 -1
  86. package/src/bin/nightwatch/command.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/sessionDetails.js +1 -1
  97. package/src/bin/puppeteer/patches.js +1 -1
  98. package/src/bin/puppeteer/sessionDetails.js +1 -1
  99. package/src/bin/puppeteer/test.setup.js +1 -1
  100. package/src/bin/runner.js +1 -1
  101. package/src/bin/setup.js +1 -1
  102. package/src/bin/test-runner/index.js +1 -1
  103. package/src/bin/test-runner/runTest.js +1 -1
  104. package/src/bin/test-runner/testWorker.js +1 -1
  105. package/src/bin/testcafe/a11y-runner.js +1 -1
  106. package/src/bin/testcafe/command.js +1 -1
  107. package/src/bin/testcafe/reporter/index.js +1 -1
  108. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  109. package/src/bin/testcafe/session-registry.js +1 -1
  110. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  111. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  112. package/src/bin/testcafe/w3c-driver.js +1 -1
  113. package/src/bin/utils/apiUtilityMethods.js +1 -1
  114. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  115. package/src/bin/utils/constants.js +1 -1
  116. package/src/bin/utils/log4jsAppender.js +1 -1
  117. package/src/bin/utils/logPatcher.js +1 -1
  118. package/src/bin/utils/logReportingAPI.js +1 -1
  119. package/src/bin/utils/playwright-patcher.js +1 -1
  120. package/src/bin/utils/puppeteer-patcher.js +1 -1
  121. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  122. package/src/bin/utils/sharedUtils.js +1 -1
  123. package/src/bin/v2/TestInfo.js +1 -1
  124. package/src/bin/v2/browserstackCLI.js +1 -1
  125. package/src/bin/v2/cliUtils.js +1 -1
  126. package/src/bin/v2/customTagManager.js +1 -1
  127. package/src/bin/v2/eventDispatcher.js +1 -1
  128. package/src/bin/v2/framework/automationFramework.js +1 -1
  129. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  130. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  132. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  133. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  134. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  136. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/testFramework.js +1 -1
  138. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  140. package/src/bin/v2/grpcClient.js +1 -1
  141. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  142. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/trackedContext.js +1 -1
  144. package/src/bin/v2/instances/trackedInstance.js +1 -1
  145. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  146. package/src/bin/v2/modules/baseModule.js +1 -1
  147. package/src/bin/v2/modules/loadTestModule.js +1 -1
  148. package/src/bin/v2/modules/observabilityModule.js +1 -1
  149. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  150. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  151. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testhubModule.js +1 -1
  153. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  154. package/src/bin/v2/state/hookState.js +1 -1
  155. package/src/bin/v2/state/testFrameworkState.js +1 -1
  156. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  157. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  158. package/src/bin/v2/utils/jest-utils.js +1 -1
  159. package/src/bin/vanilla-js/command.js +1 -1
  160. package/src/browserStackSdk.js +1 -1
  161. package/src/helpers/BrowserStackSetup.js +1 -1
  162. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  163. package/src/helpers/accessibility-automation/constants.js +1 -1
  164. package/src/helpers/accessibility-automation/helper.js +1 -1
  165. package/src/helpers/accessibility-automation/scripts.js +1 -1
  166. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  167. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  168. package/src/helpers/ats/constants.js +1 -1
  169. package/src/helpers/ats/helper.js +1 -1
  170. package/src/helpers/caCertHelper.js +1 -1
  171. package/src/helpers/capsMapping.js +1 -1
  172. package/src/helpers/central-scanner/constants.js +1 -1
  173. package/src/helpers/central-scanner/helpers.js +1 -1
  174. package/src/helpers/classLogger.js +1 -1
  175. package/src/helpers/driverInitErrorReporter.js +1 -1
  176. package/src/helpers/globals.js +1 -1
  177. package/src/helpers/helper.js +1 -1
  178. package/src/helpers/logger.js +1 -1
  179. package/src/helpers/metadata.js +1 -1
  180. package/src/helpers/patchHelper.js +1 -1
  181. package/src/helpers/patchHelpers.js +1 -1
  182. package/src/helpers/percy/Percy.js +1 -1
  183. package/src/helpers/percy/PercyBinary.js +1 -1
  184. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  185. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  186. package/src/helpers/percy/PercySDK.js +1 -1
  187. package/src/helpers/percy/index.js +1 -1
  188. package/src/helpers/percy/utils.js +1 -1
  189. package/src/helpers/performance/constants.js +1 -1
  190. package/src/helpers/performance/performance-tester.js +1 -1
  191. package/src/helpers/playwright-helper.js +1 -1
  192. package/src/helpers/processHelper.js +1 -1
  193. package/src/helpers/puppeteer-helper.js +1 -1
  194. package/src/helpers/request-spy.js +1 -1
  195. package/src/helpers/setKeepAlive.js +1 -1
  196. package/src/helpers/stackFrameUtils.js +1 -1
  197. package/src/helpers/test-observability/constants.js +1 -1
  198. package/src/helpers/test-observability/error-handler.js +1 -1
  199. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  200. package/src/helpers/test-observability/sessionHandler.js +1 -1
  201. package/src/helpers/test-observability/utils.js +1 -1
  202. package/src/helpers/test-orchestration/constants.js +1 -1
  203. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  204. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  205. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  206. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  207. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  208. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  209. package/src/helpers/testhub/constants.js +1 -1
  210. package/src/helpers/testhub/testhubHandler.js +1 -1
  211. package/src/helpers/testhub/utils.js +1 -1
  212. package/src/helpers/timeoutPromise.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- 'use strict';const a43_0x3d1610=a43_0x3672;(function(_0x4005f3,_0x3a17c9){const _0x544fcd=a43_0x3672,_0x261107=_0x4005f3();while(!![]){try{const _0x3538ac=parseInt(_0x544fcd(0x246))/0x1*(-parseInt(_0x544fcd(0x1cc))/0x2)+-parseInt(_0x544fcd(0x276))/0x3+-parseInt(_0x544fcd(0x1d0))/0x4+parseInt(_0x544fcd(0x1c7))/0x5+parseInt(_0x544fcd(0x218))/0x6+-parseInt(_0x544fcd(0x287))/0x7*(parseInt(_0x544fcd(0x24e))/0x8)+parseInt(_0x544fcd(0x26f))/0x9;if(_0x3538ac===_0x3a17c9)break;else _0x261107['push'](_0x261107['shift']());}catch(_0x1c2153){_0x261107['push'](_0x261107['shift']());}}}(a43_0x55f5,0x634ed));const path=require(a43_0x3d1610(0x1e6)),{v4:uuidv4}=require(a43_0x3d1610(0x1dd)),SessionHandler=require(a43_0x3d1610(0x231)),{debug}=require(a43_0x3d1610(0x1ba)),logger=require(a43_0x3d1610(0x1d3))['winstonLogger'],BrowserstackCLI=require(a43_0x3d1610(0x280)),GrpcClient=require(a43_0x3d1610(0x266)),TestFrameworkState=require(a43_0x3d1610(0x1bc)),HookState=require(a43_0x3d1610(0x22e)),LOG_LEVELS=[a43_0x3d1610(0x290),a43_0x3d1610(0x1ef),a43_0x3d1610(0x1d9),'DEBUG','TRACE'];function isCLIRunning(){const _0x530716=a43_0x3d1610;try{return BrowserstackCLI[_0x530716(0x1da)]()[_0x530716(0x282)]();}catch(_0x40a56c){return![];}}function a43_0x3672(_0x4faa5b,_0x2ef200){const _0x55f561=a43_0x55f5();return a43_0x3672=function(_0x367272,_0x50868a){_0x367272=_0x367272-0x19f;let _0x285a3f=_0x55f561[_0x367272];return _0x285a3f;},a43_0x3672(_0x4faa5b,_0x2ef200);}function getParentTitles(_0x418bb8){const _0x32b2ec=a43_0x3d1610,_0x37c799={'brZGS':function(_0x4e5f94,_0x203c5e){return _0x4e5f94(_0x203c5e);},'KzNYv':function(_0x1cad11,_0x2ab508){return _0x1cad11(_0x2ab508);}},_0x1988d5=[],_0x4ec921=_0x418bb8[_0x32b2ec(0x25b)]();return _0x4ec921&&_0x1988d5[_0x32b2ec(0x252)][_0x32b2ec(0x254)](_0x1988d5,_0x37c799[_0x32b2ec(0x23b)](getParentTitles,_0x4ec921)),_0x418bb8[_0x32b2ec(0x235)]&&_0x1988d5[_0x32b2ec(0x252)](_0x37c799[_0x32b2ec(0x1bd)](String,_0x418bb8[_0x32b2ec(0x235)])),_0x1988d5;}function a43_0x55f5(){const _0x3a72ec=['ZPxHg','MooYP','bs:addLog:','aigvo','logs','responseTime','koErF','../../v2/grpcClient','Lxnau','eROeq','HTTP\x20','error','timestamp','IxYPt','CRcKR','):\x20','13025916sQBXow','beforeIteration','SZWHK','Assertion\x20','startedAt','WctRN','failureType','2255223ZmGBEi','RrDZc','UnhandledError','zKZJK','YWqYE','resolve','LJQGp','method','Script\x20error\x20(','collectionName','../../v2/browserstackCLI','tDHsr','isRunning','unknown','jisLP','dsUdo','ATUYT','28315XnDTiD','TestRunStarted','idWUZ','LdYGI','HDmKy','pyJdb','testFrameworkVersion','IXEcu','YDkfc','INFO','err','Sklgx','FCZCf','object','result','ref','vPGTJ','execution','test_run_uuid','split','beforeItem','WVaxr','YUtXR','WHGss','http_response','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','trackEvent','xOSok','pid','duration_ms','ehOtc','[Newman\x20Reporter]\x20emitLog\x20error:\x20','JrZWT','item','test_run','LogCreated','jjigd','OiJfy','failure','passed','concat','toUpperCase','Kelbo','UPWyP','iteration','cursor','PXBJk','../../../helpers/test-observability/utils','newman','../../v2/state/testFrameworkState','KzNYv','RxjrI','XVsyU','messages','identifier','location','tgGtA','forEach','EEegK','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','1887750xPtAFz','TEST_LOG','ZUkOh','\x20—\x20response\x20status\x20in\x20failure\x20range','level','3490tglPQZ','lVGHG','VDXMg','console','1280552yRofZn','bSuXX','scopes','../../../helpers/logger','FGoCS','UPjcE','Kpqhi','collection','host','ERROR','getInstance','lastResponseCode','vqiyD','uuid','info','kzpuv','ZcovH','toString','toISOString','IldCJ','startsWith','ciYyU','path','nJCmU','getTime','ZlWBQ','response','vmzIw','[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20','FKERi','set','WARN','oJzWV','status_code','testFrameworkState','assertion','durationMs','ms)','HDJjk','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','HWdIu','POST','stringify','N/A','join','finishedAt','http://','includes','event_type','collectionPath','\x20(HTTP\x20','HHIUe','assertions','IkQyV','failure_reason_expanded','ofCCp','failed','kind','McgcB','JqaFD','QHuos','wXNAL','LKxZZ','[Newman\x20Reporter]\x20emitTest\x20error:\x20','startTimestamp','HTTP','MovXd','TpgWp','removeListener','zpfct','nPGAv','uploadEventData','2724810vjGpRu','expanded','HkpQL','\x20(no\x20assertions)','kszCF','TestRunFinished','code','message','sojOQ','length','stack','nDTiy','No\x20HTTP\x20response\x20received','MzAKA','exports','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','script','YENEs','failureReason','zFQET','headers','listen','../../v2/state/hookState','url','request','../../../helpers/test-observability/sessionHandler','fFxUC','relative','TEST','name','MNEKK','bufferedLogs','ifyDg','backtrace','search','brZGS','vbtqw','xUZHR','PRE','GET','now','hostname','BPJcU','clear','BAuAn','slice','104GiMdYg','http','gFxOO','GvccG','dkcql','cwd','\x20->\x20','ckCiU','1224qbuDkA','get','platformIndex','delete','push','pathname','apply','run','HwAiU','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','event','fjCRi','NBnhZ','parent','fjeDN','httpLog','logCreatedEvent'];a43_0x55f5=function(){return _0x3a72ec;};return a43_0x55f5();}function normalizeLogLevel(_0x3eec33){const _0x274e58=a43_0x3d1610,_0x3d5443={};_0x3d5443[_0x274e58(0x28b)]=_0x274e58(0x290),_0x3d5443[_0x274e58(0x1d1)]=function(_0x523259,_0x268cb6){return _0x523259!==_0x268cb6;};const _0x722b17=_0x3d5443;if(!_0x3eec33)return _0x722b17['HDmKy'];const _0x26e1f3=_0x3eec33[_0x274e58(0x1b4)]();return _0x722b17[_0x274e58(0x1d1)](LOG_LEVELS['indexOf'](_0x26e1f3),-0x1)?_0x26e1f3:_0x722b17[_0x274e58(0x28b)];}function resolveCollectionFile(_0x227656,_0x3672af){const _0x46c5d0=a43_0x3d1610,_0x3f9ac4={};_0x3f9ac4[_0x46c5d0(0x25c)]=function(_0x2aa315,_0x15963b){return _0x2aa315===_0x15963b;},_0x3f9ac4[_0x46c5d0(0x1d5)]='string',_0x3f9ac4[_0x46c5d0(0x265)]=_0x46c5d0(0x255),_0x3f9ac4[_0x46c5d0(0x1b9)]=function(_0xd85df9,_0x22421e){return _0xd85df9!==_0x22421e;},_0x3f9ac4[_0x46c5d0(0x1a9)]=function(_0x2f4527,_0x1fa617){return _0x2f4527<_0x1fa617;},_0x3f9ac4['vbtqw']=function(_0x18a0f3,_0x35e77d){return _0x18a0f3+_0x35e77d;},_0x3f9ac4[_0x46c5d0(0x20b)]=function(_0x28466a,_0x425321){return _0x28466a+_0x425321;},_0x3f9ac4[_0x46c5d0(0x229)]=_0x46c5d0(0x257),_0x3f9ac4[_0x46c5d0(0x26c)]='collection.json';const _0x3ec275=_0x3f9ac4;try{if(_0x3672af&&_0x3672af[_0x46c5d0(0x201)])return path[_0x46c5d0(0x233)](process[_0x46c5d0(0x24b)](),path[_0x46c5d0(0x27b)](_0x3672af[_0x46c5d0(0x201)]));const _0x515243=_0x227656['collection'];if(_0x3ec275[_0x46c5d0(0x25c)](typeof _0x515243,_0x3ec275[_0x46c5d0(0x1d5)]))return path[_0x46c5d0(0x233)](process[_0x46c5d0(0x24b)](),path['resolve'](_0x515243));const _0x4be4c1=process['argv']['indexOf'](_0x3ec275[_0x46c5d0(0x265)]);if(_0x3ec275[_0x46c5d0(0x1b9)](_0x4be4c1,-0x1)&&_0x3ec275[_0x46c5d0(0x1a9)](_0x3ec275[_0x46c5d0(0x23c)](_0x4be4c1,0x1),process['argv'][_0x46c5d0(0x221)])){const _0xf79f76=process['argv'][_0x3ec275[_0x46c5d0(0x20b)](_0x4be4c1,0x1)];if(_0xf79f76&&!_0xf79f76[_0x46c5d0(0x1e4)]('-'))return path['relative'](process['cwd'](),path['resolve'](_0xf79f76));}}catch(_0x1517f4){}return logger['info'](_0x3ec275[_0x46c5d0(0x229)]),_0x3ec275['IxYPt'];}function resolveCollectionName(_0x3c9342){const _0x4c7119=a43_0x3d1610,_0x2df1f5={};_0x2df1f5['IkQyV']=function(_0x3652cd,_0x1e740a){return _0x3652cd===_0x1e740a;},_0x2df1f5['SZWHK']=_0x4c7119(0x294);const _0x471572=_0x2df1f5;try{const _0x50c76e=_0x3c9342[_0x4c7119(0x1d7)];if(_0x50c76e&&_0x471572[_0x4c7119(0x205)](typeof _0x50c76e,_0x471572[_0x4c7119(0x271)]))return _0x50c76e[_0x4c7119(0x235)]||_0x50c76e[_0x4c7119(0x1de)]&&_0x50c76e[_0x4c7119(0x1de)][_0x4c7119(0x235)]||null;}catch(_0x35f5e4){}return null;}function emitTest(_0x4b02ae,_0x31e315,_0x4815ba,_0x1bb1c9,_0x3afbd1){const _0x41df0f=a43_0x3d1610,_0x475d97={'zFQET':function(_0x48bc49){return _0x48bc49();},'zxcBd':'pending','qqwac':function(_0x31b739,_0x55c9c4){return _0x31b739(_0x55c9c4);},'jjigd':_0x41df0f(0x1bb),'QHuos':'javascript','XbAqL':function(_0x350a5a,_0x554597){return _0x350a5a!=_0x554597;},'Sklgx':function(_0x17f85c,_0x1496d1){return _0x17f85c===_0x1496d1;},'idWUZ':_0x41df0f(0x288),'HDJjk':_0x41df0f(0x21d)};if(_0x475d97[_0x41df0f(0x22b)](isCLIRunning))try{const _0x387c49=BrowserstackCLI[_0x41df0f(0x1da)]()['getTestFramework']();if(!_0x387c49)return;_0x387c49[_0x41df0f(0x1a5)](TestFrameworkState[_0x41df0f(0x234)],_0x4b02ae,{'test':{'uuid':_0x31e315['uuid'],'name':_0x31e315[_0x41df0f(0x235)],'scopes':_0x4815ba[_0x41df0f(0x1d2)],'scope':_0x4815ba[_0x41df0f(0x1d2)][_0x41df0f(0x1fc)]('\x20'),'file_path':_0x1bb1c9,'location':_0x4815ba[_0x41df0f(0x27f)],'started_at':_0x4815ba[_0x41df0f(0x273)],'finished_at':_0x3afbd1['finishedAt']||null,'result':_0x3afbd1[_0x41df0f(0x295)]||_0x475d97['zxcBd'],'failure':_0x3afbd1[_0x41df0f(0x1b1)]||[],'failure_type':_0x3afbd1[_0x41df0f(0x275)]||null,'failure_reason':_0x3afbd1[_0x41df0f(0x22a)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0xee2893){_0x475d97['qqwac'](debug,_0x41df0f(0x20f)+_0xee2893);}else{const _0x3698af={'uuid':_0x31e315[_0x41df0f(0x1dd)],'name':_0x31e315[_0x41df0f(0x235)],'framework':_0x475d97[_0x41df0f(0x1af)],'body':{'lang':_0x475d97[_0x41df0f(0x20c)],'code':null},'scope':_0x4815ba[_0x41df0f(0x1d2)][_0x41df0f(0x1fc)]('\x20'),'scopes':_0x4815ba[_0x41df0f(0x1d2)],'identifier':_0x31e315['identifier'],'file_name':_0x4815ba[_0x41df0f(0x27f)],'vc_filepath':_0x4815ba['location'],'location':_0x4815ba[_0x41df0f(0x1c2)],'started_at':_0x4815ba[_0x41df0f(0x273)],'finished_at':_0x3afbd1[_0x41df0f(0x1fd)]||null,'duration_in_ms':_0x475d97['XbAqL'](_0x3afbd1[_0x41df0f(0x1f4)],null)?Math['max'](0x0,_0x3afbd1[_0x41df0f(0x1f4)]):null,'result':_0x3afbd1[_0x41df0f(0x295)]||_0x475d97['zxcBd'],'failure_reason':_0x3afbd1['failureReason']||null,'failure_type':_0x3afbd1[_0x41df0f(0x275)]||null,'failure':_0x3afbd1['failure']||[],'retry_of':null,'hooks':[]};_0x3698af[_0x41df0f(0x1b1)][0x0]&&(_0x3698af['failure_backtrace']=_0x3698af[_0x41df0f(0x1b1)][0x0][_0x41df0f(0x239)],_0x3698af[_0x41df0f(0x206)]=_0x3698af[_0x41df0f(0x1b1)][0x0][_0x41df0f(0x219)]);const _0x4686a4=_0x475d97[_0x41df0f(0x292)](_0x4b02ae,HookState[_0x41df0f(0x23e)])?_0x475d97[_0x41df0f(0x289)]:_0x475d97[_0x41df0f(0x1f6)],_0x2650d1={};_0x2650d1['event_type']=_0x4686a4,_0x2650d1[_0x41df0f(0x1ad)]=_0x3698af,SessionHandler[_0x41df0f(0x217)](_0x2650d1);}}function emitLog(_0x1197f0,_0x4d15bb){const _0x23f995=a43_0x3d1610,_0x5d068f={'FKERi':_0x23f995(0x1c8),'zFwcS':function(_0x3c03f4){return _0x3c03f4();},'dsUdo':function(_0x48fe9b,_0x4aaf3d){return _0x48fe9b===_0x4aaf3d;},'oJzWV':_0x23f995(0x211),'hQDju':_0x23f995(0x1bb),'tgGtA':_0x23f995(0x234),'aigvo':_0x23f995(0x290),'hMDvV':function(_0x3aca39,_0x42abc5){return _0x3aca39(_0x42abc5);},'ABUmR':function(_0x203a5c,_0x5dc8cd){return _0x203a5c+_0x5dc8cd;},'YDkfc':_0x23f995(0x1aa),'dkcql':_0x23f995(0x1ae)},_0x13f867=_0x4d15bb[_0x23f995(0x209)]||_0x5d068f[_0x23f995(0x1ed)],_0x23d580=_0x4d15bb[_0x23f995(0x26b)]||new Date()['toISOString']();if(_0x5d068f['zFwcS'](isCLIRunning))try{const _0x3ddb98=_0x5d068f[_0x23f995(0x285)](_0x13f867,_0x5d068f[_0x23f995(0x1f0)])?JSON[_0x23f995(0x1fa)](_0x4d15bb):_0x4d15bb['message']||'',_0x788fa8={};_0x788fa8[_0x23f995(0x250)]=0x0,_0x788fa8['testFrameworkName']=_0x5d068f['hQDju'],_0x788fa8[_0x23f995(0x28d)]='',_0x788fa8[_0x23f995(0x1f2)]=_0x5d068f[_0x23f995(0x1c3)],_0x788fa8[_0x23f995(0x263)]=[{'uuid':_0x1197f0,'timestamp':_0x23d580,'kind':_0x13f867,'level':_0x4d15bb[_0x23f995(0x1cb)]||_0x5d068f[_0x23f995(0x262)],'message':_0x3ddb98}],GrpcClient['getInstance']()[_0x23f995(0x25e)](_0x788fa8);}catch(_0x369af0){_0x5d068f['hMDvV'](debug,_0x5d068f['ABUmR'](_0x5d068f[_0x23f995(0x28f)],_0x369af0));}else{const _0x1f36bc={};_0x1f36bc[_0x23f995(0x299)]=_0x1197f0,_0x1f36bc[_0x23f995(0x26b)]=_0x23d580,_0x1f36bc[_0x23f995(0x1cb)]=_0x4d15bb['level']||null,_0x1f36bc[_0x23f995(0x21f)]=_0x4d15bb[_0x23f995(0x21f)]||null,_0x1f36bc['kind']=_0x13f867,_0x1f36bc[_0x23f995(0x1a3)]=_0x4d15bb[_0x23f995(0x1a3)]||{};const _0x114328={};_0x114328[_0x23f995(0x200)]=_0x5d068f[_0x23f995(0x24a)],_0x114328['logs']=[_0x1f36bc],SessionHandler[_0x23f995(0x217)](_0x114328);}}function BrowserStackNewmanReporter(_0x597cea,_0x1aca7a,_0x247667){const _0x5a40ee=a43_0x3d1610,_0x10a5c8={'Kelbo':function(_0x2ed00e,_0x1c3d10,_0x5ce4aa){return _0x2ed00e(_0x1c3d10,_0x5ce4aa);},'nJCmU':function(_0x5b29e9,_0xac0489){return _0x5b29e9(_0xac0489);},'IXEcu':function(_0x1494ee,_0x9ebe3d){return _0x1494ee(_0x9ebe3d);},'UPWyP':function(_0x4edd85,_0x5f6a1b){return _0x4edd85>_0x5f6a1b;},'qwMIf':function(_0x7c9718,_0x41a896){return _0x7c9718(_0x41a896);},'vqiyD':_0x5a40ee(0x247),'HHIUe':function(_0x494d28,_0x31e82f){return _0x494d28+_0x31e82f;},'gFxOO':_0x5a40ee(0x23f),'XVsyU':function(_0x2f2e99,_0x5d17f7){return _0x2f2e99(_0x5d17f7);},'WctRN':_0x5a40ee(0x1c8),'xUZHR':function(_0x394a5a){return _0x394a5a();},'GvccG':function(_0x5c2ffa,_0x4f8c9e){return _0x5c2ffa||_0x4f8c9e;},'haSGE':function(_0x6d8c2f,_0x24ef55,_0x211955,_0x824281,_0x263216,_0x203da8){return _0x6d8c2f(_0x24ef55,_0x211955,_0x824281,_0x263216,_0x203da8);},'McgcB':function(_0xdfb348,_0x38c448){return _0xdfb348===_0x38c448;},'JrZWT':function(_0x480124,_0xb00739){return _0x480124>_0xb00739;},'RrDZc':_0x5a40ee(0x211),'CRcKR':function(_0x88d573,_0x55dba7){return _0x88d573+_0x55dba7;},'WVaxr':function(_0x9d1034,_0x21aea5){return _0x9d1034+_0x21aea5;},'LdYGI':function(_0x3e8961,_0x49b692){return _0x3e8961+_0x49b692;},'nDTiy':function(_0x495795,_0x584a60){return _0x495795+_0x584a60;},'fFxUC':function(_0xfefdd,_0x401503){return _0xfefdd+_0x401503;},'BAuAn':_0x5a40ee(0x24c),'RxjrI':_0x5a40ee(0x1f5),'ckCiU':_0x5a40ee(0x290),'zKZJK':function(_0x43eee3,_0x3475ae){return _0x43eee3(_0x3475ae);},'rFuFz':function(_0x95f092,_0x59d5c0){return _0x95f092-_0x59d5c0;},'tDHsr':function(_0x5f3bfc,_0x18ac0a,_0x8ede3c){return _0x5f3bfc(_0x18ac0a,_0x8ede3c);},'kszCF':function(_0x38d5d4,_0x31d7f2){return _0x38d5d4(_0x31d7f2);},'MzAKA':function(_0x41f922,_0x4e2c49){return _0x41f922(_0x4e2c49);},'pyJdb':function(_0x333f2d,_0x5d2efb){return _0x333f2d(_0x5d2efb);},'kzpuv':function(_0x3d91de,_0x3851f2){return _0x3d91de&&_0x3851f2;},'PqWJW':function(_0x29e567,_0x1cc2bd){return _0x29e567>_0x1cc2bd;},'VhZIc':'Exception:\x20','ciYyU':'ERROR','nPGAv':function(_0x340a4a,_0x1d8f4f){return _0x340a4a(_0x1d8f4f);},'lqkGB':_0x5a40ee(0x1f7),'jnHZu':function(_0x175949,_0x57c8b7){return _0x175949>_0x57c8b7;},'sojOQ':function(_0x53facd,_0xd243a6){return _0x53facd-_0xd243a6;},'ifyDg':_0x5a40ee(0x283),'LNQJm':function(_0x3efd7f,_0x4b4b8b,_0x5f57b7){return _0x3efd7f(_0x4b4b8b,_0x5f57b7);},'jisLP':function(_0x5a3bde,_0x405808){return _0x5a3bde+_0x405808;},'vmzIw':_0x5a40ee(0x27e),'eROeq':_0x5a40ee(0x26e),'Kpqhi':function(_0x575755,_0x1dc9ef){return _0x575755(_0x1dc9ef);},'ZPxHg':function(_0x2e69f3,_0x39ceac){return _0x2e69f3+_0x39ceac;},'ZlWBQ':_0x5a40ee(0x1c6),'YUtXR':_0x5a40ee(0x208),'wXNAL':_0x5a40ee(0x1b2),'BAszp':function(_0x30712c,_0x51e2e5){return _0x30712c===_0x51e2e5;},'dTUnr':'AssertionError','WHGss':'assert','IldCJ':_0x5a40ee(0x278),'vPGTJ':function(_0x1c31fe,_0x56c0e9,_0x3c4bc7,_0x1d7243,_0x4635d7,_0x567dfc){return _0x1c31fe(_0x56c0e9,_0x3c4bc7,_0x1d7243,_0x4635d7,_0x567dfc);},'LJQGp':function(_0x2faa76,_0x40fd23,_0x14d3df){return _0x2faa76(_0x40fd23,_0x14d3df);},'FGoCS':function(_0xe95152,_0x493103){return _0xe95152>_0x493103;},'HkpQL':function(_0x51d760,_0x47b35a){return _0x51d760!=_0x47b35a;},'HwAiU':function(_0x148c6e,_0x16e20e){return _0x148c6e>=_0x16e20e;},'FCZCf':function(_0x1ba8ca,_0x338465){return _0x1ba8ca<_0x338465;},'MovXd':function(_0x12fe11,_0x2789e9){return _0x12fe11||_0x2789e9;},'MooYP':_0x5a40ee(0x1fb),'YWqYE':_0x5a40ee(0x224),'MNEKK':function(_0x45ce3f,_0x192813,_0x41e8b8,_0x10842e,_0xb40b34,_0x4d37a7){return _0x45ce3f(_0x192813,_0x41e8b8,_0x10842e,_0xb40b34,_0x4d37a7);},'ATUYT':function(_0x561f16,_0x20ca1f,_0x1159b9){return _0x561f16(_0x20ca1f,_0x1159b9);},'lVGHG':function(_0x39d292,_0x52f80a){return _0x39d292+_0x52f80a;},'fjCRi':function(_0x448b3a,_0x5d9762){return _0x448b3a+_0x5d9762;},'OiJfy':function(_0x4815ab,_0x358839){return _0x4815ab+_0x358839;},'LKxZZ':function(_0x2e236a,_0x4bee71){return _0x2e236a+_0x4bee71;},'TpgWp':function(_0x1950ae,_0x572c47){return _0x1950ae+_0x572c47;},'BPJcU':function(_0xc1de8a,_0x11f115){return _0xc1de8a+_0x11f115;},'ZcovH':'HTTP\x20Status:\x20','zpfct':_0x5a40ee(0x21b),'AHVEw':function(_0x2c4470,_0x2b3626,_0x2c733a){return _0x2c4470(_0x2b3626,_0x2c733a);},'ofCCp':function(_0x4acbbf,_0x4a046f){return _0x4acbbf(_0x4a046f);},'ESSXD':'done','yceSd':_0x5a40ee(0x270),'xOSok':_0x5a40ee(0x19f),'HWdIu':_0x5a40ee(0x230),'ZUkOh':_0x5a40ee(0x1f3),'NBnhZ':_0x5a40ee(0x1cf),'EEegK':'exception','IfhTG':_0x5a40ee(0x228),'Lxnau':_0x5a40ee(0x1ac)},_0x52765c=new Map();let _0x561f78=null,_0x17394e=0x0;const _0x4ca8b4=_0x10a5c8['AHVEw'](resolveCollectionFile,_0x247667,_0x1aca7a),_0x197103=_0x10a5c8[_0x5a40ee(0x207)](resolveCollectionName,_0x247667)||_0x4ca8b4,_0x36231f=path[_0x5a40ee(0x27b)](_0x4ca8b4),_0x3cb122=_0x5a40ee(0x261)+process[_0x5a40ee(0x1a7)],_0x2305b7=_0x321e31=>{const _0x30c9f2=_0x5a40ee;try{_0x561f78&&_0x10a5c8[_0x30c9f2(0x1b5)](emitLog,_0x561f78,_0x321e31);}catch(_0x5b301c){_0x10a5c8[_0x30c9f2(0x1e7)](debug,_0x30c9f2(0x1a4)+_0x5b301c);}};process['on'](_0x3cb122,_0x2305b7),_0x597cea['on'](_0x10a5c8['ESSXD'],()=>{const _0x39d1c6=_0x5a40ee;process[_0x39d1c6(0x214)](_0x3cb122,_0x2305b7),_0x52765c[_0x39d1c6(0x243)]();}),_0x597cea['on'](_0x10a5c8['yceSd'],(_0x2a347d,_0x400de7)=>{const _0x5ce4c9=_0x5a40ee;_0x400de7&&_0x400de7[_0x5ce4c9(0x1b8)]&&(_0x17394e=_0x400de7[_0x5ce4c9(0x1b8)][_0x5ce4c9(0x1b7)]||0x0);}),_0x597cea['on'](_0x10a5c8[_0x5a40ee(0x1a6)],(_0x2b8305,_0x137191)=>{const _0x4fa80c=_0x5a40ee;try{_0x561f78=null;const _0x4c3ad6=_0x137191[_0x4fa80c(0x1ac)],_0x4648a4=_0x4c3ad6[_0x4fa80c(0x25b)]()?_0x10a5c8[_0x4fa80c(0x28e)](getParentTitles,_0x4c3ad6['parent']()):[],_0x11ac74=_0x10a5c8[_0x4fa80c(0x1b6)](_0x4648a4['length'],0x1)?_0x4648a4[_0x4fa80c(0x245)](0x1):_0x4648a4,_0x202d49=_0x137191[_0x4fa80c(0x1b8)]&&_0x137191[_0x4fa80c(0x1b8)]['ref'],_0x56d2ba={'itemName':_0x4c3ad6['name'],'scopes':_0x11ac74[_0x4fa80c(0x1b3)]([_0x4c3ad6['name']]),'location':_0x4ca8b4,'collectionName':_0x197103,'startedAt':new Date()[_0x4fa80c(0x1e2)](),'startTimestamp':Date[_0x4fa80c(0x240)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x52765c[_0x4fa80c(0x1ee)](_0x4c3ad6['id']+'_'+_0x17394e,_0x56d2ba),_0x202d49&&_0x52765c[_0x4fa80c(0x1ee)](_0x202d49+'_'+_0x17394e,_0x56d2ba);}catch(_0x65d5f6){_0x10a5c8['qwMIf'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20'+_0x65d5f6);}}),_0x597cea['on'](_0x10a5c8[_0x5a40ee(0x1f8)],(_0x400569,_0x373aad)=>{const _0x1ae48f=_0x5a40ee;try{if(!_0x373aad||!_0x373aad[_0x1ae48f(0x1ac)])return;const _0x371f31=_0x52765c['get'](_0x373aad[_0x1ae48f(0x1ac)]['id']+'_'+_0x17394e);if(!_0x371f31)return;_0x373aad[_0x1ae48f(0x1ea)]&&(_0x371f31[_0x1ae48f(0x1db)]=_0x373aad[_0x1ae48f(0x1ea)][_0x1ae48f(0x21e)]||null);if(!_0x373aad['request'])return;let _0x193c47='',_0x2270d1='';if(_0x373aad[_0x1ae48f(0x230)][_0x1ae48f(0x22f)])try{const _0x4d6f79=_0x373aad[_0x1ae48f(0x230)][_0x1ae48f(0x22f)][_0x1ae48f(0x1e1)](),_0xf2281b=new URL(_0x4d6f79[_0x1ae48f(0x1e4)](_0x10a5c8[_0x1ae48f(0x1dc)])?_0x4d6f79:_0x1ae48f(0x1fe)+_0x4d6f79);_0x193c47=_0xf2281b[_0x1ae48f(0x241)],_0x2270d1=_0x10a5c8[_0x1ae48f(0x203)](_0xf2281b[_0x1ae48f(0x253)],_0xf2281b[_0x1ae48f(0x23a)]);}catch(_0x512b38){_0x2270d1=_0x373aad[_0x1ae48f(0x230)][_0x1ae48f(0x22f)][_0x1ae48f(0x1e1)]();}const _0x40670c={};_0x40670c[_0x1ae48f(0x1d8)]=_0x193c47,_0x40670c['path']=_0x2270d1,_0x40670c[_0x1ae48f(0x27d)]=_0x373aad[_0x1ae48f(0x230)][_0x1ae48f(0x27d)]||_0x10a5c8[_0x1ae48f(0x248)],_0x40670c[_0x1ae48f(0x22c)]={},_0x40670c[_0x1ae48f(0x1f1)]=_0x373aad[_0x1ae48f(0x1ea)]?_0x373aad[_0x1ae48f(0x1ea)][_0x1ae48f(0x21e)]||0x0:0x0,_0x40670c[_0x1ae48f(0x1a8)]=_0x373aad[_0x1ae48f(0x1ea)]?_0x373aad['response'][_0x1ae48f(0x264)]||0x0:0x0,_0x371f31[_0x1ae48f(0x25d)]=_0x40670c;}catch(_0x47594f){_0x10a5c8[_0x1ae48f(0x1bf)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20request:\x20'+_0x47594f);}}),_0x597cea['on'](_0x10a5c8[_0x5a40ee(0x1c9)],(_0x143081,_0x43e237)=>{const _0x27e161=_0x5a40ee;try{if(!_0x43e237||!_0x43e237['item'])return;const _0x43cb8d=_0x52765c['get'](_0x43e237['item']['id']+'_'+_0x17394e);if(!_0x43cb8d)return;const _0x44fb9e=_0x43e237[_0x27e161(0x1f3)]||_0x27e161(0x272)+_0x10a5c8[_0x27e161(0x203)](_0x43cb8d[_0x27e161(0x204)][_0x27e161(0x221)],0x1),_0x4f9345=_0x10a5c8[_0x27e161(0x23d)](uuidv4),_0x44ac3e=_0x43cb8d[_0x27e161(0x1d2)][_0x27e161(0x1b3)]([_0x44fb9e])['join']('\x20');_0x43cb8d[_0x27e161(0x204)][_0x27e161(0x252)]({'uuid':_0x4f9345,'name':_0x44fb9e,'identifier':_0x44ac3e,'err':_0x10a5c8['GvccG'](_0x143081,null)});const _0x19fe2e={};_0x19fe2e['uuid']=_0x4f9345,_0x19fe2e[_0x27e161(0x235)]=_0x44fb9e,_0x19fe2e[_0x27e161(0x1c1)]=_0x44ac3e,_0x10a5c8['haSGE'](emitTest,HookState[_0x27e161(0x23e)],_0x19fe2e,_0x43cb8d,_0x36231f,{});_0x10a5c8[_0x27e161(0x20a)](_0x43cb8d['assertions'][_0x27e161(0x221)],0x1)&&_0x10a5c8['JrZWT'](_0x43cb8d[_0x27e161(0x237)]['length'],0x0)&&(_0x43cb8d[_0x27e161(0x237)][_0x27e161(0x1c4)](_0x2aa7e9=>{const _0x41530e=_0x27e161;_0x10a5c8['Kelbo'](emitLog,_0x4f9345,{'kind':_0x10a5c8['WctRN'],'message':_0x2aa7e9[_0x41530e(0x21f)],'level':_0x2aa7e9[_0x41530e(0x1cb)]});}),_0x43cb8d[_0x27e161(0x237)]=[]);if(_0x43cb8d[_0x27e161(0x25d)]){_0x10a5c8['Kelbo'](emitLog,_0x4f9345,{'kind':_0x10a5c8['RrDZc'],'http_response':_0x43cb8d['httpLog']});const _0x119a61=_0x10a5c8[_0x27e161(0x26d)](_0x10a5c8[_0x27e161(0x1a0)](_0x10a5c8[_0x27e161(0x28a)](_0x10a5c8[_0x27e161(0x223)](_0x10a5c8[_0x27e161(0x26d)](_0x10a5c8[_0x27e161(0x28a)](_0x10a5c8[_0x27e161(0x26d)](_0x10a5c8[_0x27e161(0x232)](_0x43cb8d['httpLog']['method']||_0x10a5c8[_0x27e161(0x248)],'\x20'),_0x43cb8d[_0x27e161(0x25d)][_0x27e161(0x1d8)]),_0x43cb8d[_0x27e161(0x25d)][_0x27e161(0x1e6)]),_0x10a5c8[_0x27e161(0x244)]),_0x43cb8d[_0x27e161(0x25d)]['status_code']),'\x20('),_0x43cb8d[_0x27e161(0x25d)][_0x27e161(0x1a8)]),_0x10a5c8['RxjrI']);_0x10a5c8[_0x27e161(0x1b5)](emitLog,_0x4f9345,{'kind':_0x10a5c8[_0x27e161(0x274)],'message':_0x119a61,'level':_0x10a5c8[_0x27e161(0x24d)]});}_0x561f78=_0x4f9345;}catch(_0x504e24){_0x10a5c8[_0x27e161(0x279)](debug,_0x27e161(0x1ec)+_0x504e24);}}),_0x597cea['on'](_0x10a5c8[_0x5a40ee(0x25a)],(_0x3dc90e,_0x311457)=>{const _0x43f72d=_0x5a40ee;try{if(!_0x311457)return;let _0x52d3da=_0x561f78;if(!_0x52d3da&&_0x311457[_0x43f72d(0x1b8)]&&_0x311457[_0x43f72d(0x1b8)][_0x43f72d(0x296)]){const _0x1fd9a0=_0x52765c[_0x43f72d(0x24f)](_0x311457[_0x43f72d(0x1b8)][_0x43f72d(0x296)]+'_'+_0x17394e);_0x1fd9a0&&_0x10a5c8[_0x43f72d(0x1ab)](_0x1fd9a0[_0x43f72d(0x204)]['length'],0x0)&&(_0x52d3da=_0x1fd9a0[_0x43f72d(0x204)][_0x10a5c8['rFuFz'](_0x1fd9a0[_0x43f72d(0x204)][_0x43f72d(0x221)],0x1)][_0x43f72d(0x1dd)]);}const _0x1fd00a=_0x311457['messages']?_0x311457[_0x43f72d(0x1c0)][_0x43f72d(0x1fc)](',\x20'):'';if(_0x52d3da)_0x10a5c8['tDHsr'](emitLog,_0x52d3da,{'kind':_0x10a5c8[_0x43f72d(0x274)],'message':_0x1fd00a,'level':_0x10a5c8[_0x43f72d(0x1bf)](normalizeLogLevel,_0x311457[_0x43f72d(0x1cb)])});else{if(_0x311457['cursor']&&_0x311457['cursor']['ref']){const _0x338b79=_0x52765c[_0x43f72d(0x24f)](_0x311457[_0x43f72d(0x1b8)]['ref']+'_'+_0x17394e);_0x338b79&&_0x338b79[_0x43f72d(0x237)][_0x43f72d(0x252)]({'timestamp':new Date()[_0x43f72d(0x1e2)](),'level':_0x10a5c8[_0x43f72d(0x21c)](normalizeLogLevel,_0x311457['level']),'message':_0x1fd00a});}}}catch(_0x43bdb3){_0x10a5c8[_0x43f72d(0x225)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20console:\x20'+_0x43bdb3);}}),_0x597cea['on'](_0x10a5c8[_0x5a40ee(0x1c5)],(_0x511f05,_0x244a56)=>{const _0x5eee49=_0x5a40ee;try{if(!_0x511f05&&(!_0x244a56||!_0x244a56[_0x5eee49(0x26a)]))return;const _0x42ac77=_0x511f05||_0x244a56['error'],_0x101ec=_0x42ac77[_0x5eee49(0x21f)]||_0x10a5c8[_0x5eee49(0x28c)](String,_0x42ac77),_0x3ceb10=_0x42ac77['stack']||_0x101ec;let _0x145746=_0x561f78;if(_0x10a5c8[_0x5eee49(0x1df)](!_0x145746,_0x244a56)&&_0x244a56[_0x5eee49(0x1b8)]&&_0x244a56['cursor'][_0x5eee49(0x296)]){const _0x1561d3=_0x52765c[_0x5eee49(0x24f)](_0x244a56[_0x5eee49(0x1b8)][_0x5eee49(0x296)]+'_'+_0x17394e);_0x1561d3&&_0x10a5c8['PqWJW'](_0x1561d3['assertions'][_0x5eee49(0x221)],0x0)&&(_0x145746=_0x1561d3[_0x5eee49(0x204)][_0x10a5c8['rFuFz'](_0x1561d3[_0x5eee49(0x204)][_0x5eee49(0x221)],0x1)][_0x5eee49(0x1dd)]);}_0x145746&&_0x10a5c8[_0x5eee49(0x281)](emitLog,_0x145746,{'kind':_0x10a5c8[_0x5eee49(0x274)],'message':_0x10a5c8[_0x5eee49(0x1a0)](_0x10a5c8['VhZIc'],_0x3ceb10),'level':_0x10a5c8[_0x5eee49(0x1e5)]});}catch(_0x5a88db){_0x10a5c8[_0x5eee49(0x216)](debug,_0x10a5c8[_0x5eee49(0x26d)](_0x10a5c8['lqkGB'],_0x5a88db));}}),_0x597cea['on'](_0x10a5c8['IfhTG'],(_0x4ae7f0,_0x5a5a0c)=>{const _0x1330bd=_0x5a40ee;try{if(!_0x5a5a0c||!_0x5a5a0c[_0x1330bd(0x298)])return;let _0x3c32a7=_0x561f78;if(!_0x3c32a7&&_0x5a5a0c['cursor']&&_0x5a5a0c['cursor'][_0x1330bd(0x296)]){const _0xbc9b74=_0x52765c[_0x1330bd(0x24f)](_0x5a5a0c[_0x1330bd(0x1b8)][_0x1330bd(0x296)]+'_'+_0x17394e);_0xbc9b74&&_0x10a5c8['jnHZu'](_0xbc9b74[_0x1330bd(0x204)]['length'],0x0)&&(_0x3c32a7=_0xbc9b74[_0x1330bd(0x204)][_0x10a5c8[_0x1330bd(0x220)](_0xbc9b74[_0x1330bd(0x204)][_0x1330bd(0x221)],0x1)]['uuid']);}if(!_0x3c32a7)return;const _0x5a8261=_0x5a5a0c[_0x1330bd(0x258)]&&_0x5a5a0c[_0x1330bd(0x258)][_0x1330bd(0x22d)]||_0x10a5c8[_0x1330bd(0x238)];_0x4ae7f0&&_0x10a5c8['LNQJm'](emitLog,_0x3c32a7,{'kind':_0x10a5c8['WctRN'],'message':_0x10a5c8[_0x1330bd(0x284)](_0x10a5c8[_0x1330bd(0x223)](_0x10a5c8[_0x1330bd(0x223)](_0x10a5c8[_0x1330bd(0x1eb)],_0x5a8261),_0x10a5c8[_0x1330bd(0x268)]),_0x4ae7f0[_0x1330bd(0x21f)]||_0x4ae7f0),'level':_0x10a5c8[_0x1330bd(0x1e5)]});}catch(_0x239192){_0x10a5c8[_0x1330bd(0x1d6)](debug,_0x10a5c8[_0x1330bd(0x25f)](_0x10a5c8[_0x1330bd(0x1e9)],_0x239192));}}),_0x597cea['on'](_0x10a5c8[_0x5a40ee(0x267)],(_0x2677c7,_0x24f9b2)=>{const _0x534f9a=_0x5a40ee,_0x45306f={'FqBii':function(_0x7f2e8e,_0x27ebb7,_0x51a0a2){return _0x10a5c8['LJQGp'](_0x7f2e8e,_0x27ebb7,_0x51a0a2);},'VDXMg':_0x10a5c8[_0x534f9a(0x274)]};try{if(!_0x24f9b2||!_0x24f9b2['item'])return;const _0x5dd5c5=_0x24f9b2[_0x534f9a(0x1ac)]['id']+'_'+_0x17394e,_0x3f4ad1=_0x52765c[_0x534f9a(0x24f)](_0x5dd5c5);if(!_0x3f4ad1)return;const _0x5114dc=new Date(),_0x5b8baa=_0x10a5c8[_0x534f9a(0x220)](_0x5114dc[_0x534f9a(0x1e8)](),_0x3f4ad1[_0x534f9a(0x210)]);if(_0x10a5c8[_0x534f9a(0x1d4)](_0x3f4ad1[_0x534f9a(0x204)][_0x534f9a(0x221)],0x0))_0x3f4ad1[_0x534f9a(0x204)]['forEach'](_0xe2d638=>{const _0x244fec=_0x534f9a,_0x19529d=!!_0xe2d638[_0x244fec(0x291)],_0x299112={'finishedAt':_0x5114dc[_0x244fec(0x1e2)](),'durationMs':_0x5b8baa,'result':_0x19529d?_0x10a5c8['YUtXR']:_0x10a5c8[_0x244fec(0x20d)]};_0x19529d&&(_0x299112[_0x244fec(0x22a)]=_0xe2d638[_0x244fec(0x291)][_0x244fec(0x21f)]||'',_0x299112['failureType']=_0x10a5c8['BAszp'](_0xe2d638[_0x244fec(0x291)][_0x244fec(0x235)],_0x10a5c8['dTUnr'])||_0xe2d638[_0x244fec(0x291)][_0x244fec(0x21f)]&&_0xe2d638['err'][_0x244fec(0x21f)][_0x244fec(0x1ff)](_0x10a5c8[_0x244fec(0x1a2)])?_0x10a5c8['dTUnr']:_0x10a5c8[_0x244fec(0x1e3)],_0x299112[_0x244fec(0x1b1)]=[{'backtrace':_0xe2d638[_0x244fec(0x291)][_0x244fec(0x222)]?_0xe2d638[_0x244fec(0x291)][_0x244fec(0x222)][_0x244fec(0x29a)]('\x0a'):[_0xe2d638[_0x244fec(0x291)][_0x244fec(0x21f)]||''],'expanded':[]}]),_0x10a5c8[_0x244fec(0x297)](emitTest,HookState[_0x244fec(0x1f9)],_0xe2d638,_0x3f4ad1,_0x36231f,_0x299112);});else{const _0x61a47d=_0x10a5c8[_0x534f9a(0x23d)](uuidv4),_0x40fd0b=_0x3f4ad1[_0x534f9a(0x1db)],_0x1f42a4=_0x10a5c8['HkpQL'](_0x40fd0b,null)&&_0x10a5c8[_0x534f9a(0x256)](_0x40fd0b,0xc8)&&_0x10a5c8[_0x534f9a(0x293)](_0x40fd0b,0x190),_0x42f8a7=_0x3f4ad1['itemName']+_0x534f9a(0x202)+_0x10a5c8[_0x534f9a(0x212)](_0x40fd0b,_0x10a5c8[_0x534f9a(0x260)])+')',_0x161832={'uuid':_0x61a47d,'name':_0x42f8a7,'identifier':_0x3f4ad1[_0x534f9a(0x1d2)][_0x534f9a(0x1b3)]([_0x42f8a7])[_0x534f9a(0x1fc)]('\x20')},_0x493db9={'finishedAt':_0x5114dc[_0x534f9a(0x1e2)](),'durationMs':_0x5b8baa,'result':_0x1f42a4?_0x10a5c8[_0x534f9a(0x20d)]:_0x10a5c8[_0x534f9a(0x1a1)]};!_0x1f42a4&&(_0x493db9[_0x534f9a(0x22a)]=_0x10a5c8[_0x534f9a(0x21a)](_0x40fd0b,null)?_0x534f9a(0x269)+_0x40fd0b+_0x534f9a(0x1ca):_0x10a5c8[_0x534f9a(0x27a)],_0x493db9['failureType']=_0x10a5c8[_0x534f9a(0x1e3)],_0x493db9[_0x534f9a(0x1b1)]=[{'backtrace':[_0x493db9['failureReason']],'expanded':[]}]);_0x10a5c8[_0x534f9a(0x236)](emitTest,HookState[_0x534f9a(0x23e)],_0x161832,_0x3f4ad1,_0x36231f,{}),_0x3f4ad1[_0x534f9a(0x237)]['forEach'](_0x2036bb=>{const _0x4e24b5=_0x534f9a;_0x45306f['FqBii'](emitLog,_0x61a47d,{'kind':_0x45306f[_0x4e24b5(0x1ce)],'message':_0x2036bb['message'],'level':_0x2036bb['level']});});if(_0x3f4ad1[_0x534f9a(0x25d)]){_0x10a5c8[_0x534f9a(0x286)](emitLog,_0x61a47d,{'kind':_0x10a5c8[_0x534f9a(0x277)],'http_response':_0x3f4ad1['httpLog']});const _0x2da155=_0x10a5c8[_0x534f9a(0x1cd)](_0x10a5c8['lVGHG'](_0x10a5c8[_0x534f9a(0x259)](_0x10a5c8[_0x534f9a(0x26d)](_0x10a5c8['nDTiy'](_0x10a5c8['jisLP'](_0x10a5c8[_0x534f9a(0x1b0)](_0x10a5c8[_0x534f9a(0x20e)](_0x3f4ad1[_0x534f9a(0x25d)][_0x534f9a(0x27d)]||_0x10a5c8[_0x534f9a(0x248)],'\x20'),_0x3f4ad1[_0x534f9a(0x25d)][_0x534f9a(0x1d8)]),_0x3f4ad1['httpLog'][_0x534f9a(0x1e6)]),_0x10a5c8[_0x534f9a(0x244)]),_0x3f4ad1['httpLog']['status_code']),'\x20('),_0x3f4ad1['httpLog'][_0x534f9a(0x1a8)]),_0x10a5c8[_0x534f9a(0x1be)]);_0x10a5c8['Kelbo'](emitLog,_0x61a47d,{'kind':_0x10a5c8[_0x534f9a(0x274)],'message':_0x2da155,'level':_0x10a5c8[_0x534f9a(0x24d)]});}else _0x10a5c8[_0x534f9a(0x27c)](emitLog,_0x61a47d,{'kind':_0x10a5c8[_0x534f9a(0x274)],'message':_0x10a5c8[_0x534f9a(0x213)](_0x10a5c8[_0x534f9a(0x242)](_0x10a5c8[_0x534f9a(0x1e0)],_0x10a5c8[_0x534f9a(0x249)](_0x40fd0b,_0x10a5c8[_0x534f9a(0x260)])),_0x10a5c8[_0x534f9a(0x215)]),'level':_0x10a5c8[_0x534f9a(0x24d)]});_0x10a5c8['haSGE'](emitTest,HookState[_0x534f9a(0x1f9)],_0x161832,_0x3f4ad1,_0x36231f,_0x493db9);}_0x52765c['delete'](_0x5dd5c5),_0x24f9b2[_0x534f9a(0x1b8)]&&_0x24f9b2['cursor'][_0x534f9a(0x296)]&&_0x52765c[_0x534f9a(0x251)](_0x24f9b2['cursor'][_0x534f9a(0x296)]+'_'+_0x17394e);}catch(_0x2ad41f){_0x10a5c8[_0x534f9a(0x225)](debug,_0x534f9a(0x227)+_0x2ad41f);}});}module[a43_0x3d1610(0x226)]=BrowserStackNewmanReporter;
1
+ 'use strict';function a43_0x388c(){const _0x415c3b=['testFrameworkState','failure_reason_expanded','XxvOt','SjYAY','POST','startTimestamp','exports','removeListener','set','EOdpO','6serdeh','info','vQrPV','oheRT','TqipV','pending','nrWeH','method','collectionName','apply','collectionPath','Script\x20error\x20(','mfmpY','identifier','vOPdi','join','pid','messages','err','platformIndex','kiqRm','httpLog','qUrRv','MfwWS','TEST','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','LBZzw','testFrameworkVersion','OrfIW','311744EXmyDO','wpzYG','event','Eslnv','1951840VrnzyF','logs','aSjBT','TestRunStarted','Noogg','MhHOl','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','xJxeS','PCbjg','mxZcc','MpKQn','DvsfF','YZYmx','console','boGdG','lnIgE','ZMMRQ','MrbgH','url','message','testFrameworkName','EuwKN','XEmdg','stack','../../v2/state/testFrameworkState','assertions','GET','ArsWm','hcarK','\x20(no\x20assertions)','split','koMOQ','includes','../../../helpers/test-observability/sessionHandler','argv','5491717EvCYDO','mZXbm','indexOf','LogCreated','expanded','TFqfp','../../../helpers/test-observability/utils','responseTime','exception','logCreatedEvent','FfMKz','beforeItem','Exception:\x20','5hjCjxa','fhDsf','kind','bAaNv','../../v2/grpcClient','itemName','MUpBp','hJLvS','hPltu','toISOString','location','parent','GFqKg','error','toUpperCase','PRE','tPkBc','item','lastResponseCode','IcAVt','TEST_LOG','code','getInstance','LyjMh','cursor','uploadEventData','27YnZblP','CwUxb','get','iHLBE','toString','hYdZk','event_type','WqajL','vBCsM','finishedAt','pbsWh','AKdjz','JwwRT','VaSBz','string','cPPQf','name','myqDm','newman','javascript','XteKg','http','wiTZi','host','object','ERROR','ref','[Newman\x20Reporter]\x20Error\x20in\x20request:\x20','zLqJg','path','nADhe','failed','scopes','jrYzG','bJpVf','cwd','gADYw','../../v2/browserstackCLI','13819520gfhdCt','WaMKu','4746762sSEMPh','startedAt','MOJXg','oqWnm','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','QVEuw','QZVBe','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','QVbfi','tIIwk','level','opvwz','PRefh','startsWith','stringify','push','resolve','ycfrE','vyhYe','search','result','vqcAQ','XQMua','GYYhv','status_code','N/A','nBlVr','response','cenJd','InIAf','iteration','[Newman\x20Reporter]\x20emitTest\x20error:\x20','81778SPTnbU','http_response','timestamp','LRAGa','isRunning','duration_ms','JZupf','now','beforeIteration','HTTP','mEGOo','uuid','GAvdv','zkeqC','[Newman\x20Reporter]\x20emitLog\x20error:\x20','length','collection.json','failureType','Zcjsz','assertion','TestRunFinished','collection','forEach','meaKE','tPggT','DnUsA','run','request','KXivI','ZNflJ','No\x20HTTP\x20response\x20received','WARN','sHegS','DEBUG','2604688dtyJbQ','pathname','Oyqnw','bufferedLogs','Evgkb','gBAGQ','TRACE','concat','xSicH','relative','failureReason','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','done','kvoaA','assert','durationMs','test_run','unknown','failure','lBIUF','passed','NTrem','27BIuZIn','dgZce','UnhandledError','INFO','IFvLX'];a43_0x388c=function(){return _0x415c3b;};return a43_0x388c();}const a43_0x5cda12=a43_0x17fa;(function(_0x21ec0b,_0x1f49f4){const _0x5d3f66=a43_0x17fa,_0xcf0c47=_0x21ec0b();while(!![]){try{const _0x516c69=-parseInt(_0x5d3f66(0x1bc))/0x1*(parseInt(_0x5d3f66(0x184))/0x2)+-parseInt(_0x5d3f66(0x1cb))/0x3*(-parseInt(_0x5d3f66(0x1a6))/0x4)+parseInt(_0x5d3f66(0x21c))/0x5*(-parseInt(_0x5d3f66(0x164))/0x6)+parseInt(_0x5d3f66(0x20f))/0x7+-parseInt(_0x5d3f66(0x1e8))/0x8+parseInt(_0x5d3f66(0x236))/0x9*(-parseInt(_0x5d3f66(0x1ec))/0xa)+parseInt(_0x5d3f66(0x162))/0xb;if(_0x516c69===_0x1f49f4)break;else _0xcf0c47['push'](_0xcf0c47['shift']());}catch(_0x46552c){_0xcf0c47['push'](_0xcf0c47['shift']());}}}(a43_0x388c,0xc90f9));const path=require('path'),{v4:uuidv4}=require(a43_0x5cda12(0x18f)),SessionHandler=require(a43_0x5cda12(0x20d)),{debug}=require(a43_0x5cda12(0x215)),logger=require('../../../helpers/logger')['winstonLogger'],BrowserstackCLI=require(a43_0x5cda12(0x161)),GrpcClient=require(a43_0x5cda12(0x220)),TestFrameworkState=require(a43_0x5cda12(0x204)),HookState=require('../../v2/state/hookState'),LOG_LEVELS=['INFO',a43_0x5cda12(0x1a3),a43_0x5cda12(0x155),a43_0x5cda12(0x1a5),a43_0x5cda12(0x1ac)];function a43_0x17fa(_0x5be524,_0x7dd235){const _0x388c47=a43_0x388c();return a43_0x17fa=function(_0x17fabc,_0x152dca){_0x17fabc=_0x17fabc-0x140;let _0x5b37c8=_0x388c47[_0x17fabc];return _0x5b37c8;},a43_0x17fa(_0x5be524,_0x7dd235);}function isCLIRunning(){const _0x471dda=a43_0x5cda12;try{return BrowserstackCLI[_0x471dda(0x232)]()[_0x471dda(0x188)]();}catch(_0x5ef7af){return![];}}function getParentTitles(_0x35cf40){const _0x4cf7c5=a43_0x5cda12,_0x1e5531={'eujRs':function(_0xf0ff82,_0x5c5dca){return _0xf0ff82(_0x5c5dca);}},_0x4639e9=[],_0x53e720=_0x35cf40[_0x4cf7c5(0x227)]();return _0x53e720&&_0x4639e9[_0x4cf7c5(0x173)][_0x4cf7c5(0x1d4)](_0x4639e9,_0x1e5531['eujRs'](getParentTitles,_0x53e720)),_0x35cf40[_0x4cf7c5(0x14c)]&&_0x4639e9[_0x4cf7c5(0x173)](_0x1e5531['eujRs'](String,_0x35cf40['name'])),_0x4639e9;}function normalizeLogLevel(_0x88a4a5){const _0x371538=a43_0x5cda12,_0x5d4627={};_0x5d4627[_0x371538(0x1e2)]=_0x371538(0x1bf),_0x5d4627[_0x371538(0x1fc)]=function(_0x4addda,_0x1e280c){return _0x4addda!==_0x1e280c;};const _0xff2209=_0x5d4627;if(!_0x88a4a5)return _0xff2209[_0x371538(0x1e2)];const _0x857b76=_0x88a4a5[_0x371538(0x22a)]();return _0xff2209['ZMMRQ'](LOG_LEVELS['indexOf'](_0x857b76),-0x1)?_0x857b76:_0xff2209['MfwWS'];}function resolveCollectionFile(_0x11e786,_0x4dc5c1){const _0x515bd1=a43_0x5cda12,_0x1085cd={};_0x1085cd['XEmdg']=function(_0x14dc0e,_0x3561f9){return _0x14dc0e===_0x3561f9;},_0x1085cd['WaMKu']=_0x515bd1(0x14a),_0x1085cd[_0x515bd1(0x19c)]=_0x515bd1(0x19e),_0x1085cd[_0x515bd1(0x1ab)]=function(_0x3bfc2e,_0xaf5a3b){return _0x3bfc2e!==_0xaf5a3b;},_0x1085cd[_0x515bd1(0x141)]=function(_0x1ee40c,_0xae694b){return _0x1ee40c<_0xae694b;},_0x1085cd[_0x515bd1(0x187)]=function(_0x36740d,_0x3ee9eb){return _0x36740d+_0x3ee9eb;},_0x1085cd['vqcAQ']=function(_0x51cb4a,_0x2cad80){return _0x51cb4a+_0x2cad80;},_0x1085cd[_0x515bd1(0x1a4)]=_0x515bd1(0x1b1),_0x1085cd['ArsWm']=_0x515bd1(0x194);const _0x514a77=_0x1085cd;try{if(_0x4dc5c1&&_0x4dc5c1['collectionPath'])return path[_0x515bd1(0x1af)](process[_0x515bd1(0x15f)](),path['resolve'](_0x4dc5c1[_0x515bd1(0x1d5)]));const _0x283d58=_0x11e786[_0x515bd1(0x199)];if(_0x514a77[_0x515bd1(0x202)](typeof _0x283d58,_0x514a77[_0x515bd1(0x163)]))return path[_0x515bd1(0x1af)](process[_0x515bd1(0x15f)](),path[_0x515bd1(0x174)](_0x283d58));const _0x5542bb=process[_0x515bd1(0x20e)][_0x515bd1(0x211)](_0x514a77[_0x515bd1(0x19c)]);if(_0x514a77['gBAGQ'](_0x5542bb,-0x1)&&_0x514a77[_0x515bd1(0x141)](_0x514a77[_0x515bd1(0x187)](_0x5542bb,0x1),process['argv'][_0x515bd1(0x193)])){const _0x2d0933=process['argv'][_0x514a77[_0x515bd1(0x179)](_0x5542bb,0x1)];if(_0x2d0933&&!_0x2d0933[_0x515bd1(0x171)]('-'))return path[_0x515bd1(0x1af)](process[_0x515bd1(0x15f)](),path['resolve'](_0x2d0933));}}catch(_0x5bbc11){}return logger['info'](_0x514a77['sHegS']),_0x514a77[_0x515bd1(0x207)];}function resolveCollectionName(_0x5e9aa4){const _0x4fe565=a43_0x5cda12,_0x2c7b4b={};_0x2c7b4b['vOPdi']=function(_0x56615c,_0x4620b3){return _0x56615c===_0x4620b3;},_0x2c7b4b[_0x4fe565(0x15a)]=_0x4fe565(0x154);const _0x4d9a3e=_0x2c7b4b;try{const _0x5d6652=_0x5e9aa4[_0x4fe565(0x199)];if(_0x5d6652&&_0x4d9a3e[_0x4fe565(0x1d9)](typeof _0x5d6652,_0x4d9a3e[_0x4fe565(0x15a)]))return _0x5d6652[_0x4fe565(0x14c)]||_0x5d6652[_0x4fe565(0x1cc)]&&_0x5d6652[_0x4fe565(0x1cc)]['name']||null;}catch(_0x14409c){}return null;}function emitTest(_0x3daf8a,_0x3120fa,_0x3df5b7,_0x2448a1,_0x276f7c){const _0x411421=a43_0x5cda12,_0x5470b3={'TkQVn':function(_0x1e0610){return _0x1e0610();},'QVEuw':_0x411421(0x1d0),'ksmkH':function(_0xd5c023,_0x1428a4){return _0xd5c023(_0x1428a4);},'sZFrL':'newman','Noogg':_0x411421(0x14f),'qPabO':function(_0x513195,_0x1e66f8){return _0x513195!=_0x1e66f8;},'qUrRv':function(_0x5dae63,_0x4533d5){return _0x5dae63===_0x4533d5;},'xSicH':_0x411421(0x1ef),'XteKg':_0x411421(0x198)};if(_0x5470b3['TkQVn'](isCLIRunning))try{const _0x189c21=BrowserstackCLI[_0x411421(0x232)]()['getTestFramework']();if(!_0x189c21)return;_0x189c21['trackEvent'](TestFrameworkState['TEST'],_0x3daf8a,{'test':{'uuid':_0x3120fa[_0x411421(0x18f)],'name':_0x3120fa[_0x411421(0x14c)],'scopes':_0x3df5b7['scopes'],'scope':_0x3df5b7[_0x411421(0x15c)][_0x411421(0x1da)]('\x20'),'file_path':_0x2448a1,'location':_0x3df5b7[_0x411421(0x1d3)],'started_at':_0x3df5b7[_0x411421(0x165)],'finished_at':_0x276f7c[_0x411421(0x145)]||null,'result':_0x276f7c[_0x411421(0x178)]||_0x5470b3[_0x411421(0x169)],'failure':_0x276f7c[_0x411421(0x1b8)]||[],'failure_type':_0x276f7c['failureType']||null,'failure_reason':_0x276f7c[_0x411421(0x1b0)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x3672c2){_0x5470b3['ksmkH'](debug,_0x411421(0x183)+_0x3672c2);}else{const _0x1dc241={'uuid':_0x3120fa[_0x411421(0x18f)],'name':_0x3120fa[_0x411421(0x14c)],'framework':_0x5470b3['sZFrL'],'body':{'lang':_0x5470b3[_0x411421(0x1f0)],'code':null},'scope':_0x3df5b7[_0x411421(0x15c)][_0x411421(0x1da)]('\x20'),'scopes':_0x3df5b7[_0x411421(0x15c)],'identifier':_0x3120fa[_0x411421(0x1d8)],'file_name':_0x3df5b7['collectionName'],'vc_filepath':_0x3df5b7['location'],'location':_0x3df5b7[_0x411421(0x226)],'started_at':_0x3df5b7['startedAt'],'finished_at':_0x276f7c[_0x411421(0x145)]||null,'duration_in_ms':_0x5470b3['qPabO'](_0x276f7c['durationMs'],null)?Math['max'](0x0,_0x276f7c[_0x411421(0x1b5)]):null,'result':_0x276f7c['result']||_0x5470b3[_0x411421(0x169)],'failure_reason':_0x276f7c['failureReason']||null,'failure_type':_0x276f7c[_0x411421(0x195)]||null,'failure':_0x276f7c['failure']||[],'retry_of':null,'hooks':[]};_0x1dc241[_0x411421(0x1b8)][0x0]&&(_0x1dc241['failure_backtrace']=_0x1dc241[_0x411421(0x1b8)][0x0]['backtrace'],_0x1dc241[_0x411421(0x1c2)]=_0x1dc241[_0x411421(0x1b8)][0x0][_0x411421(0x213)]);const _0x223928=_0x5470b3[_0x411421(0x1e1)](_0x3daf8a,HookState['PRE'])?_0x5470b3[_0x411421(0x1ae)]:_0x5470b3[_0x411421(0x150)],_0x51a5cf={};_0x51a5cf[_0x411421(0x142)]=_0x223928,_0x51a5cf[_0x411421(0x1b6)]=_0x1dc241,SessionHandler[_0x411421(0x235)](_0x51a5cf);}}function emitLog(_0x3a801a,_0x569ec1){const _0x39dc6e=a43_0x5cda12,_0x12bba0={'pbsWh':_0x39dc6e(0x230),'hcarK':function(_0x727cc){return _0x727cc();},'Eslnv':function(_0x4adee4,_0x5a035a){return _0x4adee4===_0x5a035a;},'lBIUF':_0x39dc6e(0x18d),'iHLBE':_0x39dc6e(0x14e),'myqDm':_0x39dc6e(0x1e3),'JwwRT':_0x39dc6e(0x1bf),'MafwC':function(_0x138ff7,_0x2f5b24){return _0x138ff7(_0x2f5b24);},'aSjBT':function(_0x575671,_0x26768c){return _0x575671+_0x26768c;},'nrWeH':_0x39dc6e(0x192),'DvDxe':_0x39dc6e(0x212)},_0x334831=_0x569ec1[_0x39dc6e(0x21e)]||_0x12bba0[_0x39dc6e(0x146)],_0x41d688=_0x569ec1[_0x39dc6e(0x186)]||new Date()['toISOString']();if(_0x12bba0[_0x39dc6e(0x208)](isCLIRunning))try{const _0x21e915=_0x12bba0[_0x39dc6e(0x1eb)](_0x334831,_0x12bba0[_0x39dc6e(0x1b9)])?JSON[_0x39dc6e(0x172)](_0x569ec1):_0x569ec1['message']||'',_0x472b37={};_0x472b37[_0x39dc6e(0x1de)]=0x0,_0x472b37[_0x39dc6e(0x200)]=_0x12bba0[_0x39dc6e(0x239)],_0x472b37[_0x39dc6e(0x1e6)]='',_0x472b37[_0x39dc6e(0x1c1)]=_0x12bba0[_0x39dc6e(0x14d)],_0x472b37['logs']=[{'uuid':_0x3a801a,'timestamp':_0x41d688,'kind':_0x334831,'level':_0x569ec1[_0x39dc6e(0x16e)]||_0x12bba0[_0x39dc6e(0x148)],'message':_0x21e915}],GrpcClient['getInstance']()[_0x39dc6e(0x218)](_0x472b37);}catch(_0x1acf2d){_0x12bba0['MafwC'](debug,_0x12bba0[_0x39dc6e(0x1ee)](_0x12bba0[_0x39dc6e(0x1d1)],_0x1acf2d));}else{const _0x25c46e={};_0x25c46e['test_run_uuid']=_0x3a801a,_0x25c46e['timestamp']=_0x41d688,_0x25c46e[_0x39dc6e(0x16e)]=_0x569ec1['level']||null,_0x25c46e['message']=_0x569ec1[_0x39dc6e(0x1ff)]||null,_0x25c46e[_0x39dc6e(0x21e)]=_0x334831,_0x25c46e[_0x39dc6e(0x185)]=_0x569ec1[_0x39dc6e(0x185)]||{};const _0x3f90d7={};_0x3f90d7[_0x39dc6e(0x142)]=_0x12bba0['DvDxe'],_0x3f90d7[_0x39dc6e(0x1ed)]=[_0x25c46e],SessionHandler[_0x39dc6e(0x235)](_0x3f90d7);}}function BrowserStackNewmanReporter(_0x56935e,_0x2f3ee9,_0x159369){const _0x520eff=a43_0x5cda12,_0x282353={'bJpVf':function(_0x4eab9c,_0x229439,_0x5c6c92){return _0x4eab9c(_0x229439,_0x5c6c92);},'hPltu':function(_0x269678,_0x3e729e){return _0x269678(_0x3e729e);},'lnIgE':function(_0xc14fb2,_0x3cb89a){return _0xc14fb2(_0x3cb89a);},'fhDsf':function(_0x1a4f66,_0x570768){return _0x1a4f66>_0x570768;},'mxZcc':_0x520eff(0x151),'QVbfi':function(_0xfec3cd,_0x2860c5){return _0xfec3cd+_0x2860c5;},'gADYw':_0x520eff(0x206),'tIIwk':function(_0x3975d8,_0x2d248a,_0x4a4452){return _0x3975d8(_0x2d248a,_0x4a4452);},'zLqJg':_0x520eff(0x230),'Zcjsz':function(_0x100289,_0x468c4d){return _0x100289+_0x468c4d;},'MOJXg':function(_0x3ad00c){return _0x3ad00c();},'zkeqC':function(_0x1e063c,_0x1e63f2){return _0x1e063c||_0x1e63f2;},'ycfrE':function(_0x595b56,_0x75ee4e,_0x258393,_0x12cc74,_0x555084,_0x2c5790){return _0x595b56(_0x75ee4e,_0x258393,_0x12cc74,_0x555084,_0x2c5790);},'oheRT':function(_0x392979,_0x130932){return _0x392979===_0x130932;},'LyjMh':function(_0x33369b,_0x5c7788,_0x5cb625){return _0x33369b(_0x5c7788,_0x5cb625);},'VaSBz':'HTTP','MUpBp':function(_0x2d7d59,_0x3287fa){return _0x2d7d59+_0x3287fa;},'MhHOl':function(_0x1b370d,_0x287430){return _0x1b370d+_0x287430;},'OrfIW':function(_0x2a89d9,_0x3f69f3){return _0x2a89d9+_0x3f69f3;},'Oyqnw':function(_0x2cf395,_0x33df8){return _0x2cf395+_0x33df8;},'IcAVt':function(_0x4bafd4,_0x143588){return _0x4bafd4+_0x143588;},'xJxeS':'\x20->\x20','meaKE':'ms)','GAvdv':_0x520eff(0x1bf),'AweQA':function(_0x2e9d47,_0x28151f){return _0x2e9d47-_0x28151f;},'JZupf':function(_0x100681,_0x2c346b,_0x1dcf1e){return _0x100681(_0x2c346b,_0x1dcf1e);},'dgZce':function(_0x54f969,_0x46bc19){return _0x54f969&&_0x46bc19;},'IFvLX':function(_0x4b1c7f,_0x1174e3){return _0x4b1c7f>_0x1174e3;},'RhnIj':function(_0x4d9e0c,_0x4e0b5c){return _0x4d9e0c-_0x4e0b5c;},'DvsfF':function(_0x5bb0f4,_0x3957db){return _0x5bb0f4+_0x3957db;},'LAPaz':_0x520eff(0x21b),'TqipV':'ERROR','FfMKz':function(_0x361e45,_0x4efcd3){return _0x361e45(_0x4efcd3);},'NTrem':_0x520eff(0x1f2),'uNDAt':function(_0x22394b,_0x4a1984){return _0x22394b-_0x4a1984;},'llSNR':_0x520eff(0x1b7),'PCbjg':function(_0x11f788,_0x3a5147){return _0x11f788+_0x3a5147;},'TFqfp':_0x520eff(0x1d6),'mZXbm':'):\x20','SjYAY':_0x520eff(0x1e4),'nBlVr':_0x520eff(0x15b),'opvwz':_0x520eff(0x1ba),'MpKQn':function(_0x19efda,_0x3917fa){return _0x19efda===_0x3917fa;},'kvoaA':'AssertionError','XxvOt':_0x520eff(0x1b4),'DnUsA':_0x520eff(0x1be),'AKdjz':function(_0x88a799,_0x50bb5c,_0x1f70cd,_0x24fcf2,_0x217014,_0x446d60){return _0x88a799(_0x50bb5c,_0x1f70cd,_0x24fcf2,_0x217014,_0x446d60);},'InIAf':function(_0x58070d,_0x3aeed7,_0x2f6b4e){return _0x58070d(_0x3aeed7,_0x2f6b4e);},'AcJZv':function(_0x404b4f,_0x4b9917){return _0x404b4f-_0x4b9917;},'YZYmx':function(_0x1e908f,_0x257020){return _0x1e908f>_0x257020;},'CwUxb':function(_0x1b460d,_0x525aad){return _0x1b460d!=_0x525aad;},'LBZzw':function(_0x291731,_0x415075){return _0x291731>=_0x415075;},'oqWnm':function(_0x57703e,_0x488eed){return _0x57703e<_0x488eed;},'mEGOo':function(_0x4cf591,_0x29dbb9){return _0x4cf591||_0x29dbb9;},'mfmpY':_0x520eff(0x17d),'jrYzG':_0x520eff(0x1a2),'ZNflJ':function(_0x1e2953,_0x4f7880,_0x59079d){return _0x1e2953(_0x4f7880,_0x59079d);},'oiYAk':function(_0x2928f7,_0x12102f){return _0x2928f7+_0x12102f;},'tPkBc':function(_0x75a000,_0x41a352){return _0x75a000+_0x41a352;},'RUrFE':function(_0x2a25c1,_0x3e2bc0){return _0x2a25c1+_0x3e2bc0;},'boGdG':function(_0xd8bae1,_0x2ebdd0){return _0xd8bae1+_0x2ebdd0;},'NKzUT':function(_0x5440c2,_0x1f20ca){return _0x5440c2+_0x1f20ca;},'EuwKN':function(_0x5f52cf,_0x53de76){return _0x5f52cf+_0x53de76;},'WqajL':function(_0x295517,_0x150137){return _0x295517+_0x150137;},'vyhYe':function(_0x4c4b80,_0x5cff14){return _0x4c4b80+_0x5cff14;},'GFqKg':'HTTP\x20Status:\x20','vBCsM':_0x520eff(0x209),'EOdpO':function(_0x50413c,_0x1dcd94){return _0x50413c(_0x1dcd94);},'XQMua':function(_0x16301d,_0x24e3b3,_0x42a6){return _0x16301d(_0x24e3b3,_0x42a6);},'FicZe':function(_0x33c5e0,_0x38418a){return _0x33c5e0(_0x38418a);},'ZprRo':_0x520eff(0x1b2),'Evgkb':_0x520eff(0x18c),'cPPQf':_0x520eff(0x21a),'GYYhv':_0x520eff(0x19f),'PRefh':_0x520eff(0x197),'MrbgH':_0x520eff(0x1f9),'kiqRm':_0x520eff(0x217),'hJLvS':'script','QZVBe':_0x520eff(0x22d)},_0x596512=new Map();let _0x5a1dc4=null,_0x230afb=0x0;const _0x394971=_0x282353[_0x520eff(0x17a)](resolveCollectionFile,_0x159369,_0x2f3ee9),_0x4ca035=_0x282353['FicZe'](resolveCollectionName,_0x159369)||_0x394971,_0x48b7a4=path['resolve'](_0x394971),_0x2dd63f='bs:addLog:'+process[_0x520eff(0x1db)],_0xc3b5ac=_0x3045a7=>{const _0x45df86=_0x520eff;try{_0x5a1dc4&&_0x282353[_0x45df86(0x15e)](emitLog,_0x5a1dc4,_0x3045a7);}catch(_0x52962d){_0x282353['hPltu'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20'+_0x52962d);}};process['on'](_0x2dd63f,_0xc3b5ac),_0x56935e['on'](_0x282353['ZprRo'],()=>{const _0x3c42af=_0x520eff;process[_0x3c42af(0x1c8)](_0x2dd63f,_0xc3b5ac),_0x596512['clear']();}),_0x56935e['on'](_0x282353[_0x520eff(0x1aa)],(_0x5a52aa,_0x1f7888)=>{const _0x5baf3f=_0x520eff;_0x1f7888&&_0x1f7888[_0x5baf3f(0x234)]&&(_0x230afb=_0x1f7888['cursor'][_0x5baf3f(0x182)]||0x0);}),_0x56935e['on'](_0x282353[_0x520eff(0x14b)],(_0x2a9b0d,_0x384867)=>{const _0x615bc2=_0x520eff;try{_0x5a1dc4=null;const _0x42598d=_0x384867[_0x615bc2(0x22d)],_0x291666=_0x42598d[_0x615bc2(0x227)]()?_0x282353[_0x615bc2(0x1fb)](getParentTitles,_0x42598d[_0x615bc2(0x227)]()):[],_0x5d54ff=_0x282353[_0x615bc2(0x21d)](_0x291666['length'],0x1)?_0x291666['slice'](0x1):_0x291666,_0x485be4=_0x384867[_0x615bc2(0x234)]&&_0x384867[_0x615bc2(0x234)][_0x615bc2(0x156)],_0x3faa13={'itemName':_0x42598d[_0x615bc2(0x14c)],'scopes':_0x5d54ff[_0x615bc2(0x1ad)]([_0x42598d[_0x615bc2(0x14c)]]),'location':_0x394971,'collectionName':_0x4ca035,'startedAt':new Date()[_0x615bc2(0x225)](),'startTimestamp':Date[_0x615bc2(0x18b)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x596512[_0x615bc2(0x1c9)](_0x42598d['id']+'_'+_0x230afb,_0x3faa13),_0x485be4&&_0x596512[_0x615bc2(0x1c9)](_0x485be4+'_'+_0x230afb,_0x3faa13);}catch(_0x297136){_0x282353[_0x615bc2(0x224)](debug,_0x615bc2(0x16b)+_0x297136);}}),_0x56935e['on'](_0x282353[_0x520eff(0x17b)],(_0x2ed62b,_0x544e72)=>{const _0x58f83a=_0x520eff;try{if(!_0x544e72||!_0x544e72[_0x58f83a(0x22d)])return;const _0x477088=_0x596512['get'](_0x544e72['item']['id']+'_'+_0x230afb);if(!_0x477088)return;_0x544e72[_0x58f83a(0x17f)]&&(_0x477088[_0x58f83a(0x22e)]=_0x544e72[_0x58f83a(0x17f)][_0x58f83a(0x231)]||null);if(!_0x544e72['request'])return;let _0x4daaff='',_0x48f7ff='';if(_0x544e72[_0x58f83a(0x19f)][_0x58f83a(0x1fe)])try{const _0x44a3e9=_0x544e72[_0x58f83a(0x19f)][_0x58f83a(0x1fe)][_0x58f83a(0x140)](),_0x13cb6d=new URL(_0x44a3e9['startsWith'](_0x282353[_0x58f83a(0x1f5)])?_0x44a3e9:'http://'+_0x44a3e9);_0x4daaff=_0x13cb6d['hostname'],_0x48f7ff=_0x282353['QVbfi'](_0x13cb6d[_0x58f83a(0x1a7)],_0x13cb6d[_0x58f83a(0x177)]);}catch(_0x5c78c8){_0x48f7ff=_0x544e72[_0x58f83a(0x19f)][_0x58f83a(0x1fe)][_0x58f83a(0x140)]();}const _0x57aff0={};_0x57aff0[_0x58f83a(0x153)]=_0x4daaff,_0x57aff0[_0x58f83a(0x159)]=_0x48f7ff,_0x57aff0[_0x58f83a(0x1d2)]=_0x544e72['request'][_0x58f83a(0x1d2)]||_0x282353[_0x58f83a(0x160)],_0x57aff0['headers']={},_0x57aff0[_0x58f83a(0x17c)]=_0x544e72[_0x58f83a(0x17f)]?_0x544e72['response'][_0x58f83a(0x231)]||0x0:0x0,_0x57aff0[_0x58f83a(0x189)]=_0x544e72[_0x58f83a(0x17f)]?_0x544e72[_0x58f83a(0x17f)][_0x58f83a(0x216)]||0x0:0x0,_0x477088['httpLog']=_0x57aff0;}catch(_0x53df1d){_0x282353[_0x58f83a(0x224)](debug,_0x58f83a(0x157)+_0x53df1d);}}),_0x56935e['on'](_0x282353[_0x520eff(0x170)],(_0x8b1a27,_0x7f5c1f)=>{const _0x26331d=_0x520eff,_0x24a712={'uMFAf':function(_0x2cfc65,_0x2f67e1,_0x52b0b0){const _0x512980=a43_0x17fa;return _0x282353[_0x512980(0x16d)](_0x2cfc65,_0x2f67e1,_0x52b0b0);},'EbdXP':_0x282353[_0x26331d(0x158)]};try{if(!_0x7f5c1f||!_0x7f5c1f[_0x26331d(0x22d)])return;const _0x125c1b=_0x596512[_0x26331d(0x238)](_0x7f5c1f['item']['id']+'_'+_0x230afb);if(!_0x125c1b)return;const _0x4f0c7c=_0x7f5c1f[_0x26331d(0x197)]||'Assertion\x20'+_0x282353[_0x26331d(0x196)](_0x125c1b['assertions']['length'],0x1),_0x5f43e3=_0x282353[_0x26331d(0x166)](uuidv4),_0xc0826c=_0x125c1b[_0x26331d(0x15c)][_0x26331d(0x1ad)]([_0x4f0c7c])['join']('\x20');_0x125c1b[_0x26331d(0x205)]['push']({'uuid':_0x5f43e3,'name':_0x4f0c7c,'identifier':_0xc0826c,'err':_0x282353['zkeqC'](_0x8b1a27,null)});const _0x4a4fed={};_0x4a4fed[_0x26331d(0x18f)]=_0x5f43e3,_0x4a4fed[_0x26331d(0x14c)]=_0x4f0c7c,_0x4a4fed[_0x26331d(0x1d8)]=_0xc0826c,_0x282353[_0x26331d(0x175)](emitTest,HookState[_0x26331d(0x22b)],_0x4a4fed,_0x125c1b,_0x48b7a4,{});_0x282353[_0x26331d(0x1ce)](_0x125c1b[_0x26331d(0x205)][_0x26331d(0x193)],0x1)&&_0x282353['fhDsf'](_0x125c1b['bufferedLogs'][_0x26331d(0x193)],0x0)&&(_0x125c1b[_0x26331d(0x1a9)][_0x26331d(0x19a)](_0x467790=>{_0x24a712['uMFAf'](emitLog,_0x5f43e3,{'kind':_0x24a712['EbdXP'],'message':_0x467790['message'],'level':_0x467790['level']});}),_0x125c1b[_0x26331d(0x1a9)]=[]);if(_0x125c1b[_0x26331d(0x1e0)]){_0x282353['LyjMh'](emitLog,_0x5f43e3,{'kind':_0x282353[_0x26331d(0x149)],'http_response':_0x125c1b[_0x26331d(0x1e0)]});const _0x18462e=_0x282353[_0x26331d(0x222)](_0x282353['QVbfi'](_0x282353[_0x26331d(0x1f1)](_0x282353[_0x26331d(0x1e7)](_0x282353['Oyqnw'](_0x282353[_0x26331d(0x16c)](_0x282353[_0x26331d(0x196)](_0x282353['IcAVt'](_0x125c1b[_0x26331d(0x1e0)]['method']||_0x282353[_0x26331d(0x160)],'\x20'),_0x125c1b['httpLog'][_0x26331d(0x153)]),_0x125c1b[_0x26331d(0x1e0)]['path']),_0x282353[_0x26331d(0x1f3)]),_0x125c1b[_0x26331d(0x1e0)]['status_code']),'\x20('),_0x125c1b[_0x26331d(0x1e0)][_0x26331d(0x189)]),_0x282353[_0x26331d(0x19b)]);_0x282353[_0x26331d(0x233)](emitLog,_0x5f43e3,{'kind':_0x282353[_0x26331d(0x158)],'message':_0x18462e,'level':_0x282353[_0x26331d(0x190)]});}_0x5a1dc4=_0x5f43e3;}catch(_0x3cf175){_0x282353[_0x26331d(0x1fb)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20'+_0x3cf175);}}),_0x56935e['on'](_0x282353[_0x520eff(0x1fd)],(_0x43c7cc,_0x69f645)=>{const _0x317679=_0x520eff;try{if(!_0x69f645)return;let _0x643d77=_0x5a1dc4;if(!_0x643d77&&_0x69f645[_0x317679(0x234)]&&_0x69f645[_0x317679(0x234)]['ref']){const _0x518b4f=_0x596512[_0x317679(0x238)](_0x69f645[_0x317679(0x234)]['ref']+'_'+_0x230afb);_0x518b4f&&_0x282353[_0x317679(0x21d)](_0x518b4f[_0x317679(0x205)]['length'],0x0)&&(_0x643d77=_0x518b4f[_0x317679(0x205)][_0x282353['AweQA'](_0x518b4f['assertions'][_0x317679(0x193)],0x1)][_0x317679(0x18f)]);}const _0xbe2e5e=_0x69f645[_0x317679(0x1dc)]?_0x69f645['messages']['join'](',\x20'):'';if(_0x643d77)_0x282353[_0x317679(0x18a)](emitLog,_0x643d77,{'kind':_0x282353[_0x317679(0x158)],'message':_0xbe2e5e,'level':_0x282353['lnIgE'](normalizeLogLevel,_0x69f645[_0x317679(0x16e)])});else{if(_0x69f645[_0x317679(0x234)]&&_0x69f645['cursor']['ref']){const _0x54e92f=_0x596512['get'](_0x69f645[_0x317679(0x234)]['ref']+'_'+_0x230afb);_0x54e92f&&_0x54e92f[_0x317679(0x1a9)][_0x317679(0x173)]({'timestamp':new Date()['toISOString'](),'level':_0x282353[_0x317679(0x224)](normalizeLogLevel,_0x69f645[_0x317679(0x16e)]),'message':_0xbe2e5e});}}}catch(_0x5a8260){_0x282353[_0x317679(0x224)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20console:\x20'+_0x5a8260);}}),_0x56935e['on'](_0x282353[_0x520eff(0x1df)],(_0x4c7201,_0x39dd29)=>{const _0x2b66ba=_0x520eff;try{if(!_0x4c7201&&(!_0x39dd29||!_0x39dd29[_0x2b66ba(0x229)]))return;const _0x38b907=_0x4c7201||_0x39dd29[_0x2b66ba(0x229)],_0x5e5c7b=_0x38b907['message']||_0x282353['hPltu'](String,_0x38b907),_0x63c0b4=_0x38b907[_0x2b66ba(0x203)]||_0x5e5c7b;let _0x182c96=_0x5a1dc4;if(_0x282353[_0x2b66ba(0x1bd)](!_0x182c96,_0x39dd29)&&_0x39dd29['cursor']&&_0x39dd29['cursor']['ref']){const _0x4179d5=_0x596512[_0x2b66ba(0x238)](_0x39dd29['cursor'][_0x2b66ba(0x156)]+'_'+_0x230afb);_0x4179d5&&_0x282353[_0x2b66ba(0x1c0)](_0x4179d5[_0x2b66ba(0x205)][_0x2b66ba(0x193)],0x0)&&(_0x182c96=_0x4179d5['assertions'][_0x282353['RhnIj'](_0x4179d5[_0x2b66ba(0x205)][_0x2b66ba(0x193)],0x1)][_0x2b66ba(0x18f)]);}_0x182c96&&_0x282353['tIIwk'](emitLog,_0x182c96,{'kind':_0x282353['zLqJg'],'message':_0x282353[_0x2b66ba(0x1f7)](_0x282353['LAPaz'],_0x63c0b4),'level':_0x282353[_0x2b66ba(0x1cf)]});}catch(_0x54b814){_0x282353[_0x2b66ba(0x219)](debug,_0x282353[_0x2b66ba(0x1a8)](_0x282353[_0x2b66ba(0x1bb)],_0x54b814));}}),_0x56935e['on'](_0x282353[_0x520eff(0x223)],(_0x426b1e,_0x37ff13)=>{const _0x667918=_0x520eff;try{if(!_0x37ff13||!_0x37ff13['execution'])return;let _0x1be621=_0x5a1dc4;if(!_0x1be621&&_0x37ff13[_0x667918(0x234)]&&_0x37ff13[_0x667918(0x234)][_0x667918(0x156)]){const _0x2c7cdf=_0x596512['get'](_0x37ff13[_0x667918(0x234)][_0x667918(0x156)]+'_'+_0x230afb);_0x2c7cdf&&_0x282353['fhDsf'](_0x2c7cdf[_0x667918(0x205)][_0x667918(0x193)],0x0)&&(_0x1be621=_0x2c7cdf[_0x667918(0x205)][_0x282353['uNDAt'](_0x2c7cdf[_0x667918(0x205)]['length'],0x1)][_0x667918(0x18f)]);}if(!_0x1be621)return;const _0x3d0cf8=_0x37ff13['event']&&_0x37ff13[_0x667918(0x1ea)]['listen']||_0x282353['llSNR'];_0x426b1e&&_0x282353['bJpVf'](emitLog,_0x1be621,{'kind':_0x282353['zLqJg'],'message':_0x282353[_0x667918(0x196)](_0x282353[_0x667918(0x1f4)](_0x282353[_0x667918(0x1f4)](_0x282353[_0x667918(0x214)],_0x3d0cf8),_0x282353[_0x667918(0x210)]),_0x426b1e[_0x667918(0x1ff)]||_0x426b1e),'level':_0x282353[_0x667918(0x1cf)]});}catch(_0x5d0fe5){_0x282353['FfMKz'](debug,_0x282353[_0x667918(0x22f)](_0x282353[_0x667918(0x1c4)],_0x5d0fe5));}}),_0x56935e['on'](_0x282353[_0x520eff(0x16a)],(_0x53d4bc,_0x1ecb3d)=>{const _0xbb057f=_0x520eff,_0x51aff3={'cenJd':_0x282353[_0xbb057f(0x17e)],'QJero':_0x282353[_0xbb057f(0x16f)],'wiTZi':function(_0x56fc67,_0x32c4d2){const _0x377c1a=_0xbb057f;return _0x282353[_0x377c1a(0x1f6)](_0x56fc67,_0x32c4d2);},'szWyR':_0x282353[_0xbb057f(0x1b3)],'koMOQ':_0x282353[_0xbb057f(0x1c3)],'bAaNv':_0x282353[_0xbb057f(0x19d)],'vQrPV':function(_0x1e1381,_0x347097,_0x547a6d,_0x18be2,_0x46c1c9,_0x363b24){const _0x4372fe=_0xbb057f;return _0x282353[_0x4372fe(0x147)](_0x1e1381,_0x347097,_0x547a6d,_0x18be2,_0x46c1c9,_0x363b24);},'KXivI':function(_0x108589,_0x562b0a,_0x22785f){const _0x2c7ce8=_0xbb057f;return _0x282353[_0x2c7ce8(0x181)](_0x108589,_0x562b0a,_0x22785f);},'wpzYG':_0x282353['zLqJg']};try{if(!_0x1ecb3d||!_0x1ecb3d[_0xbb057f(0x22d)])return;const _0x168443=_0x1ecb3d['item']['id']+'_'+_0x230afb,_0xf1f5d7=_0x596512[_0xbb057f(0x238)](_0x168443);if(!_0xf1f5d7)return;const _0x3fbf75=new Date(),_0x59c5f9=_0x282353['AcJZv'](_0x3fbf75['getTime'](),_0xf1f5d7[_0xbb057f(0x1c6)]);if(_0x282353[_0xbb057f(0x1f8)](_0xf1f5d7[_0xbb057f(0x205)][_0xbb057f(0x193)],0x0))_0xf1f5d7[_0xbb057f(0x205)][_0xbb057f(0x19a)](_0x5ceee2=>{const _0x3c3ae1=_0xbb057f,_0x1a0737=!!_0x5ceee2[_0x3c3ae1(0x1dd)],_0x219773={'finishedAt':_0x3fbf75[_0x3c3ae1(0x225)](),'durationMs':_0x59c5f9,'result':_0x1a0737?_0x51aff3[_0x3c3ae1(0x180)]:_0x51aff3['QJero']};_0x1a0737&&(_0x219773[_0x3c3ae1(0x1b0)]=_0x5ceee2[_0x3c3ae1(0x1dd)]['message']||'',_0x219773[_0x3c3ae1(0x195)]=_0x51aff3[_0x3c3ae1(0x152)](_0x5ceee2['err'][_0x3c3ae1(0x14c)],_0x51aff3['szWyR'])||_0x5ceee2['err']['message']&&_0x5ceee2[_0x3c3ae1(0x1dd)][_0x3c3ae1(0x1ff)][_0x3c3ae1(0x20c)](_0x51aff3[_0x3c3ae1(0x20b)])?_0x51aff3['szWyR']:_0x51aff3[_0x3c3ae1(0x21f)],_0x219773[_0x3c3ae1(0x1b8)]=[{'backtrace':_0x5ceee2['err'][_0x3c3ae1(0x203)]?_0x5ceee2[_0x3c3ae1(0x1dd)]['stack'][_0x3c3ae1(0x20a)]('\x0a'):[_0x5ceee2[_0x3c3ae1(0x1dd)][_0x3c3ae1(0x1ff)]||''],'expanded':[]}]),_0x51aff3[_0x3c3ae1(0x1cd)](emitTest,HookState[_0x3c3ae1(0x1c5)],_0x5ceee2,_0xf1f5d7,_0x48b7a4,_0x219773);});else{const _0x34277b=_0x282353[_0xbb057f(0x166)](uuidv4),_0x4881dd=_0xf1f5d7[_0xbb057f(0x22e)],_0x1ad3db=_0x282353[_0xbb057f(0x237)](_0x4881dd,null)&&_0x282353[_0xbb057f(0x1e5)](_0x4881dd,0xc8)&&_0x282353[_0xbb057f(0x167)](_0x4881dd,0x190),_0x48a1c9=_0xf1f5d7[_0xbb057f(0x221)]+'\x20(HTTP\x20'+_0x282353[_0xbb057f(0x18e)](_0x4881dd,_0x282353[_0xbb057f(0x1d7)])+')',_0x495a7d={'uuid':_0x34277b,'name':_0x48a1c9,'identifier':_0xf1f5d7['scopes'][_0xbb057f(0x1ad)]([_0x48a1c9])[_0xbb057f(0x1da)]('\x20')},_0x5f12b5={'finishedAt':_0x3fbf75[_0xbb057f(0x225)](),'durationMs':_0x59c5f9,'result':_0x1ad3db?_0x282353[_0xbb057f(0x16f)]:_0x282353[_0xbb057f(0x17e)]};!_0x1ad3db&&(_0x5f12b5[_0xbb057f(0x1b0)]=_0x282353[_0xbb057f(0x237)](_0x4881dd,null)?'HTTP\x20'+_0x4881dd+'\x20—\x20response\x20status\x20in\x20failure\x20range':_0x282353[_0xbb057f(0x15d)],_0x5f12b5[_0xbb057f(0x195)]=_0x282353[_0xbb057f(0x19d)],_0x5f12b5[_0xbb057f(0x1b8)]=[{'backtrace':[_0x5f12b5['failureReason']],'expanded':[]}]);_0x282353['AKdjz'](emitTest,HookState[_0xbb057f(0x22b)],_0x495a7d,_0xf1f5d7,_0x48b7a4,{}),_0xf1f5d7[_0xbb057f(0x1a9)]['forEach'](_0x216935=>{const _0x2d4c16=_0xbb057f;_0x51aff3[_0x2d4c16(0x1a0)](emitLog,_0x34277b,{'kind':_0x51aff3[_0x2d4c16(0x1e9)],'message':_0x216935['message'],'level':_0x216935['level']});});if(_0xf1f5d7[_0xbb057f(0x1e0)]){_0x282353[_0xbb057f(0x1a1)](emitLog,_0x34277b,{'kind':_0x282353['VaSBz'],'http_response':_0xf1f5d7[_0xbb057f(0x1e0)]});const _0x2043b8=_0x282353['oiYAk'](_0x282353['Zcjsz'](_0x282353[_0xbb057f(0x22c)](_0x282353[_0xbb057f(0x22c)](_0x282353['RUrFE'](_0x282353[_0xbb057f(0x1fa)](_0x282353['NKzUT'](_0x282353[_0xbb057f(0x201)](_0xf1f5d7['httpLog'][_0xbb057f(0x1d2)]||_0x282353['gADYw'],'\x20'),_0xf1f5d7['httpLog']['host']),_0xf1f5d7[_0xbb057f(0x1e0)][_0xbb057f(0x159)]),_0x282353[_0xbb057f(0x1f3)]),_0xf1f5d7['httpLog'][_0xbb057f(0x17c)]),'\x20('),_0xf1f5d7[_0xbb057f(0x1e0)]['duration_ms']),_0x282353['meaKE']);_0x282353[_0xbb057f(0x181)](emitLog,_0x34277b,{'kind':_0x282353['zLqJg'],'message':_0x2043b8,'level':_0x282353['GAvdv']});}else _0x282353[_0xbb057f(0x181)](emitLog,_0x34277b,{'kind':_0x282353['zLqJg'],'message':_0x282353[_0xbb057f(0x143)](_0x282353[_0xbb057f(0x176)](_0x282353[_0xbb057f(0x228)],_0x282353[_0xbb057f(0x191)](_0x4881dd,_0x282353[_0xbb057f(0x1d7)])),_0x282353[_0xbb057f(0x144)]),'level':_0x282353[_0xbb057f(0x190)]});_0x282353[_0xbb057f(0x147)](emitTest,HookState['POST'],_0x495a7d,_0xf1f5d7,_0x48b7a4,_0x5f12b5);}_0x596512['delete'](_0x168443),_0x1ecb3d[_0xbb057f(0x234)]&&_0x1ecb3d[_0xbb057f(0x234)][_0xbb057f(0x156)]&&_0x596512['delete'](_0x1ecb3d['cursor'][_0xbb057f(0x156)]+'_'+_0x230afb);}catch(_0x4e8386){_0x282353[_0xbb057f(0x1ca)](debug,_0xbb057f(0x168)+_0x4e8386);}});}module[a43_0x5cda12(0x1c7)]=BrowserStackNewmanReporter;
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a44_0x5e2e(_0x1a5672,_0x464eb5){const _0x1e7bad=a44_0x1e7b();return a44_0x5e2e=function(_0x5e2e37,_0x33f2a1){_0x5e2e37=_0x5e2e37-0x13b;let _0x58b9b3=_0x1e7bad[_0x5e2e37];return _0x58b9b3;},a44_0x5e2e(_0x1a5672,_0x464eb5);}const a44_0x52c985=a44_0x5e2e;(function(_0xa8dd04,_0x1242a4){const _0x17ab95=a44_0x5e2e,_0x1a5554=_0xa8dd04();while(!![]){try{const _0x463571=-parseInt(_0x17ab95(0x149))/0x1+-parseInt(_0x17ab95(0x16c))/0x2*(parseInt(_0x17ab95(0x17a))/0x3)+-parseInt(_0x17ab95(0x144))/0x4*(-parseInt(_0x17ab95(0x154))/0x5)+parseInt(_0x17ab95(0x168))/0x6+-parseInt(_0x17ab95(0x160))/0x7*(parseInt(_0x17ab95(0x14a))/0x8)+parseInt(_0x17ab95(0x158))/0x9*(parseInt(_0x17ab95(0x14b))/0xa)+-parseInt(_0x17ab95(0x143))/0xb*(-parseInt(_0x17ab95(0x13e))/0xc);if(_0x463571===_0x1242a4)break;else _0x1a5554['push'](_0x1a5554['shift']());}catch(_0x5cc97){_0x1a5554['push'](_0x1a5554['shift']());}}}(a44_0x1e7b,0xb6646));const path=require(a44_0x52c985(0x161)),Module=require(a44_0x52c985(0x16e)),BrowserstackCLI=require('../v2/browserstackCLI'),scriptFile=process[a44_0x52c985(0x15f)][0x2],maxParallel=parseInt(process[a44_0x52c985(0x15f)][0x3])||0x0;!scriptFile&&(process[a44_0x52c985(0x14d)][a44_0x52c985(0x174)](a44_0x52c985(0x15d)),process['exit'](0x1));function a44_0x1e7b(){const _0x2355cb=['_load','cli','fPtKo','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','run','559863eBiJUU','tIbXq','reporter','hOqom','42514212NhSkYb','_resolveFilename','assign','p-limit','IhsLC','11RrFGHc','1828396oxtgRU','vvcAM','browserstack','orjcM','call','1284597yipYIH','8231176OQOhEB','126550muUOkr','exitCode','stderr','oLixx','XtWdP','error','reporters','stRPH','beforeExit','5vIAGWn','indexOf','failures','concat','117rYFejz','Fuond','bootstrap','bind','exit','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','zEhVC','argv','7GbyZkr','path','rsqUk','SGwvK','join','EBhHV','resolve','length','2334450oxXgyT','GaSUA','newman-reporter-browserstack','AYmjM','16gWpCyA','osTfe','module','jGvrd','masaG','ejGUt','GRdNo','collection','write'];a44_0x1e7b=function(){return _0x2355cb;};return a44_0x1e7b();}const reporterPath=path[a44_0x52c985(0x164)](__dirname,'reporter','index.js'),originalResolveFilename=Module[a44_0x52c985(0x13f)];Module['_resolveFilename']=function(_0x56df26,_0x4224ea,_0x24ff46,_0x588e24){const _0x3791e6=a44_0x52c985,_0x4acf26={};_0x4acf26[_0x3791e6(0x165)]=function(_0x1a49c2,_0x31114c){return _0x1a49c2===_0x31114c;},_0x4acf26['EQShX']=_0x3791e6(0x16a);const _0x17e251=_0x4acf26;if(_0x17e251[_0x3791e6(0x165)](_0x56df26,_0x17e251['EQShX']))return reporterPath;return originalResolveFilename[_0x3791e6(0x148)](this,_0x56df26,_0x4224ea,_0x24ff46,_0x588e24);};let limit;try{const pLimit=require(a44_0x52c985(0x141)),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a44_0x2d752){limit=function(_0x369e8c){const _0x56b7f7=a44_0x52c985,_0x523ca5={'osTfe':function(_0x15c42c){return _0x15c42c();}};return _0x523ca5[_0x56b7f7(0x16d)](_0x369e8c);};}let wrappedNewman=null,hasFailure=![];const originalLoad=Module[a44_0x52c985(0x175)];Module[a44_0x52c985(0x175)]=function(_0x1d11d7,_0xfebd7f,_0x3c56f2){const _0x51c6cb=a44_0x52c985,_0x34ab09={'stRPH':function(_0x7f8a71,_0x32f6e6){return _0x7f8a71>_0x32f6e6;},'GaSUA':function(_0x15ffdb,_0x49fcb9){return _0x15ffdb||_0x49fcb9;},'jGvrd':function(_0x3c73ed,_0x4671aa,_0x345c44){return _0x3c73ed(_0x4671aa,_0x345c44);},'zEhVC':function(_0x174346,_0x5484ef){return _0x174346(_0x5484ef);},'tIbXq':_0x51c6cb(0x176),'fPtKo':function(_0x1b8f62,_0x29e935){return _0x1b8f62===_0x29e935;},'pIZID':_0x51c6cb(0x146),'GRdNo':function(_0x2b596f,_0x59b8b7){return _0x2b596f===_0x59b8b7;},'masaG':'string','hOqom':function(_0x2a4aab,_0x19ab2a){return _0x2a4aab!==_0x19ab2a;},'SGwvK':'newman'},_0x135902=originalLoad[_0x51c6cb(0x148)](this,_0x1d11d7,_0xfebd7f,_0x3c56f2);if(_0x34ab09[_0x51c6cb(0x13d)](_0x1d11d7,_0x34ab09[_0x51c6cb(0x163)]))return _0x135902;if(wrappedNewman)return wrappedNewman;const _0x451974=_0x135902['run'][_0x51c6cb(0x15b)](_0x135902);return wrappedNewman=Object['create'](_0x135902),wrappedNewman[_0x51c6cb(0x179)]=function(_0x2293d1,_0x466208){const _0x2cec90=_0x51c6cb,_0x177e65={'KtlQm':function(_0x4a2fbf,_0x477ff1){const _0x1fedc9=a44_0x5e2e;return _0x34ab09[_0x1fedc9(0x152)](_0x4a2fbf,_0x477ff1);},'JidpO':function(_0x707b60,_0xf96b6f){const _0x17ffdb=a44_0x5e2e;return _0x34ab09[_0x17ffdb(0x169)](_0x707b60,_0xf96b6f);},'ejGUt':function(_0x2a3264,_0x2c8f7a,_0xa659e1){const _0x109f36=a44_0x5e2e;return _0x34ab09[_0x109f36(0x16f)](_0x2a3264,_0x2c8f7a,_0xa659e1);},'vvcAM':function(_0x3ab227,_0xd4f22f){const _0x42212a=a44_0x5e2e;return _0x34ab09[_0x42212a(0x15e)](_0x3ab227,_0xd4f22f);},'XtWdP':function(_0xce890f,_0x1ea974,_0x13c5f4){const _0x25f9bb=a44_0x5e2e;return _0x34ab09[_0x25f9bb(0x16f)](_0xce890f,_0x1ea974,_0x13c5f4);}};let _0x4bbce5=_0x2293d1[_0x2cec90(0x151)]||[_0x34ab09[_0x2cec90(0x13b)]];_0x34ab09[_0x2cec90(0x177)](_0x4bbce5[_0x2cec90(0x155)](_0x34ab09['pIZID']),-0x1)&&(_0x4bbce5=_0x4bbce5[_0x2cec90(0x157)]([_0x34ab09['pIZID']]));const _0x490750=_0x34ab09[_0x2cec90(0x172)](typeof _0x2293d1[_0x2cec90(0x173)],_0x34ab09[_0x2cec90(0x170)])?_0x2293d1[_0x2cec90(0x173)]:undefined,_0x325b2d={};_0x325b2d['collectionPath']=_0x490750;const _0x1a996b=Object[_0x2cec90(0x140)]({},_0x2293d1[_0x2cec90(0x13c)],{'browserstack':Object['assign']({},_0x2293d1[_0x2cec90(0x13c)]&&_0x2293d1[_0x2cec90(0x13c)]['browserstack'],_0x325b2d)}),_0x280fd4={};return _0x280fd4[_0x2cec90(0x151)]=_0x4bbce5,_0x280fd4[_0x2cec90(0x13c)]=_0x1a996b,_0x2293d1=Object[_0x2cec90(0x140)]({},_0x2293d1,_0x280fd4),_0x34ab09[_0x2cec90(0x15e)](limit,function(){return new Promise(function(_0x57ec99){const _0x5daca2=a44_0x5e2e,_0x47ab22={'nfHTC':function(_0x1c42d3,_0x30049a){return _0x177e65['KtlQm'](_0x1c42d3,_0x30049a);},'SfeXN':function(_0x33643d,_0x53b069){return _0x177e65['JidpO'](_0x33643d,_0x53b069);},'oLixx':function(_0x53736b,_0x98e4c5,_0x15913d){const _0x1b7fa3=a44_0x5e2e;return _0x177e65[_0x1b7fa3(0x171)](_0x53736b,_0x98e4c5,_0x15913d);},'rsqUk':function(_0x2c5ff7,_0x28a7f4){const _0x4cfdbe=a44_0x5e2e;return _0x177e65[_0x4cfdbe(0x145)](_0x2c5ff7,_0x28a7f4);}};_0x177e65[_0x5daca2(0x14f)](_0x451974,_0x2293d1,function(_0x1443de,_0x3fa455){const _0x16005e=_0x5daca2,_0xa5c726=_0x3fa455&&_0x3fa455['run']&&(_0x3fa455[_0x16005e(0x179)][_0x16005e(0x150)]||_0x3fa455[_0x16005e(0x179)]['failures']&&_0x47ab22['nfHTC'](_0x3fa455[_0x16005e(0x179)][_0x16005e(0x156)][_0x16005e(0x167)],0x0));_0x47ab22['SfeXN'](_0xa5c726,_0x1443de)&&(hasFailure=!![]),_0x466208&&_0x47ab22[_0x16005e(0x14e)](_0x466208,_0x1443de,_0x3fa455),_0x47ab22[_0x16005e(0x162)](_0x57ec99,_0x3fa455);});});});},wrappedNewman;};async function main(){const _0x5bf8aa=a44_0x52c985,_0x45266e={'IhsLC':function(_0x3c7765,_0x1c3ef1){return _0x3c7765(_0x1c3ef1);},'AYmjM':function(_0x15c595,_0x2f014b){return _0x15c595+_0x2f014b;},'Fuond':_0x5bf8aa(0x178)};try{await BrowserstackCLI['getInstance']()[_0x5bf8aa(0x15a)]();}catch(_0x2a5d01){}try{_0x45266e[_0x5bf8aa(0x142)](require,path[_0x5bf8aa(0x166)](scriptFile));}catch(_0x57c8f7){process[_0x5bf8aa(0x14d)]['write'](_0x45266e['AYmjM'](_0x45266e[_0x5bf8aa(0x16b)](_0x45266e[_0x5bf8aa(0x159)],_0x57c8f7['message']||_0x57c8f7),'\x0a')),process[_0x5bf8aa(0x14c)]=0x1;}}main(),process['on'](a44_0x52c985(0x153),function(){const _0x1fa273=a44_0x52c985;hasFailure&&(process[_0x1fa273(0x14c)]=0x1);}),process['on'](a44_0x52c985(0x15c),function(){const _0x57a370=a44_0x52c985,_0x552566={};_0x552566[_0x57a370(0x147)]=function(_0x5ddc88,_0x16564b){return _0x5ddc88===_0x16564b;};const _0x42d2df=_0x552566;hasFailure&&_0x42d2df[_0x57a370(0x147)](process['exitCode'],0x0)&&(process[_0x57a370(0x14c)]=0x1);});
2
+ 'use strict';const a44_0x2b20f2=a44_0x2fea;(function(_0x498e2a,_0x4f2b59){const _0x2a47c7=a44_0x2fea,_0x480c54=_0x498e2a();while(!![]){try{const _0x23e2e5=-parseInt(_0x2a47c7(0x112))/0x1*(parseInt(_0x2a47c7(0x123))/0x2)+-parseInt(_0x2a47c7(0x12e))/0x3+-parseInt(_0x2a47c7(0xfa))/0x4*(parseInt(_0x2a47c7(0x133))/0x5)+-parseInt(_0x2a47c7(0x11c))/0x6+-parseInt(_0x2a47c7(0x127))/0x7+-parseInt(_0x2a47c7(0xfd))/0x8*(-parseInt(_0x2a47c7(0x106))/0x9)+parseInt(_0x2a47c7(0xfb))/0xa;if(_0x23e2e5===_0x4f2b59)break;else _0x480c54['push'](_0x480c54['shift']());}catch(_0x3c6250){_0x480c54['push'](_0x480c54['shift']());}}}(a44_0x2bf3,0x51dde));const path=require(a44_0x2b20f2(0x104)),Module=require(a44_0x2b20f2(0x124)),BrowserstackCLI=require(a44_0x2b20f2(0x116)),scriptFile=process[a44_0x2b20f2(0x108)][0x2],maxParallel=parseInt(process[a44_0x2b20f2(0x108)][0x3])||0x0;!scriptFile&&(process[a44_0x2b20f2(0xfc)]['write'](a44_0x2b20f2(0x10b)),process[a44_0x2b20f2(0x105)](0x1));const reporterPath=path[a44_0x2b20f2(0x111)](__dirname,a44_0x2b20f2(0x10c),a44_0x2b20f2(0x114)),originalResolveFilename=Module[a44_0x2b20f2(0x115)];Module['_resolveFilename']=function(_0x2426bc,_0x6dd65b,_0x16da1c,_0x59f3bb){const _0x3aea22=a44_0x2b20f2,_0x19895c={};_0x19895c[_0x3aea22(0x10a)]=function(_0x3259e0,_0x5d7f5b){return _0x3259e0===_0x5d7f5b;},_0x19895c[_0x3aea22(0x107)]=_0x3aea22(0x117);const _0x35d845=_0x19895c;if(_0x35d845[_0x3aea22(0x10a)](_0x2426bc,_0x35d845[_0x3aea22(0x107)]))return reporterPath;return originalResolveFilename['call'](this,_0x2426bc,_0x6dd65b,_0x16da1c,_0x59f3bb);};let limit;try{const pLimit=require(a44_0x2b20f2(0x118)),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a44_0x2e2c28){limit=function(_0xf58b64){const _0x592ed4={'qNasi':function(_0x1531c0){return _0x1531c0();}};return _0x592ed4['qNasi'](_0xf58b64);};}function a44_0x2fea(_0x169a34,_0x31febd){const _0x2bf3f2=a44_0x2bf3();return a44_0x2fea=function(_0x2feab8,_0x5b5a22){_0x2feab8=_0x2feab8-0xf7;let _0x4321f7=_0x2bf3f2[_0x2feab8];return _0x4321f7;},a44_0x2fea(_0x169a34,_0x31febd);}let wrappedNewman=null,hasFailure=![];const originalLoad=Module[a44_0x2b20f2(0x11f)];function a44_0x2bf3(){const _0x4c785a=['string','bootstrap','beforeExit','reporters','collectionPath','path','exit','48231CLshMj','VlAjJ','argv','Jinpa','nbnhL','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','reporter','failures','message','collection','CDivg','join','1flAYoe','ykadJ','index.js','_resolveFilename','../v2/browserstackCLI','newman-reporter-browserstack','p-limit','exitCode','lssKG','run','419592ePMcXs','getInstance','length','_load','concat','browserstack','HdChR','269474wWeHdQ','module','BuFsh','bind','4082449ThDeFa','vLDew','indexOf','IsyTD','ATQQl','nqffy','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','823401kvJchm','assign','LIrIq','EwYrU','call','1984115DnXuap','gNhvd','error','lNCLC','4ynfZlu','13229000tbVWAa','stderr','704YBSKTD','mdJoK'];a44_0x2bf3=function(){return _0x4c785a;};return a44_0x2bf3();}Module[a44_0x2b20f2(0x11f)]=function(_0x7d0380,_0x21f0b1,_0x5eecf7){const _0x234669=a44_0x2b20f2,_0x503253={'qYXSW':function(_0x57fe80,_0x5d5d27){return _0x57fe80>_0x5d5d27;},'HdChR':function(_0x51af6f,_0x15b4a4){return _0x51af6f||_0x15b4a4;},'CDivg':function(_0x3de8a3,_0x370d05,_0x41eb19){return _0x3de8a3(_0x370d05,_0x41eb19);},'EwYrU':function(_0x541276,_0x16e4fe){return _0x541276(_0x16e4fe);},'AAzeE':function(_0x578ac3,_0x13a645,_0x4a9465){return _0x578ac3(_0x13a645,_0x4a9465);},'vLDew':'cli','nqffy':function(_0xe8ff6d,_0x3532c7){return _0xe8ff6d===_0x3532c7;},'gNhvd':_0x234669(0x121),'ykadJ':_0x234669(0xff),'LIrIq':function(_0xb02052,_0x31a020){return _0xb02052!==_0x31a020;},'lNCLC':'newman'},_0x261674=originalLoad[_0x234669(0x132)](this,_0x7d0380,_0x21f0b1,_0x5eecf7);if(_0x503253[_0x234669(0x130)](_0x7d0380,_0x503253[_0x234669(0xf9)]))return _0x261674;if(wrappedNewman)return wrappedNewman;const _0x20f0af=_0x261674[_0x234669(0x11b)][_0x234669(0x126)](_0x261674);return wrappedNewman=Object['create'](_0x261674),wrappedNewman[_0x234669(0x11b)]=function(_0x173f0c,_0x49093c){const _0x2142cd=_0x234669;let _0x55db3f=_0x173f0c[_0x2142cd(0x102)]||[_0x503253[_0x2142cd(0x128)]];_0x503253[_0x2142cd(0x12c)](_0x55db3f[_0x2142cd(0x129)](_0x503253[_0x2142cd(0xf7)]),-0x1)&&(_0x55db3f=_0x55db3f[_0x2142cd(0x120)]([_0x503253[_0x2142cd(0xf7)]]));const _0x198198=_0x503253[_0x2142cd(0x12c)](typeof _0x173f0c[_0x2142cd(0x10f)],_0x503253[_0x2142cd(0x113)])?_0x173f0c[_0x2142cd(0x10f)]:undefined,_0x39c310={};_0x39c310[_0x2142cd(0x103)]=_0x198198;const _0x455439=Object[_0x2142cd(0x12f)]({},_0x173f0c['reporter'],{'browserstack':Object[_0x2142cd(0x12f)]({},_0x173f0c['reporter']&&_0x173f0c[_0x2142cd(0x10c)]['browserstack'],_0x39c310)}),_0x5d0d45={};return _0x5d0d45['reporters']=_0x55db3f,_0x5d0d45[_0x2142cd(0x10c)]=_0x455439,_0x173f0c=Object[_0x2142cd(0x12f)]({},_0x173f0c,_0x5d0d45),_0x503253['EwYrU'](limit,function(){const _0x458787={'xcOBb':function(_0x11e9e9,_0x1efe69){return _0x503253['qYXSW'](_0x11e9e9,_0x1efe69);},'IsyTD':function(_0x5bcc2f,_0x25bfee){const _0x2a5fa9=a44_0x2fea;return _0x503253[_0x2a5fa9(0x122)](_0x5bcc2f,_0x25bfee);},'VLQRa':function(_0x261409,_0x433487,_0x149733){const _0x527bcd=a44_0x2fea;return _0x503253[_0x527bcd(0x110)](_0x261409,_0x433487,_0x149733);},'Jinpa':function(_0x17d493,_0x42ff03){const _0x5b2f35=a44_0x2fea;return _0x503253[_0x5b2f35(0x131)](_0x17d493,_0x42ff03);},'ATQQl':function(_0x5170f5,_0x4194c1,_0x161767){return _0x503253['AAzeE'](_0x5170f5,_0x4194c1,_0x161767);}};return new Promise(function(_0x147448){const _0x1c405b=a44_0x2fea;_0x458787[_0x1c405b(0x12b)](_0x20f0af,_0x173f0c,function(_0xf6527f,_0x15eb73){const _0xd2d6b0=_0x1c405b,_0x3ccf07=_0x15eb73&&_0x15eb73['run']&&(_0x15eb73[_0xd2d6b0(0x11b)][_0xd2d6b0(0xf8)]||_0x15eb73[_0xd2d6b0(0x11b)][_0xd2d6b0(0x10d)]&&_0x458787['xcOBb'](_0x15eb73[_0xd2d6b0(0x11b)]['failures'][_0xd2d6b0(0x11e)],0x0));_0x458787[_0xd2d6b0(0x12a)](_0x3ccf07,_0xf6527f)&&(hasFailure=!![]),_0x49093c&&_0x458787['VLQRa'](_0x49093c,_0xf6527f,_0x15eb73),_0x458787[_0xd2d6b0(0x109)](_0x147448,_0x15eb73);});});});},wrappedNewman;};async function main(){const _0x30b0da=a44_0x2b20f2,_0x59d79c={'cffOQ':function(_0x2a6073,_0x51c2fc){return _0x2a6073(_0x51c2fc);},'mdJoK':function(_0x464d8a,_0x33473d){return _0x464d8a+_0x33473d;},'BuFsh':function(_0x6542f2,_0x58c1c0){return _0x6542f2+_0x58c1c0;},'KGQRs':_0x30b0da(0x12d)};try{await BrowserstackCLI[_0x30b0da(0x11d)]()[_0x30b0da(0x100)]();}catch(_0x513362){}try{_0x59d79c['cffOQ'](require,path['resolve'](scriptFile));}catch(_0x42d626){process[_0x30b0da(0xfc)]['write'](_0x59d79c[_0x30b0da(0xfe)](_0x59d79c[_0x30b0da(0x125)](_0x59d79c['KGQRs'],_0x42d626[_0x30b0da(0x10e)]||_0x42d626),'\x0a')),process['exitCode']=0x1;}}main(),process['on'](a44_0x2b20f2(0x101),function(){const _0x1552a8=a44_0x2b20f2;hasFailure&&(process[_0x1552a8(0x119)]=0x1);}),process['on'](a44_0x2b20f2(0x105),function(){const _0x54e639=a44_0x2b20f2,_0x361d4f={};_0x361d4f[_0x54e639(0x11a)]=function(_0x28ade8,_0x5bd3ee){return _0x28ade8===_0x5bd3ee;};const _0x1127dc=_0x361d4f;hasFailure&&_0x1127dc[_0x54e639(0x11a)](process[_0x54e639(0x119)],0x0)&&(process['exitCode']=0x1);});
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a45_0x26418e=a45_0xbce1;(function(_0x26dfa0,_0x4c1bd1){const _0x15ef6b=a45_0xbce1,_0x185014=_0x26dfa0();while(!![]){try{const _0x297131=parseInt(_0x15ef6b(0x235))/0x1+-parseInt(_0x15ef6b(0x223))/0x2*(-parseInt(_0x15ef6b(0x22a))/0x3)+-parseInt(_0x15ef6b(0x214))/0x4+parseInt(_0x15ef6b(0x1f3))/0x5+parseInt(_0x15ef6b(0x1f9))/0x6*(-parseInt(_0x15ef6b(0x23a))/0x7)+-parseInt(_0x15ef6b(0x1f7))/0x8+parseInt(_0x15ef6b(0x208))/0x9;if(_0x297131===_0x4c1bd1)break;else _0x185014['push'](_0x185014['shift']());}catch(_0x5aabc8){_0x185014['push'](_0x185014['shift']());}}}(a45_0x2ade,0x9f102));function a45_0xbce1(_0x557002,_0x5370ee){const _0x2ade66=a45_0x2ade();return a45_0xbce1=function(_0xbce1a7,_0x4a8260){_0xbce1a7=_0xbce1a7-0x1ea;let _0x41d0aa=_0x2ade66[_0xbce1a7];return _0x41d0aa;},a45_0xbce1(_0x557002,_0x5370ee);}const fs=require('fs'),path=require(a45_0x26418e(0x21c)),{spawn}=require(a45_0x26418e(0x22d)),logger=require(a45_0x26418e(0x1f6))[a45_0x26418e(0x220)],{default:BrowserStackSetup}=require(a45_0x26418e(0x229)),helper=require(a45_0x26418e(0x224)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x35b5ec,_0x227e55)=>{const _0x1f30ed=a45_0x26418e,_0x5332f9={'CirKw':_0x1f30ed(0x1ef),'PjvTH':_0x1f30ed(0x237),'PnWdC':function(_0x228fd9,_0x455dc5){return _0x228fd9(_0x455dc5);},'yNmbr':_0x1f30ed(0x211)};let _0x37de1c=null,_0x31f5ca={};const _0x5d8824=_0x227e55[_0x1f30ed(0x1f2)](_0x1f37bb=>_0x1f37bb===_0x1f30ed(0x231)),_0x1334e8=!helper['isUndefined'](_0x35b5ec[_0x1f30ed(0x205)])?helper[_0x1f30ed(0x1f5)](_0x35b5ec[_0x1f30ed(0x205)]):null;!helper[_0x1f30ed(0x1f1)](_0x35b5ec[_0x1f30ed(0x205)])&&!_0x1334e8&&logger[_0x1f30ed(0x1ea)](_0x1f30ed(0x230)+_0x35b5ec[_0x1f30ed(0x205)]+_0x1f30ed(0x217));if(_0x1334e8&&fs[_0x1f30ed(0x225)](_0x1334e8))_0x37de1c=_0x1334e8,_0x227e55[_0x1f30ed(0x1f8)](_0x5d8824,0x2);else{if(fs[_0x1f30ed(0x225)](path['join'](process[_0x1f30ed(0x203)](),_0x5332f9[_0x1f30ed(0x228)])))_0x37de1c=path[_0x1f30ed(0x20c)](process['cwd'](),_0x5332f9[_0x1f30ed(0x228)]);else fs['existsSync'](path[_0x1f30ed(0x20c)](process[_0x1f30ed(0x203)](),_0x5332f9[_0x1f30ed(0x20f)]))&&(_0x37de1c=path[_0x1f30ed(0x20c)](process[_0x1f30ed(0x203)](),_0x5332f9[_0x1f30ed(0x20f)]));}return _0x37de1c?(logger[_0x1f30ed(0x1fd)](_0x1f30ed(0x1fe)+_0x37de1c),_0x31f5ca=_0x5332f9[_0x1f30ed(0x20e)](require,_0x37de1c)):logger['info'](_0x5332f9[_0x1f30ed(0x23b)]),_0x31f5ca;},removeExistingEnvs=_0x577f12=>{const _0x275af2=a45_0x26418e,_0xbc33a6={};_0xbc33a6[_0x275af2(0x202)]=function(_0xc16dcc,_0x499a64){return _0xc16dcc>_0x499a64;};const _0x554dc4=_0xbc33a6;let _0x3fa66b=_0x577f12[_0x275af2(0x1f2)](_0x282921=>_0x282921===_0x275af2(0x215));_0x554dc4[_0x275af2(0x202)](_0x3fa66b,-0x1)&&_0x577f12[_0x275af2(0x1f8)](_0x3fa66b,0x2),_0x3fa66b=_0x577f12[_0x275af2(0x1f2)](_0x58a876=>_0x58a876==='-e'),_0x554dc4[_0x275af2(0x202)](_0x3fa66b,-0x1)&&_0x577f12[_0x275af2(0x1f8)](_0x3fa66b,0x2);};function a45_0x2ade(){const _0x480b6b=['exports','Ignoring\x20--config\x20path\x20\x22','--config','hub.browserstack.com','forEach','map','544483XVJnVk','BROWSERSTACK_FRAMEWORK','nightwatch.json','Ndqgk','ppMFa','1416044DmGszt','yNmbr','nightwatch','FQQdY','filter','slice','warn','gNDdd','NODE_OPTIONS','nUPoX','iurVw','nightwatch.conf.js','desiredCapabilities','isUndefined','findIndex','3538340fSQXYY','env','resolveWithinCwd','../../helpers/logger','4225312dvTLwa','splice','6SoJzqo','useW3C','platform','unlinkSync','info','Getting\x20your\x20nightwatch\x20configs\x20from\x20','nightwatch-browserstack.json','debug','inherit','GnXse','cwd','modifyBrowserStackW3CCaps','config','--require\x20','Deleting\x20','2890566nAqBil','../../index','close','NMDTG','join','nightwatch.cmd','PnWdC','PjvTH','SFtMQ','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','child\x20process\x20exited\x20with\x20code\x20','selenium','1326676JLtDaE','--env','length','\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.','lQFkj','push','split','trim','path','EEoWd','QwXQv','start_process','winstonLogger','cXFdh','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','42LtOUWh','../../helpers/helper','existsSync','test_settings','webdriver','CirKw','../../helpers/BrowserStackSetup','20046ttyQrt','mergeDeep','stringify','child_process','now'];a45_0x2ade=function(){return _0x480b6b;};return a45_0x2ade();}function run(_0x5c4b8a,_0x52a1e2,_0xb33dae){const _0xc889c9=a45_0x26418e,_0x535392={'iurVw':_0xc889c9(0x23c),'YsLcp':function(_0x1f7aa3,_0x5e330b){return _0x1f7aa3+_0x5e330b;},'YvheT':_0xc889c9(0x226),'ppMFa':function(_0x1ed7f8,_0x54a5ad,_0x50679c){return _0x1ed7f8(_0x54a5ad,_0x50679c);},'nUPoX':_0xc889c9(0x232),'lQFkj':_0xc889c9(0x222),'QwXQv':function(_0x3594a9,_0x160862){return _0x3594a9===_0x160862;},'gNDdd':_0xc889c9(0x1ff),'XSsfI':function(_0x2f325f,_0x5c7690){return _0x2f325f(_0x5c7690);},'Afrly':_0xc889c9(0x209),'SFtMQ':function(_0x56d62f,_0x5ec7d1,_0x2b74fd,_0x30b279){return _0x56d62f(_0x5ec7d1,_0x2b74fd,_0x30b279);},'tNhZZ':_0xc889c9(0x20d),'Ndqgk':_0xc889c9(0x231),'NMDTG':_0xc889c9(0x215),'FQQdY':_0xc889c9(0x201),'hjcVa':_0xc889c9(0x20a)};if(!_0xb33dae['config'])return;const _0x1bd471=_0x535392[_0xc889c9(0x239)](getUserNightwatchConfigs,_0x5c4b8a,_0x52a1e2),_0x22a7f9={};_0x22a7f9[_0xc889c9(0x21f)]=![];const _0x58d101={};_0x58d101['host']=_0x535392[_0xc889c9(0x1ed)],_0x58d101['port']=0x1bb;const _0xdf7e7a={};_0xdf7e7a[_0xc889c9(0x227)]=_0x22a7f9,_0xdf7e7a[_0xc889c9(0x213)]=_0x58d101;const _0x113d42=_0xdf7e7a;logger['info'](_0x535392[_0xc889c9(0x218)]);const _0x34944b={..._0x1bd471},_0x241def=_0x34944b,_0x581d95=helper[_0xc889c9(0x1fa)](_0xb33dae[_0xc889c9(0x205)]),_0x2d2b2a=[];_0xb33dae[_0xc889c9(0x205)]['platforms'][_0xc889c9(0x233)]((_0x2f0dae,_0x61d433)=>{const _0x2bcbed=_0xc889c9;_0x581d95?_0x2d2b2a[_0x2bcbed(0x219)](helper[_0x2bcbed(0x204)](_0xb33dae[_0x2bcbed(0x205)],_0x535392[_0x2bcbed(0x1ee)],_0x61d433)):_0x2d2b2a[_0x2bcbed(0x219)](helper['modifyBrowserStackCaps'](_0xb33dae['config'],_0x535392[_0x2bcbed(0x1ee)],_0x61d433));});const _0x85b9c5={},_0x2da798=[];_0x5c4b8a[_0xc889c9(0x1f4)]=_0x5c4b8a[_0xc889c9(0x1f4)]||_0x5c4b8a['e'];const _0x143233=_0x5c4b8a[_0xc889c9(0x1f4)]?_0x5c4b8a['env'][_0xc889c9(0x21b)]()[_0xc889c9(0x21a)](',')[_0xc889c9(0x234)](_0x46b027=>_0x46b027['trim']())[_0xc889c9(0x23e)](_0x176e91=>_0x176e91!==''):[''];_0x535392[_0xc889c9(0x21e)](_0x143233[_0xc889c9(0x216)],0x0)&&_0x143233[_0xc889c9(0x219)]('');_0x143233[_0xc889c9(0x233)](_0x5ab31c=>{const _0x3df297=_0xc889c9,_0x57e368={'cXFdh':function(_0x303bfd,_0x88ff5c){return _0x535392['YsLcp'](_0x303bfd,_0x88ff5c);},'EEoWd':_0x535392['YvheT']};_0x2d2b2a[_0x3df297(0x233)](_0x31ec94=>{const _0x14a259=_0x3df297;let _0x2c11fc=_0x57e368[_0x14a259(0x221)](helper['getPlatformName'](_0x31ec94,'_'),'_'+Date[_0x14a259(0x22e)]());_0x5ab31c&&(_0x2c11fc+='_'+_0x5ab31c);if(_0x5ab31c&&(!_0x1bd471[_0x57e368[_0x14a259(0x21d)]]||!_0x1bd471[_0x57e368[_0x14a259(0x21d)]][_0x5ab31c]))return;const _0x112dee={..._0x113d42};_0x112dee[_0x14a259(0x1f0)]=_0x31ec94;const _0x475000=_0x112dee;_0x85b9c5[_0x2c11fc]=_0x5ab31c?helper[_0x14a259(0x22b)](_0x1bd471[_0x57e368['EEoWd']][_0x5ab31c],_0x475000):_0x475000,_0x2da798['push'](_0x2c11fc);});});!_0x241def[_0xc889c9(0x226)]&&(_0x241def[_0xc889c9(0x226)]={});_0x241def[_0xc889c9(0x226)]={..._0x241def['test_settings'],..._0x85b9c5};const _0x43e7e7=path[_0xc889c9(0x20c)](__dirname,_0x535392[_0xc889c9(0x1eb)]);fs['writeFileSync'](_0x43e7e7,JSON['stringify'](_0x241def)),_0x535392['XSsfI'](removeExistingEnvs,_0x52a1e2);const _0x560eee=require['resolve'](_0x535392['Afrly']),_0x530858=process['env'][_0xc889c9(0x1ec)]||'',_0x1174c2=_0xc889c9(0x206)+JSON[_0xc889c9(0x22c)](_0x560eee),_0x4c0467=_0x530858?_0x530858+'\x20'+_0x1174c2:_0x1174c2,_0x39e4fb=Object['assign']({},process[_0xc889c9(0x1f4)],{'NODE_OPTIONS':_0x4c0467,'BROWSERSTACK_FRAMEWORK':process[_0xc889c9(0x1f4)][_0xc889c9(0x236)]||_0x535392[_0xc889c9(0x1ee)]}),_0x4128f7=_0x535392[_0xc889c9(0x210)](spawn,/^win/['test'](process[_0xc889c9(0x1fb)])?_0x535392['tNhZZ']:_0x535392['iurVw'],[_0x535392[_0xc889c9(0x238)],_0x43e7e7,..._0x52a1e2[_0xc889c9(0x23f)](0x1),_0x535392[_0xc889c9(0x20b)],_0x2da798['join'](',')],{'stdio':_0x535392[_0xc889c9(0x23d)],'env':_0x39e4fb});_0x4128f7['on'](_0x535392['hjcVa'],async _0xdb2f6=>{const _0x5405de=_0xc889c9;logger[_0x5405de(0x200)](_0x5405de(0x212)+_0xdb2f6),logger['info'](_0x5405de(0x207)+_0x43e7e7),fs[_0x5405de(0x1fc)](_0x43e7e7);});}module[a45_0x26418e(0x22f)]=run;
2
+ 'use strict';const a45_0x4c574e=a45_0x5ce2;function a45_0x5b7e(){const _0x45db5c=['findIndex','BROWSERSTACK_FRAMEWORK','467973gOKVLu','QKNlD','warn','../utils/constants','path','splice','SvszS','trim','nightwatch.cmd','nightwatch.json','SwJIX','webdriver','yaTJE','KXJib','close','\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.','desiredCapabilities','isUndefined','hub.browserstack.com','424302ZGEgCW','24IJrZxc','18VomjgU','assign','agbJE','../../index','cwd','inherit','22925upxuMT','UTpNZ','euRxo','length','nightwatch-browserstack.json','../../helpers/logger','ztxOT','320583XvwWPF','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','config','start_process','getPlatformName','exports','Ignoring\x20--config\x20path\x20\x22','env','mergeDeep','EwDbk','--config','NODE_OPTIONS','VlmgI','500793PdaVXt','../../helpers/helper','join','push','Deleting\x20','info','../../helpers/BrowserStackSetup','selenium','host','2453850yQesHW','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','slice','17216760JyLQQd','stringify','nightwatch.conf.js','test_settings','child\x20process\x20exited\x20with\x20code\x20','Getting\x20your\x20nightwatch\x20configs\x20from\x20','forEach','existsSync','map','4aPeOPL','split','filter','--env','modifyBrowserStackCaps','unlinkSync','WTLlc','DzqiE','debug','platforms','resolve','nightwatch','IiuJj','gUdSS','now','--require\x20'];a45_0x5b7e=function(){return _0x45db5c;};return a45_0x5b7e();}(function(_0x1d7726,_0x159991){const _0x26b0f8=a45_0x5ce2,_0x23ab24=_0x1d7726();while(!![]){try{const _0x552393=-parseInt(_0x26b0f8(0x1db))/0x1+-parseInt(_0x26b0f8(0x1bf))/0x2+parseInt(_0x26b0f8(0x1ce))/0x3*(parseInt(_0x26b0f8(0x19a))/0x4)+-parseInt(_0x26b0f8(0x1e4))/0x5+parseInt(_0x26b0f8(0x1c1))/0x6*(-parseInt(_0x26b0f8(0x1c7))/0x7)+-parseInt(_0x26b0f8(0x1c0))/0x8*(parseInt(_0x26b0f8(0x1ac))/0x9)+parseInt(_0x26b0f8(0x1e7))/0xa;if(_0x552393===_0x159991)break;else _0x23ab24['push'](_0x23ab24['shift']());}catch(_0x1ab620){_0x23ab24['push'](_0x23ab24['shift']());}}}(a45_0x5b7e,0x700ff));const fs=require('fs'),path=require(a45_0x4c574e(0x1b0)),{spawn}=require('child_process'),logger=require(a45_0x4c574e(0x1cc))['winstonLogger'],{default:BrowserStackSetup}=require(a45_0x4c574e(0x1e1)),helper=require(a45_0x4c574e(0x1dc)),constants=require(a45_0x4c574e(0x1af)),getUserNightwatchConfigs=(_0x39c8c8,_0x5193ab)=>{const _0x29e557=a45_0x4c574e,_0x3fd053={'SwJIX':_0x29e557(0x1e9),'UTpNZ':_0x29e557(0x1b5),'XDtMn':function(_0x29a63a,_0xcd4e3c){return _0x29a63a(_0xcd4e3c);},'DzqiE':_0x29e557(0x1cf)};let _0x2333ed=null,_0x71bfec={};const _0x18fe5a=_0x5193ab[_0x29e557(0x1aa)](_0x2d97cb=>_0x2d97cb===_0x29e557(0x1d8)),_0x2f1150=!helper[_0x29e557(0x1bd)](_0x39c8c8[_0x29e557(0x1d0)])?helper['resolveWithinCwd'](_0x39c8c8[_0x29e557(0x1d0)]):null;!helper[_0x29e557(0x1bd)](_0x39c8c8['config'])&&!_0x2f1150&&logger[_0x29e557(0x1ae)](_0x29e557(0x1d4)+_0x39c8c8['config']+_0x29e557(0x1bb));if(_0x2f1150&&fs[_0x29e557(0x198)](_0x2f1150))_0x2333ed=_0x2f1150,_0x5193ab[_0x29e557(0x1b1)](_0x18fe5a,0x2);else{if(fs[_0x29e557(0x198)](path[_0x29e557(0x1dd)](process[_0x29e557(0x1c5)](),_0x3fd053[_0x29e557(0x1b6)])))_0x2333ed=path[_0x29e557(0x1dd)](process['cwd'](),_0x3fd053[_0x29e557(0x1b6)]);else fs[_0x29e557(0x198)](path[_0x29e557(0x1dd)](process[_0x29e557(0x1c5)](),_0x3fd053[_0x29e557(0x1c8)]))&&(_0x2333ed=path[_0x29e557(0x1dd)](process[_0x29e557(0x1c5)](),_0x3fd053[_0x29e557(0x1c8)]));}return _0x2333ed?(logger[_0x29e557(0x1e0)](_0x29e557(0x196)+_0x2333ed),_0x71bfec=_0x3fd053['XDtMn'](require,_0x2333ed)):logger[_0x29e557(0x1e0)](_0x3fd053[_0x29e557(0x1a1)]),_0x71bfec;},removeExistingEnvs=_0x509ebb=>{const _0x16d9ce=a45_0x4c574e,_0x33f8cd={};_0x33f8cd['IiuJj']=function(_0x5260df,_0xa2090f){return _0x5260df>_0xa2090f;};const _0x2d7dbb=_0x33f8cd;let _0x45ec9e=_0x509ebb[_0x16d9ce(0x1aa)](_0x5d03e9=>_0x5d03e9===_0x16d9ce(0x19d));_0x2d7dbb[_0x16d9ce(0x1a6)](_0x45ec9e,-0x1)&&_0x509ebb[_0x16d9ce(0x1b1)](_0x45ec9e,0x2),_0x45ec9e=_0x509ebb[_0x16d9ce(0x1aa)](_0x4c52df=>_0x4c52df==='-e'),_0x2d7dbb[_0x16d9ce(0x1a6)](_0x45ec9e,-0x1)&&_0x509ebb[_0x16d9ce(0x1b1)](_0x45ec9e,0x2);};function run(_0x2ba2e1,_0xd82399,_0x15ad21){const _0x4ef96e=a45_0x4c574e,_0x3ed474={'gUdSS':_0x4ef96e(0x1a5),'EwDbk':function(_0xf0a143,_0x5281b4){return _0xf0a143+_0x5281b4;},'VlmgI':_0x4ef96e(0x194),'qwWcy':function(_0x5c8158,_0x19f620,_0x5eb3bd){return _0x5c8158(_0x19f620,_0x5eb3bd);},'yaTJE':_0x4ef96e(0x1be),'QKNlD':_0x4ef96e(0x1e5),'yqALq':function(_0x28f52e,_0x314aa1){return _0x28f52e===_0x314aa1;},'XhFYa':_0x4ef96e(0x1cb),'WTLlc':function(_0x2a31d7,_0x39135f){return _0x2a31d7(_0x39135f);},'ztxOT':_0x4ef96e(0x1c4),'agbJE':function(_0x4face2,_0x1324bb,_0x1b58e1,_0x1463fd){return _0x4face2(_0x1324bb,_0x1b58e1,_0x1463fd);},'sulnB':_0x4ef96e(0x1b4),'KXJib':_0x4ef96e(0x1d8),'SvszS':_0x4ef96e(0x19d),'kZnNq':_0x4ef96e(0x1c6),'euRxo':_0x4ef96e(0x1ba)};if(!_0x15ad21[_0x4ef96e(0x1d0)])return;const _0x23023e=_0x3ed474['qwWcy'](getUserNightwatchConfigs,_0x2ba2e1,_0xd82399),_0x3cd048={};_0x3cd048[_0x4ef96e(0x1d1)]=![];const _0x3574d5={};_0x3574d5[_0x4ef96e(0x1e3)]=_0x3ed474[_0x4ef96e(0x1b8)],_0x3574d5['port']=0x1bb;const _0xeaa133={};_0xeaa133[_0x4ef96e(0x1b7)]=_0x3cd048,_0xeaa133[_0x4ef96e(0x1e2)]=_0x3574d5;const _0x587426=_0xeaa133;logger[_0x4ef96e(0x1e0)](_0x3ed474[_0x4ef96e(0x1ad)]);const _0x5381ab={..._0x23023e},_0x1f3c60=_0x5381ab,_0x31e470=helper['useW3C'](_0x15ad21['config']),_0x4f7e31=[];_0x15ad21[_0x4ef96e(0x1d0)][_0x4ef96e(0x1a3)][_0x4ef96e(0x197)]((_0x3ab94d,_0x562c15)=>{const _0x540cb7=_0x4ef96e;_0x31e470?_0x4f7e31[_0x540cb7(0x1de)](helper['modifyBrowserStackW3CCaps'](_0x15ad21[_0x540cb7(0x1d0)],_0x3ed474[_0x540cb7(0x1a7)],_0x562c15)):_0x4f7e31['push'](helper[_0x540cb7(0x19e)](_0x15ad21[_0x540cb7(0x1d0)],_0x3ed474[_0x540cb7(0x1a7)],_0x562c15));});const _0x500f6c={},_0x50a7d2=[];_0x2ba2e1[_0x4ef96e(0x1d5)]=_0x2ba2e1[_0x4ef96e(0x1d5)]||_0x2ba2e1['e'];const _0x212dfa=_0x2ba2e1[_0x4ef96e(0x1d5)]?_0x2ba2e1[_0x4ef96e(0x1d5)][_0x4ef96e(0x1b3)]()[_0x4ef96e(0x19b)](',')[_0x4ef96e(0x199)](_0x9b7e99=>_0x9b7e99[_0x4ef96e(0x1b3)]())[_0x4ef96e(0x19c)](_0xd49e0e=>_0xd49e0e!==''):[''];_0x3ed474['yqALq'](_0x212dfa[_0x4ef96e(0x1ca)],0x0)&&_0x212dfa[_0x4ef96e(0x1de)]('');_0x212dfa[_0x4ef96e(0x197)](_0x294212=>{const _0x3540d3=_0x4ef96e;_0x4f7e31[_0x3540d3(0x197)](_0x19d332=>{const _0x1b271a=_0x3540d3;let _0x554efb=_0x3ed474[_0x1b271a(0x1d7)](helper[_0x1b271a(0x1d2)](_0x19d332,'_'),'_'+Date[_0x1b271a(0x1a8)]());_0x294212&&(_0x554efb+='_'+_0x294212);if(_0x294212&&(!_0x23023e[_0x3ed474[_0x1b271a(0x1da)]]||!_0x23023e[_0x3ed474[_0x1b271a(0x1da)]][_0x294212]))return;const _0x58402d={..._0x587426};_0x58402d[_0x1b271a(0x1bc)]=_0x19d332;const _0x2d7f64=_0x58402d;_0x500f6c[_0x554efb]=_0x294212?helper[_0x1b271a(0x1d6)](_0x23023e[_0x3ed474[_0x1b271a(0x1da)]][_0x294212],_0x2d7f64):_0x2d7f64,_0x50a7d2[_0x1b271a(0x1de)](_0x554efb);});});!_0x1f3c60['test_settings']&&(_0x1f3c60[_0x4ef96e(0x194)]={});_0x1f3c60[_0x4ef96e(0x194)]={..._0x1f3c60[_0x4ef96e(0x194)],..._0x500f6c};const _0x6453e9=path[_0x4ef96e(0x1dd)](__dirname,_0x3ed474['XhFYa']);fs['writeFileSync'](_0x6453e9,JSON['stringify'](_0x1f3c60)),_0x3ed474[_0x4ef96e(0x1a0)](removeExistingEnvs,_0xd82399);const _0x473abc=require[_0x4ef96e(0x1a4)](_0x3ed474[_0x4ef96e(0x1cd)]),_0xf23f3f=process[_0x4ef96e(0x1d5)][_0x4ef96e(0x1d9)]||'',_0xf00989=_0x4ef96e(0x1a9)+JSON[_0x4ef96e(0x1e8)](_0x473abc),_0x275624=_0xf23f3f?_0xf23f3f+'\x20'+_0xf00989:_0xf00989,_0x48d795=Object[_0x4ef96e(0x1c2)]({},process[_0x4ef96e(0x1d5)],{'NODE_OPTIONS':_0x275624,'BROWSERSTACK_FRAMEWORK':process[_0x4ef96e(0x1d5)][_0x4ef96e(0x1ab)]||_0x3ed474['gUdSS']}),_0x2cafae=_0x3ed474[_0x4ef96e(0x1c3)](spawn,/^win/['test'](process['platform'])?_0x3ed474['sulnB']:_0x3ed474[_0x4ef96e(0x1a7)],[_0x3ed474[_0x4ef96e(0x1b9)],_0x6453e9,..._0xd82399[_0x4ef96e(0x1e6)](0x1),_0x3ed474[_0x4ef96e(0x1b2)],_0x50a7d2[_0x4ef96e(0x1dd)](',')],{'stdio':_0x3ed474['kZnNq'],'env':_0x48d795});_0x2cafae['on'](_0x3ed474[_0x4ef96e(0x1c9)],async _0x1fbd7b=>{const _0x24d9dd=_0x4ef96e;logger[_0x24d9dd(0x1a2)](_0x24d9dd(0x195)+_0x1fbd7b),logger[_0x24d9dd(0x1e0)](_0x24d9dd(0x1df)+_0x6453e9),fs[_0x24d9dd(0x19f)](_0x6453e9);});}function a45_0x5ce2(_0x46fd06,_0x5c1628){const _0x5b7ead=a45_0x5b7e();return a45_0x5ce2=function(_0x5ce2e4,_0x1d2732){_0x5ce2e4=_0x5ce2e4-0x194;let _0xa418a0=_0x5b7ead[_0x5ce2e4];return _0xa418a0;},a45_0x5ce2(_0x46fd06,_0x5c1628);}module[a45_0x4c574e(0x1d3)]=run;
@@ -1 +1 @@
1
- const a46_0x249ea2=a46_0x19b5;function a46_0x19b5(_0x48eed7,_0x113ce4){const _0x2ad138=a46_0x2ad1();return a46_0x19b5=function(_0x19b5b1,_0x52c133){_0x19b5b1=_0x19b5b1-0x187;let _0x39bbfc=_0x2ad138[_0x19b5b1];return _0x39bbfc;},a46_0x19b5(_0x48eed7,_0x113ce4);}(function(_0x2e53e8,_0x5af88f){const _0xa372b7=a46_0x19b5,_0x42bf5c=_0x2e53e8();while(!![]){try{const _0x32d72b=parseInt(_0xa372b7(0x1ff))/0x1*(parseInt(_0xa372b7(0x1a5))/0x2)+-parseInt(_0xa372b7(0x1e7))/0x3+parseInt(_0xa372b7(0x1f4))/0x4*(-parseInt(_0xa372b7(0x1d9))/0x5)+parseInt(_0xa372b7(0x18b))/0x6+parseInt(_0xa372b7(0x19e))/0x7*(-parseInt(_0xa372b7(0x1c2))/0x8)+parseInt(_0xa372b7(0x1c7))/0x9+-parseInt(_0xa372b7(0x1d1))/0xa*(-parseInt(_0xa372b7(0x1d7))/0xb);if(_0x32d72b===_0x5af88f)break;else _0x42bf5c['push'](_0x42bf5c['shift']());}catch(_0x3bdd75){_0x42bf5c['push'](_0x42bf5c['shift']());}}}(a46_0x2ad1,0xe0c3f));const util=require(a46_0x249ea2(0x193)),logger=require(a46_0x249ea2(0x209))['winstonLogger'],{automationLogger}=require(a46_0x249ea2(0x209)),{isAccessibilityAutomationSession}=require(a46_0x249ea2(0x1f1)),{isUndefined,isBrowserstackInfra}=require(a46_0x249ea2(0x1c6)),scripts=require(a46_0x249ea2(0x199)),PerformanceTester=require(a46_0x249ea2(0x201)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a46_0x249ea2(0x1f1)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');exports[a46_0x249ea2(0x1fa)]=async(_0x4cec4b,_0xe32c3c,_0x5c84c4={})=>{const _0x5f6811=a46_0x249ea2,_0x215121={};_0x215121[_0x5f6811(0x1b2)]=_0x5f6811(0x197),_0x215121[_0x5f6811(0x1ed)]=function(_0xe6761b,_0x144979){return _0xe6761b===_0x144979;},_0x215121[_0x5f6811(0x1dc)]=_0x5f6811(0x196);const _0x5dbd78=_0x215121,_0x5c660f=await _0x4cec4b[_0x5f6811(0x1b9)](_0x5f6811(0x1ce)+_0xe32c3c[_0x5f6811(0x1cd)](/arguments/g,_0x5dbd78[_0x5f6811(0x1b2)])+_0x5f6811(0x1ec)+JSON[_0x5f6811(0x1a8)](_0x5c84c4)+')');try{if(_0xe32c3c&&_0x5dbd78[_0x5f6811(0x1ed)](typeof _0xe32c3c,_0x5dbd78[_0x5f6811(0x1dc)])){const _0x3c2038=AUTOMATION_LOG_COMMANDS[_0x5f6811(0x20a)](_0x4593df=>_0xe32c3c['includes'](_0x4593df));if(_0x3c2038){const _0x40abc5={};_0x40abc5[_0x5f6811(0x1fd)]=_0x3c2038,_0x40abc5['parameters']=[_0x5c84c4];const _0x2556c4={};_0x2556c4[_0x5f6811(0x19b)]=_0x5c660f;const _0x525d73={};_0x525d73[_0x5f6811(0x1c5)]=_0x40abc5,_0x525d73['response']=_0x2556c4,automationLogger['silly']('['+new Date()[_0x5f6811(0x18d)]()+_0x5f6811(0x19c)+JSON[_0x5f6811(0x1a8)](_0x525d73));}}}catch(_0x5327fe){logger[_0x5f6811(0x1a0)](_0x5f6811(0x1dd)+_0x5327fe[_0x5f6811(0x1d6)]);}return _0x5c660f;},exports[a46_0x249ea2(0x1f0)]=async(_0x54c9cf,_0x36cca8,_0x3d420c={})=>{const _0x13b548=a46_0x249ea2,_0x59d2c8={};_0x59d2c8[_0x13b548(0x204)]=function(_0x3777f2,_0x3a23fb){return _0x3777f2===_0x3a23fb;},_0x59d2c8[_0x13b548(0x1a7)]=_0x13b548(0x1e3),_0x59d2c8['LxijE']=function(_0x43978f,_0x3c8614){return _0x43978f===_0x3c8614;},_0x59d2c8[_0x13b548(0x1f9)]=_0x13b548(0x1c3),_0x59d2c8[_0x13b548(0x1aa)]='bstackSdkArgs';const _0x178f4f=_0x59d2c8;if(_0x178f4f[_0x13b548(0x204)](_0x54c9cf[_0x13b548(0x1ac)]['name'],_0x178f4f[_0x13b548(0x1a7)]))return await _0x54c9cf['executeAsyncScript'](_0x36cca8,_0x3d420c);else{if(_0x178f4f['LxijE'](_0x54c9cf[_0x13b548(0x1ac)][_0x13b548(0x1ab)],_0x178f4f['YFnLa']))return await _0x54c9cf[_0x13b548(0x202)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x36cca8[_0x13b548(0x1cd)](/arguments/g,_0x178f4f[_0x13b548(0x1aa)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x13b548(0x1a8)](_0x3d420c)+')');}},exports[a46_0x249ea2(0x191)]=async _0x29ebff=>{const _0x966d67=a46_0x249ea2,_0xf4e495={};_0xf4e495[_0x966d67(0x1a6)]=_0x966d67(0x198),_0xf4e495[_0x966d67(0x1e2)]='accessibilityOptions.scannerProcessingTimeout',_0xf4e495[_0x966d67(0x1cb)]='accessibilityOptions.includeIssueType.bestPractice',_0xf4e495['OKUzC']=_0x966d67(0x1be),_0xf4e495[_0x966d67(0x1b5)]='accessibilityOptions.authToken',_0xf4e495[_0x966d67(0x1f2)]=_0x966d67(0x1f7);const _0x470d8e=_0xf4e495;_0x29ebff[_0x966d67(0x1ee)]&&(_0x29ebff[_0x966d67(0x1ee)][_0x966d67(0x1da)]&&(_0x29ebff[_0x470d8e['kpbwt']]=_0x29ebff[_0x966d67(0x1ee)]['wcagVersion']),_0x29ebff[_0x966d67(0x1ee)]['scannerProcessingTimeout']&&(_0x29ebff[_0x470d8e[_0x966d67(0x1e2)]]=_0x29ebff[_0x966d67(0x1ee)]['scannerProcessingTimeout']),_0x29ebff[_0x966d67(0x1ee)]['includeIssueType']&&(_0x29ebff[_0x470d8e[_0x966d67(0x1cb)]]=_0x29ebff['accessibilityOptions'][_0x966d67(0x1b8)][_0x966d67(0x192)],_0x29ebff[_0x470d8e[_0x966d67(0x19a)]]=_0x29ebff[_0x966d67(0x1ee)][_0x966d67(0x1b8)][_0x966d67(0x1b6)]));const _0x37929b=JSON[_0x966d67(0x20c)](process['env'][_0x966d67(0x1f3)])[_0x966d67(0x1f8)];_0x29ebff[_0x470d8e[_0x966d67(0x1b5)]]=process[_0x966d67(0x1c8)][_0x966d67(0x1cf)],_0x29ebff[_0x470d8e[_0x966d67(0x1f2)]]=_0x37929b,delete _0x29ebff[_0x966d67(0x1ee)];},exports[a46_0x249ea2(0x1cc)]=async _0x4efc45=>{const _0x5aad82=a46_0x249ea2,_0xa2fda2={};_0xa2fda2[_0x5aad82(0x1c9)]=_0x5aad82(0x1a4),_0xa2fda2[_0x5aad82(0x1df)]=_0x5aad82(0x1d5);const _0x539bbf=_0xa2fda2;if(global[_0x5aad82(0x1fe)])try{const details={'url':await _0x4efc45.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4efc45,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4efc45,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger['error'](_0x539bbf[_0x5aad82(0x1c9)]),[];}else return logger[_0x5aad82(0x1a3)](_0x539bbf[_0x5aad82(0x1df)]),[];},exports[a46_0x249ea2(0x1c0)]=async(_0x362e95,_0x4318a7='',_0x5060bd={},_0x46b0ad={})=>{const _0x385c6b=a46_0x249ea2;logger['debug'](_0x385c6b(0x20d)+_0x4318a7+_0x385c6b(0x207)+_0x362e95);const _0x3d6658={'url':await _0x362e95[_0x385c6b(0x1db)](),'testhub_btcer_uuid':global[_0x385c6b(0x1b7)]?.[_0x385c6b(0x1f6)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x385c6b(0x1b3)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2009c0=_0x385c6b,_0x349007={};_0x349007[_0x2009c0(0x1fd)]=_0x4318a7;const _0x19dd80=_0x349007;_0x5060bd&&_0x5060bd['includePartOfPageScope']&&(_0x19dd80[_0x2009c0(0x1bd)]=_0x5060bd[_0x2009c0(0x1bd)]);Object[_0x2009c0(0x211)](_0x19dd80,_0x46b0ad);const _0x19473c=await exports[_0x2009c0(0x1fa)](_0x362e95,scripts['performScan'],_0x19dd80);return _0x19473c;},{'command':_0x4318a7,..._0x3d6658})();},exports[a46_0x249ea2(0x189)]=async _0x443e81=>{const _0x23e18f=a46_0x249ea2,_0x49164b={};_0x49164b[_0x23e18f(0x18c)]=_0x23e18f(0x190),_0x49164b[_0x23e18f(0x1d4)]=_0x23e18f(0x1d3);const _0x1bf08c=_0x49164b;if(global[_0x23e18f(0x1fe)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x443e81,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x443e81,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x23e18f(0x1a0)](_0x1bf08c[_0x23e18f(0x18c)]),{};}else return logger['warn'](_0x1bf08c[_0x23e18f(0x1d4)]),{};},exports[a46_0x249ea2(0x1b4)]=_0x1a87b0=>{const _0x935e5c=a46_0x249ea2,_0xaac6bc={'qDieX':_0x935e5c(0x1eb),'zrYOv':_0x935e5c(0x1fc),'MicdY':function(_0x3b993d,_0x475d85){return _0x3b993d!==_0x475d85;},'GzpMs':_0x935e5c(0x1af),'XLlQI':function(_0x416d4b){return _0x416d4b();},'xbYzB':_0x935e5c(0x187)};try{if(global[_0x935e5c(0x1ef)])return logger[_0x935e5c(0x1a0)](_0xaac6bc[_0x935e5c(0x18a)]),!![];const _0x134a8c=_0x1a87b0['browser'],_0x317745=_0x1a87b0[_0x935e5c(0x195)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x134a8c))return logger['warn'](_0xaac6bc[_0x935e5c(0x1b1)]),![];if(_0xaac6bc[_0x935e5c(0x1a2)](_0x317745,_0xaac6bc[_0x935e5c(0x1de)])){const _0x353a48=_0xaac6bc[_0x935e5c(0x1e9)](isBrowserstackInfra),_0x24b6fc=accessibilityHelper[_0x935e5c(0x20b)](_0x134a8c,_0x353a48),_0x45f690=accessibilityHelper[_0x935e5c(0x1e0)](_0x134a8c);if(!accessibilityHelper[_0x935e5c(0x194)](_0x317745,_0x24b6fc)){const _0x1400d2=_0x353a48?'':_0xaac6bc['xbYzB'];return logger[_0x935e5c(0x1a3)](_0x935e5c(0x1ad)+_0x45f690+'\x20browser\x20version\x20'+_0x24b6fc+_0x935e5c(0x208)+_0x1400d2+'.'),![];}}}catch(_0x3fdd40){logger[_0x935e5c(0x1a0)](_0x935e5c(0x1e5)+util[_0x935e5c(0x1ca)](_0x3fdd40));}return!![];},exports[a46_0x249ea2(0x1c1)]=(_0x52ca26,_0x511070,_0x496817)=>{const _0x105ada=a46_0x249ea2,_0x583bd1={'sjNII':_0x105ada(0x18f),'hmNrW':function(_0x470d2f){return _0x470d2f();},'Yefqe':_0x105ada(0x1c4),'gxYQY':_0x105ada(0x1fc),'fdLdx':function(_0x9d4317,_0x5757f4){return _0x9d4317!==_0x5757f4;},'ZkdJw':_0x105ada(0x1af),'JtKre':_0x105ada(0x187),'UXjlW':function(_0x3e3e10,_0x871da2){return _0x3e3e10(_0x871da2);},'kOntT':function(_0x3d514a,_0x33acc8){return _0x3d514a===_0x33acc8;},'jbIPO':'android','wIuGo':_0x105ada(0x1f5),'iHLxg':_0x105ada(0x20f),'KfvCX':_0x105ada(0x18e),'XjNzW':_0x105ada(0x1ea),'xljes':function(_0x584b32,_0x3f652d){return _0x584b32+_0x3f652d;}};try{if(_0x583bd1[_0x105ada(0x1bf)](isAccessibilityAutomationSession)){global[_0x105ada(0x1fe)]=!![];!_0x52ca26[_0x583bd1[_0x105ada(0x1e8)]]&&(global['accessibilityPlatform']=![]);const _0x34ee05=_0x52ca26[_0x105ada(0x1e1)]||_0x52ca26[_0x105ada(0x1a9)],_0x1a1892=_0x52ca26[_0x105ada(0x195)];!accessibilityHelper[_0x105ada(0x1ba)](_0x34ee05)&&(logger[_0x105ada(0x1a3)](_0x583bd1['gxYQY']),global['accessibilityPlatform']=![]);if(_0x583bd1['fdLdx'](_0x1a1892,_0x583bd1['ZkdJw'])){const _0x1b9316=_0x583bd1[_0x105ada(0x1bf)](isBrowserstackInfra),_0x1d4ff3=accessibilityHelper['getMinVersionForBrowser'](_0x34ee05,_0x1b9316),_0x3f0e42=accessibilityHelper[_0x105ada(0x1e0)](_0x34ee05);if(!accessibilityHelper['isVersionSupported'](_0x1a1892,_0x1d4ff3)){const _0x507f31=_0x1b9316?'':_0x583bd1['JtKre'];logger['warn'](_0x105ada(0x1ad)+_0x3f0e42+_0x105ada(0x1e4)+_0x1d4ff3+_0x105ada(0x208)+_0x507f31+'.'),global['accessibilityPlatform']=![];}}if(!_0x583bd1[_0x105ada(0x1d2)](isUndefined,_0x52ca26['deviceName'])){const _0x204cbd=(_0x52ca26['os']||'')[_0x105ada(0x1b0)](),_0x157c2b=(_0x52ca26[_0x105ada(0x1e1)]||_0x52ca26[_0x105ada(0x1a9)]||'')[_0x105ada(0x1b0)](),_0x32b76c=_0x583bd1[_0x105ada(0x188)](_0x204cbd,_0x583bd1['jbIPO'])&&[_0x583bd1[_0x105ada(0x1e6)],_0x583bd1['iHLxg'],_0x583bd1[_0x105ada(0x210)]][_0x105ada(0x1d0)](_0x157c2b);if(!_0x32b76c)logger['warn'](_0x583bd1[_0x105ada(0x20e)]),global[_0x105ada(0x1fe)]=![];else!accessibilityHelper[_0x105ada(0x206)]()&&(logger[_0x105ada(0x1a3)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0x105ada(0x1fe)]=![]);}if(!global[_0x105ada(0x1fe)]){_0x52ca26[_0x583bd1[_0x105ada(0x1e8)]]=![],Object[_0x105ada(0x1fb)](_0x52ca26)['forEach'](_0x54f6a6=>{const _0x3f89b3=_0x105ada;_0x54f6a6[_0x3f89b3(0x205)](_0x583bd1[_0x3f89b3(0x203)])&&delete _0x52ca26[_0x54f6a6];});const _0x5b91ac=_0x583bd1[_0x105ada(0x1bc)](_0x511070,_0x583bd1[_0x105ada(0x1d2)](encodeURIComponent,JSON[_0x105ada(0x1a8)](_0x52ca26)));_0x496817&&(_0x496817['currentTest'][_0x105ada(0x19d)]['project'][_0x105ada(0x19f)][_0x105ada(0x1a1)]['wsEndpoint']=_0x5b91ac,_0x496817[_0x105ada(0x1d8)][_0x105ada(0x1ae)][_0x105ada(0x19f)][_0x105ada(0x1a1)][_0x105ada(0x1bb)]=_0x5b91ac);}}else global['accessibilityPlatform']=![];}catch(_0x929c73){logger[_0x105ada(0x1a0)](_0x105ada(0x200)+util['format'](_0x929c73));}};function a46_0x2ad1(){const _0x177b0d=['constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','project','latest','toLowerCase','zrYOv','gMCay','measureWrapper','platformValidation','DFixI','needsReview','__workerDetails','includeIssueType','evaluate','isBrowserSupportedForAccessibility','wsEndpoint','xljes','includePartOfPageScope','accessibilityOptions.includeIssueType.needsReview','hmNrW','performScan','processAccessibilityCaps','39496QvqYme','Playwright','browserstack.accessibility','request','../../helpers/helper','12926421RpxVXY','env','WWFWq','format','yhunj','getAccessibilityResults','replace','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','BS_A11Y_JWT','includes','10940710NaseWu','UXjlW','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','qdhwA','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','message','11PDocEO','workerInfo','5745BDtMLG','wcagVersion','url','JylzO','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','GzpMs','AZJhc','getBrowserDisplayName','browserName','LCeRt','WebDriver','\x20browser\x20version\x20','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','wIuGo','1095141izuVYh','Yefqe','XLlQI','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','rwnnW','accessibilityOptions','isMobilePlatform','browserStackExecuteDriver','../../helpers/accessibility-automation/helper','anvkU','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','5716xLCECa','chrome','currentTest','accessibilityOptions.scannerVersion','scannerVersion','YFnLa','browserStackEvaluate','keys','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','command','accessibilityPlatform','259825KSAsiv','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/performance/performance-tester','executeScript','sjNII','DbpWl','startsWith','isMobileScanningEnabledForGroup','\x20page:\x20','\x20or\x20higher\x20','../../helpers/logger','find','getMinVersionForBrowser','parse','Performing\x20scan\x20with\x20method:\x20','XjNzW','playwright-chromium','KfvCX','assign','on\x20non-BrowserStack\x20infrastructure\x20','kOntT','getAccessibilityResultsSummary','qDieX','6445242YYXgQw','zXrwa','toISOString','chromium','browserstack.accessibilityOptions','No\x20summaryResults\x20found.','setAccessibilityCapabilities','bestPractice','util','isVersionSupported','browser_version','string','bstackSdkArgs','accessibilityOptions.wcagVersion','../../helpers/accessibility-automation/scripts','OKUzC','body','][\x20SDK-AUTOMATION\x20]\x20','testInfo','2065ovLuzo','use','debug','connectOptions','MicdY','warn','No\x20accessibility\x20results\x20were\x20found.','6RnOAQF','kpbwt','XfFVZ','stringify','browser','coWcA','name'];a46_0x2ad1=function(){return _0x177b0d;};return a46_0x2ad1();}
1
+ const a46_0x4172d9=a46_0x3846;(function(_0x44d76a,_0x1b60ab){const _0x468bd3=a46_0x3846,_0x36f074=_0x44d76a();while(!![]){try{const _0x3752b7=parseInt(_0x468bd3(0x1f6))/0x1*(-parseInt(_0x468bd3(0x205))/0x2)+-parseInt(_0x468bd3(0x21b))/0x3*(parseInt(_0x468bd3(0x215))/0x4)+-parseInt(_0x468bd3(0x217))/0x5+parseInt(_0x468bd3(0x1f7))/0x6*(-parseInt(_0x468bd3(0x22d))/0x7)+-parseInt(_0x468bd3(0x1d7))/0x8+-parseInt(_0x468bd3(0x211))/0x9*(-parseInt(_0x468bd3(0x219))/0xa)+parseInt(_0x468bd3(0x23d))/0xb;if(_0x3752b7===_0x1b60ab)break;else _0x36f074['push'](_0x36f074['shift']());}catch(_0x7aaa31){_0x36f074['push'](_0x36f074['shift']());}}}(a46_0x3277,0x2ef1a));function a46_0x3846(_0x3d7a84,_0x557930){const _0x327753=a46_0x3277();return a46_0x3846=function(_0x38464a,_0x384819){_0x38464a=_0x38464a-0x1bf;let _0x14d6c0=_0x327753[_0x38464a];return _0x14d6c0;},a46_0x3846(_0x3d7a84,_0x557930);}function a46_0x3277(){const _0x49a994=['Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','jWBQD','../../helpers/logger','stringify','currentTest','YHpWo','No\x20accessibility\x20results\x20were\x20found.','hDirD','vllAn','No\x20summaryResults\x20found.','AMQRo','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','deviceName','browser_version','android','bEWbg','util','latest','wzkII','YOyxe','getMinVersionForBrowser','error','includes','ZjCnn','../utils/constants','browserName','includePartOfPageScope','silly','warn','907480UaJWcl','project','env','toLowerCase','find','scannerVersion','mTDQz','wsEndpoint','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/accessibility-automation/scripts','isBrowserSupportedForAccessibility','forEach','playwright-chromium','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','browser','accessibilityOptions.wcagVersion','../../helpers/helper','command','accessibilityOptions.scannerProcessingTimeout','performScan','FjBPW','../../helpers/performance/constants','hwwlA','QTJMc','getBrowserDisplayName','parse','YdKZL','AbAoq','CzMvN','EMJuQ','../../helpers/accessibility-automation/helper','2504dUCNSe','6jqevIx','debug','ixRRA','WmPKZ','replace','parameters','PERFORM_SCAN','toISOString','use','bestPractice','KjKxl','browserstack.accessibility','scannerProcessingTimeout','constructor','18yHMkgu','winstonLogger','chrome','UrChw','workerInfo','measureWrapper','BqQtR','format','executeScript','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','getAccessibilityResults','browserStackEvaluate','43461MVCMoV','evaluate','getAccessibilityResultsSummary','wyScy','27288bgxnbF','../../helpers/performance/performance-tester','183405oErxYq','gbHwa','400njOzeJ','\x20or\x20higher\x20','147zZeBBV','zdipC','setAccessibilityCapabilities','accessibilityOptions.includeIssueType.bestPractice','connectOptions','bUffE','browserstack.accessibilityOptions','startsWith','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','ikKZb','message','accessibilityOptions','jKjrt','bstackSdkArgs','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','ESori','accessibilityOptions.scannerVersion','cXVvs','2314753kTybfs','assign','body','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','isVersionSupported','isMobileScanningEnabledForGroup','chromium','ibBeJ','CwRBI','name','eppuX','includeIssueType','Playwright','platformValidation','wcagVersion','on\x20non-BrowserStack\x20infrastructure\x20','9204041NHCfEh','bbufP'];a46_0x3277=function(){return _0x49a994;};return a46_0x3277();}const util=require(a46_0x4172d9(0x1ca)),logger=require(a46_0x4172d9(0x241))[a46_0x4172d9(0x206)],{automationLogger}=require(a46_0x4172d9(0x241)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a46_0x4172d9(0x1e7)),scripts=require(a46_0x4172d9(0x1e0)),PerformanceTester=require(a46_0x4172d9(0x216)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a46_0x4172d9(0x1ec)),accessibilityHelper=require(a46_0x4172d9(0x1f5)),{AUTOMATION_LOG_COMMANDS}=require(a46_0x4172d9(0x1d2));exports['browserStackEvaluate']=async(_0x1ac362,_0x57167b,_0x3642cd={})=>{const _0x3d202a=a46_0x4172d9,_0x6c2150={};_0x6c2150['WmPKZ']=_0x3d202a(0x228),_0x6c2150[_0x3d202a(0x1f2)]=function(_0x4679b4,_0x3cd4ed){return _0x4679b4===_0x3cd4ed;},_0x6c2150[_0x3d202a(0x1f9)]='string';const _0x52cd15=_0x6c2150,_0x2bd7ea=await _0x1ac362[_0x3d202a(0x212)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x57167b[_0x3d202a(0x1fb)](/arguments/g,_0x52cd15[_0x3d202a(0x1fa)])+_0x3d202a(0x20e)+JSON[_0x3d202a(0x242)](_0x3642cd)+')');try{if(_0x57167b&&_0x52cd15['AbAoq'](typeof _0x57167b,_0x52cd15[_0x3d202a(0x1f9)])){const _0x1a7f15=AUTOMATION_LOG_COMMANDS[_0x3d202a(0x1db)](_0x62de1f=>_0x57167b[_0x3d202a(0x1d0)](_0x62de1f));if(_0x1a7f15){const _0x13d17c={};_0x13d17c['command']=_0x1a7f15,_0x13d17c[_0x3d202a(0x1fc)]=[_0x3642cd];const _0x456f3f={};_0x456f3f[_0x3d202a(0x22f)]=_0x2bd7ea;const _0x502478={};_0x502478['request']=_0x13d17c,_0x502478['response']=_0x456f3f,automationLogger[_0x3d202a(0x1d5)]('['+new Date()[_0x3d202a(0x1fe)]()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x3d202a(0x242)](_0x502478));}}}catch(_0x2e471c){logger[_0x3d202a(0x1f8)](_0x3d202a(0x229)+_0x2e471c[_0x3d202a(0x225)]);}return _0x2bd7ea;},exports['browserStackExecuteDriver']=async(_0x7c5fa7,_0xc5b120,_0x186949={})=>{const _0x26a1c8=a46_0x4172d9,_0x4378a4={};_0x4378a4[_0x26a1c8(0x227)]=function(_0x3eacdb,_0x18a616){return _0x3eacdb===_0x18a616;},_0x4378a4['zdipC']='WebDriver',_0x4378a4[_0x26a1c8(0x235)]=function(_0x55c234,_0x28eef4){return _0x55c234===_0x28eef4;},_0x4378a4['bqGEl']=_0x26a1c8(0x239),_0x4378a4[_0x26a1c8(0x1f1)]=_0x26a1c8(0x228);const _0x376efb=_0x4378a4;if(_0x376efb[_0x26a1c8(0x227)](_0x7c5fa7['constructor'][_0x26a1c8(0x236)],_0x376efb[_0x26a1c8(0x21c)]))return await _0x7c5fa7['executeAsyncScript'](_0xc5b120,_0x186949);else{if(_0x376efb[_0x26a1c8(0x235)](_0x7c5fa7[_0x26a1c8(0x204)]['name'],_0x376efb['bqGEl']))return await _0x7c5fa7[_0x26a1c8(0x20d)](_0x26a1c8(0x223)+_0xc5b120[_0x26a1c8(0x1fb)](/arguments/g,_0x376efb[_0x26a1c8(0x1f1)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON['stringify'](_0x186949)+')');}},exports[a46_0x4172d9(0x21d)]=async _0x12d3bf=>{const _0x1b859a=a46_0x4172d9,_0x4b1d87={};_0x4b1d87[_0x1b859a(0x1d1)]=_0x1b859a(0x1e6),_0x4b1d87[_0x1b859a(0x214)]=_0x1b859a(0x1e9),_0x4b1d87[_0x1b859a(0x1eb)]=_0x1b859a(0x21e),_0x4b1d87[_0x1b859a(0x1cc)]='accessibilityOptions.includeIssueType.needsReview',_0x4b1d87[_0x1b859a(0x1f3)]='accessibilityOptions.authToken',_0x4b1d87['mTDQz']=_0x1b859a(0x22b);const _0xf242c3=_0x4b1d87;_0x12d3bf[_0x1b859a(0x226)]&&(_0x12d3bf[_0x1b859a(0x226)][_0x1b859a(0x23b)]&&(_0x12d3bf[_0xf242c3['ZjCnn']]=_0x12d3bf[_0x1b859a(0x226)][_0x1b859a(0x23b)]),_0x12d3bf['accessibilityOptions'][_0x1b859a(0x203)]&&(_0x12d3bf[_0xf242c3[_0x1b859a(0x214)]]=_0x12d3bf[_0x1b859a(0x226)]['scannerProcessingTimeout']),_0x12d3bf[_0x1b859a(0x226)][_0x1b859a(0x238)]&&(_0x12d3bf[_0xf242c3[_0x1b859a(0x1eb)]]=_0x12d3bf['accessibilityOptions'][_0x1b859a(0x238)][_0x1b859a(0x200)],_0x12d3bf[_0xf242c3[_0x1b859a(0x1cc)]]=_0x12d3bf[_0x1b859a(0x226)][_0x1b859a(0x238)]['needsReview']));const _0x254108=JSON[_0x1b859a(0x1f0)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x1b859a(0x1dc)];_0x12d3bf[_0xf242c3[_0x1b859a(0x1f3)]]=process[_0x1b859a(0x1d9)]['BS_A11Y_JWT'],_0x12d3bf[_0xf242c3[_0x1b859a(0x1dd)]]=_0x254108,delete _0x12d3bf[_0x1b859a(0x226)];},exports[a46_0x4172d9(0x20f)]=async _0x501f36=>{const _0x18837f=a46_0x4172d9,_0x555cb5={};_0x555cb5['YOtIk']=_0x18837f(0x1bf),_0x555cb5['gbHwa']=_0x18837f(0x1df);const _0x17e035=_0x555cb5;if(global[_0x18837f(0x1c4)])try{const details={'url':await _0x501f36.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x501f36,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x501f36,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x18837f(0x1cf)](_0x17e035['YOtIk']),[];}else return logger[_0x18837f(0x1d6)](_0x17e035[_0x18837f(0x218)]),[];},exports[a46_0x4172d9(0x1ea)]=async(_0x3bacae,_0x42a395='',_0x4bb02c={},_0x465597={})=>{const _0x209c31=a46_0x4172d9;logger[_0x209c31(0x1f8)]('Performing\x20scan\x20with\x20method:\x20'+_0x42a395+'\x20page:\x20'+_0x3bacae);const _0x59ff68={'url':await _0x3bacae['url'](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x209c31(0x243)]?.['id']};if(global[_0x209c31(0x1c4)])return await PerformanceTester[_0x209c31(0x20a)](PerformanceA11yEvents[_0x209c31(0x1fd)],async()=>{const _0x2c3a59=_0x209c31,_0x1c79be={};_0x1c79be[_0x2c3a59(0x1e8)]=_0x42a395;const _0x484ea2=_0x1c79be;_0x4bb02c&&_0x4bb02c[_0x2c3a59(0x1d4)]&&(_0x484ea2[_0x2c3a59(0x1d4)]=_0x4bb02c[_0x2c3a59(0x1d4)]);Object[_0x2c3a59(0x22e)](_0x484ea2,_0x465597);const _0x435e61=await exports[_0x2c3a59(0x210)](_0x3bacae,scripts['performScan'],_0x484ea2);return _0x435e61;},{'command':_0x42a395,..._0x59ff68})();},exports[a46_0x4172d9(0x213)]=async _0x11ecc5=>{const _0x23f316=a46_0x4172d9,_0x58b636={};_0x58b636[_0x23f316(0x240)]=_0x23f316(0x1c2),_0x58b636[_0x23f316(0x22a)]=_0x23f316(0x23f);const _0x42c79e=_0x58b636;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x11ecc5,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x11ecc5,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x23f316(0x1f8)](_0x42c79e[_0x23f316(0x240)]),{};}else return logger[_0x23f316(0x1d6)](_0x42c79e['ESori']),{};},exports[a46_0x4172d9(0x23a)]=_0x272d7b=>{const _0x2e525c=a46_0x4172d9,_0x416df9={'UrChw':_0x2e525c(0x230),'bEWbg':_0x2e525c(0x1e4),'YOyxe':function(_0x1fc840,_0x3b2404){return _0x1fc840!==_0x3b2404;},'AMQRo':_0x2e525c(0x1cb),'vbPxq':function(_0x11fa9b){return _0x11fa9b();},'bbufP':_0x2e525c(0x23c)};try{if(global['isMobilePlatform'])return logger[_0x2e525c(0x1f8)](_0x416df9[_0x2e525c(0x208)]),!![];const _0x2d6e50=_0x272d7b[_0x2e525c(0x1e5)],_0x3eba91=_0x272d7b['browser_version'];if(!accessibilityHelper[_0x2e525c(0x1e1)](_0x2d6e50))return logger[_0x2e525c(0x1d6)](_0x416df9[_0x2e525c(0x1c9)]),![];if(_0x416df9[_0x2e525c(0x1cd)](_0x3eba91,_0x416df9[_0x2e525c(0x1c3)])){const _0x47a85e=_0x416df9['vbPxq'](isBrowserstackInfra),_0x23b3b6=accessibilityHelper['getMinVersionForBrowser'](_0x2d6e50,_0x47a85e),_0x51fb75=accessibilityHelper[_0x2e525c(0x1ef)](_0x2d6e50);if(!accessibilityHelper[_0x2e525c(0x231)](_0x3eba91,_0x23b3b6)){const _0x890a66=_0x47a85e?'':_0x416df9[_0x2e525c(0x23e)];return logger[_0x2e525c(0x1d6)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x51fb75+'\x20browser\x20version\x20'+_0x23b3b6+_0x2e525c(0x21a)+_0x890a66+'.'),![];}}}catch(_0x3fc2ab){logger[_0x2e525c(0x1f8)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x2e525c(0x20c)](_0x3fc2ab));}return!![];},exports['processAccessibilityCaps']=(_0x36755f,_0x258e27,_0x39105e)=>{const _0x5ac371=a46_0x4172d9,_0x46a7e7={'HbkUb':_0x5ac371(0x221),'KjKxl':function(_0x1309a0){return _0x1309a0();},'eppuX':_0x5ac371(0x202),'vllAn':_0x5ac371(0x1e4),'BqQtR':function(_0x24a6f9,_0x18c00e){return _0x24a6f9!==_0x18c00e;},'YHpWo':_0x5ac371(0x1cb),'AjKZF':'on\x20non-BrowserStack\x20infrastructure\x20','EMJuQ':function(_0x305f71,_0x2717b2){return _0x305f71(_0x2717b2);},'ibBeJ':function(_0x40f19f,_0x145683){return _0x40f19f===_0x145683;},'bUffE':_0x5ac371(0x1c8),'cXVvs':_0x5ac371(0x207),'hwwlA':_0x5ac371(0x1e3),'ikKZb':_0x5ac371(0x233),'hDirD':_0x5ac371(0x1c5),'QTJMc':function(_0x18ac2e,_0x495903){return _0x18ac2e+_0x495903;}};try{if(_0x46a7e7[_0x5ac371(0x201)](isAccessibilityAutomationSession)){global[_0x5ac371(0x1c4)]=!![];!_0x36755f[_0x46a7e7['eppuX']]&&(global[_0x5ac371(0x1c4)]=![]);const _0x301f68=_0x36755f[_0x5ac371(0x1d3)]||_0x36755f[_0x5ac371(0x1e5)],_0xc7dbb=_0x36755f[_0x5ac371(0x1c7)];!accessibilityHelper[_0x5ac371(0x1e1)](_0x301f68)&&(logger[_0x5ac371(0x1d6)](_0x46a7e7[_0x5ac371(0x1c1)]),global[_0x5ac371(0x1c4)]=![]);if(_0x46a7e7[_0x5ac371(0x20b)](_0xc7dbb,_0x46a7e7[_0x5ac371(0x244)])){const _0x55a1b4=_0x46a7e7[_0x5ac371(0x201)](isBrowserstackInfra),_0x1c7eaf=accessibilityHelper[_0x5ac371(0x1ce)](_0x301f68,_0x55a1b4),_0x4ecc54=accessibilityHelper[_0x5ac371(0x1ef)](_0x301f68);if(!accessibilityHelper[_0x5ac371(0x231)](_0xc7dbb,_0x1c7eaf)){const _0x3685a0=_0x55a1b4?'':_0x46a7e7['AjKZF'];logger[_0x5ac371(0x1d6)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x4ecc54+'\x20browser\x20version\x20'+_0x1c7eaf+_0x5ac371(0x21a)+_0x3685a0+'.'),global[_0x5ac371(0x1c4)]=![];}}if(!_0x46a7e7['EMJuQ'](isUndefined,_0x36755f[_0x5ac371(0x1c6)])){const _0x238e11=(_0x36755f['os']||'')['toLowerCase'](),_0x31976c=(_0x36755f[_0x5ac371(0x1d3)]||_0x36755f['browser']||'')[_0x5ac371(0x1da)](),_0x1d5cf0=_0x46a7e7[_0x5ac371(0x234)](_0x238e11,_0x46a7e7[_0x5ac371(0x220)])&&[_0x46a7e7[_0x5ac371(0x22c)],_0x46a7e7[_0x5ac371(0x1ed)],_0x46a7e7[_0x5ac371(0x224)]][_0x5ac371(0x1d0)](_0x31976c);if(!_0x1d5cf0)logger[_0x5ac371(0x1d6)](_0x46a7e7[_0x5ac371(0x1c0)]),global[_0x5ac371(0x1c4)]=![];else!accessibilityHelper[_0x5ac371(0x232)]()&&(logger[_0x5ac371(0x1d6)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0x5ac371(0x1c4)]=![]);}if(!global[_0x5ac371(0x1c4)]){_0x36755f[_0x46a7e7[_0x5ac371(0x237)]]=![],Object['keys'](_0x36755f)[_0x5ac371(0x1e2)](_0x2d9a7d=>{const _0x313680=_0x5ac371;_0x2d9a7d[_0x313680(0x222)](_0x46a7e7['HbkUb'])&&delete _0x36755f[_0x2d9a7d];});const _0x747cab=_0x46a7e7[_0x5ac371(0x1ee)](_0x258e27,_0x46a7e7[_0x5ac371(0x1f4)](encodeURIComponent,JSON[_0x5ac371(0x242)](_0x36755f)));_0x39105e&&(_0x39105e[_0x5ac371(0x243)]['testInfo'][_0x5ac371(0x1d8)][_0x5ac371(0x1ff)][_0x5ac371(0x21f)][_0x5ac371(0x1de)]=_0x747cab,_0x39105e[_0x5ac371(0x209)][_0x5ac371(0x1d8)][_0x5ac371(0x1ff)][_0x5ac371(0x21f)][_0x5ac371(0x1de)]=_0x747cab);}}else global[_0x5ac371(0x1c4)]=![];}catch(_0x2ec906){logger[_0x5ac371(0x1f8)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x5ac371(0x20c)](_0x2ec906));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a47_0x53e65f=a47_0x270f;function a47_0x5382(){const _0x248758=['--config','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','mFeqA','../v2/browserstackCLI','isYarnPnP','../../helpers/test-observability/utils','indexOf','join','initialize','../../helpers/test-orchestration/testOrchestrationHandler','Reordered\x20Test\x20Files:\x20','jjmdn','../../helpers/testhub/testhubHandler','FLjFA','JWrgL','iEZqF','ETxWU','Playwright\x20process\x20exited\x20with\x20code\x20','requirePWModule','skipSessionStatus','cwd','ajpqx','isTypescriptProject','VqJqB','readdirSync','3664970JuZXUB','findPlaywrightTestFiles','.browserstack','assign','2578376AsyHqc','KBFId','accessibilityOptions','BROWSERSTACK_TEST_ACCESSIBILITY_YML','relative','unlinkSync','Error\x20in\x20deleting\x20playwright\x20results','HfkJB','slice','../../helpers/test-observability/constants','dirname','16aJNRWZ','constants','isFalse','concat','YcERD','IhPWu','requireConfigLoaderYarnPnP','nWLCo','shutdown','../../helpers/accessibility-automation/helper','testContextOptions','QmBju','INTERNALLY_USED_ENV_VARS','Error\x20in\x20getting\x20funnel\x20data\x20results','homedir','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','../utils/constants','accessSync','PLAYWRIGHT','findIndex','KSHqi','filterBrowserstackArgs','resolve','push','splice','IrOvf','BROWSERSTACK_TEST_OBSERVABILITY','Proxy\x20url\x20:\x20','exports','yVpuZ','split','NBPMB','serializeToYamlString','parse','AOOvG','pw_result.json','playwright','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','62ASnHoY','isRunning','zsWxl','GbGMU','end','yarn','mfkxI','../../helpers/utilities','win32','Mekeo','2595069ebTJSj','util','2765nOdprx','kAVsM','pcgTi','W_OK','--config=','exitCode','cliConfig','PiuWr','WZSKs','YyhyH','writeFileSync','OcTYq','reportConflictingEnvVarIssue','getConfig','BROWSERSTACK_FRAMEWORK','WOVcm','alIOP','../v2/TestInfo','gdxUt','path','existsSync','close','platform','SDK_CLEANUP','../../helpers/BrowserStackSetup','resolvedConfigFile','./reporter/pwUtils','accessibility','ashkH','WrkFG','SxyYB','true','474JXojRM','reorderTestFiles','bootstrap','get','measureWrapper','BWZuO','stringify','BROWSERSTACK_PW_CONFIG_DIR','--disable-test-observability','trace_','config','vUHGg','blPvh','jHUqT','BROWSERSTACK_AUTOMATION','../../helpers/performance/constants','aBTWs','R_OK','false','debug','Deleting\x20','getInstance','EVENTS','Found:\x20','joMWz','testObservability','reportDotBrowserStackFolderNotAccessibleIssue','BROWSERSTACK_RERUN_TESTS','env','RrSlL','IHDoJ','USER_CONFIG_DETAILS_PATH','isCLIEnabled','iaSbx','QNmLN','inherit','error','playwright-browserstack-sdk.config.js','isTrue','1311EtMPHD','627513SqEmtl','./reporter/test-details','isUndefined','BrowserStack\x20config\x20file\x20not\x20found.','qWnha','startsWith','setupBrowserstackLocal','browserstackAutomation','child_process','WARWT','npx','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','./accessibility-helper','forEach','ZMoDK','map','getConfigPath','nestedKeyValue','../../helpers/helper','filter','AYNVx','skipSessionName','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/performance/performance-tester','errorMessage','No\x20Proxy\x20:\x20','Error\x20in\x20closing\x20playwright','YyGKn','test','MNprm','kYkpk','length','sOUZw','2192900zuvOGW','../../helpers/logger'];a47_0x5382=function(){return _0x248758;};return a47_0x5382();}(function(_0x3011e0,_0x32a712){const _0x48a431=a47_0x270f,_0x2b0362=_0x3011e0();while(!![]){try{const _0x2f8229=parseInt(_0x48a431(0x1ff))/0x1+-parseInt(_0x48a431(0x1ab))/0x2*(parseInt(_0x48a431(0x1fe))/0x3)+-parseInt(_0x48a431(0x23f))/0x4+-parseInt(_0x48a431(0x220))/0x5+-parseInt(_0x48a431(0x1d7))/0x6*(parseInt(_0x48a431(0x1b7))/0x7)+-parseInt(_0x48a431(0x24a))/0x8*(-parseInt(_0x48a431(0x1b5))/0x9)+parseInt(_0x48a431(0x23b))/0xa;if(_0x2f8229===_0x32a712)break;else _0x2b0362['push'](_0x2b0362['shift']());}catch(_0xcd0c0a){_0x2b0362['push'](_0x2b0362['shift']());}}}(a47_0x5382,0x6c18e));const fs=require('fs'),path=require(a47_0x53e65f(0x1ca)),{spawn}=require(a47_0x53e65f(0x207)),{format}=require(a47_0x53e65f(0x1b6)),logger=require(a47_0x53e65f(0x221))['winstonLogger'],{default:BrowserStackSetup}=require(a47_0x53e65f(0x1cf)),helper=require(a47_0x53e65f(0x211)),utilities=require(a47_0x53e65f(0x1b2)),constants=require(a47_0x53e65f(0x25a)),{FRAMEWORKS}=require(a47_0x53e65f(0x248)),{getConfigLoaderPath}=require(a47_0x53e65f(0x1d1)),{checkAccessibilityPlatformConfig}=require(a47_0x53e65f(0x253)),{setAccessibilityCapabilities}=require(a47_0x53e65f(0x20b)),{printBuildLink}=require(a47_0x53e65f(0x227)),TestDetails=require(a47_0x53e65f(0x200)),TestHubHandler=require(a47_0x53e65f(0x22e)),PerformanceTester=require(a47_0x53e65f(0x216)),TestOrchestrationHandler=require(a47_0x53e65f(0x22b)),BrowserstackCLI=require(a47_0x53e65f(0x225)),PerformanceEvents=require(a47_0x53e65f(0x1e6))[a47_0x53e65f(0x1ed)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a47_0x53e65f(0x1c8)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x309d2d,_0x4a17c1)=>{const _0x3feacc=a47_0x53e65f,_0x221cb5={'NRHFI':function(_0x50b3d6){return _0x50b3d6();},'IrOvf':function(_0x4cd06c){return _0x4cd06c();},'qWnha':function(_0x21412a,_0x2929dd){return _0x21412a(_0x2929dd);},'Mekeo':_0x3feacc(0x1d0),'MwOpQ':'--config='},_0x1727b2=!helper[_0x3feacc(0x201)](_0x309d2d[_0x3feacc(0x1e1)]),_0x51433a=_0x1727b2?path[_0x3feacc(0x19b)](process[_0x3feacc(0x236)](),_0x309d2d['config']):process[_0x3feacc(0x236)](),{resolveConfigFile:_0x4f51fd,resolveConfigLocation:_0xa680a5}=helper[_0x3feacc(0x226)]()?helper[_0x3feacc(0x250)](..._0x221cb5['NRHFI'](getConfigLoaderPath)):helper[_0x3feacc(0x234)]['apply'](null,_0x221cb5[_0x3feacc(0x19e)](getConfigLoaderPath)),_0x58f705=_0x4f51fd?_0x221cb5[_0x3feacc(0x203)](_0x4f51fd,_0x51433a):helper[_0x3feacc(0x210)](_0x221cb5[_0x3feacc(0x203)](_0xa680a5,_0x51433a),[_0x221cb5[_0x3feacc(0x1b4)]]),_0x5768bd={};if(_0x1727b2){const _0x3191ab=_0x4a17c1[_0x3feacc(0x198)](_0x406ac5=>_0x406ac5==='--config'||_0x406ac5==='-c'||_0x406ac5['startsWith'](_0x3feacc(0x1bb)));_0x4a17c1[_0x3feacc(0x19d)](_0x3191ab,_0x4a17c1[_0x3191ab][_0x3feacc(0x204)](_0x221cb5['MwOpQ'])?0x1:0x2);}const _0x391868={};return _0x391868['path']=_0x58f705,_0x391868['config']=_0x5768bd,_0x391868;},handleO11yRerun=_0x357578=>{const _0x4eab85=a47_0x53e65f,_0x1bc2f7={};_0x1bc2f7[_0x4eab85(0x1b8)]='--grep';const _0x4323c4=_0x1bc2f7,_0x17ec5c=helper[_0x4eab85(0x1fd)](process[_0x4eab85(0x1f3)]['BROWSERSTACK_RERUN']);if(_0x17ec5c){const _0x4a616a=process[_0x4eab85(0x1f3)][_0x4eab85(0x1f2)],_0x33d84e=[];if(helper['validateRerunTestList'](_0x4a616a)&&!helper[_0x4eab85(0x201)](_0x4a616a)){_0x4a616a[_0x4eab85(0x1a3)](',')[_0x4eab85(0x20e)](_0x548f9d=>{_0x33d84e['push']('('+_0x548f9d['trim']()+')');});const _0x385085='^'+_0x33d84e[_0x4eab85(0x229)]('|')+'$';_0x357578[_0x4eab85(0x19c)](_0x4323c4[_0x4eab85(0x1b8)],_0x385085);}}},spawnOriginalProcess=_0x459737=>{const _0x328c1d=a47_0x53e65f,_0x3c37d3={'yLhTw':function(_0x292d17,_0x3bbdb5,_0x18a8cb,_0x47b87f){return _0x292d17(_0x3bbdb5,_0x18a8cb,_0x47b87f);},'VqJqB':_0x328c1d(0x1b0),'lInUM':'npx','AOOvG':_0x328c1d(0x1a9),'KBFId':function(_0x255953,_0x341a9b){return _0x255953===_0x341a9b;},'MNprm':'win32','IhPWu':_0x328c1d(0x1fa)};_0x3c37d3['yLhTw'](spawn,helper[_0x328c1d(0x226)]()?_0x3c37d3[_0x328c1d(0x239)]:_0x3c37d3['lInUM'],[_0x3c37d3[_0x328c1d(0x1a7)],..._0x459737[_0x328c1d(0x247)](0x1)],{'shell':_0x3c37d3[_0x328c1d(0x240)](process[_0x328c1d(0x1cd)],_0x3c37d3[_0x328c1d(0x21c)]),'stdio':_0x3c37d3[_0x328c1d(0x24f)],'cwd':process[_0x328c1d(0x236)]()});},isTestCommand=(_0x15ad70,_0x1296c3)=>{const _0x25f9ec=a47_0x53e65f,_0x19af54={};_0x19af54['alIOP']=function(_0x4de6af,_0x198c74){return _0x4de6af>_0x198c74;},_0x19af54[_0x25f9ec(0x208)]=function(_0x4b3123,_0x4ba8ed){return _0x4b3123===_0x4ba8ed;},_0x19af54[_0x25f9ec(0x1ae)]=_0x25f9ec(0x21b);const _0x412c54=_0x19af54;if(_0x412c54[_0x25f9ec(0x1c7)](_0x1296c3[_0x25f9ec(0x21e)],0x1)&&_0x412c54[_0x25f9ec(0x208)](_0x1296c3[0x1],_0x412c54[_0x25f9ec(0x1ae)]))return!![];return![];};async function run(_0x20060d,_0x96871a,_0x2cd2dc){const _0x439210=a47_0x53e65f,_0x1b9164={'blPvh':_0x439210(0x23d),'QNmLN':_0x439210(0x1a8),'WZSKs':function(_0x64f0f,_0x1f88c0){return _0x64f0f+_0x1f88c0;},'FLjFA':_0x439210(0x257),'iEZqF':function(_0x5951e8,_0x1ae0a9){return _0x5951e8(_0x1ae0a9);},'nWLCo':function(_0xeb3831){return _0xeb3831();},'HfkJB':function(_0x10dbe2){return _0x10dbe2();},'mfkxI':function(_0xa285eb,_0x397b0a){return _0xa285eb+_0x397b0a;},'WrkFG':_0x439210(0x219),'JfbVE':_0x439210(0x202),'KSHqi':function(_0x269d08,_0x304562){return _0x269d08<_0x304562;},'vUHGg':function(_0x4d7e9b,_0x66e34a){return _0x4d7e9b===_0x66e34a;},'aBTWs':_0x439210(0x1e9),'BWZuO':_0x439210(0x1df),'ajpqx':function(_0x28f1a7,_0x2d804d){return _0x28f1a7>=_0x2d804d;},'gdxUt':function(_0x36b84b,_0x2e364d){return _0x36b84b===_0x2e364d;},'OcTYq':'automation','joMWz':function(_0x22b22d,_0x37811a){return _0x22b22d!=_0x37811a;},'iaSbx':function(_0xbd4574,_0x5347e4,_0x40de56){return _0xbd4574(_0x5347e4,_0x40de56);},'mFeqA':function(_0x3356d1,_0x3df790){return _0x3356d1(_0x3df790);},'ETxWU':function(_0x52d943,_0x181e80){return _0x52d943===_0x181e80;},'IHDoJ':_0x439210(0x1d6),'YFLDq':function(_0x4cb4e0,_0x3aab19){return _0x4cb4e0(_0x3aab19);},'sOUZw':'browserstackSetupConfig.json','YyGKn':'playwright-browserstack-sdk.config.cjs','ZMoDK':_0x439210(0x1fc),'uucTE':function(_0xae49e9,_0x137c1a){return _0xae49e9-_0x137c1a;},'NlTQq':'Updated\x20config\x20file\x20name\x20to\x20-\x20','JWrgL':function(_0x2e0a75,_0xbfd85c){return _0x2e0a75>_0xbfd85c;},'SxqOo':_0x439210(0x223),'bSapX':function(_0x5b3b13,_0x1bf66a){return _0x5b3b13<_0x1bf66a;},'kYkpk':_0x439210(0x1a9),'PiuWr':function(_0x5636c7,_0x563a9d,_0x38593b,_0xdd2a47){return _0x5636c7(_0x563a9d,_0x38593b,_0xdd2a47);},'ashkH':'yarn','NBPMB':_0x439210(0x209),'QmBju':_0x439210(0x21b),'AYNVx':_0x439210(0x222),'yVpuZ':_0x439210(0x1b3),'jjmdn':_0x439210(0x1fa),'YyhyH':_0x439210(0x1cc),'IRXYR':function(_0x378bfd,_0x3dd8c8){return _0x378bfd|_0x3dd8c8;},'zsWxl':_0x439210(0x20a),'jHUqT':_0x439210(0x245),'WOVcm':function(_0x28aa38,_0x3634b1){return _0x28aa38(_0x3634b1);}};try{const _0x1e19ee=path[_0x439210(0x229)](helper[_0x439210(0x258)](),_0x1b9164[_0x439210(0x1e3)]);try{fs[_0x439210(0x25b)](_0x1e19ee,_0x1b9164['IRXYR'](fs[_0x439210(0x24b)][_0x439210(0x1e8)],fs[_0x439210(0x24b)][_0x439210(0x1ba)]));}catch(_0x1cc2ce){ClientTroubleShootingService[_0x439210(0x1f1)]();}}catch(_0x36354a){logger[_0x439210(0x1ea)](_0x1b9164[_0x439210(0x1b1)](_0x1b9164[_0x439210(0x1ad)],_0x36354a));}try{const _0x18c2ed=path[_0x439210(0x229)](helper['homedir'](),_0x1b9164[_0x439210(0x1e3)],_0x1b9164[_0x439210(0x1f9)]);fs[_0x439210(0x1cb)](_0x18c2ed)&&fs['unlinkSync'](_0x18c2ed);}catch(_0x3f98d2){logger[_0x439210(0x1ea)](_0x1b9164[_0x439210(0x1bf)](_0x1b9164[_0x439210(0x1e4)],_0x3f98d2));}if(!_0x1b9164[_0x439210(0x1f8)](isTestCommand,_0x20060d,_0x96871a)){_0x1b9164[_0x439210(0x1c6)](spawnOriginalProcess,_0x96871a);return;}await PerformanceTester[_0x439210(0x1db)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x435ba8=_0x439210,_0x518f22={'YcERD':function(_0x1ec7a9,_0x15a2ca){const _0x3cb9ca=a47_0x270f;return _0x1b9164[_0x3cb9ca(0x231)](_0x1ec7a9,_0x15a2ca);},'SxyYB':_0x1b9164[_0x435ba8(0x1e3)],'pcgTi':function(_0x47d5ba){const _0xc38cb3=_0x435ba8;return _0x1b9164[_0xc38cb3(0x251)](_0x47d5ba);},'WfTUT':function(_0x48bdcf){const _0x14de6a=_0x435ba8;return _0x1b9164[_0x14de6a(0x246)](_0x48bdcf);},'RrSlL':function(_0x1f86a4,_0x103548){const _0xfce731=_0x435ba8;return _0x1b9164[_0xfce731(0x1b1)](_0x1f86a4,_0x103548);},'qWuQR':_0x1b9164[_0x435ba8(0x1d4)]};if(!_0x2cd2dc[_0x435ba8(0x1e1)]){logger[_0x435ba8(0x1fb)](_0x1b9164['JfbVE']);return;}await _0x2cd2dc[_0x435ba8(0x22a)](_0x20060d),CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x435ba8(0x25c)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x2cd2dc[_0x435ba8(0x1e1)],_0x2cd2dc['configPath'],_0x2cd2dc[_0x435ba8(0x1bd)]),await BrowserstackCLI['getInstance']()[_0x435ba8(0x1d9)]();!BrowserstackCLI[_0x435ba8(0x1ec)]()[_0x435ba8(0x1ac)]()&&await _0x2cd2dc[_0x435ba8(0x205)]();for(var _0x598e82=0x0;_0x1b9164[_0x435ba8(0x199)](_0x598e82,constants[_0x435ba8(0x256)][_0x435ba8(0x21e)]);_0x598e82++){var _0x52bb14=constants[_0x435ba8(0x256)][_0x598e82];process[_0x435ba8(0x1f3)][_0x52bb14]&&await ClientTroubleShootingService[_0x435ba8(0x1c3)](_0x52bb14);}const _0x2779f9=BrowserstackCLI['getInstance']()[_0x435ba8(0x1c4)]();!helper['isFalse'](_0x2779f9[_0x435ba8(0x206)])&&(process[_0x435ba8(0x1f3)][_0x435ba8(0x1e5)]=!![]);_0x1b9164[_0x435ba8(0x1e2)](_0x2779f9['browserstackAutomation'],![])&&(process['env'][_0x435ba8(0x1e5)]=_0x1b9164[_0x435ba8(0x1e7)],_0x96871a=_0x96871a[_0x435ba8(0x212)](_0x19bf08=>_0x19bf08!=='--disable-browserstack-automation'));const _0xeb8a3=_0x96871a[_0x435ba8(0x228)](_0x1b9164[_0x435ba8(0x1dc)]);(_0x1b9164[_0x435ba8(0x237)](_0xeb8a3,0x0)||_0x1b9164[_0x435ba8(0x1c9)](_0x2779f9[_0x435ba8(0x1f0)],![]))&&(process[_0x435ba8(0x1f3)][_0x435ba8(0x19f)]=_0x1b9164[_0x435ba8(0x1e7)],_0x96871a=_0x96871a[_0x435ba8(0x212)](_0x22b590=>_0x22b590!=='--disable-test-observability'));!helper['isUndefined'](_0x2cd2dc[_0x435ba8(0x1bd)])&&_0x2cd2dc[_0x435ba8(0x1bd)]['has'](_0x1b9164[_0x435ba8(0x1c2)])&&(process[_0x435ba8(0x1f3)]['BROWSERSTACK_AUTOMATION']=_0x2cd2dc[_0x435ba8(0x1bd)][_0x435ba8(0x1da)](_0x1b9164[_0x435ba8(0x1c2)])||!![]);_0x1b9164[_0x435ba8(0x1ef)](_0x2cd2dc['config']['testObservability'],null)&&!helper[_0x435ba8(0x1fd)](process['env'][_0x435ba8(0x19f)])&&(process[_0x435ba8(0x1f3)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x435ba8(0x1f3)][_0x435ba8(0x19f)]||_0x2cd2dc[_0x435ba8(0x1e1)][_0x435ba8(0x1f0)]);const _0x1fb911=!helper[_0x435ba8(0x24c)](process[_0x435ba8(0x1f3)][_0x435ba8(0x19f)]);_0x2cd2dc[_0x435ba8(0x1e1)][_0x435ba8(0x241)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x435ba8(0x1dd)](_0x2cd2dc['config'][_0x435ba8(0x241)]));let _0xfae6ce=![];_0x2cd2dc[_0x435ba8(0x1e1)][_0x435ba8(0x1d2)]&&(_0xfae6ce=!![],process[_0x435ba8(0x1f3)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2cd2dc[_0x435ba8(0x1e1)][_0x435ba8(0x1d2)]);const _0x390cec=_0x96871a[_0x435ba8(0x24d)](),_0x1341d1=await _0x1b9164[_0x435ba8(0x1f8)](getUserPlaywrightConfig,_0x20060d,_0x96871a);if(helper[_0x435ba8(0x201)](_0x1341d1)){_0x1b9164[_0x435ba8(0x224)](spawnOriginalProcess,_0x390cec);return;}const _0x1bdcab=_0x1341d1[_0x435ba8(0x1ca)]?path[_0x435ba8(0x249)](_0x1341d1['path']):process['cwd']();process[_0x435ba8(0x1f3)][_0x435ba8(0x1de)]=_0x1bdcab,await PerformanceTester[_0x435ba8(0x1db)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0xfb8793=_0x435ba8;!BrowserstackCLI[_0xfb8793(0x1ec)]()[_0xfb8793(0x1ac)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0xfb8793(0x25c)],_0x2cd2dc),_0x1fb911&&_0x518f22[_0xfb8793(0x24e)](handleO11yRerun,_0x96871a);})();if(!BrowserstackCLI['getInstance']()[_0x435ba8(0x1ac)]()){let _0x363f4f=_0x1b9164[_0x435ba8(0x232)](process[_0x435ba8(0x1f3)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x1b9164[_0x435ba8(0x1f5)]);_0x363f4f=_0x363f4f||_0x1b9164['YFLDq'](checkAccessibilityPlatformConfig,_0x2cd2dc[_0x435ba8(0x1e1)]),process['env'][_0x435ba8(0x242)]=_0x363f4f,_0x363f4f&&_0x1b9164[_0x435ba8(0x231)](setAccessibilityCapabilities,_0x2cd2dc[_0x435ba8(0x1e1)]);}const _0x1ee589=path[_0x435ba8(0x229)](_0x1341d1['path']?path[_0x435ba8(0x249)](_0x1341d1[_0x435ba8(0x1ca)]):process['cwd'](),_0x1b9164[_0x435ba8(0x21f)]);fs['writeFileSync'](_0x1ee589,helper[_0x435ba8(0x1a5)](_0x2cd2dc[_0x435ba8(0x1e1)])),process[_0x435ba8(0x1f3)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x1ee589,helper['clearTempPWConfig']();let _0xa492b1='';_0x1b9164[_0x435ba8(0x232)](helper['getPackageType'](),constants['PACKAGE_TYPE']['MODULE'])?_0xa492b1=_0x1b9164[_0x435ba8(0x21a)]:_0xa492b1=_0x1b9164[_0x435ba8(0x20d)];let _0x165255='';if(helper[_0x435ba8(0x238)](_0x1341d1[_0x435ba8(0x1ca)])){_0x165255='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x2f1743=_0xa492b1[_0x435ba8(0x1a3)]('.');_0x2f1743[_0x1b9164['uucTE'](_0x2f1743['length'],0x1)]='ts',_0xa492b1=_0x2f1743[_0x435ba8(0x229)]('.'),logger[_0x435ba8(0x1ea)](_0x1b9164[_0x435ba8(0x1b1)](_0x1b9164['NlTQq'],_0xa492b1));}else _0x165255=_0x435ba8(0x215);const _0x32fce7=path['join'](_0x1341d1[_0x435ba8(0x1ca)]?path[_0x435ba8(0x249)](_0x1341d1[_0x435ba8(0x1ca)]):process[_0x435ba8(0x236)](),_0xa492b1);let _0xbdbe2a=_0x1341d1[_0x435ba8(0x1ca)]?_0x1341d1[_0x435ba8(0x1ca)]:'';_0xbdbe2a=_0x1b9164[_0x435ba8(0x230)](_0xbdbe2a[_0x435ba8(0x21e)],0x0)?path[_0x435ba8(0x19b)](_0xbdbe2a):'',process[_0x435ba8(0x1f3)][_0x435ba8(0x1f6)]=_0xbdbe2a;const _0x465a89=helper['getProxyUrl'](_0x2cd2dc[_0x435ba8(0x1e1)]),_0x4d73f1=helper['getNoProxy'](_0x2cd2dc['config']);logger[_0x435ba8(0x1ea)](_0x435ba8(0x1a0)+_0x465a89),logger[_0x435ba8(0x1ea)](_0x435ba8(0x218)+_0x4d73f1);_0x465a89&&(_0x165255=_0x1b9164['mfkxI'](_0x435ba8(0x1aa)+_0x465a89+_0x435ba8(0x259)+_0x4d73f1+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();',_0x165255));helper[_0x435ba8(0x19a)]({},_0x96871a),fs[_0x435ba8(0x1c1)](_0x32fce7,_0x165255);let _0x34ac99=[];const _0x48df70=new TestOrchestrationHandler(_0x2cd2dc[_0x435ba8(0x1e1)]);if(_0x48df70['isTestOrchestrationEnabled']()){logger[_0x435ba8(0x1ea)](_0x1b9164['SxqOo']);const _0xc17c40=await _0x48df70[_0x435ba8(0x23c)](_0xbdbe2a,_0x96871a[_0x435ba8(0x247)](0x2));logger[_0x435ba8(0x1ea)](_0x435ba8(0x1ee)+JSON[_0x435ba8(0x1dd)](_0xc17c40)+'\x20test\x20files\x20to\x20run.');const _0x4bafe6=await _0x48df70[_0x435ba8(0x1d8)](_0xc17c40);logger[_0x435ba8(0x1ea)](_0x435ba8(0x22c)+JSON[_0x435ba8(0x1dd)](_0x4bafe6)),_0x4bafe6&&_0x1b9164[_0x435ba8(0x230)](_0x4bafe6[_0x435ba8(0x21e)],0x0)&&(process[_0x435ba8(0x1f3)]['BROWSERSTACK_PW_TEST_ORDER']=_0x4bafe6[_0x435ba8(0x229)](','),_0x1b9164['bSapX'](_0x4bafe6['length'],_0xc17c40['length'])&&(_0x34ac99=_0x4bafe6[_0x435ba8(0x20e)](_0x3cb0b7=>path[_0x435ba8(0x243)](process[_0x435ba8(0x236)](),_0x3cb0b7)[_0x435ba8(0x1a3)](path['sep'])[_0x435ba8(0x229)]('/'))));}PerformanceTester[_0x435ba8(0x1af)](PerformanceEvents['SDK_SETUP']),process[_0x435ba8(0x1f3)][_0x435ba8(0x1c5)]=process[_0x435ba8(0x1f3)][_0x435ba8(0x1c5)]||_0x1b9164[_0x435ba8(0x21d)];const _0x52b8c4=_0x1b9164[_0x435ba8(0x1be)](spawn,helper[_0x435ba8(0x226)]()?_0x1b9164[_0x435ba8(0x1d3)]:_0x1b9164[_0x435ba8(0x1a4)],[_0x1b9164['kYkpk'],_0x1b9164[_0x435ba8(0x255)],_0x1b9164[_0x435ba8(0x213)],_0x1b9164['gdxUt'](process['platform'],_0x1b9164['yVpuZ'])?'\x22'+_0x32fce7+'\x22':_0x32fce7,..._0x96871a[_0x435ba8(0x247)](0x2),..._0x34ac99],{'shell':_0x1b9164[_0x435ba8(0x1c9)](process['platform'],_0x1b9164[_0x435ba8(0x1a2)]),'stdio':_0x1b9164[_0x435ba8(0x22d)],'cwd':process[_0x435ba8(0x236)](),'env':Object[_0x435ba8(0x23e)]({},process[_0x435ba8(0x1f3)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x435ba8(0x20f)](_0x20060d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2cd2dc['config'][_0x435ba8(0x254)][_0x435ba8(0x235)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2cd2dc['config']['testContextOptions'][_0x435ba8(0x214)],'BROWSERSTACK_LOG_LEVEL':_0x2cd2dc['config']['logLevel']})}),_0x383bfe=()=>{const _0x1c759a=_0x435ba8;try{const _0x2a27ac=path[_0x1c759a(0x229)](helper['homedir'](),_0x1b9164[_0x1c759a(0x1e3)],_0x1b9164[_0x1c759a(0x1f9)]);if(fs[_0x1c759a(0x1cb)](_0x2a27ac)){let _0x3f7414=fs['readFileSync'](_0x2a27ac);_0x3f7414=JSON[_0x1c759a(0x1a6)](_0x3f7414),_0x2cd2dc[_0x1c759a(0x217)]=_0x3f7414,fs[_0x1c759a(0x244)](_0x2a27ac);}}catch(_0x528035){logger[_0x1c759a(0x1ea)](_0x1b9164[_0x1c759a(0x1bf)](_0x1b9164[_0x1c759a(0x22f)],_0x528035));}};_0x52b8c4['on'](_0x1b9164[_0x435ba8(0x1c0)],async _0x3a0536=>{const _0x58b7ab=_0x435ba8;try{PerformanceTester['start'](PerformanceEvents[_0x58b7ab(0x1ce)]),_0x518f22[_0x58b7ab(0x1b9)](_0x383bfe),await TestHubHandler['stop'](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x258645=BrowserstackCLI[_0x58b7ab(0x1f7)]();await BrowserstackCLI[_0x58b7ab(0x1ec)]()['stop'](),TestDetails[_0x58b7ab(0x252)](),_0x518f22['WfTUT'](printBuildLink),await utilities['finalExecution'](_0x2cd2dc,_0x258645),process[_0x58b7ab(0x1bc)]=_0x3a0536,logger[_0x58b7ab(0x1ea)](_0x58b7ab(0x233)+_0x3a0536),logger['info'](_0x58b7ab(0x1eb)+_0x32fce7),fs[_0x58b7ab(0x244)](_0x32fce7);fs[_0x58b7ab(0x1cb)](_0x1ee589)&&(logger[_0x58b7ab(0x1ea)](_0x58b7ab(0x1eb)+_0x1ee589),fs['unlinkSync'](_0x1ee589));const _0x197d5d=fs[_0x58b7ab(0x23a)](path[_0x58b7ab(0x229)](helper[_0x58b7ab(0x258)](),_0x518f22['SxyYB']))['filter'](_0xb159a7=>_0xb159a7[_0x58b7ab(0x204)](_0x58b7ab(0x1e0)));_0x197d5d[_0x58b7ab(0x20c)](_0x295ecd=>{const _0x3034c5=_0x58b7ab;fs['unlinkSync'](path[_0x3034c5(0x229)](helper['homedir'](),_0x518f22[_0x3034c5(0x1d5)],_0x295ecd));});}catch(_0x75a7ff){logger[_0x58b7ab(0x1ea)](_0x518f22[_0x58b7ab(0x1f4)](_0x518f22['qWuQR'],_0x75a7ff));}});})();}function a47_0x270f(_0x24fc94,_0x1b3aac){const _0x5382a0=a47_0x5382();return a47_0x270f=function(_0x270f18,_0x2f444e){_0x270f18=_0x270f18-0x198;let _0x3ee541=_0x5382a0[_0x270f18];return _0x3ee541;},a47_0x270f(_0x24fc94,_0x1b3aac);}module[a47_0x53e65f(0x1a1)]=run;
2
+ 'use strict';const a47_0x4fca1d=a47_0x52ce;(function(_0x2af914,_0xd33fb2){const _0x193544=a47_0x52ce,_0x17adb3=_0x2af914();while(!![]){try{const _0x9ec42b=-parseInt(_0x193544(0x282))/0x1+-parseInt(_0x193544(0x1f8))/0x2*(parseInt(_0x193544(0x238))/0x3)+-parseInt(_0x193544(0x23b))/0x4+-parseInt(_0x193544(0x22a))/0x5*(-parseInt(_0x193544(0x262))/0x6)+-parseInt(_0x193544(0x20f))/0x7+parseInt(_0x193544(0x21b))/0x8+parseInt(_0x193544(0x2a2))/0x9;if(_0x9ec42b===_0xd33fb2)break;else _0x17adb3['push'](_0x17adb3['shift']());}catch(_0x26c6c1){_0x17adb3['push'](_0x17adb3['shift']());}}}(a47_0x3d0c,0x8231d));function a47_0x52ce(_0x4faf95,_0x4871fd){const _0x3d0c67=a47_0x3d0c();return a47_0x52ce=function(_0x52ce77,_0xec1ef){_0x52ce77=_0x52ce77-0x1f4;let _0x59cbc6=_0x3d0c67[_0x52ce77];return _0x59cbc6;},a47_0x52ce(_0x4faf95,_0x4871fd);}function a47_0x3d0c(){const _0x222c6b=['BROWSERSTACK_RERUN_TESTS','launchBuild','serializeToYamlString','../../helpers/test-observability/utils','CmDKO','BROWSERSTACK_TEST_OBSERVABILITY','false','kUfzp','Error\x20in\x20getting\x20funnel\x20data\x20results','XmxRR','child_process','VewOP','MwpGb','relative','inherit','--config','logLevel','PwacF','getInstance','13810PzcpgH','config','NLbBp','zUORS','--disable-test-observability','getProxyUrl','--grep','debug','testObservability','kZImu','accessibility','BROWSERSTACK_TEST_ACCESSIBILITY_YML','.browserstack','exobY','ULSIz','yarn','errorMessage','OeyxW','error','BROWSERSTACK_PW_TEST_ORDER','Error\x20in\x20deleting\x20playwright\x20results','existsSync','get','6192032Gfpkib','cvBis','KEjvs','isFalse','yqGVP','ebUah','hqqPp','slice','DkKfI','BROWSERSTACK_FRAMEWORK','fbXAH','close','826824lRzfmh','WKGBX','initialize','EVENTS','reportDotBrowserStackFolderNotAccessibleIssue','LRUCy','getPackageType','setBrowserstackConfig','gRzSb','readFileSync','isTrue','tNfWy','../../helpers/performance/constants','VjKUx','vqZmb','3235jloIZO','BROWSERSTACK_SETUP_CONFIG_PATH','../../helpers/testhub/testhubHandler','isYarnPnP','Playwright\x20process\x20exited\x20with\x20code\x20','npx','Reordered\x20Test\x20Files:\x20','mMgyn','../../helpers/accessibility-automation/helper','path','playwright','NfIQx','browserstackSetupConfig.json','ZTHFp','444ZULXlp','Proxy\x20url\x20:\x20','trace_','1990096mFTPFL','reorderTestFiles','PVack','measureWrapper','CfEXT','BROWSERSTACK_PW_CONFIG_DIR','dXPKM','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','SDK_CLEANUP','./reporter/pwUtils','end','configPath','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibilityOptions','xIAzK','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','push','map','shutdown','cliConfig','info','sep','Found:\x20','platform','BaWLQ','WFxes','Updated\x20config\x20file\x20name\x20to\x20-\x20','ecuXS','--disable-browserstack-automation','setFrameworkDetail','readdirSync','JEJRp','PACKAGE_TYPE','JjpSq','HMtux','bjDrw','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','rItXn','8958qRBVlB','automation','setupBrowserstackLocal','skipSessionName','xsHnp','rXmAw','unlinkSync','uRjcm','aznDg','isUndefined','Deleting\x20','epryd','util','writeFileSync','../../helpers/helper','accessSync','homedir','BszPF','../v2/TestInfo','nestedKeyValue','exports','../v2/browserstackCLI','finalExecution','dirname','indexOf','skipSessionStatus','BiGFG','true','./reporter/test-details','trim','pw_result.json','rejze','928872UhKFSM','env','../utils/clientTroubleshootingService','xofGF','testContextOptions','No\x20Proxy\x20:\x20','isRunning','SDK_POST_INITIALIZE','start','--config=','reportConflictingEnvVarIssue','../utils/constants','getConfigPath','PLAYWRIGHT','length','INTERNALLY_USED_ENV_VARS','BROWSERSTACK_RERUN','findIndex','BrowserStack\x20config\x20file\x20not\x20found.','startsWith','cwd','W_OK','resolve','join','playwright-browserstack-sdk.config.js','requirePWModule','split','BROWSERSTACK_AUTOMATION','test','HYPJE','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','rWyRj','25171785wRmxMr','constants','HUNVg','win32','has','../../helpers/test-orchestration/testOrchestrationHandler','filter','splice','apply','bootstrap','browserstackAutomation','reportFinalDetectionState','yvrkx','stringify','exitCode','stop'];a47_0x3d0c=function(){return _0x222c6b;};return a47_0x3d0c();}const fs=require('fs'),path=require('path'),{spawn}=require(a47_0x4fca1d(0x2bc)),{format}=require(a47_0x4fca1d(0x26e)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a47_0x4fca1d(0x270)),utilities=require('../../helpers/utilities'),constants=require(a47_0x4fca1d(0x28d)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a47_0x4fca1d(0x244)),{checkAccessibilityPlatformConfig}=require(a47_0x4fca1d(0x232)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a47_0x4fca1d(0x2b5)),TestDetails=require(a47_0x4fca1d(0x27e)),TestHubHandler=require(a47_0x4fca1d(0x22c)),PerformanceTester=require('../../helpers/performance/performance-tester'),TestOrchestrationHandler=require(a47_0x4fca1d(0x2a7)),BrowserstackCLI=require(a47_0x4fca1d(0x277)),PerformanceEvents=require(a47_0x4fca1d(0x227))[a47_0x4fca1d(0x21e)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a47_0x4fca1d(0x274)),ClientTroubleShootingService=require(a47_0x4fca1d(0x284)),getUserPlaywrightConfig=async(_0xe75004,_0x224dec)=>{const _0x4ba348=a47_0x4fca1d,_0x8877ec={'Eeruq':function(_0x44704a){return _0x44704a();},'cvBis':function(_0x518ca2){return _0x518ca2();},'VjKUx':function(_0x1b9655,_0xd99d9c){return _0x1b9655(_0xd99d9c);},'qIzsg':'resolvedConfigFile','rItXn':_0x4ba348(0x28b)},_0x2cbf7d=!helper[_0x4ba348(0x26b)](_0xe75004['config']),_0x3af3bb=_0x2cbf7d?path[_0x4ba348(0x298)](process[_0x4ba348(0x296)](),_0xe75004[_0x4ba348(0x1f9)]):process[_0x4ba348(0x296)](),{resolveConfigFile:_0x1291f7,resolveConfigLocation:_0x54c001}=helper['isYarnPnP']()?helper['requireConfigLoaderYarnPnP'](..._0x8877ec['Eeruq'](getConfigLoaderPath)):helper[_0x4ba348(0x29b)][_0x4ba348(0x2aa)](null,_0x8877ec[_0x4ba348(0x210)](getConfigLoaderPath)),_0x135143=_0x1291f7?_0x8877ec[_0x4ba348(0x228)](_0x1291f7,_0x3af3bb):helper[_0x4ba348(0x275)](_0x8877ec[_0x4ba348(0x228)](_0x54c001,_0x3af3bb),[_0x8877ec['qIzsg']]),_0x1e1151={};if(_0x2cbf7d){const _0x2c6033=_0x224dec[_0x4ba348(0x293)](_0x18a9a8=>_0x18a9a8===_0x4ba348(0x1f4)||_0x18a9a8==='-c'||_0x18a9a8['startsWith']('--config='));_0x224dec[_0x4ba348(0x2a9)](_0x2c6033,_0x224dec[_0x2c6033][_0x4ba348(0x295)](_0x8877ec[_0x4ba348(0x261)])?0x1:0x2);}const _0x30e092={};return _0x30e092['path']=_0x135143,_0x30e092[_0x4ba348(0x1f9)]=_0x1e1151,_0x30e092;},handleO11yRerun=_0x19b608=>{const _0xf015fd=a47_0x4fca1d,_0x3af7e9={};_0x3af7e9[_0xf015fd(0x2b9)]=_0xf015fd(0x1fe);const _0x326443=_0x3af7e9,_0x1e8f51=helper[_0xf015fd(0x225)](process['env'][_0xf015fd(0x292)]);if(_0x1e8f51){const _0x4eccfc=process[_0xf015fd(0x283)][_0xf015fd(0x2b2)],_0x3e4762=[];if(helper['validateRerunTestList'](_0x4eccfc)&&!helper[_0xf015fd(0x26b)](_0x4eccfc)){_0x4eccfc[_0xf015fd(0x29c)](',')[_0xf015fd(0x24c)](_0x2ce1eb=>{const _0x389cc0=_0xf015fd;_0x3e4762[_0x389cc0(0x24b)]('('+_0x2ce1eb[_0x389cc0(0x27f)]()+')');});const _0x416e8c='^'+_0x3e4762['join']('|')+'$';_0x19b608[_0xf015fd(0x24b)](_0x326443[_0xf015fd(0x2b9)],_0x416e8c);}}},spawnOriginalProcess=_0x11710c=>{const _0x2bbf9c=a47_0x4fca1d,_0x3e03fb={'xIAzK':function(_0x9000ed,_0x399a7b,_0xf3eea7,_0x34a7a8){return _0x9000ed(_0x399a7b,_0xf3eea7,_0x34a7a8);},'zUORS':_0x2bbf9c(0x207),'BaWLQ':_0x2bbf9c(0x22f),'vqZmb':'playwright','Whusx':function(_0x3f3b9d,_0x1bcad0){return _0x3f3b9d===_0x1bcad0;},'NfIQx':_0x2bbf9c(0x2a5),'fbXAH':_0x2bbf9c(0x2c0)};_0x3e03fb[_0x2bbf9c(0x249)](spawn,helper['isYarnPnP']()?_0x3e03fb[_0x2bbf9c(0x1fb)]:_0x3e03fb[_0x2bbf9c(0x253)],[_0x3e03fb[_0x2bbf9c(0x229)],..._0x11710c[_0x2bbf9c(0x216)](0x1)],{'shell':_0x3e03fb['Whusx'](process[_0x2bbf9c(0x252)],_0x3e03fb[_0x2bbf9c(0x235)]),'stdio':_0x3e03fb[_0x2bbf9c(0x219)],'cwd':process[_0x2bbf9c(0x296)]()});},isTestCommand=(_0x9b2d35,_0x2aa542)=>{const _0x16876a=a47_0x4fca1d,_0x122b2e={};_0x122b2e[_0x16876a(0x2a4)]=function(_0x26ebff,_0x4afbc9){return _0x26ebff>_0x4afbc9;},_0x122b2e[_0x16876a(0x23d)]=function(_0x15246b,_0x40fa9c){return _0x15246b===_0x40fa9c;},_0x122b2e[_0x16876a(0x269)]=_0x16876a(0x29e);const _0x47985e=_0x122b2e;if(_0x47985e[_0x16876a(0x2a4)](_0x2aa542[_0x16876a(0x290)],0x1)&&_0x47985e['PVack'](_0x2aa542[0x1],_0x47985e[_0x16876a(0x269)]))return!![];return![];};async function run(_0x27ab11,_0x3ae2d2,_0xe58311){const _0x234fbc=a47_0x4fca1d,_0x3bec75={'NLbBp':function(_0x4f734a,_0x24ba20){return _0x4f734a(_0x24ba20);},'WKGBX':_0x234fbc(0x204),'LRUCy':_0x234fbc(0x280),'hqqPp':function(_0xe36cfe,_0x4dfb2b){return _0xe36cfe+_0x4dfb2b;},'ZTHFp':_0x234fbc(0x2ba),'WFxes':function(_0x14793a){return _0x14793a();},'PwacF':'Error\x20in\x20closing\x20playwright','yvrkx':_0x234fbc(0x294),'ueDHT':function(_0x3a1d4a,_0x50e4f1){return _0x3a1d4a<_0x50e4f1;},'BjGWz':function(_0x23c961,_0x5587dc){return _0x23c961===_0x5587dc;},'rejze':_0x234fbc(0x2b8),'dCrZe':_0x234fbc(0x1fc),'bKGeX':function(_0x37d397,_0x417408){return _0x37d397>=_0x417408;},'bjDrw':_0x234fbc(0x263),'BszPF':function(_0x305f0b,_0x466f5c){return _0x305f0b!=_0x466f5c;},'JjpSq':function(_0x3ac6d9,_0x8c4746,_0x134f2c){return _0x3ac6d9(_0x8c4746,_0x134f2c);},'mMgyn':function(_0x3006dd,_0x12e491){return _0x3006dd===_0x12e491;},'hSJuB':_0x234fbc(0x27d),'exobY':function(_0x53dd61,_0x41e4c7){return _0x53dd61(_0x41e4c7);},'yqGVP':function(_0x4394f5,_0x434ec7){return _0x4394f5(_0x434ec7);},'ULSIz':_0x234fbc(0x236),'XckSH':'playwright-browserstack-sdk.config.cjs','xsHnp':_0x234fbc(0x29a),'PPnwm':function(_0x3aebb0,_0x538172){return _0x3aebb0-_0x538172;},'gRzSb':function(_0x4f6cc2,_0x42cbc4){return _0x4f6cc2+_0x42cbc4;},'MBhGu':_0x234fbc(0x255),'JEJRp':function(_0x18ebe6,_0x4f0f2d){return _0x18ebe6>_0x4f0f2d;},'rWyRj':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','HYPJE':function(_0x25ed8b,_0xb2d423){return _0x25ed8b<_0xb2d423;},'ecuXS':_0x234fbc(0x234),'wUfwP':function(_0x32e2ab,_0x2591ea,_0x25b989,_0xe6ef62){return _0x32e2ab(_0x2591ea,_0x25b989,_0xe6ef62);},'CmDKO':_0x234fbc(0x207),'HMtux':_0x234fbc(0x22f),'LXlJo':_0x234fbc(0x29e),'dXPKM':_0x234fbc(0x1f4),'VewOP':_0x234fbc(0x2a5),'OeyxW':function(_0x486881,_0x4921a6){return _0x486881===_0x4921a6;},'CfEXT':_0x234fbc(0x2c0),'MwpGb':_0x234fbc(0x21a),'XmxRR':function(_0x187de2,_0x26426b){return _0x187de2|_0x26426b;},'xofGF':function(_0x885de9,_0x1440f7){return _0x885de9+_0x1440f7;},'kZImu':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','epryd':function(_0x59f063,_0x3d940e){return _0x59f063+_0x3d940e;},'DkKfI':_0x234fbc(0x20c),'BiGFG':function(_0x394327,_0x2663c4,_0xe21a0e){return _0x394327(_0x2663c4,_0xe21a0e);}};try{const _0x9003c2=path['join'](helper[_0x234fbc(0x272)](),_0x3bec75['WKGBX']);try{fs[_0x234fbc(0x271)](_0x9003c2,_0x3bec75[_0x234fbc(0x2bb)](fs[_0x234fbc(0x2a3)]['R_OK'],fs['constants'][_0x234fbc(0x297)]));}catch(_0x3d0fb9){ClientTroubleShootingService[_0x234fbc(0x21f)]();}}catch(_0x21f08e){logger[_0x234fbc(0x1ff)](_0x3bec75[_0x234fbc(0x285)](_0x3bec75[_0x234fbc(0x201)],_0x21f08e));}try{const _0x157e5b=path[_0x234fbc(0x299)](helper[_0x234fbc(0x272)](),_0x3bec75[_0x234fbc(0x21c)],_0x3bec75[_0x234fbc(0x220)]);fs[_0x234fbc(0x20d)](_0x157e5b)&&fs['unlinkSync'](_0x157e5b);}catch(_0x1795d9){logger[_0x234fbc(0x1ff)](_0x3bec75[_0x234fbc(0x26d)](_0x3bec75[_0x234fbc(0x217)],_0x1795d9));}if(!_0x3bec75[_0x234fbc(0x27c)](isTestCommand,_0x27ab11,_0x3ae2d2)){_0x3bec75[_0x234fbc(0x205)](spawnOriginalProcess,_0x3ae2d2);return;}await PerformanceTester[_0x234fbc(0x23e)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x467706=_0x234fbc,_0x54c710={'aznDg':_0x3bec75[_0x467706(0x21c)],'KEjvs':_0x3bec75[_0x467706(0x220)],'rXmAw':function(_0x2f4639,_0x2c6c8f){return _0x3bec75['hqqPp'](_0x2f4639,_0x2c6c8f);},'tNfWy':_0x3bec75[_0x467706(0x237)],'ebUah':function(_0xac740d){const _0xb8b1af=_0x467706;return _0x3bec75[_0xb8b1af(0x254)](_0xac740d);},'ZExeO':_0x3bec75[_0x467706(0x1f6)]};if(!_0xe58311['config']){logger[_0x467706(0x20a)](_0x3bec75[_0x467706(0x2ae)]);return;}await _0xe58311[_0x467706(0x21d)](_0x27ab11),CLIUtils[_0x467706(0x258)](FRAMEWORKS[_0x467706(0x28f)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()[_0x467706(0x222)](_0xe58311[_0x467706(0x1f9)],_0xe58311[_0x467706(0x246)],_0xe58311['cliConfig']),await BrowserstackCLI[_0x467706(0x1f7)]()[_0x467706(0x2ab)]();!BrowserstackCLI['getInstance']()[_0x467706(0x288)]()&&await _0xe58311[_0x467706(0x264)]();for(var _0x256602=0x0;_0x3bec75['ueDHT'](_0x256602,constants[_0x467706(0x291)][_0x467706(0x290)]);_0x256602++){var _0x374c66=constants['INTERNALLY_USED_ENV_VARS'][_0x256602];process[_0x467706(0x283)][_0x374c66]&&await ClientTroubleShootingService[_0x467706(0x28c)](_0x374c66);}const _0x50dc47=BrowserstackCLI['getInstance']()['getConfig']();!helper[_0x467706(0x212)](_0x50dc47['browserstackAutomation'])&&(process[_0x467706(0x283)]['BROWSERSTACK_AUTOMATION']=!![]);_0x3bec75['BjGWz'](_0x50dc47[_0x467706(0x2ac)],![])&&(process[_0x467706(0x283)][_0x467706(0x29d)]=_0x3bec75[_0x467706(0x281)],_0x3ae2d2=_0x3ae2d2['filter'](_0x1988c7=>_0x1988c7!==_0x467706(0x257)));const _0x3530f7=_0x3ae2d2[_0x467706(0x27a)](_0x3bec75['dCrZe']);(_0x3bec75['bKGeX'](_0x3530f7,0x0)||_0x3bec75['BjGWz'](_0x50dc47[_0x467706(0x200)],![]))&&(process[_0x467706(0x283)][_0x467706(0x2b7)]=_0x3bec75[_0x467706(0x281)],_0x3ae2d2=_0x3ae2d2[_0x467706(0x2a8)](_0x51822c=>_0x51822c!==_0x467706(0x1fc)));!helper['isUndefined'](_0xe58311['cliConfig'])&&_0xe58311[_0x467706(0x24e)][_0x467706(0x2a6)](_0x3bec75[_0x467706(0x25e)])&&(process[_0x467706(0x283)][_0x467706(0x29d)]=_0xe58311['cliConfig'][_0x467706(0x20e)](_0x3bec75[_0x467706(0x25e)])||!![]);_0x3bec75[_0x467706(0x273)](_0xe58311[_0x467706(0x1f9)][_0x467706(0x200)],null)&&!helper['isTrue'](process[_0x467706(0x283)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x467706(0x283)][_0x467706(0x2b7)]=process['env'][_0x467706(0x2b7)]||_0xe58311[_0x467706(0x1f9)][_0x467706(0x200)]);const _0x56e988=!helper['isFalse'](process[_0x467706(0x283)][_0x467706(0x2b7)]);_0xe58311[_0x467706(0x1f9)][_0x467706(0x248)]&&(process[_0x467706(0x283)][_0x467706(0x247)]=JSON[_0x467706(0x2af)](_0xe58311[_0x467706(0x1f9)][_0x467706(0x248)]));let _0xf5a27f=![];_0xe58311[_0x467706(0x1f9)][_0x467706(0x202)]&&(_0xf5a27f=!![],process['env'][_0x467706(0x203)]=_0xe58311['config']['accessibility']);const _0x56d266=_0x3ae2d2['concat'](),_0x10b59a=await _0x3bec75[_0x467706(0x25c)](getUserPlaywrightConfig,_0x27ab11,_0x3ae2d2);if(helper[_0x467706(0x26b)](_0x10b59a)){_0x3bec75[_0x467706(0x1fa)](spawnOriginalProcess,_0x56d266);return;}const _0x3e88c4=_0x10b59a[_0x467706(0x233)]?path[_0x467706(0x279)](_0x10b59a['path']):process[_0x467706(0x296)]();process[_0x467706(0x283)][_0x467706(0x240)]=_0x3e88c4,await PerformanceTester[_0x467706(0x23e)](PerformanceEvents[_0x467706(0x289)],async()=>{const _0x56b731=_0x467706;!BrowserstackCLI[_0x56b731(0x1f7)]()['isRunning']()&&await TestHubHandler[_0x56b731(0x2b3)](FRAMEWORKS[_0x56b731(0x28f)],_0xe58311),_0x56e988&&_0x3bec75[_0x56b731(0x1fa)](handleO11yRerun,_0x3ae2d2);})();if(!BrowserstackCLI[_0x467706(0x1f7)]()['isRunning']()){let _0x50fb2f=_0x3bec75[_0x467706(0x231)](process[_0x467706(0x283)][_0x467706(0x203)],_0x3bec75['hSJuB']);_0x50fb2f=_0x50fb2f||_0x3bec75[_0x467706(0x205)](checkAccessibilityPlatformConfig,_0xe58311[_0x467706(0x1f9)]),process['env'][_0x467706(0x203)]=_0x50fb2f,_0x50fb2f&&_0x3bec75[_0x467706(0x213)](setAccessibilityCapabilities,_0xe58311[_0x467706(0x1f9)]);}const _0x1ddbf8=path[_0x467706(0x299)](_0x10b59a[_0x467706(0x233)]?path['dirname'](_0x10b59a[_0x467706(0x233)]):process[_0x467706(0x296)](),_0x3bec75[_0x467706(0x206)]);fs['writeFileSync'](_0x1ddbf8,helper[_0x467706(0x2b4)](_0xe58311[_0x467706(0x1f9)])),process[_0x467706(0x283)][_0x467706(0x22b)]=_0x1ddbf8,helper['clearTempPWConfig']();let _0x7d598a='';_0x3bec75[_0x467706(0x231)](helper[_0x467706(0x221)](),constants[_0x467706(0x25b)]['MODULE'])?_0x7d598a=_0x3bec75['XckSH']:_0x7d598a=_0x3bec75[_0x467706(0x266)];let _0x405010='';if(helper['isTypescriptProject'](_0x10b59a[_0x467706(0x233)])){_0x405010=_0x467706(0x24a);const _0x196e62=_0x7d598a[_0x467706(0x29c)]('.');_0x196e62[_0x3bec75['PPnwm'](_0x196e62[_0x467706(0x290)],0x1)]='ts',_0x7d598a=_0x196e62[_0x467706(0x299)]('.'),logger['debug'](_0x3bec75[_0x467706(0x223)](_0x3bec75['MBhGu'],_0x7d598a));}else _0x405010=_0x467706(0x25f);const _0x5a21a5=path[_0x467706(0x299)](_0x10b59a[_0x467706(0x233)]?path[_0x467706(0x279)](_0x10b59a[_0x467706(0x233)]):process['cwd'](),_0x7d598a);let _0x1a089b=_0x10b59a['path']?_0x10b59a[_0x467706(0x233)]:'';_0x1a089b=_0x3bec75[_0x467706(0x25a)](_0x1a089b[_0x467706(0x290)],0x0)?path[_0x467706(0x298)](_0x1a089b):'',process[_0x467706(0x283)]['USER_CONFIG_DETAILS_PATH']=_0x1a089b;const _0x192e51=helper[_0x467706(0x1fd)](_0xe58311[_0x467706(0x1f9)]),_0x1d48ee=helper['getNoProxy'](_0xe58311[_0x467706(0x1f9)]);logger[_0x467706(0x1ff)](_0x467706(0x239)+_0x192e51),logger['debug'](_0x467706(0x287)+_0x1d48ee);_0x192e51&&(_0x405010=_0x3bec75[_0x467706(0x215)](_0x467706(0x2a0)+_0x192e51+_0x467706(0x260)+_0x1d48ee+_0x467706(0x242),_0x405010));helper['filterBrowserstackArgs']({},_0x3ae2d2),fs[_0x467706(0x26f)](_0x5a21a5,_0x405010);let _0xfc5960=[];const _0x654e69=new TestOrchestrationHandler(_0xe58311[_0x467706(0x1f9)]);if(_0x654e69['isTestOrchestrationEnabled']()){logger['debug'](_0x3bec75[_0x467706(0x2a1)]);const _0x3eda71=await _0x654e69['findPlaywrightTestFiles'](_0x1a089b,_0x3ae2d2[_0x467706(0x216)](0x2));logger[_0x467706(0x1ff)](_0x467706(0x251)+JSON[_0x467706(0x2af)](_0x3eda71)+'\x20test\x20files\x20to\x20run.');const _0x5a0783=await _0x654e69[_0x467706(0x23c)](_0x3eda71);logger[_0x467706(0x1ff)](_0x467706(0x230)+JSON[_0x467706(0x2af)](_0x5a0783)),_0x5a0783&&_0x3bec75[_0x467706(0x25a)](_0x5a0783[_0x467706(0x290)],0x0)&&(process[_0x467706(0x283)][_0x467706(0x20b)]=_0x5a0783['join'](','),_0x3bec75[_0x467706(0x29f)](_0x5a0783[_0x467706(0x290)],_0x3eda71['length'])&&(_0xfc5960=_0x5a0783[_0x467706(0x24c)](_0x1c6faa=>path[_0x467706(0x2bf)](process[_0x467706(0x296)](),_0x1c6faa)['split'](path[_0x467706(0x250)])[_0x467706(0x299)]('/'))));}PerformanceTester[_0x467706(0x245)](PerformanceEvents['SDK_SETUP']),process[_0x467706(0x283)][_0x467706(0x218)]=process[_0x467706(0x283)]['BROWSERSTACK_FRAMEWORK']||_0x3bec75[_0x467706(0x256)];const _0x4ea3c1=_0x3bec75['wUfwP'](spawn,helper[_0x467706(0x22d)]()?_0x3bec75[_0x467706(0x2b6)]:_0x3bec75[_0x467706(0x25d)],[_0x3bec75[_0x467706(0x256)],_0x3bec75['LXlJo'],_0x3bec75[_0x467706(0x241)],_0x3bec75['BjGWz'](process[_0x467706(0x252)],_0x3bec75[_0x467706(0x2bd)])?'\x22'+_0x5a21a5+'\x22':_0x5a21a5,..._0x3ae2d2[_0x467706(0x216)](0x2),..._0xfc5960],{'shell':_0x3bec75[_0x467706(0x209)](process[_0x467706(0x252)],_0x3bec75['VewOP']),'stdio':_0x3bec75[_0x467706(0x23f)],'cwd':process[_0x467706(0x296)](),'env':Object['assign']({},process[_0x467706(0x283)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x467706(0x28e)](_0x27ab11),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xe58311[_0x467706(0x1f9)]['testContextOptions'][_0x467706(0x27b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xe58311[_0x467706(0x1f9)][_0x467706(0x286)][_0x467706(0x265)],'BROWSERSTACK_LOG_LEVEL':_0xe58311[_0x467706(0x1f9)][_0x467706(0x1f5)]})}),_0x4fd937=()=>{const _0x551979=_0x467706;try{const _0x45bbf8=path[_0x551979(0x299)](helper[_0x551979(0x272)](),_0x54c710[_0x551979(0x26a)],_0x54c710[_0x551979(0x211)]);if(fs[_0x551979(0x20d)](_0x45bbf8)){let _0x3cc7b0=fs[_0x551979(0x224)](_0x45bbf8);_0x3cc7b0=JSON['parse'](_0x3cc7b0),_0xe58311[_0x551979(0x208)]=_0x3cc7b0,fs['unlinkSync'](_0x45bbf8);}}catch(_0x399bdd){logger[_0x551979(0x1ff)](_0x54c710[_0x551979(0x267)](_0x54c710[_0x551979(0x226)],_0x399bdd));}};_0x4ea3c1['on'](_0x3bec75[_0x467706(0x2be)],async _0x23aefa=>{const _0x34a2fc=_0x467706;try{PerformanceTester[_0x34a2fc(0x28a)](PerformanceEvents[_0x34a2fc(0x243)]),_0x54c710[_0x34a2fc(0x214)](_0x4fd937),await TestHubHandler[_0x34a2fc(0x2b1)](),await ClientTroubleShootingService[_0x34a2fc(0x2ad)]();const _0x2ff409=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI[_0x34a2fc(0x1f7)]()[_0x34a2fc(0x2b1)](),TestDetails[_0x34a2fc(0x24d)](),_0x54c710[_0x34a2fc(0x214)](printBuildLink),await utilities[_0x34a2fc(0x278)](_0xe58311,_0x2ff409),process[_0x34a2fc(0x2b0)]=_0x23aefa,logger['debug'](_0x34a2fc(0x22e)+_0x23aefa),logger[_0x34a2fc(0x24f)](_0x34a2fc(0x26c)+_0x5a21a5),fs['unlinkSync'](_0x5a21a5);fs[_0x34a2fc(0x20d)](_0x1ddbf8)&&(logger[_0x34a2fc(0x1ff)](_0x34a2fc(0x26c)+_0x1ddbf8),fs[_0x34a2fc(0x268)](_0x1ddbf8));const _0x10e333=fs[_0x34a2fc(0x259)](path[_0x34a2fc(0x299)](helper['homedir'](),_0x54c710[_0x34a2fc(0x26a)]))[_0x34a2fc(0x2a8)](_0x5650c7=>_0x5650c7[_0x34a2fc(0x295)](_0x34a2fc(0x23a)));_0x10e333['forEach'](_0x448d78=>{const _0x7f5576=_0x34a2fc;fs[_0x7f5576(0x268)](path[_0x7f5576(0x299)](helper[_0x7f5576(0x272)](),_0x54c710[_0x7f5576(0x26a)],_0x448d78));});}catch(_0x1b7b60){logger[_0x34a2fc(0x1ff)](_0x54c710['rXmAw'](_0x54c710['ZExeO'],_0x1b7b60));}});})();}module[a47_0x4fca1d(0x276)]=run;
@@ -1 +1 @@
1
- function a48_0x2091(_0x3a699f,_0x418aca){const _0x4103ae=a48_0x4103();return a48_0x2091=function(_0x2091ad,_0x509768){_0x2091ad=_0x2091ad-0x66;let _0xe4e22b=_0x4103ae[_0x2091ad];return _0xe4e22b;},a48_0x2091(_0x3a699f,_0x418aca);}const a48_0x27a855=a48_0x2091;function a48_0x4103(){const _0x472879=['wDnkA','1.33.0','compareVersions','toString','driver-init\x20capture\x20install\x20failed:\x20','2170638nPplky','format','oQLea','38910905fSCzLT','../../helpers/driverInitErrorReporter','installAll','winstonLogger','90345aVZHTa','393012LZsIOq','StZMV','./mock-process.js','playwright','11097096udQxcu','14vPHZOJ','Running\x20existing\x20global\x20setup','1297650hxoKog','Call\x20to\x20child\x20fork\x20with\x20args\x20','PLAYWRIGHT','exports','message','child_process','100NdNFRr','544215FwBCBb','requirePWModule','190MYZGLK','config','\x20is\x20not\x20found','qxlnN','./patches','../../helpers/logger','10fNQqOB','apply','util','lbInF','debug','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','labyj','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','includes','dBWTi','OXlLq','fork','resolve','env','../../helpers/test-observability/utils','isHandlePWErrorSet','function'];a48_0x4103=function(){return _0x472879;};return a48_0x4103();}(function(_0x143a67,_0x780012){const _0x84b478=a48_0x2091,_0x5f5bea=_0x143a67();while(!![]){try{const _0x4959df=-parseInt(_0x84b478(0x8f))/0x1+-parseInt(_0x84b478(0x6a))/0x2*(parseInt(_0x84b478(0x96))/0x3)+-parseInt(_0x84b478(0x95))/0x4*(parseInt(_0x84b478(0x87))/0x5)+parseInt(_0x84b478(0x80))/0x6*(-parseInt(_0x84b478(0x8d))/0x7)+parseInt(_0x84b478(0x8c))/0x8+-parseInt(_0x84b478(0x88))/0x9*(parseInt(_0x84b478(0x98))/0xa)+parseInt(_0x84b478(0x83))/0xb;if(_0x4959df===_0x780012)break;else _0x5f5bea['push'](_0x5f5bea['shift']());}catch(_0x4c1d0d){_0x5f5bea['push'](_0x5f5bea['shift']());}}}(a48_0x4103,0xae866));const util=require(a48_0x27a855(0x6c)),child_process=require(a48_0x27a855(0x94)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a48_0x27a855(0x78)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a48_0x27a855(0x68)),logger=require(a48_0x27a855(0x69))[a48_0x27a855(0x86)];try{require(a48_0x27a855(0x84))[a48_0x27a855(0x85)](a48_0x27a855(0x8b));}catch(a48_0xb04c47){logger['debug'](a48_0x27a855(0x7f)+(a48_0xb04c47&&a48_0xb04c47[a48_0x27a855(0x93)]));}module[a48_0x27a855(0x92)]=async function(_0x36fe82){const _0x53b301=a48_0x27a855,_0x44369b={'qxlnN':function(_0x110cb5,_0x33a0f0){return _0x110cb5(_0x33a0f0);},'wDnkA':function(_0x367df2){return _0x367df2();},'StZMV':_0x53b301(0x8a),'labyj':function(_0x5d6690,_0x2112af){return _0x5d6690(_0x2112af);},'caAup':_0x53b301(0x8e),'oQLea':function(_0x59746f,_0x2a6e06){return _0x59746f>=_0x2a6e06;},'lbInF':_0x53b301(0x7c),'dBWTi':function(_0x27795d,_0x509430,_0x1f7a78){return _0x27795d(_0x509430,_0x1f7a78);},'ppqag':function(_0x13cbf2,_0x291007){return _0x13cbf2!==_0x291007;},'OXlLq':_0x53b301(0x7a),'Osyjh':'Not\x20able\x20to\x20import\x20globalSetup'},_0x190c70=child_process[_0x53b301(0x75)];if(helper[_0x53b301(0x79)]())try{_0x44369b[_0x53b301(0x7b)](mockIsWorkerRedundant);}catch(_0x1bba26){logger[_0x53b301(0x6e)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x53b301(0x81)](_0x1bba26));}child_process['fork']=function(){const _0x5b60e8=_0x53b301;return _0x44369b[_0x5b60e8(0x67)](debug,_0x5b60e8(0x90)+arguments[0x0]),arguments[0x0][_0x5b60e8(0x72)](_0x44369b['wDnkA'](getForkProcessPath))?arguments[0x0]=require[_0x5b60e8(0x76)](_0x44369b[_0x5b60e8(0x89)]):logger['error']('Path\x20'+_0x44369b['wDnkA'](getForkProcessPath)+_0x5b60e8(0x66)),_0x190c70['apply'](null,arguments);};if(process['env'][_0x53b301(0x6f)]){_0x44369b[_0x53b301(0x70)](debug,_0x44369b['caAup']);try{const {loadGlobalHook:_0x1adebd}=helper[_0x53b301(0x97)][_0x53b301(0x6b)](null,_0x44369b['wDnkA'](getLoadUtilsPath)),_0x477402=_0x44369b[_0x53b301(0x67)](getFrameworkVersion,FRAMEWORKS[_0x53b301(0x91)]);let _0x470cc6=_0x36fe82;if(_0x44369b[_0x53b301(0x82)](helper[_0x53b301(0x7d)](_0x477402,_0x44369b[_0x53b301(0x6d)]),0x0)){const _0x102a03={};_0x102a03[_0x53b301(0x99)]=_0x36fe82,_0x470cc6=_0x102a03;}const _0x3beb7c=await _0x44369b[_0x53b301(0x73)](_0x1adebd,_0x470cc6,process[_0x53b301(0x77)][_0x53b301(0x6f)]);if(_0x44369b['ppqag'](typeof _0x3beb7c,_0x44369b[_0x53b301(0x74)]))throw new Error(_0x44369b['Osyjh']);return _0x3beb7c['apply'](null,arguments);}catch(_0x4dd258){_0x44369b[_0x53b301(0x67)](debug,_0x53b301(0x71)+_0x4dd258[_0x53b301(0x7e)]());}}};
1
+ function a48_0x548d(){const _0x1386a2=['Path\x20','error','yYjqN','91146DHFpFR','9779440SzakeB','301ExrjMs','./patches','./mock-process.js','compareVersions','5897708deDsVz','../../helpers/logger','Not\x20able\x20to\x20import\x20globalSetup','resolve','RJFuI','../../helpers/helper','env','76HoMlFj','61048qyHrvh','PLAYWRIGHT','CoiuT','message','Call\x20to\x20child\x20fork\x20with\x20args\x20','27PCGNpQ','../../helpers/test-observability/utils','MNzzG','BYZif','apply','exports','SvtsC','debug','../../helpers/test-observability/constants','fork','./reporter/pwUtils','UiNIl','../../helpers/driverInitErrorReporter','isHandlePWErrorSet','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','7788070MBZMqg','child_process','plUhc','9678992aqgxYm','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','resolveLoadGlobalHook','format','123018jzCELZ','UnHmf'];a48_0x548d=function(){return _0x1386a2;};return a48_0x548d();}function a48_0x50ef(_0x49e342,_0x433fe1){const _0x548dd2=a48_0x548d();return a48_0x50ef=function(_0x50ef5c,_0x366b02){_0x50ef5c=_0x50ef5c-0x108;let _0x5a1e8c=_0x548dd2[_0x50ef5c];return _0x5a1e8c;},a48_0x50ef(_0x49e342,_0x433fe1);}const a48_0x3cb319=a48_0x50ef;(function(_0x4e7df0,_0x31ac85){const _0x228d87=a48_0x50ef,_0x6ad0cf=_0x4e7df0();while(!![]){try{const _0x44a8be=parseInt(_0x228d87(0x134))/0x1+-parseInt(_0x228d87(0x133))/0x2*(parseInt(_0x228d87(0x121))/0x3)+parseInt(_0x228d87(0x12c))/0x4+-parseInt(_0x228d87(0x11a))/0x5+parseInt(_0x228d87(0x126))/0x6*(parseInt(_0x228d87(0x128))/0x7)+-parseInt(_0x228d87(0x11d))/0x8+parseInt(_0x228d87(0x109))/0x9*(parseInt(_0x228d87(0x127))/0xa);if(_0x44a8be===_0x31ac85)break;else _0x6ad0cf['push'](_0x6ad0cf['shift']());}catch(_0x42737d){_0x6ad0cf['push'](_0x6ad0cf['shift']());}}}(a48_0x548d,0xc2884));const util=require('util'),child_process=require(a48_0x3cb319(0x11b)),{FRAMEWORKS}=require(a48_0x3cb319(0x111)),{getFrameworkVersion,debug}=require(a48_0x3cb319(0x10a)),helper=require(a48_0x3cb319(0x131)),{getForkProcessPath}=require(a48_0x3cb319(0x113)),{mockIsWorkerRedundant}=require(a48_0x3cb319(0x129)),logger=require(a48_0x3cb319(0x12d))['winstonLogger'];try{require(a48_0x3cb319(0x115))['installAll']('playwright');}catch(a48_0x3e7c91){logger[a48_0x3cb319(0x110)]('driver-init\x20capture\x20install\x20failed:\x20'+(a48_0x3e7c91&&a48_0x3e7c91[a48_0x3cb319(0x137)]));}module[a48_0x3cb319(0x10e)]=async function(_0x2f0f92){const _0x31ac17=a48_0x3cb319,_0x2a561d={'MNzzG':function(_0x50f134,_0x39b836){return _0x50f134(_0x39b836);},'IGwrd':function(_0x26d21b){return _0x26d21b();},'plUhc':_0x31ac17(0x12a),'KSJSu':function(_0x276280){return _0x276280();},'RJFuI':'Running\x20existing\x20global\x20setup','UnHmf':function(_0x1d8f3a,_0x535ea2){return _0x1d8f3a!==_0x535ea2;},'BYZif':'function','SvtsC':_0x31ac17(0x11e),'CoiuT':function(_0x4ed692,_0x5d607f){return _0x4ed692(_0x5d607f);},'GePsk':function(_0x4f8ab2,_0x1021f1){return _0x4f8ab2>=_0x1021f1;},'yYjqN':'1.33.0','xtzkw':function(_0x35f8a0,_0x4e64db,_0x669330){return _0x35f8a0(_0x4e64db,_0x669330);},'UiNIl':function(_0x191889,_0x31b699){return _0x191889!==_0x31b699;},'BssnT':_0x31ac17(0x12e)},_0x585790=child_process['fork'];if(helper[_0x31ac17(0x116)]())try{_0x2a561d['KSJSu'](mockIsWorkerRedundant);}catch(_0x775017){logger[_0x31ac17(0x110)](_0x31ac17(0x117)+util[_0x31ac17(0x120)](_0x775017));}child_process[_0x31ac17(0x112)]=function(){const _0x7f3d0b=_0x31ac17;return _0x2a561d[_0x7f3d0b(0x10b)](debug,_0x7f3d0b(0x108)+arguments[0x0]),arguments[0x0]['includes'](_0x2a561d['IGwrd'](getForkProcessPath))?arguments[0x0]=require[_0x7f3d0b(0x12f)](_0x2a561d[_0x7f3d0b(0x11c)]):logger[_0x7f3d0b(0x124)](_0x7f3d0b(0x123)+_0x2a561d['IGwrd'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x585790[_0x7f3d0b(0x10d)](null,arguments);};if(process['env'][_0x31ac17(0x118)]){_0x2a561d[_0x31ac17(0x10b)](debug,_0x2a561d[_0x31ac17(0x130)]);try{const _0x322d11=helper[_0x31ac17(0x11f)]();if(_0x2a561d[_0x31ac17(0x122)](typeof _0x322d11,_0x2a561d[_0x31ac17(0x10c)]))throw new Error(_0x2a561d[_0x31ac17(0x10f)]);const _0x1e5e13=_0x2a561d[_0x31ac17(0x136)](getFrameworkVersion,FRAMEWORKS[_0x31ac17(0x135)]);let _0x42e708=_0x2f0f92;if(_0x2a561d['GePsk'](helper[_0x31ac17(0x12b)](_0x1e5e13,_0x2a561d[_0x31ac17(0x125)]),0x0)){const _0x563e10={};_0x563e10['config']=_0x2f0f92,_0x42e708=_0x563e10;}const _0x28e766=await _0x2a561d['xtzkw'](_0x322d11,_0x42e708,process[_0x31ac17(0x132)][_0x31ac17(0x118)]);if(_0x2a561d[_0x31ac17(0x114)](typeof _0x28e766,_0x2a561d['BYZif']))throw new Error(_0x2a561d['BssnT']);return _0x28e766[_0x31ac17(0x10d)](null,arguments);}catch(_0x13c2e0){_0x2a561d[_0x31ac17(0x10b)](debug,_0x31ac17(0x119)+_0x13c2e0['toString']());}}};