browserstack-node-sdk 1.56.3 → 1.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) 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 +5 -4
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/driverInitErrorReporter.js +1 -1
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/playwright-helper.js +1 -1
  177. package/src/helpers/processHelper.js +1 -1
  178. package/src/helpers/puppeteer-helper.js +1 -1
  179. package/src/helpers/request-spy.js +1 -1
  180. package/src/helpers/setKeepAlive.js +1 -1
  181. package/src/helpers/stackFrameUtils.js +1 -1
  182. package/src/helpers/test-observability/constants.js +1 -1
  183. package/src/helpers/test-observability/error-handler.js +1 -1
  184. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  185. package/src/helpers/test-observability/sessionHandler.js +1 -1
  186. package/src/helpers/test-observability/utils.js +1 -1
  187. package/src/helpers/test-orchestration/constants.js +1 -1
  188. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  189. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  190. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  191. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  192. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  193. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  194. package/src/helpers/testhub/constants.js +1 -1
  195. package/src/helpers/testhub/testhubHandler.js +1 -1
  196. package/src/helpers/testhub/utils.js +1 -1
  197. package/src/helpers/timeoutPromise.js +1 -1
  198. package/src/helpers/utilities.js +1 -1
  199. package/src/helpers/w3cMapping.js +1 -1
  200. package/src/hubAllocationMethods.js +1 -1
  201. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a42_0x3a8457=a42_0x3f61;function a42_0x3f61(_0x2fbda8,_0x54c5ff){const _0x8597dd=a42_0x8597();return a42_0x3f61=function(_0x3f61fa,_0x1ed4ca){_0x3f61fa=_0x3f61fa-0x15e;let _0x4a9b69=_0x8597dd[_0x3f61fa];return _0x4a9b69;},a42_0x3f61(_0x2fbda8,_0x54c5ff);}function a42_0x8597(){const _0xf34533=['Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','startsWith','pWgtV','kLdJd','No\x20accessibility\x20results\x20were\x20found.','Playwright','assign','../utils/constants','platformValidation','35351fjtXmR','browser','silly','browserstack.accessibilityOptions','response','accessibilityOptions','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','buahG','format','toISOString','wcagVersion','android','winstonLogger','../../helpers/logger','pTmfM','RbkIJ','getMinVersionForBrowser','LbLrB','message','PERFORM_SCAN','4064888TgZOKF','wsEndpoint','parameters','deviceName','includePartOfPageScope','2682526OrDsBb','nKNYR','request','isVersionSupported','Performing\x20scan\x20with\x20method:\x20','forEach','\x20or\x20higher\x20','synPl','browserstack.accessibility','gtgiq','setAccessibilityCapabilities','find','use','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ZSKcB','debug','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','isBrowserSupportedForAccessibility','browserStackEvaluate','accessibilityOptions.scannerVersion','kZLex','IdzeD','env','scannerProcessingTimeout','project','body','includes','7315756QFqNdj','__workerDetails','testInfo','isMobilePlatform','performScan','connectOptions','needsReview','util','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','measureWrapper','getBrowserDisplayName','executeScript','scannerVersion','bestPractice','executeAsyncScript','DwXtR','currentTest','../../helpers/accessibility-automation/helper','wboft','processAccessibilityCaps','accessibilityOptions.includeIssueType.bestPractice','OnQzm','bstackSdkArgs','../../helpers/performance/performance-tester','frXYi','105JanSvz','stringify','\x20browser\x20version\x20','xynPi','warn','96RmwoCq','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','browserStackExecuteDriver','Fzhqp','9DeQwpQ','Pocph','UzGHS','chromium','command','nByYv','JfMHq','error','\x20page:\x20','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','includeIssueType','getAccessibilityResults','17856190pDcZqm','122628ndkvAZ','accessibilityOptions.includeIssueType.needsReview','ghlHk','on\x20non-BrowserStack\x20infrastructure\x20','czyOE','4LCfILl','MOBILE_SCANNING_DISABLED_WARNING','20HlpPDp','../../helpers/helper','PfGfW','(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','CWirH','NiQbr','][\x20SDK-AUTOMATION\x20]\x20','constructor','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','accessibilityOptions.authToken','accessibilityOptions.scannerProcessingTimeout','No\x20summaryResults\x20found.','tkbfH','gCTqF','toLowerCase','2215758sIvhvN','name','tkfDC','chrome','NsdKd','replace','GqeGw','GnURP','IswIg'];a42_0x8597=function(){return _0xf34533;};return a42_0x8597();}(function(_0x207aee,_0x14c0e6){const _0x350750=a42_0x3f61,_0x20085c=_0x207aee();while(!![]){try{const _0x1dff57=parseInt(_0x350750(0x1cf))/0x1*(parseInt(_0x350750(0x1ad))/0x2)+parseInt(_0x350750(0x1bd))/0x3*(-parseInt(_0x350750(0x1ab))/0x4)+-parseInt(_0x350750(0x190))/0x5*(parseInt(_0x350750(0x1a6))/0x6)+parseInt(_0x350750(0x177))/0x7+parseInt(_0x350750(0x1e3))/0x8+parseInt(_0x350750(0x199))/0x9*(-parseInt(_0x350750(0x1a5))/0xa)+parseInt(_0x350750(0x1e8))/0xb*(parseInt(_0x350750(0x195))/0xc);if(_0x1dff57===_0x14c0e6)break;else _0x20085c['push'](_0x20085c['shift']());}catch(_0x14124a){_0x20085c['push'](_0x20085c['shift']());}}}(a42_0x8597,0xdcc3e));const util=require(a42_0x3a8457(0x17e)),logger=require(a42_0x3a8457(0x1dc))[a42_0x3a8457(0x1db)],{automationLogger}=require(a42_0x3a8457(0x1dc)),{isAccessibilityAutomationSession}=require(a42_0x3a8457(0x188)),{isUndefined,isBrowserstackInfra}=require(a42_0x3a8457(0x1ae)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a42_0x3a8457(0x18e)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a42_0x3a8457(0x188)),{AUTOMATION_LOG_COMMANDS}=require(a42_0x3a8457(0x1cd));exports[a42_0x3a8457(0x16e)]=async(_0x257b95,_0x5872bd,_0x214560={})=>{const _0x4b0527=a42_0x3a8457,_0x35f067={};_0x35f067[_0x4b0527(0x198)]=_0x4b0527(0x18d),_0x35f067[_0x4b0527(0x1a8)]=function(_0x4580bc,_0x229118){return _0x4580bc===_0x229118;},_0x35f067[_0x4b0527(0x1c3)]='string';const _0x1208b0=_0x35f067,_0x23cbfc=await _0x257b95['evaluate'](_0x4b0527(0x1b0)+_0x5872bd['replace'](/arguments/g,_0x1208b0[_0x4b0527(0x198)])+_0x4b0527(0x1d5)+JSON[_0x4b0527(0x191)](_0x214560)+')');try{if(_0x5872bd&&_0x1208b0[_0x4b0527(0x1a8)](typeof _0x5872bd,_0x1208b0[_0x4b0527(0x1c3)])){const _0x57fb60=AUTOMATION_LOG_COMMANDS[_0x4b0527(0x166)](_0x3ebe9f=>_0x5872bd['includes'](_0x3ebe9f));if(_0x57fb60){const _0x462bb1={};_0x462bb1['command']=_0x57fb60,_0x462bb1[_0x4b0527(0x1e5)]=[_0x214560];const _0x5ecf5f={};_0x5ecf5f[_0x4b0527(0x175)]=_0x23cbfc;const _0xedb873={};_0xedb873[_0x4b0527(0x1ea)]=_0x462bb1,_0xedb873[_0x4b0527(0x1d3)]=_0x5ecf5f,automationLogger[_0x4b0527(0x1d1)]('['+new Date()[_0x4b0527(0x1d8)]()+_0x4b0527(0x1b3)+JSON[_0x4b0527(0x191)](_0xedb873));}}}catch(_0x13522c){logger[_0x4b0527(0x16a)](_0x4b0527(0x196)+_0x13522c[_0x4b0527(0x1e1)]);}return _0x23cbfc;},exports[a42_0x3a8457(0x197)]=async(_0x54d7c0,_0x2554da,_0x384baa={})=>{const _0x213f0b=a42_0x3a8457,_0x5c05ce={};_0x5c05ce[_0x213f0b(0x1b2)]=function(_0x141c18,_0x2ae20f){return _0x141c18===_0x2ae20f;},_0x5c05ce['UzGHS']='WebDriver',_0x5c05ce[_0x213f0b(0x1c5)]=function(_0x2f5b54,_0x21cbe5){return _0x2f5b54===_0x21cbe5;},_0x5c05ce[_0x213f0b(0x1e0)]=_0x213f0b(0x1cb),_0x5c05ce[_0x213f0b(0x1c1)]=_0x213f0b(0x18d);const _0x3dc92c=_0x5c05ce;if(_0x3dc92c[_0x213f0b(0x1b2)](_0x54d7c0['constructor']['name'],_0x3dc92c[_0x213f0b(0x19b)]))return await _0x54d7c0[_0x213f0b(0x185)](_0x2554da,_0x384baa);else{if(_0x3dc92c['IswIg'](_0x54d7c0[_0x213f0b(0x1b4)][_0x213f0b(0x1be)],_0x3dc92c[_0x213f0b(0x1e0)]))return await _0x54d7c0[_0x213f0b(0x182)]('(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'+_0x2554da[_0x213f0b(0x1c2)](/arguments/g,_0x3dc92c[_0x213f0b(0x1c1)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x213f0b(0x191)](_0x384baa)+')');}},exports[a42_0x3a8457(0x165)]=async _0x1a16f4=>{const _0x5826ec=a42_0x3a8457,_0x378c1f={};_0x378c1f[_0x5826ec(0x193)]='accessibilityOptions.wcagVersion',_0x378c1f[_0x5826ec(0x162)]=_0x5826ec(0x1b8),_0x378c1f[_0x5826ec(0x1c9)]=_0x5826ec(0x18b),_0x378c1f['gCTqF']=_0x5826ec(0x1a7),_0x378c1f['nKNYR']=_0x5826ec(0x1b7),_0x378c1f[_0x5826ec(0x169)]=_0x5826ec(0x16f);const _0x9feed=_0x378c1f;_0x1a16f4[_0x5826ec(0x1d4)]&&(_0x1a16f4[_0x5826ec(0x1d4)]['wcagVersion']&&(_0x1a16f4[_0x9feed[_0x5826ec(0x193)]]=_0x1a16f4[_0x5826ec(0x1d4)][_0x5826ec(0x1d9)]),_0x1a16f4['accessibilityOptions'][_0x5826ec(0x173)]&&(_0x1a16f4[_0x9feed[_0x5826ec(0x162)]]=_0x1a16f4['accessibilityOptions'][_0x5826ec(0x173)]),_0x1a16f4[_0x5826ec(0x1d4)][_0x5826ec(0x1a3)]&&(_0x1a16f4[_0x9feed['kLdJd']]=_0x1a16f4['accessibilityOptions']['includeIssueType'][_0x5826ec(0x184)],_0x1a16f4[_0x9feed[_0x5826ec(0x1bb)]]=_0x1a16f4['accessibilityOptions'][_0x5826ec(0x1a3)][_0x5826ec(0x17d)]));const _0x34fef9=JSON['parse'](process[_0x5826ec(0x172)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x5826ec(0x183)];_0x1a16f4[_0x9feed[_0x5826ec(0x1e9)]]=process[_0x5826ec(0x172)]['BS_A11Y_JWT'],_0x1a16f4[_0x9feed['ZSKcB']]=_0x34fef9,delete _0x1a16f4['accessibilityOptions'];},exports[a42_0x3a8457(0x1a4)]=async _0x165995=>{const _0x1adcd8=a42_0x3a8457,_0x29ac8d={};_0x29ac8d[_0x1adcd8(0x1bf)]=_0x1adcd8(0x1ca),_0x29ac8d[_0x1adcd8(0x18f)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0xe29624=_0x29ac8d;if(global[_0x1adcd8(0x1b5)])try{const details={'url':await _0x165995.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x165995,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x165995,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x1adcd8(0x1a0)](_0xe29624[_0x1adcd8(0x1bf)]),[];}else return logger[_0x1adcd8(0x194)](_0xe29624[_0x1adcd8(0x18f)]),[];},exports[a42_0x3a8457(0x17b)]=async(_0x28a9c4,_0x1072bc='',_0x531775={},_0xfd07a3={})=>{const _0x431cee=a42_0x3a8457;logger[_0x431cee(0x16a)](_0x431cee(0x15f)+_0x1072bc+_0x431cee(0x1a1)+_0x28a9c4);const _0x388aaa={'url':await _0x28a9c4['url'](),'testhub_btcer_uuid':global[_0x431cee(0x178)]?.[_0x431cee(0x187)]?.['id']};if(global[_0x431cee(0x1b5)])return await PerformanceTester[_0x431cee(0x180)](PerformanceA11yEvents[_0x431cee(0x1e2)],async()=>{const _0x34b40f=_0x431cee,_0x259190={};_0x259190[_0x34b40f(0x19d)]=_0x1072bc;const _0x41a088=_0x259190;_0x531775&&_0x531775['includePartOfPageScope']&&(_0x41a088[_0x34b40f(0x1e7)]=_0x531775[_0x34b40f(0x1e7)]);Object[_0x34b40f(0x1cc)](_0x41a088,_0xfd07a3);const _0x5a33eb=await exports['browserStackEvaluate'](_0x28a9c4,scripts[_0x34b40f(0x17b)],_0x41a088);return _0x5a33eb;},{'command':_0x1072bc,..._0x388aaa})();},exports['getAccessibilityResultsSummary']=async _0x2c9f0c=>{const _0x1a9186=a42_0x3a8457,_0x188b6e={};_0x188b6e[_0x1a9186(0x1c8)]=_0x1a9186(0x1b9),_0x188b6e[_0x1a9186(0x1b1)]=_0x1a9186(0x1c6);const _0x44e95c=_0x188b6e;if(global[_0x1a9186(0x1b5)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2c9f0c,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x2c9f0c,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x1a9186(0x16a)](_0x44e95c[_0x1a9186(0x1c8)]),{};}else return logger[_0x1a9186(0x194)](_0x44e95c[_0x1a9186(0x1b1)]),{};},exports[a42_0x3a8457(0x1ce)]=_0x3e13a5=>{const _0x3b1860=a42_0x3a8457,_0x271ab0={'RbkIJ':_0x3b1860(0x1a2),'kZLex':_0x3b1860(0x16c),'NonLx':function(_0x3a592c,_0x231c0b){return _0x3a592c!==_0x231c0b;},'buahG':_0x3b1860(0x16b),'wboft':function(_0x3a3723){return _0x3a3723();},'durBU':_0x3b1860(0x1a9)};try{if(global[_0x3b1860(0x17a)])return logger[_0x3b1860(0x16a)](_0x271ab0[_0x3b1860(0x1de)]),!![];const _0x347e88=_0x3e13a5[_0x3b1860(0x1d0)],_0xd826f8=_0x3e13a5['browser_version'];if(!accessibilityHelper[_0x3b1860(0x16d)](_0x347e88))return logger['warn'](_0x271ab0[_0x3b1860(0x170)]),![];if(_0x271ab0['NonLx'](_0xd826f8,_0x271ab0[_0x3b1860(0x1d6)])){const _0x5bf710=_0x271ab0[_0x3b1860(0x189)](isBrowserstackInfra),_0x5ea19e=accessibilityHelper[_0x3b1860(0x1df)](_0x347e88,_0x5bf710),_0x38a5c2=accessibilityHelper[_0x3b1860(0x181)](_0x347e88);if(!accessibilityHelper['isVersionSupported'](_0xd826f8,_0x5ea19e)){const _0x1a03ac=_0x5bf710?'':_0x271ab0['durBU'];return logger['warn'](_0x3b1860(0x1b6)+_0x38a5c2+_0x3b1860(0x192)+_0x5ea19e+_0x3b1860(0x161)+_0x1a03ac+'.'),![];}}}catch(_0x595945){logger['debug'](_0x3b1860(0x168)+util[_0x3b1860(0x1d7)](_0x595945));}return!![];},exports[a42_0x3a8457(0x18a)]=(_0x47470c,_0x5cb8bd,_0x358c2a)=>{const _0x308260=a42_0x3a8457,_0xaa6c34={'JfMHq':_0x308260(0x1d2),'gtgiq':function(_0x7ef046){return _0x7ef046();},'DwXtR':_0x308260(0x163),'tkbfH':_0x308260(0x16c),'PfGfW':function(_0x391bb2,_0x152fbc){return _0x391bb2!==_0x152fbc;},'hfQVU':_0x308260(0x16b),'czyOE':function(_0x155f8b){return _0x155f8b();},'OnQzm':_0x308260(0x1a9),'Pocph':function(_0x153403,_0x13f9dd){return _0x153403(_0x13f9dd);},'GnURP':function(_0x58c0e4,_0x2a6151){return _0x58c0e4===_0x2a6151;},'lIywn':_0x308260(0x1da),'xwedF':_0x308260(0x1c0),'IdzeD':'playwright-chromium','pTmfM':_0x308260(0x19c),'nByYv':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','uIqti':function(_0x3a70f7,_0x3d08fc){return _0x3a70f7+_0x3d08fc;},'npQfw':function(_0x48ab35,_0x299200){return _0x48ab35(_0x299200);}};try{if(_0xaa6c34[_0x308260(0x164)](isAccessibilityAutomationSession)){global[_0x308260(0x1b5)]=!![];!_0x47470c[_0xaa6c34[_0x308260(0x186)]]&&(global[_0x308260(0x1b5)]=![]);const _0x5f3a0b=_0x47470c['browserName']||_0x47470c[_0x308260(0x1d0)],_0x1c682e=_0x47470c['browser_version'];!accessibilityHelper[_0x308260(0x16d)](_0x5f3a0b)&&(logger['warn'](_0xaa6c34[_0x308260(0x1ba)]),global[_0x308260(0x1b5)]=![]);if(_0xaa6c34[_0x308260(0x1af)](_0x1c682e,_0xaa6c34['hfQVU'])){const _0x4090df=_0xaa6c34[_0x308260(0x1aa)](isBrowserstackInfra),_0x2cc2e3=accessibilityHelper[_0x308260(0x1df)](_0x5f3a0b,_0x4090df),_0x489bb0=accessibilityHelper[_0x308260(0x181)](_0x5f3a0b);if(!accessibilityHelper[_0x308260(0x15e)](_0x1c682e,_0x2cc2e3)){const _0x15be5c=_0x4090df?'':_0xaa6c34[_0x308260(0x18c)];logger[_0x308260(0x194)](_0x308260(0x1b6)+_0x489bb0+_0x308260(0x192)+_0x2cc2e3+_0x308260(0x161)+_0x15be5c+'.'),global['accessibilityPlatform']=![];}}if(!_0xaa6c34[_0x308260(0x19a)](isUndefined,_0x47470c[_0x308260(0x1e6)])){const _0x407dc3=(_0x47470c['os']||'')[_0x308260(0x1bc)](),_0x4469b3=(_0x47470c['browserName']||_0x47470c[_0x308260(0x1d0)]||'')['toLowerCase'](),_0xb804d1=_0xaa6c34[_0x308260(0x1c4)](_0x407dc3,_0xaa6c34['lIywn'])&&[_0xaa6c34['xwedF'],_0xaa6c34[_0x308260(0x171)],_0xaa6c34[_0x308260(0x1dd)]][_0x308260(0x176)](_0x4469b3);if(!_0xb804d1)logger[_0x308260(0x194)](_0xaa6c34[_0x308260(0x19e)]),global['accessibilityPlatform']=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger['warn'](accessibilityHelper[_0x308260(0x1ac)]),global[_0x308260(0x1b5)]=![]);}if(!global[_0x308260(0x1b5)]){_0x47470c[_0xaa6c34[_0x308260(0x186)]]=![],Object['keys'](_0x47470c)[_0x308260(0x160)](_0x15eba4=>{const _0x4ef956=_0x308260;_0x15eba4[_0x4ef956(0x1c7)](_0xaa6c34[_0x4ef956(0x19f)])&&delete _0x47470c[_0x15eba4];});const _0x20c489=_0xaa6c34['uIqti'](_0x5cb8bd,_0xaa6c34['npQfw'](encodeURIComponent,JSON[_0x308260(0x191)](_0x47470c)));_0x358c2a&&(_0x358c2a[_0x308260(0x187)][_0x308260(0x179)][_0x308260(0x174)][_0x308260(0x167)][_0x308260(0x17c)]['wsEndpoint']=_0x20c489,_0x358c2a['workerInfo'][_0x308260(0x174)][_0x308260(0x167)][_0x308260(0x17c)][_0x308260(0x1e4)]=_0x20c489);}}else global['accessibilityPlatform']=![];}catch(_0x1e190b){logger[_0x308260(0x16a)](_0x308260(0x17f)+util[_0x308260(0x1d7)](_0x1e190b));}};
1
+ const a42_0x293e90=a42_0x1d74;function a42_0x1d74(_0x56eb9f,_0x50b621){const _0x30f7ba=a42_0x30f7();return a42_0x1d74=function(_0x1d7455,_0x52082f){_0x1d7455=_0x1d7455-0xba;let _0x9dfd1a=_0x30f7ba[_0x1d7455];return _0x9dfd1a;},a42_0x1d74(_0x56eb9f,_0x50b621);}function a42_0x30f7(){const _0x5e5add=['fQpoe','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','HfFqc','YEEZj','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','env','startsWith','accessibilityOptions.scannerVersion','executeScript','needsReview','3458868KRNLVb','use','Playwright','\x20or\x20higher\x20','ZZvUS','browser','PwjFe','name','IQKDb','../../helpers/logger','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','browserstack.accessibility','toLowerCase','YXjRz','warn','UcTIL','format','silly','url','isBrowserSupportedForAccessibility','debug','accessibilityOptions.includeIssueType.bestPractice','accessibilityOptions.wcagVersion','scannerProcessingTimeout','includeIssueType','RldRT','browser_version','error','../../helpers/accessibility-automation/helper','LgNNY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','eLkqy','XlnRG','performScan','__workerDetails','SqcWj','OFRhd','testInfo','response','stringify','(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','measureWrapper','ukxrP','replace','MOBILE_SCANNING_DISABLED_WARNING','accessibilityOptions.scannerProcessingTimeout','bestPractice','wHRDY','android','isVersionSupported','(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','PdRIS','][\x20SDK-AUTOMATION\x20]\x20','accessibilityPlatform','wcagVersion','browserstack.accessibilityOptions','winstonLogger','6811144HaGXha','../utils/constants','workerInfo','bstackSdkArgs','2892360yxtSka','browserStackEvaluate','kiQVv','wsEndpoint','\x20page:\x20','platformValidation','executeAsyncScript','../../helpers/helper','scannerVersion','deviceName','qRedN','includePartOfPageScope','No\x20summaryResults\x20found.','connectOptions','XbpCY','accessibilityOptions','evaluate','parse','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','currentTest','336702PrmcZZ','browserName','PERFORM_SCAN','LbMPm','VFGjn','DXXol','3762135TPWvql','\x20browser\x20version\x20','oawcZ','assign','fdKoA','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','xtifN','Mciig','constructor','BS_A11Y_JWT','chromium','21VGkoRp','browserStackExecuteDriver','toISOString','No\x20accessibility\x20results\x20were\x20found.','375582HhegJr','setAccessibilityCapabilities','find','YXQtB','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','request','includes','pKtUw','gXHub','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','2121210aTaJBm','CZitZ','latest','util','SAekt','playwright-chromium','accessibilityOptions.includeIssueType.needsReview','wzENV','project'];a42_0x30f7=function(){return _0x5e5add;};return a42_0x30f7();}(function(_0x4ad5da,_0x5b0ba2){const _0x727cd1=a42_0x1d74,_0x17b190=_0x4ad5da();while(!![]){try{const _0x296ce9=-parseInt(_0x727cd1(0x11e))/0x1+parseInt(_0x727cd1(0x13d))/0x2+-parseInt(_0x727cd1(0xca))/0x3+parseInt(_0x727cd1(0x10a))/0x4+-parseInt(_0x727cd1(0x124))/0x5+parseInt(_0x727cd1(0x133))/0x6*(parseInt(_0x727cd1(0x12f))/0x7)+parseInt(_0x727cd1(0x106))/0x8;if(_0x296ce9===_0x5b0ba2)break;else _0x17b190['push'](_0x17b190['shift']());}catch(_0x30137e){_0x17b190['push'](_0x17b190['shift']());}}}(a42_0x30f7,0x8dcba));const util=require(a42_0x293e90(0xba)),logger=require(a42_0x293e90(0xd3))[a42_0x293e90(0x105)],{automationLogger}=require(a42_0x293e90(0xd3)),{isAccessibilityAutomationSession}=require(a42_0x293e90(0xe8)),{isUndefined,isBrowserstackInfra}=require(a42_0x293e90(0x111)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a42_0x293e90(0xe8)),{AUTOMATION_LOG_COMMANDS}=require(a42_0x293e90(0x107));exports[a42_0x293e90(0x10b)]=async(_0x2a6688,_0x741604,_0x549aa6={})=>{const _0x4314a9=a42_0x293e90,_0x2e25f8={};_0x2e25f8[_0x4314a9(0xf7)]=_0x4314a9(0x109),_0x2e25f8[_0x4314a9(0x13b)]=function(_0x2ea37b,_0x9cfd3b){return _0x2ea37b===_0x9cfd3b;},_0x2e25f8[_0x4314a9(0x121)]='string';const _0x4a310e=_0x2e25f8,_0x55ca30=await _0x2a6688[_0x4314a9(0x11a)](_0x4314a9(0xf5)+_0x741604[_0x4314a9(0xf8)](/arguments/g,_0x4a310e[_0x4314a9(0xf7)])+_0x4314a9(0x137)+JSON[_0x4314a9(0xf4)](_0x549aa6)+')');try{if(_0x741604&&_0x4a310e[_0x4314a9(0x13b)](typeof _0x741604,_0x4a310e[_0x4314a9(0x121)])){const _0x383070=AUTOMATION_LOG_COMMANDS[_0x4314a9(0x135)](_0x5d03d9=>_0x741604[_0x4314a9(0x139)](_0x5d03d9));if(_0x383070){const _0x329ebf={};_0x329ebf['command']=_0x383070,_0x329ebf['parameters']=[_0x549aa6];const _0x401b75={};_0x401b75['body']=_0x55ca30;const _0x5ba8f2={};_0x5ba8f2[_0x4314a9(0x138)]=_0x329ebf,_0x5ba8f2[_0x4314a9(0xf3)]=_0x401b75,automationLogger[_0x4314a9(0xdd)]('['+new Date()[_0x4314a9(0x131)]()+_0x4314a9(0x101)+JSON[_0x4314a9(0xf4)](_0x5ba8f2));}}}catch(_0x573281){logger[_0x4314a9(0xe0)](_0x4314a9(0x129)+_0x573281['message']);}return _0x55ca30;},exports[a42_0x293e90(0x130)]=async(_0x5db329,_0x1059df,_0x8ee958={})=>{const _0x4cba20=a42_0x293e90,_0x28dfa6={};_0x28dfa6[_0x4cba20(0xc0)]=function(_0x4d901b,_0x11c19e){return _0x4d901b===_0x11c19e;},_0x28dfa6[_0x4cba20(0xbb)]='WebDriver',_0x28dfa6['LgNNY']=function(_0x5ce4c8,_0x1f0c5e){return _0x5ce4c8===_0x1f0c5e;},_0x28dfa6[_0x4cba20(0x126)]=_0x4cba20(0xcc),_0x28dfa6[_0x4cba20(0xfc)]=_0x4cba20(0x109);const _0xc2a3f0=_0x28dfa6;if(_0xc2a3f0[_0x4cba20(0xc0)](_0x5db329[_0x4cba20(0x12c)][_0x4cba20(0xd1)],_0xc2a3f0['SAekt']))return await _0x5db329[_0x4cba20(0x110)](_0x1059df,_0x8ee958);else{if(_0xc2a3f0[_0x4cba20(0xe9)](_0x5db329['constructor'][_0x4cba20(0xd1)],_0xc2a3f0['oawcZ']))return await _0x5db329[_0x4cba20(0xc8)](_0x4cba20(0xff)+_0x1059df[_0x4cba20(0xf8)](/arguments/g,_0xc2a3f0[_0x4cba20(0xfc)])+_0x4cba20(0xeb)+JSON[_0x4cba20(0xf4)](_0x8ee958)+')');}},exports[a42_0x293e90(0x134)]=async _0x2ffeb7=>{const _0x270d3e=a42_0x293e90,_0x7818dd={};_0x7818dd[_0x270d3e(0xbe)]=_0x270d3e(0xe2),_0x7818dd[_0x270d3e(0x128)]=_0x270d3e(0xfa),_0x7818dd[_0x270d3e(0x10c)]=_0x270d3e(0xe1),_0x7818dd[_0x270d3e(0x100)]=_0x270d3e(0xbd),_0x7818dd[_0x270d3e(0xd9)]='accessibilityOptions.authToken',_0x7818dd[_0x270d3e(0xf1)]=_0x270d3e(0xc7);const _0x3996a7=_0x7818dd;_0x2ffeb7['accessibilityOptions']&&(_0x2ffeb7['accessibilityOptions'][_0x270d3e(0x103)]&&(_0x2ffeb7[_0x3996a7[_0x270d3e(0xbe)]]=_0x2ffeb7[_0x270d3e(0x119)][_0x270d3e(0x103)]),_0x2ffeb7[_0x270d3e(0x119)]['scannerProcessingTimeout']&&(_0x2ffeb7[_0x3996a7['fdKoA']]=_0x2ffeb7[_0x270d3e(0x119)][_0x270d3e(0xe3)]),_0x2ffeb7['accessibilityOptions'][_0x270d3e(0xe4)]&&(_0x2ffeb7[_0x3996a7[_0x270d3e(0x10c)]]=_0x2ffeb7[_0x270d3e(0x119)][_0x270d3e(0xe4)][_0x270d3e(0xfb)],_0x2ffeb7[_0x3996a7[_0x270d3e(0x100)]]=_0x2ffeb7[_0x270d3e(0x119)][_0x270d3e(0xe4)][_0x270d3e(0xc9)]));const _0x5d6cec=JSON[_0x270d3e(0x11b)](process['env'][_0x270d3e(0xc1)])[_0x270d3e(0x112)];_0x2ffeb7[_0x3996a7[_0x270d3e(0xd9)]]=process[_0x270d3e(0xc5)][_0x270d3e(0x12d)],_0x2ffeb7[_0x3996a7['OFRhd']]=_0x5d6cec,delete _0x2ffeb7[_0x270d3e(0x119)];},exports['getAccessibilityResults']=async _0x47d8cd=>{const _0x433dbc=a42_0x293e90,_0x51c442={};_0x51c442[_0x433dbc(0x13a)]=_0x433dbc(0x132),_0x51c442[_0x433dbc(0xc2)]=_0x433dbc(0xd6);const _0x3bb33f=_0x51c442;if(global['accessibilityPlatform'])try{const details={'url':await _0x47d8cd.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x47d8cd,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x47d8cd,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x433dbc(0xe7)](_0x3bb33f[_0x433dbc(0x13a)]),[];}else return logger[_0x433dbc(0xda)](_0x3bb33f['HfFqc']),[];},exports[a42_0x293e90(0xee)]=async(_0x34707e,_0x3a731f='',_0x3ea75f={},_0x348d41={})=>{const _0xc06eff=a42_0x293e90;logger[_0xc06eff(0xe0)]('Performing\x20scan\x20with\x20method:\x20'+_0x3a731f+_0xc06eff(0x10e)+_0x34707e);const _0x137e57={'url':await _0x34707e[_0xc06eff(0xde)](),'testhub_btcer_uuid':global[_0xc06eff(0xef)]?.[_0xc06eff(0x11d)]?.['id']};if(global[_0xc06eff(0x102)])return await PerformanceTester[_0xc06eff(0xf6)](PerformanceA11yEvents[_0xc06eff(0x120)],async()=>{const _0x3e5c96=_0xc06eff,_0x9389db={};_0x9389db['command']=_0x3a731f;const _0x122b9a=_0x9389db;_0x3ea75f&&_0x3ea75f[_0x3e5c96(0x115)]&&(_0x122b9a[_0x3e5c96(0x115)]=_0x3ea75f['includePartOfPageScope']);Object[_0x3e5c96(0x127)](_0x122b9a,_0x348d41);const _0x16ae0e=await exports[_0x3e5c96(0x10b)](_0x34707e,scripts[_0x3e5c96(0xee)],_0x122b9a);return _0x16ae0e;},{'command':_0x3a731f,..._0x137e57})();},exports['getAccessibilityResultsSummary']=async _0x12a0c2=>{const _0x1e2f27=a42_0x293e90,_0x374cc3={};_0x374cc3[_0x1e2f27(0x123)]=_0x1e2f27(0x116),_0x374cc3[_0x1e2f27(0x122)]=_0x1e2f27(0xd4);const _0x53c530=_0x374cc3;if(global[_0x1e2f27(0x102)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x12a0c2,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x12a0c2,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x1e2f27(0xe0)](_0x53c530[_0x1e2f27(0x123)]),{};}else return logger['warn'](_0x53c530[_0x1e2f27(0x122)]),{};},exports[a42_0x293e90(0x10f)]=_0x3069b2=>{const _0x4dfa65=a42_0x293e90,_0x3fe75f={'YXQtB':'platformValidation:\x20Mobile\x20platform\x20already\x20validated.','XbpCY':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','qRedN':function(_0x4a3a23,_0x5728e0){return _0x4a3a23!==_0x5728e0;},'eLkqy':_0x4dfa65(0x13f),'inaIb':function(_0x58da5e){return _0x58da5e();},'Mkiyn':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(global['isMobilePlatform'])return logger['debug'](_0x3fe75f[_0x4dfa65(0x136)]),!![];const _0x4635a2=_0x3069b2[_0x4dfa65(0xcf)],_0x15dcaa=_0x3069b2[_0x4dfa65(0xe6)];if(!accessibilityHelper[_0x4dfa65(0xdf)](_0x4635a2))return logger['warn'](_0x3fe75f[_0x4dfa65(0x118)]),![];if(_0x3fe75f[_0x4dfa65(0x114)](_0x15dcaa,_0x3fe75f[_0x4dfa65(0xec)])){const _0x2e7ea3=_0x3fe75f['inaIb'](isBrowserstackInfra),_0x115dd3=accessibilityHelper['getMinVersionForBrowser'](_0x4635a2,_0x2e7ea3),_0x38fa1e=accessibilityHelper['getBrowserDisplayName'](_0x4635a2);if(!accessibilityHelper[_0x4dfa65(0xfe)](_0x15dcaa,_0x115dd3)){const _0x3f12cd=_0x2e7ea3?'':_0x3fe75f['Mkiyn'];return logger[_0x4dfa65(0xda)](_0x4dfa65(0xea)+_0x38fa1e+_0x4dfa65(0x125)+_0x115dd3+_0x4dfa65(0xcd)+_0x3f12cd+'.'),![];}}}catch(_0x253131){logger[_0x4dfa65(0xe0)](_0x4dfa65(0xc4)+util[_0x4dfa65(0xdc)](_0x253131));}return!![];},exports['processAccessibilityCaps']=(_0x3a0cf9,_0x5333fb,_0x4e14c2)=>{const _0x800afe=a42_0x293e90,_0x40ac82={'Mciig':_0x800afe(0x104),'xtifN':function(_0x25d424){return _0x25d424();},'XdoHf':_0x800afe(0xd7),'CZitZ':_0x800afe(0x13c),'YEEZj':function(_0x50dcbf,_0x1da0f0){return _0x50dcbf!==_0x1da0f0;},'PwjFe':_0x800afe(0x13f),'UcTIL':'on\x20non-BrowserStack\x20infrastructure\x20','XlnRG':function(_0x1e7778,_0x2476a4){return _0x1e7778(_0x2476a4);},'SqcWj':function(_0x1f20fe,_0x563be2){return _0x1f20fe===_0x563be2;},'ZZvUS':_0x800afe(0xfd),'IQKDb':'chrome','BOdRr':_0x800afe(0xbc),'IjWnG':_0x800afe(0x12e),'WlLlL':_0x800afe(0xd5),'mzgZy':function(_0xe2a718,_0x525111){return _0xe2a718+_0x525111;},'RldRT':function(_0x1645aa,_0x2959fb){return _0x1645aa(_0x2959fb);}};try{if(_0x40ac82[_0x800afe(0x12a)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x3a0cf9[_0x40ac82['XdoHf']]&&(global[_0x800afe(0x102)]=![]);const _0x3407db=_0x3a0cf9[_0x800afe(0x11f)]||_0x3a0cf9[_0x800afe(0xcf)],_0x2591e2=_0x3a0cf9[_0x800afe(0xe6)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x3407db)&&(logger[_0x800afe(0xda)](_0x40ac82[_0x800afe(0x13e)]),global['accessibilityPlatform']=![]);if(_0x40ac82[_0x800afe(0xc3)](_0x2591e2,_0x40ac82[_0x800afe(0xd0)])){const _0x3b22aa=_0x40ac82[_0x800afe(0x12a)](isBrowserstackInfra),_0xbb5c60=accessibilityHelper['getMinVersionForBrowser'](_0x3407db,_0x3b22aa),_0x3641a2=accessibilityHelper['getBrowserDisplayName'](_0x3407db);if(!accessibilityHelper[_0x800afe(0xfe)](_0x2591e2,_0xbb5c60)){const _0x516a5d=_0x3b22aa?'':_0x40ac82[_0x800afe(0xdb)];logger['warn'](_0x800afe(0xea)+_0x3641a2+_0x800afe(0x125)+_0xbb5c60+_0x800afe(0xcd)+_0x516a5d+'.'),global[_0x800afe(0x102)]=![];}}if(!_0x40ac82[_0x800afe(0xed)](isUndefined,_0x3a0cf9[_0x800afe(0x113)])){const _0x54ebe8=(_0x3a0cf9['os']||'')[_0x800afe(0xd8)](),_0x1950a9=(_0x3a0cf9[_0x800afe(0x11f)]||_0x3a0cf9['browser']||'')[_0x800afe(0xd8)](),_0x22f7b3=_0x40ac82[_0x800afe(0xf0)](_0x54ebe8,_0x40ac82[_0x800afe(0xce)])&&[_0x40ac82[_0x800afe(0xd2)],_0x40ac82['BOdRr'],_0x40ac82['IjWnG']][_0x800afe(0x139)](_0x1950a9);if(!_0x22f7b3)logger[_0x800afe(0xda)](_0x40ac82['WlLlL']),global[_0x800afe(0x102)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x800afe(0xda)](accessibilityHelper[_0x800afe(0xf9)]),global[_0x800afe(0x102)]=![]);}if(!global[_0x800afe(0x102)]){_0x3a0cf9[_0x40ac82['XdoHf']]=![],Object['keys'](_0x3a0cf9)['forEach'](_0x3d7af4=>{const _0x1433f8=_0x800afe;_0x3d7af4[_0x1433f8(0xc6)](_0x40ac82[_0x1433f8(0x12b)])&&delete _0x3a0cf9[_0x3d7af4];});const _0x584ee4=_0x40ac82['mzgZy'](_0x5333fb,_0x40ac82[_0x800afe(0xe5)](encodeURIComponent,JSON[_0x800afe(0xf4)](_0x3a0cf9)));_0x4e14c2&&(_0x4e14c2['currentTest'][_0x800afe(0xf2)][_0x800afe(0xbf)][_0x800afe(0xcb)][_0x800afe(0x117)][_0x800afe(0x10d)]=_0x584ee4,_0x4e14c2[_0x800afe(0x108)]['project'][_0x800afe(0xcb)][_0x800afe(0x117)][_0x800afe(0x10d)]=_0x584ee4);}}else global[_0x800afe(0x102)]=![];}catch(_0x1174d9){logger[_0x800afe(0xe0)](_0x800afe(0x11c)+util[_0x800afe(0xdc)](_0x1174d9));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a43_0x189d(_0x13d95d,_0x4e9115){const _0x232dc3=a43_0x232d();return a43_0x189d=function(_0x189d2d,_0x14fbee){_0x189d2d=_0x189d2d-0x116;let _0x53cf00=_0x232dc3[_0x189d2d];return _0x53cf00;},a43_0x189d(_0x13d95d,_0x4e9115);}const a43_0x1a5b4c=a43_0x189d;(function(_0x409582,_0x2c2c69){const _0x7f7393=a43_0x189d,_0x5d67ef=_0x409582();while(!![]){try{const _0x2cfdaf=parseInt(_0x7f7393(0x160))/0x1+-parseInt(_0x7f7393(0x119))/0x2*(parseInt(_0x7f7393(0x131))/0x3)+parseInt(_0x7f7393(0x1ba))/0x4+-parseInt(_0x7f7393(0x169))/0x5+-parseInt(_0x7f7393(0x1a0))/0x6+parseInt(_0x7f7393(0x173))/0x7+-parseInt(_0x7f7393(0x1ab))/0x8*(-parseInt(_0x7f7393(0x1a3))/0x9);if(_0x2cfdaf===_0x2c2c69)break;else _0x5d67ef['push'](_0x5d67ef['shift']());}catch(_0x4bd06c){_0x5d67ef['push'](_0x5d67ef['shift']());}}}(a43_0x232d,0x496b4));function a43_0x232d(){const _0x934098=['10317WDcYut','unlinkSync','win32','./accessibility-helper','errorMessage','iAVRr','length','OYwZL','ArGmR','reportFinalDetectionState','./reporter/pwUtils','No\x20Proxy\x20:\x20','../v2/cliUtils','skipSessionName','cKjHP','xWpxo','SDK_CLEANUP','fSpgE','setBrowserstackConfig','browserstackSetupConfig.json','W_OK','zbqoI','vTvLs','inherit','PHsEE','flgdi','uyNqm','LXCQE','\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','getConfig','util','JmrNo','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','winstonLogger','NuxCy','WIsqb','anROF','ApSax','exitCode','BROWSERSTACK_RERUN','accessSync','ZTJXL','rkzsW','nestedKeyValue','clearTempPWConfig','rkirO','Proxy\x20url\x20:\x20','171801YwypDG','existsSync','--config=','--disable-test-observability','serializeToYamlString','assign','../../helpers/helper','getProxyUrl','INTERNALLY_USED_ENV_VARS','2525905ckfIMV','BROWSERSTACK_TEST_ACCESSIBILITY_YML','QmTrN','trim','fLbaP','../../helpers/testhub/testhubHandler','config','rWIsT','isTrue','bnRrM','49693wLUySd','playwright-browserstack-sdk.config.cjs','playwright','PLAYWRIGHT','launchBuild','AXtud','splice','finalExecution','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','has','testObservability','accessibility','Error\x20in\x20getting\x20funnel\x20data\x20results','shutdown','zaORQ','EVENTS','../utils/clientTroubleshootingService','UfMEt','JXviE','IwSWV','reportConflictingEnvVarIssue','cwd','.browserstack','env','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_PW_CONFIG_DIR','../../helpers/test-observability/constants','EenFc','split','reportDotBrowserStackFolderNotAccessibleIssue','setFrameworkDetail','hDiOg','trace_','dltXG','indexOf','pw_result.json','VBGJH','../../helpers/BrowserStackSetup','browserstackAutomation','findIndex','getNoProxy','filterBrowserstackArgs','homedir','platform','zetzY','3202506NvOdIQ','YkCvJ','isRunning','2493LqDGGo','accessibilityOptions','skipSessionStatus','dirname','EJRAW','push','../../helpers/performance/constants','readdirSync','37048oJcwLc','RYbhW','MODULE','writeFileSync','xYETr','nnSvo','Playwright\x20process\x20exited\x20with\x20code\x20','pXwoV','uuXDj','testContextOptions','BROWSERSTACK_FRAMEWORK','BROWSERSTACK_AUTOMATION','join','xfrDB','end','488552hoDrRn','filter','ALTIv','Error\x20in\x20closing\x20playwright','SDK_SETUP','dinZp','../utils/constants','isUndefined','Deleting\x20','resolvedConfigFile','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','path','\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();','QpigD','USER_CONFIG_DETAILS_PATH','KCBSt','true','info','Error\x20in\x20deleting\x20playwright\x20results','MnFHm','test','validateRerunTestList','SDK_PRE_INITIALIZE','../v2/browserstackCLI','constants','automation','parse','pYMNJ','../../helpers/utilities','kYnuq','--disable-browserstack-automation','KbeOR','cliConfig','resolve','getInstance','lqXwC','stop','142LKykzG','VMYjp','startsWith','LgRRM','requireConfigLoaderYarnPnP','isYarnPnP','debug','BROWSERSTACK_SETUP_CONFIG_PATH','BROWSERSTACK_TEST_OBSERVABILITY','configPath','yarn','kDWmc','iqaSv','SSLHY','jnZbP','npx','../../helpers/accessibility-automation/helper','uyXre','logLevel','measureWrapper','rgALB','../../helpers/logger','XJnVg','child_process'];a43_0x232d=function(){return _0x934098;};return a43_0x232d();}const fs=require('fs'),path=require(a43_0x1a5b4c(0x1c5)),{spawn}=require(a43_0x1a5b4c(0x130)),{format}=require(a43_0x1a5b4c(0x14f)),logger=require(a43_0x1a5b4c(0x12e))[a43_0x1a5b4c(0x152)],{default:BrowserStackSetup}=require(a43_0x1a5b4c(0x198)),helper=require(a43_0x1a5b4c(0x166)),utilities=require(a43_0x1a5b4c(0x1d6)),constants=require(a43_0x1a5b4c(0x1c0)),{FRAMEWORKS}=require(a43_0x1a5b4c(0x18d)),{getConfigLoaderPath}=require(a43_0x1a5b4c(0x13b)),{checkAccessibilityPlatformConfig}=require(a43_0x1a5b4c(0x129)),{setAccessibilityCapabilities}=require(a43_0x1a5b4c(0x134)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a43_0x1a5b4c(0x16e)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a43_0x1a5b4c(0x1d1)),PerformanceEvents=require(a43_0x1a5b4c(0x1a9))[a43_0x1a5b4c(0x182)],CLIUtils=require(a43_0x1a5b4c(0x13d)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a43_0x1a5b4c(0x183)),getUserPlaywrightConfig=async(_0x108f7d,_0x1801f6)=>{const _0x37fe4e=a43_0x1a5b4c,_0x30486b={'kDWmc':function(_0xa06b7e){return _0xa06b7e();},'anROF':function(_0x3cde5c){return _0x3cde5c();},'rkirO':function(_0x3ff98b,_0x4e3b2c){return _0x3ff98b(_0x4e3b2c);},'QXROr':_0x37fe4e(0x1c3),'cKjHP':'--config='},_0x5a5f04=!helper['isUndefined'](_0x108f7d[_0x37fe4e(0x16f)]),_0x3d57d1=_0x5a5f04?path[_0x37fe4e(0x1db)](process[_0x37fe4e(0x188)](),_0x108f7d[_0x37fe4e(0x16f)]):process[_0x37fe4e(0x188)](),{resolveConfigFile:_0x250059,resolveConfigLocation:_0x57fe8b}=helper[_0x37fe4e(0x11e)]()?helper[_0x37fe4e(0x11d)](..._0x30486b[_0x37fe4e(0x124)](getConfigLoaderPath)):helper['requirePWModule']['apply'](null,_0x30486b[_0x37fe4e(0x155)](getConfigLoaderPath)),_0x3f122a=_0x250059?_0x30486b[_0x37fe4e(0x15e)](_0x250059,_0x3d57d1):helper[_0x37fe4e(0x15c)](_0x30486b[_0x37fe4e(0x15e)](_0x57fe8b,_0x3d57d1),[_0x30486b['QXROr']]),_0x464d3f={};if(_0x5a5f04){const _0x40c3ec=_0x1801f6[_0x37fe4e(0x19a)](_0x42aebe=>_0x42aebe==='--config'||_0x42aebe==='-c'||_0x42aebe[_0x37fe4e(0x11b)](_0x37fe4e(0x162)));_0x1801f6[_0x37fe4e(0x179)](_0x40c3ec,_0x1801f6[_0x40c3ec][_0x37fe4e(0x11b)](_0x30486b[_0x37fe4e(0x13f)])?0x1:0x2);}const _0xa4d247={};return _0xa4d247['path']=_0x3f122a,_0xa4d247[_0x37fe4e(0x16f)]=_0x464d3f,_0xa4d247;},handleO11yRerun=_0x390c2b=>{const _0x5d824f=a43_0x1a5b4c,_0x49bdf8={};_0x49bdf8[_0x5d824f(0x1d9)]='--grep';const _0x658581=_0x49bdf8,_0x8716c1=helper[_0x5d824f(0x171)](process[_0x5d824f(0x18a)][_0x5d824f(0x158)]);if(_0x8716c1){const _0x58e77b=process[_0x5d824f(0x18a)]['BROWSERSTACK_RERUN_TESTS'],_0x474903=[];if(helper[_0x5d824f(0x1cf)](_0x58e77b)&&!helper[_0x5d824f(0x1c1)](_0x58e77b)){_0x58e77b['split'](',')['map'](_0x591b4a=>{const _0x4b8c7b=_0x5d824f;_0x474903['push']('('+_0x591b4a[_0x4b8c7b(0x16c)]()+')');});const _0x31bf69='^'+_0x474903['join']('|')+'$';_0x390c2b[_0x5d824f(0x1a8)](_0x658581[_0x5d824f(0x1d9)],_0x31bf69);}}},spawnOriginalProcess=_0x33d32c=>{const _0x4c5efc=a43_0x1a5b4c,_0x457500={'XJnVg':function(_0x5151bb,_0xc67c4c,_0x21b79e,_0x2d63ad){return _0x5151bb(_0xc67c4c,_0x21b79e,_0x2d63ad);},'zetzY':_0x4c5efc(0x123),'YkCvJ':_0x4c5efc(0x128),'vTvLs':'playwright','LXCQE':function(_0xa49462,_0xd1b5b3){return _0xa49462===_0xd1b5b3;},'dltXG':_0x4c5efc(0x133),'OYwZL':_0x4c5efc(0x148)};_0x457500[_0x4c5efc(0x12f)](spawn,helper['isYarnPnP']()?_0x457500[_0x4c5efc(0x19f)]:_0x457500[_0x4c5efc(0x1a1)],[_0x457500[_0x4c5efc(0x147)],..._0x33d32c['slice'](0x1)],{'shell':_0x457500[_0x4c5efc(0x14c)](process[_0x4c5efc(0x19e)],_0x457500[_0x4c5efc(0x194)]),'stdio':_0x457500[_0x4c5efc(0x138)],'cwd':process[_0x4c5efc(0x188)]()});},isTestCommand=(_0x4dceec,_0x4b1e33)=>{const _0x441b42=a43_0x1a5b4c,_0x2a794c={};_0x2a794c[_0x441b42(0x136)]=function(_0x3c1f89,_0x531af3){return _0x3c1f89>_0x531af3;},_0x2a794c[_0x441b42(0x1c7)]=function(_0x4d047c,_0x1d35b2){return _0x4d047c===_0x1d35b2;},_0x2a794c[_0x441b42(0x15b)]='test';const _0x195cb2=_0x2a794c;if(_0x195cb2[_0x441b42(0x136)](_0x4b1e33['length'],0x1)&&_0x195cb2[_0x441b42(0x1c7)](_0x4b1e33[0x1],_0x195cb2[_0x441b42(0x15b)]))return!![];return![];};async function run(_0x156c87,_0x5eb9dd,_0x35cbb1){const _0x54193b=a43_0x1a5b4c,_0x2fd2ab={'SSLHY':function(_0x4b3004,_0x4d643d){return _0x4b3004(_0x4d643d);},'uuXDj':_0x54193b(0x189),'MnFHm':_0x54193b(0x196),'EenFc':function(_0x34099d,_0x9a955){return _0x34099d+_0x9a955;},'ALTIv':_0x54193b(0x17f),'uyXre':function(_0x44b05c){return _0x44b05c();},'VMYjp':function(_0x3f53bd){return _0x3f53bd();},'ZTJXL':_0x54193b(0x1bd),'AXtud':'BrowserStack\x20config\x20file\x20not\x20found.','xQrQm':function(_0x256ae1,_0x5befea){return _0x256ae1<_0x5befea;},'pYMNJ':function(_0x59d08a,_0x38e664){return _0x59d08a===_0x38e664;},'NuxCy':'false','RGgUn':_0x54193b(0x163),'zbqoI':function(_0x1b3831,_0x5d0536){return _0x1b3831>=_0x5d0536;},'ArGmR':_0x54193b(0x1d3),'GdGmi':function(_0x3a94aa,_0x547e8c){return _0x3a94aa!=_0x547e8c;},'zaORQ':function(_0xf04a0f,_0x5d3173,_0xe757f4){return _0xf04a0f(_0x5d3173,_0xe757f4);},'xWpxo':function(_0x365e20,_0x31f54a){return _0x365e20(_0x31f54a);},'hDiOg':_0x54193b(0x1ca),'rgALB':function(_0x489742,_0x5c8928){return _0x489742(_0x5c8928);},'EJRAW':_0x54193b(0x144),'UYKEP':_0x54193b(0x174),'flgdi':'playwright-browserstack-sdk.config.js','SPvHb':function(_0x4ea426,_0x321b6e){return _0x4ea426-_0x321b6e;},'lqXwC':_0x54193b(0x18b),'jnZbP':function(_0x52a879,_0x3d5e80){return _0x52a879>_0x3d5e80;},'iqaSv':_0x54193b(0x175),'PHsEE':function(_0x3dcc20,_0x58f952,_0x310ebf,_0x139a61){return _0x3dcc20(_0x58f952,_0x310ebf,_0x139a61);},'KCBSt':'yarn','RYbhW':_0x54193b(0x128),'LgRRM':_0x54193b(0x1ce),'rWIsT':'--config','kYnuq':'win32','fLbaP':function(_0x59b226,_0x22b61e){return _0x59b226===_0x22b61e;},'ELTlT':_0x54193b(0x148),'fSpgE':'close','pXwoV':function(_0xe9a52e,_0x228d11){return _0xe9a52e|_0x228d11;},'bnRrM':function(_0x3eed9c,_0x5d668d){return _0x3eed9c+_0x5d668d;},'nnSvo':_0x54193b(0x151),'JXviE':function(_0x381297,_0x4cce50){return _0x381297+_0x4cce50;},'uyNqm':_0x54193b(0x1cc),'QmTrN':function(_0x3e0700,_0x34f31b,_0x3378be){return _0x3e0700(_0x34f31b,_0x3378be);},'VBGJH':function(_0x1f01c2,_0x3b36f9){return _0x1f01c2(_0x3b36f9);}};try{const _0x581198=path[_0x54193b(0x1b7)](helper['homedir'](),_0x2fd2ab[_0x54193b(0x1b3)]);try{fs[_0x54193b(0x159)](_0x581198,_0x2fd2ab[_0x54193b(0x1b2)](fs['constants']['R_OK'],fs[_0x54193b(0x1d2)][_0x54193b(0x145)]));}catch(_0x21976c){ClientTroubleShootingService[_0x54193b(0x190)]();}}catch(_0x275a5b){logger[_0x54193b(0x11f)](_0x2fd2ab[_0x54193b(0x172)](_0x2fd2ab[_0x54193b(0x1b0)],_0x275a5b));}try{const _0x38e6ec=path[_0x54193b(0x1b7)](helper[_0x54193b(0x19d)](),_0x2fd2ab[_0x54193b(0x1b3)],_0x2fd2ab[_0x54193b(0x1cd)]);fs[_0x54193b(0x161)](_0x38e6ec)&&fs[_0x54193b(0x132)](_0x38e6ec);}catch(_0x18986e){logger[_0x54193b(0x11f)](_0x2fd2ab[_0x54193b(0x185)](_0x2fd2ab[_0x54193b(0x14b)],_0x18986e));}if(!_0x2fd2ab[_0x54193b(0x16b)](isTestCommand,_0x156c87,_0x5eb9dd)){_0x2fd2ab[_0x54193b(0x197)](spawnOriginalProcess,_0x5eb9dd);return;}await PerformanceTester[_0x54193b(0x12c)](PerformanceEvents[_0x54193b(0x1d0)],async()=>{const _0x5ef79f=_0x54193b,_0x5ddd40={'xYETr':_0x2fd2ab[_0x5ef79f(0x1b3)],'UfMEt':_0x2fd2ab['MnFHm'],'JmrNo':function(_0x171e18,_0x45086d){return _0x2fd2ab['EenFc'](_0x171e18,_0x45086d);},'xfrDB':_0x2fd2ab[_0x5ef79f(0x1bc)],'IwSWV':function(_0x1c9451){const _0x5eb7df=_0x5ef79f;return _0x2fd2ab[_0x5eb7df(0x12a)](_0x1c9451);},'WIsqb':function(_0x4ed520){const _0x1cfaa5=_0x5ef79f;return _0x2fd2ab[_0x1cfaa5(0x11a)](_0x4ed520);},'dinZp':_0x2fd2ab[_0x5ef79f(0x15a)]};if(!_0x35cbb1['config']){logger['error'](_0x2fd2ab[_0x5ef79f(0x178)]);return;}await _0x35cbb1['initialize'](_0x156c87),CLIUtils[_0x5ef79f(0x191)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x5ef79f(0x176)]),BrowserstackCLI[_0x5ef79f(0x116)]()[_0x5ef79f(0x143)](_0x35cbb1[_0x5ef79f(0x16f)],_0x35cbb1[_0x5ef79f(0x122)],_0x35cbb1['cliConfig']),await BrowserstackCLI[_0x5ef79f(0x116)]()['bootstrap']();for(var _0x16ad46=0x0;_0x2fd2ab['xQrQm'](_0x16ad46,constants[_0x5ef79f(0x168)][_0x5ef79f(0x137)]);_0x16ad46++){var _0x3ac046=constants[_0x5ef79f(0x168)][_0x16ad46];process[_0x5ef79f(0x18a)][_0x3ac046]&&await ClientTroubleShootingService[_0x5ef79f(0x187)](_0x3ac046);}const _0x37070e=BrowserstackCLI['getInstance']()[_0x5ef79f(0x14e)]();!helper['isFalse'](_0x37070e[_0x5ef79f(0x199)])&&(process['env'][_0x5ef79f(0x1b6)]=!![]);_0x2fd2ab[_0x5ef79f(0x1d5)](_0x37070e[_0x5ef79f(0x199)],![])&&(process[_0x5ef79f(0x18a)][_0x5ef79f(0x1b6)]=_0x2fd2ab[_0x5ef79f(0x153)],_0x5eb9dd=_0x5eb9dd['filter'](_0x33c32e=>_0x33c32e!==_0x5ef79f(0x1d8)));const _0x15ffd8=_0x5eb9dd[_0x5ef79f(0x195)](_0x2fd2ab['RGgUn']);(_0x2fd2ab[_0x5ef79f(0x146)](_0x15ffd8,0x0)||_0x2fd2ab[_0x5ef79f(0x1d5)](_0x37070e['testObservability'],![]))&&(process[_0x5ef79f(0x18a)][_0x5ef79f(0x121)]=_0x2fd2ab[_0x5ef79f(0x153)],_0x5eb9dd=_0x5eb9dd[_0x5ef79f(0x1bb)](_0x34bd82=>_0x34bd82!==_0x5ef79f(0x163)));!helper[_0x5ef79f(0x1c1)](_0x35cbb1[_0x5ef79f(0x1da)])&&_0x35cbb1[_0x5ef79f(0x1da)][_0x5ef79f(0x17c)](_0x2fd2ab[_0x5ef79f(0x139)])&&(process[_0x5ef79f(0x18a)]['BROWSERSTACK_AUTOMATION']=_0x35cbb1[_0x5ef79f(0x1da)]['get'](_0x2fd2ab[_0x5ef79f(0x139)])||!![]);_0x2fd2ab['GdGmi'](_0x35cbb1[_0x5ef79f(0x16f)][_0x5ef79f(0x17d)],null)&&!helper[_0x5ef79f(0x171)](process[_0x5ef79f(0x18a)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5ef79f(0x18a)][_0x5ef79f(0x121)]=process['env'][_0x5ef79f(0x121)]||_0x35cbb1['config'][_0x5ef79f(0x17d)]);const _0x2a70e4=!helper['isFalse'](process[_0x5ef79f(0x18a)][_0x5ef79f(0x121)]);_0x35cbb1[_0x5ef79f(0x16f)][_0x5ef79f(0x1a4)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x35cbb1[_0x5ef79f(0x16f)]['accessibilityOptions']));let _0x3f6f2f=![];_0x35cbb1[_0x5ef79f(0x16f)]['accessibility']&&(_0x3f6f2f=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x35cbb1[_0x5ef79f(0x16f)][_0x5ef79f(0x17e)]);const _0x507d8b=_0x5eb9dd['concat'](),_0x3053e3=await _0x2fd2ab[_0x5ef79f(0x181)](getUserPlaywrightConfig,_0x156c87,_0x5eb9dd);if(helper[_0x5ef79f(0x1c1)](_0x3053e3)){_0x2fd2ab[_0x5ef79f(0x140)](spawnOriginalProcess,_0x507d8b);return;}const _0x508cc4=_0x3053e3[_0x5ef79f(0x1c5)]?path[_0x5ef79f(0x1a6)](_0x3053e3['path']):process[_0x5ef79f(0x188)]();process[_0x5ef79f(0x18a)][_0x5ef79f(0x18c)]=_0x508cc4,await PerformanceTester[_0x5ef79f(0x12c)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x3c062c=_0x5ef79f;!BrowserstackCLI['getInstance']()[_0x3c062c(0x1a2)]()&&await TestHubHandler[_0x3c062c(0x177)](FRAMEWORKS[_0x3c062c(0x176)],_0x35cbb1),_0x2a70e4&&_0x2fd2ab[_0x3c062c(0x126)](handleO11yRerun,_0x5eb9dd);})();if(!BrowserstackCLI['getInstance']()[_0x5ef79f(0x1a2)]()){let _0x3b27f7=_0x2fd2ab[_0x5ef79f(0x1d5)](process[_0x5ef79f(0x18a)][_0x5ef79f(0x16a)],_0x2fd2ab[_0x5ef79f(0x192)]);_0x3b27f7=_0x3b27f7||_0x2fd2ab[_0x5ef79f(0x12d)](checkAccessibilityPlatformConfig,_0x35cbb1['config']),process[_0x5ef79f(0x18a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3b27f7,_0x3b27f7&&_0x2fd2ab[_0x5ef79f(0x12d)](setAccessibilityCapabilities,_0x35cbb1[_0x5ef79f(0x16f)]);}const _0x9689de=path[_0x5ef79f(0x1b7)](_0x3053e3['path']?path[_0x5ef79f(0x1a6)](_0x3053e3[_0x5ef79f(0x1c5)]):process[_0x5ef79f(0x188)](),_0x2fd2ab[_0x5ef79f(0x1a7)]);fs[_0x5ef79f(0x1ae)](_0x9689de,helper[_0x5ef79f(0x164)](_0x35cbb1[_0x5ef79f(0x16f)])),process['env'][_0x5ef79f(0x120)]=_0x9689de,helper[_0x5ef79f(0x15d)]();let _0x11a68='';_0x2fd2ab[_0x5ef79f(0x1d5)](helper['getPackageType'](),constants['PACKAGE_TYPE'][_0x5ef79f(0x1ad)])?_0x11a68=_0x2fd2ab['UYKEP']:_0x11a68=_0x2fd2ab[_0x5ef79f(0x14a)];let _0x47ebc0='';if(helper['isTypescriptProject'](_0x3053e3[_0x5ef79f(0x1c5)])){_0x47ebc0='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x77d699=_0x11a68[_0x5ef79f(0x18f)]('.');_0x77d699[_0x2fd2ab['SPvHb'](_0x77d699['length'],0x1)]='ts',_0x11a68=_0x77d699[_0x5ef79f(0x1b7)]('.'),logger['debug'](_0x2fd2ab[_0x5ef79f(0x18e)](_0x2fd2ab[_0x5ef79f(0x117)],_0x11a68));}else _0x47ebc0=_0x5ef79f(0x17b);const _0x73bcce=path[_0x5ef79f(0x1b7)](_0x3053e3[_0x5ef79f(0x1c5)]?path['dirname'](_0x3053e3[_0x5ef79f(0x1c5)]):process[_0x5ef79f(0x188)](),_0x11a68);let _0x50471d=_0x3053e3[_0x5ef79f(0x1c5)]?_0x3053e3[_0x5ef79f(0x1c5)]:'';_0x50471d=_0x2fd2ab[_0x5ef79f(0x127)](_0x50471d[_0x5ef79f(0x137)],0x0)?path[_0x5ef79f(0x1db)](_0x50471d):'',process['env'][_0x5ef79f(0x1c8)]=_0x50471d;const _0x2e2b1a=helper[_0x5ef79f(0x167)](_0x35cbb1[_0x5ef79f(0x16f)]),_0x10f25c=helper[_0x5ef79f(0x19b)](_0x35cbb1[_0x5ef79f(0x16f)]);logger[_0x5ef79f(0x11f)](_0x5ef79f(0x15f)+_0x2e2b1a),logger[_0x5ef79f(0x11f)](_0x5ef79f(0x13c)+_0x10f25c);_0x2e2b1a&&(_0x47ebc0=_0x2fd2ab[_0x5ef79f(0x18e)](_0x5ef79f(0x1c4)+_0x2e2b1a+_0x5ef79f(0x14d)+_0x10f25c+_0x5ef79f(0x1c6),_0x47ebc0));helper[_0x5ef79f(0x19c)]({},_0x5eb9dd),fs['writeFileSync'](_0x73bcce,_0x47ebc0),PerformanceTester[_0x5ef79f(0x1b9)](PerformanceEvents[_0x5ef79f(0x1be)]),process[_0x5ef79f(0x18a)][_0x5ef79f(0x1b5)]=process[_0x5ef79f(0x18a)]['BROWSERSTACK_FRAMEWORK']||_0x2fd2ab['iqaSv'];const _0x2094b3=_0x2fd2ab[_0x5ef79f(0x149)](spawn,helper[_0x5ef79f(0x11e)]()?_0x2fd2ab[_0x5ef79f(0x1c9)]:_0x2fd2ab[_0x5ef79f(0x1ac)],[_0x2fd2ab[_0x5ef79f(0x125)],_0x2fd2ab[_0x5ef79f(0x11c)],_0x2fd2ab[_0x5ef79f(0x170)],_0x2fd2ab[_0x5ef79f(0x1d5)](process['platform'],_0x2fd2ab['kYnuq'])?'\x22'+_0x73bcce+'\x22':_0x73bcce,..._0x5eb9dd['slice'](0x2)],{'shell':_0x2fd2ab[_0x5ef79f(0x16d)](process[_0x5ef79f(0x19e)],_0x2fd2ab[_0x5ef79f(0x1d7)]),'stdio':_0x2fd2ab['ELTlT'],'cwd':process[_0x5ef79f(0x188)](),'env':Object[_0x5ef79f(0x165)]({},process[_0x5ef79f(0x18a)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x156c87),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x35cbb1[_0x5ef79f(0x16f)][_0x5ef79f(0x1b4)][_0x5ef79f(0x1a5)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x35cbb1[_0x5ef79f(0x16f)][_0x5ef79f(0x1b4)][_0x5ef79f(0x13e)],'BROWSERSTACK_LOG_LEVEL':_0x35cbb1['config'][_0x5ef79f(0x12b)]})}),_0xab784f=()=>{const _0x14f74e=_0x5ef79f;try{const _0x58bfbc=path[_0x14f74e(0x1b7)](helper[_0x14f74e(0x19d)](),_0x5ddd40[_0x14f74e(0x1af)],_0x5ddd40[_0x14f74e(0x184)]);if(fs[_0x14f74e(0x161)](_0x58bfbc)){let _0x26a1be=fs['readFileSync'](_0x58bfbc);_0x26a1be=JSON[_0x14f74e(0x1d4)](_0x26a1be),_0x35cbb1[_0x14f74e(0x135)]=_0x26a1be,fs[_0x14f74e(0x132)](_0x58bfbc);}}catch(_0x24dbc8){logger[_0x14f74e(0x11f)](_0x5ddd40[_0x14f74e(0x150)](_0x5ddd40[_0x14f74e(0x1b8)],_0x24dbc8));}};_0x2094b3['on'](_0x2fd2ab[_0x5ef79f(0x142)],async _0x197ece=>{const _0x2053d4=_0x5ef79f,_0x237710={};_0x237710[_0x2053d4(0x156)]=_0x5ddd40[_0x2053d4(0x1af)];const _0x129bd4=_0x237710;try{PerformanceTester['start'](PerformanceEvents[_0x2053d4(0x141)]),_0x5ddd40[_0x2053d4(0x186)](_0xab784f),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x2053d4(0x13a)]();const _0x530a7b=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI[_0x2053d4(0x116)]()[_0x2053d4(0x118)](),TestDetails[_0x2053d4(0x180)](),_0x5ddd40[_0x2053d4(0x154)](printBuildLink),await utilities[_0x2053d4(0x17a)](_0x35cbb1,_0x530a7b),process[_0x2053d4(0x157)]=_0x197ece,logger[_0x2053d4(0x11f)](_0x2053d4(0x1b1)+_0x197ece),logger[_0x2053d4(0x1cb)](_0x2053d4(0x1c2)+_0x73bcce),fs['unlinkSync'](_0x73bcce);fs[_0x2053d4(0x161)](_0x9689de)&&(logger[_0x2053d4(0x11f)](_0x2053d4(0x1c2)+_0x9689de),fs['unlinkSync'](_0x9689de));const _0x277106=fs[_0x2053d4(0x1aa)](path[_0x2053d4(0x1b7)](helper[_0x2053d4(0x19d)](),_0x5ddd40[_0x2053d4(0x1af)]))['filter'](_0x312b27=>_0x312b27[_0x2053d4(0x11b)](_0x2053d4(0x193)));_0x277106['forEach'](_0xde668c=>{const _0x188308=_0x2053d4;fs[_0x188308(0x132)](path[_0x188308(0x1b7)](helper[_0x188308(0x19d)](),_0x129bd4[_0x188308(0x156)],_0xde668c));});}catch(_0x265d50){logger[_0x2053d4(0x11f)](_0x5ddd40[_0x2053d4(0x150)](_0x5ddd40[_0x2053d4(0x1bf)],_0x265d50));}});})();}module['exports']=run;
2
+ 'use strict';const a43_0x5e58fb=a43_0x2af6;(function(_0x16fea0,_0x5d05e4){const _0x3a4052=a43_0x2af6,_0x349258=_0x16fea0();while(!![]){try{const _0x2b79de=parseInt(_0x3a4052(0x220))/0x1*(-parseInt(_0x3a4052(0x1a9))/0x2)+parseInt(_0x3a4052(0x202))/0x3+-parseInt(_0x3a4052(0x1c4))/0x4*(-parseInt(_0x3a4052(0x1b6))/0x5)+-parseInt(_0x3a4052(0x1ae))/0x6+parseInt(_0x3a4052(0x214))/0x7*(-parseInt(_0x3a4052(0x207))/0x8)+-parseInt(_0x3a4052(0x182))/0x9*(-parseInt(_0x3a4052(0x1b4))/0xa)+parseInt(_0x3a4052(0x1d2))/0xb*(parseInt(_0x3a4052(0x16f))/0xc);if(_0x2b79de===_0x5d05e4)break;else _0x349258['push'](_0x349258['shift']());}catch(_0x3a4f7a){_0x349258['push'](_0x349258['shift']());}}}(a43_0x82b4,0x6f5c6));function a43_0x82b4(){const _0xcfb3e8=['BROWSERSTACK_RERUN','config','999297mvNOpw','BROWSERSTACK_PW_CONFIG_DIR','UBSzb','wgzPi','shutdown','accessibility','hAlBp','end','W_OK','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','findIndex','stop','sep','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','env','isRunning','apply','isTrue','measureWrapper','PLAYWRIGHT','setupBrowserstackLocal','LhbqD','Error\x20in\x20getting\x20funnel\x20data\x20results','getConfig','UMnQR','INTERNALLY_USED_ENV_VARS','requireConfigLoaderYarnPnP','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_TEST_OBSERVABILITY','map','platform','CtuVX','skipSessionStatus','fAkeX','../utils/constants','getPackageType','../../helpers/performance/performance-tester','inherit','../v2/browserstackCLI','22562mYoUpf','bootstrap','nestedKeyValue','aHUEx','win32','1104222ZcUdqk','mzmBh','BROWSERSTACK_FRAMEWORK','Error\x20in\x20closing\x20playwright','VuIBu','slice','20wQovbA','RCzrw','751385MDCSRN','writeFileSync','trace_','filter','getProxyUrl','../../helpers/performance/constants','dgygF','../../helpers/logger','Wzcyv','isUndefined','\x20test\x20files\x20to\x20run.','PIGYn','has','cliConfig','20VSeWXB','--disable-browserstack-automation','reorderTestFiles','get','../../helpers/accessibility-automation/helper','Xlrxb','pxDoW','../../helpers/test-observability/constants','serializeToYamlString','exports','info','unlinkSync','lccCi','PWBrQ','1595hJgPot','stringify','./accessibility-helper','SDK_SETUP','HqBWy','homedir','FmrvG','child_process','hwBsE','debug','oaPyo','validateRerunTestList','push','R_OK','yarn','gqJng','No\x20Proxy\x20:\x20','indexOf','hNfIc','BoNPy','LZJtX','GIulR','testContextOptions','--grep','ovCBk','oBtRo','BrowserStack\x20config\x20file\x20not\x20found.','isFalse','BROWSERSTACK_RERUN_TESTS','readdirSync','playwright-browserstack-sdk.config.js','bxdXD','BhUfO','eDzJs','filterBrowserstackArgs','dirname','BTJMG','zhZQr','pw_result.json','logLevel','../../helpers/test-orchestration/testOrchestrationHandler','split','../../helpers/testhub/testhubHandler','reportFinalDetectionState','setBrowserstackConfig','dWfaz','browserstackAutomation','skipSessionName','423195XxLtBR','accessibilityOptions','resolve','rJQem','--disable-test-observability','1493784TgutfZ','findPlaywrightTestFiles','util','Reordered\x20Test\x20Files:\x20','WyNoy','kydCO','accessSync','aPvtk','\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','EVENTS','LaDOq','QoiFk','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','7fXvHVm','PACKAGE_TYPE','startsWith','./reporter/test-details','OFJFx','reportDotBrowserStackFolderNotAccessibleIssue','false','SDK_PRE_INITIALIZE','playwright-browserstack-sdk.config.cjs','Deleting\x20','test','reportConflictingEnvVarIssue','37btqjjI','BROWSERSTACK_AUTOMATION','AkgrB','BROWSERSTACK_PW_TEST_ORDER','playwright','length','configPath','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','forEach','exitCode','../../helpers/BrowserStackSetup','path','getInstance','isYarnPnP','sfWoy','SDK_POST_INITIALIZE','cwd','testObservability','RtKcp','finalExecution','hHkdk','isCLIEnabled','omMMG','nfFao','10740xJpAgi','existsSync','constants','YMHau','clearTempPWConfig','sACBo','oWNvt','gtlFv','--config=','join','launchBuild','BqKDh','Error\x20in\x20deleting\x20playwright\x20results','true','USER_CONFIG_DETAILS_PATH','SiQxY','--config'];a43_0x82b4=function(){return _0xcfb3e8;};return a43_0x82b4();}function a43_0x2af6(_0x118f80,_0x126bdd){const _0x82b40=a43_0x82b4();return a43_0x2af6=function(_0x2af623,_0x4d9e16){_0x2af623=_0x2af623-0x15e;let _0x2088a8=_0x82b40[_0x2af623];return _0x2088a8;},a43_0x2af6(_0x118f80,_0x126bdd);}const fs=require('fs'),path=require(a43_0x5e58fb(0x162)),{spawn}=require(a43_0x5e58fb(0x1d9)),{format}=require(a43_0x5e58fb(0x209)),logger=require(a43_0x5e58fb(0x1bd))['winstonLogger'],{default:BrowserStackSetup}=require(a43_0x5e58fb(0x161)),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require(a43_0x5e58fb(0x1a4)),{FRAMEWORKS}=require(a43_0x5e58fb(0x1cb)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a43_0x5e58fb(0x1c8)),{setAccessibilityCapabilities}=require(a43_0x5e58fb(0x1d4)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a43_0x5e58fb(0x217)),TestHubHandler=require(a43_0x5e58fb(0x1fc)),PerformanceTester=require(a43_0x5e58fb(0x1a6)),TestOrchestrationHandler=require(a43_0x5e58fb(0x1fa)),BrowserstackCLI=require(a43_0x5e58fb(0x1a8)),PerformanceEvents=require(a43_0x5e58fb(0x1bb))[a43_0x5e58fb(0x210)],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x24b090,_0x488577)=>{const _0xd011c4=a43_0x5e58fb,_0x22fa76={'gtlFv':function(_0xabcc65){return _0xabcc65();},'wgzPi':function(_0x52e6e9,_0x397356){return _0x52e6e9(_0x397356);},'RCzrw':'resolvedConfigFile','SiQxY':_0xd011c4(0x177)},_0x5acb6f=!helper[_0xd011c4(0x1bf)](_0x24b090[_0xd011c4(0x181)]),_0x2d5f15=_0x5acb6f?path[_0xd011c4(0x204)](process[_0xd011c4(0x167)](),_0x24b090[_0xd011c4(0x181)]):process['cwd'](),{resolveConfigFile:_0xde96a,resolveConfigLocation:_0x25d55c}=helper['isYarnPnP']()?helper[_0xd011c4(0x19c)](..._0x22fa76[_0xd011c4(0x176)](getConfigLoaderPath)):helper['requirePWModule'][_0xd011c4(0x192)](null,_0x22fa76['gtlFv'](getConfigLoaderPath)),_0x4fd32a=_0xde96a?_0x22fa76[_0xd011c4(0x185)](_0xde96a,_0x2d5f15):helper[_0xd011c4(0x1ab)](_0x22fa76[_0xd011c4(0x185)](_0x25d55c,_0x2d5f15),[_0x22fa76[_0xd011c4(0x1b5)]]),_0x44bb26={};if(_0x5acb6f){const _0x51bc11=_0x488577[_0xd011c4(0x18c)](_0x20852a=>_0x20852a===_0xd011c4(0x17f)||_0x20852a==='-c'||_0x20852a[_0xd011c4(0x216)]('--config='));_0x488577['splice'](_0x51bc11,_0x488577[_0x51bc11][_0xd011c4(0x216)](_0x22fa76[_0xd011c4(0x17e)])?0x1:0x2);}const _0x2e464a={};return _0x2e464a['path']=_0x4fd32a,_0x2e464a[_0xd011c4(0x181)]=_0x44bb26,_0x2e464a;},handleO11yRerun=_0x4f1117=>{const _0x1fc979=a43_0x5e58fb,_0x4075f5={};_0x4075f5[_0x1fc979(0x19a)]=_0x1fc979(0x1e9);const _0x39a48a=_0x4075f5,_0x3f3909=helper[_0x1fc979(0x193)](process['env'][_0x1fc979(0x180)]);if(_0x3f3909){const _0x3d59c7=process[_0x1fc979(0x190)][_0x1fc979(0x1ee)],_0x2fd61d=[];if(helper[_0x1fc979(0x1dd)](_0x3d59c7)&&!helper['isUndefined'](_0x3d59c7)){_0x3d59c7[_0x1fc979(0x1fb)](',')[_0x1fc979(0x19f)](_0x4ceea3=>{const _0x1c0bda=_0x1fc979;_0x2fd61d[_0x1c0bda(0x1de)]('('+_0x4ceea3['trim']()+')');});const _0x476e77='^'+_0x2fd61d[_0x1fc979(0x178)]('|')+'$';_0x4f1117[_0x1fc979(0x1de)](_0x39a48a[_0x1fc979(0x19a)],_0x476e77);}}},spawnOriginalProcess=_0x2daec1=>{const _0x558298=a43_0x5e58fb,_0x24524d={'uoKfg':function(_0x5d9578,_0x57fd41,_0x3db20a,_0x5d0276){return _0x5d9578(_0x57fd41,_0x3db20a,_0x5d0276);},'Xlrxb':'yarn','giTnV':'npx','VXvAo':_0x558298(0x224),'mzmBh':function(_0x1f7560,_0x17da52){return _0x1f7560===_0x17da52;},'SvtoV':_0x558298(0x1ad),'BTJMG':_0x558298(0x1a7)};_0x24524d['uoKfg'](spawn,helper[_0x558298(0x164)]()?_0x24524d[_0x558298(0x1c9)]:_0x24524d['giTnV'],[_0x24524d['VXvAo'],..._0x2daec1[_0x558298(0x1b3)](0x1)],{'shell':_0x24524d[_0x558298(0x1af)](process[_0x558298(0x1a0)],_0x24524d['SvtoV']),'stdio':_0x24524d[_0x558298(0x1f6)],'cwd':process[_0x558298(0x167)]()});},isTestCommand=(_0x138c25,_0x18bd90)=>{const _0xffc6db=a43_0x5e58fb,_0x26658b={};_0x26658b[_0xffc6db(0x20c)]=function(_0x229f1a,_0x4a9f7f){return _0x229f1a>_0x4a9f7f;},_0x26658b['pxDoW']=function(_0x240ee0,_0x3abdb4){return _0x240ee0===_0x3abdb4;},_0x26658b['gqJng']=_0xffc6db(0x21e);const _0x47e8af=_0x26658b;if(_0x47e8af[_0xffc6db(0x20c)](_0x18bd90[_0xffc6db(0x225)],0x1)&&_0x47e8af[_0xffc6db(0x1ca)](_0x18bd90[0x1],_0x47e8af[_0xffc6db(0x1e1)]))return!![];return![];};async function run(_0x446d6d,_0x2ebfa4,_0x10a64d){const _0x14662e=a43_0x5e58fb,_0xd34306={'lccCi':function(_0x4153f0,_0xa20c9a){return _0x4153f0(_0xa20c9a);},'PIGYn':'.browserstack','CtuVX':_0x14662e(0x1f8),'EMqqP':function(_0x3e9803,_0x106fa1){return _0x3e9803+_0x106fa1;},'AkgrB':_0x14662e(0x198),'dgygF':function(_0x39ded5){return _0x39ded5();},'LZJtX':_0x14662e(0x1b1),'LaDOq':_0x14662e(0x1ec),'BoNPy':function(_0x57c70a,_0x3c57db){return _0x57c70a<_0x3c57db;},'OFJFx':function(_0x46aeed,_0xeabebf){return _0x46aeed===_0xeabebf;},'oWNvt':_0x14662e(0x21a),'sfWoy':_0x14662e(0x206),'oBtRo':function(_0x377632,_0xe235c7){return _0x377632>=_0xe235c7;},'UBSzb':function(_0x1ad0e8,_0x59788e){return _0x1ad0e8===_0x59788e;},'FmrvG':'automation','BqKDh':function(_0x32144a,_0x552aa7){return _0x32144a!=_0x552aa7;},'rJQem':function(_0x1f6e2d,_0x3d2664,_0x473666){return _0x1f6e2d(_0x3d2664,_0x473666);},'hHkdk':function(_0x2744c7,_0x4e1fe3){return _0x2744c7===_0x4e1fe3;},'VuIBu':_0x14662e(0x17c),'HqBWy':function(_0x3e9677,_0x38ba4d){return _0x3e9677(_0x38ba4d);},'lZXPE':function(_0x44abf5,_0x2a7ecb){return _0x44abf5(_0x2a7ecb);},'sACBo':'browserstackSetupConfig.json','hNfIc':_0x14662e(0x21c),'eDzJs':_0x14662e(0x1f0),'QoiFk':function(_0x34ac13,_0x2821f4){return _0x34ac13-_0x2821f4;},'LhbqD':function(_0x88d0b2,_0x5ee4a4){return _0x88d0b2+_0x5ee4a4;},'NkWDU':'Updated\x20config\x20file\x20name\x20to\x20-\x20','omMMG':function(_0x4a7fa7,_0x5d0f71){return _0x4a7fa7>_0x5d0f71;},'PWBrQ':function(_0x4714bd,_0x355771){return _0x4714bd+_0x355771;},'fuIpk':_0x14662e(0x15e),'aPvtk':_0x14662e(0x224),'Xmzvh':function(_0x8cc5ec,_0xbdc403,_0x3889bb,_0x5c9a){return _0x8cc5ec(_0xbdc403,_0x3889bb,_0x5c9a);},'hwBsE':_0x14662e(0x1e0),'dFtNf':'npx','zhZQr':_0x14662e(0x21e),'gZNdl':_0x14662e(0x17f),'nfFao':function(_0x35ed0d,_0xe22568){return _0x35ed0d===_0xe22568;},'Wzcyv':_0x14662e(0x1ad),'BhUfO':function(_0xca6871,_0x4129e7){return _0xca6871===_0x4129e7;},'etVrS':_0x14662e(0x1a7),'ovCBk':'close','XdsNc':function(_0x5a05c4,_0x2333c1){return _0x5a05c4|_0x2333c1;},'dYRpM':_0x14662e(0x18f),'fAkeX':_0x14662e(0x17b),'aHUEx':function(_0x27f900,_0x5871f7){return _0x27f900(_0x5871f7);}};try{const _0x140f97=path[_0x14662e(0x178)](helper[_0x14662e(0x1d7)](),_0xd34306[_0x14662e(0x1c1)]);try{fs[_0x14662e(0x20d)](_0x140f97,_0xd34306['XdsNc'](fs[_0x14662e(0x171)][_0x14662e(0x1df)],fs[_0x14662e(0x171)][_0x14662e(0x18a)]));}catch(_0x4e7b7d){ClientTroubleShootingService[_0x14662e(0x219)]();}}catch(_0x44b2f9){logger['debug'](_0xd34306[_0x14662e(0x1d1)](_0xd34306['dYRpM'],_0x44b2f9));}try{const _0x5eafa7=path[_0x14662e(0x178)](helper[_0x14662e(0x1d7)](),_0xd34306[_0x14662e(0x1c1)],_0xd34306[_0x14662e(0x1a1)]);fs[_0x14662e(0x170)](_0x5eafa7)&&fs[_0x14662e(0x1cf)](_0x5eafa7);}catch(_0x11df2a){logger[_0x14662e(0x1db)](_0xd34306[_0x14662e(0x197)](_0xd34306[_0x14662e(0x1a3)],_0x11df2a));}if(!_0xd34306[_0x14662e(0x205)](isTestCommand,_0x446d6d,_0x2ebfa4)){_0xd34306[_0x14662e(0x1ac)](spawnOriginalProcess,_0x2ebfa4);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x14662e(0x21b)],async()=>{const _0x353443=_0x14662e,_0x35025a={'hAlBp':function(_0xcfa3fe,_0x13fa29){return _0xd34306['lccCi'](_0xcfa3fe,_0x13fa29);},'dWfaz':_0xd34306[_0x353443(0x1c1)],'oaPyo':_0xd34306[_0x353443(0x1a1)],'bxdXD':function(_0x2ab7a0,_0x3c6e28){return _0xd34306['EMqqP'](_0x2ab7a0,_0x3c6e28);},'YMHau':_0xd34306[_0x353443(0x222)],'GIulR':function(_0x4923a6){const _0x1ceed6=_0x353443;return _0xd34306[_0x1ceed6(0x1bc)](_0x4923a6);},'RtKcp':function(_0x4f68ec){return _0xd34306['dgygF'](_0x4f68ec);},'iTsYJ':_0xd34306[_0x353443(0x1e6)]};if(!_0x10a64d['config']){logger['error'](_0xd34306[_0x353443(0x211)]);return;}await _0x10a64d['initialize'](_0x446d6d),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x353443(0x195)]),BrowserstackCLI[_0x353443(0x163)]()[_0x353443(0x1fe)](_0x10a64d['config'],_0x10a64d[_0x353443(0x226)],_0x10a64d[_0x353443(0x1c3)]),await BrowserstackCLI[_0x353443(0x163)]()[_0x353443(0x1aa)]();!BrowserstackCLI[_0x353443(0x163)]()[_0x353443(0x191)]()&&await _0x10a64d[_0x353443(0x196)]();for(var _0x5c7951=0x0;_0xd34306[_0x353443(0x1e5)](_0x5c7951,constants[_0x353443(0x19b)]['length']);_0x5c7951++){var _0x249140=constants[_0x353443(0x19b)][_0x5c7951];process[_0x353443(0x190)][_0x249140]&&await ClientTroubleShootingService[_0x353443(0x21f)](_0x249140);}const _0x58292c=BrowserstackCLI[_0x353443(0x163)]()[_0x353443(0x199)]();!helper[_0x353443(0x1ed)](_0x58292c[_0x353443(0x200)])&&(process[_0x353443(0x190)][_0x353443(0x221)]=!![]);_0xd34306[_0x353443(0x218)](_0x58292c[_0x353443(0x200)],![])&&(process['env'][_0x353443(0x221)]=_0xd34306[_0x353443(0x175)],_0x2ebfa4=_0x2ebfa4[_0x353443(0x1b9)](_0x13fb9f=>_0x13fb9f!==_0x353443(0x1c5)));const _0x8c51e8=_0x2ebfa4[_0x353443(0x1e3)](_0xd34306[_0x353443(0x165)]);(_0xd34306[_0x353443(0x1eb)](_0x8c51e8,0x0)||_0xd34306[_0x353443(0x184)](_0x58292c[_0x353443(0x168)],![]))&&(process[_0x353443(0x190)][_0x353443(0x19e)]=_0xd34306[_0x353443(0x175)],_0x2ebfa4=_0x2ebfa4[_0x353443(0x1b9)](_0x5c6699=>_0x5c6699!==_0x353443(0x206)));!helper[_0x353443(0x1bf)](_0x10a64d['cliConfig'])&&_0x10a64d['cliConfig'][_0x353443(0x1c2)](_0xd34306[_0x353443(0x1d8)])&&(process[_0x353443(0x190)][_0x353443(0x221)]=_0x10a64d[_0x353443(0x1c3)][_0x353443(0x1c7)](_0xd34306[_0x353443(0x1d8)])||!![]);_0xd34306[_0x353443(0x17a)](_0x10a64d[_0x353443(0x181)][_0x353443(0x168)],null)&&!helper['isTrue'](process[_0x353443(0x190)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x353443(0x190)][_0x353443(0x19e)]=process['env'][_0x353443(0x19e)]||_0x10a64d[_0x353443(0x181)][_0x353443(0x168)]);const _0xb665a5=!helper['isFalse'](process['env'][_0x353443(0x19e)]);_0x10a64d['config'][_0x353443(0x203)]&&(process[_0x353443(0x190)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x10a64d[_0x353443(0x181)][_0x353443(0x203)]));let _0x46807c=![];_0x10a64d[_0x353443(0x181)][_0x353443(0x187)]&&(_0x46807c=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x10a64d['config']['accessibility']);const _0x4134fc=_0x2ebfa4['concat'](),_0x5b433a=await _0xd34306[_0x353443(0x205)](getUserPlaywrightConfig,_0x446d6d,_0x2ebfa4);if(helper[_0x353443(0x1bf)](_0x5b433a)){_0xd34306[_0x353443(0x1d0)](spawnOriginalProcess,_0x4134fc);return;}const _0x2ced3d=_0x5b433a['path']?path[_0x353443(0x1f5)](_0x5b433a[_0x353443(0x162)]):process['cwd']();process['env'][_0x353443(0x183)]=_0x2ced3d,await PerformanceTester[_0x353443(0x194)](PerformanceEvents[_0x353443(0x166)],async()=>{const _0x31f295=_0x353443;!BrowserstackCLI[_0x31f295(0x163)]()[_0x31f295(0x191)]()&&await TestHubHandler[_0x31f295(0x179)](FRAMEWORKS['PLAYWRIGHT'],_0x10a64d),_0xb665a5&&_0x35025a[_0x31f295(0x188)](handleO11yRerun,_0x2ebfa4);})();if(!BrowserstackCLI['getInstance']()[_0x353443(0x191)]()){let _0x4080f8=_0xd34306['hHkdk'](process[_0x353443(0x190)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0xd34306[_0x353443(0x1b2)]);_0x4080f8=_0x4080f8||_0xd34306[_0x353443(0x1d6)](checkAccessibilityPlatformConfig,_0x10a64d[_0x353443(0x181)]),process[_0x353443(0x190)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x4080f8,_0x4080f8&&_0xd34306['lZXPE'](setAccessibilityCapabilities,_0x10a64d[_0x353443(0x181)]);}const _0x2357dd=path['join'](_0x5b433a['path']?path[_0x353443(0x1f5)](_0x5b433a[_0x353443(0x162)]):process[_0x353443(0x167)](),_0xd34306[_0x353443(0x174)]);fs[_0x353443(0x1b7)](_0x2357dd,helper[_0x353443(0x1cc)](_0x10a64d[_0x353443(0x181)])),process['env']['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x2357dd,helper[_0x353443(0x173)]();let _0x1cf7cd='';_0xd34306[_0x353443(0x16b)](helper[_0x353443(0x1a5)](),constants[_0x353443(0x215)]['MODULE'])?_0x1cf7cd=_0xd34306[_0x353443(0x1e4)]:_0x1cf7cd=_0xd34306[_0x353443(0x1f3)];let _0x5d3fcd='';if(helper['isTypescriptProject'](_0x5b433a[_0x353443(0x162)])){_0x5d3fcd=_0x353443(0x19d);const _0x319a7c=_0x1cf7cd[_0x353443(0x1fb)]('.');_0x319a7c[_0xd34306[_0x353443(0x212)](_0x319a7c[_0x353443(0x225)],0x1)]='ts',_0x1cf7cd=_0x319a7c[_0x353443(0x178)]('.'),logger[_0x353443(0x1db)](_0xd34306[_0x353443(0x197)](_0xd34306['NkWDU'],_0x1cf7cd));}else _0x5d3fcd=_0x353443(0x18b);const _0x4690f8=path['join'](_0x5b433a[_0x353443(0x162)]?path[_0x353443(0x1f5)](_0x5b433a['path']):process[_0x353443(0x167)](),_0x1cf7cd);let _0x5b1ecd=_0x5b433a[_0x353443(0x162)]?_0x5b433a[_0x353443(0x162)]:'';_0x5b1ecd=_0xd34306[_0x353443(0x16d)](_0x5b1ecd[_0x353443(0x225)],0x0)?path[_0x353443(0x204)](_0x5b1ecd):'',process[_0x353443(0x190)][_0x353443(0x17d)]=_0x5b1ecd;const _0x6465c4=helper[_0x353443(0x1ba)](_0x10a64d['config']),_0x2d50ab=helper['getNoProxy'](_0x10a64d[_0x353443(0x181)]);logger[_0x353443(0x1db)]('Proxy\x20url\x20:\x20'+_0x6465c4),logger[_0x353443(0x1db)](_0x353443(0x1e2)+_0x2d50ab);_0x6465c4&&(_0x5d3fcd=_0xd34306[_0x353443(0x1d1)](_0x353443(0x213)+_0x6465c4+_0x353443(0x20f)+_0x2d50ab+'\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();',_0x5d3fcd));helper[_0x353443(0x1f4)]({},_0x2ebfa4),fs['writeFileSync'](_0x4690f8,_0x5d3fcd);let _0x3505b0=[];const _0x1255c5=new TestOrchestrationHandler(_0x10a64d['config']);if(_0x1255c5['isTestOrchestrationEnabled']()){logger['debug'](_0xd34306['fuIpk']);const _0x4549cf=await _0x1255c5[_0x353443(0x208)](_0x5b1ecd,_0x2ebfa4['slice'](0x2));logger[_0x353443(0x1db)]('Found:\x20'+JSON[_0x353443(0x1d3)](_0x4549cf)+_0x353443(0x1c0));const _0x4ec039=await _0x1255c5[_0x353443(0x1c6)](_0x4549cf);logger[_0x353443(0x1db)](_0x353443(0x20a)+JSON[_0x353443(0x1d3)](_0x4ec039)),_0x4ec039&&_0xd34306['omMMG'](_0x4ec039[_0x353443(0x225)],0x0)&&(process[_0x353443(0x190)][_0x353443(0x223)]=_0x4ec039[_0x353443(0x178)](','),_0xd34306[_0x353443(0x1e5)](_0x4ec039['length'],_0x4549cf[_0x353443(0x225)])&&(_0x3505b0=_0x4ec039[_0x353443(0x19f)](_0x3ea424=>path['relative'](process[_0x353443(0x167)](),_0x3ea424)[_0x353443(0x1fb)](path[_0x353443(0x18e)])[_0x353443(0x178)]('/'))));}PerformanceTester[_0x353443(0x189)](PerformanceEvents[_0x353443(0x1d5)]),process[_0x353443(0x190)][_0x353443(0x1b0)]=process[_0x353443(0x190)][_0x353443(0x1b0)]||_0xd34306['aPvtk'];const _0x47deb2=_0xd34306['Xmzvh'](spawn,helper[_0x353443(0x164)]()?_0xd34306[_0x353443(0x1da)]:_0xd34306['dFtNf'],[_0xd34306[_0x353443(0x20e)],_0xd34306[_0x353443(0x1f7)],_0xd34306['gZNdl'],_0xd34306[_0x353443(0x16e)](process[_0x353443(0x1a0)],_0xd34306[_0x353443(0x1be)])?'\x22'+_0x4690f8+'\x22':_0x4690f8,..._0x2ebfa4[_0x353443(0x1b3)](0x2),..._0x3505b0],{'shell':_0xd34306[_0x353443(0x1f2)](process[_0x353443(0x1a0)],_0xd34306[_0x353443(0x1be)]),'stdio':_0xd34306['etVrS'],'cwd':process[_0x353443(0x167)](),'env':Object['assign']({},process[_0x353443(0x190)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x446d6d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x10a64d[_0x353443(0x181)][_0x353443(0x1e8)][_0x353443(0x1a2)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x10a64d[_0x353443(0x181)]['testContextOptions'][_0x353443(0x201)],'BROWSERSTACK_LOG_LEVEL':_0x10a64d[_0x353443(0x181)][_0x353443(0x1f9)]})}),_0x1625fe=()=>{const _0x1fb173=_0x353443;try{const _0x532ebb=path[_0x1fb173(0x178)](helper[_0x1fb173(0x1d7)](),_0x35025a[_0x1fb173(0x1ff)],_0x35025a[_0x1fb173(0x1dc)]);if(fs[_0x1fb173(0x170)](_0x532ebb)){let _0x11f16f=fs['readFileSync'](_0x532ebb);_0x11f16f=JSON['parse'](_0x11f16f),_0x10a64d['errorMessage']=_0x11f16f,fs[_0x1fb173(0x1cf)](_0x532ebb);}}catch(_0x55f5ab){logger['debug'](_0x35025a[_0x1fb173(0x1f1)](_0x35025a[_0x1fb173(0x172)],_0x55f5ab));}};_0x47deb2['on'](_0xd34306[_0x353443(0x1ea)],async _0xf62e=>{const _0x48acd8=_0x353443,_0x8d9783={};_0x8d9783[_0x48acd8(0x20b)]=_0x35025a[_0x48acd8(0x1ff)];const _0x18203a=_0x8d9783;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x35025a[_0x48acd8(0x1e7)](_0x1625fe),await TestHubHandler[_0x48acd8(0x18d)](),await ClientTroubleShootingService[_0x48acd8(0x1fd)]();const _0x5991f7=BrowserstackCLI[_0x48acd8(0x16c)]();await BrowserstackCLI[_0x48acd8(0x163)]()[_0x48acd8(0x18d)](),TestDetails[_0x48acd8(0x186)](),_0x35025a[_0x48acd8(0x169)](printBuildLink),await utilities[_0x48acd8(0x16a)](_0x10a64d,_0x5991f7),process[_0x48acd8(0x160)]=_0xf62e,logger[_0x48acd8(0x1db)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0xf62e),logger[_0x48acd8(0x1ce)](_0x48acd8(0x21d)+_0x4690f8),fs['unlinkSync'](_0x4690f8);fs[_0x48acd8(0x170)](_0x2357dd)&&(logger['debug'](_0x48acd8(0x21d)+_0x2357dd),fs['unlinkSync'](_0x2357dd));const _0x829c50=fs[_0x48acd8(0x1ef)](path[_0x48acd8(0x178)](helper['homedir'](),_0x35025a[_0x48acd8(0x1ff)]))[_0x48acd8(0x1b9)](_0x6bf9be=>_0x6bf9be[_0x48acd8(0x216)](_0x48acd8(0x1b8)));_0x829c50[_0x48acd8(0x15f)](_0x4ddd13=>{const _0x587602=_0x48acd8;fs['unlinkSync'](path['join'](helper['homedir'](),_0x18203a[_0x587602(0x20b)],_0x4ddd13));});}catch(_0x65fcc7){logger[_0x48acd8(0x1db)](_0x35025a[_0x48acd8(0x1f1)](_0x35025a['iTsYJ'],_0x65fcc7));}});})();}module[a43_0x5e58fb(0x1cd)]=run;
@@ -1 +1 @@
1
- function a44_0x5933(){const _0x32cb54=['debug','resolve','../../helpers/test-observability/utils','2414716UNKhCx','fork','./patches','error','toString','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','config','1.33.0','274550mOcOrY','3122qkxktY','Ifslb','util','env','Ptwmn','7003944SvRJLG','rGOMV','../../helpers/logger','FTMGx','installAll','format','driver-init\x20capture\x20install\x20failed:\x20','compareVersions','Path\x20','winstonLogger','3693048pDyruJ','IdKlf','Call\x20to\x20child\x20fork\x20with\x20args\x20','pSMpg','7845pnFzqP','GbNbW','./reporter/pwUtils','PLAYWRIGHT','\x20is\x20not\x20found','17370QKBkmP','requirePWModule','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','hvmOD','188682lnEedH','Not\x20able\x20to\x20import\x20globalSetup','apply','playwright','212lkxIrD','./mock-process.js','function','63DmSxsD','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','RcurJ','../../helpers/test-observability/constants','message','NCEyn'];a44_0x5933=function(){return _0x32cb54;};return a44_0x5933();}function a44_0x161c(_0x5caea9,_0x588f80){const _0x5933df=a44_0x5933();return a44_0x161c=function(_0x161c2a,_0x1d784f){_0x161c2a=_0x161c2a-0x194;let _0x3d212a=_0x5933df[_0x161c2a];return _0x3d212a;},a44_0x161c(_0x5caea9,_0x588f80);}const a44_0x1ea15c=a44_0x161c;(function(_0x544a8e,_0x540c5f){const _0xac303f=a44_0x161c,_0x4b4bfb=_0x544a8e();while(!![]){try{const _0x507e66=parseInt(_0xac303f(0x19a))/0x1+parseInt(_0xac303f(0x1aa))/0x2+parseInt(_0xac303f(0x1c2))/0x3+parseInt(_0xac303f(0x19e))/0x4*(parseInt(_0xac303f(0x1c6))/0x5)+parseInt(_0xac303f(0x196))/0x6*(-parseInt(_0xac303f(0x1b3))/0x7)+-parseInt(_0xac303f(0x1b8))/0x8+parseInt(_0xac303f(0x1a1))/0x9*(parseInt(_0xac303f(0x1b2))/0xa);if(_0x507e66===_0x540c5f)break;else _0x4b4bfb['push'](_0x4b4bfb['shift']());}catch(_0xe8df14){_0x4b4bfb['push'](_0x4b4bfb['shift']());}}}(a44_0x5933,0xb39f7));const util=require(a44_0x1ea15c(0x1b5)),child_process=require('child_process'),{FRAMEWORKS}=require(a44_0x1ea15c(0x1a4)),{getFrameworkVersion,debug}=require(a44_0x1ea15c(0x1a9)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a44_0x1ea15c(0x1c8)),{mockIsWorkerRedundant}=require(a44_0x1ea15c(0x1ac)),logger=require(a44_0x1ea15c(0x1ba))[a44_0x1ea15c(0x1c1)];try{require('../../helpers/driverInitErrorReporter')[a44_0x1ea15c(0x1bc)](a44_0x1ea15c(0x19d));}catch(a44_0x389798){logger[a44_0x1ea15c(0x1a7)](a44_0x1ea15c(0x1be)+(a44_0x389798&&a44_0x389798[a44_0x1ea15c(0x1a5)]));}module['exports']=async function(_0x27722c){const _0x3e4adb=a44_0x1ea15c,_0x36eb99={'RcurJ':function(_0x11549e,_0x47235a){return _0x11549e(_0x47235a);},'WEwZp':function(_0x3c6118){return _0x3c6118();},'GbNbW':_0x3e4adb(0x19f),'Ptwmn':function(_0x415217,_0x432c17){return _0x415217(_0x432c17);},'rGOMV':'Running\x20existing\x20global\x20setup','IdKlf':function(_0x29fc99){return _0x29fc99();},'pSMpg':function(_0x1368bc,_0x3327bd){return _0x1368bc(_0x3327bd);},'dtPJX':function(_0x327dc9,_0x366f49){return _0x327dc9>=_0x366f49;},'Ifslb':_0x3e4adb(0x1b1),'hvmOD':function(_0x40a677,_0x3dc2f2,_0x41160b){return _0x40a677(_0x3dc2f2,_0x41160b);},'cwqiH':function(_0x161319,_0x316fa3){return _0x161319!==_0x316fa3;},'zfYIg':_0x3e4adb(0x1a0),'FTMGx':_0x3e4adb(0x19b),'NCEyn':function(_0x47782c,_0x70bc5d){return _0x47782c(_0x70bc5d);}},_0x4b3fed=child_process['fork'];if(helper['isHandlePWErrorSet']())try{_0x36eb99['WEwZp'](mockIsWorkerRedundant);}catch(_0x124cd3){logger[_0x3e4adb(0x1a7)](_0x3e4adb(0x198)+util[_0x3e4adb(0x1bd)](_0x124cd3));}child_process[_0x3e4adb(0x1ab)]=function(){const _0x36eece=_0x3e4adb;return _0x36eb99[_0x36eece(0x1a3)](debug,_0x36eece(0x1c4)+arguments[0x0]),arguments[0x0]['includes'](_0x36eb99['WEwZp'](getForkProcessPath))?arguments[0x0]=require[_0x36eece(0x1a8)](_0x36eb99[_0x36eece(0x1c7)]):logger[_0x36eece(0x1ad)](_0x36eece(0x1c0)+_0x36eb99['WEwZp'](getForkProcessPath)+_0x36eece(0x195)),_0x4b3fed[_0x36eece(0x19c)](null,arguments);};if(process[_0x3e4adb(0x1b6)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x36eb99[_0x3e4adb(0x1b7)](debug,_0x36eb99[_0x3e4adb(0x1b9)]);try{const {loadGlobalHook:_0x49358f}=helper[_0x3e4adb(0x197)][_0x3e4adb(0x19c)](null,_0x36eb99[_0x3e4adb(0x1c3)](getLoadUtilsPath)),_0x547497=_0x36eb99[_0x3e4adb(0x1c5)](getFrameworkVersion,FRAMEWORKS[_0x3e4adb(0x194)]);let _0x2dde24=_0x27722c;if(_0x36eb99['dtPJX'](helper[_0x3e4adb(0x1bf)](_0x547497,_0x36eb99[_0x3e4adb(0x1b4)]),0x0)){const _0x4680c6={};_0x4680c6[_0x3e4adb(0x1b0)]=_0x27722c,_0x2dde24=_0x4680c6;}const _0xa8d83b=await _0x36eb99[_0x3e4adb(0x199)](_0x49358f,_0x2dde24,process[_0x3e4adb(0x1b6)][_0x3e4adb(0x1a2)]);if(_0x36eb99['cwqiH'](typeof _0xa8d83b,_0x36eb99['zfYIg']))throw new Error(_0x36eb99[_0x3e4adb(0x1bb)]);return _0xa8d83b[_0x3e4adb(0x19c)](null,arguments);}catch(_0x47b611){_0x36eb99[_0x3e4adb(0x1a6)](debug,_0x3e4adb(0x1af)+_0x47b611[_0x3e4adb(0x1ae)]());}}};
1
+ function a44_0x128b(){const _0x18ffff=['20VnFLMS','apply','lHKhy','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','993900ByMkIT','../../helpers/helper','qPNqk','1751472vYhPkN','4037031rIlrOb','message','PLAYWRIGHT','7XYKhEh','FrcNe','beedO','./mock-process.js','requirePWModule','fuIEk','toString','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','fork','exports','64742eDpKmW','util','Path\x20','1789560eFsNEJ','config','resolve','./reporter/pwUtils','../../helpers/driverInitErrorReporter','driver-init\x20capture\x20install\x20failed:\x20','function','\x20is\x20not\x20found','child_process','YnwNB','Call\x20to\x20child\x20fork\x20with\x20args\x20','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/logger','../../helpers/test-observability/constants','./patches','winstonLogger','527064vEypvB','../../helpers/test-observability/utils','6djiJGN','uNGcr','isHandlePWErrorSet','QCvRf','includes','VSPgk','format','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','oaOlR','installAll','error','playwright','1028292xrMkqT'];a44_0x128b=function(){return _0x18ffff;};return a44_0x128b();}const a44_0x5aceaa=a44_0x12c9;(function(_0x44d17a,_0x73d3d1){const _0x4423e5=a44_0x12c9,_0x2b6049=_0x44d17a();while(!![]){try{const _0x1c89f6=parseInt(_0x4423e5(0xa5))/0x1*(-parseInt(_0x4423e5(0xba))/0x2)+-parseInt(_0x4423e5(0x8f))/0x3+-parseInt(_0x4423e5(0x97))/0x4+parseInt(_0x4423e5(0x94))/0x5+parseInt(_0x4423e5(0xb8))/0x6*(-parseInt(_0x4423e5(0x9b))/0x7)+parseInt(_0x4423e5(0xa8))/0x8+-parseInt(_0x4423e5(0x98))/0x9*(-parseInt(_0x4423e5(0x90))/0xa);if(_0x1c89f6===_0x73d3d1)break;else _0x2b6049['push'](_0x2b6049['shift']());}catch(_0x3be1d1){_0x2b6049['push'](_0x2b6049['shift']());}}}(a44_0x128b,0x3eb7b));const util=require(a44_0x5aceaa(0xa6)),child_process=require(a44_0x5aceaa(0xb0)),{FRAMEWORKS}=require(a44_0x5aceaa(0xb5)),{getFrameworkVersion,debug}=require(a44_0x5aceaa(0xb9)),helper=require(a44_0x5aceaa(0x95)),{getLoadUtilsPath,getForkProcessPath}=require(a44_0x5aceaa(0xab)),{mockIsWorkerRedundant}=require(a44_0x5aceaa(0xb6)),logger=require(a44_0x5aceaa(0xb4))[a44_0x5aceaa(0xb7)];try{require(a44_0x5aceaa(0xac))[a44_0x5aceaa(0x8c)](a44_0x5aceaa(0x8e));}catch(a44_0x2841a5){logger['debug'](a44_0x5aceaa(0xad)+(a44_0x2841a5&&a44_0x2841a5[a44_0x5aceaa(0x99)]));}function a44_0x12c9(_0x4a304d,_0x59715f){const _0x128b7d=a44_0x128b();return a44_0x12c9=function(_0x12c99a,_0x1b4716){_0x12c99a=_0x12c99a-0x84;let _0x191a50=_0x128b7d[_0x12c99a];return _0x191a50;},a44_0x12c9(_0x4a304d,_0x59715f);}module[a44_0x5aceaa(0xa4)]=async function(_0x542291){const _0x3f8b09=a44_0x5aceaa,_0xeaa33={'beedO':function(_0x2a7eee,_0x25d174){return _0x2a7eee(_0x25d174);},'vqCIP':function(_0x1af77b){return _0x1af77b();},'oXMpZ':_0x3f8b09(0x9e),'QCvRf':function(_0x1f3cdb){return _0x1f3cdb();},'qPNqk':function(_0x1bbbb5,_0x1bfe4b){return _0x1bbbb5(_0x1bfe4b);},'FrcNe':'Running\x20existing\x20global\x20setup','QxYqu':function(_0x2726c1){return _0x2726c1();},'lHKhy':function(_0x1a2d4e,_0x48f553){return _0x1a2d4e(_0x48f553);},'BkeEt':function(_0x587b0b,_0x8731ba){return _0x587b0b>=_0x8731ba;},'oaOlR':'1.33.0','YnwNB':function(_0x271631,_0x4ddbcb,_0x851d4d){return _0x271631(_0x4ddbcb,_0x851d4d);},'uNGcr':function(_0x1ae30,_0x14f7e6){return _0x1ae30!==_0x14f7e6;},'VSPgk':_0x3f8b09(0xae),'fuIEk':_0x3f8b09(0xb3)},_0x3deee9=child_process[_0x3f8b09(0xa3)];if(helper[_0x3f8b09(0x85)]())try{_0xeaa33[_0x3f8b09(0x86)](mockIsWorkerRedundant);}catch(_0x2f57b7){logger['debug'](_0x3f8b09(0x8a)+util[_0x3f8b09(0x89)](_0x2f57b7));}child_process[_0x3f8b09(0xa3)]=function(){const _0x4871bb=_0x3f8b09;return _0xeaa33[_0x4871bb(0x9d)](debug,_0x4871bb(0xb2)+arguments[0x0]),arguments[0x0][_0x4871bb(0x87)](_0xeaa33['vqCIP'](getForkProcessPath))?arguments[0x0]=require[_0x4871bb(0xaa)](_0xeaa33['oXMpZ']):logger[_0x4871bb(0x8d)](_0x4871bb(0xa7)+_0xeaa33[_0x4871bb(0x86)](getForkProcessPath)+_0x4871bb(0xaf)),_0x3deee9['apply'](null,arguments);};if(process['env'][_0x3f8b09(0x93)]){_0xeaa33[_0x3f8b09(0x96)](debug,_0xeaa33[_0x3f8b09(0x9c)]);try{const {loadGlobalHook:_0x5ea109}=helper[_0x3f8b09(0x9f)][_0x3f8b09(0x91)](null,_0xeaa33['QxYqu'](getLoadUtilsPath)),_0x27de47=_0xeaa33[_0x3f8b09(0x92)](getFrameworkVersion,FRAMEWORKS[_0x3f8b09(0x9a)]);let _0x347c21=_0x542291;if(_0xeaa33['BkeEt'](helper['compareVersions'](_0x27de47,_0xeaa33[_0x3f8b09(0x8b)]),0x0)){const _0x380e2a={};_0x380e2a[_0x3f8b09(0xa9)]=_0x542291,_0x347c21=_0x380e2a;}const _0xba02e6=await _0xeaa33[_0x3f8b09(0xb1)](_0x5ea109,_0x347c21,process['env'][_0x3f8b09(0x93)]);if(_0xeaa33[_0x3f8b09(0x84)](typeof _0xba02e6,_0xeaa33[_0x3f8b09(0x88)]))throw new Error(_0xeaa33[_0x3f8b09(0xa0)]);return _0xba02e6[_0x3f8b09(0x91)](null,arguments);}catch(_0x1e408b){_0xeaa33[_0x3f8b09(0x96)](debug,_0x3f8b09(0xa2)+_0x1e408b[_0x3f8b09(0xa1)]());}}};