browserstack-node-sdk 1.53.5 → 1.53.6

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 (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a64_0x4c004=a64_0x2eb2;(function(_0xa8bbd0,_0x21f977){const _0x40b66e=a64_0x2eb2,_0xcbd953=_0xa8bbd0();while(!![]){try{const _0x38b069=parseInt(_0x40b66e(0x156))/0x1*(parseInt(_0x40b66e(0x175))/0x2)+-parseInt(_0x40b66e(0x181))/0x3+-parseInt(_0x40b66e(0x104))/0x4+-parseInt(_0x40b66e(0x18e))/0x5*(parseInt(_0x40b66e(0xfa))/0x6)+parseInt(_0x40b66e(0x186))/0x7+parseInt(_0x40b66e(0x1a3))/0x8+-parseInt(_0x40b66e(0x136))/0x9*(parseInt(_0x40b66e(0x11b))/0xa);if(_0x38b069===_0x21f977)break;else _0xcbd953['push'](_0xcbd953['shift']());}catch(_0x1de7ed){_0xcbd953['push'](_0xcbd953['shift']());}}}(a64_0x2e11,0x5a39d));const path=require(a64_0x4c004(0x190)),url=require('url'),util=require('util'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a64_0x4c004(0x164)),{o11yErrorHandler}=require(a64_0x4c004(0xfb)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require('../../helpers/logger')[a64_0x4c004(0x155)],constants=require(a64_0x4c004(0x103)),AutomationFramework=require(a64_0x4c004(0x120)),BrowserstackCLI=require(a64_0x4c004(0xff)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a64_0x4c004(0x146)),{platform}=require('os'),getBrowserNameFromChannel=_0x2afa95=>{const _0x358572=a64_0x4c004,_0x39927d={};_0x39927d[_0x358572(0xfc)]='4|5|3|1|0|2',_0x39927d[_0x358572(0x1b1)]='safari',_0x39927d['pXcfj']=_0x358572(0x10e),_0x39927d['GzYrA']=function(_0x3bce31,_0x39f4e3){return _0x3bce31===_0x39f4e3;},_0x39927d[_0x358572(0x16c)]=_0x358572(0x184),_0x39927d[_0x358572(0xf7)]='edge',_0x39927d[_0x358572(0x137)]=_0x358572(0x139),_0x39927d[_0x358572(0x13f)]=_0x358572(0xf4);const _0x28cc67=_0x39927d,_0x3fe2d0=_0x28cc67[_0x358572(0xfc)][_0x358572(0x161)]('|');let _0x47e73d=0x0;while(!![]){switch(_0x3fe2d0[_0x47e73d++]){case'0':if(_0x2afa95[_0x358572(0x13a)](_0x28cc67[_0x358572(0x1b1)]))return _0x28cc67[_0x358572(0x1b1)];continue;case'1':if(_0x2afa95[_0x358572(0x13a)](_0x28cc67['pXcfj']))return _0x28cc67[_0x358572(0x188)];continue;case'2':if(_0x28cc67[_0x358572(0x1a1)](_0x2afa95,_0x28cc67['zmnVP']))return _0x28cc67[_0x358572(0x16c)];continue;case'3':if(_0x2afa95[_0x358572(0x13a)](_0x28cc67[_0x358572(0xf7)]))return _0x28cc67[_0x358572(0xf7)];continue;case'4':if(_0x2afa95['includes'](_0x28cc67[_0x358572(0x137)]))return _0x28cc67[_0x358572(0x137)];continue;case'5':if(_0x2afa95[_0x358572(0x13a)](_0x28cc67[_0x358572(0x13f)]))return _0x28cc67[_0x358572(0x13f)];continue;}break;}},getBrowserFromWSEndpoint=_0x3a5d5b=>{const _0x4c51b5=a64_0x4c004,_0x5de99f={'lVFyf':_0x4c51b5(0x194),'qoRsy':function(_0x4faba7,_0x3f045f){return _0x4faba7(_0x3f045f);},'jzSxR':_0x4c51b5(0x179),'eSWPh':_0x4c51b5(0x12e),'xrRHd':_0x4c51b5(0x10e),'nMsQU':'gecko','qZsxf':_0x4c51b5(0x176),'YrvOj':'webkit','yuRyf':_0x4c51b5(0xf4)};try{const _0xafcef5=url[_0x4c51b5(0x125)](_0x3a5d5b),_0x25d483=new URLSearchParams(_0xafcef5[_0x4c51b5(0x18f)]),_0x1b721b=Object[_0x4c51b5(0x13d)](_0x25d483[_0x4c51b5(0x12b)]()),_0x309e95=[_0x1b721b[_0x4c51b5(0xef)],_0x1b721b[_0x4c51b5(0x101)],_0x1b721b['desiredCapabilities'],_0x1b721b[_0x4c51b5(0x116)]];for(const _0xce2826 of _0x309e95){if(_0xce2826)try{const _0x297674=JSON['parse'](_0xce2826),_0x7ed321=_0x297674['browserName']||_0x297674[_0x4c51b5(0x113)]||_0x297674[_0x5de99f[_0x4c51b5(0x178)]]?.[_0x4c51b5(0xea)];if(_0x7ed321)return _0x5de99f[_0x4c51b5(0xf5)](debug,_0x4c51b5(0xfd)+_0x7ed321),_0x7ed321[_0x4c51b5(0x168)]();}catch(_0x4e7095){_0x5de99f['qoRsy'](debug,'Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20'+_0x4e7095[_0x4c51b5(0xf6)]);}}if(_0x3a5d5b[_0x4c51b5(0x13a)](_0x5de99f[_0x4c51b5(0xe6)])||_0x3a5d5b[_0x4c51b5(0x13a)](_0x5de99f['eSWPh']))return _0x5de99f[_0x4c51b5(0xe6)];if(_0x3a5d5b[_0x4c51b5(0x13a)](_0x5de99f[_0x4c51b5(0x100)])||_0x3a5d5b[_0x4c51b5(0x13a)](_0x5de99f[_0x4c51b5(0x14b)]))return _0x5de99f[_0x4c51b5(0x100)];if(_0x3a5d5b[_0x4c51b5(0x13a)](_0x5de99f[_0x4c51b5(0xf3)])||_0x3a5d5b[_0x4c51b5(0x13a)](_0x5de99f['YrvOj']))return _0x5de99f[_0x4c51b5(0xf3)];return _0x5de99f[_0x4c51b5(0x127)];}catch(_0x438858){return _0x5de99f['qoRsy'](debug,_0x4c51b5(0x17e)+_0x438858['toString']()),_0x5de99f[_0x4c51b5(0x127)];}},getCloudProviderFromWsEndpoint=_0x2cd732=>{const _0x580969=a64_0x4c004,_0x3b9749={};_0x3b9749[_0x580969(0x151)]=_0x580969(0x19a),_0x3b9749[_0x580969(0x152)]='unknown_grid';const _0x394d52=_0x3b9749;if(_0x2cd732[_0x580969(0x13a)](constants[_0x580969(0x18b)])||_0x2cd732[_0x580969(0x13a)](constants[_0x580969(0x1a9)]))return _0x394d52[_0x580969(0x151)];return _0x394d52['TwOzh'];},a64_0x2b1656={};a64_0x2b1656[a64_0x4c004(0x191)]=undefined,a64_0x2b1656[a64_0x4c004(0x111)]=undefined,a64_0x2b1656['browser']=undefined,a64_0x2b1656[a64_0x4c004(0xee)]=undefined,a64_0x2b1656[a64_0x4c004(0x119)]=undefined,a64_0x2b1656['platform_version']=undefined,a64_0x2b1656[a64_0x4c004(0x11a)]=undefined,a64_0x2b1656[a64_0x4c004(0x101)]={};class SharedPlaywrightSessionDetails{static ['currentSessionDetails']=a64_0x2b1656;constructor(){const _0x588cc8=a64_0x4c004,_0x3b9dd4={};_0x3b9dd4[_0x588cc8(0x19d)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x1e302d=_0x3b9dd4;throw new Error(_0x1e302d[_0x588cc8(0x19d)]);}static [a64_0x4c004(0x129)]=null;static[a64_0x4c004(0x17d)](_0x3af413,_0x46f2a7,_0x2e4d56=null){const _0x25b11a=a64_0x4c004,_0x173605={'tXwNA':function(_0x284f0e,_0x76c251){return _0x284f0e===_0x76c251;},'lPvyZ':_0x25b11a(0x196),'MUyOy':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','JkAFm':function(_0xf415d2,_0x67e201){return _0xf415d2===_0x67e201;},'oUNwg':'Device\x20Model\x20is\x20not\x20available','cpdfK':_0x25b11a(0x134),'SVJFY':function(_0x2c58a3,_0x51bbfc,_0x46139e){return _0x2c58a3(_0x51bbfc,_0x46139e);},'iLidA':'_browserType','iwoAS':_0x25b11a(0x109),'Pobac':'project','PHhUl':_0x25b11a(0x187),'YGOKy':_0x25b11a(0xf9),'ajjeP':function(_0x4d0c29,_0x3a43db){return _0x4d0c29(_0x3a43db);},'GRULn':function(_0x1c24cd,_0x54866b){return _0x1c24cd===_0x54866b;},'SQJsc':_0x25b11a(0x19a),'oWEbR':_0x25b11a(0x105),'Qqaby':_0x25b11a(0x149),'STopg':function(_0x2fbeaa,_0x3f47ea){return _0x2fbeaa===_0x3f47ea;},'VFHvj':_0x25b11a(0x139),'uaZKQ':function(_0x32593d){return _0x32593d();},'oPnpX':function(_0x299697,_0x5dabb4){return _0x299697&&_0x5dabb4;},'mcJFD':function(_0x51b405){return _0x51b405();},'prRcq':function(_0x1d92e9){return _0x1d92e9();},'cpXdG':function(_0xc7eaf5,_0x55744e){return _0xc7eaf5+_0x55744e;},'klCDn':'playwright-','hKXmx':function(_0x437934,_0x4e9a05,_0x50b0a7){return _0x437934(_0x4e9a05,_0x50b0a7);},'tZxJl':_0x25b11a(0x17d)},_0x4f80c7=this;return _0x173605[_0x25b11a(0x1aa)](o11yErrorHandler,async function _0x115781(_0x9d4b,_0x1ea6a9,_0x38db1a=null){const _0x1d5d4e=_0x25b11a;let _0xcca1a4=_0x9d4b['_name'],_0x1f2c9d=null;_0x9d4b&&_0x173605['tXwNA'](typeof _0x9d4b[_0x1d5d4e(0x148)],_0x173605[_0x1d5d4e(0x16d)])?_0x1f2c9d=_0x9d4b[_0x1d5d4e(0x148)]():logger['debug'](_0x173605[_0x1d5d4e(0x158)]);let _0xfb35dc=null;_0x9d4b&&_0x173605[_0x1d5d4e(0x14a)](typeof _0x9d4b[_0x1d5d4e(0x126)],_0x173605[_0x1d5d4e(0x16d)])?_0xfb35dc=_0x9d4b[_0x1d5d4e(0x126)]():logger[_0x1d5d4e(0x169)](_0x173605['oUNwg']);let _0x23649b=null,_0x20ed6b=null,_0x2b0458=null,_0x52b73b=_0x173605[_0x1d5d4e(0x1a2)];if(_0x9d4b[_0x1d5d4e(0x167)]['isRemote']()||global['accessibilityPlatform']){let _0x2aef39=null;_0x173605[_0x1d5d4e(0x163)](nestedKeyValue,_0x9d4b,[_0x173605[_0x1d5d4e(0x124)],_0x173605[_0x1d5d4e(0x1b0)]])?_0x2aef39=_0x9d4b[_0x1d5d4e(0x11f)]['_defaultConnectOptions']:_0x2aef39=_0x173605['SVJFY'](nestedKeyValue,_0x1ea6a9,[_0x173605[_0x1d5d4e(0x141)],_0x173605[_0x1d5d4e(0x19b)],_0x173605[_0x1d5d4e(0x14c)]]);const _0x51154c=_0x38db1a||_0x2aef39&&_0x2aef39[_0x1d5d4e(0x130)];if(_0x51154c){_0x52b73b=_0x173605['ajjeP'](getCloudProviderFromWsEndpoint,_0x51154c);if(_0x173605[_0x1d5d4e(0x107)](_0x52b73b,_0x173605[_0x1d5d4e(0x108)])){_0x2b0458=constants[_0x1d5d4e(0x145)][_0x1d5d4e(0x128)](_0x51154c)?_0x173605['oWEbR']:_0x173605[_0x1d5d4e(0x122)];const _0x9e9dc0=_0x173605[_0x1d5d4e(0x12d)](getBrowserFromWSEndpoint,_0x51154c);if(_0x9e9dc0&&(!_0xcca1a4||_0x173605['STopg'](_0xcca1a4,_0x173605[_0x1d5d4e(0x1ab)])))_0xcca1a4=_0x9e9dc0,logger[_0x1d5d4e(0x169)](_0x1d5d4e(0x1a8)+_0xcca1a4);else _0xcca1a4&&logger['debug'](_0x1d5d4e(0x13e)+_0xcca1a4);_0x23649b=_0x4f80c7[_0x1d5d4e(0x117)]['platform'],_0x20ed6b=_0x4f80c7[_0x1d5d4e(0x117)]['platform_version'];}else{const _0x5c7786=await _0x173605[_0x1d5d4e(0x1a4)](getPlatformDetails);_0x23649b=_0x5c7786[_0x1d5d4e(0x13b)],_0x20ed6b=_0x5c7786[_0x1d5d4e(0x123)];}}if(_0x173605['oPnpX'](!_0x23649b,!_0x20ed6b)&&!_0x173605['mcJFD'](isBrowserstackInfra)){const _0x15aad7=await _0x173605[_0x1d5d4e(0x189)](getPlatformDetails);_0x23649b=_0x15aad7[_0x1d5d4e(0x13b)],_0x20ed6b=_0x15aad7[_0x1d5d4e(0x123)];}}else{_0x1ea6a9&&_0x1ea6a9[_0x1d5d4e(0x192)]&&_0x1ea6a9[_0x1d5d4e(0x192)][_0x1d5d4e(0x187)]&&_0x1ea6a9[_0x1d5d4e(0x192)][_0x1d5d4e(0x187)][_0x1d5d4e(0x1b2)]?_0xcca1a4=_0x173605[_0x1d5d4e(0x12d)](getBrowserNameFromChannel,_0x1ea6a9[_0x1d5d4e(0x192)]['use'][_0x1d5d4e(0x1b2)]):_0xcca1a4=_0x173605[_0x1d5d4e(0x106)](_0x173605[_0x1d5d4e(0x16f)],_0xcca1a4[_0x1d5d4e(0x168)]());const _0x588acf=await _0x173605[_0x1d5d4e(0xf2)](getPlatformDetails);_0x23649b=_0x588acf[_0x1d5d4e(0x13b)],_0x20ed6b=_0x588acf[_0x1d5d4e(0x123)];}const _0x34d818={};_0x34d818[_0x1d5d4e(0x113)]=_0xcca1a4,_0x34d818[_0x1d5d4e(0xee)]=_0x1f2c9d,_0x34d818[_0x1d5d4e(0x101)]={},_0x34d818[_0x1d5d4e(0x119)]=_0x23649b,_0x34d818[_0x1d5d4e(0x154)]=_0x20ed6b,_0x34d818['product']=_0x2b0458;const _0x21d8fd=_0x34d818;_0xfb35dc&&(_0x21d8fd[_0x1d5d4e(0x101)][_0x1d5d4e(0xeb)]=_0xfb35dc);const _0x28ea8c={};_0x28ea8c[_0x1d5d4e(0x191)]=_0x52b73b,_0x4f80c7[_0x1d5d4e(0x117)]=Object[_0x1d5d4e(0x17f)]({},_0x4f80c7[_0x1d5d4e(0x117)],_0x28ea8c,_0x21d8fd);const _0x372fac={};_0x372fac[_0x1d5d4e(0x113)]=_0x4f80c7[_0x1d5d4e(0x117)]['browser'],_0x372fac['browserVersion']=_0x4f80c7[_0x1d5d4e(0x117)]['browser_version'],_0x372fac['platform']=_0x4f80c7[_0x1d5d4e(0x117)][_0x1d5d4e(0x119)],_0x372fac[_0x1d5d4e(0x123)]=_0x4f80c7[_0x1d5d4e(0x117)][_0x1d5d4e(0x154)],_0x372fac[_0x1d5d4e(0x191)]=_0x4f80c7[_0x1d5d4e(0x117)][_0x1d5d4e(0x191)],_0x372fac[_0x1d5d4e(0x11a)]=_0x4f80c7[_0x1d5d4e(0x117)][_0x1d5d4e(0x11a)],logger['debug']('Session\x20details\x20setup\x20complete:\x20'+JSON[_0x1d5d4e(0x1a6)](_0x372fac));},_0x173605[_0x25b11a(0x14e)])(_0x3af413,_0x46f2a7,_0x2e4d56);}static[a64_0x4c004(0x15e)](){const _0x1f4657=a64_0x4c004;this['patchConnection'](),this[_0x1f4657(0x171)]();}static[a64_0x4c004(0x132)](){const _0x8a4738=a64_0x4c004,_0xf18477={'bFYcR':function(_0xab119d,_0x5d8ba0){return _0xab119d(_0x5d8ba0);},'FyjNY':function(_0x29c43e,_0x49926c){return _0x29c43e(_0x49926c);},'vCrEd':_0x8a4738(0x177),'GoYLg':_0x8a4738(0x121),'pmXbW':_0x8a4738(0x182),'tgZpq':function(_0x38f82c,_0x403744){return _0x38f82c(_0x403744);},'bSZDo':function(_0x16fbc9,_0x2737bf){return _0x16fbc9(_0x2737bf);},'OeTGL':_0x8a4738(0x174),'qLcxj':function(_0xbb653e,_0x266b9d){return _0xbb653e!=_0x266b9d;},'IqgoM':function(_0x3267c2,_0x2b8c04){return _0x3267c2(_0x2b8c04);},'wxRJo':_0x8a4738(0x162),'KLQIn':_0x8a4738(0x114),'ttwbW':'Successfully\x20patched\x20Connection.dispatch'},_0x34576c=this;if(!this['Connection'])try{const _0x574dd9=[path[_0x8a4738(0x135)](_0xf18477[_0x8a4738(0x11c)],_0xf18477[_0x8a4738(0x10a)],_0xf18477[_0x8a4738(0xe9)]),path['join'](_0xf18477[_0x8a4738(0x11c)],_0xf18477[_0x8a4738(0xe9)]),path[_0x8a4738(0x135)](_0xf18477[_0x8a4738(0x10a)],_0xf18477[_0x8a4738(0xe9)])];for(const _0xcb2627 of _0x574dd9){try{const _0x558372=_0xf18477[_0x8a4738(0x142)](importFileFromPWCore,_0xcb2627);if(_0x558372&&_0x558372[_0x8a4738(0x15f)]){this[_0x8a4738(0x15f)]=_0x558372[_0x8a4738(0x15f)],logger[_0x8a4738(0x169)]('Found\x20Connection\x20class\x20at:\x20'+_0xcb2627);break;}}catch(_0x339e01){_0xf18477['tgZpq'](debug,_0x8a4738(0x102)+_0xcb2627+':\x20'+_0x339e01[_0x8a4738(0x15b)]());}}if(!this[_0x8a4738(0x15f)]){_0xf18477[_0x8a4738(0x14d)](debug,_0xf18477[_0x8a4738(0x133)]);return;}}catch(_0x2d1cf1){_0xf18477[_0x8a4738(0x142)](debug,_0x8a4738(0x10d)+_0x2d1cf1[_0x8a4738(0x15b)]());return;}const _0x27f3d1=this[_0x8a4738(0x15f)];try{if(_0xf18477['qLcxj'](_0x27f3d1,null)){const _0xd932d1=_0x27f3d1[_0x8a4738(0x11d)][_0x8a4738(0x114)];if(!_0xf18477[_0x8a4738(0xe8)](isFalse,process[_0x8a4738(0xf8)]['BROWSERSTACK_TEST_OBSERVABILITY'])){if(_0x27f3d1[_0x8a4738(0x11d)][_0x8a4738(0xfe)]){logger['debug'](_0xf18477['wxRJo']);return;}Object[_0x8a4738(0x172)](_0x27f3d1[_0x8a4738(0x11d)],_0xf18477['KLQIn'],{'get':function(){return async function _0x53b6a2(_0xc71bc5){const _0x357661=a64_0x2eb2;if(BrowserstackCLI[_0x357661(0x170)]()['isRunning']()){const _0x2cead0={};_0x2cead0['message']=_0xc71bc5,await BrowserstackCLI[_0x357661(0x170)]()[_0x357661(0x10c)]()[_0x357661(0x10b)](AutomationFrameworkState[_0x357661(0x193)],HookState[_0x357661(0xec)],_0x2cead0);}else{const _0x219383=_0xc71bc5&&_0xc71bc5[_0x357661(0xe5)]&&_0xc71bc5[_0x357661(0xe5)]['bsParams'];if(_0x219383){const _0x41cda6=_0x219383[_0x357661(0x144)],_0x30d7f1=_0x219383[_0x357661(0x19c)];_0x30d7f1&&(_0xf18477['bFYcR'](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x30d7f1['toString']()),_0x34576c[_0x357661(0x117)][_0x357661(0x119)]=_0x30d7f1[_0x357661(0x13b)],_0x34576c[_0x357661(0x117)][_0x357661(0x154)]=_0x30d7f1[_0x357661(0x123)]),_0x41cda6&&(_0xf18477[_0x357661(0x11e)](debug,_0x357661(0x159)+_0x41cda6),_0x34576c['currentSessionDetails'][_0x357661(0x111)]=_0x41cda6);}}return _0xd932d1[_0x357661(0x147)](this,arguments);};}}),_0x27f3d1[_0x8a4738(0x11d)][_0x8a4738(0xfe)]=!![],logger[_0x8a4738(0x169)](_0xf18477[_0x8a4738(0x185)]);}}}catch(_0x4b9f2e){_0xf18477[_0x8a4738(0x14d)](debug,_0x8a4738(0x12a)+_0x4b9f2e),_0x34576c[_0x8a4738(0x129)]=_0x4b9f2e[_0x8a4738(0x15b)]();}}static[a64_0x4c004(0x171)](){const _0x5a5e7c=a64_0x4c004,_0x3b17ec={'YtZUi':function(_0x140c44,_0x424814){return _0x140c44(_0x424814);},'bFAAT':'lib','hVUQj':_0x5a5e7c(0x16b),'lKULU':_0x5a5e7c(0x139),'hHnMq':_0x5a5e7c(0x15a),'fkyCO':function(_0x2d7466,_0x43d279){return _0x2d7466(_0x43d279);},'ZRXvq':'Not\x20able\x20to\x20import\x20crConnection','GhDOk':function(_0x41fe59,_0x1e5859){return _0x41fe59(_0x1e5859);},'tHxNb':_0x5a5e7c(0x138),'TDFoL':function(_0x53d4eb,_0x3dee9b){return _0x53d4eb!=_0x3dee9b;},'tBRZR':'CRConnection\x20already\x20patched','BoNAl':_0x5a5e7c(0x150),'UTzlo':_0x5a5e7c(0x13c)},_0x12bb1b=this;let _0xe99386=null;try{const _0x26e5e9=path['join'](_0x3b17ec['bFAAT'],_0x3b17ec[_0x5a5e7c(0x1ac)],_0x3b17ec[_0x5a5e7c(0xf0)],_0x3b17ec['hHnMq']),_0x2dcbf0=_0x3b17ec[_0x5a5e7c(0x1a7)](importFileFromPWCore,_0x26e5e9);!_0x2dcbf0?_0x3b17ec[_0x5a5e7c(0x140)](debug,_0x3b17ec[_0x5a5e7c(0x166)]):_0xe99386=_0x2dcbf0[_0x5a5e7c(0x112)];}catch(_0x69e5e5){_0x3b17ec['GhDOk'](debug,_0x3b17ec[_0x5a5e7c(0x16a)]);}try{if(_0x3b17ec[_0x5a5e7c(0xe4)](_0xe99386,null)){const _0x37dbe0=_0xe99386[_0x5a5e7c(0x11d)]['_onMessage'];if(_0xe99386[_0x5a5e7c(0x11d)][_0x5a5e7c(0x18d)]){logger[_0x5a5e7c(0x169)](_0x3b17ec[_0x5a5e7c(0x1ae)]);return;}Object[_0x5a5e7c(0x172)](_0xe99386[_0x5a5e7c(0x11d)],_0x3b17ec['BoNAl'],{'get':function(){const _0x42fd21={'mpBne':function(_0x302fcd,_0x24ce0d){return _0x3b17ec['YtZUi'](_0x302fcd,_0x24ce0d);},'ONDAA':function(_0x377e92,_0x4e7b44){const _0x32d9d8=a64_0x2eb2;return _0x3b17ec[_0x32d9d8(0x1a7)](_0x377e92,_0x4e7b44);}};return async function _0x23bd1a(_0x17850e){const _0x3e3b9f=a64_0x2eb2;try{if(BrowserstackCLI[_0x3e3b9f(0x170)]()[_0x3e3b9f(0x19f)]()){const _0x4ecc3f={};_0x4ecc3f[_0x3e3b9f(0xf6)]=_0x17850e,await BrowserstackCLI[_0x3e3b9f(0x170)]()['getAutomationFramework']()[_0x3e3b9f(0x10b)](AutomationFrameworkState[_0x3e3b9f(0x193)],HookState[_0x3e3b9f(0xec)],_0x4ecc3f),delete _0x17850e['bStackParams'];}else{const _0x6fd296=_0x17850e['bStackParams'];if(_0x6fd296){delete _0x17850e[_0x3e3b9f(0x1a0)];const _0xc7f639=_0x6fd296[_0x3e3b9f(0x144)],_0x3a232d=_0x6fd296[_0x3e3b9f(0x19c)];_0x3a232d&&(_0x42fd21['mpBne'](debug,_0x3e3b9f(0x10f)+_0x3a232d[_0x3e3b9f(0x15b)]()),_0x12bb1b[_0x3e3b9f(0x117)]['platform']=_0x3a232d['platformName'],_0x12bb1b['currentSessionDetails'][_0x3e3b9f(0x154)]=_0x3a232d[_0x3e3b9f(0x123)]),_0xc7f639&&(_0x42fd21[_0x3e3b9f(0x14f)](debug,_0x3e3b9f(0x118)+_0xc7f639),_0x12bb1b[_0x3e3b9f(0x117)]['bsSessionId']=_0xc7f639);}}}catch(_0x59aae5){_0x42fd21[_0x3e3b9f(0x14f)](debug,_0x3e3b9f(0x173)+_0x59aae5[_0x3e3b9f(0x15b)]());}return _0x37dbe0['apply'](this,arguments);};}}),_0xe99386[_0x5a5e7c(0x11d)][_0x5a5e7c(0x18d)]=!![],logger[_0x5a5e7c(0x169)](_0x3b17ec[_0x5a5e7c(0x17a)]);}}catch(_0x23b75a){_0x3b17ec[_0x5a5e7c(0x1a7)](debug,_0x5a5e7c(0x160)+_0x23b75a),_0x12bb1b[_0x5a5e7c(0x129)]=_0x23b75a[_0x5a5e7c(0x15b)]();}}static[a64_0x4c004(0x12f)](_0x32d17f,_0x3cd15f){const _0xd4a20e=a64_0x4c004,_0xfa2e80={'ZBWEE':_0xd4a20e(0x194),'nHDra':function(_0x21c527,_0x2a5da9){return _0x21c527||_0x2a5da9;},'cyVZM':function(_0x27d36c,_0x49efa1){return _0x27d36c===_0x49efa1;},'bDFQS':_0xd4a20e(0x183),'lOPiB':_0xd4a20e(0x110),'PPNKy':function(_0x49447d,_0x3ddd87){return _0x49447d(_0x3ddd87);},'mQZoU':function(_0x187a60,_0x1fe8bd){return _0x187a60(_0x1fe8bd);}};let _0x10d196=null,_0x931022=null;try{const _0xd8857d=[_0x3cd15f,global[_0xd4a20e(0xed)],global[_0xd4a20e(0x17b)]];for(const _0x5b9a2f of _0xd8857d){if(_0x5b9a2f&&(!_0x931022||!_0x931022[_0xd4a20e(0x144)])){const _0x191230=_0x5b9a2f['sessionId']||_0x5b9a2f[_0xfa2e80[_0xd4a20e(0x1af)]]?.[_0xd4a20e(0x144)],_0x8c61cd=_0x5b9a2f['browserName']||_0x5b9a2f[_0xd4a20e(0x113)]||_0x5b9a2f[_0xfa2e80[_0xd4a20e(0x1af)]]?.['browserName'],_0x3d9888=_0x5b9a2f[_0xd4a20e(0x143)]||_0x5b9a2f[_0xd4a20e(0xee)]||_0x5b9a2f[_0xfa2e80['ZBWEE']]?.['browserVersion'],_0x8b4617=_0x5b9a2f['os']||_0x5b9a2f[_0xd4a20e(0x119)]||_0x5b9a2f[_0xfa2e80[_0xd4a20e(0x1af)]]?.['os'],_0x321391=_0x5b9a2f[_0xd4a20e(0x165)]||_0x5b9a2f[_0xd4a20e(0x18a)]||_0x5b9a2f[_0xfa2e80[_0xd4a20e(0x1af)]]?.[_0xd4a20e(0x165)];if(_0xfa2e80[_0xd4a20e(0x15d)](_0x191230,_0x8c61cd)||_0x8b4617){const _0xbf5555={};_0xbf5555[_0xd4a20e(0xea)]=_0x8c61cd,_0xbf5555[_0xd4a20e(0x143)]=_0x3d9888,_0xbf5555['os']=_0x8b4617,_0xbf5555[_0xd4a20e(0x165)]=_0x321391,_0xbf5555['platformName']=_0x5b9a2f['platformName']||_0x8b4617,_0xbf5555[_0xd4a20e(0x123)]=_0x5b9a2f['platformVersion']||_0x321391;const _0x1df566={};_0x1df566[_0xd4a20e(0x144)]=_0x191230,_0x1df566[_0xd4a20e(0x19c)]=_0xbf5555,_0x931022=_0x1df566;if(_0xfa2e80[_0xd4a20e(0x15d)](_0x191230,_0x8c61cd)){logger[_0xd4a20e(0x169)](_0xd4a20e(0x15c)+_0x8c61cd+_0xd4a20e(0x16e)+_0x8b4617);break;}}}}if(_0x32d17f&&_0xfa2e80[_0xd4a20e(0x19e)](typeof _0x32d17f,_0xfa2e80['bDFQS']))try{const _0x4105e2=url[_0xd4a20e(0x125)](_0x32d17f),_0x1b3017=new URLSearchParams(_0x4105e2[_0xd4a20e(0x18f)]),_0x77507a=Object[_0xd4a20e(0x13d)](_0x1b3017['entries']()),_0x2f24aa=[_0x77507a[_0xd4a20e(0xef)],_0x77507a[_0xd4a20e(0x101)],_0x77507a[_0xd4a20e(0x199)]];for(const _0x3d6a08 of _0x2f24aa){if(_0x3d6a08&&(!_0x10d196||!_0x10d196[_0xd4a20e(0x144)]))try{const _0x1135f8=JSON[_0xd4a20e(0x125)](_0x3d6a08),_0x16f85d={};_0x16f85d['sessionId']=_0x1135f8[_0xd4a20e(0x144)]||_0x1135f8[_0xfa2e80['ZBWEE']]?.[_0xd4a20e(0x144)],_0x16f85d[_0xd4a20e(0x19c)]={},_0x16f85d[_0xd4a20e(0x19c)][_0xd4a20e(0xea)]=_0x1135f8[_0xd4a20e(0xea)]||_0x1135f8[_0xd4a20e(0x113)],_0x16f85d[_0xd4a20e(0x19c)][_0xd4a20e(0x143)]=_0x1135f8[_0xd4a20e(0x143)]||_0x1135f8[_0xd4a20e(0xee)],_0x16f85d[_0xd4a20e(0x19c)]['os']=_0x1135f8['os']||_0x1135f8[_0xd4a20e(0x119)],_0x16f85d[_0xd4a20e(0x19c)][_0xd4a20e(0x165)]=_0x1135f8['osVersion']||_0x1135f8[_0xd4a20e(0x18a)],_0x16f85d[_0xd4a20e(0x19c)]['platformName']=_0x1135f8[_0xd4a20e(0x13b)]||_0x1135f8['os']||_0x1135f8['platform'],_0x16f85d[_0xd4a20e(0x19c)][_0xd4a20e(0x123)]=_0x1135f8['platformVersion']||_0x1135f8[_0xd4a20e(0x165)]||_0x1135f8[_0xd4a20e(0x18a)],_0x10d196=_0x16f85d;if(_0x10d196[_0xd4a20e(0x144)]||_0x10d196[_0xd4a20e(0x19c)][_0xd4a20e(0xea)]){logger[_0xd4a20e(0x169)](_0xfa2e80['lOPiB']);break;}}catch(_0xd11627){_0xfa2e80[_0xd4a20e(0x1b3)](debug,_0xd4a20e(0x12c)+_0xd11627['toString']());}}}catch(_0x1382c7){_0xfa2e80[_0xd4a20e(0x197)](debug,_0xd4a20e(0x1a5)+_0x1382c7[_0xd4a20e(0x15b)]());}}catch(_0x461f51){_0xfa2e80['PPNKy'](debug,_0xd4a20e(0x131)+util[_0xd4a20e(0x18c)](_0x461f51));}const _0x51f230={};return _0x51f230[_0xd4a20e(0x180)]=_0x10d196,_0x51f230[_0xd4a20e(0x1a0)]=_0x931022,_0x51f230;}static async[a64_0x4c004(0x195)](_0x47582d,_0x46a829){const _0x4bf5ea=a64_0x4c004,_0x38d994={'NSakC':function(_0x25db9f,_0x38bf70){return _0x25db9f||_0x38bf70;},'JVxIn':_0x4bf5ea(0xe7),'mlcyT':function(_0x2daeaa,_0x49728b){return _0x2daeaa||_0x49728b;},'wODts':function(_0x1e29a8,_0x579154){return _0x1e29a8(_0x579154);}};try{if(!BrowserstackCLI['getInstance']()[_0x4bf5ea(0x19f)]())return;if(_0x38d994[_0x4bf5ea(0x198)](_0x47582d,_0x46a829)){logger[_0x4bf5ea(0x169)](_0x38d994['JVxIn']);const _0x46f6fb={'params':_0x47582d?{'bsParams':_0x47582d}:null,'bStackParams':_0x38d994[_0x4bf5ea(0x115)](_0x46a829,null)},_0x2e0291=AutomationFramework[_0x4bf5ea(0x157)](),_0x220920={};_0x220920['message']=_0x46f6fb,_0x220920[_0x4bf5ea(0x17c)]=_0x2e0291,await BrowserstackCLI[_0x4bf5ea(0x170)]()[_0x4bf5ea(0x10c)]()[_0x4bf5ea(0x10b)](AutomationFrameworkState[_0x4bf5ea(0x193)],HookState[_0x4bf5ea(0xec)],_0x220920);}}catch(_0x2122ea){_0x38d994['wODts'](debug,_0x4bf5ea(0x153)+util[_0x4bf5ea(0x18c)](_0x2122ea));}}static[a64_0x4c004(0x1ad)](){return this['currentSessionDetails'];}}module[a64_0x4c004(0xf1)]=SharedPlaywrightSessionDetails;function a64_0x2eb2(_0x578867,_0x3ea8a2){const _0x2e11d6=a64_0x2e11();return a64_0x2eb2=function(_0x2eb214,_0x486c64){_0x2eb214=_0x2eb214-0xe4;let _0x5b99f0=_0x2e11d6[_0x2eb214];return _0x5b99f0;},a64_0x2eb2(_0x578867,_0x3ea8a2);}function a64_0x2e11(){const _0x4be988=['Error\x20extracting\x20BrowserStack\x20parameters:\x20','patchConnection','OeTGL','local_grid','join','18kLaSiM','TpWPx','Error\x20in\x20importing\x20crConnection','chromium','includes','platformName','Successfully\x20patched\x20CRConnection._onMessage','fromEntries','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','SJYRk','fkyCO','Pobac','tgZpq','browserVersion','sessionId','ATS_WSS_URL_REGEX','../v2/state/hookState.js','apply','version','automate','JkAFm','nMsQU','YGOKy','bSZDo','tZxJl','ONDAA','_onMessage','FYZCP','TwOzh','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','platform_version','winstonLogger','325861lwtBcZ','getTrackedInstance','MUyOy','Setting\x20session\x20id\x20received\x20from\x20BS\x20','crConnection.js','toString','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','nHDra','patch','Connection','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','split','Connection\x20dispatch\x20already\x20patched','SVJFY','../../helpers/helper','osVersion','ZRXvq','_connection','toLowerCase','debug','tHxNb','server','zmnVP','lPvyZ',',\x20os=','klCDn','getInstance','patchCRConnection','defineProperty','Error\x20in\x20finding\x20platform\x20details\x20','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','4qYTLNT','safari','lib','lVFyf','edge','UTzlo','capabilties','instance','setupBrowserDetails','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','assign','bsParams','1089042bRswBI','connection.js','string','webkit','ttwbW','3674153AwIKJn','use','pXcfj','prRcq','os_version','BSTACK_URL','format','_bstackCRPatched','90Zaxgcw','query','path','cloudProvider','project','PLAYWRIGHT_DISPATCH','bstack:options','triggerPlaywrightDispatchEvent','function','mQZoU','NSakC','desiredCapabilities','browserstack','PHhUl','platformDetails','Wzyqt','cyVZM','isRunning','bStackParams','GzYrA','cpdfK','1716728SwfaOh','uaZKQ','Error\x20parsing\x20WebSocket\x20endpoint:\x20','stringify','YtZUi','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','BSTACK_ATS_URL','hKXmx','VFHvj','hVUQj','getDetails','tBRZR','ZBWEE','iwoAS','xGmQK','channel','PPNKy','TDFoL','params','jzSxR','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','IqgoM','pmXbW','browserName','deviceModel','POST','__platformCaps','browser_version','caps','lKULU','exports','mcJFD','qZsxf','chrome','qoRsy','message','bnNiU','env','connectOptions','190386yqXZvG','../../helpers/test-observability/error-handler','USEuO','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','_bstackDispatchPatched','../v2/browserstackCLI','xrRHd','capabilities','Failed\x20to\x20import\x20connection\x20from\x20','./constants','307348gjfReW','turboscale','cpXdG','GRULn','SQJsc','_defaultConnectOptions','GoYLg','trackEvent','getAutomationFramework','Error\x20in\x20importing\x20connection\x20','firefox','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','bsSessionId','CRConnection','browser','dispatch','mlcyT','browserstack_capabilities','currentSessionDetails','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','platform','product','53090inrahn','vCrEd','prototype','FyjNY','_browserType','../v2/framework/automationFramework','client','Qqaby','platformVersion','iLidA','parse','model','yuRyf','test','sessionError','Error\x20in\x20applying\x20Connection\x20patch\x20','entries','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','ajjeP','msedge','extractBrowserStackParams','wsEndpoint'];a64_0x2e11=function(){return _0x4be988;};return a64_0x2e11();}
1
+ function a64_0x3f29(_0x4ea344,_0x56a19e){const _0x238d32=a64_0x238d();return a64_0x3f29=function(_0x3f29d7,_0x227d09){_0x3f29d7=_0x3f29d7-0x185;let _0x4e3746=_0x238d32[_0x3f29d7];return _0x4e3746;},a64_0x3f29(_0x4ea344,_0x56a19e);}const a64_0x1384b0=a64_0x3f29;(function(_0x29204b,_0x384cba){const _0x13c815=a64_0x3f29,_0x3dfd16=_0x29204b();while(!![]){try{const _0x18491b=parseInt(_0x13c815(0x1b6))/0x1+parseInt(_0x13c815(0x1b5))/0x2*(parseInt(_0x13c815(0x21b))/0x3)+-parseInt(_0x13c815(0x1a1))/0x4+-parseInt(_0x13c815(0x1f5))/0x5*(-parseInt(_0x13c815(0x204))/0x6)+parseInt(_0x13c815(0x1e8))/0x7*(parseInt(_0x13c815(0x1a2))/0x8)+-parseInt(_0x13c815(0x1bf))/0x9+parseInt(_0x13c815(0x224))/0xa*(parseInt(_0x13c815(0x24c))/0xb);if(_0x18491b===_0x384cba)break;else _0x3dfd16['push'](_0x3dfd16['shift']());}catch(_0x1eb052){_0x3dfd16['push'](_0x3dfd16['shift']());}}}(a64_0x238d,0x8e55e));const path=require(a64_0x1384b0(0x1a4)),url=require(a64_0x1384b0(0x1b7)),util=require(a64_0x1384b0(0x1c0)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a64_0x1384b0(0x207)),{o11yErrorHandler}=require(a64_0x1384b0(0x195)),{debug,getPlatformDetails}=require(a64_0x1384b0(0x1f6)),logger=require(a64_0x1384b0(0x1aa))['winstonLogger'],constants=require(a64_0x1384b0(0x1c5)),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require(a64_0x1384b0(0x1a9)),AutomationFrameworkState=require(a64_0x1384b0(0x215)),HookState=require(a64_0x1384b0(0x1dd)),{platform}=require('os'),getBrowserNameFromChannel=_0xe763f6=>{const _0x23d07d=a64_0x1384b0,_0x7fe4df={};_0x7fe4df[_0x23d07d(0x240)]='2|5|4|3|1|0',_0x7fe4df['DJFkp']=function(_0x15f31f,_0x47b56d){return _0x15f31f===_0x47b56d;},_0x7fe4df[_0x23d07d(0x245)]='webkit',_0x7fe4df[_0x23d07d(0x186)]=_0x23d07d(0x1a7),_0x7fe4df[_0x23d07d(0x1c2)]=_0x23d07d(0x1fa),_0x7fe4df[_0x23d07d(0x1b3)]=_0x23d07d(0x1ec),_0x7fe4df[_0x23d07d(0x187)]=_0x23d07d(0x1de),_0x7fe4df['BhMMq']=_0x23d07d(0x213);const _0x3c5840=_0x7fe4df,_0xf5dc7a=_0x3c5840[_0x23d07d(0x240)][_0x23d07d(0x22d)]('|');let _0x4a14cd=0x0;while(!![]){switch(_0xf5dc7a[_0x4a14cd++]){case'0':if(_0x3c5840[_0x23d07d(0x21f)](_0xe763f6,_0x3c5840[_0x23d07d(0x245)]))return _0x3c5840['jpRAO'];continue;case'1':if(_0xe763f6[_0x23d07d(0x18e)](_0x3c5840[_0x23d07d(0x186)]))return _0x3c5840[_0x23d07d(0x186)];continue;case'2':if(_0xe763f6[_0x23d07d(0x18e)](_0x3c5840[_0x23d07d(0x1c2)]))return _0x3c5840[_0x23d07d(0x1c2)];continue;case'3':if(_0xe763f6['includes'](_0x3c5840[_0x23d07d(0x1b3)]))return _0x3c5840['nRvCj'];continue;case'4':if(_0xe763f6[_0x23d07d(0x18e)](_0x3c5840[_0x23d07d(0x187)]))return _0x3c5840[_0x23d07d(0x187)];continue;case'5':if(_0xe763f6[_0x23d07d(0x18e)](_0x3c5840[_0x23d07d(0x1cf)]))return _0x3c5840[_0x23d07d(0x1cf)];continue;}break;}},getBrowserFromWSEndpoint=_0x43739b=>{const _0x327392=a64_0x1384b0,_0x19a118={'AxuRD':_0x327392(0x1d2),'jytht':function(_0xb04486,_0x2c8d31){return _0xb04486(_0x2c8d31);},'nAIZy':'edge','kENhG':'msedge','QlAKV':_0x327392(0x1ec),'UgpZd':_0x327392(0x247),'eyuTr':_0x327392(0x1a7),'pnakC':_0x327392(0x1cb),'daoXG':_0x327392(0x213),'dqHeT':function(_0x87ca2a,_0x216340){return _0x87ca2a(_0x216340);}};try{const _0x47faf0=url['parse'](_0x43739b),_0x1af0a4=new URLSearchParams(_0x47faf0[_0x327392(0x237)]),_0x52fb17=Object[_0x327392(0x1a0)](_0x1af0a4[_0x327392(0x243)]()),_0x5b0e0d=[_0x52fb17[_0x327392(0x1be)],_0x52fb17[_0x327392(0x1e1)],_0x52fb17[_0x327392(0x1f4)],_0x52fb17[_0x327392(0x203)]];for(const _0x5e1e94 of _0x5b0e0d){if(_0x5e1e94)try{const _0x93b158=JSON['parse'](_0x5e1e94),_0x134630=_0x93b158['browserName']||_0x93b158[_0x327392(0x1e5)]||_0x93b158[_0x19a118['AxuRD']]?.[_0x327392(0x248)];if(_0x134630)return _0x19a118['jytht'](debug,_0x327392(0x1b9)+_0x134630),_0x134630[_0x327392(0x1b4)]();}catch(_0x153ed0){_0x19a118[_0x327392(0x20f)](debug,_0x327392(0x20d)+_0x153ed0[_0x327392(0x19f)]);}}if(_0x43739b[_0x327392(0x18e)](_0x19a118[_0x327392(0x211)])||_0x43739b['includes'](_0x19a118[_0x327392(0x1ff)]))return _0x19a118[_0x327392(0x211)];if(_0x43739b[_0x327392(0x18e)](_0x19a118[_0x327392(0x210)])||_0x43739b[_0x327392(0x18e)](_0x19a118['UgpZd']))return _0x19a118[_0x327392(0x210)];if(_0x43739b[_0x327392(0x18e)](_0x19a118[_0x327392(0x1cd)])||_0x43739b[_0x327392(0x18e)](_0x19a118[_0x327392(0x24f)]))return _0x19a118[_0x327392(0x1cd)];return _0x19a118['daoXG'];}catch(_0x4e1f8b){return _0x19a118[_0x327392(0x22a)](debug,_0x327392(0x1af)+_0x4e1f8b[_0x327392(0x1a6)]()),_0x19a118[_0x327392(0x21e)];}},getCloudProviderFromWsEndpoint=_0xa17b85=>{const _0x263e52=a64_0x1384b0,_0x4c3555={};_0x4c3555[_0x263e52(0x201)]=_0x263e52(0x23d),_0x4c3555[_0x263e52(0x22c)]=_0x263e52(0x1df);const _0x46e0d4=_0x4c3555;if(_0xa17b85['includes'](constants[_0x263e52(0x239)])||_0xa17b85['includes'](constants[_0x263e52(0x244)]))return _0x46e0d4[_0x263e52(0x201)];return _0x46e0d4[_0x263e52(0x22c)];},a64_0x3d91b9={};function a64_0x238d(){const _0x42c490=['join','daoXG','DJFkp','isRemote','sessionError','mwAVS','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','140GuKNBB','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','osVersion','Successfully\x20patched\x20CRConnection._onMessage','CWvBX','aeUUq','dqHeT','capabilties','hoKwy','split','OwunM','vwKTC','wsEndpoint','gzrtz','uYFnT','prototype','tyivd','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','query','qCzdL','BSTACK_URL','platformName','KQLsu','VfvGu','browserstack','nWFFh','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','IwnbN','RPcaH','platform','entries','BSTACK_ATS_URL','jpRAO','use','gecko','browserName','sessionId','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','triggerPlaywrightDispatchEvent','41789CjAPTQ','assign','client','pnakC','BkIIQ','exports','Error\x20extracting\x20BrowserStack\x20parameters:\x20','wcpRX','qbfkx','gNKPb','_name','stringify','_defaultConnectOptions','AxFJw',',\x20os=','test','includes','chvhc','hwcTE','BROWSERSTACK_TEST_OBSERVABILITY','string','HWemf','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','../../helpers/test-observability/error-handler','Not\x20able\x20to\x20import\x20crConnection','_browserType','bsParams','ATS_WSS_URL_REGEX','cgSQB','Vydfg','Connection\x20dispatch\x20already\x20patched','HeFUv','BuRgY','message','fromEntries','3355688ukCGCe','15112SjllWE','zrutL','path','deviceModel','toString','safari','connectOptions','../v2/browserstackCLI','../../helpers/logger','Failed\x20to\x20import\x20connection\x20from\x20','__platformCaps','bsSessionId','getDetails','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','trackEvent','VIIVG','product','nRvCj','toLowerCase','10WlSIUQ','983090JnWSEZ','url','nhrlF','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','bStackParams','rYiWB','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','tWPbx','caps','6701238elkyPm','util','extractBrowserStackParams','aeWxA','eMotT','isRunning','./constants','POST','currentSessionDetails','apply','LSnib','env','webkit','_connection','eyuTr','project','BhMMq','JSCDY','patchConnection','bstack:options','platform_version','getAutomationFramework','parse','Found\x20Connection\x20class\x20at:\x20','os_version','_bstackCRPatched','channel','turboscale','jCOCq','PLAYWRIGHT_DISPATCH','../v2/state/hookState.js','edge','unknown_grid','UNpqC','capabilities','crConnection.js','browserVersion','jjtnw','browser','debug','cloudProvider','28IQPnLD','CeGMk','lFnXU','aEGle','firefox','_onMessage','local_grid','DzHwb','nmLCA','yzBHt','GxnFx','xzrZt','desiredCapabilities','5420XCtbpJ','../../helpers/test-observability/utils','oAqGb','lib','zvkoW','chromium','format','version','vrgAk','platformDetails','kENhG','CRConnection\x20already\x20patched','eDgko','playwright-','browserstack_capabilities','3792NLjuba','getInstance','xwfZy','../../helpers/helper','TnHoV','setupBrowserDetails','XTpNy','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','XsZIS','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','params','jytht','QlAKV','nAIZy','connection.js','chrome','browser_version','../v2/state/automationFrameworkState.js','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','platformVersion','Connection','dispatch','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','262554PDuUto','defineProperty'];a64_0x238d=function(){return _0x42c490;};return a64_0x238d();}a64_0x3d91b9[a64_0x1384b0(0x1e7)]=undefined,a64_0x3d91b9[a64_0x1384b0(0x1ad)]=undefined,a64_0x3d91b9['browser']=undefined,a64_0x3d91b9[a64_0x1384b0(0x214)]=undefined,a64_0x3d91b9['platform']=undefined,a64_0x3d91b9[a64_0x1384b0(0x1d3)]=undefined,a64_0x3d91b9['product']=undefined,a64_0x3d91b9['capabilities']={};class SharedPlaywrightSessionDetails{static [a64_0x1384b0(0x1c7)]=a64_0x3d91b9;constructor(){const _0x51b710=a64_0x1384b0,_0x1a8e17={};_0x1a8e17['aeUUq']=_0x51b710(0x225);const _0x34bf78=_0x1a8e17;throw new Error(_0x34bf78[_0x51b710(0x229)]);}static [a64_0x1384b0(0x221)]=null;static[a64_0x1384b0(0x209)](_0x363162,_0x739464,_0x4c61d4=null){const _0x5eed27=a64_0x1384b0,_0x39c9ef={'tyivd':function(_0x69f7ef,_0x48a2ab){return _0x69f7ef===_0x48a2ab;},'mwAVS':'function','VfvGu':_0x5eed27(0x235),'Vydfg':'Device\x20Model\x20is\x20not\x20available','qCzdL':_0x5eed27(0x1ee),'PskZd':function(_0x218d01,_0x35f457,_0xf8259d){return _0x218d01(_0x35f457,_0xf8259d);},'cgSQB':_0x5eed27(0x197),'XsZIS':_0x5eed27(0x18a),'lFnXU':function(_0x3467fa,_0x3f8afb,_0x16ecfb){return _0x3467fa(_0x3f8afb,_0x16ecfb);},'VIIVG':_0x5eed27(0x1ce),'eXFsp':'use','bWZEm':_0x5eed27(0x1a8),'zvkoW':function(_0x1c273d,_0x1b653f){return _0x1c273d(_0x1b653f);},'rYiWB':_0x5eed27(0x23d),'wcpRX':_0x5eed27(0x1da),'vvQrr':'automate','chvhc':_0x5eed27(0x1fa),'KQLsu':function(_0x378122){return _0x378122();},'xzrZt':function(_0x285ffb,_0x13f146){return _0x285ffb&&_0x13f146;},'zrutL':function(_0x5709ed,_0x3ff903){return _0x5709ed+_0x3ff903;},'VRtEc':_0x5eed27(0x202),'GxnFx':function(_0x53608f,_0x445239,_0x1267fc){return _0x53608f(_0x445239,_0x1267fc);},'LSnib':_0x5eed27(0x209)},_0x54c164=this;return _0x39c9ef[_0x5eed27(0x1f2)](o11yErrorHandler,async function _0x124c11(_0xc0922d,_0x16cf05,_0x39b2fa=null){const _0x7e999e=_0x5eed27;let _0x56f777=_0xc0922d[_0x7e999e(0x188)],_0x243fb2=null;_0xc0922d&&_0x39c9ef[_0x7e999e(0x234)](typeof _0xc0922d['version'],_0x39c9ef['mwAVS'])?_0x243fb2=_0xc0922d[_0x7e999e(0x1fc)]():logger['debug'](_0x39c9ef[_0x7e999e(0x23c)]);let _0x186834=null;_0xc0922d&&_0x39c9ef[_0x7e999e(0x234)](typeof _0xc0922d['model'],_0x39c9ef[_0x7e999e(0x222)])?_0x186834=_0xc0922d['model']():logger[_0x7e999e(0x1e6)](_0x39c9ef[_0x7e999e(0x19b)]);let _0x35270a=null,_0xb70896=null,_0x223344=null,_0x5a7a0e=_0x39c9ef[_0x7e999e(0x238)];if(_0xc0922d[_0x7e999e(0x1cc)][_0x7e999e(0x220)]()||global['accessibilityPlatform']){let _0x32b225=null;_0x39c9ef['PskZd'](nestedKeyValue,_0xc0922d,[_0x39c9ef[_0x7e999e(0x19a)],_0x39c9ef[_0x7e999e(0x20c)]])?_0x32b225=_0xc0922d[_0x7e999e(0x197)][_0x7e999e(0x18a)]:_0x32b225=_0x39c9ef[_0x7e999e(0x1ea)](nestedKeyValue,_0x16cf05,[_0x39c9ef[_0x7e999e(0x1b1)],_0x39c9ef['eXFsp'],_0x39c9ef['bWZEm']]);const _0x15cac1=_0x39b2fa||_0x32b225&&_0x32b225[_0x7e999e(0x230)];if(_0x15cac1){_0x5a7a0e=_0x39c9ef[_0x7e999e(0x1f9)](getCloudProviderFromWsEndpoint,_0x15cac1);if(_0x39c9ef[_0x7e999e(0x234)](_0x5a7a0e,_0x39c9ef[_0x7e999e(0x1bb)])){_0x223344=constants[_0x7e999e(0x199)][_0x7e999e(0x18d)](_0x15cac1)?_0x39c9ef[_0x7e999e(0x185)]:_0x39c9ef['vvQrr'];const _0x328e76=_0x39c9ef[_0x7e999e(0x1f9)](getBrowserFromWSEndpoint,_0x15cac1);if(_0x328e76&&(!_0x56f777||_0x39c9ef[_0x7e999e(0x234)](_0x56f777,_0x39c9ef[_0x7e999e(0x18f)])))_0x56f777=_0x328e76,logger[_0x7e999e(0x1e6)](_0x7e999e(0x23f)+_0x56f777);else _0x56f777&&logger['debug'](_0x7e999e(0x24a)+_0x56f777);_0x35270a=_0x54c164['currentSessionDetails'][_0x7e999e(0x242)],_0xb70896=_0x54c164[_0x7e999e(0x1c7)][_0x7e999e(0x1d3)];}else{const _0x5db9d9=await _0x39c9ef[_0x7e999e(0x23b)](getPlatformDetails);_0x35270a=_0x5db9d9[_0x7e999e(0x23a)],_0xb70896=_0x5db9d9[_0x7e999e(0x217)];}}if(_0x39c9ef[_0x7e999e(0x1f3)](!_0x35270a,!_0xb70896)&&!_0x39c9ef[_0x7e999e(0x23b)](isBrowserstackInfra)){const _0x53e243=await _0x39c9ef[_0x7e999e(0x23b)](getPlatformDetails);_0x35270a=_0x53e243[_0x7e999e(0x23a)],_0xb70896=_0x53e243[_0x7e999e(0x217)];}}else{_0x16cf05&&_0x16cf05[_0x7e999e(0x1ce)]&&_0x16cf05[_0x7e999e(0x1ce)][_0x7e999e(0x246)]&&_0x16cf05[_0x7e999e(0x1ce)]['use']['channel']?_0x56f777=_0x39c9ef[_0x7e999e(0x1f9)](getBrowserNameFromChannel,_0x16cf05['project'][_0x7e999e(0x246)][_0x7e999e(0x1d9)]):_0x56f777=_0x39c9ef[_0x7e999e(0x1a3)](_0x39c9ef['VRtEc'],_0x56f777[_0x7e999e(0x1b4)]());const _0x2b272b=await _0x39c9ef['KQLsu'](getPlatformDetails);_0x35270a=_0x2b272b['platformName'],_0xb70896=_0x2b272b['platformVersion'];}const _0x5d78eb={};_0x5d78eb['browser']=_0x56f777,_0x5d78eb[_0x7e999e(0x214)]=_0x243fb2,_0x5d78eb['capabilities']={},_0x5d78eb[_0x7e999e(0x242)]=_0x35270a,_0x5d78eb['platform_version']=_0xb70896,_0x5d78eb[_0x7e999e(0x1b2)]=_0x223344;const _0x122077=_0x5d78eb;_0x186834&&(_0x122077[_0x7e999e(0x1e1)][_0x7e999e(0x1a5)]=_0x186834);const _0xd657af={};_0xd657af[_0x7e999e(0x1e7)]=_0x5a7a0e,_0x54c164[_0x7e999e(0x1c7)]=Object[_0x7e999e(0x24d)]({},_0x54c164['currentSessionDetails'],_0xd657af,_0x122077);const _0x2d2e71={};_0x2d2e71[_0x7e999e(0x1e5)]=_0x54c164[_0x7e999e(0x1c7)]['browser'],_0x2d2e71[_0x7e999e(0x1e3)]=_0x54c164[_0x7e999e(0x1c7)][_0x7e999e(0x214)],_0x2d2e71[_0x7e999e(0x242)]=_0x54c164[_0x7e999e(0x1c7)]['platform'],_0x2d2e71[_0x7e999e(0x217)]=_0x54c164[_0x7e999e(0x1c7)]['platform_version'],_0x2d2e71[_0x7e999e(0x1e7)]=_0x54c164[_0x7e999e(0x1c7)][_0x7e999e(0x1e7)],_0x2d2e71[_0x7e999e(0x1b2)]=_0x54c164[_0x7e999e(0x1c7)]['product'],logger[_0x7e999e(0x1e6)]('Session\x20details\x20setup\x20complete:\x20'+JSON[_0x7e999e(0x189)](_0x2d2e71));},_0x39c9ef[_0x5eed27(0x1c9)])(_0x363162,_0x739464,_0x4c61d4);}static['patch'](){const _0x3f1bd7=a64_0x1384b0;this[_0x3f1bd7(0x1d1)](),this['patchCRConnection']();}static[a64_0x1384b0(0x1d1)](){const _0x6acdf=a64_0x1384b0,_0x5e26f9={'JSCDY':function(_0x1abdea,_0xfe221){return _0x1abdea(_0xfe221);},'nhrlF':_0x6acdf(0x1f8),'DzHwb':_0x6acdf(0x24e),'jjtnw':_0x6acdf(0x212),'CWvBX':function(_0xa53dd,_0x59958a){return _0xa53dd(_0x59958a);},'YKxlg':'Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','CAILv':function(_0x30697d,_0x1c4f67){return _0x30697d(_0x1c4f67);},'UNpqC':function(_0x305964,_0x1ab7f8){return _0x305964!=_0x1ab7f8;},'dWwYr':_0x6acdf(0x19c),'Rxaot':_0x6acdf(0x219),'TnHoV':'Successfully\x20patched\x20Connection.dispatch','yzBHt':function(_0x2a90d2,_0x265183){return _0x2a90d2(_0x265183);}},_0x18c9b4=this;if(!this[_0x6acdf(0x218)])try{const _0x401183=[path[_0x6acdf(0x21d)](_0x5e26f9[_0x6acdf(0x1b8)],_0x5e26f9[_0x6acdf(0x1ef)],_0x5e26f9[_0x6acdf(0x1e4)]),path[_0x6acdf(0x21d)](_0x5e26f9[_0x6acdf(0x1b8)],_0x5e26f9['jjtnw']),path['join'](_0x5e26f9[_0x6acdf(0x1ef)],_0x5e26f9[_0x6acdf(0x1e4)])];for(const _0x5b8e37 of _0x401183){try{const _0x16a9b4=_0x5e26f9[_0x6acdf(0x1d0)](importFileFromPWCore,_0x5b8e37);if(_0x16a9b4&&_0x16a9b4[_0x6acdf(0x218)]){this[_0x6acdf(0x218)]=_0x16a9b4[_0x6acdf(0x218)],logger[_0x6acdf(0x1e6)](_0x6acdf(0x1d6)+_0x5b8e37);break;}}catch(_0x52078a){_0x5e26f9[_0x6acdf(0x1d0)](debug,_0x6acdf(0x1ab)+_0x5b8e37+':\x20'+_0x52078a['toString']());}}if(!this[_0x6acdf(0x218)]){_0x5e26f9[_0x6acdf(0x228)](debug,_0x5e26f9['YKxlg']);return;}}catch(_0x1b52fd){_0x5e26f9['CAILv'](debug,'Error\x20in\x20importing\x20connection\x20'+_0x1b52fd[_0x6acdf(0x1a6)]());return;}const _0x4f9bf2=this['Connection'];try{if(_0x5e26f9[_0x6acdf(0x1e0)](_0x4f9bf2,null)){const _0x575b58=_0x4f9bf2[_0x6acdf(0x233)][_0x6acdf(0x219)];if(!_0x5e26f9[_0x6acdf(0x228)](isFalse,process[_0x6acdf(0x1ca)][_0x6acdf(0x191)])){if(_0x4f9bf2[_0x6acdf(0x233)]['_bstackDispatchPatched']){logger[_0x6acdf(0x1e6)](_0x5e26f9['dWwYr']);return;}Object['defineProperty'](_0x4f9bf2[_0x6acdf(0x233)],_0x5e26f9['Rxaot'],{'get':function(){const _0x568a69={'vrgAk':function(_0x16a730,_0x518d0a){const _0x225cab=a64_0x3f29;return _0x5e26f9[_0x225cab(0x1d0)](_0x16a730,_0x518d0a);},'eMotT':function(_0x14626c,_0x171cf1){const _0x1ed9e0=a64_0x3f29;return _0x5e26f9[_0x1ed9e0(0x1d0)](_0x14626c,_0x171cf1);}};return async function _0x22d631(_0x4c6090){const _0x27f88f=a64_0x3f29;if(BrowserstackCLI[_0x27f88f(0x205)]()[_0x27f88f(0x1c4)]()){const _0x3dba4e={};_0x3dba4e['message']=_0x4c6090,await BrowserstackCLI[_0x27f88f(0x205)]()[_0x27f88f(0x1d4)]()[_0x27f88f(0x1b0)](AutomationFrameworkState[_0x27f88f(0x1dc)],HookState[_0x27f88f(0x1c6)],_0x3dba4e);}else{const _0xb34ec7=_0x4c6090&&_0x4c6090[_0x27f88f(0x20e)]&&_0x4c6090['params'][_0x27f88f(0x198)];if(_0xb34ec7){const _0x54c9ba=_0xb34ec7[_0x27f88f(0x249)],_0x59e5f2=_0xb34ec7[_0x27f88f(0x1fe)];_0x59e5f2&&(_0x568a69[_0x27f88f(0x1fd)](debug,_0x27f88f(0x236)+_0x59e5f2[_0x27f88f(0x1a6)]()),_0x18c9b4['currentSessionDetails'][_0x27f88f(0x242)]=_0x59e5f2[_0x27f88f(0x23a)],_0x18c9b4[_0x27f88f(0x1c7)][_0x27f88f(0x1d3)]=_0x59e5f2['platformVersion']),_0x54c9ba&&(_0x568a69[_0x27f88f(0x1c3)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x54c9ba),_0x18c9b4[_0x27f88f(0x1c7)][_0x27f88f(0x1ad)]=_0x54c9ba);}}return _0x575b58[_0x27f88f(0x1c8)](this,arguments);};}}),_0x4f9bf2[_0x6acdf(0x233)]['_bstackDispatchPatched']=!![],logger[_0x6acdf(0x1e6)](_0x5e26f9[_0x6acdf(0x208)]);}}}catch(_0x4a430e){_0x5e26f9[_0x6acdf(0x1f1)](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x4a430e),_0x18c9b4[_0x6acdf(0x221)]=_0x4a430e[_0x6acdf(0x1a6)]();}}static['patchCRConnection'](){const _0x47a2cb=a64_0x1384b0,_0x183bca={'RPcaH':function(_0x2da99e,_0x2ec051){return _0x2da99e(_0x2ec051);},'CeGMk':function(_0x2cae19,_0x625749){return _0x2cae19(_0x625749);},'HeFUv':_0x47a2cb(0x1f8),'xwfZy':'server','OwunM':_0x47a2cb(0x1fa),'kCJNE':_0x47a2cb(0x1e2),'gzrtz':function(_0xf90f55,_0x16b0f4){return _0xf90f55(_0x16b0f4);},'vwKTC':function(_0xc87740,_0x412f29){return _0xc87740(_0x412f29);},'HWemf':_0x47a2cb(0x196),'ClgeZ':function(_0x55a16d,_0x32c955){return _0x55a16d(_0x32c955);},'oAqGb':'Error\x20in\x20importing\x20crConnection','uYFnT':function(_0x1ebf04,_0x16aeb5){return _0x1ebf04!=_0x16aeb5;},'BEXIL':_0x47a2cb(0x200),'hwcTE':_0x47a2cb(0x1ed),'nmLCA':_0x47a2cb(0x227),'nWFFh':function(_0x3fa923,_0x6d535){return _0x3fa923(_0x6d535);}},_0xe0256d=this;let _0xe5a654=null;try{const _0x223b05=path[_0x47a2cb(0x21d)](_0x183bca[_0x47a2cb(0x19d)],_0x183bca[_0x47a2cb(0x206)],_0x183bca[_0x47a2cb(0x22e)],_0x183bca['kCJNE']),_0x51335e=_0x183bca[_0x47a2cb(0x231)](importFileFromPWCore,_0x223b05);!_0x51335e?_0x183bca[_0x47a2cb(0x22f)](debug,_0x183bca[_0x47a2cb(0x193)]):_0xe5a654=_0x51335e['CRConnection'];}catch(_0x270b3c){_0x183bca['ClgeZ'](debug,_0x183bca[_0x47a2cb(0x1f7)]);}try{if(_0x183bca[_0x47a2cb(0x232)](_0xe5a654,null)){const _0x4dd603=_0xe5a654['prototype']['_onMessage'];if(_0xe5a654[_0x47a2cb(0x233)][_0x47a2cb(0x1d8)]){logger[_0x47a2cb(0x1e6)](_0x183bca['BEXIL']);return;}Object[_0x47a2cb(0x21c)](_0xe5a654['prototype'],_0x183bca[_0x47a2cb(0x190)],{'get':function(){return async function _0x5d1347(_0xe3b289){const _0x542e18=a64_0x3f29;try{if(BrowserstackCLI[_0x542e18(0x205)]()[_0x542e18(0x1c4)]()){const _0x3a2cf0={};_0x3a2cf0[_0x542e18(0x19f)]=_0xe3b289,await BrowserstackCLI['getInstance']()['getAutomationFramework']()[_0x542e18(0x1b0)](AutomationFrameworkState[_0x542e18(0x1dc)],HookState[_0x542e18(0x1c6)],_0x3a2cf0),delete _0xe3b289[_0x542e18(0x1ba)];}else{const _0x1cea1e=_0xe3b289[_0x542e18(0x1ba)];if(_0x1cea1e){delete _0xe3b289[_0x542e18(0x1ba)];const _0x3a8805=_0x1cea1e[_0x542e18(0x249)],_0x741e24=_0x1cea1e[_0x542e18(0x1fe)];_0x741e24&&(_0x183bca[_0x542e18(0x241)](debug,_0x542e18(0x216)+_0x741e24[_0x542e18(0x1a6)]()),_0xe0256d[_0x542e18(0x1c7)][_0x542e18(0x242)]=_0x741e24['platformName'],_0xe0256d[_0x542e18(0x1c7)][_0x542e18(0x1d3)]=_0x741e24[_0x542e18(0x217)]),_0x3a8805&&(_0x183bca[_0x542e18(0x1e9)](debug,_0x542e18(0x223)+_0x3a8805),_0xe0256d[_0x542e18(0x1c7)][_0x542e18(0x1ad)]=_0x3a8805);}}}catch(_0xfd310){_0x183bca[_0x542e18(0x241)](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0xfd310[_0x542e18(0x1a6)]());}return _0x4dd603['apply'](this,arguments);};}}),_0xe5a654['prototype'][_0x47a2cb(0x1d8)]=!![],logger[_0x47a2cb(0x1e6)](_0x183bca[_0x47a2cb(0x1f0)]);}}catch(_0x145a52){_0x183bca[_0x47a2cb(0x23e)](debug,_0x47a2cb(0x194)+_0x145a52),_0xe0256d['sessionError']=_0x145a52[_0x47a2cb(0x1a6)]();}}static[a64_0x1384b0(0x1c1)](_0x405c3a,_0x5b8492){const _0x55ef74=a64_0x1384b0,_0x262303={'BuRgY':_0x55ef74(0x1d2),'tWPbx':function(_0x4d4186,_0x223193){return _0x4d4186||_0x223193;},'AxFJw':function(_0x6ed813,_0x195827){return _0x6ed813===_0x195827;},'BkIIQ':_0x55ef74(0x192),'aEGle':_0x55ef74(0x21a),'jCOCq':function(_0xb49622,_0x53afb3){return _0xb49622(_0x53afb3);},'iTxhh':function(_0x49c060,_0x1911b7){return _0x49c060(_0x1911b7);}};let _0x37a8d2=null,_0xcc190=null;try{const _0x190233=[_0x5b8492,global[_0x55ef74(0x1ac)],global[_0x55ef74(0x22b)]];for(const _0x29d527 of _0x190233){if(_0x29d527&&(!_0xcc190||!_0xcc190[_0x55ef74(0x249)])){const _0x4850ec=_0x29d527[_0x55ef74(0x249)]||_0x29d527[_0x262303['BuRgY']]?.['sessionId'],_0x227c2d=_0x29d527[_0x55ef74(0x248)]||_0x29d527['browser']||_0x29d527[_0x262303[_0x55ef74(0x19e)]]?.[_0x55ef74(0x248)],_0x18f3d9=_0x29d527['browserVersion']||_0x29d527[_0x55ef74(0x214)]||_0x29d527[_0x262303[_0x55ef74(0x19e)]]?.[_0x55ef74(0x1e3)],_0x10da8d=_0x29d527['os']||_0x29d527[_0x55ef74(0x242)]||_0x29d527[_0x262303[_0x55ef74(0x19e)]]?.['os'],_0x2660b5=_0x29d527[_0x55ef74(0x226)]||_0x29d527[_0x55ef74(0x1d7)]||_0x29d527[_0x262303[_0x55ef74(0x19e)]]?.[_0x55ef74(0x226)];if(_0x262303[_0x55ef74(0x1bd)](_0x4850ec,_0x227c2d)||_0x10da8d){const _0x2d4097={};_0x2d4097[_0x55ef74(0x248)]=_0x227c2d,_0x2d4097[_0x55ef74(0x1e3)]=_0x18f3d9,_0x2d4097['os']=_0x10da8d,_0x2d4097['osVersion']=_0x2660b5,_0x2d4097[_0x55ef74(0x23a)]=_0x29d527['platformName']||_0x10da8d,_0x2d4097[_0x55ef74(0x217)]=_0x29d527[_0x55ef74(0x217)]||_0x2660b5;const _0x2d0982={};_0x2d0982[_0x55ef74(0x249)]=_0x4850ec,_0x2d0982[_0x55ef74(0x1fe)]=_0x2d4097,_0xcc190=_0x2d0982;if(_0x262303[_0x55ef74(0x1bd)](_0x4850ec,_0x227c2d)){logger[_0x55ef74(0x1e6)]('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0x227c2d+_0x55ef74(0x18c)+_0x10da8d);break;}}}}if(_0x405c3a&&_0x262303[_0x55ef74(0x18b)](typeof _0x405c3a,_0x262303[_0x55ef74(0x250)]))try{const _0x58b4a0=url['parse'](_0x405c3a),_0x308836=new URLSearchParams(_0x58b4a0[_0x55ef74(0x237)]),_0x26a38d=Object['fromEntries'](_0x308836[_0x55ef74(0x243)]()),_0x56a9c2=[_0x26a38d[_0x55ef74(0x1be)],_0x26a38d['capabilities'],_0x26a38d['desiredCapabilities']];for(const _0x253eac of _0x56a9c2){if(_0x253eac&&(!_0x37a8d2||!_0x37a8d2[_0x55ef74(0x249)]))try{const _0x1239da=JSON[_0x55ef74(0x1d5)](_0x253eac),_0x3258e0={};_0x3258e0[_0x55ef74(0x249)]=_0x1239da['sessionId']||_0x1239da[_0x262303[_0x55ef74(0x19e)]]?.[_0x55ef74(0x249)],_0x3258e0[_0x55ef74(0x1fe)]={},_0x3258e0[_0x55ef74(0x1fe)]['browserName']=_0x1239da[_0x55ef74(0x248)]||_0x1239da[_0x55ef74(0x1e5)],_0x3258e0[_0x55ef74(0x1fe)][_0x55ef74(0x1e3)]=_0x1239da[_0x55ef74(0x1e3)]||_0x1239da[_0x55ef74(0x214)],_0x3258e0[_0x55ef74(0x1fe)]['os']=_0x1239da['os']||_0x1239da[_0x55ef74(0x242)],_0x3258e0[_0x55ef74(0x1fe)][_0x55ef74(0x226)]=_0x1239da['osVersion']||_0x1239da['os_version'],_0x3258e0[_0x55ef74(0x1fe)][_0x55ef74(0x23a)]=_0x1239da[_0x55ef74(0x23a)]||_0x1239da['os']||_0x1239da[_0x55ef74(0x242)],_0x3258e0[_0x55ef74(0x1fe)][_0x55ef74(0x217)]=_0x1239da[_0x55ef74(0x217)]||_0x1239da['osVersion']||_0x1239da[_0x55ef74(0x1d7)],_0x37a8d2=_0x3258e0;if(_0x37a8d2[_0x55ef74(0x249)]||_0x37a8d2[_0x55ef74(0x1fe)][_0x55ef74(0x248)]){logger[_0x55ef74(0x1e6)](_0x262303[_0x55ef74(0x1eb)]);break;}}catch(_0x559e3d){_0x262303[_0x55ef74(0x1db)](debug,'Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20'+_0x559e3d[_0x55ef74(0x1a6)]());}}}catch(_0x22fb3e){_0x262303['iTxhh'](debug,'Error\x20parsing\x20WebSocket\x20endpoint:\x20'+_0x22fb3e[_0x55ef74(0x1a6)]());}}catch(_0x497a06){_0x262303[_0x55ef74(0x1db)](debug,_0x55ef74(0x252)+util[_0x55ef74(0x1fb)](_0x497a06));}const _0x4e6810={};return _0x4e6810[_0x55ef74(0x198)]=_0x37a8d2,_0x4e6810[_0x55ef74(0x1ba)]=_0xcc190,_0x4e6810;}static async[a64_0x1384b0(0x24b)](_0x22e690,_0x3c0057){const _0x572f89=a64_0x1384b0,_0x5dacac={'XTpNy':function(_0x3ccdef,_0x47ee2a){return _0x3ccdef||_0x47ee2a;},'WFSmA':_0x572f89(0x1bc),'QwBnx':function(_0x5119a9,_0x3966bb){return _0x5119a9(_0x3966bb);}};try{if(!BrowserstackCLI[_0x572f89(0x205)]()[_0x572f89(0x1c4)]())return;if(_0x5dacac[_0x572f89(0x20a)](_0x22e690,_0x3c0057)){logger[_0x572f89(0x1e6)](_0x5dacac['WFSmA']);const _0x2f179b={'params':_0x22e690?{'bsParams':_0x22e690}:null,'bStackParams':_0x5dacac[_0x572f89(0x20a)](_0x3c0057,null)},_0x2a3d8a=AutomationFramework['getTrackedInstance'](),_0x10c796={};_0x10c796[_0x572f89(0x19f)]=_0x2f179b,_0x10c796['instance']=_0x2a3d8a,await BrowserstackCLI[_0x572f89(0x205)]()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x572f89(0x1dc)],HookState[_0x572f89(0x1c6)],_0x10c796);}}catch(_0x19e262){_0x5dacac['QwBnx'](debug,_0x572f89(0x20b)+util[_0x572f89(0x1fb)](_0x19e262));}}static[a64_0x1384b0(0x1ae)](){const _0x411d0a=a64_0x1384b0;return this[_0x411d0a(0x1c7)];}}module[a64_0x1384b0(0x251)]=SharedPlaywrightSessionDetails;
@@ -1 +1 @@
1
- const a65_0x455854=a65_0x573c;(function(_0x3c236a,_0x280ad9){const _0x574199=a65_0x573c,_0x2dc3cf=_0x3c236a();while(!![]){try{const _0x4a219d=parseInt(_0x574199(0x16a))/0x1*(-parseInt(_0x574199(0x163))/0x2)+parseInt(_0x574199(0x164))/0x3*(parseInt(_0x574199(0x16c))/0x4)+-parseInt(_0x574199(0x16f))/0x5+-parseInt(_0x574199(0x175))/0x6+-parseInt(_0x574199(0x172))/0x7*(-parseInt(_0x574199(0x170))/0x8)+parseInt(_0x574199(0x173))/0x9+-parseInt(_0x574199(0x165))/0xa*(-parseInt(_0x574199(0x168))/0xb);if(_0x4a219d===_0x280ad9)break;else _0x2dc3cf['push'](_0x2dc3cf['shift']());}catch(_0x13e567){_0x2dc3cf['push'](_0x2dc3cf['shift']());}}}(a65_0x28e3,0x7991d));function a65_0x28e3(){const _0x287edc=['22gPjcjy','AkTAx','3efUwNr','nestedKeyValue','2901092sGxEoc','get','hgKaG','4842525txkRBH','4696JmZhog','DXCvk','1862JWRogm','7725744CckjPM','function','4065132TbICYY','isHash','exports','306062vUwKvL','3CiSFax','4316190OGUBMP','FaJQI','reduce'];a65_0x28e3=function(){return _0x287edc;};return a65_0x28e3();}function a65_0x573c(_0x5e3e0f,_0x48d307){const _0x28e30e=a65_0x28e3();return a65_0x573c=function(_0x573ca0,_0x4781bd){_0x573ca0=_0x573ca0-0x163;let _0x4bddee=_0x28e30e[_0x573ca0];return _0x4bddee;},a65_0x573c(_0x5e3e0f,_0x48d307);}const isHash=_0x18eb19=>Boolean(_0x18eb19&&typeof _0x18eb19==='object'&&!Array['isArray'](_0x18eb19)),nestedKeyValue=(_0xc3b65d,_0x36ef19)=>{const _0x22e50c=a65_0x573c,_0x17e972={'FaJQI':function(_0x4beb3a,_0xa2f40b){return _0x4beb3a===_0xa2f40b;},'AkTAx':function(_0x1a68af,_0x34d0b1){return _0x1a68af===_0x34d0b1;},'DXCvk':_0x22e50c(0x174),'hgKaG':function(_0x5e0d7a,_0x499ee7){return _0x5e0d7a(_0x499ee7);}};return _0x36ef19[_0x22e50c(0x167)]((_0x197b35,_0x5b6b94)=>{const _0x28ee58=_0x22e50c;if(_0x17e972[_0x28ee58(0x166)](_0x197b35,undefined)||_0x17e972[_0x28ee58(0x166)](_0x197b35,null))return undefined;if(_0x197b35&&_0x17e972[_0x28ee58(0x169)](typeof _0x197b35[_0x28ee58(0x16d)],_0x17e972[_0x28ee58(0x171)]))return _0x197b35[_0x28ee58(0x16d)](_0x5b6b94);if(_0x17e972[_0x28ee58(0x16e)](isHash,_0x197b35))return _0x197b35[_0x5b6b94];return undefined;},_0xc3b65d);},a65_0x337411={};a65_0x337411[a65_0x455854(0x176)]=isHash,a65_0x337411[a65_0x455854(0x16b)]=nestedKeyValue,module[a65_0x455854(0x177)]=a65_0x337411;
1
+ const a65_0x28f184=a65_0x7761;(function(_0x531a4c,_0x4dc593){const _0x17a5f8=a65_0x7761,_0x2c7bcf=_0x531a4c();while(!![]){try{const _0x274bd3=-parseInt(_0x17a5f8(0x91))/0x1+-parseInt(_0x17a5f8(0xa3))/0x2+-parseInt(_0x17a5f8(0x93))/0x3*(parseInt(_0x17a5f8(0x94))/0x4)+parseInt(_0x17a5f8(0x96))/0x5+-parseInt(_0x17a5f8(0xa0))/0x6*(-parseInt(_0x17a5f8(0x92))/0x7)+parseInt(_0x17a5f8(0x98))/0x8*(-parseInt(_0x17a5f8(0x90))/0x9)+parseInt(_0x17a5f8(0x97))/0xa;if(_0x274bd3===_0x4dc593)break;else _0x2c7bcf['push'](_0x2c7bcf['shift']());}catch(_0xd0c2d5){_0x2c7bcf['push'](_0x2c7bcf['shift']());}}}(a65_0x2d90,0x36524));function a65_0x7761(_0x57792e,_0x4cf3fe){const _0x2d90cd=a65_0x2d90();return a65_0x7761=function(_0x7761e5,_0x476efb){_0x7761e5=_0x7761e5-0x90;let _0xe36d63=_0x2d90cd[_0x7761e5];return _0xe36d63;},a65_0x7761(_0x57792e,_0x4cf3fe);}const isHash=_0x55941f=>Boolean(_0x55941f&&typeof _0x55941f==='object'&&!Array[a65_0x28f184(0x9b)](_0x55941f)),nestedKeyValue=(_0x1bd857,_0x3908ea)=>{const _0x3dca5d=a65_0x28f184,_0xdacb37={'FSBsn':function(_0x504081,_0x49a1b7){return _0x504081===_0x49a1b7;},'dfchB':function(_0x173481,_0xf762b4){return _0x173481===_0xf762b4;},'leEII':function(_0x49c52e,_0x45bd44){return _0x49c52e===_0x45bd44;},'tXHaK':_0x3dca5d(0x9a),'Gsava':function(_0x31fed1,_0x2a74de){return _0x31fed1(_0x2a74de);}};return _0x3908ea[_0x3dca5d(0xa1)]((_0x348877,_0x13a22f)=>{const _0x5b4183=_0x3dca5d;if(_0xdacb37[_0x5b4183(0x9c)](_0x348877,undefined)||_0xdacb37[_0x5b4183(0xa2)](_0x348877,null))return undefined;if(_0x348877&&_0xdacb37[_0x5b4183(0x9e)](typeof _0x348877[_0x5b4183(0x95)],_0xdacb37['tXHaK']))return _0x348877[_0x5b4183(0x95)](_0x13a22f);if(_0xdacb37[_0x5b4183(0x9d)](isHash,_0x348877))return _0x348877[_0x13a22f];return undefined;},_0x1bd857);},a65_0x3fe686={};function a65_0x2d90(){const _0x4c2cb5=['328KkrGgz','get','2206885ZATQjy','8136160SQMrjM','8uNfQcV','isHash','function','isArray','FSBsn','Gsava','leEII','nestedKeyValue','78zhqRPD','reduce','dfchB','846706unTqLG','564894DsIuft','209969iYdbPb','25543mumzlM','14043jxmCOJ'];a65_0x2d90=function(){return _0x4c2cb5;};return a65_0x2d90();}a65_0x3fe686[a65_0x28f184(0x99)]=isHash,a65_0x3fe686[a65_0x28f184(0x9f)]=nestedKeyValue,module['exports']=a65_0x3fe686;
@@ -1 +1 @@
1
- const a66_0xd9f717=a66_0x5e13;(function(_0x42f4c4,_0x387f09){const _0x40c467=a66_0x5e13,_0x25dfd0=_0x42f4c4();while(!![]){try{const _0x1447a2=parseInt(_0x40c467(0x106))/0x1+-parseInt(_0x40c467(0xc9))/0x2+-parseInt(_0x40c467(0xaf))/0x3*(parseInt(_0x40c467(0x87))/0x4)+-parseInt(_0x40c467(0x8a))/0x5*(-parseInt(_0x40c467(0x8d))/0x6)+parseInt(_0x40c467(0x9b))/0x7+parseInt(_0x40c467(0xc2))/0x8+parseInt(_0x40c467(0xa5))/0x9;if(_0x1447a2===_0x387f09)break;else _0x25dfd0['push'](_0x25dfd0['shift']());}catch(_0x589cc9){_0x25dfd0['push'](_0x25dfd0['shift']());}}}(a66_0x1fa9,0x7888a));function a66_0x1fa9(){const _0xa79fb=['traceZipDir','appendFileSync','appendToTracePaths','../../helpers/logger','getTestDetails','getTraceZipDir','ZHKon','error','Error\x20handling\x20trace\x20file\x20paths:\x20%O','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','160301lAwCrH','forEach','XvzvW','join','WCylt','force','mergeDeep','dirPath','Error\x20writing\x20trace\x20file:\x20%O','4dLkEuQ','mXsJB','\x20Setting\x20test\x20details\x20for\x20','1786415ubvInf','TestInfo','traceZipPaths','12VTXIwG','.json','info','storeLogObjects:\x20processId:\x20','readLogObjects:\x20Retrieved\x20','mfvVz','trace_','tests','getTestRunIdFromTestInfo','../../helpers/test-observability/constants','getTestIdentifierFromTestInfo','pid','PKWWp','util','988057HeGNiS','.\x20Unable\x20to\x20add\x20console\x20log.','TkOLw','storeLogObjects','addTraceFilePath','ubAZo','WDapN','push','testId','testFramework','456732OQzxtW','../../helpers/helper','Failed\x20to\x20acquire\x20lock\x20for\x20','dirname','pbWKJ','resolve','readLogObjects:\x20processId:\x20','DsUON','.txt','PrJiR','2049702iYhIBc','CmdxG','getTestIdFromTestInfo','default','KdmTu','getTraceFilePaths','parse','Ocaof','.\x20Returning\x20empty\x20test\x20details.','gpNbT','readFileSync','getStoreDirPath','\x20log\x20objects\x20for\x20testId:\x20','exports','uuid','shutdown','_traceZipPaths.json','yhpgj','endsWith','6766952AcjMVI','Error\x20reading\x20trace\x20file\x20paths:\x20%O','FYDqk','toString','existsSync','\x20Adding\x20console\x20log\x20for\x20','getTestUUID','1471390PYFjgD','object','qJpDp','getFilePath','PTOOj','dVuYW','setAccessibilityPlatformValidation','getStoreDirName','message','ixTjg','format','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','logger','MuCuP','BS_TESTOPS_BUILD_HASHED_ID','mkdirSync','jZKvI','_test','logObjects','split','_platformDetails.json','homedir','1|2|3|4|6|0|5','_projectId','env','etuMR','dsJov','mIKBv','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','recursive','writeFileSync','rmSync','setup','debug','some','lockSync','winstonLogger','readLogObjects','utf8','string','JGyKj','stringify','length','nLVJQ','values','dVvDP','XRVPm','filePath','.browserstack','Mhetc','isArray'];a66_0x1fa9=function(){return _0xa79fb;};return a66_0x1fa9();}const fs=require('fs'),path=require('path'),{TEMP_STORE_DIR_NAME}=require(a66_0xd9f717(0x96)),{nestedKeyValue}=require(a66_0xd9f717(0xa6)),logger=require(a66_0xd9f717(0xff))[a66_0xd9f717(0xed)],util=require(a66_0xd9f717(0x9a)),helper=require('../../helpers/helper'),{createClassLogger}=require('../../helpers/classLogger.js'),lockfile=require('proper-lockfile'),{v4:uuidv4}=require(a66_0xd9f717(0xbd));function a66_0x5e13(_0x59e502,_0x5c1362){const _0x1fa9d3=a66_0x1fa9();return a66_0x5e13=function(_0x5e1328,_0x5e3be5){_0x5e1328=_0x5e1328-0x87;let _0xee3493=_0x1fa9d3[_0x5e1328];return _0xee3493;},a66_0x5e13(_0x59e502,_0x5c1362);}class TestInfo{static [a66_0xd9f717(0x94)]={};static [a66_0xd9f717(0x10d)]=TestInfo[a66_0xd9f717(0xd0)]();static [a66_0xd9f717(0xfc)]=path[a66_0xd9f717(0x109)](TestInfo[a66_0xd9f717(0x10d)],a66_0xd9f717(0x8c));static [a66_0xd9f717(0xa4)]=null;[a66_0xd9f717(0xd5)]=createClassLogger(a66_0xd9f717(0x8b));static[a66_0xd9f717(0xe9)](_0x27302a){const _0x3e3bee=a66_0xd9f717,_0x103f4a={};_0x103f4a['CmdxG']=_0x3e3bee(0xdf),_0x103f4a[_0x3e3bee(0x9d)]=_0x3e3bee(0x8c);const _0x1aa8db=_0x103f4a,_0x388efe=_0x1aa8db[_0x3e3bee(0xb0)][_0x3e3bee(0xdc)]('|');let _0x5dca16=0x0;while(!![]){switch(_0x388efe[_0x5dca16++]){case'0':const _0x51ca56={};_0x51ca56[_0x3e3bee(0xe6)]=!![],fs[_0x3e3bee(0xd8)](this[_0x3e3bee(0xfc)],_0x51ca56);continue;case'1':this['dirPath']=TestInfo[_0x3e3bee(0xd0)]();continue;case'2':this[_0x3e3bee(0xfc)]=path[_0x3e3bee(0x109)](this[_0x3e3bee(0x10d)],_0x1aa8db[_0x3e3bee(0x9d)]);continue;case'3':this[_0x3e3bee(0xa4)]=_0x27302a;continue;case'4':this[_0x3e3bee(0xbe)]();continue;case'5':logger[_0x3e3bee(0x8f)]('Setting\x20up\x20TestInfo\x20directory\x20at\x20'+this[_0x3e3bee(0x10d)]);continue;case'6':const _0x48ca32={};_0x48ca32[_0x3e3bee(0xe6)]=!![],fs[_0x3e3bee(0xd8)](this[_0x3e3bee(0x10d)],_0x48ca32);continue;}break;}}static[a66_0xd9f717(0xd0)](){const _0x9b4cdc=a66_0xd9f717,_0x2fe92b={};_0x2fe92b['AbskX']=function(_0x55c381,_0x1eb9c5){return _0x55c381+_0x1eb9c5;},_0x2fe92b[_0x9b4cdc(0xe4)]=_0x9b4cdc(0xb2);const _0x334f29=_0x2fe92b;return _0x334f29['AbskX'](_0x334f29['AbskX'](TEMP_STORE_DIR_NAME,'-'),process[_0x9b4cdc(0xe1)][_0x9b4cdc(0xd7)]||_0x334f29[_0x9b4cdc(0xe4)]);}static[a66_0xd9f717(0xba)](){const _0x35da2d=a66_0xd9f717,_0x111747={};_0x111747['WaqvY']=function(_0xab3248,_0x2fc31d){return _0xab3248+_0x2fc31d;},_0x111747[_0x35da2d(0xf1)]=function(_0x55224c,_0x5f2214){return _0x55224c+_0x5f2214;},_0x111747[_0x35da2d(0xb8)]='default';const _0x4ecd76=_0x111747;return path[_0x35da2d(0x109)](_0x4ecd76['WaqvY'](_0x4ecd76[_0x35da2d(0xf1)](TEMP_STORE_DIR_NAME,'-'),process[_0x35da2d(0xe1)][_0x35da2d(0xd7)]||_0x4ecd76[_0x35da2d(0xb8)]));}static['getTraceZipDir'](){const _0x354217=a66_0xd9f717,_0x185e9d={};_0x185e9d[_0x354217(0x92)]=_0x354217(0x8c);const _0x3cbb9b=_0x185e9d;return path[_0x354217(0x109)](this['getStoreDirPath'](),_0x3cbb9b[_0x354217(0x92)]);}static[a66_0xd9f717(0xcc)](_0x1517ef){const _0x1c792a=a66_0xd9f717,_0x4b1135={};_0x4b1135[_0x1c792a(0xa0)]=function(_0x406b48,_0x543289){return _0x406b48+_0x543289;},_0x4b1135['PKWWp']=_0x1c792a(0x8e);const _0x3ab30d=_0x4b1135;return path[_0x1c792a(0x109)](this[_0x1c792a(0x10d)],_0x3ab30d[_0x1c792a(0xa0)](_0x1517ef,_0x3ab30d[_0x1c792a(0x99)]));}static[a66_0xd9f717(0x95)](_0x1a7ec1){const _0x489412=a66_0xd9f717,_0x570084={};_0x570084[_0x489412(0xa9)]=function(_0x3c6f30,_0x538983){return _0x3c6f30+_0x538983;},_0x570084[_0x489412(0xac)]=function(_0x1b13cb,_0x2f0249){return _0x1b13cb+_0x2f0249;};const _0x31d363=_0x570084;return _0x31d363[_0x489412(0xa9)](_0x31d363[_0x489412(0xa9)](_0x31d363['pbWKJ'](_0x31d363[_0x489412(0xac)](this['getProjectIdFromTestInfo'](_0x1a7ec1),'-'),this[_0x489412(0xb1)](_0x1a7ec1)),'-'),_0x1a7ec1['retry']);}static['getProjectIdFromTestInfo'](_0x4e0a5b){const _0x40b87e=a66_0xd9f717,_0x5c5952={'Ocaof':function(_0x4cf973,_0x43c03e,_0x45737f){return _0x4cf973(_0x43c03e,_0x45737f);},'WCylt':'_test','PTOOj':_0x40b87e(0xe0),'MuCuP':'project','Mhetc':'__projectId'};return _0x5c5952[_0x40b87e(0xb6)](nestedKeyValue,_0x4e0a5b,[_0x5c5952[_0x40b87e(0x10a)],_0x5c5952[_0x40b87e(0xcd)]])||_0x5c5952['Ocaof'](nestedKeyValue,_0x4e0a5b,[_0x5c5952[_0x40b87e(0xd6)],_0x5c5952[_0x40b87e(0xfa)]]);}static[a66_0xd9f717(0xb1)](_0x12abe7){const _0x2298f6=a66_0xd9f717,_0x17f386={'dVuYW':function(_0x567153,_0x1e870b,_0x3028b3){return _0x567153(_0x1e870b,_0x3028b3);},'FsFCs':_0x2298f6(0xda)};return _0x17f386[_0x2298f6(0xce)](nestedKeyValue,_0x12abe7,[_0x17f386['FsFCs'],'id'])||_0x12abe7[_0x2298f6(0xa3)];}static[a66_0xd9f717(0x97)](_0x2a8006,_0xc167f8){const _0x3be91e=a66_0xd9f717,_0x56ff82={};_0x56ff82[_0x3be91e(0xd9)]=function(_0x2f07c0,_0x130c82){return _0x2f07c0+_0x130c82;};const _0x85c4c7=_0x56ff82;return _0x85c4c7['jZKvI'](_0x85c4c7[_0x3be91e(0xd9)](this[_0x3be91e(0xb1)](_0x2a8006),'-'),_0xc167f8);}static[a66_0xd9f717(0xc8)](_0x427720){const _0x5352d5=a66_0xd9f717,_0x4df2f9={'dVvDP':function(_0x477ae1,_0x228a7e){return _0x477ae1===_0x228a7e;},'qJpDp':_0x5352d5(0xf0),'etuMR':function(_0x7215e){return _0x7215e();}};try{if(this[_0x5352d5(0x94)][_0x427720]&&_0x4df2f9[_0x5352d5(0xf6)](typeof this[_0x5352d5(0x94)][_0x427720]['uuid'],_0x4df2f9[_0x5352d5(0xcb)]))return this[_0x5352d5(0x94)][_0x427720]['uuid'];const _0x1572dd=this[_0x5352d5(0xcc)](_0x427720),_0x23207d=path[_0x5352d5(0xaa)](_0x1572dd);if(fs[_0x5352d5(0xc6)](_0x23207d)){const _0x22b357=JSON[_0x5352d5(0xb5)](fs['readFileSync'](_0x1572dd)[_0x5352d5(0xc5)]());return this[_0x5352d5(0x94)][_0x427720]=_0x22b357,this[_0x5352d5(0x94)][_0x427720][_0x5352d5(0xbd)];}this[_0x5352d5(0x94)][_0x427720]={'uuid':_0x4df2f9[_0x5352d5(0xe2)](uuidv4)};try{fs[_0x5352d5(0xe7)](_0x1572dd,JSON[_0x5352d5(0xf2)](this[_0x5352d5(0x94)][_0x427720]));}catch(_0x2ef596){logger['error']('Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20'+_0x427720+':\x20'+_0x2ef596[_0x5352d5(0xd1)]);}return this['tests'][_0x427720]['uuid'];}catch(_0x5268d2){return logger['error']('Error\x20while\x20getting\x20test\x20UUID\x20for\x20'+_0x427720+':\x20'+_0x5268d2[_0x5352d5(0xd1)]),null;}}static['getAccessibilityPlatformValidation'](_0x3735db){const _0x5f426d=a66_0xd9f717,_0x481559=path[_0x5f426d(0x109)](this[_0x5f426d(0x10d)],_0x3735db+_0x5f426d(0xdd));if(fs['existsSync'](_0x481559))return fs['readFileSync'](_0x481559)[_0x5f426d(0xc5)]();}static[a66_0xd9f717(0xcf)](_0x29badf,_0x47e2e9){const _0x427f2e=a66_0xd9f717,_0x16c577=path[_0x427f2e(0x109)](this[_0x427f2e(0x10d)],_0x47e2e9+'_platformDetails.json');fs[_0x427f2e(0xe7)](_0x16c577,_0x29badf[_0x427f2e(0xc5)]());}static[a66_0xd9f717(0xbe)](){const _0x3f7a19=a66_0xd9f717,_0x23bec7={};_0x23bec7[_0x3f7a19(0xe6)]=!![],_0x23bec7[_0x3f7a19(0x10b)]=!![],fs[_0x3f7a19(0xe8)](this[_0x3f7a19(0x10d)],_0x23bec7);}static[a66_0xd9f717(0x100)](_0x4b750d){const _0x325753=a66_0xd9f717,_0x187f48=this[_0x325753(0xcc)](_0x4b750d);if(fs[_0x325753(0xc6)](_0x187f48))try{const _0xf1c27f=JSON['parse'](fs[_0x325753(0xb9)](_0x187f48)[_0x325753(0xc5)]());return this[_0x325753(0x94)][_0x4b750d]=_0xf1c27f,_0xf1c27f;}catch(_0x9ae62){return logger[_0x325753(0xea)](_0x325753(0xa7)+_0x187f48+':\x20'+util[_0x325753(0xd3)](_0x9ae62)+_0x325753(0xb7)),{};}return{};}static['setTestDetails'](_0x5400fd,_0x1b5fc4,_0x375a09=![]){const _0x14b533=a66_0xd9f717,_0x2e9bc0={'nLVJQ':function(_0x24e2e7){return _0x24e2e7();}};logger[_0x14b533(0xea)]('[setTestDetails]\x20processId:\x20'+process[_0x14b533(0x98)]+_0x14b533(0x89)+_0x5400fd+'\x20with\x20details:\x20'+JSON[_0x14b533(0xf2)](_0x1b5fc4));const _0x4af3f5=this[_0x14b533(0xcc)](_0x5400fd);if(fs['existsSync'](_0x4af3f5))try{const _0x312cb6=lockfile['lockSync'](_0x4af3f5),_0x3b93cf=JSON[_0x14b533(0xb5)](fs[_0x14b533(0xb9)](_0x4af3f5)[_0x14b533(0xc5)]());if(_0x375a09)this['tests'][_0x5400fd]=helper[_0x14b533(0x10c)](_0x3b93cf,_0x1b5fc4);else{const _0x1f66af={..._0x3b93cf,..._0x1b5fc4};this['tests'][_0x5400fd]=_0x1f66af;}fs[_0x14b533(0xe7)](_0x4af3f5,JSON[_0x14b533(0xf2)](this[_0x14b533(0x94)][_0x5400fd])),_0x2e9bc0[_0x14b533(0xf4)](_0x312cb6);}catch(_0x9243f4){logger['debug'](_0x14b533(0xa7)+_0x4af3f5+':\x20'+util['format'](_0x9243f4)+'.\x20Unable\x20to\x20set\x20test\x20details.');}}static[a66_0xd9f717(0x9e)](_0x2b23e8,_0x53da98){const _0x40819e=a66_0xd9f717,_0x39c3e7={'ArjXW':function(_0x170d0e,_0x1403ab){return _0x170d0e!==_0x1403ab;},'ytMGT':_0x40819e(0xca),'XvzvW':function(_0xd335ea){return _0xd335ea();}};logger[_0x40819e(0xea)](_0x40819e(0x90)+process[_0x40819e(0x98)]+_0x40819e(0xc7)+_0x2b23e8+'}');const _0x47a941=this[_0x40819e(0xcc)](_0x2b23e8);try{let _0x1d7b90={};if(fs[_0x40819e(0xc6)](_0x47a941)){const _0x5a084f=lockfile[_0x40819e(0xec)](_0x47a941);_0x1d7b90=JSON[_0x40819e(0xb5)](fs[_0x40819e(0xb9)](_0x47a941)[_0x40819e(0xc5)]()),(!_0x1d7b90['logObjects']||_0x39c3e7['ArjXW'](typeof _0x1d7b90[_0x40819e(0xdb)],_0x39c3e7['ytMGT']))&&(_0x1d7b90['logObjects']={}),(!_0x1d7b90[_0x40819e(0xdb)][_0x2b23e8]||!Array[_0x40819e(0xfb)](_0x1d7b90[_0x40819e(0xdb)][_0x2b23e8]))&&(_0x1d7b90['logObjects'][_0x2b23e8]=[]),_0x1d7b90[_0x40819e(0xdb)][_0x2b23e8][_0x40819e(0xa2)](_0x53da98),this[_0x40819e(0x94)][_0x2b23e8]=_0x1d7b90,fs[_0x40819e(0xe7)](_0x47a941,JSON[_0x40819e(0xf2)](this['tests'][_0x2b23e8])),_0x39c3e7[_0x40819e(0x108)](_0x5a084f);}else{const _0x1eb408={};_0x1eb408[_0x40819e(0xbd)]=_0x2b23e8,_0x1eb408[_0x40819e(0xdb)]={},_0x1eb408[_0x40819e(0xdb)][_0x2b23e8]=[_0x53da98],_0x1d7b90=_0x1eb408,this['tests'][_0x2b23e8]=_0x1d7b90,fs[_0x40819e(0xe7)](_0x47a941,JSON[_0x40819e(0xf2)](this[_0x40819e(0x94)][_0x2b23e8]));}}catch(_0x4ab286){logger[_0x40819e(0xea)](_0x40819e(0xa7)+_0x47a941+':\x20'+util[_0x40819e(0xd3)](_0x4ab286)+_0x40819e(0x9c));}}static[a66_0xd9f717(0xee)](_0x40d9fd){const _0x20a263=a66_0xd9f717,_0x53331f={'yhpgj':function(_0x3ce7a3,_0xf08b54){return _0x3ce7a3!==_0xf08b54;},'PrJiR':'object','FYDqk':function(_0x25596b){return _0x25596b();},'KdmTu':function(_0x5f5384,_0x5b86d5){return _0x5f5384===_0x5b86d5;},'dsJov':function(_0xa9b54c){return _0xa9b54c();}};logger[_0x20a263(0xea)](_0x20a263(0xab)+process['pid']+'\x20Retrieving\x20logs\x20for\x20'+_0x40d9fd);const _0x3f3a30=this[_0x20a263(0xcc)](_0x40d9fd);try{if(!fs['existsSync'](_0x3f3a30))return logger['debug'](_0x20a263(0x105)+_0x40d9fd),[];const _0x5f5c1a=lockfile[_0x20a263(0xec)](_0x3f3a30),_0x3a4b99=JSON[_0x20a263(0xb5)](fs[_0x20a263(0xb9)](_0x3f3a30)['toString']());if(!_0x3a4b99[_0x20a263(0xdb)]||_0x53331f[_0x20a263(0xc0)](typeof _0x3a4b99[_0x20a263(0xdb)],_0x53331f[_0x20a263(0xae)]))return logger['debug'](_0x20a263(0xe5)+_0x40d9fd),_0x53331f[_0x20a263(0xc4)](_0x5f5c1a),[];if(!_0x3a4b99[_0x20a263(0xdb)][_0x40d9fd]||!Array[_0x20a263(0xfb)](_0x3a4b99[_0x20a263(0xdb)][_0x40d9fd])||_0x53331f[_0x20a263(0xb3)](_0x3a4b99[_0x20a263(0xdb)][_0x40d9fd][_0x20a263(0xf3)],0x0))return logger[_0x20a263(0xea)]('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x40d9fd),_0x53331f[_0x20a263(0xc4)](_0x5f5c1a),[];const _0x4d0449=[..._0x3a4b99[_0x20a263(0xdb)][_0x40d9fd]];return logger[_0x20a263(0xea)](_0x20a263(0x91)+_0x4d0449[_0x20a263(0xf3)]+_0x20a263(0xbb)+_0x40d9fd),_0x3a4b99['logObjects'][_0x40d9fd]=[],this[_0x20a263(0x94)][_0x40d9fd]=_0x3a4b99,fs[_0x20a263(0xe7)](_0x3f3a30,JSON[_0x20a263(0xf2)](this[_0x20a263(0x94)][_0x40d9fd])),_0x53331f[_0x20a263(0xe3)](_0x5f5c1a),_0x4d0449;}catch(_0x4fbf92){return logger[_0x20a263(0xea)](_0x20a263(0xa7)+_0x3f3a30+':\x20'+util[_0x20a263(0xd3)](_0x4fbf92)+_0x20a263(0xd4)),[];}}static[a66_0xd9f717(0x9f)](_0x1d768f){const _0x1f2ed7=a66_0xd9f717,_0x57f079={};_0x57f079['rIhZz']=_0x1f2ed7(0x104);const _0x1ca1ea=_0x57f079;try{const _0x3d75ce=process[_0x1f2ed7(0x98)],_0x3626d8=path[_0x1f2ed7(0x109)](TestInfo['getTraceZipDir'](),_0x3d75ce+_0x1f2ed7(0xbf));let _0x432f62=[];fs[_0x1f2ed7(0xc6)](_0x3626d8)&&(_0x432f62=JSON[_0x1f2ed7(0xb5)](fs[_0x1f2ed7(0xb9)](_0x3626d8)[_0x1f2ed7(0xc5)]()));if(!_0x432f62[_0x1f2ed7(0xeb)](_0x6a3793=>_0x6a3793[_0x1f2ed7(0xf8)]===_0x1d768f[_0x1f2ed7(0xf8)])){_0x432f62[_0x1f2ed7(0xa2)](_0x1d768f);const _0x361da2=path[_0x1f2ed7(0xa8)](_0x3626d8);if(!fs[_0x1f2ed7(0xc6)](_0x361da2)){const _0x11bac0={};_0x11bac0['recursive']=!![],fs[_0x1f2ed7(0xd8)](_0x361da2,_0x11bac0);}fs['writeFileSync'](_0x3626d8,JSON[_0x1f2ed7(0xf2)](_0x432f62));}}catch(_0x365680){logger[_0x1f2ed7(0x103)](util['format'](_0x1ca1ea['rIhZz'],_0x365680));}}static[a66_0xd9f717(0xb4)](){const _0x159c86=a66_0xd9f717,_0x22572a={};_0x22572a['ZHKon']='_traceZipPaths.json',_0x22572a[_0x159c86(0xd2)]=_0x159c86(0xc3);const _0x4bc587=_0x22572a,_0x34d616=[];try{const _0x11e6fb=TestInfo[_0x159c86(0x101)]();if(!fs[_0x159c86(0xc6)](_0x11e6fb))return _0x34d616;const _0x54fdad=fs['readdirSync'](_0x11e6fb);_0x54fdad[_0x159c86(0x107)](_0x20c48f=>{const _0x28ae5b=_0x159c86;if(_0x20c48f[_0x28ae5b(0xc1)](_0x4bc587[_0x28ae5b(0x102)])){const _0x5a26f4=JSON[_0x28ae5b(0xb5)](fs[_0x28ae5b(0xb9)](path[_0x28ae5b(0x109)](_0x11e6fb,_0x20c48f))[_0x28ae5b(0xc5)]());_0x34d616[_0x28ae5b(0xa2)](..._0x5a26f4);}});}catch(_0x142e41){logger['error'](util[_0x159c86(0xd3)](_0x4bc587[_0x159c86(0xd2)],_0x142e41));}const _0x126f1e={};return _0x34d616['forEach'](_0x473731=>{const _0x5afc21=_0x159c86;_0x126f1e[_0x473731[_0x5afc21(0xf8)]]=_0x473731;}),Object[_0x159c86(0xf5)](_0x126f1e);}static[a66_0xd9f717(0xfe)](_0x230940,_0x3de1da){const _0x5e38e8=a66_0xd9f717,_0x5d3de0={};_0x5d3de0[_0x5e38e8(0x88)]=_0x5e38e8(0xf9),_0x5d3de0[_0x5e38e8(0xf7)]=_0x5e38e8(0xef),_0x5d3de0[_0x5e38e8(0xa1)]=_0x5e38e8(0x10e);const _0x172841=_0x5d3de0;try{const _0x5883a1=path['join'](helper[_0x5e38e8(0xde)](),_0x172841[_0x5e38e8(0x88)]);if(!fs[_0x5e38e8(0xc6)](_0x5883a1)){const _0x41a094={};_0x41a094[_0x5e38e8(0xe6)]=!![],fs[_0x5e38e8(0xd8)](_0x5883a1,_0x41a094);}fs[_0x5e38e8(0xfd)](path[_0x5e38e8(0x109)](_0x5883a1,_0x5e38e8(0x93)+_0x3de1da+_0x5e38e8(0xad)),_0x230940+'\x0a',_0x172841[_0x5e38e8(0xf7)]);}catch(_0x28cbfb){logger[_0x5e38e8(0x103)](util[_0x5e38e8(0xd3)](_0x172841['WDapN'],_0x28cbfb));}}}module[a66_0xd9f717(0xbc)]=TestInfo;
1
+ const a66_0x1e1151=a66_0x30e1;(function(_0xa32ce0,_0x27395b){const _0x18efb8=a66_0x30e1,_0x282567=_0xa32ce0();while(!![]){try{const _0x1e62cd=parseInt(_0x18efb8(0x1bf))/0x1*(parseInt(_0x18efb8(0x1b9))/0x2)+-parseInt(_0x18efb8(0x163))/0x3+parseInt(_0x18efb8(0x161))/0x4+parseInt(_0x18efb8(0x1c0))/0x5+parseInt(_0x18efb8(0x152))/0x6+-parseInt(_0x18efb8(0x18c))/0x7+-parseInt(_0x18efb8(0x196))/0x8;if(_0x1e62cd===_0x27395b)break;else _0x282567['push'](_0x282567['shift']());}catch(_0x138c54){_0x282567['push'](_0x282567['shift']());}}}(a66_0x486f,0xde740));function a66_0x30e1(_0x3f644a,_0x229a6a){const _0x486f1e=a66_0x486f();return a66_0x30e1=function(_0x30e1a9,_0x57fce5){_0x30e1a9=_0x30e1a9-0x145;let _0x385743=_0x486f1e[_0x30e1a9];return _0x385743;},a66_0x30e1(_0x3f644a,_0x229a6a);}const fs=require('fs'),path=require(a66_0x1e1151(0x1cd)),{TEMP_STORE_DIR_NAME}=require(a66_0x1e1151(0x15c)),{nestedKeyValue}=require('../../helpers/helper'),logger=require('../../helpers/logger')['winstonLogger'],util=require(a66_0x1e1151(0x18e)),helper=require(a66_0x1e1151(0x16a)),{createClassLogger}=require(a66_0x1e1151(0x1b1)),lockfile=require('proper-lockfile'),{v4:uuidv4}=require(a66_0x1e1151(0x190));function a66_0x486f(){const _0x26b6ed=['\x20Retrieving\x20logs\x20for\x20','appendToTracePaths','\x20Setting\x20test\x20details\x20for\x20','traceZipPaths','uiwxg','mXFFc','3938515LUISif','BOkkN','util','readLogObjects:\x20processId:\x20','uuid','mergeDeep','project','split','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','filePath','10598408uSAZFB','Error\x20writing\x20trace\x20file:\x20%O','error','toString','ypaZU','Setting\x20up\x20TestInfo\x20directory\x20at\x20','getTestIdentifierFromTestInfo','logObjects','LkgtJ','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','stringify','rmSync','QXQiE','getStoreDirName','getStoreDirPath','SidFw','readdirSync','bsvXN','isArray','lockSync','readFileSync','getTestRunIdFromTestInfo','_projectId','xPVGf','sBKbR','exports','addTraceFilePath','../../helpers/classLogger.js','getFilePath','traceZipDir','force','aDBIL','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','getTraceFilePaths','parse','81676zRHWpJ','rHtZZ','dirPath','[setTestDetails]\x20processId:\x20','.txt','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','23UdeFxl','833190EaaSWi','qcghN','homedir','_traceZipPaths.json','trace_','dirname','XVEML','dSmen','tests','format','CTslR','WuOUZ','appendFileSync','path','Error\x20handling\x20trace\x20file\x20paths:\x20%O','.\x20Unable\x20to\x20set\x20test\x20details.','endsWith','Failed\x20to\x20acquire\x20lock\x20for\x20','shutdown','VAghA','QdAGA','EQtDQ','values','push','5|4|2|3|0|1|6','ZPrsi','utf8','.json','writeFileSync','8860122uRFFxD','default','pid','.browserstack','env','fiTer','recursive','Error\x20reading\x20trace\x20file\x20paths:\x20%O','getProjectIdFromTestInfo','lNGyb','../../helpers/test-observability/constants','uCuWI','getTestUUID','JXNil','TestInfo','5925792knNOCg','\x20log\x20objects\x20for\x20testId:\x20','3796299hcKNje','length','getTestDetails','readLogObjects','getTestIdFromTestInfo','setAccessibilityPlatformValidation','BS_TESTOPS_BUILD_HASHED_ID','../../helpers/helper','existsSync','_platformDetails.json','some','testFramework','jTUoS','NCseg','__projectId','testId','dsaNJ','readLogObjects:\x20Retrieved\x20','mkdirSync','rYAlS','logger','join','retry','message','forEach','getAccessibilityPlatformValidation','QEbZh','_test','wxmCM','SZaUP','debug','getTraceZipDir','UPHWJ','object','storeLogObjects'];a66_0x486f=function(){return _0x26b6ed;};return a66_0x486f();}class TestInfo{static [a66_0x1e1151(0x1c8)]={};static [a66_0x1e1151(0x1bb)]=TestInfo[a66_0x1e1151(0x1a3)]();static [a66_0x1e1151(0x1b3)]=path[a66_0x1e1151(0x178)](TestInfo[a66_0x1e1151(0x1bb)],'traceZipPaths');static ['testFramework']=null;[a66_0x1e1151(0x177)]=createClassLogger(a66_0x1e1151(0x160));static['setup'](_0xf85193){const _0x481e33=a66_0x1e1151,_0x5d6e8c={};_0x5d6e8c['CTslR']=_0x481e33(0x14d),_0x5d6e8c[_0x481e33(0x157)]=_0x481e33(0x189);const _0x28821c=_0x5d6e8c,_0x1d16cd=_0x28821c[_0x481e33(0x1ca)][_0x481e33(0x193)]('|');let _0x534ceb=0x0;while(!![]){switch(_0x1d16cd[_0x534ceb++]){case'0':const _0x4572f4={};_0x4572f4['recursive']=!![],fs[_0x481e33(0x175)](this['dirPath'],_0x4572f4);continue;case'1':const _0x5466a8={};_0x5466a8[_0x481e33(0x158)]=!![],fs[_0x481e33(0x175)](this[_0x481e33(0x1b3)],_0x5466a8);continue;case'2':this[_0x481e33(0x16e)]=_0xf85193;continue;case'3':this[_0x481e33(0x147)]();continue;case'4':this[_0x481e33(0x1b3)]=path['join'](this[_0x481e33(0x1bb)],_0x28821c[_0x481e33(0x157)]);continue;case'5':this[_0x481e33(0x1bb)]=TestInfo[_0x481e33(0x1a3)]();continue;case'6':logger['info'](_0x481e33(0x19b)+this['dirPath']);continue;}break;}}static[a66_0x1e1151(0x1a3)](){const _0x1c310c=a66_0x1e1151,_0x2dbbe1={};_0x2dbbe1[_0x1c310c(0x148)]=function(_0x386831,_0x235f40){return _0x386831+_0x235f40;},_0x2dbbe1[_0x1c310c(0x173)]=_0x1c310c(0x153);const _0xc13d3b=_0x2dbbe1;return _0xc13d3b['VAghA'](_0xc13d3b[_0x1c310c(0x148)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x1c310c(0x169)]||_0xc13d3b['dsaNJ']);}static[a66_0x1e1151(0x1a4)](){const _0x5d9213=a66_0x1e1151,_0x4eba02={};_0x4eba02[_0x5d9213(0x18a)]=function(_0x5a2bba,_0x1b7c69){return _0x5a2bba+_0x1b7c69;},_0x4eba02[_0x5d9213(0x1b5)]='default';const _0x13c02e=_0x4eba02;return path[_0x5d9213(0x178)](_0x13c02e['uiwxg'](_0x13c02e[_0x5d9213(0x18a)](TEMP_STORE_DIR_NAME,'-'),process[_0x5d9213(0x156)][_0x5d9213(0x169)]||_0x13c02e[_0x5d9213(0x1b5)]));}static['getTraceZipDir'](){const _0x54ffb9=a66_0x1e1151,_0x48f28b={};_0x48f28b[_0x54ffb9(0x180)]='traceZipPaths';const _0x374ce8=_0x48f28b;return path[_0x54ffb9(0x178)](this[_0x54ffb9(0x1a4)](),_0x374ce8['SZaUP']);}static[a66_0x1e1151(0x1b2)](_0x65a849){const _0x5ebeef=a66_0x1e1151,_0x26669d={};_0x26669d[_0x5ebeef(0x15f)]=function(_0x5648fa,_0x415adf){return _0x5648fa+_0x415adf;},_0x26669d[_0x5ebeef(0x1a2)]=_0x5ebeef(0x150);const _0x25b6a6=_0x26669d;return path['join'](this[_0x5ebeef(0x1bb)],_0x25b6a6[_0x5ebeef(0x15f)](_0x65a849,_0x25b6a6[_0x5ebeef(0x1a2)]));}static[a66_0x1e1151(0x1ab)](_0x10343d){const _0x219981=a66_0x1e1151,_0x1add71={};_0x1add71[_0x219981(0x1c6)]=function(_0x251e21,_0x4a5324){return _0x251e21+_0x4a5324;},_0x1add71[_0x219981(0x19a)]=function(_0x5bdba1,_0x5c7532){return _0x5bdba1+_0x5c7532;},_0x1add71[_0x219981(0x1cb)]=function(_0x388e7d,_0x2b11cd){return _0x388e7d+_0x2b11cd;};const _0xd71d90=_0x1add71;return _0xd71d90[_0x219981(0x1c6)](_0xd71d90['ypaZU'](_0xd71d90[_0x219981(0x1c6)](_0xd71d90['WuOUZ'](this[_0x219981(0x15a)](_0x10343d),'-'),this['getTestIdFromTestInfo'](_0x10343d)),'-'),_0x10343d[_0x219981(0x179)]);}static[a66_0x1e1151(0x15a)](_0x178734){const _0x17a4bd=a66_0x1e1151,_0x202daf={'bsvXN':function(_0x54a799,_0x58b8af,_0x1d21eb){return _0x54a799(_0x58b8af,_0x1d21eb);},'mXFFc':'_test','dpqXL':_0x17a4bd(0x1ac),'lNGyb':function(_0x5c25fd,_0xcafaaf,_0x15234){return _0x5c25fd(_0xcafaaf,_0x15234);},'ZXBzj':_0x17a4bd(0x192),'uCuWI':_0x17a4bd(0x171)};return _0x202daf[_0x17a4bd(0x1a7)](nestedKeyValue,_0x178734,[_0x202daf[_0x17a4bd(0x18b)],_0x202daf['dpqXL']])||_0x202daf[_0x17a4bd(0x15b)](nestedKeyValue,_0x178734,[_0x202daf['ZXBzj'],_0x202daf[_0x17a4bd(0x15d)]]);}static[a66_0x1e1151(0x167)](_0x45205e){const _0x343c20=a66_0x1e1151,_0x3f69ff={'wxmCM':function(_0x31fc1c,_0x12de4e,_0x4f1ef8){return _0x31fc1c(_0x12de4e,_0x4f1ef8);},'ufKvD':_0x343c20(0x17e)};return _0x3f69ff[_0x343c20(0x17f)](nestedKeyValue,_0x45205e,[_0x3f69ff['ufKvD'],'id'])||_0x45205e[_0x343c20(0x172)];}static[a66_0x1e1151(0x19c)](_0x1a77ce,_0x326b93){const _0x5e5fe7=a66_0x1e1151,_0x3f6527={};_0x3f6527[_0x5e5fe7(0x18d)]=function(_0x1f11d9,_0x1d0b86){return _0x1f11d9+_0x1d0b86;};const _0x425bf8=_0x3f6527;return _0x425bf8[_0x5e5fe7(0x18d)](_0x425bf8['BOkkN'](this[_0x5e5fe7(0x167)](_0x1a77ce),'-'),_0x326b93);}static[a66_0x1e1151(0x15e)](_0x542071){const _0x22ab29=a66_0x1e1151,_0x4fbb84={'sBKbR':function(_0x136bb7,_0x42e904){return _0x136bb7===_0x42e904;},'EQtDQ':'string','rHtZZ':function(_0x1b3627){return _0x1b3627();}};try{if(this[_0x22ab29(0x1c8)][_0x542071]&&_0x4fbb84[_0x22ab29(0x1ae)](typeof this['tests'][_0x542071]['uuid'],_0x4fbb84[_0x22ab29(0x14a)]))return this[_0x22ab29(0x1c8)][_0x542071][_0x22ab29(0x190)];const _0x418aa0=this[_0x22ab29(0x1b2)](_0x542071),_0x38df67=path['resolve'](_0x418aa0);if(fs[_0x22ab29(0x16b)](_0x38df67)){const _0x2fe9f2=JSON[_0x22ab29(0x1b8)](fs[_0x22ab29(0x1aa)](_0x418aa0)['toString']());return this[_0x22ab29(0x1c8)][_0x542071]=_0x2fe9f2,this[_0x22ab29(0x1c8)][_0x542071][_0x22ab29(0x190)];}this[_0x22ab29(0x1c8)][_0x542071]={'uuid':_0x4fbb84[_0x22ab29(0x1ba)](uuidv4)};try{fs[_0x22ab29(0x151)](_0x418aa0,JSON[_0x22ab29(0x1a0)](this[_0x22ab29(0x1c8)][_0x542071]));}catch(_0x353695){logger[_0x22ab29(0x198)](_0x22ab29(0x19f)+_0x542071+':\x20'+_0x353695[_0x22ab29(0x17a)]);}return this[_0x22ab29(0x1c8)][_0x542071]['uuid'];}catch(_0x4ffcf9){return logger[_0x22ab29(0x198)](_0x22ab29(0x1be)+_0x542071+':\x20'+_0x4ffcf9[_0x22ab29(0x17a)]),null;}}static[a66_0x1e1151(0x17c)](_0x54a0fb){const _0x32c23e=a66_0x1e1151,_0x2595b2=path[_0x32c23e(0x178)](this[_0x32c23e(0x1bb)],_0x54a0fb+_0x32c23e(0x16c));if(fs[_0x32c23e(0x16b)](_0x2595b2))return fs[_0x32c23e(0x1aa)](_0x2595b2)[_0x32c23e(0x199)]();}static[a66_0x1e1151(0x168)](_0x3436c5,_0x1afd42){const _0x341feb=a66_0x1e1151,_0x28a437=path[_0x341feb(0x178)](this[_0x341feb(0x1bb)],_0x1afd42+_0x341feb(0x16c));fs[_0x341feb(0x151)](_0x28a437,_0x3436c5['toString']());}static[a66_0x1e1151(0x147)](){const _0x3c7bb1=a66_0x1e1151,_0x463195={};_0x463195[_0x3c7bb1(0x158)]=!![],_0x463195[_0x3c7bb1(0x1b4)]=!![],fs[_0x3c7bb1(0x1a1)](this['dirPath'],_0x463195);}static[a66_0x1e1151(0x165)](_0x516ebd){const _0x130cbf=a66_0x1e1151,_0x11b04e=this[_0x130cbf(0x1b2)](_0x516ebd);if(fs['existsSync'](_0x11b04e))try{const _0xdc2da3=JSON['parse'](fs[_0x130cbf(0x1aa)](_0x11b04e)[_0x130cbf(0x199)]());return this[_0x130cbf(0x1c8)][_0x516ebd]=_0xdc2da3,_0xdc2da3;}catch(_0x46940a){return logger[_0x130cbf(0x181)](_0x130cbf(0x146)+_0x11b04e+':\x20'+util['format'](_0x46940a)+'.\x20Returning\x20empty\x20test\x20details.'),{};}return{};}static['setTestDetails'](_0x38f6d1,_0x4d189c,_0x3756bf=![]){const _0x2b078=a66_0x1e1151,_0x2015d2={'qcghN':function(_0x2e9431){return _0x2e9431();}};logger[_0x2b078(0x181)](_0x2b078(0x1bc)+process[_0x2b078(0x154)]+_0x2b078(0x188)+_0x38f6d1+'\x20with\x20details:\x20'+JSON['stringify'](_0x4d189c));const _0x3cfc3e=this[_0x2b078(0x1b2)](_0x38f6d1);if(fs[_0x2b078(0x16b)](_0x3cfc3e))try{const _0x17dc90=lockfile[_0x2b078(0x1a9)](_0x3cfc3e),_0x575634=JSON[_0x2b078(0x1b8)](fs['readFileSync'](_0x3cfc3e)['toString']());if(_0x3756bf)this[_0x2b078(0x1c8)][_0x38f6d1]=helper[_0x2b078(0x191)](_0x575634,_0x4d189c);else{const _0xc7816c={..._0x575634,..._0x4d189c};this[_0x2b078(0x1c8)][_0x38f6d1]=_0xc7816c;}fs[_0x2b078(0x151)](_0x3cfc3e,JSON[_0x2b078(0x1a0)](this[_0x2b078(0x1c8)][_0x38f6d1])),_0x2015d2[_0x2b078(0x1c1)](_0x17dc90);}catch(_0x3838df){logger[_0x2b078(0x181)](_0x2b078(0x146)+_0x3cfc3e+':\x20'+util['format'](_0x3838df)+_0x2b078(0x1cf));}}static[a66_0x1e1151(0x185)](_0x46ffb1,_0x5f866a){const _0x157dc6=a66_0x1e1151,_0x32aa53={'TYQKV':function(_0x24b548,_0x549c13){return _0x24b548!==_0x549c13;},'Wfagl':'object','YaGsg':function(_0x3bfc66){return _0x3bfc66();}};logger[_0x157dc6(0x181)]('storeLogObjects:\x20processId:\x20'+process[_0x157dc6(0x154)]+'\x20Adding\x20console\x20log\x20for\x20'+_0x46ffb1+'}');const _0x5d2c25=this[_0x157dc6(0x1b2)](_0x46ffb1);try{let _0x401192={};if(fs['existsSync'](_0x5d2c25)){const _0x18c6ae=lockfile[_0x157dc6(0x1a9)](_0x5d2c25);_0x401192=JSON['parse'](fs[_0x157dc6(0x1aa)](_0x5d2c25)['toString']()),(!_0x401192[_0x157dc6(0x19d)]||_0x32aa53['TYQKV'](typeof _0x401192['logObjects'],_0x32aa53['Wfagl']))&&(_0x401192[_0x157dc6(0x19d)]={}),(!_0x401192[_0x157dc6(0x19d)][_0x46ffb1]||!Array[_0x157dc6(0x1a8)](_0x401192[_0x157dc6(0x19d)][_0x46ffb1]))&&(_0x401192[_0x157dc6(0x19d)][_0x46ffb1]=[]),_0x401192[_0x157dc6(0x19d)][_0x46ffb1][_0x157dc6(0x14c)](_0x5f866a),this[_0x157dc6(0x1c8)][_0x46ffb1]=_0x401192,fs[_0x157dc6(0x151)](_0x5d2c25,JSON['stringify'](this[_0x157dc6(0x1c8)][_0x46ffb1])),_0x32aa53['YaGsg'](_0x18c6ae);}else{const _0x1cd3d8={};_0x1cd3d8['uuid']=_0x46ffb1,_0x1cd3d8[_0x157dc6(0x19d)]={},_0x1cd3d8[_0x157dc6(0x19d)][_0x46ffb1]=[_0x5f866a],_0x401192=_0x1cd3d8,this['tests'][_0x46ffb1]=_0x401192,fs['writeFileSync'](_0x5d2c25,JSON[_0x157dc6(0x1a0)](this[_0x157dc6(0x1c8)][_0x46ffb1]));}}catch(_0x5dad58){logger['debug'](_0x157dc6(0x146)+_0x5d2c25+':\x20'+util[_0x157dc6(0x1c9)](_0x5dad58)+'.\x20Unable\x20to\x20add\x20console\x20log.');}}static[a66_0x1e1151(0x166)](_0x844c54){const _0x18f7d7=a66_0x1e1151,_0x4f4a38={'QEbZh':function(_0x33a651,_0x2ed6b1){return _0x33a651!==_0x2ed6b1;},'dSmen':_0x18f7d7(0x184),'UPHWJ':function(_0x38f707){return _0x38f707();},'ZPrsi':function(_0x4c0f2e,_0x360878){return _0x4c0f2e===_0x360878;},'EVfOl':function(_0x4edc47){return _0x4edc47();},'QdAGA':function(_0x51d804){return _0x51d804();}};logger[_0x18f7d7(0x181)](_0x18f7d7(0x18f)+process[_0x18f7d7(0x154)]+_0x18f7d7(0x186)+_0x844c54);const _0x545530=this[_0x18f7d7(0x1b2)](_0x844c54);try{if(!fs[_0x18f7d7(0x16b)](_0x545530))return logger['debug']('readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20'+_0x844c54),[];const _0x35ebd7=lockfile['lockSync'](_0x545530),_0xcaef90=JSON[_0x18f7d7(0x1b8)](fs[_0x18f7d7(0x1aa)](_0x545530)[_0x18f7d7(0x199)]());if(!_0xcaef90[_0x18f7d7(0x19d)]||_0x4f4a38[_0x18f7d7(0x17d)](typeof _0xcaef90[_0x18f7d7(0x19d)],_0x4f4a38[_0x18f7d7(0x1c7)]))return logger[_0x18f7d7(0x181)]('readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20'+_0x844c54),_0x4f4a38[_0x18f7d7(0x183)](_0x35ebd7),[];if(!_0xcaef90['logObjects'][_0x844c54]||!Array['isArray'](_0xcaef90[_0x18f7d7(0x19d)][_0x844c54])||_0x4f4a38[_0x18f7d7(0x14e)](_0xcaef90['logObjects'][_0x844c54][_0x18f7d7(0x164)],0x0))return logger[_0x18f7d7(0x181)](_0x18f7d7(0x194)+_0x844c54),_0x4f4a38['EVfOl'](_0x35ebd7),[];const _0x161c7c=[..._0xcaef90[_0x18f7d7(0x19d)][_0x844c54]];return logger['debug'](_0x18f7d7(0x174)+_0x161c7c[_0x18f7d7(0x164)]+_0x18f7d7(0x162)+_0x844c54),_0xcaef90[_0x18f7d7(0x19d)][_0x844c54]=[],this['tests'][_0x844c54]=_0xcaef90,fs['writeFileSync'](_0x545530,JSON['stringify'](this[_0x18f7d7(0x1c8)][_0x844c54])),_0x4f4a38[_0x18f7d7(0x149)](_0x35ebd7),_0x161c7c;}catch(_0x16c057){return logger['debug'](_0x18f7d7(0x146)+_0x545530+':\x20'+util[_0x18f7d7(0x1c9)](_0x16c057)+_0x18f7d7(0x1b6)),[];}}static[a66_0x1e1151(0x1b0)](_0x248c71){const _0x2d6558=a66_0x1e1151,_0x336dd7={};_0x336dd7[_0x2d6558(0x1a5)]=_0x2d6558(0x1ce);const _0x526c69=_0x336dd7;try{const _0x5d2705=process[_0x2d6558(0x154)],_0x3919bd=path['join'](TestInfo['getTraceZipDir'](),_0x5d2705+_0x2d6558(0x1c3));let _0x3082a7=[];fs[_0x2d6558(0x16b)](_0x3919bd)&&(_0x3082a7=JSON[_0x2d6558(0x1b8)](fs['readFileSync'](_0x3919bd)[_0x2d6558(0x199)]()));if(!_0x3082a7[_0x2d6558(0x16d)](_0x307e6c=>_0x307e6c['filePath']===_0x248c71[_0x2d6558(0x195)])){_0x3082a7['push'](_0x248c71);const _0x2e01d8=path[_0x2d6558(0x1c5)](_0x3919bd);if(!fs[_0x2d6558(0x16b)](_0x2e01d8)){const _0xf73a70={};_0xf73a70[_0x2d6558(0x158)]=!![],fs[_0x2d6558(0x175)](_0x2e01d8,_0xf73a70);}fs[_0x2d6558(0x151)](_0x3919bd,JSON['stringify'](_0x3082a7));}}catch(_0x5c81d9){logger[_0x2d6558(0x198)](util[_0x2d6558(0x1c9)](_0x526c69[_0x2d6558(0x1a5)],_0x5c81d9));}}static[a66_0x1e1151(0x1b7)](){const _0x318f3b=a66_0x1e1151,_0x126e30={};_0x126e30['rYAlS']=_0x318f3b(0x1c3),_0x126e30[_0x318f3b(0x19e)]=_0x318f3b(0x159);const _0x39dccd=_0x126e30,_0x2c1310=[];try{const _0x55f0f1=TestInfo[_0x318f3b(0x182)]();if(!fs[_0x318f3b(0x16b)](_0x55f0f1))return _0x2c1310;const _0x28710b=fs[_0x318f3b(0x1a6)](_0x55f0f1);_0x28710b[_0x318f3b(0x17b)](_0x595153=>{const _0x2a0213=_0x318f3b;if(_0x595153[_0x2a0213(0x145)](_0x39dccd[_0x2a0213(0x176)])){const _0x245eb3=JSON['parse'](fs['readFileSync'](path[_0x2a0213(0x178)](_0x55f0f1,_0x595153))[_0x2a0213(0x199)]());_0x2c1310[_0x2a0213(0x14c)](..._0x245eb3);}});}catch(_0x536298){logger[_0x318f3b(0x198)](util[_0x318f3b(0x1c9)](_0x39dccd[_0x318f3b(0x19e)],_0x536298));}const _0x59653c={};return _0x2c1310[_0x318f3b(0x17b)](_0x67c2e1=>{_0x59653c[_0x67c2e1['filePath']]=_0x67c2e1;}),Object[_0x318f3b(0x14b)](_0x59653c);}static[a66_0x1e1151(0x187)](_0x4a0128,_0x4f0e5e){const _0x31c5e3=a66_0x1e1151,_0x5b49ea={};_0x5b49ea[_0x31c5e3(0x170)]=_0x31c5e3(0x155),_0x5b49ea[_0x31c5e3(0x1ad)]=_0x31c5e3(0x14f),_0x5b49ea[_0x31c5e3(0x16f)]=_0x31c5e3(0x197);const _0x5fece6=_0x5b49ea;try{const _0x342dc6=path[_0x31c5e3(0x178)](helper[_0x31c5e3(0x1c2)](),_0x5fece6['NCseg']);if(!fs[_0x31c5e3(0x16b)](_0x342dc6)){const _0x2cd108={};_0x2cd108['recursive']=!![],fs[_0x31c5e3(0x175)](_0x342dc6,_0x2cd108);}fs[_0x31c5e3(0x1cc)](path[_0x31c5e3(0x178)](_0x342dc6,_0x31c5e3(0x1c4)+_0x4f0e5e+_0x31c5e3(0x1bd)),_0x4a0128+'\x0a',_0x5fece6['xPVGf']);}catch(_0x12cb9b){logger['error'](util['format'](_0x5fece6['jTUoS'],_0x12cb9b));}}}module[a66_0x1e1151(0x1af)]=TestInfo;
@@ -1 +1 @@
1
- const a67_0x10dc45=a67_0x5f47;(function(_0x55aa08,_0x237100){const _0x3ae4d4=a67_0x5f47,_0x50962c=_0x55aa08();while(!![]){try{const _0x47e76d=parseInt(_0x3ae4d4(0x21d))/0x1*(-parseInt(_0x3ae4d4(0x1a7))/0x2)+parseInt(_0x3ae4d4(0x277))/0x3+parseInt(_0x3ae4d4(0x1cd))/0x4*(-parseInt(_0x3ae4d4(0x220))/0x5)+-parseInt(_0x3ae4d4(0x1cf))/0x6+parseInt(_0x3ae4d4(0x20a))/0x7*(parseInt(_0x3ae4d4(0x209))/0x8)+parseInt(_0x3ae4d4(0x266))/0x9+parseInt(_0x3ae4d4(0x211))/0xa*(parseInt(_0x3ae4d4(0x19a))/0xb);if(_0x47e76d===_0x237100)break;else _0x50962c['push'](_0x50962c['shift']());}catch(_0x2a1333){_0x50962c['push'](_0x50962c['shift']());}}}(a67_0x54e4,0x56124));function a67_0x54e4(){const _0x1e611e=['./framework/playwrightAutomationFramework.js','getClient','lILcq','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','format','Setting\x20up\x20CLI\x20binary\x20path...','parse','PnutC','tCrNF','_spawnAndAwaitReady','getCliArgs','HMeVS','DNkQm','zmqbz','close','JEST','getCLIParamsForDevEnv','gZrWf','./framework/cucumberTestFramework.js','stdout','GojCc','setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response','Error:\x20[','kill','):\x20','PLAYWRIGHT','data','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','setCliArgs:\x20error=','SDK_CLI_ON_BOOTSTRAP','getAutomateBuildlink','\x20o11y_uuid=','Accessibility\x20success=','Unconfiguring\x20modules','dgJRs','XSTIS','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','version','DXFtp','function','DXwOY','ZSrHa','code','stop:\x20CLI\x20process\x20exited','keys','tJkuF','warn','loadModules:\x20Loading\x20modules','Disabling\x20CLI.','SDK_CLI_BIN_PATH','stop:\x20stopBinSession\x20build_link=','856sxLmAq','25613KfZkQC','errorsList','TKPbV','stderr','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','qyXSo','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','2148640QPToLt','getHashedId','accessibilityOptions','modules','isMainConnected','ATKMU','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','connect','getAutomationFrameworkDetail','qGBjo','YLBIY','A11yEnabled','17107iJPEhf','../../helpers/performance/performance-tester.js','browserstackConfigPath','3105FLYdyt','isTrue','setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object','KEY_CUSTOM_TAGS','SDK_CONNECT_BIN_SESSION','stack','util','HashedID','HMlHg','forEach','getChannel','HGOAx','getBrowserstackCliConfig','hEDDj','testFramework','vNXWi','getBrowserstackConfigPath','wgsfx','split','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','\x20on\x20attempt\x20','removeAllListeners','isRunning','resolve','./framework/jestTestFramework.js','./TestInfo.js','buildHashedId','stopBinSession','stop','cliArgs','getConfig','OIPSE','UJFMu','isArray','init','errorTraceId','Ivjkr','hubUrl','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','./modules/observabilityModule.js','trim','getCliBinPath','initialized','GYNiQ','key','ms...','TestHubModule','sdk','syncAccessibilityConfig','getSuccess','spawning\x20command=\x27','EbNZi','loadCliParams','_modulesLoaded','spawn\x20succeeded\x20on\x20attempt\x20','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','connected','bootstrap','isDevelopmentEnv','O11yHashedID','getBinSessionId','setupAutomationFramework','toLowerCase','BROWSERSTACK_CLI_ENV','KuvdX','KboSA','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','startChild','getAutomationFramework','1449765oYJJwY','startMain:\x20main-process\x20started','stop:\x20error\x20in\x20closing\x20channel:\x20%s','browserstackConfig','./modules/puppeteerDriverModule.js','sgSlk','PUPPETEER','../../helpers/logger.js','../utils/constants.js','CwQxF','wMEtN','configureModules','browserstackCliConfig','hMpcr','setLTSSessionId','1|4|7|6|2|0|5|3','rWwwH','1659402mpIfDN','uGsIi','IgdlS','kaBeL','length','tgTZF','sULME','config','connectBinSession','startBinSession','CLI\x20process\x20exited\x20with\x20code\x20','pid','CIFHL','toString','CKeTK','stop:\x20CLI\x20stop\x20triggered','\x20errors:','evDFu','app','stop:\x20channel\x20closed','./modules/accessibilityModule.js','setConfig:\x20error=','server','isChildConnected','loadModules:\x20binSessionId=','rrRai','Error\x20in\x20setupCliPath:\x20','cliParams','CLI\x20binary\x20path\x20resolved\x20to:\x20','stringify','BuildLink','../../helpers/classLogger.js','XjIVC','isCliEnabled','vvNbY','BROWSERSTACK_CLI_ENABLED','UkJLF','exports','vdJWo','end','CLI\x20params\x20loaded:\x20','bootstrap:\x20failed\x20to\x20bootstrap=','./modules/loadTestModule.js','IxKrZ','MODULE_NAME','CLIUtils.setupCliPath\x20returned\x20null','startMain:\x20Starting\x20main\x20process','includes','test','getInstance','SIGKILL','getTestFrameworkDetail','./cliUtils.js','fEvZT','Error\x20in\x20start\x20(code=','setCliArgs','setupTestFramework','pHMps','process','AUTHh','unConfigureModules','44iTZDiy','getAccessibility','Accessibility\x20initialization\x20failed\x20with\x20','toObject','HZOIo','logger','ClSII','shutdown','xgNrF','start','mzdAr','env','message','62QZwKZo','isUndefined','xJjdl','automationFramework','killed','error','name','ready','exitCode','\x20msg=','SDK_CLI_ON_STOP','turboScale','CUCUMBER','./modules/testhubModule.js','setupCliPath','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','FaFrF','accessibility','./grpcClient.js','BROWSERSTACK_TURBOSCALE','client','isLTSSession','child_process','pdyaq','./uploadAttachmentsManager.js','info','getTesthub','setBrowserstackConfig','hmYmt','isFalse','TFkwg','cTvHx','spawn\x20','testhubConfig','SDK_CLI_START','startMain','isClosed','debug','3788gPVaTy','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','2965416dZvHKi','BrowserstackCLI','UvBSp','skqRr','VgXkM','binSessionId','loadModules'];a67_0x54e4=function(){return _0x1e611e;};return a67_0x54e4();}function a67_0x5f47(_0x22559b,_0x14517e){const _0x54e4cc=a67_0x54e4();return a67_0x5f47=function(_0x5f47c9,_0xd55f3b){_0x5f47c9=_0x5f47c9-0x161;let _0x378eb6=_0x54e4cc[_0x5f47c9];return _0x378eb6;},a67_0x5f47(_0x22559b,_0x14517e);}const {spawn}=require(a67_0x10dc45(0x1bd)),GrpcClient=require(a67_0x10dc45(0x1b9)),util=require(a67_0x10dc45(0x226)),CLIUtils=require(a67_0x10dc45(0x191)),PlaywrightAutomationFramework=require(a67_0x10dc45(0x1d6)),PuppeteerAutomationFramework=require('./framework/puppeteerAutomationFramework.js'),PlaywrightTestFramework=require('./framework/playwrightTestFramework.js'),CucumberTestFramework=require(a67_0x10dc45(0x1e8)),JestTestFramework=require(a67_0x10dc45(0x239)),{createClassLogger}=require(a67_0x10dc45(0x17c)),PerformanceTester=require(a67_0x10dc45(0x21e)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require(a67_0x10dc45(0x171)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require(a67_0x10dc45(0x26e)),helper=require('../../helpers/helper.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),buildLogger=require(a67_0x10dc45(0x26d))['buildLogger'],LoadTestModule=require(a67_0x10dc45(0x187)),TestInfo=require(a67_0x10dc45(0x23a));class BrowserstackCLI{static #instance=null;static [a67_0x10dc45(0x17b)]=null;static ['HashedID']=null;static [a67_0x10dc45(0x25c)]=null;static [a67_0x10dc45(0x21c)]=![];[a67_0x10dc45(0x197)]=null;[a67_0x10dc45(0x215)]=![];[a67_0x10dc45(0x174)]=![];[a67_0x10dc45(0x256)]=![];[a67_0x10dc45(0x1d4)]=null;[a67_0x10dc45(0x214)]={};[a67_0x10dc45(0x22e)]=null;[a67_0x10dc45(0x1aa)]=null;[a67_0x10dc45(0x19f)]=createClassLogger(a67_0x10dc45(0x1d0));constructor(){const _0x23442f=a67_0x10dc45;this[_0x23442f(0x24b)]=![],this[_0x23442f(0x164)]={},this['cliArgs']={},this['browserstackConfig']={};}static[a67_0x10dc45(0x18e)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a67_0x10dc45(0x25a)](){const _0x561922=a67_0x10dc45,_0x29460e={};_0x29460e['tJkuF']=_0x561922(0x206);const _0x2dd5cf=_0x29460e;if(helper[_0x561922(0x1c4)](process[_0x561922(0x1a5)][_0x561922(0x180)])){this[_0x561922(0x19f)][_0x561922(0x1c0)](_0x2dd5cf[_0x561922(0x203)]);return;}PerformanceTester[_0x561922(0x1a3)](PerformanceEvents[_0x561922(0x1f3)]);try{const _0x516fab=process['env']['BROWSERSTACK_CLI_BIN_SESSION_ID']||null;this[_0x561922(0x25e)](),this[_0x561922(0x195)]();if(_0x516fab){await this[_0x561922(0x264)](_0x516fab),PerformanceTester[_0x561922(0x184)](PerformanceEvents[_0x561922(0x1f3)]);return;}await this['startMain']();}catch(_0x130e38){this[_0x561922(0x19f)][_0x561922(0x1ac)](_0x561922(0x186)+(_0x130e38['stack']||_0x130e38)),await this[_0x561922(0x23d)](),PerformanceTester[_0x561922(0x184)](PerformanceEvents[_0x561922(0x1f3)],![],util[_0x561922(0x1da)](_0x130e38));}}async[a67_0x10dc45(0x1ca)](){const _0x5c8a7c=a67_0x10dc45,_0x28538d={};_0x28538d[_0x5c8a7c(0x1d3)]=_0x5c8a7c(0x18b),_0x28538d[_0x5c8a7c(0x279)]=_0x5c8a7c(0x267);const _0x2f4862=_0x28538d;this[_0x5c8a7c(0x19f)]['info'](_0x2f4862[_0x5c8a7c(0x1d3)]),await this[_0x5c8a7c(0x1a3)](),this[_0x5c8a7c(0x19f)][_0x5c8a7c(0x1cc)](_0x2f4862['IgdlS']);const _0x5e861b=await GrpcClient[_0x5c8a7c(0x18e)]()[_0x5c8a7c(0x166)]();this[_0x5c8a7c(0x215)]=!![],this[_0x5c8a7c(0x1d5)](_0x5e861b);}['loadModules'](_0x5e8e2d){const _0x6ab53f=a67_0x10dc45,_0x1e32f8={'UJFMu':function(_0x1f05b1,_0x27ab1f){return _0x1f05b1(_0x27ab1f);},'OIPSE':'./modules/playwrightDriverModule.js','TFkwg':function(_0x3ba3a8,_0x745ec0){return _0x3ba3a8(_0x745ec0);},'gZrWf':_0x6ab53f(0x1b4),'xJjdl':function(_0x3543f3,_0x511295){return _0x3543f3(_0x511295);},'UvBSp':_0x6ab53f(0x248),'KuvdX':_0x6ab53f(0x205),'mzolW':'getObservability','tCrNF':_0x6ab53f(0x19b),'KboSA':'getSuccess','jfPQz':function(_0x297958,_0x225aa1){return _0x297958||_0x225aa1;},'evDFu':function(_0x5d5867,_0x2bf6b9){return _0x5d5867!==_0x2bf6b9;},'BPsaD':function(_0x49a503,_0x6f28ab){return _0x49a503!==_0x6f28ab;},'TXVJC':function(_0x213203,_0x15d12b){return _0x213203===_0x15d12b;},'rWwwH':_0x6ab53f(0x1fd),'zmqbz':function(_0x56ab03,_0x14629f){return _0x56ab03&&_0x14629f;},'vqVMb':function(_0x3eb420,_0x58e7fb){return _0x3eb420===_0x58e7fb;},'OINtZ':function(_0x4e3a0a,_0x2638d0){return _0x4e3a0a(_0x2638d0);},'UFKQq':_0x6ab53f(0x26a)},_0x3bff28=_0x1e32f8[_0x6ab53f(0x241)](require,_0x1e32f8[_0x6ab53f(0x240)]),_0x1aa7e9=_0x1e32f8[_0x6ab53f(0x1c5)](require,_0x1e32f8[_0x6ab53f(0x1e7)]),_0x485860=_0x1e32f8[_0x6ab53f(0x1a9)](require,_0x1e32f8[_0x6ab53f(0x1d1)]);this[_0x6ab53f(0x19f)][_0x6ab53f(0x1c0)](_0x1e32f8[_0x6ab53f(0x261)]),this[_0x6ab53f(0x1d4)]=_0x5e8e2d[_0x6ab53f(0x25d)](),this[_0x6ab53f(0x19f)]['info'](_0x6ab53f(0x175)+this[_0x6ab53f(0x1d4)]),this['setConfig'](_0x5e8e2d),this[_0x6ab53f(0x251)]();!this[_0x6ab53f(0x174)]&&this[_0x6ab53f(0x194)](_0x5e8e2d);const _0x2f45ad=_0x1e32f8['mzolW'],_0x1ba78a=_0x1e32f8[_0x6ab53f(0x1de)],_0x350a22=_0x1e32f8[_0x6ab53f(0x262)],_0x206e9b=_0x5e8e2d[_0x2f45ad]()&&_0x5e8e2d[_0x2f45ad]()[_0x350a22](),_0x1c7cc0=_0x5e8e2d[_0x1ba78a]()&&_0x5e8e2d[_0x1ba78a]()[_0x350a22](),_0x437df9=process[_0x6ab53f(0x1a5)][_0x6ab53f(0x1d9)]&&JSON[_0x6ab53f(0x1dc)](process[_0x6ab53f(0x1a5)][_0x6ab53f(0x1d9)]);_0x1e32f8['jfPQz'](_0x206e9b,_0x1c7cc0)&&(this[_0x6ab53f(0x214)][_0x1aa7e9['MODULE_NAME']]=new _0x1aa7e9(_0x5e8e2d[_0x6ab53f(0x1c1)](),_0x437df9));_0x206e9b&&(this['modules'][_0x485860['MODULE_NAME']]=new _0x485860(_0x5e8e2d[_0x2f45ad]()));if(_0x1c7cc0){this[_0x6ab53f(0x214)][AccessibilityModule['MODULE_NAME']]=new AccessibilityModule(_0x5e8e2d[_0x1ba78a]());const _0x29c971=this[_0x6ab53f(0x164)]&&_0x1e32f8[_0x6ab53f(0x16e)](this[_0x6ab53f(0x164)]['app'],undefined)&&_0x1e32f8['BPsaD'](this[_0x6ab53f(0x164)][_0x6ab53f(0x16f)],null);BrowserstackCLI[_0x6ab53f(0x21c)]=!_0x29c971;}else try{const _0x518b5f=_0x5e8e2d[_0x1ba78a](),_0x4efd91=_0x518b5f&&_0x1e32f8['TXVJC'](typeof _0x518b5f[_0x350a22],_0x1e32f8[_0x6ab53f(0x276)])?!!_0x518b5f[_0x350a22]():![];this[_0x6ab53f(0x19f)][_0x6ab53f(0x1c0)](_0x6ab53f(0x1f6)+_0x4efd91);if(_0x1e32f8[_0x6ab53f(0x1e3)](!_0x4efd91,_0x518b5f)){const _0x3d461f=_0x518b5f[_0x6ab53f(0x19d)]?_0x518b5f[_0x6ab53f(0x19d)]():_0x518b5f;_0x3d461f[_0x6ab53f(0x20b)]&&Array[_0x6ab53f(0x242)](_0x3d461f[_0x6ab53f(0x20b)])&&(this[_0x6ab53f(0x19f)][_0x6ab53f(0x1ac)](_0x6ab53f(0x19c)+_0x3d461f['errorsList'][_0x6ab53f(0x161)]+_0x6ab53f(0x16d)),_0x3d461f[_0x6ab53f(0x20b)][_0x6ab53f(0x229)]((_0x211b9a,_0x58d711)=>{const _0x3efaf5=_0x6ab53f;this[_0x3efaf5(0x19f)][_0x3efaf5(0x1ac)](_0x3efaf5(0x1ec)+_0x211b9a[_0x3efaf5(0x24d)]+']\x20'+_0x211b9a[_0x3efaf5(0x1a6)]);}),_0x3d461f[_0x6ab53f(0x244)]&&this[_0x6ab53f(0x19f)]['error']('Error\x20Trace\x20ID:\x20'+_0x3d461f[_0x6ab53f(0x244)]),_0x3d461f[_0x6ab53f(0x200)]&&this[_0x6ab53f(0x19f)][_0x6ab53f(0x1ac)]('Error\x20Code:\x20'+_0x3d461f[_0x6ab53f(0x200)]));}}catch(_0x5648b2){this[_0x6ab53f(0x19f)]['error']('Error\x20reading\x20accessibility\x20success\x20value:\x20'+_0x5648b2);}const _0x3a2350=CLIUtils[_0x6ab53f(0x219)]();if(_0x1e32f8['vqVMb'](_0x3a2350[_0x6ab53f(0x1ad)][_0x6ab53f(0x25f)](),FRAMEWORKS[_0x6ab53f(0x26c)][_0x6ab53f(0x25f)]())){const _0x563489=_0x1e32f8['OINtZ'](require,_0x1e32f8['UFKQq']);this['modules'][_0x563489[_0x6ab53f(0x189)]]=new _0x563489(_0x437df9);}else this[_0x6ab53f(0x214)][_0x3bff28[_0x6ab53f(0x189)]]=new _0x3bff28(_0x437df9);this['_modulesLoaded']=!![],this['configureModules']();}['getAccessibilityModule'](){const _0x30a782=a67_0x10dc45;return this[_0x30a782(0x214)][AccessibilityModule[_0x30a782(0x189)]];}async[a67_0x10dc45(0x271)](){const _0x25af25=a67_0x10dc45;for(const _0x13ef38 in this[_0x25af25(0x214)]){const _0x33d676=this[_0x25af25(0x214)][_0x13ef38];await _0x33d676['configure'](this[_0x25af25(0x1d4)],0x0,GrpcClient[_0x25af25(0x18e)]()[_0x25af25(0x1bb)],this['config']);}}async[a67_0x10dc45(0x1a3)](){const _0x3cedbf=a67_0x10dc45,_0x428551={};_0x428551[_0x3cedbf(0x1e2)]=_0x3cedbf(0x217),_0x428551['DXwOY']=_0x3cedbf(0x250),_0x428551[_0x3cedbf(0x1ea)]=function(_0x3bca65,_0xd630c0){return _0x3bca65<=_0xd630c0;},_0x428551['FnoSu']=function(_0x46fc2d,_0x1c6152){return _0x46fc2d>_0x1c6152;},_0x428551['GYNiQ']=function(_0x9f9330,_0x936074){return _0x9f9330<_0x936074;},_0x428551['dgJRs']=_0x3cedbf(0x18f);const _0x4cb58c=_0x428551;PerformanceTester[_0x3cedbf(0x1a3)](PerformanceEvents[_0x3cedbf(0x1c9)]);if(CLIUtils[_0x3cedbf(0x25b)]())return this['loadCliParams'](CLIUtils[_0x3cedbf(0x1e6)]()),PerformanceTester[_0x3cedbf(0x184)](PerformanceEvents[_0x3cedbf(0x1c9)]),Promise[_0x3cedbf(0x238)]();if(this[_0x3cedbf(0x197)]&&this[_0x3cedbf(0x197)][_0x3cedbf(0x259)])return PerformanceTester['end'](PerformanceEvents['SDK_CLI_START']),Promise[_0x3cedbf(0x238)]();const _0x5b3969=await this[_0x3cedbf(0x24a)]();if(!_0x5b3969)throw new Error(_0x4cb58c['DNkQm']);const _0x2da61a=[_0x5b3969,_0x4cb58c[_0x3cedbf(0x1fe)]];this[_0x3cedbf(0x19f)][_0x3cedbf(0x1c0)](_0x3cedbf(0x253)+_0x2da61a+'\x27');for(let _0x13d952=0x1;_0x4cb58c['GojCc'](_0x13d952,MAX_SPAWN_RETRIES);_0x13d952++){try{await this[_0x3cedbf(0x1df)](_0x2da61a);_0x4cb58c['FnoSu'](_0x13d952,0x1)&&this[_0x3cedbf(0x19f)][_0x3cedbf(0x1c0)](_0x3cedbf(0x257)+_0x13d952+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x459f65){if(BINARY_BUSY_ERROR_CODES[_0x3cedbf(0x18c)](_0x459f65[_0x3cedbf(0x200)])&&_0x4cb58c[_0x3cedbf(0x24c)](_0x13d952,MAX_SPAWN_RETRIES))this['logger'][_0x3cedbf(0x204)](_0x3cedbf(0x1c7)+_0x459f65[_0x3cedbf(0x200)]+_0x3cedbf(0x235)+_0x13d952+'/'+MAX_SPAWN_RETRIES+',\x20retrying\x20in\x20'+SPAWN_RETRY_DELAY_MS+_0x3cedbf(0x24e)),this[_0x3cedbf(0x197)]&&(this[_0x3cedbf(0x197)]['removeAllListeners'](),!this[_0x3cedbf(0x197)][_0x3cedbf(0x1ab)]&&this[_0x3cedbf(0x197)]['kill'](_0x4cb58c[_0x3cedbf(0x1f8)]),this[_0x3cedbf(0x197)]=null),await new Promise(_0x1aceb2=>setTimeout(_0x1aceb2,SPAWN_RETRY_DELAY_MS));else throw _0x459f65;}}}[a67_0x10dc45(0x1df)](_0x5bda6b){const _0x160d11=a67_0x10dc45,_0x59ea93={'ZSrHa':function(_0x2a88bb,_0x3eea19){return _0x2a88bb(_0x3eea19);},'hmYmt':function(_0x2cc922,_0x2ea917){return _0x2cc922!==_0x2ea917;},'ATKMU':function(_0x4635c5,_0x2e9281){return _0x4635c5!==_0x2e9281;},'hEDDj':_0x160d11(0x1ae),'xgNrF':_0x160d11(0x275),'pHMps':_0x160d11(0x1e4),'FaFrF':_0x160d11(0x1ac),'HGOAx':function(_0xe6639d){return _0xe6639d();},'pdyaq':function(_0x5dd633,_0x5e5dc0,_0x288140,_0x2748c5){return _0x5dd633(_0x5e5dc0,_0x288140,_0x2748c5);},'rrRai':function(_0x74c9ad,_0x559055){return _0x74c9ad(_0x559055);},'kaBeL':_0x160d11(0x210),'HMlHg':_0x160d11(0x1f0)};return new Promise((_0x5ec7b7,_0x2ee547)=>{const _0x2bf362=_0x160d11,_0x310200={'PnutC':function(_0x1a3677,_0x41ed25){const _0x4d22f0=a67_0x5f47;return _0x59ea93[_0x4d22f0(0x1c3)](_0x1a3677,_0x41ed25);},'wHOKM':function(_0x3bee4d,_0x4ca78e){const _0x2a5ca7=a67_0x5f47;return _0x59ea93[_0x2a5ca7(0x216)](_0x3bee4d,_0x4ca78e);},'XSTIS':_0x59ea93[_0x2bf362(0x22d)],'sGXQf':_0x59ea93[_0x2bf362(0x1a2)],'vdJWo':_0x59ea93['pHMps'],'qyXSo':_0x59ea93[_0x2bf362(0x1b7)],'oVxBj':function(_0x378512){const _0xf5a29d=_0x2bf362;return _0x59ea93[_0xf5a29d(0x22b)](_0x378512);}},_0x17e9e6={};_0x17e9e6['env']=process[_0x2bf362(0x1a5)],this[_0x2bf362(0x197)]=_0x59ea93[_0x2bf362(0x1be)](spawn,_0x5bda6b[0x0],_0x5bda6b['slice'](0x1),_0x17e9e6);if(!this[_0x2bf362(0x197)]||!this[_0x2bf362(0x197)][_0x2bf362(0x168)]){_0x59ea93[_0x2bf362(0x176)](_0x2ee547,new Error(_0x59ea93[_0x2bf362(0x27a)]));return;}const _0x1c3f96={};this['process'][_0x2bf362(0x1e9)]['on'](_0x59ea93[_0x2bf362(0x228)],_0x5b8002=>{const _0x593e28=_0x2bf362,_0x35e282=_0x5b8002[_0x593e28(0x16a)]()[_0x593e28(0x249)]()[_0x593e28(0x232)]('\x0a');for(const _0x1af050 of _0x35e282){if(/^(id|listen|port)=.*$/[_0x593e28(0x18d)](_0x1af050)){const [_0x3fc89e,_0x5e74b5]=_0x1af050[_0x593e28(0x232)]('=',0x2);_0x310200['wHOKM'](_0x5e74b5,undefined)&&(_0x1c3f96[_0x3fc89e]=_0x5e74b5);}if(_0x1af050['toLowerCase']()['includes'](_0x310200[_0x593e28(0x1f9)])){const _0x6ddad9=_0x310200['sGXQf']['split']('|');let _0x4b124b=0x0;while(!![]){switch(_0x6ddad9[_0x4b124b++]){case'0':this[_0x593e28(0x197)]['on'](_0x310200['vdJWo'],_0x42d86a=>{const _0x1cdef9=_0x593e28;_0x310200[_0x1cdef9(0x1dd)](_0x42d86a,0x0)&&this[_0x1cdef9(0x19f)][_0x1cdef9(0x1ac)](_0x1cdef9(0x167)+_0x42d86a+_0x1cdef9(0x1b6));});continue;case'1':this[_0x593e28(0x255)](_0x1c3f96);continue;case'2':this['process']['on'](_0x310200[_0x593e28(0x20f)],_0x4a20d2=>{const _0x30bd4e=_0x593e28;this['logger'][_0x30bd4e(0x1ac)]('CLI\x20runtime\x20error\x20after\x20ready:\x20code='+_0x4a20d2[_0x30bd4e(0x200)]+_0x30bd4e(0x1b0)+_0x4a20d2['message']);});continue;case'3':return;case'4':PerformanceTester[_0x593e28(0x184)](PerformanceEvents['SDK_CLI_START']);continue;case'5':_0x310200['oVxBj'](_0x5ec7b7);continue;case'6':this['process'][_0x593e28(0x236)](_0x310200[_0x593e28(0x183)]);continue;case'7':this[_0x593e28(0x197)][_0x593e28(0x236)](_0x310200[_0x593e28(0x20f)]);continue;}break;}}}}),this[_0x2bf362(0x197)][_0x2bf362(0x20d)]['on'](_0x59ea93[_0x2bf362(0x228)],_0x11dec0=>{const _0x7d7c1e=_0x2bf362;this[_0x7d7c1e(0x19f)][_0x7d7c1e(0x1ac)]('CLI\x20stderr:\x20'+_0x11dec0['toString']()['trim']());}),this[_0x2bf362(0x197)]['on'](_0x59ea93['FaFrF'],_0x2c0e67=>{const _0x2975d2=_0x2bf362;_0x1c3f96[_0x2975d2(0x1ac)]=_0x2975d2(0x193)+_0x2c0e67[_0x2975d2(0x200)]+_0x2975d2(0x1ee)+_0x2c0e67[_0x2975d2(0x1a6)],PerformanceTester['end'](PerformanceEvents[_0x2975d2(0x1c9)],![],_0x2c0e67),_0x59ea93[_0x2975d2(0x1ff)](_0x2ee547,_0x2c0e67);}),this[_0x2bf362(0x197)]['on'](_0x59ea93[_0x2bf362(0x196)],_0x13d6df=>{const _0x3c4061=_0x2bf362;_0x59ea93[_0x3c4061(0x1c3)](_0x13d6df,0x0)&&_0x59ea93['ZSrHa'](_0x2ee547,new Error(_0x3c4061(0x167)+_0x13d6df));});});}async[a67_0x10dc45(0x23d)](_0x47d033=null){const _0x20da97=a67_0x10dc45,_0x1947e7={'IxKrZ':_0x20da97(0x20e),'EbNZi':_0x20da97(0x18f),'sULME':function(_0x149acc){return _0x149acc();},'vvNbY':_0x20da97(0x201),'DXFtp':'exit','CKeTK':function(_0x591878,_0x25e67c,_0x4cf762){return _0x591878(_0x25e67c,_0x4cf762);},'crErB':_0x20da97(0x258),'wMEtN':_0x20da97(0x16c),'gdeHg':function(_0x5e97d8,_0x2ac71e){return _0x5e97d8(_0x2ac71e);},'DuKjR':_0x20da97(0x1bf),'KItcx':_0x20da97(0x170),'cTvHx':_0x20da97(0x268),'skqRr':'stop:\x20shutting\x20down\x20CLI'};if(!this[_0x20da97(0x237)]()){this['logger'][_0x20da97(0x1c0)](_0x1947e7['crErB']);return;}PerformanceTester['start'](PerformanceEvents[_0x20da97(0x1b1)]),this[_0x20da97(0x19f)][_0x20da97(0x1c0)](_0x1947e7[_0x20da97(0x270)]);try{if(this[_0x20da97(0x215)]){const _0x1deaeb=_0x1947e7['gdeHg'](require,_0x1947e7['DuKjR']),_0x6c0d21=this[_0x20da97(0x214)][_0x20da97(0x24f)]?.[_0x20da97(0x1c8)]?.[_0x20da97(0x19d)]()?.[_0x20da97(0x23b)],_0x5e3f5f=TestInfo['getTestDetails'](_0x6c0d21),_0xa7b4e3=_0x5e3f5f[TestFrameworkConstants[_0x20da97(0x223)]]||{},_0x1a98ef=await GrpcClient[_0x20da97(0x18e)]()[_0x20da97(0x23c)](JSON[_0x20da97(0x17a)](_0xa7b4e3),_0x47d033);_0x1a98ef&&_0x1a98ef[_0x20da97(0x252)]()&&_0x1a98ef[_0x20da97(0x1f4)]()&&(BrowserstackCLI[_0x20da97(0x17b)]=_0x1a98ef[_0x20da97(0x1f4)](),BrowserstackCLI[_0x20da97(0x227)]=_0x1a98ef[_0x20da97(0x212)]()),await _0x1deaeb['clearAttachments'](),TestInfo[_0x20da97(0x1a1)](),buildLogger[_0x20da97(0x1c0)](_0x20da97(0x208)+BrowserstackCLI[_0x20da97(0x17b)]+'\x20hashed_id='+BrowserstackCLI[_0x20da97(0x227)]+_0x20da97(0x1f5)+BrowserstackCLI[_0x20da97(0x25c)]);}await this[_0x20da97(0x199)]();const _0x50bcdc=GrpcClient['getInstance']()['getChannel']();if(_0x50bcdc){try{_0x50bcdc['close'](),this['logger']['info'](_0x1947e7['KItcx']);}catch(_0x5ad1c5){this['logger']['error'](util[_0x20da97(0x1da)](_0x1947e7[_0x20da97(0x1c6)],_0x5ad1c5));}await new Promise(_0x4e9936=>setTimeout(_0x4e9936,0x1388));}this[_0x20da97(0x197)]&&this['process'][_0x20da97(0x168)]&&(this['logger'][_0x20da97(0x1c0)](_0x1947e7[_0x20da97(0x1d2)]),this['process'][_0x20da97(0x1ed)](),await new Promise(_0x35686e=>{const _0xdee7f3=_0x20da97,_0x35b94f={'XjIVC':_0x1947e7[_0xdee7f3(0x17f)],'jooyA':function(_0x58aa5d){const _0x53c7ef=_0xdee7f3;return _0x1947e7[_0x53c7ef(0x163)](_0x58aa5d);}};let _0x14245a=![];this[_0xdee7f3(0x197)]['on'](_0x1947e7[_0xdee7f3(0x1fc)],()=>{const _0x690789=_0xdee7f3;this['logger'][_0x690789(0x1c0)](_0x35b94f[_0x690789(0x17d)]),_0x14245a=!![],PerformanceTester[_0x690789(0x184)](PerformanceEvents[_0x690789(0x1b1)]),_0x35b94f['jooyA'](_0x35686e);}),_0x1947e7[_0xdee7f3(0x16b)](setTimeout,()=>{const _0x2eb0a0=_0xdee7f3;!_0x14245a&&(this[_0x2eb0a0(0x19f)][_0x2eb0a0(0x204)](_0x1947e7[_0x2eb0a0(0x188)]),this['process'][_0x2eb0a0(0x1ed)](_0x1947e7[_0x2eb0a0(0x254)]),PerformanceTester['end'](PerformanceEvents[_0x2eb0a0(0x1b1)]),_0x1947e7[_0x2eb0a0(0x163)](_0x35686e));},0xbb8);}));}catch(_0x4e0923){PerformanceTester[_0x20da97(0x184)](PerformanceEvents[_0x20da97(0x1b1)],![],util['format'](_0x4e0923)),this[_0x20da97(0x19f)][_0x20da97(0x1ac)]('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x4e0923[_0x20da97(0x225)]||_0x4e0923));}_0x47d033?this[_0x20da97(0x197)][_0x20da97(0x1af)]=0x1:this[_0x20da97(0x197)]['exitCode']=0x0,this[_0x20da97(0x174)]=![],this[_0x20da97(0x215)]=![],process['env'][_0x20da97(0x260)]=null;}async['unConfigureModules'](){const _0x40d870=a67_0x10dc45,_0x1ec8fd={};_0x1ec8fd['AUTHh']=_0x40d870(0x1f7);const _0x58f1f2=_0x1ec8fd;this['logger'][_0x40d870(0x1c0)](_0x58f1f2[_0x40d870(0x198)]);}[a67_0x10dc45(0x255)](_0x18866f){const _0x5c6a13=a67_0x10dc45;this[_0x5c6a13(0x19f)]['info'](_0x5c6a13(0x185)+JSON[_0x5c6a13(0x17a)](_0x18866f)),this[_0x5c6a13(0x178)]=_0x18866f,GrpcClient[_0x5c6a13(0x18e)]()[_0x5c6a13(0x243)](_0x18866f);}async['startChild'](_0x4d1933){const _0x3e7c4d=a67_0x10dc45,_0xac8ed4={};_0xac8ed4[_0x3e7c4d(0x278)]=_0x3e7c4d(0x233);const _0x2c1a8a=_0xac8ed4;PerformanceTester[_0x3e7c4d(0x1a3)](PerformanceEvents[_0x3e7c4d(0x224)]);try{this['logger'][_0x3e7c4d(0x1c0)](_0x3e7c4d(0x1f1)+_0x4d1933);const _0x166c7a=GrpcClient['getInstance']();if(_0x166c7a&&_0x166c7a[_0x3e7c4d(0x1d7)]()&&_0x166c7a['getChannel']()){this[_0x3e7c4d(0x19f)][_0x3e7c4d(0x1c0)](_0x2c1a8a[_0x3e7c4d(0x278)]);return;}GrpcClient[_0x3e7c4d(0x18e)]()[_0x3e7c4d(0x218)]();const _0x1642ad=await GrpcClient[_0x3e7c4d(0x18e)]()[_0x3e7c4d(0x165)]();this[_0x3e7c4d(0x174)]=!![],this['loadModules'](_0x1642ad),PerformanceTester[_0x3e7c4d(0x184)](PerformanceEvents[_0x3e7c4d(0x224)]);}catch(_0x4986de){PerformanceTester['end'](PerformanceEvents[_0x3e7c4d(0x224)],![],util[_0x3e7c4d(0x1da)](_0x4986de)),this['logger'][_0x3e7c4d(0x1ac)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x3e7c4d(0x1da)](_0x4986de));}}static['isCLIEnabled'](){const _0xdb1eb6=a67_0x10dc45;try{return BrowserstackCLI[_0xdb1eb6(0x18e)]()[_0xdb1eb6(0x237)]();}catch(_0x356a79){return![];}}['isRunning'](){const _0x58d13c=a67_0x10dc45,_0x896647={};_0x896647['qGBjo']=function(_0x2c0e79,_0x9138e6){return _0x2c0e79!==_0x9138e6;},_0x896647['hkhqi']=function(_0x28ba0f,_0x51bc0e){return _0x28ba0f===_0x51bc0e;},_0x896647[_0x58d13c(0x192)]=function(_0x1933a9,_0x238b3f){return _0x1933a9!==_0x238b3f;},_0x896647['CwQxF']=function(_0x550027,_0x4c9e3a){return _0x550027!==_0x4c9e3a;};const _0x39ef2a=_0x896647;return CLIUtils[_0x58d13c(0x25b)]()||this[_0x58d13c(0x215)]&&_0x39ef2a[_0x58d13c(0x21a)](this['process'],null)&&_0x39ef2a['hkhqi'](this['process']['exitCode'],null)&&_0x39ef2a[_0x58d13c(0x192)](GrpcClient[_0x58d13c(0x18e)]()[_0x58d13c(0x1d7)](),null)&&!GrpcClient[_0x58d13c(0x18e)]()['getChannel']()['isClosed']||this['isChildConnected']&&_0x39ef2a[_0x58d13c(0x26f)](GrpcClient[_0x58d13c(0x18e)]()[_0x58d13c(0x22a)](),null)&&!GrpcClient[_0x58d13c(0x18e)]()['getChannel']()[_0x58d13c(0x1cb)];}['isBootstrapped'](){const _0x1aae68=a67_0x10dc45;return this[_0x1aae68(0x237)]()&&this[_0x1aae68(0x256)];}['getBrowserstackConfig'](){const _0xc534a1=a67_0x10dc45;return this[_0xc534a1(0x269)];}[a67_0x10dc45(0x1c2)](_0x385358,_0x1bc71d,_0x192bf5=null){const _0xcd41f2=a67_0x10dc45,_0x55ecc1={};_0x55ecc1[_0xcd41f2(0x181)]=function(_0x3cb36e,_0xbfa604){return _0x3cb36e||_0xbfa604;};const _0x312528=_0x55ecc1;this['browserstackConfig']=_0x312528[_0xcd41f2(0x181)](_0x385358,{}),this[_0xcd41f2(0x21f)]=_0x1bc71d,this['browserstackCliConfig']=_0x192bf5,process[_0xcd41f2(0x1a5)][_0xcd41f2(0x1ba)]=this[_0xcd41f2(0x269)]?.[_0xcd41f2(0x1b2)]||![];const _0x403f59=CLIUtils[_0xcd41f2(0x190)](),_0x2bbeac=CLIUtils[_0xcd41f2(0x219)]();LoadTestModule[_0xcd41f2(0x1bc)](this['browserstackConfig'])&&LoadTestModule[_0xcd41f2(0x274)](this['browserstackConfig']||{}),helper[_0xcd41f2(0x221)](process[_0xcd41f2(0x1a5)]['BROWSERSTACK_TURBOSCALE'])||!(CLI_SUPPORTED_FRAMEWORKS['includes'](_0x403f59['name']['toLowerCase']())&&CLI_SUPPORTED_FRAMEWORKS[_0xcd41f2(0x18c)](_0x2bbeac[_0xcd41f2(0x1ad)][_0xcd41f2(0x25f)]()))?process[_0xcd41f2(0x1a5)]['BROWSERSTACK_CLI_ENABLED']=![]:process[_0xcd41f2(0x1a5)][_0xcd41f2(0x180)]=!![];}async[a67_0x10dc45(0x24a)](){const _0x5075e5=a67_0x10dc45,_0x46d87a={};_0x46d87a[_0x5075e5(0x1d8)]=_0x5075e5(0x1db),_0x46d87a[_0x5075e5(0x19e)]=_0x5075e5(0x18a);const _0x2faaaf=_0x46d87a;if(!this[_0x5075e5(0x207)])try{this[_0x5075e5(0x19f)][_0x5075e5(0x1cc)](_0x2faaaf[_0x5075e5(0x1d8)]),this[_0x5075e5(0x207)]=await CLIUtils[_0x5075e5(0x1b5)](this[_0x5075e5(0x269)]),!this[_0x5075e5(0x207)]?this[_0x5075e5(0x19f)][_0x5075e5(0x1ac)](_0x2faaaf['HZOIo']):this[_0x5075e5(0x19f)][_0x5075e5(0x1cc)](_0x5075e5(0x179)+this['SDK_CLI_BIN_PATH']);}catch(_0x46fdd6){this[_0x5075e5(0x19f)][_0x5075e5(0x1ac)](_0x5075e5(0x177)+_0x46fdd6[_0x5075e5(0x1a6)]),this[_0x5075e5(0x207)]=null;}return this[_0x5075e5(0x207)];}[a67_0x10dc45(0x17e)](){const _0x556787=a67_0x10dc45;return helper[_0x556787(0x221)](process['env'][_0x556787(0x180)]);}['getConfig'](){const _0x336266=a67_0x10dc45;return this[_0x336266(0x164)];}['setConfig'](_0x572fe5){const _0x17d929=a67_0x10dc45,_0x404319={};_0x404319[_0x17d929(0x162)]=function(_0x596436,_0xc2df61){return _0x596436===_0xc2df61;},_0x404319[_0x17d929(0x1e1)]=_0x17d929(0x1eb),_0x404319[_0x17d929(0x20c)]=function(_0x2dd534,_0x565590){return _0x2dd534>_0x565590;},_0x404319[_0x17d929(0x231)]=_0x17d929(0x234),_0x404319[_0x17d929(0x169)]=_0x17d929(0x222),_0x404319[_0x17d929(0x273)]='loading\x20Modules.',_0x404319[_0x17d929(0x1a4)]=_0x17d929(0x247);const _0x1a8c84=_0x404319;try{const _0x4be90b=_0x572fe5[_0x17d929(0x23f)]?_0x572fe5['getConfig']():'';if(!_0x4be90b||_0x1a8c84[_0x17d929(0x162)](_0x4be90b['trim'](),'')){this[_0x17d929(0x19f)]['debug'](_0x1a8c84[_0x17d929(0x1e1)]);this[_0x17d929(0x269)]&&_0x1a8c84[_0x17d929(0x20c)](Object['keys'](this[_0x17d929(0x269)])[_0x17d929(0x161)],0x0)?(this['logger']['debug'](_0x1a8c84['wgsfx']),this[_0x17d929(0x164)]={'server':this[_0x17d929(0x269)][_0x17d929(0x173)],'hubUrl':this[_0x17d929(0x269)][_0x17d929(0x246)],'accessibility':this[_0x17d929(0x269)]['accessibility']||![]}):(this[_0x17d929(0x19f)]['debug'](_0x1a8c84[_0x17d929(0x169)]),this[_0x17d929(0x164)]={});return;}this[_0x17d929(0x164)]=JSON[_0x17d929(0x1dc)](_0x4be90b),this[_0x17d929(0x19f)][_0x17d929(0x1c0)](_0x1a8c84[_0x17d929(0x273)]);}catch(_0x543ac7){this[_0x17d929(0x19f)][_0x17d929(0x1ac)](_0x17d929(0x172)+util[_0x17d929(0x1da)](_0x543ac7)),this[_0x17d929(0x269)]&&_0x1a8c84[_0x17d929(0x20c)](Object[_0x17d929(0x202)](this[_0x17d929(0x269)])[_0x17d929(0x161)],0x0)?(this[_0x17d929(0x19f)][_0x17d929(0x1cc)](_0x1a8c84[_0x17d929(0x1a4)]),this[_0x17d929(0x164)]={'server':this[_0x17d929(0x269)][_0x17d929(0x173)],'hubUrl':this[_0x17d929(0x269)]['hubUrl'],'accessibility':this[_0x17d929(0x269)][_0x17d929(0x1b8)]||![]}):this[_0x17d929(0x164)]={};}}[a67_0x10dc45(0x251)](){const _0x19a657=a67_0x10dc45,_0x4a38f2={};_0x4a38f2['wKjDz']=_0x19a657(0x1fa),_0x4a38f2['vNXWi']=_0x19a657(0x1ce),_0x4a38f2[_0x19a657(0x1a0)]=_0x19a657(0x263);const _0x3dfd0b=_0x4a38f2;try{if(!this['browserstackConfig']){this['logger'][_0x19a657(0x1cc)](_0x3dfd0b['wKjDz']);return;}const _0x56164a=this['getConfig']();if(!_0x56164a){this['logger'][_0x19a657(0x1cc)](_0x3dfd0b[_0x19a657(0x22f)]);return;}!helper['isUndefined'](_0x56164a['accessibility'])&&(this[_0x19a657(0x269)][_0x19a657(0x1b8)]=_0x56164a['accessibility'],this['logger']['debug']('syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20'+_0x56164a[_0x19a657(0x1b8)])),!helper[_0x19a657(0x1a8)](_0x56164a[_0x19a657(0x213)])&&(this[_0x19a657(0x269)][_0x19a657(0x213)]=_0x56164a['accessibilityOptions'],this[_0x19a657(0x19f)][_0x19a657(0x1cc)](_0x3dfd0b[_0x19a657(0x1a0)]));}catch(_0x291644){this['logger'][_0x19a657(0x1ac)]('syncAccessibilityConfig:\x20error='+util[_0x19a657(0x1da)](_0x291644));}}['setCliArgs'](_0x40fe73){const _0x493e31=a67_0x10dc45;try{this['cliArgs']=_0x40fe73[_0x493e31(0x1e0)]()[_0x493e31(0x232)](','),this[_0x493e31(0x19f)]['info']('setCliArgs:\x20cliArgs='+JSON[_0x493e31(0x17a)](this[_0x493e31(0x23e)]));}catch(_0x2d285b){this[_0x493e31(0x19f)][_0x493e31(0x1ac)](_0x493e31(0x1f2)+util[_0x493e31(0x1da)](_0x2d285b));}}[a67_0x10dc45(0x1e0)](){const _0x2ff416=a67_0x10dc45;return this[_0x2ff416(0x23e)];}[a67_0x10dc45(0x195)](){const _0x5edd0c=a67_0x10dc45,_0x44ca54={};_0x44ca54[_0x5edd0c(0x245)]=function(_0xa3de4a,_0x33cb38){return _0xa3de4a===_0x33cb38;},_0x44ca54[_0x5edd0c(0x26b)]=function(_0x2edfc2,_0x3af1bc){return _0x2edfc2===_0x3af1bc;};const _0x5214f2=_0x44ca54,_0x2354d5=CLIUtils[_0x5edd0c(0x190)]();if(_0x5214f2[_0x5edd0c(0x245)](_0x2354d5['name'][_0x5edd0c(0x25f)](),FRAMEWORKS[_0x5edd0c(0x1ef)][_0x5edd0c(0x25f)]()))this[_0x5edd0c(0x22e)]=new PlaywrightTestFramework([_0x2354d5[_0x5edd0c(0x1ad)]],_0x2354d5[_0x5edd0c(0x1fb)]);else{if(_0x5214f2[_0x5edd0c(0x245)](_0x2354d5[_0x5edd0c(0x1ad)]['toLowerCase'](),FRAMEWORKS[_0x5edd0c(0x1b3)][_0x5edd0c(0x25f)]()))this['testFramework']=new CucumberTestFramework([_0x2354d5[_0x5edd0c(0x1ad)]],_0x2354d5[_0x5edd0c(0x1fb)]);else _0x5214f2[_0x5edd0c(0x26b)](_0x2354d5[_0x5edd0c(0x1ad)][_0x5edd0c(0x25f)](),FRAMEWORKS[_0x5edd0c(0x1e5)][_0x5edd0c(0x25f)]())&&(this[_0x5edd0c(0x22e)]=new JestTestFramework([_0x2354d5['name']],_0x2354d5[_0x5edd0c(0x1fb)]));}}['setupAutomationFramework'](){const _0x22d5ab=a67_0x10dc45,_0x3a97c9={};_0x3a97c9['YLBIY']=function(_0x32ad20,_0x4cfb21){return _0x32ad20===_0x4cfb21;};const _0xca789c=_0x3a97c9,_0x1e78ef=CLIUtils[_0x22d5ab(0x219)]();if(_0xca789c[_0x22d5ab(0x21b)](_0x1e78ef['name'][_0x22d5ab(0x25f)](),FRAMEWORKS[_0x22d5ab(0x1ef)]['toLowerCase']()))this['automationFramework']=new PlaywrightAutomationFramework(_0x1e78ef[_0x22d5ab(0x1ad)],_0x1e78ef[_0x22d5ab(0x1fb)]);else _0xca789c['YLBIY'](_0x1e78ef[_0x22d5ab(0x1ad)][_0x22d5ab(0x25f)](),FRAMEWORKS[_0x22d5ab(0x26c)][_0x22d5ab(0x25f)]())&&(this['automationFramework']=new PuppeteerAutomationFramework(_0x1e78ef['name'],_0x1e78ef['version']));}['getTestFramework'](){const _0x1489a4=a67_0x10dc45;return this[_0x1489a4(0x22e)];}[a67_0x10dc45(0x265)](){return this['automationFramework'];}[a67_0x10dc45(0x22c)](){const _0x2997c8=a67_0x10dc45;return this[_0x2997c8(0x272)];}[a67_0x10dc45(0x230)](){const _0x2ec572=a67_0x10dc45;return this[_0x2ec572(0x21f)];}}module[a67_0x10dc45(0x182)]=BrowserstackCLI;
1
+ const a67_0xfc18da=a67_0x3b66;function a67_0x3b66(_0x2c3638,_0x52d8d6){const _0xfe4739=a67_0xfe47();return a67_0x3b66=function(_0x3b665f,_0x282dc5){_0x3b665f=_0x3b665f-0x1b4;let _0x4136fe=_0xfe4739[_0x3b665f];return _0x4136fe;},a67_0x3b66(_0x2c3638,_0x52d8d6);}(function(_0x1b9add,_0x44950f){const _0x4fd4d3=a67_0x3b66,_0x23f811=_0x1b9add();while(!![]){try{const _0x41acdb=-parseInt(_0x4fd4d3(0x21c))/0x1+-parseInt(_0x4fd4d3(0x1ca))/0x2*(parseInt(_0x4fd4d3(0x1c1))/0x3)+-parseInt(_0x4fd4d3(0x1f7))/0x4+-parseInt(_0x4fd4d3(0x1f5))/0x5*(-parseInt(_0x4fd4d3(0x2c1))/0x6)+parseInt(_0x4fd4d3(0x1d4))/0x7*(parseInt(_0x4fd4d3(0x1e3))/0x8)+-parseInt(_0x4fd4d3(0x1bc))/0x9+-parseInt(_0x4fd4d3(0x1fd))/0xa*(-parseInt(_0x4fd4d3(0x23a))/0xb);if(_0x41acdb===_0x44950f)break;else _0x23f811['push'](_0x23f811['shift']());}catch(_0x4346a8){_0x23f811['push'](_0x23f811['shift']());}}}(a67_0xfe47,0xa97e2));const {spawn}=require(a67_0xfc18da(0x242)),GrpcClient=require(a67_0xfc18da(0x23e)),util=require(a67_0xfc18da(0x297)),CLIUtils=require(a67_0xfc18da(0x2a5)),PlaywrightAutomationFramework=require(a67_0xfc18da(0x1ee)),PuppeteerAutomationFramework=require(a67_0xfc18da(0x20a)),PlaywrightTestFramework=require(a67_0xfc18da(0x26c)),CucumberTestFramework=require('./framework/cucumberTestFramework.js'),JestTestFramework=require(a67_0xfc18da(0x28f)),{createClassLogger}=require(a67_0xfc18da(0x2c9)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require(a67_0xfc18da(0x1c7)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require(a67_0xfc18da(0x2b9)),helper=require(a67_0xfc18da(0x1bf)),TestFrameworkConstants=require(a67_0xfc18da(0x236)),buildLogger=require(a67_0xfc18da(0x239))[a67_0xfc18da(0x1cc)],LoadTestModule=require(a67_0xfc18da(0x2a9)),TestInfo=require(a67_0xfc18da(0x231));class BrowserstackCLI{static #instance=null;static ['BuildLink']=null;static [a67_0xfc18da(0x24b)]=null;static [a67_0xfc18da(0x2a2)]=null;static [a67_0xfc18da(0x1c8)]=![];[a67_0xfc18da(0x1e9)]=null;['isMainConnected']=![];[a67_0xfc18da(0x1b6)]=![];[a67_0xfc18da(0x2bc)]=![];[a67_0xfc18da(0x266)]=null;[a67_0xfc18da(0x203)]={};['testFramework']=null;[a67_0xfc18da(0x2bd)]=null;[a67_0xfc18da(0x288)]=createClassLogger(a67_0xfc18da(0x267));constructor(){const _0x18c1ee=a67_0xfc18da;this['initialized']=![],this[_0x18c1ee(0x278)]={},this[_0x18c1ee(0x1e4)]={},this['browserstackConfig']={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a67_0xfc18da(0x268)](){const _0x75c0fc=a67_0xfc18da,_0x2bb225={};_0x2bb225['fskrQ']=_0x75c0fc(0x275);const _0x4e3807=_0x2bb225;if(helper[_0x75c0fc(0x25d)](process[_0x75c0fc(0x29c)][_0x75c0fc(0x204)])){this[_0x75c0fc(0x288)]['info'](_0x4e3807[_0x75c0fc(0x26a)]);return;}PerformanceTester[_0x75c0fc(0x21d)](PerformanceEvents[_0x75c0fc(0x238)]);try{const _0x58633e=process[_0x75c0fc(0x29c)][_0x75c0fc(0x272)]||null;this[_0x75c0fc(0x292)](),this[_0x75c0fc(0x1bb)]();if(_0x58633e){await this[_0x75c0fc(0x1c5)](_0x58633e),PerformanceTester['end'](PerformanceEvents[_0x75c0fc(0x238)]);return;}await this[_0x75c0fc(0x2ba)]();}catch(_0x17a2eb){this[_0x75c0fc(0x288)][_0x75c0fc(0x282)](_0x75c0fc(0x299)+(_0x17a2eb[_0x75c0fc(0x254)]||_0x17a2eb)),await this[_0x75c0fc(0x29f)](),PerformanceTester[_0x75c0fc(0x2d2)](PerformanceEvents[_0x75c0fc(0x238)],![],util[_0x75c0fc(0x25f)](_0x17a2eb));}}async[a67_0xfc18da(0x2ba)](){const _0x5234de=a67_0xfc18da,_0x579b99={};_0x579b99[_0x5234de(0x2a7)]=_0x5234de(0x1da),_0x579b99['NcBDy']=_0x5234de(0x295);const _0x49f642=_0x579b99;this[_0x5234de(0x288)][_0x5234de(0x1df)](_0x49f642[_0x5234de(0x2a7)]),await this[_0x5234de(0x21d)](),this['logger'][_0x5234de(0x243)](_0x49f642['NcBDy']);const _0x28b7ad=await GrpcClient[_0x5234de(0x1ba)]()[_0x5234de(0x1b7)]();this[_0x5234de(0x214)]=!![],this[_0x5234de(0x26d)](_0x28b7ad);}[a67_0xfc18da(0x26d)](_0x2dc732){const _0x15fcaa=a67_0xfc18da,_0x4b0401={'yCxcF':function(_0x49f788,_0x4f1dd5){return _0x49f788(_0x4f1dd5);},'cdFps':_0x15fcaa(0x253),'eMHyO':'./modules/testhubModule.js','beDxF':'./modules/observabilityModule.js','FhTzQ':_0x15fcaa(0x257),'dvKXl':'getObservability','QSzOD':_0x15fcaa(0x2af),'imgam':_0x15fcaa(0x1e7),'vvgMr':function(_0x574df9,_0x14f2c0){return _0x574df9||_0x14f2c0;},'GwItt':function(_0x5d73d5,_0x40d54e){return _0x5d73d5!==_0x40d54e;},'lDVOM':function(_0x4062f9,_0x441e5d){return _0x4062f9!==_0x441e5d;},'rnzSL':function(_0x54ab87,_0xf904c){return _0x54ab87===_0xf904c;},'CDGiy':'function','jPofC':function(_0x5ccf3b,_0x43d920){return _0x5ccf3b&&_0x43d920;},'MvyyQ':function(_0xecf49e,_0x131f0d){return _0xecf49e===_0x131f0d;},'IzhDf':function(_0x4ebabc,_0x36b663){return _0x4ebabc(_0x36b663);},'AixkO':_0x15fcaa(0x22f)},_0xe2fb44=_0x4b0401[_0x15fcaa(0x25b)](require,_0x4b0401[_0x15fcaa(0x2ca)]),_0x23f191=_0x4b0401['yCxcF'](require,_0x4b0401[_0x15fcaa(0x27a)]),_0xb7c003=_0x4b0401[_0x15fcaa(0x25b)](require,_0x4b0401[_0x15fcaa(0x1b9)]);this[_0x15fcaa(0x288)][_0x15fcaa(0x1df)](_0x4b0401['FhTzQ']),this[_0x15fcaa(0x266)]=_0x2dc732[_0x15fcaa(0x2be)](),this[_0x15fcaa(0x288)]['info']('loadModules:\x20binSessionId='+this['binSessionId']),this['setConfig'](_0x2dc732),this[_0x15fcaa(0x240)]();!this[_0x15fcaa(0x1b6)]&&this[_0x15fcaa(0x235)](_0x2dc732);const _0xaeb6e0=_0x4b0401[_0x15fcaa(0x2d1)],_0x4d41aa=_0x4b0401[_0x15fcaa(0x1c4)],_0x4d7c87=_0x4b0401[_0x15fcaa(0x1be)],_0x3a73e9=_0x2dc732[_0xaeb6e0]()&&_0x2dc732[_0xaeb6e0]()[_0x4d7c87](),_0x10a2f5=_0x2dc732[_0x4d41aa]()&&_0x2dc732[_0x4d41aa]()[_0x4d7c87](),_0x1f1069=process['env'][_0x15fcaa(0x287)]&&JSON[_0x15fcaa(0x212)](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);_0x4b0401[_0x15fcaa(0x262)](_0x3a73e9,_0x10a2f5)&&(this[_0x15fcaa(0x203)][_0x23f191[_0x15fcaa(0x205)]]=new _0x23f191(_0x2dc732[_0x15fcaa(0x28c)](),_0x1f1069));_0x3a73e9&&(this[_0x15fcaa(0x203)][_0xb7c003[_0x15fcaa(0x205)]]=new _0xb7c003(_0x2dc732[_0xaeb6e0]()));if(_0x10a2f5){this[_0x15fcaa(0x203)][AccessibilityModule[_0x15fcaa(0x205)]]=new AccessibilityModule(_0x2dc732[_0x4d41aa]());const _0x398dd5=this[_0x15fcaa(0x278)]&&_0x4b0401[_0x15fcaa(0x1b8)](this[_0x15fcaa(0x278)][_0x15fcaa(0x244)],undefined)&&_0x4b0401[_0x15fcaa(0x269)](this[_0x15fcaa(0x278)]['app'],null);BrowserstackCLI[_0x15fcaa(0x1c8)]=!_0x398dd5;}else try{const _0x321c29=_0x2dc732[_0x4d41aa](),_0x197db8=_0x321c29&&_0x4b0401[_0x15fcaa(0x1fb)](typeof _0x321c29[_0x4d7c87],_0x4b0401['CDGiy'])?!!_0x321c29[_0x4d7c87]():![];this[_0x15fcaa(0x288)][_0x15fcaa(0x1df)](_0x15fcaa(0x20f)+_0x197db8);if(_0x4b0401['jPofC'](!_0x197db8,_0x321c29)){const _0x35575c=_0x321c29[_0x15fcaa(0x2a6)]?_0x321c29[_0x15fcaa(0x2a6)]():_0x321c29;_0x35575c['errorsList']&&Array[_0x15fcaa(0x222)](_0x35575c[_0x15fcaa(0x200)])&&(this[_0x15fcaa(0x288)][_0x15fcaa(0x282)](_0x15fcaa(0x234)+_0x35575c[_0x15fcaa(0x200)][_0x15fcaa(0x220)]+_0x15fcaa(0x209)),_0x35575c[_0x15fcaa(0x200)][_0x15fcaa(0x20e)]((_0x249cd1,_0x5574dc)=>{const _0x4220e8=_0x15fcaa;this[_0x4220e8(0x288)][_0x4220e8(0x282)](_0x4220e8(0x290)+_0x249cd1['key']+']\x20'+_0x249cd1['message']);}),_0x35575c[_0x15fcaa(0x285)]&&this[_0x15fcaa(0x288)]['error'](_0x15fcaa(0x2b8)+_0x35575c['errorTraceId']),_0x35575c['code']&&this['logger'][_0x15fcaa(0x282)]('Error\x20Code:\x20'+_0x35575c[_0x15fcaa(0x22d)]));}}catch(_0x56e452){this[_0x15fcaa(0x288)][_0x15fcaa(0x282)](_0x15fcaa(0x22c)+_0x56e452);}const _0x2bf513=CLIUtils['getAutomationFrameworkDetail']();if(_0x4b0401['MvyyQ'](_0x2bf513['name'][_0x15fcaa(0x274)](),FRAMEWORKS[_0x15fcaa(0x1ce)][_0x15fcaa(0x274)]())){const _0x10cbc1=_0x4b0401[_0x15fcaa(0x280)](require,_0x4b0401['AixkO']);this[_0x15fcaa(0x203)][_0x10cbc1['MODULE_NAME']]=new _0x10cbc1(_0x1f1069);}else this[_0x15fcaa(0x203)][_0xe2fb44[_0x15fcaa(0x205)]]=new _0xe2fb44(_0x1f1069);this[_0x15fcaa(0x2bc)]=!![],this[_0x15fcaa(0x296)]();}[a67_0xfc18da(0x22a)](){const _0x56d8e7=a67_0xfc18da;return this[_0x56d8e7(0x203)][AccessibilityModule['MODULE_NAME']];}async['configureModules'](){const _0x388b8d=a67_0xfc18da;for(const _0x43521d in this[_0x388b8d(0x203)]){const _0x20ce2e=this['modules'][_0x43521d];await _0x20ce2e[_0x388b8d(0x2b4)](this['binSessionId'],0x0,GrpcClient[_0x388b8d(0x1ba)]()['client'],this[_0x388b8d(0x278)]);}}async[a67_0xfc18da(0x21d)](){const _0x3d71a6=a67_0xfc18da,_0x22a405={};_0x22a405['LIEXf']=_0x3d71a6(0x29d),_0x22a405[_0x3d71a6(0x1de)]=_0x3d71a6(0x246),_0x22a405[_0x3d71a6(0x2bb)]=function(_0x1b6028,_0x2c8c62){return _0x1b6028<=_0x2c8c62;},_0x22a405[_0x3d71a6(0x2b0)]=function(_0x14981e,_0x2cb3ff){return _0x14981e>_0x2cb3ff;},_0x22a405[_0x3d71a6(0x2b3)]=function(_0x5e6083,_0xb271fd){return _0x5e6083<_0xb271fd;},_0x22a405[_0x3d71a6(0x294)]=_0x3d71a6(0x265);const _0x1e3e05=_0x22a405;PerformanceTester[_0x3d71a6(0x21d)](PerformanceEvents[_0x3d71a6(0x1c3)]);if(CLIUtils[_0x3d71a6(0x1e8)]())return this['loadCliParams'](CLIUtils[_0x3d71a6(0x221)]()),PerformanceTester[_0x3d71a6(0x2d2)](PerformanceEvents['SDK_CLI_START']),Promise['resolve']();if(this[_0x3d71a6(0x1e9)]&&this[_0x3d71a6(0x1e9)][_0x3d71a6(0x20d)])return PerformanceTester[_0x3d71a6(0x2d2)](PerformanceEvents['SDK_CLI_START']),Promise[_0x3d71a6(0x201)]();const _0x36ae93=await this[_0x3d71a6(0x2a1)]();if(!_0x36ae93)throw new Error(_0x1e3e05[_0x3d71a6(0x23d)]);const _0x4ceda6=[_0x36ae93,_0x1e3e05[_0x3d71a6(0x1de)]];this['logger']['info'](_0x3d71a6(0x250)+_0x4ceda6+'\x27');for(let _0x4a7f0b=0x1;_0x1e3e05['uMSsB'](_0x4a7f0b,MAX_SPAWN_RETRIES);_0x4a7f0b++){try{await this[_0x3d71a6(0x225)](_0x4ceda6);_0x1e3e05[_0x3d71a6(0x2b0)](_0x4a7f0b,0x1)&&this['logger'][_0x3d71a6(0x1df)]('spawn\x20succeeded\x20on\x20attempt\x20'+_0x4a7f0b+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x4264c4){if(BINARY_BUSY_ERROR_CODES[_0x3d71a6(0x1e6)](_0x4264c4[_0x3d71a6(0x22d)])&&_0x1e3e05[_0x3d71a6(0x2b3)](_0x4a7f0b,MAX_SPAWN_RETRIES))this[_0x3d71a6(0x288)][_0x3d71a6(0x2ac)](_0x3d71a6(0x27b)+_0x4264c4[_0x3d71a6(0x22d)]+_0x3d71a6(0x27d)+_0x4a7f0b+'/'+MAX_SPAWN_RETRIES+_0x3d71a6(0x1e0)+SPAWN_RETRY_DELAY_MS+_0x3d71a6(0x216)),this[_0x3d71a6(0x1e9)]&&(this[_0x3d71a6(0x1e9)]['removeAllListeners'](),!this[_0x3d71a6(0x1e9)][_0x3d71a6(0x1d1)]&&this['process'][_0x3d71a6(0x1f6)](_0x1e3e05[_0x3d71a6(0x294)]),this['process']=null),await new Promise(_0x353c96=>setTimeout(_0x353c96,SPAWN_RETRY_DELAY_MS));else throw _0x4264c4;}}}[a67_0xfc18da(0x225)](_0x33742f){const _0x392f51=a67_0xfc18da,_0x195270={'LlIlI':function(_0x56365b,_0x17c7ea){return _0x56365b!==_0x17c7ea;},'PaIWr':'ready','Ibdrn':_0x392f51(0x261),'EWVin':_0x392f51(0x282),'OsXDP':_0x392f51(0x218),'jdCqk':function(_0x25937c){return _0x25937c();},'taMOB':function(_0x5a06f9,_0x48bf3e){return _0x5a06f9(_0x48bf3e);},'kthUy':function(_0x4bff33,_0x59657b,_0x2a4ee1,_0x4fa21f){return _0x4bff33(_0x59657b,_0x2a4ee1,_0x4fa21f);},'GDoVi':function(_0x3201b8,_0x14b29a){return _0x3201b8(_0x14b29a);},'JsRJt':_0x392f51(0x2a8),'IIKQy':_0x392f51(0x2b5)};return new Promise((_0x5c2efa,_0x5bd6e5)=>{const _0x1e2e98=_0x392f51,_0x2feb04={'KLLlj':function(_0x53b944,_0x4dabd2){const _0x533435=a67_0x3b66;return _0x195270[_0x533435(0x233)](_0x53b944,_0x4dabd2);},'qDjgW':function(_0x281d31,_0x55b680){const _0x3f1d5c=a67_0x3b66;return _0x195270[_0x3f1d5c(0x233)](_0x281d31,_0x55b680);},'qdBfw':function(_0x31eacc,_0x36494b){return _0x195270['taMOB'](_0x31eacc,_0x36494b);}},_0x71d92b={};_0x71d92b['env']=process[_0x1e2e98(0x29c)],this[_0x1e2e98(0x1e9)]=_0x195270[_0x1e2e98(0x264)](spawn,_0x33742f[0x0],_0x33742f[_0x1e2e98(0x1d0)](0x1),_0x71d92b);if(!this[_0x1e2e98(0x1e9)]||!this[_0x1e2e98(0x1e9)][_0x1e2e98(0x28d)]){_0x195270[_0x1e2e98(0x1c0)](_0x5bd6e5,new Error(_0x195270[_0x1e2e98(0x215)]));return;}const _0x180f9f={};this[_0x1e2e98(0x1e9)][_0x1e2e98(0x26e)]['on'](_0x195270[_0x1e2e98(0x21b)],_0x8a6f4b=>{const _0x90ef62=_0x1e2e98,_0x22ede4=_0x8a6f4b[_0x90ef62(0x2a0)]()['trim']()[_0x90ef62(0x2bf)]('\x0a');for(const _0x43e43b of _0x22ede4){if(/^(id|listen|port)=.*$/[_0x90ef62(0x1f3)](_0x43e43b)){const [_0x4d9aba,_0x2c024f]=_0x43e43b[_0x90ef62(0x2bf)]('=',0x2);_0x195270[_0x90ef62(0x233)](_0x2c024f,undefined)&&(_0x180f9f[_0x4d9aba]=_0x2c024f);}if(_0x43e43b[_0x90ef62(0x274)]()[_0x90ef62(0x1e6)](_0x195270['PaIWr'])){const _0x298ce9=_0x195270[_0x90ef62(0x241)][_0x90ef62(0x2bf)]('|');let _0x4a94f2=0x0;while(!![]){switch(_0x298ce9[_0x4a94f2++]){case'0':this[_0x90ef62(0x260)](_0x180f9f);continue;case'1':this[_0x90ef62(0x1e9)]['on'](_0x195270[_0x90ef62(0x211)],_0x5a0f9a=>{const _0x4676c7=_0x90ef62;this[_0x4676c7(0x288)][_0x4676c7(0x282)](_0x4676c7(0x258)+_0x5a0f9a[_0x4676c7(0x22d)]+_0x4676c7(0x24c)+_0x5a0f9a[_0x4676c7(0x283)]);});continue;case'2':this[_0x90ef62(0x1e9)][_0x90ef62(0x237)](_0x195270[_0x90ef62(0x1f4)]);continue;case'3':return;case'4':this[_0x90ef62(0x1e9)]['on'](_0x195270['OsXDP'],_0x57c927=>{const _0x2244a8=_0x90ef62;_0x2feb04[_0x2244a8(0x2ae)](_0x57c927,0x0)&&this[_0x2244a8(0x288)]['error'](_0x2244a8(0x23b)+_0x57c927+_0x2244a8(0x1fe));});continue;case'5':_0x195270['jdCqk'](_0x5c2efa);continue;case'6':this[_0x90ef62(0x1e9)][_0x90ef62(0x237)](_0x195270[_0x90ef62(0x211)]);continue;case'7':PerformanceTester[_0x90ef62(0x2d2)](PerformanceEvents[_0x90ef62(0x1c3)]);continue;}break;}}}}),this['process'][_0x1e2e98(0x229)]['on'](_0x195270['IIKQy'],_0x310a18=>{const _0x46b565=_0x1e2e98;this[_0x46b565(0x288)][_0x46b565(0x282)](_0x46b565(0x277)+_0x310a18[_0x46b565(0x2a0)]()['trim']());}),this['process']['on'](_0x195270[_0x1e2e98(0x211)],_0x7bdfaa=>{const _0x5846f8=_0x1e2e98;_0x180f9f[_0x5846f8(0x282)]=_0x5846f8(0x2cb)+_0x7bdfaa[_0x5846f8(0x22d)]+_0x5846f8(0x1e1)+_0x7bdfaa[_0x5846f8(0x283)],PerformanceTester[_0x5846f8(0x2d2)](PerformanceEvents[_0x5846f8(0x1c3)],![],_0x7bdfaa),_0x195270[_0x5846f8(0x1d9)](_0x5bd6e5,_0x7bdfaa);}),this[_0x1e2e98(0x1e9)]['on'](_0x195270[_0x1e2e98(0x1f4)],_0x554aa6=>{const _0x31a884=_0x1e2e98;_0x2feb04[_0x31a884(0x2cd)](_0x554aa6,0x0)&&_0x2feb04[_0x31a884(0x2c2)](_0x5bd6e5,new Error(_0x31a884(0x23b)+_0x554aa6));});});}async[a67_0xfc18da(0x29f)](_0x546306=null){const _0x162563=a67_0xfc18da,_0x28ee4a={'XkzoR':'stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','zQbNs':_0x162563(0x265),'LFIop':function(_0x65da4a){return _0x65da4a();},'zdMmD':_0x162563(0x210),'azcOy':function(_0x5eadaa){return _0x5eadaa();},'bsfXz':_0x162563(0x207),'IEcSv':function(_0x9f0d34,_0x3434b1,_0x163c69){return _0x9f0d34(_0x3434b1,_0x163c69);},'FKbxA':_0x162563(0x2a4),'wdmRX':'stop:\x20CLI\x20stop\x20triggered','HGRqW':function(_0xc3fe08,_0x1b77f4){return _0xc3fe08(_0x1b77f4);},'jpMDM':_0x162563(0x29a),'hEUZE':_0x162563(0x26f),'TAQbx':_0x162563(0x1cd),'xdIsP':_0x162563(0x23f)};if(!this[_0x162563(0x1dc)]()){this[_0x162563(0x288)][_0x162563(0x1df)](_0x28ee4a[_0x162563(0x298)]);return;}PerformanceTester[_0x162563(0x21d)](PerformanceEvents[_0x162563(0x1ef)]),this[_0x162563(0x288)][_0x162563(0x1df)](_0x28ee4a[_0x162563(0x2a3)]);try{if(this[_0x162563(0x214)]){const _0x277a91=_0x28ee4a[_0x162563(0x255)](require,_0x28ee4a[_0x162563(0x24d)]),_0x481cd0=this['modules'][_0x162563(0x2c3)]?.[_0x162563(0x2c5)]?.[_0x162563(0x2a6)]()?.[_0x162563(0x2b6)],_0xf3a463=TestInfo[_0x162563(0x276)](_0x481cd0),_0x36fbde=_0xf3a463[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x557902=await GrpcClient['getInstance']()[_0x162563(0x1cb)](JSON[_0x162563(0x29e)](_0x36fbde),_0x546306);_0x557902&&_0x557902[_0x162563(0x1e7)]()&&_0x557902['getAutomateBuildlink']()&&(BrowserstackCLI[_0x162563(0x24f)]=_0x557902['getAutomateBuildlink'](),BrowserstackCLI[_0x162563(0x24b)]=_0x557902[_0x162563(0x270)]()),await _0x277a91[_0x162563(0x223)](),TestInfo[_0x162563(0x249)](),buildLogger[_0x162563(0x1df)](_0x162563(0x2b2)+BrowserstackCLI[_0x162563(0x24f)]+_0x162563(0x279)+BrowserstackCLI[_0x162563(0x24b)]+'\x20o11y_uuid='+BrowserstackCLI['O11yHashedID']);}await this[_0x162563(0x1ea)]();const _0x4b89c2=GrpcClient[_0x162563(0x1ba)]()[_0x162563(0x1e5)]();if(_0x4b89c2){try{_0x4b89c2['close'](),this['logger'][_0x162563(0x1df)](_0x28ee4a[_0x162563(0x1bd)]);}catch(_0x3d3d65){this['logger'][_0x162563(0x282)](util[_0x162563(0x25f)](_0x28ee4a[_0x162563(0x1db)],_0x3d3d65));}await new Promise(_0x4c8bc3=>setTimeout(_0x4c8bc3,0x1388));}this[_0x162563(0x1e9)]&&this[_0x162563(0x1e9)][_0x162563(0x28d)]&&(this[_0x162563(0x288)]['info'](_0x28ee4a[_0x162563(0x219)]),this[_0x162563(0x1e9)][_0x162563(0x1f6)](),await new Promise(_0x5147b7=>{const _0xa812d1=_0x162563,_0x2592bf={'zLDVF':_0x28ee4a[_0xa812d1(0x1fc)],'MnMDf':function(_0x55a36e){const _0x18f951=_0xa812d1;return _0x28ee4a[_0x18f951(0x2c7)](_0x55a36e);}};let _0x43fdd8=![];this[_0xa812d1(0x1e9)]['on'](_0x28ee4a[_0xa812d1(0x23c)],()=>{const _0x5bbd2d=_0xa812d1;this[_0x5bbd2d(0x288)]['info'](_0x2592bf[_0x5bbd2d(0x291)]),_0x43fdd8=!![],PerformanceTester[_0x5bbd2d(0x2d2)](PerformanceEvents[_0x5bbd2d(0x1ef)]),_0x2592bf[_0x5bbd2d(0x2c4)](_0x5147b7);}),_0x28ee4a[_0xa812d1(0x28a)](setTimeout,()=>{const _0x175b91=_0xa812d1;!_0x43fdd8&&(this['logger'][_0x175b91(0x2ac)](_0x28ee4a['XkzoR']),this['process']['kill'](_0x28ee4a[_0x175b91(0x251)]),PerformanceTester[_0x175b91(0x2d2)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x28ee4a[_0x175b91(0x259)](_0x5147b7));},0xbb8);}));}catch(_0x1606c9){PerformanceTester[_0x162563(0x2d2)](PerformanceEvents['SDK_CLI_ON_STOP'],![],util['format'](_0x1606c9)),this['logger']['error']('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x1606c9[_0x162563(0x254)]||_0x1606c9));}_0x546306?this[_0x162563(0x1e9)][_0x162563(0x281)]=0x1:this[_0x162563(0x1e9)]['exitCode']=0x0,this['isChildConnected']=![],this['isMainConnected']=![],process[_0x162563(0x29c)][_0x162563(0x289)]=null;}async['unConfigureModules'](){const _0x590458=a67_0xfc18da,_0x3f6a4d={};_0x3f6a4d[_0x590458(0x24a)]=_0x590458(0x28e);const _0x1fd99e=_0x3f6a4d;this[_0x590458(0x288)][_0x590458(0x1df)](_0x1fd99e['rdAhN']);}[a67_0xfc18da(0x260)](_0x2933a1){const _0x349959=a67_0xfc18da;this['logger'][_0x349959(0x1df)](_0x349959(0x21f)+JSON['stringify'](_0x2933a1)),this[_0x349959(0x224)]=_0x2933a1,GrpcClient[_0x349959(0x1ba)]()[_0x349959(0x21a)](_0x2933a1);}async[a67_0xfc18da(0x1c5)](_0x5973ae){const _0x6206b0=a67_0xfc18da,_0x31be6f={};_0x31be6f['XpGmW']=_0x6206b0(0x24e);const _0x20b844=_0x31be6f;PerformanceTester[_0x6206b0(0x21d)](PerformanceEvents[_0x6206b0(0x1dd)]);try{this[_0x6206b0(0x288)]['info']('Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20'+_0x5973ae);const _0x4ba3d6=GrpcClient[_0x6206b0(0x1ba)]();if(_0x4ba3d6&&_0x4ba3d6['getClient']()&&_0x4ba3d6['getChannel']()){this[_0x6206b0(0x288)]['info'](_0x20b844[_0x6206b0(0x1d6)]);return;}GrpcClient[_0x6206b0(0x1ba)]()[_0x6206b0(0x1cf)]();const _0x55b2fc=await GrpcClient[_0x6206b0(0x1ba)]()[_0x6206b0(0x27c)]();this['isChildConnected']=!![],this['loadModules'](_0x55b2fc),PerformanceTester[_0x6206b0(0x2d2)](PerformanceEvents[_0x6206b0(0x1dd)]);}catch(_0x5a4c47){PerformanceTester[_0x6206b0(0x2d2)](PerformanceEvents[_0x6206b0(0x1dd)],![],util['format'](_0x5a4c47)),this[_0x6206b0(0x288)]['error']('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x6206b0(0x25f)](_0x5a4c47));}}static[a67_0xfc18da(0x2aa)](){const _0xaaebe9=a67_0xfc18da;try{return BrowserstackCLI[_0xaaebe9(0x1ba)]()[_0xaaebe9(0x1dc)]();}catch(_0x4ca4ab){return![];}}[a67_0xfc18da(0x1dc)](){const _0x13d578=a67_0xfc18da,_0x1f0f6f={};_0x1f0f6f['hzYjT']=function(_0x5cc33b,_0x33523d){return _0x5cc33b!==_0x33523d;},_0x1f0f6f[_0x13d578(0x1ec)]=function(_0x1cea72,_0x38759c){return _0x1cea72===_0x38759c;};const _0xa50032=_0x1f0f6f;return CLIUtils[_0x13d578(0x1e8)]()||this[_0x13d578(0x214)]&&_0xa50032[_0x13d578(0x1f8)](this[_0x13d578(0x1e9)],null)&&_0xa50032[_0x13d578(0x1ec)](this[_0x13d578(0x1e9)][_0x13d578(0x281)],null)&&_0xa50032[_0x13d578(0x1f8)](GrpcClient[_0x13d578(0x1ba)]()[_0x13d578(0x20b)](),null)&&!GrpcClient[_0x13d578(0x1ba)]()[_0x13d578(0x1e5)]()[_0x13d578(0x1ed)]||this[_0x13d578(0x1b6)]&&_0xa50032[_0x13d578(0x1f8)](GrpcClient['getInstance']()[_0x13d578(0x1e5)](),null)&&!GrpcClient[_0x13d578(0x1ba)]()[_0x13d578(0x1e5)]()['isClosed'];}[a67_0xfc18da(0x256)](){const _0x17f6ea=a67_0xfc18da;return this[_0x17f6ea(0x1dc)]()&&this[_0x17f6ea(0x2bc)];}[a67_0xfc18da(0x22e)](){const _0x25ae52=a67_0xfc18da;return this[_0x25ae52(0x28b)];}[a67_0xfc18da(0x226)](_0x165335,_0xaa5fec,_0xdcf3ec=null){const _0x406a22=a67_0xfc18da,_0x13646a={};_0x13646a[_0x406a22(0x232)]=function(_0x30e581,_0x598dd7){return _0x30e581||_0x598dd7;};const _0x5ee1b9=_0x13646a;this[_0x406a22(0x28b)]=_0x5ee1b9[_0x406a22(0x232)](_0x165335,{}),this['browserstackConfigPath']=_0xaa5fec,this[_0x406a22(0x25e)]=_0xdcf3ec,process['env']['BROWSERSTACK_TURBOSCALE']=this['browserstackConfig']?.[_0x406a22(0x2c8)]||![];const _0x4f7ca1=CLIUtils[_0x406a22(0x213)](),_0x303b77=CLIUtils[_0x406a22(0x2c0)]();LoadTestModule[_0x406a22(0x21e)](this['browserstackConfig'])&&LoadTestModule[_0x406a22(0x227)](this['browserstackConfig']||{}),helper[_0x406a22(0x27e)](process[_0x406a22(0x29c)]['BROWSERSTACK_TURBOSCALE'])||!(CLI_SUPPORTED_FRAMEWORKS['includes'](_0x4f7ca1[_0x406a22(0x247)]['toLowerCase']())&&CLI_SUPPORTED_FRAMEWORKS['includes'](_0x303b77[_0x406a22(0x247)][_0x406a22(0x274)]()))?process[_0x406a22(0x29c)]['BROWSERSTACK_CLI_ENABLED']=![]:process[_0x406a22(0x29c)][_0x406a22(0x204)]=!![];}async[a67_0xfc18da(0x2a1)](){const _0x164534=a67_0xfc18da,_0x1e0032={};_0x1e0032[_0x164534(0x273)]=_0x164534(0x2ce),_0x1e0032[_0x164534(0x217)]='CLIUtils.setupCliPath\x20returned\x20null';const _0x2ced25=_0x1e0032;if(!this['SDK_CLI_BIN_PATH'])try{this[_0x164534(0x288)][_0x164534(0x243)](_0x2ced25[_0x164534(0x273)]),this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x164534(0x2cf)](this['browserstackConfig']),!this[_0x164534(0x1e2)]?this[_0x164534(0x288)][_0x164534(0x282)](_0x2ced25[_0x164534(0x217)]):this[_0x164534(0x288)][_0x164534(0x243)](_0x164534(0x1c6)+this['SDK_CLI_BIN_PATH']);}catch(_0x312ce6){this[_0x164534(0x288)][_0x164534(0x282)](_0x164534(0x1f1)+_0x312ce6[_0x164534(0x283)]),this[_0x164534(0x1e2)]=null;}return this[_0x164534(0x1e2)];}['isCliEnabled'](){const _0x586be1=a67_0xfc18da;return helper[_0x586be1(0x27e)](process[_0x586be1(0x29c)]['BROWSERSTACK_CLI_ENABLED']);}[a67_0xfc18da(0x2b7)](){const _0x122191=a67_0xfc18da;return this[_0x122191(0x278)];}[a67_0xfc18da(0x25c)](_0x1b4f45){const _0xeff427=a67_0xfc18da,_0xf4ab14={};_0xf4ab14['mUOnM']=function(_0x557879,_0x30cc1b){return _0x557879===_0x30cc1b;},_0xf4ab14['PuRWJ']=_0xeff427(0x293),_0xf4ab14[_0xeff427(0x271)]=function(_0x21f7ff,_0x3113b7){return _0x21f7ff>_0x3113b7;},_0xf4ab14[_0xeff427(0x1f9)]=_0xeff427(0x248),_0xf4ab14['rcMtT']=_0xeff427(0x1d3),_0xf4ab14[_0xeff427(0x1d7)]=_0xeff427(0x20c),_0xf4ab14[_0xeff427(0x2ad)]='setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error';const _0x243018=_0xf4ab14;try{const _0x1cf505=_0x1b4f45[_0xeff427(0x2b7)]?_0x1b4f45['getConfig']():'';if(!_0x1cf505||_0x243018[_0xeff427(0x1d5)](_0x1cf505[_0xeff427(0x206)](),'')){this['logger'][_0xeff427(0x243)](_0x243018[_0xeff427(0x22b)]);this[_0xeff427(0x28b)]&&_0x243018['SYNBh'](Object[_0xeff427(0x252)](this[_0xeff427(0x28b)])[_0xeff427(0x220)],0x0)?(this[_0xeff427(0x288)][_0xeff427(0x243)](_0x243018[_0xeff427(0x1f9)]),this['config']={'server':this['browserstackConfig'][_0xeff427(0x1f0)],'hubUrl':this[_0xeff427(0x28b)][_0xeff427(0x2ab)],'accessibility':this[_0xeff427(0x28b)][_0xeff427(0x1d2)]||![]}):(this[_0xeff427(0x288)][_0xeff427(0x243)](_0x243018['rcMtT']),this[_0xeff427(0x278)]={});return;}this[_0xeff427(0x278)]=JSON[_0xeff427(0x212)](_0x1cf505),this[_0xeff427(0x288)][_0xeff427(0x1df)](_0x243018[_0xeff427(0x1d7)]);}catch(_0x178589){this[_0xeff427(0x288)][_0xeff427(0x282)](_0xeff427(0x228)+util['format'](_0x178589)),this[_0xeff427(0x28b)]&&_0x243018['SYNBh'](Object[_0xeff427(0x252)](this[_0xeff427(0x28b)])[_0xeff427(0x220)],0x0)?(this[_0xeff427(0x288)][_0xeff427(0x243)](_0x243018[_0xeff427(0x2ad)]),this['config']={'server':this[_0xeff427(0x28b)][_0xeff427(0x1f0)],'hubUrl':this[_0xeff427(0x28b)]['hubUrl'],'accessibility':this['browserstackConfig'][_0xeff427(0x1d2)]||![]}):this[_0xeff427(0x278)]={};}}[a67_0xfc18da(0x240)](){const _0x5c61f4=a67_0xfc18da,_0x192526={};_0x192526[_0x5c61f4(0x284)]=_0x5c61f4(0x26b),_0x192526[_0x5c61f4(0x1fa)]='syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync',_0x192526[_0x5c61f4(0x1b4)]=_0x5c61f4(0x230);const _0x117a00=_0x192526;try{if(!this['browserstackConfig']){this[_0x5c61f4(0x288)][_0x5c61f4(0x243)](_0x117a00['SgxUf']);return;}const _0x166097=this[_0x5c61f4(0x2b7)]();if(!_0x166097){this[_0x5c61f4(0x288)]['debug'](_0x117a00[_0x5c61f4(0x1fa)]);return;}!helper[_0x5c61f4(0x1b5)](_0x166097['accessibility'])&&(this[_0x5c61f4(0x28b)][_0x5c61f4(0x1d2)]=_0x166097[_0x5c61f4(0x1d2)],this[_0x5c61f4(0x288)]['debug']('syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20'+_0x166097[_0x5c61f4(0x1d2)])),!helper[_0x5c61f4(0x1b5)](_0x166097['accessibilityOptions'])&&(this['browserstackConfig']['accessibilityOptions']=_0x166097[_0x5c61f4(0x286)],this['logger']['debug'](_0x117a00[_0x5c61f4(0x1b4)]));}catch(_0x488f3b){this['logger']['error'](_0x5c61f4(0x208)+util[_0x5c61f4(0x25f)](_0x488f3b));}}['setCliArgs'](_0x12723b){const _0x58d65a=a67_0xfc18da;try{this[_0x58d65a(0x1e4)]=_0x12723b[_0x58d65a(0x1c9)]()[_0x58d65a(0x2bf)](','),this[_0x58d65a(0x288)]['info'](_0x58d65a(0x1ff)+JSON['stringify'](this[_0x58d65a(0x1e4)]));}catch(_0x4e2dfc){this[_0x58d65a(0x288)]['error'](_0x58d65a(0x1eb)+util[_0x58d65a(0x25f)](_0x4e2dfc));}}[a67_0xfc18da(0x1c9)](){const _0x2a6579=a67_0xfc18da;return this[_0x2a6579(0x1e4)];}[a67_0xfc18da(0x1bb)](){const _0x322350=a67_0xfc18da,_0x24adbe={};_0x24adbe[_0x322350(0x2d0)]=function(_0x11298a,_0x3754bd){return _0x11298a===_0x3754bd;};const _0x3698bf=_0x24adbe,_0x148bd1=CLIUtils[_0x322350(0x213)]();if(_0x3698bf[_0x322350(0x2d0)](_0x148bd1[_0x322350(0x247)][_0x322350(0x274)](),FRAMEWORKS[_0x322350(0x2cc)][_0x322350(0x274)]()))this[_0x322350(0x1d8)]=new PlaywrightTestFramework([_0x148bd1['name']],_0x148bd1[_0x322350(0x202)]);else{if(_0x3698bf[_0x322350(0x2d0)](_0x148bd1[_0x322350(0x247)][_0x322350(0x274)](),FRAMEWORKS[_0x322350(0x29b)][_0x322350(0x274)]()))this[_0x322350(0x1d8)]=new CucumberTestFramework([_0x148bd1[_0x322350(0x247)]],_0x148bd1[_0x322350(0x202)]);else _0x3698bf[_0x322350(0x2d0)](_0x148bd1[_0x322350(0x247)][_0x322350(0x274)](),FRAMEWORKS[_0x322350(0x27f)][_0x322350(0x274)]())&&(this[_0x322350(0x1d8)]=new JestTestFramework([_0x148bd1['name']],_0x148bd1[_0x322350(0x202)]));}}[a67_0xfc18da(0x292)](){const _0x59c185=a67_0xfc18da,_0x12227c={};_0x12227c[_0x59c185(0x245)]=function(_0x470cd5,_0x342d32){return _0x470cd5===_0x342d32;};const _0x367429=_0x12227c,_0x7d5898=CLIUtils[_0x59c185(0x2c0)]();if(_0x367429[_0x59c185(0x245)](_0x7d5898[_0x59c185(0x247)]['toLowerCase'](),FRAMEWORKS[_0x59c185(0x2cc)][_0x59c185(0x274)]()))this[_0x59c185(0x2bd)]=new PlaywrightAutomationFramework(_0x7d5898[_0x59c185(0x247)],_0x7d5898[_0x59c185(0x202)]);else _0x367429[_0x59c185(0x245)](_0x7d5898[_0x59c185(0x247)][_0x59c185(0x274)](),FRAMEWORKS[_0x59c185(0x1ce)][_0x59c185(0x274)]())&&(this['automationFramework']=new PuppeteerAutomationFramework(_0x7d5898[_0x59c185(0x247)],_0x7d5898[_0x59c185(0x202)]));}[a67_0xfc18da(0x263)](){const _0x2d4e6b=a67_0xfc18da;return this[_0x2d4e6b(0x1d8)];}[a67_0xfc18da(0x2c6)](){return this['automationFramework'];}[a67_0xfc18da(0x25a)](){const _0x59e43e=a67_0xfc18da;return this[_0x59e43e(0x25e)];}[a67_0xfc18da(0x1f2)](){const _0x4c6620=a67_0xfc18da;return this[_0x4c6620(0x2b1)];}}module[a67_0xfc18da(0x1c2)]=BrowserstackCLI;function a67_0xfe47(){const _0x414053=['PuRWJ','Error\x20reading\x20accessibility\x20success\x20value:\x20','code','getBrowserstackConfig','./modules/puppeteerDriverModule.js','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','./TestInfo.js','Hjomr','LlIlI','Accessibility\x20initialization\x20failed\x20with\x20','setCliArgs','./framework/constants/testFrameworkConstants.js','removeAllListeners','SDK_CLI_ON_BOOTSTRAP','../../helpers/logger.js','30289831ERJEik','CLI\x20process\x20exited\x20with\x20code\x20','bsfXz','LIEXf','./grpcClient.js','stop:\x20shutting\x20down\x20CLI','syncAccessibilityConfig','Ibdrn','child_process','debug','app','qTWsG','sdk','name','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','shutdown','rdAhN','HashedID','\x20msg=','jpMDM','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','BuildLink','spawning\x20command=\x27','zQbNs','keys','./modules/playwrightDriverModule.js','stack','HGRqW','isBootstrapped','loadModules:\x20Loading\x20modules','CLI\x20runtime\x20error\x20after\x20ready:\x20code=','LFIop','getBrowserstackCliConfig','yCxcF','setConfig','isFalse','browserstackCliConfig','format','loadCliParams','0|7|6|2|1|4|5|3','vvgMr','getTestFramework','kthUy','SIGKILL','binSessionId','BrowserstackCLI','bootstrap','lDVOM','fskrQ','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','./framework/playwrightTestFramework.js','loadModules','stdout','stop:\x20channel\x20closed','getHashedId','SYNBh','BROWSERSTACK_CLI_BIN_SESSION_ID','gldGr','toLowerCase','Disabling\x20CLI.','getTestDetails','CLI\x20stderr:\x20','config','\x20hashed_id=','eMHyO','spawn\x20','connectBinSession','\x20on\x20attempt\x20','isTrue','JEST','IzhDf','exitCode','error','message','SgxUf','errorTraceId','accessibilityOptions','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','logger','BROWSERSTACK_CLI_ENV','IEcSv','browserstackConfig','getTesthub','pid','Unconfiguring\x20modules','./framework/jestTestFramework.js','Error:\x20[','zLDVF','setupAutomationFramework','setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response','KvTTW','startMain:\x20main-process\x20started','configureModules','util','FKbxA','bootstrap:\x20failed\x20to\x20bootstrap=','./uploadAttachmentsManager.js','CUCUMBER','env','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','stringify','stop','toString','getCliBinPath','O11yHashedID','wdmRX','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','./cliUtils.js','toObject','NpVhW','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','./modules/loadTestModule.js','isCLIEnabled','hubUrl','warn','MgIWa','KLLlj','getAccessibility','HwtVl','browserstackConfigPath','stop:\x20stopBinSession\x20build_link=','peyXx','configure','data','buildHashedId','getConfig','Error\x20Trace\x20ID:\x20','../utils/constants.js','startMain','uMSsB','_modulesLoaded','automationFramework','getBinSessionId','split','getAutomationFrameworkDetail','48SrjBVe','qdBfw','TestHubModule','MnMDf','testhubConfig','getAutomationFramework','azcOy','turboScale','../../helpers/classLogger.js','cdFps','Error\x20in\x20start\x20(code=','PLAYWRIGHT','qDjgW','Setting\x20up\x20CLI\x20binary\x20path...','setupCliPath','regWR','dvKXl','end','mzGUT','isUndefined','isChildConnected','startBinSession','GwItt','beDxF','getInstance','setupTestFramework','4956660BtshVC','hEUZE','imgam','../../helpers/helper.js','GDoVi','1949691MrTKoo','exports','SDK_CLI_START','QSzOD','startChild','CLI\x20binary\x20path\x20resolved\x20to:\x20','./modules/accessibilityModule.js','A11yEnabled','getCliArgs','2vYdRlG','stopBinSession','buildLogger','stop:\x20error\x20in\x20closing\x20channel:\x20%s','PUPPETEER','connect','slice','killed','accessibility','setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object','50729ryOCXK','mUOnM','XpGmW','qlszq','testFramework','taMOB','startMain:\x20Starting\x20main\x20process','TAQbx','isRunning','SDK_CONNECT_BIN_SESSION','wUwPq','info',',\x20retrying\x20in\x20','):\x20','SDK_CLI_BIN_PATH','56OFNhOG','cliArgs','getChannel','includes','getSuccess','isDevelopmentEnv','process','unConfigureModules','setCliArgs:\x20error=','QRUlN','isClosed','./framework/playwrightAutomationFramework.js','SDK_CLI_ON_STOP','server','Error\x20in\x20setupCliPath:\x20','getBrowserstackConfigPath','test','OsXDP','162160gxtflm','kill','1796612Wrebqs','hzYjT','pSvtz','IeGwZ','rnzSL','zdMmD','10SIfocG','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','setCliArgs:\x20cliArgs=','errorsList','resolve','version','modules','BROWSERSTACK_CLI_ENABLED','MODULE_NAME','trim','exit','syncAccessibilityConfig:\x20error=','\x20errors:','./framework/puppeteerAutomationFramework.js','getClient','loading\x20Modules.','connected','forEach','Accessibility\x20success=','stop:\x20CLI\x20process\x20exited','EWVin','parse','getTestFrameworkDetail','isMainConnected','JsRJt','ms...','NTKkJ','close','xdIsP','init','IIKQy','719774uVRhOF','start','isLTSSession','CLI\x20params\x20loaded:\x20','length','getCLIParamsForDevEnv','isArray','clearAttachments','cliParams','_spawnAndAwaitReady','setBrowserstackConfig','setLTSSessionId','setConfig:\x20error=','stderr','getAccessibilityModule'];a67_0xfe47=function(){return _0x414053;};return a67_0xfe47();}