browserstack-node-sdk 1.47.1 → 1.47.3

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 (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -0
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a33_0x5ef4(){const _0x1c7a0e=['getHubUrl','1834926CAoHtl','edgeOptions_','safariOptions_','chromeOptions','winstonLogger','tcTiX','pqtUq','WSisP','Builder','isUndefined','Jjynu','xtYZa','FCveo','mYKsn','AGfqH','proxySettings','__driver','getRequestOptions','getHttpAgent','newHubUrl','mergeDeep','vKnci','../accessibility-automation/helper','browserStackLogLevel','KCaWF','wskAw','1017676QJfJuD','HttpClient','1842228sBZSxA','proxy_','./helpers/patchHelper','safari.options','wbJoj','nOaDk','1052443FwTrpL','chromeOptions_','KOyPe','proxyUrl','isAccessibilityPlatform','AadnW','forEach','PvxKb','1797400iZExsv','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','split','eBfiZ','__driversArray','originalBuilder','__setBrowserOptions','options_','https://','then','firefoxOptions_','build','XvAuk','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','ruoqr','se:ieOptions','session_','global','info','requireSeleniumWebdriver','requireHttpClient','optimalHubUrl','browserstackAgentObservability','url_','goog:chromeOptions','blpQA','usiZk','Modifying\x20webdriver\x20builder','5xjfnGW','capability','send','path','Proxy\x20set\x20to\x20','CAPABILITY_KEY','overrideGet','Setting\x20Browserstack\x20capabilities','../../../helpers/helper','Tcjwd','updateHubUrl','126278VOftkt','setCapabilities','setServer','moz:firefoxOptions','debug','isBrowserstackInfra','/session','agent_','getAccessibilityResults','New\x20hub\x20url\x20set\x20to\x20','iuFyk','bLjrX','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','__drivers','ms:edgeOptions','ieOptions','push','5|4|0|2|3|1','227523DroibV','../../../bin/utils/constants','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','edgeOptions','/wd/hub','capabilities_','fjgfX','4QecONS','MbKIc','get','jDfMP','LaNBC','isPacProxy','MVkwq','set','../../../helpers/globals','aRLvy','JuOYk','storeOptimalHubUrl','ieOptions_'];a33_0x5ef4=function(){return _0x1c7a0e;};return a33_0x5ef4();}const a33_0x11f884=a33_0x115d;(function(_0x33263c,_0x4f4eb6){const _0x10398c=a33_0x115d,_0xf90ae1=_0x33263c();while(!![]){try{const _0x33780d=parseInt(_0x10398c(0x137))/0x1*(parseInt(_0x10398c(0x150))/0x2)+-parseInt(_0x10398c(0x149))/0x3+parseInt(_0x10398c(0x178))/0x4+parseInt(_0x10398c(0x12c))/0x5*(parseInt(_0x10398c(0x15e))/0x6)+-parseInt(_0x10398c(0x108))/0x7+-parseInt(_0x10398c(0x110))/0x8+-parseInt(_0x10398c(0x17a))/0x9;if(_0x33780d===_0x4f4eb6)break;else _0xf90ae1['push'](_0xf90ae1['shift']());}catch(_0x3e3481){_0xf90ae1['push'](_0xf90ae1['shift']());}}}(a33_0x5ef4,0x26637));const logger=require('../../../helpers/logger')[a33_0x11f884(0x162)],helper=require(a33_0x11f884(0x134)),constants=require(a33_0x11f884(0x14a)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a33_0x11f884(0x174)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a33_0x11f884(0x158)),{overrideExecute}=require(a33_0x11f884(0x17c)),modify=(_0x5e7931,_0x549599=null,_0x28bb02=![])=>{const _0x59532f=a33_0x11f884,_0x4f5c2e={'aRLvy':function(_0x28c38a,_0x1bce4b){return _0x28c38a!==_0x1bce4b;},'kveln':_0x59532f(0x13d),'wskAw':function(_0xe06cb8,_0x103cb1){return _0xe06cb8+_0x103cb1;},'WSisP':function(_0x824026,_0x577b56){return _0x824026+_0x577b56;},'eBfiZ':_0x59532f(0x118),'LaNBC':_0x59532f(0x14d),'usiZk':_0x59532f(0x128),'ARCrn':_0x59532f(0x161),'MVkwq':_0x59532f(0x145),'bLjrX':_0x59532f(0x14c),'MbKIc':_0x59532f(0x13a),'mYKsn':'firefoxOptions','OscDo':_0x59532f(0x17d),'JuOYk':_0x59532f(0x11f),'oEVTz':_0x59532f(0x146),'eVGUT':function(_0x3da485,_0x1dcaba){return _0x3da485===_0x1dcaba;},'tcTiX':'object','blpQA':_0x59532f(0x133),'ruoqr':_0x59532f(0x125),'gwTOP':_0x59532f(0x11d),'Jjynu':function(_0x1d0a3d,_0x410c0,_0xfd274a){return _0x1d0a3d(_0x410c0,_0xfd274a);},'gHxJF':function(_0x215b02,_0x7de298){return _0x215b02(_0x7de298);},'Tcjwd':function(_0x4981a9,_0x574b2c,_0x4ce664){return _0x4981a9(_0x574b2c,_0x4ce664);},'vKnci':function(_0xc0253d,_0x45b676,_0x16f17e){return _0xc0253d(_0x45b676,_0x16f17e);},'KOyPe':_0x59532f(0x148),'iuFyk':_0x59532f(0x111),'xtYZa':_0x59532f(0x10c),'XvAuk':function(_0x56aca8){return _0x56aca8();},'jDfMP':function(_0x3af7e4,_0x216645){return _0x3af7e4(_0x216645);},'KCaWF':function(_0x4aed57,_0x5491f5){return _0x4aed57(_0x5491f5);},'FCveo':function(_0x1a5524,_0x20e67d){return _0x1a5524(_0x20e67d);},'AGfqH':function(_0x1dfdd7,_0x5aa2e1){return _0x1dfdd7!==_0x5aa2e1;},'wbJoj':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','AadnW':_0x59532f(0x12b)},_0x24ad39=helper[_0x59532f(0x124)]();let _0x1442db;try{_0x1442db=helper[_0x59532f(0x123)](),_0x1442db[_0x59532f(0x115)]&&(_0x1442db[_0x59532f(0x166)]=_0x1442db[_0x59532f(0x115)]);}catch(_0x477aa1){return;}if(helper[_0x59532f(0x13c)]()){const _0x74de25={};_0x74de25['logLevel']=_0x5e7931[_0x59532f(0x175)],helper['setLogLevel'](_0x74de25,new Map(),new Map()),logger[_0x59532f(0x122)](_0x4f5c2e[_0x59532f(0x17e)]),logger['debug'](_0x4f5c2e[_0x59532f(0x10d)]);}class _0x20c949 extends _0x24ad39[_0x59532f(0x179)]{[_0x59532f(0x12e)](_0x5a072d){const _0x12e0a3=_0x59532f;if(_0x4f5c2e[_0x12e0a3(0x159)](_0x5a072d[_0x12e0a3(0x12f)],_0x4f5c2e['kveln'])&&_0x4f5c2e['aRLvy'](global['newHubUrl'],''))try{global[_0x12e0a3(0x171)]=_0x4f5c2e[_0x12e0a3(0x177)](_0x4f5c2e[_0x12e0a3(0x165)](_0x4f5c2e[_0x12e0a3(0x113)],global[_0x12e0a3(0x171)]),_0x4f5c2e[_0x12e0a3(0x154)]),this[_0x12e0a3(0x117)]=hubAllocator[_0x12e0a3(0x16f)](global[_0x12e0a3(0x171)]),logger[_0x12e0a3(0x13b)](_0x12e0a3(0x140)+global['newHubUrl']),global[_0x12e0a3(0x171)]='';}catch(_0x349b1a){logger['error'](_0x349b1a);}return super[_0x12e0a3(0x12e)](_0x5a072d);}}class _0x130fda extends _0x1442db[_0x59532f(0x166)]{[_0x59532f(0x139)](){const _0x2c66ee=_0x59532f;return this[_0x2c66ee(0x127)]=helper[_0x2c66ee(0x15d)](_0x5e7931),logger[_0x2c66ee(0x13b)]('Hub\x20url\x20set\x20to\x20'+this[_0x2c66ee(0x127)]),this;}[_0x59532f(0x116)](_0x34b895){const _0x57111c=_0x59532f;let _0x5b825d={};for(const _0x3ff51f in _0x34b895){switch(_0x3ff51f){case _0x4f5c2e[_0x57111c(0x12a)]:case _0x4f5c2e['ARCrn']:this[_0x57111c(0x109)]&&(_0x5b825d=this['chromeOptions_'][_0x57111c(0x152)](this[_0x57111c(0x109)][_0x57111c(0x131)])||{},this[_0x57111c(0x109)][_0x57111c(0x157)](this['chromeOptions_'][_0x57111c(0x131)],helper[_0x57111c(0x172)](_0x5b825d,_0x34b895[_0x3ff51f])));break;case _0x4f5c2e[_0x57111c(0x156)]:case _0x4f5c2e[_0x57111c(0x142)]:this[_0x57111c(0x15f)]&&(_0x5b825d=this[_0x57111c(0x15f)][_0x57111c(0x152)](this[_0x57111c(0x15f)][_0x57111c(0x131)])||{},this[_0x57111c(0x15f)]['set'](this[_0x57111c(0x15f)]['CAPABILITY_KEY'],helper[_0x57111c(0x172)](_0x5b825d,_0x34b895[_0x3ff51f])));break;case _0x4f5c2e[_0x57111c(0x151)]:case _0x4f5c2e[_0x57111c(0x16b)]:this[_0x57111c(0x11a)]&&(_0x5b825d=this[_0x57111c(0x11a)][_0x57111c(0x152)](this[_0x57111c(0x11a)]['CAPABILITY_KEY'])||{},this[_0x57111c(0x11a)][_0x57111c(0x157)](this[_0x57111c(0x11a)][_0x57111c(0x131)],helper[_0x57111c(0x172)](_0x5b825d,_0x34b895[_0x3ff51f])));break;case _0x4f5c2e['OscDo']:this['safariOptions_']&&(_0x5b825d=this['safariOptions_']['get'](this[_0x57111c(0x160)][_0x57111c(0x131)])||{},this[_0x57111c(0x160)]['set'](this['safariOptions_'][_0x57111c(0x131)],helper[_0x57111c(0x172)](_0x5b825d,_0x34b895[_0x3ff51f])));break;case _0x4f5c2e[_0x57111c(0x15a)]:case _0x4f5c2e['oEVTz']:this[_0x57111c(0x15c)]&&(_0x5b825d=this[_0x57111c(0x15c)][_0x57111c(0x152)](this[_0x57111c(0x15c)][_0x57111c(0x131)])||{},this[_0x57111c(0x15c)][_0x57111c(0x157)](this[_0x57111c(0x15c)]['CAPABILITY_KEY'],helper[_0x57111c(0x172)](_0x5b825d,_0x34b895[_0x3ff51f])));break;}}}['setCapabilities'](){const _0x321d4c=_0x59532f,_0x26134d={'PvxKb':function(_0x41c8d8,_0x30fbf3){return _0x4f5c2e['eVGUT'](_0x41c8d8,_0x30fbf3);},'pqtUq':_0x4f5c2e[_0x321d4c(0x163)]};return logger['debug'](_0x4f5c2e[_0x321d4c(0x129)]),this[_0x321d4c(0x116)](_0x5e7931[_0x321d4c(0x12d)]),Object['keys'](_0x5e7931[_0x321d4c(0x12d)])[_0x321d4c(0x10e)](_0x472b19=>{const _0x575c5f=_0x321d4c,_0x3bd299=this[_0x575c5f(0x14e)]['get'](_0x472b19);_0x26134d[_0x575c5f(0x10f)](typeof _0x3bd299,_0x26134d[_0x575c5f(0x164)])?this[_0x575c5f(0x14e)][_0x575c5f(0x157)](_0x472b19,helper[_0x575c5f(0x172)](_0x3bd299,_0x5e7931[_0x575c5f(0x12d)][_0x472b19])):this[_0x575c5f(0x14e)]['set'](_0x472b19,_0x5e7931[_0x575c5f(0x12d)][_0x472b19]);}),this;}[_0x59532f(0x11b)](){const _0x284057=_0x59532f,_0x51d4f6={'IJEjV':function(_0x488fcf,_0x4117cd,_0x3c2b61){return _0x4f5c2e['vKnci'](_0x488fcf,_0x4117cd,_0x3c2b61);},'nOaDk':function(_0x3c411e,_0x16308e,_0x5595d3){const _0x15dd0a=a33_0x115d;return _0x4f5c2e[_0x15dd0a(0x135)](_0x3c411e,_0x16308e,_0x5595d3);}};if(helper['isBrowserstackInfra']()){const _0x1ee57b=_0x4f5c2e[_0x284057(0x10a)][_0x284057(0x112)]('|');let _0x1a4e7e=0x0;while(!![]){switch(_0x1ee57b[_0x1a4e7e++]){case'0':this[_0x284057(0x138)]();continue;case'1':logger[_0x284057(0x13b)](_0x4f5c2e[_0x284057(0x141)]);continue;case'2':if(helper[_0x284057(0x155)](_0x5e7931[_0x284057(0x16d)][_0x284057(0x10b)]))this[_0x284057(0x13e)]=helper[_0x284057(0x170)](_0x5e7931['proxySettings'][_0x284057(0x10b)]);else _0x5e7931[_0x284057(0x16d)][_0x284057(0x10b)]&&(this[_0x284057(0x17b)]=_0x5e7931[_0x284057(0x16d)][_0x284057(0x10b)],logger['debug'](_0x284057(0x130)+this['proxy_']));continue;case'3':globals['getGlobal'](_0x4f5c2e[_0x284057(0x169)])&&(!_0x4f5c2e[_0x284057(0x173)](setExtension,this,_0x5e7931)&&globals['setGlobal'](_0x4f5c2e['xtYZa'],![]));continue;case'4':this[_0x284057(0x139)]();continue;case'5':_0x4f5c2e[_0x284057(0x11c)](isAccessibilityAutomationSession)&&_0x4f5c2e[_0x284057(0x153)](setAccessibilityCapabilities,_0x5e7931);continue;}break;}}const _0x30971c=super['build']();return _0x30971c[_0x284057(0x120)][_0x284057(0x119)](_0x138367=>{const _0x85e095=_0x284057;try{const _0x1942ec=_0x138367['caps_'][_0x85e095(0x152)](_0x4f5c2e[_0x85e095(0x11e)]);_0x1942ec?(logger['debug'](_0x85e095(0x14b)+_0x1942ec),hubAllocator[_0x85e095(0x136)](_0x1942ec),helper[_0x85e095(0x15b)](_0x1942ec)):logger[_0x85e095(0x13b)](_0x4f5c2e['gwTOP']);}catch(_0x371464){logger['debug'](_0x85e095(0x143)+_0x371464);}}),_0x30971c['quitCount_']=0x0,_0x30971c['then']&&_0x30971c[_0x284057(0x119)](_0x127a65=>{const _0x2de8d6=_0x284057,_0x4dad10={'fjgfX':function(_0x3aa572,_0x36d6d2,_0x5a2fe3){const _0x39457f=a33_0x115d;return _0x4f5c2e[_0x39457f(0x168)](_0x3aa572,_0x36d6d2,_0x5a2fe3);}};_0x4f5c2e[_0x2de8d6(0x168)](overrideQuit,_0x127a65,_0x30971c),_0x4f5c2e['gHxJF'](overrideTakeScreenshot,_0x127a65),helper[_0x2de8d6(0x132)](_0x127a65,_0x5e7931),_0x4f5c2e[_0x2de8d6(0x168)](overrideExecute,_0x127a65,_0x5e7931),_0x127a65['getAccessibilityResultsSummary']=async()=>{const _0x4ca3ec=_0x2de8d6;return await _0x4dad10[_0x4ca3ec(0x14f)](getAccessibilityResultsSummary,_0x127a65,global);},_0x127a65[_0x2de8d6(0x13f)]=async()=>{return await _0x51d4f6['IJEjV'](getAccessibilityResults,_0x127a65,global);};}),_0x30971c['getAccessibilityResultsSummary']=async()=>{const _0x27a1ed=_0x284057;return await _0x51d4f6[_0x27a1ed(0x107)](getAccessibilityResultsSummary,_0x30971c,global);},_0x30971c[_0x284057(0x13f)]=async()=>{return await _0x4f5c2e['Tcjwd'](getAccessibilityResults,_0x30971c,global);},_0x4f5c2e[_0x284057(0x176)](overrideTakeScreenshot,_0x30971c),_0x4f5c2e[_0x284057(0x16a)](overrideQuit,_0x30971c),helper['overrideGet'](_0x30971c,_0x5e7931),_0x4f5c2e[_0x284057(0x168)](overrideExecute,_0x30971c,_0x5e7931),helper[_0x284057(0x167)](global[_0x284057(0x114)])&&(global['__driversArray']=[]),helper['isUndefined'](global[_0x284057(0x144)])&&(global[_0x284057(0x144)]=[]),global[_0x284057(0x114)][_0x284057(0x147)](_0x30971c),global[_0x284057(0x16e)]=_0x30971c,_0x4f5c2e[_0x284057(0x159)](global[_0x284057(0x144)],undefined)&&global[_0x284057(0x144)][_0x284057(0x147)](_0x30971c),_0x549599&&helper['isUndefined'](_0x549599[_0x284057(0x121)][_0x284057(0x114)])&&(_0x549599[_0x284057(0x121)][_0x284057(0x114)]=[]),_0x549599&&_0x4f5c2e[_0x284057(0x16c)](_0x549599[_0x284057(0x121)][_0x284057(0x144)],undefined)&&(_0x549599[_0x284057(0x121)][_0x284057(0x144)][_0x284057(0x147)](_0x30971c),_0x549599[_0x284057(0x121)][_0x284057(0x114)][_0x284057(0x147)](_0x30971c)),_0x30971c;}}return _0x1442db[_0x59532f(0x115)]=_0x1442db['Builder'],_0x1442db['Builder']=_0x130fda,_0x24ad39[_0x59532f(0x179)]=_0x20c949,_0x1442db;};function a33_0x115d(_0x4fd9e4,_0x3845a1){const _0x5ef4a7=a33_0x5ef4();return a33_0x115d=function(_0x115dbe,_0x5b08fc){_0x115dbe=_0x115dbe-0x107;let _0x40cdae=_0x5ef4a7[_0x115dbe];return _0x40cdae;},a33_0x115d(_0x4fd9e4,_0x3845a1);}module['exports'][a33_0x11f884(0x126)]=modify;
1
+ const a33_0x48c6c9=a33_0x18fc;(function(_0x4975b4,_0x1ac3d5){const _0x7039a0=a33_0x18fc,_0x7ce738=_0x4975b4();while(!![]){try{const _0x7cc289=-parseInt(_0x7039a0(0x213))/0x1+parseInt(_0x7039a0(0x209))/0x2+-parseInt(_0x7039a0(0x1ef))/0x3+parseInt(_0x7039a0(0x1fc))/0x4+parseInt(_0x7039a0(0x1a9))/0x5+-parseInt(_0x7039a0(0x1aa))/0x6+-parseInt(_0x7039a0(0x1a2))/0x7*(parseInt(_0x7039a0(0x1ba))/0x8);if(_0x7cc289===_0x1ac3d5)break;else _0x7ce738['push'](_0x7ce738['shift']());}catch(_0x87b7ed){_0x7ce738['push'](_0x7ce738['shift']());}}}(a33_0x34c0,0xb5fff));const logger=require('../../../helpers/logger')[a33_0x48c6c9(0x20f)],helper=require(a33_0x48c6c9(0x1b2)),constants=require(a33_0x48c6c9(0x1c5)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x48c6c9(0x1bc)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a33_0x48c6c9(0x1b4)),{overrideExecute}=require(a33_0x48c6c9(0x1d5)),modify=(_0x4d3d2e,_0x4af0a8=null,_0x5e6440=![])=>{const _0x418926=a33_0x48c6c9,_0x34a86d={'pdDyo':function(_0x1f6c30,_0x2bd767){return _0x1f6c30!==_0x2bd767;},'xrJzD':_0x418926(0x1e3),'PyqqV':function(_0x449ec2,_0x36f7e0){return _0x449ec2+_0x36f7e0;},'Gdgqu':'https://','TEFep':_0x418926(0x1ab),'cbHQQ':'goog:chromeOptions','XbqEh':_0x418926(0x1a3),'SskQw':_0x418926(0x19d),'yrGjx':_0x418926(0x1d1),'yGjKV':_0x418926(0x1d3),'cVgTp':_0x418926(0x1bf),'jDSAY':'safari.options','weqNl':_0x418926(0x1fe),'kiiaQ':_0x418926(0x1df),'HTVsq':function(_0x2f9fc7,_0x2e55a0){return _0x2f9fc7===_0x2e55a0;},'MiqfC':'object','fjcVk':'Setting\x20Browserstack\x20capabilities','LQccj':_0x418926(0x1c9),'lhupN':_0x418926(0x1af),'mXhsN':_0x418926(0x208),'eFhHS':function(_0x44135d,_0x41b9ca,_0x515efe){return _0x44135d(_0x41b9ca,_0x515efe);},'OzIOr':function(_0x1d5a91,_0x6b009a,_0x1d0df9){return _0x1d5a91(_0x6b009a,_0x1d0df9);},'bQTaj':function(_0x54452f,_0x18d9cc){return _0x54452f(_0x18d9cc);},'ZvHXr':function(_0x3e40c5,_0x1df569,_0x36941e){return _0x3e40c5(_0x1df569,_0x36941e);},'XKwoI':_0x418926(0x1b9),'iGZEF':_0x418926(0x1b6),'bGJQi':function(_0x5ab54a,_0xe29a6d,_0x1b380e){return _0x5ab54a(_0xe29a6d,_0x1b380e);},'werDP':function(_0x2b4e8a){return _0x2b4e8a();},'VOPZR':_0x418926(0x1be),'KBQQR':function(_0x5f4660,_0x14749c,_0x48c898){return _0x5f4660(_0x14749c,_0x48c898);},'fksKs':function(_0x2b9db4,_0x3476a9){return _0x2b9db4!==_0x3476a9;},'DLYAG':function(_0x1ba215,_0x5ccf86){return _0x1ba215!==_0x5ccf86;},'bfSyb':_0x418926(0x1ae),'CSDSH':'Modifying\x20webdriver\x20builder'},_0x177e3e=helper[_0x418926(0x1ad)]();let _0x149c32;try{_0x149c32=helper['requireSeleniumWebdriver'](),_0x149c32[_0x418926(0x1bd)]&&(_0x149c32[_0x418926(0x1e5)]=_0x149c32['originalBuilder']);}catch(_0xad0a3d){return;}if(helper[_0x418926(0x210)]()){const _0x22b779={};_0x22b779[_0x418926(0x202)]=_0x4d3d2e[_0x418926(0x1c8)],helper[_0x418926(0x1a1)](_0x22b779,new Map(),new Map()),logger[_0x418926(0x1f8)](_0x34a86d[_0x418926(0x207)]),logger[_0x418926(0x1f9)](_0x34a86d[_0x418926(0x1e4)]);}class _0x52b4f3 extends _0x177e3e['HttpClient']{[_0x418926(0x20d)](_0x16c90b){const _0x524719=_0x418926;if(_0x34a86d['pdDyo'](_0x16c90b[_0x524719(0x1d7)],_0x34a86d[_0x524719(0x1fd)])&&_0x34a86d[_0x524719(0x211)](global[_0x524719(0x1d9)],''))try{global[_0x524719(0x1d9)]=_0x34a86d[_0x524719(0x1b8)](_0x34a86d['PyqqV'](_0x34a86d['Gdgqu'],global[_0x524719(0x1d9)]),_0x34a86d['TEFep']),this[_0x524719(0x1f7)]=hubAllocator['getRequestOptions'](global['newHubUrl']),logger[_0x524719(0x1f9)](_0x524719(0x1dc)+global['newHubUrl']),global[_0x524719(0x1d9)]='';}catch(_0x227968){logger[_0x524719(0x1a0)](_0x227968);}return super[_0x524719(0x20d)](_0x16c90b);}}class _0x239b9b extends _0x149c32['Builder']{['setServer'](){const _0xa21e7e=_0x418926;return this[_0xa21e7e(0x1ee)]=helper[_0xa21e7e(0x1ea)](_0x4d3d2e),logger[_0xa21e7e(0x1f9)](_0xa21e7e(0x204)+this[_0xa21e7e(0x1ee)]),this;}['__setBrowserOptions'](_0x3b08cb){const _0x23d4bf=_0x418926;let _0x2e0401={};for(const _0x2c429e in _0x3b08cb){switch(_0x2c429e){case _0x34a86d['cbHQQ']:case _0x34a86d['XbqEh']:this['chromeOptions_']&&(_0x2e0401=this['chromeOptions_'][_0x23d4bf(0x1cc)](this[_0x23d4bf(0x1f5)]['CAPABILITY_KEY'])||{},this[_0x23d4bf(0x1f5)][_0x23d4bf(0x1a4)](this[_0x23d4bf(0x1f5)]['CAPABILITY_KEY'],helper[_0x23d4bf(0x1a5)](_0x2e0401,_0x3b08cb[_0x2c429e])));break;case _0x34a86d[_0x23d4bf(0x19e)]:case _0x34a86d['yrGjx']:this[_0x23d4bf(0x1cb)]&&(_0x2e0401=this[_0x23d4bf(0x1cb)][_0x23d4bf(0x1cc)](this[_0x23d4bf(0x1cb)][_0x23d4bf(0x214)])||{},this[_0x23d4bf(0x1cb)]['set'](this['edgeOptions_'][_0x23d4bf(0x214)],helper[_0x23d4bf(0x1a5)](_0x2e0401,_0x3b08cb[_0x2c429e])));break;case _0x34a86d[_0x23d4bf(0x1f6)]:case _0x34a86d[_0x23d4bf(0x206)]:this[_0x23d4bf(0x1c0)]&&(_0x2e0401=this[_0x23d4bf(0x1c0)][_0x23d4bf(0x1cc)](this[_0x23d4bf(0x1c0)][_0x23d4bf(0x214)])||{},this['firefoxOptions_']['set'](this[_0x23d4bf(0x1c0)][_0x23d4bf(0x214)],helper[_0x23d4bf(0x1a5)](_0x2e0401,_0x3b08cb[_0x2c429e])));break;case _0x34a86d[_0x23d4bf(0x201)]:this[_0x23d4bf(0x1fb)]&&(_0x2e0401=this['safariOptions_']['get'](this[_0x23d4bf(0x1fb)][_0x23d4bf(0x214)])||{},this['safariOptions_'][_0x23d4bf(0x1a4)](this['safariOptions_'][_0x23d4bf(0x214)],helper[_0x23d4bf(0x1a5)](_0x2e0401,_0x3b08cb[_0x2c429e])));break;case _0x34a86d[_0x23d4bf(0x1ce)]:case _0x34a86d[_0x23d4bf(0x1b0)]:this['ieOptions_']&&(_0x2e0401=this[_0x23d4bf(0x1e1)][_0x23d4bf(0x1cc)](this[_0x23d4bf(0x1e1)][_0x23d4bf(0x214)])||{},this[_0x23d4bf(0x1e1)][_0x23d4bf(0x1a4)](this[_0x23d4bf(0x1e1)][_0x23d4bf(0x214)],helper[_0x23d4bf(0x1a5)](_0x2e0401,_0x3b08cb[_0x2c429e])));break;}}}['setCapabilities'](){const _0x1ccd75=_0x418926,_0xbd3cb2={'xSvQR':function(_0x423027,_0x334f45){const _0x2d13ff=a33_0x18fc;return _0x34a86d[_0x2d13ff(0x1ed)](_0x423027,_0x334f45);},'TlWZY':_0x34a86d[_0x1ccd75(0x1d2)]};return logger[_0x1ccd75(0x1f9)](_0x34a86d[_0x1ccd75(0x1b5)]),this[_0x1ccd75(0x1e0)](_0x4d3d2e[_0x1ccd75(0x1b3)]),Object[_0x1ccd75(0x1f2)](_0x4d3d2e[_0x1ccd75(0x1b3)])[_0x1ccd75(0x1ac)](_0xd46076=>{const _0x10f355=_0x1ccd75,_0x3ecd5a=this[_0x10f355(0x1cd)][_0x10f355(0x1cc)](_0xd46076);_0xbd3cb2['xSvQR'](typeof _0x3ecd5a,_0xbd3cb2[_0x10f355(0x1d4)])?this[_0x10f355(0x1cd)][_0x10f355(0x1a4)](_0xd46076,helper[_0x10f355(0x1a5)](_0x3ecd5a,_0x4d3d2e[_0x10f355(0x1b3)][_0xd46076])):this[_0x10f355(0x1cd)][_0x10f355(0x1a4)](_0xd46076,_0x4d3d2e[_0x10f355(0x1b3)][_0xd46076]);}),this;}[_0x418926(0x1b1)](){const _0x386b12=_0x418926,_0x1eda15={'uersw':function(_0xc18579,_0x566b43,_0xd872a7){const _0x2053fe=a33_0x18fc;return _0x34a86d[_0x2053fe(0x1de)](_0xc18579,_0x566b43,_0xd872a7);}};if(helper[_0x386b12(0x210)]()){const _0x326236=_0x34a86d[_0x386b12(0x1d6)][_0x386b12(0x1dd)]('|');let _0x34cde2=0x0;while(!![]){switch(_0x326236[_0x34cde2++]){case'0':globals['getGlobal'](_0x34a86d[_0x386b12(0x212)])&&(!_0x34a86d[_0x386b12(0x20b)](setExtension,this,_0x4d3d2e)&&globals[_0x386b12(0x1c2)](_0x34a86d['iGZEF'],![]));continue;case'1':if(helper[_0x386b12(0x203)](_0x4d3d2e[_0x386b12(0x1b7)]['proxyUrl']))this[_0x386b12(0x20c)]=helper[_0x386b12(0x1cf)](_0x4d3d2e[_0x386b12(0x1b7)][_0x386b12(0x1e7)]);else _0x4d3d2e[_0x386b12(0x1b7)][_0x386b12(0x1e7)]&&(this[_0x386b12(0x1a8)]=_0x4d3d2e[_0x386b12(0x1b7)][_0x386b12(0x1e7)],logger[_0x386b12(0x1f9)](_0x386b12(0x1f3)+this['proxy_']));continue;case'2':this[_0x386b12(0x1ff)]();continue;case'3':_0x34a86d['werDP'](isAccessibilityAutomationSession)&&_0x34a86d[_0x386b12(0x1f0)](setAccessibilityCapabilities,_0x4d3d2e);continue;case'4':this['setCapabilities']();continue;case'5':logger['debug'](_0x34a86d['VOPZR']);continue;}break;}}const _0x21ffbf=super['build']();return _0x21ffbf[_0x386b12(0x205)][_0x386b12(0x1d8)](_0x108f88=>{const _0x4831cc=_0x386b12;try{const _0x1e23d3=_0x108f88['caps_']['get'](_0x34a86d[_0x4831cc(0x1fa)]);_0x1e23d3?(logger[_0x4831cc(0x1f9)](_0x4831cc(0x1a6)+_0x1e23d3),hubAllocator[_0x4831cc(0x1bb)](_0x1e23d3),helper[_0x4831cc(0x1ec)](_0x1e23d3)):logger['debug'](_0x34a86d[_0x4831cc(0x1da)]);}catch(_0x5dfd54){logger[_0x4831cc(0x1f9)](_0x4831cc(0x1d0)+_0x5dfd54);}}),_0x21ffbf[_0x386b12(0x20a)]=0x0,_0x21ffbf[_0x386b12(0x1d8)]&&_0x21ffbf[_0x386b12(0x1d8)](_0x4288b0=>{const _0x5dc699=_0x386b12,_0x35ac42=_0x34a86d[_0x5dc699(0x19f)]['split']('|');let _0x4c628b=0x0;while(!![]){switch(_0x35ac42[_0x4c628b++]){case'0':_0x34a86d[_0x5dc699(0x1e6)](overrideQuit,_0x4288b0,_0x21ffbf);continue;case'1':_0x4288b0['getAccessibilityResultsSummary']=async()=>{const _0x64e852=_0x5dc699;return await _0x1eda15[_0x64e852(0x1c3)](getAccessibilityResultsSummary,_0x4288b0,global);};continue;case'2':_0x34a86d[_0x5dc699(0x1de)](overrideExecute,_0x4288b0,_0x4d3d2e);continue;case'3':_0x4288b0[_0x5dc699(0x1eb)]=async()=>{return await _0x1eda15['uersw'](getAccessibilityResults,_0x4288b0,global);};continue;case'4':_0x34a86d[_0x5dc699(0x1f0)](overrideTakeScreenshot,_0x4288b0);continue;case'5':helper[_0x5dc699(0x200)](_0x4288b0,_0x4d3d2e);continue;}break;}}),_0x21ffbf[_0x386b12(0x1c1)]=async()=>{const _0x23e245=_0x386b12;return await _0x34a86d[_0x23e245(0x1f1)](getAccessibilityResultsSummary,_0x21ffbf,global);},_0x21ffbf[_0x386b12(0x1eb)]=async()=>{const _0x4015b8=_0x386b12;return await _0x34a86d[_0x4015b8(0x1e6)](getAccessibilityResults,_0x21ffbf,global);},_0x34a86d[_0x386b12(0x1f0)](overrideTakeScreenshot,_0x21ffbf),_0x34a86d[_0x386b12(0x1f0)](overrideQuit,_0x21ffbf),helper['overrideGet'](_0x21ffbf,_0x4d3d2e),_0x34a86d[_0x386b12(0x1c7)](overrideExecute,_0x21ffbf,_0x4d3d2e),helper['isUndefined'](global['__driversArray'])&&(global[_0x386b12(0x20e)]=[]),helper[_0x386b12(0x1e9)](global[_0x386b12(0x1e8)])&&(global[_0x386b12(0x1e8)]=[]),global[_0x386b12(0x20e)][_0x386b12(0x1c4)](_0x21ffbf),global[_0x386b12(0x1ca)]=_0x21ffbf,_0x34a86d[_0x386b12(0x1c6)](global[_0x386b12(0x1e8)],undefined)&&global[_0x386b12(0x1e8)][_0x386b12(0x1c4)](_0x21ffbf),_0x4af0a8&&helper[_0x386b12(0x1e9)](_0x4af0a8['global'][_0x386b12(0x20e)])&&(_0x4af0a8[_0x386b12(0x1e2)][_0x386b12(0x20e)]=[]),_0x4af0a8&&_0x34a86d[_0x386b12(0x1f4)](_0x4af0a8['global']['__drivers'],undefined)&&(_0x4af0a8[_0x386b12(0x1e2)][_0x386b12(0x1e8)][_0x386b12(0x1c4)](_0x21ffbf),_0x4af0a8[_0x386b12(0x1e2)][_0x386b12(0x20e)][_0x386b12(0x1c4)](_0x21ffbf)),_0x21ffbf;}}return _0x149c32[_0x418926(0x1bd)]=_0x149c32[_0x418926(0x1e5)],_0x149c32[_0x418926(0x1e5)]=_0x239b9b,_0x177e3e[_0x418926(0x1db)]=_0x52b4f3,_0x149c32;};function a33_0x18fc(_0x50e050,_0xc52d3){const _0x34c0f3=a33_0x34c0();return a33_0x18fc=function(_0x18fcad,_0x218b92){_0x18fcad=_0x18fcad-0x19d;let _0x185263=_0x34c0f3[_0x18fcad];return _0x185263;},a33_0x18fc(_0x50e050,_0xc52d3);}function a33_0x34c0(){const _0x306ad0=['__setBrowserOptions','ieOptions_','global','/session','CSDSH','Builder','eFhHS','proxyUrl','__drivers','isUndefined','getHubUrl','getAccessibilityResults','storeOptimalHubUrl','HTVsq','url_','3695472STVkTE','bQTaj','ZvHXr','keys','Proxy\x20set\x20to\x20','DLYAG','chromeOptions_','yGjKV','options_','info','debug','LQccj','safariOptions_','4522744fkCMdo','xrJzD','se:ieOptions','setServer','overrideGet','jDSAY','logLevel','isPacProxy','Hub\x20url\x20set\x20to\x20','session_','cVgTp','bfSyb','0|4|5|2|1|3','2346934adVIgt','quitCount_','bGJQi','agent_','send','__driversArray','winstonLogger','isBrowserstackInfra','pdDyo','iGZEF','571934uwcqDc','CAPABILITY_KEY','exports','ms:edgeOptions','SskQw','mXhsN','error','setLogLevel','7QjzonN','chromeOptions','set','mergeDeep','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','browserstackAgentObservability','proxy_','6739490vlDVhg','1146246xTDsKH','/wd/hub','forEach','requireHttpClient','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','kiiaQ','build','../../../helpers/helper','capability','../../../helpers/globals','fjcVk','isAccessibilityPlatform','proxySettings','PyqqV','3|2|4|1|0|5','7294248tcNrvD','updateHubUrl','../../../helpers/patchHelpers','originalBuilder','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','firefoxOptions','firefoxOptions_','getAccessibilityResultsSummary','setGlobal','uersw','push','../../../bin/utils/constants','fksKs','KBQQR','browserStackLogLevel','optimalHubUrl','__driver','edgeOptions_','get','capabilities_','weqNl','getHttpAgent','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','edgeOptions','MiqfC','moz:firefoxOptions','TlWZY','./helpers/patchHelper','XKwoI','path','then','newHubUrl','lhupN','HttpClient','New\x20hub\x20url\x20set\x20to\x20','split','OzIOr','ieOptions'];a33_0x34c0=function(){return _0x306ad0;};return a33_0x34c0();}module[a33_0x48c6c9(0x215)][a33_0x48c6c9(0x1a7)]=modify;
@@ -1 +1 @@
1
- function a34_0x6273(){const _0x3eb0de=['7378049PjaPOc','timeout','1264896jHlUVc','../../../bin/utils/constants','707427LOdejx','116382yfPASp','6220PhJfwB','mochaHooks','3021370FjMryC','OYjTO','1902DbnPmQ','4426998HFLRdk','104vIRZxu'];a34_0x6273=function(){return _0x3eb0de;};return a34_0x6273();}const a34_0x4f75a0=a34_0x4e3d;function a34_0x4e3d(_0x15ec6f,_0x2c9e59){const _0x627393=a34_0x6273();return a34_0x4e3d=function(_0x4e3d42,_0x1b6144){_0x4e3d42=_0x4e3d42-0x175;let _0x100880=_0x627393[_0x4e3d42];return _0x100880;},a34_0x4e3d(_0x15ec6f,_0x2c9e59);}(function(_0x23abd7,_0x3a2199){const _0x2bb83f=a34_0x4e3d,_0x2a2825=_0x23abd7();while(!![]){try{const _0xfb77c4=parseInt(_0x2bb83f(0x17a))/0x1+-parseInt(_0x2bb83f(0x17b))/0x2+parseInt(_0x2bb83f(0x180))/0x3*(-parseInt(_0x2bb83f(0x17c))/0x4)+-parseInt(_0x2bb83f(0x17e))/0x5+parseInt(_0x2bb83f(0x181))/0x6+-parseInt(_0x2bb83f(0x176))/0x7+parseInt(_0x2bb83f(0x175))/0x8*(parseInt(_0x2bb83f(0x178))/0x9);if(_0xfb77c4===_0x3a2199)break;else _0x2a2825['push'](_0x2a2825['shift']());}catch(_0x4ac793){_0x2a2825['push'](_0x2a2825['shift']());}}}(a34_0x6273,0x8b286));const requestSpy=require('../../../helpers/request-spy'),constants=require(a34_0x4f75a0(0x179)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a34_0x4f75a0(0x17d)]={'beforeAll'(){const _0x5af8a9=a34_0x4f75a0,_0x4813e1={'OYjTO':function(_0x34e9a8){return _0x34e9a8();}},_0x46cd7b='browserstack internal helper hook';_0x4813e1[_0x5af8a9(0x17f)](addRequestSpy);},'afterAll'(){const _0x19131b=a34_0x4f75a0,_0x17ed32='browserstack internal helper hook';this[_0x19131b(0x177)](0xea60),requestSpy['restore']();}};
1
+ const a34_0xd5041c=a34_0x1a2e;function a34_0x1a2e(_0x1a5087,_0x2cdd08){const _0x179370=a34_0x1793();return a34_0x1a2e=function(_0x1a2ed9,_0x5e361f){_0x1a2ed9=_0x1a2ed9-0x85;let _0x305db9=_0x179370[_0x1a2ed9];return _0x305db9;},a34_0x1a2e(_0x1a5087,_0x2cdd08);}(function(_0x36dcbd,_0x4eb44d){const _0x3a85de=a34_0x1a2e,_0x54d75d=_0x36dcbd();while(!![]){try{const _0x3e0397=-parseInt(_0x3a85de(0x89))/0x1+parseInt(_0x3a85de(0x87))/0x2*(parseInt(_0x3a85de(0x86))/0x3)+parseInt(_0x3a85de(0x8b))/0x4+parseInt(_0x3a85de(0x91))/0x5*(parseInt(_0x3a85de(0x90))/0x6)+parseInt(_0x3a85de(0x85))/0x7+parseInt(_0x3a85de(0x92))/0x8+-parseInt(_0x3a85de(0x8e))/0x9;if(_0x3e0397===_0x4eb44d)break;else _0x54d75d['push'](_0x54d75d['shift']());}catch(_0x1446a5){_0x54d75d['push'](_0x54d75d['shift']());}}}(a34_0x1793,0x42708));const requestSpy=require('../../../helpers/request-spy'),constants=require(a34_0xd5041c(0x88)),{addRequestSpy}=require(a34_0xd5041c(0x8c));exports[a34_0xd5041c(0x8f)]={'beforeAll'(){const _0x5a2380={'SmkVK':function(_0x21e341){return _0x21e341();}},_0x11366b='browserstack internal helper hook';_0x5a2380['SmkVK'](addRequestSpy);},'afterAll'(){const _0x32dbda=a34_0xd5041c,_0x4c2d1f='browserstack internal helper hook';this[_0x32dbda(0x8a)](0xea60),requestSpy[_0x32dbda(0x8d)]();}};function a34_0x1793(){const _0x3d7bd4=['../../../helpers/test-observability/utils','restore','9660555bykGdu','mochaHooks','255984amzuxn','20pZeehO','111920fJDFWI','2260748zZTTpP','3kWfquD','710298eOkGcS','../../../bin/utils/constants','1942UZMMqt','timeout','1938856ooewjs'];a34_0x1793=function(){return _0x3d7bd4;};return a34_0x1793();}
@@ -1 +1 @@
1
- const a35_0x519ef1=a35_0x14bb;(function(_0x31a6b1,_0x12a468){const _0x21bc45=a35_0x14bb,_0x4eb348=_0x31a6b1();while(!![]){try{const _0x593a7b=parseInt(_0x21bc45(0x1b2))/0x1*(-parseInt(_0x21bc45(0x200))/0x2)+parseInt(_0x21bc45(0x1d8))/0x3+parseInt(_0x21bc45(0x1b9))/0x4*(parseInt(_0x21bc45(0x1d2))/0x5)+-parseInt(_0x21bc45(0x1df))/0x6+parseInt(_0x21bc45(0x1eb))/0x7+parseInt(_0x21bc45(0x1b8))/0x8*(parseInt(_0x21bc45(0x1f2))/0x9)+-parseInt(_0x21bc45(0x1bc))/0xa;if(_0x593a7b===_0x12a468)break;else _0x4eb348['push'](_0x4eb348['shift']());}catch(_0x4ca23d){_0x4eb348['push'](_0x4eb348['shift']());}}}(a35_0x3ccd,0x8c683));function a35_0x3ccd(){const _0x2d968b=['acwSZ','suites','qBLDH','push','substring','hook','parent','IuEgz','platformVersion','emit','_beforeEach','get','51978lVutpL','GOIqQ','../../../helpers/test-observability/utils','seMAT','type','tBHvd','gFFKL','mgjjV','_afterEach','35xuhnTe','getTestEnv','WZXOb','fUDXP','split','IoOgS','104wVoAvW','1507020adfsKj','hookAnalyticsId','wPImN','11543500DGfRGn','zFYjB','getCapabilities','pid','gQmRk','generic','_beforeAll','qvfFl','getHookSkippedTests','gugov','YCEfz','jjsrA','pending','toISOString','oEDyr','forEach','failed','hjlUo','GPjAS','KeCMc','tests','mapTestHooks','15DxmBij','sendPlatformDetails','_afterAll','js-','../../../helpers/testhub/utils','TEST_PLATFORM','1704051EvIdfo','markedStatus','filter','../../../helpers/helper','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','map_','__cloud_provider___','5664234BCPcIj','lodash','slice','browserstack','sAtDx','daZYB','string','../../utils/logPatcher','concat','getSession','getBrowserVersion','bs:addPlatformDetails:','6129837DnFeeH','iVPQq','GZBvc','HFKuI','state','LbCbR','indexOf','698634VsSHsg','RsUCy'];a35_0x3ccd=function(){return _0x2d968b;};return a35_0x3ccd();}const {v4:uuidv4}=require('uuid'),{name,version}=require('../../../../package.json'),logPatcher=require(a35_0x519ef1(0x1e6)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a35_0x519ef1(0x1db)),{shouldProcessEventForTesthub}=require(a35_0x519ef1(0x1d6)),{isFunction}=require(a35_0x519ef1(0x1e0)),{patchConsoleLogger}=require(a35_0x519ef1(0x202));function a35_0x14bb(_0x58677c,_0x572df6){const _0x3ccde4=a35_0x3ccd();return a35_0x14bb=function(_0x14bbe3,_0x4251db){_0x14bbe3=_0x14bbe3-0x1ac;let _0x59390e=_0x3ccde4[_0x14bbe3];return _0x59390e;},a35_0x14bb(_0x58677c,_0x572df6);}patchConsoleLogger(),exports[a35_0x519ef1(0x1b3)]=()=>{const _0x5e6f2f=a35_0x519ef1,_0x3d3a7f={'mgjjV':_0x5e6f2f(0x1c1),'rSBkV':function(_0x35617a){return _0x35617a();}};return{'ci':_0x3d3a7f[_0x5e6f2f(0x1b0)],'key':_0x3d3a7f['rSBkV'](uuidv4),'version':version,'collector':_0x5e6f2f(0x1d5)+name};},exports['getHookDetails']=_0x1a6862=>{const _0x560fd1=a35_0x519ef1,_0x5aa46b={};_0x5aa46b['iVPQq']=function(_0x57c00a,_0xf297cd){return _0x57c00a!==_0xf297cd;},_0x5aa46b[_0x560fd1(0x1c6)]=_0x560fd1(0x1e5),_0x5aa46b[_0x560fd1(0x1ed)]=function(_0x68b254,_0xcc2bf1){return _0x68b254!==_0xcc2bf1;},_0x5aa46b[_0x560fd1(0x1ca)]='hook:',_0x5aa46b[_0x560fd1(0x1ee)]=function(_0x1d21a9,_0x412154){return _0x1d21a9!==_0x412154;},_0x5aa46b[_0x560fd1(0x1c3)]='hook';const _0x46c6dc=_0x5aa46b;if(!_0x1a6862||_0x46c6dc[_0x560fd1(0x1ec)](typeof _0x1a6862,_0x46c6dc[_0x560fd1(0x1c6)]))return[null,null];if(_0x46c6dc['GZBvc'](_0x1a6862[_0x560fd1(0x1f1)](_0x46c6dc[_0x560fd1(0x1ca)]),-0x1)){const _0x1628b7=_0x1a6862['split'](_0x46c6dc[_0x560fd1(0x1ca)]);return[_0x1628b7[0x0]['slice'](0x0,-0x1)[_0x560fd1(0x1b6)]('\x22')[0x1],_0x1628b7[0x1][_0x560fd1(0x1f8)](0x1)];}else{if(_0x46c6dc[_0x560fd1(0x1ee)](_0x1a6862['indexOf'](_0x46c6dc[_0x560fd1(0x1c3)]),-0x1)){const _0x34aaa1=_0x1a6862[_0x560fd1(0x1b6)](_0x46c6dc[_0x560fd1(0x1c3)]);return[_0x34aaa1[0x0][_0x560fd1(0x1e1)](0x0,-0x1)[_0x560fd1(0x1b6)]('\x22')[0x1],_0x1a6862];}}return[null,null];},exports['getHooksForTest']=_0x48e409=>{const _0x4e54ac=a35_0x519ef1,_0x112991={'CYgKD':function(_0x4f084e,_0xdc7d65){return _0x4f084e(_0xdc7d65);},'gQmRk':_0x4e54ac(0x1c2),'tBHvd':_0x4e54ac(0x1d4),'fUDXP':_0x4e54ac(0x1fe),'NUDCa':'_afterEach'};if(!_0x48e409||!_0x48e409[_0x4e54ac(0x1fa)])return[];const _0x46c0fe=[];return[_0x112991[_0x4e54ac(0x1c0)],_0x112991[_0x4e54ac(0x1ae)],_0x112991[_0x4e54ac(0x1b5)],_0x112991['NUDCa']][_0x4e54ac(0x1cb)](_0x380bf9=>{const _0xffbb99=_0x4e54ac,_0x563434={'jkXjo':function(_0xae32bd,_0xa857df){return _0x112991['CYgKD'](_0xae32bd,_0xa857df);}},_0x4a7176=_0x48e409[_0xffbb99(0x1fa)][_0x380bf9]||[];_0x4a7176[_0xffbb99(0x1cb)](_0x3133ae=>{const _0x30c25a=_0xffbb99;_0x3133ae[_0x30c25a(0x1ba)]&&!_0x563434['jkXjo'](isInternalHook,_0x3133ae['fn'])&&_0x46c0fe[_0x30c25a(0x1f7)](_0x3133ae[_0x30c25a(0x1ba)]);});}),[..._0x46c0fe,...exports['getHooksForTest'](_0x48e409[_0x4e54ac(0x1fa)])];},exports[a35_0x519ef1(0x1d1)]=_0x23b7e9=>{const _0x49fc5d=a35_0x519ef1,_0x40169a={'OjfOb':function(_0x54ce04){return _0x54ce04();},'hjlUo':function(_0x1ec06c,_0x326878){return _0x1ec06c===_0x326878;},'IoOgS':_0x49fc5d(0x1b1),'OvrMS':_0x49fc5d(0x1c2),'gugov':_0x49fc5d(0x1d4),'daZYB':_0x49fc5d(0x1fe)};if(!_0x23b7e9||!_0x23b7e9['parent'])return;[_0x40169a['OvrMS'],_0x40169a[_0x49fc5d(0x1c5)],_0x40169a[_0x49fc5d(0x1e4)],_0x40169a[_0x49fc5d(0x1b7)]][_0x49fc5d(0x1cb)](_0x1d242b=>{const _0x1b4462=_0x49fc5d,_0x526810={'gFFKL':function(_0x49ee98){return _0x40169a['OjfOb'](_0x49ee98);},'LbCbR':function(_0xa84125,_0x233208){const _0x4f8ce4=a35_0x14bb;return _0x40169a[_0x4f8ce4(0x1cd)](_0xa84125,_0x233208);},'RsUCy':_0x40169a['IoOgS']},_0x598a87=_0x23b7e9[_0x1b4462(0x1fa)][_0x1d242b]||[];_0x598a87[_0x1b4462(0x1cb)](_0x119e75=>{const _0x40a2be=_0x1b4462;if(!_0x119e75[_0x40a2be(0x1ba)])_0x119e75['hookAnalyticsId']=_0x526810['gFFKL'](uuidv4);else _0x119e75[_0x40a2be(0x1d9)]&&_0x526810[_0x40a2be(0x1f0)](_0x1d242b,_0x526810[_0x40a2be(0x1f3)])&&(_0x119e75[_0x40a2be(0x1ba)]=_0x526810[_0x40a2be(0x1af)](uuidv4),delete _0x119e75[_0x40a2be(0x1d9)]);});}),exports[_0x49fc5d(0x1d1)](_0x23b7e9[_0x49fc5d(0x1fa)]);},exports[a35_0x519ef1(0x1d3)]=async(_0x5e6eff,_0x534e4b)=>{const _0x34dc70=a35_0x519ef1,_0x4d39ac={'GOIqQ':function(_0x52afd2){return _0x52afd2();},'IuEgz':function(_0x4c2008,_0x4db3d3){return _0x4c2008(_0x4db3d3);},'jjsrA':_0x34dc70(0x1fc),'WZXOb':function(_0x4b6b03,_0x309e27){return _0x4b6b03===_0x309e27;},'wPImN':_0x34dc70(0x1e2),'KeCMc':'unknown_grid','acwSZ':_0x34dc70(0x1d7)};try{if(!_0x4d39ac[_0x34dc70(0x201)](shouldProcessEventForTesthub))return;const _0x37ab21=await _0x5e6eff['getCapabilities'](),_0x2e942a=await _0x5e6eff[_0x34dc70(0x1e8)](),_0x446753={},_0x451478=Object['fromEntries'](_0x2e942a[_0x34dc70(0x1be)]()[_0x34dc70(0x1dd)]),_0x57cbea={'product':_0x4d39ac[_0x34dc70(0x1fb)](getObservabilityLinkedProductName,_0x451478),'capabilities':_0x451478,'platform':_0x37ab21['getPlatform'](),'platform_version':_0x37ab21[_0x34dc70(0x1ff)](_0x4d39ac[_0x34dc70(0x1c7)])?_0x37ab21[_0x34dc70(0x1ff)](_0x4d39ac['jjsrA']):_0x4d39ac[_0x34dc70(0x1fb)](getPlatformVersion,_0x4d39ac[_0x34dc70(0x1b4)](global[_0x34dc70(0x1de)],_0x4d39ac[_0x34dc70(0x1bb)])),'browser':_0x37ab21['getBrowserName'](),'browser_version':_0x37ab21[_0x34dc70(0x1e9)](),'session_id':_0x2e942a['toJSON']()};global['__cloud_provider___']?_0x446753[global[_0x34dc70(0x1de)]]=_0x57cbea:_0x446753[_0x4d39ac[_0x34dc70(0x1cf)]]=_0x57cbea,process[_0x34dc70(0x1fd)](_0x34dc70(0x1ea)+process[_0x34dc70(0x1bf)],{'timestamp':new Date()[_0x34dc70(0x1c9)](),'level':null,'message':null,'kind':_0x4d39ac[_0x34dc70(0x1f4)],'http_response':_0x446753,'uuid':_0x534e4b});}catch(_0x1b8e1a){_0x4d39ac[_0x34dc70(0x1fb)](debug,_0x34dc70(0x1dc)+_0x1b8e1a);}},exports[a35_0x519ef1(0x1c4)]=_0x2fd6fa=>{const _0x3985e6=a35_0x519ef1,_0x281922={};_0x281922[_0x3985e6(0x1ac)]=function(_0x504cdb,_0x69da1c){return _0x504cdb!==_0x69da1c;},_0x281922[_0x3985e6(0x1e3)]=_0x3985e6(0x1f9),_0x281922[_0x3985e6(0x1ce)]='passed',_0x281922[_0x3985e6(0x1bd)]=function(_0xa585e9,_0x11cb14){return _0xa585e9!==_0x11cb14;},_0x281922[_0x3985e6(0x1f6)]=_0x3985e6(0x1cc);const _0x161427=_0x281922,_0x233d17=_0x2fd6fa[_0x3985e6(0x1f5)]['reduce']((_0x3dc177,_0x23db9e)=>{const _0x3fd34b=_0x3985e6,_0x565633=exports['getHookSkippedTests'](_0x23db9e);return _0x565633&&(_0x3dc177=_0x3dc177[_0x3fd34b(0x1e7)](_0x565633)),_0x3dc177;},[]),_0x57b356=_0x2fd6fa[_0x3985e6(0x1d0)][_0x3985e6(0x1da)](_0x2fab43=>{const _0x1b34bc=_0x3985e6,_0x42d541=_0x161427['seMAT'](_0x2fab43[_0x1b34bc(0x1ad)],_0x161427[_0x1b34bc(0x1e3)])&&!_0x2fab43[_0x1b34bc(0x1d9)]&&_0x161427[_0x1b34bc(0x1ac)](_0x2fab43[_0x1b34bc(0x1ef)],_0x161427[_0x1b34bc(0x1ce)])&&_0x161427[_0x1b34bc(0x1bd)](_0x2fab43[_0x1b34bc(0x1ef)],_0x161427['qBLDH'])&&!_0x2fab43[_0x1b34bc(0x1c8)];return _0x42d541;});return _0x57b356[_0x3985e6(0x1e7)](_0x233d17);};
1
+ function a35_0x1199(_0xed2079,_0x4cba72){const _0x422c5d=a35_0x422c();return a35_0x1199=function(_0x11999c,_0x581a33){_0x11999c=_0x11999c-0x81;let _0x57bf93=_0x422c5d[_0x11999c];return _0x57bf93;},a35_0x1199(_0xed2079,_0x4cba72);}const a35_0x1a1594=a35_0x1199;(function(_0x4d8fab,_0x3b455d){const _0x2758d3=a35_0x1199,_0x95ee40=_0x4d8fab();while(!![]){try{const _0xeab3f8=parseInt(_0x2758d3(0xb2))/0x1+-parseInt(_0x2758d3(0xa1))/0x2+parseInt(_0x2758d3(0x89))/0x3*(parseInt(_0x2758d3(0xb1))/0x4)+-parseInt(_0x2758d3(0xca))/0x5*(parseInt(_0x2758d3(0x94))/0x6)+parseInt(_0x2758d3(0x8d))/0x7*(parseInt(_0x2758d3(0xa3))/0x8)+-parseInt(_0x2758d3(0x8e))/0x9*(-parseInt(_0x2758d3(0xb8))/0xa)+parseInt(_0x2758d3(0x8a))/0xb;if(_0xeab3f8===_0x3b455d)break;else _0x95ee40['push'](_0x95ee40['shift']());}catch(_0x52e613){_0x95ee40['push'](_0x95ee40['shift']());}}}(a35_0x422c,0x1996a));const {v4:uuidv4}=require(a35_0x1a1594(0xba)),{name,version}=require(a35_0x1a1594(0xb5)),logPatcher=require(a35_0x1a1594(0xb9)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x1a1594(0xaa)),{consoleHolder}=require(a35_0x1a1594(0x85)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a35_0x1a1594(0xc7)),{isFunction}=require(a35_0x1a1594(0x87)),{patchConsoleLogger}=require(a35_0x1a1594(0xaa));function a35_0x422c(){const _0x10da3d=['LLgKp','_afterEach','ZfTLk','nbUSj','browserstack','parent','toISOString','qpAkS','tnxKr','234498uMPewA','LSmva','623432JFsVkb','RZwBk','IVPla','failed','anhYr','getHookSkippedTests','substring','../../../helpers/test-observability/utils','generic','split','WOjdp','fromEntries','hook:','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','4WLtCCz','46778shUwMx','getSession','TBcnL','../../../../package.json','platformVersion','string','10YMwUmz','../../utils/logPatcher','uuid','EDPQN','getBrowserName','slice','getPlatform','filter','zUhjB','suites','GOlwk','CuLEd','hook','hookAnalyticsId','bs:addPlatformDetails:','../../../helpers/testhub/utils','FwoeH','QpqGf','20edbgQz','PeVRu','mapTestHooks','markedStatus','getCapabilities','lnGcV','pending','concat','passed','uKKck','__cloud_provider___','get','AJVdB','jESSp','getHookDetails','emit','byMIt','map_','XcjKg','../../../helpers/test-observability/constants','state','lodash','GfWna','29901oTMrIq','1387639DJlBUr','indexOf','_beforeEach','14TrQJeo','380691Jxuvxp','forEach','_beforeAll','TEST_PLATFORM','ajrry','_afterAll','238488drZLtD','PdpwU','BVUbR','IbmyD'];a35_0x422c=function(){return _0x10da3d;};return a35_0x422c();}patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x2ed6a8=a35_0x1a1594,_0x5d6b41={'AJVdB':_0x2ed6a8(0xab),'rpaSb':function(_0x45ec13){return _0x45ec13();}};return{'ci':_0x5d6b41[_0x2ed6a8(0xd6)],'key':_0x5d6b41['rpaSb'](uuidv4),'version':version,'collector':'js-'+name};},exports[a35_0x1a1594(0xd8)]=_0x263879=>{const _0x2b4985=a35_0x1a1594,_0x1c2a29={};_0x1c2a29[_0x2b4985(0xc0)]=function(_0x4635c3,_0x505a93){return _0x4635c3!==_0x505a93;},_0x1c2a29['RZwBk']=_0x2b4985(0xb7),_0x1c2a29[_0x2b4985(0x97)]=_0x2b4985(0xaf),_0x1c2a29[_0x2b4985(0x9f)]=_0x2b4985(0xc4);const _0x2abc48=_0x1c2a29;if(!_0x263879||_0x2abc48[_0x2b4985(0xc0)](typeof _0x263879,_0x2abc48[_0x2b4985(0xa4)]))return[null,null];if(_0x2abc48[_0x2b4985(0xc0)](_0x263879['indexOf'](_0x2abc48[_0x2b4985(0x97)]),-0x1)){const _0x282daa=_0x263879[_0x2b4985(0xac)](_0x2abc48['IbmyD']);return[_0x282daa[0x0][_0x2b4985(0xbd)](0x0,-0x1)['split']('\x22')[0x1],_0x282daa[0x1][_0x2b4985(0xa9)](0x1)];}else{if(_0x2abc48[_0x2b4985(0xc0)](_0x263879[_0x2b4985(0x8b)](_0x2abc48['qpAkS']),-0x1)){const _0x2b37a4=_0x263879[_0x2b4985(0xac)](_0x2abc48[_0x2b4985(0x9f)]);return[_0x2b37a4[0x0][_0x2b4985(0xbd)](0x0,-0x1)[_0x2b4985(0xac)]('\x22')[0x1],_0x263879];}}return[null,null];},exports['getHooksForTest']=_0x118dab=>{const _0x48da13=a35_0x1a1594,_0x38be36={'uKKck':function(_0x961a63,_0x557e22){return _0x961a63(_0x557e22);},'hqvSC':_0x48da13(0x90),'XcjKg':_0x48da13(0x93),'oyXmr':_0x48da13(0x8c),'TBcnL':'_afterEach'};if(!_0x118dab||!_0x118dab['parent'])return[];const _0x5b25ba=[];return[_0x38be36['hqvSC'],_0x38be36[_0x48da13(0x84)],_0x38be36['oyXmr'],_0x38be36[_0x48da13(0xb4)]][_0x48da13(0x8f)](_0x5aa8b8=>{const _0x4b6b65=_0x48da13,_0x25b090={'GOlwk':function(_0x3f3c0a,_0x397a7c){const _0x595195=a35_0x1199;return _0x38be36[_0x595195(0xd3)](_0x3f3c0a,_0x397a7c);}},_0x3b2592=_0x118dab[_0x4b6b65(0x9d)][_0x5aa8b8]||[];_0x3b2592[_0x4b6b65(0x8f)](_0x930090=>{const _0x36b1da=_0x4b6b65;_0x930090[_0x36b1da(0xc5)]&&!_0x25b090[_0x36b1da(0xc2)](isInternalHook,_0x930090['fn'])&&_0x5b25ba['push'](_0x930090[_0x36b1da(0xc5)]);});}),[..._0x5b25ba,...exports['getHooksForTest'](_0x118dab[_0x48da13(0x9d)])];},exports['mapTestHooks']=_0x12139b=>{const _0x593514=a35_0x1a1594,_0x5c83e1={'IVPla':function(_0x5f3eee){return _0x5f3eee();},'LLgKp':function(_0x40f176,_0x588ae7){return _0x40f176===_0x588ae7;},'PeVRu':_0x593514(0x99),'WOjdp':_0x593514(0x90),'WzAuh':'_afterAll','PdpwU':'_beforeEach'};if(!_0x12139b||!_0x12139b['parent'])return;[_0x5c83e1[_0x593514(0xad)],_0x5c83e1['WzAuh'],_0x5c83e1[_0x593514(0x95)],_0x5c83e1[_0x593514(0xcb)]][_0x593514(0x8f)](_0x66abdb=>{const _0x2ea3a8=_0x593514,_0x5e1db5={'byMIt':function(_0x2b10c5){const _0x3d6a59=a35_0x1199;return _0x5c83e1[_0x3d6a59(0xa5)](_0x2b10c5);},'CuLEd':function(_0x53f95c,_0x372820){const _0x59bd67=a35_0x1199;return _0x5c83e1[_0x59bd67(0x98)](_0x53f95c,_0x372820);},'QpqGf':_0x5c83e1[_0x2ea3a8(0xcb)]},_0x59e42c=_0x12139b[_0x2ea3a8(0x9d)][_0x66abdb]||[];_0x59e42c['forEach'](_0x53825a=>{const _0x5af431=_0x2ea3a8;if(!_0x53825a[_0x5af431(0xc5)])_0x53825a[_0x5af431(0xc5)]=_0x5e1db5[_0x5af431(0x82)](uuidv4);else _0x53825a['markedStatus']&&_0x5e1db5[_0x5af431(0xc3)](_0x66abdb,_0x5e1db5[_0x5af431(0xc9)])&&(_0x53825a[_0x5af431(0xc5)]=_0x5e1db5[_0x5af431(0x82)](uuidv4),delete _0x53825a[_0x5af431(0xcd)]);});}),exports[_0x593514(0xcc)](_0x12139b[_0x593514(0x9d)]);},exports['sendPlatformDetails']=async(_0x1117d4,_0x4d1dff)=>{const _0x559c1f=a35_0x1a1594,_0xd757a9={'tnxKr':function(_0x2ea6bb){return _0x2ea6bb();},'anhYr':function(_0x345f9a,_0x448014){return _0x345f9a(_0x448014);},'lnGcV':_0x559c1f(0xb6),'MyDYt':function(_0x5a5653,_0x5047d1){return _0x5a5653(_0x5047d1);},'ajrry':function(_0x41b2be,_0x18710a){return _0x41b2be===_0x18710a;},'GfWna':_0x559c1f(0x9c),'jESSp':'unknown_grid','ZfTLk':_0x559c1f(0x91),'FwoeH':function(_0x5e05a3,_0x2f71f3){return _0x5e05a3(_0x2f71f3);}};try{if(!_0xd757a9[_0x559c1f(0xa0)](shouldProcessEventForTesthub))return;const _0x11fbca=await _0x1117d4['getCapabilities'](),_0x2cf4f6=await _0x1117d4[_0x559c1f(0xb3)](),_0x452bde={},_0x50e102=Object[_0x559c1f(0xae)](_0x2cf4f6[_0x559c1f(0xce)]()[_0x559c1f(0x83)]),_0x28ff8a={'product':_0xd757a9[_0x559c1f(0xa7)](getObservabilityLinkedProductName,_0x50e102),'capabilities':_0x50e102,'platform':_0x11fbca[_0x559c1f(0xbe)](),'platform_version':_0x11fbca[_0x559c1f(0xd5)](_0xd757a9[_0x559c1f(0xcf)])?_0x11fbca['get'](_0xd757a9[_0x559c1f(0xcf)]):_0xd757a9['MyDYt'](getPlatformVersion,_0xd757a9[_0x559c1f(0x92)](global['__cloud_provider___'],_0xd757a9[_0x559c1f(0x88)])),'browser':_0x11fbca[_0x559c1f(0xbc)](),'browser_version':_0x11fbca['getBrowserVersion'](),'session_id':_0x2cf4f6['toJSON']()};global[_0x559c1f(0xd4)]?_0x452bde[global[_0x559c1f(0xd4)]]=_0x28ff8a:_0x452bde[_0xd757a9[_0x559c1f(0xd7)]]=_0x28ff8a,process[_0x559c1f(0x81)](_0x559c1f(0xc6)+process['pid'],{'timestamp':new Date()[_0x559c1f(0x9e)](),'level':null,'message':null,'kind':_0xd757a9[_0x559c1f(0x9a)],'http_response':_0x452bde,'uuid':_0x4d1dff});}catch(_0x4165f8){_0xd757a9[_0x559c1f(0xc8)](debug,_0x559c1f(0xb0)+_0x4165f8);}},exports[a35_0x1a1594(0xa8)]=_0x5ba707=>{const _0x1fa602=a35_0x1a1594,_0x4f7af4={};_0x4f7af4[_0x1fa602(0xbb)]=function(_0x54dcd1,_0x22e720){return _0x54dcd1!==_0x22e720;},_0x4f7af4[_0x1fa602(0xa2)]=_0x1fa602(0xc4),_0x4f7af4['BVUbR']=_0x1fa602(0xd2),_0x4f7af4[_0x1fa602(0x9b)]=_0x1fa602(0xa6);const _0x5685a2=_0x4f7af4,_0xff3c13=_0x5ba707[_0x1fa602(0xc1)]['reduce']((_0x5512ee,_0xe567c6)=>{const _0x317dbc=_0x1fa602,_0x1f2500=exports['getHookSkippedTests'](_0xe567c6);return _0x1f2500&&(_0x5512ee=_0x5512ee[_0x317dbc(0xd1)](_0x1f2500)),_0x5512ee;},[]),_0x6b86cc=_0x5ba707['tests'][_0x1fa602(0xbf)](_0x353270=>{const _0x2554b4=_0x1fa602,_0x263db2=_0x5685a2['EDPQN'](_0x353270['type'],_0x5685a2[_0x2554b4(0xa2)])&&!_0x353270[_0x2554b4(0xcd)]&&_0x5685a2[_0x2554b4(0xbb)](_0x353270[_0x2554b4(0x86)],_0x5685a2[_0x2554b4(0x96)])&&_0x5685a2[_0x2554b4(0xbb)](_0x353270[_0x2554b4(0x86)],_0x5685a2[_0x2554b4(0x9b)])&&!_0x353270[_0x2554b4(0xd0)];return _0x263db2;});return _0x6b86cc[_0x1fa602(0xd1)](_0xff3c13);};
@@ -1 +1 @@
1
- const a36_0x192b9f=a36_0x3226;(function(_0x57430f,_0x4bc8fd){const _0x4e6bcf=a36_0x3226,_0x1bf8a7=_0x57430f();while(!![]){try{const _0x5d3678=parseInt(_0x4e6bcf(0x169))/0x1*(parseInt(_0x4e6bcf(0xeb))/0x2)+-parseInt(_0x4e6bcf(0x19a))/0x3+-parseInt(_0x4e6bcf(0xf9))/0x4+-parseInt(_0x4e6bcf(0x110))/0x5*(-parseInt(_0x4e6bcf(0x124))/0x6)+-parseInt(_0x4e6bcf(0x178))/0x7*(parseInt(_0x4e6bcf(0x12f))/0x8)+parseInt(_0x4e6bcf(0x11c))/0x9*(parseInt(_0x4e6bcf(0x13c))/0xa)+-parseInt(_0x4e6bcf(0xea))/0xb;if(_0x5d3678===_0x4bc8fd)break;else _0x1bf8a7['push'](_0x1bf8a7['shift']());}catch(_0x257a63){_0x1bf8a7['push'](_0x1bf8a7['shift']());}}}(a36_0x6c4d,0xe2a93));function a36_0x3226(_0xf0bc89,_0x34ce06){const _0x6c4dd5=a36_0x6c4d();return a36_0x3226=function(_0x3226cc,_0xb23a5c){_0x3226cc=_0x3226cc-0xe7;let _0x225070=_0x6c4dd5[_0x3226cc];return _0x225070;},a36_0x3226(_0xf0bc89,_0x34ce06);}const util=require(a36_0x192b9f(0xfc)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require('../../helpers/accessibility-automation/accessibilityRetryHelper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x192b9f(0x18c)),{percyAutoCapture}=require(a36_0x192b9f(0x19d)),{sendPlatformDetails}=require(a36_0x192b9f(0xf7)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x192b9f(0x172)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x192b9f(0x185)),globals=require(a36_0x192b9f(0x19e)),logger=require(a36_0x192b9f(0x11a))[a36_0x192b9f(0x109)],{shouldProcessEventForTesthub}=require(a36_0x192b9f(0xed)),testHubConstants=require('../../helpers/testhub/constants');function a36_0x6c4d(){const _0x3eb97d=['ENV_VAR','scBIH','gdWQM','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','debug','yvapB','\x20|\x20','accessibilityScanStarted','thTestRunUuid','afterAll','bIGrt','abAtU','HWdSF','protocol','TPolZ','BXoRa','currentTest','__sessionFailed','index','ZVoWf','fHhpq','vDPwb','sessionNameSet__','QSiUN','ZxZlc','hVuks','8465mmipSn','performScanWithRetry','dmkgN','getCurrentUrl','lKxlG','Mpchv','ancrH','TEvHl','YyTAe','../../helpers/performance/performance-tester','LkNhJ','err','XiSNB','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','UYLoe','7CUPEsg','DeoLr','TdHHs','BIZqW','fSljz','NYzZk','aMHwS','failed','SYbYN','\x22}}','getGlobal','TXJNX','warn','../../helpers/performance/constants',',\x22level\x22:\x20\x22','NLLvf','qgSeE','finally','SESSION_STATUS','shouldScanTestForAccessibility','../utils/constants','quitCount_','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','stringify','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','then','info','wbDNv','bvuaq','startMonitoring','WjpyC','error','toZgd','Mocha','2289348ozneZV','testcase','wGCoN','../../helpers/percy/utils','../../helpers/globals','eCLSk','NpSrW','menMW','DTAoT','start','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','11295119DmkcYA','362KuHmsS','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/testhub/utils','isArray','NAAZM','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','browserstackTestName','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Failed:\x20','HwUYi','end','push','./test-observability/mochaUtils','afterEach','4127144sJNodZ','now','JRWxb','util','__error_messages__','Accessibility\x20scan\x20completed\x20successfully','PERFORM_SCAN','format','BROWSERSTACK_TESTHUB_JWT','percy','testAnalyticsId','capabilities','__platformCaps','JbLrF','bstackA11yShouldScan','length','winstonLogger','app','bghDA','vZUuj','BROWSERSTACK_TESTHUB_UUID','nfLjS','ZaZIZ','297015copKYS','percyCaptureMode','Qsxiv','driverCleanup','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','wytdz','nvkGU','session_','join','XNwSI','../../helpers/logger','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','369rGlMFs','__drivers','http:','ObservabilitySync:','YOJuR','passed','IGLMn','eOtnu','138mlChyr','appium:app','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','sessionName','isAccessibilityPlatform','browserstackSessionName','xEIeW','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','QAIwF','setGlobal','BVdwD','6769864jkjxfI','mochaHooks','gHjFF','initQuit','MYdOL','beforeAll','VrJMl','MteBS','thBuildUuid','PZrpW','JVOEC','beforeEach','message','414130ddKeii','gSdJu','measureWrapper','SESSION_NAME','shift','lpjfm','\x20-\x20','juKWW','titlePath','saveAccessibilityResultsWithRetry','rqUSO','.\x20Error\x20:','SYNC','thJwtToken','SDK_HOOK','wqsGd','executeScript','timeout','IOERO'];a36_0x6c4d=function(){return _0x3eb97d;};return a36_0x6c4d();}exports[a36_0x192b9f(0x130)]={'beforeAll'(){const _0x1c85a1=a36_0x192b9f,_0x462669={'MteBS':function(_0x5045a8,_0x100ab8,_0x52af6e,_0x2054fa){return _0x5045a8(_0x100ab8,_0x52af6e,_0x2054fa);},'fSljz':_0x1c85a1(0x17f),'yvapB':_0x1c85a1(0x155),'WDDfc':function(_0x355df7,_0x412e90,_0x5169f5){return _0x355df7(_0x412e90,_0x5169f5);},'KGdkB':_0x1c85a1(0x121),'xXcRC':function(_0x38c497){return _0x38c497();},'aMHwS':function(_0x32beca,_0x2c32e7,_0x46dca1){return _0x32beca(_0x2c32e7,_0x46dca1);},'wqsGd':_0x1c85a1(0x161),'wQeod':_0x1c85a1(0x134)};PerformanceTester[_0x1c85a1(0x195)]();const _0x1a0f67='browserstack internal helper hook';PerformanceTester[_0x1c85a1(0x13e)](PerformanceSdkEvents[_0x1c85a1(0x14a)],()=>{const _0x4bbd1f=_0x1c85a1;global[_0x4bbd1f(0xfd)]=[],global[_0x4bbd1f(0x160)]=![],global[_0x4bbd1f(0x113)]=async()=>{const _0x52f604=_0x4bbd1f;let _0x4c54a6=![];try{await global[_0x52f604(0x11d)][0x0][_0x52f604(0x117)],_0x4c54a6=!![],global[_0x52f604(0x160)]?await _0x462669[_0x52f604(0x136)](markSessionStatus,global[_0x52f604(0x11d)][0x0],_0x462669[_0x52f604(0x17c)],global[_0x52f604(0xfd)][_0x52f604(0x118)](_0x462669[_0x52f604(0x154)])):await _0x462669['WDDfc'](markSessionStatus,global['__drivers'][0x0],_0x462669['KGdkB']);}catch(_0x3390c8){logger[_0x52f604(0x153)](_0x52f604(0x126)+_0x3390c8);}global[_0x52f604(0xfd)]=[],global['__sessionFailed']=![];if(_0x4c54a6)try{try{_0x462669['xXcRC'](shouldProcessEventForTesthub)&&(global[_0x52f604(0x11d)][0x0]&&await _0x462669[_0x52f604(0x17e)](sendPlatformDetails,global[_0x52f604(0x11d)][0x0],this[_0x52f604(0x15f)]?this[_0x52f604(0x15f)][_0x52f604(0x103)]:null));}catch(_0x2a0f22){logger[_0x52f604(0x153)](_0x52f604(0x114)+_0x2a0f22);}await global[_0x52f604(0x11d)][0x0][_0x52f604(0x132)]();}catch(_0x5a3ee4){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5a3ee4);}};},{'platform':_0x462669[_0x1c85a1(0x17e)](nestedKeyValue,global[_0x1c85a1(0x105)],[_0x462669[_0x1c85a1(0x14b)]]),'hookType':_0x462669['wQeod']})();},'beforeEach'(_0x2f7d72){const _0x2dd2be=a36_0x192b9f,_0x50cda7={'gSdJu':function(_0x488018,_0x537083){return _0x488018>_0x537083;},'wbDNv':'\x20-\x20','XNwSI':function(_0x3f182a,_0x3ede80,_0x260cc5){return _0x3f182a(_0x3ede80,_0x260cc5);},'HWdSF':_0x2dd2be(0x107),'nfLjS':function(_0x2146d9){return _0x2146d9();},'NpSrW':'isAccessibilityPlatform','rqUSO':function(_0x1988a5,_0x4b4446){return _0x1988a5===_0x4b4446;},'INBXi':_0x2dd2be(0x11e),'eCLSk':'https:','TXJNX':_0x2dd2be(0xe9),'JVOEC':'Automate\x20test\x20case\x20execution\x20has\x20started.','wytdz':_0x2dd2be(0xf1),'ancrH':_0x2dd2be(0x161),'NLLvf':_0x2dd2be(0x13a)};globals[_0x2dd2be(0x12d)](_0x50cda7[_0x2dd2be(0x115)],this[_0x2dd2be(0x15f)]['titlePath']()[_0x2dd2be(0x118)](_0x50cda7[_0x2dd2be(0x193)])),PerformanceTester[_0x2dd2be(0x13e)](PerformanceSdkEvents[_0x2dd2be(0x14a)],()=>{const _0x1e4815=_0x2dd2be,_0x2b5018='browserstack internal helper hook';new Promise(async _0x325e89=>{const _0x8198ab=a36_0x3226;let _0x2c4d82=!![];try{_0x50cda7['gSdJu'](global[_0x8198ab(0x11d)][_0x8198ab(0x108)],0x1)&&(await global[_0x8198ab(0x113)](),global[_0x8198ab(0x11d)][_0x8198ab(0x140)]()),_0x50cda7[_0x8198ab(0x13d)](global[_0x8198ab(0x11d)][0x0]['quitCount_'],0x0)&&(_0x2c4d82=![],await global['driverCleanup']());}catch(_0x160c88){logger[_0x8198ab(0x153)](_0x8198ab(0x11b)+_0x160c88);}try{Array[_0x8198ab(0xee)](global[_0x8198ab(0x11d)])&&global['__drivers'][0x0]&&(global[_0x8198ab(0x11d)][0x0][_0x8198ab(0x129)]=this[_0x8198ab(0x15f)][_0x8198ab(0x144)]()[_0x8198ab(0x118)](_0x50cda7['wbDNv'])),global[_0x8198ab(0x129)]=this[_0x8198ab(0x15f)][_0x8198ab(0x144)]()[_0x8198ab(0x118)](_0x50cda7[_0x8198ab(0x193)]);}catch(_0x6b6dfe){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x6b6dfe);}this[_0x8198ab(0x15f)][_0x8198ab(0x18b)]=_0x50cda7[_0x8198ab(0x119)](shouldScanTestForAccessibility,this[_0x8198ab(0x15f)][_0x8198ab(0x144)](),!![]),globals[_0x8198ab(0x12d)](_0x50cda7[_0x8198ab(0x15b)],this[_0x8198ab(0x15f)][_0x8198ab(0x18b)]),this[_0x8198ab(0x15f)][_0x8198ab(0x156)]=!![];if(_0x50cda7['nfLjS'](isAccessibilityAutomationSession)&&_0x2c4d82&&Array[_0x8198ab(0xee)](global[_0x8198ab(0x11d)])&&_0x50cda7[_0x8198ab(0x13d)](global[_0x8198ab(0x11d)][_0x8198ab(0x108)],0x0)&&globals[_0x8198ab(0x182)](_0x50cda7[_0x8198ab(0x1a0)]))try{const _0x2d7bf7=await global[_0x8198ab(0x11d)][0x0]['session_'];if(_0x2d7bf7){let _0x438911=!![];const _0x2804bc=await global['__drivers'][0x0][_0x8198ab(0x16c)]();let _0x5796ed;try{_0x5796ed=new URL(_0x2804bc);}catch(_0x5aec33){_0x438911=![];}_0x438911=_0x50cda7[_0x8198ab(0x146)](_0x5796ed[_0x8198ab(0x15c)],_0x50cda7['INBXi'])||_0x50cda7[_0x8198ab(0x146)](_0x5796ed['protocol'],_0x50cda7[_0x8198ab(0x19f)]),_0x438911&&(this['currentTest'][_0x8198ab(0x18b)]&&logger[_0x8198ab(0x192)](_0x50cda7[_0x8198ab(0x183)])),this['currentTest']['accessibilityScanStarted']=this[_0x8198ab(0x15f)][_0x8198ab(0x18b)],this[_0x8198ab(0x15f)]['shouldScanTestForAccessibility']&&logger[_0x8198ab(0x192)](_0x50cda7[_0x8198ab(0x139)]);}}catch(_0x5af576){logger[_0x8198ab(0x197)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x8198ab(0x100)](_0x5af576));}_0x50cda7['nfLjS'](_0x325e89);})[_0x1e4815(0x191)](()=>{const _0xbdcf5a=_0x1e4815;_0x50cda7[_0xbdcf5a(0x10e)](_0x2f7d72);});},{'platform':_0x50cda7['XNwSI'](nestedKeyValue,global['__platformCaps'],[_0x50cda7[_0x2dd2be(0x16f)]]),'hookType':_0x50cda7[_0x2dd2be(0x187)]})();},'afterEach'(_0x4d1816){const _0x127acb=a36_0x192b9f,_0x2140a8={'ZxZlc':function(_0x1aaa6c){return _0x1aaa6c();},'lpjfm':_0x127acb(0x142),'LkNhJ':function(_0x5514ea,_0xebe817){return _0x5514ea!==_0xebe817;},'xEIeW':'passed','IOERO':function(_0x1f2c3e,_0x137529,_0x8b8c5e){return _0x1f2c3e(_0x137529,_0x8b8c5e);},'QSiUN':function(_0x56d486,_0x493574){return _0x56d486+_0x493574;},'juKWW':_0x127acb(0xf3),'fpnum':'error','wGCoN':'Passed','bfthu':_0x127acb(0x192),'ikGnP':function(_0x5d3154,_0xb8ce7d){return _0x5d3154>_0xb8ce7d;},'xrTRc':function(_0x295af0,_0x25f6e9){return _0x295af0===_0x25f6e9;},'NttjZ':_0x127acb(0x19b),'LIqyd':_0x127acb(0x125),'oYkAz':function(_0x1501ed,_0x7a0eb7,_0x28a4e3,_0x11e9e2){return _0x1501ed(_0x7a0eb7,_0x28a4e3,_0x11e9e2);},'vyBVz':_0x127acb(0x128),'gdWQM':'bstackA11yShouldScan','wPGcV':_0x127acb(0x176),'TPolZ':_0x127acb(0xf0),'WjpyC':'afterTest','Neklm':_0x127acb(0xfe),'YOJuR':_0x127acb(0x12b),'TdHHs':'Accessibility\x20results\x20saved\x20successfully','hVuks':_0x127acb(0x18e),'DeoLr':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','SYbYN':_0x127acb(0x153),'XiSNB':'Mocha','dmkgN':'index','QAIwF':_0x127acb(0xf8)},_0x2730fe='browserstack internal helper hook';this[_0x127acb(0x14d)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x2140a8[_0x127acb(0x175)]]),global[_0x127acb(0x127)]=this['currentTest'][_0x127acb(0x144)]()['join'](_0x2140a8['lpjfm']),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x127acb(0x14a)],()=>{const _0x3b4444=_0x127acb,_0x1c3f01={'bvuaq':_0x2140a8[_0x3b4444(0x141)],'NYzZk':function(_0x2f7672,_0x150ddb){const _0x1e3786=_0x3b4444;return _0x2140a8[_0x1e3786(0x173)](_0x2f7672,_0x150ddb);},'Qsxiv':_0x2140a8[_0x3b4444(0x12a)],'Mpchv':function(_0xc1b3df,_0x52328e,_0x4278c2){return _0x2140a8['IOERO'](_0xc1b3df,_0x52328e,_0x4278c2);},'MYdOL':function(_0x54f111,_0x78da42){const _0x1c382b=_0x3b4444;return _0x2140a8[_0x1c382b(0x166)](_0x54f111,_0x78da42);},'IGLMn':_0x2140a8[_0x3b4444(0x143)],'nvkGU':_0x2140a8['fpnum'],'gHjFF':_0x2140a8[_0x3b4444(0x19c)],'BVdwD':_0x2140a8['bfthu'],'TEvHl':function(_0x3ece6b,_0x1194a6){return _0x2140a8['ikGnP'](_0x3ece6b,_0x1194a6);},'vZUuj':function(_0x510feb,_0x5890e4){return _0x2140a8['xrTRc'](_0x510feb,_0x5890e4);},'toZgd':_0x2140a8['NttjZ'],'eOtnu':_0x2140a8['LIqyd'],'PZrpW':function(_0xa021dd,_0x3d75bb,_0x16bb41,_0x404304){return _0x2140a8['oYkAz'](_0xa021dd,_0x3d75bb,_0x16bb41,_0x404304);},'lKxlG':_0x2140a8['vyBVz'],'OrXSL':_0x2140a8[_0x3b4444(0x151)],'bghDA':_0x2140a8['wPGcV'],'DTAoT':_0x2140a8[_0x3b4444(0x15d)],'VrJMl':_0x2140a8[_0x3b4444(0x196)],'XeFwS':_0x2140a8['Neklm'],'JbLrF':_0x2140a8[_0x3b4444(0x120)],'HwUYi':_0x2140a8[_0x3b4444(0x17a)],'YyTAe':_0x2140a8[_0x3b4444(0x168)],'bIGrt':_0x2140a8[_0x3b4444(0x179)],'sfJJI':function(_0x4c3137){return _0x2140a8['ZxZlc'](_0x4c3137);},'scBIH':_0x2140a8[_0x3b4444(0x180)],'UYLoe':function(_0x3b476b,_0x43d369){return _0x2140a8['ikGnP'](_0x3b476b,_0x43d369);},'fHhpq':function(_0x428e1a){const _0x2c628e=_0x3b4444;return _0x2140a8[_0x2c628e(0x167)](_0x428e1a);}},_0x2acbb1=async(_0x506d4c,_0x53c91a)=>{const _0x1dca7a=_0x3b4444;await global['__drivers'][0x0][_0x1dca7a(0x14c)](_0x1dca7a(0xec)+_0x506d4c+_0x1dca7a(0x186)+_0x53c91a+_0x1dca7a(0x181));};new Promise(async _0x554087=>{const _0x175846=_0x3b4444,_0x130609={'abAtU':function(_0x8543a5,_0x5f35e8){const _0x20f81e=a36_0x3226;return _0x1c3f01[_0x20f81e(0x17d)](_0x8543a5,_0x5f35e8);},'JRWxb':_0x1c3f01[_0x175846(0x112)],'qgSeE':function(_0x266617,_0x28793c,_0x5690ca){const _0x55dc03=_0x175846;return _0x1c3f01[_0x55dc03(0x16e)](_0x266617,_0x28793c,_0x5690ca);},'BIZqW':function(_0x57c842,_0xe24a6){const _0x70b287=_0x175846;return _0x1c3f01[_0x70b287(0x133)](_0x57c842,_0xe24a6);},'ZaZIZ':_0x1c3f01[_0x175846(0x122)],'hqTUp':_0x1c3f01[_0x175846(0x116)],'NuJXA':_0x1c3f01[_0x175846(0x131)],'lXtga':_0x1c3f01[_0x175846(0x12e)]};try{_0x1c3f01['TEvHl'](global[_0x175846(0x11d)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift'](),global[_0x175846(0xfd)]=[],global[_0x175846(0x160)]=![]);try{if(global[_0x175846(0x102)]&&_0x1c3f01[_0x175846(0x10c)](global[_0x175846(0x111)],_0x1c3f01[_0x175846(0x198)])&&global[_0x175846(0x11d)][0x0]){const _0x2ec45d=_0x1c3f01[_0x175846(0x170)](global[_0x175846(0x104)]['length'],0x0)?!!global[_0x175846(0x104)][0x0][_0x175846(0x10a)]||!!global[_0x175846(0x104)][0x0][_0x1c3f01[_0x175846(0x123)]]:![],_0x1605d4={};_0x1605d4[_0x175846(0x10a)]=_0x2ec45d,await _0x1c3f01[_0x175846(0x138)](percyAutoCapture,global[_0x175846(0x11d)][0x0],_0x1c3f01['toZgd'],_0x1605d4);}}catch(_0x134a5d){logger[_0x175846(0x153)](_0x175846(0x152)+_0x134a5d);}!global['__skipSessionName']&&(await PerformanceTester[_0x175846(0x13e)](PerformanceAutEvents[_0x175846(0x13f)],async()=>{const _0x25d969=_0x175846;await global['__drivers'][0x0][_0x25d969(0x14c)](_0x25d969(0x190)+JSON[_0x25d969(0x18f)](this[_0x25d969(0x15f)][_0x25d969(0x144)]()[_0x25d969(0x118)](_0x1c3f01[_0x25d969(0x194)]))+'}}');})(),global[_0x175846(0x11d)][0x0][_0x175846(0x165)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x175846(0x18a)],async()=>{const _0xe3aab8=_0x175846,_0x387186=_0x130609[_0xe3aab8(0x15a)](this[_0xe3aab8(0x15f)]['state'],_0x130609[_0xe3aab8(0xfb)]);_0x387186?(global['__sessionFailed']=!![],global[_0xe3aab8(0xfd)][_0xe3aab8(0xf6)](this['currentTest']['err']['message']),await _0x130609[_0xe3aab8(0x188)](_0x2acbb1,JSON[_0xe3aab8(0x18f)](_0x130609[_0xe3aab8(0x17b)](_0x130609[_0xe3aab8(0x10f)],this[_0xe3aab8(0x15f)][_0xe3aab8(0x174)][_0xe3aab8(0x13b)])),_0x130609['hqTUp'])):await _0x130609['qgSeE'](_0x2acbb1,JSON['stringify'](_0x130609['NuJXA']),_0x130609['lXtga']);})();}catch(_0x4c4f6b){logger[_0x175846(0x153)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4c4f6b);}try{if(this['currentTest'][_0x175846(0x156)]&&globals[_0x175846(0x182)](_0x1c3f01[_0x175846(0x16d)])&&globals['getGlobal'](_0x1c3f01['OrXSL'])){logger[_0x175846(0x192)](_0x1c3f01[_0x175846(0x10b)]);const _0x1ee41f={};_0x1ee41f[_0x175846(0x157)]=this['currentTest']['testAnalyticsId'],_0x1ee41f[_0x175846(0x137)]=process['env'][testHubConstants[_0x175846(0x14f)][_0x175846(0x10d)]],_0x1ee41f[_0x175846(0x149)]=process['env'][testHubConstants[_0x175846(0x14f)][_0x175846(0x101)]];const _0x379811=_0x1ee41f;logger[_0x175846(0x153)](_0x175846(0xf2)+JSON['stringify'](_0x379811)),logger[_0x175846(0x153)](_0x1c3f01[_0x175846(0xe7)]);const _0x20eca0={};_0x20eca0['command']=_0x1c3f01[_0x175846(0x135)];const _0x284e4c=await PerformanceTester[_0x175846(0x13e)](PerformanceA11yEvents[_0x175846(0xff)],async()=>{const _0x4f76a1=_0x175846;return await accessibilityRetryHelper[_0x4f76a1(0x16a)](global[_0x4f76a1(0x11d)][0x0],global[_0x4f76a1(0x129)]);},_0x20eca0)();_0x284e4c?logger[_0x175846(0x153)](_0x1c3f01['XeFwS']):logger[_0x175846(0x184)](_0x1c3f01[_0x175846(0x106)]);const _0x6ac800=await PerformanceTester['measureWrapper'](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x5e4a35=_0x175846;return await accessibilityRetryHelper[_0x5e4a35(0x145)](global[_0x5e4a35(0x11d)][0x0],_0x379811);})();_0x6ac800?logger[_0x175846(0x153)](_0x1c3f01[_0x175846(0xf4)]):logger[_0x175846(0x184)](_0x1c3f01[_0x175846(0x171)]),logger[_0x175846(0x192)](_0x1c3f01[_0x175846(0x159)]);}}catch(_0x4d98d8){logger[_0x175846(0x197)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x175846(0x15f)]['titlePath']()+_0x175846(0x147),_0x4d98d8);}try{try{if(_0x1c3f01['sfJJI'](shouldProcessEventForTesthub)){global[_0x175846(0x11d)][0x0]&&await _0x1c3f01[_0x175846(0x16e)](sendPlatformDetails,global[_0x175846(0x11d)][0x0],this[_0x175846(0x15f)]?this[_0x175846(0x15f)][_0x175846(0x103)]:null);if(_0x1c3f01['sfJJI'](isBrowserstackInfra)){PerformanceTester[_0x175846(0xe8)](PerformanceO11yEvents[_0x175846(0x148)]);const _0x418583=_0x175846(0x11f)+Date[_0x175846(0xfa)]();await _0x1c3f01[_0x175846(0x16e)](_0x2acbb1,JSON[_0x175846(0x18f)](_0x418583),_0x1c3f01[_0x175846(0x150)]),PerformanceTester[_0x175846(0xf5)](PerformanceO11yEvents[_0x175846(0x148)]);}}}catch(_0x7e3271){logger[_0x175846(0x153)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x7e3271),PerformanceTester[_0x175846(0xf5)](PerformanceO11yEvents[_0x175846(0x148)],![],_0x7e3271);}_0x1c3f01[_0x175846(0x177)](global[_0x175846(0x11d)][0x0][_0x175846(0x18d)],0x0)&&await global[_0x175846(0x113)]();}catch(_0x358693){logger[_0x175846(0x153)](_0x175846(0x11b)+_0x358693);}_0x1c3f01[_0x175846(0x163)](_0x554087);})[_0x3b4444(0x191)](()=>{const _0x2ade0c=_0x3b4444;_0x2140a8[_0x2ade0c(0x167)](_0x4d1816);});},{'platform':_0x2140a8[_0x127acb(0x14e)](nestedKeyValue,global['__platformCaps'],[_0x2140a8[_0x127acb(0x16b)]]),'hookType':_0x2140a8[_0x127acb(0x12c)]})();},'afterAll'(_0x5473dc){const _0x387a87=a36_0x192b9f,_0x1792d8={'ZVoWf':function(_0x48883e){return _0x48883e();},'vDPwb':function(_0x616033){return _0x616033();},'BXoRa':_0x387a87(0x199),'menMW':function(_0x1f9a1e,_0x2d879f,_0x33c0cc){return _0x1f9a1e(_0x2d879f,_0x33c0cc);},'EdYla':'index','VDbUB':_0x387a87(0x158)},_0xdb512='browserstack internal helper hook';this[_0x387a87(0x14d)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x1792d8[_0x387a87(0x15e)]]),PerformanceTester[_0x387a87(0x13e)](PerformanceSdkEvents[_0x387a87(0x14a)],()=>{const _0x4b48c3=_0x387a87,_0x58572c={'NAAZM':function(_0x1b389b){const _0x535584=a36_0x3226;return _0x1792d8[_0x535584(0x164)](_0x1b389b);}};new Promise(async _0x1f8ac8=>{const _0x3cd6f5=a36_0x3226;await global[_0x3cd6f5(0x113)](),_0x1792d8[_0x3cd6f5(0x162)](_0x1f8ac8);})['then']()[_0x4b48c3(0x189)](()=>{const _0x388e84=_0x4b48c3;_0x58572c[_0x388e84(0xef)](_0x5473dc);});},{'platform':_0x1792d8[_0x387a87(0x1a1)](nestedKeyValue,global[_0x387a87(0x105)],[_0x1792d8['EdYla']]),'hookType':_0x1792d8['VDbUB']})();}};
1
+ const a36_0x43f92c=a36_0x2cca;function a36_0x9325(){const _0x1745ef=['browserstackTestName','isArray','env','__error_messages__','accessibilityScanStarted','err','end','Rzaih','elpLU','quitCount_','currentTest','DMZSQ','SESSION_NAME','33536899oEjuGg','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','UWNQu','warn','testcase','Pgmmx','SESSION_STATUS','kOAEP','failed','cByuu','XkXqh','tyUnB','winstonLogger','CSDfx','appium:app','Accessibility\x20results\x20saved\x20successfully','oZIQq','Passed','CMFtf','hlfDE','rsAJJ','CuuTr','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','\x20-\x20','JtIrP','Mocha','enFdO','SZvrT','https:','yBtbY','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','JcLBp','YTVwk','HxSHZ','zcKeA','length','LUWJP','shift','HpInj','qnQPP','qukxi','dEYJA','percyCaptureMode','OmyNy','__sessionFailed','eRbBU','now','YxDqb','getGlobal','SDK_HOOK','DHzuQ','afterTest','AWYoy','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','OeiTn','testAnalyticsId','heSXQ','WeFjj','../../helpers/accessibility-automation/helper','NoPxM','driverCleanup','mpqdZ','wDIfM','\x20|\x20','gCYYj','capabilities','hPNVz','join','.\x20Error\x20:','10269520patoBt','eEyJr','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','message','nKTDT','http:','../../helpers/logger','protocol','BROWSERSTACK_TESTHUB_JWT','MUcUY','oTYLi','../../helpers/percy/utils','EYxsc','Automate\x20test\x20case\x20execution\x20has\x20started.','xADIA','afterAll','DWwyJ','initQuit','RGbEf','imDqc','5150tudQyM','gaOtP','EfRvr','info','error','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','finally','SFYBk','jGGwO','sessionName','HnozN','1505030StMcqB','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','QSeva','HkGOp','shouldScanTestForAccessibility','../../helpers/helper','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','qdbgB','248ZNkdVO','BLaxv','AEbrW','start','qNbFz','ZqerR','vYGOD','mochaHooks','thTestRunUuid','ecyBm','../../helpers/accessibility-automation/accessibilityRetryHelper','getCurrentUrl','iuKPh','RJajy','Nagbg','bstackA11yShouldScan','PERFORM_SCAN','../../helpers/performance/constants','24798VsHiCI','__drivers','timeout','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','VCLqP','saveAccessibilityResultsWithRetry','then','Qgzny','vwcih','performScanWithRetry','uvPjc','iOCfv','cxdrq','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','12SklhbA','../../helpers/globals','isAccessibilityPlatform','setGlobal','593JYbpim','Failed:\x20','yjVPp','HoIES','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','measureWrapper','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','CGekp','xXcfq','acFRT','stringify','../../helpers/testhub/utils','passed','SAVE_RESULTS','aldjQ','YDWzj','fdmCS','browserstackSessionName','debug','../../helpers/performance/performance-tester','17165GlJPDj','index','cQlWM','mcOQp','beforeAll','SYNC','11551428awrVmQ','jkUcT','1038EJqFCh','../utils/constants','startMonitoring','PHHvH','36ebqFlk','executeScript','EosEA','PCqIs','fuppV','RgFoA','qItHe','ENV_VAR','titlePath','iHuOD','cQKfy','ldXQi','mNlso','app','vuuNH','__platformCaps','./test-observability/mochaUtils','oYNhH'];a36_0x9325=function(){return _0x1745ef;};return a36_0x9325();}(function(_0x546db2,_0x1df0be){const _0x1f7ed4=a36_0x2cca,_0x3b8608=_0x546db2();while(!![]){try{const _0x1f4bd2=parseInt(_0x1f7ed4(0x22f))/0x1*(parseInt(_0x1f7ed4(0x1f8))/0x2)+-parseInt(_0x1f7ed4(0x21d))/0x3*(parseInt(_0x1f7ed4(0x20b))/0x4)+-parseInt(_0x1f7ed4(0x243))/0x5*(parseInt(_0x1f7ed4(0x24b))/0x6)+parseInt(_0x1f7ed4(0x249))/0x7+parseInt(_0x1f7ed4(0x1e4))/0x8+parseInt(_0x1f7ed4(0x24f))/0x9*(parseInt(_0x1f7ed4(0x203))/0xa)+-parseInt(_0x1f7ed4(0x26e))/0xb*(parseInt(_0x1f7ed4(0x22b))/0xc);if(_0x1f4bd2===_0x1df0be)break;else _0x3b8608['push'](_0x3b8608['shift']());}catch(_0xcd0fc5){_0x3b8608['push'](_0x3b8608['shift']());}}}(a36_0x9325,0xdd997));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x43f92c(0x1d9)),accessibilityRetryHelper=require(a36_0x43f92c(0x215)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x43f92c(0x24c)),{percyAutoCapture}=require(a36_0x43f92c(0x1ef)),{sendPlatformDetails}=require(a36_0x43f92c(0x25f)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x43f92c(0x208)),PerformanceTester=require(a36_0x43f92c(0x242)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x43f92c(0x21c)),globals=require(a36_0x43f92c(0x22c)),logger=require(a36_0x43f92c(0x1ea))[a36_0x43f92c(0x27a)],{shouldProcessEventForTesthub}=require(a36_0x43f92c(0x23a)),testHubConstants=require('../../helpers/testhub/constants');function a36_0x2cca(_0x36441b,_0x3e16f0){const _0x93251=a36_0x9325();return a36_0x2cca=function(_0x2cca5d,_0x51c033){_0x2cca5d=_0x2cca5d-0x1bc;let _0x38cba6=_0x93251[_0x2cca5d];return _0x38cba6;},a36_0x2cca(_0x36441b,_0x3e16f0);}exports[a36_0x43f92c(0x212)]={'beforeAll'(){const _0x22f958=a36_0x43f92c,_0x49f04b={'cByuu':function(_0x4c9109,_0x1a241c,_0x490ee4,_0x587afb){return _0x4c9109(_0x1a241c,_0x490ee4,_0x587afb);},'NoPxM':_0x22f958(0x276),'mpqdZ':_0x22f958(0x1de),'HxSHZ':function(_0x13bffc,_0x5c92c3,_0x1b1d81){return _0x13bffc(_0x5c92c3,_0x1b1d81);},'CGekp':_0x22f958(0x23b),'PCqIs':function(_0x36d8ba){return _0x36d8ba();},'YDWzj':'index','qdbgB':_0x22f958(0x247)};PerformanceTester[_0x22f958(0x24d)]();const _0x2499b7='browserstack internal helper hook';PerformanceTester[_0x22f958(0x234)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x351e9b=_0x22f958,_0x40e2a4={'lWboI':function(_0x577f9a,_0xd16d51,_0x8b89ab,_0xf4af08){const _0x58061c=a36_0x2cca;return _0x49f04b[_0x58061c(0x277)](_0x577f9a,_0xd16d51,_0x8b89ab,_0xf4af08);},'oYNhH':_0x49f04b[_0x351e9b(0x1da)],'kOAEP':_0x49f04b[_0x351e9b(0x1dc)],'oZIQq':function(_0x166ccd,_0x5c8265,_0x1bfc79){return _0x49f04b['HxSHZ'](_0x166ccd,_0x5c8265,_0x1bfc79);},'RgFoA':_0x49f04b[_0x351e9b(0x236)],'CMFtf':function(_0x162695){const _0x52a9e6=_0x351e9b;return _0x49f04b[_0x52a9e6(0x252)](_0x162695);}};global[_0x351e9b(0x264)]=[],global[_0x351e9b(0x1cb)]=![],global[_0x351e9b(0x1db)]=async()=>{const _0x181b1b=_0x351e9b;let _0x44d7a3=![];try{await global[_0x181b1b(0x21e)][0x0]['session_'],_0x44d7a3=!![],global['__sessionFailed']?await _0x40e2a4['lWboI'](markSessionStatus,global['__drivers'][0x0],_0x40e2a4[_0x181b1b(0x260)],global[_0x181b1b(0x264)][_0x181b1b(0x1e2)](_0x40e2a4[_0x181b1b(0x275)])):await _0x40e2a4[_0x181b1b(0x27e)](markSessionStatus,global[_0x181b1b(0x21e)][0x0],_0x40e2a4[_0x181b1b(0x254)]);}catch(_0x1c2799){logger['debug'](_0x181b1b(0x204)+_0x1c2799);}global[_0x181b1b(0x264)]=[],global[_0x181b1b(0x1cb)]=![];if(_0x44d7a3)try{try{_0x40e2a4[_0x181b1b(0x280)](shouldProcessEventForTesthub)&&(global[_0x181b1b(0x21e)][0x0]&&await _0x40e2a4['oZIQq'](sendPlatformDetails,global[_0x181b1b(0x21e)][0x0],this[_0x181b1b(0x26b)]?this[_0x181b1b(0x26b)]['testAnalyticsId']:null));}catch(_0x79e3ad){logger[_0x181b1b(0x241)](_0x181b1b(0x1d4)+_0x79e3ad);}await global[_0x181b1b(0x21e)][0x0][_0x181b1b(0x1f5)]();}catch(_0x456131){logger[_0x181b1b(0x241)](_0x181b1b(0x26f)+_0x456131);}};},{'platform':_0x49f04b[_0x22f958(0x1c0)](nestedKeyValue,global[_0x22f958(0x25e)],[_0x49f04b[_0x22f958(0x23e)]]),'hookType':_0x49f04b[_0x22f958(0x20a)]})();},'beforeEach'(_0x133988){const _0x273d49=a36_0x43f92c,_0x385176={'qnQPP':function(_0x5b57b1,_0x4d83cd){return _0x5b57b1>_0x4d83cd;},'ldXQi':_0x273d49(0x285),'WeFjj':function(_0x4b62b1,_0x499314,_0x2e2f56){return _0x4b62b1(_0x499314,_0x2e2f56);},'EfRvr':_0x273d49(0x21a),'DHzuQ':function(_0x1865b3){return _0x1865b3();},'ZCOqg':_0x273d49(0x22d),'isptV':function(_0x4468c4,_0x206704){return _0x4468c4===_0x206704;},'SFYBk':_0x273d49(0x1e9),'xXcfq':function(_0x57434e,_0x10f60c){return _0x57434e===_0x10f60c;},'HnozN':_0x273d49(0x28a),'YTVwk':_0x273d49(0x235),'wJAZE':_0x273d49(0x1f1),'OeiTn':function(_0x1a8d81){return _0x1a8d81();},'qItHe':_0x273d49(0x261),'acFRT':function(_0x32ff0e,_0x24f299,_0x186f70){return _0x32ff0e(_0x24f299,_0x186f70);},'qqOnh':'index','XeSiW':'beforeEach'};globals[_0x273d49(0x22e)](_0x385176[_0x273d49(0x255)],this[_0x273d49(0x26b)][_0x273d49(0x257)]()['join'](_0x385176[_0x273d49(0x25a)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x273d49(0x1d0)],()=>{const _0x1355c0=_0x273d49,_0x320faf={'XkXqh':function(_0x3cb0a2,_0x48f709){const _0x5ecf17=a36_0x2cca;return _0x385176[_0x5ecf17(0x1c6)](_0x3cb0a2,_0x48f709);},'nKTDT':_0x385176[_0x1355c0(0x25a)],'sqNgo':function(_0x3c3859,_0x47f89f,_0x4ffe1f){const _0x2b4b70=_0x1355c0;return _0x385176[_0x2b4b70(0x1d8)](_0x3c3859,_0x47f89f,_0x4ffe1f);},'enFdO':_0x385176[_0x1355c0(0x1fa)],'UWNQu':function(_0x3de27a){const _0x2fe8b7=_0x1355c0;return _0x385176[_0x2fe8b7(0x1d1)](_0x3de27a);},'Pgmmx':_0x385176['ZCOqg'],'EYxsc':function(_0x8ab964,_0x297513){return _0x385176['isptV'](_0x8ab964,_0x297513);},'imDqc':_0x385176[_0x1355c0(0x1ff)],'eRbBU':function(_0x3a93f1,_0x21126e){const _0x84fe75=_0x1355c0;return _0x385176[_0x84fe75(0x237)](_0x3a93f1,_0x21126e);},'DNBzD':_0x385176[_0x1355c0(0x202)],'rsAJJ':_0x385176[_0x1355c0(0x1bf)],'tyUnB':_0x385176['wJAZE'],'DWwyJ':function(_0x4394ca){const _0x5b2990=_0x1355c0;return _0x385176[_0x5b2990(0x1d5)](_0x4394ca);}},_0x5a8444='browserstack internal helper hook';new Promise(async _0x95f0fd=>{const _0x11485c=_0x1355c0;let _0x45d8b8=!![];try{_0x320faf['XkXqh'](global['__drivers']['length'],0x1)&&(await global[_0x11485c(0x1db)](),global[_0x11485c(0x21e)]['shift']()),_0x320faf[_0x11485c(0x278)](global[_0x11485c(0x21e)][0x0][_0x11485c(0x26a)],0x0)&&(_0x45d8b8=![],await global['driverCleanup']());}catch(_0x3494e0){logger[_0x11485c(0x241)](_0x11485c(0x26f)+_0x3494e0);}try{Array[_0x11485c(0x262)](global[_0x11485c(0x21e)])&&global['__drivers'][0x0]&&(global[_0x11485c(0x21e)][0x0][_0x11485c(0x240)]=this['currentTest'][_0x11485c(0x257)]()[_0x11485c(0x1e2)](_0x320faf[_0x11485c(0x1e8)])),global[_0x11485c(0x240)]=this['currentTest'][_0x11485c(0x257)]()['join'](_0x320faf[_0x11485c(0x1e8)]);}catch(_0x3fc963){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x3fc963);}this[_0x11485c(0x26b)][_0x11485c(0x207)]=_0x320faf['sqNgo'](shouldScanTestForAccessibility,this[_0x11485c(0x26b)][_0x11485c(0x257)](),!![]),globals[_0x11485c(0x22e)](_0x320faf[_0x11485c(0x288)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest']['accessibilityScanStarted']=!![];if(_0x320faf[_0x11485c(0x270)](isAccessibilityAutomationSession)&&_0x45d8b8&&Array[_0x11485c(0x262)](global['__drivers'])&&_0x320faf[_0x11485c(0x278)](global[_0x11485c(0x21e)][_0x11485c(0x1c2)],0x0)&&globals[_0x11485c(0x1cf)](_0x320faf[_0x11485c(0x273)]))try{const _0x27a27e=await global[_0x11485c(0x21e)][0x0]['session_'];if(_0x27a27e){let _0x7c91f0=!![];const _0x3b0e76=await global['__drivers'][0x0][_0x11485c(0x216)]();let _0x2546a7;try{_0x2546a7=new URL(_0x3b0e76);}catch(_0x56c896){_0x7c91f0=![];}_0x7c91f0=_0x320faf[_0x11485c(0x1f0)](_0x2546a7['protocol'],_0x320faf[_0x11485c(0x1f7)])||_0x320faf[_0x11485c(0x1cc)](_0x2546a7[_0x11485c(0x1eb)],_0x320faf['DNBzD']),_0x7c91f0&&(this[_0x11485c(0x26b)][_0x11485c(0x207)]&&logger[_0x11485c(0x1fb)](_0x320faf[_0x11485c(0x282)])),this['currentTest'][_0x11485c(0x265)]=this[_0x11485c(0x26b)][_0x11485c(0x207)],this[_0x11485c(0x26b)]['shouldScanTestForAccessibility']&&logger['info'](_0x320faf[_0x11485c(0x279)]);}}catch(_0x22dc74){logger[_0x11485c(0x1fc)](_0x11485c(0x1fd)+util['format'](_0x22dc74));}_0x320faf['UWNQu'](_0x95f0fd);})[_0x1355c0(0x223)](()=>{const _0x164c1b=_0x1355c0;_0x320faf[_0x164c1b(0x1f4)](_0x133988);});},{'platform':_0x385176[_0x273d49(0x238)](nestedKeyValue,global[_0x273d49(0x25e)],[_0x385176['qqOnh']]),'hookType':_0x385176['XeSiW']})();},'afterEach'(_0x41ebe5){const _0x10019e=a36_0x43f92c,_0x3fc1ea={'eEyJr':function(_0x26f1d8){return _0x26f1d8();},'PHHvH':_0x10019e(0x285),'zcKeA':function(_0x1ffc35,_0x39de58){return _0x1ffc35!==_0x39de58;},'QSeva':_0x10019e(0x23b),'aldjQ':function(_0xa4040d,_0x377669,_0x357c3e){return _0xa4040d(_0x377669,_0x357c3e);},'EJGIL':function(_0x3ad439,_0x509bb6){return _0x3ad439+_0x509bb6;},'ZqerR':_0x10019e(0x230),'EosEA':_0x10019e(0x1fc),'vwcih':_0x10019e(0x27f),'zINCz':_0x10019e(0x1fb),'mNlso':function(_0x510b27,_0x4ba627){return _0x510b27>_0x4ba627;},'RGbEf':function(_0x1f05c4,_0x2cf04d){return _0x1f05c4===_0x2cf04d;},'yBtbY':_0x10019e(0x272),'hTaGo':_0x10019e(0x27c),'oTYLi':function(_0xe96e7,_0x18488f,_0x567390,_0xa6512c){return _0xe96e7(_0x18488f,_0x567390,_0xa6512c);},'MUcUY':_0x10019e(0x22d),'iuKPh':_0x10019e(0x21a),'qukxi':_0x10019e(0x1bd),'Qgzny':_0x10019e(0x209),'vYGOD':_0x10019e(0x1d2),'uvPjc':'Accessibility\x20scan\x20completed\x20successfully','yjVPp':_0x10019e(0x1bc),'fuppV':_0x10019e(0x27d),'HkGOp':'Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','elpLU':_0x10019e(0x22a),'JcLBp':_0x10019e(0x241),'osxlP':function(_0x2fbc78,_0x15e9b9){return _0x2fbc78>_0x15e9b9;},'AWYoy':'Mocha','DMZSQ':_0x10019e(0x244),'qNbFz':'afterEach'},_0x4c1d52='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x3fc1ea[_0x10019e(0x1d3)]]),global[_0x10019e(0x201)]=this[_0x10019e(0x26b)]['titlePath']()[_0x10019e(0x1e2)](_0x3fc1ea[_0x10019e(0x24e)]),PerformanceTester[_0x10019e(0x234)](PerformanceSdkEvents[_0x10019e(0x1d0)],()=>{const _0x21649a=_0x10019e,_0x109e92={'jkUcT':_0x3fc1ea['PHHvH'],'Nagbg':function(_0x1e7709,_0x412627){const _0x470641=a36_0x2cca;return _0x3fc1ea[_0x470641(0x1c1)](_0x1e7709,_0x412627);},'lrUGY':_0x3fc1ea[_0x21649a(0x205)],'JtIrP':function(_0x1e8cbd,_0x1bb323,_0x5b593c){return _0x3fc1ea['aldjQ'](_0x1e8cbd,_0x1bb323,_0x5b593c);},'CSDfx':function(_0xb3fcee,_0x4c1e06){return _0x3fc1ea['EJGIL'](_0xb3fcee,_0x4c1e06);},'wDIfM':_0x3fc1ea[_0x21649a(0x210)],'cQKfy':_0x3fc1ea[_0x21649a(0x251)],'ecyBm':_0x3fc1ea[_0x21649a(0x225)],'LUWJP':_0x3fc1ea['zINCz'],'CuuTr':function(_0x55be60,_0x582e63){const _0x35e6e8=_0x21649a;return _0x3fc1ea[_0x35e6e8(0x25b)](_0x55be60,_0x582e63);},'cQlWM':function(_0x4482e8,_0x17e7de){const _0x43cdcc=_0x21649a;return _0x3fc1ea[_0x43cdcc(0x1f6)](_0x4482e8,_0x17e7de);},'BmqvM':_0x3fc1ea[_0x21649a(0x28b)],'cxdrq':_0x3fc1ea['hTaGo'],'PAkyd':function(_0x4f0f3b,_0x77fd1f,_0x7febc8,_0x1a7f32){const _0x591c47=_0x21649a;return _0x3fc1ea[_0x591c47(0x1ee)](_0x4f0f3b,_0x77fd1f,_0x7febc8,_0x1a7f32);},'jGGwO':_0x3fc1ea[_0x21649a(0x1ed)],'GGCJe':_0x3fc1ea[_0x21649a(0x217)],'hPNVz':_0x3fc1ea[_0x21649a(0x1c7)],'xntln':_0x3fc1ea[_0x21649a(0x224)],'HpInj':_0x3fc1ea[_0x21649a(0x211)],'mcOQp':_0x3fc1ea[_0x21649a(0x227)],'YxDqb':_0x3fc1ea[_0x21649a(0x231)],'fdmCS':_0x3fc1ea[_0x21649a(0x253)],'BLaxv':_0x3fc1ea[_0x21649a(0x206)],'xADIA':_0x3fc1ea[_0x21649a(0x269)],'heSXQ':function(_0x100189){const _0x2c3147=_0x21649a;return _0x3fc1ea[_0x2c3147(0x1e5)](_0x100189);},'VCLqP':function(_0x3f5cb4){const _0x1ae35f=_0x21649a;return _0x3fc1ea[_0x1ae35f(0x1e5)](_0x3f5cb4);},'gCYYj':_0x3fc1ea[_0x21649a(0x1be)],'AEbrW':function(_0x544a80,_0x36c695){return _0x3fc1ea['osxlP'](_0x544a80,_0x36c695);}},_0x3479d8=async(_0x2c6c43,_0x3caf9c)=>{const _0x206e5e=_0x21649a;await global[_0x206e5e(0x21e)][0x0][_0x206e5e(0x250)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x2c6c43+',\x22level\x22:\x20\x22'+_0x3caf9c+'\x22}}');};new Promise(async _0x5a9e48=>{const _0x329d23=_0x21649a,_0x442bf9={'RJajy':_0x109e92[_0x329d23(0x24a)],'YtAzg':function(_0x3c4d31,_0x48fa1a){const _0x2e1178=_0x329d23;return _0x109e92[_0x2e1178(0x219)](_0x3c4d31,_0x48fa1a);},'vuuNH':_0x109e92['lrUGY'],'hlfDE':function(_0x222689,_0x38ce6a,_0x354980){const _0x30f8de=_0x329d23;return _0x109e92[_0x30f8de(0x286)](_0x222689,_0x38ce6a,_0x354980);},'xwtLP':function(_0x1ca44e,_0x4dcdaf){const _0x4917ba=_0x329d23;return _0x109e92[_0x4917ba(0x27b)](_0x1ca44e,_0x4dcdaf);},'gaOtP':_0x109e92[_0x329d23(0x1dd)],'Rzaih':_0x109e92[_0x329d23(0x259)],'OmyNy':_0x109e92[_0x329d23(0x214)],'dEYJA':_0x109e92[_0x329d23(0x1c3)]};try{_0x109e92[_0x329d23(0x283)](global[_0x329d23(0x21e)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x329d23(0x21e)][_0x329d23(0x1c4)](),global[_0x329d23(0x264)]=[],global[_0x329d23(0x1cb)]=![]);try{if(global['percy']&&_0x109e92[_0x329d23(0x245)](global[_0x329d23(0x1c9)],_0x109e92['BmqvM'])&&global['__drivers'][0x0]){const _0x8ffd08=_0x109e92['CuuTr'](global[_0x329d23(0x1e0)][_0x329d23(0x1c2)],0x0)?!!global[_0x329d23(0x1e0)][0x0][_0x329d23(0x25c)]||!!global[_0x329d23(0x1e0)][0x0][_0x109e92[_0x329d23(0x229)]]:![],_0x578d7b={};_0x578d7b[_0x329d23(0x25c)]=_0x8ffd08,await _0x109e92['PAkyd'](percyAutoCapture,global[_0x329d23(0x21e)][0x0],_0x109e92['BmqvM'],_0x578d7b);}}catch(_0x124435){logger[_0x329d23(0x241)](_0x329d23(0x1e6)+_0x124435);}!global['__skipSessionName']&&(await PerformanceTester[_0x329d23(0x234)](PerformanceAutEvents[_0x329d23(0x26d)],async()=>{const _0x1a3a86=_0x329d23;await global['__drivers'][0x0]['executeScript'](_0x1a3a86(0x284)+JSON['stringify'](this[_0x1a3a86(0x26b)][_0x1a3a86(0x257)]()['join'](_0x442bf9[_0x1a3a86(0x218)]))+'}}');})(),global[_0x329d23(0x21e)][0x0]['sessionNameSet__']=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x329d23(0x274)],async()=>{const _0x7a7c98=_0x329d23,_0x591d93=_0x442bf9['YtAzg'](this['currentTest']['state'],_0x442bf9[_0x7a7c98(0x25d)]);_0x591d93?(global[_0x7a7c98(0x1cb)]=!![],global[_0x7a7c98(0x264)]['push'](this['currentTest']['err'][_0x7a7c98(0x1e7)]),await _0x442bf9[_0x7a7c98(0x281)](_0x3479d8,JSON[_0x7a7c98(0x239)](_0x442bf9['xwtLP'](_0x442bf9[_0x7a7c98(0x1f9)],this['currentTest'][_0x7a7c98(0x266)][_0x7a7c98(0x1e7)])),_0x442bf9[_0x7a7c98(0x268)])):await _0x442bf9['hlfDE'](_0x3479d8,JSON[_0x7a7c98(0x239)](_0x442bf9[_0x7a7c98(0x1ca)]),_0x442bf9[_0x7a7c98(0x1c8)]);})();}catch(_0x4de3aa){logger[_0x329d23(0x241)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4de3aa);}try{if(this[_0x329d23(0x26b)][_0x329d23(0x265)]&&globals['getGlobal'](_0x109e92[_0x329d23(0x200)])&&globals[_0x329d23(0x1cf)](_0x109e92['GGCJe'])){logger[_0x329d23(0x1fb)](_0x109e92[_0x329d23(0x1e1)]);const _0x22f8d9={};_0x22f8d9[_0x329d23(0x213)]=this[_0x329d23(0x26b)]['testAnalyticsId'],_0x22f8d9['thBuildUuid']=process['env'][testHubConstants[_0x329d23(0x256)]['BROWSERSTACK_TESTHUB_UUID']],_0x22f8d9['thJwtToken']=process[_0x329d23(0x263)][testHubConstants[_0x329d23(0x256)][_0x329d23(0x1ec)]];const _0x1e7629=_0x22f8d9;logger['debug'](_0x329d23(0x220)+JSON[_0x329d23(0x239)](_0x1e7629)),logger['debug'](_0x109e92['xntln']);const _0x374157={};_0x374157['command']=_0x109e92[_0x329d23(0x1c5)];const _0x510087=await PerformanceTester[_0x329d23(0x234)](PerformanceA11yEvents[_0x329d23(0x21b)],async()=>{const _0x5e1a2a=_0x329d23;return await accessibilityRetryHelper[_0x5e1a2a(0x226)](global[_0x5e1a2a(0x21e)][0x0],global[_0x5e1a2a(0x240)]);},_0x374157)();_0x510087?logger[_0x329d23(0x241)](_0x109e92[_0x329d23(0x246)]):logger[_0x329d23(0x271)](_0x109e92[_0x329d23(0x1ce)]);const _0x23d30a=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x329d23(0x23c)],async()=>{const _0x2fa468=_0x329d23;return await accessibilityRetryHelper[_0x2fa468(0x222)](global[_0x2fa468(0x21e)][0x0],_0x1e7629);})();_0x23d30a?logger[_0x329d23(0x241)](_0x109e92[_0x329d23(0x23f)]):logger['warn'](_0x109e92[_0x329d23(0x20c)]),logger[_0x329d23(0x1fb)](_0x109e92[_0x329d23(0x1f2)]);}}catch(_0x57cf08){logger[_0x329d23(0x1fc)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x329d23(0x26b)][_0x329d23(0x257)]()+_0x329d23(0x1e3),_0x57cf08);}try{try{if(_0x109e92[_0x329d23(0x1d7)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x109e92['JtIrP'](sendPlatformDetails,global['__drivers'][0x0],this[_0x329d23(0x26b)]?this[_0x329d23(0x26b)][_0x329d23(0x1d6)]:null);if(_0x109e92['VCLqP'](isBrowserstackInfra)){PerformanceTester[_0x329d23(0x20e)](PerformanceO11yEvents[_0x329d23(0x248)]);const _0xe27790='ObservabilitySync:'+Date[_0x329d23(0x1cd)]();await _0x109e92[_0x329d23(0x286)](_0x3479d8,JSON[_0x329d23(0x239)](_0xe27790),_0x109e92[_0x329d23(0x1df)]),PerformanceTester[_0x329d23(0x267)](PerformanceO11yEvents['SYNC']);}}}catch(_0x2f2c03){logger['debug'](_0x329d23(0x233)+_0x2f2c03),PerformanceTester[_0x329d23(0x267)](PerformanceO11yEvents[_0x329d23(0x248)],![],_0x2f2c03);}_0x109e92[_0x329d23(0x20d)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x329d23(0x1db)]();}catch(_0x15cad2){logger[_0x329d23(0x241)](_0x329d23(0x26f)+_0x15cad2);}_0x109e92[_0x329d23(0x221)](_0x5a9e48);})[_0x21649a(0x223)](()=>{const _0x2b7735=_0x21649a;_0x3fc1ea[_0x2b7735(0x1e5)](_0x41ebe5);});},{'platform':_0x3fc1ea[_0x10019e(0x23d)](nestedKeyValue,global['__platformCaps'],[_0x3fc1ea[_0x10019e(0x26c)]]),'hookType':_0x3fc1ea[_0x10019e(0x20f)]})();},'afterAll'(_0x3b037d){const _0x55ef98=a36_0x43f92c,_0x4d283a={'iOCfv':function(_0x1129bc){return _0x1129bc();},'iHuOD':_0x55ef98(0x287),'SZvrT':function(_0x47a6c4,_0x172a74,_0x137270){return _0x47a6c4(_0x172a74,_0x137270);},'HoIES':_0x55ef98(0x244),'FJIvI':_0x55ef98(0x1f3)},_0x2d7104='browserstack internal helper hook';this[_0x55ef98(0x21f)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4d283a[_0x55ef98(0x258)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x55ef98(0x1d0)],()=>{const _0x3adde2=_0x55ef98;new Promise(async _0x2f01c0=>{const _0x2169ed=a36_0x2cca;await global[_0x2169ed(0x1db)](),_0x4d283a['iOCfv'](_0x2f01c0);})[_0x3adde2(0x223)]()[_0x3adde2(0x1fe)](()=>{const _0x123254=_0x3adde2;_0x4d283a[_0x123254(0x228)](_0x3b037d);});},{'platform':_0x4d283a[_0x55ef98(0x289)](nestedKeyValue,global[_0x55ef98(0x25e)],[_0x4d283a[_0x55ef98(0x232)]]),'hookType':_0x4d283a['FJIvI']})();}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a37_0x4776de=a37_0x238d;(function(_0x968e35,_0x17c04b){const _0x3300e7=a37_0x238d,_0x1282f8=_0x968e35();while(!![]){try{const _0x272682=parseInt(_0x3300e7(0x200))/0x1+parseInt(_0x3300e7(0x1df))/0x2*(-parseInt(_0x3300e7(0x228))/0x3)+-parseInt(_0x3300e7(0x1de))/0x4+-parseInt(_0x3300e7(0x1fc))/0x5*(-parseInt(_0x3300e7(0x1f7))/0x6)+-parseInt(_0x3300e7(0x225))/0x7*(parseInt(_0x3300e7(0x226))/0x8)+-parseInt(_0x3300e7(0x1e0))/0x9+parseInt(_0x3300e7(0x21d))/0xa;if(_0x272682===_0x17c04b)break;else _0x1282f8['push'](_0x1282f8['shift']());}catch(_0x262f96){_0x1282f8['push'](_0x1282f8['shift']());}}}(a37_0x454d,0xdd2a2));function a37_0x238d(_0xf58d15,_0x454b2f){const _0x454d41=a37_0x454d();return a37_0x238d=function(_0x238da8,_0x246358){_0x238da8=_0x238da8-0x1dc;let _0x3940be=_0x454d41[_0x238da8];return _0x3940be;},a37_0x238d(_0xf58d15,_0x454b2f);}const fs=require('fs'),path=require(a37_0x4776de(0x1e4)),{spawn}=require('child_process'),logger=require(a37_0x4776de(0x201))[a37_0x4776de(0x1f6)],{default:BrowserStackSetup}=require(a37_0x4776de(0x1eb)),helper=require(a37_0x4776de(0x21c)),constants=require(a37_0x4776de(0x203)),getUserNightwatchConfigs=(_0x501248,_0x5805b5)=>{const _0x2a4ef7=a37_0x4776de,_0x4ec48c={'HMylJ':_0x2a4ef7(0x211),'ZiNHF':_0x2a4ef7(0x219),'vTKcX':function(_0x44ce26,_0x208613){return _0x44ce26(_0x208613);},'oDoNK':_0x2a4ef7(0x210)};let _0x133814=null,_0x50ce10={};const _0x16a6ea=_0x5805b5['findIndex'](_0x139771=>_0x139771==='--config');if(!helper[_0x2a4ef7(0x222)](_0x501248[_0x2a4ef7(0x1dc)])&&fs['existsSync'](path[_0x2a4ef7(0x1ec)](process[_0x2a4ef7(0x1ea)](),_0x501248[_0x2a4ef7(0x1dc)])))_0x133814=path[_0x2a4ef7(0x1ec)](process[_0x2a4ef7(0x1ea)](),_0x501248[_0x2a4ef7(0x1dc)]),_0x5805b5[_0x2a4ef7(0x1f1)](_0x16a6ea,0x2);else{if(fs[_0x2a4ef7(0x202)](path[_0x2a4ef7(0x1ec)](process[_0x2a4ef7(0x1ea)](),_0x4ec48c[_0x2a4ef7(0x1f5)])))_0x133814=path['join'](process['cwd'](),_0x4ec48c['HMylJ']);else fs['existsSync'](path[_0x2a4ef7(0x1ec)](process[_0x2a4ef7(0x1ea)](),_0x4ec48c[_0x2a4ef7(0x212)]))&&(_0x133814=path[_0x2a4ef7(0x1ec)](process['cwd'](),_0x4ec48c[_0x2a4ef7(0x212)]));}return _0x133814?(logger[_0x2a4ef7(0x229)](_0x2a4ef7(0x1e5)+_0x133814),_0x50ce10=_0x4ec48c[_0x2a4ef7(0x1fa)](require,_0x133814)):logger[_0x2a4ef7(0x229)](_0x4ec48c[_0x2a4ef7(0x214)]),_0x50ce10;},removeExistingEnvs=_0x461ce0=>{const _0x7eaef9=a37_0x4776de,_0x4b3839={};_0x4b3839['CrUNg']=function(_0x4ac6df,_0xb405dd){return _0x4ac6df>_0xb405dd;},_0x4b3839[_0x7eaef9(0x208)]=function(_0xfb1764,_0x16d5f9){return _0xfb1764>_0x16d5f9;};const _0x28dc5f=_0x4b3839;let _0x10475b=_0x461ce0['findIndex'](_0x5ae720=>_0x5ae720==='--env');_0x28dc5f['CrUNg'](_0x10475b,-0x1)&&_0x461ce0[_0x7eaef9(0x1f1)](_0x10475b,0x2),_0x10475b=_0x461ce0[_0x7eaef9(0x20a)](_0x3fb607=>_0x3fb607==='-e'),_0x28dc5f[_0x7eaef9(0x208)](_0x10475b,-0x1)&&_0x461ce0[_0x7eaef9(0x1f1)](_0x10475b,0x2);};function a37_0x454d(){const _0x3a838b=['GLvpZ','push','156863rGohUs','232YBWQdI','ANhOY','1090956eBLimz','info','config','wZWvI','5964388ekTlAR','2fGBXsH','10558899gnckiI','viMxN','Deleting\x20','jUdWq','path','Getting\x20your\x20nightwatch\x20configs\x20from\x20','modifyBrowserStackCaps','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','getPlatformName','platform','cwd','../../helpers/BrowserStackSetup','join','split','useW3C','selenium','child\x20process\x20exited\x20with\x20code\x20','splice','slice','OMpsl','pLDHQ','HMylJ','winstonLogger','2634690omQBfN','forEach','stringify','vTKcX','QHdFm','10hfgIKl','port','writeFileSync','--env','987117HOzfvg','../../helpers/logger','existsSync','../utils/constants','trim','test_settings','qzyMG','map','GQWYB','desiredCapabilities','findIndex','close','env','nightwatch','zvIbh','KUMFc','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch.conf.js','ZiNHF','now','oDoNK','CehTf','host','modifyBrowserStackW3CCaps','mergeDeep','nightwatch.json','length','--config','../../helpers/helper','27183640nvyNyb','webdriver','nightwatch-browserstack.json','BxYCC','nightwatch.cmd','isUndefined'];a37_0x454d=function(){return _0x3a838b;};return a37_0x454d();}function run(_0x36fde6,_0x1a7ef0,_0x38d3ea){const _0x3b1320=a37_0x4776de,_0x266072={'qzyMG':_0x3b1320(0x20d),'BxYCC':function(_0x844c8,_0x546135){return _0x844c8+_0x546135;},'pLDHQ':_0x3b1320(0x205),'CehTf':function(_0x5994aa,_0x45a225,_0x22513f){return _0x5994aa(_0x45a225,_0x22513f);},'GLvpZ':'hub.browserstack.com','OMpsl':_0x3b1320(0x1e7),'tZDYY':function(_0x10d2d3,_0x6e1cc5){return _0x10d2d3===_0x6e1cc5;},'zvIbh':_0x3b1320(0x21f),'wZWvI':function(_0xfab79c,_0xce7354){return _0xfab79c(_0xce7354);},'lbpxU':function(_0x420f35,_0x282193,_0x5b114e,_0x535404){return _0x420f35(_0x282193,_0x5b114e,_0x535404);},'PvICn':_0x3b1320(0x221),'viMxN':_0x3b1320(0x21b),'QHdFm':_0x3b1320(0x1ff),'KUMFc':'inherit','chcyl':_0x3b1320(0x20b)};if(!_0x38d3ea[_0x3b1320(0x1dc)])return;const _0x3b8039=_0x266072[_0x3b1320(0x215)](getUserNightwatchConfigs,_0x36fde6,_0x1a7ef0),_0x55ca5a={};_0x55ca5a['start_process']=![];const _0x1f2a1f={};_0x1f2a1f[_0x3b1320(0x216)]=_0x266072[_0x3b1320(0x223)],_0x1f2a1f[_0x3b1320(0x1fd)]=0x1bb;const _0x41e5fe={};_0x41e5fe[_0x3b1320(0x21e)]=_0x55ca5a,_0x41e5fe[_0x3b1320(0x1ef)]=_0x1f2a1f;const _0x32d47d=_0x41e5fe;logger[_0x3b1320(0x229)](_0x266072[_0x3b1320(0x1f3)]);const _0x3b9482={..._0x3b8039},_0x26dc23=_0x3b9482,_0x5a2b46=helper[_0x3b1320(0x1ee)](_0x38d3ea[_0x3b1320(0x1dc)]),_0x21ca3c=[];_0x38d3ea[_0x3b1320(0x1dc)]['platforms'][_0x3b1320(0x1f8)]((_0x26f65f,_0x3463b1)=>{const _0x587a64=_0x3b1320;_0x5a2b46?_0x21ca3c[_0x587a64(0x224)](helper[_0x587a64(0x217)](_0x38d3ea['config'],_0x266072[_0x587a64(0x206)],_0x3463b1)):_0x21ca3c['push'](helper[_0x587a64(0x1e6)](_0x38d3ea['config'],_0x266072[_0x587a64(0x206)],_0x3463b1));});const _0x3488a4={},_0x42b46d=[];_0x36fde6['env']=_0x36fde6[_0x3b1320(0x20c)]||_0x36fde6['e'];const _0x1c72a9=_0x36fde6[_0x3b1320(0x20c)]?_0x36fde6[_0x3b1320(0x20c)][_0x3b1320(0x204)]()[_0x3b1320(0x1ed)](',')[_0x3b1320(0x207)](_0x1e785c=>_0x1e785c[_0x3b1320(0x204)]())['filter'](_0x5ef387=>_0x5ef387!==''):[''];_0x266072['tZDYY'](_0x1c72a9[_0x3b1320(0x21a)],0x0)&&_0x1c72a9[_0x3b1320(0x224)]('');_0x1c72a9[_0x3b1320(0x1f8)](_0x109ed1=>{const _0x8f3d1b=_0x3b1320,_0x16d7a1={'jUdWq':function(_0xb8dcb1,_0xbf4c46){const _0x1ad3e4=a37_0x238d;return _0x266072[_0x1ad3e4(0x220)](_0xb8dcb1,_0xbf4c46);},'ANhOY':_0x266072[_0x8f3d1b(0x1f4)]};_0x21ca3c[_0x8f3d1b(0x1f8)](_0xbfd0eb=>{const _0x1ead76=_0x8f3d1b;let _0x4d656b=_0x16d7a1[_0x1ead76(0x1e3)](helper[_0x1ead76(0x1e8)](_0xbfd0eb,'_'),'_'+Date[_0x1ead76(0x213)]());_0x109ed1&&(_0x4d656b+='_'+_0x109ed1);if(_0x109ed1&&(!_0x3b8039[_0x16d7a1['ANhOY']]||!_0x3b8039[_0x16d7a1[_0x1ead76(0x227)]][_0x109ed1]))return;const _0x1d9080={..._0x32d47d};_0x1d9080[_0x1ead76(0x209)]=_0xbfd0eb;const _0x888789=_0x1d9080;_0x3488a4[_0x4d656b]=_0x109ed1?helper[_0x1ead76(0x218)](_0x3b8039[_0x16d7a1[_0x1ead76(0x227)]][_0x109ed1],_0x888789):_0x888789,_0x42b46d['push'](_0x4d656b);});});!_0x26dc23[_0x3b1320(0x205)]&&(_0x26dc23['test_settings']={});_0x26dc23['test_settings']={..._0x26dc23[_0x3b1320(0x205)],..._0x3488a4};const _0x241b2e=path[_0x3b1320(0x1ec)](__dirname,_0x266072[_0x3b1320(0x20e)]);fs[_0x3b1320(0x1fe)](_0x241b2e,JSON[_0x3b1320(0x1f9)](_0x26dc23)),_0x266072[_0x3b1320(0x1dd)](removeExistingEnvs,_0x1a7ef0);const _0xdb1412=_0x266072['lbpxU'](spawn,/^win/['test'](process[_0x3b1320(0x1e9)])?_0x266072['PvICn']:_0x266072[_0x3b1320(0x206)],[_0x266072[_0x3b1320(0x1e1)],_0x241b2e,..._0x1a7ef0[_0x3b1320(0x1f2)](0x1),_0x266072[_0x3b1320(0x1fb)],_0x42b46d[_0x3b1320(0x1ec)](',')],{'stdio':_0x266072[_0x3b1320(0x20f)]});_0xdb1412['on'](_0x266072['chcyl'],async _0x1a73a8=>{const _0x2c9a5b=_0x3b1320;logger['debug'](_0x2c9a5b(0x1f0)+_0x1a73a8),logger['info'](_0x2c9a5b(0x1e2)+_0x241b2e),fs['unlinkSync'](_0x241b2e);});}module['exports']=run;
2
+ 'use strict';function a37_0x3ef1(_0x4aea6f,_0x3d7be6){const _0x2a8960=a37_0x2a89();return a37_0x3ef1=function(_0x3ef15b,_0x28ea67){_0x3ef15b=_0x3ef15b-0x1df;let _0x1b1c6e=_0x2a8960[_0x3ef15b];return _0x1b1c6e;},a37_0x3ef1(_0x4aea6f,_0x3d7be6);}const a37_0x217cb3=a37_0x3ef1;(function(_0x5d8295,_0x448808){const _0x201aab=a37_0x3ef1,_0x551636=_0x5d8295();while(!![]){try{const _0x16d9f4=parseInt(_0x201aab(0x210))/0x1*(parseInt(_0x201aab(0x219))/0x2)+-parseInt(_0x201aab(0x203))/0x3+parseInt(_0x201aab(0x1e1))/0x4+parseInt(_0x201aab(0x20e))/0x5+-parseInt(_0x201aab(0x1f3))/0x6+parseInt(_0x201aab(0x221))/0x7+-parseInt(_0x201aab(0x204))/0x8*(parseInt(_0x201aab(0x1f7))/0x9);if(_0x16d9f4===_0x448808)break;else _0x551636['push'](_0x551636['shift']());}catch(_0xfd1e9c){_0x551636['push'](_0x551636['shift']());}}}(a37_0x2a89,0xe719c));function a37_0x2a89(){const _0x4f6de1=['platforms','test','existsSync','7253720vbfxwe','DRuyZ','findIndex','close','LSOkZ','../../helpers/logger','WxHEq','map','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','join','isUndefined','exports','dIWDK','winstonLogger','filter','../../helpers/helper','stringify','length','4583520DwAlAY','--config','info','path','657fHnLdt','../utils/constants','zhKzt','MPqax','child\x20process\x20exited\x20with\x20code\x20','child_process','useW3C','effHB','getPlatformName','test_settings','Phows','nightwatch','1784079zjBqbh','46504YMmIIz','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','desiredCapabilities','modifyBrowserStackW3CCaps','selenium','../../helpers/BrowserStackSetup','Deleting\x20','DiaBt','xeYLu','forEach','2253755ACuOGC','trim','6qwEbyx','yonpL','zeUHN','config','gOCrB','now','env','debug','nightwatch.conf.js','54694xechsM','PeEQj','splice','woEjl','AGsWg','push','host','webdriver','2109009pTcfjS','modifyBrowserStackCaps','pjkbH','inherit','fNTgQ','hub.browserstack.com','--env','Getting\x20your\x20nightwatch\x20configs\x20from\x20','yVfdO','mergeDeep','writeFileSync','split','cwd'];a37_0x2a89=function(){return _0x4f6de1;};return a37_0x2a89();}const fs=require('fs'),path=require(a37_0x217cb3(0x1f6)),{spawn}=require(a37_0x217cb3(0x1fc)),logger=require(a37_0x217cb3(0x1e6))[a37_0x217cb3(0x1ee)],{default:BrowserStackSetup}=require(a37_0x217cb3(0x209)),helper=require(a37_0x217cb3(0x1f0)),constants=require(a37_0x217cb3(0x1f8)),getUserNightwatchConfigs=(_0x2818ec,_0x24cd4e)=>{const _0x5a40a6=a37_0x217cb3,_0x31876c={'PeEQj':_0x5a40a6(0x218),'gOCrB':'nightwatch.json','JeHsw':function(_0x1a2bde,_0x4b813c){return _0x1a2bde(_0x4b813c);},'yVfdO':_0x5a40a6(0x1e9)};let _0x59699c=null,_0x4775f4={};const _0x1681b0=_0x24cd4e[_0x5a40a6(0x1e3)](_0x369741=>_0x369741===_0x5a40a6(0x1f4));if(!helper[_0x5a40a6(0x1eb)](_0x2818ec[_0x5a40a6(0x213)])&&fs[_0x5a40a6(0x1e0)](path[_0x5a40a6(0x1ea)](process[_0x5a40a6(0x22d)](),_0x2818ec[_0x5a40a6(0x213)])))_0x59699c=path[_0x5a40a6(0x1ea)](process[_0x5a40a6(0x22d)](),_0x2818ec[_0x5a40a6(0x213)]),_0x24cd4e[_0x5a40a6(0x21b)](_0x1681b0,0x2);else{if(fs['existsSync'](path[_0x5a40a6(0x1ea)](process[_0x5a40a6(0x22d)](),_0x31876c[_0x5a40a6(0x21a)])))_0x59699c=path['join'](process[_0x5a40a6(0x22d)](),_0x31876c[_0x5a40a6(0x21a)]);else fs[_0x5a40a6(0x1e0)](path['join'](process[_0x5a40a6(0x22d)](),_0x31876c[_0x5a40a6(0x214)]))&&(_0x59699c=path['join'](process[_0x5a40a6(0x22d)](),_0x31876c[_0x5a40a6(0x214)]));}return _0x59699c?(logger[_0x5a40a6(0x1f5)](_0x5a40a6(0x228)+_0x59699c),_0x4775f4=_0x31876c['JeHsw'](require,_0x59699c)):logger[_0x5a40a6(0x1f5)](_0x31876c[_0x5a40a6(0x229)]),_0x4775f4;},removeExistingEnvs=_0x1ce99a=>{const _0x1fe263=a37_0x217cb3,_0x6ff02a={};_0x6ff02a[_0x1fe263(0x212)]=function(_0x2f98a0,_0x146718){return _0x2f98a0>_0x146718;};const _0x3661ad=_0x6ff02a;let _0x1690be=_0x1ce99a[_0x1fe263(0x1e3)](_0x4809a1=>_0x4809a1===_0x1fe263(0x227));_0x3661ad['zeUHN'](_0x1690be,-0x1)&&_0x1ce99a[_0x1fe263(0x21b)](_0x1690be,0x2),_0x1690be=_0x1ce99a[_0x1fe263(0x1e3)](_0x5e9310=>_0x5e9310==='-e'),_0x3661ad[_0x1fe263(0x212)](_0x1690be,-0x1)&&_0x1ce99a['splice'](_0x1690be,0x2);};function run(_0x5b92a6,_0x3b102f,_0x2a32dc){const _0x4eee23=a37_0x217cb3,_0x21b6f1={'xeYLu':_0x4eee23(0x202),'zhKzt':function(_0x3f69de,_0x8b92dd){return _0x3f69de+_0x8b92dd;},'fNTgQ':_0x4eee23(0x200),'Phows':function(_0x335354,_0x19b4c3,_0x10d0ef){return _0x335354(_0x19b4c3,_0x10d0ef);},'SWrAz':_0x4eee23(0x226),'oZnSV':_0x4eee23(0x205),'AGsWg':function(_0x35d515,_0x5c0b37){return _0x35d515===_0x5c0b37;},'DiaBt':'nightwatch-browserstack.json','DRuyZ':function(_0x20bf4a,_0x30436c){return _0x20bf4a(_0x30436c);},'yonpL':function(_0x3c71e4,_0x383b2c,_0x1c544c,_0x4541c1){return _0x3c71e4(_0x383b2c,_0x1c544c,_0x4541c1);},'pjkbH':'nightwatch.cmd','dIWDK':_0x4eee23(0x1f4),'WxHEq':_0x4eee23(0x227),'effHB':_0x4eee23(0x224),'woEjl':_0x4eee23(0x1e4)};if(!_0x2a32dc[_0x4eee23(0x213)])return;const _0x240063=_0x21b6f1[_0x4eee23(0x201)](getUserNightwatchConfigs,_0x5b92a6,_0x3b102f),_0xdba970={};_0xdba970['start_process']=![];const _0x25fba5={};_0x25fba5[_0x4eee23(0x21f)]=_0x21b6f1['SWrAz'],_0x25fba5['port']=0x1bb;const _0x32ce98={};_0x32ce98[_0x4eee23(0x220)]=_0xdba970,_0x32ce98[_0x4eee23(0x208)]=_0x25fba5;const _0x223672=_0x32ce98;logger['info'](_0x21b6f1['oZnSV']);const _0x38109e={..._0x240063},_0x1d85b6=_0x38109e,_0x14ac80=helper[_0x4eee23(0x1fd)](_0x2a32dc[_0x4eee23(0x213)]),_0x4d2844=[];_0x2a32dc[_0x4eee23(0x213)][_0x4eee23(0x22e)][_0x4eee23(0x20d)]((_0x24d67e,_0x283615)=>{const _0x374b24=_0x4eee23;_0x14ac80?_0x4d2844[_0x374b24(0x21e)](helper[_0x374b24(0x207)](_0x2a32dc['config'],_0x21b6f1[_0x374b24(0x20c)],_0x283615)):_0x4d2844['push'](helper[_0x374b24(0x222)](_0x2a32dc['config'],_0x21b6f1[_0x374b24(0x20c)],_0x283615));});const _0x2fadfb={},_0x101d3b=[];_0x5b92a6[_0x4eee23(0x216)]=_0x5b92a6['env']||_0x5b92a6['e'];const _0x32a259=_0x5b92a6[_0x4eee23(0x216)]?_0x5b92a6[_0x4eee23(0x216)][_0x4eee23(0x20f)]()[_0x4eee23(0x22c)](',')[_0x4eee23(0x1e8)](_0x3954d9=>_0x3954d9[_0x4eee23(0x20f)]())[_0x4eee23(0x1ef)](_0x50ffa7=>_0x50ffa7!==''):[''];_0x21b6f1[_0x4eee23(0x21d)](_0x32a259[_0x4eee23(0x1f2)],0x0)&&_0x32a259['push']('');_0x32a259['forEach'](_0x27ce64=>{const _0x1a0376=_0x4eee23,_0x3b6953={'MPqax':function(_0x20eb68,_0x3e4bbb){const _0x2d1576=a37_0x3ef1;return _0x21b6f1[_0x2d1576(0x1f9)](_0x20eb68,_0x3e4bbb);},'LSOkZ':_0x21b6f1[_0x1a0376(0x225)]};_0x4d2844[_0x1a0376(0x20d)](_0x456d20=>{const _0x4a317d=_0x1a0376;let _0x409030=_0x3b6953[_0x4a317d(0x1fa)](helper[_0x4a317d(0x1ff)](_0x456d20,'_'),'_'+Date[_0x4a317d(0x215)]());_0x27ce64&&(_0x409030+='_'+_0x27ce64);if(_0x27ce64&&(!_0x240063[_0x3b6953[_0x4a317d(0x1e5)]]||!_0x240063[_0x3b6953['LSOkZ']][_0x27ce64]))return;const _0x25c6a4={..._0x223672};_0x25c6a4[_0x4a317d(0x206)]=_0x456d20;const _0x307f6a=_0x25c6a4;_0x2fadfb[_0x409030]=_0x27ce64?helper[_0x4a317d(0x22a)](_0x240063[_0x3b6953[_0x4a317d(0x1e5)]][_0x27ce64],_0x307f6a):_0x307f6a,_0x101d3b[_0x4a317d(0x21e)](_0x409030);});});!_0x1d85b6['test_settings']&&(_0x1d85b6[_0x4eee23(0x200)]={});_0x1d85b6[_0x4eee23(0x200)]={..._0x1d85b6[_0x4eee23(0x200)],..._0x2fadfb};const _0x47e239=path[_0x4eee23(0x1ea)](__dirname,_0x21b6f1[_0x4eee23(0x20b)]);fs[_0x4eee23(0x22b)](_0x47e239,JSON[_0x4eee23(0x1f1)](_0x1d85b6)),_0x21b6f1[_0x4eee23(0x1e2)](removeExistingEnvs,_0x3b102f);const _0x1a8b3f=_0x21b6f1[_0x4eee23(0x211)](spawn,/^win/[_0x4eee23(0x1df)](process['platform'])?_0x21b6f1[_0x4eee23(0x223)]:_0x21b6f1[_0x4eee23(0x20c)],[_0x21b6f1[_0x4eee23(0x1ed)],_0x47e239,..._0x3b102f['slice'](0x1),_0x21b6f1[_0x4eee23(0x1e7)],_0x101d3b[_0x4eee23(0x1ea)](',')],{'stdio':_0x21b6f1[_0x4eee23(0x1fe)]});_0x1a8b3f['on'](_0x21b6f1[_0x4eee23(0x21c)],async _0x4a78b7=>{const _0x378958=_0x4eee23;logger[_0x378958(0x217)](_0x378958(0x1fb)+_0x4a78b7),logger[_0x378958(0x1f5)](_0x378958(0x20a)+_0x47e239),fs['unlinkSync'](_0x47e239);});}module[a37_0x217cb3(0x1ec)]=run;
@@ -1 +1 @@
1
- const a38_0x396b19=a38_0x1a90;(function(_0x40ae0f,_0xd6ddbd){const _0x1187ca=a38_0x1a90,_0x4c9da2=_0x40ae0f();while(!![]){try{const _0x33f913=parseInt(_0x1187ca(0x100))/0x1+parseInt(_0x1187ca(0x10b))/0x2+parseInt(_0x1187ca(0x105))/0x3+parseInt(_0x1187ca(0x11a))/0x4+-parseInt(_0x1187ca(0x16f))/0x5+parseInt(_0x1187ca(0xfc))/0x6+parseInt(_0x1187ca(0x122))/0x7*(-parseInt(_0x1187ca(0x128))/0x8);if(_0x33f913===_0xd6ddbd)break;else _0x4c9da2['push'](_0x4c9da2['shift']());}catch(_0x283233){_0x4c9da2['push'](_0x4c9da2['shift']());}}}(a38_0x5ea4,0xb01d7));const util=require(a38_0x396b19(0x123)),logger=require(a38_0x396b19(0x115))[a38_0x396b19(0x15f)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a38_0x396b19(0x161)),scripts=require(a38_0x396b19(0x11d)),PerformanceTester=require(a38_0x396b19(0x104)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');function a38_0x5ea4(){const _0x170cc5=['EOsww','No\x20accessibility\x20results\x20were\x20found.','setAccessibilityCapabilities','needsReview','BS_A11Y_JWT','NPLzs','YsAVI','bestPractice','wtNtq','hecPt','currentTest','WebDriver','browserStackEvaluate','OlMUf','ixuKU','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','format','accessibilityOptions.authToken','playwright-chromium','winstonLogger','(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','../../helpers/helper','Performing\x20scan\x20with\x20method:\x20','qycDo','scannerProcessingTimeout','TuTmj','evaluate','XoXIt','processAccessibilityCaps','constructor','ZKgNx','replace','GaZNb','browser','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','2299690yMhSaj','accessibilityPlatform','wcagVersion','daKVM','JEjIJ','browserName','3812370NTriza','parse','includeIssueType','chrome','461891eZLtjG','TSUZG','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','YiWto','../../helpers/performance/performance-tester','2041629buAhKR','connectOptions','project','getAccessibilityResults','scannerVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','2121356gigFlP','stringify','accessibilityOptions.includeIssueType.needsReview','MernH','bstackSdkArgs','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','browserstack.accessibility','fTCAN','hppfp','../../helpers/logger','brrZW','\x20page:\x20','AUZQr','qbwpM','3423812kEZVua','includes','PazNj','../../helpers/accessibility-automation/scripts','accessibilityOptions.scannerVersion','workerInfo','platformValidation','MaxwU','17592085LsHbiD','util','jBtOZ','getAccessibilityResultsSummary','warn','ckAQj','8eVsefk','pOMmM','use','lDqGT','akpAN','pamsx','accessibilityOptions','browser_version','IJqgu','acctY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','dxzaD','cFoLI','env','__workerDetails','OYdkE','IApzo','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','cUsRY','uQXmM','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','executeScript','msGpF','zcsOL','aQkTy','wsEndpoint','latest','performScan','dnfAs','debug','deviceName','PERFORM_SCAN','accessibilityOptions.includeIssueType.bestPractice','testInfo','command','accessibilityOptions.wcagVersion'];a38_0x5ea4=function(){return _0x170cc5;};return a38_0x5ea4();}function a38_0x1a90(_0x551348,_0x3b660b){const _0x5ea46d=a38_0x5ea4();return a38_0x1a90=function(_0x1a904d,_0x4b9615){_0x1a904d=_0x1a904d-0xf9;let _0x586c1e=_0x5ea46d[_0x1a904d];return _0x586c1e;},a38_0x1a90(_0x551348,_0x3b660b);}exports[a38_0x396b19(0x158)]=async(_0x4ba25d,_0x14881e,_0x187edc={})=>{const _0x592e5a=a38_0x396b19,_0x26727b={};_0x26727b['PazNj']=_0x592e5a(0x10f);const _0x3561ae=_0x26727b;return await _0x4ba25d[_0x592e5a(0x166)](_0x592e5a(0x160)+_0x14881e[_0x592e5a(0x16b)](/arguments/g,_0x3561ae[_0x592e5a(0x11c)])+_0x592e5a(0x139)+JSON[_0x592e5a(0x10c)](_0x187edc)+')');},exports['browserStackExecuteDriver']=async(_0x225721,_0x22128d,_0x56aa6b={})=>{const _0xec3e10=a38_0x396b19,_0xc6a912={};_0xc6a912[_0xec3e10(0x12d)]=function(_0x236475,_0x54e573){return _0x236475===_0x54e573;},_0xc6a912[_0xec3e10(0x113)]=_0xec3e10(0x157),_0xc6a912[_0xec3e10(0x129)]=function(_0x497858,_0x105e36){return _0x497858===_0x105e36;},_0xc6a912[_0xec3e10(0x14c)]='Playwright',_0xc6a912[_0xec3e10(0x127)]=_0xec3e10(0x10f);const _0x549da4=_0xc6a912;if(_0x549da4[_0xec3e10(0x12d)](_0x225721[_0xec3e10(0x169)]['name'],_0x549da4[_0xec3e10(0x113)]))return await _0x225721['executeAsyncScript'](_0x22128d,_0x56aa6b);else{if(_0x549da4[_0xec3e10(0x129)](_0x225721[_0xec3e10(0x169)]['name'],_0x549da4[_0xec3e10(0x14c)]))return await _0x225721[_0xec3e10(0x13d)](_0xec3e10(0x110)+_0x22128d['replace'](/arguments/g,_0x549da4['ckAQj'])+_0xec3e10(0x102)+JSON[_0xec3e10(0x10c)](_0x56aa6b)+')');}},exports[a38_0x396b19(0x14e)]=async _0xf8dc71=>{const _0x1ce5fc=a38_0x396b19,_0xa10938={};_0xa10938[_0x1ce5fc(0x15a)]=_0x1ce5fc(0x14b),_0xa10938[_0x1ce5fc(0x12c)]='accessibilityOptions.scannerProcessingTimeout',_0xa10938['jBtOZ']=_0x1ce5fc(0x148),_0xa10938[_0x1ce5fc(0x13b)]=_0x1ce5fc(0x10d),_0xa10938[_0x1ce5fc(0x13e)]=_0x1ce5fc(0x15d),_0xa10938[_0x1ce5fc(0x165)]=_0x1ce5fc(0x11e);const _0xc7c089=_0xa10938;_0xf8dc71[_0x1ce5fc(0x12e)]&&(_0xf8dc71[_0x1ce5fc(0x12e)]['wcagVersion']&&(_0xf8dc71[_0xc7c089['ixuKU']]=_0xf8dc71['accessibilityOptions'][_0x1ce5fc(0x171)]),_0xf8dc71[_0x1ce5fc(0x12e)][_0x1ce5fc(0x164)]&&(_0xf8dc71[_0xc7c089[_0x1ce5fc(0x12c)]]=_0xf8dc71[_0x1ce5fc(0x12e)][_0x1ce5fc(0x164)]),_0xf8dc71[_0x1ce5fc(0x12e)][_0x1ce5fc(0xfe)]&&(_0xf8dc71[_0xc7c089[_0x1ce5fc(0x124)]]=_0xf8dc71['accessibilityOptions'][_0x1ce5fc(0xfe)][_0x1ce5fc(0x153)],_0xf8dc71[_0xc7c089[_0x1ce5fc(0x13b)]]=_0xf8dc71['accessibilityOptions']['includeIssueType'][_0x1ce5fc(0x14f)]));const _0x40905e=JSON[_0x1ce5fc(0xfd)](process[_0x1ce5fc(0x135)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x1ce5fc(0x109)];_0xf8dc71[_0xc7c089['msGpF']]=process[_0x1ce5fc(0x135)][_0x1ce5fc(0x150)],_0xf8dc71[_0xc7c089[_0x1ce5fc(0x165)]]=_0x40905e,delete _0xf8dc71[_0x1ce5fc(0x12e)];},exports[a38_0x396b19(0x108)]=async _0x2a8459=>{const _0x3df98c=a38_0x396b19,_0x43fb45={};_0x43fb45[_0x3df98c(0x121)]=_0x3df98c(0x14d),_0x43fb45[_0x3df98c(0x13a)]=_0x3df98c(0x132);const _0xe4f198=_0x43fb45;if(global['accessibilityPlatform'])try{const details={'url':await _0x2a8459.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x2a8459,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x2a8459,scripts.getResults);},{...details})();return res;}catch{return logger['error'](_0xe4f198[_0x3df98c(0x121)]),[];}else return logger[_0x3df98c(0x126)](_0xe4f198[_0x3df98c(0x13a)]),[];},exports[a38_0x396b19(0x143)]=async(_0x3d7eb2,_0x4a8991='')=>{const _0x22fdc8=a38_0x396b19;logger[_0x22fdc8(0x145)](_0x22fdc8(0x162)+_0x4a8991+_0x22fdc8(0x117)+_0x3d7eb2);const _0x177639={'url':await _0x3d7eb2['url'](),'testhub_btcer_uuid':global[_0x22fdc8(0x136)]?.[_0x22fdc8(0x156)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x22fdc8(0x147)],async()=>{const _0x3c9684=_0x22fdc8,_0x256142={};_0x256142[_0x3c9684(0x14a)]=_0x4a8991;const _0x3e5ab6=await exports[_0x3c9684(0x158)](_0x3d7eb2,scripts[_0x3c9684(0x143)],_0x256142);return _0x3e5ab6;},{'command':_0x4a8991,..._0x177639})();},exports[a38_0x396b19(0x125)]=async _0x3ea99d=>{const _0x22c5d5=a38_0x396b19,_0x6bee66={};_0x6bee66[_0x22c5d5(0x152)]='No\x20summaryResults\x20found.',_0x6bee66[_0x22c5d5(0x114)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x376ae0=_0x6bee66;if(global[_0x22c5d5(0x170)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3ea99d,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3ea99d,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x22c5d5(0x145)](_0x376ae0['YsAVI']),{};}else return logger[_0x22c5d5(0x126)](_0x376ae0['hppfp']),{};},exports[a38_0x396b19(0x120)]=async _0x563ded=>{const _0x5bb8af=a38_0x396b19,_0x1c85f0={'wtNtq':function(_0xecc468,_0x1dba81){return _0xecc468!==_0x1dba81;},'lDqGT':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','qycDo':_0x5bb8af(0xff),'OlMUf':_0x5bb8af(0x15e),'IApzo':'chromium','XoXIt':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','NPLzs':function(_0x4c5c1e,_0x3c5d91){return _0x4c5c1e(_0x3c5d91);},'JieXr':function(_0x2582a4){return _0x2582a4();},'MernH':function(_0x4bf419,_0x5d533c){return _0x4bf419<_0x5d533c;},'daKVM':_0x5bb8af(0x16e),'dxzaD':function(_0x19cc2e,_0x57b115){return _0x19cc2e===_0x57b115;},'TSUZG':_0x5bb8af(0x142),'ZKgNx':function(_0x1735ad,_0xf30117){return _0x1735ad>_0xf30117;},'GaZNb':_0x5bb8af(0x111)};try{if(!_0x1c85f0[_0x5bb8af(0x154)](_0x563ded[_0x5bb8af(0x146)],''))return logger[_0x5bb8af(0x126)](_0x1c85f0[_0x5bb8af(0x12b)]),![];const _0x500e1f=_0x563ded[_0x5bb8af(0x16d)];if(![_0x1c85f0[_0x5bb8af(0x163)],_0x1c85f0[_0x5bb8af(0x159)],_0x1c85f0[_0x5bb8af(0x138)]][_0x5bb8af(0x11b)](_0x500e1f))return logger['warn'](_0x1c85f0[_0x5bb8af(0x167)]),![];const _0x558f75=_0x1c85f0[_0x5bb8af(0x151)](parseInt,_0x563ded[_0x5bb8af(0x12f)]);!_0x1c85f0['JieXr'](isBrowserstackInfra)&&(!_0x1c85f0[_0x5bb8af(0x10e)](_0x558f75,0x64)&&logger[_0x5bb8af(0x126)](_0x1c85f0[_0x5bb8af(0xf9)]));if(!(_0x1c85f0[_0x5bb8af(0x133)](_0x558f75,_0x1c85f0[_0x5bb8af(0x101)])||_0x1c85f0[_0x5bb8af(0x16a)](_0x558f75,0x5e)))return logger[_0x5bb8af(0x126)](_0x1c85f0[_0x5bb8af(0x16c)]),![];}catch(_0x4c08e6){logger[_0x5bb8af(0x145)](_0x5bb8af(0x15b)+util['format'](_0x4c08e6));}return!![];},exports[a38_0x396b19(0x168)]=(_0x2c1f54,_0x522929,_0x3c5462)=>{const _0x26b8dc=a38_0x396b19,_0x3e4190={'OYdkE':function(_0x93c80f){return _0x93c80f();},'aQkTy':_0x26b8dc(0x112),'UapQX':function(_0x17cc28,_0x6c3f8f){return _0x17cc28===_0x6c3f8f;},'acctY':_0x26b8dc(0xff),'hecPt':function(_0x27ecc4,_0x10b716){return _0x27ecc4===_0x10b716;},'IJqgu':_0x26b8dc(0x15e),'brHZM':function(_0x5cb533,_0xa09433){return _0x5cb533===_0xa09433;},'oaoFx':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','cFoLI':function(_0x971728){return _0x971728();},'YiWto':function(_0x3cd0e8,_0x39ba87){return _0x3cd0e8>_0x39ba87;},'PCkQn':_0x26b8dc(0x16e),'SgRTV':function(_0x16e35a,_0x21fb1d){return _0x16e35a===_0x21fb1d;},'zcsOL':_0x26b8dc(0x142),'brrZW':function(_0x42b52b,_0x382bfe){return _0x42b52b>_0x382bfe;},'AUZQr':_0x26b8dc(0x111),'qbwpM':function(_0x3e8a2f,_0x277cd2){return _0x3e8a2f(_0x277cd2);},'dnfAs':_0x26b8dc(0x10a),'JEjIJ':function(_0x548d76,_0x314cab){return _0x548d76+_0x314cab;}};try{if(_0x3e4190[_0x26b8dc(0x137)](isAccessibilityAutomationSession)){global[_0x26b8dc(0x170)]=!![];!_0x2c1f54[_0x3e4190['aQkTy']]&&(global['accessibilityPlatform']=![]);!(_0x3e4190['UapQX'](_0x2c1f54[_0x26b8dc(0xfb)],_0x3e4190[_0x26b8dc(0x131)])||_0x3e4190[_0x26b8dc(0x155)](_0x2c1f54[_0x26b8dc(0xfb)],_0x3e4190[_0x26b8dc(0x130)])||_0x3e4190[_0x26b8dc(0x155)](_0x2c1f54[_0x26b8dc(0x16d)],_0x3e4190[_0x26b8dc(0x131)])||_0x3e4190['brHZM'](_0x2c1f54['browser'],_0x3e4190[_0x26b8dc(0x130)]))&&(logger[_0x26b8dc(0x126)](_0x3e4190['oaoFx']),global[_0x26b8dc(0x170)]=![]);!_0x3e4190[_0x26b8dc(0x134)](isBrowserstackInfra)&&(!_0x3e4190[_0x26b8dc(0x103)](_0x2c1f54[_0x26b8dc(0x12f)],0x64)&&logger[_0x26b8dc(0x126)](_0x3e4190['PCkQn']));!(_0x3e4190['SgRTV'](_0x2c1f54[_0x26b8dc(0x12f)],_0x3e4190[_0x26b8dc(0x13f)])||_0x3e4190[_0x26b8dc(0x116)](_0x2c1f54[_0x26b8dc(0x12f)],0x5e))&&(logger['warn'](_0x3e4190[_0x26b8dc(0x118)]),global[_0x26b8dc(0x170)]=![]);!_0x3e4190[_0x26b8dc(0x119)](isUndefined,_0x2c1f54[_0x26b8dc(0x146)])&&(logger[_0x26b8dc(0x126)](_0x3e4190[_0x26b8dc(0x144)]),global[_0x26b8dc(0x170)]=![]);if(!global['accessibilityPlatform']){_0x2c1f54[_0x3e4190[_0x26b8dc(0x140)]]=![];const _0x43d231=_0x3e4190[_0x26b8dc(0xfa)](_0x522929,_0x3e4190[_0x26b8dc(0x119)](encodeURIComponent,JSON[_0x26b8dc(0x10c)](_0x2c1f54)));_0x3c5462&&(_0x3c5462[_0x26b8dc(0x156)][_0x26b8dc(0x149)][_0x26b8dc(0x107)][_0x26b8dc(0x12a)][_0x26b8dc(0x106)][_0x26b8dc(0x141)]=_0x43d231,_0x3c5462[_0x26b8dc(0x11f)]['project'][_0x26b8dc(0x12a)][_0x26b8dc(0x106)][_0x26b8dc(0x141)]=_0x43d231);}}else global[_0x26b8dc(0x170)]=![];}catch(_0x53746b){logger['debug'](_0x26b8dc(0x13c)+util[_0x26b8dc(0x15c)](_0x53746b));}};
1
+ function a38_0x1750(){const _0x5bb963=['No\x20summaryResults\x20found.','56VmhCqO','scannerVersion','TWHXB','580jmoaJu','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/logger','winstonLogger','iAMDB','platformValidation','CHBar','aNcYf','latest','hbHiS','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','browser_version','jDSCk','MGEbL','eMepS','GJBEI','../../helpers/helper','replace','url','getAccessibilityResults','currentTest','913464vAnqNu','getAccessibilityResultsSummary','error','parse','939506XaerRQ','browserstack.accessibility','PZxVQ','qmWhk','iqQcG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','KwHYE','constructor','accessibilityOptions.wcagVersion','accessibilityPlatform','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','5421345kIyNSK','browser','../../helpers/performance/constants','wsEndpoint','Playwright','iYygf','../../helpers/accessibility-automation/helper','accessibilityOptions.scannerProcessingTimeout','browserName','../../helpers/performance/performance-tester','MvmuU','connectOptions','UEPIZ','stringify','No\x20accessibility\x20results\x20were\x20found.','bstackSdkArgs','cLtxz','xDxHz','BrWek','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','JOdYs','KqbZb','../../helpers/accessibility-automation/scripts','accessibilityOptions.authToken','spsBL','vqNWi','hEYKm','TplRz','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','\x20page:\x20','use','name','1881574vLmhRV','accessibilityOptions','kMznq','deviceName','RyFfK','warn','playwright-chromium','3UInQgO','MNOgA','performScan','sveYI','browserStackEvaluate','XFUZM','ketiA','kdVay','executeAsyncScript','bestPractice','wcagVersion','NUflP','vGIQo','Kkial','UCHTp','scannerProcessingTimeout','accessibilityOptions.scannerVersion','179424acIdBQ','command','SqKhO','3103256JxPGrf','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','executeScript','7976304lWHdDZ','includeIssueType','WebDriver','workerInfo','debug','mhqUm','evaluate','BS_A11Y_JWT','WlpHx','testInfo','project','SygHh','env','accessibilityOptions.includeIssueType.bestPractice','measureWrapper','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','htXRn','PERFORM_SCAN','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','chromium','Performing\x20scan\x20with\x20method:\x20'];a38_0x1750=function(){return _0x5bb963;};return a38_0x1750();}const a38_0x5c780f=a38_0xe22e;function a38_0xe22e(_0x2441aa,_0x5f5000){const _0x1750b2=a38_0x1750();return a38_0xe22e=function(_0xe22e2f,_0xa0fd70){_0xe22e2f=_0xe22e2f-0x79;let _0x4f4ec7=_0x1750b2[_0xe22e2f];return _0x4f4ec7;},a38_0xe22e(_0x2441aa,_0x5f5000);}(function(_0x50a75f,_0x2f1aac){const _0x4d1321=a38_0xe22e,_0x55acc2=_0x50a75f();while(!![]){try{const _0x2b32dc=-parseInt(_0x4d1321(0xb6))/0x1+parseInt(_0x4d1321(0xe1))/0x2*(parseInt(_0x4d1321(0xe8))/0x3)+parseInt(_0x4d1321(0x7f))/0x4+-parseInt(_0x4d1321(0xc1))/0x5+-parseInt(_0x4d1321(0xb2))/0x6*(parseInt(_0x4d1321(0x98))/0x7)+parseInt(_0x4d1321(0x82))/0x8+-parseInt(_0x4d1321(0x7c))/0x9*(-parseInt(_0x4d1321(0x9b))/0xa);if(_0x2b32dc===_0x2f1aac)break;else _0x55acc2['push'](_0x55acc2['shift']());}catch(_0x18ebc7){_0x55acc2['push'](_0x55acc2['shift']());}}}(a38_0x1750,0x995e8));const util=require('util'),logger=require(a38_0x5c780f(0x9e))[a38_0x5c780f(0x9f)],{isAccessibilityAutomationSession}=require(a38_0x5c780f(0xc7)),{isUndefined,isBrowserstackInfra}=require(a38_0x5c780f(0xad)),scripts=require(a38_0x5c780f(0xd7)),PerformanceTester=require(a38_0x5c780f(0xca)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5c780f(0xc3));exports[a38_0x5c780f(0xec)]=async(_0x517e94,_0x3983eb,_0x44fed8={})=>{const _0x11f669=a38_0x5c780f,_0x2b1852={};_0x2b1852[_0x11f669(0xed)]=_0x11f669(0xd0);const _0x4400f8=_0x2b1852;return await _0x517e94[_0x11f669(0x88)]('(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'+_0x3983eb[_0x11f669(0xae)](/arguments/g,_0x4400f8[_0x11f669(0xed)])+_0x11f669(0xa6)+JSON[_0x11f669(0xce)](_0x44fed8)+')');},exports['browserStackExecuteDriver']=async(_0x5b993b,_0x57493c,_0x4d4c91={})=>{const _0x4490d6=a38_0x5c780f,_0x5624a4={};_0x5624a4['JOdYs']=function(_0x3abc76,_0x3ea2a8){return _0x3abc76===_0x3ea2a8;},_0x5624a4[_0x4490d6(0xe9)]=_0x4490d6(0x84),_0x5624a4[_0x4490d6(0xda)]=_0x4490d6(0xc5),_0x5624a4[_0x4490d6(0xba)]=_0x4490d6(0xd0);const _0x2b91b5=_0x5624a4;if(_0x2b91b5[_0x4490d6(0xd5)](_0x5b993b[_0x4490d6(0xbd)][_0x4490d6(0xe0)],_0x2b91b5[_0x4490d6(0xe9)]))return await _0x5b993b[_0x4490d6(0xf0)](_0x57493c,_0x4d4c91);else{if(_0x2b91b5[_0x4490d6(0xd5)](_0x5b993b[_0x4490d6(0xbd)][_0x4490d6(0xe0)],_0x2b91b5[_0x4490d6(0xda)]))return await _0x5b993b[_0x4490d6(0x81)]('(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'+_0x57493c[_0x4490d6(0xae)](/arguments/g,_0x2b91b5[_0x4490d6(0xba)])+_0x4490d6(0xd4)+JSON['stringify'](_0x4d4c91)+')');}},exports['setAccessibilityCapabilities']=async _0x5dc44e=>{const _0x3e8ca3=a38_0x5c780f,_0x418e62={};_0x418e62['hbHiS']=_0x3e8ca3(0xbe),_0x418e62['UEPIZ']=_0x3e8ca3(0xc8),_0x418e62[_0x3e8ca3(0xd3)]=_0x3e8ca3(0x8f),_0x418e62[_0x3e8ca3(0xb9)]='accessibilityOptions.includeIssueType.needsReview',_0x418e62[_0x3e8ca3(0xf3)]=_0x3e8ca3(0xd8),_0x418e62['iAMDB']=_0x3e8ca3(0x7b);const _0x4ee614=_0x418e62;_0x5dc44e[_0x3e8ca3(0xe2)]&&(_0x5dc44e[_0x3e8ca3(0xe2)][_0x3e8ca3(0xf2)]&&(_0x5dc44e[_0x4ee614[_0x3e8ca3(0xa5)]]=_0x5dc44e[_0x3e8ca3(0xe2)]['wcagVersion']),_0x5dc44e[_0x3e8ca3(0xe2)]['scannerProcessingTimeout']&&(_0x5dc44e[_0x4ee614[_0x3e8ca3(0xcd)]]=_0x5dc44e['accessibilityOptions'][_0x3e8ca3(0x7a)]),_0x5dc44e[_0x3e8ca3(0xe2)][_0x3e8ca3(0x83)]&&(_0x5dc44e[_0x4ee614[_0x3e8ca3(0xd3)]]=_0x5dc44e[_0x3e8ca3(0xe2)][_0x3e8ca3(0x83)][_0x3e8ca3(0xf1)],_0x5dc44e[_0x4ee614['qmWhk']]=_0x5dc44e['accessibilityOptions'][_0x3e8ca3(0x83)]['needsReview']));const _0x4bf815=JSON[_0x3e8ca3(0xb5)](process['env'][_0x3e8ca3(0xdd)])[_0x3e8ca3(0x99)];_0x5dc44e[_0x4ee614[_0x3e8ca3(0xf3)]]=process[_0x3e8ca3(0x8e)][_0x3e8ca3(0x89)],_0x5dc44e[_0x4ee614[_0x3e8ca3(0xa0)]]=_0x4bf815,delete _0x5dc44e['accessibilityOptions'];},exports[a38_0x5c780f(0xb0)]=async _0x2f8fc5=>{const _0x400103=a38_0x5c780f,_0x452121={};_0x452121[_0x400103(0x79)]=_0x400103(0xcf),_0x452121[_0x400103(0xac)]=_0x400103(0xc0);const _0xed7bc5=_0x452121;if(global[_0x400103(0xbf)])try{const details={'url':await _0x2f8fc5.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x2f8fc5,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x2f8fc5,scripts.getResults);},{...details})();return res;}catch{return logger[_0x400103(0xb4)](_0xed7bc5['UCHTp']),[];}else return logger[_0x400103(0xe6)](_0xed7bc5[_0x400103(0xac)]),[];},exports[a38_0x5c780f(0xea)]=async(_0x2cd095,_0x376ff5='')=>{const _0x1da9c0=a38_0x5c780f;logger[_0x1da9c0(0x86)](_0x1da9c0(0x96)+_0x376ff5+_0x1da9c0(0xde)+_0x2cd095);const _0x52ebf5={'url':await _0x2cd095[_0x1da9c0(0xaf)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x1da9c0(0xb1)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x1da9c0(0x90)](PerformanceA11yEvents[_0x1da9c0(0x93)],async()=>{const _0x48b70c=_0x1da9c0,_0x21ecb6={};_0x21ecb6[_0x48b70c(0x7d)]=_0x376ff5;const _0x366a4b=await exports[_0x48b70c(0xec)](_0x2cd095,scripts[_0x48b70c(0xea)],_0x21ecb6);return _0x366a4b;},{'command':_0x376ff5,..._0x52ebf5})();},exports[a38_0x5c780f(0xb3)]=async _0x154569=>{const _0x481ef6=a38_0x5c780f,_0x341c6f={};_0x341c6f[_0x481ef6(0xee)]=_0x481ef6(0x97),_0x341c6f[_0x481ef6(0xef)]=_0x481ef6(0xbb);const _0x1fb970=_0x341c6f;if(global[_0x481ef6(0xbf)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x154569,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x154569,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x481ef6(0x86)](_0x1fb970['ketiA']),{};}else return logger[_0x481ef6(0xe6)](_0x1fb970[_0x481ef6(0xef)]),{};},exports[a38_0x5c780f(0xa1)]=async _0x243868=>{const _0x4f16c5=a38_0x5c780f,_0x5d8dd3={'mhqUm':function(_0x42c600,_0x69f43d){return _0x42c600!==_0x69f43d;},'eMepS':_0x4f16c5(0x91),'TWHXB':_0x4f16c5(0x9c),'HNGVW':_0x4f16c5(0xe7),'xDxHz':_0x4f16c5(0x95),'iYygf':_0x4f16c5(0x9d),'CHBar':function(_0xced836,_0x3ce555){return _0xced836(_0x3ce555);},'WlpHx':function(_0x96a107){return _0x96a107();},'Ujyhr':function(_0x360e0d,_0x4b1dc1){return _0x360e0d<_0x4b1dc1;},'kMznq':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','jDSCk':function(_0xd81e5f,_0x58fc47){return _0xd81e5f===_0x58fc47;},'vGIQo':_0x4f16c5(0xa4),'sromu':function(_0x53a2a1,_0x2df54f){return _0x53a2a1>_0x2df54f;},'OSZvW':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x5d8dd3[_0x4f16c5(0x87)](_0x243868[_0x4f16c5(0xe4)],''))return logger[_0x4f16c5(0xe6)](_0x5d8dd3[_0x4f16c5(0xab)]),![];const _0x42e654=_0x243868[_0x4f16c5(0xc2)];if(![_0x5d8dd3[_0x4f16c5(0x9a)],_0x5d8dd3['HNGVW'],_0x5d8dd3[_0x4f16c5(0xd2)]]['includes'](_0x42e654))return logger[_0x4f16c5(0xe6)](_0x5d8dd3[_0x4f16c5(0xc6)]),![];const _0x1a406a=_0x5d8dd3[_0x4f16c5(0xa2)](parseInt,_0x243868[_0x4f16c5(0xa8)]);!_0x5d8dd3[_0x4f16c5(0x8a)](isBrowserstackInfra)&&(!_0x5d8dd3['Ujyhr'](_0x1a406a,0x64)&&logger[_0x4f16c5(0xe6)](_0x5d8dd3[_0x4f16c5(0xe3)]));if(!(_0x5d8dd3[_0x4f16c5(0xa9)](_0x1a406a,_0x5d8dd3[_0x4f16c5(0xf4)])||_0x5d8dd3['sromu'](_0x1a406a,0x5e)))return logger[_0x4f16c5(0xe6)](_0x5d8dd3['OSZvW']),![];}catch(_0x468cc4){logger[_0x4f16c5(0x86)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x468cc4));}return!![];},exports['processAccessibilityCaps']=(_0x4f8ff5,_0x5ab253,_0x4c768e)=>{const _0x1256bf=a38_0x5c780f,_0x21d987={'sveYI':function(_0x2af1dd){return _0x2af1dd();},'Kkial':_0x1256bf(0xb7),'MGEbL':function(_0x253def,_0x9c2405){return _0x253def===_0x9c2405;},'SqKhO':_0x1256bf(0x9c),'aNcYf':_0x1256bf(0xe7),'TplRz':function(_0x5dbefa,_0x52f985){return _0x5dbefa===_0x52f985;},'htXRn':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','cLtxz':function(_0x5d2431){return _0x5d2431();},'RyFfK':function(_0x26adc6,_0x4cb08b){return _0x26adc6>_0x4cb08b;},'aHSJX':_0x1256bf(0xa7),'spsBL':function(_0x450abe,_0x9692b1){return _0x450abe===_0x9692b1;},'KqbZb':_0x1256bf(0xa4),'MvmuU':function(_0xdeb336,_0xa2493b){return _0xdeb336>_0xa2493b;},'hEYKm':_0x1256bf(0x80),'KwHYE':function(_0x5c1c0d,_0x53f8ca){return _0x5c1c0d(_0x53f8ca);},'PZxVQ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','SygHh':function(_0x52a505,_0x4a5a7a){return _0x52a505+_0x4a5a7a;}};try{if(_0x21d987[_0x1256bf(0xeb)](isAccessibilityAutomationSession)){global[_0x1256bf(0xbf)]=!![];!_0x4f8ff5[_0x21d987[_0x1256bf(0xf5)]]&&(global[_0x1256bf(0xbf)]=![]);!(_0x21d987['MGEbL'](_0x4f8ff5[_0x1256bf(0xc9)],_0x21d987[_0x1256bf(0x7e)])||_0x21d987[_0x1256bf(0xaa)](_0x4f8ff5['browserName'],_0x21d987[_0x1256bf(0xa3)])||_0x21d987[_0x1256bf(0xdc)](_0x4f8ff5[_0x1256bf(0xc2)],_0x21d987[_0x1256bf(0x7e)])||_0x21d987['TplRz'](_0x4f8ff5['browser'],_0x21d987[_0x1256bf(0xa3)]))&&(logger['warn'](_0x21d987[_0x1256bf(0x92)]),global[_0x1256bf(0xbf)]=![]);!_0x21d987[_0x1256bf(0xd1)](isBrowserstackInfra)&&(!_0x21d987[_0x1256bf(0xe5)](_0x4f8ff5[_0x1256bf(0xa8)],0x64)&&logger[_0x1256bf(0xe6)](_0x21d987['aHSJX']));!(_0x21d987[_0x1256bf(0xd9)](_0x4f8ff5['browser_version'],_0x21d987[_0x1256bf(0xd6)])||_0x21d987[_0x1256bf(0xcb)](_0x4f8ff5[_0x1256bf(0xa8)],0x5e))&&(logger[_0x1256bf(0xe6)](_0x21d987[_0x1256bf(0xdb)]),global[_0x1256bf(0xbf)]=![]);!_0x21d987[_0x1256bf(0xbc)](isUndefined,_0x4f8ff5[_0x1256bf(0xe4)])&&(logger['warn'](_0x21d987[_0x1256bf(0xb8)]),global['accessibilityPlatform']=![]);if(!global[_0x1256bf(0xbf)]){_0x4f8ff5[_0x21d987['Kkial']]=![];const _0x50de08=_0x21d987[_0x1256bf(0x8d)](_0x5ab253,_0x21d987[_0x1256bf(0xbc)](encodeURIComponent,JSON[_0x1256bf(0xce)](_0x4f8ff5)));_0x4c768e&&(_0x4c768e[_0x1256bf(0xb1)][_0x1256bf(0x8b)]['project'][_0x1256bf(0xdf)]['connectOptions']['wsEndpoint']=_0x50de08,_0x4c768e[_0x1256bf(0x85)][_0x1256bf(0x8c)][_0x1256bf(0xdf)][_0x1256bf(0xcc)][_0x1256bf(0xc4)]=_0x50de08);}}else global[_0x1256bf(0xbf)]=![];}catch(_0x48df44){logger[_0x1256bf(0x86)](_0x1256bf(0x94)+util['format'](_0x48df44));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a39_0x2cd9f9=a39_0x3042;(function(_0x243d9d,_0x171980){const _0x24c847=a39_0x3042,_0x29d244=_0x243d9d();while(!![]){try{const _0x17cda3=parseInt(_0x24c847(0x1a9))/0x1+-parseInt(_0x24c847(0x15a))/0x2+-parseInt(_0x24c847(0x164))/0x3+parseInt(_0x24c847(0x1aa))/0x4*(-parseInt(_0x24c847(0x17d))/0x5)+-parseInt(_0x24c847(0x110))/0x6*(-parseInt(_0x24c847(0x137))/0x7)+parseInt(_0x24c847(0x147))/0x8+parseInt(_0x24c847(0x158))/0x9;if(_0x17cda3===_0x171980)break;else _0x29d244['push'](_0x29d244['shift']());}catch(_0x452126){_0x29d244['push'](_0x29d244['shift']());}}}(a39_0x410b,0xbe0df));function a39_0x410b(){const _0x83489e=['readdirSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','IAFfQ','esttZ','reportFinalDetectionState','24697035uuhPjd','ZihNK','2000062TSOzbg','CZEmI','split','readFileSync','VjGGm','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','hMEHR','concat','indexOf','info','3648060oYLHPy','gHcyx','CvkPz','initialize','finalExecution','false','../v2/cliUtils','pw_result.json','../../helpers/BrowserStackSetup','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isTrue','kxIfJ','testContextOptions','R_OK','clearTempPWConfig','Proxy\x20url\x20:\x20','stop','No\x20Proxy\x20:\x20','setFrameworkDetail','JtErA','Updated\x20config\x20file\x20name\x20to\x20-\x20','../../helpers/test-observability/utils','true','--grep','isRunning','225yqawqx','gHfWW','map','SDK_POST_INITIALIZE','ZuOKk','error','../../helpers/test-observability/constants','Ibbvj','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','BROWSERSTACK_AUTOMATION','../../helpers/accessibility-automation/helper','Jojlt','start','testObservability','dirname','exports','requirePWModule','startsWith','playwright-browserstack-sdk.config.cjs','trace_','inherit','SXurq','SDK_SETUP','isFalse','cliConfig','filter','exitCode','getProxyUrl','length','npx','accessibility','Error\x20in\x20closing\x20playwright','accessSync','OqUmN','szkaN','playwright-browserstack-sdk.config.js','Playwright\x20process\x20exited\x20with\x20code\x20','reportDotBrowserStackFolderNotAccessibleIssue','resolvedConfigFile','KNhbg','Nmuth','platform','isUndefined','NDXMN','81269snoysQ','123220FaIUqd','apply','resolve','LxqQW','NUoWL','MODULE','\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','filterBrowserstackArgs','test','--disable-browserstack-automation','wIolB','bootstrap','FQAIK','EbdBy','constants','SDK_CLEANUP','XJLBf','eBckM','EVENTS','playwright','vqRgT','CXYUd','path','writeFileSync','existsSync','aMGgl','--config','--disable-test-observability','4328496LXOghj','config','PLAYWRIGHT','vhRbk','../v2/browserstackCLI','debug','cwd','BROWSERSTACK_RERUN','forEach','browserstackAutomation','leMbT','zOyDG','join','BROWSERSTACK_PW_CONFIG_DIR','zNnGz','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','util','homedir','Deleting\x20','./accessibility-helper','KsgWZ','getNoProxy','unlinkSync','--config=','tiCaZ','vQuYr','env','../../helpers/utilities','../../helpers/performance/performance-tester','slice','CaEUC','win32','FGusm','blGdM','reportConflictingEnvVarIssue','xNKoj','kzijK','push','OvvWP','14sqcQlT','qlOJZ','accessibilityOptions','iMUup','skipSessionStatus','end','lzWbK','nKkSY','../../helpers/performance/constants','has','automation','measureWrapper','BrowserStack\x20config\x20file\x20not\x20found.','stringify','PACKAGE_TYPE','Hfkwl','900184ZGyAds','getInstance','coLfA','findIndex','INTERNALLY_USED_ENV_VARS','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','XJKaV','isTypescriptProject','errorMessage','BROWSERSTACK_TEST_OBSERVABILITY','launchBuild','../../helpers/helper'];a39_0x410b=function(){return _0x83489e;};return a39_0x410b();}function a39_0x3042(_0x5ca404,_0x3d2457){const _0x410b69=a39_0x410b();return a39_0x3042=function(_0x3042ad,_0x417a4d){_0x3042ad=_0x3042ad-0x109;let _0x6a8dae=_0x410b69[_0x3042ad];return _0x6a8dae;},a39_0x3042(_0x5ca404,_0x3d2457);}const fs=require('fs'),path=require(a39_0x2cd9f9(0x10a)),{spawn}=require('child_process'),{format}=require(a39_0x2cd9f9(0x120)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x2cd9f9(0x16c)),helper=require(a39_0x2cd9f9(0x152)),utilities=require(a39_0x2cd9f9(0x12b)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a39_0x2cd9f9(0x183)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a39_0x2cd9f9(0x187)),{setAccessibilityCapabilities}=require(a39_0x2cd9f9(0x123)),{printBuildLink}=require(a39_0x2cd9f9(0x179)),TestDetails=require('./reporter/test-details'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x2cd9f9(0x12c)),BrowserstackCLI=require(a39_0x2cd9f9(0x114)),PerformanceEvents=require(a39_0x2cd9f9(0x13f))[a39_0x2cd9f9(0x1bc)],CLIUtils=require(a39_0x2cd9f9(0x16a)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x4b8000,_0x11ad26)=>{const _0x17dc2e=a39_0x2cd9f9,_0x1b9806={'szkaN':function(_0x16225a){return _0x16225a();},'blGdM':function(_0x136711,_0x4e3359){return _0x136711(_0x4e3359);},'vqRgT':function(_0x556306,_0x576fb1){return _0x556306(_0x576fb1);},'Jojlt':_0x17dc2e(0x1a3),'zNnGz':_0x17dc2e(0x127)},_0x305458=!helper['isUndefined'](_0x4b8000[_0x17dc2e(0x111)]),_0x6298f=_0x305458?path['resolve'](process[_0x17dc2e(0x116)](),_0x4b8000[_0x17dc2e(0x111)]):process[_0x17dc2e(0x116)](),{resolveConfigFile:_0x5ba87e,resolveConfigLocation:_0x1e5d52}=helper[_0x17dc2e(0x18d)][_0x17dc2e(0x1ab)](null,_0x1b9806[_0x17dc2e(0x19f)](getConfigLoaderPath)),_0x1f6a35=_0x5ba87e?_0x1b9806[_0x17dc2e(0x131)](_0x5ba87e,_0x6298f):helper['nestedKeyValue'](_0x1b9806[_0x17dc2e(0x1be)](_0x1e5d52,_0x6298f),[_0x1b9806[_0x17dc2e(0x188)]]),_0x26b581={};if(_0x305458){const _0x531738=_0x11ad26[_0x17dc2e(0x14a)](_0x4bb396=>_0x4bb396===_0x17dc2e(0x10e)||_0x4bb396==='-c'||_0x4bb396['startsWith']('--config='));_0x11ad26['splice'](_0x531738,_0x11ad26[_0x531738][_0x17dc2e(0x18e)](_0x1b9806[_0x17dc2e(0x11e)])?0x1:0x2);}const _0x445980={};return _0x445980[_0x17dc2e(0x10a)]=_0x1f6a35,_0x445980[_0x17dc2e(0x111)]=_0x26b581,_0x445980;},handleO11yRerun=_0x44a03a=>{const _0x1c84da=a39_0x2cd9f9,_0x2c4eeb={};_0x2c4eeb[_0x1c84da(0x1b6)]=_0x1c84da(0x17b);const _0x54cc70=_0x2c4eeb,_0x798478=helper[_0x1c84da(0x16e)](process[_0x1c84da(0x12a)][_0x1c84da(0x117)]);if(_0x798478){const _0x18472d=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x474229=[];if(helper['validateRerunTestList'](_0x18472d)&&!helper[_0x1c84da(0x1a7)](_0x18472d)){_0x18472d[_0x1c84da(0x15c)](',')[_0x1c84da(0x17f)](_0x2a55ca=>{const _0x1fc2af=_0x1c84da;_0x474229[_0x1fc2af(0x135)]('('+_0x2a55ca['trim']()+')');});const _0x3738cd='^'+_0x474229[_0x1c84da(0x11c)]('|')+'$';_0x44a03a[_0x1c84da(0x135)](_0x54cc70['FQAIK'],_0x3738cd);}}},spawnOriginalProcess=_0x9c5eeb=>{const _0x3416b2=a39_0x2cd9f9,_0x5bb52a={'leMbT':function(_0x44a0f8,_0x25bc0e,_0x396f7c,_0x4b8665){return _0x44a0f8(_0x25bc0e,_0x396f7c,_0x4b8665);},'hMEHR':'npx','xNKoj':_0x3416b2(0x1bd),'YaTju':function(_0x37eda9,_0x393086){return _0x37eda9===_0x393086;},'tiCaZ':_0x3416b2(0x12f),'coLfA':'inherit'};_0x5bb52a[_0x3416b2(0x11a)](spawn,_0x5bb52a[_0x3416b2(0x160)],[_0x5bb52a[_0x3416b2(0x133)],..._0x9c5eeb[_0x3416b2(0x12d)](0x1)],{'shell':_0x5bb52a['YaTju'](process[_0x3416b2(0x1a6)],_0x5bb52a[_0x3416b2(0x128)]),'stdio':_0x5bb52a[_0x3416b2(0x149)],'cwd':process[_0x3416b2(0x116)]()});},isTestCommand=(_0x10c5c0,_0x4bb645)=>{const _0x1715ef=a39_0x2cd9f9,_0x57f639={};_0x57f639[_0x1715ef(0x1bb)]=function(_0x5e10c5,_0x2d08a7){return _0x5e10c5>_0x2d08a7;},_0x57f639['JjiCt']=function(_0x572432,_0x1afc43){return _0x572432===_0x1afc43;},_0x57f639['vhRbk']=_0x1715ef(0x1b2);const _0x2a729d=_0x57f639;if(_0x2a729d['eBckM'](_0x4bb645[_0x1715ef(0x199)],0x1)&&_0x2a729d['JjiCt'](_0x4bb645[0x1],_0x2a729d[_0x1715ef(0x113)]))return!![];return![];};async function run(_0x13f507,_0x6af659,_0x1edb69){const _0x2df7cb=a39_0x2cd9f9,_0x37e8dd={'aMGgl':function(_0x567721,_0xb0e121){return _0x567721(_0xb0e121);},'kzijK':'.browserstack','CaEUC':function(_0x3dd724){return _0x3dd724();},'FGusm':function(_0x18a9fc,_0x1975a6){return _0x18a9fc+_0x1975a6;},'ayuVZ':_0x2df7cb(0x19c),'VjGGm':_0x2df7cb(0x16b),'FCjuX':'Error\x20in\x20getting\x20funnel\x20data\x20results','ZuOKk':_0x2df7cb(0x143),'mIDBd':function(_0x554ff8,_0x303190){return _0x554ff8<_0x303190;},'EbdBy':function(_0x47eee0,_0x35f971){return _0x47eee0===_0x35f971;},'Nmuth':_0x2df7cb(0x169),'nKkSY':_0x2df7cb(0x10f),'OqUmN':function(_0x34fb6f,_0xad48b5){return _0x34fb6f>=_0xad48b5;},'Ibbvj':_0x2df7cb(0x141),'kxIfJ':function(_0x14a6d2,_0xe32855){return _0x14a6d2!=_0xe32855;},'qlOJZ':function(_0x46d090,_0xa58d47,_0xfbbf89){return _0x46d090(_0xa58d47,_0xfbbf89);},'vOoaB':function(_0x4ce220,_0x12025a){return _0x4ce220===_0x12025a;},'XJKaV':_0x2df7cb(0x17a),'Hfkwl':function(_0x1379e4,_0xfb78b0){return _0x1379e4(_0xfb78b0);},'NDXMN':function(_0x3479da,_0x4cdf30){return _0x3479da(_0x4cdf30);},'CZEmI':'browserstackSetupConfig.json','esttZ':function(_0x525bc7,_0x4ed96f){return _0x525bc7===_0x4ed96f;},'glVzg':_0x2df7cb(0x18f),'lzWbK':_0x2df7cb(0x1a0),'OvvWP':function(_0x406d7a,_0x36c5b1){return _0x406d7a-_0x36c5b1;},'nfchn':_0x2df7cb(0x178),'XJLBf':function(_0x4dc59b,_0x3107a0){return _0x4dc59b>_0x3107a0;},'LxqQW':function(_0xf7bebc,_0x59adab,_0x4630f4,_0x240aad){return _0xf7bebc(_0x59adab,_0x4630f4,_0x240aad);},'NUoWL':_0x2df7cb(0x19a),'gHfWW':_0x2df7cb(0x1bd),'iMUup':_0x2df7cb(0x1b2),'JtErA':_0x2df7cb(0x10e),'wIolB':function(_0x1325e0,_0x36d469){return _0x1325e0===_0x36d469;},'NdxQK':'win32','KNhbg':_0x2df7cb(0x191),'CXYUd':'close','HvFuX':function(_0x10c420,_0x3ae0e0){return _0x10c420|_0x3ae0e0;},'gHcyx':_0x2df7cb(0x185),'SXurq':function(_0x1d5081,_0x3363aa){return _0x1d5081+_0x3363aa;},'GRiMc':'Error\x20in\x20deleting\x20playwright\x20results','IAFfQ':function(_0xa8fde6,_0xbf296e,_0x203515){return _0xa8fde6(_0xbf296e,_0x203515);}};try{const _0x552c42=path[_0x2df7cb(0x11c)](helper[_0x2df7cb(0x121)](),_0x37e8dd['kzijK']);try{fs[_0x2df7cb(0x19d)](_0x552c42,_0x37e8dd['HvFuX'](fs[_0x2df7cb(0x1b8)][_0x2df7cb(0x171)],fs[_0x2df7cb(0x1b8)]['W_OK']));}catch(_0x5af10a){ClientTroubleShootingService[_0x2df7cb(0x1a2)]();}}catch(_0x1b0eda){logger[_0x2df7cb(0x115)](_0x37e8dd['FGusm'](_0x37e8dd[_0x2df7cb(0x165)],_0x1b0eda));}try{const _0x37341d=path[_0x2df7cb(0x11c)](helper['homedir'](),_0x37e8dd['kzijK'],_0x37e8dd[_0x2df7cb(0x15e)]);fs[_0x2df7cb(0x10c)](_0x37341d)&&fs[_0x2df7cb(0x126)](_0x37341d);}catch(_0x1d594e){logger['debug'](_0x37e8dd[_0x2df7cb(0x192)](_0x37e8dd['GRiMc'],_0x1d594e));}if(!_0x37e8dd[_0x2df7cb(0x155)](isTestCommand,_0x13f507,_0x6af659)){_0x37e8dd[_0x2df7cb(0x10d)](spawnOriginalProcess,_0x6af659);return;}await PerformanceTester[_0x2df7cb(0x142)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x1d76f0=_0x2df7cb,_0x4ce469={'KsgWZ':_0x37e8dd[_0x1d76f0(0x134)],'CvkPz':_0x37e8dd['VjGGm'],'zOyDG':function(_0x4c3138,_0x41f3b7){const _0x148700=_0x1d76f0;return _0x37e8dd[_0x148700(0x130)](_0x4c3138,_0x41f3b7);},'ZihNK':_0x37e8dd['FCjuX']};if(!_0x1edb69['config']){logger[_0x1d76f0(0x182)](_0x37e8dd[_0x1d76f0(0x181)]);return;}await _0x1edb69[_0x1d76f0(0x167)](_0x13f507),CLIUtils[_0x1d76f0(0x176)](FRAMEWORKS[_0x1d76f0(0x112)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x1edb69[_0x1d76f0(0x111)],_0x1edb69[_0x1d76f0(0x195)]),await BrowserstackCLI[_0x1d76f0(0x148)]()[_0x1d76f0(0x1b5)]();for(var _0x28acaf=0x0;_0x37e8dd['mIDBd'](_0x28acaf,constants[_0x1d76f0(0x14b)][_0x1d76f0(0x199)]);_0x28acaf++){var _0x561c5b=constants[_0x1d76f0(0x14b)][_0x28acaf];process[_0x1d76f0(0x12a)][_0x561c5b]&&await ClientTroubleShootingService[_0x1d76f0(0x132)](_0x561c5b);}const _0x360a33=BrowserstackCLI['getInstance']()['getConfig']();!helper[_0x1d76f0(0x194)](_0x360a33['browserstackAutomation'])&&(process[_0x1d76f0(0x12a)][_0x1d76f0(0x186)]=!![]);_0x37e8dd[_0x1d76f0(0x1b7)](_0x360a33[_0x1d76f0(0x119)],![])&&(process[_0x1d76f0(0x12a)][_0x1d76f0(0x186)]=_0x37e8dd[_0x1d76f0(0x1a5)],_0x6af659=_0x6af659['filter'](_0x4226bf=>_0x4226bf!==_0x1d76f0(0x1b3)));const _0x595b72=_0x6af659[_0x1d76f0(0x162)](_0x37e8dd[_0x1d76f0(0x13e)]);(_0x37e8dd[_0x1d76f0(0x19e)](_0x595b72,0x0)||_0x37e8dd[_0x1d76f0(0x1b7)](_0x360a33[_0x1d76f0(0x18a)],![]))&&(process[_0x1d76f0(0x12a)][_0x1d76f0(0x150)]=_0x37e8dd[_0x1d76f0(0x1a5)],_0x6af659=_0x6af659[_0x1d76f0(0x196)](_0x8d26ce=>_0x8d26ce!==_0x1d76f0(0x10f)));!helper[_0x1d76f0(0x1a7)](_0x1edb69[_0x1d76f0(0x195)])&&_0x1edb69[_0x1d76f0(0x195)][_0x1d76f0(0x140)](_0x37e8dd[_0x1d76f0(0x184)])&&(process['env'][_0x1d76f0(0x186)]=_0x1edb69['cliConfig']['get'](_0x37e8dd[_0x1d76f0(0x184)])||!![]);_0x37e8dd[_0x1d76f0(0x16f)](_0x1edb69['config'][_0x1d76f0(0x18a)],null)&&!helper[_0x1d76f0(0x16e)](process[_0x1d76f0(0x12a)][_0x1d76f0(0x150)])&&(process[_0x1d76f0(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x1d76f0(0x150)]||_0x1edb69[_0x1d76f0(0x111)][_0x1d76f0(0x18a)]);const _0x5f2c21=!helper[_0x1d76f0(0x194)](process[_0x1d76f0(0x12a)][_0x1d76f0(0x150)]);_0x1edb69[_0x1d76f0(0x111)][_0x1d76f0(0x139)]&&(process[_0x1d76f0(0x12a)][_0x1d76f0(0x16d)]=JSON[_0x1d76f0(0x144)](_0x1edb69[_0x1d76f0(0x111)][_0x1d76f0(0x139)]));let _0x327340=![];_0x1edb69['config'][_0x1d76f0(0x19b)]&&(_0x327340=!![],process['env'][_0x1d76f0(0x154)]=_0x1edb69['config'][_0x1d76f0(0x19b)]);const _0x2d37f6=_0x6af659[_0x1d76f0(0x161)](),_0x254ea0=await _0x37e8dd[_0x1d76f0(0x138)](getUserPlaywrightConfig,_0x13f507,_0x6af659);if(helper[_0x1d76f0(0x1a7)](_0x254ea0)){_0x37e8dd['aMGgl'](spawnOriginalProcess,_0x2d37f6);return;}const _0x3a06c1=_0x254ea0['path']?path[_0x1d76f0(0x18b)](_0x254ea0[_0x1d76f0(0x10a)]):process['cwd']();process['env'][_0x1d76f0(0x11d)]=_0x3a06c1,await PerformanceTester[_0x1d76f0(0x142)](PerformanceEvents[_0x1d76f0(0x180)],async()=>{const _0xde0cf6=_0x1d76f0;!BrowserstackCLI[_0xde0cf6(0x148)]()[_0xde0cf6(0x17c)]()&&await TestHubHandler[_0xde0cf6(0x151)](FRAMEWORKS['PLAYWRIGHT'],_0x1edb69),_0x5f2c21&&_0x37e8dd[_0xde0cf6(0x10d)](handleO11yRerun,_0x6af659);})();if(!BrowserstackCLI[_0x1d76f0(0x148)]()[_0x1d76f0(0x17c)]()){let _0x11d6d8=_0x37e8dd['vOoaB'](process[_0x1d76f0(0x12a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x37e8dd[_0x1d76f0(0x14d)]);_0x11d6d8=_0x11d6d8||_0x37e8dd[_0x1d76f0(0x146)](checkAccessibilityPlatformConfig,_0x1edb69[_0x1d76f0(0x111)]),process[_0x1d76f0(0x12a)][_0x1d76f0(0x154)]=_0x11d6d8,_0x11d6d8&&_0x37e8dd[_0x1d76f0(0x1a8)](setAccessibilityCapabilities,_0x1edb69[_0x1d76f0(0x111)]);}const _0x5c776c=path[_0x1d76f0(0x11c)](_0x254ea0[_0x1d76f0(0x10a)]?path[_0x1d76f0(0x18b)](_0x254ea0[_0x1d76f0(0x10a)]):process[_0x1d76f0(0x116)](),_0x37e8dd[_0x1d76f0(0x15b)]);fs[_0x1d76f0(0x10b)](_0x5c776c,helper['serializeToYamlString'](_0x1edb69[_0x1d76f0(0x111)])),process[_0x1d76f0(0x12a)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x5c776c,helper[_0x1d76f0(0x172)]();let _0x649886='';_0x37e8dd[_0x1d76f0(0x156)](helper['getPackageType'](),constants[_0x1d76f0(0x145)][_0x1d76f0(0x1af)])?_0x649886=_0x37e8dd['glVzg']:_0x649886=_0x37e8dd[_0x1d76f0(0x13d)];let _0x6d96f3='';if(helper[_0x1d76f0(0x14e)](_0x254ea0[_0x1d76f0(0x10a)])){_0x6d96f3=_0x1d76f0(0x11f);const _0x3c2216=_0x649886[_0x1d76f0(0x15c)]('.');_0x3c2216[_0x37e8dd[_0x1d76f0(0x136)](_0x3c2216[_0x1d76f0(0x199)],0x1)]='ts',_0x649886=_0x3c2216[_0x1d76f0(0x11c)]('.'),logger['debug'](_0x37e8dd[_0x1d76f0(0x130)](_0x37e8dd['nfchn'],_0x649886));}else _0x6d96f3=_0x1d76f0(0x14c);const _0x32d0d1=path[_0x1d76f0(0x11c)](_0x254ea0[_0x1d76f0(0x10a)]?path['dirname'](_0x254ea0['path']):process[_0x1d76f0(0x116)](),_0x649886);let _0x19d21d=_0x254ea0[_0x1d76f0(0x10a)]?_0x254ea0['path']:'';_0x19d21d=_0x37e8dd[_0x1d76f0(0x1ba)](_0x19d21d[_0x1d76f0(0x199)],0x0)?path[_0x1d76f0(0x1ac)](_0x19d21d):'',process[_0x1d76f0(0x12a)]['USER_CONFIG_DETAILS_PATH']=_0x19d21d;const _0x15f58b=helper[_0x1d76f0(0x198)](_0x1edb69[_0x1d76f0(0x111)]),_0x4e3050=helper[_0x1d76f0(0x125)](_0x1edb69['config']);logger[_0x1d76f0(0x115)](_0x1d76f0(0x173)+_0x15f58b),logger['debug'](_0x1d76f0(0x175)+_0x4e3050);_0x15f58b&&(_0x6d96f3=_0x37e8dd[_0x1d76f0(0x130)](_0x1d76f0(0x15f)+_0x15f58b+_0x1d76f0(0x1b0)+_0x4e3050+'\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();',_0x6d96f3));helper[_0x1d76f0(0x1b1)]({},_0x6af659),fs['writeFileSync'](_0x32d0d1,_0x6d96f3),PerformanceTester[_0x1d76f0(0x13c)](PerformanceEvents[_0x1d76f0(0x193)]);const _0x39445f=_0x37e8dd[_0x1d76f0(0x1ad)](spawn,_0x37e8dd[_0x1d76f0(0x1ae)],[_0x37e8dd[_0x1d76f0(0x17e)],_0x37e8dd[_0x1d76f0(0x13a)],_0x37e8dd[_0x1d76f0(0x177)],_0x37e8dd[_0x1d76f0(0x1b4)](process[_0x1d76f0(0x1a6)],_0x37e8dd['NdxQK'])?'\x22'+_0x32d0d1+'\x22':_0x32d0d1,..._0x6af659['slice'](0x2)],{'shell':_0x37e8dd[_0x1d76f0(0x1b7)](process[_0x1d76f0(0x1a6)],_0x37e8dd['NdxQK']),'stdio':_0x37e8dd[_0x1d76f0(0x1a4)],'cwd':process[_0x1d76f0(0x116)](),'env':Object['assign']({},process[_0x1d76f0(0x12a)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x13f507),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1edb69['config'][_0x1d76f0(0x170)][_0x1d76f0(0x13b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1edb69[_0x1d76f0(0x111)][_0x1d76f0(0x170)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x1edb69[_0x1d76f0(0x111)]['logLevel']})}),_0x24f881=()=>{const _0x1a9c61=_0x1d76f0;try{const _0x480868=path[_0x1a9c61(0x11c)](helper[_0x1a9c61(0x121)](),_0x4ce469[_0x1a9c61(0x124)],_0x4ce469[_0x1a9c61(0x166)]);if(fs[_0x1a9c61(0x10c)](_0x480868)){let _0x4e4da5=fs[_0x1a9c61(0x15d)](_0x480868);_0x4e4da5=JSON['parse'](_0x4e4da5),_0x1edb69[_0x1a9c61(0x14f)]=_0x4e4da5,fs[_0x1a9c61(0x126)](_0x480868);}}catch(_0x87273e){logger['debug'](_0x4ce469[_0x1a9c61(0x11b)](_0x4ce469[_0x1a9c61(0x159)],_0x87273e));}};_0x39445f['on'](_0x37e8dd[_0x1d76f0(0x109)],async _0x26f5ea=>{const _0x1fe39c=_0x1d76f0,_0x4e7e49={};_0x4e7e49[_0x1fe39c(0x129)]=_0x37e8dd[_0x1fe39c(0x134)];const _0x586699=_0x4e7e49;try{PerformanceTester[_0x1fe39c(0x189)](PerformanceEvents[_0x1fe39c(0x1b9)]),_0x37e8dd[_0x1fe39c(0x12e)](_0x24f881),await TestHubHandler[_0x1fe39c(0x174)](),await ClientTroubleShootingService[_0x1fe39c(0x157)](),await BrowserstackCLI[_0x1fe39c(0x148)]()[_0x1fe39c(0x174)](),TestDetails['shutdown'](),_0x37e8dd['CaEUC'](printBuildLink),await utilities[_0x1fe39c(0x168)](_0x1edb69),process[_0x1fe39c(0x197)]=_0x26f5ea,logger[_0x1fe39c(0x115)](_0x1fe39c(0x1a1)+_0x26f5ea),logger[_0x1fe39c(0x163)](_0x1fe39c(0x122)+_0x32d0d1),fs[_0x1fe39c(0x126)](_0x32d0d1);fs[_0x1fe39c(0x10c)](_0x5c776c)&&(logger['debug']('Deleting\x20'+_0x5c776c),fs[_0x1fe39c(0x126)](_0x5c776c));const _0x4fb25a=fs[_0x1fe39c(0x153)](path[_0x1fe39c(0x11c)](helper[_0x1fe39c(0x121)](),_0x37e8dd[_0x1fe39c(0x134)]))[_0x1fe39c(0x196)](_0x5bf04e=>_0x5bf04e['startsWith'](_0x1fe39c(0x190)));_0x4fb25a[_0x1fe39c(0x118)](_0x6eb2db=>{const _0x2e86c1=_0x1fe39c;fs[_0x2e86c1(0x126)](path[_0x2e86c1(0x11c)](helper['homedir'](),_0x586699['vQuYr'],_0x6eb2db));});}catch(_0x340a7b){logger['debug'](_0x37e8dd[_0x1fe39c(0x130)](_0x37e8dd['ayuVZ'],_0x340a7b));}});})();}module[a39_0x2cd9f9(0x18c)]=run;
2
+ 'use strict';const a39_0x2c60c6=a39_0x1bc9;function a39_0x3171(){const _0x4dccf6=['vPtDL','PACKAGE_TYPE','cwd','stringify','Smkej','../utils/clientTroubleshootingService','../../helpers/logger','readFileSync','bootstrap','playwright-browserstack-sdk.config.cjs','--disable-browserstack-automation','../../helpers/helper','launchBuild','unlinkSync','MODULE','getPackageType','test','BrowserStack\x20config\x20file\x20not\x20found.','accessibilityOptions','bNFQo','win32','XNbDf','Yumpg','BROWSERSTACK_RERUN_TESTS','wjERi','nestedKeyValue','./reporter/test-details','accessibility','join','filter','accessSync','fPjiJ','existsSync','../../helpers/performance/performance-tester','isRunning','BROWSERSTACK_TEST_ACCESSIBILITY_YML','homedir','GGdaD','get','enGIU','concat','yBIjK','YXCjL','false','UHpyD','dirname','--grep','../utils/constants','skipSessionName','3092012fCgPTM','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','reportFinalDetectionState','W_OK','getNoProxy','kzHIW','browserstackAutomation','Error\x20in\x20closing\x20playwright','\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();','RTxST','SDK_CLEANUP','start','2104185prnYpR','browserstackSetupConfig.json','configPath','trim','getProxyUrl','HyanV','../../helpers/test-observability/constants','playwright','apply','Deleting\x20','377343eeVALw','../../helpers/BrowserStackSetup','EZlny','BROWSERSTACK_TEST_OBSERVABILITY','isUndefined','split','cbxbA','cliConfig','slice','Error\x20in\x20deleting\x20playwright\x20results','platform','../../helpers/performance/constants','reportConflictingEnvVarIssue','clearTempPWConfig','iFJpw','.browserstack','No\x20Proxy\x20:\x20','gczKV','startsWith','SfOEv','inherit','../../helpers/testhub/testhubHandler','../../helpers/utilities','udCFs','HTAEp','291374dsqKqc','kEWMr','QmbBQ','./reporter/pwUtils','R_OK','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','4NwgcUS','end','AppjI','push','avFmj','--disable-test-observability','ptCXa','logLevel','validateRerunTestList','npx','../../helpers/test-observability/utils','zfOsY','Proxy\x20url\x20:\x20','skipSessionStatus','BROWSERSTACK_AUTOMATION','rQriZ','resolve','lLhjw','close','winstonLogger','writeFileSync','HRcwk','testObservability','2425064syWzQu','\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','getInstance','451974dsRQAu','forEach','exitCode','EMLBu','BROWSERSTACK_SETUP_CONFIG_PATH','--config=','constants','oBIZO','ABVjc','path','xoaZE','Error\x20in\x20getting\x20funnel\x20data\x20results','filterBrowserstackArgs','resolvedConfigFile','getConfig','debug','error','playwright-browserstack-sdk.config.js','getConfigPath','PLAYWRIGHT','DIBza','errorMessage','../../helpers/accessibility-automation/helper','2YglaAs','isTypescriptProject','info','testContextOptions','mmzia','stop','config','length','auvoE','caaAd','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','140gPfzBM','INTERNALLY_USED_ENV_VARS','parse','./accessibility-helper','automation','PaHnU','2481174VpOlBK','isFalse','setFrameworkDetail','qEbLN','fdLQE','reportDotBrowserStackFolderNotAccessibleIssue','XfJzF','../v2/TestInfo','exports','EVENTS','isTrue','env'];a39_0x3171=function(){return _0x4dccf6;};return a39_0x3171();}(function(_0x57d839,_0x67f5fa){const _0x4e173d=a39_0x1bc9,_0x2362fb=_0x57d839();while(!![]){try{const _0x211775=-parseInt(_0x4e173d(0x13a))/0x1*(-parseInt(_0x4e173d(0x171))/0x2)+-parseInt(_0x4e173d(0x15a))/0x3+parseInt(_0x4e173d(0x140))/0x4*(parseInt(_0x4e173d(0x1cb))/0x5)+-parseInt(_0x4e173d(0x182))/0x6+parseInt(_0x4e173d(0x1bf))/0x7+parseInt(_0x4e173d(0x157))/0x8+parseInt(_0x4e173d(0x121))/0x9*(-parseInt(_0x4e173d(0x17c))/0xa);if(_0x211775===_0x67f5fa)break;else _0x2362fb['push'](_0x2362fb['shift']());}catch(_0x4e9765){_0x2362fb['push'](_0x2362fb['shift']());}}}(a39_0x3171,0x4aae7));const fs=require('fs'),path=require(a39_0x2c60c6(0x163)),{spawn}=require('child_process'),{format}=require('util'),logger=require(a39_0x2c60c6(0x194))[a39_0x2c60c6(0x153)],{default:BrowserStackSetup}=require(a39_0x2c60c6(0x122)),helper=require(a39_0x2c60c6(0x199)),utilities=require(a39_0x2c60c6(0x137)),constants=require(a39_0x2c60c6(0x1bd)),{FRAMEWORKS}=require(a39_0x2c60c6(0x1d1)),{getConfigLoaderPath}=require(a39_0x2c60c6(0x13d)),{checkAccessibilityPlatformConfig}=require(a39_0x2c60c6(0x170)),{setAccessibilityCapabilities}=require(a39_0x2c60c6(0x17f)),{printBuildLink}=require(a39_0x2c60c6(0x14a)),TestDetails=require(a39_0x2c60c6(0x1a8)),TestHubHandler=require(a39_0x2c60c6(0x136)),PerformanceTester=require(a39_0x2c60c6(0x1af)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a39_0x2c60c6(0x12c))[a39_0x2c60c6(0x18b)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x2c60c6(0x189)),ClientTroubleShootingService=require(a39_0x2c60c6(0x193)),getUserPlaywrightConfig=async(_0x39c380,_0x6cca99)=>{const _0x1b07d8=a39_0x2c60c6,_0x58c75e={'cGhsy':function(_0x65e467){return _0x65e467();},'ISGrc':function(_0x28208a,_0x30bc6d){return _0x28208a(_0x30bc6d);},'SfOEv':function(_0x351caa,_0x5a44ed){return _0x351caa(_0x5a44ed);},'XNbDf':_0x1b07d8(0x167),'QmbBQ':_0x1b07d8(0x15f)},_0x55071c=!helper[_0x1b07d8(0x125)](_0x39c380[_0x1b07d8(0x177)]),_0xf0b4cf=_0x55071c?path['resolve'](process[_0x1b07d8(0x190)](),_0x39c380[_0x1b07d8(0x177)]):process[_0x1b07d8(0x190)](),{resolveConfigFile:_0x5e99b8,resolveConfigLocation:_0x2278ee}=helper['requirePWModule'][_0x1b07d8(0x11f)](null,_0x58c75e['cGhsy'](getConfigLoaderPath)),_0x40139c=_0x5e99b8?_0x58c75e['ISGrc'](_0x5e99b8,_0xf0b4cf):helper[_0x1b07d8(0x1a7)](_0x58c75e[_0x1b07d8(0x134)](_0x2278ee,_0xf0b4cf),[_0x58c75e[_0x1b07d8(0x1a3)]]),_0x42f4a1={};if(_0x55071c){const _0x414c28=_0x6cca99['findIndex'](_0x22814f=>_0x22814f==='--config'||_0x22814f==='-c'||_0x22814f[_0x1b07d8(0x133)](_0x1b07d8(0x15f)));_0x6cca99['splice'](_0x414c28,_0x6cca99[_0x414c28][_0x1b07d8(0x133)](_0x58c75e[_0x1b07d8(0x13c)])?0x1:0x2);}const _0x2137c9={};return _0x2137c9[_0x1b07d8(0x163)]=_0x40139c,_0x2137c9[_0x1b07d8(0x177)]=_0x42f4a1,_0x2137c9;},handleO11yRerun=_0x4787ce=>{const _0x33b374=a39_0x2c60c6,_0x2a34b8={};_0x2a34b8[_0x33b374(0x12f)]=_0x33b374(0x1bc);const _0xffdd2f=_0x2a34b8,_0x419d4d=helper[_0x33b374(0x18c)](process[_0x33b374(0x18d)]['BROWSERSTACK_RERUN']);if(_0x419d4d){const _0xd268d3=process[_0x33b374(0x18d)][_0x33b374(0x1a5)],_0x26dcb0=[];if(helper[_0x33b374(0x148)](_0xd268d3)&&!helper['isUndefined'](_0xd268d3)){_0xd268d3[_0x33b374(0x126)](',')['map'](_0x4d225e=>{const _0x5e1e51=_0x33b374;_0x26dcb0[_0x5e1e51(0x143)]('('+_0x4d225e[_0x5e1e51(0x1ce)]()+')');});const _0x591c43='^'+_0x26dcb0['join']('|')+'$';_0x4787ce['push'](_0xffdd2f[_0x33b374(0x12f)],_0x591c43);}}},spawnOriginalProcess=_0x16cd0b=>{const _0x3bbc5c=a39_0x2c60c6,_0x53a46a={'caaAd':function(_0x447fda,_0x5077d0,_0x4b4722,_0x41a18c){return _0x447fda(_0x5077d0,_0x4b4722,_0x41a18c);},'EMLBu':_0x3bbc5c(0x149),'PaHnU':_0x3bbc5c(0x1d2),'tdPRq':function(_0xb80b63,_0xe7adae){return _0xb80b63===_0xe7adae;},'XfJzF':_0x3bbc5c(0x1a2),'YFUYZ':'inherit'};_0x53a46a[_0x3bbc5c(0x17a)](spawn,_0x53a46a[_0x3bbc5c(0x15d)],[_0x53a46a[_0x3bbc5c(0x181)],..._0x16cd0b['slice'](0x1)],{'shell':_0x53a46a['tdPRq'](process[_0x3bbc5c(0x12b)],_0x53a46a[_0x3bbc5c(0x188)]),'stdio':_0x53a46a['YFUYZ'],'cwd':process['cwd']()});},isTestCommand=(_0x49b226,_0x2df1b5)=>{const _0x2bc960=a39_0x2c60c6,_0xc016cc={};_0xc016cc[_0x2bc960(0x1c8)]=function(_0x12d8b3,_0x5032e9){return _0x12d8b3>_0x5032e9;},_0xc016cc[_0x2bc960(0x139)]=function(_0x31a4a1,_0x40ce9e){return _0x31a4a1===_0x40ce9e;},_0xc016cc['cvyYz']=_0x2bc960(0x19e);const _0x3d049d=_0xc016cc;if(_0x3d049d['RTxST'](_0x2df1b5['length'],0x1)&&_0x3d049d['HTAEp'](_0x2df1b5[0x1],_0x3d049d['cvyYz']))return!![];return![];};async function run(_0x2f6d6c,_0x42b40d,_0x432fe1){const _0x13b31d=a39_0x2c60c6,_0x48f8c8={'fPjiJ':_0x13b31d(0x130),'lLhjw':'pw_result.json','DIBza':function(_0x4319da,_0x43e800){return _0x4319da+_0x43e800;},'xoaZE':_0x13b31d(0x165),'wjERi':function(_0x2e74dc){return _0x2e74dc();},'YXCjL':function(_0x41a250,_0x47ff2e){return _0x41a250+_0x47ff2e;},'mmzia':_0x13b31d(0x1c6),'yddaR':function(_0x134b9f,_0xd5d8f2){return _0x134b9f(_0xd5d8f2);},'qEbLN':_0x13b31d(0x19f),'kNNEr':function(_0xf50423,_0x470ca2){return _0xf50423<_0x470ca2;},'GGdaD':function(_0x5ee147,_0x26cd9e){return _0x5ee147===_0x26cd9e;},'gczKV':_0x13b31d(0x1b9),'fdLQE':_0x13b31d(0x145),'kEWMr':function(_0x32e2b0,_0x411eb2){return _0x32e2b0>=_0x411eb2;},'enGIU':_0x13b31d(0x180),'udCFs':function(_0x29db61,_0x207144){return _0x29db61!=_0x207144;},'Smkej':function(_0x34abdf,_0x581d0e,_0x4c68da){return _0x34abdf(_0x581d0e,_0x4c68da);},'yBIjK':function(_0x3f06fc,_0x3211df){return _0x3f06fc(_0x3211df);},'AppjI':'true','rQriZ':function(_0x47e89b,_0x56365b){return _0x47e89b(_0x56365b);},'UHpyD':function(_0x5589b1,_0x11984b){return _0x5589b1(_0x11984b);},'avFmj':_0x13b31d(0x1cc),'espSZ':_0x13b31d(0x197),'ptCXa':_0x13b31d(0x16b),'dSHTx':function(_0x17a722,_0x350eb9){return _0x17a722-_0x350eb9;},'oBIZO':'Updated\x20config\x20file\x20name\x20to\x20-\x20','HRcwk':function(_0x2f8415,_0x1f53a9){return _0x2f8415>_0x1f53a9;},'EXNMt':function(_0x236a1e,_0x4350ae){return _0x236a1e+_0x4350ae;},'gxBRj':function(_0x559d92,_0x488db0,_0x45ce7d,_0x3b868c){return _0x559d92(_0x488db0,_0x45ce7d,_0x3b868c);},'iVvmK':_0x13b31d(0x149),'bNFQo':'playwright','CoQek':_0x13b31d(0x19e),'auvoE':'--config','EZlny':_0x13b31d(0x1a2),'vPtDL':function(_0x25a00a,_0x451f11){return _0x25a00a===_0x451f11;},'KuzJi':_0x13b31d(0x135),'ABVjc':_0x13b31d(0x152),'Yumpg':function(_0x4ace02,_0xf6b72b){return _0x4ace02|_0xf6b72b;},'HooGY':function(_0x3f1da5,_0x215912){return _0x3f1da5+_0x215912;},'zfOsY':_0x13b31d(0x1c0),'nLoDa':function(_0x15ed9b,_0x3d08a9){return _0x15ed9b+_0x3d08a9;},'kzHIW':_0x13b31d(0x12a)};try{const _0x3f6c71=path[_0x13b31d(0x1aa)](helper['homedir'](),_0x48f8c8[_0x13b31d(0x1ad)]);try{fs[_0x13b31d(0x1ac)](_0x3f6c71,_0x48f8c8[_0x13b31d(0x1a4)](fs[_0x13b31d(0x160)][_0x13b31d(0x13e)],fs[_0x13b31d(0x160)][_0x13b31d(0x1c2)]));}catch(_0x1d641c){ClientTroubleShootingService[_0x13b31d(0x187)]();}}catch(_0x55c836){logger[_0x13b31d(0x169)](_0x48f8c8['HooGY'](_0x48f8c8[_0x13b31d(0x14b)],_0x55c836));}try{const _0x5a5c26=path['join'](helper[_0x13b31d(0x1b2)](),_0x48f8c8[_0x13b31d(0x1ad)],_0x48f8c8[_0x13b31d(0x151)]);fs['existsSync'](_0x5a5c26)&&fs['unlinkSync'](_0x5a5c26);}catch(_0x5aa2f2){logger[_0x13b31d(0x169)](_0x48f8c8['nLoDa'](_0x48f8c8[_0x13b31d(0x1c4)],_0x5aa2f2));}if(!_0x48f8c8[_0x13b31d(0x192)](isTestCommand,_0x2f6d6c,_0x42b40d)){_0x48f8c8[_0x13b31d(0x1b7)](spawnOriginalProcess,_0x42b40d);return;}await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x31ab07=_0x13b31d,_0x3c6286={'cbxbA':function(_0x1651e0,_0x3c3d01){return _0x48f8c8['yddaR'](_0x1651e0,_0x3c3d01);},'HyanV':_0x48f8c8['fPjiJ']};if(!_0x432fe1[_0x31ab07(0x177)]){logger[_0x31ab07(0x16a)](_0x48f8c8[_0x31ab07(0x185)]);return;}await _0x432fe1['initialize'](_0x2f6d6c),CLIUtils[_0x31ab07(0x184)](FRAMEWORKS[_0x31ab07(0x16d)],FRAMEWORKS[_0x31ab07(0x16d)]),BrowserstackCLI[_0x31ab07(0x159)]()['setBrowserstackConfig'](_0x432fe1['config'],_0x432fe1[_0x31ab07(0x1cd)],_0x432fe1[_0x31ab07(0x128)]),await BrowserstackCLI[_0x31ab07(0x159)]()[_0x31ab07(0x196)]();for(var _0x4456b0=0x0;_0x48f8c8['kNNEr'](_0x4456b0,constants[_0x31ab07(0x17d)][_0x31ab07(0x178)]);_0x4456b0++){var _0x3bb96b=constants[_0x31ab07(0x17d)][_0x4456b0];process[_0x31ab07(0x18d)][_0x3bb96b]&&await ClientTroubleShootingService[_0x31ab07(0x12d)](_0x3bb96b);}const _0x477c06=BrowserstackCLI[_0x31ab07(0x159)]()[_0x31ab07(0x168)]();!helper[_0x31ab07(0x183)](_0x477c06[_0x31ab07(0x1c5)])&&(process[_0x31ab07(0x18d)][_0x31ab07(0x14e)]=!![]);_0x48f8c8[_0x31ab07(0x1b3)](_0x477c06[_0x31ab07(0x1c5)],![])&&(process[_0x31ab07(0x18d)]['BROWSERSTACK_AUTOMATION']=_0x48f8c8['gczKV'],_0x42b40d=_0x42b40d[_0x31ab07(0x1ab)](_0x2db5c7=>_0x2db5c7!==_0x31ab07(0x198)));const _0x5d342f=_0x42b40d['indexOf'](_0x48f8c8[_0x31ab07(0x186)]);(_0x48f8c8[_0x31ab07(0x13b)](_0x5d342f,0x0)||_0x48f8c8[_0x31ab07(0x1b3)](_0x477c06[_0x31ab07(0x156)],![]))&&(process[_0x31ab07(0x18d)][_0x31ab07(0x124)]=_0x48f8c8[_0x31ab07(0x132)],_0x42b40d=_0x42b40d['filter'](_0x3960ac=>_0x3960ac!=='--disable-test-observability'));!helper[_0x31ab07(0x125)](_0x432fe1[_0x31ab07(0x128)])&&_0x432fe1[_0x31ab07(0x128)]['has'](_0x48f8c8[_0x31ab07(0x1b5)])&&(process[_0x31ab07(0x18d)]['BROWSERSTACK_AUTOMATION']=_0x432fe1['cliConfig'][_0x31ab07(0x1b4)](_0x48f8c8[_0x31ab07(0x1b5)])||!![]);_0x48f8c8[_0x31ab07(0x138)](_0x432fe1['config']['testObservability'],null)&&!helper[_0x31ab07(0x18c)](process[_0x31ab07(0x18d)][_0x31ab07(0x124)])&&(process[_0x31ab07(0x18d)][_0x31ab07(0x124)]=process[_0x31ab07(0x18d)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x432fe1['config'][_0x31ab07(0x156)]);const _0x234715=!helper[_0x31ab07(0x183)](process[_0x31ab07(0x18d)][_0x31ab07(0x124)]);_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x1a0)]&&(process[_0x31ab07(0x18d)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x31ab07(0x191)](_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x1a0)]));let _0x517da2=![];_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x1a9)]&&(_0x517da2=!![],process['env'][_0x31ab07(0x1b1)]=_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x1a9)]);const _0x4b5f53=_0x42b40d[_0x31ab07(0x1b6)](),_0x3b6b30=await _0x48f8c8[_0x31ab07(0x192)](getUserPlaywrightConfig,_0x2f6d6c,_0x42b40d);if(helper['isUndefined'](_0x3b6b30)){_0x48f8c8[_0x31ab07(0x1b7)](spawnOriginalProcess,_0x4b5f53);return;}const _0x91d53f=_0x3b6b30[_0x31ab07(0x163)]?path['dirname'](_0x3b6b30[_0x31ab07(0x163)]):process[_0x31ab07(0x190)]();process[_0x31ab07(0x18d)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x91d53f,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x59683a=_0x31ab07;!BrowserstackCLI[_0x59683a(0x159)]()['isRunning']()&&await TestHubHandler[_0x59683a(0x19a)](FRAMEWORKS['PLAYWRIGHT'],_0x432fe1),_0x234715&&_0x3c6286[_0x59683a(0x127)](handleO11yRerun,_0x42b40d);})();if(!BrowserstackCLI[_0x31ab07(0x159)]()[_0x31ab07(0x1b0)]()){let _0xd97647=_0x48f8c8[_0x31ab07(0x1b3)](process['env'][_0x31ab07(0x1b1)],_0x48f8c8[_0x31ab07(0x142)]);_0xd97647=_0xd97647||_0x48f8c8[_0x31ab07(0x14f)](checkAccessibilityPlatformConfig,_0x432fe1[_0x31ab07(0x177)]),process['env'][_0x31ab07(0x1b1)]=_0xd97647,_0xd97647&&_0x48f8c8[_0x31ab07(0x1ba)](setAccessibilityCapabilities,_0x432fe1['config']);}const _0x3b8691=path['join'](_0x3b6b30[_0x31ab07(0x163)]?path[_0x31ab07(0x1bb)](_0x3b6b30[_0x31ab07(0x163)]):process[_0x31ab07(0x190)](),_0x48f8c8[_0x31ab07(0x144)]);fs[_0x31ab07(0x154)](_0x3b8691,helper['serializeToYamlString'](_0x432fe1['config'])),process[_0x31ab07(0x18d)][_0x31ab07(0x15e)]=_0x3b8691,helper[_0x31ab07(0x12e)]();let _0x143922='';_0x48f8c8[_0x31ab07(0x1b3)](helper[_0x31ab07(0x19d)](),constants[_0x31ab07(0x18f)][_0x31ab07(0x19c)])?_0x143922=_0x48f8c8['espSZ']:_0x143922=_0x48f8c8[_0x31ab07(0x146)];let _0x244f23='';if(helper[_0x31ab07(0x172)](_0x3b6b30[_0x31ab07(0x163)])){_0x244f23=_0x31ab07(0x17b);const _0x5baace=_0x143922[_0x31ab07(0x126)]('.');_0x5baace[_0x48f8c8['dSHTx'](_0x5baace['length'],0x1)]='ts',_0x143922=_0x5baace[_0x31ab07(0x1aa)]('.'),logger[_0x31ab07(0x169)](_0x48f8c8[_0x31ab07(0x16e)](_0x48f8c8[_0x31ab07(0x161)],_0x143922));}else _0x244f23='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x56c5e1=path[_0x31ab07(0x1aa)](_0x3b6b30['path']?path[_0x31ab07(0x1bb)](_0x3b6b30[_0x31ab07(0x163)]):process[_0x31ab07(0x190)](),_0x143922);let _0x18edcd=_0x3b6b30['path']?_0x3b6b30[_0x31ab07(0x163)]:'';_0x18edcd=_0x48f8c8[_0x31ab07(0x155)](_0x18edcd[_0x31ab07(0x178)],0x0)?path[_0x31ab07(0x150)](_0x18edcd):'',process[_0x31ab07(0x18d)]['USER_CONFIG_DETAILS_PATH']=_0x18edcd;const _0xb65475=helper[_0x31ab07(0x1cf)](_0x432fe1[_0x31ab07(0x177)]),_0x351730=helper[_0x31ab07(0x1c3)](_0x432fe1[_0x31ab07(0x177)]);logger[_0x31ab07(0x169)](_0x31ab07(0x14c)+_0xb65475),logger[_0x31ab07(0x169)](_0x31ab07(0x131)+_0x351730);_0xb65475&&(_0x244f23=_0x48f8c8['EXNMt'](_0x31ab07(0x13f)+_0xb65475+_0x31ab07(0x158)+_0x351730+_0x31ab07(0x1c7),_0x244f23));helper[_0x31ab07(0x166)]({},_0x42b40d),fs['writeFileSync'](_0x56c5e1,_0x244f23),PerformanceTester[_0x31ab07(0x141)](PerformanceEvents['SDK_SETUP']);const _0x4babd2=_0x48f8c8['gxBRj'](spawn,_0x48f8c8['iVvmK'],[_0x48f8c8[_0x31ab07(0x1a1)],_0x48f8c8['CoQek'],_0x48f8c8[_0x31ab07(0x179)],_0x48f8c8[_0x31ab07(0x1b3)](process[_0x31ab07(0x12b)],_0x48f8c8[_0x31ab07(0x123)])?'\x22'+_0x56c5e1+'\x22':_0x56c5e1,..._0x42b40d[_0x31ab07(0x129)](0x2)],{'shell':_0x48f8c8[_0x31ab07(0x18e)](process[_0x31ab07(0x12b)],_0x48f8c8[_0x31ab07(0x123)]),'stdio':_0x48f8c8['KuzJi'],'cwd':process[_0x31ab07(0x190)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x31ab07(0x16c)](_0x2f6d6c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x174)][_0x31ab07(0x14d)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x174)][_0x31ab07(0x1be)],'BROWSERSTACK_LOG_LEVEL':_0x432fe1[_0x31ab07(0x177)][_0x31ab07(0x147)]})}),_0x1ce421=()=>{const _0x3085cd=_0x31ab07;try{const _0x30aa08=path[_0x3085cd(0x1aa)](helper[_0x3085cd(0x1b2)](),_0x48f8c8[_0x3085cd(0x1ad)],_0x48f8c8[_0x3085cd(0x151)]);if(fs[_0x3085cd(0x1ae)](_0x30aa08)){let _0x213eb7=fs[_0x3085cd(0x195)](_0x30aa08);_0x213eb7=JSON[_0x3085cd(0x17e)](_0x213eb7),_0x432fe1[_0x3085cd(0x16f)]=_0x213eb7,fs[_0x3085cd(0x19b)](_0x30aa08);}}catch(_0x477953){logger[_0x3085cd(0x169)](_0x48f8c8[_0x3085cd(0x16e)](_0x48f8c8[_0x3085cd(0x164)],_0x477953));}};_0x4babd2['on'](_0x48f8c8[_0x31ab07(0x162)],async _0x3f3d1e=>{const _0x5854a9=_0x31ab07;try{PerformanceTester[_0x5854a9(0x1ca)](PerformanceEvents[_0x5854a9(0x1c9)]),_0x48f8c8[_0x5854a9(0x1a6)](_0x1ce421),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x5854a9(0x1c1)](),await BrowserstackCLI['getInstance']()[_0x5854a9(0x176)](),TestDetails['shutdown'](),_0x48f8c8['wjERi'](printBuildLink),await utilities['finalExecution'](_0x432fe1),process[_0x5854a9(0x15c)]=_0x3f3d1e,logger[_0x5854a9(0x169)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x3f3d1e),logger[_0x5854a9(0x173)](_0x5854a9(0x120)+_0x56c5e1),fs[_0x5854a9(0x19b)](_0x56c5e1);fs['existsSync'](_0x3b8691)&&(logger[_0x5854a9(0x169)]('Deleting\x20'+_0x3b8691),fs[_0x5854a9(0x19b)](_0x3b8691));const _0x2b072d=fs['readdirSync'](path[_0x5854a9(0x1aa)](helper[_0x5854a9(0x1b2)](),_0x48f8c8[_0x5854a9(0x1ad)]))[_0x5854a9(0x1ab)](_0x2a689c=>_0x2a689c[_0x5854a9(0x133)]('trace_'));_0x2b072d[_0x5854a9(0x15b)](_0x4a33a9=>{const _0x1932b6=_0x5854a9;fs['unlinkSync'](path[_0x1932b6(0x1aa)](helper[_0x1932b6(0x1b2)](),_0x3c6286[_0x1932b6(0x1d0)],_0x4a33a9));});}catch(_0x1bc7ef){logger[_0x5854a9(0x169)](_0x48f8c8[_0x5854a9(0x1b8)](_0x48f8c8[_0x5854a9(0x175)],_0x1bc7ef));}});})();}function a39_0x1bc9(_0x51118b,_0x7d808c){const _0x3171bf=a39_0x3171();return a39_0x1bc9=function(_0x1bc99f,_0x45cb0b){_0x1bc99f=_0x1bc99f-0x11f;let _0x409d6e=_0x3171bf[_0x1bc99f];return _0x409d6e;},a39_0x1bc9(_0x51118b,_0x7d808c);}module[a39_0x2c60c6(0x18a)]=run;