browserstack-node-sdk 1.66.3 → 1.67.0

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 (220) 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/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  139. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  140. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  142. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  143. package/src/bin/v2/framework/testFramework.js +1 -1
  144. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  146. package/src/bin/v2/grpcClient.js +1 -1
  147. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  148. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  149. package/src/bin/v2/instances/trackedContext.js +1 -1
  150. package/src/bin/v2/instances/trackedInstance.js +1 -1
  151. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  152. package/src/bin/v2/modules/baseModule.js +1 -1
  153. package/src/bin/v2/modules/loadTestModule.js +1 -1
  154. package/src/bin/v2/modules/observabilityModule.js +1 -1
  155. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  156. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  157. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  158. package/src/bin/v2/modules/testhubModule.js +1 -1
  159. package/src/bin/v2/sdkErrorHandler.js +1 -1
  160. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  161. package/src/bin/v2/state/hookState.js +1 -1
  162. package/src/bin/v2/state/testFrameworkState.js +1 -1
  163. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  164. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  165. package/src/bin/v2/utils/jest-utils.js +1 -1
  166. package/src/bin/vanilla-js/command.js +1 -1
  167. package/src/browserStackSdk.js +1 -1
  168. package/src/helpers/BrowserStackSetup.js +1 -1
  169. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  170. package/src/helpers/accessibility-automation/constants.js +1 -1
  171. package/src/helpers/accessibility-automation/helper.js +1 -1
  172. package/src/helpers/accessibility-automation/scripts.js +1 -1
  173. package/src/helpers/ats/constants.js +1 -1
  174. package/src/helpers/ats/helper.js +1 -1
  175. package/src/helpers/caCertHelper.js +1 -1
  176. package/src/helpers/capsMapping.js +1 -1
  177. package/src/helpers/central-scanner/constants.js +1 -1
  178. package/src/helpers/central-scanner/helpers.js +1 -1
  179. package/src/helpers/classLogger.js +1 -1
  180. package/src/helpers/driverInitErrorReporter.js +1 -1
  181. package/src/helpers/globals.js +1 -1
  182. package/src/helpers/helper.js +1 -1
  183. package/src/helpers/logger.js +1 -1
  184. package/src/helpers/metadata.js +1 -1
  185. package/src/helpers/patchHelper.js +1 -1
  186. package/src/helpers/patchHelpers.js +1 -1
  187. package/src/helpers/percy/Percy.js +1 -1
  188. package/src/helpers/percy/PercyBinary.js +1 -1
  189. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  190. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  191. package/src/helpers/percy/PercySDK.js +1 -1
  192. package/src/helpers/percy/index.js +1 -1
  193. package/src/helpers/percy/utils.js +1 -1
  194. package/src/helpers/performance/constants.js +1 -1
  195. package/src/helpers/performance/performance-tester.js +1 -1
  196. package/src/helpers/playwright-helper.js +1 -1
  197. package/src/helpers/processHelper.js +1 -1
  198. package/src/helpers/puppeteer-helper.js +1 -1
  199. package/src/helpers/request-spy.js +1 -1
  200. package/src/helpers/setKeepAlive.js +1 -1
  201. package/src/helpers/stackFrameUtils.js +1 -1
  202. package/src/helpers/test-observability/constants.js +1 -1
  203. package/src/helpers/test-observability/error-handler.js +1 -1
  204. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  205. package/src/helpers/test-observability/sessionHandler.js +1 -1
  206. package/src/helpers/test-observability/utils.js +1 -1
  207. package/src/helpers/test-orchestration/constants.js +1 -1
  208. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  209. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  210. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  211. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  212. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  213. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  214. package/src/helpers/testhub/constants.js +1 -1
  215. package/src/helpers/testhub/testhubHandler.js +1 -1
  216. package/src/helpers/testhub/utils.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a89_0x23ec85=a89_0x275e;(function(_0x3b01d5,_0x2e0211){const _0x594b11=a89_0x275e,_0x4eb309=_0x3b01d5();while(!![]){try{const _0x27d3f6=-parseInt(_0x594b11(0xcc))/0x1+-parseInt(_0x594b11(0x16f))/0x2*(parseInt(_0x594b11(0x107))/0x3)+-parseInt(_0x594b11(0xca))/0x4*(parseInt(_0x594b11(0xc0))/0x5)+-parseInt(_0x594b11(0x121))/0x6*(-parseInt(_0x594b11(0x148))/0x7)+parseInt(_0x594b11(0x11e))/0x8*(parseInt(_0x594b11(0xd4))/0x9)+parseInt(_0x594b11(0xe0))/0xa+parseInt(_0x594b11(0x17b))/0xb;if(_0x27d3f6===_0x2e0211)break;else _0x4eb309['push'](_0x4eb309['shift']());}catch(_0x4c36b9){_0x4eb309['push'](_0x4eb309['shift']());}}}(a89_0x1d9f,0x57dff));const fs=require('fs'),os=require('os'),url=require(a89_0x23ec85(0x153)),path=require(a89_0x23ec85(0x144)),{exec}=require(a89_0x23ec85(0xfc)),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require('util'),{getFrameworkVersion}=require(a89_0x23ec85(0x105)),{threadId}=require(a89_0x23ec85(0x165)),PerformanceTester=require(a89_0x23ec85(0xb3)),{EVENTS:PerformanceEvents}=require(a89_0x23ec85(0x100)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x23ec85(0x159)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x23ec85(0x142)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x23ec85(0xd1)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a89_0x23ec85(0x191)),HookState=require(a89_0x23ec85(0x15d)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a89_0x23ec85(0x175)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a89_0x23ec85(0xb2)),{getBStackAPIUrl}=require(a89_0x23ec85(0xde));function a89_0x275e(_0x4f820e,_0x2984cf){const _0x1d9f20=a89_0x1d9f();return a89_0x275e=function(_0x275e06,_0x669aab){_0x275e06=_0x275e06-0xb1;let _0xe3395=_0x1d9f20[_0x275e06];return _0xe3395;},a89_0x275e(_0x4f820e,_0x2984cf);}class CLIUtils{[a89_0x23ec85(0xc5)]={};[a89_0x23ec85(0x10e)]={};static[a89_0x23ec85(0x167)](){const _0x9d213d=a89_0x23ec85,_0x38ccb6={};_0x38ccb6['QaFpS']=function(_0x55afb8,_0xbfe4b1){return _0x55afb8===_0xbfe4b1;},_0x38ccb6[_0x9d213d(0x17c)]=_0x9d213d(0x147);const _0x55677d=_0x38ccb6;return _0x55677d[_0x9d213d(0xb1)](process['env'][_0x9d213d(0x170)],_0x55677d['zjiOC']);}static[a89_0x23ec85(0x168)](){const _0x5c0be1=a89_0x23ec85,_0x2d900f={};return _0x2d900f['id']=process[_0x5c0be1(0x12e)][_0x5c0be1(0x170)],_0x2d900f[_0x5c0be1(0x101)]=_0x5c0be1(0x13f)+process['env'][_0x5c0be1(0x170)]+'.sock',_0x2d900f;}static['getSdkVersion'](){const _0x8b93de=a89_0x23ec85,_0x1b47da={'XtAWI':function(_0xae18a3,_0x7248a3){return _0xae18a3(_0x7248a3);},'FIraH':'../../../package.json'};return _0x1b47da[_0x8b93de(0x17f)](require,_0x1b47da[_0x8b93de(0xd5)])['version'];}static[a89_0x23ec85(0x18d)](){const _0x1e5da9=a89_0x23ec85,_0x28a420={};_0x28a420[_0x1e5da9(0x19f)]=_0x1e5da9(0x152);const _0x8de30c=_0x28a420;return _0x8de30c[_0x1e5da9(0x19f)];}static async[a89_0x23ec85(0x13a)](_0x303af9){const _0x5e28ff=a89_0x23ec85,_0x1859df={'qTtOL':_0x5e28ff(0x15a),'PDqmB':function(_0xeac3ec,_0x252cb7){return _0xeac3ec(_0x252cb7);},'VRYbk':_0x5e28ff(0xe7)};logger[_0x5e28ff(0x114)](_0x1859df['qTtOL']);const _0x3babbe=process[_0x5e28ff(0x12e)][_0x5e28ff(0x11b)];if(!_0x1859df['PDqmB'](isNullOrEmpty,_0x3babbe))return logger['debug'](_0x5e28ff(0xe9)+_0x3babbe),_0x3babbe;try{const _0x1c35ab=this[_0x5e28ff(0x184)]();if(_0x1859df[_0x5e28ff(0x130)](isNullOrEmpty,_0x1c35ab))throw new Error(_0x1859df[_0x5e28ff(0x188)]);const _0x2b4dbd=this['getExistingCliPath'](_0x1c35ab),_0x23109e=await this['checkAndUpdateCli'](_0x2b4dbd,_0x1c35ab,_0x303af9);return logger[_0x5e28ff(0x114)](_0x5e28ff(0x19b)+_0x23109e),_0x23109e;}catch(_0x5434e9){logger['debug'](_0x5e28ff(0x195)+util[_0x5e28ff(0xf3)](_0x5434e9));}return null;}static async[a89_0x23ec85(0x162)](_0x225158,_0x4b6688,_0x4fec6b){const _0x1d8eca=a89_0x23ec85,_0x276e2e={'JCGPT':function(_0x4de800){return _0x4de800();},'Lceul':function(_0x7d247f,_0x584974){return _0x7d247f(_0x584974);},'ZrPNg':function(_0x1f4252,_0x486ae2,_0x1f07a8){return _0x1f4252(_0x486ae2,_0x1f07a8);},'aEiLA':_0x1d8eca(0xc7),'WLHNu':_0x1d8eca(0x153),'rdVEF':function(_0x2b0920,_0x53ef7b){return _0x2b0920(_0x53ef7b);},'kcFCz':function(_0x26932f,_0x41cc36,_0xcf437e){return _0x26932f(_0x41cc36,_0xcf437e);}};PerformanceTester[_0x1d8eca(0x12f)](PerformanceEvents[_0x1d8eca(0x131)]);try{logger[_0x1d8eca(0x180)](_0x1d8eca(0x146)+_0x225158);const _0x522082=_0x276e2e[_0x1d8eca(0x115)](getHostInfo),_0x413cf0={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x522082[_0x1d8eca(0x163)],'os_arch':_0x522082[_0x1d8eca(0x16c)],'cli_version':'0','sdk_language':this[_0x1d8eca(0x18d)]()};!_0x276e2e['Lceul'](isNullOrEmpty,_0x225158)&&(_0x413cf0[_0x1d8eca(0x113)]=await this[_0x1d8eca(0x120)](_0x225158+_0x1d8eca(0xee)));const _0x955e13=await this[_0x1d8eca(0x118)](_0x413cf0,_0x4fec6b);process[_0x1d8eca(0x12e)][_0x1d8eca(0x12a)]&&(logger['info'](_0x1d8eca(0xcd)+process[_0x1d8eca(0x12e)][_0x1d8eca(0x12a)]),_0x955e13[_0x1d8eca(0xc7)]['url']=process[_0x1d8eca(0x12e)][_0x1d8eca(0x12a)]);if(_0x276e2e[_0x1d8eca(0x193)](nestedKeyValue,_0x955e13,[_0x276e2e[_0x1d8eca(0x190)],_0x276e2e[_0x1d8eca(0x173)]])){logger[_0x1d8eca(0x114)](_0x1d8eca(0x189)+_0x413cf0[_0x1d8eca(0x113)]);if(!_0x276e2e[_0x1d8eca(0x116)](isNullOrEmpty,_0x225158)&&this[_0x1d8eca(0x199)](_0x225158))return logger[_0x1d8eca(0xdd)](_0x1d8eca(0xfa)+_0x225158),_0x225158;return await this[_0x1d8eca(0x16b)](_0x276e2e[_0x1d8eca(0x15e)](nestedKeyValue,_0x955e13,[_0x276e2e[_0x1d8eca(0x190)],_0x276e2e[_0x1d8eca(0x173)]]),_0x4b6688);}return _0x225158;}finally{PerformanceTester[_0x1d8eca(0xb5)](PerformanceEvents[_0x1d8eca(0x131)]);}}static[a89_0x23ec85(0x184)](){const _0x2a9d96=a89_0x23ec85,_0x3dec13={'xWtvG':function(_0x3b5ed8,_0x50f133){return _0x3b5ed8(_0x50f133);},'yGIWp':_0x2a9d96(0xe7),'bHaFg':_0x2a9d96(0x14d),'nlHno':function(_0x33e8fd,_0x4ce046){return _0x33e8fd(_0x4ce046);}},_0xee3abf=this[_0x2a9d96(0xed)]();try{if(_0x3dec13[_0x2a9d96(0x164)](isNullOrEmpty,_0xee3abf))throw new Error(_0x3dec13['yGIWp']);const _0x32a898=path[_0x2a9d96(0x13e)](_0xee3abf,_0x3dec13[_0x2a9d96(0x126)]);return!fs['existsSync'](_0x32a898)&&_0x3dec13[_0x2a9d96(0xf6)](createDir,_0x32a898),_0x32a898;}catch(_0x36ec68){logger['debug'](_0x2a9d96(0x13c)+util['format'](_0x36ec68));}}static[a89_0x23ec85(0xed)](){const _0x497663=a89_0x23ec85,_0x1f6449={'tlrei':_0x497663(0x177),'jtTmS':function(_0x4ac0d0,_0x5eafcd){return _0x4ac0d0(_0x5eafcd);},'Quome':function(_0x4460ec,_0x4759f2){return _0x4460ec(_0x4759f2);},'TJTzQ':function(_0x40b95e,_0x44affc){return _0x40b95e(_0x44affc);}},_0x5d7599=[process[_0x497663(0x12e)]['BROWSERSTACK_FILES_DIR'],path[_0x497663(0x13e)](os[_0x497663(0xda)](),_0x1f6449['tlrei']),path[_0x497663(0x13e)](os[_0x497663(0x16e)](),_0x1f6449[_0x497663(0xd8)])];for(const _0x385a73 of _0x5d7599){if(_0x1f6449[_0x497663(0x19d)](isNullOrEmpty,_0x385a73))continue;try{if(fs[_0x497663(0xb4)](_0x385a73)){logger[_0x497663(0x114)](_0x497663(0x11d)+_0x385a73+_0x497663(0x187));if(!_0x1f6449[_0x497663(0x14b)](isModifiable,_0x385a73)){logger[_0x497663(0x114)](_0x497663(0x181)+_0x385a73);const _0x2b8960=_0x1f6449['TJTzQ'](setReadWriteExecuteAccess,_0x385a73);if(!_0x1f6449['jtTmS'](isTrue,_0x2b8960)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x385a73);continue;}}}else{logger[_0x497663(0x114)]('Folder\x20does\x20not\x20exist:\x20'+_0x385a73),_0x1f6449[_0x497663(0x14b)](createDir,_0x385a73),logger[_0x497663(0x114)]('Setting\x20required\x20permissions\x20to\x20'+_0x385a73);const _0x308752=_0x1f6449[_0x497663(0x19d)](setReadWriteExecuteAccess,_0x385a73);!_0x1f6449[_0x497663(0x14b)](isTrue,_0x308752)&&logger['warn'](_0x497663(0xbb)+_0x385a73);}return _0x385a73;}catch(_0x1636f5){logger['error'](_0x497663(0xba)+util[_0x497663(0xf3)](_0x1636f5));}}return null;}static[a89_0x23ec85(0x103)](_0x339a96){const _0x1c2cff=a89_0x23ec85,_0x57a6dc={};_0x57a6dc['eIurF']=function(_0x292d46,_0x625d8e){return _0x292d46>_0x625d8e;},_0x57a6dc[_0x1c2cff(0x149)]=function(_0x5522c9,_0xc72c33){return _0x5522c9>_0xc72c33;};const _0x9913c0=_0x57a6dc;try{if(!fs[_0x1c2cff(0xb4)](_0x339a96)||!fs['statSync'](_0x339a96)[_0x1c2cff(0x18e)]())return'';const _0x2f8c07=fs['readdirSync'](_0x339a96)['map'](_0x43fe60=>path[_0x1c2cff(0x13e)](_0x339a96,_0x43fe60))[_0x1c2cff(0x18b)](_0x39e917=>fs[_0x1c2cff(0xf9)](_0x39e917)[_0x1c2cff(0x14f)]()&&path[_0x1c2cff(0xb8)](_0x39e917)[_0x1c2cff(0x136)](_0x1c2cff(0xd2)));if(_0x9913c0[_0x1c2cff(0x149)](_0x2f8c07['length'],0x0)){const _0x1a79cc=_0x2f8c07[_0x1c2cff(0x122)](_0x4e702d=>({'filePath':_0x4e702d,'mtime':fs[_0x1c2cff(0xf9)](_0x4e702d)['mtime']}))[_0x1c2cff(0xbe)]((_0x15fa0e,_0x19bcc0)=>{const _0x12fef9=_0x1c2cff;if(!_0x15fa0e||!_0x15fa0e[_0x12fef9(0x11f)])return _0x19bcc0;if(_0x9913c0['eIurF'](_0x19bcc0[_0x12fef9(0x11f)],_0x15fa0e[_0x12fef9(0x11f)]))return _0x19bcc0;return _0x15fa0e;},{});return _0x1a79cc?_0x1a79cc[_0x1c2cff(0x169)]:'';}return'';}catch(_0x47fe88){return logger[_0x1c2cff(0x12b)](_0x1c2cff(0x139)+util[_0x1c2cff(0xf3)](_0x47fe88)),'';}}static [a89_0x23ec85(0x118)]=async(_0x5b432c,_0x1dcf1f)=>{const _0x5c0738=a89_0x23ec85,_0x52ab7e={'NIiRC':function(_0x36fd20,_0x43ba29,_0x56070f,_0x3ec459,_0x220ca9){return _0x36fd20(_0x43ba29,_0x56070f,_0x3ec459,_0x220ca9);},'CTHRi':'GET'},_0x487f06={};_0x487f06['qs']=_0x5b432c,_0x487f06['preserveStatusCodeOnError']=!![];const _0x45b235=await _0x52ab7e['NIiRC'](nodeRequest,_0x52ab7e['CTHRi'],UPDATED_CLI_ENDPOINT,_0x487f06,_0x1dcf1f);return logger[_0x5c0738(0x114)]('response\x20'+JSON[_0x5c0738(0x138)](_0x45b235)),_0x45b235;};static[a89_0x23ec85(0x199)](_0x2730cf){const _0x382d44=a89_0x23ec85;try{const _0x5e0035=fs[_0x382d44(0x19e)](_0x2730cf,'r+');return fs[_0x382d44(0xf5)](_0x5e0035),![];}catch(_0x2ec6b4){if(BINARY_BUSY_ERROR_CODES[_0x382d44(0xd7)](_0x2ec6b4[_0x382d44(0x150)]))return logger[_0x382d44(0x114)](_0x382d44(0xeb)+_0x2730cf),!![];return logger[_0x382d44(0x114)](_0x382d44(0x178)+_0x2ec6b4['message']),![];}}static[a89_0x23ec85(0x120)](_0x1910f2,_0x34fb61=''){const _0xbc885a=a89_0x23ec85,_0x5eee3c={'JbqLy':_0xbc885a(0xcf),'thCSG':function(_0x7c3f6f,_0x3bf6a0){return _0x7c3f6f(_0x3bf6a0);},'heCmJ':_0xbc885a(0x135),'mMBJJ':function(_0x3771fb,_0x526304,_0x53fe71,_0x45a8ab){return _0x3771fb(_0x526304,_0x53fe71,_0x45a8ab);},'vWzPB':_0xbc885a(0x12b)};return new Promise((_0x57f8be,_0x19cfbe)=>{const _0x1657b5=_0xbc885a,_0x1a6c9e={};_0x1a6c9e[_0x1657b5(0x186)]=_0x34fb61,_0x1a6c9e['timeout']=0x1388;const _0x12b993=_0x5eee3c[_0x1657b5(0xf0)](exec,_0x1910f2,_0x1a6c9e,(_0x3da00a,_0x4bc8bc,_0x172e8c)=>{const _0x520747=_0x1657b5;if(_0x3da00a){if(_0x1910f2['includes'](_0x5eee3c[_0x520747(0x158)])&&(_0x4bc8bc[_0x520747(0xe3)]()||_0x172e8c[_0x520747(0xe3)]())){const _0xdeb36=_0x4bc8bc['trim']()||_0x172e8c[_0x520747(0xe3)]();logger[_0x520747(0x114)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0xdeb36+'\x22'),_0x5eee3c[_0x520747(0x112)](_0x57f8be,_0xdeb36);}else _0x5eee3c['thCSG'](_0x57f8be,_0x172e8c['trim']()||_0x5eee3c[_0x520747(0x160)]);}else logger['debug'](_0x520747(0x155)+_0x4bc8bc[_0x520747(0xe3)]()+'\x22'),_0x5eee3c[_0x520747(0x112)](_0x57f8be,_0x4bc8bc['trim']());});_0x12b993['on'](_0x5eee3c[_0x1657b5(0xd6)],()=>{const _0x282f31=_0x1657b5;_0x5eee3c[_0x282f31(0x112)](_0x57f8be,_0x5eee3c[_0x282f31(0x160)]);});});}static [a89_0x23ec85(0x16b)]=async(_0x24c244,_0x145974)=>{const _0xe76cfe=a89_0x23ec85,_0x51360a={'HqaTN':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','zQedl':function(_0x3e3043,_0xd341cc){return _0x3e3043(_0xd341cc);},'bDfpS':function(_0x3dca49,_0x1c8669){return _0x3dca49(_0x1c8669);},'ibTfQ':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','CXesU':function(_0xff57a8,_0x3e6f68){return _0xff57a8(_0x3e6f68);},'xFZVr':function(_0x2684b8,_0x12e524){return _0x2684b8>=_0x12e524;},'wEMpu':'DOWNLOAD_HTTP','ZdwSx':_0xe76cfe(0xff),'cMWsl':_0xe76cfe(0x12b),'oACIE':_0xe76cfe(0x132)};PerformanceTester[_0xe76cfe(0x12f)](PerformanceEvents[_0xe76cfe(0xe5)]),logger['debug'](_0xe76cfe(0x18a)+_0x24c244);try{const _0x435bd5=url[_0xe76cfe(0xe2)](_0x24c244),_0x17ab46=path[_0xe76cfe(0x13e)](_0x145974,_0xe76cfe(0x133)+process['pid']+_0xe76cfe(0x127)),_0x541fd3=fs[_0xe76cfe(0x176)](_0x17ab46);return new Promise((_0x5b0d2d,_0x5afd63)=>{const _0x297827=_0xe76cfe,_0x5a1733={'kfJbY':_0x51360a['HqaTN'],'IFatD':function(_0x4f67ea,_0x440d81){return _0x51360a['zQedl'](_0x4f67ea,_0x440d81);},'tMKcu':function(_0x3b47d2,_0x22fddd){const _0x3081e9=a89_0x275e;return _0x51360a[_0x3081e9(0x198)](_0x3b47d2,_0x22fddd);},'cHnqY':_0x51360a[_0x297827(0xb6)],'MtIVs':function(_0x893233,_0x444456){return _0x51360a['CXesU'](_0x893233,_0x444456);},'QqSpQ':function(_0x469453,_0x45d929){const _0x3f7a3f=_0x297827;return _0x51360a[_0x3f7a3f(0xbd)](_0x469453,_0x45d929);},'lYggE':_0x51360a['wEMpu'],'shfjA':_0x51360a[_0x297827(0xd9)],'LyirO':function(_0x54aa12,_0x339527){const _0x4d0049=_0x297827;return _0x51360a[_0x4d0049(0x197)](_0x54aa12,_0x339527);},'toqWF':_0x51360a[_0x297827(0x10c)]};https['get'](_0x435bd5,function(_0x4ee491){const _0x40399c=_0x297827,_0x410ab2={'UAvhH':_0x5a1733['cHnqY'],'uyfgi':function(_0x58168b,_0x40edb7){const _0x5261f2=a89_0x275e;return _0x5a1733[_0x5261f2(0x196)](_0x58168b,_0x40edb7);},'aMTQN':function(_0x7988c6,_0x171ad7){const _0x1d6a39=a89_0x275e;return _0x5a1733[_0x1d6a39(0x196)](_0x7988c6,_0x171ad7);}},_0x5e6995=null;if(_0x4ee491[_0x40399c(0x17e)]&&_0x5a1733['QqSpQ'](_0x4ee491['statusCode'],0x190)){const _0x38715a=new Error(_0x40399c(0x154)+_0x4ee491[_0x40399c(0x17e)]+_0x40399c(0xc4)+_0x24c244);_0x38715a[_0x40399c(0x150)]=_0x5a1733['lYggE'],_0x38715a[_0x40399c(0x17e)]=_0x4ee491[_0x40399c(0x17e)],logger[_0x40399c(0x12b)](util[_0x40399c(0xf3)](_0x5a1733['shfjA'],_0x4ee491[_0x40399c(0x17e)])),PerformanceTester[_0x40399c(0xb5)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],'HTTP\x20'+_0x4ee491[_0x40399c(0x17e)]),_0x4ee491[_0x40399c(0x10b)](),_0x541fd3['destroy'](),fs[_0x40399c(0x12d)](_0x17ab46,()=>{}),_0x5a1733[_0x40399c(0x192)](_0x5afd63,_0x38715a);return;}_0x4ee491[_0x40399c(0xbf)](_0x541fd3),_0x4ee491['on'](_0x5a1733[_0x40399c(0xfb)],function(_0xbd5a5b){const _0x49bc8b=_0x40399c;logger[_0x49bc8b(0x12b)](util[_0x49bc8b(0xf3)](_0x410ab2[_0x49bc8b(0xbc)],_0xbd5a5b)),PerformanceTester[_0x49bc8b(0xb5)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x49bc8b(0xf3)](_0xbd5a5b)),_0x410ab2[_0x49bc8b(0x179)](_0x5afd63,_0xbd5a5b);}),_0x541fd3['on'](_0x5a1733['toqWF'],function(_0x5c9285){const _0x1a0ca8=_0x40399c;logger[_0x1a0ca8(0x12b)](util[_0x1a0ca8(0xf3)](_0x5a1733[_0x1a0ca8(0x143)],_0x5c9285)),PerformanceTester['end'](PerformanceEvents[_0x1a0ca8(0xe5)],![],util[_0x1a0ca8(0xf3)](_0x5c9285)),_0x5a1733[_0x1a0ca8(0x119)](_0x5afd63,_0x5c9285);}),CLIUtils[_0x40399c(0xb7)](_0x541fd3,_0x5e6995,_0x17ab46,_0x145974,_0x439ffd=>{const _0x33ea7a=_0x40399c;PerformanceTester[_0x33ea7a(0xb5)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x410ab2['aMTQN'](_0x5b0d2d,_0x439ffd);},_0x29d331=>{const _0xb72e88=_0x40399c;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x29d331)),_0x5a1733[_0xb72e88(0x156)](_0x5afd63,_0x29d331);});})['on'](_0x51360a[_0x297827(0x10c)],function(_0x558edf){const _0x1b4872=_0x297827;logger[_0x1b4872(0x12b)](_0x1b4872(0x102)+util[_0x1b4872(0xf3)](_0x558edf)),PerformanceTester[_0x1b4872(0xb5)](PerformanceEvents[_0x1b4872(0xe5)],![],util[_0x1b4872(0xf3)](_0x558edf)),_0x5a1733[_0x1b4872(0x156)](_0x5afd63,_0x558edf);});});}catch(_0x480f5e){PerformanceTester[_0xe76cfe(0xb5)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x480f5e)),logger[_0xe76cfe(0x12b)](util[_0xe76cfe(0xf3)](_0x51360a['oACIE'],_0x480f5e));throw _0x480f5e;}};static['downloadFileStream'](_0x21bcdd,_0x3c3a41,_0x11fd39,_0x236fd7,_0x11aae9,_0x5cb3b6){const _0x1b353b=a89_0x23ec85,_0x9db506={'KgdIX':function(_0x55e10c,_0x43fe3f){return _0x55e10c(_0x43fe3f);},'sqRwG':'end','FGHAN':_0x1b353b(0x11c),'hCLdX':function(_0x2d5010,_0xb3ec4){return _0x2d5010!==_0xb3ec4;},'NsItJ':'error','IbrpS':_0x1b353b(0x185),'xZbtx':_0x1b353b(0xef),'UhcwA':_0x1b353b(0xdf)};_0x21bcdd['on'](_0x9db506[_0x1b353b(0xc6)],function(){const _0x2e839d=_0x1b353b,_0x3f7c89={'SCvye':function(_0x3e74a4,_0x18a4e7){const _0xcd2bc0=a89_0x275e;return _0x9db506[_0xcd2bc0(0x124)](_0x3e74a4,_0x18a4e7);},'homrW':_0x9db506[_0x2e839d(0xdc)],'ynTAO':_0x9db506['FGHAN'],'gTiLa':function(_0x207f7c,_0x3d657d){const _0xa114e8=_0x2e839d;return _0x9db506[_0xa114e8(0x145)](_0x207f7c,_0x3d657d);},'iSUUY':_0x9db506[_0x2e839d(0x183)],'xGNCq':_0x9db506[_0x2e839d(0xc9)],'WaBSq':_0x9db506[_0x2e839d(0xd3)],'dVQqz':function(_0x2b1dbc,_0x3d51eb){const _0x433324=_0x2e839d;return _0x9db506[_0x433324(0x124)](_0x2b1dbc,_0x3d51eb);},'LjiOc':_0x9db506[_0x2e839d(0x10d)]},_0x3f1376={};_0x3f1376[_0x2e839d(0xb9)]=!![],yauzl[_0x2e839d(0xd0)](_0x11fd39,_0x3f1376,function(_0x41f07,_0x33e46a){const _0x2eb0ca=_0x2e839d,_0x2c985a={'nomZs':function(_0x47cb28,_0x379a36){const _0x5d2e87=a89_0x275e;return _0x3f7c89[_0x5d2e87(0x17a)](_0x47cb28,_0x379a36);},'zJWse':_0x3f7c89['homrW'],'uJwKa':function(_0x38362e,_0xda9cc0){const _0x3ad8a0=a89_0x275e;return _0x3f7c89[_0x3ad8a0(0x17a)](_0x38362e,_0xda9cc0);},'AQDzQ':function(_0x5bf149,_0x1733c7){return _0x3f7c89['SCvye'](_0x5bf149,_0x1733c7);},'nXVmX':_0x3f7c89[_0x2eb0ca(0xf4)],'OQpFd':function(_0x1a8d7d,_0x4e7950){return _0x3f7c89['gTiLa'](_0x1a8d7d,_0x4e7950);},'ajQVK':_0x3f7c89[_0x2eb0ca(0x140)],'osbGx':_0x3f7c89[_0x2eb0ca(0x13b)],'EsySd':function(_0x214182,_0x3f48f5){const _0x5d45de=_0x2eb0ca;return _0x3f7c89[_0x5d45de(0x17a)](_0x214182,_0x3f48f5);},'VITEr':function(_0x318a50,_0x5c7eb7){const _0x197b8b=_0x2eb0ca;return _0x3f7c89[_0x197b8b(0x17a)](_0x318a50,_0x5c7eb7);},'IcVoo':_0x3f7c89[_0x2eb0ca(0xc8)]};if(_0x41f07){_0x3f7c89[_0x2eb0ca(0x137)](_0x5cb3b6,_0x41f07);return;}_0x33e46a[_0x2eb0ca(0x141)](),_0x33e46a['on'](_0x3f7c89[_0x2eb0ca(0xe8)],_0x5416cf=>{const _0x34cc8d=_0x2eb0ca,_0x59e970={'xNqVM':function(_0x547cce,_0x2ed0ed){const _0x337fc1=a89_0x275e;return _0x2c985a[_0x337fc1(0x13d)](_0x547cce,_0x2ed0ed);},'GZBUw':function(_0x211050,_0x3530b0){return _0x2c985a['uJwKa'](_0x211050,_0x3530b0);},'RWHxO':function(_0x22043f,_0x39232a){return _0x2c985a['AQDzQ'](_0x22043f,_0x39232a);},'GCbLG':_0x2c985a[_0x34cc8d(0x166)]};if(/\/$/['test'](_0x5416cf[_0x34cc8d(0xf1)])){_0x33e46a[_0x34cc8d(0x141)]();return;}!_0x3c3a41&&(_0x3c3a41=_0x5416cf['fileName']);if(_0x2c985a['OQpFd'](_0x5416cf[_0x34cc8d(0xf1)],_0x3c3a41))_0x33e46a[_0x34cc8d(0x141)]();else{const _0x52b163=_0x5416cf['fileName'],_0x1d3002=path[_0x34cc8d(0x13e)](_0x236fd7,_0x52b163+_0x34cc8d(0x19a)+process[_0x34cc8d(0xf8)]);let _0x1f344f;try{_0x1f344f=fs[_0x34cc8d(0x176)](_0x1d3002);}catch(_0x4e6975){if(BINARY_BUSY_ERROR_CODES[_0x34cc8d(0xd7)](_0x4e6975[_0x34cc8d(0x150)])){const _0x5a5b13=path['join'](_0x236fd7,_0x52b163);if(fs[_0x34cc8d(0xb4)](_0x5a5b13)){logger[_0x34cc8d(0xdd)](_0x34cc8d(0x182)+_0x52b163),fs[_0x34cc8d(0x12d)](_0x11fd39,_0x5874eb=>{const _0x9079f1=_0x34cc8d;_0x5874eb&&logger['warn'](_0x9079f1(0x129)+_0x11fd39);}),_0x2c985a[_0x34cc8d(0x16a)](_0x11aae9,_0x5a5b13);return;}logger[_0x34cc8d(0xdd)](_0x34cc8d(0x151)+_0x52b163);}_0x2c985a[_0x34cc8d(0x13d)](_0x5cb3b6,_0x4e6975);return;}_0x1f344f['on'](_0x2c985a['ajQVK'],_0x39cecd=>{const _0x51ae17=_0x34cc8d;if(BINARY_BUSY_ERROR_CODES[_0x51ae17(0xd7)](_0x39cecd['code'])){const _0x8f01a8=path['join'](_0x236fd7,_0x52b163);_0x1f344f[_0x51ae17(0x11c)](),fs['existsSync'](_0x8f01a8)?(logger[_0x51ae17(0xdd)](_0x51ae17(0xc1)+_0x39cecd[_0x51ae17(0x123)]),_0x33e46a[_0x51ae17(0x11c)](),fs[_0x51ae17(0x12d)](_0x11fd39,_0x2e756b=>{const _0x4d0dbe=_0x51ae17;_0x2e756b&&logger[_0x4d0dbe(0xdd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x11fd39);}),_0x59e970['xNqVM'](_0x11aae9,_0x8f01a8)):(logger[_0x51ae17(0xdd)](_0x51ae17(0x14c)+_0x39cecd[_0x51ae17(0x123)]),fs[_0x51ae17(0x12d)](_0x1d3002,()=>{}),_0x59e970[_0x51ae17(0xf2)](_0x5cb3b6,_0x39cecd));}else fs['unlink'](_0x1d3002,()=>{}),_0x59e970[_0x51ae17(0x15f)](_0x5cb3b6,_0x39cecd);}),_0x33e46a[_0x34cc8d(0x110)](_0x5416cf,function(_0x52ed72,_0x428477){const _0x11d971=_0x34cc8d;if(_0x52ed72){fs[_0x11d971(0x12d)](_0x1d3002,()=>{}),_0x2c985a[_0x11d971(0x13d)](_0x5cb3b6,_0x52ed72);return;}_0x428477['on'](_0x2c985a[_0x11d971(0x11a)],function(){const _0x4ed6d1=_0x11d971;_0x1f344f[_0x4ed6d1(0xb5)](),_0x1f344f['on'](_0x59e970[_0x4ed6d1(0x14e)],function(){const _0x89cf6b=_0x4ed6d1;_0x33e46a[_0x89cf6b(0x141)]();});}),_0x428477[_0x11d971(0xbf)](_0x1f344f);});}}),_0x33e46a['on'](_0x3f7c89[_0x2eb0ca(0x140)],_0x1e5eca=>{_0x2c985a['AQDzQ'](_0x5cb3b6,_0x1e5eca);}),_0x33e46a[_0x2eb0ca(0xe1)](_0x3f7c89[_0x2eb0ca(0x171)],()=>{const _0x483596=_0x2eb0ca,_0x2a1ecf={'Afcdg':function(_0x2f3468,_0x3ab5f3){const _0x4942fe=a89_0x275e;return _0x2c985a[_0x4942fe(0x109)](_0x2f3468,_0x3ab5f3);},'BjRzj':_0x2c985a[_0x483596(0x18f)],'HlEJd':function(_0x1b01b9,_0x25231e){const _0x29fdea=_0x483596;return _0x2c985a[_0x29fdea(0x10f)](_0x1b01b9,_0x25231e);},'IUzJc':function(_0x25964f,_0x5b02c1){return _0x2c985a['VITEr'](_0x25964f,_0x5b02c1);}};fs[_0x483596(0x12d)](_0x11fd39,_0x451146=>{const _0x387bdf=_0x483596;_0x451146&&logger[_0x387bdf(0xdd)](_0x387bdf(0x129)+_0x11fd39);});const _0x55692f=path['join'](_0x236fd7,_0x3c3a41+_0x483596(0x19a)+process[_0x483596(0xf8)]),_0xf6ae7f=path[_0x483596(0x13e)](_0x236fd7,_0x3c3a41);fs[_0x483596(0xfd)](_0x55692f,_0x2c985a['IcVoo'],function(_0x4d9815){const _0x49e951=_0x483596,_0x448ddc={'iiihJ':function(_0x1ec0a2,_0x336b47){return _0x2a1ecf['Afcdg'](_0x1ec0a2,_0x336b47);},'WIZdT':_0x2a1ecf[_0x49e951(0x15c)],'uYDZC':function(_0x49bfa3,_0x2c51a8){const _0x3a7431=_0x49e951;return _0x2a1ecf[_0x3a7431(0xe4)](_0x49bfa3,_0x2c51a8);}};if(_0x4d9815){_0x33e46a[_0x49e951(0x11c)](),fs[_0x49e951(0x12d)](_0x55692f,()=>{}),_0x2a1ecf[_0x49e951(0xcb)](_0x5cb3b6,_0x4d9815);return;}fs['rename'](_0x55692f,_0xf6ae7f,function(_0x25db35){const _0x2aa0a1=_0x49e951;if(_0x25db35){if(_0x448ddc[_0x2aa0a1(0x161)](_0x25db35['code'],_0x448ddc['WIZdT'])){_0x33e46a[_0x2aa0a1(0x11c)](),fs[_0x2aa0a1(0x12d)](_0x55692f,()=>{}),_0x448ddc[_0x2aa0a1(0x14a)](_0x5cb3b6,_0x25db35);return;}logger['warn'](_0x2aa0a1(0xce)+_0x25db35['message']);try{fs[_0x2aa0a1(0xc2)](_0x55692f,_0xf6ae7f);}catch(_0x4ac7c8){_0x33e46a[_0x2aa0a1(0x11c)](),fs['unlink'](_0x55692f,()=>{}),_0x448ddc['uYDZC'](_0x5cb3b6,_0x4ac7c8);return;}fs[_0x2aa0a1(0x12d)](_0x55692f,_0x9aa22b=>{const _0x480089=_0x2aa0a1;_0x9aa22b&&logger[_0x480089(0xdd)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x9aa22b[_0x480089(0x123)]);});}_0x33e46a[_0x2aa0a1(0x11c)](),_0x448ddc[_0x2aa0a1(0x14a)](_0x11aae9,_0xf6ae7f);});});});});});}static['getTestFrameworkDetail'](){const _0xfc8c0e=a89_0x23ec85;if(process[_0xfc8c0e(0x12e)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON['parse'](process['env'][_0xfc8c0e(0x134)]);return this[_0xfc8c0e(0x10e)];}static[a89_0x23ec85(0x111)](){const _0x8599ae=a89_0x23ec85;if(process[_0x8599ae(0x12e)][_0x8599ae(0x108)])return JSON[_0x8599ae(0xe2)](process[_0x8599ae(0x12e)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x8599ae(0xc5)];}static[a89_0x23ec85(0xec)](_0x24e62c,_0x39bf31){const _0x5cc6c0=a89_0x23ec85,_0x213347={'OFhrT':'4|0|3|1|2','WWPCQ':function(_0x5e5e26,_0x464b86){return _0x5e5e26(_0x464b86);},'nofPA':function(_0x19e3a9,_0x3b8959){return _0x19e3a9(_0x3b8959);},'xsWmj':function(_0x383274,_0x276e1d){return _0x383274||_0x276e1d;}},_0xf8ce27=_0x213347[_0x5cc6c0(0x157)][_0x5cc6c0(0x16d)]('|');let _0x2dad0d=0x0;while(!![]){switch(_0xf8ce27[_0x2dad0d++]){case'0':this['testFrameworkDetail']={'name':_0x24e62c,'version':{[_0x24e62c]:_0x213347['WWPCQ'](getFrameworkVersion,_0x24e62c)}};continue;case'1':process[_0x5cc6c0(0x12e)][_0x5cc6c0(0x108)]=JSON[_0x5cc6c0(0x138)](this[_0x5cc6c0(0xc5)]);continue;case'2':process[_0x5cc6c0(0x12e)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x5cc6c0(0x138)](this[_0x5cc6c0(0x10e)]);continue;case'3':this[_0x5cc6c0(0xc5)]={'name':_0x39bf31,'version':_0x213347[_0x5cc6c0(0x12c)](getFrameworkVersion,_0x39bf31)};continue;case'4':_0x213347[_0x5cc6c0(0x17d)](!_0x24e62c,!_0x39bf31)&&logger[_0x5cc6c0(0x114)](_0x5cc6c0(0x117)+_0x24e62c+',\x20automationFramework='+_0x39bf31);continue;}break;}}static[a89_0x23ec85(0x194)](_0x1cd9c8,_0x2e9d8c){return _0x1cd9c8+':'+_0x2e9d8c;}static[a89_0x23ec85(0x104)](){const _0x418164=a89_0x23ec85;return process[_0x418164(0xf8)]+':'+threadId;}static[a89_0x23ec85(0xf7)](_0x5744db){const _0xfe1466=a89_0x23ec85;if(_0x5744db[_0xfe1466(0xea)]&&_0x5744db[_0xfe1466(0xea)][_0xfe1466(0x19c)])return!![];return![];}static['shouldSkipSessionStatus'](_0x388ad5){const _0x2d2e36=a89_0x23ec85;if(_0x388ad5['testContextOptions']&&_0x388ad5[_0x2d2e36(0xea)][_0x2d2e36(0x128)])return!![];return![];}static['matchHookRegex'](_0x330128){const _0x26176d=a89_0x23ec85,_0x208aa8=new RegExp(TestFrameworkConstants[_0x26176d(0x106)]);return _0x208aa8[_0x26176d(0xc3)](_0x330128);}static['mergeObject'](_0xbfa6ea,_0x2ad585){const _0x9f9a95=a89_0x23ec85,_0x7cd5a6={};_0x7cd5a6[_0x9f9a95(0xdb)]=function(_0x4c426a,_0x73eda0){return _0x4c426a!==_0x73eda0;},_0x7cd5a6[_0x9f9a95(0xe6)]=function(_0xac64c7,_0x1078d8){return _0xac64c7===_0x1078d8;},_0x7cd5a6['xGCID']=_0x9f9a95(0x18c);const _0x49f8bc=_0x7cd5a6;for(const [_0x237bad,_0x3b06d3]of Object[_0x9f9a95(0x10a)](_0x2ad585)){if(_0x49f8bc[_0x9f9a95(0xdb)](_0x3b06d3,null)&&_0x49f8bc[_0x9f9a95(0xe6)](typeof _0x3b06d3,_0x49f8bc[_0x9f9a95(0x174)])&&!Array[_0x9f9a95(0xfe)](_0x3b06d3))_0xbfa6ea[_0x237bad]=this[_0x9f9a95(0x125)](_0xbfa6ea[_0x237bad]||{},_0x3b06d3);else Array[_0x9f9a95(0xfe)](_0x3b06d3)?_0xbfa6ea[_0x237bad]=(_0xbfa6ea[_0x237bad]||[])[_0x9f9a95(0x172)](_0x3b06d3):_0xbfa6ea[_0x237bad]=_0x3b06d3;}return _0xbfa6ea;}}module[a89_0x23ec85(0x15b)]=CLIUtils;function a89_0x1d9f(){const _0x4baa22=['homedir','fuBMY','sqRwG','warn','../utils/apiUtilityMethods.js','entry','326380LCqbon','once','parse','trim','HlEJd','SDK_CLI_DOWNLOAD','RgwoZ','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','LjiOc','Development\x20Cli\x20Path:\x20','testContextOptions','Binary\x20is\x20busy:\x20','setFrameworkDetail','getWritableDir','\x20version','0755','mMBJJ','fileName','GZBUw','format','ynTAO','closeSync','nlHno','shouldSkipSessionName','pid','statSync','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','toqWF','child_process','chmod','isArray','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','../../helpers/performance/constants','listen','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','getExistingCliPath','getCurrentInstanceName','../../helpers/test-observability/utils.js','HOOK_REGEX','6hsukTk','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','OQpFd','entries','resume','cMWsl','UhcwA','testFrameworkDetail','EsySd','openReadStream','getAutomationFrameworkDetail','thCSG','cli_version','debug','JCGPT','rdVEF','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','requestToUpdateCLI','IFatD','zJWse','SDK_CLI_BIN_PATH','close','Folder\x20','576loCAzk','mtime','runShellCommand','2646hAQimQ','map','message','KgdIX','mergeObject','bHaFg','.zip','skipSessionStatus','Failed\x20to\x20delete\x20zip\x20file:\x20','BROWSERSTACK_BINARY_URL','error','nofPA','unlink','env','start','PDqmB','SDK_CLI_CHECK_UPDATE','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','downloaded_file_','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','SHELL_EXECUTE_ERROR','startsWith','dVQqz','stringify','Error\x20while\x20reading\x20CLI\x20path:\x20','setupCliPath','xGNCq','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','nomZs','join','unix:/tmp/sdk-platform-','iSUUY','readEntry','../../helpers/helper','kfJbY','path','hCLdX','Current\x20CLI\x20Path\x20Found:\x20','development','7539ArFgNb','TfnDo','uYDZC','Quome','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','cli','GCbLG','isFile','code','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','node','url','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','Resolving\x20with\x20stdout:\x20\x22','tMKcu','OFhrT','JbqLy','../../helpers/utilities','Configuring\x20Cli\x20path.','exports','BjRzj','./state/hookState.js','kcFCz','RWHxO','heCmJ','iiihJ','checkAndUpdateCli','platform','xWtvG','worker_threads','nXVmX','isDevelopmentEnv','getCLIParamsForDevEnv','filePath','uJwKa','downloadLatestBinary','arch','split','tmpdir','284100NIvmpq','BROWSERSTACK_CLI_ENV','homrW','concat','WLHNu','xGCID','./state/automationFrameworkState.js','createWriteStream','.browserstack','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','uyfgi','SCvye','4413222eOjsGM','zjiOC','xsWmj','statusCode','XtAWI','info','Setting\x20required\x20permissions\x20to\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','NsItJ','getCliDir','EXDEV','cwd','\x20already\x20exists','VRYbk','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Downloading\x20SDK\x20binary\x20from:\x20','filter','object','getSdkLanguage','isDirectory','osbGx','aEiLA','./instances/testFrameworkInstance.js','LyirO','ZrPNg','getHookRegistryKey','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','MtIVs','CXesU','bDfpS','isBinaryBusy','.tmp.','Resolved\x20binary\x20path:\x20','skipSessionName','jtTmS','openSync','DyZRr','QaFpS','CLIUtils','../../helpers/performance/performance-tester.js','existsSync','end','ibTfQ','downloadFileStream','basename','lazyEntries','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','UAvhH','xFZVr','reduce','pipe','293635dRMJJe','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','copyFileSync','test','\x20from\x20','automationFrameworkDetail','FGHAN','data','WaBSq','IbrpS','28UXRUYo','IUzJc','484825Nvrlog','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','version','open','../utils/constants','binary-','xZbtx','78894yNnJgk','FIraH','vWzPB','includes','tlrei','ZdwSx'];a89_0x1d9f=function(){return _0x4baa22;};return a89_0x1d9f();}
1
+ const a89_0x49e1ef=a89_0x3f84;function a89_0x3f84(_0x7296dc,_0x1add4b){const _0x13427b=a89_0x1342();return a89_0x3f84=function(_0x3f8439,_0x1b2c90){_0x3f8439=_0x3f8439-0xdd;let _0x3e343e=_0x13427b[_0x3f8439];return _0x3e343e;},a89_0x3f84(_0x7296dc,_0x1add4b);}function a89_0x1342(){const _0x30bb06=['Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','ZjhfT','entry','HDQok','fyNux','NiEZE','nxrva','join','object',',\x20automationFramework=','GDFpJ','iGuqi','jWJHg','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','CLIUtils','1950800nDdSMQ','IhIZt','parse','HYNIF','getTestFrameworkDetail','resume','nbxmJ','split','copyFileSync','development','../../../package.json','ugvGZ','Folder\x20','OilEC','includes','pojde','format','skipSessionName','warn','nocOj','version','BTHPy','4333436wXeLWW','rEuEO','mtime','start','SRBBd','shouldSkipSessionName','child_process','mKVUZ','KDTec','SDK_CLI_CHECK_UPDATE','statusCode','kpWIZ','GET','homedir','yauzl','arch','./framework/constants/testFrameworkConstants.js','info','wxaqN','isArray','error','gLxVE','EXDEV','mergeObject','NQorw','QrVGq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','tZrLd','exports','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','requestToUpdateCLI','message','test','readEntry','matchHookRegex','HTTP\x20','\x20already\x20exists','GXafb','length','zcHjY','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','node','OinDs','runShellCommand','ZBnNF','../utils/constants','SDK_CLI_DOWNLOAD','openReadStream','MIIxs','close','RqsaC','../../helpers/classLogger.js','ZisrU','Configuring\x20Cli\x20path.','getExistingCliPath','eVkwu','unlink','BROWSERSTACK_BINARY_URL','timeout','code','oDCCg','5629568euPXgb','\x20from\x20','get','open','debug','rename','data','isBinaryBusy','automationFrameworkDetail','MQFnz','1272921VjYXIy','response\x20','Setting\x20required\x20permissions\x20to\x20','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','nAYBP','ZaOIs','destroy','map','cli_version','CLI\x20version\x20found\x20despite\x20error:\x20\x22','trOFf','NDMko','env','vSjZB','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','CgNIH','unix:/tmp/sdk-platform-','./state/automationFrameworkState.js','getAutomationFrameworkDetail','getWritableDir','../../helpers/performance/constants','Qqawg','SOCwX','SDK_CLI_BIN_PATH','qCqKs','wzdLh','hFrEQ','url','uqQAZ','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','bgCvh','Downloading\x20SDK\x20binary\x20from:\x20','pipe','worker_threads','mSSpO','hNSeI','YBatR','statSync','getCurrentInstanceName','createWriteStream','fileName','listen','Development\x20Cli\x20Path:\x20','getHookRegistryKey','testFrameworkDetail','platform','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','uSDVO','UkeyP','lEYnu','gyZdu','./state/testFrameworkState.js','existsSync','351917caVcmE','.browserstack','filePath','nsTee','STsva','rokkZ','cwd','Binary\x20is\x20busy:\x20','UfGhD','setFrameworkDetail','../../helpers/test-observability/utils.js','startsWith','ZRWEp','PEXwQ','Resolved\x20binary\x20path:\x20','preserveStatusCodeOnError','695UkKNew','Failed\x20to\x20delete\x20zip\x20file:\x20','IXysX','end','../../helpers/utilities','chmod','21630520WiexWi','ngwaK','entries','skipSessionStatus','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','VQKJm','dGXse','qzrvt','SHELL_EXECUTE_ERROR','AkfJg','jLDbq','xuvqD','openSync','./instances/testFrameworkInstance.js','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','testContextOptions','TzLJe','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','.zip','\x20version','TaZwx','.sock','gUNwL','concat','22926geKNOb','checkAndUpdateCli','stringify','Error\x20while\x20reading\x20CLI\x20path:\x20','cli','trim','BROWSERSTACK_CLI_ENV','closeSync','../utils/apiUtilityMethods.js','ZajOT','isDevelopmentEnv','../../helpers/helper','filter','yKUnY','getSdkLanguage','basename','.tmp.','dHhAc','follow-redirects','BROWSERSTACK_FILES_DIR','acDFN','getSdkVersion','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','lazyEntries','FCBfi','readdirSync','elTiU','FLVbC','pid','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','./state/hookState.js','NWBVe','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s'];a89_0x1342=function(){return _0x30bb06;};return a89_0x1342();}(function(_0x2c6bbf,_0x5d691e){const _0x4f437b=a89_0x3f84,_0x8840d4=_0x2c6bbf();while(!![]){try{const _0x6d71b6=-parseInt(_0x4f437b(0x1a4))/0x1+-parseInt(_0x4f437b(0x112))/0x2+-parseInt(_0x4f437b(0x16f))/0x3+parseInt(_0x4f437b(0x128))/0x4+parseInt(_0x4f437b(0x1b4))/0x5*(-parseInt(_0x4f437b(0xe2))/0x6)+-parseInt(_0x4f437b(0x165))/0x7+parseInt(_0x4f437b(0x1ba))/0x8;if(_0x6d71b6===_0x5d691e)break;else _0x8840d4['push'](_0x8840d4['shift']());}catch(_0x2817d2){_0x8840d4['push'](_0x8840d4['shift']());}}}(a89_0x1342,0xaaf2f));const fs=require('fs'),os=require('os'),url=require('url'),path=require('path'),{exec}=require(a89_0x49e1ef(0x12e)),{https}=require(a89_0x49e1ef(0xf4)),yauzl=require(a89_0x49e1ef(0x136)),util=require('util'),{getFrameworkVersion}=require(a89_0x49e1ef(0x1ae)),{threadId}=require(a89_0x49e1ef(0x190)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a89_0x49e1ef(0x183)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x49e1ef(0x1b8)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x49e1ef(0xed)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x49e1ef(0x155)),{createClassLogger}=require(a89_0x49e1ef(0x15b)),TestFrameworkInstance=require(a89_0x49e1ef(0x1c8)),HookState=require(a89_0x49e1ef(0x100)),TestFrameworkState=require(a89_0x49e1ef(0x1a2)),AutomationFrameworkState=require(a89_0x49e1ef(0x180)),TestFrameworkConstants=require(a89_0x49e1ef(0x138)),logger=createClassLogger(a89_0x49e1ef(0x111)),{getBStackAPIUrl}=require(a89_0x49e1ef(0xea));class CLIUtils{[a89_0x49e1ef(0x16d)]={};['testFrameworkDetail']={};static[a89_0x49e1ef(0xec)](){const _0x183bbe=a89_0x49e1ef,_0x206577={};_0x206577['RhLgE']=function(_0x2b2cfb,_0x4676c7){return _0x2b2cfb===_0x4676c7;},_0x206577[_0x183bbe(0x164)]=_0x183bbe(0x11b);const _0x2ad245=_0x206577;return _0x2ad245['RhLgE'](process['env'][_0x183bbe(0xe8)],_0x2ad245[_0x183bbe(0x164)]);}static['getCLIParamsForDevEnv'](){const _0x130b5a=a89_0x49e1ef,_0x392b3e={};return _0x392b3e['id']=process[_0x130b5a(0x17b)][_0x130b5a(0xe8)],_0x392b3e[_0x130b5a(0x198)]=_0x130b5a(0x17f)+process['env']['BROWSERSTACK_CLI_ENV']+_0x130b5a(0xdf),_0x392b3e;}static['getSdkVersion'](){const _0x2bde8d=a89_0x49e1ef,_0x2bf253={'ZBnNF':function(_0x5be2b9,_0x717723){return _0x5be2b9(_0x717723);},'QdAaI':_0x2bde8d(0x11c)};return _0x2bf253[_0x2bde8d(0x154)](require,_0x2bf253['QdAaI'])[_0x2bde8d(0x126)];}static[a89_0x49e1ef(0xf0)](){const _0x33e1d0=a89_0x49e1ef,_0x17c099={};_0x17c099['ZisrU']=_0x33e1d0(0x151);const _0x4b143d=_0x17c099;return _0x4b143d[_0x33e1d0(0x15c)];}static async['setupCliPath'](_0x464010){const _0x2d79b3=a89_0x49e1ef,_0x41fa13={'qCqKs':_0x2d79b3(0x15d),'IOnlC':function(_0x220e60,_0x457b49){return _0x220e60(_0x457b49);},'rCGUN':function(_0x1bdfb4,_0x31f9b3){return _0x1bdfb4(_0x31f9b3);},'MIIxs':_0x2d79b3(0x17d)};logger[_0x2d79b3(0x169)](_0x41fa13[_0x2d79b3(0x187)]);const _0xfb333=process[_0x2d79b3(0x17b)][_0x2d79b3(0x186)];if(!_0x41fa13['IOnlC'](isNullOrEmpty,_0xfb333))return logger['debug'](_0x2d79b3(0x199)+_0xfb333),_0xfb333;try{const _0x1824ef=this['getCliDir']();if(_0x41fa13['rCGUN'](isNullOrEmpty,_0x1824ef))throw new Error(_0x41fa13[_0x2d79b3(0x158)]);const _0x404b56=this[_0x2d79b3(0x15e)](_0x1824ef),_0x521da8=await this['checkAndUpdateCli'](_0x404b56,_0x1824ef,_0x464010);return logger[_0x2d79b3(0x169)](_0x2d79b3(0x1b2)+_0x521da8),_0x521da8;}catch(_0x12882d){logger[_0x2d79b3(0x169)](_0x2d79b3(0x1c9)+util[_0x2d79b3(0x122)](_0x12882d));}return null;}static async[a89_0x49e1ef(0xe3)](_0x191f03,_0x247fdd,_0x3282c9){const _0x2fe06f=a89_0x49e1ef,_0x47f5c3={'VQKJm':function(_0x487a4b){return _0x487a4b();},'mSSpO':function(_0x48dbdc,_0x296464){return _0x48dbdc(_0x296464);},'nsTee':function(_0x5742a2,_0x2cd527,_0x257178){return _0x5742a2(_0x2cd527,_0x257178);},'NDMko':_0x2fe06f(0x16b),'BTHPy':_0x2fe06f(0x18a)};PerformanceTester[_0x2fe06f(0x12b)](PerformanceEvents[_0x2fe06f(0x131)]);try{logger[_0x2fe06f(0x139)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x191f03);const _0xe7683d=_0x47f5c3[_0x2fe06f(0x1c0)](getHostInfo),_0x4267a6={'sdk_version':CLIUtils[_0x2fe06f(0xf7)](),'os':_0xe7683d[_0x2fe06f(0x19c)],'os_arch':_0xe7683d[_0x2fe06f(0x137)],'cli_version':'0','sdk_language':this[_0x2fe06f(0xf0)]()};!_0x47f5c3[_0x2fe06f(0x191)](isNullOrEmpty,_0x191f03)&&(_0x4267a6[_0x2fe06f(0x177)]=await this['runShellCommand'](_0x191f03+_0x2fe06f(0xdd)));const _0x53f5db=await this[_0x2fe06f(0x146)](_0x4267a6,_0x3282c9);process[_0x2fe06f(0x17b)][_0x2fe06f(0x161)]&&(logger['info'](_0x2fe06f(0x1cc)+process[_0x2fe06f(0x17b)][_0x2fe06f(0x161)]),_0x53f5db[_0x2fe06f(0x16b)][_0x2fe06f(0x18a)]=process[_0x2fe06f(0x17b)][_0x2fe06f(0x161)]);if(_0x47f5c3['nsTee'](nestedKeyValue,_0x53f5db,[_0x47f5c3[_0x2fe06f(0x17a)],_0x47f5c3[_0x2fe06f(0x127)]])){logger['debug'](_0x2fe06f(0x110)+_0x4267a6[_0x2fe06f(0x177)]);if(!_0x47f5c3[_0x2fe06f(0x191)](isNullOrEmpty,_0x191f03)&&this[_0x2fe06f(0x16c)](_0x191f03))return logger[_0x2fe06f(0x124)](_0x2fe06f(0x18c)+_0x191f03),_0x191f03;return await this['downloadLatestBinary'](_0x47f5c3[_0x2fe06f(0x1a7)](nestedKeyValue,_0x53f5db,[_0x47f5c3[_0x2fe06f(0x17a)],_0x47f5c3[_0x2fe06f(0x127)]]),_0x247fdd);}return _0x191f03;}finally{PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static['getCliDir'](){const _0x283ab5=a89_0x49e1ef,_0x4ab6f2={'dGXse':function(_0x41d976,_0x25b2ff){return _0x41d976(_0x25b2ff);},'xLrGa':_0x283ab5(0x17d),'xKweT':_0x283ab5(0xe6)},_0x3017fa=this[_0x283ab5(0x182)]();try{if(_0x4ab6f2[_0x283ab5(0x1c1)](isNullOrEmpty,_0x3017fa))throw new Error(_0x4ab6f2['xLrGa']);const _0x1919a5=path[_0x283ab5(0x10a)](_0x3017fa,_0x4ab6f2['xKweT']);return!fs[_0x283ab5(0x1a3)](_0x1919a5)&&_0x4ab6f2[_0x283ab5(0x1c1)](createDir,_0x1919a5),_0x1919a5;}catch(_0xa666d7){logger[_0x283ab5(0x169)](_0x283ab5(0x1be)+util[_0x283ab5(0x122)](_0xa666d7));}}static['getWritableDir'](){const _0x608898=a89_0x49e1ef,_0x575883={'IhIZt':_0x608898(0x1a5),'YBatR':function(_0x4c1b2d,_0x521034){return _0x4c1b2d(_0x521034);},'uSDVO':function(_0x91827,_0xdf5cd0){return _0x91827(_0xdf5cd0);},'lEYnu':function(_0x631421,_0x2012bb){return _0x631421(_0x2012bb);}},_0x411c30=[process[_0x608898(0x17b)][_0x608898(0xf5)],path[_0x608898(0x10a)](os[_0x608898(0x135)](),_0x575883[_0x608898(0x113)]),path[_0x608898(0x10a)](os['tmpdir'](),_0x575883[_0x608898(0x113)])];for(const _0x59bfdd of _0x411c30){if(_0x575883[_0x608898(0x193)](isNullOrEmpty,_0x59bfdd))continue;try{if(fs['existsSync'](_0x59bfdd)){logger[_0x608898(0x169)](_0x608898(0x11e)+_0x59bfdd+_0x608898(0x14c));if(!_0x575883[_0x608898(0x193)](isModifiable,_0x59bfdd)){logger['debug'](_0x608898(0x171)+_0x59bfdd);const _0x5ce9e6=_0x575883[_0x608898(0x193)](setReadWriteExecuteAccess,_0x59bfdd);if(!_0x575883[_0x608898(0x19e)](isTrue,_0x5ce9e6)){logger[_0x608898(0x124)](_0x608898(0x142)+_0x59bfdd);continue;}}}else{logger[_0x608898(0x169)]('Folder\x20does\x20not\x20exist:\x20'+_0x59bfdd),_0x575883['lEYnu'](createDir,_0x59bfdd),logger[_0x608898(0x169)](_0x608898(0x171)+_0x59bfdd);const _0x239221=_0x575883[_0x608898(0x1a0)](setReadWriteExecuteAccess,_0x59bfdd);!_0x575883[_0x608898(0x193)](isTrue,_0x239221)&&logger[_0x608898(0x124)](_0x608898(0x142)+_0x59bfdd);}return _0x59bfdd;}catch(_0x59e0c9){logger[_0x608898(0x13c)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x608898(0x122)](_0x59e0c9));}}return null;}static['getExistingCliPath'](_0x519dac){const _0x6e1dc6=a89_0x49e1ef,_0xf221b9={};_0xf221b9[_0x6e1dc6(0x121)]=function(_0x2023c9,_0x5f3145){return _0x2023c9>_0x5f3145;};const _0x29cf70=_0xf221b9;try{if(!fs[_0x6e1dc6(0x1a3)](_0x519dac)||!fs['statSync'](_0x519dac)['isDirectory']())return'';const _0x57bc68=fs[_0x6e1dc6(0xfb)](_0x519dac)['map'](_0x434e04=>path[_0x6e1dc6(0x10a)](_0x519dac,_0x434e04))[_0x6e1dc6(0xee)](_0x406e10=>fs['statSync'](_0x406e10)['isFile']()&&path[_0x6e1dc6(0xf1)](_0x406e10)[_0x6e1dc6(0x1af)]('binary-'));if(_0x29cf70['pojde'](_0x57bc68[_0x6e1dc6(0x14e)],0x0)){const _0x202bde=_0x57bc68[_0x6e1dc6(0x176)](_0x395028=>({'filePath':_0x395028,'mtime':fs[_0x6e1dc6(0x194)](_0x395028)[_0x6e1dc6(0x12a)]}))['reduce']((_0x41e2f7,_0x369d4d)=>{const _0x2df8a8=_0x6e1dc6;if(!_0x41e2f7||!_0x41e2f7[_0x2df8a8(0x12a)])return _0x369d4d;if(_0x29cf70[_0x2df8a8(0x121)](_0x369d4d[_0x2df8a8(0x12a)],_0x41e2f7[_0x2df8a8(0x12a)]))return _0x369d4d;return _0x41e2f7;},{});return _0x202bde?_0x202bde[_0x6e1dc6(0x1a6)]:'';}return'';}catch(_0x12790e){return logger[_0x6e1dc6(0x13c)](_0x6e1dc6(0xe5)+util[_0x6e1dc6(0x122)](_0x12790e)),'';}}static [a89_0x49e1ef(0x146)]=async(_0x1e69f6,_0x5ef105)=>{const _0x253d85=a89_0x49e1ef,_0x4fb149={'FLVbC':function(_0xea40f5,_0x8c16c8,_0x9cfcfe,_0x381a9b,_0x5bb01a){return _0xea40f5(_0x8c16c8,_0x9cfcfe,_0x381a9b,_0x5bb01a);},'NQorw':_0x253d85(0x134)},_0x46364c={};_0x46364c['qs']=_0x1e69f6,_0x46364c[_0x253d85(0x1b3)]=!![];const _0x56a46b=await _0x4fb149[_0x253d85(0xfd)](nodeRequest,_0x4fb149[_0x253d85(0x140)],UPDATED_CLI_ENDPOINT,_0x46364c,_0x5ef105);return logger[_0x253d85(0x169)](_0x253d85(0x170)+JSON[_0x253d85(0xe4)](_0x56a46b)),_0x56a46b;};static['isBinaryBusy'](_0x63a938){const _0x22ca92=a89_0x49e1ef;try{const _0x9507f8=fs[_0x22ca92(0x1c7)](_0x63a938,'r+');return fs[_0x22ca92(0xe9)](_0x9507f8),![];}catch(_0x6e0943){if(BINARY_BUSY_ERROR_CODES[_0x22ca92(0x120)](_0x6e0943[_0x22ca92(0x163)]))return logger[_0x22ca92(0x169)](_0x22ca92(0x1ab)+_0x63a938),!![];return logger['debug'](_0x22ca92(0x172)+_0x6e0943[_0x22ca92(0x147)]),![];}}static[a89_0x49e1ef(0x153)](_0x640093,_0x55689d=''){const _0x2a29da=a89_0x49e1ef,_0x25035e={'hSAMF':_0x2a29da(0x126),'nxrva':function(_0x22bf57,_0x49e83d){return _0x22bf57(_0x49e83d);},'hzCde':function(_0x1a61af,_0x3257dd){return _0x1a61af(_0x3257dd);},'ZjhfT':_0x2a29da(0x1c3),'HDQok':function(_0x3963cc,_0x17063c){return _0x3963cc(_0x17063c);},'TaZwx':function(_0x5eefcb,_0x14cc2b){return _0x5eefcb(_0x14cc2b);},'nbxmJ':function(_0x2f8439,_0x367511,_0x468237,_0x35204c){return _0x2f8439(_0x367511,_0x468237,_0x35204c);},'uqQAZ':_0x2a29da(0x13c)};return new Promise((_0x404dc6,_0x2ad1c5)=>{const _0x5f26e1=_0x2a29da,_0x420fb2={};_0x420fb2[_0x5f26e1(0x1aa)]=_0x55689d,_0x420fb2[_0x5f26e1(0x162)]=0x1388;const _0x353a47=_0x25035e[_0x5f26e1(0x118)](exec,_0x640093,_0x420fb2,(_0x5c8c48,_0x31a92b,_0x1119f9)=>{const _0x579d65=_0x5f26e1;if(_0x5c8c48){if(_0x640093[_0x579d65(0x120)](_0x25035e['hSAMF'])&&(_0x31a92b['trim']()||_0x1119f9[_0x579d65(0xe7)]())){const _0x1f099d=_0x31a92b['trim']()||_0x1119f9[_0x579d65(0xe7)]();logger[_0x579d65(0x169)](_0x579d65(0x178)+_0x1f099d+'\x22'),_0x25035e[_0x579d65(0x109)](_0x404dc6,_0x1f099d);}else _0x25035e['hzCde'](_0x404dc6,_0x1119f9[_0x579d65(0xe7)]()||_0x25035e[_0x579d65(0x104)]);}else logger[_0x579d65(0x169)]('Resolving\x20with\x20stdout:\x20\x22'+_0x31a92b[_0x579d65(0xe7)]()+'\x22'),_0x25035e[_0x579d65(0x106)](_0x404dc6,_0x31a92b['trim']());});_0x353a47['on'](_0x25035e[_0x5f26e1(0x18b)],()=>{const _0x53457b=_0x5f26e1;_0x25035e[_0x53457b(0xde)](_0x404dc6,_0x25035e[_0x53457b(0x104)]);});});}static ['downloadLatestBinary']=async(_0x4e57cf,_0x635eb1)=>{const _0x8faadd=a89_0x49e1ef,_0x54b39e={'RqsaC':function(_0xc09820,_0x5ba358){return _0xc09820(_0x5ba358);},'NisQd':function(_0x40875e,_0x1248d1){return _0x40875e(_0x1248d1);},'gUNwL':_0x8faadd(0x103),'fyNux':function(_0x34d51c,_0x3d1b1f){return _0x34d51c(_0x3d1b1f);},'zcHjY':_0x8faadd(0x1bf),'wxaqN':function(_0x4b900d,_0x248458){return _0x4b900d(_0x248458);},'ODuEa':function(_0x38d012,_0x551920){return _0x38d012>=_0x551920;},'FCBfi':'DOWNLOAD_HTTP','wzdLh':_0x8faadd(0x102),'tZrLd':_0x8faadd(0x13c),'nizmh':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x8faadd(0x169)](_0x8faadd(0x18e)+_0x4e57cf);try{const _0xcce20c=url[_0x8faadd(0x114)](_0x4e57cf),_0x7f0d04=path['join'](_0x635eb1,'downloaded_file_'+process[_0x8faadd(0xfe)]+_0x8faadd(0x1cd)),_0xb7a4a6=fs[_0x8faadd(0x196)](_0x7f0d04);return new Promise((_0x7149bf,_0x1b50ad)=>{const _0x17804c=_0x8faadd,_0x3520e6={'ZRWEp':function(_0x145d05,_0x993d08){return _0x54b39e['NisQd'](_0x145d05,_0x993d08);},'rEuEO':_0x54b39e[_0x17804c(0xe0)],'Qqawg':function(_0x1aff76,_0x53ebd3){const _0x469d40=_0x17804c;return _0x54b39e[_0x469d40(0x107)](_0x1aff76,_0x53ebd3);},'SRBBd':_0x54b39e[_0x17804c(0x14f)],'hNSeI':function(_0x12e68d,_0x2595b0){const _0x588f5e=_0x17804c;return _0x54b39e[_0x588f5e(0x13a)](_0x12e68d,_0x2595b0);},'NeikI':function(_0x278886,_0x4ef507){return _0x54b39e['ODuEa'](_0x278886,_0x4ef507);},'elTiU':_0x54b39e[_0x17804c(0xfa)],'aQCHf':_0x54b39e[_0x17804c(0x188)],'trOFf':_0x54b39e[_0x17804c(0x143)]};https[_0x17804c(0x167)](_0xcce20c,function(_0x245279){const _0x8ab903=_0x17804c,_0x26863a={'QrVGq':_0x3520e6[_0x8ab903(0x129)],'ZaOIs':function(_0x38a8c3,_0x422f38){const _0x52c957=_0x8ab903;return _0x3520e6[_0x52c957(0x184)](_0x38a8c3,_0x422f38);},'YbJua':_0x3520e6[_0x8ab903(0x12c)],'iGuqi':function(_0x46f33c,_0x569ad5){const _0x31d7f9=_0x8ab903;return _0x3520e6[_0x31d7f9(0x184)](_0x46f33c,_0x569ad5);},'yKUnY':function(_0x285d01,_0x5bb064){const _0x1d8ffd=_0x8ab903;return _0x3520e6[_0x1d8ffd(0x192)](_0x285d01,_0x5bb064);}},_0x5cd10d=null;if(_0x245279['statusCode']&&_0x3520e6['NeikI'](_0x245279[_0x8ab903(0x132)],0x190)){const _0x53b55c=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x245279['statusCode']+_0x8ab903(0x166)+_0x4e57cf);_0x53b55c['code']=_0x3520e6[_0x8ab903(0xfc)],_0x53b55c[_0x8ab903(0x132)]=_0x245279['statusCode'],logger['error'](util[_0x8ab903(0x122)](_0x3520e6['aQCHf'],_0x245279['statusCode'])),PerformanceTester[_0x8ab903(0x1b7)](PerformanceEvents[_0x8ab903(0x156)],![],_0x8ab903(0x14b)+_0x245279[_0x8ab903(0x132)]),_0x245279[_0x8ab903(0x117)](),_0xb7a4a6[_0x8ab903(0x175)](),fs['unlink'](_0x7f0d04,()=>{}),_0x3520e6[_0x8ab903(0x184)](_0x1b50ad,_0x53b55c);return;}_0x245279[_0x8ab903(0x18f)](_0xb7a4a6),_0x245279['on'](_0x3520e6[_0x8ab903(0x179)],function(_0x53f847){const _0x3a1a4e=_0x8ab903;logger[_0x3a1a4e(0x13c)](util['format'](_0x26863a[_0x3a1a4e(0x141)],_0x53f847)),PerformanceTester[_0x3a1a4e(0x1b7)](PerformanceEvents[_0x3a1a4e(0x156)],![],util['format'](_0x53f847)),_0x26863a[_0x3a1a4e(0x174)](_0x1b50ad,_0x53f847);}),_0xb7a4a6['on'](_0x3520e6['trOFf'],function(_0x796a9e){const _0x36f6e2=_0x8ab903;logger[_0x36f6e2(0x13c)](util[_0x36f6e2(0x122)](_0x26863a['YbJua'],_0x796a9e)),PerformanceTester[_0x36f6e2(0x1b7)](PerformanceEvents[_0x36f6e2(0x156)],![],util[_0x36f6e2(0x122)](_0x796a9e)),_0x26863a[_0x36f6e2(0x10e)](_0x1b50ad,_0x796a9e);}),CLIUtils['downloadFileStream'](_0xb7a4a6,_0x5cd10d,_0x7f0d04,_0x635eb1,_0x4874a9=>{const _0x44761f=_0x8ab903;PerformanceTester['end'](PerformanceEvents[_0x44761f(0x156)]),_0x3520e6[_0x44761f(0x1b0)](_0x7149bf,_0x4874a9);},_0x3bad6c=>{const _0x26e05a=_0x8ab903;PerformanceTester[_0x26e05a(0x1b7)](PerformanceEvents[_0x26e05a(0x156)],![],util[_0x26e05a(0x122)](_0x3bad6c)),_0x26863a[_0x26e05a(0xef)](_0x1b50ad,_0x3bad6c);});})['on'](_0x54b39e[_0x17804c(0x143)],function(_0x276e06){const _0xb39705=_0x17804c;logger['error'](_0xb39705(0x145)+util[_0xb39705(0x122)](_0x276e06)),PerformanceTester[_0xb39705(0x1b7)](PerformanceEvents[_0xb39705(0x156)],![],util['format'](_0x276e06)),_0x54b39e[_0xb39705(0x15a)](_0x1b50ad,_0x276e06);});});}catch(_0x28275f){PerformanceTester[_0x8faadd(0x1b7)](PerformanceEvents[_0x8faadd(0x156)],![],util['format'](_0x28275f)),logger['error'](util[_0x8faadd(0x122)](_0x54b39e['nizmh'],_0x28275f));throw _0x28275f;}};static['downloadFileStream'](_0x2a6df3,_0x18dc5a,_0x2ec487,_0x2dd951,_0x279ba3,_0x2aed8f){const _0x48871e=a89_0x49e1ef,_0x48a218={'mKVUZ':function(_0xb8d299,_0x46fac2){return _0xb8d299(_0x46fac2);},'UfGhD':function(_0x341861,_0x35b9a5){return _0x341861(_0x35b9a5);},'UkeyP':function(_0x1c8a3b,_0x52fe0e){return _0x1c8a3b!==_0x52fe0e;},'IXysX':_0x48871e(0x13e),'nAYBP':function(_0x511e44,_0x43f066){return _0x511e44(_0x43f066);},'KDTec':function(_0x35e2a2,_0x4385d7){return _0x35e2a2(_0x4385d7);},'OinDs':'0755','xuvqD':_0x48871e(0x105),'GDFpJ':_0x48871e(0x13c),'vSjZB':_0x48871e(0x1b7),'CgNIH':_0x48871e(0x159),'bgCvh':function(_0x2c53a0,_0x7b26c3){return _0x2c53a0!==_0x7b26c3;},'icTZK':function(_0x16b4d0,_0x5e5bc3){return _0x16b4d0(_0x5e5bc3);}};_0x2a6df3['on'](_0x48a218['CgNIH'],function(){const _0x55a908=_0x48871e,_0x2098db={'OilEC':_0x48a218[_0x55a908(0x17e)],'NWBVe':function(_0xf2e706,_0x9662d5){const _0x4c6ca2=_0x55a908;return _0x48a218[_0x4c6ca2(0x1ac)](_0xf2e706,_0x9662d5);},'gyZdu':_0x48a218[_0x55a908(0x17c)],'gLxVE':function(_0x2fe0dc,_0x28b89f){const _0x287b12=_0x55a908;return _0x48a218[_0x287b12(0x18d)](_0x2fe0dc,_0x28b89f);},'sUocQ':function(_0x3a33a4,_0x4238ad){return _0x48a218['icTZK'](_0x3a33a4,_0x4238ad);},'qzrvt':_0x48a218[_0x55a908(0x10d)]},_0x127205={};_0x127205[_0x55a908(0xf9)]=!![],yauzl[_0x55a908(0x168)](_0x2ec487,_0x127205,function(_0x432f09,_0x5048ba){const _0x5c4d3e=_0x55a908,_0x350cad={'nocOj':function(_0x1ba26b,_0x2a9538){const _0x5ae7c1=a89_0x3f84;return _0x48a218[_0x5ae7c1(0x12f)](_0x1ba26b,_0x2a9538);},'acDFN':function(_0x13da18,_0x533943){const _0x4b1f15=a89_0x3f84;return _0x48a218[_0x4b1f15(0x12f)](_0x13da18,_0x533943);},'STsva':function(_0x20fbf0,_0x15a9a8){const _0x5ab01d=a89_0x3f84;return _0x48a218[_0x5ab01d(0x1ac)](_0x20fbf0,_0x15a9a8);},'eVkwu':function(_0x5d273b,_0x34b790){const _0x335fcf=a89_0x3f84;return _0x48a218[_0x335fcf(0x19f)](_0x5d273b,_0x34b790);},'AkfJg':_0x48a218[_0x5c4d3e(0x1b6)],'PEXwQ':function(_0x5d5595,_0x774494){const _0x355a0a=_0x5c4d3e;return _0x48a218[_0x355a0a(0x173)](_0x5d5595,_0x774494);},'ngwaK':function(_0x5a1807,_0x3f74d1){return _0x48a218['mKVUZ'](_0x5a1807,_0x3f74d1);},'jLDbq':function(_0xe5906d,_0x5965d7){const _0x1942f9=_0x5c4d3e;return _0x48a218[_0x1942f9(0x130)](_0xe5906d,_0x5965d7);},'ZajOT':_0x48a218[_0x5c4d3e(0x152)]};if(_0x432f09){_0x48a218['UfGhD'](_0x2aed8f,_0x432f09);return;}_0x5048ba[_0x5c4d3e(0x149)](),_0x5048ba['on'](_0x48a218[_0x5c4d3e(0x1c6)],_0x2afba9=>{const _0x4d0a47=_0x5c4d3e,_0x4321b0={'LPpyE':_0x2098db[_0x4d0a47(0x11f)],'GXafb':function(_0x45ae7e,_0x48f218){const _0x113b4c=_0x4d0a47;return _0x2098db[_0x113b4c(0x101)](_0x45ae7e,_0x48f218);},'rokkZ':_0x2098db[_0x4d0a47(0x1a1)]};if(/\/$/[_0x4d0a47(0x148)](_0x2afba9['fileName'])){_0x5048ba[_0x4d0a47(0x149)]();return;}!_0x18dc5a&&(_0x18dc5a=_0x2afba9[_0x4d0a47(0x197)]);if(_0x2098db[_0x4d0a47(0x13d)](_0x2afba9['fileName'],_0x18dc5a))_0x5048ba[_0x4d0a47(0x149)]();else{const _0x28e018=_0x2afba9[_0x4d0a47(0x197)],_0x4b5352=path[_0x4d0a47(0x10a)](_0x2dd951,_0x28e018+_0x4d0a47(0xf2)+process[_0x4d0a47(0xfe)]);let _0x419549;try{_0x419549=fs[_0x4d0a47(0x196)](_0x4b5352);}catch(_0x417709){if(BINARY_BUSY_ERROR_CODES[_0x4d0a47(0x120)](_0x417709[_0x4d0a47(0x163)])){const _0xba84b0=path[_0x4d0a47(0x10a)](_0x2dd951,_0x28e018);if(fs[_0x4d0a47(0x1a3)](_0xba84b0)){logger[_0x4d0a47(0x124)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x28e018),fs[_0x4d0a47(0x160)](_0x2ec487,_0x524bc0=>{const _0x2f6227=_0x4d0a47;_0x524bc0&&logger[_0x2f6227(0x124)](_0x2f6227(0x1b5)+_0x2ec487);}),_0x2098db['sUocQ'](_0x279ba3,_0xba84b0);return;}logger[_0x4d0a47(0x124)](_0x4d0a47(0x150)+_0x28e018);}_0x2098db[_0x4d0a47(0x101)](_0x2aed8f,_0x417709);return;}_0x419549['on'](_0x2098db[_0x4d0a47(0x1c2)],_0x1c71b2=>{const _0x3232de=_0x4d0a47;if(BINARY_BUSY_ERROR_CODES[_0x3232de(0x120)](_0x1c71b2[_0x3232de(0x163)])){const _0x4cb7b0=path[_0x3232de(0x10a)](_0x2dd951,_0x28e018);_0x419549[_0x3232de(0x159)](),fs[_0x3232de(0x1a3)](_0x4cb7b0)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x1c71b2[_0x3232de(0x147)]),_0x5048ba['close'](),fs[_0x3232de(0x160)](_0x2ec487,_0x530751=>{const _0x5516ad=_0x3232de;_0x530751&&logger[_0x5516ad(0x124)](_0x5516ad(0x1b5)+_0x2ec487);}),_0x350cad[_0x3232de(0x125)](_0x279ba3,_0x4cb7b0)):(logger[_0x3232de(0x124)](_0x3232de(0x19d)+_0x1c71b2[_0x3232de(0x147)]),fs[_0x3232de(0x160)](_0x4b5352,()=>{}),_0x350cad[_0x3232de(0xf6)](_0x2aed8f,_0x1c71b2));}else fs['unlink'](_0x4b5352,()=>{}),_0x350cad[_0x3232de(0x125)](_0x2aed8f,_0x1c71b2);}),_0x5048ba[_0x4d0a47(0x157)](_0x2afba9,function(_0x5ecc4e,_0x3d60f0){const _0x41d164=_0x4d0a47;if(_0x5ecc4e){fs[_0x41d164(0x160)](_0x4b5352,()=>{}),_0x4321b0[_0x41d164(0x14d)](_0x2aed8f,_0x5ecc4e);return;}_0x3d60f0['on'](_0x4321b0[_0x41d164(0x1a9)],function(){_0x419549['end'](),_0x419549['on'](_0x4321b0['LPpyE'],function(){_0x5048ba['readEntry']();});}),_0x3d60f0['pipe'](_0x419549);});}}),_0x5048ba['on'](_0x48a218['GDFpJ'],_0x4df31e=>{const _0x48235a=_0x5c4d3e;_0x350cad[_0x48235a(0x1a8)](_0x2aed8f,_0x4df31e);}),_0x5048ba['once'](_0x48a218[_0x5c4d3e(0x17c)],()=>{const _0x3e3ac3=_0x5c4d3e,_0x442b9c={'btrsm':function(_0x36c217,_0x153268){const _0x319794=a89_0x3f84;return _0x350cad[_0x319794(0x15f)](_0x36c217,_0x153268);},'SOCwX':_0x350cad[_0x3e3ac3(0x1c4)],'HYNIF':function(_0x51c848,_0x17f8d9){const _0x3aabee=_0x3e3ac3;return _0x350cad[_0x3aabee(0x1b1)](_0x51c848,_0x17f8d9);},'CVBTY':function(_0x4f670e,_0x19664a){const _0xa68c8f=_0x3e3ac3;return _0x350cad[_0xa68c8f(0x1bb)](_0x4f670e,_0x19664a);},'jWJHg':function(_0x214481,_0x4a1f21){const _0x94f7e4=_0x3e3ac3;return _0x350cad[_0x94f7e4(0x1c5)](_0x214481,_0x4a1f21);},'ugvGZ':function(_0x52bd52,_0x515a32){const _0x578eba=_0x3e3ac3;return _0x350cad[_0x578eba(0x1bb)](_0x52bd52,_0x515a32);}};fs[_0x3e3ac3(0x160)](_0x2ec487,_0x372f0e=>{const _0x5aacfd=_0x3e3ac3;_0x372f0e&&logger[_0x5aacfd(0x124)](_0x5aacfd(0x1b5)+_0x2ec487);});const _0x3195b5=path[_0x3e3ac3(0x10a)](_0x2dd951,_0x18dc5a+_0x3e3ac3(0xf2)+process[_0x3e3ac3(0xfe)]),_0x2b21da=path[_0x3e3ac3(0x10a)](_0x2dd951,_0x18dc5a);fs[_0x3e3ac3(0x1b9)](_0x3195b5,_0x350cad[_0x3e3ac3(0xeb)],function(_0x191f9c){const _0x5dc3de=_0x3e3ac3;if(_0x191f9c){_0x5048ba['close'](),fs[_0x5dc3de(0x160)](_0x3195b5,()=>{}),_0x442b9c[_0x5dc3de(0x11d)](_0x2aed8f,_0x191f9c);return;}fs[_0x5dc3de(0x16a)](_0x3195b5,_0x2b21da,function(_0x1d7fff){const _0x3fda4a=_0x5dc3de;if(_0x1d7fff){if(_0x442b9c['btrsm'](_0x1d7fff['code'],_0x442b9c[_0x3fda4a(0x185)])){_0x5048ba[_0x3fda4a(0x159)](),fs[_0x3fda4a(0x160)](_0x3195b5,()=>{}),_0x442b9c[_0x3fda4a(0x115)](_0x2aed8f,_0x1d7fff);return;}logger[_0x3fda4a(0x124)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x1d7fff[_0x3fda4a(0x147)]);try{fs[_0x3fda4a(0x11a)](_0x3195b5,_0x2b21da);}catch(_0x257144){_0x5048ba['close'](),fs[_0x3fda4a(0x160)](_0x3195b5,()=>{}),_0x442b9c['CVBTY'](_0x2aed8f,_0x257144);return;}fs['unlink'](_0x3195b5,_0x1d5ff8=>{const _0x5a9eb0=_0x3fda4a;_0x1d5ff8&&logger[_0x5a9eb0(0x124)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x1d5ff8[_0x5a9eb0(0x147)]);});}_0x5048ba['close'](),_0x442b9c[_0x3fda4a(0x10f)](_0x279ba3,_0x2b21da);});});});});});}static[a89_0x49e1ef(0x116)](){const _0x18ccdc=a89_0x49e1ef;if(process['env'][_0x18ccdc(0xf8)])return JSON[_0x18ccdc(0x114)](process[_0x18ccdc(0x17b)][_0x18ccdc(0xf8)]);return this['testFrameworkDetail'];}static[a89_0x49e1ef(0x181)](){const _0x40ab25=a89_0x49e1ef;if(process['env'][_0x40ab25(0xff)])return JSON[_0x40ab25(0x114)](process['env'][_0x40ab25(0xff)]);return this[_0x40ab25(0x16d)];}static[a89_0x49e1ef(0x1ad)](_0x3fd4b1,_0x54396a){const _0x3fd549=a89_0x49e1ef,_0xed79c3={'hFrEQ':'2|0|4|3|1','TzLJe':function(_0xf8a03,_0x3e8d26){return _0xf8a03(_0x3e8d26);},'QvkSj':function(_0x538897,_0x5e06e5){return _0x538897||_0x5e06e5;},'MQFnz':function(_0x138e31,_0x4e2ba3){return _0x138e31(_0x4e2ba3);}},_0x271eba=_0xed79c3[_0x3fd549(0x189)][_0x3fd549(0x119)]('|');let _0x402ae1=0x0;while(!![]){switch(_0x271eba[_0x402ae1++]){case'0':this[_0x3fd549(0x19b)]={'name':_0x3fd4b1,'version':{[_0x3fd4b1]:_0xed79c3[_0x3fd549(0x1cb)](getFrameworkVersion,_0x3fd4b1)}};continue;case'1':process[_0x3fd549(0x17b)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x3fd549(0xe4)](this[_0x3fd549(0x19b)]);continue;case'2':_0xed79c3['QvkSj'](!_0x3fd4b1,!_0x54396a)&&logger[_0x3fd549(0x169)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x3fd4b1+_0x3fd549(0x10c)+_0x54396a);continue;case'3':process[_0x3fd549(0x17b)][_0x3fd549(0xff)]=JSON[_0x3fd549(0xe4)](this['automationFrameworkDetail']);continue;case'4':this['automationFrameworkDetail']={'name':_0x54396a,'version':_0xed79c3[_0x3fd549(0x16e)](getFrameworkVersion,_0x54396a)};continue;}break;}}static[a89_0x49e1ef(0x19a)](_0x58779d,_0x4e26d5){return _0x58779d+':'+_0x4e26d5;}static[a89_0x49e1ef(0x195)](){const _0x431a32=a89_0x49e1ef;return process[_0x431a32(0xfe)]+':'+threadId;}static[a89_0x49e1ef(0x12d)](_0x55ae68){const _0x3352d9=a89_0x49e1ef;if(_0x55ae68['testContextOptions']&&_0x55ae68[_0x3352d9(0x1ca)][_0x3352d9(0x123)])return!![];return![];}static['shouldSkipSessionStatus'](_0x17ad3f){const _0x22b5d5=a89_0x49e1ef;if(_0x17ad3f['testContextOptions']&&_0x17ad3f[_0x22b5d5(0x1ca)][_0x22b5d5(0x1bd)])return!![];return![];}static[a89_0x49e1ef(0x14a)](_0x477868){const _0x4a0350=a89_0x49e1ef,_0x5cb493=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5cb493[_0x4a0350(0x148)](_0x477868);}static[a89_0x49e1ef(0x13f)](_0x1f2250,_0x24586){const _0x1c487c=a89_0x49e1ef,_0x4b0986={};_0x4b0986[_0x1c487c(0x108)]=function(_0x1ca1ec,_0x18c858){return _0x1ca1ec!==_0x18c858;},_0x4b0986['dHhAc']=function(_0x16cdaa,_0x1ffaaa){return _0x16cdaa===_0x1ffaaa;},_0x4b0986['kpWIZ']=_0x1c487c(0x10b);const _0xd0cf8d=_0x4b0986;for(const [_0x234d32,_0x36b248]of Object[_0x1c487c(0x1bc)](_0x24586)){if(_0xd0cf8d['NiEZE'](_0x36b248,null)&&_0xd0cf8d[_0x1c487c(0xf3)](typeof _0x36b248,_0xd0cf8d[_0x1c487c(0x133)])&&!Array[_0x1c487c(0x13b)](_0x36b248))_0x1f2250[_0x234d32]=this['mergeObject'](_0x1f2250[_0x234d32]||{},_0x36b248);else Array[_0x1c487c(0x13b)](_0x36b248)?_0x1f2250[_0x234d32]=(_0x1f2250[_0x234d32]||[])[_0x1c487c(0xe1)](_0x36b248):_0x1f2250[_0x234d32]=_0x36b248;}return _0x1f2250;}}module[a89_0x49e1ef(0x144)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a90_0x6cd2a6=a90_0x5300;(function(_0x1caedc,_0x41db9c){const _0x447f62=a90_0x5300,_0x5d2194=_0x1caedc();while(!![]){try{const _0x15c419=-parseInt(_0x447f62(0x107))/0x1*(parseInt(_0x447f62(0xec))/0x2)+parseInt(_0x447f62(0x104))/0x3*(parseInt(_0x447f62(0x11a))/0x4)+parseInt(_0x447f62(0x121))/0x5+-parseInt(_0x447f62(0x13a))/0x6+parseInt(_0x447f62(0xe7))/0x7+parseInt(_0x447f62(0x131))/0x8*(parseInt(_0x447f62(0x116))/0x9)+-parseInt(_0x447f62(0x12c))/0xa*(parseInt(_0x447f62(0x12b))/0xb);if(_0x15c419===_0x41db9c)break;else _0x5d2194['push'](_0x5d2194['shift']());}catch(_0x5d9305){_0x5d2194['push'](_0x5d2194['shift']());}}}(a90_0x2241,0xed49f));const fs=require('fs'),os=require('os'),path=require(a90_0x6cd2a6(0x154)),helper=require('../../helpers/helper'),AutomationFramework=require(a90_0x6cd2a6(0xf9)),TestFrameworkConstants=require(a90_0x6cd2a6(0x10d)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a90_0x6cd2a6(0x146)),TestHubModule=require(a90_0x6cd2a6(0xfa)),{createClassLogger}=require(a90_0x6cd2a6(0xcd)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a90_0x6cd2a6(0xfc);function getBuildTagsRunId(){const _0xbe5563=a90_0x6cd2a6,_0x3eda31={};_0x3eda31[_0xbe5563(0x129)]=function(_0x225336,_0x393e44){return _0x225336===_0x393e44;},_0x3eda31[_0xbe5563(0xde)]=_0xbe5563(0x12e);const _0x48fa18=_0x3eda31,_0x31d1fb=process[_0xbe5563(0x115)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x31d1fb||_0x48fa18['HaXgM'](_0x31d1fb,_0x48fa18['WyJCO']))return null;return _0x31d1fb;}function getBuildTagsFilePath(_0x46dc0e){const _0x1c873d=a90_0x6cd2a6;return path[_0x1c873d(0x10b)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x46dc0e+'_'+process[_0x1c873d(0xed)]+_0x1c873d(0x128));}class CustomTagManager{static [a90_0x6cd2a6(0x13c)]={};static ['testLevelTags']={};static[a90_0x6cd2a6(0xc7)](_0x2604f0,_0x179606){const _0x45dbc2=a90_0x6cd2a6;return Array[_0x45dbc2(0xcb)](new Set([..._0x2604f0||[],..._0x179606||[]]));}static[a90_0x6cd2a6(0xf0)](_0x324121,_0x5a9bc5,_0x120bae){const _0x4a2cca=a90_0x6cd2a6,_0x8cc068={};_0x8cc068[_0x4a2cca(0xe2)]=_0x4a2cca(0xdf);const _0xca55e0=_0x8cc068;if(!_0x324121[_0x5a9bc5]){const _0x49a571={};_0x49a571['field_type']=_0xca55e0[_0x4a2cca(0xe2)],_0x49a571[_0x4a2cca(0x124)]=[..._0x120bae||[]],_0x324121[_0x5a9bc5]=_0x49a571;}else!_0x324121[_0x5a9bc5][_0x4a2cca(0x153)]&&(_0x324121[_0x5a9bc5][_0x4a2cca(0x153)]=_0xca55e0[_0x4a2cca(0xe2)]),!Array[_0x4a2cca(0x12a)](_0x324121[_0x5a9bc5][_0x4a2cca(0x124)])&&(_0x324121[_0x5a9bc5][_0x4a2cca(0x124)]=[]),_0x324121[_0x5a9bc5]['values']=CustomTagManager[_0x4a2cca(0xc7)](_0x324121[_0x5a9bc5][_0x4a2cca(0x124)],_0x120bae);return _0x324121;}static async[a90_0x6cd2a6(0x144)](_0x3a8d20,_0x3a8879,_0xb6e32e=![]){const _0xc3973d=a90_0x6cd2a6,_0x5be246={'apVjz':function(_0x2354a7,_0x348dce){return _0x2354a7!==_0x348dce;},'SlJTh':'string','HCkeW':_0xc3973d(0x135),'LpPLE':_0xc3973d(0x13f),'omzDG':function(_0x433da7,_0x41ebb5){return _0x433da7===_0x41ebb5;},'FcVHL':_0xc3973d(0xca),'rJSgc':function(_0x5d7b5f,_0x568954){return _0x5d7b5f===_0x568954;},'PDIJw':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','ZyrRl':function(_0x42a1de,_0x779748){return _0x42a1de(_0x779748);},'xkvWF':'./browserstackCLI','aZdqu':function(_0x59d48f){return _0x59d48f();},'UvzPa':_0xc3973d(0xdf),'btMVq':function(_0x1d2329,_0x398790){return _0x1d2329>_0x398790;},'iGahI':function(_0x17a6f0,_0x55b1c2){return _0x17a6f0(_0x55b1c2);},'pMzqp':_0xc3973d(0xcc),'drAcL':':jest-','XJAYT':_0xc3973d(0xe3),'kGHXk':function(_0x39189f,_0x46bb20){return _0x39189f===_0x46bb20;},'pWKmj':_0xc3973d(0xeb),'ZZrXE':_0xc3973d(0xe9),'jBDIt':_0xc3973d(0x142),'YllZN':function(_0x23222c,_0x48e0aa){return _0x23222c(_0x48e0aa);},'OKapD':_0xc3973d(0x11d),'TFbcU':_0xc3973d(0x152),'BGqoc':_0xc3973d(0x13e),'sFGvp':function(_0x53c856,_0xac80af){return _0x53c856===_0xac80af;},'qabWX':_0xc3973d(0x141)};if(_0x5be246[_0xc3973d(0x12f)](typeof _0x3a8d20,_0x5be246[_0xc3973d(0x14d)])){logger[_0xc3973d(0xd5)](_0x5be246[_0xc3973d(0x138)]);return;}if(_0x5be246[_0xc3973d(0x12f)](typeof _0x3a8879,_0x5be246['SlJTh'])){logger['debug'](_0x5be246[_0xc3973d(0x145)]);return;}if(_0x5be246[_0xc3973d(0xd6)](_0x3a8d20[_0xc3973d(0x100)](),'')){logger[_0xc3973d(0xd5)](_0x5be246[_0xc3973d(0x111)]);return;}if(_0x5be246[_0xc3973d(0x14e)](_0x3a8879[_0xc3973d(0x100)](),'')){logger[_0xc3973d(0xd5)](_0x5be246[_0xc3973d(0x147)]);return;}const _0x417c91=helper[_0xc3973d(0xee)](_0x3a8879);if(_0xb6e32e){const _0x455555=_0x5be246[_0xc3973d(0xfb)](require,_0x5be246[_0xc3973d(0x14a)]),_0x25027f=_0x455555[_0xc3973d(0x11e)](),_0x56fd4f=_0x25027f&&_0x25027f['modules'][TestHubModule[_0xc3973d(0x123)]];if(_0x56fd4f){const _0x43e3d4=_0x56fd4f?.[_0xc3973d(0x151)]?.[_0xc3973d(0x14c)]()?.[_0xc3973d(0xd8)];TestInfo[_0xc3973d(0xf1)](_0x43e3d4);const _0xcde02e=TestInfo[_0xc3973d(0x126)](_0x43e3d4),_0x183ec7=_0xcde02e[TestFrameworkConstants[_0xc3973d(0x119)]]||{};CustomTagManager[_0xc3973d(0xf0)](_0x183ec7,_0x3a8d20,_0x417c91),_0xcde02e[TestFrameworkConstants[_0xc3973d(0x119)]]=_0x183ec7,TestInfo['setTestDetails'](_0x43e3d4,_0xcde02e);!this[_0xc3973d(0x13c)][_0x43e3d4]&&(this[_0xc3973d(0x13c)][_0x43e3d4]={});this['buildLevelTags'][_0x43e3d4][_0x3a8d20]=CustomTagManager[_0xc3973d(0xc7)](this[_0xc3973d(0x13c)][_0x43e3d4][_0x3a8d20],_0x417c91);try{const _0xd4b458=_0x5be246[_0xc3973d(0xe6)](getBuildTagsRunId);if(_0xd4b458){const _0x4e4d59={};for(const [_0x3460fe,_0x4756f7]of Object['entries'](this[_0xc3973d(0x13c)][_0x43e3d4]||{})){_0x4e4d59[_0x3460fe]={'field_type':_0x5be246['UvzPa'],'values':Array[_0xc3973d(0x12a)](_0x4756f7)?[..._0x4756f7]:[]};}_0x5be246[_0xc3973d(0x102)](Object[_0xc3973d(0x12d)](_0x4e4d59)[_0xc3973d(0xcf)],0x0)&&await fs[_0xc3973d(0x117)][_0xc3973d(0xc9)](_0x5be246[_0xc3973d(0x11f)](getBuildTagsFilePath,_0xd4b458),JSON[_0xc3973d(0xd2)](_0x4e4d59));}else logger[_0xc3973d(0xd5)](_0x5be246[_0xc3973d(0x10e)]);}catch(_0x1beed9){logger[_0xc3973d(0xd5)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x1beed9&&_0x1beed9[_0xc3973d(0xe5)]?_0x1beed9[_0xc3973d(0xe5)]:_0x1beed9));}}}else{let _0x3b71a0;const _0x264f33=global[_0xc3973d(0xff)];let _0x3c8474=![];if(_0x264f33&&_0x264f33[_0xc3973d(0x13d)](_0x5be246[_0xc3973d(0x114)]))_0x3c8474=!![],_0x3b71a0=_0x264f33;else try{const _0x519605=_0x5be246[_0xc3973d(0x11f)](require,_0x5be246[_0xc3973d(0x106)]),_0x9ea74e=_0x5be246['ZyrRl'](require,_0x5be246[_0xc3973d(0x14a)]);if(_0x9ea74e['getInstance']()['isRunning']()){const _0x3f5668=_0x519605[_0xc3973d(0x120)]();if(_0x5be246[_0xc3973d(0x10c)](_0x3f5668?.[_0xc3973d(0xc5)]?.['toLowerCase'](),_0x5be246[_0xc3973d(0xef)])){const _0x73db95=AutomationFramework['getTrackedInstance']();_0x3b71a0=AutomationFramework[_0xc3973d(0xf3)](_0x73db95,PlaywrightDriverModule[_0xc3973d(0x11c)],''),_0x3b71a0&&_0x3b71a0[_0xc3973d(0x13d)](_0x5be246['drAcL'])&&(_0x3c8474=!![]);}}}catch(_0x487c33){logger[_0xc3973d(0xd5)](_0xc3973d(0x149)+_0x487c33);}if(_0x3c8474){if(!_0x3b71a0)throw new Error(_0x5be246['ZZrXE']);const _0x40ddaf=_0x5be246['ZyrRl'](require,_0x5be246[_0xc3973d(0x14a)]),_0x18fa9d=_0x40ddaf['getInstance']()[_0xc3973d(0xda)]();if(!_0x18fa9d)throw new Error(_0x5be246['jBDIt']);const _0x4a02fb=_0x5be246[_0xc3973d(0xd4)](require,_0x5be246['OKapD']),_0x616d28=_0x5be246[_0xc3973d(0xfb)](require,_0x5be246[_0xc3973d(0x108)]),_0x2d7d99=_0x18fa9d['resolveInstance'](_0x4a02fb[_0xc3973d(0xe4)],_0x616d28['POST']);if(!_0x2d7d99)throw new Error(_0x5be246[_0xc3973d(0xd3)]);const _0x584ffc=_0x2d7d99[_0xc3973d(0xd9)]()[_0xc3973d(0xe8)](_0x3b71a0)||{},_0x15666b=_0x584ffc[TestFrameworkConstants[_0xc3973d(0x119)]]||{};logger[_0xc3973d(0xd5)](_0xc3973d(0xf2)+_0x3b71a0+_0xc3973d(0xdb)+_0x3a8d20+',\x20values='+JSON['stringify'](_0x417c91)+',\x20existingTags='+JSON['stringify'](_0x15666b)),CustomTagManager[_0xc3973d(0xf0)](_0x15666b,_0x3a8d20,_0x417c91),logger[_0xc3973d(0xd5)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x3a8d20+_0xc3973d(0xdd)+JSON['stringify'](_0x15666b[_0x3a8d20]['values']));const _0x233130={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x15666b},_0x8233c5={};_0x8233c5[_0x3b71a0]=_0x233130,_0x2d7d99[_0xc3973d(0x133)](_0x8233c5),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x3b71a0+_0xc3973d(0x10f)+JSON['stringify'](_0x15666b)),!this['testLevelTags'][_0x3b71a0]&&(this[_0xc3973d(0xce)][_0x3b71a0]={}),this[_0xc3973d(0xce)][_0x3b71a0][_0x3a8d20]=CustomTagManager[_0xc3973d(0xc7)](this['testLevelTags'][_0x3b71a0][_0x3a8d20],_0x417c91);}else{const _0x5982dc=global['__workerDetails']?.[_0xc3973d(0x10a)]?.[_0xc3973d(0x130)];if(!_0x5982dc){const _0x337311=AutomationFramework[_0xc3973d(0xdc)]();_0x3b71a0=AutomationFramework['getState'](_0x337311,PlaywrightDriverModule[_0xc3973d(0x11c)],'');if(!_0x3b71a0)try{const _0x3ff176=_0x5be246[_0xc3973d(0xfb)](require,_0x5be246[_0xc3973d(0x14a)]),_0x1c71ec=_0x3ff176[_0xc3973d(0x11e)](),_0x1b87a0=_0x1c71ec&&_0x1c71ec[_0xc3973d(0xda)]();_0x3b71a0=_0x1b87a0&&_0x5be246['sFGvp'](typeof _0x1b87a0['getCurrentTestUUID'],_0x5be246[_0xc3973d(0x113)])&&_0x1b87a0[_0xc3973d(0x112)]()||_0x3b71a0;}catch(_0x35a33d){logger[_0xc3973d(0xd5)](_0xc3973d(0x14b)+(_0x35a33d&&_0x35a33d['message']));}}else _0x3b71a0=TestInfo[_0xc3973d(0x11b)](_0x5982dc,_0x5982dc[_0xc3973d(0xd1)]);const _0x4306f4=TestInfo[_0xc3973d(0x126)](_0x3b71a0),_0x48851d=_0x4306f4[TestFrameworkConstants[_0xc3973d(0x119)]]||{};CustomTagManager[_0xc3973d(0xf0)](_0x48851d,_0x3a8d20,_0x417c91),_0x4306f4[TestFrameworkConstants[_0xc3973d(0x119)]]=_0x48851d,TestInfo['setTestDetails'](_0x3b71a0,_0x4306f4),!this[_0xc3973d(0xce)][_0x3b71a0]&&(this[_0xc3973d(0xce)][_0x3b71a0]={}),this[_0xc3973d(0xce)][_0x3b71a0][_0x3a8d20]=CustomTagManager[_0xc3973d(0xc7)](this[_0xc3973d(0xce)][_0x3b71a0][_0x3a8d20],_0x417c91);}}}static[a90_0x6cd2a6(0xf6)](){const _0x29621b={...this['buildLevelTags']};return _0x29621b;}static[a90_0x6cd2a6(0x14f)](){const _0x516698=a90_0x6cd2a6,_0x943da5={...this[_0x516698(0xce)]};return _0x943da5;}static[a90_0x6cd2a6(0x118)](){const _0x3a0969=a90_0x6cd2a6;this['buildLevelTags']={},this[_0x3a0969(0xce)]={};}static['mergeBuildLevelTags'](_0x29c671,_0x4754a1){const _0x482f68=a90_0x6cd2a6,_0x78e396={};_0x78e396[_0x482f68(0x122)]=function(_0x3ea31d,_0x47362a){return _0x3ea31d||_0x47362a;};const _0x30894a=_0x78e396;if(!_0x29c671)return;!this[_0x482f68(0x13c)][_0x29c671]&&(this[_0x482f68(0x13c)][_0x29c671]={});for(const [_0xad93bf,_0x3e9e1f]of Object[_0x482f68(0xd0)](_0x30894a[_0x482f68(0x122)](_0x4754a1,{}))){if(!_0x3e9e1f||!Array[_0x482f68(0x12a)](_0x3e9e1f[_0x482f68(0x124)]))continue;this[_0x482f68(0x13c)][_0x29c671][_0xad93bf]=CustomTagManager[_0x482f68(0xc7)](this[_0x482f68(0x13c)][_0x29c671][_0xad93bf],_0x3e9e1f[_0x482f68(0x124)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x4a3ff2,_0x42cc18){const _0x364565=a90_0x6cd2a6,_0x345486={};_0x345486[_0x364565(0xc6)]=_0x364565(0x148),_0x345486[_0x364565(0x110)]=function(_0x5efa6f,_0x32749b){return _0x5efa6f*_0x32749b;},_0x345486[_0x364565(0xc8)]=function(_0x93d720,_0x52758f){return _0x93d720*_0x52758f;},_0x345486['pXtNu']=function(_0x38ef35,_0x47e688){return _0x38ef35*_0x47e688;},_0x345486[_0x364565(0x143)]=function(_0xc5272f,_0x8e8f2e){return _0xc5272f>_0x8e8f2e;},_0x345486[_0x364565(0xf4)]=function(_0x120154,_0x2861a5){return _0x120154-_0x2861a5;},_0x345486[_0x364565(0x125)]=_0x364565(0xe0);const _0x306a09=_0x345486;if(!_0x4a3ff2)return logger[_0x364565(0xd5)](_0x306a09[_0x364565(0xc6)]),0x0;let _0x4a3204;try{_0x4a3204=os[_0x364565(0x136)]();}catch(_0x39696e){return logger[_0x364565(0xd5)](_0x364565(0x132)+_0x39696e),0x0;}let _0xa68b3;try{_0xa68b3=fs[_0x364565(0x150)](_0x4a3204);}catch(_0x485902){return logger[_0x364565(0xd5)](_0x364565(0xf8)+_0x485902),0x0;}const _0x30b2c7=''+BUILD_TAG_FILE_PREFIX+_0x4a3ff2+'_',_0x5d7ef2=_0xa68b3[_0x364565(0x105)](_0x14eacb=>_0x14eacb[_0x364565(0x134)](_0x30b2c7)&&_0x14eacb[_0x364565(0x101)](_0x364565(0x128))),_0xe98f3c=_0x306a09[_0x364565(0x110)](_0x306a09[_0x364565(0xc8)](_0x306a09['pXtNu'](0x2,0x3c),0x3c),0x3e8);let _0x319542=0x0;for(const _0x5847ae of _0x5d7ef2){const _0x5b1190=path[_0x364565(0x10b)](_0x4a3204,_0x5847ae);try{const _0x467407=fs[_0x364565(0x109)](_0x5b1190);if(_0x306a09['NJPKJ'](_0x306a09['xQarW'](Date[_0x364565(0xfd)](),_0x467407[_0x364565(0x139)]),_0xe98f3c)){logger[_0x364565(0xd5)](_0x364565(0xd7)+_0xe98f3c+_0x364565(0x137)+_0x5847ae);try{fs[_0x364565(0x127)](_0x5b1190);}catch(_0x3189ad){logger['debug'](_0x364565(0x140)+_0x5847ae+':\x20'+(_0x3189ad&&_0x3189ad['message']?_0x3189ad[_0x364565(0xe5)]:_0x3189ad));}continue;}const _0x236126=fs['readFileSync'](_0x5b1190,_0x306a09[_0x364565(0x125)]),_0x19e0f9=JSON[_0x364565(0xfe)](_0x236126);this['mergeBuildLevelTags'](_0x42cc18,_0x19e0f9),_0x319542+=0x1;}catch(_0x58103a){logger['debug'](_0x364565(0xf5)+_0x5847ae+':\x20'+(_0x58103a&&_0x58103a[_0x364565(0xe5)]?_0x58103a[_0x364565(0xe5)]:_0x58103a));}try{fs[_0x364565(0x127)](_0x5b1190);}catch(_0x33646d){logger['debug'](_0x364565(0x13b)+_0x5847ae+':\x20'+(_0x33646d&&_0x33646d[_0x364565(0xe5)]?_0x33646d['message']:_0x33646d));}}return _0x319542;}}function a90_0x5300(_0x4a8dc0,_0x33c4f2){const _0x22415a=a90_0x2241();return a90_0x5300=function(_0x530043,_0x573814){_0x530043=_0x530043-0xc5;let _0x5dd83b=_0x22415a[_0x530043];return _0x5dd83b;},a90_0x5300(_0x4a8dc0,_0x33c4f2);}const a90_0x73f373={};a90_0x73f373[a90_0x6cd2a6(0xf7)]=getBuildTagsRunId,a90_0x73f373[a90_0x6cd2a6(0xe1)]=getBuildTagsFilePath,a90_0x73f373[a90_0x6cd2a6(0xea)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a90_0x73f373,module[a90_0x6cd2a6(0x103)]=CustomTagManager;function a90_0x2241(){const _0x23f037=['buildLevelTags','includes','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','function','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','NJPKJ','setCustomTags','LpPLE','./TestInfo','PDIJw','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','xkvWF','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','toObject','SlJTh','rJSgc','getTestLevelTags','readdirSync','testhubConfig','./state/hookState','field_type','path','name','SDrPc','mergeValues','TzOnc','writeFile','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','from','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','../../helpers/classLogger','testLevelTags','length','entries','retry','stringify','BGqoc','YllZN','debug','omzDG','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','buildHashedId','getAllData','getTestFramework',',\x20key=','getTrackedInstance','\x20->\x20values=','WyJCO','multi_dropdown','utf8','getBuildTagsFilePath','rAgSD','./cliUtils','TEST','message','aZdqu','9961385NTIxds','get','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','BUILD_TAG_FILE_PREFIX','jest','496084wqefKx','pid','parseCommaSeparatedValues','pWKmj','mergeIntoTags','getTestUUID','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getState','xQarW','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getBuildLevelTags','getBuildTagsRunId','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','./framework/automationFramework','./modules/testhubModule','ZyrRl','bstack_build_tags_','now','parse','__jestCurrentTestIdentifier','trim','endsWith','btMVq','exports','5457108hhAyLH','filter','XJAYT','1mXPADi','TFbcU','statSync','currentTest','join','kGHXk','./framework/constants/testFrameworkConstants','pMzqp',',\x20finalTags=','KcLWI','FcVHL','getCurrentTestUUID','qabWX','drAcL','env','32661PduENA','promises','clearTags','KEY_CUSTOM_TAGS','4BjDDwy','getTestIdentifierFromTestInfo','KEY_TEST_ID','./state/testFrameworkState','getInstance','iGahI','getTestFrameworkDetail','5235950pzYXrD','bmFpa','MODULE_NAME','values','Vsiqf','getTestDetails','unlinkSync','.json','HaXgM','isArray','88kKBzaO','2366590BSGMEW','keys','null','apVjz','testInfo','1072zIjgAA','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','addMultipleEntries','startsWith','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','tmpdir','ms)\x20','HCkeW','mtimeMs','9973908CVQHmB','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'];a90_0x2241=function(){return _0x23f037;};return a90_0x2241();}
1
+ 'use strict';const a90_0x575581=a90_0x3b8a;(function(_0x4e3992,_0x888a66){const _0x3c29cb=a90_0x3b8a,_0x3461fc=_0x4e3992();while(!![]){try{const _0x38ab9d=-parseInt(_0x3c29cb(0xe5))/0x1*(parseInt(_0x3c29cb(0x81))/0x2)+-parseInt(_0x3c29cb(0xe4))/0x3*(parseInt(_0x3c29cb(0x70))/0x4)+parseInt(_0x3c29cb(0xd2))/0x5+parseInt(_0x3c29cb(0x74))/0x6+parseInt(_0x3c29cb(0xe0))/0x7*(-parseInt(_0x3c29cb(0xb2))/0x8)+parseInt(_0x3c29cb(0x80))/0x9+-parseInt(_0x3c29cb(0x9b))/0xa*(-parseInt(_0x3c29cb(0xc4))/0xb);if(_0x38ab9d===_0x888a66)break;else _0x3461fc['push'](_0x3461fc['shift']());}catch(_0x259d42){_0x3461fc['push'](_0x3461fc['shift']());}}}(a90_0x39fb,0xb09cb));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a90_0x575581(0xb8)),AutomationFramework=require(a90_0x575581(0xf5)),TestFrameworkConstants=require(a90_0x575581(0xcc)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a90_0x575581(0x6e)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a90_0x575581(0xab)),BUILD_TAG_FILE_PREFIX=a90_0x575581(0xfd);function a90_0x39fb(){const _0x58ad81=['evMep','_testInternals','lzqsM','KEY_CUSTOM_TAGS','bstack_build_tags_','CwvOe',',\x20values=','name','tyqpZ','ZhLsg','./state/testFrameworkState','function','./modules/testhubModule','HKwHJ','2653292CqbEMZ','message','toObject','rTXPk','8175486zMzlJN','BUILD_TAG_FILE_PREFIX','startsWith','Nadzq','addMultipleEntries','getTestDetails','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','blWFN','aggregateBuildLevelTagsFromTmp','fGlbf','statSync','get','11346327JmMcWo','912cqdplW','trim','getBuildTagsFilePath','ms)\x20','ZrWYn',':jest-','buildHashedId','OgUip','testLevelTags','getTestLevelTags',',\x20existingTags=','promises','getState','xNhfX','mtimeMs','Iywmg','getInstance','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','env','pid','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','join','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','stringify','iSfpj','20moYuxL','field_type','testInfo','mergeValues','ACQhH','pyTZQ','KJmVa','getCurrentTestUUID','buildLevelTags','jKxSg','\x20->\x20values=','isArray','yxIQL','uWrli','mergeIntoTags','multi_dropdown','CustomTagManager','mergeBuildLevelTags','getBuildTagsRunId','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','exports','isRunning','getBuildLevelTags','8xakEsO','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','UrBpr','filter','now','./state/hookState','../../helpers/helper','parseCommaSeparatedValues','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','RKfxh','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mTHbD','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','POST','debug','utf8','keys','3468267vOjBFW','length',',\x20key=','__jestCurrentTestIdentifier','getTestFrameworkDetail','ybyuW','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','resolveInstance','./framework/constants/testFrameworkConstants','getAllData','qCqnf','./cliUtils','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','EnHYt','1461260dSHVXg','from','includes','values','nkCBn','FfsoP','ZXUtq','getTestIdentifierFromTestInfo','getTestUUID','entries','YyyOx','modules','.json','xIrGU','9063796ZanvMY','tmpdir','jest','TEST','3EViCMH','1896Vomhen','null','./browserstackCLI','currentTest','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','JdkQQ','endsWith','LrzdQ','getTestFramework','BROWSERSTACK_TESTHUB_UUID','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','YDUWR','readFileSync','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','./framework/automationFramework',',\x20finalTags=','setTestDetails','parse'];a90_0x39fb=function(){return _0x58ad81;};return a90_0x39fb();}function a90_0x3b8a(_0x3c0eb9,_0x2102e4){const _0x39fb1f=a90_0x39fb();return a90_0x3b8a=function(_0x3b8a80,_0xd9c441){_0x3b8a80=_0x3b8a80-0x6c;let _0x3d2961=_0x39fb1f[_0x3b8a80];return _0x3d2961;},a90_0x3b8a(_0x3c0eb9,_0x2102e4);}function getBuildTagsRunId(){const _0x3c5689=a90_0x575581,_0x4577fd={};_0x4577fd['blWFN']=function(_0x172da3,_0x12f146){return _0x172da3===_0x12f146;},_0x4577fd[_0x3c5689(0xee)]=_0x3c5689(0xe6);const _0x5b0704=_0x4577fd,_0x43532e=process[_0x3c5689(0x93)][_0x3c5689(0xf0)];if(!_0x43532e||_0x5b0704[_0x3c5689(0x7b)](_0x43532e,_0x5b0704[_0x3c5689(0xee)]))return null;return _0x43532e;}function getBuildTagsFilePath(_0x14ae18){const _0x5c44e2=a90_0x575581;return path[_0x5c44e2(0x96)](os[_0x5c44e2(0xe1)](),''+BUILD_TAG_FILE_PREFIX+_0x14ae18+'_'+process[_0x5c44e2(0x94)]+'.json');}class CustomTagManager{static [a90_0x575581(0xa3)]={};static [a90_0x575581(0x89)]={};static[a90_0x575581(0x9e)](_0x24e535,_0x5857ac){const _0x1e868b=a90_0x575581;return Array[_0x1e868b(0xd3)](new Set([..._0x24e535||[],..._0x5857ac||[]]));}static['mergeIntoTags'](_0x5aa8c7,_0x2de06d,_0x20787a){const _0x47998a=a90_0x575581,_0xca819b={};_0xca819b['fGlbf']=_0x47998a(0xaa);const _0xd5be90=_0xca819b;if(!_0x5aa8c7[_0x2de06d]){const _0x4373bc={};_0x4373bc['field_type']=_0xd5be90[_0x47998a(0x7d)],_0x4373bc[_0x47998a(0xd5)]=[..._0x20787a||[]],_0x5aa8c7[_0x2de06d]=_0x4373bc;}else!_0x5aa8c7[_0x2de06d][_0x47998a(0x9c)]&&(_0x5aa8c7[_0x2de06d][_0x47998a(0x9c)]=_0xd5be90[_0x47998a(0x7d)]),!Array[_0x47998a(0xa6)](_0x5aa8c7[_0x2de06d][_0x47998a(0xd5)])&&(_0x5aa8c7[_0x2de06d][_0x47998a(0xd5)]=[]),_0x5aa8c7[_0x2de06d][_0x47998a(0xd5)]=CustomTagManager['mergeValues'](_0x5aa8c7[_0x2de06d]['values'],_0x20787a);return _0x5aa8c7;}static async['setCustomTags'](_0x89d39a,_0x1f8cbe,_0x4d143f=![]){const _0x2f2ce7=a90_0x575581,_0xf72487={'IaAoW':function(_0x3abf39,_0x57f3cf){return _0x3abf39!==_0x57f3cf;},'CwvOe':'string','nkCBn':_0x2f2ce7(0xe9),'qCqnf':function(_0x33e90c,_0x560b16){return _0x33e90c!==_0x560b16;},'vvVBa':_0x2f2ce7(0xbc),'YDUWR':function(_0x8180a,_0x2cc4ec){return _0x8180a===_0x2cc4ec;},'xIrGU':_0x2f2ce7(0xbe),'FfsoP':function(_0x308772,_0x11e03b){return _0x308772===_0x11e03b;},'JdkQQ':_0x2f2ce7(0xf1),'jKxSg':function(_0x5228bf,_0x5034bf){return _0x5228bf(_0x5034bf);},'ybyuW':_0x2f2ce7(0xe7),'pyTZQ':function(_0x2449f5){return _0x2449f5();},'RpoOF':_0x2f2ce7(0xaa),'lzqsM':function(_0x34d1fb,_0x204873){return _0x34d1fb>_0x204873;},'OgUip':_0x2f2ce7(0xd0),'uWrli':_0x2f2ce7(0x86),'rTXPk':function(_0x329951,_0x3a9038){return _0x329951(_0x3a9038);},'EnHYt':_0x2f2ce7(0xcf),'Iywmg':function(_0xe73806,_0x21f371){return _0xe73806(_0x21f371);},'yxIQL':_0x2f2ce7(0xe2),'ACQhH':_0x2f2ce7(0x92),'ZhLsg':function(_0x6de818,_0x49a6fa){return _0x6de818(_0x49a6fa);},'tyqpZ':_0x2f2ce7(0xeb),'ZXUtq':_0x2f2ce7(0x6c),'AntDH':_0x2f2ce7(0xb7),'HKwHJ':_0x2f2ce7(0x95),'KJmVa':function(_0x5297a3,_0x3fdf54){return _0x5297a3===_0x3fdf54;},'Nadzq':_0x2f2ce7(0x6d)};if(_0xf72487['IaAoW'](typeof _0x89d39a,_0xf72487['CwvOe'])){logger['debug'](_0xf72487[_0x2f2ce7(0xd6)]);return;}if(_0xf72487[_0x2f2ce7(0xce)](typeof _0x1f8cbe,_0xf72487[_0x2f2ce7(0xfe)])){logger[_0x2f2ce7(0xc1)](_0xf72487['vvVBa']);return;}if(_0xf72487[_0x2f2ce7(0xf2)](_0x89d39a[_0x2f2ce7(0x82)](),'')){logger[_0x2f2ce7(0xc1)](_0xf72487[_0x2f2ce7(0xdf)]);return;}if(_0xf72487[_0x2f2ce7(0xd7)](_0x1f8cbe[_0x2f2ce7(0x82)](),'')){logger[_0x2f2ce7(0xc1)](_0xf72487[_0x2f2ce7(0xec)]);return;}const _0x4f8e43=helper[_0x2f2ce7(0xb9)](_0x1f8cbe);if(_0x4d143f){const _0x535dd9=_0xf72487['jKxSg'](require,_0xf72487['ybyuW']),_0x10e9fd=_0x535dd9[_0x2f2ce7(0x91)](),_0x5a4c56=_0x10e9fd&&_0x10e9fd[_0x2f2ce7(0xdd)][TestHubModule['MODULE_NAME']];if(_0x5a4c56){const _0x1a5396=_0x5a4c56?.['testhubConfig']?.[_0x2f2ce7(0x72)]()?.[_0x2f2ce7(0x87)];TestInfo[_0x2f2ce7(0xda)](_0x1a5396);const _0x3fc608=TestInfo[_0x2f2ce7(0x79)](_0x1a5396),_0x29b89e=_0x3fc608[TestFrameworkConstants[_0x2f2ce7(0xfc)]]||{};CustomTagManager[_0x2f2ce7(0xa9)](_0x29b89e,_0x89d39a,_0x4f8e43),_0x3fc608[TestFrameworkConstants[_0x2f2ce7(0xfc)]]=_0x29b89e,TestInfo[_0x2f2ce7(0xf7)](_0x1a5396,_0x3fc608);!this[_0x2f2ce7(0xa3)][_0x1a5396]&&(this[_0x2f2ce7(0xa3)][_0x1a5396]={});this[_0x2f2ce7(0xa3)][_0x1a5396][_0x89d39a]=CustomTagManager['mergeValues'](this[_0x2f2ce7(0xa3)][_0x1a5396][_0x89d39a],_0x4f8e43);try{const _0x51274a=_0xf72487[_0x2f2ce7(0xa0)](getBuildTagsRunId);if(_0x51274a){const _0x1225f7={};for(const [_0x2c7a97,_0xb441d2]of Object[_0x2f2ce7(0xdb)](this['buildLevelTags'][_0x1a5396]||{})){_0x1225f7[_0x2c7a97]={'field_type':_0xf72487['RpoOF'],'values':Array['isArray'](_0xb441d2)?[..._0xb441d2]:[]};}_0xf72487[_0x2f2ce7(0xfb)](Object[_0x2f2ce7(0xc3)](_0x1225f7)[_0x2f2ce7(0xc5)],0x0)&&await fs[_0x2f2ce7(0x8c)]['writeFile'](_0xf72487[_0x2f2ce7(0xa4)](getBuildTagsFilePath,_0x51274a),JSON[_0x2f2ce7(0x99)](_0x1225f7));}else logger[_0x2f2ce7(0xc1)](_0xf72487[_0x2f2ce7(0x88)]);}catch(_0x66a3a9){logger[_0x2f2ce7(0xc1)](_0x2f2ce7(0xea)+(_0x66a3a9&&_0x66a3a9[_0x2f2ce7(0x71)]?_0x66a3a9['message']:_0x66a3a9));}}}else{let _0x126a47;const _0x136d0d=global[_0x2f2ce7(0xc7)];let _0x4477b8=![];if(_0x136d0d&&_0x136d0d[_0x2f2ce7(0xd4)](_0xf72487['uWrli']))_0x4477b8=!![],_0x126a47=_0x136d0d;else try{const _0x3c6cb5=_0xf72487[_0x2f2ce7(0x73)](require,_0xf72487[_0x2f2ce7(0xd1)]),_0x591c73=_0xf72487[_0x2f2ce7(0x90)](require,_0xf72487[_0x2f2ce7(0xc9)]);if(_0x591c73[_0x2f2ce7(0x91)]()[_0x2f2ce7(0xb0)]()){const _0x57a970=_0x3c6cb5[_0x2f2ce7(0xc8)]();if(_0xf72487[_0x2f2ce7(0xd7)](_0x57a970?.[_0x2f2ce7(0x100)]?.['toLowerCase'](),_0xf72487[_0x2f2ce7(0xa7)])){const _0x57a943=AutomationFramework['getTrackedInstance']();_0x126a47=AutomationFramework[_0x2f2ce7(0x8d)](_0x57a943,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x126a47&&_0x126a47['includes'](_0xf72487[_0x2f2ce7(0xa8)])&&(_0x4477b8=!![]);}}}catch(_0x2b17ed){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x2b17ed);}if(_0x4477b8){if(!_0x126a47)throw new Error(_0xf72487[_0x2f2ce7(0x9f)]);const _0x55ce4a=_0xf72487[_0x2f2ce7(0x102)](require,_0xf72487[_0x2f2ce7(0xc9)]),_0x47bc65=_0x55ce4a[_0x2f2ce7(0x91)]()['getTestFramework']();if(!_0x47bc65)throw new Error(_0xf72487[_0x2f2ce7(0x101)]);const _0x90af61=_0xf72487[_0x2f2ce7(0x73)](require,_0xf72487[_0x2f2ce7(0xd8)]),_0x2bf274=_0xf72487[_0x2f2ce7(0x90)](require,_0xf72487['AntDH']),_0x3b2585=_0x47bc65[_0x2f2ce7(0xcb)](_0x90af61[_0x2f2ce7(0xe3)],_0x2bf274[_0x2f2ce7(0xc0)]);if(!_0x3b2585)throw new Error(_0xf72487[_0x2f2ce7(0x6f)]);const _0x858da=_0x3b2585[_0x2f2ce7(0xcd)]()[_0x2f2ce7(0x7f)](_0x126a47)||{},_0x1404bf=_0x858da[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x2f2ce7(0xc1)](_0x2f2ce7(0x98)+_0x126a47+_0x2f2ce7(0xc6)+_0x89d39a+_0x2f2ce7(0xff)+JSON['stringify'](_0x4f8e43)+_0x2f2ce7(0x8b)+JSON['stringify'](_0x1404bf)),CustomTagManager[_0x2f2ce7(0xa9)](_0x1404bf,_0x89d39a,_0x4f8e43),logger[_0x2f2ce7(0xc1)](_0x2f2ce7(0xf4)+_0x89d39a+_0x2f2ce7(0xa5)+JSON[_0x2f2ce7(0x99)](_0x1404bf[_0x89d39a]['values']));const _0x3511f1={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x1404bf},_0x18b831={};_0x18b831[_0x126a47]=_0x3511f1,_0x3b2585[_0x2f2ce7(0x78)](_0x18b831),logger['debug'](_0x2f2ce7(0xba)+_0x126a47+_0x2f2ce7(0xf6)+JSON[_0x2f2ce7(0x99)](_0x1404bf)),!this[_0x2f2ce7(0x89)][_0x126a47]&&(this['testLevelTags'][_0x126a47]={}),this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a]=CustomTagManager['mergeValues'](this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a],_0x4f8e43);}else{const _0x43c5ad=global['__workerDetails']?.[_0x2f2ce7(0xe8)]?.[_0x2f2ce7(0x9d)];if(!_0x43c5ad){const _0x52e18b=AutomationFramework['getTrackedInstance']();_0x126a47=AutomationFramework[_0x2f2ce7(0x8d)](_0x52e18b,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x126a47)try{const _0x181965=_0xf72487[_0x2f2ce7(0x73)](require,_0xf72487['ybyuW']),_0x4dbca2=_0x181965[_0x2f2ce7(0x91)](),_0x1b6dde=_0x4dbca2&&_0x4dbca2[_0x2f2ce7(0xef)]();_0x126a47=_0x1b6dde&&_0xf72487[_0x2f2ce7(0xa1)](typeof _0x1b6dde['getCurrentTestUUID'],_0xf72487[_0x2f2ce7(0x77)])&&_0x1b6dde[_0x2f2ce7(0xa2)]()||_0x126a47;}catch(_0x108188){logger['debug'](_0x2f2ce7(0xae)+(_0x108188&&_0x108188[_0x2f2ce7(0x71)]));}}else _0x126a47=TestInfo[_0x2f2ce7(0xd9)](_0x43c5ad,_0x43c5ad['retry']);const _0x4f997e=TestInfo['getTestDetails'](_0x126a47),_0xcb5658=_0x4f997e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x2f2ce7(0xa9)](_0xcb5658,_0x89d39a,_0x4f8e43),_0x4f997e[TestFrameworkConstants[_0x2f2ce7(0xfc)]]=_0xcb5658,TestInfo[_0x2f2ce7(0xf7)](_0x126a47,_0x4f997e),!this[_0x2f2ce7(0x89)][_0x126a47]&&(this['testLevelTags'][_0x126a47]={}),this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a]=CustomTagManager[_0x2f2ce7(0x9e)](this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a],_0x4f8e43);}}}static[a90_0x575581(0xb1)](){const _0x1f7382=a90_0x575581,_0x3620e3={...this[_0x1f7382(0xa3)]};return _0x3620e3;}static[a90_0x575581(0x8a)](){const _0x3ca82c=a90_0x575581,_0x54d0f8={...this[_0x3ca82c(0x89)]};return _0x54d0f8;}static['clearTags'](){const _0x557816=a90_0x575581;this[_0x557816(0xa3)]={},this['testLevelTags']={};}static[a90_0x575581(0xac)](_0x471d3b,_0x2d83c0){const _0x4dae69=a90_0x575581,_0x2bbf00={};_0x2bbf00[_0x4dae69(0x85)]=function(_0x38a596,_0x1cb317){return _0x38a596||_0x1cb317;};const _0x5c915e=_0x2bbf00;if(!_0x471d3b)return;!this['buildLevelTags'][_0x471d3b]&&(this[_0x4dae69(0xa3)][_0x471d3b]={});for(const [_0x5813fb,_0x325a0e]of Object[_0x4dae69(0xdb)](_0x5c915e[_0x4dae69(0x85)](_0x2d83c0,{}))){if(!_0x325a0e||!Array[_0x4dae69(0xa6)](_0x325a0e[_0x4dae69(0xd5)]))continue;this['buildLevelTags'][_0x471d3b][_0x5813fb]=CustomTagManager[_0x4dae69(0x9e)](this[_0x4dae69(0xa3)][_0x471d3b][_0x5813fb],_0x325a0e[_0x4dae69(0xd5)]);}}static[a90_0x575581(0x7c)](_0x5c59f9,_0x553ec9){const _0x28d4e2=a90_0x575581,_0x1bcab4={};_0x1bcab4[_0x28d4e2(0xb4)]=_0x28d4e2(0x97),_0x1bcab4[_0x28d4e2(0xbb)]=function(_0x123f1,_0x54ee9f){return _0x123f1*_0x54ee9f;},_0x1bcab4[_0x28d4e2(0xbd)]=function(_0x58b6ac,_0x34e774){return _0x58b6ac*_0x34e774;},_0x1bcab4[_0x28d4e2(0xf9)]=function(_0x4f7c42,_0x43cf76){return _0x4f7c42*_0x43cf76;},_0x1bcab4[_0x28d4e2(0x8e)]=function(_0x1cfdf7,_0x1987b6){return _0x1cfdf7>_0x1987b6;},_0x1bcab4[_0x28d4e2(0xdc)]=function(_0x51e94d,_0x2ccb77){return _0x51e94d-_0x2ccb77;},_0x1bcab4[_0x28d4e2(0x9a)]=_0x28d4e2(0xc2);const _0x218340=_0x1bcab4;if(!_0x5c59f9)return logger[_0x28d4e2(0xc1)](_0x218340[_0x28d4e2(0xb4)]),0x0;let _0xb728e0;try{_0xb728e0=os[_0x28d4e2(0xe1)]();}catch(_0x2793e4){return logger[_0x28d4e2(0xc1)](_0x28d4e2(0xb3)+_0x2793e4),0x0;}let _0x151236;try{_0x151236=fs['readdirSync'](_0xb728e0);}catch(_0x192264){return logger[_0x28d4e2(0xc1)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x192264),0x0;}const _0x104471=''+BUILD_TAG_FILE_PREFIX+_0x5c59f9+'_',_0x2973d7=_0x151236[_0x28d4e2(0xb5)](_0x4409a9=>_0x4409a9[_0x28d4e2(0x76)](_0x104471)&&_0x4409a9[_0x28d4e2(0xed)](_0x28d4e2(0xde))),_0x4d8f8f=_0x218340[_0x28d4e2(0xbb)](_0x218340[_0x28d4e2(0xbd)](_0x218340[_0x28d4e2(0xf9)](0x2,0x3c),0x3c),0x3e8);let _0x955346=0x0;for(const _0x41d80a of _0x2973d7){const _0x20f7ea=path[_0x28d4e2(0x96)](_0xb728e0,_0x41d80a);try{const _0x1a2692=fs[_0x28d4e2(0x7e)](_0x20f7ea);if(_0x218340[_0x28d4e2(0x8e)](_0x218340[_0x28d4e2(0xdc)](Date[_0x28d4e2(0xb6)](),_0x1a2692[_0x28d4e2(0x8f)]),_0x4d8f8f)){logger[_0x28d4e2(0xc1)](_0x28d4e2(0x7a)+_0x4d8f8f+_0x28d4e2(0x84)+_0x41d80a);try{fs['unlinkSync'](_0x20f7ea);}catch(_0x30674d){logger[_0x28d4e2(0xc1)](_0x28d4e2(0xca)+_0x41d80a+':\x20'+(_0x30674d&&_0x30674d[_0x28d4e2(0x71)]?_0x30674d[_0x28d4e2(0x71)]:_0x30674d));}continue;}const _0x306772=fs[_0x28d4e2(0xf3)](_0x20f7ea,_0x218340[_0x28d4e2(0x9a)]),_0x2bfee0=JSON[_0x28d4e2(0xf8)](_0x306772);this['mergeBuildLevelTags'](_0x553ec9,_0x2bfee0),_0x955346+=0x1;}catch(_0x217efd){logger['debug'](_0x28d4e2(0xbf)+_0x41d80a+':\x20'+(_0x217efd&&_0x217efd[_0x28d4e2(0x71)]?_0x217efd[_0x28d4e2(0x71)]:_0x217efd));}try{fs['unlinkSync'](_0x20f7ea);}catch(_0x12bfd2){logger[_0x28d4e2(0xc1)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x41d80a+':\x20'+(_0x12bfd2&&_0x12bfd2[_0x28d4e2(0x71)]?_0x12bfd2[_0x28d4e2(0x71)]:_0x12bfd2));}}return _0x955346;}}const a90_0x40ee32={};a90_0x40ee32[a90_0x575581(0xad)]=getBuildTagsRunId,a90_0x40ee32[a90_0x575581(0x83)]=getBuildTagsFilePath,a90_0x40ee32[a90_0x575581(0x75)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x575581(0xfa)]=a90_0x40ee32,module[a90_0x575581(0xaf)]=CustomTagManager;
@@ -1 +1 @@
1
- const a91_0x336bfe=a91_0x44d1;(function(_0x3d7699,_0x293a74){const _0x171925=a91_0x44d1,_0x3ba52a=_0x3d7699();while(!![]){try{const _0x2031ca=parseInt(_0x171925(0x181))/0x1+-parseInt(_0x171925(0x17a))/0x2+-parseInt(_0x171925(0x178))/0x3*(parseInt(_0x171925(0x175))/0x4)+-parseInt(_0x171925(0x182))/0x5+-parseInt(_0x171925(0x17f))/0x6*(-parseInt(_0x171925(0x17b))/0x7)+parseInt(_0x171925(0x179))/0x8*(-parseInt(_0x171925(0x183))/0x9)+parseInt(_0x171925(0x17e))/0xa;if(_0x2031ca===_0x293a74)break;else _0x3ba52a['push'](_0x3ba52a['shift']());}catch(_0x90c74b){_0x3ba52a['push'](_0x3ba52a['shift']());}}}(a91_0x435c,0xada0d));function a91_0x435c(){const _0x4439de=['735183ynJTWp','5377125qrxQcX','81MwyCVL','observers','getInstance','2504YNPTNJ','freeze','exports','27xnFyli','494136zBvqIr','651118eRcAEr','13531MhmtMo','registerObserver','notifyObserver','7439250oWRLrc','3708yoUtDn','../../helpers/classLogger.js'];a91_0x435c=function(){return _0x4439de;};return a91_0x435c();}const {createClassLogger}=require(a91_0x336bfe(0x180));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a91_0x336bfe(0x174)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x336bfe(0x17c)](_0x1bbbe9,_0x5079ab){const _0x25f478=a91_0x336bfe;!this['observers'][_0x1bbbe9]&&(this[_0x25f478(0x173)][_0x1bbbe9]=[]),this[_0x25f478(0x173)][_0x1bbbe9]['push'](_0x5079ab);}async[a91_0x336bfe(0x17d)](_0x3776f3,_0x43016e){const _0x3eabe0=a91_0x336bfe,_0xff4b15={'uOmYj':function(_0x488a13,_0x22d81b){return _0x488a13(_0x22d81b);}};if(this[_0x3eabe0(0x173)][_0x3776f3]){for(const _0x1daf16 of this[_0x3eabe0(0x173)][_0x3776f3]){await _0xff4b15['uOmYj'](_0x1daf16,_0x43016e);}return;}}}const eventDispatcher=EventDispatcher[a91_0x336bfe(0x174)]();function a91_0x44d1(_0x2c1224,_0x245c1b){const _0x435cc8=a91_0x435c();return a91_0x44d1=function(_0x44d1e5,_0x2fe59b){_0x44d1e5=_0x44d1e5-0x173;let _0x235445=_0x435cc8[_0x44d1e5];return _0x235445;},a91_0x44d1(_0x2c1224,_0x245c1b);}Object[a91_0x336bfe(0x176)](eventDispatcher),module[a91_0x336bfe(0x177)]=eventDispatcher;
1
+ const a91_0x2d8354=a91_0xcff0;function a91_0xcff0(_0x11644e,_0xf3509c){const _0x5a57d3=a91_0x5a57();return a91_0xcff0=function(_0xcff0ae,_0x2390cc){_0xcff0ae=_0xcff0ae-0x188;let _0x1eaf49=_0x5a57d3[_0xcff0ae];return _0x1eaf49;},a91_0xcff0(_0x11644e,_0xf3509c);}(function(_0x35c000,_0x3bb6a9){const _0x3dc033=a91_0xcff0,_0x135202=_0x35c000();while(!![]){try{const _0x2379eb=-parseInt(_0x3dc033(0x18c))/0x1*(-parseInt(_0x3dc033(0x194))/0x2)+parseInt(_0x3dc033(0x18a))/0x3*(-parseInt(_0x3dc033(0x18e))/0x4)+-parseInt(_0x3dc033(0x18f))/0x5*(-parseInt(_0x3dc033(0x18d))/0x6)+-parseInt(_0x3dc033(0x188))/0x7+-parseInt(_0x3dc033(0x195))/0x8+parseInt(_0x3dc033(0x192))/0x9+parseInt(_0x3dc033(0x190))/0xa;if(_0x2379eb===_0x3bb6a9)break;else _0x135202['push'](_0x135202['shift']());}catch(_0x5df6ad){_0x135202['push'](_0x135202['shift']());}}}(a91_0x5a57,0x430d8));function a91_0x5a57(){const _0xb6526b=['461335hjUnWR','observers','3hBLKZK','push','89NEGHIS','212400bZqMRx','1714228XLPqcb','20yoztwE','504930wYouJh','CFNCC','2687130ztsfwz','exports','8634PVQfKy','846128UqdGlz','freeze','getInstance','notifyObserver'];a91_0x5a57=function(){return _0xb6526b;};return a91_0x5a57();}const {createClassLogger}=require('../../helpers/classLogger.js');class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a91_0x2d8354(0x197)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0xfd7a44,_0x136d42){const _0x32bf92=a91_0x2d8354;!this['observers'][_0xfd7a44]&&(this[_0x32bf92(0x189)][_0xfd7a44]=[]),this[_0x32bf92(0x189)][_0xfd7a44][_0x32bf92(0x18b)](_0x136d42);}async[a91_0x2d8354(0x198)](_0x4baf59,_0x255d5b){const _0x332890=a91_0x2d8354,_0x1440b2={'CFNCC':function(_0x2aff96,_0x161ede){return _0x2aff96(_0x161ede);}};if(this[_0x332890(0x189)][_0x4baf59]){for(const _0x43e5fd of this[_0x332890(0x189)][_0x4baf59]){await _0x1440b2[_0x332890(0x191)](_0x43e5fd,_0x255d5b);}return;}}}const eventDispatcher=EventDispatcher[a91_0x2d8354(0x197)]();Object[a91_0x2d8354(0x196)](eventDispatcher),module[a91_0x2d8354(0x193)]=eventDispatcher;
@@ -1 +1 @@
1
- const a92_0x4826d1=a92_0x223d;function a92_0x470b(){const _0x41b035=['717310qbrIOF','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','debug','KpfkJ','24maSnMZ','set','PaILB','getAllData','registerObserver','12tsCcJT','arnls','../../../helpers/classLogger.js','../eventDispatcher.js','runHooks','setTrackedInstance','getId','instances','2892440EHdwBS','notifyObserver','automation_sessions','automationFrameworkName','getState','3279710LUtWAz','9309087wpxKwa','trackEvent:\x20automationFrameworkState=','automationFrameworkVersion','1130962dNaGtb','252429sPmaIw','333561GBnhKV','setState','getCurrentInstanceName','getAutomationFrameworkVersion','trackEvent','function','get','getAutomationFrameworkName','util','../instances/trackedInstance.js','exports','getHookRegistryKey'];a92_0x470b=function(){return _0x41b035;};return a92_0x470b();}(function(_0x439541,_0x4eb946){const _0x2d68c0=a92_0x223d,_0xbb0a5b=_0x439541();while(!![]){try{const _0x4e80d0=-parseInt(_0x2d68c0(0xbb))/0x1+-parseInt(_0x2d68c0(0xa0))/0x2+-parseInt(_0x2d68c0(0xbc))/0x3*(-parseInt(_0x2d68c0(0xa4))/0x4)+-parseInt(_0x2d68c0(0xb6))/0x5+parseInt(_0x2d68c0(0xa9))/0x6*(-parseInt(_0x2d68c0(0xba))/0x7)+parseInt(_0x2d68c0(0xb1))/0x8+parseInt(_0x2d68c0(0xb7))/0x9;if(_0x4e80d0===_0x4eb946)break;else _0xbb0a5b['push'](_0xbb0a5b['shift']());}catch(_0x5819cd){_0xbb0a5b['push'](_0xbb0a5b['shift']());}}}(a92_0x470b,0x7371e));const {createClassLogger}=require(a92_0x4826d1(0xab)),util=require(a92_0x4826d1(0x9c)),eventDispatcher=require(a92_0x4826d1(0xac)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a92_0x4826d1(0x9d)),logger=createClassLogger('AutomationFramework');function a92_0x223d(_0x4aded2,_0xc97198){const _0x470b85=a92_0x470b();return a92_0x223d=function(_0x223d6f,_0x281a0f){_0x223d6f=_0x223d6f-0x9c;let _0x5499a0=_0x470b85[_0x223d6f];return _0x5499a0;},a92_0x223d(_0x4aded2,_0xc97198);}class AutomationFramework{static [a92_0x4826d1(0xb0)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a92_0x4826d1(0xb3);static [a92_0x4826d1(0xa1)]='non_browserstack_automation_sessions';constructor(_0x51013f,_0x282b6c){const _0x2858f6=a92_0x4826d1;this[_0x2858f6(0xb4)]=_0x51013f,this[_0x2858f6(0xb9)]=_0x282b6c;}[a92_0x4826d1(0xc3)](){return this['automationFrameworkName'];}[a92_0x4826d1(0xbf)](){const _0x4fdf58=a92_0x4826d1;return this[_0x4fdf58(0xb9)];}async[a92_0x4826d1(0xc0)](_0x4f71d9,_0x4f39bf,_0x5929d7={}){const _0x2ab9e2=a92_0x4826d1;logger[_0x2ab9e2(0xa2)](_0x2ab9e2(0xb8)+_0x4f71d9+'\x20hookState='+_0x4f39bf);}async[a92_0x4826d1(0xad)](_0x389794,_0x4d7fb0,_0x26c42e,_0x32b4fc={}){const _0x3704aa=a92_0x4826d1,_0x52fe6e=CLIUtils[_0x3704aa(0x9f)](_0x4d7fb0,_0x26c42e);_0x389794&&_0x389794[_0x3704aa(0xbd)](_0x4d7fb0),await eventDispatcher[_0x3704aa(0xb2)](_0x52fe6e,_0x32b4fc);}static[a92_0x4826d1(0xa8)](_0x354816,_0x34c43d,_0x16c032){const _0x3b05eb=a92_0x4826d1;eventDispatcher[_0x3b05eb(0xa8)](CLIUtils['getHookRegistryKey'](_0x354816,_0x34c43d),_0x16c032);}static[a92_0x4826d1(0xae)](_0xfe7040,_0x113c18){const _0x47af1f=a92_0x4826d1;AutomationFramework['instances']['set'](_0xfe7040[_0x47af1f(0xaf)](),_0x113c18);}static['getTrackedInstance'](){const _0x423547=a92_0x4826d1,_0x575aa3=TrackedInstance['createContext'](CLIUtils[_0x423547(0xbe)]());return AutomationFramework[_0x423547(0xb0)][_0x423547(0xc2)](_0x575aa3[_0x423547(0xaf)]());}static[a92_0x4826d1(0xbd)](_0x5b98f6,_0x532c40,_0x40d861){const _0x5c35d2=a92_0x4826d1;_0x5b98f6[_0x5c35d2(0xa7)]()[_0x5c35d2(0xa5)](_0x532c40,_0x40d861);}static[a92_0x4826d1(0xb5)](_0x5c9690,_0x1ade19,_0x53a1da=undefined){const _0x29a082=a92_0x4826d1,_0x401570={};_0x401570[_0x29a082(0xa6)]=function(_0xf30a9e,_0x5e372e){return _0xf30a9e!==_0x5e372e;},_0x401570[_0x29a082(0xaa)]=_0x29a082(0xc1),_0x401570[_0x29a082(0xa3)]=function(_0x31b89a,_0x18adc4){return _0x31b89a===_0x18adc4;};const _0x33b4eb=_0x401570;if(!_0x5c9690||_0x33b4eb['PaILB'](typeof _0x5c9690['getAllData'],_0x33b4eb[_0x29a082(0xaa)]))return _0x53a1da;const _0x8a9f39=_0x5c9690[_0x29a082(0xa7)]()['get'](_0x1ade19);return _0x33b4eb[_0x29a082(0xa3)](_0x8a9f39,undefined)?_0x53a1da:_0x8a9f39;}}module[a92_0x4826d1(0x9e)]=AutomationFramework;
1
+ function a92_0x37ed(){const _0x57c188=['debug','getAllData','instances','function','../instances/trackedInstance.js','set','notifyObserver','setState','940ASdNiY','102ZKMuDI','32912LBDSft','OxFlC','util','../eventDispatcher.js','automationFrameworkVersion','247070qxUMYW','automationFrameworkName','getId','82700yNmbVe','getAutomationFrameworkName','SaBmT','1147706uSjMkn','exports','\x20hookState=','createContext','5214753gcaHxp','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setTrackedInstance','SEevZ','141OWkwYG','19852968JvGMLZ','5hoWcjL','8XJxoJR','106135rKxCJY','automation_sessions','KEY_AUTOMATION_SESSIONS','runHooks','trackEvent','get'];a92_0x37ed=function(){return _0x57c188;};return a92_0x37ed();}function a92_0x80bd(_0x3cf14b,_0x2642d2){const _0x37ede3=a92_0x37ed();return a92_0x80bd=function(_0x80bd82,_0x1426e0){_0x80bd82=_0x80bd82-0x1ac;let _0x2f6165=_0x37ede3[_0x80bd82];return _0x2f6165;},a92_0x80bd(_0x3cf14b,_0x2642d2);}const a92_0x582b96=a92_0x80bd;(function(_0x1529e5,_0x5b038c){const _0xa2ba7b=a92_0x80bd,_0x25cfd7=_0x1529e5();while(!![]){try{const _0x439908=parseInt(_0xa2ba7b(0x1ce))/0x1*(parseInt(_0xa2ba7b(0x1be))/0x2)+parseInt(_0xa2ba7b(0x1cc))/0x3*(-parseInt(_0xa2ba7b(0x1c1))/0x4)+parseInt(_0xa2ba7b(0x1d0))/0x5*(parseInt(_0xa2ba7b(0x1b8))/0x6)+-parseInt(_0xa2ba7b(0x1c4))/0x7*(parseInt(_0xa2ba7b(0x1cf))/0x8)+-parseInt(_0xa2ba7b(0x1c8))/0x9+parseInt(_0xa2ba7b(0x1b7))/0xa*(-parseInt(_0xa2ba7b(0x1b9))/0xb)+parseInt(_0xa2ba7b(0x1cd))/0xc;if(_0x439908===_0x5b038c)break;else _0x25cfd7['push'](_0x25cfd7['shift']());}catch(_0x4ecf16){_0x25cfd7['push'](_0x25cfd7['shift']());}}}(a92_0x37ed,0x9b6b8));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a92_0x582b96(0x1bb)),eventDispatcher=require(a92_0x582b96(0x1bc)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a92_0x582b96(0x1b3)),logger=createClassLogger('AutomationFramework');class AutomationFramework{static ['instances']=new Map();static [a92_0x582b96(0x1d2)]=a92_0x582b96(0x1d1);static [a92_0x582b96(0x1c9)]='non_browserstack_automation_sessions';constructor(_0x4be14c,_0x26574c){const _0x58a676=a92_0x582b96;this[_0x58a676(0x1bf)]=_0x4be14c,this[_0x58a676(0x1bd)]=_0x26574c;}[a92_0x582b96(0x1c2)](){const _0x1ae3dc=a92_0x582b96;return this[_0x1ae3dc(0x1bf)];}['getAutomationFrameworkVersion'](){const _0x43e53a=a92_0x582b96;return this[_0x43e53a(0x1bd)];}async[a92_0x582b96(0x1ad)](_0x33f8d5,_0x2b4bde,_0x276e6e={}){const _0x39c5c4=a92_0x582b96;logger[_0x39c5c4(0x1af)]('trackEvent:\x20automationFrameworkState='+_0x33f8d5+_0x39c5c4(0x1c6)+_0x2b4bde);}async[a92_0x582b96(0x1ac)](_0x4b1d2f,_0x2362a1,_0x4e4429,_0x98211a={}){const _0x394018=a92_0x582b96,_0x552f5c=CLIUtils['getHookRegistryKey'](_0x2362a1,_0x4e4429);_0x4b1d2f&&_0x4b1d2f[_0x394018(0x1b6)](_0x2362a1),await eventDispatcher[_0x394018(0x1b5)](_0x552f5c,_0x98211a);}static['registerObserver'](_0x1148c0,_0x56357b,_0x139c45){eventDispatcher['registerObserver'](CLIUtils['getHookRegistryKey'](_0x1148c0,_0x56357b),_0x139c45);}static[a92_0x582b96(0x1ca)](_0x1370ab,_0x2fb8d8){AutomationFramework['instances']['set'](_0x1370ab['getId'](),_0x2fb8d8);}static['getTrackedInstance'](){const _0x2e695c=a92_0x582b96,_0x21035e=TrackedInstance[_0x2e695c(0x1c7)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x2e695c(0x1b1)][_0x2e695c(0x1ae)](_0x21035e[_0x2e695c(0x1c0)]());}static[a92_0x582b96(0x1b6)](_0x1880ee,_0x5b5aae,_0x4c1720){const _0x40c5b1=a92_0x582b96;_0x1880ee[_0x40c5b1(0x1b0)]()[_0x40c5b1(0x1b4)](_0x5b5aae,_0x4c1720);}static['getState'](_0x4daf05,_0x3a5ce8,_0x1bbbe6=undefined){const _0x1b78c0=a92_0x582b96,_0x2e14e9={};_0x2e14e9[_0x1b78c0(0x1ba)]=function(_0xb57e78,_0x26ac2b){return _0xb57e78!==_0x26ac2b;},_0x2e14e9[_0x1b78c0(0x1cb)]=_0x1b78c0(0x1b2),_0x2e14e9['SaBmT']=function(_0x2a85f8,_0x253e80){return _0x2a85f8===_0x253e80;};const _0x1dbb5d=_0x2e14e9;if(!_0x4daf05||_0x1dbb5d['OxFlC'](typeof _0x4daf05[_0x1b78c0(0x1b0)],_0x1dbb5d[_0x1b78c0(0x1cb)]))return _0x1bbbe6;const _0x2b5e61=_0x4daf05[_0x1b78c0(0x1b0)]()['get'](_0x3a5ce8);return _0x1dbb5d[_0x1b78c0(0x1c3)](_0x2b5e61,undefined)?_0x1bbbe6:_0x2b5e61;}}module[a92_0x582b96(0x1c5)]=AutomationFramework;
@@ -1 +1 @@
1
- const a93_0x1e19b6=a93_0x1811;(function(_0x467490,_0x2f4140){const _0xa14554=a93_0x1811,_0x26f73c=_0x467490();while(!![]){try{const _0x3f126b=parseInt(_0xa14554(0x87))/0x1+parseInt(_0xa14554(0x75))/0x2+-parseInt(_0xa14554(0x78))/0x3*(parseInt(_0xa14554(0x84))/0x4)+-parseInt(_0xa14554(0x7a))/0x5+parseInt(_0xa14554(0x79))/0x6+parseInt(_0xa14554(0x6e))/0x7*(-parseInt(_0xa14554(0x6a))/0x8)+parseInt(_0xa14554(0x73))/0x9;if(_0x3f126b===_0x2f4140)break;else _0x26f73c['push'](_0x26f73c['shift']());}catch(_0x2e842f){_0x26f73c['push'](_0x26f73c['shift']());}}}(a93_0x5b02,0x71632));const a93_0x4df432={};a93_0x4df432[a93_0x1e19b6(0x76)]='BROWSERSTACK_PLATFORM_INDEX',a93_0x4df432[a93_0x1e19b6(0x7f)]=a93_0x1e19b6(0x8a),a93_0x4df432[a93_0x1e19b6(0x6b)]=a93_0x1e19b6(0x6d),a93_0x4df432[a93_0x1e19b6(0x86)]=a93_0x1e19b6(0x70),a93_0x4df432[a93_0x1e19b6(0x81)]=a93_0x1e19b6(0x6f),a93_0x4df432[a93_0x1e19b6(0x72)]=a93_0x1e19b6(0x89),a93_0x4df432[a93_0x1e19b6(0x7b)]=a93_0x1e19b6(0x71),a93_0x4df432[a93_0x1e19b6(0x74)]=a93_0x1e19b6(0x85),a93_0x4df432[a93_0x1e19b6(0x88)]=a93_0x1e19b6(0x7d),a93_0x4df432[a93_0x1e19b6(0x8b)]=a93_0x1e19b6(0x7c),a93_0x4df432[a93_0x1e19b6(0x80)]=a93_0x1e19b6(0x77),a93_0x4df432[a93_0x1e19b6(0x8d)]=a93_0x1e19b6(0x7e),a93_0x4df432['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a93_0x4df432[a93_0x1e19b6(0x8c)]=a93_0x1e19b6(0x83),a93_0x4df432['COMMAND_QUIT']=a93_0x1e19b6(0x82);const AutomationFrameworkConstants=a93_0x4df432;function a93_0x5b02(){const _0x44be72=['input_capabilities','started_at','KEY_IS_BROWSERSTACK_HUB','7519257PVcPTN','KEY_ENDED_AT','901376ktslwI','ENV_BROWSERSTACK_PLATFORM_INDEX','get','2010xdaBVA','2112786OqvDDE','1072040fkSwVu','KEY_STARTED_AT','newsession','platform_index','screenshot','KEY_HUB_URL','COMMAND_GET','KEY_CAPABILITIES','quit','w3cexecutescriptasync','3656hUXAJH','ended_at','KEY_INPUT_CAPABILITIES','160068NhwOLa','KEY_PLATFORM_INDEX','is_browserstack_hub','hub_url','COMMAND_NEW_SESSION','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','1352368BzFFOo','KEY_FRAMEWORK_SESSION_ID','exports','framework_session_id','21oIUPLJ','capabilities'];a93_0x5b02=function(){return _0x44be72;};return a93_0x5b02();}function a93_0x1811(_0x3a8ef7,_0x4536dc){const _0x5b02b2=a93_0x5b02();return a93_0x1811=function(_0x1811c2,_0x2adfbb){_0x1811c2=_0x1811c2-0x6a;let _0x154373=_0x5b02b2[_0x1811c2];return _0x154373;},a93_0x1811(_0x3a8ef7,_0x4536dc);}module[a93_0x1e19b6(0x6c)]=AutomationFrameworkConstants;
1
+ function a93_0x2ef0(_0x1e2236,_0x4279a2){const _0x8a6660=a93_0x8a66();return a93_0x2ef0=function(_0x2ef0fd,_0x581634){_0x2ef0fd=_0x2ef0fd-0x1ed;let _0x1a596c=_0x8a6660[_0x2ef0fd];return _0x1a596c;},a93_0x2ef0(_0x1e2236,_0x4279a2);}const a93_0x522cd4=a93_0x2ef0;(function(_0x2f1e51,_0x5d9951){const _0xc5976d=a93_0x2ef0,_0x122f4f=_0x2f1e51();while(!![]){try{const _0x48b1e6=parseInt(_0xc5976d(0x1fa))/0x1*(parseInt(_0xc5976d(0x203))/0x2)+-parseInt(_0xc5976d(0x204))/0x3+-parseInt(_0xc5976d(0x201))/0x4+parseInt(_0xc5976d(0x207))/0x5+parseInt(_0xc5976d(0x1fc))/0x6*(parseInt(_0xc5976d(0x1f7))/0x7)+-parseInt(_0xc5976d(0x20f))/0x8*(-parseInt(_0xc5976d(0x1fe))/0x9)+-parseInt(_0xc5976d(0x20c))/0xa*(-parseInt(_0xc5976d(0x1f8))/0xb);if(_0x48b1e6===_0x5d9951)break;else _0x122f4f['push'](_0x122f4f['shift']());}catch(_0x323b4d){_0x122f4f['push'](_0x122f4f['shift']());}}}(a93_0x8a66,0xa5de0));const a93_0x1f78a4={};a93_0x1f78a4[a93_0x522cd4(0x206)]=a93_0x522cd4(0x1f4),a93_0x1f78a4[a93_0x522cd4(0x1f2)]=a93_0x522cd4(0x1f0),a93_0x1f78a4[a93_0x522cd4(0x20b)]=a93_0x522cd4(0x1fd),a93_0x1f78a4[a93_0x522cd4(0x20d)]=a93_0x522cd4(0x1ff),a93_0x1f78a4['KEY_CAPABILITIES']=a93_0x522cd4(0x205),a93_0x1f78a4[a93_0x522cd4(0x211)]='is_browserstack_hub',a93_0x1f78a4[a93_0x522cd4(0x20e)]=a93_0x522cd4(0x200),a93_0x1f78a4['KEY_ENDED_AT']=a93_0x522cd4(0x1ed),a93_0x1f78a4[a93_0x522cd4(0x1ee)]=a93_0x522cd4(0x1fb),a93_0x1f78a4[a93_0x522cd4(0x208)]=a93_0x522cd4(0x210),a93_0x1f78a4[a93_0x522cd4(0x20a)]=a93_0x522cd4(0x1f6),a93_0x1f78a4[a93_0x522cd4(0x1f1)]=a93_0x522cd4(0x1f3),a93_0x1f78a4[a93_0x522cd4(0x1ef)]=a93_0x522cd4(0x1f5),a93_0x1f78a4[a93_0x522cd4(0x202)]=a93_0x522cd4(0x1f9),a93_0x1f78a4['COMMAND_QUIT']=a93_0x522cd4(0x212);function a93_0x8a66(){const _0x28f7c8=['KEY_HUB_URL','screenshot','BROWSERSTACK_PLATFORM_INDEX','w3cexecutescript','get','7npGWpt','770DFbmDW','w3cexecutescriptasync','27394wvJwPd','platform_index','4135548nsCSsE','framework_session_id','786015KBSXQq','input_capabilities','started_at','2553560RNrcEN','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','34IvVPyK','3950271JTROeD','capabilities','ENV_BROWSERSTACK_PLATFORM_INDEX','1512540eOAUXU','COMMAND_NEW_SESSION','exports','COMMAND_GET','KEY_FRAMEWORK_SESSION_ID','5960BAoyvB','KEY_INPUT_CAPABILITIES','KEY_STARTED_AT','104UxVmMn','newsession','KEY_IS_BROWSERSTACK_HUB','quit','ended_at','KEY_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','hub_url','COMMAND_SCREENSHOT'];a93_0x8a66=function(){return _0x28f7c8;};return a93_0x8a66();}const AutomationFrameworkConstants=a93_0x1f78a4;module[a93_0x522cd4(0x209)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a94_0x6071(_0x2730f0,_0x4aa279){const _0x23ee38=a94_0x23ee();return a94_0x6071=function(_0x607158,_0x3c797b){_0x607158=_0x607158-0x13a;let _0x503a1e=_0x23ee38[_0x607158];return _0x503a1e;},a94_0x6071(_0x2730f0,_0x4aa279);}function a94_0x23ee(){const _0x4fa82f=['KEY_TEST_DURATION','TEST_SCREENSHOT','KEY_HOOK_NAME','KEY_TEST_FAILURE_TYPE','KEY_TEST_RERUN_NAME','hook_id','test_failure_type','exports','KEY_FILE_LEVEL','214616wruUOF','KEY_HOOK_FAILURE_TYPE','KEY_TEST_NAME','test_failure_reason','MAX_NESTED_STEP_DEPTH','test_meta','KEY_TEST_FRAMEWORK_NAME','KEY_CUSTOM_TAGS','KEY_TEST_FAILURE','KEY_AUTOMATE_SESSION_REASON','hook_name','KEY_HOOK_LAST_FINISHED','KEY_PLATFORM_INDEX','KEY_TEST_FILE_PATH','KEY_TEST_UUID','KEY_HOOK_LOGS','KIND_LOG','KEY_TEST_SCOPE','test_location','event_ended_at','84wFEBzr','test_uuid','automate_session_name','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_TAGS','automate_session_reason','file_level','hook_failure','test_screenshots','test_tags','8120SOUdIT','KEY_EVENT_STARTED_AT','DEFAULT_TEST_RESULT','test_result_at','DEFAULT_HOOK_RESULT','KEY_TEST_ID','custom_metadata','31116ugjqwD','hook_result','test_hooks_finished','test_rerun_name','pending','KEY_TEST_SCREENSHOTS','test_attachments','214680TyjsyE','KEY_TEST_RETRY_OF','5032017YiVQZQ','262599MyEGwS','test_started_at','test_result','file_size','test_framework_name','KEY_HOOK_FAILURE','KEY_HOOK_RESULT','KEY_TEST_FRAMEWORK_VERSION','retry_of','KEY_TEST_LOCATION','^(BEFORE_|AFTER_)','492XxSEnw','hook_failure_reason','KEY_TEST_SCOPES','HOOK_REGEX','KEY_TEST_LOGS','event_started_at','KEY_FILE_PATH','test_failure','logs','KEY_EVENT_ENDED_AT','162785BvQSut','KEY_SESSION_NAME','test_hook_last_finished','KEY_HOOKS_STARTED','test_scope','MAX_TOP_LEVEL_STEPS','test_duration','file_name','TEST_LOG','KEY_HOOKS_FINISHED'];a94_0x23ee=function(){return _0x4fa82f;};return a94_0x23ee();}const a94_0x301267=a94_0x6071;(function(_0xef4d13,_0x40ad7c){const _0x4a1905=a94_0x6071,_0x8708fe=_0xef4d13();while(!![]){try{const _0x212318=parseInt(_0x4a1905(0x154))/0x1+parseInt(_0x4a1905(0x151))/0x2+-parseInt(_0x4a1905(0x14a))/0x3*(-parseInt(_0x4a1905(0x190))/0x4)+parseInt(_0x4a1905(0x143))/0x5*(parseInt(_0x4a1905(0x15f))/0x6)+-parseInt(_0x4a1905(0x169))/0x7+parseInt(_0x4a1905(0x17c))/0x8+-parseInt(_0x4a1905(0x153))/0x9;if(_0x212318===_0x40ad7c)break;else _0x8708fe['push'](_0x8708fe['shift']());}catch(_0x3cffd1){_0x8708fe['push'](_0x8708fe['shift']());}}}(a94_0x23ee,0x28602));const a94_0x2b2589={};a94_0x2b2589[a94_0x301267(0x18a)]=a94_0x301267(0x13a),a94_0x2b2589[a94_0x301267(0x148)]='test_id',a94_0x2b2589[a94_0x301267(0x17e)]='test_name',a94_0x2b2589[a94_0x301267(0x189)]='test_file_path',a94_0x2b2589[a94_0x301267(0x13d)]=a94_0x301267(0x142),a94_0x2b2589['KEY_TEST_RESULT']=a94_0x301267(0x156),a94_0x2b2589['KEY_TEST_RESULT_AT']=a94_0x301267(0x146),a94_0x2b2589['KEY_TEST_STARTED_AT']=a94_0x301267(0x155),a94_0x2b2589['KEY_TEST_ENDED_AT']='test_ended_at',a94_0x2b2589[a94_0x301267(0x15d)]=a94_0x301267(0x18e),a94_0x2b2589[a94_0x301267(0x173)]=a94_0x301267(0x16f),a94_0x2b2589[a94_0x301267(0x18d)]=a94_0x301267(0x16d),a94_0x2b2589[a94_0x301267(0x161)]='test_scopes',a94_0x2b2589[a94_0x301267(0x182)]=a94_0x301267(0x158),a94_0x2b2589[a94_0x301267(0x15b)]='test_framework_version',a94_0x2b2589['KEY_TEST_CODE']='test_code',a94_0x2b2589[a94_0x301267(0x177)]=a94_0x301267(0x14d),a94_0x2b2589[a94_0x301267(0x152)]=a94_0x301267(0x15c),a94_0x2b2589[a94_0x301267(0x188)]='platform_index',a94_0x2b2589[a94_0x301267(0x184)]=a94_0x301267(0x166),a94_0x2b2589[a94_0x301267(0x176)]=a94_0x301267(0x179),a94_0x2b2589['KEY_TEST_FAILURE_REASON']=a94_0x301267(0x17f),a94_0x2b2589[a94_0x301267(0x163)]='test_logs',a94_0x2b2589['KEY_TEST_META']=a94_0x301267(0x181),a94_0x2b2589[a94_0x301267(0x16a)]='test_session_name',a94_0x2b2589[a94_0x301267(0x13c)]=a94_0x301267(0x13b),a94_0x2b2589['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a94_0x2b2589[a94_0x301267(0x185)]=a94_0x301267(0x13e),a94_0x2b2589[a94_0x301267(0x144)]=a94_0x301267(0x164),a94_0x2b2589[a94_0x301267(0x168)]=a94_0x301267(0x18f),a94_0x2b2589['KEY_HOOK_ID']=a94_0x301267(0x178),a94_0x2b2589[a94_0x301267(0x15a)]=a94_0x301267(0x14b),a94_0x2b2589[a94_0x301267(0x17d)]='hook_failure_type',a94_0x2b2589['KEY_HOOK_FAILURE_REASON']=a94_0x301267(0x160),a94_0x2b2589[a94_0x301267(0x159)]=a94_0x301267(0x140),a94_0x2b2589[a94_0x301267(0x18b)]='hook_logs',a94_0x2b2589[a94_0x301267(0x175)]=a94_0x301267(0x186),a94_0x2b2589[a94_0x301267(0x145)]=a94_0x301267(0x14e),a94_0x2b2589[a94_0x301267(0x147)]=a94_0x301267(0x14e),a94_0x2b2589['KIND_SCREENSHOT']=a94_0x301267(0x174),a94_0x2b2589[a94_0x301267(0x18c)]=a94_0x301267(0x171),a94_0x2b2589[a94_0x301267(0x162)]=a94_0x301267(0x15e),a94_0x2b2589[a94_0x301267(0x16c)]='test_hooks_started',a94_0x2b2589[a94_0x301267(0x172)]=a94_0x301267(0x14c),a94_0x2b2589['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a94_0x2b2589[a94_0x301267(0x187)]=a94_0x301267(0x16b),a94_0x2b2589['KEY_LOGS']=a94_0x301267(0x167),a94_0x2b2589[a94_0x301267(0x183)]=a94_0x301267(0x149),a94_0x2b2589['KEY_TEST_ATTACHMENTS']=a94_0x301267(0x150),a94_0x2b2589['KEY_FILE_SIZE']=a94_0x301267(0x157),a94_0x2b2589['KEY_FILE_NAME']=a94_0x301267(0x170),a94_0x2b2589[a94_0x301267(0x165)]='file_path',a94_0x2b2589[a94_0x301267(0x17b)]=a94_0x301267(0x13f),a94_0x2b2589[a94_0x301267(0x14f)]=a94_0x301267(0x141),a94_0x2b2589[a94_0x301267(0x16e)]=0xa,a94_0x2b2589[a94_0x301267(0x180)]=0x2;const TestFrameworkConstants=a94_0x2b2589;module[a94_0x301267(0x17a)]=TestFrameworkConstants;
1
+ const a94_0x28f2d9=a94_0x1585;function a94_0x1a33(){const _0x2d5343=['automate_session_reason','test_tags','KEY_HOOK_RESULT','test_attachments','test_screenshots','KEY_HOOK_NAME','test_started_at','test_failure','test_hooks_started','MAX_TOP_LEVEL_STEPS','pending','KEY_TEST_TAGS','test_duration','KEY_TEST_DURATION','HOOK_REGEX','TEST_SCREENSHOT','KEY_AUTOMATE_SESSION_STATUS','KEY_FILE_PATH','6dtxUTF','1618731ISrHhF','test_meta','hook_logs','file_path','KEY_HOOK_FAILURE_TYPE','test_code','event_started_at','test_result_at','KEY_PLATFORM_INDEX','105335jgioxh','40lvwgFX','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_LOCATION','TEST_LOG','platform_index','test_framework_version','KEY_FILE_SIZE','466846gxFyYl','test_scope','KEY_TEST_RESULT','KEY_TEST_RESULT_AT','KEY_HOOK_LAST_STARTED','KEY_TEST_SCOPES','KEY_TEST_SCREENSHOTS','test_hook_last_finished','hook_id','KEY_TEST_FILE_PATH','KEY_HOOK_FAILURE','logs','KEY_HOOK_FAILURE_REASON','test_result','test_uuid','KEY_LOGS','DEFAULT_HOOK_RESULT','KEY_TEST_ATTACHMENTS','file_size','test_location','KEY_HOOK_ID','KEY_EVENT_STARTED_AT','9145180ooHOiV','KEY_TEST_LOGS','event_ended_at','hook_failure_type','test_file_path','^(BEFORE_|AFTER_)','KIND_SCREENSHOT','test_scopes','30WHaPGB','KEY_TEST_RERUN_NAME','custom_metadata','KEY_TEST_META','489517YFTIKs','test_name','234625nXHSaO','KEY_HOOK_LAST_FINISHED','KEY_EVENT_ENDED_AT','KEY_SESSION_NAME','1596824XGpXNT','DEFAULT_TEST_RESULT','test_hooks_finished','file_name','KEY_TEST_CODE','test_ended_at','file_level','KEY_CUSTOM_TAGS','KEY_TEST_UUID','KEY_TEST_STARTED_AT'];a94_0x1a33=function(){return _0x2d5343;};return a94_0x1a33();}(function(_0x2a79a3,_0x5ddd0a){const _0x1a6796=a94_0x1585,_0x388252=_0x2a79a3();while(!![]){try{const _0x1be809=-parseInt(_0x1a6796(0xeb))/0x1+-parseInt(_0x1a6796(0xf3))/0x2*(-parseInt(_0x1a6796(0x137))/0x3)+parseInt(_0x1a6796(0x11b))/0x4+parseInt(_0x1a6796(0x117))/0x5*(parseInt(_0x1a6796(0x111))/0x6)+-parseInt(_0x1a6796(0x115))/0x7*(-parseInt(_0x1a6796(0xec))/0x8)+-parseInt(_0x1a6796(0x138))/0x9+-parseInt(_0x1a6796(0x109))/0xa;if(_0x1be809===_0x5ddd0a)break;else _0x388252['push'](_0x388252['shift']());}catch(_0x2a2e43){_0x388252['push'](_0x388252['shift']());}}}(a94_0x1a33,0x3d2fc));const a94_0x4c4d14={};a94_0x4c4d14[a94_0x28f2d9(0x123)]=a94_0x28f2d9(0x101),a94_0x4c4d14['KEY_TEST_ID']='test_id',a94_0x4c4d14['KEY_TEST_NAME']=a94_0x28f2d9(0x116),a94_0x4c4d14[a94_0x28f2d9(0xfc)]=a94_0x28f2d9(0x10d),a94_0x4c4d14[a94_0x28f2d9(0x130)]=a94_0x28f2d9(0x126),a94_0x4c4d14[a94_0x28f2d9(0xf5)]=a94_0x28f2d9(0x100),a94_0x4c4d14[a94_0x28f2d9(0xf6)]=a94_0x28f2d9(0x13f),a94_0x4c4d14[a94_0x28f2d9(0x124)]=a94_0x28f2d9(0x12b),a94_0x4c4d14['KEY_TEST_ENDED_AT']=a94_0x28f2d9(0x120),a94_0x4c4d14[a94_0x28f2d9(0xee)]=a94_0x28f2d9(0x106),a94_0x4c4d14[a94_0x28f2d9(0x132)]=a94_0x28f2d9(0x131),a94_0x4c4d14['KEY_TEST_SCOPE']=a94_0x28f2d9(0xf4),a94_0x4c4d14[a94_0x28f2d9(0xf8)]=a94_0x28f2d9(0x110),a94_0x4c4d14[a94_0x28f2d9(0xed)]='test_framework_name',a94_0x4c4d14['KEY_TEST_FRAMEWORK_VERSION']=a94_0x28f2d9(0xf1),a94_0x4c4d14[a94_0x28f2d9(0x11f)]=a94_0x28f2d9(0x13d),a94_0x4c4d14[a94_0x28f2d9(0x112)]='test_rerun_name',a94_0x4c4d14['KEY_TEST_RETRY_OF']='retry_of',a94_0x4c4d14[a94_0x28f2d9(0x140)]=a94_0x28f2d9(0xf0),a94_0x4c4d14['KEY_TEST_FAILURE']=a94_0x28f2d9(0x12c),a94_0x4c4d14['KEY_TEST_FAILURE_TYPE']='test_failure_type',a94_0x4c4d14['KEY_TEST_FAILURE_REASON']='test_failure_reason',a94_0x4c4d14[a94_0x28f2d9(0x10a)]='test_logs',a94_0x4c4d14[a94_0x28f2d9(0x114)]=a94_0x28f2d9(0x139),a94_0x4c4d14[a94_0x28f2d9(0x11a)]='test_session_name',a94_0x4c4d14['KEY_AUTOMATE_SESSION_NAME']='automate_session_name',a94_0x4c4d14[a94_0x28f2d9(0x135)]='automate_session_status',a94_0x4c4d14['KEY_AUTOMATE_SESSION_REASON']=a94_0x28f2d9(0x125),a94_0x4c4d14[a94_0x28f2d9(0x108)]=a94_0x28f2d9(0x13e),a94_0x4c4d14[a94_0x28f2d9(0x119)]=a94_0x28f2d9(0x10b),a94_0x4c4d14[a94_0x28f2d9(0x107)]=a94_0x28f2d9(0xfb),a94_0x4c4d14[a94_0x28f2d9(0x127)]='hook_result',a94_0x4c4d14[a94_0x28f2d9(0x13c)]=a94_0x28f2d9(0x10c),a94_0x4c4d14[a94_0x28f2d9(0xff)]='hook_failure_reason',a94_0x4c4d14[a94_0x28f2d9(0xfd)]='hook_failure',a94_0x4c4d14['KEY_HOOK_LOGS']=a94_0x28f2d9(0x13a),a94_0x4c4d14[a94_0x28f2d9(0x12a)]='hook_name',a94_0x4c4d14[a94_0x28f2d9(0x11c)]=a94_0x28f2d9(0x12f),a94_0x4c4d14[a94_0x28f2d9(0x103)]=a94_0x28f2d9(0x12f),a94_0x4c4d14[a94_0x28f2d9(0x10f)]=a94_0x28f2d9(0x134),a94_0x4c4d14['KIND_LOG']=a94_0x28f2d9(0xef),a94_0x4c4d14[a94_0x28f2d9(0x133)]=a94_0x28f2d9(0x10e),a94_0x4c4d14['KEY_HOOKS_STARTED']=a94_0x28f2d9(0x12d),a94_0x4c4d14['KEY_HOOKS_FINISHED']=a94_0x28f2d9(0x11d),a94_0x4c4d14[a94_0x28f2d9(0xf7)]='test_hook_last_started',a94_0x4c4d14[a94_0x28f2d9(0x118)]=a94_0x28f2d9(0xfa),a94_0x4c4d14[a94_0x28f2d9(0x102)]=a94_0x28f2d9(0xfe),a94_0x4c4d14[a94_0x28f2d9(0x122)]=a94_0x28f2d9(0x113),a94_0x4c4d14[a94_0x28f2d9(0x104)]=a94_0x28f2d9(0x128),a94_0x4c4d14[a94_0x28f2d9(0xf2)]=a94_0x28f2d9(0x105),a94_0x4c4d14['KEY_FILE_NAME']=a94_0x28f2d9(0x11e),a94_0x4c4d14[a94_0x28f2d9(0x136)]=a94_0x28f2d9(0x13b),a94_0x4c4d14['KEY_FILE_LEVEL']=a94_0x28f2d9(0x121),a94_0x4c4d14[a94_0x28f2d9(0xf9)]=a94_0x28f2d9(0x129),a94_0x4c4d14[a94_0x28f2d9(0x12e)]=0xa,a94_0x4c4d14['MAX_NESTED_STEP_DEPTH']=0x2;function a94_0x1585(_0x3e2f86,_0x13d33b){const _0x1a33e2=a94_0x1a33();return a94_0x1585=function(_0x158538,_0x276fb5){_0x158538=_0x158538-0xeb;let _0x402d7d=_0x1a33e2[_0x158538];return _0x402d7d;},a94_0x1585(_0x3e2f86,_0x13d33b);}const TestFrameworkConstants=a94_0x4c4d14;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a95_0x2e3aea=a95_0x27a8;function a95_0x27a8(_0x470e4b,_0x4aa76c){const _0x3ced1e=a95_0x3ced();return a95_0x27a8=function(_0x27a8bc,_0x26611d){_0x27a8bc=_0x27a8bc-0xaa;let _0x4cc59c=_0x3ced1e[_0x27a8bc];return _0x4cc59c;},a95_0x27a8(_0x470e4b,_0x4aa76c);}function a95_0x3ced(){const _0x3da6c7=['pop','../grpcClient','Tracked\x20cucumber\x20hook\x20event:\x20','parseCucumberTest','drrzN','test_run_id','KEY_AUTOMATE_SESSION_NAME','unknown','wzIZt','28869UsWscE','scopes','WNtoN','test','396496DxoqMC','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_EVENT_STARTED_AT','TEST','xTtuY','KEY_TEST_TAGS','KEY_EVENT_ENDED_AT','KEY_HOOK_FAILURE_TYPE','KEY_TEST_LOGS','KEY_HOOK_LAST_FINISHED','bMPgo','executionContext','\x20&\x20hookState=','KEY_TEST_UUID','KEY_TEST_NAME','trackEvent:\x20unsupported\x20testFrameworkState=','metdI','../../../helpers/classLogger.js','jjQVn','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','failure','body','aoZlE','getAllData','KEY_TEST_META','processPendingHooks','KEY_HOOKS_STARTED','uuid','ceil','removePendingHooks','hasPendingHooks','POST','../cliUtils.js','createContext','INIT_TEST','./constants/testFrameworkConstants.js','instance','KEY_TEST_CODE','KEY_TEST_STARTED_AT','name','\x20batch\x20','base64','zpQgt','debug','file_name','getTestDetails','getInstance','LkQEW','WjpqE','addMultipleEntries','KEY_TEST_FRAMEWORK_NAME','./testFramework','trackCucumberInstance','ojMfg','hooks','getCurrentInstanceName','KEY_TEST_ATTACHMENTS','readLogObjects','../state/testFrameworkState.js','tDvhp','KEY_HOOK_RESULT','finished_at','DEFAULT_HOOK_RESULT','rerun_name','createTestFrameworkEventPayload','\x20hookState:\x20','otogy','from','KEY_HOOK_ID','KkhLr','LOG_REPORT','nNPZW','getId','121704dTPZKE','get','KEY_CUSTOM_TAGS','storePendingHook','\x20&\x20hook\x20=\x20','setTrackedInstance','KEY_TEST_LOCATION','KEY_TEST_FAILURE_REASON','tags','format','\x20with\x20id\x20','testFrameworkName','KEY_TEST_SCOPE','oVlex','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','testData','VvjFg','testUUID','getRef','fJUla','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20\x20and\x20args\x20=\x20','getTestFrameworksVersions','pGeUn','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','HkfER','PRE','toISOString','sendLogCreatedEvent','NbixQ','218743UKQTjy','failure_reason','getProcessId','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','getTrackedInstance','pxkuD','KEY_TEST_FAILURE','19283210FUNhOV','hook_type','runHooks','ESlzA','length','browserstackPlatformIndex','hookState','KEY_TEST_ENDED_AT','\x20for\x20test:\x20','trackHookEvent','CucumberTestFramework','trackEvent','KEY_HOOKS_FINISHED','pLENU','location','nNzrx','DEFAULT_TEST_RESULT','exports','UnhandledError','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_SCOPES','1739232zuPZcY','logCreatedEvent','toString','endedAt','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','../../../helpers/helper.js','KEY_LOGS','KEY_TEST_FRAMEWORK_VERSION',',\x20storing\x20as\x20pending\x20hook','inspect','\x20payload=','error','hookData','KEY_TEST_RESULT_AT','started_at','eventJson','testFrameworkState','261527yWqgQp','args','KEY_TEST_RESULT','Cucumber\x20log\x20created\x20event','jiCKj','\x20and\x20args\x20=\x20','KEY_HOOK_NAME','startedAt','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','getCurrentHookState','addPendingHook','failed','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','getThreadId','setTestDetails','../instances/trackedInstance.js','createTestFrameworkEventPayload\x20testId:\x20','\x20with\x20result:\x20','finishedAt','code','KEY_HOOK_LOGS','split','160IMBlaZ',',\x20state=','meta','key','trackCucumberInstance:\x20saved\x20instance\x20contextId=','Parsed\x20cucumber\x20test:\x20','158adZXKk','xWIld',',\x20hookState:\x20','32UrWoje','platformIndex','push','parseCucumberTestResult','getTestFrameworks','NONE','getTestUUID','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','result','../TestInfo.js','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','\x20response=','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Stored\x20pending\x20hook\x20for\x20testId:\x20','getCurrentTestState','getPendingHooks','KEY_TEST_ID'];a95_0x3ced=function(){return _0x3da6c7;};return a95_0x3ced();}(function(_0x271979,_0x2b9b98){const _0x2ac596=a95_0x27a8,_0x1e3876=_0x271979();while(!![]){try{const _0x5732ee=-parseInt(_0x2ac596(0x11e))/0x1+-parseInt(_0x2ac596(0x13a))/0x2*(parseInt(_0x2ac596(0x158))/0x3)+-parseInt(_0x2ac596(0x15c))/0x4+-parseInt(_0x2ac596(0x134))/0x5*(parseInt(_0x2ac596(0xd3))/0x6)+parseInt(_0x2ac596(0xf1))/0x7*(parseInt(_0x2ac596(0x13d))/0x8)+parseInt(_0x2ac596(0x10d))/0x9+parseInt(_0x2ac596(0xf8))/0xa;if(_0x5732ee===_0x2b9b98)break;else _0x1e3876['push'](_0x1e3876['shift']());}catch(_0x51951e){_0x1e3876['push'](_0x1e3876['shift']());}}}(a95_0x3ced,0x745c1));const TestFramework=require(a95_0x2e3aea(0xbd)),TestFrameworkState=require(a95_0x2e3aea(0xc4)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a95_0x2e3aea(0x16d)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a95_0x2e3aea(0xaa)),TrackedInstance=require(a95_0x2e3aea(0x12d)),TestFrameworkConstants=require(a95_0x2e3aea(0xad)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x2e3aea(0x112)),logger=createClassLogger(a95_0x2e3aea(0x102)),{v4:uuidv4}=require('uuid'),util=require('util'),TestInfo=require(a95_0x2e3aea(0x147)),GrpcClient=require(a95_0x2e3aea(0x150));class CucumberTestFramework extends TestFramework{constructor(_0x2766d0,_0xd8f4e,_0x3338b5){super(_0x2766d0,_0xd8f4e,_0x3338b5);}async[a95_0x2e3aea(0x103)](_0x21bd03,_0x398e40,_0x40458e={}){const _0x49fb6b=a95_0x2e3aea,_0x5c0e6b={};_0x5c0e6b['ESlzA']='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x5c0e6b[_0x49fb6b(0xe6)]=function(_0x382ddd,_0x4a0500){return _0x382ddd===_0x4a0500;},_0x5c0e6b['zpQgt']=_0x49fb6b(0x148);const _0x2af495=_0x5c0e6b;await super[_0x49fb6b(0x103)](_0x21bd03,_0x398e40,_0x40458e);const _0x5b7cbe=this['resolveInstance'](_0x21bd03,_0x398e40,_0x40458e);if(!_0x5b7cbe){logger[_0x49fb6b(0xb5)](_0x2af495[_0x49fb6b(0xfb)]);return;}try{let _0x3b6c79,_0x67f8be;switch(_0x21bd03){case TestFrameworkState[_0x49fb6b(0x15f)]:_0x3b6c79=_0x40458e[_0x49fb6b(0x15b)],_0x67f8be=TestInfo[_0x49fb6b(0x143)](_0x3b6c79['id']);if(_0x2af495[_0x49fb6b(0xe6)](_0x398e40,HookState[_0x49fb6b(0xed)])){logger[_0x49fb6b(0xb5)](_0x49fb6b(0x111)+_0x3b6c79['id']);const _0x482bbc={};_0x482bbc[_0x49fb6b(0xe4)]=_0x67f8be,_0x482bbc[_0x49fb6b(0xe2)]=_0x3b6c79,_0x5b7cbe['addMultipleEntries'](this['parseCucumberTest'](_0x482bbc)),logger[_0x49fb6b(0xb5)](_0x49fb6b(0x145)+_0x3b6c79['id']),await this[_0x49fb6b(0x175)](_0x5b7cbe,_0x3b6c79['id']);}else{if(_0x2af495[_0x49fb6b(0xe6)](_0x398e40,HookState[_0x49fb6b(0x17b)])){const _0x29a9e9={};_0x29a9e9[_0x49fb6b(0xe4)]=_0x67f8be,_0x29a9e9['testData']=_0x3b6c79,_0x5b7cbe[_0x49fb6b(0xbb)](this[_0x49fb6b(0x140)](_0x29a9e9)),await this[_0x49fb6b(0x175)](_0x5b7cbe,_0x3b6c79['id']);}}break;case TestFrameworkState[_0x49fb6b(0xd0)]:_0x2af495['fJUla'](_0x398e40,HookState[_0x49fb6b(0x17b)])&&await this['sendLogCreatedEvent'](_0x5b7cbe,_0x21bd03,_0x40458e);break;default:if(CLIUtils['matchHookRegex'](_0x21bd03[_0x49fb6b(0x10f)]()[_0x49fb6b(0x133)]('.')[0x1])){const _0x569b06=await this[_0x49fb6b(0x101)](_0x5b7cbe,_0x21bd03,_0x398e40,_0x40458e);_0x5b7cbe[_0x49fb6b(0xbb)](_0x569b06);}else logger['debug'](_0x49fb6b(0x16b)+_0x21bd03+_0x49fb6b(0x168)+_0x398e40);break;}}catch(_0xe3998e){logger['error'](util[_0x49fb6b(0xdc)](_0x2af495[_0x49fb6b(0xb4)],_0x21bd03,_0x398e40,_0x40458e[_0x49fb6b(0xfc)],_0xe3998e));}_0x40458e[_0x49fb6b(0xae)]=_0x5b7cbe,await this[_0x49fb6b(0xfa)](_0x5b7cbe,_0x21bd03,_0x398e40,_0x40458e);}['resolveInstance'](_0x1dc67f,_0x8d7e48,_0x3667e5={}){const _0x390dd0=a95_0x2e3aea,_0x54332a={};_0x54332a[_0x390dd0(0x166)]=function(_0x4ca351,_0x449a73){return _0x4ca351===_0x449a73;};const _0x4596c7=_0x54332a;let _0x5a1f65=null;return(_0x4596c7['bMPgo'](_0x1dc67f,TestFrameworkState[_0x390dd0(0xac)])||_0x4596c7[_0x390dd0(0x166)](_0x1dc67f,TestFrameworkState[_0x390dd0(0x142)]))&&this[_0x390dd0(0xbe)](_0x1dc67f,_0x3667e5),_0x5a1f65=TestFramework[_0x390dd0(0xf5)](),_0x5a1f65;}[a95_0x2e3aea(0xbe)](_0xc19499,_0x4ac42f){const _0x107e83=a95_0x2e3aea,_0x57f038=CLIUtils[_0x107e83(0xc1)](),_0x41de6b=TrackedInstance[_0x107e83(0xab)](_0x57f038);let _0x427d71=null;logger[_0x107e83(0xb5)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x57f038+_0x107e83(0x135)+_0xc19499),_0x427d71=new TestFrameworkInstance(_0x41de6b,this[_0x107e83(0x141)](),this[_0x107e83(0xe9)](),_0xc19499,HookState[_0x107e83(0x142)]),TestFramework[_0x107e83(0xd8)](_0x41de6b,_0x427d71),logger[_0x107e83(0xb5)](_0x107e83(0x138)+_0x41de6b[_0x107e83(0xd2)]()+'\x20target='+_0x57f038);}[a95_0x2e3aea(0x152)](_0x411fa0){const _0x191946=a95_0x2e3aea,_0x557224={};_0x557224[_0x191946(0xec)]=_0x191946(0x144);const _0x57b3f2=_0x557224,{testUUID:_0x14ef25,testData:_0x47d152}=_0x411fa0;if(!_0x47d152||!_0x47d152[_0x191946(0x177)])return logger[_0x191946(0xb5)](_0x57b3f2['HkfER']),{};const _0x847f1c=_0x14ef25,_0x46be14=_0x47d152[_0x191946(0x177)],_0xad21f4=this['getTestFrameworks']()[0x0],_0x64c851=this[_0x191946(0xe9)](),_0x2a6780={[TestFrameworkConstants[_0x191946(0xbc)]]:_0xad21f4,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x64c851[_0xad21f4],[TestFrameworkConstants[_0x191946(0x164)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x191946(0x176)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x847f1c,[TestFrameworkConstants[_0x191946(0x120)]]:TestFrameworkConstants[_0x191946(0x108)],[TestFrameworkConstants[_0x191946(0x155)]]:_0x47d152['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x47d152[_0x191946(0xb6)]||'',[TestFrameworkConstants[_0x191946(0x14e)]]:_0x46be14,[TestFrameworkConstants[_0x191946(0x16a)]]:_0x47d152[_0x191946(0xb1)]||'',[TestFrameworkConstants[_0x191946(0xd9)]]:_0x47d152[_0x191946(0x106)]||'',[TestFrameworkConstants[_0x191946(0xaf)]]:_0x47d152[_0x191946(0x171)]?.[_0x191946(0x131)]||null,[TestFrameworkConstants[_0x191946(0x161)]]:_0x47d152[_0x191946(0xdb)]||[],[TestFrameworkConstants[_0x191946(0xb0)]]:_0x47d152[_0x191946(0x125)]||new Date()[_0x191946(0xee)](),[TestFrameworkConstants[_0x191946(0xdf)]]:_0x47d152[_0x191946(0x159)]?.[0x0]||'',[TestFrameworkConstants[_0x191946(0x10c)]]:_0x47d152[_0x191946(0x159)]||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x47d152['customRerunParam']?.[_0x191946(0xc9)]||_0x47d152[_0x191946(0xb1)]||'',[TestFrameworkConstants[_0x191946(0xd5)]]:{},[TestFrameworkConstants[_0x191946(0x174)]]:_0x47d152[_0x191946(0x136)]||{}};TestInfo[_0x191946(0x12c)](_0x46be14,_0x2a6780),logger['debug'](_0x191946(0x139)+_0x47d152[_0x191946(0xb1)]+'\x20with\x20UUID:\x20'+_0x847f1c);const _0x43c1bb={};return _0x43c1bb[_0x46be14]=_0x2a6780,_0x43c1bb;}[a95_0x2e3aea(0x140)](_0x570ac2){const _0x16eb17=a95_0x2e3aea,_0x225ca8={'xWIld':_0x16eb17(0x12a),'aoZlE':_0x16eb17(0x156),'drrzN':function(_0x26cdcb,_0x3ceb9d){return _0x26cdcb===_0x3ceb9d;},'NbixQ':_0x16eb17(0x129),'jjQVn':_0x16eb17(0x10a),'VbZSF':function(_0x659253,_0x530faa,_0x39d9d3){return _0x659253(_0x530faa,_0x39d9d3);},'dNgSk':function(_0x8f4b5e,_0x1eff42){return _0x8f4b5e>_0x1eff42;},'LkQEW':function(_0x39f0c9,_0x31d86c){return _0x39f0c9>_0x31d86c;}},{testUUID:_0x2aefbf,testData:_0x17cb2b}=_0x570ac2;if(!_0x17cb2b||!_0x17cb2b[_0x16eb17(0x177)])return logger['debug'](_0x225ca8[_0x16eb17(0x13b)]),{};const _0x443cfd=this['resolveInstance'](TestFrameworkState[_0x16eb17(0x15f)],HookState[_0x16eb17(0x17b)]),_0x394b5a=_0x17cb2b['uuid'],_0x2a72c5=TestInfo[_0x16eb17(0xb7)](_0x394b5a)||{},_0x26d951=_0x2a72c5?_0x2a72c5[TestFrameworkConstants[_0x16eb17(0xd5)]]||{}:{},_0x44b83c={..._0x2a72c5,[TestFrameworkConstants[_0x16eb17(0x120)]]:_0x17cb2b[_0x16eb17(0x146)]||_0x225ca8[_0x16eb17(0x172)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x17cb2b[_0x16eb17(0x130)]||new Date()[_0x16eb17(0xee)](),[TestFrameworkConstants[_0x16eb17(0x11a)]]:new Date()[_0x16eb17(0xee)](),[TestFrameworkConstants[_0x16eb17(0xd5)]]:_0x26d951,[TestFrameworkConstants[_0x16eb17(0x113)]]:[],[TestFrameworkConstants[_0x16eb17(0x174)]]:_0x17cb2b[_0x16eb17(0x136)]||{}};_0x225ca8[_0x16eb17(0x153)](_0x17cb2b['result'],_0x225ca8[_0x16eb17(0xf0)])&&_0x17cb2b[_0x16eb17(0x170)]&&(_0x44b83c[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x17cb2b['failure_type']||_0x225ca8[_0x16eb17(0x16e)],_0x44b83c[TestFrameworkConstants[_0x16eb17(0xda)]]=_0x17cb2b[_0x16eb17(0xf2)]||'',_0x44b83c[TestFrameworkConstants[_0x16eb17(0xf7)]]=_0x17cb2b[_0x16eb17(0x170)]);const _0x357428=TestInfo[_0x16eb17(0xb7)](_0x394b5a)[TestFrameworkConstants[_0x16eb17(0xc2)]]||{},_0x27a446=_0x225ca8['VbZSF'](getManualUploadLogs,_0x357428,_0x443cfd[_0x16eb17(0x173)]()[_0x16eb17(0xd4)](_0x394b5a)[TestFrameworkConstants[_0x16eb17(0x169)]]);if(_0x225ca8['dNgSk'](_0x27a446['length'],0x0)){const _0x3f3e6e=_0x44b83c[TestFrameworkConstants['KEY_LOGS']]||[];_0x44b83c[TestFrameworkConstants['KEY_LOGS']]=[..._0x3f3e6e,..._0x27a446];}_0x17cb2b[_0x16eb17(0xc0)]&&_0x225ca8[_0x16eb17(0xb9)](_0x17cb2b[_0x16eb17(0xc0)][_0x16eb17(0xfc)],0x0)&&(_0x44b83c[TestFrameworkConstants[_0x16eb17(0x104)]]=_0x17cb2b[_0x16eb17(0xc0)]);TestInfo['setTestDetails'](_0x394b5a,_0x44b83c),logger[_0x16eb17(0xb5)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x17cb2b[_0x16eb17(0xb1)]+_0x16eb17(0x12f)+_0x17cb2b[_0x16eb17(0x146)]);const _0x58d6c6={};return _0x58d6c6[_0x394b5a]=_0x44b83c,_0x58d6c6;}async[a95_0x2e3aea(0x101)](_0x182b68,_0x53758a,_0x1a4374,_0x8e8593){const _0x5b1a91=a95_0x2e3aea,_0x117a1f={'Jparo':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','xTtuY':function(_0x3eed1f){return _0x3eed1f();},'ojMfg':function(_0x5c42a2,_0x3c90b9){return _0x5c42a2 in _0x3c90b9;},'WjpqE':function(_0x10a613,_0x2145d3){return _0x10a613 in _0x2145d3;},'oVlex':function(_0x3a8348,_0x46155a){return _0x3a8348===_0x46155a;},'LXKrB':function(_0x2a6be3,_0x3791bd){return _0x2a6be3===_0x3791bd;},'pxkuD':function(_0x51637d,_0x292fb6){return _0x51637d>_0x292fb6;},'tDvhp':_0x5b1a91(0x129),'jiCKj':_0x5b1a91(0x10a),'pGeUn':'passed','KkhLr':function(_0x3048a4,_0x3d4d8b){return _0x3048a4!==_0x3d4d8b;}},{hookData:_0x41e3b6}=_0x8e8593;if(!_0x41e3b6)return logger[_0x5b1a91(0xb5)](_0x117a1f['Jparo']),{};const _0x3995d1=_0x41e3b6[_0x5b1a91(0x177)]||_0x117a1f[_0x5b1a91(0x160)](uuidv4),_0x391a13=_0x41e3b6['test_run_id'],_0x43f5c8=_0x53758a['toString']()[_0x5b1a91(0x133)]('.')[0x1],_0x23ce45=TestInfo['getTestDetails'](_0x391a13)[TestFrameworkConstants[_0x5b1a91(0xd5)]]||{},_0x171f22=_0x182b68[_0x5b1a91(0x173)]()[_0x5b1a91(0xd4)](_0x391a13);if(!_0x171f22)return logger[_0x5b1a91(0xb5)](_0x5b1a91(0xe1)+_0x391a13+_0x5b1a91(0x115)),this[_0x5b1a91(0xd6)](_0x182b68,_0x391a13,_0x53758a,_0x1a4374,_0x8e8593),{};let _0xce1c76=_0x171f22[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0xce1c76&&(_0xce1c76={});!_0x117a1f[_0x5b1a91(0xbf)](_0x43f5c8,_0xce1c76)&&(_0xce1c76[_0x43f5c8]=[]);let _0x280aea=_0x171f22[TestFrameworkConstants[_0x5b1a91(0x104)]];!_0x280aea&&(_0x280aea={});!_0x117a1f[_0x5b1a91(0xba)](_0x43f5c8,_0x280aea)&&(_0x280aea[_0x43f5c8]=[]);const _0x395dcc={[TestFrameworkConstants[_0x5b1a91(0x176)]]:_0xce1c76,[TestFrameworkConstants[_0x5b1a91(0x104)]]:_0x280aea},_0x3ad81f={};_0x3ad81f[_0x391a13]=_0x395dcc;const _0x2e8411=_0x3ad81f;if(_0x117a1f['oVlex'](_0x1a4374,HookState[_0x5b1a91(0xed)])){const _0x194860={[TestFrameworkConstants[_0x5b1a91(0xce)]]:_0x3995d1,[TestFrameworkConstants[_0x5b1a91(0xc6)]]:TestFrameworkConstants[_0x5b1a91(0xc8)],[TestFrameworkConstants[_0x5b1a91(0x15e)]]:_0x41e3b6[_0x5b1a91(0x11b)],[TestFrameworkConstants[_0x5b1a91(0x132)]]:[],[TestFrameworkConstants[_0x5b1a91(0x124)]]:_0x41e3b6[_0x5b1a91(0xb1)]||_0x41e3b6[_0x5b1a91(0xf9)],[TestFrameworkConstants[_0x5b1a91(0xd5)]]:_0x23ce45};_0x194860[_0x5b1a91(0x137)]=_0x43f5c8;const _0x10a5cb=_0x194860;_0xce1c76[_0x43f5c8][_0x5b1a91(0x13f)](_0x10a5cb),_0x2e8411[_0x391a13][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x43f5c8,logger[_0x5b1a91(0xb5)](_0x5b1a91(0x126)+_0x43f5c8+_0x5b1a91(0xd7)+_0x10a5cb+_0x5b1a91(0xe8)+_0x8e8593);}else{if(_0x117a1f['LXKrB'](_0x1a4374,HookState[_0x5b1a91(0x17b)])){const _0x359c66=_0x41e3b6['result'],_0x7fd43d=_0xce1c76[_0x43f5c8]||[];logger['debug'](_0x5b1a91(0x15d)+_0x7fd43d+_0x5b1a91(0x123)+_0x8e8593);if(_0x117a1f[_0x5b1a91(0xf6)](_0x7fd43d[_0x5b1a91(0xfc)],0x0)){const _0x17b9b6=_0x7fd43d[_0x5b1a91(0x14f)]();_0x117a1f[_0x5b1a91(0xe0)](_0x41e3b6[_0x5b1a91(0x146)],_0x117a1f[_0x5b1a91(0xc5)])&&_0x41e3b6['failure_data']?(_0x17b9b6[TestFrameworkConstants[_0x5b1a91(0x163)]]=_0x41e3b6['failure_type']||_0x117a1f[_0x5b1a91(0x122)],_0x17b9b6[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x41e3b6[_0x5b1a91(0xf2)]||'',_0x17b9b6[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x41e3b6['failure_data']):_0x17b9b6[TestFrameworkConstants[_0x5b1a91(0xc6)]]=_0x117a1f[_0x5b1a91(0xea)];_0x117a1f[_0x5b1a91(0xcf)](_0x359c66,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x17b9b6[TestFrameworkConstants[_0x5b1a91(0xc6)]]=_0x359c66);_0x17b9b6[TestFrameworkConstants[_0x5b1a91(0x162)]]=_0x41e3b6[_0x5b1a91(0xc7)]||new Date()[_0x5b1a91(0xee)](),_0x17b9b6[TestFrameworkConstants[_0x5b1a91(0xd5)]]=_0x23ce45;const _0x5c2c57=_0x17b9b6[TestFrameworkConstants[_0x5b1a91(0xce)]];!_0x280aea[_0x43f5c8]&&(_0x280aea[_0x43f5c8]=[]),_0x280aea[_0x43f5c8][_0x5b1a91(0x13f)](_0x17b9b6),_0x2e8411[_0x391a13][TestFrameworkConstants[_0x5b1a91(0x165)]]=_0x43f5c8;}}}return logger[_0x5b1a91(0xb5)](_0x5b1a91(0x151)+_0x41e3b6[_0x5b1a91(0xf9)]+_0x5b1a91(0xdd)+_0x3995d1+_0x5b1a91(0x100)+_0x391a13),_0x2e8411;}[a95_0x2e3aea(0xca)](_0x12b01f){const _0x1f6198=a95_0x2e3aea,_0x2999bb={};_0x2999bb[_0x1f6198(0x107)]=_0x1f6198(0xb3);const _0x4e1bf0=_0x2999bb;try{const _0x2e4075=_0x12b01f[_0x1f6198(0x15b)]?_0x12b01f[_0x1f6198(0x15b)]['id']:_0x12b01f[_0x1f6198(0x119)][_0x1f6198(0x154)],_0x5026de=_0x12b01f[_0x1f6198(0xae)],_0x5c7b5e=_0x5026de['getContext'](),_0x2e4bf5=_0x5026de[_0x1f6198(0x173)]()['get'](_0x2e4075);if(!_0x2e4bf5)return logger[_0x1f6198(0xb5)](_0x1f6198(0x14a)+_0x2e4075),{};logger[_0x1f6198(0xb5)](_0x1f6198(0x12e)+_0x2e4075);const {[TestFrameworkConstants[_0x1f6198(0xbc)]]:_0x258fc7='',[TestFrameworkConstants[_0x1f6198(0x114)]]:_0x563ee0='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x20be2b='',[TestFrameworkConstants[_0x1f6198(0xff)]]:_0x265e77=''}=_0x2e4bf5,_0x30fd1f=_0x5026de[_0x1f6198(0x14c)]()[_0x1f6198(0x10f)]()['split']('.')[0x1],_0x157247=_0x5026de[_0x1f6198(0x127)]()[_0x1f6198(0x10f)]()[_0x1f6198(0x133)]('.')[0x1],_0xf450e5=global?.[_0x1f6198(0xfd)]??0x0,_0x30564e=_0x5026de[_0x1f6198(0xe5)](),_0x2edb61=Buffer[_0x1f6198(0xcd)](JSON['stringify'](_0x2e4bf5))[_0x1f6198(0x10f)](_0x4e1bf0[_0x1f6198(0x107)]),_0x45e64d={'hash':_0x5c7b5e['getId'](),'threadId':_0x5c7b5e[_0x1f6198(0x12b)]()['toString'](),'processId':_0x5c7b5e[_0x1f6198(0xf3)]()['toString']()},_0x5ab733={};_0x5ab733[_0x1f6198(0x13e)]=_0xf450e5,_0x5ab733[_0x1f6198(0xde)]=_0x258fc7,_0x5ab733['testFrameworkVersion']=_0x563ee0,_0x5ab733[_0x1f6198(0x11d)]=_0x30fd1f,_0x5ab733[_0x1f6198(0xfe)]=_0x157247,_0x5ab733['startedAt']=_0x20be2b,_0x5ab733[_0x1f6198(0x110)]=_0x265e77,_0x5ab733['uuid']=_0x30564e,_0x5ab733[_0x1f6198(0x11c)]=_0x2edb61,_0x5ab733[_0x1f6198(0x167)]=_0x45e64d;const _0x1517c6=_0x5ab733;return logger[_0x1f6198(0xb5)](_0x1f6198(0xf4)+_0x2e4075+'\x20testState:\x20'+_0x30fd1f+_0x1f6198(0xcb)+_0x157247),_0x1517c6;}catch(_0x1a6368){return logger['error']('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x1f6198(0xdc)](_0x1a6368)),{};}}async[a95_0x2e3aea(0xef)](_0x4d4b1b,_0x27e356,_0x47861d){const _0x350f11=a95_0x2e3aea,_0x1d6041={'pLENU':function(_0x59dc8a,_0x5acd9b,_0x551f13){return _0x59dc8a(_0x5acd9b,_0x551f13);},'dFCMY':function(_0x5a471d,_0xe365e){return _0x5a471d===_0xe365e;},'rOUbw':_0x350f11(0x16f),'metdI':function(_0x419058,_0x569376){return _0x419058/_0x569376;},'otogy':function(_0x3c5ffe,_0xca27c0){return _0x3c5ffe<_0xca27c0;},'WNtoN':function(_0x23ec04,_0x288949){return _0x23ec04*_0x288949;},'VvjFg':function(_0xaa0a38,_0x423ddb){return _0xaa0a38+_0x423ddb;},'nNPZW':function(_0x2a75d2,_0x5b7d4d){return _0x2a75d2+_0x5b7d4d;},'oJQfA':_0x350f11(0x121)};try{const _0x3c90cb=_0x47861d['testUUID'],_0x35924e=_0x4d4b1b['getAllData']()[_0x350f11(0xd4)](_0x3c90cb),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x21a8a1='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x3530f0=''}=_0x35924e,_0x2e54c3=TestInfo[_0x350f11(0xc3)](_0x3c90cb),_0x2e16bb=TestInfo[_0x350f11(0xb7)](_0x3c90cb)[TestFrameworkConstants[_0x350f11(0xc2)]]||{},_0x15e28c=_0x1d6041[_0x350f11(0x105)](getMediaArtifactsLogs,_0x2e16bb,_0x4d4b1b['getAllData']()[_0x350f11(0xd4)](_0x3c90cb)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x23d503=(_0x2e54c3||[])['concat'](_0x15e28c||[]);if(!_0x23d503||_0x1d6041['dFCMY'](_0x23d503[_0x350f11(0xfc)],0x0)){logger['debug'](_0x1d6041['rOUbw']);return;}const _0xb7d137=0x28,_0x519b73=Math[_0x350f11(0x178)](_0x1d6041[_0x350f11(0x16c)](_0x23d503[_0x350f11(0xfc)],_0xb7d137));for(let _0x568be0=0x0;_0x1d6041[_0x350f11(0xcc)](_0x568be0,_0x519b73);_0x568be0++){const _0x122046=_0x1d6041[_0x350f11(0x15a)](_0x568be0,_0xb7d137),_0x380b41=_0x1d6041[_0x350f11(0xe3)](_0x122046,_0xb7d137),_0x4fd142=_0x23d503['slice'](_0x122046,_0x380b41),_0x561207={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x4fd142,'testFrameworkName':_0x21a8a1,'testFrameworkVersion':_0x3530f0,'testFrameworkState':_0x27e356[_0x350f11(0x10f)]()[_0x350f11(0x133)]('.')[0x1]};logger['debug'](_0x350f11(0x10b)+_0x3c90cb+_0x350f11(0xb2)+_0x1d6041['VvjFg'](_0x568be0,0x1)+'/'+_0x519b73+_0x350f11(0x117)+util[_0x350f11(0x116)](_0x561207));const _0x21b7d0=await GrpcClient[_0x350f11(0xb8)]()[_0x350f11(0x10e)](_0x561207);logger['debug'](_0x350f11(0x10b)+_0x3c90cb+_0x350f11(0xb2)+_0x1d6041[_0x350f11(0xd1)](_0x568be0,0x1)+'/'+_0x519b73+_0x350f11(0x149)+util[_0x350f11(0x116)](_0x21b7d0));}}catch(_0x5ef9ff){logger[_0x350f11(0x118)](_0x350f11(0xe7)+util[_0x350f11(0xdc)](_0x5ef9ff));}logger[_0x350f11(0xb5)](_0x1d6041['oJQfA']);}[a95_0x2e3aea(0xd6)](_0x399059,_0x248132,_0x2b060d,_0x3f2a81,_0x1f9f13){const _0x20f0df=a95_0x2e3aea,_0x3f42c1={'testId':_0x248132,'testFrameworkState':_0x2b060d,'hookState':_0x3f2a81,'args':_0x1f9f13,'timestamp':new Date()[_0x20f0df(0xee)]()};_0x399059[_0x20f0df(0x128)](_0x248132,_0x3f42c1),logger['debug'](_0x20f0df(0x14b)+_0x248132+',\x20state:\x20'+_0x2b060d+_0x20f0df(0x13c)+_0x3f2a81);}async[a95_0x2e3aea(0x175)](_0x32dd1f,_0x3556de){const _0x5d9a55=a95_0x2e3aea,_0x37214f={};_0x37214f[_0x5d9a55(0x157)]=function(_0xfd2e65,_0x16552f){return _0xfd2e65>_0x16552f;};const _0x3c08cc=_0x37214f;if(!_0x32dd1f[_0x5d9a55(0x17a)](_0x3556de))return;const _0x5a3cde=_0x32dd1f[_0x5d9a55(0x14d)](_0x3556de);logger['debug']('Processing\x20'+_0x5a3cde[_0x5d9a55(0xfc)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x3556de);for(const _0x154308 of _0x5a3cde){try{const _0x4f6b27=await this[_0x5d9a55(0x101)](_0x32dd1f,_0x154308[_0x5d9a55(0x11d)],_0x154308[_0x5d9a55(0xfe)],_0x154308[_0x5d9a55(0x11f)]);_0x4f6b27&&_0x3c08cc[_0x5d9a55(0x157)](Object['keys'](_0x4f6b27)[_0x5d9a55(0xfc)],0x0)&&_0x32dd1f[_0x5d9a55(0xbb)](_0x4f6b27),await this[_0x5d9a55(0xfa)](_0x32dd1f,_0x154308[_0x5d9a55(0x11d)],_0x154308[_0x5d9a55(0xfe)],_0x154308[_0x5d9a55(0x11f)]);}catch(_0x5186e5){logger[_0x5d9a55(0x118)](_0x5d9a55(0xeb)+_0x3556de+',\x20error:\x20'+_0x5186e5);}}_0x32dd1f[_0x5d9a55(0x179)](_0x3556de),logger[_0x5d9a55(0xb5)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x3556de);}}module[a95_0x2e3aea(0x109)]=CucumberTestFramework;
1
+ const a95_0x297e12=a95_0x2598;function a95_0x2555(){const _0x298824=['scopes','2ClSCCP','AKALg','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_RESULT','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','UEShe','keys','toString','\x20\x20and\x20args\x20=\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getTrackedInstance','Stored\x20pending\x20hook\x20for\x20testId:\x20','createTestFrameworkEventPayload\x20testId:\x20','KEY_LOGS','DEFAULT_HOOK_RESULT','platformIndex','KEY_TEST_FAILURE_REASON','../state/hookState.js','maLQq','failure','YtTAy','5963380FUYQYy','getTestFrameworksVersions','../../../helpers/classLogger.js',',\x20error:\x20','finishedAt','KEY_TEST_LOCATION','runHooks','KEY_HOOK_NAME','716609HHVGtN','exports','KEY_TEST_TAGS','NONE','Processing\x20','WItUe','\x20with\x20UUID:\x20','meta','testData','hookData','\x20and\x20args\x20=\x20','\x20with\x20id\x20','qQqQc','CDuCw','trackCucumberInstance','failure_data','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','./constants/testFrameworkConstants.js','Lfcpj','split','getAllData',',\x20state:\x20','pop','KEY_HOOKS_FINISHED',',\x20storing\x20as\x20pending\x20hook','DEFAULT_TEST_RESULT','KEY_TEST_META','testFrameworkState','failure_reason','getTestUUID','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','from','NFPhv','setTrackedInstance','readLogObjects','ceil','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','CucumberTestFramework','util','sendLogCreatedEvent','length','KEY_TEST_UUID','1707096uYZWMs','location','KEY_TEST_FRAMEWORK_VERSION','yRynx','hooks','\x20batch\x20','trackHookEvent','Updated\x20cucumber\x20test\x20result:\x20','KEY_TEST_ENDED_AT','name','debug','resolveInstance','../TestInfo.js','browserstackPlatformIndex','inspect','startedAt','getCurrentTestState','3562551qzJODG','hook_type','KEY_HOOK_LOGS','KEY_EVENT_STARTED_AT','getThreadId','rerun_name','toISOString','qlRiS','KEY_TEST_RERUN_NAME','test','../state/testFrameworkState.js','ctfoP','XNYJR','hpTOL','bXCjP','testUUID','createTestFrameworkEventPayload','KEY_TEST_NAME','getTestDetails','base64','getId','UHKFs','getRef','560FMYMOw','sendLogCreatedEvent:\x20for\x20testId:\x20','../instances/trackedInstance.js','KEY_HOOK_FAILURE_REASON','error','trackCucumberInstance:\x20saved\x20instance\x20contextId=','WfYqK','get','removePendingHooks','result','53207iYwSAI','\x20target=','INIT_TEST','processPendingHooks','../../../helpers/helper.js','\x20&\x20hookState=','495648jGNXmn','NxaVv','KEY_HOOK_FAILURE','getTestFrameworks','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_FAILURE','addMultipleEntries','ouIat','failure_type','KEY_CUSTOM_TAGS','finished_at','matchHookRegex','createContext','getContext','\x20pending\x20hooks\x20for\x20testId:\x20','getCurrentInstanceName','hookState','eventJson','file_name','storePendingHook','kAjvo','GHXVV','trackEvent:\x20unsupported\x20testFrameworkState=','executionContext','PRE','args','5uLHLTp','trackEvent','started_at','setTestDetails','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_ID','SzmkO','concat','\x20testState:\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','unknown','KEY_TEST_ATTACHMENTS','code','uuid','../cliUtils.js','stringify','parseCucumberTestResult','UnhandledError','parseCucumberTest','KEY_HOOK_RESULT','KEY_TEST_CODE','KEY_EVENT_ENDED_AT','VihPy','getCurrentHookState','instance','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','passed','bpExz','BYpTN','BGvXa','KEY_HOOK_ID','./testFramework','KEY_TEST_FRAMEWORK_NAME','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','Parsed\x20cucumber\x20test:\x20','aQetb','Error\x20in\x20createTestFrameworkEventPayload:\x20','2556200WAcyKl','format','LOG_REPORT','../instances/testFrameworkInstance.js','KEY_TEST_RESULT_AT','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','logCreatedEvent','UofqO','TEST','POST','push','key','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testFrameworkVersion','getPendingHooks','body','tags','KEY_HOOKS_STARTED','failed','KEY_TEST_STARTED_AT','\x20response='];a95_0x2555=function(){return _0x298824;};return a95_0x2555();}(function(_0x3c499a,_0x358e96){const _0x4cefbb=a95_0x2598,_0x2192ea=_0x3c499a();while(!![]){try{const _0x56eb3e=-parseInt(_0x4cefbb(0x194))/0x1*(-parseInt(_0x4cefbb(0x24b))/0x2)+-parseInt(_0x4cefbb(0x1be))/0x3+parseInt(_0x4cefbb(0x235))/0x4*(parseInt(_0x4cefbb(0x210))/0x5)+parseInt(_0x4cefbb(0x1f6))/0x6+parseInt(_0x4cefbb(0x1f0))/0x7*(-parseInt(_0x4cefbb(0x1e6))/0x8)+-parseInt(_0x4cefbb(0x1cf))/0x9+parseInt(_0x4cefbb(0x18c))/0xa;if(_0x56eb3e===_0x358e96)break;else _0x2192ea['push'](_0x2192ea['shift']());}catch(_0x148afa){_0x2192ea['push'](_0x2192ea['shift']());}}}(a95_0x2555,0x83440));const TestFramework=require(a95_0x297e12(0x22f)),TestFrameworkState=require(a95_0x297e12(0x1d9)),HookState=require(a95_0x297e12(0x188)),{createClassLogger}=require(a95_0x297e12(0x18e)),TestFrameworkInstance=require(a95_0x297e12(0x238)),CLIUtils=require(a95_0x297e12(0x21e)),TrackedInstance=require(a95_0x297e12(0x1e8)),TestFrameworkConstants=require(a95_0x297e12(0x1a5)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x297e12(0x1f4)),logger=createClassLogger(a95_0x297e12(0x1b9)),{v4:uuidv4}=require(a95_0x297e12(0x21d)),util=require(a95_0x297e12(0x1ba)),TestInfo=require(a95_0x297e12(0x1ca)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x54ba2d,_0x352088,_0xf44679){super(_0x54ba2d,_0x352088,_0xf44679);}async[a95_0x297e12(0x211)](_0x2d04d1,_0x28837e,_0x1abf40={}){const _0x4337f9=a95_0x297e12,_0x3d78e9={};_0x3d78e9[_0x4337f9(0x1dc)]=_0x4337f9(0x254),_0x3d78e9['UofqO']=function(_0x151a0a,_0x21d3dc){return _0x151a0a===_0x21d3dc;},_0x3d78e9[_0x4337f9(0x1a1)]=function(_0x33fa0b,_0xa264aa){return _0x33fa0b===_0xa264aa;},_0x3d78e9[_0x4337f9(0x20b)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x59862c=_0x3d78e9;await super['trackEvent'](_0x2d04d1,_0x28837e,_0x1abf40);const _0x48c90f=this[_0x4337f9(0x1c9)](_0x2d04d1,_0x28837e,_0x1abf40);if(!_0x48c90f){logger[_0x4337f9(0x1c8)](_0x59862c[_0x4337f9(0x1dc)]);return;}try{let _0x2d3006,_0x129d4d;switch(_0x2d04d1){case TestFrameworkState['TEST']:_0x2d3006=_0x1abf40[_0x4337f9(0x1d8)],_0x129d4d=TestInfo[_0x4337f9(0x1b1)](_0x2d3006['id']);if(_0x59862c[_0x4337f9(0x23c)](_0x28837e,HookState['PRE'])){logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2d3006['id']);const _0x3bbe03={};_0x3bbe03[_0x4337f9(0x1de)]=_0x129d4d,_0x3bbe03[_0x4337f9(0x19c)]=_0x2d3006,_0x48c90f[_0x4337f9(0x1fc)](this[_0x4337f9(0x222)](_0x3bbe03)),logger[_0x4337f9(0x1c8)](_0x4337f9(0x231)+_0x2d3006['id']),await this[_0x4337f9(0x1f3)](_0x48c90f,_0x2d3006['id']);}else{if(_0x59862c[_0x4337f9(0x1a1)](_0x28837e,HookState[_0x4337f9(0x23e)])){const _0x56bcf0={};_0x56bcf0[_0x4337f9(0x1de)]=_0x129d4d,_0x56bcf0[_0x4337f9(0x19c)]=_0x2d3006,_0x48c90f[_0x4337f9(0x1fc)](this[_0x4337f9(0x220)](_0x56bcf0)),await this[_0x4337f9(0x1f3)](_0x48c90f,_0x2d3006['id']);}}break;case TestFrameworkState[_0x4337f9(0x237)]:_0x59862c['CDuCw'](_0x28837e,HookState[_0x4337f9(0x23e)])&&await this[_0x4337f9(0x1bb)](_0x48c90f,_0x2d04d1,_0x1abf40);break;default:if(CLIUtils[_0x4337f9(0x201)](_0x2d04d1[_0x4337f9(0x252)]()[_0x4337f9(0x1a7)]('.')[0x1])){const _0x50c15b=await this[_0x4337f9(0x1c4)](_0x48c90f,_0x2d04d1,_0x28837e,_0x1abf40);_0x48c90f['addMultipleEntries'](_0x50c15b);}else logger[_0x4337f9(0x1c8)](_0x4337f9(0x20c)+_0x2d04d1+_0x4337f9(0x1f5)+_0x28837e);break;}}catch(_0x22997c){logger[_0x4337f9(0x1ea)](util[_0x4337f9(0x236)](_0x59862c[_0x4337f9(0x20b)],_0x2d04d1,_0x28837e,_0x1abf40[_0x4337f9(0x1bc)],_0x22997c));}_0x1abf40[_0x4337f9(0x228)]=_0x48c90f,await this[_0x4337f9(0x192)](_0x48c90f,_0x2d04d1,_0x28837e,_0x1abf40);}[a95_0x297e12(0x1c9)](_0x95c172,_0x1f3ffb,_0x1458a5={}){const _0x20fc17=a95_0x297e12,_0x34f8dd={};_0x34f8dd[_0x20fc17(0x24c)]=function(_0x55d730,_0x9f9e03){return _0x55d730===_0x9f9e03;},_0x34f8dd[_0x20fc17(0x1a6)]=function(_0x1acf94,_0xdc7a33){return _0x1acf94===_0xdc7a33;};const _0x420c14=_0x34f8dd;let _0xc5bebb=null;return(_0x420c14[_0x20fc17(0x24c)](_0x95c172,TestFrameworkState[_0x20fc17(0x1f2)])||_0x420c14[_0x20fc17(0x1a6)](_0x95c172,TestFrameworkState[_0x20fc17(0x197)]))&&this[_0x20fc17(0x1a2)](_0x95c172,_0x1458a5),_0xc5bebb=TestFramework[_0x20fc17(0x181)](),_0xc5bebb;}['trackCucumberInstance'](_0x256e7c,_0x35f98e){const _0x3335b3=a95_0x297e12,_0x48fb40=CLIUtils[_0x3335b3(0x205)](),_0x13b90b=TrackedInstance[_0x3335b3(0x202)](_0x48fb40);let _0x33d32e=null;logger[_0x3335b3(0x1c8)](_0x3335b3(0x219)+_0x48fb40+',\x20state='+_0x256e7c),_0x33d32e=new TestFrameworkInstance(_0x13b90b,this[_0x3335b3(0x1f9)](),this[_0x3335b3(0x18d)](),_0x256e7c,HookState[_0x3335b3(0x197)]),TestFramework[_0x3335b3(0x1b5)](_0x13b90b,_0x33d32e),logger[_0x3335b3(0x1c8)](_0x3335b3(0x1eb)+_0x13b90b[_0x3335b3(0x1e3)]()+_0x3335b3(0x1f1)+_0x48fb40);}[a95_0x297e12(0x222)](_0x2bfa37){const _0x2a238f=a95_0x297e12,_0x3338ca={};_0x3338ca['SzmkO']=_0x2a238f(0x214);const _0x50c140=_0x3338ca,{testUUID:_0x32cdd2,testData:_0x494311}=_0x2bfa37;if(!_0x494311||!_0x494311[_0x2a238f(0x21d)])return logger[_0x2a238f(0x1c8)](_0x50c140[_0x2a238f(0x216)]),{};const _0x21ea20=_0x32cdd2,_0x5e0138=_0x494311[_0x2a238f(0x21d)],_0x5f2d4d=this[_0x2a238f(0x1f9)]()[0x0],_0x3163fe=this['getTestFrameworksVersions'](),_0x50a4af={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x5f2d4d,[TestFrameworkConstants[_0x2a238f(0x1c0)]]:_0x3163fe[_0x5f2d4d],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x2a238f(0x1ab)]]:{},[TestFrameworkConstants[_0x2a238f(0x246)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x21ea20,[TestFrameworkConstants[_0x2a238f(0x24e)]]:TestFrameworkConstants[_0x2a238f(0x1ad)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x494311[_0x2a238f(0x1c7)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x494311[_0x2a238f(0x208)]||'',[TestFrameworkConstants[_0x2a238f(0x215)]]:_0x5e0138,[TestFrameworkConstants[_0x2a238f(0x1e0)]]:_0x494311[_0x2a238f(0x1c7)]||'',[TestFrameworkConstants[_0x2a238f(0x191)]]:_0x494311[_0x2a238f(0x1bf)]||'',[TestFrameworkConstants[_0x2a238f(0x224)]]:_0x494311[_0x2a238f(0x244)]?.[_0x2a238f(0x21c)]||null,[TestFrameworkConstants[_0x2a238f(0x196)]]:_0x494311[_0x2a238f(0x245)]||[],[TestFrameworkConstants[_0x2a238f(0x248)]]:_0x494311[_0x2a238f(0x1cd)]||new Date()[_0x2a238f(0x1d5)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x494311[_0x2a238f(0x24a)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x494311[_0x2a238f(0x24a)]||[],[TestFrameworkConstants[_0x2a238f(0x1d7)]]:_0x494311['customRerunParam']?.[_0x2a238f(0x1d4)]||_0x494311[_0x2a238f(0x1c7)]||'',[TestFrameworkConstants[_0x2a238f(0x1ff)]]:{},[TestFrameworkConstants[_0x2a238f(0x1ae)]]:_0x494311[_0x2a238f(0x19b)]||{}};TestInfo[_0x2a238f(0x213)](_0x5e0138,_0x50a4af),logger[_0x2a238f(0x1c8)](_0x2a238f(0x232)+_0x494311[_0x2a238f(0x1c7)]+_0x2a238f(0x19a)+_0x21ea20);const _0x3b6624={};return _0x3b6624[_0x5e0138]=_0x50a4af,_0x3b6624;}[a95_0x297e12(0x220)](_0x5681a6){const _0x2c3fed=a95_0x297e12,_0x33bd09={'VihPy':_0x2c3fed(0x24d),'WItUe':_0x2c3fed(0x21a),'BGvXa':function(_0x5d6275,_0x54bb8d){return _0x5d6275===_0x54bb8d;},'SIrLm':_0x2c3fed(0x247),'qQqQc':_0x2c3fed(0x221),'YtTAy':function(_0xdf755c,_0x165555,_0x11f479){return _0xdf755c(_0x165555,_0x11f479);},'IPwnp':function(_0x3e3b6b,_0x461bb7){return _0x3e3b6b>_0x461bb7;},'NFPhv':function(_0x243323,_0x3d7f44){return _0x243323>_0x3d7f44;}},{testUUID:_0x5de17d,testData:_0x418a91}=_0x5681a6;if(!_0x418a91||!_0x418a91[_0x2c3fed(0x21d)])return logger[_0x2c3fed(0x1c8)](_0x33bd09[_0x2c3fed(0x226)]),{};const _0x2ea5a5=this[_0x2c3fed(0x1c9)](TestFrameworkState[_0x2c3fed(0x23d)],HookState[_0x2c3fed(0x23e)]),_0x5a1478=_0x418a91[_0x2c3fed(0x21d)],_0x49f91c=TestInfo['getTestDetails'](_0x5a1478)||{},_0x69353b=_0x49f91c?_0x49f91c[TestFrameworkConstants[_0x2c3fed(0x1ff)]]||{}:{},_0x586c18={..._0x49f91c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x418a91['result']||_0x33bd09[_0x2c3fed(0x199)],[TestFrameworkConstants[_0x2c3fed(0x1c6)]]:_0x418a91[_0x2c3fed(0x190)]||new Date()[_0x2c3fed(0x1d5)](),[TestFrameworkConstants[_0x2c3fed(0x239)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2c3fed(0x1ff)]]:_0x69353b,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x2c3fed(0x1ae)]]:_0x418a91[_0x2c3fed(0x19b)]||{}};_0x33bd09[_0x2c3fed(0x22d)](_0x418a91['result'],_0x33bd09['SIrLm'])&&_0x418a91['failure']&&(_0x586c18[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x418a91[_0x2c3fed(0x1fe)]||_0x33bd09[_0x2c3fed(0x1a0)],_0x586c18[TestFrameworkConstants[_0x2c3fed(0x187)]]=_0x418a91[_0x2c3fed(0x1b0)]||'',_0x586c18[TestFrameworkConstants[_0x2c3fed(0x1fb)]]=_0x418a91[_0x2c3fed(0x18a)]);const _0x28aa0f=TestInfo[_0x2c3fed(0x1e1)](_0x5a1478)[TestFrameworkConstants[_0x2c3fed(0x21b)]]||{},_0x1debd4=_0x33bd09[_0x2c3fed(0x18b)](getManualUploadLogs,_0x28aa0f,_0x2ea5a5[_0x2c3fed(0x1a8)]()[_0x2c3fed(0x1ed)](_0x5a1478)[TestFrameworkConstants[_0x2c3fed(0x1bd)]]);if(_0x33bd09['IPwnp'](_0x1debd4[_0x2c3fed(0x1bc)],0x0)){const _0x31f59d=_0x586c18[TestFrameworkConstants[_0x2c3fed(0x184)]]||[];_0x586c18[TestFrameworkConstants[_0x2c3fed(0x184)]]=[..._0x31f59d,..._0x1debd4];}_0x418a91[_0x2c3fed(0x1c2)]&&_0x33bd09[_0x2c3fed(0x1b4)](_0x418a91[_0x2c3fed(0x1c2)][_0x2c3fed(0x1bc)],0x0)&&(_0x586c18[TestFrameworkConstants[_0x2c3fed(0x1ab)]]=_0x418a91[_0x2c3fed(0x1c2)]);TestInfo[_0x2c3fed(0x213)](_0x5a1478,_0x586c18),logger[_0x2c3fed(0x1c8)](_0x2c3fed(0x1c5)+_0x418a91[_0x2c3fed(0x1c7)]+'\x20with\x20result:\x20'+_0x418a91['result']);const _0x151a31={};return _0x151a31[_0x5a1478]=_0x586c18,_0x151a31;}async[a95_0x297e12(0x1c4)](_0x5ae327,_0x54a967,_0x39fe86,_0x309a38){const _0x2094c1=a95_0x297e12,_0x4c566e={'kAjvo':_0x2094c1(0x1b8),'maLQq':function(_0x58b17d){return _0x58b17d();},'EGKYV':function(_0x1bf694,_0x3aca31){return _0x1bf694 in _0x3aca31;},'mWons':function(_0xe2bda,_0x4b00af){return _0xe2bda in _0x4b00af;},'BYpTN':function(_0x34126d,_0x1119bd){return _0x34126d===_0x1119bd;},'qlRiS':function(_0x171b5a,_0xb62ea2){return _0x171b5a>_0xb62ea2;},'NxaVv':function(_0x225863,_0x56f297){return _0x225863===_0x56f297;},'yRynx':_0x2094c1(0x247),'UEShe':_0x2094c1(0x221),'bpExz':_0x2094c1(0x22a),'WfYqK':function(_0x457c7c,_0x10e93a){return _0x457c7c!==_0x10e93a;}},{hookData:_0x3cb18f}=_0x309a38;if(!_0x3cb18f)return logger['debug'](_0x4c566e[_0x2094c1(0x20a)]),{};const _0x422239=_0x3cb18f[_0x2094c1(0x21d)]||_0x4c566e[_0x2094c1(0x189)](uuidv4),_0x4427f4=_0x3cb18f['test_run_id'],_0x4a6392=_0x54a967[_0x2094c1(0x252)]()[_0x2094c1(0x1a7)]('.')[0x1],_0x5c3383=TestInfo[_0x2094c1(0x1e1)](_0x4427f4)[TestFrameworkConstants[_0x2094c1(0x1ff)]]||{},_0x1c4ecf=_0x5ae327[_0x2094c1(0x1a8)]()[_0x2094c1(0x1ed)](_0x4427f4);if(!_0x1c4ecf)return logger[_0x2094c1(0x1c8)](_0x2094c1(0x1b2)+_0x4427f4+_0x2094c1(0x1ac)),this[_0x2094c1(0x209)](_0x5ae327,_0x4427f4,_0x54a967,_0x39fe86,_0x309a38),{};let _0xb904f5=_0x1c4ecf[TestFrameworkConstants[_0x2094c1(0x246)]];!_0xb904f5&&(_0xb904f5={});!_0x4c566e['EGKYV'](_0x4a6392,_0xb904f5)&&(_0xb904f5[_0x4a6392]=[]);let _0x52532b=_0x1c4ecf[TestFrameworkConstants[_0x2094c1(0x1ab)]];!_0x52532b&&(_0x52532b={});!_0x4c566e['mWons'](_0x4a6392,_0x52532b)&&(_0x52532b[_0x4a6392]=[]);const _0x147b60={[TestFrameworkConstants[_0x2094c1(0x246)]]:_0xb904f5,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x52532b},_0x463510={};_0x463510[_0x4427f4]=_0x147b60;const _0x158334=_0x463510;if(_0x4c566e[_0x2094c1(0x22c)](_0x39fe86,HookState[_0x2094c1(0x20e)])){const _0xcddaa6={[TestFrameworkConstants[_0x2094c1(0x22e)]]:_0x422239,[TestFrameworkConstants[_0x2094c1(0x223)]]:TestFrameworkConstants[_0x2094c1(0x185)],[TestFrameworkConstants[_0x2094c1(0x1d2)]]:_0x3cb18f[_0x2094c1(0x212)],[TestFrameworkConstants[_0x2094c1(0x1d1)]]:[],[TestFrameworkConstants[_0x2094c1(0x193)]]:_0x3cb18f[_0x2094c1(0x1c7)]||_0x3cb18f[_0x2094c1(0x1d0)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5c3383};_0xcddaa6[_0x2094c1(0x240)]=_0x4a6392;const _0x14d479=_0xcddaa6;_0xb904f5[_0x4a6392][_0x2094c1(0x23f)](_0x14d479),_0x158334[_0x4427f4][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x4a6392,logger[_0x2094c1(0x1c8)](_0x2094c1(0x23a)+_0x4a6392+'\x20&\x20hook\x20=\x20'+_0x14d479+_0x2094c1(0x253)+_0x309a38);}else{if(_0x4c566e[_0x2094c1(0x22c)](_0x39fe86,HookState[_0x2094c1(0x23e)])){const _0x43571b=_0x3cb18f[_0x2094c1(0x1ef)],_0x9e862b=_0xb904f5[_0x4a6392]||[];logger[_0x2094c1(0x1c8)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x9e862b+_0x2094c1(0x19e)+_0x309a38);if(_0x4c566e[_0x2094c1(0x1d6)](_0x9e862b[_0x2094c1(0x1bc)],0x0)){const _0x5f242c=_0x9e862b[_0x2094c1(0x1aa)]();_0x4c566e[_0x2094c1(0x1f7)](_0x3cb18f[_0x2094c1(0x1ef)],_0x4c566e[_0x2094c1(0x1c1)])&&_0x3cb18f[_0x2094c1(0x1a3)]?(_0x5f242c[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x3cb18f['failure_type']||_0x4c566e[_0x2094c1(0x250)],_0x5f242c[TestFrameworkConstants[_0x2094c1(0x1e9)]]=_0x3cb18f['failure_reason']||'',_0x5f242c[TestFrameworkConstants[_0x2094c1(0x1f8)]]=_0x3cb18f['failure_data']):_0x5f242c[TestFrameworkConstants[_0x2094c1(0x223)]]=_0x4c566e[_0x2094c1(0x22b)];_0x4c566e[_0x2094c1(0x1ec)](_0x43571b,TestFrameworkConstants[_0x2094c1(0x185)])&&(_0x5f242c[TestFrameworkConstants[_0x2094c1(0x223)]]=_0x43571b);_0x5f242c[TestFrameworkConstants[_0x2094c1(0x225)]]=_0x3cb18f[_0x2094c1(0x200)]||new Date()[_0x2094c1(0x1d5)](),_0x5f242c[TestFrameworkConstants[_0x2094c1(0x1ff)]]=_0x5c3383;const _0x133d52=_0x5f242c[TestFrameworkConstants['KEY_HOOK_ID']];!_0x52532b[_0x4a6392]&&(_0x52532b[_0x4a6392]=[]),_0x52532b[_0x4a6392]['push'](_0x5f242c),_0x158334[_0x4427f4][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x4a6392;}}}return logger[_0x2094c1(0x1c8)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x3cb18f[_0x2094c1(0x1d0)]+_0x2094c1(0x19f)+_0x422239+'\x20for\x20test:\x20'+_0x4427f4),_0x158334;}[a95_0x297e12(0x1df)](_0x4bd639){const _0x5038c3=a95_0x297e12,_0x2a1a7e={};_0x2a1a7e['UHKFs']=_0x5038c3(0x1e2);const _0x217299=_0x2a1a7e;try{const _0x2001b3=_0x4bd639[_0x5038c3(0x1d8)]?_0x4bd639[_0x5038c3(0x1d8)]['id']:_0x4bd639[_0x5038c3(0x19d)]['test_run_id'],_0x5d5313=_0x4bd639[_0x5038c3(0x228)],_0xef5fc2=_0x5d5313[_0x5038c3(0x203)](),_0x1a7d8f=_0x5d5313[_0x5038c3(0x1a8)]()[_0x5038c3(0x1ed)](_0x2001b3);if(!_0x1a7d8f)return logger['debug']('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2001b3),{};logger['debug'](_0x5038c3(0x183)+_0x2001b3);const {[TestFrameworkConstants[_0x5038c3(0x230)]]:_0x37b3a3='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x304f8f='',[TestFrameworkConstants[_0x5038c3(0x248)]]:_0x266345='',[TestFrameworkConstants[_0x5038c3(0x1c6)]]:_0x2a6f21=''}=_0x1a7d8f,_0x4157a8=_0x5d5313[_0x5038c3(0x1ce)]()[_0x5038c3(0x252)]()['split']('.')[0x1],_0x13cbae=_0x5d5313[_0x5038c3(0x227)]()[_0x5038c3(0x252)]()[_0x5038c3(0x1a7)]('.')[0x1],_0x5c8904=global?.[_0x5038c3(0x1cb)]??0x0,_0x40a94f=_0x5d5313[_0x5038c3(0x1e5)](),_0x27302c=Buffer[_0x5038c3(0x1b3)](JSON[_0x5038c3(0x21f)](_0x1a7d8f))[_0x5038c3(0x252)](_0x217299[_0x5038c3(0x1e4)]),_0x3a7a40={'hash':_0xef5fc2['getId'](),'threadId':_0xef5fc2[_0x5038c3(0x1d3)]()[_0x5038c3(0x252)](),'processId':_0xef5fc2['getProcessId']()['toString']()},_0x5167e2={};_0x5167e2[_0x5038c3(0x186)]=_0x5c8904,_0x5167e2['testFrameworkName']=_0x37b3a3,_0x5167e2[_0x5038c3(0x242)]=_0x304f8f,_0x5167e2[_0x5038c3(0x1af)]=_0x4157a8,_0x5167e2[_0x5038c3(0x206)]=_0x13cbae,_0x5167e2[_0x5038c3(0x1cd)]=_0x266345,_0x5167e2['endedAt']=_0x2a6f21,_0x5167e2['uuid']=_0x40a94f,_0x5167e2[_0x5038c3(0x207)]=_0x27302c,_0x5167e2[_0x5038c3(0x20d)]=_0x3a7a40;const _0x50a1ff=_0x5167e2;return logger[_0x5038c3(0x1c8)](_0x5038c3(0x24f)+_0x2001b3+_0x5038c3(0x218)+_0x4157a8+'\x20hookState:\x20'+_0x13cbae),_0x50a1ff;}catch(_0x384eb4){return logger['error'](_0x5038c3(0x234)+util['format'](_0x384eb4)),{};}}async[a95_0x297e12(0x1bb)](_0x2f8ea9,_0x4dab80,_0x1b5386){const _0x242b95=a95_0x297e12,_0x5d31e5={'eJBdT':function(_0x53eec7,_0x43ce9b,_0x46b958){return _0x53eec7(_0x43ce9b,_0x46b958);},'rMdBs':function(_0x3a471e,_0x35a708){return _0x3a471e===_0x35a708;},'aQetb':_0x242b95(0x1a4),'rPgko':function(_0x1548af,_0x23233b){return _0x1548af/_0x23233b;},'OZxHs':function(_0x922b5c,_0x4752c9){return _0x922b5c<_0x4752c9;},'bXCjP':function(_0x5a92be,_0x914b4f){return _0x5a92be*_0x914b4f;},'ouIat':function(_0x170676,_0x5e2ade){return _0x170676+_0x5e2ade;},'XNYJR':function(_0x1271cf,_0x1b0311){return _0x1271cf+_0x1b0311;},'IfFsA':'Cucumber\x20log\x20created\x20event'};try{const _0x117c79=_0x1b5386[_0x242b95(0x1de)],_0x3ce5af=_0x2f8ea9[_0x242b95(0x1a8)]()[_0x242b95(0x1ed)](_0x117c79),{[TestFrameworkConstants[_0x242b95(0x230)]]:_0x59e4c0='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x2a29d2=''}=_0x3ce5af,_0x27ac95=TestInfo[_0x242b95(0x1b6)](_0x117c79),_0x23f626=TestInfo[_0x242b95(0x1e1)](_0x117c79)[TestFrameworkConstants[_0x242b95(0x21b)]]||{},_0x181640=_0x5d31e5['eJBdT'](getMediaArtifactsLogs,_0x23f626,_0x2f8ea9['getAllData']()[_0x242b95(0x1ed)](_0x117c79)[TestFrameworkConstants[_0x242b95(0x1bd)]]),_0x382355=(_0x27ac95||[])[_0x242b95(0x217)](_0x181640||[]);if(!_0x382355||_0x5d31e5['rMdBs'](_0x382355[_0x242b95(0x1bc)],0x0)){logger['debug'](_0x5d31e5[_0x242b95(0x233)]);return;}const _0x296cdc=0x28,_0x5b990e=Math[_0x242b95(0x1b7)](_0x5d31e5['rPgko'](_0x382355[_0x242b95(0x1bc)],_0x296cdc));for(let _0x2e114a=0x0;_0x5d31e5['OZxHs'](_0x2e114a,_0x5b990e);_0x2e114a++){const _0x872c70=_0x5d31e5[_0x242b95(0x1dd)](_0x2e114a,_0x296cdc),_0x2adc29=_0x5d31e5['ouIat'](_0x872c70,_0x296cdc),_0x11bd07=_0x382355['slice'](_0x872c70,_0x2adc29),_0x39bbcf={'platformIndex':global?.[_0x242b95(0x1cb)]??0x0,'logs':_0x11bd07,'testFrameworkName':_0x59e4c0,'testFrameworkVersion':_0x2a29d2,'testFrameworkState':_0x4dab80[_0x242b95(0x252)]()[_0x242b95(0x1a7)]('.')[0x1]};logger['debug'](_0x242b95(0x1e7)+_0x117c79+_0x242b95(0x1c3)+_0x5d31e5[_0x242b95(0x1fd)](_0x2e114a,0x1)+'/'+_0x5b990e+'\x20payload='+util['inspect'](_0x39bbcf));const _0x703893=await GrpcClient['getInstance']()[_0x242b95(0x23b)](_0x39bbcf);logger[_0x242b95(0x1c8)](_0x242b95(0x1e7)+_0x117c79+_0x242b95(0x1c3)+_0x5d31e5[_0x242b95(0x1db)](_0x2e114a,0x1)+'/'+_0x5b990e+_0x242b95(0x249)+util[_0x242b95(0x1cc)](_0x703893));}}catch(_0x309a63){logger[_0x242b95(0x1ea)](_0x242b95(0x229)+util[_0x242b95(0x236)](_0x309a63));}logger['debug'](_0x5d31e5['IfFsA']);}[a95_0x297e12(0x209)](_0xd529ed,_0x276cb8,_0x3ec9dc,_0x3d0f58,_0x280f36){const _0x30b8d5=a95_0x297e12,_0x1f0e9b={'testId':_0x276cb8,'testFrameworkState':_0x3ec9dc,'hookState':_0x3d0f58,'args':_0x280f36,'timestamp':new Date()[_0x30b8d5(0x1d5)]()};_0xd529ed['addPendingHook'](_0x276cb8,_0x1f0e9b),logger[_0x30b8d5(0x1c8)](_0x30b8d5(0x182)+_0x276cb8+_0x30b8d5(0x1a9)+_0x3ec9dc+',\x20hookState:\x20'+_0x3d0f58);}async[a95_0x297e12(0x1f3)](_0x460625,_0x17d160){const _0x1e1c71=a95_0x297e12,_0x3e0226={};_0x3e0226[_0x1e1c71(0x1da)]=function(_0x23610c,_0x49a29a){return _0x23610c>_0x49a29a;};const _0x2e99e5=_0x3e0226;if(!_0x460625['hasPendingHooks'](_0x17d160))return;const _0x148e43=_0x460625[_0x1e1c71(0x243)](_0x17d160);logger[_0x1e1c71(0x1c8)](_0x1e1c71(0x198)+_0x148e43[_0x1e1c71(0x1bc)]+_0x1e1c71(0x204)+_0x17d160);for(const _0x4b3ba7 of _0x148e43){try{const _0x22d4e6=await this[_0x1e1c71(0x1c4)](_0x460625,_0x4b3ba7[_0x1e1c71(0x1af)],_0x4b3ba7[_0x1e1c71(0x206)],_0x4b3ba7[_0x1e1c71(0x20f)]);_0x22d4e6&&_0x2e99e5[_0x1e1c71(0x1da)](Object[_0x1e1c71(0x251)](_0x22d4e6)[_0x1e1c71(0x1bc)],0x0)&&_0x460625[_0x1e1c71(0x1fc)](_0x22d4e6),await this[_0x1e1c71(0x192)](_0x460625,_0x4b3ba7['testFrameworkState'],_0x4b3ba7[_0x1e1c71(0x206)],_0x4b3ba7[_0x1e1c71(0x20f)]);}catch(_0x4fe86f){logger[_0x1e1c71(0x1ea)](_0x1e1c71(0x241)+_0x17d160+_0x1e1c71(0x18f)+_0x4fe86f);}}_0x460625[_0x1e1c71(0x1ee)](_0x17d160),logger[_0x1e1c71(0x1c8)](_0x1e1c71(0x1fa)+_0x17d160);}}function a95_0x2598(_0x25f240,_0xa4fcc7){const _0x25555f=a95_0x2555();return a95_0x2598=function(_0x25986e,_0x33c171){_0x25986e=_0x25986e-0x181;let _0x20e6b7=_0x25555f[_0x25986e];return _0x20e6b7;},a95_0x2598(_0x25f240,_0xa4fcc7);}module[a95_0x297e12(0x195)]=CucumberTestFramework;