browserstack-node-sdk 1.63.3 → 1.63.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a85_0x52c9c7=a85_0x57f3;(function(_0xa2468d,_0x4fec90){const _0x2b54c3=a85_0x57f3,_0x5bdefb=_0xa2468d();while(!![]){try{const _0x2edad7=-parseInt(_0x2b54c3(0x112))/0x1+-parseInt(_0x2b54c3(0xc0))/0x2+-parseInt(_0x2b54c3(0x17b))/0x3*(parseInt(_0x2b54c3(0x100))/0x4)+parseInt(_0x2b54c3(0x148))/0x5*(parseInt(_0x2b54c3(0xfc))/0x6)+-parseInt(_0x2b54c3(0x11a))/0x7+parseInt(_0x2b54c3(0xcf))/0x8*(parseInt(_0x2b54c3(0xeb))/0x9)+parseInt(_0x2b54c3(0xfb))/0xa;if(_0x2edad7===_0x4fec90)break;else _0x5bdefb['push'](_0x5bdefb['shift']());}catch(_0x1ecbcb){_0x5bdefb['push'](_0x5bdefb['shift']());}}}(a85_0x3f88,0x32ed5));const fs=require('fs'),os=require('os'),url=require(a85_0x52c9c7(0xa4)),path=require(a85_0x52c9c7(0x8c)),{exec}=require('child_process'),{https}=require(a85_0x52c9c7(0xbd)),yauzl=require('yauzl'),util=require(a85_0x52c9c7(0xca)),{getFrameworkVersion}=require(a85_0x52c9c7(0xff)),{threadId}=require(a85_0x52c9c7(0x139)),PerformanceTester=require(a85_0x52c9c7(0xf3)),{EVENTS:PerformanceEvents}=require(a85_0x52c9c7(0xb7)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x52c9c7(0xe1)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x52c9c7(0xa2)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x52c9c7(0xed)),{createClassLogger}=require(a85_0x52c9c7(0xc4)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a85_0x52c9c7(0x176)),TestFrameworkState=require(a85_0x52c9c7(0xd3)),AutomationFrameworkState=require(a85_0x52c9c7(0x160)),TestFrameworkConstants=require(a85_0x52c9c7(0x13c)),logger=createClassLogger(a85_0x52c9c7(0x162)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a85_0x52c9c7(0x14a)]={};[a85_0x52c9c7(0xae)]={};static['isDevelopmentEnv'](){const _0x3774c2=a85_0x52c9c7,_0x15e56d={};_0x15e56d[_0x3774c2(0x135)]=function(_0xf8796d,_0x3b530e){return _0xf8796d===_0x3b530e;},_0x15e56d[_0x3774c2(0x10c)]=_0x3774c2(0xa6);const _0x5c131d=_0x15e56d;return _0x5c131d[_0x3774c2(0x135)](process['env'][_0x3774c2(0x109)],_0x5c131d[_0x3774c2(0x10c)]);}static['getCLIParamsForDevEnv'](){const _0x12edec=a85_0x52c9c7,_0x5d286d={};return _0x5d286d['id']=process[_0x12edec(0x16c)][_0x12edec(0x109)],_0x5d286d[_0x12edec(0x99)]=_0x12edec(0x15d)+process[_0x12edec(0x16c)][_0x12edec(0x109)]+'.sock',_0x5d286d;}static[a85_0x52c9c7(0x116)](){const _0x336fdd=a85_0x52c9c7,_0x432040={'HLjSv':function(_0x109306,_0x3b2b78){return _0x109306(_0x3b2b78);},'EUzhW':_0x336fdd(0x12d)};return _0x432040[_0x336fdd(0xc3)](require,_0x432040[_0x336fdd(0xd6)])[_0x336fdd(0x10f)];}static[a85_0x52c9c7(0x131)](){const _0x12d174=a85_0x52c9c7,_0x31e276={};_0x31e276[_0x12d174(0x165)]=_0x12d174(0x9a);const _0x1bccc9=_0x31e276;return _0x1bccc9[_0x12d174(0x165)];}static async[a85_0x52c9c7(0xb3)](_0x1787d5){const _0x231c13=a85_0x52c9c7,_0x579ff0={'FcSpV':_0x231c13(0x155),'sGrGO':function(_0x366025,_0x2ccff0){return _0x366025(_0x2ccff0);},'xbioK':_0x231c13(0xfa)};logger[_0x231c13(0xd0)](_0x579ff0['FcSpV']);const _0x186912=process['env'][_0x231c13(0xdf)];if(!_0x579ff0['sGrGO'](isNullOrEmpty,_0x186912))return logger[_0x231c13(0xd0)]('Development\x20Cli\x20Path:\x20'+_0x186912),_0x186912;try{const _0x2d483e=this['getCliDir']();if(_0x579ff0['sGrGO'](isNullOrEmpty,_0x2d483e))throw new Error(_0x579ff0[_0x231c13(0x133)]);const _0x27b050=this['getExistingCliPath'](_0x2d483e),_0x3cc880=await this['checkAndUpdateCli'](_0x27b050,_0x2d483e,_0x1787d5);return logger[_0x231c13(0xd0)](_0x231c13(0xde)+_0x3cc880),_0x3cc880;}catch(_0x1ba91c){logger[_0x231c13(0xd0)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x231c13(0x10e)](_0x1ba91c));}return null;}static async['checkAndUpdateCli'](_0x4bcd01,_0xf60803,_0x3f815c){const _0x3b9a59=a85_0x52c9c7,_0x2dadec={'zwotV':function(_0x3b6191){return _0x3b6191();},'gYLEX':function(_0x54e409,_0x17c22a){return _0x54e409(_0x17c22a);},'uWVca':function(_0x1bd40e,_0x55682e,_0xc4a59a){return _0x1bd40e(_0x55682e,_0xc4a59a);},'TvbKz':_0x3b9a59(0x14e),'BHnvL':'url','xaaqt':function(_0xa65e79,_0x28b7e0,_0x27e999){return _0xa65e79(_0x28b7e0,_0x27e999);}};PerformanceTester[_0x3b9a59(0x108)](PerformanceEvents[_0x3b9a59(0x11f)]);try{logger[_0x3b9a59(0xc9)](_0x3b9a59(0x121)+_0x4bcd01);const _0x1cd8bf=_0x2dadec[_0x3b9a59(0xa3)](getHostInfo),_0x48f6e2={'sdk_version':CLIUtils[_0x3b9a59(0x116)](),'os':_0x1cd8bf[_0x3b9a59(0x120)],'os_arch':_0x1cd8bf[_0x3b9a59(0x13f)],'cli_version':'0','sdk_language':this[_0x3b9a59(0x131)]()};!_0x2dadec[_0x3b9a59(0x8d)](isNullOrEmpty,_0x4bcd01)&&(_0x48f6e2[_0x3b9a59(0x110)]=await this[_0x3b9a59(0xbf)](_0x4bcd01+_0x3b9a59(0x123)));const _0xee13f=await this[_0x3b9a59(0x178)](_0x48f6e2,_0x3f815c);process[_0x3b9a59(0x16c)][_0x3b9a59(0xe3)]&&(logger['info'](_0x3b9a59(0x8e)+process[_0x3b9a59(0x16c)][_0x3b9a59(0xe3)]),_0xee13f[_0x3b9a59(0x14e)]['url']=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x2dadec['uWVca'](nestedKeyValue,_0xee13f,[_0x2dadec[_0x3b9a59(0x93)],_0x2dadec[_0x3b9a59(0x107)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x48f6e2[_0x3b9a59(0x110)]);if(!_0x2dadec[_0x3b9a59(0x8d)](isNullOrEmpty,_0x4bcd01)&&this[_0x3b9a59(0x157)](_0x4bcd01))return logger[_0x3b9a59(0x8a)](_0x3b9a59(0x9b)+_0x4bcd01),_0x4bcd01;return await this['downloadLatestBinary'](_0x2dadec['xaaqt'](nestedKeyValue,_0xee13f,[_0x2dadec['TvbKz'],_0x2dadec[_0x3b9a59(0x107)]]),_0xf60803);}return _0x4bcd01;}finally{PerformanceTester['end'](PerformanceEvents[_0x3b9a59(0x11f)]);}}static[a85_0x52c9c7(0x11c)](){const _0xcabb28=a85_0x52c9c7,_0x2f07d4={'GwPml':function(_0x209adc,_0x50362e){return _0x209adc(_0x50362e);},'rXoVQ':_0xcabb28(0xfa),'QUqRe':_0xcabb28(0x156),'SIvsd':function(_0x6299b1,_0x5234a3){return _0x6299b1(_0x5234a3);}},_0x342967=this[_0xcabb28(0xf8)]();try{if(_0x2f07d4[_0xcabb28(0xd9)](isNullOrEmpty,_0x342967))throw new Error(_0x2f07d4[_0xcabb28(0x15a)]);const _0xfd12bd=path[_0xcabb28(0xf0)](_0x342967,_0x2f07d4[_0xcabb28(0xd5)]);return!fs[_0xcabb28(0x171)](_0xfd12bd)&&_0x2f07d4[_0xcabb28(0x125)](createDir,_0xfd12bd),_0xfd12bd;}catch(_0x3c4112){logger[_0xcabb28(0xd0)](_0xcabb28(0x144)+util[_0xcabb28(0x10e)](_0x3c4112));}}static[a85_0x52c9c7(0xf8)](){const _0x16a5f3=a85_0x52c9c7,_0x29911a={'rvBJM':_0x16a5f3(0x94),'ZeRLG':function(_0x63d5e5,_0xc97d44){return _0x63d5e5(_0xc97d44);},'DiAgh':function(_0x3ca1c,_0x311b25){return _0x3ca1c(_0x311b25);},'shtmu':function(_0xf53a78,_0x41b18b){return _0xf53a78(_0x41b18b);},'jcALn':function(_0x235db4,_0x36c38b){return _0x235db4(_0x36c38b);}},_0x1007fc=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os['homedir'](),_0x29911a[_0x16a5f3(0x92)]),path[_0x16a5f3(0xf0)](os[_0x16a5f3(0x114)](),_0x29911a[_0x16a5f3(0x92)])];for(const _0xa678ae of _0x1007fc){if(_0x29911a['ZeRLG'](isNullOrEmpty,_0xa678ae))continue;try{if(fs[_0x16a5f3(0x171)](_0xa678ae)){logger[_0x16a5f3(0xd0)](_0x16a5f3(0xb0)+_0xa678ae+_0x16a5f3(0xb5));if(!_0x29911a['ZeRLG'](isModifiable,_0xa678ae)){logger[_0x16a5f3(0xd0)](_0x16a5f3(0x169)+_0xa678ae);const _0x391132=_0x29911a['ZeRLG'](setReadWriteExecuteAccess,_0xa678ae);if(!_0x29911a[_0x16a5f3(0xfe)](isTrue,_0x391132)){logger[_0x16a5f3(0x8a)](_0x16a5f3(0x16e)+_0xa678ae);continue;}}}else{logger['debug'](_0x16a5f3(0x153)+_0xa678ae),_0x29911a[_0x16a5f3(0x90)](createDir,_0xa678ae),logger[_0x16a5f3(0xd0)](_0x16a5f3(0x169)+_0xa678ae);const _0x20a101=_0x29911a[_0x16a5f3(0xbc)](setReadWriteExecuteAccess,_0xa678ae);!_0x29911a[_0x16a5f3(0xba)](isTrue,_0x20a101)&&logger[_0x16a5f3(0x8a)](_0x16a5f3(0x16e)+_0xa678ae);}return _0xa678ae;}catch(_0x1bb3ad){logger[_0x16a5f3(0x141)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x16a5f3(0x10e)](_0x1bb3ad));}}return null;}static['getExistingCliPath'](_0x17c91a){const _0x18f320=a85_0x52c9c7,_0x2e9537={};_0x2e9537[_0x18f320(0x173)]=function(_0x3c326e,_0x4315d5){return _0x3c326e>_0x4315d5;},_0x2e9537[_0x18f320(0x111)]=function(_0x572fab,_0xb80e33){return _0x572fab>_0xb80e33;};const _0x4d4b5d=_0x2e9537;try{if(!fs[_0x18f320(0x171)](_0x17c91a)||!fs[_0x18f320(0xe5)](_0x17c91a)[_0x18f320(0x104)]())return'';const _0x245952=fs[_0x18f320(0x177)](_0x17c91a)[_0x18f320(0x14f)](_0x3673d4=>path[_0x18f320(0xf0)](_0x17c91a,_0x3673d4))[_0x18f320(0xb2)](_0x2ee23a=>fs[_0x18f320(0xe5)](_0x2ee23a)[_0x18f320(0xf6)]()&&path[_0x18f320(0x127)](_0x2ee23a)[_0x18f320(0x138)](_0x18f320(0x12e)));if(_0x4d4b5d[_0x18f320(0x111)](_0x245952[_0x18f320(0x105)],0x0)){const _0xe088ed=_0x245952[_0x18f320(0x14f)](_0x289be4=>({'filePath':_0x289be4,'mtime':fs['statSync'](_0x289be4)[_0x18f320(0x159)]}))[_0x18f320(0xaa)]((_0x158369,_0x23eeef)=>{const _0x5b3b7e=_0x18f320;if(!_0x158369||!_0x158369['mtime'])return _0x23eeef;if(_0x4d4b5d[_0x5b3b7e(0x173)](_0x23eeef[_0x5b3b7e(0x159)],_0x158369[_0x5b3b7e(0x159)]))return _0x23eeef;return _0x158369;},{});return _0xe088ed?_0xe088ed[_0x18f320(0x14d)]:'';}return'';}catch(_0x272183){return logger[_0x18f320(0x141)](_0x18f320(0x17a)+util[_0x18f320(0x10e)](_0x272183)),'';}}static [a85_0x52c9c7(0x178)]=async(_0x45cf88,_0xd9491f)=>{const _0x4e3983=a85_0x52c9c7,_0x1c412f={'Qzybf':function(_0x9ca57d,_0x1ac0c0,_0xa9091d,_0x5e52f7,_0x4f9f62){return _0x9ca57d(_0x1ac0c0,_0xa9091d,_0x5e52f7,_0x4f9f62);},'RqVgk':_0x4e3983(0xf1)},_0xcd621b={};_0xcd621b['qs']=_0x45cf88,_0xcd621b[_0x4e3983(0x9e)]=!![];const _0x5fb5af=await _0x1c412f['Qzybf'](nodeRequest,_0x1c412f[_0x4e3983(0xef)],UPDATED_CLI_ENDPOINT,_0xcd621b,_0xd9491f);return logger[_0x4e3983(0xd0)](_0x4e3983(0xd2)+JSON[_0x4e3983(0xb8)](_0x5fb5af)),_0x5fb5af;};static[a85_0x52c9c7(0x157)](_0x25785d){const _0x52430a=a85_0x52c9c7;try{const _0x240a7c=fs[_0x52430a(0x17e)](_0x25785d,'r+');return fs['closeSync'](_0x240a7c),![];}catch(_0x141fef){if(BINARY_BUSY_ERROR_CODES[_0x52430a(0x132)](_0x141fef[_0x52430a(0x175)]))return logger['debug'](_0x52430a(0x9f)+_0x25785d),!![];return logger[_0x52430a(0xd0)](_0x52430a(0xe0)+_0x141fef[_0x52430a(0x16d)]),![];}}static['runShellCommand'](_0x122831,_0x4c41b8=''){const _0x4f39b1=a85_0x52c9c7,_0x4e1019={'CHEZO':'version','oDNBF':function(_0x4a91b5,_0x5a62e8){return _0x4a91b5(_0x5a62e8);},'pUKVU':_0x4f39b1(0x17d),'BMdSw':function(_0x5a3ad6,_0xd315a9,_0x14bc66,_0x52b32c){return _0x5a3ad6(_0xd315a9,_0x14bc66,_0x52b32c);},'nXqtN':_0x4f39b1(0x141)};return new Promise((_0x598b41,_0x1fb83f)=>{const _0x3cf30e=_0x4f39b1,_0x25ae5e={'iqkiF':_0x4e1019[_0x3cf30e(0x13a)],'qjOXU':function(_0xd7a6bb,_0x1b86cf){return _0x4e1019['oDNBF'](_0xd7a6bb,_0x1b86cf);},'CNDnB':_0x4e1019[_0x3cf30e(0x10d)],'wmRrV':function(_0x501197,_0x1a9594){const _0x33174b=_0x3cf30e;return _0x4e1019[_0x33174b(0xdb)](_0x501197,_0x1a9594);}},_0x42da51={};_0x42da51[_0x3cf30e(0xf9)]=_0x4c41b8,_0x42da51[_0x3cf30e(0xcc)]=0x1388;const _0x15435c=_0x4e1019['BMdSw'](exec,_0x122831,_0x42da51,(_0x2c4b3c,_0x44fba5,_0x5222cb)=>{const _0x571534=_0x3cf30e;if(_0x2c4b3c){if(_0x122831['includes'](_0x25ae5e['iqkiF'])&&(_0x44fba5[_0x571534(0x17c)]()||_0x5222cb[_0x571534(0x17c)]())){const _0x155142=_0x44fba5[_0x571534(0x17c)]()||_0x5222cb[_0x571534(0x17c)]();logger[_0x571534(0xd0)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x155142+'\x22'),_0x25ae5e['qjOXU'](_0x598b41,_0x155142);}else _0x25ae5e[_0x571534(0x174)](_0x598b41,_0x5222cb['trim']()||_0x25ae5e[_0x571534(0x10a)]);}else logger[_0x571534(0xd0)]('Resolving\x20with\x20stdout:\x20\x22'+_0x44fba5['trim']()+'\x22'),_0x25ae5e[_0x571534(0x16a)](_0x598b41,_0x44fba5[_0x571534(0x17c)]());});_0x15435c['on'](_0x4e1019[_0x3cf30e(0x13b)],()=>{const _0x3b71a2=_0x3cf30e;_0x25ae5e['wmRrV'](_0x598b41,_0x25ae5e[_0x3b71a2(0x10a)]);});});}static [a85_0x52c9c7(0x128)]=async(_0x319588,_0x1a6e52)=>{const _0x4dac61=a85_0x52c9c7,_0x2b0eb4={'OhgEx':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','kEOsl':function(_0x23a953,_0x451c40){return _0x23a953(_0x451c40);},'FkOeb':_0x4dac61(0x13d),'yuSgv':function(_0x14a871,_0x228b84){return _0x14a871(_0x228b84);},'OUjOI':function(_0x29b918,_0x351f9d){return _0x29b918>=_0x351f9d;},'cIOOc':_0x4dac61(0x149),'xUFOK':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','loRpK':_0x4dac61(0x141),'EXOot':_0x4dac61(0x102)};PerformanceTester['start'](PerformanceEvents[_0x4dac61(0x119)]),logger[_0x4dac61(0xd0)](_0x4dac61(0x15c)+_0x319588);try{const _0x398309=url[_0x4dac61(0xc5)](_0x319588),_0x172fd4=path['join'](_0x1a6e52,'downloaded_file_'+process[_0x4dac61(0x12f)]+_0x4dac61(0x158)),_0x2d8c9f=fs[_0x4dac61(0xd8)](_0x172fd4);return new Promise((_0x3da708,_0xc42f98)=>{const _0x15e619=_0x4dac61,_0x293c5b={'iZzaT':_0x2b0eb4[_0x15e619(0xce)],'HanfI':function(_0x4c017c,_0x55cef7){const _0x566be3=_0x15e619;return _0x2b0eb4[_0x566be3(0x147)](_0x4c017c,_0x55cef7);},'AhVsG':_0x2b0eb4[_0x15e619(0x180)],'HeiZO':function(_0x2c4963,_0x47eb77){const _0x4345d5=_0x15e619;return _0x2b0eb4[_0x4345d5(0xee)](_0x2c4963,_0x47eb77);},'BgzMC':function(_0x50f812,_0x524ca0){const _0x5bddc2=_0x15e619;return _0x2b0eb4[_0x5bddc2(0xd1)](_0x50f812,_0x524ca0);},'cwqrR':_0x2b0eb4[_0x15e619(0x179)],'KCwon':_0x2b0eb4['xUFOK'],'BHFRz':_0x2b0eb4[_0x15e619(0x9c)]};https['get'](_0x398309,function(_0x485660){const _0x3e73fe=_0x15e619,_0x121523=null;if(_0x485660['statusCode']&&_0x293c5b[_0x3e73fe(0x143)](_0x485660['statusCode'],0x190)){const _0x201db0=new Error(_0x3e73fe(0x89)+_0x485660[_0x3e73fe(0x134)]+_0x3e73fe(0x14b)+_0x319588);_0x201db0[_0x3e73fe(0x175)]=_0x293c5b[_0x3e73fe(0xe8)],_0x201db0[_0x3e73fe(0x134)]=_0x485660[_0x3e73fe(0x134)],logger[_0x3e73fe(0x141)](util[_0x3e73fe(0x10e)](_0x293c5b[_0x3e73fe(0x11e)],_0x485660[_0x3e73fe(0x134)])),PerformanceTester[_0x3e73fe(0x8b)](PerformanceEvents[_0x3e73fe(0x119)],![],'HTTP\x20'+_0x485660[_0x3e73fe(0x134)]),_0x485660[_0x3e73fe(0x17f)](),_0x2d8c9f[_0x3e73fe(0xa1)](),fs[_0x3e73fe(0x137)](_0x172fd4,()=>{}),_0x293c5b[_0x3e73fe(0xd4)](_0xc42f98,_0x201db0);return;}_0x485660['pipe'](_0x2d8c9f),_0x485660['on'](_0x293c5b[_0x3e73fe(0x96)],function(_0x4097ca){const _0x591df6=_0x3e73fe;logger[_0x591df6(0x141)](util[_0x591df6(0x10e)](_0x293c5b[_0x591df6(0x11b)],_0x4097ca)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x4097ca)),_0x293c5b[_0x591df6(0x145)](_0xc42f98,_0x4097ca);}),_0x2d8c9f['on'](_0x293c5b[_0x3e73fe(0x96)],function(_0x29467b){const _0x4320a1=_0x3e73fe;logger[_0x4320a1(0x141)](util[_0x4320a1(0x10e)](_0x293c5b[_0x4320a1(0xc8)],_0x29467b)),PerformanceTester[_0x4320a1(0x8b)](PerformanceEvents[_0x4320a1(0x119)],![],util[_0x4320a1(0x10e)](_0x29467b)),_0x293c5b[_0x4320a1(0x145)](_0xc42f98,_0x29467b);}),CLIUtils[_0x3e73fe(0xea)](_0x2d8c9f,_0x121523,_0x172fd4,_0x1a6e52,_0x116576=>{PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x293c5b['HeiZO'](_0x3da708,_0x116576);},_0x50df25=>{const _0x1ae128=_0x3e73fe;PerformanceTester['end'](PerformanceEvents[_0x1ae128(0x119)],![],util[_0x1ae128(0x10e)](_0x50df25)),_0x293c5b['HanfI'](_0xc42f98,_0x50df25);});})['on'](_0x2b0eb4['loRpK'],function(_0x5871d7){const _0x304521=_0x15e619;logger[_0x304521(0x141)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x304521(0x10e)](_0x5871d7)),PerformanceTester[_0x304521(0x8b)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x304521(0x10e)](_0x5871d7)),_0x293c5b[_0x304521(0x145)](_0xc42f98,_0x5871d7);});});}catch(_0x14e325){PerformanceTester[_0x4dac61(0x8b)](PerformanceEvents[_0x4dac61(0x119)],![],util[_0x4dac61(0x10e)](_0x14e325)),logger[_0x4dac61(0x141)](util[_0x4dac61(0x10e)](_0x2b0eb4[_0x4dac61(0xc1)],_0x14e325));throw _0x14e325;}};static[a85_0x52c9c7(0xea)](_0x82ce61,_0x4f29fd,_0x299616,_0x46011f,_0x20c21b,_0x86dcd2){const _0x126008=a85_0x52c9c7,_0xd302e1={'EDoUR':function(_0x34251b,_0x5690e3){return _0x34251b(_0x5690e3);},'ktsPi':function(_0x548599,_0x3db6b8){return _0x548599(_0x3db6b8);},'sPLPF':_0x126008(0xec),'dGiAs':_0x126008(0x8b),'RLdTq':function(_0x154342,_0x49f52d){return _0x154342!==_0x49f52d;},'rMHHC':function(_0x3644a9,_0x7fc90){return _0x3644a9(_0x7fc90);},'yTXxY':'error','liygy':_0x126008(0xb4),'DuoYp':_0x126008(0xc6),'austq':_0x126008(0xd7)};_0x82ce61['on'](_0xd302e1[_0x126008(0x98)],function(){const _0x2b8b43=_0x126008,_0x3a2fe2={'FVsxw':function(_0x4080a3,_0xda6548){const _0x416057=a85_0x57f3;return _0xd302e1[_0x416057(0x12b)](_0x4080a3,_0xda6548);},'vsvWy':function(_0x23e520,_0x4aa415){const _0x4782e8=a85_0x57f3;return _0xd302e1[_0x4782e8(0x88)](_0x23e520,_0x4aa415);},'UmcaB':_0xd302e1['sPLPF'],'awjsr':_0xd302e1[_0x2b8b43(0x136)],'qntMZ':function(_0xa99deb,_0x36ef7f){return _0xd302e1['RLdTq'](_0xa99deb,_0x36ef7f);},'WctOH':function(_0x1839c6,_0x5b9e63){const _0x4c26f5=_0x2b8b43;return _0xd302e1[_0x4c26f5(0xb9)](_0x1839c6,_0x5b9e63);},'BGXJH':_0xd302e1[_0x2b8b43(0x16f)],'heaST':_0xd302e1['liygy'],'WbCue':function(_0x52d010,_0x426d91){const _0x1bfcf8=_0x2b8b43;return _0xd302e1[_0x1bfcf8(0xb9)](_0x52d010,_0x426d91);},'diHdu':_0xd302e1[_0x2b8b43(0x103)],'jVxrB':_0xd302e1[_0x2b8b43(0xe4)]},_0x4af2f5={};_0x4af2f5[_0x2b8b43(0x166)]=!![],yauzl[_0x2b8b43(0xe6)](_0x299616,_0x4af2f5,function(_0x51568c,_0x36a068){const _0x5e4b8e=_0x2b8b43,_0x11287d={'xoAiK':function(_0x1f1364,_0x34f019){return _0x3a2fe2['vsvWy'](_0x1f1364,_0x34f019);},'ULwYY':_0x3a2fe2[_0x5e4b8e(0x9d)],'xxlwo':_0x3a2fe2[_0x5e4b8e(0x172)],'QecKz':function(_0x5b43bb,_0x4d7b7e){const _0x4853a7=_0x5e4b8e;return _0x3a2fe2[_0x4853a7(0xa8)](_0x5b43bb,_0x4d7b7e);},'UxmJc':function(_0x5cc000,_0x168260){const _0x4b149a=_0x5e4b8e;return _0x3a2fe2[_0x4b149a(0xb6)](_0x5cc000,_0x168260);},'WFFOs':function(_0x5cb8e5,_0x503234){const _0x3c41fc=_0x5e4b8e;return _0x3a2fe2[_0x3c41fc(0x15e)](_0x5cb8e5,_0x503234);},'chkkd':_0x3a2fe2[_0x5e4b8e(0x97)],'eAqmi':_0x3a2fe2[_0x5e4b8e(0x163)],'FjSsR':function(_0xc584f5,_0x15a8ca){const _0x29b153=_0x5e4b8e;return _0x3a2fe2[_0x29b153(0xf2)](_0xc584f5,_0x15a8ca);},'gJczl':function(_0x2fc919,_0x104bb8){const _0x3a19b4=_0x5e4b8e;return _0x3a2fe2[_0x3a19b4(0x15e)](_0x2fc919,_0x104bb8);},'sakAN':_0x3a2fe2['diHdu']};if(_0x51568c){_0x3a2fe2[_0x5e4b8e(0xf2)](_0x86dcd2,_0x51568c);return;}_0x36a068[_0x5e4b8e(0xad)](),_0x36a068['on'](_0x3a2fe2[_0x5e4b8e(0x95)],_0x4458fb=>{const _0x5ec695=_0x5e4b8e,_0x41e373={'EXWyp':function(_0x937d59,_0x236df0){return _0x11287d['xoAiK'](_0x937d59,_0x236df0);},'Oggvt':function(_0xd5f64d,_0x432884){const _0x57f9db=a85_0x57f3;return _0x11287d[_0x57f9db(0xbb)](_0xd5f64d,_0x432884);},'QNTtn':_0x11287d[_0x5ec695(0x122)],'fMtYL':function(_0x40d0c5,_0x3df224){const _0x2ddf7e=_0x5ec695;return _0x11287d[_0x2ddf7e(0xbb)](_0x40d0c5,_0x3df224);},'aFidN':_0x11287d['xxlwo']};if(/\/$/[_0x5ec695(0x181)](_0x4458fb['fileName'])){_0x36a068[_0x5ec695(0xad)]();return;}!_0x4f29fd&&(_0x4f29fd=_0x4458fb[_0x5ec695(0x146)]);if(_0x11287d[_0x5ec695(0x13e)](_0x4458fb['fileName'],_0x4f29fd))_0x36a068[_0x5ec695(0xad)]();else{const _0x5445e9=_0x4458fb[_0x5ec695(0x146)],_0x18df05=path['join'](_0x46011f,_0x5445e9+_0x5ec695(0xac)+process['pid']);let _0x724925;try{_0x724925=fs[_0x5ec695(0xd8)](_0x18df05);}catch(_0x4da31a){if(BINARY_BUSY_ERROR_CODES[_0x5ec695(0x132)](_0x4da31a[_0x5ec695(0x175)])){const _0x5834f8=path[_0x5ec695(0xf0)](_0x46011f,_0x5445e9);if(fs['existsSync'](_0x5834f8)){logger['warn'](_0x5ec695(0x151)+_0x5445e9),fs['unlink'](_0x299616,_0x545e65=>{const _0x2c4370=_0x5ec695;_0x545e65&&logger[_0x2c4370(0x8a)](_0x2c4370(0x8f)+_0x299616);}),_0x11287d[_0x5ec695(0x150)](_0x20c21b,_0x5834f8);return;}logger['warn'](_0x5ec695(0xc2)+_0x5445e9);}_0x11287d[_0x5ec695(0x14c)](_0x86dcd2,_0x4da31a);return;}_0x724925['on'](_0x11287d[_0x5ec695(0x15b)],_0x23bd0b=>{const _0x7e8012=_0x5ec695;if(BINARY_BUSY_ERROR_CODES[_0x7e8012(0x132)](_0x23bd0b[_0x7e8012(0x175)])){const _0x2dc6e3=path[_0x7e8012(0xf0)](_0x46011f,_0x5445e9);_0x724925['close'](),fs[_0x7e8012(0x171)](_0x2dc6e3)?(logger[_0x7e8012(0x8a)](_0x7e8012(0x10b)+_0x23bd0b[_0x7e8012(0x16d)]),_0x36a068['close'](),fs[_0x7e8012(0x137)](_0x299616,_0x2d435d=>{const _0x36a70d=_0x7e8012;_0x2d435d&&logger[_0x36a70d(0x8a)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x299616);}),_0x41e373['EXWyp'](_0x20c21b,_0x2dc6e3)):(logger['warn'](_0x7e8012(0x161)+_0x23bd0b[_0x7e8012(0x16d)]),fs[_0x7e8012(0x137)](_0x18df05,()=>{}),_0x41e373[_0x7e8012(0x106)](_0x86dcd2,_0x23bd0b));}else fs[_0x7e8012(0x137)](_0x18df05,()=>{}),_0x41e373[_0x7e8012(0x106)](_0x86dcd2,_0x23bd0b);}),_0x36a068[_0x5ec695(0xdd)](_0x4458fb,function(_0x488d8a,_0x37ad89){const _0x31395f=_0x5ec695,_0x564743={};_0x564743[_0x31395f(0x11d)]=_0x41e373[_0x31395f(0xe7)];const _0x470750=_0x564743;if(_0x488d8a){fs[_0x31395f(0x137)](_0x18df05,()=>{}),_0x41e373['fMtYL'](_0x86dcd2,_0x488d8a);return;}_0x37ad89['on'](_0x41e373[_0x31395f(0x115)],function(){const _0x255d65=_0x31395f;_0x724925['end'](),_0x724925['on'](_0x470750[_0x255d65(0x11d)],function(){_0x36a068['readEntry']();});}),_0x37ad89[_0x31395f(0x12a)](_0x724925);});}}),_0x36a068['on'](_0x3a2fe2['BGXJH'],_0x49c33a=>{const _0x436807=_0x5e4b8e;_0x3a2fe2[_0x436807(0xb6)](_0x86dcd2,_0x49c33a);}),_0x36a068['once'](_0x3a2fe2[_0x5e4b8e(0x172)],()=>{const _0x1bbd48=_0x5e4b8e,_0x1adb1a={'eHrcz':function(_0x4771c8,_0x36e4f7){const _0x57ef97=a85_0x57f3;return _0x11287d[_0x57ef97(0x13e)](_0x4771c8,_0x36e4f7);},'TRdxS':_0x11287d[_0x1bbd48(0xe2)],'suRJr':function(_0x14c408,_0x40869c){const _0x1bf767=_0x1bbd48;return _0x11287d[_0x1bf767(0x170)](_0x14c408,_0x40869c);},'SwEWE':function(_0x15dcf5,_0x434e9b){const _0x2f5eaa=_0x1bbd48;return _0x11287d[_0x2f5eaa(0xcd)](_0x15dcf5,_0x434e9b);}};fs[_0x1bbd48(0x137)](_0x299616,_0x28a522=>{const _0x5e1e44=_0x1bbd48;_0x28a522&&logger[_0x5e1e44(0x8a)](_0x5e1e44(0x8f)+_0x299616);});const _0x4e2381=path['join'](_0x46011f,_0x4f29fd+_0x1bbd48(0xac)+process[_0x1bbd48(0x12f)]),_0x1e1ef5=path[_0x1bbd48(0xf0)](_0x46011f,_0x4f29fd);fs[_0x1bbd48(0x140)](_0x4e2381,_0x11287d[_0x1bbd48(0x142)],function(_0x5331e9){const _0x549874=_0x1bbd48,_0x279e5f={'Sefeh':function(_0x27379d,_0x55651b){return _0x1adb1a['eHrcz'](_0x27379d,_0x55651b);},'Pdula':_0x1adb1a[_0x549874(0xa9)],'hyHQX':function(_0x439ea6,_0x32e301){const _0x32727e=_0x549874;return _0x1adb1a[_0x32727e(0xf4)](_0x439ea6,_0x32e301);}};if(_0x5331e9){_0x36a068[_0x549874(0xec)](),fs[_0x549874(0x137)](_0x4e2381,()=>{}),_0x1adb1a[_0x549874(0xfd)](_0x86dcd2,_0x5331e9);return;}fs['rename'](_0x4e2381,_0x1e1ef5,function(_0x22ec20){const _0x5b02b9=_0x549874;if(_0x22ec20){if(_0x279e5f['Sefeh'](_0x22ec20[_0x5b02b9(0x175)],_0x279e5f[_0x5b02b9(0xab)])){_0x36a068['close'](),fs[_0x5b02b9(0x137)](_0x4e2381,()=>{}),_0x279e5f[_0x5b02b9(0x101)](_0x86dcd2,_0x22ec20);return;}logger[_0x5b02b9(0x8a)](_0x5b02b9(0xdc)+_0x22ec20[_0x5b02b9(0x16d)]);try{fs[_0x5b02b9(0xa0)](_0x4e2381,_0x1e1ef5);}catch(_0x340c32){_0x36a068[_0x5b02b9(0xec)](),fs['unlink'](_0x4e2381,()=>{}),_0x279e5f[_0x5b02b9(0x101)](_0x86dcd2,_0x340c32);return;}fs['unlink'](_0x4e2381,_0x148009=>{const _0xd2a3d1=_0x5b02b9;_0x148009&&logger[_0xd2a3d1(0x8a)](_0xd2a3d1(0x168)+_0x148009[_0xd2a3d1(0x16d)]);});}_0x36a068[_0x5b02b9(0xec)](),_0x279e5f[_0x5b02b9(0x101)](_0x20c21b,_0x1e1ef5);});});});});});}static[a85_0x52c9c7(0x113)](){const _0x3196ef=a85_0x52c9c7;if(process['env'][_0x3196ef(0xc7)])return JSON[_0x3196ef(0xc5)](process[_0x3196ef(0x16c)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x3196ef(0xae)];}static[a85_0x52c9c7(0x129)](){const _0x4e0905=a85_0x52c9c7;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x4e0905(0xc5)](process[_0x4e0905(0x16c)][_0x4e0905(0x164)]);return this[_0x4e0905(0x14a)];}static['setFrameworkDetail'](_0x447666,_0x2e7044){const _0x3db7b7=a85_0x52c9c7,_0x357098={'WEctY':'1|3|2|0|4','iicXD':function(_0x14d960,_0x1ad742){return _0x14d960||_0x1ad742;},'laApn':function(_0x4cdc9f,_0x4a4f1b){return _0x4cdc9f(_0x4a4f1b);},'YDNwS':function(_0x2799a8,_0x1ddb6f){return _0x2799a8(_0x1ddb6f);}},_0x1996e1=_0x357098[_0x3db7b7(0xe9)][_0x3db7b7(0xf5)]('|');let _0x47ee59=0x0;while(!![]){switch(_0x1996e1[_0x47ee59++]){case'0':process[_0x3db7b7(0x16c)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x3db7b7(0x14a)]);continue;case'1':_0x357098[_0x3db7b7(0x152)](!_0x447666,!_0x2e7044)&&logger[_0x3db7b7(0xd0)](_0x3db7b7(0x12c)+_0x447666+',\x20automationFramework='+_0x2e7044);continue;case'2':this[_0x3db7b7(0x14a)]={'name':_0x2e7044,'version':_0x357098[_0x3db7b7(0x126)](getFrameworkVersion,_0x2e7044)};continue;case'3':this[_0x3db7b7(0xae)]={'name':_0x447666,'version':{[_0x447666]:_0x357098[_0x3db7b7(0x15f)](getFrameworkVersion,_0x447666)}};continue;case'4':process[_0x3db7b7(0x16c)][_0x3db7b7(0xc7)]=JSON[_0x3db7b7(0xb8)](this[_0x3db7b7(0xae)]);continue;}break;}}static[a85_0x52c9c7(0xb1)](_0x249110,_0x4e610a){return _0x249110+':'+_0x4e610a;}static[a85_0x52c9c7(0x124)](){return process['pid']+':'+threadId;}static[a85_0x52c9c7(0xf7)](_0x4adf6c){const _0x429ebf=a85_0x52c9c7;if(_0x4adf6c[_0x429ebf(0xa7)]&&_0x4adf6c['testContextOptions']['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x5e785d){const _0x394a53=a85_0x52c9c7;if(_0x5e785d[_0x394a53(0xa7)]&&_0x5e785d[_0x394a53(0xa7)][_0x394a53(0x118)])return!![];return![];}static[a85_0x52c9c7(0xa5)](_0x5f09db){const _0x5cd42b=a85_0x52c9c7,_0x46c3c3=new RegExp(TestFrameworkConstants[_0x5cd42b(0xbe)]);return _0x46c3c3[_0x5cd42b(0x181)](_0x5f09db);}static['mergeObject'](_0x534a3f,_0x1e767c){const _0x17a4ad=a85_0x52c9c7,_0x1b668b={};_0x1b668b[_0x17a4ad(0x154)]=function(_0x329945,_0x1778a2){return _0x329945!==_0x1778a2;},_0x1b668b[_0x17a4ad(0x91)]=function(_0xbbf060,_0x1e356f){return _0xbbf060===_0x1e356f;},_0x1b668b['SeVmw']=_0x17a4ad(0x167);const _0x33e0d2=_0x1b668b;for(const [_0x7f40c8,_0x380007]of Object[_0x17a4ad(0x16b)](_0x1e767c)){if(_0x33e0d2[_0x17a4ad(0x154)](_0x380007,null)&&_0x33e0d2[_0x17a4ad(0x91)](typeof _0x380007,_0x33e0d2[_0x17a4ad(0xaf)])&&!Array[_0x17a4ad(0x130)](_0x380007))_0x534a3f[_0x7f40c8]=this[_0x17a4ad(0xda)](_0x534a3f[_0x7f40c8]||{},_0x380007);else Array[_0x17a4ad(0x130)](_0x380007)?_0x534a3f[_0x7f40c8]=(_0x534a3f[_0x7f40c8]||[])[_0x17a4ad(0xcb)](_0x380007):_0x534a3f[_0x7f40c8]=_0x380007;}return _0x534a3f;}}function a85_0x57f3(_0xbb12f5,_0x2759fb){const _0x3f888a=a85_0x3f88();return a85_0x57f3=function(_0x57f3b2,_0x40a872){_0x57f3b2=_0x57f3b2-0x88;let _0xbc9181=_0x3f888a[_0x57f3b2];return _0xbc9181;},a85_0x57f3(_0xbb12f5,_0x2759fb);}function a85_0x3f88(){const _0x3a0460=['shouldSkipSessionName','getWritableDir','cwd','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','1203580geakIc','12sUpisl','SwEWE','ZeRLG','../../helpers/test-observability/utils.js','164snMAkN','hyHQX','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','DuoYp','isDirectory','length','Oggvt','BHnvL','start','BROWSERSTACK_CLI_ENV','CNDnB','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','UvAjy','pUKVU','format','version','cli_version','kvVsV','87402ONvFMT','getTestFrameworkDetail','tmpdir','aFidN','getSdkVersion','exports','skipSessionStatus','SDK_CLI_DOWNLOAD','1495081xWmCRl','iZzaT','getCliDir','tgOSp','KCwon','SDK_CLI_CHECK_UPDATE','platform','Current\x20CLI\x20Path\x20Found:\x20','ULwYY','\x20version','getCurrentInstanceName','SIvsd','laApn','basename','downloadLatestBinary','getAutomationFrameworkDetail','pipe','EDoUR','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','../../../package.json','binary-','pid','isArray','getSdkLanguage','includes','xbioK','statusCode','GdkHw','dGiAs','unlink','startsWith','worker_threads','CHEZO','nXqtN','./framework/constants/testFrameworkConstants.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','QecKz','arch','chmod','error','sakAN','BgzMC','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','HanfI','fileName','kEOsl','1016935CyJXNW','DOWNLOAD_HTTP','automationFrameworkDetail','\x20from\x20','WFFOs','filePath','data','map','UxmJc','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','iicXD','Folder\x20does\x20not\x20exist:\x20','tkzTL','Configuring\x20Cli\x20path.','cli','isBinaryBusy','.zip','mtime','rXoVQ','chkkd','Downloading\x20SDK\x20binary\x20from:\x20','unix:/tmp/sdk-platform-','WctOH','YDNwS','./state/automationFrameworkState.js','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','CLIUtils','heaST','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','YiRIg','lazyEntries','object','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Setting\x20required\x20permissions\x20to\x20','wmRrV','entries','env','message','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','yTXxY','FjSsR','existsSync','awjsr','DnHud','qjOXU','code','./state/hookState.js','readdirSync','requestToUpdateCLI','cIOOc','Error\x20while\x20reading\x20CLI\x20path:\x20','20499xicDWg','trim','SHELL_EXECUTE_ERROR','openSync','resume','FkOeb','test','ktsPi','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','warn','end','path','gYLEX','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','DiAgh','UlRRL','rvBJM','TvbKz','.browserstack','jVxrB','BHFRz','BGXJH','sPLPF','listen','node','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','loRpK','UmcaB','preserveStatusCodeOnError','Binary\x20is\x20busy:\x20','copyFileSync','destroy','../../helpers/helper','zwotV','url','matchHookRegex','development','testContextOptions','qntMZ','TRdxS','reduce','Pdula','.tmp.','readEntry','testFrameworkDetail','SeVmw','Folder\x20','getHookRegistryKey','filter','setupCliPath','EXDEV','\x20already\x20exists','FVsxw','../../helpers/performance/constants','stringify','rMHHC','jcALn','xoAiK','shtmu','follow-redirects','HOOK_REGEX','runShellCommand','238044MKxgwK','EXOot','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','HLjSv','../../helpers/classLogger.js','parse','0755','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','AhVsG','info','util','concat','timeout','gJczl','OhgEx','1720HzLtPm','debug','OUjOI','response\x20','./state/testFrameworkState.js','HeiZO','QUqRe','EUzhW','entry','createWriteStream','GwPml','mergeObject','oDNBF','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','openReadStream','Resolved\x20binary\x20path:\x20','SDK_CLI_BIN_PATH','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','../../helpers/utilities','eAqmi','BROWSERSTACK_BINARY_URL','austq','statSync','open','QNTtn','cwqrR','WEctY','downloadFileStream','15975LEDhOf','close','../utils/constants','yuSgv','RqVgk','join','GET','WbCue','../../helpers/performance/performance-tester.js','suRJr','split','isFile'];a85_0x3f88=function(){return _0x3a0460;};return a85_0x3f88();}module[a85_0x52c9c7(0x117)]=CLIUtils;
1
+ const a85_0x42599c=a85_0x5657;function a85_0x5657(_0xa89e93,_0x418914){const _0x44ae16=a85_0x44ae();return a85_0x5657=function(_0x5657d4,_0x2884b2){_0x5657d4=_0x5657d4-0x1c1;let _0x80614f=_0x44ae16[_0x5657d4];return _0x80614f;},a85_0x5657(_0xa89e93,_0x418914);}(function(_0x15e0a7,_0x27a1e8){const _0x49ce37=a85_0x5657,_0x3f4283=_0x15e0a7();while(!![]){try{const _0x50d2ac=parseInt(_0x49ce37(0x211))/0x1*(-parseInt(_0x49ce37(0x24c))/0x2)+parseInt(_0x49ce37(0x28d))/0x3+-parseInt(_0x49ce37(0x238))/0x4+parseInt(_0x49ce37(0x225))/0x5*(parseInt(_0x49ce37(0x266))/0x6)+-parseInt(_0x49ce37(0x20e))/0x7*(-parseInt(_0x49ce37(0x1cd))/0x8)+parseInt(_0x49ce37(0x269))/0x9+-parseInt(_0x49ce37(0x268))/0xa*(parseInt(_0x49ce37(0x26c))/0xb);if(_0x50d2ac===_0x27a1e8)break;else _0x3f4283['push'](_0x3f4283['shift']());}catch(_0x332ce1){_0x3f4283['push'](_0x3f4283['shift']());}}}(a85_0x44ae,0x84613));const fs=require('fs'),os=require('os'),url=require(a85_0x42599c(0x2a4)),path=require(a85_0x42599c(0x28b)),{exec}=require(a85_0x42599c(0x29e)),{https}=require(a85_0x42599c(0x212)),yauzl=require(a85_0x42599c(0x23d)),util=require(a85_0x42599c(0x1c4)),{getFrameworkVersion}=require(a85_0x42599c(0x23a)),{threadId}=require(a85_0x42599c(0x262)),PerformanceTester=require(a85_0x42599c(0x283)),{EVENTS:PerformanceEvents}=require(a85_0x42599c(0x2bb)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x42599c(0x1e3)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x42599c(0x245)),{createClassLogger}=require(a85_0x42599c(0x1e1)),TestFrameworkInstance=require(a85_0x42599c(0x24e)),HookState=require(a85_0x42599c(0x207)),TestFrameworkState=require(a85_0x42599c(0x25f)),AutomationFrameworkState=require(a85_0x42599c(0x248)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a85_0x42599c(0x203));function a85_0x44ae(){const _0x519394=['HTTP\x20','close','DiUxz','tFQKu','../utils/constants','test','downloadFileStream','./state/automationFrameworkState.js','getSdkLanguage','IfRHs','skipSessionName','28hmkAcX','getSdkVersion','./instances/testFrameworkInstance.js','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','readEntry','openReadStream','RtOZF','end','info','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','gEPFi','Folder\x20does\x20not\x20exist:\x20','tFQSy','hjWRh','testFrameworkDetail','timeout','mzakp','BROWSERSTACK_BINARY_URL','node','./state/testFrameworkState.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','skipSessionStatus','worker_threads','BROWSERSTACK_CLI_ENV','development','existsSync','70164dcaZRB','SHELL_EXECUTE_ERROR','2964020rSygjH','2327661buVsjT','closeSync','reduce','22dDxPiZ','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','includes','getWritableDir','testContextOptions','downloadLatestBinary','preserveStatusCodeOnError','env','.tmp.','cLHKZ','kUViR','dkWsB','faqqa','dNMTb','gIQuw','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','mQoxl','pipe','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','setupCliPath','isDevelopmentEnv','PRDhb','../../helpers/performance/performance-tester.js','IqAHf','Folder\x20','bZLnQ','format','pid','isBinaryBusy','Development\x20Cli\x20Path:\x20','path','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','469710bXNyaD','.sock','jZZZg','tUHqB','version','AKXbv','snliD','binary-','start','SDK_CLI_BIN_PATH','KqNFE','exports','Downloading\x20SDK\x20binary\x20from:\x20','qMlYb','getCurrentInstanceName','getHookRegistryKey','LgKUe','child_process','lazyEntries','wQvVo','IFLVX','statSync','join','url','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','split','EXDEV','EcsvU','unlink','homedir','mRKYa','getExistingCliPath','Vbgcv','CLI\x20version\x20found\x20despite\x20error:\x20\x22','Resolving\x20with\x20stdout:\x20\x22','ymeuX','statusCode','Setting\x20required\x20permissions\x20to\x20','EovKc','qZxRv','faPBD','Binary\x20is\x20busy:\x20','yKzjp','basename','isFile','cwd','../../helpers/performance/constants','soZpp','filter','shouldSkipSessionName',',\x20automationFramework=','GyHqq','get','util','QxGrQ','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','offLY','entry','TheNM','sURoB','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','uslDv','475048tCcMll','jvpyq','dlCSm','RylOK','startsWith','AsdyV','AKhlx','matchHookRegex','icmgG','checkAndUpdateCli','gZkth','cSooC','bRJor','once','getAutomationFrameworkDetail','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','YNFkX','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','WAPSL','../../helpers/classLogger.js','ZsnfQ','../../helpers/utilities','LaeSp','data','GET','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','xdsWY','code','hZasi','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','tizvX','readdirSync','cNuCK','open','bMegy','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','0755','length','.browserstack','.zip','mergeObject','aMSlI','DxkDw','lqSOQ','createWriteStream','cSeyM','mSRCz','uloRJ','\x20version','debug','isDirectory','../utils/apiUtilityMethods.js','getCliDir','chmod','golYz','./state/hookState.js','SDK_CLI_DOWNLOAD','downloaded_file_','ypBGS','cFJKr','AsvuX','\x20already\x20exists','63EukdCF','rmiPK','getTestFrameworkDetail','31191csVdoQ','follow-redirects','message','SDK_CLI_CHECK_UPDATE','Yzjxw','cli_version','destroy','zHzmr','CKOnF','\x20from\x20','warn','parse','Configuring\x20Cli\x20path.','openSync','getCLIParamsForDevEnv','PFaYl','filePath','isArray','truAT','fileName','280mYljBq','Error\x20while\x20reading\x20CLI\x20path:\x20','HOOK_REGEX','trim','pBDXs','error','shouldSkipSessionStatus','mtime','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','entries','automationFrameworkDetail','platform','response\x20','tmpdir','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','QjbnD','uHUBe','oGWQk','concat','131148CnEEpy','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','../../helpers/test-observability/utils.js','HuVJI','Failed\x20to\x20delete\x20zip\x20file:\x20','yauzl','stringify','object','dIIdN'];a85_0x44ae=function(){return _0x519394;};return a85_0x44ae();}class CLIUtils{[a85_0x42599c(0x22f)]={};[a85_0x42599c(0x25a)]={};static[a85_0x42599c(0x281)](){const _0x2d489b=a85_0x42599c,_0x570c7d={};_0x570c7d[_0x2d489b(0x258)]=function(_0x453d04,_0x2e2023){return _0x453d04===_0x2e2023;},_0x570c7d[_0x2d489b(0x25c)]=_0x2d489b(0x264);const _0x5c023c=_0x570c7d;return _0x5c023c[_0x2d489b(0x258)](process['env']['BROWSERSTACK_CLI_ENV'],_0x5c023c[_0x2d489b(0x25c)]);}static[a85_0x42599c(0x21f)](){const _0x286d43=a85_0x42599c,_0x28f983={};return _0x28f983['id']=process[_0x286d43(0x273)]['BROWSERSTACK_CLI_ENV'],_0x28f983['listen']='unix:/tmp/sdk-platform-'+process[_0x286d43(0x273)][_0x286d43(0x263)]+_0x286d43(0x28e),_0x28f983;}static[a85_0x42599c(0x24d)](){const _0x1eb96a=a85_0x42599c,_0x2b71aa={'AsvuX':function(_0x16e3ce,_0x17c294){return _0x16e3ce(_0x17c294);},'lomJb':'../../../package.json'};return _0x2b71aa[_0x1eb96a(0x20c)](require,_0x2b71aa['lomJb'])['version'];}static[a85_0x42599c(0x249)](){const _0x1377be=a85_0x42599c,_0x1b1683={};_0x1b1683[_0x1377be(0x278)]=_0x1377be(0x25e);const _0x4df371=_0x1b1683;return _0x4df371['faqqa'];}static async[a85_0x42599c(0x280)](_0x5e1161){const _0x8f6a20=a85_0x42599c,_0x1d85be={'uloRJ':_0x8f6a20(0x21d),'CKOnF':function(_0x56f8cc,_0x31da88){return _0x56f8cc(_0x31da88);},'tFQKu':_0x8f6a20(0x22d)};logger['debug'](_0x1d85be[_0x8f6a20(0x1ff)]);const _0x38df07=process[_0x8f6a20(0x273)][_0x8f6a20(0x296)];if(!_0x1d85be['CKOnF'](isNullOrEmpty,_0x38df07))return logger[_0x8f6a20(0x201)](_0x8f6a20(0x28a)+_0x38df07),_0x38df07;try{const _0x3e696a=this[_0x8f6a20(0x204)]();if(_0x1d85be[_0x8f6a20(0x219)](isNullOrEmpty,_0x3e696a))throw new Error(_0x1d85be[_0x8f6a20(0x244)]);const _0x8082a8=this[_0x8f6a20(0x2ac)](_0x3e696a),_0x2008aa=await this[_0x8f6a20(0x1d6)](_0x8082a8,_0x3e696a,_0x5e1161);return logger[_0x8f6a20(0x201)]('Resolved\x20binary\x20path:\x20'+_0x2008aa),_0x2008aa;}catch(_0x5f1bb5){logger[_0x8f6a20(0x201)](_0x8f6a20(0x1c6)+util[_0x8f6a20(0x287)](_0x5f1bb5));}return null;}static async[a85_0x42599c(0x1d6)](_0x4889c4,_0x20cbf2,_0x284d56){const _0x33337d=a85_0x42599c,_0x56deaa={'vWJDT':function(_0x3af86d){return _0x3af86d();},'ypBGS':function(_0x47e1be,_0x53feb5){return _0x47e1be(_0x53feb5);},'qZxRv':function(_0xcda060,_0x6a5e58,_0x57f0d3){return _0xcda060(_0x6a5e58,_0x57f0d3);},'bRJor':_0x33337d(0x1e5),'jZZZg':_0x33337d(0x2a4),'YNFkX':function(_0xfea49e,_0x34cf4d){return _0xfea49e(_0x34cf4d);},'wqxbD':function(_0x31724d,_0x3c7962,_0x3ffbc2){return _0x31724d(_0x3c7962,_0x3ffbc2);}};PerformanceTester['start'](PerformanceEvents[_0x33337d(0x214)]);try{logger[_0x33337d(0x254)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x4889c4);const _0x36e6ae=_0x56deaa['vWJDT'](getHostInfo),_0x162800={'sdk_version':CLIUtils[_0x33337d(0x24d)](),'os':_0x36e6ae[_0x33337d(0x230)],'os_arch':_0x36e6ae['arch'],'cli_version':'0','sdk_language':this[_0x33337d(0x249)]()};!_0x56deaa[_0x33337d(0x20a)](isNullOrEmpty,_0x4889c4)&&(_0x162800[_0x33337d(0x216)]=await this['runShellCommand'](_0x4889c4+_0x33337d(0x200)));const _0x3563e7=await this['requestToUpdateCLI'](_0x162800,_0x284d56);process[_0x33337d(0x273)][_0x33337d(0x25d)]&&(logger['info'](_0x33337d(0x27f)+process[_0x33337d(0x273)][_0x33337d(0x25d)]),_0x3563e7[_0x33337d(0x1e5)][_0x33337d(0x2a4)]=process[_0x33337d(0x273)][_0x33337d(0x25d)]);if(_0x56deaa[_0x33337d(0x2b4)](nestedKeyValue,_0x3563e7,[_0x56deaa[_0x33337d(0x1d9)],_0x56deaa['jZZZg']])){logger['debug'](_0x33337d(0x1e7)+_0x162800[_0x33337d(0x216)]);if(!_0x56deaa[_0x33337d(0x1de)](isNullOrEmpty,_0x4889c4)&&this[_0x33337d(0x289)](_0x4889c4))return logger['warn'](_0x33337d(0x28c)+_0x4889c4),_0x4889c4;return await this['downloadLatestBinary'](_0x56deaa['wqxbD'](nestedKeyValue,_0x3563e7,[_0x56deaa['bRJor'],_0x56deaa[_0x33337d(0x28f)]]),_0x20cbf2);}return _0x4889c4;}finally{PerformanceTester[_0x33337d(0x253)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a85_0x42599c(0x204)](){const _0x5b4ea5=a85_0x42599c,_0x29e426={'pBDXs':function(_0x106dfb,_0x45af8c){return _0x106dfb(_0x45af8c);},'uHUBe':_0x5b4ea5(0x22d),'IjztL':'cli'},_0x2a7309=this[_0x5b4ea5(0x26f)]();try{if(_0x29e426[_0x5b4ea5(0x229)](isNullOrEmpty,_0x2a7309))throw new Error(_0x29e426[_0x5b4ea5(0x235)]);const _0x220f71=path['join'](_0x2a7309,_0x29e426['IjztL']);return!fs[_0x5b4ea5(0x265)](_0x220f71)&&_0x29e426[_0x5b4ea5(0x229)](createDir,_0x220f71),_0x220f71;}catch(_0x3bdfbd){logger[_0x5b4ea5(0x201)](_0x5b4ea5(0x27b)+util[_0x5b4ea5(0x287)](_0x3bdfbd));}}static[a85_0x42599c(0x26f)](){const _0x2a7bfe=a85_0x42599c,_0x45bb36={'EovKc':_0x2a7bfe(0x1f6),'cNuCK':function(_0x5a6624,_0xf09fbd){return _0x5a6624(_0xf09fbd);},'tUHqB':function(_0x585ec8,_0x4629e3){return _0x585ec8(_0x4629e3);},'uslDv':function(_0x1101a2,_0x2a4f9e){return _0x1101a2(_0x2a4f9e);},'SYWsd':function(_0x3a349b,_0x5cf46f){return _0x3a349b(_0x5cf46f);}},_0x40b138=[process[_0x2a7bfe(0x273)]['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x2a7bfe(0x2aa)](),_0x45bb36[_0x2a7bfe(0x2b3)]),path[_0x2a7bfe(0x2a3)](os[_0x2a7bfe(0x232)](),_0x45bb36[_0x2a7bfe(0x2b3)])];for(const _0x2f30ba of _0x40b138){if(_0x45bb36['cNuCK'](isNullOrEmpty,_0x2f30ba))continue;try{if(fs[_0x2a7bfe(0x265)](_0x2f30ba)){logger[_0x2a7bfe(0x201)](_0x2a7bfe(0x285)+_0x2f30ba+_0x2a7bfe(0x20d));if(!_0x45bb36['cNuCK'](isModifiable,_0x2f30ba)){logger['debug'](_0x2a7bfe(0x2b2)+_0x2f30ba);const _0xc65f23=_0x45bb36[_0x2a7bfe(0x290)](setReadWriteExecuteAccess,_0x2f30ba);if(!_0x45bb36[_0x2a7bfe(0x1cc)](isTrue,_0xc65f23)){logger[_0x2a7bfe(0x21b)](_0x2a7bfe(0x255)+_0x2f30ba);continue;}}}else{logger[_0x2a7bfe(0x201)](_0x2a7bfe(0x257)+_0x2f30ba),_0x45bb36['SYWsd'](createDir,_0x2f30ba),logger[_0x2a7bfe(0x201)](_0x2a7bfe(0x2b2)+_0x2f30ba);const _0x5d8b05=_0x45bb36['cNuCK'](setReadWriteExecuteAccess,_0x2f30ba);!_0x45bb36[_0x2a7bfe(0x1f0)](isTrue,_0x5d8b05)&&logger['warn'](_0x2a7bfe(0x255)+_0x2f30ba);}return _0x2f30ba;}catch(_0x2fe0b4){logger[_0x2a7bfe(0x22a)](_0x2a7bfe(0x1ed)+util[_0x2a7bfe(0x287)](_0x2fe0b4));}}return null;}static[a85_0x42599c(0x2ac)](_0x44c395){const _0x110a61=a85_0x42599c,_0x1e793e={};_0x1e793e['KqNFE']=function(_0x5b4b02,_0x127346){return _0x5b4b02>_0x127346;},_0x1e793e[_0x110a61(0x20f)]=function(_0x537c86,_0x2af63b){return _0x537c86>_0x2af63b;};const _0x1d162c=_0x1e793e;try{if(!fs['existsSync'](_0x44c395)||!fs[_0x110a61(0x2a2)](_0x44c395)[_0x110a61(0x202)]())return'';const _0x4cb82a=fs[_0x110a61(0x1ef)](_0x44c395)['map'](_0xdf8a90=>path['join'](_0x44c395,_0xdf8a90))[_0x110a61(0x2bd)](_0x274cb4=>fs[_0x110a61(0x2a2)](_0x274cb4)[_0x110a61(0x2b9)]()&&path[_0x110a61(0x2b8)](_0x274cb4)[_0x110a61(0x1d1)](_0x110a61(0x294)));if(_0x1d162c[_0x110a61(0x20f)](_0x4cb82a[_0x110a61(0x1f5)],0x0)){const _0x58042d=_0x4cb82a['map'](_0xf9c453=>({'filePath':_0xf9c453,'mtime':fs[_0x110a61(0x2a2)](_0xf9c453)[_0x110a61(0x22c)]}))[_0x110a61(0x26b)]((_0x2bf85c,_0x15178c)=>{const _0x21a48b=_0x110a61;if(!_0x2bf85c||!_0x2bf85c[_0x21a48b(0x22c)])return _0x15178c;if(_0x1d162c[_0x21a48b(0x297)](_0x15178c[_0x21a48b(0x22c)],_0x2bf85c[_0x21a48b(0x22c)]))return _0x15178c;return _0x2bf85c;},{});return _0x58042d?_0x58042d[_0x110a61(0x221)]:'';}return'';}catch(_0x2aede9){return logger['error'](_0x110a61(0x226)+util['format'](_0x2aede9)),'';}}static ['requestToUpdateCLI']=async(_0x379341,_0x360614)=>{const _0x54fa3=a85_0x42599c,_0x48d0b0={'HVsQs':function(_0x427453,_0x49a975,_0xccf630,_0x313f6b,_0x5bb2f9){return _0x427453(_0x49a975,_0xccf630,_0x313f6b,_0x5bb2f9);},'wQvVo':_0x54fa3(0x1e6)},_0x250e4b={};_0x250e4b['qs']=_0x379341,_0x250e4b[_0x54fa3(0x272)]=!![];const _0x16c662=await _0x48d0b0['HVsQs'](nodeRequest,_0x48d0b0[_0x54fa3(0x2a0)],UPDATED_CLI_ENDPOINT,_0x250e4b,_0x360614);return logger[_0x54fa3(0x201)](_0x54fa3(0x231)+JSON['stringify'](_0x16c662)),_0x16c662;};static[a85_0x42599c(0x289)](_0x44b4ef){const _0xe1fc80=a85_0x42599c;try{const _0x2a7f84=fs[_0xe1fc80(0x21e)](_0x44b4ef,'r+');return fs[_0xe1fc80(0x26a)](_0x2a7f84),![];}catch(_0x539d59){if(BINARY_BUSY_ERROR_CODES[_0xe1fc80(0x26e)](_0x539d59['code']))return logger['debug'](_0xe1fc80(0x2b6)+_0x44b4ef),!![];return logger[_0xe1fc80(0x201)](_0xe1fc80(0x26d)+_0x539d59[_0xe1fc80(0x213)]),![];}}static['runShellCommand'](_0x49e3ec,_0x52ec30=''){const _0x21b33a=a85_0x42599c,_0x4c0333={'Vbgcv':_0x21b33a(0x291),'WAPSL':function(_0x1c5c94,_0x508f3d){return _0x1c5c94(_0x508f3d);},'DxkDw':function(_0xa0b317,_0x166df5){return _0xa0b317(_0x166df5);},'faPBD':_0x21b33a(0x267),'gZkth':function(_0x50dad1,_0x3c4f6d,_0x4c264e,_0x17c6a7){return _0x50dad1(_0x3c4f6d,_0x4c264e,_0x17c6a7);},'gIQuw':_0x21b33a(0x22a)};return new Promise((_0x4663c9,_0x465fe1)=>{const _0x195000=_0x21b33a,_0x101815={};_0x101815[_0x195000(0x2ba)]=_0x52ec30,_0x101815[_0x195000(0x25b)]=0x1388;const _0xe75203=_0x4c0333[_0x195000(0x1d7)](exec,_0x49e3ec,_0x101815,(_0x18fc17,_0x4482d3,_0x5de821)=>{const _0x18c0d3=_0x195000;if(_0x18fc17){if(_0x49e3ec[_0x18c0d3(0x26e)](_0x4c0333[_0x18c0d3(0x2ad)])&&(_0x4482d3[_0x18c0d3(0x228)]()||_0x5de821[_0x18c0d3(0x228)]())){const _0xd6c90f=_0x4482d3['trim']()||_0x5de821[_0x18c0d3(0x228)]();logger['debug'](_0x18c0d3(0x2ae)+_0xd6c90f+'\x22'),_0x4c0333['WAPSL'](_0x4663c9,_0xd6c90f);}else _0x4c0333[_0x18c0d3(0x1fa)](_0x4663c9,_0x5de821[_0x18c0d3(0x228)]()||_0x4c0333[_0x18c0d3(0x2b5)]);}else logger['debug'](_0x18c0d3(0x2af)+_0x4482d3[_0x18c0d3(0x228)]()+'\x22'),_0x4c0333[_0x18c0d3(0x1e0)](_0x4663c9,_0x4482d3[_0x18c0d3(0x228)]());});_0xe75203['on'](_0x4c0333[_0x195000(0x27a)],()=>{const _0x38ff59=_0x195000;_0x4c0333[_0x38ff59(0x1fa)](_0x4663c9,_0x4c0333['faPBD']);});});}static [a85_0x42599c(0x271)]=async(_0x29bd3e,_0x357dfd)=>{const _0x3561b1=a85_0x42599c,_0x39c148={'dIIdN':function(_0x35c05e,_0x3eb009){return _0x35c05e(_0x3eb009);},'yQHHI':_0x3561b1(0x260),'PFaYl':_0x3561b1(0x24f),'lALut':function(_0x3d1b00,_0x14a363){return _0x3d1b00>=_0x14a363;},'iTIwk':'DOWNLOAD_HTTP','hZasi':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','AKhlx':'error','oGWQk':_0x3561b1(0x239)};PerformanceTester[_0x3561b1(0x295)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x3561b1(0x201)](_0x3561b1(0x299)+_0x29bd3e);try{const _0x4f4147=url[_0x3561b1(0x21c)](_0x29bd3e),_0x50b8a0=path[_0x3561b1(0x2a3)](_0x357dfd,_0x3561b1(0x209)+process['pid']+_0x3561b1(0x1f7)),_0xd9e371=fs[_0x3561b1(0x1fc)](_0x50b8a0);return new Promise((_0x3d8129,_0xaf90ee)=>{const _0x411e37=_0x3561b1,_0x4139fb={'LaeSp':_0x39c148['yQHHI'],'mSRCz':function(_0x27cd9f,_0x4a5c2e){const _0xf6612b=a85_0x5657;return _0x39c148[_0xf6612b(0x240)](_0x27cd9f,_0x4a5c2e);},'mHoRR':_0x39c148[_0x411e37(0x220)],'sURoB':function(_0x5880cb,_0x1ceb17){return _0x39c148['dIIdN'](_0x5880cb,_0x1ceb17);},'HaHEE':function(_0x59ea6b,_0x112b94){return _0x39c148['lALut'](_0x59ea6b,_0x112b94);},'dlCSm':_0x39c148['iTIwk'],'IqAHf':_0x39c148[_0x411e37(0x1eb)],'xdsWY':_0x39c148[_0x411e37(0x1d3)]};https[_0x411e37(0x1c3)](_0x4f4147,function(_0x4fabe0){const _0x44c964=_0x411e37,_0x51846d={'RtOZF':_0x4139fb['mHoRR'],'PRDhb':function(_0x1580bb,_0x4955e6){return _0x4139fb['sURoB'](_0x1580bb,_0x4955e6);}},_0x374973=null;if(_0x4fabe0['statusCode']&&_0x4139fb['HaHEE'](_0x4fabe0['statusCode'],0x190)){const _0x2516f1=new Error(_0x44c964(0x233)+_0x4fabe0[_0x44c964(0x2b1)]+_0x44c964(0x21a)+_0x29bd3e);_0x2516f1[_0x44c964(0x1ea)]=_0x4139fb[_0x44c964(0x1cf)],_0x2516f1[_0x44c964(0x2b1)]=_0x4fabe0[_0x44c964(0x2b1)],logger[_0x44c964(0x22a)](util[_0x44c964(0x287)](_0x4139fb[_0x44c964(0x284)],_0x4fabe0['statusCode'])),PerformanceTester[_0x44c964(0x253)](PerformanceEvents[_0x44c964(0x208)],![],_0x44c964(0x241)+_0x4fabe0[_0x44c964(0x2b1)]),_0x4fabe0['resume'](),_0xd9e371[_0x44c964(0x217)](),fs[_0x44c964(0x2a9)](_0x50b8a0,()=>{}),_0x4139fb[_0x44c964(0x1ca)](_0xaf90ee,_0x2516f1);return;}_0x4fabe0[_0x44c964(0x27e)](_0xd9e371),_0x4fabe0['on'](_0x4139fb['xdsWY'],function(_0x4e500d){const _0x5ec1f2=_0x44c964;logger[_0x5ec1f2(0x22a)](util[_0x5ec1f2(0x287)](_0x51846d[_0x5ec1f2(0x252)],_0x4e500d)),PerformanceTester[_0x5ec1f2(0x253)](PerformanceEvents[_0x5ec1f2(0x208)],![],util['format'](_0x4e500d)),_0x51846d[_0x5ec1f2(0x282)](_0xaf90ee,_0x4e500d);}),_0xd9e371['on'](_0x4139fb[_0x44c964(0x1e9)],function(_0x4c6234){const _0x2463b1=_0x44c964;logger[_0x2463b1(0x22a)](util[_0x2463b1(0x287)](_0x4139fb[_0x2463b1(0x1e4)],_0x4c6234)),PerformanceTester[_0x2463b1(0x253)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x2463b1(0x287)](_0x4c6234)),_0x4139fb[_0x2463b1(0x1fe)](_0xaf90ee,_0x4c6234);}),CLIUtils[_0x44c964(0x247)](_0xd9e371,_0x374973,_0x50b8a0,_0x357dfd,_0x31fb1d=>{const _0xd7dd08=_0x44c964;PerformanceTester[_0xd7dd08(0x253)](PerformanceEvents[_0xd7dd08(0x208)]),_0x51846d[_0xd7dd08(0x282)](_0x3d8129,_0x31fb1d);},_0x469a88=>{const _0x5dfce3=_0x44c964;PerformanceTester['end'](PerformanceEvents[_0x5dfce3(0x208)],![],util[_0x5dfce3(0x287)](_0x469a88)),_0x51846d[_0x5dfce3(0x282)](_0xaf90ee,_0x469a88);});})['on'](_0x39c148[_0x411e37(0x1d3)],function(_0xc3ea15){const _0x1f08c9=_0x411e37;logger[_0x1f08c9(0x22a)](_0x1f08c9(0x1e8)+util[_0x1f08c9(0x287)](_0xc3ea15)),PerformanceTester[_0x1f08c9(0x253)](PerformanceEvents[_0x1f08c9(0x208)],![],util[_0x1f08c9(0x287)](_0xc3ea15)),_0x39c148[_0x1f08c9(0x240)](_0xaf90ee,_0xc3ea15);});});}catch(_0x20854d){PerformanceTester[_0x3561b1(0x253)](PerformanceEvents[_0x3561b1(0x208)],![],util[_0x3561b1(0x287)](_0x20854d)),logger[_0x3561b1(0x22a)](util[_0x3561b1(0x287)](_0x39c148[_0x3561b1(0x236)],_0x20854d));throw _0x20854d;}};static[a85_0x42599c(0x247)](_0x1971bc,_0x235399,_0x1a7f72,_0x3e0d70,_0x463e8a,_0x206a7b){const _0x11d036=a85_0x42599c,_0x32540d={'gEPFi':function(_0xb67874,_0x949b4c){return _0xb67874(_0x949b4c);},'AKXbv':_0x11d036(0x242),'ymeuX':_0x11d036(0x253),'HuVJI':function(_0x5310cc,_0x5df292){return _0x5310cc!==_0x5df292;},'IfRHs':_0x11d036(0x22a),'dkWsB':function(_0x2d3d50,_0x398341){return _0x2d3d50(_0x398341);},'golYz':function(_0xa25a88,_0x19855d){return _0xa25a88(_0x19855d);},'AsdyV':_0x11d036(0x2a7),'bZLnQ':_0x11d036(0x1f4),'offLY':_0x11d036(0x1c8)};_0x1971bc['on'](_0x32540d[_0x11d036(0x292)],function(){const _0x34fbf3=_0x11d036,_0x67f71={'icmgG':function(_0x2e9bde,_0x1fd88f){const _0x112fec=a85_0x5657;return _0x32540d[_0x112fec(0x256)](_0x2e9bde,_0x1fd88f);},'truAT':_0x32540d['AKXbv'],'TheNM':_0x32540d[_0x34fbf3(0x2b0)],'dNMTb':function(_0x169275,_0x29474e){const _0x3e6262=_0x34fbf3;return _0x32540d[_0x3e6262(0x23b)](_0x169275,_0x29474e);},'LgKUe':_0x32540d[_0x34fbf3(0x24a)],'zHzmr':function(_0x478edf,_0x2bf0e1){const _0x402c75=_0x34fbf3;return _0x32540d[_0x402c75(0x277)](_0x478edf,_0x2bf0e1);},'IFLVX':function(_0x945f27,_0x4328df){const _0xf774c2=_0x34fbf3;return _0x32540d[_0xf774c2(0x206)](_0x945f27,_0x4328df);},'cSeyM':function(_0x4493ff,_0x208720){const _0x677311=_0x34fbf3;return _0x32540d[_0x677311(0x23b)](_0x4493ff,_0x208720);},'qMlYb':_0x32540d[_0x34fbf3(0x1d2)],'AxCnd':function(_0x37a55f,_0x2dc863){return _0x32540d['dkWsB'](_0x37a55f,_0x2dc863);},'ZMqfy':function(_0x3e0388,_0x1d33ae){const _0x24b88e=_0x34fbf3;return _0x32540d[_0x24b88e(0x206)](_0x3e0388,_0x1d33ae);},'mPJOi':_0x32540d[_0x34fbf3(0x286)],'mRKYa':function(_0x24f220,_0x473b8a){const _0x4504b5=_0x34fbf3;return _0x32540d[_0x4504b5(0x277)](_0x24f220,_0x473b8a);},'cSooC':_0x32540d[_0x34fbf3(0x1c7)]},_0x48a82c={};_0x48a82c[_0x34fbf3(0x29f)]=!![],yauzl[_0x34fbf3(0x1f1)](_0x1a7f72,_0x48a82c,function(_0x2fac1c,_0x37a27d){const _0x8d5bca=_0x34fbf3,_0x3db286={'ZsnfQ':function(_0x3aa24e,_0x27a9f0){const _0x4e2fe2=a85_0x5657;return _0x67f71[_0x4e2fe2(0x1d5)](_0x3aa24e,_0x27a9f0);},'lqSOQ':_0x67f71[_0x8d5bca(0x223)],'RylOK':_0x67f71[_0x8d5bca(0x1c9)],'jvpyq':function(_0x4d649e,_0x19816f){const _0x17712d=_0x8d5bca;return _0x67f71[_0x17712d(0x279)](_0x4d649e,_0x19816f);},'bMegy':function(_0x4d148,_0x419446){const _0x263044=_0x8d5bca;return _0x67f71[_0x263044(0x1d5)](_0x4d148,_0x419446);},'QjbnD':function(_0x516ae6,_0x39434c){return _0x67f71['icmgG'](_0x516ae6,_0x39434c);},'SKsWx':_0x67f71['LgKUe'],'snliD':function(_0x3f7706,_0x191d8f){const _0x43b207=_0x8d5bca;return _0x67f71[_0x43b207(0x218)](_0x3f7706,_0x191d8f);},'YFAkS':function(_0x5344e1,_0x523ecb){const _0x135bf4=_0x8d5bca;return _0x67f71[_0x135bf4(0x2a1)](_0x5344e1,_0x523ecb);},'PXcsz':function(_0x5d0dd4,_0x2eef4d){const _0x2bc61c=_0x8d5bca;return _0x67f71[_0x2bc61c(0x1fd)](_0x5d0dd4,_0x2eef4d);},'doemb':_0x67f71[_0x8d5bca(0x29a)],'OwqRu':function(_0xf39452,_0x3a4067){return _0x67f71['AxCnd'](_0xf39452,_0x3a4067);},'soZpp':function(_0x1ec277,_0x53a5a0){return _0x67f71['ZMqfy'](_0x1ec277,_0x53a5a0);},'mQoxl':_0x67f71['mPJOi']};if(_0x2fac1c){_0x67f71[_0x8d5bca(0x2ab)](_0x206a7b,_0x2fac1c);return;}_0x37a27d[_0x8d5bca(0x250)](),_0x37a27d['on'](_0x67f71[_0x8d5bca(0x1d8)],_0x44c940=>{const _0x2dc27a=_0x8d5bca,_0x511b99={'QxGrQ':function(_0x4e505e,_0x3825ff){return _0x3db286['ZsnfQ'](_0x4e505e,_0x3825ff);},'Yzjxw':function(_0x487cb5,_0x15a724){const _0x58c050=a85_0x5657;return _0x3db286[_0x58c050(0x1e2)](_0x487cb5,_0x15a724);},'ioLTg':_0x3db286[_0x2dc27a(0x1fb)],'kUViR':function(_0x382ad0,_0x1d82ea){const _0x52ebae=_0x2dc27a;return _0x3db286[_0x52ebae(0x1e2)](_0x382ad0,_0x1d82ea);},'sEqEZ':_0x3db286[_0x2dc27a(0x1d0)]};if(/\/$/[_0x2dc27a(0x246)](_0x44c940[_0x2dc27a(0x224)])){_0x37a27d['readEntry']();return;}!_0x235399&&(_0x235399=_0x44c940[_0x2dc27a(0x224)]);if(_0x3db286[_0x2dc27a(0x1ce)](_0x44c940[_0x2dc27a(0x224)],_0x235399))_0x37a27d['readEntry']();else{const _0x3d0404=_0x44c940[_0x2dc27a(0x224)],_0x399ee6=path['join'](_0x3e0d70,_0x3d0404+_0x2dc27a(0x274)+process[_0x2dc27a(0x288)]);let _0x3e0e67;try{_0x3e0e67=fs[_0x2dc27a(0x1fc)](_0x399ee6);}catch(_0x391723){if(BINARY_BUSY_ERROR_CODES[_0x2dc27a(0x26e)](_0x391723['code'])){const _0x1da07c=path[_0x2dc27a(0x2a3)](_0x3e0d70,_0x3d0404);if(fs[_0x2dc27a(0x265)](_0x1da07c)){logger[_0x2dc27a(0x21b)](_0x2dc27a(0x1cb)+_0x3d0404),fs[_0x2dc27a(0x2a9)](_0x1a7f72,_0x1ff071=>{const _0x99df8d=_0x2dc27a;_0x1ff071&&logger[_0x99df8d(0x21b)](_0x99df8d(0x23c)+_0x1a7f72);}),_0x3db286[_0x2dc27a(0x1f2)](_0x463e8a,_0x1da07c);return;}logger['warn'](_0x2dc27a(0x1dc)+_0x3d0404);}_0x3db286[_0x2dc27a(0x234)](_0x206a7b,_0x391723);return;}_0x3e0e67['on'](_0x3db286['SKsWx'],_0x30fd4f=>{const _0x45eeab=_0x2dc27a;if(BINARY_BUSY_ERROR_CODES[_0x45eeab(0x26e)](_0x30fd4f[_0x45eeab(0x1ea)])){const _0x457a78=path[_0x45eeab(0x2a3)](_0x3e0d70,_0x3d0404);_0x3e0e67[_0x45eeab(0x242)](),fs['existsSync'](_0x457a78)?(logger[_0x45eeab(0x21b)](_0x45eeab(0x1df)+_0x30fd4f[_0x45eeab(0x213)]),_0x37a27d[_0x45eeab(0x242)](),fs['unlink'](_0x1a7f72,_0x2a7ca9=>{const _0x56a8e5=_0x45eeab;_0x2a7ca9&&logger[_0x56a8e5(0x21b)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a7f72);}),_0x511b99[_0x45eeab(0x1c5)](_0x463e8a,_0x457a78)):(logger[_0x45eeab(0x21b)](_0x45eeab(0x1dd)+_0x30fd4f[_0x45eeab(0x213)]),fs['unlink'](_0x399ee6,()=>{}),_0x511b99['Yzjxw'](_0x206a7b,_0x30fd4f));}else fs[_0x45eeab(0x2a9)](_0x399ee6,()=>{}),_0x511b99[_0x45eeab(0x215)](_0x206a7b,_0x30fd4f);}),_0x37a27d[_0x2dc27a(0x251)](_0x44c940,function(_0xf80e0a,_0x362ce3){const _0x46f82a=_0x2dc27a;if(_0xf80e0a){fs['unlink'](_0x399ee6,()=>{}),_0x511b99[_0x46f82a(0x276)](_0x206a7b,_0xf80e0a);return;}_0x362ce3['on'](_0x511b99['sEqEZ'],function(){_0x3e0e67['end'](),_0x3e0e67['on'](_0x511b99['ioLTg'],function(){const _0x19b5e4=a85_0x5657;_0x37a27d[_0x19b5e4(0x250)]();});}),_0x362ce3[_0x46f82a(0x27e)](_0x3e0e67);});}}),_0x37a27d['on'](_0x67f71[_0x8d5bca(0x29d)],_0x246642=>{const _0x5be9fb=_0x8d5bca;_0x3db286[_0x5be9fb(0x293)](_0x206a7b,_0x246642);}),_0x37a27d[_0x8d5bca(0x1da)](_0x67f71[_0x8d5bca(0x1c9)],()=>{const _0x32122d=_0x8d5bca,_0x2c338c={'EcsvU':function(_0x311149,_0x511ebf){return _0x3db286['PXcsz'](_0x311149,_0x511ebf);},'cLHKZ':_0x3db286['doemb'],'AUTnA':function(_0x5dd33f,_0x237ceb){return _0x3db286['snliD'](_0x5dd33f,_0x237ceb);},'aMSlI':function(_0x4f3170,_0x2eba2d){return _0x3db286['OwqRu'](_0x4f3170,_0x2eba2d);},'DiUxz':function(_0x3907ef,_0x365fc8){const _0x4709d4=a85_0x5657;return _0x3db286[_0x4709d4(0x2bc)](_0x3907ef,_0x365fc8);}};fs['unlink'](_0x1a7f72,_0x4530c7=>{const _0x5b704a=a85_0x5657;_0x4530c7&&logger[_0x5b704a(0x21b)](_0x5b704a(0x23c)+_0x1a7f72);});const _0x227cc7=path[_0x32122d(0x2a3)](_0x3e0d70,_0x235399+_0x32122d(0x274)+process[_0x32122d(0x288)]),_0x126bb6=path[_0x32122d(0x2a3)](_0x3e0d70,_0x235399);fs[_0x32122d(0x205)](_0x227cc7,_0x3db286[_0x32122d(0x27d)],function(_0x186639){const _0x4d7603=_0x32122d;if(_0x186639){_0x37a27d[_0x4d7603(0x242)](),fs['unlink'](_0x227cc7,()=>{}),_0x3db286['YFAkS'](_0x206a7b,_0x186639);return;}fs['rename'](_0x227cc7,_0x126bb6,function(_0x51089f){const _0x5027b5=_0x4d7603;if(_0x51089f){if(_0x2c338c[_0x5027b5(0x2a8)](_0x51089f['code'],_0x2c338c[_0x5027b5(0x275)])){_0x37a27d[_0x5027b5(0x242)](),fs[_0x5027b5(0x2a9)](_0x227cc7,()=>{}),_0x2c338c['AUTnA'](_0x206a7b,_0x51089f);return;}logger[_0x5027b5(0x21b)](_0x5027b5(0x1f3)+_0x51089f['message']);try{fs['copyFileSync'](_0x227cc7,_0x126bb6);}catch(_0x14fcf3){_0x37a27d[_0x5027b5(0x242)](),fs[_0x5027b5(0x2a9)](_0x227cc7,()=>{}),_0x2c338c[_0x5027b5(0x1f9)](_0x206a7b,_0x14fcf3);return;}fs[_0x5027b5(0x2a9)](_0x227cc7,_0xcec73c=>{const _0x5ee597=_0x5027b5;_0xcec73c&&logger[_0x5ee597(0x21b)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0xcec73c['message']);});}_0x37a27d[_0x5027b5(0x242)](),_0x2c338c[_0x5027b5(0x243)](_0x463e8a,_0x126bb6);});});});});});}static[a85_0x42599c(0x210)](){const _0x1dfa87=a85_0x42599c;if(process[_0x1dfa87(0x273)][_0x1dfa87(0x1ec)])return JSON[_0x1dfa87(0x21c)](process[_0x1dfa87(0x273)][_0x1dfa87(0x1ec)]);return this[_0x1dfa87(0x25a)];}static[a85_0x42599c(0x1db)](){const _0x161add=a85_0x42599c;if(process[_0x161add(0x273)][_0x161add(0x2a5)])return JSON['parse'](process[_0x161add(0x273)][_0x161add(0x2a5)]);return this[_0x161add(0x22f)];}static['setFrameworkDetail'](_0x4395b0,_0xa00b7f){const _0x4141d6=a85_0x42599c,_0x46c6c5={'GzUdd':'4|2|1|0|3','tizvX':function(_0x4cebdd,_0x327f33){return _0x4cebdd(_0x327f33);},'hjWRh':function(_0xf08e3f,_0x40a73c){return _0xf08e3f||_0x40a73c;}},_0x581aa0=_0x46c6c5['GzUdd'][_0x4141d6(0x2a6)]('|');let _0x3c0885=0x0;while(!![]){switch(_0x581aa0[_0x3c0885++]){case'0':process['env'][_0x4141d6(0x2a5)]=JSON[_0x4141d6(0x23e)](this[_0x4141d6(0x22f)]);continue;case'1':this['automationFrameworkDetail']={'name':_0xa00b7f,'version':_0x46c6c5[_0x4141d6(0x1ee)](getFrameworkVersion,_0xa00b7f)};continue;case'2':this[_0x4141d6(0x25a)]={'name':_0x4395b0,'version':{[_0x4395b0]:_0x46c6c5[_0x4141d6(0x1ee)](getFrameworkVersion,_0x4395b0)}};continue;case'3':process[_0x4141d6(0x273)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x4141d6(0x23e)](this[_0x4141d6(0x25a)]);continue;case'4':_0x46c6c5[_0x4141d6(0x259)](!_0x4395b0,!_0xa00b7f)&&logger[_0x4141d6(0x201)](_0x4141d6(0x27c)+_0x4395b0+_0x4141d6(0x1c1)+_0xa00b7f);continue;}break;}}static[a85_0x42599c(0x29c)](_0xadce2f,_0x436065){return _0xadce2f+':'+_0x436065;}static[a85_0x42599c(0x29b)](){const _0x5b5bde=a85_0x42599c;return process[_0x5b5bde(0x288)]+':'+threadId;}static[a85_0x42599c(0x2be)](_0x4eb60c){const _0x31482b=a85_0x42599c;if(_0x4eb60c[_0x31482b(0x270)]&&_0x4eb60c['testContextOptions'][_0x31482b(0x24b)])return!![];return![];}static[a85_0x42599c(0x22b)](_0x444658){const _0x4f75d8=a85_0x42599c;if(_0x444658[_0x4f75d8(0x270)]&&_0x444658[_0x4f75d8(0x270)][_0x4f75d8(0x261)])return!![];return![];}static[a85_0x42599c(0x1d4)](_0x1ad0f4){const _0x5b86f6=a85_0x42599c,_0x41941d=new RegExp(TestFrameworkConstants[_0x5b86f6(0x227)]);return _0x41941d['test'](_0x1ad0f4);}static[a85_0x42599c(0x1f8)](_0x198eb,_0x50b975){const _0x20d9e2=a85_0x42599c,_0x5b6412={};_0x5b6412[_0x20d9e2(0x20b)]=function(_0x26e1ff,_0x1150ea){return _0x26e1ff!==_0x1150ea;},_0x5b6412['yKzjp']=function(_0x547ec1,_0x1d40c3){return _0x547ec1===_0x1d40c3;},_0x5b6412[_0x20d9e2(0x1c2)]=_0x20d9e2(0x23f);const _0x1f565a=_0x5b6412;for(const [_0x45f8c7,_0x2b386e]of Object[_0x20d9e2(0x22e)](_0x50b975)){if(_0x1f565a[_0x20d9e2(0x20b)](_0x2b386e,null)&&_0x1f565a[_0x20d9e2(0x2b7)](typeof _0x2b386e,_0x1f565a['GyHqq'])&&!Array[_0x20d9e2(0x222)](_0x2b386e))_0x198eb[_0x45f8c7]=this['mergeObject'](_0x198eb[_0x45f8c7]||{},_0x2b386e);else Array[_0x20d9e2(0x222)](_0x2b386e)?_0x198eb[_0x45f8c7]=(_0x198eb[_0x45f8c7]||[])[_0x20d9e2(0x237)](_0x2b386e):_0x198eb[_0x45f8c7]=_0x2b386e;}return _0x198eb;}}module[a85_0x42599c(0x298)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a86_0x39afab=a86_0x59ba;(function(_0xf7ce46,_0x43b060){const _0x13743a=a86_0x59ba,_0x13997f=_0xf7ce46();while(!![]){try{const _0x507fc9=-parseInt(_0x13743a(0xdf))/0x1+-parseInt(_0x13743a(0xc1))/0x2*(parseInt(_0x13743a(0x110))/0x3)+parseInt(_0x13743a(0xfc))/0x4+-parseInt(_0x13743a(0xdb))/0x5*(parseInt(_0x13743a(0xbb))/0x6)+parseInt(_0x13743a(0x103))/0x7+parseInt(_0x13743a(0x123))/0x8+parseInt(_0x13743a(0x12b))/0x9;if(_0x507fc9===_0x43b060)break;else _0x13997f['push'](_0x13997f['shift']());}catch(_0x4a8e05){_0x13997f['push'](_0x13997f['shift']());}}}(a86_0x4b24,0x4f8d7));const fs=require('fs'),os=require('os'),path=require(a86_0x39afab(0xca)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a86_0x39afab(0x10d)),PlaywrightDriverModule=require(a86_0x39afab(0x117)),TestInfo=require(a86_0x39afab(0xb7)),TestHubModule=require(a86_0x39afab(0xd1)),{createClassLogger}=require(a86_0x39afab(0xce)),logger=createClassLogger(a86_0x39afab(0xcb)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function a86_0x59ba(_0x15a040,_0x5551d8){const _0x4b24cb=a86_0x4b24();return a86_0x59ba=function(_0x59ba0e,_0x45bb47){_0x59ba0e=_0x59ba0e-0xac;let _0xa6de34=_0x4b24cb[_0x59ba0e];return _0xa6de34;},a86_0x59ba(_0x15a040,_0x5551d8);}function getBuildTagsRunId(){const _0x428a20=a86_0x39afab,_0x154cb8={};_0x154cb8['jlYPJ']=function(_0x3ca284,_0x4c49e5){return _0x3ca284===_0x4c49e5;},_0x154cb8[_0x428a20(0xfe)]='null';const _0xb7df02=_0x154cb8,_0x43c843=process[_0x428a20(0xbe)][_0x428a20(0x118)];if(!_0x43c843||_0xb7df02[_0x428a20(0x119)](_0x43c843,_0xb7df02[_0x428a20(0xfe)]))return null;return _0x43c843;}function a86_0x4b24(){const _0x391536=['tMUbx','qTvyY','./browserstackCLI','iXVfV','path','CustomTagManager','mergeBuildLevelTags','message','../../helpers/classLogger',',\x20key=','unlinkSync','./modules/testhubModule','oRxRE','trim','LMgrh','length','aggregateBuildLevelTagsFromTmp','toObject','debug','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','KEY_TEST_ID','1005eTBDtH','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','getBuildTagsRunId','values','193082Tkowey','jest','__workerDetails','POST','kgjFX','getBuildLevelTags','mergeIntoTags',',\x20existingTags=','TEST','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','name','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','entries','testLevelTags',':jest-','resolveInstance','BUILD_TAG_FILE_PREFIX','getTrackedInstance','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getState','getTestDetails','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','VDdMl','JvfgN','now','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','SBwGy','getAllData','717976EXJpIn','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','PgOrb','getTestFrameworkDetail','EgPPk','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','Dwmyb','148890KjZYMN','stringify','testhubConfig','mTYbx','includes','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','multi_dropdown','promises','readdirSync','buildLevelTags','./framework/constants/testFrameworkConstants',',\x20values=','mergeValues','3cLyfBV','field_type','BvPQx','parse','hNqGe','xzJfF','./state/testFrameworkState','./modules/playwrightDriverModule','BROWSERSTACK_TESTHUB_UUID','jlYPJ','getInstance','FZaqC','DLoVR','filter','KEY_CUSTOM_TAGS','ryaDh','startsWith','getTestFramework','isRunning','761472PBDcNK','./cliUtils','tdgNd','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','getTestLevelTags','get','8356221tlZNGz','modules','_testInternals','kLfgO','from','getTestUUID','addMultipleEntries','SuKvo','join','parseCommaSeparatedValues','isArray','.json','giHtn','ms)\x20','sBGrb','WHkfG','DTfft','./TestInfo','endsWith','getBuildTagsFilePath','BRYDb','8886enbTih','mtimeMs','vmjej','env','setTestDetails','tmpdir','815614hPnyWJ','tahlA','keys','testInfo','\x20->\x20values='];a86_0x4b24=function(){return _0x391536;};return a86_0x4b24();}function getBuildTagsFilePath(_0x411c61){const _0x2bce4d=a86_0x39afab;return path[_0x2bce4d(0xae)](os[_0x2bce4d(0xc0)](),''+BUILD_TAG_FILE_PREFIX+_0x411c61+'_'+process['pid']+_0x2bce4d(0xb1));}class CustomTagManager{static [a86_0x39afab(0x10c)]={};static [a86_0x39afab(0xed)]={};static[a86_0x39afab(0x10f)](_0x399094,_0x127868){const _0x24c8bd=a86_0x39afab;return Array[_0x24c8bd(0x12f)](new Set([..._0x399094||[],..._0x127868||[]]));}static['mergeIntoTags'](_0x34ee5d,_0xbada53,_0x223413){const _0x8eef4c=a86_0x39afab,_0x5adf9a={};_0x5adf9a[_0x8eef4c(0x11c)]=_0x8eef4c(0x109);const _0x100a69=_0x5adf9a;if(!_0x34ee5d[_0xbada53]){const _0x3402d0={};_0x3402d0[_0x8eef4c(0x111)]=_0x100a69[_0x8eef4c(0x11c)],_0x3402d0[_0x8eef4c(0xde)]=[..._0x223413||[]],_0x34ee5d[_0xbada53]=_0x3402d0;}else!_0x34ee5d[_0xbada53]['field_type']&&(_0x34ee5d[_0xbada53][_0x8eef4c(0x111)]=_0x100a69[_0x8eef4c(0x11c)]),!Array[_0x8eef4c(0xb0)](_0x34ee5d[_0xbada53][_0x8eef4c(0xde)])&&(_0x34ee5d[_0xbada53]['values']=[]),_0x34ee5d[_0xbada53][_0x8eef4c(0xde)]=CustomTagManager[_0x8eef4c(0x10f)](_0x34ee5d[_0xbada53][_0x8eef4c(0xde)],_0x223413);return _0x34ee5d;}static async['setCustomTags'](_0x459797,_0x4feec3,_0x77da=![]){const _0x47638d=a86_0x39afab,_0x2399d7={'giHtn':function(_0x5c9251,_0xc34edb){return _0x5c9251!==_0xc34edb;},'VDdMl':'string','LMgrh':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','oRxRE':_0x47638d(0x128),'kLfgO':function(_0x36fbaf,_0x26a339){return _0x36fbaf===_0x26a339;},'xzJfF':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','WHkfG':function(_0xb79c3e,_0x2cd733){return _0xb79c3e===_0x2cd733;},'jPGKq':_0x47638d(0x127),'qTvyY':function(_0x524fe9,_0x18628d){return _0x524fe9(_0x18628d);},'BvPQx':_0x47638d(0xc8),'JvfgN':function(_0x599803){return _0x599803();},'MCnWj':_0x47638d(0x109),'lXDEK':function(_0x47a677,_0x2521c0){return _0x47a677>_0x2521c0;},'mTYbx':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ryaDh':_0x47638d(0xee),'tdgNd':_0x47638d(0x124),'SBwGy':_0x47638d(0xe0),'sBGrb':_0x47638d(0xfd),'tahlA':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','vmjej':function(_0x4467ce,_0x6b3139){return _0x4467ce(_0x6b3139);},'DTfft':_0x47638d(0x116),'hNqGe':'./state/hookState','iXVfV':_0x47638d(0x108)};if(_0x2399d7[_0x47638d(0xb2)](typeof _0x459797,_0x2399d7[_0x47638d(0xf6)])){logger['debug'](_0x2399d7[_0x47638d(0xd4)]);return;}if(_0x2399d7[_0x47638d(0xb2)](typeof _0x4feec3,_0x2399d7['VDdMl'])){logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0xd2)]);return;}if(_0x2399d7[_0x47638d(0x12e)](_0x459797['trim'](),'')){logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0x115)]);return;}if(_0x2399d7[_0x47638d(0xb5)](_0x4feec3[_0x47638d(0xd3)](),'')){logger[_0x47638d(0xd8)](_0x2399d7['jPGKq']);return;}const _0x3967ef=helper[_0x47638d(0xaf)](_0x4feec3);if(_0x77da){const _0x2df696=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x112)]),_0x400ca7=_0x2df696['getInstance'](),_0x4178b5=_0x400ca7&&_0x400ca7[_0x47638d(0x12c)][TestHubModule['MODULE_NAME']];if(_0x4178b5){const _0x35c4f2=_0x4178b5?.[_0x47638d(0x105)]?.[_0x47638d(0xd7)]()?.['buildHashedId'];TestInfo[_0x47638d(0x130)](_0x35c4f2);const _0xe9fcd2=TestInfo[_0x47638d(0xf4)](_0x35c4f2),_0x402e82=_0xe9fcd2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x47638d(0xe5)](_0x402e82,_0x459797,_0x3967ef),_0xe9fcd2[TestFrameworkConstants[_0x47638d(0x11e)]]=_0x402e82,TestInfo[_0x47638d(0xbf)](_0x35c4f2,_0xe9fcd2);!this[_0x47638d(0x10c)][_0x35c4f2]&&(this[_0x47638d(0x10c)][_0x35c4f2]={});this[_0x47638d(0x10c)][_0x35c4f2][_0x459797]=CustomTagManager['mergeValues'](this[_0x47638d(0x10c)][_0x35c4f2][_0x459797],_0x3967ef);try{const _0x3adea0=_0x2399d7[_0x47638d(0xf7)](getBuildTagsRunId);if(_0x3adea0){const _0x4ff8d5={};for(const [_0x360ba5,_0x383cd1]of Object[_0x47638d(0xec)](this[_0x47638d(0x10c)][_0x35c4f2]||{})){_0x4ff8d5[_0x360ba5]={'field_type':_0x2399d7['MCnWj'],'values':Array[_0x47638d(0xb0)](_0x383cd1)?[..._0x383cd1]:[]};}_0x2399d7['lXDEK'](Object[_0x47638d(0xc3)](_0x4ff8d5)[_0x47638d(0xd5)],0x0)&&await fs[_0x47638d(0x10a)]['writeFile'](_0x2399d7[_0x47638d(0xc7)](getBuildTagsFilePath,_0x3adea0),JSON[_0x47638d(0x104)](_0x4ff8d5));}else logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0x106)]);}catch(_0xf2d2a6){logger['debug']('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0xf2d2a6&&_0xf2d2a6['message']?_0xf2d2a6['message']:_0xf2d2a6));}}}else{let _0x85ab66;const _0x3f16f9=global['__jestCurrentTestIdentifier'];let _0x43586b=![];if(_0x3f16f9&&_0x3f16f9[_0x47638d(0x107)](_0x2399d7[_0x47638d(0x11f)]))_0x43586b=!![],_0x85ab66=_0x3f16f9;else try{const _0x5e4c00=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x125)]),_0x16bb8c=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7['BvPQx']);if(_0x16bb8c[_0x47638d(0x11a)]()[_0x47638d(0x122)]()){const _0x4f777b=_0x5e4c00[_0x47638d(0xff)]();if(_0x2399d7['WHkfG'](_0x4f777b?.[_0x47638d(0xe9)]?.[_0x47638d(0xea)](),_0x2399d7[_0x47638d(0xfa)])){const _0x5ef1f2=AutomationFramework[_0x47638d(0xf1)]();_0x85ab66=AutomationFramework[_0x47638d(0xf3)](_0x5ef1f2,PlaywrightDriverModule[_0x47638d(0xda)],''),_0x85ab66&&_0x85ab66[_0x47638d(0x107)](_0x2399d7[_0x47638d(0x11f)])&&(_0x43586b=!![]);}}}catch(_0x4cb78d){logger['debug'](_0x47638d(0xe8)+_0x4cb78d);}if(_0x43586b){if(!_0x85ab66)throw new Error(_0x2399d7[_0x47638d(0xb4)]);const _0x24ac8c=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x112)]),_0x156aae=_0x24ac8c[_0x47638d(0x11a)]()[_0x47638d(0x121)]();if(!_0x156aae)throw new Error(_0x2399d7[_0x47638d(0xc2)]);const _0x3373ad=_0x2399d7[_0x47638d(0xbd)](require,_0x2399d7[_0x47638d(0xb6)]),_0x2df49c=_0x2399d7[_0x47638d(0xbd)](require,_0x2399d7[_0x47638d(0x114)]),_0x55ef4d=_0x156aae[_0x47638d(0xef)](_0x3373ad[_0x47638d(0xe7)],_0x2df49c[_0x47638d(0xe2)]);if(!_0x55ef4d)throw new Error(_0x2399d7[_0x47638d(0xc9)]);const _0x5ead16=_0x55ef4d[_0x47638d(0xfb)]()[_0x47638d(0x12a)](_0x85ab66)||{},_0x5a1339=_0x5ead16[TestFrameworkConstants[_0x47638d(0x11e)]]||{};logger['debug'](_0x47638d(0xd9)+_0x85ab66+_0x47638d(0xcf)+_0x459797+_0x47638d(0x10e)+JSON[_0x47638d(0x104)](_0x3967ef)+_0x47638d(0xe6)+JSON[_0x47638d(0x104)](_0x5a1339)),CustomTagManager[_0x47638d(0xe5)](_0x5a1339,_0x459797,_0x3967ef),logger[_0x47638d(0xd8)](_0x47638d(0x126)+_0x459797+_0x47638d(0xc5)+JSON[_0x47638d(0x104)](_0x5a1339[_0x459797][_0x47638d(0xde)]));const _0xcc8bd3={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5a1339},_0x5e49f4={};_0x5e49f4[_0x85ab66]=_0xcc8bd3,_0x55ef4d[_0x47638d(0xac)](_0x5e49f4),logger['debug'](_0x47638d(0xf2)+_0x85ab66+',\x20finalTags='+JSON[_0x47638d(0x104)](_0x5a1339)),!this['testLevelTags'][_0x85ab66]&&(this['testLevelTags'][_0x85ab66]={}),this[_0x47638d(0xed)][_0x85ab66][_0x459797]=CustomTagManager[_0x47638d(0x10f)](this[_0x47638d(0xed)][_0x85ab66][_0x459797],_0x3967ef);}else{const _0x220138=global[_0x47638d(0xe1)]?.['currentTest']?.[_0x47638d(0xc4)];if(!_0x220138){const _0x526157=AutomationFramework[_0x47638d(0xf1)]();_0x85ab66=AutomationFramework[_0x47638d(0xf3)](_0x526157,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x85ab66=TestInfo['getTestIdentifierFromTestInfo'](_0x220138,_0x220138['retry']);const _0x3a3e97=TestInfo[_0x47638d(0xf4)](_0x85ab66),_0x52597e=_0x3a3e97[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x47638d(0xe5)](_0x52597e,_0x459797,_0x3967ef),_0x3a3e97[TestFrameworkConstants[_0x47638d(0x11e)]]=_0x52597e,TestInfo[_0x47638d(0xbf)](_0x85ab66,_0x3a3e97),!this['testLevelTags'][_0x85ab66]&&(this[_0x47638d(0xed)][_0x85ab66]={}),this[_0x47638d(0xed)][_0x85ab66][_0x459797]=CustomTagManager[_0x47638d(0x10f)](this[_0x47638d(0xed)][_0x85ab66][_0x459797],_0x3967ef);}}}static[a86_0x39afab(0xe4)](){const _0x57afe9=a86_0x39afab,_0x4a1cdd={...this[_0x57afe9(0x10c)]};return _0x4a1cdd;}static[a86_0x39afab(0x129)](){const _0x55d5d8={...this['testLevelTags']};return _0x55d5d8;}static['clearTags'](){const _0x24057e=a86_0x39afab;this[_0x24057e(0x10c)]={},this[_0x24057e(0xed)]={};}static[a86_0x39afab(0xcc)](_0x5e6531,_0x29a8ed){const _0x5e4475=a86_0x39afab,_0x45f336={};_0x45f336[_0x5e4475(0xba)]=function(_0x195ea1,_0x96a2f1){return _0x195ea1||_0x96a2f1;};const _0x40b951=_0x45f336;if(!_0x5e6531)return;!this['buildLevelTags'][_0x5e6531]&&(this[_0x5e4475(0x10c)][_0x5e6531]={});for(const [_0x48347d,_0xacd46d]of Object[_0x5e4475(0xec)](_0x40b951[_0x5e4475(0xba)](_0x29a8ed,{}))){if(!_0xacd46d||!Array[_0x5e4475(0xb0)](_0xacd46d[_0x5e4475(0xde)]))continue;this[_0x5e4475(0x10c)][_0x5e6531][_0x48347d]=CustomTagManager[_0x5e4475(0x10f)](this[_0x5e4475(0x10c)][_0x5e6531][_0x48347d],_0xacd46d[_0x5e4475(0xde)]);}}static[a86_0x39afab(0xd6)](_0xfae5b,_0x27be48){const _0x369618=a86_0x39afab,_0x1abaed={};_0x1abaed[_0x369618(0x100)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x1abaed[_0x369618(0xe3)]=function(_0x510abd,_0x2f8b51){return _0x510abd*_0x2f8b51;},_0x1abaed['SuKvo']=function(_0x1acceb,_0x4053f7){return _0x1acceb*_0x4053f7;},_0x1abaed['Dwmyb']=function(_0x3ace80,_0x15103f){return _0x3ace80>_0x15103f;},_0x1abaed[_0x369618(0xc6)]=function(_0xa43ec7,_0x3f5ff2){return _0xa43ec7-_0x3f5ff2;},_0x1abaed[_0x369618(0x11b)]='utf8';const _0x168bc7=_0x1abaed;if(!_0xfae5b)return logger['debug'](_0x168bc7[_0x369618(0x100)]),0x0;let _0x14f918;try{_0x14f918=os[_0x369618(0xc0)]();}catch(_0x50866e){return logger['debug'](_0x369618(0x101)+_0x50866e),0x0;}let _0x4725de;try{_0x4725de=fs[_0x369618(0x10b)](_0x14f918);}catch(_0x1921cc){return logger[_0x369618(0xd8)](_0x369618(0xeb)+_0x1921cc),0x0;}const _0xca3e53=''+BUILD_TAG_FILE_PREFIX+_0xfae5b+'_',_0x57d80f=_0x4725de[_0x369618(0x11d)](_0x23915b=>_0x23915b[_0x369618(0x120)](_0xca3e53)&&_0x23915b[_0x369618(0xb8)](_0x369618(0xb1))),_0x1fd389=_0x168bc7[_0x369618(0xe3)](_0x168bc7[_0x369618(0xad)](_0x168bc7[_0x369618(0xad)](0x2,0x3c),0x3c),0x3e8);let _0x45a0cd=0x0;for(const _0x170f1e of _0x57d80f){const _0x35e85d=path[_0x369618(0xae)](_0x14f918,_0x170f1e);try{const _0x5535dc=fs['statSync'](_0x35e85d);if(_0x168bc7[_0x369618(0x102)](_0x168bc7[_0x369618(0xc6)](Date[_0x369618(0xf8)](),_0x5535dc[_0x369618(0xbc)]),_0x1fd389)){logger[_0x369618(0xd8)](_0x369618(0xf9)+_0x1fd389+_0x369618(0xb3)+_0x170f1e);try{fs[_0x369618(0xd0)](_0x35e85d);}catch(_0x44c4e9){logger['debug'](_0x369618(0xdc)+_0x170f1e+':\x20'+(_0x44c4e9&&_0x44c4e9['message']?_0x44c4e9[_0x369618(0xcd)]:_0x44c4e9));}continue;}const _0x5e8d64=fs['readFileSync'](_0x35e85d,_0x168bc7[_0x369618(0x11b)]),_0x1a79b0=JSON[_0x369618(0x113)](_0x5e8d64);this[_0x369618(0xcc)](_0x27be48,_0x1a79b0),_0x45a0cd+=0x1;}catch(_0x2a1acf){logger[_0x369618(0xd8)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x170f1e+':\x20'+(_0x2a1acf&&_0x2a1acf['message']?_0x2a1acf['message']:_0x2a1acf));}try{fs['unlinkSync'](_0x35e85d);}catch(_0x488847){logger[_0x369618(0xd8)](_0x369618(0xf5)+_0x170f1e+':\x20'+(_0x488847&&_0x488847[_0x369618(0xcd)]?_0x488847[_0x369618(0xcd)]:_0x488847));}}return _0x45a0cd;}}const a86_0x570478={};a86_0x570478[a86_0x39afab(0xdd)]=getBuildTagsRunId,a86_0x570478[a86_0x39afab(0xb9)]=getBuildTagsFilePath,a86_0x570478[a86_0x39afab(0xf0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x39afab(0x12d)]=a86_0x570478,module['exports']=CustomTagManager;
1
+ 'use strict';const a86_0x204a57=a86_0x25c7;(function(_0x379329,_0x1a4f19){const _0x518512=a86_0x25c7,_0x2c7aec=_0x379329();while(!![]){try{const _0x361430=parseInt(_0x518512(0xaa))/0x1*(-parseInt(_0x518512(0xe6))/0x2)+-parseInt(_0x518512(0xd8))/0x3*(parseInt(_0x518512(0xa9))/0x4)+-parseInt(_0x518512(0xdf))/0x5+-parseInt(_0x518512(0xb3))/0x6*(-parseInt(_0x518512(0x88))/0x7)+-parseInt(_0x518512(0xfb))/0x8*(parseInt(_0x518512(0xeb))/0x9)+-parseInt(_0x518512(0xaf))/0xa*(parseInt(_0x518512(0xbb))/0xb)+parseInt(_0x518512(0xca))/0xc;if(_0x361430===_0x1a4f19)break;else _0x2c7aec['push'](_0x2c7aec['shift']());}catch(_0x313f4a){_0x2c7aec['push'](_0x2c7aec['shift']());}}}(a86_0xdca4,0x5435f));function a86_0x25c7(_0x23c365,_0x3cbb6f){const _0xdca4c1=a86_0xdca4();return a86_0x25c7=function(_0x25c722,_0x183026){_0x25c722=_0x25c722-0x82;let _0x4ada00=_0xdca4c1[_0x25c722];return _0x4ada00;},a86_0x25c7(_0x23c365,_0x3cbb6f);}const fs=require('fs'),os=require('os'),path=require(a86_0x204a57(0xc5)),helper=require(a86_0x204a57(0xda)),AutomationFramework=require(a86_0x204a57(0xdd)),TestFrameworkConstants=require(a86_0x204a57(0xd5)),PlaywrightDriverModule=require(a86_0x204a57(0xc7)),TestInfo=require(a86_0x204a57(0xd3)),TestHubModule=require(a86_0x204a57(0xa3)),{createClassLogger}=require(a86_0x204a57(0xd4)),logger=createClassLogger(a86_0x204a57(0xa8)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x8f2149=a86_0x204a57,_0x52a7bd={};_0x52a7bd[_0x8f2149(0xae)]=function(_0x1a993a,_0x5e1b8d){return _0x1a993a===_0x5e1b8d;},_0x52a7bd['IZbSY']=_0x8f2149(0x85);const _0x22225e=_0x52a7bd,_0x286efa=process[_0x8f2149(0xa1)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x286efa||_0x22225e[_0x8f2149(0xae)](_0x286efa,_0x22225e[_0x8f2149(0xc1)]))return null;return _0x286efa;}function a86_0xdca4(){const _0x71f2da=['nfHmd','28746bgbbYH','pid','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','OsdQq',',\x20values=','85959WJfbdm','__workerDetails','testLevelTags','readdirSync','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getBuildTagsRunId','__jestCurrentTestIdentifier','name','getInstance','testhubConfig','RpKDr','MODULE_NAME','vhflH','getAllData','filter','buildLevelTags','8lCAGoB','TEST','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','keys','./state/testFrameworkState','string','gzyEh','multi_dropdown','modules','./browserstackCLI','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract',':jest-','aggregateBuildLevelTagsFromTmp','ymeQc','ZthxK','KEY_TEST_ID','tmpdir','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','isArray','trim','isRunning','null','setTestDetails','clearTags','3986318LLcYsr','statSync','lWPZJ','field_type','getTestFrameworkDetail','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','KXDom',',\x20existingTags=','PkwDO','mergeBuildLevelTags','euOvw','JNSXc','bGqDZ','getTestLevelTags','writeFile','setCustomTags','Vpolb','ahlnh','lbQkT','stringify','\x20->\x20values=','mergeValues','buildHashedId','getBuildLevelTags','endsWith','env','message','./modules/testhubModule','nAEnN','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager','4QjegvQ','42yQCdoD','currentTest','utf8','QxfHG','aZISk','839950TfrzDn','./cliUtils','getTestUUID','from','6MNhSSQ','EbOZS','wgjgT','getTestFramework','Zyftu','parseCommaSeparatedValues',',\x20key=','promises','33EBegqz','values','ms)\x20','debug','.json','startsWith','IZbSY','join','includes','HBZMq','path','testInfo','./modules/playwrightDriverModule','mergeIntoTags','resolveInstance','15322428kMzAUv','chvxv','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','parse','getTrackedInstance','EsKvZ','POST','_testInternals','now','./TestInfo','../../helpers/classLogger','./framework/constants/testFrameworkConstants','entries','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','1353870WUAUwD','retry','../../helpers/helper','BUILD_TAG_FILE_PREFIX','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','./framework/automationFramework','getState','924620uitMwS','mdZtq','getTestDetails','KEY_CUSTOM_TAGS','tNZqv','VosIi'];a86_0xdca4=function(){return _0x71f2da;};return a86_0xdca4();}function getBuildTagsFilePath(_0x53486a){const _0x54bead=a86_0x204a57;return path[_0x54bead(0xc2)](os[_0x54bead(0x10d)](),''+BUILD_TAG_FILE_PREFIX+_0x53486a+'_'+process[_0x54bead(0xe7)]+_0x54bead(0xbf));}class CustomTagManager{static [a86_0x204a57(0xfa)]={};static [a86_0x204a57(0xed)]={};static[a86_0x204a57(0x9d)](_0x462c12,_0x2c2d22){const _0x19f588=a86_0x204a57;return Array[_0x19f588(0xb2)](new Set([..._0x462c12||[],..._0x2c2d22||[]]));}static['mergeIntoTags'](_0x2ba47a,_0x4c7bc7,_0x271aed){const _0x12d229=a86_0x204a57,_0x56e59b={};_0x56e59b['euOvw']=_0x12d229(0x103);const _0x219393=_0x56e59b;if(!_0x2ba47a[_0x4c7bc7]){const _0x3328e0={};_0x3328e0['field_type']=_0x219393[_0x12d229(0x92)],_0x3328e0[_0x12d229(0xbc)]=[..._0x271aed||[]],_0x2ba47a[_0x4c7bc7]=_0x3328e0;}else!_0x2ba47a[_0x4c7bc7][_0x12d229(0x8b)]&&(_0x2ba47a[_0x4c7bc7][_0x12d229(0x8b)]=_0x219393[_0x12d229(0x92)]),!Array[_0x12d229(0x82)](_0x2ba47a[_0x4c7bc7][_0x12d229(0xbc)])&&(_0x2ba47a[_0x4c7bc7]['values']=[]),_0x2ba47a[_0x4c7bc7][_0x12d229(0xbc)]=CustomTagManager[_0x12d229(0x9d)](_0x2ba47a[_0x4c7bc7][_0x12d229(0xbc)],_0x271aed);return _0x2ba47a;}static async[a86_0x204a57(0x97)](_0x473e90,_0x417cef,_0x22051e=![]){const _0x2c7f64=a86_0x204a57,_0x21faa2={'HBZMq':function(_0x119714,_0x34fbe6){return _0x119714!==_0x34fbe6;},'ZthxK':_0x2c7f64(0x101),'wgjgT':_0x2c7f64(0xa7),'mdZtq':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','tgHBo':function(_0x5059e0,_0x57ec9c){return _0x5059e0===_0x57ec9c;},'Zyftu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','bGqDZ':function(_0x491fb5,_0x15b193){return _0x491fb5===_0x15b193;},'vhflH':_0x2c7f64(0x107),'OsdQq':function(_0x512bfd,_0xca1d79){return _0x512bfd(_0xca1d79);},'KXDom':_0x2c7f64(0x105),'bIrWb':function(_0x137a91){return _0x137a91();},'lWPZJ':_0x2c7f64(0x103),'EsKvZ':function(_0x155cb6,_0x5e3c0c){return _0x155cb6>_0x5e3c0c;},'ymeQc':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','tNZqv':_0x2c7f64(0x108),'nAEnN':_0x2c7f64(0xb0),'lHOzk':function(_0x53cba4,_0x485e70){return _0x53cba4(_0x485e70);},'EbOZS':function(_0x436fb5,_0x1aafab){return _0x436fb5===_0x1aafab;},'GbcSX':'jest','JNSXc':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','gentg':function(_0x276e92,_0x11d61a){return _0x276e92(_0x11d61a);},'chvxv':_0x2c7f64(0x106),'QxfHG':function(_0x4f924b,_0x361ab0){return _0x4f924b(_0x361ab0);},'Vpolb':_0x2c7f64(0x100),'VosIi':function(_0x27f694,_0xccf4a6){return _0x27f694(_0xccf4a6);},'gzyEh':'./state/hookState','VJeIG':_0x2c7f64(0xef)};if(_0x21faa2[_0x2c7f64(0xc4)](typeof _0x473e90,_0x21faa2['ZthxK'])){logger[_0x2c7f64(0xbe)](_0x21faa2[_0x2c7f64(0xb5)]);return;}if(_0x21faa2[_0x2c7f64(0xc4)](typeof _0x417cef,_0x21faa2[_0x2c7f64(0x10b)])){logger[_0x2c7f64(0xbe)](_0x21faa2[_0x2c7f64(0xe0)]);return;}if(_0x21faa2['tgHBo'](_0x473e90[_0x2c7f64(0x83)](),'')){logger['debug'](_0x21faa2[_0x2c7f64(0xb7)]);return;}if(_0x21faa2[_0x2c7f64(0x94)](_0x417cef[_0x2c7f64(0x83)](),'')){logger['debug'](_0x21faa2[_0x2c7f64(0xf7)]);return;}const _0xc52c80=helper[_0x2c7f64(0xb8)](_0x417cef);if(_0x22051e){const _0x471301=_0x21faa2['OsdQq'](require,_0x21faa2[_0x2c7f64(0x8e)]),_0x38f8e3=_0x471301[_0x2c7f64(0xf3)](),_0x55c73c=_0x38f8e3&&_0x38f8e3[_0x2c7f64(0x104)][TestHubModule[_0x2c7f64(0xf6)]];if(_0x55c73c){const _0x13a4d5=_0x55c73c?.[_0x2c7f64(0xf4)]?.['toObject']()?.[_0x2c7f64(0x9e)];TestInfo[_0x2c7f64(0xb1)](_0x13a4d5);const _0x373ea4=TestInfo[_0x2c7f64(0xe1)](_0x13a4d5),_0x354955=_0x373ea4[TestFrameworkConstants[_0x2c7f64(0xe2)]]||{};CustomTagManager[_0x2c7f64(0xc8)](_0x354955,_0x473e90,_0xc52c80),_0x373ea4[TestFrameworkConstants[_0x2c7f64(0xe2)]]=_0x354955,TestInfo['setTestDetails'](_0x13a4d5,_0x373ea4);!this['buildLevelTags'][_0x13a4d5]&&(this['buildLevelTags'][_0x13a4d5]={});this[_0x2c7f64(0xfa)][_0x13a4d5][_0x473e90]=CustomTagManager[_0x2c7f64(0x9d)](this[_0x2c7f64(0xfa)][_0x13a4d5][_0x473e90],_0xc52c80);try{const _0x12cb8e=_0x21faa2['bIrWb'](getBuildTagsRunId);if(_0x12cb8e){const _0x57eecf={};for(const [_0x4c8fa6,_0x5a17b1]of Object[_0x2c7f64(0xd6)](this['buildLevelTags'][_0x13a4d5]||{})){_0x57eecf[_0x4c8fa6]={'field_type':_0x21faa2[_0x2c7f64(0x8a)],'values':Array[_0x2c7f64(0x82)](_0x5a17b1)?[..._0x5a17b1]:[]};}_0x21faa2[_0x2c7f64(0xcf)](Object[_0x2c7f64(0xff)](_0x57eecf)['length'],0x0)&&await fs[_0x2c7f64(0xba)][_0x2c7f64(0x96)](_0x21faa2['OsdQq'](getBuildTagsFilePath,_0x12cb8e),JSON['stringify'](_0x57eecf));}else logger[_0x2c7f64(0xbe)](_0x21faa2[_0x2c7f64(0x10a)]);}catch(_0x40e834){logger['debug']('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x40e834&&_0x40e834['message']?_0x40e834[_0x2c7f64(0xa2)]:_0x40e834));}}}else{let _0xdbb8b3;const _0x3959bf=global[_0x2c7f64(0xf1)];let _0x26e810=![];if(_0x3959bf&&_0x3959bf[_0x2c7f64(0xc3)](_0x21faa2[_0x2c7f64(0xe3)]))_0x26e810=!![],_0xdbb8b3=_0x3959bf;else try{const _0x59bc03=_0x21faa2[_0x2c7f64(0xe9)](require,_0x21faa2[_0x2c7f64(0xa4)]),_0x403965=_0x21faa2['lHOzk'](require,_0x21faa2[_0x2c7f64(0x8e)]);if(_0x403965[_0x2c7f64(0xf3)]()[_0x2c7f64(0x84)]()){const _0x381ee8=_0x59bc03[_0x2c7f64(0x8c)]();if(_0x21faa2[_0x2c7f64(0xb4)](_0x381ee8?.[_0x2c7f64(0xf2)]?.[_0x2c7f64(0xa5)](),_0x21faa2['GbcSX'])){const _0x38872b=AutomationFramework[_0x2c7f64(0xce)]();_0xdbb8b3=AutomationFramework['getState'](_0x38872b,PlaywrightDriverModule['KEY_TEST_ID'],''),_0xdbb8b3&&_0xdbb8b3['includes'](_0x21faa2[_0x2c7f64(0xe3)])&&(_0x26e810=!![]);}}}catch(_0x10c623){logger[_0x2c7f64(0xbe)](_0x2c7f64(0xd7)+_0x10c623);}if(_0x26e810){if(!_0xdbb8b3)throw new Error(_0x21faa2[_0x2c7f64(0x93)]);const _0x14f8f3=_0x21faa2['gentg'](require,_0x21faa2[_0x2c7f64(0x8e)]),_0x176113=_0x14f8f3[_0x2c7f64(0xf3)]()[_0x2c7f64(0xb6)]();if(!_0x176113)throw new Error(_0x21faa2[_0x2c7f64(0xcb)]);const _0x497aa3=_0x21faa2[_0x2c7f64(0xad)](require,_0x21faa2[_0x2c7f64(0x98)]),_0x31b402=_0x21faa2[_0x2c7f64(0xe4)](require,_0x21faa2[_0x2c7f64(0x102)]),_0x40d063=_0x176113[_0x2c7f64(0xc9)](_0x497aa3[_0x2c7f64(0xfc)],_0x31b402[_0x2c7f64(0xd0)]);if(!_0x40d063)throw new Error(_0x21faa2['VJeIG']);const _0x57e99b=_0x40d063[_0x2c7f64(0xf8)]()['get'](_0xdbb8b3)||{},_0x27de64=_0x57e99b[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x2c7f64(0xbe)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0xdbb8b3+_0x2c7f64(0xb9)+_0x473e90+_0x2c7f64(0xea)+JSON[_0x2c7f64(0x9b)](_0xc52c80)+_0x2c7f64(0x8f)+JSON[_0x2c7f64(0x9b)](_0x27de64)),CustomTagManager[_0x2c7f64(0xc8)](_0x27de64,_0x473e90,_0xc52c80),logger[_0x2c7f64(0xbe)](_0x2c7f64(0x10e)+_0x473e90+_0x2c7f64(0x9c)+JSON['stringify'](_0x27de64[_0x473e90][_0x2c7f64(0xbc)]));const _0x50996b={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x27de64},_0x2056d2={};_0x2056d2[_0xdbb8b3]=_0x50996b,_0x40d063['addMultipleEntries'](_0x2056d2),logger[_0x2c7f64(0xbe)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0xdbb8b3+',\x20finalTags='+JSON[_0x2c7f64(0x9b)](_0x27de64)),!this[_0x2c7f64(0xed)][_0xdbb8b3]&&(this[_0x2c7f64(0xed)][_0xdbb8b3]={}),this[_0x2c7f64(0xed)][_0xdbb8b3][_0x473e90]=CustomTagManager[_0x2c7f64(0x9d)](this[_0x2c7f64(0xed)][_0xdbb8b3][_0x473e90],_0xc52c80);}else{const _0x2e88e6=global[_0x2c7f64(0xec)]?.[_0x2c7f64(0xab)]?.[_0x2c7f64(0xc6)];if(!_0x2e88e6){const _0x713c14=AutomationFramework['getTrackedInstance']();_0xdbb8b3=AutomationFramework[_0x2c7f64(0xde)](_0x713c14,PlaywrightDriverModule[_0x2c7f64(0x10c)],'');}else _0xdbb8b3=TestInfo['getTestIdentifierFromTestInfo'](_0x2e88e6,_0x2e88e6[_0x2c7f64(0xd9)]);const _0x372848=TestInfo['getTestDetails'](_0xdbb8b3),_0x1259a9=_0x372848[TestFrameworkConstants[_0x2c7f64(0xe2)]]||{};CustomTagManager['mergeIntoTags'](_0x1259a9,_0x473e90,_0xc52c80),_0x372848[TestFrameworkConstants[_0x2c7f64(0xe2)]]=_0x1259a9,TestInfo[_0x2c7f64(0x86)](_0xdbb8b3,_0x372848),!this[_0x2c7f64(0xed)][_0xdbb8b3]&&(this[_0x2c7f64(0xed)][_0xdbb8b3]={}),this[_0x2c7f64(0xed)][_0xdbb8b3][_0x473e90]=CustomTagManager[_0x2c7f64(0x9d)](this['testLevelTags'][_0xdbb8b3][_0x473e90],_0xc52c80);}}}static[a86_0x204a57(0x9f)](){const _0x22211f=a86_0x204a57,_0xed5129={...this[_0x22211f(0xfa)]};return _0xed5129;}static[a86_0x204a57(0x95)](){const _0x3857fa={...this['testLevelTags']};return _0x3857fa;}static[a86_0x204a57(0x87)](){const _0x355fd6=a86_0x204a57;this[_0x355fd6(0xfa)]={},this['testLevelTags']={};}static[a86_0x204a57(0x91)](_0x25d041,_0x5835e7){const _0x41eb53=a86_0x204a57,_0x37ada2={};_0x37ada2[_0x41eb53(0x90)]=function(_0x296ee5,_0xc724e7){return _0x296ee5||_0xc724e7;};const _0xcbc622=_0x37ada2;if(!_0x25d041)return;!this[_0x41eb53(0xfa)][_0x25d041]&&(this[_0x41eb53(0xfa)][_0x25d041]={});for(const [_0x598b39,_0x39e60f]of Object[_0x41eb53(0xd6)](_0xcbc622['PkwDO'](_0x5835e7,{}))){if(!_0x39e60f||!Array[_0x41eb53(0x82)](_0x39e60f[_0x41eb53(0xbc)]))continue;this[_0x41eb53(0xfa)][_0x25d041][_0x598b39]=CustomTagManager[_0x41eb53(0x9d)](this['buildLevelTags'][_0x25d041][_0x598b39],_0x39e60f['values']);}}static[a86_0x204a57(0x109)](_0x3fb548,_0x3e6193){const _0x1adc0e=a86_0x204a57,_0x2898d1={};_0x2898d1[_0x1adc0e(0xf5)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x2898d1['lbQkT']=function(_0x1ce0f3,_0x525f4e){return _0x1ce0f3*_0x525f4e;},_0x2898d1[_0x1adc0e(0xe5)]=function(_0x2638ea,_0x5a2671){return _0x2638ea>_0x5a2671;},_0x2898d1['ahlnh']=function(_0x4af1f7,_0x506bd8){return _0x4af1f7-_0x506bd8;},_0x2898d1['TDNam']=_0x1adc0e(0xac);const _0x2df259=_0x2898d1;if(!_0x3fb548)return logger['debug'](_0x2df259['RpKDr']),0x0;let _0x5bf296;try{_0x5bf296=os[_0x1adc0e(0x10d)]();}catch(_0x115ed1){return logger[_0x1adc0e(0xbe)](_0x1adc0e(0xe8)+_0x115ed1),0x0;}let _0x3457bf;try{_0x3457bf=fs[_0x1adc0e(0xee)](_0x5bf296);}catch(_0x5720cd){return logger[_0x1adc0e(0xbe)](_0x1adc0e(0xcc)+_0x5720cd),0x0;}const _0x30f199=''+BUILD_TAG_FILE_PREFIX+_0x3fb548+'_',_0x1fed3f=_0x3457bf[_0x1adc0e(0xf9)](_0x4c82ef=>_0x4c82ef[_0x1adc0e(0xc0)](_0x30f199)&&_0x4c82ef[_0x1adc0e(0xa0)](_0x1adc0e(0xbf))),_0x2691a5=_0x2df259[_0x1adc0e(0x9a)](_0x2df259[_0x1adc0e(0x9a)](_0x2df259[_0x1adc0e(0x9a)](0x2,0x3c),0x3c),0x3e8);let _0x47d5da=0x0;for(const _0x21d9f4 of _0x1fed3f){const _0x414784=path[_0x1adc0e(0xc2)](_0x5bf296,_0x21d9f4);try{const _0x346536=fs[_0x1adc0e(0x89)](_0x414784);if(_0x2df259[_0x1adc0e(0xe5)](_0x2df259[_0x1adc0e(0x99)](Date[_0x1adc0e(0xd2)](),_0x346536['mtimeMs']),_0x2691a5)){logger[_0x1adc0e(0xbe)](_0x1adc0e(0xfe)+_0x2691a5+_0x1adc0e(0xbd)+_0x21d9f4);try{fs[_0x1adc0e(0xfd)](_0x414784);}catch(_0x1badab){logger[_0x1adc0e(0xbe)](_0x1adc0e(0xdc)+_0x21d9f4+':\x20'+(_0x1badab&&_0x1badab['message']?_0x1badab[_0x1adc0e(0xa2)]:_0x1badab));}continue;}const _0x60d5d=fs['readFileSync'](_0x414784,_0x2df259['TDNam']),_0xea36d1=JSON[_0x1adc0e(0xcd)](_0x60d5d);this['mergeBuildLevelTags'](_0x3e6193,_0xea36d1),_0x47d5da+=0x1;}catch(_0xe8033){logger[_0x1adc0e(0xbe)](_0x1adc0e(0x8d)+_0x21d9f4+':\x20'+(_0xe8033&&_0xe8033[_0x1adc0e(0xa2)]?_0xe8033[_0x1adc0e(0xa2)]:_0xe8033));}try{fs['unlinkSync'](_0x414784);}catch(_0x5f4f24){logger[_0x1adc0e(0xbe)](_0x1adc0e(0xa6)+_0x21d9f4+':\x20'+(_0x5f4f24&&_0x5f4f24['message']?_0x5f4f24[_0x1adc0e(0xa2)]:_0x5f4f24));}}return _0x47d5da;}}const a86_0x2c9fc0={};a86_0x2c9fc0[a86_0x204a57(0xf0)]=getBuildTagsRunId,a86_0x2c9fc0['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x2c9fc0[a86_0x204a57(0xdb)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x204a57(0xd1)]=a86_0x2c9fc0,module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a87_0x71c181=a87_0x2248;function a87_0x2248(_0x285dc5,_0x38239c){const _0x5a23df=a87_0x5a23();return a87_0x2248=function(_0x224890,_0x3e4034){_0x224890=_0x224890-0x11e;let _0x34069e=_0x5a23df[_0x224890];return _0x34069e;},a87_0x2248(_0x285dc5,_0x38239c);}(function(_0x519657,_0x54334c){const _0x1b4eb5=a87_0x2248,_0x31d83b=_0x519657();while(!![]){try{const _0x4cb181=parseInt(_0x1b4eb5(0x121))/0x1*(parseInt(_0x1b4eb5(0x127))/0x2)+parseInt(_0x1b4eb5(0x12b))/0x3*(-parseInt(_0x1b4eb5(0x12c))/0x4)+parseInt(_0x1b4eb5(0x123))/0x5+-parseInt(_0x1b4eb5(0x122))/0x6+-parseInt(_0x1b4eb5(0x130))/0x7*(-parseInt(_0x1b4eb5(0x12d))/0x8)+-parseInt(_0x1b4eb5(0x125))/0x9*(parseInt(_0x1b4eb5(0x12a))/0xa)+-parseInt(_0x1b4eb5(0x129))/0xb*(-parseInt(_0x1b4eb5(0x12e))/0xc);if(_0x4cb181===_0x54334c)break;else _0x31d83b['push'](_0x31d83b['shift']());}catch(_0x3e808c){_0x31d83b['push'](_0x31d83b['shift']());}}}(a87_0x5a23,0xcede6));function a87_0x5a23(){const _0x2fa005=['exports','31320707UcNgBk','110300UhouQy','13677RIaWUy','940KTXyie','56CTcaVP','12pbtQhN','registerObserver','738514TcvtpR','getInstance','NGVWx','observers','../../helpers/classLogger.js','7AejbBp','6838494ZadWZf','3092300KawGHr','freeze','954RMxvwq','push','6662TyMMGZ'];a87_0x5a23=function(){return _0x2fa005;};return a87_0x5a23();}const {createClassLogger}=require(a87_0x71c181(0x120));class EventDispatcher{static #instance=null;constructor(){const _0x42be77=a87_0x71c181;this[_0x42be77(0x11f)]={};}static[a87_0x71c181(0x131)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x71c181(0x12f)](_0x44fc2b,_0x4789d3){const _0x5cc19d=a87_0x71c181;!this['observers'][_0x44fc2b]&&(this[_0x5cc19d(0x11f)][_0x44fc2b]=[]),this[_0x5cc19d(0x11f)][_0x44fc2b][_0x5cc19d(0x126)](_0x4789d3);}async['notifyObserver'](_0x188118,_0xa05d17){const _0x1fd0cc=a87_0x71c181,_0x5d2d06={'NGVWx':function(_0x341542,_0x51fec7){return _0x341542(_0x51fec7);}};if(this[_0x1fd0cc(0x11f)][_0x188118]){for(const _0x12f99a of this[_0x1fd0cc(0x11f)][_0x188118]){await _0x5d2d06[_0x1fd0cc(0x11e)](_0x12f99a,_0xa05d17);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a87_0x71c181(0x124)](eventDispatcher),module[a87_0x71c181(0x128)]=eventDispatcher;
1
+ const a87_0x44b642=a87_0x1a2a;(function(_0xfd9ab0,_0x2f1eb2){const _0x283f47=a87_0x1a2a,_0x3c8b00=_0xfd9ab0();while(!![]){try{const _0x14ef91=-parseInt(_0x283f47(0xff))/0x1+-parseInt(_0x283f47(0x101))/0x2*(-parseInt(_0x283f47(0xf9))/0x3)+parseInt(_0x283f47(0xf8))/0x4*(-parseInt(_0x283f47(0x107))/0x5)+parseInt(_0x283f47(0xfa))/0x6*(-parseInt(_0x283f47(0xfb))/0x7)+-parseInt(_0x283f47(0x105))/0x8+-parseInt(_0x283f47(0xfc))/0x9+parseInt(_0x283f47(0xfe))/0xa;if(_0x14ef91===_0x2f1eb2)break;else _0x3c8b00['push'](_0x3c8b00['shift']());}catch(_0x2045f9){_0x3c8b00['push'](_0x3c8b00['shift']());}}}(a87_0x2a00,0xa2add));function a87_0x1a2a(_0x5cd1bf,_0x100b19){const _0x2a0043=a87_0x2a00();return a87_0x1a2a=function(_0x1a2a1e,_0x2f8fe2){_0x1a2a1e=_0x1a2a1e-0xf7;let _0x51cc61=_0x2a0043[_0x1a2a1e];return _0x51cc61;},a87_0x1a2a(_0x5cd1bf,_0x100b19);}const {createClassLogger}=require(a87_0x44b642(0x104));function a87_0x2a00(){const _0x4c6a81=['3226038dOshRN','48lFwBuk','263088cffvGh','9918648wcrLFg','observers','34579580nLaoTR','936063netURY','notifyObserver','2JOHXLF','exports','registerObserver','../../helpers/classLogger.js','8042664lIkGbJ','TCROP','14285tbUNer','freeze','732pNGAnG'];a87_0x2a00=function(){return _0x4c6a81;};return a87_0x2a00();}class EventDispatcher{static #instance=null;constructor(){const _0x5968a0=a87_0x44b642;this[_0x5968a0(0xfd)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x44b642(0x103)](_0x11ccae,_0x5f0db1){const _0x45c01f=a87_0x44b642;!this[_0x45c01f(0xfd)][_0x11ccae]&&(this[_0x45c01f(0xfd)][_0x11ccae]=[]),this[_0x45c01f(0xfd)][_0x11ccae]['push'](_0x5f0db1);}async[a87_0x44b642(0x100)](_0x56a1c0,_0x49ad5c){const _0x493e02=a87_0x44b642,_0x24f8e3={'TCROP':function(_0x4d166e,_0x48a30f){return _0x4d166e(_0x48a30f);}};if(this[_0x493e02(0xfd)][_0x56a1c0]){for(const _0x2ee5c5 of this['observers'][_0x56a1c0]){await _0x24f8e3[_0x493e02(0x106)](_0x2ee5c5,_0x49ad5c);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a87_0x44b642(0xf7)](eventDispatcher),module[a87_0x44b642(0x102)]=eventDispatcher;
@@ -1 +1 @@
1
- const a88_0x1a2b20=a88_0x4562;function a88_0x4669(){const _0x1e10c2=['automation_sessions','automationFrameworkName','16HXbOmS','getState','automationFrameworkVersion','2058162vftULK','instances','get','exports','../../../helpers/classLogger.js','getAllData','491813hikSdP','../eventDispatcher.js','getCurrentInstanceName','416310QEwgbX','setState','util','../instances/trackedInstance.js','trackEvent','getHookRegistryKey','getTrackedInstance','non_browserstack_automation_sessions','createContext','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getId','593HoTnVL','5tgFQPx','2974221LuCewN','KEY_AUTOMATION_SESSIONS','3570870XNGnvE','set','3336836QaEpJW','2074jehUmK','275eQsFYv','registerObserver','getAutomationFrameworkVersion'];a88_0x4669=function(){return _0x1e10c2;};return a88_0x4669();}(function(_0x1d700a,_0x574ffd){const _0x4840e0=a88_0x4562,_0x3b704d=_0x1d700a();while(!![]){try{const _0x4155ad=parseInt(_0x4840e0(0xb8))/0x1*(parseInt(_0x4840e0(0x9b))/0x2)+parseInt(_0x4840e0(0xa4))/0x3+-parseInt(_0x4840e0(0x9a))/0x4+-parseInt(_0x4840e0(0xb9))/0x5*(parseInt(_0x4840e0(0x98))/0x6)+-parseInt(_0x4840e0(0xaa))/0x7*(-parseInt(_0x4840e0(0xa1))/0x8)+-parseInt(_0x4840e0(0x96))/0x9+parseInt(_0x4840e0(0xad))/0xa*(parseInt(_0x4840e0(0x9c))/0xb);if(_0x4155ad===_0x574ffd)break;else _0x3b704d['push'](_0x3b704d['shift']());}catch(_0x2c0a84){_0x3b704d['push'](_0x3b704d['shift']());}}}(a88_0x4669,0xb0621));const {createClassLogger}=require(a88_0x1a2b20(0xa8)),util=require(a88_0x1a2b20(0xaf)),eventDispatcher=require(a88_0x1a2b20(0xab)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a88_0x1a2b20(0xb0)),logger=createClassLogger('AutomationFramework');function a88_0x4562(_0x37a5a9,_0x2e7b55){const _0x466900=a88_0x4669();return a88_0x4562=function(_0x4562e7,_0x3db4cd){_0x4562e7=_0x4562e7-0x96;let _0x38db1b=_0x466900[_0x4562e7];return _0x38db1b;},a88_0x4562(_0x37a5a9,_0x2e7b55);}class AutomationFramework{static [a88_0x1a2b20(0xa5)]=new Map();static [a88_0x1a2b20(0x97)]=a88_0x1a2b20(0x9f);static [a88_0x1a2b20(0xb6)]=a88_0x1a2b20(0xb4);constructor(_0x3e1a98,_0xd7043){const _0x571ef8=a88_0x1a2b20;this['automationFrameworkName']=_0x3e1a98,this[_0x571ef8(0xa3)]=_0xd7043;}['getAutomationFrameworkName'](){const _0x42593b=a88_0x1a2b20;return this[_0x42593b(0xa0)];}[a88_0x1a2b20(0x9e)](){const _0x9071e6=a88_0x1a2b20;return this[_0x9071e6(0xa3)];}async[a88_0x1a2b20(0xb1)](_0x1a40e0,_0x334b47,_0x33e0e9={}){logger['debug']('trackEvent:\x20automationFrameworkState='+_0x1a40e0+'\x20hookState='+_0x334b47);}async['runHooks'](_0x29a769,_0x467371,_0x301677,_0x29cbdb={}){const _0x3f57e4=CLIUtils['getHookRegistryKey'](_0x467371,_0x301677);_0x29a769&&_0x29a769['setState'](_0x467371),await eventDispatcher['notifyObserver'](_0x3f57e4,_0x29cbdb);}static[a88_0x1a2b20(0x9d)](_0xa1f89d,_0xb81733,_0x200a60){const _0x194744=a88_0x1a2b20;eventDispatcher[_0x194744(0x9d)](CLIUtils[_0x194744(0xb2)](_0xa1f89d,_0xb81733),_0x200a60);}static['setTrackedInstance'](_0x483724,_0xd1654e){const _0x493452=a88_0x1a2b20;AutomationFramework[_0x493452(0xa5)][_0x493452(0x99)](_0x483724[_0x493452(0xb7)](),_0xd1654e);}static[a88_0x1a2b20(0xb3)](){const _0x3356eb=a88_0x1a2b20,_0x1a2c9f=TrackedInstance[_0x3356eb(0xb5)](CLIUtils[_0x3356eb(0xac)]());return AutomationFramework['instances'][_0x3356eb(0xa6)](_0x1a2c9f[_0x3356eb(0xb7)]());}static[a88_0x1a2b20(0xae)](_0x37beb4,_0x867b27,_0x2efe47){const _0x5e8e7c=a88_0x1a2b20;_0x37beb4[_0x5e8e7c(0xa9)]()[_0x5e8e7c(0x99)](_0x867b27,_0x2efe47);}static[a88_0x1a2b20(0xa2)](_0x19bf21,_0x4bbd94){const _0x5d871e=a88_0x1a2b20;return _0x19bf21[_0x5d871e(0xa9)]()[_0x5d871e(0xa6)](_0x4bbd94);}}module[a88_0x1a2b20(0xa7)]=AutomationFramework;
1
+ function a88_0x1f46(){const _0x1bd67f=['instances','7474908uQNWFI','getCurrentInstanceName','setState','exports','notifyObserver','getHookRegistryKey','non_browserstack_automation_sessions','155142CAoaUe','../eventDispatcher.js','\x20hookState=','getAutomationFrameworkName','set','KEY_AUTOMATION_SESSIONS','getId','util','../instances/trackedInstance.js','setTrackedInstance','automationFrameworkName','registerObserver','13pQDQUc','createContext','../../../helpers/classLogger.js','debug','get','6381408JZkfkH','60222069EIBACy','2304264AZomCH','automation_sessions','7GyPugE','trackEvent','getState','../cliUtils.js','8740795EeKUwU','5097786buAjqK','automationFrameworkVersion','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','trackEvent:\x20automationFrameworkState=','getTrackedInstance','getAllData'];a88_0x1f46=function(){return _0x1bd67f;};return a88_0x1f46();}const a88_0x2bc5c5=a88_0x39ae;(function(_0x5f54c0,_0xf1609d){const _0xb76f9d=a88_0x39ae,_0x129e12=_0x5f54c0();while(!![]){try{const _0x1de850=-parseInt(_0xb76f9d(0x190))/0x1*(-parseInt(_0xb76f9d(0x1ac))/0x2)+parseInt(_0xb76f9d(0x19e))/0x3+parseInt(_0xb76f9d(0x1a5))/0x4+parseInt(_0xb76f9d(0x19d))/0x5+parseInt(_0xb76f9d(0x195))/0x6+-parseInt(_0xb76f9d(0x199))/0x7*(-parseInt(_0xb76f9d(0x197))/0x8)+-parseInt(_0xb76f9d(0x196))/0x9;if(_0x1de850===_0xf1609d)break;else _0x129e12['push'](_0x129e12['shift']());}catch(_0x19db77){_0x129e12['push'](_0x129e12['shift']());}}}(a88_0x1f46,0xf06ff));const {createClassLogger}=require(a88_0x2bc5c5(0x192)),util=require(a88_0x2bc5c5(0x1b3)),eventDispatcher=require(a88_0x2bc5c5(0x1ad)),CLIUtils=require(a88_0x2bc5c5(0x19c)),TrackedInstance=require(a88_0x2bc5c5(0x1b4)),logger=createClassLogger('AutomationFramework');function a88_0x39ae(_0x10cc26,_0x5d3c7b){const _0x1f46ce=a88_0x1f46();return a88_0x39ae=function(_0x39aed4,_0x59809e){_0x39aed4=_0x39aed4-0x190;let _0x26b8e4=_0x1f46ce[_0x39aed4];return _0x26b8e4;},a88_0x39ae(_0x10cc26,_0x5d3c7b);}class AutomationFramework{static [a88_0x2bc5c5(0x1a4)]=new Map();static [a88_0x2bc5c5(0x1b1)]=a88_0x2bc5c5(0x198);static [a88_0x2bc5c5(0x1a0)]=a88_0x2bc5c5(0x1ab);constructor(_0x576793,_0x54c27a){const _0x8f37d1=a88_0x2bc5c5;this[_0x8f37d1(0x1b6)]=_0x576793,this['automationFrameworkVersion']=_0x54c27a;}[a88_0x2bc5c5(0x1af)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){const _0x151c39=a88_0x2bc5c5;return this[_0x151c39(0x19f)];}async[a88_0x2bc5c5(0x19a)](_0x4e4914,_0x6115be,_0x3b866b={}){const _0xda84d6=a88_0x2bc5c5;logger[_0xda84d6(0x193)](_0xda84d6(0x1a1)+_0x4e4914+_0xda84d6(0x1ae)+_0x6115be);}async['runHooks'](_0x41685f,_0x587e0d,_0x10e04d,_0x55217d={}){const _0x510428=a88_0x2bc5c5,_0x67b216=CLIUtils[_0x510428(0x1aa)](_0x587e0d,_0x10e04d);_0x41685f&&_0x41685f[_0x510428(0x1a7)](_0x587e0d),await eventDispatcher[_0x510428(0x1a9)](_0x67b216,_0x55217d);}static['registerObserver'](_0x16f446,_0x53b643,_0xecf34e){const _0x551900=a88_0x2bc5c5;eventDispatcher[_0x551900(0x1b7)](CLIUtils['getHookRegistryKey'](_0x16f446,_0x53b643),_0xecf34e);}static[a88_0x2bc5c5(0x1b5)](_0x3863a3,_0x38b8be){const _0x1e7c5e=a88_0x2bc5c5;AutomationFramework['instances'][_0x1e7c5e(0x1b0)](_0x3863a3[_0x1e7c5e(0x1b2)](),_0x38b8be);}static[a88_0x2bc5c5(0x1a2)](){const _0x4bd0a0=a88_0x2bc5c5,_0x29bc4f=TrackedInstance[_0x4bd0a0(0x191)](CLIUtils[_0x4bd0a0(0x1a6)]());return AutomationFramework[_0x4bd0a0(0x1a4)][_0x4bd0a0(0x194)](_0x29bc4f[_0x4bd0a0(0x1b2)]());}static[a88_0x2bc5c5(0x1a7)](_0x537e7c,_0x441440,_0x1fb7c5){const _0x18e118=a88_0x2bc5c5;_0x537e7c[_0x18e118(0x1a3)]()[_0x18e118(0x1b0)](_0x441440,_0x1fb7c5);}static[a88_0x2bc5c5(0x19b)](_0xf0549e,_0x23696a){const _0x559b09=a88_0x2bc5c5;return _0xf0549e['getAllData']()[_0x559b09(0x194)](_0x23696a);}}module[a88_0x2bc5c5(0x1a8)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x18e806=a89_0x24e5;(function(_0x1cb78d,_0xd2b149){const _0x50aaaa=a89_0x24e5,_0x3893df=_0x1cb78d();while(!![]){try{const _0x799291=-parseInt(_0x50aaaa(0xc0))/0x1+-parseInt(_0x50aaaa(0xb4))/0x2+-parseInt(_0x50aaaa(0xc2))/0x3+-parseInt(_0x50aaaa(0xc7))/0x4+parseInt(_0x50aaaa(0xbe))/0x5*(parseInt(_0x50aaaa(0xb1))/0x6)+parseInt(_0x50aaaa(0xcb))/0x7*(-parseInt(_0x50aaaa(0xb6))/0x8)+parseInt(_0x50aaaa(0xca))/0x9;if(_0x799291===_0xd2b149)break;else _0x3893df['push'](_0x3893df['shift']());}catch(_0x9c26eb){_0x3893df['push'](_0x3893df['shift']());}}}(a89_0x4d02,0x791d0));function a89_0x4d02(){const _0x49032d=['COMMAND_W3C_EXECUTE_SCRIPT','w3cexecutescript','2976660lQEsqU','capabilities','get','20483964sIHISY','14qQaMFi','KEY_IS_BROWSERSTACK_HUB','is_browserstack_hub','KEY_INPUT_CAPABILITIES','BROWSERSTACK_PLATFORM_INDEX','2802yZXtOa','started_at','newsession','1348196fTuFrf','platform_index','416968VAQEVj','KEY_CAPABILITIES','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','ENV_BROWSERSTACK_PLATFORM_INDEX','COMMAND_NEW_SESSION','hub_url','4685SKGcsC','KEY_HUB_URL','207256xdaJJN','screenshot','1463202kyvgZT','KEY_STARTED_AT','input_capabilities'];a89_0x4d02=function(){return _0x49032d;};return a89_0x4d02();}const a89_0x244f63={};a89_0x244f63[a89_0x18e806(0xbb)]=a89_0x18e806(0xcf),a89_0x244f63[a89_0x18e806(0xbf)]=a89_0x18e806(0xbd),a89_0x244f63['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x244f63[a89_0x18e806(0xce)]=a89_0x18e806(0xc4),a89_0x244f63[a89_0x18e806(0xb7)]=a89_0x18e806(0xc8),a89_0x244f63[a89_0x18e806(0xcc)]=a89_0x18e806(0xcd),a89_0x244f63[a89_0x18e806(0xc3)]=a89_0x18e806(0xb2),a89_0x244f63[a89_0x18e806(0xb8)]='ended_at',a89_0x244f63['KEY_PLATFORM_INDEX']=a89_0x18e806(0xb5),a89_0x244f63[a89_0x18e806(0xbc)]=a89_0x18e806(0xb3),a89_0x244f63['COMMAND_GET']=a89_0x18e806(0xc9),a89_0x244f63[a89_0x18e806(0xba)]=a89_0x18e806(0xc1),a89_0x244f63[a89_0x18e806(0xc5)]=a89_0x18e806(0xc6),a89_0x244f63[a89_0x18e806(0xb9)]='w3cexecutescriptasync',a89_0x244f63['COMMAND_QUIT']='quit';function a89_0x24e5(_0xee048e,_0x495afd){const _0x4d027e=a89_0x4d02();return a89_0x24e5=function(_0x24e5b7,_0x3e1061){_0x24e5b7=_0x24e5b7-0xb1;let _0x24d82c=_0x4d027e[_0x24e5b7];return _0x24d82c;},a89_0x24e5(_0xee048e,_0x495afd);}const AutomationFrameworkConstants=a89_0x244f63;module['exports']=AutomationFrameworkConstants;
1
+ function a89_0x53c4(){const _0x11a7a8=['74967qHfNQw','exports','w3cexecutescript','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_NEW_SESSION','framework_session_id','532224mXLsSc','KEY_ENDED_AT','started_at','4lEvQVm','11800CCMNfb','COMMAND_GET','KEY_INPUT_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','ended_at','KEY_STARTED_AT','KEY_FRAMEWORK_SESSION_ID','input_capabilities','427VWuixG','622795bMZqfO','KEY_IS_BROWSERSTACK_HUB','w3cexecutescriptasync','41962vySybv','KEY_HUB_URL','4364127ZQKZlu','newsession','ENV_BROWSERSTACK_PLATFORM_INDEX','199145EbcLvP','hub_url'];a89_0x53c4=function(){return _0x11a7a8;};return a89_0x53c4();}const a89_0x1d1af3=a89_0x383e;(function(_0x6e7c52,_0x4c6708){const _0x138807=a89_0x383e,_0x40a705=_0x6e7c52();while(!![]){try{const _0x1d8e83=-parseInt(_0x138807(0x181))/0x1+-parseInt(_0x138807(0x19a))/0x2+-parseInt(_0x138807(0x183))/0x3+parseInt(_0x138807(0x18c))/0x4*(-parseInt(_0x138807(0x197))/0x5)+-parseInt(_0x138807(0x189))/0x6+parseInt(_0x138807(0x196))/0x7*(parseInt(_0x138807(0x18d))/0x8)+parseInt(_0x138807(0x19c))/0x9;if(_0x1d8e83===_0x4c6708)break;else _0x40a705['push'](_0x40a705['shift']());}catch(_0x371db7){_0x40a705['push'](_0x40a705['shift']());}}}(a89_0x53c4,0x1c714));function a89_0x383e(_0x155f4e,_0x4a5c67){const _0x53c4d2=a89_0x53c4();return a89_0x383e=function(_0x383e73,_0x533da5){_0x383e73=_0x383e73-0x17f;let _0x5d4e2a=_0x53c4d2[_0x383e73];return _0x5d4e2a;},a89_0x383e(_0x155f4e,_0x4a5c67);}const a89_0x815d7a={};a89_0x815d7a[a89_0x1d1af3(0x180)]='BROWSERSTACK_PLATFORM_INDEX',a89_0x815d7a[a89_0x1d1af3(0x19b)]=a89_0x1d1af3(0x182),a89_0x815d7a[a89_0x1d1af3(0x194)]=a89_0x1d1af3(0x188),a89_0x815d7a[a89_0x1d1af3(0x18f)]=a89_0x1d1af3(0x195),a89_0x815d7a['KEY_CAPABILITIES']='capabilities',a89_0x815d7a[a89_0x1d1af3(0x198)]='is_browserstack_hub',a89_0x815d7a[a89_0x1d1af3(0x193)]=a89_0x1d1af3(0x18b),a89_0x815d7a[a89_0x1d1af3(0x18a)]=a89_0x1d1af3(0x192),a89_0x815d7a[a89_0x1d1af3(0x191)]='platform_index',a89_0x815d7a[a89_0x1d1af3(0x187)]=a89_0x1d1af3(0x17f),a89_0x815d7a[a89_0x1d1af3(0x18e)]='get',a89_0x815d7a['COMMAND_SCREENSHOT']='screenshot',a89_0x815d7a[a89_0x1d1af3(0x186)]=a89_0x1d1af3(0x185),a89_0x815d7a[a89_0x1d1af3(0x190)]=a89_0x1d1af3(0x199),a89_0x815d7a['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a89_0x815d7a;module[a89_0x1d1af3(0x184)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0x1fb3(){const _0x1d3a2b=['test_framework_name','event_ended_at','DEFAULT_TEST_RESULT','test_tags','test_session_name','test_duration','event_started_at','automate_session_reason','KEY_TEST_FRAMEWORK_NAME','KIND_SCREENSHOT','KEY_TEST_META','KEY_EVENT_STARTED_AT','99LYjqOj','KIND_LOG','KEY_TEST_UUID','494768OqiOLg','KEY_AUTOMATE_SESSION_STATUS','file_level','test_scopes','KEY_TEST_TAGS','KEY_TEST_SCOPE','KEY_TEST_ID','test_uuid','TEST_LOG','KEY_TEST_FAILURE_TYPE','KEY_SESSION_NAME','automate_session_name','5qGMebn','1863228VVafpl','KEY_FILE_LEVEL','test_framework_version','automate_session_status','KEY_LOGS','hook_failure_type','file_name','KEY_TEST_NAME','KEY_TEST_STARTED_AT','test_id','test_result_at','test_hook_last_started','KEY_HOOK_LAST_FINISHED','KEY_TEST_CODE','KEY_TEST_RETRY_OF','KEY_HOOK_LOGS','2944380LhtZkZ','KEY_HOOK_FAILURE_TYPE','test_failure_reason','test_failure','KEY_TEST_ATTACHMENTS','36549964RZuVyK','DEFAULT_HOOK_RESULT','test_location','KEY_TEST_RESULT','303988kulCMj','KEY_TEST_LOCATION','KEY_CUSTOM_TAGS','retry_of','test_ended_at','hook_logs','9318631SbKOqI','KEY_TEST_RERUN_NAME','3ZymqXg','test_screenshots','test_hooks_started','KEY_HOOK_LAST_STARTED','hook_failure','test_file_path','test_name','TEST_SCREENSHOT','file_path','KEY_TEST_LOGS','KEY_FILE_NAME','test_hooks_finished','KEY_TEST_FRAMEWORK_VERSION','test_hook_last_finished','KEY_EVENT_ENDED_AT','MAX_TOP_LEVEL_STEPS','KEY_AUTOMATE_SESSION_REASON','test_meta','platform_index','11907250yGswed','KEY_PLATFORM_INDEX','test_result','KEY_HOOKS_FINISHED','KEY_TEST_FILE_PATH','file_size','KEY_TEST_DURATION','test_failure_type','test_code','KEY_TEST_ENDED_AT','pending','hook_result','KEY_HOOK_FAILURE','test_logs','5prhIwz','logs','KEY_HOOKS_STARTED','KEY_HOOK_RESULT','KEY_FILE_PATH'];a90_0x1fb3=function(){return _0x1d3a2b;};return a90_0x1fb3();}const a90_0x217e14=a90_0x1902;(function(_0x5caf77,_0x73726a){const _0x3bafea=a90_0x1902,_0xd226da=_0x5caf77();while(!![]){try{const _0x68a683=-parseInt(_0x3bafea(0x200))/0x1*(parseInt(_0x3bafea(0x23a))/0x2)+parseInt(_0x3bafea(0x242))/0x3*(parseInt(_0x3bafea(0x221))/0x4)+parseInt(_0x3bafea(0x220))/0x5*(-parseInt(_0x3bafea(0x231))/0x6)+-parseInt(_0x3bafea(0x240))/0x7+parseInt(_0x3bafea(0x214))/0x8*(parseInt(_0x3bafea(0x211))/0x9)+-parseInt(_0x3bafea(0x1f2))/0xa+parseInt(_0x3bafea(0x236))/0xb;if(_0x68a683===_0x73726a)break;else _0xd226da['push'](_0xd226da['shift']());}catch(_0xdc8c4c){_0xd226da['push'](_0xd226da['shift']());}}}(a90_0x1fb3,0xa9f73));const a90_0x37e4cb={};a90_0x37e4cb[a90_0x217e14(0x213)]=a90_0x217e14(0x21b),a90_0x37e4cb[a90_0x217e14(0x21a)]=a90_0x217e14(0x22a),a90_0x37e4cb[a90_0x217e14(0x228)]=a90_0x217e14(0x248),a90_0x37e4cb[a90_0x217e14(0x1f6)]=a90_0x217e14(0x247),a90_0x37e4cb[a90_0x217e14(0x218)]=a90_0x217e14(0x208),a90_0x37e4cb[a90_0x217e14(0x239)]=a90_0x217e14(0x1f4),a90_0x37e4cb['KEY_TEST_RESULT_AT']=a90_0x217e14(0x22b),a90_0x37e4cb[a90_0x217e14(0x229)]='test_started_at',a90_0x37e4cb[a90_0x217e14(0x1fb)]=a90_0x217e14(0x23e),a90_0x37e4cb[a90_0x217e14(0x23b)]=a90_0x217e14(0x238),a90_0x37e4cb[a90_0x217e14(0x1f8)]=a90_0x217e14(0x20a),a90_0x37e4cb[a90_0x217e14(0x219)]='test_scope',a90_0x37e4cb['KEY_TEST_SCOPES']=a90_0x217e14(0x217),a90_0x37e4cb[a90_0x217e14(0x20d)]=a90_0x217e14(0x205),a90_0x37e4cb[a90_0x217e14(0x1eb)]=a90_0x217e14(0x223),a90_0x37e4cb[a90_0x217e14(0x22e)]=a90_0x217e14(0x1fa),a90_0x37e4cb[a90_0x217e14(0x241)]='test_rerun_name',a90_0x37e4cb[a90_0x217e14(0x22f)]=a90_0x217e14(0x23d),a90_0x37e4cb[a90_0x217e14(0x1f3)]=a90_0x217e14(0x1f1),a90_0x37e4cb['KEY_TEST_FAILURE']=a90_0x217e14(0x234),a90_0x37e4cb[a90_0x217e14(0x21d)]=a90_0x217e14(0x1f9),a90_0x37e4cb['KEY_TEST_FAILURE_REASON']=a90_0x217e14(0x233),a90_0x37e4cb[a90_0x217e14(0x24b)]=a90_0x217e14(0x1ff),a90_0x37e4cb[a90_0x217e14(0x20f)]=a90_0x217e14(0x1f0),a90_0x37e4cb[a90_0x217e14(0x21e)]=a90_0x217e14(0x209),a90_0x37e4cb['KEY_AUTOMATE_SESSION_NAME']=a90_0x217e14(0x21f),a90_0x37e4cb[a90_0x217e14(0x215)]=a90_0x217e14(0x224),a90_0x37e4cb[a90_0x217e14(0x1ef)]=a90_0x217e14(0x20c),a90_0x37e4cb[a90_0x217e14(0x210)]=a90_0x217e14(0x20b),a90_0x37e4cb[a90_0x217e14(0x1ed)]=a90_0x217e14(0x206),a90_0x37e4cb['KEY_HOOK_ID']='hook_id',a90_0x37e4cb[a90_0x217e14(0x203)]=a90_0x217e14(0x1fd),a90_0x37e4cb[a90_0x217e14(0x232)]=a90_0x217e14(0x226),a90_0x37e4cb['KEY_HOOK_FAILURE_REASON']='hook_failure_reason',a90_0x37e4cb[a90_0x217e14(0x1fe)]=a90_0x217e14(0x246),a90_0x37e4cb[a90_0x217e14(0x230)]=a90_0x217e14(0x23f),a90_0x37e4cb['KEY_HOOK_NAME']='hook_name',a90_0x37e4cb[a90_0x217e14(0x207)]=a90_0x217e14(0x1fc),a90_0x37e4cb[a90_0x217e14(0x237)]=a90_0x217e14(0x1fc),a90_0x37e4cb[a90_0x217e14(0x20e)]=a90_0x217e14(0x249),a90_0x37e4cb[a90_0x217e14(0x212)]=a90_0x217e14(0x21c),a90_0x37e4cb['HOOK_REGEX']='^(BEFORE_|AFTER_)',a90_0x37e4cb[a90_0x217e14(0x202)]=a90_0x217e14(0x244),a90_0x37e4cb[a90_0x217e14(0x1f5)]=a90_0x217e14(0x1ea),a90_0x37e4cb[a90_0x217e14(0x245)]=a90_0x217e14(0x22c),a90_0x37e4cb[a90_0x217e14(0x22d)]=a90_0x217e14(0x1ec),a90_0x37e4cb[a90_0x217e14(0x225)]=a90_0x217e14(0x201),a90_0x37e4cb[a90_0x217e14(0x23c)]='custom_metadata',a90_0x37e4cb[a90_0x217e14(0x235)]='test_attachments',a90_0x37e4cb['KEY_FILE_SIZE']=a90_0x217e14(0x1f7),a90_0x37e4cb[a90_0x217e14(0x24c)]=a90_0x217e14(0x227),a90_0x37e4cb[a90_0x217e14(0x204)]=a90_0x217e14(0x24a),a90_0x37e4cb[a90_0x217e14(0x222)]=a90_0x217e14(0x216),a90_0x37e4cb['KEY_TEST_SCREENSHOTS']=a90_0x217e14(0x243),a90_0x37e4cb[a90_0x217e14(0x1ee)]=0xa,a90_0x37e4cb['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a90_0x37e4cb;function a90_0x1902(_0x711296,_0x41a327){const _0x1fb39f=a90_0x1fb3();return a90_0x1902=function(_0x190203,_0x5ddc88){_0x190203=_0x190203-0x1ea;let _0x4ba5c2=_0x1fb39f[_0x190203];return _0x4ba5c2;},a90_0x1902(_0x711296,_0x41a327);}module['exports']=TestFrameworkConstants;
1
+ function a90_0x3b33(_0x1bfda0,_0x2f0f9b){const _0x558785=a90_0x5587();return a90_0x3b33=function(_0x3b3364,_0x5ef327){_0x3b3364=_0x3b3364-0x14d;let _0x181b42=_0x558785[_0x3b3364];return _0x181b42;},a90_0x3b33(_0x1bfda0,_0x2f0f9b);}const a90_0x5c469d=a90_0x3b33;(function(_0x1b0401,_0x34d4a0){const _0x300bb8=a90_0x3b33,_0x113891=_0x1b0401();while(!![]){try{const _0x2e28d9=parseInt(_0x300bb8(0x1a5))/0x1*(parseInt(_0x300bb8(0x196))/0x2)+parseInt(_0x300bb8(0x19c))/0x3+-parseInt(_0x300bb8(0x1a1))/0x4*(-parseInt(_0x300bb8(0x1a6))/0x5)+parseInt(_0x300bb8(0x158))/0x6*(parseInt(_0x300bb8(0x18d))/0x7)+-parseInt(_0x300bb8(0x187))/0x8+-parseInt(_0x300bb8(0x157))/0x9*(-parseInt(_0x300bb8(0x19a))/0xa)+-parseInt(_0x300bb8(0x19d))/0xb*(parseInt(_0x300bb8(0x186))/0xc);if(_0x2e28d9===_0x34d4a0)break;else _0x113891['push'](_0x113891['shift']());}catch(_0x5668ab){_0x113891['push'](_0x113891['shift']());}}}(a90_0x5587,0x23cbe));const a90_0x462bf6={};a90_0x462bf6[a90_0x5c469d(0x179)]='test_uuid',a90_0x462bf6[a90_0x5c469d(0x163)]=a90_0x5c469d(0x154),a90_0x462bf6[a90_0x5c469d(0x191)]='test_name',a90_0x462bf6['KEY_TEST_FILE_PATH']=a90_0x5c469d(0x15a),a90_0x462bf6[a90_0x5c469d(0x156)]=a90_0x5c469d(0x18b),a90_0x462bf6[a90_0x5c469d(0x167)]=a90_0x5c469d(0x185),a90_0x462bf6['KEY_TEST_RESULT_AT']=a90_0x5c469d(0x176),a90_0x462bf6['KEY_TEST_STARTED_AT']='test_started_at',a90_0x462bf6[a90_0x5c469d(0x14e)]=a90_0x5c469d(0x155),a90_0x462bf6[a90_0x5c469d(0x177)]='test_location',a90_0x462bf6[a90_0x5c469d(0x14f)]=a90_0x5c469d(0x19b),a90_0x462bf6['KEY_TEST_SCOPE']=a90_0x5c469d(0x17b),a90_0x462bf6[a90_0x5c469d(0x15c)]='test_scopes',a90_0x462bf6[a90_0x5c469d(0x197)]=a90_0x5c469d(0x165),a90_0x462bf6[a90_0x5c469d(0x17d)]='test_framework_version',a90_0x462bf6[a90_0x5c469d(0x150)]=a90_0x5c469d(0x160),a90_0x462bf6['KEY_TEST_RERUN_NAME']=a90_0x5c469d(0x170),a90_0x462bf6[a90_0x5c469d(0x180)]='retry_of',a90_0x462bf6[a90_0x5c469d(0x161)]=a90_0x5c469d(0x17c),a90_0x462bf6[a90_0x5c469d(0x15e)]=a90_0x5c469d(0x199),a90_0x462bf6[a90_0x5c469d(0x182)]=a90_0x5c469d(0x1a7),a90_0x462bf6[a90_0x5c469d(0x192)]=a90_0x5c469d(0x1a0),a90_0x462bf6[a90_0x5c469d(0x175)]=a90_0x5c469d(0x198),a90_0x462bf6[a90_0x5c469d(0x194)]='test_meta',a90_0x462bf6[a90_0x5c469d(0x164)]=a90_0x5c469d(0x15d),a90_0x462bf6[a90_0x5c469d(0x171)]=a90_0x5c469d(0x190),a90_0x462bf6[a90_0x5c469d(0x16e)]=a90_0x5c469d(0x16f),a90_0x462bf6[a90_0x5c469d(0x169)]=a90_0x5c469d(0x18c),a90_0x462bf6[a90_0x5c469d(0x17f)]=a90_0x5c469d(0x193),a90_0x462bf6[a90_0x5c469d(0x16a)]=a90_0x5c469d(0x162),a90_0x462bf6[a90_0x5c469d(0x14d)]=a90_0x5c469d(0x16d),a90_0x462bf6['KEY_HOOK_RESULT']=a90_0x5c469d(0x166),a90_0x462bf6['KEY_HOOK_FAILURE_TYPE']=a90_0x5c469d(0x188),a90_0x462bf6[a90_0x5c469d(0x19f)]=a90_0x5c469d(0x15b),a90_0x462bf6[a90_0x5c469d(0x18e)]=a90_0x5c469d(0x18a),a90_0x462bf6[a90_0x5c469d(0x178)]=a90_0x5c469d(0x152),a90_0x462bf6['KEY_HOOK_NAME']='hook_name',a90_0x462bf6['DEFAULT_TEST_RESULT']=a90_0x5c469d(0x16b),a90_0x462bf6[a90_0x5c469d(0x181)]='pending',a90_0x462bf6[a90_0x5c469d(0x18f)]=a90_0x5c469d(0x17a),a90_0x462bf6[a90_0x5c469d(0x172)]=a90_0x5c469d(0x151),a90_0x462bf6[a90_0x5c469d(0x168)]=a90_0x5c469d(0x183),a90_0x462bf6['KEY_HOOKS_STARTED']=a90_0x5c469d(0x189),a90_0x462bf6[a90_0x5c469d(0x173)]='test_hooks_finished',a90_0x462bf6['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a90_0x462bf6[a90_0x5c469d(0x159)]=a90_0x5c469d(0x16c),a90_0x462bf6[a90_0x5c469d(0x15f)]='logs',a90_0x462bf6[a90_0x5c469d(0x19e)]=a90_0x5c469d(0x174),a90_0x462bf6[a90_0x5c469d(0x184)]=a90_0x5c469d(0x1a3),a90_0x462bf6[a90_0x5c469d(0x1a4)]=a90_0x5c469d(0x1a2),a90_0x462bf6['KEY_FILE_NAME']='file_name',a90_0x462bf6[a90_0x5c469d(0x153)]='file_path',a90_0x462bf6['KEY_FILE_LEVEL']=a90_0x5c469d(0x17e),a90_0x462bf6['KEY_TEST_SCREENSHOTS']='test_screenshots',a90_0x462bf6['MAX_TOP_LEVEL_STEPS']=0xa,a90_0x462bf6['MAX_NESTED_STEP_DEPTH']=0x2;function a90_0x5587(){const _0x148e02=['^(BEFORE_|AFTER_)','KEY_TEST_ATTACHMENTS','test_result','1908072eImczY','1474928OrQoFm','hook_failure_type','test_hooks_started','hook_failure','test_tags','automate_session_reason','63xBNrfu','KEY_HOOK_FAILURE','KIND_SCREENSHOT','automate_session_name','KEY_TEST_NAME','KEY_TEST_FAILURE_REASON','event_started_at','KEY_TEST_META','exports','314TlSziv','KEY_TEST_FRAMEWORK_NAME','test_logs','test_failure','146010zPLjij','test_duration','423729QzDydh','33GGishc','KEY_CUSTOM_TAGS','KEY_HOOK_FAILURE_REASON','test_failure_reason','16hdkZAG','file_size','test_attachments','KEY_FILE_SIZE','194oHlKio','301615TKUoIb','test_failure_type','KEY_HOOK_ID','KEY_TEST_ENDED_AT','KEY_TEST_DURATION','KEY_TEST_CODE','TEST_LOG','hook_logs','KEY_FILE_PATH','test_id','test_ended_at','KEY_TEST_TAGS','63mBzMzP','195204BlEkqI','KEY_HOOK_LAST_FINISHED','test_file_path','hook_failure_reason','KEY_TEST_SCOPES','test_session_name','KEY_TEST_FAILURE','KEY_LOGS','test_code','KEY_PLATFORM_INDEX','event_ended_at','KEY_TEST_ID','KEY_SESSION_NAME','test_framework_name','hook_result','KEY_TEST_RESULT','HOOK_REGEX','KEY_AUTOMATE_SESSION_REASON','KEY_EVENT_ENDED_AT','pending','test_hook_last_finished','hook_id','KEY_AUTOMATE_SESSION_STATUS','automate_session_status','test_rerun_name','KEY_AUTOMATE_SESSION_NAME','KIND_LOG','KEY_HOOKS_FINISHED','custom_metadata','KEY_TEST_LOGS','test_result_at','KEY_TEST_LOCATION','KEY_HOOK_LOGS','KEY_TEST_UUID','TEST_SCREENSHOT','test_scope','platform_index','KEY_TEST_FRAMEWORK_VERSION','file_level','KEY_EVENT_STARTED_AT','KEY_TEST_RETRY_OF','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE_TYPE'];a90_0x5587=function(){return _0x148e02;};return a90_0x5587();}const TestFrameworkConstants=a90_0x462bf6;module[a90_0x5c469d(0x195)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a91_0x22251b=a91_0x51e7;(function(_0x1ff78d,_0x58c9d5){const _0xe111d1=a91_0x51e7,_0x32d15e=_0x1ff78d();while(!![]){try{const _0x286880=parseInt(_0xe111d1(0x193))/0x1+-parseInt(_0xe111d1(0xf9))/0x2+parseInt(_0xe111d1(0x177))/0x3*(parseInt(_0xe111d1(0x1a3))/0x4)+parseInt(_0xe111d1(0x137))/0x5+-parseInt(_0xe111d1(0x1ac))/0x6*(parseInt(_0xe111d1(0x19a))/0x7)+-parseInt(_0xe111d1(0x15f))/0x8*(-parseInt(_0xe111d1(0x146))/0x9)+parseInt(_0xe111d1(0xf6))/0xa;if(_0x286880===_0x58c9d5)break;else _0x32d15e['push'](_0x32d15e['shift']());}catch(_0x1fc9bc){_0x32d15e['push'](_0x32d15e['shift']());}}}(a91_0x4c34,0x4039c));function a91_0x51e7(_0x2c2f43,_0x5564c7){const _0x4c349b=a91_0x4c34();return a91_0x51e7=function(_0x51e754,_0x50181d){_0x51e754=_0x51e754-0xdd;let _0x83ed65=_0x4c349b[_0x51e754];return _0x83ed65;},a91_0x51e7(_0x2c2f43,_0x5564c7);}const TestFramework=require(a91_0x22251b(0x12e)),TestFrameworkState=require(a91_0x22251b(0xfb)),HookState=require(a91_0x22251b(0xed)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x22251b(0x109)),CLIUtils=require(a91_0x22251b(0xfd)),TrackedInstance=require(a91_0x22251b(0xdf)),TestFrameworkConstants=require(a91_0x22251b(0x104)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x22251b(0x170)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x22251b(0x17d)),util=require(a91_0x22251b(0xe5)),TestInfo=require(a91_0x22251b(0x195)),GrpcClient=require(a91_0x22251b(0x13c));function a91_0x4c34(){const _0x3b526b=['base64','81xLBbsT','getId','KEY_TEST_TAGS','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_CUSTOM_TAGS',',\x20state:\x20','uuid','getTestUUID','toIyV','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_FILE_PATH','CCBRg','scopes','vrBkc','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','trackEvent:\x20unsupported\x20testFrameworkState=','instance','KEY_TEST_META','testData','failure_data','storePendingHook','Processing\x20','\x20response=','test_run_id','KEY_EVENT_ENDED_AT','sendLogCreatedEvent:\x20for\x20testId:\x20','tags','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','97983kWgwUj','NONE','../TestInfo.js','KEY_TEST_RERUN_NAME','get','split','KEY_TEST_FRAMEWORK_NAME','11221MEhdrO','KEY_HOOKS_FINISHED',',\x20storing\x20as\x20pending\x20hook','nxHOt','\x20with\x20UUID:\x20','INIT_TEST','RFiaH','KEY_HOOK_FAILURE','\x20hookState:\x20','67764vjsHPa','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','hookState','KEY_HOOK_LOGS','KEY_TEST_UUID','executionContext','KEY_HOOKS_STARTED','setTrackedInstance','Cucumber\x20log\x20created\x20event','1140rvutov','parseCucumberTestResult','DmHex','unknown','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','meta','result','failed','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_SCOPES','KEY_HOOK_LAST_STARTED','getCurrentTestState','TEST','browserstackPlatformIndex','../instances/trackedInstance.js','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','hooks','testFrameworkName','KEY_HOOK_RESULT','KEY_TEST_LOCATION','util','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','NsRqN','inspect','getCurrentHookState','processPendingHooks','\x20payload=','rLEaW','../state/hookState.js','ICOhe','testFrameworkVersion','failure_reason','vukHS','KEY_TEST_ATTACHMENTS','Parsed\x20cucumber\x20test:\x20','QbBSE','createContext','646980srnRRX','getRef','getContext','753886JRAYdB','getAllData','../state/testFrameworkState.js','toISOString','../cliUtils.js','WbTzE','KmnXa','trackEvent\x20loading\x20testData\x20for\x20testId:\x20',',\x20error:\x20','failure','KEY_TEST_ENDED_AT','./constants/testFrameworkConstants.js','getCurrentInstanceName','VxcST','KEY_TEST_LOGS','readLogObjects','../instances/testFrameworkInstance.js','WKEdk','eventJson','KEY_LOGS','setTestDetails','\x20&\x20hook\x20=\x20','RbZim','kiHTy','format','KEY_EVENT_STARTED_AT','POST','KEY_HOOK_NAME','length','startedAt','hasPendingHooks','\x20&\x20hookState=','sendLogCreatedEvent','getTrackedInstance','NLQAc','fMyjQ','getInstance','file_name','getTestFrameworks',',\x20hookState:\x20','\x20\x20and\x20args\x20=\x20','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getThreadId','getProcessId','getPendingHooks','failure_type','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','ljOQr','trackEvent','testUUID','seUhl','parseCucumberTest','error','./testFramework','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','mtYpM','push','ceil','DEFAULT_TEST_RESULT','TZYek','eOkaU','1442165tLgqVe','MtbbW','pop','KEY_TEST_FAILURE_REASON','qHOSC','../grpcClient','rerun_name','finished_at',',\x20state=','trackHookEvent','\x20with\x20result:\x20','stringify','addMultipleEntries','WjUfR','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','27045LgXswh','KEY_HOOK_LAST_FINISHED','PRE','\x20testState:\x20','exports','UnhandledError','uSceR','removePendingHooks','KEY_TEST_STARTED_AT','addPendingHook','toString','from','KEY_TEST_FRAMEWORK_VERSION','matchHookRegex','\x20pending\x20hooks\x20for\x20testId:\x20','resolveInstance','platformIndex','\x20for\x20test:\x20','getTestDetails','KEY_TEST_SCOPE','hook_type','KEY_HOOK_ID','XAbOs','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','logCreatedEvent','96wygYRW','KEY_TEST_CODE','endedAt','debug','Pkhzt','code','KEY_TEST_NAME','createTestFrameworkEventPayload\x20testId:\x20','DEFAULT_HOOK_RESULT','\x20batch\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','runHooks','KEY_TEST_ID','LOG_REPORT','testFrameworkState','getTestFrameworksVersions','wRcnh','../../../helpers/helper.js','name','trackCucumberInstance','test','KEY_HOOK_FAILURE_TYPE','\x20with\x20id\x20'];a91_0x4c34=function(){return _0x3b526b;};return a91_0x4c34();}class CucumberTestFramework extends TestFramework{constructor(_0x43d01b,_0x115239,_0x279953){super(_0x43d01b,_0x115239,_0x279953);}async['trackEvent'](_0x26d5a4,_0x5386b1,_0x4b69d8={}){const _0x5c3967=a91_0x22251b,_0x41b182={};_0x41b182['QbBSE']=_0x5c3967(0x130),_0x41b182['WjUfR']=function(_0x371e80,_0x41dcd7){return _0x371e80===_0x41dcd7;},_0x41b182[_0x5c3967(0x10a)]=_0x5c3967(0x192);const _0x24ad9d=_0x41b182;await super[_0x5c3967(0x129)](_0x26d5a4,_0x5386b1,_0x4b69d8);const _0x119bda=this['resolveInstance'](_0x26d5a4,_0x5386b1,_0x4b69d8);if(!_0x119bda){logger[_0x5c3967(0x162)](_0x24ad9d[_0x5c3967(0xf4)]);return;}try{let _0x56842a,_0x2a2e03;switch(_0x26d5a4){case TestFrameworkState[_0x5c3967(0xdd)]:_0x56842a=_0x4b69d8[_0x5c3967(0x173)],_0x2a2e03=TestInfo[_0x5c3967(0x17e)](_0x56842a['id']);if(_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x148)])){logger[_0x5c3967(0x162)](_0x5c3967(0x100)+_0x56842a['id']);const _0x7b9c79={};_0x7b9c79['testUUID']=_0x2a2e03,_0x7b9c79[_0x5c3967(0x189)]=_0x56842a,_0x119bda[_0x5c3967(0x143)](this['parseCucumberTest'](_0x7b9c79)),logger[_0x5c3967(0x162)](_0x5c3967(0xe6)+_0x56842a['id']),await this[_0x5c3967(0xea)](_0x119bda,_0x56842a['id']);}else{if(_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x113)])){const _0x40411e={};_0x40411e['testUUID']=_0x2a2e03,_0x40411e[_0x5c3967(0x189)]=_0x56842a,_0x119bda[_0x5c3967(0x143)](this[_0x5c3967(0x1ad)](_0x40411e)),await this[_0x5c3967(0xea)](_0x119bda,_0x56842a['id']);}}break;case TestFrameworkState[_0x5c3967(0x16c)]:_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x113)])&&await this['sendLogCreatedEvent'](_0x119bda,_0x26d5a4,_0x4b69d8);break;default:if(CLIUtils[_0x5c3967(0x153)](_0x26d5a4[_0x5c3967(0x150)]()[_0x5c3967(0x198)]('.')[0x1])){const _0x33171c=await this[_0x5c3967(0x140)](_0x119bda,_0x26d5a4,_0x5386b1,_0x4b69d8);_0x119bda[_0x5c3967(0x143)](_0x33171c);}else logger[_0x5c3967(0x162)](_0x5c3967(0x186)+_0x26d5a4+_0x5c3967(0x118)+_0x5386b1);break;}}catch(_0x407b19){logger[_0x5c3967(0x12d)](util[_0x5c3967(0x111)](_0x24ad9d[_0x5c3967(0x10a)],_0x26d5a4,_0x5386b1,_0x4b69d8[_0x5c3967(0x115)],_0x407b19));}_0x4b69d8[_0x5c3967(0x187)]=_0x119bda,await this[_0x5c3967(0x16a)](_0x119bda,_0x26d5a4,_0x5386b1,_0x4b69d8);}[a91_0x22251b(0x155)](_0x58b5ad,_0x5d675f,_0x2b4e64={}){const _0x7fac3b=a91_0x22251b,_0x516bba={};_0x516bba[_0x7fac3b(0x16f)]=function(_0x4b1610,_0x3788c0){return _0x4b1610===_0x3788c0;};const _0x4dacbb=_0x516bba;let _0x1d7dc6=null;return(_0x4dacbb[_0x7fac3b(0x16f)](_0x58b5ad,TestFrameworkState[_0x7fac3b(0x19f)])||_0x4dacbb[_0x7fac3b(0x16f)](_0x58b5ad,TestFrameworkState[_0x7fac3b(0x194)]))&&this[_0x7fac3b(0x172)](_0x58b5ad,_0x2b4e64),_0x1d7dc6=TestFramework[_0x7fac3b(0x11a)](),_0x1d7dc6;}[a91_0x22251b(0x172)](_0x51d3a5,_0x5e8119){const _0x148e68=a91_0x22251b,_0x4afe1b=CLIUtils[_0x148e68(0x105)](),_0x527284=TrackedInstance[_0x148e68(0xf5)](_0x4afe1b);let _0x511d00=null;logger[_0x148e68(0x162)](_0x148e68(0x1a4)+_0x4afe1b+_0x148e68(0x13f)+_0x51d3a5),_0x511d00=new TestFrameworkInstance(_0x527284,this[_0x148e68(0x11f)](),this[_0x148e68(0x16e)](),_0x51d3a5,HookState[_0x148e68(0x194)]),TestFramework[_0x148e68(0x1aa)](_0x527284,_0x511d00),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x527284[_0x148e68(0x178)]()+'\x20target='+_0x4afe1b);}[a91_0x22251b(0x12c)](_0x468be0){const _0xe12bed=a91_0x22251b,_0x37e48c={};_0x37e48c['seUhl']=_0xe12bed(0x15d);const _0x1073e4=_0x37e48c,{testUUID:_0x553688,testData:_0x462163}=_0x468be0;if(!_0x462163||!_0x462163[_0xe12bed(0x17d)])return logger[_0xe12bed(0x162)](_0x1073e4[_0xe12bed(0x12b)]),{};const _0x3e7b81=_0x553688,_0x2d0fdf=_0x462163[_0xe12bed(0x17d)],_0x5ca463=this[_0xe12bed(0x11f)]()[0x0],_0x17f796=this['getTestFrameworksVersions'](),_0x148f3b={[TestFrameworkConstants[_0xe12bed(0x199)]]:_0x5ca463,[TestFrameworkConstants[_0xe12bed(0x152)]]:_0x17f796[_0x5ca463],[TestFrameworkConstants[_0xe12bed(0x107)]]:[],[TestFrameworkConstants[_0xe12bed(0x19b)]]:{},[TestFrameworkConstants[_0xe12bed(0x1a9)]]:{},[TestFrameworkConstants[_0xe12bed(0x1a7)]]:_0x3e7b81,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0xe12bed(0x134)],[TestFrameworkConstants[_0xe12bed(0x1b4)]]:_0x462163['name']||'',[TestFrameworkConstants[_0xe12bed(0x181)]]:_0x462163[_0xe12bed(0x11e)]||'',[TestFrameworkConstants[_0xe12bed(0x16b)]]:_0x2d0fdf,[TestFrameworkConstants[_0xe12bed(0x165)]]:_0x462163[_0xe12bed(0x171)]||'',[TestFrameworkConstants[_0xe12bed(0xe4)]]:_0x462163['location']||'',[TestFrameworkConstants[_0xe12bed(0x160)]]:_0x462163['body']?.[_0xe12bed(0x164)]||null,[TestFrameworkConstants[_0xe12bed(0x179)]]:_0x462163[_0xe12bed(0x191)]||[],[TestFrameworkConstants[_0xe12bed(0x14e)]]:_0x462163[_0xe12bed(0x116)]||new Date()['toISOString'](),[TestFrameworkConstants[_0xe12bed(0x159)]]:_0x462163[_0xe12bed(0x183)]?.[0x0]||'',[TestFrameworkConstants[_0xe12bed(0x1b5)]]:_0x462163[_0xe12bed(0x183)]||[],[TestFrameworkConstants[_0xe12bed(0x196)]]:_0x462163['customRerunParam']?.[_0xe12bed(0x13d)]||_0x462163[_0xe12bed(0x171)]||'',[TestFrameworkConstants[_0xe12bed(0x17b)]]:{},[TestFrameworkConstants[_0xe12bed(0x188)]]:_0x462163[_0xe12bed(0x1b1)]||{}};TestInfo['setTestDetails'](_0x2d0fdf,_0x148f3b),logger[_0xe12bed(0x162)](_0xe12bed(0xf3)+_0x462163[_0xe12bed(0x171)]+_0xe12bed(0x19e)+_0x3e7b81);const _0x3b7f32={};return _0x3b7f32[_0x2d0fdf]=_0x148f3b,_0x3b7f32;}['parseCucumberTestResult'](_0x5037f5){const _0x4f2ee4=a91_0x22251b,_0x5f187c={'Pkhzt':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','rLEaW':_0x4f2ee4(0x1af),'KmnXa':function(_0x22e967,_0x88e4a0){return _0x22e967===_0x88e4a0;},'qHOSC':_0x4f2ee4(0x1b3),'RbZim':'UnhandledError','TZYek':function(_0x101924,_0x3dfe14,_0x1c8e99){return _0x101924(_0x3dfe14,_0x1c8e99);},'ljOQr':function(_0x57194d,_0x3ee978){return _0x57194d>_0x3ee978;},'NsRqN':function(_0x44400f,_0x1cc179){return _0x44400f>_0x1cc179;}},{testUUID:_0x3f7ff8,testData:_0x2ba089}=_0x5037f5;if(!_0x2ba089||!_0x2ba089[_0x4f2ee4(0x17d)])return logger[_0x4f2ee4(0x162)](_0x5f187c[_0x4f2ee4(0x163)]),{};const _0x169e1f=this[_0x4f2ee4(0x155)](TestFrameworkState[_0x4f2ee4(0xdd)],HookState[_0x4f2ee4(0x113)]),_0x2b2110=_0x2ba089[_0x4f2ee4(0x17d)],_0x36533e=TestInfo[_0x4f2ee4(0x158)](_0x2b2110)||{},_0x1d7ae8=_0x36533e?_0x36533e[TestFrameworkConstants[_0x4f2ee4(0x17b)]]||{}:{},_0x100c62={..._0x36533e,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2ba089[_0x4f2ee4(0x1b2)]||_0x5f187c[_0x4f2ee4(0xec)],[TestFrameworkConstants[_0x4f2ee4(0x103)]]:_0x2ba089['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x4f2ee4(0x17b)]]:_0x1d7ae8,[TestFrameworkConstants[_0x4f2ee4(0x10c)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2ba089[_0x4f2ee4(0x1b1)]||{}};_0x5f187c[_0x4f2ee4(0xff)](_0x2ba089[_0x4f2ee4(0x1b2)],_0x5f187c[_0x4f2ee4(0x13b)])&&_0x2ba089[_0x4f2ee4(0x102)]&&(_0x100c62[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x2ba089[_0x4f2ee4(0x126)]||_0x5f187c[_0x4f2ee4(0x10f)],_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x13a)]]=_0x2ba089[_0x4f2ee4(0xf0)]||'',_0x100c62[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x2ba089[_0x4f2ee4(0x102)]);const _0x1c42cd=TestInfo[_0x4f2ee4(0x158)](_0x2b2110)[TestFrameworkConstants[_0x4f2ee4(0xf2)]]||{},_0x39716c=_0x5f187c[_0x4f2ee4(0x135)](getManualUploadLogs,_0x1c42cd,_0x169e1f[_0x4f2ee4(0xfa)]()[_0x4f2ee4(0x197)](_0x2b2110)[TestFrameworkConstants[_0x4f2ee4(0x1a7)]]);if(_0x5f187c[_0x4f2ee4(0x128)](_0x39716c['length'],0x0)){const _0x1e8743=_0x100c62[TestFrameworkConstants['KEY_LOGS']]||[];_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x10c)]]=[..._0x1e8743,..._0x39716c];}_0x2ba089[_0x4f2ee4(0xe1)]&&_0x5f187c[_0x4f2ee4(0xe7)](_0x2ba089[_0x4f2ee4(0xe1)][_0x4f2ee4(0x115)],0x0)&&(_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x19b)]]=_0x2ba089[_0x4f2ee4(0xe1)]);TestInfo[_0x4f2ee4(0x10d)](_0x2b2110,_0x100c62),logger[_0x4f2ee4(0x162)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x2ba089[_0x4f2ee4(0x171)]+_0x4f2ee4(0x141)+_0x2ba089[_0x4f2ee4(0x1b2)]);const _0x407e60={};return _0x407e60[_0x2b2110]=_0x100c62,_0x407e60;}async[a91_0x22251b(0x140)](_0x12003c,_0x8e2648,_0x2709fd,_0x34e26e){const _0x450562=a91_0x22251b,_0x557752={'VxcST':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','qyhAB':function(_0x35c8c0){return _0x35c8c0();},'CCBRg':function(_0x312f20,_0x248454){return _0x312f20 in _0x248454;},'RFiaH':function(_0x531fa6,_0x383b96){return _0x531fa6 in _0x383b96;},'NLQAc':function(_0x13990e,_0x3a53b1){return _0x13990e===_0x3a53b1;},'kiHTy':function(_0x439aba,_0x2c3781){return _0x439aba===_0x2c3781;},'WbTzE':function(_0x181a01,_0x2ccd7f){return _0x181a01>_0x2ccd7f;},'XAbOs':'failed','uSceR':_0x450562(0x14b),'ahAQX':'passed','TJegT':function(_0x4eddfe,_0x50cdec){return _0x4eddfe!==_0x50cdec;}},{hookData:_0x3a19e3}=_0x34e26e;if(!_0x3a19e3)return logger[_0x450562(0x162)](_0x557752[_0x450562(0x106)]),{};const _0x18c1f3=_0x3a19e3['uuid']||_0x557752['qyhAB'](uuidv4),_0x3ced61=_0x3a19e3[_0x450562(0x18e)],_0x28c96a=_0x8e2648['toString']()[_0x450562(0x198)]('.')[0x1],_0x24ad88=TestInfo[_0x450562(0x158)](_0x3ced61)[TestFrameworkConstants[_0x450562(0x17b)]]||{},_0x5da69f=_0x12003c[_0x450562(0xfa)]()[_0x450562(0x197)](_0x3ced61);if(!_0x5da69f)return logger[_0x450562(0x162)](_0x450562(0x122)+_0x3ced61+_0x450562(0x19c)),this[_0x450562(0x18b)](_0x12003c,_0x3ced61,_0x8e2648,_0x2709fd,_0x34e26e),{};let _0x13dc8f=_0x5da69f[TestFrameworkConstants[_0x450562(0x1a9)]];!_0x13dc8f&&(_0x13dc8f={});!_0x557752[_0x450562(0x182)](_0x28c96a,_0x13dc8f)&&(_0x13dc8f[_0x28c96a]=[]);let _0x238c4c=_0x5da69f[TestFrameworkConstants[_0x450562(0x19b)]];!_0x238c4c&&(_0x238c4c={});!_0x557752[_0x450562(0x1a0)](_0x28c96a,_0x238c4c)&&(_0x238c4c[_0x28c96a]=[]);const _0x49833f={[TestFrameworkConstants[_0x450562(0x1a9)]]:_0x13dc8f,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x238c4c},_0x580a5b={};_0x580a5b[_0x3ced61]=_0x49833f;const _0x3c8741=_0x580a5b;if(_0x557752[_0x450562(0x11b)](_0x2709fd,HookState[_0x450562(0x148)])){const _0x71549e={[TestFrameworkConstants[_0x450562(0x15b)]]:_0x18c1f3,[TestFrameworkConstants[_0x450562(0xe3)]]:TestFrameworkConstants[_0x450562(0x167)],[TestFrameworkConstants[_0x450562(0x112)]]:_0x3a19e3['started_at'],[TestFrameworkConstants[_0x450562(0x1a6)]]:[],[TestFrameworkConstants[_0x450562(0x114)]]:_0x3a19e3[_0x450562(0x15a)],[TestFrameworkConstants[_0x450562(0x17b)]]:_0x24ad88};_0x71549e['key']=_0x28c96a;const _0x3cc791=_0x71549e;_0x13dc8f[_0x28c96a][_0x450562(0x132)](_0x3cc791),_0x3c8741[_0x3ced61][TestFrameworkConstants[_0x450562(0x1b6)]]=_0x28c96a,logger['debug'](_0x450562(0x185)+_0x28c96a+_0x450562(0x10e)+_0x3cc791+_0x450562(0x121)+_0x34e26e);}else{if(_0x557752[_0x450562(0x110)](_0x2709fd,HookState[_0x450562(0x113)])){const _0x5ad33d=_0x3a19e3[_0x450562(0x1b2)],_0x352f77=_0x13dc8f[_0x28c96a]||[];logger[_0x450562(0x162)](_0x450562(0x145)+_0x352f77+'\x20and\x20args\x20=\x20'+_0x34e26e);if(_0x557752[_0x450562(0xfe)](_0x352f77[_0x450562(0x115)],0x0)){const _0x324cbb=_0x352f77[_0x450562(0x139)]();_0x557752[_0x450562(0x110)](_0x3a19e3[_0x450562(0x1b2)],_0x557752[_0x450562(0x15c)])&&_0x3a19e3[_0x450562(0x18a)]?(_0x324cbb[TestFrameworkConstants[_0x450562(0x174)]]=_0x3a19e3[_0x450562(0x126)]||_0x557752[_0x450562(0x14c)],_0x324cbb[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x3a19e3['failure_reason']||'',_0x324cbb[TestFrameworkConstants[_0x450562(0x1a1)]]=_0x3a19e3[_0x450562(0x18a)]):_0x324cbb[TestFrameworkConstants[_0x450562(0xe3)]]=_0x557752['ahAQX'];_0x557752['TJegT'](_0x5ad33d,TestFrameworkConstants[_0x450562(0x167)])&&(_0x324cbb[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5ad33d);_0x324cbb[TestFrameworkConstants[_0x450562(0x18f)]]=_0x3a19e3[_0x450562(0x13e)]||new Date()[_0x450562(0xfc)](),_0x324cbb[TestFrameworkConstants[_0x450562(0x17b)]]=_0x24ad88;const _0x27bc56=_0x324cbb[TestFrameworkConstants['KEY_HOOK_ID']];!_0x238c4c[_0x28c96a]&&(_0x238c4c[_0x28c96a]=[]),_0x238c4c[_0x28c96a][_0x450562(0x132)](_0x324cbb),_0x3c8741[_0x3ced61][TestFrameworkConstants[_0x450562(0x147)]]=_0x28c96a;}}}return logger[_0x450562(0x162)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x3a19e3[_0x450562(0x15a)]+_0x450562(0x175)+_0x18c1f3+_0x450562(0x157)+_0x3ced61),_0x3c8741;}['createTestFrameworkEventPayload'](_0x29a579){const _0x58302b=a91_0x22251b,_0x4a3d28={};_0x4a3d28[_0x58302b(0x136)]=_0x58302b(0x176);const _0x5e2559=_0x4a3d28;try{const _0x14de41=_0x29a579['test']?_0x29a579[_0x58302b(0x173)]['id']:_0x29a579['hookData'][_0x58302b(0x18e)],_0x31a94e=_0x29a579[_0x58302b(0x187)],_0xfd81b5=_0x31a94e[_0x58302b(0xf8)](),_0xd56fa3=_0x31a94e[_0x58302b(0xfa)]()[_0x58302b(0x197)](_0x14de41);if(!_0xd56fa3)return logger[_0x58302b(0x162)](_0x58302b(0x127)+_0x14de41),{};logger[_0x58302b(0x162)](_0x58302b(0x166)+_0x14de41);const {[TestFrameworkConstants[_0x58302b(0x199)]]:_0x34591d='',[TestFrameworkConstants[_0x58302b(0x152)]]:_0x4a4ac1='',[TestFrameworkConstants[_0x58302b(0x14e)]]:_0x491efc='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xc7e132=''}=_0xd56fa3,_0x191c0e=_0x31a94e[_0x58302b(0x1b7)]()[_0x58302b(0x150)]()[_0x58302b(0x198)]('.')[0x1],_0x59a020=_0x31a94e[_0x58302b(0xe9)]()[_0x58302b(0x150)]()['split']('.')[0x1],_0x3a47f4=global?.['browserstackPlatformIndex']??0x0,_0x1b0ed3=_0x31a94e[_0x58302b(0xf7)](),_0xeaf87f=Buffer[_0x58302b(0x151)](JSON[_0x58302b(0x142)](_0xd56fa3))[_0x58302b(0x150)](_0x5e2559[_0x58302b(0x136)]),_0x3711f8={'hash':_0xfd81b5[_0x58302b(0x178)](),'threadId':_0xfd81b5[_0x58302b(0x123)]()[_0x58302b(0x150)](),'processId':_0xfd81b5[_0x58302b(0x124)]()[_0x58302b(0x150)]()},_0x26d1e1={};_0x26d1e1[_0x58302b(0x156)]=_0x3a47f4,_0x26d1e1[_0x58302b(0xe2)]=_0x34591d,_0x26d1e1[_0x58302b(0xef)]=_0x4a4ac1,_0x26d1e1[_0x58302b(0x16d)]=_0x191c0e,_0x26d1e1[_0x58302b(0x1a5)]=_0x59a020,_0x26d1e1[_0x58302b(0x116)]=_0x491efc,_0x26d1e1[_0x58302b(0x161)]=_0xc7e132,_0x26d1e1['uuid']=_0x1b0ed3,_0x26d1e1[_0x58302b(0x10b)]=_0xeaf87f,_0x26d1e1[_0x58302b(0x1a8)]=_0x3711f8;const _0x5135e9=_0x26d1e1;return logger[_0x58302b(0x162)](_0x58302b(0x1b0)+_0x14de41+_0x58302b(0x149)+_0x191c0e+_0x58302b(0x1a2)+_0x59a020),_0x5135e9;}catch(_0x3612f4){return logger[_0x58302b(0x12d)](_0x58302b(0x169)+util[_0x58302b(0x111)](_0x3612f4)),{};}}async[a91_0x22251b(0x119)](_0x5d2251,_0x21c427,_0x170b79){const _0x2c4e90=a91_0x22251b,_0x277a69={'vrBkc':function(_0x3cf40e,_0x1bb78f,_0x37d097){return _0x3cf40e(_0x1bb78f,_0x37d097);},'DmHex':function(_0x4477fd,_0x3025c3){return _0x4477fd===_0x3025c3;},'ICOhe':_0x2c4e90(0x180),'toIyV':function(_0x493c4f,_0x3f738b){return _0x493c4f/_0x3f738b;},'fMyjQ':function(_0x5c35d0,_0x5bf59c){return _0x5c35d0<_0x5bf59c;},'mtYpM':function(_0x3fb1ea,_0x5267bb){return _0x3fb1ea*_0x5267bb;},'nxHOt':function(_0x1f787d,_0x535bb1){return _0x1f787d+_0x535bb1;},'kGEjV':function(_0x44c188,_0x4e2053){return _0x44c188+_0x4e2053;},'vukHS':_0x2c4e90(0x1ab)};try{const _0x44e84a=_0x170b79[_0x2c4e90(0x12a)],_0x116f77=_0x5d2251['getAllData']()[_0x2c4e90(0x197)](_0x44e84a),{[TestFrameworkConstants[_0x2c4e90(0x199)]]:_0x1cdf1b='',[TestFrameworkConstants[_0x2c4e90(0x152)]]:_0x14ac92=''}=_0x116f77,_0x807845=TestInfo[_0x2c4e90(0x108)](_0x44e84a),_0x16e284=TestInfo[_0x2c4e90(0x158)](_0x44e84a)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2d96f2=_0x277a69[_0x2c4e90(0x184)](getMediaArtifactsLogs,_0x16e284,_0x5d2251[_0x2c4e90(0xfa)]()['get'](_0x44e84a)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x4323c=(_0x807845||[])['concat'](_0x2d96f2||[]);if(!_0x4323c||_0x277a69[_0x2c4e90(0x1ae)](_0x4323c[_0x2c4e90(0x115)],0x0)){logger[_0x2c4e90(0x162)](_0x277a69[_0x2c4e90(0xee)]);return;}const _0x485fe6=0x28,_0x2fbe10=Math[_0x2c4e90(0x133)](_0x277a69[_0x2c4e90(0x17f)](_0x4323c[_0x2c4e90(0x115)],_0x485fe6));for(let _0x1e648f=0x0;_0x277a69[_0x2c4e90(0x11c)](_0x1e648f,_0x2fbe10);_0x1e648f++){const _0x122dca=_0x277a69[_0x2c4e90(0x131)](_0x1e648f,_0x485fe6),_0xcb6385=_0x277a69[_0x2c4e90(0x19d)](_0x122dca,_0x485fe6),_0x4f7230=_0x4323c['slice'](_0x122dca,_0xcb6385),_0xf34a4f={'platformIndex':global?.[_0x2c4e90(0xde)]??0x0,'logs':_0x4f7230,'testFrameworkName':_0x1cdf1b,'testFrameworkVersion':_0x14ac92,'testFrameworkState':_0x21c427[_0x2c4e90(0x150)]()[_0x2c4e90(0x198)]('.')[0x1]};logger['debug'](_0x2c4e90(0x190)+_0x44e84a+_0x2c4e90(0x168)+_0x277a69['nxHOt'](_0x1e648f,0x1)+'/'+_0x2fbe10+_0x2c4e90(0xeb)+util[_0x2c4e90(0xe8)](_0xf34a4f));const _0x13fe94=await GrpcClient[_0x2c4e90(0x11d)]()[_0x2c4e90(0x15e)](_0xf34a4f);logger[_0x2c4e90(0x162)](_0x2c4e90(0x190)+_0x44e84a+_0x2c4e90(0x168)+_0x277a69['kGEjV'](_0x1e648f,0x1)+'/'+_0x2fbe10+_0x2c4e90(0x18d)+util[_0x2c4e90(0xe8)](_0x13fe94));}}catch(_0x10570d){logger['error'](_0x2c4e90(0x17a)+util[_0x2c4e90(0x111)](_0x10570d));}logger[_0x2c4e90(0x162)](_0x277a69[_0x2c4e90(0xf1)]);}[a91_0x22251b(0x18b)](_0x5edf9f,_0x40e7b4,_0x5843c7,_0x16d215,_0xed0a33){const _0x43270f=a91_0x22251b,_0x1085e8={'testId':_0x40e7b4,'testFrameworkState':_0x5843c7,'hookState':_0x16d215,'args':_0xed0a33,'timestamp':new Date()['toISOString']()};_0x5edf9f[_0x43270f(0x14f)](_0x40e7b4,_0x1085e8),logger['debug'](_0x43270f(0x12f)+_0x40e7b4+_0x43270f(0x17c)+_0x5843c7+_0x43270f(0x120)+_0x16d215);}async['processPendingHooks'](_0x42df49,_0x501be0){const _0xd1da25=a91_0x22251b,_0x2dbe86={};_0x2dbe86[_0xd1da25(0x138)]=function(_0x2e0c37,_0x4d9f83){return _0x2e0c37>_0x4d9f83;};const _0x459315=_0x2dbe86;if(!_0x42df49[_0xd1da25(0x117)](_0x501be0))return;const _0x53ef13=_0x42df49[_0xd1da25(0x125)](_0x501be0);logger['debug'](_0xd1da25(0x18c)+_0x53ef13[_0xd1da25(0x115)]+_0xd1da25(0x154)+_0x501be0);for(const _0x26ee90 of _0x53ef13){try{const _0x20a7e4=await this[_0xd1da25(0x140)](_0x42df49,_0x26ee90['testFrameworkState'],_0x26ee90[_0xd1da25(0x1a5)],_0x26ee90['args']);_0x20a7e4&&_0x459315[_0xd1da25(0x138)](Object['keys'](_0x20a7e4)['length'],0x0)&&_0x42df49[_0xd1da25(0x143)](_0x20a7e4),await this['runHooks'](_0x42df49,_0x26ee90['testFrameworkState'],_0x26ee90[_0xd1da25(0x1a5)],_0x26ee90['args']);}catch(_0x2a433e){logger[_0xd1da25(0x12d)](_0xd1da25(0xe0)+_0x501be0+_0xd1da25(0x101)+_0x2a433e);}}_0x42df49[_0xd1da25(0x14d)](_0x501be0),logger[_0xd1da25(0x162)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x501be0);}}module[a91_0x22251b(0x14a)]=CucumberTestFramework;
1
+ const a91_0x4be0a1=a91_0x39d9;(function(_0x14d0c8,_0x5228d1){const _0x150730=a91_0x39d9,_0x1a3f8d=_0x14d0c8();while(!![]){try{const _0x4f7f77=-parseInt(_0x150730(0x104))/0x1*(parseInt(_0x150730(0x11d))/0x2)+-parseInt(_0x150730(0x101))/0x3+parseInt(_0x150730(0x170))/0x4*(parseInt(_0x150730(0x15e))/0x5)+-parseInt(_0x150730(0xfe))/0x6+-parseInt(_0x150730(0x12f))/0x7*(parseInt(_0x150730(0x156))/0x8)+-parseInt(_0x150730(0x106))/0x9+parseInt(_0x150730(0x180))/0xa*(parseInt(_0x150730(0x109))/0xb);if(_0x4f7f77===_0x5228d1)break;else _0x1a3f8d['push'](_0x1a3f8d['shift']());}catch(_0x5e7bf2){_0x1a3f8d['push'](_0x1a3f8d['shift']());}}}(a91_0x3994,0xc277f));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a91_0x4be0a1(0x186)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x4be0a1(0x115)),CLIUtils=require(a91_0x4be0a1(0x19b)),TrackedInstance=require(a91_0x4be0a1(0x15a)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x4be0a1(0x183)),logger=createClassLogger(a91_0x4be0a1(0x166)),{v4:uuidv4}=require('uuid'),util=require(a91_0x4be0a1(0x140)),TestInfo=require(a91_0x4be0a1(0x16f)),GrpcClient=require(a91_0x4be0a1(0x117));function a91_0x3994(){const _0x320e73=['KEY_HOOK_RESULT','POST','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_STARTED_AT','XeVGN','trackEvent:\x20unsupported\x20testFrameworkState=','248gHbeJa','getProcessId','debug','hook_type','../instances/trackedInstance.js','KEY_TEST_META','\x20payload=','hooks','28235XtroGD','result','processPendingHooks','\x20hookState:\x20','testData','\x20\x20and\x20args\x20=\x20','slice',',\x20state=','CucumberTestFramework','\x20with\x20result:\x20','get','matchHookRegex','trackCucumberInstance:\x20saved\x20instance\x20contextId=','\x20&\x20hook\x20=\x20','stringify','passed','toString','../TestInfo.js','1060NSRFwt','test','DEFAULT_HOOK_RESULT','getCurrentInstanceName','createTestFrameworkEventPayload\x20testId:\x20','failure','udpIZ','KEY_TEST_ATTACHMENTS','\x20testState:\x20','EyshZ','KEY_HOOK_FAILURE_REASON','cZpvu','meta','key','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','LOG_REPORT','24455220iCAFCR','toISOString','getThreadId','../../../helpers/helper.js','KEY_TEST_FAILURE_REASON','getTestUUID','../state/hookState.js','body','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','base64','executionContext','vpxtI','Stored\x20pending\x20hook\x20for\x20testId:\x20','UnhandledError','parseCucumberTest','failure_reason','KEY_HOOK_LOGS','getTrackedInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_HOOKS_STARTED','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','\x20response=','SpHMV','keys','sendLogCreatedEvent','setTrackedInstance','\x20pending\x20hooks\x20for\x20testId:\x20','../cliUtils.js','KEY_HOOK_FAILURE','getId','KEY_TEST_FRAMEWORK_VERSION','error','testFrameworkVersion','name','KEY_TEST_ENDED_AT','KEY_HOOK_ID','scopes','KEY_HOOK_FAILURE_TYPE','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_LOGS','getTestDetails','startedAt','StwEP','testFrameworkState','fWZTH','qkJFX','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_UUID','PDPgE','Sacxf','readLogObjects','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_HOOKS_FINISHED','KEY_EVENT_STARTED_AT','args','KEY_TEST_FRAMEWORK_NAME','platformIndex','failed','format','TaADf','verxA','getInstance','parseCucumberTestResult',',\x20hookState:\x20','\x20batch\x20','customRerunParam','KEY_CUSTOM_TAGS','getAllData','PRE','HOvOQ','aJrBm','KEY_TEST_LOGS','createTestFrameworkEventPayload','1977792JPXwEv','INIT_TEST','length','4580445CSdEmj','concat','Cucumber\x20log\x20created\x20event','4mjhLSP','yvwnH','6844950MBBduT','trackHookEvent','testFrameworkName','22TVQlld','trackEvent','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','ceil','getCurrentTestState','from','tags',',\x20error:\x20','NGKaz','KEY_TEST_SCOPE','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','NONE','../instances/testFrameworkInstance.js','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','../grpcClient','file_name','jtUgO','hookState','ZTEhv','testUUID','782582GSwecK','ewylB','setTestDetails','TEST','failure_data','\x20with\x20id\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','AyicY','split','pRzvg','\x20for\x20test:\x20','addMultipleEntries','resolveInstance',',\x20storing\x20as\x20pending\x20hook','failure_type','KEY_TEST_SCOPES','KEY_TEST_CODE','KEY_TEST_LOCATION','318115hDlzop','instance','hookData','Updated\x20cucumber\x20test\x20result:\x20','uuid','push','test_run_id','trackCucumberInstance','KEY_TEST_RESULT_AT','OSXAl','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','eAvZe','pSyVu','KEY_AUTOMATE_SESSION_NAME','finished_at','hasPendingHooks','browserstackPlatformIndex','util','WClao','tRFMq','KEY_TEST_RERUN_NAME','getTestFrameworksVersions','KEY_TEST_TAGS','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_HOOK_LAST_STARTED','unknown','getTestFrameworks','CNDnj','OMrxu','KEY_HOOK_NAME','lekkB','inspect','KEY_TEST_RESULT'];a91_0x3994=function(){return _0x320e73;};return a91_0x3994();}function a91_0x39d9(_0x6492d8,_0x21684d){const _0x3994ce=a91_0x3994();return a91_0x39d9=function(_0x39d9e5,_0x1ce8c8){_0x39d9e5=_0x39d9e5-0xdc;let _0x5bed49=_0x3994ce[_0x39d9e5];return _0x5bed49;},a91_0x39d9(_0x6492d8,_0x21684d);}class CucumberTestFramework extends TestFramework{constructor(_0x39b07a,_0x3fe987,_0x1ed384){super(_0x39b07a,_0x3fe987,_0x1ed384);}async[a91_0x4be0a1(0x10a)](_0x5a7c7b,_0x31c326,_0x2e9568={}){const _0xe626ea=a91_0x4be0a1,_0x42c700={};_0x42c700[_0xe626ea(0xdf)]=_0xe626ea(0xe8),_0x42c700['CNDnj']=function(_0x3e86c4,_0x31e0e3){return _0x3e86c4===_0x31e0e3;},_0x42c700['TaADf']=function(_0x2bd88c,_0x4075c8){return _0x2bd88c===_0x4075c8;},_0x42c700[_0xe626ea(0x176)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x54d38e=_0x42c700;await super['trackEvent'](_0x5a7c7b,_0x31c326,_0x2e9568);const _0x463d29=this[_0xe626ea(0x129)](_0x5a7c7b,_0x31c326,_0x2e9568);if(!_0x463d29){logger[_0xe626ea(0x158)](_0x54d38e[_0xe626ea(0xdf)]);return;}try{let _0x1232ad,_0x4dbc4f;switch(_0x5a7c7b){case TestFrameworkState[_0xe626ea(0x120)]:_0x1232ad=_0x2e9568[_0xe626ea(0x171)],_0x4dbc4f=TestInfo[_0xe626ea(0x185)](_0x1232ad['id']);if(_0x54d38e['CNDnj'](_0x31c326,HookState[_0xe626ea(0xf9)])){logger[_0xe626ea(0x158)](_0xe626ea(0x113)+_0x1232ad['id']);const _0x5a5987={};_0x5a5987['testUUID']=_0x4dbc4f,_0x5a5987[_0xe626ea(0x162)]=_0x1232ad,_0x463d29['addMultipleEntries'](this[_0xe626ea(0x18e)](_0x5a5987)),logger[_0xe626ea(0x158)](_0xe626ea(0x10b)+_0x1232ad['id']),await this[_0xe626ea(0x160)](_0x463d29,_0x1232ad['id']);}else{if(_0x54d38e[_0xe626ea(0x14a)](_0x31c326,HookState['POST'])){const _0x3d07b7={};_0x3d07b7[_0xe626ea(0x11c)]=_0x4dbc4f,_0x3d07b7[_0xe626ea(0x162)]=_0x1232ad,_0x463d29[_0xe626ea(0x128)](this[_0xe626ea(0xf3)](_0x3d07b7)),await this[_0xe626ea(0x160)](_0x463d29,_0x1232ad['id']);}}break;case TestFrameworkState[_0xe626ea(0x17f)]:_0x54d38e[_0xe626ea(0xf0)](_0x31c326,HookState[_0xe626ea(0x151)])&&await this['sendLogCreatedEvent'](_0x463d29,_0x5a7c7b,_0x2e9568);break;default:if(CLIUtils[_0xe626ea(0x169)](_0x5a7c7b['toString']()[_0xe626ea(0x125)]('.')[0x1])){const _0x577c96=await this[_0xe626ea(0x107)](_0x463d29,_0x5a7c7b,_0x31c326,_0x2e9568);_0x463d29[_0xe626ea(0x128)](_0x577c96);}else logger[_0xe626ea(0x158)](_0xe626ea(0x155)+_0x5a7c7b+'\x20&\x20hookState='+_0x31c326);break;}}catch(_0x22e2ba){logger[_0xe626ea(0x19f)](util[_0xe626ea(0xef)](_0x54d38e[_0xe626ea(0x176)],_0x5a7c7b,_0x31c326,_0x2e9568[_0xe626ea(0x100)],_0x22e2ba));}_0x2e9568[_0xe626ea(0x130)]=_0x463d29,await this['runHooks'](_0x463d29,_0x5a7c7b,_0x31c326,_0x2e9568);}[a91_0x4be0a1(0x129)](_0x5738ee,_0x178b74,_0x20dfab={}){const _0x626bcd=a91_0x4be0a1,_0x4f56e3={};_0x4f56e3[_0x626bcd(0xe1)]=function(_0x384f84,_0x257358){return _0x384f84===_0x257358;};const _0x5d1acc=_0x4f56e3;let _0x51a36b=null;return(_0x5d1acc[_0x626bcd(0xe1)](_0x5738ee,TestFrameworkState[_0x626bcd(0xff)])||_0x5d1acc[_0x626bcd(0xe1)](_0x5738ee,TestFrameworkState['NONE']))&&this[_0x626bcd(0x136)](_0x5738ee,_0x20dfab),_0x51a36b=TestFramework[_0x626bcd(0x191)](),_0x51a36b;}[a91_0x4be0a1(0x136)](_0x40c55e,_0x517845){const _0xdf459f=a91_0x4be0a1,_0x336c1e=CLIUtils[_0xdf459f(0x173)](),_0x463382=TrackedInstance['createContext'](_0x336c1e);let _0x5b1b1e=null;logger[_0xdf459f(0x158)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x336c1e+_0xdf459f(0x165)+_0x40c55e),_0x5b1b1e=new TestFrameworkInstance(_0x463382,this[_0xdf459f(0x149)](),this['getTestFrameworksVersions'](),_0x40c55e,HookState[_0xdf459f(0x114)]),TestFramework[_0xdf459f(0x199)](_0x463382,_0x5b1b1e),logger[_0xdf459f(0x158)](_0xdf459f(0x16a)+_0x463382[_0xdf459f(0x19d)]()+'\x20target='+_0x336c1e);}['parseCucumberTest'](_0x3bddab){const _0x2d1aed=a91_0x4be0a1,_0x3b394={};_0x3b394['pSyVu']=_0x2d1aed(0x17e);const _0x4577b6=_0x3b394,{testUUID:_0x5d35f5,testData:_0x59e20a}=_0x3bddab;if(!_0x59e20a||!_0x59e20a['uuid'])return logger[_0x2d1aed(0x158)](_0x4577b6[_0x2d1aed(0x13b)]),{};const _0x2e7d4b=_0x5d35f5,_0x127ca2=_0x59e20a[_0x2d1aed(0x133)],_0xfd0b95=this[_0x2d1aed(0x149)]()[0x0],_0x251545=this[_0x2d1aed(0x144)](),_0x185802={[TestFrameworkConstants[_0x2d1aed(0xec)]]:_0xfd0b95,[TestFrameworkConstants[_0x2d1aed(0x19e)]]:_0x251545[_0xfd0b95],[TestFrameworkConstants[_0x2d1aed(0xfc)]]:[],[TestFrameworkConstants[_0x2d1aed(0xe9)]]:{},[TestFrameworkConstants[_0x2d1aed(0x193)]]:{},[TestFrameworkConstants[_0x2d1aed(0xe4)]]:_0x2e7d4b,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2d1aed(0x13c)]]:_0x59e20a[_0x2d1aed(0x1a1)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x59e20a[_0x2d1aed(0x118)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x127ca2,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x59e20a[_0x2d1aed(0x1a1)]||'',[TestFrameworkConstants[_0x2d1aed(0x12e)]]:_0x59e20a['location']||'',[TestFrameworkConstants[_0x2d1aed(0x12d)]]:_0x59e20a[_0x2d1aed(0x187)]?.['code']||null,[TestFrameworkConstants[_0x2d1aed(0x145)]]:_0x59e20a[_0x2d1aed(0x10f)]||[],[TestFrameworkConstants[_0x2d1aed(0x153)]]:_0x59e20a['startedAt']||new Date()[_0x2d1aed(0x181)](),[TestFrameworkConstants[_0x2d1aed(0x112)]]:_0x59e20a['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x2d1aed(0x12c)]]:_0x59e20a[_0x2d1aed(0x1a4)]||[],[TestFrameworkConstants[_0x2d1aed(0x143)]]:_0x59e20a[_0x2d1aed(0xf6)]?.['rerun_name']||_0x59e20a[_0x2d1aed(0x1a1)]||'',[TestFrameworkConstants[_0x2d1aed(0xf7)]]:{},[TestFrameworkConstants[_0x2d1aed(0x15b)]]:_0x59e20a[_0x2d1aed(0x17c)]||{}};TestInfo['setTestDetails'](_0x127ca2,_0x185802),logger[_0x2d1aed(0x158)]('Parsed\x20cucumber\x20test:\x20'+_0x59e20a[_0x2d1aed(0x1a1)]+'\x20with\x20UUID:\x20'+_0x2e7d4b);const _0x31427a={};return _0x31427a[_0x127ca2]=_0x185802,_0x31427a;}[a91_0x4be0a1(0xf3)](_0x512a1d){const _0x5c125e=a91_0x4be0a1,_0x100d07={'verxA':_0x5c125e(0x192),'AyicY':_0x5c125e(0x148),'NnrBX':function(_0x44e2e6,_0x5e35fc){return _0x44e2e6===_0x5e35fc;},'yvwnH':_0x5c125e(0xee),'cZpvu':'UnhandledError','pRzvg':function(_0x31bef6,_0x2850c6,_0x51fb70){return _0x31bef6(_0x2850c6,_0x51fb70);},'EyshZ':function(_0x41f45c,_0x3d8fb4){return _0x41f45c>_0x3d8fb4;},'NGKaz':function(_0x3de79c,_0x2ced27){return _0x3de79c>_0x2ced27;}},{testUUID:_0x189e77,testData:_0x3248dd}=_0x512a1d;if(!_0x3248dd||!_0x3248dd[_0x5c125e(0x133)])return logger[_0x5c125e(0x158)](_0x100d07[_0x5c125e(0xf1)]),{};const _0x2e9999=this['resolveInstance'](TestFrameworkState[_0x5c125e(0x120)],HookState[_0x5c125e(0x151)]),_0x181dbc=_0x3248dd['uuid'],_0x51fe01=TestInfo['getTestDetails'](_0x181dbc)||{},_0x4ae7ef=_0x51fe01?_0x51fe01[TestFrameworkConstants[_0x5c125e(0xf7)]]||{}:{},_0x365aca={..._0x51fe01,[TestFrameworkConstants[_0x5c125e(0x14f)]]:_0x3248dd['result']||_0x100d07[_0x5c125e(0x124)],[TestFrameworkConstants[_0x5c125e(0x1a2)]]:_0x3248dd['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x5c125e(0x137)]]:new Date()[_0x5c125e(0x181)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x4ae7ef,[TestFrameworkConstants[_0x5c125e(0xdc)]]:[],[TestFrameworkConstants[_0x5c125e(0x15b)]]:_0x3248dd[_0x5c125e(0x17c)]||{}};_0x100d07['NnrBX'](_0x3248dd['result'],_0x100d07[_0x5c125e(0x105)])&&_0x3248dd['failure']&&(_0x365aca[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x3248dd[_0x5c125e(0x12b)]||_0x100d07[_0x5c125e(0x17b)],_0x365aca[TestFrameworkConstants[_0x5c125e(0x184)]]=_0x3248dd[_0x5c125e(0x18f)]||'',_0x365aca[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x3248dd[_0x5c125e(0x175)]);const _0x145f20=TestInfo[_0x5c125e(0xdd)](_0x181dbc)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x37f074=_0x100d07[_0x5c125e(0x126)](getManualUploadLogs,_0x145f20,_0x2e9999[_0x5c125e(0xf8)]()['get'](_0x181dbc)[TestFrameworkConstants[_0x5c125e(0xe4)]]);if(_0x100d07[_0x5c125e(0x179)](_0x37f074[_0x5c125e(0x100)],0x0)){const _0x5c74f4=_0x365aca[TestFrameworkConstants[_0x5c125e(0xdc)]]||[];_0x365aca[TestFrameworkConstants[_0x5c125e(0xdc)]]=[..._0x5c74f4,..._0x37f074];}_0x3248dd['hooks']&&_0x100d07[_0x5c125e(0x111)](_0x3248dd[_0x5c125e(0x15d)]['length'],0x0)&&(_0x365aca[TestFrameworkConstants[_0x5c125e(0xe9)]]=_0x3248dd['hooks']);TestInfo[_0x5c125e(0x11f)](_0x181dbc,_0x365aca),logger[_0x5c125e(0x158)](_0x5c125e(0x132)+_0x3248dd[_0x5c125e(0x1a1)]+_0x5c125e(0x167)+_0x3248dd['result']);const _0x19413f={};return _0x19413f[_0x181dbc]=_0x365aca,_0x19413f;}async['trackHookEvent'](_0x53c164,_0x2016e8,_0x259232,_0x32a34d){const _0x2d5586=a91_0x4be0a1,_0x3b489b={'WClao':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','lekkB':function(_0x8df5b6){return _0x8df5b6();},'Sacxf':function(_0x41fa9e,_0x5ec0ae){return _0x41fa9e in _0x5ec0ae;},'HOvOQ':function(_0x4270a2,_0x230a7c){return _0x4270a2===_0x230a7c;},'jtUgO':function(_0x587f15,_0x2342d3){return _0x587f15>_0x2342d3;},'eAvZe':'failed','ewylB':_0x2d5586(0x18d),'vpxtI':_0x2d5586(0x16d),'tRFMq':function(_0x2aaf26,_0xcf846e){return _0x2aaf26!==_0xcf846e;}},{hookData:_0x1cd728}=_0x32a34d;if(!_0x1cd728)return logger[_0x2d5586(0x158)](_0x3b489b[_0x2d5586(0x141)]),{};const _0x50ce81=_0x1cd728[_0x2d5586(0x133)]||_0x3b489b[_0x2d5586(0x14d)](uuidv4),_0x32d0ac=_0x1cd728['test_run_id'],_0x1a2800=_0x2016e8[_0x2d5586(0x16e)]()[_0x2d5586(0x125)]('.')[0x1],_0x2b90eb=TestInfo['getTestDetails'](_0x32d0ac)[TestFrameworkConstants[_0x2d5586(0xf7)]]||{},_0x106593=_0x53c164['getAllData']()[_0x2d5586(0x168)](_0x32d0ac);if(!_0x106593)return logger[_0x2d5586(0x158)](_0x2d5586(0x188)+_0x32d0ac+_0x2d5586(0x12a)),this['storePendingHook'](_0x53c164,_0x32d0ac,_0x2016e8,_0x259232,_0x32a34d),{};let _0x47a4b5=_0x106593[TestFrameworkConstants[_0x2d5586(0x193)]];!_0x47a4b5&&(_0x47a4b5={});!_0x3b489b[_0x2d5586(0xe6)](_0x1a2800,_0x47a4b5)&&(_0x47a4b5[_0x1a2800]=[]);let _0x371fdc=_0x106593[TestFrameworkConstants[_0x2d5586(0xe9)]];!_0x371fdc&&(_0x371fdc={});!_0x3b489b[_0x2d5586(0xe6)](_0x1a2800,_0x371fdc)&&(_0x371fdc[_0x1a2800]=[]);const _0x57f7ba={[TestFrameworkConstants[_0x2d5586(0x193)]]:_0x47a4b5,[TestFrameworkConstants[_0x2d5586(0xe9)]]:_0x371fdc},_0x4d79af={};_0x4d79af[_0x32d0ac]=_0x57f7ba;const _0x590bee=_0x4d79af;if(_0x3b489b[_0x2d5586(0xfa)](_0x259232,HookState[_0x2d5586(0xf9)])){const _0x1279f4={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x50ce81,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x2d5586(0x172)],[TestFrameworkConstants[_0x2d5586(0xea)]]:_0x1cd728['started_at'],[TestFrameworkConstants[_0x2d5586(0x190)]]:[],[TestFrameworkConstants[_0x2d5586(0x14c)]]:_0x1cd728['hook_type'],[TestFrameworkConstants[_0x2d5586(0xf7)]]:_0x2b90eb};_0x1279f4[_0x2d5586(0x17d)]=_0x1a2800;const _0x17267e=_0x1279f4;_0x47a4b5[_0x1a2800][_0x2d5586(0x134)](_0x17267e),_0x590bee[_0x32d0ac][TestFrameworkConstants[_0x2d5586(0x147)]]=_0x1a2800,logger[_0x2d5586(0x158)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x1a2800+_0x2d5586(0x16b)+_0x17267e+_0x2d5586(0x163)+_0x32a34d);}else{if(_0x3b489b[_0x2d5586(0xfa)](_0x259232,HookState['POST'])){const _0x2146d1=_0x1cd728[_0x2d5586(0x15f)],_0x53809b=_0x47a4b5[_0x1a2800]||[];logger[_0x2d5586(0x158)](_0x2d5586(0x194)+_0x53809b+'\x20and\x20args\x20=\x20'+_0x32a34d);if(_0x3b489b[_0x2d5586(0x119)](_0x53809b['length'],0x0)){const _0x137aa9=_0x53809b['pop']();_0x3b489b[_0x2d5586(0xfa)](_0x1cd728[_0x2d5586(0x15f)],_0x3b489b[_0x2d5586(0x13a)])&&_0x1cd728[_0x2d5586(0x121)]?(_0x137aa9[TestFrameworkConstants[_0x2d5586(0x1a5)]]=_0x1cd728[_0x2d5586(0x12b)]||_0x3b489b[_0x2d5586(0x11e)],_0x137aa9[TestFrameworkConstants[_0x2d5586(0x17a)]]=_0x1cd728[_0x2d5586(0x18f)]||'',_0x137aa9[TestFrameworkConstants[_0x2d5586(0x19c)]]=_0x1cd728[_0x2d5586(0x121)]):_0x137aa9[TestFrameworkConstants[_0x2d5586(0x150)]]=_0x3b489b[_0x2d5586(0x18b)];_0x3b489b[_0x2d5586(0x142)](_0x2146d1,TestFrameworkConstants[_0x2d5586(0x172)])&&(_0x137aa9[TestFrameworkConstants[_0x2d5586(0x150)]]=_0x2146d1);_0x137aa9[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1cd728[_0x2d5586(0x13d)]||new Date()[_0x2d5586(0x181)](),_0x137aa9[TestFrameworkConstants[_0x2d5586(0xf7)]]=_0x2b90eb;const _0x1b95e7=_0x137aa9[TestFrameworkConstants[_0x2d5586(0x1a3)]];!_0x371fdc[_0x1a2800]&&(_0x371fdc[_0x1a2800]=[]),_0x371fdc[_0x1a2800][_0x2d5586(0x134)](_0x137aa9),_0x590bee[_0x32d0ac][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x1a2800;}}}return logger[_0x2d5586(0x158)](_0x2d5586(0x152)+_0x1cd728[_0x2d5586(0x159)]+_0x2d5586(0x122)+_0x50ce81+_0x2d5586(0x127)+_0x32d0ac),_0x590bee;}[a91_0x4be0a1(0xfd)](_0x1ac554){const _0x16b6e0=a91_0x4be0a1,_0x14b9c9={};_0x14b9c9[_0x16b6e0(0x14b)]=_0x16b6e0(0x189);const _0x55fc00=_0x14b9c9;try{const _0x3380ec=_0x1ac554[_0x16b6e0(0x171)]?_0x1ac554[_0x16b6e0(0x171)]['id']:_0x1ac554[_0x16b6e0(0x131)][_0x16b6e0(0x135)],_0x574b7f=_0x1ac554[_0x16b6e0(0x130)],_0x5a0f9d=_0x574b7f['getContext'](),_0x72d9a=_0x574b7f[_0x16b6e0(0xf8)]()['get'](_0x3380ec);if(!_0x72d9a)return logger['debug'](_0x16b6e0(0xe3)+_0x3380ec),{};logger['debug'](_0x16b6e0(0x174)+_0x3380ec);const {[TestFrameworkConstants[_0x16b6e0(0xec)]]:_0x16de9f='',[TestFrameworkConstants[_0x16b6e0(0x19e)]]:_0x41a0fd='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4c1857='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x2151c1=''}=_0x72d9a,_0x1d9828=_0x574b7f[_0x16b6e0(0x10d)]()[_0x16b6e0(0x16e)]()[_0x16b6e0(0x125)]('.')[0x1],_0x91aec0=_0x574b7f['getCurrentHookState']()['toString']()[_0x16b6e0(0x125)]('.')[0x1],_0xd01dad=global?.['browserstackPlatformIndex']??0x0,_0x471ebf=_0x574b7f['getRef'](),_0x318100=Buffer[_0x16b6e0(0x10e)](JSON[_0x16b6e0(0x16c)](_0x72d9a))['toString'](_0x55fc00[_0x16b6e0(0x14b)]),_0x52bd1f={'hash':_0x5a0f9d['getId'](),'threadId':_0x5a0f9d[_0x16b6e0(0x182)]()[_0x16b6e0(0x16e)](),'processId':_0x5a0f9d[_0x16b6e0(0x157)]()['toString']()},_0x10cce2={};_0x10cce2[_0x16b6e0(0xed)]=_0xd01dad,_0x10cce2[_0x16b6e0(0x108)]=_0x16de9f,_0x10cce2[_0x16b6e0(0x1a0)]=_0x41a0fd,_0x10cce2['testFrameworkState']=_0x1d9828,_0x10cce2['hookState']=_0x91aec0,_0x10cce2[_0x16b6e0(0xde)]=_0x4c1857,_0x10cce2['endedAt']=_0x2151c1,_0x10cce2[_0x16b6e0(0x133)]=_0x471ebf,_0x10cce2['eventJson']=_0x318100,_0x10cce2[_0x16b6e0(0x18a)]=_0x52bd1f;const _0x1d8a15=_0x10cce2;return logger[_0x16b6e0(0x158)](_0x16b6e0(0x146)+_0x3380ec+_0x16b6e0(0x178)+_0x1d9828+_0x16b6e0(0x161)+_0x91aec0),_0x1d8a15;}catch(_0x238e8d){return logger[_0x16b6e0(0x19f)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x16b6e0(0xef)](_0x238e8d)),{};}}async[a91_0x4be0a1(0x198)](_0x72d38c,_0x142d8a,_0x48e845){const _0x515d7a=a91_0x4be0a1,_0x26aac2={'Cfkab':function(_0x30dc4c,_0x1f946a,_0x52a583){return _0x30dc4c(_0x1f946a,_0x52a583);},'SpHMV':function(_0x41c3f2,_0x46a411){return _0x41c3f2===_0x46a411;},'qkJFX':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','ZTEhv':function(_0x5bfae1,_0x3cd3b1){return _0x5bfae1/_0x3cd3b1;},'jDpvX':function(_0x338fcf,_0x47f8a8){return _0x338fcf<_0x47f8a8;},'NvkrP':function(_0x4e9d9d,_0x550305){return _0x4e9d9d*_0x550305;},'PDPgE':function(_0x4839f3,_0xf414b9){return _0x4839f3+_0xf414b9;},'MkztA':function(_0x55f33,_0x2c7f9e){return _0x55f33+_0x2c7f9e;},'XeVGN':function(_0x45dc1a,_0xe3ab44){return _0x45dc1a+_0xe3ab44;},'OSXAl':_0x515d7a(0x103)};try{const _0x5aeb06=_0x48e845[_0x515d7a(0x11c)],_0x4330db=_0x72d38c['getAllData']()['get'](_0x5aeb06),{[TestFrameworkConstants[_0x515d7a(0xec)]]:_0x1dfe95='',[TestFrameworkConstants[_0x515d7a(0x19e)]]:_0x41679e=''}=_0x4330db,_0x12f979=TestInfo[_0x515d7a(0xe7)](_0x5aeb06),_0x4b5f4e=TestInfo[_0x515d7a(0xdd)](_0x5aeb06)[TestFrameworkConstants[_0x515d7a(0x177)]]||{},_0x54ebd8=_0x26aac2['Cfkab'](getMediaArtifactsLogs,_0x4b5f4e,_0x72d38c[_0x515d7a(0xf8)]()[_0x515d7a(0x168)](_0x5aeb06)[TestFrameworkConstants[_0x515d7a(0xe4)]]),_0x12db12=(_0x12f979||[])[_0x515d7a(0x102)](_0x54ebd8||[]);if(!_0x12db12||_0x26aac2[_0x515d7a(0x196)](_0x12db12[_0x515d7a(0x100)],0x0)){logger['debug'](_0x26aac2[_0x515d7a(0xe2)]);return;}const _0x3c1582=0x28,_0x234916=Math[_0x515d7a(0x10c)](_0x26aac2[_0x515d7a(0x11b)](_0x12db12[_0x515d7a(0x100)],_0x3c1582));for(let _0x4174ca=0x0;_0x26aac2['jDpvX'](_0x4174ca,_0x234916);_0x4174ca++){const _0x3fa626=_0x26aac2['NvkrP'](_0x4174ca,_0x3c1582),_0x2f13b2=_0x26aac2[_0x515d7a(0xe5)](_0x3fa626,_0x3c1582),_0x5f302a=_0x12db12[_0x515d7a(0x164)](_0x3fa626,_0x2f13b2),_0xc81fcc={'platformIndex':global?.[_0x515d7a(0x13f)]??0x0,'logs':_0x5f302a,'testFrameworkName':_0x1dfe95,'testFrameworkVersion':_0x41679e,'testFrameworkState':_0x142d8a[_0x515d7a(0x16e)]()[_0x515d7a(0x125)]('.')[0x1]};logger[_0x515d7a(0x158)](_0x515d7a(0x1a6)+_0x5aeb06+_0x515d7a(0xf5)+_0x26aac2['MkztA'](_0x4174ca,0x1)+'/'+_0x234916+_0x515d7a(0x15c)+util['inspect'](_0xc81fcc));const _0x221d8b=await GrpcClient[_0x515d7a(0xf2)]()['logCreatedEvent'](_0xc81fcc);logger[_0x515d7a(0x158)](_0x515d7a(0x1a6)+_0x5aeb06+'\x20batch\x20'+_0x26aac2[_0x515d7a(0x154)](_0x4174ca,0x1)+'/'+_0x234916+_0x515d7a(0x195)+util[_0x515d7a(0x14e)](_0x221d8b));}}catch(_0x2e9946){logger[_0x515d7a(0x19f)](_0x515d7a(0x116)+util[_0x515d7a(0xef)](_0x2e9946));}logger[_0x515d7a(0x158)](_0x26aac2[_0x515d7a(0x138)]);}['storePendingHook'](_0x2a5374,_0x5af5ea,_0x149c08,_0x5d20c2,_0x21e077){const _0x5e1bcf=a91_0x4be0a1,_0x52fee0={'testId':_0x5af5ea,'testFrameworkState':_0x149c08,'hookState':_0x5d20c2,'args':_0x21e077,'timestamp':new Date()[_0x5e1bcf(0x181)]()};_0x2a5374['addPendingHook'](_0x5af5ea,_0x52fee0),logger[_0x5e1bcf(0x158)](_0x5e1bcf(0x18c)+_0x5af5ea+',\x20state:\x20'+_0x149c08+_0x5e1bcf(0xf4)+_0x5d20c2);}async[a91_0x4be0a1(0x160)](_0x43660c,_0x3ed9e1){const _0x5862a2=a91_0x4be0a1,_0x3b56d5={};_0x3b56d5['aJrBm']=function(_0x17b922,_0x2b950b){return _0x17b922>_0x2b950b;};const _0x3755b1=_0x3b56d5;if(!_0x43660c[_0x5862a2(0x13e)](_0x3ed9e1))return;const _0x5c5419=_0x43660c['getPendingHooks'](_0x3ed9e1);logger[_0x5862a2(0x158)]('Processing\x20'+_0x5c5419[_0x5862a2(0x100)]+_0x5862a2(0x19a)+_0x3ed9e1);for(const _0x1b4ce9 of _0x5c5419){try{const _0x483fe9=await this['trackHookEvent'](_0x43660c,_0x1b4ce9[_0x5862a2(0xe0)],_0x1b4ce9[_0x5862a2(0x11a)],_0x1b4ce9[_0x5862a2(0xeb)]);_0x483fe9&&_0x3755b1[_0x5862a2(0xfb)](Object[_0x5862a2(0x197)](_0x483fe9)[_0x5862a2(0x100)],0x0)&&_0x43660c[_0x5862a2(0x128)](_0x483fe9),await this['runHooks'](_0x43660c,_0x1b4ce9['testFrameworkState'],_0x1b4ce9['hookState'],_0x1b4ce9['args']);}catch(_0x4d90c2){logger['error'](_0x5862a2(0x123)+_0x3ed9e1+_0x5862a2(0x110)+_0x4d90c2);}}_0x43660c['removePendingHooks'](_0x3ed9e1),logger[_0x5862a2(0x158)](_0x5862a2(0x139)+_0x3ed9e1);}}module['exports']=CucumberTestFramework;