browserstack-node-sdk 1.64.1 → 1.64.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a85_0x3e77df=a85_0x1ded;function a85_0x5cb7(){const _0xaaf3e3=['IXGaA','closeSync','ypwyq','rename','node','platform','openReadStream','GtbrN','.zip','PwKDi','setupCliPath','rHWyd','ojaEC','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','31877wnNlIV','skipSessionName','Zrvcb','cwd','cli_version','WusZj','DOWNLOAD_HTTP','SHELL_EXECUTE_ERROR','runShellCommand','../../../package.json','parse','requestToUpdateCLI','cli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','LDzLe','bazEL','basename','cplPW','nYWRq','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','1906340VXHUKB','shouldSkipSessionStatus','\x20version','start','getSdkLanguage','format','OLqie','Configuring\x20Cli\x20path.','isDirectory','startsWith','statusCode','MQaiJ','error','vfVRi','HOOK_REGEX','BROWSERSTACK_FILES_DIR','./state/automationFrameworkState.js',',\x20automationFramework=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','destroy','GcrbF','automationFrameworkDetail','../../helpers/test-observability/utils.js','.browserstack','Xefxg','pipe','UGuTe','YGEkj','readdirSync','existsSync','NleHg','getAutomationFrameworkDetail','Pwpbi','../../helpers/utilities','Cohlw','../../helpers/classLogger.js','getSdkVersion','BROWSERSTACK_BINARY_URL','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','.tmp.','object','hLkku','Development\x20Cli\x20Path:\x20','SVoLe','VMtjk','version','sReZA','28554PlZbZc','debug','upeZa','split','JqWzp','../../helpers/helper','wkrrI','getExistingCliPath','fcwKB','getWritableDir','./instances/testFrameworkInstance.js','warn','wRBjA','./framework/constants/testFrameworkConstants.js','iYjzq','946818uqPWoE','AtoOz','NcpIu','util','SDK_CLI_DOWNLOAD','get','shouldSkipSessionName','LNJSS','unlink','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','downloadFileStream','code','../utils/apiUtilityMethods.js','10302648kDCNFC','0|2|3|4|1','ZtUMu','BROWSERSTACK_CLI_ENV','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','tWbIE','EUTIe','EXDEV','jsYlP','GMOQG','267986TXWzTO','ISnXZ','url','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','createWriteStream','pid','yauzl','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','getTestFrameworkDetail','QAepV','pbbSE','Setting\x20required\x20permissions\x20to\x20','aLjZN','end','kcBQM','statSync','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','IiYtW','PdOcp','testFrameworkDetail','mRjcF','qscSd','mGUsT','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','timeout','follow-redirects','downloadLatestBinary','message','230VJUcOL','reduce','Failed\x20to\x20delete\x20zip\x20file:\x20','data','listen','matchHookRegex','worker_threads','fileName','homedir','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','veRRd','exports','tugZr','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','openSync','env','testContextOptions','CLIUtils','gTBmd','GDPmY','concat','filePath','Resolving\x20with\x20stdout:\x20\x22','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','isBinaryBusy','ABxhh','LLpwu','SDK_CLI_CHECK_UPDATE','readEntry','trim','arch','\x20from\x20','entry','YPwPY','lazyEntries','stringify','join','downloaded_file_','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','.sock','hJRka','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','./state/testFrameworkState.js','kDIfm','isArray','map','gjmmh','info','Hjfcw','test','length','binary-','getCliDir','jvGYK','HdRKJ','getHookRegistryKey','plbMs','HVUUV','copyFileSync','jAAsO','eXyXM','open','1140566NfqjpY','Error\x20while\x20reading\x20CLI\x20path:\x20','../utils/constants','mtime','includes','mergeObject','entries','close'];a85_0x5cb7=function(){return _0xaaf3e3;};return a85_0x5cb7();}function a85_0x1ded(_0x52ac5c,_0x560755){const _0x5cb787=a85_0x5cb7();return a85_0x1ded=function(_0x1deddb,_0x5f2e95){_0x1deddb=_0x1deddb-0x123;let _0x388291=_0x5cb787[_0x1deddb];return _0x388291;},a85_0x1ded(_0x52ac5c,_0x560755);}(function(_0xa387a2,_0x553d48){const _0x165cf7=a85_0x1ded,_0x32e35e=_0xa387a2();while(!![]){try{const _0x1f4e71=-parseInt(_0x165cf7(0x1e5))/0x1+-parseInt(_0x165cf7(0x174))/0x2+-parseInt(_0x165cf7(0x15d))/0x3+-parseInt(_0x165cf7(0x1fa))/0x4+-parseInt(_0x165cf7(0x190))/0x5*(parseInt(_0x165cf7(0x14e))/0x6)+parseInt(_0x165cf7(0x1cf))/0x7+parseInt(_0x165cf7(0x16a))/0x8;if(_0x1f4e71===_0x553d48)break;else _0x32e35e['push'](_0x32e35e['shift']());}catch(_0x6f198c){_0x32e35e['push'](_0x32e35e['shift']());}}}(a85_0x5cb7,0x42d82));const fs=require('fs'),os=require('os'),url=require(a85_0x3e77df(0x176)),path=require('path'),{exec}=require('child_process'),{https}=require(a85_0x3e77df(0x18d)),yauzl=require(a85_0x3e77df(0x17a)),util=require(a85_0x3e77df(0x160)),{getFrameworkVersion}=require(a85_0x3e77df(0x135)),{threadId}=require(a85_0x3e77df(0x196)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3e77df(0x140)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3e77df(0x153)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3e77df(0x1d1)),{createClassLogger}=require(a85_0x3e77df(0x142)),TestFrameworkInstance=require(a85_0x3e77df(0x158)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x3e77df(0x1bb)),AutomationFrameworkState=require(a85_0x3e77df(0x12f)),TestFrameworkConstants=require(a85_0x3e77df(0x15b)),logger=createClassLogger(a85_0x3e77df(0x1a2)),{getBStackAPIUrl}=require(a85_0x3e77df(0x169));class CLIUtils{['automationFrameworkDetail']={};[a85_0x3e77df(0x187)]={};static['isDevelopmentEnv'](){const _0x1264cf=a85_0x3e77df,_0x4dab96={};_0x4dab96[_0x1264cf(0x156)]=function(_0x3f2778,_0xff1e57){return _0x3f2778===_0xff1e57;},_0x4dab96[_0x1264cf(0x1b2)]='development';const _0xbbe29d=_0x4dab96;return _0xbbe29d[_0x1264cf(0x156)](process[_0x1264cf(0x1a0)][_0x1264cf(0x16d)],_0xbbe29d[_0x1264cf(0x1b2)]);}static['getCLIParamsForDevEnv'](){const _0xf529c9=a85_0x3e77df,_0x3e1a12={};return _0x3e1a12['id']=process[_0xf529c9(0x1a0)]['BROWSERSTACK_CLI_ENV'],_0x3e1a12[_0xf529c9(0x194)]='unix:/tmp/sdk-platform-'+process[_0xf529c9(0x1a0)][_0xf529c9(0x16d)]+_0xf529c9(0x1b8),_0x3e1a12;}static['getSdkVersion'](){const _0x20e12e=a85_0x3e77df,_0x33a3c3={'wkrrI':function(_0x8f5e66,_0x21c333){return _0x8f5e66(_0x21c333);},'GMOQG':_0x20e12e(0x1ee)};return _0x33a3c3[_0x20e12e(0x154)](require,_0x33a3c3[_0x20e12e(0x173)])['version'];}static[a85_0x3e77df(0x123)](){const _0x524b77=a85_0x3e77df,_0x92075b={};_0x92075b['AtoOz']=_0x524b77(0x1db);const _0x6d08f5=_0x92075b;return _0x6d08f5[_0x524b77(0x15e)];}static async[a85_0x3e77df(0x1e1)](_0x59715a){const _0x5db647=a85_0x3e77df,_0x294003={'jvGYK':_0x5db647(0x126),'wyXkM':function(_0x14b9b5,_0x2ccb5b){return _0x14b9b5(_0x2ccb5b);},'qptpv':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x5db647(0x14f)](_0x294003[_0x5db647(0x1c6)]);const _0x3b958f=process['env']['SDK_CLI_BIN_PATH'];if(!_0x294003['wyXkM'](isNullOrEmpty,_0x3b958f))return logger['debug'](_0x5db647(0x149)+_0x3b958f),_0x3b958f;try{const _0x5925d4=this['getCliDir']();if(_0x294003['wyXkM'](isNullOrEmpty,_0x5925d4))throw new Error(_0x294003['qptpv']);const _0x4d6216=this[_0x5db647(0x155)](_0x5925d4),_0x446fdb=await this['checkAndUpdateCli'](_0x4d6216,_0x5925d4,_0x59715a);return logger[_0x5db647(0x14f)]('Resolved\x20binary\x20path:\x20'+_0x446fdb),_0x446fdb;}catch(_0x33b680){logger[_0x5db647(0x14f)](_0x5db647(0x18b)+util[_0x5db647(0x124)](_0x33b680));}return null;}static async['checkAndUpdateCli'](_0x5034ac,_0x4f0784,_0x4a858a){const _0x1ecb0d=a85_0x3e77df,_0x58b4df={'WusZj':function(_0x483db0){return _0x483db0();},'plbMs':function(_0x193249,_0x244670){return _0x193249(_0x244670);},'ojaEC':function(_0x1d58d6,_0x2e183e,_0x556fa9){return _0x1d58d6(_0x2e183e,_0x556fa9);},'LNJSS':_0x1ecb0d(0x193),'Xefxg':_0x1ecb0d(0x176),'CCgFt':function(_0x380f00,_0x55a666){return _0x380f00(_0x55a666);}};PerformanceTester[_0x1ecb0d(0x1fd)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1ecb0d(0x1c0)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x5034ac);const _0x1c5066=_0x58b4df[_0x1ecb0d(0x1ea)](getHostInfo),_0x42352b={'sdk_version':CLIUtils[_0x1ecb0d(0x143)](),'os':_0x1c5066[_0x1ecb0d(0x1dc)],'os_arch':_0x1c5066[_0x1ecb0d(0x1af)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x58b4df[_0x1ecb0d(0x1c9)](isNullOrEmpty,_0x5034ac)&&(_0x42352b['cli_version']=await this[_0x1ecb0d(0x1ed)](_0x5034ac+_0x1ecb0d(0x1fc)));const _0x43e858=await this[_0x1ecb0d(0x1f0)](_0x42352b,_0x4a858a);process[_0x1ecb0d(0x1a0)][_0x1ecb0d(0x144)]&&(logger['info'](_0x1ecb0d(0x19e)+process[_0x1ecb0d(0x1a0)]['BROWSERSTACK_BINARY_URL']),_0x43e858['data']['url']=process[_0x1ecb0d(0x1a0)]['BROWSERSTACK_BINARY_URL']);if(_0x58b4df[_0x1ecb0d(0x1e3)](nestedKeyValue,_0x43e858,[_0x58b4df[_0x1ecb0d(0x164)],_0x58b4df[_0x1ecb0d(0x137)]])){logger[_0x1ecb0d(0x14f)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x42352b[_0x1ecb0d(0x1e9)]);if(!_0x58b4df['CCgFt'](isNullOrEmpty,_0x5034ac)&&this[_0x1ecb0d(0x1a9)](_0x5034ac))return logger[_0x1ecb0d(0x159)](_0x1ecb0d(0x177)+_0x5034ac),_0x5034ac;return await this[_0x1ecb0d(0x18e)](_0x58b4df[_0x1ecb0d(0x1e3)](nestedKeyValue,_0x43e858,[_0x58b4df[_0x1ecb0d(0x164)],_0x58b4df[_0x1ecb0d(0x137)]]),_0x4f0784);}return _0x5034ac;}finally{PerformanceTester[_0x1ecb0d(0x181)](PerformanceEvents[_0x1ecb0d(0x1ac)]);}}static[a85_0x3e77df(0x1c5)](){const _0x162769=a85_0x3e77df,_0x51e42e={'ISnXZ':function(_0x4d38e3,_0x1ed7d7){return _0x4d38e3(_0x1ed7d7);},'RVzfy':_0x162769(0x1f2),'hLkku':_0x162769(0x1f1)},_0x143ea9=this[_0x162769(0x157)]();try{if(_0x51e42e[_0x162769(0x175)](isNullOrEmpty,_0x143ea9))throw new Error(_0x51e42e['RVzfy']);const _0x20ed20=path[_0x162769(0x1b5)](_0x143ea9,_0x51e42e[_0x162769(0x148)]);return!fs['existsSync'](_0x20ed20)&&_0x51e42e[_0x162769(0x175)](createDir,_0x20ed20),_0x20ed20;}catch(_0x6af1a){logger[_0x162769(0x14f)](_0x162769(0x1f9)+util[_0x162769(0x124)](_0x6af1a));}}static[a85_0x3e77df(0x157)](){const _0x40314b=a85_0x3e77df,_0xb55727={'HdRKJ':_0x40314b(0x136),'JqWzp':function(_0x36602e,_0x3a2029){return _0x36602e(_0x3a2029);},'LLpwu':function(_0x4c82cd,_0x1005db){return _0x4c82cd(_0x1005db);},'NleHg':function(_0x46a6c0,_0x327133){return _0x46a6c0(_0x327133);}},_0x3bb2b8=[process['env'][_0x40314b(0x12e)],path['join'](os[_0x40314b(0x198)](),_0xb55727[_0x40314b(0x1c7)]),path[_0x40314b(0x1b5)](os['tmpdir'](),_0xb55727[_0x40314b(0x1c7)])];for(const _0x2de59b of _0x3bb2b8){if(_0xb55727[_0x40314b(0x152)](isNullOrEmpty,_0x2de59b))continue;try{if(fs[_0x40314b(0x13c)](_0x2de59b)){logger[_0x40314b(0x14f)]('Folder\x20'+_0x2de59b+'\x20already\x20exists');if(!_0xb55727[_0x40314b(0x1ab)](isModifiable,_0x2de59b)){logger['debug']('Setting\x20required\x20permissions\x20to\x20'+_0x2de59b);const _0x2c97f4=_0xb55727[_0x40314b(0x1ab)](setReadWriteExecuteAccess,_0x2de59b);if(!_0xb55727[_0x40314b(0x1ab)](isTrue,_0x2c97f4)){logger[_0x40314b(0x159)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2de59b);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x2de59b),_0xb55727['JqWzp'](createDir,_0x2de59b),logger[_0x40314b(0x14f)](_0x40314b(0x17f)+_0x2de59b);const _0x3f4aea=_0xb55727[_0x40314b(0x13d)](setReadWriteExecuteAccess,_0x2de59b);!_0xb55727['JqWzp'](isTrue,_0x3f4aea)&&logger[_0x40314b(0x159)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2de59b);}return _0x2de59b;}catch(_0x675de5){logger[_0x40314b(0x12b)](_0x40314b(0x1f8)+util[_0x40314b(0x124)](_0x675de5));}}return null;}static['getExistingCliPath'](_0x3c31f0){const _0x121f9a=a85_0x3e77df,_0x518f34={};_0x518f34[_0x121f9a(0x172)]=function(_0x1ec2a1,_0x22ab71){return _0x1ec2a1>_0x22ab71;},_0x518f34[_0x121f9a(0x180)]=function(_0x5e5a5d,_0x3f4a64){return _0x5e5a5d>_0x3f4a64;};const _0x45c0c1=_0x518f34;try{if(!fs['existsSync'](_0x3c31f0)||!fs[_0x121f9a(0x183)](_0x3c31f0)[_0x121f9a(0x127)]())return'';const _0x2a7bc2=fs[_0x121f9a(0x13b)](_0x3c31f0)[_0x121f9a(0x1be)](_0x5ea158=>path[_0x121f9a(0x1b5)](_0x3c31f0,_0x5ea158))['filter'](_0x46866b=>fs[_0x121f9a(0x183)](_0x46866b)['isFile']()&&path[_0x121f9a(0x1f5)](_0x46866b)[_0x121f9a(0x128)](_0x121f9a(0x1c4)));if(_0x45c0c1[_0x121f9a(0x180)](_0x2a7bc2[_0x121f9a(0x1c3)],0x0)){const _0x28c5bd=_0x2a7bc2[_0x121f9a(0x1be)](_0x4f6449=>({'filePath':_0x4f6449,'mtime':fs[_0x121f9a(0x183)](_0x4f6449)[_0x121f9a(0x1d2)]}))[_0x121f9a(0x191)]((_0x10f29b,_0x12995)=>{const _0xacb5b8=_0x121f9a;if(!_0x10f29b||!_0x10f29b[_0xacb5b8(0x1d2)])return _0x12995;if(_0x45c0c1[_0xacb5b8(0x172)](_0x12995[_0xacb5b8(0x1d2)],_0x10f29b[_0xacb5b8(0x1d2)]))return _0x12995;return _0x10f29b;},{});return _0x28c5bd?_0x28c5bd[_0x121f9a(0x1a6)]:'';}return'';}catch(_0x379953){return logger[_0x121f9a(0x12b)](_0x121f9a(0x1d0)+util[_0x121f9a(0x124)](_0x379953)),'';}}static ['requestToUpdateCLI']=async(_0xf2692f,_0x470f4e)=>{const _0xa74fa8=a85_0x3e77df,_0x344995={'tPlns':function(_0x1685a4,_0x2918fa,_0x505c8d,_0x142a87,_0xeb9fd1){return _0x1685a4(_0x2918fa,_0x505c8d,_0x142a87,_0xeb9fd1);},'ABxhh':'GET'},_0x1aa112={};_0x1aa112['qs']=_0xf2692f,_0x1aa112['preserveStatusCodeOnError']=!![];const _0x243ed5=await _0x344995['tPlns'](nodeRequest,_0x344995[_0xa74fa8(0x1aa)],UPDATED_CLI_ENDPOINT,_0x1aa112,_0x470f4e);return logger[_0xa74fa8(0x14f)]('response\x20'+JSON[_0xa74fa8(0x1b4)](_0x243ed5)),_0x243ed5;};static[a85_0x3e77df(0x1a9)](_0x24cbae){const _0x33f29a=a85_0x3e77df;try{const _0x333442=fs[_0x33f29a(0x19f)](_0x24cbae,'r+');return fs[_0x33f29a(0x1d8)](_0x333442),![];}catch(_0x589300){if(BINARY_BUSY_ERROR_CODES['includes'](_0x589300[_0x33f29a(0x168)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x24cbae),!![];return logger[_0x33f29a(0x14f)](_0x33f29a(0x1a8)+_0x589300[_0x33f29a(0x18f)]),![];}}static[a85_0x3e77df(0x1ed)](_0x10dc79,_0x14453b=''){const _0x52837f=a85_0x3e77df,_0x5cc966={'upeZa':function(_0xfc4fc2,_0x10bcee){return _0xfc4fc2(_0x10bcee);},'sReZA':_0x52837f(0x1ec),'UMPfF':_0x52837f(0x14c),'wRBjA':function(_0x33b923,_0x21d32b,_0x14abd0,_0x3d829f){return _0x33b923(_0x21d32b,_0x14abd0,_0x3d829f);},'gTBmd':_0x52837f(0x12b)};return new Promise((_0x2b032c,_0x1dd213)=>{const _0x205f69=_0x52837f,_0x18c7b5={'qscSd':_0x5cc966['UMPfF'],'tugZr':function(_0x3427df,_0x508306){const _0x24145f=a85_0x1ded;return _0x5cc966[_0x24145f(0x150)](_0x3427df,_0x508306);},'mGUsT':function(_0x44390e,_0x4b7476){const _0x321da3=a85_0x1ded;return _0x5cc966[_0x321da3(0x150)](_0x44390e,_0x4b7476);},'hJRka':_0x5cc966[_0x205f69(0x14d)]},_0x4ea389={};_0x4ea389[_0x205f69(0x1e8)]=_0x14453b,_0x4ea389[_0x205f69(0x18c)]=0x1388;const _0x52e65c=_0x5cc966[_0x205f69(0x15a)](exec,_0x10dc79,_0x4ea389,(_0xe3ed9f,_0xf9ac9a,_0x2fc49d)=>{const _0x5a24b3=_0x205f69;if(_0xe3ed9f){if(_0x10dc79[_0x5a24b3(0x1d3)](_0x18c7b5[_0x5a24b3(0x189)])&&(_0xf9ac9a['trim']()||_0x2fc49d[_0x5a24b3(0x1ae)]())){const _0x97959c=_0xf9ac9a[_0x5a24b3(0x1ae)]()||_0x2fc49d[_0x5a24b3(0x1ae)]();logger[_0x5a24b3(0x14f)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x97959c+'\x22'),_0x18c7b5[_0x5a24b3(0x19d)](_0x2b032c,_0x97959c);}else _0x18c7b5['mGUsT'](_0x2b032c,_0x2fc49d['trim']()||_0x18c7b5[_0x5a24b3(0x1b9)]);}else logger[_0x5a24b3(0x14f)](_0x5a24b3(0x1a7)+_0xf9ac9a['trim']()+'\x22'),_0x18c7b5[_0x5a24b3(0x18a)](_0x2b032c,_0xf9ac9a[_0x5a24b3(0x1ae)]());});_0x52e65c['on'](_0x5cc966[_0x205f69(0x1a3)],()=>{const _0x4840dc=_0x205f69;_0x5cc966['upeZa'](_0x2b032c,_0x5cc966[_0x4840dc(0x14d)]);});});}static [a85_0x3e77df(0x18e)]=async(_0x4e5c04,_0x7c4cbd)=>{const _0x257dd8=a85_0x3e77df,_0x393ffb={'ZtUMu':function(_0x4776f1,_0x566c1d){return _0x4776f1(_0x566c1d);},'jAAsO':function(_0x39c07c,_0x5eb055){return _0x39c07c>=_0x5eb055;},'VRKtU':_0x257dd8(0x1eb),'NcpIu':_0x257dd8(0x17b),'rHWyd':_0x257dd8(0x12b),'eohWd':_0x257dd8(0x1b7),'PwKDi':_0x257dd8(0x131),'VMtjk':_0x257dd8(0x16e)};PerformanceTester[_0x257dd8(0x1fd)](PerformanceEvents[_0x257dd8(0x161)]),logger[_0x257dd8(0x14f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x4e5c04);try{const _0x3ccad9=url[_0x257dd8(0x1ef)](_0x4e5c04),_0x57b2ad=path['join'](_0x7c4cbd,_0x257dd8(0x1b6)+process[_0x257dd8(0x179)]+_0x257dd8(0x1df)),_0x15c606=fs[_0x257dd8(0x178)](_0x57b2ad);return new Promise((_0xdade9f,_0x317b3c)=>{const _0x53d54f=_0x257dd8,_0x144306={'kcBQM':_0x393ffb['eohWd'],'IXGaA':function(_0x56c372,_0x18c3fa){return _0x393ffb['ZtUMu'](_0x56c372,_0x18c3fa);},'ZRdKz':_0x393ffb[_0x53d54f(0x1e0)]};https[_0x53d54f(0x162)](_0x3ccad9,function(_0x404941){const _0x2b151a=_0x53d54f,_0x175b20={'IiYtW':function(_0x1b977e,_0x130554){return _0x393ffb['ZtUMu'](_0x1b977e,_0x130554);}},_0x1a1f87=null;if(_0x404941[_0x2b151a(0x129)]&&_0x393ffb[_0x2b151a(0x1cc)](_0x404941[_0x2b151a(0x129)],0x190)){const _0x3ce188=new Error(_0x2b151a(0x184)+_0x404941[_0x2b151a(0x129)]+_0x2b151a(0x1b0)+_0x4e5c04);_0x3ce188[_0x2b151a(0x168)]=_0x393ffb['VRKtU'],_0x3ce188[_0x2b151a(0x129)]=_0x404941[_0x2b151a(0x129)],logger[_0x2b151a(0x12b)](util[_0x2b151a(0x124)](_0x393ffb[_0x2b151a(0x15f)],_0x404941[_0x2b151a(0x129)])),PerformanceTester[_0x2b151a(0x181)](PerformanceEvents[_0x2b151a(0x161)],![],'HTTP\x20'+_0x404941[_0x2b151a(0x129)]),_0x404941['resume'](),_0x15c606[_0x2b151a(0x132)](),fs[_0x2b151a(0x165)](_0x57b2ad,()=>{}),_0x393ffb['ZtUMu'](_0x317b3c,_0x3ce188);return;}_0x404941['pipe'](_0x15c606),_0x404941['on'](_0x393ffb[_0x2b151a(0x1e2)],function(_0x3f2114){const _0x10236f=_0x2b151a;logger[_0x10236f(0x12b)](util[_0x10236f(0x124)](_0x144306[_0x10236f(0x182)],_0x3f2114)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x10236f(0x124)](_0x3f2114)),_0x144306[_0x10236f(0x1d7)](_0x317b3c,_0x3f2114);}),_0x15c606['on'](_0x393ffb['rHWyd'],function(_0x6a7280){const _0xa38959=_0x2b151a;logger[_0xa38959(0x12b)](util[_0xa38959(0x124)](_0x144306['ZRdKz'],_0x6a7280)),PerformanceTester[_0xa38959(0x181)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0xa38959(0x124)](_0x6a7280)),_0x144306[_0xa38959(0x1d7)](_0x317b3c,_0x6a7280);}),CLIUtils['downloadFileStream'](_0x15c606,_0x1a1f87,_0x57b2ad,_0x7c4cbd,_0x5d61b5=>{const _0x1dc1cb=_0x2b151a;PerformanceTester[_0x1dc1cb(0x181)](PerformanceEvents[_0x1dc1cb(0x161)]),_0x144306[_0x1dc1cb(0x1d7)](_0xdade9f,_0x5d61b5);},_0x1bd064=>{const _0x13f8b6=_0x2b151a;PerformanceTester[_0x13f8b6(0x181)](PerformanceEvents[_0x13f8b6(0x161)],![],util[_0x13f8b6(0x124)](_0x1bd064)),_0x175b20[_0x13f8b6(0x185)](_0x317b3c,_0x1bd064);});})['on'](_0x393ffb['rHWyd'],function(_0x5eeadf){const _0x888542=_0x53d54f;logger[_0x888542(0x12b)](_0x888542(0x199)+util[_0x888542(0x124)](_0x5eeadf)),PerformanceTester[_0x888542(0x181)](PerformanceEvents[_0x888542(0x161)],![],util['format'](_0x5eeadf)),_0x393ffb[_0x888542(0x16c)](_0x317b3c,_0x5eeadf);});});}catch(_0x35d8d5){PerformanceTester[_0x257dd8(0x181)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x257dd8(0x124)](_0x35d8d5)),logger[_0x257dd8(0x12b)](util[_0x257dd8(0x124)](_0x393ffb[_0x257dd8(0x14b)],_0x35d8d5));throw _0x35d8d5;}};static[a85_0x3e77df(0x167)](_0x4a9763,_0x12d74e,_0x494214,_0x164637,_0x3823a6,_0x27204b){const _0x167145=a85_0x3e77df,_0x50bf0d={'UNWPy':function(_0x2192c5,_0x55a6cc){return _0x2192c5!==_0x55a6cc;},'SVoLe':function(_0x29b4a5,_0x40c203){return _0x29b4a5(_0x40c203);},'bazEL':_0x167145(0x12b),'EDjki':_0x167145(0x1d6),'Zrvcb':'end','pZIjR':function(_0x5091bd,_0x1c2800){return _0x5091bd!==_0x1c2800;},'RbuFI':_0x167145(0x171),'eXyXM':'0755','sYmIj':_0x167145(0x1b1)};_0x4a9763['on'](_0x50bf0d['EDjki'],function(){const _0x3a8519=_0x167145,_0x316e2f={'VogTT':function(_0x186f79,_0x13fdcc){return _0x50bf0d['UNWPy'](_0x186f79,_0x13fdcc);},'ypwyq':function(_0x1ee6a3,_0xca98db){const _0x17a256=a85_0x1ded;return _0x50bf0d[_0x17a256(0x14a)](_0x1ee6a3,_0xca98db);},'nYWRq':_0x50bf0d[_0x3a8519(0x1f4)],'PdOcp':function(_0x2e55ff,_0x220d8c){const _0x37823b=_0x3a8519;return _0x50bf0d[_0x37823b(0x14a)](_0x2e55ff,_0x220d8c);},'Pwpbi':function(_0x334522,_0x41ca2e){const _0x2f300b=_0x3a8519;return _0x50bf0d[_0x2f300b(0x14a)](_0x334522,_0x41ca2e);},'UGuTe':_0x50bf0d['EDjki'],'GtbrN':_0x50bf0d[_0x3a8519(0x1e7)],'rYGZj':function(_0x5dd184,_0x3e5a5d){return _0x50bf0d['pZIjR'](_0x5dd184,_0x3e5a5d);},'kDIfm':_0x50bf0d['RbuFI'],'Cohlw':_0x50bf0d[_0x3a8519(0x1cd)],'vfVRi':function(_0x4639ec,_0x39133a){return _0x50bf0d['SVoLe'](_0x4639ec,_0x39133a);},'MQaiJ':_0x50bf0d['sYmIj']},_0x5f37f3={};_0x5f37f3[_0x3a8519(0x1b3)]=!![],yauzl[_0x3a8519(0x1ce)](_0x494214,_0x5f37f3,function(_0x468523,_0xcd6242){const _0xbc7840=_0x3a8519,_0x27bdc0={'mRjcF':function(_0x2c6050,_0x5dba93){const _0x5ac4cf=a85_0x1ded;return _0x316e2f[_0x5ac4cf(0x1d9)](_0x2c6050,_0x5dba93);},'irpuV':function(_0x2a5bf9,_0x3b8b3b){const _0x242c69=a85_0x1ded;return _0x316e2f[_0x242c69(0x13f)](_0x2a5bf9,_0x3b8b3b);},'QAepV':_0x316e2f[_0xbc7840(0x139)],'YGEkj':_0x316e2f[_0xbc7840(0x1de)],'pbbSE':function(_0x11590b,_0x48e494){return _0x316e2f['rYGZj'](_0x11590b,_0x48e494);},'GDPmY':_0x316e2f[_0xbc7840(0x1bc)],'ujTmP':function(_0x497260,_0x5130dc){return _0x316e2f['PdOcp'](_0x497260,_0x5130dc);},'LDzLe':_0x316e2f[_0xbc7840(0x141)]};if(_0x468523){_0x316e2f[_0xbc7840(0x12c)](_0x27204b,_0x468523);return;}_0xcd6242[_0xbc7840(0x1ad)](),_0xcd6242['on'](_0x316e2f[_0xbc7840(0x12a)],_0x39727f=>{const _0x55f5f4=_0xbc7840;if(/\/$/[_0x55f5f4(0x1c2)](_0x39727f[_0x55f5f4(0x197)])){_0xcd6242['readEntry']();return;}!_0x12d74e&&(_0x12d74e=_0x39727f[_0x55f5f4(0x197)]);if(_0x316e2f['VogTT'](_0x39727f[_0x55f5f4(0x197)],_0x12d74e))_0xcd6242[_0x55f5f4(0x1ad)]();else{const _0x2a4874=_0x39727f[_0x55f5f4(0x197)],_0x34ed5b=path['join'](_0x164637,_0x2a4874+_0x55f5f4(0x146)+process[_0x55f5f4(0x179)]);let _0xc35ced;try{_0xc35ced=fs[_0x55f5f4(0x178)](_0x34ed5b);}catch(_0x3136ad){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3136ad[_0x55f5f4(0x168)])){const _0x48cdbc=path['join'](_0x164637,_0x2a4874);if(fs[_0x55f5f4(0x13c)](_0x48cdbc)){logger[_0x55f5f4(0x159)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a4874),fs['unlink'](_0x494214,_0x314781=>{const _0x33a300=_0x55f5f4;_0x314781&&logger[_0x33a300(0x159)](_0x33a300(0x192)+_0x494214);}),_0x316e2f[_0x55f5f4(0x1d9)](_0x3823a6,_0x48cdbc);return;}logger[_0x55f5f4(0x159)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2a4874);}_0x316e2f[_0x55f5f4(0x1d9)](_0x27204b,_0x3136ad);return;}_0xc35ced['on'](_0x316e2f[_0x55f5f4(0x1f7)],_0x4a68ca=>{const _0x27db7e=_0x55f5f4;if(BINARY_BUSY_ERROR_CODES['includes'](_0x4a68ca[_0x27db7e(0x168)])){const _0x19aff5=path[_0x27db7e(0x1b5)](_0x164637,_0x2a4874);_0xc35ced[_0x27db7e(0x1d6)](),fs[_0x27db7e(0x13c)](_0x19aff5)?(logger[_0x27db7e(0x159)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x4a68ca[_0x27db7e(0x18f)]),_0xcd6242['close'](),fs[_0x27db7e(0x165)](_0x494214,_0x592f2d=>{const _0x3ebdd2=_0x27db7e;_0x592f2d&&logger['warn'](_0x3ebdd2(0x192)+_0x494214);}),_0x27bdc0[_0x27db7e(0x188)](_0x3823a6,_0x19aff5)):(logger['warn'](_0x27db7e(0x1e4)+_0x4a68ca[_0x27db7e(0x18f)]),fs[_0x27db7e(0x165)](_0x34ed5b,()=>{}),_0x27bdc0['irpuV'](_0x27204b,_0x4a68ca));}else fs['unlink'](_0x34ed5b,()=>{}),_0x27bdc0[_0x27db7e(0x188)](_0x27204b,_0x4a68ca);}),_0xcd6242[_0x55f5f4(0x1dd)](_0x39727f,function(_0x5936fc,_0x3fe27d){const _0x532b73=_0x55f5f4,_0x13b3b2={};_0x13b3b2[_0x532b73(0x133)]=_0x27bdc0[_0x532b73(0x17d)];const _0x18a60e=_0x13b3b2;if(_0x5936fc){fs[_0x532b73(0x165)](_0x34ed5b,()=>{}),_0x27bdc0[_0x532b73(0x188)](_0x27204b,_0x5936fc);return;}_0x3fe27d['on'](_0x27bdc0[_0x532b73(0x13a)],function(){const _0x5e5f5d=_0x532b73;_0xc35ced[_0x5e5f5d(0x181)](),_0xc35ced['on'](_0x18a60e[_0x5e5f5d(0x133)],function(){const _0x4fbad9=_0x5e5f5d;_0xcd6242[_0x4fbad9(0x1ad)]();});}),_0x3fe27d[_0x532b73(0x138)](_0xc35ced);});}}),_0xcd6242['on'](_0x316e2f[_0xbc7840(0x1f7)],_0x477042=>{const _0x29a9d7=_0xbc7840;_0x316e2f[_0x29a9d7(0x186)](_0x27204b,_0x477042);}),_0xcd6242['once'](_0x316e2f[_0xbc7840(0x1de)],()=>{const _0x2c4d63=_0xbc7840,_0x5248dc={'HVUUV':function(_0x3ad4fb,_0x4f18cc){const _0x57084a=a85_0x1ded;return _0x27bdc0[_0x57084a(0x17e)](_0x3ad4fb,_0x4f18cc);},'cplPW':_0x27bdc0[_0x2c4d63(0x1a4)],'dDuGB':function(_0x3e4d91,_0x30cca2){return _0x27bdc0['irpuV'](_0x3e4d91,_0x30cca2);},'iYjzq':function(_0x4b26eb,_0x7dd553){const _0x355143=_0x2c4d63;return _0x27bdc0[_0x355143(0x188)](_0x4b26eb,_0x7dd553);},'veRRd':function(_0xe66e87,_0x52dc18){return _0x27bdc0['ujTmP'](_0xe66e87,_0x52dc18);}};fs[_0x2c4d63(0x165)](_0x494214,_0x44245f=>{const _0x50bb57=_0x2c4d63;_0x44245f&&logger[_0x50bb57(0x159)](_0x50bb57(0x192)+_0x494214);});const _0x550947=path[_0x2c4d63(0x1b5)](_0x164637,_0x12d74e+'.tmp.'+process[_0x2c4d63(0x179)]),_0xc98083=path[_0x2c4d63(0x1b5)](_0x164637,_0x12d74e);fs['chmod'](_0x550947,_0x27bdc0[_0x2c4d63(0x1f3)],function(_0x365255){const _0x537fea=_0x2c4d63;if(_0x365255){_0xcd6242[_0x537fea(0x1d6)](),fs[_0x537fea(0x165)](_0x550947,()=>{}),_0x27bdc0[_0x537fea(0x188)](_0x27204b,_0x365255);return;}fs[_0x537fea(0x1da)](_0x550947,_0xc98083,function(_0x1fe2ee){const _0x4e1dd9=_0x537fea;if(_0x1fe2ee){if(_0x5248dc[_0x4e1dd9(0x1ca)](_0x1fe2ee[_0x4e1dd9(0x168)],_0x5248dc[_0x4e1dd9(0x1f6)])){_0xcd6242[_0x4e1dd9(0x1d6)](),fs[_0x4e1dd9(0x165)](_0x550947,()=>{}),_0x5248dc['dDuGB'](_0x27204b,_0x1fe2ee);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x1fe2ee[_0x4e1dd9(0x18f)]);try{fs[_0x4e1dd9(0x1cb)](_0x550947,_0xc98083);}catch(_0xef844){_0xcd6242[_0x4e1dd9(0x1d6)](),fs[_0x4e1dd9(0x165)](_0x550947,()=>{}),_0x5248dc[_0x4e1dd9(0x15c)](_0x27204b,_0xef844);return;}fs['unlink'](_0x550947,_0x81757b=>{const _0x3ed171=_0x4e1dd9;_0x81757b&&logger[_0x3ed171(0x159)](_0x3ed171(0x145)+_0x81757b[_0x3ed171(0x18f)]);});}_0xcd6242['close'](),_0x5248dc[_0x4e1dd9(0x19b)](_0x3823a6,_0xc98083);});});});});});}static[a85_0x3e77df(0x17c)](){const _0x2a8064=a85_0x3e77df;if(process[_0x2a8064(0x1a0)][_0x2a8064(0x1ba)])return JSON['parse'](process[_0x2a8064(0x1a0)][_0x2a8064(0x1ba)]);return this[_0x2a8064(0x187)];}static[a85_0x3e77df(0x13e)](){const _0x51179d=a85_0x3e77df;if(process[_0x51179d(0x1a0)][_0x51179d(0x19a)])return JSON[_0x51179d(0x1ef)](process[_0x51179d(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x3d916d,_0x2647a7){const _0x524c7f=a85_0x3e77df,_0x3bf7e6={'lYZGL':_0x524c7f(0x16b),'gjmmh':function(_0x4102eb,_0x5ae5ea){return _0x4102eb||_0x5ae5ea;},'tWbIE':function(_0x5d64b4,_0x2343ce){return _0x5d64b4(_0x2343ce);}},_0x24ef71=_0x3bf7e6['lYZGL'][_0x524c7f(0x151)]('|');let _0x557c65=0x0;while(!![]){switch(_0x24ef71[_0x557c65++]){case'0':_0x3bf7e6[_0x524c7f(0x1bf)](!_0x3d916d,!_0x2647a7)&&logger[_0x524c7f(0x14f)](_0x524c7f(0x166)+_0x3d916d+_0x524c7f(0x130)+_0x2647a7);continue;case'1':process['env'][_0x524c7f(0x1ba)]=JSON[_0x524c7f(0x1b4)](this[_0x524c7f(0x187)]);continue;case'2':this['testFrameworkDetail']={'name':_0x3d916d,'version':{[_0x3d916d]:_0x3bf7e6[_0x524c7f(0x16f)](getFrameworkVersion,_0x3d916d)}};continue;case'3':this[_0x524c7f(0x134)]={'name':_0x2647a7,'version':_0x3bf7e6[_0x524c7f(0x16f)](getFrameworkVersion,_0x2647a7)};continue;case'4':process[_0x524c7f(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x524c7f(0x134)]);continue;}break;}}static[a85_0x3e77df(0x1c8)](_0x92eed6,_0x152abd){return _0x92eed6+':'+_0x152abd;}static['getCurrentInstanceName'](){const _0x192685=a85_0x3e77df;return process[_0x192685(0x179)]+':'+threadId;}static[a85_0x3e77df(0x163)](_0x4169fc){const _0x44f215=a85_0x3e77df;if(_0x4169fc['testContextOptions']&&_0x4169fc[_0x44f215(0x1a1)][_0x44f215(0x1e6)])return!![];return![];}static[a85_0x3e77df(0x1fb)](_0xa5f17){const _0x3d256c=a85_0x3e77df;if(_0xa5f17[_0x3d256c(0x1a1)]&&_0xa5f17[_0x3d256c(0x1a1)]['skipSessionStatus'])return!![];return![];}static[a85_0x3e77df(0x195)](_0x5e73f2){const _0x1295b5=a85_0x3e77df,_0x512a32=new RegExp(TestFrameworkConstants[_0x1295b5(0x12d)]);return _0x512a32[_0x1295b5(0x1c2)](_0x5e73f2);}static[a85_0x3e77df(0x1d4)](_0x6a904b,_0x2addee){const _0x515cc1=a85_0x3e77df,_0x21bb54={};_0x21bb54[_0x515cc1(0x170)]=function(_0x4e74ab,_0x146e99){return _0x4e74ab!==_0x146e99;},_0x21bb54[_0x515cc1(0x125)]=function(_0x15a516,_0x2e9474){return _0x15a516===_0x2e9474;},_0x21bb54[_0x515cc1(0x1c1)]=_0x515cc1(0x147);const _0x6389ed=_0x21bb54;for(const [_0x1b369f,_0x2c12cc]of Object[_0x515cc1(0x1d5)](_0x2addee)){if(_0x6389ed[_0x515cc1(0x170)](_0x2c12cc,null)&&_0x6389ed[_0x515cc1(0x125)](typeof _0x2c12cc,_0x6389ed['Hjfcw'])&&!Array['isArray'](_0x2c12cc))_0x6a904b[_0x1b369f]=this['mergeObject'](_0x6a904b[_0x1b369f]||{},_0x2c12cc);else Array[_0x515cc1(0x1bd)](_0x2c12cc)?_0x6a904b[_0x1b369f]=(_0x6a904b[_0x1b369f]||[])[_0x515cc1(0x1a5)](_0x2c12cc):_0x6a904b[_0x1b369f]=_0x2c12cc;}return _0x6a904b;}}module[a85_0x3e77df(0x19c)]=CLIUtils;
1
+ const a85_0x34abc2=a85_0x2ce1;function a85_0x519f(){const _0x3cfa3d=['Yivnu','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','cli_version','Krytm','../../helpers/utilities','mtime','isBinaryBusy','skipSessionStatus','vgyJC','automationFrameworkDetail','Resolved\x20binary\x20path:\x20','aKCqx','development','CLI\x20version\x20found\x20despite\x20error:\x20\x22','0755','downloaded_file_','DOWNLOAD_HTTP','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','BAwfu','Failed\x20to\x20delete\x20zip\x20file:\x20','data','concat','close','7304670ynAvSR','Resolving\x20with\x20stdout:\x20\x22','lazyEntries','hALTr','LPNKm','ynwHW','mergeObject','SHELL_EXECUTE_ERROR','TDrQe','Folder\x20','split','VjTQP','28yDmwMm','code','getCurrentInstanceName','arch','end','IGQRv','testContextOptions','yteHP','fcpnR','downloadLatestBinary','FMlfl','map','../../helpers/performance/constants','VFwCJ','getSdkLanguage','MvwPK','3625296VOgajv','zctWK','GglNA','bVbur','uvCeg','../utils/constants','\x20from\x20','juMfv','BROWSERSTACK_FILES_DIR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','BaPsd','291400kVVCGf','oxFuN','util','.sock','GET','../../helpers/test-observability/utils.js','BROWSERSTACK_BINARY_URL','dBPke','binary-','chmod','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Downloading\x20SDK\x20binary\x20from:\x20','JtdIg','pipe','url','trim','HEPMG','follow-redirects','info','getSdkVersion','hmwIE','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','open','coWiY','AajQo','HOOK_REGEX','kPRzI','yauzl','\x20version','1335036EchLmc','getCliDir','.zip','format','UdmBN','OGvai','vPZVt','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','SDK_CLI_CHECK_UPDATE','oOpRi','Error\x20while\x20reading\x20CLI\x20path:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','shouldSkipSessionStatus','copyFileSync','cwd','filePath','BROWSERSTACK_CLI_ENV','5890654RHWGGB','testFrameworkDetail','checkAndUpdateCli','hNYCI','version','join','\x20already\x20exists','homedir','McZrF','statusCode','message','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','platform','.browserstack','vcvzB','unix:/tmp/sdk-platform-','nZMrg','openSync','MMgcO','Binary\x20is\x20busy:\x20','uCEJf','test','qUsGb','353049CyVVqA','statSync','child_process','timeout','kDRgW','142uazKbt','XBwGO','entry','readEntry','NOYVA','../../helpers/helper','ITSJF','iMUPE','MrKDq','shouldSkipSessionName','oInmC','warn','getWritableDir','10sXghol','Stskg','getCLIParamsForDevEnv','RgNPt','startsWith','getExistingCliPath','bcWIS','preserveStatusCodeOnError','unlink','requestToUpdateCLI','includes','createWriteStream','exports','vSKUm','stringify','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','AJzgC','UFDBj','filter',',\x20automationFramework=','SDK_CLI_DOWNLOAD','srqMb','pid','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','dKEzW','getTestFrameworkDetail','Development\x20Cli\x20Path:\x20','path','LmXAU','tcbdW','fileName','reduce','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','SoAqo','aJPbP','parse','runShellCommand','getAutomationFrameworkDetail','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','SFmJe','OhZbS','3|4|1|0|2','start','zyCIh','HTTP\x20','isArray','isDevelopmentEnv','../utils/apiUtilityMethods.js','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','spEpz','./instances/testFrameworkInstance.js','env','cBaoC','skipSessionName','readdirSync','downloadFileStream','./framework/constants/testFrameworkConstants.js','DZNwo','closeSync','../../helpers/performance/performance-tester.js','isFile','qnfns','worker_threads','rename','existsSync','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Setting\x20required\x20permissions\x20to\x20','once','error','../../../package.json','./state/hookState.js','frrpR','WjXuZ','debug','OSknw','matchHookRegex','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','jIiEb','RRDxl','response\x20','Current\x20CLI\x20Path\x20Found:\x20','eQlDD','wOsUO','4006xNOlre','CLIUtils'];a85_0x519f=function(){return _0x3cfa3d;};return a85_0x519f();}(function(_0x837852,_0x5010a7){const _0x4fd71c=a85_0x2ce1,_0x3c3009=_0x837852();while(!![]){try{const _0x5c8d86=-parseInt(_0x4fd71c(0x104))/0x1*(-parseInt(_0x4fd71c(0xa4))/0x2)+-parseInt(_0x4fd71c(0x9f))/0x3+parseInt(_0x4fd71c(0x129))/0x4*(-parseInt(_0x4fd71c(0x144))/0x5)+parseInt(_0x4fd71c(0x161))/0x6+parseInt(_0x4fd71c(0x172))/0x7+parseInt(_0x4fd71c(0x139))/0x8+-parseInt(_0x4fd71c(0x11d))/0x9*(parseInt(_0x4fd71c(0xb1))/0xa);if(_0x5c8d86===_0x5010a7)break;else _0x3c3009['push'](_0x3c3009['shift']());}catch(_0x49a92c){_0x3c3009['push'](_0x3c3009['shift']());}}}(a85_0x519f,0x715d7));function a85_0x2ce1(_0x300ee6,_0x14fdc4){const _0x519f63=a85_0x519f();return a85_0x2ce1=function(_0x2ce1bb,_0x47f8a9){_0x2ce1bb=_0x2ce1bb-0x92;let _0x440a89=_0x519f63[_0x2ce1bb];return _0x440a89;},a85_0x2ce1(_0x300ee6,_0x14fdc4);}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x34abc2(0xcc)),{exec}=require(a85_0x34abc2(0xa1)),{https}=require(a85_0x34abc2(0x155)),yauzl=require(a85_0x34abc2(0x15f)),util=require(a85_0x34abc2(0x146)),{getFrameworkVersion}=require(a85_0x34abc2(0x149)),{threadId}=require(a85_0x34abc2(0xef)),PerformanceTester=require(a85_0x34abc2(0xec)),{EVENTS:PerformanceEvents}=require(a85_0x34abc2(0x135)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x34abc2(0x10a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x34abc2(0xa9)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x34abc2(0x13e)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x34abc2(0xe3)),HookState=require(a85_0x34abc2(0xf7)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x34abc2(0xe9)),logger=createClassLogger(a85_0x34abc2(0x105)),{getBStackAPIUrl}=require(a85_0x34abc2(0xe0));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a85_0x34abc2(0xdf)](){const _0x5e5593=a85_0x34abc2,_0x133ca6={};_0x133ca6[_0x5e5593(0x120)]=function(_0x7ea1ce,_0xc122d7){return _0x7ea1ce===_0xc122d7;},_0x133ca6[_0x5e5593(0x122)]=_0x5e5593(0x112);const _0x2433f9=_0x133ca6;return _0x2433f9[_0x5e5593(0x120)](process[_0x5e5593(0xe4)][_0x5e5593(0x171)],_0x2433f9[_0x5e5593(0x122)]);}static[a85_0x34abc2(0xb3)](){const _0x419c0d=a85_0x34abc2,_0x221a32={};return _0x221a32['id']=process[_0x419c0d(0xe4)][_0x419c0d(0x171)],_0x221a32['listen']=_0x419c0d(0x97)+process[_0x419c0d(0xe4)][_0x419c0d(0x171)]+_0x419c0d(0x147),_0x221a32;}static[a85_0x34abc2(0x157)](){const _0x14933f=a85_0x34abc2,_0xda835b={'OSknw':function(_0x5aa38e,_0x38674f){return _0x5aa38e(_0x38674f);},'GglNA':_0x14933f(0xf6)};return _0xda835b[_0x14933f(0xfb)](require,_0xda835b[_0x14933f(0x13b)])[_0x14933f(0x176)];}static[a85_0x34abc2(0x137)](){const _0x16fa63=a85_0x34abc2,_0x170e40={};_0x170e40[_0x16fa63(0x96)]='node';const _0x33940f=_0x170e40;return _0x33940f[_0x16fa63(0x96)];}static async['setupCliPath'](_0x1074fc){const _0x108013=a85_0x34abc2,_0x92d5f1={'cbxvU':'Configuring\x20Cli\x20path.','oInmC':function(_0x3e1121,_0x3b6b07){return _0x3e1121(_0x3b6b07);},'AdBvX':function(_0xf346e5,_0x3d24b5){return _0xf346e5(_0x3d24b5);},'zEJjA':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x108013(0xfa)](_0x92d5f1['cbxvU']);const _0xc123f1=process['env']['SDK_CLI_BIN_PATH'];if(!_0x92d5f1[_0x108013(0xae)](isNullOrEmpty,_0xc123f1))return logger['debug'](_0x108013(0xcb)+_0xc123f1),_0xc123f1;try{const _0x36f0de=this[_0x108013(0x162)]();if(_0x92d5f1['AdBvX'](isNullOrEmpty,_0x36f0de))throw new Error(_0x92d5f1['zEJjA']);const _0x4d6072=this[_0x108013(0xb6)](_0x36f0de),_0xd93771=await this[_0x108013(0x174)](_0x4d6072,_0x36f0de,_0x1074fc);return logger['debug'](_0x108013(0x110)+_0xd93771),_0xd93771;}catch(_0x29a4d2){logger[_0x108013(0xfa)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x108013(0x164)](_0x29a4d2));}return null;}static async[a85_0x34abc2(0x174)](_0x39bc58,_0x224241,_0x37aa64){const _0x274e4e=a85_0x34abc2,_0x2a35ff={'NOYVA':function(_0x404e01){return _0x404e01();},'JtdIg':function(_0x61850d,_0x3f4330){return _0x61850d(_0x3f4330);},'chfdu':function(_0x9dba81,_0x23f3d3,_0x5cfe2f){return _0x9dba81(_0x23f3d3,_0x5cfe2f);},'EhJbF':_0x274e4e(0x11a),'VFwCJ':'url','wOsUO':function(_0x548fab,_0x5f5731,_0x182cdc){return _0x548fab(_0x5f5731,_0x182cdc);}};PerformanceTester['start'](PerformanceEvents[_0x274e4e(0x169)]);try{logger[_0x274e4e(0x156)](_0x274e4e(0x101)+_0x39bc58);const _0x3e1e6f=_0x2a35ff[_0x274e4e(0xa8)](getHostInfo),_0x43f424={'sdk_version':CLIUtils[_0x274e4e(0x157)](),'os':_0x3e1e6f[_0x274e4e(0x94)],'os_arch':_0x3e1e6f[_0x274e4e(0x12c)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2a35ff[_0x274e4e(0x150)](isNullOrEmpty,_0x39bc58)&&(_0x43f424[_0x274e4e(0x108)]=await this[_0x274e4e(0xd5)](_0x39bc58+_0x274e4e(0x160)));const _0x493362=await this[_0x274e4e(0xba)](_0x43f424,_0x37aa64);process[_0x274e4e(0xe4)]['BROWSERSTACK_BINARY_URL']&&(logger['info'](_0x274e4e(0x142)+process[_0x274e4e(0xe4)][_0x274e4e(0x14a)]),_0x493362[_0x274e4e(0x11a)][_0x274e4e(0x152)]=process[_0x274e4e(0xe4)][_0x274e4e(0x14a)]);if(_0x2a35ff['chfdu'](nestedKeyValue,_0x493362,[_0x2a35ff['EhJbF'],_0x2a35ff[_0x274e4e(0x136)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x43f424['cli_version']);if(!_0x2a35ff[_0x274e4e(0x150)](isNullOrEmpty,_0x39bc58)&&this[_0x274e4e(0x10c)](_0x39bc58))return logger[_0x274e4e(0xaf)](_0x274e4e(0x93)+_0x39bc58),_0x39bc58;return await this[_0x274e4e(0x132)](_0x2a35ff[_0x274e4e(0x103)](nestedKeyValue,_0x493362,[_0x2a35ff['EhJbF'],_0x2a35ff[_0x274e4e(0x136)]]),_0x224241);}return _0x39bc58;}finally{PerformanceTester[_0x274e4e(0x12d)](PerformanceEvents[_0x274e4e(0x169)]);}}static[a85_0x34abc2(0x162)](){const _0x301956=a85_0x34abc2,_0x1f815b={'kgMia':function(_0x29126f,_0x6edcac){return _0x29126f(_0x6edcac);},'jIiEb':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DZNwo':'cli','PCOAK':function(_0x32e9ae,_0x15bfb0){return _0x32e9ae(_0x15bfb0);}},_0x23a5d2=this[_0x301956(0xb0)]();try{if(_0x1f815b['kgMia'](isNullOrEmpty,_0x23a5d2))throw new Error(_0x1f815b[_0x301956(0xfe)]);const _0xc71035=path[_0x301956(0x177)](_0x23a5d2,_0x1f815b[_0x301956(0xea)]);return!fs[_0x301956(0xf1)](_0xc71035)&&_0x1f815b['PCOAK'](createDir,_0xc71035),_0xc71035;}catch(_0x53d51e){logger[_0x301956(0xfa)](_0x301956(0xf2)+util[_0x301956(0x164)](_0x53d51e));}}static['getWritableDir'](){const _0x58769c=a85_0x34abc2,_0x1212be={'ITSJF':_0x58769c(0x95),'LmVtL':function(_0x5f1044,_0x2c5f23){return _0x5f1044(_0x2c5f23);},'LmXAU':function(_0x32a46a,_0x44c204){return _0x32a46a(_0x44c204);},'uhNDB':function(_0x47d9eb,_0x3e0079){return _0x47d9eb(_0x3e0079);},'Yivnu':function(_0x1a23d3,_0x4c29d8){return _0x1a23d3(_0x4c29d8);},'RgNPt':function(_0x55382b,_0x8bc29f){return _0x55382b(_0x8bc29f);},'cBaoC':function(_0x323cf4,_0x3fc758){return _0x323cf4(_0x3fc758);}},_0x19fcd1=[process['env'][_0x58769c(0x141)],path[_0x58769c(0x177)](os[_0x58769c(0x179)](),_0x1212be['ITSJF']),path[_0x58769c(0x177)](os['tmpdir'](),_0x1212be[_0x58769c(0xaa)])];for(const _0x28535b of _0x19fcd1){if(_0x1212be['LmVtL'](isNullOrEmpty,_0x28535b))continue;try{if(fs[_0x58769c(0xf1)](_0x28535b)){logger[_0x58769c(0xfa)](_0x58769c(0x126)+_0x28535b+_0x58769c(0x178));if(!_0x1212be[_0x58769c(0xcd)](isModifiable,_0x28535b)){logger['debug'](_0x58769c(0xf3)+_0x28535b);const _0x1e3720=_0x1212be['uhNDB'](setReadWriteExecuteAccess,_0x28535b);if(!_0x1212be[_0x58769c(0x106)](isTrue,_0x1e3720)){logger[_0x58769c(0xaf)](_0x58769c(0x117)+_0x28535b);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x28535b),_0x1212be[_0x58769c(0xb4)](createDir,_0x28535b),logger[_0x58769c(0xfa)](_0x58769c(0xf3)+_0x28535b);const _0x35a618=_0x1212be[_0x58769c(0xe5)](setReadWriteExecuteAccess,_0x28535b);!_0x1212be[_0x58769c(0x106)](isTrue,_0x35a618)&&logger[_0x58769c(0xaf)](_0x58769c(0x117)+_0x28535b);}return _0x28535b;}catch(_0x5962ae){logger[_0x58769c(0xf5)](_0x58769c(0x14e)+util[_0x58769c(0x164)](_0x5962ae));}}return null;}static[a85_0x34abc2(0xb6)](_0x30f840){const _0xdf9630=a85_0x34abc2,_0x35db46={};_0x35db46['yteHP']=function(_0x1474c7,_0x28f1e5){return _0x1474c7>_0x28f1e5;};const _0x4ba108=_0x35db46;try{if(!fs[_0xdf9630(0xf1)](_0x30f840)||!fs[_0xdf9630(0xa0)](_0x30f840)['isDirectory']())return'';const _0x4f9097=fs[_0xdf9630(0xe7)](_0x30f840)[_0xdf9630(0x134)](_0x27c9c0=>path[_0xdf9630(0x177)](_0x30f840,_0x27c9c0))[_0xdf9630(0xc3)](_0x5dd8bd=>fs[_0xdf9630(0xa0)](_0x5dd8bd)[_0xdf9630(0xed)]()&&path['basename'](_0x5dd8bd)[_0xdf9630(0xb5)](_0xdf9630(0x14c)));if(_0x4ba108[_0xdf9630(0x130)](_0x4f9097['length'],0x0)){const _0x158654=_0x4f9097[_0xdf9630(0x134)](_0x1661d9=>({'filePath':_0x1661d9,'mtime':fs[_0xdf9630(0xa0)](_0x1661d9)[_0xdf9630(0x10b)]}))[_0xdf9630(0xd0)]((_0x15b178,_0x3b4f21)=>{const _0x2ce015=_0xdf9630;if(!_0x15b178||!_0x15b178['mtime'])return _0x3b4f21;if(_0x4ba108[_0x2ce015(0x130)](_0x3b4f21[_0x2ce015(0x10b)],_0x15b178['mtime']))return _0x3b4f21;return _0x15b178;},{});return _0x158654?_0x158654[_0xdf9630(0x170)]:'';}return'';}catch(_0x206b93){return logger[_0xdf9630(0xf5)](_0xdf9630(0x16b)+util[_0xdf9630(0x164)](_0x206b93)),'';}}static [a85_0x34abc2(0xba)]=async(_0x11cc8d,_0x34b04a)=>{const _0x49e059=a85_0x34abc2,_0x2c6fe8={'tcbdW':function(_0x379509,_0x166128,_0x36707c,_0x4bd1fe,_0x289cbb){return _0x379509(_0x166128,_0x36707c,_0x4bd1fe,_0x289cbb);},'zyCIh':_0x49e059(0x148)},_0x2a3879={};_0x2a3879['qs']=_0x11cc8d,_0x2a3879[_0x49e059(0xb8)]=!![];const _0x4489df=await _0x2c6fe8[_0x49e059(0xce)](nodeRequest,_0x2c6fe8[_0x49e059(0xdc)],UPDATED_CLI_ENDPOINT,_0x2a3879,_0x34b04a);return logger[_0x49e059(0xfa)](_0x49e059(0x100)+JSON[_0x49e059(0xbf)](_0x4489df)),_0x4489df;};static['isBinaryBusy'](_0x491b16){const _0x3d44ba=a85_0x34abc2;try{const _0xd5db54=fs[_0x3d44ba(0x99)](_0x491b16,'r+');return fs[_0x3d44ba(0xeb)](_0xd5db54),![];}catch(_0x9bbcae){if(BINARY_BUSY_ERROR_CODES['includes'](_0x9bbcae[_0x3d44ba(0x12a)]))return logger[_0x3d44ba(0xfa)](_0x3d44ba(0x9b)+_0x491b16),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x9bbcae[_0x3d44ba(0x92)]),![];}}static[a85_0x34abc2(0xd5)](_0x5b7e57,_0x3fdc34=''){const _0x1ccfff=a85_0x34abc2,_0x1ab1a5={'aKCqx':function(_0x23936f,_0x29c766){return _0x23936f(_0x29c766);},'dKEzW':_0x1ccfff(0x124),'Krytm':_0x1ccfff(0x176),'nZMrg':function(_0x3f16a4,_0x43da25){return _0x3f16a4(_0x43da25);},'eOxZy':function(_0x2ca664,_0xa984b,_0x4b1757,_0x30666d){return _0x2ca664(_0xa984b,_0x4b1757,_0x30666d);},'YknnE':_0x1ccfff(0xf5)};return new Promise((_0x4f5dc0,_0x1019e7)=>{const _0x418cdd=_0x1ccfff,_0x899527={'spEpz':_0x1ab1a5[_0x418cdd(0x109)],'coWiY':function(_0x4b5d56,_0x62fa31){return _0x1ab1a5['aKCqx'](_0x4b5d56,_0x62fa31);},'uAoQP':function(_0xc8fa29,_0x2a9261){const _0x6b61e8=_0x418cdd;return _0x1ab1a5[_0x6b61e8(0x98)](_0xc8fa29,_0x2a9261);},'WjXuZ':_0x1ab1a5['dKEzW']},_0x4cd340={};_0x4cd340[_0x418cdd(0x16f)]=_0x3fdc34,_0x4cd340[_0x418cdd(0xa2)]=0x1388;const _0x27f664=_0x1ab1a5['eOxZy'](exec,_0x5b7e57,_0x4cd340,(_0x2779e9,_0x288e37,_0x53e8e3)=>{const _0x2dffff=_0x418cdd;if(_0x2779e9){if(_0x5b7e57[_0x2dffff(0xbb)](_0x899527[_0x2dffff(0xe2)])&&(_0x288e37[_0x2dffff(0x153)]()||_0x53e8e3['trim']())){const _0x49f217=_0x288e37[_0x2dffff(0x153)]()||_0x53e8e3[_0x2dffff(0x153)]();logger[_0x2dffff(0xfa)](_0x2dffff(0x113)+_0x49f217+'\x22'),_0x899527['coWiY'](_0x4f5dc0,_0x49f217);}else _0x899527['uAoQP'](_0x4f5dc0,_0x53e8e3['trim']()||_0x899527[_0x2dffff(0xf9)]);}else logger[_0x2dffff(0xfa)](_0x2dffff(0x11e)+_0x288e37[_0x2dffff(0x153)]()+'\x22'),_0x899527[_0x2dffff(0x15b)](_0x4f5dc0,_0x288e37[_0x2dffff(0x153)]());});_0x27f664['on'](_0x1ab1a5['YknnE'],()=>{const _0x10560a=_0x418cdd;_0x1ab1a5[_0x10560a(0x111)](_0x4f5dc0,_0x1ab1a5[_0x10560a(0xc9)]);});});}static [a85_0x34abc2(0x132)]=async(_0x4654e8,_0x3b1fbd)=>{const _0x2ea3b9=a85_0x34abc2,_0x583bd2={'hmwIE':_0x2ea3b9(0x159),'bVbur':function(_0x2bfd30,_0x254efd){return _0x2bfd30(_0x254efd);},'iMUPE':_0x2ea3b9(0x107),'XBwGO':function(_0x440926,_0x9cca49){return _0x440926>=_0x9cca49;},'kPRzI':_0x2ea3b9(0x116),'OGvai':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','SoAqo':_0x2ea3b9(0xf5),'uvCeg':_0x2ea3b9(0x16c)};PerformanceTester[_0x2ea3b9(0xdb)](PerformanceEvents[_0x2ea3b9(0xc5)]),logger['debug'](_0x2ea3b9(0x14f)+_0x4654e8);try{const _0x3bc10d=url['parse'](_0x4654e8),_0x974bb=path[_0x2ea3b9(0x177)](_0x3b1fbd,_0x2ea3b9(0x115)+process[_0x2ea3b9(0xc7)]+_0x2ea3b9(0x163)),_0x37a43f=fs['createWriteStream'](_0x974bb);return new Promise((_0x48eba8,_0x1eafe5)=>{const _0xde3937=_0x2ea3b9,_0x38ca45={'VjTQP':_0x583bd2[_0xde3937(0x158)],'MMgcO':function(_0x263366,_0x240805){const _0x4ffa8f=_0xde3937;return _0x583bd2[_0x4ffa8f(0x13c)](_0x263366,_0x240805);},'OhZbS':_0x583bd2[_0xde3937(0xab)],'aJPbP':function(_0x1f861d,_0x3fdb5d){const _0x4221c1=_0xde3937;return _0x583bd2[_0x4221c1(0xa5)](_0x1f861d,_0x3fdb5d);},'McZrF':_0x583bd2[_0xde3937(0x15e)],'srqMb':_0x583bd2[_0xde3937(0x166)],'LPNKm':function(_0x404af9,_0xc78eef){const _0x2bc7ac=_0xde3937;return _0x583bd2[_0x2bc7ac(0x13c)](_0x404af9,_0xc78eef);},'dBPke':_0x583bd2[_0xde3937(0xd2)]};https['get'](_0x3bc10d,function(_0x1233c8){const _0x1701b1=_0xde3937,_0x402c51={'TElNG':_0x38ca45[_0x1701b1(0xd9)],'eQlDD':function(_0x9cbdf4,_0x1ca4d8){const _0x575635=_0x1701b1;return _0x38ca45[_0x575635(0x9a)](_0x9cbdf4,_0x1ca4d8);}},_0x3ef39a=null;if(_0x1233c8[_0x1701b1(0x17b)]&&_0x38ca45[_0x1701b1(0xd3)](_0x1233c8[_0x1701b1(0x17b)],0x190)){const _0x297b18=new Error(_0x1701b1(0xe1)+_0x1233c8[_0x1701b1(0x17b)]+_0x1701b1(0x13f)+_0x4654e8);_0x297b18[_0x1701b1(0x12a)]=_0x38ca45[_0x1701b1(0x17a)],_0x297b18[_0x1701b1(0x17b)]=_0x1233c8[_0x1701b1(0x17b)],logger[_0x1701b1(0xf5)](util[_0x1701b1(0x164)](_0x38ca45[_0x1701b1(0xc6)],_0x1233c8[_0x1701b1(0x17b)])),PerformanceTester[_0x1701b1(0x12d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x1701b1(0xdd)+_0x1233c8[_0x1701b1(0x17b)]),_0x1233c8['resume'](),_0x37a43f['destroy'](),fs[_0x1701b1(0xb9)](_0x974bb,()=>{}),_0x38ca45[_0x1701b1(0x121)](_0x1eafe5,_0x297b18);return;}_0x1233c8[_0x1701b1(0x151)](_0x37a43f),_0x1233c8['on'](_0x38ca45[_0x1701b1(0x14b)],function(_0xb275f8){const _0x351d88=_0x1701b1;logger[_0x351d88(0xf5)](util['format'](_0x402c51['TElNG'],_0xb275f8)),PerformanceTester[_0x351d88(0x12d)](PerformanceEvents[_0x351d88(0xc5)],![],util[_0x351d88(0x164)](_0xb275f8)),_0x402c51[_0x351d88(0x102)](_0x1eafe5,_0xb275f8);}),_0x37a43f['on'](_0x38ca45[_0x1701b1(0x14b)],function(_0x39d071){const _0x55bb6f=_0x1701b1;logger[_0x55bb6f(0xf5)](util['format'](_0x38ca45[_0x55bb6f(0x128)],_0x39d071)),PerformanceTester[_0x55bb6f(0x12d)](PerformanceEvents[_0x55bb6f(0xc5)],![],util[_0x55bb6f(0x164)](_0x39d071)),_0x38ca45[_0x55bb6f(0x9a)](_0x1eafe5,_0x39d071);}),CLIUtils[_0x1701b1(0xe8)](_0x37a43f,_0x3ef39a,_0x974bb,_0x3b1fbd,_0x348c2d=>{const _0xa319bd=_0x1701b1;PerformanceTester[_0xa319bd(0x12d)](PerformanceEvents[_0xa319bd(0xc5)]),_0x38ca45[_0xa319bd(0x9a)](_0x48eba8,_0x348c2d);},_0x23613d=>{const _0x32a4c8=_0x1701b1;PerformanceTester[_0x32a4c8(0x12d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x32a4c8(0x164)](_0x23613d)),_0x402c51[_0x32a4c8(0x102)](_0x1eafe5,_0x23613d);});})['on'](_0x583bd2['SoAqo'],function(_0x96e052){const _0x190230=_0xde3937;logger[_0x190230(0xf5)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x190230(0x164)](_0x96e052)),PerformanceTester[_0x190230(0x12d)](PerformanceEvents[_0x190230(0xc5)],![],util[_0x190230(0x164)](_0x96e052)),_0x38ca45['MMgcO'](_0x1eafe5,_0x96e052);});});}catch(_0x369fed){PerformanceTester[_0x2ea3b9(0x12d)](PerformanceEvents[_0x2ea3b9(0xc5)],![],util[_0x2ea3b9(0x164)](_0x369fed)),logger[_0x2ea3b9(0xf5)](util[_0x2ea3b9(0x164)](_0x583bd2[_0x2ea3b9(0x13d)],_0x369fed));throw _0x369fed;}};static[a85_0x34abc2(0xe8)](_0x236897,_0x144d62,_0xf3b245,_0x16b2a5,_0x2b87e9,_0xbdcec3){const _0x4f2168=a85_0x34abc2,_0x1a33aa={'hNYCI':function(_0x246103,_0x356c48){return _0x246103(_0x356c48);},'TDrQe':_0x4f2168(0x11c),'SFmJe':_0x4f2168(0x12d),'UFDBj':function(_0x14481e,_0x109a17){return _0x14481e!==_0x109a17;},'HEPMG':function(_0x163d17,_0x4a8fa0){return _0x163d17(_0x4a8fa0);},'uCEJf':_0x4f2168(0xf5),'rnsRW':'EXDEV','juMfv':function(_0x25f313,_0x3cf6de){return _0x25f313(_0x3cf6de);},'FMlfl':function(_0x1c8917,_0x11488e){return _0x1c8917(_0x11488e);},'Stskg':function(_0x31dc9a,_0x5237af){return _0x31dc9a(_0x5237af);},'oxFuN':_0x4f2168(0xa6),'pFHhZ':_0x4f2168(0x114)};_0x236897['on'](_0x1a33aa[_0x4f2168(0x125)],function(){const _0x41beb9=_0x4f2168,_0xc84515={'frrpR':function(_0x15644b,_0x405c25){const _0x2537c1=a85_0x2ce1;return _0x1a33aa[_0x2537c1(0x133)](_0x15644b,_0x405c25);},'bcWIS':_0x1a33aa['pFHhZ']},_0xcfb3e5={};_0xcfb3e5[_0x41beb9(0x11f)]=!![],yauzl[_0x41beb9(0x15a)](_0xf3b245,_0xcfb3e5,function(_0x412c66,_0x2a8ce0){const _0x11d5a6=_0x41beb9,_0x27c11e={'IGQRv':function(_0x4fa8da,_0x2c39a6){const _0x552fcc=a85_0x2ce1;return _0x1a33aa[_0x552fcc(0x175)](_0x4fa8da,_0x2c39a6);},'vgyJC':_0x1a33aa['TDrQe'],'vSKUm':_0x1a33aa[_0x11d5a6(0xd8)],'vPZVt':function(_0x507cc2,_0xe9df3e){return _0x1a33aa['UFDBj'](_0x507cc2,_0xe9df3e);},'eRAVZ':function(_0x5a0d3f,_0x20398e){const _0x328fc0=_0x11d5a6;return _0x1a33aa[_0x328fc0(0x175)](_0x5a0d3f,_0x20398e);},'MvwPK':function(_0x4d35ff,_0x5b955b){const _0x4ebd61=_0x11d5a6;return _0x1a33aa[_0x4ebd61(0x154)](_0x4d35ff,_0x5b955b);},'lIZBL':_0x1a33aa[_0x11d5a6(0x9c)],'MrKDq':function(_0x8fe41c,_0x397ce8){const _0x459f31=_0x11d5a6;return _0x1a33aa[_0x459f31(0xc2)](_0x8fe41c,_0x397ce8);},'qnfns':_0x1a33aa['rnsRW'],'AajQo':function(_0x5b30b6,_0x134767){const _0x371bc3=_0x11d5a6;return _0x1a33aa[_0x371bc3(0x140)](_0x5b30b6,_0x134767);},'UdmBN':function(_0x79024a,_0x192577){return _0x1a33aa['FMlfl'](_0x79024a,_0x192577);}};if(_0x412c66){_0x1a33aa[_0x11d5a6(0xb2)](_0xbdcec3,_0x412c66);return;}_0x2a8ce0[_0x11d5a6(0xa7)](),_0x2a8ce0['on'](_0x1a33aa[_0x11d5a6(0x145)],_0x57f9c1=>{const _0x24a3a5=_0x11d5a6,_0x3999ba={'hJuzR':_0x27c11e[_0x24a3a5(0x10e)],'fcpnR':function(_0x404e47,_0x2a8ad5){const _0xf549a=_0x24a3a5;return _0x27c11e[_0xf549a(0x12e)](_0x404e47,_0x2a8ad5);},'kdJNN':_0x27c11e[_0x24a3a5(0xbe)]};if(/\/$/[_0x24a3a5(0x9d)](_0x57f9c1['fileName'])){_0x2a8ce0[_0x24a3a5(0xa7)]();return;}!_0x144d62&&(_0x144d62=_0x57f9c1[_0x24a3a5(0xcf)]);if(_0x27c11e[_0x24a3a5(0x167)](_0x57f9c1['fileName'],_0x144d62))_0x2a8ce0[_0x24a3a5(0xa7)]();else{const _0x223287=_0x57f9c1[_0x24a3a5(0xcf)],_0xac1cf5=path['join'](_0x16b2a5,_0x223287+'.tmp.'+process[_0x24a3a5(0xc7)]);let _0x1e2cfa;try{_0x1e2cfa=fs[_0x24a3a5(0xbc)](_0xac1cf5);}catch(_0x389987){if(BINARY_BUSY_ERROR_CODES[_0x24a3a5(0xbb)](_0x389987['code'])){const _0x776c58=path[_0x24a3a5(0x177)](_0x16b2a5,_0x223287);if(fs[_0x24a3a5(0xf1)](_0x776c58)){logger[_0x24a3a5(0xaf)](_0x24a3a5(0xd1)+_0x223287),fs[_0x24a3a5(0xb9)](_0xf3b245,_0x3a2270=>{const _0xa4a3f9=_0x24a3a5;_0x3a2270&&logger[_0xa4a3f9(0xaf)](_0xa4a3f9(0x119)+_0xf3b245);}),_0x27c11e['eRAVZ'](_0x2b87e9,_0x776c58);return;}logger[_0x24a3a5(0xaf)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x223287);}_0x27c11e[_0x24a3a5(0x138)](_0xbdcec3,_0x389987);return;}_0x1e2cfa['on'](_0x27c11e['lIZBL'],_0x48a7a0=>{const _0x19f4b3=_0x24a3a5;if(BINARY_BUSY_ERROR_CODES[_0x19f4b3(0xbb)](_0x48a7a0['code'])){const _0x2afc15=path[_0x19f4b3(0x177)](_0x16b2a5,_0x223287);_0x1e2cfa['close'](),fs['existsSync'](_0x2afc15)?(logger[_0x19f4b3(0xaf)](_0x19f4b3(0xc8)+_0x48a7a0[_0x19f4b3(0x92)]),_0x2a8ce0[_0x19f4b3(0x11c)](),fs['unlink'](_0xf3b245,_0x72b455=>{const _0x41baea=_0x19f4b3;_0x72b455&&logger[_0x41baea(0xaf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xf3b245);}),_0x27c11e[_0x19f4b3(0x12e)](_0x2b87e9,_0x2afc15)):(logger[_0x19f4b3(0xaf)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x48a7a0[_0x19f4b3(0x92)]),fs[_0x19f4b3(0xb9)](_0xac1cf5,()=>{}),_0x27c11e[_0x19f4b3(0x12e)](_0xbdcec3,_0x48a7a0));}else fs[_0x19f4b3(0xb9)](_0xac1cf5,()=>{}),_0x27c11e[_0x19f4b3(0x12e)](_0xbdcec3,_0x48a7a0);}),_0x2a8ce0['openReadStream'](_0x57f9c1,function(_0x350da7,_0x39fd63){const _0x40eba5=_0x24a3a5;if(_0x350da7){fs['unlink'](_0xac1cf5,()=>{}),_0x3999ba[_0x40eba5(0x131)](_0xbdcec3,_0x350da7);return;}_0x39fd63['on'](_0x3999ba['kdJNN'],function(){const _0x1992f4=_0x40eba5;_0x1e2cfa[_0x1992f4(0x12d)](),_0x1e2cfa['on'](_0x3999ba['hJuzR'],function(){const _0x1c06e9=_0x1992f4;_0x2a8ce0[_0x1c06e9(0xa7)]();});}),_0x39fd63[_0x40eba5(0x151)](_0x1e2cfa);});}}),_0x2a8ce0['on'](_0x1a33aa[_0x11d5a6(0x9c)],_0x29de0c=>{const _0x5d0534=_0x11d5a6;_0xc84515[_0x5d0534(0xf8)](_0xbdcec3,_0x29de0c);}),_0x2a8ce0[_0x11d5a6(0xf4)](_0x1a33aa['SFmJe'],()=>{const _0x245330=_0x11d5a6;fs['unlink'](_0xf3b245,_0x233afb=>{const _0x253284=a85_0x2ce1;_0x233afb&&logger[_0x253284(0xaf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xf3b245);});const _0x52fc68=path[_0x245330(0x177)](_0x16b2a5,_0x144d62+'.tmp.'+process[_0x245330(0xc7)]),_0x60106b=path[_0x245330(0x177)](_0x16b2a5,_0x144d62);fs[_0x245330(0x14d)](_0x52fc68,_0xc84515[_0x245330(0xb7)],function(_0x9cbf17){const _0x426a6c=_0x245330,_0x5ee347={'zctWK':function(_0x41ea90,_0x48ebf8){const _0x14c833=a85_0x2ce1;return _0x27c11e[_0x14c833(0xac)](_0x41ea90,_0x48ebf8);},'BaPsd':_0x27c11e[_0x426a6c(0xee)],'qUsGb':function(_0x5ad799,_0x2a1153){const _0x370042=_0x426a6c;return _0x27c11e[_0x370042(0x15c)](_0x5ad799,_0x2a1153);}};if(_0x9cbf17){_0x2a8ce0[_0x426a6c(0x11c)](),fs[_0x426a6c(0xb9)](_0x52fc68,()=>{}),_0x27c11e[_0x426a6c(0x165)](_0xbdcec3,_0x9cbf17);return;}fs[_0x426a6c(0xf0)](_0x52fc68,_0x60106b,function(_0x3e877a){const _0x2b9f1d=_0x426a6c;if(_0x3e877a){if(_0x5ee347[_0x2b9f1d(0x13a)](_0x3e877a[_0x2b9f1d(0x12a)],_0x5ee347[_0x2b9f1d(0x143)])){_0x2a8ce0[_0x2b9f1d(0x11c)](),fs[_0x2b9f1d(0xb9)](_0x52fc68,()=>{}),_0x5ee347[_0x2b9f1d(0x9e)](_0xbdcec3,_0x3e877a);return;}logger[_0x2b9f1d(0xaf)](_0x2b9f1d(0x168)+_0x3e877a[_0x2b9f1d(0x92)]);try{fs[_0x2b9f1d(0x16e)](_0x52fc68,_0x60106b);}catch(_0x42c075){_0x2a8ce0[_0x2b9f1d(0x11c)](),fs['unlink'](_0x52fc68,()=>{}),_0x5ee347[_0x2b9f1d(0x9e)](_0xbdcec3,_0x42c075);return;}fs[_0x2b9f1d(0xb9)](_0x52fc68,_0x5a38ea=>{const _0x3a139d=_0x2b9f1d;_0x5a38ea&&logger[_0x3a139d(0xaf)](_0x3a139d(0xfd)+_0x5a38ea[_0x3a139d(0x92)]);});}_0x2a8ce0[_0x2b9f1d(0x11c)](),_0x5ee347['qUsGb'](_0x2b87e9,_0x60106b);});});});});});}static[a85_0x34abc2(0xca)](){const _0x394bc3=a85_0x34abc2;if(process[_0x394bc3(0xe4)][_0x394bc3(0xd7)])return JSON[_0x394bc3(0xd4)](process[_0x394bc3(0xe4)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x34abc2(0xd6)](){const _0x31899d=a85_0x34abc2;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x31899d(0xd4)](process[_0x31899d(0xe4)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x31899d(0x10f)];}static['setFrameworkDetail'](_0x5e5e85,_0x510cf9){const _0x13bb69=a85_0x34abc2,_0x2a47c1={'BAwfu':_0x13bb69(0xda),'oOpRi':function(_0x2bcd2e,_0x3ff6ea){return _0x2bcd2e(_0x3ff6ea);},'kDRgW':function(_0x79026a,_0x2d2c27){return _0x79026a||_0x2d2c27;}},_0x5a025f=_0x2a47c1[_0x13bb69(0x118)][_0x13bb69(0x127)]('|');let _0x4cf136=0x0;while(!![]){switch(_0x5a025f[_0x4cf136++]){case'0':process[_0x13bb69(0xe4)][_0x13bb69(0xc0)]=JSON['stringify'](this[_0x13bb69(0x10f)]);continue;case'1':this[_0x13bb69(0x10f)]={'name':_0x510cf9,'version':_0x2a47c1[_0x13bb69(0x16a)](getFrameworkVersion,_0x510cf9)};continue;case'2':process[_0x13bb69(0xe4)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x13bb69(0xbf)](this[_0x13bb69(0x173)]);continue;case'3':_0x2a47c1[_0x13bb69(0xa3)](!_0x5e5e85,!_0x510cf9)&&logger[_0x13bb69(0xfa)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x5e5e85+_0x13bb69(0xc4)+_0x510cf9);continue;case'4':this[_0x13bb69(0x173)]={'name':_0x5e5e85,'version':{[_0x5e5e85]:_0x2a47c1[_0x13bb69(0x16a)](getFrameworkVersion,_0x5e5e85)}};continue;}break;}}static['getHookRegistryKey'](_0x38f206,_0x37d692){return _0x38f206+':'+_0x37d692;}static[a85_0x34abc2(0x12b)](){const _0x238341=a85_0x34abc2;return process[_0x238341(0xc7)]+':'+threadId;}static[a85_0x34abc2(0xad)](_0x17af19){const _0x29cf80=a85_0x34abc2;if(_0x17af19[_0x29cf80(0x12f)]&&_0x17af19['testContextOptions'][_0x29cf80(0xe6)])return!![];return![];}static[a85_0x34abc2(0x16d)](_0x4eaccc){const _0x2d369e=a85_0x34abc2;if(_0x4eaccc[_0x2d369e(0x12f)]&&_0x4eaccc[_0x2d369e(0x12f)][_0x2d369e(0x10d)])return!![];return![];}static[a85_0x34abc2(0xfc)](_0x48769c){const _0x18e816=a85_0x34abc2,_0x506266=new RegExp(TestFrameworkConstants[_0x18e816(0x15d)]);return _0x506266[_0x18e816(0x9d)](_0x48769c);}static[a85_0x34abc2(0x123)](_0x45564f,_0x4401a6){const _0x495dec=a85_0x34abc2,_0x21f2a9={};_0x21f2a9[_0x495dec(0xc1)]=function(_0x445611,_0x211f46){return _0x445611!==_0x211f46;},_0x21f2a9[_0x495dec(0xff)]=function(_0x326348,_0x49f2d3){return _0x326348===_0x49f2d3;},_0x21f2a9['LoqFx']='object';const _0x2e70d2=_0x21f2a9;for(const [_0x12a5c4,_0x4be875]of Object['entries'](_0x4401a6)){if(_0x2e70d2[_0x495dec(0xc1)](_0x4be875,null)&&_0x2e70d2[_0x495dec(0xff)](typeof _0x4be875,_0x2e70d2['LoqFx'])&&!Array[_0x495dec(0xde)](_0x4be875))_0x45564f[_0x12a5c4]=this[_0x495dec(0x123)](_0x45564f[_0x12a5c4]||{},_0x4be875);else Array[_0x495dec(0xde)](_0x4be875)?_0x45564f[_0x12a5c4]=(_0x45564f[_0x12a5c4]||[])[_0x495dec(0x11b)](_0x4be875):_0x45564f[_0x12a5c4]=_0x4be875;}return _0x45564f;}}module[a85_0x34abc2(0xbd)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';function a86_0x3fed(_0x24dc2a,_0x3eddf9){const _0x319625=a86_0x3196();return a86_0x3fed=function(_0x3feda3,_0x302715){_0x3feda3=_0x3feda3-0xe2;let _0x4cc281=_0x319625[_0x3feda3];return _0x4cc281;},a86_0x3fed(_0x24dc2a,_0x3eddf9);}function a86_0x3196(){const _0x26438b=['CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getInstance','RBtSr','./browserstackCLI','debug','./state/testFrameworkState','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','getTestLevelTags','GbIyV','now','KEY_TEST_ID','vHeAE','join','keys','zWbeg','MODULE_NAME','testLevelTags','env','mEWJN','statSync','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','./state/hookState','mergeIntoTags','mergeBuildLevelTags','./cliUtils','getTestDetails','QnVDa','ieQIC','endsWith','parse','unlinkSync','readFileSync','VkqvD','currentTest','./modules/playwrightDriverModule','dzFCL','retry','isArray','values','39842bIovOr','stringify','DvOus','toLowerCase','.json','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','./framework/automationFramework','15nPpFhv','fqkqV','KEY_CUSTOM_TAGS','filter','\x20->\x20values=','getBuildLevelTags','rlLsW','multi_dropdown',',\x20finalTags=','TEST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','from','setCustomTags','QNBvQ','nPyzR','getBuildTagsFilePath','tmpdir','readdirSync','testhubConfig','sFlCn','laJSp','CustomTagManager','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','3866390LKvVFX','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','mtimeMs','get','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','path','bstack_build_tags_','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','qdKeT','vvFat','lklVZ','../../helpers/classLogger','mergeValues','startsWith','4993268EWpjME','13131UJzJtm','./TestInfo','jest','getState','HOKov','length','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','includes','uDSqX','qOFIE','parseCommaSeparatedValues','rLIUE','getTestFrameworkDetail','clearTags','isRunning','null','qMPIg','string','getTestFramework','entries','buildLevelTags','GBgvm','modules','trim','toObject','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','ms)\x20','fjkom','ToKrv','637734HAGuDL','setTestDetails',',\x20existingTags=','pid','resolveInstance','46120xMLqpq','oNWQW','bgCBO','./modules/testhubModule','aggregateBuildLevelTagsFromTmp','zQacB','11336QoEgae','sbNqL','tofSS','KmCqO','getTestUUID','__workerDetails',',\x20values=','writeFile','exports','field_type','getTrackedInstance','624156bvwOeN','getBuildTagsRunId','getTestIdentifierFromTestInfo','message'];a86_0x3196=function(){return _0x26438b;};return a86_0x3196();}const a86_0x39d494=a86_0x3fed;(function(_0x3bdab6,_0xb6fc6a){const _0x365dae=a86_0x3fed,_0x1eeac8=_0x3bdab6();while(!![]){try{const _0x4b345c=-parseInt(_0x365dae(0x15d))/0x1+parseInt(_0x365dae(0x120))/0x2*(-parseInt(_0x365dae(0x164))/0x3)+parseInt(_0x365dae(0x131))/0x4+-parseInt(_0x365dae(0xed))/0x5+-parseInt(_0x365dae(0x11b))/0x6+-parseInt(_0x365dae(0xfb))/0x7+-parseInt(_0x365dae(0x126))/0x8*(-parseInt(_0x365dae(0xfc))/0x9);if(_0x4b345c===_0xb6fc6a)break;else _0x1eeac8['push'](_0x1eeac8['shift']());}catch(_0x41ce20){_0x1eeac8['push'](_0x1eeac8['shift']());}}}(a86_0x3196,0x74111));const fs=require('fs'),os=require('os'),path=require(a86_0x39d494(0xf2)),helper=require('../../helpers/helper'),AutomationFramework=require(a86_0x39d494(0x163)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a86_0x39d494(0x158)),TestInfo=require(a86_0x39d494(0xfd)),TestHubModule=require(a86_0x39d494(0x123)),{createClassLogger}=require(a86_0x39d494(0xf8)),logger=createClassLogger(a86_0x39d494(0xeb)),BUILD_TAG_FILE_PREFIX=a86_0x39d494(0xf3);function getBuildTagsRunId(){const _0x448708=a86_0x39d494,_0x5bba3f={};_0x5bba3f[_0x448708(0xea)]=function(_0x495efd,_0xb101a2){return _0x495efd===_0xb101a2;},_0x5bba3f[_0x448708(0x156)]=_0x448708(0x10c);const _0x18334e=_0x5bba3f,_0x436c95=process[_0x448708(0x147)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x436c95||_0x18334e['laJSp'](_0x436c95,_0x18334e[_0x448708(0x156)]))return null;return _0x436c95;}function getBuildTagsFilePath(_0x3c3077){const _0x46dfc6=a86_0x39d494;return path['join'](os[_0x46dfc6(0xe6)](),''+BUILD_TAG_FILE_PREFIX+_0x3c3077+'_'+process[_0x46dfc6(0x11e)]+_0x46dfc6(0x161));}class CustomTagManager{static [a86_0x39d494(0x111)]={};static [a86_0x39d494(0x146)]={};static['mergeValues'](_0x571681,_0x35d266){const _0x670790=a86_0x39d494;return Array[_0x670790(0x16f)](new Set([..._0x571681||[],..._0x35d266||[]]));}static[a86_0x39d494(0x14c)](_0x550640,_0x32c05a,_0x4955ec){const _0x3b4b09=a86_0x39d494,_0x3456c0={};_0x3456c0[_0x3b4b09(0x138)]=_0x3b4b09(0x16b);const _0x46764e=_0x3456c0;if(!_0x550640[_0x32c05a]){const _0x402040={};_0x402040[_0x3b4b09(0x12f)]=_0x46764e[_0x3b4b09(0x138)],_0x402040[_0x3b4b09(0x15c)]=[..._0x4955ec||[]],_0x550640[_0x32c05a]=_0x402040;}else!_0x550640[_0x32c05a][_0x3b4b09(0x12f)]&&(_0x550640[_0x32c05a][_0x3b4b09(0x12f)]=_0x46764e[_0x3b4b09(0x138)]),!Array[_0x3b4b09(0x15b)](_0x550640[_0x32c05a]['values'])&&(_0x550640[_0x32c05a][_0x3b4b09(0x15c)]=[]),_0x550640[_0x32c05a]['values']=CustomTagManager[_0x3b4b09(0xf9)](_0x550640[_0x32c05a][_0x3b4b09(0x15c)],_0x4955ec);return _0x550640;}static async[a86_0x39d494(0xe2)](_0x4a545d,_0xc00d40,_0x3fb23d=![]){const _0x1830bf=a86_0x39d494,_0x194efd={'tofSS':function(_0x1ae171,_0x12463a){return _0x1ae171!==_0x12463a;},'qdKeT':_0x1830bf(0x10e),'ieQIC':_0x1830bf(0x136),'zWbeg':function(_0x176169,_0xbfb21f){return _0x176169!==_0xbfb21f;},'HOKov':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','dieUs':function(_0x2406ff,_0x7fda09){return _0x2406ff===_0x7fda09;},'qOFIE':_0x1830bf(0x116),'zQacB':function(_0x183cb9,_0xd8e555){return _0x183cb9===_0xd8e555;},'jHFWm':_0x1830bf(0x162),'lklVZ':function(_0x37b131,_0x580cc2){return _0x37b131(_0x580cc2);},'ToKrv':_0x1830bf(0x139),'rlLsW':function(_0x4c7eeb){return _0x4c7eeb();},'fjkom':_0x1830bf(0x16b),'fqkqV':function(_0x105399,_0x4b6879){return _0x105399>_0x4b6879;},'qMPIg':_0x1830bf(0x102),'rLIUE':':jest-','bgCBO':function(_0xb3109c,_0x250416){return _0xb3109c(_0x250416);},'QNBvQ':_0x1830bf(0x14e),'YYBLm':function(_0x273063,_0x563bef){return _0x273063===_0x563bef;},'vvFat':_0x1830bf(0xfe),'uDSqX':_0x1830bf(0x14a),'nPyzR':function(_0xdbc297,_0x286dc2){return _0xdbc297(_0x286dc2);},'KmCqO':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','vHeAE':function(_0x38d985,_0x4c0411){return _0x38d985(_0x4c0411);},'mEWJN':_0x1830bf(0x13b),'DvOus':_0x1830bf(0x14b),'GbIyV':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x194efd[_0x1830bf(0x128)](typeof _0x4a545d,_0x194efd[_0x1830bf(0xf5)])){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x151)]);return;}if(_0x194efd[_0x1830bf(0x144)](typeof _0xc00d40,_0x194efd[_0x1830bf(0xf5)])){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x100)]);return;}if(_0x194efd['dieUs'](_0x4a545d[_0x1830bf(0x114)](),'')){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x106)]);return;}if(_0x194efd[_0x1830bf(0x125)](_0xc00d40[_0x1830bf(0x114)](),'')){logger[_0x1830bf(0x13a)](_0x194efd['jHFWm']);return;}const _0x1bcab9=helper[_0x1830bf(0x107)](_0xc00d40);if(_0x3fb23d){const _0x1dd944=_0x194efd[_0x1830bf(0xf7)](require,_0x194efd[_0x1830bf(0x11a)]),_0x48b9a9=_0x1dd944[_0x1830bf(0x137)](),_0x20b74f=_0x48b9a9&&_0x48b9a9[_0x1830bf(0x113)][TestHubModule[_0x1830bf(0x145)]];if(_0x20b74f){const _0x4ff3a1=_0x20b74f?.[_0x1830bf(0xe8)]?.[_0x1830bf(0x115)]()?.['buildHashedId'];TestInfo[_0x1830bf(0x12a)](_0x4ff3a1);const _0x1a7d3e=TestInfo[_0x1830bf(0x14f)](_0x4ff3a1),_0x313cef=_0x1a7d3e[TestFrameworkConstants[_0x1830bf(0x166)]]||{};CustomTagManager[_0x1830bf(0x14c)](_0x313cef,_0x4a545d,_0x1bcab9),_0x1a7d3e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x313cef,TestInfo[_0x1830bf(0x11c)](_0x4ff3a1,_0x1a7d3e);!this[_0x1830bf(0x111)][_0x4ff3a1]&&(this[_0x1830bf(0x111)][_0x4ff3a1]={});this[_0x1830bf(0x111)][_0x4ff3a1][_0x4a545d]=CustomTagManager[_0x1830bf(0xf9)](this[_0x1830bf(0x111)][_0x4ff3a1][_0x4a545d],_0x1bcab9);try{const _0x27f836=_0x194efd[_0x1830bf(0x16a)](getBuildTagsRunId);if(_0x27f836){const _0x39d65f={};for(const [_0xa2dcfd,_0x53e0c7]of Object[_0x1830bf(0x110)](this[_0x1830bf(0x111)][_0x4ff3a1]||{})){_0x39d65f[_0xa2dcfd]={'field_type':_0x194efd[_0x1830bf(0x119)],'values':Array['isArray'](_0x53e0c7)?[..._0x53e0c7]:[]};}_0x194efd[_0x1830bf(0x165)](Object[_0x1830bf(0x143)](_0x39d65f)[_0x1830bf(0x101)],0x0)&&await fs['promises'][_0x1830bf(0x12d)](_0x194efd[_0x1830bf(0xf7)](getBuildTagsFilePath,_0x27f836),JSON[_0x1830bf(0x15e)](_0x39d65f));}else logger['debug'](_0x194efd[_0x1830bf(0x10d)]);}catch(_0x5aa15c){logger[_0x1830bf(0x13a)](_0x1830bf(0x103)+(_0x5aa15c&&_0x5aa15c[_0x1830bf(0x134)]?_0x5aa15c[_0x1830bf(0x134)]:_0x5aa15c));}}}else{let _0x345cf2;const _0x1537c4=global['__jestCurrentTestIdentifier'];let _0x160442=![];if(_0x1537c4&&_0x1537c4['includes'](_0x194efd[_0x1830bf(0x108)]))_0x160442=!![],_0x345cf2=_0x1537c4;else try{const _0x4a7bea=_0x194efd[_0x1830bf(0x122)](require,_0x194efd[_0x1830bf(0xe3)]),_0xb3ec6d=_0x194efd[_0x1830bf(0x122)](require,_0x194efd[_0x1830bf(0x11a)]);if(_0xb3ec6d['getInstance']()[_0x1830bf(0x10b)]()){const _0x4f77e1=_0x4a7bea[_0x1830bf(0x109)]();if(_0x194efd['YYBLm'](_0x4f77e1?.['name']?.[_0x1830bf(0x160)](),_0x194efd[_0x1830bf(0xf6)])){const _0x10b3bb=AutomationFramework[_0x1830bf(0x130)]();_0x345cf2=AutomationFramework[_0x1830bf(0xff)](_0x10b3bb,PlaywrightDriverModule[_0x1830bf(0x140)],''),_0x345cf2&&_0x345cf2[_0x1830bf(0x104)](_0x194efd[_0x1830bf(0x108)])&&(_0x160442=!![]);}}}catch(_0x472438){logger[_0x1830bf(0x13a)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x472438);}if(_0x160442){if(!_0x345cf2)throw new Error(_0x194efd[_0x1830bf(0x105)]);const _0x41d893=_0x194efd[_0x1830bf(0xe4)](require,_0x194efd[_0x1830bf(0x11a)]),_0x4f08fd=_0x41d893[_0x1830bf(0x137)]()[_0x1830bf(0x10f)]();if(!_0x4f08fd)throw new Error(_0x194efd[_0x1830bf(0x129)]);const _0xae93cb=_0x194efd[_0x1830bf(0x141)](require,_0x194efd[_0x1830bf(0x148)]),_0x23383c=_0x194efd[_0x1830bf(0xe4)](require,_0x194efd[_0x1830bf(0x15f)]),_0x2e4aeb=_0x4f08fd[_0x1830bf(0x11f)](_0xae93cb[_0x1830bf(0x16d)],_0x23383c['POST']);if(!_0x2e4aeb)throw new Error(_0x194efd[_0x1830bf(0x13e)]);const _0x47219e=_0x2e4aeb['getAllData']()[_0x1830bf(0xf0)](_0x345cf2)||{},_0xd18e6c=_0x47219e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x1830bf(0x13a)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x345cf2+',\x20key='+_0x4a545d+_0x1830bf(0x12c)+JSON[_0x1830bf(0x15e)](_0x1bcab9)+_0x1830bf(0x11d)+JSON[_0x1830bf(0x15e)](_0xd18e6c)),CustomTagManager[_0x1830bf(0x14c)](_0xd18e6c,_0x4a545d,_0x1bcab9),logger[_0x1830bf(0x13a)](_0x1830bf(0x13c)+_0x4a545d+_0x1830bf(0x168)+JSON[_0x1830bf(0x15e)](_0xd18e6c[_0x4a545d][_0x1830bf(0x15c)]));const _0x4ba921={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xd18e6c},_0x2c1219={};_0x2c1219[_0x345cf2]=_0x4ba921,_0x2e4aeb['addMultipleEntries'](_0x2c1219),logger[_0x1830bf(0x13a)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x345cf2+_0x1830bf(0x16c)+JSON['stringify'](_0xd18e6c)),!this[_0x1830bf(0x146)][_0x345cf2]&&(this['testLevelTags'][_0x345cf2]={}),this[_0x1830bf(0x146)][_0x345cf2][_0x4a545d]=CustomTagManager[_0x1830bf(0xf9)](this[_0x1830bf(0x146)][_0x345cf2][_0x4a545d],_0x1bcab9);}else{const _0x46a907=global[_0x1830bf(0x12b)]?.[_0x1830bf(0x157)]?.['testInfo'];if(!_0x46a907){const _0xf8ad29=AutomationFramework[_0x1830bf(0x130)]();_0x345cf2=AutomationFramework[_0x1830bf(0xff)](_0xf8ad29,PlaywrightDriverModule[_0x1830bf(0x140)],'');}else _0x345cf2=TestInfo[_0x1830bf(0x133)](_0x46a907,_0x46a907[_0x1830bf(0x15a)]);const _0x4e6a49=TestInfo[_0x1830bf(0x14f)](_0x345cf2),_0x40d790=_0x4e6a49[TestFrameworkConstants[_0x1830bf(0x166)]]||{};CustomTagManager['mergeIntoTags'](_0x40d790,_0x4a545d,_0x1bcab9),_0x4e6a49[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x40d790,TestInfo[_0x1830bf(0x11c)](_0x345cf2,_0x4e6a49),!this[_0x1830bf(0x146)][_0x345cf2]&&(this['testLevelTags'][_0x345cf2]={}),this['testLevelTags'][_0x345cf2][_0x4a545d]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x345cf2][_0x4a545d],_0x1bcab9);}}}static[a86_0x39d494(0x169)](){const _0x608a47=a86_0x39d494,_0x1494a7={...this[_0x608a47(0x111)]};return _0x1494a7;}static[a86_0x39d494(0x13d)](){const _0xee6152=a86_0x39d494,_0x46d658={...this[_0xee6152(0x146)]};return _0x46d658;}static[a86_0x39d494(0x10a)](){const _0x115073=a86_0x39d494;this[_0x115073(0x111)]={},this[_0x115073(0x146)]={};}static[a86_0x39d494(0x14d)](_0x52bae7,_0x239713){const _0x1885b0=a86_0x39d494,_0x3efe13={};_0x3efe13['sbNqL']=function(_0x166a1b,_0x4a9bb6){return _0x166a1b||_0x4a9bb6;};const _0x45a20b=_0x3efe13;if(!_0x52bae7)return;!this[_0x1885b0(0x111)][_0x52bae7]&&(this['buildLevelTags'][_0x52bae7]={});for(const [_0x4e931c,_0x5cecae]of Object['entries'](_0x45a20b[_0x1885b0(0x127)](_0x239713,{}))){if(!_0x5cecae||!Array[_0x1885b0(0x15b)](_0x5cecae['values']))continue;this[_0x1885b0(0x111)][_0x52bae7][_0x4e931c]=CustomTagManager[_0x1885b0(0xf9)](this[_0x1885b0(0x111)][_0x52bae7][_0x4e931c],_0x5cecae[_0x1885b0(0x15c)]);}}static[a86_0x39d494(0x124)](_0xa6f736,_0x10b454){const _0x2d6513=a86_0x39d494,_0x4ebf08={};_0x4ebf08[_0x2d6513(0x159)]=_0x2d6513(0xf4),_0x4ebf08[_0x2d6513(0x150)]=function(_0x56f3ca,_0x9db9c3){return _0x56f3ca*_0x9db9c3;},_0x4ebf08[_0x2d6513(0xe9)]=function(_0xd7d3b5,_0x3a18e8){return _0xd7d3b5>_0x3a18e8;},_0x4ebf08[_0x2d6513(0x112)]=function(_0x426f3d,_0x2a3617){return _0x426f3d-_0x2a3617;},_0x4ebf08[_0x2d6513(0x121)]='utf8';const _0x4dda9f=_0x4ebf08;if(!_0xa6f736)return logger[_0x2d6513(0x13a)](_0x4dda9f[_0x2d6513(0x159)]),0x0;let _0x784056;try{_0x784056=os[_0x2d6513(0xe6)]();}catch(_0x5815f6){return logger['debug'](_0x2d6513(0xf1)+_0x5815f6),0x0;}let _0x2023a9;try{_0x2023a9=fs[_0x2d6513(0xe7)](_0x784056);}catch(_0x1c6439){return logger['debug'](_0x2d6513(0xee)+_0x1c6439),0x0;}const _0x4be248=''+BUILD_TAG_FILE_PREFIX+_0xa6f736+'_',_0xbc9c0f=_0x2023a9[_0x2d6513(0x167)](_0xd7b2de=>_0xd7b2de[_0x2d6513(0xfa)](_0x4be248)&&_0xd7b2de[_0x2d6513(0x152)](_0x2d6513(0x161))),_0x3c9bc7=_0x4dda9f[_0x2d6513(0x150)](_0x4dda9f[_0x2d6513(0x150)](_0x4dda9f[_0x2d6513(0x150)](0x2,0x3c),0x3c),0x3e8);let _0x41d216=0x0;for(const _0x302ec9 of _0xbc9c0f){const _0x589377=path[_0x2d6513(0x142)](_0x784056,_0x302ec9);try{const _0x551a87=fs[_0x2d6513(0x149)](_0x589377);if(_0x4dda9f[_0x2d6513(0xe9)](_0x4dda9f[_0x2d6513(0x112)](Date[_0x2d6513(0x13f)](),_0x551a87[_0x2d6513(0xef)]),_0x3c9bc7)){logger['debug'](_0x2d6513(0x117)+_0x3c9bc7+_0x2d6513(0x118)+_0x302ec9);try{fs[_0x2d6513(0x154)](_0x589377);}catch(_0x5633df){logger['debug'](_0x2d6513(0x135)+_0x302ec9+':\x20'+(_0x5633df&&_0x5633df[_0x2d6513(0x134)]?_0x5633df['message']:_0x5633df));}continue;}const _0x296b20=fs[_0x2d6513(0x155)](_0x589377,_0x4dda9f[_0x2d6513(0x121)]),_0x71aecd=JSON[_0x2d6513(0x153)](_0x296b20);this[_0x2d6513(0x14d)](_0x10b454,_0x71aecd),_0x41d216+=0x1;}catch(_0x10c7f4){logger[_0x2d6513(0x13a)](_0x2d6513(0xec)+_0x302ec9+':\x20'+(_0x10c7f4&&_0x10c7f4[_0x2d6513(0x134)]?_0x10c7f4[_0x2d6513(0x134)]:_0x10c7f4));}try{fs['unlinkSync'](_0x589377);}catch(_0x42b64a){logger[_0x2d6513(0x13a)](_0x2d6513(0x16e)+_0x302ec9+':\x20'+(_0x42b64a&&_0x42b64a['message']?_0x42b64a[_0x2d6513(0x134)]:_0x42b64a));}}return _0x41d216;}}const a86_0x56f5f5={};a86_0x56f5f5[a86_0x39d494(0x132)]=getBuildTagsRunId,a86_0x56f5f5[a86_0x39d494(0xe5)]=getBuildTagsFilePath,a86_0x56f5f5['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x56f5f5,module[a86_0x39d494(0x12e)]=CustomTagManager;
1
+ 'use strict';const a86_0x2e3a0d=a86_0x3906;(function(_0x1bc988,_0x5039b4){const _0x33142b=a86_0x3906,_0x1fee84=_0x1bc988();while(!![]){try{const _0xbc9095=parseInt(_0x33142b(0x7f))/0x1*(parseInt(_0x33142b(0xf6))/0x2)+-parseInt(_0x33142b(0x82))/0x3+parseInt(_0x33142b(0xc0))/0x4*(parseInt(_0x33142b(0x94))/0x5)+-parseInt(_0x33142b(0xce))/0x6*(-parseInt(_0x33142b(0x103))/0x7)+-parseInt(_0x33142b(0xdd))/0x8+parseInt(_0x33142b(0xc4))/0x9*(parseInt(_0x33142b(0xfd))/0xa)+parseInt(_0x33142b(0x97))/0xb*(-parseInt(_0x33142b(0xf0))/0xc);if(_0xbc9095===_0x5039b4)break;else _0x1fee84['push'](_0x1fee84['shift']());}catch(_0x2835d3){_0x1fee84['push'](_0x1fee84['shift']());}}}(a86_0x148b,0x226da));function a86_0x148b(){const _0x158c52=['name','9816FndtGs','__workerDetails','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','XGXQB','stringify','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','from','field_type','getBuildTagsRunId','STRSZ','YSDxo','KaRQy','getBuildLevelTags','oTxqD','GMYvb','MXoCx','getTestIdentifierFromTestInfo','message','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','180OPjxvP','__jestCurrentTestIdentifier','clearTags','CFpwe','getAllData',',\x20values=','126IXLnFX','getTestUUID','iBGgH','setCustomTags','\x20->\x20values=','getInstance','unlinkSync','20SEQKiV','isRunning','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','mergeIntoTags','getBuildTagsFilePath','7WhTqLB','wqtMG','CeltB','BUILD_TAG_FILE_PREFIX','ydLJk','getTestDetails','TEST','startsWith','buildLevelTags','./modules/playwrightDriverModule','3539WLMumD','tmpdir','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','37920fAaeiO','CYrks','EosPc','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','mergeBuildLevelTags','KHtWb','./TestInfo','filter','keys','getTestFramework','wFhrR','VlIjA','path','kbups','join','trim','Biqbc','oHkwT','3115NvNhVo','CustomTagManager','./browserstackCLI','277618bOUiIl','efmtC','testInfo','mergeValues','../../helpers/classLogger','lUYll','getTrackedInstance','BROWSERSTACK_TESTHUB_UUID','debug','statSync',',\x20key=','retry','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getTestFrameworkDetail','aggregateBuildLevelTagsFromTmp','./framework/automationFramework','TgORg','get','./framework/constants/testFrameworkConstants','writeFile','utf8','hjUjm','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','vYdBa','length','_testInternals','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','modules','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','./state/testFrameworkState','entries','currentTest','UazBt','fOBWQ','buildHashedId','toLowerCase','hSfIu','now','env','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','1684zTFuOT','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','pid','.json','132084cXqnkj','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','testhubConfig','../../helpers/helper','pCcAr','MODULE_NAME','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','KEY_TEST_ID','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','multi_dropdown','113178ECAHQz','./state/hookState','isArray','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','testLevelTags','POST','wjJJM','null','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','tjgCa','mXEcN','KEY_CUSTOM_TAGS','QBNoJ'];a86_0x148b=function(){return _0x158c52;};return a86_0x148b();}const fs=require('fs'),os=require('os'),path=require(a86_0x2e3a0d(0x8e)),helper=require(a86_0x2e3a0d(0xc7)),AutomationFramework=require(a86_0x2e3a0d(0xa6)),TestFrameworkConstants=require(a86_0x2e3a0d(0xa9)),PlaywrightDriverModule=require(a86_0x2e3a0d(0x7e)),TestInfo=require(a86_0x2e3a0d(0x88)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x2e3a0d(0x9b)),logger=createClassLogger(a86_0x2e3a0d(0x95)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x31473a=a86_0x2e3a0d,_0x3eead5={};_0x3eead5[_0x31473a(0xd8)]=function(_0x503fd6,_0x48a6e0){return _0x503fd6===_0x48a6e0;},_0x3eead5[_0x31473a(0x107)]=_0x31473a(0xd6);const _0x5b268b=_0x3eead5,_0x40ee6a=process[_0x31473a(0xbe)][_0x31473a(0x9e)];if(!_0x40ee6a||_0x5b268b[_0x31473a(0xd8)](_0x40ee6a,_0x5b268b[_0x31473a(0x107)]))return null;return _0x40ee6a;}function a86_0x3906(_0x4ab938,_0x3dfd33){const _0x148bc5=a86_0x148b();return a86_0x3906=function(_0x3906fb,_0x5e6f9c){_0x3906fb=_0x3906fb-0x7e;let _0x3d5d7e=_0x148bc5[_0x3906fb];return _0x3d5d7e;},a86_0x3906(_0x4ab938,_0x3dfd33);}function getBuildTagsFilePath(_0x18fd5e){const _0x45120f=a86_0x2e3a0d;return path[_0x45120f(0x90)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x18fd5e+'_'+process[_0x45120f(0xc2)]+_0x45120f(0xc3));}class CustomTagManager{static [a86_0x2e3a0d(0x10b)]={};static [a86_0x2e3a0d(0xd3)]={};static[a86_0x2e3a0d(0x9a)](_0x799f8c,_0x53a8a7){const _0x4fbdc8=a86_0x2e3a0d;return Array[_0x4fbdc8(0xe3)](new Set([..._0x799f8c||[],..._0x53a8a7||[]]));}static[a86_0x2e3a0d(0x101)](_0x24e0b4,_0x2bf1e5,_0x31bf83){const _0x127471=a86_0x2e3a0d,_0x51bbe1={};_0x51bbe1[_0x127471(0x87)]=_0x127471(0xcd);const _0x556008=_0x51bbe1;if(!_0x24e0b4[_0x2bf1e5]){const _0x46796a={};_0x46796a['field_type']=_0x556008[_0x127471(0x87)],_0x46796a[_0x127471(0xad)]=[..._0x31bf83||[]],_0x24e0b4[_0x2bf1e5]=_0x46796a;}else!_0x24e0b4[_0x2bf1e5]['field_type']&&(_0x24e0b4[_0x2bf1e5][_0x127471(0xe4)]=_0x556008[_0x127471(0x87)]),!Array[_0x127471(0xd0)](_0x24e0b4[_0x2bf1e5]['values'])&&(_0x24e0b4[_0x2bf1e5][_0x127471(0xad)]=[]),_0x24e0b4[_0x2bf1e5][_0x127471(0xad)]=CustomTagManager[_0x127471(0x9a)](_0x24e0b4[_0x2bf1e5][_0x127471(0xad)],_0x31bf83);return _0x24e0b4;}static async[a86_0x2e3a0d(0xf9)](_0x3c76a9,_0x375f4e,_0x2ae6a5=![]){const _0x250ff2=a86_0x2e3a0d,_0x496299={'CYrks':function(_0x3119e0,_0x86840c){return _0x3119e0!==_0x86840c;},'Biqbc':'string','CeltB':_0x250ff2(0xc1),'oTxqD':function(_0x20fbc5,_0x29b05b){return _0x20fbc5!==_0x29b05b;},'XGXQB':_0x250ff2(0xdf),'oHkwT':function(_0x12ad60,_0x9a5926){return _0x12ad60===_0x9a5926;},'efmtC':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','nvkXT':function(_0x5564af,_0x1b7cfb){return _0x5564af===_0x1b7cfb;},'UazBt':_0x250ff2(0xb2),'mXEcN':function(_0x51899b,_0x9c207e){return _0x51899b(_0x9c207e);},'wjJJM':_0x250ff2(0x96),'YSDxo':function(_0x4a1004){return _0x4a1004();},'kbups':'multi_dropdown','zwpuH':function(_0x21ca7b,_0x102914){return _0x21ca7b>_0x102914;},'QBNoJ':function(_0x10a4f7,_0x173369){return _0x10a4f7(_0x173369);},'wFhrR':_0x250ff2(0xcc),'fOBWQ':':jest-','CFpwe':function(_0x2e59d5,_0x45d0a3){return _0x2e59d5(_0x45d0a3);},'vYdBa':'./cliUtils','GMYvb':function(_0x3e12e1,_0x11644d){return _0x3e12e1(_0x11644d);},'pCcAr':function(_0x596872,_0x3bdc48){return _0x596872===_0x3bdc48;},'eXPPn':'jest','MXoCx':_0x250ff2(0xbf),'wqtMG':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','lUYll':_0x250ff2(0xb5),'VlIjA':_0x250ff2(0xcf),'IZTBK':_0x250ff2(0xff)};if(_0x496299[_0x250ff2(0x83)](typeof _0x3c76a9,_0x496299['Biqbc'])){logger['debug'](_0x496299[_0x250ff2(0x105)]);return;}if(_0x496299[_0x250ff2(0xea)](typeof _0x375f4e,_0x496299[_0x250ff2(0x92)])){logger['debug'](_0x496299[_0x250ff2(0xe0)]);return;}if(_0x496299[_0x250ff2(0x93)](_0x3c76a9[_0x250ff2(0x91)](),'')){logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0x98)]);return;}if(_0x496299['nvkXT'](_0x375f4e['trim'](),'')){logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0xb8)]);return;}const _0x108b8b=helper['parseCommaSeparatedValues'](_0x375f4e);if(_0x2ae6a5){const _0x112ed5=_0x496299['mXEcN'](require,_0x496299[_0x250ff2(0xd5)]),_0x593e4b=_0x112ed5[_0x250ff2(0xfb)](),_0x4a5080=_0x593e4b&&_0x593e4b[_0x250ff2(0xb3)][TestHubModule[_0x250ff2(0xc9)]];if(_0x4a5080){const _0x2c4b3d=_0x4a5080?.[_0x250ff2(0xc6)]?.['toObject']()?.[_0x250ff2(0xba)];TestInfo[_0x250ff2(0xf7)](_0x2c4b3d);const _0x1e6f2a=TestInfo[_0x250ff2(0x108)](_0x2c4b3d),_0x100b2c=_0x1e6f2a[TestFrameworkConstants[_0x250ff2(0xda)]]||{};CustomTagManager[_0x250ff2(0x101)](_0x100b2c,_0x3c76a9,_0x108b8b),_0x1e6f2a[TestFrameworkConstants[_0x250ff2(0xda)]]=_0x100b2c,TestInfo['setTestDetails'](_0x2c4b3d,_0x1e6f2a);!this[_0x250ff2(0x10b)][_0x2c4b3d]&&(this[_0x250ff2(0x10b)][_0x2c4b3d]={});this['buildLevelTags'][_0x2c4b3d][_0x3c76a9]=CustomTagManager['mergeValues'](this[_0x250ff2(0x10b)][_0x2c4b3d][_0x3c76a9],_0x108b8b);try{const _0x1dc5bb=_0x496299[_0x250ff2(0xe7)](getBuildTagsRunId);if(_0x1dc5bb){const _0x3ec5a6={};for(const [_0x4d2d58,_0x48ad1c]of Object['entries'](this[_0x250ff2(0x10b)][_0x2c4b3d]||{})){_0x3ec5a6[_0x4d2d58]={'field_type':_0x496299[_0x250ff2(0x8f)],'values':Array[_0x250ff2(0xd0)](_0x48ad1c)?[..._0x48ad1c]:[]};}_0x496299['zwpuH'](Object[_0x250ff2(0x8a)](_0x3ec5a6)[_0x250ff2(0xb0)],0x0)&&await fs['promises'][_0x250ff2(0xaa)](_0x496299[_0x250ff2(0xdb)](getBuildTagsFilePath,_0x1dc5bb),JSON[_0x250ff2(0xe1)](_0x3ec5a6));}else logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0x8c)]);}catch(_0x5e2d0f){logger[_0x250ff2(0x9f)](_0x250ff2(0xe2)+(_0x5e2d0f&&_0x5e2d0f[_0x250ff2(0xee)]?_0x5e2d0f[_0x250ff2(0xee)]:_0x5e2d0f));}}}else{let _0x152e80;const _0x367a1c=global[_0x250ff2(0xf1)];let _0x41a6cc=![];if(_0x367a1c&&_0x367a1c['includes'](_0x496299['fOBWQ']))_0x41a6cc=!![],_0x152e80=_0x367a1c;else try{const _0x476274=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0xaf)]),_0x3cfc5a=_0x496299[_0x250ff2(0xeb)](require,_0x496299[_0x250ff2(0xd5)]);if(_0x3cfc5a[_0x250ff2(0xfb)]()[_0x250ff2(0xfe)]()){const _0x1f6ed8=_0x476274[_0x250ff2(0xa4)]();if(_0x496299[_0x250ff2(0xc8)](_0x1f6ed8?.[_0x250ff2(0xdc)]?.[_0x250ff2(0xbb)](),_0x496299['eXPPn'])){const _0x4fe26c=AutomationFramework[_0x250ff2(0x9d)]();_0x152e80=AutomationFramework['getState'](_0x4fe26c,PlaywrightDriverModule[_0x250ff2(0xcb)],''),_0x152e80&&_0x152e80['includes'](_0x496299[_0x250ff2(0xb9)])&&(_0x41a6cc=!![]);}}}catch(_0x28343c){logger[_0x250ff2(0x9f)](_0x250ff2(0x81)+_0x28343c);}if(_0x41a6cc){if(!_0x152e80)throw new Error(_0x496299[_0x250ff2(0xec)]);const _0x3ed4dc=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0xd5)]),_0x15b2da=_0x3ed4dc[_0x250ff2(0xfb)]()[_0x250ff2(0x8b)]();if(!_0x15b2da)throw new Error(_0x496299[_0x250ff2(0x104)]);const _0x59a557=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0x9c)]),_0x1f29e6=_0x496299[_0x250ff2(0xd9)](require,_0x496299[_0x250ff2(0x8d)]),_0x94e816=_0x15b2da['resolveInstance'](_0x59a557[_0x250ff2(0x109)],_0x1f29e6[_0x250ff2(0xd4)]);if(!_0x94e816)throw new Error(_0x496299['IZTBK']);const _0x4ec7b6=_0x94e816[_0x250ff2(0xf4)]()[_0x250ff2(0xa8)](_0x152e80)||{},_0x5f76aa=_0x4ec7b6[TestFrameworkConstants[_0x250ff2(0xda)]]||{};logger[_0x250ff2(0x9f)](_0x250ff2(0xd7)+_0x152e80+_0x250ff2(0xa1)+_0x3c76a9+_0x250ff2(0xf5)+JSON[_0x250ff2(0xe1)](_0x108b8b)+',\x20existingTags='+JSON[_0x250ff2(0xe1)](_0x5f76aa)),CustomTagManager[_0x250ff2(0x101)](_0x5f76aa,_0x3c76a9,_0x108b8b),logger['debug'](_0x250ff2(0x85)+_0x3c76a9+_0x250ff2(0xfa)+JSON[_0x250ff2(0xe1)](_0x5f76aa[_0x3c76a9]['values']));const _0x375ae9={[TestFrameworkConstants[_0x250ff2(0xda)]]:_0x5f76aa},_0x12a62a={};_0x12a62a[_0x152e80]=_0x375ae9,_0x94e816['addMultipleEntries'](_0x12a62a),logger[_0x250ff2(0x9f)](_0x250ff2(0xa3)+_0x152e80+',\x20finalTags='+JSON[_0x250ff2(0xe1)](_0x5f76aa)),!this[_0x250ff2(0xd3)][_0x152e80]&&(this[_0x250ff2(0xd3)][_0x152e80]={}),this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9]=CustomTagManager[_0x250ff2(0x9a)](this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9],_0x108b8b);}else{const _0x3ddfe8=global[_0x250ff2(0xde)]?.[_0x250ff2(0xb7)]?.[_0x250ff2(0x99)];if(!_0x3ddfe8){const _0x4a1e63=AutomationFramework['getTrackedInstance']();_0x152e80=AutomationFramework['getState'](_0x4a1e63,PlaywrightDriverModule[_0x250ff2(0xcb)],'');}else _0x152e80=TestInfo[_0x250ff2(0xed)](_0x3ddfe8,_0x3ddfe8[_0x250ff2(0xa2)]);const _0x53b031=TestInfo['getTestDetails'](_0x152e80),_0x208b6c=_0x53b031[TestFrameworkConstants[_0x250ff2(0xda)]]||{};CustomTagManager[_0x250ff2(0x101)](_0x208b6c,_0x3c76a9,_0x108b8b),_0x53b031[TestFrameworkConstants[_0x250ff2(0xda)]]=_0x208b6c,TestInfo['setTestDetails'](_0x152e80,_0x53b031),!this[_0x250ff2(0xd3)][_0x152e80]&&(this['testLevelTags'][_0x152e80]={}),this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9]=CustomTagManager[_0x250ff2(0x9a)](this['testLevelTags'][_0x152e80][_0x3c76a9],_0x108b8b);}}}static[a86_0x2e3a0d(0xe9)](){const _0x3d380e=a86_0x2e3a0d,_0x3586cc={...this[_0x3d380e(0x10b)]};return _0x3586cc;}static['getTestLevelTags'](){const _0x4dccb4=a86_0x2e3a0d,_0x536350={...this[_0x4dccb4(0xd3)]};return _0x536350;}static[a86_0x2e3a0d(0xf2)](){const _0x3d0477=a86_0x2e3a0d;this['buildLevelTags']={},this[_0x3d0477(0xd3)]={};}static['mergeBuildLevelTags'](_0x1bd931,_0x32e8ff){const _0x40e5af=a86_0x2e3a0d,_0x45166a={};_0x45166a[_0x40e5af(0xe6)]=function(_0x67d7eb,_0xc8b018){return _0x67d7eb||_0xc8b018;};const _0x18e80a=_0x45166a;if(!_0x1bd931)return;!this['buildLevelTags'][_0x1bd931]&&(this[_0x40e5af(0x10b)][_0x1bd931]={});for(const [_0x288419,_0x3dac73]of Object[_0x40e5af(0xb6)](_0x18e80a[_0x40e5af(0xe6)](_0x32e8ff,{}))){if(!_0x3dac73||!Array[_0x40e5af(0xd0)](_0x3dac73['values']))continue;this[_0x40e5af(0x10b)][_0x1bd931][_0x288419]=CustomTagManager[_0x40e5af(0x9a)](this[_0x40e5af(0x10b)][_0x1bd931][_0x288419],_0x3dac73[_0x40e5af(0xad)]);}}static[a86_0x2e3a0d(0xa5)](_0x75d660,_0x4d86c0){const _0x5e04bf=a86_0x2e3a0d,_0x5d6626={};_0x5d6626['EosPc']=_0x5e04bf(0xd2),_0x5d6626[_0x5e04bf(0xac)]=function(_0x9291ee,_0x462f30){return _0x9291ee*_0x462f30;},_0x5d6626['hSfIu']=function(_0x434d06,_0x197c7c){return _0x434d06*_0x197c7c;},_0x5d6626['TgORg']=function(_0x41b69e,_0x36eb33){return _0x41b69e*_0x36eb33;},_0x5d6626[_0x5e04bf(0xf8)]=function(_0x327ce2,_0x4ecab3){return _0x327ce2>_0x4ecab3;},_0x5d6626['LLxyq']=function(_0x233c8b,_0x48c0a9){return _0x233c8b-_0x48c0a9;},_0x5d6626[_0x5e04bf(0xe8)]=_0x5e04bf(0xab);const _0x9befc2=_0x5d6626;if(!_0x75d660)return logger['debug'](_0x9befc2[_0x5e04bf(0x84)]),0x0;let _0x402066;try{_0x402066=os[_0x5e04bf(0x80)]();}catch(_0x64a111){return logger[_0x5e04bf(0x9f)](_0x5e04bf(0xb4)+_0x64a111),0x0;}let _0x25ab03;try{_0x25ab03=fs['readdirSync'](_0x402066);}catch(_0x45312e){return logger[_0x5e04bf(0x9f)](_0x5e04bf(0xae)+_0x45312e),0x0;}const _0x305225=''+BUILD_TAG_FILE_PREFIX+_0x75d660+'_',_0x18e308=_0x25ab03[_0x5e04bf(0x89)](_0x5e04ec=>_0x5e04ec[_0x5e04bf(0x10a)](_0x305225)&&_0x5e04ec['endsWith']('.json')),_0x3b9eaa=_0x9befc2[_0x5e04bf(0xac)](_0x9befc2[_0x5e04bf(0xbc)](_0x9befc2[_0x5e04bf(0xa7)](0x2,0x3c),0x3c),0x3e8);let _0x930604=0x0;for(const _0x20ff73 of _0x18e308){const _0x5d6e32=path[_0x5e04bf(0x90)](_0x402066,_0x20ff73);try{const _0x4c6c74=fs[_0x5e04bf(0xa0)](_0x5d6e32);if(_0x9befc2[_0x5e04bf(0xf8)](_0x9befc2['LLxyq'](Date[_0x5e04bf(0xbd)](),_0x4c6c74[_0x5e04bf(0x100)]),_0x3b9eaa)){logger[_0x5e04bf(0x9f)](_0x5e04bf(0xc5)+_0x3b9eaa+'ms)\x20'+_0x20ff73);try{fs[_0x5e04bf(0xfc)](_0x5d6e32);}catch(_0x4e49b8){logger['debug'](_0x5e04bf(0xef)+_0x20ff73+':\x20'+(_0x4e49b8&&_0x4e49b8[_0x5e04bf(0xee)]?_0x4e49b8[_0x5e04bf(0xee)]:_0x4e49b8));}continue;}const _0x4fa63c=fs['readFileSync'](_0x5d6e32,_0x9befc2['KaRQy']),_0x438c09=JSON['parse'](_0x4fa63c);this[_0x5e04bf(0x86)](_0x4d86c0,_0x438c09),_0x930604+=0x1;}catch(_0x17ee86){logger[_0x5e04bf(0x9f)](_0x5e04bf(0xca)+_0x20ff73+':\x20'+(_0x17ee86&&_0x17ee86[_0x5e04bf(0xee)]?_0x17ee86[_0x5e04bf(0xee)]:_0x17ee86));}try{fs[_0x5e04bf(0xfc)](_0x5d6e32);}catch(_0x2c0db8){logger[_0x5e04bf(0x9f)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x20ff73+':\x20'+(_0x2c0db8&&_0x2c0db8[_0x5e04bf(0xee)]?_0x2c0db8[_0x5e04bf(0xee)]:_0x2c0db8));}}return _0x930604;}}const a86_0x266512={};a86_0x266512[a86_0x2e3a0d(0xe5)]=getBuildTagsRunId,a86_0x266512[a86_0x2e3a0d(0x102)]=getBuildTagsFilePath,a86_0x266512[a86_0x2e3a0d(0x106)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x2e3a0d(0xb1)]=a86_0x266512,module[a86_0x2e3a0d(0xd1)]=CustomTagManager;
@@ -1 +1 @@
1
- const a87_0x3a36eb=a87_0x350c;(function(_0x24df51,_0x3dc5e3){const _0x1ca2f1=a87_0x350c,_0x3aaa76=_0x24df51();while(!![]){try{const _0x46ce4b=parseInt(_0x1ca2f1(0x7c))/0x1+-parseInt(_0x1ca2f1(0x81))/0x2*(parseInt(_0x1ca2f1(0x8a))/0x3)+-parseInt(_0x1ca2f1(0x88))/0x4+parseInt(_0x1ca2f1(0x85))/0x5+parseInt(_0x1ca2f1(0x80))/0x6*(-parseInt(_0x1ca2f1(0x7b))/0x7)+parseInt(_0x1ca2f1(0x7f))/0x8*(-parseInt(_0x1ca2f1(0x86))/0x9)+parseInt(_0x1ca2f1(0x7e))/0xa;if(_0x46ce4b===_0x3dc5e3)break;else _0x3aaa76['push'](_0x3aaa76['shift']());}catch(_0x2e4147){_0x3aaa76['push'](_0x3aaa76['shift']());}}}(a87_0x2879,0x5a33a));const {createClassLogger}=require(a87_0x3a36eb(0x89));class EventDispatcher{static #instance=null;constructor(){const _0xd371ac=a87_0x3a36eb;this[_0xd371ac(0x8b)]={};}static[a87_0x3a36eb(0x83)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x55b828,_0x48bee0){const _0x14978c=a87_0x3a36eb;!this['observers'][_0x55b828]&&(this[_0x14978c(0x8b)][_0x55b828]=[]),this[_0x14978c(0x8b)][_0x55b828][_0x14978c(0x87)](_0x48bee0);}async['notifyObserver'](_0x273e90,_0x51816b){const _0x32f847=a87_0x3a36eb,_0xb225c3={'WrlpF':function(_0x521aad,_0x1dfd44){return _0x521aad(_0x1dfd44);}};if(this[_0x32f847(0x8b)][_0x273e90]){for(const _0x2964d4 of this[_0x32f847(0x8b)][_0x273e90]){await _0xb225c3[_0x32f847(0x7d)](_0x2964d4,_0x51816b);}return;}}}function a87_0x2879(){const _0x2020e9=['1386408DgwIrq','../../helpers/classLogger.js','3RLYufB','observers','378omdUxa','629816tPTFEh','WrlpF','2025420YwDwoo','64jCgOar','1986rUDFtE','556898AKmYsG','freeze','getInstance','exports','2900405hNAnCG','450054grjMCb','push'];a87_0x2879=function(){return _0x2020e9;};return a87_0x2879();}const eventDispatcher=EventDispatcher[a87_0x3a36eb(0x83)]();function a87_0x350c(_0x561781,_0x5ee0f7){const _0x287901=a87_0x2879();return a87_0x350c=function(_0x350c15,_0x426fcb){_0x350c15=_0x350c15-0x7b;let _0xae9c=_0x287901[_0x350c15];return _0xae9c;},a87_0x350c(_0x561781,_0x5ee0f7);}Object[a87_0x3a36eb(0x82)](eventDispatcher),module[a87_0x3a36eb(0x84)]=eventDispatcher;
1
+ function a87_0x1a8a(_0x39c3a6,_0x5842c3){const _0x552868=a87_0x5528();return a87_0x1a8a=function(_0x1a8ad5,_0x5b666e){_0x1a8ad5=_0x1a8ad5-0x1ba;let _0x2dc1ac=_0x552868[_0x1a8ad5];return _0x2dc1ac;},a87_0x1a8a(_0x39c3a6,_0x5842c3);}const a87_0x45387c=a87_0x1a8a;(function(_0x12c45e,_0x37de13){const _0x43d2dd=a87_0x1a8a,_0x4bedb8=_0x12c45e();while(!![]){try{const _0x50cbaa=-parseInt(_0x43d2dd(0x1c0))/0x1+-parseInt(_0x43d2dd(0x1c4))/0x2+-parseInt(_0x43d2dd(0x1c1))/0x3*(parseInt(_0x43d2dd(0x1bf))/0x4)+parseInt(_0x43d2dd(0x1c6))/0x5+-parseInt(_0x43d2dd(0x1c7))/0x6+parseInt(_0x43d2dd(0x1bd))/0x7+parseInt(_0x43d2dd(0x1bc))/0x8;if(_0x50cbaa===_0x37de13)break;else _0x4bedb8['push'](_0x4bedb8['shift']());}catch(_0x1adead){_0x4bedb8['push'](_0x4bedb8['shift']());}}}(a87_0x5528,0xd0ca9));function a87_0x5528(){const _0x553ffb=['Nuyyq','48644PyhLIP','874699qRXjNU','102JhqYfP','registerObserver','exports','2806966BEPEDQ','../../helpers/classLogger.js','928360cmTXGX','1083966YhbIEN','observers','getInstance','17183336UItDBZ','9757559RaZFFQ'];a87_0x5528=function(){return _0x553ffb;};return a87_0x5528();}const {createClassLogger}=require(a87_0x45387c(0x1c5));class EventDispatcher{static #instance=null;constructor(){const _0x5195cc=a87_0x45387c;this[_0x5195cc(0x1ba)]={};}static[a87_0x45387c(0x1bb)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x45387c(0x1c2)](_0x40b253,_0x2c899a){const _0x22c3a0=a87_0x45387c;!this['observers'][_0x40b253]&&(this['observers'][_0x40b253]=[]),this[_0x22c3a0(0x1ba)][_0x40b253]['push'](_0x2c899a);}async['notifyObserver'](_0xdd001b,_0x123629){const _0x34c0e0=a87_0x45387c,_0x1c2bed={'Nuyyq':function(_0x29b342,_0x565c9d){return _0x29b342(_0x565c9d);}};if(this['observers'][_0xdd001b]){for(const _0x2c385c of this['observers'][_0xdd001b]){await _0x1c2bed[_0x34c0e0(0x1be)](_0x2c385c,_0x123629);}return;}}}const eventDispatcher=EventDispatcher[a87_0x45387c(0x1bb)]();Object['freeze'](eventDispatcher),module[a87_0x45387c(0x1c3)]=eventDispatcher;
@@ -1 +1 @@
1
- function a88_0x4d6c(_0x1d277d,_0x75c14d){const _0x2fb1b5=a88_0x2fb1();return a88_0x4d6c=function(_0x4d6cda,_0x29af8a){_0x4d6cda=_0x4d6cda-0xcd;let _0x42a990=_0x2fb1b5[_0x4d6cda];return _0x42a990;},a88_0x4d6c(_0x1d277d,_0x75c14d);}const a88_0x65dbec=a88_0x4d6c;(function(_0x35525c,_0x10b633){const _0x42533b=a88_0x4d6c,_0x5ce508=_0x35525c();while(!![]){try{const _0x3733a6=parseInt(_0x42533b(0xe1))/0x1*(-parseInt(_0x42533b(0xd7))/0x2)+-parseInt(_0x42533b(0xdf))/0x3+-parseInt(_0x42533b(0xe3))/0x4+parseInt(_0x42533b(0xe9))/0x5*(parseInt(_0x42533b(0xe8))/0x6)+parseInt(_0x42533b(0xdd))/0x7+parseInt(_0x42533b(0xe4))/0x8*(-parseInt(_0x42533b(0xd1))/0x9)+parseInt(_0x42533b(0xe7))/0xa;if(_0x3733a6===_0x10b633)break;else _0x5ce508['push'](_0x5ce508['shift']());}catch(_0xd5c3c3){_0x5ce508['push'](_0x5ce508['shift']());}}}(a88_0x2fb1,0x42f73));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a88_0x65dbec(0xd4)),eventDispatcher=require(a88_0x65dbec(0xda)),CLIUtils=require(a88_0x65dbec(0xee)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');class AutomationFramework{static [a88_0x65dbec(0xec)]=new Map();static [a88_0x65dbec(0xd2)]=a88_0x65dbec(0xd6);static [a88_0x65dbec(0xef)]='non_browserstack_automation_sessions';constructor(_0x2fd906,_0xef26a8){const _0x17d6a1=a88_0x65dbec;this['automationFrameworkName']=_0x2fd906,this[_0x17d6a1(0xe5)]=_0xef26a8;}['getAutomationFrameworkName'](){return this['automationFrameworkName'];}[a88_0x65dbec(0xdc)](){const _0x1efdb8=a88_0x65dbec;return this[_0x1efdb8(0xe5)];}async[a88_0x65dbec(0xce)](_0x27bf42,_0x1b9bd4,_0x29e3b7={}){const _0x1cc4bf=a88_0x65dbec;logger['debug'](_0x1cc4bf(0xd9)+_0x27bf42+_0x1cc4bf(0xeb)+_0x1b9bd4);}async[a88_0x65dbec(0xe2)](_0x42c09e,_0x4b5589,_0x16b49e,_0x307760={}){const _0x353b2e=a88_0x65dbec,_0x5273d0=CLIUtils['getHookRegistryKey'](_0x4b5589,_0x16b49e);_0x42c09e&&_0x42c09e[_0x353b2e(0xea)](_0x4b5589),await eventDispatcher[_0x353b2e(0xcf)](_0x5273d0,_0x307760);}static['registerObserver'](_0x293572,_0x435822,_0x103272){const _0x532183=a88_0x65dbec;eventDispatcher['registerObserver'](CLIUtils[_0x532183(0xe0)](_0x293572,_0x435822),_0x103272);}static[a88_0x65dbec(0xed)](_0x377417,_0x563123){const _0x48d663=a88_0x65dbec;AutomationFramework[_0x48d663(0xec)][_0x48d663(0xde)](_0x377417['getId'](),_0x563123);}static[a88_0x65dbec(0xd8)](){const _0x169f4e=a88_0x65dbec,_0x1d908d=TrackedInstance[_0x169f4e(0xd3)](CLIUtils[_0x169f4e(0xcd)]());return AutomationFramework[_0x169f4e(0xec)]['get'](_0x1d908d[_0x169f4e(0xdb)]());}static[a88_0x65dbec(0xea)](_0x5edcdc,_0x225046,_0x4d47f1){const _0x5cbff9=a88_0x65dbec;_0x5edcdc[_0x5cbff9(0xd5)]()[_0x5cbff9(0xde)](_0x225046,_0x4d47f1);}static['getState'](_0x1bec6d,_0x64623){const _0x21c951=a88_0x65dbec;return _0x1bec6d['getAllData']()[_0x21c951(0xe6)](_0x64623);}}function a88_0x2fb1(){const _0x3c9771=['exports','3478671ZNjIGl','KEY_AUTOMATION_SESSIONS','createContext','util','getAllData','automation_sessions','40CZSeQy','getTrackedInstance','trackEvent:\x20automationFrameworkState=','../eventDispatcher.js','getId','getAutomationFrameworkVersion','1411116adVAmS','set','1331154QVaPgB','getHookRegistryKey','21767DmKRuG','runHooks','31308Kepchz','8lAgYfu','automationFrameworkVersion','get','12255090RuNDsk','361794ievtkX','10sOZWbC','setState','\x20hookState=','instances','setTrackedInstance','../cliUtils.js','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getCurrentInstanceName','trackEvent','notifyObserver'];a88_0x2fb1=function(){return _0x3c9771;};return a88_0x2fb1();}module[a88_0x65dbec(0xd0)]=AutomationFramework;
1
+ const a88_0x4417ab=a88_0x3645;(function(_0x545599,_0x57da17){const _0x33c9a4=a88_0x3645,_0x4d6cad=_0x545599();while(!![]){try{const _0x2961db=-parseInt(_0x33c9a4(0x1fb))/0x1*(-parseInt(_0x33c9a4(0x1f5))/0x2)+parseInt(_0x33c9a4(0x1ff))/0x3+parseInt(_0x33c9a4(0x1f1))/0x4+-parseInt(_0x33c9a4(0x209))/0x5+parseInt(_0x33c9a4(0x205))/0x6*(-parseInt(_0x33c9a4(0x207))/0x7)+parseInt(_0x33c9a4(0x1f0))/0x8+-parseInt(_0x33c9a4(0x1fe))/0x9;if(_0x2961db===_0x57da17)break;else _0x4d6cad['push'](_0x4d6cad['shift']());}catch(_0x410ba2){_0x4d6cad['push'](_0x4d6cad['shift']());}}}(a88_0x46c1,0x2d17e));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require('util'),eventDispatcher=require(a88_0x4417ab(0x204)),CLIUtils=require(a88_0x4417ab(0x1f2)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0x4417ab(0x202));function a88_0x3645(_0x1db4eb,_0x1735c3){const _0x46c162=a88_0x46c1();return a88_0x3645=function(_0x36459a,_0x4a7aa4){_0x36459a=_0x36459a-0x1eb;let _0x279dc1=_0x46c162[_0x36459a];return _0x279dc1;},a88_0x3645(_0x1db4eb,_0x1735c3);}function a88_0x46c1(){const _0x3209c8=['1593115OBsRgD','getAllData','getAutomationFrameworkVersion','trackEvent','getTrackedInstance','createContext','registerObserver','setState','getAutomationFrameworkName','automationFrameworkName','2060040IoGrZL','1078656bZJIis','../cliUtils.js','instances','automation_sessions','4iPjOuI','exports','trackEvent:\x20automationFrameworkState=','getId','notifyObserver','get','7099dKJtSR','debug','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','1909485MHcKuA','637803JBgGdq','setTrackedInstance','getHookRegistryKey','AutomationFramework','automationFrameworkVersion','../eventDispatcher.js','76956KWlerw','set','21fLdqyN','runHooks'];a88_0x46c1=function(){return _0x3209c8;};return a88_0x46c1();}class AutomationFramework{static [a88_0x4417ab(0x1f3)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x4417ab(0x1f4);static [a88_0x4417ab(0x1fd)]='non_browserstack_automation_sessions';constructor(_0x1caeea,_0x5c2b84){const _0x496703=a88_0x4417ab;this[_0x496703(0x1ef)]=_0x1caeea,this[_0x496703(0x203)]=_0x5c2b84;}[a88_0x4417ab(0x1ee)](){const _0x1a6527=a88_0x4417ab;return this[_0x1a6527(0x1ef)];}[a88_0x4417ab(0x20b)](){const _0x342c9b=a88_0x4417ab;return this[_0x342c9b(0x203)];}async[a88_0x4417ab(0x20c)](_0x417187,_0x4b3be5,_0x2f9344={}){const _0x2ac337=a88_0x4417ab;logger[_0x2ac337(0x1fc)](_0x2ac337(0x1f7)+_0x417187+'\x20hookState='+_0x4b3be5);}async[a88_0x4417ab(0x208)](_0x20d72c,_0x43868f,_0x1e9c2b,_0x3760f0={}){const _0x11daf2=a88_0x4417ab,_0x182e04=CLIUtils[_0x11daf2(0x201)](_0x43868f,_0x1e9c2b);_0x20d72c&&_0x20d72c[_0x11daf2(0x1ed)](_0x43868f),await eventDispatcher[_0x11daf2(0x1f9)](_0x182e04,_0x3760f0);}static[a88_0x4417ab(0x1ec)](_0x41799e,_0x5dd2bf,_0x349f8e){const _0x41abc3=a88_0x4417ab;eventDispatcher['registerObserver'](CLIUtils[_0x41abc3(0x201)](_0x41799e,_0x5dd2bf),_0x349f8e);}static[a88_0x4417ab(0x200)](_0x2a4ed7,_0x1de5ae){const _0x422392=a88_0x4417ab;AutomationFramework[_0x422392(0x1f3)][_0x422392(0x206)](_0x2a4ed7[_0x422392(0x1f8)](),_0x1de5ae);}static[a88_0x4417ab(0x20d)](){const _0x5d3282=a88_0x4417ab,_0xfafd5=TrackedInstance[_0x5d3282(0x1eb)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x5d3282(0x1f3)][_0x5d3282(0x1fa)](_0xfafd5[_0x5d3282(0x1f8)]());}static[a88_0x4417ab(0x1ed)](_0x2ffbaf,_0x1101ec,_0x38a1d7){const _0x428a6f=a88_0x4417ab;_0x2ffbaf[_0x428a6f(0x20a)]()[_0x428a6f(0x206)](_0x1101ec,_0x38a1d7);}static['getState'](_0x4f638d,_0xb1f6da){const _0x4134c6=a88_0x4417ab;return _0x4f638d['getAllData']()[_0x4134c6(0x1fa)](_0xb1f6da);}}module[a88_0x4417ab(0x1f6)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x26bb69=a89_0x12c0;(function(_0xe2921a,_0x21c32c){const _0x3960d5=a89_0x12c0,_0x429c2f=_0xe2921a();while(!![]){try{const _0x48360d=-parseInt(_0x3960d5(0xbe))/0x1+parseInt(_0x3960d5(0xb4))/0x2*(parseInt(_0x3960d5(0xbc))/0x3)+parseInt(_0x3960d5(0xb7))/0x4+parseInt(_0x3960d5(0xc1))/0x5*(-parseInt(_0x3960d5(0xaf))/0x6)+parseInt(_0x3960d5(0xab))/0x7*(parseInt(_0x3960d5(0xb5))/0x8)+parseInt(_0x3960d5(0xc0))/0x9*(parseInt(_0x3960d5(0xa6))/0xa)+-parseInt(_0x3960d5(0xc5))/0xb;if(_0x48360d===_0x21c32c)break;else _0x429c2f['push'](_0x429c2f['shift']());}catch(_0x17f25b){_0x429c2f['push'](_0x429c2f['shift']());}}}(a89_0xa2e7,0x53e4e));const a89_0x173946={};function a89_0x12c0(_0xe3bdc1,_0x24692b){const _0xa2e7ce=a89_0xa2e7();return a89_0x12c0=function(_0x12c0d0,_0x39d773){_0x12c0d0=_0x12c0d0-0xa5;let _0xab4c00=_0xa2e7ce[_0x12c0d0];return _0xab4c00;},a89_0x12c0(_0xe3bdc1,_0x24692b);}a89_0x173946['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x26bb69(0xba),a89_0x173946[a89_0x26bb69(0xbf)]='hub_url',a89_0x173946[a89_0x26bb69(0xb8)]=a89_0x26bb69(0xc2),a89_0x173946[a89_0x26bb69(0xc7)]=a89_0x26bb69(0xb6),a89_0x173946[a89_0x26bb69(0xb0)]=a89_0x26bb69(0xb1),a89_0x173946[a89_0x26bb69(0xa7)]='is_browserstack_hub',a89_0x173946[a89_0x26bb69(0xb9)]=a89_0x26bb69(0xa5),a89_0x173946[a89_0x26bb69(0xae)]=a89_0x26bb69(0xac),a89_0x173946['KEY_PLATFORM_INDEX']=a89_0x26bb69(0xad),a89_0x173946[a89_0x26bb69(0xc3)]=a89_0x26bb69(0xaa),a89_0x173946[a89_0x26bb69(0xb2)]=a89_0x26bb69(0xc6),a89_0x173946[a89_0x26bb69(0xa9)]=a89_0x26bb69(0xbb),a89_0x173946['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a89_0x173946[a89_0x26bb69(0xbd)]='w3cexecutescriptasync',a89_0x173946[a89_0x26bb69(0xa8)]=a89_0x26bb69(0xb3);function a89_0xa2e7(){const _0xfd39c3=['screenshot','3Qcsere','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','295316GotUVA','KEY_HUB_URL','10494ulqOLR','15aIZrrW','framework_session_id','COMMAND_NEW_SESSION','exports','3518218FwFiHi','get','KEY_INPUT_CAPABILITIES','started_at','2560ExeGQD','KEY_IS_BROWSERSTACK_HUB','COMMAND_QUIT','COMMAND_SCREENSHOT','newsession','18543kMKvdn','ended_at','platform_index','KEY_ENDED_AT','259746STlHRE','KEY_CAPABILITIES','capabilities','COMMAND_GET','quit','949714pWQvxm','168ZhuKwo','input_capabilities','1038700iUqkQX','KEY_FRAMEWORK_SESSION_ID','KEY_STARTED_AT','BROWSERSTACK_PLATFORM_INDEX'];a89_0xa2e7=function(){return _0xfd39c3;};return a89_0xa2e7();}const AutomationFrameworkConstants=a89_0x173946;module[a89_0x26bb69(0xc4)]=AutomationFrameworkConstants;
1
+ const a89_0x124ac7=a89_0x39d7;(function(_0x3d1f20,_0x2f6621){const _0x486b45=a89_0x39d7,_0x35c261=_0x3d1f20();while(!![]){try{const _0x34222d=parseInt(_0x486b45(0x78))/0x1*(parseInt(_0x486b45(0x6f))/0x2)+parseInt(_0x486b45(0x6a))/0x3*(parseInt(_0x486b45(0x8a))/0x4)+parseInt(_0x486b45(0x8d))/0x5*(parseInt(_0x486b45(0x8f))/0x6)+-parseInt(_0x486b45(0x6d))/0x7*(parseInt(_0x486b45(0x72))/0x8)+parseInt(_0x486b45(0x6e))/0x9+-parseInt(_0x486b45(0x85))/0xa*(-parseInt(_0x486b45(0x8c))/0xb)+-parseInt(_0x486b45(0x80))/0xc;if(_0x34222d===_0x2f6621)break;else _0x35c261['push'](_0x35c261['shift']());}catch(_0x15b20a){_0x35c261['push'](_0x35c261['shift']());}}}(a89_0x2501,0xd1144));const a89_0x1a5cfe={};function a89_0x2501(){const _0x2c9e8d=['KEY_CAPABILITIES','COMMAND_NEW_SESSION','71JudsbM','exports','w3cexecutescriptasync','COMMAND_QUIT','ended_at','COMMAND_GET','started_at','get','20635692YyORpL','hub_url','capabilities','w3cexecutescript','newsession','174290KkqLsJ','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','is_browserstack_hub','254268SsbZww','platform_index','99wGEfpH','52945euQUUx','input_capabilities','672RHJZWA','18BvMMMw','KEY_STARTED_AT','KEY_FRAMEWORK_SESSION_ID','7wfWFPc','5512122VmimLO','36118LFxMeL','screenshot','framework_session_id','8342792hFGtMT','KEY_INPUT_CAPABILITIES','quit','ENV_BROWSERSTACK_PLATFORM_INDEX'];a89_0x2501=function(){return _0x2c9e8d;};return a89_0x2501();}a89_0x1a5cfe[a89_0x124ac7(0x75)]='BROWSERSTACK_PLATFORM_INDEX',a89_0x1a5cfe['KEY_HUB_URL']=a89_0x124ac7(0x81),a89_0x1a5cfe[a89_0x124ac7(0x6c)]=a89_0x124ac7(0x71),a89_0x1a5cfe[a89_0x124ac7(0x73)]=a89_0x124ac7(0x8e),a89_0x1a5cfe[a89_0x124ac7(0x76)]=a89_0x124ac7(0x82),a89_0x1a5cfe['KEY_IS_BROWSERSTACK_HUB']=a89_0x124ac7(0x89),a89_0x1a5cfe[a89_0x124ac7(0x6b)]=a89_0x124ac7(0x7e),a89_0x1a5cfe['KEY_ENDED_AT']=a89_0x124ac7(0x7c),a89_0x1a5cfe['KEY_PLATFORM_INDEX']=a89_0x124ac7(0x8b),a89_0x1a5cfe[a89_0x124ac7(0x77)]=a89_0x124ac7(0x84),a89_0x1a5cfe[a89_0x124ac7(0x7d)]=a89_0x124ac7(0x7f),a89_0x1a5cfe[a89_0x124ac7(0x88)]=a89_0x124ac7(0x70),a89_0x1a5cfe[a89_0x124ac7(0x86)]=a89_0x124ac7(0x83),a89_0x1a5cfe[a89_0x124ac7(0x87)]=a89_0x124ac7(0x7a),a89_0x1a5cfe[a89_0x124ac7(0x7b)]=a89_0x124ac7(0x74);const AutomationFrameworkConstants=a89_0x1a5cfe;function a89_0x39d7(_0x4577d5,_0x159d78){const _0x25012e=a89_0x2501();return a89_0x39d7=function(_0x39d712,_0x45807c){_0x39d712=_0x39d712-0x6a;let _0xdaa673=_0x25012e[_0x39d712];return _0xdaa673;},a89_0x39d7(_0x4577d5,_0x159d78);}module[a89_0x124ac7(0x79)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0x13bc(_0xc3ffad,_0x50b7cb){const _0x5b3907=a90_0x5b39();return a90_0x13bc=function(_0x13bc0b,_0xcdf961){_0x13bc0b=_0x13bc0b-0x179;let _0x1554f9=_0x5b3907[_0x13bc0b];return _0x1554f9;},a90_0x13bc(_0xc3ffad,_0x50b7cb);}const a90_0x267ad5=a90_0x13bc;(function(_0x2ebe3c,_0x3359c6){const _0x34d521=a90_0x13bc,_0x38a9b0=_0x2ebe3c();while(!![]){try{const _0x51b4ed=parseInt(_0x34d521(0x19c))/0x1+parseInt(_0x34d521(0x1b5))/0x2+-parseInt(_0x34d521(0x1c5))/0x3*(-parseInt(_0x34d521(0x192))/0x4)+-parseInt(_0x34d521(0x1ab))/0x5+-parseInt(_0x34d521(0x1b7))/0x6+-parseInt(_0x34d521(0x17c))/0x7+parseInt(_0x34d521(0x196))/0x8*(-parseInt(_0x34d521(0x1c4))/0x9);if(_0x51b4ed===_0x3359c6)break;else _0x38a9b0['push'](_0x38a9b0['shift']());}catch(_0x37112c){_0x38a9b0['push'](_0x38a9b0['shift']());}}}(a90_0x5b39,0x71122));function a90_0x5b39(){const _0x1f010e=['exports','TEST_SCREENSHOT','KEY_TEST_FAILURE','retry_of','KEY_TEST_ENDED_AT','KEY_AUTOMATE_SESSION_REASON','2709drGmZD','18iYIIzd','event_started_at','KEY_PLATFORM_INDEX','KEY_TEST_LOGS','test_failure','MAX_TOP_LEVEL_STEPS','test_hook_last_finished','test_session_name','pending','test_framework_name','hook_logs','test_hook_last_started','KEY_FILE_LEVEL','HOOK_REGEX','KEY_HOOKS_FINISHED','automate_session_reason','KEY_HOOK_FAILURE_TYPE','custom_metadata','4177166orKViT','KEY_HOOKS_STARTED','KEY_EVENT_STARTED_AT','KEY_FILE_NAME','automate_session_name','KEY_CUSTOM_TAGS','file_level','KEY_TEST_TAGS','hook_failure_type','KEY_TEST_META','hook_failure_reason','KEY_HOOK_NAME','file_name','KEY_TEST_FRAMEWORK_VERSION','test_attachments','KEY_TEST_ID','test_hooks_started','KEY_TEST_SCREENSHOTS','KEY_FILE_PATH','KEY_TEST_UUID','KEY_TEST_FILE_PATH','file_size','505812phDYAI','test_rerun_name','KEY_TEST_FRAMEWORK_NAME','KEY_EVENT_ENDED_AT','14024YRIVdz','test_file_path','KEY_TEST_NAME','platform_index','test_failure_type','hook_failure','677330pnKIZL','KEY_TEST_FAILURE_REASON','test_name','KEY_HOOK_FAILURE_REASON','KEY_TEST_CODE','test_logs','test_duration','KEY_AUTOMATE_SESSION_STATUS','test_meta','test_screenshots','hook_result','test_framework_version','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FAILURE_TYPE','DEFAULT_HOOK_RESULT','2289210grroIZ','KEY_SESSION_NAME','KEY_TEST_ATTACHMENTS','test_id','event_ended_at','KEY_TEST_RESULT','test_result_at','KEY_HOOK_RESULT','TEST_LOG','KEY_HOOK_ID','1791216HjhiCv','test_code','1717710dXySlD','test_result','test_started_at','KEY_TEST_RESULT_AT','file_path','test_location','automate_session_status'];a90_0x5b39=function(){return _0x1f010e;};return a90_0x5b39();}const a90_0x2c32ce={};a90_0x2c32ce[a90_0x267ad5(0x18f)]='test_uuid',a90_0x2c32ce[a90_0x267ad5(0x18b)]=a90_0x267ad5(0x1ae),a90_0x2c32ce[a90_0x267ad5(0x198)]=a90_0x267ad5(0x19e),a90_0x2c32ce[a90_0x267ad5(0x190)]=a90_0x267ad5(0x197),a90_0x2c32ce[a90_0x267ad5(0x183)]='test_tags',a90_0x2c32ce[a90_0x267ad5(0x1b0)]=a90_0x267ad5(0x1b8),a90_0x2c32ce[a90_0x267ad5(0x1ba)]=a90_0x267ad5(0x1b1),a90_0x2c32ce['KEY_TEST_STARTED_AT']=a90_0x267ad5(0x1b9),a90_0x2c32ce[a90_0x267ad5(0x1c2)]='test_ended_at',a90_0x2c32ce['KEY_TEST_LOCATION']=a90_0x267ad5(0x1bc),a90_0x2c32ce['KEY_TEST_DURATION']=a90_0x267ad5(0x1a2),a90_0x2c32ce['KEY_TEST_SCOPE']='test_scope',a90_0x2c32ce['KEY_TEST_SCOPES']='test_scopes',a90_0x2c32ce[a90_0x267ad5(0x194)]=a90_0x267ad5(0x1ce),a90_0x2c32ce[a90_0x267ad5(0x189)]=a90_0x267ad5(0x1a7),a90_0x2c32ce[a90_0x267ad5(0x1a0)]=a90_0x267ad5(0x1b6),a90_0x2c32ce['KEY_TEST_RERUN_NAME']=a90_0x267ad5(0x193),a90_0x2c32ce['KEY_TEST_RETRY_OF']=a90_0x267ad5(0x1c1),a90_0x2c32ce[a90_0x267ad5(0x1c7)]=a90_0x267ad5(0x199),a90_0x2c32ce[a90_0x267ad5(0x1c0)]=a90_0x267ad5(0x1c9),a90_0x2c32ce[a90_0x267ad5(0x1a9)]=a90_0x267ad5(0x19a),a90_0x2c32ce[a90_0x267ad5(0x19d)]='test_failure_reason',a90_0x2c32ce[a90_0x267ad5(0x1c8)]=a90_0x267ad5(0x1a1),a90_0x2c32ce[a90_0x267ad5(0x185)]=a90_0x267ad5(0x1a4),a90_0x2c32ce[a90_0x267ad5(0x1ac)]=a90_0x267ad5(0x1cc),a90_0x2c32ce[a90_0x267ad5(0x1a8)]=a90_0x267ad5(0x180),a90_0x2c32ce[a90_0x267ad5(0x1a3)]=a90_0x267ad5(0x1bd),a90_0x2c32ce[a90_0x267ad5(0x1c3)]=a90_0x267ad5(0x179),a90_0x2c32ce[a90_0x267ad5(0x17e)]=a90_0x267ad5(0x1c6),a90_0x2c32ce[a90_0x267ad5(0x195)]=a90_0x267ad5(0x1af),a90_0x2c32ce[a90_0x267ad5(0x1b4)]='hook_id',a90_0x2c32ce[a90_0x267ad5(0x1b2)]=a90_0x267ad5(0x1a6),a90_0x2c32ce[a90_0x267ad5(0x17a)]=a90_0x267ad5(0x184),a90_0x2c32ce[a90_0x267ad5(0x19f)]=a90_0x267ad5(0x186),a90_0x2c32ce['KEY_HOOK_FAILURE']=a90_0x267ad5(0x19b),a90_0x2c32ce['KEY_HOOK_LOGS']=a90_0x267ad5(0x1cf),a90_0x2c32ce[a90_0x267ad5(0x187)]='hook_name',a90_0x2c32ce['DEFAULT_TEST_RESULT']=a90_0x267ad5(0x1cd),a90_0x2c32ce[a90_0x267ad5(0x1aa)]=a90_0x267ad5(0x1cd),a90_0x2c32ce['KIND_SCREENSHOT']=a90_0x267ad5(0x1bf),a90_0x2c32ce['KIND_LOG']=a90_0x267ad5(0x1b3),a90_0x2c32ce[a90_0x267ad5(0x1d2)]='^(BEFORE_|AFTER_)',a90_0x2c32ce[a90_0x267ad5(0x17d)]=a90_0x267ad5(0x18c),a90_0x2c32ce[a90_0x267ad5(0x1d3)]='test_hooks_finished',a90_0x2c32ce['KEY_HOOK_LAST_STARTED']=a90_0x267ad5(0x1d0),a90_0x2c32ce['KEY_HOOK_LAST_FINISHED']=a90_0x267ad5(0x1cb),a90_0x2c32ce['KEY_LOGS']='logs',a90_0x2c32ce[a90_0x267ad5(0x181)]=a90_0x267ad5(0x17b),a90_0x2c32ce[a90_0x267ad5(0x1ad)]=a90_0x267ad5(0x18a),a90_0x2c32ce['KEY_FILE_SIZE']=a90_0x267ad5(0x191),a90_0x2c32ce[a90_0x267ad5(0x17f)]=a90_0x267ad5(0x188),a90_0x2c32ce[a90_0x267ad5(0x18e)]=a90_0x267ad5(0x1bb),a90_0x2c32ce[a90_0x267ad5(0x1d1)]=a90_0x267ad5(0x182),a90_0x2c32ce[a90_0x267ad5(0x18d)]=a90_0x267ad5(0x1a5),a90_0x2c32ce[a90_0x267ad5(0x1ca)]=0xa,a90_0x2c32ce['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a90_0x2c32ce;module[a90_0x267ad5(0x1be)]=TestFrameworkConstants;
1
+ function a90_0x4ead(){const _0x22db7d=['KEY_EVENT_ENDED_AT','pending','KEY_TEST_LOGS','3735472QsDHfd','test_id','hook_failure_type','KEY_FILE_SIZE','KEY_HOOK_RESULT','KEY_TEST_SCOPES','KEY_HOOK_ID','logs','MAX_TOP_LEVEL_STEPS','KEY_HOOK_FAILURE_TYPE','test_result','hook_failure','retry_of','KEY_FILE_NAME','KEY_HOOK_FAILURE_REASON','KEY_TEST_META','file_name','KEY_TEST_NAME','KEY_TEST_DURATION','KEY_HOOK_LAST_STARTED','test_hook_last_started','hook_name','MAX_NESTED_STEP_DEPTH','KEY_TEST_SCREENSHOTS','test_rerun_name','KEY_FILE_LEVEL','HOOK_REGEX','hook_result','DEFAULT_TEST_RESULT','TEST_LOG','platform_index','test_failure_type','KEY_TEST_UUID','event_ended_at','KEY_SESSION_NAME','KEY_LOGS','TEST_SCREENSHOT','KEY_PLATFORM_INDEX','DEFAULT_HOOK_RESULT','test_failure','test_duration','625543IDmBoi','KEY_TEST_FAILURE_TYPE','77chKePR','test_uuid','KEY_HOOK_LAST_FINISHED','automate_session_reason','file_path','KEY_TEST_RETRY_OF','KEY_TEST_RESULT','custom_metadata','KEY_TEST_SCOPE','test_failure_reason','1355352XXHFga','2RiZZfB','70857iEYNYr','test_scope','test_logs','KEY_TEST_FAILURE_REASON','KEY_HOOKS_FINISHED','KEY_TEST_LOCATION','test_location','KIND_SCREENSHOT','KEY_EVENT_STARTED_AT','8KywCDT','hook_id','test_name','file_size','95673EtSGDH','35vLrDIx','KEY_CUSTOM_TAGS','test_started_at','KEY_AUTOMATE_SESSION_REASON','68QzefcN','508596CagNxA','770MOWIJI','hook_failure_reason','automate_session_status','KEY_TEST_FRAMEWORK_NAME','test_result_at','^(BEFORE_|AFTER_)','file_level','KEY_TEST_ENDED_AT','KEY_TEST_FAILURE','KEY_TEST_TAGS','hook_logs','2912686FTSCht','KEY_TEST_CODE','test_hooks_finished','event_started_at','KEY_TEST_RESULT_AT','test_session_name','test_ended_at'];a90_0x4ead=function(){return _0x22db7d;};return a90_0x4ead();}const a90_0x412181=a90_0x27b0;function a90_0x27b0(_0x3e7da0,_0x6705ad){const _0x4eadb0=a90_0x4ead();return a90_0x27b0=function(_0x27b007,_0x52d37e){_0x27b007=_0x27b007-0xe8;let _0x14768e=_0x4eadb0[_0x27b007];return _0x14768e;},a90_0x27b0(_0x3e7da0,_0x6705ad);}(function(_0x529087,_0x9531cc){const _0x2cb949=a90_0x27b0,_0x1ad90e=_0x529087();while(!![]){try{const _0x322eca=-parseInt(_0x2cb949(0x132))/0x1*(-parseInt(_0x2cb949(0x13f))/0x2)+-parseInt(_0x2cb949(0xed))/0x3*(-parseInt(_0x2cb949(0xf2))/0x4)+-parseInt(_0x2cb949(0xee))/0x5*(-parseInt(_0x2cb949(0xf3))/0x6)+-parseInt(_0x2cb949(0xff))/0x7*(-parseInt(_0x2cb949(0xe9))/0x8)+parseInt(_0x2cb949(0x140))/0x9*(-parseInt(_0x2cb949(0xf4))/0xa)+-parseInt(_0x2cb949(0x134))/0xb*(parseInt(_0x2cb949(0x13e))/0xc)+-parseInt(_0x2cb949(0x109))/0xd;if(_0x322eca===_0x9531cc)break;else _0x1ad90e['push'](_0x1ad90e['shift']());}catch(_0x21e5f6){_0x1ad90e['push'](_0x1ad90e['shift']());}}}(a90_0x4ead,0x785a3));const a90_0x5771c6={};a90_0x5771c6[a90_0x412181(0x129)]=a90_0x412181(0x135),a90_0x5771c6['KEY_TEST_ID']=a90_0x412181(0x10a),a90_0x5771c6[a90_0x412181(0x11a)]=a90_0x412181(0xeb),a90_0x5771c6['KEY_TEST_FILE_PATH']='test_file_path',a90_0x5771c6[a90_0x412181(0xfd)]='test_tags',a90_0x5771c6[a90_0x412181(0x13a)]=a90_0x412181(0x113),a90_0x5771c6[a90_0x412181(0x103)]=a90_0x412181(0xf8),a90_0x5771c6['KEY_TEST_STARTED_AT']=a90_0x412181(0xf0),a90_0x5771c6[a90_0x412181(0xfb)]=a90_0x412181(0x105),a90_0x5771c6[a90_0x412181(0x145)]=a90_0x412181(0x146),a90_0x5771c6[a90_0x412181(0x11b)]=a90_0x412181(0x131),a90_0x5771c6[a90_0x412181(0x13c)]=a90_0x412181(0x141),a90_0x5771c6[a90_0x412181(0x10e)]='test_scopes',a90_0x5771c6[a90_0x412181(0xf7)]='test_framework_name',a90_0x5771c6['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a90_0x5771c6[a90_0x412181(0x100)]='test_code',a90_0x5771c6['KEY_TEST_RERUN_NAME']=a90_0x412181(0x121),a90_0x5771c6[a90_0x412181(0x139)]=a90_0x412181(0x115),a90_0x5771c6[a90_0x412181(0x12e)]=a90_0x412181(0x127),a90_0x5771c6[a90_0x412181(0xfc)]=a90_0x412181(0x130),a90_0x5771c6[a90_0x412181(0x133)]=a90_0x412181(0x128),a90_0x5771c6[a90_0x412181(0x143)]=a90_0x412181(0x13d),a90_0x5771c6[a90_0x412181(0x108)]=a90_0x412181(0x142),a90_0x5771c6[a90_0x412181(0x118)]='test_meta',a90_0x5771c6[a90_0x412181(0x12b)]=a90_0x412181(0x104),a90_0x5771c6['KEY_AUTOMATE_SESSION_NAME']='automate_session_name',a90_0x5771c6['KEY_AUTOMATE_SESSION_STATUS']=a90_0x412181(0xf6),a90_0x5771c6[a90_0x412181(0xf1)]=a90_0x412181(0x137),a90_0x5771c6[a90_0x412181(0xe8)]=a90_0x412181(0x102),a90_0x5771c6[a90_0x412181(0x106)]=a90_0x412181(0x12a),a90_0x5771c6[a90_0x412181(0x10f)]=a90_0x412181(0xea),a90_0x5771c6[a90_0x412181(0x10d)]=a90_0x412181(0x124),a90_0x5771c6[a90_0x412181(0x112)]=a90_0x412181(0x10b),a90_0x5771c6[a90_0x412181(0x117)]=a90_0x412181(0xf5),a90_0x5771c6['KEY_HOOK_FAILURE']=a90_0x412181(0x114),a90_0x5771c6['KEY_HOOK_LOGS']=a90_0x412181(0xfe),a90_0x5771c6['KEY_HOOK_NAME']=a90_0x412181(0x11e),a90_0x5771c6[a90_0x412181(0x125)]=a90_0x412181(0x107),a90_0x5771c6[a90_0x412181(0x12f)]=a90_0x412181(0x107),a90_0x5771c6[a90_0x412181(0x147)]=a90_0x412181(0x12d),a90_0x5771c6['KIND_LOG']=a90_0x412181(0x126),a90_0x5771c6[a90_0x412181(0x123)]=a90_0x412181(0xf9),a90_0x5771c6['KEY_HOOKS_STARTED']='test_hooks_started',a90_0x5771c6[a90_0x412181(0x144)]=a90_0x412181(0x101),a90_0x5771c6[a90_0x412181(0x11c)]=a90_0x412181(0x11d),a90_0x5771c6[a90_0x412181(0x136)]='test_hook_last_finished',a90_0x5771c6[a90_0x412181(0x12c)]=a90_0x412181(0x110),a90_0x5771c6[a90_0x412181(0xef)]=a90_0x412181(0x13b),a90_0x5771c6['KEY_TEST_ATTACHMENTS']='test_attachments',a90_0x5771c6[a90_0x412181(0x10c)]=a90_0x412181(0xec),a90_0x5771c6[a90_0x412181(0x116)]=a90_0x412181(0x119),a90_0x5771c6['KEY_FILE_PATH']=a90_0x412181(0x138),a90_0x5771c6[a90_0x412181(0x122)]=a90_0x412181(0xfa),a90_0x5771c6[a90_0x412181(0x120)]='test_screenshots',a90_0x5771c6[a90_0x412181(0x111)]=0xa,a90_0x5771c6[a90_0x412181(0x11f)]=0x2;const TestFrameworkConstants=a90_0x5771c6;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a91_0x17ff(_0x28023d,_0x517800){const _0x114419=a91_0x1144();return a91_0x17ff=function(_0x17ff30,_0x34cd22){_0x17ff30=_0x17ff30-0x197;let _0x4b35db=_0x114419[_0x17ff30];return _0x4b35db;},a91_0x17ff(_0x28023d,_0x517800);}const a91_0x57e26c=a91_0x17ff;(function(_0x1fa90a,_0x270ad8){const _0x57b450=a91_0x17ff,_0x5adf2c=_0x1fa90a();while(!![]){try{const _0x3aec16=-parseInt(_0x57b450(0x1de))/0x1+-parseInt(_0x57b450(0x22d))/0x2*(-parseInt(_0x57b450(0x1c9))/0x3)+-parseInt(_0x57b450(0x212))/0x4+-parseInt(_0x57b450(0x1b6))/0x5+parseInt(_0x57b450(0x20a))/0x6+parseInt(_0x57b450(0x267))/0x7*(parseInt(_0x57b450(0x1b9))/0x8)+-parseInt(_0x57b450(0x1ef))/0x9*(-parseInt(_0x57b450(0x241))/0xa);if(_0x3aec16===_0x270ad8)break;else _0x5adf2c['push'](_0x5adf2c['shift']());}catch(_0x1d155d){_0x5adf2c['push'](_0x5adf2c['shift']());}}}(a91_0x1144,0xbc499));const TestFramework=require(a91_0x57e26c(0x1b3)),TestFrameworkState=require(a91_0x57e26c(0x1e3)),HookState=require(a91_0x57e26c(0x238)),{createClassLogger}=require(a91_0x57e26c(0x203)),TestFrameworkInstance=require(a91_0x57e26c(0x1a6)),CLIUtils=require(a91_0x57e26c(0x1bf)),TrackedInstance=require(a91_0x57e26c(0x247)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x57e26c(0x231)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x57e26c(0x261)),util=require(a91_0x57e26c(0x21e)),TestInfo=require(a91_0x57e26c(0x1e7)),GrpcClient=require(a91_0x57e26c(0x1ea));class CucumberTestFramework extends TestFramework{constructor(_0x50799a,_0x5e8b14,_0xe67160){super(_0x50799a,_0x5e8b14,_0xe67160);}async[a91_0x57e26c(0x1f3)](_0x229a4f,_0x521f74,_0x29e1a0={}){const _0x5b07f2=a91_0x57e26c,_0x34cc5e={};_0x34cc5e[_0x5b07f2(0x23c)]=_0x5b07f2(0x217),_0x34cc5e['wdzmg']=function(_0x17aa88,_0x3b9519){return _0x17aa88===_0x3b9519;},_0x34cc5e[_0x5b07f2(0x1c3)]=function(_0x15e436,_0x4923a2){return _0x15e436===_0x4923a2;},_0x34cc5e[_0x5b07f2(0x25a)]=function(_0x3ea277,_0x5c0827){return _0x3ea277===_0x5c0827;},_0x34cc5e[_0x5b07f2(0x1ce)]=_0x5b07f2(0x1a3);const _0x41c5f7=_0x34cc5e;await super[_0x5b07f2(0x1f3)](_0x229a4f,_0x521f74,_0x29e1a0);const _0x2aac43=this['resolveInstance'](_0x229a4f,_0x521f74,_0x29e1a0);if(!_0x2aac43){logger['debug'](_0x41c5f7['WAhqR']);return;}try{let _0xc0f0c6,_0x456df0;switch(_0x229a4f){case TestFrameworkState[_0x5b07f2(0x1f5)]:_0xc0f0c6=_0x29e1a0['test'],_0x456df0=TestInfo['getTestUUID'](_0xc0f0c6['id']);if(_0x41c5f7['wdzmg'](_0x521f74,HookState[_0x5b07f2(0x197)])){logger[_0x5b07f2(0x23d)](_0x5b07f2(0x1fe)+_0xc0f0c6['id']);const _0x11fa4d={};_0x11fa4d['testUUID']=_0x456df0,_0x11fa4d['testData']=_0xc0f0c6,_0x2aac43[_0x5b07f2(0x204)](this['parseCucumberTest'](_0x11fa4d)),logger[_0x5b07f2(0x23d)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xc0f0c6['id']),await this[_0x5b07f2(0x1e4)](_0x2aac43,_0xc0f0c6['id']);}else{if(_0x41c5f7[_0x5b07f2(0x1c3)](_0x521f74,HookState[_0x5b07f2(0x213)])){const _0x5a1ac5={};_0x5a1ac5['testUUID']=_0x456df0,_0x5a1ac5[_0x5b07f2(0x232)]=_0xc0f0c6,_0x2aac43['addMultipleEntries'](this[_0x5b07f2(0x1c5)](_0x5a1ac5)),await this['processPendingHooks'](_0x2aac43,_0xc0f0c6['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x41c5f7[_0x5b07f2(0x25a)](_0x521f74,HookState[_0x5b07f2(0x213)])&&await this['sendLogCreatedEvent'](_0x2aac43,_0x229a4f,_0x29e1a0);break;default:if(CLIUtils[_0x5b07f2(0x1b4)](_0x229a4f[_0x5b07f2(0x1d1)]()['split']('.')[0x1])){const _0x53a2d8=await this[_0x5b07f2(0x1f2)](_0x2aac43,_0x229a4f,_0x521f74,_0x29e1a0);_0x2aac43[_0x5b07f2(0x204)](_0x53a2d8);}else logger[_0x5b07f2(0x23d)](_0x5b07f2(0x262)+_0x229a4f+_0x5b07f2(0x24a)+_0x521f74);break;}}catch(_0x3ac514){logger[_0x5b07f2(0x25b)](util['format'](_0x41c5f7[_0x5b07f2(0x1ce)],_0x229a4f,_0x521f74,_0x29e1a0[_0x5b07f2(0x1f1)],_0x3ac514));}_0x29e1a0[_0x5b07f2(0x21f)]=_0x2aac43,await this[_0x5b07f2(0x21a)](_0x2aac43,_0x229a4f,_0x521f74,_0x29e1a0);}[a91_0x57e26c(0x1ba)](_0x167417,_0x2c0ebe,_0x8d0fe2={}){const _0x28072f=a91_0x57e26c,_0x3367a3={};_0x3367a3[_0x28072f(0x1c0)]=function(_0x491033,_0x2a3a1b){return _0x491033===_0x2a3a1b;},_0x3367a3[_0x28072f(0x218)]=function(_0x2bb640,_0x5943d6){return _0x2bb640===_0x5943d6;};const _0xc4a2fa=_0x3367a3;let _0x29b28c=null;return(_0xc4a2fa[_0x28072f(0x1c0)](_0x167417,TestFrameworkState[_0x28072f(0x227)])||_0xc4a2fa[_0x28072f(0x218)](_0x167417,TestFrameworkState['NONE']))&&this['trackCucumberInstance'](_0x167417,_0x8d0fe2),_0x29b28c=TestFramework[_0x28072f(0x1fd)](),_0x29b28c;}[a91_0x57e26c(0x264)](_0x1a8c2f,_0xf5aa8a){const _0x3e7212=a91_0x57e26c,_0x3f1e6d=CLIUtils[_0x3e7212(0x1df)](),_0x19609e=TrackedInstance[_0x3e7212(0x1dd)](_0x3f1e6d);let _0x1d2751=null;logger[_0x3e7212(0x23d)](_0x3e7212(0x25c)+_0x3f1e6d+',\x20state='+_0x1a8c2f),_0x1d2751=new TestFrameworkInstance(_0x19609e,this[_0x3e7212(0x1ff)](),this[_0x3e7212(0x268)](),_0x1a8c2f,HookState[_0x3e7212(0x19f)]),TestFramework[_0x3e7212(0x22c)](_0x19609e,_0x1d2751),logger[_0x3e7212(0x23d)](_0x3e7212(0x24d)+_0x19609e['getId']()+_0x3e7212(0x1b7)+_0x3f1e6d);}['parseCucumberTest'](_0xf98f2f){const _0x620bd6=a91_0x57e26c,_0x38929f={};_0x38929f['eAhGf']=_0x620bd6(0x256);const _0x8912c1=_0x38929f,{testUUID:_0x1d759d,testData:_0x567fc6}=_0xf98f2f;if(!_0x567fc6||!_0x567fc6[_0x620bd6(0x261)])return logger[_0x620bd6(0x23d)](_0x8912c1[_0x620bd6(0x1a9)]),{};const _0x2d4984=_0x1d759d,_0x496a3b=_0x567fc6[_0x620bd6(0x261)],_0x33803e=this['getTestFrameworks']()[0x0],_0x499a1b=this[_0x620bd6(0x268)](),_0xa1494b={[TestFrameworkConstants[_0x620bd6(0x1e5)]]:_0x33803e,[TestFrameworkConstants[_0x620bd6(0x216)]]:_0x499a1b[_0x33803e],[TestFrameworkConstants[_0x620bd6(0x211)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x620bd6(0x23e)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x2d4984,[TestFrameworkConstants[_0x620bd6(0x221)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x620bd6(0x21c)]]:_0x567fc6['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x567fc6[_0x620bd6(0x236)]||'',[TestFrameworkConstants[_0x620bd6(0x21d)]]:_0x496a3b,[TestFrameworkConstants[_0x620bd6(0x205)]]:_0x567fc6['name']||'',[TestFrameworkConstants[_0x620bd6(0x1be)]]:_0x567fc6[_0x620bd6(0x1ec)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x567fc6[_0x620bd6(0x24e)]?.[_0x620bd6(0x265)]||null,[TestFrameworkConstants[_0x620bd6(0x1b0)]]:_0x567fc6[_0x620bd6(0x1f6)]||[],[TestFrameworkConstants[_0x620bd6(0x1ad)]]:_0x567fc6[_0x620bd6(0x20c)]||new Date()[_0x620bd6(0x215)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x567fc6[_0x620bd6(0x1f9)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x567fc6[_0x620bd6(0x1f9)]||[],[TestFrameworkConstants[_0x620bd6(0x22e)]]:_0x567fc6[_0x620bd6(0x1d3)]?.['rerun_name']||_0x567fc6[_0x620bd6(0x1af)]||'',[TestFrameworkConstants[_0x620bd6(0x208)]]:{},[TestFrameworkConstants[_0x620bd6(0x1ab)]]:_0x567fc6[_0x620bd6(0x1c2)]||{}};TestInfo[_0x620bd6(0x202)](_0x496a3b,_0xa1494b),logger[_0x620bd6(0x23d)](_0x620bd6(0x242)+_0x567fc6['name']+_0x620bd6(0x1a8)+_0x2d4984);const _0xe8dd87={};return _0xe8dd87[_0x496a3b]=_0xa1494b,_0xe8dd87;}[a91_0x57e26c(0x1c5)](_0x39112f){const _0x426771=a91_0x57e26c,_0x58da79={'tBbnZ':_0x426771(0x239),'Tgdny':_0x426771(0x223),'kInER':function(_0x49537b,_0x4a7c9c){return _0x49537b===_0x4a7c9c;},'ZsCKB':_0x426771(0x245),'jWwJW':_0x426771(0x1c4),'cMUzp':function(_0x55173e,_0x276bb1,_0x3e14af){return _0x55173e(_0x276bb1,_0x3e14af);},'mPgHC':function(_0x567095,_0x1c2e96){return _0x567095>_0x1c2e96;}},{testUUID:_0x2ba469,testData:_0x207f9d}=_0x39112f;if(!_0x207f9d||!_0x207f9d[_0x426771(0x261)])return logger[_0x426771(0x23d)](_0x58da79[_0x426771(0x1f0)]),{};const _0x4f669=this[_0x426771(0x1ba)](TestFrameworkState[_0x426771(0x1f5)],HookState[_0x426771(0x213)]),_0x1b628d=_0x207f9d[_0x426771(0x261)],_0x5cf09c=TestInfo[_0x426771(0x23f)](_0x1b628d)||{},_0x132040=_0x5cf09c?_0x5cf09c[TestFrameworkConstants[_0x426771(0x208)]]||{}:{},_0x18200c={..._0x5cf09c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x207f9d['result']||_0x58da79[_0x426771(0x233)],[TestFrameworkConstants[_0x426771(0x1d9)]]:_0x207f9d[_0x426771(0x259)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x426771(0x1cd)]]:new Date()[_0x426771(0x215)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x132040,[TestFrameworkConstants[_0x426771(0x19a)]]:[],[TestFrameworkConstants[_0x426771(0x1ab)]]:_0x207f9d[_0x426771(0x1c2)]||{}};_0x58da79[_0x426771(0x1d4)](_0x207f9d['result'],_0x58da79[_0x426771(0x251)])&&_0x207f9d[_0x426771(0x19d)]&&(_0x18200c[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x207f9d[_0x426771(0x209)]||_0x58da79[_0x426771(0x19c)],_0x18200c[TestFrameworkConstants[_0x426771(0x1e1)]]=_0x207f9d[_0x426771(0x228)]||'',_0x18200c[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x207f9d['failure']);const _0x2d20cb=TestInfo['getTestDetails'](_0x1b628d)[TestFrameworkConstants[_0x426771(0x22b)]]||{},_0x47fb90=_0x58da79[_0x426771(0x252)](getManualUploadLogs,_0x2d20cb,_0x4f669[_0x426771(0x23b)]()[_0x426771(0x1e2)](_0x1b628d)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x58da79[_0x426771(0x230)](_0x47fb90[_0x426771(0x1f1)],0x0)){const _0x52ee01=_0x18200c[TestFrameworkConstants['KEY_LOGS']]||[];_0x18200c[TestFrameworkConstants['KEY_LOGS']]=[..._0x52ee01,..._0x47fb90];}_0x207f9d[_0x426771(0x20f)]&&_0x58da79['mPgHC'](_0x207f9d['hooks']['length'],0x0)&&(_0x18200c[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x207f9d[_0x426771(0x20f)]);TestInfo[_0x426771(0x202)](_0x1b628d,_0x18200c),logger[_0x426771(0x23d)](_0x426771(0x255)+_0x207f9d[_0x426771(0x1af)]+_0x426771(0x1d7)+_0x207f9d[_0x426771(0x20e)]);const _0x902296={};return _0x902296[_0x1b628d]=_0x18200c,_0x902296;}async[a91_0x57e26c(0x1f2)](_0x2bd70e,_0x35c9af,_0x28ed31,_0x9f5d9c){const _0x5d0ac8=a91_0x57e26c,_0x808d06={'xOgpi':_0x5d0ac8(0x260),'yUCfa':function(_0x400103){return _0x400103();},'szbud':function(_0x410e44,_0x557a70){return _0x410e44 in _0x557a70;},'qQIfj':function(_0x47994a,_0x45d87f){return _0x47994a===_0x45d87f;},'ILVdR':function(_0x17e1d1,_0xcae45b){return _0x17e1d1>_0xcae45b;},'ToCbp':_0x5d0ac8(0x245),'fBMCN':_0x5d0ac8(0x1c4),'MVweg':_0x5d0ac8(0x1fb),'IWTTt':function(_0x48a9b2,_0x46402f){return _0x48a9b2!==_0x46402f;}},{hookData:_0x1e8ba1}=_0x9f5d9c;if(!_0x1e8ba1)return logger[_0x5d0ac8(0x23d)](_0x808d06['xOgpi']),{};const _0x37a5fc=_0x1e8ba1[_0x5d0ac8(0x261)]||_0x808d06[_0x5d0ac8(0x248)](uuidv4),_0x19bada=_0x1e8ba1[_0x5d0ac8(0x19b)],_0xa4e2d7=_0x35c9af[_0x5d0ac8(0x1d1)]()[_0x5d0ac8(0x1b5)]('.')[0x1],_0x41b52a=TestInfo[_0x5d0ac8(0x23f)](_0x19bada)[TestFrameworkConstants[_0x5d0ac8(0x208)]]||{},_0x56dcca=_0x2bd70e['getAllData']()[_0x5d0ac8(0x1e2)](_0x19bada);if(!_0x56dcca)return logger['debug'](_0x5d0ac8(0x1bb)+_0x19bada+',\x20storing\x20as\x20pending\x20hook'),this[_0x5d0ac8(0x1b2)](_0x2bd70e,_0x19bada,_0x35c9af,_0x28ed31,_0x9f5d9c),{};let _0x3ef5d4=_0x56dcca[TestFrameworkConstants[_0x5d0ac8(0x23e)]];!_0x3ef5d4&&(_0x3ef5d4={});!_0x808d06[_0x5d0ac8(0x214)](_0xa4e2d7,_0x3ef5d4)&&(_0x3ef5d4[_0xa4e2d7]=[]);let _0x356146=_0x56dcca[TestFrameworkConstants[_0x5d0ac8(0x200)]];!_0x356146&&(_0x356146={});!_0x808d06[_0x5d0ac8(0x214)](_0xa4e2d7,_0x356146)&&(_0x356146[_0xa4e2d7]=[]);const _0x21238b={[TestFrameworkConstants[_0x5d0ac8(0x23e)]]:_0x3ef5d4,[TestFrameworkConstants[_0x5d0ac8(0x200)]]:_0x356146},_0x198466={};_0x198466[_0x19bada]=_0x21238b;const _0x23f63b=_0x198466;if(_0x808d06[_0x5d0ac8(0x1c7)](_0x28ed31,HookState['PRE'])){const _0x30b7c5={[TestFrameworkConstants[_0x5d0ac8(0x257)]]:_0x37a5fc,[TestFrameworkConstants[_0x5d0ac8(0x253)]]:TestFrameworkConstants[_0x5d0ac8(0x1ae)],[TestFrameworkConstants[_0x5d0ac8(0x21b)]]:_0x1e8ba1[_0x5d0ac8(0x1a1)],[TestFrameworkConstants[_0x5d0ac8(0x1ca)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x1e8ba1[_0x5d0ac8(0x1a2)],[TestFrameworkConstants[_0x5d0ac8(0x208)]]:_0x41b52a};_0x30b7c5[_0x5d0ac8(0x1db)]=_0xa4e2d7;const _0xa37f22=_0x30b7c5;_0x3ef5d4[_0xa4e2d7][_0x5d0ac8(0x1e9)](_0xa37f22),_0x23f63b[_0x19bada][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0xa4e2d7,logger[_0x5d0ac8(0x23d)](_0x5d0ac8(0x1eb)+_0xa4e2d7+_0x5d0ac8(0x206)+_0xa37f22+_0x5d0ac8(0x250)+_0x9f5d9c);}else{if(_0x808d06['qQIfj'](_0x28ed31,HookState[_0x5d0ac8(0x213)])){const _0x2d6778=_0x1e8ba1[_0x5d0ac8(0x20e)],_0x59f24f=_0x3ef5d4[_0xa4e2d7]||[];logger['debug'](_0x5d0ac8(0x1cb)+_0x59f24f+_0x5d0ac8(0x1e0)+_0x9f5d9c);if(_0x808d06['ILVdR'](_0x59f24f[_0x5d0ac8(0x1f1)],0x0)){const _0x10c8e8=_0x59f24f[_0x5d0ac8(0x22f)]();_0x808d06['qQIfj'](_0x1e8ba1[_0x5d0ac8(0x20e)],_0x808d06[_0x5d0ac8(0x1f7)])&&_0x1e8ba1['failure_data']?(_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x1e8)]]=_0x1e8ba1[_0x5d0ac8(0x209)]||_0x808d06[_0x5d0ac8(0x235)],_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x20b)]]=_0x1e8ba1['failure_reason']||'',_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x1cc)]]=_0x1e8ba1[_0x5d0ac8(0x266)]):_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x253)]]=_0x808d06[_0x5d0ac8(0x1d2)];_0x808d06[_0x5d0ac8(0x25d)](_0x2d6778,TestFrameworkConstants[_0x5d0ac8(0x1ae)])&&(_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x253)]]=_0x2d6778);_0x10c8e8[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1e8ba1[_0x5d0ac8(0x234)]||new Date()[_0x5d0ac8(0x215)](),_0x10c8e8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x41b52a;const _0x334fa9=_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x257)]];!_0x356146[_0xa4e2d7]&&(_0x356146[_0xa4e2d7]=[]),_0x356146[_0xa4e2d7]['push'](_0x10c8e8),_0x23f63b[_0x19bada][TestFrameworkConstants[_0x5d0ac8(0x1f4)]]=_0xa4e2d7;}}}return logger[_0x5d0ac8(0x23d)](_0x5d0ac8(0x23a)+_0x1e8ba1[_0x5d0ac8(0x1a2)]+'\x20with\x20id\x20'+_0x37a5fc+_0x5d0ac8(0x1f8)+_0x19bada),_0x23f63b;}[a91_0x57e26c(0x1c6)](_0xc8e6b6){const _0x29bd64=a91_0x57e26c,_0x5bf649={};_0x5bf649[_0x29bd64(0x207)]='base64';const _0x13cd22=_0x5bf649;try{const _0x40f5c5=_0xc8e6b6['test']?_0xc8e6b6[_0x29bd64(0x1ee)]['id']:_0xc8e6b6['hookData'][_0x29bd64(0x19b)],_0x26bd5e=_0xc8e6b6[_0x29bd64(0x21f)],_0x5c0b7b=_0x26bd5e[_0x29bd64(0x1b8)](),_0x3d7294=_0x26bd5e[_0x29bd64(0x23b)]()['get'](_0x40f5c5);if(!_0x3d7294)return logger[_0x29bd64(0x23d)](_0x29bd64(0x25f)+_0x40f5c5),{};logger['debug'](_0x29bd64(0x24c)+_0x40f5c5);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3b66f9='',[TestFrameworkConstants[_0x29bd64(0x216)]]:_0x5b3860='',[TestFrameworkConstants[_0x29bd64(0x1ad)]]:_0x3e01c4='',[TestFrameworkConstants[_0x29bd64(0x1d9)]]:_0x4cc240=''}=_0x3d7294,_0x117a79=_0x26bd5e[_0x29bd64(0x244)]()[_0x29bd64(0x1d1)]()['split']('.')[0x1],_0x2bce9b=_0x26bd5e[_0x29bd64(0x1a7)]()['toString']()['split']('.')[0x1],_0x45ebc1=global?.[_0x29bd64(0x1d0)]??0x0,_0x14cda8=_0x26bd5e['getRef'](),_0x442dde=Buffer['from'](JSON['stringify'](_0x3d7294))['toString'](_0x13cd22[_0x29bd64(0x207)]),_0x23f46c={'hash':_0x5c0b7b[_0x29bd64(0x1a0)](),'threadId':_0x5c0b7b[_0x29bd64(0x263)]()['toString'](),'processId':_0x5c0b7b[_0x29bd64(0x1d5)]()['toString']()},_0x1de5fc={};_0x1de5fc[_0x29bd64(0x243)]=_0x45ebc1,_0x1de5fc['testFrameworkName']=_0x3b66f9,_0x1de5fc[_0x29bd64(0x225)]=_0x5b3860,_0x1de5fc[_0x29bd64(0x246)]=_0x117a79,_0x1de5fc['hookState']=_0x2bce9b,_0x1de5fc[_0x29bd64(0x20c)]=_0x3e01c4,_0x1de5fc[_0x29bd64(0x237)]=_0x4cc240,_0x1de5fc[_0x29bd64(0x261)]=_0x14cda8,_0x1de5fc[_0x29bd64(0x1bd)]=_0x442dde,_0x1de5fc[_0x29bd64(0x20d)]=_0x23f46c;const _0x38ccef=_0x1de5fc;return logger['debug'](_0x29bd64(0x24f)+_0x40f5c5+_0x29bd64(0x240)+_0x117a79+_0x29bd64(0x1c1)+_0x2bce9b),_0x38ccef;}catch(_0x483a30){return logger[_0x29bd64(0x25b)](_0x29bd64(0x1fc)+util['format'](_0x483a30)),{};}}async[a91_0x57e26c(0x1d6)](_0x162209,_0x36a39e,_0x4f37fd){const _0x4651e3=a91_0x57e26c,_0x4797c7={'aJRVu':function(_0x3dca35,_0x5d2be4,_0x41dc65){return _0x3dca35(_0x5d2be4,_0x41dc65);},'KHTAD':function(_0x3a2080,_0x291b1b){return _0x3a2080===_0x291b1b;},'gRVSr':_0x4651e3(0x220),'iRHqy':function(_0x3caef6,_0x3c3b31){return _0x3caef6/_0x3c3b31;},'zewQL':function(_0x40d459,_0x3c7ad2){return _0x40d459<_0x3c7ad2;},'dkNDA':function(_0x5d328e,_0x1ae21a){return _0x5d328e*_0x1ae21a;},'zjlvx':function(_0x5d071a,_0x1790f2){return _0x5d071a+_0x1790f2;},'yETzF':function(_0x18e7bf,_0x41a5ee){return _0x18e7bf+_0x41a5ee;},'vVFen':_0x4651e3(0x219)};try{const _0x25c21=_0x4f37fd[_0x4651e3(0x1da)],_0x25f4ef=_0x162209[_0x4651e3(0x23b)]()[_0x4651e3(0x1e2)](_0x25c21),{[TestFrameworkConstants[_0x4651e3(0x1e5)]]:_0xff34ea='',[TestFrameworkConstants[_0x4651e3(0x216)]]:_0x5d164a=''}=_0x25f4ef,_0x5bf841=TestInfo[_0x4651e3(0x1ed)](_0x25c21),_0x4bbe37=TestInfo[_0x4651e3(0x23f)](_0x25c21)[TestFrameworkConstants[_0x4651e3(0x22b)]]||{},_0x27147e=_0x4797c7[_0x4651e3(0x1d8)](getMediaArtifactsLogs,_0x4bbe37,_0x162209[_0x4651e3(0x23b)]()['get'](_0x25c21)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x26dbb5=(_0x5bf841||[])[_0x4651e3(0x254)](_0x27147e||[]);if(!_0x26dbb5||_0x4797c7[_0x4651e3(0x1ac)](_0x26dbb5['length'],0x0)){logger[_0x4651e3(0x23d)](_0x4797c7['gRVSr']);return;}const _0x217b6d=0x28,_0x3787bb=Math[_0x4651e3(0x249)](_0x4797c7['iRHqy'](_0x26dbb5[_0x4651e3(0x1f1)],_0x217b6d));for(let _0x4b163b=0x0;_0x4797c7[_0x4651e3(0x1fa)](_0x4b163b,_0x3787bb);_0x4b163b++){const _0x38de8d=_0x4797c7[_0x4651e3(0x1dc)](_0x4b163b,_0x217b6d),_0x4896b4=_0x4797c7[_0x4651e3(0x201)](_0x38de8d,_0x217b6d),_0x5aa8bd=_0x26dbb5[_0x4651e3(0x1aa)](_0x38de8d,_0x4896b4),_0x33cc95={'platformIndex':global?.[_0x4651e3(0x1d0)]??0x0,'logs':_0x5aa8bd,'testFrameworkName':_0xff34ea,'testFrameworkVersion':_0x5d164a,'testFrameworkState':_0x36a39e[_0x4651e3(0x1d1)]()[_0x4651e3(0x1b5)]('.')[0x1]};logger[_0x4651e3(0x23d)](_0x4651e3(0x224)+_0x25c21+_0x4651e3(0x229)+_0x4797c7[_0x4651e3(0x1e6)](_0x4b163b,0x1)+'/'+_0x3787bb+'\x20payload='+util[_0x4651e3(0x1a5)](_0x33cc95));const _0x66aaab=await GrpcClient[_0x4651e3(0x222)]()[_0x4651e3(0x19e)](_0x33cc95);logger['debug'](_0x4651e3(0x224)+_0x25c21+_0x4651e3(0x229)+_0x4797c7[_0x4651e3(0x201)](_0x4b163b,0x1)+'/'+_0x3787bb+_0x4651e3(0x199)+util[_0x4651e3(0x1a5)](_0x66aaab));}}catch(_0x5a7413){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x5a7413));}logger['debug'](_0x4797c7[_0x4651e3(0x226)]);}[a91_0x57e26c(0x1b2)](_0x258f75,_0x5d6a21,_0x21abae,_0x20ef23,_0x1c0e87){const _0x297d49=a91_0x57e26c,_0xd57ab7={'testId':_0x5d6a21,'testFrameworkState':_0x21abae,'hookState':_0x20ef23,'args':_0x1c0e87,'timestamp':new Date()['toISOString']()};_0x258f75['addPendingHook'](_0x5d6a21,_0xd57ab7),logger[_0x297d49(0x23d)](_0x297d49(0x198)+_0x5d6a21+_0x297d49(0x258)+_0x21abae+',\x20hookState:\x20'+_0x20ef23);}async[a91_0x57e26c(0x1e4)](_0x17bd24,_0x1d1cbb){const _0x2aec33=a91_0x57e26c,_0xba473f={};_0xba473f['BRbpF']=function(_0x360e1d,_0x5a9bd5){return _0x360e1d>_0x5a9bd5;};const _0x3ed772=_0xba473f;if(!_0x17bd24[_0x2aec33(0x25e)](_0x1d1cbb))return;const _0xa6b096=_0x17bd24['getPendingHooks'](_0x1d1cbb);logger['debug'](_0x2aec33(0x1c8)+_0xa6b096[_0x2aec33(0x1f1)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1d1cbb);for(const _0x4af196 of _0xa6b096){try{const _0x29f833=await this[_0x2aec33(0x1f2)](_0x17bd24,_0x4af196[_0x2aec33(0x246)],_0x4af196[_0x2aec33(0x1cf)],_0x4af196['args']);_0x29f833&&_0x3ed772[_0x2aec33(0x1b1)](Object[_0x2aec33(0x210)](_0x29f833)[_0x2aec33(0x1f1)],0x0)&&_0x17bd24[_0x2aec33(0x204)](_0x29f833),await this[_0x2aec33(0x21a)](_0x17bd24,_0x4af196['testFrameworkState'],_0x4af196[_0x2aec33(0x1cf)],_0x4af196[_0x2aec33(0x24b)]);}catch(_0x59acdf){logger['error'](_0x2aec33(0x1bc)+_0x1d1cbb+',\x20error:\x20'+_0x59acdf);}}_0x17bd24[_0x2aec33(0x1a4)](_0x1d1cbb),logger['debug']('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1d1cbb);}}module[a91_0x57e26c(0x22a)]=CucumberTestFramework;function a91_0x1144(){const _0x20be61=['jWwJW','failure','logCreatedEvent','NONE','getId','started_at','hook_type','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','removePendingHooks','inspect','../instances/testFrameworkInstance.js','getCurrentHookState','\x20with\x20UUID:\x20','eAhGf','slice','KEY_TEST_META','KHTAD','KEY_TEST_STARTED_AT','DEFAULT_HOOK_RESULT','name','KEY_TEST_TAGS','BRbpF','storePendingHook','./testFramework','matchHookRegex','split','5258120bAbGTg','\x20target=','getContext','472qacmjk','resolveInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','eventJson','KEY_TEST_LOCATION','../cliUtils.js','KyGtl','\x20hookState:\x20','meta','elYIL','UnhandledError','parseCucumberTestResult','createTestFrameworkEventPayload','qQIfj','Processing\x20','3OVYiTF','KEY_HOOK_LOGS','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','nbBNj','hookState','browserstackPlatformIndex','toString','MVweg','customRerunParam','kInER','getProcessId','sendLogCreatedEvent','\x20with\x20result:\x20','aJRVu','KEY_TEST_ENDED_AT','testUUID','key','dkNDA','createContext','979646pefths','getCurrentInstanceName','\x20and\x20args\x20=\x20','KEY_TEST_FAILURE_REASON','get','../state/testFrameworkState.js','processPendingHooks','KEY_TEST_FRAMEWORK_NAME','yETzF','../TestInfo.js','KEY_HOOK_FAILURE_TYPE','push','../grpcClient','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','location','readLogObjects','test','9IDWRPc','tBbnZ','length','trackHookEvent','trackEvent','KEY_HOOK_LAST_FINISHED','TEST','tags','ToCbp','\x20for\x20test:\x20','scopes','zewQL','passed','Error\x20in\x20createTestFrameworkEventPayload:\x20','getTrackedInstance','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','getTestFrameworks','KEY_HOOKS_FINISHED','zjlvx','setTestDetails','../../../helpers/classLogger.js','addMultipleEntries','KEY_TEST_NAME','\x20&\x20hook\x20=\x20','CebHY','KEY_CUSTOM_TAGS','failure_type','1417020GzHiXB','KEY_HOOK_FAILURE_REASON','startedAt','executionContext','result','hooks','keys','KEY_TEST_LOGS','953040KuAVgR','POST','szbud','toISOString','KEY_TEST_FRAMEWORK_VERSION','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','OWiph','Cucumber\x20log\x20created\x20event','runHooks','KEY_EVENT_STARTED_AT','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_ID','util','instance','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_RESULT','getInstance','unknown','sendLogCreatedEvent:\x20for\x20testId:\x20','testFrameworkVersion','vVFen','INIT_TEST','failure_reason','\x20batch\x20','exports','KEY_TEST_ATTACHMENTS','setTrackedInstance','1948746ROLrdq','KEY_TEST_RERUN_NAME','pop','mPgHC','../../../helpers/helper.js','testData','Tgdny','finished_at','fBMCN','file_name','endedAt','../state/hookState.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','Tracked\x20cucumber\x20hook\x20event:\x20','getAllData','WAhqR','debug','KEY_HOOKS_STARTED','getTestDetails','\x20testState:\x20','13559110QNjoyk','Parsed\x20cucumber\x20test:\x20','platformIndex','getCurrentTestState','failed','testFrameworkState','../instances/trackedInstance.js','yUCfa','ceil','\x20&\x20hookState=','args','createTestFrameworkEventPayload\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','body','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','\x20\x20and\x20args\x20=\x20','ZsCKB','cMUzp','KEY_HOOK_RESULT','concat','Updated\x20cucumber\x20test\x20result:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOK_ID',',\x20state:\x20','finishedAt','EYpuJ','error','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','IWTTt','hasPendingHooks','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uuid','trackEvent:\x20unsupported\x20testFrameworkState=','getThreadId','trackCucumberInstance','code','failure_data','56273VnzKdH','getTestFrameworksVersions','PRE','Stored\x20pending\x20hook\x20for\x20testId:\x20','\x20response=','KEY_LOGS','test_run_id'];a91_0x1144=function(){return _0x20be61;};return a91_0x1144();}
1
+ function a91_0x4ed3(_0x481fc7,_0x598a51){const _0x438962=a91_0x4389();return a91_0x4ed3=function(_0x4ed381,_0x511a29){_0x4ed381=_0x4ed381-0x14d;let _0x44bd8c=_0x438962[_0x4ed381];return _0x44bd8c;},a91_0x4ed3(_0x481fc7,_0x598a51);}const a91_0x3217d7=a91_0x4ed3;(function(_0x1f6dea,_0x25413c){const _0x139137=a91_0x4ed3,_0x490a0d=_0x1f6dea();while(!![]){try{const _0x243ebf=parseInt(_0x139137(0x175))/0x1+-parseInt(_0x139137(0x219))/0x2+-parseInt(_0x139137(0x174))/0x3*(-parseInt(_0x139137(0x1df))/0x4)+-parseInt(_0x139137(0x194))/0x5+parseInt(_0x139137(0x208))/0x6+parseInt(_0x139137(0x15d))/0x7*(-parseInt(_0x139137(0x1d0))/0x8)+parseInt(_0x139137(0x1a1))/0x9*(parseInt(_0x139137(0x1a4))/0xa);if(_0x243ebf===_0x25413c)break;else _0x490a0d['push'](_0x490a0d['shift']());}catch(_0x5c5d43){_0x490a0d['push'](_0x490a0d['shift']());}}}(a91_0x4389,0x4f63e));const TestFramework=require(a91_0x3217d7(0x1c3)),TestFrameworkState=require(a91_0x3217d7(0x16d)),HookState=require(a91_0x3217d7(0x189)),{createClassLogger}=require(a91_0x3217d7(0x151)),TestFrameworkInstance=require(a91_0x3217d7(0x1c0)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a91_0x3217d7(0x1f6)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x3217d7(0x186)),logger=createClassLogger(a91_0x3217d7(0x1dd)),{v4:uuidv4}=require(a91_0x3217d7(0x20c)),util=require('util'),TestInfo=require(a91_0x3217d7(0x1fd)),GrpcClient=require(a91_0x3217d7(0x1bd));class CucumberTestFramework extends TestFramework{constructor(_0x1713bd,_0x9bcf4f,_0x1ae841){super(_0x1713bd,_0x9bcf4f,_0x1ae841);}async[a91_0x3217d7(0x16b)](_0x571555,_0x4a049e,_0x342f7e={}){const _0x398135=a91_0x3217d7,_0x365b3d={};_0x365b3d[_0x398135(0x160)]=_0x398135(0x1a9),_0x365b3d[_0x398135(0x1cb)]=function(_0x50c6c2,_0x4674b1){return _0x50c6c2===_0x4674b1;},_0x365b3d[_0x398135(0x184)]=function(_0x2a78c5,_0x1c7cc8){return _0x2a78c5===_0x1c7cc8;},_0x365b3d[_0x398135(0x1ee)]=_0x398135(0x202);const _0x4e7783=_0x365b3d;await super[_0x398135(0x16b)](_0x571555,_0x4a049e,_0x342f7e);const _0xed7351=this[_0x398135(0x1b9)](_0x571555,_0x4a049e,_0x342f7e);if(!_0xed7351){logger[_0x398135(0x169)](_0x4e7783[_0x398135(0x160)]);return;}try{let _0x20eeec,_0x507f73;switch(_0x571555){case TestFrameworkState[_0x398135(0x1d3)]:_0x20eeec=_0x342f7e['test'],_0x507f73=TestInfo[_0x398135(0x200)](_0x20eeec['id']);if(_0x4e7783[_0x398135(0x1cb)](_0x4a049e,HookState[_0x398135(0x18e)])){logger[_0x398135(0x169)](_0x398135(0x1ea)+_0x20eeec['id']);const _0x20d847={};_0x20d847[_0x398135(0x18d)]=_0x507f73,_0x20d847[_0x398135(0x14e)]=_0x20eeec,_0xed7351[_0x398135(0x1b3)](this[_0x398135(0x164)](_0x20d847)),logger[_0x398135(0x169)](_0x398135(0x15b)+_0x20eeec['id']),await this['processPendingHooks'](_0xed7351,_0x20eeec['id']);}else{if(_0x4e7783[_0x398135(0x184)](_0x4a049e,HookState[_0x398135(0x1e3)])){const _0x56e212={};_0x56e212[_0x398135(0x18d)]=_0x507f73,_0x56e212['testData']=_0x20eeec,_0xed7351[_0x398135(0x1b3)](this[_0x398135(0x1d8)](_0x56e212)),await this['processPendingHooks'](_0xed7351,_0x20eeec['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4e7783[_0x398135(0x1cb)](_0x4a049e,HookState[_0x398135(0x1e3)])&&await this[_0x398135(0x14f)](_0xed7351,_0x571555,_0x342f7e);break;default:if(CLIUtils[_0x398135(0x1cd)](_0x571555[_0x398135(0x179)]()[_0x398135(0x16a)]('.')[0x1])){const _0x4b035f=await this[_0x398135(0x1bb)](_0xed7351,_0x571555,_0x4a049e,_0x342f7e);_0xed7351[_0x398135(0x1b3)](_0x4b035f);}else logger[_0x398135(0x169)](_0x398135(0x191)+_0x571555+'\x20&\x20hookState='+_0x4a049e);break;}}catch(_0x54d521){logger[_0x398135(0x1f3)](util[_0x398135(0x1bc)](_0x4e7783['SliFe'],_0x571555,_0x4a049e,_0x342f7e[_0x398135(0x217)],_0x54d521));}_0x342f7e[_0x398135(0x1b1)]=_0xed7351,await this[_0x398135(0x18a)](_0xed7351,_0x571555,_0x4a049e,_0x342f7e);}[a91_0x3217d7(0x1b9)](_0x24ae65,_0x13687f,_0x4d29c3={}){const _0x4de960=a91_0x3217d7,_0x47ef7c={};_0x47ef7c[_0x4de960(0x1e2)]=function(_0x38219b,_0x32e09a){return _0x38219b===_0x32e09a;},_0x47ef7c['eDVBv']=function(_0x560783,_0x15490b){return _0x560783===_0x15490b;};const _0x423bf2=_0x47ef7c;let _0x561345=null;return(_0x423bf2['Yfgiv'](_0x24ae65,TestFrameworkState[_0x4de960(0x159)])||_0x423bf2[_0x4de960(0x213)](_0x24ae65,TestFrameworkState[_0x4de960(0x150)]))&&this[_0x4de960(0x17d)](_0x24ae65,_0x4d29c3),_0x561345=TestFramework['getTrackedInstance'](),_0x561345;}[a91_0x3217d7(0x17d)](_0x3b08cc,_0x4a2112){const _0x3ae2b2=a91_0x3217d7,_0x9fb4a6=CLIUtils[_0x3ae2b2(0x1ca)](),_0x411638=TrackedInstance['createContext'](_0x9fb4a6);let _0x38503c=null;logger[_0x3ae2b2(0x169)](_0x3ae2b2(0x1f2)+_0x9fb4a6+_0x3ae2b2(0x166)+_0x3b08cc),_0x38503c=new TestFrameworkInstance(_0x411638,this[_0x3ae2b2(0x1c4)](),this[_0x3ae2b2(0x1c6)](),_0x3b08cc,HookState[_0x3ae2b2(0x150)]),TestFramework['setTrackedInstance'](_0x411638,_0x38503c),logger[_0x3ae2b2(0x169)](_0x3ae2b2(0x1db)+_0x411638[_0x3ae2b2(0x18c)]()+_0x3ae2b2(0x170)+_0x9fb4a6);}['parseCucumberTest'](_0x7e4d48){const _0x1f0b48=a91_0x3217d7,_0x55e982={};_0x55e982['AtOrF']=_0x1f0b48(0x203);const _0x472f59=_0x55e982,{testUUID:_0x167960,testData:_0x22f9e6}=_0x7e4d48;if(!_0x22f9e6||!_0x22f9e6[_0x1f0b48(0x20c)])return logger[_0x1f0b48(0x169)](_0x472f59[_0x1f0b48(0x20f)]),{};const _0x3cb577=_0x167960,_0x51f0cf=_0x22f9e6[_0x1f0b48(0x20c)],_0x34e31f=this[_0x1f0b48(0x1c4)]()[0x0],_0x40971b=this['getTestFrameworksVersions'](),_0x3d588e={[TestFrameworkConstants[_0x1f0b48(0x1c2)]]:_0x34e31f,[TestFrameworkConstants[_0x1f0b48(0x205)]]:_0x40971b[_0x34e31f],[TestFrameworkConstants[_0x1f0b48(0x1ff)]]:[],[TestFrameworkConstants[_0x1f0b48(0x17c)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x3cb577,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x1f0b48(0x19d)],[TestFrameworkConstants[_0x1f0b48(0x20b)]]:_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x22f9e6[_0x1f0b48(0x172)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x51f0cf,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants[_0x1f0b48(0x1c9)]]:_0x22f9e6['location']||'',[TestFrameworkConstants[_0x1f0b48(0x1cc)]]:_0x22f9e6[_0x1f0b48(0x19f)]?.[_0x1f0b48(0x152)]||null,[TestFrameworkConstants[_0x1f0b48(0x1fa)]]:_0x22f9e6['tags']||[],[TestFrameworkConstants[_0x1f0b48(0x18f)]]:_0x22f9e6['startedAt']||new Date()[_0x1f0b48(0x20d)](),[TestFrameworkConstants[_0x1f0b48(0x1e7)]]:_0x22f9e6['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x22f9e6[_0x1f0b48(0x1d9)]||[],[TestFrameworkConstants[_0x1f0b48(0x1e1)]]:_0x22f9e6[_0x1f0b48(0x214)]?.[_0x1f0b48(0x1b8)]||_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants[_0x1f0b48(0x1d1)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x22f9e6['meta']||{}};TestInfo[_0x1f0b48(0x15c)](_0x51f0cf,_0x3d588e),logger[_0x1f0b48(0x169)](_0x1f0b48(0x178)+_0x22f9e6[_0x1f0b48(0x218)]+_0x1f0b48(0x1e4)+_0x3cb577);const _0x5faea7={};return _0x5faea7[_0x51f0cf]=_0x3d588e,_0x5faea7;}[a91_0x3217d7(0x1d8)](_0xe27248){const _0x53d95b=a91_0x3217d7,_0x222f75={'NobTU':_0x53d95b(0x206),'tcosV':_0x53d95b(0x1a6),'NnGyW':function(_0x10fe42,_0x197049){return _0x10fe42===_0x197049;},'uHHJG':'failed','slJeB':_0x53d95b(0x1f5),'qaisN':function(_0x52cb88,_0x3f5a2d,_0x59ecb5){return _0x52cb88(_0x3f5a2d,_0x59ecb5);},'DRGKT':function(_0x5eca59,_0xc979a3){return _0x5eca59>_0xc979a3;},'LaeVZ':function(_0x2ad81e,_0x5e8207){return _0x2ad81e>_0x5e8207;}},{testUUID:_0xc01795,testData:_0x28d862}=_0xe27248;if(!_0x28d862||!_0x28d862[_0x53d95b(0x20c)])return logger['debug'](_0x222f75[_0x53d95b(0x1b5)]),{};const _0x11b51e=this[_0x53d95b(0x1b9)](TestFrameworkState[_0x53d95b(0x1d3)],HookState[_0x53d95b(0x1e3)]),_0xd82ddd=_0x28d862[_0x53d95b(0x20c)],_0x16165e=TestInfo[_0x53d95b(0x156)](_0xd82ddd)||{},_0x4976d3=_0x16165e?_0x16165e[TestFrameworkConstants[_0x53d95b(0x1d1)]]||{}:{},_0x55cd05={..._0x16165e,[TestFrameworkConstants[_0x53d95b(0x15a)]]:_0x28d862[_0x53d95b(0x171)]||_0x222f75[_0x53d95b(0x1e5)],[TestFrameworkConstants[_0x53d95b(0x158)]]:_0x28d862[_0x53d95b(0x173)]||new Date()[_0x53d95b(0x20d)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x53d95b(0x20d)](),[TestFrameworkConstants[_0x53d95b(0x1d1)]]:_0x4976d3,[TestFrameworkConstants[_0x53d95b(0x211)]]:[],[TestFrameworkConstants[_0x53d95b(0x1d7)]]:_0x28d862[_0x53d95b(0x1e6)]||{}};_0x222f75[_0x53d95b(0x15f)](_0x28d862[_0x53d95b(0x171)],_0x222f75[_0x53d95b(0x1bf)])&&_0x28d862['failure']&&(_0x55cd05[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x28d862[_0x53d95b(0x187)]||_0x222f75[_0x53d95b(0x168)],_0x55cd05[TestFrameworkConstants[_0x53d95b(0x1c1)]]=_0x28d862['failure_reason']||'',_0x55cd05[TestFrameworkConstants[_0x53d95b(0x17f)]]=_0x28d862[_0x53d95b(0x1d6)]);const _0x1853a6=TestInfo[_0x53d95b(0x156)](_0xd82ddd)[TestFrameworkConstants[_0x53d95b(0x17a)]]||{},_0x1a7d9d=_0x222f75['qaisN'](getManualUploadLogs,_0x1853a6,_0x11b51e['getAllData']()['get'](_0xd82ddd)[TestFrameworkConstants[_0x53d95b(0x19b)]]);if(_0x222f75[_0x53d95b(0x212)](_0x1a7d9d[_0x53d95b(0x217)],0x0)){const _0x2a73c9=_0x55cd05[TestFrameworkConstants[_0x53d95b(0x211)]]||[];_0x55cd05[TestFrameworkConstants[_0x53d95b(0x211)]]=[..._0x2a73c9,..._0x1a7d9d];}_0x28d862[_0x53d95b(0x1e0)]&&_0x222f75[_0x53d95b(0x1cf)](_0x28d862['hooks'][_0x53d95b(0x217)],0x0)&&(_0x55cd05[TestFrameworkConstants[_0x53d95b(0x17c)]]=_0x28d862[_0x53d95b(0x1e0)]);TestInfo[_0x53d95b(0x15c)](_0xd82ddd,_0x55cd05),logger[_0x53d95b(0x169)](_0x53d95b(0x177)+_0x28d862['name']+_0x53d95b(0x1d5)+_0x28d862[_0x53d95b(0x171)]);const _0x5a64ae={};return _0x5a64ae[_0xd82ddd]=_0x55cd05,_0x5a64ae;}async[a91_0x3217d7(0x1bb)](_0x331372,_0x50f2d6,_0x503e64,_0x111d58){const _0x14e535=a91_0x3217d7,_0x313a5c={'eOIEu':_0x14e535(0x167),'myFtk':function(_0x347c00){return _0x347c00();},'Uyjyy':function(_0x4c7950,_0x3bdd2e){return _0x4c7950 in _0x3bdd2e;},'bDzQx':function(_0xaba8,_0x3194c4){return _0xaba8 in _0x3194c4;},'IyTJh':function(_0x30d6d0,_0x466740){return _0x30d6d0===_0x466740;},'UnOmX':function(_0x318f29,_0x3279b6){return _0x318f29===_0x3279b6;},'ryIPd':function(_0x11eb40,_0x306e42){return _0x11eb40>_0x306e42;},'xiFTm':function(_0x4de065,_0x475561){return _0x4de065===_0x475561;},'lyLbC':_0x14e535(0x155),'OZgYk':_0x14e535(0x1f5),'CIvPp':_0x14e535(0x1eb),'UicFo':function(_0x619d9,_0x3d2b12){return _0x619d9!==_0x3d2b12;}},{hookData:_0x245ca2}=_0x111d58;if(!_0x245ca2)return logger[_0x14e535(0x169)](_0x313a5c[_0x14e535(0x20e)]),{};const _0x5276a1=_0x245ca2['uuid']||_0x313a5c[_0x14e535(0x180)](uuidv4),_0x5c7fbe=_0x245ca2['test_run_id'],_0x2c5d47=_0x50f2d6['toString']()[_0x14e535(0x16a)]('.')[0x1],_0x22dfef=TestInfo[_0x14e535(0x156)](_0x5c7fbe)[TestFrameworkConstants[_0x14e535(0x1d1)]]||{},_0x22cc05=_0x331372[_0x14e535(0x1a3)]()[_0x14e535(0x163)](_0x5c7fbe);if(!_0x22cc05)return logger['debug']('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x5c7fbe+_0x14e535(0x1f9)),this['storePendingHook'](_0x331372,_0x5c7fbe,_0x50f2d6,_0x503e64,_0x111d58),{};let _0x17211b=_0x22cc05[TestFrameworkConstants[_0x14e535(0x1a0)]];!_0x17211b&&(_0x17211b={});!_0x313a5c[_0x14e535(0x197)](_0x2c5d47,_0x17211b)&&(_0x17211b[_0x2c5d47]=[]);let _0x2e07c6=_0x22cc05[TestFrameworkConstants[_0x14e535(0x17c)]];!_0x2e07c6&&(_0x2e07c6={});!_0x313a5c[_0x14e535(0x181)](_0x2c5d47,_0x2e07c6)&&(_0x2e07c6[_0x2c5d47]=[]);const _0x5923c7={[TestFrameworkConstants[_0x14e535(0x1a0)]]:_0x17211b,[TestFrameworkConstants[_0x14e535(0x17c)]]:_0x2e07c6},_0x2879f7={};_0x2879f7[_0x5c7fbe]=_0x5923c7;const _0x1155bd=_0x2879f7;if(_0x313a5c[_0x14e535(0x1ab)](_0x503e64,HookState[_0x14e535(0x18e)])){const _0x3d4340={[TestFrameworkConstants[_0x14e535(0x188)]]:_0x5276a1,[TestFrameworkConstants[_0x14e535(0x192)]]:TestFrameworkConstants[_0x14e535(0x18b)],[TestFrameworkConstants[_0x14e535(0x1f8)]]:_0x245ca2[_0x14e535(0x161)],[TestFrameworkConstants[_0x14e535(0x1f4)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x245ca2[_0x14e535(0x1b4)],[TestFrameworkConstants[_0x14e535(0x1d1)]]:_0x22dfef};_0x3d4340[_0x14e535(0x1b6)]=_0x2c5d47;const _0x4d3aea=_0x3d4340;_0x17211b[_0x2c5d47]['push'](_0x4d3aea),_0x1155bd[_0x5c7fbe][TestFrameworkConstants[_0x14e535(0x183)]]=_0x2c5d47,logger['debug'](_0x14e535(0x1f7)+_0x2c5d47+_0x14e535(0x16f)+_0x4d3aea+_0x14e535(0x196)+_0x111d58);}else{if(_0x313a5c[_0x14e535(0x193)](_0x503e64,HookState[_0x14e535(0x1e3)])){const _0xf4ec34=_0x245ca2[_0x14e535(0x171)],_0x3f3b3c=_0x17211b[_0x2c5d47]||[];logger[_0x14e535(0x169)](_0x14e535(0x190)+_0x3f3b3c+_0x14e535(0x1f0)+_0x111d58);if(_0x313a5c['ryIPd'](_0x3f3b3c[_0x14e535(0x217)],0x0)){const _0x4270b2=_0x3f3b3c[_0x14e535(0x16c)]();_0x313a5c['xiFTm'](_0x245ca2[_0x14e535(0x171)],_0x313a5c[_0x14e535(0x199)])&&_0x245ca2[_0x14e535(0x1de)]?(_0x4270b2[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x245ca2[_0x14e535(0x187)]||_0x313a5c['OZgYk'],_0x4270b2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x245ca2[_0x14e535(0x1ac)]||'',_0x4270b2[TestFrameworkConstants[_0x14e535(0x216)]]=_0x245ca2['failure_data']):_0x4270b2[TestFrameworkConstants[_0x14e535(0x192)]]=_0x313a5c[_0x14e535(0x19a)];_0x313a5c[_0x14e535(0x1c8)](_0xf4ec34,TestFrameworkConstants[_0x14e535(0x18b)])&&(_0x4270b2[TestFrameworkConstants[_0x14e535(0x192)]]=_0xf4ec34);_0x4270b2[TestFrameworkConstants[_0x14e535(0x1e9)]]=_0x245ca2[_0x14e535(0x21b)]||new Date()[_0x14e535(0x20d)](),_0x4270b2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x22dfef;const _0x379094=_0x4270b2[TestFrameworkConstants[_0x14e535(0x188)]];!_0x2e07c6[_0x2c5d47]&&(_0x2e07c6[_0x2c5d47]=[]),_0x2e07c6[_0x2c5d47][_0x14e535(0x1aa)](_0x4270b2),_0x1155bd[_0x5c7fbe][TestFrameworkConstants[_0x14e535(0x1af)]]=_0x2c5d47;}}}return logger[_0x14e535(0x169)](_0x14e535(0x210)+_0x245ca2[_0x14e535(0x1b4)]+_0x14e535(0x1a2)+_0x5276a1+_0x14e535(0x1a5)+_0x5c7fbe),_0x1155bd;}[a91_0x3217d7(0x1fb)](_0xed9834){const _0x4e507a=a91_0x3217d7,_0xc179aa={};_0xc179aa[_0x4e507a(0x1be)]=_0x4e507a(0x21a);const _0x5be0b9=_0xc179aa;try{const _0x31fb35=_0xed9834[_0x4e507a(0x17e)]?_0xed9834[_0x4e507a(0x17e)]['id']:_0xed9834[_0x4e507a(0x1a7)][_0x4e507a(0x1c7)],_0x389b8c=_0xed9834[_0x4e507a(0x1b1)],_0x1aa5a1=_0x389b8c[_0x4e507a(0x185)](),_0x1533db=_0x389b8c[_0x4e507a(0x1a3)]()[_0x4e507a(0x163)](_0x31fb35);if(!_0x1533db)return logger[_0x4e507a(0x169)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x31fb35),{};logger[_0x4e507a(0x169)](_0x4e507a(0x1fc)+_0x31fb35);const {[TestFrameworkConstants[_0x4e507a(0x1c2)]]:_0x17638d='',[TestFrameworkConstants[_0x4e507a(0x205)]]:_0x375953='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x51b08b='',[TestFrameworkConstants[_0x4e507a(0x158)]]:_0x46b42e=''}=_0x1533db,_0x5d2141=_0x389b8c[_0x4e507a(0x1f1)]()[_0x4e507a(0x179)]()[_0x4e507a(0x16a)]('.')[0x1],_0x146869=_0x389b8c['getCurrentHookState']()[_0x4e507a(0x179)]()['split']('.')[0x1],_0x76cad1=global?.['browserstackPlatformIndex']??0x0,_0x1e399b=_0x389b8c['getRef'](),_0x5b7d90=Buffer['from'](JSON[_0x4e507a(0x1ec)](_0x1533db))[_0x4e507a(0x179)](_0x5be0b9[_0x4e507a(0x1be)]),_0x262089={'hash':_0x1aa5a1[_0x4e507a(0x18c)](),'threadId':_0x1aa5a1[_0x4e507a(0x19e)]()[_0x4e507a(0x179)](),'processId':_0x1aa5a1['getProcessId']()['toString']()},_0x42f875={};_0x42f875[_0x4e507a(0x201)]=_0x76cad1,_0x42f875[_0x4e507a(0x195)]=_0x17638d,_0x42f875[_0x4e507a(0x209)]=_0x375953,_0x42f875['testFrameworkState']=_0x5d2141,_0x42f875[_0x4e507a(0x153)]=_0x146869,_0x42f875[_0x4e507a(0x1dc)]=_0x51b08b,_0x42f875[_0x4e507a(0x1fe)]=_0x46b42e,_0x42f875[_0x4e507a(0x20c)]=_0x1e399b,_0x42f875[_0x4e507a(0x1c5)]=_0x5b7d90,_0x42f875['executionContext']=_0x262089;const _0x29997f=_0x42f875;return logger[_0x4e507a(0x169)](_0x4e507a(0x207)+_0x31fb35+_0x4e507a(0x14d)+_0x5d2141+'\x20hookState:\x20'+_0x146869),_0x29997f;}catch(_0x493c4d){return logger[_0x4e507a(0x1f3)](_0x4e507a(0x198)+util[_0x4e507a(0x1bc)](_0x493c4d)),{};}}async[a91_0x3217d7(0x14f)](_0x53b5ec,_0x565894,_0x42bff8){const _0xc1ac24=a91_0x3217d7,_0xeea09f={'NTiiE':function(_0x45003d,_0x2987a6,_0xff1c3c){return _0x45003d(_0x2987a6,_0xff1c3c);},'NUkoZ':function(_0x33415f,_0x5b2f5a){return _0x33415f===_0x5b2f5a;},'cTJFy':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','mZXMa':function(_0xeb78c0,_0x5e5c4b){return _0xeb78c0/_0x5e5c4b;},'jSdTv':function(_0x8ad75d,_0x5b90c2){return _0x8ad75d<_0x5b90c2;},'JNXwC':function(_0x274506,_0x3b9f09){return _0x274506*_0x3b9f09;},'NPiGz':function(_0x4224f0,_0x2d7724){return _0x4224f0+_0x2d7724;},'mwpPN':_0xc1ac24(0x1ef)};try{const _0x59a184=_0x42bff8[_0xc1ac24(0x18d)],_0x52edf5=_0x53b5ec['getAllData']()[_0xc1ac24(0x163)](_0x59a184),{[TestFrameworkConstants[_0xc1ac24(0x1c2)]]:_0x2cb8ff='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x12cc4c=''}=_0x52edf5,_0x2cdb22=TestInfo['readLogObjects'](_0x59a184),_0x5a3e19=TestInfo['getTestDetails'](_0x59a184)[TestFrameworkConstants[_0xc1ac24(0x17a)]]||{},_0x2da919=_0xeea09f[_0xc1ac24(0x162)](getMediaArtifactsLogs,_0x5a3e19,_0x53b5ec[_0xc1ac24(0x1a3)]()[_0xc1ac24(0x163)](_0x59a184)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1fda23=(_0x2cdb22||[])[_0xc1ac24(0x16e)](_0x2da919||[]);if(!_0x1fda23||_0xeea09f['NUkoZ'](_0x1fda23[_0xc1ac24(0x217)],0x0)){logger[_0xc1ac24(0x169)](_0xeea09f[_0xc1ac24(0x1a8)]);return;}const _0x562a3d=0x28,_0x30ca74=Math['ceil'](_0xeea09f[_0xc1ac24(0x1ba)](_0x1fda23[_0xc1ac24(0x217)],_0x562a3d));for(let _0x5108b8=0x0;_0xeea09f['jSdTv'](_0x5108b8,_0x30ca74);_0x5108b8++){const _0x71432=_0xeea09f[_0xc1ac24(0x15e)](_0x5108b8,_0x562a3d),_0x2992b3=_0xeea09f[_0xc1ac24(0x215)](_0x71432,_0x562a3d),_0x491194=_0x1fda23[_0xc1ac24(0x1ad)](_0x71432,_0x2992b3),_0x3f21de={'platformIndex':global?.[_0xc1ac24(0x1ae)]??0x0,'logs':_0x491194,'testFrameworkName':_0x2cb8ff,'testFrameworkVersion':_0x12cc4c,'testFrameworkState':_0x565894[_0xc1ac24(0x179)]()['split']('.')[0x1]};logger[_0xc1ac24(0x169)](_0xc1ac24(0x176)+_0x59a184+'\x20batch\x20'+_0xeea09f[_0xc1ac24(0x215)](_0x5108b8,0x1)+'/'+_0x30ca74+_0xc1ac24(0x165)+util['inspect'](_0x3f21de));const _0x38216d=await GrpcClient[_0xc1ac24(0x182)]()['logCreatedEvent'](_0x3f21de);logger[_0xc1ac24(0x169)](_0xc1ac24(0x176)+_0x59a184+_0xc1ac24(0x1e8)+_0xeea09f[_0xc1ac24(0x215)](_0x5108b8,0x1)+'/'+_0x30ca74+'\x20response='+util[_0xc1ac24(0x1b7)](_0x38216d));}}catch(_0x38ffc7){logger[_0xc1ac24(0x1f3)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x38ffc7));}logger[_0xc1ac24(0x169)](_0xeea09f[_0xc1ac24(0x1ed)]);}['storePendingHook'](_0x42859e,_0xeb3326,_0x500e7a,_0x14c5ae,_0x5a343f){const _0x4dd4ae=a91_0x3217d7,_0xfc0adf={'testId':_0xeb3326,'testFrameworkState':_0x500e7a,'hookState':_0x14c5ae,'args':_0x5a343f,'timestamp':new Date()[_0x4dd4ae(0x20d)]()};_0x42859e[_0x4dd4ae(0x19c)](_0xeb3326,_0xfc0adf),logger[_0x4dd4ae(0x169)](_0x4dd4ae(0x157)+_0xeb3326+',\x20state:\x20'+_0x500e7a+_0x4dd4ae(0x1da)+_0x14c5ae);}async['processPendingHooks'](_0x381bf4,_0x4daa32){const _0x2a961e=a91_0x3217d7,_0x59ca03={};_0x59ca03['nzFwt']=function(_0xa05fbd,_0x53b8d2){return _0xa05fbd>_0x53b8d2;};const _0x5cd78e=_0x59ca03;if(!_0x381bf4[_0x2a961e(0x1ce)](_0x4daa32))return;const _0x9c9444=_0x381bf4['getPendingHooks'](_0x4daa32);logger[_0x2a961e(0x169)]('Processing\x20'+_0x9c9444['length']+_0x2a961e(0x1d2)+_0x4daa32);for(const _0x43509a of _0x9c9444){try{const _0x544796=await this['trackHookEvent'](_0x381bf4,_0x43509a[_0x2a961e(0x1d4)],_0x43509a[_0x2a961e(0x153)],_0x43509a[_0x2a961e(0x20a)]);_0x544796&&_0x5cd78e['nzFwt'](Object['keys'](_0x544796)[_0x2a961e(0x217)],0x0)&&_0x381bf4[_0x2a961e(0x1b3)](_0x544796),await this[_0x2a961e(0x18a)](_0x381bf4,_0x43509a[_0x2a961e(0x1d4)],_0x43509a[_0x2a961e(0x153)],_0x43509a[_0x2a961e(0x20a)]);}catch(_0x54e6b2){logger[_0x2a961e(0x1f3)](_0x2a961e(0x204)+_0x4daa32+_0x2a961e(0x1b0)+_0x54e6b2);}}_0x381bf4[_0x2a961e(0x154)](_0x4daa32),logger[_0x2a961e(0x169)](_0x2a961e(0x17b)+_0x4daa32);}}function a91_0x4389(){const _0x320e80=['startedAt','CucumberTestFramework','failure_data','196772PVCFHy','hooks','KEY_TEST_RERUN_NAME','Yfgiv','POST','\x20with\x20UUID:\x20','tcosV','meta','KEY_TEST_SCOPE','\x20batch\x20','KEY_EVENT_ENDED_AT','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','passed','stringify','mwpPN','SliFe','Cucumber\x20log\x20created\x20event','\x20and\x20args\x20=\x20','getCurrentTestState','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','error','KEY_HOOK_LOGS','UnhandledError','./constants/testFrameworkConstants.js','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_EVENT_STARTED_AT',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_TAGS','createTestFrameworkEventPayload','createTestFrameworkEventPayload\x20testId:\x20','../TestInfo.js','endedAt','KEY_TEST_LOGS','getTestUUID','platformIndex','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_VERSION','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','315378ajFIXP','testFrameworkVersion','args','KEY_AUTOMATE_SESSION_NAME','uuid','toISOString','eOIEu','AtOrF','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_LOGS','DRGKT','eDVBv','customRerunParam','NPiGz','KEY_HOOK_FAILURE','length','name','1231126nrZqWu','base64','finished_at','\x20testState:\x20','testData','sendLogCreatedEvent','NONE','../../../helpers/classLogger.js','code','hookState','removePendingHooks','failed','getTestDetails','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','INIT_TEST','KEY_TEST_RESULT','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','setTestDetails','1656263PmBUtq','JNXwC','NnGyW','rwxHw','started_at','NTiiE','get','parseCucumberTest','\x20payload=',',\x20state=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','slJeB','debug','split','trackEvent','pop','../state/testFrameworkState.js','concat','\x20&\x20hook\x20=\x20','\x20target=','result','file_name','finishedAt','3irWZwK','494951kmUvXG','sendLogCreatedEvent:\x20for\x20testId:\x20','Updated\x20cucumber\x20test\x20result:\x20','Parsed\x20cucumber\x20test:\x20','toString','KEY_TEST_ATTACHMENTS','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_HOOKS_FINISHED','trackCucumberInstance','test','KEY_TEST_FAILURE','myFtk','bDzQx','getInstance','KEY_HOOK_LAST_STARTED','blNMk','getContext','../../../helpers/helper.js','failure_type','KEY_HOOK_ID','../state/hookState.js','runHooks','DEFAULT_HOOK_RESULT','getId','testUUID','PRE','KEY_TEST_STARTED_AT','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOK_RESULT','UnOmX','966335tkPqsK','testFrameworkName','\x20\x20and\x20args\x20=\x20','Uyjyy','Error\x20in\x20createTestFrameworkEventPayload:\x20','lyLbC','CIvPp','KEY_TEST_UUID','addPendingHook','DEFAULT_TEST_RESULT','getThreadId','body','KEY_HOOKS_STARTED','18wyayim','\x20with\x20id\x20','getAllData','3869570eHbXLV','\x20for\x20test:\x20','unknown','hookData','cTJFy','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','push','IyTJh','failure_reason','slice','browserstackPlatformIndex','KEY_HOOK_LAST_FINISHED',',\x20error:\x20','instance','exports','addMultipleEntries','hook_type','NobTU','key','inspect','rerun_name','resolveInstance','mZXMa','trackHookEvent','format','../grpcClient','YCFUL','uHHJG','../instances/testFrameworkInstance.js','KEY_TEST_FAILURE_REASON','KEY_TEST_FRAMEWORK_NAME','./testFramework','getTestFrameworks','eventJson','getTestFrameworksVersions','test_run_id','UicFo','KEY_TEST_LOCATION','getCurrentInstanceName','IpgTX','KEY_TEST_CODE','matchHookRegex','hasPendingHooks','LaeVZ','8grDllO','KEY_CUSTOM_TAGS','\x20pending\x20hooks\x20for\x20testId:\x20','TEST','testFrameworkState','\x20with\x20result:\x20','failure','KEY_TEST_META','parseCucumberTestResult','scopes',',\x20hookState:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId='];a91_0x4389=function(){return _0x320e80;};return a91_0x4389();}module[a91_0x3217d7(0x1b2)]=CucumberTestFramework;