browserstack-node-sdk 1.57.2 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/generated/sdk-messages_pb.d.ts +376 -36
  41. package/generated/sdk-messages_pb.js +2955 -279
  42. package/generated/sdk_grpc_pb.d.ts +5 -0
  43. package/generated/sdk_grpc_pb.js +51 -0
  44. package/package.json +1 -1
  45. package/src/ai-sdk-node/bundle.js +1 -1
  46. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  47. package/src/bin/codeceptjs/command.js +1 -1
  48. package/src/bin/codeceptjs/helper.js +1 -1
  49. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  50. package/src/bin/cucumber-js/command.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  53. package/src/bin/cucumber-js/test-observability.js +1 -1
  54. package/src/bin/cucumber-js/test.setup.js +1 -1
  55. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  56. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  57. package/src/bin/integrations/command.js +1 -1
  58. package/src/bin/integrations/constants.js +1 -1
  59. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -0
  60. package/src/bin/jasmine/command.js +2 -0
  61. package/src/bin/jasmine/test.setup.js +1 -0
  62. package/src/bin/jasmine/testRunMap.js +1 -0
  63. package/src/bin/jest/command.js +1 -1
  64. package/src/bin/jest/customImplements/customCircus.js +1 -1
  65. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  66. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  67. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  68. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  69. package/src/bin/jest/jest.setup.js +1 -1
  70. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  71. package/src/bin/jest/test-observability/helper.js +1 -1
  72. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  73. package/src/bin/jest/test-observability/test-details.js +1 -1
  74. package/src/bin/jest/test.setup.js +1 -1
  75. package/src/bin/jest/test_before.setup.js +1 -1
  76. package/src/bin/launcher/launcher.js +1 -1
  77. package/src/bin/load/index.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  83. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  84. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  85. package/src/bin/mocha/test.setup.js +1 -1
  86. package/src/bin/newman/command.js +1 -1
  87. package/src/bin/newman/helper.js +1 -1
  88. package/src/bin/newman/reporter/index.js +1 -1
  89. package/src/bin/newman/scriptRunner.js +1 -1
  90. package/src/bin/nightwatch/command.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/sessionDetails.js +1 -1
  101. package/src/bin/puppeteer/patches.js +1 -1
  102. package/src/bin/puppeteer/sessionDetails.js +1 -1
  103. package/src/bin/puppeteer/test.setup.js +1 -1
  104. package/src/bin/runner.js +1 -1
  105. package/src/bin/setup.js +1 -1
  106. package/src/bin/test-runner/index.js +1 -1
  107. package/src/bin/test-runner/runTest.js +1 -1
  108. package/src/bin/test-runner/testWorker.js +1 -1
  109. package/src/bin/testcafe/a11y-runner.js +1 -0
  110. package/src/bin/testcafe/command.js +2 -0
  111. package/src/bin/testcafe/reporter/index.js +1 -0
  112. package/src/bin/testcafe/reporter/tcUtils.js +1 -0
  113. package/src/bin/testcafe/session-registry.js +1 -0
  114. package/src/bin/testcafe/stdout-interceptor.js +1 -0
  115. package/src/bin/testcafe/testcafe-action-patcher.js +1 -0
  116. package/src/bin/testcafe/w3c-driver.js +1 -0
  117. package/src/bin/utils/apiUtilityMethods.js +1 -1
  118. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  119. package/src/bin/utils/constants.js +1 -1
  120. package/src/bin/utils/log4jsAppender.js +1 -1
  121. package/src/bin/utils/logPatcher.js +1 -1
  122. package/src/bin/utils/logReportingAPI.js +1 -1
  123. package/src/bin/utils/playwright-patcher.js +1 -1
  124. package/src/bin/utils/puppeteer-patcher.js +1 -1
  125. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  126. package/src/bin/utils/sharedUtils.js +1 -1
  127. package/src/bin/v2/TestInfo.js +1 -1
  128. package/src/bin/v2/browserstackCLI.js +1 -1
  129. package/src/bin/v2/cliUtils.js +1 -1
  130. package/src/bin/v2/customTagManager.js +1 -1
  131. package/src/bin/v2/eventDispatcher.js +1 -1
  132. package/src/bin/v2/framework/automationFramework.js +1 -1
  133. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  136. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  137. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  138. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  140. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testFramework.js +1 -1
  142. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -0
  143. package/src/bin/v2/framework/testcafeTestFramework.js +1 -0
  144. package/src/bin/v2/grpcClient.js +1 -1
  145. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  146. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  147. package/src/bin/v2/instances/trackedContext.js +1 -1
  148. package/src/bin/v2/instances/trackedInstance.js +1 -1
  149. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  150. package/src/bin/v2/modules/baseModule.js +1 -1
  151. package/src/bin/v2/modules/loadTestModule.js +1 -1
  152. package/src/bin/v2/modules/observabilityModule.js +1 -1
  153. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  154. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  155. package/src/bin/v2/modules/testcafeDriverModule.js +1 -0
  156. package/src/bin/v2/modules/testhubModule.js +1 -1
  157. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  158. package/src/bin/v2/state/hookState.js +1 -1
  159. package/src/bin/v2/state/testFrameworkState.js +1 -1
  160. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  161. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  162. package/src/bin/v2/utils/jest-utils.js +1 -1
  163. package/src/bin/vanilla-js/command.js +1 -1
  164. package/src/browserStackSdk.js +1 -1
  165. package/src/helpers/BrowserStackSetup.js +1 -1
  166. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  167. package/src/helpers/accessibility-automation/constants.js +1 -1
  168. package/src/helpers/accessibility-automation/helper.js +1 -1
  169. package/src/helpers/accessibility-automation/scripts.js +1 -1
  170. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  171. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/timeoutPromise.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a72_0x327f(_0x58df50,_0x44f3f9){const _0xc9061d=a72_0xc906();return a72_0x327f=function(_0x327f41,_0x2831fb){_0x327f41=_0x327f41-0x116;let _0x3ee3c1=_0xc9061d[_0x327f41];return _0x3ee3c1;},a72_0x327f(_0x58df50,_0x44f3f9);}function a72_0xc906(){const _0x248df7=['Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','.zip','isDevelopmentEnv','closeSync','UKdsN','ACJsD','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','isBinaryBusy','Setting\x20required\x20permissions\x20to\x20','MHyXy','pipe','.tmp.','close','development','iHvUJ','debug','qojzN','Pzuyi','getSdkVersion','haQUw','end','data','pid','filter','\x20already\x20exists','vGgTN','ERfFz','map','readdirSync','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','../../helpers/classLogger.js','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','.sock','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','CwAis','downloadFileStream','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','./framework/constants/testFrameworkConstants.js','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','YVurS','downloaded_file_','format','wyTjE','listen','yfQqx','yjSdA','warn','getCliDir','48561sKbfOM','../utils/constants','BJPco','skipSessionName','HOOK_REGEX','copyFileSync','checkAndUpdateCli','hVNai','aOHHk','length','aBZLb','chmod','fileName','tXFhb','../../helpers/performance/performance-tester.js','iItnd','SNsrd','rename','homedir','unlink','basename','existsSync','SDK_CLI_CHECK_UPDATE','2301450ALJYKs','kZQLR','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','Folder\x20','isArray','1180vTTjzM','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','trim','hbUEu','testFrameworkDetail','response\x20','mergeObject','./state/automationFrameworkState.js','../../helpers/test-observability/utils.js','includes','entry','1034985mquetj','get','rfLGX','stringify','BROWSERSTACK_FILES_DIR','1996nqXWEv','SDK_CLI_BIN_PATH','30QjkqdB','timeout','DRGPP','readEntry','./state/testFrameworkState.js','version','error','BROWSERSTACK_BINARY_URL','cwd','getExistingCliPath','vGxIu','unix:/tmp/sdk-platform-','platform','concat','join','wdgvm','automationFrameworkDetail','follow-redirects','getTestFrameworkDetail','../../helpers/helper','fdUpS','Development\x20Cli\x20Path:\x20','aVtov','itqaU','bJOUH','LUoin','statSync','cARwk','BrbqF','downloadLatestBinary','CLIUtils','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','setupCliPath','Error\x20while\x20reading\x20CLI\x20path:\x20','\x20version','veHVj','open','JmOry','path','665964GQlKhF','SInTB','Resolving\x20with\x20stdout:\x20\x22','setFrameworkDetail','../../helpers/performance/constants','uKDrl','getCurrentInstanceName','BROWSERSTACK_CLI_ENV','child_process','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','klnvR','url','node','ScJhl','JVznW','veByW','jNVcU','XpFHz','Folder\x20does\x20not\x20exist:\x20','reduce','NiBPn','runShellCommand','liLpv','GLKaE','Failed\x20to\x20delete\x20zip\x20file:\x20','1510568GryhWf','skipSessionStatus','testContextOptions','message','XLbxc','getSdkLanguage','info','parse','2|1|4|3|0','nhsal','acxUu','SHELL_EXECUTE_ERROR','gGqHD','CLI\x20version\x20found\x20despite\x20error:\x20\x22','requestToUpdateCLI','createWriteStream','6135YsldTE','SDK_CLI_DOWNLOAD','test','Downloading\x20SDK\x20binary\x20from:\x20','getCLIParamsForDevEnv','startsWith','openSync','../../helpers/utilities','JOhrd','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','../../../package.json','env','mtime',',\x20automationFramework=','CuxtV','sVRHD','getWritableDir','tmpdir','0755','start','QskNR','297sxyRjn','arch','../utils/apiUtilityMethods.js','rDlfB','isFile','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','28fyDseT','cnbOl','EwQis','CNnpK','shouldSkipSessionStatus','code','111978DrWNeg','mhkPm','openReadStream','./state/hookState.js','LEieJ','QKToE','eJvui','himSQ','nVJTZ','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','jheBE','KImBg','shouldSkipSessionName','tPnjm','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','eqXct','GET','jAgfv','IIPCY','nlhgS','.browserstack'];a72_0xc906=function(){return _0x248df7;};return a72_0xc906();}const a72_0x58723c=a72_0x327f;(function(_0x2e9c55,_0x556743){const _0x1243b2=a72_0x327f,_0x3bdbbe=_0x2e9c55();while(!![]){try{const _0x40370=-parseInt(_0x1243b2(0x17c))/0x1*(parseInt(_0x1243b2(0x1aa))/0x2)+parseInt(_0x1243b2(0x1a3))/0x3+-parseInt(_0x1243b2(0x1a8))/0x4*(parseInt(_0x1243b2(0x1fa))/0x5)+-parseInt(_0x1243b2(0x193))/0x6+-parseInt(_0x1243b2(0x130))/0x7*(parseInt(_0x1243b2(0x1ea))/0x8)+parseInt(_0x1243b2(0x136))/0x9*(parseInt(_0x1243b2(0x198))/0xa)+-parseInt(_0x1243b2(0x128))/0xb*(-parseInt(_0x1243b2(0x1d1))/0xc);if(_0x40370===_0x556743)break;else _0x3bdbbe['push'](_0x3bdbbe['shift']());}catch(_0x1aa4b8){_0x3bdbbe['push'](_0x3bdbbe['shift']());}}}(a72_0xc906,0xcb217));const fs=require('fs'),os=require('os'),url=require(a72_0x58723c(0x1dc)),path=require(a72_0x58723c(0x1d0)),{exec}=require(a72_0x58723c(0x1d9)),{https}=require(a72_0x58723c(0x1bb)),yauzl=require('yauzl'),util=require('util'),{getFrameworkVersion}=require(a72_0x58723c(0x1a0)),{threadId}=require('worker_threads'),PerformanceTester=require(a72_0x58723c(0x18a)),{EVENTS:PerformanceEvents}=require(a72_0x58723c(0x1d5)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x58723c(0x11a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x58723c(0x1bd)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x58723c(0x17d)),{createClassLogger}=require(a72_0x58723c(0x16a)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x58723c(0x139)),TestFrameworkState=require(a72_0x58723c(0x1ae)),AutomationFrameworkState=require(a72_0x58723c(0x19f)),TestFrameworkConstants=require(a72_0x58723c(0x171)),logger=createClassLogger(a72_0x58723c(0x1c8)),{getBStackAPIUrl}=require(a72_0x58723c(0x12a));class CLIUtils{[a72_0x58723c(0x1ba)]={};[a72_0x58723c(0x19c)]={};static[a72_0x58723c(0x14e)](){const _0x277bf=a72_0x58723c,_0x41a18e={};_0x41a18e[_0x277bf(0x1df)]=function(_0x4905c1,_0x2ff3be){return _0x4905c1===_0x2ff3be;},_0x41a18e['ACJsD']=_0x277bf(0x159);const _0x278273=_0x41a18e;return _0x278273[_0x277bf(0x1df)](process[_0x277bf(0x11e)][_0x277bf(0x1d8)],_0x278273[_0x277bf(0x151)]);}static[a72_0x58723c(0x117)](){const _0x3626d6=a72_0x58723c,_0x43a145={};return _0x43a145['id']=process[_0x3626d6(0x11e)][_0x3626d6(0x1d8)],_0x43a145[_0x3626d6(0x177)]=_0x3626d6(0x1b5)+process['env']['BROWSERSTACK_CLI_ENV']+_0x3626d6(0x16c),_0x43a145;}static[a72_0x58723c(0x15e)](){const _0x298361=a72_0x58723c,_0x5339fe={'Mnjtu':function(_0x34cf05,_0x516579){return _0x34cf05(_0x516579);},'wdgvm':_0x298361(0x11d)};return _0x5339fe['Mnjtu'](require,_0x5339fe[_0x298361(0x1b9)])[_0x298361(0x1af)];}static[a72_0x58723c(0x1ef)](){const _0xb5d0c3=a72_0x58723c,_0x343bcf={};_0x343bcf[_0xb5d0c3(0x18b)]=_0xb5d0c3(0x1dd);const _0xcea450=_0x343bcf;return _0xcea450[_0xb5d0c3(0x18b)];}static async[a72_0x58723c(0x1ca)](_0x423dac){const _0x1719c5=a72_0x58723c,_0x1bd4c3={'uKDrl':'Configuring\x20Cli\x20path.','SlnSv':function(_0x2d355b,_0x39dc78){return _0x2d355b(_0x39dc78);},'mhkPm':function(_0x61894d,_0xf403d){return _0x61894d(_0xf403d);},'BrbqF':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x1719c5(0x15b)](_0x1bd4c3[_0x1719c5(0x1d6)]);const _0x376e08=process[_0x1719c5(0x11e)][_0x1719c5(0x1a9)];if(!_0x1bd4c3['SlnSv'](isNullOrEmpty,_0x376e08))return logger['debug'](_0x1719c5(0x1bf)+_0x376e08),_0x376e08;try{const _0x59c446=this[_0x1719c5(0x17b)]();if(_0x1bd4c3[_0x1719c5(0x137)](isNullOrEmpty,_0x59c446))throw new Error(_0x1bd4c3[_0x1719c5(0x1c6)]);const _0x4ea449=this['getExistingCliPath'](_0x59c446),_0x53b2e1=await this['checkAndUpdateCli'](_0x4ea449,_0x59c446,_0x423dac);return logger[_0x1719c5(0x15b)]('Resolved\x20binary\x20path:\x20'+_0x53b2e1),_0x53b2e1;}catch(_0x2ec838){logger[_0x1719c5(0x15b)](_0x1719c5(0x12f)+util['format'](_0x2ec838));}return null;}static async[a72_0x58723c(0x182)](_0x1b59c,_0x4c559e,_0x1fe7d1){const _0x28b36b=a72_0x58723c,_0x42052b={'nVJTZ':function(_0x4c12e7){return _0x4c12e7();},'wfEku':function(_0x3142c9,_0x3a9716){return _0x3142c9(_0x3a9716);},'BJPco':function(_0x21ad07,_0x5141ae,_0x201e68){return _0x21ad07(_0x5141ae,_0x201e68);},'cARwk':'data','haQUw':_0x28b36b(0x1dc)};PerformanceTester[_0x28b36b(0x126)](PerformanceEvents[_0x28b36b(0x192)]),logger[_0x28b36b(0x1f0)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x1b59c);const _0x32da66=_0x42052b[_0x28b36b(0x13e)](getHostInfo),_0x4c60a7={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x32da66[_0x28b36b(0x1b6)],'os_arch':_0x32da66[_0x28b36b(0x129)],'cli_version':'0','sdk_language':this[_0x28b36b(0x1ef)]()};!_0x42052b['wfEku'](isNullOrEmpty,_0x1b59c)&&(_0x4c60a7['cli_version']=await this[_0x28b36b(0x1e6)](_0x1b59c+_0x28b36b(0x1cc)));const _0x51e593=await this[_0x28b36b(0x1f8)](_0x4c60a7,_0x1fe7d1);process[_0x28b36b(0x11e)][_0x28b36b(0x1b1)]&&(logger['info'](_0x28b36b(0x169)+process[_0x28b36b(0x11e)]['BROWSERSTACK_BINARY_URL']),_0x51e593[_0x28b36b(0x161)][_0x28b36b(0x1dc)]=process['env'][_0x28b36b(0x1b1)]);if(_0x42052b['BJPco'](nestedKeyValue,_0x51e593,[_0x42052b[_0x28b36b(0x1c5)],_0x42052b['haQUw']])){logger[_0x28b36b(0x15b)](_0x28b36b(0x16b)+_0x4c60a7['cli_version']);if(!_0x42052b['wfEku'](isNullOrEmpty,_0x1b59c)&&this['isBinaryBusy'](_0x1b59c))return logger[_0x28b36b(0x17a)](_0x28b36b(0x1da)+_0x1b59c),PerformanceTester['end'](PerformanceEvents[_0x28b36b(0x192)]),_0x1b59c;const _0x458cdc=await this[_0x28b36b(0x1c7)](_0x42052b[_0x28b36b(0x17e)](nestedKeyValue,_0x51e593,[_0x42052b[_0x28b36b(0x1c5)],_0x42052b[_0x28b36b(0x15f)]]),_0x4c559e);return PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x458cdc;}return PerformanceTester[_0x28b36b(0x160)](PerformanceEvents[_0x28b36b(0x192)]),_0x1b59c;}static[a72_0x58723c(0x17b)](){const _0x387080=a72_0x58723c,_0x1b85c9={'YVurS':function(_0x11f1f8,_0x216bfa){return _0x11f1f8(_0x216bfa);},'itqaU':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','UKdsN':'cli'},_0x343281=this[_0x387080(0x123)]();try{if(_0x1b85c9[_0x387080(0x173)](isNullOrEmpty,_0x343281))throw new Error(_0x1b85c9[_0x387080(0x1c1)]);const _0xcde68=path[_0x387080(0x1b8)](_0x343281,_0x1b85c9[_0x387080(0x150)]);return!fs[_0x387080(0x191)](_0xcde68)&&_0x1b85c9[_0x387080(0x173)](createDir,_0xcde68),_0xcde68;}catch(_0x6f2fbd){logger[_0x387080(0x15b)](_0x387080(0x13f)+util[_0x387080(0x175)](_0x6f2fbd));}}static[a72_0x58723c(0x123)](){const _0x11348f=a72_0x58723c,_0x3efcd0={'veByW':_0x11348f(0x14a),'Pzuyi':function(_0x37c947,_0x3a3c16){return _0x37c947(_0x3a3c16);},'tRcKO':function(_0x116473,_0x318c86){return _0x116473(_0x318c86);},'DRGPP':function(_0x3d2c81,_0x3bc3e2){return _0x3d2c81(_0x3bc3e2);},'fdUpS':function(_0x1287c0,_0x56ebda){return _0x1287c0(_0x56ebda);},'sVRHD':function(_0x46e47f,_0x46a0e1){return _0x46e47f(_0x46a0e1);},'MHyXy':function(_0x50f165,_0x47e8a8){return _0x50f165(_0x47e8a8);}},_0x7873c7=[process[_0x11348f(0x11e)][_0x11348f(0x1a7)],path[_0x11348f(0x1b8)](os[_0x11348f(0x18e)](),_0x3efcd0[_0x11348f(0x1e0)]),path[_0x11348f(0x1b8)](os[_0x11348f(0x124)](),_0x3efcd0[_0x11348f(0x1e0)])];for(const _0x347b19 of _0x7873c7){if(_0x3efcd0[_0x11348f(0x15d)](isNullOrEmpty,_0x347b19))continue;try{if(fs[_0x11348f(0x191)](_0x347b19)){logger[_0x11348f(0x15b)](_0x11348f(0x196)+_0x347b19+_0x11348f(0x164));if(!_0x3efcd0['tRcKO'](isModifiable,_0x347b19)){logger[_0x11348f(0x15b)](_0x11348f(0x154)+_0x347b19);const _0x48cb6e=_0x3efcd0[_0x11348f(0x1ac)](setReadWriteExecuteAccess,_0x347b19);if(!_0x3efcd0[_0x11348f(0x1be)](isTrue,_0x48cb6e)){logger[_0x11348f(0x17a)](_0x11348f(0x11c)+_0x347b19);continue;}}}else{logger[_0x11348f(0x15b)](_0x11348f(0x1e3)+_0x347b19),_0x3efcd0[_0x11348f(0x1ac)](createDir,_0x347b19),logger[_0x11348f(0x15b)](_0x11348f(0x154)+_0x347b19);const _0x11637e=_0x3efcd0[_0x11348f(0x122)](setReadWriteExecuteAccess,_0x347b19);!_0x3efcd0[_0x11348f(0x155)](isTrue,_0x11637e)&&logger[_0x11348f(0x17a)](_0x11348f(0x11c)+_0x347b19);}return _0x347b19;}catch(_0x36f2c9){logger[_0x11348f(0x1b0)](_0x11348f(0x172)+util[_0x11348f(0x175)](_0x36f2c9));}}return null;}static[a72_0x58723c(0x1b3)](_0xa00e5e){const _0x13614d=a72_0x58723c,_0x8abbbf={};_0x8abbbf[_0x13614d(0x148)]=function(_0x5e1be5,_0xd0f6d7){return _0x5e1be5>_0xd0f6d7;};const _0x1f6b87=_0x8abbbf;try{if(!fs[_0x13614d(0x191)](_0xa00e5e)||!fs[_0x13614d(0x1c4)](_0xa00e5e)['isDirectory']())return'';const _0x6b681f=fs[_0x13614d(0x168)](_0xa00e5e)[_0x13614d(0x167)](_0x520c61=>path['join'](_0xa00e5e,_0x520c61))[_0x13614d(0x163)](_0x927cb2=>fs[_0x13614d(0x1c4)](_0x927cb2)[_0x13614d(0x12c)]()&&path[_0x13614d(0x190)](_0x927cb2)[_0x13614d(0x118)]('binary-'));if(_0x1f6b87[_0x13614d(0x148)](_0x6b681f[_0x13614d(0x185)],0x0)){const _0x1abb1e=_0x6b681f[_0x13614d(0x167)](_0x3525d5=>({'filePath':_0x3525d5,'mtime':fs[_0x13614d(0x1c4)](_0x3525d5)[_0x13614d(0x11f)]}))[_0x13614d(0x1e4)]((_0x3bd58b,_0x532cb2)=>{const _0x309135=_0x13614d;if(!_0x3bd58b||!_0x3bd58b[_0x309135(0x11f)])return _0x532cb2;if(_0x1f6b87[_0x309135(0x148)](_0x532cb2[_0x309135(0x11f)],_0x3bd58b[_0x309135(0x11f)]))return _0x532cb2;return _0x3bd58b;},{});return _0x1abb1e?_0x1abb1e['filePath']:'';}return'';}catch(_0x27a167){return logger[_0x13614d(0x1b0)](_0x13614d(0x1cb)+util[_0x13614d(0x175)](_0x27a167)),'';}}static ['requestToUpdateCLI']=async(_0x23c902,_0x40f5bb)=>{const _0x1ca028=a72_0x58723c,_0x12b3b6={'ztdmm':function(_0x56a82f,_0x3d7481,_0x4c0bee,_0x57bd4,_0x25ede3){return _0x56a82f(_0x3d7481,_0x4c0bee,_0x57bd4,_0x25ede3);},'jAgfv':_0x1ca028(0x146)},_0x15308c={};_0x15308c['qs']=_0x23c902;const _0x695c72=await _0x12b3b6['ztdmm'](nodeRequest,_0x12b3b6[_0x1ca028(0x147)],UPDATED_CLI_ENDPOINT,_0x15308c,_0x40f5bb);return logger['debug'](_0x1ca028(0x19d)+JSON[_0x1ca028(0x1a6)](_0x695c72)),_0x695c72;};static[a72_0x58723c(0x153)](_0x4526bf){const _0x1bdb5d=a72_0x58723c;try{const _0x4e2b4c=fs[_0x1bdb5d(0x119)](_0x4526bf,'r+');return fs[_0x1bdb5d(0x14f)](_0x4e2b4c),![];}catch(_0x2bf3cc){if(BINARY_BUSY_ERROR_CODES[_0x1bdb5d(0x1a1)](_0x2bf3cc['code']))return logger[_0x1bdb5d(0x15b)]('Binary\x20is\x20busy:\x20'+_0x4526bf),!![];return logger['debug'](_0x1bdb5d(0x16d)+_0x2bf3cc[_0x1bdb5d(0x1ed)]),![];}}static[a72_0x58723c(0x1e6)](_0x4f990a,_0x46e10b=''){const _0x55ce72=a72_0x58723c,_0x35b610={'XLbxc':function(_0x2a0ea4,_0x5dab14){return _0x2a0ea4(_0x5dab14);},'nhsal':_0x55ce72(0x1f5),'tWGcR':_0x55ce72(0x1af),'aVtov':function(_0x3558db,_0x3d06d9){return _0x3558db(_0x3d06d9);},'aOHHk':function(_0x2de260,_0x4c5ffb,_0x5a2dc0,_0x14dbca){return _0x2de260(_0x4c5ffb,_0x5a2dc0,_0x14dbca);},'wyTjE':_0x55ce72(0x1b0)};return new Promise((_0x2225ec,_0x188470)=>{const _0x35f355=_0x55ce72,_0x17ddd1={'QskNR':_0x35b610['tWGcR'],'SInTB':function(_0x22a27d,_0x3d4278){const _0x263dd8=a72_0x327f;return _0x35b610[_0x263dd8(0x1ee)](_0x22a27d,_0x3d4278);},'tPnjm':function(_0x438a7a,_0x466f24){const _0xd2663b=a72_0x327f;return _0x35b610[_0xd2663b(0x1c0)](_0x438a7a,_0x466f24);},'yjSdA':_0x35b610[_0x35f355(0x1f3)]},_0x1d3df3={};_0x1d3df3[_0x35f355(0x1b2)]=_0x46e10b,_0x1d3df3[_0x35f355(0x1ab)]=0x1388;const _0x2ee674=_0x35b610[_0x35f355(0x184)](exec,_0x4f990a,_0x1d3df3,(_0x33bb66,_0x2bc473,_0x140733)=>{const _0x49d766=_0x35f355;if(_0x33bb66){if(_0x4f990a[_0x49d766(0x1a1)](_0x17ddd1[_0x49d766(0x127)])&&(_0x2bc473['trim']()||_0x140733[_0x49d766(0x19a)]())){const _0x33b43c=_0x2bc473[_0x49d766(0x19a)]()||_0x140733['trim']();logger[_0x49d766(0x15b)](_0x49d766(0x1f7)+_0x33b43c+'\x22'),_0x17ddd1[_0x49d766(0x1d2)](_0x2225ec,_0x33b43c);}else _0x17ddd1['tPnjm'](_0x2225ec,_0x140733['trim']()||_0x17ddd1[_0x49d766(0x179)]);}else logger[_0x49d766(0x15b)](_0x49d766(0x1d3)+_0x2bc473[_0x49d766(0x19a)]()+'\x22'),_0x17ddd1[_0x49d766(0x143)](_0x2225ec,_0x2bc473['trim']());});_0x2ee674['on'](_0x35b610[_0x35f355(0x176)],()=>{const _0x412bdc=_0x35f355;_0x35b610[_0x412bdc(0x1ee)](_0x2225ec,_0x35b610[_0x412bdc(0x1f3)]);});});}static [a72_0x58723c(0x1c7)]=async(_0x2191c8,_0x5b9174)=>{const _0x18d662=a72_0x58723c,_0x1da3fc={'hbUEu':_0x18d662(0x152),'LUoin':function(_0x2e7609,_0x3be0fd){return _0x2e7609(_0x3be0fd);},'qojzN':_0x18d662(0x14c),'XpFHz':_0x18d662(0x1b0)};PerformanceTester[_0x18d662(0x126)](PerformanceEvents[_0x18d662(0x1fb)]),logger['debug'](_0x18d662(0x116)+_0x2191c8);try{const _0x3a436a=url['parse'](_0x2191c8),_0x3dbb9d=path[_0x18d662(0x1b8)](_0x5b9174,_0x18d662(0x174)+process['pid']+_0x18d662(0x14d)),_0x58d3bb=fs[_0x18d662(0x1f9)](_0x3dbb9d);return new Promise((_0x4fe23d,_0x42e2ef)=>{const _0x4335bc=_0x18d662,_0x48c7ad={'hVNai':_0x1da3fc[_0x4335bc(0x19b)],'ZcBAH':function(_0x4102f8,_0x4c86c9){const _0x21cdcb=_0x4335bc;return _0x1da3fc[_0x21cdcb(0x1c3)](_0x4102f8,_0x4c86c9);},'veHVj':_0x1da3fc[_0x4335bc(0x15c)],'jheBE':function(_0x15ded1,_0x280c24){const _0x4f38fc=_0x4335bc;return _0x1da3fc[_0x4f38fc(0x1c3)](_0x15ded1,_0x280c24);},'NiBPn':_0x1da3fc[_0x4335bc(0x1e2)],'SNsrd':function(_0x2fbdd0,_0x3b42b3){return _0x1da3fc['LUoin'](_0x2fbdd0,_0x3b42b3);}};https[_0x4335bc(0x1a4)](_0x3a436a,function(_0x4ac910){const _0x30aa8f=_0x4335bc,_0x55abac={'YtuHL':_0x48c7ad[_0x30aa8f(0x1cd)],'CNnpK':function(_0x32daac,_0x18667e){const _0x3ea5ba=_0x30aa8f;return _0x48c7ad[_0x3ea5ba(0x140)](_0x32daac,_0x18667e);},'jNVcU':function(_0x3e1ec7,_0x1963da){return _0x48c7ad['jheBE'](_0x3e1ec7,_0x1963da);}},_0x559a96=null;_0x4ac910['pipe'](_0x58d3bb),_0x4ac910['on'](_0x48c7ad[_0x30aa8f(0x1e5)],function(_0x196af9){const _0x1ba9a7=_0x30aa8f;logger[_0x1ba9a7(0x1b0)](util[_0x1ba9a7(0x175)](_0x55abac['YtuHL'],_0x196af9)),PerformanceTester[_0x1ba9a7(0x160)](PerformanceEvents[_0x1ba9a7(0x1fb)],![],util['format'](_0x196af9)),_0x55abac[_0x1ba9a7(0x133)](_0x42e2ef,_0x196af9);}),_0x58d3bb['on'](_0x48c7ad[_0x30aa8f(0x1e5)],function(_0x546192){const _0x484e3d=_0x30aa8f;logger['error'](util[_0x484e3d(0x175)](_0x48c7ad[_0x484e3d(0x183)],_0x546192)),PerformanceTester['end'](PerformanceEvents[_0x484e3d(0x1fb)],![],util[_0x484e3d(0x175)](_0x546192)),_0x48c7ad['ZcBAH'](_0x42e2ef,_0x546192);}),CLIUtils[_0x30aa8f(0x16f)](_0x58d3bb,_0x559a96,_0x3dbb9d,_0x5b9174,_0x2b6fbe=>{const _0x4b4f06=_0x30aa8f;PerformanceTester['end'](PerformanceEvents[_0x4b4f06(0x1fb)]),_0x55abac[_0x4b4f06(0x1e1)](_0x4fe23d,_0x2b6fbe);},_0x47d126=>{const _0x13fb74=_0x30aa8f;PerformanceTester[_0x13fb74(0x160)](PerformanceEvents[_0x13fb74(0x1fb)],![],util['format'](_0x47d126)),_0x55abac['jNVcU'](_0x42e2ef,_0x47d126);});})['on'](_0x1da3fc[_0x4335bc(0x1e2)],function(_0x9879f5){const _0x30fc1d=_0x4335bc;logger['error'](_0x30fc1d(0x170)+util[_0x30fc1d(0x175)](_0x9879f5)),PerformanceTester[_0x30fc1d(0x160)](PerformanceEvents[_0x30fc1d(0x1fb)],![],util[_0x30fc1d(0x175)](_0x9879f5)),_0x48c7ad[_0x30fc1d(0x18c)](_0x42e2ef,_0x9879f5);});});}catch(_0x36176b){PerformanceTester['end'](PerformanceEvents[_0x18d662(0x1fb)],![],util[_0x18d662(0x175)](_0x36176b)),logger[_0x18d662(0x15b)](_0x18d662(0x12e)+util[_0x18d662(0x175)](_0x36176b));}};static[a72_0x58723c(0x16f)](_0x3d84ea,_0x14f8f1,_0x45e801,_0x3c151b,_0x5b0762,_0x392ac2){const _0x4461d9=a72_0x58723c,_0x16e545={'kZQLR':function(_0x6f4c2c,_0x50b722){return _0x6f4c2c(_0x50b722);},'GLKaE':_0x4461d9(0x160),'gGqHD':_0x4461d9(0x158),'JOhrd':function(_0x4d7c6a,_0x11354c){return _0x4d7c6a!==_0x11354c;},'acxUu':_0x4461d9(0x1b0),'klnvR':'EXDEV','himSQ':function(_0x1f9911,_0xc4b8cd){return _0x1f9911(_0xc4b8cd);},'KLesX':function(_0x17316e,_0x4f7ae9){return _0x17316e(_0x4f7ae9);},'mkEBs':_0x4461d9(0x1a2),'iHvUJ':_0x4461d9(0x125)};_0x3d84ea['on'](_0x16e545['gGqHD'],function(){const _0x2b8697=_0x4461d9,_0x5cc8c2={};_0x5cc8c2[_0x2b8697(0x121)]=_0x16e545[_0x2b8697(0x15a)];const _0xe6ef19=_0x5cc8c2,_0x286ab3={};_0x286ab3['lazyEntries']=!![],yauzl[_0x2b8697(0x1ce)](_0x45e801,_0x286ab3,function(_0x20f6a1,_0x4374fd){const _0x470637=_0x2b8697,_0x4d57d9={'liLpv':function(_0x2bdad7,_0x5ac82f){const _0x3180ab=a72_0x327f;return _0x16e545[_0x3180ab(0x194)](_0x2bdad7,_0x5ac82f);},'rDlfB':_0x16e545[_0x470637(0x1e8)],'bJOUH':_0x16e545[_0x470637(0x1f6)],'vGxIu':function(_0x170a7d,_0x327770){const _0x2d17c4=_0x470637;return _0x16e545[_0x2d17c4(0x11b)](_0x170a7d,_0x327770);},'LYXfs':function(_0x120770,_0x3db662){return _0x16e545['kZQLR'](_0x120770,_0x3db662);},'tXFhb':function(_0x5a9156,_0x116482){const _0x50c5d8=_0x470637;return _0x16e545[_0x50c5d8(0x194)](_0x5a9156,_0x116482);},'vGgTN':_0x16e545[_0x470637(0x1f4)],'ERfFz':_0x16e545[_0x470637(0x1db)],'eqXct':function(_0x1efd06,_0x15d9c0){const _0x4a51f7=_0x470637;return _0x16e545[_0x4a51f7(0x194)](_0x1efd06,_0x15d9c0);},'cnbOl':function(_0xfca4e1,_0x4d3495){const _0x2e6615=_0x470637;return _0x16e545[_0x2e6615(0x194)](_0xfca4e1,_0x4d3495);},'yfQqx':function(_0x490a9e,_0x169d67){const _0x545dd2=_0x470637;return _0x16e545[_0x545dd2(0x13d)](_0x490a9e,_0x169d67);}};if(_0x20f6a1){_0x16e545['KLesX'](_0x392ac2,_0x20f6a1);return;}_0x4374fd[_0x470637(0x1ad)](),_0x4374fd['on'](_0x16e545['mkEBs'],_0x2a4e6b=>{const _0x32a19e=_0x470637,_0x878374={'JmOry':function(_0x32a67b,_0x4ab970){const _0x4e11ef=a72_0x327f;return _0x4d57d9[_0x4e11ef(0x1e7)](_0x32a67b,_0x4ab970);},'ScJhl':_0x4d57d9[_0x32a19e(0x1c2)]};if(/\/$/[_0x32a19e(0x1fc)](_0x2a4e6b[_0x32a19e(0x188)])){_0x4374fd[_0x32a19e(0x1ad)]();return;}!_0x14f8f1&&(_0x14f8f1=_0x2a4e6b[_0x32a19e(0x188)]);if(_0x4d57d9[_0x32a19e(0x1b4)](_0x2a4e6b['fileName'],_0x14f8f1))_0x4374fd['readEntry']();else{const _0x11dd83=_0x2a4e6b['fileName'],_0xa2dbd6=path['join'](_0x3c151b,_0x11dd83+_0x32a19e(0x157)+process[_0x32a19e(0x162)]);let _0x3093cf;try{_0x3093cf=fs[_0x32a19e(0x1f9)](_0xa2dbd6);}catch(_0x52cf3c){if(BINARY_BUSY_ERROR_CODES[_0x32a19e(0x1a1)](_0x52cf3c[_0x32a19e(0x135)])){const _0x54072f=path[_0x32a19e(0x1b8)](_0x3c151b,_0x11dd83);if(fs['existsSync'](_0x54072f)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x11dd83),fs['unlink'](_0x45e801,_0x145705=>{const _0x209abc=_0x32a19e;_0x145705&&logger[_0x209abc(0x17a)](_0x209abc(0x1e9)+_0x45e801);}),_0x4d57d9['LYXfs'](_0x5b0762,_0x54072f);return;}logger['warn'](_0x32a19e(0x1c9)+_0x11dd83);}_0x4d57d9[_0x32a19e(0x189)](_0x392ac2,_0x52cf3c);return;}_0x3093cf['on'](_0x4d57d9[_0x32a19e(0x165)],_0x49c66a=>{const _0x32205b=_0x32a19e;if(BINARY_BUSY_ERROR_CODES[_0x32205b(0x1a1)](_0x49c66a['code'])){const _0x586c63=path[_0x32205b(0x1b8)](_0x3c151b,_0x11dd83);_0x3093cf[_0x32205b(0x158)](),fs['existsSync'](_0x586c63)?(logger['warn'](_0x32205b(0x14b)+_0x49c66a[_0x32205b(0x1ed)]),_0x4374fd[_0x32205b(0x158)](),fs[_0x32205b(0x18f)](_0x45e801,_0x4911cd=>{const _0x32a044=_0x32205b;_0x4911cd&&logger[_0x32a044(0x17a)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x45e801);}),_0x878374[_0x32205b(0x1cf)](_0x5b0762,_0x586c63)):(logger['warn'](_0x32205b(0x199)+_0x49c66a['message']),fs[_0x32205b(0x18f)](_0xa2dbd6,()=>{}),_0x878374['JmOry'](_0x392ac2,_0x49c66a));}else fs['unlink'](_0xa2dbd6,()=>{}),_0x878374[_0x32205b(0x1cf)](_0x392ac2,_0x49c66a);}),_0x4374fd[_0x32a19e(0x138)](_0x2a4e6b,function(_0x32c233,_0x23741b){const _0x3b18e2=_0x32a19e;if(_0x32c233){fs[_0x3b18e2(0x18f)](_0xa2dbd6,()=>{}),_0x4d57d9[_0x3b18e2(0x1e7)](_0x392ac2,_0x32c233);return;}_0x23741b['on'](_0x4d57d9[_0x3b18e2(0x12b)],function(){const _0x496cda=_0x3b18e2;_0x3093cf[_0x496cda(0x160)](),_0x3093cf['on'](_0x878374[_0x496cda(0x1de)],function(){const _0x1a3494=_0x496cda;_0x4374fd[_0x1a3494(0x1ad)]();});}),_0x23741b[_0x3b18e2(0x156)](_0x3093cf);});}}),_0x4374fd['on'](_0x16e545[_0x470637(0x1f4)],_0x75ccd4=>{const _0x215e47=_0x470637;_0x4d57d9[_0x215e47(0x1e7)](_0x392ac2,_0x75ccd4);}),_0x4374fd['once'](_0x16e545[_0x470637(0x1e8)],()=>{const _0x439baa=_0x470637;fs[_0x439baa(0x18f)](_0x45e801,_0x179b84=>{const _0x78c5ee=_0x439baa;_0x179b84&&logger[_0x78c5ee(0x17a)](_0x78c5ee(0x1e9)+_0x45e801);});const _0x56c726=path['join'](_0x3c151b,_0x14f8f1+_0x439baa(0x157)+process[_0x439baa(0x162)]),_0x330d68=path[_0x439baa(0x1b8)](_0x3c151b,_0x14f8f1);fs[_0x439baa(0x187)](_0x56c726,_0xe6ef19[_0x439baa(0x121)],function(_0x1b43c8){const _0x9e2d57=_0x439baa,_0x59407c={'aBZLb':function(_0x14240d,_0x484779){const _0x8618cb=a72_0x327f;return _0x4d57d9[_0x8618cb(0x1b4)](_0x14240d,_0x484779);},'vHWLc':_0x4d57d9[_0x9e2d57(0x166)],'eJvui':function(_0x5974cf,_0x282f3e){const _0x29e8ef=_0x9e2d57;return _0x4d57d9[_0x29e8ef(0x1e7)](_0x5974cf,_0x282f3e);},'CwAis':function(_0x41a44f,_0x776655){const _0x399761=_0x9e2d57;return _0x4d57d9[_0x399761(0x145)](_0x41a44f,_0x776655);},'ZbsMa':function(_0x86a66a,_0x4294dc){const _0x1b84e4=_0x9e2d57;return _0x4d57d9[_0x1b84e4(0x131)](_0x86a66a,_0x4294dc);}};if(_0x1b43c8){_0x4374fd[_0x9e2d57(0x158)](),fs[_0x9e2d57(0x18f)](_0x56c726,()=>{}),_0x4d57d9[_0x9e2d57(0x178)](_0x392ac2,_0x1b43c8);return;}fs[_0x9e2d57(0x18d)](_0x56c726,_0x330d68,function(_0x501603){const _0x29aeec=_0x9e2d57;if(_0x501603){if(_0x59407c[_0x29aeec(0x186)](_0x501603[_0x29aeec(0x135)],_0x59407c['vHWLc'])){_0x4374fd['close'](),fs[_0x29aeec(0x18f)](_0x56c726,()=>{}),_0x59407c[_0x29aeec(0x13c)](_0x392ac2,_0x501603);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x501603[_0x29aeec(0x1ed)]);try{fs[_0x29aeec(0x181)](_0x56c726,_0x330d68);}catch(_0xacc93b){_0x4374fd['close'](),fs[_0x29aeec(0x18f)](_0x56c726,()=>{}),_0x59407c[_0x29aeec(0x16e)](_0x392ac2,_0xacc93b);return;}fs[_0x29aeec(0x18f)](_0x56c726,_0x474bc1=>{const _0x1430d9=_0x29aeec;_0x474bc1&&logger[_0x1430d9(0x17a)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x474bc1['message']);});}_0x4374fd['close'](),_0x59407c['ZbsMa'](_0x5b0762,_0x330d68);});});});});});}static[a72_0x58723c(0x1bc)](){const _0x81ffe6=a72_0x58723c;if(process[_0x81ffe6(0x11e)][_0x81ffe6(0x12d)])return JSON[_0x81ffe6(0x1f1)](process[_0x81ffe6(0x11e)][_0x81ffe6(0x12d)]);return this[_0x81ffe6(0x19c)];}static['getAutomationFrameworkDetail'](){const _0x36baee=a72_0x58723c;if(process[_0x36baee(0x11e)][_0x36baee(0x144)])return JSON['parse'](process[_0x36baee(0x11e)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x36baee(0x1ba)];}static[a72_0x58723c(0x1d4)](_0x3593cf,_0x42a5b2){const _0x56ca8f=a72_0x58723c,_0x570878={'tBfIw':_0x56ca8f(0x1f2),'EwQis':function(_0x1bc7d4,_0x28e517){return _0x1bc7d4(_0x28e517);},'LEieJ':function(_0x3519fa,_0x5a9db7){return _0x3519fa||_0x5a9db7;},'rfLGX':function(_0x36ab7c,_0x32b941){return _0x36ab7c(_0x32b941);}},_0x3a1fa6=_0x570878['tBfIw']['split']('|');let _0x1c7b2e=0x0;while(!![]){switch(_0x3a1fa6[_0x1c7b2e++]){case'0':process['env'][_0x56ca8f(0x12d)]=JSON['stringify'](this[_0x56ca8f(0x19c)]);continue;case'1':this[_0x56ca8f(0x19c)]={'name':_0x3593cf,'version':{[_0x3593cf]:_0x570878[_0x56ca8f(0x132)](getFrameworkVersion,_0x3593cf)}};continue;case'2':_0x570878[_0x56ca8f(0x13a)](!_0x3593cf,!_0x42a5b2)&&logger['debug'](_0x56ca8f(0x195)+_0x3593cf+_0x56ca8f(0x120)+_0x42a5b2);continue;case'3':process[_0x56ca8f(0x11e)][_0x56ca8f(0x144)]=JSON['stringify'](this['automationFrameworkDetail']);continue;case'4':this[_0x56ca8f(0x1ba)]={'name':_0x42a5b2,'version':_0x570878[_0x56ca8f(0x1a5)](getFrameworkVersion,_0x42a5b2)};continue;}break;}}static['getHookRegistryKey'](_0x1cb846,_0x2a9c5c){return _0x1cb846+':'+_0x2a9c5c;}static[a72_0x58723c(0x1d7)](){const _0x3f895b=a72_0x58723c;return process[_0x3f895b(0x162)]+':'+threadId;}static[a72_0x58723c(0x142)](_0xc66488){const _0x5acc81=a72_0x58723c;if(_0xc66488[_0x5acc81(0x1ec)]&&_0xc66488[_0x5acc81(0x1ec)][_0x5acc81(0x17f)])return!![];return![];}static[a72_0x58723c(0x134)](_0x520620){const _0x1c8a22=a72_0x58723c;if(_0x520620['testContextOptions']&&_0x520620[_0x1c8a22(0x1ec)][_0x1c8a22(0x1eb)])return!![];return![];}static['matchHookRegex'](_0x332711){const _0x245cf7=a72_0x58723c,_0x34dcc6=new RegExp(TestFrameworkConstants[_0x245cf7(0x180)]);return _0x34dcc6[_0x245cf7(0x1fc)](_0x332711);}static[a72_0x58723c(0x19e)](_0x14049e,_0x207258){const _0x5ce73e=a72_0x58723c,_0x28ead4={};_0x28ead4[_0x5ce73e(0x13b)]=function(_0x14d372,_0x54bb08){return _0x14d372!==_0x54bb08;},_0x28ead4[_0x5ce73e(0x141)]=function(_0x47066d,_0x257fc8){return _0x47066d===_0x257fc8;},_0x28ead4[_0x5ce73e(0x149)]='object';const _0x2db57e=_0x28ead4;for(const [_0x43c59f,_0x4cbe9c]of Object['entries'](_0x207258)){if(_0x2db57e[_0x5ce73e(0x13b)](_0x4cbe9c,null)&&_0x2db57e['KImBg'](typeof _0x4cbe9c,_0x2db57e[_0x5ce73e(0x149)])&&!Array[_0x5ce73e(0x197)](_0x4cbe9c))_0x14049e[_0x43c59f]=this[_0x5ce73e(0x19e)](_0x14049e[_0x43c59f]||{},_0x4cbe9c);else Array[_0x5ce73e(0x197)](_0x4cbe9c)?_0x14049e[_0x43c59f]=(_0x14049e[_0x43c59f]||[])[_0x5ce73e(0x1b7)](_0x4cbe9c):_0x14049e[_0x43c59f]=_0x4cbe9c;}return _0x14049e;}}module['exports']=CLIUtils;
1
+ const a84_0x530dc9=a84_0x4f7e;(function(_0x568a78,_0x24f952){const _0x150558=a84_0x4f7e,_0x444f9e=_0x568a78();while(!![]){try{const _0x45de6c=-parseInt(_0x150558(0x24b))/0x1+-parseInt(_0x150558(0x243))/0x2+-parseInt(_0x150558(0x289))/0x3*(parseInt(_0x150558(0x250))/0x4)+parseInt(_0x150558(0x217))/0x5*(parseInt(_0x150558(0x20a))/0x6)+-parseInt(_0x150558(0x267))/0x7*(parseInt(_0x150558(0x1b6))/0x8)+-parseInt(_0x150558(0x247))/0x9*(-parseInt(_0x150558(0x25b))/0xa)+-parseInt(_0x150558(0x23f))/0xb*(-parseInt(_0x150558(0x1fe))/0xc);if(_0x45de6c===_0x24f952)break;else _0x444f9e['push'](_0x444f9e['shift']());}catch(_0x5f2d64){_0x444f9e['push'](_0x444f9e['shift']());}}}(a84_0x2a8d,0x67058));const fs=require('fs'),os=require('os'),url=require(a84_0x530dc9(0x221)),path=require(a84_0x530dc9(0x25e)),{exec}=require('child_process'),{https}=require(a84_0x530dc9(0x266)),yauzl=require(a84_0x530dc9(0x287)),util=require(a84_0x530dc9(0x277)),{getFrameworkVersion}=require(a84_0x530dc9(0x1cc)),{threadId}=require(a84_0x530dc9(0x239)),PerformanceTester=require(a84_0x530dc9(0x1cb)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x530dc9(0x251)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x530dc9(0x203)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a84_0x530dc9(0x226)),TestFrameworkInstance=require(a84_0x530dc9(0x273)),HookState=require(a84_0x530dc9(0x22c)),TestFrameworkState=require(a84_0x530dc9(0x1f4)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x530dc9(0x26b)),{getBStackAPIUrl}=require(a84_0x530dc9(0x215));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a84_0x530dc9(0x23d)](){const _0x2e241c=a84_0x530dc9,_0x8a5a14={};_0x8a5a14[_0x2e241c(0x1fb)]=function(_0x430e09,_0x4bfbd7){return _0x430e09===_0x4bfbd7;},_0x8a5a14['ytpGP']=_0x2e241c(0x23c);const _0x2cccf8=_0x8a5a14;return _0x2cccf8['sMpBi'](process[_0x2e241c(0x27d)][_0x2e241c(0x1f9)],_0x2cccf8['ytpGP']);}static['getCLIParamsForDevEnv'](){const _0x7ff3b0=a84_0x530dc9,_0x40f89b={};return _0x40f89b['id']=process[_0x7ff3b0(0x27d)][_0x7ff3b0(0x1f9)],_0x40f89b[_0x7ff3b0(0x201)]=_0x7ff3b0(0x262)+process[_0x7ff3b0(0x27d)]['BROWSERSTACK_CLI_ENV']+_0x7ff3b0(0x220),_0x40f89b;}static[a84_0x530dc9(0x1e4)](){const _0x19b39d=a84_0x530dc9,_0x376339={'zBlDc':function(_0x4b3723,_0x2ee0bf){return _0x4b3723(_0x2ee0bf);},'WAXgH':_0x19b39d(0x1e9)};return _0x376339[_0x19b39d(0x237)](require,_0x376339[_0x19b39d(0x1ce)])['version'];}static['getSdkLanguage'](){const _0xadcc25=a84_0x530dc9,_0xcacd3f={};_0xcacd3f['KuHIA']=_0xadcc25(0x27b);const _0x168c41=_0xcacd3f;return _0x168c41['KuHIA'];}static async['setupCliPath'](_0x48c3d4){const _0xf44fa6=a84_0x530dc9,_0x5550f5={'EWNlp':_0xf44fa6(0x1dd),'lBLtC':function(_0x171d10,_0x2fe91d){return _0x171d10(_0x2fe91d);},'DVhki':function(_0xd0200a,_0x4e1e52){return _0xd0200a(_0x4e1e52);},'ugVkV':_0xf44fa6(0x1c6)};logger[_0xf44fa6(0x20b)](_0x5550f5[_0xf44fa6(0x271)]);const _0x5e66fc=process[_0xf44fa6(0x27d)][_0xf44fa6(0x207)];if(!_0x5550f5[_0xf44fa6(0x1f1)](isNullOrEmpty,_0x5e66fc))return logger['debug']('Development\x20Cli\x20Path:\x20'+_0x5e66fc),_0x5e66fc;try{const _0x6b1570=this['getCliDir']();if(_0x5550f5[_0xf44fa6(0x26e)](isNullOrEmpty,_0x6b1570))throw new Error(_0x5550f5['ugVkV']);const _0x592e0e=this[_0xf44fa6(0x265)](_0x6b1570),_0x5ebe54=await this[_0xf44fa6(0x1c4)](_0x592e0e,_0x6b1570,_0x48c3d4);return logger[_0xf44fa6(0x20b)](_0xf44fa6(0x246)+_0x5ebe54),_0x5ebe54;}catch(_0x18d6a5){logger[_0xf44fa6(0x20b)](_0xf44fa6(0x258)+util[_0xf44fa6(0x279)](_0x18d6a5));}return null;}static async['checkAndUpdateCli'](_0x3db83c,_0x2e03a5,_0x2bd6c8){const _0xf6fa4b=a84_0x530dc9,_0x12b015={'zsveF':function(_0x317a7c){return _0x317a7c();},'fgMXH':function(_0x404d8e,_0x584567){return _0x404d8e(_0x584567);},'HghdQ':function(_0x41f1a1,_0x72ab0b,_0x58fed0){return _0x41f1a1(_0x72ab0b,_0x58fed0);},'oImmX':_0xf6fa4b(0x252),'sjQBh':'url'};PerformanceTester['start'](PerformanceEvents[_0xf6fa4b(0x242)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x3db83c);const _0x46bc89=_0x12b015[_0xf6fa4b(0x28e)](getHostInfo),_0x327abf={'sdk_version':CLIUtils[_0xf6fa4b(0x1e4)](),'os':_0x46bc89['platform'],'os_arch':_0x46bc89[_0xf6fa4b(0x23e)],'cli_version':'0','sdk_language':this[_0xf6fa4b(0x229)]()};!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&(_0x327abf['cli_version']=await this[_0xf6fa4b(0x1e0)](_0x3db83c+_0xf6fa4b(0x212)));const _0x38c8dc=await this['requestToUpdateCLI'](_0x327abf,_0x2bd6c8);process['env'][_0xf6fa4b(0x1bc)]&&(logger[_0xf6fa4b(0x248)](_0xf6fa4b(0x284)+process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]),_0x38c8dc[_0xf6fa4b(0x252)][_0xf6fa4b(0x221)]=process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]);if(_0x12b015[_0xf6fa4b(0x26c)](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015[_0xf6fa4b(0x1f5)]])){logger['debug'](_0xf6fa4b(0x1ba)+_0x327abf[_0xf6fa4b(0x20f)]);if(!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&this[_0xf6fa4b(0x20c)](_0x3db83c))return logger['warn'](_0xf6fa4b(0x224)+_0x3db83c),PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;const _0x4edbcb=await this[_0xf6fa4b(0x24c)](_0x12b015['HghdQ'](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015['sjQBh']]),_0x2e03a5);return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x4edbcb;}return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;}static[a84_0x530dc9(0x1e1)](){const _0x1504f1=a84_0x530dc9,_0x1b958a={'ExHQV':function(_0xf9c6,_0x4d1b94){return _0xf9c6(_0x4d1b94);},'vfEIq':_0x1504f1(0x1c6),'ZogrB':'cli','YGEDP':function(_0x2f2bca,_0x5c9836){return _0x2f2bca(_0x5c9836);}},_0x47a334=this[_0x1504f1(0x28c)]();try{if(_0x1b958a['ExHQV'](isNullOrEmpty,_0x47a334))throw new Error(_0x1b958a[_0x1504f1(0x1b4)]);const _0xa222e6=path[_0x1504f1(0x28f)](_0x47a334,_0x1b958a['ZogrB']);return!fs[_0x1504f1(0x28d)](_0xa222e6)&&_0x1b958a['YGEDP'](createDir,_0xa222e6),_0xa222e6;}catch(_0x19a8d1){logger[_0x1504f1(0x20b)](_0x1504f1(0x1d5)+util[_0x1504f1(0x279)](_0x19a8d1));}}static[a84_0x530dc9(0x28c)](){const _0x19f3bf=a84_0x530dc9,_0x9b1b3d={'BuvBX':_0x19f3bf(0x270),'UHuEt':function(_0x361d99,_0x149253){return _0x361d99(_0x149253);},'ukFyu':function(_0x263a9a,_0x3a31a8){return _0x263a9a(_0x3a31a8);}},_0x2b4e69=[process['env'][_0x19f3bf(0x256)],path[_0x19f3bf(0x28f)](os[_0x19f3bf(0x253)](),_0x9b1b3d['BuvBX']),path[_0x19f3bf(0x28f)](os['tmpdir'](),_0x9b1b3d['BuvBX'])];for(const _0x176678 of _0x2b4e69){if(_0x9b1b3d['UHuEt'](isNullOrEmpty,_0x176678))continue;try{if(fs[_0x19f3bf(0x28d)](_0x176678)){logger[_0x19f3bf(0x20b)](_0x19f3bf(0x282)+_0x176678+_0x19f3bf(0x1ea));if(!_0x9b1b3d[_0x19f3bf(0x211)](isModifiable,_0x176678)){logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0xb482a6=_0x9b1b3d[_0x19f3bf(0x211)](setReadWriteExecuteAccess,_0x176678);if(!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0xb482a6)){logger[_0x19f3bf(0x278)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x176678);continue;}}}else{logger[_0x19f3bf(0x20b)](_0x19f3bf(0x1f7)+_0x176678),_0x9b1b3d[_0x19f3bf(0x231)](createDir,_0x176678),logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0x501e3c=_0x9b1b3d[_0x19f3bf(0x231)](setReadWriteExecuteAccess,_0x176678);!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0x501e3c)&&logger[_0x19f3bf(0x278)](_0x19f3bf(0x1c2)+_0x176678);}return _0x176678;}catch(_0x2dff16){logger[_0x19f3bf(0x235)](_0x19f3bf(0x227)+util[_0x19f3bf(0x279)](_0x2dff16));}}return null;}static[a84_0x530dc9(0x265)](_0x2e8d53){const _0x58f9c8=a84_0x530dc9,_0x511c58={};_0x511c58[_0x58f9c8(0x1af)]=function(_0x52284a,_0x14eaf0){return _0x52284a>_0x14eaf0;};const _0x362855=_0x511c58;try{if(!fs[_0x58f9c8(0x28d)](_0x2e8d53)||!fs[_0x58f9c8(0x20e)](_0x2e8d53)['isDirectory']())return'';const _0x1bce2=fs[_0x58f9c8(0x1d0)](_0x2e8d53)['map'](_0x5d0fe5=>path[_0x58f9c8(0x28f)](_0x2e8d53,_0x5d0fe5))[_0x58f9c8(0x280)](_0x1c46ed=>fs[_0x58f9c8(0x20e)](_0x1c46ed)[_0x58f9c8(0x1ec)]()&&path['basename'](_0x1c46ed)['startsWith'](_0x58f9c8(0x1f6)));if(_0x362855[_0x58f9c8(0x1af)](_0x1bce2['length'],0x0)){const _0x6dd9b5=_0x1bce2['map'](_0x33afb=>({'filePath':_0x33afb,'mtime':fs['statSync'](_0x33afb)['mtime']}))[_0x58f9c8(0x1bb)]((_0x2c7202,_0x5745d1)=>{const _0x5a5b97=_0x58f9c8;if(!_0x2c7202||!_0x2c7202[_0x5a5b97(0x1d9)])return _0x5745d1;if(_0x362855['fTCuQ'](_0x5745d1[_0x5a5b97(0x1d9)],_0x2c7202[_0x5a5b97(0x1d9)]))return _0x5745d1;return _0x2c7202;},{});return _0x6dd9b5?_0x6dd9b5['filePath']:'';}return'';}catch(_0x5eb23e){return logger[_0x58f9c8(0x235)](_0x58f9c8(0x268)+util['format'](_0x5eb23e)),'';}}static [a84_0x530dc9(0x1ff)]=async(_0x5b327e,_0x361204)=>{const _0x3ce1ed=a84_0x530dc9,_0x404403={'wjpEa':function(_0x4eebb2,_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170){return _0x4eebb2(_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170);},'ejrVK':_0x3ce1ed(0x1c5)},_0x1ce548={};_0x1ce548['qs']=_0x5b327e;const _0x4dbadc=await _0x404403['wjpEa'](nodeRequest,_0x404403[_0x3ce1ed(0x218)],UPDATED_CLI_ENDPOINT,_0x1ce548,_0x361204);return logger[_0x3ce1ed(0x20b)](_0x3ce1ed(0x1b5)+JSON[_0x3ce1ed(0x286)](_0x4dbadc)),_0x4dbadc;};static[a84_0x530dc9(0x20c)](_0x157ac5){const _0x1f28ce=a84_0x530dc9;try{const _0x5c4a7c=fs[_0x1f28ce(0x1c7)](_0x157ac5,'r+');return fs[_0x1f28ce(0x1c3)](_0x5c4a7c),![];}catch(_0x2398d5){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2398d5['code']))return logger[_0x1f28ce(0x20b)]('Binary\x20is\x20busy:\x20'+_0x157ac5),!![];return logger['debug'](_0x1f28ce(0x264)+_0x2398d5[_0x1f28ce(0x249)]),![];}}static['runShellCommand'](_0x226be3,_0x1838d3=''){const _0x509223=a84_0x530dc9,_0x1d176f={'upQom':function(_0x5a392f,_0x13cb2c){return _0x5a392f(_0x13cb2c);},'bDxyU':_0x509223(0x22d),'KFLJq':_0x509223(0x1d1),'hrxlV':function(_0x47ac94,_0x325e04){return _0x47ac94(_0x325e04);},'eWVFW':function(_0x25c0aa,_0x52637d,_0x2b90ba,_0x195e87){return _0x25c0aa(_0x52637d,_0x2b90ba,_0x195e87);},'uKqoi':'error'};return new Promise((_0x1c54da,_0x4101d8)=>{const _0x2fd112=_0x509223,_0x731d4f={'bRzhF':_0x1d176f[_0x2fd112(0x1c0)],'hOaKN':function(_0x4c90b8,_0x552d10){return _0x1d176f['hrxlV'](_0x4c90b8,_0x552d10);},'tVljR':function(_0x4e707e,_0xce0f45){const _0x1d05e2=_0x2fd112;return _0x1d176f[_0x1d05e2(0x234)](_0x4e707e,_0xce0f45);},'Xzeii':_0x1d176f['bDxyU']},_0x1e02bd={};_0x1e02bd[_0x2fd112(0x288)]=_0x1838d3,_0x1e02bd[_0x2fd112(0x1e7)]=0x1388;const _0x422b49=_0x1d176f[_0x2fd112(0x254)](exec,_0x226be3,_0x1e02bd,(_0x40bf4c,_0x1381a2,_0x20f87f)=>{const _0xe7d3e3=_0x2fd112;if(_0x40bf4c){if(_0x226be3[_0xe7d3e3(0x21a)](_0x731d4f[_0xe7d3e3(0x1b9)])&&(_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]())){const _0x58f63f=_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]();logger[_0xe7d3e3(0x20b)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x58f63f+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x58f63f);}else _0x731d4f[_0xe7d3e3(0x22e)](_0x1c54da,_0x20f87f[_0xe7d3e3(0x25f)]()||_0x731d4f[_0xe7d3e3(0x245)]);}else logger['debug'](_0xe7d3e3(0x272)+_0x1381a2[_0xe7d3e3(0x25f)]()+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x1381a2[_0xe7d3e3(0x25f)]());});_0x422b49['on'](_0x1d176f[_0x2fd112(0x281)],()=>{const _0x2090d7=_0x2fd112;_0x1d176f[_0x2090d7(0x22a)](_0x1c54da,_0x1d176f[_0x2090d7(0x219)]);});});}static [a84_0x530dc9(0x24c)]=async(_0x3bcb84,_0x96c9a1)=>{const _0x4cf92c=a84_0x530dc9,_0x5cc277={'yZtCl':function(_0x5dfbe1,_0x1f9d4c){return _0x5dfbe1(_0x1f9d4c);},'oLnee':_0x4cf92c(0x238),'VWHZf':function(_0x317bcc,_0x40e19b){return _0x317bcc(_0x40e19b);},'NbNIt':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','WHdue':function(_0x1841a3,_0x1fb72f){return _0x1841a3(_0x1fb72f);},'JYSWR':_0x4cf92c(0x235)};PerformanceTester[_0x4cf92c(0x222)](PerformanceEvents[_0x4cf92c(0x22b)]),logger['debug'](_0x4cf92c(0x1e2)+_0x3bcb84);try{const _0x1b534f=url[_0x4cf92c(0x1d8)](_0x3bcb84),_0x45eece=path[_0x4cf92c(0x28f)](_0x96c9a1,_0x4cf92c(0x1b2)+process['pid']+_0x4cf92c(0x24f)),_0x3483e9=fs['createWriteStream'](_0x45eece);return new Promise((_0x4aa750,_0x56431c)=>{const _0x25b3d8=_0x4cf92c,_0x3d74a9={'nlaSH':_0x5cc277[_0x25b3d8(0x1fd)],'VesNM':function(_0x3f8f50,_0x48e5d5){return _0x5cc277['VWHZf'](_0x3f8f50,_0x48e5d5);},'MvGjR':_0x5cc277['NbNIt'],'nPuHj':function(_0x83684b,_0x2a7e5b){const _0x4f7b3c=_0x25b3d8;return _0x5cc277[_0x4f7b3c(0x27c)](_0x83684b,_0x2a7e5b);},'LQqnH':function(_0xf9221f,_0x1e1a24){const _0x564ae4=_0x25b3d8;return _0x5cc277[_0x564ae4(0x27c)](_0xf9221f,_0x1e1a24);},'rvQez':function(_0xd2dc9c,_0x51de3d){return _0x5cc277['WHdue'](_0xd2dc9c,_0x51de3d);},'wODDG':_0x5cc277['JYSWR']};https[_0x25b3d8(0x24a)](_0x1b534f,function(_0x199a7b){const _0x354270=_0x25b3d8,_0x3b6423={'UOZKq':function(_0x46de42,_0x2d0cf7){const _0xfc41ba=a84_0x4f7e;return _0x3d74a9[_0xfc41ba(0x232)](_0x46de42,_0x2d0cf7);}},_0x2e4732=null;_0x199a7b[_0x354270(0x274)](_0x3483e9),_0x199a7b['on'](_0x3d74a9['wODDG'],function(_0x542c7f){const _0xb4c7f5=_0x354270;logger[_0xb4c7f5(0x235)](util[_0xb4c7f5(0x279)](_0x3d74a9[_0xb4c7f5(0x1da)],_0x542c7f)),PerformanceTester['end'](PerformanceEvents[_0xb4c7f5(0x22b)],![],util['format'](_0x542c7f)),_0x3d74a9[_0xb4c7f5(0x25a)](_0x56431c,_0x542c7f);}),_0x3483e9['on'](_0x3d74a9[_0x354270(0x1be)],function(_0x107c16){const _0x1665fa=_0x354270;logger[_0x1665fa(0x235)](util[_0x1665fa(0x279)](_0x3d74a9[_0x1665fa(0x283)],_0x107c16)),PerformanceTester[_0x1665fa(0x1e5)](PerformanceEvents[_0x1665fa(0x22b)],![],util[_0x1665fa(0x279)](_0x107c16)),_0x3d74a9['nPuHj'](_0x56431c,_0x107c16);}),CLIUtils['downloadFileStream'](_0x3483e9,_0x2e4732,_0x45eece,_0x96c9a1,_0x25141b=>{const _0x5bfa35=_0x354270;PerformanceTester[_0x5bfa35(0x1e5)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x3b6423[_0x5bfa35(0x1c1)](_0x4aa750,_0x25141b);},_0x340db9=>{const _0x20f612=_0x354270;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x20f612(0x279)](_0x340db9)),_0x3d74a9[_0x20f612(0x202)](_0x56431c,_0x340db9);});})['on'](_0x5cc277[_0x25b3d8(0x263)],function(_0x55e849){const _0x30d928=_0x25b3d8;logger['error'](_0x30d928(0x216)+util['format'](_0x55e849)),PerformanceTester['end'](PerformanceEvents[_0x30d928(0x22b)],![],util[_0x30d928(0x279)](_0x55e849)),_0x5cc277[_0x30d928(0x1df)](_0x56431c,_0x55e849);});});}catch(_0x14cbf3){PerformanceTester[_0x4cf92c(0x1e5)](PerformanceEvents[_0x4cf92c(0x22b)],![],util[_0x4cf92c(0x279)](_0x14cbf3)),logger['debug'](_0x4cf92c(0x1b0)+util[_0x4cf92c(0x279)](_0x14cbf3));}};static[a84_0x530dc9(0x261)](_0x2edb97,_0xff5c2f,_0x556f60,_0x11aa91,_0x2f1764,_0x127110){const _0x2df66a=a84_0x530dc9,_0xf7200a={'xxkYw':function(_0x341d22,_0xba6204){return _0x341d22(_0xba6204);},'HjGIg':_0x2df66a(0x275),'kNUPP':_0x2df66a(0x1e5),'ceogf':function(_0x33af52,_0x288483){return _0x33af52!==_0x288483;},'sQwdM':function(_0x4db1d5,_0xad0735){return _0x4db1d5(_0xad0735);},'EGIEJ':_0x2df66a(0x235),'egQfZ':function(_0x4ab44c,_0x386a81){return _0x4ab44c(_0x386a81);},'CxAcq':function(_0x1103eb,_0x45bc56){return _0x1103eb!==_0x45bc56;},'VAIps':'EXDEV','obRKd':_0x2df66a(0x1db),'kZYbA':'entry'};_0x2edb97['on'](_0xf7200a[_0x2df66a(0x21f)],function(){const _0x26aee6=_0x2df66a,_0x49a80c={'rEaQW':function(_0x2091f0,_0x4a5aab){const _0x2310e6=a84_0x4f7e;return _0xf7200a[_0x2310e6(0x1cf)](_0x2091f0,_0x4a5aab);},'RbKDa':_0xf7200a[_0x26aee6(0x21f)],'WoUoP':_0xf7200a[_0x26aee6(0x26d)],'foBVD':function(_0x29fa93,_0x35d66a){const _0x1cd49d=_0x26aee6;return _0xf7200a[_0x1cd49d(0x21d)](_0x29fa93,_0x35d66a);},'SzOwm':function(_0x54bebf,_0x1e0594){const _0x5efc15=_0x26aee6;return _0xf7200a[_0x5efc15(0x1cf)](_0x54bebf,_0x1e0594);},'JouOB':function(_0x14a1b7,_0x56f0d4){return _0xf7200a['sQwdM'](_0x14a1b7,_0x56f0d4);},'YmDvv':_0xf7200a[_0x26aee6(0x244)],'hXkOq':function(_0x507b7c,_0x35d311){const _0x4cee11=_0x26aee6;return _0xf7200a[_0x4cee11(0x22f)](_0x507b7c,_0x35d311);},'AhYDS':function(_0x5bdfaf,_0x4d9547){const _0x830d9e=_0x26aee6;return _0xf7200a[_0x830d9e(0x200)](_0x5bdfaf,_0x4d9547);},'Fekju':_0xf7200a['VAIps'],'fVtCJ':_0xf7200a[_0x26aee6(0x24e)],'Xszig':function(_0x2d8d87,_0x134219){const _0x34047a=_0x26aee6;return _0xf7200a[_0x34047a(0x1cf)](_0x2d8d87,_0x134219);},'AizRs':_0xf7200a[_0x26aee6(0x1d3)]},_0x502d34={};_0x502d34[_0x26aee6(0x20d)]=!![],yauzl[_0x26aee6(0x21c)](_0x556f60,_0x502d34,function(_0x4e6de5,_0x6c1e9a){const _0x9474f8=_0x26aee6,_0x5defdb={'cRInB':function(_0x32c9d9,_0x11fa2e){return _0x49a80c['AhYDS'](_0x32c9d9,_0x11fa2e);},'ClCpL':_0x49a80c[_0x9474f8(0x1b3)],'kLIOg':function(_0x423a67,_0x109feb){return _0x49a80c['SzOwm'](_0x423a67,_0x109feb);},'tJUJt':_0x49a80c[_0x9474f8(0x1ed)]};if(_0x4e6de5){_0x49a80c[_0x9474f8(0x1bf)](_0x127110,_0x4e6de5);return;}_0x6c1e9a[_0x9474f8(0x1de)](),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x257)],_0x47632d=>{const _0x1be130=_0x9474f8,_0x2d9237={'fYaRk':function(_0x55d561,_0x1202d7){return _0x49a80c['rEaQW'](_0x55d561,_0x1202d7);},'EQKcN':function(_0x1ce571,_0xf645e5){const _0x15bc16=a84_0x4f7e;return _0x49a80c[_0x15bc16(0x230)](_0x1ce571,_0xf645e5);},'ycEuh':_0x49a80c[_0x1be130(0x259)],'hlZAo':_0x49a80c['WoUoP']};if(/\/$/['test'](_0x47632d[_0x1be130(0x26f)])){_0x6c1e9a['readEntry']();return;}!_0xff5c2f&&(_0xff5c2f=_0x47632d[_0x1be130(0x26f)]);if(_0x49a80c[_0x1be130(0x28b)](_0x47632d[_0x1be130(0x26f)],_0xff5c2f))_0x6c1e9a[_0x1be130(0x1de)]();else{const _0x580301=_0x47632d[_0x1be130(0x26f)],_0x4759ee=path['join'](_0x11aa91,_0x580301+_0x1be130(0x209)+process[_0x1be130(0x208)]);let _0x22107;try{_0x22107=fs[_0x1be130(0x1d6)](_0x4759ee);}catch(_0xa0d7a6){if(BINARY_BUSY_ERROR_CODES[_0x1be130(0x21a)](_0xa0d7a6[_0x1be130(0x210)])){const _0x10201c=path[_0x1be130(0x28f)](_0x11aa91,_0x580301);if(fs['existsSync'](_0x10201c)){logger[_0x1be130(0x278)](_0x1be130(0x1d2)+_0x580301),fs[_0x1be130(0x1ef)](_0x556f60,_0x575d5d=>{const _0xc6d5ee=_0x1be130;_0x575d5d&&logger[_0xc6d5ee(0x278)](_0xc6d5ee(0x27a)+_0x556f60);}),_0x49a80c[_0x1be130(0x223)](_0x2f1764,_0x10201c);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x580301);}_0x49a80c[_0x1be130(0x1eb)](_0x127110,_0xa0d7a6);return;}_0x22107['on'](_0x49a80c[_0x1be130(0x1b8)],_0x36aebf=>{const _0x5631bf=_0x1be130;if(BINARY_BUSY_ERROR_CODES[_0x5631bf(0x21a)](_0x36aebf[_0x5631bf(0x210)])){const _0x3a45ea=path[_0x5631bf(0x28f)](_0x11aa91,_0x580301);_0x22107['close'](),fs[_0x5631bf(0x28d)](_0x3a45ea)?(logger[_0x5631bf(0x278)](_0x5631bf(0x21b)+_0x36aebf['message']),_0x6c1e9a[_0x5631bf(0x275)](),fs[_0x5631bf(0x1ef)](_0x556f60,_0x558c0=>{const _0x43a96b=_0x5631bf;_0x558c0&&logger['warn'](_0x43a96b(0x27a)+_0x556f60);}),_0x2d9237[_0x5631bf(0x285)](_0x2f1764,_0x3a45ea)):(logger[_0x5631bf(0x278)](_0x5631bf(0x1bd)+_0x36aebf[_0x5631bf(0x249)]),fs['unlink'](_0x4759ee,()=>{}),_0x2d9237['EQKcN'](_0x127110,_0x36aebf));}else fs[_0x5631bf(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x5631bf(0x290)](_0x127110,_0x36aebf);}),_0x6c1e9a[_0x1be130(0x206)](_0x47632d,function(_0x51f279,_0x3b89c4){const _0x3bd2b8=_0x1be130,_0x583eb5={};_0x583eb5['gMqCd']=_0x2d9237['ycEuh'];const _0x519d90=_0x583eb5;if(_0x51f279){fs[_0x3bd2b8(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x3bd2b8(0x285)](_0x127110,_0x51f279);return;}_0x3b89c4['on'](_0x2d9237[_0x3bd2b8(0x240)],function(){const _0x5d872d=_0x3bd2b8;_0x22107[_0x5d872d(0x1e5)](),_0x22107['on'](_0x519d90[_0x5d872d(0x24d)],function(){const _0x2daf9c=_0x5d872d;_0x6c1e9a[_0x2daf9c(0x1de)]();});}),_0x3b89c4[_0x3bd2b8(0x274)](_0x22107);});}}),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x1b8)],_0x47479a=>{_0x49a80c['hXkOq'](_0x127110,_0x47479a);}),_0x6c1e9a[_0x9474f8(0x260)](_0x49a80c[_0x9474f8(0x1b1)],()=>{const _0x1126cd=_0x9474f8,_0x33de04={'dXmhX':function(_0x5669ae,_0x22ebee){return _0x5defdb['cRInB'](_0x5669ae,_0x22ebee);},'UgDQd':_0x5defdb[_0x1126cd(0x236)],'kNkJP':function(_0x564679,_0x3b36b6){const _0x45b336=_0x1126cd;return _0x5defdb[_0x45b336(0x1ae)](_0x564679,_0x3b36b6);},'prYfB':function(_0x1e965f,_0x3596e4){const _0x2f5ff1=_0x1126cd;return _0x5defdb[_0x2f5ff1(0x1ae)](_0x1e965f,_0x3596e4);}};fs[_0x1126cd(0x1ef)](_0x556f60,_0x2c3c41=>{_0x2c3c41&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x556f60);});const _0x34bffc=path[_0x1126cd(0x28f)](_0x11aa91,_0xff5c2f+_0x1126cd(0x209)+process[_0x1126cd(0x208)]),_0x245e2d=path['join'](_0x11aa91,_0xff5c2f);fs['chmod'](_0x34bffc,_0x5defdb[_0x1126cd(0x1f8)],function(_0x15d7c0){const _0x1a4a07=_0x1126cd,_0x5532a2={'JZsYF':function(_0x5eea1f,_0x3fd67a){return _0x33de04['dXmhX'](_0x5eea1f,_0x3fd67a);},'Ntzea':_0x33de04['UgDQd'],'tFXSb':function(_0x6d68b1,_0x1f4520){const _0x55dd56=a84_0x4f7e;return _0x33de04[_0x55dd56(0x1e8)](_0x6d68b1,_0x1f4520);},'zSdJD':function(_0x4acf62,_0xfd8c86){const _0x2a4dbf=a84_0x4f7e;return _0x33de04[_0x2a4dbf(0x1e8)](_0x4acf62,_0xfd8c86);}};if(_0x15d7c0){_0x6c1e9a[_0x1a4a07(0x275)](),fs[_0x1a4a07(0x1ef)](_0x34bffc,()=>{}),_0x33de04[_0x1a4a07(0x255)](_0x127110,_0x15d7c0);return;}fs[_0x1a4a07(0x225)](_0x34bffc,_0x245e2d,function(_0x361d85){const _0x389f55=_0x1a4a07;if(_0x361d85){if(_0x5532a2[_0x389f55(0x1c9)](_0x361d85[_0x389f55(0x210)],_0x5532a2['Ntzea'])){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x361d85);return;}logger['warn'](_0x389f55(0x1fa)+_0x361d85['message']);try{fs['copyFileSync'](_0x34bffc,_0x245e2d);}catch(_0x513742){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x513742);return;}fs[_0x389f55(0x1ef)](_0x34bffc,_0x38ccd6=>{const _0x3ca487=_0x389f55;_0x38ccd6&&logger[_0x3ca487(0x278)](_0x3ca487(0x25d)+_0x38ccd6[_0x3ca487(0x249)]);});}_0x6c1e9a['close'](),_0x5532a2[_0x389f55(0x1f3)](_0x2f1764,_0x245e2d);});});});});});}static[a84_0x530dc9(0x1cd)](){const _0x4bce48=a84_0x530dc9;if(process['env'][_0x4bce48(0x213)])return JSON['parse'](process[_0x4bce48(0x27d)][_0x4bce48(0x213)]);return this[_0x4bce48(0x241)];}static[a84_0x530dc9(0x1e3)](){const _0x35e19b=a84_0x530dc9;if(process[_0x35e19b(0x27d)][_0x35e19b(0x1d4)])return JSON[_0x35e19b(0x1d8)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x35e19b(0x23b)];}static['setFrameworkDetail'](_0x37b1a4,_0x4da46f){const _0x6f9db8=a84_0x530dc9,_0x448a0b={'vsEAr':_0x6f9db8(0x1e6),'UQkkc':function(_0x5a22cd,_0x39d165){return _0x5a22cd(_0x39d165);},'HXCLy':function(_0x85921b,_0x1f2b65){return _0x85921b||_0x1f2b65;}},_0x488dcf=_0x448a0b['vsEAr'][_0x6f9db8(0x26a)]('|');let _0x105db4=0x0;while(!![]){switch(_0x488dcf[_0x105db4++]){case'0':process[_0x6f9db8(0x27d)][_0x6f9db8(0x1d4)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x23b)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x4da46f,'version':_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x4da46f)};continue;case'2':_0x448a0b[_0x6f9db8(0x25c)](!_0x37b1a4,!_0x4da46f)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x37b1a4+_0x6f9db8(0x214)+_0x4da46f);continue;case'3':process[_0x6f9db8(0x27d)][_0x6f9db8(0x213)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x241)]);continue;case'4':this['testFrameworkDetail']={'name':_0x37b1a4,'version':{[_0x37b1a4]:_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x37b1a4)}};continue;}break;}}static[a84_0x530dc9(0x205)](_0x43dd54,_0x5e4302){return _0x43dd54+':'+_0x5e4302;}static[a84_0x530dc9(0x28a)](){const _0x38aa68=a84_0x530dc9;return process[_0x38aa68(0x208)]+':'+threadId;}static['shouldSkipSessionName'](_0x5720e4){const _0x8fc2bc=a84_0x530dc9;if(_0x5720e4[_0x8fc2bc(0x1b7)]&&_0x5720e4[_0x8fc2bc(0x1b7)][_0x8fc2bc(0x1f2)])return!![];return![];}static[a84_0x530dc9(0x27f)](_0x599469){const _0x5182a0=a84_0x530dc9;if(_0x599469[_0x5182a0(0x1b7)]&&_0x599469[_0x5182a0(0x1b7)][_0x5182a0(0x291)])return!![];return![];}static[a84_0x530dc9(0x1d7)](_0x45690a){const _0x371a26=a84_0x530dc9,_0x5ef190=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5ef190[_0x371a26(0x23a)](_0x45690a);}static[a84_0x530dc9(0x233)](_0x41227b,_0x47d1ec){const _0x4fb68f=a84_0x530dc9,_0x5da632={};_0x5da632['mchOr']=function(_0x314788,_0xe47018){return _0x314788!==_0xe47018;},_0x5da632[_0x4fb68f(0x1c8)]=function(_0x306fe6,_0x256abf){return _0x306fe6===_0x256abf;},_0x5da632[_0x4fb68f(0x27e)]='object';const _0x30ae6c=_0x5da632;for(const [_0x599aa6,_0x2c6cbb]of Object[_0x4fb68f(0x1dc)](_0x47d1ec)){if(_0x30ae6c[_0x4fb68f(0x1ca)](_0x2c6cbb,null)&&_0x30ae6c[_0x4fb68f(0x1c8)](typeof _0x2c6cbb,_0x30ae6c['vddBv'])&&!Array['isArray'](_0x2c6cbb))_0x41227b[_0x599aa6]=this['mergeObject'](_0x41227b[_0x599aa6]||{},_0x2c6cbb);else Array[_0x4fb68f(0x1ee)](_0x2c6cbb)?_0x41227b[_0x599aa6]=(_0x41227b[_0x599aa6]||[])['concat'](_0x2c6cbb):_0x41227b[_0x599aa6]=_0x2c6cbb;}return _0x41227b;}}function a84_0x4f7e(_0x13a424,_0x2f802a){const _0x2a8dd3=a84_0x2a8d();return a84_0x4f7e=function(_0x4f7ef2,_0x321dc4){_0x4f7ef2=_0x4f7ef2-0x1ae;let _0x3f64a5=_0x2a8dd3[_0x4f7ef2];return _0x3f64a5;},a84_0x4f7e(_0x13a424,_0x2f802a);}module[a84_0x530dc9(0x204)]=CLIUtils;function a84_0x2a8d(){const _0x58f297=['./state/testFrameworkState.js','sjQBh','binary-','Folder\x20does\x20not\x20exist:\x20','tJUJt','BROWSERSTACK_CLI_ENV','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','sMpBi','tFXSb','oLnee','130428mpwGzz','requestToUpdateCLI','CxAcq','listen','LQqnH','../../helpers/helper','exports','getHookRegistryKey','openReadStream','SDK_CLI_BIN_PATH','pid','.tmp.','42DbntwH','debug','isBinaryBusy','lazyEntries','statSync','cli_version','code','UHuEt','\x20version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL',',\x20automationFramework=','../utils/apiUtilityMethods.js','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','540895yuUYfg','ejrVK','bDxyU','includes','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','open','ceogf','hOaKN','HjGIg','.sock','url','start','SzOwm','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','rename','../../helpers/classLogger.js','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','fgMXH','getSdkLanguage','upQom','SDK_CLI_DOWNLOAD','./state/hookState.js','SHELL_EXECUTE_ERROR','tVljR','egQfZ','rEaQW','ukFyu','rvQez','mergeObject','hrxlV','error','ClCpL','zBlDc','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','worker_threads','test','automationFrameworkDetail','development','isDevelopmentEnv','arch','1298dfqxWI','hlZAo','testFrameworkDetail','SDK_CLI_CHECK_UPDATE','569426treNdw','EGIEJ','Xzeii','Resolved\x20binary\x20path:\x20','9Rnbsjo','info','message','get','586048DTVVHo','downloadLatestBinary','gMqCd','obRKd','.zip','439996SiXwsz','../../helpers/utilities','data','homedir','eWVFW','prYfB','BROWSERSTACK_FILES_DIR','AizRs','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RbKDa','VesNM','102750pwLHJB','HXCLy','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','path','trim','once','downloadFileStream','unix:/tmp/sdk-platform-','JYSWR','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','getExistingCliPath','follow-redirects','7iqsQpW','Error\x20while\x20reading\x20CLI\x20path:\x20','Setting\x20required\x20permissions\x20to\x20','split','CLIUtils','HghdQ','kNUPP','DVhki','fileName','.browserstack','EWNlp','Resolving\x20with\x20stdout:\x20\x22','./instances/testFrameworkInstance.js','pipe','close','UQkkc','util','warn','format','Failed\x20to\x20delete\x20zip\x20file:\x20','node','VWHZf','env','vddBv','shouldSkipSessionStatus','filter','uKqoi','Folder\x20','MvGjR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','fYaRk','stringify','yauzl','cwd','3XeEbLm','getCurrentInstanceName','foBVD','getWritableDir','existsSync','zsveF','join','EQKcN','skipSessionStatus','kLIOg','fTCuQ','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','WoUoP','downloaded_file_','Fekju','vfEIq','response\x20','5178672ewOxRU','testContextOptions','YmDvv','bRzhF','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','reduce','BROWSERSTACK_BINARY_URL','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','wODDG','Xszig','KFLJq','UOZKq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','closeSync','checkAndUpdateCli','GET','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','openSync','PxIHp','JZsYF','mchOr','../../helpers/performance/performance-tester.js','../../helpers/test-observability/utils.js','getTestFrameworkDetail','WAXgH','xxkYw','readdirSync','version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','kZYbA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','createWriteStream','matchHookRegex','parse','mtime','nlaSH','0755','entries','Configuring\x20Cli\x20path.','readEntry','yZtCl','runShellCommand','getCliDir','Downloading\x20SDK\x20binary\x20from:\x20','getAutomationFrameworkDetail','getSdkVersion','end','2|4|1|0|3','timeout','kNkJP','../../../package.json','\x20already\x20exists','JouOB','isFile','fVtCJ','isArray','unlink','oImmX','lBLtC','skipSessionName','zSdJD'];a84_0x2a8d=function(){return _0x58f297;};return a84_0x2a8d();}
@@ -1 +1 @@
1
- 'use strict';const a73_0x39fc9f=a73_0x53ad;(function(_0x3fe967,_0xa051eb){const _0x4ec305=a73_0x53ad,_0x506775=_0x3fe967();while(!![]){try{const _0x163144=-parseInt(_0x4ec305(0x206))/0x1*(-parseInt(_0x4ec305(0x202))/0x2)+-parseInt(_0x4ec305(0x1db))/0x3+-parseInt(_0x4ec305(0x1fd))/0x4+parseInt(_0x4ec305(0x20e))/0x5*(-parseInt(_0x4ec305(0x23e))/0x6)+parseInt(_0x4ec305(0x1c9))/0x7+-parseInt(_0x4ec305(0x1fa))/0x8*(-parseInt(_0x4ec305(0x1e2))/0x9)+parseInt(_0x4ec305(0x215))/0xa*(-parseInt(_0x4ec305(0x22c))/0xb);if(_0x163144===_0xa051eb)break;else _0x506775['push'](_0x506775['shift']());}catch(_0x27d40c){_0x506775['push'](_0x506775['shift']());}}}(a73_0x2e8e,0xaee28));function a73_0x53ad(_0x5cc14a,_0x53670b){const _0x2e8e77=a73_0x2e8e();return a73_0x53ad=function(_0x53adda,_0x3db59f){_0x53adda=_0x53adda-0x1c1;let _0x54150f=_0x2e8e77[_0x53adda];return _0x54150f;},a73_0x53ad(_0x5cc14a,_0x53670b);}function a73_0x2e8e(){const _0xf5279b=['mtimeMs','ms)\x20','testLevelTags','getTestFramework','./modules/testhubModule','writeFile','getState','lafXo','2140278bEJVqj','message','pid','stringify','MiGWn','getTestUUID','eSrbk','clearTags','buildHashedId','gtMkR','getAllData','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','includes','null','iDCRw','startsWith','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','getTrackedInstance','KEY_CUSTOM_TAGS','7630273BVFtEu','isArray','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','entries','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getBuildLevelTags',',\x20values=','BUILD_TAG_FILE_PREFIX','setCustomTags','iDxwb','DySnj','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','Snved','_testInternals','BROWSERSTACK_TESTHUB_UUID','EAIkq','bstack_build_tags_','502110rTQqlZ','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','ySCIU',',\x20key=','parse','BwCqX','now','3015pGbEVK','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','./state/testFrameworkState','resolveInstance','./TestInfo','readFileSync','./browserstackCLI','oIQjV','./framework/constants/testFrameworkConstants','getInstance','oyPik','jest','addMultipleEntries','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','join','OkpcX','readdirSync','setTestDetails','../../helpers/classLogger','zEgyf','IcKRl','modules','length','lvCjn','33608WQlzxi','filter','tmpdir','3850468zIDcaP',',\x20existingTags=','GgLTd','endsWith','getBuildTagsRunId','72lhQCiO','promises','CustomTagManager','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','22189pMCGQW','izGBP','statSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20',',\x20finalTags=','string','mergeValues','getTestDetails','5VltFss','mergeIntoTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','VOeol','trim','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','218630LGrPja','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','buildLevelTags','toObject','cpUGO','keys','__jestCurrentTestIdentifier','values','retry','XVhjZ','ZSSxz','getTestLevelTags','./framework/automationFramework','multi_dropdown','POST','./cliUtils','debug','isRunning','getBuildTagsFilePath','currentTest','mergeBuildLevelTags','Ficyv','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','550miZBKZ','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','RJMNA','MODULE_NAME','\x20->\x20values=','utf8','unlinkSync','iEkoU','KEY_TEST_ID','path'];a73_0x2e8e=function(){return _0xf5279b;};return a73_0x2e8e();}const fs=require('fs'),os=require('os'),path=require(a73_0x39fc9f(0x235)),helper=require('../../helpers/helper'),AutomationFramework=require(a73_0x39fc9f(0x221)),TestFrameworkConstants=require(a73_0x39fc9f(0x1ea)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a73_0x39fc9f(0x1e6)),TestHubModule=require(a73_0x39fc9f(0x23a)),{createClassLogger}=require(a73_0x39fc9f(0x1f4)),logger=createClassLogger(a73_0x39fc9f(0x204)),BUILD_TAG_FILE_PREFIX=a73_0x39fc9f(0x1da);function getBuildTagsRunId(){const _0x2f4356=a73_0x39fc9f,_0x3705af={};_0x3705af['iDCRw']=function(_0x28e527,_0x4d474b){return _0x28e527===_0x4d474b;},_0x3705af[_0x2f4356(0x1f1)]=_0x2f4356(0x1c3);const _0x2c3f97=_0x3705af,_0x254ccc=process['env'][_0x2f4356(0x1d8)];if(!_0x254ccc||_0x2c3f97[_0x2f4356(0x1c4)](_0x254ccc,_0x2c3f97[_0x2f4356(0x1f1)]))return null;return _0x254ccc;}function getBuildTagsFilePath(_0x52a981){const _0x2dc3c5=a73_0x39fc9f;return path[_0x2dc3c5(0x1f0)](os[_0x2dc3c5(0x1fc)](),''+BUILD_TAG_FILE_PREFIX+_0x52a981+'_'+process[_0x2dc3c5(0x240)]+'.json');}class CustomTagManager{static [a73_0x39fc9f(0x217)]={};static [a73_0x39fc9f(0x238)]={};static[a73_0x39fc9f(0x20c)](_0x12a847,_0x2c2e9d){return Array['from'](new Set([..._0x12a847||[],..._0x2c2e9d||[]]));}static[a73_0x39fc9f(0x20f)](_0x191c03,_0x4252d8,_0x483b7b){const _0x1c9d80=a73_0x39fc9f,_0x5a9763={};_0x5a9763[_0x1c9d80(0x244)]=_0x1c9d80(0x222);const _0x357135=_0x5a9763;if(!_0x191c03[_0x4252d8]){const _0x30151b={};_0x30151b['field_type']=_0x357135[_0x1c9d80(0x244)],_0x30151b['values']=[..._0x483b7b||[]],_0x191c03[_0x4252d8]=_0x30151b;}else!_0x191c03[_0x4252d8]['field_type']&&(_0x191c03[_0x4252d8]['field_type']=_0x357135[_0x1c9d80(0x244)]),!Array[_0x1c9d80(0x1ca)](_0x191c03[_0x4252d8][_0x1c9d80(0x21c)])&&(_0x191c03[_0x4252d8][_0x1c9d80(0x21c)]=[]),_0x191c03[_0x4252d8][_0x1c9d80(0x21c)]=CustomTagManager[_0x1c9d80(0x20c)](_0x191c03[_0x4252d8][_0x1c9d80(0x21c)],_0x483b7b);return _0x191c03;}static async[a73_0x39fc9f(0x1d2)](_0x4ea176,_0x4f204e,_0x5ab059=![]){const _0x4e8633=a73_0x39fc9f,_0x19881b={'ZSSxz':function(_0x7b5df5,_0x57c922){return _0x7b5df5!==_0x57c922;},'DySnj':_0x4e8633(0x20b),'BwCqX':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','izGBP':function(_0x54d25b,_0x2ac178){return _0x54d25b!==_0x2ac178;},'Snved':_0x4e8633(0x213),'lafXo':function(_0x4b81a8,_0x4f46f8){return _0x4b81a8===_0x4f46f8;},'iDxwb':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','KFpqm':_0x4e8633(0x22b),'iEkoU':function(_0x58725f,_0x302828){return _0x58725f(_0x302828);},'VOeol':_0x4e8633(0x1e8),'ibVdF':function(_0x406884){return _0x406884();},'IcKRl':_0x4e8633(0x222),'cpUGO':function(_0x8ec9bb,_0x45bae0){return _0x8ec9bb>_0x45bae0;},'MiGWn':_0x4e8633(0x22d),'oyPik':':jest-','kvUGW':_0x4e8633(0x224),'ySCIU':function(_0x5468c7,_0x5ad6d0){return _0x5468c7(_0x5ad6d0);},'zEgyf':_0x4e8633(0x1ed),'jCXYA':_0x4e8633(0x1c6),'oIQjV':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','RJMNA':_0x4e8633(0x1e4),'Ficyv':'./state/hookState','TnoWc':_0x4e8633(0x205)};if(_0x19881b[_0x4e8633(0x21f)](typeof _0x4ea176,_0x19881b[_0x4e8633(0x1d4)])){logger[_0x4e8633(0x225)](_0x19881b[_0x4e8633(0x1e0)]);return;}if(_0x19881b[_0x4e8633(0x207)](typeof _0x4f204e,_0x19881b[_0x4e8633(0x1d4)])){logger[_0x4e8633(0x225)](_0x19881b[_0x4e8633(0x1d6)]);return;}if(_0x19881b[_0x4e8633(0x23d)](_0x4ea176[_0x4e8633(0x212)](),'')){logger[_0x4e8633(0x225)](_0x19881b[_0x4e8633(0x1d3)]);return;}if(_0x19881b['lafXo'](_0x4f204e[_0x4e8633(0x212)](),'')){logger[_0x4e8633(0x225)](_0x19881b['KFpqm']);return;}const _0x20b201=helper['parseCommaSeparatedValues'](_0x4f204e);if(_0x5ab059){const _0x5ebb6d=_0x19881b[_0x4e8633(0x233)](require,_0x19881b['VOeol']),_0x4760a3=_0x5ebb6d[_0x4e8633(0x1eb)](),_0x1bdab6=_0x4760a3&&_0x4760a3[_0x4e8633(0x1f7)][TestHubModule[_0x4e8633(0x22f)]];if(_0x1bdab6){const _0x21ff41=_0x1bdab6?.['testhubConfig']?.[_0x4e8633(0x218)]()?.[_0x4e8633(0x246)];TestInfo[_0x4e8633(0x243)](_0x21ff41);const _0x27cb57=TestInfo[_0x4e8633(0x20d)](_0x21ff41),_0x319503=_0x27cb57[TestFrameworkConstants[_0x4e8633(0x1c8)]]||{};CustomTagManager['mergeIntoTags'](_0x319503,_0x4ea176,_0x20b201),_0x27cb57[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x319503,TestInfo[_0x4e8633(0x1f3)](_0x21ff41,_0x27cb57);!this[_0x4e8633(0x217)][_0x21ff41]&&(this[_0x4e8633(0x217)][_0x21ff41]={});this[_0x4e8633(0x217)][_0x21ff41][_0x4ea176]=CustomTagManager['mergeValues'](this[_0x4e8633(0x217)][_0x21ff41][_0x4ea176],_0x20b201);try{const _0x57d8cd=_0x19881b['ibVdF'](getBuildTagsRunId);if(_0x57d8cd){const _0x2b4eea={};for(const [_0x860784,_0x2cad73]of Object[_0x4e8633(0x1cc)](this[_0x4e8633(0x217)][_0x21ff41]||{})){_0x2b4eea[_0x860784]={'field_type':_0x19881b[_0x4e8633(0x1f6)],'values':Array['isArray'](_0x2cad73)?[..._0x2cad73]:[]};}_0x19881b[_0x4e8633(0x219)](Object[_0x4e8633(0x21a)](_0x2b4eea)[_0x4e8633(0x1f8)],0x0)&&await fs[_0x4e8633(0x203)][_0x4e8633(0x23b)](_0x19881b[_0x4e8633(0x233)](getBuildTagsFilePath,_0x57d8cd),JSON[_0x4e8633(0x241)](_0x2b4eea));}else logger[_0x4e8633(0x225)](_0x19881b[_0x4e8633(0x242)]);}catch(_0x4f5672){logger[_0x4e8633(0x225)](_0x4e8633(0x214)+(_0x4f5672&&_0x4f5672['message']?_0x4f5672[_0x4e8633(0x23f)]:_0x4f5672));}}}else{let _0x168c31;const _0x4ab014=global[_0x4e8633(0x21b)];let _0x975164=![];if(_0x4ab014&&_0x4ab014[_0x4e8633(0x1c2)](_0x19881b[_0x4e8633(0x1ec)]))_0x975164=!![],_0x168c31=_0x4ab014;else try{const _0x555e83=_0x19881b[_0x4e8633(0x233)](require,_0x19881b['kvUGW']),_0x536429=_0x19881b[_0x4e8633(0x1dd)](require,_0x19881b[_0x4e8633(0x211)]);if(_0x536429[_0x4e8633(0x1eb)]()[_0x4e8633(0x226)]()){const _0x11420c=_0x555e83['getTestFrameworkDetail']();if(_0x19881b[_0x4e8633(0x23d)](_0x11420c?.['name']?.[_0x4e8633(0x1cd)](),_0x19881b[_0x4e8633(0x1f5)])){const _0xd30219=AutomationFramework[_0x4e8633(0x1c7)]();_0x168c31=AutomationFramework[_0x4e8633(0x23c)](_0xd30219,PlaywrightDriverModule[_0x4e8633(0x234)],''),_0x168c31&&_0x168c31[_0x4e8633(0x1c2)](_0x19881b[_0x4e8633(0x1ec)])&&(_0x975164=!![]);}}}catch(_0x222e6a){logger[_0x4e8633(0x225)](_0x4e8633(0x216)+_0x222e6a);}if(_0x975164){if(!_0x168c31)throw new Error(_0x19881b['jCXYA']);const _0x4f73ee=_0x19881b[_0x4e8633(0x233)](require,_0x19881b[_0x4e8633(0x211)]),_0x3ab05d=_0x4f73ee[_0x4e8633(0x1eb)]()[_0x4e8633(0x239)]();if(!_0x3ab05d)throw new Error(_0x19881b[_0x4e8633(0x1e9)]);const _0x5ea54a=_0x19881b['iEkoU'](require,_0x19881b[_0x4e8633(0x22e)]),_0x2b1b34=_0x19881b[_0x4e8633(0x233)](require,_0x19881b[_0x4e8633(0x22a)]),_0x204ef9=_0x3ab05d[_0x4e8633(0x1e5)](_0x5ea54a['TEST'],_0x2b1b34[_0x4e8633(0x223)]);if(!_0x204ef9)throw new Error(_0x19881b['TnoWc']);const _0x590099=_0x204ef9[_0x4e8633(0x248)]()['get'](_0x168c31)||{},_0x1b3a02=_0x590099[TestFrameworkConstants[_0x4e8633(0x1c8)]]||{};logger[_0x4e8633(0x225)](_0x4e8633(0x1cb)+_0x168c31+_0x4e8633(0x1de)+_0x4ea176+_0x4e8633(0x1d0)+JSON[_0x4e8633(0x241)](_0x20b201)+_0x4e8633(0x1fe)+JSON[_0x4e8633(0x241)](_0x1b3a02)),CustomTagManager[_0x4e8633(0x20f)](_0x1b3a02,_0x4ea176,_0x20b201),logger[_0x4e8633(0x225)](_0x4e8633(0x1e3)+_0x4ea176+_0x4e8633(0x230)+JSON[_0x4e8633(0x241)](_0x1b3a02[_0x4ea176][_0x4e8633(0x21c)]));const _0x2a5b1f={[TestFrameworkConstants[_0x4e8633(0x1c8)]]:_0x1b3a02},_0x5ed15b={};_0x5ed15b[_0x168c31]=_0x2a5b1f,_0x204ef9[_0x4e8633(0x1ee)](_0x5ed15b),logger['debug'](_0x4e8633(0x1c1)+_0x168c31+_0x4e8633(0x20a)+JSON['stringify'](_0x1b3a02)),!this[_0x4e8633(0x238)][_0x168c31]&&(this[_0x4e8633(0x238)][_0x168c31]={}),this[_0x4e8633(0x238)][_0x168c31][_0x4ea176]=CustomTagManager[_0x4e8633(0x20c)](this['testLevelTags'][_0x168c31][_0x4ea176],_0x20b201);}else{const _0xfc2793=global['__workerDetails']?.[_0x4e8633(0x228)]?.['testInfo'];if(!_0xfc2793){const _0x27ac65=AutomationFramework['getTrackedInstance']();_0x168c31=AutomationFramework['getState'](_0x27ac65,PlaywrightDriverModule[_0x4e8633(0x234)],'');}else _0x168c31=TestInfo['getTestIdentifierFromTestInfo'](_0xfc2793,_0xfc2793[_0x4e8633(0x21d)]);const _0x1d3e2d=TestInfo[_0x4e8633(0x20d)](_0x168c31),_0x1d5b74=_0x1d3e2d[TestFrameworkConstants[_0x4e8633(0x1c8)]]||{};CustomTagManager[_0x4e8633(0x20f)](_0x1d5b74,_0x4ea176,_0x20b201),_0x1d3e2d[TestFrameworkConstants[_0x4e8633(0x1c8)]]=_0x1d5b74,TestInfo['setTestDetails'](_0x168c31,_0x1d3e2d),!this[_0x4e8633(0x238)][_0x168c31]&&(this['testLevelTags'][_0x168c31]={}),this['testLevelTags'][_0x168c31][_0x4ea176]=CustomTagManager['mergeValues'](this[_0x4e8633(0x238)][_0x168c31][_0x4ea176],_0x20b201);}}}static[a73_0x39fc9f(0x1cf)](){const _0x23993e={...this['buildLevelTags']};return _0x23993e;}static[a73_0x39fc9f(0x220)](){const _0x5b816f=a73_0x39fc9f,_0x3323f6={...this[_0x5b816f(0x238)]};return _0x3323f6;}static[a73_0x39fc9f(0x245)](){const _0x24375f=a73_0x39fc9f;this['buildLevelTags']={},this[_0x24375f(0x238)]={};}static[a73_0x39fc9f(0x229)](_0xf5e29a,_0x3607e5){const _0x20b2d6=a73_0x39fc9f,_0x3981d3={};_0x3981d3['tQmaA']=function(_0x14fcc9,_0x2ad486){return _0x14fcc9||_0x2ad486;};const _0xaa0340=_0x3981d3;if(!_0xf5e29a)return;!this[_0x20b2d6(0x217)][_0xf5e29a]&&(this[_0x20b2d6(0x217)][_0xf5e29a]={});for(const [_0xa70e38,_0x34a1d1]of Object[_0x20b2d6(0x1cc)](_0xaa0340['tQmaA'](_0x3607e5,{}))){if(!_0x34a1d1||!Array[_0x20b2d6(0x1ca)](_0x34a1d1[_0x20b2d6(0x21c)]))continue;this['buildLevelTags'][_0xf5e29a][_0xa70e38]=CustomTagManager['mergeValues'](this['buildLevelTags'][_0xf5e29a][_0xa70e38],_0x34a1d1['values']);}}static['aggregateBuildLevelTagsFromTmp'](_0xbb24bb,_0x59fa6a){const _0x1a0621=a73_0x39fc9f,_0x59b0b7={};_0x59b0b7[_0x1a0621(0x21e)]=_0x1a0621(0x1ef),_0x59b0b7[_0x1a0621(0x1ff)]=function(_0x10b4f9,_0x3d9b2a){return _0x10b4f9*_0x3d9b2a;},_0x59b0b7['lvCjn']=function(_0x4f5fd8,_0x3d69de){return _0x4f5fd8>_0x3d69de;},_0x59b0b7[_0x1a0621(0x1d9)]=function(_0x4ee189,_0x3ffe6e){return _0x4ee189-_0x3ffe6e;},_0x59b0b7[_0x1a0621(0x247)]=_0x1a0621(0x231);const _0x4fba32=_0x59b0b7;if(!_0xbb24bb)return logger[_0x1a0621(0x225)](_0x4fba32[_0x1a0621(0x21e)]),0x0;let _0x8ade8c;try{_0x8ade8c=os[_0x1a0621(0x1fc)]();}catch(_0x32edba){return logger['debug'](_0x1a0621(0x209)+_0x32edba),0x0;}let _0x4969b9;try{_0x4969b9=fs[_0x1a0621(0x1f2)](_0x8ade8c);}catch(_0x3eb7f3){return logger[_0x1a0621(0x225)](_0x1a0621(0x1dc)+_0x3eb7f3),0x0;}const _0x4d739b=''+BUILD_TAG_FILE_PREFIX+_0xbb24bb+'_',_0x3e58f7=_0x4969b9[_0x1a0621(0x1fb)](_0x30f23f=>_0x30f23f[_0x1a0621(0x1c5)](_0x4d739b)&&_0x30f23f[_0x1a0621(0x200)]('.json')),_0x15006b=_0x4fba32[_0x1a0621(0x1ff)](_0x4fba32[_0x1a0621(0x1ff)](_0x4fba32[_0x1a0621(0x1ff)](0x2,0x3c),0x3c),0x3e8);let _0x3bdc15=0x0;for(const _0x4ff073 of _0x3e58f7){const _0xa415ab=path[_0x1a0621(0x1f0)](_0x8ade8c,_0x4ff073);try{const _0x58c83b=fs[_0x1a0621(0x208)](_0xa415ab);if(_0x4fba32[_0x1a0621(0x1f9)](_0x4fba32[_0x1a0621(0x1d9)](Date[_0x1a0621(0x1e1)](),_0x58c83b[_0x1a0621(0x236)]),_0x15006b)){logger[_0x1a0621(0x225)](_0x1a0621(0x210)+_0x15006b+_0x1a0621(0x237)+_0x4ff073);try{fs[_0x1a0621(0x232)](_0xa415ab);}catch(_0x2446bb){logger[_0x1a0621(0x225)](_0x1a0621(0x1d5)+_0x4ff073+':\x20'+(_0x2446bb&&_0x2446bb[_0x1a0621(0x23f)]?_0x2446bb['message']:_0x2446bb));}continue;}const _0x549520=fs[_0x1a0621(0x1e7)](_0xa415ab,_0x4fba32[_0x1a0621(0x247)]),_0x53bf44=JSON[_0x1a0621(0x1df)](_0x549520);this[_0x1a0621(0x229)](_0x59fa6a,_0x53bf44),_0x3bdc15+=0x1;}catch(_0x37c35b){logger[_0x1a0621(0x225)](_0x1a0621(0x1ce)+_0x4ff073+':\x20'+(_0x37c35b&&_0x37c35b['message']?_0x37c35b[_0x1a0621(0x23f)]:_0x37c35b));}try{fs[_0x1a0621(0x232)](_0xa415ab);}catch(_0x2bb0d5){logger[_0x1a0621(0x225)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x4ff073+':\x20'+(_0x2bb0d5&&_0x2bb0d5['message']?_0x2bb0d5['message']:_0x2bb0d5));}}return _0x3bdc15;}}const a73_0x1e4dc6={};a73_0x1e4dc6[a73_0x39fc9f(0x201)]=getBuildTagsRunId,a73_0x1e4dc6[a73_0x39fc9f(0x227)]=getBuildTagsFilePath,a73_0x1e4dc6[a73_0x39fc9f(0x1d1)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a73_0x39fc9f(0x1d7)]=a73_0x1e4dc6,module['exports']=CustomTagManager;
1
+ 'use strict';const a85_0x1c6409=a85_0x138c;(function(_0x5cafb5,_0x45bb41){const _0x10709b=a85_0x138c,_0x3cd99a=_0x5cafb5();while(!![]){try{const _0x3033f5=parseInt(_0x10709b(0x1af))/0x1+parseInt(_0x10709b(0x1f3))/0x2+-parseInt(_0x10709b(0x1d1))/0x3+-parseInt(_0x10709b(0x228))/0x4+parseInt(_0x10709b(0x1c5))/0x5*(-parseInt(_0x10709b(0x218))/0x6)+-parseInt(_0x10709b(0x1ba))/0x7*(parseInt(_0x10709b(0x1ae))/0x8)+parseInt(_0x10709b(0x227))/0x9;if(_0x3033f5===_0x45bb41)break;else _0x3cd99a['push'](_0x3cd99a['shift']());}catch(_0x24b9d4){_0x3cd99a['push'](_0x3cd99a['shift']());}}}(a85_0x3f9e,0xcb74b));function a85_0x138c(_0x46f108,_0x1d32ae){const _0x3f9ed2=a85_0x3f9e();return a85_0x138c=function(_0x138c35,_0x1ba74c){_0x138c35=_0x138c35-0x1a4;let _0x294c33=_0x3f9ed2[_0x138c35];return _0x294c33;},a85_0x138c(_0x46f108,_0x1d32ae);}function a85_0x3f9e(){const _0xc691f5=['fJEiG','RQSXA','tmpdir','QHIRR','CjKNh','COCdn','TEST','UVXBF','106626JjcYEv','elrtI','readFileSync','mtimeMs','buildHashedId','buildLevelTags','./modules/playwrightDriverModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','setCustomTags','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','addMultipleEntries','isRunning','KEY_CUSTOM_TAGS','cpqOc','15995556mCASoE','230896ErdyLT','setTestDetails','./framework/automationFramework','parse','./state/testFrameworkState','getState','getTestFrameworkDetail','PluWD','length','keys','../../helpers/classLogger','getBuildTagsFilePath','statSync','name','resolveInstance','PtXDN','exports','KgZwu','136Milhxg','797911QRKLyg','toObject','MODULE_NAME','getTrackedInstance','now','POST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager','kqRly','309393dgZslH',',\x20finalTags=','xdjIS','testInfo','writeFile','modules','CvtUM','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','mergeIntoTags','kJpVn','from','425sueFgf','testLevelTags','dZnYl','trim','promises','ms)\x20','getBuildTagsRunId','entries','multi_dropdown','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','./state/hookState','join','1018302YxgQqr','message',',\x20key=','../../helpers/helper','getInstance','DPifp','_testInternals','./cliUtils','yKwFF','isArray','./modules/testhubModule',',\x20existingTags=','VVThF','getTestDetails','testhubConfig','BUILD_TAG_FILE_PREFIX','ULOoU','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','PzBbd','get','fblnu','clearTags','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getTestIdentifierFromTestInfo','PIqsV','env','mergeBuildLevelTags','getAllData','utf8','string','.json','includes','wGVEv','1834472EUVAQA','jEsfC','./TestInfo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jest','KEY_TEST_ID','stringify','getTestLevelTags','nOKrn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','readdirSync','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTestUUID','pid',',\x20values=','getTestFramework','path','iXPPJ','debug','getBuildLevelTags','aggregateBuildLevelTagsFromTmp','endsWith','mergeValues','Pacei','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YDEdF','retry','field_type'];a85_0x3f9e=function(){return _0xc691f5;};return a85_0x3f9e();}const fs=require('fs'),os=require('os'),path=require(a85_0x1c6409(0x204)),helper=require(a85_0x1c6409(0x1d4)),AutomationFramework=require(a85_0x1c6409(0x22a)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x1c6409(0x21e)),TestInfo=require(a85_0x1c6409(0x1f5)),TestHubModule=require(a85_0x1c6409(0x1db)),{createClassLogger}=require(a85_0x1c6409(0x1a6)),logger=createClassLogger(a85_0x1c6409(0x1b8)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x1e50b1=a85_0x1c6409,_0x5c8f22={};_0x5c8f22[_0x1e50b1(0x1ab)]=function(_0x1513fb,_0x2480ce){return _0x1513fb===_0x2480ce;},_0x5c8f22[_0x1e50b1(0x1c7)]='null';const _0x4bdb53=_0x5c8f22,_0x484d47=process[_0x1e50b1(0x1eb)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x484d47||_0x4bdb53[_0x1e50b1(0x1ab)](_0x484d47,_0x4bdb53[_0x1e50b1(0x1c7)]))return null;return _0x484d47;}function getBuildTagsFilePath(_0x4bba56){const _0x472e8f=a85_0x1c6409;return path[_0x472e8f(0x1d0)](os[_0x472e8f(0x212)](),''+BUILD_TAG_FILE_PREFIX+_0x4bba56+'_'+process[_0x472e8f(0x201)]+'.json');}class CustomTagManager{static [a85_0x1c6409(0x21d)]={};static ['testLevelTags']={};static['mergeValues'](_0xa0513c,_0x23982f){const _0x39057d=a85_0x1c6409;return Array[_0x39057d(0x1c4)](new Set([..._0xa0513c||[],..._0x23982f||[]]));}static[a85_0x1c6409(0x1c2)](_0x389bf4,_0xa138c5,_0x16610d){const _0x2d1da6=a85_0x1c6409,_0x1bfa54={};_0x1bfa54[_0x2d1da6(0x1c0)]='multi_dropdown';const _0x51faea=_0x1bfa54;if(!_0x389bf4[_0xa138c5]){const _0x5d17d9={};_0x5d17d9['field_type']=_0x51faea['CvtUM'],_0x5d17d9[_0x2d1da6(0x1b6)]=[..._0x16610d||[]],_0x389bf4[_0xa138c5]=_0x5d17d9;}else!_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]=_0x51faea[_0x2d1da6(0x1c0)]),!Array['isArray'](_0x389bf4[_0xa138c5]['values'])&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=[]),_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=CustomTagManager['mergeValues'](_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)],_0x16610d);return _0x389bf4;}static async[a85_0x1c6409(0x220)](_0x53df36,_0xedfd1b,_0x393820=![]){const _0x595297=a85_0x1c6409,_0x5d8061={'RQSXA':function(_0xc9011c,_0x378519){return _0xc9011c!==_0x378519;},'fblnu':_0x595297(0x1ef),'KgZwu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','iIMtm':_0x595297(0x1e2),'kqRly':function(_0x4627d3,_0x2a84fc){return _0x4627d3===_0x2a84fc;},'PIqsV':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','cpqOc':function(_0x28a87e,_0x55c81a){return _0x28a87e===_0x55c81a;},'PzBbd':_0x595297(0x222),'QHIRR':function(_0x2fec65,_0x2a0a23){return _0x2fec65(_0x2a0a23);},'UVXBF':_0x595297(0x1fc),'fJEiG':function(_0x1d6e91){return _0x1d6e91();},'YDEdF':_0x595297(0x1cd),'Pacei':function(_0x22bd2a,_0x18e48e){return _0x22bd2a>_0x18e48e;},'LtPWl':function(_0x90b2d1,_0x50c101){return _0x90b2d1(_0x50c101);},'yKwFF':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ULOoU':':jest-','nOKrn':_0x595297(0x1d8),'vXgzZ':_0x595297(0x1f7),'wGVEv':_0x595297(0x1c1),'jEsfC':function(_0x3655c8,_0x2db96c){return _0x3655c8(_0x2db96c);},'amAgI':_0x595297(0x1f6),'CjKNh':function(_0x5ef74b,_0x2de6fc){return _0x5ef74b(_0x2de6fc);},'ITNQL':_0x595297(0x22c),'xdjIS':_0x595297(0x1cf),'kJpVn':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5d8061[_0x595297(0x211)](typeof _0x53df36,_0x5d8061['fblnu'])){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ad)]);return;}if(_0x5d8061[_0x595297(0x211)](typeof _0xedfd1b,_0x5d8061[_0x595297(0x1e5)])){logger['debug'](_0x5d8061['iIMtm']);return;}if(_0x5d8061[_0x595297(0x1b9)](_0x53df36[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ea)]);return;}if(_0x5d8061[_0x595297(0x226)](_0xedfd1b[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1e3)]);return;}const _0x33dc9a=helper['parseCommaSeparatedValues'](_0xedfd1b);if(_0x393820){const _0x43df14=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x217)]),_0x403227=_0x43df14[_0x595297(0x1d5)](),_0x35d927=_0x403227&&_0x403227[_0x595297(0x1bf)][TestHubModule[_0x595297(0x1b1)]];if(_0x35d927){const _0x105ba8=_0x35d927?.[_0x595297(0x1df)]?.[_0x595297(0x1b0)]()?.[_0x595297(0x21c)];TestInfo[_0x595297(0x200)](_0x105ba8);const _0x3b4690=TestInfo[_0x595297(0x1de)](_0x105ba8),_0x56dbcd=_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x56dbcd,_0x53df36,_0x33dc9a),_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]=_0x56dbcd,TestInfo[_0x595297(0x229)](_0x105ba8,_0x3b4690);!this[_0x595297(0x21d)][_0x105ba8]&&(this['buildLevelTags'][_0x105ba8]={});this[_0x595297(0x21d)][_0x105ba8][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x21d)][_0x105ba8][_0x53df36],_0x33dc9a);try{const _0x6cbde4=_0x5d8061[_0x595297(0x210)](getBuildTagsRunId);if(_0x6cbde4){const _0x36857b={};for(const [_0x239795,_0x671c51]of Object[_0x595297(0x1cc)](this[_0x595297(0x21d)][_0x105ba8]||{})){_0x36857b[_0x239795]={'field_type':_0x5d8061[_0x595297(0x20d)],'values':Array[_0x595297(0x1da)](_0x671c51)?[..._0x671c51]:[]};}_0x5d8061[_0x595297(0x20b)](Object[_0x595297(0x1a5)](_0x36857b)[_0x595297(0x1a4)],0x0)&&await fs[_0x595297(0x1c9)][_0x595297(0x1be)](_0x5d8061['LtPWl'](getBuildTagsFilePath,_0x6cbde4),JSON['stringify'](_0x36857b));}else logger['debug'](_0x5d8061[_0x595297(0x1d9)]);}catch(_0x4501d9){logger[_0x595297(0x206)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x4501d9&&_0x4501d9[_0x595297(0x1d2)]?_0x4501d9[_0x595297(0x1d2)]:_0x4501d9));}}}else{let _0x3062e1;const _0x6b250b=global['__jestCurrentTestIdentifier'];let _0x49a924=![];if(_0x6b250b&&_0x6b250b[_0x595297(0x1f1)](_0x5d8061[_0x595297(0x1e1)]))_0x49a924=!![],_0x3062e1=_0x6b250b;else try{const _0x42298f=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x1fb)]),_0x33648e=_0x5d8061['QHIRR'](require,_0x5d8061['UVXBF']);if(_0x33648e[_0x595297(0x1d5)]()[_0x595297(0x224)]()){const _0x160929=_0x42298f[_0x595297(0x22e)]();if(_0x5d8061['cpqOc'](_0x160929?.[_0x595297(0x1a9)]?.['toLowerCase'](),_0x5d8061['vXgzZ'])){const _0x195324=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x195324,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3062e1&&_0x3062e1['includes'](_0x5d8061[_0x595297(0x1e1)])&&(_0x49a924=!![]);}}}catch(_0xbb576c){logger[_0x595297(0x206)](_0x595297(0x1ff)+_0xbb576c);}if(_0x49a924){if(!_0x3062e1)throw new Error(_0x5d8061[_0x595297(0x1f2)]);const _0x31a14a=_0x5d8061[_0x595297(0x1f4)](require,_0x5d8061[_0x595297(0x217)]),_0x5bd004=_0x31a14a[_0x595297(0x1d5)]()[_0x595297(0x203)]();if(!_0x5bd004)throw new Error(_0x5d8061['amAgI']);const _0x46324b=_0x5d8061['CjKNh'](require,_0x5d8061['ITNQL']),_0x463411=_0x5d8061[_0x595297(0x214)](require,_0x5d8061[_0x595297(0x1bc)]),_0x42fe0a=_0x5bd004[_0x595297(0x1aa)](_0x46324b[_0x595297(0x216)],_0x463411[_0x595297(0x1b4)]);if(!_0x42fe0a)throw new Error(_0x5d8061[_0x595297(0x1c3)]);const _0x5bd981=_0x42fe0a[_0x595297(0x1ed)]()[_0x595297(0x1e4)](_0x3062e1)||{},_0x3d8a56=_0x5bd981[TestFrameworkConstants[_0x595297(0x225)]]||{};logger['debug'](_0x595297(0x1ce)+_0x3062e1+_0x595297(0x1d3)+_0x53df36+_0x595297(0x202)+JSON[_0x595297(0x1f9)](_0x33dc9a)+_0x595297(0x1dc)+JSON[_0x595297(0x1f9)](_0x3d8a56)),CustomTagManager[_0x595297(0x1c2)](_0x3d8a56,_0x53df36,_0x33dc9a),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x53df36+_0x595297(0x221)+JSON[_0x595297(0x1f9)](_0x3d8a56[_0x53df36][_0x595297(0x1b6)]));const _0x298026={[TestFrameworkConstants[_0x595297(0x225)]]:_0x3d8a56},_0x450fb1={};_0x450fb1[_0x3062e1]=_0x298026,_0x42fe0a[_0x595297(0x223)](_0x450fb1),logger[_0x595297(0x206)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x3062e1+_0x595297(0x1bb)+JSON['stringify'](_0x3d8a56)),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this['testLevelTags'][_0x3062e1][_0x53df36]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x3062e1][_0x53df36],_0x33dc9a);}else{const _0x35b53d=global['__workerDetails']?.['currentTest']?.[_0x595297(0x1bd)];if(!_0x35b53d){const _0x3b47c1=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x3b47c1,PlaywrightDriverModule[_0x595297(0x1f8)],'');}else _0x3062e1=TestInfo[_0x595297(0x1e9)](_0x35b53d,_0x35b53d[_0x595297(0x20e)]);const _0x1b78db=TestInfo[_0x595297(0x1de)](_0x3062e1),_0x416442=_0x1b78db[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x416442,_0x53df36,_0x33dc9a),_0x1b78db[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x416442,TestInfo[_0x595297(0x229)](_0x3062e1,_0x1b78db),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this[_0x595297(0x1c6)][_0x3062e1][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x1c6)][_0x3062e1][_0x53df36],_0x33dc9a);}}}static[a85_0x1c6409(0x207)](){const _0xdf1798=a85_0x1c6409,_0x57eb24={...this[_0xdf1798(0x21d)]};return _0x57eb24;}static[a85_0x1c6409(0x1fa)](){const _0x419dad={...this['testLevelTags']};return _0x419dad;}static[a85_0x1c6409(0x1e6)](){const _0x29d12e=a85_0x1c6409;this[_0x29d12e(0x21d)]={},this[_0x29d12e(0x1c6)]={};}static[a85_0x1c6409(0x1ec)](_0x2aa0e6,_0x29dda9){const _0x134066=a85_0x1c6409,_0xbc633f={};_0xbc633f['COCdn']=function(_0x1367c1,_0x41dd14){return _0x1367c1||_0x41dd14;};const _0x45ed0a=_0xbc633f;if(!_0x2aa0e6)return;!this[_0x134066(0x21d)][_0x2aa0e6]&&(this['buildLevelTags'][_0x2aa0e6]={});for(const [_0x3f05d4,_0x1f0de2]of Object[_0x134066(0x1cc)](_0x45ed0a[_0x134066(0x215)](_0x29dda9,{}))){if(!_0x1f0de2||!Array[_0x134066(0x1da)](_0x1f0de2[_0x134066(0x1b6)]))continue;this['buildLevelTags'][_0x2aa0e6][_0x3f05d4]=CustomTagManager[_0x134066(0x20a)](this['buildLevelTags'][_0x2aa0e6][_0x3f05d4],_0x1f0de2[_0x134066(0x1b6)]);}}static[a85_0x1c6409(0x208)](_0x453464,_0x92af0e){const _0x34aae5=a85_0x1c6409,_0x4b915d={};_0x4b915d['elrtI']=_0x34aae5(0x20c),_0x4b915d['PluWD']=function(_0x3d0af4,_0x1d7040){return _0x3d0af4*_0x1d7040;},_0x4b915d[_0x34aae5(0x205)]=function(_0x284626,_0x30b12e){return _0x284626*_0x30b12e;},_0x4b915d[_0x34aae5(0x1d6)]=function(_0x5463cf,_0x1eca39){return _0x5463cf>_0x1eca39;},_0x4b915d['oJLuC']=function(_0x175bd2,_0x2727c7){return _0x175bd2-_0x2727c7;},_0x4b915d[_0x34aae5(0x1dd)]=_0x34aae5(0x1ee);const _0x2a5433=_0x4b915d;if(!_0x453464)return logger[_0x34aae5(0x206)](_0x2a5433[_0x34aae5(0x219)]),0x0;let _0xdb0074;try{_0xdb0074=os[_0x34aae5(0x212)]();}catch(_0x41eea4){return logger[_0x34aae5(0x206)](_0x34aae5(0x1fd)+_0x41eea4),0x0;}let _0x2943e7;try{_0x2943e7=fs[_0x34aae5(0x1fe)](_0xdb0074);}catch(_0x52ea19){return logger[_0x34aae5(0x206)](_0x34aae5(0x21f)+_0x52ea19),0x0;}const _0xcd4b5a=''+BUILD_TAG_FILE_PREFIX+_0x453464+'_',_0x2b9c34=_0x2943e7['filter'](_0x40fedb=>_0x40fedb['startsWith'](_0xcd4b5a)&&_0x40fedb[_0x34aae5(0x209)](_0x34aae5(0x1f0))),_0x127402=_0x2a5433['PluWD'](_0x2a5433[_0x34aae5(0x205)](_0x2a5433[_0x34aae5(0x22f)](0x2,0x3c),0x3c),0x3e8);let _0x34f0ed=0x0;for(const _0xc68bcc of _0x2b9c34){const _0x103fc2=path['join'](_0xdb0074,_0xc68bcc);try{const _0x3c5863=fs[_0x34aae5(0x1a8)](_0x103fc2);if(_0x2a5433[_0x34aae5(0x1d6)](_0x2a5433['oJLuC'](Date[_0x34aae5(0x1b3)](),_0x3c5863[_0x34aae5(0x21b)]),_0x127402)){logger[_0x34aae5(0x206)](_0x34aae5(0x1b5)+_0x127402+_0x34aae5(0x1ca)+_0xc68bcc);try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x10ddab){logger[_0x34aae5(0x206)](_0x34aae5(0x1b7)+_0xc68bcc+':\x20'+(_0x10ddab&&_0x10ddab[_0x34aae5(0x1d2)]?_0x10ddab['message']:_0x10ddab));}continue;}const _0x1316b4=fs[_0x34aae5(0x21a)](_0x103fc2,_0x2a5433[_0x34aae5(0x1dd)]),_0x3608c5=JSON[_0x34aae5(0x22b)](_0x1316b4);this[_0x34aae5(0x1ec)](_0x92af0e,_0x3608c5),_0x34f0ed+=0x1;}catch(_0x2dc489){logger[_0x34aae5(0x206)](_0x34aae5(0x1e8)+_0xc68bcc+':\x20'+(_0x2dc489&&_0x2dc489[_0x34aae5(0x1d2)]?_0x2dc489[_0x34aae5(0x1d2)]:_0x2dc489));}try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x5da010){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0xc68bcc+':\x20'+(_0x5da010&&_0x5da010[_0x34aae5(0x1d2)]?_0x5da010[_0x34aae5(0x1d2)]:_0x5da010));}}return _0x34f0ed;}}const a85_0x29591c={};a85_0x29591c[a85_0x1c6409(0x1cb)]=getBuildTagsRunId,a85_0x29591c[a85_0x1c6409(0x1a7)]=getBuildTagsFilePath,a85_0x29591c[a85_0x1c6409(0x1e0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x1c6409(0x1d7)]=a85_0x29591c,module[a85_0x1c6409(0x1ac)]=CustomTagManager;
@@ -1 +1 @@
1
- const a74_0x50b855=a74_0x1477;(function(_0x2c39fa,_0x8b3737){const _0x4a7afd=a74_0x1477,_0xfc3ba=_0x2c39fa();while(!![]){try{const _0x5f0302=-parseInt(_0x4a7afd(0x1f4))/0x1*(-parseInt(_0x4a7afd(0x1f8))/0x2)+parseInt(_0x4a7afd(0x1f6))/0x3*(parseInt(_0x4a7afd(0x1fb))/0x4)+parseInt(_0x4a7afd(0x1f1))/0x5*(-parseInt(_0x4a7afd(0x1ee))/0x6)+-parseInt(_0x4a7afd(0x1ff))/0x7+-parseInt(_0x4a7afd(0x1f5))/0x8*(-parseInt(_0x4a7afd(0x1ef))/0x9)+parseInt(_0x4a7afd(0x1f3))/0xa+parseInt(_0x4a7afd(0x1f9))/0xb;if(_0x5f0302===_0x8b3737)break;else _0xfc3ba['push'](_0xfc3ba['shift']());}catch(_0x1bd539){_0xfc3ba['push'](_0xfc3ba['shift']());}}}(a74_0x3a07,0x99ed4));function a74_0x1477(_0x50446a,_0x295cb0){const _0x3a0762=a74_0x3a07();return a74_0x1477=function(_0x147799,_0x9b178d){_0x147799=_0x147799-0x1ee;let _0x40062d=_0x3a0762[_0x147799];return _0x40062d;},a74_0x1477(_0x50446a,_0x295cb0);}function a74_0x3a07(){const _0x4b1b3e=['notifyObserver','1049280IDSPZw','observers','../../helpers/classLogger.js','registerObserver','7630357FsMSsx','QkRdx','2330214QeVqgg','163179ZJRrNP','getInstance','10wBSzqj','exports','1618660HvXjhc','97906yMTIcp','488PjwXaf','3nhYBnA','push','16rbnpZA','2022328RuHygL'];a74_0x3a07=function(){return _0x4b1b3e;};return a74_0x3a07();}const {createClassLogger}=require(a74_0x50b855(0x1fd));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a74_0x50b855(0x1f0)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x50b855(0x1fe)](_0x42e7fb,_0x5763a1){const _0x31b67=a74_0x50b855;!this[_0x31b67(0x1fc)][_0x42e7fb]&&(this[_0x31b67(0x1fc)][_0x42e7fb]=[]),this['observers'][_0x42e7fb][_0x31b67(0x1f7)](_0x5763a1);}async[a74_0x50b855(0x1fa)](_0x1dd642,_0x83b728){const _0x537308=a74_0x50b855,_0x50ebfa={'QkRdx':function(_0x519ca8,_0x5beeff){return _0x519ca8(_0x5beeff);}};if(this[_0x537308(0x1fc)][_0x1dd642]){for(const _0x39c258 of this[_0x537308(0x1fc)][_0x1dd642]){await _0x50ebfa[_0x537308(0x200)](_0x39c258,_0x83b728);}return;}}}const eventDispatcher=EventDispatcher[a74_0x50b855(0x1f0)]();Object['freeze'](eventDispatcher),module[a74_0x50b855(0x1f2)]=eventDispatcher;
1
+ const a86_0x458ea3=a86_0x3d88;(function(_0x3d2bcc,_0x4599e3){const _0x2416e4=a86_0x3d88,_0x3ca922=_0x3d2bcc();while(!![]){try{const _0xf226e3=-parseInt(_0x2416e4(0x195))/0x1+-parseInt(_0x2416e4(0x192))/0x2+parseInt(_0x2416e4(0x196))/0x3+parseInt(_0x2416e4(0x199))/0x4*(-parseInt(_0x2416e4(0x193))/0x5)+-parseInt(_0x2416e4(0x1a0))/0x6*(-parseInt(_0x2416e4(0x19b))/0x7)+-parseInt(_0x2416e4(0x19d))/0x8*(parseInt(_0x2416e4(0x191))/0x9)+parseInt(_0x2416e4(0x1a1))/0xa;if(_0xf226e3===_0x4599e3)break;else _0x3ca922['push'](_0x3ca922['shift']());}catch(_0x2c8098){_0x3ca922['push'](_0x3ca922['shift']());}}}(a86_0x4dac,0xc1d6c));const {createClassLogger}=require(a86_0x458ea3(0x197));function a86_0x3d88(_0x29297d,_0x54530f){const _0x4dac4d=a86_0x4dac();return a86_0x3d88=function(_0x3d8844,_0x379098){_0x3d8844=_0x3d8844-0x191;let _0xbd1b67=_0x4dac4d[_0x3d8844];return _0xbd1b67;},a86_0x3d88(_0x29297d,_0x54530f);}class EventDispatcher{static #instance=null;constructor(){const _0x2e651d=a86_0x458ea3;this[_0x2e651d(0x194)]={};}static[a86_0x458ea3(0x19f)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x48cc9c,_0x54af42){const _0xc3ca06=a86_0x458ea3;!this['observers'][_0x48cc9c]&&(this['observers'][_0x48cc9c]=[]),this[_0xc3ca06(0x194)][_0x48cc9c][_0xc3ca06(0x198)](_0x54af42);}async[a86_0x458ea3(0x19c)](_0x37c135,_0x1e7bea){const _0x2c0db0=a86_0x458ea3,_0x43f412={'xlwPl':function(_0x5b4a9c,_0x34181b){return _0x5b4a9c(_0x34181b);}};if(this[_0x2c0db0(0x194)][_0x37c135]){for(const _0x4094db of this[_0x2c0db0(0x194)][_0x37c135]){await _0x43f412[_0x2c0db0(0x19a)](_0x4094db,_0x1e7bea);}return;}}}const eventDispatcher=EventDispatcher[a86_0x458ea3(0x19f)]();Object[a86_0x458ea3(0x19e)](eventDispatcher),module['exports']=eventDispatcher;function a86_0x4dac(){const _0x25dae7=['xlwPl','84NeEpkU','notifyObserver','14680niwCxR','freeze','getInstance','607680mqpiQR','3161820yGSAVR','54OWhrUq','2027770lLgrcW','10715fvufrx','observers','212329QUpRll','2411856wHnlxC','../../helpers/classLogger.js','push','568FHAzYb'];a86_0x4dac=function(){return _0x25dae7;};return a86_0x4dac();}
@@ -1 +1 @@
1
- const a75_0x4a7563=a75_0x3adf;function a75_0x55a5(){const _0x32812a=['getHookRegistryKey','notifyObserver','\x20hookState=','getCurrentInstanceName','5626602CpeGZV','setTrackedInstance','set','automation_sessions','getAllData','debug','11127446WTlDmJ','getId','getAutomationFrameworkName','../eventDispatcher.js','7nguckR','getState','AutomationFramework','registerObserver','159SZJfaf','getAutomationFrameworkVersion','576430fatnZr','trackEvent:\x20automationFrameworkState=','setState','743902XbgOwJ','instances','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','get','getTrackedInstance','1tkKLDJ','automationFrameworkVersion','4702790dUsgxw','6EUVJAw','runHooks','KEY_AUTOMATION_SESSIONS','../../../helpers/classLogger.js','4172248Vgifkx','createContext','52964SMuRif'];a75_0x55a5=function(){return _0x32812a;};return a75_0x55a5();}(function(_0x2c6125,_0x354fab){const _0x15e9bc=a75_0x3adf,_0x4e9ae7=_0x2c6125();while(!![]){try{const _0x51cf68=-parseInt(_0x15e9bc(0x88))/0x1*(-parseInt(_0x15e9bc(0x83))/0x2)+parseInt(_0x15e9bc(0x7e))/0x3*(parseInt(_0x15e9bc(0x91))/0x4)+parseInt(_0x15e9bc(0x80))/0x5*(-parseInt(_0x15e9bc(0x8b))/0x6)+-parseInt(_0x15e9bc(0x7a))/0x7*(parseInt(_0x15e9bc(0x8f))/0x8)+-parseInt(_0x15e9bc(0x96))/0x9+-parseInt(_0x15e9bc(0x8a))/0xa+parseInt(_0x15e9bc(0x9c))/0xb;if(_0x51cf68===_0x354fab)break;else _0x4e9ae7['push'](_0x4e9ae7['shift']());}catch(_0x2c4864){_0x4e9ae7['push'](_0x4e9ae7['shift']());}}}(a75_0x55a5,0x5630c));function a75_0x3adf(_0x28c4be,_0x177452){const _0x55a5e6=a75_0x55a5();return a75_0x3adf=function(_0x3adf46,_0x54a317){_0x3adf46=_0x3adf46-0x7a;let _0x33b269=_0x55a5e6[_0x3adf46];return _0x33b269;},a75_0x3adf(_0x28c4be,_0x177452);}const {createClassLogger}=require(a75_0x4a7563(0x8e)),util=require('util'),eventDispatcher=require(a75_0x4a7563(0x9f)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a75_0x4a7563(0x7c));class AutomationFramework{static [a75_0x4a7563(0x84)]=new Map();static [a75_0x4a7563(0x8d)]=a75_0x4a7563(0x99);static [a75_0x4a7563(0x85)]='non_browserstack_automation_sessions';constructor(_0x3e8c99,_0x55c8a3){const _0x4181a0=a75_0x4a7563;this['automationFrameworkName']=_0x3e8c99,this[_0x4181a0(0x89)]=_0x55c8a3;}[a75_0x4a7563(0x9e)](){return this['automationFrameworkName'];}[a75_0x4a7563(0x7f)](){const _0x4c3d84=a75_0x4a7563;return this[_0x4c3d84(0x89)];}async['trackEvent'](_0x55162e,_0x4856e3,_0x2039db={}){const _0x2df073=a75_0x4a7563;logger[_0x2df073(0x9b)](_0x2df073(0x81)+_0x55162e+_0x2df073(0x94)+_0x4856e3);}async[a75_0x4a7563(0x8c)](_0x268154,_0x2c40ed,_0x535385,_0x1e152a={}){const _0x22906d=a75_0x4a7563,_0x1cd021=CLIUtils[_0x22906d(0x92)](_0x2c40ed,_0x535385);_0x268154&&_0x268154[_0x22906d(0x82)](_0x2c40ed),await eventDispatcher[_0x22906d(0x93)](_0x1cd021,_0x1e152a);}static[a75_0x4a7563(0x7d)](_0x50b585,_0x18e69a,_0xc5fae1){const _0x231a2f=a75_0x4a7563;eventDispatcher['registerObserver'](CLIUtils[_0x231a2f(0x92)](_0x50b585,_0x18e69a),_0xc5fae1);}static[a75_0x4a7563(0x97)](_0x1533d5,_0x5423dd){const _0x31d753=a75_0x4a7563;AutomationFramework[_0x31d753(0x84)][_0x31d753(0x98)](_0x1533d5[_0x31d753(0x9d)](),_0x5423dd);}static[a75_0x4a7563(0x87)](){const _0x59039e=a75_0x4a7563,_0x5eb604=TrackedInstance[_0x59039e(0x90)](CLIUtils[_0x59039e(0x95)]());return AutomationFramework[_0x59039e(0x84)][_0x59039e(0x86)](_0x5eb604[_0x59039e(0x9d)]());}static[a75_0x4a7563(0x82)](_0x4a5e15,_0x1f82fc,_0x213713){const _0x87c269=a75_0x4a7563;_0x4a5e15['getAllData']()[_0x87c269(0x98)](_0x1f82fc,_0x213713);}static[a75_0x4a7563(0x7b)](_0x411d16,_0x42b1ba){const _0x371a77=a75_0x4a7563;return _0x411d16[_0x371a77(0x9a)]()['get'](_0x42b1ba);}}module['exports']=AutomationFramework;
1
+ const a87_0x3ef713=a87_0x5228;(function(_0x572d1a,_0x177b1e){const _0x1ee516=a87_0x5228,_0x1f745c=_0x572d1a();while(!![]){try{const _0x4ff5a7=parseInt(_0x1ee516(0x193))/0x1+parseInt(_0x1ee516(0x17c))/0x2*(-parseInt(_0x1ee516(0x17d))/0x3)+-parseInt(_0x1ee516(0x18d))/0x4+parseInt(_0x1ee516(0x178))/0x5*(-parseInt(_0x1ee516(0x176))/0x6)+-parseInt(_0x1ee516(0x17a))/0x7+parseInt(_0x1ee516(0x177))/0x8+-parseInt(_0x1ee516(0x182))/0x9*(-parseInt(_0x1ee516(0x172))/0xa);if(_0x4ff5a7===_0x177b1e)break;else _0x1f745c['push'](_0x1f745c['shift']());}catch(_0x2af7dc){_0x1f745c['push'](_0x1f745c['shift']());}}}(a87_0x45d3,0x98e89));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require('util'),eventDispatcher=require(a87_0x3ef713(0x173)),CLIUtils=require(a87_0x3ef713(0x192)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a87_0x3ef713(0x174));function a87_0x5228(_0x23a46c,_0x28b2bf){const _0x45d307=a87_0x45d3();return a87_0x5228=function(_0x5228a7,_0x41c0b8){_0x5228a7=_0x5228a7-0x172;let _0x300072=_0x45d307[_0x5228a7];return _0x300072;},a87_0x5228(_0x23a46c,_0x28b2bf);}function a87_0x45d3(){const _0x3cf43d=['10rURmsk','KEY_AUTOMATION_SESSIONS','276206lqQJZB','debug','150494nkHIRY','18XpDlbJ','setTrackedInstance','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setState','notifyObserver','4745421AlvUjB','getAllData','getAutomationFrameworkName','\x20hookState=','trackEvent:\x20automationFrameworkState=','automationFrameworkVersion','trackEvent','getId','non_browserstack_automation_sessions','automationFrameworkName','automation_sessions','3190000phvyqu','createContext','getState','instances','getHookRegistryKey','../cliUtils.js','526136SQmVkD','get','30DkGjYM','../eventDispatcher.js','AutomationFramework','registerObserver','3194514Eqhdup','6973184GqDkOq'];a87_0x45d3=function(){return _0x3cf43d;};return a87_0x45d3();}class AutomationFramework{static [a87_0x3ef713(0x190)]=new Map();static [a87_0x3ef713(0x179)]=a87_0x3ef713(0x18c);static [a87_0x3ef713(0x17f)]=a87_0x3ef713(0x18a);constructor(_0x33e72c,_0x4ecd36){const _0x4f46cc=a87_0x3ef713;this[_0x4f46cc(0x18b)]=_0x33e72c,this['automationFrameworkVersion']=_0x4ecd36;}[a87_0x3ef713(0x184)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){const _0x24e684=a87_0x3ef713;return this[_0x24e684(0x187)];}async[a87_0x3ef713(0x188)](_0x1a7e4f,_0x51d35c,_0x22474f={}){const _0x29f185=a87_0x3ef713;logger[_0x29f185(0x17b)](_0x29f185(0x186)+_0x1a7e4f+_0x29f185(0x185)+_0x51d35c);}async['runHooks'](_0x488e4f,_0x19b54b,_0x1b882a,_0x277613={}){const _0x170e23=a87_0x3ef713,_0x371de8=CLIUtils[_0x170e23(0x191)](_0x19b54b,_0x1b882a);_0x488e4f&&_0x488e4f[_0x170e23(0x180)](_0x19b54b),await eventDispatcher[_0x170e23(0x181)](_0x371de8,_0x277613);}static[a87_0x3ef713(0x175)](_0x1e2816,_0x554967,_0x4db6dc){const _0x1797f0=a87_0x3ef713;eventDispatcher['registerObserver'](CLIUtils[_0x1797f0(0x191)](_0x1e2816,_0x554967),_0x4db6dc);}static[a87_0x3ef713(0x17e)](_0x51a619,_0x24c053){const _0x4c160a=a87_0x3ef713;AutomationFramework[_0x4c160a(0x190)]['set'](_0x51a619[_0x4c160a(0x189)](),_0x24c053);}static['getTrackedInstance'](){const _0x345300=a87_0x3ef713,_0x34f1ad=TrackedInstance[_0x345300(0x18e)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x345300(0x190)][_0x345300(0x194)](_0x34f1ad['getId']());}static['setState'](_0x1c246b,_0x404586,_0x4195ac){const _0x6d51bd=a87_0x3ef713;_0x1c246b[_0x6d51bd(0x183)]()['set'](_0x404586,_0x4195ac);}static[a87_0x3ef713(0x18f)](_0x4feaf4,_0x692832){const _0x2e6f19=a87_0x3ef713;return _0x4feaf4['getAllData']()[_0x2e6f19(0x194)](_0x692832);}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- const a76_0x567d82=a76_0x5736;(function(_0x362288,_0x55069a){const _0x403494=a76_0x5736,_0x57073e=_0x362288();while(!![]){try{const _0x3c04a9=parseInt(_0x403494(0x179))/0x1+parseInt(_0x403494(0x17a))/0x2*(-parseInt(_0x403494(0x186))/0x3)+-parseInt(_0x403494(0x18c))/0x4+-parseInt(_0x403494(0x181))/0x5+-parseInt(_0x403494(0x177))/0x6+parseInt(_0x403494(0x17b))/0x7*(-parseInt(_0x403494(0x176))/0x8)+parseInt(_0x403494(0x188))/0x9;if(_0x3c04a9===_0x55069a)break;else _0x57073e['push'](_0x57073e['shift']());}catch(_0x3afee6){_0x57073e['push'](_0x57073e['shift']());}}}(a76_0x254d,0xd8791));function a76_0x5736(_0x273c0a,_0x39a4b6){const _0x254d7f=a76_0x254d();return a76_0x5736=function(_0x57369e,_0x586428){_0x57369e=_0x57369e-0x172;let _0x4fe12c=_0x254d7f[_0x57369e];return _0x4fe12c;},a76_0x5736(_0x273c0a,_0x39a4b6);}const a76_0x1530a4={};a76_0x1530a4[a76_0x567d82(0x182)]=a76_0x567d82(0x173),a76_0x1530a4[a76_0x567d82(0x18f)]=a76_0x567d82(0x17d),a76_0x1530a4['KEY_FRAMEWORK_SESSION_ID']=a76_0x567d82(0x172),a76_0x1530a4[a76_0x567d82(0x18a)]='input_capabilities',a76_0x1530a4['KEY_CAPABILITIES']=a76_0x567d82(0x175),a76_0x1530a4[a76_0x567d82(0x184)]=a76_0x567d82(0x17e),a76_0x1530a4[a76_0x567d82(0x180)]=a76_0x567d82(0x185),a76_0x1530a4['KEY_ENDED_AT']='ended_at',a76_0x1530a4[a76_0x567d82(0x190)]=a76_0x567d82(0x17f),a76_0x1530a4['COMMAND_NEW_SESSION']=a76_0x567d82(0x17c),a76_0x1530a4[a76_0x567d82(0x187)]=a76_0x567d82(0x178),a76_0x1530a4[a76_0x567d82(0x189)]=a76_0x567d82(0x174),a76_0x1530a4[a76_0x567d82(0x18b)]=a76_0x567d82(0x183),a76_0x1530a4[a76_0x567d82(0x191)]=a76_0x567d82(0x18e),a76_0x1530a4[a76_0x567d82(0x18d)]='quit';const AutomationFrameworkConstants=a76_0x1530a4;function a76_0x254d(){const _0x112d83=['42087789lvGbTC','COMMAND_SCREENSHOT','KEY_INPUT_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT','5028756dDKgPI','COMMAND_QUIT','w3cexecutescriptasync','KEY_HUB_URL','KEY_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','framework_session_id','BROWSERSTACK_PLATFORM_INDEX','screenshot','capabilities','352hRWqeW','3050628zyJIIe','get','588540nwXbWw','98830VQOUrS','50540ZEXMjf','newsession','hub_url','is_browserstack_hub','platform_index','KEY_STARTED_AT','8757080DWDGTw','ENV_BROWSERSTACK_PLATFORM_INDEX','w3cexecutescript','KEY_IS_BROWSERSTACK_HUB','started_at','33TPALaT','COMMAND_GET'];a76_0x254d=function(){return _0x112d83;};return a76_0x254d();}module['exports']=AutomationFrameworkConstants;
1
+ const a88_0x17d55e=a88_0x167b;(function(_0x1c7e85,_0x1ff338){const _0x3384c5=a88_0x167b,_0x4da608=_0x1c7e85();while(!![]){try{const _0x175947=parseInt(_0x3384c5(0xdd))/0x1*(parseInt(_0x3384c5(0xce))/0x2)+parseInt(_0x3384c5(0xdf))/0x3+parseInt(_0x3384c5(0xe8))/0x4+parseInt(_0x3384c5(0xd8))/0x5*(parseInt(_0x3384c5(0xcf))/0x6)+parseInt(_0x3384c5(0xe5))/0x7*(parseInt(_0x3384c5(0xd4))/0x8)+-parseInt(_0x3384c5(0xe4))/0x9+-parseInt(_0x3384c5(0xe2))/0xa;if(_0x175947===_0x1ff338)break;else _0x4da608['push'](_0x4da608['shift']());}catch(_0x20a864){_0x4da608['push'](_0x4da608['shift']());}}}(a88_0x458a,0x314b5));const a88_0x367362={};a88_0x367362[a88_0x17d55e(0xe7)]='BROWSERSTACK_PLATFORM_INDEX',a88_0x367362[a88_0x17d55e(0xd5)]=a88_0x17d55e(0xc8),a88_0x367362[a88_0x17d55e(0xd9)]=a88_0x17d55e(0xdc),a88_0x367362[a88_0x17d55e(0xd7)]=a88_0x17d55e(0xd3),a88_0x367362[a88_0x17d55e(0xc7)]=a88_0x17d55e(0xc9),a88_0x367362[a88_0x17d55e(0xda)]='is_browserstack_hub',a88_0x367362[a88_0x17d55e(0xcc)]=a88_0x17d55e(0xd2),a88_0x367362[a88_0x17d55e(0xca)]=a88_0x17d55e(0xe1),a88_0x367362[a88_0x17d55e(0xe6)]=a88_0x17d55e(0xc6),a88_0x367362[a88_0x17d55e(0xc5)]='newsession',a88_0x367362[a88_0x17d55e(0xdb)]=a88_0x17d55e(0xe3),a88_0x367362[a88_0x17d55e(0xe0)]=a88_0x17d55e(0xd1),a88_0x367362['COMMAND_W3C_EXECUTE_SCRIPT']=a88_0x17d55e(0xc4),a88_0x367362[a88_0x17d55e(0xcd)]=a88_0x17d55e(0xd6),a88_0x367362[a88_0x17d55e(0xde)]=a88_0x17d55e(0xd0);function a88_0x458a(){const _0x3ab5d2=['KEY_FRAMEWORK_SESSION_ID','KEY_IS_BROWSERSTACK_HUB','COMMAND_GET','framework_session_id','149MIVmuU','COMMAND_QUIT','950802cBVdKi','COMMAND_SCREENSHOT','ended_at','11053320vNLfvs','get','1451601iwBuHe','2609817iSQbGj','KEY_PLATFORM_INDEX','ENV_BROWSERSTACK_PLATFORM_INDEX','999628iXBXLW','w3cexecutescript','COMMAND_NEW_SESSION','platform_index','KEY_CAPABILITIES','hub_url','capabilities','KEY_ENDED_AT','exports','KEY_STARTED_AT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','3002BGTDSK','1831254NONfgF','quit','screenshot','started_at','input_capabilities','8NAoHqB','KEY_HUB_URL','w3cexecutescriptasync','KEY_INPUT_CAPABILITIES','5MMxCUJ'];a88_0x458a=function(){return _0x3ab5d2;};return a88_0x458a();}const AutomationFrameworkConstants=a88_0x367362;function a88_0x167b(_0x1f92bf,_0x55fb14){const _0x458a38=a88_0x458a();return a88_0x167b=function(_0x167b74,_0x45028b){_0x167b74=_0x167b74-0xc4;let _0x238f2b=_0x458a38[_0x167b74];return _0x238f2b;},a88_0x167b(_0x1f92bf,_0x55fb14);}module[a88_0x17d55e(0xcb)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a77_0x378185=a77_0x3612;(function(_0x4e3319,_0x4729dd){const _0x46202f=a77_0x3612,_0x4c42a0=_0x4e3319();while(!![]){try{const _0x4ea3b8=-parseInt(_0x46202f(0x189))/0x1+parseInt(_0x46202f(0x174))/0x2*(-parseInt(_0x46202f(0x1a9))/0x3)+parseInt(_0x46202f(0x159))/0x4*(parseInt(_0x46202f(0x196))/0x5)+parseInt(_0x46202f(0x181))/0x6*(parseInt(_0x46202f(0x19d))/0x7)+-parseInt(_0x46202f(0x156))/0x8*(parseInt(_0x46202f(0x1a0))/0x9)+parseInt(_0x46202f(0x193))/0xa+-parseInt(_0x46202f(0x15c))/0xb*(parseInt(_0x46202f(0x18f))/0xc);if(_0x4ea3b8===_0x4729dd)break;else _0x4c42a0['push'](_0x4c42a0['shift']());}catch(_0x17c199){_0x4c42a0['push'](_0x4c42a0['shift']());}}}(a77_0x4c80,0x3bf52));function a77_0x3612(_0x4c793c,_0x34194b){const _0x4c807e=a77_0x4c80();return a77_0x3612=function(_0x36128f,_0x48972f){_0x36128f=_0x36128f-0x152;let _0x5ae01c=_0x4c807e[_0x36128f];return _0x5ae01c;},a77_0x3612(_0x4c793c,_0x34194b);}const a77_0x536ba7={};a77_0x536ba7[a77_0x378185(0x178)]=a77_0x378185(0x19c),a77_0x536ba7[a77_0x378185(0x184)]=a77_0x378185(0x19a),a77_0x536ba7[a77_0x378185(0x191)]=a77_0x378185(0x152),a77_0x536ba7[a77_0x378185(0x18b)]=a77_0x378185(0x1b3),a77_0x536ba7['KEY_TEST_TAGS']=a77_0x378185(0x1b4),a77_0x536ba7[a77_0x378185(0x17f)]=a77_0x378185(0x194),a77_0x536ba7['KEY_TEST_RESULT_AT']='test_result_at',a77_0x536ba7['KEY_TEST_STARTED_AT']=a77_0x378185(0x169),a77_0x536ba7[a77_0x378185(0x154)]='test_ended_at',a77_0x536ba7[a77_0x378185(0x16c)]=a77_0x378185(0x17d),a77_0x536ba7[a77_0x378185(0x176)]=a77_0x378185(0x180),a77_0x536ba7[a77_0x378185(0x17c)]='test_scope',a77_0x536ba7[a77_0x378185(0x1a6)]=a77_0x378185(0x170),a77_0x536ba7[a77_0x378185(0x19b)]=a77_0x378185(0x198),a77_0x536ba7[a77_0x378185(0x1ac)]=a77_0x378185(0x165),a77_0x536ba7[a77_0x378185(0x15b)]=a77_0x378185(0x1ab),a77_0x536ba7[a77_0x378185(0x16f)]=a77_0x378185(0x175),a77_0x536ba7[a77_0x378185(0x157)]=a77_0x378185(0x1a8),a77_0x536ba7[a77_0x378185(0x168)]=a77_0x378185(0x15a),a77_0x536ba7['KEY_TEST_FAILURE']=a77_0x378185(0x188),a77_0x536ba7[a77_0x378185(0x173)]=a77_0x378185(0x1b2),a77_0x536ba7[a77_0x378185(0x1ae)]=a77_0x378185(0x199),a77_0x536ba7[a77_0x378185(0x15e)]='test_logs',a77_0x536ba7[a77_0x378185(0x18e)]=a77_0x378185(0x162),a77_0x536ba7['KEY_SESSION_NAME']=a77_0x378185(0x1a5),a77_0x536ba7[a77_0x378185(0x155)]=a77_0x378185(0x192),a77_0x536ba7[a77_0x378185(0x179)]='automate_session_status',a77_0x536ba7[a77_0x378185(0x1a4)]='automate_session_reason',a77_0x536ba7[a77_0x378185(0x16d)]=a77_0x378185(0x167),a77_0x536ba7['KEY_EVENT_ENDED_AT']=a77_0x378185(0x1af),a77_0x536ba7[a77_0x378185(0x186)]=a77_0x378185(0x15d),a77_0x536ba7['KEY_HOOK_RESULT']=a77_0x378185(0x18c),a77_0x536ba7[a77_0x378185(0x16a)]=a77_0x378185(0x1b5),a77_0x536ba7[a77_0x378185(0x18d)]=a77_0x378185(0x1aa),a77_0x536ba7['KEY_HOOK_FAILURE']=a77_0x378185(0x19e),a77_0x536ba7[a77_0x378185(0x185)]='hook_logs',a77_0x536ba7[a77_0x378185(0x1b1)]=a77_0x378185(0x177),a77_0x536ba7[a77_0x378185(0x1ad)]=a77_0x378185(0x16b),a77_0x536ba7[a77_0x378185(0x160)]='pending',a77_0x536ba7[a77_0x378185(0x1b0)]=a77_0x378185(0x163),a77_0x536ba7[a77_0x378185(0x195)]=a77_0x378185(0x190),a77_0x536ba7[a77_0x378185(0x183)]=a77_0x378185(0x172),a77_0x536ba7[a77_0x378185(0x17e)]=a77_0x378185(0x153),a77_0x536ba7[a77_0x378185(0x17a)]=a77_0x378185(0x197),a77_0x536ba7[a77_0x378185(0x161)]=a77_0x378185(0x19f),a77_0x536ba7['KEY_HOOK_LAST_FINISHED']=a77_0x378185(0x158),a77_0x536ba7[a77_0x378185(0x171)]=a77_0x378185(0x18a),a77_0x536ba7[a77_0x378185(0x16e)]='custom_metadata',a77_0x536ba7[a77_0x378185(0x187)]=a77_0x378185(0x182),a77_0x536ba7['KEY_FILE_SIZE']=a77_0x378185(0x164),a77_0x536ba7[a77_0x378185(0x1a3)]=a77_0x378185(0x1a2),a77_0x536ba7['KEY_FILE_PATH']='file_path',a77_0x536ba7[a77_0x378185(0x1a7)]=a77_0x378185(0x17b),a77_0x536ba7[a77_0x378185(0x166)]=0xa,a77_0x536ba7[a77_0x378185(0x15f)]=0x2;const TestFrameworkConstants=a77_0x536ba7;module[a77_0x378185(0x1a1)]=TestFrameworkConstants;function a77_0x4c80(){const _0x1f535d=['9vcpJCa','exports','file_name','KEY_FILE_NAME','KEY_AUTOMATE_SESSION_REASON','test_session_name','KEY_TEST_SCOPES','KEY_FILE_LEVEL','retry_of','22398ZXJoNN','hook_failure_reason','test_code','KEY_TEST_FRAMEWORK_VERSION','DEFAULT_TEST_RESULT','KEY_TEST_FAILURE_REASON','event_ended_at','KIND_SCREENSHOT','KEY_HOOK_NAME','test_failure_type','test_file_path','test_tags','hook_failure_type','test_name','test_hooks_started','KEY_TEST_ENDED_AT','KEY_AUTOMATE_SESSION_NAME','955016vxqfDn','KEY_TEST_RETRY_OF','test_hook_last_finished','4ZSGaQT','platform_index','KEY_TEST_CODE','1261260oCjqzf','hook_id','KEY_TEST_LOGS','MAX_NESTED_STEP_DEPTH','DEFAULT_HOOK_RESULT','KEY_HOOK_LAST_STARTED','test_meta','TEST_SCREENSHOT','file_size','test_framework_version','MAX_TOP_LEVEL_STEPS','event_started_at','KEY_PLATFORM_INDEX','test_started_at','KEY_HOOK_FAILURE_TYPE','pending','KEY_TEST_LOCATION','KEY_EVENT_STARTED_AT','KEY_CUSTOM_TAGS','KEY_TEST_RERUN_NAME','test_scopes','KEY_LOGS','^(BEFORE_|AFTER_)','KEY_TEST_FAILURE_TYPE','68dlaKcf','test_rerun_name','KEY_TEST_DURATION','hook_name','KEY_TEST_UUID','KEY_AUTOMATE_SESSION_STATUS','KEY_HOOKS_FINISHED','file_level','KEY_TEST_SCOPE','test_location','KEY_HOOKS_STARTED','KEY_TEST_RESULT','test_duration','599574mIsuBM','test_attachments','HOOK_REGEX','KEY_TEST_ID','KEY_HOOK_LOGS','KEY_HOOK_ID','KEY_TEST_ATTACHMENTS','test_failure','206513oGxXyc','logs','KEY_TEST_FILE_PATH','hook_result','KEY_HOOK_FAILURE_REASON','KEY_TEST_META','12cUyyWj','TEST_LOG','KEY_TEST_NAME','automate_session_name','1680000rmpNTZ','test_result','KIND_LOG','2360965yCzSRy','test_hooks_finished','test_framework_name','test_failure_reason','test_id','KEY_TEST_FRAMEWORK_NAME','test_uuid','21ONlVvZ','hook_failure','test_hook_last_started'];a77_0x4c80=function(){return _0x1f535d;};return a77_0x4c80();}
1
+ const a89_0x33eb1d=a89_0x5d54;(function(_0x238458,_0x5aae1a){const _0x1fe5aa=a89_0x5d54,_0x517b4a=_0x238458();while(!![]){try{const _0x43f6f9=parseInt(_0x1fe5aa(0x17e))/0x1*(parseInt(_0x1fe5aa(0x16f))/0x2)+parseInt(_0x1fe5aa(0x177))/0x3*(parseInt(_0x1fe5aa(0x151))/0x4)+parseInt(_0x1fe5aa(0x17d))/0x5+-parseInt(_0x1fe5aa(0x16e))/0x6+parseInt(_0x1fe5aa(0x17a))/0x7+-parseInt(_0x1fe5aa(0x14d))/0x8+parseInt(_0x1fe5aa(0x15f))/0x9;if(_0x43f6f9===_0x5aae1a)break;else _0x517b4a['push'](_0x517b4a['shift']());}catch(_0x4941fd){_0x517b4a['push'](_0x517b4a['shift']());}}}(a89_0x2f06,0x9810e));const a89_0x5dd69e={};function a89_0x5d54(_0xfc0280,_0x3719bb){const _0x2f06c8=a89_0x2f06();return a89_0x5d54=function(_0x5d547c,_0x1f65d0){_0x5d547c=_0x5d547c-0x135;let _0x614104=_0x2f06c8[_0x5d547c];return _0x614104;},a89_0x5d54(_0xfc0280,_0x3719bb);}a89_0x5dd69e['KEY_TEST_UUID']=a89_0x33eb1d(0x149),a89_0x5dd69e[a89_0x33eb1d(0x13d)]=a89_0x33eb1d(0x173),a89_0x5dd69e['KEY_TEST_NAME']=a89_0x33eb1d(0x148),a89_0x5dd69e[a89_0x33eb1d(0x176)]='test_file_path',a89_0x5dd69e[a89_0x33eb1d(0x140)]=a89_0x33eb1d(0x136),a89_0x5dd69e[a89_0x33eb1d(0x152)]=a89_0x33eb1d(0x17f),a89_0x5dd69e['KEY_TEST_RESULT_AT']='test_result_at',a89_0x5dd69e[a89_0x33eb1d(0x13a)]='test_started_at',a89_0x5dd69e[a89_0x33eb1d(0x185)]='test_ended_at',a89_0x5dd69e[a89_0x33eb1d(0x141)]=a89_0x33eb1d(0x16a),a89_0x5dd69e['KEY_TEST_DURATION']=a89_0x33eb1d(0x153),a89_0x5dd69e[a89_0x33eb1d(0x150)]=a89_0x33eb1d(0x178),a89_0x5dd69e[a89_0x33eb1d(0x168)]='test_scopes',a89_0x5dd69e[a89_0x33eb1d(0x13b)]='test_framework_name',a89_0x5dd69e[a89_0x33eb1d(0x180)]=a89_0x33eb1d(0x156),a89_0x5dd69e['KEY_TEST_CODE']=a89_0x33eb1d(0x157),a89_0x5dd69e['KEY_TEST_RERUN_NAME']=a89_0x33eb1d(0x13c),a89_0x5dd69e[a89_0x33eb1d(0x172)]='retry_of',a89_0x5dd69e[a89_0x33eb1d(0x14a)]='platform_index',a89_0x5dd69e[a89_0x33eb1d(0x169)]=a89_0x33eb1d(0x159),a89_0x5dd69e[a89_0x33eb1d(0x166)]=a89_0x33eb1d(0x15d),a89_0x5dd69e[a89_0x33eb1d(0x154)]=a89_0x33eb1d(0x17b),a89_0x5dd69e[a89_0x33eb1d(0x137)]=a89_0x33eb1d(0x164),a89_0x5dd69e[a89_0x33eb1d(0x155)]=a89_0x33eb1d(0x174),a89_0x5dd69e['KEY_SESSION_NAME']=a89_0x33eb1d(0x13e),a89_0x5dd69e[a89_0x33eb1d(0x161)]=a89_0x33eb1d(0x147),a89_0x5dd69e[a89_0x33eb1d(0x138)]='automate_session_status',a89_0x5dd69e[a89_0x33eb1d(0x165)]='automate_session_reason',a89_0x5dd69e[a89_0x33eb1d(0x146)]=a89_0x33eb1d(0x14c),a89_0x5dd69e[a89_0x33eb1d(0x14b)]='event_ended_at',a89_0x5dd69e[a89_0x33eb1d(0x158)]='hook_id',a89_0x5dd69e[a89_0x33eb1d(0x13f)]='hook_result',a89_0x5dd69e[a89_0x33eb1d(0x160)]=a89_0x33eb1d(0x175),a89_0x5dd69e[a89_0x33eb1d(0x144)]=a89_0x33eb1d(0x16c),a89_0x5dd69e[a89_0x33eb1d(0x181)]=a89_0x33eb1d(0x15c),a89_0x5dd69e[a89_0x33eb1d(0x162)]=a89_0x33eb1d(0x16b),a89_0x5dd69e[a89_0x33eb1d(0x14e)]=a89_0x33eb1d(0x135),a89_0x5dd69e['DEFAULT_TEST_RESULT']=a89_0x33eb1d(0x142),a89_0x5dd69e['DEFAULT_HOOK_RESULT']=a89_0x33eb1d(0x142),a89_0x5dd69e['KIND_SCREENSHOT']=a89_0x33eb1d(0x182),a89_0x5dd69e[a89_0x33eb1d(0x139)]='TEST_LOG',a89_0x5dd69e['HOOK_REGEX']=a89_0x33eb1d(0x15b),a89_0x5dd69e[a89_0x33eb1d(0x17c)]='test_hooks_started',a89_0x5dd69e[a89_0x33eb1d(0x14f)]=a89_0x33eb1d(0x16d),a89_0x5dd69e['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a89_0x5dd69e[a89_0x33eb1d(0x184)]='test_hook_last_finished',a89_0x5dd69e[a89_0x33eb1d(0x15e)]=a89_0x33eb1d(0x183),a89_0x5dd69e[a89_0x33eb1d(0x167)]='custom_metadata',a89_0x5dd69e[a89_0x33eb1d(0x163)]='test_attachments',a89_0x5dd69e[a89_0x33eb1d(0x143)]='file_size',a89_0x5dd69e[a89_0x33eb1d(0x179)]='file_name',a89_0x5dd69e['KEY_FILE_PATH']='file_path',a89_0x5dd69e[a89_0x33eb1d(0x171)]=a89_0x33eb1d(0x170),a89_0x5dd69e['KEY_TEST_SCREENSHOTS']='test_screenshots',a89_0x5dd69e['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x5dd69e[a89_0x33eb1d(0x145)]=0x2;function a89_0x2f06(){const _0xa01fd0=['KEY_HOOKS_FINISHED','KEY_TEST_SCOPE','4wXkZIt','KEY_TEST_RESULT','test_duration','KEY_TEST_FAILURE_REASON','KEY_TEST_META','test_framework_version','test_code','KEY_HOOK_ID','test_failure','exports','^(BEFORE_|AFTER_)','hook_failure','test_failure_type','KEY_LOGS','1105416ChFZbr','KEY_HOOK_FAILURE_TYPE','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LOGS','KEY_TEST_ATTACHMENTS','test_logs','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_FAILURE_TYPE','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','KEY_TEST_FAILURE','test_location','hook_logs','hook_failure_reason','test_hooks_finished','2309130TqyNDg','285674PEgVqE','file_level','KEY_FILE_LEVEL','KEY_TEST_RETRY_OF','test_id','test_meta','hook_failure_type','KEY_TEST_FILE_PATH','1920513UPekWM','test_scope','KEY_FILE_NAME','539798qdfsci','test_failure_reason','KEY_HOOKS_STARTED','5866015pbCSxk','1SjiNZk','test_result','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_FAILURE','TEST_SCREENSHOT','logs','KEY_HOOK_LAST_FINISHED','KEY_TEST_ENDED_AT','hook_name','test_tags','KEY_TEST_LOGS','KEY_AUTOMATE_SESSION_STATUS','KIND_LOG','KEY_TEST_STARTED_AT','KEY_TEST_FRAMEWORK_NAME','test_rerun_name','KEY_TEST_ID','test_session_name','KEY_HOOK_RESULT','KEY_TEST_TAGS','KEY_TEST_LOCATION','pending','KEY_FILE_SIZE','KEY_HOOK_FAILURE_REASON','MAX_NESTED_STEP_DEPTH','KEY_EVENT_STARTED_AT','automate_session_name','test_name','test_uuid','KEY_PLATFORM_INDEX','KEY_EVENT_ENDED_AT','event_started_at','9187456SmLrhv','KEY_HOOK_NAME'];a89_0x2f06=function(){return _0xa01fd0;};return a89_0x2f06();}const TestFrameworkConstants=a89_0x5dd69e;module[a89_0x33eb1d(0x15a)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a78_0x367b(_0x2a0506,_0x3634f9){const _0xfe64c9=a78_0xfe64();return a78_0x367b=function(_0x367bd3,_0x4ccbf5){_0x367bd3=_0x367bd3-0x1c4;let _0x53e765=_0xfe64c9[_0x367bd3];return _0x53e765;},a78_0x367b(_0x2a0506,_0x3634f9);}const a78_0x58e6f6=a78_0x367b;(function(_0x58285f,_0x4a28e4){const _0x11e792=a78_0x367b,_0x4453ed=_0x58285f();while(!![]){try{const _0x21cf81=parseInt(_0x11e792(0x1d7))/0x1*(parseInt(_0x11e792(0x214))/0x2)+-parseInt(_0x11e792(0x1c8))/0x3*(-parseInt(_0x11e792(0x20c))/0x4)+parseInt(_0x11e792(0x213))/0x5+-parseInt(_0x11e792(0x27a))/0x6+parseInt(_0x11e792(0x271))/0x7+parseInt(_0x11e792(0x202))/0x8*(-parseInt(_0x11e792(0x218))/0x9)+parseInt(_0x11e792(0x237))/0xa;if(_0x21cf81===_0x4a28e4)break;else _0x4453ed['push'](_0x4453ed['shift']());}catch(_0x23dd6e){_0x4453ed['push'](_0x4453ed['shift']());}}}(a78_0xfe64,0xad8cd));const TestFramework=require('./testFramework'),TestFrameworkState=require(a78_0x58e6f6(0x235)),HookState=require(a78_0x58e6f6(0x260)),{createClassLogger}=require(a78_0x58e6f6(0x233)),TestFrameworkInstance=require(a78_0x58e6f6(0x268)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x58e6f6(0x269)),{v4:uuidv4}=require(a78_0x58e6f6(0x22f)),util=require(a78_0x58e6f6(0x1fc)),TestInfo=require('../TestInfo.js'),GrpcClient=require(a78_0x58e6f6(0x259));class CucumberTestFramework extends TestFramework{constructor(_0x5c7df0,_0xc0b890,_0x322490){super(_0x5c7df0,_0xc0b890,_0x322490);}async[a78_0x58e6f6(0x220)](_0x3cecf1,_0x90ff5,_0x12f368={}){const _0x409517=a78_0x58e6f6,_0x2aab98={};_0x2aab98[_0x409517(0x257)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x2aab98[_0x409517(0x1df)]=function(_0x35f6e9,_0x11eb6f){return _0x35f6e9===_0x11eb6f;},_0x2aab98[_0x409517(0x279)]=function(_0x3586,_0x3c9cfa){return _0x3586===_0x3c9cfa;},_0x2aab98[_0x409517(0x1f2)]=function(_0x3366d0,_0x4542f7){return _0x3366d0===_0x4542f7;},_0x2aab98[_0x409517(0x1f1)]=_0x409517(0x265);const _0x2f8e42=_0x2aab98;await super['trackEvent'](_0x3cecf1,_0x90ff5,_0x12f368);const _0x466c6f=this[_0x409517(0x1f0)](_0x3cecf1,_0x90ff5,_0x12f368);if(!_0x466c6f){logger[_0x409517(0x238)](_0x2f8e42[_0x409517(0x257)]);return;}try{let _0x5d88d8,_0x14adab;switch(_0x3cecf1){case TestFrameworkState[_0x409517(0x1c4)]:_0x5d88d8=_0x12f368['test'],_0x14adab=TestInfo[_0x409517(0x21b)](_0x5d88d8['id']);if(_0x2f8e42[_0x409517(0x1df)](_0x90ff5,HookState[_0x409517(0x250)])){logger[_0x409517(0x238)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x5d88d8['id']);const _0x58f5a2={};_0x58f5a2[_0x409517(0x1dc)]=_0x14adab,_0x58f5a2[_0x409517(0x244)]=_0x5d88d8,_0x466c6f['addMultipleEntries'](this[_0x409517(0x20b)](_0x58f5a2)),logger[_0x409517(0x238)](_0x409517(0x1d3)+_0x5d88d8['id']),await this['processPendingHooks'](_0x466c6f,_0x5d88d8['id']);}else{if(_0x2f8e42[_0x409517(0x279)](_0x90ff5,HookState[_0x409517(0x1fd)])){const _0x554587={};_0x554587[_0x409517(0x1dc)]=_0x14adab,_0x554587[_0x409517(0x244)]=_0x5d88d8,_0x466c6f['addMultipleEntries'](this['parseCucumberTestResult'](_0x554587)),await this[_0x409517(0x1f3)](_0x466c6f,_0x5d88d8['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x2f8e42[_0x409517(0x1f2)](_0x90ff5,HookState['POST'])&&await this[_0x409517(0x1cb)](_0x466c6f,_0x3cecf1,_0x12f368);break;default:if(CLIUtils[_0x409517(0x205)](_0x3cecf1['toString']()['split']('.')[0x1])){const _0x4ca760=await this[_0x409517(0x22a)](_0x466c6f,_0x3cecf1,_0x90ff5,_0x12f368);_0x466c6f[_0x409517(0x288)](_0x4ca760);}else logger[_0x409517(0x238)](_0x409517(0x27b)+_0x3cecf1+_0x409517(0x27c)+_0x90ff5);break;}}catch(_0xbf0297){logger['error'](util['format'](_0x2f8e42[_0x409517(0x1f1)],_0x3cecf1,_0x90ff5,_0x12f368[_0x409517(0x272)],_0xbf0297));}_0x12f368[_0x409517(0x228)]=_0x466c6f,await this[_0x409517(0x24b)](_0x466c6f,_0x3cecf1,_0x90ff5,_0x12f368);}[a78_0x58e6f6(0x1f0)](_0x52b34a,_0x30b393,_0x21f02d={}){const _0x19e8e5=a78_0x58e6f6,_0x32426a={};_0x32426a['xtbEd']=function(_0x2286e7,_0x5470bf){return _0x2286e7===_0x5470bf;};const _0x582d31=_0x32426a;let _0x43cbcd=null;return(_0x582d31[_0x19e8e5(0x1ff)](_0x52b34a,TestFrameworkState[_0x19e8e5(0x1ea)])||_0x582d31['xtbEd'](_0x52b34a,TestFrameworkState[_0x19e8e5(0x267)]))&&this['trackCucumberInstance'](_0x52b34a,_0x21f02d),_0x43cbcd=TestFramework[_0x19e8e5(0x282)](),_0x43cbcd;}[a78_0x58e6f6(0x1e8)](_0x3f1be4,_0x426173){const _0x110f07=a78_0x58e6f6,_0xbd7a8b=CLIUtils[_0x110f07(0x242)](),_0x2467e7=TrackedInstance['createContext'](_0xbd7a8b);let _0x5e8371=null;logger[_0x110f07(0x238)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0xbd7a8b+_0x110f07(0x1e5)+_0x3f1be4),_0x5e8371=new TestFrameworkInstance(_0x2467e7,this[_0x110f07(0x231)](),this[_0x110f07(0x249)](),_0x3f1be4,HookState[_0x110f07(0x267)]),TestFramework['setTrackedInstance'](_0x2467e7,_0x5e8371),logger[_0x110f07(0x238)](_0x110f07(0x26f)+_0x2467e7[_0x110f07(0x209)]()+_0x110f07(0x1f6)+_0xbd7a8b);}[a78_0x58e6f6(0x20b)](_0xc7bb27){const _0x192932=a78_0x58e6f6,_0x592a60={};_0x592a60['MfIbj']='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x4af85a=_0x592a60,{testUUID:_0x2162b0,testData:_0x105425}=_0xc7bb27;if(!_0x105425||!_0x105425[_0x192932(0x22f)])return logger[_0x192932(0x238)](_0x4af85a[_0x192932(0x1eb)]),{};const _0x4ac01b=_0x2162b0,_0x4b993d=_0x105425['uuid'],_0x2d8d15=this[_0x192932(0x231)]()[0x0],_0x2b27c4=this[_0x192932(0x249)](),_0x15b02b={[TestFrameworkConstants[_0x192932(0x266)]]:_0x2d8d15,[TestFrameworkConstants[_0x192932(0x1c6)]]:_0x2b27c4[_0x2d8d15],[TestFrameworkConstants[_0x192932(0x26b)]]:[],[TestFrameworkConstants[_0x192932(0x200)]]:{},[TestFrameworkConstants[_0x192932(0x230)]]:{},[TestFrameworkConstants[_0x192932(0x225)]]:_0x4ac01b,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x192932(0x1de)]]:_0x105425[_0x192932(0x1d8)]||'',[TestFrameworkConstants[_0x192932(0x23a)]]:_0x105425[_0x192932(0x247)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x4b993d,[TestFrameworkConstants[_0x192932(0x1ed)]]:_0x105425[_0x192932(0x1d8)]||'',[TestFrameworkConstants[_0x192932(0x1f5)]]:_0x105425['location']||'',[TestFrameworkConstants[_0x192932(0x27d)]]:_0x105425['body']?.[_0x192932(0x1da)]||null,[TestFrameworkConstants[_0x192932(0x261)]]:_0x105425[_0x192932(0x224)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x105425['startedAt']||new Date()[_0x192932(0x217)](),[TestFrameworkConstants[_0x192932(0x1f9)]]:_0x105425[_0x192932(0x256)]?.[0x0]||'',[TestFrameworkConstants[_0x192932(0x251)]]:_0x105425[_0x192932(0x256)]||[],[TestFrameworkConstants[_0x192932(0x24d)]]:_0x105425['customRerunParam']?.[_0x192932(0x1dd)]||_0x105425['name']||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x192932(0x23e)]]:_0x105425[_0x192932(0x254)]||{}};TestInfo[_0x192932(0x1d5)](_0x4b993d,_0x15b02b),logger[_0x192932(0x238)]('Parsed\x20cucumber\x20test:\x20'+_0x105425[_0x192932(0x1d8)]+_0x192932(0x226)+_0x4ac01b);const _0x331cc9={};return _0x331cc9[_0x4b993d]=_0x15b02b,_0x331cc9;}['parseCucumberTestResult'](_0x4c9612){const _0x5b728a=a78_0x58e6f6,_0xacb7e1={'JntHF':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','ZTzde':_0x5b728a(0x21c),'nTQgn':function(_0xe36185,_0x10971e){return _0xe36185===_0x10971e;},'QkvLi':'failed','KunXA':_0x5b728a(0x22e),'PFzFi':function(_0xab3f34,_0x4db9d8,_0xa267d8){return _0xab3f34(_0x4db9d8,_0xa267d8);},'ovVof':function(_0x2b166f,_0x2d59c9){return _0x2b166f>_0x2d59c9;}},{testUUID:_0x383115,testData:_0x4f37d3}=_0x4c9612;if(!_0x4f37d3||!_0x4f37d3['uuid'])return logger[_0x5b728a(0x238)](_0xacb7e1[_0x5b728a(0x26a)]),{};const _0x374322=this['resolveInstance'](TestFrameworkState['TEST'],HookState[_0x5b728a(0x1fd)]),_0x2af008=_0x4f37d3['uuid'],_0xa8288c=TestInfo[_0x5b728a(0x1d4)](_0x2af008)||{},_0x9f9d71=_0xa8288c?_0xa8288c[TestFrameworkConstants[_0x5b728a(0x24a)]]||{}:{},_0x32279f={..._0xa8288c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x4f37d3[_0x5b728a(0x204)]||_0xacb7e1[_0x5b728a(0x240)],[TestFrameworkConstants[_0x5b728a(0x21e)]]:_0x4f37d3[_0x5b728a(0x25f)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x5b728a(0x264)]]:new Date()[_0x5b728a(0x217)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x9f9d71,[TestFrameworkConstants[_0x5b728a(0x1d0)]]:[],[TestFrameworkConstants[_0x5b728a(0x23e)]]:_0x4f37d3[_0x5b728a(0x254)]||{}};_0xacb7e1[_0x5b728a(0x221)](_0x4f37d3[_0x5b728a(0x204)],_0xacb7e1[_0x5b728a(0x203)])&&_0x4f37d3[_0x5b728a(0x212)]&&(_0x32279f[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x4f37d3[_0x5b728a(0x25a)]||_0xacb7e1[_0x5b728a(0x1e1)],_0x32279f[TestFrameworkConstants[_0x5b728a(0x287)]]=_0x4f37d3[_0x5b728a(0x277)]||'',_0x32279f[TestFrameworkConstants[_0x5b728a(0x1c7)]]=_0x4f37d3['failure']);const _0x467623=TestInfo['getTestDetails'](_0x2af008)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x46c6fb=_0xacb7e1[_0x5b728a(0x239)](getManualUploadLogs,_0x467623,_0x374322[_0x5b728a(0x1cf)]()['get'](_0x2af008)[TestFrameworkConstants[_0x5b728a(0x225)]]);if(_0xacb7e1['ovVof'](_0x46c6fb['length'],0x0)){const _0x405c9a=_0x32279f[TestFrameworkConstants[_0x5b728a(0x1d0)]]||[];_0x32279f[TestFrameworkConstants[_0x5b728a(0x1d0)]]=[..._0x405c9a,..._0x46c6fb];}_0x4f37d3[_0x5b728a(0x1f8)]&&_0xacb7e1[_0x5b728a(0x280)](_0x4f37d3['hooks'][_0x5b728a(0x272)],0x0)&&(_0x32279f[TestFrameworkConstants[_0x5b728a(0x200)]]=_0x4f37d3[_0x5b728a(0x1f8)]);TestInfo[_0x5b728a(0x1d5)](_0x2af008,_0x32279f),logger[_0x5b728a(0x238)](_0x5b728a(0x1c5)+_0x4f37d3['name']+_0x5b728a(0x1fa)+_0x4f37d3[_0x5b728a(0x204)]);const _0x6e7980={};return _0x6e7980[_0x2af008]=_0x32279f,_0x6e7980;}async[a78_0x58e6f6(0x22a)](_0x4d9072,_0x48865a,_0x468437,_0x22304e){const _0xaa84a8=a78_0x58e6f6,_0x933c40={'FLMQU':_0xaa84a8(0x1f7),'Fsgfo':function(_0x46bd74){return _0x46bd74();},'QsNPN':function(_0x1596e1,_0x5330d9){return _0x1596e1 in _0x5330d9;},'idxta':function(_0x46d26e,_0x2442b6){return _0x46d26e in _0x2442b6;},'sxMMN':function(_0x9cd260,_0x3aa30a){return _0x9cd260===_0x3aa30a;},'LSbYj':function(_0x1b2cbc,_0x1d242c){return _0x1b2cbc>_0x1d242c;},'ykSQI':function(_0x2f8852,_0x5dbcb5){return _0x2f8852===_0x5dbcb5;},'nsJnA':_0xaa84a8(0x1ef),'TacHU':'UnhandledError','uOKUu':_0xaa84a8(0x1ce),'Qvyxg':function(_0x3f9630,_0x166102){return _0x3f9630!==_0x166102;}},{hookData:_0x5f065b}=_0x22304e;if(!_0x5f065b)return logger[_0xaa84a8(0x238)](_0x933c40[_0xaa84a8(0x278)]),{};const _0x39bf22=_0x5f065b[_0xaa84a8(0x22f)]||_0x933c40['Fsgfo'](uuidv4),_0x40d03b=_0x5f065b[_0xaa84a8(0x222)],_0x94dc76=_0x48865a['toString']()[_0xaa84a8(0x246)]('.')[0x1],_0x1abc21=TestInfo[_0xaa84a8(0x1d4)](_0x40d03b)[TestFrameworkConstants[_0xaa84a8(0x24a)]]||{},_0x225d4b=_0x4d9072[_0xaa84a8(0x1cf)]()[_0xaa84a8(0x1e4)](_0x40d03b);if(!_0x225d4b)return logger[_0xaa84a8(0x238)](_0xaa84a8(0x1e2)+_0x40d03b+_0xaa84a8(0x283)),this['storePendingHook'](_0x4d9072,_0x40d03b,_0x48865a,_0x468437,_0x22304e),{};let _0x26df28=_0x225d4b[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x26df28&&(_0x26df28={});!_0x933c40[_0xaa84a8(0x22c)](_0x94dc76,_0x26df28)&&(_0x26df28[_0x94dc76]=[]);let _0x59319d=_0x225d4b[TestFrameworkConstants[_0xaa84a8(0x200)]];!_0x59319d&&(_0x59319d={});!_0x933c40[_0xaa84a8(0x206)](_0x94dc76,_0x59319d)&&(_0x59319d[_0x94dc76]=[]);const _0x5c5297={[TestFrameworkConstants[_0xaa84a8(0x230)]]:_0x26df28,[TestFrameworkConstants[_0xaa84a8(0x200)]]:_0x59319d},_0x1b29eb={};_0x1b29eb[_0x40d03b]=_0x5c5297;const _0xae5940=_0x1b29eb;if(_0x933c40[_0xaa84a8(0x1f4)](_0x468437,HookState[_0xaa84a8(0x250)])){const _0x1fa588={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x39bf22,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0xaa84a8(0x27f)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x5f065b[_0xaa84a8(0x215)],[TestFrameworkConstants[_0xaa84a8(0x21a)]]:[],[TestFrameworkConstants[_0xaa84a8(0x273)]]:_0x5f065b[_0xaa84a8(0x275)],[TestFrameworkConstants[_0xaa84a8(0x24a)]]:_0x1abc21};_0x1fa588['key']=_0x94dc76;const _0x4a0eac=_0x1fa588;_0x26df28[_0x94dc76][_0xaa84a8(0x270)](_0x4a0eac),_0xae5940[_0x40d03b][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x94dc76,logger[_0xaa84a8(0x238)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x94dc76+_0xaa84a8(0x21f)+_0x4a0eac+_0xaa84a8(0x1d1)+_0x22304e);}else{if(_0x933c40[_0xaa84a8(0x1f4)](_0x468437,HookState[_0xaa84a8(0x1fd)])){const _0x4cb5f9=_0x5f065b['result'],_0x1034bb=_0x26df28[_0x94dc76]||[];logger[_0xaa84a8(0x238)](_0xaa84a8(0x25c)+_0x1034bb+'\x20and\x20args\x20=\x20'+_0x22304e);if(_0x933c40[_0xaa84a8(0x22b)](_0x1034bb[_0xaa84a8(0x272)],0x0)){const _0x26ec92=_0x1034bb[_0xaa84a8(0x1ec)]();_0x933c40[_0xaa84a8(0x25d)](_0x5f065b['result'],_0x933c40['nsJnA'])&&_0x5f065b[_0xaa84a8(0x24e)]?(_0x26ec92[TestFrameworkConstants[_0xaa84a8(0x223)]]=_0x5f065b[_0xaa84a8(0x25a)]||_0x933c40[_0xaa84a8(0x1ee)],_0x26ec92[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x5f065b[_0xaa84a8(0x277)]||'',_0x26ec92[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x5f065b[_0xaa84a8(0x24e)]):_0x26ec92[TestFrameworkConstants[_0xaa84a8(0x252)]]=_0x933c40[_0xaa84a8(0x201)];_0x933c40['Qvyxg'](_0x4cb5f9,TestFrameworkConstants[_0xaa84a8(0x27f)])&&(_0x26ec92[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x4cb5f9);_0x26ec92[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x5f065b['finished_at']||new Date()['toISOString'](),_0x26ec92[TestFrameworkConstants[_0xaa84a8(0x24a)]]=_0x1abc21;const _0x5e6856=_0x26ec92[TestFrameworkConstants['KEY_HOOK_ID']];!_0x59319d[_0x94dc76]&&(_0x59319d[_0x94dc76]=[]),_0x59319d[_0x94dc76]['push'](_0x26ec92),_0xae5940[_0x40d03b][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x94dc76;}}}return logger[_0xaa84a8(0x238)](_0xaa84a8(0x248)+_0x5f065b[_0xaa84a8(0x275)]+_0xaa84a8(0x1cc)+_0x39bf22+_0xaa84a8(0x1e9)+_0x40d03b),_0xae5940;}[a78_0x58e6f6(0x1db)](_0x3e8585){const _0x1d9127=a78_0x58e6f6,_0x433817={};_0x433817[_0x1d9127(0x1d2)]=_0x1d9127(0x1cd);const _0x2d1af1=_0x433817;try{const _0x5a5f13=_0x3e8585['test']?_0x3e8585[_0x1d9127(0x208)]['id']:_0x3e8585[_0x1d9127(0x236)][_0x1d9127(0x222)],_0x3a6d85=_0x3e8585[_0x1d9127(0x228)],_0x34ce63=_0x3a6d85[_0x1d9127(0x1ca)](),_0x1f66ec=_0x3a6d85[_0x1d9127(0x1cf)]()['get'](_0x5a5f13);if(!_0x1f66ec)return logger[_0x1d9127(0x238)](_0x1d9127(0x258)+_0x5a5f13),{};logger[_0x1d9127(0x238)](_0x1d9127(0x210)+_0x5a5f13);const {[TestFrameworkConstants[_0x1d9127(0x266)]]:_0x2cb248='',[TestFrameworkConstants[_0x1d9127(0x1c6)]]:_0x45444b='',[TestFrameworkConstants[_0x1d9127(0x23f)]]:_0x1d0525='',[TestFrameworkConstants[_0x1d9127(0x21e)]]:_0x1c0506=''}=_0x1f66ec,_0x218e03=_0x3a6d85['getCurrentTestState']()[_0x1d9127(0x1fe)]()[_0x1d9127(0x246)]('.')[0x1],_0x592890=_0x3a6d85[_0x1d9127(0x1c9)]()[_0x1d9127(0x1fe)]()['split']('.')[0x1],_0x5da079=global?.[_0x1d9127(0x255)]??0x0,_0x5e903c=_0x3a6d85[_0x1d9127(0x20d)](),_0x1e1f9f=Buffer['from'](JSON[_0x1d9127(0x23d)](_0x1f66ec))[_0x1d9127(0x1fe)](_0x2d1af1[_0x1d9127(0x1d2)]),_0x413237={'hash':_0x34ce63[_0x1d9127(0x209)](),'threadId':_0x34ce63[_0x1d9127(0x263)]()['toString'](),'processId':_0x34ce63[_0x1d9127(0x25e)]()[_0x1d9127(0x1fe)]()},_0x5b9b73={};_0x5b9b73['platformIndex']=_0x5da079,_0x5b9b73['testFrameworkName']=_0x2cb248,_0x5b9b73['testFrameworkVersion']=_0x45444b,_0x5b9b73[_0x1d9127(0x26d)]=_0x218e03,_0x5b9b73[_0x1d9127(0x276)]=_0x592890,_0x5b9b73[_0x1d9127(0x20e)]=_0x1d0525,_0x5b9b73['endedAt']=_0x1c0506,_0x5b9b73[_0x1d9127(0x22f)]=_0x5e903c,_0x5b9b73['eventJson']=_0x1e1f9f,_0x5b9b73[_0x1d9127(0x21d)]=_0x413237;const _0x2bc89c=_0x5b9b73;return logger[_0x1d9127(0x238)](_0x1d9127(0x274)+_0x5a5f13+_0x1d9127(0x25b)+_0x218e03+_0x1d9127(0x1d6)+_0x592890),_0x2bc89c;}catch(_0x6dc987){return logger['error'](_0x1d9127(0x23b)+util[_0x1d9127(0x286)](_0x6dc987)),{};}}async[a78_0x58e6f6(0x1cb)](_0x694fc4,_0x3273aa,_0x17612a){const _0x10ab71=a78_0x58e6f6,_0x429095={'eDqas':function(_0x5ca426,_0xa5725b,_0x465703){return _0x5ca426(_0xa5725b,_0x465703);},'JAEqc':function(_0x1f37f0,_0x4fe500){return _0x1f37f0===_0x4fe500;},'QcaQt':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','jnKIA':function(_0x2e7a71,_0x21719b){return _0x2e7a71/_0x21719b;},'azdlF':function(_0x387feb,_0x33e50b){return _0x387feb<_0x33e50b;},'iOEGq':function(_0x19d691,_0x156195){return _0x19d691*_0x156195;},'HynWT':function(_0x53488b,_0x15ff6b){return _0x53488b+_0x15ff6b;},'jlfqF':function(_0x8d016a,_0x4b8e95){return _0x8d016a+_0x4b8e95;},'oMQBR':_0x10ab71(0x253)};try{const _0x5db9c4=_0x17612a[_0x10ab71(0x1dc)],_0x136620=_0x694fc4['getAllData']()['get'](_0x5db9c4),{[TestFrameworkConstants[_0x10ab71(0x266)]]:_0x302926='',[TestFrameworkConstants[_0x10ab71(0x1c6)]]:_0x1549fa=''}=_0x136620,_0x5cc7b3=TestInfo[_0x10ab71(0x285)](_0x5db9c4),_0x4e3ea5=TestInfo[_0x10ab71(0x1d4)](_0x5db9c4)[TestFrameworkConstants[_0x10ab71(0x20f)]]||{},_0x220673=_0x429095[_0x10ab71(0x219)](getMediaArtifactsLogs,_0x4e3ea5,_0x694fc4[_0x10ab71(0x1cf)]()[_0x10ab71(0x1e4)](_0x5db9c4)[TestFrameworkConstants[_0x10ab71(0x225)]]),_0x516d78=(_0x5cc7b3||[])[_0x10ab71(0x207)](_0x220673||[]);if(!_0x516d78||_0x429095[_0x10ab71(0x20a)](_0x516d78[_0x10ab71(0x272)],0x0)){logger[_0x10ab71(0x238)](_0x429095[_0x10ab71(0x234)]);return;}const _0x127058=0x28,_0x38ae6b=Math[_0x10ab71(0x262)](_0x429095[_0x10ab71(0x23c)](_0x516d78[_0x10ab71(0x272)],_0x127058));for(let _0x57a15b=0x0;_0x429095['azdlF'](_0x57a15b,_0x38ae6b);_0x57a15b++){const _0x59a78b=_0x429095[_0x10ab71(0x284)](_0x57a15b,_0x127058),_0x33a722=_0x429095['HynWT'](_0x59a78b,_0x127058),_0x20182e=_0x516d78['slice'](_0x59a78b,_0x33a722),_0x430cac={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x20182e,'testFrameworkName':_0x302926,'testFrameworkVersion':_0x1549fa,'testFrameworkState':_0x3273aa[_0x10ab71(0x1fe)]()[_0x10ab71(0x246)]('.')[0x1]};logger[_0x10ab71(0x238)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x5db9c4+_0x10ab71(0x1fb)+_0x429095[_0x10ab71(0x1d9)](_0x57a15b,0x1)+'/'+_0x38ae6b+_0x10ab71(0x227)+util[_0x10ab71(0x289)](_0x430cac));const _0x54c312=await GrpcClient[_0x10ab71(0x26e)]()[_0x10ab71(0x22d)](_0x430cac);logger[_0x10ab71(0x238)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x5db9c4+'\x20batch\x20'+_0x429095[_0x10ab71(0x1d9)](_0x57a15b,0x1)+'/'+_0x38ae6b+'\x20response='+util[_0x10ab71(0x289)](_0x54c312));}}catch(_0x1a8377){logger[_0x10ab71(0x281)](_0x10ab71(0x216)+util[_0x10ab71(0x286)](_0x1a8377));}logger['debug'](_0x429095[_0x10ab71(0x24c)]);}[a78_0x58e6f6(0x1e7)](_0x187610,_0x368338,_0x5f4097,_0x1db108,_0x1da4d9){const _0x1fe905=a78_0x58e6f6,_0xefd2d3={'testId':_0x368338,'testFrameworkState':_0x5f4097,'hookState':_0x1db108,'args':_0x1da4d9,'timestamp':new Date()[_0x1fe905(0x217)]()};_0x187610[_0x1fe905(0x241)](_0x368338,_0xefd2d3),logger['debug'](_0x1fe905(0x24f)+_0x368338+_0x1fe905(0x1e0)+_0x5f4097+_0x1fe905(0x1e6)+_0x1db108);}async[a78_0x58e6f6(0x1f3)](_0x4e78e7,_0x3cb03d){const _0xe32581=a78_0x58e6f6,_0x45e723={};_0x45e723['mAMSH']=function(_0x35260a,_0x5cfb25){return _0x35260a>_0x5cfb25;};const _0xe8dc8c=_0x45e723;if(!_0x4e78e7['hasPendingHooks'](_0x3cb03d))return;const _0xb69a07=_0x4e78e7[_0xe32581(0x232)](_0x3cb03d);logger[_0xe32581(0x238)](_0xe32581(0x245)+_0xb69a07[_0xe32581(0x272)]+_0xe32581(0x27e)+_0x3cb03d);for(const _0x29e415 of _0xb69a07){try{const _0x59d603=await this[_0xe32581(0x22a)](_0x4e78e7,_0x29e415[_0xe32581(0x26d)],_0x29e415['hookState'],_0x29e415[_0xe32581(0x211)]);_0x59d603&&_0xe8dc8c['mAMSH'](Object['keys'](_0x59d603)[_0xe32581(0x272)],0x0)&&_0x4e78e7['addMultipleEntries'](_0x59d603),await this['runHooks'](_0x4e78e7,_0x29e415[_0xe32581(0x26d)],_0x29e415[_0xe32581(0x276)],_0x29e415[_0xe32581(0x211)]);}catch(_0x578999){logger[_0xe32581(0x281)](_0xe32581(0x229)+_0x3cb03d+',\x20error:\x20'+_0x578999);}}_0x4e78e7[_0xe32581(0x26c)](_0x3cb03d),logger[_0xe32581(0x238)](_0xe32581(0x1e3)+_0x3cb03d);}}function a78_0xfe64(){const _0x10929b=['KEY_TEST_SCOPES','KEY_HOOK_RESULT','Cucumber\x20log\x20created\x20event','meta','browserstackPlatformIndex','scopes','UNUPv','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','../grpcClient','failure_type','\x20testState:\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','ykSQI','getProcessId','finishedAt','../state/hookState.js','KEY_TEST_TAGS','ceil','getThreadId','KEY_TEST_RESULT_AT','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_TEST_FRAMEWORK_NAME','NONE','../instances/testFrameworkInstance.js','CucumberTestFramework','JntHF','KEY_TEST_LOGS','removePendingHooks','testFrameworkState','getInstance','trackCucumberInstance:\x20saved\x20instance\x20contextId=','push','3702664RlvqBp','length','KEY_HOOK_NAME','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','hook_type','hookState','failure_reason','FLMQU','sbAXx','4148076KmjEcr','trackEvent:\x20unsupported\x20testFrameworkState=','\x20&\x20hookState=','KEY_TEST_CODE','\x20pending\x20hooks\x20for\x20testId:\x20','DEFAULT_HOOK_RESULT','ovVof','error','getTrackedInstance',',\x20storing\x20as\x20pending\x20hook','iOEGq','readLogObjects','format','KEY_TEST_FAILURE_REASON','addMultipleEntries','inspect','TEST','Updated\x20cucumber\x20test\x20result:\x20','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_FAILURE','78597cWDSFe','getCurrentHookState','getContext','sendLogCreatedEvent','\x20with\x20id\x20','base64','passed','getAllData','KEY_LOGS','\x20\x20and\x20args\x20=\x20','QFtQH','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','getTestDetails','setTestDetails','\x20hookState:\x20','94wpZnAh','name','jlfqF','code','createTestFrameworkEventPayload','testUUID','rerun_name','KEY_AUTOMATE_SESSION_NAME','Zzcto',',\x20state:\x20','KunXA','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','get',',\x20state=',',\x20hookState:\x20','storePendingHook','trackCucumberInstance','\x20for\x20test:\x20','INIT_TEST','MfIbj','pop','KEY_TEST_NAME','TacHU','failed','resolveInstance','BhCJQ','ZtRMR','processPendingHooks','sxMMN','KEY_TEST_LOCATION','\x20target=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','hooks','KEY_TEST_SCOPE','\x20with\x20result:\x20','\x20batch\x20','util','POST','toString','xtbEd','KEY_HOOKS_FINISHED','uOKUu','48XGIftJ','QkvLi','result','matchHookRegex','idxta','concat','test','getId','JAEqc','parseCucumberTest','84Iuvhsw','getRef','startedAt','KEY_TEST_ATTACHMENTS','createTestFrameworkEventPayload\x20testId:\x20','args','failure','1377335RguLRb','3882TDBGmf','started_at','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','toISOString','971505GlmMgT','eDqas','KEY_HOOK_LOGS','getTestUUID','unknown','executionContext','KEY_TEST_ENDED_AT','\x20&\x20hook\x20=\x20','trackEvent','nTQgn','test_run_id','KEY_HOOK_FAILURE_TYPE','tags','KEY_TEST_UUID','\x20with\x20UUID:\x20','\x20payload=','instance','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','trackHookEvent','LSbYj','QsNPN','logCreatedEvent','UnhandledError','uuid','KEY_HOOKS_STARTED','getTestFrameworks','getPendingHooks','../../../helpers/classLogger.js','QcaQt','../state/testFrameworkState.js','hookData','5128250vLYdzr','debug','PFzFi','KEY_TEST_FILE_PATH','Error\x20in\x20createTestFrameworkEventPayload:\x20','jnKIA','stringify','KEY_TEST_META','KEY_TEST_STARTED_AT','ZTzde','addPendingHook','getCurrentInstanceName','exports','testData','Processing\x20','split','file_name','Tracked\x20cucumber\x20hook\x20event:\x20','getTestFrameworksVersions','KEY_CUSTOM_TAGS','runHooks','oMQBR','KEY_TEST_RERUN_NAME','failure_data','Stored\x20pending\x20hook\x20for\x20testId:\x20','PRE'];a78_0xfe64=function(){return _0x10929b;};return a78_0xfe64();}module[a78_0x58e6f6(0x243)]=CucumberTestFramework;
1
+ function a90_0x7336(_0x1aed41,_0x5ab991){const _0x74141c=a90_0x7414();return a90_0x7336=function(_0x733601,_0x20ccd0){_0x733601=_0x733601-0xcc;let _0x311831=_0x74141c[_0x733601];return _0x311831;},a90_0x7336(_0x1aed41,_0x5ab991);}function a90_0x7414(){const _0x4f446f=['KEY_HOOK_LAST_STARTED','exports','getProcessId','KEY_HOOK_FAILURE','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','EIOgt','../grpcClient','testUUID','3954UDdHst',',\x20error:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_RERUN_NAME','KEY_TEST_FRAMEWORK_NAME','failure','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','gRIdL','Pxbgd','KEY_TEST_NAME','./constants/testFrameworkConstants.js','LOG_REPORT','storePendingHook','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','get',',\x20state=','endedAt',',\x20state:\x20','KEY_LOGS','KEY_CUSTOM_TAGS','util','\x20testState:\x20','518HdcfzG','yuDDu','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_LAST_FINISHED','\x20with\x20result:\x20','../instances/testFrameworkInstance.js','meta','tags','KEY_HOOK_RESULT','parseCucumberTest','push','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uFqNL','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','finishedAt','KEY_TEST_ID','getCurrentInstanceName','ajljj','NONE','getInstance','PRE','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_ENDED_AT',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','parseCucumberTestResult','YPUmb','dBDgW','2843814Octykp','KEY_TEST_META','POST','debug','../../../helpers/helper.js','uuid','vlJmV','failure_type','testData','started_at','./testFramework','addMultipleEntries','rZDsn','WSPhR','browserstackPlatformIndex','hookState','createTestFrameworkEventPayload','toISOString','logCreatedEvent','elsiC','DEFAULT_TEST_RESULT','unknown','KEY_HOOKS_FINISHED','KEY_HOOK_LOGS','eventJson','length','hooks','Feplw','finished_at','YvGpm','21ekVvIQ','result','CucumberTestFramework','1239641jIJDMI','urwFK','KEY_TEST_LOCATION','processPendingHooks','deFij','setTrackedInstance','\x20response=','10llzxpq','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','failed','KEY_TEST_RESULT','testFrameworkName','customRerunParam','KEY_TEST_FAILURE_REASON','hook_type','KEY_AUTOMATE_SESSION_NAME','name','\x20hookState:\x20','../instances/trackedInstance.js','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE','KEY_TEST_ATTACHMENTS','getCurrentTestState','KEY_HOOK_NAME','KEY_TEST_FILE_PATH','getThreadId','wSsxJ','getTrackedInstance','test_run_id','startedAt','inspect','596720MxLXFW','\x20with\x20UUID:\x20','Cucumber\x20log\x20created\x20event','QUbEe','getTestFrameworksVersions','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackCucumberInstance','sendLogCreatedEvent','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','JAvBC','Bwqir','getTestUUID','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_ID','KEY_TEST_UUID','trackHookEvent','CTogW','../../../helpers/classLogger.js','pop','ceil','code','passed','KEY_EVENT_STARTED_AT','location','KEY_TEST_STARTED_AT','runHooks','KEY_TEST_LOGS','SnobD','args','KEY_TEST_FAILURE_TYPE','body','key','\x20and\x20args\x20=\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','split','UnhandledError','hookData','from','sXOFd','7864365AxkhPn','../state/hookState.js','test','file_name','toString','812656gcXoUM','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','failure_reason','kXqsB','concat','resolveInstance','getAllData','trackEvent','rmPVe','getTestDetails','failure_data','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','7353207eCATHT','Stored\x20pending\x20hook\x20for\x20testId:\x20','vpMnZ','getRef','removePendingHooks','Parsed\x20cucumber\x20test:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','LeoDl','Tracked\x20cucumber\x20hook\x20event:\x20','testFrameworkVersion','trackCucumberInstance:\x20saved\x20instance\x20contextId=','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','lOFBB','\x20payload=','TEST','\x20&\x20hookState=',',\x20hookState:\x20','MgaoO','\x20target=','\x20&\x20hook\x20=\x20','instance','oraCA','error','keys','addPendingHook','KEY_HOOKS_STARTED','setTestDetails','executionContext','format','KEY_TEST_CODE','rerun_name','matchHookRegex','trackEvent:\x20unsupported\x20testFrameworkState=','../cliUtils.js','\x20pending\x20hooks\x20for\x20testId:\x20','../TestInfo.js','ykchn'];a90_0x7414=function(){return _0x4f446f;};return a90_0x7414();}const a90_0x4133ae=a90_0x7336;(function(_0x47bc63,_0x2dd772){const _0x23776d=a90_0x7336,_0x3e9c67=_0x47bc63();while(!![]){try{const _0x1092c7=parseInt(_0x23776d(0x138))/0x1+-parseInt(_0x23776d(0xfb))/0x2*(-parseInt(_0x23776d(0xe5))/0x3)+-parseInt(_0x23776d(0x157))/0x4+parseInt(_0x23776d(0x17e))/0x5+parseInt(_0x23776d(0x117))/0x6*(-parseInt(_0x23776d(0x135))/0x7)+parseInt(_0x23776d(0x183))/0x8+parseInt(_0x23776d(0x18f))/0x9*(-parseInt(_0x23776d(0x13f))/0xa);if(_0x1092c7===_0x2dd772)break;else _0x3e9c67['push'](_0x3e9c67['shift']());}catch(_0x23ae22){_0x3e9c67['push'](_0x3e9c67['shift']());}}}(a90_0x7414,0xd3c14));const TestFramework=require(a90_0x4133ae(0x121)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a90_0x4133ae(0x17f)),{createClassLogger}=require(a90_0x4133ae(0x168)),TestFrameworkInstance=require(a90_0x4133ae(0x100)),CLIUtils=require(a90_0x4133ae(0xd9)),TrackedInstance=require(a90_0x4133ae(0x14a)),TestFrameworkConstants=require(a90_0x4133ae(0xef)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x4133ae(0x11b)),logger=createClassLogger(a90_0x4133ae(0x137)),{v4:uuidv4}=require(a90_0x4133ae(0x11c)),util=require(a90_0x4133ae(0xf9)),TestInfo=require(a90_0x4133ae(0xdb)),GrpcClient=require(a90_0x4133ae(0xe3));class CucumberTestFramework extends TestFramework{constructor(_0x124c9f,_0x20cbef,_0x55ab6b){super(_0x124c9f,_0x20cbef,_0x55ab6b);}async['trackEvent'](_0x4d5dc7,_0x5ae711,_0x14f603={}){const _0x3dab32=a90_0x4133ae,_0x54e792={};_0x54e792[_0x3dab32(0x172)]=_0x3dab32(0x140),_0x54e792['wSsxJ']=function(_0x55736c,_0x18a1e0){return _0x55736c===_0x18a1e0;},_0x54e792[_0x3dab32(0x161)]=function(_0x2958b4,_0x2fa8ae){return _0x2958b4===_0x2fa8ae;},_0x54e792[_0x3dab32(0x115)]=_0x3dab32(0x178);const _0x1ce56b=_0x54e792;await super[_0x3dab32(0x18a)](_0x4d5dc7,_0x5ae711,_0x14f603);const _0x23b429=this['resolveInstance'](_0x4d5dc7,_0x5ae711,_0x14f603);if(!_0x23b429){logger['debug'](_0x1ce56b[_0x3dab32(0x172)]);return;}try{let _0x4786dc,_0x588b71;switch(_0x4d5dc7){case TestFrameworkState[_0x3dab32(0x19d)]:_0x4786dc=_0x14f603['test'],_0x588b71=TestInfo[_0x3dab32(0x162)](_0x4786dc['id']);if(_0x1ce56b[_0x3dab32(0x152)](_0x5ae711,HookState[_0x3dab32(0x10f)])){logger[_0x3dab32(0x11a)](_0x3dab32(0xf2)+_0x4786dc['id']);const _0x1ecd57={};_0x1ecd57[_0x3dab32(0xe4)]=_0x588b71,_0x1ecd57['testData']=_0x4786dc,_0x23b429['addMultipleEntries'](this[_0x3dab32(0x104)](_0x1ecd57)),logger[_0x3dab32(0x11a)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x4786dc['id']),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}else{if(_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])){const _0xb2090={};_0xb2090['testUUID']=_0x588b71,_0xb2090[_0x3dab32(0x11f)]=_0x4786dc,_0x23b429[_0x3dab32(0x122)](this['parseCucumberTestResult'](_0xb2090)),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}}break;case TestFrameworkState[_0x3dab32(0xf0)]:_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])&&await this[_0x3dab32(0x15e)](_0x23b429,_0x4d5dc7,_0x14f603);break;default:if(CLIUtils[_0x3dab32(0xd7)](_0x4d5dc7['toString']()[_0x3dab32(0x179)]('.')[0x1])){const _0x3b8abe=await this[_0x3dab32(0x166)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);_0x23b429['addMultipleEntries'](_0x3b8abe);}else logger[_0x3dab32(0x11a)](_0x3dab32(0xd8)+_0x4d5dc7+_0x3dab32(0x19e)+_0x5ae711);break;}}catch(_0x46b248){logger[_0x3dab32(0xce)](util[_0x3dab32(0xd4)](_0x1ce56b[_0x3dab32(0x115)],_0x4d5dc7,_0x5ae711,_0x14f603[_0x3dab32(0x130)],_0x46b248));}_0x14f603[_0x3dab32(0xcc)]=_0x23b429,await this[_0x3dab32(0x170)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);}[a90_0x4133ae(0x188)](_0xd965e0,_0x9e257d,_0x2b0645={}){const _0x1b117b=a90_0x4133ae,_0x29c0ba={};_0x29c0ba[_0x1b117b(0xec)]=function(_0xe9c43d,_0x12b39e){return _0xe9c43d===_0x12b39e;},_0x29c0ba[_0x1b117b(0x15a)]=function(_0x503744,_0x4e4b5a){return _0x503744===_0x4e4b5a;};const _0xb41c6=_0x29c0ba;let _0x4f5026=null;return(_0xb41c6[_0x1b117b(0xec)](_0xd965e0,TestFrameworkState['INIT_TEST'])||_0xb41c6[_0x1b117b(0x15a)](_0xd965e0,TestFrameworkState[_0x1b117b(0x10d)]))&&this[_0x1b117b(0x15d)](_0xd965e0,_0x2b0645),_0x4f5026=TestFramework[_0x1b117b(0x153)](),_0x4f5026;}[a90_0x4133ae(0x15d)](_0x1beeee,_0x4539c4){const _0x2a1579=a90_0x4133ae,_0x529da9=CLIUtils[_0x2a1579(0x10b)](),_0x44381c=TrackedInstance['createContext'](_0x529da9);let _0x364c1a=null;logger['debug'](_0x2a1579(0x184)+_0x529da9+_0x2a1579(0xf4)+_0x1beeee),_0x364c1a=new TestFrameworkInstance(_0x44381c,this['getTestFrameworks'](),this[_0x2a1579(0x15b)](),_0x1beeee,HookState[_0x2a1579(0x10d)]),TestFramework[_0x2a1579(0x13d)](_0x44381c,_0x364c1a),logger[_0x2a1579(0x11a)](_0x2a1579(0x199)+_0x44381c['getId']()+_0x2a1579(0x1a1)+_0x529da9);}[a90_0x4133ae(0x104)](_0x52b040){const _0x3d4578=a90_0x4133ae,_0x500b0d={};_0x500b0d[_0x3d4578(0x134)]=_0x3d4578(0x195);const _0x1814cb=_0x500b0d,{testUUID:_0xb4b7b0,testData:_0x5dfee9}=_0x52b040;if(!_0x5dfee9||!_0x5dfee9['uuid'])return logger[_0x3d4578(0x11a)](_0x1814cb[_0x3d4578(0x134)]),{};const _0x491414=_0xb4b7b0,_0x3313f7=_0x5dfee9['uuid'],_0x2eb21b=this['getTestFrameworks']()[0x0],_0x4a9ac6=this[_0x3d4578(0x15b)](),_0x2d3629={[TestFrameworkConstants[_0x3d4578(0xe9)]]:_0x2eb21b,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x4a9ac6[_0x2eb21b],[TestFrameworkConstants[_0x3d4578(0x171)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x3d4578(0xd1)]]:{},[TestFrameworkConstants[_0x3d4578(0x165)]]:_0x491414,[TestFrameworkConstants[_0x3d4578(0x142)]]:TestFrameworkConstants[_0x3d4578(0x12b)],[TestFrameworkConstants[_0x3d4578(0x147)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x150)]]:_0x5dfee9[_0x3d4578(0x181)]||'',[TestFrameworkConstants[_0x3d4578(0x10a)]]:_0x3313f7,[TestFrameworkConstants[_0x3d4578(0xee)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x13a)]]:_0x5dfee9[_0x3d4578(0x16e)]||'',[TestFrameworkConstants[_0x3d4578(0xd5)]]:_0x5dfee9[_0x3d4578(0x175)]?.[_0x3d4578(0x16b)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5dfee9[_0x3d4578(0x102)]||[],[TestFrameworkConstants[_0x3d4578(0x16f)]]:_0x5dfee9[_0x3d4578(0x155)]||new Date()[_0x3d4578(0x128)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x5dfee9['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x5dfee9['scopes']||[],[TestFrameworkConstants[_0x3d4578(0xe8)]]:_0x5dfee9[_0x3d4578(0x144)]?.[_0x3d4578(0xd6)]||_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0xf8)]]:{},[TestFrameworkConstants[_0x3d4578(0x118)]]:_0x5dfee9[_0x3d4578(0x101)]||{}};TestInfo[_0x3d4578(0xd2)](_0x3313f7,_0x2d3629),logger[_0x3d4578(0x11a)](_0x3d4578(0x194)+_0x5dfee9[_0x3d4578(0x148)]+_0x3d4578(0x158)+_0x491414);const _0x25aa3d={};return _0x25aa3d[_0x3313f7]=_0x2d3629,_0x25aa3d;}[a90_0x4133ae(0x114)](_0x1899db){const _0x114f82=a90_0x4133ae,_0x408dd0={'ajljj':_0x114f82(0x15f),'jnzIs':_0x114f82(0x12c),'LeoDl':function(_0x2de282,_0xcd717c){return _0x2de282===_0xcd717c;},'JAvBC':_0x114f82(0x141),'SADNA':'UnhandledError','rmPVe':function(_0x5b008f,_0x274052,_0xdcb50b){return _0x5b008f(_0x274052,_0xdcb50b);},'elsiC':function(_0x35a131,_0x4c4019){return _0x35a131>_0x4c4019;}},{testUUID:_0x32004a,testData:_0x1db124}=_0x1899db;if(!_0x1db124||!_0x1db124['uuid'])return logger['debug'](_0x408dd0[_0x114f82(0x10c)]),{};const _0x3ff235=this[_0x114f82(0x188)](TestFrameworkState[_0x114f82(0x19d)],HookState[_0x114f82(0x119)]),_0x17757a=_0x1db124['uuid'],_0xf21c7a=TestInfo['getTestDetails'](_0x17757a)||{},_0x121041=_0xf21c7a?_0xf21c7a[TestFrameworkConstants[_0x114f82(0xf8)]]||{}:{},_0x107649={..._0xf21c7a,[TestFrameworkConstants[_0x114f82(0x142)]]:_0x1db124[_0x114f82(0x136)]||_0x408dd0['jnzIs'],[TestFrameworkConstants[_0x114f82(0x111)]]:_0x1db124[_0x114f82(0x109)]||new Date()[_0x114f82(0x128)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x121041,[TestFrameworkConstants[_0x114f82(0xf7)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x1db124[_0x114f82(0x101)]||{}};_0x408dd0[_0x114f82(0x196)](_0x1db124['result'],_0x408dd0[_0x114f82(0x160)])&&_0x1db124[_0x114f82(0xea)]&&(_0x107649[TestFrameworkConstants[_0x114f82(0x174)]]=_0x1db124[_0x114f82(0x11e)]||_0x408dd0['SADNA'],_0x107649[TestFrameworkConstants[_0x114f82(0x145)]]=_0x1db124['failure_reason']||'',_0x107649[TestFrameworkConstants[_0x114f82(0x14c)]]=_0x1db124[_0x114f82(0xea)]);const _0xd05976=TestInfo[_0x114f82(0x18c)](_0x17757a)[TestFrameworkConstants[_0x114f82(0x14d)]]||{},_0x3621b6=_0x408dd0[_0x114f82(0x18b)](getManualUploadLogs,_0xd05976,_0x3ff235[_0x114f82(0x189)]()[_0x114f82(0xf3)](_0x17757a)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x408dd0[_0x114f82(0x12a)](_0x3621b6[_0x114f82(0x130)],0x0)){const _0x1cddcb=_0x107649[TestFrameworkConstants['KEY_LOGS']]||[];_0x107649[TestFrameworkConstants[_0x114f82(0xf7)]]=[..._0x1cddcb,..._0x3621b6];}_0x1db124[_0x114f82(0x131)]&&_0x408dd0[_0x114f82(0x12a)](_0x1db124['hooks'][_0x114f82(0x130)],0x0)&&(_0x107649[TestFrameworkConstants[_0x114f82(0x12d)]]=_0x1db124[_0x114f82(0x131)]);TestInfo[_0x114f82(0xd2)](_0x17757a,_0x107649),logger[_0x114f82(0x11a)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x1db124[_0x114f82(0x148)]+_0x114f82(0xff)+_0x1db124['result']);const _0x20fccd={};return _0x20fccd[_0x17757a]=_0x107649,_0x20fccd;}async[a90_0x4133ae(0x166)](_0x3d056b,_0x212774,_0x378f04,_0x398b84){const _0x2eae56=a90_0x4133ae,_0x574eb8={'Pxbgd':_0x2eae56(0x106),'oraCA':function(_0x1a7104){return _0x1a7104();},'lOFBB':function(_0x4add35,_0x16be11){return _0x4add35 in _0x16be11;},'uFqNL':function(_0x432d45,_0x2f05f2){return _0x432d45===_0x2f05f2;},'jpPLY':function(_0x322832,_0xa105a2){return _0x322832===_0xa105a2;},'WSPhR':function(_0x295209,_0x32c6a3){return _0x295209>_0x32c6a3;},'urwFK':function(_0x5ce54c,_0x3b7362){return _0x5ce54c===_0x3b7362;},'CTogW':_0x2eae56(0x141),'vlJmV':_0x2eae56(0x17a),'sXOFd':_0x2eae56(0x16c),'Feplw':function(_0x2e8383,_0x577aab){return _0x2e8383!==_0x577aab;}},{hookData:_0x41d0ad}=_0x398b84;if(!_0x41d0ad)return logger[_0x2eae56(0x11a)](_0x574eb8[_0x2eae56(0xed)]),{};const _0xd891b=_0x41d0ad[_0x2eae56(0x11c)]||_0x574eb8[_0x2eae56(0xcd)](uuidv4),_0x39cb5f=_0x41d0ad['test_run_id'],_0x14b098=_0x212774[_0x2eae56(0x182)]()['split']('.')[0x1],_0x393867=TestInfo['getTestDetails'](_0x39cb5f)[TestFrameworkConstants[_0x2eae56(0xf8)]]||{},_0x3151a2=_0x3d056b[_0x2eae56(0x189)]()[_0x2eae56(0xf3)](_0x39cb5f);if(!_0x3151a2)return logger['debug'](_0x2eae56(0x15c)+_0x39cb5f+_0x2eae56(0x112)),this[_0x2eae56(0xf1)](_0x3d056b,_0x39cb5f,_0x212774,_0x378f04,_0x398b84),{};let _0x4701b1=_0x3151a2[TestFrameworkConstants[_0x2eae56(0xd1)]];!_0x4701b1&&(_0x4701b1={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x4701b1)&&(_0x4701b1[_0x14b098]=[]);let _0x3ce3b4=_0x3151a2[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3ce3b4&&(_0x3ce3b4={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x3ce3b4)&&(_0x3ce3b4[_0x14b098]=[]);const _0x47ad11={[TestFrameworkConstants[_0x2eae56(0xd1)]]:_0x4701b1,[TestFrameworkConstants[_0x2eae56(0x12d)]]:_0x3ce3b4},_0x5dd226={};_0x5dd226[_0x39cb5f]=_0x47ad11;const _0x536432=_0x5dd226;if(_0x574eb8[_0x2eae56(0x107)](_0x378f04,HookState[_0x2eae56(0x10f)])){const _0x18282f={[TestFrameworkConstants[_0x2eae56(0x164)]]:_0xd891b,[TestFrameworkConstants[_0x2eae56(0x103)]]:TestFrameworkConstants[_0x2eae56(0x14b)],[TestFrameworkConstants[_0x2eae56(0x16d)]]:_0x41d0ad[_0x2eae56(0x120)],[TestFrameworkConstants[_0x2eae56(0x12e)]]:[],[TestFrameworkConstants[_0x2eae56(0x14f)]]:_0x41d0ad[_0x2eae56(0x146)],[TestFrameworkConstants[_0x2eae56(0xf8)]]:_0x393867};_0x18282f[_0x2eae56(0x176)]=_0x14b098;const _0x11807b=_0x18282f;_0x4701b1[_0x14b098][_0x2eae56(0x105)](_0x11807b),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xdd)]]=_0x14b098,logger[_0x2eae56(0x11a)](_0x2eae56(0xfd)+_0x14b098+_0x2eae56(0x1a2)+_0x11807b+'\x20\x20and\x20args\x20=\x20'+_0x398b84);}else{if(_0x574eb8['jpPLY'](_0x378f04,HookState['POST'])){const _0x25ca4d=_0x41d0ad['result'],_0x3e4c91=_0x4701b1[_0x14b098]||[];logger[_0x2eae56(0x11a)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3e4c91+_0x2eae56(0x177)+_0x398b84);if(_0x574eb8[_0x2eae56(0x124)](_0x3e4c91['length'],0x0)){const _0x2d54cc=_0x3e4c91[_0x2eae56(0x169)]();_0x574eb8[_0x2eae56(0x139)](_0x41d0ad[_0x2eae56(0x136)],_0x574eb8[_0x2eae56(0x167)])&&_0x41d0ad[_0x2eae56(0x18d)]?(_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x41d0ad[_0x2eae56(0x11e)]||_0x574eb8[_0x2eae56(0x11d)],_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x41d0ad[_0x2eae56(0x185)]||'',_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xe0)]]=_0x41d0ad[_0x2eae56(0x18d)]):_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x574eb8[_0x2eae56(0x17d)];_0x574eb8[_0x2eae56(0x132)](_0x25ca4d,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x25ca4d);_0x2d54cc[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x41d0ad[_0x2eae56(0x133)]||new Date()[_0x2eae56(0x128)](),_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xf8)]]=_0x393867;const _0x1a6c20=_0x2d54cc[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3ce3b4[_0x14b098]&&(_0x3ce3b4[_0x14b098]=[]),_0x3ce3b4[_0x14b098]['push'](_0x2d54cc),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xfe)]]=_0x14b098;}}}return logger[_0x2eae56(0x11a)](_0x2eae56(0x197)+_0x41d0ad[_0x2eae56(0x146)]+'\x20with\x20id\x20'+_0xd891b+'\x20for\x20test:\x20'+_0x39cb5f),_0x536432;}[a90_0x4133ae(0x127)](_0x320132){const _0x4b853a=a90_0x4133ae,_0x2b70a3={};_0x2b70a3['RxaBL']='base64';const _0x1d9f8e=_0x2b70a3;try{const _0xbbe367=_0x320132[_0x4b853a(0x180)]?_0x320132[_0x4b853a(0x180)]['id']:_0x320132[_0x4b853a(0x17b)][_0x4b853a(0x154)],_0x3e076a=_0x320132['instance'],_0x565983=_0x3e076a['getContext'](),_0x3b6608=_0x3e076a['getAllData']()[_0x4b853a(0xf3)](_0xbbe367);if(!_0x3b6608)return logger[_0x4b853a(0x11a)](_0x4b853a(0x19a)+_0xbbe367),{};logger[_0x4b853a(0x11a)]('createTestFrameworkEventPayload\x20testId:\x20'+_0xbbe367);const {[TestFrameworkConstants[_0x4b853a(0xe9)]]:_0x17d3cb='',[TestFrameworkConstants[_0x4b853a(0x163)]]:_0x108809='',[TestFrameworkConstants[_0x4b853a(0x16f)]]:_0x2f734a='',[TestFrameworkConstants[_0x4b853a(0x111)]]:_0x179d69=''}=_0x3b6608,_0x397f15=_0x3e076a[_0x4b853a(0x14e)]()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x87f937=_0x3e076a['getCurrentHookState']()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x2f9443=global?.[_0x4b853a(0x125)]??0x0,_0x4abbd1=_0x3e076a[_0x4b853a(0x192)](),_0x5d83d8=Buffer[_0x4b853a(0x17c)](JSON['stringify'](_0x3b6608))[_0x4b853a(0x182)](_0x1d9f8e['RxaBL']),_0x618fe3={'hash':_0x565983['getId'](),'threadId':_0x565983[_0x4b853a(0x151)]()['toString'](),'processId':_0x565983[_0x4b853a(0xdf)]()[_0x4b853a(0x182)]()},_0x160f5f={};_0x160f5f['platformIndex']=_0x2f9443,_0x160f5f[_0x4b853a(0x143)]=_0x17d3cb,_0x160f5f[_0x4b853a(0x198)]=_0x108809,_0x160f5f[_0x4b853a(0x113)]=_0x397f15,_0x160f5f[_0x4b853a(0x126)]=_0x87f937,_0x160f5f[_0x4b853a(0x155)]=_0x2f734a,_0x160f5f[_0x4b853a(0xf5)]=_0x179d69,_0x160f5f[_0x4b853a(0x11c)]=_0x4abbd1,_0x160f5f[_0x4b853a(0x12f)]=_0x5d83d8,_0x160f5f[_0x4b853a(0xd3)]=_0x618fe3;const _0x16cb27=_0x160f5f;return logger[_0x4b853a(0x11a)](_0x4b853a(0x108)+_0xbbe367+_0x4b853a(0xfa)+_0x397f15+_0x4b853a(0x149)+_0x87f937),_0x16cb27;}catch(_0x17b394){return logger[_0x4b853a(0xce)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x17b394)),{};}}async[a90_0x4133ae(0x15e)](_0x420c99,_0x51ecd7,_0x41d442){const _0x1c2fc1=a90_0x4133ae,_0x93ede3={'MgaoO':function(_0x135130,_0x47aee0,_0x186638){return _0x135130(_0x47aee0,_0x186638);},'kXqsB':function(_0xa05974,_0x10c389){return _0xa05974===_0x10c389;},'vpMnZ':_0x1c2fc1(0xe1),'deFij':function(_0x242ba3,_0x2bc935){return _0x242ba3/_0x2bc935;},'ykchn':function(_0x10dcf1,_0x4903fd){return _0x10dcf1<_0x4903fd;},'yuDDu':function(_0x5361b5,_0xacc4d5){return _0x5361b5*_0xacc4d5;},'rZDsn':function(_0x15a2a3,_0x570682){return _0x15a2a3+_0x570682;},'EIOgt':function(_0x20001f,_0x52b955){return _0x20001f+_0x52b955;},'uWHrf':_0x1c2fc1(0x159)};try{const _0x980475=_0x41d442[_0x1c2fc1(0xe4)],_0x153ccd=_0x420c99[_0x1c2fc1(0x189)]()[_0x1c2fc1(0xf3)](_0x980475),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x398388='',[TestFrameworkConstants[_0x1c2fc1(0x163)]]:_0x3dc49c=''}=_0x153ccd,_0x5975e9=TestInfo['readLogObjects'](_0x980475),_0x459b12=TestInfo[_0x1c2fc1(0x18c)](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x14d)]]||{},_0x42182c=_0x93ede3[_0x1c2fc1(0x1a0)](getMediaArtifactsLogs,_0x459b12,_0x420c99[_0x1c2fc1(0x189)]()['get'](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x165)]]),_0x16425c=(_0x5975e9||[])[_0x1c2fc1(0x187)](_0x42182c||[]);if(!_0x16425c||_0x93ede3[_0x1c2fc1(0x186)](_0x16425c['length'],0x0)){logger[_0x1c2fc1(0x11a)](_0x93ede3[_0x1c2fc1(0x191)]);return;}const _0x3a1c2a=0x28,_0x5a132d=Math[_0x1c2fc1(0x16a)](_0x93ede3[_0x1c2fc1(0x13c)](_0x16425c['length'],_0x3a1c2a));for(let _0x3b7e03=0x0;_0x93ede3[_0x1c2fc1(0xdc)](_0x3b7e03,_0x5a132d);_0x3b7e03++){const _0x19d59c=_0x93ede3[_0x1c2fc1(0xfc)](_0x3b7e03,_0x3a1c2a),_0x13b439=_0x93ede3[_0x1c2fc1(0x123)](_0x19d59c,_0x3a1c2a),_0x51d96c=_0x16425c['slice'](_0x19d59c,_0x13b439),_0x1edd35={'platformIndex':global?.[_0x1c2fc1(0x125)]??0x0,'logs':_0x51d96c,'testFrameworkName':_0x398388,'testFrameworkVersion':_0x3dc49c,'testFrameworkState':_0x51ecd7['toString']()[_0x1c2fc1(0x179)]('.')[0x1]};logger[_0x1c2fc1(0x11a)](_0x1c2fc1(0x110)+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0xe2)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x19c)+util['inspect'](_0x1edd35));const _0x15be6d=await GrpcClient[_0x1c2fc1(0x10e)]()[_0x1c2fc1(0x129)](_0x1edd35);logger[_0x1c2fc1(0x11a)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0x123)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x13e)+util[_0x1c2fc1(0x156)](_0x15be6d));}}catch(_0x39d6c9){logger[_0x1c2fc1(0xce)](_0x1c2fc1(0xeb)+util[_0x1c2fc1(0xd4)](_0x39d6c9));}logger[_0x1c2fc1(0x11a)](_0x93ede3['uWHrf']);}[a90_0x4133ae(0xf1)](_0x3f581d,_0x2a9f8e,_0x242a60,_0x44c8dd,_0x165f69){const _0xf0cb36=a90_0x4133ae,_0x25d56d={'testId':_0x2a9f8e,'testFrameworkState':_0x242a60,'hookState':_0x44c8dd,'args':_0x165f69,'timestamp':new Date()[_0xf0cb36(0x128)]()};_0x3f581d[_0xf0cb36(0xd0)](_0x2a9f8e,_0x25d56d),logger[_0xf0cb36(0x11a)](_0xf0cb36(0x190)+_0x2a9f8e+_0xf0cb36(0xf6)+_0x242a60+_0xf0cb36(0x19f)+_0x44c8dd);}async[a90_0x4133ae(0x13b)](_0xe60d92,_0x451880){const _0x5db2da=a90_0x4133ae,_0x2226bc={};_0x2226bc[_0x5db2da(0x116)]=function(_0x325be3,_0x27b9e7){return _0x325be3>_0x27b9e7;};const _0x2363f7=_0x2226bc;if(!_0xe60d92['hasPendingHooks'](_0x451880))return;const _0x1106aa=_0xe60d92['getPendingHooks'](_0x451880);logger['debug']('Processing\x20'+_0x1106aa[_0x5db2da(0x130)]+_0x5db2da(0xda)+_0x451880);for(const _0x30285a of _0x1106aa){try{const _0xee5767=await this[_0x5db2da(0x166)](_0xe60d92,_0x30285a['testFrameworkState'],_0x30285a['hookState'],_0x30285a[_0x5db2da(0x173)]);_0xee5767&&_0x2363f7['dBDgW'](Object[_0x5db2da(0xcf)](_0xee5767)[_0x5db2da(0x130)],0x0)&&_0xe60d92[_0x5db2da(0x122)](_0xee5767),await this[_0x5db2da(0x170)](_0xe60d92,_0x30285a[_0x5db2da(0x113)],_0x30285a[_0x5db2da(0x126)],_0x30285a[_0x5db2da(0x173)]);}catch(_0x473405){logger['error'](_0x5db2da(0x18e)+_0x451880+_0x5db2da(0xe6)+_0x473405);}}_0xe60d92[_0x5db2da(0x193)](_0x451880),logger[_0x5db2da(0x11a)](_0x5db2da(0xe7)+_0x451880);}}module[a90_0x4133ae(0xde)]=CucumberTestFramework;