browserstack-node-sdk 1.65.6 → 1.65.7

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 (216) 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/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a85_0x2cd7a0=a85_0x331b;function a85_0x331b(_0xcb79de,_0x1e8a08){const _0x198ddb=a85_0x198d();return a85_0x331b=function(_0x331b85,_0x2c6a83){_0x331b85=_0x331b85-0xce;let _0x3bd45b=_0x198ddb[_0x331b85];return _0x3bd45b;},a85_0x331b(_0xcb79de,_0x1e8a08);}(function(_0x5a81ce,_0x4ac601){const _0x43cabc=a85_0x331b,_0x44b96f=_0x5a81ce();while(!![]){try{const _0x2ab988=-parseInt(_0x43cabc(0x127))/0x1+-parseInt(_0x43cabc(0x131))/0x2*(parseInt(_0x43cabc(0x193))/0x3)+-parseInt(_0x43cabc(0xe1))/0x4*(parseInt(_0x43cabc(0x148))/0x5)+parseInt(_0x43cabc(0x116))/0x6*(parseInt(_0x43cabc(0x17b))/0x7)+parseInt(_0x43cabc(0x128))/0x8*(parseInt(_0x43cabc(0xeb))/0x9)+-parseInt(_0x43cabc(0x130))/0xa*(parseInt(_0x43cabc(0xda))/0xb)+parseInt(_0x43cabc(0x197))/0xc;if(_0x2ab988===_0x4ac601)break;else _0x44b96f['push'](_0x44b96f['shift']());}catch(_0x5d2b87){_0x44b96f['push'](_0x44b96f['shift']());}}}(a85_0x198d,0xcc683));const fs=require('fs'),os=require('os'),url=require(a85_0x2cd7a0(0x12b)),path=require(a85_0x2cd7a0(0x10e)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require(a85_0x2cd7a0(0x11d)),util=require('util'),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a85_0x2cd7a0(0x12e)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x2cd7a0(0x144)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x2cd7a0(0x191)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x2cd7a0(0x175)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x2cd7a0(0x138)),{createClassLogger}=require(a85_0x2cd7a0(0x180)),TestFrameworkInstance=require(a85_0x2cd7a0(0x1ae)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x2cd7a0(0x153)),AutomationFrameworkState=require(a85_0x2cd7a0(0x15c)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a85_0x2cd7a0(0x159));class CLIUtils{[a85_0x2cd7a0(0xdc)]={};[a85_0x2cd7a0(0x165)]={};static['isDevelopmentEnv'](){const _0x4007b2=a85_0x2cd7a0,_0x2c5240={};_0x2c5240[_0x4007b2(0xe9)]=function(_0x29af71,_0x1d97d3){return _0x29af71===_0x1d97d3;},_0x2c5240[_0x4007b2(0x11b)]=_0x4007b2(0x18b);const _0x3aed69=_0x2c5240;return _0x3aed69[_0x4007b2(0xe9)](process[_0x4007b2(0x14a)]['BROWSERSTACK_CLI_ENV'],_0x3aed69[_0x4007b2(0x11b)]);}static[a85_0x2cd7a0(0x187)](){const _0x37fc42=a85_0x2cd7a0,_0x497e79={};return _0x497e79['id']=process[_0x37fc42(0x14a)][_0x37fc42(0x114)],_0x497e79['listen']=_0x37fc42(0xd7)+process[_0x37fc42(0x14a)][_0x37fc42(0x114)]+_0x37fc42(0x17d),_0x497e79;}static[a85_0x2cd7a0(0x18d)](){const _0x53158b=a85_0x2cd7a0,_0x5ac71c={'cskmr':function(_0x46d82a,_0x6f4393){return _0x46d82a(_0x6f4393);},'wiDZF':'../../../package.json'};return _0x5ac71c['cskmr'](require,_0x5ac71c[_0x53158b(0x1ac)])[_0x53158b(0x169)];}static[a85_0x2cd7a0(0xce)](){const _0x5682f2=a85_0x2cd7a0,_0x5803a7={};_0x5803a7['KPDGQ']=_0x5682f2(0x182);const _0x2e4945=_0x5803a7;return _0x2e4945[_0x5682f2(0x166)];}static async[a85_0x2cd7a0(0x1b7)](_0x4061e4){const _0x229d9e=a85_0x2cd7a0,_0x2116bc={'YdJky':_0x229d9e(0x122),'tcgPg':function(_0x4bfdac,_0x4fa9d8){return _0x4bfdac(_0x4fa9d8);},'UAlLR':function(_0xa4eea9,_0x3198e0){return _0xa4eea9(_0x3198e0);},'yEHMK':_0x229d9e(0xff)};logger[_0x229d9e(0x141)](_0x2116bc[_0x229d9e(0x119)]);const _0x4a55d7=process[_0x229d9e(0x14a)]['SDK_CLI_BIN_PATH'];if(!_0x2116bc[_0x229d9e(0x124)](isNullOrEmpty,_0x4a55d7))return logger[_0x229d9e(0x141)](_0x229d9e(0x17c)+_0x4a55d7),_0x4a55d7;try{const _0x59e9e5=this[_0x229d9e(0x14d)]();if(_0x2116bc[_0x229d9e(0xde)](isNullOrEmpty,_0x59e9e5))throw new Error(_0x2116bc['yEHMK']);const _0x50a226=this[_0x229d9e(0xdb)](_0x59e9e5),_0x1e010f=await this[_0x229d9e(0x19e)](_0x50a226,_0x59e9e5,_0x4061e4);return logger['debug'](_0x229d9e(0x145)+_0x1e010f),_0x1e010f;}catch(_0x314b6a){logger[_0x229d9e(0x141)](_0x229d9e(0x1a1)+util[_0x229d9e(0x189)](_0x314b6a));}return null;}static async[a85_0x2cd7a0(0x19e)](_0x5230df,_0x4933a3,_0x3e2357){const _0x56697b=a85_0x2cd7a0,_0x5cabcd={'cOMIm':function(_0x2c8a48){return _0x2c8a48();},'tPoog':function(_0x28976c,_0x4c062e){return _0x28976c(_0x4c062e);},'Wyiju':function(_0x45c766,_0x11d787,_0x7af102){return _0x45c766(_0x11d787,_0x7af102);},'pwPNv':_0x56697b(0x1a9),'stKxt':_0x56697b(0x12b),'HOpYQ':function(_0xbeaae3,_0x10df22){return _0xbeaae3(_0x10df22);}};PerformanceTester[_0x56697b(0x108)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x56697b(0xe5)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x5230df);const _0x4fc5d3=_0x5cabcd[_0x56697b(0x123)](getHostInfo),_0x5a6295={'sdk_version':CLIUtils[_0x56697b(0x18d)](),'os':_0x4fc5d3[_0x56697b(0x139)],'os_arch':_0x4fc5d3[_0x56697b(0x12a)],'cli_version':'0','sdk_language':this[_0x56697b(0xce)]()};!_0x5cabcd[_0x56697b(0x19f)](isNullOrEmpty,_0x5230df)&&(_0x5a6295[_0x56697b(0x142)]=await this[_0x56697b(0x134)](_0x5230df+_0x56697b(0x154)));const _0x1de4b7=await this[_0x56697b(0x184)](_0x5a6295,_0x3e2357);process[_0x56697b(0x14a)][_0x56697b(0x172)]&&(logger[_0x56697b(0xe5)](_0x56697b(0x161)+process[_0x56697b(0x14a)][_0x56697b(0x172)]),_0x1de4b7['data']['url']=process[_0x56697b(0x14a)][_0x56697b(0x172)]);if(_0x5cabcd['Wyiju'](nestedKeyValue,_0x1de4b7,[_0x5cabcd[_0x56697b(0x1ad)],_0x5cabcd[_0x56697b(0x11e)]])){logger[_0x56697b(0x141)](_0x56697b(0x15d)+_0x5a6295[_0x56697b(0x142)]);if(!_0x5cabcd['HOpYQ'](isNullOrEmpty,_0x5230df)&&this[_0x56697b(0x19b)](_0x5230df))return logger['warn'](_0x56697b(0x1aa)+_0x5230df),_0x5230df;return await this['downloadLatestBinary'](_0x5cabcd[_0x56697b(0xdd)](nestedKeyValue,_0x1de4b7,[_0x5cabcd[_0x56697b(0x1ad)],_0x5cabcd['stKxt']]),_0x4933a3);}return _0x5230df;}finally{PerformanceTester[_0x56697b(0x120)](PerformanceEvents[_0x56697b(0x132)]);}}static[a85_0x2cd7a0(0x14d)](){const _0x2a7846=a85_0x2cd7a0,_0x3efb8c={'zNqsf':function(_0x366802,_0x3f2405){return _0x366802(_0x3f2405);},'fLOqt':_0x2a7846(0xff),'unfJQ':_0x2a7846(0x112)},_0x562824=this[_0x2a7846(0x125)]();try{if(_0x3efb8c[_0x2a7846(0x11f)](isNullOrEmpty,_0x562824))throw new Error(_0x3efb8c[_0x2a7846(0xd9)]);const _0x51a416=path['join'](_0x562824,_0x3efb8c['unfJQ']);return!fs[_0x2a7846(0x19a)](_0x51a416)&&_0x3efb8c[_0x2a7846(0x11f)](createDir,_0x51a416),_0x51a416;}catch(_0x129e1a){logger[_0x2a7846(0x141)](_0x2a7846(0x16f)+util[_0x2a7846(0x189)](_0x129e1a));}}static['getWritableDir'](){const _0x484c31=a85_0x2cd7a0,_0x3cc232={'xBNVL':_0x484c31(0x106),'UILVf':function(_0x3dafc7,_0x2a2772){return _0x3dafc7(_0x2a2772);},'zScUT':function(_0x237639,_0x30938b){return _0x237639(_0x30938b);},'QWhhY':function(_0xb240fd,_0x138eb4){return _0xb240fd(_0x138eb4);},'cuLci':function(_0x432819,_0x102433){return _0x432819(_0x102433);}},_0x4dc347=[process['env'][_0x484c31(0x109)],path[_0x484c31(0x143)](os['homedir'](),_0x3cc232[_0x484c31(0x14b)]),path[_0x484c31(0x143)](os[_0x484c31(0xe7)](),_0x3cc232[_0x484c31(0x14b)])];for(const _0x23e852 of _0x4dc347){if(_0x3cc232[_0x484c31(0x136)](isNullOrEmpty,_0x23e852))continue;try{if(fs[_0x484c31(0x19a)](_0x23e852)){logger[_0x484c31(0x141)](_0x484c31(0x176)+_0x23e852+'\x20already\x20exists');if(!_0x3cc232['UILVf'](isModifiable,_0x23e852)){logger[_0x484c31(0x141)]('Setting\x20required\x20permissions\x20to\x20'+_0x23e852);const _0x379ce3=_0x3cc232[_0x484c31(0x136)](setReadWriteExecuteAccess,_0x23e852);if(!_0x3cc232[_0x484c31(0xf0)](isTrue,_0x379ce3)){logger[_0x484c31(0x1b8)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x23e852);continue;}}}else{logger[_0x484c31(0x141)]('Folder\x20does\x20not\x20exist:\x20'+_0x23e852),_0x3cc232[_0x484c31(0x199)](createDir,_0x23e852),logger[_0x484c31(0x141)](_0x484c31(0x167)+_0x23e852);const _0x39fa38=_0x3cc232[_0x484c31(0x136)](setReadWriteExecuteAccess,_0x23e852);!_0x3cc232[_0x484c31(0xdf)](isTrue,_0x39fa38)&&logger[_0x484c31(0x1b8)](_0x484c31(0xee)+_0x23e852);}return _0x23e852;}catch(_0xd34030){logger[_0x484c31(0x186)](_0x484c31(0x1a8)+util[_0x484c31(0x189)](_0xd34030));}}return null;}static['getExistingCliPath'](_0xc65936){const _0x2c9e36=a85_0x2cd7a0,_0x3d7079={};_0x3d7079['bMnHG']=function(_0x17bf48,_0x453405){return _0x17bf48>_0x453405;};const _0x32d48e=_0x3d7079;try{if(!fs['existsSync'](_0xc65936)||!fs[_0x2c9e36(0x1b6)](_0xc65936)[_0x2c9e36(0x1b1)]())return'';const _0x3b5152=fs['readdirSync'](_0xc65936)[_0x2c9e36(0x13b)](_0x4ad326=>path[_0x2c9e36(0x143)](_0xc65936,_0x4ad326))[_0x2c9e36(0x1a7)](_0x86351=>fs[_0x2c9e36(0x1b6)](_0x86351)[_0x2c9e36(0x10d)]()&&path['basename'](_0x86351)[_0x2c9e36(0x12c)](_0x2c9e36(0xf2)));if(_0x32d48e[_0x2c9e36(0x19c)](_0x3b5152['length'],0x0)){const _0x4e68d0=_0x3b5152[_0x2c9e36(0x13b)](_0x22d28f=>({'filePath':_0x22d28f,'mtime':fs['statSync'](_0x22d28f)[_0x2c9e36(0x146)]}))[_0x2c9e36(0x133)]((_0x582d6d,_0x3415ce)=>{const _0x1e7b0a=_0x2c9e36;if(!_0x582d6d||!_0x582d6d[_0x1e7b0a(0x146)])return _0x3415ce;if(_0x32d48e[_0x1e7b0a(0x19c)](_0x3415ce[_0x1e7b0a(0x146)],_0x582d6d[_0x1e7b0a(0x146)]))return _0x3415ce;return _0x582d6d;},{});return _0x4e68d0?_0x4e68d0[_0x2c9e36(0x13d)]:'';}return'';}catch(_0x16233e){return logger[_0x2c9e36(0x186)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x2c9e36(0x189)](_0x16233e)),'';}}static ['requestToUpdateCLI']=async(_0x2c246c,_0x5e0f89)=>{const _0x35c7c5=a85_0x2cd7a0,_0x12a31f={'kYMgT':function(_0x1ec752,_0x3f12ac,_0x145b15,_0x403907,_0x203f3c){return _0x1ec752(_0x3f12ac,_0x145b15,_0x403907,_0x203f3c);},'rbaUq':_0x35c7c5(0x194)},_0x505c04={};_0x505c04['qs']=_0x2c246c,_0x505c04[_0x35c7c5(0x16e)]=!![];const _0x1dbfd5=await _0x12a31f[_0x35c7c5(0x171)](nodeRequest,_0x12a31f[_0x35c7c5(0x13f)],UPDATED_CLI_ENDPOINT,_0x505c04,_0x5e0f89);return logger[_0x35c7c5(0x141)](_0x35c7c5(0x11c)+JSON[_0x35c7c5(0xd3)](_0x1dbfd5)),_0x1dbfd5;};static[a85_0x2cd7a0(0x19b)](_0x340d4f){const _0x5c3515=a85_0x2cd7a0;try{const _0x1b6df0=fs['openSync'](_0x340d4f,'r+');return fs[_0x5c3515(0x1b2)](_0x1b6df0),![];}catch(_0x2df76f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2df76f[_0x5c3515(0x18c)]))return logger[_0x5c3515(0x141)](_0x5c3515(0x13c)+_0x340d4f),!![];return logger[_0x5c3515(0x141)](_0x5c3515(0x101)+_0x2df76f[_0x5c3515(0x16c)]),![];}}static[a85_0x2cd7a0(0x134)](_0x36fc67,_0x461dbf=''){const _0x5cc2c1=a85_0x2cd7a0,_0x23d154={'JomnW':_0x5cc2c1(0x169),'DlOuf':function(_0x5b5ab6,_0x6a99d){return _0x5b5ab6(_0x6a99d);},'rNQqY':function(_0x22cc28,_0x3f7a0f){return _0x22cc28(_0x3f7a0f);},'bjcij':_0x5cc2c1(0x149),'pymSs':function(_0x3cb29f,_0x1554cf){return _0x3cb29f(_0x1554cf);},'xcDYO':function(_0x5c361b,_0xdd3e73,_0x5cd99f,_0x3649e6){return _0x5c361b(_0xdd3e73,_0x5cd99f,_0x3649e6);},'lZmyh':_0x5cc2c1(0x186)};return new Promise((_0x12fba0,_0x34f254)=>{const _0x557b68=_0x5cc2c1,_0x2e88bc={'yvrhv':function(_0x38f86e,_0x1aa653){const _0xc3922c=a85_0x331b;return _0x23d154[_0xc3922c(0x164)](_0x38f86e,_0x1aa653);},'LjRXY':_0x23d154[_0x557b68(0xf8)]},_0x44dc5a={};_0x44dc5a[_0x557b68(0x185)]=_0x461dbf,_0x44dc5a[_0x557b68(0x17a)]=0x1388;const _0x22a8cc=_0x23d154['xcDYO'](exec,_0x36fc67,_0x44dc5a,(_0x512c9a,_0x2b956b,_0x5a2ba0)=>{const _0x5a67ae=_0x557b68;if(_0x512c9a){if(_0x36fc67[_0x5a67ae(0x135)](_0x23d154[_0x5a67ae(0x16b)])&&(_0x2b956b[_0x5a67ae(0x183)]()||_0x5a2ba0[_0x5a67ae(0x183)]())){const _0x4952d4=_0x2b956b[_0x5a67ae(0x183)]()||_0x5a2ba0[_0x5a67ae(0x183)]();logger['debug'](_0x5a67ae(0xd0)+_0x4952d4+'\x22'),_0x23d154[_0x5a67ae(0x155)](_0x12fba0,_0x4952d4);}else _0x23d154[_0x5a67ae(0x164)](_0x12fba0,_0x5a2ba0[_0x5a67ae(0x183)]()||_0x23d154[_0x5a67ae(0xf8)]);}else logger[_0x5a67ae(0x141)]('Resolving\x20with\x20stdout:\x20\x22'+_0x2b956b['trim']()+'\x22'),_0x23d154['pymSs'](_0x12fba0,_0x2b956b[_0x5a67ae(0x183)]());});_0x22a8cc['on'](_0x23d154[_0x557b68(0x168)],()=>{const _0x2432f7=_0x557b68;_0x2e88bc[_0x2432f7(0x170)](_0x12fba0,_0x2e88bc[_0x2432f7(0x190)]);});});}static [a85_0x2cd7a0(0x1a2)]=async(_0x29d073,_0x789cd5)=>{const _0x1927b8=a85_0x2cd7a0,_0x4426e6={'fqJpj':_0x1927b8(0x16d),'PQdpS':function(_0x48fd1f,_0x48bca5){return _0x48fd1f(_0x48bca5);},'hKaBq':_0x1927b8(0xf6),'wIqLv':function(_0x4d7904,_0x2ff761){return _0x4d7904(_0x2ff761);},'rdGBZ':function(_0x50bbde,_0x32c02b){return _0x50bbde>=_0x32c02b;},'sLYQe':_0x1927b8(0xd1),'DTXEC':_0x1927b8(0x1b5),'SiNmd':_0x1927b8(0x186),'MMJZD':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x1927b8(0x108)](PerformanceEvents[_0x1927b8(0x198)]),logger['debug'](_0x1927b8(0x17e)+_0x29d073);try{const _0x2b2612=url['parse'](_0x29d073),_0x256727=path[_0x1927b8(0x143)](_0x789cd5,'downloaded_file_'+process[_0x1927b8(0x16a)]+'.zip'),_0xc7100c=fs[_0x1927b8(0xfc)](_0x256727);return new Promise((_0x23f340,_0x590dec)=>{const _0xaf8414=_0x1927b8,_0xf3041b={'zFSul':_0x4426e6['fqJpj'],'PyQHd':function(_0x3d8169,_0x18a921){return _0x4426e6['PQdpS'](_0x3d8169,_0x18a921);},'smfQx':function(_0x4e3a33,_0x3ab596){const _0x55f723=a85_0x331b;return _0x4426e6[_0x55f723(0x1af)](_0x4e3a33,_0x3ab596);},'RXxnZ':_0x4426e6[_0xaf8414(0x1b0)],'zeOiG':function(_0x17f151,_0x25b948){const _0x98f311=_0xaf8414;return _0x4426e6[_0x98f311(0x102)](_0x17f151,_0x25b948);},'ULbUx':function(_0x30151a,_0x2ca57e){return _0x4426e6['PQdpS'](_0x30151a,_0x2ca57e);},'YLuvh':function(_0x33cadf,_0x50e093){const _0x189799=_0xaf8414;return _0x4426e6[_0x189799(0x129)](_0x33cadf,_0x50e093);},'wfTcJ':_0x4426e6[_0xaf8414(0xfa)],'OYNKO':_0x4426e6[_0xaf8414(0xd4)],'OziZp':_0x4426e6[_0xaf8414(0x196)],'oLOGU':function(_0x44929b,_0x26e529){const _0x1bc388=_0xaf8414;return _0x4426e6[_0x1bc388(0x1af)](_0x44929b,_0x26e529);}};https[_0xaf8414(0xf1)](_0x2b2612,function(_0x1def23){const _0x13a9eb=_0xaf8414,_0xce963b={'SVtLh':_0xf3041b[_0x13a9eb(0x15a)],'XSHVd':function(_0x515a17,_0x4c899a){return _0xf3041b['zeOiG'](_0x515a17,_0x4c899a);},'HEzrT':function(_0x43dc79,_0x48e42a){const _0x4fa84a=_0x13a9eb;return _0xf3041b[_0x4fa84a(0xf9)](_0x43dc79,_0x48e42a);}},_0x20525d=null;if(_0x1def23[_0x13a9eb(0xf4)]&&_0xf3041b[_0x13a9eb(0xe8)](_0x1def23['statusCode'],0x190)){const _0x291c34=new Error(_0x13a9eb(0x11a)+_0x1def23[_0x13a9eb(0xf4)]+_0x13a9eb(0x177)+_0x29d073);_0x291c34[_0x13a9eb(0x18c)]=_0xf3041b[_0x13a9eb(0x1b9)],_0x291c34[_0x13a9eb(0xf4)]=_0x1def23[_0x13a9eb(0xf4)],logger['error'](util[_0x13a9eb(0x189)](_0xf3041b[_0x13a9eb(0x192)],_0x1def23[_0x13a9eb(0xf4)])),PerformanceTester['end'](PerformanceEvents[_0x13a9eb(0x198)],![],'HTTP\x20'+_0x1def23[_0x13a9eb(0xf4)]),_0x1def23[_0x13a9eb(0x140)](),_0xc7100c['destroy'](),fs[_0x13a9eb(0xd2)](_0x256727,()=>{}),_0xf3041b[_0x13a9eb(0xcf)](_0x590dec,_0x291c34);return;}_0x1def23[_0x13a9eb(0xf7)](_0xc7100c),_0x1def23['on'](_0xf3041b[_0x13a9eb(0x14f)],function(_0x5aae4e){const _0x1708aa=_0x13a9eb;logger['error'](util[_0x1708aa(0x189)](_0xf3041b['zFSul'],_0x5aae4e)),PerformanceTester[_0x1708aa(0x120)](PerformanceEvents[_0x1708aa(0x198)],![],util[_0x1708aa(0x189)](_0x5aae4e)),_0xf3041b['PyQHd'](_0x590dec,_0x5aae4e);}),_0xc7100c['on'](_0xf3041b[_0x13a9eb(0x14f)],function(_0x50e249){const _0x2f2c7d=_0x13a9eb;logger['error'](util[_0x2f2c7d(0x189)](_0xce963b[_0x2f2c7d(0x181)],_0x50e249)),PerformanceTester[_0x2f2c7d(0x120)](PerformanceEvents[_0x2f2c7d(0x198)],![],util['format'](_0x50e249)),_0xce963b[_0x2f2c7d(0x12d)](_0x590dec,_0x50e249);}),CLIUtils['downloadFileStream'](_0xc7100c,_0x20525d,_0x256727,_0x789cd5,_0x327e0b=>{const _0x12c4c2=_0x13a9eb;PerformanceTester[_0x12c4c2(0x120)](PerformanceEvents[_0x12c4c2(0x198)]),_0xce963b[_0x12c4c2(0x151)](_0x23f340,_0x327e0b);},_0x644e64=>{const _0x5c640c=_0x13a9eb;PerformanceTester[_0x5c640c(0x120)](PerformanceEvents[_0x5c640c(0x198)],![],util[_0x5c640c(0x189)](_0x644e64)),_0xf3041b[_0x5c640c(0x1a0)](_0x590dec,_0x644e64);});})['on'](_0x4426e6[_0xaf8414(0x196)],function(_0x45aee1){const _0x2cc527=_0xaf8414;logger[_0x2cc527(0x186)](_0x2cc527(0x157)+util['format'](_0x45aee1)),PerformanceTester[_0x2cc527(0x120)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x2cc527(0x189)](_0x45aee1)),_0xf3041b[_0x2cc527(0x1ab)](_0x590dec,_0x45aee1);});});}catch(_0x2c68b0){PerformanceTester[_0x1927b8(0x120)](PerformanceEvents[_0x1927b8(0x198)],![],util[_0x1927b8(0x189)](_0x2c68b0)),logger[_0x1927b8(0x186)](util[_0x1927b8(0x189)](_0x4426e6[_0x1927b8(0x111)],_0x2c68b0));throw _0x2c68b0;}};static['downloadFileStream'](_0x2477f7,_0x4276f1,_0x2fadab,_0x4339a5,_0x471138,_0x2f3057){const _0x39d1b4=a85_0x2cd7a0,_0x297869={'thBKO':function(_0x3409ab,_0x37b0a4){return _0x3409ab(_0x37b0a4);},'ghvig':function(_0x264384,_0x408bf4){return _0x264384!==_0x408bf4;},'KKXAy':'EXDEV','kKnkx':_0x39d1b4(0x118),'VuNCH':'entry','ScenV':'error','DlGbA':_0x39d1b4(0x120),'oWhFu':_0x39d1b4(0x113)};_0x2477f7['on'](_0x297869['oWhFu'],function(){const _0x1d7616=_0x39d1b4,_0x4dfa85={'xynWl':function(_0x462b08,_0x2544ba){const _0x23b3f0=a85_0x331b;return _0x297869[_0x23b3f0(0x15f)](_0x462b08,_0x2544ba);},'Lbyrq':_0x297869[_0x1d7616(0x137)],'FeShF':_0x297869[_0x1d7616(0x115)],'TcpzQ':function(_0x436ead,_0x33ef55){const _0x895d78=_0x1d7616;return _0x297869[_0x895d78(0x104)](_0x436ead,_0x33ef55);},'DgTUf':function(_0x5ac9cb,_0x343def){const _0x12e004=_0x1d7616;return _0x297869[_0x12e004(0x15f)](_0x5ac9cb,_0x343def);},'AJyGQ':_0x297869[_0x1d7616(0x12f)]},_0x339e18={};_0x339e18[_0x1d7616(0x188)]=!![],yauzl[_0x1d7616(0x174)](_0x2fadab,_0x339e18,function(_0x10be30,_0x554c97){const _0x5c2814=_0x1d7616,_0x38d843={'NqAXU':function(_0x32f831,_0x36ddf7){return _0x297869['thBKO'](_0x32f831,_0x36ddf7);},'rgHsD':function(_0x174c79,_0x2ef18f){const _0x280db8=a85_0x331b;return _0x297869[_0x280db8(0x104)](_0x174c79,_0x2ef18f);},'oMneY':_0x297869['KKXAy'],'jfGoc':function(_0x124cf3,_0x1ba7d1){const _0x39ee71=a85_0x331b;return _0x297869[_0x39ee71(0x15f)](_0x124cf3,_0x1ba7d1);},'kSNFW':function(_0x59599d,_0x4ef7d3){const _0x1eb3e0=a85_0x331b;return _0x297869[_0x1eb3e0(0x15f)](_0x59599d,_0x4ef7d3);},'udjdc':_0x297869[_0x5c2814(0xe0)]};if(_0x10be30){_0x297869[_0x5c2814(0x15f)](_0x2f3057,_0x10be30);return;}_0x554c97[_0x5c2814(0xfd)](),_0x554c97['on'](_0x297869[_0x5c2814(0x17f)],_0x113150=>{const _0x3330c5=_0x5c2814,_0x36d362={'nBozx':function(_0x5bde8b,_0x514b59){const _0x5734ee=a85_0x331b;return _0x4dfa85[_0x5734ee(0x162)](_0x5bde8b,_0x514b59);},'uhfeG':_0x4dfa85[_0x3330c5(0xed)],'nhIHb':function(_0x5bdc50,_0xa873b1){return _0x4dfa85['xynWl'](_0x5bdc50,_0xa873b1);},'uBfDM':_0x4dfa85['FeShF']};if(/\/$/[_0x3330c5(0x14e)](_0x113150[_0x3330c5(0x18f)])){_0x554c97[_0x3330c5(0xfd)]();return;}!_0x4276f1&&(_0x4276f1=_0x113150[_0x3330c5(0x18f)]);if(_0x4dfa85[_0x3330c5(0x10c)](_0x113150[_0x3330c5(0x18f)],_0x4276f1))_0x554c97[_0x3330c5(0xfd)]();else{const _0x3a2df2=_0x113150['fileName'],_0x4123f7=path[_0x3330c5(0x143)](_0x4339a5,_0x3a2df2+_0x3330c5(0x18e)+process['pid']);let _0x331f37;try{_0x331f37=fs['createWriteStream'](_0x4123f7);}catch(_0x3a737f){if(BINARY_BUSY_ERROR_CODES[_0x3330c5(0x135)](_0x3a737f[_0x3330c5(0x18c)])){const _0x2ee134=path['join'](_0x4339a5,_0x3a2df2);if(fs[_0x3330c5(0x19a)](_0x2ee134)){logger[_0x3330c5(0x1b8)](_0x3330c5(0x15e)+_0x3a2df2),fs[_0x3330c5(0xd2)](_0x2fadab,_0xeb7235=>{const _0x50a439=_0x3330c5;_0xeb7235&&logger[_0x50a439(0x1b8)](_0x50a439(0x173)+_0x2fadab);}),_0x4dfa85['xynWl'](_0x471138,_0x2ee134);return;}logger[_0x3330c5(0x1b8)](_0x3330c5(0x1ba)+_0x3a2df2);}_0x4dfa85[_0x3330c5(0x150)](_0x2f3057,_0x3a737f);return;}_0x331f37['on'](_0x4dfa85[_0x3330c5(0xe2)],_0x16b71e=>{const _0x4d6b61=_0x3330c5;if(BINARY_BUSY_ERROR_CODES['includes'](_0x16b71e[_0x4d6b61(0x18c)])){const _0x556eec=path['join'](_0x4339a5,_0x3a2df2);_0x331f37[_0x4d6b61(0x113)](),fs[_0x4d6b61(0x19a)](_0x556eec)?(logger[_0x4d6b61(0x1b8)](_0x4d6b61(0x160)+_0x16b71e['message']),_0x554c97[_0x4d6b61(0x113)](),fs[_0x4d6b61(0xd2)](_0x2fadab,_0x5e0ed3=>{const _0x31b1b2=_0x4d6b61;_0x5e0ed3&&logger[_0x31b1b2(0x1b8)](_0x31b1b2(0x173)+_0x2fadab);}),_0x36d362['nBozx'](_0x471138,_0x556eec)):(logger[_0x4d6b61(0x1b8)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x16b71e['message']),fs[_0x4d6b61(0xd2)](_0x4123f7,()=>{}),_0x36d362[_0x4d6b61(0x117)](_0x2f3057,_0x16b71e));}else fs['unlink'](_0x4123f7,()=>{}),_0x36d362[_0x4d6b61(0x117)](_0x2f3057,_0x16b71e);}),_0x554c97[_0x3330c5(0x1a4)](_0x113150,function(_0x40972d,_0x43e321){const _0x25e911=_0x3330c5;if(_0x40972d){fs[_0x25e911(0xd2)](_0x4123f7,()=>{}),_0x36d362['nhIHb'](_0x2f3057,_0x40972d);return;}_0x43e321['on'](_0x36d362[_0x25e911(0x158)],function(){const _0x140b17=_0x25e911;_0x331f37[_0x140b17(0x120)](),_0x331f37['on'](_0x36d362[_0x140b17(0xf5)],function(){const _0x1c7778=_0x140b17;_0x554c97[_0x1c7778(0xfd)]();});}),_0x43e321[_0x25e911(0xf7)](_0x331f37);});}}),_0x554c97['on'](_0x297869[_0x5c2814(0x12f)],_0x1ee50d=>{_0x38d843['NqAXU'](_0x2f3057,_0x1ee50d);}),_0x554c97[_0x5c2814(0xf3)](_0x297869[_0x5c2814(0x115)],()=>{const _0x5010c9=_0x5c2814,_0x146ba1={'ScIao':function(_0x8592a1,_0x454393){const _0x48856d=a85_0x331b;return _0x38d843[_0x48856d(0x1b3)](_0x8592a1,_0x454393);},'MRejj':_0x38d843[_0x5010c9(0x13e)],'osiDZ':function(_0x4043db,_0x46364a){return _0x38d843['jfGoc'](_0x4043db,_0x46364a);},'QScGk':function(_0x20d594,_0x30e900){const _0x23d068=_0x5010c9;return _0x38d843[_0x23d068(0x15b)](_0x20d594,_0x30e900);},'Yzabj':function(_0x4c18cb,_0x58e49d){return _0x38d843['jfGoc'](_0x4c18cb,_0x58e49d);}};fs[_0x5010c9(0xd2)](_0x2fadab,_0x290618=>{const _0x26b3eb=_0x5010c9;_0x290618&&logger[_0x26b3eb(0x1b8)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2fadab);});const _0x382b58=path[_0x5010c9(0x143)](_0x4339a5,_0x4276f1+_0x5010c9(0x18e)+process['pid']),_0x47970c=path[_0x5010c9(0x143)](_0x4339a5,_0x4276f1);fs[_0x5010c9(0x156)](_0x382b58,_0x38d843[_0x5010c9(0x178)],function(_0x264068){const _0xfedbf6=_0x5010c9;if(_0x264068){_0x554c97['close'](),fs[_0xfedbf6(0xd2)](_0x382b58,()=>{}),_0x38d843[_0xfedbf6(0x10b)](_0x2f3057,_0x264068);return;}fs[_0xfedbf6(0x110)](_0x382b58,_0x47970c,function(_0x43df0b){const _0x5df03b=_0xfedbf6;if(_0x43df0b){if(_0x146ba1[_0x5df03b(0x163)](_0x43df0b[_0x5df03b(0x18c)],_0x146ba1[_0x5df03b(0x152)])){_0x554c97['close'](),fs[_0x5df03b(0xd2)](_0x382b58,()=>{}),_0x146ba1[_0x5df03b(0x10a)](_0x2f3057,_0x43df0b);return;}logger['warn'](_0x5df03b(0xd8)+_0x43df0b[_0x5df03b(0x16c)]);try{fs[_0x5df03b(0x147)](_0x382b58,_0x47970c);}catch(_0x43cc27){_0x554c97[_0x5df03b(0x113)](),fs[_0x5df03b(0xd2)](_0x382b58,()=>{}),_0x146ba1[_0x5df03b(0x121)](_0x2f3057,_0x43cc27);return;}fs[_0x5df03b(0xd2)](_0x382b58,_0x2d1684=>{const _0x447843=_0x5df03b;_0x2d1684&&logger[_0x447843(0x1b8)](_0x447843(0xe3)+_0x2d1684[_0x447843(0x16c)]);});}_0x554c97[_0x5df03b(0x113)](),_0x146ba1[_0x5df03b(0xea)](_0x471138,_0x47970c);});});});});});}static['getTestFrameworkDetail'](){const _0x20a082=a85_0x2cd7a0;if(process[_0x20a082(0x14a)][_0x20a082(0x105)])return JSON[_0x20a082(0x1a3)](process[_0x20a082(0x14a)][_0x20a082(0x105)]);return this[_0x20a082(0x165)];}static[a85_0x2cd7a0(0x1a5)](){const _0xd0229a=a85_0x2cd7a0;if(process[_0xd0229a(0x14a)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0xd0229a(0x1a3)](process['env'][_0xd0229a(0x179)]);return this[_0xd0229a(0xdc)];}static['setFrameworkDetail'](_0xd9420c,_0x1e0f39){const _0x4f2554=a85_0x2cd7a0,_0x5229ea={'bzLXg':_0x4f2554(0x14c),'YLfKk':function(_0x5d15f5,_0x5f58a1){return _0x5d15f5(_0x5f58a1);},'WPErq':function(_0x4483a7,_0xad1c17){return _0x4483a7||_0xad1c17;}},_0x4394ad=_0x5229ea[_0x4f2554(0xe6)]['split']('|');let _0x4ee783=0x0;while(!![]){switch(_0x4394ad[_0x4ee783++]){case'0':this[_0x4f2554(0x165)]={'name':_0xd9420c,'version':{[_0xd9420c]:_0x5229ea[_0x4f2554(0x18a)](getFrameworkVersion,_0xd9420c)}};continue;case'1':process[_0x4f2554(0x14a)][_0x4f2554(0x179)]=JSON['stringify'](this[_0x4f2554(0xdc)]);continue;case'2':process[_0x4f2554(0x14a)][_0x4f2554(0x105)]=JSON['stringify'](this[_0x4f2554(0x165)]);continue;case'3':this[_0x4f2554(0xdc)]={'name':_0x1e0f39,'version':_0x5229ea[_0x4f2554(0x18a)](getFrameworkVersion,_0x1e0f39)};continue;case'4':_0x5229ea[_0x4f2554(0x1b4)](!_0xd9420c,!_0x1e0f39)&&logger[_0x4f2554(0x141)](_0x4f2554(0xef)+_0xd9420c+_0x4f2554(0x100)+_0x1e0f39);continue;}break;}}static['getHookRegistryKey'](_0x4af0af,_0x13e3a5){return _0x4af0af+':'+_0x13e3a5;}static[a85_0x2cd7a0(0x1a6)](){const _0x1916a2=a85_0x2cd7a0;return process[_0x1916a2(0x16a)]+':'+threadId;}static[a85_0x2cd7a0(0x10f)](_0x272f73){const _0x2a16ae=a85_0x2cd7a0;if(_0x272f73[_0x2a16ae(0xfb)]&&_0x272f73[_0x2a16ae(0xfb)][_0x2a16ae(0x126)])return!![];return![];}static['shouldSkipSessionStatus'](_0x11185c){const _0x57fd80=a85_0x2cd7a0;if(_0x11185c[_0x57fd80(0xfb)]&&_0x11185c[_0x57fd80(0xfb)]['skipSessionStatus'])return!![];return![];}static[a85_0x2cd7a0(0x13a)](_0x430398){const _0x5f995f=a85_0x2cd7a0,_0x210472=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x210472[_0x5f995f(0x14e)](_0x430398);}static['mergeObject'](_0x4c886e,_0x1fc104){const _0x2e1655=a85_0x2cd7a0,_0x57bad0={};_0x57bad0[_0x2e1655(0xec)]=function(_0x241ad1,_0x5972f1){return _0x241ad1!==_0x5972f1;},_0x57bad0['QVddo']=function(_0x7bb647,_0x2d2c2c){return _0x7bb647===_0x2d2c2c;},_0x57bad0[_0x2e1655(0xe4)]=_0x2e1655(0x19d);const _0x17bfb0=_0x57bad0;for(const [_0x4f8338,_0x3522f0]of Object[_0x2e1655(0xd6)](_0x1fc104)){if(_0x17bfb0[_0x2e1655(0xec)](_0x3522f0,null)&&_0x17bfb0[_0x2e1655(0x103)](typeof _0x3522f0,_0x17bfb0[_0x2e1655(0xe4)])&&!Array[_0x2e1655(0x107)](_0x3522f0))_0x4c886e[_0x4f8338]=this[_0x2e1655(0x195)](_0x4c886e[_0x4f8338]||{},_0x3522f0);else Array['isArray'](_0x3522f0)?_0x4c886e[_0x4f8338]=(_0x4c886e[_0x4f8338]||[])[_0x2e1655(0xfe)](_0x3522f0):_0x4c886e[_0x4f8338]=_0x3522f0;}return _0x4c886e;}}module[a85_0x2cd7a0(0xd5)]=CLIUtils;function a85_0x198d(){const _0x3b2258=['\x20version','DlOuf','chmod','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','uBfDM','../utils/apiUtilityMethods.js','RXxnZ','kSNFW','./state/automationFrameworkState.js','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','thBKO','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','xynWl','ScIao','rNQqY','testFrameworkDetail','KPDGQ','Setting\x20required\x20permissions\x20to\x20','lZmyh','version','pid','JomnW','message','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','preserveStatusCodeOnError','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','yvrhv','kYMgT','BROWSERSTACK_BINARY_URL','Failed\x20to\x20delete\x20zip\x20file:\x20','open','../../helpers/helper','Folder\x20','\x20from\x20','udjdc','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','timeout','511931qsXuKv','Development\x20Cli\x20Path:\x20','.sock','Downloading\x20SDK\x20binary\x20from:\x20','VuNCH','../../helpers/classLogger.js','SVtLh','node','trim','requestToUpdateCLI','cwd','error','getCLIParamsForDevEnv','lazyEntries','format','YLfKk','development','code','getSdkVersion','.tmp.','fileName','LjRXY','../../helpers/utilities','OYNKO','42BJJgHl','GET','mergeObject','SiNmd','41805972sztWPf','SDK_CLI_DOWNLOAD','QWhhY','existsSync','isBinaryBusy','bMnHG','object','checkAndUpdateCli','tPoog','smfQx','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','downloadLatestBinary','parse','openReadStream','getAutomationFrameworkDetail','getCurrentInstanceName','filter','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','data','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','oLOGU','wiDZF','pwPNv','./instances/testFrameworkInstance.js','PQdpS','hKaBq','isDirectory','closeSync','rgHsD','WPErq','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','statSync','setupCliPath','warn','wfTcJ','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','getSdkLanguage','PyQHd','CLI\x20version\x20found\x20despite\x20error:\x20\x22','DOWNLOAD_HTTP','unlink','stringify','DTXEC','exports','entries','unix:/tmp/sdk-platform-','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','fLOqt','3322LWHOvb','getExistingCliPath','automationFrameworkDetail','Wyiju','UAlLR','cuLci','kKnkx','3628652KgVMRU','AJyGQ','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','lXHEz','info','bzLXg','tmpdir','YLuvh','vpWmP','Yzabj','4153410oBHKXL','KOMdz','Lbyrq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','zScUT','get','binary-','once','statusCode','uhfeG','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','pipe','bjcij','ULbUx','sLYQe','testContextOptions','createWriteStream','readEntry','concat','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI',',\x20automationFramework=','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','wIqLv','QVddo','ghvig','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','.browserstack','isArray','start','BROWSERSTACK_FILES_DIR','osiDZ','NqAXU','TcpzQ','isFile','path','shouldSkipSessionName','rename','MMJZD','cli','close','BROWSERSTACK_CLI_ENV','DlGbA','126pBAEju','nBozx','0755','YdJky','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','cYlJc','response\x20','yauzl','stKxt','zNqsf','end','QScGk','Configuring\x20Cli\x20path.','cOMIm','tcgPg','getWritableDir','skipSessionName','901590OyjwLO','8YlXlzb','rdGBZ','arch','url','startsWith','XSHVd','worker_threads','ScenV','43100sJZhDc','219070XZjONl','SDK_CLI_CHECK_UPDATE','reduce','runShellCommand','includes','UILVf','oWhFu','../utils/constants','platform','matchHookRegex','map','Binary\x20is\x20busy:\x20','filePath','oMneY','rbaUq','resume','debug','cli_version','join','../../helpers/performance/constants','Resolved\x20binary\x20path:\x20','mtime','copyFileSync','5GmpDhk','SHELL_EXECUTE_ERROR','env','xBNVL','4|0|3|1|2','getCliDir','test','OziZp','DgTUf','HEzrT','MRejj','./state/testFrameworkState.js'];a85_0x198d=function(){return _0x3b2258;};return a85_0x198d();}
1
+ function a85_0xc1a3(_0x47016d,_0x39316b){const _0x283543=a85_0x2835();return a85_0xc1a3=function(_0xc1a3a6,_0x2e8e93){_0xc1a3a6=_0xc1a3a6-0x13a;let _0x3ede2f=_0x283543[_0xc1a3a6];return _0x3ede2f;},a85_0xc1a3(_0x47016d,_0x39316b);}const a85_0x14b694=a85_0xc1a3;(function(_0x3eec03,_0x541e0a){const _0x198c97=a85_0xc1a3,_0x4ec5ef=_0x3eec03();while(!![]){try{const _0x207343=-parseInt(_0x198c97(0x227))/0x1*(-parseInt(_0x198c97(0x1c0))/0x2)+-parseInt(_0x198c97(0x192))/0x3+parseInt(_0x198c97(0x1f6))/0x4*(-parseInt(_0x198c97(0x18a))/0x5)+-parseInt(_0x198c97(0x1e1))/0x6+parseInt(_0x198c97(0x1da))/0x7+parseInt(_0x198c97(0x16d))/0x8+parseInt(_0x198c97(0x1a7))/0x9;if(_0x207343===_0x541e0a)break;else _0x4ec5ef['push'](_0x4ec5ef['shift']());}catch(_0x3d0341){_0x4ec5ef['push'](_0x4ec5ef['shift']());}}}(a85_0x2835,0xb60e8));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x14b694(0x182)),{exec}=require('child_process'),{https}=require(a85_0x14b694(0x1e3)),yauzl=require(a85_0x14b694(0x1c1)),util=require(a85_0x14b694(0x221)),{getFrameworkVersion}=require(a85_0x14b694(0x1c2)),{threadId}=require('worker_threads'),PerformanceTester=require(a85_0x14b694(0x1cd)),{EVENTS:PerformanceEvents}=require(a85_0x14b694(0x1c3)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x14b694(0x188)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x14b694(0x22d)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x14b694(0x21e)),{createClassLogger}=require(a85_0x14b694(0x1dd)),TestFrameworkInstance=require(a85_0x14b694(0x15c)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x14b694(0x177)),AutomationFrameworkState=require(a85_0x14b694(0x1e8)),TestFrameworkConstants=require(a85_0x14b694(0x19f)),logger=createClassLogger(a85_0x14b694(0x1c8)),{getBStackAPIUrl}=require(a85_0x14b694(0x1d1));function a85_0x2835(){const _0x3a0625=[',\x20automationFramework=','lazyEntries','get','getCLIParamsForDevEnv','stringify','TRmUb','basename','vfnBU','testContextOptions','./framework/constants/testFrameworkConstants.js','warn','SDK_CLI_DOWNLOAD','readEntry','ftbSH','cIMqC','kMFHG','Configuring\x20Cli\x20path.','19651887NAirOi','length','eisPn','BROWSERSTACK_BINARY_URL','Development\x20Cli\x20Path:\x20','.tmp.','nXyRy','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','prvUe','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','GPenH','SEkHj','CgCMR','jQeOC','BROWSERSTACK_FILES_DIR','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','Setting\x20required\x20permissions\x20to\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','DOWNLOAD_HTTP','response\x20','pipe','LKmSm','tzBXj','1021886zivLPB','yauzl','../../helpers/test-observability/utils.js','../../helpers/performance/constants','end','ktwPK','map','kKtJx','CLIUtils','CLI\x20version\x20found\x20despite\x20error:\x20\x22','isFile','resume','matchHookRegex','../../helpers/performance/performance-tester.js','includes','getAutomationFrameworkDetail','Folder\x20does\x20not\x20exist:\x20','../utils/apiUtilityMethods.js','statusCode','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','tNChs','SDK_CLI_CHECK_UPDATE','test','HTTP\x20','JxYoP','5783540eBnYFC','iZSzZ','vomsx','../../helpers/classLogger.js','gezhs','zqcdx','pBFmQ','8659182xAbpac','BROWSERSTACK_CLI_ENV','follow-redirects','QrtPp','fhWsp','downloadLatestBinary','KhBjf','./state/automationFrameworkState.js','pid','cwd','vocMm','ROqBF','close','Qhyjh','getSdkVersion','trim','HVkbi','utQkd','startsWith','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','openReadStream','20xeljKr','Intis','EJrJM','skipSessionStatus','bstpK','0755','createWriteStream','Resolving\x20with\x20stdout:\x20\x22','checkAndUpdateCli','isDirectory','setFrameworkDetail','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','object','.sock','dGTdb','RwWIV','rfIRM','testFrameworkDetail','info','requestToUpdateCLI','KyHsD','DUJZh','vDCum','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','getTestFrameworkDetail','entries','mergeObject','homedir','DxCUj','ZlaHk','JlZQx','error','filePath','igNyi','automationFrameworkDetail','start','url','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','YNQiP','../utils/constants','wJjJV','pQyuA','util','YynPe','Failed\x20to\x20delete\x20zip\x20file:\x20','zPEzL','env','ZnVWn','1XgiZqR','getHookRegistryKey','unlink','fileName','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','.browserstack','../../helpers/helper','getSdkLanguage','HOOK_REGEX','statSync','isBinaryBusy','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','ZDdaN','isArray','runShellCommand','dlnXM','unix:/tmp/sdk-platform-','\x20version','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','join','apUeN','../../../package.json','split','ruvjq','lwGWh','format','debug','code','0|4|2|1|3','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','nsiBj','entry','ZkPuf','kJJcc','wcFkr','cIYXN','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','cli','listen','udWZh','sZDSk','cli_version','getCurrentInstanceName','enBwG','./instances/testFrameworkInstance.js','chmod','SwBdR','downloaded_file_','mtime','timeout','mYtsB','node','yxXgj','bngTC','rQxXh','JeHHM','gAQXi','destroy','.zip','rwuzd','GET','6189528WYLLWx','Jysby','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','DwNZK','kbyST','parse','platform','preserveStatusCodeOnError','jXngT','readdirSync','./state/testFrameworkState.js','skipSessionName','Downloading\x20SDK\x20binary\x20from:\x20','Resolved\x20binary\x20path:\x20','concat','shouldSkipSessionName','message','arch','data','EdRYB','existsSync','path','isDevelopmentEnv','BmHsR','qLZcj','gBCXN','qIrNP','../../helpers/utilities','getCliDir','1403425wNfHrw','VnfAH','once','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','kAulQ','rename','yGdcj','iKaGd','2106213vWnLCT','filter','downloadFileStream','SDK_CLI_BIN_PATH'];a85_0x2835=function(){return _0x3a0625;};return a85_0x2835();}class CLIUtils{[a85_0x14b694(0x219)]={};[a85_0x14b694(0x207)]={};static[a85_0x14b694(0x183)](){const _0x47bc88=a85_0x14b694,_0x540da3={};_0x540da3['HVkbi']=function(_0x34015f,_0x3e6426){return _0x34015f===_0x3e6426;},_0x540da3['DUJZh']='development';const _0x118a4e=_0x540da3;return _0x118a4e[_0x47bc88(0x1f1)](process['env'][_0x47bc88(0x1e2)],_0x118a4e[_0x47bc88(0x20b)]);}static[a85_0x14b694(0x199)](){const _0x81aa7c=a85_0x14b694,_0x4a919b={};return _0x4a919b['id']=process['env'][_0x81aa7c(0x1e2)],_0x4a919b[_0x81aa7c(0x156)]=_0x81aa7c(0x140)+process[_0x81aa7c(0x225)]['BROWSERSTACK_CLI_ENV']+_0x81aa7c(0x203),_0x4a919b;}static[a85_0x14b694(0x1ef)](){const _0x2079ea=a85_0x14b694,_0x55ed08={'zPEzL':function(_0x2f98de,_0x173b66){return _0x2f98de(_0x173b66);},'kbyST':_0x2079ea(0x145)};return _0x55ed08[_0x2079ea(0x224)](require,_0x55ed08[_0x2079ea(0x171)])['version'];}static['getSdkLanguage'](){const _0x28afde=a85_0x14b694,_0xf54f4d={};_0xf54f4d[_0x28afde(0x1e4)]=_0x28afde(0x163);const _0x203866=_0xf54f4d;return _0x203866[_0x28afde(0x1e4)];}static async['setupCliPath'](_0x4f890b){const _0x20b3b1=a85_0x14b694,_0x1c6a86={'JeHHM':_0x20b3b1(0x1a6),'Intis':function(_0x4ae323,_0xa69bd6){return _0x4ae323(_0xa69bd6);},'ybDpJ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x20b3b1(0x14a)](_0x1c6a86[_0x20b3b1(0x167)]);const _0x56f910=process[_0x20b3b1(0x225)][_0x20b3b1(0x195)];if(!_0x1c6a86[_0x20b3b1(0x1f7)](isNullOrEmpty,_0x56f910))return logger[_0x20b3b1(0x14a)](_0x20b3b1(0x1ab)+_0x56f910),_0x56f910;try{const _0x1e5ffe=this['getCliDir']();if(_0x1c6a86['Intis'](isNullOrEmpty,_0x1e5ffe))throw new Error(_0x1c6a86['ybDpJ']);const _0x35bec6=this['getExistingCliPath'](_0x1e5ffe),_0x27dbf6=await this['checkAndUpdateCli'](_0x35bec6,_0x1e5ffe,_0x4f890b);return logger[_0x20b3b1(0x14a)](_0x20b3b1(0x17a)+_0x27dbf6),_0x27dbf6;}catch(_0xd7cfdf){logger['debug'](_0x20b3b1(0x1ae)+util[_0x20b3b1(0x149)](_0xd7cfdf));}return null;}static async[a85_0x14b694(0x1fe)](_0x24a784,_0x4ec90a,_0x31fdc6){const _0x37c790=a85_0x14b694,_0x442ca8={'udWZh':function(_0x432e2e){return _0x432e2e();},'bstpK':function(_0x474c66,_0x30e9e){return _0x474c66(_0x30e9e);},'mYtsB':function(_0x2b5a43,_0x52e09f,_0x19750d){return _0x2b5a43(_0x52e09f,_0x19750d);},'EdRYB':_0x37c790(0x17f),'cIYXN':_0x37c790(0x21b),'zqcdx':function(_0x53c407,_0x3bde2a){return _0x53c407(_0x3bde2a);}};PerformanceTester[_0x37c790(0x21a)](PerformanceEvents[_0x37c790(0x1d6)]);try{logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x24a784);const _0x2e534e=_0x442ca8[_0x37c790(0x157)](getHostInfo),_0x21badf={'sdk_version':CLIUtils[_0x37c790(0x1ef)](),'os':_0x2e534e[_0x37c790(0x173)],'os_arch':_0x2e534e[_0x37c790(0x17e)],'cli_version':'0','sdk_language':this[_0x37c790(0x22e)]()};!_0x442ca8[_0x37c790(0x1fa)](isNullOrEmpty,_0x24a784)&&(_0x21badf[_0x37c790(0x159)]=await this[_0x37c790(0x13e)](_0x24a784+_0x37c790(0x141)));const _0x3ae9b1=await this[_0x37c790(0x209)](_0x21badf,_0x31fdc6);process[_0x37c790(0x225)][_0x37c790(0x1aa)]&&(logger[_0x37c790(0x208)](_0x37c790(0x201)+process[_0x37c790(0x225)][_0x37c790(0x1aa)]),_0x3ae9b1[_0x37c790(0x17f)][_0x37c790(0x21b)]=process['env'][_0x37c790(0x1aa)]);if(_0x442ca8[_0x37c790(0x162)](nestedKeyValue,_0x3ae9b1,[_0x442ca8[_0x37c790(0x180)],_0x442ca8[_0x37c790(0x153)]])){logger['debug'](_0x37c790(0x1f4)+_0x21badf[_0x37c790(0x159)]);if(!_0x442ca8[_0x37c790(0x1df)](isNullOrEmpty,_0x24a784)&&this[_0x37c790(0x13a)](_0x24a784))return logger[_0x37c790(0x1a0)](_0x37c790(0x1b8)+_0x24a784),_0x24a784;return await this[_0x37c790(0x1e6)](_0x442ca8[_0x37c790(0x162)](nestedKeyValue,_0x3ae9b1,[_0x442ca8[_0x37c790(0x180)],_0x442ca8['cIYXN']]),_0x4ec90a);}return _0x24a784;}finally{PerformanceTester[_0x37c790(0x1c4)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a85_0x14b694(0x189)](){const _0xd60dbc=a85_0x14b694,_0x53d979={'wJjJV':function(_0xbe7797,_0x2789ac){return _0xbe7797(_0x2789ac);},'LvUit':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','YNQiP':_0xd60dbc(0x155),'gAQXi':function(_0x395fbf,_0x2737de){return _0x395fbf(_0x2737de);}},_0xd83a8c=this['getWritableDir']();try{if(_0x53d979[_0xd60dbc(0x21f)](isNullOrEmpty,_0xd83a8c))throw new Error(_0x53d979['LvUit']);const _0xb7330=path[_0xd60dbc(0x143)](_0xd83a8c,_0x53d979[_0xd60dbc(0x21d)]);return!fs[_0xd60dbc(0x181)](_0xb7330)&&_0x53d979[_0xd60dbc(0x168)](createDir,_0xb7330),_0xb7330;}catch(_0x42e397){logger[_0xd60dbc(0x14a)](_0xd60dbc(0x14d)+util[_0xd60dbc(0x149)](_0x42e397));}}static['getWritableDir'](){const _0x408c17=a85_0x14b694,_0x57b71c={'yxXgj':_0x408c17(0x22c),'apUeN':function(_0x423707,_0x41362e){return _0x423707(_0x41362e);},'gezhs':function(_0x1260aa,_0x4a29f3){return _0x1260aa(_0x4a29f3);}},_0x464388=[process[_0x408c17(0x225)][_0x408c17(0x1b7)],path['join'](os[_0x408c17(0x212)](),_0x57b71c[_0x408c17(0x164)]),path[_0x408c17(0x143)](os['tmpdir'](),_0x57b71c[_0x408c17(0x164)])];for(const _0x5619aa of _0x464388){if(_0x57b71c[_0x408c17(0x144)](isNullOrEmpty,_0x5619aa))continue;try{if(fs[_0x408c17(0x181)](_0x5619aa)){logger[_0x408c17(0x14a)]('Folder\x20'+_0x5619aa+'\x20already\x20exists');if(!_0x57b71c['apUeN'](isModifiable,_0x5619aa)){logger[_0x408c17(0x14a)](_0x408c17(0x1b9)+_0x5619aa);const _0x53c06c=_0x57b71c['apUeN'](setReadWriteExecuteAccess,_0x5619aa);if(!_0x57b71c[_0x408c17(0x144)](isTrue,_0x53c06c)){logger[_0x408c17(0x1a0)](_0x408c17(0x13b)+_0x5619aa);continue;}}}else{logger[_0x408c17(0x14a)](_0x408c17(0x1d0)+_0x5619aa),_0x57b71c['gezhs'](createDir,_0x5619aa),logger['debug'](_0x408c17(0x1b9)+_0x5619aa);const _0x595c69=_0x57b71c['gezhs'](setReadWriteExecuteAccess,_0x5619aa);!_0x57b71c[_0x408c17(0x1de)](isTrue,_0x595c69)&&logger[_0x408c17(0x1a0)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x5619aa);}return _0x5619aa;}catch(_0x7ac158){logger['error'](_0x408c17(0x20d)+util[_0x408c17(0x149)](_0x7ac158));}}return null;}static['getExistingCliPath'](_0x27a958){const _0x43e5ae=a85_0x14b694,_0x3a2d79={};_0x3a2d79['yGdcj']=function(_0x4855ed,_0x3026da){return _0x4855ed>_0x3026da;};const _0x72765a=_0x3a2d79;try{if(!fs[_0x43e5ae(0x181)](_0x27a958)||!fs['statSync'](_0x27a958)[_0x43e5ae(0x1ff)]())return'';const _0x270f35=fs[_0x43e5ae(0x176)](_0x27a958)[_0x43e5ae(0x1c6)](_0x36ef12=>path[_0x43e5ae(0x143)](_0x27a958,_0x36ef12))[_0x43e5ae(0x193)](_0x536682=>fs[_0x43e5ae(0x230)](_0x536682)[_0x43e5ae(0x1ca)]()&&path[_0x43e5ae(0x19c)](_0x536682)[_0x43e5ae(0x1f3)]('binary-'));if(_0x72765a[_0x43e5ae(0x190)](_0x270f35[_0x43e5ae(0x1a8)],0x0)){const _0x51886f=_0x270f35['map'](_0x59e2d0=>({'filePath':_0x59e2d0,'mtime':fs[_0x43e5ae(0x230)](_0x59e2d0)['mtime']}))['reduce']((_0x4dd36b,_0x94e3fd)=>{const _0x2f63a6=_0x43e5ae;if(!_0x4dd36b||!_0x4dd36b[_0x2f63a6(0x160)])return _0x94e3fd;if(_0x72765a[_0x2f63a6(0x190)](_0x94e3fd[_0x2f63a6(0x160)],_0x4dd36b[_0x2f63a6(0x160)]))return _0x94e3fd;return _0x4dd36b;},{});return _0x51886f?_0x51886f[_0x43e5ae(0x217)]:'';}return'';}catch(_0x3294f4){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x43e5ae(0x149)](_0x3294f4)),'';}}static [a85_0x14b694(0x209)]=async(_0x102057,_0xc2061b)=>{const _0x3a55a7=a85_0x14b694,_0x593364={'Qhyjh':function(_0x12e0ef,_0x5c94e8,_0x5906c1,_0x287208,_0x54096d){return _0x12e0ef(_0x5c94e8,_0x5906c1,_0x287208,_0x54096d);},'qlHNt':_0x3a55a7(0x16c)},_0x35c914={};_0x35c914['qs']=_0x102057,_0x35c914[_0x3a55a7(0x174)]=!![];const _0x29ee3c=await _0x593364[_0x3a55a7(0x1ee)](nodeRequest,_0x593364['qlHNt'],UPDATED_CLI_ENDPOINT,_0x35c914,_0xc2061b);return logger[_0x3a55a7(0x14a)](_0x3a55a7(0x1bc)+JSON[_0x3a55a7(0x19a)](_0x29ee3c)),_0x29ee3c;};static['isBinaryBusy'](_0x483f35){const _0x529ba4=a85_0x14b694;try{const _0x311e96=fs['openSync'](_0x483f35,'r+');return fs['closeSync'](_0x311e96),![];}catch(_0x4db068){if(BINARY_BUSY_ERROR_CODES[_0x529ba4(0x1ce)](_0x4db068['code']))return logger[_0x529ba4(0x14a)]('Binary\x20is\x20busy:\x20'+_0x483f35),!![];return logger[_0x529ba4(0x14a)](_0x529ba4(0x1d3)+_0x4db068[_0x529ba4(0x17d)]),![];}}static[a85_0x14b694(0x13e)](_0x54ef24,_0x45660b=''){const _0x2a41a6={'jQeOC':'version','eisPn':function(_0x12a4bf,_0x6779ad){return _0x12a4bf(_0x6779ad);},'iKaGd':'SHELL_EXECUTE_ERROR','gBCXN':function(_0x35587b,_0x2e0967,_0x4e8a6b,_0x5c3b29){return _0x35587b(_0x2e0967,_0x4e8a6b,_0x5c3b29);},'SwBdR':'error'};return new Promise((_0x3a4766,_0x1b0317)=>{const _0x14a7e2=a85_0xc1a3,_0x104582={};_0x104582[_0x14a7e2(0x1ea)]=_0x45660b,_0x104582[_0x14a7e2(0x161)]=0x1388;const _0x33ee2b=_0x2a41a6[_0x14a7e2(0x186)](exec,_0x54ef24,_0x104582,(_0x372e4d,_0xbec26f,_0x3b1bfe)=>{const _0x3ca69a=_0x14a7e2;if(_0x372e4d){if(_0x54ef24[_0x3ca69a(0x1ce)](_0x2a41a6[_0x3ca69a(0x1b6)])&&(_0xbec26f[_0x3ca69a(0x1f0)]()||_0x3b1bfe[_0x3ca69a(0x1f0)]())){const _0x27175a=_0xbec26f[_0x3ca69a(0x1f0)]()||_0x3b1bfe[_0x3ca69a(0x1f0)]();logger['debug'](_0x3ca69a(0x1c9)+_0x27175a+'\x22'),_0x2a41a6[_0x3ca69a(0x1a9)](_0x3a4766,_0x27175a);}else _0x2a41a6['eisPn'](_0x3a4766,_0x3b1bfe['trim']()||_0x2a41a6[_0x3ca69a(0x191)]);}else logger[_0x3ca69a(0x14a)](_0x3ca69a(0x1fd)+_0xbec26f['trim']()+'\x22'),_0x2a41a6[_0x3ca69a(0x1a9)](_0x3a4766,_0xbec26f[_0x3ca69a(0x1f0)]());});_0x33ee2b['on'](_0x2a41a6[_0x14a7e2(0x15e)],()=>{const _0x14ae6b=_0x14a7e2;_0x2a41a6[_0x14ae6b(0x1a9)](_0x3a4766,_0x2a41a6[_0x14ae6b(0x191)]);});});}static [a85_0x14b694(0x1e6)]=async(_0x40cfed,_0x2d3040)=>{const _0x37f714=a85_0x14b694,_0x3c9f3a={'ZnVWn':function(_0x1af439,_0x34dfc1){return _0x1af439(_0x34dfc1);},'RwWIV':_0x37f714(0x22b),'ZlaHk':_0x37f714(0x1b1),'igNyi':function(_0x21b252,_0x421c8c){return _0x21b252>=_0x421c8c;},'nfsVq':_0x37f714(0x1bb),'rBLyS':_0x37f714(0x1b2),'KhBjf':'error','cIMqC':_0x37f714(0x18d)};PerformanceTester[_0x37f714(0x21a)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x37f714(0x14a)](_0x37f714(0x179)+_0x40cfed);try{const _0xc0bfec=url[_0x37f714(0x172)](_0x40cfed),_0x2bb4b2=path[_0x37f714(0x143)](_0x2d3040,_0x37f714(0x15f)+process[_0x37f714(0x1e9)]+_0x37f714(0x16a)),_0x21d71d=fs[_0x37f714(0x1fc)](_0x2bb4b2);return new Promise((_0x4a0d6e,_0x3eb2fd)=>{const _0x3363b4=_0x37f714,_0x5b0c3d={'GPenH':_0x3c9f3a[_0x3363b4(0x205)],'SEkHj':function(_0x13cbe6,_0xd1d68e){return _0x3c9f3a['ZnVWn'](_0x13cbe6,_0xd1d68e);},'rfIRM':_0x3c9f3a[_0x3363b4(0x214)],'ZDdaN':function(_0x5ce8b0,_0x4e4007){const _0x1c6a5b=_0x3363b4;return _0x3c9f3a[_0x1c6a5b(0x218)](_0x5ce8b0,_0x4e4007);},'iZSzZ':_0x3c9f3a['nfsVq'],'dlnXM':_0x3c9f3a['rBLyS'],'kMFHG':_0x3c9f3a[_0x3363b4(0x1e7)]};https[_0x3363b4(0x198)](_0xc0bfec,function(_0x2c65c5){const _0x3b3c80=_0x3363b4,_0x5a8daa={'YynPe':_0x5b0c3d[_0x3b3c80(0x206)],'lwGWh':function(_0x417ab3,_0x448828){const _0x442f43=_0x3b3c80;return _0x5b0c3d[_0x442f43(0x1b4)](_0x417ab3,_0x448828);}},_0x1a3b1e=null;if(_0x2c65c5[_0x3b3c80(0x1d2)]&&_0x5b0c3d[_0x3b3c80(0x13c)](_0x2c65c5[_0x3b3c80(0x1d2)],0x190)){const _0x4c28cd=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x2c65c5[_0x3b3c80(0x1d2)]+'\x20from\x20'+_0x40cfed);_0x4c28cd['code']=_0x5b0c3d[_0x3b3c80(0x1db)],_0x4c28cd[_0x3b3c80(0x1d2)]=_0x2c65c5[_0x3b3c80(0x1d2)],logger[_0x3b3c80(0x216)](util['format'](_0x5b0c3d[_0x3b3c80(0x13f)],_0x2c65c5[_0x3b3c80(0x1d2)])),PerformanceTester['end'](PerformanceEvents[_0x3b3c80(0x1a1)],![],_0x3b3c80(0x1d8)+_0x2c65c5[_0x3b3c80(0x1d2)]),_0x2c65c5[_0x3b3c80(0x1cb)](),_0x21d71d[_0x3b3c80(0x169)](),fs[_0x3b3c80(0x229)](_0x2bb4b2,()=>{}),_0x5b0c3d[_0x3b3c80(0x1b4)](_0x3eb2fd,_0x4c28cd);return;}_0x2c65c5[_0x3b3c80(0x1bd)](_0x21d71d),_0x2c65c5['on'](_0x5b0c3d[_0x3b3c80(0x1a5)],function(_0x830f15){const _0x259f6c=_0x3b3c80;logger[_0x259f6c(0x216)](util[_0x259f6c(0x149)](_0x5a8daa[_0x259f6c(0x222)],_0x830f15)),PerformanceTester[_0x259f6c(0x1c4)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x830f15)),_0x5a8daa['lwGWh'](_0x3eb2fd,_0x830f15);}),_0x21d71d['on'](_0x5b0c3d['kMFHG'],function(_0x18cb4c){const _0x1529f3=_0x3b3c80;logger[_0x1529f3(0x216)](util['format'](_0x5b0c3d[_0x1529f3(0x1b3)],_0x18cb4c)),PerformanceTester[_0x1529f3(0x1c4)](PerformanceEvents[_0x1529f3(0x1a1)],![],util[_0x1529f3(0x149)](_0x18cb4c)),_0x5b0c3d[_0x1529f3(0x1b4)](_0x3eb2fd,_0x18cb4c);}),CLIUtils[_0x3b3c80(0x194)](_0x21d71d,_0x1a3b1e,_0x2bb4b2,_0x2d3040,_0x38fe23=>{const _0x2b3b1d=_0x3b3c80;PerformanceTester[_0x2b3b1d(0x1c4)](PerformanceEvents[_0x2b3b1d(0x1a1)]),_0x5a8daa[_0x2b3b1d(0x148)](_0x4a0d6e,_0x38fe23);},_0x141580=>{const _0x4763bb=_0x3b3c80;PerformanceTester[_0x4763bb(0x1c4)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4763bb(0x149)](_0x141580)),_0x5a8daa['lwGWh'](_0x3eb2fd,_0x141580);});})['on'](_0x3c9f3a[_0x3363b4(0x1e7)],function(_0x3fcfa7){const _0x812127=_0x3363b4;logger[_0x812127(0x216)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x812127(0x149)](_0x3fcfa7)),PerformanceTester[_0x812127(0x1c4)](PerformanceEvents[_0x812127(0x1a1)],![],util[_0x812127(0x149)](_0x3fcfa7)),_0x3c9f3a[_0x812127(0x226)](_0x3eb2fd,_0x3fcfa7);});});}catch(_0x2aa0f3){PerformanceTester[_0x37f714(0x1c4)](PerformanceEvents[_0x37f714(0x1a1)],![],util[_0x37f714(0x149)](_0x2aa0f3)),logger[_0x37f714(0x216)](util[_0x37f714(0x149)](_0x3c9f3a[_0x37f714(0x1a4)],_0x2aa0f3));throw _0x2aa0f3;}};static[a85_0x14b694(0x194)](_0x1f67c5,_0x1ad885,_0x85d9e4,_0x2c3c5e,_0x2e3802,_0x11bd00){const _0x475e2b=a85_0x14b694,_0x131c50={'vfnBU':_0x475e2b(0x1ed),'kAulQ':function(_0x506d1e,_0x2a9ac0){return _0x506d1e(_0x2a9ac0);},'ZkPuf':_0x475e2b(0x1c4),'vDCum':function(_0x5a8e77,_0x4f7191){return _0x5a8e77!==_0x4f7191;},'HrAbq':function(_0x2682bb,_0x4bd17e){return _0x2682bb(_0x4bd17e);},'BmHsR':function(_0x4a26e7,_0x49fee4){return _0x4a26e7(_0x49fee4);},'dGTdb':_0x475e2b(0x216),'wcFkr':function(_0x43571f,_0x21612e){return _0x43571f(_0x21612e);},'kKtJx':function(_0x2011f6,_0x3f6a72){return _0x2011f6!==_0x3f6a72;},'jXngT':'EXDEV','nXyRy':_0x475e2b(0x1fb),'qLZcj':_0x475e2b(0x14f)};_0x1f67c5['on'](_0x131c50[_0x475e2b(0x19d)],function(){const _0x21a683=_0x475e2b,_0xc95706={'LKmSm':_0x131c50[_0x21a683(0x19d)],'ruvjq':function(_0x14023c,_0x11d88d){const _0x103063=_0x21a683;return _0x131c50[_0x103063(0x18e)](_0x14023c,_0x11d88d);},'kJJcc':_0x131c50[_0x21a683(0x150)],'JlZQx':function(_0x3dbddc,_0x4c6da2){const _0xae9c84=_0x21a683;return _0x131c50[_0xae9c84(0x20c)](_0x3dbddc,_0x4c6da2);},'rQxXh':function(_0x51ed3f,_0x4140df){return _0x131c50['HrAbq'](_0x51ed3f,_0x4140df);},'qIrNP':function(_0x556061,_0x1ffd76){const _0x713f14=_0x21a683;return _0x131c50[_0x713f14(0x184)](_0x556061,_0x1ffd76);},'fhWsp':_0x131c50[_0x21a683(0x204)],'prvUe':function(_0x105ab7,_0xf08220){const _0x2cb65f=_0x21a683;return _0x131c50[_0x2cb65f(0x152)](_0x105ab7,_0xf08220);},'nsiBj':function(_0x3cbd59,_0x361dc6){const _0x3e0595=_0x21a683;return _0x131c50[_0x3e0595(0x152)](_0x3cbd59,_0x361dc6);},'ktwPK':function(_0x18e145,_0xc3e20b){const _0x500fbe=_0x21a683;return _0x131c50[_0x500fbe(0x1c7)](_0x18e145,_0xc3e20b);},'ftbSH':_0x131c50[_0x21a683(0x175)],'tNChs':_0x131c50[_0x21a683(0x1ad)],'TRmUb':_0x131c50[_0x21a683(0x185)]},_0xd4b0c8={};_0xd4b0c8[_0x21a683(0x197)]=!![],yauzl['open'](_0x85d9e4,_0xd4b0c8,function(_0x39d140,_0x666898){const _0x136ca3=_0x21a683,_0x387845={'bngTC':function(_0xa4d2a5,_0x5544a8){const _0x51338d=a85_0xc1a3;return _0xc95706[_0x51338d(0x14e)](_0xa4d2a5,_0x5544a8);},'JxYoP':function(_0x42f883,_0x3f532d){const _0x48d7a8=a85_0xc1a3;return _0xc95706[_0x48d7a8(0x187)](_0x42f883,_0x3f532d);},'CgCMR':function(_0x11198c,_0x128eab){const _0x5e616f=a85_0xc1a3;return _0xc95706[_0x5e616f(0x1c5)](_0x11198c,_0x128eab);},'utQkd':_0xc95706[_0x136ca3(0x1a3)],'EJrJM':_0xc95706[_0x136ca3(0x1d5)]};if(_0x39d140){_0xc95706[_0x136ca3(0x1af)](_0x11bd00,_0x39d140);return;}_0x666898[_0x136ca3(0x1a2)](),_0x666898['on'](_0xc95706[_0x136ca3(0x19b)],_0x4cdd45=>{const _0x43bc48=_0x136ca3,_0x59888a={'sZDSk':_0xc95706[_0x43bc48(0x1be)],'DwNZK':function(_0xc3b373,_0xf890d0){const _0x3404b4=_0x43bc48;return _0xc95706[_0x3404b4(0x147)](_0xc3b373,_0xf890d0);},'pQyuA':_0xc95706[_0x43bc48(0x151)]};if(/\/$/[_0x43bc48(0x1d7)](_0x4cdd45[_0x43bc48(0x22a)])){_0x666898['readEntry']();return;}!_0x1ad885&&(_0x1ad885=_0x4cdd45[_0x43bc48(0x22a)]);if(_0xc95706[_0x43bc48(0x215)](_0x4cdd45[_0x43bc48(0x22a)],_0x1ad885))_0x666898[_0x43bc48(0x1a2)]();else{const _0x543067=_0x4cdd45[_0x43bc48(0x22a)],_0x31913c=path[_0x43bc48(0x143)](_0x2c3c5e,_0x543067+_0x43bc48(0x1ac)+process[_0x43bc48(0x1e9)]);let _0x49f284;try{_0x49f284=fs[_0x43bc48(0x1fc)](_0x31913c);}catch(_0x234aa0){if(BINARY_BUSY_ERROR_CODES['includes'](_0x234aa0[_0x43bc48(0x14b)])){const _0x1b539d=path['join'](_0x2c3c5e,_0x543067);if(fs[_0x43bc48(0x181)](_0x1b539d)){logger[_0x43bc48(0x1a0)](_0x43bc48(0x1d4)+_0x543067),fs['unlink'](_0x85d9e4,_0x130d0b=>{const _0x490839=_0x43bc48;_0x130d0b&&logger[_0x490839(0x1a0)](_0x490839(0x223)+_0x85d9e4);}),_0xc95706[_0x43bc48(0x166)](_0x2e3802,_0x1b539d);return;}logger[_0x43bc48(0x1a0)](_0x43bc48(0x154)+_0x543067);}_0xc95706[_0x43bc48(0x187)](_0x11bd00,_0x234aa0);return;}_0x49f284['on'](_0xc95706[_0x43bc48(0x1e5)],_0xefc9ed=>{const _0x4b133b=_0x43bc48;if(BINARY_BUSY_ERROR_CODES[_0x4b133b(0x1ce)](_0xefc9ed[_0x4b133b(0x14b)])){const _0x54673d=path[_0x4b133b(0x143)](_0x2c3c5e,_0x543067);_0x49f284[_0x4b133b(0x1ed)](),fs[_0x4b133b(0x181)](_0x54673d)?(logger[_0x4b133b(0x1a0)](_0x4b133b(0x21c)+_0xefc9ed[_0x4b133b(0x17d)]),_0x666898[_0x4b133b(0x1ed)](),fs[_0x4b133b(0x229)](_0x85d9e4,_0x1c8e07=>{const _0x358778=_0x4b133b;_0x1c8e07&&logger[_0x358778(0x1a0)](_0x358778(0x223)+_0x85d9e4);}),_0x387845[_0x4b133b(0x165)](_0x2e3802,_0x54673d)):(logger[_0x4b133b(0x1a0)](_0x4b133b(0x1b0)+_0xefc9ed[_0x4b133b(0x17d)]),fs[_0x4b133b(0x229)](_0x31913c,()=>{}),_0x387845[_0x4b133b(0x1d9)](_0x11bd00,_0xefc9ed));}else fs[_0x4b133b(0x229)](_0x31913c,()=>{}),_0x387845[_0x4b133b(0x165)](_0x11bd00,_0xefc9ed);}),_0x666898[_0x43bc48(0x1f5)](_0x4cdd45,function(_0x4f5490,_0x506b90){const _0x4b9068=_0x43bc48;if(_0x4f5490){fs[_0x4b9068(0x229)](_0x31913c,()=>{}),_0x59888a[_0x4b9068(0x170)](_0x11bd00,_0x4f5490);return;}_0x506b90['on'](_0x59888a[_0x4b9068(0x220)],function(){const _0x5eb922=_0x4b9068;_0x49f284[_0x5eb922(0x1c4)](),_0x49f284['on'](_0x59888a[_0x5eb922(0x158)],function(){const _0x1f0a9c=_0x5eb922;_0x666898[_0x1f0a9c(0x1a2)]();});}),_0x506b90['pipe'](_0x49f284);});}}),_0x666898['on'](_0xc95706[_0x136ca3(0x1e5)],_0x47f559=>{_0xc95706['prvUe'](_0x11bd00,_0x47f559);}),_0x666898[_0x136ca3(0x18c)](_0xc95706['kJJcc'],()=>{const _0x25ca99=_0x136ca3,_0x384728={'VnfAH':function(_0x360d7e,_0x1ff3e7){const _0x4bf72c=a85_0xc1a3;return _0x387845[_0x4bf72c(0x1b5)](_0x360d7e,_0x1ff3e7);},'vocMm':_0x387845[_0x25ca99(0x1f2)],'DxCUj':function(_0x57d493,_0x297849){return _0x387845['bngTC'](_0x57d493,_0x297849);},'Jysby':function(_0x585f00,_0x25e514){const _0x16841b=_0x25ca99;return _0x387845[_0x16841b(0x1d9)](_0x585f00,_0x25e514);},'pBFmQ':function(_0x311634,_0x4a304f){const _0x13b2b3=_0x25ca99;return _0x387845[_0x13b2b3(0x165)](_0x311634,_0x4a304f);}};fs[_0x25ca99(0x229)](_0x85d9e4,_0x198271=>{const _0x42471b=_0x25ca99;_0x198271&&logger[_0x42471b(0x1a0)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x85d9e4);});const _0x51c859=path[_0x25ca99(0x143)](_0x2c3c5e,_0x1ad885+'.tmp.'+process['pid']),_0x184a7d=path['join'](_0x2c3c5e,_0x1ad885);fs[_0x25ca99(0x15d)](_0x51c859,_0x387845[_0x25ca99(0x1f8)],function(_0x203eae){const _0x1143f5=_0x25ca99,_0x484fa9={'JTFlO':function(_0x11865b,_0x215b99){const _0x179bea=a85_0xc1a3;return _0x384728[_0x179bea(0x18b)](_0x11865b,_0x215b99);},'rwuzd':_0x384728[_0x1143f5(0x1eb)],'enBwG':function(_0x3d5627,_0x42ca0c){const _0x407277=_0x1143f5;return _0x384728[_0x407277(0x213)](_0x3d5627,_0x42ca0c);},'Fqlbs':function(_0x5a844b,_0x34f770){const _0x372bbb=_0x1143f5;return _0x384728[_0x372bbb(0x213)](_0x5a844b,_0x34f770);},'NxivX':function(_0xb5ba3a,_0x336af5){const _0x7d0ed7=_0x1143f5;return _0x384728[_0x7d0ed7(0x16e)](_0xb5ba3a,_0x336af5);}};if(_0x203eae){_0x666898[_0x1143f5(0x1ed)](),fs[_0x1143f5(0x229)](_0x51c859,()=>{}),_0x384728[_0x1143f5(0x1e0)](_0x11bd00,_0x203eae);return;}fs[_0x1143f5(0x18f)](_0x51c859,_0x184a7d,function(_0x3c7782){const _0x18ee74=_0x1143f5;if(_0x3c7782){if(_0x484fa9['JTFlO'](_0x3c7782[_0x18ee74(0x14b)],_0x484fa9[_0x18ee74(0x16b)])){_0x666898[_0x18ee74(0x1ed)](),fs[_0x18ee74(0x229)](_0x51c859,()=>{}),_0x484fa9[_0x18ee74(0x15b)](_0x11bd00,_0x3c7782);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x3c7782[_0x18ee74(0x17d)]);try{fs['copyFileSync'](_0x51c859,_0x184a7d);}catch(_0x1e3ea4){_0x666898['close'](),fs[_0x18ee74(0x229)](_0x51c859,()=>{}),_0x484fa9['Fqlbs'](_0x11bd00,_0x1e3ea4);return;}fs[_0x18ee74(0x229)](_0x51c859,_0x517872=>{const _0x4b8f1f=_0x18ee74;_0x517872&&logger[_0x4b8f1f(0x1a0)](_0x4b8f1f(0x1ba)+_0x517872[_0x4b8f1f(0x17d)]);});}_0x666898[_0x18ee74(0x1ed)](),_0x484fa9['NxivX'](_0x2e3802,_0x184a7d);});});});});});}static[a85_0x14b694(0x20f)](){const _0xa831c9=a85_0x14b694;if(process['env'][_0xa831c9(0x20e)])return JSON[_0xa831c9(0x172)](process['env'][_0xa831c9(0x20e)]);return this[_0xa831c9(0x207)];}static[a85_0x14b694(0x1cf)](){const _0x4ada4a=a85_0x14b694;if(process[_0x4ada4a(0x225)][_0x4ada4a(0x16f)])return JSON[_0x4ada4a(0x172)](process[_0x4ada4a(0x225)][_0x4ada4a(0x16f)]);return this['automationFrameworkDetail'];}static[a85_0x14b694(0x200)](_0x50869a,_0x15e13f){const _0x2b19b2=a85_0x14b694,_0x6db182={'rwLKg':_0x2b19b2(0x14c),'SJQlS':function(_0x37e237,_0x202ec3){return _0x37e237||_0x202ec3;},'ROqBF':function(_0x543b59,_0x26a92a){return _0x543b59(_0x26a92a);}},_0x3eb8c3=_0x6db182['rwLKg'][_0x2b19b2(0x146)]('|');let _0x4717c0=0x0;while(!![]){switch(_0x3eb8c3[_0x4717c0++]){case'0':_0x6db182['SJQlS'](!_0x50869a,!_0x15e13f)&&logger[_0x2b19b2(0x14a)](_0x2b19b2(0x142)+_0x50869a+_0x2b19b2(0x196)+_0x15e13f);continue;case'1':process['env'][_0x2b19b2(0x16f)]=JSON[_0x2b19b2(0x19a)](this[_0x2b19b2(0x219)]);continue;case'2':this[_0x2b19b2(0x219)]={'name':_0x15e13f,'version':_0x6db182['ROqBF'](getFrameworkVersion,_0x15e13f)};continue;case'3':process[_0x2b19b2(0x225)][_0x2b19b2(0x20e)]=JSON[_0x2b19b2(0x19a)](this[_0x2b19b2(0x207)]);continue;case'4':this['testFrameworkDetail']={'name':_0x50869a,'version':{[_0x50869a]:_0x6db182[_0x2b19b2(0x1ec)](getFrameworkVersion,_0x50869a)}};continue;}break;}}static[a85_0x14b694(0x228)](_0xbc3373,_0xab5be1){return _0xbc3373+':'+_0xab5be1;}static[a85_0x14b694(0x15a)](){const _0x215c21=a85_0x14b694;return process[_0x215c21(0x1e9)]+':'+threadId;}static[a85_0x14b694(0x17c)](_0x592ca4){const _0x1b95e5=a85_0x14b694;if(_0x592ca4[_0x1b95e5(0x19e)]&&_0x592ca4[_0x1b95e5(0x19e)][_0x1b95e5(0x178)])return!![];return![];}static['shouldSkipSessionStatus'](_0x28110e){const _0x16edd6=a85_0x14b694;if(_0x28110e[_0x16edd6(0x19e)]&&_0x28110e[_0x16edd6(0x19e)][_0x16edd6(0x1f9)])return!![];return![];}static[a85_0x14b694(0x1cc)](_0x7c19ab){const _0x3e2686=a85_0x14b694,_0x4e6067=new RegExp(TestFrameworkConstants[_0x3e2686(0x22f)]);return _0x4e6067[_0x3e2686(0x1d7)](_0x7c19ab);}static[a85_0x14b694(0x211)](_0xc4e820,_0x83d5ce){const _0x2102b8=a85_0x14b694,_0x3af955={};_0x3af955['KyHsD']=function(_0x33c56a,_0x1f8392){return _0x33c56a!==_0x1f8392;},_0x3af955[_0x2102b8(0x1bf)]=function(_0xb572e0,_0x514aac){return _0xb572e0===_0x514aac;},_0x3af955[_0x2102b8(0x1dc)]=_0x2102b8(0x202);const _0x75f08e=_0x3af955;for(const [_0x407e26,_0x1d5ed9]of Object[_0x2102b8(0x210)](_0x83d5ce)){if(_0x75f08e[_0x2102b8(0x20a)](_0x1d5ed9,null)&&_0x75f08e[_0x2102b8(0x1bf)](typeof _0x1d5ed9,_0x75f08e[_0x2102b8(0x1dc)])&&!Array[_0x2102b8(0x13d)](_0x1d5ed9))_0xc4e820[_0x407e26]=this['mergeObject'](_0xc4e820[_0x407e26]||{},_0x1d5ed9);else Array['isArray'](_0x1d5ed9)?_0xc4e820[_0x407e26]=(_0xc4e820[_0x407e26]||[])[_0x2102b8(0x17b)](_0x1d5ed9):_0xc4e820[_0x407e26]=_0x1d5ed9;}return _0xc4e820;}}module['exports']=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a86_0x397822=a86_0xb950;(function(_0x37f6b1,_0x1787c2){const _0x428883=a86_0xb950,_0x44b63f=_0x37f6b1();while(!![]){try{const _0x999146=parseInt(_0x428883(0x122))/0x1+-parseInt(_0x428883(0x15f))/0x2*(-parseInt(_0x428883(0x104))/0x3)+parseInt(_0x428883(0x10c))/0x4+-parseInt(_0x428883(0x128))/0x5+parseInt(_0x428883(0x145))/0x6+parseInt(_0x428883(0x15b))/0x7*(parseInt(_0x428883(0x108))/0x8)+-parseInt(_0x428883(0x142))/0x9*(parseInt(_0x428883(0x150))/0xa);if(_0x999146===_0x1787c2)break;else _0x44b63f['push'](_0x44b63f['shift']());}catch(_0x31a781){_0x44b63f['push'](_0x44b63f['shift']());}}}(a86_0x4b4d,0xb60ca));function a86_0x4b4d(){const _0x39bbe1=['IflnZ','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','clearTags','Nzmob','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','qPPFb','wZApl','retry','./state/testFrameworkState','getAllData','message',',\x20key=','getTrackedInstance','mergeBuildLevelTags','field_type','./cliUtils','readdirSync','resolveInstance','endsWith','tmpdir','getTestLevelTags','BJOyO','mjiBY','filter','aggregateBuildLevelTagsFromTmp','myouF','nntyQ','./state/hookState','path','join','writeFile','addMultipleEntries','6gdMTJW','_testInternals','BUILD_TAG_FILE_PREFIX','values','8cWTxhU','testLevelTags','getTestFramework','includes','3607876hyXpLU','startsWith','CustomTagManager','BROWSERSTACK_TESTHUB_UUID','YmxZE','from','mergeValues','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','PbRCZ','nqems','KEY_TEST_ID','AKYDc','./framework/constants/testFrameworkConstants','wmtVC','viVJA','mFJSV','testInfo','ChsmS','getBuildTagsRunId','getState','naFBv','264050LzNkLl','fMYgi','isRunning','TnUvD','zBBSl','__jestCurrentTestIdentifier','3896110xyAxsq','LOFPz','edNZi','HrrlJ','./TestInfo','setTestDetails','function','cyoEl','POST',',\x20finalTags=','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','.json','string','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','qmvce','./browserstackCLI','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','bstack_build_tags_','mergeIntoTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','getCurrentTestUUID','getTestDetails','tkteq','REKBg','getInstance','stringify','9439317cOgVek','rWLcr','jest','5677986kvVImW','bRVKZ','testhubConfig',',\x20existingTags=','BFiOA','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','unlinkSync','AUqbg','mBwBe',':jest-','20ACHwPb','pid','Zhhkh','parseCommaSeparatedValues','null','\x20->\x20values=','get','getTestIdentifierFromTestInfo','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','KEY_CUSTOM_TAGS','now','3650682lkGWFW','entries','trim','isArray','988646KUqzIz','AoNNk','multi_dropdown','length','debug','./modules/playwrightDriverModule','ms)\x20','buildLevelTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','parse','readFileSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','currentTest','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','statSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','mtimeMs'];a86_0x4b4d=function(){return _0x39bbe1;};return a86_0x4b4d();}const fs=require('fs'),os=require('os'),path=require(a86_0x397822(0x100)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a86_0x397822(0x119)),PlaywrightDriverModule=require(a86_0x397822(0x164)),TestInfo=require(a86_0x397822(0x12c)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a86_0x397822(0x10e)),BUILD_TAG_FILE_PREFIX=a86_0x397822(0x139);function getBuildTagsRunId(){const _0x2a06bf=a86_0x397822,_0x582781={};_0x582781['edNZi']=function(_0x1c1dc2,_0x57e577){return _0x1c1dc2===_0x57e577;},_0x582781['YmxZE']=_0x2a06bf(0x154);const _0x80cae=_0x582781,_0x304354=process['env'][_0x2a06bf(0x10f)];if(!_0x304354||_0x80cae[_0x2a06bf(0x12a)](_0x304354,_0x80cae[_0x2a06bf(0x110)]))return null;return _0x304354;}function getBuildTagsFilePath(_0x45aff3){const _0x137444=a86_0x397822;return path[_0x137444(0x101)](os[_0x137444(0xf7)](),''+BUILD_TAG_FILE_PREFIX+_0x45aff3+'_'+process[_0x137444(0x151)]+_0x137444(0x133));}class CustomTagManager{static ['buildLevelTags']={};static [a86_0x397822(0x109)]={};static['mergeValues'](_0x1b4539,_0xef4b1b){const _0x4f54fa=a86_0x397822;return Array[_0x4f54fa(0x111)](new Set([..._0x1b4539||[],..._0xef4b1b||[]]));}static[a86_0x397822(0x13a)](_0x35604c,_0xeccfcf,_0x2ca6c6){const _0x5452bf=a86_0x397822,_0x1c117b={};_0x1c117b['LOFPz']=_0x5452bf(0x161);const _0x32f2e0=_0x1c117b;if(!_0x35604c[_0xeccfcf]){const _0x22cf28={};_0x22cf28[_0x5452bf(0xf2)]=_0x32f2e0[_0x5452bf(0x129)],_0x22cf28[_0x5452bf(0x107)]=[..._0x2ca6c6||[]],_0x35604c[_0xeccfcf]=_0x22cf28;}else!_0x35604c[_0xeccfcf][_0x5452bf(0xf2)]&&(_0x35604c[_0xeccfcf][_0x5452bf(0xf2)]=_0x32f2e0[_0x5452bf(0x129)]),!Array[_0x5452bf(0x15e)](_0x35604c[_0xeccfcf]['values'])&&(_0x35604c[_0xeccfcf][_0x5452bf(0x107)]=[]),_0x35604c[_0xeccfcf]['values']=CustomTagManager[_0x5452bf(0x112)](_0x35604c[_0xeccfcf][_0x5452bf(0x107)],_0x2ca6c6);return _0x35604c;}static async['setCustomTags'](_0x1667a4,_0x443248,_0x3f12da=![]){const _0x24e3b5=a86_0x397822,_0x150895={'viVJA':function(_0x56d663,_0x1ccbf0){return _0x56d663!==_0x1ccbf0;},'nqems':_0x24e3b5(0x134),'YvpGi':_0x24e3b5(0x167),'zBBSl':function(_0x594130,_0x4b4cef){return _0x594130!==_0x4b4cef;},'naFBv':_0x24e3b5(0x172),'mFJSV':function(_0x687260,_0x5e2bb4){return _0x687260===_0x5e2bb4;},'IflnZ':_0x24e3b5(0x158),'REKBg':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','cyoEl':function(_0x677b7b,_0xefdb82){return _0x677b7b(_0xefdb82);},'qPPFb':_0x24e3b5(0x137),'BJOyO':function(_0x1a27f2){return _0x1a27f2();},'gubNr':_0x24e3b5(0x161),'wmtVC':function(_0x3b0598,_0xd82d7c){return _0x3b0598>_0xd82d7c;},'rWLcr':_0x24e3b5(0xe8),'bRVKZ':_0x24e3b5(0x14f),'AUqbg':function(_0x1ee727,_0x5e885e){return _0x1ee727(_0x5e885e);},'AKYDc':_0x24e3b5(0xf3),'ChsmS':function(_0x398d2b,_0x2db00){return _0x398d2b(_0x2db00);},'PbRCZ':function(_0x367513,_0x68fd07){return _0x367513===_0x68fd07;},'fMYgi':_0x24e3b5(0x144),'nntyQ':_0x24e3b5(0x132),'Nzmob':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','AoNNk':function(_0x44480b,_0x3ef324){return _0x44480b(_0x3ef324);},'myouF':_0x24e3b5(0xec),'jhSSy':_0x24e3b5(0xff),'Zhhkh':_0x24e3b5(0x113),'XEsdY':function(_0x33d0b7,_0x3a8f9d){return _0x33d0b7(_0x3a8f9d);},'BFiOA':_0x24e3b5(0x12e)};if(_0x150895[_0x24e3b5(0x11b)](typeof _0x1667a4,_0x150895[_0x24e3b5(0x116)])){logger[_0x24e3b5(0x163)](_0x150895['YvpGi']);return;}if(_0x150895[_0x24e3b5(0x126)](typeof _0x443248,_0x150895[_0x24e3b5(0x116)])){logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x121)]);return;}if(_0x150895[_0x24e3b5(0x11c)](_0x1667a4[_0x24e3b5(0x15d)](),'')){logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x171)]);return;}if(_0x150895[_0x24e3b5(0x11c)](_0x443248[_0x24e3b5(0x15d)](),'')){logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x13f)]);return;}const _0x1cfb29=helper[_0x24e3b5(0x153)](_0x443248);if(_0x3f12da){const _0x38c370=_0x150895[_0x24e3b5(0x12f)](require,_0x150895[_0x24e3b5(0xe9)]),_0x39fd3=_0x38c370[_0x24e3b5(0x140)](),_0x5513cb=_0x39fd3&&_0x39fd3['modules'][TestHubModule['MODULE_NAME']];if(_0x5513cb){const _0x5edc52=_0x5513cb?.[_0x24e3b5(0x147)]?.['toObject']()?.['buildHashedId'];TestInfo['getTestUUID'](_0x5edc52);const _0xf72eed=TestInfo[_0x24e3b5(0x13d)](_0x5edc52),_0x58804f=_0xf72eed[TestFrameworkConstants[_0x24e3b5(0x159)]]||{};CustomTagManager[_0x24e3b5(0x13a)](_0x58804f,_0x1667a4,_0x1cfb29),_0xf72eed[TestFrameworkConstants[_0x24e3b5(0x159)]]=_0x58804f,TestInfo[_0x24e3b5(0x12d)](_0x5edc52,_0xf72eed);!this[_0x24e3b5(0x166)][_0x5edc52]&&(this[_0x24e3b5(0x166)][_0x5edc52]={});this[_0x24e3b5(0x166)][_0x5edc52][_0x1667a4]=CustomTagManager[_0x24e3b5(0x112)](this['buildLevelTags'][_0x5edc52][_0x1667a4],_0x1cfb29);try{const _0x93d4a1=_0x150895[_0x24e3b5(0xf9)](getBuildTagsRunId);if(_0x93d4a1){const _0x103fd1={};for(const [_0x156f0e,_0x1688b3]of Object['entries'](this[_0x24e3b5(0x166)][_0x5edc52]||{})){_0x103fd1[_0x156f0e]={'field_type':_0x150895['gubNr'],'values':Array[_0x24e3b5(0x15e)](_0x1688b3)?[..._0x1688b3]:[]};}_0x150895[_0x24e3b5(0x11a)](Object['keys'](_0x103fd1)[_0x24e3b5(0x162)],0x0)&&await fs['promises'][_0x24e3b5(0x102)](_0x150895[_0x24e3b5(0x12f)](getBuildTagsFilePath,_0x93d4a1),JSON['stringify'](_0x103fd1));}else logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x143)]);}catch(_0x5d4be1){logger[_0x24e3b5(0x163)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x5d4be1&&_0x5d4be1[_0x24e3b5(0xee)]?_0x5d4be1[_0x24e3b5(0xee)]:_0x5d4be1));}}}else{let _0x1eda4e;const _0x4213ef=global[_0x24e3b5(0x127)];let _0x2a558e=![];if(_0x4213ef&&_0x4213ef[_0x24e3b5(0x10b)](_0x150895['bRVKZ']))_0x2a558e=!![],_0x1eda4e=_0x4213ef;else try{const _0x34fe12=_0x150895[_0x24e3b5(0x14d)](require,_0x150895[_0x24e3b5(0x118)]),_0x1b1829=_0x150895[_0x24e3b5(0x11e)](require,_0x150895[_0x24e3b5(0xe9)]);if(_0x1b1829[_0x24e3b5(0x140)]()[_0x24e3b5(0x124)]()){const _0x4dc6f0=_0x34fe12['getTestFrameworkDetail']();if(_0x150895[_0x24e3b5(0x115)](_0x4dc6f0?.['name']?.['toLowerCase'](),_0x150895[_0x24e3b5(0x123)])){const _0x408e13=AutomationFramework[_0x24e3b5(0xf0)]();_0x1eda4e=AutomationFramework[_0x24e3b5(0x120)](_0x408e13,PlaywrightDriverModule[_0x24e3b5(0x117)],''),_0x1eda4e&&_0x1eda4e['includes'](_0x150895[_0x24e3b5(0x146)])&&(_0x2a558e=!![]);}}}catch(_0x7e0e23){logger['debug'](_0x24e3b5(0x16c)+_0x7e0e23);}if(_0x2a558e){if(!_0x1eda4e)throw new Error(_0x150895[_0x24e3b5(0xfe)]);const _0x1a8060=_0x150895[_0x24e3b5(0x14d)](require,_0x150895[_0x24e3b5(0xe9)]),_0x2a46a5=_0x1a8060[_0x24e3b5(0x140)]()[_0x24e3b5(0x10a)]();if(!_0x2a46a5)throw new Error(_0x150895[_0x24e3b5(0xe7)]);const _0x21f347=_0x150895[_0x24e3b5(0x160)](require,_0x150895[_0x24e3b5(0xfd)]),_0x54a6b4=_0x150895[_0x24e3b5(0x14d)](require,_0x150895['jhSSy']),_0x468c56=_0x2a46a5[_0x24e3b5(0xf5)](_0x21f347['TEST'],_0x54a6b4[_0x24e3b5(0x130)]);if(!_0x468c56)throw new Error(_0x150895[_0x24e3b5(0x152)]);const _0x38cf02=_0x468c56[_0x24e3b5(0xed)]()[_0x24e3b5(0x156)](_0x1eda4e)||{},_0x623d90=_0x38cf02[TestFrameworkConstants[_0x24e3b5(0x159)]]||{};logger[_0x24e3b5(0x163)](_0x24e3b5(0x14a)+_0x1eda4e+_0x24e3b5(0xef)+_0x1667a4+',\x20values='+JSON[_0x24e3b5(0x141)](_0x1cfb29)+_0x24e3b5(0x148)+JSON[_0x24e3b5(0x141)](_0x623d90)),CustomTagManager[_0x24e3b5(0x13a)](_0x623d90,_0x1667a4,_0x1cfb29),logger['debug'](_0x24e3b5(0x114)+_0x1667a4+_0x24e3b5(0x155)+JSON[_0x24e3b5(0x141)](_0x623d90[_0x1667a4][_0x24e3b5(0x107)]));const _0x5d077b={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x623d90},_0x4206cc={};_0x4206cc[_0x1eda4e]=_0x5d077b,_0x468c56[_0x24e3b5(0x103)](_0x4206cc),logger['debug'](_0x24e3b5(0x138)+_0x1eda4e+_0x24e3b5(0x131)+JSON[_0x24e3b5(0x141)](_0x623d90)),!this['testLevelTags'][_0x1eda4e]&&(this[_0x24e3b5(0x109)][_0x1eda4e]={}),this['testLevelTags'][_0x1eda4e][_0x1667a4]=CustomTagManager[_0x24e3b5(0x112)](this[_0x24e3b5(0x109)][_0x1eda4e][_0x1667a4],_0x1cfb29);}else{const _0x106a10=global['__workerDetails']?.[_0x24e3b5(0x16b)]?.[_0x24e3b5(0x11d)];if(!_0x106a10){const _0x35bb62=AutomationFramework['getTrackedInstance']();_0x1eda4e=AutomationFramework[_0x24e3b5(0x120)](_0x35bb62,PlaywrightDriverModule[_0x24e3b5(0x117)],'');if(!_0x1eda4e)try{const _0x2cdf56=_0x150895['XEsdY'](require,_0x150895['qPPFb']),_0x4a33a5=_0x2cdf56['getInstance'](),_0x3840ed=_0x4a33a5&&_0x4a33a5[_0x24e3b5(0x10a)]();_0x1eda4e=_0x3840ed&&_0x150895[_0x24e3b5(0x115)](typeof _0x3840ed[_0x24e3b5(0x13c)],_0x150895[_0x24e3b5(0x149)])&&_0x3840ed['getCurrentTestUUID']()||_0x1eda4e;}catch(_0x537717){logger[_0x24e3b5(0x163)](_0x24e3b5(0x16f)+(_0x537717&&_0x537717[_0x24e3b5(0xee)]));}}else _0x1eda4e=TestInfo[_0x24e3b5(0x157)](_0x106a10,_0x106a10[_0x24e3b5(0xeb)]);const _0x453217=TestInfo['getTestDetails'](_0x1eda4e),_0x396a31=_0x453217[TestFrameworkConstants[_0x24e3b5(0x159)]]||{};CustomTagManager[_0x24e3b5(0x13a)](_0x396a31,_0x1667a4,_0x1cfb29),_0x453217[TestFrameworkConstants[_0x24e3b5(0x159)]]=_0x396a31,TestInfo[_0x24e3b5(0x12d)](_0x1eda4e,_0x453217),!this[_0x24e3b5(0x109)][_0x1eda4e]&&(this[_0x24e3b5(0x109)][_0x1eda4e]={}),this[_0x24e3b5(0x109)][_0x1eda4e][_0x1667a4]=CustomTagManager[_0x24e3b5(0x112)](this[_0x24e3b5(0x109)][_0x1eda4e][_0x1667a4],_0x1cfb29);}}}static['getBuildLevelTags'](){const _0x1a1cf3=a86_0x397822,_0x160408={...this[_0x1a1cf3(0x166)]};return _0x160408;}static[a86_0x397822(0xf8)](){const _0x2a7147=a86_0x397822,_0x57e411={...this[_0x2a7147(0x109)]};return _0x57e411;}static[a86_0x397822(0x173)](){const _0x1a889f=a86_0x397822;this[_0x1a889f(0x166)]={},this['testLevelTags']={};}static[a86_0x397822(0xf1)](_0x220002,_0x3953f6){const _0x22a98f=a86_0x397822,_0x464dff={};_0x464dff[_0x22a98f(0xfa)]=function(_0x271490,_0x2178dd){return _0x271490||_0x2178dd;};const _0x4a4924=_0x464dff;if(!_0x220002)return;!this['buildLevelTags'][_0x220002]&&(this[_0x22a98f(0x166)][_0x220002]={});for(const [_0x5749e6,_0x596556]of Object[_0x22a98f(0x15c)](_0x4a4924[_0x22a98f(0xfa)](_0x3953f6,{}))){if(!_0x596556||!Array[_0x22a98f(0x15e)](_0x596556[_0x22a98f(0x107)]))continue;this[_0x22a98f(0x166)][_0x220002][_0x5749e6]=CustomTagManager[_0x22a98f(0x112)](this[_0x22a98f(0x166)][_0x220002][_0x5749e6],_0x596556['values']);}}static[a86_0x397822(0xfc)](_0x1f3a80,_0x4393f6){const _0x3c181c=a86_0x397822,_0x2ec206={};_0x2ec206[_0x3c181c(0xea)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x2ec206[_0x3c181c(0x125)]=function(_0x2f5b7c,_0x17e6e0){return _0x2f5b7c*_0x17e6e0;},_0x2ec206[_0x3c181c(0x13e)]=function(_0x1da7f1,_0x735a48){return _0x1da7f1*_0x735a48;},_0x2ec206['HrrlJ']=function(_0x46d5cb,_0x35535b){return _0x46d5cb>_0x35535b;},_0x2ec206[_0x3c181c(0x136)]=function(_0x1d00fe,_0x24d0ee){return _0x1d00fe-_0x24d0ee;},_0x2ec206[_0x3c181c(0x14e)]='utf8';const _0xba39=_0x2ec206;if(!_0x1f3a80)return logger[_0x3c181c(0x163)](_0xba39[_0x3c181c(0xea)]),0x0;let _0x910c0d;try{_0x910c0d=os[_0x3c181c(0xf7)]();}catch(_0x325c45){return logger['debug'](_0x3c181c(0x13b)+_0x325c45),0x0;}let _0x87f4b6;try{_0x87f4b6=fs[_0x3c181c(0xf4)](_0x910c0d);}catch(_0x40b995){return logger[_0x3c181c(0x163)](_0x3c181c(0x16e)+_0x40b995),0x0;}const _0x4c52ca=''+BUILD_TAG_FILE_PREFIX+_0x1f3a80+'_',_0x97ffc4=_0x87f4b6[_0x3c181c(0xfb)](_0x5262fb=>_0x5262fb[_0x3c181c(0x10d)](_0x4c52ca)&&_0x5262fb[_0x3c181c(0xf6)](_0x3c181c(0x133))),_0x244908=_0xba39[_0x3c181c(0x125)](_0xba39[_0x3c181c(0x13e)](_0xba39[_0x3c181c(0x13e)](0x2,0x3c),0x3c),0x3e8);let _0x554e6e=0x0;for(const _0x45fa23 of _0x97ffc4){const _0x53cda7=path[_0x3c181c(0x101)](_0x910c0d,_0x45fa23);try{const _0x2f8695=fs[_0x3c181c(0x16d)](_0x53cda7);if(_0xba39[_0x3c181c(0x12b)](_0xba39['qmvce'](Date[_0x3c181c(0x15a)](),_0x2f8695[_0x3c181c(0x170)]),_0x244908)){logger['debug'](_0x3c181c(0x14b)+_0x244908+_0x3c181c(0x165)+_0x45fa23);try{fs[_0x3c181c(0x14c)](_0x53cda7);}catch(_0xb2941c){logger['debug'](_0x3c181c(0x16a)+_0x45fa23+':\x20'+(_0xb2941c&&_0xb2941c[_0x3c181c(0xee)]?_0xb2941c[_0x3c181c(0xee)]:_0xb2941c));}continue;}const _0x45a099=fs[_0x3c181c(0x169)](_0x53cda7,_0xba39['mBwBe']),_0x3bd3c0=JSON[_0x3c181c(0x168)](_0x45a099);this[_0x3c181c(0xf1)](_0x4393f6,_0x3bd3c0),_0x554e6e+=0x1;}catch(_0x2f07a3){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x45fa23+':\x20'+(_0x2f07a3&&_0x2f07a3[_0x3c181c(0xee)]?_0x2f07a3['message']:_0x2f07a3));}try{fs[_0x3c181c(0x14c)](_0x53cda7);}catch(_0x35fcc3){logger[_0x3c181c(0x163)](_0x3c181c(0x135)+_0x45fa23+':\x20'+(_0x35fcc3&&_0x35fcc3['message']?_0x35fcc3[_0x3c181c(0xee)]:_0x35fcc3));}}return _0x554e6e;}}function a86_0xb950(_0x250ebe,_0x2a49b2){const _0x4b4df5=a86_0x4b4d();return a86_0xb950=function(_0xb95049,_0x39a994){_0xb95049=_0xb95049-0xe7;let _0x36306d=_0x4b4df5[_0xb95049];return _0x36306d;},a86_0xb950(_0x250ebe,_0x2a49b2);}const a86_0x47bfbe={};a86_0x47bfbe[a86_0x397822(0x11f)]=getBuildTagsRunId,a86_0x47bfbe['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x47bfbe[a86_0x397822(0x106)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x397822(0x105)]=a86_0x47bfbe,module['exports']=CustomTagManager;
1
+ 'use strict';const a86_0x144bc5=a86_0x33f3;(function(_0x2bbcdb,_0x8d95a2){const _0x45aa2c=a86_0x33f3,_0x2137c2=_0x2bbcdb();while(!![]){try{const _0x16c602=-parseInt(_0x45aa2c(0x13b))/0x1*(parseInt(_0x45aa2c(0x10a))/0x2)+parseInt(_0x45aa2c(0x126))/0x3+parseInt(_0x45aa2c(0x15d))/0x4*(-parseInt(_0x45aa2c(0x163))/0x5)+parseInt(_0x45aa2c(0xfc))/0x6+parseInt(_0x45aa2c(0x159))/0x7+parseInt(_0x45aa2c(0x106))/0x8+parseInt(_0x45aa2c(0xe3))/0x9*(-parseInt(_0x45aa2c(0x115))/0xa);if(_0x16c602===_0x8d95a2)break;else _0x2137c2['push'](_0x2137c2['shift']());}catch(_0x2e7339){_0x2137c2['push'](_0x2137c2['shift']());}}}(a86_0x3bdd,0x34d38));function a86_0x3bdd(){const _0xb0263f=['from',',\x20values=','aggregateBuildLevelTagsFromTmp','../../helpers/classLogger','tmpdir','xaNwB','370051aAFxMc','multi_dropdown','DYJnf','getTestFramework','addMultipleEntries','UjpFk','maHAU','bstack_build_tags_','oesdP','yajow','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20',':jest-','testInfo','path','TewJG','buildHashedId','name','debug','gxZvE','ejgwo','field_type','mergeIntoTags','../../helpers/helper','getBuildTagsRunId','POST','QcqYU','jYIii','getInstance','getTrackedInstance','getCurrentTestUUID','1940127mwStbC','includes','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','toLowerCase','4ABXQAW','mergeValues','mtimeMs','./framework/automationFramework','arJWh','pid','131870WDLZkP','GhTeK','KPxDV','zxLOT',',\x20finalTags=','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','IafYg','./state/testFrameworkState','resolveInstance','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','vnoaQ','_testInternals',',\x20existingTags=','./state/hookState','values','KEY_CUSTOM_TAGS','9vOHPCn','xqDnk','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','startsWith','buildLevelTags','./modules/testhubModule','PCigQ','endsWith','dGWeF','.json','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','getTestLevelTags','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','cOJTA','./framework/constants/testFrameworkConstants','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright',',\x20key=','exports','readdirSync','toObject','env','keys','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','getBuildLevelTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','2469540oPDfQJ','stringify','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','now','length','testLevelTags','CustomTagManager','NfyiC','KEY_TEST_ID','ms)\x20','1753096Snmqgo','getTestDetails','getAllData','oyAlI','2yNWvZj','message','retry','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','mergeBuildLevelTags','string','entries','function','filter','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','aXlMQ','4469950EqLaGg','XMXYR','isArray','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','trim','parseCommaSeparatedValues','modules','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','MLiOw','currentTest','unlinkSync','KThRB','join','DrPMk','./modules/playwrightDriverModule','null','TEST','455724mcWmQR','utf8','./cliUtils','clearTags','__workerDetails','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','isRunning','setTestDetails','getState','Qvhqc','MpafX','reHNM','getTestIdentifierFromTestInfo','GAwkt','./TestInfo'];a86_0x3bdd=function(){return _0xb0263f;};return a86_0x3bdd();}const fs=require('fs'),os=require('os'),path=require(a86_0x144bc5(0x148)),helper=require(a86_0x144bc5(0x151)),AutomationFramework=require(a86_0x144bc5(0x160)),TestFrameworkConstants=require(a86_0x144bc5(0xf1)),PlaywrightDriverModule=require(a86_0x144bc5(0x123)),TestInfo=require(a86_0x144bc5(0x134)),TestHubModule=require(a86_0x144bc5(0xe8)),{createClassLogger}=require(a86_0x144bc5(0x138)),logger=createClassLogger(a86_0x144bc5(0x102)),BUILD_TAG_FILE_PREFIX=a86_0x144bc5(0x142);function getBuildTagsRunId(){const _0x561621=a86_0x144bc5,_0x1b4ada={};_0x1b4ada['xqDnk']=function(_0xf31d97,_0x36023a){return _0xf31d97===_0x36023a;},_0x1b4ada['QcqYU']=_0x561621(0x124);const _0x560f80=_0x1b4ada,_0x523324=process[_0x561621(0xf7)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x523324||_0x560f80[_0x561621(0xe4)](_0x523324,_0x560f80[_0x561621(0x154)]))return null;return _0x523324;}function getBuildTagsFilePath(_0x447793){const _0xbd2d8e=a86_0x144bc5;return path[_0xbd2d8e(0x121)](os[_0xbd2d8e(0x139)](),''+BUILD_TAG_FILE_PREFIX+_0x447793+'_'+process[_0xbd2d8e(0x162)]+_0xbd2d8e(0xec));}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0x580873,_0x1993f3){const _0x583e09=a86_0x144bc5;return Array[_0x583e09(0x135)](new Set([..._0x580873||[],..._0x1993f3||[]]));}static[a86_0x144bc5(0x150)](_0x82a43f,_0x468b2c,_0x261314){const _0x2985bf=a86_0x144bc5,_0x344018={};_0x344018[_0x2985bf(0xe9)]='multi_dropdown';const _0xae22bd=_0x344018;if(!_0x82a43f[_0x468b2c]){const _0x54d19e={};_0x54d19e[_0x2985bf(0x14f)]=_0xae22bd[_0x2985bf(0xe9)],_0x54d19e[_0x2985bf(0xe1)]=[..._0x261314||[]],_0x82a43f[_0x468b2c]=_0x54d19e;}else!_0x82a43f[_0x468b2c][_0x2985bf(0x14f)]&&(_0x82a43f[_0x468b2c][_0x2985bf(0x14f)]=_0xae22bd[_0x2985bf(0xe9)]),!Array[_0x2985bf(0x117)](_0x82a43f[_0x468b2c][_0x2985bf(0xe1)])&&(_0x82a43f[_0x468b2c][_0x2985bf(0xe1)]=[]),_0x82a43f[_0x468b2c][_0x2985bf(0xe1)]=CustomTagManager[_0x2985bf(0x15e)](_0x82a43f[_0x468b2c][_0x2985bf(0xe1)],_0x261314);return _0x82a43f;}static async['setCustomTags'](_0x25504e,_0x58187c,_0x908529=![]){const _0x2779fa=a86_0x144bc5,_0x1cd62d={'IafYg':function(_0x417a6f,_0x403cc7){return _0x417a6f!==_0x403cc7;},'oyAlI':_0x2779fa(0x10f),'cOJTA':_0x2779fa(0x118),'ejgwo':_0x2779fa(0xfb),'oesdP':function(_0x560c5c,_0x13595e){return _0x560c5c===_0x13595e;},'udWIQ':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','Qvhqc':function(_0x6afbab,_0xebb190){return _0x6afbab===_0xebb190;},'RKkpj':_0x2779fa(0x15b),'MpafX':function(_0x52a4ad,_0x73518a){return _0x52a4ad(_0x73518a);},'TewJG':'./browserstackCLI','TKwCX':function(_0x50197d){return _0x50197d();},'aXlMQ':_0x2779fa(0x13c),'gxZvE':function(_0x1c7224,_0x9ac7d9){return _0x1c7224>_0x9ac7d9;},'KThRB':function(_0x44d8ae,_0x4e1be2){return _0x44d8ae(_0x4e1be2);},'GhTeK':_0x2779fa(0xd8),'DrPMk':_0x2779fa(0x146),'XMXYR':function(_0x2a808f,_0x26c698){return _0x2a808f(_0x26c698);},'dGWeF':_0x2779fa(0x128),'reHNM':function(_0x3979a3,_0x5bbcae){return _0x3979a3===_0x5bbcae;},'UjpFk':'jest','KPxDV':_0x2779fa(0x11c),'xaNwB':function(_0x4b1baa,_0x38db55){return _0x4b1baa(_0x38db55);},'DYJnf':_0x2779fa(0xf2),'MLiOw':_0x2779fa(0xda),'VsyPd':function(_0x25efa4,_0x311693){return _0x25efa4(_0x311693);},'yajow':_0x2779fa(0xe0),'NfyiC':_0x2779fa(0xfe),'TStIE':_0x2779fa(0x111)};if(_0x1cd62d[_0x2779fa(0xd9)](typeof _0x25504e,_0x1cd62d[_0x2779fa(0x109)])){logger[_0x2779fa(0x14c)](_0x1cd62d[_0x2779fa(0xf0)]);return;}if(_0x1cd62d[_0x2779fa(0xd9)](typeof _0x58187c,_0x1cd62d[_0x2779fa(0x109)])){logger[_0x2779fa(0x14c)](_0x1cd62d[_0x2779fa(0x14e)]);return;}if(_0x1cd62d[_0x2779fa(0x143)](_0x25504e[_0x2779fa(0x119)](),'')){logger['debug'](_0x1cd62d['udWIQ']);return;}if(_0x1cd62d[_0x2779fa(0x12f)](_0x58187c[_0x2779fa(0x119)](),'')){logger[_0x2779fa(0x14c)](_0x1cd62d['RKkpj']);return;}const _0x351a17=helper[_0x2779fa(0x11a)](_0x58187c);if(_0x908529){const _0x4055f9=_0x1cd62d[_0x2779fa(0x130)](require,_0x1cd62d[_0x2779fa(0x149)]),_0x5cbd4e=_0x4055f9['getInstance'](),_0x81c989=_0x5cbd4e&&_0x5cbd4e[_0x2779fa(0x11b)][TestHubModule['MODULE_NAME']];if(_0x81c989){const _0x585e98=_0x81c989?.['testhubConfig']?.[_0x2779fa(0xf6)]()?.[_0x2779fa(0x14a)];TestInfo['getTestUUID'](_0x585e98);const _0x2bbefa=TestInfo[_0x2779fa(0x107)](_0x585e98),_0x7b23c7=_0x2bbefa[TestFrameworkConstants[_0x2779fa(0xe2)]]||{};CustomTagManager['mergeIntoTags'](_0x7b23c7,_0x25504e,_0x351a17),_0x2bbefa[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x7b23c7,TestInfo[_0x2779fa(0x12d)](_0x585e98,_0x2bbefa);!this[_0x2779fa(0xe7)][_0x585e98]&&(this['buildLevelTags'][_0x585e98]={});this['buildLevelTags'][_0x585e98][_0x25504e]=CustomTagManager[_0x2779fa(0x15e)](this[_0x2779fa(0xe7)][_0x585e98][_0x25504e],_0x351a17);try{const _0xc60f9=_0x1cd62d['TKwCX'](getBuildTagsRunId);if(_0xc60f9){const _0x17471a={};for(const [_0x1cda70,_0x161110]of Object['entries'](this[_0x2779fa(0xe7)][_0x585e98]||{})){_0x17471a[_0x1cda70]={'field_type':_0x1cd62d[_0x2779fa(0x114)],'values':Array['isArray'](_0x161110)?[..._0x161110]:[]};}_0x1cd62d[_0x2779fa(0x14d)](Object[_0x2779fa(0xf8)](_0x17471a)[_0x2779fa(0x100)],0x0)&&await fs['promises']['writeFile'](_0x1cd62d[_0x2779fa(0x120)](getBuildTagsFilePath,_0xc60f9),JSON['stringify'](_0x17471a));}else logger[_0x2779fa(0x14c)](_0x1cd62d[_0x2779fa(0x164)]);}catch(_0x25b566){logger[_0x2779fa(0x14c)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x25b566&&_0x25b566[_0x2779fa(0x10b)]?_0x25b566[_0x2779fa(0x10b)]:_0x25b566));}}}else{let _0x5859e1;const _0x599d6f=global['__jestCurrentTestIdentifier'];let _0x379f5e=![];if(_0x599d6f&&_0x599d6f[_0x2779fa(0x15a)](_0x1cd62d[_0x2779fa(0x122)]))_0x379f5e=!![],_0x5859e1=_0x599d6f;else try{const _0x545c06=_0x1cd62d['XMXYR'](require,_0x1cd62d[_0x2779fa(0xeb)]),_0x26efaf=_0x1cd62d[_0x2779fa(0x120)](require,_0x1cd62d['TewJG']);if(_0x26efaf['getInstance']()[_0x2779fa(0x12c)]()){const _0x5d7539=_0x545c06['getTestFrameworkDetail']();if(_0x1cd62d[_0x2779fa(0x131)](_0x5d7539?.[_0x2779fa(0x14b)]?.[_0x2779fa(0x15c)](),_0x1cd62d[_0x2779fa(0x140)])){const _0x9eec9=AutomationFramework[_0x2779fa(0x157)]();_0x5859e1=AutomationFramework[_0x2779fa(0x12e)](_0x9eec9,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x5859e1&&_0x5859e1['includes'](_0x1cd62d[_0x2779fa(0x122)])&&(_0x379f5e=!![]);}}}catch(_0x28d679){logger[_0x2779fa(0x14c)](_0x2779fa(0xe5)+_0x28d679);}if(_0x379f5e){if(!_0x5859e1)throw new Error(_0x1cd62d[_0x2779fa(0x165)]);const _0x433bfb=_0x1cd62d[_0x2779fa(0x13a)](require,_0x1cd62d['TewJG']),_0x2e210e=_0x433bfb[_0x2779fa(0x156)]()['getTestFramework']();if(!_0x2e210e)throw new Error(_0x1cd62d[_0x2779fa(0x13d)]);const _0x19b191=_0x1cd62d[_0x2779fa(0x13a)](require,_0x1cd62d[_0x2779fa(0x11d)]),_0x5912ac=_0x1cd62d['VsyPd'](require,_0x1cd62d[_0x2779fa(0x144)]),_0xc006d6=_0x2e210e[_0x2779fa(0xdb)](_0x19b191[_0x2779fa(0x125)],_0x5912ac[_0x2779fa(0x153)]);if(!_0xc006d6)throw new Error(_0x1cd62d[_0x2779fa(0x103)]);const _0x3afda3=_0xc006d6[_0x2779fa(0x108)]()['get'](_0x5859e1)||{},_0x4a6c4a=_0x3afda3[TestFrameworkConstants[_0x2779fa(0xe2)]]||{};logger[_0x2779fa(0x14c)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x5859e1+_0x2779fa(0xf3)+_0x25504e+_0x2779fa(0x136)+JSON[_0x2779fa(0xfd)](_0x351a17)+_0x2779fa(0xdf)+JSON[_0x2779fa(0xfd)](_0x4a6c4a)),CustomTagManager[_0x2779fa(0x150)](_0x4a6c4a,_0x25504e,_0x351a17),logger['debug'](_0x2779fa(0x113)+_0x25504e+'\x20->\x20values='+JSON[_0x2779fa(0xfd)](_0x4a6c4a[_0x25504e][_0x2779fa(0xe1)]));const _0x608458={[TestFrameworkConstants[_0x2779fa(0xe2)]]:_0x4a6c4a},_0x5a98cc={};_0x5a98cc[_0x5859e1]=_0x608458,_0xc006d6[_0x2779fa(0x13f)](_0x5a98cc),logger['debug'](_0x2779fa(0xef)+_0x5859e1+_0x2779fa(0xd7)+JSON['stringify'](_0x4a6c4a)),!this[_0x2779fa(0x101)][_0x5859e1]&&(this['testLevelTags'][_0x5859e1]={}),this[_0x2779fa(0x101)][_0x5859e1][_0x25504e]=CustomTagManager['mergeValues'](this[_0x2779fa(0x101)][_0x5859e1][_0x25504e],_0x351a17);}else{const _0x4c3dc9=global[_0x2779fa(0x12a)]?.[_0x2779fa(0x11e)]?.[_0x2779fa(0x147)];if(!_0x4c3dc9){const _0x112dbf=AutomationFramework[_0x2779fa(0x157)]();_0x5859e1=AutomationFramework['getState'](_0x112dbf,PlaywrightDriverModule[_0x2779fa(0x104)],'');if(!_0x5859e1)try{const _0x1e3bca=_0x1cd62d[_0x2779fa(0x116)](require,_0x1cd62d['TewJG']),_0x2ad89c=_0x1e3bca[_0x2779fa(0x156)](),_0x1b15df=_0x2ad89c&&_0x2ad89c[_0x2779fa(0x13e)]();_0x5859e1=_0x1b15df&&_0x1cd62d[_0x2779fa(0x12f)](typeof _0x1b15df[_0x2779fa(0x158)],_0x1cd62d['TStIE'])&&_0x1b15df[_0x2779fa(0x158)]()||_0x5859e1;}catch(_0x339885){logger['debug'](_0x2779fa(0xdc)+(_0x339885&&_0x339885[_0x2779fa(0x10b)]));}}else _0x5859e1=TestInfo[_0x2779fa(0x132)](_0x4c3dc9,_0x4c3dc9[_0x2779fa(0x10c)]);const _0x169b42=TestInfo[_0x2779fa(0x107)](_0x5859e1),_0x1f16ea=_0x169b42[TestFrameworkConstants[_0x2779fa(0xe2)]]||{};CustomTagManager[_0x2779fa(0x150)](_0x1f16ea,_0x25504e,_0x351a17),_0x169b42[TestFrameworkConstants[_0x2779fa(0xe2)]]=_0x1f16ea,TestInfo[_0x2779fa(0x12d)](_0x5859e1,_0x169b42),!this[_0x2779fa(0x101)][_0x5859e1]&&(this[_0x2779fa(0x101)][_0x5859e1]={}),this[_0x2779fa(0x101)][_0x5859e1][_0x25504e]=CustomTagManager[_0x2779fa(0x15e)](this['testLevelTags'][_0x5859e1][_0x25504e],_0x351a17);}}}static[a86_0x144bc5(0xfa)](){const _0x84ed2=a86_0x144bc5,_0x3498d1={...this[_0x84ed2(0xe7)]};return _0x3498d1;}static[a86_0x144bc5(0xee)](){const _0x292301=a86_0x144bc5,_0x442dc8={...this[_0x292301(0x101)]};return _0x442dc8;}static[a86_0x144bc5(0x129)](){const _0x46b3eb=a86_0x144bc5;this[_0x46b3eb(0xe7)]={},this[_0x46b3eb(0x101)]={};}static[a86_0x144bc5(0x10e)](_0x28d9e9,_0x242405){const _0x1fb1dc=a86_0x144bc5,_0x5ad87c={};_0x5ad87c[_0x1fb1dc(0x155)]=function(_0x2f9d24,_0x186adc){return _0x2f9d24||_0x186adc;};const _0x2d6206=_0x5ad87c;if(!_0x28d9e9)return;!this[_0x1fb1dc(0xe7)][_0x28d9e9]&&(this[_0x1fb1dc(0xe7)][_0x28d9e9]={});for(const [_0x3fd25c,_0x316435]of Object[_0x1fb1dc(0x110)](_0x2d6206[_0x1fb1dc(0x155)](_0x242405,{}))){if(!_0x316435||!Array[_0x1fb1dc(0x117)](_0x316435[_0x1fb1dc(0xe1)]))continue;this['buildLevelTags'][_0x28d9e9][_0x3fd25c]=CustomTagManager['mergeValues'](this[_0x1fb1dc(0xe7)][_0x28d9e9][_0x3fd25c],_0x316435['values']);}}static[a86_0x144bc5(0x137)](_0xa1fa57,_0x28611e){const _0x573f19=a86_0x144bc5,_0xd9fda4={};_0xd9fda4[_0x573f19(0xdd)]=_0x573f19(0xf9),_0xd9fda4[_0x573f19(0x141)]=function(_0x25dc53,_0x4fac54){return _0x25dc53*_0x4fac54;},_0xd9fda4['arJWh']=function(_0x2579ea,_0x1a7bd4){return _0x2579ea>_0x1a7bd4;},_0xd9fda4[_0x573f19(0xd6)]=function(_0x416481,_0x3b029e){return _0x416481-_0x3b029e;},_0xd9fda4[_0x573f19(0x133)]=_0x573f19(0x127);const _0x1e5f6f=_0xd9fda4;if(!_0xa1fa57)return logger[_0x573f19(0x14c)](_0x1e5f6f[_0x573f19(0xdd)]),0x0;let _0x5f0e95;try{_0x5f0e95=os[_0x573f19(0x139)]();}catch(_0x295b09){return logger[_0x573f19(0x14c)](_0x573f19(0x12b)+_0x295b09),0x0;}let _0xacd02;try{_0xacd02=fs[_0x573f19(0xf5)](_0x5f0e95);}catch(_0x996766){return logger['debug'](_0x573f19(0x145)+_0x996766),0x0;}const _0x482405=''+BUILD_TAG_FILE_PREFIX+_0xa1fa57+'_',_0x1df6c9=_0xacd02[_0x573f19(0x112)](_0x132187=>_0x132187[_0x573f19(0xe6)](_0x482405)&&_0x132187[_0x573f19(0xea)](_0x573f19(0xec))),_0x50b62c=_0x1e5f6f['maHAU'](_0x1e5f6f[_0x573f19(0x141)](_0x1e5f6f[_0x573f19(0x141)](0x2,0x3c),0x3c),0x3e8);let _0x2e6164=0x0;for(const _0x5c9b7a of _0x1df6c9){const _0x5d1454=path[_0x573f19(0x121)](_0x5f0e95,_0x5c9b7a);try{const _0x58d5d4=fs['statSync'](_0x5d1454);if(_0x1e5f6f[_0x573f19(0x161)](_0x1e5f6f['zxLOT'](Date[_0x573f19(0xff)](),_0x58d5d4[_0x573f19(0x15f)]),_0x50b62c)){logger[_0x573f19(0x14c)](_0x573f19(0xed)+_0x50b62c+_0x573f19(0x105)+_0x5c9b7a);try{fs[_0x573f19(0x11f)](_0x5d1454);}catch(_0x11d038){logger[_0x573f19(0x14c)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x5c9b7a+':\x20'+(_0x11d038&&_0x11d038[_0x573f19(0x10b)]?_0x11d038[_0x573f19(0x10b)]:_0x11d038));}continue;}const _0x10b2d0=fs['readFileSync'](_0x5d1454,_0x1e5f6f['GAwkt']),_0x3a807c=JSON['parse'](_0x10b2d0);this[_0x573f19(0x10e)](_0x28611e,_0x3a807c),_0x2e6164+=0x1;}catch(_0x380cb6){logger[_0x573f19(0x14c)](_0x573f19(0x10d)+_0x5c9b7a+':\x20'+(_0x380cb6&&_0x380cb6[_0x573f19(0x10b)]?_0x380cb6[_0x573f19(0x10b)]:_0x380cb6));}try{fs[_0x573f19(0x11f)](_0x5d1454);}catch(_0x4d97db){logger[_0x573f19(0x14c)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x5c9b7a+':\x20'+(_0x4d97db&&_0x4d97db['message']?_0x4d97db[_0x573f19(0x10b)]:_0x4d97db));}}return _0x2e6164;}}function a86_0x33f3(_0x5a61e1,_0x1f5703){const _0x3bdd07=a86_0x3bdd();return a86_0x33f3=function(_0x33f397,_0x4e0ae3){_0x33f397=_0x33f397-0xd6;let _0x56f8bc=_0x3bdd07[_0x33f397];return _0x56f8bc;},a86_0x33f3(_0x5a61e1,_0x1f5703);}const a86_0x442ca4={};a86_0x442ca4[a86_0x144bc5(0x152)]=getBuildTagsRunId,a86_0x442ca4['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x442ca4['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x144bc5(0xde)]=a86_0x442ca4,module[a86_0x144bc5(0xf4)]=CustomTagManager;
@@ -1 +1 @@
1
- function a87_0x4329(){const _0x55f4a2=['registerObserver','PvNBi','7617183EaNdlk','104UUjQZa','exports','getInstance','notifyObserver','8027466HsOXBr','28410NSTseg','18380175EeJbRD','../../helpers/classLogger.js','244130mPEwua','1035QSHZUw','push','197yWZrXt','observers','630633CniBuk','7834szncIj','8UFNKzo'];a87_0x4329=function(){return _0x55f4a2;};return a87_0x4329();}const a87_0x23d555=a87_0x4d49;(function(_0x5c5e35,_0x1c6bff){const _0xc1331=a87_0x4d49,_0x264bfe=_0x5c5e35();while(!![]){try{const _0x5afe51=-parseInt(_0xc1331(0x19e))/0x1*(-parseInt(_0xc1331(0x1a1))/0x2)+parseInt(_0xc1331(0x1a0))/0x3+-parseInt(_0xc1331(0x1a6))/0x4*(parseInt(_0xc1331(0x1ae))/0x5)+-parseInt(_0xc1331(0x1aa))/0x6+-parseInt(_0xc1331(0x1a5))/0x7*(-parseInt(_0xc1331(0x1a2))/0x8)+-parseInt(_0xc1331(0x1af))/0x9*(parseInt(_0xc1331(0x1ab))/0xa)+parseInt(_0xc1331(0x1ac))/0xb;if(_0x5afe51===_0x1c6bff)break;else _0x264bfe['push'](_0x264bfe['shift']());}catch(_0x2c99a9){_0x264bfe['push'](_0x264bfe['shift']());}}}(a87_0x4329,0xc4fc4));const {createClassLogger}=require(a87_0x23d555(0x1ad));function a87_0x4d49(_0x31c4d5,_0x2f09dc){const _0x4329d1=a87_0x4329();return a87_0x4d49=function(_0x4d49d4,_0x4cf526){_0x4d49d4=_0x4d49d4-0x19e;let _0x20689d=_0x4329d1[_0x4d49d4];return _0x20689d;},a87_0x4d49(_0x31c4d5,_0x2f09dc);}class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x23d555(0x1a3)](_0x291c16,_0x2eff8d){const _0x33e38e=a87_0x23d555;!this[_0x33e38e(0x19f)][_0x291c16]&&(this[_0x33e38e(0x19f)][_0x291c16]=[]),this[_0x33e38e(0x19f)][_0x291c16][_0x33e38e(0x1b0)](_0x2eff8d);}async[a87_0x23d555(0x1a9)](_0x3fe8fa,_0x258be5){const _0x2ac2dc=a87_0x23d555,_0x272418={'PvNBi':function(_0x21f76f,_0x21c550){return _0x21f76f(_0x21c550);}};if(this[_0x2ac2dc(0x19f)][_0x3fe8fa]){for(const _0x26d107 of this[_0x2ac2dc(0x19f)][_0x3fe8fa]){await _0x272418[_0x2ac2dc(0x1a4)](_0x26d107,_0x258be5);}return;}}}const eventDispatcher=EventDispatcher[a87_0x23d555(0x1a8)]();Object['freeze'](eventDispatcher),module[a87_0x23d555(0x1a7)]=eventDispatcher;
1
+ const a87_0x44a21f=a87_0x69f2;(function(_0x18670b,_0x368c40){const _0x188a87=a87_0x69f2,_0x31c712=_0x18670b();while(!![]){try{const _0x3fda0c=-parseInt(_0x188a87(0xbd))/0x1*(-parseInt(_0x188a87(0xbb))/0x2)+parseInt(_0x188a87(0xc7))/0x3*(parseInt(_0x188a87(0xc3))/0x4)+-parseInt(_0x188a87(0xbf))/0x5*(parseInt(_0x188a87(0xcb))/0x6)+parseInt(_0x188a87(0xc5))/0x7+-parseInt(_0x188a87(0xcc))/0x8*(parseInt(_0x188a87(0xc4))/0x9)+-parseInt(_0x188a87(0xc6))/0xa*(-parseInt(_0x188a87(0xba))/0xb)+parseInt(_0x188a87(0xcd))/0xc*(-parseInt(_0x188a87(0xb8))/0xd);if(_0x3fda0c===_0x368c40)break;else _0x31c712['push'](_0x31c712['shift']());}catch(_0x594206){_0x31c712['push'](_0x31c712['shift']());}}}(a87_0x6c6a,0x44d8c));const {createClassLogger}=require(a87_0x44a21f(0xca));class EventDispatcher{static #instance=null;constructor(){const _0x1915e2=a87_0x44a21f;this[_0x1915e2(0xbe)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x44a21f(0xc0)](_0x5a9085,_0x13ef12){const _0x36bc13=a87_0x44a21f;!this[_0x36bc13(0xbe)][_0x5a9085]&&(this[_0x36bc13(0xbe)][_0x5a9085]=[]),this[_0x36bc13(0xbe)][_0x5a9085][_0x36bc13(0xc9)](_0x13ef12);}async[a87_0x44a21f(0xb9)](_0x29fada,_0x14c3ad){const _0x510517=a87_0x44a21f,_0x3637a8={'dqxhv':function(_0x161659,_0x15cc66){return _0x161659(_0x15cc66);}};if(this[_0x510517(0xbe)][_0x29fada]){for(const _0x1add22 of this[_0x510517(0xbe)][_0x29fada]){await _0x3637a8[_0x510517(0xc8)](_0x1add22,_0x14c3ad);}return;}}}function a87_0x69f2(_0x8515a8,_0x2104b0){const _0x6c6a36=a87_0x6c6a();return a87_0x69f2=function(_0x69f28e,_0x303541){_0x69f28e=_0x69f28e-0xb8;let _0x31cd2a=_0x6c6a36[_0x69f28e];return _0x31cd2a;},a87_0x69f2(_0x8515a8,_0x2104b0);}function a87_0x6c6a(){const _0x3b51a1=['60088JttilW','5532IhzqUU','17901KeMhLR','notifyObserver','199221kvZuFJ','4126TmJlaH','freeze','213wbgSIJ','observers','15rfmESi','registerObserver','getInstance','exports','222776bIaQwi','180fpywya','672112bRtguj','290CbGeNp','30UyyMGh','dqxhv','push','../../helpers/classLogger.js','1101162zLBedG'];a87_0x6c6a=function(){return _0x3b51a1;};return a87_0x6c6a();}const eventDispatcher=EventDispatcher[a87_0x44a21f(0xc1)]();Object[a87_0x44a21f(0xbc)](eventDispatcher),module[a87_0x44a21f(0xc2)]=eventDispatcher;
@@ -1 +1 @@
1
- const a88_0x5d7e22=a88_0x53c8;(function(_0x3de2a4,_0x241da8){const _0x31598a=a88_0x53c8,_0xd19d2=_0x3de2a4();while(!![]){try{const _0x3383d8=parseInt(_0x31598a(0x114))/0x1+-parseInt(_0x31598a(0x105))/0x2+-parseInt(_0x31598a(0xfc))/0x3*(-parseInt(_0x31598a(0xf4))/0x4)+-parseInt(_0x31598a(0x112))/0x5*(parseInt(_0x31598a(0x109))/0x6)+-parseInt(_0x31598a(0x118))/0x7*(parseInt(_0x31598a(0x104))/0x8)+-parseInt(_0x31598a(0xf2))/0x9+parseInt(_0x31598a(0x10e))/0xa;if(_0x3383d8===_0x241da8)break;else _0xd19d2['push'](_0xd19d2['shift']());}catch(_0x4df998){_0xd19d2['push'](_0xd19d2['shift']());}}}(a88_0x2427,0xf07cd));const {createClassLogger}=require(a88_0x5d7e22(0xfd)),util=require('util'),eventDispatcher=require(a88_0x5d7e22(0x100)),CLIUtils=require(a88_0x5d7e22(0x108)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0x5d7e22(0xfa));class AutomationFramework{static [a88_0x5d7e22(0x110)]=new Map();static [a88_0x5d7e22(0x111)]=a88_0x5d7e22(0x10b);static [a88_0x5d7e22(0xfe)]=a88_0x5d7e22(0x103);constructor(_0x4887a6,_0x3565f9){const _0x34573e=a88_0x5d7e22;this[_0x34573e(0xf7)]=_0x4887a6,this[_0x34573e(0x10a)]=_0x3565f9;}['getAutomationFrameworkName'](){const _0x54bd36=a88_0x5d7e22;return this[_0x54bd36(0xf7)];}[a88_0x5d7e22(0xf5)](){const _0x414df0=a88_0x5d7e22;return this[_0x414df0(0x10a)];}async[a88_0x5d7e22(0x102)](_0x30b3fc,_0x31e641,_0x1a5a76={}){const _0x430d2a=a88_0x5d7e22;logger[_0x430d2a(0x101)](_0x430d2a(0x117)+_0x30b3fc+_0x430d2a(0xfb)+_0x31e641);}async[a88_0x5d7e22(0x10f)](_0x2a29bf,_0x2bb074,_0x4af7de,_0x2a7b63={}){const _0x3bc351=a88_0x5d7e22,_0x4b7682=CLIUtils['getHookRegistryKey'](_0x2bb074,_0x4af7de);_0x2a29bf&&_0x2a29bf[_0x3bc351(0x115)](_0x2bb074),await eventDispatcher[_0x3bc351(0x116)](_0x4b7682,_0x2a7b63);}static['registerObserver'](_0x358b60,_0x32f179,_0x10fec9){eventDispatcher['registerObserver'](CLIUtils['getHookRegistryKey'](_0x358b60,_0x32f179),_0x10fec9);}static[a88_0x5d7e22(0xff)](_0x573002,_0x75f0bb){const _0x50c176=a88_0x5d7e22;AutomationFramework[_0x50c176(0x110)]['set'](_0x573002['getId'](),_0x75f0bb);}static[a88_0x5d7e22(0x10d)](){const _0xd149ef=a88_0x5d7e22,_0xb89501=TrackedInstance[_0xd149ef(0xf8)](CLIUtils[_0xd149ef(0x10c)]());return AutomationFramework[_0xd149ef(0x110)][_0xd149ef(0x113)](_0xb89501['getId']());}static[a88_0x5d7e22(0x115)](_0x3be637,_0x2d67d5,_0x225f51){const _0x2c3ecb=a88_0x5d7e22;_0x3be637[_0x2c3ecb(0x107)]()[_0x2c3ecb(0xf6)](_0x2d67d5,_0x225f51);}static['getState'](_0x2c2455,_0x3aa76a,_0x52a2ad=undefined){const _0xbd3577=a88_0x5d7e22,_0x1be4c5={};_0x1be4c5['SZswK']=function(_0xb0cecd,_0x4af0bf){return _0xb0cecd!==_0x4af0bf;},_0x1be4c5[_0xbd3577(0xf9)]='function',_0x1be4c5[_0xbd3577(0x106)]=function(_0x1b118d,_0x1f8637){return _0x1b118d===_0x1f8637;};const _0x2f0a24=_0x1be4c5;if(!_0x2c2455||_0x2f0a24[_0xbd3577(0xf3)](typeof _0x2c2455[_0xbd3577(0x107)],_0x2f0a24[_0xbd3577(0xf9)]))return _0x52a2ad;const _0x584ab3=_0x2c2455[_0xbd3577(0x107)]()[_0xbd3577(0x113)](_0x3aa76a);return _0x2f0a24['XDgXg'](_0x584ab3,undefined)?_0x52a2ad:_0x584ab3;}}function a88_0x2427(){const _0x499336=['trackEvent','non_browserstack_automation_sessions','14149744QrKPxF','2785926UZLizK','XDgXg','getAllData','../cliUtils.js','30Pyaabp','automationFrameworkVersion','automation_sessions','getCurrentInstanceName','getTrackedInstance','36510650oEXpKY','runHooks','instances','KEY_AUTOMATION_SESSIONS','1055810MKtgoz','get','1940971RVWGEH','setState','notifyObserver','trackEvent:\x20automationFrameworkState=','7IIjUAO','exports','9296685mhNAyT','SZswK','2573828zjBkej','getAutomationFrameworkVersion','set','automationFrameworkName','createContext','ONuyN','AutomationFramework','\x20hookState=','3MnmBhO','../../../helpers/classLogger.js','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setTrackedInstance','../eventDispatcher.js','debug'];a88_0x2427=function(){return _0x499336;};return a88_0x2427();}function a88_0x53c8(_0x467884,_0x2380dc){const _0x2427ad=a88_0x2427();return a88_0x53c8=function(_0x53c800,_0x264a55){_0x53c800=_0x53c800-0xf1;let _0xbeea14=_0x2427ad[_0x53c800];return _0xbeea14;},a88_0x53c8(_0x467884,_0x2380dc);}module[a88_0x5d7e22(0xf1)]=AutomationFramework;
1
+ const a88_0x4487d4=a88_0x1f9a;(function(_0x1f49c0,_0x2460c1){const _0x39daa9=a88_0x1f9a,_0x43875b=_0x1f49c0();while(!![]){try{const _0x179883=parseInt(_0x39daa9(0x1d9))/0x1*(-parseInt(_0x39daa9(0x1f7))/0x2)+-parseInt(_0x39daa9(0x1d1))/0x3+parseInt(_0x39daa9(0x1eb))/0x4*(-parseInt(_0x39daa9(0x1db))/0x5)+parseInt(_0x39daa9(0x1f2))/0x6*(-parseInt(_0x39daa9(0x1ea))/0x7)+-parseInt(_0x39daa9(0x1e7))/0x8*(-parseInt(_0x39daa9(0x1f0))/0x9)+-parseInt(_0x39daa9(0x1dd))/0xa+parseInt(_0x39daa9(0x1ec))/0xb;if(_0x179883===_0x2460c1)break;else _0x43875b['push'](_0x43875b['shift']());}catch(_0x250039){_0x43875b['push'](_0x43875b['shift']());}}}(a88_0x2502,0x39228));const {createClassLogger}=require(a88_0x4487d4(0x1de)),util=require(a88_0x4487d4(0x1e4)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a88_0x4487d4(0x1df)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0x4487d4(0x1e1));class AutomationFramework{static [a88_0x4487d4(0x1d2)]=new Map();static [a88_0x4487d4(0x1d3)]='automation_sessions';static [a88_0x4487d4(0x1ed)]=a88_0x4487d4(0x1d4);constructor(_0x259331,_0x3eed3e){const _0x35d3fc=a88_0x4487d4;this[_0x35d3fc(0x1d7)]=_0x259331,this[_0x35d3fc(0x1f5)]=_0x3eed3e;}['getAutomationFrameworkName'](){const _0x5df7b2=a88_0x4487d4;return this[_0x5df7b2(0x1d7)];}['getAutomationFrameworkVersion'](){const _0x3ec165=a88_0x4487d4;return this[_0x3ec165(0x1f5)];}async['trackEvent'](_0x5a650c,_0x3a8977,_0x230dc3={}){const _0x27e0f5=a88_0x4487d4;logger[_0x27e0f5(0x1e9)](_0x27e0f5(0x1f6)+_0x5a650c+_0x27e0f5(0x1da)+_0x3a8977);}async['runHooks'](_0xbdb634,_0x8fe851,_0x5b21db,_0x30fcb4={}){const _0x5ba2d9=a88_0x4487d4,_0x48f093=CLIUtils[_0x5ba2d9(0x1dc)](_0x8fe851,_0x5b21db);_0xbdb634&&_0xbdb634[_0x5ba2d9(0x1e3)](_0x8fe851),await eventDispatcher[_0x5ba2d9(0x1f4)](_0x48f093,_0x30fcb4);}static[a88_0x4487d4(0x1e2)](_0x5c06af,_0x4b74cb,_0x229ed4){const _0x4fec76=a88_0x4487d4;eventDispatcher[_0x4fec76(0x1e2)](CLIUtils[_0x4fec76(0x1dc)](_0x5c06af,_0x4b74cb),_0x229ed4);}static[a88_0x4487d4(0x1f3)](_0x198ec7,_0x1d0a25){const _0x351b66=a88_0x4487d4;AutomationFramework[_0x351b66(0x1d2)][_0x351b66(0x1d5)](_0x198ec7[_0x351b66(0x1e0)](),_0x1d0a25);}static[a88_0x4487d4(0x1d8)](){const _0x1d093e=a88_0x4487d4,_0x3069ce=TrackedInstance[_0x1d093e(0x1d6)](CLIUtils[_0x1d093e(0x1ef)]());return AutomationFramework[_0x1d093e(0x1d2)]['get'](_0x3069ce[_0x1d093e(0x1e0)]());}static[a88_0x4487d4(0x1e3)](_0x454246,_0x59b0ab,_0x11488c){const _0xd545f4=a88_0x4487d4;_0x454246[_0xd545f4(0x1f1)]()[_0xd545f4(0x1d5)](_0x59b0ab,_0x11488c);}static['getState'](_0x2aa6c6,_0x3bfd1b,_0x3af20e=undefined){const _0x5c997b=a88_0x4487d4,_0x358286={};_0x358286[_0x5c997b(0x1e6)]=function(_0x2b6f26,_0x4dbe90){return _0x2b6f26!==_0x4dbe90;},_0x358286['UQPXW']=_0x5c997b(0x1ee),_0x358286[_0x5c997b(0x1e5)]=function(_0x7ea44a,_0x12e6d7){return _0x7ea44a===_0x12e6d7;};const _0x5eb17e=_0x358286;if(!_0x2aa6c6||_0x5eb17e[_0x5c997b(0x1e6)](typeof _0x2aa6c6[_0x5c997b(0x1f1)],_0x5eb17e[_0x5c997b(0x1f8)]))return _0x3af20e;const _0x37a0e5=_0x2aa6c6['getAllData']()['get'](_0x3bfd1b);return _0x5eb17e[_0x5c997b(0x1e5)](_0x37a0e5,undefined)?_0x3af20e:_0x37a0e5;}}function a88_0x2502(){const _0x34d42e=['util','rapci','LxTVe','24808SzPjoC','exports','debug','14EnBNlc','32eKuwBC','15004077KgMrAu','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','function','getCurrentInstanceName','603oRgrnz','getAllData','1004628OWtYxp','setTrackedInstance','notifyObserver','automationFrameworkVersion','trackEvent:\x20automationFrameworkState=','28BCXrnm','UQPXW','848940keNnVP','instances','KEY_AUTOMATION_SESSIONS','non_browserstack_automation_sessions','set','createContext','automationFrameworkName','getTrackedInstance','30063KqHXBm','\x20hookState=','127535ltdsZG','getHookRegistryKey','949560KwsiZw','../../../helpers/classLogger.js','../cliUtils.js','getId','AutomationFramework','registerObserver','setState'];a88_0x2502=function(){return _0x34d42e;};return a88_0x2502();}function a88_0x1f9a(_0x40f54a,_0x22318b){const _0x250232=a88_0x2502();return a88_0x1f9a=function(_0x1f9aeb,_0x1e8d46){_0x1f9aeb=_0x1f9aeb-0x1d1;let _0x691475=_0x250232[_0x1f9aeb];return _0x691475;},a88_0x1f9a(_0x40f54a,_0x22318b);}module[a88_0x4487d4(0x1e8)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x1228da=a89_0x2995;(function(_0x3b17a8,_0x19f2d6){const _0x1a519e=a89_0x2995,_0x1c6d79=_0x3b17a8();while(!![]){try{const _0x21fd2e=-parseInt(_0x1a519e(0x16e))/0x1+parseInt(_0x1a519e(0x17f))/0x2*(-parseInt(_0x1a519e(0x166))/0x3)+parseInt(_0x1a519e(0x177))/0x4+-parseInt(_0x1a519e(0x169))/0x5*(parseInt(_0x1a519e(0x16a))/0x6)+parseInt(_0x1a519e(0x16c))/0x7+-parseInt(_0x1a519e(0x171))/0x8+parseInt(_0x1a519e(0x165))/0x9;if(_0x21fd2e===_0x19f2d6)break;else _0x1c6d79['push'](_0x1c6d79['shift']());}catch(_0x43ddcb){_0x1c6d79['push'](_0x1c6d79['shift']());}}}(a89_0xc0da,0xd62cf));function a89_0xc0da(){const _0x27f7d2=['1316286guFKgz','screenshot','75250WaIvTp','ended_at','1626904OvKObV','COMMAND_NEW_SESSION','capabilities','9815904hZflrt','KEY_HUB_URL','quit','w3cexecutescriptasync','ENV_BROWSERSTACK_PLATFORM_INDEX','newsession','1965120AcKIAd','is_browserstack_hub','KEY_IS_BROWSERSTACK_HUB','COMMAND_W3C_EXECUTE_SCRIPT','KEY_INPUT_CAPABILITIES','framework_session_id','get','BROWSERSTACK_PLATFORM_INDEX','172aFmyYG','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_STARTED_AT','41727816TPXmwF','41439cJDHqk','exports','KEY_FRAMEWORK_SESSION_ID','5fmlfZv'];a89_0xc0da=function(){return _0x27f7d2;};return a89_0xc0da();}const a89_0x1f7fde={};a89_0x1f7fde[a89_0x1228da(0x175)]=a89_0x1228da(0x17e),a89_0x1f7fde[a89_0x1228da(0x172)]='hub_url',a89_0x1f7fde[a89_0x1228da(0x168)]=a89_0x1228da(0x17c),a89_0x1f7fde[a89_0x1228da(0x17b)]='input_capabilities',a89_0x1f7fde['KEY_CAPABILITIES']=a89_0x1228da(0x170),a89_0x1f7fde[a89_0x1228da(0x179)]=a89_0x1228da(0x178),a89_0x1f7fde[a89_0x1228da(0x164)]='started_at',a89_0x1f7fde['KEY_ENDED_AT']=a89_0x1228da(0x16d),a89_0x1f7fde['KEY_PLATFORM_INDEX']='platform_index',a89_0x1f7fde[a89_0x1228da(0x16f)]=a89_0x1228da(0x176),a89_0x1f7fde['COMMAND_GET']=a89_0x1228da(0x17d),a89_0x1f7fde['COMMAND_SCREENSHOT']=a89_0x1228da(0x16b),a89_0x1f7fde[a89_0x1228da(0x17a)]='w3cexecutescript',a89_0x1f7fde[a89_0x1228da(0x163)]=a89_0x1228da(0x174),a89_0x1f7fde['COMMAND_QUIT']=a89_0x1228da(0x173);const AutomationFrameworkConstants=a89_0x1f7fde;function a89_0x2995(_0x281bf9,_0x10ba5e){const _0xc0da5c=a89_0xc0da();return a89_0x2995=function(_0x299547,_0x572ad1){_0x299547=_0x299547-0x163;let _0x53e962=_0xc0da5c[_0x299547];return _0x53e962;},a89_0x2995(_0x281bf9,_0x10ba5e);}module[a89_0x1228da(0x167)]=AutomationFrameworkConstants;
1
+ const a89_0x30714b=a89_0xdd27;function a89_0xdd27(_0x29f736,_0x30a4a1){const _0x53038d=a89_0x5303();return a89_0xdd27=function(_0xdd2700,_0xe56ebd){_0xdd2700=_0xdd2700-0xae;let _0x4bb72f=_0x53038d[_0xdd2700];return _0x4bb72f;},a89_0xdd27(_0x29f736,_0x30a4a1);}(function(_0x13ea29,_0x1952af){const _0x4999b1=a89_0xdd27,_0x5d349b=_0x13ea29();while(!![]){try{const _0x2f6b9a=-parseInt(_0x4999b1(0xb8))/0x1*(parseInt(_0x4999b1(0xca))/0x2)+parseInt(_0x4999b1(0xc2))/0x3*(-parseInt(_0x4999b1(0xb1))/0x4)+-parseInt(_0x4999b1(0xbd))/0x5*(-parseInt(_0x4999b1(0xc7))/0x6)+-parseInt(_0x4999b1(0xb4))/0x7+-parseInt(_0x4999b1(0xb2))/0x8*(-parseInt(_0x4999b1(0xce))/0x9)+parseInt(_0x4999b1(0xb0))/0xa+parseInt(_0x4999b1(0xc3))/0xb;if(_0x2f6b9a===_0x1952af)break;else _0x5d349b['push'](_0x5d349b['shift']());}catch(_0x2463c7){_0x5d349b['push'](_0x5d349b['shift']());}}}(a89_0x5303,0x94615));const a89_0x20096a={};function a89_0x5303(){const _0x48e5b2=['162BwcjlG','newsession','ended_at','quit','8469bqWWmk','input_capabilities','KEY_STARTED_AT','COMMAND_SCREENSHOT','127970itlMnG','464iHDLFa','1136utVvlq','KEY_PLATFORM_INDEX','1940344eKuIKg','COMMAND_GET','KEY_ENDED_AT','KEY_IS_BROWSERSTACK_HUB','11384pTGmxY','KEY_CAPABILITIES','KEY_FRAMEWORK_SESSION_ID','screenshot','w3cexecutescriptasync','510415tpAvgh','COMMAND_QUIT','w3cexecutescript','ENV_BROWSERSTACK_PLATFORM_INDEX','framework_session_id','16818yKCtzs','15314101DLxbst','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','get','KEY_HUB_URL','54aajfgv','exports','is_browserstack_hub'];a89_0x5303=function(){return _0x48e5b2;};return a89_0x5303();}a89_0x20096a[a89_0x30714b(0xc0)]='BROWSERSTACK_PLATFORM_INDEX',a89_0x20096a[a89_0x30714b(0xc6)]='hub_url',a89_0x20096a[a89_0x30714b(0xba)]=a89_0x30714b(0xc1),a89_0x20096a['KEY_INPUT_CAPABILITIES']=a89_0x30714b(0xcf),a89_0x20096a[a89_0x30714b(0xb9)]='capabilities',a89_0x20096a[a89_0x30714b(0xb7)]=a89_0x30714b(0xc9),a89_0x20096a[a89_0x30714b(0xae)]='started_at',a89_0x20096a[a89_0x30714b(0xb6)]=a89_0x30714b(0xcc),a89_0x20096a[a89_0x30714b(0xb3)]='platform_index',a89_0x20096a['COMMAND_NEW_SESSION']=a89_0x30714b(0xcb),a89_0x20096a[a89_0x30714b(0xb5)]=a89_0x30714b(0xc5),a89_0x20096a[a89_0x30714b(0xaf)]=a89_0x30714b(0xbb),a89_0x20096a['COMMAND_W3C_EXECUTE_SCRIPT']=a89_0x30714b(0xbf),a89_0x20096a[a89_0x30714b(0xc4)]=a89_0x30714b(0xbc),a89_0x20096a[a89_0x30714b(0xbe)]=a89_0x30714b(0xcd);const AutomationFrameworkConstants=a89_0x20096a;module[a89_0x30714b(0xc8)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0x144e(){const _0x4cfbb1=['file_size','KEY_EVENT_STARTED_AT','test_id','KEY_HOOK_LOGS','KIND_LOG','12OOlGBR','TEST_LOG','33754325sUueGj','KEY_FILE_PATH','KEY_HOOK_RESULT','6471MTmqHL','KEY_TEST_RERUN_NAME','2yNrhIy','test_failure_reason','test_logs','test_session_name','hook_failure_type','test_uuid','1173608oVFaRt','KEY_TEST_SCOPES','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_LOCATION','KIND_SCREENSHOT','5721006cOflgd','KEY_TEST_LOGS','^(BEFORE_|AFTER_)','platform_index','test_framework_version','exports','MAX_TOP_LEVEL_STEPS','KEY_HOOK_ID','KEY_HOOKS_STARTED','KEY_EVENT_ENDED_AT','test_name','KEY_LOGS','hook_failure','KEY_HOOK_NAME','KEY_TEST_UUID','hook_logs','test_attachments','KEY_TEST_FAILURE_REASON','test_hook_last_finished','event_started_at','test_result_at','test_duration','10fVPRCh','KEY_TEST_NAME','KEY_HOOK_LAST_FINISHED','KEY_CUSTOM_TAGS','hook_id','KEY_TEST_RESULT_AT','retry_of','KEY_TEST_FAILURE_TYPE','test_tags','hook_name','test_framework_name','KEY_FILE_NAME','KEY_TEST_SCREENSHOTS','6704KPUuut','2518329tmamfw','test_rerun_name','DEFAULT_TEST_RESULT','test_result','automate_session_name','HOOK_REGEX','2295965VKNZnM','DEFAULT_HOOK_RESULT','KEY_TEST_RESULT','304710vvHFjR','KEY_TEST_TAGS','KEY_AUTOMATE_SESSION_REASON','KEY_SESSION_NAME','KEY_TEST_ID','custom_metadata','KEY_AUTOMATE_SESSION_STATUS','test_started_at','automate_session_reason','test_meta','KEY_FILE_SIZE','test_hook_last_started','test_hooks_started','pending','KEY_TEST_META','MAX_NESTED_STEP_DEPTH','test_ended_at','file_name','test_code','test_scopes','KEY_HOOKS_FINISHED','test_location','KEY_HOOK_FAILURE','file_path','KEY_HOOK_FAILURE_REASON','automate_session_status'];a90_0x144e=function(){return _0x4cfbb1;};return a90_0x144e();}const a90_0x39e9d7=a90_0x252b;function a90_0x252b(_0x511fe6,_0x1fcb82){const _0x144e0a=a90_0x144e();return a90_0x252b=function(_0x252b00,_0xc2c3bd){_0x252b00=_0x252b00-0xd1;let _0xdcd3c9=_0x144e0a[_0x252b00];return _0xdcd3c9;},a90_0x252b(_0x511fe6,_0x1fcb82);}(function(_0x3b10d8,_0x4ceecc){const _0x95701f=a90_0x252b,_0x251d01=_0x3b10d8();while(!![]){try{const _0x1f0055=-parseInt(_0x95701f(0xfe))/0x1+-parseInt(_0x95701f(0xf8))/0x2*(-parseInt(_0x95701f(0x127))/0x3)+-parseInt(_0x95701f(0xf1))/0x4*(parseInt(_0x95701f(0xd2))/0x5)+-parseInt(_0x95701f(0x103))/0x6+-parseInt(_0x95701f(0x12d))/0x7+-parseInt(_0x95701f(0x126))/0x8*(parseInt(_0x95701f(0xf6))/0x9)+-parseInt(_0x95701f(0x119))/0xa*(-parseInt(_0x95701f(0xf3))/0xb);if(_0x1f0055===_0x4ceecc)break;else _0x251d01['push'](_0x251d01['shift']());}catch(_0x39f8a6){_0x251d01['push'](_0x251d01['shift']());}}}(a90_0x144e,0xa2fae));const a90_0x1b0a00={};a90_0x1b0a00[a90_0x39e9d7(0x111)]=a90_0x39e9d7(0xfd),a90_0x1b0a00[a90_0x39e9d7(0xd6)]=a90_0x39e9d7(0xee),a90_0x1b0a00[a90_0x39e9d7(0x11a)]=a90_0x39e9d7(0x10d),a90_0x1b0a00['KEY_TEST_FILE_PATH']='test_file_path',a90_0x1b0a00[a90_0x39e9d7(0xd3)]=a90_0x39e9d7(0x121),a90_0x1b0a00[a90_0x39e9d7(0xd1)]=a90_0x39e9d7(0x12a),a90_0x1b0a00[a90_0x39e9d7(0x11e)]=a90_0x39e9d7(0x117),a90_0x1b0a00['KEY_TEST_STARTED_AT']=a90_0x39e9d7(0xd9),a90_0x1b0a00['KEY_TEST_ENDED_AT']=a90_0x39e9d7(0xe2),a90_0x1b0a00[a90_0x39e9d7(0x101)]=a90_0x39e9d7(0xe7),a90_0x1b0a00['KEY_TEST_DURATION']=a90_0x39e9d7(0x118),a90_0x1b0a00['KEY_TEST_SCOPE']='test_scope',a90_0x1b0a00[a90_0x39e9d7(0xff)]=a90_0x39e9d7(0xe5),a90_0x1b0a00['KEY_TEST_FRAMEWORK_NAME']=a90_0x39e9d7(0x123),a90_0x1b0a00['KEY_TEST_FRAMEWORK_VERSION']=a90_0x39e9d7(0x107),a90_0x1b0a00['KEY_TEST_CODE']=a90_0x39e9d7(0xe4),a90_0x1b0a00[a90_0x39e9d7(0xf7)]=a90_0x39e9d7(0x128),a90_0x1b0a00['KEY_TEST_RETRY_OF']=a90_0x39e9d7(0x11f),a90_0x1b0a00['KEY_PLATFORM_INDEX']=a90_0x39e9d7(0x106),a90_0x1b0a00['KEY_TEST_FAILURE']='test_failure',a90_0x1b0a00[a90_0x39e9d7(0x120)]='test_failure_type',a90_0x1b0a00[a90_0x39e9d7(0x114)]=a90_0x39e9d7(0xf9),a90_0x1b0a00[a90_0x39e9d7(0x104)]=a90_0x39e9d7(0xfa),a90_0x1b0a00[a90_0x39e9d7(0xe0)]=a90_0x39e9d7(0xdb),a90_0x1b0a00[a90_0x39e9d7(0xd5)]=a90_0x39e9d7(0xfb),a90_0x1b0a00[a90_0x39e9d7(0x100)]=a90_0x39e9d7(0x12b),a90_0x1b0a00[a90_0x39e9d7(0xd8)]=a90_0x39e9d7(0xeb),a90_0x1b0a00[a90_0x39e9d7(0xd4)]=a90_0x39e9d7(0xda),a90_0x1b0a00[a90_0x39e9d7(0xed)]=a90_0x39e9d7(0x116),a90_0x1b0a00[a90_0x39e9d7(0x10c)]='event_ended_at',a90_0x1b0a00[a90_0x39e9d7(0x10a)]=a90_0x39e9d7(0x11d),a90_0x1b0a00[a90_0x39e9d7(0xf5)]='hook_result',a90_0x1b0a00['KEY_HOOK_FAILURE_TYPE']=a90_0x39e9d7(0xfc),a90_0x1b0a00[a90_0x39e9d7(0xea)]='hook_failure_reason',a90_0x1b0a00[a90_0x39e9d7(0xe8)]=a90_0x39e9d7(0x10f),a90_0x1b0a00[a90_0x39e9d7(0xef)]=a90_0x39e9d7(0x112),a90_0x1b0a00[a90_0x39e9d7(0x110)]=a90_0x39e9d7(0x122),a90_0x1b0a00[a90_0x39e9d7(0x129)]=a90_0x39e9d7(0xdf),a90_0x1b0a00[a90_0x39e9d7(0x12e)]=a90_0x39e9d7(0xdf),a90_0x1b0a00[a90_0x39e9d7(0x102)]='TEST_SCREENSHOT',a90_0x1b0a00[a90_0x39e9d7(0xf0)]=a90_0x39e9d7(0xf2),a90_0x1b0a00[a90_0x39e9d7(0x12c)]=a90_0x39e9d7(0x105),a90_0x1b0a00[a90_0x39e9d7(0x10b)]=a90_0x39e9d7(0xde),a90_0x1b0a00[a90_0x39e9d7(0xe6)]='test_hooks_finished',a90_0x1b0a00['KEY_HOOK_LAST_STARTED']=a90_0x39e9d7(0xdd),a90_0x1b0a00[a90_0x39e9d7(0x11b)]=a90_0x39e9d7(0x115),a90_0x1b0a00[a90_0x39e9d7(0x10e)]='logs',a90_0x1b0a00[a90_0x39e9d7(0x11c)]=a90_0x39e9d7(0xd7),a90_0x1b0a00['KEY_TEST_ATTACHMENTS']=a90_0x39e9d7(0x113),a90_0x1b0a00[a90_0x39e9d7(0xdc)]=a90_0x39e9d7(0xec),a90_0x1b0a00[a90_0x39e9d7(0x124)]=a90_0x39e9d7(0xe3),a90_0x1b0a00[a90_0x39e9d7(0xf4)]=a90_0x39e9d7(0xe9),a90_0x1b0a00['KEY_FILE_LEVEL']='file_level',a90_0x1b0a00[a90_0x39e9d7(0x125)]='test_screenshots',a90_0x1b0a00[a90_0x39e9d7(0x109)]=0xa,a90_0x1b0a00[a90_0x39e9d7(0xe1)]=0x2;const TestFrameworkConstants=a90_0x1b0a00;module[a90_0x39e9d7(0x108)]=TestFrameworkConstants;
1
+ const a90_0x3cb76f=a90_0xc1c3;(function(_0x2db2c9,_0x74c633){const _0x4dfd20=a90_0xc1c3,_0x444e4a=_0x2db2c9();while(!![]){try{const _0x4de2bd=-parseInt(_0x4dfd20(0x72))/0x1+-parseInt(_0x4dfd20(0xbd))/0x2+parseInt(_0x4dfd20(0x76))/0x3*(-parseInt(_0x4dfd20(0xbe))/0x4)+-parseInt(_0x4dfd20(0xa1))/0x5*(-parseInt(_0x4dfd20(0xc6))/0x6)+-parseInt(_0x4dfd20(0x8b))/0x7*(-parseInt(_0x4dfd20(0x96))/0x8)+-parseInt(_0x4dfd20(0xb0))/0x9*(-parseInt(_0x4dfd20(0xcb))/0xa)+-parseInt(_0x4dfd20(0x8f))/0xb*(-parseInt(_0x4dfd20(0x81))/0xc);if(_0x4de2bd===_0x74c633)break;else _0x444e4a['push'](_0x444e4a['shift']());}catch(_0x4c473f){_0x444e4a['push'](_0x444e4a['shift']());}}}(a90_0x44d8,0xcb0c5));const a90_0x1c2b38={};a90_0x1c2b38[a90_0x3cb76f(0x6b)]=a90_0x3cb76f(0x7f),a90_0x1c2b38[a90_0x3cb76f(0xc3)]=a90_0x3cb76f(0xa8),a90_0x1c2b38['KEY_TEST_NAME']=a90_0x3cb76f(0x9f),a90_0x1c2b38[a90_0x3cb76f(0xc4)]=a90_0x3cb76f(0x70),a90_0x1c2b38[a90_0x3cb76f(0x98)]=a90_0x3cb76f(0xa2),a90_0x1c2b38[a90_0x3cb76f(0x85)]=a90_0x3cb76f(0x9a),a90_0x1c2b38[a90_0x3cb76f(0xac)]=a90_0x3cb76f(0x7d),a90_0x1c2b38[a90_0x3cb76f(0x97)]='test_started_at',a90_0x1c2b38[a90_0x3cb76f(0x68)]=a90_0x3cb76f(0xa7),a90_0x1c2b38[a90_0x3cb76f(0xca)]=a90_0x3cb76f(0xb1),a90_0x1c2b38[a90_0x3cb76f(0xc2)]=a90_0x3cb76f(0x8a),a90_0x1c2b38[a90_0x3cb76f(0x77)]=a90_0x3cb76f(0xba),a90_0x1c2b38[a90_0x3cb76f(0x69)]=a90_0x3cb76f(0x67),a90_0x1c2b38[a90_0x3cb76f(0x91)]=a90_0x3cb76f(0x79),a90_0x1c2b38[a90_0x3cb76f(0xa6)]=a90_0x3cb76f(0x7b),a90_0x1c2b38[a90_0x3cb76f(0xb4)]=a90_0x3cb76f(0xc8),a90_0x1c2b38['KEY_TEST_RERUN_NAME']=a90_0x3cb76f(0x83),a90_0x1c2b38[a90_0x3cb76f(0x9c)]=a90_0x3cb76f(0xaf),a90_0x1c2b38['KEY_PLATFORM_INDEX']=a90_0x3cb76f(0x92),a90_0x1c2b38[a90_0x3cb76f(0xb8)]=a90_0x3cb76f(0x84),a90_0x1c2b38[a90_0x3cb76f(0xb3)]=a90_0x3cb76f(0xc5),a90_0x1c2b38[a90_0x3cb76f(0x6d)]=a90_0x3cb76f(0x71),a90_0x1c2b38[a90_0x3cb76f(0xb6)]=a90_0x3cb76f(0x99),a90_0x1c2b38[a90_0x3cb76f(0xa9)]=a90_0x3cb76f(0x87),a90_0x1c2b38['KEY_SESSION_NAME']=a90_0x3cb76f(0x94),a90_0x1c2b38['KEY_AUTOMATE_SESSION_NAME']=a90_0x3cb76f(0xbf),a90_0x1c2b38[a90_0x3cb76f(0xc0)]='automate_session_status',a90_0x1c2b38[a90_0x3cb76f(0x89)]='automate_session_reason',a90_0x1c2b38[a90_0x3cb76f(0x90)]=a90_0x3cb76f(0x9d),a90_0x1c2b38['KEY_EVENT_ENDED_AT']='event_ended_at',a90_0x1c2b38[a90_0x3cb76f(0x9b)]=a90_0x3cb76f(0xc1),a90_0x1c2b38['KEY_HOOK_RESULT']=a90_0x3cb76f(0xbb),a90_0x1c2b38[a90_0x3cb76f(0xa5)]=a90_0x3cb76f(0xa4),a90_0x1c2b38[a90_0x3cb76f(0xc9)]='hook_failure_reason',a90_0x1c2b38[a90_0x3cb76f(0x75)]=a90_0x3cb76f(0x8d),a90_0x1c2b38[a90_0x3cb76f(0xa0)]=a90_0x3cb76f(0x7e),a90_0x1c2b38['KEY_HOOK_NAME']=a90_0x3cb76f(0x9e),a90_0x1c2b38[a90_0x3cb76f(0x65)]='pending',a90_0x1c2b38['DEFAULT_HOOK_RESULT']=a90_0x3cb76f(0x6e),a90_0x1c2b38['KIND_SCREENSHOT']=a90_0x3cb76f(0x6c),a90_0x1c2b38[a90_0x3cb76f(0xb9)]=a90_0x3cb76f(0x6f),a90_0x1c2b38[a90_0x3cb76f(0x95)]=a90_0x3cb76f(0x86),a90_0x1c2b38[a90_0x3cb76f(0xad)]=a90_0x3cb76f(0x66),a90_0x1c2b38[a90_0x3cb76f(0x6a)]=a90_0x3cb76f(0x74),a90_0x1c2b38[a90_0x3cb76f(0x82)]=a90_0x3cb76f(0xbc),a90_0x1c2b38['KEY_HOOK_LAST_FINISHED']=a90_0x3cb76f(0xa3),a90_0x1c2b38[a90_0x3cb76f(0x8c)]=a90_0x3cb76f(0x88),a90_0x1c2b38[a90_0x3cb76f(0xae)]=a90_0x3cb76f(0xb2),a90_0x1c2b38['KEY_TEST_ATTACHMENTS']=a90_0x3cb76f(0xb5),a90_0x1c2b38[a90_0x3cb76f(0xb7)]='file_size',a90_0x1c2b38[a90_0x3cb76f(0x80)]=a90_0x3cb76f(0xc7),a90_0x1c2b38[a90_0x3cb76f(0x7c)]=a90_0x3cb76f(0x8e),a90_0x1c2b38[a90_0x3cb76f(0x7a)]=a90_0x3cb76f(0xaa),a90_0x1c2b38[a90_0x3cb76f(0x93)]=a90_0x3cb76f(0x78),a90_0x1c2b38['MAX_TOP_LEVEL_STEPS']=0xa,a90_0x1c2b38[a90_0x3cb76f(0x73)]=0x2;const TestFrameworkConstants=a90_0x1c2b38;module[a90_0x3cb76f(0xab)]=TestFrameworkConstants;function a90_0xc1c3(_0x580cc8,_0x5511f7){const _0x44d826=a90_0x44d8();return a90_0xc1c3=function(_0xc1c3a4,_0x4fb385){_0xc1c3a4=_0xc1c3a4-0x65;let _0x178798=_0x44d826[_0xc1c3a4];return _0x178798;},a90_0xc1c3(_0x580cc8,_0x5511f7);}function a90_0x44d8(){const _0x5690ef=['KEY_FILE_PATH','test_result_at','hook_logs','test_uuid','KEY_FILE_NAME','261276udcSlu','KEY_HOOK_LAST_STARTED','test_rerun_name','test_failure','KEY_TEST_RESULT','^(BEFORE_|AFTER_)','test_meta','logs','KEY_AUTOMATE_SESSION_REASON','test_duration','1433446juZlnH','KEY_LOGS','hook_failure','file_path','968iZLcpU','KEY_EVENT_STARTED_AT','KEY_TEST_FRAMEWORK_NAME','platform_index','KEY_TEST_SCREENSHOTS','test_session_name','HOOK_REGEX','16PhKjqn','KEY_TEST_STARTED_AT','KEY_TEST_TAGS','test_logs','test_result','KEY_HOOK_ID','KEY_TEST_RETRY_OF','event_started_at','hook_name','test_name','KEY_HOOK_LOGS','20255IAcEmr','test_tags','test_hook_last_finished','hook_failure_type','KEY_HOOK_FAILURE_TYPE','KEY_TEST_FRAMEWORK_VERSION','test_ended_at','test_id','KEY_TEST_META','file_level','exports','KEY_TEST_RESULT_AT','KEY_HOOKS_STARTED','KEY_CUSTOM_TAGS','retry_of','114435scpQsF','test_location','custom_metadata','KEY_TEST_FAILURE_TYPE','KEY_TEST_CODE','test_attachments','KEY_TEST_LOGS','KEY_FILE_SIZE','KEY_TEST_FAILURE','KIND_LOG','test_scope','hook_result','test_hook_last_started','780358XMAHwM','12ZDCTPX','automate_session_name','KEY_AUTOMATE_SESSION_STATUS','hook_id','KEY_TEST_DURATION','KEY_TEST_ID','KEY_TEST_FILE_PATH','test_failure_type','228CcNZbn','file_name','test_code','KEY_HOOK_FAILURE_REASON','KEY_TEST_LOCATION','70KkwRzY','DEFAULT_TEST_RESULT','test_hooks_started','test_scopes','KEY_TEST_ENDED_AT','KEY_TEST_SCOPES','KEY_HOOKS_FINISHED','KEY_TEST_UUID','TEST_SCREENSHOT','KEY_TEST_FAILURE_REASON','pending','TEST_LOG','test_file_path','test_failure_reason','89197oiTpYr','MAX_NESTED_STEP_DEPTH','test_hooks_finished','KEY_HOOK_FAILURE','1257462gWRmtc','KEY_TEST_SCOPE','test_screenshots','test_framework_name','KEY_FILE_LEVEL','test_framework_version'];a90_0x44d8=function(){return _0x5690ef;};return a90_0x44d8();}
@@ -1 +1 @@
1
- const a91_0x16de7d=a91_0x18ca;(function(_0x2952dd,_0x194f80){const _0x4f2cc3=a91_0x18ca,_0x5af77c=_0x2952dd();while(!![]){try{const _0xc62eb9=parseInt(_0x4f2cc3(0x1d2))/0x1*(parseInt(_0x4f2cc3(0x22a))/0x2)+-parseInt(_0x4f2cc3(0x26d))/0x3+parseInt(_0x4f2cc3(0x1c9))/0x4*(-parseInt(_0x4f2cc3(0x23c))/0x5)+parseInt(_0x4f2cc3(0x1d3))/0x6*(-parseInt(_0x4f2cc3(0x1e2))/0x7)+-parseInt(_0x4f2cc3(0x1f4))/0x8+-parseInt(_0x4f2cc3(0x1d6))/0x9*(parseInt(_0x4f2cc3(0x21a))/0xa)+parseInt(_0x4f2cc3(0x228))/0xb;if(_0xc62eb9===_0x194f80)break;else _0x5af77c['push'](_0x5af77c['shift']());}catch(_0x6182f7){_0x5af77c['push'](_0x5af77c['shift']());}}}(a91_0x5e6b,0x8cf60));function a91_0x5e6b(){const _0x28bcc2=['KEY_TEST_ATTACHMENTS','\x20and\x20args\x20=\x20','\x20payload=','failure_type','length','runHooks','FWfKE','Processing\x20','customRerunParam','../state/hookState.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','setTestDetails','Updated\x20cucumber\x20test\x20result:\x20','470ElKVSO','finishedAt','getAllData','HUIUT','nEIbP','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_TEST_STARTED_AT',',\x20state=','KEY_HOOK_FAILURE_REASON','endedAt','failure_reason','KEY_HOOK_RESULT','scopes','\x20batch\x20','19704960cyMyQz','parseCucumberTest','2260tcFqAv','getTestUUID','meta','sendLogCreatedEvent','KEY_EVENT_STARTED_AT','NEUnz','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testData','KEY_TEST_FRAMEWORK_NAME','../instances/testFrameworkInstance.js','instance','srlMA','uodfG','Cvauh','get','KEY_AUTOMATE_SESSION_NAME','format','matchHookRegex','54570wLakyM','KEY_TEST_ENDED_AT','getId','test','KEY_TEST_FAILURE','trackHookEvent','setTrackedInstance','KEY_TEST_RERUN_NAME','sNGza','resolveInstance','base64','trackEvent','concat','hookState','KEY_HOOK_FAILURE','../cliUtils.js','hooks','RAkYO','getInstance','KEY_TEST_RESULT','KEY_TEST_RESULT_AT','korhV','TEST','testFrameworkState','xtbZy','hook_type','trackCucumberInstance','result','getCurrentInstanceName','LOG_REPORT','getCurrentTestState','\x20with\x20result:\x20','failed','Cucumber\x20log\x20created\x20event','KEY_EVENT_ENDED_AT','getPendingHooks','logCreatedEvent','toISOString','KEY_HOOK_ID','hookData','qqcRd','code','ybKrV','parseCucumberTestResult','yuQUo','testUUID','./constants/testFrameworkConstants.js','../grpcClient','failure','1745211ejJMKV','finished_at','KEY_TEST_FRAMEWORK_VERSION','NONE','PlEen','error','KEY_TEST_NAME','qNrCh','QLupF','getContext','ppkli','split','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','passed','storePendingHook',',\x20state:\x20','args','util','KEY_TEST_TAGS','keys','inspect','hasPendingHooks','KEY_TEST_FILE_PATH','KEY_CUSTOM_TAGS','Stored\x20pending\x20hook\x20for\x20testId:\x20','key','slice','readLogObjects','\x20testState:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','startedAt','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_LOCATION','INIT_TEST','JiMoS','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','../TestInfo.js','ceil','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_UUID','name','platformIndex','\x20\x20and\x20args\x20=\x20','KEY_HOOKS_FINISHED','createContext','SgRzl','Parsed\x20cucumber\x20test:\x20','\x20target=','168qgsBUm','getTestFrameworks','addMultipleEntries','unknown','POST','getRef','\x20hookState:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','MQdCS','781PsgEqD','426fJUSgH','started_at','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','162477CDFbtn','oMWFM','DEFAULT_HOOK_RESULT','\x20&\x20hookState=','testFrameworkVersion','PRE','\x20response=','createTestFrameworkEventPayload\x20testId:\x20','kNOFi','QsyVe','QltPh','from','13118AEsnFu','browserstackPlatformIndex','KEY_LOGS','push','KMyZT','MRrby','ivfev','location','failure_data','\x20with\x20id\x20','executionContext','toString','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_FAILURE_TYPE','KEY_HOOK_LAST_FINISHED','KEY_HOOK_NAME','getTestFrameworksVersions','stringify','598752cTvqgV','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_CODE','getTestDetails','CucumberTestFramework','KEY_HOOK_LOGS','rerun_name','UnhandledError','test_run_id','../../../helpers/helper.js','Error\x20in\x20createTestFrameworkEventPayload:\x20','debug','processPendingHooks',',\x20error:\x20','body','KEY_HOOKS_STARTED','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_META','uuid',',\x20hookState:\x20','../../../helpers/classLogger.js','eventJson','czPZZ',',\x20storing\x20as\x20pending\x20hook','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'];a91_0x5e6b=function(){return _0x28bcc2;};return a91_0x5e6b();}const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a91_0x16de7d(0x216)),{createClassLogger}=require(a91_0x16de7d(0x208)),TestFrameworkInstance=require(a91_0x16de7d(0x233)),CLIUtils=require(a91_0x16de7d(0x24b)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a91_0x16de7d(0x26a)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x16de7d(0x1fd)),logger=createClassLogger(a91_0x16de7d(0x1f8)),{v4:uuidv4}=require(a91_0x16de7d(0x206)),util=require(a91_0x16de7d(0x1aa)),TestInfo=require(a91_0x16de7d(0x1bd)),GrpcClient=require(a91_0x16de7d(0x26b));class CucumberTestFramework extends TestFramework{constructor(_0x155e76,_0x577d94,_0x50a239){super(_0x155e76,_0x577d94,_0x50a239);}async[a91_0x16de7d(0x247)](_0x2858cc,_0x48bbe9,_0x1b9b7e={}){const _0x3ec056=a91_0x16de7d,_0x5c8129={};_0x5c8129[_0x3ec056(0x1c6)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x5c8129[_0x3ec056(0x275)]=function(_0x509487,_0x4bcd93){return _0x509487===_0x4bcd93;},_0x5c8129['OxLGH']=function(_0x12a009,_0x505c28){return _0x12a009===_0x505c28;},_0x5c8129[_0x3ec056(0x271)]=_0x3ec056(0x21f);const _0x49ead2=_0x5c8129;await super[_0x3ec056(0x247)](_0x2858cc,_0x48bbe9,_0x1b9b7e);const _0x30429c=this[_0x3ec056(0x245)](_0x2858cc,_0x48bbe9,_0x1b9b7e);if(!_0x30429c){logger[_0x3ec056(0x1ff)](_0x49ead2['SgRzl']);return;}try{let _0x5f4f9b,_0x3e1533;switch(_0x2858cc){case TestFrameworkState[_0x3ec056(0x252)]:_0x5f4f9b=_0x1b9b7e['test'],_0x3e1533=TestInfo[_0x3ec056(0x22b)](_0x5f4f9b['id']);if(_0x49ead2[_0x3ec056(0x275)](_0x48bbe9,HookState[_0x3ec056(0x1db)])){logger[_0x3ec056(0x1ff)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x5f4f9b['id']);const _0x8012e8={};_0x8012e8[_0x3ec056(0x269)]=_0x3e1533,_0x8012e8[_0x3ec056(0x231)]=_0x5f4f9b,_0x30429c['addMultipleEntries'](this[_0x3ec056(0x229)](_0x8012e8)),logger[_0x3ec056(0x1ff)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x5f4f9b['id']),await this[_0x3ec056(0x200)](_0x30429c,_0x5f4f9b['id']);}else{if(_0x49ead2[_0x3ec056(0x275)](_0x48bbe9,HookState[_0x3ec056(0x1cd)])){const _0x49baff={};_0x49baff[_0x3ec056(0x269)]=_0x3e1533,_0x49baff[_0x3ec056(0x231)]=_0x5f4f9b,_0x30429c[_0x3ec056(0x1cb)](this[_0x3ec056(0x267)](_0x49baff)),await this[_0x3ec056(0x200)](_0x30429c,_0x5f4f9b['id']);}}break;case TestFrameworkState[_0x3ec056(0x259)]:_0x49ead2['OxLGH'](_0x48bbe9,HookState[_0x3ec056(0x1cd)])&&await this[_0x3ec056(0x22d)](_0x30429c,_0x2858cc,_0x1b9b7e);break;default:if(CLIUtils[_0x3ec056(0x23b)](_0x2858cc[_0x3ec056(0x1ed)]()[_0x3ec056(0x278)]('.')[0x1])){const _0x2bb105=await this['trackHookEvent'](_0x30429c,_0x2858cc,_0x48bbe9,_0x1b9b7e);_0x30429c[_0x3ec056(0x1cb)](_0x2bb105);}else logger[_0x3ec056(0x1ff)](_0x3ec056(0x1b6)+_0x2858cc+_0x3ec056(0x1d9)+_0x48bbe9);break;}}catch(_0x4a3dab){logger[_0x3ec056(0x272)](util[_0x3ec056(0x23a)](_0x49ead2['PlEen'],_0x2858cc,_0x48bbe9,_0x1b9b7e[_0x3ec056(0x211)],_0x4a3dab));}_0x1b9b7e[_0x3ec056(0x234)]=_0x30429c,await this['runHooks'](_0x30429c,_0x2858cc,_0x48bbe9,_0x1b9b7e);}['resolveInstance'](_0x25145d,_0x43f471,_0x17912e={}){const _0x49c86f=a91_0x16de7d,_0x53ca10={};_0x53ca10[_0x49c86f(0x22f)]=function(_0x389ad6,_0x1461e1){return _0x389ad6===_0x1461e1;};const _0x4e9e35=_0x53ca10;let _0x38ab6d=null;return(_0x4e9e35['NEUnz'](_0x25145d,TestFrameworkState[_0x49c86f(0x1ba)])||_0x4e9e35[_0x49c86f(0x22f)](_0x25145d,TestFrameworkState[_0x49c86f(0x270)]))&&this['trackCucumberInstance'](_0x25145d,_0x17912e),_0x38ab6d=TestFramework['getTrackedInstance'](),_0x38ab6d;}[a91_0x16de7d(0x256)](_0x20b599,_0x2dad5f){const _0x1e9882=a91_0x16de7d,_0x286ecc=CLIUtils[_0x1e9882(0x258)](),_0x55893e=TrackedInstance[_0x1e9882(0x1c5)](_0x286ecc);let _0x22c615=null;logger[_0x1e9882(0x1ff)](_0x1e9882(0x1bc)+_0x286ecc+_0x1e9882(0x221)+_0x20b599),_0x22c615=new TestFrameworkInstance(_0x55893e,this[_0x1e9882(0x1ca)](),this['getTestFrameworksVersions'](),_0x20b599,HookState['NONE']),TestFramework[_0x1e9882(0x242)](_0x55893e,_0x22c615),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x55893e[_0x1e9882(0x23e)]()+_0x1e9882(0x1c8)+_0x286ecc);}[a91_0x16de7d(0x229)](_0x1209d4){const _0x370d23=a91_0x16de7d,_0x4f93d0={};_0x4f93d0[_0x370d23(0x236)]=_0x370d23(0x230);const _0x5a99b7=_0x4f93d0,{testUUID:_0x8ec7c8,testData:_0x3687f1}=_0x1209d4;if(!_0x3687f1||!_0x3687f1[_0x370d23(0x206)])return logger[_0x370d23(0x1ff)](_0x5a99b7[_0x370d23(0x236)]),{};const _0xdc78f0=_0x8ec7c8,_0xe5d7e0=_0x3687f1['uuid'],_0x264e84=this[_0x370d23(0x1ca)]()[0x0],_0x4f1949=this[_0x370d23(0x1f2)](),_0x26c749={[TestFrameworkConstants[_0x370d23(0x232)]]:_0x264e84,[TestFrameworkConstants[_0x370d23(0x26f)]]:_0x4f1949[_0x264e84],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x370d23(0x1c4)]]:{},[TestFrameworkConstants[_0x370d23(0x203)]]:{},[TestFrameworkConstants[_0x370d23(0x1c0)]]:_0xdc78f0,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x370d23(0x239)]]:_0x3687f1[_0x370d23(0x1c1)]||'',[TestFrameworkConstants[_0x370d23(0x1af)]]:_0x3687f1['file_name']||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0xe5d7e0,[TestFrameworkConstants[_0x370d23(0x273)]]:_0x3687f1[_0x370d23(0x1c1)]||'',[TestFrameworkConstants[_0x370d23(0x1b9)]]:_0x3687f1[_0x370d23(0x1e9)]||'',[TestFrameworkConstants[_0x370d23(0x1f6)]]:_0x3687f1[_0x370d23(0x202)]?.[_0x370d23(0x265)]||null,[TestFrameworkConstants[_0x370d23(0x1ab)]]:_0x3687f1['tags']||[],[TestFrameworkConstants[_0x370d23(0x220)]]:_0x3687f1[_0x370d23(0x1b7)]||new Date()[_0x370d23(0x261)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x3687f1[_0x370d23(0x226)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x3687f1[_0x370d23(0x226)]||[],[TestFrameworkConstants[_0x370d23(0x243)]]:_0x3687f1[_0x370d23(0x215)]?.[_0x370d23(0x1fa)]||_0x3687f1[_0x370d23(0x1c1)]||'',[TestFrameworkConstants[_0x370d23(0x1b0)]]:{},[TestFrameworkConstants[_0x370d23(0x205)]]:_0x3687f1[_0x370d23(0x22c)]||{}};TestInfo[_0x370d23(0x218)](_0xe5d7e0,_0x26c749),logger['debug'](_0x370d23(0x1c7)+_0x3687f1[_0x370d23(0x1c1)]+'\x20with\x20UUID:\x20'+_0xdc78f0);const _0x5917f7={};return _0x5917f7[_0xe5d7e0]=_0x26c749,_0x5917f7;}['parseCucumberTestResult'](_0x23c0d4){const _0x41e96e=a91_0x16de7d,_0x7de1ce={'fUgHr':_0x41e96e(0x217),'MQdCS':_0x41e96e(0x1cc),'MRrby':function(_0x41b6b0,_0x1f8edd){return _0x41b6b0===_0x1f8edd;},'sNGza':_0x41e96e(0x25c),'kNOFi':'UnhandledError','qNrCh':function(_0x390c97,_0x162f9d,_0xca6d2d){return _0x390c97(_0x162f9d,_0xca6d2d);},'QsyVe':function(_0x220537,_0x516387){return _0x220537>_0x516387;}},{testUUID:_0x589257,testData:_0x4783d2}=_0x23c0d4;if(!_0x4783d2||!_0x4783d2[_0x41e96e(0x206)])return logger[_0x41e96e(0x1ff)](_0x7de1ce['fUgHr']),{};const _0x303e08=this[_0x41e96e(0x245)](TestFrameworkState['TEST'],HookState[_0x41e96e(0x1cd)]),_0x560eba=_0x4783d2[_0x41e96e(0x206)],_0x11fa00=TestInfo[_0x41e96e(0x1f7)](_0x560eba)||{},_0x23fb25=_0x11fa00?_0x11fa00[TestFrameworkConstants[_0x41e96e(0x1b0)]]||{}:{},_0x55dc59={..._0x11fa00,[TestFrameworkConstants[_0x41e96e(0x24f)]]:_0x4783d2[_0x41e96e(0x257)]||_0x7de1ce[_0x41e96e(0x1d1)],[TestFrameworkConstants[_0x41e96e(0x23d)]]:_0x4783d2[_0x41e96e(0x21b)]||new Date()[_0x41e96e(0x261)](),[TestFrameworkConstants[_0x41e96e(0x250)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x41e96e(0x1b0)]]:_0x23fb25,[TestFrameworkConstants[_0x41e96e(0x1e4)]]:[],[TestFrameworkConstants[_0x41e96e(0x205)]]:_0x4783d2[_0x41e96e(0x22c)]||{}};_0x7de1ce[_0x41e96e(0x1e7)](_0x4783d2[_0x41e96e(0x257)],_0x7de1ce[_0x41e96e(0x244)])&&_0x4783d2[_0x41e96e(0x26c)]&&(_0x55dc59[TestFrameworkConstants[_0x41e96e(0x1ef)]]=_0x4783d2['failure_type']||_0x7de1ce[_0x41e96e(0x1de)],_0x55dc59[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4783d2[_0x41e96e(0x224)]||'',_0x55dc59[TestFrameworkConstants[_0x41e96e(0x240)]]=_0x4783d2[_0x41e96e(0x26c)]);const _0x24d5fd=TestInfo['getTestDetails'](_0x560eba)[TestFrameworkConstants[_0x41e96e(0x20d)]]||{},_0x40507a=_0x7de1ce[_0x41e96e(0x274)](getManualUploadLogs,_0x24d5fd,_0x303e08[_0x41e96e(0x21c)]()[_0x41e96e(0x238)](_0x560eba)[TestFrameworkConstants[_0x41e96e(0x1c0)]]);if(_0x7de1ce[_0x41e96e(0x1df)](_0x40507a['length'],0x0)){const _0x1c1076=_0x55dc59[TestFrameworkConstants[_0x41e96e(0x1e4)]]||[];_0x55dc59[TestFrameworkConstants[_0x41e96e(0x1e4)]]=[..._0x1c1076,..._0x40507a];}_0x4783d2[_0x41e96e(0x24c)]&&_0x7de1ce[_0x41e96e(0x1df)](_0x4783d2[_0x41e96e(0x24c)][_0x41e96e(0x211)],0x0)&&(_0x55dc59[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x4783d2[_0x41e96e(0x24c)]);TestInfo[_0x41e96e(0x218)](_0x560eba,_0x55dc59),logger[_0x41e96e(0x1ff)](_0x41e96e(0x219)+_0x4783d2[_0x41e96e(0x1c1)]+_0x41e96e(0x25b)+_0x4783d2['result']);const _0x522f65={};return _0x522f65[_0x560eba]=_0x55dc59,_0x522f65;}async[a91_0x16de7d(0x241)](_0x2760a5,_0x497883,_0x85ce38,_0x2c7fae){const _0x129a58=a91_0x16de7d,_0x2afe9a={'oMWFM':_0x129a58(0x1bf),'FWfKE':function(_0x1b4f11){return _0x1b4f11();},'HUIUT':function(_0x4b8ef7,_0x49a3a5){return _0x4b8ef7 in _0x49a3a5;},'srlMA':function(_0x200af8,_0x51c3f5){return _0x200af8===_0x51c3f5;},'qqcRd':function(_0x5aef43,_0x1534f6){return _0x5aef43>_0x1534f6;},'ivfev':_0x129a58(0x25c),'ppkli':_0x129a58(0x1fb),'Cvauh':_0x129a58(0x27a),'kxZNX':function(_0x1fc8f5,_0x4288ee){return _0x1fc8f5!==_0x4288ee;}},{hookData:_0x4be641}=_0x2c7fae;if(!_0x4be641)return logger['debug'](_0x2afe9a[_0x129a58(0x1d7)]),{};const _0x19fa13=_0x4be641[_0x129a58(0x206)]||_0x2afe9a[_0x129a58(0x213)](uuidv4),_0x1b1db2=_0x4be641['test_run_id'],_0x1a7b0f=_0x497883[_0x129a58(0x1ed)]()[_0x129a58(0x278)]('.')[0x1],_0x3fe2e6=TestInfo['getTestDetails'](_0x1b1db2)[TestFrameworkConstants[_0x129a58(0x1b0)]]||{},_0x4a3786=_0x2760a5[_0x129a58(0x21c)]()['get'](_0x1b1db2);if(!_0x4a3786)return logger[_0x129a58(0x1ff)](_0x129a58(0x1b8)+_0x1b1db2+_0x129a58(0x20b)),this[_0x129a58(0x1a7)](_0x2760a5,_0x1b1db2,_0x497883,_0x85ce38,_0x2c7fae),{};let _0x29169f=_0x4a3786[TestFrameworkConstants[_0x129a58(0x203)]];!_0x29169f&&(_0x29169f={});!_0x2afe9a[_0x129a58(0x21d)](_0x1a7b0f,_0x29169f)&&(_0x29169f[_0x1a7b0f]=[]);let _0x460315=_0x4a3786[TestFrameworkConstants[_0x129a58(0x1c4)]];!_0x460315&&(_0x460315={});!_0x2afe9a[_0x129a58(0x21d)](_0x1a7b0f,_0x460315)&&(_0x460315[_0x1a7b0f]=[]);const _0x9bce53={[TestFrameworkConstants[_0x129a58(0x203)]]:_0x29169f,[TestFrameworkConstants[_0x129a58(0x1c4)]]:_0x460315},_0x33818b={};_0x33818b[_0x1b1db2]=_0x9bce53;const _0x513620=_0x33818b;if(_0x2afe9a[_0x129a58(0x235)](_0x85ce38,HookState['PRE'])){const _0x18b2ac={[TestFrameworkConstants[_0x129a58(0x262)]]:_0x19fa13,[TestFrameworkConstants[_0x129a58(0x225)]]:TestFrameworkConstants[_0x129a58(0x1d8)],[TestFrameworkConstants[_0x129a58(0x22e)]]:_0x4be641[_0x129a58(0x1d4)],[TestFrameworkConstants[_0x129a58(0x1f9)]]:[],[TestFrameworkConstants[_0x129a58(0x1f1)]]:_0x4be641[_0x129a58(0x1c1)]||_0x4be641[_0x129a58(0x255)],[TestFrameworkConstants[_0x129a58(0x1b0)]]:_0x3fe2e6};_0x18b2ac[_0x129a58(0x1b2)]=_0x1a7b0f;const _0x406827=_0x18b2ac;_0x29169f[_0x1a7b0f]['push'](_0x406827),_0x513620[_0x1b1db2][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x1a7b0f,logger[_0x129a58(0x1ff)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x1a7b0f+'\x20&\x20hook\x20=\x20'+_0x406827+_0x129a58(0x1c3)+_0x2c7fae);}else{if(_0x2afe9a[_0x129a58(0x235)](_0x85ce38,HookState[_0x129a58(0x1cd)])){const _0x3230b5=_0x4be641[_0x129a58(0x257)],_0x3eae32=_0x29169f[_0x1a7b0f]||[];logger[_0x129a58(0x1ff)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3eae32+_0x129a58(0x20e)+_0x2c7fae);if(_0x2afe9a[_0x129a58(0x264)](_0x3eae32[_0x129a58(0x211)],0x0)){const _0x241286=_0x3eae32['pop']();_0x2afe9a[_0x129a58(0x235)](_0x4be641[_0x129a58(0x257)],_0x2afe9a[_0x129a58(0x1e8)])&&_0x4be641['failure_data']?(_0x241286[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x4be641[_0x129a58(0x210)]||_0x2afe9a[_0x129a58(0x277)],_0x241286[TestFrameworkConstants[_0x129a58(0x222)]]=_0x4be641[_0x129a58(0x224)]||'',_0x241286[TestFrameworkConstants[_0x129a58(0x24a)]]=_0x4be641[_0x129a58(0x1ea)]):_0x241286[TestFrameworkConstants[_0x129a58(0x225)]]=_0x2afe9a[_0x129a58(0x237)];_0x2afe9a['kxZNX'](_0x3230b5,TestFrameworkConstants[_0x129a58(0x1d8)])&&(_0x241286[TestFrameworkConstants[_0x129a58(0x225)]]=_0x3230b5);_0x241286[TestFrameworkConstants[_0x129a58(0x25e)]]=_0x4be641[_0x129a58(0x26e)]||new Date()['toISOString'](),_0x241286[TestFrameworkConstants[_0x129a58(0x1b0)]]=_0x3fe2e6;const _0x2cd20c=_0x241286[TestFrameworkConstants['KEY_HOOK_ID']];!_0x460315[_0x1a7b0f]&&(_0x460315[_0x1a7b0f]=[]),_0x460315[_0x1a7b0f][_0x129a58(0x1e5)](_0x241286),_0x513620[_0x1b1db2][TestFrameworkConstants[_0x129a58(0x1f0)]]=_0x1a7b0f;}}}return logger[_0x129a58(0x1ff)](_0x129a58(0x204)+_0x4be641[_0x129a58(0x255)]+_0x129a58(0x1eb)+_0x19fa13+'\x20for\x20test:\x20'+_0x1b1db2),_0x513620;}['createTestFrameworkEventPayload'](_0x291512){const _0x2d29f7=a91_0x16de7d,_0x4e05d5={};_0x4e05d5[_0x2d29f7(0x266)]=_0x2d29f7(0x246);const _0x18ed92=_0x4e05d5;try{const _0x3a9e95=_0x291512[_0x2d29f7(0x23f)]?_0x291512[_0x2d29f7(0x23f)]['id']:_0x291512[_0x2d29f7(0x263)][_0x2d29f7(0x1fc)],_0x96e3e7=_0x291512[_0x2d29f7(0x234)],_0x1b2fe2=_0x96e3e7[_0x2d29f7(0x276)](),_0x210317=_0x96e3e7[_0x2d29f7(0x21c)]()[_0x2d29f7(0x238)](_0x3a9e95);if(!_0x210317)return logger[_0x2d29f7(0x1ff)](_0x2d29f7(0x20c)+_0x3a9e95),{};logger['debug'](_0x2d29f7(0x1dd)+_0x3a9e95);const {[TestFrameworkConstants[_0x2d29f7(0x232)]]:_0x87e781='',[TestFrameworkConstants[_0x2d29f7(0x26f)]]:_0x5193a9='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x414069='',[TestFrameworkConstants[_0x2d29f7(0x23d)]]:_0x584512=''}=_0x210317,_0x210a86=_0x96e3e7[_0x2d29f7(0x25a)]()[_0x2d29f7(0x1ed)]()[_0x2d29f7(0x278)]('.')[0x1],_0x2c9b29=_0x96e3e7['getCurrentHookState']()[_0x2d29f7(0x1ed)]()['split']('.')[0x1],_0x29d1b6=global?.['browserstackPlatformIndex']??0x0,_0x5dee3b=_0x96e3e7[_0x2d29f7(0x1ce)](),_0x2640a0=Buffer[_0x2d29f7(0x1e1)](JSON[_0x2d29f7(0x1f3)](_0x210317))['toString'](_0x18ed92['ybKrV']),_0x318a69={'hash':_0x1b2fe2[_0x2d29f7(0x23e)](),'threadId':_0x1b2fe2['getThreadId']()[_0x2d29f7(0x1ed)](),'processId':_0x1b2fe2['getProcessId']()['toString']()},_0x38b0ac={};_0x38b0ac[_0x2d29f7(0x1c2)]=_0x29d1b6,_0x38b0ac['testFrameworkName']=_0x87e781,_0x38b0ac[_0x2d29f7(0x1da)]=_0x5193a9,_0x38b0ac[_0x2d29f7(0x253)]=_0x210a86,_0x38b0ac['hookState']=_0x2c9b29,_0x38b0ac[_0x2d29f7(0x1b7)]=_0x414069,_0x38b0ac[_0x2d29f7(0x223)]=_0x584512,_0x38b0ac[_0x2d29f7(0x206)]=_0x5dee3b,_0x38b0ac[_0x2d29f7(0x209)]=_0x2640a0,_0x38b0ac[_0x2d29f7(0x1ec)]=_0x318a69;const _0x4c08de=_0x38b0ac;return logger[_0x2d29f7(0x1ff)](_0x2d29f7(0x1ee)+_0x3a9e95+_0x2d29f7(0x1b5)+_0x210a86+_0x2d29f7(0x1cf)+_0x2c9b29),_0x4c08de;}catch(_0x41a1bd){return logger[_0x2d29f7(0x272)](_0x2d29f7(0x1fe)+util[_0x2d29f7(0x23a)](_0x41a1bd)),{};}}async[a91_0x16de7d(0x22d)](_0x45f5f0,_0x25cf4e,_0x249289){const _0x3f2cec=a91_0x16de7d,_0xfd5f2f={'xtbZy':function(_0x3cc8c6,_0x3d084a,_0x36aae9){return _0x3cc8c6(_0x3d084a,_0x36aae9);},'korhV':function(_0x221b4c,_0x5067a2){return _0x221b4c===_0x5067a2;},'KMyZT':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','yuQUo':function(_0x37b0b1,_0x259df2){return _0x37b0b1/_0x259df2;},'RAkYO':function(_0x330a95,_0x904bda){return _0x330a95<_0x904bda;},'czPZZ':function(_0x41b7f6,_0x9ba243){return _0x41b7f6*_0x9ba243;},'JiMoS':function(_0x190e53,_0x53490a){return _0x190e53+_0x53490a;},'QltPh':function(_0x5181ed,_0x3ad298){return _0x5181ed+_0x3ad298;},'CEocA':_0x3f2cec(0x25d)};try{const _0x400e27=_0x249289[_0x3f2cec(0x269)],_0x2cb7d2=_0x45f5f0['getAllData']()[_0x3f2cec(0x238)](_0x400e27),{[TestFrameworkConstants[_0x3f2cec(0x232)]]:_0x5dbf79='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x31009d=''}=_0x2cb7d2,_0x5ab6b8=TestInfo[_0x3f2cec(0x1b4)](_0x400e27),_0x229b68=TestInfo[_0x3f2cec(0x1f7)](_0x400e27)[TestFrameworkConstants[_0x3f2cec(0x20d)]]||{},_0x182bdc=_0xfd5f2f[_0x3f2cec(0x254)](getMediaArtifactsLogs,_0x229b68,_0x45f5f0[_0x3f2cec(0x21c)]()['get'](_0x400e27)[TestFrameworkConstants[_0x3f2cec(0x1c0)]]),_0x30874e=(_0x5ab6b8||[])[_0x3f2cec(0x248)](_0x182bdc||[]);if(!_0x30874e||_0xfd5f2f[_0x3f2cec(0x251)](_0x30874e['length'],0x0)){logger[_0x3f2cec(0x1ff)](_0xfd5f2f[_0x3f2cec(0x1e6)]);return;}const _0x27bc7c=0x28,_0x4cef9b=Math[_0x3f2cec(0x1be)](_0xfd5f2f[_0x3f2cec(0x268)](_0x30874e[_0x3f2cec(0x211)],_0x27bc7c));for(let _0x2118bf=0x0;_0xfd5f2f[_0x3f2cec(0x24d)](_0x2118bf,_0x4cef9b);_0x2118bf++){const _0x548ad2=_0xfd5f2f[_0x3f2cec(0x20a)](_0x2118bf,_0x27bc7c),_0x1be124=_0xfd5f2f[_0x3f2cec(0x1bb)](_0x548ad2,_0x27bc7c),_0x1c7e2e=_0x30874e[_0x3f2cec(0x1b3)](_0x548ad2,_0x1be124),_0x2a1be0={'platformIndex':global?.[_0x3f2cec(0x1e3)]??0x0,'logs':_0x1c7e2e,'testFrameworkName':_0x5dbf79,'testFrameworkVersion':_0x31009d,'testFrameworkState':_0x25cf4e[_0x3f2cec(0x1ed)]()[_0x3f2cec(0x278)]('.')[0x1]};logger[_0x3f2cec(0x1ff)](_0x3f2cec(0x1d0)+_0x400e27+_0x3f2cec(0x227)+_0xfd5f2f[_0x3f2cec(0x1e0)](_0x2118bf,0x1)+'/'+_0x4cef9b+_0x3f2cec(0x20f)+util[_0x3f2cec(0x1ad)](_0x2a1be0));const _0x4d292b=await GrpcClient[_0x3f2cec(0x24e)]()[_0x3f2cec(0x260)](_0x2a1be0);logger[_0x3f2cec(0x1ff)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x400e27+_0x3f2cec(0x227)+_0xfd5f2f['JiMoS'](_0x2118bf,0x1)+'/'+_0x4cef9b+_0x3f2cec(0x1dc)+util[_0x3f2cec(0x1ad)](_0x4d292b));}}catch(_0x1f80fd){logger['error'](_0x3f2cec(0x1d5)+util[_0x3f2cec(0x23a)](_0x1f80fd));}logger[_0x3f2cec(0x1ff)](_0xfd5f2f['CEocA']);}[a91_0x16de7d(0x1a7)](_0x322033,_0x405e28,_0x70876a,_0x576142,_0x51994f){const _0x2c8731=a91_0x16de7d,_0x11bbb0={'testId':_0x405e28,'testFrameworkState':_0x70876a,'hookState':_0x576142,'args':_0x51994f,'timestamp':new Date()[_0x2c8731(0x261)]()};_0x322033['addPendingHook'](_0x405e28,_0x11bbb0),logger['debug'](_0x2c8731(0x1b1)+_0x405e28+_0x2c8731(0x1a8)+_0x70876a+_0x2c8731(0x207)+_0x576142);}async['processPendingHooks'](_0x4288d5,_0x291664){const _0xc69c0d=a91_0x16de7d,_0x36c61d={};_0x36c61d[_0xc69c0d(0x21e)]=function(_0x2f0cd3,_0x2a7997){return _0x2f0cd3>_0x2a7997;};const _0x5908fc=_0x36c61d;if(!_0x4288d5[_0xc69c0d(0x1ae)](_0x291664))return;const _0x307c17=_0x4288d5[_0xc69c0d(0x25f)](_0x291664);logger['debug'](_0xc69c0d(0x214)+_0x307c17['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x291664);for(const _0xe1f99 of _0x307c17){try{const _0x33fc0e=await this[_0xc69c0d(0x241)](_0x4288d5,_0xe1f99['testFrameworkState'],_0xe1f99[_0xc69c0d(0x249)],_0xe1f99[_0xc69c0d(0x1a9)]);_0x33fc0e&&_0x5908fc[_0xc69c0d(0x21e)](Object[_0xc69c0d(0x1ac)](_0x33fc0e)[_0xc69c0d(0x211)],0x0)&&_0x4288d5['addMultipleEntries'](_0x33fc0e),await this[_0xc69c0d(0x212)](_0x4288d5,_0xe1f99[_0xc69c0d(0x253)],_0xe1f99[_0xc69c0d(0x249)],_0xe1f99[_0xc69c0d(0x1a9)]);}catch(_0x52a1bc){logger['error'](_0xc69c0d(0x1f5)+_0x291664+_0xc69c0d(0x201)+_0x52a1bc);}}_0x4288d5['removePendingHooks'](_0x291664),logger[_0xc69c0d(0x1ff)](_0xc69c0d(0x279)+_0x291664);}}function a91_0x18ca(_0x563670,_0x4590b6){const _0x5e6bfa=a91_0x5e6b();return a91_0x18ca=function(_0x18cafb,_0x4eb66d){_0x18cafb=_0x18cafb-0x1a7;let _0x147193=_0x5e6bfa[_0x18cafb];return _0x147193;},a91_0x18ca(_0x563670,_0x4590b6);}module['exports']=CucumberTestFramework;
1
+ const a91_0x1de042=a91_0x33b3;function a91_0x4dab(){const _0x3b190c=['2461758xnGhgS','rftlG','createContext','KEY_HOOK_ID','setTrackedInstance','storePendingHook','KEY_TEST_STARTED_AT','util','\x20with\x20UUID:\x20','hook_type','getCurrentTestState','getAllData','KEY_HOOK_LAST_STARTED','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_FRAMEWORK_VERSION','GvnLA','getCurrentHookState','getInstance','push','KEY_TEST_CODE','getTestFrameworksVersions','UnhandledError','failure_reason','error','getCurrentInstanceName','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','testFrameworkVersion','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','106555VQOkFe','finishedAt','Tracked\x20cucumber\x20hook\x20event:\x20',',\x20state:\x20','base64','WiEgL','KEY_HOOK_NAME','../grpcClient','setTestDetails','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','\x20with\x20id\x20','../cliUtils.js','args','mZALu','upYIi','KEY_TEST_SCOPE',',\x20storing\x20as\x20pending\x20hook','scopes','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','reHWl','QBivR','12oBRXJF','toString','pop','failed','KEY_EVENT_STARTED_AT','CucumberTestFramework','resolveInstance','MlFXK','KEY_TEST_RESULT','browserstackPlatformIndex','removePendingHooks','getId','lPfgO','211923yISjBa','KEY_TEST_ID','vnNhI','toISOString','KEY_HOOK_LAST_FINISHED','../../../helpers/classLogger.js','trackEvent','testData','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','readLogObjects','KEY_HOOKS_STARTED','test','matchHookRegex','POST','logCreatedEvent','failure_data','\x20&\x20hookState=','getThreadId','CYNKm','KEY_TEST_FAILURE_REASON','Stored\x20pending\x20hook\x20for\x20testId:\x20','KfKrM','passed','runHooks','split','KEY_HOOKS_FINISHED','slice','KEY_TEST_RESULT_AT','2366755DPqTda','rerun_name','WMNmU','KPVpd','parseCucumberTestResult','executionContext','906162Fntnym','trackHookEvent','\x20testState:\x20','KEY_AUTOMATE_SESSION_NAME','addPendingHook','../instances/testFrameworkInstance.js','sendLogCreatedEvent','izBPe','file_name','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','processPendingHooks','UlMIb','DEFAULT_TEST_RESULT','CekrU',',\x20state=','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FAILURE_TYPE','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','lIDkN',',\x20error:\x20','length','startedAt','LOG_REPORT','PRE','KEY_TEST_ENDED_AT','KEY_HOOK_FAILURE_TYPE','KEY_CUSTOM_TAGS','tags','KEY_TEST_LOGS','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_LOGS','gFfiY','hooks','vMEps','vLMhj','rMjsn','testFrameworkState','21791760DNdRKz','createTestFrameworkEventPayload','KEY_HOOK_FAILURE_REASON','KEY_TEST_META','name','getPendingHooks','\x20\x20and\x20args\x20=\x20','platformIndex','debug','KEY_HOOK_LOGS','KEY_TEST_UUID','instance','sendLogCreatedEvent:\x20for\x20testId:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_LOCATION','body','JtdRW','\x20response=','328dDnKcI','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','\x20target=','getTestUUID','../../../helpers/helper.js','SxtHS','KEY_TEST_FAILURE','TEST','gZmTt','addMultipleEntries','failure_type','endedAt','format','finished_at','KEY_HOOK_RESULT','Cucumber\x20log\x20created\x20event','uuzLj','testUUID','KEY_TEST_NAME','result','\x20and\x20args\x20=\x20','location','getProcessId','inspect','DEFAULT_HOOK_RESULT','XIAuH','getContext','get','getTrackedInstance','\x20hookState:\x20','DPNst','hookState','trackCucumberInstance','INIT_TEST','getTestDetails','waDFf','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','../instances/trackedInstance.js','KEY_TEST_FRAMEWORK_NAME','21JuVnTS','786441QjNqpF','hasPendingHooks','meta','PYZpx','Updated\x20cucumber\x20test\x20result:\x20','NONE','./constants/testFrameworkConstants.js','uuid','parseCucumberTest','stringify','BqmpJ'];a91_0x4dab=function(){return _0x3b190c;};return a91_0x4dab();}(function(_0x3307b5,_0x4206ef){const _0x22810c=a91_0x33b3,_0x35a063=_0x3307b5();while(!![]){try{const _0x7f9e3b=-parseInt(_0x22810c(0x139))/0x1+-parseInt(_0x22810c(0x17e))/0x2+parseInt(_0x22810c(0x112))/0x3*(parseInt(_0x22810c(0x14e))/0x4)+parseInt(_0x22810c(0x178))/0x5+-parseInt(_0x22810c(0x11d))/0x6*(parseInt(_0x22810c(0x111))/0x7)+-parseInt(_0x22810c(0x1b5))/0x8*(parseInt(_0x22810c(0x15b))/0x9)+parseInt(_0x22810c(0x1a3))/0xa;if(_0x7f9e3b===_0x4206ef)break;else _0x35a063['push'](_0x35a063['shift']());}catch(_0x41fe4c){_0x35a063['push'](_0x35a063['shift']());}}}(a91_0x4dab,0xa6c12));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require(a91_0x1de042(0x160)),TestFrameworkInstance=require(a91_0x1de042(0x183)),CLIUtils=require(a91_0x1de042(0x144)),TrackedInstance=require(a91_0x1de042(0x10f)),TestFrameworkConstants=require(a91_0x1de042(0x118)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x1de042(0x1b9)),logger=createClassLogger(a91_0x1de042(0x153)),{v4:uuidv4}=require(a91_0x1de042(0x119)),util=require(a91_0x1de042(0x124)),TestInfo=require('../TestInfo.js'),GrpcClient=require(a91_0x1de042(0x140));function a91_0x33b3(_0xe88804,_0x2a5bae){const _0x4dabc7=a91_0x4dab();return a91_0x33b3=function(_0x33b342,_0xadc7df){_0x33b342=_0x33b342-0x103;let _0x7b3885=_0x4dabc7[_0x33b342];return _0x7b3885;},a91_0x33b3(_0xe88804,_0x2a5bae);}class CucumberTestFramework extends TestFramework{constructor(_0x364a48,_0x2e319a,_0x58d801){super(_0x364a48,_0x2e319a,_0x58d801);}async[a91_0x1de042(0x161)](_0x52adc5,_0x369524,_0x1d0393={}){const _0x34f39f=a91_0x1de042,_0x27fad5={};_0x27fad5['KPVpd']=_0x34f39f(0x10e),_0x27fad5[_0x34f39f(0x1bd)]=function(_0x283e4e,_0x248cff){return _0x283e4e===_0x248cff;},_0x27fad5[_0x34f39f(0x190)]=function(_0x5ec57b,_0x2abb42){return _0x5ec57b===_0x2abb42;},_0x27fad5[_0x34f39f(0x14c)]=_0x34f39f(0x138);const _0x2303a1=_0x27fad5;await super[_0x34f39f(0x161)](_0x52adc5,_0x369524,_0x1d0393);const _0x1c9eb2=this[_0x34f39f(0x154)](_0x52adc5,_0x369524,_0x1d0393);if(!_0x1c9eb2){logger[_0x34f39f(0x1ab)](_0x2303a1[_0x34f39f(0x17b)]);return;}try{let _0x339fb6,_0x291bb7;switch(_0x52adc5){case TestFrameworkState['TEST']:_0x339fb6=_0x1d0393[_0x34f39f(0x167)],_0x291bb7=TestInfo[_0x34f39f(0x1b8)](_0x339fb6['id']);if(_0x2303a1[_0x34f39f(0x1bd)](_0x369524,HookState[_0x34f39f(0x195)])){logger[_0x34f39f(0x1ab)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x339fb6['id']);const _0x1348e7={};_0x1348e7['testUUID']=_0x291bb7,_0x1348e7[_0x34f39f(0x162)]=_0x339fb6,_0x1c9eb2[_0x34f39f(0x1be)](this[_0x34f39f(0x11a)](_0x1348e7)),logger[_0x34f39f(0x1ab)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x339fb6['id']),await this[_0x34f39f(0x188)](_0x1c9eb2,_0x339fb6['id']);}else{if(_0x2303a1[_0x34f39f(0x190)](_0x369524,HookState['POST'])){const _0x2160b5={};_0x2160b5['testUUID']=_0x291bb7,_0x2160b5[_0x34f39f(0x162)]=_0x339fb6,_0x1c9eb2['addMultipleEntries'](this['parseCucumberTestResult'](_0x2160b5)),await this[_0x34f39f(0x188)](_0x1c9eb2,_0x339fb6['id']);}}break;case TestFrameworkState[_0x34f39f(0x194)]:_0x2303a1[_0x34f39f(0x1bd)](_0x369524,HookState[_0x34f39f(0x169)])&&await this[_0x34f39f(0x184)](_0x1c9eb2,_0x52adc5,_0x1d0393);break;default:if(CLIUtils[_0x34f39f(0x168)](_0x52adc5[_0x34f39f(0x14f)]()[_0x34f39f(0x174)]('.')[0x1])){const _0x262333=await this[_0x34f39f(0x17f)](_0x1c9eb2,_0x52adc5,_0x369524,_0x1d0393);_0x1c9eb2[_0x34f39f(0x1be)](_0x262333);}else logger[_0x34f39f(0x1ab)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x52adc5+_0x34f39f(0x16c)+_0x369524);break;}}catch(_0x99262){logger[_0x34f39f(0x134)](util[_0x34f39f(0x1c1)](_0x2303a1[_0x34f39f(0x14c)],_0x52adc5,_0x369524,_0x1d0393[_0x34f39f(0x192)],_0x99262));}_0x1d0393['instance']=_0x1c9eb2,await this['runHooks'](_0x1c9eb2,_0x52adc5,_0x369524,_0x1d0393);}['resolveInstance'](_0x1626cc,_0x29b508,_0x2dee9c={}){const _0x248ab2=a91_0x1de042,_0x2e24c={};_0x2e24c[_0x248ab2(0x171)]=function(_0xc38838,_0x21cebe){return _0xc38838===_0x21cebe;},_0x2e24c[_0x248ab2(0x155)]=function(_0x4484d8,_0x5b4dcc){return _0x4484d8===_0x5b4dcc;};const _0x3d9a17=_0x2e24c;let _0x4707cc=null;return(_0x3d9a17[_0x248ab2(0x171)](_0x1626cc,TestFrameworkState[_0x248ab2(0x10b)])||_0x3d9a17['MlFXK'](_0x1626cc,TestFrameworkState[_0x248ab2(0x117)]))&&this[_0x248ab2(0x10a)](_0x1626cc,_0x2dee9c),_0x4707cc=TestFramework[_0x248ab2(0x106)](),_0x4707cc;}['trackCucumberInstance'](_0x28c16b,_0x4ca1f0){const _0x3889b5=a91_0x1de042,_0x1c44a2=CLIUtils[_0x3889b5(0x135)](),_0x4c3597=TrackedInstance[_0x3889b5(0x11f)](_0x1c44a2);let _0x3ccedf=null;logger[_0x3889b5(0x1ab)](_0x3889b5(0x136)+_0x1c44a2+_0x3889b5(0x18c)+_0x28c16b),_0x3ccedf=new TestFrameworkInstance(_0x4c3597,this['getTestFrameworks'](),this[_0x3889b5(0x131)](),_0x28c16b,HookState[_0x3889b5(0x117)]),TestFramework[_0x3889b5(0x121)](_0x4c3597,_0x3ccedf),logger[_0x3889b5(0x1ab)](_0x3889b5(0x12a)+_0x4c3597[_0x3889b5(0x159)]()+_0x3889b5(0x1b7)+_0x1c44a2);}[a91_0x1de042(0x11a)](_0x3994bc){const _0x3aefa6=a91_0x1de042,_0x3792a1={};_0x3792a1[_0x3aefa6(0x18b)]=_0x3aefa6(0x187);const _0x336145=_0x3792a1,{testUUID:_0x2dce5b,testData:_0x1d2e2d}=_0x3994bc;if(!_0x1d2e2d||!_0x1d2e2d[_0x3aefa6(0x119)])return logger[_0x3aefa6(0x1ab)](_0x336145[_0x3aefa6(0x18b)]),{};const _0x51ebbc=_0x2dce5b,_0x35b683=_0x1d2e2d[_0x3aefa6(0x119)],_0x231ae0=this['getTestFrameworks']()[0x0],_0xed639a=this[_0x3aefa6(0x131)](),_0x371ff3={[TestFrameworkConstants[_0x3aefa6(0x110)]]:_0x231ae0,[TestFrameworkConstants[_0x3aefa6(0x12b)]]:_0xed639a[_0x231ae0],[TestFrameworkConstants[_0x3aefa6(0x19a)]]:[],[TestFrameworkConstants[_0x3aefa6(0x175)]]:{},[TestFrameworkConstants[_0x3aefa6(0x166)]]:{},[TestFrameworkConstants[_0x3aefa6(0x1ad)]]:_0x51ebbc,[TestFrameworkConstants[_0x3aefa6(0x156)]]:TestFrameworkConstants[_0x3aefa6(0x18a)],[TestFrameworkConstants[_0x3aefa6(0x181)]]:_0x1d2e2d['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1d2e2d[_0x3aefa6(0x186)]||'',[TestFrameworkConstants[_0x3aefa6(0x15c)]]:_0x35b683,[TestFrameworkConstants[_0x3aefa6(0x1c7)]]:_0x1d2e2d['name']||'',[TestFrameworkConstants[_0x3aefa6(0x1b1)]]:_0x1d2e2d[_0x3aefa6(0x1ca)]||'',[TestFrameworkConstants[_0x3aefa6(0x130)]]:_0x1d2e2d[_0x3aefa6(0x1b2)]?.['code']||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x1d2e2d[_0x3aefa6(0x199)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x1d2e2d['startedAt']||new Date()[_0x3aefa6(0x15e)](),[TestFrameworkConstants[_0x3aefa6(0x148)]]:_0x1d2e2d['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x1d2e2d[_0x3aefa6(0x14a)]||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x1d2e2d['customRerunParam']?.[_0x3aefa6(0x179)]||_0x1d2e2d[_0x3aefa6(0x1a7)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x3aefa6(0x1a6)]]:_0x1d2e2d[_0x3aefa6(0x114)]||{}};TestInfo[_0x3aefa6(0x141)](_0x35b683,_0x371ff3),logger[_0x3aefa6(0x1ab)]('Parsed\x20cucumber\x20test:\x20'+_0x1d2e2d[_0x3aefa6(0x1a7)]+_0x3aefa6(0x125)+_0x51ebbc);const _0x1370f0={};return _0x1370f0[_0x35b683]=_0x371ff3,_0x1370f0;}[a91_0x1de042(0x17c)](_0x171c27){const _0xa92750=a91_0x1de042,_0x175844={'wQSPy':_0xa92750(0x18f),'lPfgO':'unknown','vnNhI':function(_0xfa291f,_0x6d5dab){return _0xfa291f===_0x6d5dab;},'XIAuH':_0xa92750(0x151),'gFfiY':'UnhandledError','JtdRW':function(_0x2e038a,_0x30c971,_0x3f46af){return _0x2e038a(_0x30c971,_0x3f46af);},'rMjsn':function(_0x5d1149,_0x136a20){return _0x5d1149>_0x136a20;}},{testUUID:_0x31bfa6,testData:_0xb83c7b}=_0x171c27;if(!_0xb83c7b||!_0xb83c7b[_0xa92750(0x119)])return logger[_0xa92750(0x1ab)](_0x175844['wQSPy']),{};const _0xa38448=this[_0xa92750(0x154)](TestFrameworkState[_0xa92750(0x1bc)],HookState[_0xa92750(0x169)]),_0x200bcd=_0xb83c7b[_0xa92750(0x119)],_0x3ebbe9=TestInfo[_0xa92750(0x10c)](_0x200bcd)||{},_0x16ff19=_0x3ebbe9?_0x3ebbe9[TestFrameworkConstants[_0xa92750(0x198)]]||{}:{},_0x57c85f={..._0x3ebbe9,[TestFrameworkConstants[_0xa92750(0x156)]]:_0xb83c7b[_0xa92750(0x1c8)]||_0x175844[_0xa92750(0x15a)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xb83c7b[_0xa92750(0x13a)]||new Date()[_0xa92750(0x15e)](),[TestFrameworkConstants[_0xa92750(0x177)]]:new Date()[_0xa92750(0x15e)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x16ff19,[TestFrameworkConstants[_0xa92750(0x19c)]]:[],[TestFrameworkConstants[_0xa92750(0x1a6)]]:_0xb83c7b['meta']||{}};_0x175844[_0xa92750(0x15d)](_0xb83c7b[_0xa92750(0x1c8)],_0x175844[_0xa92750(0x103)])&&_0xb83c7b['failure']&&(_0x57c85f[TestFrameworkConstants[_0xa92750(0x18e)]]=_0xb83c7b['failure_type']||_0x175844[_0xa92750(0x19d)],_0x57c85f[TestFrameworkConstants[_0xa92750(0x16f)]]=_0xb83c7b[_0xa92750(0x133)]||'',_0x57c85f[TestFrameworkConstants[_0xa92750(0x1bb)]]=_0xb83c7b['failure']);const _0x73bd9a=TestInfo[_0xa92750(0x10c)](_0x200bcd)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2705a3=_0x175844[_0xa92750(0x1b3)](getManualUploadLogs,_0x73bd9a,_0xa38448[_0xa92750(0x128)]()[_0xa92750(0x105)](_0x200bcd)[TestFrameworkConstants[_0xa92750(0x1ad)]]);if(_0x175844[_0xa92750(0x1a1)](_0x2705a3[_0xa92750(0x192)],0x0)){const _0x288056=_0x57c85f[TestFrameworkConstants[_0xa92750(0x19c)]]||[];_0x57c85f[TestFrameworkConstants[_0xa92750(0x19c)]]=[..._0x288056,..._0x2705a3];}_0xb83c7b[_0xa92750(0x19e)]&&_0x175844[_0xa92750(0x1a1)](_0xb83c7b[_0xa92750(0x19e)][_0xa92750(0x192)],0x0)&&(_0x57c85f[TestFrameworkConstants[_0xa92750(0x175)]]=_0xb83c7b[_0xa92750(0x19e)]);TestInfo[_0xa92750(0x141)](_0x200bcd,_0x57c85f),logger['debug'](_0xa92750(0x116)+_0xb83c7b[_0xa92750(0x1a7)]+'\x20with\x20result:\x20'+_0xb83c7b['result']);const _0xd889e={};return _0xd889e[_0x200bcd]=_0x57c85f,_0xd889e;}async[a91_0x1de042(0x17f)](_0x2fa5ed,_0x324957,_0x427016,_0x2bdb8b){const _0x430931=a91_0x1de042,_0xeb54d5={'CYNKm':_0x430931(0x164),'mZALu':function(_0x416815){return _0x416815();},'uuzLj':function(_0x17ae2e,_0x10dc73){return _0x17ae2e in _0x10dc73;},'WMNmU':function(_0x4ff729,_0x4f9406){return _0x4ff729 in _0x4f9406;},'DPNst':function(_0x370446,_0x46c063){return _0x370446===_0x46c063;},'vlkXs':function(_0x468377,_0x2159e6){return _0x468377===_0x2159e6;},'QDmFB':function(_0xa45edf,_0x5ccdaf){return _0xa45edf>_0x5ccdaf;},'vMEps':function(_0x385cd4,_0x36c2fd){return _0x385cd4===_0x36c2fd;},'SxtHS':_0x430931(0x151),'WiEgL':_0x430931(0x132),'xyFro':_0x430931(0x172),'waDFf':function(_0x1494bf,_0x5e9b5f){return _0x1494bf!==_0x5e9b5f;}},{hookData:_0x3708cb}=_0x2bdb8b;if(!_0x3708cb)return logger[_0x430931(0x1ab)](_0xeb54d5[_0x430931(0x16e)]),{};const _0x5815e4=_0x3708cb[_0x430931(0x119)]||_0xeb54d5[_0x430931(0x146)](uuidv4),_0x5e1aae=_0x3708cb['test_run_id'],_0x424052=_0x324957[_0x430931(0x14f)]()[_0x430931(0x174)]('.')[0x1],_0x5dd6f2=TestInfo[_0x430931(0x10c)](_0x5e1aae)[TestFrameworkConstants[_0x430931(0x198)]]||{},_0x2376db=_0x2fa5ed[_0x430931(0x128)]()['get'](_0x5e1aae);if(!_0x2376db)return logger[_0x430931(0x1ab)](_0x430931(0x14b)+_0x5e1aae+_0x430931(0x149)),this[_0x430931(0x122)](_0x2fa5ed,_0x5e1aae,_0x324957,_0x427016,_0x2bdb8b),{};let _0x49474c=_0x2376db[TestFrameworkConstants[_0x430931(0x166)]];!_0x49474c&&(_0x49474c={});!_0xeb54d5[_0x430931(0x1c5)](_0x424052,_0x49474c)&&(_0x49474c[_0x424052]=[]);let _0x14569a=_0x2376db[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x14569a&&(_0x14569a={});!_0xeb54d5[_0x430931(0x17a)](_0x424052,_0x14569a)&&(_0x14569a[_0x424052]=[]);const _0x4dfb5d={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x49474c,[TestFrameworkConstants[_0x430931(0x175)]]:_0x14569a},_0x17f431={};_0x17f431[_0x5e1aae]=_0x4dfb5d;const _0x2eab46=_0x17f431;if(_0xeb54d5[_0x430931(0x108)](_0x427016,HookState['PRE'])){const _0x5f454e={[TestFrameworkConstants[_0x430931(0x120)]]:_0x5815e4,[TestFrameworkConstants[_0x430931(0x1c3)]]:TestFrameworkConstants[_0x430931(0x1cd)],[TestFrameworkConstants[_0x430931(0x152)]]:_0x3708cb['started_at'],[TestFrameworkConstants[_0x430931(0x1ac)]]:[],[TestFrameworkConstants[_0x430931(0x13f)]]:_0x3708cb[_0x430931(0x1a7)]||_0x3708cb[_0x430931(0x126)],[TestFrameworkConstants[_0x430931(0x198)]]:_0x5dd6f2};_0x5f454e['key']=_0x424052;const _0x32a48f=_0x5f454e;_0x49474c[_0x424052][_0x430931(0x12f)](_0x32a48f),_0x2eab46[_0x5e1aae][TestFrameworkConstants[_0x430931(0x129)]]=_0x424052,logger[_0x430931(0x1ab)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x424052+'\x20&\x20hook\x20=\x20'+_0x32a48f+_0x430931(0x1a9)+_0x2bdb8b);}else{if(_0xeb54d5['vlkXs'](_0x427016,HookState[_0x430931(0x169)])){const _0x145368=_0x3708cb[_0x430931(0x1c8)],_0x3d9139=_0x49474c[_0x424052]||[];logger['debug'](_0x430931(0x163)+_0x3d9139+_0x430931(0x1c9)+_0x2bdb8b);if(_0xeb54d5['QDmFB'](_0x3d9139[_0x430931(0x192)],0x0)){const _0x35532f=_0x3d9139[_0x430931(0x150)]();_0xeb54d5[_0x430931(0x19f)](_0x3708cb['result'],_0xeb54d5[_0x430931(0x1ba)])&&_0x3708cb['failure_data']?(_0x35532f[TestFrameworkConstants[_0x430931(0x197)]]=_0x3708cb[_0x430931(0x1bf)]||_0xeb54d5[_0x430931(0x13e)],_0x35532f[TestFrameworkConstants[_0x430931(0x1a5)]]=_0x3708cb[_0x430931(0x133)]||'',_0x35532f[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x3708cb[_0x430931(0x16b)]):_0x35532f[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0xeb54d5['xyFro'];_0xeb54d5[_0x430931(0x10d)](_0x145368,TestFrameworkConstants[_0x430931(0x1cd)])&&(_0x35532f[TestFrameworkConstants[_0x430931(0x1c3)]]=_0x145368);_0x35532f[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x3708cb[_0x430931(0x1c2)]||new Date()[_0x430931(0x15e)](),_0x35532f[TestFrameworkConstants[_0x430931(0x198)]]=_0x5dd6f2;const _0xf9a1ab=_0x35532f[TestFrameworkConstants['KEY_HOOK_ID']];!_0x14569a[_0x424052]&&(_0x14569a[_0x424052]=[]),_0x14569a[_0x424052][_0x430931(0x12f)](_0x35532f),_0x2eab46[_0x5e1aae][TestFrameworkConstants[_0x430931(0x15f)]]=_0x424052;}}}return logger['debug'](_0x430931(0x13b)+_0x3708cb['hook_type']+_0x430931(0x143)+_0x5815e4+'\x20for\x20test:\x20'+_0x5e1aae),_0x2eab46;}[a91_0x1de042(0x1a4)](_0x2483a7){const _0x3d74d6=a91_0x1de042,_0x282266={};_0x282266['izBPe']=_0x3d74d6(0x13d);const _0x3d3574=_0x282266;try{const _0x2a919c=_0x2483a7['test']?_0x2483a7['test']['id']:_0x2483a7['hookData']['test_run_id'],_0x4df1d4=_0x2483a7[_0x3d74d6(0x1ae)],_0xcfb0db=_0x4df1d4[_0x3d74d6(0x104)](),_0x1cbfa7=_0x4df1d4[_0x3d74d6(0x128)]()[_0x3d74d6(0x105)](_0x2a919c);if(!_0x1cbfa7)return logger[_0x3d74d6(0x1ab)](_0x3d74d6(0x1b6)+_0x2a919c),{};logger[_0x3d74d6(0x1ab)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x2a919c);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4d0038='',[TestFrameworkConstants[_0x3d74d6(0x12b)]]:_0x3f8caa='',[TestFrameworkConstants[_0x3d74d6(0x123)]]:_0x149798='',[TestFrameworkConstants[_0x3d74d6(0x196)]]:_0x3b85ce=''}=_0x1cbfa7,_0x39e558=_0x4df1d4[_0x3d74d6(0x127)]()[_0x3d74d6(0x14f)]()['split']('.')[0x1],_0x1f1a8c=_0x4df1d4[_0x3d74d6(0x12d)]()[_0x3d74d6(0x14f)]()[_0x3d74d6(0x174)]('.')[0x1],_0x3eb261=global?.['browserstackPlatformIndex']??0x0,_0x3365d8=_0x4df1d4['getRef'](),_0x5b5d1e=Buffer['from'](JSON[_0x3d74d6(0x11b)](_0x1cbfa7))['toString'](_0x3d3574[_0x3d74d6(0x185)]),_0x119423={'hash':_0xcfb0db[_0x3d74d6(0x159)](),'threadId':_0xcfb0db[_0x3d74d6(0x16d)]()[_0x3d74d6(0x14f)](),'processId':_0xcfb0db[_0x3d74d6(0x1cb)]()[_0x3d74d6(0x14f)]()},_0x598f4c={};_0x598f4c[_0x3d74d6(0x1aa)]=_0x3eb261,_0x598f4c['testFrameworkName']=_0x4d0038,_0x598f4c[_0x3d74d6(0x137)]=_0x3f8caa,_0x598f4c[_0x3d74d6(0x1a2)]=_0x39e558,_0x598f4c[_0x3d74d6(0x109)]=_0x1f1a8c,_0x598f4c[_0x3d74d6(0x193)]=_0x149798,_0x598f4c[_0x3d74d6(0x1c0)]=_0x3b85ce,_0x598f4c[_0x3d74d6(0x119)]=_0x3365d8,_0x598f4c['eventJson']=_0x5b5d1e,_0x598f4c[_0x3d74d6(0x17d)]=_0x119423;const _0x4e5718=_0x598f4c;return logger[_0x3d74d6(0x1ab)](_0x3d74d6(0x142)+_0x2a919c+_0x3d74d6(0x180)+_0x39e558+_0x3d74d6(0x107)+_0x1f1a8c),_0x4e5718;}catch(_0x20b117){return logger[_0x3d74d6(0x134)](_0x3d74d6(0x19b)+util[_0x3d74d6(0x1c1)](_0x20b117)),{};}}async[a91_0x1de042(0x184)](_0x2e0d86,_0x16fa93,_0x400564){const _0x306f68=a91_0x1de042,_0x21e511={'oFTSQ':function(_0x2691f8,_0x2051a7,_0x195191){return _0x2691f8(_0x2051a7,_0x195191);},'cGTco':function(_0x1fea85,_0x52a6e5){return _0x1fea85===_0x52a6e5;},'upYIi':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','BqmpJ':function(_0x4c163f,_0x1cb8cf){return _0x4c163f/_0x1cb8cf;},'MANCh':function(_0x48f4a8,_0x4a663e){return _0x48f4a8<_0x4a663e;},'PYZpx':function(_0x2e2b09,_0x39d924){return _0x2e2b09*_0x39d924;},'vLMhj':function(_0x426732,_0x5ec233){return _0x426732+_0x5ec233;},'GvnLA':function(_0x5c0661,_0x263c45){return _0x5c0661+_0x263c45;},'rftlG':function(_0x5cebcb,_0x4f6228){return _0x5cebcb+_0x4f6228;},'UlMIb':_0x306f68(0x1c4)};try{const _0x208f59=_0x400564[_0x306f68(0x1c6)],_0x189373=_0x2e0d86['getAllData']()[_0x306f68(0x105)](_0x208f59),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x21e93e='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x102636=''}=_0x189373,_0x2b1b3c=TestInfo[_0x306f68(0x165)](_0x208f59),_0xe495d9=TestInfo[_0x306f68(0x10c)](_0x208f59)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x219926=_0x21e511['oFTSQ'](getMediaArtifactsLogs,_0xe495d9,_0x2e0d86['getAllData']()['get'](_0x208f59)[TestFrameworkConstants[_0x306f68(0x1ad)]]),_0x3f1df7=(_0x2b1b3c||[])['concat'](_0x219926||[]);if(!_0x3f1df7||_0x21e511['cGTco'](_0x3f1df7['length'],0x0)){logger[_0x306f68(0x1ab)](_0x21e511[_0x306f68(0x147)]);return;}const _0x441097=0x28,_0xc18503=Math['ceil'](_0x21e511[_0x306f68(0x11c)](_0x3f1df7[_0x306f68(0x192)],_0x441097));for(let _0x4c779a=0x0;_0x21e511['MANCh'](_0x4c779a,_0xc18503);_0x4c779a++){const _0x2033a9=_0x21e511[_0x306f68(0x115)](_0x4c779a,_0x441097),_0x1331c4=_0x21e511[_0x306f68(0x1a0)](_0x2033a9,_0x441097),_0x79d433=_0x3f1df7[_0x306f68(0x176)](_0x2033a9,_0x1331c4),_0x290829={'platformIndex':global?.[_0x306f68(0x157)]??0x0,'logs':_0x79d433,'testFrameworkName':_0x21e93e,'testFrameworkVersion':_0x102636,'testFrameworkState':_0x16fa93['toString']()['split']('.')[0x1]};logger[_0x306f68(0x1ab)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x208f59+'\x20batch\x20'+_0x21e511[_0x306f68(0x12c)](_0x4c779a,0x1)+'/'+_0xc18503+'\x20payload='+util[_0x306f68(0x1cc)](_0x290829));const _0xa1c2a8=await GrpcClient[_0x306f68(0x12e)]()[_0x306f68(0x16a)](_0x290829);logger[_0x306f68(0x1ab)](_0x306f68(0x1af)+_0x208f59+'\x20batch\x20'+_0x21e511[_0x306f68(0x11e)](_0x4c779a,0x1)+'/'+_0xc18503+_0x306f68(0x1b4)+util[_0x306f68(0x1cc)](_0xa1c2a8));}}catch(_0x5b1679){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x306f68(0x1c1)](_0x5b1679));}logger[_0x306f68(0x1ab)](_0x21e511[_0x306f68(0x189)]);}['storePendingHook'](_0x5cbfc0,_0xdf943,_0x1ec024,_0x10d208,_0x5e6904){const _0x19e384=a91_0x1de042,_0x3d5a39={'testId':_0xdf943,'testFrameworkState':_0x1ec024,'hookState':_0x10d208,'args':_0x5e6904,'timestamp':new Date()[_0x19e384(0x15e)]()};_0x5cbfc0[_0x19e384(0x182)](_0xdf943,_0x3d5a39),logger[_0x19e384(0x1ab)](_0x19e384(0x170)+_0xdf943+_0x19e384(0x13c)+_0x1ec024+',\x20hookState:\x20'+_0x10d208);}async['processPendingHooks'](_0x9e239b,_0x23e742){const _0x11404d=a91_0x1de042,_0x5341ed={};_0x5341ed[_0x11404d(0x14d)]=function(_0xc01ef6,_0x277212){return _0xc01ef6>_0x277212;};const _0x237262=_0x5341ed;if(!_0x9e239b[_0x11404d(0x113)](_0x23e742))return;const _0x40190f=_0x9e239b[_0x11404d(0x1a8)](_0x23e742);logger['debug']('Processing\x20'+_0x40190f['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x23e742);for(const _0x1a1ede of _0x40190f){try{const _0x1decee=await this[_0x11404d(0x17f)](_0x9e239b,_0x1a1ede[_0x11404d(0x1a2)],_0x1a1ede[_0x11404d(0x109)],_0x1a1ede[_0x11404d(0x145)]);_0x1decee&&_0x237262[_0x11404d(0x14d)](Object['keys'](_0x1decee)[_0x11404d(0x192)],0x0)&&_0x9e239b['addMultipleEntries'](_0x1decee),await this[_0x11404d(0x173)](_0x9e239b,_0x1a1ede[_0x11404d(0x1a2)],_0x1a1ede[_0x11404d(0x109)],_0x1a1ede[_0x11404d(0x145)]);}catch(_0xf0fe5a){logger[_0x11404d(0x134)](_0x11404d(0x18d)+_0x23e742+_0x11404d(0x191)+_0xf0fe5a);}}_0x9e239b[_0x11404d(0x158)](_0x23e742),logger[_0x11404d(0x1ab)](_0x11404d(0x1b0)+_0x23e742);}}module['exports']=CucumberTestFramework;