browserstack-node-sdk 1.49.4 → 1.49.5

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 -1
  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_0x3477(){const _0xaf2de9=['Proxy\x20set\x20to\x20','13HbHGtB','ieOptions_','chromeOptions_','edgeOptions_','firefoxOptions_','originalBuilder','proxyUrl','FQams','7235292WpQOVE','8dhjNOt','SCggN','WLxBz','getRequestOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','Setting\x20Browserstack\x20capabilities','edgeOptions','send','isUndefined','getAccessibilityResults','ms:edgeOptions','proxy_','3|5|0|4|2|1','setServer','__driversArray','overrideGet','nboID','2808dumdyw','setGlobal','RXcrl','__setBrowserOptions','https://','6702QoqBBH','Hub\x20url\x20set\x20to\x20','33646EYlZqR','11755575SoEjQq','agent_','kHaOe','push','moz:firefoxOptions','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','QcoQx','safariOptions_','capabilities_','36ArKrHO','proxySettings','Odyjz','20946864KFcsqW','options_','KQuag','goog:chromeOptions','ieOptions','isBrowserstackInfra','url_','browserStackLogLevel','kIEjN','safari.options','8020AIYqBn','quitCount_','get','uvofe','debug','vXjAU','GENpZ','../accessibility-automation/helper','Modifying\x20webdriver\x20builder','setLogLevel','build','16489XnQbMq','TdGce','GrhHi','CAPABILITY_KEY','New\x20hub\x20url\x20set\x20to\x20','logLevel','path','__drivers','isAccessibilityPlatform','exports','session_','uwzRz','set','__driver','HttpClient','LIztZ','5aLAnEd','global','KdZse','setCapabilities','ZnZpG','nhcyK','error','optimalHubUrl','IuObt','vsqHD','requireSeleniumWebdriver','TuIJU','object','11457551QDNOxe','tsNNg','mergeDeep','../../../helpers/accessibility-automation/helper','MzEBk','./helpers/patchHelper','JrUaf','GyxUN','then','../../../helpers/patchHelpers','forEach','1|5|0|4|2|3','uCisU','Builder','ZLvvE','capability','getAccessibilityResultsSummary','storeOptimalHubUrl','getHubUrl','newHubUrl','HBUur'];a33_0x3477=function(){return _0xaf2de9;};return a33_0x3477();}const a33_0x3231da=a33_0x3285;(function(_0x477669,_0x21d079){const _0x408017=a33_0x3285,_0x257698=_0x477669();while(!![]){try{const _0x333405=-parseInt(_0x408017(0x9d))/0x1*(-parseInt(_0x408017(0x93))/0x2)+parseInt(_0x408017(0x91))/0x3*(parseInt(_0x408017(0x8c))/0x4)+-parseInt(_0x408017(0xc5))/0x5*(-parseInt(_0x408017(0x7a))/0x6)+parseInt(_0x408017(0xd2))/0x7*(-parseInt(_0x408017(0x7b))/0x8)+-parseInt(_0x408017(0x94))/0x9+parseInt(_0x408017(0xaa))/0xa*(-parseInt(_0x408017(0xb5))/0xb)+parseInt(_0x408017(0xa0))/0xc*(parseInt(_0x408017(0x72))/0xd);if(_0x333405===_0x21d079)break;else _0x257698['push'](_0x257698['shift']());}catch(_0xb9fdfe){_0x257698['push'](_0x257698['shift']());}}}(a33_0x3477,0xef4d8));function a33_0x3285(_0x424562,_0x586bcf){const _0x3477ef=a33_0x3477();return a33_0x3285=function(_0x3285b9,_0x3d3afb){_0x3285b9=_0x3285b9-0x68;let _0x13325e=_0x3477ef[_0x3285b9];return _0x13325e;},a33_0x3285(_0x424562,_0x586bcf);}const logger=require('../../../helpers/logger')['winstonLogger'],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x3231da(0xdb)),{setAccessibilityCapabilities,setExtension}=require(a33_0x3231da(0xb1)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x3231da(0xd5)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x3231da(0xd7)),modify=(_0x21f130,_0x28fbb8=null,_0x459fa0=![])=>{const _0x4780be=a33_0x3231da,_0x2ee71a={'HBUur':function(_0x3e3ae0,_0x1857e1){return _0x3e3ae0!==_0x1857e1;},'cvVtk':'/session','vXjAU':function(_0x312d3f,_0xb4333b){return _0x312d3f+_0xb4333b;},'IuObt':_0x4780be(0x90),'cnZwo':'/wd/hub','FwaxG':_0x4780be(0xa3),'jawVu':'chromeOptions','kIEjN':_0x4780be(0x85),'TdGce':_0x4780be(0x81),'Odyjz':_0x4780be(0x98),'RXcrl':'firefoxOptions','uCisU':_0x4780be(0xa9),'uvofe':'se:ieOptions','SCggN':_0x4780be(0xa4),'GENpZ':function(_0x5090b6,_0x356f4b){return _0x5090b6===_0x356f4b;},'QcoQx':_0x4780be(0xd1),'ZnZpG':_0x4780be(0x80),'JpseW':_0x4780be(0xcc),'ulJxW':_0x4780be(0x7f),'MzEBk':_0x4780be(0x87),'kHaOe':function(_0x372e5e,_0x459adb,_0x5ce72b){return _0x372e5e(_0x459adb,_0x5ce72b);},'FQams':function(_0x1c4423,_0x5e1f91,_0x273ac1){return _0x1c4423(_0x5e1f91,_0x273ac1);},'ZLvvE':function(_0x41be54,_0x3ee529){return _0x41be54(_0x3ee529);},'LIztZ':_0x4780be(0xdd),'xDfSL':function(_0x26dcbd){return _0x26dcbd();},'WLxBz':function(_0xdf5312,_0xe081c7){return _0xdf5312(_0xe081c7);},'nhcyK':_0x4780be(0xbd),'tsNNg':function(_0x5d3665,_0x302905,_0xc3c1c3){return _0x5d3665(_0x302905,_0xc3c1c3);},'JrUaf':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','sHaQL':function(_0x4b013,_0x4f5180){return _0x4b013(_0x4f5180);},'uwzRz':function(_0x511b3e,_0x291f91,_0x4b810d){return _0x511b3e(_0x291f91,_0x4b810d);},'GyxUN':function(_0x1aae7d,_0x235bb7){return _0x1aae7d!==_0x235bb7;},'GrhHi':_0x4780be(0x99),'nboID':_0x4780be(0xb2)},_0x4254fd=helper['requireHttpClient']();let _0x1f0fd1;try{_0x1f0fd1=helper[_0x4780be(0xcf)](),_0x1f0fd1['originalBuilder']&&(_0x1f0fd1[_0x4780be(0x69)]=_0x1f0fd1['originalBuilder']);}catch(_0x3aae36){return;}if(helper[_0x4780be(0xa5)]()){const _0x48bb14={};_0x48bb14[_0x4780be(0xba)]=_0x21f130[_0x4780be(0xa7)],helper[_0x4780be(0xb3)](_0x48bb14,new Map(),new Map()),logger['info'](_0x2ee71a[_0x4780be(0xb7)]),logger[_0x4780be(0xae)](_0x2ee71a[_0x4780be(0x8b)]);}class _0x1c9a36 extends _0x4254fd['HttpClient']{[_0x4780be(0x82)](_0x4fadff){const _0x12120f=_0x4780be;if(_0x2ee71a[_0x12120f(0x70)](_0x4fadff[_0x12120f(0xbb)],_0x2ee71a['cvVtk'])&&_0x2ee71a['HBUur'](global[_0x12120f(0x6f)],''))try{global['newHubUrl']=_0x2ee71a[_0x12120f(0xaf)](_0x2ee71a[_0x12120f(0xaf)](_0x2ee71a[_0x12120f(0xcd)],global[_0x12120f(0x6f)]),_0x2ee71a['cnZwo']),this[_0x12120f(0xa1)]=hubAllocator[_0x12120f(0x7e)](global['newHubUrl']),logger[_0x12120f(0xae)](_0x12120f(0xb9)+global[_0x12120f(0x6f)]),global['newHubUrl']='';}catch(_0x1edcd0){logger[_0x12120f(0xcb)](_0x1edcd0);}return super[_0x12120f(0x82)](_0x4fadff);}}class _0x14a9ff extends _0x1f0fd1[_0x4780be(0x69)]{['setServer'](){const _0x1218f6=_0x4780be;return this[_0x1218f6(0xa6)]=helper[_0x1218f6(0x6e)](_0x21f130),logger['debug'](_0x1218f6(0x92)+this['url_']),this;}['__setBrowserOptions'](_0x513c7a){const _0xefd08=_0x4780be;let _0x46bbf3={};for(const _0x591c2d in _0x513c7a){switch(_0x591c2d){case _0x2ee71a['FwaxG']:case _0x2ee71a['jawVu']:this['chromeOptions_']&&(_0x46bbf3=this[_0xefd08(0x74)][_0xefd08(0xac)](this[_0xefd08(0x74)][_0xefd08(0xb8)])||{},this[_0xefd08(0x74)][_0xefd08(0xc1)](this[_0xefd08(0x74)]['CAPABILITY_KEY'],helper[_0xefd08(0xd4)](_0x46bbf3,_0x513c7a[_0x591c2d])));break;case _0x2ee71a[_0xefd08(0xa8)]:case _0x2ee71a[_0xefd08(0xb6)]:this['edgeOptions_']&&(_0x46bbf3=this[_0xefd08(0x75)][_0xefd08(0xac)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0xefd08(0x75)][_0xefd08(0xc1)](this[_0xefd08(0x75)][_0xefd08(0xb8)],helper[_0xefd08(0xd4)](_0x46bbf3,_0x513c7a[_0x591c2d])));break;case _0x2ee71a[_0xefd08(0x9f)]:case _0x2ee71a[_0xefd08(0x8e)]:this[_0xefd08(0x76)]&&(_0x46bbf3=this['firefoxOptions_'][_0xefd08(0xac)](this['firefoxOptions_']['CAPABILITY_KEY'])||{},this[_0xefd08(0x76)][_0xefd08(0xc1)](this[_0xefd08(0x76)]['CAPABILITY_KEY'],helper[_0xefd08(0xd4)](_0x46bbf3,_0x513c7a[_0x591c2d])));break;case _0x2ee71a[_0xefd08(0x68)]:this[_0xefd08(0x9b)]&&(_0x46bbf3=this['safariOptions_'][_0xefd08(0xac)](this[_0xefd08(0x9b)][_0xefd08(0xb8)])||{},this['safariOptions_'][_0xefd08(0xc1)](this[_0xefd08(0x9b)]['CAPABILITY_KEY'],helper[_0xefd08(0xd4)](_0x46bbf3,_0x513c7a[_0x591c2d])));break;case _0x2ee71a[_0xefd08(0xad)]:case _0x2ee71a[_0xefd08(0x7c)]:this[_0xefd08(0x73)]&&(_0x46bbf3=this[_0xefd08(0x73)][_0xefd08(0xac)](this[_0xefd08(0x73)][_0xefd08(0xb8)])||{},this[_0xefd08(0x73)]['set'](this[_0xefd08(0x73)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x46bbf3,_0x513c7a[_0x591c2d])));break;}}}[_0x4780be(0xc8)](){const _0x46b20f=_0x4780be,_0x47b290={'TuIJU':function(_0x59307c,_0x3e66c5){const _0x201e9e=a33_0x3285;return _0x2ee71a[_0x201e9e(0xb0)](_0x59307c,_0x3e66c5);},'KdZse':_0x2ee71a[_0x46b20f(0x9a)]};return logger[_0x46b20f(0xae)](_0x2ee71a[_0x46b20f(0xc9)]),this[_0x46b20f(0x8f)](_0x21f130[_0x46b20f(0x6b)]),Object['keys'](_0x21f130[_0x46b20f(0x6b)])[_0x46b20f(0xdc)](_0x3ca6fd=>{const _0x350f93=_0x46b20f,_0x19c317=this[_0x350f93(0x9c)]['get'](_0x3ca6fd);_0x47b290[_0x350f93(0xd0)](typeof _0x19c317,_0x47b290[_0x350f93(0xc7)])?this['capabilities_'][_0x350f93(0xc1)](_0x3ca6fd,helper['mergeDeep'](_0x19c317,_0x21f130['capability'][_0x3ca6fd])):this[_0x350f93(0x9c)][_0x350f93(0xc1)](_0x3ca6fd,_0x21f130[_0x350f93(0x6b)][_0x3ca6fd]);}),this;}[_0x4780be(0xb4)](){const _0x9cd6e5=_0x4780be,_0x25cc55={'vsqHD':function(_0x21ac06,_0x471f94,_0x55e58a){const _0x3501f1=a33_0x3285;return _0x2ee71a[_0x3501f1(0x96)](_0x21ac06,_0x471f94,_0x55e58a);},'KQuag':function(_0x29fa41,_0x120c0d,_0x153985){return _0x2ee71a['kHaOe'](_0x29fa41,_0x120c0d,_0x153985);}};if(helper[_0x9cd6e5(0xa5)]()){const _0x6e6e9a=_0x2ee71a[_0x9cd6e5(0xc4)]['split']('|');let _0x6cff0b=0x0;while(!![]){switch(_0x6e6e9a[_0x6cff0b++]){case'0':this['setCapabilities']();continue;case'1':_0x2ee71a['xDfSL'](isAccessibilityAutomationSession)&&_0x2ee71a[_0x9cd6e5(0x7d)](setAccessibilityCapabilities,_0x21f130);continue;case'2':globals['getGlobal'](_0x2ee71a[_0x9cd6e5(0xca)])&&(!_0x2ee71a[_0x9cd6e5(0xd3)](setExtension,this,_0x21f130)&&globals[_0x9cd6e5(0x8d)](_0x2ee71a[_0x9cd6e5(0xca)],![]));continue;case'3':logger[_0x9cd6e5(0xae)](_0x2ee71a[_0x9cd6e5(0xd8)]);continue;case'4':if(helper['isPacProxy'](_0x21f130[_0x9cd6e5(0x9e)][_0x9cd6e5(0x78)]))this[_0x9cd6e5(0x95)]=helper['getHttpAgent'](_0x21f130['proxySettings'][_0x9cd6e5(0x78)]);else _0x21f130[_0x9cd6e5(0x9e)]['proxyUrl']&&(this[_0x9cd6e5(0x86)]=_0x21f130['proxySettings'][_0x9cd6e5(0x78)],logger[_0x9cd6e5(0xae)](_0x9cd6e5(0x71)+this[_0x9cd6e5(0x86)]));continue;case'5':this[_0x9cd6e5(0x88)]();continue;}break;}}const _0x490f08=super[_0x9cd6e5(0xb4)]();return _0x490f08[_0x9cd6e5(0xbf)][_0x9cd6e5(0xda)](_0x18d05f=>{const _0x4e18fc=_0x9cd6e5;try{const _0x59690d=_0x18d05f['caps_']['get'](_0x2ee71a['JpseW']);_0x59690d?(logger[_0x4e18fc(0xae)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x59690d),hubAllocator['updateHubUrl'](_0x59690d),helper[_0x4e18fc(0x6d)](_0x59690d)):logger[_0x4e18fc(0xae)](_0x2ee71a['ulJxW']);}catch(_0x18e51e){logger[_0x4e18fc(0xae)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x18e51e);}}),_0x490f08[_0x9cd6e5(0xab)]=0x0,_0x490f08[_0x9cd6e5(0xda)]&&_0x490f08[_0x9cd6e5(0xda)](_0x46c76d=>{const _0x542a87=_0x9cd6e5,_0x5666c8=_0x2ee71a[_0x542a87(0xd6)]['split']('|');let _0x3b8452=0x0;while(!![]){switch(_0x5666c8[_0x3b8452++]){case'0':helper['overrideGet'](_0x46c76d,_0x21f130);continue;case'1':_0x46c76d[_0x542a87(0x84)]=async()=>{const _0x597e0f=_0x542a87;return await _0x25cc55[_0x597e0f(0xce)](getAccessibilityResults,_0x46c76d,global);};continue;case'2':_0x46c76d[_0x542a87(0x6c)]=async()=>{const _0x4f2146=_0x542a87;return await _0x25cc55[_0x4f2146(0xce)](getAccessibilityResultsSummary,_0x46c76d,global);};continue;case'3':_0x2ee71a[_0x542a87(0x96)](overrideQuit,_0x46c76d,_0x490f08);continue;case'4':_0x2ee71a[_0x542a87(0x79)](overrideExecute,_0x46c76d,_0x21f130);continue;case'5':_0x2ee71a[_0x542a87(0x6a)](overrideTakeScreenshot,_0x46c76d);continue;}break;}}),_0x490f08[_0x9cd6e5(0x6c)]=async()=>{const _0x1a5310=_0x9cd6e5;return await _0x25cc55[_0x1a5310(0xce)](getAccessibilityResultsSummary,_0x490f08,global);},_0x490f08[_0x9cd6e5(0x84)]=async()=>{const _0x2c9e03=_0x9cd6e5;return await _0x25cc55[_0x2c9e03(0xa2)](getAccessibilityResults,_0x490f08,global);},_0x2ee71a['WLxBz'](overrideTakeScreenshot,_0x490f08),_0x2ee71a['sHaQL'](overrideQuit,_0x490f08),helper[_0x9cd6e5(0x8a)](_0x490f08,_0x21f130),_0x2ee71a[_0x9cd6e5(0xc0)](overrideExecute,_0x490f08,_0x21f130),helper['isUndefined'](global[_0x9cd6e5(0x89)])&&(global[_0x9cd6e5(0x89)]=[]),helper[_0x9cd6e5(0x83)](global[_0x9cd6e5(0xbc)])&&(global[_0x9cd6e5(0xbc)]=[]),global[_0x9cd6e5(0x89)][_0x9cd6e5(0x97)](_0x490f08),global[_0x9cd6e5(0xc2)]=_0x490f08,_0x2ee71a[_0x9cd6e5(0xd9)](global[_0x9cd6e5(0xbc)],undefined)&&global[_0x9cd6e5(0xbc)][_0x9cd6e5(0x97)](_0x490f08),_0x28fbb8&&helper[_0x9cd6e5(0x83)](_0x28fbb8['global'][_0x9cd6e5(0x89)])&&(_0x28fbb8['global'][_0x9cd6e5(0x89)]=[]),_0x28fbb8&&_0x2ee71a[_0x9cd6e5(0xd9)](_0x28fbb8['global'][_0x9cd6e5(0xbc)],undefined)&&(_0x28fbb8[_0x9cd6e5(0xc6)][_0x9cd6e5(0xbc)][_0x9cd6e5(0x97)](_0x490f08),_0x28fbb8[_0x9cd6e5(0xc6)][_0x9cd6e5(0x89)][_0x9cd6e5(0x97)](_0x490f08)),_0x490f08;}}return _0x1f0fd1[_0x4780be(0x77)]=_0x1f0fd1['Builder'],_0x1f0fd1[_0x4780be(0x69)]=_0x14a9ff,_0x4254fd[_0x4780be(0xc3)]=_0x1c9a36,_0x1f0fd1;};module[a33_0x3231da(0xbe)]['browserstackAgentObservability']=modify;
1
+ const a33_0x3a3d63=a33_0x7c33;function a33_0x7c33(_0x379ebe,_0x4d7921){const _0x18d175=a33_0x18d1();return a33_0x7c33=function(_0x7c3363,_0x203fdb){_0x7c3363=_0x7c3363-0x104;let _0x4ab837=_0x18d175[_0x7c3363];return _0x4ab837;},a33_0x7c33(_0x379ebe,_0x4d7921);}(function(_0x4fc034,_0x4745c9){const _0x4cf4cd=a33_0x7c33,_0x5b4b84=_0x4fc034();while(!![]){try{const _0x1b9bed=parseInt(_0x4cf4cd(0x162))/0x1+parseInt(_0x4cf4cd(0x178))/0x2*(parseInt(_0x4cf4cd(0x12d))/0x3)+parseInt(_0x4cf4cd(0x125))/0x4*(-parseInt(_0x4cf4cd(0x13e))/0x5)+parseInt(_0x4cf4cd(0x10e))/0x6*(-parseInt(_0x4cf4cd(0x121))/0x7)+parseInt(_0x4cf4cd(0x114))/0x8+-parseInt(_0x4cf4cd(0x13f))/0x9+-parseInt(_0x4cf4cd(0x163))/0xa*(parseInt(_0x4cf4cd(0x148))/0xb);if(_0x1b9bed===_0x4745c9)break;else _0x5b4b84['push'](_0x5b4b84['shift']());}catch(_0x26ad26){_0x5b4b84['push'](_0x5b4b84['shift']());}}}(a33_0x18d1,0x611e3));const logger=require(a33_0x3a3d63(0x10b))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a33_0x3a3d63(0x12c)),hubAllocator=require(a33_0x3a3d63(0x16d)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x3a3d63(0x122)),{setAccessibilityCapabilities,setExtension}=require(a33_0x3a3d63(0x112)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x3a3d63(0x16e)),globals=require(a33_0x3a3d63(0x10f)),{overrideExecute}=require(a33_0x3a3d63(0x156)),modify=(_0x47f401,_0x330749=null,_0x3c42d9=![])=>{const _0x4c8599=a33_0x3a3d63,_0x498128={'qgXZh':function(_0x4647ac,_0x419e11){return _0x4647ac!==_0x419e11;},'EiuiJ':_0x4c8599(0x130),'mmDEv':function(_0x794164,_0x48fc17){return _0x794164+_0x48fc17;},'Jrcmf':_0x4c8599(0x13d),'zpEvz':'/wd/hub','VLJAw':'goog:chromeOptions','xpmys':_0x4c8599(0x126),'EOlFW':_0x4c8599(0x137),'GewhX':_0x4c8599(0x167),'zCcZB':_0x4c8599(0x15d),'KYEsT':_0x4c8599(0x15e),'RtQKW':'safari.options','qVXOv':_0x4c8599(0x108),'Lmrhq':_0x4c8599(0x10c),'Yegub':function(_0x30c6bb,_0x442fab){return _0x30c6bb===_0x442fab;},'JiYrh':_0x4c8599(0x141),'espTp':'Setting\x20Browserstack\x20capabilities','yKmoR':function(_0xa76e09,_0x167573,_0x5f331a){return _0xa76e09(_0x167573,_0x5f331a);},'adSiY':function(_0x247309,_0x3a002e){return _0x247309(_0x3a002e);},'FXnbI':function(_0x5e3947,_0xde3592,_0x1bb96d){return _0x5e3947(_0xde3592,_0x1bb96d);},'qkNdo':_0x4c8599(0x16c),'XjyuF':_0x4c8599(0x11f),'sUuqa':function(_0x1b1bd8,_0x4eb0b5,_0x4a2f9d){return _0x1b1bd8(_0x4eb0b5,_0x4a2f9d);},'rDxGg':_0x4c8599(0x145),'tZUsw':_0x4c8599(0x115),'qGUcc':function(_0x2eabe3,_0x3976ec,_0x5896f7){return _0x2eabe3(_0x3976ec,_0x5896f7);},'bAKPW':_0x4c8599(0x12f),'EbEOc':function(_0x19f1ce){return _0x19f1ce();},'xUshe':function(_0x53dc21,_0x34d4bb){return _0x53dc21(_0x34d4bb);},'qxBBM':function(_0xbba553,_0x55e9f0){return _0xbba553(_0x55e9f0);},'mQooc':function(_0x2ac437,_0x39ebea){return _0x2ac437!==_0x39ebea;},'ihdCH':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','FyhPe':'Modifying\x20webdriver\x20builder'},_0x584392=helper[_0x4c8599(0x146)]();let _0x527c4f;try{_0x527c4f=helper[_0x4c8599(0x14b)](),_0x527c4f[_0x4c8599(0x159)]&&(_0x527c4f['Builder']=_0x527c4f['originalBuilder']);}catch(_0x47c5a1){return;}if(helper[_0x4c8599(0x166)]()){const _0x136518={};_0x136518[_0x4c8599(0x165)]=_0x47f401['browserStackLogLevel'],helper['setLogLevel'](_0x136518,new Map(),new Map()),logger[_0x4c8599(0x11d)](_0x498128['ihdCH']),logger[_0x4c8599(0x119)](_0x498128[_0x4c8599(0x132)]);}class _0x5c6a60 extends _0x584392[_0x4c8599(0x14e)]{[_0x4c8599(0x11a)](_0x1ccdc9){const _0x20adea=_0x4c8599;if(_0x498128[_0x20adea(0x157)](_0x1ccdc9[_0x20adea(0x15a)],_0x498128[_0x20adea(0x136)])&&_0x498128['qgXZh'](global['newHubUrl'],''))try{global[_0x20adea(0x123)]=_0x498128['mmDEv'](_0x498128[_0x20adea(0x172)](_0x498128[_0x20adea(0x173)],global[_0x20adea(0x123)]),_0x498128[_0x20adea(0x150)]),this['options_']=hubAllocator[_0x20adea(0x168)](global['newHubUrl']),logger[_0x20adea(0x119)](_0x20adea(0x164)+global[_0x20adea(0x123)]),global[_0x20adea(0x123)]='';}catch(_0x1a7441){logger[_0x20adea(0x170)](_0x1a7441);}return super[_0x20adea(0x11a)](_0x1ccdc9);}}class _0x43b33e extends _0x527c4f['Builder']{[_0x4c8599(0x117)](){const _0x292823=_0x4c8599;return this[_0x292823(0x118)]=helper[_0x292823(0x124)](_0x47f401),logger[_0x292823(0x119)]('Hub\x20url\x20set\x20to\x20'+this[_0x292823(0x118)]),this;}['__setBrowserOptions'](_0xae4ec9){const _0x1f4495=_0x4c8599;let _0x54cbb6={};for(const _0x48b900 in _0xae4ec9){switch(_0x48b900){case _0x498128[_0x1f4495(0x105)]:case _0x498128[_0x1f4495(0x171)]:this['chromeOptions_']&&(_0x54cbb6=this['chromeOptions_'][_0x1f4495(0x17b)](this[_0x1f4495(0x16a)][_0x1f4495(0x174)])||{},this[_0x1f4495(0x16a)]['set'](this[_0x1f4495(0x16a)][_0x1f4495(0x174)],helper[_0x1f4495(0x113)](_0x54cbb6,_0xae4ec9[_0x48b900])));break;case _0x498128[_0x1f4495(0x177)]:case _0x498128[_0x1f4495(0x176)]:this['edgeOptions_']&&(_0x54cbb6=this[_0x1f4495(0x14c)]['get'](this[_0x1f4495(0x14c)][_0x1f4495(0x174)])||{},this[_0x1f4495(0x14c)][_0x1f4495(0x129)](this[_0x1f4495(0x14c)][_0x1f4495(0x174)],helper['mergeDeep'](_0x54cbb6,_0xae4ec9[_0x48b900])));break;case _0x498128['zCcZB']:case _0x498128['KYEsT']:this[_0x1f4495(0x116)]&&(_0x54cbb6=this[_0x1f4495(0x116)][_0x1f4495(0x17b)](this[_0x1f4495(0x116)][_0x1f4495(0x174)])||{},this[_0x1f4495(0x116)][_0x1f4495(0x129)](this['firefoxOptions_'][_0x1f4495(0x174)],helper[_0x1f4495(0x113)](_0x54cbb6,_0xae4ec9[_0x48b900])));break;case _0x498128[_0x1f4495(0x142)]:this['safariOptions_']&&(_0x54cbb6=this[_0x1f4495(0x104)]['get'](this['safariOptions_'][_0x1f4495(0x174)])||{},this[_0x1f4495(0x104)]['set'](this[_0x1f4495(0x104)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x54cbb6,_0xae4ec9[_0x48b900])));break;case _0x498128[_0x1f4495(0x16b)]:case _0x498128[_0x1f4495(0x161)]:this['ieOptions_']&&(_0x54cbb6=this[_0x1f4495(0x179)][_0x1f4495(0x17b)](this[_0x1f4495(0x179)]['CAPABILITY_KEY'])||{},this[_0x1f4495(0x179)]['set'](this[_0x1f4495(0x179)][_0x1f4495(0x174)],helper[_0x1f4495(0x113)](_0x54cbb6,_0xae4ec9[_0x48b900])));break;}}}['setCapabilities'](){const _0x2a9b19=_0x4c8599,_0x4fe92f={'nlclt':function(_0x541586,_0x5e7996){return _0x498128['Yegub'](_0x541586,_0x5e7996);},'fWjex':_0x498128[_0x2a9b19(0x149)]};return logger['debug'](_0x498128[_0x2a9b19(0x13c)]),this[_0x2a9b19(0x14f)](_0x47f401['capability']),Object[_0x2a9b19(0x160)](_0x47f401['capability'])[_0x2a9b19(0x11e)](_0x680e13=>{const _0x12000a=_0x2a9b19,_0x1b0335=this[_0x12000a(0x152)][_0x12000a(0x17b)](_0x680e13);_0x4fe92f[_0x12000a(0x10d)](typeof _0x1b0335,_0x4fe92f[_0x12000a(0x17a)])?this[_0x12000a(0x152)][_0x12000a(0x129)](_0x680e13,helper[_0x12000a(0x113)](_0x1b0335,_0x47f401[_0x12000a(0x109)][_0x680e13])):this[_0x12000a(0x152)][_0x12000a(0x129)](_0x680e13,_0x47f401[_0x12000a(0x109)][_0x680e13]);}),this;}['build'](){const _0x4fee23=_0x4c8599,_0x210dbb={'VkkSS':_0x498128[_0x4fee23(0x151)],'GuvTG':_0x498128['XjyuF'],'YCqxq':function(_0x1f9209,_0x17c64b,_0x269b1c){const _0x315f53=_0x4fee23;return _0x498128[_0x315f53(0x12a)](_0x1f9209,_0x17c64b,_0x269b1c);}};if(helper[_0x4fee23(0x166)]()){const _0x4d7816=_0x498128['rDxGg'][_0x4fee23(0x16f)]('|');let _0xbe26da=0x0;while(!![]){switch(_0x4d7816[_0xbe26da++]){case'0':this['setServer']();continue;case'1':globals[_0x4fee23(0x12e)](_0x498128[_0x4fee23(0x120)])&&(!_0x498128['qGUcc'](setExtension,this,_0x47f401)&&globals[_0x4fee23(0x139)](_0x498128[_0x4fee23(0x120)],![]));continue;case'2':logger[_0x4fee23(0x119)](_0x498128['bAKPW']);continue;case'3':this[_0x4fee23(0x127)]();continue;case'4':if(helper[_0x4fee23(0x13a)](_0x47f401[_0x4fee23(0x128)]['proxyUrl']))this[_0x4fee23(0x111)]=helper[_0x4fee23(0x134)](_0x47f401[_0x4fee23(0x128)][_0x4fee23(0x12b)]);else _0x47f401[_0x4fee23(0x128)]['proxyUrl']&&(this[_0x4fee23(0x175)]=_0x47f401[_0x4fee23(0x128)][_0x4fee23(0x12b)],logger[_0x4fee23(0x119)](_0x4fee23(0x133)+this[_0x4fee23(0x175)]));continue;case'5':_0x498128[_0x4fee23(0x138)](isAccessibilityAutomationSession)&&_0x498128[_0x4fee23(0x13b)](setAccessibilityCapabilities,_0x47f401);continue;}break;}}const _0x10702b=super[_0x4fee23(0x140)]();return _0x10702b[_0x4fee23(0x158)]['then'](_0x5dffa2=>{const _0x2b60b2=_0x4fee23;try{const _0x2f7db2=_0x5dffa2[_0x2b60b2(0x131)][_0x2b60b2(0x17b)](_0x210dbb['VkkSS']);_0x2f7db2?(logger[_0x2b60b2(0x119)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x2f7db2),hubAllocator[_0x2b60b2(0x14d)](_0x2f7db2),helper[_0x2b60b2(0x15c)](_0x2f7db2)):logger[_0x2b60b2(0x119)](_0x210dbb[_0x2b60b2(0x155)]);}catch(_0x2665a8){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x2665a8);}}),_0x10702b[_0x4fee23(0x15b)]=0x0,_0x10702b[_0x4fee23(0x135)]&&_0x10702b[_0x4fee23(0x135)](_0x537f5e=>{const _0x55a157=_0x4fee23,_0x37d10d={'snBBY':function(_0x2cb7cf,_0x5b0ea6,_0x5e6600){const _0x57d471=a33_0x7c33;return _0x498128[_0x57d471(0x14a)](_0x2cb7cf,_0x5b0ea6,_0x5e6600);}};_0x498128[_0x55a157(0x14a)](overrideQuit,_0x537f5e,_0x10702b),_0x498128['adSiY'](overrideTakeScreenshot,_0x537f5e),helper[_0x55a157(0x11c)](_0x537f5e,_0x47f401),_0x498128[_0x55a157(0x14a)](overrideExecute,_0x537f5e,_0x47f401),_0x537f5e['getAccessibilityResultsSummary']=async()=>{const _0x495dcf=_0x55a157;return await _0x210dbb[_0x495dcf(0x10a)](getAccessibilityResultsSummary,_0x537f5e,global);},_0x537f5e[_0x55a157(0x144)]=async()=>{const _0xe4aac9=_0x55a157;return await _0x37d10d[_0xe4aac9(0x153)](getAccessibilityResults,_0x537f5e,global);};}),_0x10702b['getAccessibilityResultsSummary']=async()=>{const _0x45cf29=_0x4fee23;return await _0x210dbb[_0x45cf29(0x10a)](getAccessibilityResultsSummary,_0x10702b,global);},_0x10702b[_0x4fee23(0x144)]=async()=>{const _0x27b222=_0x4fee23;return await _0x498128[_0x27b222(0x147)](getAccessibilityResults,_0x10702b,global);},_0x498128[_0x4fee23(0x13b)](overrideTakeScreenshot,_0x10702b),_0x498128[_0x4fee23(0x169)](overrideQuit,_0x10702b),helper[_0x4fee23(0x11c)](_0x10702b,_0x47f401),_0x498128['sUuqa'](overrideExecute,_0x10702b,_0x47f401),helper[_0x4fee23(0x143)](global['__driversArray'])&&(global[_0x4fee23(0x154)]=[]),helper['isUndefined'](global[_0x4fee23(0x107)])&&(global['__drivers']=[]),global[_0x4fee23(0x154)][_0x4fee23(0x106)](_0x10702b),global['__driver']=_0x10702b,_0x498128['qgXZh'](global['__drivers'],undefined)&&global[_0x4fee23(0x107)][_0x4fee23(0x106)](_0x10702b),_0x330749&&helper[_0x4fee23(0x143)](_0x330749['global']['__driversArray'])&&(_0x330749['global']['__driversArray']=[]),_0x330749&&_0x498128[_0x4fee23(0x17c)](_0x330749[_0x4fee23(0x11b)][_0x4fee23(0x107)],undefined)&&(_0x330749[_0x4fee23(0x11b)][_0x4fee23(0x107)][_0x4fee23(0x106)](_0x10702b),_0x330749['global'][_0x4fee23(0x154)][_0x4fee23(0x106)](_0x10702b)),_0x10702b;}}return _0x527c4f[_0x4c8599(0x159)]=_0x527c4f[_0x4c8599(0x15f)],_0x527c4f[_0x4c8599(0x15f)]=_0x43b33e,_0x584392[_0x4c8599(0x14e)]=_0x5c6a60,_0x527c4f;};module[a33_0x3a3d63(0x110)]['browserstackAgentObservability']=modify;function a33_0x18d1(){const _0x5f4edf=['caps_','FyhPe','Proxy\x20set\x20to\x20','getHttpAgent','then','EiuiJ','ms:edgeOptions','EbEOc','setGlobal','isPacProxy','xUshe','espTp','https://','5350OlzQgX','6217884NWKKhE','build','object','RtQKW','isUndefined','getAccessibilityResults','5|0|3|4|1|2','requireHttpClient','FXnbI','1628fqEuaS','JiYrh','yKmoR','requireSeleniumWebdriver','edgeOptions_','updateHubUrl','HttpClient','__setBrowserOptions','zpEvz','qkNdo','capabilities_','snBBY','__driversArray','GuvTG','./helpers/patchHelper','qgXZh','session_','originalBuilder','path','quitCount_','storeOptimalHubUrl','moz:firefoxOptions','firefoxOptions','Builder','keys','Lmrhq','583558igWqZo','10250DBIKBx','New\x20hub\x20url\x20set\x20to\x20','logLevel','isBrowserstackInfra','edgeOptions','getRequestOptions','qxBBM','chromeOptions_','qVXOv','optimalHubUrl','../../../hubAllocationMethods','../../../helpers/accessibility-automation/helper','split','error','xpmys','mmDEv','Jrcmf','CAPABILITY_KEY','proxy_','GewhX','EOlFW','98WDwxLU','ieOptions_','fWjex','get','mQooc','safariOptions_','VLJAw','push','__drivers','se:ieOptions','capability','YCqxq','../../../helpers/logger','ieOptions','nlclt','6NulfUU','../../../helpers/globals','exports','agent_','../accessibility-automation/helper','mergeDeep','5084088KoHbat','isAccessibilityPlatform','firefoxOptions_','setServer','url_','debug','send','global','overrideGet','info','forEach','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','tZUsw','1274882LHTCFe','../../../helpers/patchHelpers','newHubUrl','getHubUrl','284fIQUPt','chromeOptions','setCapabilities','proxySettings','set','sUuqa','proxyUrl','../../../bin/utils/constants','17106bvanXI','getGlobal','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','/session'];a33_0x18d1=function(){return _0x5f4edf;};return a33_0x18d1();}
@@ -1 +1 @@
1
- function a34_0x4289(_0x238756,_0x4a1b8e){const _0x210d20=a34_0x210d();return a34_0x4289=function(_0x428959,_0x35c25c){_0x428959=_0x428959-0x91;let _0x103c2b=_0x210d20[_0x428959];return _0x103c2b;},a34_0x4289(_0x238756,_0x4a1b8e);}const a34_0xb18166=a34_0x4289;(function(_0x3d9bb9,_0x44ecb9){const _0x1a54b5=a34_0x4289,_0x12864f=_0x3d9bb9();while(!![]){try{const _0x59b1eb=-parseInt(_0x1a54b5(0x96))/0x1+parseInt(_0x1a54b5(0x98))/0x2+parseInt(_0x1a54b5(0x99))/0x3*(parseInt(_0x1a54b5(0x9d))/0x4)+parseInt(_0x1a54b5(0x93))/0x5*(parseInt(_0x1a54b5(0x91))/0x6)+parseInt(_0x1a54b5(0x9f))/0x7*(-parseInt(_0x1a54b5(0x97))/0x8)+-parseInt(_0x1a54b5(0x92))/0x9+parseInt(_0x1a54b5(0x94))/0xa;if(_0x59b1eb===_0x44ecb9)break;else _0x12864f['push'](_0x12864f['shift']());}catch(_0x5a1647){_0x12864f['push'](_0x12864f['shift']());}}}(a34_0x210d,0x7da2e));const requestSpy=require('../../../helpers/request-spy'),constants=require(a34_0xb18166(0xa0)),{addRequestSpy}=require(a34_0xb18166(0x9e));function a34_0x210d(){const _0x3b4398=['restore','mochaHooks','timeout','3100324ATKFPH','../../../helpers/test-observability/utils','1280727LMcXbn','../../../bin/utils/constants','1195452NfmmWT','5867532plpmhZ','20obzofi','2394920qMeMxO','gsObC','826220DWFNbF','24RhiUFu','1460232OEZycU','3UYxYtk'];a34_0x210d=function(){return _0x3b4398;};return a34_0x210d();}exports[a34_0xb18166(0x9b)]={'beforeAll'(){const _0x4ec975=a34_0xb18166,_0x1f1d39={'gsObC':function(_0x7ba46e){return _0x7ba46e();}},_0x52cd2a='browserstack internal helper hook';_0x1f1d39[_0x4ec975(0x95)](addRequestSpy);},'afterAll'(){const _0x2edad5=a34_0xb18166,_0x554185='browserstack internal helper hook';this[_0x2edad5(0x9c)](0xea60),requestSpy[_0x2edad5(0x9a)]();}};
1
+ const a34_0x355af0=a34_0x1a50;(function(_0x3a9e13,_0x2b502b){const _0x1573a7=a34_0x1a50,_0x386670=_0x3a9e13();while(!![]){try{const _0x1a4675=-parseInt(_0x1573a7(0x8e))/0x1+parseInt(_0x1573a7(0x93))/0x2+-parseInt(_0x1573a7(0x98))/0x3+-parseInt(_0x1573a7(0x92))/0x4+parseInt(_0x1573a7(0x8d))/0x5*(-parseInt(_0x1573a7(0x96))/0x6)+-parseInt(_0x1573a7(0x8c))/0x7+parseInt(_0x1573a7(0x97))/0x8;if(_0x1a4675===_0x2b502b)break;else _0x386670['push'](_0x386670['shift']());}catch(_0x195b0d){_0x386670['push'](_0x386670['shift']());}}}(a34_0xa413,0x1975c));const requestSpy=require('../../../helpers/request-spy'),constants=require(a34_0x355af0(0x94)),{addRequestSpy}=require(a34_0x355af0(0x90));function a34_0x1a50(_0x5c972d,_0x1b7023){const _0xa41341=a34_0xa413();return a34_0x1a50=function(_0x1a502c,_0x59a444){_0x1a502c=_0x1a502c-0x8c;let _0x21f802=_0xa41341[_0x1a502c];return _0x21f802;},a34_0x1a50(_0x5c972d,_0x1b7023);}exports[a34_0x355af0(0x8f)]={'beforeAll'(){const _0x4d524c={'VzgYd':function(_0x56ef2e){return _0x56ef2e();}},_0x2ae85a='browserstack internal helper hook';_0x4d524c['VzgYd'](addRequestSpy);},'afterAll'(){const _0x3133bd=a34_0x355af0,_0x1a2452='browserstack internal helper hook';this[_0x3133bd(0x91)](0xea60),requestSpy[_0x3133bd(0x95)]();}};function a34_0xa413(){const _0x54c5d9=['45608cbvAfb','mochaHooks','../../../helpers/test-observability/utils','timeout','790552CieUov','234614XyPiJr','../../../bin/utils/constants','restore','16278gMuhZY','3299136BGojqv','379791cNSpyL','313040jhGaux','20QtDRhH'];a34_0xa413=function(){return _0x54c5d9;};return a34_0xa413();}
@@ -1 +1 @@
1
- const a35_0x76b65e=a35_0x55c4;(function(_0x40e39e,_0x2eb1b2){const _0x2d7d55=a35_0x55c4,_0x5e3b1b=_0x40e39e();while(!![]){try{const _0x4f8064=parseInt(_0x2d7d55(0x16d))/0x1+-parseInt(_0x2d7d55(0x1b6))/0x2+parseInt(_0x2d7d55(0x170))/0x3*(parseInt(_0x2d7d55(0x1ad))/0x4)+-parseInt(_0x2d7d55(0x169))/0x5+parseInt(_0x2d7d55(0x181))/0x6*(-parseInt(_0x2d7d55(0x1c1))/0x7)+parseInt(_0x2d7d55(0x1a2))/0x8*(parseInt(_0x2d7d55(0x1bd))/0x9)+parseInt(_0x2d7d55(0x195))/0xa*(-parseInt(_0x2d7d55(0x1a0))/0xb);if(_0x4f8064===_0x2eb1b2)break;else _0x5e3b1b['push'](_0x5e3b1b['shift']());}catch(_0x2b681f){_0x5e3b1b['push'](_0x5e3b1b['shift']());}}}(a35_0x5b51,0x43d8c));function a35_0x5b51(){const _0x30a7e7=['bRYGr','rDMtc','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','nFaOd','../../../../package.json','state','QTrPc','aUGDK','WnqKy','../../../helpers/testhub/utils','tKQBm','QmXLk','hook:','6KPWHZN','ixPAE','js-','getPlatform','__cloud_provider___','generic','parent','hook','PHxNW','getCapabilities','passed','get','indexOf','lPkfo','suites','unknown_grid','jNfBd','pid','bs:addPlatformDetails:','zZYAy','1840790qnQnvp','../../utils/logPatcher','mapTestHooks','platformVersion','getHookSkippedTests','getBrowserName','oXVTF','getBrowserVersion','reduce','Kjffm','emit','22oqGkmj','tests','384616FgIYRj','QkLXq','jlNNN','failed','EDnpK','LLIDk','hookAnalyticsId','QnebQ','pending','YZkDE','YXTUx','156BOoMlf','bDsfH','fromEntries','_beforeEach','markedStatus','split','_afterEach','SRsJO','jPBGP','97000pMHmkt','TEST_PLATFORM','map_','forEach','uuid','IVkCX','toJSON','72muLgxm','CnHQD','../../../helpers/test-observability/constants','getHookDetails','679805nRZBYr','slice','../../../helpers/test-observability/utils','_afterAll','PwXxe','getHooksForTest','2319800seFroo','_beforeAll','GMUTk','BdpEL','478326XmIqsA','push','filter','30207DaLfuW','substring','type','zhGuk'];a35_0x5b51=function(){return _0x30a7e7;};return a35_0x5b51();}function a35_0x55c4(_0x22dcb9,_0x4218dd){const _0x5b5103=a35_0x5b51();return a35_0x55c4=function(_0x55c4e1,_0x22bb18){_0x55c4e1=_0x55c4e1-0x164;let _0x4efd90=_0x5b5103[_0x55c4e1];return _0x4efd90;},a35_0x55c4(_0x22dcb9,_0x4218dd);}const {v4:uuidv4}=require(a35_0x76b65e(0x1ba)),{name,version}=require(a35_0x76b65e(0x178)),logPatcher=require(a35_0x76b65e(0x196)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x76b65e(0x165)),{consoleHolder}=require(a35_0x76b65e(0x1bf)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a35_0x76b65e(0x17d)),{isFunction}=require('lodash'),{patchConsoleLogger}=require(a35_0x76b65e(0x165));patchConsoleLogger(),exports['getTestEnv']=()=>{const _0xe9941e=a35_0x76b65e,_0x4f6a10={'jlNNN':_0xe9941e(0x186),'aUGDK':function(_0x4c4137){return _0x4c4137();}};return{'ci':_0x4f6a10[_0xe9941e(0x1a4)],'key':_0x4f6a10[_0xe9941e(0x17b)](uuidv4),'version':version,'collector':_0xe9941e(0x183)+name};},exports[a35_0x76b65e(0x1c0)]=_0x3a7b59=>{const _0x585752=a35_0x76b65e,_0x382a04={};_0x382a04[_0x585752(0x189)]=function(_0x1d8cb1,_0x2dee48){return _0x1d8cb1!==_0x2dee48;},_0x382a04[_0x585752(0x1a7)]='string',_0x382a04['nFaOd']=_0x585752(0x180),_0x382a04[_0x585752(0x16b)]=function(_0x4a4e06,_0x3f91da){return _0x4a4e06!==_0x3f91da;},_0x382a04[_0x585752(0x19e)]='hook';const _0x357953=_0x382a04;if(!_0x3a7b59||_0x357953[_0x585752(0x189)](typeof _0x3a7b59,_0x357953[_0x585752(0x1a7)]))return[null,null];if(_0x357953[_0x585752(0x189)](_0x3a7b59[_0x585752(0x18d)](_0x357953[_0x585752(0x177)]),-0x1)){const _0x400b4a=_0x3a7b59[_0x585752(0x1b2)](_0x357953[_0x585752(0x177)]);return[_0x400b4a[0x0][_0x585752(0x164)](0x0,-0x1)[_0x585752(0x1b2)]('\x22')[0x1],_0x400b4a[0x1][_0x585752(0x171)](0x1)];}else{if(_0x357953[_0x585752(0x16b)](_0x3a7b59[_0x585752(0x18d)](_0x357953[_0x585752(0x19e)]),-0x1)){const _0x542a7e=_0x3a7b59[_0x585752(0x1b2)](_0x357953['Kjffm']);return[_0x542a7e[0x0]['slice'](0x0,-0x1)[_0x585752(0x1b2)]('\x22')[0x1],_0x3a7b59];}}return[null,null];},exports[a35_0x76b65e(0x168)]=_0x4bfbe5=>{const _0xa10165=a35_0x76b65e,_0x30211d={'CZGUl':function(_0x5f44ce,_0x506e39){return _0x5f44ce(_0x506e39);},'CnHQD':_0xa10165(0x16a),'YXTUx':_0xa10165(0x166),'QmXLk':'_beforeEach','pHmoJ':_0xa10165(0x1b3)};if(!_0x4bfbe5||!_0x4bfbe5[_0xa10165(0x187)])return[];const _0x7461e3=[];return[_0x30211d[_0xa10165(0x1be)],_0x30211d[_0xa10165(0x1ac)],_0x30211d[_0xa10165(0x17f)],_0x30211d['pHmoJ']][_0xa10165(0x1b9)](_0x32e8ec=>{const _0x28f39d=_0xa10165,_0x681154=_0x4bfbe5[_0x28f39d(0x187)][_0x32e8ec]||[];_0x681154['forEach'](_0x30a580=>{const _0x144d06=_0x28f39d;_0x30a580[_0x144d06(0x1a8)]&&!_0x30211d['CZGUl'](isInternalHook,_0x30a580['fn'])&&_0x7461e3[_0x144d06(0x16e)](_0x30a580[_0x144d06(0x1a8)]);});}),[..._0x7461e3,...exports[_0xa10165(0x168)](_0x4bfbe5[_0xa10165(0x187)])];},exports['mapTestHooks']=_0x1b2fb5=>{const _0x1994a3=a35_0x76b65e,_0x227311={'WnqKy':function(_0x178c0b){return _0x178c0b();},'rDMtc':function(_0x29e85f,_0x133531){return _0x29e85f===_0x133531;},'zhGuk':_0x1994a3(0x1b3),'oXVTF':_0x1994a3(0x16a),'QkLXq':_0x1994a3(0x166),'ixPAE':_0x1994a3(0x1b0)};if(!_0x1b2fb5||!_0x1b2fb5[_0x1994a3(0x187)])return;[_0x227311[_0x1994a3(0x19b)],_0x227311[_0x1994a3(0x1a3)],_0x227311[_0x1994a3(0x182)],_0x227311[_0x1994a3(0x173)]]['forEach'](_0x5da0ff=>{const _0x4b6034=_0x1994a3,_0x75f069={'okrpM':function(_0x56e758){const _0x3a4c91=a35_0x55c4;return _0x227311[_0x3a4c91(0x17c)](_0x56e758);},'YZkDE':function(_0x13b23c,_0x78b2ff){const _0x60c29d=a35_0x55c4;return _0x227311[_0x60c29d(0x175)](_0x13b23c,_0x78b2ff);},'jNfBd':_0x227311[_0x4b6034(0x173)],'BdpEL':function(_0x50c4be){const _0x35fcb6=_0x4b6034;return _0x227311[_0x35fcb6(0x17c)](_0x50c4be);}},_0x37fef2=_0x1b2fb5[_0x4b6034(0x187)][_0x5da0ff]||[];_0x37fef2[_0x4b6034(0x1b9)](_0x12b72d=>{const _0x26f2bf=_0x4b6034;if(!_0x12b72d[_0x26f2bf(0x1a8)])_0x12b72d['hookAnalyticsId']=_0x75f069['okrpM'](uuidv4);else _0x12b72d[_0x26f2bf(0x1b1)]&&_0x75f069[_0x26f2bf(0x1ab)](_0x5da0ff,_0x75f069[_0x26f2bf(0x191)])&&(_0x12b72d[_0x26f2bf(0x1a8)]=_0x75f069[_0x26f2bf(0x16c)](uuidv4),delete _0x12b72d[_0x26f2bf(0x1b1)]);});}),exports[_0x1994a3(0x197)](_0x1b2fb5[_0x1994a3(0x187)]);},exports['sendPlatformDetails']=async(_0x3e6bf6,_0x556d2e)=>{const _0x2abe8b=a35_0x76b65e,_0x4cf0e7={'bRYGr':function(_0x4cf26b){return _0x4cf26b();},'jPBGP':function(_0x3003ef,_0x3ff6e5){return _0x3003ef(_0x3ff6e5);},'tKQBm':_0x2abe8b(0x198),'PwXxe':function(_0x1be57c,_0x3bde53){return _0x1be57c===_0x3bde53;},'tEREC':'browserstack','IVkCX':_0x2abe8b(0x190),'EDnpK':_0x2abe8b(0x1b7),'zZYAy':function(_0x597032,_0xe903a3){return _0x597032(_0xe903a3);}};try{if(!_0x4cf0e7[_0x2abe8b(0x174)](shouldProcessEventForTesthub))return;const _0x340cd7=await _0x3e6bf6[_0x2abe8b(0x18a)](),_0x25d32f=await _0x3e6bf6['getSession'](),_0x186898={},_0x1d97b2=Object[_0x2abe8b(0x1af)](_0x25d32f[_0x2abe8b(0x18a)]()[_0x2abe8b(0x1b8)]),_0x1c2541={'product':_0x4cf0e7[_0x2abe8b(0x1b5)](getObservabilityLinkedProductName,_0x1d97b2),'capabilities':_0x1d97b2,'platform':_0x340cd7[_0x2abe8b(0x184)](),'platform_version':_0x340cd7['get'](_0x4cf0e7['tKQBm'])?_0x340cd7[_0x2abe8b(0x18c)](_0x4cf0e7[_0x2abe8b(0x17e)]):_0x4cf0e7[_0x2abe8b(0x1b5)](getPlatformVersion,_0x4cf0e7[_0x2abe8b(0x167)](global[_0x2abe8b(0x185)],_0x4cf0e7['tEREC'])),'browser':_0x340cd7[_0x2abe8b(0x19a)](),'browser_version':_0x340cd7[_0x2abe8b(0x19c)](),'session_id':_0x25d32f[_0x2abe8b(0x1bc)]()};global['__cloud_provider___']?_0x186898[global[_0x2abe8b(0x185)]]=_0x1c2541:_0x186898[_0x4cf0e7[_0x2abe8b(0x1bb)]]=_0x1c2541,process[_0x2abe8b(0x19f)](_0x2abe8b(0x193)+process[_0x2abe8b(0x192)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x4cf0e7[_0x2abe8b(0x1a6)],'http_response':_0x186898,'uuid':_0x556d2e});}catch(_0xc3c87d){_0x4cf0e7[_0x2abe8b(0x194)](debug,_0x2abe8b(0x176)+_0xc3c87d);}},exports[a35_0x76b65e(0x199)]=_0xf46db7=>{const _0xcd03ad=a35_0x76b65e,_0x2cecf2={};_0x2cecf2['QnebQ']=function(_0x38f088,_0x348ef5){return _0x38f088!==_0x348ef5;},_0x2cecf2[_0xcd03ad(0x18e)]=_0xcd03ad(0x188),_0x2cecf2[_0xcd03ad(0x17a)]=function(_0x481c3c,_0x464ee1){return _0x481c3c!==_0x464ee1;},_0x2cecf2[_0xcd03ad(0x1b4)]=_0xcd03ad(0x18b),_0x2cecf2[_0xcd03ad(0x1ae)]=_0xcd03ad(0x1a5);const _0x76c935=_0x2cecf2,_0x278315=_0xf46db7[_0xcd03ad(0x18f)][_0xcd03ad(0x19d)]((_0x18d7a6,_0x1afd79)=>{const _0x99b4e7=_0xcd03ad,_0x3c219c=exports[_0x99b4e7(0x199)](_0x1afd79);return _0x3c219c&&(_0x18d7a6=_0x18d7a6['concat'](_0x3c219c)),_0x18d7a6;},[]),_0x514106=_0xf46db7[_0xcd03ad(0x1a1)][_0xcd03ad(0x16f)](_0x1df849=>{const _0x56e343=_0xcd03ad,_0xad6e1d=_0x76c935[_0x56e343(0x1a9)](_0x1df849[_0x56e343(0x172)],_0x76c935['lPkfo'])&&!_0x1df849['markedStatus']&&_0x76c935['QTrPc'](_0x1df849['state'],_0x76c935[_0x56e343(0x1b4)])&&_0x76c935['QnebQ'](_0x1df849[_0x56e343(0x179)],_0x76c935[_0x56e343(0x1ae)])&&!_0x1df849[_0x56e343(0x1aa)];return _0xad6e1d;});return _0x514106['concat'](_0x278315);};
1
+ const a35_0x2a224a=a35_0x5a33;function a35_0x2206(){const _0x227875=['../../../helpers/helper','state','pgLYO','platformVersion','UrlsO','QcvxH','112ngxUUe','vcTXY','hook','../../../../package.json','indexOf','92642IlVCZT','failed','../../utils/logPatcher','XIqLa','UvfTZ','lodash','SWqlb','gwjJJ','101025kJJqJf','XioKs','johSi','hook:','getSession','1102192exWQAr','substring','__cloud_provider___','hTPcl','_beforeAll','fromEntries','type','8SUCcCk','parent','generic','uosNo','js-','sendPlatformDetails','vjdKt','nTUWF','fLOjN','toJSON','loeMP','pid','mapTestHooks','fcJOx','hFQso','bs:addPlatformDetails:','reduce','uJrDB','../../../helpers/test-observability/utils','suites','markedStatus','map_','_afterEach','_afterAll','12670OaIyEQ','pending','../../../helpers/testhub/utils','vDUOG','2761422PPhQDO','string','forEach','slice','QcNQE','getHookDetails','341332JhQyfC','split','ZjPYQ','xZukJ','tcNbw','LhMvQ','getBrowserVersion','2851677LxBdPj','_beforeEach','JiKOV','1078XGibSA','getCapabilities','getHooksForTest','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','egPaV','XdImo','tests','concat','get','GIeeK','33hyBPTs','getTestEnv','wDEYJ','getHookSkippedTests','yLnDZ','hookAnalyticsId','UXPsl'];a35_0x2206=function(){return _0x227875;};return a35_0x2206();}(function(_0x13a908,_0x563ed8){const _0x24b5a4=a35_0x5a33,_0x344b9b=_0x13a908();while(!![]){try{const _0x21c3bc=-parseInt(_0x24b5a4(0xf3))/0x1+-parseInt(_0x24b5a4(0x119))/0x2*(parseInt(_0x24b5a4(0x107))/0x3)+parseInt(_0x24b5a4(0x114))/0x4*(parseInt(_0x24b5a4(0xc5))/0x5)+parseInt(_0x24b5a4(0xed))/0x6+-parseInt(_0x24b5a4(0xca))/0x7+-parseInt(_0x24b5a4(0xd1))/0x8*(-parseInt(_0x24b5a4(0xfa))/0x9)+parseInt(_0x24b5a4(0xe9))/0xa*(parseInt(_0x24b5a4(0xfd))/0xb);if(_0x21c3bc===_0x563ed8)break;else _0x344b9b['push'](_0x344b9b['shift']());}catch(_0x4b34cd){_0x344b9b['push'](_0x344b9b['shift']());}}}(a35_0x2206,0x6ffb5));const {v4:uuidv4}=require('uuid'),{name,version}=require(a35_0x2a224a(0x117)),logPatcher=require(a35_0x2a224a(0x11b)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x2a224a(0xe3)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a35_0x2a224a(0x10e)),{shouldProcessEventForTesthub}=require(a35_0x2a224a(0xeb)),{isFunction}=require(a35_0x2a224a(0xc2)),{patchConsoleLogger}=require(a35_0x2a224a(0xe3));function a35_0x5a33(_0x1048df,_0x3c9fa1){const _0x220697=a35_0x2206();return a35_0x5a33=function(_0x5a336f,_0x2853e8){_0x5a336f=_0x5a336f-0xc1;let _0x138fe4=_0x220697[_0x5a336f];return _0x138fe4;},a35_0x5a33(_0x1048df,_0x3c9fa1);}patchConsoleLogger(),exports[a35_0x2a224a(0x108)]=()=>{const _0x549370=a35_0x2a224a,_0x579e3d={'oFJRa':_0x549370(0xd3),'UvfTZ':function(_0x464bbc){return _0x464bbc();}};return{'ci':_0x579e3d['oFJRa'],'key':_0x579e3d[_0x549370(0xc1)](uuidv4),'version':version,'collector':_0x549370(0xd5)+name};},exports[a35_0x2a224a(0xf2)]=_0x5ae9d2=>{const _0x4f87e6=a35_0x2a224a,_0x5d93fe={};_0x5d93fe[_0x4f87e6(0xd4)]=function(_0x377527,_0xc6f8ce){return _0x377527!==_0xc6f8ce;},_0x5d93fe['vjdKt']=_0x4f87e6(0xee),_0x5d93fe[_0x4f87e6(0x11c)]=_0x4f87e6(0xc8),_0x5d93fe[_0x4f87e6(0xc7)]=_0x4f87e6(0x116);const _0x18b3af=_0x5d93fe;if(!_0x5ae9d2||_0x18b3af[_0x4f87e6(0xd4)](typeof _0x5ae9d2,_0x18b3af[_0x4f87e6(0xd7)]))return[null,null];if(_0x18b3af['uosNo'](_0x5ae9d2[_0x4f87e6(0x118)](_0x18b3af[_0x4f87e6(0x11c)]),-0x1)){const _0x5dd027=_0x5ae9d2[_0x4f87e6(0xf4)](_0x18b3af[_0x4f87e6(0x11c)]);return[_0x5dd027[0x0]['slice'](0x0,-0x1)[_0x4f87e6(0xf4)]('\x22')[0x1],_0x5dd027[0x1][_0x4f87e6(0xcb)](0x1)];}else{if(_0x18b3af['uosNo'](_0x5ae9d2[_0x4f87e6(0x118)](_0x18b3af[_0x4f87e6(0xc7)]),-0x1)){const _0x5c0023=_0x5ae9d2[_0x4f87e6(0xf4)](_0x18b3af[_0x4f87e6(0xc7)]);return[_0x5c0023[0x0][_0x4f87e6(0xf0)](0x0,-0x1)[_0x4f87e6(0xf4)]('\x22')[0x1],_0x5ae9d2];}}return[null,null];},exports[a35_0x2a224a(0xff)]=_0xef17fb=>{const _0x3447f3=a35_0x2a224a,_0x13868f={'JiKOV':function(_0x1f92a8,_0x5787d7){return _0x1f92a8(_0x5787d7);},'fcJOx':_0x3447f3(0xce),'SWqlb':'_afterAll','hFQso':_0x3447f3(0xfb),'vSrQv':_0x3447f3(0xe7)};if(!_0xef17fb||!_0xef17fb[_0x3447f3(0xd2)])return[];const _0x2db725=[];return[_0x13868f[_0x3447f3(0xde)],_0x13868f[_0x3447f3(0xc3)],_0x13868f[_0x3447f3(0xdf)],_0x13868f['vSrQv']]['forEach'](_0x382cb0=>{const _0x291517=_0x3447f3,_0x1d41c7=_0xef17fb[_0x291517(0xd2)][_0x382cb0]||[];_0x1d41c7[_0x291517(0xef)](_0x2a1d2a=>{const _0x33d023=_0x291517;_0x2a1d2a[_0x33d023(0x10c)]&&!_0x13868f[_0x33d023(0xfc)](isInternalHook,_0x2a1d2a['fn'])&&_0x2db725['push'](_0x2a1d2a[_0x33d023(0x10c)]);});}),[..._0x2db725,...exports[_0x3447f3(0xff)](_0xef17fb['parent'])];},exports['mapTestHooks']=_0x478f37=>{const _0x14aa28=a35_0x2a224a,_0x5d4723={'QaXJP':function(_0x4cd7bf){return _0x4cd7bf();},'aSWBp':function(_0x5660ce,_0x2baa22){return _0x5660ce===_0x2baa22;},'pgLYO':_0x14aa28(0xe7),'tcNbw':function(_0x3214a6){return _0x3214a6();},'loeMP':_0x14aa28(0xce),'nTUWF':_0x14aa28(0xe8),'gwjJJ':_0x14aa28(0xfb)};if(!_0x478f37||!_0x478f37[_0x14aa28(0xd2)])return;[_0x5d4723[_0x14aa28(0xdb)],_0x5d4723[_0x14aa28(0xd8)],_0x5d4723[_0x14aa28(0xc4)],_0x5d4723['pgLYO']][_0x14aa28(0xef)](_0x47a33b=>{const _0x36dcca=_0x14aa28,_0x18fff3={'fLOjN':function(_0x2adde4){return _0x5d4723['QaXJP'](_0x2adde4);},'vDUOG':function(_0x10b6db,_0x57bde3){return _0x5d4723['aSWBp'](_0x10b6db,_0x57bde3);},'wDEYJ':_0x5d4723[_0x36dcca(0x110)],'QcvxH':function(_0x1519be){const _0x42ea4a=_0x36dcca;return _0x5d4723[_0x42ea4a(0xf7)](_0x1519be);}},_0x1624bb=_0x478f37[_0x36dcca(0xd2)][_0x47a33b]||[];_0x1624bb[_0x36dcca(0xef)](_0x19831a=>{const _0x402dc2=_0x36dcca;if(!_0x19831a[_0x402dc2(0x10c)])_0x19831a[_0x402dc2(0x10c)]=_0x18fff3[_0x402dc2(0xd9)](uuidv4);else _0x19831a[_0x402dc2(0xe5)]&&_0x18fff3[_0x402dc2(0xec)](_0x47a33b,_0x18fff3[_0x402dc2(0x109)])&&(_0x19831a['hookAnalyticsId']=_0x18fff3[_0x402dc2(0x113)](uuidv4),delete _0x19831a['markedStatus']);});}),exports[_0x14aa28(0xdd)](_0x478f37[_0x14aa28(0xd2)]);},exports[a35_0x2a224a(0xd6)]=async(_0x7b0945,_0x3fb0c7)=>{const _0x3047cf=a35_0x2a224a,_0x243ad2={'rYNfZ':function(_0x1c3b14){return _0x1c3b14();},'vcTXY':function(_0x1c75ef,_0x148677){return _0x1c75ef(_0x148677);},'QcNQE':_0x3047cf(0x111),'egPaV':function(_0x2a3c33,_0x109ec0){return _0x2a3c33(_0x109ec0);},'LhMvQ':function(_0x239718,_0x10e179){return _0x239718===_0x10e179;},'XdImo':'browserstack','uJrDB':'unknown_grid','xZukJ':'TEST_PLATFORM','XioKs':function(_0x1b83ba,_0x4981b1){return _0x1b83ba(_0x4981b1);}};try{if(!_0x243ad2['rYNfZ'](shouldProcessEventForTesthub))return;const _0x518df1=await _0x7b0945[_0x3047cf(0xfe)](),_0x23cc47=await _0x7b0945[_0x3047cf(0xc9)](),_0x2ddebe={},_0xd601bb=Object[_0x3047cf(0xcf)](_0x23cc47[_0x3047cf(0xfe)]()[_0x3047cf(0xe6)]),_0xde489a={'product':_0x243ad2[_0x3047cf(0x115)](getObservabilityLinkedProductName,_0xd601bb),'capabilities':_0xd601bb,'platform':_0x518df1['getPlatform'](),'platform_version':_0x518df1['get'](_0x243ad2[_0x3047cf(0xf1)])?_0x518df1[_0x3047cf(0x105)](_0x243ad2[_0x3047cf(0xf1)]):_0x243ad2[_0x3047cf(0x101)](getPlatformVersion,_0x243ad2[_0x3047cf(0xf8)](global[_0x3047cf(0xcc)],_0x243ad2[_0x3047cf(0x102)])),'browser':_0x518df1['getBrowserName'](),'browser_version':_0x518df1[_0x3047cf(0xf9)](),'session_id':_0x23cc47[_0x3047cf(0xda)]()};global[_0x3047cf(0xcc)]?_0x2ddebe[global['__cloud_provider___']]=_0xde489a:_0x2ddebe[_0x243ad2[_0x3047cf(0xe2)]]=_0xde489a,process['emit'](_0x3047cf(0xe0)+process[_0x3047cf(0xdc)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x243ad2[_0x3047cf(0xf6)],'http_response':_0x2ddebe,'uuid':_0x3fb0c7});}catch(_0xe59530){_0x243ad2[_0x3047cf(0xc6)](debug,_0x3047cf(0x100)+_0xe59530);}},exports[a35_0x2a224a(0x10a)]=_0x3beeb0=>{const _0xffd40c=a35_0x2a224a,_0x1d0d91={};_0x1d0d91[_0xffd40c(0x106)]=function(_0xdf5559,_0x1a8d4c){return _0xdf5559!==_0x1a8d4c;},_0x1d0d91['UXPsl']=_0xffd40c(0x116),_0x1d0d91[_0xffd40c(0xcd)]=function(_0x1905df,_0x2d6fc3){return _0x1905df!==_0x2d6fc3;},_0x1d0d91[_0xffd40c(0x112)]='passed',_0x1d0d91[_0xffd40c(0xf5)]=function(_0x423a57,_0xed5fc){return _0x423a57!==_0xed5fc;},_0x1d0d91[_0xffd40c(0x10b)]=_0xffd40c(0x11a);const _0x23d4dc=_0x1d0d91,_0x3692bb=_0x3beeb0[_0xffd40c(0xe4)][_0xffd40c(0xe1)]((_0x52bd8b,_0x37dcb3)=>{const _0x3cee8e=_0xffd40c,_0x33b4e3=exports['getHookSkippedTests'](_0x37dcb3);return _0x33b4e3&&(_0x52bd8b=_0x52bd8b[_0x3cee8e(0x104)](_0x33b4e3)),_0x52bd8b;},[]),_0x20dca6=_0x3beeb0[_0xffd40c(0x103)]['filter'](_0x28c0f2=>{const _0x516b2d=_0xffd40c,_0x2e25e=_0x23d4dc[_0x516b2d(0x106)](_0x28c0f2[_0x516b2d(0xd0)],_0x23d4dc[_0x516b2d(0x10d)])&&!_0x28c0f2[_0x516b2d(0xe5)]&&_0x23d4dc['hTPcl'](_0x28c0f2['state'],_0x23d4dc[_0x516b2d(0x112)])&&_0x23d4dc[_0x516b2d(0xf5)](_0x28c0f2[_0x516b2d(0x10f)],_0x23d4dc['yLnDZ'])&&!_0x28c0f2[_0x516b2d(0xea)];return _0x2e25e;});return _0x20dca6[_0xffd40c(0x104)](_0x3692bb);};
@@ -1 +1 @@
1
- const a36_0x3025ba=a36_0x2655;(function(_0x5de5d8,_0x5cdbfb){const _0x1c1439=a36_0x2655,_0x44c5a6=_0x5de5d8();while(!![]){try{const _0x2e887e=-parseInt(_0x1c1439(0x1c7))/0x1+-parseInt(_0x1c1439(0x268))/0x2*(-parseInt(_0x1c1439(0x256))/0x3)+-parseInt(_0x1c1439(0x20f))/0x4*(-parseInt(_0x1c1439(0x1e7))/0x5)+-parseInt(_0x1c1439(0x212))/0x6+-parseInt(_0x1c1439(0x1c9))/0x7+parseInt(_0x1c1439(0x1d1))/0x8+parseInt(_0x1c1439(0x246))/0x9;if(_0x2e887e===_0x5cdbfb)break;else _0x44c5a6['push'](_0x44c5a6['shift']());}catch(_0x33b48a){_0x44c5a6['push'](_0x44c5a6['shift']());}}}(a36_0xef83,0x963df));function a36_0x2655(_0x236e8f,_0x24d82d){const _0xef83bc=a36_0xef83();return a36_0x2655=function(_0x265510,_0x1b2cdc){_0x265510=_0x265510-0x1c3;let _0xc51adc=_0xef83bc[_0x265510];return _0xc51adc;},a36_0x2655(_0x236e8f,_0x24d82d);}function a36_0xef83(){const _0x21254c=['dguxQ','iFTjZ','afterTest','apxIt','ptzyc','UOzzO','epTBe','__skipSessionName','executeScript','LVxIL','command','pvFYu','ZXXby','SAnEa','426889jLofux','IxdEN','6899074iXhaWc','sessionNameSet__','currentTest','CPuDR','https:','ObservabilitySync:','cxKgg','HJboL','390664gWdJLc','VNUjH','xaiiF','warn','DeyDK','../../helpers/performance/performance-tester','neWfb','isArray','SESSION_NAME','jUNyS','state','BCfpJ','kwNkn','TQZJQ','ztedP','vlUHy','info','initQuit','\x20-\x20','testcase','rgUkr','YAIkl','33070EBtxIi','SYNC','exLjE','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Failed\x20to\x20store\x20session\x20name:\x20','driverCleanup','testAnalyticsId','bstackA11yShouldScan','ERcPf','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','setGlobal','now','../../helpers/logger','SESSION_STATUS','error','kMNBJ','../../helpers/helper','thTestRunUuid','shift','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','shouldScanTestForAccessibility','fWoed','BazgQ','eqjGi','getCurrentUrl','hCnfM','capabilities','../../helpers/percy/utils','LTmYY','vetJc','accessibilityScanStarted','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','TcjjN','index','__platformCaps','debug','rWFMp','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','LihzE','http:','676ScepSr','pnXJi','hEEeT','5222412KScSpH','__sessionFailed','../../helpers/globals','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','message','__error_messages__','./test-observability/mochaUtils','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','format','browserstackSessionName','GXBKO','OLWXR','getGlobal','Mwxzi','iSUBe','Failed:\x20','BuhvU','util','measureWrapper','percy','Passed','Phgts','AtlRf','iHgLU','titlePath','TmQao','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','YJLwC','appium:app','AYxfj','__drivers','app','ZWUuP','failed','NnxEi','iJVHx','WjVgy','../../helpers/accessibility-automation/accessibilityRetryHelper','ENV_VAR','bhDsm','ntCZy','LroQC','JnZIq','saveAccessibilityResultsWithRetry','UYRxm','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','push','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','err','Accessibility\x20scan\x20completed\x20successfully','GTPsc','11088918BVfmZI','lwSzY','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','length','then','wHOiz','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','zUzXI','utjnM','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','startMonitoring','end','FDPjh','VYhVj','beforeEach','OUJWe','27UJtnRj','session_','KqKPk','EecgX','PERFORM_SCAN','afterEach','percyCaptureMode','JJdpy','SDK_HOOK','beforeAll','kUlOo','BROWSERSTACK_TESTHUB_JWT','stringify','thJwtToken','../../helpers/testhub/constants','winstonLogger','HBJnp','passed','111014kYuxux','join','tnROk','timeout','\x20|\x20','../../helpers/performance/constants'];a36_0xef83=function(){return _0x21254c;};return a36_0xef83();}const util=require(a36_0x3025ba(0x223)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require(a36_0x3025ba(0x238)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a36_0x3025ba(0x202)),{sendPlatformDetails}=require(a36_0x3025ba(0x218)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x3025ba(0x1f7)),PerformanceTester=require(a36_0x3025ba(0x1d6)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x3025ba(0x26d)),globals=require(a36_0x3025ba(0x214)),logger=require(a36_0x3025ba(0x1f3))[a36_0x3025ba(0x265)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a36_0x3025ba(0x264));exports['mochaHooks']={'beforeAll'(){const _0x1d5f24=a36_0x3025ba,_0x25d4f2={'zUzXI':function(_0x1a60f2,_0x4e6bd0,_0x42abe7,_0x2d3296){return _0x1a60f2(_0x4e6bd0,_0x42abe7,_0x2d3296);},'dguxQ':_0x1d5f24(0x234),'vlUHy':_0x1d5f24(0x26c),'rWFMp':function(_0xc80d41,_0x4bfb36,_0x327552){return _0xc80d41(_0x4bfb36,_0x327552);},'rgUkr':_0x1d5f24(0x267),'SlQwD':function(_0x574f9f){return _0x574f9f();},'Phgts':function(_0x442497,_0x3d7ff2,_0x3e5b39){return _0x442497(_0x3d7ff2,_0x3e5b39);},'kUlOo':_0x1d5f24(0x208),'fWoed':_0x1d5f24(0x25f)};PerformanceTester[_0x1d5f24(0x250)]();const _0x431308='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x4389e6=_0x1d5f24;global[_0x4389e6(0x217)]=[],global[_0x4389e6(0x213)]=![],global[_0x4389e6(0x1ec)]=async()=>{const _0x1454d3=_0x4389e6;let _0x2e81ec=![];try{await global[_0x1454d3(0x231)][0x0][_0x1454d3(0x257)],_0x2e81ec=!![],global['__sessionFailed']?await _0x25d4f2[_0x1454d3(0x24d)](markSessionStatus,global[_0x1454d3(0x231)][0x0],_0x25d4f2[_0x1454d3(0x26e)],global[_0x1454d3(0x217)][_0x1454d3(0x269)](_0x25d4f2[_0x1454d3(0x1e0)])):await _0x25d4f2[_0x1454d3(0x20b)](markSessionStatus,global[_0x1454d3(0x231)][0x0],_0x25d4f2[_0x1454d3(0x1e5)]);}catch(_0x2fd777){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x2fd777);}global['__error_messages__']=[],global[_0x1454d3(0x213)]=![];if(_0x2e81ec)try{try{_0x25d4f2['SlQwD'](shouldProcessEventForTesthub)&&(global[_0x1454d3(0x231)][0x0]&&await _0x25d4f2['rWFMp'](sendPlatformDetails,global[_0x1454d3(0x231)][0x0],this[_0x1454d3(0x1cb)]?this[_0x1454d3(0x1cb)][_0x1454d3(0x1ed)]:null));}catch(_0x4733d6){logger[_0x1454d3(0x20a)](_0x1454d3(0x219)+_0x4733d6);}await global[_0x1454d3(0x231)][0x0][_0x1454d3(0x1e2)]();}catch(_0x5070af){logger[_0x1454d3(0x20a)](_0x1454d3(0x1ea)+_0x5070af);}};},{'platform':_0x25d4f2[_0x1d5f24(0x227)](nestedKeyValue,global[_0x1d5f24(0x209)],[_0x25d4f2[_0x1d5f24(0x260)]]),'hookType':_0x25d4f2[_0x1d5f24(0x1fc)]})();},'beforeEach'(_0xbb2bda){const _0xba82e8=a36_0x3025ba,_0x390daf={'KqKPk':function(_0x2bf0b1,_0x4b81f8){return _0x2bf0b1>_0x4b81f8;},'OLWXR':_0xba82e8(0x1e3),'AYxfj':function(_0x42cb4e,_0xb0ce72,_0x43a36e){return _0x42cb4e(_0xb0ce72,_0x43a36e);},'eqjGi':_0xba82e8(0x1ee),'BCfpJ':function(_0xaa3e25){return _0xaa3e25();},'TyYTm':'isAccessibilityPlatform','pvFYu':function(_0x4fc940,_0x18d3ce){return _0x4fc940===_0x18d3ce;},'UYRxm':_0xba82e8(0x20e),'FDPjh':_0xba82e8(0x1cd),'BazgQ':_0xba82e8(0x22c),'IyrgZ':'Automate\x20test\x20case\x20execution\x20has\x20started.','wHOiz':'browserstackTestName','iJVHx':function(_0x3b95da,_0x25d176,_0x467b00){return _0x3b95da(_0x25d176,_0x467b00);},'TQZJQ':_0xba82e8(0x208),'TmQao':_0xba82e8(0x254)};globals['setGlobal'](_0x390daf[_0xba82e8(0x24b)],this[_0xba82e8(0x1cb)][_0xba82e8(0x22a)]()[_0xba82e8(0x269)](_0x390daf[_0xba82e8(0x21d)])),PerformanceTester[_0xba82e8(0x224)](PerformanceSdkEvents[_0xba82e8(0x25e)],()=>{const _0x50664a=_0xba82e8,_0x5a93d2={'qZxUt':function(_0x19618a){const _0x5330b3=a36_0x2655;return _0x390daf[_0x5330b3(0x1dc)](_0x19618a);}},_0x148ec7='browserstack internal helper hook';new Promise(async _0x2e1607=>{const _0x4a8d00=a36_0x2655;let _0x2630fb=!![];try{_0x390daf[_0x4a8d00(0x258)](global['__drivers'][_0x4a8d00(0x249)],0x1)&&(await global[_0x4a8d00(0x1ec)](),global[_0x4a8d00(0x231)][_0x4a8d00(0x1f9)]()),_0x390daf[_0x4a8d00(0x258)](global[_0x4a8d00(0x231)][0x0]['quitCount_'],0x0)&&(_0x2630fb=![],await global[_0x4a8d00(0x1ec)]());}catch(_0x2bee1a){logger[_0x4a8d00(0x20a)](_0x4a8d00(0x1ea)+_0x2bee1a);}try{Array[_0x4a8d00(0x1d8)](global[_0x4a8d00(0x231)])&&global['__drivers'][0x0]&&(global[_0x4a8d00(0x231)][0x0][_0x4a8d00(0x21b)]=this['currentTest'][_0x4a8d00(0x22a)]()[_0x4a8d00(0x269)](_0x390daf[_0x4a8d00(0x21d)])),global['browserstackSessionName']=this[_0x4a8d00(0x1cb)][_0x4a8d00(0x22a)]()[_0x4a8d00(0x269)](_0x390daf['OLWXR']);}catch(_0x100a72){logger[_0x4a8d00(0x20a)](_0x4a8d00(0x1eb)+_0x100a72);}this[_0x4a8d00(0x1cb)]['shouldScanTestForAccessibility']=_0x390daf[_0x4a8d00(0x230)](shouldScanTestForAccessibility,this['currentTest'][_0x4a8d00(0x22a)](),!![]),globals[_0x4a8d00(0x1f1)](_0x390daf[_0x4a8d00(0x1fe)],this[_0x4a8d00(0x1cb)][_0x4a8d00(0x1fb)]),this[_0x4a8d00(0x1cb)][_0x4a8d00(0x205)]=!![];if(_0x390daf['BCfpJ'](isAccessibilityAutomationSession)&&_0x2630fb&&Array[_0x4a8d00(0x1d8)](global['__drivers'])&&_0x390daf[_0x4a8d00(0x258)](global[_0x4a8d00(0x231)][_0x4a8d00(0x249)],0x0)&&globals[_0x4a8d00(0x21e)](_0x390daf['TyYTm']))try{const _0x33f039=await global[_0x4a8d00(0x231)][0x0][_0x4a8d00(0x257)];if(_0x33f039){let _0xd4f0cb=!![];const _0x25ed22=await global[_0x4a8d00(0x231)][0x0][_0x4a8d00(0x1ff)]();let _0x9eb267;try{_0x9eb267=new URL(_0x25ed22);}catch(_0x3f6c9c){_0xd4f0cb=![];}_0xd4f0cb=_0x390daf[_0x4a8d00(0x1c4)](_0x9eb267['protocol'],_0x390daf[_0x4a8d00(0x23f)])||_0x390daf[_0x4a8d00(0x1c4)](_0x9eb267['protocol'],_0x390daf[_0x4a8d00(0x252)]),_0xd4f0cb&&(this[_0x4a8d00(0x1cb)][_0x4a8d00(0x1fb)]&&logger['info'](_0x390daf[_0x4a8d00(0x1fd)])),this[_0x4a8d00(0x1cb)][_0x4a8d00(0x205)]=this[_0x4a8d00(0x1cb)][_0x4a8d00(0x1fb)],this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x4a8d00(0x1e1)](_0x390daf['IyrgZ']);}}catch(_0x59e2cf){logger[_0x4a8d00(0x1f5)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x4a8d00(0x21a)](_0x59e2cf));}_0x390daf[_0x4a8d00(0x1dc)](_0x2e1607);})[_0x50664a(0x24a)](()=>{_0x5a93d2['qZxUt'](_0xbb2bda);});},{'platform':_0x390daf[_0xba82e8(0x236)](nestedKeyValue,global['__platformCaps'],[_0x390daf[_0xba82e8(0x1de)]]),'hookType':_0x390daf[_0xba82e8(0x22b)]})();},'afterEach'(_0x5521d0){const _0x52eadc=a36_0x3025ba,_0x2a77a6={'pumPV':function(_0xfbc635,_0x3dd957){return _0xfbc635!==_0x3dd957;},'VNUjH':_0x52eadc(0x267),'LVxIL':function(_0x21e818,_0x365161,_0x47aaaf){return _0x21e818(_0x365161,_0x47aaaf);},'HBJnp':function(_0x428adb,_0x147150){return _0x428adb+_0x147150;},'xaiiF':_0x52eadc(0x221),'wdjDz':'error','ZXXby':_0x52eadc(0x226),'XZAqM':'info','SAnEa':'\x20-\x20','CPuDR':function(_0x340f3b,_0xd99f6c){return _0x340f3b>_0xd99f6c;},'kMNBJ':function(_0x2f6b77,_0x254800){return _0x2f6b77===_0x254800;},'bwKNP':_0x52eadc(0x1e4),'OUJWe':function(_0x5fcb24,_0x16948d){return _0x5fcb24>_0x16948d;},'Mwxzi':_0x52eadc(0x22f),'LroQC':function(_0x309b4a,_0x30e310,_0x3b8351,_0x2a3971){return _0x309b4a(_0x30e310,_0x3b8351,_0x2a3971);},'apxIt':'isAccessibilityPlatform','WjVgy':_0x52eadc(0x1ee),'JnZIq':_0x52eadc(0x248),'neWfb':_0x52eadc(0x20c),'lRUGf':_0x52eadc(0x270),'EecgX':_0x52eadc(0x244),'LTmYY':'Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','JJdpy':'Accessibility\x20results\x20saved\x20successfully','ZWUuP':_0x52eadc(0x240),'HJboL':_0x52eadc(0x1f0),'iSUBe':function(_0x3e8292){return _0x3e8292();},'hEEeT':'debug','NnxEi':function(_0x25f136,_0x5cc820){return _0x25f136>_0x5cc820;},'kwNkn':function(_0x5d95e0){return _0x5d95e0();},'YJLwC':'Mocha','oXsxf':function(_0x24c22e,_0x2b2112,_0xac037d){return _0x24c22e(_0x2b2112,_0xac037d);},'ztedP':_0x52eadc(0x208),'GTPsc':_0x52eadc(0x25b)},_0x517380='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x2a77a6[_0x52eadc(0x22e)]]),global['sessionName']=this[_0x52eadc(0x1cb)][_0x52eadc(0x22a)]()[_0x52eadc(0x269)](_0x2a77a6['SAnEa']),PerformanceTester[_0x52eadc(0x224)](PerformanceSdkEvents[_0x52eadc(0x25e)],()=>{const _0x102b5c=_0x52eadc,_0x25b379={'YwDRb':function(_0x53e6f6,_0x5bbaf7){return _0x2a77a6['pumPV'](_0x53e6f6,_0x5bbaf7);},'ERcPf':_0x2a77a6[_0x102b5c(0x1d2)],'vetJc':function(_0x3d7a23,_0x33996c,_0x3a0ce3){const _0x1c90c1=_0x102b5c;return _0x2a77a6[_0x1c90c1(0x277)](_0x3d7a23,_0x33996c,_0x3a0ce3);},'DDBZn':function(_0x6ff518,_0x50973e){const _0x2f6b49=_0x102b5c;return _0x2a77a6[_0x2f6b49(0x266)](_0x6ff518,_0x50973e);},'YAIkl':_0x2a77a6[_0x102b5c(0x1d3)],'BuhvU':_0x2a77a6['wdjDz'],'DeyDK':function(_0x248c11,_0x42977a,_0x13d279){const _0x14154e=_0x102b5c;return _0x2a77a6[_0x14154e(0x277)](_0x248c11,_0x42977a,_0x13d279);},'UOzzO':_0x2a77a6[_0x102b5c(0x1c5)],'PyRhQ':_0x2a77a6['XZAqM'],'VYhVj':_0x2a77a6[_0x102b5c(0x1c6)],'CpOyC':function(_0x572009,_0x2939a9){const _0x3febe1=_0x102b5c;return _0x2a77a6[_0x3febe1(0x1cc)](_0x572009,_0x2939a9);},'utjnM':function(_0x5c3be5,_0x42df06){const _0x2a7b6a=_0x102b5c;return _0x2a77a6[_0x2a7b6a(0x1f6)](_0x5c3be5,_0x42df06);},'epTBe':_0x2a77a6['bwKNP'],'TcjjN':function(_0x33100d,_0x42e1c9){const _0x465018=_0x102b5c;return _0x2a77a6[_0x465018(0x255)](_0x33100d,_0x42e1c9);},'tnROk':_0x2a77a6[_0x102b5c(0x21f)],'iFTjZ':function(_0x4ec5ea,_0x24694e,_0x33ca52,_0x528470){const _0x340dea=_0x102b5c;return _0x2a77a6[_0x340dea(0x23c)](_0x4ec5ea,_0x24694e,_0x33ca52,_0x528470);},'UBQxr':_0x2a77a6[_0x102b5c(0x271)],'AtlRf':_0x2a77a6[_0x102b5c(0x237)],'lwSzY':_0x2a77a6[_0x102b5c(0x23d)],'VfuRt':_0x2a77a6[_0x102b5c(0x1d7)],'exLjE':_0x2a77a6['lRUGf'],'IxdEN':_0x2a77a6[_0x102b5c(0x259)],'hCnfM':_0x2a77a6[_0x102b5c(0x203)],'NDQDE':_0x2a77a6[_0x102b5c(0x25d)],'HYEvC':_0x2a77a6[_0x102b5c(0x233)],'rEdcu':_0x2a77a6[_0x102b5c(0x1d0)],'ntCZy':function(_0x2a7182){const _0x1e28a9=_0x102b5c;return _0x2a77a6[_0x1e28a9(0x220)](_0x2a7182);},'GXBKO':function(_0x44e4d4,_0x59dd64,_0x2abda9){return _0x2a77a6['LVxIL'](_0x44e4d4,_0x59dd64,_0x2abda9);},'bivXm':function(_0x5bfe06){const _0x27975f=_0x102b5c;return _0x2a77a6[_0x27975f(0x220)](_0x5bfe06);},'cxKgg':_0x2a77a6[_0x102b5c(0x211)],'Nwdai':function(_0x5603bb,_0x4ca072){const _0x2186b2=_0x102b5c;return _0x2a77a6[_0x2186b2(0x235)](_0x5603bb,_0x4ca072);},'jUNyS':function(_0x2e5213){const _0x505baa=_0x102b5c;return _0x2a77a6[_0x505baa(0x1dd)](_0x2e5213);}},_0x1bd455=async(_0x415b70,_0x2798aa)=>{const _0x152b63=_0x102b5c;await global[_0x152b63(0x231)][0x0]['executeScript'](_0x152b63(0x24f)+_0x415b70+',\x22level\x22:\x20\x22'+_0x2798aa+'\x22}}');};new Promise(async _0x3595d1=>{const _0x193813=_0x102b5c,_0x35f285={};_0x35f285['LihzE']=_0x25b379[_0x193813(0x253)];const _0x329254=_0x35f285;try{_0x25b379['CpOyC'](global[_0x193813(0x231)][_0x193813(0x249)],0x1)&&(await global[_0x193813(0x1ec)](),global[_0x193813(0x231)][_0x193813(0x1f9)](),global[_0x193813(0x217)]=[],global[_0x193813(0x213)]=![]);try{if(global[_0x193813(0x225)]&&_0x25b379[_0x193813(0x24e)](global[_0x193813(0x25c)],_0x25b379[_0x193813(0x274)])&&global[_0x193813(0x231)][0x0]){const _0x3dbdcf=_0x25b379[_0x193813(0x207)](global[_0x193813(0x201)][_0x193813(0x249)],0x0)?!!global['capabilities'][0x0][_0x193813(0x232)]||!!global[_0x193813(0x201)][0x0][_0x25b379[_0x193813(0x26a)]]:![],_0x344fae={};_0x344fae['app']=_0x3dbdcf,await _0x25b379[_0x193813(0x26f)](percyAutoCapture,global['__drivers'][0x0],_0x25b379['epTBe'],_0x344fae);}}catch(_0x4b9097){logger['debug'](_0x193813(0x242)+_0x4b9097);}!global[_0x193813(0x275)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x193813(0x1d9)],async()=>{const _0x39481d=_0x193813;await global[_0x39481d(0x231)][0x0][_0x39481d(0x276)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this['currentTest']['titlePath']()['join'](_0x329254[_0x39481d(0x20d)]))+'}}');})(),global[_0x193813(0x231)][0x0][_0x193813(0x1ca)]=!![]),await PerformanceTester[_0x193813(0x224)](PerformanceAutEvents[_0x193813(0x1f4)],async()=>{const _0x3855f6=_0x193813,_0x36d871=_0x25b379['YwDRb'](this[_0x3855f6(0x1cb)][_0x3855f6(0x1db)],_0x25b379[_0x3855f6(0x1ef)]);_0x36d871?(global['__sessionFailed']=!![],global['__error_messages__'][_0x3855f6(0x241)](this[_0x3855f6(0x1cb)][_0x3855f6(0x243)][_0x3855f6(0x216)]),await _0x25b379[_0x3855f6(0x204)](_0x1bd455,JSON[_0x3855f6(0x262)](_0x25b379['DDBZn'](_0x25b379[_0x3855f6(0x1e6)],this[_0x3855f6(0x1cb)][_0x3855f6(0x243)]['message'])),_0x25b379[_0x3855f6(0x222)])):await _0x25b379[_0x3855f6(0x1d5)](_0x1bd455,JSON[_0x3855f6(0x262)](_0x25b379[_0x3855f6(0x273)]),_0x25b379['PyRhQ']);})();}catch(_0x5d1240){logger[_0x193813(0x20a)](_0x193813(0x215)+_0x5d1240);}try{if(this[_0x193813(0x1cb)][_0x193813(0x205)]&&globals[_0x193813(0x21e)](_0x25b379['UBQxr'])&&globals['getGlobal'](_0x25b379[_0x193813(0x228)])){logger[_0x193813(0x1e1)](_0x25b379[_0x193813(0x247)]);const _0x4f1832={};_0x4f1832[_0x193813(0x1f8)]=this[_0x193813(0x1cb)][_0x193813(0x1ed)],_0x4f1832['thBuildUuid']=process[_0x193813(0x22d)][testHubConstants[_0x193813(0x239)]['BROWSERSTACK_TESTHUB_UUID']],_0x4f1832[_0x193813(0x263)]=process[_0x193813(0x22d)][testHubConstants[_0x193813(0x239)][_0x193813(0x261)]];const _0x58f445=_0x4f1832;logger['debug'](_0x193813(0x1fa)+JSON[_0x193813(0x262)](_0x58f445)),logger[_0x193813(0x20a)](_0x25b379['VfuRt']);const _0x50aeb4={};_0x50aeb4[_0x193813(0x1c3)]=_0x25b379[_0x193813(0x1e9)];const _0x54c4eb=await PerformanceTester[_0x193813(0x224)](PerformanceA11yEvents[_0x193813(0x25a)],async()=>{const _0x1f7df9=_0x193813;return await accessibilityRetryHelper['performScanWithRetry'](global[_0x1f7df9(0x231)][0x0],global[_0x1f7df9(0x21b)]);},_0x50aeb4)();_0x54c4eb?logger[_0x193813(0x20a)](_0x25b379[_0x193813(0x1c8)]):logger[_0x193813(0x1d4)](_0x25b379[_0x193813(0x200)]);const _0x4011ba=await PerformanceTester['measureWrapper'](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x18e403=_0x193813;return await accessibilityRetryHelper[_0x18e403(0x23e)](global[_0x18e403(0x231)][0x0],_0x58f445);})();_0x4011ba?logger[_0x193813(0x20a)](_0x25b379['NDQDE']):logger[_0x193813(0x1d4)](_0x25b379['HYEvC']),logger[_0x193813(0x1e1)](_0x25b379['rEdcu']);}}catch(_0x2f5605){logger['error'](_0x193813(0x206)+this[_0x193813(0x1cb)]['titlePath']()+'.\x20Error\x20:',_0x2f5605);}try{try{if(_0x25b379[_0x193813(0x23b)](shouldProcessEventForTesthub)){global[_0x193813(0x231)][0x0]&&await _0x25b379[_0x193813(0x21c)](sendPlatformDetails,global[_0x193813(0x231)][0x0],this[_0x193813(0x1cb)]?this[_0x193813(0x1cb)]['testAnalyticsId']:null);if(_0x25b379['bivXm'](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x193813(0x1e8)]);const _0x3f57c0=_0x193813(0x1ce)+Date[_0x193813(0x1f2)]();await _0x25b379[_0x193813(0x1d5)](_0x1bd455,JSON[_0x193813(0x262)](_0x3f57c0),_0x25b379[_0x193813(0x1cf)]),PerformanceTester[_0x193813(0x251)](PerformanceO11yEvents[_0x193813(0x1e8)]);}}}catch(_0x4640f6){logger[_0x193813(0x20a)](_0x193813(0x24c)+_0x4640f6),PerformanceTester[_0x193813(0x251)](PerformanceO11yEvents[_0x193813(0x1e8)],![],_0x4640f6);}_0x25b379['Nwdai'](global[_0x193813(0x231)][0x0]['quitCount_'],0x0)&&await global['driverCleanup']();}catch(_0x5324d9){logger[_0x193813(0x20a)](_0x193813(0x1ea)+_0x5324d9);}_0x25b379[_0x193813(0x1da)](_0x3595d1);})[_0x102b5c(0x24a)](()=>{const _0x22f7a0=_0x102b5c;_0x25b379[_0x22f7a0(0x1da)](_0x5521d0);});},{'platform':_0x2a77a6['oXsxf'](nestedKeyValue,global[_0x52eadc(0x209)],[_0x2a77a6[_0x52eadc(0x1df)]]),'hookType':_0x2a77a6[_0x52eadc(0x245)]})();},'afterAll'(_0x269f78){const _0x69ae92=a36_0x3025ba,_0x1f9513={'ZySpC':function(_0xc2be1a){return _0xc2be1a();},'UBODG':function(_0x39fdfc){return _0x39fdfc();},'KANPP':'Mocha','bhDsm':function(_0x410e37,_0x32ffd2,_0x483e1a){return _0x410e37(_0x32ffd2,_0x483e1a);},'iHgLU':_0x69ae92(0x208),'pnXJi':'afterAll'},_0x71a2a6='browserstack internal helper hook';this[_0x69ae92(0x26b)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x1f9513['KANPP']]),PerformanceTester[_0x69ae92(0x224)](PerformanceSdkEvents[_0x69ae92(0x25e)],()=>{const _0x2b07a5=_0x69ae92,_0x47ea36={'ptzyc':function(_0x8bc0a0){return _0x1f9513['UBODG'](_0x8bc0a0);}};new Promise(async _0x419812=>{const _0xfca358=a36_0x2655;await global[_0xfca358(0x1ec)](),_0x1f9513['ZySpC'](_0x419812);})[_0x2b07a5(0x24a)]()['finally'](()=>{const _0x1f72f6=_0x2b07a5;_0x47ea36[_0x1f72f6(0x272)](_0x269f78);});},{'platform':_0x1f9513[_0x69ae92(0x23a)](nestedKeyValue,global[_0x69ae92(0x209)],[_0x1f9513[_0x69ae92(0x229)]]),'hookType':_0x1f9513[_0x69ae92(0x210)]})();}};
1
+ const a36_0x3528cf=a36_0x234a;function a36_0x234a(_0x198042,_0x1bfbf1){const _0x51572b=a36_0x5157();return a36_0x234a=function(_0x234a01,_0x3e9e63){_0x234a01=_0x234a01-0x192;let _0x55e87e=_0x51572b[_0x234a01];return _0x55e87e;},a36_0x234a(_0x198042,_0x1bfbf1);}(function(_0x4d705b,_0x39ac5a){const _0x17377e=a36_0x234a,_0x36c164=_0x4d705b();while(!![]){try{const _0x49c0b9=-parseInt(_0x17377e(0x249))/0x1+-parseInt(_0x17377e(0x1f1))/0x2*(parseInt(_0x17377e(0x1c9))/0x3)+parseInt(_0x17377e(0x1e5))/0x4*(-parseInt(_0x17377e(0x1b0))/0x5)+parseInt(_0x17377e(0x1f7))/0x6*(parseInt(_0x17377e(0x23a))/0x7)+parseInt(_0x17377e(0x1bb))/0x8*(parseInt(_0x17377e(0x219))/0x9)+-parseInt(_0x17377e(0x20e))/0xa*(-parseInt(_0x17377e(0x23d))/0xb)+parseInt(_0x17377e(0x202))/0xc;if(_0x49c0b9===_0x39ac5a)break;else _0x36c164['push'](_0x36c164['shift']());}catch(_0x172753){_0x36c164['push'](_0x36c164['shift']());}}}(a36_0x5157,0xa9ce5));function a36_0x5157(){const _0x1ecb34=['Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','wGWDE','uypwg','4NoyhAR','start','Accessibility\x20scan\x20completed\x20successfully','NibPh','protocol','join','initQuit','afterEach','pIIsP','IrQHU','push','capabilities','2TuXHFj','shift','saveAccessibilityResultsWithRetry','oTzjr','umhaR','qXCpj','6noUJJj','Accessibility\x20results\x20saved\x20successfully','nynYP','then','beforeEach','debug','GVGlh','BTUyJ','percy','DeLAW','../../helpers/logger','4218996XWvfDn','sessionNameSet__','env','CzHMP','thBuildUuid','bstackA11yShouldScan','xHOAf','\x20-\x20','fpQNM','YAOAD','SDK_HOOK','xBgyP','7402710ZfCmiR','JMVTB','RKmen','zyriu','eMPuz','gCYkF','RDsbR','nSRsa','now','SnObV','xqXMZ','6104115uoRxLi','XoMuG','txddh','http:','nHykU','yuPaM','passed','tPbVM','rowtH','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','../../helpers/accessibility-automation/accessibilityRetryHelper','cXrhx','GEXAP','__error_messages__','session_','browserstackSessionName','thTestRunUuid','rKWpk','AzGfo','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','HYdqc','finally','VeFeF','puxOe','message','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','../../helpers/performance/performance-tester','ENV_VAR','index','\x20|\x20','titlePath','7609133yFDvdI','failed','SESSION_NAME','11gYkyBM','BROWSERSTACK_TESTHUB_UUID','../utils/constants','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','afterAll','beforeAll','./test-observability/mochaUtils','currentTest','kNmJA','state','util','87499aDNjQY','bxMFq','../../helpers/accessibility-automation/helper','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','https:','MakUq','testcase','quitCount_','ZnjSB','vDfFu','afterTest','../../helpers/performance/constants','nhFzl','lFxmV','PERFORM_SCAN','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','BROWSERSTACK_TESTHUB_JWT','LNjcv','KBjSj','executeScript','__platformCaps','length','KQXJW','uKAyq','isAccessibilityPlatform','error','ZnUPM','Automate\x20test\x20case\x20execution\x20has\x20started.','FHmrV','measureWrapper','SYNC','AUReD','__sessionFailed','Failed\x20to\x20store\x20session\x20name:\x20','4351145yZcjIg','performScanWithRetry','qdyll','winstonLogger','Passed','stringify','XDFAz','ZRwDB','QxzJU','getGlobal','LOicp','8kduxLZ','LQmJD','axZGH','err','testAnalyticsId','info','bifdT','percyCaptureMode','driverCleanup','LyDAq','GrGBE','SAVE_RESULTS','dMoqf','setGlobal','3611565GVDcZd','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','../../helpers/testhub/constants','command','warn','.\x20Error\x20:','NWQTV','timeout','ZpjCr','app','../../helpers/testhub/utils','npBKL','lgLux','appium:app','shouldScanTestForAccessibility','../../helpers/percy/utils','\x22}}','Mocha','getCurrentUrl','uHufx','end','fcRmR','__drivers','mochaHooks','__skipSessionName'];a36_0x5157=function(){return _0x1ecb34;};return a36_0x5157();}const util=require(a36_0x3528cf(0x248)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x3528cf(0x24b)),accessibilityRetryHelper=require(a36_0x3528cf(0x223)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x3528cf(0x23f)),{percyAutoCapture}=require(a36_0x3528cf(0x1d8)),{sendPlatformDetails}=require(a36_0x3528cf(0x244)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x3528cf(0x235)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x3528cf(0x199)),globals=require('../../helpers/globals'),logger=require(a36_0x3528cf(0x201))[a36_0x3528cf(0x1b3)],{shouldProcessEventForTesthub}=require(a36_0x3528cf(0x1d3)),testHubConstants=require(a36_0x3528cf(0x1cb));exports[a36_0x3528cf(0x1e0)]={'beforeAll'(){const _0x32e17b=a36_0x3528cf,_0x30003e={'ZRwDB':function(_0xd730ee,_0x252d72,_0x454ade,_0x212f80){return _0xd730ee(_0x252d72,_0x454ade,_0x212f80);},'rKWpk':_0x32e17b(0x23b),'LNjcv':_0x32e17b(0x238),'wGWDE':function(_0x443009,_0x5b02eb,_0x571fc2){return _0x443009(_0x5b02eb,_0x571fc2);},'FWtLq':_0x32e17b(0x21f),'ZnUPM':function(_0x5628c6){return _0x5628c6();},'GVGlh':function(_0x1c81a1,_0x230335,_0x13125e){return _0x1c81a1(_0x230335,_0x13125e);},'oTzjr':_0x32e17b(0x237),'JMVTB':_0x32e17b(0x243)};PerformanceTester['startMonitoring']();const _0x4f28fc='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x3e182e=_0x32e17b;global[_0x3e182e(0x226)]=[],global[_0x3e182e(0x1ae)]=![],global[_0x3e182e(0x1c3)]=async()=>{const _0x2282b0=_0x3e182e;let _0x3aa0ed=![];try{await global[_0x2282b0(0x1df)][0x0][_0x2282b0(0x227)],_0x3aa0ed=!![],global[_0x2282b0(0x1ae)]?await _0x30003e[_0x2282b0(0x1b7)](markSessionStatus,global[_0x2282b0(0x1df)][0x0],_0x30003e[_0x2282b0(0x22a)],global[_0x2282b0(0x226)][_0x2282b0(0x1ea)](_0x30003e[_0x2282b0(0x19f)])):await _0x30003e['wGWDE'](markSessionStatus,global[_0x2282b0(0x1df)][0x0],_0x30003e['FWtLq']);}catch(_0x4fdd8f){logger[_0x2282b0(0x1fc)](_0x2282b0(0x233)+_0x4fdd8f);}global[_0x2282b0(0x226)]=[],global['__sessionFailed']=![];if(_0x3aa0ed)try{try{_0x30003e[_0x2282b0(0x1a8)](shouldProcessEventForTesthub)&&(global[_0x2282b0(0x1df)][0x0]&&await _0x30003e[_0x2282b0(0x1e3)](sendPlatformDetails,global[_0x2282b0(0x1df)][0x0],this[_0x2282b0(0x245)]?this[_0x2282b0(0x245)]['testAnalyticsId']:null));}catch(_0x15eaba){logger['debug']('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x15eaba);}await global[_0x2282b0(0x1df)][0x0][_0x2282b0(0x1eb)]();}catch(_0x425432){logger['debug'](_0x2282b0(0x22c)+_0x425432);}};},{'platform':_0x30003e[_0x32e17b(0x1fd)](nestedKeyValue,global[_0x32e17b(0x1a2)],[_0x30003e[_0x32e17b(0x1f4)]]),'hookType':_0x30003e[_0x32e17b(0x20f)]})();},'beforeEach'(_0x53ebd5){const _0x1b6c74=a36_0x3528cf,_0x3320d1={'RKmen':function(_0x4dd740,_0x17d957){return _0x4dd740>_0x17d957;},'NHCEs':function(_0xdcae56,_0x441b75){return _0xdcae56>_0x441b75;},'GrGBE':'\x20-\x20','IrQHU':function(_0x943056,_0xe14b71,_0x32a69a){return _0x943056(_0xe14b71,_0x32a69a);},'ZKxWr':'bstackA11yShouldScan','kNmJA':function(_0x21d704){return _0x21d704();},'axZGH':function(_0x2b1b7a,_0x3e8184){return _0x2b1b7a>_0x3e8184;},'KBjSj':'isAccessibilityPlatform','moxho':function(_0x1bb1a4,_0x17695d){return _0x1bb1a4===_0x17695d;},'MakUq':_0x1b6c74(0x21c),'ZpjCr':function(_0x52336e,_0x2a3753){return _0x52336e===_0x2a3753;},'itmqO':_0x1b6c74(0x192),'OzJWC':_0x1b6c74(0x241),'uKAyq':_0x1b6c74(0x1a9),'gmMaI':'browserstackTestName','AzGfo':function(_0x3a1e35,_0x4afff2,_0x38d577){return _0x3a1e35(_0x4afff2,_0x38d577);},'lFxmV':_0x1b6c74(0x237),'puxOe':_0x1b6c74(0x1fb)};globals['setGlobal'](_0x3320d1['gmMaI'],this[_0x1b6c74(0x245)][_0x1b6c74(0x239)]()[_0x1b6c74(0x1ea)](_0x3320d1[_0x1b6c74(0x1c5)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x1b6c74(0x20c)],()=>{const _0x5493c7='browserstack internal helper hook';new Promise(async _0x32a75a=>{const _0x34e0d4=a36_0x234a;let _0x30e6fc=!![];try{_0x3320d1[_0x34e0d4(0x210)](global[_0x34e0d4(0x1df)][_0x34e0d4(0x1a3)],0x1)&&(await global[_0x34e0d4(0x1c3)](),global[_0x34e0d4(0x1df)][_0x34e0d4(0x1f2)]()),_0x3320d1['NHCEs'](global[_0x34e0d4(0x1df)][0x0]['quitCount_'],0x0)&&(_0x30e6fc=![],await global[_0x34e0d4(0x1c3)]());}catch(_0x1e2892){logger[_0x34e0d4(0x1fc)](_0x34e0d4(0x22c)+_0x1e2892);}try{Array['isArray'](global[_0x34e0d4(0x1df)])&&global[_0x34e0d4(0x1df)][0x0]&&(global[_0x34e0d4(0x1df)][0x0][_0x34e0d4(0x228)]=this['currentTest'][_0x34e0d4(0x239)]()['join'](_0x3320d1['GrGBE'])),global[_0x34e0d4(0x228)]=this[_0x34e0d4(0x245)][_0x34e0d4(0x239)]()['join'](_0x3320d1[_0x34e0d4(0x1c5)]);}catch(_0x235a50){logger['debug'](_0x34e0d4(0x1af)+_0x235a50);}this[_0x34e0d4(0x245)][_0x34e0d4(0x1d7)]=_0x3320d1[_0x34e0d4(0x1ee)](shouldScanTestForAccessibility,this[_0x34e0d4(0x245)][_0x34e0d4(0x239)](),!![]),globals[_0x34e0d4(0x1c8)](_0x3320d1['ZKxWr'],this[_0x34e0d4(0x245)]['shouldScanTestForAccessibility']),this[_0x34e0d4(0x245)]['accessibilityScanStarted']=!![];if(_0x3320d1['kNmJA'](isAccessibilityAutomationSession)&&_0x30e6fc&&Array['isArray'](global[_0x34e0d4(0x1df)])&&_0x3320d1[_0x34e0d4(0x1bd)](global[_0x34e0d4(0x1df)]['length'],0x0)&&globals[_0x34e0d4(0x1b9)](_0x3320d1[_0x34e0d4(0x1a0)]))try{const _0x362579=await global[_0x34e0d4(0x1df)][0x0]['session_'];if(_0x362579){let _0x197184=!![];const _0xcd6473=await global[_0x34e0d4(0x1df)][0x0][_0x34e0d4(0x1db)]();let _0x445510;try{_0x445510=new URL(_0xcd6473);}catch(_0x2c7779){_0x197184=![];}_0x197184=_0x3320d1['moxho'](_0x445510[_0x34e0d4(0x1e9)],_0x3320d1[_0x34e0d4(0x193)])||_0x3320d1[_0x34e0d4(0x1d1)](_0x445510[_0x34e0d4(0x1e9)],_0x3320d1['itmqO']),_0x197184&&(this[_0x34e0d4(0x245)][_0x34e0d4(0x1d7)]&&logger[_0x34e0d4(0x1c0)](_0x3320d1['OzJWC'])),this['currentTest']['accessibilityScanStarted']=this[_0x34e0d4(0x245)]['shouldScanTestForAccessibility'],this[_0x34e0d4(0x245)][_0x34e0d4(0x1d7)]&&logger['info'](_0x3320d1[_0x34e0d4(0x1a5)]);}}catch(_0x43c287){logger[_0x34e0d4(0x1a7)](_0x34e0d4(0x19d)+util['format'](_0x43c287));}_0x3320d1[_0x34e0d4(0x246)](_0x32a75a);})['then'](()=>{_0x3320d1['kNmJA'](_0x53ebd5);});},{'platform':_0x3320d1[_0x1b6c74(0x22b)](nestedKeyValue,global[_0x1b6c74(0x1a2)],[_0x3320d1[_0x1b6c74(0x19b)]]),'hookType':_0x3320d1[_0x1b6c74(0x231)]})();},'afterEach'(_0x1983d2){const _0x48d1ab=a36_0x3528cf,_0x4be107={'cXrhx':function(_0x2c752a){return _0x2c752a();},'dMoqf':function(_0x2cd6d7,_0x229a46){return _0x2cd6d7!==_0x229a46;},'QxzJU':'passed','YAOAD':function(_0x5e2099,_0x22de05,_0x328ebb){return _0x5e2099(_0x22de05,_0x328ebb);},'TQBGY':function(_0x15626c,_0x188f37){return _0x15626c+_0x188f37;},'eMPuz':'Failed:\x20','uHufx':_0x48d1ab(0x1a7),'OCFtq':_0x48d1ab(0x1b4),'xBgyP':_0x48d1ab(0x1c0),'FIWsp':_0x48d1ab(0x209),'HqLVs':function(_0xd9ffe0,_0x314580){return _0xd9ffe0>_0x314580;},'xJutm':function(_0x56d77b,_0x4d690a){return _0x56d77b===_0x4d690a;},'rowtH':_0x48d1ab(0x194),'VeFeF':function(_0x2a8471,_0x3e1ca0){return _0x2a8471>_0x3e1ca0;},'bifdT':_0x48d1ab(0x1d6),'nynYP':function(_0x24a1af,_0x162378,_0xdb1410,_0x5e4391){return _0x24a1af(_0x162378,_0xdb1410,_0x5e4391);},'NibPh':_0x48d1ab(0x1a6),'AUReD':_0x48d1ab(0x207),'fpQNM':_0x48d1ab(0x1ca),'XDFAz':_0x48d1ab(0x222),'RDsbR':_0x48d1ab(0x198),'shtGn':_0x48d1ab(0x1e7),'txddh':_0x48d1ab(0x1e2),'CzHMP':_0x48d1ab(0x1f8),'FHmrV':_0x48d1ab(0x22d),'RVbAs':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','ZnjSB':function(_0x303cfd,_0x56c1dc,_0x22429c){return _0x303cfd(_0x56c1dc,_0x22429c);},'yuPaM':_0x48d1ab(0x1fc),'SnObV':function(_0x20b942){return _0x20b942();},'qXCpj':_0x48d1ab(0x1da),'zyriu':function(_0xd6a2f3,_0x39c348,_0x38a6ca){return _0xd6a2f3(_0x39c348,_0x38a6ca);},'fcRmR':_0x48d1ab(0x237),'HYdqc':_0x48d1ab(0x1ec)},_0x55b77e='browserstack internal helper hook';this[_0x48d1ab(0x1d0)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4be107[_0x48d1ab(0x1f6)]]),global['sessionName']=this['currentTest'][_0x48d1ab(0x239)]()['join'](_0x4be107['FIWsp']),PerformanceTester[_0x48d1ab(0x1ab)](PerformanceSdkEvents[_0x48d1ab(0x20c)],()=>{const _0x131647=_0x48d1ab,_0x406309={'uUMKt':function(_0x128759,_0x2f8be4){const _0x1ed828=a36_0x234a;return _0x4be107[_0x1ed828(0x1c7)](_0x128759,_0x2f8be4);},'tPbVM':_0x4be107[_0x131647(0x1b8)],'qdyll':function(_0x4b2181,_0x49d7bd,_0x229e0b){const _0x258861=_0x131647;return _0x4be107[_0x258861(0x20b)](_0x4b2181,_0x49d7bd,_0x229e0b);},'ggyqT':function(_0x54cfac,_0x568802){return _0x4be107['TQBGY'](_0x54cfac,_0x568802);},'nHykU':_0x4be107[_0x131647(0x212)],'epiVM':_0x4be107[_0x131647(0x1dc)],'BTUyJ':_0x4be107['OCFtq'],'lgLux':_0x4be107[_0x131647(0x20d)],'vDfFu':_0x4be107['FIWsp'],'bkmbP':function(_0x5e51f0,_0x42c8e9){return _0x4be107['HqLVs'](_0x5e51f0,_0x42c8e9);},'gCYkF':function(_0x23a0b7,_0x2070a0){return _0x4be107['xJutm'](_0x23a0b7,_0x2070a0);},'GEXAP':_0x4be107[_0x131647(0x221)],'xjelD':function(_0x441ace,_0x2d0f92){const _0x5c6e4f=_0x131647;return _0x4be107[_0x5c6e4f(0x230)](_0x441ace,_0x2d0f92);},'KXdyc':_0x4be107[_0x131647(0x1c1)],'nhFzl':function(_0x4df2e4,_0x27956f,_0x2207d7,_0x4c79f0){const _0x59ceaa=_0x131647;return _0x4be107[_0x59ceaa(0x1f9)](_0x4df2e4,_0x27956f,_0x2207d7,_0x4c79f0);},'uypwg':_0x4be107[_0x131647(0x1e8)],'nSRsa':_0x4be107[_0x131647(0x1ad)],'GjMVO':_0x4be107[_0x131647(0x20a)],'IDWdl':_0x4be107[_0x131647(0x1b6)],'DeLAW':_0x4be107[_0x131647(0x214)],'LQmJD':_0x4be107['shtGn'],'hbokp':_0x4be107[_0x131647(0x21b)],'Xhdbw':_0x4be107[_0x131647(0x205)],'DJfgE':_0x4be107[_0x131647(0x1aa)],'bxMFq':_0x4be107['RVbAs'],'npBKL':function(_0x5c9820){const _0xa48f90=_0x131647;return _0x4be107[_0xa48f90(0x224)](_0x5c9820);},'NWQTV':function(_0x107994,_0x5c6faa,_0x45a59f){const _0x240a41=_0x131647;return _0x4be107[_0x240a41(0x196)](_0x107994,_0x5c6faa,_0x45a59f);},'IFIvV':function(_0x14aa6c){const _0x22f913=_0x131647;return _0x4be107[_0x22f913(0x224)](_0x14aa6c);},'XoMuG':function(_0x52934f,_0x3a199a,_0xa6afeb){const _0x34a7c9=_0x131647;return _0x4be107[_0x34a7c9(0x196)](_0x52934f,_0x3a199a,_0xa6afeb);},'umhaR':_0x4be107[_0x131647(0x21e)],'uvqSB':function(_0x4ca31f){const _0x39a338=_0x131647;return _0x4be107[_0x39a338(0x217)](_0x4ca31f);}},_0x502ee2=async(_0x594d32,_0x39271e)=>{const _0x47e33c=_0x131647;await global[_0x47e33c(0x1df)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x594d32+',\x22level\x22:\x20\x22'+_0x39271e+_0x47e33c(0x1d9));};new Promise(async _0x5bd16b=>{const _0x9a676c=_0x131647,_0x5751f6={};_0x5751f6['LyDAq']=_0x406309[_0x9a676c(0x197)];const _0x4c79fc=_0x5751f6;try{_0x406309['bkmbP'](global[_0x9a676c(0x1df)][_0x9a676c(0x1a3)],0x1)&&(await global[_0x9a676c(0x1c3)](),global[_0x9a676c(0x1df)]['shift'](),global[_0x9a676c(0x226)]=[],global[_0x9a676c(0x1ae)]=![]);try{if(global[_0x9a676c(0x1ff)]&&_0x406309[_0x9a676c(0x213)](global[_0x9a676c(0x1c2)],_0x406309[_0x9a676c(0x225)])&&global[_0x9a676c(0x1df)][0x0]){const _0x2169ac=_0x406309['xjelD'](global[_0x9a676c(0x1f0)]['length'],0x0)?!!global['capabilities'][0x0][_0x9a676c(0x1d2)]||!!global['capabilities'][0x0][_0x406309['KXdyc']]:![],_0x5b7af8={};_0x5b7af8['app']=_0x2169ac,await _0x406309[_0x9a676c(0x19a)](percyAutoCapture,global[_0x9a676c(0x1df)][0x0],_0x406309[_0x9a676c(0x225)],_0x5b7af8);}}catch(_0x47a681){logger[_0x9a676c(0x1fc)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x47a681);}!global[_0x9a676c(0x1e1)]&&(await PerformanceTester[_0x9a676c(0x1ab)](PerformanceAutEvents[_0x9a676c(0x23c)],async()=>{const _0x34f1c3=_0x9a676c;await global[_0x34f1c3(0x1df)][0x0][_0x34f1c3(0x1a1)](_0x34f1c3(0x234)+JSON[_0x34f1c3(0x1b5)](this[_0x34f1c3(0x245)]['titlePath']()[_0x34f1c3(0x1ea)](_0x4c79fc[_0x34f1c3(0x1c4)]))+'}}');})(),global[_0x9a676c(0x1df)][0x0][_0x9a676c(0x203)]=!![]),await PerformanceTester[_0x9a676c(0x1ab)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x1bf5f8=_0x9a676c,_0x587bd1=_0x406309['uUMKt'](this[_0x1bf5f8(0x245)][_0x1bf5f8(0x247)],_0x406309[_0x1bf5f8(0x220)]);_0x587bd1?(global[_0x1bf5f8(0x1ae)]=!![],global['__error_messages__'][_0x1bf5f8(0x1ef)](this[_0x1bf5f8(0x245)][_0x1bf5f8(0x1be)][_0x1bf5f8(0x232)]),await _0x406309[_0x1bf5f8(0x1b2)](_0x502ee2,JSON[_0x1bf5f8(0x1b5)](_0x406309['ggyqT'](_0x406309[_0x1bf5f8(0x21d)],this[_0x1bf5f8(0x245)][_0x1bf5f8(0x1be)][_0x1bf5f8(0x232)])),_0x406309['epiVM'])):await _0x406309['qdyll'](_0x502ee2,JSON[_0x1bf5f8(0x1b5)](_0x406309[_0x1bf5f8(0x1fe)]),_0x406309[_0x1bf5f8(0x1d5)]);})();}catch(_0x547c7d){logger[_0x9a676c(0x1fc)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x547c7d);}try{if(this[_0x9a676c(0x245)]['accessibilityScanStarted']&&globals[_0x9a676c(0x1b9)](_0x406309[_0x9a676c(0x1e4)])&&globals[_0x9a676c(0x1b9)](_0x406309[_0x9a676c(0x215)])){logger['info'](_0x406309['GjMVO']);const _0x5eee46={};_0x5eee46[_0x9a676c(0x229)]=this[_0x9a676c(0x245)][_0x9a676c(0x1bf)],_0x5eee46[_0x9a676c(0x206)]=process[_0x9a676c(0x204)][testHubConstants[_0x9a676c(0x236)][_0x9a676c(0x23e)]],_0x5eee46['thJwtToken']=process[_0x9a676c(0x204)][testHubConstants[_0x9a676c(0x236)][_0x9a676c(0x19e)]];const _0x5a8704=_0x5eee46;logger['debug'](_0x9a676c(0x24c)+JSON[_0x9a676c(0x1b5)](_0x5a8704)),logger[_0x9a676c(0x1fc)](_0x406309['IDWdl']);const _0x31986f={};_0x31986f[_0x9a676c(0x1cc)]=_0x406309[_0x9a676c(0x200)];const _0xe8250f=await PerformanceTester[_0x9a676c(0x1ab)](PerformanceA11yEvents[_0x9a676c(0x19c)],async()=>{const _0x4bba1e=_0x9a676c;return await accessibilityRetryHelper[_0x4bba1e(0x1b1)](global['__drivers'][0x0],global[_0x4bba1e(0x228)]);},_0x31986f)();_0xe8250f?logger['debug'](_0x406309[_0x9a676c(0x1bc)]):logger[_0x9a676c(0x1cd)](_0x406309['hbokp']);const _0x515aa3=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x9a676c(0x1c6)],async()=>{const _0x2b3d1e=_0x9a676c;return await accessibilityRetryHelper[_0x2b3d1e(0x1f3)](global[_0x2b3d1e(0x1df)][0x0],_0x5a8704);})();_0x515aa3?logger[_0x9a676c(0x1fc)](_0x406309['Xhdbw']):logger[_0x9a676c(0x1cd)](_0x406309['DJfgE']),logger[_0x9a676c(0x1c0)](_0x406309[_0x9a676c(0x24a)]);}}catch(_0x5690c6){logger[_0x9a676c(0x1a7)](_0x9a676c(0x240)+this['currentTest'][_0x9a676c(0x239)]()+_0x9a676c(0x1ce),_0x5690c6);}try{try{if(_0x406309[_0x9a676c(0x1d4)](shouldProcessEventForTesthub)){global[_0x9a676c(0x1df)][0x0]&&await _0x406309[_0x9a676c(0x1cf)](sendPlatformDetails,global['__drivers'][0x0],this[_0x9a676c(0x245)]?this[_0x9a676c(0x245)][_0x9a676c(0x1bf)]:null);if(_0x406309['IFIvV'](isBrowserstackInfra)){PerformanceTester[_0x9a676c(0x1e6)](PerformanceO11yEvents[_0x9a676c(0x1ac)]);const _0x337763='ObservabilitySync:'+Date[_0x9a676c(0x216)]();await _0x406309[_0x9a676c(0x21a)](_0x502ee2,JSON['stringify'](_0x337763),_0x406309[_0x9a676c(0x1f5)]),PerformanceTester[_0x9a676c(0x1dd)](PerformanceO11yEvents[_0x9a676c(0x1ac)]);}}}catch(_0x3365cc){logger[_0x9a676c(0x1fc)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x3365cc),PerformanceTester[_0x9a676c(0x1dd)](PerformanceO11yEvents[_0x9a676c(0x1ac)],![],_0x3365cc);}_0x406309['xjelD'](global[_0x9a676c(0x1df)][0x0][_0x9a676c(0x195)],0x0)&&await global[_0x9a676c(0x1c3)]();}catch(_0x5c32bc){logger[_0x9a676c(0x1fc)](_0x9a676c(0x22c)+_0x5c32bc);}_0x406309['uvqSB'](_0x5bd16b);})[_0x131647(0x1fa)](()=>{const _0x10cc56=_0x131647;_0x4be107[_0x10cc56(0x224)](_0x1983d2);});},{'platform':_0x4be107[_0x48d1ab(0x211)](nestedKeyValue,global[_0x48d1ab(0x1a2)],[_0x4be107[_0x48d1ab(0x1de)]]),'hookType':_0x4be107[_0x48d1ab(0x22e)]})();},'afterAll'(_0x27090f){const _0x263b77=a36_0x3528cf,_0x521325={'LOicp':function(_0x1ae56f){return _0x1ae56f();},'xHOAf':_0x263b77(0x1da),'xqXMZ':function(_0x1e2d4d,_0x3aa360,_0x1f0226){return _0x1e2d4d(_0x3aa360,_0x1f0226);},'wRCNG':_0x263b77(0x237),'KQXJW':_0x263b77(0x242)},_0x27cc99='browserstack internal helper hook';this[_0x263b77(0x1d0)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x521325[_0x263b77(0x208)]]),PerformanceTester[_0x263b77(0x1ab)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x5b0695=_0x263b77,_0x9476ef={'pIIsP':function(_0x49b846){const _0x298d34=a36_0x234a;return _0x521325[_0x298d34(0x1ba)](_0x49b846);}};new Promise(async _0x3c3046=>{const _0xc943b2=a36_0x234a;await global[_0xc943b2(0x1c3)](),_0x9476ef[_0xc943b2(0x1ed)](_0x3c3046);})['then']()[_0x5b0695(0x22f)](()=>{const _0x431441=_0x5b0695;_0x521325[_0x431441(0x1ba)](_0x27090f);});},{'platform':_0x521325[_0x263b77(0x218)](nestedKeyValue,global[_0x263b77(0x1a2)],[_0x521325['wRCNG']]),'hookType':_0x521325[_0x263b77(0x1a4)]})();}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a37_0x516c49=a37_0x5c38;function a37_0x5c38(_0x423be3,_0x332e16){const _0x1814fb=a37_0x1814();return a37_0x5c38=function(_0x5c3897,_0x520914){_0x5c3897=_0x5c3897-0x168;let _0x1b205a=_0x1814fb[_0x5c3897];return _0x1b205a;},a37_0x5c38(_0x423be3,_0x332e16);}(function(_0x2877f7,_0x43bfcb){const _0x3c60b9=a37_0x5c38,_0x19e0c4=_0x2877f7();while(!![]){try{const _0x5d1aac=-parseInt(_0x3c60b9(0x16b))/0x1*(parseInt(_0x3c60b9(0x19c))/0x2)+parseInt(_0x3c60b9(0x18d))/0x3*(-parseInt(_0x3c60b9(0x1a8))/0x4)+-parseInt(_0x3c60b9(0x16a))/0x5+-parseInt(_0x3c60b9(0x179))/0x6+-parseInt(_0x3c60b9(0x174))/0x7+-parseInt(_0x3c60b9(0x172))/0x8*(-parseInt(_0x3c60b9(0x190))/0x9)+parseInt(_0x3c60b9(0x1a9))/0xa;if(_0x5d1aac===_0x43bfcb)break;else _0x19e0c4['push'](_0x19e0c4['shift']());}catch(_0x2109cf){_0x19e0c4['push'](_0x19e0c4['shift']());}}}(a37_0x1814,0x78c48));function a37_0x1814(){const _0x42a903=['test','debug','filter','hUApW','2682490JmtEzS','76262ToXthv','cXUUA','CzYgi','map','length','nightwatch.conf.js','--env','4936VqZKoQ','test_settings','2058630fMTTJS','host','getPlatformName','config','join','1019268pUPseQ','trim','env','oqegq','path','push','existsSync','exports','YxEoe','modifyBrowserStackCaps','port','forEach','info','now','close','unlinkSync','useW3C','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','webdriver','nightwatch','552YdJjAd','writeFileSync','jtpBL','8982zVJxLF','Getting\x20your\x20nightwatch\x20configs\x20from\x20','selenium','ASzEZ','child_process','splice','vBeyw','DkYXt','inherit','findIndex','Deleting\x20','qYUYw','14HMLFzl','Tsiye','../../helpers/logger','qtFwH','modifyBrowserStackW3CCaps','child\x20process\x20exited\x20with\x20code\x20','mergeDeep','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','cwd','stringify','--config','slice','13116gMnOUx','20165340gIGviz','start_process','../../helpers/BrowserStackSetup','platforms','sqdur'];a37_0x1814=function(){return _0x42a903;};return a37_0x1814();}const fs=require('fs'),path=require(a37_0x516c49(0x17d)),{spawn}=require(a37_0x516c49(0x194)),logger=require(a37_0x516c49(0x19e))['winstonLogger'],{default:BrowserStackSetup}=require(a37_0x516c49(0x1ab)),helper=require('../../helpers/helper'),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x51e087,_0x5bf4b0)=>{const _0x5e51a5=a37_0x516c49,_0x54f2e3={'cXUUA':_0x5e51a5(0x170),'fOgcS':'nightwatch.json','wAlPK':function(_0x514ffe,_0x498305){return _0x514ffe(_0x498305);},'dEROv':_0x5e51a5(0x18a)};let _0x54fe80=null,_0x51c089={};const _0x1c9017=_0x5bf4b0[_0x5e51a5(0x199)](_0x5d01ae=>_0x5d01ae===_0x5e51a5(0x1a6));if(!helper['isUndefined'](_0x51e087[_0x5e51a5(0x177)])&&fs['existsSync'](path['join'](process[_0x5e51a5(0x1a4)](),_0x51e087[_0x5e51a5(0x177)])))_0x54fe80=path['join'](process[_0x5e51a5(0x1a4)](),_0x51e087[_0x5e51a5(0x177)]),_0x5bf4b0[_0x5e51a5(0x195)](_0x1c9017,0x2);else{if(fs[_0x5e51a5(0x17f)](path[_0x5e51a5(0x178)](process[_0x5e51a5(0x1a4)](),_0x54f2e3[_0x5e51a5(0x16c)])))_0x54fe80=path['join'](process['cwd'](),_0x54f2e3['cXUUA']);else fs[_0x5e51a5(0x17f)](path[_0x5e51a5(0x178)](process['cwd'](),_0x54f2e3['fOgcS']))&&(_0x54fe80=path[_0x5e51a5(0x178)](process[_0x5e51a5(0x1a4)](),_0x54f2e3['fOgcS']));}return _0x54fe80?(logger[_0x5e51a5(0x185)](_0x5e51a5(0x191)+_0x54fe80),_0x51c089=_0x54f2e3['wAlPK'](require,_0x54fe80)):logger['info'](_0x54f2e3['dEROv']),_0x51c089;},removeExistingEnvs=_0x5ee5ef=>{const _0x55ad8f=a37_0x516c49,_0x1b4142={};_0x1b4142[_0x55ad8f(0x16d)]=function(_0x267618,_0x7c8f56){return _0x267618>_0x7c8f56;},_0x1b4142[_0x55ad8f(0x196)]=function(_0x384cd6,_0x33d8ee){return _0x384cd6>_0x33d8ee;};const _0x3f111a=_0x1b4142;let _0x14e1bc=_0x5ee5ef['findIndex'](_0x177c4c=>_0x177c4c===_0x55ad8f(0x171));_0x3f111a['CzYgi'](_0x14e1bc,-0x1)&&_0x5ee5ef[_0x55ad8f(0x195)](_0x14e1bc,0x2),_0x14e1bc=_0x5ee5ef['findIndex'](_0x24ea59=>_0x24ea59==='-e'),_0x3f111a[_0x55ad8f(0x196)](_0x14e1bc,-0x1)&&_0x5ee5ef[_0x55ad8f(0x195)](_0x14e1bc,0x2);};function run(_0xc8a1dd,_0x4a8747,_0x4e2b23){const _0x2b9bc0=a37_0x516c49,_0x2474cc={'ZYoxS':_0x2b9bc0(0x18c),'PawiW':function(_0x5a2f24,_0x3f91e7){return _0x5a2f24+_0x3f91e7;},'qBqaD':_0x2b9bc0(0x173),'qtFwH':function(_0x48730b,_0xb2b99d,_0x2eacea){return _0x48730b(_0xb2b99d,_0x2eacea);},'hUApW':'hub.browserstack.com','DkYXt':_0x2b9bc0(0x1a3),'cSJiJ':function(_0x1772d4,_0x1d24da){return _0x1772d4===_0x1d24da;},'ASzEZ':'nightwatch-browserstack.json','kuoDs':function(_0x51d67f,_0x57a222){return _0x51d67f(_0x57a222);},'jtpBL':function(_0x12d6a2,_0x4f2b12,_0x5a4088,_0x4ef38b){return _0x12d6a2(_0x4f2b12,_0x5a4088,_0x4ef38b);},'VihSk':'nightwatch.cmd','qYUYw':_0x2b9bc0(0x1a6),'sqdur':'--env','CMuzl':_0x2b9bc0(0x198),'oqegq':_0x2b9bc0(0x187)};if(!_0x4e2b23[_0x2b9bc0(0x177)])return;const _0x26f44b=_0x2474cc[_0x2b9bc0(0x19f)](getUserNightwatchConfigs,_0xc8a1dd,_0x4a8747),_0x3c5123={};_0x3c5123[_0x2b9bc0(0x1aa)]=![];const _0x235d61={};_0x235d61[_0x2b9bc0(0x175)]=_0x2474cc[_0x2b9bc0(0x169)],_0x235d61[_0x2b9bc0(0x183)]=0x1bb;const _0x3b8bc7={};_0x3b8bc7[_0x2b9bc0(0x18b)]=_0x3c5123,_0x3b8bc7[_0x2b9bc0(0x192)]=_0x235d61;const _0x175a27=_0x3b8bc7;logger[_0x2b9bc0(0x185)](_0x2474cc[_0x2b9bc0(0x197)]);const _0x3b8b35={..._0x26f44b},_0x39393a=_0x3b8b35,_0x167972=helper[_0x2b9bc0(0x189)](_0x4e2b23[_0x2b9bc0(0x177)]),_0x35eab4=[];_0x4e2b23[_0x2b9bc0(0x177)][_0x2b9bc0(0x1ac)][_0x2b9bc0(0x184)]((_0x5f3f68,_0x5d9900)=>{const _0x6e3cdd=_0x2b9bc0;_0x167972?_0x35eab4[_0x6e3cdd(0x17e)](helper[_0x6e3cdd(0x1a0)](_0x4e2b23[_0x6e3cdd(0x177)],_0x2474cc['ZYoxS'],_0x5d9900)):_0x35eab4[_0x6e3cdd(0x17e)](helper[_0x6e3cdd(0x182)](_0x4e2b23[_0x6e3cdd(0x177)],_0x2474cc['ZYoxS'],_0x5d9900));});const _0x51d701={},_0x57686a=[];_0xc8a1dd[_0x2b9bc0(0x17b)]=_0xc8a1dd[_0x2b9bc0(0x17b)]||_0xc8a1dd['e'];const _0x39f96a=_0xc8a1dd[_0x2b9bc0(0x17b)]?_0xc8a1dd[_0x2b9bc0(0x17b)][_0x2b9bc0(0x17a)]()['split'](',')[_0x2b9bc0(0x16e)](_0xc5ac68=>_0xc5ac68['trim']())[_0x2b9bc0(0x168)](_0x4783d6=>_0x4783d6!==''):[''];_0x2474cc['cSJiJ'](_0x39f96a[_0x2b9bc0(0x16f)],0x0)&&_0x39f96a['push']('');_0x39f96a[_0x2b9bc0(0x184)](_0x76b8ee=>{const _0xd7cdc9=_0x2b9bc0,_0x42beef={'Tsiye':function(_0x3f2098,_0x14c924){return _0x2474cc['PawiW'](_0x3f2098,_0x14c924);},'YxEoe':_0x2474cc['qBqaD']};_0x35eab4[_0xd7cdc9(0x184)](_0x76c8c9=>{const _0x221975=_0xd7cdc9;let _0x50e4be=_0x42beef[_0x221975(0x19d)](helper[_0x221975(0x176)](_0x76c8c9,'_'),'_'+Date[_0x221975(0x186)]());_0x76b8ee&&(_0x50e4be+='_'+_0x76b8ee);if(_0x76b8ee&&(!_0x26f44b[_0x42beef['YxEoe']]||!_0x26f44b[_0x42beef[_0x221975(0x181)]][_0x76b8ee]))return;const _0x52f5fc={..._0x175a27};_0x52f5fc['desiredCapabilities']=_0x76c8c9;const _0x21a251=_0x52f5fc;_0x51d701[_0x50e4be]=_0x76b8ee?helper[_0x221975(0x1a2)](_0x26f44b[_0x42beef[_0x221975(0x181)]][_0x76b8ee],_0x21a251):_0x21a251,_0x57686a[_0x221975(0x17e)](_0x50e4be);});});!_0x39393a[_0x2b9bc0(0x173)]&&(_0x39393a[_0x2b9bc0(0x173)]={});_0x39393a['test_settings']={..._0x39393a[_0x2b9bc0(0x173)],..._0x51d701};const _0x5d44a5=path[_0x2b9bc0(0x178)](__dirname,_0x2474cc[_0x2b9bc0(0x193)]);fs[_0x2b9bc0(0x18e)](_0x5d44a5,JSON[_0x2b9bc0(0x1a5)](_0x39393a)),_0x2474cc['kuoDs'](removeExistingEnvs,_0x4a8747);const _0x5f49d3=_0x2474cc[_0x2b9bc0(0x18f)](spawn,/^win/[_0x2b9bc0(0x1ae)](process['platform'])?_0x2474cc['VihSk']:_0x2474cc['ZYoxS'],[_0x2474cc[_0x2b9bc0(0x19b)],_0x5d44a5,..._0x4a8747[_0x2b9bc0(0x1a7)](0x1),_0x2474cc[_0x2b9bc0(0x1ad)],_0x57686a['join'](',')],{'stdio':_0x2474cc['CMuzl']});_0x5f49d3['on'](_0x2474cc[_0x2b9bc0(0x17c)],async _0x44b823=>{const _0x3af196=_0x2b9bc0;logger[_0x3af196(0x1af)](_0x3af196(0x1a1)+_0x44b823),logger[_0x3af196(0x185)](_0x3af196(0x19a)+_0x5d44a5),fs[_0x3af196(0x188)](_0x5d44a5);});}module[a37_0x516c49(0x180)]=run;
2
+ 'use strict';const a37_0xd284fc=a37_0x50bb;(function(_0x41581c,_0x338bf0){const _0x1121d1=a37_0x50bb,_0x584b74=_0x41581c();while(!![]){try{const _0x1fe9e0=-parseInt(_0x1121d1(0x85))/0x1+parseInt(_0x1121d1(0x73))/0x2*(-parseInt(_0x1121d1(0x88))/0x3)+-parseInt(_0x1121d1(0xa1))/0x4*(parseInt(_0x1121d1(0xa7))/0x5)+-parseInt(_0x1121d1(0x9f))/0x6+parseInt(_0x1121d1(0xb9))/0x7*(parseInt(_0x1121d1(0x92))/0x8)+-parseInt(_0x1121d1(0x8a))/0x9+-parseInt(_0x1121d1(0x9a))/0xa*(-parseInt(_0x1121d1(0x71))/0xb);if(_0x1fe9e0===_0x338bf0)break;else _0x584b74['push'](_0x584b74['shift']());}catch(_0x859bd3){_0x584b74['push'](_0x584b74['shift']());}}}(a37_0x49e1,0x60326));function a37_0x49e1(){const _0x3565e0=['pzMwR','slice','config','TCOuy','modifyBrowserStackW3CCaps','isUndefined','port','platforms','VKHlo','EfThT','EEaIW','blbsT','hub.browserstack.com','forEach','5831dIKbEG','length','webdriver','51qmqXPz','debug','2855007BkjGFR','nightwatch','now','child\x20process\x20exited\x20with\x20code\x20','winstonLogger','mergeDeep','--config','hYLfy','466280HnTFhZ','filter','EArZk','map','env','Deleting\x20','info','KHcMz','90kAVDnl','push','child_process','writeFileSync','join','1722096WSquiR','VqXsF','1128ydigaC','../utils/constants','uVSyN','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','cwd','stringify','13440OvHnHB','XfJmf','NphNS','splice','Getting\x20your\x20nightwatch\x20configs\x20from\x20','nightwatch.cmd','fNkte','BTfGA','host','close','trim','exports','nightwatch.conf.js','BwNnY','start_process','../../helpers/BrowserStackSetup','split','--env','14rOWzKd','uICfb','inherit','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','2399155OUSQbC','findIndex','37342SweAnu','getPlatformName','test_settings','existsSync'];a37_0x49e1=function(){return _0x3565e0;};return a37_0x49e1();}const fs=require('fs'),path=require('path'),{spawn}=require(a37_0xd284fc(0x9c)),logger=require('../../helpers/logger')[a37_0xd284fc(0x8e)],{default:BrowserStackSetup}=require(a37_0xd284fc(0xb6)),helper=require('../../helpers/helper'),constants=require(a37_0xd284fc(0xa2)),getUserNightwatchConfigs=(_0x64b762,_0x4f327d)=>{const _0x34a05b=a37_0xd284fc,_0x169c29={'TCOuy':_0x34a05b(0xb3),'BwNnY':'nightwatch.json','ODRNm':function(_0x37e52f,_0x3d6504){return _0x37e52f(_0x3d6504);},'VqXsF':_0x34a05b(0xbc)};let _0x4052f1=null,_0x3898d8={};const _0x567eda=_0x4f327d[_0x34a05b(0x72)](_0x2f8a7d=>_0x2f8a7d===_0x34a05b(0x90));if(!helper[_0x34a05b(0x7c)](_0x64b762['config'])&&fs['existsSync'](path[_0x34a05b(0x9e)](process[_0x34a05b(0xa5)](),_0x64b762[_0x34a05b(0x79)])))_0x4052f1=path[_0x34a05b(0x9e)](process[_0x34a05b(0xa5)](),_0x64b762[_0x34a05b(0x79)]),_0x4f327d[_0x34a05b(0xaa)](_0x567eda,0x2);else{if(fs[_0x34a05b(0x76)](path['join'](process[_0x34a05b(0xa5)](),_0x169c29['TCOuy'])))_0x4052f1=path['join'](process[_0x34a05b(0xa5)](),_0x169c29[_0x34a05b(0x7a)]);else fs['existsSync'](path[_0x34a05b(0x9e)](process[_0x34a05b(0xa5)](),_0x169c29[_0x34a05b(0xb4)]))&&(_0x4052f1=path[_0x34a05b(0x9e)](process[_0x34a05b(0xa5)](),_0x169c29[_0x34a05b(0xb4)]));}return _0x4052f1?(logger[_0x34a05b(0x98)](_0x34a05b(0xab)+_0x4052f1),_0x3898d8=_0x169c29['ODRNm'](require,_0x4052f1)):logger[_0x34a05b(0x98)](_0x169c29[_0x34a05b(0xa0)]),_0x3898d8;},removeExistingEnvs=_0x1cb798=>{const _0x18f8e6=a37_0xd284fc,_0xde22cf={};_0xde22cf[_0x18f8e6(0xae)]=function(_0x34097e,_0x4faadf){return _0x34097e>_0x4faadf;},_0xde22cf['blbsT']=function(_0x1b0c92,_0x4cdd30){return _0x1b0c92>_0x4cdd30;};const _0x3fe456=_0xde22cf;let _0x12e212=_0x1cb798[_0x18f8e6(0x72)](_0x2bff4a=>_0x2bff4a===_0x18f8e6(0xb8));_0x3fe456[_0x18f8e6(0xae)](_0x12e212,-0x1)&&_0x1cb798[_0x18f8e6(0xaa)](_0x12e212,0x2),_0x12e212=_0x1cb798[_0x18f8e6(0x72)](_0x2de727=>_0x2de727==='-e'),_0x3fe456[_0x18f8e6(0x82)](_0x12e212,-0x1)&&_0x1cb798[_0x18f8e6(0xaa)](_0x12e212,0x2);};function run(_0x232776,_0x16f036,_0xa0453c){const _0x77021b=a37_0xd284fc,_0xdcad28={'hYLfy':_0x77021b(0x8b),'EfThT':function(_0x437f8a,_0x734f28){return _0x437f8a+_0x734f28;},'EArZk':_0x77021b(0x75),'uICfb':function(_0x481d69,_0x385558,_0x87385){return _0x481d69(_0x385558,_0x87385);},'JlacI':_0x77021b(0x83),'KHcMz':_0x77021b(0xa4),'NphNS':function(_0x3bdc93,_0x487a40){return _0x3bdc93===_0x487a40;},'EEaIW':'nightwatch-browserstack.json','NqafE':function(_0x5355ae,_0x37a306){return _0x5355ae(_0x37a306);},'uVSyN':function(_0x49c919,_0x22ef37,_0xd07152,_0x2d0925){return _0x49c919(_0x22ef37,_0xd07152,_0x2d0925);},'pzMwR':_0x77021b(0xac),'XEAEA':_0x77021b(0x90),'VKHlo':_0x77021b(0xb8),'fNkte':_0x77021b(0xbb),'XfJmf':_0x77021b(0xb0)};if(!_0xa0453c[_0x77021b(0x79)])return;const _0x4ce1b9=_0xdcad28[_0x77021b(0xba)](getUserNightwatchConfigs,_0x232776,_0x16f036),_0x8dd75c={};_0x8dd75c[_0x77021b(0xb5)]=![];const _0x4935db={};_0x4935db[_0x77021b(0xaf)]=_0xdcad28['JlacI'],_0x4935db[_0x77021b(0x7d)]=0x1bb;const _0x1801db={};_0x1801db[_0x77021b(0x87)]=_0x8dd75c,_0x1801db['selenium']=_0x4935db;const _0xe54995=_0x1801db;logger['info'](_0xdcad28[_0x77021b(0x99)]);const _0x3e6800={..._0x4ce1b9},_0x5a480c=_0x3e6800,_0x37d61e=helper['useW3C'](_0xa0453c['config']),_0x15b65e=[];_0xa0453c[_0x77021b(0x79)][_0x77021b(0x7e)][_0x77021b(0x84)]((_0x3baa1d,_0x26145f)=>{const _0x37c280=_0x77021b;_0x37d61e?_0x15b65e[_0x37c280(0x9b)](helper[_0x37c280(0x7b)](_0xa0453c['config'],_0xdcad28[_0x37c280(0x91)],_0x26145f)):_0x15b65e['push'](helper['modifyBrowserStackCaps'](_0xa0453c['config'],_0xdcad28[_0x37c280(0x91)],_0x26145f));});const _0x5a6617={},_0x51e6f3=[];_0x232776[_0x77021b(0x96)]=_0x232776[_0x77021b(0x96)]||_0x232776['e'];const _0x333284=_0x232776[_0x77021b(0x96)]?_0x232776[_0x77021b(0x96)][_0x77021b(0xb1)]()[_0x77021b(0xb7)](',')[_0x77021b(0x95)](_0x2552a0=>_0x2552a0[_0x77021b(0xb1)]())[_0x77021b(0x93)](_0x1b4fdb=>_0x1b4fdb!==''):[''];_0xdcad28[_0x77021b(0xa9)](_0x333284[_0x77021b(0x86)],0x0)&&_0x333284[_0x77021b(0x9b)]('');_0x333284['forEach'](_0x409fab=>{_0x15b65e['forEach'](_0x4dbae3=>{const _0x5e07b3=a37_0x50bb;let _0x2bff07=_0xdcad28[_0x5e07b3(0x80)](helper[_0x5e07b3(0x74)](_0x4dbae3,'_'),'_'+Date[_0x5e07b3(0x8c)]());_0x409fab&&(_0x2bff07+='_'+_0x409fab);if(_0x409fab&&(!_0x4ce1b9[_0xdcad28['EArZk']]||!_0x4ce1b9[_0xdcad28[_0x5e07b3(0x94)]][_0x409fab]))return;const _0x4a634b={..._0xe54995};_0x4a634b['desiredCapabilities']=_0x4dbae3;const _0x50438a=_0x4a634b;_0x5a6617[_0x2bff07]=_0x409fab?helper[_0x5e07b3(0x8f)](_0x4ce1b9[_0xdcad28[_0x5e07b3(0x94)]][_0x409fab],_0x50438a):_0x50438a,_0x51e6f3[_0x5e07b3(0x9b)](_0x2bff07);});});!_0x5a480c[_0x77021b(0x75)]&&(_0x5a480c[_0x77021b(0x75)]={});_0x5a480c[_0x77021b(0x75)]={..._0x5a480c[_0x77021b(0x75)],..._0x5a6617};const _0x1c6645=path[_0x77021b(0x9e)](__dirname,_0xdcad28[_0x77021b(0x81)]);fs[_0x77021b(0x9d)](_0x1c6645,JSON[_0x77021b(0xa6)](_0x5a480c)),_0xdcad28['NqafE'](removeExistingEnvs,_0x16f036);const _0x41f5f2=_0xdcad28[_0x77021b(0xa3)](spawn,/^win/['test'](process['platform'])?_0xdcad28[_0x77021b(0x77)]:_0xdcad28[_0x77021b(0x91)],[_0xdcad28['XEAEA'],_0x1c6645,..._0x16f036[_0x77021b(0x78)](0x1),_0xdcad28[_0x77021b(0x7f)],_0x51e6f3[_0x77021b(0x9e)](',')],{'stdio':_0xdcad28[_0x77021b(0xad)]});_0x41f5f2['on'](_0xdcad28[_0x77021b(0xa8)],async _0x4b8495=>{const _0x7bdf6e=_0x77021b;logger[_0x7bdf6e(0x89)](_0x7bdf6e(0x8d)+_0x4b8495),logger[_0x7bdf6e(0x98)](_0x7bdf6e(0x97)+_0x1c6645),fs['unlinkSync'](_0x1c6645);});}function a37_0x50bb(_0x883914,_0x1a7e63){const _0x49e134=a37_0x49e1();return a37_0x50bb=function(_0x50bb0d,_0x3fe979){_0x50bb0d=_0x50bb0d-0x71;let _0xde4895=_0x49e134[_0x50bb0d];return _0xde4895;},a37_0x50bb(_0x883914,_0x1a7e63);}module[a37_0xd284fc(0xb2)]=run;
@@ -1 +1 @@
1
- const a38_0x470414=a38_0x3e64;function a38_0x3e64(_0x144bc3,_0x41b5d9){const _0x43b239=a38_0x43b2();return a38_0x3e64=function(_0x3e64d3,_0x47546a){_0x3e64d3=_0x3e64d3-0x124;let _0x1cfd97=_0x43b239[_0x3e64d3];return _0x1cfd97;},a38_0x3e64(_0x144bc3,_0x41b5d9);}(function(_0x49a08a,_0x8d5e18){const _0x675290=a38_0x3e64,_0x3d523a=_0x49a08a();while(!![]){try{const _0x28da84=parseInt(_0x675290(0x170))/0x1*(-parseInt(_0x675290(0x13f))/0x2)+parseInt(_0x675290(0x161))/0x3+parseInt(_0x675290(0x176))/0x4*(-parseInt(_0x675290(0x199))/0x5)+-parseInt(_0x675290(0x160))/0x6+parseInt(_0x675290(0x17b))/0x7+-parseInt(_0x675290(0x140))/0x8+-parseInt(_0x675290(0x180))/0x9*(-parseInt(_0x675290(0x13a))/0xa);if(_0x28da84===_0x8d5e18)break;else _0x3d523a['push'](_0x3d523a['shift']());}catch(_0x20d18d){_0x3d523a['push'](_0x3d523a['shift']());}}}(a38_0x43b2,0x8f339));const util=require(a38_0x470414(0x156)),logger=require(a38_0x470414(0x137))[a38_0x470414(0x193)],{isAccessibilityAutomationSession}=require(a38_0x470414(0x16e)),{isUndefined,isBrowserstackInfra}=require(a38_0x470414(0x142)),scripts=require(a38_0x470414(0x126)),PerformanceTester=require(a38_0x470414(0x135)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');function a38_0x43b2(){const _0x5ac1a3=['\x20page:\x20','includeIssueType','ErVHb','415ZzoQgg','qNwBX','browserStackEvaluate','ywsud','../../helpers/accessibility-automation/scripts','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browser_version','browserName','wcagVersion','mAQkm','accessibilityPlatform','ecmBs','measureWrapper','replace','ZsmnI','gcUTE','accessibilityOptions.includeIssueType.needsReview','wsEndpoint','connectOptions','../../helpers/performance/performance-tester','__workerDetails','../../helpers/logger','url','nUxrq','20yfKOBU','gXvyx','accessibilityOptions.wcagVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','FspGM','146DjLgHm','701216ZrtzEw','PdyNb','../../helpers/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browserStackExecuteDriver','use','setAccessibilityCapabilities','parse','command','kqIdc','accessibilityOptions.scannerProcessingTimeout','format','hwxAx','tUCot','FSEGA','jdtjU','includes','PxaQr','project','scannerProcessingTimeout','anoud','uEPxP','util','workerInfo','mHuWS','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','processAccessibilityCaps','env','licOA','debug','playwright-chromium','WebDriver','2716020cToeQm','1333986XySOcQ','getAccessibilityResultsSummary','chrome','LSAJe','accessibilityOptions','mHjub','AebdT','accessibilityOptions.authToken','performScan','Playwright','chromium','executeAsyncScript','OsooK','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','3593mVaDzd','QXFna','Performing\x20scan\x20with\x20method:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','currentTest','bstackSdkArgs','51644xoaRXr','scannerVersion','uXEwL','accessibilityOptions.scannerVersion','error','279587RuPPIj','testInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','evaluate','Unkdy','8892783iaDLVO','deviceName','xMWlD','PwPWJ','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','GSALq','accessibilityOptions.includeIssueType.bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','warn','PERFORM_SCAN','executeScript','PcbvP','HYSfy','bMsQp','latest','stringify','needsReview','browserstack.accessibility','winstonLogger','NEfQy','mGlMx'];a38_0x43b2=function(){return _0x5ac1a3;};return a38_0x43b2();}exports[a38_0x470414(0x124)]=async(_0xd7d921,_0x4c2cf3,_0xc5ca2e={})=>{const _0x5a83cf=a38_0x470414,_0x1d49c1={};_0x1d49c1[_0x5a83cf(0x178)]=_0x5a83cf(0x175);const _0x185aad=_0x1d49c1;return await _0xd7d921[_0x5a83cf(0x17e)]('(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'+_0x4c2cf3[_0x5a83cf(0x12f)](/arguments/g,_0x185aad[_0x5a83cf(0x178)])+_0x5a83cf(0x143)+JSON[_0x5a83cf(0x190)](_0xc5ca2e)+')');},exports[a38_0x470414(0x144)]=async(_0x3494d7,_0x5aaf56,_0x5afc0e={})=>{const _0x3dec0f=a38_0x470414,_0x1c0b82={};_0x1c0b82[_0x3dec0f(0x151)]=function(_0x47d896,_0x5ec6a9){return _0x47d896===_0x5ec6a9;},_0x1c0b82[_0x3dec0f(0x14c)]=_0x3dec0f(0x15f),_0x1c0b82['QyREl']=_0x3dec0f(0x16a),_0x1c0b82[_0x3dec0f(0x164)]=_0x3dec0f(0x175);const _0x15d46b=_0x1c0b82;if(_0x15d46b['PxaQr'](_0x3494d7['constructor']['name'],_0x15d46b[_0x3dec0f(0x14c)]))return await _0x3494d7[_0x3dec0f(0x16c)](_0x5aaf56,_0x5afc0e);else{if(_0x15d46b[_0x3dec0f(0x151)](_0x3494d7['constructor']['name'],_0x15d46b['QyREl']))return await _0x3494d7[_0x3dec0f(0x18b)]('(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'+_0x5aaf56['replace'](/arguments/g,_0x15d46b[_0x3dec0f(0x164)])+_0x3dec0f(0x16f)+JSON[_0x3dec0f(0x190)](_0x5afc0e)+')');}},exports[a38_0x470414(0x146)]=async _0x53ff10=>{const _0x512b4b=a38_0x470414,_0x5ee034={};_0x5ee034[_0x512b4b(0x125)]=_0x512b4b(0x13c),_0x5ee034[_0x512b4b(0x12d)]=_0x512b4b(0x14a),_0x5ee034[_0x512b4b(0x171)]=_0x512b4b(0x187),_0x5ee034[_0x512b4b(0x158)]=_0x512b4b(0x132),_0x5ee034[_0x512b4b(0x194)]=_0x512b4b(0x168),_0x5ee034[_0x512b4b(0x18d)]=_0x512b4b(0x179);const _0x280d6e=_0x5ee034;_0x53ff10[_0x512b4b(0x165)]&&(_0x53ff10[_0x512b4b(0x165)][_0x512b4b(0x12a)]&&(_0x53ff10[_0x280d6e[_0x512b4b(0x125)]]=_0x53ff10['accessibilityOptions'][_0x512b4b(0x12a)]),_0x53ff10[_0x512b4b(0x165)][_0x512b4b(0x153)]&&(_0x53ff10[_0x280d6e[_0x512b4b(0x12d)]]=_0x53ff10[_0x512b4b(0x165)][_0x512b4b(0x153)]),_0x53ff10[_0x512b4b(0x165)][_0x512b4b(0x197)]&&(_0x53ff10[_0x280d6e[_0x512b4b(0x171)]]=_0x53ff10[_0x512b4b(0x165)][_0x512b4b(0x197)]['bestPractice'],_0x53ff10[_0x280d6e[_0x512b4b(0x158)]]=_0x53ff10[_0x512b4b(0x165)]['includeIssueType'][_0x512b4b(0x191)]));const _0x2c5567=JSON[_0x512b4b(0x147)](process[_0x512b4b(0x15b)][_0x512b4b(0x173)])[_0x512b4b(0x177)];_0x53ff10[_0x280d6e[_0x512b4b(0x194)]]=process[_0x512b4b(0x15b)]['BS_A11Y_JWT'],_0x53ff10[_0x280d6e[_0x512b4b(0x18d)]]=_0x2c5567,delete _0x53ff10[_0x512b4b(0x165)];},exports['getAccessibilityResults']=async _0x46115a=>{const _0x410b98=a38_0x470414,_0x11d338={};_0x11d338[_0x410b98(0x130)]='No\x20accessibility\x20results\x20were\x20found.',_0x11d338[_0x410b98(0x182)]=_0x410b98(0x188);const _0x512a19=_0x11d338;if(global[_0x410b98(0x12c)])try{const details={'url':await _0x46115a.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(_0x46115a,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x46115a,scripts.getResults);},{...details})();return res;}catch{return logger[_0x410b98(0x17a)](_0x512a19[_0x410b98(0x130)]),[];}else return logger[_0x410b98(0x189)](_0x512a19[_0x410b98(0x182)]),[];},exports[a38_0x470414(0x169)]=async(_0x40d785,_0x2800e3='')=>{const _0xd384a8=a38_0x470414;logger[_0xd384a8(0x15d)](_0xd384a8(0x172)+_0x2800e3+_0xd384a8(0x196)+_0x40d785);const _0x27f5d5={'url':await _0x40d785[_0xd384a8(0x138)](),'testhub_btcer_uuid':global[_0xd384a8(0x136)]?.['currentTest']?.['id']};if(global[_0xd384a8(0x12c)])return await PerformanceTester[_0xd384a8(0x12e)](PerformanceA11yEvents[_0xd384a8(0x18a)],async()=>{const _0x4cacbc=_0xd384a8,_0x2a3e87={};_0x2a3e87[_0x4cacbc(0x148)]=_0x2800e3;const _0x6e5b67=await exports['browserStackEvaluate'](_0x40d785,scripts[_0x4cacbc(0x169)],_0x2a3e87);return _0x6e5b67;},{'command':_0x2800e3,..._0x27f5d5})();},exports[a38_0x470414(0x162)]=async _0x44df8c=>{const _0x573ca0=a38_0x470414,_0x45a317={};_0x45a317[_0x573ca0(0x183)]='No\x20summaryResults\x20found.',_0x45a317[_0x573ca0(0x14d)]=_0x573ca0(0x185);const _0x563312=_0x45a317;if(global[_0x573ca0(0x12c)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x44df8c,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x44df8c,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x573ca0(0x15d)](_0x563312['PwPWJ']),{};}else return logger[_0x573ca0(0x189)](_0x563312[_0x573ca0(0x14d)]),{};},exports['platformValidation']=async _0x21485f=>{const _0x4c58b9=a38_0x470414,_0x4e473={'FxIWk':function(_0x3167d1,_0x5d7770){return _0x3167d1!==_0x5d7770;},'vYCiF':_0x4c58b9(0x13d),'YQUci':_0x4c58b9(0x163),'FSEGA':'playwright-chromium','ivDgB':_0x4c58b9(0x16b),'kJvbp':_0x4c58b9(0x127),'uEPxP':function(_0x257134,_0xf8912c){return _0x257134(_0xf8912c);},'qNwBX':function(_0x58b7f6){return _0x58b7f6();},'FspGM':function(_0x554db9,_0x7cd00d){return _0x554db9<_0x7cd00d;},'GSALq':_0x4c58b9(0x159),'gnjld':function(_0x3c9b30,_0x549390){return _0x3c9b30===_0x549390;},'jdtjU':'latest','SkVgG':function(_0xb3bb10,_0x4cf3ba){return _0xb3bb10>_0x4cf3ba;},'ErVHb':_0x4c58b9(0x17d)};try{if(!_0x4e473['FxIWk'](_0x21485f[_0x4c58b9(0x181)],''))return logger[_0x4c58b9(0x189)](_0x4e473['vYCiF']),![];const _0x47ebf1=_0x21485f['browser'];if(![_0x4e473['YQUci'],_0x4e473[_0x4c58b9(0x14e)],_0x4e473['ivDgB']][_0x4c58b9(0x150)](_0x47ebf1))return logger[_0x4c58b9(0x189)](_0x4e473['kJvbp']),![];const _0x34c68c=_0x4e473[_0x4c58b9(0x155)](parseInt,_0x21485f['browser_version']);!_0x4e473[_0x4c58b9(0x19a)](isBrowserstackInfra)&&(!_0x4e473[_0x4c58b9(0x13e)](_0x34c68c,0x64)&&logger[_0x4c58b9(0x189)](_0x4e473[_0x4c58b9(0x186)]));if(!(_0x4e473['gnjld'](_0x34c68c,_0x4e473[_0x4c58b9(0x14f)])||_0x4e473['SkVgG'](_0x34c68c,0x5e)))return logger[_0x4c58b9(0x189)](_0x4e473[_0x4c58b9(0x198)]),![];}catch(_0x9a1b72){logger[_0x4c58b9(0x15d)](_0x4c58b9(0x184)+util[_0x4c58b9(0x14b)](_0x9a1b72));}return!![];},exports[a38_0x470414(0x15a)]=(_0x92fd89,_0x164b2e,_0x264bd2)=>{const _0x2fc0f6=a38_0x470414,_0xdec0f5={'bMsQp':function(_0x549224){return _0x549224();},'mAQkm':_0x2fc0f6(0x192),'AebdT':function(_0x2b65d0,_0xf56a6f){return _0x2b65d0===_0xf56a6f;},'gcUTE':'chrome','Unkdy':_0x2fc0f6(0x15e),'licOA':function(_0x1318c9,_0x383432){return _0x1318c9===_0x383432;},'gXvyx':_0x2fc0f6(0x127),'mGlMx':function(_0x59dc24){return _0x59dc24();},'PdyNb':function(_0x6ccec7,_0x4b15e2){return _0x6ccec7>_0x4b15e2;},'PcbvP':_0x2fc0f6(0x159),'OsooK':_0x2fc0f6(0x18f),'DMSni':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','anoud':function(_0x488e10,_0xfd4d68){return _0x488e10(_0xfd4d68);},'mHjub':_0x2fc0f6(0x13d),'kqIdc':function(_0x3f3254,_0x27a7cd){return _0x3f3254+_0x27a7cd;},'nUxrq':function(_0x5d4e36,_0x18d80c){return _0x5d4e36(_0x18d80c);}};try{if(_0xdec0f5[_0x2fc0f6(0x18e)](isAccessibilityAutomationSession)){global[_0x2fc0f6(0x12c)]=!![];!_0x92fd89[_0xdec0f5[_0x2fc0f6(0x12b)]]&&(global[_0x2fc0f6(0x12c)]=![]);!(_0xdec0f5[_0x2fc0f6(0x167)](_0x92fd89[_0x2fc0f6(0x129)],_0xdec0f5[_0x2fc0f6(0x131)])||_0xdec0f5[_0x2fc0f6(0x167)](_0x92fd89['browserName'],_0xdec0f5['Unkdy'])||_0xdec0f5['licOA'](_0x92fd89['browser'],_0xdec0f5[_0x2fc0f6(0x131)])||_0xdec0f5[_0x2fc0f6(0x167)](_0x92fd89['browser'],_0xdec0f5[_0x2fc0f6(0x17f)]))&&(logger[_0x2fc0f6(0x189)](_0xdec0f5[_0x2fc0f6(0x13b)]),global[_0x2fc0f6(0x12c)]=![]);!_0xdec0f5[_0x2fc0f6(0x195)](isBrowserstackInfra)&&(!_0xdec0f5[_0x2fc0f6(0x141)](_0x92fd89[_0x2fc0f6(0x128)],0x64)&&logger[_0x2fc0f6(0x189)](_0xdec0f5[_0x2fc0f6(0x18c)]));!(_0xdec0f5[_0x2fc0f6(0x15c)](_0x92fd89[_0x2fc0f6(0x128)],_0xdec0f5[_0x2fc0f6(0x16d)])||_0xdec0f5['PdyNb'](_0x92fd89[_0x2fc0f6(0x128)],0x5e))&&(logger[_0x2fc0f6(0x189)](_0xdec0f5['DMSni']),global[_0x2fc0f6(0x12c)]=![]);!_0xdec0f5[_0x2fc0f6(0x154)](isUndefined,_0x92fd89[_0x2fc0f6(0x181)])&&(logger[_0x2fc0f6(0x189)](_0xdec0f5[_0x2fc0f6(0x166)]),global[_0x2fc0f6(0x12c)]=![]);if(!global[_0x2fc0f6(0x12c)]){_0x92fd89[_0xdec0f5[_0x2fc0f6(0x12b)]]=![];const _0x5b277d=_0xdec0f5[_0x2fc0f6(0x149)](_0x164b2e,_0xdec0f5[_0x2fc0f6(0x139)](encodeURIComponent,JSON['stringify'](_0x92fd89)));_0x264bd2&&(_0x264bd2[_0x2fc0f6(0x174)][_0x2fc0f6(0x17c)][_0x2fc0f6(0x152)][_0x2fc0f6(0x145)][_0x2fc0f6(0x134)][_0x2fc0f6(0x133)]=_0x5b277d,_0x264bd2[_0x2fc0f6(0x157)][_0x2fc0f6(0x152)][_0x2fc0f6(0x145)][_0x2fc0f6(0x134)][_0x2fc0f6(0x133)]=_0x5b277d);}}else global[_0x2fc0f6(0x12c)]=![];}catch(_0x4305db){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x2fc0f6(0x14b)](_0x4305db));}};
1
+ function a38_0x5336(){const _0x546c78=['soznI','213874syXvcm','env','\x20page:\x20','executeAsyncScript','Playwright','Rpftp','scannerVersion','WebDriver','use','warn','../../helpers/accessibility-automation/helper','url','accessibilityOptions.wcagVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','getAccessibilityResults','pJIUl','accessibilityOptions.scannerProcessingTimeout','bestPractice','accessibilityOptions.includeIssueType.needsReview','performScan','yXhsi','CMvmc','browserStackEvaluate','37895VXJell','pWrKj','project','connectOptions','xvjXQ','zYoHa','format','measureWrapper','accessibilityOptions.authToken','gkbpk','No\x20accessibility\x20results\x20were\x20found.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','executeScript','YXaox','browser_version','XGnmb','8376NYbOXI','ndVSr','../../helpers/logger','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','(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','accessibilityOptions.includeIssueType.bestPractice','Jreeo','XXZgw','quRqj','needsReview','deviceName','RVKSv','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','accessibilityOptions.scannerVersion','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','includes','replace','browserStackExecuteDriver','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','ItFlB','accessibilityOptions','2veZlrX','jedOo','currentTest','zksFY','PkryR','scannerProcessingTimeout','iEffG','GNyyt','workerInfo','wQdIV','hTgYb','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','1469390YmszoU','dEVCf','91CVsoEZ','SrWtf','testInfo','debug','ZYaAo','vREPs','bstackSdkArgs','../../helpers/performance/constants','44QWStRi','chrome','qjnQq','fjsCZ','IkQmx','browserName','wcagVersion','lioeE','299397UTaxMD','wsEndpoint','GVQnf','fpVtM','command','constructor','browser','VyVhd','../../helpers/helper','XFEEl','includeIssueType','stringify','fBNYP','util','processAccessibilityCaps','parse','238194gplDxa','jGUnv','getAccessibilityResultsSummary','RgJhn','836379jAJHLd','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','IylMD','name','accessibilityPlatform','playwright-chromium'];a38_0x5336=function(){return _0x546c78;};return a38_0x5336();}const a38_0x5c0a3e=a38_0x146d;(function(_0x3a46c7,_0x5c8a76){const _0x3ac2ac=a38_0x146d,_0x17fd03=_0x3a46c7();while(!![]){try{const _0x27d844=parseInt(_0x3ac2ac(0xf5))/0x1*(parseInt(_0x3ac2ac(0xbc))/0x2)+-parseInt(_0x3ac2ac(0xda))/0x3+-parseInt(_0x3ac2ac(0xd2))/0x4*(-parseInt(_0x3ac2ac(0x10d))/0x5)+-parseInt(_0x3ac2ac(0xea))/0x6+parseInt(_0x3ac2ac(0xca))/0x7*(parseInt(_0x3ac2ac(0xa6))/0x8)+parseInt(_0x3ac2ac(0xee))/0x9+-parseInt(_0x3ac2ac(0xc8))/0xa;if(_0x27d844===_0x5c8a76)break;else _0x17fd03['push'](_0x17fd03['shift']());}catch(_0x288e8b){_0x17fd03['push'](_0x17fd03['shift']());}}}(a38_0x5336,0x1ca64));function a38_0x146d(_0x4312e3,_0x3d4404){const _0x533618=a38_0x5336();return a38_0x146d=function(_0x146d7c,_0xf3f68b){_0x146d7c=_0x146d7c-0x9d;let _0x130fae=_0x533618[_0x146d7c];return _0x130fae;},a38_0x146d(_0x4312e3,_0x3d4404);}const util=require(a38_0x5c0a3e(0xe7)),logger=require(a38_0x5c0a3e(0xa8))['winstonLogger'],{isAccessibilityAutomationSession}=require(a38_0x5c0a3e(0xff)),{isUndefined,isBrowserstackInfra}=require(a38_0x5c0a3e(0xe2)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5c0a3e(0xd1));exports['browserStackEvaluate']=async(_0x3fbc00,_0x4216cf,_0x4c00e5={})=>{const _0x4b52f1=a38_0x5c0a3e,_0xf508b9={};_0xf508b9[_0x4b52f1(0xd4)]=_0x4b52f1(0xd0);const _0x4c6b=_0xf508b9;return await _0x3fbc00['evaluate'](_0x4b52f1(0xaa)+_0x4216cf[_0x4b52f1(0xb7)](/arguments/g,_0x4c6b['qjnQq'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x4c00e5)+')');},exports[a38_0x5c0a3e(0xb8)]=async(_0x2f3538,_0xcd26a1,_0x429200={})=>{const _0x5d5ac6=a38_0x5c0a3e,_0x566eea={};_0x566eea[_0x5d5ac6(0xe6)]=function(_0x562cb1,_0x452aa8){return _0x562cb1===_0x452aa8;},_0x566eea[_0x5d5ac6(0xac)]=_0x5d5ac6(0xfc),_0x566eea[_0x5d5ac6(0xc2)]=function(_0x20fb49,_0x5b6195){return _0x20fb49===_0x5b6195;},_0x566eea[_0x5d5ac6(0xbd)]=_0x5d5ac6(0xf9),_0x566eea[_0x5d5ac6(0xd5)]=_0x5d5ac6(0xd0);const _0x1fcba1=_0x566eea;if(_0x1fcba1[_0x5d5ac6(0xe6)](_0x2f3538[_0x5d5ac6(0xdf)][_0x5d5ac6(0xf1)],_0x1fcba1[_0x5d5ac6(0xac)]))return await _0x2f3538[_0x5d5ac6(0xf8)](_0xcd26a1,_0x429200);else{if(_0x1fcba1['iEffG'](_0x2f3538[_0x5d5ac6(0xdf)][_0x5d5ac6(0xf1)],_0x1fcba1[_0x5d5ac6(0xbd)]))return await _0x2f3538[_0x5d5ac6(0xa2)]('(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'+_0xcd26a1[_0x5d5ac6(0xb7)](/arguments/g,_0x1fcba1[_0x5d5ac6(0xd5)])+_0x5d5ac6(0xa9)+JSON[_0x5d5ac6(0xe5)](_0x429200)+')');}},exports['setAccessibilityCapabilities']=async _0x1ad0d8=>{const _0x5c52b1=a38_0x5c0a3e,_0x1ccf84={};_0x1ccf84[_0x5c52b1(0xdc)]=_0x5c52b1(0x101),_0x1ccf84['dEVCf']=_0x5c52b1(0x106),_0x1ccf84['XFEEl']=_0x5c52b1(0xab),_0x1ccf84[_0x5c52b1(0xad)]=_0x5c52b1(0x108),_0x1ccf84[_0x5c52b1(0xba)]=_0x5c52b1(0x9e),_0x1ccf84['yXhsi']=_0x5c52b1(0xb3);const _0x378f65=_0x1ccf84;_0x1ad0d8[_0x5c52b1(0xbb)]&&(_0x1ad0d8[_0x5c52b1(0xbb)][_0x5c52b1(0xd8)]&&(_0x1ad0d8[_0x378f65[_0x5c52b1(0xdc)]]=_0x1ad0d8[_0x5c52b1(0xbb)][_0x5c52b1(0xd8)]),_0x1ad0d8[_0x5c52b1(0xbb)]['scannerProcessingTimeout']&&(_0x1ad0d8[_0x378f65[_0x5c52b1(0xc9)]]=_0x1ad0d8[_0x5c52b1(0xbb)][_0x5c52b1(0xc1)]),_0x1ad0d8[_0x5c52b1(0xbb)][_0x5c52b1(0xe4)]&&(_0x1ad0d8[_0x378f65[_0x5c52b1(0xe3)]]=_0x1ad0d8[_0x5c52b1(0xbb)][_0x5c52b1(0xe4)][_0x5c52b1(0x107)],_0x1ad0d8[_0x378f65['XXZgw']]=_0x1ad0d8['accessibilityOptions'][_0x5c52b1(0xe4)][_0x5c52b1(0xaf)]));const _0x131d0c=JSON[_0x5c52b1(0xe9)](process[_0x5c52b1(0xf6)][_0x5c52b1(0xef)])[_0x5c52b1(0xfb)];_0x1ad0d8[_0x378f65[_0x5c52b1(0xba)]]=process[_0x5c52b1(0xf6)]['BS_A11Y_JWT'],_0x1ad0d8[_0x378f65[_0x5c52b1(0x10a)]]=_0x131d0c,delete _0x1ad0d8[_0x5c52b1(0xbb)];},exports[a38_0x5c0a3e(0x104)]=async _0x4515c2=>{const _0x49b237=a38_0x5c0a3e,_0x2bc371={};_0x2bc371[_0x49b237(0x9f)]=_0x49b237(0xa0),_0x2bc371[_0x49b237(0xcf)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x1dac0f=_0x2bc371;if(global[_0x49b237(0xf2)])try{const details={'url':await _0x4515c2.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(_0x4515c2,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4515c2,scripts.getResults);},{...details})();return res;}catch{return logger['error'](_0x1dac0f[_0x49b237(0x9f)]),[];}else return logger[_0x49b237(0xfe)](_0x1dac0f['vREPs']),[];},exports[a38_0x5c0a3e(0x109)]=async(_0x417519,_0x3cc808='')=>{const _0x347222=a38_0x5c0a3e;logger['debug']('Performing\x20scan\x20with\x20method:\x20'+_0x3cc808+_0x347222(0xf7)+_0x417519);const _0x5ef2d5={'url':await _0x417519[_0x347222(0x100)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x347222(0xbe)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x347222(0x9d)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x3b6648=_0x347222,_0x5aa7d6={};_0x5aa7d6[_0x3b6648(0xde)]=_0x3cc808;const _0x3d31b5=await exports[_0x3b6648(0x10c)](_0x417519,scripts[_0x3b6648(0x109)],_0x5aa7d6);return _0x3d31b5;},{'command':_0x3cc808,..._0x5ef2d5})();},exports[a38_0x5c0a3e(0xec)]=async _0x1953b6=>{const _0x32170d=a38_0x5c0a3e,_0x95d3c6={};_0x95d3c6[_0x32170d(0xd9)]='No\x20summaryResults\x20found.',_0x95d3c6[_0x32170d(0xce)]=_0x32170d(0xb9);const _0xccb36f=_0x95d3c6;if(global[_0x32170d(0xf2)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1953b6,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1953b6,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x32170d(0xcd)](_0xccb36f['lioeE']),{};}else return logger['warn'](_0xccb36f[_0x32170d(0xce)]),{};},exports['platformValidation']=async _0x47f60e=>{const _0x52e171=a38_0x5c0a3e,_0x28a489={'IylMD':function(_0x55d625,_0x30081a){return _0x55d625!==_0x30081a;},'pWrKj':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','IkQmx':_0x52e171(0xd3),'xvjXQ':'playwright-chromium','ndVSr':'chromium','pJIUl':_0x52e171(0xb5),'zYoHa':function(_0x203f18,_0x1e82c2){return _0x203f18(_0x1e82c2);},'hTgYb':function(_0x53fa2b){return _0x53fa2b();},'FnVcn':function(_0x13911a,_0x1f01f7){return _0x13911a<_0x1f01f7;},'SrWtf':_0x52e171(0xa1),'wQdIV':function(_0x37ee06,_0x5f4c47){return _0x37ee06===_0x5f4c47;},'soznI':'latest','VyVhd':function(_0xe40e8f,_0x32b7e2){return _0xe40e8f>_0x32b7e2;},'veopp':_0x52e171(0xc7)};try{if(!_0x28a489[_0x52e171(0xf0)](_0x47f60e[_0x52e171(0xb0)],''))return logger['warn'](_0x28a489[_0x52e171(0x10e)]),![];const _0x2da764=_0x47f60e[_0x52e171(0xe0)];if(![_0x28a489[_0x52e171(0xd6)],_0x28a489[_0x52e171(0x111)],_0x28a489[_0x52e171(0xa7)]][_0x52e171(0xb6)](_0x2da764))return logger[_0x52e171(0xfe)](_0x28a489[_0x52e171(0x105)]),![];const _0x1fec0e=_0x28a489[_0x52e171(0x112)](parseInt,_0x47f60e[_0x52e171(0xa4)]);!_0x28a489[_0x52e171(0xc6)](isBrowserstackInfra)&&(!_0x28a489['FnVcn'](_0x1fec0e,0x64)&&logger[_0x52e171(0xfe)](_0x28a489[_0x52e171(0xcb)]));if(!(_0x28a489[_0x52e171(0xc5)](_0x1fec0e,_0x28a489[_0x52e171(0xf4)])||_0x28a489[_0x52e171(0xe1)](_0x1fec0e,0x5e)))return logger[_0x52e171(0xfe)](_0x28a489['veopp']),![];}catch(_0x3faff4){logger['debug'](_0x52e171(0xb2)+util[_0x52e171(0x113)](_0x3faff4));}return!![];},exports[a38_0x5c0a3e(0xe8)]=(_0xdb75af,_0x2dc79d,_0x146c7f)=>{const _0x103b4b=a38_0x5c0a3e,_0x591073={'quRqj':function(_0x10fed5){return _0x10fed5();},'YXaox':'browserstack.accessibility','RVKSv':function(_0xc001a4,_0x4081f1){return _0xc001a4===_0x4081f1;},'zksFY':_0x103b4b(0xd3),'CMvmc':function(_0xccd21,_0x1682db){return _0xccd21===_0x1682db;},'XGnmb':_0x103b4b(0xf3),'BOmDM':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','fpVtM':function(_0x2ea142,_0x211215){return _0x2ea142>_0x211215;},'LhGyN':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','jGUnv':function(_0x4f8328,_0x50a4a5){return _0x4f8328===_0x50a4a5;},'hmUXz':_0x103b4b(0xb4),'Rpftp':function(_0x2a56d7,_0x228fa7){return _0x2a56d7>_0x228fa7;},'GNyyt':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','RgJhn':function(_0x3fc7db,_0x3a22f0){return _0x3fc7db(_0x3a22f0);},'PkryR':_0x103b4b(0x102),'goqUJ':function(_0x2aff14,_0x8406a7){return _0x2aff14+_0x8406a7;}};try{if(_0x591073[_0x103b4b(0xae)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0xdb75af[_0x591073[_0x103b4b(0xa3)]]&&(global[_0x103b4b(0xf2)]=![]);!(_0x591073[_0x103b4b(0xb1)](_0xdb75af[_0x103b4b(0xd7)],_0x591073[_0x103b4b(0xbf)])||_0x591073[_0x103b4b(0x10b)](_0xdb75af[_0x103b4b(0xd7)],_0x591073[_0x103b4b(0xa5)])||_0x591073[_0x103b4b(0x10b)](_0xdb75af['browser'],_0x591073['zksFY'])||_0x591073[_0x103b4b(0xb1)](_0xdb75af[_0x103b4b(0xe0)],_0x591073[_0x103b4b(0xa5)]))&&(logger[_0x103b4b(0xfe)](_0x591073['BOmDM']),global[_0x103b4b(0xf2)]=![]);!_0x591073[_0x103b4b(0xae)](isBrowserstackInfra)&&(!_0x591073[_0x103b4b(0xdd)](_0xdb75af[_0x103b4b(0xa4)],0x64)&&logger[_0x103b4b(0xfe)](_0x591073['LhGyN']));!(_0x591073[_0x103b4b(0xeb)](_0xdb75af[_0x103b4b(0xa4)],_0x591073['hmUXz'])||_0x591073[_0x103b4b(0xfa)](_0xdb75af[_0x103b4b(0xa4)],0x5e))&&(logger[_0x103b4b(0xfe)](_0x591073[_0x103b4b(0xc3)]),global[_0x103b4b(0xf2)]=![]);!_0x591073['RgJhn'](isUndefined,_0xdb75af[_0x103b4b(0xb0)])&&(logger[_0x103b4b(0xfe)](_0x591073[_0x103b4b(0xc0)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0xdb75af[_0x591073['YXaox']]=![];const _0x19c5e0=_0x591073['goqUJ'](_0x2dc79d,_0x591073[_0x103b4b(0xed)](encodeURIComponent,JSON[_0x103b4b(0xe5)](_0xdb75af)));_0x146c7f&&(_0x146c7f[_0x103b4b(0xbe)][_0x103b4b(0xcc)][_0x103b4b(0x10f)][_0x103b4b(0xfd)][_0x103b4b(0x110)][_0x103b4b(0xdb)]=_0x19c5e0,_0x146c7f[_0x103b4b(0xc4)][_0x103b4b(0x10f)]['use'][_0x103b4b(0x110)][_0x103b4b(0xdb)]=_0x19c5e0);}}else global[_0x103b4b(0xf2)]=![];}catch(_0x3608f8){logger[_0x103b4b(0xcd)](_0x103b4b(0x103)+util['format'](_0x3608f8));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a39_0x5a4005=a39_0x41e5;(function(_0x95fe11,_0x322a6b){const _0x2ea6a5=a39_0x41e5,_0x11517e=_0x95fe11();while(!![]){try{const _0x186a93=-parseInt(_0x2ea6a5(0x1f2))/0x1*(-parseInt(_0x2ea6a5(0x207))/0x2)+parseInt(_0x2ea6a5(0x1ae))/0x3*(-parseInt(_0x2ea6a5(0x1a5))/0x4)+-parseInt(_0x2ea6a5(0x1f4))/0x5+parseInt(_0x2ea6a5(0x1a3))/0x6+-parseInt(_0x2ea6a5(0x15a))/0x7+parseInt(_0x2ea6a5(0x155))/0x8*(parseInt(_0x2ea6a5(0x17f))/0x9)+-parseInt(_0x2ea6a5(0x172))/0xa*(-parseInt(_0x2ea6a5(0x1f7))/0xb);if(_0x186a93===_0x322a6b)break;else _0x11517e['push'](_0x11517e['shift']());}catch(_0x57f0a8){_0x11517e['push'](_0x11517e['shift']());}}}(a39_0x142a,0x3329f));const fs=require('fs'),path=require('path'),{spawn}=require(a39_0x5a4005(0x204)),{format}=require(a39_0x5a4005(0x164)),logger=require(a39_0x5a4005(0x1d9))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x5a4005(0x1c3)),helper=require(a39_0x5a4005(0x1d4)),utilities=require('../../helpers/utilities'),constants=require(a39_0x5a4005(0x1ce)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a39_0x5a4005(0x1d6)),{setAccessibilityCapabilities}=require(a39_0x5a4005(0x19b)),{printBuildLink}=require(a39_0x5a4005(0x19d)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a39_0x5a4005(0x1cd)),PerformanceTester=require(a39_0x5a4005(0x1fd)),BrowserstackCLI=require(a39_0x5a4005(0x1fe)),PerformanceEvents=require('../../helpers/performance/constants')[a39_0x5a4005(0x192)],CLIUtils=require(a39_0x5a4005(0x1e4)),TestInfo=require(a39_0x5a4005(0x1be)),ClientTroubleShootingService=require(a39_0x5a4005(0x159)),getUserPlaywrightConfig=async(_0x405fe0,_0x48f7d3)=>{const _0x551edd=a39_0x5a4005,_0x902368={'Mqpwv':function(_0x3c07b7){return _0x3c07b7();},'aFslJ':function(_0x5eb993,_0x49b477){return _0x5eb993(_0x49b477);},'jMrMc':function(_0x176791,_0x15e4f8){return _0x176791(_0x15e4f8);},'naTxv':_0x551edd(0x161),'DzyDW':'--config='},_0x145b49=!helper['isUndefined'](_0x405fe0['config']),_0x25096b=_0x145b49?path[_0x551edd(0x1b5)](process[_0x551edd(0x18f)](),_0x405fe0[_0x551edd(0x1cc)]):process[_0x551edd(0x18f)](),{resolveConfigFile:_0x38d196,resolveConfigLocation:_0x175e67}=helper['isYarnPnP']()?helper[_0x551edd(0x1bc)](..._0x902368[_0x551edd(0x157)](getConfigLoaderPath)):helper[_0x551edd(0x199)][_0x551edd(0x1ab)](null,_0x902368[_0x551edd(0x157)](getConfigLoaderPath)),_0x14d917=_0x38d196?_0x902368['aFslJ'](_0x38d196,_0x25096b):helper['nestedKeyValue'](_0x902368[_0x551edd(0x1a8)](_0x175e67,_0x25096b),[_0x902368['naTxv']]),_0x5606e0={};if(_0x145b49){const _0x47ac95=_0x48f7d3['findIndex'](_0x31db9c=>_0x31db9c===_0x551edd(0x1dd)||_0x31db9c==='-c'||_0x31db9c[_0x551edd(0x17a)](_0x551edd(0x1c2)));_0x48f7d3['splice'](_0x47ac95,_0x48f7d3[_0x47ac95][_0x551edd(0x17a)](_0x902368[_0x551edd(0x1e0)])?0x1:0x2);}const _0x5b0fc5={};return _0x5b0fc5['path']=_0x14d917,_0x5b0fc5[_0x551edd(0x1cc)]=_0x5606e0,_0x5b0fc5;},handleO11yRerun=_0x13a6bb=>{const _0x3e87c3=a39_0x5a4005,_0x3c05f9={};_0x3c05f9[_0x3e87c3(0x1e8)]=_0x3e87c3(0x18c);const _0x1719bf=_0x3c05f9,_0x578a59=helper[_0x3e87c3(0x177)](process[_0x3e87c3(0x188)]['BROWSERSTACK_RERUN']);if(_0x578a59){const _0x2a0cac=process[_0x3e87c3(0x188)]['BROWSERSTACK_RERUN_TESTS'],_0x368568=[];if(helper[_0x3e87c3(0x200)](_0x2a0cac)&&!helper['isUndefined'](_0x2a0cac)){_0x2a0cac['split'](',')['map'](_0x21f427=>{const _0x3c5a68=_0x3e87c3;_0x368568[_0x3c5a68(0x18d)]('('+_0x21f427[_0x3c5a68(0x1f0)]()+')');});const _0x20b729='^'+_0x368568[_0x3e87c3(0x20c)]('|')+'$';_0x13a6bb[_0x3e87c3(0x18d)](_0x1719bf[_0x3e87c3(0x1e8)],_0x20b729);}}},spawnOriginalProcess=_0x428047=>{const _0x5f574b=a39_0x5a4005,_0x2343d2={'kKkac':function(_0x565e3d,_0x46ae63,_0x279cac,_0x298ac6){return _0x565e3d(_0x46ae63,_0x279cac,_0x298ac6);},'AowGo':_0x5f574b(0x169),'IglSM':_0x5f574b(0x1c5),'BwEBB':'playwright','wzLeZ':function(_0x3fcd67,_0x136616){return _0x3fcd67===_0x136616;},'voVzs':_0x5f574b(0x1a2),'oYGqY':_0x5f574b(0x1c6)};_0x2343d2[_0x5f574b(0x191)](spawn,helper['isYarnPnP']()?_0x2343d2[_0x5f574b(0x178)]:_0x2343d2['IglSM'],[_0x2343d2[_0x5f574b(0x209)],..._0x428047['slice'](0x1)],{'shell':_0x2343d2[_0x5f574b(0x1ec)](process['platform'],_0x2343d2['voVzs']),'stdio':_0x2343d2['oYGqY'],'cwd':process['cwd']()});},isTestCommand=(_0x5dec53,_0x996399)=>{const _0x308609=a39_0x5a4005,_0x558614={};_0x558614[_0x308609(0x201)]=function(_0x32e31c,_0x44624a){return _0x32e31c>_0x44624a;},_0x558614['UJMBx']=function(_0x50930e,_0x1cd2d1){return _0x50930e===_0x1cd2d1;},_0x558614[_0x308609(0x1e3)]=_0x308609(0x165);const _0x2bcabf=_0x558614;if(_0x2bcabf[_0x308609(0x201)](_0x996399['length'],0x1)&&_0x2bcabf[_0x308609(0x194)](_0x996399[0x1],_0x2bcabf[_0x308609(0x1e3)]))return!![];return![];};async function run(_0x5aee6e,_0x2dfd2b,_0x41713a){const _0x5d3101=a39_0x5a4005,_0x352932={'YNiLz':function(_0xd72e0d,_0x2a1d82){return _0xd72e0d(_0x2a1d82);},'liRuZ':_0x5d3101(0x197),'JKobU':_0x5d3101(0x205),'PtAmU':function(_0x707309,_0x33d118){return _0x707309+_0x33d118;},'ZhCYC':_0x5d3101(0x1da),'uyUpi':function(_0x526021){return _0x526021();},'wFihg':function(_0x163f89){return _0x163f89();},'EWLmY':'Error\x20in\x20closing\x20playwright','upnFq':_0x5d3101(0x193),'jYEDR':function(_0x48fc10,_0x26afb0){return _0x48fc10<_0x26afb0;},'FfuQJ':function(_0x3723e8,_0x4d4cc7){return _0x3723e8===_0x4d4cc7;},'NWuIO':_0x5d3101(0x171),'mBBBS':_0x5d3101(0x1ca),'aBclZ':function(_0x53734f,_0x18875a){return _0x53734f>=_0x18875a;},'EBXyA':'automation','TFwQF':function(_0x27074e,_0x30ec2e){return _0x27074e!=_0x30ec2e;},'CNEcT':function(_0x2b2ead,_0x2a45c2,_0xf1dacc){return _0x2b2ead(_0x2a45c2,_0xf1dacc);},'viwzs':_0x5d3101(0x156),'afOMY':function(_0x992b10,_0x409f06){return _0x992b10(_0x409f06);},'LEfHm':_0x5d3101(0x18a),'HUtvb':_0x5d3101(0x180),'LpIgR':_0x5d3101(0x1b0),'RnOys':function(_0x9901aa,_0x162945){return _0x9901aa-_0x162945;},'buFJa':_0x5d3101(0x185),'KNauD':function(_0x256afb,_0x587cbc){return _0x256afb>_0x587cbc;},'nQPtn':function(_0x182278,_0x591333,_0xb736e8,_0x7d3420){return _0x182278(_0x591333,_0xb736e8,_0x7d3420);},'JzECO':_0x5d3101(0x169),'qbbgM':_0x5d3101(0x1c5),'sPjrQ':_0x5d3101(0x196),'CSMgw':_0x5d3101(0x165),'ZlqVm':_0x5d3101(0x1dd),'ZsVrf':'win32','cJEie':function(_0x5547b5,_0x1d4562){return _0x5547b5===_0x1d4562;},'HJpfZ':_0x5d3101(0x1c6),'Xorff':_0x5d3101(0x183),'QXKHm':function(_0x270d7a,_0x5dd745){return _0x270d7a|_0x5dd745;},'BqAnl':_0x5d3101(0x1e9),'fYEao':'Error\x20in\x20deleting\x20playwright\x20results'};try{const _0x4fd87c=path[_0x5d3101(0x20c)](helper[_0x5d3101(0x18b)](),_0x352932[_0x5d3101(0x19f)]);try{fs[_0x5d3101(0x153)](_0x4fd87c,_0x352932[_0x5d3101(0x1f1)](fs[_0x5d3101(0x179)][_0x5d3101(0x1b9)],fs[_0x5d3101(0x179)][_0x5d3101(0x1c9)]));}catch(_0x2178bb){ClientTroubleShootingService[_0x5d3101(0x15e)]();}}catch(_0x32b481){logger['debug'](_0x352932[_0x5d3101(0x1b1)](_0x352932['BqAnl'],_0x32b481));}try{const _0x483b3f=path[_0x5d3101(0x20c)](helper['homedir'](),_0x352932[_0x5d3101(0x19f)],_0x352932['JKobU']);fs[_0x5d3101(0x1c8)](_0x483b3f)&&fs['unlinkSync'](_0x483b3f);}catch(_0x4c4d39){logger[_0x5d3101(0x1bb)](_0x352932[_0x5d3101(0x1b1)](_0x352932[_0x5d3101(0x163)],_0x4c4d39));}if(!_0x352932[_0x5d3101(0x1af)](isTestCommand,_0x5aee6e,_0x2dfd2b)){_0x352932['afOMY'](spawnOriginalProcess,_0x2dfd2b);return;}await PerformanceTester[_0x5d3101(0x190)](PerformanceEvents[_0x5d3101(0x1dc)],async()=>{const _0x1b5694=_0x5d3101,_0xe87f30={'NoAzg':_0x352932[_0x1b5694(0x19f)],'xOERN':_0x352932[_0x1b5694(0x160)],'QMAhX':function(_0x2b9ede,_0x3afe76){return _0x352932['PtAmU'](_0x2b9ede,_0x3afe76);},'mYrAR':_0x352932[_0x1b5694(0x1b4)],'NQMGl':function(_0x22c343){const _0x4062bc=_0x1b5694;return _0x352932[_0x4062bc(0x208)](_0x22c343);},'NARLb':function(_0x192373){const _0x82622e=_0x1b5694;return _0x352932[_0x82622e(0x1d8)](_0x192373);},'TZSZr':_0x352932[_0x1b5694(0x195)]};if(!_0x41713a[_0x1b5694(0x1cc)]){logger[_0x1b5694(0x1b2)](_0x352932[_0x1b5694(0x1f9)]);return;}await _0x41713a['initialize'](_0x5aee6e),CLIUtils[_0x1b5694(0x16e)](FRAMEWORKS[_0x1b5694(0x186)],FRAMEWORKS[_0x1b5694(0x186)]),BrowserstackCLI[_0x1b5694(0x166)]()[_0x1b5694(0x19a)](_0x41713a['config'],_0x41713a[_0x1b5694(0x1db)],_0x41713a[_0x1b5694(0x1bd)]),await BrowserstackCLI[_0x1b5694(0x166)]()[_0x1b5694(0x1de)]();for(var _0x3258aa=0x0;_0x352932['jYEDR'](_0x3258aa,constants[_0x1b5694(0x189)][_0x1b5694(0x1e6)]);_0x3258aa++){var _0x31d838=constants[_0x1b5694(0x189)][_0x3258aa];process[_0x1b5694(0x188)][_0x31d838]&&await ClientTroubleShootingService[_0x1b5694(0x1b8)](_0x31d838);}const _0x457e4d=BrowserstackCLI[_0x1b5694(0x166)]()[_0x1b5694(0x1e7)]();!helper[_0x1b5694(0x203)](_0x457e4d[_0x1b5694(0x167)])&&(process['env']['BROWSERSTACK_AUTOMATION']=!![]);_0x352932[_0x1b5694(0x1e2)](_0x457e4d[_0x1b5694(0x167)],![])&&(process['env'][_0x1b5694(0x176)]=_0x352932[_0x1b5694(0x1eb)],_0x2dfd2b=_0x2dfd2b[_0x1b5694(0x1c0)](_0x456427=>_0x456427!==_0x1b5694(0x16c)));const _0x4122be=_0x2dfd2b['indexOf'](_0x352932[_0x1b5694(0x1d3)]);(_0x352932['aBclZ'](_0x4122be,0x0)||_0x352932[_0x1b5694(0x1e2)](_0x457e4d['testObservability'],![]))&&(process[_0x1b5694(0x188)][_0x1b5694(0x1f6)]=_0x352932[_0x1b5694(0x1eb)],_0x2dfd2b=_0x2dfd2b[_0x1b5694(0x1c0)](_0x3a7f8f=>_0x3a7f8f!==_0x1b5694(0x1ca)));!helper[_0x1b5694(0x1aa)](_0x41713a[_0x1b5694(0x1bd)])&&_0x41713a[_0x1b5694(0x1bd)][_0x1b5694(0x15d)](_0x352932[_0x1b5694(0x19e)])&&(process[_0x1b5694(0x188)][_0x1b5694(0x176)]=_0x41713a[_0x1b5694(0x1bd)]['get'](_0x352932['EBXyA'])||!![]);_0x352932['TFwQF'](_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1a4)],null)&&!helper[_0x1b5694(0x177)](process[_0x1b5694(0x188)][_0x1b5694(0x1f6)])&&(process[_0x1b5694(0x188)][_0x1b5694(0x1f6)]=process[_0x1b5694(0x188)][_0x1b5694(0x1f6)]||_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1a4)]);const _0x5c81b3=!helper[_0x1b5694(0x203)](process['env'][_0x1b5694(0x1f6)]);_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x17b)]&&(process[_0x1b5694(0x188)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x17b)]));let _0x57dbb9=![];_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1a9)]&&(_0x57dbb9=!![],process[_0x1b5694(0x188)][_0x1b5694(0x1ff)]=_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1a9)]);const _0x50744e=_0x2dfd2b[_0x1b5694(0x1f5)](),_0x2425c5=await _0x352932['CNEcT'](getUserPlaywrightConfig,_0x5aee6e,_0x2dfd2b);if(helper['isUndefined'](_0x2425c5)){_0x352932[_0x1b5694(0x18e)](spawnOriginalProcess,_0x50744e);return;}const _0x423a1b=_0x2425c5[_0x1b5694(0x170)]?path[_0x1b5694(0x15b)](_0x2425c5['path']):process['cwd']();process[_0x1b5694(0x188)][_0x1b5694(0x1f8)]=_0x423a1b,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x522350=_0x1b5694;!BrowserstackCLI[_0x522350(0x166)]()[_0x522350(0x1fb)]()&&await TestHubHandler[_0x522350(0x1cf)](FRAMEWORKS[_0x522350(0x186)],_0x41713a),_0x5c81b3&&_0x352932[_0x522350(0x18e)](handleO11yRerun,_0x2dfd2b);})();if(!BrowserstackCLI[_0x1b5694(0x166)]()[_0x1b5694(0x1fb)]()){let _0x13e0eb=_0x352932[_0x1b5694(0x1e2)](process[_0x1b5694(0x188)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x352932['viwzs']);_0x13e0eb=_0x13e0eb||_0x352932['afOMY'](checkAccessibilityPlatformConfig,_0x41713a[_0x1b5694(0x1cc)]),process[_0x1b5694(0x188)][_0x1b5694(0x1ff)]=_0x13e0eb,_0x13e0eb&&_0x352932[_0x1b5694(0x15c)](setAccessibilityCapabilities,_0x41713a[_0x1b5694(0x1cc)]);}const _0x1ccb59=path[_0x1b5694(0x20c)](_0x2425c5[_0x1b5694(0x170)]?path[_0x1b5694(0x15b)](_0x2425c5[_0x1b5694(0x170)]):process[_0x1b5694(0x18f)](),_0x352932[_0x1b5694(0x17e)]);fs[_0x1b5694(0x1ee)](_0x1ccb59,helper[_0x1b5694(0x1ad)](_0x41713a[_0x1b5694(0x1cc)])),process[_0x1b5694(0x188)][_0x1b5694(0x16a)]=_0x1ccb59,helper['clearTempPWConfig']();let _0x284383='';_0x352932['FfuQJ'](helper[_0x1b5694(0x187)](),constants[_0x1b5694(0x182)]['MODULE'])?_0x284383=_0x352932[_0x1b5694(0x1d2)]:_0x284383=_0x352932[_0x1b5694(0x1f3)];let _0x29baaf='';if(helper[_0x1b5694(0x17d)](_0x2425c5[_0x1b5694(0x170)])){_0x29baaf=_0x1b5694(0x19c);const _0x23c276=_0x284383[_0x1b5694(0x1ba)]('.');_0x23c276[_0x352932[_0x1b5694(0x1d1)](_0x23c276['length'],0x1)]='ts',_0x284383=_0x23c276[_0x1b5694(0x20c)]('.'),logger[_0x1b5694(0x1bb)](_0x352932[_0x1b5694(0x1b1)](_0x352932[_0x1b5694(0x1d0)],_0x284383));}else _0x29baaf='\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 _0x3497ed=path['join'](_0x2425c5[_0x1b5694(0x170)]?path[_0x1b5694(0x15b)](_0x2425c5[_0x1b5694(0x170)]):process[_0x1b5694(0x18f)](),_0x284383);let _0x125b3d=_0x2425c5[_0x1b5694(0x170)]?_0x2425c5[_0x1b5694(0x170)]:'';_0x125b3d=_0x352932['KNauD'](_0x125b3d['length'],0x0)?path[_0x1b5694(0x1b5)](_0x125b3d):'',process[_0x1b5694(0x188)][_0x1b5694(0x20b)]=_0x125b3d;const _0x5586b2=helper['getProxyUrl'](_0x41713a['config']),_0x5100f6=helper[_0x1b5694(0x16d)](_0x41713a[_0x1b5694(0x1cc)]);logger[_0x1b5694(0x1bb)]('Proxy\x20url\x20:\x20'+_0x5586b2),logger[_0x1b5694(0x1bb)]('No\x20Proxy\x20:\x20'+_0x5100f6);_0x5586b2&&(_0x29baaf=_0x352932[_0x1b5694(0x1b1)](_0x1b5694(0x168)+_0x5586b2+'\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'+_0x5100f6+_0x1b5694(0x198),_0x29baaf));helper[_0x1b5694(0x1ed)]({},_0x2dfd2b),fs['writeFileSync'](_0x3497ed,_0x29baaf),PerformanceTester[_0x1b5694(0x1e1)](PerformanceEvents[_0x1b5694(0x158)]);const _0x21b238=_0x352932[_0x1b5694(0x1c4)](spawn,helper[_0x1b5694(0x154)]()?_0x352932[_0x1b5694(0x175)]:_0x352932[_0x1b5694(0x1bf)],[_0x352932[_0x1b5694(0x1cb)],_0x352932['CSMgw'],_0x352932['ZlqVm'],_0x352932[_0x1b5694(0x1e2)](process[_0x1b5694(0x20a)],_0x352932[_0x1b5694(0x1d7)])?'\x22'+_0x3497ed+'\x22':_0x3497ed,..._0x2dfd2b[_0x1b5694(0x1a1)](0x2)],{'shell':_0x352932[_0x1b5694(0x1e5)](process[_0x1b5694(0x20a)],_0x352932[_0x1b5694(0x1d7)]),'stdio':_0x352932[_0x1b5694(0x1a0)],'cwd':process['cwd'](),'env':Object[_0x1b5694(0x17c)]({},process[_0x1b5694(0x188)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1b5694(0x173)](_0x5aee6e),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1b7)][_0x1b5694(0x1c7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1b7)][_0x1b5694(0x1a7)],'BROWSERSTACK_LOG_LEVEL':_0x41713a[_0x1b5694(0x1cc)][_0x1b5694(0x1ac)]})}),_0x983359=()=>{const _0x3aba27=_0x1b5694;try{const _0x3fe4a5=path['join'](helper[_0x3aba27(0x18b)](),_0xe87f30[_0x3aba27(0x1b6)],_0xe87f30['xOERN']);if(fs[_0x3aba27(0x1c8)](_0x3fe4a5)){let _0x136e64=fs['readFileSync'](_0x3fe4a5);_0x136e64=JSON['parse'](_0x136e64),_0x41713a[_0x3aba27(0x1ef)]=_0x136e64,fs[_0x3aba27(0x1df)](_0x3fe4a5);}}catch(_0xa0c57b){logger[_0x3aba27(0x1bb)](_0xe87f30['QMAhX'](_0xe87f30['mYrAR'],_0xa0c57b));}};_0x21b238['on'](_0x352932['Xorff'],async _0x3fae9e=>{const _0x45b02e=_0x1b5694,_0x1e980e={};_0x1e980e[_0x45b02e(0x181)]=_0xe87f30['NoAzg'];const _0xe4648a=_0x1e980e;try{PerformanceTester[_0x45b02e(0x1a6)](PerformanceEvents[_0x45b02e(0x162)]),_0xe87f30[_0x45b02e(0x1ea)](_0x983359),await TestHubHandler[_0x45b02e(0x206)](),await ClientTroubleShootingService['reportFinalDetectionState'](),await BrowserstackCLI[_0x45b02e(0x166)]()[_0x45b02e(0x206)](),TestDetails['shutdown'](),_0xe87f30[_0x45b02e(0x16f)](printBuildLink),await utilities[_0x45b02e(0x1b3)](_0x41713a),process[_0x45b02e(0x1c1)]=_0x3fae9e,logger[_0x45b02e(0x1bb)](_0x45b02e(0x202)+_0x3fae9e),logger[_0x45b02e(0x184)](_0x45b02e(0x1d5)+_0x3497ed),fs['unlinkSync'](_0x3497ed);fs['existsSync'](_0x1ccb59)&&(logger['debug'](_0x45b02e(0x1d5)+_0x1ccb59),fs[_0x45b02e(0x1df)](_0x1ccb59));const _0x59589f=fs[_0x45b02e(0x1fc)](path[_0x45b02e(0x20c)](helper[_0x45b02e(0x18b)](),_0xe87f30[_0x45b02e(0x1b6)]))[_0x45b02e(0x1c0)](_0x5a588e=>_0x5a588e[_0x45b02e(0x17a)](_0x45b02e(0x16b)));_0x59589f[_0x45b02e(0x174)](_0x140c24=>{const _0x3db2c2=_0x45b02e;fs[_0x3db2c2(0x1df)](path[_0x3db2c2(0x20c)](helper['homedir'](),_0xe4648a[_0x3db2c2(0x181)],_0x140c24));});}catch(_0x30411a){logger[_0x45b02e(0x1bb)](_0xe87f30[_0x45b02e(0x1fa)](_0xe87f30[_0x45b02e(0x15f)],_0x30411a));}});})();}function a39_0x41e5(_0x3d0def,_0x568001){const _0x142a61=a39_0x142a();return a39_0x41e5=function(_0x41e57f,_0x57a813){_0x41e57f=_0x41e57f-0x153;let _0x346a29=_0x142a61[_0x41e57f];return _0x346a29;},a39_0x41e5(_0x3d0def,_0x568001);}function a39_0x142a(){const _0xc405f7=['DzyDW','end','FfuQJ','KIGjr','../v2/cliUtils','cJEie','length','getConfig','fLzOJ','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','NQMGl','NWuIO','wzLeZ','filterBrowserstackArgs','writeFileSync','errorMessage','trim','QXKHm','47mPqIrZ','LpIgR','1281070SlzyWt','concat','BROWSERSTACK_TEST_OBSERVABILITY','11CpEoKz','BROWSERSTACK_PW_CONFIG_DIR','upnFq','QMAhX','isRunning','readdirSync','../../helpers/performance/performance-tester','../v2/browserstackCLI','BROWSERSTACK_TEST_ACCESSIBILITY_YML','validateRerunTestList','FEVck','Playwright\x20process\x20exited\x20with\x20code\x20','isFalse','child_process','pw_result.json','stop','10744wJBFhi','uyUpi','BwEBB','platform','USER_CONFIG_DETAILS_PATH','join','accessSync','isYarnPnP','368PLEZML','true','Mqpwv','SDK_SETUP','../utils/clientTroubleshootingService','2380707VOcUSM','dirname','afOMY','has','reportDotBrowserStackFolderNotAccessibleIssue','TZSZr','JKobU','resolvedConfigFile','SDK_CLEANUP','fYEao','util','test','getInstance','browserstackAutomation','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','yarn','BROWSERSTACK_SETUP_CONFIG_PATH','trace_','--disable-browserstack-automation','getNoProxy','setFrameworkDetail','NARLb','path','false','2739260PjLqWR','getConfigPath','forEach','JzECO','BROWSERSTACK_AUTOMATION','isTrue','AowGo','constants','startsWith','accessibilityOptions','assign','isTypescriptProject','LEfHm','59463tBLorz','playwright-browserstack-sdk.config.cjs','HgCZU','PACKAGE_TYPE','close','info','Updated\x20config\x20file\x20name\x20to\x20-\x20','PLAYWRIGHT','getPackageType','env','INTERNALLY_USED_ENV_VARS','browserstackSetupConfig.json','homedir','--grep','push','YNiLz','cwd','measureWrapper','kKkac','EVENTS','BrowserStack\x20config\x20file\x20not\x20found.','UJMBx','EWLmY','playwright','.browserstack','\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();','requirePWModule','setBrowserstackConfig','./accessibility-helper','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/test-observability/utils','EBXyA','liRuZ','HJpfZ','slice','win32','12018fUBGbi','testObservability','28GXiDaA','start','skipSessionName','jMrMc','accessibility','isUndefined','apply','logLevel','serializeToYamlString','11337DVKogV','CNEcT','playwright-browserstack-sdk.config.js','PtAmU','error','finalExecution','ZhCYC','resolve','NoAzg','testContextOptions','reportConflictingEnvVarIssue','R_OK','split','debug','requireConfigLoaderYarnPnP','cliConfig','../v2/TestInfo','qbbgM','filter','exitCode','--config=','../../helpers/BrowserStackSetup','nQPtn','npx','inherit','skipSessionStatus','existsSync','W_OK','--disable-test-observability','sPjrQ','config','../../helpers/testhub/testhubHandler','../utils/constants','launchBuild','buFJa','RnOys','HUtvb','mBBBS','../../helpers/helper','Deleting\x20','../../helpers/accessibility-automation/helper','ZsVrf','wFihg','../../helpers/logger','Error\x20in\x20getting\x20funnel\x20data\x20results','configPath','SDK_PRE_INITIALIZE','--config','bootstrap','unlinkSync'];a39_0x142a=function(){return _0xc405f7;};return a39_0x142a();}module['exports']=run;
2
+ 'use strict';function a39_0x3cff(_0x1bd1c9,_0x278ffc){const _0x400743=a39_0x4007();return a39_0x3cff=function(_0x3cff39,_0x3cf79e){_0x3cff39=_0x3cff39-0x154;let _0x2b5568=_0x400743[_0x3cff39];return _0x2b5568;},a39_0x3cff(_0x1bd1c9,_0x278ffc);}const a39_0x2321f2=a39_0x3cff;(function(_0xfbef5a,_0x3dfe80){const _0x58d376=a39_0x3cff,_0x8b662d=_0xfbef5a();while(!![]){try{const _0x2e41a6=-parseInt(_0x58d376(0x192))/0x1+parseInt(_0x58d376(0x1ef))/0x2+parseInt(_0x58d376(0x173))/0x3+parseInt(_0x58d376(0x19c))/0x4+-parseInt(_0x58d376(0x1a4))/0x5*(-parseInt(_0x58d376(0x160))/0x6)+parseInt(_0x58d376(0x201))/0x7*(parseInt(_0x58d376(0x1f4))/0x8)+-parseInt(_0x58d376(0x1e6))/0x9*(parseInt(_0x58d376(0x17a))/0xa);if(_0x2e41a6===_0x3dfe80)break;else _0x8b662d['push'](_0x8b662d['shift']());}catch(_0x16322a){_0x8b662d['push'](_0x8b662d['shift']());}}}(a39_0x4007,0x9dbd1));const fs=require('fs'),path=require(a39_0x2321f2(0x1fc)),{spawn}=require('child_process'),{format}=require(a39_0x2321f2(0x1c7)),logger=require(a39_0x2321f2(0x1b1))[a39_0x2321f2(0x209)],{default:BrowserStackSetup}=require(a39_0x2321f2(0x182)),helper=require(a39_0x2321f2(0x1bd)),utilities=require(a39_0x2321f2(0x179)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a39_0x2321f2(0x1b2)),{setAccessibilityCapabilities}=require(a39_0x2321f2(0x196)),{printBuildLink}=require(a39_0x2321f2(0x1d8)),TestDetails=require('./reporter/test-details'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x2321f2(0x1f9)),BrowserstackCLI=require(a39_0x2321f2(0x1d1)),PerformanceEvents=require(a39_0x2321f2(0x191))[a39_0x2321f2(0x1f2)],CLIUtils=require(a39_0x2321f2(0x200)),TestInfo=require(a39_0x2321f2(0x18b)),ClientTroubleShootingService=require(a39_0x2321f2(0x1dd)),getUserPlaywrightConfig=async(_0x5b15e1,_0x30eaa6)=>{const _0x18048e=a39_0x2321f2,_0xdf880d={'TGZol':function(_0x6fa081){return _0x6fa081();},'ZkCCZ':function(_0x49ff26){return _0x49ff26();},'PMxTa':function(_0x4ccf99,_0x49a679){return _0x4ccf99(_0x49a679);},'aUDkD':function(_0xfa32bf,_0x458d15){return _0xfa32bf(_0x458d15);},'yBpSt':_0x18048e(0x197),'ixxOR':_0x18048e(0x1c0)},_0x111073=!helper['isUndefined'](_0x5b15e1[_0x18048e(0x15b)]),_0xd1ebff=_0x111073?path[_0x18048e(0x15a)](process[_0x18048e(0x1f7)](),_0x5b15e1[_0x18048e(0x15b)]):process['cwd'](),{resolveConfigFile:_0x3ef64b,resolveConfigLocation:_0x59ca34}=helper['isYarnPnP']()?helper[_0x18048e(0x1c6)](..._0xdf880d['TGZol'](getConfigLoaderPath)):helper[_0x18048e(0x1da)][_0x18048e(0x164)](null,_0xdf880d[_0x18048e(0x19d)](getConfigLoaderPath)),_0x3c4cbd=_0x3ef64b?_0xdf880d[_0x18048e(0x20e)](_0x3ef64b,_0xd1ebff):helper[_0x18048e(0x16b)](_0xdf880d[_0x18048e(0x19b)](_0x59ca34,_0xd1ebff),[_0xdf880d['yBpSt']]),_0x3a2848={};if(_0x111073){const _0x338167=_0x30eaa6['findIndex'](_0x21cccf=>_0x21cccf===_0x18048e(0x17b)||_0x21cccf==='-c'||_0x21cccf[_0x18048e(0x1ff)](_0x18048e(0x1c0)));_0x30eaa6[_0x18048e(0x1e9)](_0x338167,_0x30eaa6[_0x338167]['startsWith'](_0xdf880d[_0x18048e(0x154)])?0x1:0x2);}const _0x100e07={};return _0x100e07[_0x18048e(0x1fc)]=_0x3c4cbd,_0x100e07[_0x18048e(0x15b)]=_0x3a2848,_0x100e07;},handleO11yRerun=_0x362b52=>{const _0x55fe5b=a39_0x2321f2,_0x2d265d={};_0x2d265d[_0x55fe5b(0x1d2)]=_0x55fe5b(0x1fb);const _0x205c1c=_0x2d265d,_0x500dc0=helper['isTrue'](process[_0x55fe5b(0x16c)]['BROWSERSTACK_RERUN']);if(_0x500dc0){const _0x2bcdb3=process[_0x55fe5b(0x16c)][_0x55fe5b(0x1dc)],_0x48e2b8=[];if(helper[_0x55fe5b(0x155)](_0x2bcdb3)&&!helper[_0x55fe5b(0x157)](_0x2bcdb3)){_0x2bcdb3[_0x55fe5b(0x1bf)](',')[_0x55fe5b(0x1cd)](_0x5bf26e=>{const _0x31963d=_0x55fe5b;_0x48e2b8[_0x31963d(0x1ba)]('('+_0x5bf26e[_0x31963d(0x1f3)]()+')');});const _0x3bda7d='^'+_0x48e2b8[_0x55fe5b(0x162)]('|')+'$';_0x362b52['push'](_0x205c1c[_0x55fe5b(0x1d2)],_0x3bda7d);}}},spawnOriginalProcess=_0x2cb794=>{const _0xa90398=a39_0x2321f2,_0x8d2fde={'urfsG':function(_0x25d548,_0xd7291a,_0x4d1346,_0x4d0f9f){return _0x25d548(_0xd7291a,_0x4d1346,_0x4d0f9f);},'bilhj':_0xa90398(0x1e4),'CMHeh':'npx','hBISK':_0xa90398(0x193),'AgSLE':function(_0x112f83,_0x148666){return _0x112f83===_0x148666;},'qdVHP':_0xa90398(0x18a),'HidGb':'inherit'};_0x8d2fde['urfsG'](spawn,helper[_0xa90398(0x207)]()?_0x8d2fde[_0xa90398(0x19f)]:_0x8d2fde[_0xa90398(0x1cb)],[_0x8d2fde[_0xa90398(0x165)],..._0x2cb794[_0xa90398(0x1ce)](0x1)],{'shell':_0x8d2fde['AgSLE'](process['platform'],_0x8d2fde['qdVHP']),'stdio':_0x8d2fde[_0xa90398(0x1d7)],'cwd':process['cwd']()});},isTestCommand=(_0x46a0b8,_0x4fd056)=>{const _0x3dd28c=a39_0x2321f2,_0x589a28={};_0x589a28[_0x3dd28c(0x19a)]=function(_0x47408a,_0x5f112a){return _0x47408a>_0x5f112a;},_0x589a28[_0x3dd28c(0x1c3)]=function(_0x4dcdfe,_0x47e231){return _0x4dcdfe===_0x47e231;},_0x589a28['cDmdm']='test';const _0x1f1301=_0x589a28;if(_0x1f1301['SRrcx'](_0x4fd056[_0x3dd28c(0x1b8)],0x1)&&_0x1f1301[_0x3dd28c(0x1c3)](_0x4fd056[0x1],_0x1f1301[_0x3dd28c(0x17f)]))return!![];return![];};async function run(_0x46c6c2,_0xf01ef9,_0x1e6849){const _0x73b8f6=a39_0x2321f2,_0x1dab2b={'CEUOT':function(_0x316a54,_0x3fa983){return _0x316a54(_0x3fa983);},'dkgDM':_0x73b8f6(0x1ca),'IhHtW':_0x73b8f6(0x1fa),'BrDKd':function(_0x220e8b,_0x4c03a9){return _0x220e8b+_0x4c03a9;},'GRQiW':_0x73b8f6(0x1c4),'TAiud':function(_0x4db856){return _0x4db856();},'AZwcF':function(_0x35fc09){return _0x35fc09();},'izuix':function(_0x3a0083,_0x567e02){return _0x3a0083+_0x567e02;},'XTuWF':_0x73b8f6(0x1b7),'CjtsA':'BrowserStack\x20config\x20file\x20not\x20found.','kVABr':function(_0x51e60b,_0x2d9aa1){return _0x51e60b<_0x2d9aa1;},'NXQUu':function(_0x29c26d,_0x29b542){return _0x29c26d===_0x29b542;},'wNRCv':_0x73b8f6(0x1fd),'WAkkQ':_0x73b8f6(0x163),'CnhkU':function(_0x55394c,_0x1277da){return _0x55394c>=_0x1277da;},'PBYsP':_0x73b8f6(0x158),'AwQqJ':function(_0x5d08d0,_0x16d061){return _0x5d08d0!=_0x16d061;},'yEiBa':function(_0x213c59,_0x4d033c,_0x24b312){return _0x213c59(_0x4d033c,_0x24b312);},'Ssfuc':function(_0x19bcd3,_0x31c79f){return _0x19bcd3(_0x31c79f);},'daReh':_0x73b8f6(0x1c1),'FolyX':function(_0x576429,_0x38f12e){return _0x576429(_0x38f12e);},'aUcON':function(_0x341391,_0x425c5e){return _0x341391(_0x425c5e);},'MaIfi':_0x73b8f6(0x1ae),'aKEeY':_0x73b8f6(0x1f1),'rnyJh':'playwright-browserstack-sdk.config.js','uVadP':function(_0x118250,_0x1a6f07){return _0x118250-_0x1a6f07;},'YnEKZ':function(_0x53bdb8,_0x2b7ebe){return _0x53bdb8+_0x2b7ebe;},'lQXVv':_0x73b8f6(0x180),'GlZQX':function(_0x38911e,_0x4660f2){return _0x38911e>_0x4660f2;},'zJovR':function(_0x4b7091,_0x320144){return _0x4b7091+_0x320144;},'FooFh':function(_0x817a87,_0x498048,_0x4aac01,_0x590009){return _0x817a87(_0x498048,_0x4aac01,_0x590009);},'XmgYP':_0x73b8f6(0x1e4),'AoBgb':_0x73b8f6(0x159),'rdWzj':_0x73b8f6(0x193),'mPcWU':'test','TUaLy':_0x73b8f6(0x17b),'vBRfq':_0x73b8f6(0x18a),'HxtDv':function(_0x46efb5,_0x81d1f8){return _0x46efb5===_0x81d1f8;},'uYaBv':_0x73b8f6(0x1a2),'TfxoY':_0x73b8f6(0x20b),'CczVO':function(_0x4b97eb,_0x37d7e2){return _0x4b97eb|_0x37d7e2;},'pGttQ':_0x73b8f6(0x17c),'SfiYo':function(_0x3fc0ec,_0x5728be){return _0x3fc0ec+_0x5728be;},'qYJKP':_0x73b8f6(0x184),'loqIm':function(_0x52e1e0,_0x4c3527){return _0x52e1e0(_0x4c3527);}};try{const _0x5e2b0b=path['join'](helper[_0x73b8f6(0x1b3)](),_0x1dab2b['dkgDM']);try{fs[_0x73b8f6(0x190)](_0x5e2b0b,_0x1dab2b[_0x73b8f6(0x167)](fs[_0x73b8f6(0x17d)][_0x73b8f6(0x1a7)],fs[_0x73b8f6(0x17d)]['W_OK']));}catch(_0x2a0f6c){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x1f25cc){logger[_0x73b8f6(0x175)](_0x1dab2b[_0x73b8f6(0x20c)](_0x1dab2b[_0x73b8f6(0x199)],_0x1f25cc));}try{const _0x310a5c=path[_0x73b8f6(0x162)](helper['homedir'](),_0x1dab2b[_0x73b8f6(0x1a5)],_0x1dab2b[_0x73b8f6(0x1a9)]);fs[_0x73b8f6(0x161)](_0x310a5c)&&fs[_0x73b8f6(0x1e1)](_0x310a5c);}catch(_0x3aa737){logger['debug'](_0x1dab2b[_0x73b8f6(0x1f6)](_0x1dab2b[_0x73b8f6(0x1b4)],_0x3aa737));}if(!_0x1dab2b['yEiBa'](isTestCommand,_0x46c6c2,_0xf01ef9)){_0x1dab2b[_0x73b8f6(0x181)](spawnOriginalProcess,_0xf01ef9);return;}await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x166766=_0x73b8f6;if(!_0x1e6849['config']){logger[_0x166766(0x1c2)](_0x1dab2b['CjtsA']);return;}await _0x1e6849['initialize'](_0x46c6c2),CLIUtils[_0x166766(0x1e5)](FRAMEWORKS[_0x166766(0x169)],FRAMEWORKS[_0x166766(0x169)]),BrowserstackCLI[_0x166766(0x16a)]()[_0x166766(0x178)](_0x1e6849[_0x166766(0x15b)],_0x1e6849[_0x166766(0x1ec)],_0x1e6849[_0x166766(0x1a6)]),await BrowserstackCLI[_0x166766(0x16a)]()[_0x166766(0x1ed)]();for(var _0xf3f3e1=0x0;_0x1dab2b[_0x166766(0x1de)](_0xf3f3e1,constants[_0x166766(0x1a0)][_0x166766(0x1b8)]);_0xf3f3e1++){var _0x5ee500=constants[_0x166766(0x1a0)][_0xf3f3e1];process[_0x166766(0x16c)][_0x5ee500]&&await ClientTroubleShootingService[_0x166766(0x1d3)](_0x5ee500);}const _0x43c4a3=BrowserstackCLI[_0x166766(0x16a)]()[_0x166766(0x174)]();!helper[_0x166766(0x194)](_0x43c4a3[_0x166766(0x202)])&&(process[_0x166766(0x16c)][_0x166766(0x186)]=!![]);_0x1dab2b[_0x166766(0x177)](_0x43c4a3[_0x166766(0x202)],![])&&(process[_0x166766(0x16c)]['BROWSERSTACK_AUTOMATION']=_0x1dab2b[_0x166766(0x17e)],_0xf01ef9=_0xf01ef9[_0x166766(0x1d4)](_0x15a685=>_0x15a685!=='--disable-browserstack-automation'));const _0x1e7a6b=_0xf01ef9['indexOf'](_0x1dab2b[_0x166766(0x18e)]);(_0x1dab2b[_0x166766(0x1e8)](_0x1e7a6b,0x0)||_0x1dab2b[_0x166766(0x177)](_0x43c4a3[_0x166766(0x20d)],![]))&&(process[_0x166766(0x16c)][_0x166766(0x1e0)]=_0x1dab2b['wNRCv'],_0xf01ef9=_0xf01ef9[_0x166766(0x1d4)](_0x10c2de=>_0x10c2de!==_0x166766(0x163)));!helper['isUndefined'](_0x1e6849[_0x166766(0x1a6)])&&_0x1e6849['cliConfig'][_0x166766(0x187)](_0x1dab2b['PBYsP'])&&(process[_0x166766(0x16c)]['BROWSERSTACK_AUTOMATION']=_0x1e6849['cliConfig'][_0x166766(0x1f8)](_0x1dab2b[_0x166766(0x1b0)])||!![]);_0x1dab2b[_0x166766(0x1df)](_0x1e6849[_0x166766(0x15b)][_0x166766(0x20d)],null)&&!helper['isTrue'](process[_0x166766(0x16c)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x166766(0x1e0)]=process['env'][_0x166766(0x1e0)]||_0x1e6849['config'][_0x166766(0x20d)]);const _0x1dfe6c=!helper[_0x166766(0x194)](process['env'][_0x166766(0x1e0)]);_0x1e6849[_0x166766(0x15b)][_0x166766(0x176)]&&(process[_0x166766(0x16c)][_0x166766(0x1aa)]=JSON[_0x166766(0x168)](_0x1e6849[_0x166766(0x15b)][_0x166766(0x176)]));let _0x3cc2fb=![];_0x1e6849['config'][_0x166766(0x1b5)]&&(_0x3cc2fb=!![],process[_0x166766(0x16c)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1e6849['config']['accessibility']);const _0x2d4773=_0xf01ef9[_0x166766(0x1c8)](),_0x1a1efd=await _0x1dab2b[_0x166766(0x16e)](getUserPlaywrightConfig,_0x46c6c2,_0xf01ef9);if(helper[_0x166766(0x157)](_0x1a1efd)){_0x1dab2b[_0x166766(0x183)](spawnOriginalProcess,_0x2d4773);return;}const _0x256d40=_0x1a1efd[_0x166766(0x1fc)]?path['dirname'](_0x1a1efd['path']):process[_0x166766(0x1f7)]();process[_0x166766(0x16c)][_0x166766(0x1ea)]=_0x256d40,await PerformanceTester[_0x166766(0x19e)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0xfc6542=_0x166766;!BrowserstackCLI[_0xfc6542(0x16a)]()[_0xfc6542(0x1cf)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0xfc6542(0x169)],_0x1e6849),_0x1dfe6c&&_0x1dab2b[_0xfc6542(0x18f)](handleO11yRerun,_0xf01ef9);})();if(!BrowserstackCLI[_0x166766(0x16a)]()[_0x166766(0x1cf)]()){let _0x148d26=_0x1dab2b['NXQUu'](process[_0x166766(0x16c)][_0x166766(0x1d6)],_0x1dab2b['daReh']);_0x148d26=_0x148d26||_0x1dab2b[_0x166766(0x1ac)](checkAccessibilityPlatformConfig,_0x1e6849[_0x166766(0x15b)]),process[_0x166766(0x16c)][_0x166766(0x1d6)]=_0x148d26,_0x148d26&&_0x1dab2b[_0x166766(0x1bc)](setAccessibilityCapabilities,_0x1e6849[_0x166766(0x15b)]);}const _0x53fb6b=path[_0x166766(0x162)](_0x1a1efd['path']?path[_0x166766(0x188)](_0x1a1efd['path']):process['cwd'](),_0x1dab2b[_0x166766(0x1fe)]);fs[_0x166766(0x1cc)](_0x53fb6b,helper[_0x166766(0x15c)](_0x1e6849[_0x166766(0x15b)])),process[_0x166766(0x16c)][_0x166766(0x156)]=_0x53fb6b,helper[_0x166766(0x20f)]();let _0x56816a='';_0x1dab2b[_0x166766(0x177)](helper[_0x166766(0x1eb)](),constants[_0x166766(0x206)][_0x166766(0x15e)])?_0x56816a=_0x1dab2b[_0x166766(0x1a8)]:_0x56816a=_0x1dab2b[_0x166766(0x1ee)];let _0xa5d176='';if(helper['isTypescriptProject'](_0x1a1efd[_0x166766(0x1fc)])){_0xa5d176=_0x166766(0x1e2);const _0x70e577=_0x56816a[_0x166766(0x1bf)]('.');_0x70e577[_0x1dab2b[_0x166766(0x185)](_0x70e577[_0x166766(0x1b8)],0x1)]='ts',_0x56816a=_0x70e577[_0x166766(0x162)]('.'),logger[_0x166766(0x175)](_0x1dab2b['YnEKZ'](_0x1dab2b[_0x166766(0x1bb)],_0x56816a));}else _0xa5d176=_0x166766(0x1f0);const _0x590e8a=path[_0x166766(0x162)](_0x1a1efd[_0x166766(0x1fc)]?path[_0x166766(0x188)](_0x1a1efd['path']):process['cwd'](),_0x56816a);let _0x115711=_0x1a1efd[_0x166766(0x1fc)]?_0x1a1efd[_0x166766(0x1fc)]:'';_0x115711=_0x1dab2b[_0x166766(0x1db)](_0x115711[_0x166766(0x1b8)],0x0)?path[_0x166766(0x15a)](_0x115711):'',process[_0x166766(0x16c)]['USER_CONFIG_DETAILS_PATH']=_0x115711;const _0x568ce1=helper[_0x166766(0x1d0)](_0x1e6849[_0x166766(0x15b)]),_0x1179c5=helper[_0x166766(0x208)](_0x1e6849[_0x166766(0x15b)]);logger[_0x166766(0x175)]('Proxy\x20url\x20:\x20'+_0x568ce1),logger[_0x166766(0x175)](_0x166766(0x18d)+_0x1179c5);_0x568ce1&&(_0xa5d176=_0x1dab2b[_0x166766(0x20c)](_0x166766(0x204)+_0x568ce1+_0x166766(0x18c)+_0x1179c5+_0x166766(0x189),_0xa5d176));helper[_0x166766(0x198)]({},_0xf01ef9),fs[_0x166766(0x1cc)](_0x590e8a,_0xa5d176),PerformanceTester[_0x166766(0x203)](PerformanceEvents[_0x166766(0x1a3)]);const _0xdbe261=_0x1dab2b['FooFh'](spawn,helper['isYarnPnP']()?_0x1dab2b[_0x166766(0x195)]:_0x1dab2b['AoBgb'],[_0x1dab2b['rdWzj'],_0x1dab2b[_0x166766(0x1e7)],_0x1dab2b[_0x166766(0x1e3)],_0x1dab2b[_0x166766(0x177)](process[_0x166766(0x1b9)],_0x1dab2b[_0x166766(0x16f)])?'\x22'+_0x590e8a+'\x22':_0x590e8a,..._0xf01ef9[_0x166766(0x1ce)](0x2)],{'shell':_0x1dab2b[_0x166766(0x1c5)](process[_0x166766(0x1b9)],_0x1dab2b[_0x166766(0x16f)]),'stdio':_0x1dab2b['uYaBv'],'cwd':process[_0x166766(0x1f7)](),'env':Object['assign']({},process[_0x166766(0x16c)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x166766(0x1c9)](_0x46c6c2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1e6849[_0x166766(0x15b)][_0x166766(0x15d)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1e6849[_0x166766(0x15b)][_0x166766(0x15d)][_0x166766(0x1be)],'BROWSERSTACK_LOG_LEVEL':_0x1e6849[_0x166766(0x15b)][_0x166766(0x1af)]})}),_0x14892d=()=>{const _0x1358d9=_0x166766;try{const _0x3488c6=path[_0x1358d9(0x162)](helper[_0x1358d9(0x1b3)](),_0x1dab2b[_0x1358d9(0x1a5)],_0x1dab2b[_0x1358d9(0x1a9)]);if(fs['existsSync'](_0x3488c6)){let _0x625574=fs['readFileSync'](_0x3488c6);_0x625574=JSON[_0x1358d9(0x15f)](_0x625574),_0x1e6849[_0x1358d9(0x1b6)]=_0x625574,fs[_0x1358d9(0x1e1)](_0x3488c6);}}catch(_0x1fb2b0){logger[_0x1358d9(0x175)](_0x1dab2b[_0x1358d9(0x1a1)](_0x1dab2b[_0x1358d9(0x205)],_0x1fb2b0));}};_0xdbe261['on'](_0x1dab2b[_0x166766(0x1d9)],async _0x17353f=>{const _0x31bef2=_0x166766,_0x760fdf={};_0x760fdf[_0x31bef2(0x171)]=_0x1dab2b[_0x31bef2(0x1a5)];const _0x2d32df=_0x760fdf;try{PerformanceTester['start'](PerformanceEvents[_0x31bef2(0x1d5)]),_0x1dab2b['TAiud'](_0x14892d),await TestHubHandler['stop'](),await ClientTroubleShootingService['reportFinalDetectionState'](),await BrowserstackCLI[_0x31bef2(0x16a)]()['stop'](),TestDetails[_0x31bef2(0x172)](),_0x1dab2b[_0x31bef2(0x1ad)](printBuildLink),await utilities[_0x31bef2(0x170)](_0x1e6849),process[_0x31bef2(0x1f5)]=_0x17353f,logger['debug'](_0x31bef2(0x16d)+_0x17353f),logger[_0x31bef2(0x20a)]('Deleting\x20'+_0x590e8a),fs['unlinkSync'](_0x590e8a);fs[_0x31bef2(0x161)](_0x53fb6b)&&(logger['debug']('Deleting\x20'+_0x53fb6b),fs[_0x31bef2(0x1e1)](_0x53fb6b));const _0x342078=fs['readdirSync'](path[_0x31bef2(0x162)](helper['homedir'](),_0x1dab2b[_0x31bef2(0x1a5)]))[_0x31bef2(0x1d4)](_0x54332a=>_0x54332a[_0x31bef2(0x1ff)]('trace_'));_0x342078['forEach'](_0x1a531b=>{const _0x495a9e=_0x31bef2;fs[_0x495a9e(0x1e1)](path[_0x495a9e(0x162)](helper[_0x495a9e(0x1b3)](),_0x2d32df[_0x495a9e(0x171)],_0x1a531b));});}catch(_0xe206d8){logger[_0x31bef2(0x175)](_0x1dab2b['izuix'](_0x1dab2b[_0x31bef2(0x1ab)],_0xe206d8));}});})();}function a39_0x4007(){const _0x2c75ec=['--grep','path','false','MaIfi','startsWith','../v2/cliUtils','83090Iayflx','browserstackAutomation','end','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','GRQiW','PACKAGE_TYPE','isYarnPnP','getNoProxy','winstonLogger','info','close','zJovR','testObservability','PMxTa','clearTempPWConfig','ixxOR','validateRerunTestList','BROWSERSTACK_SETUP_CONFIG_PATH','isUndefined','automation','npx','resolve','config','serializeToYamlString','testContextOptions','MODULE','parse','12TDozkc','existsSync','join','--disable-test-observability','apply','hBISK','exports','CczVO','stringify','PLAYWRIGHT','getInstance','nestedKeyValue','env','Playwright\x20process\x20exited\x20with\x20code\x20','yEiBa','vBRfq','finalExecution','SPbwK','shutdown','1532103WPETMZ','getConfig','debug','accessibilityOptions','NXQUu','setBrowserstackConfig','../../helpers/utilities','2490KuaLlg','--config','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','constants','wNRCv','cDmdm','Updated\x20config\x20file\x20name\x20to\x20-\x20','loqIm','../../helpers/BrowserStackSetup','Ssfuc','Error\x20in\x20deleting\x20playwright\x20results','uVadP','BROWSERSTACK_AUTOMATION','has','dirname','\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();','win32','../v2/TestInfo','\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','No\x20Proxy\x20:\x20','WAkkQ','CEUOT','accessSync','../../helpers/performance/constants','934459NeWLmw','playwright','isFalse','XmgYP','./accessibility-helper','resolvedConfigFile','filterBrowserstackArgs','pGttQ','SRrcx','aUDkD','1126152ihWMke','ZkCCZ','measureWrapper','bilhj','INTERNALLY_USED_ENV_VARS','BrDKd','inherit','SDK_SETUP','3168315qMTFtg','dkgDM','cliConfig','R_OK','aKEeY','IhHtW','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','XTuWF','FolyX','AZwcF','browserstackSetupConfig.json','logLevel','PBYsP','../../helpers/logger','../../helpers/accessibility-automation/helper','homedir','qYJKP','accessibility','errorMessage','Error\x20in\x20closing\x20playwright','length','platform','push','lQXVv','aUcON','../../helpers/helper','skipSessionName','split','--config=','true','error','FSoCl','Error\x20in\x20getting\x20funnel\x20data\x20results','HxtDv','requireConfigLoaderYarnPnP','util','concat','getConfigPath','.browserstack','CMHeh','writeFileSync','map','slice','isRunning','getProxyUrl','../v2/browserstackCLI','jgOAX','reportConflictingEnvVarIssue','filter','SDK_CLEANUP','BROWSERSTACK_TEST_ACCESSIBILITY_YML','HidGb','../../helpers/test-observability/utils','TfxoY','requirePWModule','GlZQX','BROWSERSTACK_RERUN_TESTS','../utils/clientTroubleshootingService','kVABr','AwQqJ','BROWSERSTACK_TEST_OBSERVABILITY','unlinkSync','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','TUaLy','yarn','setFrameworkDetail','60021hulhOH','mPcWU','CnhkU','splice','BROWSERSTACK_PW_CONFIG_DIR','getPackageType','configPath','bootstrap','rnyJh','1888344pyJOZb','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','playwright-browserstack-sdk.config.cjs','EVENTS','trim','160eCmEeO','exitCode','SfiYo','cwd','get','../../helpers/performance/performance-tester','pw_result.json'];a39_0x4007=function(){return _0x2c75ec;};return a39_0x4007();}module[a39_0x2321f2(0x166)]=run;