browserstack-node-sdk 1.63.5 → 1.63.6

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_0x42599c=a85_0x5657;function a85_0x5657(_0xa89e93,_0x418914){const _0x44ae16=a85_0x44ae();return a85_0x5657=function(_0x5657d4,_0x2884b2){_0x5657d4=_0x5657d4-0x1c1;let _0x80614f=_0x44ae16[_0x5657d4];return _0x80614f;},a85_0x5657(_0xa89e93,_0x418914);}(function(_0x15e0a7,_0x27a1e8){const _0x49ce37=a85_0x5657,_0x3f4283=_0x15e0a7();while(!![]){try{const _0x50d2ac=parseInt(_0x49ce37(0x211))/0x1*(-parseInt(_0x49ce37(0x24c))/0x2)+parseInt(_0x49ce37(0x28d))/0x3+-parseInt(_0x49ce37(0x238))/0x4+parseInt(_0x49ce37(0x225))/0x5*(parseInt(_0x49ce37(0x266))/0x6)+-parseInt(_0x49ce37(0x20e))/0x7*(-parseInt(_0x49ce37(0x1cd))/0x8)+parseInt(_0x49ce37(0x269))/0x9+-parseInt(_0x49ce37(0x268))/0xa*(parseInt(_0x49ce37(0x26c))/0xb);if(_0x50d2ac===_0x27a1e8)break;else _0x3f4283['push'](_0x3f4283['shift']());}catch(_0x332ce1){_0x3f4283['push'](_0x3f4283['shift']());}}}(a85_0x44ae,0x84613));const fs=require('fs'),os=require('os'),url=require(a85_0x42599c(0x2a4)),path=require(a85_0x42599c(0x28b)),{exec}=require(a85_0x42599c(0x29e)),{https}=require(a85_0x42599c(0x212)),yauzl=require(a85_0x42599c(0x23d)),util=require(a85_0x42599c(0x1c4)),{getFrameworkVersion}=require(a85_0x42599c(0x23a)),{threadId}=require(a85_0x42599c(0x262)),PerformanceTester=require(a85_0x42599c(0x283)),{EVENTS:PerformanceEvents}=require(a85_0x42599c(0x2bb)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x42599c(0x1e3)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x42599c(0x245)),{createClassLogger}=require(a85_0x42599c(0x1e1)),TestFrameworkInstance=require(a85_0x42599c(0x24e)),HookState=require(a85_0x42599c(0x207)),TestFrameworkState=require(a85_0x42599c(0x25f)),AutomationFrameworkState=require(a85_0x42599c(0x248)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a85_0x42599c(0x203));function a85_0x44ae(){const _0x519394=['HTTP\x20','close','DiUxz','tFQKu','../utils/constants','test','downloadFileStream','./state/automationFrameworkState.js','getSdkLanguage','IfRHs','skipSessionName','28hmkAcX','getSdkVersion','./instances/testFrameworkInstance.js','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','readEntry','openReadStream','RtOZF','end','info','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','gEPFi','Folder\x20does\x20not\x20exist:\x20','tFQSy','hjWRh','testFrameworkDetail','timeout','mzakp','BROWSERSTACK_BINARY_URL','node','./state/testFrameworkState.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','skipSessionStatus','worker_threads','BROWSERSTACK_CLI_ENV','development','existsSync','70164dcaZRB','SHELL_EXECUTE_ERROR','2964020rSygjH','2327661buVsjT','closeSync','reduce','22dDxPiZ','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','includes','getWritableDir','testContextOptions','downloadLatestBinary','preserveStatusCodeOnError','env','.tmp.','cLHKZ','kUViR','dkWsB','faqqa','dNMTb','gIQuw','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','mQoxl','pipe','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','setupCliPath','isDevelopmentEnv','PRDhb','../../helpers/performance/performance-tester.js','IqAHf','Folder\x20','bZLnQ','format','pid','isBinaryBusy','Development\x20Cli\x20Path:\x20','path','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','469710bXNyaD','.sock','jZZZg','tUHqB','version','AKXbv','snliD','binary-','start','SDK_CLI_BIN_PATH','KqNFE','exports','Downloading\x20SDK\x20binary\x20from:\x20','qMlYb','getCurrentInstanceName','getHookRegistryKey','LgKUe','child_process','lazyEntries','wQvVo','IFLVX','statSync','join','url','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','split','EXDEV','EcsvU','unlink','homedir','mRKYa','getExistingCliPath','Vbgcv','CLI\x20version\x20found\x20despite\x20error:\x20\x22','Resolving\x20with\x20stdout:\x20\x22','ymeuX','statusCode','Setting\x20required\x20permissions\x20to\x20','EovKc','qZxRv','faPBD','Binary\x20is\x20busy:\x20','yKzjp','basename','isFile','cwd','../../helpers/performance/constants','soZpp','filter','shouldSkipSessionName',',\x20automationFramework=','GyHqq','get','util','QxGrQ','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','offLY','entry','TheNM','sURoB','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','uslDv','475048tCcMll','jvpyq','dlCSm','RylOK','startsWith','AsdyV','AKhlx','matchHookRegex','icmgG','checkAndUpdateCli','gZkth','cSooC','bRJor','once','getAutomationFrameworkDetail','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','YNFkX','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','WAPSL','../../helpers/classLogger.js','ZsnfQ','../../helpers/utilities','LaeSp','data','GET','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','xdsWY','code','hZasi','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','tizvX','readdirSync','cNuCK','open','bMegy','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','0755','length','.browserstack','.zip','mergeObject','aMSlI','DxkDw','lqSOQ','createWriteStream','cSeyM','mSRCz','uloRJ','\x20version','debug','isDirectory','../utils/apiUtilityMethods.js','getCliDir','chmod','golYz','./state/hookState.js','SDK_CLI_DOWNLOAD','downloaded_file_','ypBGS','cFJKr','AsvuX','\x20already\x20exists','63EukdCF','rmiPK','getTestFrameworkDetail','31191csVdoQ','follow-redirects','message','SDK_CLI_CHECK_UPDATE','Yzjxw','cli_version','destroy','zHzmr','CKOnF','\x20from\x20','warn','parse','Configuring\x20Cli\x20path.','openSync','getCLIParamsForDevEnv','PFaYl','filePath','isArray','truAT','fileName','280mYljBq','Error\x20while\x20reading\x20CLI\x20path:\x20','HOOK_REGEX','trim','pBDXs','error','shouldSkipSessionStatus','mtime','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','entries','automationFrameworkDetail','platform','response\x20','tmpdir','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','QjbnD','uHUBe','oGWQk','concat','131148CnEEpy','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','../../helpers/test-observability/utils.js','HuVJI','Failed\x20to\x20delete\x20zip\x20file:\x20','yauzl','stringify','object','dIIdN'];a85_0x44ae=function(){return _0x519394;};return a85_0x44ae();}class CLIUtils{[a85_0x42599c(0x22f)]={};[a85_0x42599c(0x25a)]={};static[a85_0x42599c(0x281)](){const _0x2d489b=a85_0x42599c,_0x570c7d={};_0x570c7d[_0x2d489b(0x258)]=function(_0x453d04,_0x2e2023){return _0x453d04===_0x2e2023;},_0x570c7d[_0x2d489b(0x25c)]=_0x2d489b(0x264);const _0x5c023c=_0x570c7d;return _0x5c023c[_0x2d489b(0x258)](process['env']['BROWSERSTACK_CLI_ENV'],_0x5c023c[_0x2d489b(0x25c)]);}static[a85_0x42599c(0x21f)](){const _0x286d43=a85_0x42599c,_0x28f983={};return _0x28f983['id']=process[_0x286d43(0x273)]['BROWSERSTACK_CLI_ENV'],_0x28f983['listen']='unix:/tmp/sdk-platform-'+process[_0x286d43(0x273)][_0x286d43(0x263)]+_0x286d43(0x28e),_0x28f983;}static[a85_0x42599c(0x24d)](){const _0x1eb96a=a85_0x42599c,_0x2b71aa={'AsvuX':function(_0x16e3ce,_0x17c294){return _0x16e3ce(_0x17c294);},'lomJb':'../../../package.json'};return _0x2b71aa[_0x1eb96a(0x20c)](require,_0x2b71aa['lomJb'])['version'];}static[a85_0x42599c(0x249)](){const _0x1377be=a85_0x42599c,_0x1b1683={};_0x1b1683[_0x1377be(0x278)]=_0x1377be(0x25e);const _0x4df371=_0x1b1683;return _0x4df371['faqqa'];}static async[a85_0x42599c(0x280)](_0x5e1161){const _0x8f6a20=a85_0x42599c,_0x1d85be={'uloRJ':_0x8f6a20(0x21d),'CKOnF':function(_0x56f8cc,_0x31da88){return _0x56f8cc(_0x31da88);},'tFQKu':_0x8f6a20(0x22d)};logger['debug'](_0x1d85be[_0x8f6a20(0x1ff)]);const _0x38df07=process[_0x8f6a20(0x273)][_0x8f6a20(0x296)];if(!_0x1d85be['CKOnF'](isNullOrEmpty,_0x38df07))return logger[_0x8f6a20(0x201)](_0x8f6a20(0x28a)+_0x38df07),_0x38df07;try{const _0x3e696a=this[_0x8f6a20(0x204)]();if(_0x1d85be[_0x8f6a20(0x219)](isNullOrEmpty,_0x3e696a))throw new Error(_0x1d85be[_0x8f6a20(0x244)]);const _0x8082a8=this[_0x8f6a20(0x2ac)](_0x3e696a),_0x2008aa=await this[_0x8f6a20(0x1d6)](_0x8082a8,_0x3e696a,_0x5e1161);return logger[_0x8f6a20(0x201)]('Resolved\x20binary\x20path:\x20'+_0x2008aa),_0x2008aa;}catch(_0x5f1bb5){logger[_0x8f6a20(0x201)](_0x8f6a20(0x1c6)+util[_0x8f6a20(0x287)](_0x5f1bb5));}return null;}static async[a85_0x42599c(0x1d6)](_0x4889c4,_0x20cbf2,_0x284d56){const _0x33337d=a85_0x42599c,_0x56deaa={'vWJDT':function(_0x3af86d){return _0x3af86d();},'ypBGS':function(_0x47e1be,_0x53feb5){return _0x47e1be(_0x53feb5);},'qZxRv':function(_0xcda060,_0x6a5e58,_0x57f0d3){return _0xcda060(_0x6a5e58,_0x57f0d3);},'bRJor':_0x33337d(0x1e5),'jZZZg':_0x33337d(0x2a4),'YNFkX':function(_0xfea49e,_0x34cf4d){return _0xfea49e(_0x34cf4d);},'wqxbD':function(_0x31724d,_0x3c7962,_0x3ffbc2){return _0x31724d(_0x3c7962,_0x3ffbc2);}};PerformanceTester['start'](PerformanceEvents[_0x33337d(0x214)]);try{logger[_0x33337d(0x254)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x4889c4);const _0x36e6ae=_0x56deaa['vWJDT'](getHostInfo),_0x162800={'sdk_version':CLIUtils[_0x33337d(0x24d)](),'os':_0x36e6ae[_0x33337d(0x230)],'os_arch':_0x36e6ae['arch'],'cli_version':'0','sdk_language':this[_0x33337d(0x249)]()};!_0x56deaa[_0x33337d(0x20a)](isNullOrEmpty,_0x4889c4)&&(_0x162800[_0x33337d(0x216)]=await this['runShellCommand'](_0x4889c4+_0x33337d(0x200)));const _0x3563e7=await this['requestToUpdateCLI'](_0x162800,_0x284d56);process[_0x33337d(0x273)][_0x33337d(0x25d)]&&(logger['info'](_0x33337d(0x27f)+process[_0x33337d(0x273)][_0x33337d(0x25d)]),_0x3563e7[_0x33337d(0x1e5)][_0x33337d(0x2a4)]=process[_0x33337d(0x273)][_0x33337d(0x25d)]);if(_0x56deaa[_0x33337d(0x2b4)](nestedKeyValue,_0x3563e7,[_0x56deaa[_0x33337d(0x1d9)],_0x56deaa['jZZZg']])){logger['debug'](_0x33337d(0x1e7)+_0x162800[_0x33337d(0x216)]);if(!_0x56deaa[_0x33337d(0x1de)](isNullOrEmpty,_0x4889c4)&&this[_0x33337d(0x289)](_0x4889c4))return logger['warn'](_0x33337d(0x28c)+_0x4889c4),_0x4889c4;return await this['downloadLatestBinary'](_0x56deaa['wqxbD'](nestedKeyValue,_0x3563e7,[_0x56deaa['bRJor'],_0x56deaa[_0x33337d(0x28f)]]),_0x20cbf2);}return _0x4889c4;}finally{PerformanceTester[_0x33337d(0x253)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a85_0x42599c(0x204)](){const _0x5b4ea5=a85_0x42599c,_0x29e426={'pBDXs':function(_0x106dfb,_0x45af8c){return _0x106dfb(_0x45af8c);},'uHUBe':_0x5b4ea5(0x22d),'IjztL':'cli'},_0x2a7309=this[_0x5b4ea5(0x26f)]();try{if(_0x29e426[_0x5b4ea5(0x229)](isNullOrEmpty,_0x2a7309))throw new Error(_0x29e426[_0x5b4ea5(0x235)]);const _0x220f71=path['join'](_0x2a7309,_0x29e426['IjztL']);return!fs[_0x5b4ea5(0x265)](_0x220f71)&&_0x29e426[_0x5b4ea5(0x229)](createDir,_0x220f71),_0x220f71;}catch(_0x3bdfbd){logger[_0x5b4ea5(0x201)](_0x5b4ea5(0x27b)+util[_0x5b4ea5(0x287)](_0x3bdfbd));}}static[a85_0x42599c(0x26f)](){const _0x2a7bfe=a85_0x42599c,_0x45bb36={'EovKc':_0x2a7bfe(0x1f6),'cNuCK':function(_0x5a6624,_0xf09fbd){return _0x5a6624(_0xf09fbd);},'tUHqB':function(_0x585ec8,_0x4629e3){return _0x585ec8(_0x4629e3);},'uslDv':function(_0x1101a2,_0x2a4f9e){return _0x1101a2(_0x2a4f9e);},'SYWsd':function(_0x3a349b,_0x5cf46f){return _0x3a349b(_0x5cf46f);}},_0x40b138=[process[_0x2a7bfe(0x273)]['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x2a7bfe(0x2aa)](),_0x45bb36[_0x2a7bfe(0x2b3)]),path[_0x2a7bfe(0x2a3)](os[_0x2a7bfe(0x232)](),_0x45bb36[_0x2a7bfe(0x2b3)])];for(const _0x2f30ba of _0x40b138){if(_0x45bb36['cNuCK'](isNullOrEmpty,_0x2f30ba))continue;try{if(fs[_0x2a7bfe(0x265)](_0x2f30ba)){logger[_0x2a7bfe(0x201)](_0x2a7bfe(0x285)+_0x2f30ba+_0x2a7bfe(0x20d));if(!_0x45bb36['cNuCK'](isModifiable,_0x2f30ba)){logger['debug'](_0x2a7bfe(0x2b2)+_0x2f30ba);const _0xc65f23=_0x45bb36[_0x2a7bfe(0x290)](setReadWriteExecuteAccess,_0x2f30ba);if(!_0x45bb36[_0x2a7bfe(0x1cc)](isTrue,_0xc65f23)){logger[_0x2a7bfe(0x21b)](_0x2a7bfe(0x255)+_0x2f30ba);continue;}}}else{logger[_0x2a7bfe(0x201)](_0x2a7bfe(0x257)+_0x2f30ba),_0x45bb36['SYWsd'](createDir,_0x2f30ba),logger[_0x2a7bfe(0x201)](_0x2a7bfe(0x2b2)+_0x2f30ba);const _0x5d8b05=_0x45bb36['cNuCK'](setReadWriteExecuteAccess,_0x2f30ba);!_0x45bb36[_0x2a7bfe(0x1f0)](isTrue,_0x5d8b05)&&logger['warn'](_0x2a7bfe(0x255)+_0x2f30ba);}return _0x2f30ba;}catch(_0x2fe0b4){logger[_0x2a7bfe(0x22a)](_0x2a7bfe(0x1ed)+util[_0x2a7bfe(0x287)](_0x2fe0b4));}}return null;}static[a85_0x42599c(0x2ac)](_0x44c395){const _0x110a61=a85_0x42599c,_0x1e793e={};_0x1e793e['KqNFE']=function(_0x5b4b02,_0x127346){return _0x5b4b02>_0x127346;},_0x1e793e[_0x110a61(0x20f)]=function(_0x537c86,_0x2af63b){return _0x537c86>_0x2af63b;};const _0x1d162c=_0x1e793e;try{if(!fs['existsSync'](_0x44c395)||!fs[_0x110a61(0x2a2)](_0x44c395)[_0x110a61(0x202)]())return'';const _0x4cb82a=fs[_0x110a61(0x1ef)](_0x44c395)['map'](_0xdf8a90=>path['join'](_0x44c395,_0xdf8a90))[_0x110a61(0x2bd)](_0x274cb4=>fs[_0x110a61(0x2a2)](_0x274cb4)[_0x110a61(0x2b9)]()&&path[_0x110a61(0x2b8)](_0x274cb4)[_0x110a61(0x1d1)](_0x110a61(0x294)));if(_0x1d162c[_0x110a61(0x20f)](_0x4cb82a[_0x110a61(0x1f5)],0x0)){const _0x58042d=_0x4cb82a['map'](_0xf9c453=>({'filePath':_0xf9c453,'mtime':fs[_0x110a61(0x2a2)](_0xf9c453)[_0x110a61(0x22c)]}))[_0x110a61(0x26b)]((_0x2bf85c,_0x15178c)=>{const _0x21a48b=_0x110a61;if(!_0x2bf85c||!_0x2bf85c[_0x21a48b(0x22c)])return _0x15178c;if(_0x1d162c[_0x21a48b(0x297)](_0x15178c[_0x21a48b(0x22c)],_0x2bf85c[_0x21a48b(0x22c)]))return _0x15178c;return _0x2bf85c;},{});return _0x58042d?_0x58042d[_0x110a61(0x221)]:'';}return'';}catch(_0x2aede9){return logger['error'](_0x110a61(0x226)+util['format'](_0x2aede9)),'';}}static ['requestToUpdateCLI']=async(_0x379341,_0x360614)=>{const _0x54fa3=a85_0x42599c,_0x48d0b0={'HVsQs':function(_0x427453,_0x49a975,_0xccf630,_0x313f6b,_0x5bb2f9){return _0x427453(_0x49a975,_0xccf630,_0x313f6b,_0x5bb2f9);},'wQvVo':_0x54fa3(0x1e6)},_0x250e4b={};_0x250e4b['qs']=_0x379341,_0x250e4b[_0x54fa3(0x272)]=!![];const _0x16c662=await _0x48d0b0['HVsQs'](nodeRequest,_0x48d0b0[_0x54fa3(0x2a0)],UPDATED_CLI_ENDPOINT,_0x250e4b,_0x360614);return logger[_0x54fa3(0x201)](_0x54fa3(0x231)+JSON['stringify'](_0x16c662)),_0x16c662;};static[a85_0x42599c(0x289)](_0x44b4ef){const _0xe1fc80=a85_0x42599c;try{const _0x2a7f84=fs[_0xe1fc80(0x21e)](_0x44b4ef,'r+');return fs[_0xe1fc80(0x26a)](_0x2a7f84),![];}catch(_0x539d59){if(BINARY_BUSY_ERROR_CODES[_0xe1fc80(0x26e)](_0x539d59['code']))return logger['debug'](_0xe1fc80(0x2b6)+_0x44b4ef),!![];return logger[_0xe1fc80(0x201)](_0xe1fc80(0x26d)+_0x539d59[_0xe1fc80(0x213)]),![];}}static['runShellCommand'](_0x49e3ec,_0x52ec30=''){const _0x21b33a=a85_0x42599c,_0x4c0333={'Vbgcv':_0x21b33a(0x291),'WAPSL':function(_0x1c5c94,_0x508f3d){return _0x1c5c94(_0x508f3d);},'DxkDw':function(_0xa0b317,_0x166df5){return _0xa0b317(_0x166df5);},'faPBD':_0x21b33a(0x267),'gZkth':function(_0x50dad1,_0x3c4f6d,_0x4c264e,_0x17c6a7){return _0x50dad1(_0x3c4f6d,_0x4c264e,_0x17c6a7);},'gIQuw':_0x21b33a(0x22a)};return new Promise((_0x4663c9,_0x465fe1)=>{const _0x195000=_0x21b33a,_0x101815={};_0x101815[_0x195000(0x2ba)]=_0x52ec30,_0x101815[_0x195000(0x25b)]=0x1388;const _0xe75203=_0x4c0333[_0x195000(0x1d7)](exec,_0x49e3ec,_0x101815,(_0x18fc17,_0x4482d3,_0x5de821)=>{const _0x18c0d3=_0x195000;if(_0x18fc17){if(_0x49e3ec[_0x18c0d3(0x26e)](_0x4c0333[_0x18c0d3(0x2ad)])&&(_0x4482d3[_0x18c0d3(0x228)]()||_0x5de821[_0x18c0d3(0x228)]())){const _0xd6c90f=_0x4482d3['trim']()||_0x5de821[_0x18c0d3(0x228)]();logger['debug'](_0x18c0d3(0x2ae)+_0xd6c90f+'\x22'),_0x4c0333['WAPSL'](_0x4663c9,_0xd6c90f);}else _0x4c0333[_0x18c0d3(0x1fa)](_0x4663c9,_0x5de821[_0x18c0d3(0x228)]()||_0x4c0333[_0x18c0d3(0x2b5)]);}else logger['debug'](_0x18c0d3(0x2af)+_0x4482d3[_0x18c0d3(0x228)]()+'\x22'),_0x4c0333[_0x18c0d3(0x1e0)](_0x4663c9,_0x4482d3[_0x18c0d3(0x228)]());});_0xe75203['on'](_0x4c0333[_0x195000(0x27a)],()=>{const _0x38ff59=_0x195000;_0x4c0333[_0x38ff59(0x1fa)](_0x4663c9,_0x4c0333['faPBD']);});});}static [a85_0x42599c(0x271)]=async(_0x29bd3e,_0x357dfd)=>{const _0x3561b1=a85_0x42599c,_0x39c148={'dIIdN':function(_0x35c05e,_0x3eb009){return _0x35c05e(_0x3eb009);},'yQHHI':_0x3561b1(0x260),'PFaYl':_0x3561b1(0x24f),'lALut':function(_0x3d1b00,_0x14a363){return _0x3d1b00>=_0x14a363;},'iTIwk':'DOWNLOAD_HTTP','hZasi':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','AKhlx':'error','oGWQk':_0x3561b1(0x239)};PerformanceTester[_0x3561b1(0x295)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x3561b1(0x201)](_0x3561b1(0x299)+_0x29bd3e);try{const _0x4f4147=url[_0x3561b1(0x21c)](_0x29bd3e),_0x50b8a0=path[_0x3561b1(0x2a3)](_0x357dfd,_0x3561b1(0x209)+process['pid']+_0x3561b1(0x1f7)),_0xd9e371=fs[_0x3561b1(0x1fc)](_0x50b8a0);return new Promise((_0x3d8129,_0xaf90ee)=>{const _0x411e37=_0x3561b1,_0x4139fb={'LaeSp':_0x39c148['yQHHI'],'mSRCz':function(_0x27cd9f,_0x4a5c2e){const _0xf6612b=a85_0x5657;return _0x39c148[_0xf6612b(0x240)](_0x27cd9f,_0x4a5c2e);},'mHoRR':_0x39c148[_0x411e37(0x220)],'sURoB':function(_0x5880cb,_0x1ceb17){return _0x39c148['dIIdN'](_0x5880cb,_0x1ceb17);},'HaHEE':function(_0x59ea6b,_0x112b94){return _0x39c148['lALut'](_0x59ea6b,_0x112b94);},'dlCSm':_0x39c148['iTIwk'],'IqAHf':_0x39c148[_0x411e37(0x1eb)],'xdsWY':_0x39c148[_0x411e37(0x1d3)]};https[_0x411e37(0x1c3)](_0x4f4147,function(_0x4fabe0){const _0x44c964=_0x411e37,_0x51846d={'RtOZF':_0x4139fb['mHoRR'],'PRDhb':function(_0x1580bb,_0x4955e6){return _0x4139fb['sURoB'](_0x1580bb,_0x4955e6);}},_0x374973=null;if(_0x4fabe0['statusCode']&&_0x4139fb['HaHEE'](_0x4fabe0['statusCode'],0x190)){const _0x2516f1=new Error(_0x44c964(0x233)+_0x4fabe0[_0x44c964(0x2b1)]+_0x44c964(0x21a)+_0x29bd3e);_0x2516f1[_0x44c964(0x1ea)]=_0x4139fb[_0x44c964(0x1cf)],_0x2516f1[_0x44c964(0x2b1)]=_0x4fabe0[_0x44c964(0x2b1)],logger[_0x44c964(0x22a)](util[_0x44c964(0x287)](_0x4139fb[_0x44c964(0x284)],_0x4fabe0['statusCode'])),PerformanceTester[_0x44c964(0x253)](PerformanceEvents[_0x44c964(0x208)],![],_0x44c964(0x241)+_0x4fabe0[_0x44c964(0x2b1)]),_0x4fabe0['resume'](),_0xd9e371[_0x44c964(0x217)](),fs[_0x44c964(0x2a9)](_0x50b8a0,()=>{}),_0x4139fb[_0x44c964(0x1ca)](_0xaf90ee,_0x2516f1);return;}_0x4fabe0[_0x44c964(0x27e)](_0xd9e371),_0x4fabe0['on'](_0x4139fb['xdsWY'],function(_0x4e500d){const _0x5ec1f2=_0x44c964;logger[_0x5ec1f2(0x22a)](util[_0x5ec1f2(0x287)](_0x51846d[_0x5ec1f2(0x252)],_0x4e500d)),PerformanceTester[_0x5ec1f2(0x253)](PerformanceEvents[_0x5ec1f2(0x208)],![],util['format'](_0x4e500d)),_0x51846d[_0x5ec1f2(0x282)](_0xaf90ee,_0x4e500d);}),_0xd9e371['on'](_0x4139fb[_0x44c964(0x1e9)],function(_0x4c6234){const _0x2463b1=_0x44c964;logger[_0x2463b1(0x22a)](util[_0x2463b1(0x287)](_0x4139fb[_0x2463b1(0x1e4)],_0x4c6234)),PerformanceTester[_0x2463b1(0x253)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x2463b1(0x287)](_0x4c6234)),_0x4139fb[_0x2463b1(0x1fe)](_0xaf90ee,_0x4c6234);}),CLIUtils[_0x44c964(0x247)](_0xd9e371,_0x374973,_0x50b8a0,_0x357dfd,_0x31fb1d=>{const _0xd7dd08=_0x44c964;PerformanceTester[_0xd7dd08(0x253)](PerformanceEvents[_0xd7dd08(0x208)]),_0x51846d[_0xd7dd08(0x282)](_0x3d8129,_0x31fb1d);},_0x469a88=>{const _0x5dfce3=_0x44c964;PerformanceTester['end'](PerformanceEvents[_0x5dfce3(0x208)],![],util[_0x5dfce3(0x287)](_0x469a88)),_0x51846d[_0x5dfce3(0x282)](_0xaf90ee,_0x469a88);});})['on'](_0x39c148[_0x411e37(0x1d3)],function(_0xc3ea15){const _0x1f08c9=_0x411e37;logger[_0x1f08c9(0x22a)](_0x1f08c9(0x1e8)+util[_0x1f08c9(0x287)](_0xc3ea15)),PerformanceTester[_0x1f08c9(0x253)](PerformanceEvents[_0x1f08c9(0x208)],![],util[_0x1f08c9(0x287)](_0xc3ea15)),_0x39c148[_0x1f08c9(0x240)](_0xaf90ee,_0xc3ea15);});});}catch(_0x20854d){PerformanceTester[_0x3561b1(0x253)](PerformanceEvents[_0x3561b1(0x208)],![],util[_0x3561b1(0x287)](_0x20854d)),logger[_0x3561b1(0x22a)](util[_0x3561b1(0x287)](_0x39c148[_0x3561b1(0x236)],_0x20854d));throw _0x20854d;}};static[a85_0x42599c(0x247)](_0x1971bc,_0x235399,_0x1a7f72,_0x3e0d70,_0x463e8a,_0x206a7b){const _0x11d036=a85_0x42599c,_0x32540d={'gEPFi':function(_0xb67874,_0x949b4c){return _0xb67874(_0x949b4c);},'AKXbv':_0x11d036(0x242),'ymeuX':_0x11d036(0x253),'HuVJI':function(_0x5310cc,_0x5df292){return _0x5310cc!==_0x5df292;},'IfRHs':_0x11d036(0x22a),'dkWsB':function(_0x2d3d50,_0x398341){return _0x2d3d50(_0x398341);},'golYz':function(_0xa25a88,_0x19855d){return _0xa25a88(_0x19855d);},'AsdyV':_0x11d036(0x2a7),'bZLnQ':_0x11d036(0x1f4),'offLY':_0x11d036(0x1c8)};_0x1971bc['on'](_0x32540d[_0x11d036(0x292)],function(){const _0x34fbf3=_0x11d036,_0x67f71={'icmgG':function(_0x2e9bde,_0x1fd88f){const _0x112fec=a85_0x5657;return _0x32540d[_0x112fec(0x256)](_0x2e9bde,_0x1fd88f);},'truAT':_0x32540d['AKXbv'],'TheNM':_0x32540d[_0x34fbf3(0x2b0)],'dNMTb':function(_0x169275,_0x29474e){const _0x3e6262=_0x34fbf3;return _0x32540d[_0x3e6262(0x23b)](_0x169275,_0x29474e);},'LgKUe':_0x32540d[_0x34fbf3(0x24a)],'zHzmr':function(_0x478edf,_0x2bf0e1){const _0x402c75=_0x34fbf3;return _0x32540d[_0x402c75(0x277)](_0x478edf,_0x2bf0e1);},'IFLVX':function(_0x945f27,_0x4328df){const _0xf774c2=_0x34fbf3;return _0x32540d[_0xf774c2(0x206)](_0x945f27,_0x4328df);},'cSeyM':function(_0x4493ff,_0x208720){const _0x677311=_0x34fbf3;return _0x32540d[_0x677311(0x23b)](_0x4493ff,_0x208720);},'qMlYb':_0x32540d[_0x34fbf3(0x1d2)],'AxCnd':function(_0x37a55f,_0x2dc863){return _0x32540d['dkWsB'](_0x37a55f,_0x2dc863);},'ZMqfy':function(_0x3e0388,_0x1d33ae){const _0x24b88e=_0x34fbf3;return _0x32540d[_0x24b88e(0x206)](_0x3e0388,_0x1d33ae);},'mPJOi':_0x32540d[_0x34fbf3(0x286)],'mRKYa':function(_0x24f220,_0x473b8a){const _0x4504b5=_0x34fbf3;return _0x32540d[_0x4504b5(0x277)](_0x24f220,_0x473b8a);},'cSooC':_0x32540d[_0x34fbf3(0x1c7)]},_0x48a82c={};_0x48a82c[_0x34fbf3(0x29f)]=!![],yauzl[_0x34fbf3(0x1f1)](_0x1a7f72,_0x48a82c,function(_0x2fac1c,_0x37a27d){const _0x8d5bca=_0x34fbf3,_0x3db286={'ZsnfQ':function(_0x3aa24e,_0x27a9f0){const _0x4e2fe2=a85_0x5657;return _0x67f71[_0x4e2fe2(0x1d5)](_0x3aa24e,_0x27a9f0);},'lqSOQ':_0x67f71[_0x8d5bca(0x223)],'RylOK':_0x67f71[_0x8d5bca(0x1c9)],'jvpyq':function(_0x4d649e,_0x19816f){const _0x17712d=_0x8d5bca;return _0x67f71[_0x17712d(0x279)](_0x4d649e,_0x19816f);},'bMegy':function(_0x4d148,_0x419446){const _0x263044=_0x8d5bca;return _0x67f71[_0x263044(0x1d5)](_0x4d148,_0x419446);},'QjbnD':function(_0x516ae6,_0x39434c){return _0x67f71['icmgG'](_0x516ae6,_0x39434c);},'SKsWx':_0x67f71['LgKUe'],'snliD':function(_0x3f7706,_0x191d8f){const _0x43b207=_0x8d5bca;return _0x67f71[_0x43b207(0x218)](_0x3f7706,_0x191d8f);},'YFAkS':function(_0x5344e1,_0x523ecb){const _0x135bf4=_0x8d5bca;return _0x67f71[_0x135bf4(0x2a1)](_0x5344e1,_0x523ecb);},'PXcsz':function(_0x5d0dd4,_0x2eef4d){const _0x2bc61c=_0x8d5bca;return _0x67f71[_0x2bc61c(0x1fd)](_0x5d0dd4,_0x2eef4d);},'doemb':_0x67f71[_0x8d5bca(0x29a)],'OwqRu':function(_0xf39452,_0x3a4067){return _0x67f71['AxCnd'](_0xf39452,_0x3a4067);},'soZpp':function(_0x1ec277,_0x53a5a0){return _0x67f71['ZMqfy'](_0x1ec277,_0x53a5a0);},'mQoxl':_0x67f71['mPJOi']};if(_0x2fac1c){_0x67f71[_0x8d5bca(0x2ab)](_0x206a7b,_0x2fac1c);return;}_0x37a27d[_0x8d5bca(0x250)](),_0x37a27d['on'](_0x67f71[_0x8d5bca(0x1d8)],_0x44c940=>{const _0x2dc27a=_0x8d5bca,_0x511b99={'QxGrQ':function(_0x4e505e,_0x3825ff){return _0x3db286['ZsnfQ'](_0x4e505e,_0x3825ff);},'Yzjxw':function(_0x487cb5,_0x15a724){const _0x58c050=a85_0x5657;return _0x3db286[_0x58c050(0x1e2)](_0x487cb5,_0x15a724);},'ioLTg':_0x3db286[_0x2dc27a(0x1fb)],'kUViR':function(_0x382ad0,_0x1d82ea){const _0x52ebae=_0x2dc27a;return _0x3db286[_0x52ebae(0x1e2)](_0x382ad0,_0x1d82ea);},'sEqEZ':_0x3db286[_0x2dc27a(0x1d0)]};if(/\/$/[_0x2dc27a(0x246)](_0x44c940[_0x2dc27a(0x224)])){_0x37a27d['readEntry']();return;}!_0x235399&&(_0x235399=_0x44c940[_0x2dc27a(0x224)]);if(_0x3db286[_0x2dc27a(0x1ce)](_0x44c940[_0x2dc27a(0x224)],_0x235399))_0x37a27d['readEntry']();else{const _0x3d0404=_0x44c940[_0x2dc27a(0x224)],_0x399ee6=path['join'](_0x3e0d70,_0x3d0404+_0x2dc27a(0x274)+process[_0x2dc27a(0x288)]);let _0x3e0e67;try{_0x3e0e67=fs[_0x2dc27a(0x1fc)](_0x399ee6);}catch(_0x391723){if(BINARY_BUSY_ERROR_CODES[_0x2dc27a(0x26e)](_0x391723['code'])){const _0x1da07c=path[_0x2dc27a(0x2a3)](_0x3e0d70,_0x3d0404);if(fs[_0x2dc27a(0x265)](_0x1da07c)){logger[_0x2dc27a(0x21b)](_0x2dc27a(0x1cb)+_0x3d0404),fs[_0x2dc27a(0x2a9)](_0x1a7f72,_0x1ff071=>{const _0x99df8d=_0x2dc27a;_0x1ff071&&logger[_0x99df8d(0x21b)](_0x99df8d(0x23c)+_0x1a7f72);}),_0x3db286[_0x2dc27a(0x1f2)](_0x463e8a,_0x1da07c);return;}logger['warn'](_0x2dc27a(0x1dc)+_0x3d0404);}_0x3db286[_0x2dc27a(0x234)](_0x206a7b,_0x391723);return;}_0x3e0e67['on'](_0x3db286['SKsWx'],_0x30fd4f=>{const _0x45eeab=_0x2dc27a;if(BINARY_BUSY_ERROR_CODES[_0x45eeab(0x26e)](_0x30fd4f[_0x45eeab(0x1ea)])){const _0x457a78=path[_0x45eeab(0x2a3)](_0x3e0d70,_0x3d0404);_0x3e0e67[_0x45eeab(0x242)](),fs['existsSync'](_0x457a78)?(logger[_0x45eeab(0x21b)](_0x45eeab(0x1df)+_0x30fd4f[_0x45eeab(0x213)]),_0x37a27d[_0x45eeab(0x242)](),fs['unlink'](_0x1a7f72,_0x2a7ca9=>{const _0x56a8e5=_0x45eeab;_0x2a7ca9&&logger[_0x56a8e5(0x21b)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a7f72);}),_0x511b99[_0x45eeab(0x1c5)](_0x463e8a,_0x457a78)):(logger[_0x45eeab(0x21b)](_0x45eeab(0x1dd)+_0x30fd4f[_0x45eeab(0x213)]),fs['unlink'](_0x399ee6,()=>{}),_0x511b99['Yzjxw'](_0x206a7b,_0x30fd4f));}else fs[_0x45eeab(0x2a9)](_0x399ee6,()=>{}),_0x511b99[_0x45eeab(0x215)](_0x206a7b,_0x30fd4f);}),_0x37a27d[_0x2dc27a(0x251)](_0x44c940,function(_0xf80e0a,_0x362ce3){const _0x46f82a=_0x2dc27a;if(_0xf80e0a){fs['unlink'](_0x399ee6,()=>{}),_0x511b99[_0x46f82a(0x276)](_0x206a7b,_0xf80e0a);return;}_0x362ce3['on'](_0x511b99['sEqEZ'],function(){_0x3e0e67['end'](),_0x3e0e67['on'](_0x511b99['ioLTg'],function(){const _0x19b5e4=a85_0x5657;_0x37a27d[_0x19b5e4(0x250)]();});}),_0x362ce3[_0x46f82a(0x27e)](_0x3e0e67);});}}),_0x37a27d['on'](_0x67f71[_0x8d5bca(0x29d)],_0x246642=>{const _0x5be9fb=_0x8d5bca;_0x3db286[_0x5be9fb(0x293)](_0x206a7b,_0x246642);}),_0x37a27d[_0x8d5bca(0x1da)](_0x67f71[_0x8d5bca(0x1c9)],()=>{const _0x32122d=_0x8d5bca,_0x2c338c={'EcsvU':function(_0x311149,_0x511ebf){return _0x3db286['PXcsz'](_0x311149,_0x511ebf);},'cLHKZ':_0x3db286['doemb'],'AUTnA':function(_0x5dd33f,_0x237ceb){return _0x3db286['snliD'](_0x5dd33f,_0x237ceb);},'aMSlI':function(_0x4f3170,_0x2eba2d){return _0x3db286['OwqRu'](_0x4f3170,_0x2eba2d);},'DiUxz':function(_0x3907ef,_0x365fc8){const _0x4709d4=a85_0x5657;return _0x3db286[_0x4709d4(0x2bc)](_0x3907ef,_0x365fc8);}};fs['unlink'](_0x1a7f72,_0x4530c7=>{const _0x5b704a=a85_0x5657;_0x4530c7&&logger[_0x5b704a(0x21b)](_0x5b704a(0x23c)+_0x1a7f72);});const _0x227cc7=path[_0x32122d(0x2a3)](_0x3e0d70,_0x235399+_0x32122d(0x274)+process[_0x32122d(0x288)]),_0x126bb6=path[_0x32122d(0x2a3)](_0x3e0d70,_0x235399);fs[_0x32122d(0x205)](_0x227cc7,_0x3db286[_0x32122d(0x27d)],function(_0x186639){const _0x4d7603=_0x32122d;if(_0x186639){_0x37a27d[_0x4d7603(0x242)](),fs['unlink'](_0x227cc7,()=>{}),_0x3db286['YFAkS'](_0x206a7b,_0x186639);return;}fs['rename'](_0x227cc7,_0x126bb6,function(_0x51089f){const _0x5027b5=_0x4d7603;if(_0x51089f){if(_0x2c338c[_0x5027b5(0x2a8)](_0x51089f['code'],_0x2c338c[_0x5027b5(0x275)])){_0x37a27d[_0x5027b5(0x242)](),fs[_0x5027b5(0x2a9)](_0x227cc7,()=>{}),_0x2c338c['AUTnA'](_0x206a7b,_0x51089f);return;}logger[_0x5027b5(0x21b)](_0x5027b5(0x1f3)+_0x51089f['message']);try{fs['copyFileSync'](_0x227cc7,_0x126bb6);}catch(_0x14fcf3){_0x37a27d[_0x5027b5(0x242)](),fs[_0x5027b5(0x2a9)](_0x227cc7,()=>{}),_0x2c338c[_0x5027b5(0x1f9)](_0x206a7b,_0x14fcf3);return;}fs[_0x5027b5(0x2a9)](_0x227cc7,_0xcec73c=>{const _0x5ee597=_0x5027b5;_0xcec73c&&logger[_0x5ee597(0x21b)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0xcec73c['message']);});}_0x37a27d[_0x5027b5(0x242)](),_0x2c338c[_0x5027b5(0x243)](_0x463e8a,_0x126bb6);});});});});});}static[a85_0x42599c(0x210)](){const _0x1dfa87=a85_0x42599c;if(process[_0x1dfa87(0x273)][_0x1dfa87(0x1ec)])return JSON[_0x1dfa87(0x21c)](process[_0x1dfa87(0x273)][_0x1dfa87(0x1ec)]);return this[_0x1dfa87(0x25a)];}static[a85_0x42599c(0x1db)](){const _0x161add=a85_0x42599c;if(process[_0x161add(0x273)][_0x161add(0x2a5)])return JSON['parse'](process[_0x161add(0x273)][_0x161add(0x2a5)]);return this[_0x161add(0x22f)];}static['setFrameworkDetail'](_0x4395b0,_0xa00b7f){const _0x4141d6=a85_0x42599c,_0x46c6c5={'GzUdd':'4|2|1|0|3','tizvX':function(_0x4cebdd,_0x327f33){return _0x4cebdd(_0x327f33);},'hjWRh':function(_0xf08e3f,_0x40a73c){return _0xf08e3f||_0x40a73c;}},_0x581aa0=_0x46c6c5['GzUdd'][_0x4141d6(0x2a6)]('|');let _0x3c0885=0x0;while(!![]){switch(_0x581aa0[_0x3c0885++]){case'0':process['env'][_0x4141d6(0x2a5)]=JSON[_0x4141d6(0x23e)](this[_0x4141d6(0x22f)]);continue;case'1':this['automationFrameworkDetail']={'name':_0xa00b7f,'version':_0x46c6c5[_0x4141d6(0x1ee)](getFrameworkVersion,_0xa00b7f)};continue;case'2':this[_0x4141d6(0x25a)]={'name':_0x4395b0,'version':{[_0x4395b0]:_0x46c6c5[_0x4141d6(0x1ee)](getFrameworkVersion,_0x4395b0)}};continue;case'3':process[_0x4141d6(0x273)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x4141d6(0x23e)](this[_0x4141d6(0x25a)]);continue;case'4':_0x46c6c5[_0x4141d6(0x259)](!_0x4395b0,!_0xa00b7f)&&logger[_0x4141d6(0x201)](_0x4141d6(0x27c)+_0x4395b0+_0x4141d6(0x1c1)+_0xa00b7f);continue;}break;}}static[a85_0x42599c(0x29c)](_0xadce2f,_0x436065){return _0xadce2f+':'+_0x436065;}static[a85_0x42599c(0x29b)](){const _0x5b5bde=a85_0x42599c;return process[_0x5b5bde(0x288)]+':'+threadId;}static[a85_0x42599c(0x2be)](_0x4eb60c){const _0x31482b=a85_0x42599c;if(_0x4eb60c[_0x31482b(0x270)]&&_0x4eb60c['testContextOptions'][_0x31482b(0x24b)])return!![];return![];}static[a85_0x42599c(0x22b)](_0x444658){const _0x4f75d8=a85_0x42599c;if(_0x444658[_0x4f75d8(0x270)]&&_0x444658[_0x4f75d8(0x270)][_0x4f75d8(0x261)])return!![];return![];}static[a85_0x42599c(0x1d4)](_0x1ad0f4){const _0x5b86f6=a85_0x42599c,_0x41941d=new RegExp(TestFrameworkConstants[_0x5b86f6(0x227)]);return _0x41941d['test'](_0x1ad0f4);}static[a85_0x42599c(0x1f8)](_0x198eb,_0x50b975){const _0x20d9e2=a85_0x42599c,_0x5b6412={};_0x5b6412[_0x20d9e2(0x20b)]=function(_0x26e1ff,_0x1150ea){return _0x26e1ff!==_0x1150ea;},_0x5b6412['yKzjp']=function(_0x547ec1,_0x1d40c3){return _0x547ec1===_0x1d40c3;},_0x5b6412[_0x20d9e2(0x1c2)]=_0x20d9e2(0x23f);const _0x1f565a=_0x5b6412;for(const [_0x45f8c7,_0x2b386e]of Object[_0x20d9e2(0x22e)](_0x50b975)){if(_0x1f565a[_0x20d9e2(0x20b)](_0x2b386e,null)&&_0x1f565a[_0x20d9e2(0x2b7)](typeof _0x2b386e,_0x1f565a['GyHqq'])&&!Array[_0x20d9e2(0x222)](_0x2b386e))_0x198eb[_0x45f8c7]=this['mergeObject'](_0x198eb[_0x45f8c7]||{},_0x2b386e);else Array[_0x20d9e2(0x222)](_0x2b386e)?_0x198eb[_0x45f8c7]=(_0x198eb[_0x45f8c7]||[])[_0x20d9e2(0x237)](_0x2b386e):_0x198eb[_0x45f8c7]=_0x2b386e;}return _0x198eb;}}module[a85_0x42599c(0x298)]=CLIUtils;
1
+ const a85_0x10eb9a=a85_0x18a9;(function(_0x131253,_0x3fd3ca){const _0x224d68=a85_0x18a9,_0x3caf73=_0x131253();while(!![]){try{const _0x3ac3e3=parseInt(_0x224d68(0xeb))/0x1+parseInt(_0x224d68(0x132))/0x2+parseInt(_0x224d68(0x159))/0x3*(parseInt(_0x224d68(0xde))/0x4)+parseInt(_0x224d68(0x189))/0x5+-parseInt(_0x224d68(0x179))/0x6*(parseInt(_0x224d68(0x10c))/0x7)+parseInt(_0x224d68(0x155))/0x8*(-parseInt(_0x224d68(0x167))/0x9)+parseInt(_0x224d68(0x166))/0xa*(-parseInt(_0x224d68(0x11c))/0xb);if(_0x3ac3e3===_0x3fd3ca)break;else _0x3caf73['push'](_0x3caf73['shift']());}catch(_0x8ab089){_0x3caf73['push'](_0x3caf73['shift']());}}}(a85_0x303c,0xc5bd8));function a85_0x18a9(_0x309c27,_0x393331){const _0x303cdd=a85_0x303c();return a85_0x18a9=function(_0x18a934,_0x28ff40){_0x18a934=_0x18a934-0x9e;let _0xfc5e1a=_0x303cdd[_0x18a934];return _0xfc5e1a;},a85_0x18a9(_0x309c27,_0x393331);}const fs=require('fs'),os=require('os'),url=require(a85_0x10eb9a(0x101)),path=require(a85_0x10eb9a(0xfd)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require(a85_0x10eb9a(0xf4)),util=require(a85_0x10eb9a(0x18b)),{getFrameworkVersion}=require(a85_0x10eb9a(0x135)),{threadId}=require(a85_0x10eb9a(0xea)),PerformanceTester=require(a85_0x10eb9a(0xb8)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x10eb9a(0x13b)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x10eb9a(0xe9)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x10eb9a(0x14a)),{createClassLogger}=require(a85_0x10eb9a(0x14d)),TestFrameworkInstance=require(a85_0x10eb9a(0x13a)),HookState=require(a85_0x10eb9a(0xb9)),TestFrameworkState=require(a85_0x10eb9a(0x12a)),AutomationFrameworkState=require(a85_0x10eb9a(0x12c)),TestFrameworkConstants=require(a85_0x10eb9a(0xcd)),logger=createClassLogger(a85_0x10eb9a(0xf0)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a85_0x10eb9a(0x185)]={};[a85_0x10eb9a(0xee)]={};static[a85_0x10eb9a(0x163)](){const _0x354066=a85_0x10eb9a,_0x141332={};_0x141332[_0x354066(0xa8)]=function(_0x2c59fd,_0x5ae92e){return _0x2c59fd===_0x5ae92e;},_0x141332[_0x354066(0x171)]=_0x354066(0xd8);const _0x510391=_0x141332;return _0x510391[_0x354066(0xa8)](process[_0x354066(0xa9)][_0x354066(0x16d)],_0x510391[_0x354066(0x171)]);}static[a85_0x10eb9a(0x12d)](){const _0x588bf4=a85_0x10eb9a,_0x39dbbd={};return _0x39dbbd['id']=process['env'][_0x588bf4(0x16d)],_0x39dbbd['listen']=_0x588bf4(0xce)+process[_0x588bf4(0xa9)][_0x588bf4(0x16d)]+_0x588bf4(0xc1),_0x39dbbd;}static[a85_0x10eb9a(0x153)](){const _0x1c4992=a85_0x10eb9a,_0x25b509={'wDDVA':function(_0x3f24f2,_0x5ba353){return _0x3f24f2(_0x5ba353);},'tiHya':'../../../package.json'};return _0x25b509[_0x1c4992(0xbd)](require,_0x25b509['tiHya'])[_0x1c4992(0xfa)];}static[a85_0x10eb9a(0xc5)](){const _0x2efdda=a85_0x10eb9a,_0x584061={};_0x584061[_0x2efdda(0x10a)]=_0x2efdda(0x112);const _0x22055a=_0x584061;return _0x22055a[_0x2efdda(0x10a)];}static async[a85_0x10eb9a(0xc3)](_0x34a59c){const _0x455c2d=a85_0x10eb9a,_0x1165eb={'kadZx':_0x455c2d(0x186),'mJgHB':function(_0x491e03,_0x10f324){return _0x491e03(_0x10f324);},'ghdxG':function(_0x3432d6,_0x518127){return _0x3432d6(_0x518127);},'phmmr':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x1165eb[_0x455c2d(0x124)]);const _0x5caf11=process[_0x455c2d(0xa9)]['SDK_CLI_BIN_PATH'];if(!_0x1165eb[_0x455c2d(0x128)](isNullOrEmpty,_0x5caf11))return logger[_0x455c2d(0x183)](_0x455c2d(0x13c)+_0x5caf11),_0x5caf11;try{const _0x514fd9=this['getCliDir']();if(_0x1165eb['ghdxG'](isNullOrEmpty,_0x514fd9))throw new Error(_0x1165eb[_0x455c2d(0xa3)]);const _0xdc0ff4=this[_0x455c2d(0xd6)](_0x514fd9),_0x2b307f=await this['checkAndUpdateCli'](_0xdc0ff4,_0x514fd9,_0x34a59c);return logger[_0x455c2d(0x183)](_0x455c2d(0x146)+_0x2b307f),_0x2b307f;}catch(_0x7cbc08){logger[_0x455c2d(0x183)](_0x455c2d(0x191)+util[_0x455c2d(0xa5)](_0x7cbc08));}return null;}static async[a85_0x10eb9a(0xae)](_0x25fe95,_0x53ddcc,_0x1bf11b){const _0x346ddd=a85_0x10eb9a,_0x37e31f={'zvQcu':function(_0x263e64){return _0x263e64();},'ZyvTF':function(_0x4fb047,_0xd5b8e7){return _0x4fb047(_0xd5b8e7);},'pinXK':function(_0x1738cc,_0x4094fb,_0x5ff118){return _0x1738cc(_0x4094fb,_0x5ff118);},'OLMrP':_0x346ddd(0x139),'hCedh':_0x346ddd(0x101),'UZBIM':function(_0x1570d2,_0x1dc384){return _0x1570d2(_0x1dc384);}};PerformanceTester[_0x346ddd(0x194)](PerformanceEvents[_0x346ddd(0x193)]);try{logger[_0x346ddd(0x122)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x25fe95);const _0x23cd25=_0x37e31f[_0x346ddd(0x14c)](getHostInfo),_0xefec34={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x23cd25[_0x346ddd(0x162)],'os_arch':_0x23cd25[_0x346ddd(0x13f)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x37e31f[_0x346ddd(0xff)](isNullOrEmpty,_0x25fe95)&&(_0xefec34[_0x346ddd(0x180)]=await this[_0x346ddd(0xe4)](_0x25fe95+_0x346ddd(0x123)));const _0x3478f0=await this['requestToUpdateCLI'](_0xefec34,_0x1bf11b);process[_0x346ddd(0xa9)][_0x346ddd(0x111)]&&(logger[_0x346ddd(0x122)](_0x346ddd(0xcf)+process[_0x346ddd(0xa9)][_0x346ddd(0x111)]),_0x3478f0[_0x346ddd(0x139)][_0x346ddd(0x101)]=process[_0x346ddd(0xa9)][_0x346ddd(0x111)]);if(_0x37e31f[_0x346ddd(0x184)](nestedKeyValue,_0x3478f0,[_0x37e31f[_0x346ddd(0xf7)],_0x37e31f[_0x346ddd(0x108)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0xefec34[_0x346ddd(0x180)]);if(!_0x37e31f[_0x346ddd(0xd1)](isNullOrEmpty,_0x25fe95)&&this[_0x346ddd(0x11e)](_0x25fe95))return logger[_0x346ddd(0x10f)](_0x346ddd(0x16b)+_0x25fe95),_0x25fe95;return await this[_0x346ddd(0xba)](_0x37e31f[_0x346ddd(0x184)](nestedKeyValue,_0x3478f0,[_0x37e31f['OLMrP'],_0x37e31f['hCedh']]),_0x53ddcc);}return _0x25fe95;}finally{PerformanceTester[_0x346ddd(0x14f)](PerformanceEvents[_0x346ddd(0x193)]);}}static['getCliDir'](){const _0x3cc32b=a85_0x10eb9a,_0x442d19={'BvWLS':function(_0x3222ea,_0x68cfbd){return _0x3222ea(_0x68cfbd);},'Rtdow':_0x3cc32b(0xa2),'oDWsA':'cli','fzJGE':function(_0x1545ed,_0x7420cb){return _0x1545ed(_0x7420cb);}},_0xdd85ca=this['getWritableDir']();try{if(_0x442d19[_0x3cc32b(0xe1)](isNullOrEmpty,_0xdd85ca))throw new Error(_0x442d19[_0x3cc32b(0xf6)]);const _0x1e800b=path['join'](_0xdd85ca,_0x442d19[_0x3cc32b(0xd3)]);return!fs[_0x3cc32b(0x18d)](_0x1e800b)&&_0x442d19['fzJGE'](createDir,_0x1e800b),_0x1e800b;}catch(_0x4ce962){logger[_0x3cc32b(0x183)](_0x3cc32b(0x107)+util[_0x3cc32b(0xa5)](_0x4ce962));}}static[a85_0x10eb9a(0xfb)](){const _0x292507=a85_0x10eb9a,_0x37cf74={'iOUUW':'.browserstack','VcZoy':function(_0x38318e,_0x36f3d6){return _0x38318e(_0x36f3d6);},'hPach':function(_0x373097,_0x36f4a8){return _0x373097(_0x36f4a8);}},_0x26f313=[process[_0x292507(0xa9)][_0x292507(0x16f)],path[_0x292507(0x18c)](os[_0x292507(0x11a)](),_0x37cf74[_0x292507(0x102)]),path[_0x292507(0x18c)](os[_0x292507(0xc4)](),_0x37cf74[_0x292507(0x102)])];for(const _0x8bcd85 of _0x26f313){if(_0x37cf74['VcZoy'](isNullOrEmpty,_0x8bcd85))continue;try{if(fs[_0x292507(0x18d)](_0x8bcd85)){logger[_0x292507(0x183)]('Folder\x20'+_0x8bcd85+_0x292507(0xb5));if(!_0x37cf74['hPach'](isModifiable,_0x8bcd85)){logger[_0x292507(0x183)](_0x292507(0x103)+_0x8bcd85);const _0x14c4de=_0x37cf74[_0x292507(0xbe)](setReadWriteExecuteAccess,_0x8bcd85);if(!_0x37cf74[_0x292507(0x17a)](isTrue,_0x14c4de)){logger[_0x292507(0x10f)](_0x292507(0x172)+_0x8bcd85);continue;}}}else{logger[_0x292507(0x183)](_0x292507(0x190)+_0x8bcd85),_0x37cf74[_0x292507(0xbe)](createDir,_0x8bcd85),logger[_0x292507(0x183)](_0x292507(0x103)+_0x8bcd85);const _0x3ab8ad=_0x37cf74[_0x292507(0x17a)](setReadWriteExecuteAccess,_0x8bcd85);!_0x37cf74[_0x292507(0xbe)](isTrue,_0x3ab8ad)&&logger[_0x292507(0x10f)](_0x292507(0x172)+_0x8bcd85);}return _0x8bcd85;}catch(_0x24ca9e){logger[_0x292507(0x121)](_0x292507(0x150)+util['format'](_0x24ca9e));}}return null;}static['getExistingCliPath'](_0x41cee0){const _0x529679=a85_0x10eb9a,_0x5b180a={};_0x5b180a[_0x529679(0x131)]=function(_0x329c58,_0x393ce8){return _0x329c58>_0x393ce8;},_0x5b180a[_0x529679(0xf5)]=function(_0x400d2e,_0x53ec28){return _0x400d2e>_0x53ec28;};const _0x33742b=_0x5b180a;try{if(!fs['existsSync'](_0x41cee0)||!fs[_0x529679(0xe5)](_0x41cee0)[_0x529679(0xd2)]())return'';const _0x365327=fs[_0x529679(0x9f)](_0x41cee0)[_0x529679(0x177)](_0x575bb3=>path[_0x529679(0x18c)](_0x41cee0,_0x575bb3))['filter'](_0xb41c42=>fs[_0x529679(0xe5)](_0xb41c42)[_0x529679(0x11d)]()&&path[_0x529679(0x175)](_0xb41c42)[_0x529679(0x11f)](_0x529679(0x18f)));if(_0x33742b['cOSah'](_0x365327[_0x529679(0x182)],0x0)){const _0xe806ff=_0x365327[_0x529679(0x177)](_0x39b4d2=>({'filePath':_0x39b4d2,'mtime':fs[_0x529679(0xe5)](_0x39b4d2)['mtime']}))['reduce']((_0x1d296d,_0x144be1)=>{const _0x27731e=_0x529679;if(!_0x1d296d||!_0x1d296d[_0x27731e(0x12b)])return _0x144be1;if(_0x33742b[_0x27731e(0x131)](_0x144be1[_0x27731e(0x12b)],_0x1d296d[_0x27731e(0x12b)]))return _0x144be1;return _0x1d296d;},{});return _0xe806ff?_0xe806ff[_0x529679(0xa7)]:'';}return'';}catch(_0x5edbfe){return logger[_0x529679(0x121)](_0x529679(0x100)+util['format'](_0x5edbfe)),'';}}static [a85_0x10eb9a(0x148)]=async(_0x2bb852,_0xe11d28)=>{const _0x16fd62=a85_0x10eb9a,_0x5bb7b3={'joMhA':function(_0x3c451a,_0x5d1291,_0x384b0e,_0x247fdd,_0x22acbf){return _0x3c451a(_0x5d1291,_0x384b0e,_0x247fdd,_0x22acbf);},'ojzDO':_0x16fd62(0xb7)},_0x4489f6={};_0x4489f6['qs']=_0x2bb852,_0x4489f6[_0x16fd62(0xa1)]=!![];const _0xf45b24=await _0x5bb7b3[_0x16fd62(0xc2)](nodeRequest,_0x5bb7b3[_0x16fd62(0x174)],UPDATED_CLI_ENDPOINT,_0x4489f6,_0xe11d28);return logger[_0x16fd62(0x183)](_0x16fd62(0xd5)+JSON[_0x16fd62(0x104)](_0xf45b24)),_0xf45b24;};static['isBinaryBusy'](_0x4536db){const _0x9d067b=a85_0x10eb9a;try{const _0xbc0b0d=fs[_0x9d067b(0xfe)](_0x4536db,'r+');return fs[_0x9d067b(0xcb)](_0xbc0b0d),![];}catch(_0x347e8d){if(BINARY_BUSY_ERROR_CODES['includes'](_0x347e8d[_0x9d067b(0x16c)]))return logger[_0x9d067b(0x183)]('Binary\x20is\x20busy:\x20'+_0x4536db),!![];return logger['debug'](_0x9d067b(0xc8)+_0x347e8d['message']),![];}}static[a85_0x10eb9a(0xe4)](_0x33013b,_0x4d3d92=''){const _0xa4da0a=a85_0x10eb9a,_0x429c24={'MqjvC':function(_0x5149e8,_0x4fec43){return _0x5149e8(_0x4fec43);},'rUaSS':'SHELL_EXECUTE_ERROR','FjFff':_0xa4da0a(0xfa),'syajh':function(_0xd5d584,_0x3576ee){return _0xd5d584(_0x3576ee);},'liYaK':function(_0x122e28,_0x42d220,_0x243986,_0x9562f2){return _0x122e28(_0x42d220,_0x243986,_0x9562f2);},'XymTv':_0xa4da0a(0x121)};return new Promise((_0x6cf288,_0x260738)=>{const _0x2dc324=_0xa4da0a,_0x4f8d3e={'FiDpb':_0x429c24[_0x2dc324(0xdf)],'clzEj':function(_0x200186,_0x4d6bf8){const _0xbe3aa1=_0x2dc324;return _0x429c24[_0xbe3aa1(0x173)](_0x200186,_0x4d6bf8);},'rdUVn':function(_0x483b5b,_0x3319e6){const _0x393cf9=_0x2dc324;return _0x429c24[_0x393cf9(0x120)](_0x483b5b,_0x3319e6);},'AtiGW':_0x429c24[_0x2dc324(0x133)],'NGJtD':function(_0x1bc045,_0x5b02bf){return _0x429c24['MqjvC'](_0x1bc045,_0x5b02bf);}},_0x2e9c04={};_0x2e9c04[_0x2dc324(0xbf)]=_0x4d3d92,_0x2e9c04[_0x2dc324(0x13d)]=0x1388;const _0x153fb2=_0x429c24[_0x2dc324(0xed)](exec,_0x33013b,_0x2e9c04,(_0x2a3c05,_0x16b09b,_0x462c9c)=>{const _0x3996ab=_0x2dc324;if(_0x2a3c05){if(_0x33013b[_0x3996ab(0xf9)](_0x4f8d3e[_0x3996ab(0x140)])&&(_0x16b09b[_0x3996ab(0x149)]()||_0x462c9c[_0x3996ab(0x149)]())){const _0x4226d1=_0x16b09b['trim']()||_0x462c9c[_0x3996ab(0x149)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x4226d1+'\x22'),_0x4f8d3e['clzEj'](_0x6cf288,_0x4226d1);}else _0x4f8d3e[_0x3996ab(0xfc)](_0x6cf288,_0x462c9c[_0x3996ab(0x149)]()||_0x4f8d3e[_0x3996ab(0x125)]);}else logger[_0x3996ab(0x183)](_0x3996ab(0x15d)+_0x16b09b['trim']()+'\x22'),_0x4f8d3e[_0x3996ab(0xac)](_0x6cf288,_0x16b09b[_0x3996ab(0x149)]());});_0x153fb2['on'](_0x429c24['XymTv'],()=>{const _0x33f6f5=_0x2dc324;_0x429c24[_0x33f6f5(0x173)](_0x6cf288,_0x429c24[_0x33f6f5(0x133)]);});});}static [a85_0x10eb9a(0xba)]=async(_0x4108d1,_0x38a2b3)=>{const _0x5289bd=a85_0x10eb9a,_0x1fee59={'CiNaQ':function(_0x1ac0c4,_0x24bfdc){return _0x1ac0c4(_0x24bfdc);},'gBpKo':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','jNOEq':function(_0x5452e8,_0x9d03f7){return _0x5452e8(_0x9d03f7);},'tayLy':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','IAEop':function(_0x1d1e72,_0x5af390){return _0x1d1e72>=_0x5af390;},'HPSbW':_0x5289bd(0xf2),'dOIpA':_0x5289bd(0x106),'CQENm':_0x5289bd(0x121),'zTBJV':_0x5289bd(0x12f)};PerformanceTester[_0x5289bd(0x194)](PerformanceEvents[_0x5289bd(0x9e)]),logger[_0x5289bd(0x183)](_0x5289bd(0xd9)+_0x4108d1);try{const _0x4284d3=url['parse'](_0x4108d1),_0x125459=path[_0x5289bd(0x18c)](_0x38a2b3,'downloaded_file_'+process['pid']+'.zip'),_0x265f70=fs['createWriteStream'](_0x125459);return new Promise((_0x54f300,_0x11c69c)=>{const _0x2e417d=_0x5289bd,_0x17d892={'nLWqx':_0x1fee59[_0x2e417d(0x134)],'jvfQQ':function(_0x1845fe,_0xfd63bc){const _0x364941=_0x2e417d;return _0x1fee59[_0x364941(0x15c)](_0x1845fe,_0xfd63bc);},'gJEVO':_0x1fee59[_0x2e417d(0x17e)],'SxSYI':function(_0xeeb89e,_0x5cc8f){return _0x1fee59['CiNaQ'](_0xeeb89e,_0x5cc8f);},'YCufj':function(_0x29dac1,_0x18a7fa){const _0x22b4a5=_0x2e417d;return _0x1fee59[_0x22b4a5(0x10b)](_0x29dac1,_0x18a7fa);},'svVUb':_0x1fee59['HPSbW'],'QrOIF':_0x1fee59[_0x2e417d(0x17c)],'ibLhn':_0x1fee59[_0x2e417d(0xb3)]};https[_0x2e417d(0x168)](_0x4284d3,function(_0x2cfe61){const _0x385b36=_0x2e417d,_0x3c128f={'LgRTo':_0x17d892[_0x385b36(0xc7)],'dtiFz':function(_0x6c3ac1,_0x29ea80){return _0x17d892['SxSYI'](_0x6c3ac1,_0x29ea80);},'UvjOU':function(_0x4f6b77,_0x22bfaa){const _0x522596=_0x385b36;return _0x17d892[_0x522596(0x113)](_0x4f6b77,_0x22bfaa);}},_0x41f118=null;if(_0x2cfe61[_0x385b36(0x151)]&&_0x17d892['YCufj'](_0x2cfe61['statusCode'],0x190)){const _0x50ecc9=new Error(_0x385b36(0x110)+_0x2cfe61[_0x385b36(0x151)]+_0x385b36(0xa6)+_0x4108d1);_0x50ecc9['code']=_0x17d892[_0x385b36(0xe6)],_0x50ecc9[_0x385b36(0x151)]=_0x2cfe61[_0x385b36(0x151)],logger['error'](util['format'](_0x17d892[_0x385b36(0x156)],_0x2cfe61['statusCode'])),PerformanceTester[_0x385b36(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x385b36(0xb6)+_0x2cfe61['statusCode']),_0x2cfe61[_0x385b36(0x117)](),_0x265f70[_0x385b36(0xca)](),fs[_0x385b36(0x130)](_0x125459,()=>{}),_0x17d892[_0x385b36(0x15b)](_0x11c69c,_0x50ecc9);return;}_0x2cfe61[_0x385b36(0x17f)](_0x265f70),_0x2cfe61['on'](_0x17d892[_0x385b36(0x18a)],function(_0x31e7b8){const _0x3f520c=_0x385b36;logger[_0x3f520c(0x121)](util['format'](_0x17d892[_0x3f520c(0xb4)],_0x31e7b8)),PerformanceTester[_0x3f520c(0x14f)](PerformanceEvents[_0x3f520c(0x9e)],![],util['format'](_0x31e7b8)),_0x17d892[_0x3f520c(0x113)](_0x11c69c,_0x31e7b8);}),_0x265f70['on'](_0x17d892['ibLhn'],function(_0x356dee){const _0x15e98a=_0x385b36;logger[_0x15e98a(0x121)](util[_0x15e98a(0xa5)](_0x3c128f[_0x15e98a(0xd0)],_0x356dee)),PerformanceTester[_0x15e98a(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x356dee)),_0x3c128f['dtiFz'](_0x11c69c,_0x356dee);}),CLIUtils[_0x385b36(0xdc)](_0x265f70,_0x41f118,_0x125459,_0x38a2b3,_0x5b9c8e=>{const _0x3ee2b8=_0x385b36;PerformanceTester[_0x3ee2b8(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x3c128f[_0x3ee2b8(0x144)](_0x54f300,_0x5b9c8e);},_0x31bc07=>{const _0x25e83c=_0x385b36;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x25e83c(0xa5)](_0x31bc07)),_0x3c128f['UvjOU'](_0x11c69c,_0x31bc07);});})['on'](_0x1fee59[_0x2e417d(0xb3)],function(_0x1963a7){const _0x589cfa=_0x2e417d;logger['error'](_0x589cfa(0xdd)+util['format'](_0x1963a7)),PerformanceTester[_0x589cfa(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x589cfa(0xa5)](_0x1963a7)),_0x1fee59[_0x589cfa(0x176)](_0x11c69c,_0x1963a7);});});}catch(_0x5f2dd1){PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5289bd(0xa5)](_0x5f2dd1)),logger[_0x5289bd(0x121)](util[_0x5289bd(0xa5)](_0x1fee59['zTBJV'],_0x5f2dd1));throw _0x5f2dd1;}};static[a85_0x10eb9a(0xdc)](_0xa8e4ce,_0x1b0501,_0x1a1ac6,_0x49e055,_0xb180a1,_0x1db04b){const _0x52fc9d=a85_0x10eb9a,_0x234fa3={'fBWRm':function(_0x231b11,_0x49f326){return _0x231b11(_0x49f326);},'jotak':_0x52fc9d(0x13e),'kQRes':function(_0x18df7f,_0x2cb56e){return _0x18df7f!==_0x2cb56e;},'zlgmy':function(_0x4f3c71,_0x950e61){return _0x4f3c71(_0x950e61);},'sJPTf':_0x52fc9d(0x121),'MhOGk':_0x52fc9d(0x181),'FtyUu':_0x52fc9d(0x127),'yIVsM':function(_0x17e323,_0x514356){return _0x17e323(_0x514356);},'Amgbz':_0x52fc9d(0x14f),'QcogJ':_0x52fc9d(0xd4)};_0xa8e4ce['on'](_0x234fa3[_0x52fc9d(0xe3)],function(){const _0x192975=_0x52fc9d,_0x2b5e0a={'NFoPw':function(_0x45189c,_0x22908e){return _0x234fa3['fBWRm'](_0x45189c,_0x22908e);},'ySIdU':_0x234fa3[_0x192975(0xe3)],'mvjGP':function(_0x27abc9,_0x31740e){const _0x3ce8cd=_0x192975;return _0x234fa3[_0x3ce8cd(0x11b)](_0x27abc9,_0x31740e);},'FAGRr':function(_0x4658a7,_0x13085e){const _0x1f5caa=_0x192975;return _0x234fa3[_0x1f5caa(0xda)](_0x4658a7,_0x13085e);},'SrmIh':function(_0x5091f9,_0x349b5e){const _0x2e4dba=_0x192975;return _0x234fa3[_0x2e4dba(0x178)](_0x5091f9,_0x349b5e);},'swzkO':_0x234fa3['sJPTf'],'EbMLb':function(_0x528328,_0x344ef5){const _0x272a4a=_0x192975;return _0x234fa3[_0x272a4a(0x11b)](_0x528328,_0x344ef5);},'jTodS':_0x234fa3['MhOGk'],'mGdLA':function(_0xd2127b,_0x5b789e){return _0x234fa3['fBWRm'](_0xd2127b,_0x5b789e);},'nEocF':_0x234fa3[_0x192975(0x196)],'EtpEq':function(_0x194f6f,_0x11c36f){return _0x234fa3['yIVsM'](_0x194f6f,_0x11c36f);},'LTAej':_0x234fa3[_0x192975(0xbb)],'uzjXe':function(_0x34dbb4,_0x4d5edd){const _0x51e053=_0x192975;return _0x234fa3[_0x51e053(0x160)](_0x34dbb4,_0x4d5edd);},'cPCvz':_0x234fa3[_0x192975(0x152)]},_0x4ee077={};_0x4ee077[_0x192975(0xa0)]=!![],yauzl[_0x192975(0x119)](_0x1a1ac6,_0x4ee077,function(_0x5839c0,_0x54b368){const _0x4e85b4=_0x192975,_0x15b413={'oXsnd':function(_0x2c725b,_0x2941cf){const _0x1ea464=a85_0x18a9;return _0x2b5e0a[_0x1ea464(0x192)](_0x2c725b,_0x2941cf);},'smwBt':_0x2b5e0a['LTAej'],'wlSLa':function(_0x2bf457,_0x595cd4){const _0x4aff19=a85_0x18a9;return _0x2b5e0a[_0x4aff19(0xf8)](_0x2bf457,_0x595cd4);},'pKYDx':function(_0x479d0b,_0x1cea7e){const _0x5da8c8=a85_0x18a9;return _0x2b5e0a[_0x5da8c8(0x115)](_0x479d0b,_0x1cea7e);}};if(_0x5839c0){_0x2b5e0a['SrmIh'](_0x1db04b,_0x5839c0);return;}_0x54b368[_0x4e85b4(0x195)](),_0x54b368['on'](_0x2b5e0a[_0x4e85b4(0x136)],_0xa1885a=>{const _0xcec934=_0x4e85b4,_0x699366={'fixXU':function(_0x31207e,_0x281437){const _0x4dd62b=a85_0x18a9;return _0x2b5e0a[_0x4dd62b(0x126)](_0x31207e,_0x281437);},'oyzHk':function(_0x9b404b,_0x3c4a00){const _0x5bf57a=a85_0x18a9;return _0x2b5e0a[_0x5bf57a(0x126)](_0x9b404b,_0x3c4a00);},'UIWIJ':_0x2b5e0a[_0xcec934(0xc9)]};if(/\/$/[_0xcec934(0x154)](_0xa1885a[_0xcec934(0x161)])){_0x54b368[_0xcec934(0x195)]();return;}!_0x1b0501&&(_0x1b0501=_0xa1885a[_0xcec934(0x161)]);if(_0x2b5e0a[_0xcec934(0x10e)](_0xa1885a[_0xcec934(0x161)],_0x1b0501))_0x54b368[_0xcec934(0x195)]();else{const _0x2aabfe=_0xa1885a[_0xcec934(0x161)],_0x155285=path['join'](_0x49e055,_0x2aabfe+_0xcec934(0x188)+process[_0xcec934(0xc6)]);let _0x2588e7;try{_0x2588e7=fs[_0xcec934(0x164)](_0x155285);}catch(_0x31c886){if(BINARY_BUSY_ERROR_CODES[_0xcec934(0xf9)](_0x31c886[_0xcec934(0x16c)])){const _0x4eef22=path[_0xcec934(0x18c)](_0x49e055,_0x2aabfe);if(fs[_0xcec934(0x18d)](_0x4eef22)){logger[_0xcec934(0x10f)](_0xcec934(0xe7)+_0x2aabfe),fs[_0xcec934(0x130)](_0x1a1ac6,_0x3d9a25=>{const _0x53cea1=_0xcec934;_0x3d9a25&&logger[_0x53cea1(0x10f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a1ac6);}),_0x2b5e0a['FAGRr'](_0xb180a1,_0x4eef22);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2aabfe);}_0x2b5e0a[_0xcec934(0xa4)](_0x1db04b,_0x31c886);return;}_0x2588e7['on'](_0x2b5e0a[_0xcec934(0x15f)],_0x7f3a91=>{const _0x5e6f66=_0xcec934;if(BINARY_BUSY_ERROR_CODES[_0x5e6f66(0xf9)](_0x7f3a91[_0x5e6f66(0x16c)])){const _0x1444e6=path[_0x5e6f66(0x18c)](_0x49e055,_0x2aabfe);_0x2588e7[_0x5e6f66(0x13e)](),fs[_0x5e6f66(0x18d)](_0x1444e6)?(logger[_0x5e6f66(0x10f)](_0x5e6f66(0x137)+_0x7f3a91[_0x5e6f66(0x169)]),_0x54b368[_0x5e6f66(0x13e)](),fs['unlink'](_0x1a1ac6,_0x5bb362=>{const _0x1e9c1f=_0x5e6f66;_0x5bb362&&logger[_0x1e9c1f(0x10f)](_0x1e9c1f(0xb2)+_0x1a1ac6);}),_0x699366[_0x5e6f66(0x141)](_0xb180a1,_0x1444e6)):(logger['warn'](_0x5e6f66(0xe8)+_0x7f3a91[_0x5e6f66(0x169)]),fs['unlink'](_0x155285,()=>{}),_0x699366[_0x5e6f66(0x141)](_0x1db04b,_0x7f3a91));}else fs['unlink'](_0x155285,()=>{}),_0x699366[_0x5e6f66(0x14b)](_0x1db04b,_0x7f3a91);}),_0x54b368[_0xcec934(0xcc)](_0xa1885a,function(_0x56fe50,_0x3e4408){const _0x5ae503=_0xcec934;if(_0x56fe50){fs[_0x5ae503(0x130)](_0x155285,()=>{}),_0x15b413[_0x5ae503(0x143)](_0x1db04b,_0x56fe50);return;}_0x3e4408['on'](_0x15b413[_0x5ae503(0x116)],function(){const _0x4be522=_0x5ae503;_0x2588e7[_0x4be522(0x14f)](),_0x2588e7['on'](_0x699366[_0x4be522(0xf3)],function(){const _0x5e2a57=_0x4be522;_0x54b368[_0x5e2a57(0x195)]();});}),_0x3e4408[_0x5ae503(0x17f)](_0x2588e7);});}}),_0x54b368['on'](_0x2b5e0a['swzkO'],_0x3bed43=>{const _0x3b8b45=_0x4e85b4;_0x15b413[_0x3b8b45(0xe0)](_0x1db04b,_0x3bed43);}),_0x54b368[_0x4e85b4(0xb0)](_0x2b5e0a[_0x4e85b4(0x105)],()=>{const _0x54084d=_0x4e85b4,_0x3b1d3f={'TPzzp':function(_0x3e6861,_0x4a4546){return _0x2b5e0a['EbMLb'](_0x3e6861,_0x4a4546);},'gScYQ':_0x2b5e0a[_0x54084d(0xab)],'RulRv':function(_0x3e65ce,_0x3796b9){const _0x422dac=_0x54084d;return _0x2b5e0a[_0x422dac(0xf1)](_0x3e65ce,_0x3796b9);},'KwAOe':function(_0x5de83c,_0x36d6c2){const _0x32f9bc=_0x54084d;return _0x2b5e0a[_0x32f9bc(0x115)](_0x5de83c,_0x36d6c2);}};fs[_0x54084d(0x130)](_0x1a1ac6,_0x3cd2b0=>{const _0x39abc4=_0x54084d;_0x3cd2b0&&logger[_0x39abc4(0x10f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a1ac6);});const _0x4d7073=path[_0x54084d(0x18c)](_0x49e055,_0x1b0501+_0x54084d(0x188)+process['pid']),_0x5b6a75=path[_0x54084d(0x18c)](_0x49e055,_0x1b0501);fs['chmod'](_0x4d7073,_0x2b5e0a[_0x54084d(0x17d)],function(_0x209f7a){const _0x27a532=_0x54084d;if(_0x209f7a){_0x54b368[_0x27a532(0x13e)](),fs[_0x27a532(0x130)](_0x4d7073,()=>{}),_0x15b413[_0x27a532(0x14e)](_0x1db04b,_0x209f7a);return;}fs[_0x27a532(0xdb)](_0x4d7073,_0x5b6a75,function(_0x31222d){const _0x5ce503=_0x27a532;if(_0x31222d){if(_0x3b1d3f['TPzzp'](_0x31222d['code'],_0x3b1d3f[_0x5ce503(0x142)])){_0x54b368[_0x5ce503(0x13e)](),fs[_0x5ce503(0x130)](_0x4d7073,()=>{}),_0x3b1d3f['RulRv'](_0x1db04b,_0x31222d);return;}logger[_0x5ce503(0x10f)](_0x5ce503(0x129)+_0x31222d[_0x5ce503(0x169)]);try{fs[_0x5ce503(0xad)](_0x4d7073,_0x5b6a75);}catch(_0x315e40){_0x54b368['close'](),fs['unlink'](_0x4d7073,()=>{}),_0x3b1d3f['RulRv'](_0x1db04b,_0x315e40);return;}fs['unlink'](_0x4d7073,_0x310917=>{const _0x3145d3=_0x5ce503;_0x310917&&logger[_0x3145d3(0x10f)](_0x3145d3(0x138)+_0x310917['message']);});}_0x54b368[_0x5ce503(0x13e)](),_0x3b1d3f[_0x5ce503(0x17b)](_0xb180a1,_0x5b6a75);});});});});});}static[a85_0x10eb9a(0x187)](){const _0x1b75bf=a85_0x10eb9a;if(process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x1b75bf(0x170)](process['env'][_0x1b75bf(0xef)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x338d2d=a85_0x10eb9a;if(process[_0x338d2d(0xa9)][_0x338d2d(0x16a)])return JSON[_0x338d2d(0x170)](process[_0x338d2d(0xa9)][_0x338d2d(0x16a)]);return this['automationFrameworkDetail'];}static[a85_0x10eb9a(0x15e)](_0x43c534,_0xaaf73f){const _0x57f660=a85_0x10eb9a,_0x2b6c6a={'pIINM':_0x57f660(0x10d),'JOgTm':function(_0x1c5746,_0x560dd2){return _0x1c5746(_0x560dd2);},'BRPUJ':function(_0x38fe71,_0x3f714f){return _0x38fe71||_0x3f714f;}},_0xe78b62=_0x2b6c6a[_0x57f660(0x114)][_0x57f660(0xbc)]('|');let _0x19294a=0x0;while(!![]){switch(_0xe78b62[_0x19294a++]){case'0':process[_0x57f660(0xa9)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x57f660(0x104)](this[_0x57f660(0x185)]);continue;case'1':this[_0x57f660(0x185)]={'name':_0xaaf73f,'version':_0x2b6c6a[_0x57f660(0x157)](getFrameworkVersion,_0xaaf73f)};continue;case'2':process[_0x57f660(0xa9)][_0x57f660(0xef)]=JSON[_0x57f660(0x104)](this[_0x57f660(0xee)]);continue;case'3':_0x2b6c6a[_0x57f660(0xb1)](!_0x43c534,!_0xaaf73f)&&logger['debug'](_0x57f660(0x109)+_0x43c534+_0x57f660(0xc0)+_0xaaf73f);continue;case'4':this[_0x57f660(0xee)]={'name':_0x43c534,'version':{[_0x43c534]:_0x2b6c6a[_0x57f660(0x157)](getFrameworkVersion,_0x43c534)}};continue;}break;}}static['getHookRegistryKey'](_0x2e644a,_0x2a5c13){return _0x2e644a+':'+_0x2a5c13;}static[a85_0x10eb9a(0x18e)](){const _0x1960e0=a85_0x10eb9a;return process[_0x1960e0(0xc6)]+':'+threadId;}static['shouldSkipSessionName'](_0x10170a){const _0x45cb8f=a85_0x10eb9a;if(_0x10170a[_0x45cb8f(0xd7)]&&_0x10170a[_0x45cb8f(0xd7)][_0x45cb8f(0xaa)])return!![];return![];}static[a85_0x10eb9a(0x165)](_0x5abaf4){const _0x465fb7=a85_0x10eb9a;if(_0x5abaf4[_0x465fb7(0xd7)]&&_0x5abaf4[_0x465fb7(0xd7)][_0x465fb7(0x12e)])return!![];return![];}static[a85_0x10eb9a(0x147)](_0x46398c){const _0x547342=a85_0x10eb9a,_0x19d1b2=new RegExp(TestFrameworkConstants[_0x547342(0x158)]);return _0x19d1b2['test'](_0x46398c);}static[a85_0x10eb9a(0xaf)](_0xa2444f,_0x2dd47e){const _0xa03902=a85_0x10eb9a,_0x250479={};_0x250479[_0xa03902(0x145)]=function(_0x4b6ba8,_0x3203ea){return _0x4b6ba8!==_0x3203ea;},_0x250479['pHGLE']=function(_0xb8ed42,_0x2799bc){return _0xb8ed42===_0x2799bc;},_0x250479[_0xa03902(0xec)]=_0xa03902(0xe2);const _0x3fade7=_0x250479;for(const [_0x21d8d7,_0x7962c7]of Object[_0xa03902(0x118)](_0x2dd47e)){if(_0x3fade7[_0xa03902(0x145)](_0x7962c7,null)&&_0x3fade7[_0xa03902(0x16e)](typeof _0x7962c7,_0x3fade7[_0xa03902(0xec)])&&!Array[_0xa03902(0x15a)](_0x7962c7))_0xa2444f[_0x21d8d7]=this[_0xa03902(0xaf)](_0xa2444f[_0x21d8d7]||{},_0x7962c7);else Array[_0xa03902(0x15a)](_0x7962c7)?_0xa2444f[_0x21d8d7]=(_0xa2444f[_0x21d8d7]||[])['concat'](_0x7962c7):_0xa2444f[_0x21d8d7]=_0x7962c7;}return _0xa2444f;}}module['exports']=CLIUtils;function a85_0x303c(){const _0xd809a0=['VFcmN','1724018sanQSm','rUaSS','gBpKo','../../helpers/test-observability/utils.js','cPCvz','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','data','./instances/testFrameworkInstance.js','../../helpers/utilities','Development\x20Cli\x20Path:\x20','timeout','close','arch','FiDpb','fixXU','gScYQ','oXsnd','UvjOU','BUVaP','Resolved\x20binary\x20path:\x20','matchHookRegex','requestToUpdateCLI','trim','../utils/constants','oyzHk','zvQcu','../../helpers/classLogger.js','pKYDx','end','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','statusCode','QcogJ','getSdkVersion','test','16YXqRll','QrOIF','JOgTm','HOOK_REGEX','150SBttrA','isArray','SxSYI','jNOEq','Resolving\x20with\x20stdout:\x20\x22','setFrameworkDetail','swzkO','yIVsM','fileName','platform','isDevelopmentEnv','createWriteStream','shouldSkipSessionStatus','24070nZtxSL','834993rjEeqn','get','message','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','code','BROWSERSTACK_CLI_ENV','pHGLE','BROWSERSTACK_FILES_DIR','parse','mVBNe','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MqjvC','ojzDO','basename','CiNaQ','map','fBWRm','616974vUKROz','hPach','KwAOe','dOIpA','nEocF','tayLy','pipe','cli_version','EXDEV','length','debug','pinXK','automationFrameworkDetail','Configuring\x20Cli\x20path.','getTestFrameworkDetail','.tmp.','3557785UYdmNq','ibLhn','util','join','existsSync','getCurrentInstanceName','binary-','Folder\x20does\x20not\x20exist:\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','EtpEq','SDK_CLI_CHECK_UPDATE','start','readEntry','FtyUu','SDK_CLI_DOWNLOAD','readdirSync','lazyEntries','preserveStatusCodeOnError','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','phmmr','SrmIh','format','\x20from\x20','filePath','WIHGX','env','skipSessionName','jTodS','NGJtD','copyFileSync','checkAndUpdateCli','mergeObject','once','BRPUJ','Failed\x20to\x20delete\x20zip\x20file:\x20','CQENm','nLWqx','\x20already\x20exists','HTTP\x20','GET','../../helpers/performance/performance-tester.js','./state/hookState.js','downloadLatestBinary','Amgbz','split','wDDVA','VcZoy','cwd',',\x20automationFramework=','.sock','joMhA','setupCliPath','tmpdir','getSdkLanguage','pid','gJEVO','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','ySIdU','destroy','closeSync','openReadStream','./framework/constants/testFrameworkConstants.js','unix:/tmp/sdk-platform-','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','LgRTo','UZBIM','isDirectory','oDWsA','entry','response\x20','getExistingCliPath','testContextOptions','development','Downloading\x20SDK\x20binary\x20from:\x20','zlgmy','rename','downloadFileStream','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','81596OtWpoA','FjFff','wlSLa','BvWLS','object','jotak','runShellCommand','statSync','svVUb','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','../../helpers/helper','worker_threads','473456BTzCdk','igVdx','liYaK','testFrameworkDetail','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','CLIUtils','mGdLA','DOWNLOAD_HTTP','UIWIJ','yauzl','cOSah','Rtdow','OLMrP','uzjXe','includes','version','getWritableDir','rdUVn','path','openSync','ZyvTF','Error\x20while\x20reading\x20CLI\x20path:\x20','url','iOUUW','Setting\x20required\x20permissions\x20to\x20','stringify','LTAej','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','hCedh','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','PjAUp','IAEop','35LwsdCl','3|4|1|0|2','mvjGP','warn','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','BROWSERSTACK_BINARY_URL','node','jvfQQ','pIINM','FAGRr','smwBt','resume','entries','open','homedir','kQRes','7117vxYjgi','isFile','isBinaryBusy','startsWith','syajh','error','info','\x20version','kadZx','AtiGW','NFoPw','0755','mJgHB','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','./state/testFrameworkState.js','mtime','./state/automationFrameworkState.js','getCLIParamsForDevEnv','skipSessionStatus','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','unlink'];a85_0x303c=function(){return _0xd809a0;};return a85_0x303c();}
@@ -1 +1 @@
1
- 'use strict';const a86_0x204a57=a86_0x25c7;(function(_0x379329,_0x1a4f19){const _0x518512=a86_0x25c7,_0x2c7aec=_0x379329();while(!![]){try{const _0x361430=parseInt(_0x518512(0xaa))/0x1*(-parseInt(_0x518512(0xe6))/0x2)+-parseInt(_0x518512(0xd8))/0x3*(parseInt(_0x518512(0xa9))/0x4)+-parseInt(_0x518512(0xdf))/0x5+-parseInt(_0x518512(0xb3))/0x6*(-parseInt(_0x518512(0x88))/0x7)+-parseInt(_0x518512(0xfb))/0x8*(parseInt(_0x518512(0xeb))/0x9)+-parseInt(_0x518512(0xaf))/0xa*(parseInt(_0x518512(0xbb))/0xb)+parseInt(_0x518512(0xca))/0xc;if(_0x361430===_0x1a4f19)break;else _0x2c7aec['push'](_0x2c7aec['shift']());}catch(_0x313f4a){_0x2c7aec['push'](_0x2c7aec['shift']());}}}(a86_0xdca4,0x5435f));function a86_0x25c7(_0x23c365,_0x3cbb6f){const _0xdca4c1=a86_0xdca4();return a86_0x25c7=function(_0x25c722,_0x183026){_0x25c722=_0x25c722-0x82;let _0x4ada00=_0xdca4c1[_0x25c722];return _0x4ada00;},a86_0x25c7(_0x23c365,_0x3cbb6f);}const fs=require('fs'),os=require('os'),path=require(a86_0x204a57(0xc5)),helper=require(a86_0x204a57(0xda)),AutomationFramework=require(a86_0x204a57(0xdd)),TestFrameworkConstants=require(a86_0x204a57(0xd5)),PlaywrightDriverModule=require(a86_0x204a57(0xc7)),TestInfo=require(a86_0x204a57(0xd3)),TestHubModule=require(a86_0x204a57(0xa3)),{createClassLogger}=require(a86_0x204a57(0xd4)),logger=createClassLogger(a86_0x204a57(0xa8)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x8f2149=a86_0x204a57,_0x52a7bd={};_0x52a7bd[_0x8f2149(0xae)]=function(_0x1a993a,_0x5e1b8d){return _0x1a993a===_0x5e1b8d;},_0x52a7bd['IZbSY']=_0x8f2149(0x85);const _0x22225e=_0x52a7bd,_0x286efa=process[_0x8f2149(0xa1)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x286efa||_0x22225e[_0x8f2149(0xae)](_0x286efa,_0x22225e[_0x8f2149(0xc1)]))return null;return _0x286efa;}function a86_0xdca4(){const _0x71f2da=['nfHmd','28746bgbbYH','pid','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','OsdQq',',\x20values=','85959WJfbdm','__workerDetails','testLevelTags','readdirSync','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getBuildTagsRunId','__jestCurrentTestIdentifier','name','getInstance','testhubConfig','RpKDr','MODULE_NAME','vhflH','getAllData','filter','buildLevelTags','8lCAGoB','TEST','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','keys','./state/testFrameworkState','string','gzyEh','multi_dropdown','modules','./browserstackCLI','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract',':jest-','aggregateBuildLevelTagsFromTmp','ymeQc','ZthxK','KEY_TEST_ID','tmpdir','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','isArray','trim','isRunning','null','setTestDetails','clearTags','3986318LLcYsr','statSync','lWPZJ','field_type','getTestFrameworkDetail','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','KXDom',',\x20existingTags=','PkwDO','mergeBuildLevelTags','euOvw','JNSXc','bGqDZ','getTestLevelTags','writeFile','setCustomTags','Vpolb','ahlnh','lbQkT','stringify','\x20->\x20values=','mergeValues','buildHashedId','getBuildLevelTags','endsWith','env','message','./modules/testhubModule','nAEnN','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager','4QjegvQ','42yQCdoD','currentTest','utf8','QxfHG','aZISk','839950TfrzDn','./cliUtils','getTestUUID','from','6MNhSSQ','EbOZS','wgjgT','getTestFramework','Zyftu','parseCommaSeparatedValues',',\x20key=','promises','33EBegqz','values','ms)\x20','debug','.json','startsWith','IZbSY','join','includes','HBZMq','path','testInfo','./modules/playwrightDriverModule','mergeIntoTags','resolveInstance','15322428kMzAUv','chvxv','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','parse','getTrackedInstance','EsKvZ','POST','_testInternals','now','./TestInfo','../../helpers/classLogger','./framework/constants/testFrameworkConstants','entries','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','1353870WUAUwD','retry','../../helpers/helper','BUILD_TAG_FILE_PREFIX','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','./framework/automationFramework','getState','924620uitMwS','mdZtq','getTestDetails','KEY_CUSTOM_TAGS','tNZqv','VosIi'];a86_0xdca4=function(){return _0x71f2da;};return a86_0xdca4();}function getBuildTagsFilePath(_0x53486a){const _0x54bead=a86_0x204a57;return path[_0x54bead(0xc2)](os[_0x54bead(0x10d)](),''+BUILD_TAG_FILE_PREFIX+_0x53486a+'_'+process[_0x54bead(0xe7)]+_0x54bead(0xbf));}class CustomTagManager{static [a86_0x204a57(0xfa)]={};static [a86_0x204a57(0xed)]={};static[a86_0x204a57(0x9d)](_0x462c12,_0x2c2d22){const _0x19f588=a86_0x204a57;return Array[_0x19f588(0xb2)](new Set([..._0x462c12||[],..._0x2c2d22||[]]));}static['mergeIntoTags'](_0x2ba47a,_0x4c7bc7,_0x271aed){const _0x12d229=a86_0x204a57,_0x56e59b={};_0x56e59b['euOvw']=_0x12d229(0x103);const _0x219393=_0x56e59b;if(!_0x2ba47a[_0x4c7bc7]){const _0x3328e0={};_0x3328e0['field_type']=_0x219393[_0x12d229(0x92)],_0x3328e0[_0x12d229(0xbc)]=[..._0x271aed||[]],_0x2ba47a[_0x4c7bc7]=_0x3328e0;}else!_0x2ba47a[_0x4c7bc7][_0x12d229(0x8b)]&&(_0x2ba47a[_0x4c7bc7][_0x12d229(0x8b)]=_0x219393[_0x12d229(0x92)]),!Array[_0x12d229(0x82)](_0x2ba47a[_0x4c7bc7][_0x12d229(0xbc)])&&(_0x2ba47a[_0x4c7bc7]['values']=[]),_0x2ba47a[_0x4c7bc7][_0x12d229(0xbc)]=CustomTagManager[_0x12d229(0x9d)](_0x2ba47a[_0x4c7bc7][_0x12d229(0xbc)],_0x271aed);return _0x2ba47a;}static async[a86_0x204a57(0x97)](_0x473e90,_0x417cef,_0x22051e=![]){const _0x2c7f64=a86_0x204a57,_0x21faa2={'HBZMq':function(_0x119714,_0x34fbe6){return _0x119714!==_0x34fbe6;},'ZthxK':_0x2c7f64(0x101),'wgjgT':_0x2c7f64(0xa7),'mdZtq':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','tgHBo':function(_0x5059e0,_0x57ec9c){return _0x5059e0===_0x57ec9c;},'Zyftu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','bGqDZ':function(_0x491fb5,_0x15b193){return _0x491fb5===_0x15b193;},'vhflH':_0x2c7f64(0x107),'OsdQq':function(_0x512bfd,_0xca1d79){return _0x512bfd(_0xca1d79);},'KXDom':_0x2c7f64(0x105),'bIrWb':function(_0x137a91){return _0x137a91();},'lWPZJ':_0x2c7f64(0x103),'EsKvZ':function(_0x155cb6,_0x5e3c0c){return _0x155cb6>_0x5e3c0c;},'ymeQc':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','tNZqv':_0x2c7f64(0x108),'nAEnN':_0x2c7f64(0xb0),'lHOzk':function(_0x53cba4,_0x485e70){return _0x53cba4(_0x485e70);},'EbOZS':function(_0x436fb5,_0x1aafab){return _0x436fb5===_0x1aafab;},'GbcSX':'jest','JNSXc':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','gentg':function(_0x276e92,_0x11d61a){return _0x276e92(_0x11d61a);},'chvxv':_0x2c7f64(0x106),'QxfHG':function(_0x4f924b,_0x361ab0){return _0x4f924b(_0x361ab0);},'Vpolb':_0x2c7f64(0x100),'VosIi':function(_0x27f694,_0xccf4a6){return _0x27f694(_0xccf4a6);},'gzyEh':'./state/hookState','VJeIG':_0x2c7f64(0xef)};if(_0x21faa2[_0x2c7f64(0xc4)](typeof _0x473e90,_0x21faa2['ZthxK'])){logger[_0x2c7f64(0xbe)](_0x21faa2[_0x2c7f64(0xb5)]);return;}if(_0x21faa2[_0x2c7f64(0xc4)](typeof _0x417cef,_0x21faa2[_0x2c7f64(0x10b)])){logger[_0x2c7f64(0xbe)](_0x21faa2[_0x2c7f64(0xe0)]);return;}if(_0x21faa2['tgHBo'](_0x473e90[_0x2c7f64(0x83)](),'')){logger['debug'](_0x21faa2[_0x2c7f64(0xb7)]);return;}if(_0x21faa2[_0x2c7f64(0x94)](_0x417cef[_0x2c7f64(0x83)](),'')){logger['debug'](_0x21faa2[_0x2c7f64(0xf7)]);return;}const _0xc52c80=helper[_0x2c7f64(0xb8)](_0x417cef);if(_0x22051e){const _0x471301=_0x21faa2['OsdQq'](require,_0x21faa2[_0x2c7f64(0x8e)]),_0x38f8e3=_0x471301[_0x2c7f64(0xf3)](),_0x55c73c=_0x38f8e3&&_0x38f8e3[_0x2c7f64(0x104)][TestHubModule[_0x2c7f64(0xf6)]];if(_0x55c73c){const _0x13a4d5=_0x55c73c?.[_0x2c7f64(0xf4)]?.['toObject']()?.[_0x2c7f64(0x9e)];TestInfo[_0x2c7f64(0xb1)](_0x13a4d5);const _0x373ea4=TestInfo[_0x2c7f64(0xe1)](_0x13a4d5),_0x354955=_0x373ea4[TestFrameworkConstants[_0x2c7f64(0xe2)]]||{};CustomTagManager[_0x2c7f64(0xc8)](_0x354955,_0x473e90,_0xc52c80),_0x373ea4[TestFrameworkConstants[_0x2c7f64(0xe2)]]=_0x354955,TestInfo['setTestDetails'](_0x13a4d5,_0x373ea4);!this['buildLevelTags'][_0x13a4d5]&&(this['buildLevelTags'][_0x13a4d5]={});this[_0x2c7f64(0xfa)][_0x13a4d5][_0x473e90]=CustomTagManager[_0x2c7f64(0x9d)](this[_0x2c7f64(0xfa)][_0x13a4d5][_0x473e90],_0xc52c80);try{const _0x12cb8e=_0x21faa2['bIrWb'](getBuildTagsRunId);if(_0x12cb8e){const _0x57eecf={};for(const [_0x4c8fa6,_0x5a17b1]of Object[_0x2c7f64(0xd6)](this['buildLevelTags'][_0x13a4d5]||{})){_0x57eecf[_0x4c8fa6]={'field_type':_0x21faa2[_0x2c7f64(0x8a)],'values':Array[_0x2c7f64(0x82)](_0x5a17b1)?[..._0x5a17b1]:[]};}_0x21faa2[_0x2c7f64(0xcf)](Object[_0x2c7f64(0xff)](_0x57eecf)['length'],0x0)&&await fs[_0x2c7f64(0xba)][_0x2c7f64(0x96)](_0x21faa2['OsdQq'](getBuildTagsFilePath,_0x12cb8e),JSON['stringify'](_0x57eecf));}else logger[_0x2c7f64(0xbe)](_0x21faa2[_0x2c7f64(0x10a)]);}catch(_0x40e834){logger['debug']('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x40e834&&_0x40e834['message']?_0x40e834[_0x2c7f64(0xa2)]:_0x40e834));}}}else{let _0xdbb8b3;const _0x3959bf=global[_0x2c7f64(0xf1)];let _0x26e810=![];if(_0x3959bf&&_0x3959bf[_0x2c7f64(0xc3)](_0x21faa2[_0x2c7f64(0xe3)]))_0x26e810=!![],_0xdbb8b3=_0x3959bf;else try{const _0x59bc03=_0x21faa2[_0x2c7f64(0xe9)](require,_0x21faa2[_0x2c7f64(0xa4)]),_0x403965=_0x21faa2['lHOzk'](require,_0x21faa2[_0x2c7f64(0x8e)]);if(_0x403965[_0x2c7f64(0xf3)]()[_0x2c7f64(0x84)]()){const _0x381ee8=_0x59bc03[_0x2c7f64(0x8c)]();if(_0x21faa2[_0x2c7f64(0xb4)](_0x381ee8?.[_0x2c7f64(0xf2)]?.[_0x2c7f64(0xa5)](),_0x21faa2['GbcSX'])){const _0x38872b=AutomationFramework[_0x2c7f64(0xce)]();_0xdbb8b3=AutomationFramework['getState'](_0x38872b,PlaywrightDriverModule['KEY_TEST_ID'],''),_0xdbb8b3&&_0xdbb8b3['includes'](_0x21faa2[_0x2c7f64(0xe3)])&&(_0x26e810=!![]);}}}catch(_0x10c623){logger[_0x2c7f64(0xbe)](_0x2c7f64(0xd7)+_0x10c623);}if(_0x26e810){if(!_0xdbb8b3)throw new Error(_0x21faa2[_0x2c7f64(0x93)]);const _0x14f8f3=_0x21faa2['gentg'](require,_0x21faa2[_0x2c7f64(0x8e)]),_0x176113=_0x14f8f3[_0x2c7f64(0xf3)]()[_0x2c7f64(0xb6)]();if(!_0x176113)throw new Error(_0x21faa2[_0x2c7f64(0xcb)]);const _0x497aa3=_0x21faa2[_0x2c7f64(0xad)](require,_0x21faa2[_0x2c7f64(0x98)]),_0x31b402=_0x21faa2[_0x2c7f64(0xe4)](require,_0x21faa2[_0x2c7f64(0x102)]),_0x40d063=_0x176113[_0x2c7f64(0xc9)](_0x497aa3[_0x2c7f64(0xfc)],_0x31b402[_0x2c7f64(0xd0)]);if(!_0x40d063)throw new Error(_0x21faa2['VJeIG']);const _0x57e99b=_0x40d063[_0x2c7f64(0xf8)]()['get'](_0xdbb8b3)||{},_0x27de64=_0x57e99b[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x2c7f64(0xbe)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0xdbb8b3+_0x2c7f64(0xb9)+_0x473e90+_0x2c7f64(0xea)+JSON[_0x2c7f64(0x9b)](_0xc52c80)+_0x2c7f64(0x8f)+JSON[_0x2c7f64(0x9b)](_0x27de64)),CustomTagManager[_0x2c7f64(0xc8)](_0x27de64,_0x473e90,_0xc52c80),logger[_0x2c7f64(0xbe)](_0x2c7f64(0x10e)+_0x473e90+_0x2c7f64(0x9c)+JSON['stringify'](_0x27de64[_0x473e90][_0x2c7f64(0xbc)]));const _0x50996b={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x27de64},_0x2056d2={};_0x2056d2[_0xdbb8b3]=_0x50996b,_0x40d063['addMultipleEntries'](_0x2056d2),logger[_0x2c7f64(0xbe)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0xdbb8b3+',\x20finalTags='+JSON[_0x2c7f64(0x9b)](_0x27de64)),!this[_0x2c7f64(0xed)][_0xdbb8b3]&&(this[_0x2c7f64(0xed)][_0xdbb8b3]={}),this[_0x2c7f64(0xed)][_0xdbb8b3][_0x473e90]=CustomTagManager[_0x2c7f64(0x9d)](this[_0x2c7f64(0xed)][_0xdbb8b3][_0x473e90],_0xc52c80);}else{const _0x2e88e6=global[_0x2c7f64(0xec)]?.[_0x2c7f64(0xab)]?.[_0x2c7f64(0xc6)];if(!_0x2e88e6){const _0x713c14=AutomationFramework['getTrackedInstance']();_0xdbb8b3=AutomationFramework[_0x2c7f64(0xde)](_0x713c14,PlaywrightDriverModule[_0x2c7f64(0x10c)],'');}else _0xdbb8b3=TestInfo['getTestIdentifierFromTestInfo'](_0x2e88e6,_0x2e88e6[_0x2c7f64(0xd9)]);const _0x372848=TestInfo['getTestDetails'](_0xdbb8b3),_0x1259a9=_0x372848[TestFrameworkConstants[_0x2c7f64(0xe2)]]||{};CustomTagManager['mergeIntoTags'](_0x1259a9,_0x473e90,_0xc52c80),_0x372848[TestFrameworkConstants[_0x2c7f64(0xe2)]]=_0x1259a9,TestInfo[_0x2c7f64(0x86)](_0xdbb8b3,_0x372848),!this[_0x2c7f64(0xed)][_0xdbb8b3]&&(this[_0x2c7f64(0xed)][_0xdbb8b3]={}),this[_0x2c7f64(0xed)][_0xdbb8b3][_0x473e90]=CustomTagManager[_0x2c7f64(0x9d)](this['testLevelTags'][_0xdbb8b3][_0x473e90],_0xc52c80);}}}static[a86_0x204a57(0x9f)](){const _0x22211f=a86_0x204a57,_0xed5129={...this[_0x22211f(0xfa)]};return _0xed5129;}static[a86_0x204a57(0x95)](){const _0x3857fa={...this['testLevelTags']};return _0x3857fa;}static[a86_0x204a57(0x87)](){const _0x355fd6=a86_0x204a57;this[_0x355fd6(0xfa)]={},this['testLevelTags']={};}static[a86_0x204a57(0x91)](_0x25d041,_0x5835e7){const _0x41eb53=a86_0x204a57,_0x37ada2={};_0x37ada2[_0x41eb53(0x90)]=function(_0x296ee5,_0xc724e7){return _0x296ee5||_0xc724e7;};const _0xcbc622=_0x37ada2;if(!_0x25d041)return;!this[_0x41eb53(0xfa)][_0x25d041]&&(this[_0x41eb53(0xfa)][_0x25d041]={});for(const [_0x598b39,_0x39e60f]of Object[_0x41eb53(0xd6)](_0xcbc622['PkwDO'](_0x5835e7,{}))){if(!_0x39e60f||!Array[_0x41eb53(0x82)](_0x39e60f[_0x41eb53(0xbc)]))continue;this[_0x41eb53(0xfa)][_0x25d041][_0x598b39]=CustomTagManager[_0x41eb53(0x9d)](this['buildLevelTags'][_0x25d041][_0x598b39],_0x39e60f['values']);}}static[a86_0x204a57(0x109)](_0x3fb548,_0x3e6193){const _0x1adc0e=a86_0x204a57,_0x2898d1={};_0x2898d1[_0x1adc0e(0xf5)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x2898d1['lbQkT']=function(_0x1ce0f3,_0x525f4e){return _0x1ce0f3*_0x525f4e;},_0x2898d1[_0x1adc0e(0xe5)]=function(_0x2638ea,_0x5a2671){return _0x2638ea>_0x5a2671;},_0x2898d1['ahlnh']=function(_0x4af1f7,_0x506bd8){return _0x4af1f7-_0x506bd8;},_0x2898d1['TDNam']=_0x1adc0e(0xac);const _0x2df259=_0x2898d1;if(!_0x3fb548)return logger['debug'](_0x2df259['RpKDr']),0x0;let _0x5bf296;try{_0x5bf296=os[_0x1adc0e(0x10d)]();}catch(_0x115ed1){return logger[_0x1adc0e(0xbe)](_0x1adc0e(0xe8)+_0x115ed1),0x0;}let _0x3457bf;try{_0x3457bf=fs[_0x1adc0e(0xee)](_0x5bf296);}catch(_0x5720cd){return logger[_0x1adc0e(0xbe)](_0x1adc0e(0xcc)+_0x5720cd),0x0;}const _0x30f199=''+BUILD_TAG_FILE_PREFIX+_0x3fb548+'_',_0x1fed3f=_0x3457bf[_0x1adc0e(0xf9)](_0x4c82ef=>_0x4c82ef[_0x1adc0e(0xc0)](_0x30f199)&&_0x4c82ef[_0x1adc0e(0xa0)](_0x1adc0e(0xbf))),_0x2691a5=_0x2df259[_0x1adc0e(0x9a)](_0x2df259[_0x1adc0e(0x9a)](_0x2df259[_0x1adc0e(0x9a)](0x2,0x3c),0x3c),0x3e8);let _0x47d5da=0x0;for(const _0x21d9f4 of _0x1fed3f){const _0x414784=path[_0x1adc0e(0xc2)](_0x5bf296,_0x21d9f4);try{const _0x346536=fs[_0x1adc0e(0x89)](_0x414784);if(_0x2df259[_0x1adc0e(0xe5)](_0x2df259[_0x1adc0e(0x99)](Date[_0x1adc0e(0xd2)](),_0x346536['mtimeMs']),_0x2691a5)){logger[_0x1adc0e(0xbe)](_0x1adc0e(0xfe)+_0x2691a5+_0x1adc0e(0xbd)+_0x21d9f4);try{fs[_0x1adc0e(0xfd)](_0x414784);}catch(_0x1badab){logger[_0x1adc0e(0xbe)](_0x1adc0e(0xdc)+_0x21d9f4+':\x20'+(_0x1badab&&_0x1badab['message']?_0x1badab[_0x1adc0e(0xa2)]:_0x1badab));}continue;}const _0x60d5d=fs['readFileSync'](_0x414784,_0x2df259['TDNam']),_0xea36d1=JSON[_0x1adc0e(0xcd)](_0x60d5d);this['mergeBuildLevelTags'](_0x3e6193,_0xea36d1),_0x47d5da+=0x1;}catch(_0xe8033){logger[_0x1adc0e(0xbe)](_0x1adc0e(0x8d)+_0x21d9f4+':\x20'+(_0xe8033&&_0xe8033[_0x1adc0e(0xa2)]?_0xe8033[_0x1adc0e(0xa2)]:_0xe8033));}try{fs['unlinkSync'](_0x414784);}catch(_0x5f4f24){logger[_0x1adc0e(0xbe)](_0x1adc0e(0xa6)+_0x21d9f4+':\x20'+(_0x5f4f24&&_0x5f4f24['message']?_0x5f4f24[_0x1adc0e(0xa2)]:_0x5f4f24));}}return _0x47d5da;}}const a86_0x2c9fc0={};a86_0x2c9fc0[a86_0x204a57(0xf0)]=getBuildTagsRunId,a86_0x2c9fc0['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x2c9fc0[a86_0x204a57(0xdb)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x204a57(0xd1)]=a86_0x2c9fc0,module['exports']=CustomTagManager;
1
+ 'use strict';const a86_0x23bf41=a86_0x2ec5;(function(_0x1d9147,_0x224c8b){const _0x3f0e4b=a86_0x2ec5,_0x2d3977=_0x1d9147();while(!![]){try{const _0x4d2440=-parseInt(_0x3f0e4b(0x169))/0x1*(parseInt(_0x3f0e4b(0x155))/0x2)+parseInt(_0x3f0e4b(0x156))/0x3+parseInt(_0x3f0e4b(0x16b))/0x4*(parseInt(_0x3f0e4b(0x161))/0x5)+-parseInt(_0x3f0e4b(0x1c1))/0x6+-parseInt(_0x3f0e4b(0x1a4))/0x7*(-parseInt(_0x3f0e4b(0x165))/0x8)+-parseInt(_0x3f0e4b(0x149))/0x9+parseInt(_0x3f0e4b(0x194))/0xa;if(_0x4d2440===_0x224c8b)break;else _0x2d3977['push'](_0x2d3977['shift']());}catch(_0x324c72){_0x2d3977['push'](_0x2d3977['shift']());}}}(a86_0x8097,0xd4929));const fs=require('fs'),os=require('os'),path=require(a86_0x23bf41(0x166)),helper=require(a86_0x23bf41(0x163)),AutomationFramework=require(a86_0x23bf41(0x181)),TestFrameworkConstants=require(a86_0x23bf41(0x145)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x23bf41(0x183)),{createClassLogger}=require(a86_0x23bf41(0x199)),logger=createClassLogger(a86_0x23bf41(0x1be)),BUILD_TAG_FILE_PREFIX=a86_0x23bf41(0x186);function getBuildTagsRunId(){const _0x21ecb8=a86_0x23bf41,_0x437771={};_0x437771[_0x21ecb8(0x180)]=function(_0x2b0f99,_0x2c60f9){return _0x2b0f99===_0x2c60f9;},_0x437771[_0x21ecb8(0x1a1)]=_0x21ecb8(0x1c6);const _0x3b84e8=_0x437771,_0x4c5405=process[_0x21ecb8(0x1c2)][_0x21ecb8(0x164)];if(!_0x4c5405||_0x3b84e8['dLeVC'](_0x4c5405,_0x3b84e8[_0x21ecb8(0x1a1)]))return null;return _0x4c5405;}function a86_0x2ec5(_0x2f7a6b,_0x495599){const _0x809734=a86_0x8097();return a86_0x2ec5=function(_0x2ec52d,_0x361224){_0x2ec52d=_0x2ec52d-0x145;let _0x5c05ec=_0x809734[_0x2ec52d];return _0x5c05ec;},a86_0x2ec5(_0x2f7a6b,_0x495599);}function getBuildTagsFilePath(_0x145faa){const _0x5a5e71=a86_0x23bf41;return path['join'](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x145faa+'_'+process[_0x5a5e71(0x158)]+'.json');}function a86_0x8097(){const _0x3a2e43=['setTestDetails','testLevelTags','testhubConfig','KKFfS','entries','getTestIdentifierFromTestInfo','gvshs','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','get','mergeIntoTags','dLeVC','./framework/automationFramework','AhwAU','./modules/testhubModule','readFileSync','ztURm','bstack_build_tags_','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','wtMFW','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','twTIK','addMultipleEntries','getBuildLevelTags','values','getTestUUID','currentTest','\x20->\x20values=','oVjsl','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','length','16607950BPsRvw','GpXeq','wiGAh','kBSZk','Qvmzq','../../helpers/classLogger','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20',':jest-','unlinkSync','idcvu','getTrackedInstance','KEY_CUSTOM_TAGS','getInstance','ovoer',',\x20values=','KEY_TEST_ID','1141WlHPeS','message','EajBD','BAMbA','mergeBuildLevelTags','rUKBz','writeFile','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','filter','resolveInstance','__jestCurrentTestIdentifier','KmjaN','sPXVh','setCustomTags','getState','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','parseCommaSeparatedValues','./cliUtils','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','isRunning','CiQiU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getAllData','.json','modules','ZsVlt','CustomTagManager','getBuildTagsRunId','mergeValues','7073232ZhOlvW','env','debug','from','trim','null','startsWith','Fomvd','BUILD_TAG_FILE_PREFIX','promises','buildHashedId','testInfo',',\x20finalTags=','name','aggregateBuildLevelTagsFromTmp','./framework/constants/testFrameworkConstants','vwfQl','EtSLJ','endsWith','11087073ZLeOUF','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pXJgL','rIkwN','getTestFramework','SEtzb','buildLevelTags','keys','TyZMU','Xoeug','38YOCTkg','1598004YQgIdW','tmpdir','pid','pruNZ','Xwppm','parse','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','string','readdirSync','getTestDetails','getTestFrameworkDetail','859205rFnlnq','exports','../../helpers/helper','BROWSERSTACK_TESTHUB_UUID','33640UMeDez','path','utf8','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','42121RsRGbK','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','28BqUlBz','isArray','xhzds','CSYzx','field_type','POST','stringify','MODULE_NAME','includes'];a86_0x8097=function(){return _0x3a2e43;};return a86_0x8097();}class CustomTagManager{static [a86_0x23bf41(0x151)]={};static [a86_0x23bf41(0x175)]={};static['mergeValues'](_0x1e245b,_0x1af1c7){const _0x9af68=a86_0x23bf41;return Array[_0x9af68(0x1c4)](new Set([..._0x1e245b||[],..._0x1af1c7||[]]));}static[a86_0x23bf41(0x17f)](_0x1603ab,_0x507430,_0x490462){const _0x51ec4f=a86_0x23bf41,_0x36b6b1={};_0x36b6b1[_0x51ec4f(0x1a7)]='multi_dropdown';const _0x21ce14=_0x36b6b1;if(!_0x1603ab[_0x507430]){const _0x26543f={};_0x26543f[_0x51ec4f(0x16f)]=_0x21ce14[_0x51ec4f(0x1a7)],_0x26543f[_0x51ec4f(0x18d)]=[..._0x490462||[]],_0x1603ab[_0x507430]=_0x26543f;}else!_0x1603ab[_0x507430][_0x51ec4f(0x16f)]&&(_0x1603ab[_0x507430][_0x51ec4f(0x16f)]=_0x21ce14['BAMbA']),!Array[_0x51ec4f(0x16c)](_0x1603ab[_0x507430][_0x51ec4f(0x18d)])&&(_0x1603ab[_0x507430]['values']=[]),_0x1603ab[_0x507430][_0x51ec4f(0x18d)]=CustomTagManager[_0x51ec4f(0x1c0)](_0x1603ab[_0x507430]['values'],_0x490462);return _0x1603ab;}static async[a86_0x23bf41(0x1b1)](_0x925ca8,_0x57f529,_0x5ab5db=![]){const _0x2d8f4c=a86_0x23bf41,_0x201f67={'Fomvd':function(_0x32d3ef,_0x4e84b2){return _0x32d3ef!==_0x4e84b2;},'CSYzx':_0x2d8f4c(0x15d),'iBpcZ':_0x2d8f4c(0x187),'kBSZk':_0x2d8f4c(0x15c),'sPXVh':function(_0x9cc87a,_0x31204b){return _0x9cc87a===_0x31204b;},'pXJgL':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','TyZMU':_0x2d8f4c(0x14c),'twTIK':function(_0x22e7cf,_0x3c1bfd){return _0x22e7cf(_0x3c1bfd);},'idcvu':_0x2d8f4c(0x14a),'Wqvno':function(_0xcf16b4){return _0xcf16b4();},'EajBD':'multi_dropdown','pruNZ':function(_0x2997d6,_0x2f765d){return _0x2997d6>_0x2f765d;},'tgXpw':_0x2d8f4c(0x17d),'KKFfS':_0x2d8f4c(0x19b),'KmjaN':_0x2d8f4c(0x1b5),'wiGAh':function(_0x3f7cb4,_0x2be6b4){return _0x3f7cb4(_0x2be6b4);},'rIkwN':function(_0x1912c3,_0x147769){return _0x1912c3===_0x147769;},'ZsVlt':'jest','oVjsl':_0x2d8f4c(0x1ab),'Qvmzq':_0x2d8f4c(0x17b),'AhwAU':function(_0x4997a9,_0x280160){return _0x4997a9(_0x280160);},'Xwppm':'./state/testFrameworkState','SEtzb':function(_0x25eba7,_0x4deee8){return _0x25eba7(_0x4deee8);},'rUKBz':'./state/hookState','CiQiU':_0x2d8f4c(0x1b3)};if(_0x201f67[_0x2d8f4c(0x1c8)](typeof _0x925ca8,_0x201f67[_0x2d8f4c(0x16e)])){logger[_0x2d8f4c(0x1c3)](_0x201f67['iBpcZ']);return;}if(_0x201f67[_0x2d8f4c(0x1c8)](typeof _0x57f529,_0x201f67[_0x2d8f4c(0x16e)])){logger['debug'](_0x201f67[_0x2d8f4c(0x197)]);return;}if(_0x201f67[_0x2d8f4c(0x1b0)](_0x925ca8[_0x2d8f4c(0x1c5)](),'')){logger[_0x2d8f4c(0x1c3)](_0x201f67[_0x2d8f4c(0x14d)]);return;}if(_0x201f67['sPXVh'](_0x57f529[_0x2d8f4c(0x1c5)](),'')){logger[_0x2d8f4c(0x1c3)](_0x201f67[_0x2d8f4c(0x153)]);return;}const _0x4ec126=helper[_0x2d8f4c(0x1b4)](_0x57f529);if(_0x5ab5db){const _0x41a418=_0x201f67[_0x2d8f4c(0x18a)](require,_0x201f67[_0x2d8f4c(0x19d)]),_0x12029b=_0x41a418[_0x2d8f4c(0x1a0)](),_0x4f110b=_0x12029b&&_0x12029b[_0x2d8f4c(0x1bc)][TestHubModule[_0x2d8f4c(0x172)]];if(_0x4f110b){const _0x5817b9=_0x4f110b?.[_0x2d8f4c(0x176)]?.['toObject']()?.[_0x2d8f4c(0x1cb)];TestInfo[_0x2d8f4c(0x18e)](_0x5817b9);const _0x4ba6a9=TestInfo[_0x2d8f4c(0x15f)](_0x5817b9),_0x195a6f=_0x4ba6a9[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x2d8f4c(0x17f)](_0x195a6f,_0x925ca8,_0x4ec126),_0x4ba6a9[TestFrameworkConstants[_0x2d8f4c(0x19f)]]=_0x195a6f,TestInfo[_0x2d8f4c(0x174)](_0x5817b9,_0x4ba6a9);!this[_0x2d8f4c(0x151)][_0x5817b9]&&(this['buildLevelTags'][_0x5817b9]={});this['buildLevelTags'][_0x5817b9][_0x925ca8]=CustomTagManager[_0x2d8f4c(0x1c0)](this[_0x2d8f4c(0x151)][_0x5817b9][_0x925ca8],_0x4ec126);try{const _0x33d08b=_0x201f67['Wqvno'](getBuildTagsRunId);if(_0x33d08b){const _0xfe2bba={};for(const [_0x211fb8,_0x48f358]of Object[_0x2d8f4c(0x178)](this[_0x2d8f4c(0x151)][_0x5817b9]||{})){_0xfe2bba[_0x211fb8]={'field_type':_0x201f67[_0x2d8f4c(0x1a6)],'values':Array['isArray'](_0x48f358)?[..._0x48f358]:[]};}_0x201f67[_0x2d8f4c(0x159)](Object[_0x2d8f4c(0x152)](_0xfe2bba)[_0x2d8f4c(0x193)],0x0)&&await fs[_0x2d8f4c(0x1ca)][_0x2d8f4c(0x1aa)](_0x201f67[_0x2d8f4c(0x18a)](getBuildTagsFilePath,_0x33d08b),JSON[_0x2d8f4c(0x171)](_0xfe2bba));}else logger[_0x2d8f4c(0x1c3)](_0x201f67['tgXpw']);}catch(_0x58c007){logger[_0x2d8f4c(0x1c3)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x58c007&&_0x58c007['message']?_0x58c007[_0x2d8f4c(0x1a5)]:_0x58c007));}}}else{let _0x14d83f;const _0x4965fc=global[_0x2d8f4c(0x1ae)];let _0x2c671b=![];if(_0x4965fc&&_0x4965fc[_0x2d8f4c(0x173)](_0x201f67[_0x2d8f4c(0x177)]))_0x2c671b=!![],_0x14d83f=_0x4965fc;else try{const _0x452ea4=_0x201f67['twTIK'](require,_0x201f67[_0x2d8f4c(0x1af)]),_0x53e6c7=_0x201f67[_0x2d8f4c(0x196)](require,_0x201f67[_0x2d8f4c(0x19d)]);if(_0x53e6c7[_0x2d8f4c(0x1a0)]()[_0x2d8f4c(0x1b7)]()){const _0x3d057f=_0x452ea4[_0x2d8f4c(0x160)]();if(_0x201f67[_0x2d8f4c(0x14e)](_0x3d057f?.[_0x2d8f4c(0x1ce)]?.['toLowerCase'](),_0x201f67[_0x2d8f4c(0x1bd)])){const _0x2e25bb=AutomationFramework[_0x2d8f4c(0x19e)]();_0x14d83f=AutomationFramework[_0x2d8f4c(0x1b2)](_0x2e25bb,PlaywrightDriverModule[_0x2d8f4c(0x1a3)],''),_0x14d83f&&_0x14d83f[_0x2d8f4c(0x173)](_0x201f67[_0x2d8f4c(0x177)])&&(_0x2c671b=!![]);}}}catch(_0x7086ea){logger[_0x2d8f4c(0x1c3)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x7086ea);}if(_0x2c671b){if(!_0x14d83f)throw new Error(_0x201f67[_0x2d8f4c(0x191)]);const _0x12feeb=_0x201f67[_0x2d8f4c(0x18a)](require,_0x201f67[_0x2d8f4c(0x19d)]),_0x36b0e3=_0x12feeb['getInstance']()[_0x2d8f4c(0x14f)]();if(!_0x36b0e3)throw new Error(_0x201f67[_0x2d8f4c(0x198)]);const _0x2d4cd1=_0x201f67[_0x2d8f4c(0x182)](require,_0x201f67[_0x2d8f4c(0x15a)]),_0x1c4b36=_0x201f67[_0x2d8f4c(0x150)](require,_0x201f67[_0x2d8f4c(0x1a9)]),_0x1becf8=_0x36b0e3[_0x2d8f4c(0x1ad)](_0x2d4cd1['TEST'],_0x1c4b36[_0x2d8f4c(0x170)]);if(!_0x1becf8)throw new Error(_0x201f67[_0x2d8f4c(0x1b8)]);const _0x139f97=_0x1becf8[_0x2d8f4c(0x1ba)]()[_0x2d8f4c(0x17e)](_0x14d83f)||{},_0x4fdd0b=_0x139f97[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x2d8f4c(0x1b6)+_0x14d83f+',\x20key='+_0x925ca8+_0x2d8f4c(0x1a2)+JSON[_0x2d8f4c(0x171)](_0x4ec126)+',\x20existingTags='+JSON[_0x2d8f4c(0x171)](_0x4fdd0b)),CustomTagManager[_0x2d8f4c(0x17f)](_0x4fdd0b,_0x925ca8,_0x4ec126),logger['debug'](_0x2d8f4c(0x17c)+_0x925ca8+_0x2d8f4c(0x190)+JSON[_0x2d8f4c(0x171)](_0x4fdd0b[_0x925ca8][_0x2d8f4c(0x18d)]));const _0x53287b={[TestFrameworkConstants[_0x2d8f4c(0x19f)]]:_0x4fdd0b},_0x1bb748={};_0x1bb748[_0x14d83f]=_0x53287b,_0x1becf8[_0x2d8f4c(0x18b)](_0x1bb748),logger['debug'](_0x2d8f4c(0x168)+_0x14d83f+_0x2d8f4c(0x1cd)+JSON['stringify'](_0x4fdd0b)),!this['testLevelTags'][_0x14d83f]&&(this[_0x2d8f4c(0x175)][_0x14d83f]={}),this['testLevelTags'][_0x14d83f][_0x925ca8]=CustomTagManager['mergeValues'](this[_0x2d8f4c(0x175)][_0x14d83f][_0x925ca8],_0x4ec126);}else{const _0x2abaf6=global['__workerDetails']?.[_0x2d8f4c(0x18f)]?.[_0x2d8f4c(0x1cc)];if(!_0x2abaf6){const _0x407484=AutomationFramework['getTrackedInstance']();_0x14d83f=AutomationFramework['getState'](_0x407484,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x14d83f=TestInfo[_0x2d8f4c(0x179)](_0x2abaf6,_0x2abaf6['retry']);const _0x45b801=TestInfo['getTestDetails'](_0x14d83f),_0x63a46e=_0x45b801[TestFrameworkConstants[_0x2d8f4c(0x19f)]]||{};CustomTagManager[_0x2d8f4c(0x17f)](_0x63a46e,_0x925ca8,_0x4ec126),_0x45b801[TestFrameworkConstants[_0x2d8f4c(0x19f)]]=_0x63a46e,TestInfo['setTestDetails'](_0x14d83f,_0x45b801),!this[_0x2d8f4c(0x175)][_0x14d83f]&&(this[_0x2d8f4c(0x175)][_0x14d83f]={}),this[_0x2d8f4c(0x175)][_0x14d83f][_0x925ca8]=CustomTagManager[_0x2d8f4c(0x1c0)](this[_0x2d8f4c(0x175)][_0x14d83f][_0x925ca8],_0x4ec126);}}}static[a86_0x23bf41(0x18c)](){const _0xcb9087={...this['buildLevelTags']};return _0xcb9087;}static['getTestLevelTags'](){const _0x120a36=a86_0x23bf41,_0x12374d={...this[_0x120a36(0x175)]};return _0x12374d;}static['clearTags'](){const _0x26aa9c=a86_0x23bf41;this[_0x26aa9c(0x151)]={},this[_0x26aa9c(0x175)]={};}static['mergeBuildLevelTags'](_0x4cfabe,_0x3ba397){const _0x4622e6=a86_0x23bf41,_0x34f3ac={};_0x34f3ac['gvshs']=function(_0x8fa37d,_0xbaedad){return _0x8fa37d||_0xbaedad;};const _0x5d97bd=_0x34f3ac;if(!_0x4cfabe)return;!this[_0x4622e6(0x151)][_0x4cfabe]&&(this['buildLevelTags'][_0x4cfabe]={});for(const [_0x44d0ab,_0x21cc67]of Object[_0x4622e6(0x178)](_0x5d97bd[_0x4622e6(0x17a)](_0x3ba397,{}))){if(!_0x21cc67||!Array[_0x4622e6(0x16c)](_0x21cc67[_0x4622e6(0x18d)]))continue;this['buildLevelTags'][_0x4cfabe][_0x44d0ab]=CustomTagManager[_0x4622e6(0x1c0)](this[_0x4622e6(0x151)][_0x4cfabe][_0x44d0ab],_0x21cc67['values']);}}static[a86_0x23bf41(0x1cf)](_0x5ba9c5,_0x30cf4a){const _0x4811bf=a86_0x23bf41,_0x3f124b={};_0x3f124b['wtMFW']=_0x4811bf(0x189),_0x3f124b['xhzds']=function(_0x3acf89,_0x5ea18a){return _0x3acf89*_0x5ea18a;},_0x3f124b[_0x4811bf(0x147)]=function(_0x5ae6dc,_0x42593b){return _0x5ae6dc*_0x42593b;},_0x3f124b[_0x4811bf(0x154)]=function(_0x52b942,_0xad91f7){return _0x52b942*_0xad91f7;},_0x3f124b[_0x4811bf(0x195)]=function(_0x24d09f,_0x565529){return _0x24d09f>_0x565529;},_0x3f124b[_0x4811bf(0x146)]=function(_0x363d70,_0x4a2493){return _0x363d70-_0x4a2493;},_0x3f124b[_0x4811bf(0x185)]=_0x4811bf(0x167);const _0x4de51f=_0x3f124b;if(!_0x5ba9c5)return logger[_0x4811bf(0x1c3)](_0x4de51f[_0x4811bf(0x188)]),0x0;let _0x50be35;try{_0x50be35=os[_0x4811bf(0x157)]();}catch(_0x332023){return logger[_0x4811bf(0x1c3)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x332023),0x0;}let _0x215659;try{_0x215659=fs[_0x4811bf(0x15e)](_0x50be35);}catch(_0x31b9db){return logger[_0x4811bf(0x1c3)](_0x4811bf(0x14b)+_0x31b9db),0x0;}const _0x839249=''+BUILD_TAG_FILE_PREFIX+_0x5ba9c5+'_',_0x2464b8=_0x215659[_0x4811bf(0x1ac)](_0xe14659=>_0xe14659[_0x4811bf(0x1c7)](_0x839249)&&_0xe14659[_0x4811bf(0x148)](_0x4811bf(0x1bb))),_0x22db8e=_0x4de51f[_0x4811bf(0x16d)](_0x4de51f[_0x4811bf(0x147)](_0x4de51f[_0x4811bf(0x154)](0x2,0x3c),0x3c),0x3e8);let _0x155a01=0x0;for(const _0x5db09a of _0x2464b8){const _0x188cb0=path['join'](_0x50be35,_0x5db09a);try{const _0x145fad=fs['statSync'](_0x188cb0);if(_0x4de51f[_0x4811bf(0x195)](_0x4de51f[_0x4811bf(0x146)](Date['now'](),_0x145fad['mtimeMs']),_0x22db8e)){logger[_0x4811bf(0x1c3)](_0x4811bf(0x16a)+_0x22db8e+'ms)\x20'+_0x5db09a);try{fs[_0x4811bf(0x19c)](_0x188cb0);}catch(_0x407fa3){logger['debug'](_0x4811bf(0x19a)+_0x5db09a+':\x20'+(_0x407fa3&&_0x407fa3['message']?_0x407fa3[_0x4811bf(0x1a5)]:_0x407fa3));}continue;}const _0x314a3f=fs[_0x4811bf(0x184)](_0x188cb0,_0x4de51f[_0x4811bf(0x185)]),_0x207926=JSON[_0x4811bf(0x15b)](_0x314a3f);this[_0x4811bf(0x1a8)](_0x30cf4a,_0x207926),_0x155a01+=0x1;}catch(_0xfc919c){logger[_0x4811bf(0x1c3)](_0x4811bf(0x1b9)+_0x5db09a+':\x20'+(_0xfc919c&&_0xfc919c[_0x4811bf(0x1a5)]?_0xfc919c[_0x4811bf(0x1a5)]:_0xfc919c));}try{fs['unlinkSync'](_0x188cb0);}catch(_0x15caa1){logger[_0x4811bf(0x1c3)](_0x4811bf(0x192)+_0x5db09a+':\x20'+(_0x15caa1&&_0x15caa1[_0x4811bf(0x1a5)]?_0x15caa1['message']:_0x15caa1));}}return _0x155a01;}}const a86_0x3c6a24={};a86_0x3c6a24[a86_0x23bf41(0x1bf)]=getBuildTagsRunId,a86_0x3c6a24['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x3c6a24[a86_0x23bf41(0x1c9)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x3c6a24,module[a86_0x23bf41(0x162)]=CustomTagManager;
@@ -1 +1 @@
1
- const a87_0x44b642=a87_0x1a2a;(function(_0xfd9ab0,_0x2f1eb2){const _0x283f47=a87_0x1a2a,_0x3c8b00=_0xfd9ab0();while(!![]){try{const _0x14ef91=-parseInt(_0x283f47(0xff))/0x1+-parseInt(_0x283f47(0x101))/0x2*(-parseInt(_0x283f47(0xf9))/0x3)+parseInt(_0x283f47(0xf8))/0x4*(-parseInt(_0x283f47(0x107))/0x5)+parseInt(_0x283f47(0xfa))/0x6*(-parseInt(_0x283f47(0xfb))/0x7)+-parseInt(_0x283f47(0x105))/0x8+-parseInt(_0x283f47(0xfc))/0x9+parseInt(_0x283f47(0xfe))/0xa;if(_0x14ef91===_0x2f1eb2)break;else _0x3c8b00['push'](_0x3c8b00['shift']());}catch(_0x2045f9){_0x3c8b00['push'](_0x3c8b00['shift']());}}}(a87_0x2a00,0xa2add));function a87_0x1a2a(_0x5cd1bf,_0x100b19){const _0x2a0043=a87_0x2a00();return a87_0x1a2a=function(_0x1a2a1e,_0x2f8fe2){_0x1a2a1e=_0x1a2a1e-0xf7;let _0x51cc61=_0x2a0043[_0x1a2a1e];return _0x51cc61;},a87_0x1a2a(_0x5cd1bf,_0x100b19);}const {createClassLogger}=require(a87_0x44b642(0x104));function a87_0x2a00(){const _0x4c6a81=['3226038dOshRN','48lFwBuk','263088cffvGh','9918648wcrLFg','observers','34579580nLaoTR','936063netURY','notifyObserver','2JOHXLF','exports','registerObserver','../../helpers/classLogger.js','8042664lIkGbJ','TCROP','14285tbUNer','freeze','732pNGAnG'];a87_0x2a00=function(){return _0x4c6a81;};return a87_0x2a00();}class EventDispatcher{static #instance=null;constructor(){const _0x5968a0=a87_0x44b642;this[_0x5968a0(0xfd)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x44b642(0x103)](_0x11ccae,_0x5f0db1){const _0x45c01f=a87_0x44b642;!this[_0x45c01f(0xfd)][_0x11ccae]&&(this[_0x45c01f(0xfd)][_0x11ccae]=[]),this[_0x45c01f(0xfd)][_0x11ccae]['push'](_0x5f0db1);}async[a87_0x44b642(0x100)](_0x56a1c0,_0x49ad5c){const _0x493e02=a87_0x44b642,_0x24f8e3={'TCROP':function(_0x4d166e,_0x48a30f){return _0x4d166e(_0x48a30f);}};if(this[_0x493e02(0xfd)][_0x56a1c0]){for(const _0x2ee5c5 of this['observers'][_0x56a1c0]){await _0x24f8e3[_0x493e02(0x106)](_0x2ee5c5,_0x49ad5c);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a87_0x44b642(0xf7)](eventDispatcher),module[a87_0x44b642(0x102)]=eventDispatcher;
1
+ const a87_0x50e791=a87_0x13f0;(function(_0x634f4f,_0x3a8c12){const _0x2ec362=a87_0x13f0,_0x2259e8=_0x634f4f();while(!![]){try{const _0x54e6d0=-parseInt(_0x2ec362(0xdd))/0x1*(-parseInt(_0x2ec362(0xdb))/0x2)+-parseInt(_0x2ec362(0xde))/0x3*(parseInt(_0x2ec362(0xd5))/0x4)+-parseInt(_0x2ec362(0xdc))/0x5*(-parseInt(_0x2ec362(0xce))/0x6)+parseInt(_0x2ec362(0xd6))/0x7*(parseInt(_0x2ec362(0xd1))/0x8)+parseInt(_0x2ec362(0xda))/0x9*(parseInt(_0x2ec362(0xd9))/0xa)+parseInt(_0x2ec362(0xcf))/0xb+-parseInt(_0x2ec362(0xd8))/0xc;if(_0x54e6d0===_0x3a8c12)break;else _0x2259e8['push'](_0x2259e8['shift']());}catch(_0x39a02c){_0x2259e8['push'](_0x2259e8['shift']());}}}(a87_0x5d21,0x6c0fc));const {createClassLogger}=require('../../helpers/classLogger.js');function a87_0x13f0(_0x10129f,_0x33e1f7){const _0x5d214b=a87_0x5d21();return a87_0x13f0=function(_0x13f0dd,_0x2ec212){_0x13f0dd=_0x13f0dd-0xce;let _0x141cd1=_0x5d214b[_0x13f0dd];return _0x141cd1;},a87_0x13f0(_0x10129f,_0x33e1f7);}class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x50e791(0xd2)](_0x251325,_0x47d70e){const _0x46ed96=a87_0x50e791;!this['observers'][_0x251325]&&(this[_0x46ed96(0xd3)][_0x251325]=[]),this[_0x46ed96(0xd3)][_0x251325]['push'](_0x47d70e);}async[a87_0x50e791(0xd7)](_0xacad37,_0x487baa){const _0x33b802=a87_0x50e791,_0x5ffe6c={'oFnsF':function(_0x2f2f5a,_0x111c8f){return _0x2f2f5a(_0x111c8f);}};if(this[_0x33b802(0xd3)][_0xacad37]){for(const _0x3d2dc5 of this[_0x33b802(0xd3)][_0xacad37]){await _0x5ffe6c[_0x33b802(0xdf)](_0x3d2dc5,_0x487baa);}return;}}}const eventDispatcher=EventDispatcher[a87_0x50e791(0xd0)]();Object[a87_0x50e791(0xe0)](eventDispatcher),module[a87_0x50e791(0xd4)]=eventDispatcher;function a87_0x5d21(){const _0x34913d=['4600354eAmYmq','getInstance','168buBsxZ','registerObserver','observers','exports','2737496cKqmCS','9037oMDaXe','notifyObserver','1822968YMtRvW','18490Yprvmy','2583yBoacl','4006zUscwc','5AlmsPV','75KJWqsT','3LTTNLb','oFnsF','freeze','916170lskpPP'];a87_0x5d21=function(){return _0x34913d;};return a87_0x5d21();}
@@ -1 +1 @@
1
- function a88_0x1f46(){const _0x1bd67f=['instances','7474908uQNWFI','getCurrentInstanceName','setState','exports','notifyObserver','getHookRegistryKey','non_browserstack_automation_sessions','155142CAoaUe','../eventDispatcher.js','\x20hookState=','getAutomationFrameworkName','set','KEY_AUTOMATION_SESSIONS','getId','util','../instances/trackedInstance.js','setTrackedInstance','automationFrameworkName','registerObserver','13pQDQUc','createContext','../../../helpers/classLogger.js','debug','get','6381408JZkfkH','60222069EIBACy','2304264AZomCH','automation_sessions','7GyPugE','trackEvent','getState','../cliUtils.js','8740795EeKUwU','5097786buAjqK','automationFrameworkVersion','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','trackEvent:\x20automationFrameworkState=','getTrackedInstance','getAllData'];a88_0x1f46=function(){return _0x1bd67f;};return a88_0x1f46();}const a88_0x2bc5c5=a88_0x39ae;(function(_0x5f54c0,_0xf1609d){const _0xb76f9d=a88_0x39ae,_0x129e12=_0x5f54c0();while(!![]){try{const _0x1de850=-parseInt(_0xb76f9d(0x190))/0x1*(-parseInt(_0xb76f9d(0x1ac))/0x2)+parseInt(_0xb76f9d(0x19e))/0x3+parseInt(_0xb76f9d(0x1a5))/0x4+parseInt(_0xb76f9d(0x19d))/0x5+parseInt(_0xb76f9d(0x195))/0x6+-parseInt(_0xb76f9d(0x199))/0x7*(-parseInt(_0xb76f9d(0x197))/0x8)+-parseInt(_0xb76f9d(0x196))/0x9;if(_0x1de850===_0xf1609d)break;else _0x129e12['push'](_0x129e12['shift']());}catch(_0x19db77){_0x129e12['push'](_0x129e12['shift']());}}}(a88_0x1f46,0xf06ff));const {createClassLogger}=require(a88_0x2bc5c5(0x192)),util=require(a88_0x2bc5c5(0x1b3)),eventDispatcher=require(a88_0x2bc5c5(0x1ad)),CLIUtils=require(a88_0x2bc5c5(0x19c)),TrackedInstance=require(a88_0x2bc5c5(0x1b4)),logger=createClassLogger('AutomationFramework');function a88_0x39ae(_0x10cc26,_0x5d3c7b){const _0x1f46ce=a88_0x1f46();return a88_0x39ae=function(_0x39aed4,_0x59809e){_0x39aed4=_0x39aed4-0x190;let _0x26b8e4=_0x1f46ce[_0x39aed4];return _0x26b8e4;},a88_0x39ae(_0x10cc26,_0x5d3c7b);}class AutomationFramework{static [a88_0x2bc5c5(0x1a4)]=new Map();static [a88_0x2bc5c5(0x1b1)]=a88_0x2bc5c5(0x198);static [a88_0x2bc5c5(0x1a0)]=a88_0x2bc5c5(0x1ab);constructor(_0x576793,_0x54c27a){const _0x8f37d1=a88_0x2bc5c5;this[_0x8f37d1(0x1b6)]=_0x576793,this['automationFrameworkVersion']=_0x54c27a;}[a88_0x2bc5c5(0x1af)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){const _0x151c39=a88_0x2bc5c5;return this[_0x151c39(0x19f)];}async[a88_0x2bc5c5(0x19a)](_0x4e4914,_0x6115be,_0x3b866b={}){const _0xda84d6=a88_0x2bc5c5;logger[_0xda84d6(0x193)](_0xda84d6(0x1a1)+_0x4e4914+_0xda84d6(0x1ae)+_0x6115be);}async['runHooks'](_0x41685f,_0x587e0d,_0x10e04d,_0x55217d={}){const _0x510428=a88_0x2bc5c5,_0x67b216=CLIUtils[_0x510428(0x1aa)](_0x587e0d,_0x10e04d);_0x41685f&&_0x41685f[_0x510428(0x1a7)](_0x587e0d),await eventDispatcher[_0x510428(0x1a9)](_0x67b216,_0x55217d);}static['registerObserver'](_0x16f446,_0x53b643,_0xecf34e){const _0x551900=a88_0x2bc5c5;eventDispatcher[_0x551900(0x1b7)](CLIUtils['getHookRegistryKey'](_0x16f446,_0x53b643),_0xecf34e);}static[a88_0x2bc5c5(0x1b5)](_0x3863a3,_0x38b8be){const _0x1e7c5e=a88_0x2bc5c5;AutomationFramework['instances'][_0x1e7c5e(0x1b0)](_0x3863a3[_0x1e7c5e(0x1b2)](),_0x38b8be);}static[a88_0x2bc5c5(0x1a2)](){const _0x4bd0a0=a88_0x2bc5c5,_0x29bc4f=TrackedInstance[_0x4bd0a0(0x191)](CLIUtils[_0x4bd0a0(0x1a6)]());return AutomationFramework[_0x4bd0a0(0x1a4)][_0x4bd0a0(0x194)](_0x29bc4f[_0x4bd0a0(0x1b2)]());}static[a88_0x2bc5c5(0x1a7)](_0x537e7c,_0x441440,_0x1fb7c5){const _0x18e118=a88_0x2bc5c5;_0x537e7c[_0x18e118(0x1a3)]()[_0x18e118(0x1b0)](_0x441440,_0x1fb7c5);}static[a88_0x2bc5c5(0x19b)](_0xf0549e,_0x23696a){const _0x559b09=a88_0x2bc5c5;return _0xf0549e['getAllData']()[_0x559b09(0x194)](_0x23696a);}}module[a88_0x2bc5c5(0x1a8)]=AutomationFramework;
1
+ const a88_0x6fa229=a88_0x4a3d;(function(_0x4e2229,_0x2e1401){const _0x1d77e5=a88_0x4a3d,_0x250271=_0x4e2229();while(!![]){try{const _0x523d6f=parseInt(_0x1d77e5(0x1d6))/0x1+parseInt(_0x1d77e5(0x1e1))/0x2+parseInt(_0x1d77e5(0x1e8))/0x3*(parseInt(_0x1d77e5(0x1ee))/0x4)+-parseInt(_0x1d77e5(0x1d1))/0x5*(parseInt(_0x1d77e5(0x1dd))/0x6)+-parseInt(_0x1d77e5(0x1d4))/0x7+-parseInt(_0x1d77e5(0x1f2))/0x8*(-parseInt(_0x1d77e5(0x1e9))/0x9)+-parseInt(_0x1d77e5(0x1ea))/0xa*(parseInt(_0x1d77e5(0x1de))/0xb);if(_0x523d6f===_0x2e1401)break;else _0x250271['push'](_0x250271['shift']());}catch(_0x33669a){_0x250271['push'](_0x250271['shift']());}}}(a88_0x2d6f,0xbac5e));function a88_0x2d6f(){const _0x50a419=['KEY_AUTOMATION_SESSIONS','513571kcGoWs','get','registerObserver','automationFrameworkVersion','../eventDispatcher.js','../instances/trackedInstance.js','getHookRegistryKey','36hXLxtp','20141JEAkjJ','set','createContext','2727966okGvkD','instances','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','util','getAutomationFrameworkVersion','getAutomationFrameworkName','getTrackedInstance','1084074jCfDCx','819BKBSHz','6230wvxCFJ','getId','non_browserstack_automation_sessions','setTrackedInstance','4ifFaDN','runHooks','trackEvent:\x20automationFrameworkState=','getAllData','128808jOttFV','AutomationFramework','../cliUtils.js','../../../helpers/classLogger.js','automationFrameworkName','automation_sessions','1192005kFUfWR','setState','getCurrentInstanceName','2575734ofrIPT'];a88_0x2d6f=function(){return _0x50a419;};return a88_0x2d6f();}const {createClassLogger}=require(a88_0x6fa229(0x1ce)),util=require(a88_0x6fa229(0x1e4)),eventDispatcher=require(a88_0x6fa229(0x1da)),CLIUtils=require(a88_0x6fa229(0x1cd)),TrackedInstance=require(a88_0x6fa229(0x1db)),logger=createClassLogger(a88_0x6fa229(0x1f3));class AutomationFramework{static [a88_0x6fa229(0x1e2)]=new Map();static [a88_0x6fa229(0x1d5)]=a88_0x6fa229(0x1d0);static [a88_0x6fa229(0x1e3)]=a88_0x6fa229(0x1ec);constructor(_0x8193b3,_0x2e9c77){const _0x2c1d0c=a88_0x6fa229;this[_0x2c1d0c(0x1cf)]=_0x8193b3,this[_0x2c1d0c(0x1d9)]=_0x2e9c77;}[a88_0x6fa229(0x1e6)](){const _0x3d170c=a88_0x6fa229;return this[_0x3d170c(0x1cf)];}[a88_0x6fa229(0x1e5)](){const _0x31a2f1=a88_0x6fa229;return this[_0x31a2f1(0x1d9)];}async['trackEvent'](_0x3a2655,_0x546b20,_0x2d8771={}){const _0x99a190=a88_0x6fa229;logger['debug'](_0x99a190(0x1f0)+_0x3a2655+'\x20hookState='+_0x546b20);}async[a88_0x6fa229(0x1ef)](_0x1e580f,_0x350357,_0x5f04b4,_0x3c84ff={}){const _0x29dc2c=a88_0x6fa229,_0x3d5a8f=CLIUtils[_0x29dc2c(0x1dc)](_0x350357,_0x5f04b4);_0x1e580f&&_0x1e580f[_0x29dc2c(0x1d2)](_0x350357),await eventDispatcher['notifyObserver'](_0x3d5a8f,_0x3c84ff);}static[a88_0x6fa229(0x1d8)](_0x2344fb,_0x361a4a,_0x35f25f){const _0x1d7511=a88_0x6fa229;eventDispatcher[_0x1d7511(0x1d8)](CLIUtils['getHookRegistryKey'](_0x2344fb,_0x361a4a),_0x35f25f);}static[a88_0x6fa229(0x1ed)](_0x57ae5c,_0x1c383c){const _0x11f8c7=a88_0x6fa229;AutomationFramework[_0x11f8c7(0x1e2)][_0x11f8c7(0x1df)](_0x57ae5c['getId'](),_0x1c383c);}static[a88_0x6fa229(0x1e7)](){const _0x3247c0=a88_0x6fa229,_0x292a63=TrackedInstance[_0x3247c0(0x1e0)](CLIUtils[_0x3247c0(0x1d3)]());return AutomationFramework['instances'][_0x3247c0(0x1d7)](_0x292a63[_0x3247c0(0x1eb)]());}static['setState'](_0x4ad924,_0x38b3a7,_0x211097){const _0x4fec0c=a88_0x6fa229;_0x4ad924[_0x4fec0c(0x1f1)]()[_0x4fec0c(0x1df)](_0x38b3a7,_0x211097);}static['getState'](_0x6034e3,_0x495349){return _0x6034e3['getAllData']()['get'](_0x495349);}}function a88_0x4a3d(_0x3f0bc0,_0x4894df){const _0x2d6ff9=a88_0x2d6f();return a88_0x4a3d=function(_0x4a3d1c,_0x48d9ed){_0x4a3d1c=_0x4a3d1c-0x1cd;let _0x5aa726=_0x2d6ff9[_0x4a3d1c];return _0x5aa726;},a88_0x4a3d(_0x3f0bc0,_0x4894df);}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- function a89_0x53c4(){const _0x11a7a8=['74967qHfNQw','exports','w3cexecutescript','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_NEW_SESSION','framework_session_id','532224mXLsSc','KEY_ENDED_AT','started_at','4lEvQVm','11800CCMNfb','COMMAND_GET','KEY_INPUT_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','ended_at','KEY_STARTED_AT','KEY_FRAMEWORK_SESSION_ID','input_capabilities','427VWuixG','622795bMZqfO','KEY_IS_BROWSERSTACK_HUB','w3cexecutescriptasync','41962vySybv','KEY_HUB_URL','4364127ZQKZlu','newsession','ENV_BROWSERSTACK_PLATFORM_INDEX','199145EbcLvP','hub_url'];a89_0x53c4=function(){return _0x11a7a8;};return a89_0x53c4();}const a89_0x1d1af3=a89_0x383e;(function(_0x6e7c52,_0x4c6708){const _0x138807=a89_0x383e,_0x40a705=_0x6e7c52();while(!![]){try{const _0x1d8e83=-parseInt(_0x138807(0x181))/0x1+-parseInt(_0x138807(0x19a))/0x2+-parseInt(_0x138807(0x183))/0x3+parseInt(_0x138807(0x18c))/0x4*(-parseInt(_0x138807(0x197))/0x5)+-parseInt(_0x138807(0x189))/0x6+parseInt(_0x138807(0x196))/0x7*(parseInt(_0x138807(0x18d))/0x8)+parseInt(_0x138807(0x19c))/0x9;if(_0x1d8e83===_0x4c6708)break;else _0x40a705['push'](_0x40a705['shift']());}catch(_0x371db7){_0x40a705['push'](_0x40a705['shift']());}}}(a89_0x53c4,0x1c714));function a89_0x383e(_0x155f4e,_0x4a5c67){const _0x53c4d2=a89_0x53c4();return a89_0x383e=function(_0x383e73,_0x533da5){_0x383e73=_0x383e73-0x17f;let _0x5d4e2a=_0x53c4d2[_0x383e73];return _0x5d4e2a;},a89_0x383e(_0x155f4e,_0x4a5c67);}const a89_0x815d7a={};a89_0x815d7a[a89_0x1d1af3(0x180)]='BROWSERSTACK_PLATFORM_INDEX',a89_0x815d7a[a89_0x1d1af3(0x19b)]=a89_0x1d1af3(0x182),a89_0x815d7a[a89_0x1d1af3(0x194)]=a89_0x1d1af3(0x188),a89_0x815d7a[a89_0x1d1af3(0x18f)]=a89_0x1d1af3(0x195),a89_0x815d7a['KEY_CAPABILITIES']='capabilities',a89_0x815d7a[a89_0x1d1af3(0x198)]='is_browserstack_hub',a89_0x815d7a[a89_0x1d1af3(0x193)]=a89_0x1d1af3(0x18b),a89_0x815d7a[a89_0x1d1af3(0x18a)]=a89_0x1d1af3(0x192),a89_0x815d7a[a89_0x1d1af3(0x191)]='platform_index',a89_0x815d7a[a89_0x1d1af3(0x187)]=a89_0x1d1af3(0x17f),a89_0x815d7a[a89_0x1d1af3(0x18e)]='get',a89_0x815d7a['COMMAND_SCREENSHOT']='screenshot',a89_0x815d7a[a89_0x1d1af3(0x186)]=a89_0x1d1af3(0x185),a89_0x815d7a[a89_0x1d1af3(0x190)]=a89_0x1d1af3(0x199),a89_0x815d7a['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a89_0x815d7a;module[a89_0x1d1af3(0x184)]=AutomationFrameworkConstants;
1
+ const a89_0x3e3171=a89_0x6127;(function(_0x56b45f,_0x153be4){const _0x2f4eda=a89_0x6127,_0x43588d=_0x56b45f();while(!![]){try{const _0x20514e=parseInt(_0x2f4eda(0x18d))/0x1*(parseInt(_0x2f4eda(0x183))/0x2)+-parseInt(_0x2f4eda(0x197))/0x3+parseInt(_0x2f4eda(0x180))/0x4*(-parseInt(_0x2f4eda(0x179))/0x5)+parseInt(_0x2f4eda(0x178))/0x6*(-parseInt(_0x2f4eda(0x190))/0x7)+-parseInt(_0x2f4eda(0x198))/0x8+parseInt(_0x2f4eda(0x18c))/0x9*(-parseInt(_0x2f4eda(0x195))/0xa)+-parseInt(_0x2f4eda(0x191))/0xb*(-parseInt(_0x2f4eda(0x17c))/0xc);if(_0x20514e===_0x153be4)break;else _0x43588d['push'](_0x43588d['shift']());}catch(_0x3a082b){_0x43588d['push'](_0x43588d['shift']());}}}(a89_0x3c4b,0x275bc));const a89_0x3362b6={};a89_0x3362b6[a89_0x3e3171(0x194)]=a89_0x3e3171(0x18b),a89_0x3362b6['KEY_HUB_URL']=a89_0x3e3171(0x177),a89_0x3362b6[a89_0x3e3171(0x18f)]=a89_0x3e3171(0x192),a89_0x3362b6[a89_0x3e3171(0x187)]=a89_0x3e3171(0x188),a89_0x3362b6['KEY_CAPABILITIES']='capabilities',a89_0x3362b6[a89_0x3e3171(0x182)]='is_browserstack_hub',a89_0x3362b6[a89_0x3e3171(0x18a)]=a89_0x3e3171(0x17b),a89_0x3362b6[a89_0x3e3171(0x186)]='ended_at',a89_0x3362b6['KEY_PLATFORM_INDEX']='platform_index',a89_0x3362b6[a89_0x3e3171(0x18e)]=a89_0x3e3171(0x181),a89_0x3362b6[a89_0x3e3171(0x17e)]='get',a89_0x3362b6[a89_0x3e3171(0x17a)]=a89_0x3e3171(0x189),a89_0x3362b6[a89_0x3e3171(0x196)]=a89_0x3e3171(0x17d),a89_0x3362b6[a89_0x3e3171(0x185)]='w3cexecutescriptasync',a89_0x3362b6[a89_0x3e3171(0x193)]=a89_0x3e3171(0x17f);function a89_0x6127(_0x297003,_0xbc536c){const _0x3c4b45=a89_0x3c4b();return a89_0x6127=function(_0x6127df,_0x5355eb){_0x6127df=_0x6127df-0x177;let _0x520fd1=_0x3c4b45[_0x6127df];return _0x520fd1;},a89_0x6127(_0x297003,_0xbc536c);}const AutomationFrameworkConstants=a89_0x3362b6;function a89_0x3c4b(){const _0x379e24=['4YSvFGO','exports','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_ENDED_AT','KEY_INPUT_CAPABILITIES','input_capabilities','screenshot','KEY_STARTED_AT','BROWSERSTACK_PLATFORM_INDEX','18VQSnQA','78445YgwChE','COMMAND_NEW_SESSION','KEY_FRAMEWORK_SESSION_ID','93254vorScu','264GXbSQt','framework_session_id','COMMAND_QUIT','ENV_BROWSERSTACK_PLATFORM_INDEX','348830gSjKTT','COMMAND_W3C_EXECUTE_SCRIPT','107559HmMSuZ','1144464TGLYih','hub_url','96eaDeAe','85cmDKif','COMMAND_SCREENSHOT','started_at','286260egrQzv','w3cexecutescript','COMMAND_GET','quit','25028wCNHew','newsession','KEY_IS_BROWSERSTACK_HUB'];a89_0x3c4b=function(){return _0x379e24;};return a89_0x3c4b();}module[a89_0x3e3171(0x184)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0x3b33(_0x1bfda0,_0x2f0f9b){const _0x558785=a90_0x5587();return a90_0x3b33=function(_0x3b3364,_0x5ef327){_0x3b3364=_0x3b3364-0x14d;let _0x181b42=_0x558785[_0x3b3364];return _0x181b42;},a90_0x3b33(_0x1bfda0,_0x2f0f9b);}const a90_0x5c469d=a90_0x3b33;(function(_0x1b0401,_0x34d4a0){const _0x300bb8=a90_0x3b33,_0x113891=_0x1b0401();while(!![]){try{const _0x2e28d9=parseInt(_0x300bb8(0x1a5))/0x1*(parseInt(_0x300bb8(0x196))/0x2)+parseInt(_0x300bb8(0x19c))/0x3+-parseInt(_0x300bb8(0x1a1))/0x4*(-parseInt(_0x300bb8(0x1a6))/0x5)+parseInt(_0x300bb8(0x158))/0x6*(parseInt(_0x300bb8(0x18d))/0x7)+-parseInt(_0x300bb8(0x187))/0x8+-parseInt(_0x300bb8(0x157))/0x9*(-parseInt(_0x300bb8(0x19a))/0xa)+-parseInt(_0x300bb8(0x19d))/0xb*(parseInt(_0x300bb8(0x186))/0xc);if(_0x2e28d9===_0x34d4a0)break;else _0x113891['push'](_0x113891['shift']());}catch(_0x5668ab){_0x113891['push'](_0x113891['shift']());}}}(a90_0x5587,0x23cbe));const a90_0x462bf6={};a90_0x462bf6[a90_0x5c469d(0x179)]='test_uuid',a90_0x462bf6[a90_0x5c469d(0x163)]=a90_0x5c469d(0x154),a90_0x462bf6[a90_0x5c469d(0x191)]='test_name',a90_0x462bf6['KEY_TEST_FILE_PATH']=a90_0x5c469d(0x15a),a90_0x462bf6[a90_0x5c469d(0x156)]=a90_0x5c469d(0x18b),a90_0x462bf6[a90_0x5c469d(0x167)]=a90_0x5c469d(0x185),a90_0x462bf6['KEY_TEST_RESULT_AT']=a90_0x5c469d(0x176),a90_0x462bf6['KEY_TEST_STARTED_AT']='test_started_at',a90_0x462bf6[a90_0x5c469d(0x14e)]=a90_0x5c469d(0x155),a90_0x462bf6[a90_0x5c469d(0x177)]='test_location',a90_0x462bf6[a90_0x5c469d(0x14f)]=a90_0x5c469d(0x19b),a90_0x462bf6['KEY_TEST_SCOPE']=a90_0x5c469d(0x17b),a90_0x462bf6[a90_0x5c469d(0x15c)]='test_scopes',a90_0x462bf6[a90_0x5c469d(0x197)]=a90_0x5c469d(0x165),a90_0x462bf6[a90_0x5c469d(0x17d)]='test_framework_version',a90_0x462bf6[a90_0x5c469d(0x150)]=a90_0x5c469d(0x160),a90_0x462bf6['KEY_TEST_RERUN_NAME']=a90_0x5c469d(0x170),a90_0x462bf6[a90_0x5c469d(0x180)]='retry_of',a90_0x462bf6[a90_0x5c469d(0x161)]=a90_0x5c469d(0x17c),a90_0x462bf6[a90_0x5c469d(0x15e)]=a90_0x5c469d(0x199),a90_0x462bf6[a90_0x5c469d(0x182)]=a90_0x5c469d(0x1a7),a90_0x462bf6[a90_0x5c469d(0x192)]=a90_0x5c469d(0x1a0),a90_0x462bf6[a90_0x5c469d(0x175)]=a90_0x5c469d(0x198),a90_0x462bf6[a90_0x5c469d(0x194)]='test_meta',a90_0x462bf6[a90_0x5c469d(0x164)]=a90_0x5c469d(0x15d),a90_0x462bf6[a90_0x5c469d(0x171)]=a90_0x5c469d(0x190),a90_0x462bf6[a90_0x5c469d(0x16e)]=a90_0x5c469d(0x16f),a90_0x462bf6[a90_0x5c469d(0x169)]=a90_0x5c469d(0x18c),a90_0x462bf6[a90_0x5c469d(0x17f)]=a90_0x5c469d(0x193),a90_0x462bf6[a90_0x5c469d(0x16a)]=a90_0x5c469d(0x162),a90_0x462bf6[a90_0x5c469d(0x14d)]=a90_0x5c469d(0x16d),a90_0x462bf6['KEY_HOOK_RESULT']=a90_0x5c469d(0x166),a90_0x462bf6['KEY_HOOK_FAILURE_TYPE']=a90_0x5c469d(0x188),a90_0x462bf6[a90_0x5c469d(0x19f)]=a90_0x5c469d(0x15b),a90_0x462bf6[a90_0x5c469d(0x18e)]=a90_0x5c469d(0x18a),a90_0x462bf6[a90_0x5c469d(0x178)]=a90_0x5c469d(0x152),a90_0x462bf6['KEY_HOOK_NAME']='hook_name',a90_0x462bf6['DEFAULT_TEST_RESULT']=a90_0x5c469d(0x16b),a90_0x462bf6[a90_0x5c469d(0x181)]='pending',a90_0x462bf6[a90_0x5c469d(0x18f)]=a90_0x5c469d(0x17a),a90_0x462bf6[a90_0x5c469d(0x172)]=a90_0x5c469d(0x151),a90_0x462bf6[a90_0x5c469d(0x168)]=a90_0x5c469d(0x183),a90_0x462bf6['KEY_HOOKS_STARTED']=a90_0x5c469d(0x189),a90_0x462bf6[a90_0x5c469d(0x173)]='test_hooks_finished',a90_0x462bf6['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a90_0x462bf6[a90_0x5c469d(0x159)]=a90_0x5c469d(0x16c),a90_0x462bf6[a90_0x5c469d(0x15f)]='logs',a90_0x462bf6[a90_0x5c469d(0x19e)]=a90_0x5c469d(0x174),a90_0x462bf6[a90_0x5c469d(0x184)]=a90_0x5c469d(0x1a3),a90_0x462bf6[a90_0x5c469d(0x1a4)]=a90_0x5c469d(0x1a2),a90_0x462bf6['KEY_FILE_NAME']='file_name',a90_0x462bf6[a90_0x5c469d(0x153)]='file_path',a90_0x462bf6['KEY_FILE_LEVEL']=a90_0x5c469d(0x17e),a90_0x462bf6['KEY_TEST_SCREENSHOTS']='test_screenshots',a90_0x462bf6['MAX_TOP_LEVEL_STEPS']=0xa,a90_0x462bf6['MAX_NESTED_STEP_DEPTH']=0x2;function a90_0x5587(){const _0x148e02=['^(BEFORE_|AFTER_)','KEY_TEST_ATTACHMENTS','test_result','1908072eImczY','1474928OrQoFm','hook_failure_type','test_hooks_started','hook_failure','test_tags','automate_session_reason','63xBNrfu','KEY_HOOK_FAILURE','KIND_SCREENSHOT','automate_session_name','KEY_TEST_NAME','KEY_TEST_FAILURE_REASON','event_started_at','KEY_TEST_META','exports','314TlSziv','KEY_TEST_FRAMEWORK_NAME','test_logs','test_failure','146010zPLjij','test_duration','423729QzDydh','33GGishc','KEY_CUSTOM_TAGS','KEY_HOOK_FAILURE_REASON','test_failure_reason','16hdkZAG','file_size','test_attachments','KEY_FILE_SIZE','194oHlKio','301615TKUoIb','test_failure_type','KEY_HOOK_ID','KEY_TEST_ENDED_AT','KEY_TEST_DURATION','KEY_TEST_CODE','TEST_LOG','hook_logs','KEY_FILE_PATH','test_id','test_ended_at','KEY_TEST_TAGS','63mBzMzP','195204BlEkqI','KEY_HOOK_LAST_FINISHED','test_file_path','hook_failure_reason','KEY_TEST_SCOPES','test_session_name','KEY_TEST_FAILURE','KEY_LOGS','test_code','KEY_PLATFORM_INDEX','event_ended_at','KEY_TEST_ID','KEY_SESSION_NAME','test_framework_name','hook_result','KEY_TEST_RESULT','HOOK_REGEX','KEY_AUTOMATE_SESSION_REASON','KEY_EVENT_ENDED_AT','pending','test_hook_last_finished','hook_id','KEY_AUTOMATE_SESSION_STATUS','automate_session_status','test_rerun_name','KEY_AUTOMATE_SESSION_NAME','KIND_LOG','KEY_HOOKS_FINISHED','custom_metadata','KEY_TEST_LOGS','test_result_at','KEY_TEST_LOCATION','KEY_HOOK_LOGS','KEY_TEST_UUID','TEST_SCREENSHOT','test_scope','platform_index','KEY_TEST_FRAMEWORK_VERSION','file_level','KEY_EVENT_STARTED_AT','KEY_TEST_RETRY_OF','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE_TYPE'];a90_0x5587=function(){return _0x148e02;};return a90_0x5587();}const TestFrameworkConstants=a90_0x462bf6;module[a90_0x5c469d(0x195)]=TestFrameworkConstants;
1
+ const a90_0x5aa832=a90_0x2b5f;function a90_0x5b02(){const _0x2392f4=['KEY_AUTOMATE_SESSION_NAME','KEY_TEST_LOGS','MAX_NESTED_STEP_DEPTH','KEY_HOOK_ID','test_failure_type','168iSBHpA','KEY_HOOK_NAME','test_duration','KEY_TEST_SCREENSHOTS','KIND_LOG','custom_metadata','KEY_TEST_FILE_PATH','KEY_TEST_CODE','MAX_TOP_LEVEL_STEPS','9GJoYzL','test_ended_at','KEY_PLATFORM_INDEX','hook_name','test_rerun_name','test_framework_name','KIND_SCREENSHOT','test_uuid','test_scope','49BVPwip','KEY_TEST_ENDED_AT','automate_session_status','198pvKShC','KEY_SESSION_NAME','KEY_CUSTOM_TAGS','129676oxftKd','KEY_TEST_DURATION','DEFAULT_HOOK_RESULT','KEY_HOOK_RESULT','KEY_HOOK_LAST_STARTED','KEY_HOOK_FAILURE_REASON','KEY_HOOKS_FINISHED','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_META','KEY_HOOK_LAST_FINISHED','test_screenshots','file_name','KEY_LOGS','test_hook_last_finished','TEST_LOG','test_hook_last_started','automate_session_reason','test_file_path','file_level','^(BEFORE_|AFTER_)','1859710MbwSEc','KEY_TEST_ID','KEY_AUTOMATE_SESSION_STATUS','test_hooks_finished','1773PNVrpm','test_code','test_id','KEY_TEST_ATTACHMENTS','681138JPLWUk','KEY_TEST_RETRY_OF','test_logs','pending','KEY_TEST_LOCATION','KEY_TEST_SCOPE','KEY_TEST_FAILURE','test_tags','platform_index','KEY_TEST_RESULT_AT','KEY_EVENT_STARTED_AT','test_result_at','KEY_FILE_PATH','1437444oDNGBK','test_session_name','33208uhuJey','retry_of','KEY_HOOK_LOGS','KEY_TEST_FRAMEWORK_VERSION','KEY_FILE_LEVEL','KEY_TEST_FAILURE_TYPE','DEFAULT_TEST_RESULT','test_location','KEY_TEST_RERUN_NAME','hook_failure_type','KEY_TEST_SCOPES','TEST_SCREENSHOT','97130DdODIm','test_meta','file_size','event_started_at','KEY_TEST_FAILURE_REASON'];a90_0x5b02=function(){return _0x2392f4;};return a90_0x5b02();}(function(_0x317009,_0xfe77db){const _0x178758=a90_0x2b5f,_0x36d7b2=_0x317009();while(!![]){try{const _0x3535b5=-parseInt(_0x178758(0x169))/0x1*(parseInt(_0x178758(0x192))/0x2)+parseInt(_0x178758(0x142))/0x3*(parseInt(_0x178758(0x151))/0x4)+parseInt(_0x178758(0x165))/0x5+-parseInt(_0x178758(0x16d))/0x6+-parseInt(_0x178758(0x14b))/0x7*(parseInt(_0x178758(0x17c))/0x8)+-parseInt(_0x178758(0x17a))/0x9+parseInt(_0x178758(0x188))/0xa*(parseInt(_0x178758(0x14e))/0xb);if(_0x3535b5===_0xfe77db)break;else _0x36d7b2['push'](_0x36d7b2['shift']());}catch(_0x419e8e){_0x36d7b2['push'](_0x36d7b2['shift']());}}}(a90_0x5b02,0x2f125));function a90_0x2b5f(_0x8e4e0e,_0x17db4f){const _0x5b02cf=a90_0x5b02();return a90_0x2b5f=function(_0x2b5f4b,_0x3b7620){_0x2b5f4b=_0x2b5f4b-0x13a;let _0x19f32e=_0x5b02cf[_0x2b5f4b];return _0x19f32e;},a90_0x2b5f(_0x8e4e0e,_0x17db4f);}const a90_0x20ed8d={};a90_0x20ed8d['KEY_TEST_UUID']=a90_0x5aa832(0x149),a90_0x20ed8d[a90_0x5aa832(0x166)]=a90_0x5aa832(0x16b),a90_0x20ed8d['KEY_TEST_NAME']='test_name',a90_0x20ed8d[a90_0x5aa832(0x13f)]=a90_0x5aa832(0x162),a90_0x20ed8d['KEY_TEST_TAGS']=a90_0x5aa832(0x174),a90_0x20ed8d['KEY_TEST_RESULT']='test_result',a90_0x20ed8d[a90_0x5aa832(0x176)]=a90_0x5aa832(0x178),a90_0x20ed8d['KEY_TEST_STARTED_AT']='test_started_at',a90_0x20ed8d[a90_0x5aa832(0x14c)]=a90_0x5aa832(0x143),a90_0x20ed8d[a90_0x5aa832(0x171)]=a90_0x5aa832(0x183),a90_0x20ed8d[a90_0x5aa832(0x152)]=a90_0x5aa832(0x13b),a90_0x20ed8d[a90_0x5aa832(0x172)]=a90_0x5aa832(0x14a),a90_0x20ed8d[a90_0x5aa832(0x186)]='test_scopes',a90_0x20ed8d['KEY_TEST_FRAMEWORK_NAME']=a90_0x5aa832(0x147),a90_0x20ed8d[a90_0x5aa832(0x17f)]='test_framework_version',a90_0x20ed8d[a90_0x5aa832(0x140)]=a90_0x5aa832(0x16a),a90_0x20ed8d[a90_0x5aa832(0x184)]=a90_0x5aa832(0x146),a90_0x20ed8d[a90_0x5aa832(0x16e)]=a90_0x5aa832(0x17d),a90_0x20ed8d[a90_0x5aa832(0x144)]=a90_0x5aa832(0x175),a90_0x20ed8d[a90_0x5aa832(0x173)]='test_failure',a90_0x20ed8d[a90_0x5aa832(0x181)]=a90_0x5aa832(0x191),a90_0x20ed8d[a90_0x5aa832(0x18c)]='test_failure_reason',a90_0x20ed8d[a90_0x5aa832(0x18e)]=a90_0x5aa832(0x16f),a90_0x20ed8d[a90_0x5aa832(0x159)]=a90_0x5aa832(0x189),a90_0x20ed8d[a90_0x5aa832(0x14f)]=a90_0x5aa832(0x17b),a90_0x20ed8d[a90_0x5aa832(0x18d)]='automate_session_name',a90_0x20ed8d[a90_0x5aa832(0x167)]=a90_0x5aa832(0x14d),a90_0x20ed8d[a90_0x5aa832(0x158)]=a90_0x5aa832(0x161),a90_0x20ed8d[a90_0x5aa832(0x177)]=a90_0x5aa832(0x18b),a90_0x20ed8d['KEY_EVENT_ENDED_AT']='event_ended_at',a90_0x20ed8d[a90_0x5aa832(0x190)]='hook_id',a90_0x20ed8d[a90_0x5aa832(0x154)]='hook_result',a90_0x20ed8d['KEY_HOOK_FAILURE_TYPE']=a90_0x5aa832(0x185),a90_0x20ed8d[a90_0x5aa832(0x156)]='hook_failure_reason',a90_0x20ed8d['KEY_HOOK_FAILURE']='hook_failure',a90_0x20ed8d[a90_0x5aa832(0x17e)]='hook_logs',a90_0x20ed8d[a90_0x5aa832(0x13a)]=a90_0x5aa832(0x145),a90_0x20ed8d[a90_0x5aa832(0x182)]=a90_0x5aa832(0x170),a90_0x20ed8d[a90_0x5aa832(0x153)]=a90_0x5aa832(0x170),a90_0x20ed8d[a90_0x5aa832(0x148)]=a90_0x5aa832(0x187),a90_0x20ed8d[a90_0x5aa832(0x13d)]=a90_0x5aa832(0x15f),a90_0x20ed8d['HOOK_REGEX']=a90_0x5aa832(0x164),a90_0x20ed8d['KEY_HOOKS_STARTED']='test_hooks_started',a90_0x20ed8d[a90_0x5aa832(0x157)]=a90_0x5aa832(0x168),a90_0x20ed8d[a90_0x5aa832(0x155)]=a90_0x5aa832(0x160),a90_0x20ed8d[a90_0x5aa832(0x15a)]=a90_0x5aa832(0x15e),a90_0x20ed8d[a90_0x5aa832(0x15d)]='logs',a90_0x20ed8d[a90_0x5aa832(0x150)]=a90_0x5aa832(0x13e),a90_0x20ed8d[a90_0x5aa832(0x16c)]='test_attachments',a90_0x20ed8d['KEY_FILE_SIZE']=a90_0x5aa832(0x18a),a90_0x20ed8d['KEY_FILE_NAME']=a90_0x5aa832(0x15c),a90_0x20ed8d[a90_0x5aa832(0x179)]='file_path',a90_0x20ed8d[a90_0x5aa832(0x180)]=a90_0x5aa832(0x163),a90_0x20ed8d[a90_0x5aa832(0x13c)]=a90_0x5aa832(0x15b),a90_0x20ed8d[a90_0x5aa832(0x141)]=0xa,a90_0x20ed8d[a90_0x5aa832(0x18f)]=0x2;const TestFrameworkConstants=a90_0x20ed8d;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a91_0x4be0a1=a91_0x39d9;(function(_0x14d0c8,_0x5228d1){const _0x150730=a91_0x39d9,_0x1a3f8d=_0x14d0c8();while(!![]){try{const _0x4f7f77=-parseInt(_0x150730(0x104))/0x1*(parseInt(_0x150730(0x11d))/0x2)+-parseInt(_0x150730(0x101))/0x3+parseInt(_0x150730(0x170))/0x4*(parseInt(_0x150730(0x15e))/0x5)+-parseInt(_0x150730(0xfe))/0x6+-parseInt(_0x150730(0x12f))/0x7*(parseInt(_0x150730(0x156))/0x8)+-parseInt(_0x150730(0x106))/0x9+parseInt(_0x150730(0x180))/0xa*(parseInt(_0x150730(0x109))/0xb);if(_0x4f7f77===_0x5228d1)break;else _0x1a3f8d['push'](_0x1a3f8d['shift']());}catch(_0x5e7bf2){_0x1a3f8d['push'](_0x1a3f8d['shift']());}}}(a91_0x3994,0xc277f));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a91_0x4be0a1(0x186)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x4be0a1(0x115)),CLIUtils=require(a91_0x4be0a1(0x19b)),TrackedInstance=require(a91_0x4be0a1(0x15a)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x4be0a1(0x183)),logger=createClassLogger(a91_0x4be0a1(0x166)),{v4:uuidv4}=require('uuid'),util=require(a91_0x4be0a1(0x140)),TestInfo=require(a91_0x4be0a1(0x16f)),GrpcClient=require(a91_0x4be0a1(0x117));function a91_0x3994(){const _0x320e73=['KEY_HOOK_RESULT','POST','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_STARTED_AT','XeVGN','trackEvent:\x20unsupported\x20testFrameworkState=','248gHbeJa','getProcessId','debug','hook_type','../instances/trackedInstance.js','KEY_TEST_META','\x20payload=','hooks','28235XtroGD','result','processPendingHooks','\x20hookState:\x20','testData','\x20\x20and\x20args\x20=\x20','slice',',\x20state=','CucumberTestFramework','\x20with\x20result:\x20','get','matchHookRegex','trackCucumberInstance:\x20saved\x20instance\x20contextId=','\x20&\x20hook\x20=\x20','stringify','passed','toString','../TestInfo.js','1060NSRFwt','test','DEFAULT_HOOK_RESULT','getCurrentInstanceName','createTestFrameworkEventPayload\x20testId:\x20','failure','udpIZ','KEY_TEST_ATTACHMENTS','\x20testState:\x20','EyshZ','KEY_HOOK_FAILURE_REASON','cZpvu','meta','key','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','LOG_REPORT','24455220iCAFCR','toISOString','getThreadId','../../../helpers/helper.js','KEY_TEST_FAILURE_REASON','getTestUUID','../state/hookState.js','body','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','base64','executionContext','vpxtI','Stored\x20pending\x20hook\x20for\x20testId:\x20','UnhandledError','parseCucumberTest','failure_reason','KEY_HOOK_LOGS','getTrackedInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_HOOKS_STARTED','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','\x20response=','SpHMV','keys','sendLogCreatedEvent','setTrackedInstance','\x20pending\x20hooks\x20for\x20testId:\x20','../cliUtils.js','KEY_HOOK_FAILURE','getId','KEY_TEST_FRAMEWORK_VERSION','error','testFrameworkVersion','name','KEY_TEST_ENDED_AT','KEY_HOOK_ID','scopes','KEY_HOOK_FAILURE_TYPE','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_LOGS','getTestDetails','startedAt','StwEP','testFrameworkState','fWZTH','qkJFX','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_UUID','PDPgE','Sacxf','readLogObjects','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_HOOKS_FINISHED','KEY_EVENT_STARTED_AT','args','KEY_TEST_FRAMEWORK_NAME','platformIndex','failed','format','TaADf','verxA','getInstance','parseCucumberTestResult',',\x20hookState:\x20','\x20batch\x20','customRerunParam','KEY_CUSTOM_TAGS','getAllData','PRE','HOvOQ','aJrBm','KEY_TEST_LOGS','createTestFrameworkEventPayload','1977792JPXwEv','INIT_TEST','length','4580445CSdEmj','concat','Cucumber\x20log\x20created\x20event','4mjhLSP','yvwnH','6844950MBBduT','trackHookEvent','testFrameworkName','22TVQlld','trackEvent','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','ceil','getCurrentTestState','from','tags',',\x20error:\x20','NGKaz','KEY_TEST_SCOPE','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','NONE','../instances/testFrameworkInstance.js','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','../grpcClient','file_name','jtUgO','hookState','ZTEhv','testUUID','782582GSwecK','ewylB','setTestDetails','TEST','failure_data','\x20with\x20id\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','AyicY','split','pRzvg','\x20for\x20test:\x20','addMultipleEntries','resolveInstance',',\x20storing\x20as\x20pending\x20hook','failure_type','KEY_TEST_SCOPES','KEY_TEST_CODE','KEY_TEST_LOCATION','318115hDlzop','instance','hookData','Updated\x20cucumber\x20test\x20result:\x20','uuid','push','test_run_id','trackCucumberInstance','KEY_TEST_RESULT_AT','OSXAl','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','eAvZe','pSyVu','KEY_AUTOMATE_SESSION_NAME','finished_at','hasPendingHooks','browserstackPlatformIndex','util','WClao','tRFMq','KEY_TEST_RERUN_NAME','getTestFrameworksVersions','KEY_TEST_TAGS','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_HOOK_LAST_STARTED','unknown','getTestFrameworks','CNDnj','OMrxu','KEY_HOOK_NAME','lekkB','inspect','KEY_TEST_RESULT'];a91_0x3994=function(){return _0x320e73;};return a91_0x3994();}function a91_0x39d9(_0x6492d8,_0x21684d){const _0x3994ce=a91_0x3994();return a91_0x39d9=function(_0x39d9e5,_0x1ce8c8){_0x39d9e5=_0x39d9e5-0xdc;let _0x5bed49=_0x3994ce[_0x39d9e5];return _0x5bed49;},a91_0x39d9(_0x6492d8,_0x21684d);}class CucumberTestFramework extends TestFramework{constructor(_0x39b07a,_0x3fe987,_0x1ed384){super(_0x39b07a,_0x3fe987,_0x1ed384);}async[a91_0x4be0a1(0x10a)](_0x5a7c7b,_0x31c326,_0x2e9568={}){const _0xe626ea=a91_0x4be0a1,_0x42c700={};_0x42c700[_0xe626ea(0xdf)]=_0xe626ea(0xe8),_0x42c700['CNDnj']=function(_0x3e86c4,_0x31e0e3){return _0x3e86c4===_0x31e0e3;},_0x42c700['TaADf']=function(_0x2bd88c,_0x4075c8){return _0x2bd88c===_0x4075c8;},_0x42c700[_0xe626ea(0x176)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x54d38e=_0x42c700;await super['trackEvent'](_0x5a7c7b,_0x31c326,_0x2e9568);const _0x463d29=this[_0xe626ea(0x129)](_0x5a7c7b,_0x31c326,_0x2e9568);if(!_0x463d29){logger[_0xe626ea(0x158)](_0x54d38e[_0xe626ea(0xdf)]);return;}try{let _0x1232ad,_0x4dbc4f;switch(_0x5a7c7b){case TestFrameworkState[_0xe626ea(0x120)]:_0x1232ad=_0x2e9568[_0xe626ea(0x171)],_0x4dbc4f=TestInfo[_0xe626ea(0x185)](_0x1232ad['id']);if(_0x54d38e['CNDnj'](_0x31c326,HookState[_0xe626ea(0xf9)])){logger[_0xe626ea(0x158)](_0xe626ea(0x113)+_0x1232ad['id']);const _0x5a5987={};_0x5a5987['testUUID']=_0x4dbc4f,_0x5a5987[_0xe626ea(0x162)]=_0x1232ad,_0x463d29['addMultipleEntries'](this[_0xe626ea(0x18e)](_0x5a5987)),logger[_0xe626ea(0x158)](_0xe626ea(0x10b)+_0x1232ad['id']),await this[_0xe626ea(0x160)](_0x463d29,_0x1232ad['id']);}else{if(_0x54d38e[_0xe626ea(0x14a)](_0x31c326,HookState['POST'])){const _0x3d07b7={};_0x3d07b7[_0xe626ea(0x11c)]=_0x4dbc4f,_0x3d07b7[_0xe626ea(0x162)]=_0x1232ad,_0x463d29[_0xe626ea(0x128)](this[_0xe626ea(0xf3)](_0x3d07b7)),await this[_0xe626ea(0x160)](_0x463d29,_0x1232ad['id']);}}break;case TestFrameworkState[_0xe626ea(0x17f)]:_0x54d38e[_0xe626ea(0xf0)](_0x31c326,HookState[_0xe626ea(0x151)])&&await this['sendLogCreatedEvent'](_0x463d29,_0x5a7c7b,_0x2e9568);break;default:if(CLIUtils[_0xe626ea(0x169)](_0x5a7c7b['toString']()[_0xe626ea(0x125)]('.')[0x1])){const _0x577c96=await this[_0xe626ea(0x107)](_0x463d29,_0x5a7c7b,_0x31c326,_0x2e9568);_0x463d29[_0xe626ea(0x128)](_0x577c96);}else logger[_0xe626ea(0x158)](_0xe626ea(0x155)+_0x5a7c7b+'\x20&\x20hookState='+_0x31c326);break;}}catch(_0x22e2ba){logger[_0xe626ea(0x19f)](util[_0xe626ea(0xef)](_0x54d38e[_0xe626ea(0x176)],_0x5a7c7b,_0x31c326,_0x2e9568[_0xe626ea(0x100)],_0x22e2ba));}_0x2e9568[_0xe626ea(0x130)]=_0x463d29,await this['runHooks'](_0x463d29,_0x5a7c7b,_0x31c326,_0x2e9568);}[a91_0x4be0a1(0x129)](_0x5738ee,_0x178b74,_0x20dfab={}){const _0x626bcd=a91_0x4be0a1,_0x4f56e3={};_0x4f56e3[_0x626bcd(0xe1)]=function(_0x384f84,_0x257358){return _0x384f84===_0x257358;};const _0x5d1acc=_0x4f56e3;let _0x51a36b=null;return(_0x5d1acc[_0x626bcd(0xe1)](_0x5738ee,TestFrameworkState[_0x626bcd(0xff)])||_0x5d1acc[_0x626bcd(0xe1)](_0x5738ee,TestFrameworkState['NONE']))&&this[_0x626bcd(0x136)](_0x5738ee,_0x20dfab),_0x51a36b=TestFramework[_0x626bcd(0x191)](),_0x51a36b;}[a91_0x4be0a1(0x136)](_0x40c55e,_0x517845){const _0xdf459f=a91_0x4be0a1,_0x336c1e=CLIUtils[_0xdf459f(0x173)](),_0x463382=TrackedInstance['createContext'](_0x336c1e);let _0x5b1b1e=null;logger[_0xdf459f(0x158)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x336c1e+_0xdf459f(0x165)+_0x40c55e),_0x5b1b1e=new TestFrameworkInstance(_0x463382,this[_0xdf459f(0x149)](),this['getTestFrameworksVersions'](),_0x40c55e,HookState[_0xdf459f(0x114)]),TestFramework[_0xdf459f(0x199)](_0x463382,_0x5b1b1e),logger[_0xdf459f(0x158)](_0xdf459f(0x16a)+_0x463382[_0xdf459f(0x19d)]()+'\x20target='+_0x336c1e);}['parseCucumberTest'](_0x3bddab){const _0x2d1aed=a91_0x4be0a1,_0x3b394={};_0x3b394['pSyVu']=_0x2d1aed(0x17e);const _0x4577b6=_0x3b394,{testUUID:_0x5d35f5,testData:_0x59e20a}=_0x3bddab;if(!_0x59e20a||!_0x59e20a['uuid'])return logger[_0x2d1aed(0x158)](_0x4577b6[_0x2d1aed(0x13b)]),{};const _0x2e7d4b=_0x5d35f5,_0x127ca2=_0x59e20a[_0x2d1aed(0x133)],_0xfd0b95=this[_0x2d1aed(0x149)]()[0x0],_0x251545=this[_0x2d1aed(0x144)](),_0x185802={[TestFrameworkConstants[_0x2d1aed(0xec)]]:_0xfd0b95,[TestFrameworkConstants[_0x2d1aed(0x19e)]]:_0x251545[_0xfd0b95],[TestFrameworkConstants[_0x2d1aed(0xfc)]]:[],[TestFrameworkConstants[_0x2d1aed(0xe9)]]:{},[TestFrameworkConstants[_0x2d1aed(0x193)]]:{},[TestFrameworkConstants[_0x2d1aed(0xe4)]]:_0x2e7d4b,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2d1aed(0x13c)]]:_0x59e20a[_0x2d1aed(0x1a1)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x59e20a[_0x2d1aed(0x118)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x127ca2,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x59e20a[_0x2d1aed(0x1a1)]||'',[TestFrameworkConstants[_0x2d1aed(0x12e)]]:_0x59e20a['location']||'',[TestFrameworkConstants[_0x2d1aed(0x12d)]]:_0x59e20a[_0x2d1aed(0x187)]?.['code']||null,[TestFrameworkConstants[_0x2d1aed(0x145)]]:_0x59e20a[_0x2d1aed(0x10f)]||[],[TestFrameworkConstants[_0x2d1aed(0x153)]]:_0x59e20a['startedAt']||new Date()[_0x2d1aed(0x181)](),[TestFrameworkConstants[_0x2d1aed(0x112)]]:_0x59e20a['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x2d1aed(0x12c)]]:_0x59e20a[_0x2d1aed(0x1a4)]||[],[TestFrameworkConstants[_0x2d1aed(0x143)]]:_0x59e20a[_0x2d1aed(0xf6)]?.['rerun_name']||_0x59e20a[_0x2d1aed(0x1a1)]||'',[TestFrameworkConstants[_0x2d1aed(0xf7)]]:{},[TestFrameworkConstants[_0x2d1aed(0x15b)]]:_0x59e20a[_0x2d1aed(0x17c)]||{}};TestInfo['setTestDetails'](_0x127ca2,_0x185802),logger[_0x2d1aed(0x158)]('Parsed\x20cucumber\x20test:\x20'+_0x59e20a[_0x2d1aed(0x1a1)]+'\x20with\x20UUID:\x20'+_0x2e7d4b);const _0x31427a={};return _0x31427a[_0x127ca2]=_0x185802,_0x31427a;}[a91_0x4be0a1(0xf3)](_0x512a1d){const _0x5c125e=a91_0x4be0a1,_0x100d07={'verxA':_0x5c125e(0x192),'AyicY':_0x5c125e(0x148),'NnrBX':function(_0x44e2e6,_0x5e35fc){return _0x44e2e6===_0x5e35fc;},'yvwnH':_0x5c125e(0xee),'cZpvu':'UnhandledError','pRzvg':function(_0x31bef6,_0x2850c6,_0x51fb70){return _0x31bef6(_0x2850c6,_0x51fb70);},'EyshZ':function(_0x41f45c,_0x3d8fb4){return _0x41f45c>_0x3d8fb4;},'NGKaz':function(_0x3de79c,_0x2ced27){return _0x3de79c>_0x2ced27;}},{testUUID:_0x189e77,testData:_0x3248dd}=_0x512a1d;if(!_0x3248dd||!_0x3248dd[_0x5c125e(0x133)])return logger[_0x5c125e(0x158)](_0x100d07[_0x5c125e(0xf1)]),{};const _0x2e9999=this['resolveInstance'](TestFrameworkState[_0x5c125e(0x120)],HookState[_0x5c125e(0x151)]),_0x181dbc=_0x3248dd['uuid'],_0x51fe01=TestInfo['getTestDetails'](_0x181dbc)||{},_0x4ae7ef=_0x51fe01?_0x51fe01[TestFrameworkConstants[_0x5c125e(0xf7)]]||{}:{},_0x365aca={..._0x51fe01,[TestFrameworkConstants[_0x5c125e(0x14f)]]:_0x3248dd['result']||_0x100d07[_0x5c125e(0x124)],[TestFrameworkConstants[_0x5c125e(0x1a2)]]:_0x3248dd['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x5c125e(0x137)]]:new Date()[_0x5c125e(0x181)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x4ae7ef,[TestFrameworkConstants[_0x5c125e(0xdc)]]:[],[TestFrameworkConstants[_0x5c125e(0x15b)]]:_0x3248dd[_0x5c125e(0x17c)]||{}};_0x100d07['NnrBX'](_0x3248dd['result'],_0x100d07[_0x5c125e(0x105)])&&_0x3248dd['failure']&&(_0x365aca[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x3248dd[_0x5c125e(0x12b)]||_0x100d07[_0x5c125e(0x17b)],_0x365aca[TestFrameworkConstants[_0x5c125e(0x184)]]=_0x3248dd[_0x5c125e(0x18f)]||'',_0x365aca[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x3248dd[_0x5c125e(0x175)]);const _0x145f20=TestInfo[_0x5c125e(0xdd)](_0x181dbc)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x37f074=_0x100d07[_0x5c125e(0x126)](getManualUploadLogs,_0x145f20,_0x2e9999[_0x5c125e(0xf8)]()['get'](_0x181dbc)[TestFrameworkConstants[_0x5c125e(0xe4)]]);if(_0x100d07[_0x5c125e(0x179)](_0x37f074[_0x5c125e(0x100)],0x0)){const _0x5c74f4=_0x365aca[TestFrameworkConstants[_0x5c125e(0xdc)]]||[];_0x365aca[TestFrameworkConstants[_0x5c125e(0xdc)]]=[..._0x5c74f4,..._0x37f074];}_0x3248dd['hooks']&&_0x100d07[_0x5c125e(0x111)](_0x3248dd[_0x5c125e(0x15d)]['length'],0x0)&&(_0x365aca[TestFrameworkConstants[_0x5c125e(0xe9)]]=_0x3248dd['hooks']);TestInfo[_0x5c125e(0x11f)](_0x181dbc,_0x365aca),logger[_0x5c125e(0x158)](_0x5c125e(0x132)+_0x3248dd[_0x5c125e(0x1a1)]+_0x5c125e(0x167)+_0x3248dd['result']);const _0x19413f={};return _0x19413f[_0x181dbc]=_0x365aca,_0x19413f;}async['trackHookEvent'](_0x53c164,_0x2016e8,_0x259232,_0x32a34d){const _0x2d5586=a91_0x4be0a1,_0x3b489b={'WClao':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','lekkB':function(_0x8df5b6){return _0x8df5b6();},'Sacxf':function(_0x41fa9e,_0x5ec0ae){return _0x41fa9e in _0x5ec0ae;},'HOvOQ':function(_0x4270a2,_0x230a7c){return _0x4270a2===_0x230a7c;},'jtUgO':function(_0x587f15,_0x2342d3){return _0x587f15>_0x2342d3;},'eAvZe':'failed','ewylB':_0x2d5586(0x18d),'vpxtI':_0x2d5586(0x16d),'tRFMq':function(_0x2aaf26,_0xcf846e){return _0x2aaf26!==_0xcf846e;}},{hookData:_0x1cd728}=_0x32a34d;if(!_0x1cd728)return logger[_0x2d5586(0x158)](_0x3b489b[_0x2d5586(0x141)]),{};const _0x50ce81=_0x1cd728[_0x2d5586(0x133)]||_0x3b489b[_0x2d5586(0x14d)](uuidv4),_0x32d0ac=_0x1cd728['test_run_id'],_0x1a2800=_0x2016e8[_0x2d5586(0x16e)]()[_0x2d5586(0x125)]('.')[0x1],_0x2b90eb=TestInfo['getTestDetails'](_0x32d0ac)[TestFrameworkConstants[_0x2d5586(0xf7)]]||{},_0x106593=_0x53c164['getAllData']()[_0x2d5586(0x168)](_0x32d0ac);if(!_0x106593)return logger[_0x2d5586(0x158)](_0x2d5586(0x188)+_0x32d0ac+_0x2d5586(0x12a)),this['storePendingHook'](_0x53c164,_0x32d0ac,_0x2016e8,_0x259232,_0x32a34d),{};let _0x47a4b5=_0x106593[TestFrameworkConstants[_0x2d5586(0x193)]];!_0x47a4b5&&(_0x47a4b5={});!_0x3b489b[_0x2d5586(0xe6)](_0x1a2800,_0x47a4b5)&&(_0x47a4b5[_0x1a2800]=[]);let _0x371fdc=_0x106593[TestFrameworkConstants[_0x2d5586(0xe9)]];!_0x371fdc&&(_0x371fdc={});!_0x3b489b[_0x2d5586(0xe6)](_0x1a2800,_0x371fdc)&&(_0x371fdc[_0x1a2800]=[]);const _0x57f7ba={[TestFrameworkConstants[_0x2d5586(0x193)]]:_0x47a4b5,[TestFrameworkConstants[_0x2d5586(0xe9)]]:_0x371fdc},_0x4d79af={};_0x4d79af[_0x32d0ac]=_0x57f7ba;const _0x590bee=_0x4d79af;if(_0x3b489b[_0x2d5586(0xfa)](_0x259232,HookState[_0x2d5586(0xf9)])){const _0x1279f4={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x50ce81,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x2d5586(0x172)],[TestFrameworkConstants[_0x2d5586(0xea)]]:_0x1cd728['started_at'],[TestFrameworkConstants[_0x2d5586(0x190)]]:[],[TestFrameworkConstants[_0x2d5586(0x14c)]]:_0x1cd728['hook_type'],[TestFrameworkConstants[_0x2d5586(0xf7)]]:_0x2b90eb};_0x1279f4[_0x2d5586(0x17d)]=_0x1a2800;const _0x17267e=_0x1279f4;_0x47a4b5[_0x1a2800][_0x2d5586(0x134)](_0x17267e),_0x590bee[_0x32d0ac][TestFrameworkConstants[_0x2d5586(0x147)]]=_0x1a2800,logger[_0x2d5586(0x158)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x1a2800+_0x2d5586(0x16b)+_0x17267e+_0x2d5586(0x163)+_0x32a34d);}else{if(_0x3b489b[_0x2d5586(0xfa)](_0x259232,HookState['POST'])){const _0x2146d1=_0x1cd728[_0x2d5586(0x15f)],_0x53809b=_0x47a4b5[_0x1a2800]||[];logger[_0x2d5586(0x158)](_0x2d5586(0x194)+_0x53809b+'\x20and\x20args\x20=\x20'+_0x32a34d);if(_0x3b489b[_0x2d5586(0x119)](_0x53809b['length'],0x0)){const _0x137aa9=_0x53809b['pop']();_0x3b489b[_0x2d5586(0xfa)](_0x1cd728[_0x2d5586(0x15f)],_0x3b489b[_0x2d5586(0x13a)])&&_0x1cd728[_0x2d5586(0x121)]?(_0x137aa9[TestFrameworkConstants[_0x2d5586(0x1a5)]]=_0x1cd728[_0x2d5586(0x12b)]||_0x3b489b[_0x2d5586(0x11e)],_0x137aa9[TestFrameworkConstants[_0x2d5586(0x17a)]]=_0x1cd728[_0x2d5586(0x18f)]||'',_0x137aa9[TestFrameworkConstants[_0x2d5586(0x19c)]]=_0x1cd728[_0x2d5586(0x121)]):_0x137aa9[TestFrameworkConstants[_0x2d5586(0x150)]]=_0x3b489b[_0x2d5586(0x18b)];_0x3b489b[_0x2d5586(0x142)](_0x2146d1,TestFrameworkConstants[_0x2d5586(0x172)])&&(_0x137aa9[TestFrameworkConstants[_0x2d5586(0x150)]]=_0x2146d1);_0x137aa9[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1cd728[_0x2d5586(0x13d)]||new Date()[_0x2d5586(0x181)](),_0x137aa9[TestFrameworkConstants[_0x2d5586(0xf7)]]=_0x2b90eb;const _0x1b95e7=_0x137aa9[TestFrameworkConstants[_0x2d5586(0x1a3)]];!_0x371fdc[_0x1a2800]&&(_0x371fdc[_0x1a2800]=[]),_0x371fdc[_0x1a2800][_0x2d5586(0x134)](_0x137aa9),_0x590bee[_0x32d0ac][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x1a2800;}}}return logger[_0x2d5586(0x158)](_0x2d5586(0x152)+_0x1cd728[_0x2d5586(0x159)]+_0x2d5586(0x122)+_0x50ce81+_0x2d5586(0x127)+_0x32d0ac),_0x590bee;}[a91_0x4be0a1(0xfd)](_0x1ac554){const _0x16b6e0=a91_0x4be0a1,_0x14b9c9={};_0x14b9c9[_0x16b6e0(0x14b)]=_0x16b6e0(0x189);const _0x55fc00=_0x14b9c9;try{const _0x3380ec=_0x1ac554[_0x16b6e0(0x171)]?_0x1ac554[_0x16b6e0(0x171)]['id']:_0x1ac554[_0x16b6e0(0x131)][_0x16b6e0(0x135)],_0x574b7f=_0x1ac554[_0x16b6e0(0x130)],_0x5a0f9d=_0x574b7f['getContext'](),_0x72d9a=_0x574b7f[_0x16b6e0(0xf8)]()['get'](_0x3380ec);if(!_0x72d9a)return logger['debug'](_0x16b6e0(0xe3)+_0x3380ec),{};logger['debug'](_0x16b6e0(0x174)+_0x3380ec);const {[TestFrameworkConstants[_0x16b6e0(0xec)]]:_0x16de9f='',[TestFrameworkConstants[_0x16b6e0(0x19e)]]:_0x41a0fd='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4c1857='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x2151c1=''}=_0x72d9a,_0x1d9828=_0x574b7f[_0x16b6e0(0x10d)]()[_0x16b6e0(0x16e)]()[_0x16b6e0(0x125)]('.')[0x1],_0x91aec0=_0x574b7f['getCurrentHookState']()['toString']()[_0x16b6e0(0x125)]('.')[0x1],_0xd01dad=global?.['browserstackPlatformIndex']??0x0,_0x471ebf=_0x574b7f['getRef'](),_0x318100=Buffer[_0x16b6e0(0x10e)](JSON[_0x16b6e0(0x16c)](_0x72d9a))['toString'](_0x55fc00[_0x16b6e0(0x14b)]),_0x52bd1f={'hash':_0x5a0f9d['getId'](),'threadId':_0x5a0f9d[_0x16b6e0(0x182)]()[_0x16b6e0(0x16e)](),'processId':_0x5a0f9d[_0x16b6e0(0x157)]()['toString']()},_0x10cce2={};_0x10cce2[_0x16b6e0(0xed)]=_0xd01dad,_0x10cce2[_0x16b6e0(0x108)]=_0x16de9f,_0x10cce2[_0x16b6e0(0x1a0)]=_0x41a0fd,_0x10cce2['testFrameworkState']=_0x1d9828,_0x10cce2['hookState']=_0x91aec0,_0x10cce2[_0x16b6e0(0xde)]=_0x4c1857,_0x10cce2['endedAt']=_0x2151c1,_0x10cce2[_0x16b6e0(0x133)]=_0x471ebf,_0x10cce2['eventJson']=_0x318100,_0x10cce2[_0x16b6e0(0x18a)]=_0x52bd1f;const _0x1d8a15=_0x10cce2;return logger[_0x16b6e0(0x158)](_0x16b6e0(0x146)+_0x3380ec+_0x16b6e0(0x178)+_0x1d9828+_0x16b6e0(0x161)+_0x91aec0),_0x1d8a15;}catch(_0x238e8d){return logger[_0x16b6e0(0x19f)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x16b6e0(0xef)](_0x238e8d)),{};}}async[a91_0x4be0a1(0x198)](_0x72d38c,_0x142d8a,_0x48e845){const _0x515d7a=a91_0x4be0a1,_0x26aac2={'Cfkab':function(_0x30dc4c,_0x1f946a,_0x52a583){return _0x30dc4c(_0x1f946a,_0x52a583);},'SpHMV':function(_0x41c3f2,_0x46a411){return _0x41c3f2===_0x46a411;},'qkJFX':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','ZTEhv':function(_0x5bfae1,_0x3cd3b1){return _0x5bfae1/_0x3cd3b1;},'jDpvX':function(_0x338fcf,_0x47f8a8){return _0x338fcf<_0x47f8a8;},'NvkrP':function(_0x4e9d9d,_0x550305){return _0x4e9d9d*_0x550305;},'PDPgE':function(_0x4839f3,_0xf414b9){return _0x4839f3+_0xf414b9;},'MkztA':function(_0x55f33,_0x2c7f9e){return _0x55f33+_0x2c7f9e;},'XeVGN':function(_0x45dc1a,_0xe3ab44){return _0x45dc1a+_0xe3ab44;},'OSXAl':_0x515d7a(0x103)};try{const _0x5aeb06=_0x48e845[_0x515d7a(0x11c)],_0x4330db=_0x72d38c['getAllData']()['get'](_0x5aeb06),{[TestFrameworkConstants[_0x515d7a(0xec)]]:_0x1dfe95='',[TestFrameworkConstants[_0x515d7a(0x19e)]]:_0x41679e=''}=_0x4330db,_0x12f979=TestInfo[_0x515d7a(0xe7)](_0x5aeb06),_0x4b5f4e=TestInfo[_0x515d7a(0xdd)](_0x5aeb06)[TestFrameworkConstants[_0x515d7a(0x177)]]||{},_0x54ebd8=_0x26aac2['Cfkab'](getMediaArtifactsLogs,_0x4b5f4e,_0x72d38c[_0x515d7a(0xf8)]()[_0x515d7a(0x168)](_0x5aeb06)[TestFrameworkConstants[_0x515d7a(0xe4)]]),_0x12db12=(_0x12f979||[])[_0x515d7a(0x102)](_0x54ebd8||[]);if(!_0x12db12||_0x26aac2[_0x515d7a(0x196)](_0x12db12[_0x515d7a(0x100)],0x0)){logger['debug'](_0x26aac2[_0x515d7a(0xe2)]);return;}const _0x3c1582=0x28,_0x234916=Math[_0x515d7a(0x10c)](_0x26aac2[_0x515d7a(0x11b)](_0x12db12[_0x515d7a(0x100)],_0x3c1582));for(let _0x4174ca=0x0;_0x26aac2['jDpvX'](_0x4174ca,_0x234916);_0x4174ca++){const _0x3fa626=_0x26aac2['NvkrP'](_0x4174ca,_0x3c1582),_0x2f13b2=_0x26aac2[_0x515d7a(0xe5)](_0x3fa626,_0x3c1582),_0x5f302a=_0x12db12[_0x515d7a(0x164)](_0x3fa626,_0x2f13b2),_0xc81fcc={'platformIndex':global?.[_0x515d7a(0x13f)]??0x0,'logs':_0x5f302a,'testFrameworkName':_0x1dfe95,'testFrameworkVersion':_0x41679e,'testFrameworkState':_0x142d8a[_0x515d7a(0x16e)]()[_0x515d7a(0x125)]('.')[0x1]};logger[_0x515d7a(0x158)](_0x515d7a(0x1a6)+_0x5aeb06+_0x515d7a(0xf5)+_0x26aac2['MkztA'](_0x4174ca,0x1)+'/'+_0x234916+_0x515d7a(0x15c)+util['inspect'](_0xc81fcc));const _0x221d8b=await GrpcClient[_0x515d7a(0xf2)]()['logCreatedEvent'](_0xc81fcc);logger[_0x515d7a(0x158)](_0x515d7a(0x1a6)+_0x5aeb06+'\x20batch\x20'+_0x26aac2[_0x515d7a(0x154)](_0x4174ca,0x1)+'/'+_0x234916+_0x515d7a(0x195)+util[_0x515d7a(0x14e)](_0x221d8b));}}catch(_0x2e9946){logger[_0x515d7a(0x19f)](_0x515d7a(0x116)+util[_0x515d7a(0xef)](_0x2e9946));}logger[_0x515d7a(0x158)](_0x26aac2[_0x515d7a(0x138)]);}['storePendingHook'](_0x2a5374,_0x5af5ea,_0x149c08,_0x5d20c2,_0x21e077){const _0x5e1bcf=a91_0x4be0a1,_0x52fee0={'testId':_0x5af5ea,'testFrameworkState':_0x149c08,'hookState':_0x5d20c2,'args':_0x21e077,'timestamp':new Date()[_0x5e1bcf(0x181)]()};_0x2a5374['addPendingHook'](_0x5af5ea,_0x52fee0),logger[_0x5e1bcf(0x158)](_0x5e1bcf(0x18c)+_0x5af5ea+',\x20state:\x20'+_0x149c08+_0x5e1bcf(0xf4)+_0x5d20c2);}async[a91_0x4be0a1(0x160)](_0x43660c,_0x3ed9e1){const _0x5862a2=a91_0x4be0a1,_0x3b56d5={};_0x3b56d5['aJrBm']=function(_0x17b922,_0x2b950b){return _0x17b922>_0x2b950b;};const _0x3755b1=_0x3b56d5;if(!_0x43660c[_0x5862a2(0x13e)](_0x3ed9e1))return;const _0x5c5419=_0x43660c['getPendingHooks'](_0x3ed9e1);logger[_0x5862a2(0x158)]('Processing\x20'+_0x5c5419[_0x5862a2(0x100)]+_0x5862a2(0x19a)+_0x3ed9e1);for(const _0x1b4ce9 of _0x5c5419){try{const _0x483fe9=await this['trackHookEvent'](_0x43660c,_0x1b4ce9[_0x5862a2(0xe0)],_0x1b4ce9[_0x5862a2(0x11a)],_0x1b4ce9[_0x5862a2(0xeb)]);_0x483fe9&&_0x3755b1[_0x5862a2(0xfb)](Object[_0x5862a2(0x197)](_0x483fe9)[_0x5862a2(0x100)],0x0)&&_0x43660c[_0x5862a2(0x128)](_0x483fe9),await this['runHooks'](_0x43660c,_0x1b4ce9['testFrameworkState'],_0x1b4ce9['hookState'],_0x1b4ce9['args']);}catch(_0x4d90c2){logger['error'](_0x5862a2(0x123)+_0x3ed9e1+_0x5862a2(0x110)+_0x4d90c2);}}_0x43660c['removePendingHooks'](_0x3ed9e1),logger[_0x5862a2(0x158)](_0x5862a2(0x139)+_0x3ed9e1);}}module['exports']=CucumberTestFramework;
1
+ const a91_0x1dab6d=a91_0x41f8;(function(_0xd40be2,_0x1ff2df){const _0xcc25f7=a91_0x41f8,_0x2f8186=_0xd40be2();while(!![]){try{const _0xcf9933=parseInt(_0xcc25f7(0x1a6))/0x1*(-parseInt(_0xcc25f7(0x102))/0x2)+parseInt(_0xcc25f7(0x185))/0x3+-parseInt(_0xcc25f7(0x125))/0x4+-parseInt(_0xcc25f7(0x165))/0x5*(-parseInt(_0xcc25f7(0x1c2))/0x6)+parseInt(_0xcc25f7(0x109))/0x7*(-parseInt(_0xcc25f7(0x136))/0x8)+-parseInt(_0xcc25f7(0x18f))/0x9*(-parseInt(_0xcc25f7(0x1a8))/0xa)+parseInt(_0xcc25f7(0x1c6))/0xb*(parseInt(_0xcc25f7(0x1c0))/0xc);if(_0xcf9933===_0x1ff2df)break;else _0x2f8186['push'](_0x2f8186['shift']());}catch(_0x12428e){_0x2f8186['push'](_0x2f8186['shift']());}}}(a91_0x21f0,0xd5e0e));const TestFramework=require('./testFramework'),TestFrameworkState=require(a91_0x1dab6d(0x187)),HookState=require(a91_0x1dab6d(0x175)),{createClassLogger}=require(a91_0x1dab6d(0x1bb)),TestFrameworkInstance=require(a91_0x1dab6d(0x1b1)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a91_0x1dab6d(0x176)),TestFrameworkConstants=require(a91_0x1dab6d(0x15f)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x1dab6d(0x12f)),logger=createClassLogger(a91_0x1dab6d(0x100)),{v4:uuidv4}=require('uuid'),util=require(a91_0x1dab6d(0x188)),TestInfo=require(a91_0x1dab6d(0x1a2)),GrpcClient=require(a91_0x1dab6d(0xff));function a91_0x21f0(){const _0x5b5a34=['\x20hookState:\x20','finished_at','./constants/testFrameworkConstants.js','\x20response=','getCurrentInstanceName','LOG_REPORT','KEY_TEST_ID','setTestDetails','2350195uLmLJD','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_FRAMEWORK_VERSION','meta','NONE','storePendingHook','tags','unknown','testFrameworkVersion','\x20for\x20test:\x20','GPLvx','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','getThreadId','KEY_TEST_LOGS','\x20payload=','../state/hookState.js','../instances/trackedInstance.js','Oekwj','getPendingHooks','browserstackPlatformIndex','error','KEY_HOOK_FAILURE','testUUID','get','testData','wmvXV','code','getTestUUID','endedAt','ZqgVb','DEFAULT_TEST_RESULT','4675152sEtXfH','KEY_EVENT_ENDED_AT','../state/testFrameworkState.js','util','body','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','getAllData','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','addMultipleEntries','concat','927ygYDcF','KEY_CUSTOM_TAGS','Updated\x20cucumber\x20test\x20result:\x20','getContext','started_at','KEY_AUTOMATE_SESSION_NAME','result','format','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','getCurrentHookState','KEY_TEST_LOCATION','tRNTT','test_run_id','processPendingHooks','adDsm','keys','toISOString','Wjgdm','TqPLV','../TestInfo.js','executionContext','createContext','KEY_TEST_NAME','1bLVEyt','from','110020IjUcPo','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','debug','split','location','LXZla','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_STARTED_AT','../instances/testFrameworkInstance.js','getTestDetails','runHooks','KEY_TEST_RERUN_NAME','cgZZM','KEY_TEST_RESULT','Processing\x20','PRE','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','ySRfN','../../../helpers/classLogger.js','createTestFrameworkEventPayload','getCurrentTestState','length','TYtGI','12ZDcoko','KEY_TEST_TAGS','6wEdTAE','matchHookRegex','instance','LsTDy','9591824GqQRfl','KEY_TEST_SCOPE','MJjPE','failure_reason',',\x20error:\x20','GmCei','testFrameworkName','../grpcClient','CucumberTestFramework','KEY_HOOK_RESULT','1898954ozRvCF','name','args','failure','sendLogCreatedEvent','getProcessId',',\x20hookState:\x20','7854637ywJsuJ','removePendingHooks','getTestFrameworksVersions','KEY_HOOKS_STARTED','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_FAILURE_TYPE','hook_type','rerun_name','trackHookEvent','iDugN','getTestFrameworks',',\x20storing\x20as\x20pending\x20hook','KEY_HOOK_LAST_STARTED','uuid','failure_data','trackEvent','zpYqF','KEY_TEST_META','KEY_EVENT_STARTED_AT','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','inspect','KEY_HOOK_LAST_FINISHED','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','\x20&\x20hookState=','key','DEFAULT_HOOK_RESULT','hooks','INSSK','4343996QUevYQ','KEY_HOOKS_FINISHED','XBoAA','slice','XcjFV','parseCucumberTestResult','platformIndex','createTestFrameworkEventPayload\x20testId:\x20','\x20testState:\x20','failure_type','../../../helpers/helper.js','KEY_TEST_ENDED_AT','failed','lsOte','getId','hookState','TEST','8vsXtDL','UnhandledError','\x20with\x20UUID:\x20','kcATa','ozftB','stringify','sytMf','parseCucumberTest','getTrackedInstance',',\x20state:\x20','bTaeT','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','POST','addPendingHook','KEY_TEST_RESULT_AT','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_SCOPES','exports','Anbjv','KEY_TEST_FRAMEWORK_NAME','push','test','Cucumber\x20log\x20created\x20event','KEY_LOGS','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_CODE','resolveInstance','OAXHg','KEY_TEST_UUID','GPPoA','getRef','\x20with\x20result:\x20','toString','KEY_TEST_ATTACHMENTS','trackCucumberInstance','KEY_HOOK_ID','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20batch\x20'];a91_0x21f0=function(){return _0x5b5a34;};return a91_0x21f0();}function a91_0x41f8(_0x3eb95a,_0x29f895){const _0x21f038=a91_0x21f0();return a91_0x41f8=function(_0x41f842,_0x1d552c){_0x41f842=_0x41f842-0xff;let _0x1267a1=_0x21f038[_0x41f842];return _0x1267a1;},a91_0x41f8(_0x3eb95a,_0x29f895);}class CucumberTestFramework extends TestFramework{constructor(_0x50a7c2,_0x14bd1d,_0x5c871e){super(_0x50a7c2,_0x14bd1d,_0x5c871e);}async[a91_0x1dab6d(0x118)](_0x3d77cb,_0x1fd55b,_0x19f083={}){const _0x1fcaf9=a91_0x1dab6d,_0x493ae4={};_0x493ae4[_0x1fcaf9(0x1bf)]=_0x1fcaf9(0x170),_0x493ae4[_0x1fcaf9(0x140)]=function(_0xaf3a9a,_0x302258){return _0xaf3a9a===_0x302258;},_0x493ae4[_0x1fcaf9(0x17f)]=function(_0x619169,_0x1a619a){return _0x619169===_0x1a619a;},_0x493ae4[_0x1fcaf9(0x1b5)]=_0x1fcaf9(0x18c);const _0x42e0b9=_0x493ae4;await super[_0x1fcaf9(0x118)](_0x3d77cb,_0x1fd55b,_0x19f083);const _0x32f397=this['resolveInstance'](_0x3d77cb,_0x1fd55b,_0x19f083);if(!_0x32f397){logger[_0x1fcaf9(0x1ab)](_0x42e0b9[_0x1fcaf9(0x1bf)]);return;}try{let _0x21bb99,_0x264b07;switch(_0x3d77cb){case TestFrameworkState['TEST']:_0x21bb99=_0x19f083['test'],_0x264b07=TestInfo[_0x1fcaf9(0x181)](_0x21bb99['id']);if(_0x42e0b9[_0x1fcaf9(0x140)](_0x1fd55b,HookState[_0x1fcaf9(0x1b8)])){logger['debug'](_0x1fcaf9(0x197)+_0x21bb99['id']);const _0x5595d3={};_0x5595d3['testUUID']=_0x264b07,_0x5595d3['testData']=_0x21bb99,_0x32f397[_0x1fcaf9(0x18d)](this[_0x1fcaf9(0x13d)](_0x5595d3)),logger['debug'](_0x1fcaf9(0x142)+_0x21bb99['id']),await this[_0x1fcaf9(0x19c)](_0x32f397,_0x21bb99['id']);}else{if(_0x42e0b9[_0x1fcaf9(0x140)](_0x1fd55b,HookState[_0x1fcaf9(0x143)])){const _0x235ff4={};_0x235ff4[_0x1fcaf9(0x17c)]=_0x264b07,_0x235ff4[_0x1fcaf9(0x17e)]=_0x21bb99,_0x32f397[_0x1fcaf9(0x18d)](this[_0x1fcaf9(0x12a)](_0x235ff4)),await this[_0x1fcaf9(0x19c)](_0x32f397,_0x21bb99['id']);}}break;case TestFrameworkState[_0x1fcaf9(0x162)]:_0x42e0b9[_0x1fcaf9(0x17f)](_0x1fd55b,HookState[_0x1fcaf9(0x143)])&&await this['sendLogCreatedEvent'](_0x32f397,_0x3d77cb,_0x19f083);break;default:if(CLIUtils[_0x1fcaf9(0x1c3)](_0x3d77cb['toString']()[_0x1fcaf9(0x1ac)]('.')[0x1])){const _0x38c52f=await this['trackHookEvent'](_0x32f397,_0x3d77cb,_0x1fd55b,_0x19f083);_0x32f397[_0x1fcaf9(0x18d)](_0x38c52f);}else logger[_0x1fcaf9(0x1ab)](_0x1fcaf9(0x1af)+_0x3d77cb+_0x1fcaf9(0x120)+_0x1fd55b);break;}}catch(_0x3dea23){logger[_0x1fcaf9(0x17a)](util[_0x1fcaf9(0x196)](_0x42e0b9['cgZZM'],_0x3d77cb,_0x1fd55b,_0x19f083[_0x1fcaf9(0x1be)],_0x3dea23));}_0x19f083[_0x1fcaf9(0x1c4)]=_0x32f397,await this[_0x1fcaf9(0x1b3)](_0x32f397,_0x3d77cb,_0x1fd55b,_0x19f083);}[a91_0x1dab6d(0x151)](_0x469bed,_0x5582aa,_0x23a96a={}){const _0x4deead=a91_0x1dab6d,_0x2b06bf={};_0x2b06bf[_0x4deead(0x1cb)]=function(_0x5d3e6f,_0x5eed6b){return _0x5d3e6f===_0x5eed6b;},_0x2b06bf[_0x4deead(0x13c)]=function(_0xad55ce,_0x155df2){return _0xad55ce===_0x155df2;};const _0x49251f=_0x2b06bf;let _0x400e55=null;return(_0x49251f[_0x4deead(0x1cb)](_0x469bed,TestFrameworkState['INIT_TEST'])||_0x49251f[_0x4deead(0x13c)](_0x469bed,TestFrameworkState[_0x4deead(0x169)]))&&this[_0x4deead(0x159)](_0x469bed,_0x23a96a),_0x400e55=TestFramework[_0x4deead(0x13e)](),_0x400e55;}['trackCucumberInstance'](_0x418057,_0x5e3128){const _0x57c29=a91_0x1dab6d,_0x552de0=CLIUtils[_0x57c29(0x161)](),_0xf948c7=TrackedInstance[_0x57c29(0x1a4)](_0x552de0);let _0x5d2d89=null;logger[_0x57c29(0x1ab)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x552de0+',\x20state='+_0x418057),_0x5d2d89=new TestFrameworkInstance(_0xf948c7,this[_0x57c29(0x113)](),this[_0x57c29(0x10b)](),_0x418057,HookState[_0x57c29(0x169)]),TestFramework['setTrackedInstance'](_0xf948c7,_0x5d2d89),logger[_0x57c29(0x1ab)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0xf948c7[_0x57c29(0x133)]()+'\x20target='+_0x552de0);}[a91_0x1dab6d(0x13d)](_0x34f1cf){const _0x436ce6=a91_0x1dab6d,_0x3ac06d={};_0x3ac06d[_0x436ce6(0x1ba)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x1710f4=_0x3ac06d,{testUUID:_0x2977f8,testData:_0x1336b4}=_0x34f1cf;if(!_0x1336b4||!_0x1336b4[_0x436ce6(0x116)])return logger[_0x436ce6(0x1ab)](_0x1710f4[_0x436ce6(0x1ba)]),{};const _0x2144a8=_0x2977f8,_0x3f4bf2=_0x1336b4['uuid'],_0x57b8ab=this[_0x436ce6(0x113)]()[0x0],_0x6240de=this[_0x436ce6(0x10b)](),_0x5ca919={[TestFrameworkConstants[_0x436ce6(0x14a)]]:_0x57b8ab,[TestFrameworkConstants[_0x436ce6(0x167)]]:_0x6240de[_0x57b8ab],[TestFrameworkConstants[_0x436ce6(0x173)]]:[],[TestFrameworkConstants[_0x436ce6(0x126)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x436ce6(0x153)]]:_0x2144a8,[TestFrameworkConstants[_0x436ce6(0x1b6)]]:TestFrameworkConstants[_0x436ce6(0x184)],[TestFrameworkConstants[_0x436ce6(0x194)]]:_0x1336b4[_0x436ce6(0x103)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1336b4['file_name']||'',[TestFrameworkConstants[_0x436ce6(0x163)]]:_0x3f4bf2,[TestFrameworkConstants[_0x436ce6(0x1a5)]]:_0x1336b4[_0x436ce6(0x103)]||'',[TestFrameworkConstants[_0x436ce6(0x199)]]:_0x1336b4[_0x436ce6(0x1ad)]||'',[TestFrameworkConstants[_0x436ce6(0x150)]]:_0x1336b4[_0x436ce6(0x189)]?.[_0x436ce6(0x180)]||null,[TestFrameworkConstants[_0x436ce6(0x1c1)]]:_0x1336b4[_0x436ce6(0x16b)]||[],[TestFrameworkConstants[_0x436ce6(0x1b0)]]:_0x1336b4['startedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x436ce6(0x1c7)]]:_0x1336b4['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x436ce6(0x147)]]:_0x1336b4['scopes']||[],[TestFrameworkConstants[_0x436ce6(0x1b4)]]:_0x1336b4['customRerunParam']?.[_0x436ce6(0x110)]||_0x1336b4[_0x436ce6(0x103)]||'',[TestFrameworkConstants[_0x436ce6(0x190)]]:{},[TestFrameworkConstants[_0x436ce6(0x11a)]]:_0x1336b4[_0x436ce6(0x168)]||{}};TestInfo['setTestDetails'](_0x3f4bf2,_0x5ca919),logger[_0x436ce6(0x1ab)]('Parsed\x20cucumber\x20test:\x20'+_0x1336b4[_0x436ce6(0x103)]+_0x436ce6(0x138)+_0x2144a8);const _0x33a2a5={};return _0x33a2a5[_0x3f4bf2]=_0x5ca919,_0x33a2a5;}[a91_0x1dab6d(0x12a)](_0x1b03d6){const _0x594321=a91_0x1dab6d,_0x58c9de={'MJjPE':_0x594321(0x146),'VWROo':_0x594321(0x16c),'Anbjv':function(_0x38751d,_0x26d371){return _0x38751d===_0x26d371;},'kcATa':_0x594321(0x131),'adDsm':_0x594321(0x137),'PjtCK':function(_0x2bbf67,_0x14d45e,_0x4b14aa){return _0x2bbf67(_0x14d45e,_0x4b14aa);},'INSSK':function(_0x3f52be,_0x316ed5){return _0x3f52be>_0x316ed5;}},{testUUID:_0x16fec0,testData:_0x4952cf}=_0x1b03d6;if(!_0x4952cf||!_0x4952cf[_0x594321(0x116)])return logger[_0x594321(0x1ab)](_0x58c9de[_0x594321(0x1c8)]),{};const _0x3e89a3=this[_0x594321(0x151)](TestFrameworkState[_0x594321(0x135)],HookState[_0x594321(0x143)]),_0x550044=_0x4952cf['uuid'],_0x3abd7f=TestInfo[_0x594321(0x1b2)](_0x550044)||{},_0x2284a7=_0x3abd7f?_0x3abd7f[TestFrameworkConstants[_0x594321(0x190)]]||{}:{},_0x27360a={..._0x3abd7f,[TestFrameworkConstants[_0x594321(0x1b6)]]:_0x4952cf[_0x594321(0x195)]||_0x58c9de['VWROo'],[TestFrameworkConstants[_0x594321(0x130)]]:_0x4952cf['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x594321(0x145)]]:new Date()[_0x594321(0x19f)](),[TestFrameworkConstants[_0x594321(0x190)]]:_0x2284a7,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x594321(0x11a)]]:_0x4952cf[_0x594321(0x168)]||{}};_0x58c9de[_0x594321(0x149)](_0x4952cf[_0x594321(0x195)],_0x58c9de[_0x594321(0x139)])&&_0x4952cf[_0x594321(0x105)]&&(_0x27360a[TestFrameworkConstants[_0x594321(0x10e)]]=_0x4952cf[_0x594321(0x12e)]||_0x58c9de[_0x594321(0x19d)],_0x27360a[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4952cf[_0x594321(0x1c9)]||'',_0x27360a[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x4952cf[_0x594321(0x105)]);const _0x23d8f4=TestInfo['getTestDetails'](_0x550044)[TestFrameworkConstants[_0x594321(0x158)]]||{},_0x5443f6=_0x58c9de['PjtCK'](getManualUploadLogs,_0x23d8f4,_0x3e89a3[_0x594321(0x18b)]()[_0x594321(0x17d)](_0x550044)[TestFrameworkConstants[_0x594321(0x153)]]);if(_0x58c9de['INSSK'](_0x5443f6[_0x594321(0x1be)],0x0)){const _0x410e8f=_0x27360a[TestFrameworkConstants[_0x594321(0x14e)]]||[];_0x27360a[TestFrameworkConstants[_0x594321(0x14e)]]=[..._0x410e8f,..._0x5443f6];}_0x4952cf[_0x594321(0x123)]&&_0x58c9de[_0x594321(0x124)](_0x4952cf[_0x594321(0x123)]['length'],0x0)&&(_0x27360a[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x4952cf['hooks']);TestInfo[_0x594321(0x164)](_0x550044,_0x27360a),logger['debug'](_0x594321(0x191)+_0x4952cf[_0x594321(0x103)]+_0x594321(0x156)+_0x4952cf[_0x594321(0x195)]);const _0x587393={};return _0x587393[_0x550044]=_0x27360a,_0x587393;}async['trackHookEvent'](_0x5c48e4,_0x12781f,_0x375348,_0x282049){const _0x516fe8=a91_0x1dab6d,_0x3e94d6={'vjbSM':_0x516fe8(0x171),'kSqrf':function(_0x4d6337){return _0x4d6337();},'GPPoA':function(_0x5301eb,_0x2dc267){return _0x5301eb in _0x2dc267;},'GPLvx':function(_0x8b6ee8,_0x26387b){return _0x8b6ee8 in _0x26387b;},'Oekwj':function(_0x3d52d8,_0x3b3b74){return _0x3d52d8===_0x3b3b74;},'TqPLV':function(_0x1e6424,_0x5c0600){return _0x1e6424===_0x5c0600;},'tRNTT':function(_0x362baa,_0x5dafc5){return _0x362baa>_0x5dafc5;},'zpYqF':_0x516fe8(0x131),'LsTDy':'UnhandledError','ZqgVb':'passed','imsQe':function(_0x4496df,_0x2a0b60){return _0x4496df!==_0x2a0b60;}},{hookData:_0x39d7da}=_0x282049;if(!_0x39d7da)return logger['debug'](_0x3e94d6['vjbSM']),{};const _0x5874c0=_0x39d7da[_0x516fe8(0x116)]||_0x3e94d6['kSqrf'](uuidv4),_0x96658e=_0x39d7da[_0x516fe8(0x19b)],_0x498b99=_0x12781f[_0x516fe8(0x157)]()[_0x516fe8(0x1ac)]('.')[0x1],_0x1075df=TestInfo[_0x516fe8(0x1b2)](_0x96658e)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x2b2790=_0x5c48e4[_0x516fe8(0x18b)]()[_0x516fe8(0x17d)](_0x96658e);if(!_0x2b2790)return logger[_0x516fe8(0x1ab)](_0x516fe8(0x11c)+_0x96658e+_0x516fe8(0x114)),this['storePendingHook'](_0x5c48e4,_0x96658e,_0x12781f,_0x375348,_0x282049),{};let _0x40dfc3=_0x2b2790[TestFrameworkConstants[_0x516fe8(0x10c)]];!_0x40dfc3&&(_0x40dfc3={});!_0x3e94d6[_0x516fe8(0x154)](_0x498b99,_0x40dfc3)&&(_0x40dfc3[_0x498b99]=[]);let _0xa50b4f=_0x2b2790[TestFrameworkConstants[_0x516fe8(0x126)]];!_0xa50b4f&&(_0xa50b4f={});!_0x3e94d6[_0x516fe8(0x16f)](_0x498b99,_0xa50b4f)&&(_0xa50b4f[_0x498b99]=[]);const _0x5e3f8f={[TestFrameworkConstants[_0x516fe8(0x10c)]]:_0x40dfc3,[TestFrameworkConstants[_0x516fe8(0x126)]]:_0xa50b4f},_0x196812={};_0x196812[_0x96658e]=_0x5e3f8f;const _0x304207=_0x196812;if(_0x3e94d6[_0x516fe8(0x177)](_0x375348,HookState[_0x516fe8(0x1b8)])){const _0x4270b2={[TestFrameworkConstants[_0x516fe8(0x15a)]]:_0x5874c0,[TestFrameworkConstants[_0x516fe8(0x101)]]:TestFrameworkConstants[_0x516fe8(0x122)],[TestFrameworkConstants[_0x516fe8(0x11b)]]:_0x39d7da[_0x516fe8(0x193)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x39d7da[_0x516fe8(0x10f)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x1075df};_0x4270b2[_0x516fe8(0x121)]=_0x498b99;const _0x28cd9f=_0x4270b2;_0x40dfc3[_0x498b99][_0x516fe8(0x14b)](_0x28cd9f),_0x304207[_0x96658e][TestFrameworkConstants[_0x516fe8(0x115)]]=_0x498b99,logger[_0x516fe8(0x1ab)](_0x516fe8(0x1b9)+_0x498b99+'\x20&\x20hook\x20=\x20'+_0x28cd9f+_0x516fe8(0x1a9)+_0x282049);}else{if(_0x3e94d6[_0x516fe8(0x1a1)](_0x375348,HookState['POST'])){const _0x272f8b=_0x39d7da[_0x516fe8(0x195)],_0xea1122=_0x40dfc3[_0x498b99]||[];logger[_0x516fe8(0x1ab)](_0x516fe8(0x18a)+_0xea1122+'\x20and\x20args\x20=\x20'+_0x282049);if(_0x3e94d6[_0x516fe8(0x19a)](_0xea1122[_0x516fe8(0x1be)],0x0)){const _0x3e151e=_0xea1122['pop']();_0x3e94d6['TqPLV'](_0x39d7da[_0x516fe8(0x195)],_0x3e94d6[_0x516fe8(0x119)])&&_0x39d7da[_0x516fe8(0x117)]?(_0x3e151e[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x39d7da[_0x516fe8(0x12e)]||_0x3e94d6[_0x516fe8(0x1c5)],_0x3e151e[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x39d7da['failure_reason']||'',_0x3e151e[TestFrameworkConstants[_0x516fe8(0x17b)]]=_0x39d7da['failure_data']):_0x3e151e[TestFrameworkConstants[_0x516fe8(0x101)]]=_0x3e94d6[_0x516fe8(0x183)];_0x3e94d6['imsQe'](_0x272f8b,TestFrameworkConstants[_0x516fe8(0x122)])&&(_0x3e151e[TestFrameworkConstants[_0x516fe8(0x101)]]=_0x272f8b);_0x3e151e[TestFrameworkConstants[_0x516fe8(0x186)]]=_0x39d7da[_0x516fe8(0x15e)]||new Date()['toISOString'](),_0x3e151e[TestFrameworkConstants[_0x516fe8(0x190)]]=_0x1075df;const _0x267ef5=_0x3e151e[TestFrameworkConstants[_0x516fe8(0x15a)]];!_0xa50b4f[_0x498b99]&&(_0xa50b4f[_0x498b99]=[]),_0xa50b4f[_0x498b99][_0x516fe8(0x14b)](_0x3e151e),_0x304207[_0x96658e][TestFrameworkConstants[_0x516fe8(0x11e)]]=_0x498b99;}}}return logger[_0x516fe8(0x1ab)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x39d7da['hook_type']+'\x20with\x20id\x20'+_0x5874c0+_0x516fe8(0x16e)+_0x96658e),_0x304207;}[a91_0x1dab6d(0x1bc)](_0x51c2de){const _0x501f8a=a91_0x1dab6d,_0x57c3b8={};_0x57c3b8[_0x501f8a(0x13a)]='base64';const _0x22b3ec=_0x57c3b8;try{const _0x5a8004=_0x51c2de[_0x501f8a(0x14c)]?_0x51c2de['test']['id']:_0x51c2de['hookData'][_0x501f8a(0x19b)],_0x155895=_0x51c2de['instance'],_0x4d94ad=_0x155895[_0x501f8a(0x192)](),_0x5c7f84=_0x155895[_0x501f8a(0x18b)]()[_0x501f8a(0x17d)](_0x5a8004);if(!_0x5c7f84)return logger['debug']('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x5a8004),{};logger[_0x501f8a(0x1ab)](_0x501f8a(0x12c)+_0x5a8004);const {[TestFrameworkConstants[_0x501f8a(0x14a)]]:_0x94f820='',[TestFrameworkConstants[_0x501f8a(0x167)]]:_0x5db516='',[TestFrameworkConstants[_0x501f8a(0x1b0)]]:_0x5722e6='',[TestFrameworkConstants[_0x501f8a(0x130)]]:_0x2d2cf5=''}=_0x5c7f84,_0x5b824d=_0x155895[_0x501f8a(0x1bd)]()[_0x501f8a(0x157)]()['split']('.')[0x1],_0x31653a=_0x155895[_0x501f8a(0x198)]()[_0x501f8a(0x157)]()[_0x501f8a(0x1ac)]('.')[0x1],_0x110de2=global?.[_0x501f8a(0x179)]??0x0,_0x56e1b1=_0x155895[_0x501f8a(0x155)](),_0x6126b2=Buffer[_0x501f8a(0x1a7)](JSON[_0x501f8a(0x13b)](_0x5c7f84))[_0x501f8a(0x157)](_0x22b3ec['ozftB']),_0x1788f2={'hash':_0x4d94ad[_0x501f8a(0x133)](),'threadId':_0x4d94ad[_0x501f8a(0x172)]()[_0x501f8a(0x157)](),'processId':_0x4d94ad[_0x501f8a(0x107)]()[_0x501f8a(0x157)]()},_0x49a339={};_0x49a339[_0x501f8a(0x12b)]=_0x110de2,_0x49a339[_0x501f8a(0x1cc)]=_0x94f820,_0x49a339[_0x501f8a(0x16d)]=_0x5db516,_0x49a339['testFrameworkState']=_0x5b824d,_0x49a339['hookState']=_0x31653a,_0x49a339['startedAt']=_0x5722e6,_0x49a339[_0x501f8a(0x182)]=_0x2d2cf5,_0x49a339['uuid']=_0x56e1b1,_0x49a339['eventJson']=_0x6126b2,_0x49a339[_0x501f8a(0x1a3)]=_0x1788f2;const _0x132e53=_0x49a339;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x5a8004+_0x501f8a(0x12d)+_0x5b824d+_0x501f8a(0x15d)+_0x31653a),_0x132e53;}catch(_0x10d1e9){return logger[_0x501f8a(0x17a)](_0x501f8a(0x166)+util['format'](_0x10d1e9)),{};}}async[a91_0x1dab6d(0x106)](_0x3d1fe9,_0x22dadd,_0x2130fe){const _0x12935e=a91_0x1dab6d,_0x231176={'xWDTU':function(_0x2ae086,_0x30dd9d,_0x540cb5){return _0x2ae086(_0x30dd9d,_0x540cb5);},'XtSKJ':function(_0x1a3fab,_0x45d568){return _0x1a3fab===_0x45d568;},'Wjgdm':_0x12935e(0x14f),'LXZla':function(_0x3f215c,_0x3b4cf1){return _0x3f215c/_0x3b4cf1;},'XcjFV':function(_0xab3a95,_0x52139b){return _0xab3a95<_0x52139b;},'iDugN':function(_0x2c3f7f,_0x32f618){return _0x2c3f7f*_0x32f618;},'GVabA':function(_0x5596e9,_0x2efa67){return _0x5596e9+_0x2efa67;},'lsOte':function(_0x4e3a5c,_0x46292a){return _0x4e3a5c+_0x46292a;},'XBoAA':_0x12935e(0x14d)};try{const _0x74a68f=_0x2130fe[_0x12935e(0x17c)],_0x2da141=_0x3d1fe9[_0x12935e(0x18b)]()[_0x12935e(0x17d)](_0x74a68f),{[TestFrameworkConstants[_0x12935e(0x14a)]]:_0x1a5b0c='',[TestFrameworkConstants[_0x12935e(0x167)]]:_0x4635d9=''}=_0x2da141,_0x583df4=TestInfo['readLogObjects'](_0x74a68f),_0x3500e2=TestInfo[_0x12935e(0x1b2)](_0x74a68f)[TestFrameworkConstants[_0x12935e(0x158)]]||{},_0x1c0722=_0x231176['xWDTU'](getMediaArtifactsLogs,_0x3500e2,_0x3d1fe9[_0x12935e(0x18b)]()['get'](_0x74a68f)[TestFrameworkConstants[_0x12935e(0x153)]]),_0x33458f=(_0x583df4||[])[_0x12935e(0x18e)](_0x1c0722||[]);if(!_0x33458f||_0x231176['XtSKJ'](_0x33458f[_0x12935e(0x1be)],0x0)){logger[_0x12935e(0x1ab)](_0x231176[_0x12935e(0x1a0)]);return;}const _0x250d55=0x28,_0x238658=Math['ceil'](_0x231176[_0x12935e(0x1ae)](_0x33458f[_0x12935e(0x1be)],_0x250d55));for(let _0x37f012=0x0;_0x231176[_0x12935e(0x129)](_0x37f012,_0x238658);_0x37f012++){const _0x353ed0=_0x231176[_0x12935e(0x112)](_0x37f012,_0x250d55),_0x5c8542=_0x231176['GVabA'](_0x353ed0,_0x250d55),_0x9f8dd2=_0x33458f[_0x12935e(0x128)](_0x353ed0,_0x5c8542),_0x5b1f9b={'platformIndex':global?.[_0x12935e(0x179)]??0x0,'logs':_0x9f8dd2,'testFrameworkName':_0x1a5b0c,'testFrameworkVersion':_0x4635d9,'testFrameworkState':_0x22dadd[_0x12935e(0x157)]()[_0x12935e(0x1ac)]('.')[0x1]};logger[_0x12935e(0x1ab)](_0x12935e(0x1aa)+_0x74a68f+_0x12935e(0x15c)+_0x231176[_0x12935e(0x132)](_0x37f012,0x1)+'/'+_0x238658+_0x12935e(0x174)+util[_0x12935e(0x11d)](_0x5b1f9b));const _0x4ae6a2=await GrpcClient['getInstance']()['logCreatedEvent'](_0x5b1f9b);logger[_0x12935e(0x1ab)](_0x12935e(0x1aa)+_0x74a68f+_0x12935e(0x15c)+_0x231176[_0x12935e(0x132)](_0x37f012,0x1)+'/'+_0x238658+_0x12935e(0x160)+util[_0x12935e(0x11d)](_0x4ae6a2));}}catch(_0x12a6f0){logger[_0x12935e(0x17a)](_0x12935e(0x15b)+util[_0x12935e(0x196)](_0x12a6f0));}logger[_0x12935e(0x1ab)](_0x231176[_0x12935e(0x127)]);}[a91_0x1dab6d(0x16a)](_0x46b643,_0x4cbfa5,_0x550f5c,_0x5ebec9,_0x2d5bfb){const _0x55aaa6=a91_0x1dab6d,_0x47c77a={'testId':_0x4cbfa5,'testFrameworkState':_0x550f5c,'hookState':_0x5ebec9,'args':_0x2d5bfb,'timestamp':new Date()['toISOString']()};_0x46b643[_0x55aaa6(0x144)](_0x4cbfa5,_0x47c77a),logger['debug'](_0x55aaa6(0x141)+_0x4cbfa5+_0x55aaa6(0x13f)+_0x550f5c+_0x55aaa6(0x108)+_0x5ebec9);}async['processPendingHooks'](_0x328a76,_0x469715){const _0x3e1c1c=a91_0x1dab6d,_0x472bdf={};_0x472bdf[_0x3e1c1c(0x152)]=function(_0x4acdbb,_0x355413){return _0x4acdbb>_0x355413;};const _0x348e00=_0x472bdf;if(!_0x328a76['hasPendingHooks'](_0x469715))return;const _0x1de05a=_0x328a76[_0x3e1c1c(0x178)](_0x469715);logger[_0x3e1c1c(0x1ab)](_0x3e1c1c(0x1b7)+_0x1de05a['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x469715);for(const _0x1b1ad3 of _0x1de05a){try{const _0x3eddeb=await this[_0x3e1c1c(0x111)](_0x328a76,_0x1b1ad3['testFrameworkState'],_0x1b1ad3[_0x3e1c1c(0x134)],_0x1b1ad3[_0x3e1c1c(0x104)]);_0x3eddeb&&_0x348e00[_0x3e1c1c(0x152)](Object[_0x3e1c1c(0x19e)](_0x3eddeb)[_0x3e1c1c(0x1be)],0x0)&&_0x328a76[_0x3e1c1c(0x18d)](_0x3eddeb),await this[_0x3e1c1c(0x1b3)](_0x328a76,_0x1b1ad3['testFrameworkState'],_0x1b1ad3['hookState'],_0x1b1ad3[_0x3e1c1c(0x104)]);}catch(_0x4e5930){logger['error'](_0x3e1c1c(0x11f)+_0x469715+_0x3e1c1c(0x1ca)+_0x4e5930);}}_0x328a76[_0x3e1c1c(0x10a)](_0x469715),logger[_0x3e1c1c(0x1ab)](_0x3e1c1c(0x10d)+_0x469715);}}module[a91_0x1dab6d(0x148)]=CucumberTestFramework;