browserstack-node-sdk 1.65.7 → 1.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) 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/generated/sdk-messages_pb.d.ts +118 -0
  41. package/generated/sdk-messages_pb.js +908 -0
  42. package/generated/sdk_grpc_pb.d.ts +10 -0
  43. package/generated/sdk_grpc_pb.js +74 -0
  44. package/package.json +1 -1
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/detox/a11ySetup.js +1 -0
  57. package/src/bin/detox/command.js +2 -0
  58. package/src/bin/detox/modifyDetoxConf.js +1 -0
  59. package/src/bin/detox/traEmitter.js +1 -0
  60. package/src/bin/integrations/command.js +1 -1
  61. package/src/bin/integrations/constants.js +1 -1
  62. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  63. package/src/bin/jasmine/command.js +1 -1
  64. package/src/bin/jasmine/test.setup.js +1 -1
  65. package/src/bin/jasmine/testRunMap.js +1 -1
  66. package/src/bin/jest/command.js +1 -1
  67. package/src/bin/jest/customImplements/customCircus.js +1 -1
  68. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  69. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  70. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  71. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  72. package/src/bin/jest/jest.setup.js +1 -1
  73. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  74. package/src/bin/jest/test-observability/helper.js +1 -1
  75. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  76. package/src/bin/jest/test-observability/test-details.js +1 -1
  77. package/src/bin/jest/test.setup.js +1 -1
  78. package/src/bin/jest/test_before.setup.js +1 -1
  79. package/src/bin/launcher/launcher.js +1 -1
  80. package/src/bin/load/index.js +1 -1
  81. package/src/bin/load/loadErrors.js +1 -1
  82. package/src/bin/load/loadUtils.js +1 -1
  83. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  84. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  85. package/src/bin/mocha/command.js +1 -1
  86. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  87. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  88. package/src/bin/mocha/test.setup.js +1 -1
  89. package/src/bin/newman/command.js +1 -1
  90. package/src/bin/newman/helper.js +1 -1
  91. package/src/bin/newman/reporter/index.js +1 -1
  92. package/src/bin/newman/scriptRunner.js +1 -1
  93. package/src/bin/nightwatch/command.js +1 -1
  94. package/src/bin/node-generic/client.js +1 -1
  95. package/src/bin/playwright/accessibility-helper.js +1 -1
  96. package/src/bin/playwright/command.js +1 -1
  97. package/src/bin/playwright/globalSetup.js +1 -1
  98. package/src/bin/playwright/mock-process.js +1 -1
  99. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  100. package/src/bin/playwright/patches.js +1 -1
  101. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  102. package/src/bin/playwright/reporter/reporter.js +1 -1
  103. package/src/bin/playwright/reporter/test-details.js +1 -1
  104. package/src/bin/playwright/reporterArgs.js +1 -1
  105. package/src/bin/playwright/sessionDetails.js +1 -1
  106. package/src/bin/puppeteer/patches.js +1 -1
  107. package/src/bin/puppeteer/sessionDetails.js +1 -1
  108. package/src/bin/puppeteer/test.setup.js +1 -1
  109. package/src/bin/runner.js +1 -1
  110. package/src/bin/setup.js +1 -1
  111. package/src/bin/test-runner/index.js +1 -1
  112. package/src/bin/test-runner/runTest.js +1 -1
  113. package/src/bin/test-runner/testWorker.js +1 -1
  114. package/src/bin/testcafe/a11y-runner.js +1 -1
  115. package/src/bin/testcafe/command.js +1 -1
  116. package/src/bin/testcafe/reporter/index.js +1 -1
  117. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  118. package/src/bin/testcafe/session-registry.js +1 -1
  119. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  120. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  121. package/src/bin/testcafe/w3c-driver.js +1 -1
  122. package/src/bin/utils/apiUtilityMethods.js +1 -1
  123. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  124. package/src/bin/utils/constants.js +1 -1
  125. package/src/bin/utils/log4jsAppender.js +1 -1
  126. package/src/bin/utils/logPatcher.js +1 -1
  127. package/src/bin/utils/logReportingAPI.js +1 -1
  128. package/src/bin/utils/playwright-patcher.js +1 -1
  129. package/src/bin/utils/puppeteer-patcher.js +1 -1
  130. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  131. package/src/bin/utils/sharedUtils.js +1 -1
  132. package/src/bin/v2/TestInfo.js +1 -1
  133. package/src/bin/v2/browserstackCLI.js +1 -1
  134. package/src/bin/v2/cliUtils.js +1 -1
  135. package/src/bin/v2/customTagManager.js +1 -1
  136. package/src/bin/v2/eventDispatcher.js +1 -1
  137. package/src/bin/v2/framework/automationFramework.js +1 -1
  138. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  139. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  140. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  141. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  142. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  143. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  144. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  146. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  147. package/src/bin/v2/framework/testFramework.js +1 -1
  148. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  149. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  150. package/src/bin/v2/grpcClient.js +1 -1
  151. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  152. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  153. package/src/bin/v2/instances/trackedContext.js +1 -1
  154. package/src/bin/v2/instances/trackedInstance.js +1 -1
  155. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  156. package/src/bin/v2/modules/baseModule.js +1 -1
  157. package/src/bin/v2/modules/loadTestModule.js +1 -1
  158. package/src/bin/v2/modules/observabilityModule.js +1 -1
  159. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  160. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  161. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  162. package/src/bin/v2/modules/testhubModule.js +1 -1
  163. package/src/bin/v2/sdkErrorHandler.js +1 -1
  164. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  165. package/src/bin/v2/state/hookState.js +1 -1
  166. package/src/bin/v2/state/testFrameworkState.js +1 -1
  167. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  168. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  169. package/src/bin/v2/utils/jest-utils.js +1 -1
  170. package/src/bin/vanilla-js/command.js +1 -1
  171. package/src/browserStackSdk.js +1 -1
  172. package/src/detox-driver/a11y.js +574 -0
  173. package/src/detox-driver/allocationDriver.js +26 -0
  174. package/src/detox-driver/cloudPlatformAction.js +111 -0
  175. package/src/detox-driver/environment.js +253 -0
  176. package/src/detox-driver/expect.js +44 -0
  177. package/src/detox-driver/index.js +12 -0
  178. package/src/detox-driver/login-timeout-preload.js +25 -0
  179. package/src/detox-driver/runtimeDriver.js +351 -0
  180. package/src/detox-driver/session-reporter.js +41 -0
  181. package/src/detox-driver/tra-capture.js +81 -0
  182. package/src/helpers/BrowserStackSetup.js +1 -1
  183. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  184. package/src/helpers/accessibility-automation/constants.js +1 -1
  185. package/src/helpers/accessibility-automation/helper.js +1 -1
  186. package/src/helpers/accessibility-automation/scripts.js +1 -1
  187. package/src/helpers/ats/constants.js +1 -1
  188. package/src/helpers/ats/helper.js +1 -1
  189. package/src/helpers/caCertHelper.js +1 -1
  190. package/src/helpers/capsMapping.js +1 -1
  191. package/src/helpers/central-scanner/constants.js +1 -1
  192. package/src/helpers/central-scanner/helpers.js +1 -1
  193. package/src/helpers/classLogger.js +1 -1
  194. package/src/helpers/driverInitErrorReporter.js +1 -1
  195. package/src/helpers/globals.js +1 -1
  196. package/src/helpers/helper.js +1 -1
  197. package/src/helpers/logger.js +1 -1
  198. package/src/helpers/metadata.js +1 -1
  199. package/src/helpers/patchHelper.js +1 -1
  200. package/src/helpers/patchHelpers.js +1 -1
  201. package/src/helpers/percy/Percy.js +1 -1
  202. package/src/helpers/percy/PercyBinary.js +1 -1
  203. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  204. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  205. package/src/helpers/percy/PercySDK.js +1 -1
  206. package/src/helpers/percy/index.js +1 -1
  207. package/src/helpers/percy/utils.js +1 -1
  208. package/src/helpers/performance/constants.js +1 -1
  209. package/src/helpers/performance/performance-tester.js +1 -1
  210. package/src/helpers/playwright-helper.js +1 -1
  211. package/src/helpers/processHelper.js +1 -1
  212. package/src/helpers/puppeteer-helper.js +1 -1
  213. package/src/helpers/request-spy.js +1 -1
  214. package/src/helpers/setKeepAlive.js +1 -1
  215. package/src/helpers/stackFrameUtils.js +1 -1
  216. package/src/helpers/test-observability/constants.js +1 -1
  217. package/src/helpers/test-observability/error-handler.js +1 -1
  218. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  219. package/src/helpers/test-observability/sessionHandler.js +1 -1
  220. package/src/helpers/test-observability/utils.js +1 -1
  221. package/src/helpers/test-orchestration/constants.js +1 -1
  222. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  223. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  224. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  225. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  226. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  227. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  228. package/src/helpers/testhub/constants.js +1 -1
  229. package/src/helpers/testhub/testhubHandler.js +1 -1
  230. package/src/helpers/testhub/utils.js +1 -1
  231. package/src/helpers/utilities.js +1 -1
  232. package/src/helpers/w3cMapping.js +1 -1
  233. package/src/hubAllocationMethods.js +1 -1
  234. package/src/index.js +1 -1
