browserstack-node-sdk 1.65.1 → 1.65.3

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 (216) 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/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.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/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a85_0x16a6(_0x6fc326,_0x28f093){const _0x48fe27=a85_0x48fe();return a85_0x16a6=function(_0x16a66f,_0x21f4dd){_0x16a66f=_0x16a66f-0xaf;let _0x1359d9=_0x48fe27[_0x16a66f];return _0x1359d9;},a85_0x16a6(_0x6fc326,_0x28f093);}const a85_0x3a807f=a85_0x16a6;function a85_0x48fe(){const _0xbd1724=['downloadLatestBinary','getAutomationFrameworkDetail','SDK_CLI_CHECK_UPDATE','sgFMp','XkpyG','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','statSync','tyiat','plyhS','qtHix','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','url','closeSync','basename','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','skipSessionName','join','platform','AjeJz','MuWHh','getCliDir','warn','SZgqy','./state/testFrameworkState.js','testFrameworkDetail','fileName','2lBLwEU','exports','Resolved\x20binary\x20path:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','error','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DOWNLOAD_HTTP','SDK_CLI_DOWNLOAD','22253DpriiN','yauzl','CADYB','cznWw','BROWSERSTACK_CLI_ENV','env','statusCode','5126268pYrtec','fnjxa','getWritableDir','uhWCz','IblHs','cli_version','testContextOptions','getSdkLanguage','NerNq','CLI\x20version\x20found\x20despite\x20error:\x20\x22','MjkRK','GKliD','getCLIParamsForDevEnv','preserveStatusCodeOnError','ZDRUP','cwd','./state/automationFrameworkState.js','end','vfkhu','close','node','YbOpA','VFiPb','info','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','map','code','mtime','acAUK','concat','data','BROWSERSTACK_BINARY_URL','aMooV','smorH','timeout','Binary\x20is\x20busy:\x20','HleGg','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','getSdkVersion','yQeUD','HVdKG','275QjkLNx','lZUXo','mergeObject','../../helpers/helper','BcguZ','difTI','once','split','TfMnV','0755','./state/hookState.js','KMkvj','PrrIr','shouldSkipSessionStatus','SHELL_EXECUTE_ERROR','952461uRtDhn','DALJB','entries','hLpiB','tAZAw','./instances/testFrameworkInstance.js','object','Configuring\x20Cli\x20path.','util','dbebj','../../helpers/performance/performance-tester.js','openReadStream','OVIpP','runShellCommand','0|4|2|1|3','\x20already\x20exists','VVSVm','version','HTTP\x20','lazyEntries','vZkrf','includes','isBinaryBusy','Development\x20Cli\x20Path:\x20','existsSync','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','downloadFileStream','aQLrN','.zip','QEpEk','./framework/constants/testFrameworkConstants.js','unlink','format','Resolving\x20with\x20stdout:\x20\x22','nujjw','YadOL','setupCliPath','../../helpers/performance/constants','setFrameworkDetail','chmod','USvjn','wUxip','\x20version','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','Failed\x20to\x20delete\x20zip\x20file:\x20','CLIUtils','NXPQK','46088CFPFgV','tezrm','dvckX','1432AWjVZc','filter','Jcbvd','777740eCfDXp','.tmp.','open','vMIDY','getExistingCliPath','startsWith','SYmkX','pid','child_process','trim','UeGMd','path','jTZqI','RGSsp','Setting\x20required\x20permissions\x20to\x20','hvgHR','910lnVptX','test','worker_threads','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','binary-','../utils/apiUtilityMethods.js','../../helpers/test-observability/utils.js','getHookRegistryKey','checkAndUpdateCli','getCurrentInstanceName','entry','tOmhE','shouldSkipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','stringify','length','../../helpers/utilities','181266DYrElT','homedir','unix:/tmp/sdk-platform-','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','tmpdir','debug','VaCQK','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','automationFrameworkDetail','xnLze','createWriteStream','Folder\x20','filePath','parse','cKzzZ','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','367949yoltmP','isArray','readdirSync','message','follow-redirects','readEntry','ZIAya','skipSessionStatus','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','../utils/constants','get','pipe','downloaded_file_','TQgJc','ZVisj',',\x20automationFramework=','\x20from\x20'];a85_0x48fe=function(){return _0xbd1724;};return a85_0x48fe();}(function(_0x43d40e,_0x49b22f){const _0x5e7259=a85_0x16a6,_0x372f98=_0x43d40e();while(!![]){try{const _0x5b59ad=parseInt(_0x5e7259(0x18a))/0x1*(-parseInt(_0x5e7259(0xd9))/0x2)+parseInt(_0x5e7259(0xea))/0x3+parseInt(_0x5e7259(0x158))/0x4+-parseInt(_0x5e7259(0x113))/0x5*(parseInt(_0x5e7259(0x17a))/0x6)+-parseInt(_0x5e7259(0x152))/0x7*(-parseInt(_0x5e7259(0x155))/0x8)+parseInt(_0x5e7259(0x122))/0x9+-parseInt(_0x5e7259(0x168))/0xa*(parseInt(_0x5e7259(0xe3))/0xb);if(_0x5b59ad===_0x49b22f)break;else _0x372f98['push'](_0x372f98['shift']());}catch(_0x2f8e96){_0x372f98['push'](_0x372f98['shift']());}}}(a85_0x48fe,0xedc55));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x3a807f(0x163)),{exec}=require(a85_0x3a807f(0x160)),{https}=require(a85_0x3a807f(0xb2)),yauzl=require(a85_0x3a807f(0xe4)),util=require(a85_0x3a807f(0x12a)),{getFrameworkVersion}=require(a85_0x3a807f(0x16e)),{threadId}=require(a85_0x3a807f(0x16a)),PerformanceTester=require(a85_0x3a807f(0x12c)),{EVENTS:PerformanceEvents}=require(a85_0x3a807f(0x148)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3a807f(0x179)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3a807f(0x116)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3a807f(0xb7)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x3a807f(0x127)),HookState=require(a85_0x3a807f(0x11d)),TestFrameworkState=require(a85_0x3a807f(0xd6)),AutomationFrameworkState=require(a85_0x3a807f(0xfa)),TestFrameworkConstants=require(a85_0x3a807f(0x141)),logger=createClassLogger(a85_0x3a807f(0x150)),{getBStackAPIUrl}=require(a85_0x3a807f(0x16d));class CLIUtils{[a85_0x3a807f(0x182)]={};[a85_0x3a807f(0xd7)]={};static['isDevelopmentEnv'](){const _0x4b0964=a85_0x3a807f,_0x1a5db2={};_0x1a5db2[_0x4b0964(0xf4)]=function(_0x1a9a19,_0x279dba){return _0x1a9a19===_0x279dba;},_0x1a5db2[_0x4b0964(0x180)]='development';const _0xd5c206=_0x1a5db2;return _0xd5c206[_0x4b0964(0xf4)](process[_0x4b0964(0xe8)][_0x4b0964(0xe7)],_0xd5c206[_0x4b0964(0x180)]);}static[a85_0x3a807f(0xf6)](){const _0x265266=a85_0x3a807f,_0xd25a00={};return _0xd25a00['id']=process[_0x265266(0xe8)][_0x265266(0xe7)],_0xd25a00['listen']=_0x265266(0x17c)+process[_0x265266(0xe8)]['BROWSERSTACK_CLI_ENV']+'.sock',_0xd25a00;}static['getSdkVersion'](){const _0x14f116=a85_0x3a807f,_0x4fdb2e={'lGXNQ':function(_0x3b650f,_0x31d608){return _0x3b650f(_0x31d608);},'difTI':'../../../package.json'};return _0x4fdb2e['lGXNQ'](require,_0x4fdb2e[_0x14f116(0x118)])[_0x14f116(0x133)];}static[a85_0x3a807f(0xf1)](){const _0x133fd7=a85_0x3a807f,_0x52975c={};_0x52975c[_0x133fd7(0x153)]=_0x133fd7(0xfe);const _0x33ae2b=_0x52975c;return _0x33ae2b['tezrm'];}static async[a85_0x3a807f(0x147)](_0x3b1069){const _0x44a946=a85_0x3a807f,_0x4aa9c1={'NtoAV':_0x44a946(0x129),'VVSVm':function(_0x36ab36,_0x442575){return _0x36ab36(_0x442575);},'gZGEM':function(_0x4f1b2b,_0x52996e){return _0x4f1b2b(_0x52996e);},'FxZcJ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x44a946(0x17f)](_0x4aa9c1['NtoAV']);const _0x5960fb=process[_0x44a946(0xe8)]['SDK_CLI_BIN_PATH'];if(!_0x4aa9c1[_0x44a946(0x132)](isNullOrEmpty,_0x5960fb))return logger[_0x44a946(0x17f)](_0x44a946(0x139)+_0x5960fb),_0x5960fb;try{const _0x24b729=this[_0x44a946(0xd3)]();if(_0x4aa9c1['gZGEM'](isNullOrEmpty,_0x24b729))throw new Error(_0x4aa9c1['FxZcJ']);const _0x2d80a2=this[_0x44a946(0x15c)](_0x24b729),_0x52573b=await this[_0x44a946(0x170)](_0x2d80a2,_0x24b729,_0x3b1069);return logger['debug'](_0x44a946(0xdb)+_0x52573b),_0x52573b;}catch(_0x510459){logger['debug'](_0x44a946(0xb6)+util[_0x44a946(0x143)](_0x510459));}return null;}static async[a85_0x3a807f(0x170)](_0x1b28d4,_0x3f1123,_0x8b1d5){const _0x1c58de=a85_0x3a807f,_0x4b47c2={'QEpEk':function(_0x490993){return _0x490993();},'XkpyG':function(_0x4b441f,_0x39b3fb){return _0x4b441f(_0x39b3fb);},'xnLze':function(_0x85262f,_0x4065,_0x5ee9ff){return _0x85262f(_0x4065,_0x5ee9ff);},'AjeJz':_0x1c58de(0x108),'smorH':_0x1c58de(0xca),'tAZAw':function(_0x4524e3,_0x4adcfc,_0x17387d){return _0x4524e3(_0x4adcfc,_0x17387d);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1c58de(0x101)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x1b28d4);const _0x5a7a65=_0x4b47c2[_0x1c58de(0x140)](getHostInfo),_0x36e120={'sdk_version':CLIUtils[_0x1c58de(0x110)](),'os':_0x5a7a65[_0x1c58de(0xd0)],'os_arch':_0x5a7a65['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&(_0x36e120[_0x1c58de(0xef)]=await this['runShellCommand'](_0x1b28d4+_0x1c58de(0x14d)));const _0x1315ad=await this['requestToUpdateCLI'](_0x36e120,_0x8b1d5);process['env'][_0x1c58de(0x109)]&&(logger[_0x1c58de(0x101)](_0x1c58de(0xc4)+process[_0x1c58de(0xe8)][_0x1c58de(0x109)]),_0x1315ad[_0x1c58de(0x108)]['url']=process[_0x1c58de(0xe8)]['BROWSERSTACK_BINARY_URL']);if(_0x4b47c2[_0x1c58de(0x183)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2['smorH']])){logger['debug'](_0x1c58de(0x16b)+_0x36e120[_0x1c58de(0xef)]);if(!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&this[_0x1c58de(0x138)](_0x1b28d4))return logger[_0x1c58de(0xd4)](_0x1c58de(0x102)+_0x1b28d4),_0x1b28d4;return await this[_0x1c58de(0xbf)](_0x4b47c2[_0x1c58de(0x126)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2[_0x1c58de(0x10b)]]),_0x3f1123);}return _0x1b28d4;}finally{PerformanceTester['end'](PerformanceEvents[_0x1c58de(0xc1)]);}}static[a85_0x3a807f(0xd3)](){const _0x228c87=a85_0x3a807f,_0x2bf81e={'dvckX':function(_0x3d25c7,_0x4062d2){return _0x3d25c7(_0x4062d2);},'SYmkX':_0x228c87(0xe0),'rAoHA':'cli'},_0x584e31=this[_0x228c87(0xec)]();try{if(_0x2bf81e[_0x228c87(0x154)](isNullOrEmpty,_0x584e31))throw new Error(_0x2bf81e[_0x228c87(0x15e)]);const _0x1d676b=path['join'](_0x584e31,_0x2bf81e['rAoHA']);return!fs[_0x228c87(0x13a)](_0x1d676b)&&_0x2bf81e['dvckX'](createDir,_0x1d676b),_0x1d676b;}catch(_0x3c88e2){logger['debug'](_0x228c87(0x17d)+util[_0x228c87(0x143)](_0x3c88e2));}}static[a85_0x3a807f(0xec)](){const _0x26b338=a85_0x3a807f,_0x425a54={'EGtTG':'.browserstack','lZUXo':function(_0x589682,_0x5689c4){return _0x589682(_0x5689c4);},'NXPQK':function(_0xac55c,_0x20e0ea){return _0xac55c(_0x20e0ea);},'EGlrZ':function(_0x195738,_0x30a77e){return _0x195738(_0x30a77e);},'vfkhu':function(_0x428ef9,_0x3ec3c4){return _0x428ef9(_0x3ec3c4);}},_0xd453d8=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x26b338(0x17b)](),_0x425a54['EGtTG']),path[_0x26b338(0xcf)](os[_0x26b338(0x17e)](),_0x425a54['EGtTG'])];for(const _0x4e3507 of _0xd453d8){if(_0x425a54[_0x26b338(0x114)](isNullOrEmpty,_0x4e3507))continue;try{if(fs['existsSync'](_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x185)+_0x4e3507+_0x26b338(0x131));if(!_0x425a54[_0x26b338(0x114)](isModifiable,_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x1278f5=_0x425a54[_0x26b338(0x151)](setReadWriteExecuteAccess,_0x4e3507);if(!_0x425a54['NXPQK'](isTrue,_0x1278f5)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x4e3507);continue;}}}else{logger[_0x26b338(0x17f)]('Folder\x20does\x20not\x20exist:\x20'+_0x4e3507),_0x425a54['EGlrZ'](createDir,_0x4e3507),logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x464dcc=_0x425a54[_0x26b338(0xfc)](setReadWriteExecuteAccess,_0x4e3507);!_0x425a54['EGlrZ'](isTrue,_0x464dcc)&&logger[_0x26b338(0xd4)](_0x26b338(0x13c)+_0x4e3507);}return _0x4e3507;}catch(_0x5547ba){logger[_0x26b338(0xdd)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x26b338(0x143)](_0x5547ba));}}return null;}static[a85_0x3a807f(0x15c)](_0xd0b380){const _0xf9552b=a85_0x3a807f,_0x5109c7={};_0x5109c7[_0xf9552b(0xb4)]=function(_0x4cb7c2,_0x16ee4c){return _0x4cb7c2>_0x16ee4c;},_0x5109c7[_0xf9552b(0xe5)]=function(_0x44e577,_0x4cbd3e){return _0x44e577>_0x4cbd3e;};const _0x309e97=_0x5109c7;try{if(!fs[_0xf9552b(0x13a)](_0xd0b380)||!fs[_0xf9552b(0xc5)](_0xd0b380)['isDirectory']())return'';const _0x2083d2=fs[_0xf9552b(0xb0)](_0xd0b380)[_0xf9552b(0x103)](_0x5f1eda=>path[_0xf9552b(0xcf)](_0xd0b380,_0x5f1eda))[_0xf9552b(0x156)](_0x451122=>fs[_0xf9552b(0xc5)](_0x451122)['isFile']()&&path[_0xf9552b(0xcc)](_0x451122)[_0xf9552b(0x15d)](_0xf9552b(0x16c)));if(_0x309e97[_0xf9552b(0xe5)](_0x2083d2[_0xf9552b(0x178)],0x0)){const _0x524f0e=_0x2083d2[_0xf9552b(0x103)](_0x1a60fb=>({'filePath':_0x1a60fb,'mtime':fs[_0xf9552b(0xc5)](_0x1a60fb)[_0xf9552b(0x105)]}))['reduce']((_0x57b430,_0x35c9f9)=>{const _0x4394f7=_0xf9552b;if(!_0x57b430||!_0x57b430[_0x4394f7(0x105)])return _0x35c9f9;if(_0x309e97['ZIAya'](_0x35c9f9[_0x4394f7(0x105)],_0x57b430[_0x4394f7(0x105)]))return _0x35c9f9;return _0x57b430;},{});return _0x524f0e?_0x524f0e[_0xf9552b(0x186)]:'';}return'';}catch(_0x7ee797){return logger[_0xf9552b(0xdd)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0xf9552b(0x143)](_0x7ee797)),'';}}static ['requestToUpdateCLI']=async(_0x1a914e,_0x1f32af)=>{const _0x3c8320=a85_0x3a807f,_0x4afb47={'oCaXR':function(_0x396a3a,_0x398b74,_0x329527,_0x371eb2,_0x28d15e){return _0x396a3a(_0x398b74,_0x329527,_0x371eb2,_0x28d15e);},'VFzYS':'GET'},_0x18e08c={};_0x18e08c['qs']=_0x1a914e,_0x18e08c[_0x3c8320(0xf7)]=!![];const _0x1dca52=await _0x4afb47['oCaXR'](nodeRequest,_0x4afb47['VFzYS'],UPDATED_CLI_ENDPOINT,_0x18e08c,_0x1f32af);return logger['debug']('response\x20'+JSON[_0x3c8320(0x177)](_0x1dca52)),_0x1dca52;};static[a85_0x3a807f(0x138)](_0xed377c){const _0x55edb6=a85_0x3a807f;try{const _0x4d0ba7=fs['openSync'](_0xed377c,'r+');return fs[_0x55edb6(0xcb)](_0x4d0ba7),![];}catch(_0x3311ee){if(BINARY_BUSY_ERROR_CODES[_0x55edb6(0x137)](_0x3311ee[_0x55edb6(0x104)]))return logger[_0x55edb6(0x17f)](_0x55edb6(0x10d)+_0xed377c),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x3311ee['message']),![];}}static[a85_0x3a807f(0x12f)](_0x190333,_0x388ca1=''){const _0x325230=a85_0x3a807f,_0x227bbb={'JPYtK':_0x325230(0x133),'ZVisj':function(_0x36b82d,_0x4b6385){return _0x36b82d(_0x4b6385);},'YbOpA':function(_0x4885b0,_0xb690e6){return _0x4885b0(_0xb690e6);},'wUxip':_0x325230(0x121),'dbebj':function(_0x27fca5,_0x7f6e68){return _0x27fca5(_0x7f6e68);},'RGSsp':function(_0x49a770,_0x2b43fa,_0x5cb54d,_0x3cfc19){return _0x49a770(_0x2b43fa,_0x5cb54d,_0x3cfc19);},'ytMdZ':_0x325230(0xdd)};return new Promise((_0x495bc0,_0x1b3e4c)=>{const _0x523c4f=_0x325230,_0x48886e={};_0x48886e[_0x523c4f(0xf9)]=_0x388ca1,_0x48886e[_0x523c4f(0x10c)]=0x1388;const _0x2ab08d=_0x227bbb[_0x523c4f(0x165)](exec,_0x190333,_0x48886e,(_0x2dde42,_0x512e55,_0x1218e7)=>{const _0xb53ace=_0x523c4f;if(_0x2dde42){if(_0x190333[_0xb53ace(0x137)](_0x227bbb['JPYtK'])&&(_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]())){const _0x4ae10d=_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]();logger[_0xb53ace(0x17f)](_0xb53ace(0xf3)+_0x4ae10d+'\x22'),_0x227bbb[_0xb53ace(0xbc)](_0x495bc0,_0x4ae10d);}else _0x227bbb[_0xb53ace(0xff)](_0x495bc0,_0x1218e7[_0xb53ace(0x161)]()||_0x227bbb['wUxip']);}else logger[_0xb53ace(0x17f)](_0xb53ace(0x144)+_0x512e55['trim']()+'\x22'),_0x227bbb[_0xb53ace(0x12b)](_0x495bc0,_0x512e55[_0xb53ace(0x161)]());});_0x2ab08d['on'](_0x227bbb['ytMdZ'],()=>{const _0x12e5b9=_0x523c4f;_0x227bbb[_0x12e5b9(0xff)](_0x495bc0,_0x227bbb[_0x12e5b9(0x14c)]);});});}static [a85_0x3a807f(0xbf)]=async(_0x59e436,_0x553eb8)=>{const _0x8c1f57=a85_0x3a807f,_0x1fb58c={'IblHs':function(_0x83c989,_0x2078ac){return _0x83c989(_0x2078ac);},'KMkvj':function(_0x87c161,_0x8e5660){return _0x87c161>=_0x8e5660;},'hvgHR':_0x8c1f57(0xe1),'tbDLB':_0x8c1f57(0x14e),'cKzzZ':'error','acAUK':_0x8c1f57(0x181),'yQeUD':function(_0x2c34ec,_0x778dd8){return _0x2c34ec(_0x778dd8);},'GKliD':_0x8c1f57(0xdf),'NerNq':function(_0x50053c,_0x2b4316){return _0x50053c(_0x2b4316);},'TQgJc':function(_0x3273ee,_0x15e76d){return _0x3273ee(_0x15e76d);},'HleGg':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester['start'](PerformanceEvents[_0x8c1f57(0xe2)]),logger[_0x8c1f57(0x17f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x59e436);try{const _0xd6d85c=url[_0x8c1f57(0x187)](_0x59e436),_0x217b95=path[_0x8c1f57(0xcf)](_0x553eb8,_0x8c1f57(0xba)+process[_0x8c1f57(0x15f)]+_0x8c1f57(0x13f)),_0x33e6fc=fs[_0x8c1f57(0x184)](_0x217b95);return new Promise((_0x2abf87,_0x34853c)=>{const _0x1a58a5=_0x8c1f57,_0x1d48ee={'YadOL':_0x1fb58c[_0x1a58a5(0x106)],'DALJB':function(_0x562335,_0x39b7e2){const _0x3bac3c=_0x1a58a5;return _0x1fb58c[_0x3bac3c(0x111)](_0x562335,_0x39b7e2);},'TfMnV':_0x1fb58c[_0x1a58a5(0xf5)],'aMooV':function(_0x49cb13,_0x1e567b){const _0x4f7231=_0x1a58a5;return _0x1fb58c[_0x4f7231(0xf2)](_0x49cb13,_0x1e567b);},'plyhS':function(_0x5d7ab1,_0xbe15f0){const _0x2770ec=_0x1a58a5;return _0x1fb58c[_0x2770ec(0xbb)](_0x5d7ab1,_0xbe15f0);}};https[_0x1a58a5(0xb8)](_0xd6d85c,function(_0x4e5e36){const _0x3b860a=_0x1a58a5,_0xed8659={'PrrIr':function(_0x4f6eab,_0x331b50){const _0xad5a4d=a85_0x16a6;return _0x1fb58c[_0xad5a4d(0xee)](_0x4f6eab,_0x331b50);}},_0x47711c=null;if(_0x4e5e36['statusCode']&&_0x1fb58c[_0x3b860a(0x11e)](_0x4e5e36[_0x3b860a(0xe9)],0x190)){const _0x35d54e=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x4e5e36[_0x3b860a(0xe9)]+_0x3b860a(0xbe)+_0x59e436);_0x35d54e[_0x3b860a(0x104)]=_0x1fb58c[_0x3b860a(0x167)],_0x35d54e[_0x3b860a(0xe9)]=_0x4e5e36[_0x3b860a(0xe9)],logger['error'](util[_0x3b860a(0x143)](_0x1fb58c['tbDLB'],_0x4e5e36['statusCode'])),PerformanceTester[_0x3b860a(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x3b860a(0x134)+_0x4e5e36[_0x3b860a(0xe9)]),_0x4e5e36['resume'](),_0x33e6fc['destroy'](),fs[_0x3b860a(0x142)](_0x217b95,()=>{}),_0x1fb58c[_0x3b860a(0xee)](_0x34853c,_0x35d54e);return;}_0x4e5e36[_0x3b860a(0xb9)](_0x33e6fc),_0x4e5e36['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x4059df){const _0x305725=_0x3b860a;logger['error'](util[_0x305725(0x143)](_0x1d48ee[_0x305725(0x146)],_0x4059df)),PerformanceTester[_0x305725(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x305725(0x143)](_0x4059df)),_0x1d48ee[_0x305725(0x123)](_0x34853c,_0x4059df);}),_0x33e6fc['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x63aa2a){const _0x11aa5d=_0x3b860a;logger['error'](util[_0x11aa5d(0x143)](_0x1d48ee[_0x11aa5d(0x11b)],_0x63aa2a)),PerformanceTester[_0x11aa5d(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x11aa5d(0x143)](_0x63aa2a)),_0x1d48ee[_0x11aa5d(0x123)](_0x34853c,_0x63aa2a);}),CLIUtils[_0x3b860a(0x13d)](_0x33e6fc,_0x47711c,_0x217b95,_0x553eb8,_0x1a3f11=>{const _0x4b11a8=_0x3b860a;PerformanceTester[_0x4b11a8(0xfb)](PerformanceEvents[_0x4b11a8(0xe2)]),_0xed8659[_0x4b11a8(0x11f)](_0x2abf87,_0x1a3f11);},_0x1637fc=>{const _0x4b933c=_0x3b860a;PerformanceTester[_0x4b933c(0xfb)](PerformanceEvents[_0x4b933c(0xe2)],![],util[_0x4b933c(0x143)](_0x1637fc)),_0x1d48ee[_0x4b933c(0x10a)](_0x34853c,_0x1637fc);});})['on'](_0x1fb58c[_0x1a58a5(0x188)],function(_0x2f235d){const _0x86633c=_0x1a58a5;logger['error'](_0x86633c(0xcd)+util['format'](_0x2f235d)),PerformanceTester['end'](PerformanceEvents[_0x86633c(0xe2)],![],util[_0x86633c(0x143)](_0x2f235d)),_0x1d48ee[_0x86633c(0xc7)](_0x34853c,_0x2f235d);});});}catch(_0x336201){PerformanceTester[_0x8c1f57(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x336201)),logger['error'](util[_0x8c1f57(0x143)](_0x1fb58c[_0x8c1f57(0x10e)],_0x336201));throw _0x336201;}};static['downloadFileStream'](_0x77b2c6,_0x52131e,_0x1d8377,_0x1ac871,_0x2c14f1,_0x2ad34b){const _0x33871b=a85_0x3a807f,_0xabe3f0={'BcguZ':'close','uhWCz':function(_0x4ba239,_0x3edb31){return _0x4ba239(_0x3edb31);},'DUyRc':_0x33871b(0xfb),'hjUlw':function(_0x24c578,_0x3c2374){return _0x24c578!==_0x3c2374;},'hobwJ':_0x33871b(0xdd),'XIegq':'EXDEV','UeGMd':_0x33871b(0x11c),'aQLrN':_0x33871b(0x172)};_0x77b2c6['on'](_0xabe3f0[_0x33871b(0x117)],function(){const _0x3abaf5=_0x33871b,_0x1a3a15={'HVdKG':_0xabe3f0[_0x3abaf5(0x117)],'sgFMp':function(_0x58b58a,_0x366189){const _0x15c12a=_0x3abaf5;return _0xabe3f0[_0x15c12a(0xed)](_0x58b58a,_0x366189);},'ZDRUP':_0xabe3f0['DUyRc'],'jTZqI':function(_0x4d91c0,_0x5e2b33){return _0xabe3f0['hjUlw'](_0x4d91c0,_0x5e2b33);},'tOmhE':function(_0xb8b481,_0x37c8b5){const _0x469157=_0x3abaf5;return _0xabe3f0[_0x469157(0xed)](_0xb8b481,_0x37c8b5);},'SZgqy':_0xabe3f0['hobwJ'],'LZFBR':_0xabe3f0['XIegq'],'fnjxa':_0xabe3f0[_0x3abaf5(0x162)],'TQsSu':function(_0x2e0a6b,_0xbedd73){return _0xabe3f0['uhWCz'](_0x2e0a6b,_0xbedd73);},'cznWw':function(_0x501ae9,_0x33e121){const _0x42b26d=_0x3abaf5;return _0xabe3f0[_0x42b26d(0xed)](_0x501ae9,_0x33e121);},'HvEwY':_0xabe3f0[_0x3abaf5(0x13e)]},_0x5558a4={};_0x5558a4[_0x3abaf5(0x135)]=!![],yauzl[_0x3abaf5(0x15a)](_0x1d8377,_0x5558a4,function(_0x4c2443,_0x39b0aa){const _0x145167=_0x3abaf5,_0x1103ab={'vZkrf':function(_0xdf4191,_0x27942f){return _0x1a3a15['TQsSu'](_0xdf4191,_0x27942f);},'qOeCf':function(_0x4d9fe5,_0x199180){const _0x360b9f=a85_0x16a6;return _0x1a3a15[_0x360b9f(0xc2)](_0x4d9fe5,_0x199180);}};if(_0x4c2443){_0x1a3a15[_0x145167(0xe6)](_0x2ad34b,_0x4c2443);return;}_0x39b0aa[_0x145167(0xb3)](),_0x39b0aa['on'](_0x1a3a15['HvEwY'],_0x304d45=>{const _0x33d713=_0x145167,_0x402eef={'nbRbl':_0x1a3a15[_0x33d713(0x112)],'MuWHh':function(_0x296bdd,_0x278d7d){return _0x1a3a15['sgFMp'](_0x296bdd,_0x278d7d);},'vMIDY':_0x1a3a15[_0x33d713(0xf8)]};if(/\/$/['test'](_0x304d45[_0x33d713(0xd8)])){_0x39b0aa[_0x33d713(0xb3)]();return;}!_0x52131e&&(_0x52131e=_0x304d45['fileName']);if(_0x1a3a15[_0x33d713(0x164)](_0x304d45['fileName'],_0x52131e))_0x39b0aa[_0x33d713(0xb3)]();else{const _0x2793b4=_0x304d45[_0x33d713(0xd8)],_0x181988=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4+_0x33d713(0x159)+process[_0x33d713(0x15f)]);let _0x1032f2;try{_0x1032f2=fs[_0x33d713(0x184)](_0x181988);}catch(_0x482c49){if(BINARY_BUSY_ERROR_CODES[_0x33d713(0x137)](_0x482c49[_0x33d713(0x104)])){const _0x40d35f=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4);if(fs[_0x33d713(0x13a)](_0x40d35f)){logger[_0x33d713(0xd4)](_0x33d713(0x176)+_0x2793b4),fs[_0x33d713(0x142)](_0x1d8377,_0x4cf7a9=>{const _0x1415b5=_0x33d713;_0x4cf7a9&&logger[_0x1415b5(0xd4)](_0x1415b5(0x14f)+_0x1d8377);}),_0x1a3a15['tOmhE'](_0x2c14f1,_0x40d35f);return;}logger['warn'](_0x33d713(0x10f)+_0x2793b4);}_0x1a3a15[_0x33d713(0x173)](_0x2ad34b,_0x482c49);return;}_0x1032f2['on'](_0x1a3a15[_0x33d713(0xd5)],_0x2a6ad9=>{const _0x425e13=_0x33d713;if(BINARY_BUSY_ERROR_CODES[_0x425e13(0x137)](_0x2a6ad9[_0x425e13(0x104)])){const _0x3db924=path[_0x425e13(0xcf)](_0x1ac871,_0x2793b4);_0x1032f2[_0x425e13(0xfd)](),fs[_0x425e13(0x13a)](_0x3db924)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a6ad9[_0x425e13(0xb1)]),_0x39b0aa['close'](),fs['unlink'](_0x1d8377,_0x145861=>{const _0x3e90fd=_0x425e13;_0x145861&&logger[_0x3e90fd(0xd4)](_0x3e90fd(0x14f)+_0x1d8377);}),_0x1103ab[_0x425e13(0x136)](_0x2c14f1,_0x3db924)):(logger[_0x425e13(0xd4)](_0x425e13(0x189)+_0x2a6ad9[_0x425e13(0xb1)]),fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab['vZkrf'](_0x2ad34b,_0x2a6ad9));}else fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab[_0x425e13(0x136)](_0x2ad34b,_0x2a6ad9);}),_0x39b0aa[_0x33d713(0x12d)](_0x304d45,function(_0x87b728,_0x3534cc){const _0x3f2000=_0x33d713,_0x710439={};_0x710439[_0x3f2000(0xc6)]=_0x402eef['nbRbl'];const _0x5cb55d=_0x710439;if(_0x87b728){fs['unlink'](_0x181988,()=>{}),_0x402eef[_0x3f2000(0xd2)](_0x2ad34b,_0x87b728);return;}_0x3534cc['on'](_0x402eef[_0x3f2000(0x15b)],function(){const _0x24311c=_0x3f2000;_0x1032f2[_0x24311c(0xfb)](),_0x1032f2['on'](_0x5cb55d[_0x24311c(0xc6)],function(){_0x39b0aa['readEntry']();});}),_0x3534cc[_0x3f2000(0xb9)](_0x1032f2);});}}),_0x39b0aa['on'](_0x1a3a15[_0x145167(0xd5)],_0x2947e5=>{_0x1103ab['qOeCf'](_0x2ad34b,_0x2947e5);}),_0x39b0aa[_0x145167(0x119)](_0x1a3a15[_0x145167(0xf8)],()=>{const _0x1abdfe=_0x145167,_0x34e3be={'qtHix':function(_0x32dfdc,_0x22eeb8){const _0x127f4f=a85_0x16a6;return _0x1a3a15[_0x127f4f(0x164)](_0x32dfdc,_0x22eeb8);},'hLpiB':_0x1a3a15['LZFBR'],'nujjw':function(_0x5aaf7a,_0x432053){const _0x1efc6a=a85_0x16a6;return _0x1a3a15[_0x1efc6a(0x173)](_0x5aaf7a,_0x432053);}};fs['unlink'](_0x1d8377,_0x13cd8a=>{const _0x53b2f9=a85_0x16a6;_0x13cd8a&&logger[_0x53b2f9(0xd4)](_0x53b2f9(0x14f)+_0x1d8377);});const _0x1ebcbb=path[_0x1abdfe(0xcf)](_0x1ac871,_0x52131e+_0x1abdfe(0x159)+process[_0x1abdfe(0x15f)]),_0x3090bc=path['join'](_0x1ac871,_0x52131e);fs[_0x1abdfe(0x14a)](_0x1ebcbb,_0x1a3a15[_0x1abdfe(0xeb)],function(_0x7eca8){if(_0x7eca8){_0x39b0aa['close'](),fs['unlink'](_0x1ebcbb,()=>{}),_0x1103ab['qOeCf'](_0x2ad34b,_0x7eca8);return;}fs['rename'](_0x1ebcbb,_0x3090bc,function(_0x58f2d7){const _0x1d0571=a85_0x16a6;if(_0x58f2d7){if(_0x34e3be[_0x1d0571(0xc8)](_0x58f2d7[_0x1d0571(0x104)],_0x34e3be[_0x1d0571(0x125)])){_0x39b0aa[_0x1d0571(0xfd)](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x58f2d7);return;}logger['warn'](_0x1d0571(0xdc)+_0x58f2d7[_0x1d0571(0xb1)]);try{fs['copyFileSync'](_0x1ebcbb,_0x3090bc);}catch(_0x2b7a4c){_0x39b0aa['close'](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x2b7a4c);return;}fs['unlink'](_0x1ebcbb,_0x174018=>{const _0x1bd08c=_0x1d0571;_0x174018&&logger[_0x1bd08c(0xd4)](_0x1bd08c(0x13b)+_0x174018[_0x1bd08c(0xb1)]);});}_0x39b0aa[_0x1d0571(0xfd)](),_0x34e3be['nujjw'](_0x2c14f1,_0x3090bc);});});});});});}static['getTestFrameworkDetail'](){const _0x4efd6b=a85_0x3a807f;if(process[_0x4efd6b(0xe8)][_0x4efd6b(0x175)])return JSON[_0x4efd6b(0x187)](process[_0x4efd6b(0xe8)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x3a807f(0xc0)](){const _0x51774a=a85_0x3a807f;if(process[_0x51774a(0xe8)][_0x51774a(0xde)])return JSON['parse'](process[_0x51774a(0xe8)][_0x51774a(0xde)]);return this[_0x51774a(0x182)];}static[a85_0x3a807f(0x149)](_0xbc2b1,_0x27a60e){const _0x701b4e=a85_0x3a807f,_0xd16363={'SQCpk':_0x701b4e(0x130),'SiZyq':function(_0x5af8f7,_0x7bcd6b){return _0x5af8f7||_0x7bcd6b;},'OVIpP':function(_0x2a5308,_0x33b38f){return _0x2a5308(_0x33b38f);},'USvjn':function(_0x4f37fa,_0x306b6f){return _0x4f37fa(_0x306b6f);}},_0x3dcd91=_0xd16363['SQCpk'][_0x701b4e(0x11a)]('|');let _0x212417=0x0;while(!![]){switch(_0x3dcd91[_0x212417++]){case'0':_0xd16363['SiZyq'](!_0xbc2b1,!_0x27a60e)&&logger[_0x701b4e(0x17f)](_0x701b4e(0xc9)+_0xbc2b1+_0x701b4e(0xbd)+_0x27a60e);continue;case'1':process[_0x701b4e(0xe8)][_0x701b4e(0xde)]=JSON[_0x701b4e(0x177)](this[_0x701b4e(0x182)]);continue;case'2':this[_0x701b4e(0x182)]={'name':_0x27a60e,'version':_0xd16363[_0x701b4e(0x12e)](getFrameworkVersion,_0x27a60e)};continue;case'3':process[_0x701b4e(0xe8)][_0x701b4e(0x175)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':this[_0x701b4e(0xd7)]={'name':_0xbc2b1,'version':{[_0xbc2b1]:_0xd16363[_0x701b4e(0x14b)](getFrameworkVersion,_0xbc2b1)}};continue;}break;}}static[a85_0x3a807f(0x16f)](_0x48288f,_0x25cdd4){return _0x48288f+':'+_0x25cdd4;}static[a85_0x3a807f(0x171)](){const _0x1938a1=a85_0x3a807f;return process[_0x1938a1(0x15f)]+':'+threadId;}static[a85_0x3a807f(0x174)](_0x47c41b){const _0x481ef5=a85_0x3a807f;if(_0x47c41b[_0x481ef5(0xf0)]&&_0x47c41b[_0x481ef5(0xf0)][_0x481ef5(0xce)])return!![];return![];}static[a85_0x3a807f(0x120)](_0x1a6fbb){const _0x50e363=a85_0x3a807f;if(_0x1a6fbb[_0x50e363(0xf0)]&&_0x1a6fbb['testContextOptions'][_0x50e363(0xb5)])return!![];return![];}static['matchHookRegex'](_0x3d3918){const _0x31c902=a85_0x3a807f,_0x17c2f5=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x17c2f5[_0x31c902(0x169)](_0x3d3918);}static[a85_0x3a807f(0x115)](_0x3c1f97,_0x39eeed){const _0x284823=a85_0x3a807f,_0x1e27ab={};_0x1e27ab[_0x284823(0x157)]=function(_0x4be786,_0x131f99){return _0x4be786!==_0x131f99;},_0x1e27ab[_0x284823(0x100)]=function(_0x579521,_0x3b11a8){return _0x579521===_0x3b11a8;},_0x1e27ab['LqIMA']=_0x284823(0x128);const _0x3e4c49=_0x1e27ab;for(const [_0x3ab2f4,_0x3a80dc]of Object[_0x284823(0x124)](_0x39eeed)){if(_0x3e4c49['Jcbvd'](_0x3a80dc,null)&&_0x3e4c49[_0x284823(0x100)](typeof _0x3a80dc,_0x3e4c49['LqIMA'])&&!Array['isArray'](_0x3a80dc))_0x3c1f97[_0x3ab2f4]=this['mergeObject'](_0x3c1f97[_0x3ab2f4]||{},_0x3a80dc);else Array[_0x284823(0xaf)](_0x3a80dc)?_0x3c1f97[_0x3ab2f4]=(_0x3c1f97[_0x3ab2f4]||[])[_0x284823(0x107)](_0x3a80dc):_0x3c1f97[_0x3ab2f4]=_0x3a80dc;}return _0x3c1f97;}}module[a85_0x3a807f(0xda)]=CLIUtils;
1
+ const a85_0x1134b4=a85_0x1523;(function(_0x4a33d2,_0x86f759){const _0x6ba619=a85_0x1523,_0x4e11bc=_0x4a33d2();while(!![]){try{const _0x509bcc=parseInt(_0x6ba619(0x140))/0x1+-parseInt(_0x6ba619(0x1d4))/0x2*(-parseInt(_0x6ba619(0x122))/0x3)+-parseInt(_0x6ba619(0x18f))/0x4*(-parseInt(_0x6ba619(0x157))/0x5)+parseInt(_0x6ba619(0x1cd))/0x6+-parseInt(_0x6ba619(0x1bf))/0x7+parseInt(_0x6ba619(0x1a1))/0x8*(parseInt(_0x6ba619(0x1dd))/0x9)+-parseInt(_0x6ba619(0x1b7))/0xa;if(_0x509bcc===_0x86f759)break;else _0x4e11bc['push'](_0x4e11bc['shift']());}catch(_0x4e7275){_0x4e11bc['push'](_0x4e11bc['shift']());}}}(a85_0x30ad,0x656b9));const fs=require('fs'),os=require('os'),url=require(a85_0x1134b4(0x188)),path=require('path'),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require(a85_0x1134b4(0x11a)),{getFrameworkVersion}=require(a85_0x1134b4(0x144)),{threadId}=require(a85_0x1134b4(0x1f2)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x1134b4(0x17e)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x1134b4(0x181)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x1134b4(0x120)),{createClassLogger}=require(a85_0x1134b4(0x17f)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x1134b4(0x13d)),logger=createClassLogger(a85_0x1134b4(0x1f5)),{getBStackAPIUrl}=require(a85_0x1134b4(0x127));function a85_0x1523(_0x1e93f5,_0x3b2b41){const _0x30add6=a85_0x30ad();return a85_0x1523=function(_0x1523e9,_0x1338a8){_0x1523e9=_0x1523e9-0x119;let _0x6b5f78=_0x30add6[_0x1523e9];return _0x6b5f78;},a85_0x1523(_0x1e93f5,_0x3b2b41);}function a85_0x30ad(){const _0x30ed76=['oqzrU','readEntry','data','SDK_CLI_DOWNLOAD','getTestFrameworkDetail','2|4|1|0|3','zRHUI','19615ajZawY','WzpEr','pipe','testContextOptions','basename','isDevelopmentEnv','Folder\x20does\x20not\x20exist:\x20','checkAndUpdateCli','TvMBv',',\x20automationFramework=','qabwm','isDirectory','stringify','info','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','existsSync','listen','getHookRegistryKey','BROWSERSTACK_CLI_ENV','timeout','mtime','Binary\x20is\x20busy:\x20','BROWSERSTACK_FILES_DIR','LHFIT','ewdHC','mQqwI','DjXtU','CdxlX','Development\x20Cli\x20Path:\x20','xMQzv','destroy','HTTP\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','getSdkVersion','ANMAH','parse','message','hiRbf','gbrGU','../../helpers/performance/constants','../../helpers/classLogger.js','Failed\x20to\x20delete\x20zip\x20file:\x20','../../helpers/utilities','itjaG','Yddve','chmod','entries','PtHhT','includes','url','test','CLI\x20version\x20found\x20despite\x20error:\x20\x22','vLlVG','code','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','arch','356iGAJhx','sPLgM','tlgAw','gbVbk','.tmp.','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','DOWNLOAD_HTTP','resume','IPGQR','.browserstack','nSDcI','0755','zybtU','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','PIKJv','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','downloadLatestBinary','72nnOMJj','pdGNj','start','trim','copyFileSync','statusCode','oYZku','../../../package.json','actft','tmpdir','eORjq','env','downloaded_file_','rDTqM','readdirSync','jQEkf','Setting\x20required\x20permissions\x20to\x20','yxkCG','setFrameworkDetail','skipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','6113240GMhWCc','isBinaryBusy','pOBfV','tUtpb','Error\x20while\x20reading\x20CLI\x20path:\x20','downloadFileStream','WkFeE','yCgTV','2841895FrtAvi','.sock','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','runShellCommand','HLaJN','oSDCW','zpCVi','map','zKjEe','OLJeT','startsWith','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','statSync','TlxQZ','1540056DorhIX','EXDEV','CnTQA','XKnGo','JfVeD','platform','error','2XdILnm','format','createWriteStream','split','entry','bzPwe','XUVcQ','isArray','exports','472284KCOMjQ','FhYzh','QkIjK','fileName','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','node','HOOK_REGEX','end','SbZzS','lazyEntries','bKwUT','filePath','SHELL_EXECUTE_ERROR','UyouV','dNjsq','OPOVq','close','HFdHN','Vrgzu','debug','warn','worker_threads','idWTk','getSdkLanguage','CLIUtils','zsQMr','LUkZq','SDK_CLI_BIN_PATH','testFrameworkDetail','shouldSkipSessionStatus','\x20from\x20','getCliDir','version','rename','unlink','NvakZ','oVFpo','xUDCy','util','Folder\x20','CyiBU','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','getCLIParamsForDevEnv','mergeObject','../utils/constants','BROWSERSTACK_BINARY_URL','829191EuNKrj','SGtRs','UTBJh','Downloading\x20SDK\x20binary\x20from:\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','../utils/apiUtilityMethods.js','isFile','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','.zip','shouldSkipSessionName','scdTn','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','cli','getExistingCliPath','cIBDN','BrfkV','automationFrameworkDetail','cli_version','join','SDK_CLI_CHECK_UPDATE','object','getWritableDir','bjaPC','YGxiV','OeBQb','LxgBm','./framework/constants/testFrameworkConstants.js','\x20already\x20exists','Resolving\x20with\x20stdout:\x20\x22','78222LHTOqA','vfYHW','qkIHu','openReadStream','../../helpers/test-observability/utils.js','nbXTp','homedir','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','matchHookRegex','ilSjw','OEqfj','pid','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','GET','getAutomationFrameworkDetail','skipSessionStatus'];a85_0x30ad=function(){return _0x30ed76;};return a85_0x30ad();}class CLIUtils{[a85_0x1134b4(0x133)]={};['testFrameworkDetail']={};static[a85_0x1134b4(0x15c)](){const _0x4ec645=a85_0x1134b4,_0x29a5e3={};_0x29a5e3[_0x4ec645(0x183)]=function(_0x1e8527,_0x3ae576){return _0x1e8527===_0x3ae576;},_0x29a5e3['ewdHC']='development';const _0x4d3cf6=_0x29a5e3;return _0x4d3cf6[_0x4ec645(0x183)](process[_0x4ec645(0x1ac)][_0x4ec645(0x169)],_0x4d3cf6[_0x4ec645(0x16f)]);}static[a85_0x1134b4(0x11e)](){const _0x40a4bf=a85_0x1134b4,_0x4e82b3={};return _0x4e82b3['id']=process[_0x40a4bf(0x1ac)][_0x40a4bf(0x169)],_0x4e82b3[_0x40a4bf(0x167)]='unix:/tmp/sdk-platform-'+process['env']['BROWSERSTACK_CLI_ENV']+_0x40a4bf(0x1c0),_0x4e82b3;}static['getSdkVersion'](){const _0x1f55db=a85_0x1134b4,_0x3026dc={'nbXTp':function(_0x28d0f1,_0x531aa7){return _0x28d0f1(_0x531aa7);},'KtDBN':_0x1f55db(0x1a8)};return _0x3026dc[_0x1f55db(0x145)](require,_0x3026dc['KtDBN'])[_0x1f55db(0x1fd)];}static['getSdkLanguage'](){const _0x58d6f4=a85_0x1134b4,_0x382ca6={};_0x382ca6[_0x58d6f4(0x1ea)]=_0x58d6f4(0x1e2);const _0x2e1d6e=_0x382ca6;return _0x2e1d6e[_0x58d6f4(0x1ea)];}static async['setupCliPath'](_0x2f3cce){const _0xf3bc2c=a85_0x1134b4,_0x4eef44={'nvDvm':'Configuring\x20Cli\x20path.','itjaG':function(_0x46b89c,_0x4b69a3){return _0x46b89c(_0x4b69a3);},'pvdMk':_0xf3bc2c(0x12e)};logger['debug'](_0x4eef44['nvDvm']);const _0x5ae2a5=process[_0xf3bc2c(0x1ac)][_0xf3bc2c(0x1f8)];if(!_0x4eef44[_0xf3bc2c(0x182)](isNullOrEmpty,_0x5ae2a5))return logger['debug'](_0xf3bc2c(0x173)+_0x5ae2a5),_0x5ae2a5;try{const _0x4aa3d5=this[_0xf3bc2c(0x1fc)]();if(_0x4eef44[_0xf3bc2c(0x182)](isNullOrEmpty,_0x4aa3d5))throw new Error(_0x4eef44['pvdMk']);const _0x360654=this[_0xf3bc2c(0x130)](_0x4aa3d5),_0x560178=await this[_0xf3bc2c(0x15e)](_0x360654,_0x4aa3d5,_0x2f3cce);return logger[_0xf3bc2c(0x1f0)]('Resolved\x20binary\x20path:\x20'+_0x560178),_0x560178;}catch(_0x41604f){logger[_0xf3bc2c(0x1f0)](_0xf3bc2c(0x18d)+util['format'](_0x41604f));}return null;}static async['checkAndUpdateCli'](_0x4d291d,_0x449fc5,_0x4375eb){const _0x77b612=a85_0x1134b4,_0x4fcb88={'xLEGO':function(_0x4ed871){return _0x4ed871();},'qkIHu':function(_0x4c4c6c,_0x21c7f1){return _0x4c4c6c(_0x21c7f1);},'vxRza':function(_0x46f096,_0x38590e,_0x272cc3){return _0x46f096(_0x38590e,_0x272cc3);},'scdTn':_0x77b612(0x152),'rDTqM':'url','GrsZI':function(_0x293918,_0x1b2a14){return _0x293918(_0x1b2a14);},'QkIjK':function(_0xd54389,_0x238624,_0x3ca225){return _0xd54389(_0x238624,_0x3ca225);}};PerformanceTester[_0x77b612(0x1a3)](PerformanceEvents[_0x77b612(0x136)]);try{logger[_0x77b612(0x164)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x4d291d);const _0x49da04=_0x4fcb88['xLEGO'](getHostInfo),_0x4dab30={'sdk_version':CLIUtils[_0x77b612(0x178)](),'os':_0x49da04[_0x77b612(0x1d2)],'os_arch':_0x49da04[_0x77b612(0x18e)],'cli_version':'0','sdk_language':this[_0x77b612(0x1f4)]()};!_0x4fcb88[_0x77b612(0x142)](isNullOrEmpty,_0x4d291d)&&(_0x4dab30[_0x77b612(0x134)]=await this[_0x77b612(0x1c2)](_0x4d291d+'\x20version'));const _0x32af7e=await this['requestToUpdateCLI'](_0x4dab30,_0x4375eb);process[_0x77b612(0x1ac)][_0x77b612(0x121)]&&(logger['info'](_0x77b612(0x165)+process[_0x77b612(0x1ac)][_0x77b612(0x121)]),_0x32af7e[_0x77b612(0x152)][_0x77b612(0x188)]=process[_0x77b612(0x1ac)][_0x77b612(0x121)]);if(_0x4fcb88['vxRza'](nestedKeyValue,_0x32af7e,[_0x4fcb88[_0x77b612(0x12c)],_0x4fcb88[_0x77b612(0x1ae)]])){logger[_0x77b612(0x1f0)](_0x77b612(0x12d)+_0x4dab30[_0x77b612(0x134)]);if(!_0x4fcb88['GrsZI'](isNullOrEmpty,_0x4d291d)&&this[_0x77b612(0x1b8)](_0x4d291d))return logger[_0x77b612(0x1f1)](_0x77b612(0x1ca)+_0x4d291d),_0x4d291d;return await this[_0x77b612(0x1a0)](_0x4fcb88[_0x77b612(0x1df)](nestedKeyValue,_0x32af7e,[_0x4fcb88[_0x77b612(0x12c)],_0x4fcb88['rDTqM']]),_0x449fc5);}return _0x4d291d;}finally{PerformanceTester[_0x77b612(0x1e4)](PerformanceEvents[_0x77b612(0x136)]);}}static['getCliDir'](){const _0x28f27e=a85_0x1134b4,_0x43fa39={'YGxiV':function(_0x526e60,_0x1b152d){return _0x526e60(_0x1b152d);},'xknXm':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','hiRbf':_0x28f27e(0x12f),'YhFiu':function(_0x1a25e2,_0x4ad101){return _0x1a25e2(_0x4ad101);}},_0x3b45fc=this[_0x28f27e(0x138)]();try{if(_0x43fa39[_0x28f27e(0x13a)](isNullOrEmpty,_0x3b45fc))throw new Error(_0x43fa39['xknXm']);const _0x4fac3b=path[_0x28f27e(0x135)](_0x3b45fc,_0x43fa39[_0x28f27e(0x17c)]);return!fs[_0x28f27e(0x166)](_0x4fac3b)&&_0x43fa39['YhFiu'](createDir,_0x4fac3b),_0x4fac3b;}catch(_0x5316cb){logger[_0x28f27e(0x1f0)](_0x28f27e(0x19f)+util['format'](_0x5316cb));}}static[a85_0x1134b4(0x138)](){const _0x20b766=a85_0x1134b4,_0x805160={'HFdHN':_0x20b766(0x198),'zRHUI':function(_0x3f3198,_0xa0928c){return _0x3f3198(_0xa0928c);},'JfVeD':function(_0x7133d9,_0x396d66){return _0x7133d9(_0x396d66);},'WzpEr':function(_0x1a5359,_0x5f2ccf){return _0x1a5359(_0x5f2ccf);},'pOBfV':function(_0x3d4e35,_0x2f1787){return _0x3d4e35(_0x2f1787);},'CdxlX':function(_0x485f2f,_0x491261){return _0x485f2f(_0x491261);},'ucJzQ':function(_0x55e7ee,_0x57513c){return _0x55e7ee(_0x57513c);}},_0x574ebe=[process[_0x20b766(0x1ac)][_0x20b766(0x16d)],path[_0x20b766(0x135)](os[_0x20b766(0x146)](),_0x805160[_0x20b766(0x1ee)]),path[_0x20b766(0x135)](os[_0x20b766(0x1aa)](),_0x805160[_0x20b766(0x1ee)])];for(const _0x1850d7 of _0x574ebe){if(_0x805160[_0x20b766(0x156)](isNullOrEmpty,_0x1850d7))continue;try{if(fs[_0x20b766(0x166)](_0x1850d7)){logger[_0x20b766(0x1f0)](_0x20b766(0x11b)+_0x1850d7+_0x20b766(0x13e));if(!_0x805160[_0x20b766(0x1d1)](isModifiable,_0x1850d7)){logger[_0x20b766(0x1f0)](_0x20b766(0x1b1)+_0x1850d7);const _0x209dbf=_0x805160[_0x20b766(0x158)](setReadWriteExecuteAccess,_0x1850d7);if(!_0x805160[_0x20b766(0x1b9)](isTrue,_0x209dbf)){logger[_0x20b766(0x1f1)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x1850d7);continue;}}}else{logger[_0x20b766(0x1f0)](_0x20b766(0x15d)+_0x1850d7),_0x805160[_0x20b766(0x1b9)](createDir,_0x1850d7),logger[_0x20b766(0x1f0)]('Setting\x20required\x20permissions\x20to\x20'+_0x1850d7);const _0xb887d1=_0x805160[_0x20b766(0x172)](setReadWriteExecuteAccess,_0x1850d7);!_0x805160['ucJzQ'](isTrue,_0xb887d1)&&logger[_0x20b766(0x1f1)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x1850d7);}return _0x1850d7;}catch(_0x2600c0){logger[_0x20b766(0x1d3)](_0x20b766(0x19c)+util['format'](_0x2600c0));}}return null;}static[a85_0x1134b4(0x130)](_0x4c3cbe){const _0x5ca2d8=a85_0x1134b4,_0x522990={};_0x522990[_0x5ca2d8(0x150)]=function(_0x4bd24d,_0x2bdc71){return _0x4bd24d>_0x2bdc71;};const _0x1b06d5=_0x522990;try{if(!fs[_0x5ca2d8(0x166)](_0x4c3cbe)||!fs[_0x5ca2d8(0x1cb)](_0x4c3cbe)[_0x5ca2d8(0x162)]())return'';const _0x4475e4=fs[_0x5ca2d8(0x1af)](_0x4c3cbe)[_0x5ca2d8(0x1c6)](_0x577d0a=>path['join'](_0x4c3cbe,_0x577d0a))['filter'](_0x3a8245=>fs['statSync'](_0x3a8245)[_0x5ca2d8(0x128)]()&&path[_0x5ca2d8(0x15b)](_0x3a8245)[_0x5ca2d8(0x1c9)]('binary-'));if(_0x1b06d5[_0x5ca2d8(0x150)](_0x4475e4['length'],0x0)){const _0x333b03=_0x4475e4[_0x5ca2d8(0x1c6)](_0x428bbf=>({'filePath':_0x428bbf,'mtime':fs['statSync'](_0x428bbf)[_0x5ca2d8(0x16b)]}))['reduce']((_0x539953,_0x50179d)=>{const _0x1fc88e=_0x5ca2d8;if(!_0x539953||!_0x539953[_0x1fc88e(0x16b)])return _0x50179d;if(_0x1b06d5[_0x1fc88e(0x150)](_0x50179d[_0x1fc88e(0x16b)],_0x539953['mtime']))return _0x50179d;return _0x539953;},{});return _0x333b03?_0x333b03[_0x5ca2d8(0x1e8)]:'';}return'';}catch(_0x353f53){return logger[_0x5ca2d8(0x1d3)](_0x5ca2d8(0x1bb)+util['format'](_0x353f53)),'';}}static ['requestToUpdateCLI']=async(_0x30b4c2,_0x4bd7ef)=>{const _0x32f02e=a85_0x1134b4,_0x1c6c0f={'bjaPC':function(_0x1e726c,_0x5377c9,_0x32dc6a,_0x39797b,_0x243c53){return _0x1e726c(_0x5377c9,_0x32dc6a,_0x39797b,_0x243c53);},'LxgBm':_0x32f02e(0x14d)},_0x25115a={};_0x25115a['qs']=_0x30b4c2,_0x25115a['preserveStatusCodeOnError']=!![];const _0x1ccee1=await _0x1c6c0f[_0x32f02e(0x139)](nodeRequest,_0x1c6c0f[_0x32f02e(0x13c)],UPDATED_CLI_ENDPOINT,_0x25115a,_0x4bd7ef);return logger['debug']('response\x20'+JSON['stringify'](_0x1ccee1)),_0x1ccee1;};static[a85_0x1134b4(0x1b8)](_0x2372e8){const _0x2232ec=a85_0x1134b4;try{const _0x3efff0=fs['openSync'](_0x2372e8,'r+');return fs['closeSync'](_0x3efff0),![];}catch(_0x22b44c){if(BINARY_BUSY_ERROR_CODES[_0x2232ec(0x187)](_0x22b44c[_0x2232ec(0x18c)]))return logger[_0x2232ec(0x1f0)](_0x2232ec(0x16c)+_0x2372e8),!![];return logger[_0x2232ec(0x1f0)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x22b44c[_0x2232ec(0x17b)]),![];}}static[a85_0x1134b4(0x1c2)](_0x3b1215,_0x1d9ff4=''){const _0x53e8fc=a85_0x1134b4,_0x45126a={'bzPwe':_0x53e8fc(0x1fd),'vLlVG':function(_0x5491fa,_0x331205){return _0x5491fa(_0x331205);},'BZJOr':_0x53e8fc(0x1e9),'WkFeE':function(_0xb6cc5,_0x5a1eb1,_0x46f748,_0x3a732e){return _0xb6cc5(_0x5a1eb1,_0x46f748,_0x3a732e);},'QuhlW':_0x53e8fc(0x1d3)};return new Promise((_0x35d906,_0x66a6f3)=>{const _0xc0f977=_0x53e8fc,_0x2dcbbc={'kqqaW':_0x45126a[_0xc0f977(0x1d9)],'sPLgM':function(_0x3cae46,_0x24eec7){const _0x41b44e=_0xc0f977;return _0x45126a[_0x41b44e(0x18b)](_0x3cae46,_0x24eec7);},'cIBDN':_0x45126a['BZJOr']},_0x3318cc={};_0x3318cc['cwd']=_0x1d9ff4,_0x3318cc[_0xc0f977(0x16a)]=0x1388;const _0x505c3e=_0x45126a[_0xc0f977(0x1bd)](exec,_0x3b1215,_0x3318cc,(_0x2a40bf,_0x1274a4,_0x47dfd3)=>{const _0x139f80=_0xc0f977;if(_0x2a40bf){if(_0x3b1215[_0x139f80(0x187)](_0x2dcbbc['kqqaW'])&&(_0x1274a4[_0x139f80(0x1a4)]()||_0x47dfd3[_0x139f80(0x1a4)]())){const _0x2b6d2b=_0x1274a4[_0x139f80(0x1a4)]()||_0x47dfd3[_0x139f80(0x1a4)]();logger[_0x139f80(0x1f0)](_0x139f80(0x18a)+_0x2b6d2b+'\x22'),_0x2dcbbc['sPLgM'](_0x35d906,_0x2b6d2b);}else _0x2dcbbc[_0x139f80(0x190)](_0x35d906,_0x47dfd3['trim']()||_0x2dcbbc[_0x139f80(0x131)]);}else logger[_0x139f80(0x1f0)](_0x139f80(0x13f)+_0x1274a4['trim']()+'\x22'),_0x2dcbbc[_0x139f80(0x190)](_0x35d906,_0x1274a4[_0x139f80(0x1a4)]());});_0x505c3e['on'](_0x45126a['QuhlW'],()=>{_0x2dcbbc['sPLgM'](_0x35d906,_0x2dcbbc['cIBDN']);});});}static ['downloadLatestBinary']=async(_0x2e7643,_0xb7757e)=>{const _0xda3805=a85_0x1134b4,_0x610839={'yCgTV':function(_0x440a6e,_0x2d4d26){return _0x440a6e>=_0x2d4d26;},'tlgAw':_0xda3805(0x195),'tUtpb':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','gbrGU':function(_0x395647,_0x4be2ae){return _0x395647(_0x4be2ae);},'CyiBU':'error','LHFIT':_0xda3805(0x147),'yxkCG':_0xda3805(0x129),'bKwUT':function(_0x1c0e3f,_0x2ea9d6){return _0x1c0e3f(_0x2ea9d6);},'lHiXZ':_0xda3805(0x194)};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger['debug'](_0xda3805(0x125)+_0x2e7643);try{const _0x26a7ff=url[_0xda3805(0x17a)](_0x2e7643),_0x3a9ea7=path['join'](_0xb7757e,_0xda3805(0x1ad)+process['pid']+_0xda3805(0x12a)),_0x544f64=fs[_0xda3805(0x1d6)](_0x3a9ea7);return new Promise((_0x253c5a,_0x32216e)=>{const _0x302fdf=_0xda3805,_0x2f3017={'BrfkV':_0x610839[_0x302fdf(0x16e)],'vfYHW':function(_0x3acc5f,_0x5177f2){const _0x1dd385=_0x302fdf;return _0x610839[_0x1dd385(0x17d)](_0x3acc5f,_0x5177f2);},'zpCVi':_0x610839[_0x302fdf(0x1b2)],'OPOVq':function(_0x85d8bf,_0x27f734){const _0x469ca8=_0x302fdf;return _0x610839[_0x469ca8(0x1e7)](_0x85d8bf,_0x27f734);},'Fmepj':function(_0x3a20c6,_0x2d85c){const _0x1cd4db=_0x302fdf;return _0x610839[_0x1cd4db(0x1e7)](_0x3a20c6,_0x2d85c);}};https['get'](_0x26a7ff,function(_0x38b045){const _0x111c92=_0x302fdf,_0x3cf40d=null;if(_0x38b045[_0x111c92(0x1a6)]&&_0x610839[_0x111c92(0x1be)](_0x38b045[_0x111c92(0x1a6)],0x190)){const _0x59c443=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x38b045[_0x111c92(0x1a6)]+_0x111c92(0x1fb)+_0x2e7643);_0x59c443[_0x111c92(0x18c)]=_0x610839[_0x111c92(0x191)],_0x59c443[_0x111c92(0x1a6)]=_0x38b045[_0x111c92(0x1a6)],logger[_0x111c92(0x1d3)](util[_0x111c92(0x1d5)](_0x610839[_0x111c92(0x1ba)],_0x38b045[_0x111c92(0x1a6)])),PerformanceTester[_0x111c92(0x1e4)](PerformanceEvents[_0x111c92(0x153)],![],_0x111c92(0x176)+_0x38b045[_0x111c92(0x1a6)]),_0x38b045[_0x111c92(0x196)](),_0x544f64[_0x111c92(0x175)](),fs[_0x111c92(0x1ff)](_0x3a9ea7,()=>{}),_0x610839['gbrGU'](_0x32216e,_0x59c443);return;}_0x38b045[_0x111c92(0x159)](_0x544f64),_0x38b045['on'](_0x610839[_0x111c92(0x11c)],function(_0x1d6fc6){const _0x1974f9=_0x111c92;logger[_0x1974f9(0x1d3)](util['format'](_0x2f3017[_0x1974f9(0x132)],_0x1d6fc6)),PerformanceTester[_0x1974f9(0x1e4)](PerformanceEvents[_0x1974f9(0x153)],![],util[_0x1974f9(0x1d5)](_0x1d6fc6)),_0x2f3017[_0x1974f9(0x141)](_0x32216e,_0x1d6fc6);}),_0x544f64['on'](_0x610839[_0x111c92(0x11c)],function(_0x424e1f){const _0xd54038=_0x111c92;logger['error'](util['format'](_0x2f3017[_0xd54038(0x1c5)],_0x424e1f)),PerformanceTester[_0xd54038(0x1e4)](PerformanceEvents[_0xd54038(0x153)],![],util['format'](_0x424e1f)),_0x2f3017[_0xd54038(0x1ec)](_0x32216e,_0x424e1f);}),CLIUtils[_0x111c92(0x1bc)](_0x544f64,_0x3cf40d,_0x3a9ea7,_0xb7757e,_0x29efe0=>{const _0x2b4d56=_0x111c92;PerformanceTester[_0x2b4d56(0x1e4)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x2f3017[_0x2b4d56(0x1ec)](_0x253c5a,_0x29efe0);},_0x2329b1=>{const _0x338b86=_0x111c92;PerformanceTester[_0x338b86(0x1e4)](PerformanceEvents[_0x338b86(0x153)],![],util[_0x338b86(0x1d5)](_0x2329b1)),_0x2f3017['Fmepj'](_0x32216e,_0x2329b1);});})['on'](_0x610839[_0x302fdf(0x11c)],function(_0x445162){const _0x385f11=_0x302fdf;logger[_0x385f11(0x1d3)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util['format'](_0x445162)),PerformanceTester['end'](PerformanceEvents[_0x385f11(0x153)],![],util[_0x385f11(0x1d5)](_0x445162)),_0x610839[_0x385f11(0x17d)](_0x32216e,_0x445162);});});}catch(_0x5443f3){PerformanceTester[_0xda3805(0x1e4)](PerformanceEvents[_0xda3805(0x153)],![],util[_0xda3805(0x1d5)](_0x5443f3)),logger[_0xda3805(0x1d3)](util['format'](_0x610839['lHiXZ'],_0x5443f3));throw _0x5443f3;}};static['downloadFileStream'](_0x2babdc,_0x34047f,_0x19d2d0,_0x43751f,_0x1a775e,_0x425bc1){const _0x1136e0=a85_0x1134b4,_0x293199={'SbZzS':function(_0x16f5be,_0x5b9bed){return _0x16f5be(_0x5b9bed);},'PwHFa':_0x1136e0(0x1ed),'eORjq':_0x1136e0(0x1e4),'oHgsz':function(_0x4c70f8,_0x3c5195){return _0x4c70f8!==_0x3c5195;},'xMQzv':_0x1136e0(0x1d3),'SGtRs':_0x1136e0(0x1ce),'actft':_0x1136e0(0x19a),'LUkZq':function(_0x22082c,_0x128c44){return _0x22082c(_0x128c44);},'VTtja':_0x1136e0(0x1d8)};_0x2babdc['on'](_0x293199['PwHFa'],function(){const _0x49fc4d=_0x1136e0,_0x3c1650={'oSDCW':function(_0xe0ddd7,_0x331454){const _0x1b8b7e=a85_0x1523;return _0x293199[_0x1b8b7e(0x1e5)](_0xe0ddd7,_0x331454);},'mQqwI':_0x293199['PwHFa'],'faqRM':function(_0x45f5ae,_0xb10132){const _0x3f0a03=a85_0x1523;return _0x293199[_0x3f0a03(0x1e5)](_0x45f5ae,_0xb10132);},'ANMAH':_0x293199[_0x49fc4d(0x1ab)],'nSDcI':function(_0x5803ce,_0x2ea062){return _0x293199['oHgsz'](_0x5803ce,_0x2ea062);},'gbVbk':function(_0x5409c3,_0x3637cf){return _0x293199['SbZzS'](_0x5409c3,_0x3637cf);},'TlxQZ':_0x293199[_0x49fc4d(0x174)],'jQEkf':function(_0x19aa43,_0x5b3d17){const _0x3513d8=_0x49fc4d;return _0x293199[_0x3513d8(0x1e5)](_0x19aa43,_0x5b3d17);},'qabwm':_0x293199[_0x49fc4d(0x123)],'xUDCy':_0x293199[_0x49fc4d(0x1a9)],'idWTk':function(_0x115db0,_0x34f8b2){const _0x16673c=_0x49fc4d;return _0x293199[_0x16673c(0x1f7)](_0x115db0,_0x34f8b2);},'Vrgzu':_0x293199['VTtja']},_0x140ac7={};_0x140ac7[_0x49fc4d(0x1e6)]=!![],yauzl['open'](_0x19d2d0,_0x140ac7,function(_0x2901d5,_0x277cbf){const _0x145816=_0x49fc4d,_0x3f45ec={'OLJeT':function(_0x5bd17d,_0x26530c){const _0x150f80=a85_0x1523;return _0x3c1650[_0x150f80(0x1c4)](_0x5bd17d,_0x26530c);},'OEqfj':_0x3c1650[_0x145816(0x170)],'zybtU':function(_0x29e04a,_0x4d3a81){return _0x3c1650['faqRM'](_0x29e04a,_0x4d3a81);},'qFIAt':_0x3c1650['ANMAH'],'HoflY':function(_0x2a5f7d,_0xbbb04d){const _0x3d6655=_0x145816;return _0x3c1650[_0x3d6655(0x199)](_0x2a5f7d,_0xbbb04d);},'UTBJh':function(_0x20f1d2,_0x202c68){return _0x3c1650['gbVbk'](_0x20f1d2,_0x202c68);},'oYZku':_0x3c1650[_0x145816(0x1cc)],'zsQMr':function(_0x51a587,_0x3aab6c){const _0x1919e8=_0x145816;return _0x3c1650[_0x1919e8(0x1b0)](_0x51a587,_0x3aab6c);},'Ertnc':function(_0x38823f,_0x2417d7){return _0x3c1650['nSDcI'](_0x38823f,_0x2417d7);},'azvhr':_0x3c1650[_0x145816(0x161)],'cMqmj':function(_0x4a506c,_0x4e192b){const _0x22f0e0=_0x145816;return _0x3c1650[_0x22f0e0(0x192)](_0x4a506c,_0x4e192b);},'XUVcQ':function(_0x58f40b,_0x1a5e77){return _0x3c1650['jQEkf'](_0x58f40b,_0x1a5e77);},'HLaJN':_0x3c1650[_0x145816(0x119)]};if(_0x2901d5){_0x3c1650[_0x145816(0x1f3)](_0x425bc1,_0x2901d5);return;}_0x277cbf[_0x145816(0x151)](),_0x277cbf['on'](_0x3c1650[_0x145816(0x1ef)],_0x25d2ab=>{const _0x2821a4=_0x145816,_0x4268ad={'IPGQR':_0x3f45ec[_0x2821a4(0x14a)],'CnTQA':function(_0x13598d,_0x1bf3dc){const _0x1d15bf=_0x2821a4;return _0x3f45ec[_0x1d15bf(0x19b)](_0x13598d,_0x1bf3dc);},'ilSjw':_0x3f45ec['qFIAt']};if(/\/$/[_0x2821a4(0x189)](_0x25d2ab[_0x2821a4(0x1e0)])){_0x277cbf[_0x2821a4(0x151)]();return;}!_0x34047f&&(_0x34047f=_0x25d2ab[_0x2821a4(0x1e0)]);if(_0x3f45ec['HoflY'](_0x25d2ab['fileName'],_0x34047f))_0x277cbf['readEntry']();else{const _0x28e9de=_0x25d2ab['fileName'],_0x52ac17=path[_0x2821a4(0x135)](_0x43751f,_0x28e9de+'.tmp.'+process[_0x2821a4(0x14b)]);let _0x3193f8;try{_0x3193f8=fs[_0x2821a4(0x1d6)](_0x52ac17);}catch(_0x3977be){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3977be[_0x2821a4(0x18c)])){const _0x89c4ed=path[_0x2821a4(0x135)](_0x43751f,_0x28e9de);if(fs[_0x2821a4(0x166)](_0x89c4ed)){logger[_0x2821a4(0x1f1)](_0x2821a4(0x11d)+_0x28e9de),fs[_0x2821a4(0x1ff)](_0x19d2d0,_0x37c8fc=>{const _0x4a5854=_0x2821a4;_0x37c8fc&&logger[_0x4a5854(0x1f1)](_0x4a5854(0x180)+_0x19d2d0);}),_0x3f45ec[_0x2821a4(0x124)](_0x1a775e,_0x89c4ed);return;}logger[_0x2821a4(0x1f1)](_0x2821a4(0x14c)+_0x28e9de);}_0x3f45ec[_0x2821a4(0x19b)](_0x425bc1,_0x3977be);return;}_0x3193f8['on'](_0x3f45ec[_0x2821a4(0x1a7)],_0x48fde8=>{const _0x1012d7=_0x2821a4;if(BINARY_BUSY_ERROR_CODES[_0x1012d7(0x187)](_0x48fde8[_0x1012d7(0x18c)])){const _0xf420e5=path[_0x1012d7(0x135)](_0x43751f,_0x28e9de);_0x3193f8[_0x1012d7(0x1ed)](),fs[_0x1012d7(0x166)](_0xf420e5)?(logger[_0x1012d7(0x1f1)](_0x1012d7(0x19e)+_0x48fde8[_0x1012d7(0x17b)]),_0x277cbf[_0x1012d7(0x1ed)](),fs[_0x1012d7(0x1ff)](_0x19d2d0,_0x390677=>{const _0x18fbe3=_0x1012d7;_0x390677&&logger[_0x18fbe3(0x1f1)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x19d2d0);}),_0x3f45ec[_0x1012d7(0x1c8)](_0x1a775e,_0xf420e5)):(logger[_0x1012d7(0x1f1)](_0x1012d7(0x1c1)+_0x48fde8[_0x1012d7(0x17b)]),fs[_0x1012d7(0x1ff)](_0x52ac17,()=>{}),_0x3f45ec[_0x1012d7(0x1c8)](_0x425bc1,_0x48fde8));}else fs[_0x1012d7(0x1ff)](_0x52ac17,()=>{}),_0x3f45ec['OLJeT'](_0x425bc1,_0x48fde8);}),_0x277cbf[_0x2821a4(0x143)](_0x25d2ab,function(_0x4e9f35,_0x28291d){const _0x40b759=_0x2821a4;if(_0x4e9f35){fs[_0x40b759(0x1ff)](_0x52ac17,()=>{}),_0x4268ad[_0x40b759(0x1cf)](_0x425bc1,_0x4e9f35);return;}_0x28291d['on'](_0x4268ad[_0x40b759(0x149)],function(){const _0x51b5a9=_0x40b759;_0x3193f8[_0x51b5a9(0x1e4)](),_0x3193f8['on'](_0x4268ad[_0x51b5a9(0x197)],function(){const _0x1338b6=_0x51b5a9;_0x277cbf[_0x1338b6(0x151)]();});}),_0x28291d[_0x40b759(0x159)](_0x3193f8);});}}),_0x277cbf['on'](_0x3c1650['TlxQZ'],_0x373444=>{const _0x35a17f=_0x145816;_0x3f45ec[_0x35a17f(0x1f6)](_0x425bc1,_0x373444);}),_0x277cbf['once'](_0x3c1650[_0x145816(0x179)],()=>{const _0x5eb524=_0x145816;fs[_0x5eb524(0x1ff)](_0x19d2d0,_0xc76c1b=>{const _0x20437e=_0x5eb524;_0xc76c1b&&logger[_0x20437e(0x1f1)](_0x20437e(0x180)+_0x19d2d0);});const _0x59add8=path['join'](_0x43751f,_0x34047f+_0x5eb524(0x193)+process['pid']),_0x1a4320=path[_0x5eb524(0x135)](_0x43751f,_0x34047f);fs[_0x5eb524(0x184)](_0x59add8,_0x3f45ec[_0x5eb524(0x1c3)],function(_0x3531c0){const _0xb9edc0=_0x5eb524,_0x1623ce={'zKjEe':function(_0x51be66,_0x4cd734){return _0x3f45ec['Ertnc'](_0x51be66,_0x4cd734);},'TvMBv':_0x3f45ec['azvhr'],'DjXtU':function(_0x253c0d,_0x28c8d3){const _0x3efd71=a85_0x1523;return _0x3f45ec[_0x3efd71(0x1c8)](_0x253c0d,_0x28c8d3);},'PIKJv':function(_0xc972e6,_0xcb1520){const _0x300d00=a85_0x1523;return _0x3f45ec[_0x300d00(0x1f6)](_0xc972e6,_0xcb1520);},'FhYzh':function(_0x41e813,_0x33a02b){return _0x3f45ec['cMqmj'](_0x41e813,_0x33a02b);}};if(_0x3531c0){_0x277cbf[_0xb9edc0(0x1ed)](),fs[_0xb9edc0(0x1ff)](_0x59add8,()=>{}),_0x3f45ec[_0xb9edc0(0x1da)](_0x425bc1,_0x3531c0);return;}fs[_0xb9edc0(0x1fe)](_0x59add8,_0x1a4320,function(_0xa6e76a){const _0x4319ac=_0xb9edc0;if(_0xa6e76a){if(_0x1623ce[_0x4319ac(0x1c7)](_0xa6e76a['code'],_0x1623ce[_0x4319ac(0x15f)])){_0x277cbf[_0x4319ac(0x1ed)](),fs[_0x4319ac(0x1ff)](_0x59add8,()=>{}),_0x1623ce[_0x4319ac(0x171)](_0x425bc1,_0xa6e76a);return;}logger['warn'](_0x4319ac(0x1b6)+_0xa6e76a[_0x4319ac(0x17b)]);try{fs[_0x4319ac(0x1a5)](_0x59add8,_0x1a4320);}catch(_0x1fee3f){_0x277cbf[_0x4319ac(0x1ed)](),fs[_0x4319ac(0x1ff)](_0x59add8,()=>{}),_0x1623ce[_0x4319ac(0x19d)](_0x425bc1,_0x1fee3f);return;}fs['unlink'](_0x59add8,_0x2e1554=>{const _0x17b9c4=_0x4319ac;_0x2e1554&&logger['warn'](_0x17b9c4(0x1e1)+_0x2e1554[_0x17b9c4(0x17b)]);});}_0x277cbf[_0x4319ac(0x1ed)](),_0x1623ce[_0x4319ac(0x1de)](_0x1a775e,_0x1a4320);});});});});});}static[a85_0x1134b4(0x154)](){const _0x346f73=a85_0x1134b4;if(process[_0x346f73(0x1ac)][_0x346f73(0x1b5)])return JSON[_0x346f73(0x17a)](process[_0x346f73(0x1ac)][_0x346f73(0x1b5)]);return this[_0x346f73(0x1f9)];}static[a85_0x1134b4(0x14e)](){const _0x4857f8=a85_0x1134b4;if(process[_0x4857f8(0x1ac)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x4857f8(0x17a)](process[_0x4857f8(0x1ac)][_0x4857f8(0x177)]);return this['automationFrameworkDetail'];}static[a85_0x1134b4(0x1b3)](_0x354260,_0x5d4978){const _0x8cfbbf=a85_0x1134b4,_0xf7d6f1={'NvakZ':_0x8cfbbf(0x155),'XKnGo':function(_0x1564d7,_0x32eada){return _0x1564d7(_0x32eada);},'dNjsq':function(_0x21f3d3,_0x28573b){return _0x21f3d3||_0x28573b;},'pdGNj':function(_0x6c1ab5,_0x36e5f4){return _0x6c1ab5(_0x36e5f4);}},_0x8f5b81=_0xf7d6f1[_0x8cfbbf(0x200)][_0x8cfbbf(0x1d7)]('|');let _0x358a5d=0x0;while(!![]){switch(_0x8f5b81[_0x358a5d++]){case'0':process[_0x8cfbbf(0x1ac)][_0x8cfbbf(0x177)]=JSON[_0x8cfbbf(0x163)](this['automationFrameworkDetail']);continue;case'1':this[_0x8cfbbf(0x133)]={'name':_0x5d4978,'version':_0xf7d6f1[_0x8cfbbf(0x1d0)](getFrameworkVersion,_0x5d4978)};continue;case'2':_0xf7d6f1[_0x8cfbbf(0x1eb)](!_0x354260,!_0x5d4978)&&logger[_0x8cfbbf(0x1f0)](_0x8cfbbf(0x126)+_0x354260+_0x8cfbbf(0x160)+_0x5d4978);continue;case'3':process[_0x8cfbbf(0x1ac)][_0x8cfbbf(0x1b5)]=JSON[_0x8cfbbf(0x163)](this[_0x8cfbbf(0x1f9)]);continue;case'4':this[_0x8cfbbf(0x1f9)]={'name':_0x354260,'version':{[_0x354260]:_0xf7d6f1[_0x8cfbbf(0x1a2)](getFrameworkVersion,_0x354260)}};continue;}break;}}static[a85_0x1134b4(0x168)](_0x46da38,_0x586c0f){return _0x46da38+':'+_0x586c0f;}static['getCurrentInstanceName'](){const _0x261d8f=a85_0x1134b4;return process[_0x261d8f(0x14b)]+':'+threadId;}static[a85_0x1134b4(0x12b)](_0x56ccd3){const _0x4a653b=a85_0x1134b4;if(_0x56ccd3[_0x4a653b(0x15a)]&&_0x56ccd3[_0x4a653b(0x15a)][_0x4a653b(0x1b4)])return!![];return![];}static[a85_0x1134b4(0x1fa)](_0x133865){const _0x504dca=a85_0x1134b4;if(_0x133865['testContextOptions']&&_0x133865[_0x504dca(0x15a)][_0x504dca(0x14f)])return!![];return![];}static[a85_0x1134b4(0x148)](_0x54877d){const _0x4047ee=a85_0x1134b4,_0x21c0b5=new RegExp(TestFrameworkConstants[_0x4047ee(0x1e3)]);return _0x21c0b5['test'](_0x54877d);}static[a85_0x1134b4(0x11f)](_0x4f9348,_0x2aabcd){const _0x3f28ff=a85_0x1134b4,_0x4cc576={};_0x4cc576['PtHhT']=function(_0x192818,_0x428866){return _0x192818!==_0x428866;},_0x4cc576[_0x3f28ff(0x201)]=function(_0x261a9a,_0x51ec68){return _0x261a9a===_0x51ec68;},_0x4cc576[_0x3f28ff(0x13b)]=_0x3f28ff(0x137);const _0x4f7f47=_0x4cc576;for(const [_0x54bed9,_0x2f4809]of Object[_0x3f28ff(0x185)](_0x2aabcd)){if(_0x4f7f47[_0x3f28ff(0x186)](_0x2f4809,null)&&_0x4f7f47[_0x3f28ff(0x201)](typeof _0x2f4809,_0x4f7f47[_0x3f28ff(0x13b)])&&!Array[_0x3f28ff(0x1db)](_0x2f4809))_0x4f9348[_0x54bed9]=this['mergeObject'](_0x4f9348[_0x54bed9]||{},_0x2f4809);else Array['isArray'](_0x2f4809)?_0x4f9348[_0x54bed9]=(_0x4f9348[_0x54bed9]||[])['concat'](_0x2f4809):_0x4f9348[_0x54bed9]=_0x2f4809;}return _0x4f9348;}}module[a85_0x1134b4(0x1dc)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a86_0x42adc5=a86_0x31be;(function(_0xc45380,_0x4faa02){const _0x3bf45a=a86_0x31be,_0x2fe0c3=_0xc45380();while(!![]){try{const _0x4f9501=parseInt(_0x3bf45a(0xb7))/0x1*(parseInt(_0x3bf45a(0xb1))/0x2)+parseInt(_0x3bf45a(0x98))/0x3+parseInt(_0x3bf45a(0xc4))/0x4+-parseInt(_0x3bf45a(0xda))/0x5+parseInt(_0x3bf45a(0x6b))/0x6*(parseInt(_0x3bf45a(0x7b))/0x7)+parseInt(_0x3bf45a(0xea))/0x8*(-parseInt(_0x3bf45a(0xe6))/0x9)+parseInt(_0x3bf45a(0x91))/0xa;if(_0x4f9501===_0x4faa02)break;else _0x2fe0c3['push'](_0x2fe0c3['shift']());}catch(_0x6ad680){_0x2fe0c3['push'](_0x2fe0c3['shift']());}}}(a86_0x4bb3,0x49002));const fs=require('fs'),os=require('os'),path=require(a86_0x42adc5(0xb2)),helper=require(a86_0x42adc5(0x97)),AutomationFramework=require(a86_0x42adc5(0x80)),TestFrameworkConstants=require(a86_0x42adc5(0x73)),PlaywrightDriverModule=require(a86_0x42adc5(0xdc)),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x42adc5(0xa5)),{createClassLogger}=require(a86_0x42adc5(0x9b)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a86_0x42adc5(0xc1);function a86_0x4bb3(){const _0x3d22b5=['getTestDetails','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mergeBuildLevelTags','getTestLevelTags','1494VzNBZa','KEY_TEST_ID','sWtbU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pid','fyDZv','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','./framework/constants/testFrameworkConstants','isArray','endsWith','multi_dropdown','POST','VfUwK','retry','BROWSERSTACK_TESTHUB_UUID','12460kKREXI','function',',\x20finalTags=','TEST','FGZtJ','./framework/automationFramework','./cliUtils','ms)\x20','getBuildTagsRunId','debug','jHblG','getBuildTagsFilePath','QLfdH','parse','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getAllData','efXSh','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','FZTcK','pAgaf','isRunning','clearTags','12430tKMrkY','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','buildHashedId','name','GUiwA','MYucX','../../helpers/helper','761889yXqmZL','getTestFramework','readFileSync','../../helpers/classLogger',',\x20key=','addMultipleEntries','getInstance','setCustomTags','modules','now','buildLevelTags','getCurrentTestUUID','BUILD_TAG_FILE_PREFIX','./modules/testhubModule','nvDTc','promises','toLowerCase','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','getTestUUID','utf8','GYypu','ayxbR','getTestFrameworkDetail','xQfKK','tmpdir','10GoWCsu','path','keys','lYOjQ','statSync','join','41357HGPCAQ','null','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YViFL','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','trim','includes','resolveInstance','bstack_build_tags_','env','./browserstackCLI','57108DqWXYi','kxLLZ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','startsWith','QUOVP','setTestDetails','vTBtd','wBthr','./state/hookState',',\x20values=','qGjrY','field_type','CfpxU','KEY_CUSTOM_TAGS','__jestCurrentTestIdentifier','parseCommaSeparatedValues','stringify','currentTest','MODULE_NAME','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','mergeIntoTags','1629505ZskOFC','mergeValues','./modules/playwrightDriverModule','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','pDRay','length','values','SLrIL','jest','testLevelTags','from','testhubConfig','2439hKfKYV','message','getTestIdentifierFromTestInfo','entries','8696GEvemM','getTrackedInstance','getState','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','bhHTw','testInfo'];a86_0x4bb3=function(){return _0x3d22b5;};return a86_0x4bb3();}function a86_0x31be(_0x50e025,_0x5c012a){const _0x4bb35a=a86_0x4bb3();return a86_0x31be=function(_0x31be2d,_0x5a23e0){_0x31be2d=_0x31be2d-0x68;let _0x2f7f1a=_0x4bb35a[_0x31be2d];return _0x2f7f1a;},a86_0x31be(_0x50e025,_0x5c012a);}function getBuildTagsRunId(){const _0x243786=a86_0x42adc5,_0x2167a4={};_0x2167a4[_0x243786(0x85)]=function(_0x3952a8,_0x2ed99d){return _0x3952a8===_0x2ed99d;},_0x2167a4[_0x243786(0xe1)]=_0x243786(0xb8);const _0x1ae92d=_0x2167a4,_0x374de9=process[_0x243786(0xc2)][_0x243786(0x7a)];if(!_0x374de9||_0x1ae92d['jHblG'](_0x374de9,_0x1ae92d['SLrIL']))return null;return _0x374de9;}function getBuildTagsFilePath(_0x5ce2ad){const _0x12ce98=a86_0x42adc5;return path['join'](os[_0x12ce98(0xb0)](),''+BUILD_TAG_FILE_PREFIX+_0x5ce2ad+'_'+process[_0x12ce98(0x70)]+'.json');}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0x5287e2,_0x4a86a3){const _0x8534e7=a86_0x42adc5;return Array[_0x8534e7(0xe4)](new Set([..._0x5287e2||[],..._0x4a86a3||[]]));}static[a86_0x42adc5(0xd9)](_0x26065b,_0x2f0e98,_0x270f1a){const _0x56c1cc=a86_0x42adc5,_0xcdb9e6={};_0xcdb9e6['GUiwA']=_0x56c1cc(0x76);const _0x50d37b=_0xcdb9e6;if(!_0x26065b[_0x2f0e98]){const _0x5e2e31={};_0x5e2e31[_0x56c1cc(0xd0)]=_0x50d37b['GUiwA'],_0x5e2e31[_0x56c1cc(0xe0)]=[..._0x270f1a||[]],_0x26065b[_0x2f0e98]=_0x5e2e31;}else!_0x26065b[_0x2f0e98]['field_type']&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xd0)]=_0x50d37b[_0x56c1cc(0x95)]),!Array[_0x56c1cc(0x74)](_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)])&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=[]),_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=CustomTagManager[_0x56c1cc(0xdb)](_0x26065b[_0x2f0e98]['values'],_0x270f1a);return _0x26065b;}static async[a86_0x42adc5(0x9f)](_0x44489a,_0x121d82,_0x3014a9=![]){const _0x20af60=a86_0x42adc5,_0x2e576a={'afrqr':function(_0x3c9444,_0x338219){return _0x3c9444!==_0x338219;},'wBthr':'string','GYypu':_0x20af60(0x72),'QLfdH':_0x20af60(0x68),'NloNr':function(_0x471f27,_0x13b05e){return _0x471f27===_0x13b05e;},'dSSWR':_0x20af60(0xd8),'eyGkJ':function(_0xfd8752,_0x3e4252){return _0xfd8752===_0x3e4252;},'vhDlN':_0x20af60(0x6f),'MYucX':function(_0x340f8d,_0x392979){return _0x340f8d(_0x392979);},'pAgaf':_0x20af60(0xc3),'qGjrY':function(_0xd92303){return _0xd92303();},'CfpxU':_0x20af60(0x76),'sWtbU':function(_0x5ab665,_0x4add63){return _0x5ab665>_0x4add63;},'VfUwK':function(_0x4b2b06,_0x298455){return _0x4b2b06(_0x298455);},'SKPMa':_0x20af60(0xa9),'pDRay':':jest-','ayxbR':_0x20af60(0x81),'dJSuH':function(_0x5c2d15,_0x2e3c78){return _0x5c2d15===_0x2e3c78;},'GEvDP':_0x20af60(0xe2),'lYOjQ':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','xQfKK':function(_0x246766,_0x4e18a9){return _0x246766(_0x4e18a9);},'kxLLZ':_0x20af60(0xc6),'YViFL':'./state/testFrameworkState','sEiYJ':_0x20af60(0xcd),'otlhd':_0x20af60(0xb9),'bhHTw':function(_0x1efefc,_0x296545){return _0x1efefc(_0x296545);},'fyDZv':function(_0xb53f16,_0x5836fd){return _0xb53f16===_0x5836fd;},'nvDTc':_0x20af60(0x7c)};if(_0x2e576a['afrqr'](typeof _0x44489a,_0x2e576a['wBthr'])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0xac)]);return;}if(_0x2e576a['afrqr'](typeof _0x121d82,_0x2e576a[_0x20af60(0xcc)])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0x87)]);return;}if(_0x2e576a['NloNr'](_0x44489a[_0x20af60(0xbe)](),'')){logger[_0x20af60(0x84)](_0x2e576a['dSSWR']);return;}if(_0x2e576a['eyGkJ'](_0x121d82['trim'](),'')){logger['debug'](_0x2e576a['vhDlN']);return;}const _0x46783f=helper[_0x20af60(0xd4)](_0x121d82);if(_0x3014a9){const _0x125191=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]),_0x141125=_0x125191[_0x20af60(0x9e)](),_0x4e18f3=_0x141125&&_0x141125[_0x20af60(0xa0)][TestHubModule[_0x20af60(0xd7)]];if(_0x4e18f3){const _0x4fed52=_0x4e18f3?.[_0x20af60(0xe5)]?.['toObject']()?.[_0x20af60(0x93)];TestInfo[_0x20af60(0xaa)](_0x4fed52);const _0x36ced8=TestInfo[_0x20af60(0xf0)](_0x4fed52),_0x233473=_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x233473,_0x44489a,_0x46783f),_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x233473,TestInfo[_0x20af60(0xca)](_0x4fed52,_0x36ced8);!this[_0x20af60(0xa2)][_0x4fed52]&&(this[_0x20af60(0xa2)][_0x4fed52]={});this[_0x20af60(0xa2)][_0x4fed52][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['buildLevelTags'][_0x4fed52][_0x44489a],_0x46783f);try{const _0x294763=_0x2e576a[_0x20af60(0xcf)](getBuildTagsRunId);if(_0x294763){const _0x579a7f={};for(const [_0xc782db,_0x4ca085]of Object[_0x20af60(0xe9)](this[_0x20af60(0xa2)][_0x4fed52]||{})){_0x579a7f[_0xc782db]={'field_type':_0x2e576a[_0x20af60(0xd1)],'values':Array[_0x20af60(0x74)](_0x4ca085)?[..._0x4ca085]:[]};}_0x2e576a[_0x20af60(0x6d)](Object[_0x20af60(0xb3)](_0x579a7f)[_0x20af60(0xdf)],0x0)&&await fs[_0x20af60(0xa7)]['writeFile'](_0x2e576a[_0x20af60(0x78)](getBuildTagsFilePath,_0x294763),JSON[_0x20af60(0xd5)](_0x579a7f));}else logger['debug'](_0x2e576a['SKPMa']);}catch(_0x1d5be3){logger['debug'](_0x20af60(0x92)+(_0x1d5be3&&_0x1d5be3[_0x20af60(0xe7)]?_0x1d5be3['message']:_0x1d5be3));}}}else{let _0x1ecc7a;const _0x275311=global[_0x20af60(0xd3)];let _0x3c34a8=![];if(_0x275311&&_0x275311[_0x20af60(0xbf)](_0x2e576a['pDRay']))_0x3c34a8=!![],_0x1ecc7a=_0x275311;else try{const _0x5aba3c=_0x2e576a['MYucX'](require,_0x2e576a[_0x20af60(0xad)]),_0x26b9cc=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]);if(_0x26b9cc[_0x20af60(0x9e)]()[_0x20af60(0x8f)]()){const _0x49c89b=_0x5aba3c[_0x20af60(0xae)]();if(_0x2e576a['dJSuH'](_0x49c89b?.[_0x20af60(0x94)]?.[_0x20af60(0xa8)](),_0x2e576a['GEvDP'])){const _0x25776=AutomationFramework[_0x20af60(0xeb)]();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x25776,PlaywrightDriverModule[_0x20af60(0x6c)],''),_0x1ecc7a&&_0x1ecc7a[_0x20af60(0xbf)](_0x2e576a[_0x20af60(0xde)])&&(_0x3c34a8=!![]);}}}catch(_0x3ee592){logger[_0x20af60(0x84)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x3ee592);}if(_0x3c34a8){if(!_0x1ecc7a)throw new Error(_0x2e576a[_0x20af60(0xb4)]);const _0x316184=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a['pAgaf']),_0x557780=_0x316184[_0x20af60(0x9e)]()[_0x20af60(0x99)]();if(!_0x557780)throw new Error(_0x2e576a[_0x20af60(0xc5)]);const _0x3c378c=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a[_0x20af60(0xbc)]),_0x47f281=_0x2e576a[_0x20af60(0x78)](require,_0x2e576a['sEiYJ']),_0x2166c9=_0x557780[_0x20af60(0xc0)](_0x3c378c[_0x20af60(0x7e)],_0x47f281[_0x20af60(0x77)]);if(!_0x2166c9)throw new Error(_0x2e576a['otlhd']);const _0x2cef85=_0x2166c9[_0x20af60(0x8a)]()['get'](_0x1ecc7a)||{},_0x57c39d=_0x2cef85[TestFrameworkConstants[_0x20af60(0xd2)]]||{};logger['debug'](_0x20af60(0x89)+_0x1ecc7a+_0x20af60(0x9c)+_0x44489a+_0x20af60(0xce)+JSON[_0x20af60(0xd5)](_0x46783f)+',\x20existingTags='+JSON['stringify'](_0x57c39d)),CustomTagManager[_0x20af60(0xd9)](_0x57c39d,_0x44489a,_0x46783f),logger['debug'](_0x20af60(0x8c)+_0x44489a+'\x20->\x20values='+JSON[_0x20af60(0xd5)](_0x57c39d[_0x44489a][_0x20af60(0xe0)]));const _0x406ab3={[TestFrameworkConstants[_0x20af60(0xd2)]]:_0x57c39d},_0x13739a={};_0x13739a[_0x1ecc7a]=_0x406ab3,_0x2166c9[_0x20af60(0x9d)](_0x13739a),logger[_0x20af60(0x84)](_0x20af60(0xdd)+_0x1ecc7a+_0x20af60(0x7d)+JSON[_0x20af60(0xd5)](_0x57c39d)),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['testLevelTags'][_0x1ecc7a][_0x44489a],_0x46783f);}else{const _0x209e35=global['__workerDetails']?.[_0x20af60(0xd6)]?.[_0x20af60(0xef)];if(!_0x209e35){const _0x4f3d72=AutomationFramework['getTrackedInstance']();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x4f3d72,PlaywrightDriverModule[_0x20af60(0x6c)],'');if(!_0x1ecc7a)try{const _0x56f17f=_0x2e576a[_0x20af60(0xee)](require,_0x2e576a[_0x20af60(0x8e)]),_0xdf81d5=_0x56f17f[_0x20af60(0x9e)](),_0x3cd7e0=_0xdf81d5&&_0xdf81d5[_0x20af60(0x99)]();_0x1ecc7a=_0x3cd7e0&&_0x2e576a[_0x20af60(0x71)](typeof _0x3cd7e0[_0x20af60(0xa3)],_0x2e576a[_0x20af60(0xa6)])&&_0x3cd7e0['getCurrentTestUUID']()||_0x1ecc7a;}catch(_0x354e2c){logger[_0x20af60(0x84)](_0x20af60(0xed)+(_0x354e2c&&_0x354e2c[_0x20af60(0xe7)]));}}else _0x1ecc7a=TestInfo[_0x20af60(0xe8)](_0x209e35,_0x209e35[_0x20af60(0x79)]);const _0x4d4d08=TestInfo[_0x20af60(0xf0)](_0x1ecc7a),_0x14cdfa=_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x14cdfa,_0x44489a,_0x46783f),_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x14cdfa,TestInfo[_0x20af60(0xca)](_0x1ecc7a,_0x4d4d08),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this['testLevelTags'][_0x1ecc7a][_0x44489a]=CustomTagManager['mergeValues'](this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a],_0x46783f);}}}static['getBuildLevelTags'](){const _0x7188a0=a86_0x42adc5,_0x2f1561={...this[_0x7188a0(0xa2)]};return _0x2f1561;}static[a86_0x42adc5(0x6a)](){const _0x1086d8=a86_0x42adc5,_0x3f7e9c={...this[_0x1086d8(0xe3)]};return _0x3f7e9c;}static[a86_0x42adc5(0x90)](){const _0x5c3ec6=a86_0x42adc5;this['buildLevelTags']={},this[_0x5c3ec6(0xe3)]={};}static[a86_0x42adc5(0x69)](_0x39f423,_0xb2afe1){const _0x2bbdfb=a86_0x42adc5,_0x4b52a7={};_0x4b52a7[_0x2bbdfb(0xcb)]=function(_0x538244,_0x107ab0){return _0x538244||_0x107ab0;};const _0x17d7d1=_0x4b52a7;if(!_0x39f423)return;!this[_0x2bbdfb(0xa2)][_0x39f423]&&(this[_0x2bbdfb(0xa2)][_0x39f423]={});for(const [_0x5cd484,_0xb71075]of Object['entries'](_0x17d7d1[_0x2bbdfb(0xcb)](_0xb2afe1,{}))){if(!_0xb71075||!Array['isArray'](_0xb71075[_0x2bbdfb(0xe0)]))continue;this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484]=CustomTagManager[_0x2bbdfb(0xdb)](this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484],_0xb71075[_0x2bbdfb(0xe0)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x3ad400,_0x229166){const _0x536631=a86_0x42adc5,_0x5f389a={};_0x5f389a[_0x536631(0x7f)]=_0x536631(0xbb),_0x5f389a['FZTcK']=function(_0x366ab6,_0xdf3577){return _0x366ab6*_0xdf3577;},_0x5f389a[_0x536631(0x8b)]=function(_0x5a7b9b,_0x86761c){return _0x5a7b9b>_0x86761c;},_0x5f389a[_0x536631(0xc9)]=function(_0x505620,_0x5bd700){return _0x505620-_0x5bd700;},_0x5f389a['hqvrt']=_0x536631(0xab);const _0x479d2b=_0x5f389a;if(!_0x3ad400)return logger[_0x536631(0x84)](_0x479d2b['FGZtJ']),0x0;let _0x337653;try{_0x337653=os[_0x536631(0xb0)]();}catch(_0x3def77){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x3def77),0x0;}let _0x18a93c;try{_0x18a93c=fs['readdirSync'](_0x337653);}catch(_0x591e94){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x591e94),0x0;}const _0x2a13d4=''+BUILD_TAG_FILE_PREFIX+_0x3ad400+'_',_0x1d5683=_0x18a93c['filter'](_0x5c1697=>_0x5c1697[_0x536631(0xc8)](_0x2a13d4)&&_0x5c1697[_0x536631(0x75)]('.json')),_0x33739b=_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](0x2,0x3c),0x3c),0x3e8);let _0x265d4d=0x0;for(const _0x5b3bc8 of _0x1d5683){const _0x63e17f=path[_0x536631(0xb6)](_0x337653,_0x5b3bc8);try{const _0x229b8a=fs[_0x536631(0xb5)](_0x63e17f);if(_0x479d2b[_0x536631(0x8b)](_0x479d2b[_0x536631(0xc9)](Date[_0x536631(0xa1)](),_0x229b8a[_0x536631(0xc7)]),_0x33739b)){logger['debug'](_0x536631(0xbd)+_0x33739b+_0x536631(0x82)+_0x5b3bc8);try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x305dc3){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x5b3bc8+':\x20'+(_0x305dc3&&_0x305dc3[_0x536631(0xe7)]?_0x305dc3['message']:_0x305dc3));}continue;}const _0x24300f=fs[_0x536631(0x9a)](_0x63e17f,_0x479d2b['hqvrt']),_0x15ab0a=JSON[_0x536631(0x88)](_0x24300f);this['mergeBuildLevelTags'](_0x229166,_0x15ab0a),_0x265d4d+=0x1;}catch(_0x1593f1){logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5b3bc8+':\x20'+(_0x1593f1&&_0x1593f1[_0x536631(0xe7)]?_0x1593f1[_0x536631(0xe7)]:_0x1593f1));}try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x12012f){logger[_0x536631(0x84)](_0x536631(0x6e)+_0x5b3bc8+':\x20'+(_0x12012f&&_0x12012f[_0x536631(0xe7)]?_0x12012f[_0x536631(0xe7)]:_0x12012f));}}return _0x265d4d;}}const a86_0x32fc9b={};a86_0x32fc9b[a86_0x42adc5(0x83)]=getBuildTagsRunId,a86_0x32fc9b[a86_0x42adc5(0x86)]=getBuildTagsFilePath,a86_0x32fc9b[a86_0x42adc5(0xa4)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x32fc9b,module[a86_0x42adc5(0xba)]=CustomTagManager;
1
+ 'use strict';const a86_0x3ff181=a86_0x504a;function a86_0xdfa0(){const _0x2f68ed=['readFileSync','mtimeMs','trim','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','BUILD_TAG_FILE_PREFIX','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','string','MaeMM','isRunning','getTestUUID','POST','lZAqy','541476pLKPwU','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','KBMEZ','LNHqD','ZXjkI','getTestFramework','buildHashedId','__workerDetails','jlvXe','IEFeC','setTestDetails','toObject','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','\x20->\x20values=','ms)\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','pid','ftgZn','KEY_CUSTOM_TAGS','FNzdL','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','multi_dropdown','buildLevelTags','isArray','getTrackedInstance','getTestDetails','getState','../../helpers/classLogger','AGerR','LqMAJ',':jest-','644280tGVaaf','932646oEGACx','../../helpers/helper','jZGoP','./framework/automationFramework','RQPZD','modules','vyRHq','getAllData','exports','endsWith','testLevelTags','clearTags','stringify','resolveInstance','pnucZ','BROWSERSTACK_TESTHUB_UUID','function','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','mergeValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','getTestLevelTags','Lqsrr','UgUAZ','CustomTagManager',',\x20key=','./TestInfo','addMultipleEntries','234606DrMruZ','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getCurrentTestUUID','GFhsg','./modules/playwrightDriverModule','setCustomTags','mergeIntoTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','getInstance','promises','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write',',\x20existingTags=','jest','getBuildTagsRunId','VKiyy','TEST','debug','env','ebxue',',\x20values=','filter','MODULE_NAME','./framework/constants/testFrameworkConstants','./state/hookState','startsWith','parseCommaSeparatedValues','values','lDCce','mergeBuildLevelTags','getTestIdentifierFromTestInfo','ofnGY','FUNIN','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','aggregateBuildLevelTagsFromTmp','ITbPZ','dAVkt','now','currentTest','XLBto','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','keys','kAfFH','tmpdir','4829279GubsfC','join','getBuildTagsFilePath','testhubConfig','.json','_testInternals',',\x20finalTags=','toLowerCase','./browserstackCLI','Iprfq','jPjMR','entries','934228ebQRka','message','oWBJL','testInfo','NTEnH','field_type','6696hGbpLE','includes','CwrNs','null','getTestFrameworkDetail','name'];a86_0xdfa0=function(){return _0x2f68ed;};return a86_0xdfa0();}(function(_0x39e23f,_0x3f3514){const _0x272b19=a86_0x504a,_0xa286c1=_0x39e23f();while(!![]){try{const _0x5416c4=-parseInt(_0x272b19(0xa0))/0x1+-parseInt(_0x272b19(0xdd))/0x2+-parseInt(_0x272b19(0x110))/0x3+parseInt(_0x272b19(0xd7))/0x4+-parseInt(_0x272b19(0x10f))/0x5+-parseInt(_0x272b19(0xf0))/0x6+parseInt(_0x272b19(0xcb))/0x7;if(_0x5416c4===_0x3f3514)break;else _0xa286c1['push'](_0xa286c1['shift']());}catch(_0x19705a){_0xa286c1['push'](_0xa286c1['shift']());}}}(a86_0xdfa0,0x25f7c));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a86_0x3ff181(0x111)),AutomationFramework=require(a86_0x3ff181(0x86)),TestFrameworkConstants=require(a86_0x3ff181(0xb6)),PlaywrightDriverModule=require(a86_0x3ff181(0xa4)),TestInfo=require(a86_0x3ff181(0x9e)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x3ff181(0x10b)),logger=createClassLogger(a86_0x3ff181(0x9c)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0xd44b36=a86_0x3ff181,_0x1686f0={};_0x1686f0['pnucZ']=function(_0x7c536a,_0x457867){return _0x7c536a===_0x457867;},_0x1686f0[_0xd44b36(0x89)]=_0xd44b36(0xe0);const _0x51b34c=_0x1686f0,_0x1dd845=process[_0xd44b36(0xb1)][_0xd44b36(0x92)];if(!_0x1dd845||_0x51b34c[_0xd44b36(0x91)](_0x1dd845,_0x51b34c[_0xd44b36(0x89)]))return null;return _0x1dd845;}function getBuildTagsFilePath(_0x24a235){const _0x5c4029=a86_0x3ff181;return path[_0x5c4029(0xcc)](os[_0x5c4029(0xca)](),''+BUILD_TAG_FILE_PREFIX+_0x24a235+'_'+process[_0x5c4029(0x100)]+_0x5c4029(0xcf));}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0xe5dadf,_0x458a95){return Array['from'](new Set([..._0xe5dadf||[],..._0x458a95||[]]));}static['mergeIntoTags'](_0x232b8b,_0x509110,_0x143655){const _0x40708b=a86_0x3ff181,_0x258e2f={};_0x258e2f[_0x40708b(0x10c)]=_0x40708b(0x105);const _0x52ceb6=_0x258e2f;if(!_0x232b8b[_0x509110]){const _0x49e618={};_0x49e618['field_type']=_0x52ceb6[_0x40708b(0x10c)],_0x49e618[_0x40708b(0xba)]=[..._0x143655||[]],_0x232b8b[_0x509110]=_0x49e618;}else!_0x232b8b[_0x509110][_0x40708b(0xdc)]&&(_0x232b8b[_0x509110][_0x40708b(0xdc)]=_0x52ceb6[_0x40708b(0x10c)]),!Array[_0x40708b(0x107)](_0x232b8b[_0x509110][_0x40708b(0xba)])&&(_0x232b8b[_0x509110][_0x40708b(0xba)]=[]),_0x232b8b[_0x509110][_0x40708b(0xba)]=CustomTagManager[_0x40708b(0x97)](_0x232b8b[_0x509110][_0x40708b(0xba)],_0x143655);return _0x232b8b;}static async[a86_0x3ff181(0xa5)](_0x9ad300,_0x58e65c,_0x4170c9=![]){const _0x14921b=a86_0x3ff181,_0x3e4c1d={'XLBto':function(_0x4be5fe,_0x3187fe){return _0x4be5fe!==_0x3187fe;},'KBMEZ':_0x14921b(0xea),'lZAqy':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','MaeMM':_0x14921b(0xf1),'ZXjkI':function(_0x170442,_0x1b1a0e){return _0x170442===_0x1b1a0e;},'kAfFH':_0x14921b(0xa1),'ftgZn':_0x14921b(0xe9),'jPjMR':function(_0x11ef90,_0x3d330b){return _0x11ef90(_0x3d330b);},'lDCce':_0x14921b(0xd3),'dAVkt':function(_0x2c43eb){return _0x2c43eb();},'MZvly':_0x14921b(0x105),'SeZLI':function(_0x237e85,_0xb9aec1){return _0x237e85>_0xb9aec1;},'wRpvM':_0x14921b(0xaa),'IEFeC':_0x14921b(0x10e),'ujWPT':'./cliUtils','Iprfq':function(_0x51e40e,_0x53c2b7){return _0x51e40e===_0x53c2b7;},'LNHqD':_0x14921b(0xac),'ITbPZ':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','FUNIN':function(_0x44d919,_0x1df46b){return _0x44d919(_0x1df46b);},'CwrNs':_0x14921b(0x94),'NTEnH':function(_0x3501ca,_0x16fd2f){return _0x3501ca(_0x16fd2f);},'RQPZD':'./state/testFrameworkState','VKiyy':function(_0x52e260,_0x5ddabd){return _0x52e260(_0x5ddabd);},'kGPHB':_0x14921b(0xb7),'FNzdL':_0x14921b(0xfc),'Lqsrr':function(_0x5d7c92,_0x1812eb){return _0x5d7c92(_0x1812eb);},'zmJjj':function(_0x1efea5,_0x285e62){return _0x1efea5===_0x285e62;},'LqMAJ':_0x14921b(0x93)};if(_0x3e4c1d[_0x14921b(0xc6)](typeof _0x9ad300,_0x3e4c1d[_0x14921b(0xf2)])){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0xef)]);return;}if(_0x3e4c1d[_0x14921b(0xc6)](typeof _0x58e65c,_0x3e4c1d[_0x14921b(0xf2)])){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0xeb)]);return;}if(_0x3e4c1d[_0x14921b(0xf4)](_0x9ad300[_0x14921b(0xe5)](),'')){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0xc9)]);return;}if(_0x3e4c1d[_0x14921b(0xf4)](_0x58e65c[_0x14921b(0xe5)](),'')){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0x101)]);return;}const _0xd62878=helper[_0x14921b(0xb9)](_0x58e65c);if(_0x4170c9){const _0x17ff64=_0x3e4c1d[_0x14921b(0xd5)](require,_0x3e4c1d[_0x14921b(0xbb)]),_0x1ca7e9=_0x17ff64[_0x14921b(0xa8)](),_0x458012=_0x1ca7e9&&_0x1ca7e9[_0x14921b(0x88)][TestHubModule[_0x14921b(0xb5)]];if(_0x458012){const _0x1fec75=_0x458012?.[_0x14921b(0xce)]?.[_0x14921b(0xfb)]()?.[_0x14921b(0xf6)];TestInfo[_0x14921b(0xed)](_0x1fec75);const _0x5b9fbd=TestInfo[_0x14921b(0x109)](_0x1fec75),_0x3240c1=_0x5b9fbd[TestFrameworkConstants[_0x14921b(0x102)]]||{};CustomTagManager[_0x14921b(0xa6)](_0x3240c1,_0x9ad300,_0xd62878),_0x5b9fbd[TestFrameworkConstants[_0x14921b(0x102)]]=_0x3240c1,TestInfo[_0x14921b(0xfa)](_0x1fec75,_0x5b9fbd);!this[_0x14921b(0x106)][_0x1fec75]&&(this[_0x14921b(0x106)][_0x1fec75]={});this[_0x14921b(0x106)][_0x1fec75][_0x9ad300]=CustomTagManager[_0x14921b(0x97)](this[_0x14921b(0x106)][_0x1fec75][_0x9ad300],_0xd62878);try{const _0x36e2fa=_0x3e4c1d[_0x14921b(0xc3)](getBuildTagsRunId);if(_0x36e2fa){const _0x1511fa={};for(const [_0x2ab982,_0x34129a]of Object[_0x14921b(0xd6)](this[_0x14921b(0x106)][_0x1fec75]||{})){_0x1511fa[_0x2ab982]={'field_type':_0x3e4c1d['MZvly'],'values':Array['isArray'](_0x34129a)?[..._0x34129a]:[]};}_0x3e4c1d['SeZLI'](Object[_0x14921b(0xc8)](_0x1511fa)['length'],0x0)&&await fs[_0x14921b(0xa9)]['writeFile'](_0x3e4c1d[_0x14921b(0xd5)](getBuildTagsFilePath,_0x36e2fa),JSON[_0x14921b(0x8f)](_0x1511fa));}else logger[_0x14921b(0xb0)](_0x3e4c1d['wRpvM']);}catch(_0x92c89a){logger[_0x14921b(0xb0)](_0x14921b(0xc7)+(_0x92c89a&&_0x92c89a[_0x14921b(0xd8)]?_0x92c89a[_0x14921b(0xd8)]:_0x92c89a));}}}else{let _0x4512d8;const _0x39ce28=global['__jestCurrentTestIdentifier'];let _0x48f40b=![];if(_0x39ce28&&_0x39ce28[_0x14921b(0xde)](_0x3e4c1d[_0x14921b(0xf9)]))_0x48f40b=!![],_0x4512d8=_0x39ce28;else try{const _0xa55d0a=_0x3e4c1d[_0x14921b(0xd5)](require,_0x3e4c1d['ujWPT']),_0xcbc4c6=_0x3e4c1d[_0x14921b(0xd5)](require,_0x3e4c1d['lDCce']);if(_0xcbc4c6[_0x14921b(0xa8)]()[_0x14921b(0xec)]()){const _0xd52b7e=_0xa55d0a[_0x14921b(0xe1)]();if(_0x3e4c1d[_0x14921b(0xd4)](_0xd52b7e?.[_0x14921b(0xe2)]?.[_0x14921b(0xd2)](),_0x3e4c1d[_0x14921b(0xf3)])){const _0x59d951=AutomationFramework[_0x14921b(0x108)]();_0x4512d8=AutomationFramework[_0x14921b(0x10a)](_0x59d951,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x4512d8&&_0x4512d8['includes'](_0x3e4c1d[_0x14921b(0xf9)])&&(_0x48f40b=!![]);}}}catch(_0x23049a){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x23049a);}if(_0x48f40b){if(!_0x4512d8)throw new Error(_0x3e4c1d[_0x14921b(0xc2)]);const _0x165990=_0x3e4c1d[_0x14921b(0xbf)](require,_0x3e4c1d[_0x14921b(0xbb)]),_0x3bece4=_0x165990['getInstance']()[_0x14921b(0xf5)]();if(!_0x3bece4)throw new Error(_0x3e4c1d[_0x14921b(0xdf)]);const _0x3a670b=_0x3e4c1d[_0x14921b(0xdb)](require,_0x3e4c1d[_0x14921b(0x87)]),_0x25c0a7=_0x3e4c1d[_0x14921b(0xae)](require,_0x3e4c1d['kGPHB']),_0x361e83=_0x3bece4[_0x14921b(0x90)](_0x3a670b[_0x14921b(0xaf)],_0x25c0a7[_0x14921b(0xee)]);if(!_0x361e83)throw new Error(_0x3e4c1d[_0x14921b(0x103)]);const _0x305eff=_0x361e83[_0x14921b(0x8a)]()['get'](_0x4512d8)||{},_0x601937=_0x305eff[TestFrameworkConstants[_0x14921b(0x102)]]||{};logger[_0x14921b(0xb0)](_0x14921b(0x96)+_0x4512d8+_0x14921b(0x9d)+_0x9ad300+_0x14921b(0xb3)+JSON[_0x14921b(0x8f)](_0xd62878)+_0x14921b(0xab)+JSON[_0x14921b(0x8f)](_0x601937)),CustomTagManager['mergeIntoTags'](_0x601937,_0x9ad300,_0xd62878),logger[_0x14921b(0xb0)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x9ad300+_0x14921b(0xfd)+JSON['stringify'](_0x601937[_0x9ad300][_0x14921b(0xba)]));const _0x454cfa={[TestFrameworkConstants[_0x14921b(0x102)]]:_0x601937},_0x26363b={};_0x26363b[_0x4512d8]=_0x454cfa,_0x361e83[_0x14921b(0x9f)](_0x26363b),logger[_0x14921b(0xb0)](_0x14921b(0xe7)+_0x4512d8+_0x14921b(0xd1)+JSON['stringify'](_0x601937)),!this[_0x14921b(0x8d)][_0x4512d8]&&(this[_0x14921b(0x8d)][_0x4512d8]={}),this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300]=CustomTagManager[_0x14921b(0x97)](this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300],_0xd62878);}else{const _0x4b5e11=global[_0x14921b(0xf7)]?.[_0x14921b(0xc5)]?.[_0x14921b(0xda)];if(!_0x4b5e11){const _0x4cbca4=AutomationFramework['getTrackedInstance']();_0x4512d8=AutomationFramework['getState'](_0x4cbca4,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x4512d8)try{const _0x39003f=_0x3e4c1d[_0x14921b(0x9a)](require,_0x3e4c1d[_0x14921b(0xbb)]),_0x33d318=_0x39003f[_0x14921b(0xa8)](),_0x2ce7cc=_0x33d318&&_0x33d318[_0x14921b(0xf5)]();_0x4512d8=_0x2ce7cc&&_0x3e4c1d['zmJjj'](typeof _0x2ce7cc[_0x14921b(0xa2)],_0x3e4c1d[_0x14921b(0x10d)])&&_0x2ce7cc['getCurrentTestUUID']()||_0x4512d8;}catch(_0x498724){logger[_0x14921b(0xb0)](_0x14921b(0xc0)+(_0x498724&&_0x498724[_0x14921b(0xd8)]));}}else _0x4512d8=TestInfo[_0x14921b(0xbd)](_0x4b5e11,_0x4b5e11['retry']);const _0x4328bb=TestInfo[_0x14921b(0x109)](_0x4512d8),_0x563a89=_0x4328bb[TestFrameworkConstants[_0x14921b(0x102)]]||{};CustomTagManager[_0x14921b(0xa6)](_0x563a89,_0x9ad300,_0xd62878),_0x4328bb[TestFrameworkConstants[_0x14921b(0x102)]]=_0x563a89,TestInfo[_0x14921b(0xfa)](_0x4512d8,_0x4328bb),!this['testLevelTags'][_0x4512d8]&&(this[_0x14921b(0x8d)][_0x4512d8]={}),this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300]=CustomTagManager['mergeValues'](this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300],_0xd62878);}}}static['getBuildLevelTags'](){const _0x1fe212={...this['buildLevelTags']};return _0x1fe212;}static[a86_0x3ff181(0x99)](){const _0x4922f3=a86_0x3ff181,_0x443493={...this[_0x4922f3(0x8d)]};return _0x443493;}static[a86_0x3ff181(0x8e)](){this['buildLevelTags']={},this['testLevelTags']={};}static[a86_0x3ff181(0xbc)](_0x256ccb,_0x3ddf4c){const _0xbfeb75=a86_0x3ff181,_0xe3f763={};_0xe3f763['GFhsg']=function(_0x964d02,_0x165382){return _0x964d02||_0x165382;};const _0xf4cc81=_0xe3f763;if(!_0x256ccb)return;!this['buildLevelTags'][_0x256ccb]&&(this['buildLevelTags'][_0x256ccb]={});for(const [_0x1ca3e7,_0x5aab5a]of Object[_0xbfeb75(0xd6)](_0xf4cc81[_0xbfeb75(0xa3)](_0x3ddf4c,{}))){if(!_0x5aab5a||!Array[_0xbfeb75(0x107)](_0x5aab5a[_0xbfeb75(0xba)]))continue;this[_0xbfeb75(0x106)][_0x256ccb][_0x1ca3e7]=CustomTagManager['mergeValues'](this[_0xbfeb75(0x106)][_0x256ccb][_0x1ca3e7],_0x5aab5a[_0xbfeb75(0xba)]);}}static[a86_0x3ff181(0xc1)](_0x49ddb7,_0x6c7230){const _0x2cf14d=a86_0x3ff181,_0xa8003e={};_0xa8003e[_0x2cf14d(0xd9)]=_0x2cf14d(0xe6),_0xa8003e[_0x2cf14d(0xbe)]=function(_0x6324ae,_0x274fee){return _0x6324ae*_0x274fee;},_0xa8003e['ebxue']=function(_0x3904c2,_0x13b1ff){return _0x3904c2*_0x13b1ff;},_0xa8003e['UgUAZ']=function(_0x31d7e0,_0x4a160b){return _0x31d7e0>_0x4a160b;},_0xa8003e[_0x2cf14d(0xf8)]=function(_0x1c7270,_0x2fa573){return _0x1c7270-_0x2fa573;},_0xa8003e[_0x2cf14d(0x112)]='utf8';const _0x46d6a2=_0xa8003e;if(!_0x49ddb7)return logger[_0x2cf14d(0xb0)](_0x46d6a2[_0x2cf14d(0xd9)]),0x0;let _0x44a247;try{_0x44a247=os[_0x2cf14d(0xca)]();}catch(_0x1ba58b){return logger[_0x2cf14d(0xb0)](_0x2cf14d(0xa7)+_0x1ba58b),0x0;}let _0x1917e4;try{_0x1917e4=fs['readdirSync'](_0x44a247);}catch(_0x5cc271){return logger[_0x2cf14d(0xb0)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x5cc271),0x0;}const _0x4b88fd=''+BUILD_TAG_FILE_PREFIX+_0x49ddb7+'_',_0x102c20=_0x1917e4[_0x2cf14d(0xb4)](_0x4ec6a6=>_0x4ec6a6[_0x2cf14d(0xb8)](_0x4b88fd)&&_0x4ec6a6[_0x2cf14d(0x8c)]('.json')),_0x361527=_0x46d6a2[_0x2cf14d(0xbe)](_0x46d6a2[_0x2cf14d(0xb2)](_0x46d6a2[_0x2cf14d(0xb2)](0x2,0x3c),0x3c),0x3e8);let _0x18581d=0x0;for(const _0x3782b3 of _0x102c20){const _0x55dca3=path[_0x2cf14d(0xcc)](_0x44a247,_0x3782b3);try{const _0x4f3396=fs['statSync'](_0x55dca3);if(_0x46d6a2[_0x2cf14d(0x9b)](_0x46d6a2[_0x2cf14d(0xf8)](Date[_0x2cf14d(0xc4)](),_0x4f3396[_0x2cf14d(0xe4)]),_0x361527)){logger['debug'](_0x2cf14d(0xff)+_0x361527+_0x2cf14d(0xfe)+_0x3782b3);try{fs[_0x2cf14d(0x95)](_0x55dca3);}catch(_0x20669f){logger[_0x2cf14d(0xb0)](_0x2cf14d(0x104)+_0x3782b3+':\x20'+(_0x20669f&&_0x20669f['message']?_0x20669f[_0x2cf14d(0xd8)]:_0x20669f));}continue;}const _0x4fa9d9=fs[_0x2cf14d(0xe3)](_0x55dca3,_0x46d6a2[_0x2cf14d(0x112)]),_0x43e1f4=JSON['parse'](_0x4fa9d9);this[_0x2cf14d(0xbc)](_0x6c7230,_0x43e1f4),_0x18581d+=0x1;}catch(_0x27a4e7){logger[_0x2cf14d(0xb0)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x3782b3+':\x20'+(_0x27a4e7&&_0x27a4e7[_0x2cf14d(0xd8)]?_0x27a4e7[_0x2cf14d(0xd8)]:_0x27a4e7));}try{fs[_0x2cf14d(0x95)](_0x55dca3);}catch(_0x2fdede){logger[_0x2cf14d(0xb0)](_0x2cf14d(0x98)+_0x3782b3+':\x20'+(_0x2fdede&&_0x2fdede['message']?_0x2fdede[_0x2cf14d(0xd8)]:_0x2fdede));}}return _0x18581d;}}function a86_0x504a(_0xb5ae0,_0xf262c3){const _0xdfa066=a86_0xdfa0();return a86_0x504a=function(_0x504a6c,_0x4e8bb3){_0x504a6c=_0x504a6c-0x86;let _0x5ecfdd=_0xdfa066[_0x504a6c];return _0x5ecfdd;},a86_0x504a(_0xb5ae0,_0xf262c3);}const a86_0x4e3834={};a86_0x4e3834[a86_0x3ff181(0xad)]=getBuildTagsRunId,a86_0x4e3834[a86_0x3ff181(0xcd)]=getBuildTagsFilePath,a86_0x4e3834[a86_0x3ff181(0xe8)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x3ff181(0xd0)]=a86_0x4e3834,module[a86_0x3ff181(0x8b)]=CustomTagManager;
@@ -1 +1 @@
1
- function a87_0x33ef(){const _0x183270=['124864ZNlKCx','push','262476UOxZGW','4522078rmAUlI','328741YdaDNw','6EHmkfk','807496AyDeaN','9tDHBAl','56795xPiUbB','40947gwdbwo','notifyObserver','QZXbr','observers','freeze','registerObserver','10xovsGy','getInstance','6nDBpUT'];a87_0x33ef=function(){return _0x183270;};return a87_0x33ef();}const a87_0x4c054b=a87_0x235c;(function(_0x28cc39,_0xca2eb0){const _0x125bd2=a87_0x235c,_0x33d2ba=_0x28cc39();while(!![]){try{const _0xdb354a=parseInt(_0x125bd2(0x1c1))/0x1+-parseInt(_0x125bd2(0x1b8))/0x2*(parseInt(_0x125bd2(0x1bd))/0x3)+parseInt(_0x125bd2(0x1ba))/0x4+parseInt(_0x125bd2(0x1c0))/0x5+-parseInt(_0x125bd2(0x1b7))/0x6*(parseInt(_0x125bd2(0x1bc))/0x7)+parseInt(_0x125bd2(0x1be))/0x8*(-parseInt(_0x125bd2(0x1bf))/0x9)+parseInt(_0x125bd2(0x1b5))/0xa*(parseInt(_0x125bd2(0x1bb))/0xb);if(_0xdb354a===_0xca2eb0)break;else _0x33d2ba['push'](_0x33d2ba['shift']());}catch(_0x273c4f){_0x33d2ba['push'](_0x33d2ba['shift']());}}}(a87_0x33ef,0x3e903));const {createClassLogger}=require('../../helpers/classLogger.js');function a87_0x235c(_0x26b6fe,_0x274377){const _0x33efcb=a87_0x33ef();return a87_0x235c=function(_0x235caf,_0x4e416a){_0x235caf=_0x235caf-0x1b2;let _0x6fd7e0=_0x33efcb[_0x235caf];return _0x6fd7e0;},a87_0x235c(_0x26b6fe,_0x274377);}class EventDispatcher{static #instance=null;constructor(){const _0x2c7a3d=a87_0x235c;this[_0x2c7a3d(0x1b2)]={};}static[a87_0x4c054b(0x1b6)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x4c054b(0x1b4)](_0x4bce89,_0xd870b){const _0x1947b6=a87_0x4c054b;!this[_0x1947b6(0x1b2)][_0x4bce89]&&(this[_0x1947b6(0x1b2)][_0x4bce89]=[]),this[_0x1947b6(0x1b2)][_0x4bce89][_0x1947b6(0x1b9)](_0xd870b);}async[a87_0x4c054b(0x1c2)](_0x2077f2,_0x53f363){const _0x6b1177=a87_0x4c054b,_0x289ede={'QZXbr':function(_0x47b040,_0x33eff2){return _0x47b040(_0x33eff2);}};if(this[_0x6b1177(0x1b2)][_0x2077f2]){for(const _0x1bfc65 of this[_0x6b1177(0x1b2)][_0x2077f2]){await _0x289ede[_0x6b1177(0x1c3)](_0x1bfc65,_0x53f363);}return;}}}const eventDispatcher=EventDispatcher[a87_0x4c054b(0x1b6)]();Object[a87_0x4c054b(0x1b3)](eventDispatcher),module['exports']=eventDispatcher;
1
+ const a87_0x1cf4b6=a87_0x4de1;(function(_0x8466ca,_0x1d78c0){const _0x1903a1=a87_0x4de1,_0xdde71c=_0x8466ca();while(!![]){try{const _0xbdd64e=-parseInt(_0x1903a1(0xbb))/0x1*(parseInt(_0x1903a1(0xb7))/0x2)+parseInt(_0x1903a1(0xb0))/0x3*(parseInt(_0x1903a1(0xbf))/0x4)+-parseInt(_0x1903a1(0xb6))/0x5+parseInt(_0x1903a1(0xbd))/0x6+parseInt(_0x1903a1(0xb4))/0x7*(parseInt(_0x1903a1(0xb8))/0x8)+parseInt(_0x1903a1(0xbc))/0x9+-parseInt(_0x1903a1(0xbe))/0xa*(-parseInt(_0x1903a1(0xaf))/0xb);if(_0xbdd64e===_0x1d78c0)break;else _0xdde71c['push'](_0xdde71c['shift']());}catch(_0x1e34ec){_0xdde71c['push'](_0xdde71c['shift']());}}}(a87_0x5073,0xa5cfb));function a87_0x5073(){const _0x2a2d87=['24seJPFY','observers','getInstance','notifyObserver','6349ZQNuXW','exports','5975255EFCVES','4IYNLgB','1328revnrG','push','registerObserver','57607KUaiEf','3580020DWWJGv','5059788eSvsdF','40sDXAsc','38432woPhQr','../../helpers/classLogger.js','1432541UyTlwq'];a87_0x5073=function(){return _0x2a2d87;};return a87_0x5073();}function a87_0x4de1(_0x3cf928,_0x1ce9bc){const _0x507376=a87_0x5073();return a87_0x4de1=function(_0x4de17e,_0x2c6b1a){_0x4de17e=_0x4de17e-0xaf;let _0x1489cf=_0x507376[_0x4de17e];return _0x1489cf;},a87_0x4de1(_0x3cf928,_0x1ce9bc);}const {createClassLogger}=require(a87_0x1cf4b6(0xc0));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a87_0x1cf4b6(0xb2)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x1cf4b6(0xba)](_0x45f484,_0x41428b){const _0x451180=a87_0x1cf4b6;!this[_0x451180(0xb1)][_0x45f484]&&(this['observers'][_0x45f484]=[]),this[_0x451180(0xb1)][_0x45f484][_0x451180(0xb9)](_0x41428b);}async[a87_0x1cf4b6(0xb3)](_0x5d52ec,_0x37c692){const _0x434d59=a87_0x1cf4b6,_0x4088f1={'EbMqp':function(_0x5063bf,_0x490206){return _0x5063bf(_0x490206);}};if(this['observers'][_0x5d52ec]){for(const _0x5a7185 of this[_0x434d59(0xb1)][_0x5d52ec]){await _0x4088f1['EbMqp'](_0x5a7185,_0x37c692);}return;}}}const eventDispatcher=EventDispatcher[a87_0x1cf4b6(0xb2)]();Object['freeze'](eventDispatcher),module[a87_0x1cf4b6(0xb5)]=eventDispatcher;
@@ -1 +1 @@
1
- const a88_0x32ec5f=a88_0xc80b;(function(_0x5e7d2d,_0x23d45f){const _0x892c2c=a88_0xc80b,_0x3fc413=_0x5e7d2d();while(!![]){try{const _0x6b7029=parseInt(_0x892c2c(0xe0))/0x1+parseInt(_0x892c2c(0xed))/0x2+-parseInt(_0x892c2c(0xe6))/0x3+-parseInt(_0x892c2c(0xd9))/0x4*(-parseInt(_0x892c2c(0xdb))/0x5)+parseInt(_0x892c2c(0xc9))/0x6*(parseInt(_0x892c2c(0xc7))/0x7)+-parseInt(_0x892c2c(0xce))/0x8+parseInt(_0x892c2c(0xea))/0x9*(parseInt(_0x892c2c(0xe7))/0xa);if(_0x6b7029===_0x23d45f)break;else _0x3fc413['push'](_0x3fc413['shift']());}catch(_0x23abe5){_0x3fc413['push'](_0x3fc413['shift']());}}}(a88_0x41f8,0xe39a2));function a88_0xc80b(_0x25719b,_0x2b173e){const _0x41f8de=a88_0x41f8();return a88_0xc80b=function(_0xc80b2f,_0x2dbcc1){_0xc80b2f=_0xc80b2f-0xc5;let _0xa5af8f=_0x41f8de[_0xc80b2f];return _0xa5af8f;},a88_0xc80b(_0x25719b,_0x2b173e);}const {createClassLogger}=require(a88_0x32ec5f(0xe4)),util=require(a88_0x32ec5f(0xe9)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a88_0x32ec5f(0xcc)),TrackedInstance=require(a88_0x32ec5f(0xe8)),logger=createClassLogger(a88_0x32ec5f(0xdd));class AutomationFramework{static [a88_0x32ec5f(0xd8)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x32ec5f(0xec);static [a88_0x32ec5f(0xda)]=a88_0x32ec5f(0xd3);constructor(_0x349220,_0x216e52){const _0x419a4f=a88_0x32ec5f;this[_0x419a4f(0xd6)]=_0x349220,this['automationFrameworkVersion']=_0x216e52;}['getAutomationFrameworkName'](){const _0x52fe33=a88_0x32ec5f;return this[_0x52fe33(0xd6)];}['getAutomationFrameworkVersion'](){const _0x1a2ad5=a88_0x32ec5f;return this[_0x1a2ad5(0xca)];}async['trackEvent'](_0xec9979,_0x183b66,_0xae0d9d={}){const _0x742e02=a88_0x32ec5f;logger[_0x742e02(0xd7)]('trackEvent:\x20automationFrameworkState='+_0xec9979+_0x742e02(0xd0)+_0x183b66);}async[a88_0x32ec5f(0xe5)](_0x173bab,_0x474211,_0x2e9371,_0x286899={}){const _0x197400=a88_0x32ec5f,_0x33d1f8=CLIUtils[_0x197400(0xdc)](_0x474211,_0x2e9371);_0x173bab&&_0x173bab[_0x197400(0xd4)](_0x474211),await eventDispatcher[_0x197400(0xc5)](_0x33d1f8,_0x286899);}static[a88_0x32ec5f(0xcd)](_0x2e0074,_0x5ec345,_0x440541){const _0xa596f1=a88_0x32ec5f;eventDispatcher['registerObserver'](CLIUtils[_0xa596f1(0xdc)](_0x2e0074,_0x5ec345),_0x440541);}static[a88_0x32ec5f(0xcb)](_0x540b36,_0x9e9cc3){const _0x3b7172=a88_0x32ec5f;AutomationFramework['instances'][_0x3b7172(0xc8)](_0x540b36[_0x3b7172(0xdf)](),_0x9e9cc3);}static[a88_0x32ec5f(0xe3)](){const _0x26d0ec=a88_0x32ec5f,_0x1a0bb9=TrackedInstance[_0x26d0ec(0xd5)](CLIUtils[_0x26d0ec(0xd1)]());return AutomationFramework[_0x26d0ec(0xd8)][_0x26d0ec(0xc6)](_0x1a0bb9[_0x26d0ec(0xdf)]());}static[a88_0x32ec5f(0xd4)](_0x6ea4da,_0x186d6d,_0x59c096){const _0x379f3b=a88_0x32ec5f;_0x6ea4da[_0x379f3b(0xcf)]()[_0x379f3b(0xc8)](_0x186d6d,_0x59c096);}static['getState'](_0x47b2ad,_0xb6c7db,_0x514de5=undefined){const _0x5531a3=a88_0x32ec5f,_0x27b736={};_0x27b736[_0x5531a3(0xd2)]=function(_0x395722,_0x56b61e){return _0x395722!==_0x56b61e;},_0x27b736[_0x5531a3(0xe2)]=_0x5531a3(0xe1),_0x27b736[_0x5531a3(0xde)]=function(_0x3ff355,_0x573cb6){return _0x3ff355===_0x573cb6;};const _0x472217=_0x27b736;if(!_0x47b2ad||_0x472217[_0x5531a3(0xd2)](typeof _0x47b2ad['getAllData'],_0x472217[_0x5531a3(0xe2)]))return _0x514de5;const _0x2a3271=_0x47b2ad[_0x5531a3(0xcf)]()['get'](_0xb6c7db);return _0x472217[_0x5531a3(0xde)](_0x2a3271,undefined)?_0x514de5:_0x2a3271;}}function a88_0x41f8(){const _0x528cfd=['dUHHB','non_browserstack_automation_sessions','setState','createContext','automationFrameworkName','debug','instances','16UeFKQx','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','62580QRYRne','getHookRegistryKey','AutomationFramework','FGcUs','getId','764205eYRBqS','function','MqdPE','getTrackedInstance','../../../helpers/classLogger.js','runHooks','5038248lUwgeS','19892050wAowXB','../instances/trackedInstance.js','util','9wZJwVa','exports','automation_sessions','5678tbCxwC','notifyObserver','get','7049SpckLt','set','6942EWEAds','automationFrameworkVersion','setTrackedInstance','../cliUtils.js','registerObserver','10877904hqZevc','getAllData','\x20hookState=','getCurrentInstanceName'];a88_0x41f8=function(){return _0x528cfd;};return a88_0x41f8();}module[a88_0x32ec5f(0xeb)]=AutomationFramework;
1
+ function a88_0x4673(){const _0x3414a1=['get','../cliUtils.js','../eventDispatcher.js','911043PhLwyZ','8vCGXpE','setState','getCurrentInstanceName','AutomationFramework','1774648xPCeVs','KEY_AUTOMATION_SESSIONS','51BnVJFm','3812166RKRrwQ','iAXEX','64704TTpGzJ','automation_sessions','exports','getAllData','util','4181930BYTdiN','getAutomationFrameworkVersion','non_browserstack_automation_sessions','bDzbg','17474088IllftR','../../../helpers/classLogger.js','instances','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','TZUfk','getHookRegistryKey','function','\x20hookState=','setTrackedInstance','10wHiNIQ','notifyObserver','trackEvent:\x20automationFrameworkState=','../instances/trackedInstance.js','registerObserver','getTrackedInstance','debug','82218wYpxHY','set','105hkMFDB','runHooks','11KkSReY','getId','automationFrameworkName','automationFrameworkVersion'];a88_0x4673=function(){return _0x3414a1;};return a88_0x4673();}const a88_0x3c7de3=a88_0xfc1b;(function(_0xc7b313,_0x2f404a){const _0x1299a6=a88_0xfc1b,_0x4a8d1e=_0xc7b313();while(!![]){try{const _0x537009=-parseInt(_0x1299a6(0xab))/0x1+parseInt(_0x1299a6(0xb5))/0x2*(-parseInt(_0x1299a6(0xb2))/0x3)+-parseInt(_0x1299a6(0xb0))/0x4*(-parseInt(_0x1299a6(0x99))/0x5)+-parseInt(_0x1299a6(0xa0))/0x6*(parseInt(_0x1299a6(0xa2))/0x7)+-parseInt(_0x1299a6(0xac))/0x8*(parseInt(_0x1299a6(0xb3))/0x9)+parseInt(_0x1299a6(0x8c))/0xa+parseInt(_0x1299a6(0xa4))/0xb*(parseInt(_0x1299a6(0x90))/0xc);if(_0x537009===_0x2f404a)break;else _0x4a8d1e['push'](_0x4a8d1e['shift']());}catch(_0x637240){_0x4a8d1e['push'](_0x4a8d1e['shift']());}}}(a88_0x4673,0xa3f39));const {createClassLogger}=require(a88_0x3c7de3(0x91)),util=require(a88_0x3c7de3(0x8b)),eventDispatcher=require(a88_0x3c7de3(0xaa)),CLIUtils=require(a88_0x3c7de3(0xa9)),TrackedInstance=require(a88_0x3c7de3(0x9c)),logger=createClassLogger(a88_0x3c7de3(0xaf));class AutomationFramework{static [a88_0x3c7de3(0x92)]=new Map();static [a88_0x3c7de3(0xb1)]=a88_0x3c7de3(0xb6);static [a88_0x3c7de3(0x93)]=a88_0x3c7de3(0x8e);constructor(_0x432768,_0x2e8a4c){const _0x256590=a88_0x3c7de3;this[_0x256590(0xa6)]=_0x432768,this[_0x256590(0xa7)]=_0x2e8a4c;}['getAutomationFrameworkName'](){return this['automationFrameworkName'];}[a88_0x3c7de3(0x8d)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x354bf5,_0x3a41b8,_0x44c772={}){const _0x277ef5=a88_0x3c7de3;logger[_0x277ef5(0x9f)](_0x277ef5(0x9b)+_0x354bf5+_0x277ef5(0x97)+_0x3a41b8);}async[a88_0x3c7de3(0xa3)](_0x390561,_0x3d0eca,_0x5421f4,_0x18944a={}){const _0x3a29d2=a88_0x3c7de3,_0x20cee5=CLIUtils[_0x3a29d2(0x95)](_0x3d0eca,_0x5421f4);_0x390561&&_0x390561[_0x3a29d2(0xad)](_0x3d0eca),await eventDispatcher[_0x3a29d2(0x9a)](_0x20cee5,_0x18944a);}static[a88_0x3c7de3(0x9d)](_0x48ee55,_0x292e82,_0x31b7dc){eventDispatcher['registerObserver'](CLIUtils['getHookRegistryKey'](_0x48ee55,_0x292e82),_0x31b7dc);}static[a88_0x3c7de3(0x98)](_0x179401,_0x449c88){const _0x6a9117=a88_0x3c7de3;AutomationFramework[_0x6a9117(0x92)][_0x6a9117(0xa1)](_0x179401[_0x6a9117(0xa5)](),_0x449c88);}static[a88_0x3c7de3(0x9e)](){const _0x193710=a88_0x3c7de3,_0x5a37b3=TrackedInstance['createContext'](CLIUtils[_0x193710(0xae)]());return AutomationFramework[_0x193710(0x92)]['get'](_0x5a37b3[_0x193710(0xa5)]());}static[a88_0x3c7de3(0xad)](_0x46e859,_0x751a9a,_0x52216c){const _0x2f5bce=a88_0x3c7de3;_0x46e859[_0x2f5bce(0x8a)]()['set'](_0x751a9a,_0x52216c);}static['getState'](_0x188267,_0x1d80d9,_0x3b6ecb=undefined){const _0x1c18fa=a88_0x3c7de3,_0xac50ca={};_0xac50ca[_0x1c18fa(0x8f)]=function(_0x57f68d,_0x18c792){return _0x57f68d!==_0x18c792;},_0xac50ca[_0x1c18fa(0x94)]=_0x1c18fa(0x96),_0xac50ca[_0x1c18fa(0xb4)]=function(_0x37acb9,_0x214d7a){return _0x37acb9===_0x214d7a;};const _0x449798=_0xac50ca;if(!_0x188267||_0x449798['bDzbg'](typeof _0x188267[_0x1c18fa(0x8a)],_0x449798[_0x1c18fa(0x94)]))return _0x3b6ecb;const _0x550e4b=_0x188267[_0x1c18fa(0x8a)]()[_0x1c18fa(0xa8)](_0x1d80d9);return _0x449798[_0x1c18fa(0xb4)](_0x550e4b,undefined)?_0x3b6ecb:_0x550e4b;}}function a88_0xfc1b(_0x3c3bce,_0x1d6e72){const _0x467393=a88_0x4673();return a88_0xfc1b=function(_0xfc1b2c,_0x381972){_0xfc1b2c=_0xfc1b2c-0x8a;let _0x52bdf0=_0x467393[_0xfc1b2c];return _0x52bdf0;},a88_0xfc1b(_0x3c3bce,_0x1d6e72);}module[a88_0x3c7de3(0xb7)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x3c77be=a89_0x47df;(function(_0x2094b4,_0x54a262){const _0x58847c=a89_0x47df,_0x5cc08a=_0x2094b4();while(!![]){try{const _0x603703=-parseInt(_0x58847c(0xcb))/0x1*(parseInt(_0x58847c(0xdf))/0x2)+-parseInt(_0x58847c(0xdc))/0x3+-parseInt(_0x58847c(0xd5))/0x4*(parseInt(_0x58847c(0xc9))/0x5)+-parseInt(_0x58847c(0xd3))/0x6*(parseInt(_0x58847c(0xdd))/0x7)+parseInt(_0x58847c(0xcf))/0x8*(-parseInt(_0x58847c(0xd7))/0x9)+parseInt(_0x58847c(0xd4))/0xa+-parseInt(_0x58847c(0xd0))/0xb*(-parseInt(_0x58847c(0xe2))/0xc);if(_0x603703===_0x54a262)break;else _0x5cc08a['push'](_0x5cc08a['shift']());}catch(_0x4041ab){_0x5cc08a['push'](_0x5cc08a['shift']());}}}(a89_0x3fd7,0x827f4));const a89_0x53338b={};function a89_0x3fd7(){const _0x4d9346=['exports','471176MCawOY','625977wgsvce','quit','is_browserstack_hub','181614soBqcJ','3658240aZnkvo','32FGjoTP','KEY_STARTED_AT','117ZpEzQJ','COMMAND_GET','COMMAND_SCREENSHOT','KEY_INPUT_CAPABILITIES','COMMAND_QUIT','2990775nobfrt','147dWkbYP','KEY_ENDED_AT','314hoasvV','started_at','input_capabilities','900VZyCix','w3cexecutescriptasync','BROWSERSTACK_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','get','COMMAND_NEW_SESSION','capabilities','KEY_PLATFORM_INDEX','KEY_CAPABILITIES','415365UIpeBI','screenshot','6602YAvMPl','KEY_IS_BROWSERSTACK_HUB','ended_at'];a89_0x3fd7=function(){return _0x4d9346;};return a89_0x3fd7();}function a89_0x47df(_0x3746d4,_0x407649){const _0x3fd70b=a89_0x3fd7();return a89_0x47df=function(_0x47df73,_0x5a7a64){_0x47df73=_0x47df73-0xc9;let _0x36f646=_0x3fd70b[_0x47df73];return _0x36f646;},a89_0x47df(_0x3746d4,_0x407649);}a89_0x53338b['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x3c77be(0xe4),a89_0x53338b['KEY_HUB_URL']='hub_url',a89_0x53338b['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x53338b[a89_0x3c77be(0xda)]=a89_0x3c77be(0xe1),a89_0x53338b[a89_0x3c77be(0xea)]=a89_0x3c77be(0xe8),a89_0x53338b[a89_0x3c77be(0xcc)]=a89_0x3c77be(0xd2),a89_0x53338b[a89_0x3c77be(0xd6)]=a89_0x3c77be(0xe0),a89_0x53338b[a89_0x3c77be(0xde)]=a89_0x3c77be(0xcd),a89_0x53338b[a89_0x3c77be(0xe9)]='platform_index',a89_0x53338b[a89_0x3c77be(0xe7)]='newsession',a89_0x53338b[a89_0x3c77be(0xd8)]=a89_0x3c77be(0xe6),a89_0x53338b[a89_0x3c77be(0xd9)]=a89_0x3c77be(0xca),a89_0x53338b[a89_0x3c77be(0xe5)]='w3cexecutescript',a89_0x53338b['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x3c77be(0xe3),a89_0x53338b[a89_0x3c77be(0xdb)]=a89_0x3c77be(0xd1);const AutomationFrameworkConstants=a89_0x53338b;module[a89_0x3c77be(0xce)]=AutomationFrameworkConstants;
1
+ const a89_0x12665b=a89_0x473e;(function(_0x586772,_0x24885f){const _0x5b6095=a89_0x473e,_0xb046ee=_0x586772();while(!![]){try{const _0x16a092=-parseInt(_0x5b6095(0x106))/0x1*(-parseInt(_0x5b6095(0x120))/0x2)+parseInt(_0x5b6095(0x10a))/0x3+-parseInt(_0x5b6095(0x116))/0x4+parseInt(_0x5b6095(0x115))/0x5+-parseInt(_0x5b6095(0x11d))/0x6+-parseInt(_0x5b6095(0x10f))/0x7*(parseInt(_0x5b6095(0x10e))/0x8)+-parseInt(_0x5b6095(0x11e))/0x9*(-parseInt(_0x5b6095(0x127))/0xa);if(_0x16a092===_0x24885f)break;else _0xb046ee['push'](_0xb046ee['shift']());}catch(_0x51f77c){_0xb046ee['push'](_0xb046ee['shift']());}}}(a89_0x427d,0xb7351));const a89_0x5a9950={};a89_0x5a9950['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x12665b(0x111),a89_0x5a9950[a89_0x12665b(0x126)]=a89_0x12665b(0x109),a89_0x5a9950[a89_0x12665b(0x11f)]=a89_0x12665b(0x114),a89_0x5a9950[a89_0x12665b(0x10d)]=a89_0x12665b(0x122),a89_0x5a9950[a89_0x12665b(0x123)]=a89_0x12665b(0x125),a89_0x5a9950[a89_0x12665b(0x119)]=a89_0x12665b(0x10c),a89_0x5a9950[a89_0x12665b(0x108)]='started_at',a89_0x5a9950[a89_0x12665b(0x117)]=a89_0x12665b(0x11b),a89_0x5a9950[a89_0x12665b(0x112)]=a89_0x12665b(0x110),a89_0x5a9950['COMMAND_NEW_SESSION']=a89_0x12665b(0x121),a89_0x5a9950[a89_0x12665b(0x11a)]=a89_0x12665b(0x118),a89_0x5a9950[a89_0x12665b(0x107)]=a89_0x12665b(0x105),a89_0x5a9950['COMMAND_W3C_EXECUTE_SCRIPT']=a89_0x12665b(0x113),a89_0x5a9950[a89_0x12665b(0x124)]=a89_0x12665b(0x128),a89_0x5a9950[a89_0x12665b(0x11c)]='quit';function a89_0x473e(_0x54943b,_0x2ce26a){const _0x427d6b=a89_0x427d();return a89_0x473e=function(_0x473e7e,_0x36c580){_0x473e7e=_0x473e7e-0x105;let _0x563f93=_0x427d6b[_0x473e7e];return _0x563f93;},a89_0x473e(_0x54943b,_0x2ce26a);}const AutomationFrameworkConstants=a89_0x5a9950;function a89_0x427d(){const _0x4bb1da=['ended_at','COMMAND_QUIT','2888346ctPDzv','36YHotat','KEY_FRAMEWORK_SESSION_ID','2gkRVrg','newsession','input_capabilities','KEY_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','capabilities','KEY_HUB_URL','198980LZxsMu','w3cexecutescriptasync','screenshot','1076341tTcOgr','COMMAND_SCREENSHOT','KEY_STARTED_AT','hub_url','2206884PWZdQy','exports','is_browserstack_hub','KEY_INPUT_CAPABILITIES','3128488SeCnyz','21sMZwlB','platform_index','BROWSERSTACK_PLATFORM_INDEX','KEY_PLATFORM_INDEX','w3cexecutescript','framework_session_id','7182695EpkVde','3692436mRBUwX','KEY_ENDED_AT','get','KEY_IS_BROWSERSTACK_HUB','COMMAND_GET'];a89_0x427d=function(){return _0x4bb1da;};return a89_0x427d();}module[a89_0x12665b(0x10b)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a90_0x5d811f=a90_0xdbc7;(function(_0x5291e5,_0x49f2e6){const _0x3f9dfd=a90_0xdbc7,_0xd852c6=_0x5291e5();while(!![]){try{const _0x36f363=-parseInt(_0x3f9dfd(0x13b))/0x1*(-parseInt(_0x3f9dfd(0x177))/0x2)+-parseInt(_0x3f9dfd(0x141))/0x3*(parseInt(_0x3f9dfd(0x18e))/0x4)+-parseInt(_0x3f9dfd(0x15e))/0x5+parseInt(_0x3f9dfd(0x168))/0x6+parseInt(_0x3f9dfd(0x15d))/0x7+-parseInt(_0x3f9dfd(0x136))/0x8*(parseInt(_0x3f9dfd(0x167))/0x9)+-parseInt(_0x3f9dfd(0x166))/0xa*(-parseInt(_0x3f9dfd(0x146))/0xb);if(_0x36f363===_0x49f2e6)break;else _0xd852c6['push'](_0xd852c6['shift']());}catch(_0x412ab9){_0xd852c6['push'](_0xd852c6['shift']());}}}(a90_0x4524,0xb7720));function a90_0x4524(){const _0x12998b=['KEY_TEST_META','8DrXwNn','platform_index','automate_session_reason','file_name','file_path','178019QLLjBF','KEY_TEST_FRAMEWORK_VERSION','KEY_FILE_NAME','TEST_SCREENSHOT','KEY_LOGS','test_meta','2731116PPInHL','KEY_HOOK_ID','KEY_TEST_RETRY_OF','KEY_HOOKS_STARTED','KEY_TEST_SCOPE','4197402CYgeOZ','test_failure_reason','test_started_at','hook_name','hook_failure_reason','KEY_TEST_LOCATION','MAX_NESTED_STEP_DEPTH','KEY_TEST_FAILURE_TYPE','hook_failure','TEST_LOG','KEY_TEST_STARTED_AT','test_failure_type','KEY_HOOK_FAILURE_TYPE','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE_REASON','KEY_TEST_FILE_PATH','KEY_TEST_RERUN_NAME','KEY_TEST_UUID','hook_id','test_hook_last_finished','test_file_path','test_name','KEY_SESSION_NAME','9003435kedpPD','5115685zqnwpt','test_framework_version','KIND_LOG','test_uuid','retry_of','KEY_TEST_RESULT','KEY_TEST_SCOPES','KEY_TEST_ENDED_AT','10QBLPuu','4656906vrDASU','2798604swIccq','KEY_TEST_ID','KEY_HOOK_FAILURE','test_session_name','test_ended_at','test_framework_name','hook_result','test_screenshots','KEY_FILE_SIZE','KEY_HOOK_LOGS','test_rerun_name','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LAST_FINISHED','custom_metadata','KEY_TEST_TAGS','12ECEjhd','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_LAST_STARTED','test_failure','KIND_SCREENSHOT','test_result_at','MAX_TOP_LEVEL_STEPS','test_scopes','HOOK_REGEX','file_size','test_result','KEY_PLATFORM_INDEX','test_hook_last_started','KEY_EVENT_STARTED_AT','test_scope','file_level','hook_failure_type','exports','KEY_HOOK_NAME','DEFAULT_HOOK_RESULT','hook_logs','test_code','test_id','4fgBkZw','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','test_hooks_finished','KEY_FILE_PATH','KEY_TEST_CODE'];a90_0x4524=function(){return _0x12998b;};return a90_0x4524();}const a90_0x2f19d0={};a90_0x2f19d0[a90_0x5d811f(0x157)]=a90_0x5d811f(0x161),a90_0x2f19d0[a90_0x5d811f(0x169)]=a90_0x5d811f(0x18d),a90_0x2f19d0['KEY_TEST_NAME']=a90_0x5d811f(0x15b),a90_0x2f19d0[a90_0x5d811f(0x155)]=a90_0x5d811f(0x15a),a90_0x2f19d0[a90_0x5d811f(0x176)]='test_tags',a90_0x2f19d0[a90_0x5d811f(0x163)]=a90_0x5d811f(0x181),a90_0x2f19d0['KEY_TEST_RESULT_AT']=a90_0x5d811f(0x17c),a90_0x2f19d0[a90_0x5d811f(0x150)]=a90_0x5d811f(0x148),a90_0x2f19d0[a90_0x5d811f(0x165)]=a90_0x5d811f(0x16c),a90_0x2f19d0[a90_0x5d811f(0x14b)]='test_location',a90_0x2f19d0['KEY_TEST_DURATION']='test_duration',a90_0x2f19d0[a90_0x5d811f(0x145)]=a90_0x5d811f(0x185),a90_0x2f19d0[a90_0x5d811f(0x164)]=a90_0x5d811f(0x17e),a90_0x2f19d0['KEY_TEST_FRAMEWORK_NAME']=a90_0x5d811f(0x16d),a90_0x2f19d0[a90_0x5d811f(0x13c)]=a90_0x5d811f(0x15f),a90_0x2f19d0[a90_0x5d811f(0x134)]=a90_0x5d811f(0x18c),a90_0x2f19d0[a90_0x5d811f(0x156)]=a90_0x5d811f(0x172),a90_0x2f19d0[a90_0x5d811f(0x143)]=a90_0x5d811f(0x162),a90_0x2f19d0[a90_0x5d811f(0x182)]=a90_0x5d811f(0x137),a90_0x2f19d0['KEY_TEST_FAILURE']=a90_0x5d811f(0x17a),a90_0x2f19d0[a90_0x5d811f(0x14d)]=a90_0x5d811f(0x151),a90_0x2f19d0['KEY_TEST_FAILURE_REASON']=a90_0x5d811f(0x147),a90_0x2f19d0['KEY_TEST_LOGS']='test_logs',a90_0x2f19d0[a90_0x5d811f(0x135)]=a90_0x5d811f(0x140),a90_0x2f19d0[a90_0x5d811f(0x15c)]=a90_0x5d811f(0x16b),a90_0x2f19d0[a90_0x5d811f(0x173)]='automate_session_name',a90_0x2f19d0['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a90_0x2f19d0[a90_0x5d811f(0x178)]=a90_0x5d811f(0x138),a90_0x2f19d0[a90_0x5d811f(0x184)]='event_started_at',a90_0x2f19d0[a90_0x5d811f(0x190)]='event_ended_at',a90_0x2f19d0[a90_0x5d811f(0x142)]=a90_0x5d811f(0x158),a90_0x2f19d0[a90_0x5d811f(0x18f)]=a90_0x5d811f(0x16e),a90_0x2f19d0[a90_0x5d811f(0x152)]=a90_0x5d811f(0x187),a90_0x2f19d0[a90_0x5d811f(0x154)]=a90_0x5d811f(0x14a),a90_0x2f19d0[a90_0x5d811f(0x16a)]=a90_0x5d811f(0x14e),a90_0x2f19d0[a90_0x5d811f(0x171)]=a90_0x5d811f(0x18b),a90_0x2f19d0[a90_0x5d811f(0x189)]=a90_0x5d811f(0x149),a90_0x2f19d0['DEFAULT_TEST_RESULT']='pending',a90_0x2f19d0[a90_0x5d811f(0x18a)]='pending',a90_0x2f19d0[a90_0x5d811f(0x17b)]=a90_0x5d811f(0x13e),a90_0x2f19d0[a90_0x5d811f(0x160)]=a90_0x5d811f(0x14f),a90_0x2f19d0[a90_0x5d811f(0x17f)]='^(BEFORE_|AFTER_)',a90_0x2f19d0[a90_0x5d811f(0x144)]='test_hooks_started',a90_0x2f19d0[a90_0x5d811f(0x153)]=a90_0x5d811f(0x132),a90_0x2f19d0[a90_0x5d811f(0x179)]=a90_0x5d811f(0x183),a90_0x2f19d0[a90_0x5d811f(0x174)]=a90_0x5d811f(0x159),a90_0x2f19d0[a90_0x5d811f(0x13f)]='logs',a90_0x2f19d0['KEY_CUSTOM_TAGS']=a90_0x5d811f(0x175),a90_0x2f19d0['KEY_TEST_ATTACHMENTS']='test_attachments',a90_0x2f19d0[a90_0x5d811f(0x170)]=a90_0x5d811f(0x180),a90_0x2f19d0[a90_0x5d811f(0x13d)]=a90_0x5d811f(0x139),a90_0x2f19d0[a90_0x5d811f(0x133)]=a90_0x5d811f(0x13a),a90_0x2f19d0['KEY_FILE_LEVEL']=a90_0x5d811f(0x186),a90_0x2f19d0['KEY_TEST_SCREENSHOTS']=a90_0x5d811f(0x16f),a90_0x2f19d0[a90_0x5d811f(0x17d)]=0xa,a90_0x2f19d0[a90_0x5d811f(0x14c)]=0x2;function a90_0xdbc7(_0x1e5480,_0x3e85cc){const _0x452419=a90_0x4524();return a90_0xdbc7=function(_0xdbc773,_0x4b8780){_0xdbc773=_0xdbc773-0x132;let _0x6ac471=_0x452419[_0xdbc773];return _0x6ac471;},a90_0xdbc7(_0x1e5480,_0x3e85cc);}const TestFrameworkConstants=a90_0x2f19d0;module[a90_0x5d811f(0x188)]=TestFrameworkConstants;
1
+ const a90_0x1adcbd=a90_0x5891;(function(_0x5c7983,_0x27613d){const _0x2cc9d0=a90_0x5891,_0x40e0a0=_0x5c7983();while(!![]){try{const _0x1cdf66=-parseInt(_0x2cc9d0(0x1a8))/0x1*(parseInt(_0x2cc9d0(0x1ad))/0x2)+parseInt(_0x2cc9d0(0x188))/0x3+parseInt(_0x2cc9d0(0x1a0))/0x4+-parseInt(_0x2cc9d0(0x175))/0x5*(parseInt(_0x2cc9d0(0x181))/0x6)+-parseInt(_0x2cc9d0(0x1a5))/0x7+parseInt(_0x2cc9d0(0x178))/0x8*(-parseInt(_0x2cc9d0(0x18c))/0x9)+parseInt(_0x2cc9d0(0x19b))/0xa*(parseInt(_0x2cc9d0(0x17c))/0xb);if(_0x1cdf66===_0x27613d)break;else _0x40e0a0['push'](_0x40e0a0['shift']());}catch(_0x1f02d2){_0x40e0a0['push'](_0x40e0a0['shift']());}}}(a90_0x1e09,0x19dbb));const a90_0x32daa9={};a90_0x32daa9['KEY_TEST_UUID']='test_uuid',a90_0x32daa9[a90_0x1adcbd(0x170)]='test_id',a90_0x32daa9['KEY_TEST_NAME']='test_name',a90_0x32daa9[a90_0x1adcbd(0x176)]=a90_0x1adcbd(0x185),a90_0x32daa9[a90_0x1adcbd(0x162)]='test_tags',a90_0x32daa9[a90_0x1adcbd(0x169)]=a90_0x1adcbd(0x15f),a90_0x32daa9[a90_0x1adcbd(0x166)]='test_result_at',a90_0x32daa9[a90_0x1adcbd(0x161)]='test_started_at',a90_0x32daa9[a90_0x1adcbd(0x18b)]=a90_0x1adcbd(0x179),a90_0x32daa9[a90_0x1adcbd(0x193)]=a90_0x1adcbd(0x1ab),a90_0x32daa9[a90_0x1adcbd(0x16a)]=a90_0x1adcbd(0x16c),a90_0x32daa9['KEY_TEST_SCOPE']=a90_0x1adcbd(0x184),a90_0x32daa9[a90_0x1adcbd(0x168)]=a90_0x1adcbd(0x15e),a90_0x32daa9[a90_0x1adcbd(0x192)]=a90_0x1adcbd(0x164),a90_0x32daa9[a90_0x1adcbd(0x19d)]=a90_0x1adcbd(0x1a7),a90_0x32daa9['KEY_TEST_CODE']='test_code',a90_0x32daa9['KEY_TEST_RERUN_NAME']=a90_0x1adcbd(0x16f),a90_0x32daa9[a90_0x1adcbd(0x151)]=a90_0x1adcbd(0x194),a90_0x32daa9[a90_0x1adcbd(0x1a2)]=a90_0x1adcbd(0x199),a90_0x32daa9[a90_0x1adcbd(0x19c)]=a90_0x1adcbd(0x198),a90_0x32daa9[a90_0x1adcbd(0x1a9)]=a90_0x1adcbd(0x158),a90_0x32daa9['KEY_TEST_FAILURE_REASON']=a90_0x1adcbd(0x171),a90_0x32daa9[a90_0x1adcbd(0x173)]=a90_0x1adcbd(0x153),a90_0x32daa9[a90_0x1adcbd(0x1aa)]=a90_0x1adcbd(0x163),a90_0x32daa9[a90_0x1adcbd(0x1a1)]=a90_0x1adcbd(0x16d),a90_0x32daa9['KEY_AUTOMATE_SESSION_NAME']=a90_0x1adcbd(0x17f),a90_0x32daa9[a90_0x1adcbd(0x159)]=a90_0x1adcbd(0x17e),a90_0x32daa9[a90_0x1adcbd(0x150)]=a90_0x1adcbd(0x19f),a90_0x32daa9['KEY_EVENT_STARTED_AT']=a90_0x1adcbd(0x191),a90_0x32daa9['KEY_EVENT_ENDED_AT']='event_ended_at',a90_0x32daa9[a90_0x1adcbd(0x17d)]='hook_id',a90_0x32daa9['KEY_HOOK_RESULT']=a90_0x1adcbd(0x1ac),a90_0x32daa9[a90_0x1adcbd(0x177)]=a90_0x1adcbd(0x190),a90_0x32daa9[a90_0x1adcbd(0x186)]=a90_0x1adcbd(0x154),a90_0x32daa9[a90_0x1adcbd(0x182)]=a90_0x1adcbd(0x15d),a90_0x32daa9[a90_0x1adcbd(0x15a)]=a90_0x1adcbd(0x17a),a90_0x32daa9[a90_0x1adcbd(0x155)]='hook_name',a90_0x32daa9[a90_0x1adcbd(0x18e)]=a90_0x1adcbd(0x196),a90_0x32daa9[a90_0x1adcbd(0x15c)]=a90_0x1adcbd(0x196),a90_0x32daa9['KIND_SCREENSHOT']='TEST_SCREENSHOT',a90_0x32daa9[a90_0x1adcbd(0x1a6)]=a90_0x1adcbd(0x19a),a90_0x32daa9[a90_0x1adcbd(0x157)]=a90_0x1adcbd(0x165),a90_0x32daa9['KEY_HOOKS_STARTED']=a90_0x1adcbd(0x16e),a90_0x32daa9['KEY_HOOKS_FINISHED']=a90_0x1adcbd(0x19e),a90_0x32daa9['KEY_HOOK_LAST_STARTED']=a90_0x1adcbd(0x18d),a90_0x32daa9[a90_0x1adcbd(0x189)]=a90_0x1adcbd(0x172),a90_0x32daa9[a90_0x1adcbd(0x156)]=a90_0x1adcbd(0x174),a90_0x32daa9[a90_0x1adcbd(0x167)]=a90_0x1adcbd(0x1a3),a90_0x32daa9[a90_0x1adcbd(0x15b)]=a90_0x1adcbd(0x1a4),a90_0x32daa9['KEY_FILE_SIZE']='file_size',a90_0x32daa9[a90_0x1adcbd(0x18f)]=a90_0x1adcbd(0x152),a90_0x32daa9[a90_0x1adcbd(0x160)]=a90_0x1adcbd(0x197),a90_0x32daa9[a90_0x1adcbd(0x195)]=a90_0x1adcbd(0x18a),a90_0x32daa9[a90_0x1adcbd(0x187)]=a90_0x1adcbd(0x183),a90_0x32daa9[a90_0x1adcbd(0x16b)]=0xa,a90_0x32daa9[a90_0x1adcbd(0x180)]=0x2;function a90_0x1e09(){const _0x2a8e9a=['test_framework_name','^(BEFORE_|AFTER_)','KEY_TEST_RESULT_AT','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','KEY_TEST_RESULT','KEY_TEST_DURATION','MAX_TOP_LEVEL_STEPS','test_duration','test_session_name','test_hooks_started','test_rerun_name','KEY_TEST_ID','test_failure_reason','test_hook_last_finished','KEY_TEST_LOGS','logs','10quOlpv','KEY_TEST_FILE_PATH','KEY_HOOK_FAILURE_TYPE','155360iHiUhB','test_ended_at','hook_logs','exports','11MzwxqO','KEY_HOOK_ID','automate_session_status','automate_session_name','MAX_NESTED_STEP_DEPTH','204570fAHLtA','KEY_HOOK_FAILURE','test_screenshots','test_scope','test_file_path','KEY_HOOK_FAILURE_REASON','KEY_TEST_SCREENSHOTS','207783lljAOK','KEY_HOOK_LAST_FINISHED','file_level','KEY_TEST_ENDED_AT','63CZJoSK','test_hook_last_started','DEFAULT_TEST_RESULT','KEY_FILE_NAME','hook_failure_type','event_started_at','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_LOCATION','retry_of','KEY_FILE_LEVEL','pending','file_path','test_failure','platform_index','TEST_LOG','2555710PfagQK','KEY_TEST_FAILURE','KEY_TEST_FRAMEWORK_VERSION','test_hooks_finished','automate_session_reason','711568GbHYgT','KEY_SESSION_NAME','KEY_PLATFORM_INDEX','custom_metadata','test_attachments','128065MezOGF','KIND_LOG','test_framework_version','8304vmMJkn','KEY_TEST_FAILURE_TYPE','KEY_TEST_META','test_location','hook_result','42BvxzZU','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_RETRY_OF','file_name','test_logs','hook_failure_reason','KEY_HOOK_NAME','KEY_LOGS','HOOK_REGEX','test_failure_type','KEY_AUTOMATE_SESSION_STATUS','KEY_HOOK_LOGS','KEY_TEST_ATTACHMENTS','DEFAULT_HOOK_RESULT','hook_failure','test_scopes','test_result','KEY_FILE_PATH','KEY_TEST_STARTED_AT','KEY_TEST_TAGS','test_meta'];a90_0x1e09=function(){return _0x2a8e9a;};return a90_0x1e09();}const TestFrameworkConstants=a90_0x32daa9;function a90_0x5891(_0x4dcec2,_0xb43933){const _0x1e0910=a90_0x1e09();return a90_0x5891=function(_0x5891e2,_0x1a45de){_0x5891e2=_0x5891e2-0x150;let _0x354abc=_0x1e0910[_0x5891e2];return _0x354abc;},a90_0x5891(_0x4dcec2,_0xb43933);}module[a90_0x1adcbd(0x17b)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a91_0x3622(){const _0x36b7bd=['KEY_HOOKS_STARTED','hook_type','trackCucumberInstance','\x20testState:\x20','2131865AeVJKy','removePendingHooks','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','gDKsm','KEY_HOOK_NAME','slice','\x20pending\x20hooks\x20for\x20testId:\x20','failure','readLogObjects','body','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','DEFAULT_TEST_RESULT','getPendingHooks','52629zCEhDX','lYhdv','emOpM','dlNUv','addMultipleEntries','getRef','KEY_HOOKS_FINISHED','KEY_TEST_UUID','\x20and\x20args\x20=\x20','AclaT','debug','result','createTestFrameworkEventPayload\x20testId:\x20','KEY_EVENT_STARTED_AT','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_AUTOMATE_SESSION_NAME','inspect','addPendingHook','storePendingHook','KEY_TEST_RERUN_NAME','ETTYz','matchHookRegex','739129YHvDox','../../../helpers/helper.js','resolveInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20id\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','VjnLx','ANewL',',\x20error:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','\x20with\x20UUID:\x20','KEY_TEST_RESULT','getTestUUID','KEY_TEST_FAILURE_REASON','KEY_LOGS','trackHookEvent','base64','toISOString','PRE','getThreadId','POST','DEFAULT_HOOK_RESULT','runHooks','../state/hookState.js','Dpocf','./testFramework','KEY_HOOK_ID','gjgzP','KEY_HOOK_LOGS','executionContext','../state/testFrameworkState.js','stringify','KEY_TEST_STARTED_AT','setTestDetails','customRerunParam','CucumberTestFramework','224838VlheVs','tSSTQ','location','endedAt','getTestFrameworksVersions','KEY_TEST_CODE','XNfUf','rerun_name','toString','push','\x20batch\x20','name','testData','RUoqF','\x20\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','KEY_TEST_LOGS','KEY_TEST_SCOPE','RSfEU','../TestInfo.js','VBcQh','uuid','KEY_TEST_FRAMEWORK_NAME','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getProcessId','test','failure_type','9197289wrWIjy','from','../cliUtils.js','ZwDiF','failure_reason','hooks','jdJsT','logCreatedEvent','meta','getTestFrameworks','84kbuGEM','util',',\x20state=','getCurrentTestState','getContext','platformIndex','sendLogCreatedEvent','testFrameworkVersion','parseCucumberTestResult','code','getTrackedInstance','processPendingHooks','ifzyf','KEY_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','getCurrentHookState','TEST','\x20hookState:\x20','uMAsw','started_at','KEY_TEST_ID','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_FAILURE','trackEvent','parseCucumberTest','hookState','KEY_TEST_FILE_PATH','NONE','test_run_id','PFBiP','KEY_TEST_FAILURE_TYPE','get','keys','failed','passed','error','KEY_TEST_META','gsKpR','createTestFrameworkEventPayload','pop','\x20with\x20result:\x20','startedAt','UQEzx','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','4740928nkpsRI','KEY_TEST_FRAMEWORK_VERSION','testUUID','leqNt','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','ceil','KEY_TEST_ATTACHMENTS','\x20&\x20hook\x20=\x20','KEY_CUSTOM_TAGS','yhGPs','LffYE','KbCfO','eventJson','KEY_TEST_ENDED_AT','length','UnhandledError','WDjoQ','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','tags','failure_data','KEY_EVENT_ENDED_AT','156GtirWF','args','concat','Stored\x20pending\x20hook\x20for\x20testId:\x20','file_name','unknown','../instances/testFrameworkInstance.js','getId','format','browserstackPlatformIndex','getInstance','Etjfg','finished_at','Processing\x20','\x20&\x20hookState=','scopes','getAllData','87810cOlzWF','CJdfU','JgoNS','instance','getTestDetails','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test'];a91_0x3622=function(){return _0x36b7bd;};return a91_0x3622();}function a91_0x4235(_0x3af103,_0x6a36f4){const _0x362224=a91_0x3622();return a91_0x4235=function(_0x4235fa,_0x21458c){_0x4235fa=_0x4235fa-0xb0;let _0x4cdd3d=_0x362224[_0x4235fa];return _0x4cdd3d;},a91_0x4235(_0x3af103,_0x6a36f4);}const a91_0x38cea9=a91_0x4235;(function(_0x57e2d8,_0x426341){const _0xaaedab=a91_0x4235,_0x82c66c=_0x57e2d8();while(!![]){try{const _0x245519=parseInt(_0xaaedab(0xba))/0x1+parseInt(_0xaaedab(0xde))/0x2+-parseInt(_0xaaedab(0x16e))/0x3*(-parseInt(_0xaaedab(0x146))/0x4)+parseInt(_0xaaedab(0x161))/0x5+-parseInt(_0xaaedab(0x157))/0x6*(-parseInt(_0xaaedab(0x104))/0x7)+-parseInt(_0xaaedab(0x130))/0x8+-parseInt(_0xaaedab(0xfa))/0x9;if(_0x245519===_0x426341)break;else _0x82c66c['push'](_0x82c66c['shift']());}catch(_0x5e2bb7){_0x82c66c['push'](_0x82c66c['shift']());}}}(a91_0x3622,0x7fbad));const TestFramework=require(a91_0x38cea9(0xd3)),TestFrameworkState=require(a91_0x38cea9(0xd8)),HookState=require(a91_0x38cea9(0xd1)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x38cea9(0x14c)),CLIUtils=require(a91_0x38cea9(0xfc)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x38cea9(0xbb)),logger=createClassLogger(a91_0x38cea9(0xdd)),{v4:uuidv4}=require(a91_0x38cea9(0xf4)),util=require(a91_0x38cea9(0x105)),TestInfo=require(a91_0x38cea9(0xf2)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x2fdcef,_0x2cd658,_0x46ac5e){super(_0x2fdcef,_0x2cd658,_0x46ac5e);}async[a91_0x38cea9(0x11b)](_0x366162,_0x2461dc,_0xcc36b1={}){const _0x232005=a91_0x38cea9,_0x63eb12={};_0x63eb12[_0x232005(0x121)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x63eb12['tSSTQ']=function(_0x521be8,_0x24aec7){return _0x521be8===_0x24aec7;},_0x63eb12[_0x232005(0x13b)]=function(_0xdf8494,_0x5b0b1f){return _0xdf8494===_0x5b0b1f;},_0x63eb12[_0x232005(0xc0)]=function(_0x5093ee,_0x154db5){return _0x5093ee===_0x154db5;},_0x63eb12['AclaT']=_0x232005(0x142);const _0x42857d=_0x63eb12;await super[_0x232005(0x11b)](_0x366162,_0x2461dc,_0xcc36b1);const _0x4c34de=this[_0x232005(0xbc)](_0x366162,_0x2461dc,_0xcc36b1);if(!_0x4c34de){logger[_0x232005(0x178)](_0x42857d[_0x232005(0x121)]);return;}try{let _0x511c95,_0x59435e;switch(_0x366162){case TestFrameworkState[_0x232005(0x114)]:_0x511c95=_0xcc36b1[_0x232005(0xf8)],_0x59435e=TestInfo[_0x232005(0xc6)](_0x511c95['id']);if(_0x42857d[_0x232005(0xdf)](_0x2461dc,HookState[_0x232005(0xcc)])){logger[_0x232005(0x178)](_0x232005(0x163)+_0x511c95['id']);const _0x2932ee={};_0x2932ee[_0x232005(0x132)]=_0x59435e,_0x2932ee[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this['parseCucumberTest'](_0x2932ee)),logger[_0x232005(0x178)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x511c95['id']),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}else{if(_0x42857d['LffYE'](_0x2461dc,HookState[_0x232005(0xce)])){const _0x4c5c1e={};_0x4c5c1e[_0x232005(0x132)]=_0x59435e,_0x4c5c1e[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this[_0x232005(0x10c)](_0x4c5c1e)),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x42857d[_0x232005(0xc0)](_0x2461dc,HookState[_0x232005(0xce)])&&await this[_0x232005(0x10a)](_0x4c34de,_0x366162,_0xcc36b1);break;default:if(CLIUtils[_0x232005(0xb9)](_0x366162[_0x232005(0xe6)]()['split']('.')[0x1])){const _0x2d2e05=await this['trackHookEvent'](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);_0x4c34de[_0x232005(0x172)](_0x2d2e05);}else logger['debug'](_0x232005(0x135)+_0x366162+_0x232005(0x154)+_0x2461dc);break;}}catch(_0xed3415){logger[_0x232005(0x127)](util[_0x232005(0x14e)](_0x42857d[_0x232005(0x177)],_0x366162,_0x2461dc,_0xcc36b1[_0x232005(0x13f)],_0xed3415));}_0xcc36b1[_0x232005(0x15a)]=_0x4c34de,await this[_0x232005(0xd0)](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);}[a91_0x38cea9(0xbc)](_0x48f26d,_0x3fac97,_0x1442f6={}){const _0x623387=a91_0x38cea9,_0x482375={};_0x482375[_0x623387(0xc1)]=function(_0xf2f38b,_0x2f7463){return _0xf2f38b===_0x2f7463;};const _0x12ccf5=_0x482375;let _0x328ccf=null;return(_0x12ccf5['ANewL'](_0x48f26d,TestFrameworkState['INIT_TEST'])||_0x12ccf5[_0x623387(0xc1)](_0x48f26d,TestFrameworkState[_0x623387(0x11f)]))&&this[_0x623387(0x15f)](_0x48f26d,_0x1442f6),_0x328ccf=TestFramework[_0x623387(0x10e)](),_0x328ccf;}[a91_0x38cea9(0x15f)](_0x17ba22,_0x3d571d){const _0x416bad=a91_0x38cea9,_0x262489=CLIUtils['getCurrentInstanceName'](),_0x2b8b6e=TrackedInstance['createContext'](_0x262489);let _0x364885=null;logger[_0x416bad(0x178)](_0x416bad(0x12f)+_0x262489+_0x416bad(0x106)+_0x17ba22),_0x364885=new TestFrameworkInstance(_0x2b8b6e,this['getTestFrameworks'](),this[_0x416bad(0xe2)](),_0x17ba22,HookState[_0x416bad(0x11f)]),TestFramework['setTrackedInstance'](_0x2b8b6e,_0x364885),logger[_0x416bad(0x178)](_0x416bad(0xb2)+_0x2b8b6e[_0x416bad(0x14d)]()+'\x20target='+_0x262489);}[a91_0x38cea9(0x11c)](_0x2f8ae3){const _0x99c929=a91_0x38cea9,_0x10e17f={};_0x10e17f['VBcQh']=_0x99c929(0x15c);const _0x465e68=_0x10e17f,{testUUID:_0x456145,testData:_0x51c3b5}=_0x2f8ae3;if(!_0x51c3b5||!_0x51c3b5[_0x99c929(0xf4)])return logger[_0x99c929(0x178)](_0x465e68[_0x99c929(0xf3)]),{};const _0x3815e4=_0x456145,_0x153ea6=_0x51c3b5[_0x99c929(0xf4)],_0x25780d=this[_0x99c929(0x103)]()[0x0],_0x782d6=this[_0x99c929(0xe2)](),_0x5a771d={[TestFrameworkConstants[_0x99c929(0xf5)]]:_0x25780d,[TestFrameworkConstants[_0x99c929(0x131)]]:_0x782d6[_0x25780d],[TestFrameworkConstants[_0x99c929(0xef)]]:[],[TestFrameworkConstants[_0x99c929(0x174)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x99c929(0x175)]]:_0x3815e4,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x99c929(0x16c)],[TestFrameworkConstants[_0x99c929(0xb3)]]:_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x11e)]]:_0x51c3b5[_0x99c929(0x14a)]||'',[TestFrameworkConstants[_0x99c929(0x118)]]:_0x153ea6,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x51c3b5[_0x99c929(0xe9)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x51c3b5[_0x99c929(0xe0)]||'',[TestFrameworkConstants[_0x99c929(0xe3)]]:_0x51c3b5[_0x99c929(0x16a)]?.[_0x99c929(0x10d)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x51c3b5[_0x99c929(0x143)]||[],[TestFrameworkConstants[_0x99c929(0xda)]]:_0x51c3b5[_0x99c929(0x12d)]||new Date()[_0x99c929(0xcb)](),[TestFrameworkConstants[_0x99c929(0xf0)]]:_0x51c3b5[_0x99c929(0x155)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x51c3b5['scopes']||[],[TestFrameworkConstants[_0x99c929(0xb7)]]:_0x51c3b5[_0x99c929(0xdc)]?.[_0x99c929(0xe5)]||_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x139)]]:{},[TestFrameworkConstants[_0x99c929(0x128)]]:_0x51c3b5[_0x99c929(0x102)]||{}};TestInfo[_0x99c929(0xdb)](_0x153ea6,_0x5a771d),logger[_0x99c929(0x178)]('Parsed\x20cucumber\x20test:\x20'+_0x51c3b5['name']+_0x99c929(0xc4)+_0x3815e4);const _0x1146d2={};return _0x1146d2[_0x153ea6]=_0x5a771d,_0x1146d2;}[a91_0x38cea9(0x10c)](_0x29ba19){const _0xc71c47=a91_0x38cea9,_0x1367be={'oWwFn':_0xc71c47(0xbd),'RSfEU':_0xc71c47(0x14b),'yhGPs':function(_0x5880e1,_0x107583){return _0x5880e1===_0x107583;},'UQEzx':_0xc71c47(0x125),'HpLFg':'UnhandledError','ywMIt':function(_0x40333e,_0x33a005,_0x16b915){return _0x40333e(_0x33a005,_0x16b915);},'WDjoQ':function(_0xd36d9f,_0x3831a8){return _0xd36d9f>_0x3831a8;}},{testUUID:_0x92975b,testData:_0x30fe0c}=_0x29ba19;if(!_0x30fe0c||!_0x30fe0c[_0xc71c47(0xf4)])return logger[_0xc71c47(0x178)](_0x1367be['oWwFn']),{};const _0xaacd52=this[_0xc71c47(0xbc)](TestFrameworkState[_0xc71c47(0x114)],HookState[_0xc71c47(0xce)]),_0x2c89f2=_0x30fe0c[_0xc71c47(0xf4)],_0x44e631=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)||{},_0x544dc0=_0x44e631?_0x44e631[TestFrameworkConstants[_0xc71c47(0x139)]]||{}:{},_0x1a3f7b={..._0x44e631,[TestFrameworkConstants[_0xc71c47(0xc5)]]:_0x30fe0c[_0xc71c47(0x179)]||_0x1367be[_0xc71c47(0xf1)],[TestFrameworkConstants[_0xc71c47(0x13e)]]:_0x30fe0c['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x544dc0,[TestFrameworkConstants[_0xc71c47(0xc8)]]:[],[TestFrameworkConstants[_0xc71c47(0x128)]]:_0x30fe0c[_0xc71c47(0x102)]||{}};_0x1367be[_0xc71c47(0x13a)](_0x30fe0c[_0xc71c47(0x179)],_0x1367be[_0xc71c47(0x12e)])&&_0x30fe0c['failure']&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x122)]]=_0x30fe0c[_0xc71c47(0xf9)]||_0x1367be['HpLFg'],_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc7)]]=_0x30fe0c[_0xc71c47(0xfe)]||'',_0x1a3f7b[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x30fe0c[_0xc71c47(0x168)]);const _0x34edee=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x137)]]||{},_0x23c523=_0x1367be['ywMIt'](getManualUploadLogs,_0x34edee,_0xaacd52[_0xc71c47(0x156)]()['get'](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x175)]]);if(_0x1367be['WDjoQ'](_0x23c523[_0xc71c47(0x13f)],0x0)){const _0x1b1416=_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]||[];_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]=[..._0x1b1416,..._0x23c523];}_0x30fe0c[_0xc71c47(0xff)]&&_0x1367be[_0xc71c47(0x141)](_0x30fe0c[_0xc71c47(0xff)][_0xc71c47(0x13f)],0x0)&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x174)]]=_0x30fe0c[_0xc71c47(0xff)]);TestInfo[_0xc71c47(0xdb)](_0x2c89f2,_0x1a3f7b),logger[_0xc71c47(0x178)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x30fe0c[_0xc71c47(0xe9)]+_0xc71c47(0x12c)+_0x30fe0c['result']);const _0x53c1da={};return _0x53c1da[_0x2c89f2]=_0x1a3f7b,_0x53c1da;}async[a91_0x38cea9(0xc9)](_0xf931be,_0xd968a0,_0x57f44c,_0x44486a){const _0x158ab7=a91_0x38cea9,_0x5df485={'gDKsm':_0x158ab7(0xbf),'IIavC':function(_0x34c8c3){return _0x34c8c3();},'CJdfU':function(_0x4b8cd8,_0x4ca655){return _0x4b8cd8 in _0x4ca655;},'leqNt':function(_0x584536,_0x4f1213){return _0x584536===_0x4f1213;},'gjgzP':function(_0x19fb5d,_0x4128f5){return _0x19fb5d===_0x4128f5;},'jdJsT':function(_0x464f68,_0x4464d1){return _0x464f68>_0x4464d1;},'QWiID':function(_0x13e4ed,_0x73ac98){return _0x13e4ed===_0x73ac98;},'gsKpR':'failed','emOpM':_0x158ab7(0x140),'RUoqF':_0x158ab7(0x126),'XNfUf':function(_0x38d928,_0x29f93f){return _0x38d928!==_0x29f93f;}},{hookData:_0x1dad48}=_0x44486a;if(!_0x1dad48)return logger[_0x158ab7(0x178)](_0x5df485[_0x158ab7(0x164)]),{};const _0x33a27d=_0x1dad48[_0x158ab7(0xf4)]||_0x5df485['IIavC'](uuidv4),_0x10bb73=_0x1dad48[_0x158ab7(0x120)],_0x16e13e=_0xd968a0[_0x158ab7(0xe6)]()['split']('.')[0x1],_0x9efb0e=TestInfo[_0x158ab7(0x15b)](_0x10bb73)[TestFrameworkConstants[_0x158ab7(0x139)]]||{},_0x11aeb7=_0xf931be[_0x158ab7(0x156)]()['get'](_0x10bb73);if(!_0x11aeb7)return logger['debug'](_0x158ab7(0xf6)+_0x10bb73+_0x158ab7(0xed)),this[_0x158ab7(0xb6)](_0xf931be,_0x10bb73,_0xd968a0,_0x57f44c,_0x44486a),{};let _0xd34177=_0x11aeb7[TestFrameworkConstants[_0x158ab7(0x15d)]];!_0xd34177&&(_0xd34177={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xd34177)&&(_0xd34177[_0x16e13e]=[]);let _0xcb6c3b=_0x11aeb7[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0xcb6c3b&&(_0xcb6c3b={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xcb6c3b)&&(_0xcb6c3b[_0x16e13e]=[]);const _0x409211={[TestFrameworkConstants[_0x158ab7(0x15d)]]:_0xd34177,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xcb6c3b},_0xa1411f={};_0xa1411f[_0x10bb73]=_0x409211;const _0x3b5429=_0xa1411f;if(_0x5df485[_0x158ab7(0x133)](_0x57f44c,HookState[_0x158ab7(0xcc)])){const _0x2e5367={[TestFrameworkConstants[_0x158ab7(0xd4)]]:_0x33a27d,[TestFrameworkConstants[_0x158ab7(0x111)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x158ab7(0xb1)]]:_0x1dad48[_0x158ab7(0x117)],[TestFrameworkConstants[_0x158ab7(0xd6)]]:[],[TestFrameworkConstants[_0x158ab7(0x165)]]:_0x1dad48[_0x158ab7(0x15e)],[TestFrameworkConstants[_0x158ab7(0x139)]]:_0x9efb0e};_0x2e5367['key']=_0x16e13e;const _0x2009ee=_0x2e5367;_0xd34177[_0x16e13e][_0x158ab7(0xe7)](_0x2009ee),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x16e13e,logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x16e13e+_0x158ab7(0x138)+_0x2009ee+_0x158ab7(0xec)+_0x44486a);}else{if(_0x5df485[_0x158ab7(0xd5)](_0x57f44c,HookState[_0x158ab7(0xce)])){const _0x3ad272=_0x1dad48[_0x158ab7(0x179)],_0x3f4532=_0xd34177[_0x16e13e]||[];logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3f4532+_0x158ab7(0x176)+_0x44486a);if(_0x5df485[_0x158ab7(0x100)](_0x3f4532[_0x158ab7(0x13f)],0x0)){const _0x3c54f2=_0x3f4532[_0x158ab7(0x12b)]();_0x5df485['QWiID'](_0x1dad48[_0x158ab7(0x179)],_0x5df485[_0x158ab7(0x129)])&&_0x1dad48['failure_data']?(_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x112)]]=_0x1dad48[_0x158ab7(0xf9)]||_0x5df485[_0x158ab7(0x170)],_0x3c54f2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1dad48[_0x158ab7(0xfe)]||'',_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x11a)]]=_0x1dad48[_0x158ab7(0x144)]):_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x111)]]=_0x5df485[_0x158ab7(0xeb)];_0x5df485[_0x158ab7(0xe4)](_0x3ad272,TestFrameworkConstants[_0x158ab7(0xcf)])&&(_0x3c54f2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x3ad272);_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x145)]]=_0x1dad48[_0x158ab7(0x152)]||new Date()[_0x158ab7(0xcb)](),_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x139)]]=_0x9efb0e;const _0x3cafdd=_0x3c54f2[TestFrameworkConstants[_0x158ab7(0xd4)]];!_0xcb6c3b[_0x16e13e]&&(_0xcb6c3b[_0x16e13e]=[]),_0xcb6c3b[_0x16e13e]['push'](_0x3c54f2),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x16e13e;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x1dad48['hook_type']+_0x158ab7(0xbe)+_0x33a27d+'\x20for\x20test:\x20'+_0x10bb73),_0x3b5429;}[a91_0x38cea9(0x12a)](_0x55d1a1){const _0x5a6fa4=a91_0x38cea9,_0x5b0c7e={};_0x5b0c7e[_0x5a6fa4(0x16f)]=_0x5a6fa4(0xca);const _0x49bd18=_0x5b0c7e;try{const _0x2d783c=_0x55d1a1[_0x5a6fa4(0xf8)]?_0x55d1a1['test']['id']:_0x55d1a1['hookData'][_0x5a6fa4(0x120)],_0x10fc7d=_0x55d1a1[_0x5a6fa4(0x15a)],_0x3e3b76=_0x10fc7d[_0x5a6fa4(0x108)](),_0x2ec9e0=_0x10fc7d[_0x5a6fa4(0x156)]()[_0x5a6fa4(0x123)](_0x2d783c);if(!_0x2ec9e0)return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2d783c),{};logger[_0x5a6fa4(0x178)](_0x5a6fa4(0xb0)+_0x2d783c);const {[TestFrameworkConstants[_0x5a6fa4(0xf5)]]:_0x34bb0d='',[TestFrameworkConstants[_0x5a6fa4(0x131)]]:_0x3f9e53='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2c5b8a='',[TestFrameworkConstants[_0x5a6fa4(0x13e)]]:_0x182917=''}=_0x2ec9e0,_0x4eb2ae=_0x10fc7d[_0x5a6fa4(0x107)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0xfdf552=_0x10fc7d[_0x5a6fa4(0x113)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0x1fea20=global?.[_0x5a6fa4(0x14f)]??0x0,_0x2c285b=_0x10fc7d[_0x5a6fa4(0x173)](),_0x2b4a67=Buffer[_0x5a6fa4(0xfb)](JSON[_0x5a6fa4(0xd9)](_0x2ec9e0))[_0x5a6fa4(0xe6)](_0x49bd18[_0x5a6fa4(0x16f)]),_0x483783={'hash':_0x3e3b76['getId'](),'threadId':_0x3e3b76[_0x5a6fa4(0xcd)]()[_0x5a6fa4(0xe6)](),'processId':_0x3e3b76[_0x5a6fa4(0xf7)]()[_0x5a6fa4(0xe6)]()},_0x5cb4eb={};_0x5cb4eb[_0x5a6fa4(0x109)]=_0x1fea20,_0x5cb4eb['testFrameworkName']=_0x34bb0d,_0x5cb4eb[_0x5a6fa4(0x10b)]=_0x3f9e53,_0x5cb4eb[_0x5a6fa4(0xee)]=_0x4eb2ae,_0x5cb4eb[_0x5a6fa4(0x11d)]=_0xfdf552,_0x5cb4eb['startedAt']=_0x2c5b8a,_0x5cb4eb[_0x5a6fa4(0xe1)]=_0x182917,_0x5cb4eb[_0x5a6fa4(0xf4)]=_0x2c285b,_0x5cb4eb[_0x5a6fa4(0x13d)]=_0x2b4a67,_0x5cb4eb[_0x5a6fa4(0xd7)]=_0x483783;const _0x27e977=_0x5cb4eb;return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x2d783c+_0x5a6fa4(0x160)+_0x4eb2ae+_0x5a6fa4(0x115)+_0xfdf552),_0x27e977;}catch(_0x9a39be){return logger[_0x5a6fa4(0x127)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x9a39be)),{};}}async[a91_0x38cea9(0x10a)](_0x13d4f6,_0x101f7c,_0x5b7cd9){const _0x1df744=a91_0x38cea9,_0x51f7bf={'KbCfO':function(_0x5e3d19,_0x2554e3,_0x2ba840){return _0x5e3d19(_0x2554e3,_0x2ba840);},'ETTYz':function(_0x3c2e61,_0x3021f9){return _0x3c2e61===_0x3021f9;},'AYjvJ':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','uMAsw':function(_0x45a212,_0x18a7d4){return _0x45a212/_0x18a7d4;},'ifzyf':function(_0x323cbf,_0x258f79){return _0x323cbf<_0x258f79;},'Etjfg':function(_0x549f03,_0x396fe3){return _0x549f03*_0x396fe3;},'JgoNS':function(_0x475226,_0x547bf4){return _0x475226+_0x547bf4;},'ZwDiF':function(_0x44a5f8,_0x399b83){return _0x44a5f8+_0x399b83;},'dlNUv':'Cucumber\x20log\x20created\x20event'};try{const _0x943763=_0x5b7cd9[_0x1df744(0x132)],_0x5097df=_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763),{[TestFrameworkConstants[_0x1df744(0xf5)]]:_0x16fd43='',[TestFrameworkConstants[_0x1df744(0x131)]]:_0x3f7844=''}=_0x5097df,_0xaa4b99=TestInfo[_0x1df744(0x169)](_0x943763),_0x426c91=TestInfo[_0x1df744(0x15b)](_0x943763)[TestFrameworkConstants[_0x1df744(0x137)]]||{},_0x2e5a04=_0x51f7bf[_0x1df744(0x13c)](getMediaArtifactsLogs,_0x426c91,_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763)[TestFrameworkConstants[_0x1df744(0x175)]]),_0x37e0f4=(_0xaa4b99||[])[_0x1df744(0x148)](_0x2e5a04||[]);if(!_0x37e0f4||_0x51f7bf[_0x1df744(0xb8)](_0x37e0f4[_0x1df744(0x13f)],0x0)){logger['debug'](_0x51f7bf['AYjvJ']);return;}const _0x254aa9=0x28,_0x25697f=Math[_0x1df744(0x136)](_0x51f7bf[_0x1df744(0x116)](_0x37e0f4[_0x1df744(0x13f)],_0x254aa9));for(let _0x1e508c=0x0;_0x51f7bf[_0x1df744(0x110)](_0x1e508c,_0x25697f);_0x1e508c++){const _0x1846bd=_0x51f7bf[_0x1df744(0x151)](_0x1e508c,_0x254aa9),_0x75d96c=_0x51f7bf[_0x1df744(0x159)](_0x1846bd,_0x254aa9),_0x8da2eb=_0x37e0f4[_0x1df744(0x166)](_0x1846bd,_0x75d96c),_0x36d662={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x8da2eb,'testFrameworkName':_0x16fd43,'testFrameworkVersion':_0x3f7844,'testFrameworkState':_0x101f7c['toString']()['split']('.')[0x1]};logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf['JgoNS'](_0x1e508c,0x1)+'/'+_0x25697f+'\x20payload='+util[_0x1df744(0xb4)](_0x36d662));const _0x3cce1d=await GrpcClient[_0x1df744(0x150)]()[_0x1df744(0x101)](_0x36d662);logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf[_0x1df744(0xfd)](_0x1e508c,0x1)+'/'+_0x25697f+'\x20response='+util[_0x1df744(0xb4)](_0x3cce1d));}}catch(_0x3cb647){logger[_0x1df744(0x127)](_0x1df744(0x16b)+util[_0x1df744(0x14e)](_0x3cb647));}logger[_0x1df744(0x178)](_0x51f7bf[_0x1df744(0x171)]);}[a91_0x38cea9(0xb6)](_0x236f1c,_0x46695a,_0x4030be,_0x38df93,_0x35b1be){const _0x279609=a91_0x38cea9,_0x5eb33f={'testId':_0x46695a,'testFrameworkState':_0x4030be,'hookState':_0x38df93,'args':_0x35b1be,'timestamp':new Date()[_0x279609(0xcb)]()};_0x236f1c[_0x279609(0xb5)](_0x46695a,_0x5eb33f),logger['debug'](_0x279609(0x149)+_0x46695a+',\x20state:\x20'+_0x4030be+',\x20hookState:\x20'+_0x38df93);}async[a91_0x38cea9(0x10f)](_0x10bc05,_0x4c2dc8){const _0x27b41d=a91_0x38cea9,_0x450f59={};_0x450f59['Dpocf']=function(_0x43dc23,_0x411246){return _0x43dc23>_0x411246;};const _0x3f1a66=_0x450f59;if(!_0x10bc05['hasPendingHooks'](_0x4c2dc8))return;const _0x58fd7f=_0x10bc05[_0x27b41d(0x16d)](_0x4c2dc8);logger['debug'](_0x27b41d(0x153)+_0x58fd7f[_0x27b41d(0x13f)]+_0x27b41d(0x167)+_0x4c2dc8);for(const _0x291db6 of _0x58fd7f){try{const _0x436a67=await this[_0x27b41d(0xc9)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6['hookState'],_0x291db6['args']);_0x436a67&&_0x3f1a66[_0x27b41d(0xd2)](Object[_0x27b41d(0x124)](_0x436a67)[_0x27b41d(0x13f)],0x0)&&_0x10bc05[_0x27b41d(0x172)](_0x436a67),await this[_0x27b41d(0xd0)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6[_0x27b41d(0x11d)],_0x291db6[_0x27b41d(0x147)]);}catch(_0x193931){logger[_0x27b41d(0x127)](_0x27b41d(0x119)+_0x4c2dc8+_0x27b41d(0xc2)+_0x193931);}}_0x10bc05[_0x27b41d(0x162)](_0x4c2dc8),logger[_0x27b41d(0x178)](_0x27b41d(0x134)+_0x4c2dc8);}}module['exports']=CucumberTestFramework;
1
+ function a91_0x3412(_0x33a4ee,_0x59c81f){const _0x14e880=a91_0x14e8();return a91_0x3412=function(_0x341225,_0x3dac2f){_0x341225=_0x341225-0xb3;let _0x28a570=_0x14e880[_0x341225];return _0x28a570;},a91_0x3412(_0x33a4ee,_0x59c81f);}const a91_0x3eed0e=a91_0x3412;function a91_0x14e8(){const _0xb3471f=['CucumberTestFramework','Cucumber\x20log\x20created\x20event','./constants/testFrameworkConstants.js','WIWkm','util','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','NONE','VpLUd','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','LNwgQ','tags','failure','testFrameworkVersion',',\x20state:\x20','KEY_CUSTOM_TAGS','XDVkx','../../../helpers/classLogger.js','parseCucumberTestResult','DEFAULT_TEST_RESULT','UYcto','4613044dzwgHn','KEY_EVENT_ENDED_AT','../cliUtils.js','../instances/trackedInstance.js','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','storePendingHook','\x20for\x20test:\x20','KEY_TEST_FAILURE_TYPE','finished_at','eventJson','failure_type','KEY_TEST_RESULT','ohhXv','debug','nRLpA','YMXTM','body','removePendingHooks','KEY_TEST_UUID','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','17334aCBSmP','ggZan','parseCucumberTest','failed','msBHb','pop','get','16hygywm','KEY_TEST_FRAMEWORK_VERSION','KEY_EVENT_STARTED_AT','failure_reason','uuid','KEY_TEST_ATTACHMENTS',',\x20hookState:\x20','EQwhl','KEY_TEST_FRAMEWORK_NAME','getProcessId','jqrEa','format','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','\x20and\x20args\x20=\x20','263zpgvij','\x20with\x20result:\x20','hook_type','KEY_TEST_FILE_PATH','KEY_HOOK_FAILURE_REASON','location','concat','runHooks','getAllData','kylwh','KEY_HOOK_LOGS','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_FAILURE','addMultipleEntries','KEY_HOOK_LAST_FINISHED','KEY_TEST_TAGS','5026257JTDyGJ','uSTxc','KEY_TEST_NAME','addPendingHook','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','meta','result','startedAt','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','Stored\x20pending\x20hook\x20for\x20testId:\x20','testData','KEY_LOGS','6305375iyVHWj','readLogObjects','CEZke','KEY_HOOK_ID','../grpcClient','instance','KEY_TEST_META','setTestDetails','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping',',\x20state=','exports','KEY_TEST_SCOPE','kxFym','mQMkT','KEY_HOOK_LAST_STARTED','KEY_TEST_FAILURE_REASON','customRerunParam','from','hookState','endedAt','KcAKW','trackCucumberInstance','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_SCOPES','WJjyW','getId','KEY_HOOK_RESULT','getCurrentInstanceName','testUUID','NQTzL','split','\x20&\x20hook\x20=\x20','name','platformIndex','slice','\x20&\x20hookState=','\x20\x20and\x20args\x20=\x20','INIT_TEST','file_name','UYlug','OrAVS','key','inspect','trackHookEvent','testFrameworkState',',\x20storing\x20as\x20pending\x20hook','KEY_HOOK_NAME','UnhandledError','Processing\x20','getCurrentTestState','KEY_TEST_ENDED_AT','getTestDetails',',\x20error:\x20','OJRxS','code','stringify','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','yRBxs','toString','3482556sGbaqx','getTestUUID','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_HOOK_FAILURE_TYPE','cndgF','test_run_id','PRE','sendLogCreatedEvent','../../../helpers/helper.js','push','5930KNpURr','keys','browserstackPlatformIndex','KEY_AUTOMATE_SESSION_NAME','getTrackedInstance','KEY_TEST_LOGS','length','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','passed','createTestFrameworkEventPayload','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOKS_FINISHED','failure_data','rerun_name','hooks','4468380XeWTzS','getTestFrameworksVersions','KEY_HOOKS_STARTED','toISOString','resolveInstance','Updated\x20cucumber\x20test\x20result:\x20','TEST','oToyf','processPendingHooks','error','12182XRmmXP','../TestInfo.js','pKSek','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','DEFAULT_HOOK_RESULT','unknown','Ivkdd','getThreadId','\x20hookState:\x20','KEY_TEST_LOCATION','getCurrentHookState','KEY_HOOK_FAILURE','hasPendingHooks','PoZBz','testFrameworkName','test','KEY_TEST_STARTED_AT','trackEvent','laBMv','../state/hookState.js','args','\x20payload=','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'];a91_0x14e8=function(){return _0xb3471f;};return a91_0x14e8();}(function(_0x384a5d,_0x213beb){const _0x19f58f=a91_0x3412,_0x3e8a6d=_0x384a5d();while(!![]){try{const _0xc3449a=parseInt(_0x19f58f(0x16b))/0x1*(parseInt(_0x19f58f(0x117))/0x2)+-parseInt(_0x19f58f(0x17b))/0x3+-parseInt(_0x19f58f(0x142))/0x4+parseInt(_0x19f58f(0xb9))/0x5+parseInt(_0x19f58f(0x10d))/0x6+parseInt(_0x19f58f(0xf4))/0x7*(-parseInt(_0x19f58f(0x15d))/0x8)+-parseInt(_0x19f58f(0x156))/0x9*(-parseInt(_0x19f58f(0xfe))/0xa);if(_0xc3449a===_0x213beb)break;else _0x3e8a6d['push'](_0x3e8a6d['shift']());}catch(_0x4feb8a){_0x3e8a6d['push'](_0x3e8a6d['shift']());}}}(a91_0x14e8,0xe21d0));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a91_0x3eed0e(0x12a)),{createClassLogger}=require(a91_0x3eed0e(0x13e)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a91_0x3eed0e(0x144)),TrackedInstance=require(a91_0x3eed0e(0x145)),TestFrameworkConstants=require(a91_0x3eed0e(0x130)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x3eed0e(0xfc)),logger=createClassLogger(a91_0x3eed0e(0x12e)),{v4:uuidv4}=require(a91_0x3eed0e(0x161)),util=require(a91_0x3eed0e(0x132)),TestInfo=require(a91_0x3eed0e(0x118)),GrpcClient=require(a91_0x3eed0e(0xbd));class CucumberTestFramework extends TestFramework{constructor(_0x2a7504,_0x3d3f32,_0x5a3065){super(_0x2a7504,_0x3d3f32,_0x5a3065);}async[a91_0x3eed0e(0x128)](_0x307c6f,_0x55c9f3,_0xdb1d89={}){const _0x310014=a91_0x3eed0e,_0x2c454b={};_0x2c454b[_0x310014(0x167)]=_0x310014(0x105),_0x2c454b[_0x310014(0xc6)]=function(_0x4b7566,_0x44e1d9){return _0x4b7566===_0x44e1d9;},_0x2c454b[_0x310014(0x17c)]=function(_0x43794b,_0x48b0f3){return _0x43794b===_0x48b0f3;},_0x2c454b[_0x310014(0x157)]=_0x310014(0x11a);const _0x4e5c3e=_0x2c454b;await super['trackEvent'](_0x307c6f,_0x55c9f3,_0xdb1d89);const _0x4e2da4=this[_0x310014(0x111)](_0x307c6f,_0x55c9f3,_0xdb1d89);if(!_0x4e2da4){logger[_0x310014(0x14f)](_0x4e5c3e[_0x310014(0x167)]);return;}try{let _0x3f37bf,_0x234b16;switch(_0x307c6f){case TestFrameworkState['TEST']:_0x3f37bf=_0xdb1d89[_0x310014(0x126)],_0x234b16=TestInfo[_0x310014(0xf5)](_0x3f37bf['id']);if(_0x4e5c3e[_0x310014(0xc6)](_0x55c9f3,HookState['PRE'])){logger[_0x310014(0x14f)](_0x310014(0xf6)+_0x3f37bf['id']);const _0x3a0a2a={};_0x3a0a2a['testUUID']=_0x234b16,_0x3a0a2a[_0x310014(0xb7)]=_0x3f37bf,_0x4e2da4[_0x310014(0x178)](this['parseCucumberTest'](_0x3a0a2a)),logger[_0x310014(0x14f)](_0x310014(0x146)+_0x3f37bf['id']),await this[_0x310014(0x115)](_0x4e2da4,_0x3f37bf['id']);}else{if(_0x4e5c3e['mQMkT'](_0x55c9f3,HookState['POST'])){const _0x263b2f={};_0x263b2f['testUUID']=_0x234b16,_0x263b2f['testData']=_0x3f37bf,_0x4e2da4['addMultipleEntries'](this[_0x310014(0x13f)](_0x263b2f)),await this['processPendingHooks'](_0x4e2da4,_0x3f37bf['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4e5c3e[_0x310014(0x17c)](_0x55c9f3,HookState['POST'])&&await this[_0x310014(0xfb)](_0x4e2da4,_0x307c6f,_0xdb1d89);break;default:if(CLIUtils['matchHookRegex'](_0x307c6f['toString']()['split']('.')[0x1])){const _0x5cea59=await this[_0x310014(0xe4)](_0x4e2da4,_0x307c6f,_0x55c9f3,_0xdb1d89);_0x4e2da4[_0x310014(0x178)](_0x5cea59);}else logger[_0x310014(0x14f)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x307c6f+_0x310014(0xdc)+_0x55c9f3);break;}}catch(_0x1b34b5){logger[_0x310014(0x116)](util[_0x310014(0x168)](_0x4e5c3e['ggZan'],_0x307c6f,_0x55c9f3,_0xdb1d89[_0x310014(0x104)],_0x1b34b5));}_0xdb1d89[_0x310014(0xbe)]=_0x4e2da4,await this[_0x310014(0x172)](_0x4e2da4,_0x307c6f,_0x55c9f3,_0xdb1d89);}[a91_0x3eed0e(0x111)](_0x1a67d0,_0xc59138,_0x1fd543={}){const _0x13a6db=a91_0x3eed0e,_0x18c792={};_0x18c792[_0x13a6db(0xe0)]=function(_0x42cb17,_0x1e64bb){return _0x42cb17===_0x1e64bb;},_0x18c792[_0x13a6db(0xf2)]=function(_0x2de094,_0x5c6790){return _0x2de094===_0x5c6790;};const _0x29f1b1=_0x18c792;let _0x40bda2=null;return(_0x29f1b1[_0x13a6db(0xe0)](_0x1a67d0,TestFrameworkState[_0x13a6db(0xde)])||_0x29f1b1['yRBxs'](_0x1a67d0,TestFrameworkState[_0x13a6db(0x134)]))&&this[_0x13a6db(0xce)](_0x1a67d0,_0x1fd543),_0x40bda2=TestFramework[_0x13a6db(0x102)](),_0x40bda2;}['trackCucumberInstance'](_0x23373c,_0x447950){const _0x278d8a=a91_0x3eed0e,_0x222e8e=CLIUtils[_0x278d8a(0xd4)](),_0x39d6ba=TrackedInstance['createContext'](_0x222e8e);let _0x1188cb=null;logger[_0x278d8a(0x14f)](_0x278d8a(0x133)+_0x222e8e+_0x278d8a(0xc2)+_0x23373c),_0x1188cb=new TestFrameworkInstance(_0x39d6ba,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x23373c,HookState[_0x278d8a(0x134)]),TestFramework['setTrackedInstance'](_0x39d6ba,_0x1188cb),logger[_0x278d8a(0x14f)](_0x278d8a(0xcf)+_0x39d6ba[_0x278d8a(0xd2)]()+'\x20target='+_0x222e8e);}[a91_0x3eed0e(0x158)](_0x504275){const _0x36c529=a91_0x3eed0e,_0x26c118={};_0x26c118['EQwhl']='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x21b5d6=_0x26c118,{testUUID:_0x304c85,testData:_0xca1245}=_0x504275;if(!_0xca1245||!_0xca1245['uuid'])return logger[_0x36c529(0x14f)](_0x21b5d6[_0x36c529(0x164)]),{};const _0x531883=_0x304c85,_0x2b384c=_0xca1245[_0x36c529(0x161)],_0x29e107=this['getTestFrameworks']()[0x0],_0x45978e=this[_0x36c529(0x10e)](),_0x20c47d={[TestFrameworkConstants[_0x36c529(0x165)]]:_0x29e107,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x45978e[_0x29e107],[TestFrameworkConstants[_0x36c529(0x103)]]:[],[TestFrameworkConstants[_0x36c529(0x109)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x36c529(0x154)]]:_0x531883,[TestFrameworkConstants[_0x36c529(0x14d)]]:TestFrameworkConstants[_0x36c529(0x140)],[TestFrameworkConstants[_0x36c529(0x101)]]:_0xca1245[_0x36c529(0xd9)]||'',[TestFrameworkConstants[_0x36c529(0x16e)]]:_0xca1245[_0x36c529(0xdf)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x2b384c,[TestFrameworkConstants[_0x36c529(0x17d)]]:_0xca1245[_0x36c529(0xd9)]||'',[TestFrameworkConstants[_0x36c529(0x120)]]:_0xca1245[_0x36c529(0x170)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0xca1245[_0x36c529(0x152)]?.[_0x36c529(0xef)]||null,[TestFrameworkConstants[_0x36c529(0x17a)]]:_0xca1245[_0x36c529(0x138)]||[],[TestFrameworkConstants[_0x36c529(0x127)]]:_0xca1245[_0x36c529(0xb4)]||new Date()[_0x36c529(0x110)](),[TestFrameworkConstants[_0x36c529(0xc4)]]:_0xca1245['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x36c529(0xd0)]]:_0xca1245['scopes']||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0xca1245[_0x36c529(0xc9)]?.[_0x36c529(0x10b)]||_0xca1245[_0x36c529(0xd9)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x36c529(0xbf)]]:_0xca1245[_0x36c529(0x180)]||{}};TestInfo[_0x36c529(0xc0)](_0x2b384c,_0x20c47d),logger[_0x36c529(0x14f)]('Parsed\x20cucumber\x20test:\x20'+_0xca1245[_0x36c529(0xd9)]+'\x20with\x20UUID:\x20'+_0x531883);const _0x2be2db={};return _0x2be2db[_0x2b384c]=_0x20c47d,_0x2be2db;}[a91_0x3eed0e(0x13f)](_0x7f8483){const _0x5c97ff=a91_0x3eed0e,_0x50bd82={'xKkjB':_0x5c97ff(0x155),'WJjyW':_0x5c97ff(0x11c),'OJRxS':function(_0x55a28a,_0x271b34){return _0x55a28a===_0x271b34;},'NQTzL':_0x5c97ff(0x159),'kylwh':_0x5c97ff(0xe8),'ZjFNl':function(_0x302a24,_0x21fcef,_0x477045){return _0x302a24(_0x21fcef,_0x477045);},'Ivkdd':function(_0x219414,_0x137144){return _0x219414>_0x137144;},'YMXTM':function(_0x27a5c3,_0x1cd6e1){return _0x27a5c3>_0x1cd6e1;}},{testUUID:_0x3d31ad,testData:_0x13a6e3}=_0x7f8483;if(!_0x13a6e3||!_0x13a6e3['uuid'])return logger[_0x5c97ff(0x14f)](_0x50bd82['xKkjB']),{};const _0x8b6494=this[_0x5c97ff(0x111)](TestFrameworkState[_0x5c97ff(0x113)],HookState['POST']),_0xcf6ecd=_0x13a6e3[_0x5c97ff(0x161)],_0x43c18e=TestInfo[_0x5c97ff(0xec)](_0xcf6ecd)||{},_0x5f4bd2=_0x43c18e?_0x43c18e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x221022={..._0x43c18e,[TestFrameworkConstants[_0x5c97ff(0x14d)]]:_0x13a6e3[_0x5c97ff(0xb3)]||_0x50bd82[_0x5c97ff(0xd1)],[TestFrameworkConstants[_0x5c97ff(0xeb)]]:_0x13a6e3['finishedAt']||new Date()[_0x5c97ff(0x110)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x5c97ff(0x110)](),[TestFrameworkConstants[_0x5c97ff(0x13c)]]:_0x5f4bd2,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x13a6e3[_0x5c97ff(0x180)]||{}};_0x50bd82[_0x5c97ff(0xee)](_0x13a6e3[_0x5c97ff(0xb3)],_0x50bd82[_0x5c97ff(0xd6)])&&_0x13a6e3[_0x5c97ff(0x139)]&&(_0x221022[TestFrameworkConstants[_0x5c97ff(0x149)]]=_0x13a6e3[_0x5c97ff(0x14c)]||_0x50bd82[_0x5c97ff(0x174)],_0x221022[TestFrameworkConstants[_0x5c97ff(0xc8)]]=_0x13a6e3[_0x5c97ff(0x160)]||'',_0x221022[TestFrameworkConstants[_0x5c97ff(0x177)]]=_0x13a6e3['failure']);const _0x1f9fcf=TestInfo[_0x5c97ff(0xec)](_0xcf6ecd)[TestFrameworkConstants[_0x5c97ff(0x162)]]||{},_0x2e388a=_0x50bd82['ZjFNl'](getManualUploadLogs,_0x1f9fcf,_0x8b6494[_0x5c97ff(0x173)]()['get'](_0xcf6ecd)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x50bd82[_0x5c97ff(0x11d)](_0x2e388a['length'],0x0)){const _0x48d1b6=_0x221022[TestFrameworkConstants[_0x5c97ff(0xb8)]]||[];_0x221022[TestFrameworkConstants[_0x5c97ff(0xb8)]]=[..._0x48d1b6,..._0x2e388a];}_0x13a6e3[_0x5c97ff(0x10c)]&&_0x50bd82[_0x5c97ff(0x151)](_0x13a6e3['hooks']['length'],0x0)&&(_0x221022[TestFrameworkConstants[_0x5c97ff(0x109)]]=_0x13a6e3['hooks']);TestInfo[_0x5c97ff(0xc0)](_0xcf6ecd,_0x221022),logger['debug'](_0x5c97ff(0x112)+_0x13a6e3[_0x5c97ff(0xd9)]+_0x5c97ff(0x16c)+_0x13a6e3[_0x5c97ff(0xb3)]);const _0x47013a={};return _0x47013a[_0xcf6ecd]=_0x221022,_0x47013a;}async[a91_0x3eed0e(0xe4)](_0x332a2b,_0xd28816,_0x36434b,_0x1a60ff){const _0xf3ff91=a91_0x3eed0e,_0x590bf4={'xADGb':_0xf3ff91(0xb5),'pKSek':function(_0x170681){return _0x170681();},'KcAKW':function(_0x49216b,_0x53366f){return _0x49216b in _0x53366f;},'UYcto':function(_0x3dcfdc,_0x2c3bfe){return _0x3dcfdc in _0x2c3bfe;},'laBMv':function(_0x210bb8,_0x2e63ae){return _0x210bb8===_0x2e63ae;},'exJVv':function(_0x1fb55c,_0xb647be){return _0x1fb55c>_0xb647be;},'XDVkx':_0xf3ff91(0x159),'wMZDo':_0xf3ff91(0xe8),'kxFym':_0xf3ff91(0x106),'PoZBz':function(_0x14906f,_0x349617){return _0x14906f!==_0x349617;}},{hookData:_0x417f1c}=_0x1a60ff;if(!_0x417f1c)return logger[_0xf3ff91(0x14f)](_0x590bf4['xADGb']),{};const _0x1b7e0f=_0x417f1c[_0xf3ff91(0x161)]||_0x590bf4[_0xf3ff91(0x119)](uuidv4),_0x377910=_0x417f1c[_0xf3ff91(0xf9)],_0x227a95=_0xd28816[_0xf3ff91(0xf3)]()['split']('.')[0x1],_0x4bf01a=TestInfo[_0xf3ff91(0xec)](_0x377910)[TestFrameworkConstants[_0xf3ff91(0x13c)]]||{},_0x5b2fda=_0x332a2b[_0xf3ff91(0x173)]()[_0xf3ff91(0x15c)](_0x377910);if(!_0x5b2fda)return logger[_0xf3ff91(0x14f)](_0xf3ff91(0xf1)+_0x377910+_0xf3ff91(0xe6)),this[_0xf3ff91(0x147)](_0x332a2b,_0x377910,_0xd28816,_0x36434b,_0x1a60ff),{};let _0x5bfd08=_0x5b2fda[TestFrameworkConstants[_0xf3ff91(0x10f)]];!_0x5bfd08&&(_0x5bfd08={});!_0x590bf4[_0xf3ff91(0xcd)](_0x227a95,_0x5bfd08)&&(_0x5bfd08[_0x227a95]=[]);let _0x572b61=_0x5b2fda[TestFrameworkConstants[_0xf3ff91(0x109)]];!_0x572b61&&(_0x572b61={});!_0x590bf4[_0xf3ff91(0x141)](_0x227a95,_0x572b61)&&(_0x572b61[_0x227a95]=[]);const _0x512654={[TestFrameworkConstants[_0xf3ff91(0x10f)]]:_0x5bfd08,[TestFrameworkConstants[_0xf3ff91(0x109)]]:_0x572b61},_0x2779ae={};_0x2779ae[_0x377910]=_0x512654;const _0x107567=_0x2779ae;if(_0x590bf4['laBMv'](_0x36434b,HookState[_0xf3ff91(0xfa)])){const _0x39dc61={[TestFrameworkConstants[_0xf3ff91(0xbc)]]:_0x1b7e0f,[TestFrameworkConstants[_0xf3ff91(0xd3)]]:TestFrameworkConstants[_0xf3ff91(0x11b)],[TestFrameworkConstants[_0xf3ff91(0x15f)]]:_0x417f1c['started_at'],[TestFrameworkConstants[_0xf3ff91(0x175)]]:[],[TestFrameworkConstants[_0xf3ff91(0xe7)]]:_0x417f1c[_0xf3ff91(0x16d)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x4bf01a};_0x39dc61[_0xf3ff91(0xe2)]=_0x227a95;const _0x358f70=_0x39dc61;_0x5bfd08[_0x227a95]['push'](_0x358f70),_0x107567[_0x377910][TestFrameworkConstants[_0xf3ff91(0xc7)]]=_0x227a95,logger['debug']('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x227a95+_0xf3ff91(0xd8)+_0x358f70+_0xf3ff91(0xdd)+_0x1a60ff);}else{if(_0x590bf4['laBMv'](_0x36434b,HookState['POST'])){const _0x2dfc06=_0x417f1c[_0xf3ff91(0xb3)],_0x35a2ce=_0x5bfd08[_0x227a95]||[];logger[_0xf3ff91(0x14f)](_0xf3ff91(0x17f)+_0x35a2ce+_0xf3ff91(0x16a)+_0x1a60ff);if(_0x590bf4['exJVv'](_0x35a2ce['length'],0x0)){const _0x535e44=_0x35a2ce[_0xf3ff91(0x15b)]();_0x590bf4[_0xf3ff91(0x129)](_0x417f1c['result'],_0x590bf4[_0xf3ff91(0x13d)])&&_0x417f1c['failure_data']?(_0x535e44[TestFrameworkConstants[_0xf3ff91(0xf7)]]=_0x417f1c['failure_type']||_0x590bf4['wMZDo'],_0x535e44[TestFrameworkConstants[_0xf3ff91(0x16f)]]=_0x417f1c[_0xf3ff91(0x160)]||'',_0x535e44[TestFrameworkConstants[_0xf3ff91(0x122)]]=_0x417f1c[_0xf3ff91(0x10a)]):_0x535e44[TestFrameworkConstants[_0xf3ff91(0xd3)]]=_0x590bf4[_0xf3ff91(0xc5)];_0x590bf4[_0xf3ff91(0x124)](_0x2dfc06,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x535e44[TestFrameworkConstants[_0xf3ff91(0xd3)]]=_0x2dfc06);_0x535e44[TestFrameworkConstants[_0xf3ff91(0x143)]]=_0x417f1c[_0xf3ff91(0x14a)]||new Date()[_0xf3ff91(0x110)](),_0x535e44[TestFrameworkConstants[_0xf3ff91(0x13c)]]=_0x4bf01a;const _0x318df1=_0x535e44[TestFrameworkConstants[_0xf3ff91(0xbc)]];!_0x572b61[_0x227a95]&&(_0x572b61[_0x227a95]=[]),_0x572b61[_0x227a95][_0xf3ff91(0xfd)](_0x535e44),_0x107567[_0x377910][TestFrameworkConstants[_0xf3ff91(0x179)]]=_0x227a95;}}}return logger[_0xf3ff91(0x14f)](_0xf3ff91(0x176)+_0x417f1c[_0xf3ff91(0x16d)]+'\x20with\x20id\x20'+_0x1b7e0f+_0xf3ff91(0x148)+_0x377910),_0x107567;}[a91_0x3eed0e(0x107)](_0x24203d){const _0x5de1e7=a91_0x3eed0e,_0x46f4ec={};_0x46f4ec[_0x5de1e7(0x135)]='base64';const _0x3acaa7=_0x46f4ec;try{const _0x3b615c=_0x24203d[_0x5de1e7(0x126)]?_0x24203d[_0x5de1e7(0x126)]['id']:_0x24203d['hookData']['test_run_id'],_0x3b6a3d=_0x24203d['instance'],_0x185478=_0x3b6a3d['getContext'](),_0x596eea=_0x3b6a3d['getAllData']()[_0x5de1e7(0x15c)](_0x3b615c);if(!_0x596eea)return logger[_0x5de1e7(0x14f)](_0x5de1e7(0x108)+_0x3b615c),{};logger[_0x5de1e7(0x14f)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x3b615c);const {[TestFrameworkConstants[_0x5de1e7(0x165)]]:_0x22e26='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1f0638='',[TestFrameworkConstants[_0x5de1e7(0x127)]]:_0x2633da='',[TestFrameworkConstants[_0x5de1e7(0xeb)]]:_0x2df11f=''}=_0x596eea,_0x1d811d=_0x3b6a3d[_0x5de1e7(0xea)]()[_0x5de1e7(0xf3)]()[_0x5de1e7(0xd7)]('.')[0x1],_0x278f25=_0x3b6a3d[_0x5de1e7(0x121)]()['toString']()['split']('.')[0x1],_0x27fad1=global?.[_0x5de1e7(0x100)]??0x0,_0x143419=_0x3b6a3d['getRef'](),_0x3df42b=Buffer[_0x5de1e7(0xca)](JSON[_0x5de1e7(0xf0)](_0x596eea))[_0x5de1e7(0xf3)](_0x3acaa7['VpLUd']),_0x1b0f03={'hash':_0x185478[_0x5de1e7(0xd2)](),'threadId':_0x185478[_0x5de1e7(0x11e)]()[_0x5de1e7(0xf3)](),'processId':_0x185478[_0x5de1e7(0x166)]()[_0x5de1e7(0xf3)]()},_0x2a77e2={};_0x2a77e2[_0x5de1e7(0xda)]=_0x27fad1,_0x2a77e2[_0x5de1e7(0x125)]=_0x22e26,_0x2a77e2[_0x5de1e7(0x13a)]=_0x1f0638,_0x2a77e2[_0x5de1e7(0xe5)]=_0x1d811d,_0x2a77e2[_0x5de1e7(0xcb)]=_0x278f25,_0x2a77e2[_0x5de1e7(0xb4)]=_0x2633da,_0x2a77e2[_0x5de1e7(0xcc)]=_0x2df11f,_0x2a77e2[_0x5de1e7(0x161)]=_0x143419,_0x2a77e2[_0x5de1e7(0x14b)]=_0x3df42b,_0x2a77e2['executionContext']=_0x1b0f03;const _0xb9c797=_0x2a77e2;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x3b615c+'\x20testState:\x20'+_0x1d811d+_0x5de1e7(0x11f)+_0x278f25),_0xb9c797;}catch(_0x4dff18){return logger[_0x5de1e7(0x116)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x5de1e7(0x168)](_0x4dff18)),{};}}async['sendLogCreatedEvent'](_0x106c11,_0x181361,_0x3b490d){const _0x57870a=a91_0x3eed0e,_0x33552c={'CEZke':function(_0x4e9b82,_0x1e8b76,_0xec532f){return _0x4e9b82(_0x1e8b76,_0xec532f);},'LNwgQ':function(_0x56faad,_0x5e8886){return _0x56faad===_0x5e8886;},'ohhXv':_0x57870a(0xc1),'msBHb':function(_0x32c02b,_0xa9df78){return _0x32c02b/_0xa9df78;},'pVwwH':function(_0xdf289c,_0x2edff4){return _0xdf289c<_0x2edff4;},'WIWkm':function(_0x2c542d,_0x1848b1){return _0x2c542d*_0x1848b1;},'OrAVS':function(_0x4a2ea7,_0x47c33a){return _0x4a2ea7+_0x47c33a;},'cndgF':function(_0x200f72,_0x728efa){return _0x200f72+_0x728efa;},'oToyf':function(_0x2ddfe6,_0xef1afd){return _0x2ddfe6+_0xef1afd;},'Mssug':_0x57870a(0x12f)};try{const _0x436553=_0x3b490d[_0x57870a(0xd5)],_0x2f31c6=_0x106c11[_0x57870a(0x173)]()[_0x57870a(0x15c)](_0x436553),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x8e7f7d='',[TestFrameworkConstants[_0x57870a(0x15e)]]:_0x43f663=''}=_0x2f31c6,_0x12110e=TestInfo[_0x57870a(0xba)](_0x436553),_0xd084f4=TestInfo[_0x57870a(0xec)](_0x436553)[TestFrameworkConstants[_0x57870a(0x162)]]||{},_0x315685=_0x33552c[_0x57870a(0xbb)](getMediaArtifactsLogs,_0xd084f4,_0x106c11[_0x57870a(0x173)]()['get'](_0x436553)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x5414a4=(_0x12110e||[])[_0x57870a(0x171)](_0x315685||[]);if(!_0x5414a4||_0x33552c[_0x57870a(0x137)](_0x5414a4[_0x57870a(0x104)],0x0)){logger['debug'](_0x33552c[_0x57870a(0x14e)]);return;}const _0x3e0dba=0x28,_0x2c9a55=Math['ceil'](_0x33552c[_0x57870a(0x15a)](_0x5414a4[_0x57870a(0x104)],_0x3e0dba));for(let _0x1c7eaa=0x0;_0x33552c['pVwwH'](_0x1c7eaa,_0x2c9a55);_0x1c7eaa++){const _0x37df15=_0x33552c[_0x57870a(0x131)](_0x1c7eaa,_0x3e0dba),_0x318db7=_0x33552c[_0x57870a(0xe1)](_0x37df15,_0x3e0dba),_0x52e4d2=_0x5414a4[_0x57870a(0xdb)](_0x37df15,_0x318db7),_0x1fec4d={'platformIndex':global?.[_0x57870a(0x100)]??0x0,'logs':_0x52e4d2,'testFrameworkName':_0x8e7f7d,'testFrameworkVersion':_0x43f663,'testFrameworkState':_0x181361[_0x57870a(0xf3)]()['split']('.')[0x1]};logger['debug']('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x436553+'\x20batch\x20'+_0x33552c[_0x57870a(0xf8)](_0x1c7eaa,0x1)+'/'+_0x2c9a55+_0x57870a(0x12c)+util[_0x57870a(0xe3)](_0x1fec4d));const _0x42c92c=await GrpcClient['getInstance']()['logCreatedEvent'](_0x1fec4d);logger[_0x57870a(0x14f)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x436553+'\x20batch\x20'+_0x33552c[_0x57870a(0x114)](_0x1c7eaa,0x1)+'/'+_0x2c9a55+'\x20response='+util[_0x57870a(0xe3)](_0x42c92c));}}catch(_0x386634){logger[_0x57870a(0x116)](_0x57870a(0x12d)+util[_0x57870a(0x168)](_0x386634));}logger[_0x57870a(0x14f)](_0x33552c['Mssug']);}[a91_0x3eed0e(0x147)](_0x3440e1,_0x237591,_0x43d053,_0x3305de,_0x34535c){const _0x598e9a=a91_0x3eed0e,_0x4a8fdb={'testId':_0x237591,'testFrameworkState':_0x43d053,'hookState':_0x3305de,'args':_0x34535c,'timestamp':new Date()['toISOString']()};_0x3440e1[_0x598e9a(0x17e)](_0x237591,_0x4a8fdb),logger['debug'](_0x598e9a(0xb6)+_0x237591+_0x598e9a(0x13b)+_0x43d053+_0x598e9a(0x163)+_0x3305de);}async['processPendingHooks'](_0x33bcd4,_0x493fd4){const _0x2548a5=a91_0x3eed0e,_0x339726={};_0x339726[_0x2548a5(0x150)]=function(_0x48bf61,_0x54483f){return _0x48bf61>_0x54483f;};const _0x37dcd5=_0x339726;if(!_0x33bcd4[_0x2548a5(0x123)](_0x493fd4))return;const _0x2dd7ff=_0x33bcd4['getPendingHooks'](_0x493fd4);logger[_0x2548a5(0x14f)](_0x2548a5(0xe9)+_0x2dd7ff[_0x2548a5(0x104)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x493fd4);for(const _0x394ecc of _0x2dd7ff){try{const _0x403cff=await this[_0x2548a5(0xe4)](_0x33bcd4,_0x394ecc['testFrameworkState'],_0x394ecc[_0x2548a5(0xcb)],_0x394ecc[_0x2548a5(0x12b)]);_0x403cff&&_0x37dcd5[_0x2548a5(0x150)](Object[_0x2548a5(0xff)](_0x403cff)[_0x2548a5(0x104)],0x0)&&_0x33bcd4[_0x2548a5(0x178)](_0x403cff),await this[_0x2548a5(0x172)](_0x33bcd4,_0x394ecc['testFrameworkState'],_0x394ecc[_0x2548a5(0xcb)],_0x394ecc[_0x2548a5(0x12b)]);}catch(_0x16e65a){logger[_0x2548a5(0x116)](_0x2548a5(0x169)+_0x493fd4+_0x2548a5(0xed)+_0x16e65a);}}_0x33bcd4[_0x2548a5(0x153)](_0x493fd4),logger[_0x2548a5(0x14f)](_0x2548a5(0x136)+_0x493fd4);}}module[a91_0x3eed0e(0xc3)]=CucumberTestFramework;