browserstack-node-sdk 1.64.0 → 1.64.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 (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a85_0x476be3=a85_0x1616;function a85_0x12b4(){const _0x140348=['getWritableDir','Downloading\x20SDK\x20binary\x20from:\x20','WtTlb','ZjPmZ','ulArO','pid','HOOK_REGEX','openReadStream','NbOov','NTqgK','fileName','isBinaryBusy','BvuGr','wPJGY','existsSync','entries','flAiO','stringify','rrPBc','shouldSkipSessionName','131838MdsNEN','concat','\x20version','BROWSERSTACK_FILES_DIR','error','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','data','JyfoY','QSjin','statusCode','sutIA','message','hUThn','3hSgObe','Folder\x20','EXDEV','raDZY','VjrZP','NGHkK','8qQCVYF','format','ohskM','RhQry','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','zDbvJ','testContextOptions','ccUPd','./state/automationFrameworkState.js','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','map','./framework/constants/testFrameworkConstants.js','length','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','MRMKb','SDK_CLI_BIN_PATH','0755','timeout','testFrameworkDetail','14754751nRiudN','wAfvp','VAMYz','node','../../helpers/helper','SDK_CLI_DOWNLOAD','aDBIH','Folder\x20does\x20not\x20exist:\x20','../../helpers/performance/constants','debug','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','info','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','6299070EIyQDi','ObBhH','parse','setFrameworkDetail','JWvDK','WQpfZ','chmod','qtnVf','Setting\x20required\x20permissions\x20to\x20','.zip','downloadLatestBinary','yMTrg','platform','getSdkVersion','VRGrS','../utils/constants','waFMh','336562ayMeBi','iMKKw','closeSync','createWriteStream','\x20already\x20exists','follow-redirects','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Resolving\x20with\x20stdout:\x20\x22','htqEc','sZFUl','DnMsj','150068AFvVNt','qBNiD','Binary\x20is\x20busy:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','isFile','end','resume','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','../../helpers/classLogger.js','kukKB','shouldSkipSessionStatus','test','downloadFileStream','./instances/testFrameworkInstance.js','mdgjd','getExistingCliPath','requestToUpdateCLI','Error\x20while\x20reading\x20CLI\x20path:\x20','worker_threads','util','jrGMq','statSync','readEntry','FGgDk','lazyEntries','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','startsWith','NBtuf','FzKqO','.sock','cwd','sqFCp','xEqQN','QAqHR','url','entry','getCurrentInstanceName','automationFrameworkDetail','unlink','copyFileSync','EYPIV','MfREd','response\x20',',\x20automationFramework=','getHookRegistryKey','205msiAMv','yqmlr','listen','warn','AoAbe','BROWSERSTACK_BINARY_URL','NzLvQ','isArray','EZLYX','includes','VpSBv','wRkEY','zxtSX','mwSvP','4989519SpanrD','nfpUg','close','aUUfV','nxXbG','unix:/tmp/sdk-platform-','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','HnTqw','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','qOyma','get','cli','HTTP\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','isDirectory','Current\x20CLI\x20Path\x20Found:\x20','trim','RlsEv','open','Development\x20Cli\x20Path:\x20','../../../package.json','4KAWIKm','isDevelopmentEnv','.tmp.','getSdkLanguage','rfYhK','SDK_CLI_CHECK_UPDATE','tmpdir','lbkIO','exports','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','join','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','CWTcx','BROWSERSTACK_CLI_ENV','CLIUtils','Configuring\x20Cli\x20path.','destroy','DOWNLOAD_HTTP','preserveStatusCodeOnError','pipe','cli_version','.browserstack','JYFmB','iKLvH','runShellCommand','openSync','matchHookRegex','skipSessionName','split','Resolved\x20binary\x20path:\x20','once','4230037aLCfdX','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','object','SeBDJ','ktTMA','child_process','NoshI','CLI\x20version\x20found\x20despite\x20error:\x20\x22','HuTcA','GTtBx','getTestFrameworkDetail','getCLIParamsForDevEnv','../../helpers/performance/performance-tester.js','rQUmS','LLfEh','skipSessionStatus','checkAndUpdateCli','homedir','code','env','binary-','wHTyF','\x20from\x20','mergeObject','LmsfX','reduce','getCliDir','start','kwpkp'];a85_0x12b4=function(){return _0x140348;};return a85_0x12b4();}(function(_0x32d0ad,_0x5e2edc){const _0x43eb6d=a85_0x1616,_0x252f07=_0x32d0ad();while(!![]){try{const _0xa5b03b=parseInt(_0x43eb6d(0x1d6))/0x1*(-parseInt(_0x43eb6d(0x26c))/0x2)+-parseInt(_0x43eb6d(0x234))/0x3*(-parseInt(_0x43eb6d(0x277))/0x4)+-parseInt(_0x43eb6d(0x2a5))/0x5*(parseInt(_0x43eb6d(0x227))/0x6)+-parseInt(_0x43eb6d(0x1f6))/0x7*(-parseInt(_0x43eb6d(0x23a))/0x8)+-parseInt(_0x43eb6d(0x1c1))/0x9+parseInt(_0x43eb6d(0x25b))/0xa+parseInt(_0x43eb6d(0x24e))/0xb;if(_0xa5b03b===_0x5e2edc)break;else _0x252f07['push'](_0x252f07['shift']());}catch(_0x2eeffc){_0x252f07['push'](_0x252f07['shift']());}}}(a85_0x12b4,0x76528));const fs=require('fs'),os=require('os'),url=require(a85_0x476be3(0x29a)),path=require('path'),{exec}=require(a85_0x476be3(0x1fb)),{https}=require(a85_0x476be3(0x271)),yauzl=require('yauzl'),util=require(a85_0x476be3(0x28b)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a85_0x476be3(0x28a)),PerformanceTester=require(a85_0x476be3(0x202)),{EVENTS:PerformanceEvents}=require(a85_0x476be3(0x256)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x476be3(0x252)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x476be3(0x26a)),{createClassLogger}=require(a85_0x476be3(0x280)),TestFrameworkInstance=require(a85_0x476be3(0x285)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a85_0x476be3(0x242)),TestFrameworkConstants=require(a85_0x476be3(0x245)),logger=createClassLogger(a85_0x476be3(0x1e5)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{['automationFrameworkDetail']={};[a85_0x476be3(0x24d)]={};static[a85_0x476be3(0x1d7)](){const _0x1fe8a6=a85_0x476be3,_0x18fdac={};_0x18fdac[_0x1fe8a6(0x262)]=function(_0x3cb721,_0x3b293d){return _0x3cb721===_0x3b293d;},_0x18fdac[_0x1fe8a6(0x266)]='development';const _0x420cb4=_0x18fdac;return _0x420cb4[_0x1fe8a6(0x262)](process['env'][_0x1fe8a6(0x1e4)],_0x420cb4[_0x1fe8a6(0x266)]);}static[a85_0x476be3(0x201)](){const _0x2b4db0=a85_0x476be3,_0x3061dc={};return _0x3061dc['id']=process[_0x2b4db0(0x209)][_0x2b4db0(0x1e4)],_0x3061dc[_0x2b4db0(0x2a7)]=_0x2b4db0(0x1c6)+process[_0x2b4db0(0x209)][_0x2b4db0(0x1e4)]+_0x2b4db0(0x295),_0x3061dc;}static[a85_0x476be3(0x268)](){const _0x3a106a=a85_0x476be3,_0x38d928={'FGgDk':function(_0x4a6a71,_0x2ed865){return _0x4a6a71(_0x2ed865);},'FzKqO':_0x3a106a(0x1d5)};return _0x38d928[_0x3a106a(0x28f)](require,_0x38d928[_0x3a106a(0x294)])['version'];}static[a85_0x476be3(0x1d9)](){const _0x6e3b4c=a85_0x476be3,_0x3f5226={};_0x3f5226[_0x6e3b4c(0x237)]=_0x6e3b4c(0x251);const _0x425cd9=_0x3f5226;return _0x425cd9['raDZY'];}static async['setupCliPath'](_0x4dd69b){const _0x495c37=a85_0x476be3,_0x4d87f9={'VjrZP':_0x495c37(0x1e6),'sqFCp':function(_0x247dd5,_0x227674){return _0x247dd5(_0x227674);},'JWvDK':_0x495c37(0x1c9)};logger['debug'](_0x4d87f9[_0x495c37(0x238)]);const _0x4470d0=process[_0x495c37(0x209)][_0x495c37(0x24a)];if(!_0x4d87f9[_0x495c37(0x297)](isNullOrEmpty,_0x4470d0))return logger[_0x495c37(0x257)](_0x495c37(0x1d4)+_0x4470d0),_0x4470d0;try{const _0x251efc=this[_0x495c37(0x210)]();if(_0x4d87f9['sqFCp'](isNullOrEmpty,_0x251efc))throw new Error(_0x4d87f9[_0x495c37(0x25f)]);const _0x83a3ef=this[_0x495c37(0x287)](_0x251efc),_0x29f806=await this[_0x495c37(0x206)](_0x83a3ef,_0x251efc,_0x4dd69b);return logger[_0x495c37(0x257)](_0x495c37(0x1f4)+_0x29f806),_0x29f806;}catch(_0x2c5eda){logger['debug']('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x495c37(0x23b)](_0x2c5eda));}return null;}static async[a85_0x476be3(0x206)](_0x284bac,_0x4c23bf,_0x2afa8c){const _0x2a3635=a85_0x476be3,_0x419ec1={'rfYhK':function(_0x439260){return _0x439260();},'MfREd':function(_0x52d102,_0x1a0c44){return _0x52d102(_0x1a0c44);},'ccfrY':function(_0x48d81b,_0x4efbc9,_0x3a9742){return _0x48d81b(_0x4efbc9,_0x3a9742);},'ObBhH':_0x2a3635(0x22d),'WQpfZ':_0x2a3635(0x29a),'VAMYz':function(_0x55ed90,_0x125fa7,_0x2a5ffd){return _0x55ed90(_0x125fa7,_0x2a5ffd);}};PerformanceTester[_0x2a3635(0x211)](PerformanceEvents[_0x2a3635(0x1db)]);try{logger['info'](_0x2a3635(0x1d0)+_0x284bac);const _0x141fe9=_0x419ec1[_0x2a3635(0x1da)](getHostInfo),_0x5e740d={'sdk_version':CLIUtils[_0x2a3635(0x268)](),'os':_0x141fe9[_0x2a3635(0x267)],'os_arch':_0x141fe9['arch'],'cli_version':'0','sdk_language':this[_0x2a3635(0x1d9)]()};!_0x419ec1[_0x2a3635(0x2a1)](isNullOrEmpty,_0x284bac)&&(_0x5e740d['cli_version']=await this[_0x2a3635(0x1ef)](_0x284bac+_0x2a3635(0x229)));const _0x178967=await this[_0x2a3635(0x288)](_0x5e740d,_0x2afa8c);process['env'][_0x2a3635(0x2aa)]&&(logger[_0x2a3635(0x259)](_0x2a3635(0x258)+process[_0x2a3635(0x209)][_0x2a3635(0x2aa)]),_0x178967[_0x2a3635(0x22d)]['url']=process['env'][_0x2a3635(0x2aa)]);if(_0x419ec1['ccfrY'](nestedKeyValue,_0x178967,[_0x419ec1[_0x2a3635(0x25c)],_0x419ec1[_0x2a3635(0x260)]])){logger['debug'](_0x2a3635(0x247)+_0x5e740d[_0x2a3635(0x1eb)]);if(!_0x419ec1['MfREd'](isNullOrEmpty,_0x284bac)&&this['isBinaryBusy'](_0x284bac))return logger['warn'](_0x2a3635(0x248)+_0x284bac),_0x284bac;return await this[_0x2a3635(0x265)](_0x419ec1[_0x2a3635(0x250)](nestedKeyValue,_0x178967,[_0x419ec1['ObBhH'],_0x419ec1[_0x2a3635(0x260)]]),_0x4c23bf);}return _0x284bac;}finally{PerformanceTester[_0x2a3635(0x27d)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static['getCliDir'](){const _0x3c3bb9=a85_0x476be3,_0x17e43a={'NGHkK':function(_0x445415,_0x5c3b1f){return _0x445415(_0x5c3b1f);},'yhKqg':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','flAiO':_0x3c3bb9(0x1cc),'HuTcA':function(_0x13f19c,_0x391609){return _0x13f19c(_0x391609);}},_0x51962=this['getWritableDir']();try{if(_0x17e43a[_0x3c3bb9(0x239)](isNullOrEmpty,_0x51962))throw new Error(_0x17e43a['yhKqg']);const _0x1a579d=path[_0x3c3bb9(0x1e0)](_0x51962,_0x17e43a[_0x3c3bb9(0x223)]);return!fs[_0x3c3bb9(0x221)](_0x1a579d)&&_0x17e43a[_0x3c3bb9(0x1fe)](createDir,_0x1a579d),_0x1a579d;}catch(_0x735552){logger[_0x3c3bb9(0x257)](_0x3c3bb9(0x1c7)+util[_0x3c3bb9(0x23b)](_0x735552));}}static[a85_0x476be3(0x213)](){const _0x2abcc7=a85_0x476be3,_0x51b281={'MTjXo':_0x2abcc7(0x1ec),'QSjin':function(_0x4d0049,_0x2fce83){return _0x4d0049(_0x2fce83);},'NgEeE':function(_0x150ab4,_0x2f728b){return _0x150ab4(_0x2f728b);},'jrGMq':function(_0x4d085d,_0x1b346d){return _0x4d085d(_0x1b346d);},'rQUmS':function(_0x42e692,_0x19152d){return _0x42e692(_0x19152d);},'ohskM':function(_0x5ac358,_0x529152){return _0x5ac358(_0x529152);}},_0x330450=[process[_0x2abcc7(0x209)][_0x2abcc7(0x22a)],path['join'](os[_0x2abcc7(0x207)](),_0x51b281['MTjXo']),path[_0x2abcc7(0x1e0)](os[_0x2abcc7(0x1dc)](),_0x51b281['MTjXo'])];for(const _0x2f8cab of _0x330450){if(_0x51b281[_0x2abcc7(0x22f)](isNullOrEmpty,_0x2f8cab))continue;try{if(fs[_0x2abcc7(0x221)](_0x2f8cab)){logger[_0x2abcc7(0x257)](_0x2abcc7(0x235)+_0x2f8cab+_0x2abcc7(0x270));if(!_0x51b281['NgEeE'](isModifiable,_0x2f8cab)){logger[_0x2abcc7(0x257)](_0x2abcc7(0x263)+_0x2f8cab);const _0x36b6b7=_0x51b281['NgEeE'](setReadWriteExecuteAccess,_0x2f8cab);if(!_0x51b281[_0x2abcc7(0x28c)](isTrue,_0x36b6b7)){logger[_0x2abcc7(0x2a8)](_0x2abcc7(0x291)+_0x2f8cab);continue;}}}else{logger[_0x2abcc7(0x257)](_0x2abcc7(0x255)+_0x2f8cab),_0x51b281[_0x2abcc7(0x203)](createDir,_0x2f8cab),logger[_0x2abcc7(0x257)](_0x2abcc7(0x263)+_0x2f8cab);const _0x3a14e4=_0x51b281['NgEeE'](setReadWriteExecuteAccess,_0x2f8cab);!_0x51b281[_0x2abcc7(0x23c)](isTrue,_0x3a14e4)&&logger[_0x2abcc7(0x2a8)](_0x2abcc7(0x291)+_0x2f8cab);}return _0x2f8cab;}catch(_0x4a4dff){logger[_0x2abcc7(0x22b)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x2abcc7(0x23b)](_0x4a4dff));}}return null;}static[a85_0x476be3(0x287)](_0x116bee){const _0xe92dc6=a85_0x476be3,_0x9341d9={};_0x9341d9[_0xe92dc6(0x249)]=function(_0x7b8fc9,_0x431a82){return _0x7b8fc9>_0x431a82;};const _0x2f0bbb=_0x9341d9;try{if(!fs[_0xe92dc6(0x221)](_0x116bee)||!fs[_0xe92dc6(0x28d)](_0x116bee)[_0xe92dc6(0x1cf)]())return'';const _0xb2d74e=fs['readdirSync'](_0x116bee)[_0xe92dc6(0x244)](_0x1b3076=>path['join'](_0x116bee,_0x1b3076))['filter'](_0x6d83df=>fs[_0xe92dc6(0x28d)](_0x6d83df)[_0xe92dc6(0x27c)]()&&path['basename'](_0x6d83df)[_0xe92dc6(0x292)](_0xe92dc6(0x20a)));if(_0x2f0bbb[_0xe92dc6(0x249)](_0xb2d74e[_0xe92dc6(0x246)],0x0)){const _0x256569=_0xb2d74e[_0xe92dc6(0x244)](_0x4923db=>({'filePath':_0x4923db,'mtime':fs[_0xe92dc6(0x28d)](_0x4923db)['mtime']}))[_0xe92dc6(0x20f)]((_0x113d32,_0x57f768)=>{const _0x8f47c=_0xe92dc6;if(!_0x113d32||!_0x113d32['mtime'])return _0x57f768;if(_0x2f0bbb[_0x8f47c(0x249)](_0x57f768['mtime'],_0x113d32['mtime']))return _0x57f768;return _0x113d32;},{});return _0x256569?_0x256569['filePath']:'';}return'';}catch(_0x215814){return logger[_0xe92dc6(0x22b)](_0xe92dc6(0x289)+util[_0xe92dc6(0x23b)](_0x215814)),'';}}static [a85_0x476be3(0x288)]=async(_0xae0dbe,_0x495272)=>{const _0x9838ce=a85_0x476be3,_0xcb7d03={'wHTyF':function(_0xcebee1,_0x5a05e,_0x3a14da,_0x126e31,_0x3c2164){return _0xcebee1(_0x5a05e,_0x3a14da,_0x126e31,_0x3c2164);},'xEqQN':'GET'},_0x2e9095={};_0x2e9095['qs']=_0xae0dbe,_0x2e9095[_0x9838ce(0x1e9)]=!![];const _0xdd9188=await _0xcb7d03[_0x9838ce(0x20b)](nodeRequest,_0xcb7d03[_0x9838ce(0x298)],UPDATED_CLI_ENDPOINT,_0x2e9095,_0x495272);return logger[_0x9838ce(0x257)](_0x9838ce(0x2a2)+JSON[_0x9838ce(0x224)](_0xdd9188)),_0xdd9188;};static[a85_0x476be3(0x21e)](_0x5e673e){const _0x2ba1e2=a85_0x476be3;try{const _0x515a08=fs[_0x2ba1e2(0x1f0)](_0x5e673e,'r+');return fs[_0x2ba1e2(0x26e)](_0x515a08),![];}catch(_0x36d0f3){if(BINARY_BUSY_ERROR_CODES[_0x2ba1e2(0x2ae)](_0x36d0f3[_0x2ba1e2(0x208)]))return logger[_0x2ba1e2(0x257)](_0x2ba1e2(0x279)+_0x5e673e),!![];return logger[_0x2ba1e2(0x257)](_0x2ba1e2(0x25a)+_0x36d0f3['message']),![];}}static[a85_0x476be3(0x1ef)](_0x353e85,_0x119e8b=''){const _0x496b44=a85_0x476be3,_0x4f54ef={'paIqm':'version','mdgjd':function(_0x1774e3,_0x3c3645){return _0x1774e3(_0x3c3645);},'NTqgK':function(_0x606c57,_0x260944){return _0x606c57(_0x260944);},'RlsEv':'SHELL_EXECUTE_ERROR','hfMUO':function(_0x14641f,_0x3232bb){return _0x14641f(_0x3232bb);},'iKLvH':function(_0x27224c,_0x258461,_0x27cced,_0x50c112){return _0x27224c(_0x258461,_0x27cced,_0x50c112);},'JyfoY':_0x496b44(0x22b)};return new Promise((_0x582d03,_0x221a90)=>{const _0x40b03e=_0x496b44,_0x36205a={'NBtuf':_0x4f54ef['paIqm'],'HnTqw':function(_0x242976,_0x7af5d8){const _0x24d838=a85_0x1616;return _0x4f54ef[_0x24d838(0x286)](_0x242976,_0x7af5d8);},'DnMsj':function(_0x5515da,_0x417075){const _0x51c0f0=a85_0x1616;return _0x4f54ef[_0x51c0f0(0x21c)](_0x5515da,_0x417075);},'rrPBc':_0x4f54ef[_0x40b03e(0x1d2)],'wPJGY':function(_0x506815,_0x505671){return _0x4f54ef['hfMUO'](_0x506815,_0x505671);}},_0x58860={};_0x58860[_0x40b03e(0x296)]=_0x119e8b,_0x58860[_0x40b03e(0x24c)]=0x1388;const _0x56416a=_0x4f54ef[_0x40b03e(0x1ee)](exec,_0x353e85,_0x58860,(_0x395417,_0x3712ec,_0xdc5ba3)=>{const _0x5c9658=_0x40b03e;if(_0x395417){if(_0x353e85[_0x5c9658(0x2ae)](_0x36205a[_0x5c9658(0x293)])&&(_0x3712ec['trim']()||_0xdc5ba3[_0x5c9658(0x1d1)]())){const _0x63dbc5=_0x3712ec[_0x5c9658(0x1d1)]()||_0xdc5ba3[_0x5c9658(0x1d1)]();logger[_0x5c9658(0x257)](_0x5c9658(0x1fd)+_0x63dbc5+'\x22'),_0x36205a[_0x5c9658(0x1c8)](_0x582d03,_0x63dbc5);}else _0x36205a[_0x5c9658(0x276)](_0x582d03,_0xdc5ba3[_0x5c9658(0x1d1)]()||_0x36205a[_0x5c9658(0x225)]);}else logger['debug'](_0x5c9658(0x273)+_0x3712ec[_0x5c9658(0x1d1)]()+'\x22'),_0x36205a[_0x5c9658(0x276)](_0x582d03,_0x3712ec['trim']());});_0x56416a['on'](_0x4f54ef[_0x40b03e(0x22e)],()=>{const _0x5f0b9f=_0x40b03e;_0x36205a[_0x5f0b9f(0x220)](_0x582d03,_0x36205a[_0x5f0b9f(0x225)]);});});}static ['downloadLatestBinary']=async(_0x3d54c2,_0x15a6f6)=>{const _0x548103=a85_0x476be3,_0x3bc4a8={'qBNiD':function(_0x466c0d,_0x3e3b84){return _0x466c0d(_0x3e3b84);},'ulArO':_0x548103(0x1e1),'aDBIH':function(_0x2ac945,_0xf68bcd){return _0x2ac945(_0xf68bcd);},'qOyma':_0x548103(0x23e),'WtTlb':function(_0x33fb25,_0x563b0b){return _0x33fb25>=_0x563b0b;},'ktTMA':_0x548103(0x1e8),'LmsfX':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','wRkEY':_0x548103(0x22b),'wAfvp':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x548103(0x211)](PerformanceEvents[_0x548103(0x253)]),logger[_0x548103(0x257)](_0x548103(0x214)+_0x3d54c2);try{const _0x18f915=url[_0x548103(0x25d)](_0x3d54c2),_0x24457e=path['join'](_0x15a6f6,'downloaded_file_'+process[_0x548103(0x218)]+_0x548103(0x264)),_0x479ae1=fs[_0x548103(0x26f)](_0x24457e);return new Promise((_0x177f19,_0xc39ac)=>{const _0x56dc83=_0x548103,_0x17b600={'gcrXq':_0x3bc4a8[_0x56dc83(0x217)],'avald':function(_0x17b8ed,_0x1fa9e6){const _0x5812a0=_0x56dc83;return _0x3bc4a8[_0x5812a0(0x254)](_0x17b8ed,_0x1fa9e6);},'VpSBv':_0x3bc4a8[_0x56dc83(0x1ca)],'yqmlr':function(_0x44465e,_0x2d2d8c){const _0xadc68b=_0x56dc83;return _0x3bc4a8[_0xadc68b(0x278)](_0x44465e,_0x2d2d8c);},'NoshI':function(_0x40c399,_0x50c97d){return _0x3bc4a8['aDBIH'](_0x40c399,_0x50c97d);},'flhyT':function(_0x30868e,_0x1ae8fb){const _0x328df5=_0x56dc83;return _0x3bc4a8[_0x328df5(0x215)](_0x30868e,_0x1ae8fb);},'EiYTf':_0x3bc4a8[_0x56dc83(0x1fa)],'asxDQ':_0x3bc4a8[_0x56dc83(0x20e)],'NzLvQ':_0x3bc4a8[_0x56dc83(0x2b0)]};https[_0x56dc83(0x1cb)](_0x18f915,function(_0x483d5b){const _0x493a71=_0x56dc83,_0x48475b={'nxXbG':function(_0x5a0570,_0x281b7b){const _0x4800cb=a85_0x1616;return _0x17b600[_0x4800cb(0x1fc)](_0x5a0570,_0x281b7b);}},_0x131266=null;if(_0x483d5b[_0x493a71(0x230)]&&_0x17b600['flhyT'](_0x483d5b['statusCode'],0x190)){const _0xf8af4e=new Error(_0x493a71(0x22c)+_0x483d5b[_0x493a71(0x230)]+_0x493a71(0x20c)+_0x3d54c2);_0xf8af4e[_0x493a71(0x208)]=_0x17b600['EiYTf'],_0xf8af4e['statusCode']=_0x483d5b[_0x493a71(0x230)],logger['error'](util[_0x493a71(0x23b)](_0x17b600['asxDQ'],_0x483d5b[_0x493a71(0x230)])),PerformanceTester['end'](PerformanceEvents[_0x493a71(0x253)],![],_0x493a71(0x1cd)+_0x483d5b[_0x493a71(0x230)]),_0x483d5b[_0x493a71(0x27e)](),_0x479ae1[_0x493a71(0x1e7)](),fs['unlink'](_0x24457e,()=>{}),_0x17b600[_0x493a71(0x1fc)](_0xc39ac,_0xf8af4e);return;}_0x483d5b[_0x493a71(0x1ea)](_0x479ae1),_0x483d5b['on'](_0x17b600[_0x493a71(0x2ab)],function(_0x37feb2){const _0x1a5c08=_0x493a71;logger[_0x1a5c08(0x22b)](util[_0x1a5c08(0x23b)](_0x17b600['gcrXq'],_0x37feb2)),PerformanceTester[_0x1a5c08(0x27d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1a5c08(0x23b)](_0x37feb2)),_0x17b600['avald'](_0xc39ac,_0x37feb2);}),_0x479ae1['on'](_0x17b600[_0x493a71(0x2ab)],function(_0x46d4b1){const _0x2e4f20=_0x493a71;logger['error'](util[_0x2e4f20(0x23b)](_0x17b600[_0x2e4f20(0x2af)],_0x46d4b1)),PerformanceTester[_0x2e4f20(0x27d)](PerformanceEvents[_0x2e4f20(0x253)],![],util[_0x2e4f20(0x23b)](_0x46d4b1)),_0x17b600[_0x2e4f20(0x2a6)](_0xc39ac,_0x46d4b1);}),CLIUtils[_0x493a71(0x284)](_0x479ae1,_0x131266,_0x24457e,_0x15a6f6,_0x228373=>{const _0x361bcb=_0x493a71;PerformanceTester[_0x361bcb(0x27d)](PerformanceEvents[_0x361bcb(0x253)]),_0x48475b[_0x361bcb(0x1c5)](_0x177f19,_0x228373);},_0x2680fd=>{const _0x3278dd=_0x493a71;PerformanceTester[_0x3278dd(0x27d)](PerformanceEvents[_0x3278dd(0x253)],![],util[_0x3278dd(0x23b)](_0x2680fd)),_0x17b600['avald'](_0xc39ac,_0x2680fd);});})['on'](_0x3bc4a8[_0x56dc83(0x2b0)],function(_0x2e2835){const _0x5885a1=_0x56dc83;logger['error'](_0x5885a1(0x1f7)+util[_0x5885a1(0x23b)](_0x2e2835)),PerformanceTester['end'](PerformanceEvents[_0x5885a1(0x253)],![],util[_0x5885a1(0x23b)](_0x2e2835)),_0x3bc4a8[_0x5885a1(0x278)](_0xc39ac,_0x2e2835);});});}catch(_0x4bf6fb){PerformanceTester[_0x548103(0x27d)](PerformanceEvents[_0x548103(0x253)],![],util[_0x548103(0x23b)](_0x4bf6fb)),logger[_0x548103(0x22b)](util['format'](_0x3bc4a8[_0x548103(0x24f)],_0x4bf6fb));throw _0x4bf6fb;}};static['downloadFileStream'](_0x392d8f,_0x1b460d,_0x280221,_0x154086,_0x6788ad,_0x375d6d){const _0x5dbcdf=a85_0x476be3,_0x38aab5={'sutIA':function(_0x14d2bd,_0x3d2bdb){return _0x14d2bd(_0x3d2bdb);},'ccUPd':function(_0x58422a,_0x2ff88b){return _0x58422a(_0x2ff88b);},'VRGrS':function(_0x406bbc,_0x2d8fa7){return _0x406bbc!==_0x2d8fa7;},'sggQw':_0x5dbcdf(0x236),'LLfEh':_0x5dbcdf(0x24b),'AoAbe':function(_0x1bac2d,_0x397330){return _0x1bac2d(_0x397330);},'SeBDJ':_0x5dbcdf(0x29b),'ZjPmZ':'error','kwpkp':_0x5dbcdf(0x27d),'kukKB':_0x5dbcdf(0x1c3),'zDbvJ':function(_0x5cabb8,_0x3768ea){return _0x5cabb8(_0x3768ea);}};_0x392d8f['on'](_0x38aab5['kukKB'],function(){const _0x160a3c=_0x5dbcdf,_0x43d4d0={'QAqHR':_0x38aab5[_0x160a3c(0x281)],'BvuGr':function(_0xd11dce,_0x4fbef9){const _0x3b127c=_0x160a3c;return _0x38aab5[_0x3b127c(0x23f)](_0xd11dce,_0x4fbef9);},'GTtBx':_0x38aab5[_0x160a3c(0x212)],'amzOP':function(_0x46cad1,_0x1b4dfd){return _0x38aab5['VRGrS'](_0x46cad1,_0x1b4dfd);},'waFMh':_0x38aab5['ZjPmZ']},_0x2b78d5={};_0x2b78d5[_0x160a3c(0x290)]=!![],yauzl[_0x160a3c(0x1d3)](_0x280221,_0x2b78d5,function(_0x145c2d,_0x218195){const _0x361890=_0x160a3c,_0x316e0c={'aUUfV':function(_0x15da68,_0x5e4e83){const _0x3f8c4b=a85_0x1616;return _0x38aab5[_0x3f8c4b(0x231)](_0x15da68,_0x5e4e83);},'nfpUg':function(_0x45d4a5,_0x2d53b9){const _0x1a164c=a85_0x1616;return _0x38aab5[_0x1a164c(0x241)](_0x45d4a5,_0x2d53b9);},'hUThn':function(_0x2d3094,_0x5c6f9a){const _0x10171b=a85_0x1616;return _0x38aab5[_0x10171b(0x269)](_0x2d3094,_0x5c6f9a);},'tHyhe':_0x38aab5['sggQw'],'Hvzmi':_0x38aab5[_0x361890(0x204)]};if(_0x145c2d){_0x38aab5[_0x361890(0x2a9)](_0x375d6d,_0x145c2d);return;}_0x218195['readEntry'](),_0x218195['on'](_0x38aab5[_0x361890(0x1f9)],_0x12bbfa=>{const _0x27144f=_0x361890,_0x3dad32={'EYPIV':_0x43d4d0[_0x27144f(0x299)],'RhQry':function(_0x4bdb38,_0x35a246){return _0x43d4d0['BvuGr'](_0x4bdb38,_0x35a246);},'JYFmB':_0x43d4d0[_0x27144f(0x1ff)]};if(/\/$/[_0x27144f(0x283)](_0x12bbfa[_0x27144f(0x21d)])){_0x218195[_0x27144f(0x28e)]();return;}!_0x1b460d&&(_0x1b460d=_0x12bbfa[_0x27144f(0x21d)]);if(_0x43d4d0['amzOP'](_0x12bbfa['fileName'],_0x1b460d))_0x218195[_0x27144f(0x28e)]();else{const _0x5ba012=_0x12bbfa[_0x27144f(0x21d)],_0x407f2c=path[_0x27144f(0x1e0)](_0x154086,_0x5ba012+_0x27144f(0x1d8)+process[_0x27144f(0x218)]);let _0x448312;try{_0x448312=fs[_0x27144f(0x26f)](_0x407f2c);}catch(_0x1b152f){if(BINARY_BUSY_ERROR_CODES[_0x27144f(0x2ae)](_0x1b152f[_0x27144f(0x208)])){const _0x504796=path[_0x27144f(0x1e0)](_0x154086,_0x5ba012);if(fs[_0x27144f(0x221)](_0x504796)){logger[_0x27144f(0x2a8)](_0x27144f(0x1ce)+_0x5ba012),fs[_0x27144f(0x29e)](_0x280221,_0x4e867c=>{const _0x40429e=_0x27144f;_0x4e867c&&logger[_0x40429e(0x2a8)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x280221);}),_0x43d4d0[_0x27144f(0x21f)](_0x6788ad,_0x504796);return;}logger[_0x27144f(0x2a8)](_0x27144f(0x27b)+_0x5ba012);}_0x43d4d0['BvuGr'](_0x375d6d,_0x1b152f);return;}_0x448312['on'](_0x43d4d0[_0x27144f(0x26b)],_0x2c302b=>{const _0x5926fe=_0x27144f;if(BINARY_BUSY_ERROR_CODES[_0x5926fe(0x2ae)](_0x2c302b['code'])){const _0x2371a6=path[_0x5926fe(0x1e0)](_0x154086,_0x5ba012);_0x448312[_0x5926fe(0x1c3)](),fs[_0x5926fe(0x221)](_0x2371a6)?(logger[_0x5926fe(0x2a8)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2c302b['message']),_0x218195[_0x5926fe(0x1c3)](),fs[_0x5926fe(0x29e)](_0x280221,_0x2d05d5=>{const _0x374e0d=_0x5926fe;_0x2d05d5&&logger[_0x374e0d(0x2a8)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x280221);}),_0x316e0c['aUUfV'](_0x6788ad,_0x2371a6)):(logger[_0x5926fe(0x2a8)](_0x5926fe(0x1df)+_0x2c302b[_0x5926fe(0x232)]),fs[_0x5926fe(0x29e)](_0x407f2c,()=>{}),_0x316e0c[_0x5926fe(0x1c4)](_0x375d6d,_0x2c302b));}else fs[_0x5926fe(0x29e)](_0x407f2c,()=>{}),_0x316e0c['aUUfV'](_0x375d6d,_0x2c302b);}),_0x218195[_0x27144f(0x21a)](_0x12bbfa,function(_0x4b3ac8,_0x46936e){const _0x59abe3=_0x27144f;if(_0x4b3ac8){fs['unlink'](_0x407f2c,()=>{}),_0x3dad32[_0x59abe3(0x23d)](_0x375d6d,_0x4b3ac8);return;}_0x46936e['on'](_0x3dad32[_0x59abe3(0x1ed)],function(){const _0x2eea29=_0x59abe3;_0x448312['end'](),_0x448312['on'](_0x3dad32[_0x2eea29(0x2a0)],function(){_0x218195['readEntry']();});}),_0x46936e['pipe'](_0x448312);});}}),_0x218195['on'](_0x38aab5[_0x361890(0x216)],_0x3e1c3f=>{const _0x324dc4=_0x361890;_0x316e0c[_0x324dc4(0x1c2)](_0x375d6d,_0x3e1c3f);}),_0x218195[_0x361890(0x1f5)](_0x38aab5[_0x361890(0x212)],()=>{const _0x5926e2=_0x361890,_0x35789e={'EZLYX':function(_0x265c34,_0x1356b9){const _0x71e14e=a85_0x1616;return _0x316e0c[_0x71e14e(0x233)](_0x265c34,_0x1356b9);},'zxtSX':_0x316e0c['tHyhe'],'sZFUl':function(_0x2a8f51,_0x57fff8){const _0x3ea622=a85_0x1616;return _0x316e0c[_0x3ea622(0x1c4)](_0x2a8f51,_0x57fff8);}};fs[_0x5926e2(0x29e)](_0x280221,_0x5210f2=>{const _0x19b242=_0x5926e2;_0x5210f2&&logger[_0x19b242(0x2a8)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x280221);});const _0x32888f=path['join'](_0x154086,_0x1b460d+_0x5926e2(0x1d8)+process['pid']),_0x31ce8b=path[_0x5926e2(0x1e0)](_0x154086,_0x1b460d);fs[_0x5926e2(0x261)](_0x32888f,_0x316e0c['Hvzmi'],function(_0x894e7b){const _0x16b97e=_0x5926e2;if(_0x894e7b){_0x218195[_0x16b97e(0x1c3)](),fs['unlink'](_0x32888f,()=>{}),_0x316e0c['nfpUg'](_0x375d6d,_0x894e7b);return;}fs['rename'](_0x32888f,_0x31ce8b,function(_0x29b4bb){const _0x90568e=_0x16b97e;if(_0x29b4bb){if(_0x35789e[_0x90568e(0x2ad)](_0x29b4bb['code'],_0x35789e[_0x90568e(0x1bf)])){_0x218195[_0x90568e(0x1c3)](),fs['unlink'](_0x32888f,()=>{}),_0x35789e[_0x90568e(0x275)](_0x375d6d,_0x29b4bb);return;}logger['warn'](_0x90568e(0x27a)+_0x29b4bb[_0x90568e(0x232)]);try{fs[_0x90568e(0x29f)](_0x32888f,_0x31ce8b);}catch(_0x342461){_0x218195[_0x90568e(0x1c3)](),fs[_0x90568e(0x29e)](_0x32888f,()=>{}),_0x35789e[_0x90568e(0x275)](_0x375d6d,_0x342461);return;}fs[_0x90568e(0x29e)](_0x32888f,_0x23f074=>{const _0x35380f=_0x90568e;_0x23f074&&logger[_0x35380f(0x2a8)](_0x35380f(0x272)+_0x23f074[_0x35380f(0x232)]);});}_0x218195['close'](),_0x35789e[_0x90568e(0x275)](_0x6788ad,_0x31ce8b);});});});});});}static[a85_0x476be3(0x200)](){const _0x2cf953=a85_0x476be3;if(process[_0x2cf953(0x209)][_0x2cf953(0x243)])return JSON['parse'](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x1cea58=a85_0x476be3;if(process['env'][_0x1cea58(0x27f)])return JSON['parse'](process[_0x1cea58(0x209)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x1cea58(0x29d)];}static[a85_0x476be3(0x25e)](_0x150234,_0x50be1c){const _0x205e39=a85_0x476be3,_0x5888c6={'mwSvP':'3|1|0|4|2','htqEc':function(_0x3e2d6a,_0x24d0b1){return _0x3e2d6a(_0x24d0b1);},'iMKKw':function(_0x5eb1f5,_0x27ee53){return _0x5eb1f5(_0x27ee53);},'CWTcx':function(_0x1ce9d4,_0x505833){return _0x1ce9d4||_0x505833;}},_0x3f19f8=_0x5888c6[_0x205e39(0x1c0)][_0x205e39(0x1f3)]('|');let _0x2fb59c=0x0;while(!![]){switch(_0x3f19f8[_0x2fb59c++]){case'0':this[_0x205e39(0x29d)]={'name':_0x50be1c,'version':_0x5888c6[_0x205e39(0x274)](getFrameworkVersion,_0x50be1c)};continue;case'1':this[_0x205e39(0x24d)]={'name':_0x150234,'version':{[_0x150234]:_0x5888c6[_0x205e39(0x26d)](getFrameworkVersion,_0x150234)}};continue;case'2':process[_0x205e39(0x209)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x205e39(0x224)](this[_0x205e39(0x24d)]);continue;case'3':_0x5888c6[_0x205e39(0x1e3)](!_0x150234,!_0x50be1c)&&logger[_0x205e39(0x257)](_0x205e39(0x1e2)+_0x150234+_0x205e39(0x2a3)+_0x50be1c);continue;case'4':process[_0x205e39(0x209)][_0x205e39(0x27f)]=JSON[_0x205e39(0x224)](this[_0x205e39(0x29d)]);continue;}break;}}static[a85_0x476be3(0x2a4)](_0x46d041,_0xcc09a5){return _0x46d041+':'+_0xcc09a5;}static[a85_0x476be3(0x29c)](){const _0x5d71d6=a85_0x476be3;return process[_0x5d71d6(0x218)]+':'+threadId;}static[a85_0x476be3(0x226)](_0x15cebf){const _0x478ed9=a85_0x476be3;if(_0x15cebf[_0x478ed9(0x240)]&&_0x15cebf[_0x478ed9(0x240)][_0x478ed9(0x1f2)])return!![];return![];}static[a85_0x476be3(0x282)](_0x40df3b){const _0x343cee=a85_0x476be3;if(_0x40df3b[_0x343cee(0x240)]&&_0x40df3b[_0x343cee(0x240)][_0x343cee(0x205)])return!![];return![];}static[a85_0x476be3(0x1f1)](_0x5afa81){const _0x493764=a85_0x476be3,_0x553d08=new RegExp(TestFrameworkConstants[_0x493764(0x219)]);return _0x553d08[_0x493764(0x283)](_0x5afa81);}static[a85_0x476be3(0x20d)](_0x38d7ac,_0x4b74d9){const _0x3d85fe=a85_0x476be3,_0x18864c={};_0x18864c[_0x3d85fe(0x21b)]=function(_0x375ae9,_0x130553){return _0x375ae9!==_0x130553;},_0x18864c[_0x3d85fe(0x1dd)]=function(_0x361e5a,_0x4dd218){return _0x361e5a===_0x4dd218;},_0x18864c['ipjpM']=_0x3d85fe(0x1f8);const _0x25992e=_0x18864c;for(const [_0x17f119,_0x26e22f]of Object[_0x3d85fe(0x222)](_0x4b74d9)){if(_0x25992e['NbOov'](_0x26e22f,null)&&_0x25992e['lbkIO'](typeof _0x26e22f,_0x25992e['ipjpM'])&&!Array[_0x3d85fe(0x2ac)](_0x26e22f))_0x38d7ac[_0x17f119]=this[_0x3d85fe(0x20d)](_0x38d7ac[_0x17f119]||{},_0x26e22f);else Array[_0x3d85fe(0x2ac)](_0x26e22f)?_0x38d7ac[_0x17f119]=(_0x38d7ac[_0x17f119]||[])[_0x3d85fe(0x228)](_0x26e22f):_0x38d7ac[_0x17f119]=_0x26e22f;}return _0x38d7ac;}}function a85_0x1616(_0x2ac53c,_0x4686ff){const _0x12b4c7=a85_0x12b4();return a85_0x1616=function(_0x161652,_0x20bc2f){_0x161652=_0x161652-0x1bf;let _0x381e7c=_0x12b4c7[_0x161652];return _0x381e7c;},a85_0x1616(_0x2ac53c,_0x4686ff);}module[a85_0x476be3(0x1de)]=CLIUtils;
1
+ const a85_0x3e77df=a85_0x1ded;function a85_0x5cb7(){const _0xaaf3e3=['IXGaA','closeSync','ypwyq','rename','node','platform','openReadStream','GtbrN','.zip','PwKDi','setupCliPath','rHWyd','ojaEC','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','31877wnNlIV','skipSessionName','Zrvcb','cwd','cli_version','WusZj','DOWNLOAD_HTTP','SHELL_EXECUTE_ERROR','runShellCommand','../../../package.json','parse','requestToUpdateCLI','cli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','LDzLe','bazEL','basename','cplPW','nYWRq','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','1906340VXHUKB','shouldSkipSessionStatus','\x20version','start','getSdkLanguage','format','OLqie','Configuring\x20Cli\x20path.','isDirectory','startsWith','statusCode','MQaiJ','error','vfVRi','HOOK_REGEX','BROWSERSTACK_FILES_DIR','./state/automationFrameworkState.js',',\x20automationFramework=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','destroy','GcrbF','automationFrameworkDetail','../../helpers/test-observability/utils.js','.browserstack','Xefxg','pipe','UGuTe','YGEkj','readdirSync','existsSync','NleHg','getAutomationFrameworkDetail','Pwpbi','../../helpers/utilities','Cohlw','../../helpers/classLogger.js','getSdkVersion','BROWSERSTACK_BINARY_URL','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','.tmp.','object','hLkku','Development\x20Cli\x20Path:\x20','SVoLe','VMtjk','version','sReZA','28554PlZbZc','debug','upeZa','split','JqWzp','../../helpers/helper','wkrrI','getExistingCliPath','fcwKB','getWritableDir','./instances/testFrameworkInstance.js','warn','wRBjA','./framework/constants/testFrameworkConstants.js','iYjzq','946818uqPWoE','AtoOz','NcpIu','util','SDK_CLI_DOWNLOAD','get','shouldSkipSessionName','LNJSS','unlink','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','downloadFileStream','code','../utils/apiUtilityMethods.js','10302648kDCNFC','0|2|3|4|1','ZtUMu','BROWSERSTACK_CLI_ENV','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','tWbIE','EUTIe','EXDEV','jsYlP','GMOQG','267986TXWzTO','ISnXZ','url','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','createWriteStream','pid','yauzl','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','getTestFrameworkDetail','QAepV','pbbSE','Setting\x20required\x20permissions\x20to\x20','aLjZN','end','kcBQM','statSync','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','IiYtW','PdOcp','testFrameworkDetail','mRjcF','qscSd','mGUsT','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','timeout','follow-redirects','downloadLatestBinary','message','230VJUcOL','reduce','Failed\x20to\x20delete\x20zip\x20file:\x20','data','listen','matchHookRegex','worker_threads','fileName','homedir','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','veRRd','exports','tugZr','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','openSync','env','testContextOptions','CLIUtils','gTBmd','GDPmY','concat','filePath','Resolving\x20with\x20stdout:\x20\x22','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','isBinaryBusy','ABxhh','LLpwu','SDK_CLI_CHECK_UPDATE','readEntry','trim','arch','\x20from\x20','entry','YPwPY','lazyEntries','stringify','join','downloaded_file_','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','.sock','hJRka','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','./state/testFrameworkState.js','kDIfm','isArray','map','gjmmh','info','Hjfcw','test','length','binary-','getCliDir','jvGYK','HdRKJ','getHookRegistryKey','plbMs','HVUUV','copyFileSync','jAAsO','eXyXM','open','1140566NfqjpY','Error\x20while\x20reading\x20CLI\x20path:\x20','../utils/constants','mtime','includes','mergeObject','entries','close'];a85_0x5cb7=function(){return _0xaaf3e3;};return a85_0x5cb7();}function a85_0x1ded(_0x52ac5c,_0x560755){const _0x5cb787=a85_0x5cb7();return a85_0x1ded=function(_0x1deddb,_0x5f2e95){_0x1deddb=_0x1deddb-0x123;let _0x388291=_0x5cb787[_0x1deddb];return _0x388291;},a85_0x1ded(_0x52ac5c,_0x560755);}(function(_0xa387a2,_0x553d48){const _0x165cf7=a85_0x1ded,_0x32e35e=_0xa387a2();while(!![]){try{const _0x1f4e71=-parseInt(_0x165cf7(0x1e5))/0x1+-parseInt(_0x165cf7(0x174))/0x2+-parseInt(_0x165cf7(0x15d))/0x3+-parseInt(_0x165cf7(0x1fa))/0x4+-parseInt(_0x165cf7(0x190))/0x5*(parseInt(_0x165cf7(0x14e))/0x6)+parseInt(_0x165cf7(0x1cf))/0x7+parseInt(_0x165cf7(0x16a))/0x8;if(_0x1f4e71===_0x553d48)break;else _0x32e35e['push'](_0x32e35e['shift']());}catch(_0x6f198c){_0x32e35e['push'](_0x32e35e['shift']());}}}(a85_0x5cb7,0x42d82));const fs=require('fs'),os=require('os'),url=require(a85_0x3e77df(0x176)),path=require('path'),{exec}=require('child_process'),{https}=require(a85_0x3e77df(0x18d)),yauzl=require(a85_0x3e77df(0x17a)),util=require(a85_0x3e77df(0x160)),{getFrameworkVersion}=require(a85_0x3e77df(0x135)),{threadId}=require(a85_0x3e77df(0x196)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3e77df(0x140)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3e77df(0x153)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3e77df(0x1d1)),{createClassLogger}=require(a85_0x3e77df(0x142)),TestFrameworkInstance=require(a85_0x3e77df(0x158)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x3e77df(0x1bb)),AutomationFrameworkState=require(a85_0x3e77df(0x12f)),TestFrameworkConstants=require(a85_0x3e77df(0x15b)),logger=createClassLogger(a85_0x3e77df(0x1a2)),{getBStackAPIUrl}=require(a85_0x3e77df(0x169));class CLIUtils{['automationFrameworkDetail']={};[a85_0x3e77df(0x187)]={};static['isDevelopmentEnv'](){const _0x1264cf=a85_0x3e77df,_0x4dab96={};_0x4dab96[_0x1264cf(0x156)]=function(_0x3f2778,_0xff1e57){return _0x3f2778===_0xff1e57;},_0x4dab96[_0x1264cf(0x1b2)]='development';const _0xbbe29d=_0x4dab96;return _0xbbe29d[_0x1264cf(0x156)](process[_0x1264cf(0x1a0)][_0x1264cf(0x16d)],_0xbbe29d[_0x1264cf(0x1b2)]);}static['getCLIParamsForDevEnv'](){const _0xf529c9=a85_0x3e77df,_0x3e1a12={};return _0x3e1a12['id']=process[_0xf529c9(0x1a0)]['BROWSERSTACK_CLI_ENV'],_0x3e1a12[_0xf529c9(0x194)]='unix:/tmp/sdk-platform-'+process[_0xf529c9(0x1a0)][_0xf529c9(0x16d)]+_0xf529c9(0x1b8),_0x3e1a12;}static['getSdkVersion'](){const _0x20e12e=a85_0x3e77df,_0x33a3c3={'wkrrI':function(_0x8f5e66,_0x21c333){return _0x8f5e66(_0x21c333);},'GMOQG':_0x20e12e(0x1ee)};return _0x33a3c3[_0x20e12e(0x154)](require,_0x33a3c3[_0x20e12e(0x173)])['version'];}static[a85_0x3e77df(0x123)](){const _0x524b77=a85_0x3e77df,_0x92075b={};_0x92075b['AtoOz']=_0x524b77(0x1db);const _0x6d08f5=_0x92075b;return _0x6d08f5[_0x524b77(0x15e)];}static async[a85_0x3e77df(0x1e1)](_0x59715a){const _0x5db647=a85_0x3e77df,_0x294003={'jvGYK':_0x5db647(0x126),'wyXkM':function(_0x14b9b5,_0x2ccb5b){return _0x14b9b5(_0x2ccb5b);},'qptpv':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x5db647(0x14f)](_0x294003[_0x5db647(0x1c6)]);const _0x3b958f=process['env']['SDK_CLI_BIN_PATH'];if(!_0x294003['wyXkM'](isNullOrEmpty,_0x3b958f))return logger['debug'](_0x5db647(0x149)+_0x3b958f),_0x3b958f;try{const _0x5925d4=this['getCliDir']();if(_0x294003['wyXkM'](isNullOrEmpty,_0x5925d4))throw new Error(_0x294003['qptpv']);const _0x4d6216=this[_0x5db647(0x155)](_0x5925d4),_0x446fdb=await this['checkAndUpdateCli'](_0x4d6216,_0x5925d4,_0x59715a);return logger[_0x5db647(0x14f)]('Resolved\x20binary\x20path:\x20'+_0x446fdb),_0x446fdb;}catch(_0x33b680){logger[_0x5db647(0x14f)](_0x5db647(0x18b)+util[_0x5db647(0x124)](_0x33b680));}return null;}static async['checkAndUpdateCli'](_0x5034ac,_0x4f0784,_0x4a858a){const _0x1ecb0d=a85_0x3e77df,_0x58b4df={'WusZj':function(_0x483db0){return _0x483db0();},'plbMs':function(_0x193249,_0x244670){return _0x193249(_0x244670);},'ojaEC':function(_0x1d58d6,_0x2e183e,_0x556fa9){return _0x1d58d6(_0x2e183e,_0x556fa9);},'LNJSS':_0x1ecb0d(0x193),'Xefxg':_0x1ecb0d(0x176),'CCgFt':function(_0x380f00,_0x55a666){return _0x380f00(_0x55a666);}};PerformanceTester[_0x1ecb0d(0x1fd)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1ecb0d(0x1c0)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x5034ac);const _0x1c5066=_0x58b4df[_0x1ecb0d(0x1ea)](getHostInfo),_0x42352b={'sdk_version':CLIUtils[_0x1ecb0d(0x143)](),'os':_0x1c5066[_0x1ecb0d(0x1dc)],'os_arch':_0x1c5066[_0x1ecb0d(0x1af)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x58b4df[_0x1ecb0d(0x1c9)](isNullOrEmpty,_0x5034ac)&&(_0x42352b['cli_version']=await this[_0x1ecb0d(0x1ed)](_0x5034ac+_0x1ecb0d(0x1fc)));const _0x43e858=await this[_0x1ecb0d(0x1f0)](_0x42352b,_0x4a858a);process[_0x1ecb0d(0x1a0)][_0x1ecb0d(0x144)]&&(logger['info'](_0x1ecb0d(0x19e)+process[_0x1ecb0d(0x1a0)]['BROWSERSTACK_BINARY_URL']),_0x43e858['data']['url']=process[_0x1ecb0d(0x1a0)]['BROWSERSTACK_BINARY_URL']);if(_0x58b4df[_0x1ecb0d(0x1e3)](nestedKeyValue,_0x43e858,[_0x58b4df[_0x1ecb0d(0x164)],_0x58b4df[_0x1ecb0d(0x137)]])){logger[_0x1ecb0d(0x14f)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x42352b[_0x1ecb0d(0x1e9)]);if(!_0x58b4df['CCgFt'](isNullOrEmpty,_0x5034ac)&&this[_0x1ecb0d(0x1a9)](_0x5034ac))return logger[_0x1ecb0d(0x159)](_0x1ecb0d(0x177)+_0x5034ac),_0x5034ac;return await this[_0x1ecb0d(0x18e)](_0x58b4df[_0x1ecb0d(0x1e3)](nestedKeyValue,_0x43e858,[_0x58b4df[_0x1ecb0d(0x164)],_0x58b4df[_0x1ecb0d(0x137)]]),_0x4f0784);}return _0x5034ac;}finally{PerformanceTester[_0x1ecb0d(0x181)](PerformanceEvents[_0x1ecb0d(0x1ac)]);}}static[a85_0x3e77df(0x1c5)](){const _0x162769=a85_0x3e77df,_0x51e42e={'ISnXZ':function(_0x4d38e3,_0x1ed7d7){return _0x4d38e3(_0x1ed7d7);},'RVzfy':_0x162769(0x1f2),'hLkku':_0x162769(0x1f1)},_0x143ea9=this[_0x162769(0x157)]();try{if(_0x51e42e[_0x162769(0x175)](isNullOrEmpty,_0x143ea9))throw new Error(_0x51e42e['RVzfy']);const _0x20ed20=path[_0x162769(0x1b5)](_0x143ea9,_0x51e42e[_0x162769(0x148)]);return!fs['existsSync'](_0x20ed20)&&_0x51e42e[_0x162769(0x175)](createDir,_0x20ed20),_0x20ed20;}catch(_0x6af1a){logger[_0x162769(0x14f)](_0x162769(0x1f9)+util[_0x162769(0x124)](_0x6af1a));}}static[a85_0x3e77df(0x157)](){const _0x40314b=a85_0x3e77df,_0xb55727={'HdRKJ':_0x40314b(0x136),'JqWzp':function(_0x36602e,_0x3a2029){return _0x36602e(_0x3a2029);},'LLpwu':function(_0x4c82cd,_0x1005db){return _0x4c82cd(_0x1005db);},'NleHg':function(_0x46a6c0,_0x327133){return _0x46a6c0(_0x327133);}},_0x3bb2b8=[process['env'][_0x40314b(0x12e)],path['join'](os[_0x40314b(0x198)](),_0xb55727[_0x40314b(0x1c7)]),path[_0x40314b(0x1b5)](os['tmpdir'](),_0xb55727[_0x40314b(0x1c7)])];for(const _0x2de59b of _0x3bb2b8){if(_0xb55727[_0x40314b(0x152)](isNullOrEmpty,_0x2de59b))continue;try{if(fs[_0x40314b(0x13c)](_0x2de59b)){logger[_0x40314b(0x14f)]('Folder\x20'+_0x2de59b+'\x20already\x20exists');if(!_0xb55727[_0x40314b(0x1ab)](isModifiable,_0x2de59b)){logger['debug']('Setting\x20required\x20permissions\x20to\x20'+_0x2de59b);const _0x2c97f4=_0xb55727[_0x40314b(0x1ab)](setReadWriteExecuteAccess,_0x2de59b);if(!_0xb55727[_0x40314b(0x1ab)](isTrue,_0x2c97f4)){logger[_0x40314b(0x159)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2de59b);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x2de59b),_0xb55727['JqWzp'](createDir,_0x2de59b),logger[_0x40314b(0x14f)](_0x40314b(0x17f)+_0x2de59b);const _0x3f4aea=_0xb55727[_0x40314b(0x13d)](setReadWriteExecuteAccess,_0x2de59b);!_0xb55727['JqWzp'](isTrue,_0x3f4aea)&&logger[_0x40314b(0x159)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2de59b);}return _0x2de59b;}catch(_0x675de5){logger[_0x40314b(0x12b)](_0x40314b(0x1f8)+util[_0x40314b(0x124)](_0x675de5));}}return null;}static['getExistingCliPath'](_0x3c31f0){const _0x121f9a=a85_0x3e77df,_0x518f34={};_0x518f34[_0x121f9a(0x172)]=function(_0x1ec2a1,_0x22ab71){return _0x1ec2a1>_0x22ab71;},_0x518f34[_0x121f9a(0x180)]=function(_0x5e5a5d,_0x3f4a64){return _0x5e5a5d>_0x3f4a64;};const _0x45c0c1=_0x518f34;try{if(!fs['existsSync'](_0x3c31f0)||!fs[_0x121f9a(0x183)](_0x3c31f0)[_0x121f9a(0x127)]())return'';const _0x2a7bc2=fs[_0x121f9a(0x13b)](_0x3c31f0)[_0x121f9a(0x1be)](_0x5ea158=>path[_0x121f9a(0x1b5)](_0x3c31f0,_0x5ea158))['filter'](_0x46866b=>fs[_0x121f9a(0x183)](_0x46866b)['isFile']()&&path[_0x121f9a(0x1f5)](_0x46866b)[_0x121f9a(0x128)](_0x121f9a(0x1c4)));if(_0x45c0c1[_0x121f9a(0x180)](_0x2a7bc2[_0x121f9a(0x1c3)],0x0)){const _0x28c5bd=_0x2a7bc2[_0x121f9a(0x1be)](_0x4f6449=>({'filePath':_0x4f6449,'mtime':fs[_0x121f9a(0x183)](_0x4f6449)[_0x121f9a(0x1d2)]}))[_0x121f9a(0x191)]((_0x10f29b,_0x12995)=>{const _0xacb5b8=_0x121f9a;if(!_0x10f29b||!_0x10f29b[_0xacb5b8(0x1d2)])return _0x12995;if(_0x45c0c1[_0xacb5b8(0x172)](_0x12995[_0xacb5b8(0x1d2)],_0x10f29b[_0xacb5b8(0x1d2)]))return _0x12995;return _0x10f29b;},{});return _0x28c5bd?_0x28c5bd[_0x121f9a(0x1a6)]:'';}return'';}catch(_0x379953){return logger[_0x121f9a(0x12b)](_0x121f9a(0x1d0)+util[_0x121f9a(0x124)](_0x379953)),'';}}static ['requestToUpdateCLI']=async(_0xf2692f,_0x470f4e)=>{const _0xa74fa8=a85_0x3e77df,_0x344995={'tPlns':function(_0x1685a4,_0x2918fa,_0x505c8d,_0x142a87,_0xeb9fd1){return _0x1685a4(_0x2918fa,_0x505c8d,_0x142a87,_0xeb9fd1);},'ABxhh':'GET'},_0x1aa112={};_0x1aa112['qs']=_0xf2692f,_0x1aa112['preserveStatusCodeOnError']=!![];const _0x243ed5=await _0x344995['tPlns'](nodeRequest,_0x344995[_0xa74fa8(0x1aa)],UPDATED_CLI_ENDPOINT,_0x1aa112,_0x470f4e);return logger[_0xa74fa8(0x14f)]('response\x20'+JSON[_0xa74fa8(0x1b4)](_0x243ed5)),_0x243ed5;};static[a85_0x3e77df(0x1a9)](_0x24cbae){const _0x33f29a=a85_0x3e77df;try{const _0x333442=fs[_0x33f29a(0x19f)](_0x24cbae,'r+');return fs[_0x33f29a(0x1d8)](_0x333442),![];}catch(_0x589300){if(BINARY_BUSY_ERROR_CODES['includes'](_0x589300[_0x33f29a(0x168)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x24cbae),!![];return logger[_0x33f29a(0x14f)](_0x33f29a(0x1a8)+_0x589300[_0x33f29a(0x18f)]),![];}}static[a85_0x3e77df(0x1ed)](_0x10dc79,_0x14453b=''){const _0x52837f=a85_0x3e77df,_0x5cc966={'upeZa':function(_0xfc4fc2,_0x10bcee){return _0xfc4fc2(_0x10bcee);},'sReZA':_0x52837f(0x1ec),'UMPfF':_0x52837f(0x14c),'wRBjA':function(_0x33b923,_0x21d32b,_0x14abd0,_0x3d829f){return _0x33b923(_0x21d32b,_0x14abd0,_0x3d829f);},'gTBmd':_0x52837f(0x12b)};return new Promise((_0x2b032c,_0x1dd213)=>{const _0x205f69=_0x52837f,_0x18c7b5={'qscSd':_0x5cc966['UMPfF'],'tugZr':function(_0x3427df,_0x508306){const _0x24145f=a85_0x1ded;return _0x5cc966[_0x24145f(0x150)](_0x3427df,_0x508306);},'mGUsT':function(_0x44390e,_0x4b7476){const _0x321da3=a85_0x1ded;return _0x5cc966[_0x321da3(0x150)](_0x44390e,_0x4b7476);},'hJRka':_0x5cc966[_0x205f69(0x14d)]},_0x4ea389={};_0x4ea389[_0x205f69(0x1e8)]=_0x14453b,_0x4ea389[_0x205f69(0x18c)]=0x1388;const _0x52e65c=_0x5cc966[_0x205f69(0x15a)](exec,_0x10dc79,_0x4ea389,(_0xe3ed9f,_0xf9ac9a,_0x2fc49d)=>{const _0x5a24b3=_0x205f69;if(_0xe3ed9f){if(_0x10dc79[_0x5a24b3(0x1d3)](_0x18c7b5[_0x5a24b3(0x189)])&&(_0xf9ac9a['trim']()||_0x2fc49d[_0x5a24b3(0x1ae)]())){const _0x97959c=_0xf9ac9a[_0x5a24b3(0x1ae)]()||_0x2fc49d[_0x5a24b3(0x1ae)]();logger[_0x5a24b3(0x14f)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x97959c+'\x22'),_0x18c7b5[_0x5a24b3(0x19d)](_0x2b032c,_0x97959c);}else _0x18c7b5['mGUsT'](_0x2b032c,_0x2fc49d['trim']()||_0x18c7b5[_0x5a24b3(0x1b9)]);}else logger[_0x5a24b3(0x14f)](_0x5a24b3(0x1a7)+_0xf9ac9a['trim']()+'\x22'),_0x18c7b5[_0x5a24b3(0x18a)](_0x2b032c,_0xf9ac9a[_0x5a24b3(0x1ae)]());});_0x52e65c['on'](_0x5cc966[_0x205f69(0x1a3)],()=>{const _0x4840dc=_0x205f69;_0x5cc966['upeZa'](_0x2b032c,_0x5cc966[_0x4840dc(0x14d)]);});});}static [a85_0x3e77df(0x18e)]=async(_0x4e5c04,_0x7c4cbd)=>{const _0x257dd8=a85_0x3e77df,_0x393ffb={'ZtUMu':function(_0x4776f1,_0x566c1d){return _0x4776f1(_0x566c1d);},'jAAsO':function(_0x39c07c,_0x5eb055){return _0x39c07c>=_0x5eb055;},'VRKtU':_0x257dd8(0x1eb),'NcpIu':_0x257dd8(0x17b),'rHWyd':_0x257dd8(0x12b),'eohWd':_0x257dd8(0x1b7),'PwKDi':_0x257dd8(0x131),'VMtjk':_0x257dd8(0x16e)};PerformanceTester[_0x257dd8(0x1fd)](PerformanceEvents[_0x257dd8(0x161)]),logger[_0x257dd8(0x14f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x4e5c04);try{const _0x3ccad9=url[_0x257dd8(0x1ef)](_0x4e5c04),_0x57b2ad=path['join'](_0x7c4cbd,_0x257dd8(0x1b6)+process[_0x257dd8(0x179)]+_0x257dd8(0x1df)),_0x15c606=fs[_0x257dd8(0x178)](_0x57b2ad);return new Promise((_0xdade9f,_0x317b3c)=>{const _0x53d54f=_0x257dd8,_0x144306={'kcBQM':_0x393ffb['eohWd'],'IXGaA':function(_0x56c372,_0x18c3fa){return _0x393ffb['ZtUMu'](_0x56c372,_0x18c3fa);},'ZRdKz':_0x393ffb[_0x53d54f(0x1e0)]};https[_0x53d54f(0x162)](_0x3ccad9,function(_0x404941){const _0x2b151a=_0x53d54f,_0x175b20={'IiYtW':function(_0x1b977e,_0x130554){return _0x393ffb['ZtUMu'](_0x1b977e,_0x130554);}},_0x1a1f87=null;if(_0x404941[_0x2b151a(0x129)]&&_0x393ffb[_0x2b151a(0x1cc)](_0x404941[_0x2b151a(0x129)],0x190)){const _0x3ce188=new Error(_0x2b151a(0x184)+_0x404941[_0x2b151a(0x129)]+_0x2b151a(0x1b0)+_0x4e5c04);_0x3ce188[_0x2b151a(0x168)]=_0x393ffb['VRKtU'],_0x3ce188[_0x2b151a(0x129)]=_0x404941[_0x2b151a(0x129)],logger[_0x2b151a(0x12b)](util[_0x2b151a(0x124)](_0x393ffb[_0x2b151a(0x15f)],_0x404941[_0x2b151a(0x129)])),PerformanceTester[_0x2b151a(0x181)](PerformanceEvents[_0x2b151a(0x161)],![],'HTTP\x20'+_0x404941[_0x2b151a(0x129)]),_0x404941['resume'](),_0x15c606[_0x2b151a(0x132)](),fs[_0x2b151a(0x165)](_0x57b2ad,()=>{}),_0x393ffb['ZtUMu'](_0x317b3c,_0x3ce188);return;}_0x404941['pipe'](_0x15c606),_0x404941['on'](_0x393ffb[_0x2b151a(0x1e2)],function(_0x3f2114){const _0x10236f=_0x2b151a;logger[_0x10236f(0x12b)](util[_0x10236f(0x124)](_0x144306[_0x10236f(0x182)],_0x3f2114)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x10236f(0x124)](_0x3f2114)),_0x144306[_0x10236f(0x1d7)](_0x317b3c,_0x3f2114);}),_0x15c606['on'](_0x393ffb['rHWyd'],function(_0x6a7280){const _0xa38959=_0x2b151a;logger[_0xa38959(0x12b)](util[_0xa38959(0x124)](_0x144306['ZRdKz'],_0x6a7280)),PerformanceTester[_0xa38959(0x181)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0xa38959(0x124)](_0x6a7280)),_0x144306[_0xa38959(0x1d7)](_0x317b3c,_0x6a7280);}),CLIUtils['downloadFileStream'](_0x15c606,_0x1a1f87,_0x57b2ad,_0x7c4cbd,_0x5d61b5=>{const _0x1dc1cb=_0x2b151a;PerformanceTester[_0x1dc1cb(0x181)](PerformanceEvents[_0x1dc1cb(0x161)]),_0x144306[_0x1dc1cb(0x1d7)](_0xdade9f,_0x5d61b5);},_0x1bd064=>{const _0x13f8b6=_0x2b151a;PerformanceTester[_0x13f8b6(0x181)](PerformanceEvents[_0x13f8b6(0x161)],![],util[_0x13f8b6(0x124)](_0x1bd064)),_0x175b20[_0x13f8b6(0x185)](_0x317b3c,_0x1bd064);});})['on'](_0x393ffb['rHWyd'],function(_0x5eeadf){const _0x888542=_0x53d54f;logger[_0x888542(0x12b)](_0x888542(0x199)+util[_0x888542(0x124)](_0x5eeadf)),PerformanceTester[_0x888542(0x181)](PerformanceEvents[_0x888542(0x161)],![],util['format'](_0x5eeadf)),_0x393ffb[_0x888542(0x16c)](_0x317b3c,_0x5eeadf);});});}catch(_0x35d8d5){PerformanceTester[_0x257dd8(0x181)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x257dd8(0x124)](_0x35d8d5)),logger[_0x257dd8(0x12b)](util[_0x257dd8(0x124)](_0x393ffb[_0x257dd8(0x14b)],_0x35d8d5));throw _0x35d8d5;}};static[a85_0x3e77df(0x167)](_0x4a9763,_0x12d74e,_0x494214,_0x164637,_0x3823a6,_0x27204b){const _0x167145=a85_0x3e77df,_0x50bf0d={'UNWPy':function(_0x2192c5,_0x55a6cc){return _0x2192c5!==_0x55a6cc;},'SVoLe':function(_0x29b4a5,_0x40c203){return _0x29b4a5(_0x40c203);},'bazEL':_0x167145(0x12b),'EDjki':_0x167145(0x1d6),'Zrvcb':'end','pZIjR':function(_0x5091bd,_0x1c2800){return _0x5091bd!==_0x1c2800;},'RbuFI':_0x167145(0x171),'eXyXM':'0755','sYmIj':_0x167145(0x1b1)};_0x4a9763['on'](_0x50bf0d['EDjki'],function(){const _0x3a8519=_0x167145,_0x316e2f={'VogTT':function(_0x186f79,_0x13fdcc){return _0x50bf0d['UNWPy'](_0x186f79,_0x13fdcc);},'ypwyq':function(_0x1ee6a3,_0xca98db){const _0x17a256=a85_0x1ded;return _0x50bf0d[_0x17a256(0x14a)](_0x1ee6a3,_0xca98db);},'nYWRq':_0x50bf0d[_0x3a8519(0x1f4)],'PdOcp':function(_0x2e55ff,_0x220d8c){const _0x37823b=_0x3a8519;return _0x50bf0d[_0x37823b(0x14a)](_0x2e55ff,_0x220d8c);},'Pwpbi':function(_0x334522,_0x41ca2e){const _0x2f300b=_0x3a8519;return _0x50bf0d[_0x2f300b(0x14a)](_0x334522,_0x41ca2e);},'UGuTe':_0x50bf0d['EDjki'],'GtbrN':_0x50bf0d[_0x3a8519(0x1e7)],'rYGZj':function(_0x5dd184,_0x3e5a5d){return _0x50bf0d['pZIjR'](_0x5dd184,_0x3e5a5d);},'kDIfm':_0x50bf0d['RbuFI'],'Cohlw':_0x50bf0d[_0x3a8519(0x1cd)],'vfVRi':function(_0x4639ec,_0x39133a){return _0x50bf0d['SVoLe'](_0x4639ec,_0x39133a);},'MQaiJ':_0x50bf0d['sYmIj']},_0x5f37f3={};_0x5f37f3[_0x3a8519(0x1b3)]=!![],yauzl[_0x3a8519(0x1ce)](_0x494214,_0x5f37f3,function(_0x468523,_0xcd6242){const _0xbc7840=_0x3a8519,_0x27bdc0={'mRjcF':function(_0x2c6050,_0x5dba93){const _0x5ac4cf=a85_0x1ded;return _0x316e2f[_0x5ac4cf(0x1d9)](_0x2c6050,_0x5dba93);},'irpuV':function(_0x2a5bf9,_0x3b8b3b){const _0x242c69=a85_0x1ded;return _0x316e2f[_0x242c69(0x13f)](_0x2a5bf9,_0x3b8b3b);},'QAepV':_0x316e2f[_0xbc7840(0x139)],'YGEkj':_0x316e2f[_0xbc7840(0x1de)],'pbbSE':function(_0x11590b,_0x48e494){return _0x316e2f['rYGZj'](_0x11590b,_0x48e494);},'GDPmY':_0x316e2f[_0xbc7840(0x1bc)],'ujTmP':function(_0x497260,_0x5130dc){return _0x316e2f['PdOcp'](_0x497260,_0x5130dc);},'LDzLe':_0x316e2f[_0xbc7840(0x141)]};if(_0x468523){_0x316e2f[_0xbc7840(0x12c)](_0x27204b,_0x468523);return;}_0xcd6242[_0xbc7840(0x1ad)](),_0xcd6242['on'](_0x316e2f[_0xbc7840(0x12a)],_0x39727f=>{const _0x55f5f4=_0xbc7840;if(/\/$/[_0x55f5f4(0x1c2)](_0x39727f[_0x55f5f4(0x197)])){_0xcd6242['readEntry']();return;}!_0x12d74e&&(_0x12d74e=_0x39727f[_0x55f5f4(0x197)]);if(_0x316e2f['VogTT'](_0x39727f[_0x55f5f4(0x197)],_0x12d74e))_0xcd6242[_0x55f5f4(0x1ad)]();else{const _0x2a4874=_0x39727f[_0x55f5f4(0x197)],_0x34ed5b=path['join'](_0x164637,_0x2a4874+_0x55f5f4(0x146)+process[_0x55f5f4(0x179)]);let _0xc35ced;try{_0xc35ced=fs[_0x55f5f4(0x178)](_0x34ed5b);}catch(_0x3136ad){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3136ad[_0x55f5f4(0x168)])){const _0x48cdbc=path['join'](_0x164637,_0x2a4874);if(fs[_0x55f5f4(0x13c)](_0x48cdbc)){logger[_0x55f5f4(0x159)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a4874),fs['unlink'](_0x494214,_0x314781=>{const _0x33a300=_0x55f5f4;_0x314781&&logger[_0x33a300(0x159)](_0x33a300(0x192)+_0x494214);}),_0x316e2f[_0x55f5f4(0x1d9)](_0x3823a6,_0x48cdbc);return;}logger[_0x55f5f4(0x159)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2a4874);}_0x316e2f[_0x55f5f4(0x1d9)](_0x27204b,_0x3136ad);return;}_0xc35ced['on'](_0x316e2f[_0x55f5f4(0x1f7)],_0x4a68ca=>{const _0x27db7e=_0x55f5f4;if(BINARY_BUSY_ERROR_CODES['includes'](_0x4a68ca[_0x27db7e(0x168)])){const _0x19aff5=path[_0x27db7e(0x1b5)](_0x164637,_0x2a4874);_0xc35ced[_0x27db7e(0x1d6)](),fs[_0x27db7e(0x13c)](_0x19aff5)?(logger[_0x27db7e(0x159)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x4a68ca[_0x27db7e(0x18f)]),_0xcd6242['close'](),fs[_0x27db7e(0x165)](_0x494214,_0x592f2d=>{const _0x3ebdd2=_0x27db7e;_0x592f2d&&logger['warn'](_0x3ebdd2(0x192)+_0x494214);}),_0x27bdc0[_0x27db7e(0x188)](_0x3823a6,_0x19aff5)):(logger['warn'](_0x27db7e(0x1e4)+_0x4a68ca[_0x27db7e(0x18f)]),fs[_0x27db7e(0x165)](_0x34ed5b,()=>{}),_0x27bdc0['irpuV'](_0x27204b,_0x4a68ca));}else fs['unlink'](_0x34ed5b,()=>{}),_0x27bdc0[_0x27db7e(0x188)](_0x27204b,_0x4a68ca);}),_0xcd6242[_0x55f5f4(0x1dd)](_0x39727f,function(_0x5936fc,_0x3fe27d){const _0x532b73=_0x55f5f4,_0x13b3b2={};_0x13b3b2[_0x532b73(0x133)]=_0x27bdc0[_0x532b73(0x17d)];const _0x18a60e=_0x13b3b2;if(_0x5936fc){fs[_0x532b73(0x165)](_0x34ed5b,()=>{}),_0x27bdc0[_0x532b73(0x188)](_0x27204b,_0x5936fc);return;}_0x3fe27d['on'](_0x27bdc0[_0x532b73(0x13a)],function(){const _0x5e5f5d=_0x532b73;_0xc35ced[_0x5e5f5d(0x181)](),_0xc35ced['on'](_0x18a60e[_0x5e5f5d(0x133)],function(){const _0x4fbad9=_0x5e5f5d;_0xcd6242[_0x4fbad9(0x1ad)]();});}),_0x3fe27d[_0x532b73(0x138)](_0xc35ced);});}}),_0xcd6242['on'](_0x316e2f[_0xbc7840(0x1f7)],_0x477042=>{const _0x29a9d7=_0xbc7840;_0x316e2f[_0x29a9d7(0x186)](_0x27204b,_0x477042);}),_0xcd6242['once'](_0x316e2f[_0xbc7840(0x1de)],()=>{const _0x2c4d63=_0xbc7840,_0x5248dc={'HVUUV':function(_0x3ad4fb,_0x4f18cc){const _0x57084a=a85_0x1ded;return _0x27bdc0[_0x57084a(0x17e)](_0x3ad4fb,_0x4f18cc);},'cplPW':_0x27bdc0[_0x2c4d63(0x1a4)],'dDuGB':function(_0x3e4d91,_0x30cca2){return _0x27bdc0['irpuV'](_0x3e4d91,_0x30cca2);},'iYjzq':function(_0x4b26eb,_0x7dd553){const _0x355143=_0x2c4d63;return _0x27bdc0[_0x355143(0x188)](_0x4b26eb,_0x7dd553);},'veRRd':function(_0xe66e87,_0x52dc18){return _0x27bdc0['ujTmP'](_0xe66e87,_0x52dc18);}};fs[_0x2c4d63(0x165)](_0x494214,_0x44245f=>{const _0x50bb57=_0x2c4d63;_0x44245f&&logger[_0x50bb57(0x159)](_0x50bb57(0x192)+_0x494214);});const _0x550947=path[_0x2c4d63(0x1b5)](_0x164637,_0x12d74e+'.tmp.'+process[_0x2c4d63(0x179)]),_0xc98083=path[_0x2c4d63(0x1b5)](_0x164637,_0x12d74e);fs['chmod'](_0x550947,_0x27bdc0[_0x2c4d63(0x1f3)],function(_0x365255){const _0x537fea=_0x2c4d63;if(_0x365255){_0xcd6242[_0x537fea(0x1d6)](),fs[_0x537fea(0x165)](_0x550947,()=>{}),_0x27bdc0[_0x537fea(0x188)](_0x27204b,_0x365255);return;}fs[_0x537fea(0x1da)](_0x550947,_0xc98083,function(_0x1fe2ee){const _0x4e1dd9=_0x537fea;if(_0x1fe2ee){if(_0x5248dc[_0x4e1dd9(0x1ca)](_0x1fe2ee[_0x4e1dd9(0x168)],_0x5248dc[_0x4e1dd9(0x1f6)])){_0xcd6242[_0x4e1dd9(0x1d6)](),fs[_0x4e1dd9(0x165)](_0x550947,()=>{}),_0x5248dc['dDuGB'](_0x27204b,_0x1fe2ee);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x1fe2ee[_0x4e1dd9(0x18f)]);try{fs[_0x4e1dd9(0x1cb)](_0x550947,_0xc98083);}catch(_0xef844){_0xcd6242[_0x4e1dd9(0x1d6)](),fs[_0x4e1dd9(0x165)](_0x550947,()=>{}),_0x5248dc[_0x4e1dd9(0x15c)](_0x27204b,_0xef844);return;}fs['unlink'](_0x550947,_0x81757b=>{const _0x3ed171=_0x4e1dd9;_0x81757b&&logger[_0x3ed171(0x159)](_0x3ed171(0x145)+_0x81757b[_0x3ed171(0x18f)]);});}_0xcd6242['close'](),_0x5248dc[_0x4e1dd9(0x19b)](_0x3823a6,_0xc98083);});});});});});}static[a85_0x3e77df(0x17c)](){const _0x2a8064=a85_0x3e77df;if(process[_0x2a8064(0x1a0)][_0x2a8064(0x1ba)])return JSON['parse'](process[_0x2a8064(0x1a0)][_0x2a8064(0x1ba)]);return this[_0x2a8064(0x187)];}static[a85_0x3e77df(0x13e)](){const _0x51179d=a85_0x3e77df;if(process[_0x51179d(0x1a0)][_0x51179d(0x19a)])return JSON[_0x51179d(0x1ef)](process[_0x51179d(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x3d916d,_0x2647a7){const _0x524c7f=a85_0x3e77df,_0x3bf7e6={'lYZGL':_0x524c7f(0x16b),'gjmmh':function(_0x4102eb,_0x5ae5ea){return _0x4102eb||_0x5ae5ea;},'tWbIE':function(_0x5d64b4,_0x2343ce){return _0x5d64b4(_0x2343ce);}},_0x24ef71=_0x3bf7e6['lYZGL'][_0x524c7f(0x151)]('|');let _0x557c65=0x0;while(!![]){switch(_0x24ef71[_0x557c65++]){case'0':_0x3bf7e6[_0x524c7f(0x1bf)](!_0x3d916d,!_0x2647a7)&&logger[_0x524c7f(0x14f)](_0x524c7f(0x166)+_0x3d916d+_0x524c7f(0x130)+_0x2647a7);continue;case'1':process['env'][_0x524c7f(0x1ba)]=JSON[_0x524c7f(0x1b4)](this[_0x524c7f(0x187)]);continue;case'2':this['testFrameworkDetail']={'name':_0x3d916d,'version':{[_0x3d916d]:_0x3bf7e6[_0x524c7f(0x16f)](getFrameworkVersion,_0x3d916d)}};continue;case'3':this[_0x524c7f(0x134)]={'name':_0x2647a7,'version':_0x3bf7e6[_0x524c7f(0x16f)](getFrameworkVersion,_0x2647a7)};continue;case'4':process[_0x524c7f(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x524c7f(0x134)]);continue;}break;}}static[a85_0x3e77df(0x1c8)](_0x92eed6,_0x152abd){return _0x92eed6+':'+_0x152abd;}static['getCurrentInstanceName'](){const _0x192685=a85_0x3e77df;return process[_0x192685(0x179)]+':'+threadId;}static[a85_0x3e77df(0x163)](_0x4169fc){const _0x44f215=a85_0x3e77df;if(_0x4169fc['testContextOptions']&&_0x4169fc[_0x44f215(0x1a1)][_0x44f215(0x1e6)])return!![];return![];}static[a85_0x3e77df(0x1fb)](_0xa5f17){const _0x3d256c=a85_0x3e77df;if(_0xa5f17[_0x3d256c(0x1a1)]&&_0xa5f17[_0x3d256c(0x1a1)]['skipSessionStatus'])return!![];return![];}static[a85_0x3e77df(0x195)](_0x5e73f2){const _0x1295b5=a85_0x3e77df,_0x512a32=new RegExp(TestFrameworkConstants[_0x1295b5(0x12d)]);return _0x512a32[_0x1295b5(0x1c2)](_0x5e73f2);}static[a85_0x3e77df(0x1d4)](_0x6a904b,_0x2addee){const _0x515cc1=a85_0x3e77df,_0x21bb54={};_0x21bb54[_0x515cc1(0x170)]=function(_0x4e74ab,_0x146e99){return _0x4e74ab!==_0x146e99;},_0x21bb54[_0x515cc1(0x125)]=function(_0x15a516,_0x2e9474){return _0x15a516===_0x2e9474;},_0x21bb54[_0x515cc1(0x1c1)]=_0x515cc1(0x147);const _0x6389ed=_0x21bb54;for(const [_0x1b369f,_0x2c12cc]of Object[_0x515cc1(0x1d5)](_0x2addee)){if(_0x6389ed[_0x515cc1(0x170)](_0x2c12cc,null)&&_0x6389ed[_0x515cc1(0x125)](typeof _0x2c12cc,_0x6389ed['Hjfcw'])&&!Array['isArray'](_0x2c12cc))_0x6a904b[_0x1b369f]=this['mergeObject'](_0x6a904b[_0x1b369f]||{},_0x2c12cc);else Array[_0x515cc1(0x1bd)](_0x2c12cc)?_0x6a904b[_0x1b369f]=(_0x6a904b[_0x1b369f]||[])[_0x515cc1(0x1a5)](_0x2c12cc):_0x6a904b[_0x1b369f]=_0x2c12cc;}return _0x6a904b;}}module[a85_0x3e77df(0x19c)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a86_0x12b65e=a86_0x2e34;(function(_0x268ddb,_0x30d107){const _0x34da2c=a86_0x2e34,_0x3d9be3=_0x268ddb();while(!![]){try{const _0x40934d=-parseInt(_0x34da2c(0x271))/0x1*(parseInt(_0x34da2c(0x26a))/0x2)+parseInt(_0x34da2c(0x261))/0x3*(parseInt(_0x34da2c(0x27c))/0x4)+parseInt(_0x34da2c(0x278))/0x5+parseInt(_0x34da2c(0x21b))/0x6*(-parseInt(_0x34da2c(0x213))/0x7)+parseInt(_0x34da2c(0x217))/0x8*(-parseInt(_0x34da2c(0x226))/0x9)+-parseInt(_0x34da2c(0x1f5))/0xa*(parseInt(_0x34da2c(0x20a))/0xb)+parseInt(_0x34da2c(0x24e))/0xc;if(_0x40934d===_0x30d107)break;else _0x3d9be3['push'](_0x3d9be3['shift']());}catch(_0x2b99ce){_0x3d9be3['push'](_0x3d9be3['shift']());}}}(a86_0x1e22,0xa3041));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a86_0x12b65e(0x225)),AutomationFramework=require(a86_0x12b65e(0x233)),TestFrameworkConstants=require(a86_0x12b65e(0x27f)),PlaywrightDriverModule=require(a86_0x12b65e(0x20d)),TestInfo=require(a86_0x12b65e(0x207)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a86_0x12b65e(0x223)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function a86_0x1e22(){const _0x405f36=['toLowerCase','startsWith','VymdM','yohoJ','qZlNT','./framework/automationFramework','getTestDetails','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','MODULE_NAME','iwxjY','.json','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','mtimeMs','WEsHw','ms)\x20','Ftyxz','uXxYs','endsWith','promises','getState','hsVGn','tmpdir','YlNoO','TEST','getBuildTagsRunId','parseCommaSeparatedValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','wRwBV','getTestIdentifierFromTestInfo','yGVXR','entries','18508488jmcUQl','VuHXa','mergeIntoTags','includes','string','mergeBuildLevelTags','WqVVN','name','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','./cliUtils','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','eeFlU','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','getInstance',':jest-','IGEqM','readFileSync','eahVG',',\x20values=','2833773LzsQjH','readdirSync','./state/hookState','isRunning','getTestLevelTags','KEY_TEST_ID','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','CgxQD','326gpiQoO','__workerDetails','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','jcklA','BUILD_TAG_FILE_PREFIX','JaCnI','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','3941ZqOaqv','length','jcWpr','message','addMultipleEntries','GHTSN',',\x20existingTags=','3661495agmAlx','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','LXWKh','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','4kURMri','pid','mergeValues','./framework/constants/testFrameworkConstants','getTestFramework','env','kPVIg','8942840vKrDKQ','getBuildLevelTags','McJzJ','ExZYu','GrSuY','unlinkSync','values','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','currentTest','filter','debug','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','_testInternals','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>',',\x20key=','PQHTX','statSync','POST','./TestInfo','__jestCurrentTestIdentifier','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','11ofUNMS','exports','null','./modules/playwrightDriverModule','testLevelTags','join','isArray','keys','drltL','14CCoceJ','buildLevelTags','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','field_type','4958048eQOEWH','KEY_CUSTOM_TAGS','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','pfPCZ','1185384rhnyyE','setCustomTags','./browserstackCLI','CfdnX','multi_dropdown','okqwB','getBuildTagsFilePath','trim','CustomTagManager','getTrackedInstance','../../helpers/helper','9ZIgcxx','stringify','writeFile','setTestDetails','utf8','JNwKe','\x20->\x20values=','RkzFN'];a86_0x1e22=function(){return _0x405f36;};return a86_0x1e22();}function getBuildTagsRunId(){const _0x114acc=a86_0x12b65e,_0xd30f06={};_0xd30f06[_0x114acc(0x24f)]=function(_0x577636,_0x30227a){return _0x577636===_0x30227a;},_0xd30f06['GrSuY']=_0x114acc(0x20c);const _0x523333=_0xd30f06,_0xbf5a2b=process[_0x114acc(0x1f3)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0xbf5a2b||_0x523333[_0x114acc(0x24f)](_0xbf5a2b,_0x523333[_0x114acc(0x1f9)]))return null;return _0xbf5a2b;}function getBuildTagsFilePath(_0x5d9af6){const _0x2645eb=a86_0x12b65e;return path['join'](os[_0x2645eb(0x244)](),''+BUILD_TAG_FILE_PREFIX+_0x5d9af6+'_'+process[_0x2645eb(0x27d)]+_0x2645eb(0x239));}class CustomTagManager{static [a86_0x12b65e(0x214)]={};static [a86_0x12b65e(0x20e)]={};static['mergeValues'](_0x54f0e4,_0x592f80){return Array['from'](new Set([..._0x54f0e4||[],..._0x592f80||[]]));}static[a86_0x12b65e(0x250)](_0x75bb8c,_0x1bc6db,_0x2aa96b){const _0x2b100d=a86_0x12b65e,_0x55e4c9={};_0x55e4c9[_0x2b100d(0x245)]='multi_dropdown';const _0x3d06e3=_0x55e4c9;if(!_0x75bb8c[_0x1bc6db]){const _0x57842c={};_0x57842c[_0x2b100d(0x216)]=_0x3d06e3[_0x2b100d(0x245)],_0x57842c[_0x2b100d(0x1fb)]=[..._0x2aa96b||[]],_0x75bb8c[_0x1bc6db]=_0x57842c;}else!_0x75bb8c[_0x1bc6db][_0x2b100d(0x216)]&&(_0x75bb8c[_0x1bc6db][_0x2b100d(0x216)]=_0x3d06e3['YlNoO']),!Array[_0x2b100d(0x210)](_0x75bb8c[_0x1bc6db][_0x2b100d(0x1fb)])&&(_0x75bb8c[_0x1bc6db][_0x2b100d(0x1fb)]=[]),_0x75bb8c[_0x1bc6db]['values']=CustomTagManager[_0x2b100d(0x27e)](_0x75bb8c[_0x1bc6db][_0x2b100d(0x1fb)],_0x2aa96b);return _0x75bb8c;}static async[a86_0x12b65e(0x21c)](_0x341b21,_0x4837ab,_0x4b01a0=![]){const _0x3b1f04=a86_0x12b65e,_0x5ad741={'LXWKh':function(_0x25453e,_0x3d5189){return _0x25453e!==_0x3d5189;},'eahVG':_0x3b1f04(0x252),'WEsHw':_0x3b1f04(0x258),'uXxYs':_0x3b1f04(0x209),'qZlNT':function(_0x4f07c7,_0x143f39){return _0x4f07c7===_0x143f39;},'IGEqM':_0x3b1f04(0x270),'CgxQD':_0x3b1f04(0x1fc),'yGVXR':function(_0x33c6a2,_0x323b67){return _0x33c6a2(_0x323b67);},'kPVIg':_0x3b1f04(0x21d),'EKZkH':function(_0x49fc3c){return _0x49fc3c();},'jcklA':_0x3b1f04(0x21f),'JNwKe':function(_0x3afedb,_0x462b65){return _0x3afedb>_0x462b65;},'CfdnX':function(_0x3d6947,_0x24406d){return _0x3d6947(_0x24406d);},'eeFlU':_0x3b1f04(0x25a),'iwxjY':_0x3b1f04(0x25c),'drltL':function(_0x4868bf,_0x52ca3a){return _0x4868bf(_0x52ca3a);},'yohoJ':_0x3b1f04(0x257),'WqVVN':function(_0x338d9c,_0x3a89af){return _0x338d9c===_0x3a89af;},'Ftyxz':'jest','PqooR':_0x3b1f04(0x267),'pfPCZ':_0x3b1f04(0x235),'GHTSN':function(_0x225496,_0x2b8a01){return _0x225496(_0x2b8a01);},'PQHTX':'./state/testFrameworkState','McJzJ':function(_0x36e08d,_0x20cbfb){return _0x36e08d(_0x20cbfb);},'JaCnI':_0x3b1f04(0x263),'XdWfU':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5ad741['LXWKh'](typeof _0x341b21,_0x5ad741[_0x3b1f04(0x25f)])){logger[_0x3b1f04(0x1ff)](_0x5ad741[_0x3b1f04(0x23c)]);return;}if(_0x5ad741[_0x3b1f04(0x27a)](typeof _0x4837ab,_0x5ad741[_0x3b1f04(0x25f)])){logger[_0x3b1f04(0x1ff)](_0x5ad741[_0x3b1f04(0x23f)]);return;}if(_0x5ad741[_0x3b1f04(0x232)](_0x341b21[_0x3b1f04(0x222)](),'')){logger[_0x3b1f04(0x1ff)](_0x5ad741[_0x3b1f04(0x25d)]);return;}if(_0x5ad741[_0x3b1f04(0x232)](_0x4837ab[_0x3b1f04(0x222)](),'')){logger['debug'](_0x5ad741[_0x3b1f04(0x269)]);return;}const _0x3fe69e=helper[_0x3b1f04(0x248)](_0x4837ab);if(_0x4b01a0){const _0x153427=_0x5ad741[_0x3b1f04(0x24c)](require,_0x5ad741[_0x3b1f04(0x1f4)]),_0x6ecf56=_0x153427[_0x3b1f04(0x25b)](),_0x183aa8=_0x6ecf56&&_0x6ecf56['modules'][TestHubModule[_0x3b1f04(0x237)]];if(_0x183aa8){const _0x8afe30=_0x183aa8?.['testhubConfig']?.['toObject']()?.['buildHashedId'];TestInfo['getTestUUID'](_0x8afe30);const _0x4d620d=TestInfo[_0x3b1f04(0x234)](_0x8afe30),_0x220a6a=_0x4d620d[TestFrameworkConstants[_0x3b1f04(0x218)]]||{};CustomTagManager['mergeIntoTags'](_0x220a6a,_0x341b21,_0x3fe69e),_0x4d620d[TestFrameworkConstants[_0x3b1f04(0x218)]]=_0x220a6a,TestInfo[_0x3b1f04(0x229)](_0x8afe30,_0x4d620d);!this[_0x3b1f04(0x214)][_0x8afe30]&&(this['buildLevelTags'][_0x8afe30]={});this['buildLevelTags'][_0x8afe30][_0x341b21]=CustomTagManager[_0x3b1f04(0x27e)](this[_0x3b1f04(0x214)][_0x8afe30][_0x341b21],_0x3fe69e);try{const _0x77fb25=_0x5ad741['EKZkH'](getBuildTagsRunId);if(_0x77fb25){const _0x231c4c={};for(const [_0x245089,_0x5d403b]of Object[_0x3b1f04(0x24d)](this[_0x3b1f04(0x214)][_0x8afe30]||{})){_0x231c4c[_0x245089]={'field_type':_0x5ad741[_0x3b1f04(0x26d)],'values':Array[_0x3b1f04(0x210)](_0x5d403b)?[..._0x5d403b]:[]};}_0x5ad741[_0x3b1f04(0x22b)](Object[_0x3b1f04(0x211)](_0x231c4c)[_0x3b1f04(0x272)],0x0)&&await fs[_0x3b1f04(0x241)][_0x3b1f04(0x228)](_0x5ad741[_0x3b1f04(0x21e)](getBuildTagsFilePath,_0x77fb25),JSON['stringify'](_0x231c4c));}else logger[_0x3b1f04(0x1ff)](_0x5ad741[_0x3b1f04(0x259)]);}catch(_0x2ce178){logger[_0x3b1f04(0x1ff)](_0x3b1f04(0x236)+(_0x2ce178&&_0x2ce178[_0x3b1f04(0x274)]?_0x2ce178[_0x3b1f04(0x274)]:_0x2ce178));}}}else{let _0x5bbbd3;const _0x4b30fa=global[_0x3b1f04(0x208)];let _0x277903=![];if(_0x4b30fa&&_0x4b30fa[_0x3b1f04(0x251)](_0x5ad741[_0x3b1f04(0x238)]))_0x277903=!![],_0x5bbbd3=_0x4b30fa;else try{const _0x57f29e=_0x5ad741[_0x3b1f04(0x212)](require,_0x5ad741[_0x3b1f04(0x231)]),_0x3e473c=_0x5ad741[_0x3b1f04(0x212)](require,_0x5ad741['kPVIg']);if(_0x3e473c[_0x3b1f04(0x25b)]()[_0x3b1f04(0x264)]()){const _0x3a9cfe=_0x57f29e['getTestFrameworkDetail']();if(_0x5ad741[_0x3b1f04(0x254)](_0x3a9cfe?.[_0x3b1f04(0x255)]?.[_0x3b1f04(0x22e)](),_0x5ad741[_0x3b1f04(0x23e)])){const _0x4b177e=AutomationFramework[_0x3b1f04(0x224)]();_0x5bbbd3=AutomationFramework[_0x3b1f04(0x242)](_0x4b177e,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x5bbbd3&&_0x5bbbd3[_0x3b1f04(0x251)](_0x5ad741[_0x3b1f04(0x238)])&&(_0x277903=!![]);}}}catch(_0xc33eaa){logger[_0x3b1f04(0x1ff)](_0x3b1f04(0x26c)+_0xc33eaa);}if(_0x277903){if(!_0x5bbbd3)throw new Error(_0x5ad741['PqooR']);const _0x3f6996=_0x5ad741[_0x3b1f04(0x212)](require,_0x5ad741[_0x3b1f04(0x1f4)]),_0x4fa341=_0x3f6996['getInstance']()[_0x3b1f04(0x280)]();if(!_0x4fa341)throw new Error(_0x5ad741[_0x3b1f04(0x21a)]);const _0x630429=_0x5ad741[_0x3b1f04(0x276)](require,_0x5ad741[_0x3b1f04(0x204)]),_0x1911d0=_0x5ad741[_0x3b1f04(0x1f7)](require,_0x5ad741[_0x3b1f04(0x26f)]),_0x48432a=_0x4fa341['resolveInstance'](_0x630429[_0x3b1f04(0x246)],_0x1911d0[_0x3b1f04(0x206)]);if(!_0x48432a)throw new Error(_0x5ad741['XdWfU']);const _0x3bbf1b=_0x48432a['getAllData']()['get'](_0x5bbbd3)||{},_0x4d0414=_0x3bbf1b[TestFrameworkConstants[_0x3b1f04(0x218)]]||{};logger[_0x3b1f04(0x1ff)](_0x3b1f04(0x219)+_0x5bbbd3+_0x3b1f04(0x203)+_0x341b21+_0x3b1f04(0x260)+JSON[_0x3b1f04(0x227)](_0x3fe69e)+_0x3b1f04(0x277)+JSON[_0x3b1f04(0x227)](_0x4d0414)),CustomTagManager['mergeIntoTags'](_0x4d0414,_0x341b21,_0x3fe69e),logger[_0x3b1f04(0x1ff)](_0x3b1f04(0x23a)+_0x341b21+_0x3b1f04(0x22c)+JSON[_0x3b1f04(0x227)](_0x4d0414[_0x341b21][_0x3b1f04(0x1fb)]));const _0x284ad3={[TestFrameworkConstants[_0x3b1f04(0x218)]]:_0x4d0414},_0x26e203={};_0x26e203[_0x5bbbd3]=_0x284ad3,_0x48432a[_0x3b1f04(0x275)](_0x26e203),logger['debug'](_0x3b1f04(0x215)+_0x5bbbd3+',\x20finalTags='+JSON[_0x3b1f04(0x227)](_0x4d0414)),!this[_0x3b1f04(0x20e)][_0x5bbbd3]&&(this[_0x3b1f04(0x20e)][_0x5bbbd3]={}),this[_0x3b1f04(0x20e)][_0x5bbbd3][_0x341b21]=CustomTagManager[_0x3b1f04(0x27e)](this[_0x3b1f04(0x20e)][_0x5bbbd3][_0x341b21],_0x3fe69e);}else{const _0x4e068e=global[_0x3b1f04(0x26b)]?.[_0x3b1f04(0x1fd)]?.['testInfo'];if(!_0x4e068e){const _0x549407=AutomationFramework[_0x3b1f04(0x224)]();_0x5bbbd3=AutomationFramework[_0x3b1f04(0x242)](_0x549407,PlaywrightDriverModule[_0x3b1f04(0x266)],'');}else _0x5bbbd3=TestInfo[_0x3b1f04(0x24b)](_0x4e068e,_0x4e068e['retry']);const _0x39c678=TestInfo['getTestDetails'](_0x5bbbd3),_0x1b1de6=_0x39c678[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x3b1f04(0x250)](_0x1b1de6,_0x341b21,_0x3fe69e),_0x39c678[TestFrameworkConstants[_0x3b1f04(0x218)]]=_0x1b1de6,TestInfo[_0x3b1f04(0x229)](_0x5bbbd3,_0x39c678),!this[_0x3b1f04(0x20e)][_0x5bbbd3]&&(this[_0x3b1f04(0x20e)][_0x5bbbd3]={}),this['testLevelTags'][_0x5bbbd3][_0x341b21]=CustomTagManager['mergeValues'](this[_0x3b1f04(0x20e)][_0x5bbbd3][_0x341b21],_0x3fe69e);}}}static[a86_0x12b65e(0x1f6)](){const _0x4f36f3={...this['buildLevelTags']};return _0x4f36f3;}static[a86_0x12b65e(0x265)](){const _0x1b9eb6=a86_0x12b65e,_0xe504b1={...this[_0x1b9eb6(0x20e)]};return _0xe504b1;}static['clearTags'](){const _0xcc950b=a86_0x12b65e;this[_0xcc950b(0x214)]={},this[_0xcc950b(0x20e)]={};}static[a86_0x12b65e(0x253)](_0x48f333,_0x20f79b){const _0x3dde80=a86_0x12b65e,_0x479ff2={};_0x479ff2['hsVGn']=function(_0x3142e6,_0x146240){return _0x3142e6||_0x146240;};const _0x4f1006=_0x479ff2;if(!_0x48f333)return;!this['buildLevelTags'][_0x48f333]&&(this[_0x3dde80(0x214)][_0x48f333]={});for(const [_0x48dd18,_0x380d93]of Object['entries'](_0x4f1006[_0x3dde80(0x243)](_0x20f79b,{}))){if(!_0x380d93||!Array[_0x3dde80(0x210)](_0x380d93[_0x3dde80(0x1fb)]))continue;this[_0x3dde80(0x214)][_0x48f333][_0x48dd18]=CustomTagManager['mergeValues'](this[_0x3dde80(0x214)][_0x48f333][_0x48dd18],_0x380d93[_0x3dde80(0x1fb)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x321b,_0x40b42d){const _0x3a8f2f=a86_0x12b65e,_0x3f4422={};_0x3f4422['jcWpr']=_0x3a8f2f(0x279),_0x3f4422[_0x3a8f2f(0x24a)]=function(_0x5349ec,_0x27e9f2){return _0x5349ec*_0x27e9f2;},_0x3f4422[_0x3a8f2f(0x1f8)]=function(_0x2ef660,_0x577c9b){return _0x2ef660*_0x577c9b;},_0x3f4422[_0x3a8f2f(0x22d)]=function(_0x29fbff,_0x555690){return _0x29fbff>_0x555690;},_0x3f4422[_0x3a8f2f(0x230)]=function(_0x474377,_0x44dedd){return _0x474377-_0x44dedd;},_0x3f4422['okqwB']=_0x3a8f2f(0x22a);const _0x4123e8=_0x3f4422;if(!_0x321b)return logger['debug'](_0x4123e8[_0x3a8f2f(0x273)]),0x0;let _0x382fca;try{_0x382fca=os[_0x3a8f2f(0x244)]();}catch(_0x2243a5){return logger[_0x3a8f2f(0x1ff)](_0x3a8f2f(0x249)+_0x2243a5),0x0;}let _0x673b85;try{_0x673b85=fs[_0x3a8f2f(0x262)](_0x382fca);}catch(_0x56ac43){return logger['debug'](_0x3a8f2f(0x268)+_0x56ac43),0x0;}const _0x591f1b=''+BUILD_TAG_FILE_PREFIX+_0x321b+'_',_0x25bd93=_0x673b85[_0x3a8f2f(0x1fe)](_0x387d79=>_0x387d79[_0x3a8f2f(0x22f)](_0x591f1b)&&_0x387d79[_0x3a8f2f(0x240)]('.json')),_0x2261ce=_0x4123e8['wRwBV'](_0x4123e8[_0x3a8f2f(0x24a)](_0x4123e8[_0x3a8f2f(0x1f8)](0x2,0x3c),0x3c),0x3e8);let _0x5d313f=0x0;for(const _0x26f4a4 of _0x25bd93){const _0x4d242e=path[_0x3a8f2f(0x20f)](_0x382fca,_0x26f4a4);try{const _0x17df25=fs[_0x3a8f2f(0x205)](_0x4d242e);if(_0x4123e8['RkzFN'](_0x4123e8[_0x3a8f2f(0x230)](Date['now'](),_0x17df25[_0x3a8f2f(0x23b)]),_0x2261ce)){logger[_0x3a8f2f(0x1ff)](_0x3a8f2f(0x202)+_0x2261ce+_0x3a8f2f(0x23d)+_0x26f4a4);try{fs[_0x3a8f2f(0x1fa)](_0x4d242e);}catch(_0x2ee6d1){logger[_0x3a8f2f(0x1ff)](_0x3a8f2f(0x200)+_0x26f4a4+':\x20'+(_0x2ee6d1&&_0x2ee6d1[_0x3a8f2f(0x274)]?_0x2ee6d1[_0x3a8f2f(0x274)]:_0x2ee6d1));}continue;}const _0x3b893d=fs[_0x3a8f2f(0x25e)](_0x4d242e,_0x4123e8[_0x3a8f2f(0x220)]),_0x3e54bd=JSON['parse'](_0x3b893d);this[_0x3a8f2f(0x253)](_0x40b42d,_0x3e54bd),_0x5d313f+=0x1;}catch(_0x265a10){logger[_0x3a8f2f(0x1ff)](_0x3a8f2f(0x27b)+_0x26f4a4+':\x20'+(_0x265a10&&_0x265a10[_0x3a8f2f(0x274)]?_0x265a10['message']:_0x265a10));}try{fs[_0x3a8f2f(0x1fa)](_0x4d242e);}catch(_0x29532a){logger['debug'](_0x3a8f2f(0x256)+_0x26f4a4+':\x20'+(_0x29532a&&_0x29532a[_0x3a8f2f(0x274)]?_0x29532a[_0x3a8f2f(0x274)]:_0x29532a));}}return _0x5d313f;}}const a86_0x56f6a5={};function a86_0x2e34(_0x39b989,_0x265088){const _0x1e224b=a86_0x1e22();return a86_0x2e34=function(_0x2e3443,_0x31be4d){_0x2e3443=_0x2e3443-0x1f3;let _0x5adc22=_0x1e224b[_0x2e3443];return _0x5adc22;},a86_0x2e34(_0x39b989,_0x265088);}a86_0x56f6a5[a86_0x12b65e(0x247)]=getBuildTagsRunId,a86_0x56f6a5[a86_0x12b65e(0x221)]=getBuildTagsFilePath,a86_0x56f6a5[a86_0x12b65e(0x26e)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x12b65e(0x201)]=a86_0x56f6a5,module[a86_0x12b65e(0x20b)]=CustomTagManager;
1
+ 'use strict';function a86_0x3fed(_0x24dc2a,_0x3eddf9){const _0x319625=a86_0x3196();return a86_0x3fed=function(_0x3feda3,_0x302715){_0x3feda3=_0x3feda3-0xe2;let _0x4cc281=_0x319625[_0x3feda3];return _0x4cc281;},a86_0x3fed(_0x24dc2a,_0x3eddf9);}function a86_0x3196(){const _0x26438b=['CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getInstance','RBtSr','./browserstackCLI','debug','./state/testFrameworkState','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','getTestLevelTags','GbIyV','now','KEY_TEST_ID','vHeAE','join','keys','zWbeg','MODULE_NAME','testLevelTags','env','mEWJN','statSync','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','./state/hookState','mergeIntoTags','mergeBuildLevelTags','./cliUtils','getTestDetails','QnVDa','ieQIC','endsWith','parse','unlinkSync','readFileSync','VkqvD','currentTest','./modules/playwrightDriverModule','dzFCL','retry','isArray','values','39842bIovOr','stringify','DvOus','toLowerCase','.json','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','./framework/automationFramework','15nPpFhv','fqkqV','KEY_CUSTOM_TAGS','filter','\x20->\x20values=','getBuildLevelTags','rlLsW','multi_dropdown',',\x20finalTags=','TEST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','from','setCustomTags','QNBvQ','nPyzR','getBuildTagsFilePath','tmpdir','readdirSync','testhubConfig','sFlCn','laJSp','CustomTagManager','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','3866390LKvVFX','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','mtimeMs','get','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','path','bstack_build_tags_','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','qdKeT','vvFat','lklVZ','../../helpers/classLogger','mergeValues','startsWith','4993268EWpjME','13131UJzJtm','./TestInfo','jest','getState','HOKov','length','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','includes','uDSqX','qOFIE','parseCommaSeparatedValues','rLIUE','getTestFrameworkDetail','clearTags','isRunning','null','qMPIg','string','getTestFramework','entries','buildLevelTags','GBgvm','modules','trim','toObject','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','ms)\x20','fjkom','ToKrv','637734HAGuDL','setTestDetails',',\x20existingTags=','pid','resolveInstance','46120xMLqpq','oNWQW','bgCBO','./modules/testhubModule','aggregateBuildLevelTagsFromTmp','zQacB','11336QoEgae','sbNqL','tofSS','KmCqO','getTestUUID','__workerDetails',',\x20values=','writeFile','exports','field_type','getTrackedInstance','624156bvwOeN','getBuildTagsRunId','getTestIdentifierFromTestInfo','message'];a86_0x3196=function(){return _0x26438b;};return a86_0x3196();}const a86_0x39d494=a86_0x3fed;(function(_0x3bdab6,_0xb6fc6a){const _0x365dae=a86_0x3fed,_0x1eeac8=_0x3bdab6();while(!![]){try{const _0x4b345c=-parseInt(_0x365dae(0x15d))/0x1+parseInt(_0x365dae(0x120))/0x2*(-parseInt(_0x365dae(0x164))/0x3)+parseInt(_0x365dae(0x131))/0x4+-parseInt(_0x365dae(0xed))/0x5+-parseInt(_0x365dae(0x11b))/0x6+-parseInt(_0x365dae(0xfb))/0x7+-parseInt(_0x365dae(0x126))/0x8*(-parseInt(_0x365dae(0xfc))/0x9);if(_0x4b345c===_0xb6fc6a)break;else _0x1eeac8['push'](_0x1eeac8['shift']());}catch(_0x41ce20){_0x1eeac8['push'](_0x1eeac8['shift']());}}}(a86_0x3196,0x74111));const fs=require('fs'),os=require('os'),path=require(a86_0x39d494(0xf2)),helper=require('../../helpers/helper'),AutomationFramework=require(a86_0x39d494(0x163)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a86_0x39d494(0x158)),TestInfo=require(a86_0x39d494(0xfd)),TestHubModule=require(a86_0x39d494(0x123)),{createClassLogger}=require(a86_0x39d494(0xf8)),logger=createClassLogger(a86_0x39d494(0xeb)),BUILD_TAG_FILE_PREFIX=a86_0x39d494(0xf3);function getBuildTagsRunId(){const _0x448708=a86_0x39d494,_0x5bba3f={};_0x5bba3f[_0x448708(0xea)]=function(_0x495efd,_0xb101a2){return _0x495efd===_0xb101a2;},_0x5bba3f[_0x448708(0x156)]=_0x448708(0x10c);const _0x18334e=_0x5bba3f,_0x436c95=process[_0x448708(0x147)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x436c95||_0x18334e['laJSp'](_0x436c95,_0x18334e[_0x448708(0x156)]))return null;return _0x436c95;}function getBuildTagsFilePath(_0x3c3077){const _0x46dfc6=a86_0x39d494;return path['join'](os[_0x46dfc6(0xe6)](),''+BUILD_TAG_FILE_PREFIX+_0x3c3077+'_'+process[_0x46dfc6(0x11e)]+_0x46dfc6(0x161));}class CustomTagManager{static [a86_0x39d494(0x111)]={};static [a86_0x39d494(0x146)]={};static['mergeValues'](_0x571681,_0x35d266){const _0x670790=a86_0x39d494;return Array[_0x670790(0x16f)](new Set([..._0x571681||[],..._0x35d266||[]]));}static[a86_0x39d494(0x14c)](_0x550640,_0x32c05a,_0x4955ec){const _0x3b4b09=a86_0x39d494,_0x3456c0={};_0x3456c0[_0x3b4b09(0x138)]=_0x3b4b09(0x16b);const _0x46764e=_0x3456c0;if(!_0x550640[_0x32c05a]){const _0x402040={};_0x402040[_0x3b4b09(0x12f)]=_0x46764e[_0x3b4b09(0x138)],_0x402040[_0x3b4b09(0x15c)]=[..._0x4955ec||[]],_0x550640[_0x32c05a]=_0x402040;}else!_0x550640[_0x32c05a][_0x3b4b09(0x12f)]&&(_0x550640[_0x32c05a][_0x3b4b09(0x12f)]=_0x46764e[_0x3b4b09(0x138)]),!Array[_0x3b4b09(0x15b)](_0x550640[_0x32c05a]['values'])&&(_0x550640[_0x32c05a][_0x3b4b09(0x15c)]=[]),_0x550640[_0x32c05a]['values']=CustomTagManager[_0x3b4b09(0xf9)](_0x550640[_0x32c05a][_0x3b4b09(0x15c)],_0x4955ec);return _0x550640;}static async[a86_0x39d494(0xe2)](_0x4a545d,_0xc00d40,_0x3fb23d=![]){const _0x1830bf=a86_0x39d494,_0x194efd={'tofSS':function(_0x1ae171,_0x12463a){return _0x1ae171!==_0x12463a;},'qdKeT':_0x1830bf(0x10e),'ieQIC':_0x1830bf(0x136),'zWbeg':function(_0x176169,_0xbfb21f){return _0x176169!==_0xbfb21f;},'HOKov':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','dieUs':function(_0x2406ff,_0x7fda09){return _0x2406ff===_0x7fda09;},'qOFIE':_0x1830bf(0x116),'zQacB':function(_0x183cb9,_0xd8e555){return _0x183cb9===_0xd8e555;},'jHFWm':_0x1830bf(0x162),'lklVZ':function(_0x37b131,_0x580cc2){return _0x37b131(_0x580cc2);},'ToKrv':_0x1830bf(0x139),'rlLsW':function(_0x4c7eeb){return _0x4c7eeb();},'fjkom':_0x1830bf(0x16b),'fqkqV':function(_0x105399,_0x4b6879){return _0x105399>_0x4b6879;},'qMPIg':_0x1830bf(0x102),'rLIUE':':jest-','bgCBO':function(_0xb3109c,_0x250416){return _0xb3109c(_0x250416);},'QNBvQ':_0x1830bf(0x14e),'YYBLm':function(_0x273063,_0x563bef){return _0x273063===_0x563bef;},'vvFat':_0x1830bf(0xfe),'uDSqX':_0x1830bf(0x14a),'nPyzR':function(_0xdbc297,_0x286dc2){return _0xdbc297(_0x286dc2);},'KmCqO':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','vHeAE':function(_0x38d985,_0x4c0411){return _0x38d985(_0x4c0411);},'mEWJN':_0x1830bf(0x13b),'DvOus':_0x1830bf(0x14b),'GbIyV':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x194efd[_0x1830bf(0x128)](typeof _0x4a545d,_0x194efd[_0x1830bf(0xf5)])){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x151)]);return;}if(_0x194efd[_0x1830bf(0x144)](typeof _0xc00d40,_0x194efd[_0x1830bf(0xf5)])){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x100)]);return;}if(_0x194efd['dieUs'](_0x4a545d[_0x1830bf(0x114)](),'')){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x106)]);return;}if(_0x194efd[_0x1830bf(0x125)](_0xc00d40[_0x1830bf(0x114)](),'')){logger[_0x1830bf(0x13a)](_0x194efd['jHFWm']);return;}const _0x1bcab9=helper[_0x1830bf(0x107)](_0xc00d40);if(_0x3fb23d){const _0x1dd944=_0x194efd[_0x1830bf(0xf7)](require,_0x194efd[_0x1830bf(0x11a)]),_0x48b9a9=_0x1dd944[_0x1830bf(0x137)](),_0x20b74f=_0x48b9a9&&_0x48b9a9[_0x1830bf(0x113)][TestHubModule[_0x1830bf(0x145)]];if(_0x20b74f){const _0x4ff3a1=_0x20b74f?.[_0x1830bf(0xe8)]?.[_0x1830bf(0x115)]()?.['buildHashedId'];TestInfo[_0x1830bf(0x12a)](_0x4ff3a1);const _0x1a7d3e=TestInfo[_0x1830bf(0x14f)](_0x4ff3a1),_0x313cef=_0x1a7d3e[TestFrameworkConstants[_0x1830bf(0x166)]]||{};CustomTagManager[_0x1830bf(0x14c)](_0x313cef,_0x4a545d,_0x1bcab9),_0x1a7d3e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x313cef,TestInfo[_0x1830bf(0x11c)](_0x4ff3a1,_0x1a7d3e);!this[_0x1830bf(0x111)][_0x4ff3a1]&&(this[_0x1830bf(0x111)][_0x4ff3a1]={});this[_0x1830bf(0x111)][_0x4ff3a1][_0x4a545d]=CustomTagManager[_0x1830bf(0xf9)](this[_0x1830bf(0x111)][_0x4ff3a1][_0x4a545d],_0x1bcab9);try{const _0x27f836=_0x194efd[_0x1830bf(0x16a)](getBuildTagsRunId);if(_0x27f836){const _0x39d65f={};for(const [_0xa2dcfd,_0x53e0c7]of Object[_0x1830bf(0x110)](this[_0x1830bf(0x111)][_0x4ff3a1]||{})){_0x39d65f[_0xa2dcfd]={'field_type':_0x194efd[_0x1830bf(0x119)],'values':Array['isArray'](_0x53e0c7)?[..._0x53e0c7]:[]};}_0x194efd[_0x1830bf(0x165)](Object[_0x1830bf(0x143)](_0x39d65f)[_0x1830bf(0x101)],0x0)&&await fs['promises'][_0x1830bf(0x12d)](_0x194efd[_0x1830bf(0xf7)](getBuildTagsFilePath,_0x27f836),JSON[_0x1830bf(0x15e)](_0x39d65f));}else logger['debug'](_0x194efd[_0x1830bf(0x10d)]);}catch(_0x5aa15c){logger[_0x1830bf(0x13a)](_0x1830bf(0x103)+(_0x5aa15c&&_0x5aa15c[_0x1830bf(0x134)]?_0x5aa15c[_0x1830bf(0x134)]:_0x5aa15c));}}}else{let _0x345cf2;const _0x1537c4=global['__jestCurrentTestIdentifier'];let _0x160442=![];if(_0x1537c4&&_0x1537c4['includes'](_0x194efd[_0x1830bf(0x108)]))_0x160442=!![],_0x345cf2=_0x1537c4;else try{const _0x4a7bea=_0x194efd[_0x1830bf(0x122)](require,_0x194efd[_0x1830bf(0xe3)]),_0xb3ec6d=_0x194efd[_0x1830bf(0x122)](require,_0x194efd[_0x1830bf(0x11a)]);if(_0xb3ec6d['getInstance']()[_0x1830bf(0x10b)]()){const _0x4f77e1=_0x4a7bea[_0x1830bf(0x109)]();if(_0x194efd['YYBLm'](_0x4f77e1?.['name']?.[_0x1830bf(0x160)](),_0x194efd[_0x1830bf(0xf6)])){const _0x10b3bb=AutomationFramework[_0x1830bf(0x130)]();_0x345cf2=AutomationFramework[_0x1830bf(0xff)](_0x10b3bb,PlaywrightDriverModule[_0x1830bf(0x140)],''),_0x345cf2&&_0x345cf2[_0x1830bf(0x104)](_0x194efd[_0x1830bf(0x108)])&&(_0x160442=!![]);}}}catch(_0x472438){logger[_0x1830bf(0x13a)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x472438);}if(_0x160442){if(!_0x345cf2)throw new Error(_0x194efd[_0x1830bf(0x105)]);const _0x41d893=_0x194efd[_0x1830bf(0xe4)](require,_0x194efd[_0x1830bf(0x11a)]),_0x4f08fd=_0x41d893[_0x1830bf(0x137)]()[_0x1830bf(0x10f)]();if(!_0x4f08fd)throw new Error(_0x194efd[_0x1830bf(0x129)]);const _0xae93cb=_0x194efd[_0x1830bf(0x141)](require,_0x194efd[_0x1830bf(0x148)]),_0x23383c=_0x194efd[_0x1830bf(0xe4)](require,_0x194efd[_0x1830bf(0x15f)]),_0x2e4aeb=_0x4f08fd[_0x1830bf(0x11f)](_0xae93cb[_0x1830bf(0x16d)],_0x23383c['POST']);if(!_0x2e4aeb)throw new Error(_0x194efd[_0x1830bf(0x13e)]);const _0x47219e=_0x2e4aeb['getAllData']()[_0x1830bf(0xf0)](_0x345cf2)||{},_0xd18e6c=_0x47219e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x1830bf(0x13a)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x345cf2+',\x20key='+_0x4a545d+_0x1830bf(0x12c)+JSON[_0x1830bf(0x15e)](_0x1bcab9)+_0x1830bf(0x11d)+JSON[_0x1830bf(0x15e)](_0xd18e6c)),CustomTagManager[_0x1830bf(0x14c)](_0xd18e6c,_0x4a545d,_0x1bcab9),logger[_0x1830bf(0x13a)](_0x1830bf(0x13c)+_0x4a545d+_0x1830bf(0x168)+JSON[_0x1830bf(0x15e)](_0xd18e6c[_0x4a545d][_0x1830bf(0x15c)]));const _0x4ba921={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xd18e6c},_0x2c1219={};_0x2c1219[_0x345cf2]=_0x4ba921,_0x2e4aeb['addMultipleEntries'](_0x2c1219),logger[_0x1830bf(0x13a)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x345cf2+_0x1830bf(0x16c)+JSON['stringify'](_0xd18e6c)),!this[_0x1830bf(0x146)][_0x345cf2]&&(this['testLevelTags'][_0x345cf2]={}),this[_0x1830bf(0x146)][_0x345cf2][_0x4a545d]=CustomTagManager[_0x1830bf(0xf9)](this[_0x1830bf(0x146)][_0x345cf2][_0x4a545d],_0x1bcab9);}else{const _0x46a907=global[_0x1830bf(0x12b)]?.[_0x1830bf(0x157)]?.['testInfo'];if(!_0x46a907){const _0xf8ad29=AutomationFramework[_0x1830bf(0x130)]();_0x345cf2=AutomationFramework[_0x1830bf(0xff)](_0xf8ad29,PlaywrightDriverModule[_0x1830bf(0x140)],'');}else _0x345cf2=TestInfo[_0x1830bf(0x133)](_0x46a907,_0x46a907[_0x1830bf(0x15a)]);const _0x4e6a49=TestInfo[_0x1830bf(0x14f)](_0x345cf2),_0x40d790=_0x4e6a49[TestFrameworkConstants[_0x1830bf(0x166)]]||{};CustomTagManager['mergeIntoTags'](_0x40d790,_0x4a545d,_0x1bcab9),_0x4e6a49[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x40d790,TestInfo[_0x1830bf(0x11c)](_0x345cf2,_0x4e6a49),!this[_0x1830bf(0x146)][_0x345cf2]&&(this['testLevelTags'][_0x345cf2]={}),this['testLevelTags'][_0x345cf2][_0x4a545d]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x345cf2][_0x4a545d],_0x1bcab9);}}}static[a86_0x39d494(0x169)](){const _0x608a47=a86_0x39d494,_0x1494a7={...this[_0x608a47(0x111)]};return _0x1494a7;}static[a86_0x39d494(0x13d)](){const _0xee6152=a86_0x39d494,_0x46d658={...this[_0xee6152(0x146)]};return _0x46d658;}static[a86_0x39d494(0x10a)](){const _0x115073=a86_0x39d494;this[_0x115073(0x111)]={},this[_0x115073(0x146)]={};}static[a86_0x39d494(0x14d)](_0x52bae7,_0x239713){const _0x1885b0=a86_0x39d494,_0x3efe13={};_0x3efe13['sbNqL']=function(_0x166a1b,_0x4a9bb6){return _0x166a1b||_0x4a9bb6;};const _0x45a20b=_0x3efe13;if(!_0x52bae7)return;!this[_0x1885b0(0x111)][_0x52bae7]&&(this['buildLevelTags'][_0x52bae7]={});for(const [_0x4e931c,_0x5cecae]of Object['entries'](_0x45a20b[_0x1885b0(0x127)](_0x239713,{}))){if(!_0x5cecae||!Array[_0x1885b0(0x15b)](_0x5cecae['values']))continue;this[_0x1885b0(0x111)][_0x52bae7][_0x4e931c]=CustomTagManager[_0x1885b0(0xf9)](this[_0x1885b0(0x111)][_0x52bae7][_0x4e931c],_0x5cecae[_0x1885b0(0x15c)]);}}static[a86_0x39d494(0x124)](_0xa6f736,_0x10b454){const _0x2d6513=a86_0x39d494,_0x4ebf08={};_0x4ebf08[_0x2d6513(0x159)]=_0x2d6513(0xf4),_0x4ebf08[_0x2d6513(0x150)]=function(_0x56f3ca,_0x9db9c3){return _0x56f3ca*_0x9db9c3;},_0x4ebf08[_0x2d6513(0xe9)]=function(_0xd7d3b5,_0x3a18e8){return _0xd7d3b5>_0x3a18e8;},_0x4ebf08[_0x2d6513(0x112)]=function(_0x426f3d,_0x2a3617){return _0x426f3d-_0x2a3617;},_0x4ebf08[_0x2d6513(0x121)]='utf8';const _0x4dda9f=_0x4ebf08;if(!_0xa6f736)return logger[_0x2d6513(0x13a)](_0x4dda9f[_0x2d6513(0x159)]),0x0;let _0x784056;try{_0x784056=os[_0x2d6513(0xe6)]();}catch(_0x5815f6){return logger['debug'](_0x2d6513(0xf1)+_0x5815f6),0x0;}let _0x2023a9;try{_0x2023a9=fs[_0x2d6513(0xe7)](_0x784056);}catch(_0x1c6439){return logger['debug'](_0x2d6513(0xee)+_0x1c6439),0x0;}const _0x4be248=''+BUILD_TAG_FILE_PREFIX+_0xa6f736+'_',_0xbc9c0f=_0x2023a9[_0x2d6513(0x167)](_0xd7b2de=>_0xd7b2de[_0x2d6513(0xfa)](_0x4be248)&&_0xd7b2de[_0x2d6513(0x152)](_0x2d6513(0x161))),_0x3c9bc7=_0x4dda9f[_0x2d6513(0x150)](_0x4dda9f[_0x2d6513(0x150)](_0x4dda9f[_0x2d6513(0x150)](0x2,0x3c),0x3c),0x3e8);let _0x41d216=0x0;for(const _0x302ec9 of _0xbc9c0f){const _0x589377=path[_0x2d6513(0x142)](_0x784056,_0x302ec9);try{const _0x551a87=fs[_0x2d6513(0x149)](_0x589377);if(_0x4dda9f[_0x2d6513(0xe9)](_0x4dda9f[_0x2d6513(0x112)](Date[_0x2d6513(0x13f)](),_0x551a87[_0x2d6513(0xef)]),_0x3c9bc7)){logger['debug'](_0x2d6513(0x117)+_0x3c9bc7+_0x2d6513(0x118)+_0x302ec9);try{fs[_0x2d6513(0x154)](_0x589377);}catch(_0x5633df){logger['debug'](_0x2d6513(0x135)+_0x302ec9+':\x20'+(_0x5633df&&_0x5633df[_0x2d6513(0x134)]?_0x5633df['message']:_0x5633df));}continue;}const _0x296b20=fs[_0x2d6513(0x155)](_0x589377,_0x4dda9f[_0x2d6513(0x121)]),_0x71aecd=JSON[_0x2d6513(0x153)](_0x296b20);this[_0x2d6513(0x14d)](_0x10b454,_0x71aecd),_0x41d216+=0x1;}catch(_0x10c7f4){logger[_0x2d6513(0x13a)](_0x2d6513(0xec)+_0x302ec9+':\x20'+(_0x10c7f4&&_0x10c7f4[_0x2d6513(0x134)]?_0x10c7f4[_0x2d6513(0x134)]:_0x10c7f4));}try{fs['unlinkSync'](_0x589377);}catch(_0x42b64a){logger[_0x2d6513(0x13a)](_0x2d6513(0x16e)+_0x302ec9+':\x20'+(_0x42b64a&&_0x42b64a['message']?_0x42b64a[_0x2d6513(0x134)]:_0x42b64a));}}return _0x41d216;}}const a86_0x56f5f5={};a86_0x56f5f5[a86_0x39d494(0x132)]=getBuildTagsRunId,a86_0x56f5f5[a86_0x39d494(0xe5)]=getBuildTagsFilePath,a86_0x56f5f5['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x56f5f5,module[a86_0x39d494(0x12e)]=CustomTagManager;
@@ -1 +1 @@
1
- const a87_0x3f241f=a87_0x345b;(function(_0x111095,_0x3f9363){const _0x35408e=a87_0x345b,_0x1ffc13=_0x111095();while(!![]){try{const _0x373f7d=parseInt(_0x35408e(0x1d8))/0x1+-parseInt(_0x35408e(0x1cf))/0x2+-parseInt(_0x35408e(0x1d6))/0x3+parseInt(_0x35408e(0x1d3))/0x4+-parseInt(_0x35408e(0x1d5))/0x5*(-parseInt(_0x35408e(0x1cc))/0x6)+parseInt(_0x35408e(0x1cd))/0x7+-parseInt(_0x35408e(0x1d7))/0x8;if(_0x373f7d===_0x3f9363)break;else _0x1ffc13['push'](_0x1ffc13['shift']());}catch(_0x4e8a15){_0x1ffc13['push'](_0x1ffc13['shift']());}}}(a87_0x19af,0xd1a23));const {createClassLogger}=require(a87_0x3f241f(0x1d9));function a87_0x345b(_0x455549,_0x2218f6){const _0x19afc7=a87_0x19af();return a87_0x345b=function(_0x345b26,_0x5a7bf8){_0x345b26=_0x345b26-0x1ca;let _0x1d0b9a=_0x19afc7[_0x345b26];return _0x1d0b9a;},a87_0x345b(_0x455549,_0x2218f6);}class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a87_0x3f241f(0x1cb)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x3f241f(0x1d0)](_0xe4cfbb,_0x9e0807){const _0x592a3a=a87_0x3f241f;!this['observers'][_0xe4cfbb]&&(this[_0x592a3a(0x1ce)][_0xe4cfbb]=[]),this[_0x592a3a(0x1ce)][_0xe4cfbb][_0x592a3a(0x1d4)](_0x9e0807);}async['notifyObserver'](_0x677d6c,_0xd33dc4){const _0x497a95=a87_0x3f241f,_0xcb18e4={'HuINS':function(_0x6dfed7,_0x38b0f6){return _0x6dfed7(_0x38b0f6);}};if(this[_0x497a95(0x1ce)][_0x677d6c]){for(const _0xf0efb8 of this[_0x497a95(0x1ce)][_0x677d6c]){await _0xcb18e4[_0x497a95(0x1ca)](_0xf0efb8,_0xd33dc4);}return;}}}const eventDispatcher=EventDispatcher[a87_0x3f241f(0x1cb)]();function a87_0x19af(){const _0x53263c=['HuINS','getInstance','8653038IrJpcA','1656739syQTHd','observers','2261098YzhtIt','registerObserver','exports','freeze','4780612xYZGMA','push','5fLJlLu','3845427kXRuIb','10167704rKWRmK','1667977alGwnj','../../helpers/classLogger.js'];a87_0x19af=function(){return _0x53263c;};return a87_0x19af();}Object[a87_0x3f241f(0x1d2)](eventDispatcher),module[a87_0x3f241f(0x1d1)]=eventDispatcher;
1
+ const a87_0x3a36eb=a87_0x350c;(function(_0x24df51,_0x3dc5e3){const _0x1ca2f1=a87_0x350c,_0x3aaa76=_0x24df51();while(!![]){try{const _0x46ce4b=parseInt(_0x1ca2f1(0x7c))/0x1+-parseInt(_0x1ca2f1(0x81))/0x2*(parseInt(_0x1ca2f1(0x8a))/0x3)+-parseInt(_0x1ca2f1(0x88))/0x4+parseInt(_0x1ca2f1(0x85))/0x5+parseInt(_0x1ca2f1(0x80))/0x6*(-parseInt(_0x1ca2f1(0x7b))/0x7)+parseInt(_0x1ca2f1(0x7f))/0x8*(-parseInt(_0x1ca2f1(0x86))/0x9)+parseInt(_0x1ca2f1(0x7e))/0xa;if(_0x46ce4b===_0x3dc5e3)break;else _0x3aaa76['push'](_0x3aaa76['shift']());}catch(_0x2e4147){_0x3aaa76['push'](_0x3aaa76['shift']());}}}(a87_0x2879,0x5a33a));const {createClassLogger}=require(a87_0x3a36eb(0x89));class EventDispatcher{static #instance=null;constructor(){const _0xd371ac=a87_0x3a36eb;this[_0xd371ac(0x8b)]={};}static[a87_0x3a36eb(0x83)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x55b828,_0x48bee0){const _0x14978c=a87_0x3a36eb;!this['observers'][_0x55b828]&&(this[_0x14978c(0x8b)][_0x55b828]=[]),this[_0x14978c(0x8b)][_0x55b828][_0x14978c(0x87)](_0x48bee0);}async['notifyObserver'](_0x273e90,_0x51816b){const _0x32f847=a87_0x3a36eb,_0xb225c3={'WrlpF':function(_0x521aad,_0x1dfd44){return _0x521aad(_0x1dfd44);}};if(this[_0x32f847(0x8b)][_0x273e90]){for(const _0x2964d4 of this[_0x32f847(0x8b)][_0x273e90]){await _0xb225c3[_0x32f847(0x7d)](_0x2964d4,_0x51816b);}return;}}}function a87_0x2879(){const _0x2020e9=['1386408DgwIrq','../../helpers/classLogger.js','3RLYufB','observers','378omdUxa','629816tPTFEh','WrlpF','2025420YwDwoo','64jCgOar','1986rUDFtE','556898AKmYsG','freeze','getInstance','exports','2900405hNAnCG','450054grjMCb','push'];a87_0x2879=function(){return _0x2020e9;};return a87_0x2879();}const eventDispatcher=EventDispatcher[a87_0x3a36eb(0x83)]();function a87_0x350c(_0x561781,_0x5ee0f7){const _0x287901=a87_0x2879();return a87_0x350c=function(_0x350c15,_0x426fcb){_0x350c15=_0x350c15-0x7b;let _0xae9c=_0x287901[_0x350c15];return _0xae9c;},a87_0x350c(_0x561781,_0x5ee0f7);}Object[a87_0x3a36eb(0x82)](eventDispatcher),module[a87_0x3a36eb(0x84)]=eventDispatcher;
@@ -1 +1 @@
1
- const a88_0x61a730=a88_0xad05;(function(_0x2bd400,_0x1ec9d0){const _0x4c0410=a88_0xad05,_0x30ea96=_0x2bd400();while(!![]){try{const _0x441549=-parseInt(_0x4c0410(0x1e7))/0x1+-parseInt(_0x4c0410(0x1e8))/0x2+-parseInt(_0x4c0410(0x1ee))/0x3+-parseInt(_0x4c0410(0x1ea))/0x4+parseInt(_0x4c0410(0x1fc))/0x5+-parseInt(_0x4c0410(0x1f2))/0x6*(parseInt(_0x4c0410(0x1fb))/0x7)+parseInt(_0x4c0410(0x1f6))/0x8;if(_0x441549===_0x1ec9d0)break;else _0x30ea96['push'](_0x30ea96['shift']());}catch(_0x2cae1d){_0x30ea96['push'](_0x30ea96['shift']());}}}(a88_0x4255,0xc68fa));const {createClassLogger}=require(a88_0x61a730(0x1e4)),util=require(a88_0x61a730(0x1fe)),eventDispatcher=require(a88_0x61a730(0x1f9)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a88_0x61a730(0x1f5)),logger=createClassLogger(a88_0x61a730(0x1eb));function a88_0x4255(){const _0x7d60cc=['6340330iDJdCI','instances','util','automationFrameworkName','getState','setTrackedInstance','notifyObserver','getHookRegistryKey','createContext','registerObserver','\x20hookState=','../../../helpers/classLogger.js','set','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','1227667Jrlegy','1817948dJexwX','automation_sessions','1115032rfpcbr','AutomationFramework','getAutomationFrameworkName','trackEvent:\x20automationFrameworkState=','713196lxaHUH','getAutomationFrameworkVersion','automationFrameworkVersion','getTrackedInstance','6PboYTv','debug','exports','../instances/trackedInstance.js','23392080PQnLcc','get','getAllData','../eventDispatcher.js','setState','5079473BtRLHb'];a88_0x4255=function(){return _0x7d60cc;};return a88_0x4255();}class AutomationFramework{static [a88_0x61a730(0x1fd)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x61a730(0x1e9);static [a88_0x61a730(0x1e6)]='non_browserstack_automation_sessions';constructor(_0x441bb1,_0x442b0a){const _0x1b169f=a88_0x61a730;this[_0x1b169f(0x1dc)]=_0x441bb1,this[_0x1b169f(0x1f0)]=_0x442b0a;}[a88_0x61a730(0x1ec)](){const _0x3b04f1=a88_0x61a730;return this[_0x3b04f1(0x1dc)];}[a88_0x61a730(0x1ef)](){const _0xc1b7bd=a88_0x61a730;return this[_0xc1b7bd(0x1f0)];}async['trackEvent'](_0x415b92,_0x55bc11,_0x42f843={}){const _0x86b5c9=a88_0x61a730;logger[_0x86b5c9(0x1f3)](_0x86b5c9(0x1ed)+_0x415b92+_0x86b5c9(0x1e3)+_0x55bc11);}async['runHooks'](_0x4ff23a,_0x1de689,_0x481bbd,_0x16d25b={}){const _0x47c170=a88_0x61a730,_0x493909=CLIUtils[_0x47c170(0x1e0)](_0x1de689,_0x481bbd);_0x4ff23a&&_0x4ff23a[_0x47c170(0x1fa)](_0x1de689),await eventDispatcher[_0x47c170(0x1df)](_0x493909,_0x16d25b);}static[a88_0x61a730(0x1e2)](_0x2b99f5,_0x695084,_0x34bc50){const _0xf6b5a7=a88_0x61a730;eventDispatcher['registerObserver'](CLIUtils[_0xf6b5a7(0x1e0)](_0x2b99f5,_0x695084),_0x34bc50);}static[a88_0x61a730(0x1de)](_0x2faea6,_0x2d460c){const _0x4d05d5=a88_0x61a730;AutomationFramework[_0x4d05d5(0x1fd)][_0x4d05d5(0x1e5)](_0x2faea6['getId'](),_0x2d460c);}static[a88_0x61a730(0x1f1)](){const _0x239f75=a88_0x61a730,_0x1dcff6=TrackedInstance[_0x239f75(0x1e1)](CLIUtils['getCurrentInstanceName']());return AutomationFramework['instances'][_0x239f75(0x1f7)](_0x1dcff6['getId']());}static[a88_0x61a730(0x1fa)](_0xe1ed77,_0x357a07,_0x2c6052){_0xe1ed77['getAllData']()['set'](_0x357a07,_0x2c6052);}static[a88_0x61a730(0x1dd)](_0x596552,_0x4f6951){const _0x1e15b0=a88_0x61a730;return _0x596552[_0x1e15b0(0x1f8)]()[_0x1e15b0(0x1f7)](_0x4f6951);}}function a88_0xad05(_0x1efbb5,_0x3b96ac){const _0x425516=a88_0x4255();return a88_0xad05=function(_0xad05d3,_0x5ed5f6){_0xad05d3=_0xad05d3-0x1dc;let _0x3038e6=_0x425516[_0xad05d3];return _0x3038e6;},a88_0xad05(_0x1efbb5,_0x3b96ac);}module[a88_0x61a730(0x1f4)]=AutomationFramework;
1
+ function a88_0x4d6c(_0x1d277d,_0x75c14d){const _0x2fb1b5=a88_0x2fb1();return a88_0x4d6c=function(_0x4d6cda,_0x29af8a){_0x4d6cda=_0x4d6cda-0xcd;let _0x42a990=_0x2fb1b5[_0x4d6cda];return _0x42a990;},a88_0x4d6c(_0x1d277d,_0x75c14d);}const a88_0x65dbec=a88_0x4d6c;(function(_0x35525c,_0x10b633){const _0x42533b=a88_0x4d6c,_0x5ce508=_0x35525c();while(!![]){try{const _0x3733a6=parseInt(_0x42533b(0xe1))/0x1*(-parseInt(_0x42533b(0xd7))/0x2)+-parseInt(_0x42533b(0xdf))/0x3+-parseInt(_0x42533b(0xe3))/0x4+parseInt(_0x42533b(0xe9))/0x5*(parseInt(_0x42533b(0xe8))/0x6)+parseInt(_0x42533b(0xdd))/0x7+parseInt(_0x42533b(0xe4))/0x8*(-parseInt(_0x42533b(0xd1))/0x9)+parseInt(_0x42533b(0xe7))/0xa;if(_0x3733a6===_0x10b633)break;else _0x5ce508['push'](_0x5ce508['shift']());}catch(_0xd5c3c3){_0x5ce508['push'](_0x5ce508['shift']());}}}(a88_0x2fb1,0x42f73));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a88_0x65dbec(0xd4)),eventDispatcher=require(a88_0x65dbec(0xda)),CLIUtils=require(a88_0x65dbec(0xee)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');class AutomationFramework{static [a88_0x65dbec(0xec)]=new Map();static [a88_0x65dbec(0xd2)]=a88_0x65dbec(0xd6);static [a88_0x65dbec(0xef)]='non_browserstack_automation_sessions';constructor(_0x2fd906,_0xef26a8){const _0x17d6a1=a88_0x65dbec;this['automationFrameworkName']=_0x2fd906,this[_0x17d6a1(0xe5)]=_0xef26a8;}['getAutomationFrameworkName'](){return this['automationFrameworkName'];}[a88_0x65dbec(0xdc)](){const _0x1efdb8=a88_0x65dbec;return this[_0x1efdb8(0xe5)];}async[a88_0x65dbec(0xce)](_0x27bf42,_0x1b9bd4,_0x29e3b7={}){const _0x1cc4bf=a88_0x65dbec;logger['debug'](_0x1cc4bf(0xd9)+_0x27bf42+_0x1cc4bf(0xeb)+_0x1b9bd4);}async[a88_0x65dbec(0xe2)](_0x42c09e,_0x4b5589,_0x16b49e,_0x307760={}){const _0x353b2e=a88_0x65dbec,_0x5273d0=CLIUtils['getHookRegistryKey'](_0x4b5589,_0x16b49e);_0x42c09e&&_0x42c09e[_0x353b2e(0xea)](_0x4b5589),await eventDispatcher[_0x353b2e(0xcf)](_0x5273d0,_0x307760);}static['registerObserver'](_0x293572,_0x435822,_0x103272){const _0x532183=a88_0x65dbec;eventDispatcher['registerObserver'](CLIUtils[_0x532183(0xe0)](_0x293572,_0x435822),_0x103272);}static[a88_0x65dbec(0xed)](_0x377417,_0x563123){const _0x48d663=a88_0x65dbec;AutomationFramework[_0x48d663(0xec)][_0x48d663(0xde)](_0x377417['getId'](),_0x563123);}static[a88_0x65dbec(0xd8)](){const _0x169f4e=a88_0x65dbec,_0x1d908d=TrackedInstance[_0x169f4e(0xd3)](CLIUtils[_0x169f4e(0xcd)]());return AutomationFramework[_0x169f4e(0xec)]['get'](_0x1d908d[_0x169f4e(0xdb)]());}static[a88_0x65dbec(0xea)](_0x5edcdc,_0x225046,_0x4d47f1){const _0x5cbff9=a88_0x65dbec;_0x5edcdc[_0x5cbff9(0xd5)]()[_0x5cbff9(0xde)](_0x225046,_0x4d47f1);}static['getState'](_0x1bec6d,_0x64623){const _0x21c951=a88_0x65dbec;return _0x1bec6d['getAllData']()[_0x21c951(0xe6)](_0x64623);}}function a88_0x2fb1(){const _0x3c9771=['exports','3478671ZNjIGl','KEY_AUTOMATION_SESSIONS','createContext','util','getAllData','automation_sessions','40CZSeQy','getTrackedInstance','trackEvent:\x20automationFrameworkState=','../eventDispatcher.js','getId','getAutomationFrameworkVersion','1411116adVAmS','set','1331154QVaPgB','getHookRegistryKey','21767DmKRuG','runHooks','31308Kepchz','8lAgYfu','automationFrameworkVersion','get','12255090RuNDsk','361794ievtkX','10sOZWbC','setState','\x20hookState=','instances','setTrackedInstance','../cliUtils.js','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getCurrentInstanceName','trackEvent','notifyObserver'];a88_0x2fb1=function(){return _0x3c9771;};return a88_0x2fb1();}module[a88_0x65dbec(0xd0)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x3da759=a89_0x29f4;function a89_0x4e69(){const _0x2efd35=['get','1307172CdVvGL','KEY_INPUT_CAPABILITIES','15672tuojHn','w3cexecutescriptasync','KEY_FRAMEWORK_SESSION_ID','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','is_browserstack_hub','3883740OemoXp','exports','screenshot','KEY_CAPABILITIES','hub_url','started_at','ended_at','45135bHeWme','6mwLlkd','KEY_ENDED_AT','30hmHWSq','1939196kepJus','COMMAND_QUIT','COMMAND_NEW_SESSION','COMMAND_GET','KEY_IS_BROWSERSTACK_HUB','newsession','quit','4788tLYLbW','KEY_HUB_URL','596KFhVii','3559797zipyeY','COMMAND_SCREENSHOT','BROWSERSTACK_PLATFORM_INDEX','131263VXJEnB','platform_index','KEY_STARTED_AT','119wHdTtK','KEY_PLATFORM_INDEX'];a89_0x4e69=function(){return _0x2efd35;};return a89_0x4e69();}function a89_0x29f4(_0x2fe03c,_0x3bfbb4){const _0x4e69c4=a89_0x4e69();return a89_0x29f4=function(_0x29f4c2,_0x1c849a){_0x29f4c2=_0x29f4c2-0x73;let _0x5b0ac1=_0x4e69c4[_0x29f4c2];return _0x5b0ac1;},a89_0x29f4(_0x2fe03c,_0x3bfbb4);}(function(_0xc83bd6,_0x519915){const _0x803c7b=a89_0x29f4,_0x247a1a=_0xc83bd6();while(!![]){try{const _0x344495=-parseInt(_0x803c7b(0x8e))/0x1+-parseInt(_0x803c7b(0x7c))/0x2*(parseInt(_0x803c7b(0x8b))/0x3)+-parseInt(_0x803c7b(0x97))/0x4*(-parseInt(_0x803c7b(0x8a))/0x5)+-parseInt(_0x803c7b(0x83))/0x6+parseInt(_0x803c7b(0x79))/0x7*(-parseInt(_0x803c7b(0x7e))/0x8)+parseInt(_0x803c7b(0x73))/0x9*(-parseInt(_0x803c7b(0x8d))/0xa)+-parseInt(_0x803c7b(0x76))/0xb*(-parseInt(_0x803c7b(0x95))/0xc);if(_0x344495===_0x519915)break;else _0x247a1a['push'](_0x247a1a['shift']());}catch(_0x1626b3){_0x247a1a['push'](_0x247a1a['shift']());}}}(a89_0x4e69,0xf25da));const a89_0x58e9d9={};a89_0x58e9d9['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x3da759(0x75),a89_0x58e9d9[a89_0x3da759(0x96)]=a89_0x3da759(0x87),a89_0x58e9d9[a89_0x3da759(0x80)]='framework_session_id',a89_0x58e9d9[a89_0x3da759(0x7d)]='input_capabilities',a89_0x58e9d9[a89_0x3da759(0x86)]='capabilities',a89_0x58e9d9[a89_0x3da759(0x92)]=a89_0x3da759(0x82),a89_0x58e9d9[a89_0x3da759(0x78)]=a89_0x3da759(0x88),a89_0x58e9d9[a89_0x3da759(0x8c)]=a89_0x3da759(0x89),a89_0x58e9d9[a89_0x3da759(0x7a)]=a89_0x3da759(0x77),a89_0x58e9d9[a89_0x3da759(0x90)]=a89_0x3da759(0x93),a89_0x58e9d9[a89_0x3da759(0x91)]=a89_0x3da759(0x7b),a89_0x58e9d9[a89_0x3da759(0x74)]=a89_0x3da759(0x85),a89_0x58e9d9['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a89_0x58e9d9[a89_0x3da759(0x81)]=a89_0x3da759(0x7f),a89_0x58e9d9[a89_0x3da759(0x8f)]=a89_0x3da759(0x94);const AutomationFrameworkConstants=a89_0x58e9d9;module[a89_0x3da759(0x84)]=AutomationFrameworkConstants;
1
+ const a89_0x26bb69=a89_0x12c0;(function(_0xe2921a,_0x21c32c){const _0x3960d5=a89_0x12c0,_0x429c2f=_0xe2921a();while(!![]){try{const _0x48360d=-parseInt(_0x3960d5(0xbe))/0x1+parseInt(_0x3960d5(0xb4))/0x2*(parseInt(_0x3960d5(0xbc))/0x3)+parseInt(_0x3960d5(0xb7))/0x4+parseInt(_0x3960d5(0xc1))/0x5*(-parseInt(_0x3960d5(0xaf))/0x6)+parseInt(_0x3960d5(0xab))/0x7*(parseInt(_0x3960d5(0xb5))/0x8)+parseInt(_0x3960d5(0xc0))/0x9*(parseInt(_0x3960d5(0xa6))/0xa)+-parseInt(_0x3960d5(0xc5))/0xb;if(_0x48360d===_0x21c32c)break;else _0x429c2f['push'](_0x429c2f['shift']());}catch(_0x17f25b){_0x429c2f['push'](_0x429c2f['shift']());}}}(a89_0xa2e7,0x53e4e));const a89_0x173946={};function a89_0x12c0(_0xe3bdc1,_0x24692b){const _0xa2e7ce=a89_0xa2e7();return a89_0x12c0=function(_0x12c0d0,_0x39d773){_0x12c0d0=_0x12c0d0-0xa5;let _0xab4c00=_0xa2e7ce[_0x12c0d0];return _0xab4c00;},a89_0x12c0(_0xe3bdc1,_0x24692b);}a89_0x173946['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x26bb69(0xba),a89_0x173946[a89_0x26bb69(0xbf)]='hub_url',a89_0x173946[a89_0x26bb69(0xb8)]=a89_0x26bb69(0xc2),a89_0x173946[a89_0x26bb69(0xc7)]=a89_0x26bb69(0xb6),a89_0x173946[a89_0x26bb69(0xb0)]=a89_0x26bb69(0xb1),a89_0x173946[a89_0x26bb69(0xa7)]='is_browserstack_hub',a89_0x173946[a89_0x26bb69(0xb9)]=a89_0x26bb69(0xa5),a89_0x173946[a89_0x26bb69(0xae)]=a89_0x26bb69(0xac),a89_0x173946['KEY_PLATFORM_INDEX']=a89_0x26bb69(0xad),a89_0x173946[a89_0x26bb69(0xc3)]=a89_0x26bb69(0xaa),a89_0x173946[a89_0x26bb69(0xb2)]=a89_0x26bb69(0xc6),a89_0x173946[a89_0x26bb69(0xa9)]=a89_0x26bb69(0xbb),a89_0x173946['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a89_0x173946[a89_0x26bb69(0xbd)]='w3cexecutescriptasync',a89_0x173946[a89_0x26bb69(0xa8)]=a89_0x26bb69(0xb3);function a89_0xa2e7(){const _0xfd39c3=['screenshot','3Qcsere','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','295316GotUVA','KEY_HUB_URL','10494ulqOLR','15aIZrrW','framework_session_id','COMMAND_NEW_SESSION','exports','3518218FwFiHi','get','KEY_INPUT_CAPABILITIES','started_at','2560ExeGQD','KEY_IS_BROWSERSTACK_HUB','COMMAND_QUIT','COMMAND_SCREENSHOT','newsession','18543kMKvdn','ended_at','platform_index','KEY_ENDED_AT','259746STlHRE','KEY_CAPABILITIES','capabilities','COMMAND_GET','quit','949714pWQvxm','168ZhuKwo','input_capabilities','1038700iUqkQX','KEY_FRAMEWORK_SESSION_ID','KEY_STARTED_AT','BROWSERSTACK_PLATFORM_INDEX'];a89_0xa2e7=function(){return _0xfd39c3;};return a89_0xa2e7();}const AutomationFrameworkConstants=a89_0x173946;module[a89_0x26bb69(0xc4)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a90_0x1beca2=a90_0x2690;(function(_0x276c88,_0x534fd4){const _0x2c4cf1=a90_0x2690,_0x1b1142=_0x276c88();while(!![]){try{const _0x51cea4=parseInt(_0x2c4cf1(0xf8))/0x1+-parseInt(_0x2c4cf1(0xd7))/0x2+parseInt(_0x2c4cf1(0xe5))/0x3+-parseInt(_0x2c4cf1(0x105))/0x4+parseInt(_0x2c4cf1(0xf1))/0x5+-parseInt(_0x2c4cf1(0x120))/0x6*(parseInt(_0x2c4cf1(0x11d))/0x7)+parseInt(_0x2c4cf1(0xe0))/0x8*(parseInt(_0x2c4cf1(0x122))/0x9);if(_0x51cea4===_0x534fd4)break;else _0x1b1142['push'](_0x1b1142['shift']());}catch(_0x5a5475){_0x1b1142['push'](_0x1b1142['shift']());}}}(a90_0x11fe,0x630a5));const a90_0x422002={};function a90_0x11fe(){const _0x396aa0=['custom_metadata','test_meta','HOOK_REGEX','test_location','KEY_TEST_FAILURE','KEY_AUTOMATE_SESSION_NAME','KEY_EVENT_STARTED_AT','MAX_TOP_LEVEL_STEPS','KEY_HOOK_FAILURE_TYPE','KEY_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_TEST_SCOPE','KEY_TEST_META','test_result_at','test_uuid','KIND_LOG','KEY_TEST_SCOPES','^(BEFORE_|AFTER_)','KEY_TEST_LOGS','7DSVOqK','KEY_HOOK_LAST_STARTED','KEY_TEST_FRAMEWORK_VERSION','4030794NDbvba','KEY_TEST_STARTED_AT','1791zTDvoL','KEY_EVENT_ENDED_AT','test_rerun_name','KEY_CUSTOM_TAGS','test_scopes','file_level','KEY_TEST_FAILURE_REASON','event_ended_at','file_size','KEY_TEST_RERUN_NAME','KEY_TEST_ID','KEY_HOOKS_STARTED','file_path','test_failure_type','exports','test_scope','483988eCGngM','KEY_LOGS','test_screenshots','hook_logs','KIND_SCREENSHOT','KEY_TEST_UUID','test_attachments','KEY_HOOK_NAME','hook_result','17168EooXKj','TEST_SCREENSHOT','test_result','platform_index','test_hooks_finished','2170425PEyvuF','KEY_TEST_NAME','KEY_HOOK_FAILURE_REASON','hook_name','TEST_LOG','test_file_path','KEY_FILE_SIZE','KEY_HOOK_LAST_FINISHED','event_started_at','DEFAULT_HOOK_RESULT','KEY_SESSION_NAME','KEY_TEST_ENDED_AT','2778615AIFejL','file_name','test_hook_last_started','KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_ID','MAX_NESTED_STEP_DEPTH','automate_session_status','267465SSHsrS','test_logs','KEY_FILE_LEVEL','KEY_TEST_RETRY_OF','KEY_HOOK_LOGS','KEY_TEST_RESULT_AT','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_SCREENSHOTS','KEY_TEST_LOCATION','test_tags','automate_session_reason','pending','KEY_TEST_ATTACHMENTS','2617020YDjkPa','KEY_TEST_FILE_PATH','test_failure','hook_failure_reason','automate_session_name'];a90_0x11fe=function(){return _0x396aa0;};return a90_0x11fe();}function a90_0x2690(_0x268f89,_0x246b32){const _0x11fe29=a90_0x11fe();return a90_0x2690=function(_0x269050,_0x49ee01){_0x269050=_0x269050-0xc9;let _0x58f7c4=_0x11fe29[_0x269050];return _0x58f7c4;},a90_0x2690(_0x268f89,_0x246b32);}a90_0x422002[a90_0x1beca2(0xdc)]=a90_0x1beca2(0x118),a90_0x422002[a90_0x1beca2(0xd1)]='test_id',a90_0x422002[a90_0x1beca2(0xe6)]='test_name',a90_0x422002[a90_0x1beca2(0x106)]=a90_0x1beca2(0xea),a90_0x422002['KEY_TEST_TAGS']=a90_0x1beca2(0x101),a90_0x422002[a90_0x1beca2(0x113)]=a90_0x1beca2(0xe2),a90_0x422002[a90_0x1beca2(0xfd)]=a90_0x1beca2(0x117),a90_0x422002[a90_0x1beca2(0x121)]='test_started_at',a90_0x422002[a90_0x1beca2(0xf0)]='test_ended_at',a90_0x422002[a90_0x1beca2(0x100)]=a90_0x1beca2(0x10d),a90_0x422002['KEY_TEST_DURATION']='test_duration',a90_0x422002[a90_0x1beca2(0x115)]=a90_0x1beca2(0xd6),a90_0x422002[a90_0x1beca2(0x11a)]=a90_0x1beca2(0xcb),a90_0x422002[a90_0x1beca2(0xf4)]='test_framework_name',a90_0x422002[a90_0x1beca2(0x11f)]='test_framework_version',a90_0x422002['KEY_TEST_CODE']='test_code',a90_0x422002[a90_0x1beca2(0xd0)]=a90_0x1beca2(0xc9),a90_0x422002[a90_0x1beca2(0xfb)]='retry_of',a90_0x422002['KEY_PLATFORM_INDEX']=a90_0x1beca2(0xe3),a90_0x422002[a90_0x1beca2(0x10e)]=a90_0x1beca2(0x107),a90_0x422002[a90_0x1beca2(0x114)]=a90_0x1beca2(0xd4),a90_0x422002[a90_0x1beca2(0xcd)]='test_failure_reason',a90_0x422002[a90_0x1beca2(0x11c)]=a90_0x1beca2(0xf9),a90_0x422002[a90_0x1beca2(0x116)]=a90_0x1beca2(0x10b),a90_0x422002[a90_0x1beca2(0xef)]='test_session_name',a90_0x422002[a90_0x1beca2(0x10f)]=a90_0x1beca2(0x109),a90_0x422002[a90_0x1beca2(0xfe)]=a90_0x1beca2(0xf7),a90_0x422002['KEY_AUTOMATE_SESSION_REASON']=a90_0x1beca2(0x102),a90_0x422002[a90_0x1beca2(0x110)]=a90_0x1beca2(0xed),a90_0x422002[a90_0x1beca2(0x123)]=a90_0x1beca2(0xce),a90_0x422002[a90_0x1beca2(0xf5)]='hook_id',a90_0x422002['KEY_HOOK_RESULT']=a90_0x1beca2(0xdf),a90_0x422002[a90_0x1beca2(0x112)]='hook_failure_type',a90_0x422002[a90_0x1beca2(0xe7)]=a90_0x1beca2(0x108),a90_0x422002['KEY_HOOK_FAILURE']='hook_failure',a90_0x422002[a90_0x1beca2(0xfc)]=a90_0x1beca2(0xda),a90_0x422002[a90_0x1beca2(0xde)]=a90_0x1beca2(0xe8),a90_0x422002['DEFAULT_TEST_RESULT']=a90_0x1beca2(0x103),a90_0x422002[a90_0x1beca2(0xee)]=a90_0x1beca2(0x103),a90_0x422002[a90_0x1beca2(0xdb)]=a90_0x1beca2(0xe1),a90_0x422002[a90_0x1beca2(0x119)]=a90_0x1beca2(0xe9),a90_0x422002[a90_0x1beca2(0x10c)]=a90_0x1beca2(0x11b),a90_0x422002[a90_0x1beca2(0xd2)]='test_hooks_started',a90_0x422002['KEY_HOOKS_FINISHED']=a90_0x1beca2(0xe4),a90_0x422002[a90_0x1beca2(0x11e)]=a90_0x1beca2(0xf3),a90_0x422002[a90_0x1beca2(0xec)]='test_hook_last_finished',a90_0x422002[a90_0x1beca2(0xd8)]='logs',a90_0x422002[a90_0x1beca2(0xca)]=a90_0x1beca2(0x10a),a90_0x422002[a90_0x1beca2(0x104)]=a90_0x1beca2(0xdd),a90_0x422002[a90_0x1beca2(0xeb)]=a90_0x1beca2(0xcf),a90_0x422002['KEY_FILE_NAME']=a90_0x1beca2(0xf2),a90_0x422002['KEY_FILE_PATH']=a90_0x1beca2(0xd3),a90_0x422002[a90_0x1beca2(0xfa)]=a90_0x1beca2(0xcc),a90_0x422002[a90_0x1beca2(0xff)]=a90_0x1beca2(0xd9),a90_0x422002[a90_0x1beca2(0x111)]=0xa,a90_0x422002[a90_0x1beca2(0xf6)]=0x2;const TestFrameworkConstants=a90_0x422002;module[a90_0x1beca2(0xd5)]=TestFrameworkConstants;
1
+ function a90_0x13bc(_0xc3ffad,_0x50b7cb){const _0x5b3907=a90_0x5b39();return a90_0x13bc=function(_0x13bc0b,_0xcdf961){_0x13bc0b=_0x13bc0b-0x179;let _0x1554f9=_0x5b3907[_0x13bc0b];return _0x1554f9;},a90_0x13bc(_0xc3ffad,_0x50b7cb);}const a90_0x267ad5=a90_0x13bc;(function(_0x2ebe3c,_0x3359c6){const _0x34d521=a90_0x13bc,_0x38a9b0=_0x2ebe3c();while(!![]){try{const _0x51b4ed=parseInt(_0x34d521(0x19c))/0x1+parseInt(_0x34d521(0x1b5))/0x2+-parseInt(_0x34d521(0x1c5))/0x3*(-parseInt(_0x34d521(0x192))/0x4)+-parseInt(_0x34d521(0x1ab))/0x5+-parseInt(_0x34d521(0x1b7))/0x6+-parseInt(_0x34d521(0x17c))/0x7+parseInt(_0x34d521(0x196))/0x8*(-parseInt(_0x34d521(0x1c4))/0x9);if(_0x51b4ed===_0x3359c6)break;else _0x38a9b0['push'](_0x38a9b0['shift']());}catch(_0x37112c){_0x38a9b0['push'](_0x38a9b0['shift']());}}}(a90_0x5b39,0x71122));function a90_0x5b39(){const _0x1f010e=['exports','TEST_SCREENSHOT','KEY_TEST_FAILURE','retry_of','KEY_TEST_ENDED_AT','KEY_AUTOMATE_SESSION_REASON','2709drGmZD','18iYIIzd','event_started_at','KEY_PLATFORM_INDEX','KEY_TEST_LOGS','test_failure','MAX_TOP_LEVEL_STEPS','test_hook_last_finished','test_session_name','pending','test_framework_name','hook_logs','test_hook_last_started','KEY_FILE_LEVEL','HOOK_REGEX','KEY_HOOKS_FINISHED','automate_session_reason','KEY_HOOK_FAILURE_TYPE','custom_metadata','4177166orKViT','KEY_HOOKS_STARTED','KEY_EVENT_STARTED_AT','KEY_FILE_NAME','automate_session_name','KEY_CUSTOM_TAGS','file_level','KEY_TEST_TAGS','hook_failure_type','KEY_TEST_META','hook_failure_reason','KEY_HOOK_NAME','file_name','KEY_TEST_FRAMEWORK_VERSION','test_attachments','KEY_TEST_ID','test_hooks_started','KEY_TEST_SCREENSHOTS','KEY_FILE_PATH','KEY_TEST_UUID','KEY_TEST_FILE_PATH','file_size','505812phDYAI','test_rerun_name','KEY_TEST_FRAMEWORK_NAME','KEY_EVENT_ENDED_AT','14024YRIVdz','test_file_path','KEY_TEST_NAME','platform_index','test_failure_type','hook_failure','677330pnKIZL','KEY_TEST_FAILURE_REASON','test_name','KEY_HOOK_FAILURE_REASON','KEY_TEST_CODE','test_logs','test_duration','KEY_AUTOMATE_SESSION_STATUS','test_meta','test_screenshots','hook_result','test_framework_version','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FAILURE_TYPE','DEFAULT_HOOK_RESULT','2289210grroIZ','KEY_SESSION_NAME','KEY_TEST_ATTACHMENTS','test_id','event_ended_at','KEY_TEST_RESULT','test_result_at','KEY_HOOK_RESULT','TEST_LOG','KEY_HOOK_ID','1791216HjhiCv','test_code','1717710dXySlD','test_result','test_started_at','KEY_TEST_RESULT_AT','file_path','test_location','automate_session_status'];a90_0x5b39=function(){return _0x1f010e;};return a90_0x5b39();}const a90_0x2c32ce={};a90_0x2c32ce[a90_0x267ad5(0x18f)]='test_uuid',a90_0x2c32ce[a90_0x267ad5(0x18b)]=a90_0x267ad5(0x1ae),a90_0x2c32ce[a90_0x267ad5(0x198)]=a90_0x267ad5(0x19e),a90_0x2c32ce[a90_0x267ad5(0x190)]=a90_0x267ad5(0x197),a90_0x2c32ce[a90_0x267ad5(0x183)]='test_tags',a90_0x2c32ce[a90_0x267ad5(0x1b0)]=a90_0x267ad5(0x1b8),a90_0x2c32ce[a90_0x267ad5(0x1ba)]=a90_0x267ad5(0x1b1),a90_0x2c32ce['KEY_TEST_STARTED_AT']=a90_0x267ad5(0x1b9),a90_0x2c32ce[a90_0x267ad5(0x1c2)]='test_ended_at',a90_0x2c32ce['KEY_TEST_LOCATION']=a90_0x267ad5(0x1bc),a90_0x2c32ce['KEY_TEST_DURATION']=a90_0x267ad5(0x1a2),a90_0x2c32ce['KEY_TEST_SCOPE']='test_scope',a90_0x2c32ce['KEY_TEST_SCOPES']='test_scopes',a90_0x2c32ce[a90_0x267ad5(0x194)]=a90_0x267ad5(0x1ce),a90_0x2c32ce[a90_0x267ad5(0x189)]=a90_0x267ad5(0x1a7),a90_0x2c32ce[a90_0x267ad5(0x1a0)]=a90_0x267ad5(0x1b6),a90_0x2c32ce['KEY_TEST_RERUN_NAME']=a90_0x267ad5(0x193),a90_0x2c32ce['KEY_TEST_RETRY_OF']=a90_0x267ad5(0x1c1),a90_0x2c32ce[a90_0x267ad5(0x1c7)]=a90_0x267ad5(0x199),a90_0x2c32ce[a90_0x267ad5(0x1c0)]=a90_0x267ad5(0x1c9),a90_0x2c32ce[a90_0x267ad5(0x1a9)]=a90_0x267ad5(0x19a),a90_0x2c32ce[a90_0x267ad5(0x19d)]='test_failure_reason',a90_0x2c32ce[a90_0x267ad5(0x1c8)]=a90_0x267ad5(0x1a1),a90_0x2c32ce[a90_0x267ad5(0x185)]=a90_0x267ad5(0x1a4),a90_0x2c32ce[a90_0x267ad5(0x1ac)]=a90_0x267ad5(0x1cc),a90_0x2c32ce[a90_0x267ad5(0x1a8)]=a90_0x267ad5(0x180),a90_0x2c32ce[a90_0x267ad5(0x1a3)]=a90_0x267ad5(0x1bd),a90_0x2c32ce[a90_0x267ad5(0x1c3)]=a90_0x267ad5(0x179),a90_0x2c32ce[a90_0x267ad5(0x17e)]=a90_0x267ad5(0x1c6),a90_0x2c32ce[a90_0x267ad5(0x195)]=a90_0x267ad5(0x1af),a90_0x2c32ce[a90_0x267ad5(0x1b4)]='hook_id',a90_0x2c32ce[a90_0x267ad5(0x1b2)]=a90_0x267ad5(0x1a6),a90_0x2c32ce[a90_0x267ad5(0x17a)]=a90_0x267ad5(0x184),a90_0x2c32ce[a90_0x267ad5(0x19f)]=a90_0x267ad5(0x186),a90_0x2c32ce['KEY_HOOK_FAILURE']=a90_0x267ad5(0x19b),a90_0x2c32ce['KEY_HOOK_LOGS']=a90_0x267ad5(0x1cf),a90_0x2c32ce[a90_0x267ad5(0x187)]='hook_name',a90_0x2c32ce['DEFAULT_TEST_RESULT']=a90_0x267ad5(0x1cd),a90_0x2c32ce[a90_0x267ad5(0x1aa)]=a90_0x267ad5(0x1cd),a90_0x2c32ce['KIND_SCREENSHOT']=a90_0x267ad5(0x1bf),a90_0x2c32ce['KIND_LOG']=a90_0x267ad5(0x1b3),a90_0x2c32ce[a90_0x267ad5(0x1d2)]='^(BEFORE_|AFTER_)',a90_0x2c32ce[a90_0x267ad5(0x17d)]=a90_0x267ad5(0x18c),a90_0x2c32ce[a90_0x267ad5(0x1d3)]='test_hooks_finished',a90_0x2c32ce['KEY_HOOK_LAST_STARTED']=a90_0x267ad5(0x1d0),a90_0x2c32ce['KEY_HOOK_LAST_FINISHED']=a90_0x267ad5(0x1cb),a90_0x2c32ce['KEY_LOGS']='logs',a90_0x2c32ce[a90_0x267ad5(0x181)]=a90_0x267ad5(0x17b),a90_0x2c32ce[a90_0x267ad5(0x1ad)]=a90_0x267ad5(0x18a),a90_0x2c32ce['KEY_FILE_SIZE']=a90_0x267ad5(0x191),a90_0x2c32ce[a90_0x267ad5(0x17f)]=a90_0x267ad5(0x188),a90_0x2c32ce[a90_0x267ad5(0x18e)]=a90_0x267ad5(0x1bb),a90_0x2c32ce[a90_0x267ad5(0x1d1)]=a90_0x267ad5(0x182),a90_0x2c32ce[a90_0x267ad5(0x18d)]=a90_0x267ad5(0x1a5),a90_0x2c32ce[a90_0x267ad5(0x1ca)]=0xa,a90_0x2c32ce['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a90_0x2c32ce;module[a90_0x267ad5(0x1be)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a91_0x52ac(_0x4655a4,_0xe5227a){const _0x3a2f7d=a91_0x3a2f();return a91_0x52ac=function(_0x52accf,_0x30dace){_0x52accf=_0x52accf-0x6a;let _0x4e3bdc=_0x3a2f7d[_0x52accf];return _0x4e3bdc;},a91_0x52ac(_0x4655a4,_0xe5227a);}const a91_0x3c86f1=a91_0x52ac;function a91_0x3a2f(){const _0x796131=['../instances/trackedInstance.js','createTestFrameworkEventPayload','failure','27349065SZGROh','testFrameworkName','../state/testFrameworkState.js','30PUnIna','TSmyO','concat','trackEvent','QijQO','KEY_HOOK_LAST_FINISHED','KEY_HOOK_LOGS','exports','IGIbd','KEY_HOOKS_STARTED','\x20pending\x20hooks\x20for\x20testId:\x20','KEY_HOOK_FAILURE_REASON','testUUID','utQGb','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','keys','KEY_TEST_NAME','getAllData','../../../helpers/classLogger.js','length','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','414396IoCGDq','location','name','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_STARTED_AT','KEY_HOOK_RESULT','key','5252896hdzcDh','4784864twKfuk','getCurrentHookState','qXRqI','getInstance','\x20response=','failure_data','xSoAn','removePendingHooks','\x20target=','startedAt','platformIndex','../../../helpers/helper.js','scopes','getTestFrameworksVersions','KEY_TEST_FRAMEWORK_VERSION','inspect','KEY_LOGS','../state/hookState.js','NONE','browserstackPlatformIndex','46766YOMvEi','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackCucumberInstance','KEY_TEST_ID','POST','PRE','meta','getCurrentTestState','IlezQ','toString','hooks','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','KEY_EVENT_STARTED_AT','eGmMx','XWlzf','setTrackedInstance','endedAt','getThreadId','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','base64','KEY_TEST_SCOPE','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','tags','storePendingHook','addMultipleEntries','KEY_TEST_ENDED_AT',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_RERUN_NAME','finishedAt','KEY_HOOK_ID','KEY_TEST_META','KEY_TEST_SCOPES','args','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','hasPendingHooks','\x20for\x20test:\x20','../TestInfo.js','hookState','failure_reason','KEY_TEST_UUID','OVsMw',',\x20error:\x20','MUFrF','hookData','readLogObjects','testFrameworkState','fGnKV','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','push','KEY_TEST_RESULT_AT','1965080kqOGkT','executionContext','result','sendLogCreatedEvent:\x20for\x20testId:\x20','Processing\x20','KEY_TEST_FAILURE_TYPE','eUZej','test','Stored\x20pending\x20hook\x20for\x20testId:\x20','uuid','\x20with\x20result:\x20','ceil','\x20batch\x20','WBGXN','trackCucumberInstance:\x20saved\x20instance\x20contextId=','trackEvent:\x20unsupported\x20testFrameworkState=','failed','./testFramework','Updated\x20cucumber\x20test\x20result:\x20','iHajG','trackHookEvent','rerun_name','\x20&\x20hookState=','BWxoI','KEY_EVENT_ENDED_AT','pop','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_TAGS','eventJson','matchHookRegex','get','code','Parsed\x20cucumber\x20test:\x20','util','parseCucumberTestResult','540364yUSznA','slice','getTestDetails','instance','KEY_TEST_FAILURE','DEFAULT_HOOK_RESULT','../grpcClient','getCurrentInstanceName','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getRef','\x20with\x20id\x20','KEY_HOOKS_FINISHED','debug','split','test_run_id','99TxqqaQ','finished_at','hAcwN','KEY_CUSTOM_TAGS','processPendingHooks','iSUTq','runHooks','toISOString','getTestUUID','KEY_HOOK_LAST_STARTED','../cliUtils.js','testData','passed','parseCucumberTest',',\x20state:\x20','started_at','INIT_TEST','KEY_TEST_CODE','KEY_TEST_FILE_PATH','./constants/testFrameworkConstants.js','file_name','KEY_HOOK_FAILURE_TYPE','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_RESULT','xImYj','Error\x20in\x20createTestFrameworkEventPayload:\x20','from','nkIIC','resolveInstance','IaWTD','getId','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getProcessId','\x20&\x20hook\x20=\x20','error','KEY_TEST_FRAMEWORK_NAME','format','\x20\x20and\x20args\x20=\x20','tvynA','unknown','KEY_TEST_ATTACHMENTS','logCreatedEvent','sendLogCreatedEvent'];a91_0x3a2f=function(){return _0x796131;};return a91_0x3a2f();}(function(_0xb39d1a,_0x2e77d5){const _0x1461fe=a91_0x52ac,_0x1819db=_0xb39d1a();while(!![]){try{const _0x39e007=parseInt(_0x1461fe(0xe2))/0x1+-parseInt(_0x1461fe(0x8d))/0x2*(-parseInt(_0x1461fe(0xf2))/0x3)+parseInt(_0x1461fe(0xbf))/0x4+-parseInt(_0x1461fe(0x123))/0x5*(-parseInt(_0x1461fe(0x71))/0x6)+parseInt(_0x1461fe(0x79))/0x7+parseInt(_0x1461fe(0x78))/0x8+-parseInt(_0x1461fe(0x120))/0x9;if(_0x39e007===_0x2e77d5)break;else _0x1819db['push'](_0x1819db['shift']());}catch(_0x38cb80){_0x1819db['push'](_0x1819db['shift']());}}}(a91_0x3a2f,0x7eb88));const TestFramework=require(a91_0x3c86f1(0xd0)),TestFrameworkState=require(a91_0x3c86f1(0x122)),HookState=require(a91_0x3c86f1(0x8a)),{createClassLogger}=require(a91_0x3c86f1(0x6e)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a91_0x3c86f1(0xfc)),TrackedInstance=require(a91_0x3c86f1(0x11d)),TestFrameworkConstants=require(a91_0x3c86f1(0x105)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x3c86f1(0x84)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x3c86f1(0xc8)),util=require(a91_0x3c86f1(0xe0)),TestInfo=require(a91_0x3c86f1(0xb1)),GrpcClient=require(a91_0x3c86f1(0xe8));class CucumberTestFramework extends TestFramework{constructor(_0x48a6fb,_0x314917,_0x1e2c64){super(_0x48a6fb,_0x314917,_0x1e2c64);}async[a91_0x3c86f1(0x126)](_0x158b73,_0x584dcf,_0x44c432={}){const _0x5e4a7b=a91_0x3c86f1,_0x42048e={};_0x42048e[_0x5e4a7b(0x127)]=_0x5e4a7b(0x111),_0x42048e['BWxoI']=function(_0x598ca3,_0x30d363){return _0x598ca3===_0x30d363;},_0x42048e[_0x5e4a7b(0xc5)]=_0x5e4a7b(0xea);const _0x4c3b7b=_0x42048e;await super[_0x5e4a7b(0x126)](_0x158b73,_0x584dcf,_0x44c432);const _0x1b123a=this[_0x5e4a7b(0x10e)](_0x158b73,_0x584dcf,_0x44c432);if(!_0x1b123a){logger[_0x5e4a7b(0xef)](_0x4c3b7b['QijQO']);return;}try{let _0x1e92de,_0x185f9f;switch(_0x158b73){case TestFrameworkState['TEST']:_0x1e92de=_0x44c432[_0x5e4a7b(0xc6)],_0x185f9f=TestInfo[_0x5e4a7b(0xfa)](_0x1e92de['id']);if(_0x4c3b7b[_0x5e4a7b(0xd6)](_0x584dcf,HookState[_0x5e4a7b(0x92)])){logger[_0x5e4a7b(0xef)](_0x5e4a7b(0x8e)+_0x1e92de['id']);const _0xc7744={};_0xc7744['testUUID']=_0x185f9f,_0xc7744[_0x5e4a7b(0xfd)]=_0x1e92de,_0x1b123a[_0x5e4a7b(0xa5)](this[_0x5e4a7b(0xff)](_0xc7744)),logger[_0x5e4a7b(0xef)](_0x5e4a7b(0x108)+_0x1e92de['id']),await this[_0x5e4a7b(0xf6)](_0x1b123a,_0x1e92de['id']);}else{if(_0x4c3b7b[_0x5e4a7b(0xd6)](_0x584dcf,HookState[_0x5e4a7b(0x91)])){const _0x39c1a4={};_0x39c1a4[_0x5e4a7b(0x12f)]=_0x185f9f,_0x39c1a4['testData']=_0x1e92de,_0x1b123a[_0x5e4a7b(0xa5)](this[_0x5e4a7b(0xe1)](_0x39c1a4)),await this[_0x5e4a7b(0xf6)](_0x1b123a,_0x1e92de['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4c3b7b[_0x5e4a7b(0xd6)](_0x584dcf,HookState['POST'])&&await this['sendLogCreatedEvent'](_0x1b123a,_0x158b73,_0x44c432);break;default:if(CLIUtils[_0x5e4a7b(0xdc)](_0x158b73[_0x5e4a7b(0x96)]()[_0x5e4a7b(0xf0)]('.')[0x1])){const _0x44b56e=await this['trackHookEvent'](_0x1b123a,_0x158b73,_0x584dcf,_0x44c432);_0x1b123a[_0x5e4a7b(0xa5)](_0x44b56e);}else logger[_0x5e4a7b(0xef)](_0x5e4a7b(0xce)+_0x158b73+_0x5e4a7b(0xd5)+_0x584dcf);break;}}catch(_0x57f50f){logger['error'](util[_0x5e4a7b(0x116)](_0x4c3b7b[_0x5e4a7b(0xc5)],_0x158b73,_0x584dcf,_0x44c432[_0x5e4a7b(0x6f)],_0x57f50f));}_0x44c432['instance']=_0x1b123a,await this[_0x5e4a7b(0xf8)](_0x1b123a,_0x158b73,_0x584dcf,_0x44c432);}[a91_0x3c86f1(0x10e)](_0x23d955,_0xfed076,_0x1daf01={}){const _0xd547a1=a91_0x3c86f1,_0x1cd614={};_0x1cd614['TSmyO']=function(_0x5a0384,_0x142600){return _0x5a0384===_0x142600;};const _0x4f0894=_0x1cd614;let _0xf2d773=null;return(_0x4f0894[_0xd547a1(0x124)](_0x23d955,TestFrameworkState[_0xd547a1(0x102)])||_0x4f0894[_0xd547a1(0x124)](_0x23d955,TestFrameworkState['NONE']))&&this[_0xd547a1(0x8f)](_0x23d955,_0x1daf01),_0xf2d773=TestFramework['getTrackedInstance'](),_0xf2d773;}[a91_0x3c86f1(0x8f)](_0x5113ad,_0x18bb30){const _0x4849c5=a91_0x3c86f1,_0x1c8d47=CLIUtils[_0x4849c5(0xe9)](),_0x116375=TrackedInstance['createContext'](_0x1c8d47);let _0x5dc9b0=null;logger['debug'](_0x4849c5(0x98)+_0x1c8d47+',\x20state='+_0x5113ad),_0x5dc9b0=new TestFrameworkInstance(_0x116375,this['getTestFrameworks'](),this[_0x4849c5(0x86)](),_0x5113ad,HookState[_0x4849c5(0x8b)]),TestFramework[_0x4849c5(0x9c)](_0x116375,_0x5dc9b0),logger['debug'](_0x4849c5(0xcd)+_0x116375['getId']()+_0x4849c5(0x81)+_0x1c8d47);}[a91_0x3c86f1(0xff)](_0x4c1981){const _0x5df740=a91_0x3c86f1,_0x2c129d={};_0x2c129d[_0x5df740(0xd2)]=_0x5df740(0x9f);const _0x3adf67=_0x2c129d,{testUUID:_0x53beb2,testData:_0x32463c}=_0x4c1981;if(!_0x32463c||!_0x32463c['uuid'])return logger[_0x5df740(0xef)](_0x3adf67['iHajG']),{};const _0x20cd6b=_0x53beb2,_0x2fd2fb=_0x32463c[_0x5df740(0xc8)],_0x1c28a0=this['getTestFrameworks']()[0x0],_0x59defa=this[_0x5df740(0x86)](),_0x36d4b9={[TestFrameworkConstants[_0x5df740(0x115)]]:_0x1c28a0,[TestFrameworkConstants[_0x5df740(0x87)]]:_0x59defa[_0x1c28a0],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x20cd6b,[TestFrameworkConstants[_0x5df740(0x109)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x32463c[_0x5df740(0x73)]||'',[TestFrameworkConstants[_0x5df740(0x104)]]:_0x32463c[_0x5df740(0x106)]||'',[TestFrameworkConstants[_0x5df740(0x90)]]:_0x2fd2fb,[TestFrameworkConstants[_0x5df740(0x6c)]]:_0x32463c[_0x5df740(0x73)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x32463c[_0x5df740(0x72)]||'',[TestFrameworkConstants[_0x5df740(0x103)]]:_0x32463c['body']?.[_0x5df740(0xde)]||null,[TestFrameworkConstants[_0x5df740(0xda)]]:_0x32463c[_0x5df740(0xa3)]||[],[TestFrameworkConstants[_0x5df740(0x75)]]:_0x32463c[_0x5df740(0x82)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x5df740(0xa1)]]:_0x32463c['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x5df740(0xac)]]:_0x32463c[_0x5df740(0x85)]||[],[TestFrameworkConstants[_0x5df740(0xa8)]]:_0x32463c['customRerunParam']?.[_0x5df740(0xd4)]||_0x32463c[_0x5df740(0x73)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x5df740(0xab)]]:_0x32463c['meta']||{}};TestInfo['setTestDetails'](_0x2fd2fb,_0x36d4b9),logger[_0x5df740(0xef)](_0x5df740(0xdf)+_0x32463c[_0x5df740(0x73)]+'\x20with\x20UUID:\x20'+_0x20cd6b);const _0x3d3495={};return _0x3d3495[_0x2fd2fb]=_0x36d4b9,_0x3d3495;}[a91_0x3c86f1(0xe1)](_0x1d01bf){const _0x2567b5=a91_0x3c86f1,_0x47a5e9={'bTXNF':_0x2567b5(0xd9),'xSoAn':_0x2567b5(0x119),'eIsXA':function(_0x53fb3c,_0xfb2444){return _0x53fb3c===_0xfb2444;},'nGhRh':_0x2567b5(0xcf),'lElud':'UnhandledError','MUFrF':function(_0x322462,_0x279a1e,_0x35b7bb){return _0x322462(_0x279a1e,_0x35b7bb);},'UevXo':function(_0xaf3e45,_0x465a9b){return _0xaf3e45>_0x465a9b;},'utQGb':function(_0x3d153d,_0x44fc11){return _0x3d153d>_0x44fc11;}},{testUUID:_0x31e15a,testData:_0x8bf904}=_0x1d01bf;if(!_0x8bf904||!_0x8bf904['uuid'])return logger[_0x2567b5(0xef)](_0x47a5e9['bTXNF']),{};const _0x3e88bc=this['resolveInstance'](TestFrameworkState['TEST'],HookState[_0x2567b5(0x91)]),_0x20dc58=_0x8bf904['uuid'],_0x52a8df=TestInfo[_0x2567b5(0xe4)](_0x20dc58)||{},_0x12d300=_0x52a8df?_0x52a8df[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x16cb52={..._0x52a8df,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x8bf904[_0x2567b5(0xc1)]||_0x47a5e9[_0x2567b5(0x7f)],[TestFrameworkConstants[_0x2567b5(0xa6)]]:_0x8bf904[_0x2567b5(0xa9)]||new Date()[_0x2567b5(0xf9)](),[TestFrameworkConstants[_0x2567b5(0xbe)]]:new Date()[_0x2567b5(0xf9)](),[TestFrameworkConstants[_0x2567b5(0xf5)]]:_0x12d300,[TestFrameworkConstants[_0x2567b5(0x89)]]:[],[TestFrameworkConstants[_0x2567b5(0xab)]]:_0x8bf904[_0x2567b5(0x93)]||{}};_0x47a5e9['eIsXA'](_0x8bf904[_0x2567b5(0xc1)],_0x47a5e9['nGhRh'])&&_0x8bf904[_0x2567b5(0x11f)]&&(_0x16cb52[TestFrameworkConstants[_0x2567b5(0xc4)]]=_0x8bf904['failure_type']||_0x47a5e9['lElud'],_0x16cb52[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x8bf904[_0x2567b5(0xb3)]||'',_0x16cb52[TestFrameworkConstants[_0x2567b5(0xe6)]]=_0x8bf904[_0x2567b5(0x11f)]);const _0xc78397=TestInfo[_0x2567b5(0xe4)](_0x20dc58)[TestFrameworkConstants[_0x2567b5(0x11a)]]||{},_0x3d861f=_0x47a5e9[_0x2567b5(0xb7)](getManualUploadLogs,_0xc78397,_0x3e88bc['getAllData']()['get'](_0x20dc58)[TestFrameworkConstants[_0x2567b5(0xb4)]]);if(_0x47a5e9['UevXo'](_0x3d861f[_0x2567b5(0x6f)],0x0)){const _0x561388=_0x16cb52[TestFrameworkConstants['KEY_LOGS']]||[];_0x16cb52[TestFrameworkConstants[_0x2567b5(0x89)]]=[..._0x561388,..._0x3d861f];}_0x8bf904[_0x2567b5(0x97)]&&_0x47a5e9[_0x2567b5(0x130)](_0x8bf904[_0x2567b5(0x97)][_0x2567b5(0x6f)],0x0)&&(_0x16cb52[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x8bf904['hooks']);TestInfo['setTestDetails'](_0x20dc58,_0x16cb52),logger[_0x2567b5(0xef)](_0x2567b5(0xd1)+_0x8bf904[_0x2567b5(0x73)]+_0x2567b5(0xc9)+_0x8bf904['result']);const _0x5ecf1f={};return _0x5ecf1f[_0x20dc58]=_0x16cb52,_0x5ecf1f;}async[a91_0x3c86f1(0xd3)](_0x369c3f,_0x36ddb6,_0x772af1,_0x2fecb5){const _0x28a945=a91_0x3c86f1,_0x40df11={'OVsMw':_0x28a945(0x74),'WBGXN':function(_0x1b9d23){return _0x1b9d23();},'fGnKV':function(_0x3eeadc,_0x3c5591){return _0x3eeadc in _0x3c5591;},'IlezQ':function(_0x2a92c4,_0x161d82){return _0x2a92c4===_0x161d82;},'IGIbd':function(_0xc64147,_0x559129){return _0xc64147>_0x559129;},'PweFH':'failed','VqTNU':'UnhandledError','nkIIC':_0x28a945(0xfe),'FCbrk':function(_0x5e3de8,_0x350fa3){return _0x5e3de8!==_0x350fa3;}},{hookData:_0xbaf812}=_0x2fecb5;if(!_0xbaf812)return logger[_0x28a945(0xef)](_0x40df11[_0x28a945(0xb5)]),{};const _0x528f5f=_0xbaf812[_0x28a945(0xc8)]||_0x40df11[_0x28a945(0xcc)](uuidv4),_0x546059=_0xbaf812[_0x28a945(0xf1)],_0x566c60=_0x36ddb6[_0x28a945(0x96)]()[_0x28a945(0xf0)]('.')[0x1],_0x3f1ec3=TestInfo[_0x28a945(0xe4)](_0x546059)[TestFrameworkConstants[_0x28a945(0xf5)]]||{},_0x4a8b2d=_0x369c3f[_0x28a945(0x6d)]()[_0x28a945(0xdd)](_0x546059);if(!_0x4a8b2d)return logger[_0x28a945(0xef)](_0x28a945(0xbc)+_0x546059+_0x28a945(0xa7)),this[_0x28a945(0xa4)](_0x369c3f,_0x546059,_0x36ddb6,_0x772af1,_0x2fecb5),{};let _0x1f52bc=_0x4a8b2d[TestFrameworkConstants[_0x28a945(0x12c)]];!_0x1f52bc&&(_0x1f52bc={});!_0x40df11[_0x28a945(0xbb)](_0x566c60,_0x1f52bc)&&(_0x1f52bc[_0x566c60]=[]);let _0x1f55ab=_0x4a8b2d[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x1f55ab&&(_0x1f55ab={});!_0x40df11[_0x28a945(0xbb)](_0x566c60,_0x1f55ab)&&(_0x1f55ab[_0x566c60]=[]);const _0x5dea56={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x1f52bc,[TestFrameworkConstants[_0x28a945(0xee)]]:_0x1f55ab},_0x2dcfe0={};_0x2dcfe0[_0x546059]=_0x5dea56;const _0x4d38b5=_0x2dcfe0;if(_0x40df11[_0x28a945(0x95)](_0x772af1,HookState[_0x28a945(0x92)])){const _0x17152d={[TestFrameworkConstants[_0x28a945(0xaa)]]:_0x528f5f,[TestFrameworkConstants[_0x28a945(0x76)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x28a945(0x99)]]:_0xbaf812[_0x28a945(0x101)],[TestFrameworkConstants[_0x28a945(0x129)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0xbaf812['hook_type'],[TestFrameworkConstants[_0x28a945(0xf5)]]:_0x3f1ec3};_0x17152d[_0x28a945(0x77)]=_0x566c60;const _0x3707e6=_0x17152d;_0x1f52bc[_0x566c60][_0x28a945(0xbd)](_0x3707e6),_0x4d38b5[_0x546059][TestFrameworkConstants[_0x28a945(0xfb)]]=_0x566c60,logger[_0x28a945(0xef)](_0x28a945(0xae)+_0x566c60+_0x28a945(0x113)+_0x3707e6+_0x28a945(0x117)+_0x2fecb5);}else{if(_0x40df11[_0x28a945(0x95)](_0x772af1,HookState[_0x28a945(0x91)])){const _0x277a7f=_0xbaf812[_0x28a945(0xc1)],_0x4ac1a6=_0x1f52bc[_0x566c60]||[];logger[_0x28a945(0xef)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x4ac1a6+'\x20and\x20args\x20=\x20'+_0x2fecb5);if(_0x40df11[_0x28a945(0x12b)](_0x4ac1a6[_0x28a945(0x6f)],0x0)){const _0x298383=_0x4ac1a6[_0x28a945(0xd8)]();_0x40df11[_0x28a945(0x95)](_0xbaf812[_0x28a945(0xc1)],_0x40df11['PweFH'])&&_0xbaf812[_0x28a945(0x7e)]?(_0x298383[TestFrameworkConstants[_0x28a945(0x107)]]=_0xbaf812['failure_type']||_0x40df11['VqTNU'],_0x298383[TestFrameworkConstants[_0x28a945(0x12e)]]=_0xbaf812[_0x28a945(0xb3)]||'',_0x298383[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0xbaf812[_0x28a945(0x7e)]):_0x298383[TestFrameworkConstants[_0x28a945(0x76)]]=_0x40df11[_0x28a945(0x10d)];_0x40df11['FCbrk'](_0x277a7f,TestFrameworkConstants[_0x28a945(0xe7)])&&(_0x298383[TestFrameworkConstants[_0x28a945(0x76)]]=_0x277a7f);_0x298383[TestFrameworkConstants[_0x28a945(0xd7)]]=_0xbaf812[_0x28a945(0xf3)]||new Date()['toISOString'](),_0x298383[TestFrameworkConstants[_0x28a945(0xf5)]]=_0x3f1ec3;const _0x2e6ff9=_0x298383[TestFrameworkConstants['KEY_HOOK_ID']];!_0x1f55ab[_0x566c60]&&(_0x1f55ab[_0x566c60]=[]),_0x1f55ab[_0x566c60]['push'](_0x298383),_0x4d38b5[_0x546059][TestFrameworkConstants[_0x28a945(0x128)]]=_0x566c60;}}}return logger[_0x28a945(0xef)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0xbaf812['hook_type']+_0x28a945(0xed)+_0x528f5f+_0x28a945(0xb0)+_0x546059),_0x4d38b5;}[a91_0x3c86f1(0x11e)](_0x252abb){const _0x399184=a91_0x3c86f1,_0x4bb3b4={};_0x4bb3b4['qXRqI']=_0x399184(0xa0);const _0xe2cca6=_0x4bb3b4;try{const _0x4973cc=_0x252abb[_0x399184(0xc6)]?_0x252abb[_0x399184(0xc6)]['id']:_0x252abb[_0x399184(0xb8)][_0x399184(0xf1)],_0x4b4d8c=_0x252abb[_0x399184(0xe5)],_0x54e8fb=_0x4b4d8c['getContext'](),_0x34f89e=_0x4b4d8c[_0x399184(0x6d)]()['get'](_0x4973cc);if(!_0x34f89e)return logger[_0x399184(0xef)](_0x399184(0xeb)+_0x4973cc),{};logger['debug']('createTestFrameworkEventPayload\x20testId:\x20'+_0x4973cc);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x361eec='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1a5be5='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x45bfa7='',[TestFrameworkConstants[_0x399184(0xa6)]]:_0x588c98=''}=_0x34f89e,_0x403840=_0x4b4d8c[_0x399184(0x94)]()[_0x399184(0x96)]()[_0x399184(0xf0)]('.')[0x1],_0x69c3a5=_0x4b4d8c[_0x399184(0x7a)]()[_0x399184(0x96)]()['split']('.')[0x1],_0x411e6b=global?.[_0x399184(0x8c)]??0x0,_0x1eb661=_0x4b4d8c[_0x399184(0xec)](),_0x144f0a=Buffer[_0x399184(0x10c)](JSON['stringify'](_0x34f89e))[_0x399184(0x96)](_0xe2cca6[_0x399184(0x7b)]),_0x169a9f={'hash':_0x54e8fb[_0x399184(0x110)](),'threadId':_0x54e8fb[_0x399184(0x9e)]()[_0x399184(0x96)](),'processId':_0x54e8fb[_0x399184(0x112)]()[_0x399184(0x96)]()},_0x1deee8={};_0x1deee8[_0x399184(0x83)]=_0x411e6b,_0x1deee8[_0x399184(0x121)]=_0x361eec,_0x1deee8['testFrameworkVersion']=_0x1a5be5,_0x1deee8[_0x399184(0xba)]=_0x403840,_0x1deee8[_0x399184(0xb2)]=_0x69c3a5,_0x1deee8[_0x399184(0x82)]=_0x45bfa7,_0x1deee8[_0x399184(0x9d)]=_0x588c98,_0x1deee8['uuid']=_0x1eb661,_0x1deee8[_0x399184(0xdb)]=_0x144f0a,_0x1deee8[_0x399184(0xc0)]=_0x169a9f;const _0x42f71f=_0x1deee8;return logger[_0x399184(0xef)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x4973cc+'\x20testState:\x20'+_0x403840+'\x20hookState:\x20'+_0x69c3a5),_0x42f71f;}catch(_0x4ce7e9){return logger[_0x399184(0x114)](_0x399184(0x10b)+util[_0x399184(0x116)](_0x4ce7e9)),{};}}async[a91_0x3c86f1(0x11c)](_0x39d9b0,_0x1a1ef1,_0x5334eb){const _0x473287=a91_0x3c86f1,_0x4689e8={'xImYj':function(_0x12d824,_0x16f4f3,_0x58f96b){return _0x12d824(_0x16f4f3,_0x58f96b);},'XWlzf':function(_0x107cfb,_0x527b6d){return _0x107cfb===_0x527b6d;},'tvynA':_0x473287(0x6a),'IaWTD':function(_0x673c33,_0x1d2175){return _0x673c33/_0x1d2175;},'GlAhq':function(_0x19543a,_0x5c667d){return _0x19543a<_0x5c667d;},'kMOEM':function(_0x2546c0,_0x230d1e){return _0x2546c0*_0x230d1e;},'iSUTq':function(_0x516343,_0x11f422){return _0x516343+_0x11f422;},'eGmMx':'Cucumber\x20log\x20created\x20event'};try{const _0x518350=_0x5334eb[_0x473287(0x12f)],_0x2d3b99=_0x39d9b0[_0x473287(0x6d)]()[_0x473287(0xdd)](_0x518350),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0xda30ae='',[TestFrameworkConstants[_0x473287(0x87)]]:_0x597ee5=''}=_0x2d3b99,_0x20e47b=TestInfo[_0x473287(0xb9)](_0x518350),_0x282e7b=TestInfo[_0x473287(0xe4)](_0x518350)[TestFrameworkConstants[_0x473287(0x11a)]]||{},_0x3fb47b=_0x4689e8[_0x473287(0x10a)](getMediaArtifactsLogs,_0x282e7b,_0x39d9b0['getAllData']()[_0x473287(0xdd)](_0x518350)[TestFrameworkConstants[_0x473287(0xb4)]]),_0x38edfa=(_0x20e47b||[])[_0x473287(0x125)](_0x3fb47b||[]);if(!_0x38edfa||_0x4689e8[_0x473287(0x9b)](_0x38edfa[_0x473287(0x6f)],0x0)){logger['debug'](_0x4689e8[_0x473287(0x118)]);return;}const _0x5598c2=0x28,_0x36868f=Math[_0x473287(0xca)](_0x4689e8[_0x473287(0x10f)](_0x38edfa['length'],_0x5598c2));for(let _0x26a79a=0x0;_0x4689e8['GlAhq'](_0x26a79a,_0x36868f);_0x26a79a++){const _0x3e52bf=_0x4689e8['kMOEM'](_0x26a79a,_0x5598c2),_0x382803=_0x4689e8[_0x473287(0xf7)](_0x3e52bf,_0x5598c2),_0x1360e2=_0x38edfa[_0x473287(0xe3)](_0x3e52bf,_0x382803),_0x3d9c6d={'platformIndex':global?.[_0x473287(0x8c)]??0x0,'logs':_0x1360e2,'testFrameworkName':_0xda30ae,'testFrameworkVersion':_0x597ee5,'testFrameworkState':_0x1a1ef1[_0x473287(0x96)]()[_0x473287(0xf0)]('.')[0x1]};logger[_0x473287(0xef)](_0x473287(0xc2)+_0x518350+_0x473287(0xcb)+_0x4689e8[_0x473287(0xf7)](_0x26a79a,0x1)+'/'+_0x36868f+'\x20payload='+util['inspect'](_0x3d9c6d));const _0x2a25dc=await GrpcClient[_0x473287(0x7c)]()[_0x473287(0x11b)](_0x3d9c6d);logger[_0x473287(0xef)](_0x473287(0xc2)+_0x518350+_0x473287(0xcb)+_0x4689e8['iSUTq'](_0x26a79a,0x1)+'/'+_0x36868f+_0x473287(0x7d)+util[_0x473287(0x88)](_0x2a25dc));}}catch(_0x2b9161){logger[_0x473287(0x114)](_0x473287(0x70)+util[_0x473287(0x116)](_0x2b9161));}logger[_0x473287(0xef)](_0x4689e8[_0x473287(0x9a)]);}['storePendingHook'](_0x2520df,_0x74a8b8,_0x3d9938,_0x51ad01,_0x5be5de){const _0x17bb30=a91_0x3c86f1,_0xca9e73={'testId':_0x74a8b8,'testFrameworkState':_0x3d9938,'hookState':_0x51ad01,'args':_0x5be5de,'timestamp':new Date()[_0x17bb30(0xf9)]()};_0x2520df['addPendingHook'](_0x74a8b8,_0xca9e73),logger[_0x17bb30(0xef)](_0x17bb30(0xc7)+_0x74a8b8+_0x17bb30(0x100)+_0x3d9938+',\x20hookState:\x20'+_0x51ad01);}async[a91_0x3c86f1(0xf6)](_0x514882,_0x565b95){const _0x203238=a91_0x3c86f1,_0xaf339e={};_0xaf339e[_0x203238(0xf4)]=function(_0x331f94,_0x23a5e8){return _0x331f94>_0x23a5e8;};const _0x3ee2fc=_0xaf339e;if(!_0x514882[_0x203238(0xaf)](_0x565b95))return;const _0x46949d=_0x514882['getPendingHooks'](_0x565b95);logger['debug'](_0x203238(0xc3)+_0x46949d[_0x203238(0x6f)]+_0x203238(0x12d)+_0x565b95);for(const _0x2c0c89 of _0x46949d){try{const _0x258429=await this['trackHookEvent'](_0x514882,_0x2c0c89[_0x203238(0xba)],_0x2c0c89['hookState'],_0x2c0c89[_0x203238(0xad)]);_0x258429&&_0x3ee2fc[_0x203238(0xf4)](Object[_0x203238(0x6b)](_0x258429)[_0x203238(0x6f)],0x0)&&_0x514882[_0x203238(0xa5)](_0x258429),await this['runHooks'](_0x514882,_0x2c0c89[_0x203238(0xba)],_0x2c0c89[_0x203238(0xb2)],_0x2c0c89['args']);}catch(_0x1398f4){logger[_0x203238(0x114)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x565b95+_0x203238(0xb6)+_0x1398f4);}}_0x514882[_0x203238(0x80)](_0x565b95),logger['debug'](_0x203238(0xa2)+_0x565b95);}}module[a91_0x3c86f1(0x12a)]=CucumberTestFramework;
1
+ function a91_0x17ff(_0x28023d,_0x517800){const _0x114419=a91_0x1144();return a91_0x17ff=function(_0x17ff30,_0x34cd22){_0x17ff30=_0x17ff30-0x197;let _0x4b35db=_0x114419[_0x17ff30];return _0x4b35db;},a91_0x17ff(_0x28023d,_0x517800);}const a91_0x57e26c=a91_0x17ff;(function(_0x1fa90a,_0x270ad8){const _0x57b450=a91_0x17ff,_0x5adf2c=_0x1fa90a();while(!![]){try{const _0x3aec16=-parseInt(_0x57b450(0x1de))/0x1+-parseInt(_0x57b450(0x22d))/0x2*(-parseInt(_0x57b450(0x1c9))/0x3)+-parseInt(_0x57b450(0x212))/0x4+-parseInt(_0x57b450(0x1b6))/0x5+parseInt(_0x57b450(0x20a))/0x6+parseInt(_0x57b450(0x267))/0x7*(parseInt(_0x57b450(0x1b9))/0x8)+-parseInt(_0x57b450(0x1ef))/0x9*(-parseInt(_0x57b450(0x241))/0xa);if(_0x3aec16===_0x270ad8)break;else _0x5adf2c['push'](_0x5adf2c['shift']());}catch(_0x1d155d){_0x5adf2c['push'](_0x5adf2c['shift']());}}}(a91_0x1144,0xbc499));const TestFramework=require(a91_0x57e26c(0x1b3)),TestFrameworkState=require(a91_0x57e26c(0x1e3)),HookState=require(a91_0x57e26c(0x238)),{createClassLogger}=require(a91_0x57e26c(0x203)),TestFrameworkInstance=require(a91_0x57e26c(0x1a6)),CLIUtils=require(a91_0x57e26c(0x1bf)),TrackedInstance=require(a91_0x57e26c(0x247)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x57e26c(0x231)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x57e26c(0x261)),util=require(a91_0x57e26c(0x21e)),TestInfo=require(a91_0x57e26c(0x1e7)),GrpcClient=require(a91_0x57e26c(0x1ea));class CucumberTestFramework extends TestFramework{constructor(_0x50799a,_0x5e8b14,_0xe67160){super(_0x50799a,_0x5e8b14,_0xe67160);}async[a91_0x57e26c(0x1f3)](_0x229a4f,_0x521f74,_0x29e1a0={}){const _0x5b07f2=a91_0x57e26c,_0x34cc5e={};_0x34cc5e[_0x5b07f2(0x23c)]=_0x5b07f2(0x217),_0x34cc5e['wdzmg']=function(_0x17aa88,_0x3b9519){return _0x17aa88===_0x3b9519;},_0x34cc5e[_0x5b07f2(0x1c3)]=function(_0x15e436,_0x4923a2){return _0x15e436===_0x4923a2;},_0x34cc5e[_0x5b07f2(0x25a)]=function(_0x3ea277,_0x5c0827){return _0x3ea277===_0x5c0827;},_0x34cc5e[_0x5b07f2(0x1ce)]=_0x5b07f2(0x1a3);const _0x41c5f7=_0x34cc5e;await super[_0x5b07f2(0x1f3)](_0x229a4f,_0x521f74,_0x29e1a0);const _0x2aac43=this['resolveInstance'](_0x229a4f,_0x521f74,_0x29e1a0);if(!_0x2aac43){logger['debug'](_0x41c5f7['WAhqR']);return;}try{let _0xc0f0c6,_0x456df0;switch(_0x229a4f){case TestFrameworkState[_0x5b07f2(0x1f5)]:_0xc0f0c6=_0x29e1a0['test'],_0x456df0=TestInfo['getTestUUID'](_0xc0f0c6['id']);if(_0x41c5f7['wdzmg'](_0x521f74,HookState[_0x5b07f2(0x197)])){logger[_0x5b07f2(0x23d)](_0x5b07f2(0x1fe)+_0xc0f0c6['id']);const _0x11fa4d={};_0x11fa4d['testUUID']=_0x456df0,_0x11fa4d['testData']=_0xc0f0c6,_0x2aac43[_0x5b07f2(0x204)](this['parseCucumberTest'](_0x11fa4d)),logger[_0x5b07f2(0x23d)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xc0f0c6['id']),await this[_0x5b07f2(0x1e4)](_0x2aac43,_0xc0f0c6['id']);}else{if(_0x41c5f7[_0x5b07f2(0x1c3)](_0x521f74,HookState[_0x5b07f2(0x213)])){const _0x5a1ac5={};_0x5a1ac5['testUUID']=_0x456df0,_0x5a1ac5[_0x5b07f2(0x232)]=_0xc0f0c6,_0x2aac43['addMultipleEntries'](this[_0x5b07f2(0x1c5)](_0x5a1ac5)),await this['processPendingHooks'](_0x2aac43,_0xc0f0c6['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x41c5f7[_0x5b07f2(0x25a)](_0x521f74,HookState[_0x5b07f2(0x213)])&&await this['sendLogCreatedEvent'](_0x2aac43,_0x229a4f,_0x29e1a0);break;default:if(CLIUtils[_0x5b07f2(0x1b4)](_0x229a4f[_0x5b07f2(0x1d1)]()['split']('.')[0x1])){const _0x53a2d8=await this[_0x5b07f2(0x1f2)](_0x2aac43,_0x229a4f,_0x521f74,_0x29e1a0);_0x2aac43[_0x5b07f2(0x204)](_0x53a2d8);}else logger[_0x5b07f2(0x23d)](_0x5b07f2(0x262)+_0x229a4f+_0x5b07f2(0x24a)+_0x521f74);break;}}catch(_0x3ac514){logger[_0x5b07f2(0x25b)](util['format'](_0x41c5f7[_0x5b07f2(0x1ce)],_0x229a4f,_0x521f74,_0x29e1a0[_0x5b07f2(0x1f1)],_0x3ac514));}_0x29e1a0[_0x5b07f2(0x21f)]=_0x2aac43,await this[_0x5b07f2(0x21a)](_0x2aac43,_0x229a4f,_0x521f74,_0x29e1a0);}[a91_0x57e26c(0x1ba)](_0x167417,_0x2c0ebe,_0x8d0fe2={}){const _0x28072f=a91_0x57e26c,_0x3367a3={};_0x3367a3[_0x28072f(0x1c0)]=function(_0x491033,_0x2a3a1b){return _0x491033===_0x2a3a1b;},_0x3367a3[_0x28072f(0x218)]=function(_0x2bb640,_0x5943d6){return _0x2bb640===_0x5943d6;};const _0xc4a2fa=_0x3367a3;let _0x29b28c=null;return(_0xc4a2fa[_0x28072f(0x1c0)](_0x167417,TestFrameworkState[_0x28072f(0x227)])||_0xc4a2fa[_0x28072f(0x218)](_0x167417,TestFrameworkState['NONE']))&&this['trackCucumberInstance'](_0x167417,_0x8d0fe2),_0x29b28c=TestFramework[_0x28072f(0x1fd)](),_0x29b28c;}[a91_0x57e26c(0x264)](_0x1a8c2f,_0xf5aa8a){const _0x3e7212=a91_0x57e26c,_0x3f1e6d=CLIUtils[_0x3e7212(0x1df)](),_0x19609e=TrackedInstance[_0x3e7212(0x1dd)](_0x3f1e6d);let _0x1d2751=null;logger[_0x3e7212(0x23d)](_0x3e7212(0x25c)+_0x3f1e6d+',\x20state='+_0x1a8c2f),_0x1d2751=new TestFrameworkInstance(_0x19609e,this[_0x3e7212(0x1ff)](),this[_0x3e7212(0x268)](),_0x1a8c2f,HookState[_0x3e7212(0x19f)]),TestFramework[_0x3e7212(0x22c)](_0x19609e,_0x1d2751),logger[_0x3e7212(0x23d)](_0x3e7212(0x24d)+_0x19609e['getId']()+_0x3e7212(0x1b7)+_0x3f1e6d);}['parseCucumberTest'](_0xf98f2f){const _0x620bd6=a91_0x57e26c,_0x38929f={};_0x38929f['eAhGf']=_0x620bd6(0x256);const _0x8912c1=_0x38929f,{testUUID:_0x1d759d,testData:_0x567fc6}=_0xf98f2f;if(!_0x567fc6||!_0x567fc6[_0x620bd6(0x261)])return logger[_0x620bd6(0x23d)](_0x8912c1[_0x620bd6(0x1a9)]),{};const _0x2d4984=_0x1d759d,_0x496a3b=_0x567fc6[_0x620bd6(0x261)],_0x33803e=this['getTestFrameworks']()[0x0],_0x499a1b=this[_0x620bd6(0x268)](),_0xa1494b={[TestFrameworkConstants[_0x620bd6(0x1e5)]]:_0x33803e,[TestFrameworkConstants[_0x620bd6(0x216)]]:_0x499a1b[_0x33803e],[TestFrameworkConstants[_0x620bd6(0x211)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x620bd6(0x23e)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x2d4984,[TestFrameworkConstants[_0x620bd6(0x221)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x620bd6(0x21c)]]:_0x567fc6['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x567fc6[_0x620bd6(0x236)]||'',[TestFrameworkConstants[_0x620bd6(0x21d)]]:_0x496a3b,[TestFrameworkConstants[_0x620bd6(0x205)]]:_0x567fc6['name']||'',[TestFrameworkConstants[_0x620bd6(0x1be)]]:_0x567fc6[_0x620bd6(0x1ec)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x567fc6[_0x620bd6(0x24e)]?.[_0x620bd6(0x265)]||null,[TestFrameworkConstants[_0x620bd6(0x1b0)]]:_0x567fc6[_0x620bd6(0x1f6)]||[],[TestFrameworkConstants[_0x620bd6(0x1ad)]]:_0x567fc6[_0x620bd6(0x20c)]||new Date()[_0x620bd6(0x215)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x567fc6[_0x620bd6(0x1f9)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x567fc6[_0x620bd6(0x1f9)]||[],[TestFrameworkConstants[_0x620bd6(0x22e)]]:_0x567fc6[_0x620bd6(0x1d3)]?.['rerun_name']||_0x567fc6[_0x620bd6(0x1af)]||'',[TestFrameworkConstants[_0x620bd6(0x208)]]:{},[TestFrameworkConstants[_0x620bd6(0x1ab)]]:_0x567fc6[_0x620bd6(0x1c2)]||{}};TestInfo[_0x620bd6(0x202)](_0x496a3b,_0xa1494b),logger[_0x620bd6(0x23d)](_0x620bd6(0x242)+_0x567fc6['name']+_0x620bd6(0x1a8)+_0x2d4984);const _0xe8dd87={};return _0xe8dd87[_0x496a3b]=_0xa1494b,_0xe8dd87;}[a91_0x57e26c(0x1c5)](_0x39112f){const _0x426771=a91_0x57e26c,_0x58da79={'tBbnZ':_0x426771(0x239),'Tgdny':_0x426771(0x223),'kInER':function(_0x49537b,_0x4a7c9c){return _0x49537b===_0x4a7c9c;},'ZsCKB':_0x426771(0x245),'jWwJW':_0x426771(0x1c4),'cMUzp':function(_0x55173e,_0x276bb1,_0x3e14af){return _0x55173e(_0x276bb1,_0x3e14af);},'mPgHC':function(_0x567095,_0x1c2e96){return _0x567095>_0x1c2e96;}},{testUUID:_0x2ba469,testData:_0x207f9d}=_0x39112f;if(!_0x207f9d||!_0x207f9d[_0x426771(0x261)])return logger[_0x426771(0x23d)](_0x58da79[_0x426771(0x1f0)]),{};const _0x4f669=this[_0x426771(0x1ba)](TestFrameworkState[_0x426771(0x1f5)],HookState[_0x426771(0x213)]),_0x1b628d=_0x207f9d[_0x426771(0x261)],_0x5cf09c=TestInfo[_0x426771(0x23f)](_0x1b628d)||{},_0x132040=_0x5cf09c?_0x5cf09c[TestFrameworkConstants[_0x426771(0x208)]]||{}:{},_0x18200c={..._0x5cf09c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x207f9d['result']||_0x58da79[_0x426771(0x233)],[TestFrameworkConstants[_0x426771(0x1d9)]]:_0x207f9d[_0x426771(0x259)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x426771(0x1cd)]]:new Date()[_0x426771(0x215)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x132040,[TestFrameworkConstants[_0x426771(0x19a)]]:[],[TestFrameworkConstants[_0x426771(0x1ab)]]:_0x207f9d[_0x426771(0x1c2)]||{}};_0x58da79[_0x426771(0x1d4)](_0x207f9d['result'],_0x58da79[_0x426771(0x251)])&&_0x207f9d[_0x426771(0x19d)]&&(_0x18200c[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x207f9d[_0x426771(0x209)]||_0x58da79[_0x426771(0x19c)],_0x18200c[TestFrameworkConstants[_0x426771(0x1e1)]]=_0x207f9d[_0x426771(0x228)]||'',_0x18200c[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x207f9d['failure']);const _0x2d20cb=TestInfo['getTestDetails'](_0x1b628d)[TestFrameworkConstants[_0x426771(0x22b)]]||{},_0x47fb90=_0x58da79[_0x426771(0x252)](getManualUploadLogs,_0x2d20cb,_0x4f669[_0x426771(0x23b)]()[_0x426771(0x1e2)](_0x1b628d)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x58da79[_0x426771(0x230)](_0x47fb90[_0x426771(0x1f1)],0x0)){const _0x52ee01=_0x18200c[TestFrameworkConstants['KEY_LOGS']]||[];_0x18200c[TestFrameworkConstants['KEY_LOGS']]=[..._0x52ee01,..._0x47fb90];}_0x207f9d[_0x426771(0x20f)]&&_0x58da79['mPgHC'](_0x207f9d['hooks']['length'],0x0)&&(_0x18200c[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x207f9d[_0x426771(0x20f)]);TestInfo[_0x426771(0x202)](_0x1b628d,_0x18200c),logger[_0x426771(0x23d)](_0x426771(0x255)+_0x207f9d[_0x426771(0x1af)]+_0x426771(0x1d7)+_0x207f9d[_0x426771(0x20e)]);const _0x902296={};return _0x902296[_0x1b628d]=_0x18200c,_0x902296;}async[a91_0x57e26c(0x1f2)](_0x2bd70e,_0x35c9af,_0x28ed31,_0x9f5d9c){const _0x5d0ac8=a91_0x57e26c,_0x808d06={'xOgpi':_0x5d0ac8(0x260),'yUCfa':function(_0x400103){return _0x400103();},'szbud':function(_0x410e44,_0x557a70){return _0x410e44 in _0x557a70;},'qQIfj':function(_0x47994a,_0x45d87f){return _0x47994a===_0x45d87f;},'ILVdR':function(_0x17e1d1,_0xcae45b){return _0x17e1d1>_0xcae45b;},'ToCbp':_0x5d0ac8(0x245),'fBMCN':_0x5d0ac8(0x1c4),'MVweg':_0x5d0ac8(0x1fb),'IWTTt':function(_0x48a9b2,_0x46402f){return _0x48a9b2!==_0x46402f;}},{hookData:_0x1e8ba1}=_0x9f5d9c;if(!_0x1e8ba1)return logger[_0x5d0ac8(0x23d)](_0x808d06['xOgpi']),{};const _0x37a5fc=_0x1e8ba1[_0x5d0ac8(0x261)]||_0x808d06[_0x5d0ac8(0x248)](uuidv4),_0x19bada=_0x1e8ba1[_0x5d0ac8(0x19b)],_0xa4e2d7=_0x35c9af[_0x5d0ac8(0x1d1)]()[_0x5d0ac8(0x1b5)]('.')[0x1],_0x41b52a=TestInfo[_0x5d0ac8(0x23f)](_0x19bada)[TestFrameworkConstants[_0x5d0ac8(0x208)]]||{},_0x56dcca=_0x2bd70e['getAllData']()[_0x5d0ac8(0x1e2)](_0x19bada);if(!_0x56dcca)return logger['debug'](_0x5d0ac8(0x1bb)+_0x19bada+',\x20storing\x20as\x20pending\x20hook'),this[_0x5d0ac8(0x1b2)](_0x2bd70e,_0x19bada,_0x35c9af,_0x28ed31,_0x9f5d9c),{};let _0x3ef5d4=_0x56dcca[TestFrameworkConstants[_0x5d0ac8(0x23e)]];!_0x3ef5d4&&(_0x3ef5d4={});!_0x808d06[_0x5d0ac8(0x214)](_0xa4e2d7,_0x3ef5d4)&&(_0x3ef5d4[_0xa4e2d7]=[]);let _0x356146=_0x56dcca[TestFrameworkConstants[_0x5d0ac8(0x200)]];!_0x356146&&(_0x356146={});!_0x808d06[_0x5d0ac8(0x214)](_0xa4e2d7,_0x356146)&&(_0x356146[_0xa4e2d7]=[]);const _0x21238b={[TestFrameworkConstants[_0x5d0ac8(0x23e)]]:_0x3ef5d4,[TestFrameworkConstants[_0x5d0ac8(0x200)]]:_0x356146},_0x198466={};_0x198466[_0x19bada]=_0x21238b;const _0x23f63b=_0x198466;if(_0x808d06[_0x5d0ac8(0x1c7)](_0x28ed31,HookState['PRE'])){const _0x30b7c5={[TestFrameworkConstants[_0x5d0ac8(0x257)]]:_0x37a5fc,[TestFrameworkConstants[_0x5d0ac8(0x253)]]:TestFrameworkConstants[_0x5d0ac8(0x1ae)],[TestFrameworkConstants[_0x5d0ac8(0x21b)]]:_0x1e8ba1[_0x5d0ac8(0x1a1)],[TestFrameworkConstants[_0x5d0ac8(0x1ca)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x1e8ba1[_0x5d0ac8(0x1a2)],[TestFrameworkConstants[_0x5d0ac8(0x208)]]:_0x41b52a};_0x30b7c5[_0x5d0ac8(0x1db)]=_0xa4e2d7;const _0xa37f22=_0x30b7c5;_0x3ef5d4[_0xa4e2d7][_0x5d0ac8(0x1e9)](_0xa37f22),_0x23f63b[_0x19bada][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0xa4e2d7,logger[_0x5d0ac8(0x23d)](_0x5d0ac8(0x1eb)+_0xa4e2d7+_0x5d0ac8(0x206)+_0xa37f22+_0x5d0ac8(0x250)+_0x9f5d9c);}else{if(_0x808d06['qQIfj'](_0x28ed31,HookState[_0x5d0ac8(0x213)])){const _0x2d6778=_0x1e8ba1[_0x5d0ac8(0x20e)],_0x59f24f=_0x3ef5d4[_0xa4e2d7]||[];logger['debug'](_0x5d0ac8(0x1cb)+_0x59f24f+_0x5d0ac8(0x1e0)+_0x9f5d9c);if(_0x808d06['ILVdR'](_0x59f24f[_0x5d0ac8(0x1f1)],0x0)){const _0x10c8e8=_0x59f24f[_0x5d0ac8(0x22f)]();_0x808d06['qQIfj'](_0x1e8ba1[_0x5d0ac8(0x20e)],_0x808d06[_0x5d0ac8(0x1f7)])&&_0x1e8ba1['failure_data']?(_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x1e8)]]=_0x1e8ba1[_0x5d0ac8(0x209)]||_0x808d06[_0x5d0ac8(0x235)],_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x20b)]]=_0x1e8ba1['failure_reason']||'',_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x1cc)]]=_0x1e8ba1[_0x5d0ac8(0x266)]):_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x253)]]=_0x808d06[_0x5d0ac8(0x1d2)];_0x808d06[_0x5d0ac8(0x25d)](_0x2d6778,TestFrameworkConstants[_0x5d0ac8(0x1ae)])&&(_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x253)]]=_0x2d6778);_0x10c8e8[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1e8ba1[_0x5d0ac8(0x234)]||new Date()[_0x5d0ac8(0x215)](),_0x10c8e8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x41b52a;const _0x334fa9=_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x257)]];!_0x356146[_0xa4e2d7]&&(_0x356146[_0xa4e2d7]=[]),_0x356146[_0xa4e2d7]['push'](_0x10c8e8),_0x23f63b[_0x19bada][TestFrameworkConstants[_0x5d0ac8(0x1f4)]]=_0xa4e2d7;}}}return logger[_0x5d0ac8(0x23d)](_0x5d0ac8(0x23a)+_0x1e8ba1[_0x5d0ac8(0x1a2)]+'\x20with\x20id\x20'+_0x37a5fc+_0x5d0ac8(0x1f8)+_0x19bada),_0x23f63b;}[a91_0x57e26c(0x1c6)](_0xc8e6b6){const _0x29bd64=a91_0x57e26c,_0x5bf649={};_0x5bf649[_0x29bd64(0x207)]='base64';const _0x13cd22=_0x5bf649;try{const _0x40f5c5=_0xc8e6b6['test']?_0xc8e6b6[_0x29bd64(0x1ee)]['id']:_0xc8e6b6['hookData'][_0x29bd64(0x19b)],_0x26bd5e=_0xc8e6b6[_0x29bd64(0x21f)],_0x5c0b7b=_0x26bd5e[_0x29bd64(0x1b8)](),_0x3d7294=_0x26bd5e[_0x29bd64(0x23b)]()['get'](_0x40f5c5);if(!_0x3d7294)return logger[_0x29bd64(0x23d)](_0x29bd64(0x25f)+_0x40f5c5),{};logger['debug'](_0x29bd64(0x24c)+_0x40f5c5);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3b66f9='',[TestFrameworkConstants[_0x29bd64(0x216)]]:_0x5b3860='',[TestFrameworkConstants[_0x29bd64(0x1ad)]]:_0x3e01c4='',[TestFrameworkConstants[_0x29bd64(0x1d9)]]:_0x4cc240=''}=_0x3d7294,_0x117a79=_0x26bd5e[_0x29bd64(0x244)]()[_0x29bd64(0x1d1)]()['split']('.')[0x1],_0x2bce9b=_0x26bd5e[_0x29bd64(0x1a7)]()['toString']()['split']('.')[0x1],_0x45ebc1=global?.[_0x29bd64(0x1d0)]??0x0,_0x14cda8=_0x26bd5e['getRef'](),_0x442dde=Buffer['from'](JSON['stringify'](_0x3d7294))['toString'](_0x13cd22[_0x29bd64(0x207)]),_0x23f46c={'hash':_0x5c0b7b[_0x29bd64(0x1a0)](),'threadId':_0x5c0b7b[_0x29bd64(0x263)]()['toString'](),'processId':_0x5c0b7b[_0x29bd64(0x1d5)]()['toString']()},_0x1de5fc={};_0x1de5fc[_0x29bd64(0x243)]=_0x45ebc1,_0x1de5fc['testFrameworkName']=_0x3b66f9,_0x1de5fc[_0x29bd64(0x225)]=_0x5b3860,_0x1de5fc[_0x29bd64(0x246)]=_0x117a79,_0x1de5fc['hookState']=_0x2bce9b,_0x1de5fc[_0x29bd64(0x20c)]=_0x3e01c4,_0x1de5fc[_0x29bd64(0x237)]=_0x4cc240,_0x1de5fc[_0x29bd64(0x261)]=_0x14cda8,_0x1de5fc[_0x29bd64(0x1bd)]=_0x442dde,_0x1de5fc[_0x29bd64(0x20d)]=_0x23f46c;const _0x38ccef=_0x1de5fc;return logger['debug'](_0x29bd64(0x24f)+_0x40f5c5+_0x29bd64(0x240)+_0x117a79+_0x29bd64(0x1c1)+_0x2bce9b),_0x38ccef;}catch(_0x483a30){return logger[_0x29bd64(0x25b)](_0x29bd64(0x1fc)+util['format'](_0x483a30)),{};}}async[a91_0x57e26c(0x1d6)](_0x162209,_0x36a39e,_0x4f37fd){const _0x4651e3=a91_0x57e26c,_0x4797c7={'aJRVu':function(_0x3dca35,_0x5d2be4,_0x41dc65){return _0x3dca35(_0x5d2be4,_0x41dc65);},'KHTAD':function(_0x3a2080,_0x291b1b){return _0x3a2080===_0x291b1b;},'gRVSr':_0x4651e3(0x220),'iRHqy':function(_0x3caef6,_0x3c3b31){return _0x3caef6/_0x3c3b31;},'zewQL':function(_0x40d459,_0x3c7ad2){return _0x40d459<_0x3c7ad2;},'dkNDA':function(_0x5d328e,_0x1ae21a){return _0x5d328e*_0x1ae21a;},'zjlvx':function(_0x5d071a,_0x1790f2){return _0x5d071a+_0x1790f2;},'yETzF':function(_0x18e7bf,_0x41a5ee){return _0x18e7bf+_0x41a5ee;},'vVFen':_0x4651e3(0x219)};try{const _0x25c21=_0x4f37fd[_0x4651e3(0x1da)],_0x25f4ef=_0x162209[_0x4651e3(0x23b)]()[_0x4651e3(0x1e2)](_0x25c21),{[TestFrameworkConstants[_0x4651e3(0x1e5)]]:_0xff34ea='',[TestFrameworkConstants[_0x4651e3(0x216)]]:_0x5d164a=''}=_0x25f4ef,_0x5bf841=TestInfo[_0x4651e3(0x1ed)](_0x25c21),_0x4bbe37=TestInfo[_0x4651e3(0x23f)](_0x25c21)[TestFrameworkConstants[_0x4651e3(0x22b)]]||{},_0x27147e=_0x4797c7[_0x4651e3(0x1d8)](getMediaArtifactsLogs,_0x4bbe37,_0x162209[_0x4651e3(0x23b)]()['get'](_0x25c21)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x26dbb5=(_0x5bf841||[])[_0x4651e3(0x254)](_0x27147e||[]);if(!_0x26dbb5||_0x4797c7[_0x4651e3(0x1ac)](_0x26dbb5['length'],0x0)){logger[_0x4651e3(0x23d)](_0x4797c7['gRVSr']);return;}const _0x217b6d=0x28,_0x3787bb=Math[_0x4651e3(0x249)](_0x4797c7['iRHqy'](_0x26dbb5[_0x4651e3(0x1f1)],_0x217b6d));for(let _0x4b163b=0x0;_0x4797c7[_0x4651e3(0x1fa)](_0x4b163b,_0x3787bb);_0x4b163b++){const _0x38de8d=_0x4797c7[_0x4651e3(0x1dc)](_0x4b163b,_0x217b6d),_0x4896b4=_0x4797c7[_0x4651e3(0x201)](_0x38de8d,_0x217b6d),_0x5aa8bd=_0x26dbb5[_0x4651e3(0x1aa)](_0x38de8d,_0x4896b4),_0x33cc95={'platformIndex':global?.[_0x4651e3(0x1d0)]??0x0,'logs':_0x5aa8bd,'testFrameworkName':_0xff34ea,'testFrameworkVersion':_0x5d164a,'testFrameworkState':_0x36a39e[_0x4651e3(0x1d1)]()[_0x4651e3(0x1b5)]('.')[0x1]};logger[_0x4651e3(0x23d)](_0x4651e3(0x224)+_0x25c21+_0x4651e3(0x229)+_0x4797c7[_0x4651e3(0x1e6)](_0x4b163b,0x1)+'/'+_0x3787bb+'\x20payload='+util[_0x4651e3(0x1a5)](_0x33cc95));const _0x66aaab=await GrpcClient[_0x4651e3(0x222)]()[_0x4651e3(0x19e)](_0x33cc95);logger['debug'](_0x4651e3(0x224)+_0x25c21+_0x4651e3(0x229)+_0x4797c7[_0x4651e3(0x201)](_0x4b163b,0x1)+'/'+_0x3787bb+_0x4651e3(0x199)+util[_0x4651e3(0x1a5)](_0x66aaab));}}catch(_0x5a7413){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x5a7413));}logger['debug'](_0x4797c7[_0x4651e3(0x226)]);}[a91_0x57e26c(0x1b2)](_0x258f75,_0x5d6a21,_0x21abae,_0x20ef23,_0x1c0e87){const _0x297d49=a91_0x57e26c,_0xd57ab7={'testId':_0x5d6a21,'testFrameworkState':_0x21abae,'hookState':_0x20ef23,'args':_0x1c0e87,'timestamp':new Date()['toISOString']()};_0x258f75['addPendingHook'](_0x5d6a21,_0xd57ab7),logger[_0x297d49(0x23d)](_0x297d49(0x198)+_0x5d6a21+_0x297d49(0x258)+_0x21abae+',\x20hookState:\x20'+_0x20ef23);}async[a91_0x57e26c(0x1e4)](_0x17bd24,_0x1d1cbb){const _0x2aec33=a91_0x57e26c,_0xba473f={};_0xba473f['BRbpF']=function(_0x360e1d,_0x5a9bd5){return _0x360e1d>_0x5a9bd5;};const _0x3ed772=_0xba473f;if(!_0x17bd24[_0x2aec33(0x25e)](_0x1d1cbb))return;const _0xa6b096=_0x17bd24['getPendingHooks'](_0x1d1cbb);logger['debug'](_0x2aec33(0x1c8)+_0xa6b096[_0x2aec33(0x1f1)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1d1cbb);for(const _0x4af196 of _0xa6b096){try{const _0x29f833=await this[_0x2aec33(0x1f2)](_0x17bd24,_0x4af196[_0x2aec33(0x246)],_0x4af196[_0x2aec33(0x1cf)],_0x4af196['args']);_0x29f833&&_0x3ed772[_0x2aec33(0x1b1)](Object[_0x2aec33(0x210)](_0x29f833)[_0x2aec33(0x1f1)],0x0)&&_0x17bd24[_0x2aec33(0x204)](_0x29f833),await this[_0x2aec33(0x21a)](_0x17bd24,_0x4af196['testFrameworkState'],_0x4af196[_0x2aec33(0x1cf)],_0x4af196[_0x2aec33(0x24b)]);}catch(_0x59acdf){logger['error'](_0x2aec33(0x1bc)+_0x1d1cbb+',\x20error:\x20'+_0x59acdf);}}_0x17bd24[_0x2aec33(0x1a4)](_0x1d1cbb),logger['debug']('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1d1cbb);}}module[a91_0x57e26c(0x22a)]=CucumberTestFramework;function a91_0x1144(){const _0x20be61=['jWwJW','failure','logCreatedEvent','NONE','getId','started_at','hook_type','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','removePendingHooks','inspect','../instances/testFrameworkInstance.js','getCurrentHookState','\x20with\x20UUID:\x20','eAhGf','slice','KEY_TEST_META','KHTAD','KEY_TEST_STARTED_AT','DEFAULT_HOOK_RESULT','name','KEY_TEST_TAGS','BRbpF','storePendingHook','./testFramework','matchHookRegex','split','5258120bAbGTg','\x20target=','getContext','472qacmjk','resolveInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','eventJson','KEY_TEST_LOCATION','../cliUtils.js','KyGtl','\x20hookState:\x20','meta','elYIL','UnhandledError','parseCucumberTestResult','createTestFrameworkEventPayload','qQIfj','Processing\x20','3OVYiTF','KEY_HOOK_LOGS','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','nbBNj','hookState','browserstackPlatformIndex','toString','MVweg','customRerunParam','kInER','getProcessId','sendLogCreatedEvent','\x20with\x20result:\x20','aJRVu','KEY_TEST_ENDED_AT','testUUID','key','dkNDA','createContext','979646pefths','getCurrentInstanceName','\x20and\x20args\x20=\x20','KEY_TEST_FAILURE_REASON','get','../state/testFrameworkState.js','processPendingHooks','KEY_TEST_FRAMEWORK_NAME','yETzF','../TestInfo.js','KEY_HOOK_FAILURE_TYPE','push','../grpcClient','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','location','readLogObjects','test','9IDWRPc','tBbnZ','length','trackHookEvent','trackEvent','KEY_HOOK_LAST_FINISHED','TEST','tags','ToCbp','\x20for\x20test:\x20','scopes','zewQL','passed','Error\x20in\x20createTestFrameworkEventPayload:\x20','getTrackedInstance','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','getTestFrameworks','KEY_HOOKS_FINISHED','zjlvx','setTestDetails','../../../helpers/classLogger.js','addMultipleEntries','KEY_TEST_NAME','\x20&\x20hook\x20=\x20','CebHY','KEY_CUSTOM_TAGS','failure_type','1417020GzHiXB','KEY_HOOK_FAILURE_REASON','startedAt','executionContext','result','hooks','keys','KEY_TEST_LOGS','953040KuAVgR','POST','szbud','toISOString','KEY_TEST_FRAMEWORK_VERSION','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','OWiph','Cucumber\x20log\x20created\x20event','runHooks','KEY_EVENT_STARTED_AT','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_ID','util','instance','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_RESULT','getInstance','unknown','sendLogCreatedEvent:\x20for\x20testId:\x20','testFrameworkVersion','vVFen','INIT_TEST','failure_reason','\x20batch\x20','exports','KEY_TEST_ATTACHMENTS','setTrackedInstance','1948746ROLrdq','KEY_TEST_RERUN_NAME','pop','mPgHC','../../../helpers/helper.js','testData','Tgdny','finished_at','fBMCN','file_name','endedAt','../state/hookState.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','Tracked\x20cucumber\x20hook\x20event:\x20','getAllData','WAhqR','debug','KEY_HOOKS_STARTED','getTestDetails','\x20testState:\x20','13559110QNjoyk','Parsed\x20cucumber\x20test:\x20','platformIndex','getCurrentTestState','failed','testFrameworkState','../instances/trackedInstance.js','yUCfa','ceil','\x20&\x20hookState=','args','createTestFrameworkEventPayload\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','body','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','\x20\x20and\x20args\x20=\x20','ZsCKB','cMUzp','KEY_HOOK_RESULT','concat','Updated\x20cucumber\x20test\x20result:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOK_ID',',\x20state:\x20','finishedAt','EYpuJ','error','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','IWTTt','hasPendingHooks','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uuid','trackEvent:\x20unsupported\x20testFrameworkState=','getThreadId','trackCucumberInstance','code','failure_data','56273VnzKdH','getTestFrameworksVersions','PRE','Stored\x20pending\x20hook\x20for\x20testId:\x20','\x20response=','KEY_LOGS','test_run_id'];a91_0x1144=function(){return _0x20be61;};return a91_0x1144();}