@@ -1 +1 @@
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
+ function a89_0x347f(){const _0x471c46=['data','Configuring\x20Cli\x20path.','DOWNLOAD_HTTP','getSdkLanguage','tKNwE','0755','CCocu','jtXTP','UmkHW','RMbOQ','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','resume','platform','skipSessionStatus','IOtcQ','basename','DoZVE','end','homedir','../../helpers/performance/performance-tester.js','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','jFWSF','format','CNOFa','shouldSkipSessionName','getTestFrameworkDetail','\x20version','SMMqg','Development\x20Cli\x20Path:\x20','rename','pid','KKKaa','nynVj','\x20from\x20','setFrameworkDetail','binary-','wlPuR','once','MnfxR','Resolved\x20binary\x20path:\x20','unlink','preserveStatusCodeOnError','mITTy','Resolving\x20with\x20stdout:\x20\x22','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','cli_version','BEAza','timeout','yauzl','startsWith','oAtwz','NiHzK','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','SDK_CLI_DOWNLOAD','./state/automationFrameworkState.js','523624huntOL','IGAHy','lQYqn','stringify','hEjqH','zvDzr','SHELL_EXECUTE_ERROR','bshqB','warn','JYFaP','rgeBT','jbvmk','close','141228CRyQFS','OlGua','eUSnc','object','EuwRD','RHVmG','ZoWoJ','testFrameworkDetail','getCliDir','statSync','./state/hookState.js','bBalV','XPqjP','../../helpers/helper','join','ovVpj','mergeObject','../../helpers/utilities','unix:/tmp/sdk-platform-','hVhGh','.sock','drgSJ','createWriteStream','IQqEm','Imyyq','cli','length','hFaCq','786vaqmqk','test','readEntry','GET','mxJvW','YnoWI','\x20already\x20exists','chmod','ujQBm','sumKF','trim','path','70moVwGv','arch','getCLIParamsForDevEnv','INPbM','follow-redirects','../utils/constants','CLIUtils','Pltju','xVTGu','kpNQi','getExistingCliPath','node','SDK_CLI_BIN_PATH','BROWSERSTACK_CLI_ENV','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','BFjWH','entries','error','Grqtj','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','wdsKA','shouldSkipSessionStatus','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','QzHOn','lazyEntries','SDK_CLI_CHECK_UPDATE','isDirectory','KKfXe','development','existsSync','Folder\x20does\x20not\x20exist:\x20','lzlBO','info','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','nHoPa','uUPdZ','parse','15169jMAPVf','Downloading\x20SDK\x20binary\x20from:\x20','../../helpers/classLogger.js','tmpdir','AzWNf','isArray','debug','mtime','code','./instances/testFrameworkInstance.js','reduce','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','getWritableDir','includes','start','.tmp.','DTZZh','getAutomationFrameworkDetail','ODmoV','cwd','BEFsD','./state/testFrameworkState.js','message','getCurrentInstanceName','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','split','runShellCommand','xrNfi','CLI\x20version\x20found\x20despite\x20error:\x20\x22','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','.zip','readdirSync',',\x20automationFramework=','fileName','JOpBA','josci','eKPaX','requestToUpdateCLI','url','ZCUur','1529067UNCFIl','wHsEL','4|3|1|2|0','nTjqK','dvBxs','checkAndUpdateCli','bnkwm','nVvAw','open','exports','isFile','FDSok','dDRoI','downloadFileStream','fgRUk','ZDoSG','4742105aZrirh','get','testContextOptions','WsxXk','LRkDE','statusCode','pipe','seWmA','env','TPiar','vuDQV','BROWSERSTACK_FILES_DIR','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','XFCRG','diVUj','IKLKV','TpmZv','Folder\x20','destroy','99524cjZApa','Setting\x20required\x20permissions\x20to\x20','isDevelopmentEnv','downloadLatestBinary','YoXlF','FJced','getSdkVersion','4DoBskb','listen','Failed\x20to\x20delete\x20zip\x20file:\x20','.browserstack','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','oxegG','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','MZmSx','xqKoa','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','BROWSERSTACK_BINARY_URL','460251DoWBVe','worker_threads','CCfmZ','CJxWS','XlwHn','HOOK_REGEX','version','automationFrameworkDetail','getHookRegistryKey'];a89_0x347f=function(){return _0x471c46;};return a89_0x347f();}const a89_0x4a1b2a=a89_0xf8af;(function(_0x39cac7,_0x3654d0){const _0x42ccd5=a89_0xf8af,_0x3c8fbf=_0x39cac7();while(!![]){try{const _0x19f498=parseInt(_0x42ccd5(0xe5))/0x1+parseInt(_0x42ccd5(0x85))/0x2+-parseInt(_0x42ccd5(0x15a))/0x3*(parseInt(_0x42ccd5(0x8c))/0x4)+parseInt(_0x42ccd5(0x16a))/0x5+parseInt(_0x42ccd5(0x101))/0x6*(parseInt(_0x42ccd5(0x132))/0x7)+parseInt(_0x42ccd5(0xd8))/0x8+-parseInt(_0x42ccd5(0x97))/0x9*(parseInt(_0x42ccd5(0x10d))/0xa);if(_0x19f498===_0x3654d0)break;else _0x3c8fbf['push'](_0x3c8fbf['shift']());}catch(_0x5bf324){_0x3c8fbf['push'](_0x3c8fbf['shift']());}}}(a89_0x347f,0x97a17));function a89_0xf8af(_0x26fd50,_0xdb1bb6){const _0x347f99=a89_0x347f();return a89_0xf8af=function(_0xf8afed,_0x383233){_0xf8afed=_0xf8afed-0x7e;let _0x35d634=_0x347f99[_0xf8afed];return _0x35d634;},a89_0xf8af(_0x26fd50,_0xdb1bb6);}const fs=require('fs'),os=require('os'),url=require(a89_0x4a1b2a(0x158)),path=require(a89_0x4a1b2a(0x10c)),{exec}=require('child_process'),{https}=require(a89_0x4a1b2a(0x111)),yauzl=require(a89_0x4a1b2a(0xd0)),util=require('util'),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a89_0x4a1b2a(0x98)),PerformanceTester=require(a89_0x4a1b2a(0xb3)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x4a1b2a(0xf6)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x4a1b2a(0xf2)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x4a1b2a(0x112)),{createClassLogger}=require(a89_0x4a1b2a(0x134)),TestFrameworkInstance=require(a89_0x4a1b2a(0x13b)),HookState=require(a89_0x4a1b2a(0xef)),TestFrameworkState=require(a89_0x4a1b2a(0x147)),AutomationFrameworkState=require(a89_0x4a1b2a(0xd7)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a89_0x4a1b2a(0x113)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a89_0x4a1b2a(0x9e)]={};[a89_0x4a1b2a(0xec)]={};static[a89_0x4a1b2a(0x87)](){const _0x4598d4=a89_0x4a1b2a,_0x4a5d10={};_0x4a5d10[_0x4598d4(0xda)]=function(_0x2506f6,_0x399a2){return _0x2506f6===_0x399a2;},_0x4a5d10['EuwRD']=_0x4598d4(0x129);const _0x35df2d=_0x4a5d10;return _0x35df2d[_0x4598d4(0xda)](process['env'][_0x4598d4(0x11a)],_0x35df2d[_0x4598d4(0xe9)]);}static[a89_0x4a1b2a(0x10f)](){const _0xde8a2a=a89_0x4a1b2a,_0xff8d61={};return _0xff8d61['id']=process[_0xde8a2a(0x172)][_0xde8a2a(0x11a)],_0xff8d61[_0xde8a2a(0x8d)]=_0xde8a2a(0xf7)+process[_0xde8a2a(0x172)]['BROWSERSTACK_CLI_ENV']+_0xde8a2a(0xf9),_0xff8d61;}static[a89_0x4a1b2a(0x8b)](){const _0x4c5043=a89_0x4a1b2a,_0x7a5307={'TPiar':function(_0x5508dc,_0x4477ab){return _0x5508dc(_0x4477ab);},'ujQBm':'../../../package.json'};return _0x7a5307[_0x4c5043(0x173)](require,_0x7a5307[_0x4c5043(0x109)])[_0x4c5043(0x9d)];}static['getSdkLanguage'](){const _0x5ab2b2=a89_0x4a1b2a,_0x39089d={};_0x39089d['dDRoI']=_0x5ab2b2(0x118);const _0x1a2e5d=_0x39089d;return _0x1a2e5d[_0x5ab2b2(0x166)];}static async['setupCliPath'](_0x13c37b){const _0x528941=a89_0x4a1b2a,_0x2d4c1d={'QzHOn':_0x528941(0xa1),'DTZZh':function(_0x97a3aa,_0x46dd87){return _0x97a3aa(_0x46dd87);},'wdsKA':_0x528941(0x90)};logger[_0x528941(0x138)](_0x2d4c1d[_0x528941(0x124)]);const _0x4068b0=process['env'][_0x528941(0x119)];if(!_0x2d4c1d[_0x528941(0x142)](isNullOrEmpty,_0x4068b0))return logger['debug'](_0x528941(0xbc)+_0x4068b0),_0x4068b0;try{const _0x46ea87=this[_0x528941(0xed)]();if(_0x2d4c1d[_0x528941(0x142)](isNullOrEmpty,_0x46ea87))throw new Error(_0x2d4c1d[_0x528941(0x121)]);const _0x55171e=this[_0x528941(0x117)](_0x46ea87),_0x5c1352=await this[_0x528941(0x15f)](_0x55171e,_0x46ea87,_0x13c37b);return logger[_0x528941(0x138)](_0x528941(0xc7)+_0x5c1352),_0x5c1352;}catch(_0x1fcb42){logger[_0x528941(0x138)](_0x528941(0x14f)+util['format'](_0x1fcb42));}return null;}static async[a89_0x4a1b2a(0x15f)](_0x3a30f9,_0x37f9f7,_0x4bd98a){const _0x1fb1f8=a89_0x4a1b2a,_0x83e1da={'RMbOQ':function(_0x7a2a5b){return _0x7a2a5b();},'nHoPa':function(_0x4ff008,_0x255284){return _0x4ff008(_0x255284);},'tKNwE':function(_0x3255f6,_0x256e08,_0x1bb18c){return _0x3255f6(_0x256e08,_0x1bb18c);},'QMWZr':'data','nVvAw':'url','dvBxs':function(_0x307046,_0x1ca8a9){return _0x307046(_0x1ca8a9);}};PerformanceTester['start'](PerformanceEvents[_0x1fb1f8(0x126)]);try{logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x3a30f9);const _0x2ae462=_0x83e1da[_0x1fb1f8(0xa9)](getHostInfo),_0x50c2b8={'sdk_version':CLIUtils[_0x1fb1f8(0x8b)](),'os':_0x2ae462[_0x1fb1f8(0xac)],'os_arch':_0x2ae462[_0x1fb1f8(0x10e)],'cli_version':'0','sdk_language':this[_0x1fb1f8(0xa3)]()};!_0x83e1da[_0x1fb1f8(0x12f)](isNullOrEmpty,_0x3a30f9)&&(_0x50c2b8[_0x1fb1f8(0xcd)]=await this[_0x1fb1f8(0x14c)](_0x3a30f9+_0x1fb1f8(0xba)));const _0xcb29fb=await this['requestToUpdateCLI'](_0x50c2b8,_0x4bd98a);process[_0x1fb1f8(0x172)][_0x1fb1f8(0x96)]&&(logger[_0x1fb1f8(0x12d)](_0x1fb1f8(0x13d)+process[_0x1fb1f8(0x172)][_0x1fb1f8(0x96)]),_0xcb29fb[_0x1fb1f8(0xa0)][_0x1fb1f8(0x158)]=process['env'][_0x1fb1f8(0x96)]);if(_0x83e1da[_0x1fb1f8(0xa4)](nestedKeyValue,_0xcb29fb,[_0x83e1da['QMWZr'],_0x83e1da['nVvAw']])){logger[_0x1fb1f8(0x138)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x50c2b8[_0x1fb1f8(0xcd)]);if(!_0x83e1da[_0x1fb1f8(0x15e)](isNullOrEmpty,_0x3a30f9)&&this['isBinaryBusy'](_0x3a30f9))return logger[_0x1fb1f8(0xe0)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x3a30f9),_0x3a30f9;return await this[_0x1fb1f8(0x88)](_0x83e1da[_0x1fb1f8(0xa4)](nestedKeyValue,_0xcb29fb,[_0x83e1da['QMWZr'],_0x83e1da[_0x1fb1f8(0x161)]]),_0x37f9f7);}return _0x3a30f9;}finally{PerformanceTester[_0x1fb1f8(0xb1)](PerformanceEvents[_0x1fb1f8(0x126)]);}}static['getCliDir'](){const _0x183ddd=a89_0x4a1b2a,_0xbf28ad={'YcdeS':function(_0x416c58,_0x4d53ae){return _0x416c58(_0x4d53ae);},'CCocu':_0x183ddd(0x90),'drgSJ':_0x183ddd(0xfe),'hVhGh':function(_0x48c237,_0xa99565){return _0x48c237(_0xa99565);}},_0x33abdf=this[_0x183ddd(0x13e)]();try{if(_0xbf28ad['YcdeS'](isNullOrEmpty,_0x33abdf))throw new Error(_0xbf28ad[_0x183ddd(0xa6)]);const _0x4e2e71=path['join'](_0x33abdf,_0xbf28ad[_0x183ddd(0xfa)]);return!fs[_0x183ddd(0x12a)](_0x4e2e71)&&_0xbf28ad[_0x183ddd(0xf8)](createDir,_0x4e2e71),_0x4e2e71;}catch(_0x5a3b05){logger[_0x183ddd(0x138)](_0x183ddd(0x11b)+util[_0x183ddd(0xb6)](_0x5a3b05));}}static[a89_0x4a1b2a(0x13e)](){const _0x25c43d=a89_0x4a1b2a,_0x343e6f={'XFCRG':_0x25c43d(0x8f),'FDSok':function(_0x4a0e0a,_0x57c14e){return _0x4a0e0a(_0x57c14e);},'JkFIu':function(_0x23fa26,_0x1a33e5){return _0x23fa26(_0x1a33e5);},'bBalV':function(_0x378e01,_0x1319b6){return _0x378e01(_0x1319b6);},'pSYXg':function(_0xbd2edb,_0x15db84){return _0xbd2edb(_0x15db84);}},_0x1b6b0a=[process[_0x25c43d(0x172)][_0x25c43d(0x175)],path['join'](os[_0x25c43d(0xb2)](),_0x343e6f[_0x25c43d(0x7f)]),path[_0x25c43d(0xf3)](os[_0x25c43d(0x135)](),_0x343e6f['XFCRG'])];for(const _0x50e5b7 of _0x1b6b0a){if(_0x343e6f[_0x25c43d(0x165)](isNullOrEmpty,_0x50e5b7))continue;try{if(fs[_0x25c43d(0x12a)](_0x50e5b7)){logger[_0x25c43d(0x138)](_0x25c43d(0x83)+_0x50e5b7+_0x25c43d(0x107));if(!_0x343e6f[_0x25c43d(0x165)](isModifiable,_0x50e5b7)){logger['debug'](_0x25c43d(0x86)+_0x50e5b7);const _0x7d97f8=_0x343e6f['JkFIu'](setReadWriteExecuteAccess,_0x50e5b7);if(!_0x343e6f[_0x25c43d(0x165)](isTrue,_0x7d97f8)){logger['warn'](_0x25c43d(0xd4)+_0x50e5b7);continue;}}}else{logger['debug'](_0x25c43d(0x12b)+_0x50e5b7),_0x343e6f['JkFIu'](createDir,_0x50e5b7),logger[_0x25c43d(0x138)](_0x25c43d(0x86)+_0x50e5b7);const _0x1d0b62=_0x343e6f[_0x25c43d(0xf0)](setReadWriteExecuteAccess,_0x50e5b7);!_0x343e6f['pSYXg'](isTrue,_0x1d0b62)&&logger[_0x25c43d(0xe0)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x50e5b7);}return _0x50e5b7;}catch(_0x118a8a){logger[_0x25c43d(0x11e)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util['format'](_0x118a8a));}}return null;}static[a89_0x4a1b2a(0x117)](_0x5af43e){const _0x5a7281=a89_0x4a1b2a,_0x13df58={};_0x13df58[_0x5a7281(0xb5)]=function(_0x5d6e3b,_0x58af0c){return _0x5d6e3b>_0x58af0c;};const _0x4da497=_0x13df58;try{if(!fs[_0x5a7281(0x12a)](_0x5af43e)||!fs[_0x5a7281(0xee)](_0x5af43e)[_0x5a7281(0x127)]())return'';const _0x1879c6=fs[_0x5a7281(0x151)](_0x5af43e)['map'](_0x55089c=>path['join'](_0x5af43e,_0x55089c))['filter'](_0x34d085=>fs[_0x5a7281(0xee)](_0x34d085)[_0x5a7281(0x164)]()&&path[_0x5a7281(0xaf)](_0x34d085)[_0x5a7281(0xd1)](_0x5a7281(0xc3)));if(_0x4da497[_0x5a7281(0xb5)](_0x1879c6[_0x5a7281(0xff)],0x0)){const _0x5e6728=_0x1879c6['map'](_0x409c8a=>({'filePath':_0x409c8a,'mtime':fs['statSync'](_0x409c8a)['mtime']}))[_0x5a7281(0x13c)]((_0x51e319,_0x51fb2d)=>{const _0x2d7414=_0x5a7281;if(!_0x51e319||!_0x51e319[_0x2d7414(0x139)])return _0x51fb2d;if(_0x4da497[_0x2d7414(0xb5)](_0x51fb2d[_0x2d7414(0x139)],_0x51e319[_0x2d7414(0x139)]))return _0x51fb2d;return _0x51e319;},{});return _0x5e6728?_0x5e6728['filePath']:'';}return'';}catch(_0x3bfd28){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x5a7281(0xb6)](_0x3bfd28)),'';}}static [a89_0x4a1b2a(0x157)]=async(_0x553ac8,_0x5bdf36)=>{const _0xdff014=a89_0x4a1b2a,_0xb1b5f7={'ZoWoJ':function(_0x12b47d,_0x426a12,_0xf9c78,_0x131ea0,_0x389349){return _0x12b47d(_0x426a12,_0xf9c78,_0x131ea0,_0x389349);},'josci':_0xdff014(0x104)},_0x5d5659={};_0x5d5659['qs']=_0x553ac8,_0x5d5659[_0xdff014(0xc9)]=!![];const _0x31293e=await _0xb1b5f7[_0xdff014(0xeb)](nodeRequest,_0xb1b5f7[_0xdff014(0x155)],UPDATED_CLI_ENDPOINT,_0x5d5659,_0x5bdf36);return logger[_0xdff014(0x138)]('response\x20'+JSON[_0xdff014(0xdb)](_0x31293e)),_0x31293e;};static['isBinaryBusy'](_0x9fd186){const _0x286fc2=a89_0x4a1b2a;try{const _0x4e65f9=fs['openSync'](_0x9fd186,'r+');return fs['closeSync'](_0x4e65f9),![];}catch(_0x20fbde){if(BINARY_BUSY_ERROR_CODES[_0x286fc2(0x13f)](_0x20fbde[_0x286fc2(0x13a)]))return logger[_0x286fc2(0x138)]('Binary\x20is\x20busy:\x20'+_0x9fd186),!![];return logger[_0x286fc2(0x138)](_0x286fc2(0x120)+_0x20fbde[_0x286fc2(0x148)]),![];}}static[a89_0x4a1b2a(0x14c)](_0x4f644d,_0x3343d1=''){const _0x48691a=a89_0x4a1b2a,_0x30b42d={'MnfxR':_0x48691a(0x9d),'CCfmZ':function(_0x17b262,_0x4b1bc4){return _0x17b262(_0x4b1bc4);},'eKPaX':_0x48691a(0xde),'oxegG':function(_0x39ca47,_0x183890){return _0x39ca47(_0x183890);},'AzWNf':function(_0x4996f1,_0x9523d1){return _0x4996f1(_0x9523d1);},'giRLJ':function(_0x12c7b9,_0x4100d3,_0x582582,_0x526d9b){return _0x12c7b9(_0x4100d3,_0x582582,_0x526d9b);},'YnoWI':'error'};return new Promise((_0x4552b0,_0x145896)=>{const _0x1cfccc=_0x48691a,_0x183d9e={'xrNfi':_0x30b42d[_0x1cfccc(0xc6)],'UmkHW':function(_0x188f64,_0xdc39c6){const _0x38e884=_0x1cfccc;return _0x30b42d[_0x38e884(0x99)](_0x188f64,_0xdc39c6);},'BEFsD':_0x30b42d[_0x1cfccc(0x156)],'TpmZv':function(_0x131295,_0x209711){const _0x486bc9=_0x1cfccc;return _0x30b42d[_0x486bc9(0x91)](_0x131295,_0x209711);},'DoZVE':function(_0x17cf97,_0x2d93a5){const _0x1499b6=_0x1cfccc;return _0x30b42d[_0x1499b6(0x136)](_0x17cf97,_0x2d93a5);}},_0x3b589c={};_0x3b589c[_0x1cfccc(0x145)]=_0x3343d1,_0x3b589c[_0x1cfccc(0xcf)]=0x1388;const _0x23f2a2=_0x30b42d['giRLJ'](exec,_0x4f644d,_0x3b589c,(_0x582cdd,_0x54a587,_0x4f249e)=>{const _0x2b20b6=_0x1cfccc;if(_0x582cdd){if(_0x4f644d[_0x2b20b6(0x13f)](_0x183d9e[_0x2b20b6(0x14d)])&&(_0x54a587[_0x2b20b6(0x10b)]()||_0x4f249e[_0x2b20b6(0x10b)]())){const _0x44c468=_0x54a587[_0x2b20b6(0x10b)]()||_0x4f249e[_0x2b20b6(0x10b)]();logger[_0x2b20b6(0x138)](_0x2b20b6(0x14e)+_0x44c468+'\x22'),_0x183d9e[_0x2b20b6(0xa8)](_0x4552b0,_0x44c468);}else _0x183d9e[_0x2b20b6(0xa8)](_0x4552b0,_0x4f249e[_0x2b20b6(0x10b)]()||_0x183d9e[_0x2b20b6(0x146)]);}else logger['debug'](_0x2b20b6(0xcb)+_0x54a587[_0x2b20b6(0x10b)]()+'\x22'),_0x183d9e[_0x2b20b6(0x82)](_0x4552b0,_0x54a587['trim']());});_0x23f2a2['on'](_0x30b42d[_0x1cfccc(0x106)],()=>{const _0x518c77=_0x1cfccc;_0x183d9e[_0x518c77(0xb0)](_0x4552b0,_0x183d9e[_0x518c77(0x146)]);});});}static ['downloadLatestBinary']=async(_0x595a46,_0x5235e1)=>{const _0x1a5720=a89_0x4a1b2a,_0x25901f={'lzlBO':function(_0xc10075,_0xf85122){return _0xc10075(_0xf85122);},'Grqtj':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','zvDzr':function(_0xa37234,_0x449930){return _0xa37234(_0x449930);},'IKLKV':function(_0x5d7cb7,_0x57ce2f){return _0x5d7cb7(_0x57ce2f);},'jbvmk':_0x1a5720(0x123),'INPbM':function(_0x5f3dca,_0xeb3dca){return _0x5f3dca(_0xeb3dca);},'qpcoY':function(_0x1bc391,_0x26f34d){return _0x1bc391>=_0x26f34d;},'FJced':_0x1a5720(0xa2),'ldYOV':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','diVUj':_0x1a5720(0x11e),'JOpBA':_0x1a5720(0xcc)};PerformanceTester[_0x1a5720(0x140)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x1a5720(0x138)](_0x1a5720(0x133)+_0x595a46);try{const _0x843d7f=url[_0x1a5720(0x131)](_0x595a46),_0x29c39d=path[_0x1a5720(0xf3)](_0x5235e1,'downloaded_file_'+process[_0x1a5720(0xbe)]+_0x1a5720(0x150)),_0x4b757d=fs[_0x1a5720(0xfb)](_0x29c39d);return new Promise((_0x1fc196,_0x14c055)=>{const _0x2aed31=_0x1a5720,_0x2527c5={'seWmA':_0x25901f[_0x2aed31(0x11f)],'wHsEL':function(_0x24ae97,_0x1c902a){const _0xfee3=_0x2aed31;return _0x25901f[_0xfee3(0xdd)](_0x24ae97,_0x1c902a);},'XPqjP':function(_0x5cdd47,_0x4cbbf2){const _0x308749=_0x2aed31;return _0x25901f[_0x308749(0x81)](_0x5cdd47,_0x4cbbf2);},'ODmoV':_0x25901f[_0x2aed31(0xe3)],'rgeBT':function(_0x492238,_0x5c8740){const _0x38eab6=_0x2aed31;return _0x25901f[_0x38eab6(0x110)](_0x492238,_0x5c8740);},'bshqB':function(_0x467590,_0xe62b58){return _0x25901f['qpcoY'](_0x467590,_0xe62b58);},'KKKaa':_0x25901f[_0x2aed31(0x8a)],'kpNQi':_0x25901f['ldYOV'],'NiHzK':_0x25901f['diVUj']};https[_0x2aed31(0x16b)](_0x843d7f,function(_0x545861){const _0x761755=_0x2aed31,_0x1bc69a={'sMbxc':_0x2527c5[_0x761755(0x144)],'nTjqK':function(_0x35355a,_0x213aab){const _0xc620df=_0x761755;return _0x2527c5[_0xc620df(0xe2)](_0x35355a,_0x213aab);}},_0x358d59=null;if(_0x545861[_0x761755(0x16f)]&&_0x2527c5[_0x761755(0xdf)](_0x545861['statusCode'],0x190)){const _0x5c53da=new Error(_0x761755(0x12e)+_0x545861[_0x761755(0x16f)]+_0x761755(0xc1)+_0x595a46);_0x5c53da[_0x761755(0x13a)]=_0x2527c5[_0x761755(0xbf)],_0x5c53da[_0x761755(0x16f)]=_0x545861[_0x761755(0x16f)],logger['error'](util[_0x761755(0xb6)](_0x2527c5[_0x761755(0x116)],_0x545861[_0x761755(0x16f)])),PerformanceTester[_0x761755(0xb1)](PerformanceEvents[_0x761755(0xd6)],![],'HTTP\x20'+_0x545861[_0x761755(0x16f)]),_0x545861[_0x761755(0xab)](),_0x4b757d[_0x761755(0x84)](),fs[_0x761755(0xc8)](_0x29c39d,()=>{}),_0x2527c5['wHsEL'](_0x14c055,_0x5c53da);return;}_0x545861[_0x761755(0x170)](_0x4b757d),_0x545861['on'](_0x2527c5[_0x761755(0xd3)],function(_0x18031f){const _0x4bc2f4=_0x761755;logger[_0x4bc2f4(0x11e)](util[_0x4bc2f4(0xb6)](_0x2527c5[_0x4bc2f4(0x171)],_0x18031f)),PerformanceTester[_0x4bc2f4(0xb1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4bc2f4(0xb6)](_0x18031f)),_0x2527c5[_0x4bc2f4(0x15b)](_0x14c055,_0x18031f);}),_0x4b757d['on'](_0x2527c5[_0x761755(0xd3)],function(_0xc9174a){const _0x30abc8=_0x761755;logger[_0x30abc8(0x11e)](util['format'](_0x1bc69a['sMbxc'],_0xc9174a)),PerformanceTester[_0x30abc8(0xb1)](PerformanceEvents[_0x30abc8(0xd6)],![],util['format'](_0xc9174a)),_0x1bc69a[_0x30abc8(0x15d)](_0x14c055,_0xc9174a);}),CLIUtils[_0x761755(0x167)](_0x4b757d,_0x358d59,_0x29c39d,_0x5235e1,_0x1ff4a7=>{const _0x4df0ce=_0x761755;PerformanceTester[_0x4df0ce(0xb1)](PerformanceEvents[_0x4df0ce(0xd6)]),_0x2527c5[_0x4df0ce(0xf1)](_0x1fc196,_0x1ff4a7);},_0x226969=>{const _0x413143=_0x761755;PerformanceTester[_0x413143(0xb1)](PerformanceEvents[_0x413143(0xd6)],![],util[_0x413143(0xb6)](_0x226969)),_0x2527c5[_0x413143(0x15b)](_0x14c055,_0x226969);});})['on'](_0x25901f[_0x2aed31(0x80)],function(_0x3f0428){const _0x2aed41=_0x2aed31;logger[_0x2aed41(0x11e)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x2aed41(0xb6)](_0x3f0428)),PerformanceTester[_0x2aed41(0xb1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x2aed41(0xb6)](_0x3f0428)),_0x25901f[_0x2aed41(0x12c)](_0x14c055,_0x3f0428);});});}catch(_0x37db52){PerformanceTester[_0x1a5720(0xb1)](PerformanceEvents[_0x1a5720(0xd6)],![],util[_0x1a5720(0xb6)](_0x37db52)),logger[_0x1a5720(0x11e)](util[_0x1a5720(0xb6)](_0x25901f[_0x1a5720(0x154)],_0x37db52));throw _0x37db52;}};static['downloadFileStream'](_0x1c0701,_0x4f5d16,_0x4e032e,_0xc24b15,_0x42b9c5,_0x32e7c1){const _0x158fec=a89_0x4a1b2a,_0x1b0f98={'OlGua':_0x158fec(0xe4),'nynVj':function(_0x473ccf,_0x40875c){return _0x473ccf!==_0x40875c;},'CNOFa':function(_0x5cdb77,_0x393a0c){return _0x5cdb77(_0x393a0c);},'fgRUk':function(_0x422517,_0x14fb94){return _0x422517(_0x14fb94);},'wlPuR':_0x158fec(0x11e),'XlwHn':'EXDEV','ukIDh':_0x158fec(0xa5),'LRkDE':function(_0x12ed52,_0x273621){return _0x12ed52(_0x273621);},'bnkwm':'end','Pltju':'entry'};_0x1c0701['on'](_0x1b0f98[_0x158fec(0xe6)],function(){const _0xc1c047=_0x158fec,_0x2fe41f={'oAtwz':_0x1b0f98[_0xc1c047(0xe6)],'ZCUur':function(_0x1963d0,_0x527d2d){const _0x3c1f6d=_0xc1c047;return _0x1b0f98[_0x3c1f6d(0xc0)](_0x1963d0,_0x527d2d);},'sumKF':function(_0x11a64d,_0x4437d0){const _0x284efa=_0xc1c047;return _0x1b0f98[_0x284efa(0xb7)](_0x11a64d,_0x4437d0);},'SMMqg':function(_0x5cd92b,_0x33d7a9){const _0x178bbe=_0xc1c047;return _0x1b0f98[_0x178bbe(0x168)](_0x5cd92b,_0x33d7a9);},'ovVpj':_0x1b0f98[_0xc1c047(0xc4)],'KKfXe':function(_0x12c08e,_0x35ee06){const _0x5a5de6=_0xc1c047;return _0x1b0f98[_0x5a5de6(0xc0)](_0x12c08e,_0x35ee06);},'JYFaP':_0x1b0f98[_0xc1c047(0x9b)],'IQqEm':function(_0x5ca37b,_0x39f4fc){const _0x246e0=_0xc1c047;return _0x1b0f98[_0x246e0(0xb7)](_0x5ca37b,_0x39f4fc);},'hFaCq':_0x1b0f98['ukIDh'],'mITTy':function(_0x1b11de,_0x1aec6c){return _0x1b0f98['CNOFa'](_0x1b11de,_0x1aec6c);},'xqKoa':function(_0x59cdc7,_0x650460){const _0x22beea=_0xc1c047;return _0x1b0f98[_0x22beea(0x16e)](_0x59cdc7,_0x650460);},'eUSnc':_0x1b0f98[_0xc1c047(0x160)],'wxJIO':function(_0x2d827a,_0x263d46){const _0xb7eb35=_0xc1c047;return _0x1b0f98[_0xb7eb35(0x168)](_0x2d827a,_0x263d46);},'IOtcQ':_0x1b0f98[_0xc1c047(0x114)]},_0x1daa79={};_0x1daa79[_0xc1c047(0x125)]=!![],yauzl[_0xc1c047(0x162)](_0x4e032e,_0x1daa79,function(_0x275f24,_0x15329c){const _0x47d945=_0xc1c047,_0x58254e={'ZDoSG':function(_0x1d95f9,_0x151eaa){const _0x297fed=a89_0xf8af;return _0x2fe41f[_0x297fed(0xca)](_0x1d95f9,_0x151eaa);},'YoXlF':function(_0x5871ab,_0x59bec0){return _0x2fe41f['xqKoa'](_0x5871ab,_0x59bec0);},'IGAHy':function(_0x4d1e7a,_0x555e27){const _0xa7d3af=a89_0xf8af;return _0x2fe41f[_0xa7d3af(0x94)](_0x4d1e7a,_0x555e27);},'CJxWS':_0x2fe41f[_0x47d945(0xe7)],'wKDPX':function(_0x2f4c54,_0xee1c7e){const _0x4b22f9=_0x47d945;return _0x2fe41f[_0x4b22f9(0xbb)](_0x2f4c54,_0xee1c7e);}};if(_0x275f24){_0x2fe41f['wxJIO'](_0x32e7c1,_0x275f24);return;}_0x15329c['readEntry'](),_0x15329c['on'](_0x2fe41f[_0x47d945(0xae)],_0x2b9f08=>{const _0x2f6459=_0x47d945,_0x388d7d={};_0x388d7d['jtXTP']=_0x2fe41f[_0x2f6459(0xd2)];const _0x4bba18=_0x388d7d;if(/\/$/[_0x2f6459(0x102)](_0x2b9f08[_0x2f6459(0x153)])){_0x15329c[_0x2f6459(0x103)]();return;}!_0x4f5d16&&(_0x4f5d16=_0x2b9f08[_0x2f6459(0x153)]);if(_0x2fe41f[_0x2f6459(0x159)](_0x2b9f08[_0x2f6459(0x153)],_0x4f5d16))_0x15329c['readEntry']();else{const _0x4b96f2=_0x2b9f08['fileName'],_0x241f4d=path[_0x2f6459(0xf3)](_0xc24b15,_0x4b96f2+_0x2f6459(0x141)+process[_0x2f6459(0xbe)]);let _0x3f0e13;try{_0x3f0e13=fs['createWriteStream'](_0x241f4d);}catch(_0x2398bf){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2398bf['code'])){const _0x367f2a=path[_0x2f6459(0xf3)](_0xc24b15,_0x4b96f2);if(fs[_0x2f6459(0x12a)](_0x367f2a)){logger[_0x2f6459(0xe0)](_0x2f6459(0xd5)+_0x4b96f2),fs['unlink'](_0x4e032e,_0x27d877=>{const _0x2092c0=_0x2f6459;_0x27d877&&logger[_0x2092c0(0xe0)](_0x2092c0(0x8e)+_0x4e032e);}),_0x2fe41f[_0x2f6459(0x10a)](_0x42b9c5,_0x367f2a);return;}logger[_0x2f6459(0xe0)](_0x2f6459(0x95)+_0x4b96f2);}_0x2fe41f[_0x2f6459(0xbb)](_0x32e7c1,_0x2398bf);return;}_0x3f0e13['on'](_0x2fe41f[_0x2f6459(0xf4)],_0x36a621=>{const _0x4bad5e=_0x2f6459;if(BINARY_BUSY_ERROR_CODES[_0x4bad5e(0x13f)](_0x36a621[_0x4bad5e(0x13a)])){const _0x5b015f=path[_0x4bad5e(0xf3)](_0xc24b15,_0x4b96f2);_0x3f0e13[_0x4bad5e(0xe4)](),fs[_0x4bad5e(0x12a)](_0x5b015f)?(logger[_0x4bad5e(0xe0)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x36a621[_0x4bad5e(0x148)]),_0x15329c['close'](),fs['unlink'](_0x4e032e,_0x5dbd3e=>{const _0xe3435e=_0x4bad5e;_0x5dbd3e&&logger[_0xe3435e(0xe0)](_0xe3435e(0x8e)+_0x4e032e);}),_0x58254e[_0x4bad5e(0x169)](_0x42b9c5,_0x5b015f)):(logger[_0x4bad5e(0xe0)](_0x4bad5e(0xb4)+_0x36a621['message']),fs[_0x4bad5e(0xc8)](_0x241f4d,()=>{}),_0x58254e[_0x4bad5e(0x89)](_0x32e7c1,_0x36a621));}else fs[_0x4bad5e(0xc8)](_0x241f4d,()=>{}),_0x58254e['YoXlF'](_0x32e7c1,_0x36a621);}),_0x15329c['openReadStream'](_0x2b9f08,function(_0x2e2220,_0x32af07){const _0x37ec7e=_0x2f6459;if(_0x2e2220){fs[_0x37ec7e(0xc8)](_0x241f4d,()=>{}),_0x58254e[_0x37ec7e(0xd9)](_0x32e7c1,_0x2e2220);return;}_0x32af07['on'](_0x58254e[_0x37ec7e(0x9a)],function(){const _0x46039a=_0x37ec7e;_0x3f0e13[_0x46039a(0xb1)](),_0x3f0e13['on'](_0x4bba18[_0x46039a(0xa7)],function(){const _0x4dd82d=_0x46039a;_0x15329c[_0x4dd82d(0x103)]();});}),_0x32af07[_0x37ec7e(0x170)](_0x3f0e13);});}}),_0x15329c['on'](_0x2fe41f[_0x47d945(0xf4)],_0x55d798=>{const _0xe09b2d=_0x47d945;_0x2fe41f[_0xe09b2d(0xbb)](_0x32e7c1,_0x55d798);}),_0x15329c[_0x47d945(0xc5)](_0x2fe41f[_0x47d945(0xe7)],()=>{const _0x2e3410=_0x47d945,_0x1bdfc9={'mxJvW':function(_0x4fe4f8,_0xdca3e5){const _0xb14fbf=a89_0xf8af;return _0x2fe41f[_0xb14fbf(0x128)](_0x4fe4f8,_0xdca3e5);},'vuDQV':_0x2fe41f[_0x2e3410(0xe1)],'Imyyq':function(_0x13b575,_0x14b1f6){return _0x2fe41f['sumKF'](_0x13b575,_0x14b1f6);},'BFjWH':function(_0x6d61d8,_0x31175e){return _0x2fe41f['IQqEm'](_0x6d61d8,_0x31175e);},'BEAza':function(_0x1fbfd2,_0x2fcd66){const _0x419ec0=_0x2e3410;return _0x2fe41f[_0x419ec0(0xfc)](_0x1fbfd2,_0x2fcd66);}};fs['unlink'](_0x4e032e,_0x5e2cb5=>{const _0xe91217=_0x2e3410;_0x5e2cb5&&logger[_0xe91217(0xe0)](_0xe91217(0x8e)+_0x4e032e);});const _0x1ccb6b=path['join'](_0xc24b15,_0x4f5d16+_0x2e3410(0x141)+process[_0x2e3410(0xbe)]),_0x390c25=path['join'](_0xc24b15,_0x4f5d16);fs[_0x2e3410(0x108)](_0x1ccb6b,_0x2fe41f[_0x2e3410(0x100)],function(_0x504bb9){const _0x312f68=_0x2e3410;if(_0x504bb9){_0x15329c[_0x312f68(0xe4)](),fs[_0x312f68(0xc8)](_0x1ccb6b,()=>{}),_0x58254e['wKDPX'](_0x32e7c1,_0x504bb9);return;}fs[_0x312f68(0xbd)](_0x1ccb6b,_0x390c25,function(_0x568de2){const _0x20c8d0=_0x312f68;if(_0x568de2){if(_0x1bdfc9[_0x20c8d0(0x105)](_0x568de2[_0x20c8d0(0x13a)],_0x1bdfc9[_0x20c8d0(0x174)])){_0x15329c[_0x20c8d0(0xe4)](),fs[_0x20c8d0(0xc8)](_0x1ccb6b,()=>{}),_0x1bdfc9[_0x20c8d0(0xfd)](_0x32e7c1,_0x568de2);return;}logger[_0x20c8d0(0xe0)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x568de2[_0x20c8d0(0x148)]);try{fs['copyFileSync'](_0x1ccb6b,_0x390c25);}catch(_0x4c2e59){_0x15329c[_0x20c8d0(0xe4)](),fs[_0x20c8d0(0xc8)](_0x1ccb6b,()=>{}),_0x1bdfc9[_0x20c8d0(0x11c)](_0x32e7c1,_0x4c2e59);return;}fs['unlink'](_0x1ccb6b,_0x5ce3c4=>{const _0x4f57cf=_0x20c8d0;_0x5ce3c4&&logger['warn'](_0x4f57cf(0x7e)+_0x5ce3c4[_0x4f57cf(0x148)]);});}_0x15329c[_0x20c8d0(0xe4)](),_0x1bdfc9[_0x20c8d0(0xce)](_0x42b9c5,_0x390c25);});});});});});}static[a89_0x4a1b2a(0xb9)](){const _0x261623=a89_0x4a1b2a;if(process[_0x261623(0x172)][_0x261623(0xaa)])return JSON[_0x261623(0x131)](process[_0x261623(0x172)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x261623(0xec)];}static[a89_0x4a1b2a(0x143)](){const _0xf5c7a5=a89_0x4a1b2a;if(process[_0xf5c7a5(0x172)][_0xf5c7a5(0x92)])return JSON[_0xf5c7a5(0x131)](process[_0xf5c7a5(0x172)][_0xf5c7a5(0x92)]);return this['automationFrameworkDetail'];}static[a89_0x4a1b2a(0xc2)](_0x143912,_0x5b2671){const _0x3e65b8=a89_0x4a1b2a,_0x5a430b={'HrTdH':_0x3e65b8(0x15c),'WsxXk':function(_0x48663f,_0x560b05){return _0x48663f(_0x560b05);},'RHVmG':function(_0x587b54,_0x306178){return _0x587b54(_0x306178);},'hEjqH':function(_0x2f6992,_0x422458){return _0x2f6992||_0x422458;}},_0x2b78c7=_0x5a430b['HrTdH'][_0x3e65b8(0x14b)]('|');let _0x13e167=0x0;while(!![]){switch(_0x2b78c7[_0x13e167++]){case'0':process[_0x3e65b8(0x172)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x3e65b8(0xdb)](this[_0x3e65b8(0xec)]);continue;case'1':this[_0x3e65b8(0x9e)]={'name':_0x5b2671,'version':_0x5a430b[_0x3e65b8(0x16d)](getFrameworkVersion,_0x5b2671)};continue;case'2':process['env'][_0x3e65b8(0x92)]=JSON[_0x3e65b8(0xdb)](this[_0x3e65b8(0x9e)]);continue;case'3':this[_0x3e65b8(0xec)]={'name':_0x143912,'version':{[_0x143912]:_0x5a430b[_0x3e65b8(0xea)](getFrameworkVersion,_0x143912)}};continue;case'4':_0x5a430b[_0x3e65b8(0xdc)](!_0x143912,!_0x5b2671)&&logger[_0x3e65b8(0x138)](_0x3e65b8(0x14a)+_0x143912+_0x3e65b8(0x152)+_0x5b2671);continue;}break;}}static[a89_0x4a1b2a(0x9f)](_0x145a75,_0x68b312){return _0x145a75+':'+_0x68b312;}static[a89_0x4a1b2a(0x149)](){return process['pid']+':'+threadId;}static[a89_0x4a1b2a(0xb8)](_0x35bfea){const _0x507668=a89_0x4a1b2a;if(_0x35bfea[_0x507668(0x16c)]&&_0x35bfea['testContextOptions']['skipSessionName'])return!![];return![];}static[a89_0x4a1b2a(0x122)](_0x510243){const _0x384705=a89_0x4a1b2a;if(_0x510243[_0x384705(0x16c)]&&_0x510243[_0x384705(0x16c)][_0x384705(0xad)])return!![];return![];}static['matchHookRegex'](_0x30c4f5){const _0x5dedd9=a89_0x4a1b2a,_0x17fc4f=new RegExp(TestFrameworkConstants[_0x5dedd9(0x9c)]);return _0x17fc4f[_0x5dedd9(0x102)](_0x30c4f5);}static[a89_0x4a1b2a(0xf5)](_0x302457,_0x595ebc){const _0x54268e=a89_0x4a1b2a,_0x2032ce={};_0x2032ce[_0x54268e(0x93)]=function(_0x14c6f2,_0x2a39e5){return _0x14c6f2!==_0x2a39e5;},_0x2032ce[_0x54268e(0x115)]=function(_0x40f387,_0x2524fa){return _0x40f387===_0x2524fa;},_0x2032ce['uUPdZ']=_0x54268e(0xe8);const _0x51ace=_0x2032ce;for(const [_0x28081f,_0x4f5d2c]of Object[_0x54268e(0x11d)](_0x595ebc)){if(_0x51ace['MZmSx'](_0x4f5d2c,null)&&_0x51ace['xVTGu'](typeof _0x4f5d2c,_0x51ace[_0x54268e(0x130)])&&!Array[_0x54268e(0x137)](_0x4f5d2c))_0x302457[_0x28081f]=this[_0x54268e(0xf5)](_0x302457[_0x28081f]||{},_0x4f5d2c);else Array[_0x54268e(0x137)](_0x4f5d2c)?_0x302457[_0x28081f]=(_0x302457[_0x28081f]||[])['concat'](_0x4f5d2c):_0x302457[_0x28081f]=_0x4f5d2c;}return _0x302457;}}module[a89_0x4a1b2a(0x163)]=CLIUtils;
@@ -1 +1 @@
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
+ 'use strict';const a90_0x8ee8c0=a90_0x43e2;(function(_0x137f59,_0x40c032){const _0x2345fe=a90_0x43e2,_0x729f0e=_0x137f59();while(!![]){try{const _0x41560c=-parseInt(_0x2345fe(0x132))/0x1*(-parseInt(_0x2345fe(0x138))/0x2)+parseInt(_0x2345fe(0x14b))/0x3+-parseInt(_0x2345fe(0x151))/0x4+parseInt(_0x2345fe(0xe2))/0x5*(parseInt(_0x2345fe(0x118))/0x6)+-parseInt(_0x2345fe(0x12f))/0x7*(-parseInt(_0x2345fe(0xe9))/0x8)+-parseInt(_0x2345fe(0x13e))/0x9*(parseInt(_0x2345fe(0xd6))/0xa)+-parseInt(_0x2345fe(0x152))/0xb*(-parseInt(_0x2345fe(0x109))/0xc);if(_0x41560c===_0x40c032)break;else _0x729f0e['push'](_0x729f0e['shift']());}catch(_0x1e3a4c){_0x729f0e['push'](_0x729f0e['shift']());}}}(a90_0x34e8,0x63131));const fs=require('fs'),os=require('os'),path=require(a90_0x8ee8c0(0x116)),helper=require(a90_0x8ee8c0(0xe6)),AutomationFramework=require(a90_0x8ee8c0(0x13c)),TestFrameworkConstants=require(a90_0x8ee8c0(0xcf)),PlaywrightDriverModule=require(a90_0x8ee8c0(0xce)),TestInfo=require(a90_0x8ee8c0(0xe5)),TestHubModule=require(a90_0x8ee8c0(0x117)),{createClassLogger}=require(a90_0x8ee8c0(0xfb)),logger=createClassLogger(a90_0x8ee8c0(0xd7)),BUILD_TAG_FILE_PREFIX=a90_0x8ee8c0(0x125);function a90_0x34e8(){const _0x40f2fd=['BKoSA','testLevelTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','nErpX','getTestIdentifierFromTestInfo','bFIWH','KEY_CUSTOM_TAGS','mtimeMs','testhubConfig','unlinkSync','tFRJL','getAllData','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','GAjWS','env','../../helpers/classLogger','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','getCurrentTestUUID','currentTest','pHfAF','trim','promises','EiDhW','BROWSERSTACK_TESTHUB_UUID','exports','ZXGBU','multi_dropdown','field_type','1708488wErLAk','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getBuildLevelTags','testInfo','__workerDetails','debug','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','getBuildTagsFilePath','KEY_TEST_ID',',\x20values=','mergeIntoTags','getBuildTagsRunId','path','./modules/testhubModule','2514hAbBkU','POST','getTestDetails','null','parseCommaSeparatedValues','YQSAo','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','./cliUtils','parse','flOcP','addMultipleEntries','mergeValues','utf8','bstack_build_tags_','getTestFramework','clearTags','entries','function','retry','join','includes','jest','RYrde','119tmlsCN','getTrackedInstance','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','301409ENTTYj','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','\x20->\x20values=','QrzuM','buildHashedId','values','2TMdCxK','ZgDSW','NHmvD','hwuyT','./framework/automationFramework','setCustomTags','27MlkhwW','.json','MODULE_NAME',':jest-','GmUMt','resolveInstance','bCmmU','rNNOY','iUBom','CzbMx','name','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','./browserstackCLI','1439445iZiPDA','from','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','DtgQL','HXrRo','endsWith','1262584uFcLzm','11nHlhLc','rBJTv','isArray','get','_testInternals','isRunning','DbwoI',',\x20finalTags=',',\x20existingTags=','message','LoDqm','mergeBuildLevelTags','stringify','setTestDetails','./modules/playwrightDriverModule','./framework/constants/testFrameworkConstants','length','getInstance','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','statSync','SMXtp','getState','2486830iYsZRp','CustomTagManager','YLjFr','readFileSync','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','getTestFrameworkDetail','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','vGkYf','QHbTR','startsWith','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','getTestLevelTags','6340eGyrWZ','filter','modules','./TestInfo','../../helpers/helper','tmpdir','QRHwn','5936EBDMUv','toLowerCase','buildLevelTags'];a90_0x34e8=function(){return _0x40f2fd;};return a90_0x34e8();}function getBuildTagsRunId(){const _0x27654f=a90_0x8ee8c0,_0x165057={};_0x165057[_0x27654f(0x146)]=function(_0x521e88,_0x11248a){return _0x521e88===_0x11248a;},_0x165057[_0x27654f(0x145)]=_0x27654f(0x11b);const _0x23e087=_0x165057,_0x2715e2=process[_0x27654f(0xfa)][_0x27654f(0x104)];if(!_0x2715e2||_0x23e087[_0x27654f(0x146)](_0x2715e2,_0x23e087[_0x27654f(0x145)]))return null;return _0x2715e2;}function getBuildTagsFilePath(_0x2ca2ff){const _0x10b367=a90_0x8ee8c0;return path[_0x10b367(0x12b)](os[_0x10b367(0xe7)](),''+BUILD_TAG_FILE_PREFIX+_0x2ca2ff+'_'+process['pid']+_0x10b367(0x13f));}class CustomTagManager{static [a90_0x8ee8c0(0xeb)]={};static [a90_0x8ee8c0(0xed)]={};static[a90_0x8ee8c0(0x123)](_0x46e2f8,_0x1770ef){const _0x340ccb=a90_0x8ee8c0;return Array[_0x340ccb(0x14c)](new Set([..._0x46e2f8||[],..._0x1770ef||[]]));}static[a90_0x8ee8c0(0x114)](_0x128bc2,_0x4a2189,_0x203d3e){const _0x2fa14b=a90_0x8ee8c0,_0x3643d1={};_0x3643d1[_0x2fa14b(0x106)]=_0x2fa14b(0x107);const _0x3684f0=_0x3643d1;if(!_0x128bc2[_0x4a2189]){const _0xa2886d={};_0xa2886d[_0x2fa14b(0x108)]=_0x3684f0['ZXGBU'],_0xa2886d[_0x2fa14b(0x137)]=[..._0x203d3e||[]],_0x128bc2[_0x4a2189]=_0xa2886d;}else!_0x128bc2[_0x4a2189][_0x2fa14b(0x108)]&&(_0x128bc2[_0x4a2189][_0x2fa14b(0x108)]=_0x3684f0[_0x2fa14b(0x106)]),!Array[_0x2fa14b(0xc2)](_0x128bc2[_0x4a2189][_0x2fa14b(0x137)])&&(_0x128bc2[_0x4a2189][_0x2fa14b(0x137)]=[]),_0x128bc2[_0x4a2189]['values']=CustomTagManager[_0x2fa14b(0x123)](_0x128bc2[_0x4a2189]['values'],_0x203d3e);return _0x128bc2;}static async[a90_0x8ee8c0(0x13d)](_0x49c564,_0x5426b6,_0x2ac442=![]){const _0x1617bd=a90_0x8ee8c0,_0xf5c07e={'FPOIR':function(_0x7cf47d,_0x41911e){return _0x7cf47d!==_0x41911e;},'CzbMx':'string','mAfMM':_0x1617bd(0xee),'SMXtp':function(_0xf35241,_0x1867ad){return _0xf35241!==_0x1867ad;},'bCmmU':_0x1617bd(0x133),'HXrRo':function(_0x1c6898,_0x4d4ac7){return _0x1c6898===_0x4d4ac7;},'Vobyr':_0x1617bd(0x10b),'vGkYf':_0x1617bd(0x131),'LoDqm':function(_0x136f31,_0x5a0749){return _0x136f31(_0x5a0749);},'DtgQL':_0x1617bd(0x14a),'hwuyT':function(_0x4b1113){return _0x4b1113();},'flOcP':_0x1617bd(0x107),'DbwoI':function(_0x5f32ed,_0x1d18e5){return _0x5f32ed>_0x1d18e5;},'NHmvD':_0x1617bd(0xda),'GAjWS':_0x1617bd(0x141),'QRHwn':function(_0x4dcbf7,_0x29ff78){return _0x4dcbf7(_0x29ff78);},'QEHXa':_0x1617bd(0x11f),'RYrde':function(_0x337a87,_0x305c5c){return _0x337a87(_0x305c5c);},'QrzuM':_0x1617bd(0x12d),'YLjFr':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','rBJTv':function(_0x341e45,_0x35618c){return _0x341e45(_0x35618c);},'UNNfu':_0x1617bd(0x149),'EiDhW':function(_0x1bd46d,_0x619c22){return _0x1bd46d(_0x619c22);},'nErpX':'./state/testFrameworkState','DmEQu':function(_0x2d1c8e,_0x45a05b){return _0x2d1c8e(_0x45a05b);},'ZgDSW':'./state/hookState','HeLre':_0x1617bd(0x10a),'bDvII':function(_0x57c56e,_0x137417){return _0x57c56e(_0x137417);},'bFIWH':_0x1617bd(0x129)};if(_0xf5c07e['FPOIR'](typeof _0x49c564,_0xf5c07e[_0x1617bd(0x147)])){logger[_0x1617bd(0x10f)](_0xf5c07e['mAfMM']);return;}if(_0xf5c07e[_0x1617bd(0xd4)](typeof _0x5426b6,_0xf5c07e['CzbMx'])){logger['debug'](_0xf5c07e[_0x1617bd(0x144)]);return;}if(_0xf5c07e[_0x1617bd(0x14f)](_0x49c564[_0x1617bd(0x101)](),'')){logger['debug'](_0xf5c07e['Vobyr']);return;}if(_0xf5c07e['HXrRo'](_0x5426b6['trim'](),'')){logger['debug'](_0xf5c07e[_0x1617bd(0xdd)]);return;}const _0x17bb5e=helper[_0x1617bd(0x11c)](_0x5426b6);if(_0x2ac442){const _0x4d769c=_0xf5c07e['LoDqm'](require,_0xf5c07e[_0x1617bd(0x14e)]),_0x4bece8=_0x4d769c['getInstance'](),_0x46b4ca=_0x4bece8&&_0x4bece8[_0x1617bd(0xe4)][TestHubModule[_0x1617bd(0x140)]];if(_0x46b4ca){const _0x2614cd=_0x46b4ca?.[_0x1617bd(0xf4)]?.['toObject']()?.[_0x1617bd(0x136)];TestInfo['getTestUUID'](_0x2614cd);const _0xdedffb=TestInfo[_0x1617bd(0x11a)](_0x2614cd),_0x34f911=_0xdedffb[TestFrameworkConstants[_0x1617bd(0xf2)]]||{};CustomTagManager[_0x1617bd(0x114)](_0x34f911,_0x49c564,_0x17bb5e),_0xdedffb[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x34f911,TestInfo[_0x1617bd(0xcd)](_0x2614cd,_0xdedffb);!this[_0x1617bd(0xeb)][_0x2614cd]&&(this[_0x1617bd(0xeb)][_0x2614cd]={});this[_0x1617bd(0xeb)][_0x2614cd][_0x49c564]=CustomTagManager[_0x1617bd(0x123)](this[_0x1617bd(0xeb)][_0x2614cd][_0x49c564],_0x17bb5e);try{const _0x214aaa=_0xf5c07e[_0x1617bd(0x13b)](getBuildTagsRunId);if(_0x214aaa){const _0x5b960b={};for(const [_0x5d3013,_0x54cdaf]of Object[_0x1617bd(0x128)](this[_0x1617bd(0xeb)][_0x2614cd]||{})){_0x5b960b[_0x5d3013]={'field_type':_0xf5c07e[_0x1617bd(0x121)],'values':Array['isArray'](_0x54cdaf)?[..._0x54cdaf]:[]};}_0xf5c07e[_0x1617bd(0xc6)](Object['keys'](_0x5b960b)[_0x1617bd(0xd0)],0x0)&&await fs[_0x1617bd(0x102)]['writeFile'](_0xf5c07e[_0x1617bd(0xca)](getBuildTagsFilePath,_0x214aaa),JSON[_0x1617bd(0xcc)](_0x5b960b));}else logger[_0x1617bd(0x10f)](_0xf5c07e[_0x1617bd(0x13a)]);}catch(_0xc7eb4){logger[_0x1617bd(0x10f)](_0x1617bd(0x14d)+(_0xc7eb4&&_0xc7eb4['message']?_0xc7eb4[_0x1617bd(0xc9)]:_0xc7eb4));}}}else{let _0x44d2d7;const _0x2489d5=global['__jestCurrentTestIdentifier'];let _0x9496f6=![];if(_0x2489d5&&_0x2489d5['includes'](_0xf5c07e['GAjWS']))_0x9496f6=!![],_0x44d2d7=_0x2489d5;else try{const _0x13129d=_0xf5c07e[_0x1617bd(0xe8)](require,_0xf5c07e['QEHXa']),_0x38fb05=_0xf5c07e[_0x1617bd(0x12e)](require,_0xf5c07e[_0x1617bd(0x14e)]);if(_0x38fb05['getInstance']()[_0x1617bd(0xc5)]()){const _0x33d1df=_0x13129d[_0x1617bd(0xdb)]();if(_0xf5c07e['HXrRo'](_0x33d1df?.[_0x1617bd(0x148)]?.[_0x1617bd(0xea)](),_0xf5c07e[_0x1617bd(0x135)])){const _0x2d0571=AutomationFramework[_0x1617bd(0x130)]();_0x44d2d7=AutomationFramework[_0x1617bd(0xd5)](_0x2d0571,PlaywrightDriverModule[_0x1617bd(0x112)],''),_0x44d2d7&&_0x44d2d7[_0x1617bd(0x12c)](_0xf5c07e[_0x1617bd(0xf9)])&&(_0x9496f6=!![]);}}}catch(_0x23b359){logger[_0x1617bd(0x10f)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x23b359);}if(_0x9496f6){if(!_0x44d2d7)throw new Error(_0xf5c07e[_0x1617bd(0xd8)]);const _0x473d01=_0xf5c07e[_0x1617bd(0xc1)](require,_0xf5c07e[_0x1617bd(0x14e)]),_0x52ca4f=_0x473d01[_0x1617bd(0xd1)]()[_0x1617bd(0x126)]();if(!_0x52ca4f)throw new Error(_0xf5c07e['UNNfu']);const _0x56a608=_0xf5c07e[_0x1617bd(0x103)](require,_0xf5c07e[_0x1617bd(0xef)]),_0x5b6baa=_0xf5c07e['DmEQu'](require,_0xf5c07e[_0x1617bd(0x139)]),_0x43e031=_0x52ca4f[_0x1617bd(0x143)](_0x56a608['TEST'],_0x5b6baa[_0x1617bd(0x119)]);if(!_0x43e031)throw new Error(_0xf5c07e['HeLre']);const _0x43927c=_0x43e031[_0x1617bd(0xf7)]()[_0x1617bd(0xc3)](_0x44d2d7)||{},_0x174162=_0x43927c[TestFrameworkConstants[_0x1617bd(0xf2)]]||{};logger[_0x1617bd(0x10f)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x44d2d7+',\x20key='+_0x49c564+_0x1617bd(0x113)+JSON['stringify'](_0x17bb5e)+_0x1617bd(0xc8)+JSON[_0x1617bd(0xcc)](_0x174162)),CustomTagManager[_0x1617bd(0x114)](_0x174162,_0x49c564,_0x17bb5e),logger[_0x1617bd(0x10f)](_0x1617bd(0xdc)+_0x49c564+_0x1617bd(0x134)+JSON[_0x1617bd(0xcc)](_0x174162[_0x49c564]['values']));const _0x5b6de7={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x174162},_0x1c66ef={};_0x1c66ef[_0x44d2d7]=_0x5b6de7,_0x43e031[_0x1617bd(0x122)](_0x1c66ef),logger[_0x1617bd(0x10f)](_0x1617bd(0xfc)+_0x44d2d7+_0x1617bd(0xc7)+JSON[_0x1617bd(0xcc)](_0x174162)),!this[_0x1617bd(0xed)][_0x44d2d7]&&(this[_0x1617bd(0xed)][_0x44d2d7]={}),this[_0x1617bd(0xed)][_0x44d2d7][_0x49c564]=CustomTagManager[_0x1617bd(0x123)](this[_0x1617bd(0xed)][_0x44d2d7][_0x49c564],_0x17bb5e);}else{const _0x3d44a6=global[_0x1617bd(0x10e)]?.[_0x1617bd(0xff)]?.[_0x1617bd(0x10d)];if(!_0x3d44a6){const _0x5543b7=AutomationFramework[_0x1617bd(0x130)]();_0x44d2d7=AutomationFramework['getState'](_0x5543b7,PlaywrightDriverModule[_0x1617bd(0x112)],'');if(!_0x44d2d7)try{const _0x4ae65b=_0xf5c07e['bDvII'](require,_0xf5c07e[_0x1617bd(0x14e)]),_0x1c9590=_0x4ae65b[_0x1617bd(0xd1)](),_0x4ea247=_0x1c9590&&_0x1c9590['getTestFramework']();_0x44d2d7=_0x4ea247&&_0xf5c07e[_0x1617bd(0x14f)](typeof _0x4ea247[_0x1617bd(0xfe)],_0xf5c07e[_0x1617bd(0xf1)])&&_0x4ea247['getCurrentTestUUID']()||_0x44d2d7;}catch(_0x2ffe53){logger[_0x1617bd(0x10f)](_0x1617bd(0xfd)+(_0x2ffe53&&_0x2ffe53['message']));}}else _0x44d2d7=TestInfo[_0x1617bd(0xf0)](_0x3d44a6,_0x3d44a6[_0x1617bd(0x12a)]);const _0x2cf6a2=TestInfo[_0x1617bd(0x11a)](_0x44d2d7),_0x20255d=_0x2cf6a2[TestFrameworkConstants[_0x1617bd(0xf2)]]||{};CustomTagManager['mergeIntoTags'](_0x20255d,_0x49c564,_0x17bb5e),_0x2cf6a2[TestFrameworkConstants[_0x1617bd(0xf2)]]=_0x20255d,TestInfo[_0x1617bd(0xcd)](_0x44d2d7,_0x2cf6a2),!this[_0x1617bd(0xed)][_0x44d2d7]&&(this[_0x1617bd(0xed)][_0x44d2d7]={}),this['testLevelTags'][_0x44d2d7][_0x49c564]=CustomTagManager[_0x1617bd(0x123)](this[_0x1617bd(0xed)][_0x44d2d7][_0x49c564],_0x17bb5e);}}}static[a90_0x8ee8c0(0x10c)](){const _0xefd687=a90_0x8ee8c0,_0x5f01c1={...this[_0xefd687(0xeb)]};return _0x5f01c1;}static[a90_0x8ee8c0(0xe1)](){const _0x33da07={...this['testLevelTags']};return _0x33da07;}static[a90_0x8ee8c0(0x127)](){const _0x3412c8=a90_0x8ee8c0;this['buildLevelTags']={},this[_0x3412c8(0xed)]={};}static[a90_0x8ee8c0(0xcb)](_0x35dc28,_0x9ca760){const _0x54329f=a90_0x8ee8c0,_0x476c7d={};_0x476c7d[_0x54329f(0x100)]=function(_0x3fbd67,_0x3a332e){return _0x3fbd67||_0x3a332e;};const _0x262acd=_0x476c7d;if(!_0x35dc28)return;!this[_0x54329f(0xeb)][_0x35dc28]&&(this['buildLevelTags'][_0x35dc28]={});for(const [_0x5589d7,_0x35c4a0]of Object['entries'](_0x262acd[_0x54329f(0x100)](_0x9ca760,{}))){if(!_0x35c4a0||!Array[_0x54329f(0xc2)](_0x35c4a0['values']))continue;this[_0x54329f(0xeb)][_0x35dc28][_0x5589d7]=CustomTagManager[_0x54329f(0x123)](this[_0x54329f(0xeb)][_0x35dc28][_0x5589d7],_0x35c4a0[_0x54329f(0x137)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x1095fc,_0x8cbfa5){const _0x5d5da9=a90_0x8ee8c0,_0x51a4f5={};_0x51a4f5[_0x5d5da9(0xf6)]=_0x5d5da9(0x11e),_0x51a4f5[_0x5d5da9(0xde)]=function(_0xc07d88,_0x55f075){return _0xc07d88*_0x55f075;},_0x51a4f5['ikDhy']=function(_0x2f0696,_0x5cd214){return _0x2f0696*_0x5cd214;},_0x51a4f5[_0x5d5da9(0xec)]=function(_0x4b5b60,_0x4df2b3){return _0x4b5b60>_0x4df2b3;},_0x51a4f5[_0x5d5da9(0x142)]=function(_0xd0d4f4,_0x426100){return _0xd0d4f4-_0x426100;},_0x51a4f5['YQSAo']=_0x5d5da9(0x124);const _0x173c07=_0x51a4f5;if(!_0x1095fc)return logger['debug'](_0x173c07[_0x5d5da9(0xf6)]),0x0;let _0x480444;try{_0x480444=os[_0x5d5da9(0xe7)]();}catch(_0x443e9e){return logger['debug'](_0x5d5da9(0xf8)+_0x443e9e),0x0;}let _0x969044;try{_0x969044=fs['readdirSync'](_0x480444);}catch(_0x3c723b){return logger[_0x5d5da9(0x10f)](_0x5d5da9(0x110)+_0x3c723b),0x0;}const _0x57cf2b=''+BUILD_TAG_FILE_PREFIX+_0x1095fc+'_',_0x41cdc8=_0x969044[_0x5d5da9(0xe3)](_0x599e6a=>_0x599e6a[_0x5d5da9(0xdf)](_0x57cf2b)&&_0x599e6a[_0x5d5da9(0x150)](_0x5d5da9(0x13f))),_0x3f339a=_0x173c07[_0x5d5da9(0xde)](_0x173c07['ikDhy'](_0x173c07[_0x5d5da9(0xde)](0x2,0x3c),0x3c),0x3e8);let _0x2c40dc=0x0;for(const _0x3396ec of _0x41cdc8){const _0x540d09=path[_0x5d5da9(0x12b)](_0x480444,_0x3396ec);try{const _0x51e5b1=fs[_0x5d5da9(0xd3)](_0x540d09);if(_0x173c07[_0x5d5da9(0xec)](_0x173c07['GmUMt'](Date['now'](),_0x51e5b1[_0x5d5da9(0xf3)]),_0x3f339a)){logger['debug'](_0x5d5da9(0xd2)+_0x3f339a+'ms)\x20'+_0x3396ec);try{fs[_0x5d5da9(0xf5)](_0x540d09);}catch(_0x4521aa){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x3396ec+':\x20'+(_0x4521aa&&_0x4521aa['message']?_0x4521aa[_0x5d5da9(0xc9)]:_0x4521aa));}continue;}const _0x3556bc=fs[_0x5d5da9(0xd9)](_0x540d09,_0x173c07[_0x5d5da9(0x11d)]),_0x8c3af3=JSON[_0x5d5da9(0x120)](_0x3556bc);this['mergeBuildLevelTags'](_0x8cbfa5,_0x8c3af3),_0x2c40dc+=0x1;}catch(_0x3d321d){logger[_0x5d5da9(0x10f)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x3396ec+':\x20'+(_0x3d321d&&_0x3d321d[_0x5d5da9(0xc9)]?_0x3d321d[_0x5d5da9(0xc9)]:_0x3d321d));}try{fs[_0x5d5da9(0xf5)](_0x540d09);}catch(_0x27799b){logger[_0x5d5da9(0x10f)](_0x5d5da9(0xe0)+_0x3396ec+':\x20'+(_0x27799b&&_0x27799b[_0x5d5da9(0xc9)]?_0x27799b['message']:_0x27799b));}}return _0x2c40dc;}}const a90_0x1b7d37={};function a90_0x43e2(_0x2d52c6,_0x558d93){const _0x34e8d2=a90_0x34e8();return a90_0x43e2=function(_0x43e28b,_0xc035bc){_0x43e28b=_0x43e28b-0xc1;let _0x5cb09c=_0x34e8d2[_0x43e28b];return _0x5cb09c;},a90_0x43e2(_0x2d52c6,_0x558d93);}a90_0x1b7d37[a90_0x8ee8c0(0x115)]=getBuildTagsRunId,a90_0x1b7d37[a90_0x8ee8c0(0x111)]=getBuildTagsFilePath,a90_0x1b7d37['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x8ee8c0(0xc4)]=a90_0x1b7d37,module[a90_0x8ee8c0(0x105)]=CustomTagManager;
@@ -1 +1 @@
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
+ const a91_0x137f9c=a91_0x5619;function a91_0x4c6f(){const _0x350774=['23166rXXJTv','288377eVZiTT','observers','freeze','4579665htSdUC','registerObserver','3DKeFLC','705416iEoTIN','getInstance','143506tSkBqx','exports','607180aXCyEv','../../helpers/classLogger.js','8585472naWjWe'];a91_0x4c6f=function(){return _0x350774;};return a91_0x4c6f();}(function(_0x4101c5,_0x876823){const _0x309757=a91_0x5619,_0x1a71a=_0x4101c5();while(!![]){try{const _0x2b5db1=parseInt(_0x309757(0x14e))/0x1+-parseInt(_0x309757(0x148))/0x2*(-parseInt(_0x309757(0x145))/0x3)+parseInt(_0x309757(0x146))/0x4+parseInt(_0x309757(0x143))/0x5+-parseInt(_0x309757(0x14d))/0x6+parseInt(_0x309757(0x14a))/0x7+-parseInt(_0x309757(0x14c))/0x8;if(_0x2b5db1===_0x876823)break;else _0x1a71a['push'](_0x1a71a['shift']());}catch(_0x387895){_0x1a71a['push'](_0x1a71a['shift']());}}}(a91_0x4c6f,0x70d20));const {createClassLogger}=require(a91_0x137f9c(0x14b));class EventDispatcher{static #instance=null;constructor(){const _0x4a46e8=a91_0x137f9c;this[_0x4a46e8(0x14f)]={};}static[a91_0x137f9c(0x147)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x137f9c(0x144)](_0x46fa8b,_0x5b1499){const _0x3ed2de=a91_0x137f9c;!this[_0x3ed2de(0x14f)][_0x46fa8b]&&(this[_0x3ed2de(0x14f)][_0x46fa8b]=[]),this[_0x3ed2de(0x14f)][_0x46fa8b]['push'](_0x5b1499);}async['notifyObserver'](_0x3fe86c,_0x1c5edd){const _0x421b8e=a91_0x137f9c,_0x54d249={'NiByY':function(_0x1cb6b6,_0x2a9a15){return _0x1cb6b6(_0x2a9a15);}};if(this[_0x421b8e(0x14f)][_0x3fe86c]){for(const _0x5082ee of this[_0x421b8e(0x14f)][_0x3fe86c]){await _0x54d249['NiByY'](_0x5082ee,_0x1c5edd);}return;}}}const eventDispatcher=EventDispatcher[a91_0x137f9c(0x147)]();function a91_0x5619(_0x9461a2,_0xfa4af2){const _0x4c6f14=a91_0x4c6f();return a91_0x5619=function(_0x561925,_0x3e04f5){_0x561925=_0x561925-0x142;let _0x25b882=_0x4c6f14[_0x561925];return _0x25b882;},a91_0x5619(_0x9461a2,_0xfa4af2);}Object[a91_0x137f9c(0x142)](eventDispatcher),module[a91_0x137f9c(0x149)]=eventDispatcher;
@@ -1 +1 @@
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
+ const a92_0x5271f8=a92_0x48a6;function a92_0x48a6(_0x2bad45,_0x2894b8){const _0x55825f=a92_0x5582();return a92_0x48a6=function(_0x48a60b,_0x59e4f7){_0x48a60b=_0x48a60b-0x17e;let _0xc0221a=_0x55825f[_0x48a60b];return _0xc0221a;},a92_0x48a6(_0x2bad45,_0x2894b8);}(function(_0x1fe69a,_0x2a4c1e){const _0x1c18f0=a92_0x48a6,_0x26e118=_0x1fe69a();while(!![]){try{const _0x3d6e19=-parseInt(_0x1c18f0(0x17f))/0x1*(parseInt(_0x1c18f0(0x19a))/0x2)+-parseInt(_0x1c18f0(0x1a3))/0x3*(-parseInt(_0x1c18f0(0x195))/0x4)+parseInt(_0x1c18f0(0x185))/0x5*(parseInt(_0x1c18f0(0x180))/0x6)+parseInt(_0x1c18f0(0x189))/0x7+-parseInt(_0x1c18f0(0x198))/0x8*(-parseInt(_0x1c18f0(0x18a))/0x9)+-parseInt(_0x1c18f0(0x1a1))/0xa+-parseInt(_0x1c18f0(0x18f))/0xb;if(_0x3d6e19===_0x2a4c1e)break;else _0x26e118['push'](_0x26e118['shift']());}catch(_0x1ae019){_0x26e118['push'](_0x26e118['shift']());}}}(a92_0x5582,0x38a23));function a92_0x5582(){const _0x28ef6c=['set','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','aHYSF','setState','235155HUsPxz','exports','AutomationFramework','get','184100ofgWGQ','9dfmLPW','KEY_AUTOMATION_SESSIONS','trackEvent:\x20automationFrameworkState=','automationFrameworkName','FBcOY','209396YXtljl','getState','non_browserstack_automation_sessions','automationFrameworkVersion','notifyObserver','getId','116sgzxLK','../eventDispatcher.js','setTrackedInstance','155480gLkZrv','getAllData','4yvCGtJ','automation_sessions','../../../helpers/classLogger.js','trackEvent','aebyk','../instances/trackedInstance.js','function','1927340nZuaql','getHookRegistryKey','627xRMaUx','instances','registerObserver','15667xlESce','54PXtYZA'];a92_0x5582=function(){return _0x28ef6c;};return a92_0x5582();}const {createClassLogger}=require(a92_0x5271f8(0x19c)),util=require('util'),eventDispatcher=require(a92_0x5271f8(0x196)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a92_0x5271f8(0x19f)),logger=createClassLogger(a92_0x5271f8(0x187));class AutomationFramework{static [a92_0x5271f8(0x1a4)]=new Map();static [a92_0x5271f8(0x18b)]=a92_0x5271f8(0x19b);static [a92_0x5271f8(0x182)]=a92_0x5271f8(0x191);constructor(_0x12d342,_0xa8d220){const _0x564d53=a92_0x5271f8;this[_0x564d53(0x18d)]=_0x12d342,this[_0x564d53(0x192)]=_0xa8d220;}['getAutomationFrameworkName'](){const _0x330d08=a92_0x5271f8;return this[_0x330d08(0x18d)];}['getAutomationFrameworkVersion'](){const _0x4b2528=a92_0x5271f8;return this[_0x4b2528(0x192)];}async[a92_0x5271f8(0x19d)](_0x3680f1,_0x1b2105,_0x4cd977={}){const _0x5652b9=a92_0x5271f8;logger['debug'](_0x5652b9(0x18c)+_0x3680f1+'\x20hookState='+_0x1b2105);}async['runHooks'](_0x370302,_0x3e24b0,_0x1b7af4,_0x41becc={}){const _0x1a1949=a92_0x5271f8,_0x2e7b2a=CLIUtils[_0x1a1949(0x1a2)](_0x3e24b0,_0x1b7af4);_0x370302&&_0x370302[_0x1a1949(0x184)](_0x3e24b0),await eventDispatcher[_0x1a1949(0x193)](_0x2e7b2a,_0x41becc);}static[a92_0x5271f8(0x17e)](_0x1e68b3,_0x591bda,_0x171d10){const _0xb55b06=a92_0x5271f8;eventDispatcher[_0xb55b06(0x17e)](CLIUtils[_0xb55b06(0x1a2)](_0x1e68b3,_0x591bda),_0x171d10);}static[a92_0x5271f8(0x197)](_0x2e4c22,_0x4bdd25){const _0x301793=a92_0x5271f8;AutomationFramework[_0x301793(0x1a4)][_0x301793(0x181)](_0x2e4c22[_0x301793(0x194)](),_0x4bdd25);}static['getTrackedInstance'](){const _0x3e8773=a92_0x5271f8,_0x19d6c6=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x3e8773(0x1a4)]['get'](_0x19d6c6['getId']());}static[a92_0x5271f8(0x184)](_0x25aae9,_0x277a09,_0x585423){const _0x56826c=a92_0x5271f8;_0x25aae9['getAllData']()[_0x56826c(0x181)](_0x277a09,_0x585423);}static[a92_0x5271f8(0x190)](_0x3c73da,_0x4c7f03,_0x3ead98=undefined){const _0x2c0bb0=a92_0x5271f8,_0x42fae6={};_0x42fae6[_0x2c0bb0(0x18e)]=function(_0x4a72e0,_0x4e8036){return _0x4a72e0!==_0x4e8036;},_0x42fae6[_0x2c0bb0(0x183)]=_0x2c0bb0(0x1a0),_0x42fae6[_0x2c0bb0(0x19e)]=function(_0x280b55,_0x9d2621){return _0x280b55===_0x9d2621;};const _0x725369=_0x42fae6;if(!_0x3c73da||_0x725369[_0x2c0bb0(0x18e)](typeof _0x3c73da[_0x2c0bb0(0x199)],_0x725369[_0x2c0bb0(0x183)]))return _0x3ead98;const _0x2029db=_0x3c73da[_0x2c0bb0(0x199)]()[_0x2c0bb0(0x188)](_0x4c7f03);return _0x725369[_0x2c0bb0(0x19e)](_0x2029db,undefined)?_0x3ead98:_0x2029db;}}module[a92_0x5271f8(0x186)]=AutomationFramework;
@@ -1 +1 @@
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
+ const a93_0x36be7a=a93_0xbed1;(function(_0x498568,_0x18a423){const _0x50716f=a93_0xbed1,_0x1e79a1=_0x498568();while(!![]){try{const _0x6ae81f=parseInt(_0x50716f(0x1dd))/0x1*(parseInt(_0x50716f(0x1fd))/0x2)+parseInt(_0x50716f(0x1f8))/0x3+parseInt(_0x50716f(0x1f3))/0x4*(parseInt(_0x50716f(0x1ee))/0x5)+-parseInt(_0x50716f(0x1f6))/0x6*(parseInt(_0x50716f(0x1f9))/0x7)+parseInt(_0x50716f(0x1f5))/0x8*(-parseInt(_0x50716f(0x1ec))/0x9)+-parseInt(_0x50716f(0x1dc))/0xa*(-parseInt(_0x50716f(0x1e9))/0xb)+parseInt(_0x50716f(0x1ef))/0xc*(parseInt(_0x50716f(0x1e4))/0xd);if(_0x6ae81f===_0x18a423)break;else _0x1e79a1['push'](_0x1e79a1['shift']());}catch(_0x1d3356){_0x1e79a1['push'](_0x1e79a1['shift']());}}}(a93_0x1a19,0xc246d));const a93_0x17457b={};a93_0x17457b[a93_0x36be7a(0x1f2)]='BROWSERSTACK_PLATFORM_INDEX',a93_0x17457b[a93_0x36be7a(0x1fc)]=a93_0x36be7a(0x1d9),a93_0x17457b[a93_0x36be7a(0x1da)]=a93_0x36be7a(0x1e7),a93_0x17457b[a93_0x36be7a(0x1e0)]=a93_0x36be7a(0x1e3),a93_0x17457b[a93_0x36be7a(0x1f0)]='capabilities',a93_0x17457b[a93_0x36be7a(0x1eb)]=a93_0x36be7a(0x1ed),a93_0x17457b[a93_0x36be7a(0x1ea)]=a93_0x36be7a(0x1de),a93_0x17457b[a93_0x36be7a(0x1e6)]=a93_0x36be7a(0x1e2),a93_0x17457b[a93_0x36be7a(0x1e5)]=a93_0x36be7a(0x1e1),a93_0x17457b[a93_0x36be7a(0x1f7)]=a93_0x36be7a(0x1fa),a93_0x17457b['COMMAND_GET']=a93_0x36be7a(0x1f1),a93_0x17457b['COMMAND_SCREENSHOT']='screenshot',a93_0x17457b['COMMAND_W3C_EXECUTE_SCRIPT']=a93_0x36be7a(0x1df),a93_0x17457b[a93_0x36be7a(0x1fb)]=a93_0x36be7a(0x1db),a93_0x17457b[a93_0x36be7a(0x1e8)]='quit';const AutomationFrameworkConstants=a93_0x17457b;function a93_0xbed1(_0x4aef48,_0x33067b){const _0x1a195c=a93_0x1a19();return a93_0xbed1=function(_0xbed186,_0xef0719){_0xbed186=_0xbed186-0x1d9;let _0x29fc18=_0x1a195c[_0xbed186];return _0x29fc18;},a93_0xbed1(_0x4aef48,_0x33067b);}module[a93_0x36be7a(0x1f4)]=AutomationFrameworkConstants;function a93_0x1a19(){const _0x50b449=['framework_session_id','COMMAND_QUIT','4191rdLvpE','KEY_STARTED_AT','KEY_IS_BROWSERSTACK_HUB','21915BhjblI','is_browserstack_hub','505OzgblF','12ncVhfS','KEY_CAPABILITIES','get','ENV_BROWSERSTACK_PLATFORM_INDEX','2348qOEknW','exports','4384yWVnUN','30TeZwDh','COMMAND_NEW_SESSION','4145742LaPeRi','1737155wtAMHi','newsession','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_HUB_URL','218bdPLXf','hub_url','KEY_FRAMEWORK_SESSION_ID','w3cexecutescriptasync','23990XEQMqT','3839jKxtcx','started_at','w3cexecutescript','KEY_INPUT_CAPABILITIES','platform_index','ended_at','input_capabilities','7764783pjjLjr','KEY_PLATFORM_INDEX','KEY_ENDED_AT'];a93_0x1a19=function(){return _0x50b449;};return a93_0x1a19();}
@@ -1 +1 @@
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
+ const a94_0x4b33c2=a94_0xc617;function a94_0xc617(_0x3aec9b,_0x3be84b){const _0x8e6f1f=a94_0x8e6f();return a94_0xc617=function(_0xc617f0,_0x54753b){_0xc617f0=_0xc617f0-0x1f1;let _0x29e5fb=_0x8e6f1f[_0xc617f0];return _0x29e5fb;},a94_0xc617(_0x3aec9b,_0x3be84b);}(function(_0x302fc2,_0x5aae0f){const _0x49cb0a=a94_0xc617,_0x2c6805=_0x302fc2();while(!![]){try{const _0x16bb29=parseInt(_0x49cb0a(0x1fb))/0x1+parseInt(_0x49cb0a(0x238))/0x2*(-parseInt(_0x49cb0a(0x209))/0x3)+-parseInt(_0x49cb0a(0x1f9))/0x4*(-parseInt(_0x49cb0a(0x21c))/0x5)+parseInt(_0x49cb0a(0x1fe))/0x6+-parseInt(_0x49cb0a(0x1f2))/0x7*(-parseInt(_0x49cb0a(0x217))/0x8)+parseInt(_0x49cb0a(0x20f))/0x9*(parseInt(_0x49cb0a(0x208))/0xa)+parseInt(_0x49cb0a(0x20c))/0xb*(-parseInt(_0x49cb0a(0x247))/0xc);if(_0x16bb29===_0x5aae0f)break;else _0x2c6805['push'](_0x2c6805['shift']());}catch(_0x257048){_0x2c6805['push'](_0x2c6805['shift']());}}}(a94_0x8e6f,0x3c973));function a94_0x8e6f(){const _0x5a6b6a=['hook_name','KEY_TEST_ENDED_AT','8560XsdjrZ','3QVZTaY','test_tags','KEY_HOOK_FAILURE_REASON','375067qvcgTa','KEY_TEST_LOCATION','KEY_TEST_LOGS','2547ateqXz','pending','KEY_AUTOMATE_SESSION_REASON','KEY_FILE_LEVEL','KEY_TEST_RESULT','KEY_TEST_FAILURE_TYPE','test_logs','platform_index','1264944IYPnQs','test_attachments','test_failure_type','MAX_TOP_LEVEL_STEPS','KEY_LOGS','181075brjNJF','KEY_TEST_NAME','test_hooks_started','KIND_SCREENSHOT','test_uuid','test_meta','hook_failure_type','KEY_TEST_ID','KEY_FILE_PATH','KEY_TEST_FAILURE','logs','MAX_NESTED_STEP_DEPTH','test_location','DEFAULT_HOOK_RESULT','KEY_TEST_DURATION','KEY_HOOK_LAST_STARTED','KEY_HOOKS_STARTED','KEY_HOOKS_FINISHED','KEY_TEST_SCOPE','test_session_name','file_size','test_result_at','KEY_TEST_ATTACHMENTS','KEY_TEST_SCOPES','test_started_at','test_hook_last_finished','file_level','test_hook_last_started','566266vcnXtt','KEY_TEST_STARTED_AT','test_duration','hook_result','test_name','KEY_TEST_UUID','retry_of','KIND_LOG','KEY_TEST_FRAMEWORK_VERSION','hook_id','KEY_AUTOMATE_SESSION_STATUS','KEY_HOOK_LAST_FINISHED','KEY_TEST_RETRY_OF','KEY_EVENT_ENDED_AT','KEY_TEST_FAILURE_REASON','180jNcutX','test_hooks_finished','DEFAULT_TEST_RESULT','file_name','^(BEFORE_|AFTER_)','7nXXcUQ','KEY_FILE_SIZE','KEY_SESSION_NAME','event_ended_at','KEY_FILE_NAME','KEY_HOOK_FAILURE_TYPE','TEST_SCREENSHOT','28emJiyK','KEY_HOOK_LOGS','210224vdszrZ','KEY_TEST_RESULT_AT','test_scope','1072032dpsfoe','hook_failure_reason','file_path','KEY_TEST_FILE_PATH','test_framework_version','KEY_TEST_META','hook_logs','KEY_TEST_FRAMEWORK_NAME'];a94_0x8e6f=function(){return _0x5a6b6a;};return a94_0x8e6f();}const a94_0x53c292={};a94_0x53c292[a94_0x4b33c2(0x23d)]=a94_0x4b33c2(0x220),a94_0x53c292[a94_0x4b33c2(0x223)]='test_id',a94_0x53c292[a94_0x4b33c2(0x21d)]=a94_0x4b33c2(0x23c),a94_0x53c292[a94_0x4b33c2(0x201)]='test_file_path',a94_0x53c292['KEY_TEST_TAGS']=a94_0x4b33c2(0x20a),a94_0x53c292[a94_0x4b33c2(0x213)]='test_result',a94_0x53c292[a94_0x4b33c2(0x1fc)]=a94_0x4b33c2(0x231),a94_0x53c292[a94_0x4b33c2(0x239)]=a94_0x4b33c2(0x234),a94_0x53c292[a94_0x4b33c2(0x207)]='test_ended_at',a94_0x53c292[a94_0x4b33c2(0x20d)]=a94_0x4b33c2(0x228),a94_0x53c292[a94_0x4b33c2(0x22a)]=a94_0x4b33c2(0x23a),a94_0x53c292[a94_0x4b33c2(0x22e)]=a94_0x4b33c2(0x1fd),a94_0x53c292[a94_0x4b33c2(0x233)]='test_scopes',a94_0x53c292[a94_0x4b33c2(0x205)]='test_framework_name',a94_0x53c292[a94_0x4b33c2(0x240)]=a94_0x4b33c2(0x202),a94_0x53c292['KEY_TEST_CODE']='test_code',a94_0x53c292['KEY_TEST_RERUN_NAME']='test_rerun_name',a94_0x53c292[a94_0x4b33c2(0x244)]=a94_0x4b33c2(0x23e),a94_0x53c292['KEY_PLATFORM_INDEX']=a94_0x4b33c2(0x216),a94_0x53c292[a94_0x4b33c2(0x225)]='test_failure',a94_0x53c292[a94_0x4b33c2(0x214)]=a94_0x4b33c2(0x219),a94_0x53c292[a94_0x4b33c2(0x246)]='test_failure_reason',a94_0x53c292[a94_0x4b33c2(0x20e)]=a94_0x4b33c2(0x215),a94_0x53c292[a94_0x4b33c2(0x203)]=a94_0x4b33c2(0x221),a94_0x53c292[a94_0x4b33c2(0x1f4)]=a94_0x4b33c2(0x22f),a94_0x53c292['KEY_AUTOMATE_SESSION_NAME']='automate_session_name',a94_0x53c292[a94_0x4b33c2(0x242)]='automate_session_status',a94_0x53c292[a94_0x4b33c2(0x211)]='automate_session_reason',a94_0x53c292['KEY_EVENT_STARTED_AT']='event_started_at',a94_0x53c292[a94_0x4b33c2(0x245)]=a94_0x4b33c2(0x1f5),a94_0x53c292['KEY_HOOK_ID']=a94_0x4b33c2(0x241),a94_0x53c292['KEY_HOOK_RESULT']=a94_0x4b33c2(0x23b),a94_0x53c292[a94_0x4b33c2(0x1f7)]=a94_0x4b33c2(0x222),a94_0x53c292[a94_0x4b33c2(0x20b)]=a94_0x4b33c2(0x1ff),a94_0x53c292['KEY_HOOK_FAILURE']='hook_failure',a94_0x53c292[a94_0x4b33c2(0x1fa)]=a94_0x4b33c2(0x204),a94_0x53c292['KEY_HOOK_NAME']=a94_0x4b33c2(0x206),a94_0x53c292[a94_0x4b33c2(0x249)]=a94_0x4b33c2(0x210),a94_0x53c292[a94_0x4b33c2(0x229)]='pending',a94_0x53c292[a94_0x4b33c2(0x21f)]=a94_0x4b33c2(0x1f8),a94_0x53c292[a94_0x4b33c2(0x23f)]='TEST_LOG',a94_0x53c292['HOOK_REGEX']=a94_0x4b33c2(0x1f1),a94_0x53c292[a94_0x4b33c2(0x22c)]=a94_0x4b33c2(0x21e),a94_0x53c292[a94_0x4b33c2(0x22d)]=a94_0x4b33c2(0x248),a94_0x53c292[a94_0x4b33c2(0x22b)]=a94_0x4b33c2(0x237),a94_0x53c292[a94_0x4b33c2(0x243)]=a94_0x4b33c2(0x235),a94_0x53c292[a94_0x4b33c2(0x21b)]=a94_0x4b33c2(0x226),a94_0x53c292['KEY_CUSTOM_TAGS']='custom_metadata',a94_0x53c292[a94_0x4b33c2(0x232)]=a94_0x4b33c2(0x218),a94_0x53c292[a94_0x4b33c2(0x1f3)]=a94_0x4b33c2(0x230),a94_0x53c292[a94_0x4b33c2(0x1f6)]=a94_0x4b33c2(0x24a),a94_0x53c292[a94_0x4b33c2(0x224)]=a94_0x4b33c2(0x200),a94_0x53c292[a94_0x4b33c2(0x212)]=a94_0x4b33c2(0x236),a94_0x53c292['KEY_TEST_SCREENSHOTS']='test_screenshots',a94_0x53c292[a94_0x4b33c2(0x21a)]=0xa,a94_0x53c292[a94_0x4b33c2(0x227)]=0x2;const TestFrameworkConstants=a94_0x53c292;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
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;
1
+ const a95_0x31f88d=a95_0x32aa;(function(_0x42d3a6,_0xd32fd1){const _0x2ac0ab=a95_0x32aa,_0x141f53=_0x42d3a6();while(!![]){try{const _0x2efad=parseInt(_0x2ac0ab(0x1fc))/0x1+-parseInt(_0x2ac0ab(0x18b))/0x2*(parseInt(_0x2ac0ab(0x16a))/0x3)+-parseInt(_0x2ac0ab(0x198))/0x4*(parseInt(_0x2ac0ab(0x1ef))/0x5)+-parseInt(_0x2ac0ab(0x1d5))/0x6*(-parseInt(_0x2ac0ab(0x1e7))/0x7)+parseInt(_0x2ac0ab(0x1dc))/0x8+parseInt(_0x2ac0ab(0x161))/0x9+parseInt(_0x2ac0ab(0x215))/0xa*(parseInt(_0x2ac0ab(0x18f))/0xb);if(_0x2efad===_0xd32fd1)break;else _0x141f53['push'](_0x141f53['shift']());}catch(_0x323c76){_0x141f53['push'](_0x141f53['shift']());}}}(a95_0xa6c5,0x677a2));const TestFramework=require(a95_0x31f88d(0x19e)),TestFrameworkState=require(a95_0x31f88d(0x1ec)),HookState=require(a95_0x31f88d(0x19d)),{createClassLogger}=require(a95_0x31f88d(0x1d8)),TestFrameworkInstance=require(a95_0x31f88d(0x1c8)),CLIUtils=require(a95_0x31f88d(0x1bb)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a95_0x31f88d(0x17e)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a95_0x31f88d(0x219)),{v4:uuidv4}=require(a95_0x31f88d(0x1ca)),util=require('util'),TestInfo=require(a95_0x31f88d(0x164)),GrpcClient=require(a95_0x31f88d(0x1da));function a95_0xa6c5(){const _0x381891=['getTestDetails','Cucumber\x20log\x20created\x20event','\x20for\x20test:\x20','matchHookRegex','gTqcw','KEY_TEST_RESULT','RlNMM','ghmKv','KEY_HOOK_FAILURE','eventJson','pop','KEY_TEST_FAILURE_TYPE','args','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','1174590DkBEVu','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','getCurrentHookState','ceil','CucumberTestFramework','length','KEY_HOOKS_STARTED','\x20and\x20args\x20=\x20','name','split','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','\x20target=','browserstackPlatformIndex','NONE','KEY_HOOK_ID','createContext','KEY_HOOK_FAILURE_TYPE','failure_data','getTestFrameworksVersions','trackCucumberInstance','PRE','addMultipleEntries','unknown','\x20response=','TEST','KEY_CUSTOM_TAGS','KEY_HOOK_FAILURE_REASON','scopes','meta','SADWH','started_at','cZWxN','KEY_TEST_RESULT_AT','6420888vIpQUL','toString','KEY_TEST_NAME','../TestInfo.js','AeMTL','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','hasPendingHooks','hookData','111417xdagjg','\x20&\x20hookState=','DsEuj','KEY_TEST_LOCATION','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','CnElU','parseCucumberTestResult','body','KEY_TEST_ID','KEY_AUTOMATE_SESSION_NAME',',\x20state:\x20','KEY_TEST_META','\x20batch\x20','lWpdR','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_TEST_SCOPES','format','\x20hookState:\x20','getTestUUID','trackHookEvent','./constants/testFrameworkConstants.js','\x20with\x20UUID:\x20','from','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_SCOPE','toISOString','UnhandledError','testFrameworkVersion','VDVbL','push','instance','dpDCs',',\x20error:\x20','30JiKBme','test','IpPYT','failure_type','33YKBwDw','KEY_EVENT_STARTED_AT','sendLogCreatedEvent:\x20for\x20testId:\x20','concat','processPendingHooks','Parsed\x20cucumber\x20test:\x20','KEY_HOOKS_FINISHED','error','base64','16AMnIan','DpfOX','hookState','failure','Processing\x20','../state/hookState.js','./testFramework','setTestDetails','KEY_LOGS','runHooks','\x20with\x20result:\x20','storePendingHook','parseCucumberTest','hooks','KzLgl','KEY_HOOK_LAST_FINISHED','slice','OfZUN',',\x20state=','KEY_HOOK_NAME','Updated\x20cucumber\x20test\x20result:\x20','KEY_HOOK_LOGS','getPendingHooks','key','INIT_TEST','TVQiC','testUUID','failed','KEY_TEST_FAILURE','startedAt','getTestFrameworks','KEY_TEST_ENDED_AT','IaalO','DEFAULT_HOOK_RESULT','getAllData','../cliUtils.js',',\x20storing\x20as\x20pending\x20hook','LOG_REPORT','logCreatedEvent','Stored\x20pending\x20hook\x20for\x20testId:\x20','\x20payload=','resolveInstance','KEY_TEST_FRAMEWORK_VERSION','platformIndex','executionContext','swouJ','createTestFrameworkEventPayload','passed','../instances/testFrameworkInstance.js','KEY_HOOK_LAST_STARTED','uuid','getCurrentTestState','testFrameworkState','KEY_TEST_ATTACHMENTS','location','endedAt','getId','wPGKe','DEFAULT_TEST_RESULT','Tracked\x20cucumber\x20hook\x20event:\x20','hook_type','48yhfgUO','POST','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','../../../helpers/classLogger.js','BjKXX','../grpcClient','KEY_TEST_TAGS','799328MgZRdf','inspect','AUJSI','KEY_TEST_UUID','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getProcessId','KEY_EVENT_ENDED_AT','code','Error\x20in\x20createTestFrameworkEventPayload:\x20','failure_reason','finishedAt','166299apHutt','\x20pending\x20hooks\x20for\x20testId:\x20','\x20\x20and\x20args\x20=\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_LOGS','../state/testFrameworkState.js','get','Qcavv','918730gjVEvf','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','removePendingHooks','file_name','HmmnN','KEY_HOOK_RESULT','KEY_TEST_FRAMEWORK_NAME','debug','customRerunParam','testData','createTestFrameworkEventPayload\x20testId:\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','getInstance','360130kxtoxK','addPendingHook','getRef','result','otZUU','rfxOK','FQmke','rerun_name','getCurrentInstanceName','sendLogCreatedEvent','\x20testState:\x20'];a95_0xa6c5=function(){return _0x381891;};return a95_0xa6c5();}class CucumberTestFramework extends TestFramework{constructor(_0x45e25d,_0xf62d11,_0x7b1727){super(_0x45e25d,_0xf62d11,_0x7b1727);}async['trackEvent'](_0x4c9b55,_0x320edf,_0x35c4fb={}){const _0x4d9b07=a95_0x31f88d,_0x53465d={};_0x53465d[_0x4d9b07(0x232)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x53465d[_0x4d9b07(0x20d)]=function(_0x373772,_0x40b2bd){return _0x373772===_0x40b2bd;},_0x53465d['VDVbL']=function(_0xc27dd7,_0x4b4a01){return _0xc27dd7===_0x4b4a01;},_0x53465d[_0x4d9b07(0x1ee)]=_0x4d9b07(0x1fa);const _0x465de6=_0x53465d;await super['trackEvent'](_0x4c9b55,_0x320edf,_0x35c4fb);const _0x175596=this[_0x4d9b07(0x1c1)](_0x4c9b55,_0x320edf,_0x35c4fb);if(!_0x175596){logger[_0x4d9b07(0x1f6)](_0x465de6[_0x4d9b07(0x232)]);return;}try{let _0x3a2cc9,_0x4d9918;switch(_0x4c9b55){case TestFrameworkState[_0x4d9b07(0x22d)]:_0x3a2cc9=_0x35c4fb[_0x4d9b07(0x18c)],_0x4d9918=TestInfo[_0x4d9b07(0x17c)](_0x3a2cc9['id']);if(_0x465de6[_0x4d9b07(0x20d)](_0x320edf,HookState[_0x4d9b07(0x229)])){logger[_0x4d9b07(0x1f6)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x3a2cc9['id']);const _0x47ea38={};_0x47ea38[_0x4d9b07(0x1b2)]=_0x4d9918,_0x47ea38[_0x4d9b07(0x1f8)]=_0x3a2cc9,_0x175596[_0x4d9b07(0x22a)](this[_0x4d9b07(0x1a4)](_0x47ea38)),logger[_0x4d9b07(0x1f6)](_0x4d9b07(0x1ea)+_0x3a2cc9['id']),await this[_0x4d9b07(0x193)](_0x175596,_0x3a2cc9['id']);}else{if(_0x465de6[_0x4d9b07(0x20d)](_0x320edf,HookState[_0x4d9b07(0x1d6)])){const _0x436745={};_0x436745['testUUID']=_0x4d9918,_0x436745['testData']=_0x3a2cc9,_0x175596[_0x4d9b07(0x22a)](this[_0x4d9b07(0x170)](_0x436745)),await this[_0x4d9b07(0x193)](_0x175596,_0x3a2cc9['id']);}}break;case TestFrameworkState[_0x4d9b07(0x1bd)]:_0x465de6[_0x4d9b07(0x186)](_0x320edf,HookState[_0x4d9b07(0x1d6)])&&await this[_0x4d9b07(0x205)](_0x175596,_0x4c9b55,_0x35c4fb);break;default:if(CLIUtils[_0x4d9b07(0x20a)](_0x4c9b55[_0x4d9b07(0x162)]()['split']('.')[0x1])){const _0x248285=await this[_0x4d9b07(0x17d)](_0x175596,_0x4c9b55,_0x320edf,_0x35c4fb);_0x175596[_0x4d9b07(0x22a)](_0x248285);}else logger['debug']('trackEvent:\x20unsupported\x20testFrameworkState='+_0x4c9b55+_0x4d9b07(0x16b)+_0x320edf);break;}}catch(_0x80598b){logger[_0x4d9b07(0x196)](util[_0x4d9b07(0x17a)](_0x465de6[_0x4d9b07(0x1ee)],_0x4c9b55,_0x320edf,_0x35c4fb[_0x4d9b07(0x21a)],_0x80598b));}_0x35c4fb[_0x4d9b07(0x188)]=_0x175596,await this[_0x4d9b07(0x1a1)](_0x175596,_0x4c9b55,_0x320edf,_0x35c4fb);}[a95_0x31f88d(0x1c1)](_0x3e3092,_0x12d8ec,_0x1a7557={}){const _0x310ab6=a95_0x31f88d,_0x46005f={};_0x46005f['IaalO']=function(_0x22c820,_0x13ec8f){return _0x22c820===_0x13ec8f;};const _0x15a528=_0x46005f;let _0x24b7fd=null;return(_0x15a528['IaalO'](_0x3e3092,TestFrameworkState[_0x310ab6(0x1b0)])||_0x15a528[_0x310ab6(0x1b8)](_0x3e3092,TestFrameworkState[_0x310ab6(0x222)]))&&this[_0x310ab6(0x228)](_0x3e3092,_0x1a7557),_0x24b7fd=TestFramework['getTrackedInstance'](),_0x24b7fd;}[a95_0x31f88d(0x228)](_0x42c78f,_0x571999){const _0x219ea3=a95_0x31f88d,_0x595a1b=CLIUtils[_0x219ea3(0x204)](),_0x3491e6=TrackedInstance[_0x219ea3(0x224)](_0x595a1b);let _0x547b22=null;logger['debug'](_0x219ea3(0x216)+_0x595a1b+_0x219ea3(0x1aa)+_0x42c78f),_0x547b22=new TestFrameworkInstance(_0x3491e6,this[_0x219ea3(0x1b6)](),this[_0x219ea3(0x227)](),_0x42c78f,HookState[_0x219ea3(0x222)]),TestFramework['setTrackedInstance'](_0x3491e6,_0x547b22),logger[_0x219ea3(0x1f6)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x3491e6[_0x219ea3(0x1d0)]()+_0x219ea3(0x220)+_0x595a1b);}[a95_0x31f88d(0x1a4)](_0x204ba8){const _0x113dd3=a95_0x31f88d,_0x55515a={};_0x55515a[_0x113dd3(0x20e)]=_0x113dd3(0x166);const _0x24edd8=_0x55515a,{testUUID:_0x437a99,testData:_0x4d6fb4}=_0x204ba8;if(!_0x4d6fb4||!_0x4d6fb4[_0x113dd3(0x1ca)])return logger[_0x113dd3(0x1f6)](_0x24edd8[_0x113dd3(0x20e)]),{};const _0x48e851=_0x437a99,_0x399185=_0x4d6fb4[_0x113dd3(0x1ca)],_0x17ed80=this[_0x113dd3(0x1b6)]()[0x0],_0x18c31d=this['getTestFrameworksVersions'](),_0x1a6b42={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x17ed80,[TestFrameworkConstants[_0x113dd3(0x1c2)]]:_0x18c31d[_0x17ed80],[TestFrameworkConstants[_0x113dd3(0x1eb)]]:[],[TestFrameworkConstants[_0x113dd3(0x195)]]:{},[TestFrameworkConstants[_0x113dd3(0x21b)]]:{},[TestFrameworkConstants[_0x113dd3(0x1df)]]:_0x48e851,[TestFrameworkConstants[_0x113dd3(0x20c)]]:TestFrameworkConstants[_0x113dd3(0x1d2)],[TestFrameworkConstants[_0x113dd3(0x173)]]:_0x4d6fb4[_0x113dd3(0x21d)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x4d6fb4[_0x113dd3(0x1f2)]||'',[TestFrameworkConstants[_0x113dd3(0x172)]]:_0x399185,[TestFrameworkConstants[_0x113dd3(0x163)]]:_0x4d6fb4[_0x113dd3(0x21d)]||'',[TestFrameworkConstants[_0x113dd3(0x16d)]]:_0x4d6fb4[_0x113dd3(0x1ce)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x4d6fb4[_0x113dd3(0x171)]?.[_0x113dd3(0x1e3)]||null,[TestFrameworkConstants[_0x113dd3(0x1db)]]:_0x4d6fb4['tags']||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4d6fb4[_0x113dd3(0x1b5)]||new Date()[_0x113dd3(0x183)](),[TestFrameworkConstants[_0x113dd3(0x182)]]:_0x4d6fb4[_0x113dd3(0x230)]?.[0x0]||'',[TestFrameworkConstants[_0x113dd3(0x179)]]:_0x4d6fb4[_0x113dd3(0x230)]||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x4d6fb4[_0x113dd3(0x1f7)]?.[_0x113dd3(0x203)]||_0x4d6fb4[_0x113dd3(0x21d)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x4d6fb4['meta']||{}};TestInfo[_0x113dd3(0x19f)](_0x399185,_0x1a6b42),logger['debug'](_0x113dd3(0x194)+_0x4d6fb4['name']+_0x113dd3(0x17f)+_0x48e851);const _0x1ee58c={};return _0x1ee58c[_0x399185]=_0x1a6b42,_0x1ee58c;}['parseCucumberTestResult'](_0x51f776){const _0x6cc8bc=a95_0x31f88d,_0x75ffef={'lWpdR':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','DpfOX':_0x6cc8bc(0x22b),'swouJ':function(_0x101758,_0x1a1dcf){return _0x101758===_0x1a1dcf;},'otZUU':_0x6cc8bc(0x1b3),'ejXId':_0x6cc8bc(0x184),'gtUoO':function(_0x3e258a,_0x2e6a09,_0x13aaf0){return _0x3e258a(_0x2e6a09,_0x13aaf0);},'gTqcw':function(_0x476414,_0x2c57ea){return _0x476414>_0x2c57ea;}},{testUUID:_0x45fb4e,testData:_0x322562}=_0x51f776;if(!_0x322562||!_0x322562['uuid'])return logger[_0x6cc8bc(0x1f6)](_0x75ffef[_0x6cc8bc(0x177)]),{};const _0x2a394a=this[_0x6cc8bc(0x1c1)](TestFrameworkState[_0x6cc8bc(0x22d)],HookState[_0x6cc8bc(0x1d6)]),_0x2f9a8d=_0x322562[_0x6cc8bc(0x1ca)],_0x2fb189=TestInfo[_0x6cc8bc(0x207)](_0x2f9a8d)||{},_0x3f6182=_0x2fb189?_0x2fb189[TestFrameworkConstants[_0x6cc8bc(0x22e)]]||{}:{},_0x41ede9={..._0x2fb189,[TestFrameworkConstants[_0x6cc8bc(0x20c)]]:_0x322562[_0x6cc8bc(0x1ff)]||_0x75ffef[_0x6cc8bc(0x199)],[TestFrameworkConstants[_0x6cc8bc(0x1b7)]]:_0x322562[_0x6cc8bc(0x1e6)]||new Date()[_0x6cc8bc(0x183)](),[TestFrameworkConstants[_0x6cc8bc(0x235)]]:new Date()[_0x6cc8bc(0x183)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x3f6182,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x6cc8bc(0x175)]]:_0x322562[_0x6cc8bc(0x231)]||{}};_0x75ffef[_0x6cc8bc(0x1c5)](_0x322562['result'],_0x75ffef[_0x6cc8bc(0x200)])&&_0x322562[_0x6cc8bc(0x19b)]&&(_0x41ede9[TestFrameworkConstants[_0x6cc8bc(0x212)]]=_0x322562[_0x6cc8bc(0x18e)]||_0x75ffef['ejXId'],_0x41ede9[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x322562[_0x6cc8bc(0x1e5)]||'',_0x41ede9[TestFrameworkConstants[_0x6cc8bc(0x1b4)]]=_0x322562[_0x6cc8bc(0x19b)]);const _0x42d882=TestInfo[_0x6cc8bc(0x207)](_0x2f9a8d)[TestFrameworkConstants[_0x6cc8bc(0x1cd)]]||{},_0x5a523b=_0x75ffef['gtUoO'](getManualUploadLogs,_0x42d882,_0x2a394a[_0x6cc8bc(0x1ba)]()[_0x6cc8bc(0x1ed)](_0x2f9a8d)[TestFrameworkConstants[_0x6cc8bc(0x1df)]]);if(_0x75ffef[_0x6cc8bc(0x20b)](_0x5a523b[_0x6cc8bc(0x21a)],0x0)){const _0x2ef78c=_0x41ede9[TestFrameworkConstants[_0x6cc8bc(0x1a0)]]||[];_0x41ede9[TestFrameworkConstants[_0x6cc8bc(0x1a0)]]=[..._0x2ef78c,..._0x5a523b];}_0x322562['hooks']&&_0x75ffef[_0x6cc8bc(0x20b)](_0x322562['hooks'][_0x6cc8bc(0x21a)],0x0)&&(_0x41ede9[TestFrameworkConstants[_0x6cc8bc(0x195)]]=_0x322562[_0x6cc8bc(0x1a5)]);TestInfo[_0x6cc8bc(0x19f)](_0x2f9a8d,_0x41ede9),logger[_0x6cc8bc(0x1f6)](_0x6cc8bc(0x1ac)+_0x322562[_0x6cc8bc(0x21d)]+_0x6cc8bc(0x1a2)+_0x322562[_0x6cc8bc(0x1ff)]);const _0x146808={};return _0x146808[_0x2f9a8d]=_0x41ede9,_0x146808;}async[a95_0x31f88d(0x17d)](_0x5b198f,_0x5225b1,_0x285831,_0x1213c4){const _0x219f87=a95_0x31f88d,_0x31d17e={'wPGKe':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','cZWxN':function(_0x3b746c){return _0x3b746c();},'rfxOK':function(_0x4ad755,_0x1ed397){return _0x4ad755 in _0x1ed397;},'OfZUN':function(_0x5053b3,_0x525804){return _0x5053b3===_0x525804;},'OfttZ':function(_0x4156eb,_0x4a0d8e){return _0x4156eb>_0x4a0d8e;},'AeMTL':function(_0x59b55f,_0x5ec275){return _0x59b55f===_0x5ec275;},'DsEuj':'failed','AUJSI':_0x219f87(0x184),'HmmnN':_0x219f87(0x1c7),'ZOepZ':function(_0xfbb458,_0x1e47ed){return _0xfbb458!==_0x1e47ed;}},{hookData:_0x4baed4}=_0x1213c4;if(!_0x4baed4)return logger[_0x219f87(0x1f6)](_0x31d17e[_0x219f87(0x1d1)]),{};const _0x1b76a8=_0x4baed4['uuid']||_0x31d17e[_0x219f87(0x234)](uuidv4),_0x27947c=_0x4baed4['test_run_id'],_0x5f3158=_0x5225b1[_0x219f87(0x162)]()[_0x219f87(0x21e)]('.')[0x1],_0x310852=TestInfo[_0x219f87(0x207)](_0x27947c)[TestFrameworkConstants[_0x219f87(0x22e)]]||{},_0x2c85b9=_0x5b198f[_0x219f87(0x1ba)]()['get'](_0x27947c);if(!_0x2c85b9)return logger[_0x219f87(0x1f6)](_0x219f87(0x16e)+_0x27947c+_0x219f87(0x1bc)),this['storePendingHook'](_0x5b198f,_0x27947c,_0x5225b1,_0x285831,_0x1213c4),{};let _0x370efa=_0x2c85b9[TestFrameworkConstants[_0x219f87(0x21b)]];!_0x370efa&&(_0x370efa={});!_0x31d17e[_0x219f87(0x201)](_0x5f3158,_0x370efa)&&(_0x370efa[_0x5f3158]=[]);let _0x3cd487=_0x2c85b9[TestFrameworkConstants[_0x219f87(0x195)]];!_0x3cd487&&(_0x3cd487={});!_0x31d17e[_0x219f87(0x201)](_0x5f3158,_0x3cd487)&&(_0x3cd487[_0x5f3158]=[]);const _0xba69f={[TestFrameworkConstants[_0x219f87(0x21b)]]:_0x370efa,[TestFrameworkConstants[_0x219f87(0x195)]]:_0x3cd487},_0x21f686={};_0x21f686[_0x27947c]=_0xba69f;const _0x50d0b7=_0x21f686;if(_0x31d17e[_0x219f87(0x1a9)](_0x285831,HookState[_0x219f87(0x229)])){const _0x1c9cbe={[TestFrameworkConstants[_0x219f87(0x223)]]:_0x1b76a8,[TestFrameworkConstants[_0x219f87(0x1f4)]]:TestFrameworkConstants[_0x219f87(0x1b9)],[TestFrameworkConstants[_0x219f87(0x190)]]:_0x4baed4[_0x219f87(0x233)],[TestFrameworkConstants[_0x219f87(0x1ad)]]:[],[TestFrameworkConstants[_0x219f87(0x1ab)]]:_0x4baed4[_0x219f87(0x21d)]||_0x4baed4[_0x219f87(0x1d4)],[TestFrameworkConstants[_0x219f87(0x22e)]]:_0x310852};_0x1c9cbe[_0x219f87(0x1af)]=_0x5f3158;const _0x11919d=_0x1c9cbe;_0x370efa[_0x5f3158]['push'](_0x11919d),_0x50d0b7[_0x27947c][TestFrameworkConstants[_0x219f87(0x1c9)]]=_0x5f3158,logger[_0x219f87(0x1f6)](_0x219f87(0x21f)+_0x5f3158+'\x20&\x20hook\x20=\x20'+_0x11919d+_0x219f87(0x1e9)+_0x1213c4);}else{if(_0x31d17e[_0x219f87(0x1a9)](_0x285831,HookState[_0x219f87(0x1d6)])){const _0xf4709f=_0x4baed4['result'],_0x6bc0e9=_0x370efa[_0x5f3158]||[];logger[_0x219f87(0x1f6)](_0x219f87(0x178)+_0x6bc0e9+_0x219f87(0x21c)+_0x1213c4);if(_0x31d17e['OfttZ'](_0x6bc0e9[_0x219f87(0x21a)],0x0)){const _0xd7df87=_0x6bc0e9[_0x219f87(0x211)]();_0x31d17e[_0x219f87(0x165)](_0x4baed4['result'],_0x31d17e[_0x219f87(0x16c)])&&_0x4baed4[_0x219f87(0x226)]?(_0xd7df87[TestFrameworkConstants[_0x219f87(0x225)]]=_0x4baed4[_0x219f87(0x18e)]||_0x31d17e[_0x219f87(0x1de)],_0xd7df87[TestFrameworkConstants[_0x219f87(0x22f)]]=_0x4baed4[_0x219f87(0x1e5)]||'',_0xd7df87[TestFrameworkConstants[_0x219f87(0x20f)]]=_0x4baed4['failure_data']):_0xd7df87[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x31d17e[_0x219f87(0x1f3)];_0x31d17e['ZOepZ'](_0xf4709f,TestFrameworkConstants[_0x219f87(0x1b9)])&&(_0xd7df87[TestFrameworkConstants[_0x219f87(0x1f4)]]=_0xf4709f);_0xd7df87[TestFrameworkConstants[_0x219f87(0x1e2)]]=_0x4baed4['finished_at']||new Date()[_0x219f87(0x183)](),_0xd7df87[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x310852;const _0x580ea7=_0xd7df87[TestFrameworkConstants[_0x219f87(0x223)]];!_0x3cd487[_0x5f3158]&&(_0x3cd487[_0x5f3158]=[]),_0x3cd487[_0x5f3158][_0x219f87(0x187)](_0xd7df87),_0x50d0b7[_0x27947c][TestFrameworkConstants[_0x219f87(0x1a7)]]=_0x5f3158;}}}return logger[_0x219f87(0x1f6)](_0x219f87(0x1d3)+_0x4baed4[_0x219f87(0x1d4)]+'\x20with\x20id\x20'+_0x1b76a8+_0x219f87(0x209)+_0x27947c),_0x50d0b7;}[a95_0x31f88d(0x1c6)](_0x33dcbd){const _0x35048f=a95_0x31f88d,_0x1f0452={};_0x1f0452['IpPYT']=_0x35048f(0x197);const _0x27d30d=_0x1f0452;try{const _0x373b2c=_0x33dcbd[_0x35048f(0x18c)]?_0x33dcbd[_0x35048f(0x18c)]['id']:_0x33dcbd[_0x35048f(0x169)]['test_run_id'],_0x3e8c05=_0x33dcbd[_0x35048f(0x188)],_0xc24d0e=_0x3e8c05['getContext'](),_0x2b8b77=_0x3e8c05['getAllData']()[_0x35048f(0x1ed)](_0x373b2c);if(!_0x2b8b77)return logger['debug'](_0x35048f(0x167)+_0x373b2c),{};logger[_0x35048f(0x1f6)](_0x35048f(0x1f9)+_0x373b2c);const {[TestFrameworkConstants[_0x35048f(0x1f5)]]:_0x31830e='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x7bc22a='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x59ff56='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xf7a29=''}=_0x2b8b77,_0x23755c=_0x3e8c05[_0x35048f(0x1cb)]()['toString']()[_0x35048f(0x21e)]('.')[0x1],_0x5cf45c=_0x3e8c05[_0x35048f(0x217)]()[_0x35048f(0x162)]()[_0x35048f(0x21e)]('.')[0x1],_0x4df3a8=global?.[_0x35048f(0x221)]??0x0,_0x5d3283=_0x3e8c05[_0x35048f(0x1fe)](),_0x445252=Buffer[_0x35048f(0x180)](JSON['stringify'](_0x2b8b77))[_0x35048f(0x162)](_0x27d30d[_0x35048f(0x18d)]),_0x217fb4={'hash':_0xc24d0e[_0x35048f(0x1d0)](),'threadId':_0xc24d0e['getThreadId']()[_0x35048f(0x162)](),'processId':_0xc24d0e[_0x35048f(0x1e1)]()[_0x35048f(0x162)]()},_0x8ee90={};_0x8ee90[_0x35048f(0x1c3)]=_0x4df3a8,_0x8ee90['testFrameworkName']=_0x31830e,_0x8ee90[_0x35048f(0x185)]=_0x7bc22a,_0x8ee90[_0x35048f(0x1cc)]=_0x23755c,_0x8ee90[_0x35048f(0x19a)]=_0x5cf45c,_0x8ee90['startedAt']=_0x59ff56,_0x8ee90[_0x35048f(0x1cf)]=_0xf7a29,_0x8ee90[_0x35048f(0x1ca)]=_0x5d3283,_0x8ee90[_0x35048f(0x210)]=_0x445252,_0x8ee90[_0x35048f(0x1c4)]=_0x217fb4;const _0x3a60b6=_0x8ee90;return logger['debug'](_0x35048f(0x214)+_0x373b2c+_0x35048f(0x206)+_0x23755c+_0x35048f(0x17b)+_0x5cf45c),_0x3a60b6;}catch(_0x595fac){return logger['error'](_0x35048f(0x1e4)+util[_0x35048f(0x17a)](_0x595fac)),{};}}async[a95_0x31f88d(0x205)](_0x4310fc,_0x40971a,_0x7cfac){const _0x9ce4a=a95_0x31f88d,_0x4f7351={'dpDCs':function(_0x46c64d,_0x5ad4a6,_0x39491b){return _0x46c64d(_0x5ad4a6,_0x39491b);},'TVQiC':function(_0x50a53a,_0x3bc619){return _0x50a53a===_0x3bc619;},'WhdTX':_0x9ce4a(0x1e0),'CnElU':function(_0xb948a5,_0x7930f2){return _0xb948a5/_0x7930f2;},'BjKXX':function(_0x3fc3f8,_0x4aa0d8){return _0x3fc3f8<_0x4aa0d8;},'rpozQ':function(_0x462d3e,_0x57503c){return _0x462d3e*_0x57503c;},'aHijn':function(_0x51dd6a,_0x499a42){return _0x51dd6a+_0x499a42;},'KzLgl':function(_0x1648dc,_0x5dc6b9){return _0x1648dc+_0x5dc6b9;},'hZHcJ':function(_0x17209e,_0x27ffb3){return _0x17209e+_0x27ffb3;},'PFGWA':_0x9ce4a(0x208)};try{const _0x1a4a32=_0x7cfac[_0x9ce4a(0x1b2)],_0x44aa81=_0x4310fc[_0x9ce4a(0x1ba)]()['get'](_0x1a4a32),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x272014='',[TestFrameworkConstants[_0x9ce4a(0x1c2)]]:_0x56a807=''}=_0x44aa81,_0x3effdd=TestInfo['readLogObjects'](_0x1a4a32),_0x138e95=TestInfo[_0x9ce4a(0x207)](_0x1a4a32)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x48e09c=_0x4f7351[_0x9ce4a(0x189)](getMediaArtifactsLogs,_0x138e95,_0x4310fc['getAllData']()[_0x9ce4a(0x1ed)](_0x1a4a32)[TestFrameworkConstants[_0x9ce4a(0x1df)]]),_0x1f23cb=(_0x3effdd||[])[_0x9ce4a(0x192)](_0x48e09c||[]);if(!_0x1f23cb||_0x4f7351[_0x9ce4a(0x1b1)](_0x1f23cb[_0x9ce4a(0x21a)],0x0)){logger[_0x9ce4a(0x1f6)](_0x4f7351['WhdTX']);return;}const _0x48ccad=0x28,_0x48041b=Math[_0x9ce4a(0x218)](_0x4f7351[_0x9ce4a(0x16f)](_0x1f23cb['length'],_0x48ccad));for(let _0x23d7a3=0x0;_0x4f7351[_0x9ce4a(0x1d9)](_0x23d7a3,_0x48041b);_0x23d7a3++){const _0x198217=_0x4f7351['rpozQ'](_0x23d7a3,_0x48ccad),_0x428429=_0x4f7351['aHijn'](_0x198217,_0x48ccad),_0x1217c9=_0x1f23cb[_0x9ce4a(0x1a8)](_0x198217,_0x428429),_0x12f324={'platformIndex':global?.[_0x9ce4a(0x221)]??0x0,'logs':_0x1217c9,'testFrameworkName':_0x272014,'testFrameworkVersion':_0x56a807,'testFrameworkState':_0x40971a[_0x9ce4a(0x162)]()[_0x9ce4a(0x21e)]('.')[0x1]};logger[_0x9ce4a(0x1f6)](_0x9ce4a(0x191)+_0x1a4a32+_0x9ce4a(0x176)+_0x4f7351[_0x9ce4a(0x1a6)](_0x23d7a3,0x1)+'/'+_0x48041b+_0x9ce4a(0x1c0)+util['inspect'](_0x12f324));const _0x3049ef=await GrpcClient[_0x9ce4a(0x1fb)]()[_0x9ce4a(0x1be)](_0x12f324);logger[_0x9ce4a(0x1f6)](_0x9ce4a(0x191)+_0x1a4a32+_0x9ce4a(0x176)+_0x4f7351['hZHcJ'](_0x23d7a3,0x1)+'/'+_0x48041b+_0x9ce4a(0x22c)+util[_0x9ce4a(0x1dd)](_0x3049ef));}}catch(_0x40f999){logger['error'](_0x9ce4a(0x1d7)+util[_0x9ce4a(0x17a)](_0x40f999));}logger['debug'](_0x4f7351['PFGWA']);}[a95_0x31f88d(0x1a3)](_0x4d714a,_0x27e365,_0x1f5bd7,_0x43f940,_0x1cca04){const _0x47c8c7=a95_0x31f88d,_0x1d65d1={'testId':_0x27e365,'testFrameworkState':_0x1f5bd7,'hookState':_0x43f940,'args':_0x1cca04,'timestamp':new Date()['toISOString']()};_0x4d714a[_0x47c8c7(0x1fd)](_0x27e365,_0x1d65d1),logger[_0x47c8c7(0x1f6)](_0x47c8c7(0x1bf)+_0x27e365+_0x47c8c7(0x174)+_0x1f5bd7+',\x20hookState:\x20'+_0x43f940);}async[a95_0x31f88d(0x193)](_0x55a4cf,_0x490948){const _0x5a41e1=a95_0x31f88d,_0x41cfa4={};_0x41cfa4[_0x5a41e1(0x202)]=function(_0xa84714,_0x1cce33){return _0xa84714>_0x1cce33;};const _0xd3f37c=_0x41cfa4;if(!_0x55a4cf[_0x5a41e1(0x168)](_0x490948))return;const _0x2ecc5e=_0x55a4cf[_0x5a41e1(0x1ae)](_0x490948);logger[_0x5a41e1(0x1f6)](_0x5a41e1(0x19c)+_0x2ecc5e['length']+_0x5a41e1(0x1e8)+_0x490948);for(const _0x255d07 of _0x2ecc5e){try{const _0x4054fe=await this['trackHookEvent'](_0x55a4cf,_0x255d07[_0x5a41e1(0x1cc)],_0x255d07[_0x5a41e1(0x19a)],_0x255d07[_0x5a41e1(0x213)]);_0x4054fe&&_0xd3f37c[_0x5a41e1(0x202)](Object['keys'](_0x4054fe)['length'],0x0)&&_0x55a4cf[_0x5a41e1(0x22a)](_0x4054fe),await this[_0x5a41e1(0x1a1)](_0x55a4cf,_0x255d07[_0x5a41e1(0x1cc)],_0x255d07[_0x5a41e1(0x19a)],_0x255d07['args']);}catch(_0x2c78dc){logger[_0x5a41e1(0x196)](_0x5a41e1(0x181)+_0x490948+_0x5a41e1(0x18a)+_0x2c78dc);}}_0x55a4cf[_0x5a41e1(0x1f1)](_0x490948),logger[_0x5a41e1(0x1f6)](_0x5a41e1(0x1f0)+_0x490948);}}function a95_0x32aa(_0x56c493,_0x2b7a37){const _0xa6c5c4=a95_0xa6c5();return a95_0x32aa=function(_0x32aa7d,_0x33e21a){_0x32aa7d=_0x32aa7d-0x161;let _0xc34dc6=_0xa6c5c4[_0x32aa7d];return _0xc34dc6;},a95_0x32aa(_0x56c493,_0x2b7a37);}module['exports']=CucumberTestFramework;