browserstack-node-sdk 1.39.0 → 1.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a44_0x408d(_0x1af0dc,_0x4ef7a1){const _0x32e7ed=a44_0x32e7();return a44_0x408d=function(_0x408d37,_0x4b3309){_0x408d37=_0x408d37-0x97;let _0x151828=_0x32e7ed[_0x408d37];return _0x151828;},a44_0x408d(_0x1af0dc,_0x4ef7a1);}const a44_0x579c99=a44_0x408d;(function(_0x14d9ed,_0x56d191){const _0x5e6769=a44_0x408d,_0x539b9c=_0x14d9ed();while(!![]){try{const _0x535880=-parseInt(_0x5e6769(0xad))/0x1*(-parseInt(_0x5e6769(0x166))/0x2)+parseInt(_0x5e6769(0x151))/0x3+parseInt(_0x5e6769(0x134))/0x4*(-parseInt(_0x5e6769(0x185))/0x5)+parseInt(_0x5e6769(0xb8))/0x6+parseInt(_0x5e6769(0x99))/0x7+parseInt(_0x5e6769(0x12c))/0x8+-parseInt(_0x5e6769(0x159))/0x9;if(_0x535880===_0x56d191)break;else _0x539b9c['push'](_0x539b9c['shift']());}catch(_0x54999c){_0x539b9c['push'](_0x539b9c['shift']());}}}(a44_0x32e7,0xe80a1));const RequestQueueHandler=require(a44_0x579c99(0x17c)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require(a44_0x579c99(0x12e)),{v4:uuidv4}=require(a44_0x579c99(0x11d)),path=require(a44_0x579c99(0x14c)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a44_0x579c99(0x18b)),{getGitMetaData,setLogLevel}=require(a44_0x579c99(0x13c)),TestDetails=require(a44_0x579c99(0x131)),fs=require('fs'),util=require(a44_0x579c99(0xa3)),{o11yClassErrorHandler}=require(a44_0x579c99(0xc6)),PerformanceTester=require(a44_0x579c99(0x135)),{FRAMEWORKS}=require(a44_0x579c99(0xf4)),SessionHandler=require(a44_0x579c99(0x144)),{appendTesthubParams}=require(a44_0x579c99(0xbb)),helper=require(a44_0x579c99(0x13c)),BrowserstackCLI=require(a44_0x579c99(0x122)),TestFrameworkState=require(a44_0x579c99(0xac)),HookState=require(a44_0x579c99(0xdf)),TestInfo=require(a44_0x579c99(0xc3)),{PLAYWRIGHT_TRACE_LOGS}=require(a44_0x579c99(0x19b));function a44_0x32e7(){const _0x43d4d5=['Hapsq','Trace\x20file\x20found\x20for\x20test:\x20','toISOString','rTSew','size','cwd','TEST_ATTACHMENT','HHnoz','ndhdp','result','sendTestRunEvent','PKTJd','../../v2/state/hookState','DTziv','base64','Tzuxm','RGKsK','name','setup','indexOf','shutdown','object','isRunning','_tags','hook_run_uuid','format','hUHWh','performance-report-reporter.json','getTime','jHiOk','YJhBh','uploadEventData','step','../../../helpers/test-observability/constants','pwrob','CzVyQ','startedAt','parent','Test\x20Finished\x20with\x20unique\x20id\x20','EBlyx','Wqhaw','bKXle','push','\x20at\x20','backtrace','expanded','setStepIdentifier','javascript','Before\x20Hooks','utf8','attachments','xcbVM','dKuYf','xlmSm','duration','test_run','options','trace_','UgllJ','BEFORE_ALL','getHierarchy','steps','splice','Expected\x20to\x20fail,\x20but\x20passed.','errors','retry','dmRWi','filter','QPXVi','tyYvn','toString','zvvur','beforeAll\x20hook','getTestUUID','uuid','Test\x20Started\x20with\x20unique\x20id\x20','file','MhtjC','YNVej','../../v2/browserstackCLI','BROWSERSTACK_LOG_LEVEL','MTMVA','cHEra','vCqWl','startTime','jWodn','category','dgXYt','pending','15181200kTooUS','_gitConfigured','./pwUtils','error','ZlwIJ','./test-details','getTestRunIdentifier','rGZyK','2705204cZLGSI','../../../helpers/performance/performance-tester','POST','UuJBl','hook','status','QvVKX','IHQMM','../../../helpers/helper','TEST_SCREENSHOT','onStepEnd','_gitConfigPath','iIiOp','OPACO','SkcXO','_tests','../../../helpers/test-observability/sessionHandler','sendHookRunEvent','needToReportStep','AFTER_EACH','NHzYV','VRIUt','OgVPX','qARWp','path','SYklO','dtXWo','length','yPHWy','5307810YijpSO','env','beforeEach\x20hook','test','qTJBN','RtJPI','tgnNR','TEST','42530409JzNeRz','event_type','pTYAf','NvgCe','onTestEnd','cyrZs','jPEws','1|6|4|5|0|3|2','bRfFn','fuWEO','rxrbs','reverse','piQpK','6scOhYm','startsWith','finishedAt','MyReporter','After\x20Hooks','inBLG','failed','RkvAw','PRE','getHookType','\x20for\x20','endSession','printsToStdio','onEnd','AGPCq','reportLogs','logLevel','ZmGRg','inspect','getTestIdentifier','LsBtP','Error\x20in\x20calculating\x20performance:\x20','../../../helpers/test-observability/requestQueueHandler','meta','DMMcH','SSfUP','BxUPd','.txt','qTSfq','JaGDP','gqPAw','10UuQbkG','vHYDD','VjEDs','CBTSessionCreated','onBegin','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','../../../helpers/test-observability/utils','join','sendSessionDetails','_bs_hookIdentifier','\x20-\x20','expectedStatus','BROWSERSTACK_TEST_RUN_ID','test_run_uuid','getStepsAndLogs','CPlPD','BTMSg','map','getInstance','fedLt','AFTER_ALL','_testHooksMap','../../../../src/bin/utils/constants','passed','afterEach\x20hook','TestRunFinished','afterAll\x20hook','juiLe','statSync','vpiaZ','9403380kQQjVs','MBjlQ','_projectId','getStepIdentifier','ogPxi','LxPAS','EWBVa','btpGq','retry_of','failure_type','util','eviOV','message','LogCreated','bUFgB','hmnkI','WSQyE','getScope','luIbt','../../v2/state/testFrameworkState','457967dmSvrg','trackEvent','lPzcu','QQrLH','HookRunStarted','HookRunFinished','titlePath','logs','INIT_TEST','addTestUIDAndReportLog','depth','3866850OPdYOL','location','failure_reason','../../../helpers/testhub/utils','BROWSERSTACK_O11Y_PERF_MEASUREMENT','JsuXn','hook_run','TnHDK','title','\x20is\x20triggered\x20for\x20test\x20','failure','../../v2/TestInfo','Hook\x20Started\x20with\x20unique\x20id\x20','onStepBegin','../../../helpers/test-observability/error-handler','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','onTestBegin','getCustomRerunParam','getTestFramework','existsSync','START_TIME','relative','.browserstack','TEST_STEP','ecCZU','Sending\x20session\x20details\x20for\x20','configureGit'];a44_0x32e7=function(){return _0x43d4d5;};return a44_0x32e7();}class MyReporter{constructor(_0x597681){const _0x1b2445=a44_0x579c99,_0x35bee7={'JsuXn':_0x1b2445(0x160),'EBlyx':function(_0x2ec1bc,_0x5f5fa7,_0xff3975,_0x2c06c0){return _0x2ec1bc(_0x5f5fa7,_0xff3975,_0x2c06c0);},'PReUR':_0x1b2445(0xee)},_0x26bca6=_0x35bee7[_0x1b2445(0xbd)]['split']('|');let _0x379d7a=0x0;while(!![]){switch(_0x26bca6[_0x379d7a++]){case'0':this[_0x1b2445(0x10b)]=_0x597681;continue;case'1':const _0x3be8d4={};_0x3be8d4[_0x1b2445(0x176)]=process[_0x1b2445(0x152)][_0x1b2445(0x123)],_0x35bee7[_0x1b2445(0xfa)](setLogLevel,_0x3be8d4,new Map(),new Map());continue;case'2':this[_0x1b2445(0x13f)]=null;continue;case'3':this['_gitConfigured']=![];continue;case'4':this[_0x1b2445(0x143)]={};continue;case'5':this[_0x1b2445(0x19a)]={};continue;case'6':process['env'][_0x1b2445(0xbc)]&&(PerformanceTester['startMonitoring'](_0x35bee7['PReUR']),process[_0x1b2445(0x152)][_0x1b2445(0xcc)]=new Date()[_0x1b2445(0xd5)]());continue;}break;}}async[a44_0x579c99(0x189)](){const _0x344351=a44_0x579c99;TestDetails[_0x344351(0xe5)](),await this['configureGit'](),TestInfo[_0x344351(0xe5)]();if(BrowserstackCLI['getInstance']()[_0x344351(0xe9)]()){await BrowserstackCLI[_0x344351(0x197)]()[_0x344351(0xca)]()[_0x344351(0xae)](TestFrameworkState[_0x344351(0xb5)],HookState[_0x344351(0x16e)],{});return;}}async[a44_0x579c99(0xc8)](_0x50532b,_0x453e58){const _0x2fbee6=a44_0x579c99,_0x4fe5f2={'ecCZU':function(_0x4eecf0,_0x4380a9){return _0x4eecf0(_0x4380a9);},'luIbt':'TestRunStarted'};if(BrowserstackCLI[_0x2fbee6(0x197)]()['isRunning']()){const _0x148964={};_0x148964['test']=_0x50532b,_0x148964['result']=_0x453e58,await BrowserstackCLI[_0x2fbee6(0x197)]()[_0x2fbee6(0xca)]()[_0x2fbee6(0xae)](TestFrameworkState[_0x2fbee6(0x158)],HookState[_0x2fbee6(0x16e)],_0x148964);return;}const _0x7d6644=this[_0x2fbee6(0x179)](_0x50532b),_0x5bde88=TestDetails['getTestUUID'](this[_0x2fbee6(0x132)](_0x50532b,_0x453e58[_0x2fbee6(0x114)]));process[_0x2fbee6(0x152)][_0x2fbee6(0x191)]=_0x5bde88;const _0x199f70={};_0x199f70[_0x2fbee6(0x11d)]=_0x5bde88,_0x199f70[_0x2fbee6(0xf7)]=_0x453e58[_0x2fbee6(0x127)],this[_0x2fbee6(0x143)][_0x7d6644]=_0x199f70,_0x4fe5f2[_0x2fbee6(0xd0)](trace,_0x2fbee6(0x11e)+_0x7d6644),await this[_0x2fbee6(0xdd)](_0x50532b,_0x4fe5f2[_0x2fbee6(0xab)],_0x453e58);}async['onStepBegin'](_0x22ca1f,_0x15cb73,_0x5f1eb3){const _0x53c6c4=a44_0x579c99,_0x135111={'dKuYf':function(_0x445d07,_0x58bacd){return _0x445d07(_0x58bacd);},'tNUeP':_0x53c6c4(0xb1)};if(!this[_0x53c6c4(0x146)](_0x5f1eb3,_0x22ca1f))return;if(BrowserstackCLI['getInstance']()[_0x53c6c4(0xe9)]()){const _0x12de9e=this[_0x53c6c4(0x16f)](_0x5f1eb3[_0x53c6c4(0xc0)]),_0x38cf4f=TestFrameworkState[_0x12de9e],_0x2305df={};_0x2305df[_0x53c6c4(0x154)]=_0x22ca1f,_0x2305df[_0x53c6c4(0xdc)]=_0x15cb73,_0x2305df[_0x53c6c4(0xf3)]=_0x5f1eb3,await BrowserstackCLI[_0x53c6c4(0x197)]()[_0x53c6c4(0xca)]()[_0x53c6c4(0xae)](_0x38cf4f,HookState['PRE'],_0x2305df);return;}const _0x571562=this[_0x53c6c4(0x101)](_0x22ca1f,_0x5f1eb3);this['_tests'][_0x571562]={'uuid':TestDetails[_0x53c6c4(0x11c)](_0x571562),'startedAt':_0x5f1eb3[_0x53c6c4(0x127)]['toISOString']()};const _0x53b828=this['getTestRunIdentifier'](_0x22ca1f,_0x15cb73['retry']);!this['_testHooksMap'][_0x53b828]&&(this[_0x53c6c4(0x19a)][_0x53b828]=[]),this['_testHooksMap'][_0x53b828]['push'](this['_tests'][_0x571562][_0x53c6c4(0x11d)]),_0x135111[_0x53c6c4(0x107)](trace,_0x53c6c4(0xc4)+_0x571562+_0x53c6c4(0xc1)+_0x53b828),await this['sendHookRunEvent'](_0x22ca1f,_0x5f1eb3,_0x135111['tNUeP'],_0x15cb73);}async[a44_0x579c99(0x13e)](_0x235bda,_0x566693,_0x460db0){const _0x5910ea=a44_0x579c99,_0x47ae77={'tgnNR':function(_0x3846ea,_0x4a609a){return _0x3846ea+_0x4a609a;},'aDllu':function(_0x49587b,_0x304340){return _0x49587b(_0x304340);},'EWBVa':_0x5910ea(0xb2)};if(!this[_0x5910ea(0x146)](_0x460db0,_0x235bda))return;if(BrowserstackCLI[_0x5910ea(0x197)]()[_0x5910ea(0xe9)]()){const _0x2c1ce0=this[_0x5910ea(0x16f)](_0x460db0[_0x5910ea(0xc0)]),_0x37707e=TestFrameworkState[_0x2c1ce0],_0x6db6={};_0x6db6[_0x5910ea(0x154)]=_0x235bda,_0x6db6['result']=_0x566693,_0x6db6[_0x5910ea(0xf3)]=_0x460db0,await BrowserstackCLI['getInstance']()['getTestFramework']()['trackEvent'](_0x37707e,HookState[_0x5910ea(0x136)],_0x6db6);return;}const _0x59eeed=this[_0x5910ea(0x9c)](_0x235bda,_0x460db0);this[_0x5910ea(0x143)][_0x59eeed]={...this[_0x5910ea(0x143)][_0x59eeed]||{},'finishedAt':new Date(_0x47ae77[_0x5910ea(0x157)](_0x460db0[_0x5910ea(0x127)][_0x5910ea(0xef)](),_0x460db0[_0x5910ea(0x109)]))},_0x47ae77['aDllu'](trace,'Hook\x20Finished\x20with\x20unique\x20id\x20'+_0x59eeed+'\x20is\x20triggered'),await this['sendHookRunEvent'](_0x235bda,_0x460db0,_0x47ae77[_0x5910ea(0x9f)],_0x566693);}async[a44_0x579c99(0x15d)](_0x470e64,_0x2d5abd){const _0xf6f42e=a44_0x579c99,_0x26766e={'Wqhaw':function(_0x1ebe94,_0x225c76){return _0x1ebe94===_0x225c76;},'gBqxM':'screenshot','IHQMM':_0xf6f42e(0x13d),'WSQyE':_0xf6f42e(0xe1),'QQrLH':function(_0x2998c7,_0x393595){return _0x2998c7(_0x393595);},'Hapsq':_0xf6f42e(0x19e),'jPEws':_0xf6f42e(0x18a),'nBasa':function(_0x48f433,_0x3d209f){return _0x48f433(_0x3d209f);},'QvVKX':function(_0x5b0fa8,_0x40ea36,_0xeefda8){return _0x5b0fa8(_0x40ea36,_0xeefda8);},'PKTJd':'Error\x20in\x20sending\x20trace\x20zip:\x20%s','cyrZs':function(_0x99bfdd,_0x488a2a){return _0x99bfdd>_0x488a2a;}};if(BrowserstackCLI[_0xf6f42e(0x197)]()[_0xf6f42e(0xe9)]()){const _0x2eef04={};_0x2eef04[_0xf6f42e(0x154)]=_0x470e64,_0x2eef04[_0xf6f42e(0xdc)]=_0x2d5abd,await BrowserstackCLI[_0xf6f42e(0x197)]()[_0xf6f42e(0xca)]()[_0xf6f42e(0xae)](TestFrameworkState['TEST'],HookState[_0xf6f42e(0x136)],_0x2eef04);return;}const _0x19ac57=this[_0xf6f42e(0x179)](_0x470e64),_0x4a7c38=TestDetails[_0xf6f42e(0x11c)](this['getTestRunIdentifier'](_0x470e64,_0x2d5abd['retry']));this[_0xf6f42e(0x143)][_0x19ac57]={...this['_tests'][_0x19ac57]||{},'finishedAt':new Date()['toISOString']()},_0x26766e['QQrLH'](debug,_0xf6f42e(0xf9)+_0x19ac57);try{await this[_0xf6f42e(0xdd)](_0x470e64,_0x26766e[_0xf6f42e(0xd3)],_0x2d5abd);}catch(_0x18ea0c){_0x26766e[_0xf6f42e(0xb0)](debug,util[_0xf6f42e(0xec)](_0x26766e[_0xf6f42e(0x15f)],_0x18ea0c[_0xf6f42e(0x119)]()));}try{_0x26766e['nBasa'](debug,_0xf6f42e(0xc7)+_0x4a7c38),await _0x26766e[_0xf6f42e(0x13a)](sendTraceZip,_0x2d5abd,_0x4a7c38);}catch(_0x43a3c9){_0x26766e['QQrLH'](debug,util['format'](_0x26766e[_0xf6f42e(0xde)],_0x43a3c9[_0xf6f42e(0x119)]()));}const _0x4bf61b=[];_0x2d5abd[_0xf6f42e(0x105)]&&_0x2d5abd[_0xf6f42e(0x105)][_0xf6f42e(0x196)](_0xea2b62=>{const _0x40bd4e=_0xf6f42e;if(_0x26766e[_0x40bd4e(0xfb)](_0xea2b62[_0x40bd4e(0xe4)],_0x26766e['gBqxM'])){if(!_0xea2b62[_0x40bd4e(0x14c)]||!fs['existsSync'](_0xea2b62[_0x40bd4e(0x14c)]))return;_0x4bf61b[_0x40bd4e(0xfd)]({'test_run_uuid':_0x4a7c38,'timestamp':fs['statSync'](_0xea2b62[_0x40bd4e(0x14c)])['mtime'],'kind':_0x26766e[_0x40bd4e(0x13b)],'message':fs['readFileSync'](_0xea2b62[_0x40bd4e(0x14c)],{'encoding':_0x26766e[_0x40bd4e(0xa9)]})});}}),_0x26766e[_0xf6f42e(0x15e)](_0x4bf61b[_0xf6f42e(0x14f)],0x0)&&await MyReporter[_0xf6f42e(0x175)](_0x4bf61b);}async['endSession'](){const _0x5823d2=a44_0x579c99;await RequestQueueHandler['getInstance']()[_0x5823d2(0xe7)]();}async[a44_0x579c99(0x173)](_0x285d6c){const _0x2a1d80=a44_0x579c99,_0x480301={'YNVej':function(_0x4add33){return _0x4add33();},'cHEra':function(_0x47288c,_0x878b16){return _0x47288c(_0x878b16);}};await this['endSession']();try{process[_0x2a1d80(0x152)][_0x2a1d80(0xbc)]&&await _0x480301[_0x2a1d80(0x121)](calculatePerformance);}catch(_0x55d7e3){_0x480301[_0x2a1d80(0x125)](debug,_0x2a1d80(0x17b)+_0x55d7e3['toString']());}}static async[a44_0x579c99(0xb6)](_0x5159b0,_0x21fecf){const _0x384b4d=a44_0x579c99;_0x21fecf[_0x384b4d(0x192)]=TestDetails[_0x384b4d(0x11c)](_0x5159b0),await this[_0x384b4d(0x175)]([_0x21fecf]);}static async[a44_0x579c99(0x175)](_0x1bbb02){const _0x30e0fc=a44_0x579c99,_0x2d52ca={};_0x2d52ca[_0x30e0fc(0x163)]=_0x30e0fc(0xa6);const _0xb959df=_0x2d52ca;if(BrowserstackCLI[_0x30e0fc(0x197)]()[_0x30e0fc(0xe9)]())return;const _0x80beba={};_0x80beba[_0x30e0fc(0x15a)]=_0xb959df['rxrbs'],_0x80beba[_0x30e0fc(0xb4)]=_0x1bbb02,await SessionHandler[_0x30e0fc(0xf2)](_0x80beba);}async[a44_0x579c99(0x145)](_0x41f26a,_0x432a46,_0x2e086f,_0x151dea){const _0x50f9cc=a44_0x579c99,_0x5e3844={'HHnoz':_0x50f9cc(0x138),'NvgCe':_0x50f9cc(0x102),'eviOV':_0x50f9cc(0x12b),'KfXbk':function(_0x42c4e2,_0x32cba8){return _0x42c4e2>=_0x32cba8;},'VjEDs':function(_0x4c3a92,_0x2cbecf){return _0x4c3a92===_0x2cbecf;},'YJhBh':_0x50f9cc(0xb2),'lPzcu':function(_0x3a14f6,_0x21ec86){return _0x3a14f6>_0x21ec86;},'jWodn':_0x50f9cc(0x16c),'Aycbm':function(_0x2eb884,_0x57eefb){return _0x2eb884(_0x57eefb);},'hmIaZ':function(_0x717f6e,_0x4ac708){return _0x717f6e(_0x4ac708);},'qARWp':function(_0x165606,_0x552b39,_0x54c06b){return _0x165606(_0x552b39,_0x54c06b);},'zjroY':'err','hUHWh':function(_0x4b8d26,_0x54422b){return _0x4b8d26===_0x54422b;},'zvvur':'passed'},_0x54cc41=this[_0x50f9cc(0x9c)](_0x41f26a,_0x432a46),_0x2cbd2a=this[_0x50f9cc(0x143)][_0x54cc41],_0x578ae8={'uuid':_0x2cbd2a['uuid'],'type':_0x5e3844[_0x50f9cc(0xda)],'hook_type':this['getHookType'](_0x432a46[_0x50f9cc(0xc0)]),'name':_0x432a46[_0x50f9cc(0xc0)],'scope':this[_0x50f9cc(0xaa)](_0x432a46),'scopes':this[_0x50f9cc(0x10f)](_0x41f26a),'body':{'lang':_0x5e3844[_0x50f9cc(0x15c)],'code':null},'identifier':_0x54cc41,'file_name':path[_0x50f9cc(0xcd)](process['cwd'](),_0x41f26a[_0x50f9cc(0xb9)][_0x50f9cc(0x11f)]),'location':path[_0x50f9cc(0xcd)](process[_0x50f9cc(0xd8)](),_0x41f26a[_0x50f9cc(0xb9)][_0x50f9cc(0x11f)]),'result':_0x5e3844[_0x50f9cc(0xa4)],'duration_in_ms':_0x5e3844['KfXbk'](_0x432a46['duration'],0x0)?_0x432a46[_0x50f9cc(0x109)]:undefined,'vc_filepath':this[_0x50f9cc(0x13f)]&&_0x41f26a[_0x50f9cc(0xb9)][_0x50f9cc(0x11f)]?path[_0x50f9cc(0xcd)](this[_0x50f9cc(0x13f)],_0x41f26a['location'][_0x50f9cc(0x11f)]):undefined,'started_at':_0x2cbd2a[_0x50f9cc(0xf7)],'finished_at':_0x2cbd2a['finishedAt'],'framework':FRAMEWORKS['PLAYWRIGHT']};if(_0x5e3844[_0x50f9cc(0x187)](_0x2e086f,_0x5e3844[_0x50f9cc(0xf1)])){const {steps:_0x391b7f,logs:_0x16883a}=this[_0x50f9cc(0x193)](_0x432a46['steps'],_0x2cbd2a[_0x50f9cc(0x11d)],_0x5e3844['HHnoz']);_0x16883a&&_0x5e3844[_0x50f9cc(0xaf)](_0x16883a[_0x50f9cc(0x14f)],0x0)&&await MyReporter[_0x50f9cc(0x175)](_0x16883a);const _0x2c7b20={};_0x2c7b20['steps']=_0x391b7f,_0x578ae8[_0x50f9cc(0x17d)]=_0x2c7b20;if(_0x432a46[_0x50f9cc(0x12f)]){_0x578ae8[_0x50f9cc(0xdc)]=_0x5e3844[_0x50f9cc(0x128)],_0x578ae8[_0x50f9cc(0xba)]=_0x5e3844['Aycbm'](removeAnsiColors,_0x432a46[_0x50f9cc(0x12f)][_0x50f9cc(0xa5)]),_0x578ae8[_0x50f9cc(0xa2)]=_0x5e3844['hmIaZ'](getFailureType,_0x432a46[_0x50f9cc(0x12f)][_0x50f9cc(0xa5)]);const _0x1659c5=_0x5e3844[_0x50f9cc(0x14b)](failureData,_0x432a46['error'],_0x5e3844['zjroY']);if(_0x1659c5&&_0x5e3844[_0x50f9cc(0xed)](_0x1659c5[_0x50f9cc(0x14f)],0x0)){const _0x2bdda6={};_0x2bdda6[_0x50f9cc(0xff)]=[_0x578ae8[_0x50f9cc(0xba)]],_0x2bdda6[_0x50f9cc(0x100)]=[],_0x1659c5['push'](_0x2bdda6);}_0x578ae8[_0x50f9cc(0xc2)]=_0x1659c5;}else _0x578ae8[_0x50f9cc(0xdc)]=_0x5e3844[_0x50f9cc(0x11a)];}const _0x42396b={};_0x42396b[_0x50f9cc(0x15a)]=_0x2e086f,_0x42396b[_0x50f9cc(0xbe)]=_0x578ae8;const _0x4a1c40=_0x42396b;await SessionHandler[_0x50f9cc(0xf2)](_0x4a1c40);}[a44_0x579c99(0x193)](_0x13206a,_0x156175,_0x4c2d2e){const _0x5664c7=a44_0x579c99,_0x37392c={'piQpK':function(_0x382624,_0x4926d4){return _0x382624===_0x4926d4;},'MBjlQ':_0x5664c7(0x138),'OgVPX':function(_0x13936b,_0x1146cc){return _0x13936b===_0x1146cc;},'LxPAS':_0x5664c7(0x16a),'pTYAf':_0x5664c7(0x103),'SYklO':_0x5664c7(0x154),'CzVyQ':'test_run_uuid','inBLG':_0x5664c7(0xeb),'DTziv':_0x5664c7(0xcf),'OPACO':_0x5664c7(0x16c),'SkcXO':_0x5664c7(0x19c),'UgllJ':function(_0x1291b7,_0x528e75){return _0x1291b7(_0x528e75);},'oZjLM':function(_0x1a96c9,_0x399e4b){return _0x1a96c9(_0x399e4b);},'iIiOp':function(_0x3e17eb){return _0x3e17eb();},'TnHDK':function(_0x3d3970,_0x173e8b){return _0x3d3970(_0x173e8b);},'rGZyK':function(_0x351d6e,_0x26a43f){return _0x351d6e(_0x26a43f);},'RkvAw':function(_0x170e9c,_0x20a1e7,_0x1b56bf){return _0x170e9c(_0x20a1e7,_0x1b56bf);},'pwrob':function(_0x28b84b,_0x56fdd9,_0x1d2053){return _0x28b84b(_0x56fdd9,_0x1d2053);}},_0x59f222=[],_0x3cf6da=[],_0x91e0d6=_0x13206a[_0x5664c7(0x116)](_0x38ccc9=>{const _0x437035=_0x5664c7;if(_0x37392c[_0x437035(0x165)](_0x38ccc9[_0x437035(0x129)],_0x37392c[_0x437035(0x9a)])&&(_0x37392c[_0x437035(0x14a)](_0x38ccc9[_0x437035(0xc0)],_0x37392c[_0x437035(0x9e)])||_0x37392c['OgVPX'](_0x38ccc9[_0x437035(0xc0)],_0x37392c[_0x437035(0x15b)])))return![];return!![];}),_0x509f1d=(_0x4d7a32,_0x340d02=![])=>{const _0x3f02fc=_0x5664c7;if(_0x37392c[_0x3f02fc(0x165)](_0x4d7a32[_0x3f02fc(0x110)][_0x3f02fc(0x14f)],0x0)){const _0x25a059=_0x37392c['piQpK'](_0x4c2d2e,_0x37392c[_0x3f02fc(0x14d)])?_0x37392c[_0x3f02fc(0xf6)]:_0x37392c[_0x3f02fc(0x16b)];_0x3cf6da[_0x3f02fc(0xfd)]({'kind':_0x37392c[_0x3f02fc(0xe0)],[_0x25a059]:_0x156175,'message':_0x4d7a32['title'],'timestamp':_0x4d7a32[_0x3f02fc(0x127)][_0x3f02fc(0xd5)](),'level':_0x4d7a32[_0x3f02fc(0x12f)]?_0x37392c[_0x3f02fc(0x141)]:_0x37392c[_0x3f02fc(0x142)],'duration':_0x4d7a32[_0x3f02fc(0x109)],'failure':_0x4d7a32['error']&&_0x4d7a32[_0x3f02fc(0x12f)][_0x3f02fc(0xa5)]&&_0x37392c[_0x3f02fc(0x10d)](removeAnsiColors,_0x4d7a32['error'][_0x3f02fc(0xa5)]),'failure_type':_0x37392c['oZjLM'](getFailureType,_0x4d7a32[_0x3f02fc(0x12f)]&&_0x4d7a32[_0x3f02fc(0x12f)][_0x3f02fc(0xa5)])});}else{!_0x340d02&&_0x59f222[_0x3f02fc(0xfd)]({'id':_0x37392c[_0x3f02fc(0x140)](uuidv4),'text':_0x4d7a32[_0x3f02fc(0xc0)],'keyword':undefined,'started_at':_0x4d7a32['startTime'][_0x3f02fc(0xd5)](),'duration':_0x4d7a32[_0x3f02fc(0x109)],'result':_0x4d7a32['error']?_0x37392c[_0x3f02fc(0x141)]:_0x37392c[_0x3f02fc(0x142)],'failure':_0x4d7a32[_0x3f02fc(0x12f)]&&_0x4d7a32[_0x3f02fc(0x12f)][_0x3f02fc(0xa5)]&&_0x37392c[_0x3f02fc(0xbf)](removeAnsiColors,_0x4d7a32[_0x3f02fc(0x12f)][_0x3f02fc(0xa5)]),'failure_type':_0x37392c[_0x3f02fc(0x133)](getFailureType,_0x4d7a32[_0x3f02fc(0x12f)]&&_0x4d7a32[_0x3f02fc(0x12f)]['message'])});for(const _0x3644e0 of _0x4d7a32[_0x3f02fc(0x110)]){_0x37392c[_0x3f02fc(0x16d)](_0x509f1d,_0x3644e0,!![]);}}};for(const _0x1bf762 of _0x91e0d6){_0x37392c[_0x5664c7(0xf5)](_0x509f1d,_0x1bf762,![]);}const _0x301c21={};return _0x301c21[_0x5664c7(0x110)]=_0x59f222,_0x301c21[_0x5664c7(0xb4)]=_0x3cf6da,_0x301c21;}async[a44_0x579c99(0xdd)](_0x3a4dff,_0x59dff1,_0x5ea53f){const _0x125778=a44_0x579c99,_0x37f3a9={'xlmSm':function(_0x49207c,_0x320657){return _0x49207c(_0x320657);},'Hbshn':_0x125778(0xd9),'tyYvn':_0x125778(0x154),'cYhUg':_0x125778(0x102),'vHYDD':_0x125778(0x12b),'ePzfU':function(_0x33cf2b,_0x3e6f04){return _0x33cf2b(_0x3e6f04);},'ZmGRg':function(_0xda77b6,_0x12686a,_0xd62d36,_0x352466,_0x5d55f2){return _0xda77b6(_0x12686a,_0xd62d36,_0x352466,_0x5d55f2);},'CPlPD':function(_0x1577a6,_0xda48f1){return _0x1577a6>_0xda48f1;},'QPXVi':function(_0x37843c,_0x3796a4){return _0x37843c-_0x3796a4;},'DMMcH':function(_0x3801f6,_0x5641b4){return _0x3801f6===_0x5641b4;},'btpGq':_0x125778(0x19e),'NHzYV':function(_0x69e4d4,_0x2fb12d){return _0x69e4d4===_0x2fb12d;},'jHiOk':'skipped','hmnkI':'passed','dgXYt':function(_0x26fa24,_0x472a51){return _0x26fa24===_0x472a51;},'juiLe':_0x125778(0x16c),'wlnTE':'timedOut','BxUPd':function(_0x28af17,_0x51d940){return _0x28af17===_0x51d940;},'VRIUt':_0x125778(0x112),'zcquA':function(_0x1cc38c,_0x126769){return _0x1cc38c(_0x126769);},'gqPAw':function(_0x2eccff,_0xbe1e95,_0x354d77){return _0x2eccff(_0xbe1e95,_0x354d77);},'dmRWi':function(_0x2aadbe,_0x119c4c){return _0x2aadbe===_0x119c4c;},'khcIw':function(_0x51ced0,_0x3a12f1){return _0x51ced0>_0x3a12f1;},'pzanq':function(_0x45ffa6,_0x7d2e0f,_0xf918fa){return _0x45ffa6(_0x7d2e0f,_0xf918fa);},'sgbex':_0x125778(0x14c),'BTMSg':function(_0x1e2547,_0x3ef761){return _0x1e2547(_0x3ef761);},'KzGmE':_0x125778(0xce),'fFPRt':_0x125778(0x104),'cjRYW':function(_0x5dcfa6,_0x238df9){return _0x5dcfa6!==_0x238df9;}},_0x1949ed=this[_0x125778(0x179)](_0x3a4dff),_0x1fd7f6=this[_0x125778(0xaa)](_0x3a4dff),_0x502972=this[_0x125778(0x143)][_0x1949ed],_0x3e4e62=path[_0x125778(0xcd)](process[_0x125778(0xd8)](),_0x3a4dff[_0x125778(0xb9)][_0x125778(0x11f)]);await this['configureGit']();const _0x2068f5={'uuid':_0x502972['uuid'],'type':_0x37f3a9[_0x125778(0x118)],'name':_0x3a4dff[_0x125778(0xc0)],'body':{'lang':_0x37f3a9['cYhUg'],'code':_0x3a4dff['fn']['toString']()},'scope':_0x1fd7f6,'scopes':this[_0x125778(0x10f)](_0x3a4dff),'identifier':_0x1949ed,'file_name':_0x3e4e62,'location':_0x3e4e62,'result':_0x37f3a9[_0x125778(0x186)],'duration_in_ms':_0x5ea53f&&_0x5ea53f['duration']?_0x5ea53f[_0x125778(0x109)]:null,'vc_filepath':this['_gitConfigPath']&&_0x3a4dff[_0x125778(0xb9)][_0x125778(0x11f)]?path[_0x125778(0xcd)](this['_gitConfigPath'],_0x3a4dff[_0x125778(0xb9)][_0x125778(0x11f)]):undefined,'started_at':_0x502972[_0x125778(0xf7)],'finished_at':_0x502972[_0x125778(0x168)],'framework':FRAMEWORKS['PLAYWRIGHT'],'customRerunParam':{'rerun_name':this[_0x125778(0xc9)](_0x3a4dff)},'tags':_0x37f3a9['ePzfU'](getTestTags,_0x3a4dff)};_0x37f3a9[_0x125778(0x177)](appendTesthubParams,_0x2068f5,_0x59dff1,_0x3a4dff,FRAMEWORKS['PLAYWRIGHT']);_0x5ea53f&&_0x37f3a9[_0x125778(0x194)](_0x5ea53f[_0x125778(0x114)],0x0)&&(_0x2068f5[_0x125778(0xa1)]=TestDetails[_0x125778(0x11c)](this[_0x125778(0x132)](_0x3a4dff,_0x37f3a9[_0x125778(0x117)](_0x5ea53f[_0x125778(0x114)],0x1))));if(_0x37f3a9[_0x125778(0x17e)](_0x59dff1,_0x37f3a9[_0x125778(0xa0)])){_0x2068f5[_0x125778(0xdc)]=_0x5ea53f[_0x125778(0x139)];if(_0x37f3a9['DMMcH'](_0x5ea53f[_0x125778(0x139)],_0x3a4dff[_0x125778(0x190)]))_0x2068f5[_0x125778(0xdc)]=_0x37f3a9[_0x125778(0x148)](_0x5ea53f[_0x125778(0x139)],_0x37f3a9[_0x125778(0xf0)])?_0x37f3a9['jHiOk']:_0x37f3a9[_0x125778(0xa8)];else{(_0x37f3a9[_0x125778(0x17e)](_0x2068f5[_0x125778(0xdc)],_0x37f3a9[_0x125778(0xa8)])||_0x37f3a9[_0x125778(0x12a)](_0x2068f5[_0x125778(0xdc)],_0x37f3a9[_0x125778(0x1a0)])||_0x37f3a9[_0x125778(0x12a)](_0x2068f5['result'],_0x37f3a9['wlnTE']))&&(_0x2068f5[_0x125778(0xdc)]=_0x37f3a9['juiLe']);if(_0x37f3a9[_0x125778(0x180)](_0x5ea53f['status'],_0x37f3a9[_0x125778(0xa8)])&&_0x37f3a9['NHzYV'](_0x3a4dff['expectedStatus'],_0x37f3a9[_0x125778(0x1a0)])){const _0x5cf431={};_0x5cf431[_0x125778(0xa5)]=_0x37f3a9[_0x125778(0x149)],_0x5cf431['stack']=_0x37f3a9[_0x125778(0x149)],_0x5ea53f['error']=_0x5cf431,_0x5ea53f['errors']=[_0x5ea53f[_0x125778(0x12f)]];}}const _0x4e86a6=this['getTestRunIdentifier'](_0x3a4dff,_0x5ea53f[_0x125778(0x114)]);_0x2068f5['hooks']=this[_0x125778(0x19a)][_0x4e86a6];const {steps:_0x2de57e,logs:_0xddeff1}=this[_0x125778(0x193)](_0x5ea53f[_0x125778(0x110)],_0x502972[_0x125778(0x11d)],_0x37f3a9[_0x125778(0x118)]);await MyReporter[_0x125778(0x175)](_0xddeff1);const _0x38307d={};_0x38307d[_0x125778(0x110)]=_0x2de57e,_0x2068f5[_0x125778(0x17d)]=_0x38307d;if(_0x5ea53f[_0x125778(0x12f)]){_0x2068f5[_0x125778(0xba)]=_0x37f3a9[_0x125778(0x108)](removeAnsiColors,_0x5ea53f[_0x125778(0x12f)][_0x125778(0xa5)]),_0x2068f5[_0x125778(0xa2)]=_0x37f3a9['zcquA'](getFailureType,_0x5ea53f['error'][_0x125778(0xa5)]);const _0x41cbf8={};_0x41cbf8[_0x125778(0x192)]=_0x502972['uuid'];const {failureData:_0xfd23cc,logs:_0x4d3b20}=_0x37f3a9[_0x125778(0x184)](getFailureData,_0x5ea53f[_0x125778(0x113)],_0x41cbf8);if(_0xfd23cc&&_0x37f3a9[_0x125778(0x115)](_0xfd23cc[_0x125778(0x14f)],0x0)){const _0x15ab9b={};_0x15ab9b[_0x125778(0xff)]=[_0x2068f5[_0x125778(0xba)]],_0x15ab9b[_0x125778(0x100)]=[],_0xfd23cc[_0x125778(0xfd)](_0x15ab9b);}_0x2068f5[_0x125778(0xc2)]=_0xfd23cc,_0x4d3b20&&_0x37f3a9['khcIw'](_0x4d3b20[_0x125778(0x14f)],0x0)&&await MyReporter[_0x125778(0x175)](_0x4d3b20);}}let _0x378823=_0x37f3a9['pzanq'](findNestedKey,_0x5ea53f,_0x37f3a9['sgbex']);if(_0x378823&&_0x37f3a9[_0x125778(0x108)](validateFilePath,_0x378823))_0x37f3a9[_0x125778(0x195)](debug,_0x125778(0xd4)+_0x502972['uuid']+_0x125778(0xfe)+_0x378823);else{const _0x3755b5=path[_0x125778(0x18c)](helper['homedir'](),_0x37f3a9['KzGmE']);!fs[_0x125778(0xcb)](_0x3755b5)&&fs['mkdirSync'](_0x3755b5),fs[_0x125778(0xcb)](path[_0x125778(0x18c)](_0x3755b5,_0x125778(0x10c)+_0x502972[_0x125778(0x11d)]+_0x125778(0x181)))&&(_0x378823=fs['readFileSync'](path[_0x125778(0x18c)](_0x3755b5,'trace_'+_0x502972[_0x125778(0x11d)]+_0x125778(0x181)),_0x37f3a9['fFPRt']),_0x37f3a9['zcquA'](debug,_0x125778(0xd4)+_0x502972['uuid']+_0x125778(0xfe)+_0x378823));}const _0x57e904={};_0x57e904['event_type']=_0x59dff1,_0x57e904[_0x125778(0x10a)]=_0x2068f5;const _0x2d5450=_0x57e904;_0x378823&&_0x37f3a9['cjRYW'](_0x378823,'')&&_0x37f3a9[_0x125778(0x148)](_0x59dff1,_0x37f3a9[_0x125778(0xa0)])&&(!_0x2d5450[_0x125778(0xb4)]&&(_0x2d5450[_0x125778(0xb4)]=[]),_0x378823['split']('\x0a')['forEach'](_0x1dd64b=>{const _0x1fede3=_0x125778;_0x1dd64b&&_0x37f3a9['xlmSm'](validateFilePath,_0x1dd64b)&&_0x2d5450[_0x1fede3(0xb4)][_0x1fede3(0xfd)]({'kind':_0x37f3a9['Hbshn'],'timestamp':new Date()[_0x1fede3(0xd5)](),'test_run_uuid':_0x502972[_0x1fede3(0x11d)],'file_name':path['basename'](_0x1dd64b),'file_size':fs[_0x1fede3(0x97)](_0x1dd64b)[_0x1fede3(0xd7)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});})),await SessionHandler[_0x125778(0xf2)](_0x2d5450);}[a44_0x579c99(0xc9)](_0x166d1d){const _0x1892ab=a44_0x579c99,_0x375aa9={};_0x375aa9[_0x1892ab(0x150)]=function(_0x25c620,_0x47d34a){return _0x25c620===_0x47d34a;},_0x375aa9['UuJBl']=function(_0x17fd3e,_0x2fa121){return _0x17fd3e>_0x2fa121;},_0x375aa9[_0x1892ab(0x17a)]=function(_0x4398c3,_0x323ca7){return _0x4398c3+_0x323ca7;},_0x375aa9['bUFgB']=function(_0x30d0b1,_0x4797dc){return _0x30d0b1+_0x4797dc;},_0x375aa9[_0x1892ab(0x14e)]=function(_0x54b1ba,_0x1e6487){return _0x54b1ba+_0x1e6487;};const _0x1fab4d=_0x375aa9,_0x347ec1=_0x166d1d[_0x1892ab(0xb3)]()[_0x1892ab(0x196)](_0x32815b=>{const _0x432ea1=_0x1892ab;if(_0x166d1d['parent']&&_0x1fab4d[_0x432ea1(0x150)](_0x32815b,_0x166d1d[_0x432ea1(0xf8)][_0x432ea1(0xc0)])&&_0x166d1d['parent'][_0x432ea1(0xea)]&&_0x1fab4d['UuJBl'](_0x166d1d[_0x432ea1(0xf8)][_0x432ea1(0xea)][_0x432ea1(0x14f)],0x0))return _0x1fab4d[_0x432ea1(0x17a)](_0x1fab4d[_0x432ea1(0xa7)](_0x32815b,'\x20'),_0x166d1d[_0x432ea1(0xf8)][_0x432ea1(0xea)][_0x432ea1(0x18c)]('\x20'));if(_0x1fab4d[_0x432ea1(0x150)](_0x32815b,_0x166d1d[_0x432ea1(0xc0)])&&_0x166d1d[_0x432ea1(0xea)]&&_0x1fab4d[_0x432ea1(0x137)](_0x166d1d[_0x432ea1(0xea)]['length'],0x0))return _0x1fab4d[_0x432ea1(0x14e)](_0x1fab4d[_0x432ea1(0xa7)](_0x32815b,'\x20'),_0x166d1d[_0x432ea1(0xea)][_0x432ea1(0x18c)]('\x20'));return _0x32815b;})['join']('\x20');return _0x347ec1;}static async[a44_0x579c99(0x18d)](_0x5ed791,_0xac51bb){const _0xf6dc52=a44_0x579c99,_0x387222={'MTMVA':function(_0x2878c9,_0x4fc8ca){return _0x2878c9(_0x4fc8ca);},'bRfFn':_0xf6dc52(0x188)},_0x14ef6b={'uuid':TestDetails[_0xf6dc52(0x11c)](_0x5ed791),'integrations':_0xac51bb},_0xb25379={};_0xb25379[_0xf6dc52(0xb7)]=null,_0x387222[_0xf6dc52(0x124)](debug,_0xf6dc52(0xd1)+_0x5ed791+',\x20'+util[_0xf6dc52(0x178)](_0xac51bb,_0xb25379));const _0x5002fa={};_0x5002fa[_0xf6dc52(0x15a)]=_0x387222[_0xf6dc52(0x161)],_0x5002fa[_0xf6dc52(0x10a)]=_0x14ef6b,await SessionHandler[_0xf6dc52(0xf2)](_0x5002fa);}async[a44_0x579c99(0xd2)](){const _0x4159ac=a44_0x579c99,_0x1f6cb5={'GYlEw':function(_0x5e52d5){return _0x5e52d5();}};if(this['_gitConfigured'])return;const _0x5cbdf0=await _0x1f6cb5['GYlEw'](getGitMetaData);_0x5cbdf0&&(this[_0x4159ac(0x13f)]=_0x5cbdf0['root']),this[_0x4159ac(0x12d)]=!![];}['getHierarchy'](_0x48e70e){const _0x55cfe5=a44_0x579c99,_0x3fb2bd={};_0x3fb2bd[_0x55cfe5(0x98)]=function(_0x55beba,_0x4751b3){return _0x55beba!==_0x4751b3;};const _0x27782d=_0x3fb2bd,_0x101ff3=[];if(_0x48e70e&&_0x48e70e[_0x55cfe5(0xf8)]){let _0x39ab83=_0x48e70e[_0x55cfe5(0xf8)];while(_0x39ab83&&_0x27782d[_0x55cfe5(0x98)](_0x39ab83[_0x55cfe5(0xc0)],'')){_0x101ff3['push'](_0x39ab83[_0x55cfe5(0xc0)]),_0x39ab83=_0x39ab83[_0x55cfe5(0xf8)];}}return _0x101ff3[_0x55cfe5(0x164)]()[_0x55cfe5(0x111)](0x0,0x2),_0x101ff3;}[a44_0x579c99(0x146)](_0x3b4c4b){const _0x36d47d=a44_0x579c99,_0x47297d={};_0x47297d['SSfUP']=function(_0x5a1777,_0x2d05c7){return _0x5a1777!==_0x2d05c7;},_0x47297d[_0x36d47d(0xe2)]='hook',_0x47297d[_0x36d47d(0xd6)]=function(_0x4166bc,_0x235ee9){return _0x4166bc===_0x235ee9;},_0x47297d[_0x36d47d(0x126)]=_0x36d47d(0x153),_0x47297d[_0x36d47d(0x174)]=_0x36d47d(0x11b),_0x47297d['cNNEV']=_0x36d47d(0x19f),_0x47297d[_0x36d47d(0x9d)]='afterEach\x20hook';const _0x4781ec=_0x47297d;if(_0x4781ec[_0x36d47d(0x17f)](_0x3b4c4b[_0x36d47d(0x129)],_0x4781ec[_0x36d47d(0xe2)]))return![];if(_0x4781ec[_0x36d47d(0xd6)]([_0x4781ec[_0x36d47d(0x126)],_0x4781ec[_0x36d47d(0x174)],_0x4781ec['cNNEV'],_0x4781ec[_0x36d47d(0x9d)]][_0x36d47d(0xe6)](_0x3b4c4b[_0x36d47d(0xc0)]),-0x1))return![];return!![];}[a44_0x579c99(0x9c)](_0x54b99d,_0x59401c){const _0x129890=a44_0x579c99,_0x68b14=_0x59401c['_bs_hookIdentifier'];if(_0x68b14)return _0x68b14;return _0x59401c[_0x129890(0xc0)]+_0x129890(0x170)+this[_0x129890(0x179)](_0x54b99d);}['setStepIdentifier'](_0x567bb2,_0x34a588){const _0x3fae8a=a44_0x579c99,_0x13e2aa={'fedLt':function(_0x44ce36){return _0x44ce36();}};let _0x58fecf=_0x34a588[_0x3fae8a(0xc0)]+_0x3fae8a(0x170)+this['getTestIdentifier'](_0x567bb2);return this['_tests'][_0x58fecf]&&(_0x58fecf=_0x58fecf+_0x3fae8a(0x18f)+_0x13e2aa[_0x3fae8a(0x198)](uuidv4)),_0x34a588[_0x3fae8a(0x18e)]=_0x58fecf,_0x58fecf;}[a44_0x579c99(0x179)]=_0x3c62ed=>{const _0x4c4966=a44_0x579c99,_0x1c8fa0={};_0x1c8fa0[_0x4c4966(0x182)]=function(_0xb27617,_0x5f143d){return _0xb27617+_0x5f143d;};const _0x54041f=_0x1c8fa0;return _0x54041f[_0x4c4966(0x182)](_0x54041f['qTSfq'](_0x3c62ed[_0x4c4966(0x9b)],'-'),_0x3c62ed['id']);};['getTestRunIdentifier']=(_0x2e3c68,_0x20ca4c)=>{const _0x2af5cf=a44_0x579c99,_0x34c50f={};_0x34c50f['RtJPI']=function(_0x53bd63,_0x1dfa5c){return _0x53bd63+_0x1dfa5c;};const _0x5d5120=_0x34c50f;return _0x5d5120[_0x2af5cf(0x156)](_0x5d5120[_0x2af5cf(0x156)](this['getTestIdentifier'](_0x2e3c68),'-'),_0x20ca4c);};['getHookType']=_0x1608f7=>{const _0x282336=a44_0x579c99,_0x353201={};_0x353201[_0x282336(0x120)]='beforeEach\x20hook',_0x353201['fuWEO']='BEFORE_EACH',_0x353201[_0x282336(0xe3)]=_0x282336(0x11b),_0x353201[_0x282336(0xdb)]=_0x282336(0x10e),_0x353201[_0x282336(0x130)]=_0x282336(0x19d),_0x353201['XEAGh']=_0x282336(0x147),_0x353201['bKXle']='afterAll\x20hook',_0x353201['bgQSo']=_0x282336(0x199),_0x353201['qTJBN']='unknown';const _0x25ef95=_0x353201;if(_0x1608f7[_0x282336(0x167)](_0x25ef95[_0x282336(0x120)]))return _0x25ef95[_0x282336(0x162)];else{if(_0x1608f7['startsWith'](_0x25ef95[_0x282336(0xe3)]))return _0x25ef95[_0x282336(0xdb)];else{if(_0x1608f7[_0x282336(0x167)](_0x25ef95['ZlwIJ']))return _0x25ef95['XEAGh'];else{if(_0x1608f7[_0x282336(0x167)](_0x25ef95[_0x282336(0xfc)]))return _0x25ef95['bgQSo'];}}}return _0x25ef95[_0x282336(0x155)];};[a44_0x579c99(0xaa)]=_0x3b6f52=>{const _0x19613e=a44_0x579c99,_0x4b4220={};_0x4b4220[_0x19613e(0x106)]=function(_0xd4c71d,_0x130ef8){return _0xd4c71d===_0x130ef8;},_0x4b4220['JaGDP']=_0x19613e(0xe8);const _0x33334e=_0x4b4220;let _0x1fa2ec=_0x3b6f52['parent'];return _0x33334e['xcbVM'](typeof _0x3b6f52[_0x19613e(0xf8)],_0x33334e[_0x19613e(0x183)])&&(_0x1fa2ec=_0x1fa2ec[_0x19613e(0xc0)]),_0x1fa2ec+_0x19613e(0x18f)+_0x3b6f52['title'];};[a44_0x579c99(0x172)](){return![];}}module['exports']=o11yClassErrorHandler(MyReporter,[a44_0x579c99(0x189),a44_0x579c99(0x171),a44_0x579c99(0xc8),'onTestEnd',a44_0x579c99(0xc5),'onStepEnd',a44_0x579c99(0x18d)],a44_0x579c99(0x169));
1
+ const a44_0x233aeb=a44_0xc12f;(function(_0x3926d3,_0x2897ce){const _0x28f8c4=a44_0xc12f,_0x54415d=_0x3926d3();while(!![]){try{const _0x161cb3=parseInt(_0x28f8c4(0x231))/0x1*(parseInt(_0x28f8c4(0x239))/0x2)+parseInt(_0x28f8c4(0x1fd))/0x3+parseInt(_0x28f8c4(0x27b))/0x4*(-parseInt(_0x28f8c4(0x1d5))/0x5)+parseInt(_0x28f8c4(0x254))/0x6+parseInt(_0x28f8c4(0x29e))/0x7+-parseInt(_0x28f8c4(0x1d3))/0x8*(-parseInt(_0x28f8c4(0x1f7))/0x9)+parseInt(_0x28f8c4(0x265))/0xa*(-parseInt(_0x28f8c4(0x233))/0xb);if(_0x161cb3===_0x2897ce)break;else _0x54415d['push'](_0x54415d['shift']());}catch(_0x2baa30){_0x54415d['push'](_0x54415d['shift']());}}}(a44_0x494e,0xca29f));function a44_0x494e(){const _0x446b20=['\x20is\x20triggered','getTestFramework','LogCreated','meta','IxkAK','attachments','map','err','reportLogs','event_type','HookRunStarted','741095SalDSV','../../v2/state/testFrameworkState','66alRfWg','pVhYm','_bs_hookIdentifier','NLlHs','NclrJ','kGuhv','4uyKluC','TtPLw','cxZsU','\x20-\x20','stack','push','LflNB','finishedAt','AFTER_ALL','category','logs','../../../../src/bin/utils/constants','LAvRB','AFTER_EACH','mPlko','size','error','ClyFi','TwmNM','expectedStatus','getHookType','xWwQP','failure_reason','performance-report-reporter.json','OiAvS','bhOVk','Msayb','5264424XWcuEI','wDBYq','IgMtF','mklfA','shutdown','getTime','XLQBF','LpTDD','VudJt','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','ZBGlY','SyNPp','../../../helpers/test-observability/error-handler','fJeYP','splice','RqqXl','javascript','4127990wHxPSo','ZbFoS','statSync','CsBwg','hPWvK','beforeAll\x20hook','Eroev','VYskm','XhNGy','pending','iUZtE','timedOut','\x20at\x20','uvroz','TestRunFinished','pIkiU','TEST','_gitConfigPath','pSSIW','DkSBd','TEST_ATTACHMENT','.browserstack','28UEKYmu','uploadEventData','afterAll\x20hook','ibTlA','path','filter','kHnZA','onEnd','NysKw','./pwUtils','gfLUe','pFACt','isRunning','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','6|1|3|0|4|2|5','object','PRE','retry','test','../../v2/TestInfo','onTestEnd','oUlyy','uVOyi','lZwhs','BROWSERSTACK_LOG_LEVEL','TEST_SCREENSHOT','uGjyB','failure_type','sendHookRunEvent','./test-details','qQtGa','join','_testHooksMap','After\x20Hooks','retry_of','5403573unTfUD','Hook\x20Started\x20with\x20unique\x20id\x20','GqOps','reverse','HFAaf','message','startedAt','CBTSessionCreated','ywtUz','../../v2/browserstackCLI','POST','readFileSync','depth','KCWxy','hook_run_uuid','env','hVhGb','homedir','hook_run','onBegin','WZjQJ','format','indexOf','FlOGI','.txt','result','getTestRunIdentifier','getStepsAndLogs','ftFsw','toString','getTestIdentifier','KMLXB','Before\x20Hooks','getCustomRerunParam','trace_','onTestBegin','root','hooks','LMDXN','Hook\x20Finished\x20with\x20unique\x20id\x20','toISOString','BEFORE_EACH','endSession','cwd','DMVpM','lrgEg','INIT_TEST','passed','Test\x20Finished\x20with\x20unique\x20id\x20','XtaIy','name','eaUKc','LuMmv','BROWSERSTACK_O11Y_PERF_MEASUREMENT','StQfB','iuicC','GJKBv','BqQsw','RyUmC','failed','title','duration','1072JmWusF','uvqav','835535dVMICI','base64','split','screenshot','aIfCh','getHierarchy','startMonitoring','parent','startsWith','getTestUUID','SodzX','unknown','GEunA','steps','Error\x20in\x20sending\x20trace\x20zip:\x20%s','hook','PNRjK','HookRunFinished','configureGit','getStepIdentifier','length','startTime','TuCYz','_tests','test_run_uuid','_projectId','sendTestRunEvent','../../../helpers/helper','getInstance','\x20for\x20','beforeEach\x20hook','egvRa','onStepBegin','ZrieW','48474bUjGpy','status','needToReportStep','mFTtl','vEgct','SBsiP','1864047ruQwKb','test_run','sNXvA','CqVHh','bZACz','GfEPf','bKwMq','../../../helpers/testhub/utils','inspect','relative','epDGP','setup','uuid','logLevel','\x20is\x20triggered\x20for\x20test\x20','location','backtrace','getScope','setStepIdentifier','irgPJ','Ryfgk','../../../helpers/test-observability/sessionHandler','expanded','QPjCt','existsSync','failure','trackEvent','errors','mtime','PLAYWRIGHT','afterEach\x20hook','_gitConfigured','_tags','file','MyReporter','step','Trace\x20file\x20found\x20for\x20test:\x20','TestRunStarted','RkrvW','VkDfW','RdMdI'];a44_0x494e=function(){return _0x446b20;};return a44_0x494e();}const RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require(a44_0x233aeb(0x284)),{v4:uuidv4}=require('uuid'),path=require(a44_0x233aeb(0x27f)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require('../../../helpers/test-observability/utils'),{getGitMetaData,setLogLevel}=require('../../../helpers/helper'),TestDetails=require(a44_0x233aeb(0x298)),fs=require('fs'),util=require('util'),{o11yClassErrorHandler}=require(a44_0x233aeb(0x260)),PerformanceTester=require('../../../helpers/performance/performance-tester'),{FRAMEWORKS}=require('../../../helpers/test-observability/constants'),SessionHandler=require(a44_0x233aeb(0x212)),{appendTesthubParams}=require(a44_0x233aeb(0x204)),helper=require(a44_0x233aeb(0x1f0)),BrowserstackCLI=require(a44_0x233aeb(0x2a7)),TestFrameworkState=require(a44_0x233aeb(0x232)),HookState=require('../../v2/state/hookState'),TestInfo=require(a44_0x233aeb(0x28e)),{PLAYWRIGHT_TRACE_LOGS}=require(a44_0x233aeb(0x244));class MyReporter{constructor(_0x242ec8){const _0x417020=a44_0x233aeb,_0x30d44c={'SodzX':_0x417020(0x289),'hPWvK':_0x417020(0x250),'UqhJN':function(_0x531085,_0x1501ba,_0x227dde,_0x4b413b){return _0x531085(_0x1501ba,_0x227dde,_0x4b413b);}},_0x6efd31=_0x30d44c[_0x417020(0x1df)][_0x417020(0x1d7)]('|');let _0x31a47e=0x0;while(!![]){switch(_0x6efd31[_0x31a47e++]){case'0':this['_testHooksMap']={};continue;case'1':process['env'][_0x417020(0x1ca)]&&(PerformanceTester[_0x417020(0x1db)](_0x30d44c[_0x417020(0x269)]),process[_0x417020(0x2ad)]['START_TIME']=new Date()[_0x417020(0x2c6)]());continue;case'2':this[_0x417020(0x21c)]=![];continue;case'3':this[_0x417020(0x1ec)]={};continue;case'4':this['options']=_0x242ec8;continue;case'5':this['_gitConfigPath']=null;continue;case'6':const _0x84f465={};_0x84f465[_0x417020(0x20a)]=process[_0x417020(0x2ad)][_0x417020(0x293)],_0x30d44c['UqhJN'](setLogLevel,_0x84f465,new Map(),new Map());continue;}break;}}async[a44_0x233aeb(0x2b1)](){const _0x36b8f9=a44_0x233aeb;TestDetails[_0x36b8f9(0x208)](),await this['configureGit'](),TestInfo[_0x36b8f9(0x208)]();if(BrowserstackCLI[_0x36b8f9(0x1f1)]()[_0x36b8f9(0x287)]()){await BrowserstackCLI['getInstance']()['getTestFramework']()[_0x36b8f9(0x217)](TestFrameworkState[_0x36b8f9(0x2cc)],HookState[_0x36b8f9(0x28b)],{});return;}}async[a44_0x233aeb(0x2c1)](_0x141b69,_0x108c33){const _0x8dcf16=a44_0x233aeb,_0x2a609d={'KCWxy':function(_0x102b89,_0x45e997){return _0x102b89(_0x45e997);},'aVkYt':_0x8dcf16(0x222)};if(BrowserstackCLI['getInstance']()[_0x8dcf16(0x287)]()){const _0x5adb87={};_0x5adb87[_0x8dcf16(0x28d)]=_0x141b69,_0x5adb87[_0x8dcf16(0x2b7)]=_0x108c33,await BrowserstackCLI[_0x8dcf16(0x1f1)]()[_0x8dcf16(0x227)]()[_0x8dcf16(0x217)](TestFrameworkState[_0x8dcf16(0x275)],HookState[_0x8dcf16(0x28b)],_0x5adb87);return;}const _0x5e3581=this['getTestIdentifier'](_0x141b69),_0x2fa47a=TestDetails[_0x8dcf16(0x1de)](this[_0x8dcf16(0x2b8)](_0x141b69,_0x108c33[_0x8dcf16(0x28c)]));process['env']['BROWSERSTACK_TEST_RUN_ID']=_0x2fa47a;const _0x3ae868={};_0x3ae868[_0x8dcf16(0x209)]=_0x2fa47a,_0x3ae868[_0x8dcf16(0x2a4)]=_0x108c33['startTime'],this[_0x8dcf16(0x1ec)][_0x5e3581]=_0x3ae868,_0x2a609d[_0x8dcf16(0x2ab)](trace,'Test\x20Started\x20with\x20unique\x20id\x20'+_0x5e3581),await this[_0x8dcf16(0x1ef)](_0x141b69,_0x2a609d['aVkYt'],_0x108c33);}async[a44_0x233aeb(0x1f5)](_0x1c3319,_0x2a3f71,_0x44fea4){const _0x11dcd7=a44_0x233aeb,_0x5bd9a0={'ZbFoS':function(_0x511cb3,_0x379554){return _0x511cb3(_0x379554);},'LflNB':_0x11dcd7(0x230)};if(!this['needToReportStep'](_0x44fea4,_0x1c3319))return;if(BrowserstackCLI[_0x11dcd7(0x1f1)]()[_0x11dcd7(0x287)]()){const _0x4a5106=this['getHookType'](_0x44fea4[_0x11dcd7(0x1d1)]),_0x208668=TestFrameworkState[_0x4a5106],_0xef15a6={};_0xef15a6['test']=_0x1c3319,_0xef15a6[_0x11dcd7(0x2b7)]=_0x2a3f71,_0xef15a6[_0x11dcd7(0x220)]=_0x44fea4,await BrowserstackCLI[_0x11dcd7(0x1f1)]()[_0x11dcd7(0x227)]()['trackEvent'](_0x208668,HookState['PRE'],_0xef15a6);return;}const _0x55b813=this[_0x11dcd7(0x20f)](_0x1c3319,_0x44fea4);this['_tests'][_0x55b813]={'uuid':TestDetails[_0x11dcd7(0x1de)](_0x55b813),'startedAt':_0x44fea4[_0x11dcd7(0x1ea)][_0x11dcd7(0x2c6)]()};const _0x3232f5=this[_0x11dcd7(0x2b8)](_0x1c3319,_0x2a3f71[_0x11dcd7(0x28c)]);!this[_0x11dcd7(0x29b)][_0x3232f5]&&(this[_0x11dcd7(0x29b)][_0x3232f5]=[]),this[_0x11dcd7(0x29b)][_0x3232f5][_0x11dcd7(0x23e)](this[_0x11dcd7(0x1ec)][_0x55b813][_0x11dcd7(0x209)]),_0x5bd9a0[_0x11dcd7(0x266)](trace,_0x11dcd7(0x29f)+_0x55b813+_0x11dcd7(0x20b)+_0x3232f5),await this[_0x11dcd7(0x297)](_0x1c3319,_0x44fea4,_0x5bd9a0[_0x11dcd7(0x23f)],_0x2a3f71);}async['onStepEnd'](_0x4dbe6b,_0x85b2bb,_0x2cad39){const _0x577b90=a44_0x233aeb,_0x2c5472={'ZrieW':function(_0x7712b3,_0x157c25){return _0x7712b3+_0x157c25;},'ftFsw':function(_0x4574fc,_0x456e28){return _0x4574fc(_0x456e28);},'VYskm':'HookRunFinished'};if(!this[_0x577b90(0x1f9)](_0x2cad39,_0x4dbe6b))return;if(BrowserstackCLI[_0x577b90(0x1f1)]()[_0x577b90(0x287)]()){const _0x2e6778=this[_0x577b90(0x24d)](_0x2cad39[_0x577b90(0x1d1)]),_0x5b8ace=TestFrameworkState[_0x2e6778],_0x3188da={};_0x3188da['test']=_0x4dbe6b,_0x3188da[_0x577b90(0x2b7)]=_0x85b2bb,_0x3188da['step']=_0x2cad39,await BrowserstackCLI[_0x577b90(0x1f1)]()['getTestFramework']()[_0x577b90(0x217)](_0x5b8ace,HookState[_0x577b90(0x2a8)],_0x3188da);return;}const _0x542a94=this[_0x577b90(0x1e8)](_0x4dbe6b,_0x2cad39);this[_0x577b90(0x1ec)][_0x542a94]={...this[_0x577b90(0x1ec)][_0x542a94]||{},'finishedAt':new Date(_0x2c5472[_0x577b90(0x1f6)](_0x2cad39[_0x577b90(0x1ea)][_0x577b90(0x259)](),_0x2cad39[_0x577b90(0x1d2)]))},_0x2c5472[_0x577b90(0x2ba)](trace,_0x577b90(0x2c5)+_0x542a94+_0x577b90(0x226)),await this[_0x577b90(0x297)](_0x4dbe6b,_0x2cad39,_0x2c5472[_0x577b90(0x26c)],_0x85b2bb);}async[a44_0x233aeb(0x28f)](_0x1b0002,_0x484b18){const _0x3171a2=a44_0x233aeb,_0x1af531={'liBvm':function(_0x152bb1,_0x5a705a){return _0x152bb1===_0x5a705a;},'yTzIy':_0x3171a2(0x1d8),'DkSBd':_0x3171a2(0x294),'bKwHR':_0x3171a2(0x1d6),'pSSIW':function(_0x3be311,_0x31c82b){return _0x3be311(_0x31c82b);},'mgqby':_0x3171a2(0x273),'kGuhv':_0x3171a2(0x25d),'pFACt':function(_0x558840,_0x9211e5){return _0x558840(_0x9211e5);},'gxlGs':function(_0x1c9b97,_0x479868,_0x5e68c6){return _0x1c9b97(_0x479868,_0x5e68c6);},'XhNGy':function(_0x318418,_0x1dde3e){return _0x318418(_0x1dde3e);},'lZwhs':_0x3171a2(0x1e3),'qQtGa':function(_0x2146bf,_0x5b51f6){return _0x2146bf>_0x5b51f6;}};if(BrowserstackCLI[_0x3171a2(0x1f1)]()[_0x3171a2(0x287)]()){const _0x2af702={};_0x2af702[_0x3171a2(0x28d)]=_0x1b0002,_0x2af702['result']=_0x484b18,await BrowserstackCLI['getInstance']()[_0x3171a2(0x227)]()[_0x3171a2(0x217)](TestFrameworkState[_0x3171a2(0x275)],HookState[_0x3171a2(0x2a8)],_0x2af702);return;}const _0x5ac6e7=this['getTestIdentifier'](_0x1b0002),_0x5542f0=TestDetails[_0x3171a2(0x1de)](this[_0x3171a2(0x2b8)](_0x1b0002,_0x484b18[_0x3171a2(0x28c)]));this[_0x3171a2(0x1ec)][_0x5ac6e7]={...this[_0x3171a2(0x1ec)][_0x5ac6e7]||{},'finishedAt':new Date()['toISOString']()},_0x1af531[_0x3171a2(0x277)](debug,_0x3171a2(0x2ce)+_0x5ac6e7);try{await this[_0x3171a2(0x1ef)](_0x1b0002,_0x1af531['mgqby'],_0x484b18);}catch(_0x49d00e){_0x1af531[_0x3171a2(0x277)](debug,util[_0x3171a2(0x2b3)](_0x1af531[_0x3171a2(0x238)],_0x49d00e[_0x3171a2(0x2bb)]()));}try{_0x1af531[_0x3171a2(0x286)](debug,_0x3171a2(0x288)+_0x5542f0),await _0x1af531['gxlGs'](sendTraceZip,_0x484b18,_0x5542f0);}catch(_0x158716){_0x1af531[_0x3171a2(0x26d)](debug,util[_0x3171a2(0x2b3)](_0x1af531[_0x3171a2(0x292)],_0x158716[_0x3171a2(0x2bb)]()));}const _0x316a01=[];_0x484b18[_0x3171a2(0x22b)]&&_0x484b18[_0x3171a2(0x22b)][_0x3171a2(0x22c)](_0x16dc01=>{const _0x19567a=_0x3171a2;if(_0x1af531['liBvm'](_0x16dc01[_0x19567a(0x2d0)],_0x1af531['yTzIy'])){if(!_0x16dc01['path']||!fs[_0x19567a(0x215)](_0x16dc01[_0x19567a(0x27f)]))return;_0x316a01[_0x19567a(0x23e)]({'test_run_uuid':_0x5542f0,'timestamp':fs['statSync'](_0x16dc01[_0x19567a(0x27f)])[_0x19567a(0x219)],'kind':_0x1af531[_0x19567a(0x278)],'message':fs['readFileSync'](_0x16dc01[_0x19567a(0x27f)],{'encoding':_0x1af531['bKwHR']})});}}),_0x1af531[_0x3171a2(0x299)](_0x316a01[_0x3171a2(0x1e9)],0x0)&&await MyReporter['reportLogs'](_0x316a01);}async[a44_0x233aeb(0x2c8)](){const _0x102026=a44_0x233aeb;await RequestQueueHandler[_0x102026(0x1f1)]()[_0x102026(0x258)]();}async[a44_0x233aeb(0x282)](_0x4bc832){const _0x5011c6=a44_0x233aeb,_0x3fcec1={'UhFuG':function(_0x3012b8){return _0x3012b8();},'wmyfJ':function(_0x2fca4b,_0x55e904){return _0x2fca4b(_0x55e904);}};await this[_0x5011c6(0x2c8)]();try{process[_0x5011c6(0x2ad)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&await _0x3fcec1['UhFuG'](calculatePerformance);}catch(_0x2de156){_0x3fcec1['wmyfJ'](debug,'Error\x20in\x20calculating\x20performance:\x20'+_0x2de156['toString']());}}static async['addTestUIDAndReportLog'](_0x2529cc,_0x1db156){const _0x27f9b8=a44_0x233aeb;_0x1db156[_0x27f9b8(0x1ed)]=TestDetails[_0x27f9b8(0x1de)](_0x2529cc),await this[_0x27f9b8(0x22e)]([_0x1db156]);}static async[a44_0x233aeb(0x22e)](_0x2282c4){const _0x20623e=a44_0x233aeb,_0x1e6dc4={};_0x1e6dc4[_0x20623e(0x2b2)]=_0x20623e(0x228);const _0x2ab920=_0x1e6dc4;if(BrowserstackCLI['getInstance']()[_0x20623e(0x287)]())return;const _0x2a8f62={};_0x2a8f62[_0x20623e(0x22f)]=_0x2ab920['WZjQJ'],_0x2a8f62[_0x20623e(0x243)]=_0x2282c4,await SessionHandler[_0x20623e(0x27c)](_0x2a8f62);}async['sendHookRunEvent'](_0x26c130,_0x12b8e9,_0x3f5d57,_0x4c627b){const _0x3f1326=a44_0x233aeb,_0x5a3d62={'NysKw':_0x3f1326(0x1e4),'uVOyi':_0x3f1326(0x264),'LpTDD':_0x3f1326(0x26e),'iuicC':function(_0x3ed0c0,_0x108eae){return _0x3ed0c0>=_0x108eae;},'lrgEg':function(_0x3244ce,_0x1f5308){return _0x3244ce===_0x1f5308;},'VCPKL':_0x3f1326(0x1e6),'bZACz':function(_0x34baec,_0xeea0e8){return _0x34baec>_0xeea0e8;},'jrvAU':_0x3f1326(0x1d0),'LuMmv':function(_0x1956ec,_0x1d4bda){return _0x1956ec(_0x1d4bda);},'QPjCt':function(_0x5cd4be,_0x14b94a){return _0x5cd4be(_0x14b94a);},'Msayb':function(_0x4acdc8,_0x396a7f,_0x348fcc){return _0x4acdc8(_0x396a7f,_0x348fcc);},'GqOps':_0x3f1326(0x22d),'KJhkN':_0x3f1326(0x2cd)},_0x2e0cfd=this['getStepIdentifier'](_0x26c130,_0x12b8e9),_0x3f9471=this[_0x3f1326(0x1ec)][_0x2e0cfd],_0x13a2f9={'uuid':_0x3f9471['uuid'],'type':_0x5a3d62[_0x3f1326(0x283)],'hook_type':this[_0x3f1326(0x24d)](_0x12b8e9[_0x3f1326(0x1d1)]),'name':_0x12b8e9['title'],'scope':this[_0x3f1326(0x20e)](_0x12b8e9),'scopes':this[_0x3f1326(0x1da)](_0x26c130),'body':{'lang':_0x5a3d62[_0x3f1326(0x291)],'code':null},'identifier':_0x2e0cfd,'file_name':path[_0x3f1326(0x206)](process['cwd'](),_0x26c130['location'][_0x3f1326(0x21e)]),'location':path[_0x3f1326(0x206)](process[_0x3f1326(0x2c9)](),_0x26c130[_0x3f1326(0x20c)][_0x3f1326(0x21e)]),'result':_0x5a3d62[_0x3f1326(0x25b)],'duration_in_ms':_0x5a3d62[_0x3f1326(0x1cc)](_0x12b8e9[_0x3f1326(0x1d2)],0x0)?_0x12b8e9[_0x3f1326(0x1d2)]:undefined,'vc_filepath':this[_0x3f1326(0x276)]&&_0x26c130[_0x3f1326(0x20c)]['file']?path[_0x3f1326(0x206)](this[_0x3f1326(0x276)],_0x26c130[_0x3f1326(0x20c)]['file']):undefined,'started_at':_0x3f9471[_0x3f1326(0x2a4)],'finished_at':_0x3f9471[_0x3f1326(0x240)],'framework':FRAMEWORKS[_0x3f1326(0x21a)]};if(_0x5a3d62[_0x3f1326(0x2cb)](_0x3f5d57,_0x5a3d62['VCPKL'])){const {steps:_0x5a8e52,logs:_0x40c3bb}=this[_0x3f1326(0x2b9)](_0x12b8e9[_0x3f1326(0x1e2)],_0x3f9471[_0x3f1326(0x209)],_0x5a3d62[_0x3f1326(0x283)]);_0x40c3bb&&_0x5a3d62[_0x3f1326(0x201)](_0x40c3bb[_0x3f1326(0x1e9)],0x0)&&await MyReporter[_0x3f1326(0x22e)](_0x40c3bb);const _0x1357a1={};_0x1357a1[_0x3f1326(0x1e2)]=_0x5a8e52,_0x13a2f9[_0x3f1326(0x229)]=_0x1357a1;if(_0x12b8e9[_0x3f1326(0x249)]){_0x13a2f9[_0x3f1326(0x2b7)]=_0x5a3d62['jrvAU'],_0x13a2f9[_0x3f1326(0x24f)]=_0x5a3d62[_0x3f1326(0x1c9)](removeAnsiColors,_0x12b8e9[_0x3f1326(0x249)]['message']),_0x13a2f9['failure_type']=_0x5a3d62[_0x3f1326(0x214)](getFailureType,_0x12b8e9['error']['message']);const _0x29a70d=_0x5a3d62[_0x3f1326(0x253)](failureData,_0x12b8e9[_0x3f1326(0x249)],_0x5a3d62[_0x3f1326(0x2a0)]);if(_0x29a70d&&_0x5a3d62[_0x3f1326(0x2cb)](_0x29a70d[_0x3f1326(0x1e9)],0x0)){const _0x564999={};_0x564999[_0x3f1326(0x20d)]=[_0x13a2f9[_0x3f1326(0x24f)]],_0x564999[_0x3f1326(0x213)]=[],_0x29a70d[_0x3f1326(0x23e)](_0x564999);}_0x13a2f9[_0x3f1326(0x216)]=_0x29a70d;}else _0x13a2f9[_0x3f1326(0x2b7)]=_0x5a3d62['KJhkN'];}const _0x47d3c6={};_0x47d3c6[_0x3f1326(0x22f)]=_0x3f5d57,_0x47d3c6[_0x3f1326(0x2b0)]=_0x13a2f9;const _0x1c85dd=_0x47d3c6;await SessionHandler[_0x3f1326(0x27c)](_0x1c85dd);}[a44_0x233aeb(0x2b9)](_0x5596ba,_0xae544d,_0x971cab){const _0x5a10e2=a44_0x233aeb,_0x2d48bb={'hVhGb':function(_0x4a0de4,_0x494c34){return _0x4a0de4===_0x494c34;},'GfEPf':_0x5a10e2(0x1e4),'eaUKc':function(_0x3b5691,_0x438dcd){return _0x3b5691===_0x438dcd;},'zSvve':_0x5a10e2(0x29c),'uGjyB':_0x5a10e2(0x2be),'mFTtl':function(_0x146a87,_0x11cbfb){return _0x146a87===_0x11cbfb;},'aIfCh':_0x5a10e2(0x28d),'RyUmC':'test_run_uuid','NclrJ':_0x5a10e2(0x2ac),'RdMdI':'TEST_STEP','ZBGlY':_0x5a10e2(0x1d0),'IgMtF':'passed','wDBYq':function(_0x2daad7,_0x269163){return _0x2daad7(_0x269163);},'RqqXl':function(_0x327152){return _0x327152();},'XEGPR':function(_0x24fe64,_0xca492d,_0xd5223d){return _0x24fe64(_0xca492d,_0xd5223d);},'bKwMq':function(_0x1196b0,_0x57ee76,_0xb12ba4){return _0x1196b0(_0x57ee76,_0xb12ba4);}},_0x1d2cb0=[],_0x2503e9=[],_0x228289=_0x5596ba[_0x5a10e2(0x280)](_0x22b56f=>{const _0x3a905b=_0x5a10e2;if(_0x2d48bb[_0x3a905b(0x2ae)](_0x22b56f[_0x3a905b(0x242)],_0x2d48bb[_0x3a905b(0x202)])&&(_0x2d48bb[_0x3a905b(0x2d1)](_0x22b56f['title'],_0x2d48bb['zSvve'])||_0x2d48bb['eaUKc'](_0x22b56f[_0x3a905b(0x1d1)],_0x2d48bb[_0x3a905b(0x295)])))return![];return!![];}),_0x475b7f=(_0x16ba01,_0x57beb7=![])=>{const _0x5987ab=_0x5a10e2;if(_0x2d48bb[_0x5987ab(0x2ae)](_0x16ba01[_0x5987ab(0x1e2)]['length'],0x0)){const _0x31475f=_0x2d48bb[_0x5987ab(0x1fa)](_0x971cab,_0x2d48bb[_0x5987ab(0x1d9)])?_0x2d48bb[_0x5987ab(0x1cf)]:_0x2d48bb[_0x5987ab(0x237)];_0x2503e9['push']({'kind':_0x2d48bb[_0x5987ab(0x225)],[_0x31475f]:_0xae544d,'message':_0x16ba01[_0x5987ab(0x1d1)],'timestamp':_0x16ba01[_0x5987ab(0x1ea)][_0x5987ab(0x2c6)](),'level':_0x16ba01[_0x5987ab(0x249)]?_0x2d48bb[_0x5987ab(0x25e)]:_0x2d48bb[_0x5987ab(0x256)],'duration':_0x16ba01['duration'],'failure':_0x16ba01[_0x5987ab(0x249)]&&_0x16ba01[_0x5987ab(0x249)][_0x5987ab(0x2a3)]&&_0x2d48bb['wDBYq'](removeAnsiColors,_0x16ba01[_0x5987ab(0x249)]['message']),'failure_type':_0x2d48bb[_0x5987ab(0x255)](getFailureType,_0x16ba01['error']&&_0x16ba01['error'][_0x5987ab(0x2a3)])});}else{!_0x57beb7&&_0x1d2cb0[_0x5987ab(0x23e)]({'id':_0x2d48bb[_0x5987ab(0x263)](uuidv4),'text':_0x16ba01[_0x5987ab(0x1d1)],'keyword':undefined,'started_at':_0x16ba01[_0x5987ab(0x1ea)][_0x5987ab(0x2c6)](),'duration':_0x16ba01[_0x5987ab(0x1d2)],'result':_0x16ba01[_0x5987ab(0x249)]?_0x2d48bb['ZBGlY']:_0x2d48bb[_0x5987ab(0x256)],'failure':_0x16ba01[_0x5987ab(0x249)]&&_0x16ba01[_0x5987ab(0x249)]['message']&&_0x2d48bb[_0x5987ab(0x255)](removeAnsiColors,_0x16ba01[_0x5987ab(0x249)][_0x5987ab(0x2a3)]),'failure_type':_0x2d48bb[_0x5987ab(0x255)](getFailureType,_0x16ba01[_0x5987ab(0x249)]&&_0x16ba01[_0x5987ab(0x249)]['message'])});for(const _0x1dcaa5 of _0x16ba01[_0x5987ab(0x1e2)]){_0x2d48bb['XEGPR'](_0x475b7f,_0x1dcaa5,!![]);}}};for(const _0xeaf943 of _0x228289){_0x2d48bb[_0x5a10e2(0x203)](_0x475b7f,_0xeaf943,![]);}const _0x3cf7cd={};return _0x3cf7cd[_0x5a10e2(0x1e2)]=_0x1d2cb0,_0x3cf7cd['logs']=_0x2503e9,_0x3cf7cd;}async[a44_0x233aeb(0x1ef)](_0x22a6f1,_0x1495ad,_0xffb330){const _0x10cf62=a44_0x233aeb,_0xcc433f={'CqVHh':function(_0x5fae1f,_0x515539){return _0x5fae1f(_0x515539);},'TuCYz':_0x10cf62(0x279),'IxkAK':_0x10cf62(0x28d),'TYKFx':_0x10cf62(0x264),'cxZsU':'pending','VudJt':function(_0x18a778,_0x3906b0,_0x220c9e,_0x82d14a,_0x59a8ff){return _0x18a778(_0x3906b0,_0x220c9e,_0x82d14a,_0x59a8ff);},'irgPJ':function(_0xf2408d,_0x506a69){return _0xf2408d>_0x506a69;},'uvroz':function(_0x38415f,_0x3e5e38){return _0x38415f-_0x3e5e38;},'kHnZA':function(_0x2294b5,_0x357781){return _0x2294b5===_0x357781;},'sNXvA':_0x10cf62(0x273),'NLlHs':function(_0x431e0b,_0x34b96e){return _0x431e0b===_0x34b96e;},'uvqav':'skipped','LMDXN':_0x10cf62(0x2cd),'mPlko':_0x10cf62(0x1d0),'SBsiP':_0x10cf62(0x270),'HFAaf':'Expected\x20to\x20fail,\x20but\x20passed.','TwmNM':function(_0x57c24c,_0x3ad080){return _0x57c24c(_0x3ad080);},'VkDfW':function(_0x12eeab,_0x2be136,_0x431064){return _0x12eeab(_0x2be136,_0x431064);},'YxFRx':function(_0x3e9344,_0x29c1bd,_0x5354a2){return _0x3e9344(_0x29c1bd,_0x5354a2);},'AuVms':_0x10cf62(0x27f),'epDGP':function(_0x27d99d,_0x504470){return _0x27d99d(_0x504470);},'nYWvd':_0x10cf62(0x27a),'OiAvS':'utf8','LAvRB':function(_0x19618c,_0x173c13){return _0x19618c!==_0x173c13;}},_0x5bb275=this[_0x10cf62(0x2bc)](_0x22a6f1),_0x24dbfe=this[_0x10cf62(0x20e)](_0x22a6f1),_0x15e7de=this[_0x10cf62(0x1ec)][_0x5bb275],_0x2d45fc=path[_0x10cf62(0x206)](process[_0x10cf62(0x2c9)](),_0x22a6f1[_0x10cf62(0x20c)][_0x10cf62(0x21e)]);await this[_0x10cf62(0x1e7)]();const _0x2d1897={'uuid':_0x15e7de[_0x10cf62(0x209)],'type':_0xcc433f['IxkAK'],'name':_0x22a6f1['title'],'body':{'lang':_0xcc433f['TYKFx'],'code':_0x22a6f1['fn'][_0x10cf62(0x2bb)]()},'scope':_0x24dbfe,'scopes':this[_0x10cf62(0x1da)](_0x22a6f1),'identifier':_0x5bb275,'file_name':_0x2d45fc,'location':_0x2d45fc,'result':_0xcc433f[_0x10cf62(0x23b)],'duration_in_ms':_0xffb330&&_0xffb330[_0x10cf62(0x1d2)]?_0xffb330['duration']:null,'vc_filepath':this[_0x10cf62(0x276)]&&_0x22a6f1['location'][_0x10cf62(0x21e)]?path['relative'](this['_gitConfigPath'],_0x22a6f1[_0x10cf62(0x20c)]['file']):undefined,'started_at':_0x15e7de[_0x10cf62(0x2a4)],'finished_at':_0x15e7de[_0x10cf62(0x240)],'framework':FRAMEWORKS['PLAYWRIGHT'],'customRerunParam':{'rerun_name':this[_0x10cf62(0x2bf)](_0x22a6f1)},'tags':_0xcc433f[_0x10cf62(0x200)](getTestTags,_0x22a6f1)};_0xcc433f[_0x10cf62(0x25c)](appendTesthubParams,_0x2d1897,_0x1495ad,_0x22a6f1,FRAMEWORKS['PLAYWRIGHT']);_0xffb330&&_0xcc433f[_0x10cf62(0x210)](_0xffb330[_0x10cf62(0x28c)],0x0)&&(_0x2d1897[_0x10cf62(0x29d)]=TestDetails['getTestUUID'](this[_0x10cf62(0x2b8)](_0x22a6f1,_0xcc433f[_0x10cf62(0x272)](_0xffb330[_0x10cf62(0x28c)],0x1))));if(_0xcc433f[_0x10cf62(0x281)](_0x1495ad,_0xcc433f['sNXvA'])){_0x2d1897[_0x10cf62(0x2b7)]=_0xffb330[_0x10cf62(0x1f8)];if(_0xcc433f[_0x10cf62(0x236)](_0xffb330[_0x10cf62(0x1f8)],_0x22a6f1[_0x10cf62(0x24c)]))_0x2d1897[_0x10cf62(0x2b7)]=_0xcc433f[_0x10cf62(0x236)](_0xffb330['status'],_0xcc433f[_0x10cf62(0x1d4)])?_0xcc433f['uvqav']:_0xcc433f[_0x10cf62(0x2c4)];else{(_0xcc433f[_0x10cf62(0x236)](_0x2d1897[_0x10cf62(0x2b7)],_0xcc433f[_0x10cf62(0x2c4)])||_0xcc433f[_0x10cf62(0x281)](_0x2d1897[_0x10cf62(0x2b7)],_0xcc433f[_0x10cf62(0x247)])||_0xcc433f[_0x10cf62(0x281)](_0x2d1897[_0x10cf62(0x2b7)],_0xcc433f[_0x10cf62(0x1fc)]))&&(_0x2d1897[_0x10cf62(0x2b7)]=_0xcc433f['mPlko']);if(_0xcc433f[_0x10cf62(0x236)](_0xffb330[_0x10cf62(0x1f8)],_0xcc433f[_0x10cf62(0x2c4)])&&_0xcc433f[_0x10cf62(0x236)](_0x22a6f1['expectedStatus'],_0xcc433f[_0x10cf62(0x247)])){const _0x50a3c4={};_0x50a3c4[_0x10cf62(0x2a3)]=_0xcc433f[_0x10cf62(0x2a2)],_0x50a3c4[_0x10cf62(0x23d)]=_0xcc433f[_0x10cf62(0x2a2)],_0xffb330[_0x10cf62(0x249)]=_0x50a3c4,_0xffb330[_0x10cf62(0x218)]=[_0xffb330[_0x10cf62(0x249)]];}}const _0x3138ca=this[_0x10cf62(0x2b8)](_0x22a6f1,_0xffb330[_0x10cf62(0x28c)]);_0x2d1897[_0x10cf62(0x2c3)]=this[_0x10cf62(0x29b)][_0x3138ca];const {steps:_0x27fe09,logs:_0x574f30}=this[_0x10cf62(0x2b9)](_0xffb330[_0x10cf62(0x1e2)],_0x15e7de[_0x10cf62(0x209)],_0xcc433f[_0x10cf62(0x22a)]);await MyReporter[_0x10cf62(0x22e)](_0x574f30);const _0xb2bad7={};_0xb2bad7['steps']=_0x27fe09,_0x2d1897[_0x10cf62(0x229)]=_0xb2bad7;if(_0xffb330['error']){_0x2d1897[_0x10cf62(0x24f)]=_0xcc433f[_0x10cf62(0x200)](removeAnsiColors,_0xffb330[_0x10cf62(0x249)][_0x10cf62(0x2a3)]),_0x2d1897[_0x10cf62(0x296)]=_0xcc433f[_0x10cf62(0x24b)](getFailureType,_0xffb330[_0x10cf62(0x249)][_0x10cf62(0x2a3)]);const _0x16b012={};_0x16b012['test_run_uuid']=_0x15e7de[_0x10cf62(0x209)];const {failureData:_0x2b60e6,logs:_0x46c7a2}=_0xcc433f[_0x10cf62(0x224)](getFailureData,_0xffb330[_0x10cf62(0x218)],_0x16b012);if(_0x2b60e6&&_0xcc433f[_0x10cf62(0x236)](_0x2b60e6[_0x10cf62(0x1e9)],0x0)){const _0x2b65d1={};_0x2b65d1['backtrace']=[_0x2d1897[_0x10cf62(0x24f)]],_0x2b65d1['expanded']=[],_0x2b60e6[_0x10cf62(0x23e)](_0x2b65d1);}_0x2d1897['failure']=_0x2b60e6,_0x46c7a2&&_0xcc433f['irgPJ'](_0x46c7a2[_0x10cf62(0x1e9)],0x0)&&await MyReporter[_0x10cf62(0x22e)](_0x46c7a2);}}let _0x3ab7d6=_0xcc433f['YxFRx'](findNestedKey,_0xffb330,_0xcc433f['AuVms']);if(_0x3ab7d6&&_0xcc433f[_0x10cf62(0x200)](validateFilePath,_0x3ab7d6))_0xcc433f[_0x10cf62(0x207)](debug,_0x10cf62(0x221)+_0x15e7de['uuid']+_0x10cf62(0x271)+_0x3ab7d6);else{const _0x3229b9=path[_0x10cf62(0x29a)](helper[_0x10cf62(0x2af)](),_0xcc433f['nYWvd']);!fs['existsSync'](_0x3229b9)&&fs['mkdirSync'](_0x3229b9),fs[_0x10cf62(0x215)](path[_0x10cf62(0x29a)](_0x3229b9,_0x10cf62(0x2c0)+_0x15e7de[_0x10cf62(0x209)]+_0x10cf62(0x2b6)))&&(_0x3ab7d6=fs[_0x10cf62(0x2a9)](path[_0x10cf62(0x29a)](_0x3229b9,'trace_'+_0x15e7de[_0x10cf62(0x209)]+_0x10cf62(0x2b6)),_0xcc433f[_0x10cf62(0x251)]),_0xcc433f[_0x10cf62(0x200)](debug,'Trace\x20file\x20found\x20for\x20test:\x20'+_0x15e7de[_0x10cf62(0x209)]+_0x10cf62(0x271)+_0x3ab7d6));}const _0x4850ab={};_0x4850ab[_0x10cf62(0x22f)]=_0x1495ad,_0x4850ab[_0x10cf62(0x1fe)]=_0x2d1897;const _0x3091df=_0x4850ab;_0x3ab7d6&&_0xcc433f[_0x10cf62(0x245)](_0x3ab7d6,'')&&_0xcc433f[_0x10cf62(0x236)](_0x1495ad,_0xcc433f[_0x10cf62(0x1ff)])&&(!_0x3091df['logs']&&(_0x3091df['logs']=[]),_0x3ab7d6['split']('\x0a')['forEach'](_0x742833=>{const _0x201cc7=_0x10cf62;_0x742833&&_0xcc433f[_0x201cc7(0x200)](validateFilePath,_0x742833)&&_0x3091df[_0x201cc7(0x243)]['push']({'kind':_0xcc433f[_0x201cc7(0x1eb)],'timestamp':new Date()[_0x201cc7(0x2c6)](),'test_run_uuid':_0x15e7de[_0x201cc7(0x209)],'file_name':path['basename'](_0x742833),'file_size':fs[_0x201cc7(0x267)](_0x742833)[_0x201cc7(0x248)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});})),await SessionHandler[_0x10cf62(0x27c)](_0x3091df);}[a44_0x233aeb(0x2bf)](_0x496880){const _0x650bd1=a44_0x233aeb,_0x1249a1={};_0x1249a1[_0x650bd1(0x1f4)]=function(_0x3c0745,_0x33abd9){return _0x3c0745===_0x33abd9;},_0x1249a1[_0x650bd1(0x1fb)]=function(_0xfe437a,_0x3c29f4){return _0xfe437a>_0x3c29f4;},_0x1249a1[_0x650bd1(0x1cd)]=function(_0x64d5c4,_0x14c345){return _0x64d5c4+_0x14c345;},_0x1249a1['Eroev']=function(_0x10c416,_0x371cdc){return _0x10c416+_0x371cdc;},_0x1249a1[_0x650bd1(0x2ca)]=function(_0x522d3e,_0x1ae29d){return _0x522d3e>_0x1ae29d;},_0x1249a1[_0x650bd1(0x26f)]=function(_0x14cef2,_0x274eb1){return _0x14cef2+_0x274eb1;},_0x1249a1[_0x650bd1(0x2bd)]=function(_0x494e20,_0xe3fed4){return _0x494e20+_0xe3fed4;};const _0x15b9d1=_0x1249a1,_0x4b4789=_0x496880['titlePath']()[_0x650bd1(0x22c)](_0x407030=>{const _0x2f8473=_0x650bd1;if(_0x496880[_0x2f8473(0x1dc)]&&_0x15b9d1['egvRa'](_0x407030,_0x496880[_0x2f8473(0x1dc)][_0x2f8473(0x1d1)])&&_0x496880[_0x2f8473(0x1dc)][_0x2f8473(0x21d)]&&_0x15b9d1[_0x2f8473(0x1fb)](_0x496880[_0x2f8473(0x1dc)][_0x2f8473(0x21d)][_0x2f8473(0x1e9)],0x0))return _0x15b9d1[_0x2f8473(0x1cd)](_0x15b9d1[_0x2f8473(0x26b)](_0x407030,'\x20'),_0x496880[_0x2f8473(0x1dc)][_0x2f8473(0x21d)][_0x2f8473(0x29a)]('\x20'));if(_0x15b9d1[_0x2f8473(0x1f4)](_0x407030,_0x496880[_0x2f8473(0x1d1)])&&_0x496880[_0x2f8473(0x21d)]&&_0x15b9d1[_0x2f8473(0x2ca)](_0x496880[_0x2f8473(0x21d)][_0x2f8473(0x1e9)],0x0))return _0x15b9d1['iUZtE'](_0x15b9d1[_0x2f8473(0x2bd)](_0x407030,'\x20'),_0x496880[_0x2f8473(0x21d)][_0x2f8473(0x29a)]('\x20'));return _0x407030;})['join']('\x20');return _0x4b4789;}static async['sendSessionDetails'](_0x42b2f0,_0x3de62d){const _0xd4bf4=a44_0x233aeb,_0x339197={'CsBwg':function(_0xf104f8,_0x59e258){return _0xf104f8(_0x59e258);},'pVhYm':_0xd4bf4(0x2a5)},_0xe60dd1={'uuid':TestDetails[_0xd4bf4(0x1de)](_0x42b2f0),'integrations':_0x3de62d},_0x3d4b71={};_0x3d4b71[_0xd4bf4(0x2aa)]=null,_0x339197[_0xd4bf4(0x268)](debug,'Sending\x20session\x20details\x20for\x20'+_0x42b2f0+',\x20'+util[_0xd4bf4(0x205)](_0x3de62d,_0x3d4b71));const _0x5c7cee={};_0x5c7cee['event_type']=_0x339197[_0xd4bf4(0x234)],_0x5c7cee[_0xd4bf4(0x1fe)]=_0xe60dd1,await SessionHandler[_0xd4bf4(0x27c)](_0x5c7cee);}async['configureGit'](){const _0x46c72f=a44_0x233aeb,_0x3e5953={'oUlyy':function(_0x22060a){return _0x22060a();}};if(this['_gitConfigured'])return;const _0x12f6f1=await _0x3e5953[_0x46c72f(0x290)](getGitMetaData);_0x12f6f1&&(this[_0x46c72f(0x276)]=_0x12f6f1[_0x46c72f(0x2c2)]),this[_0x46c72f(0x21c)]=!![];}['getHierarchy'](_0x54041c){const _0x21aa43=a44_0x233aeb,_0x7db2ed={};_0x7db2ed[_0x21aa43(0x2a6)]=function(_0x3c8e32,_0x1b3e47){return _0x3c8e32!==_0x1b3e47;};const _0x270af3=_0x7db2ed,_0xd178ca=[];if(_0x54041c&&_0x54041c[_0x21aa43(0x1dc)]){let _0x39a28a=_0x54041c[_0x21aa43(0x1dc)];while(_0x39a28a&&_0x270af3[_0x21aa43(0x2a6)](_0x39a28a['title'],'')){_0xd178ca['push'](_0x39a28a[_0x21aa43(0x1d1)]),_0x39a28a=_0x39a28a[_0x21aa43(0x1dc)];}}return _0xd178ca[_0x21aa43(0x2a1)]()[_0x21aa43(0x262)](0x0,0x2),_0xd178ca;}[a44_0x233aeb(0x1f9)](_0x5970f7){const _0x21d86f=a44_0x233aeb,_0x306b78={};_0x306b78[_0x21d86f(0x261)]=function(_0x88e358,_0x280663){return _0x88e358!==_0x280663;},_0x306b78[_0x21d86f(0x211)]=_0x21d86f(0x1e4),_0x306b78['pIkiU']=function(_0x3e9e80,_0x1590e1){return _0x3e9e80===_0x1590e1;},_0x306b78[_0x21d86f(0x257)]=_0x21d86f(0x1f3),_0x306b78[_0x21d86f(0x2cf)]=_0x21d86f(0x26a),_0x306b78[_0x21d86f(0x1e1)]=_0x21d86f(0x27d),_0x306b78[_0x21d86f(0x24a)]=_0x21d86f(0x21b);const _0xa33be7=_0x306b78;if(_0xa33be7[_0x21d86f(0x261)](_0x5970f7[_0x21d86f(0x242)],_0xa33be7['Ryfgk']))return![];if(_0xa33be7[_0x21d86f(0x274)]([_0xa33be7[_0x21d86f(0x257)],_0xa33be7[_0x21d86f(0x2cf)],_0xa33be7[_0x21d86f(0x1e1)],_0xa33be7['ClyFi']][_0x21d86f(0x2b4)](_0x5970f7['title']),-0x1))return![];return!![];}['getStepIdentifier'](_0xbaf699,_0x3d7e3){const _0x3c369e=a44_0x233aeb,_0x52c7f4=_0x3d7e3[_0x3c369e(0x235)];if(_0x52c7f4)return _0x52c7f4;return _0x3d7e3[_0x3c369e(0x1d1)]+_0x3c369e(0x1f2)+this[_0x3c369e(0x2bc)](_0xbaf699);}['setStepIdentifier'](_0x33f677,_0x35fb6b){const _0x2a8945=a44_0x233aeb,_0x5350ca={'yoWTR':function(_0x2794f9){return _0x2794f9();}};let _0x1fa3e3=_0x35fb6b['title']+_0x2a8945(0x1f2)+this[_0x2a8945(0x2bc)](_0x33f677);return this[_0x2a8945(0x1ec)][_0x1fa3e3]&&(_0x1fa3e3=_0x1fa3e3+_0x2a8945(0x23c)+_0x5350ca['yoWTR'](uuidv4)),_0x35fb6b[_0x2a8945(0x235)]=_0x1fa3e3,_0x1fa3e3;}[a44_0x233aeb(0x2bc)]=_0x4ba26b=>{const _0x4ea9b9=a44_0x233aeb,_0x680d79={};_0x680d79[_0x4ea9b9(0x1ce)]=function(_0x2eb69d,_0x29c613){return _0x2eb69d+_0x29c613;},_0x680d79['MsfYI']=function(_0x401bde,_0x488aee){return _0x401bde+_0x488aee;};const _0x4105da=_0x680d79;return _0x4105da['BqQsw'](_0x4105da['MsfYI'](_0x4ba26b[_0x4ea9b9(0x1ee)],'-'),_0x4ba26b['id']);};[a44_0x233aeb(0x2b8)]=(_0x1c7a08,_0x35ce81)=>{const _0x10e6f8=a44_0x233aeb,_0x53eee7={};_0x53eee7['BuzsM']=function(_0x31e198,_0x2a5590){return _0x31e198+_0x2a5590;},_0x53eee7['RkrvW']=function(_0x3e4d68,_0xf9d720){return _0x3e4d68+_0xf9d720;};const _0x10468c=_0x53eee7;return _0x10468c['BuzsM'](_0x10468c[_0x10e6f8(0x223)](this['getTestIdentifier'](_0x1c7a08),'-'),_0x35ce81);};[a44_0x233aeb(0x24d)]=_0x21d884=>{const _0x9180d5=a44_0x233aeb,_0x31d6ad={};_0x31d6ad[_0x9180d5(0x252)]=_0x9180d5(0x1f3),_0x31d6ad[_0x9180d5(0x25a)]=_0x9180d5(0x2c7),_0x31d6ad[_0x9180d5(0x285)]=_0x9180d5(0x26a),_0x31d6ad[_0x9180d5(0x2b5)]='BEFORE_ALL',_0x31d6ad[_0x9180d5(0x25f)]=_0x9180d5(0x21b),_0x31d6ad[_0x9180d5(0x24e)]=_0x9180d5(0x246),_0x31d6ad[_0x9180d5(0x27e)]=_0x9180d5(0x27d),_0x31d6ad['twnYN']=_0x9180d5(0x241),_0x31d6ad[_0x9180d5(0x1e5)]=_0x9180d5(0x1e0);const _0x975d35=_0x31d6ad;if(_0x21d884[_0x9180d5(0x1dd)](_0x975d35[_0x9180d5(0x252)]))return _0x975d35[_0x9180d5(0x25a)];else{if(_0x21d884[_0x9180d5(0x1dd)](_0x975d35[_0x9180d5(0x285)]))return _0x975d35[_0x9180d5(0x2b5)];else{if(_0x21d884['startsWith'](_0x975d35[_0x9180d5(0x25f)]))return _0x975d35[_0x9180d5(0x24e)];else{if(_0x21d884[_0x9180d5(0x1dd)](_0x975d35[_0x9180d5(0x27e)]))return _0x975d35['twnYN'];}}}return _0x975d35[_0x9180d5(0x1e5)];};['getScope']=_0x530eb4=>{const _0x3f6ac7=a44_0x233aeb,_0x4b39fd={};_0x4b39fd[_0x3f6ac7(0x1cb)]=function(_0x2c9f2d,_0x4ae82a){return _0x2c9f2d===_0x4ae82a;},_0x4b39fd[_0x3f6ac7(0x23a)]=_0x3f6ac7(0x28a);const _0x5549a4=_0x4b39fd;let _0x27b34f=_0x530eb4[_0x3f6ac7(0x1dc)];return _0x5549a4[_0x3f6ac7(0x1cb)](typeof _0x530eb4[_0x3f6ac7(0x1dc)],_0x5549a4[_0x3f6ac7(0x23a)])&&(_0x27b34f=_0x27b34f['title']),_0x27b34f+_0x3f6ac7(0x23c)+_0x530eb4[_0x3f6ac7(0x1d1)];};['printsToStdio'](){return![];}}function a44_0xc12f(_0x5c86f5,_0x412629){const _0x494ed8=a44_0x494e();return a44_0xc12f=function(_0xc12fdf,_0x5e6131){_0xc12fdf=_0xc12fdf-0x1c9;let _0x145792=_0x494ed8[_0xc12fdf];return _0x145792;},a44_0xc12f(_0x5c86f5,_0x412629);}module['exports']=o11yClassErrorHandler(MyReporter,[a44_0x233aeb(0x2b1),'endSession',a44_0x233aeb(0x2c1),a44_0x233aeb(0x28f),a44_0x233aeb(0x1f5),'onStepEnd','sendSessionDetails'],a44_0x233aeb(0x21f));
@@ -1 +1 @@
1
- const a45_0x4302e7=a45_0x5d6c;(function(_0x328fe1,_0x2dfba8){const _0x1df5b6=a45_0x5d6c,_0x1cbf12=_0x328fe1();while(!![]){try{const _0x260ab7=-parseInt(_0x1df5b6(0x1a3))/0x1+parseInt(_0x1df5b6(0x19c))/0x2+parseInt(_0x1df5b6(0x168))/0x3*(-parseInt(_0x1df5b6(0x181))/0x4)+parseInt(_0x1df5b6(0x194))/0x5+parseInt(_0x1df5b6(0x1ac))/0x6+parseInt(_0x1df5b6(0x18a))/0x7*(-parseInt(_0x1df5b6(0x187))/0x8)+parseInt(_0x1df5b6(0x16c))/0x9*(-parseInt(_0x1df5b6(0x1a2))/0xa);if(_0x260ab7===_0x2dfba8)break;else _0x1cbf12['push'](_0x1cbf12['shift']());}catch(_0x27dc3e){_0x1cbf12['push'](_0x1cbf12['shift']());}}}(a45_0x5a6c,0xe2496));function a45_0x5a6c(){const _0x43280a=['AzSPz','readdirSync','15117471CmQEiB','_platformDetails.json','_test','existsSync','uuid','uttfH','default','Error\x20reading\x20trace\x20file\x20paths:\x20%s','vwQFH','QwCtN','project','push','BlhKb','_traceZipPaths.json','CirCV','join','__projectId','env','getStoreDirName','jRpzo','filePath','479072LTxgUM','iSosA','QQmTv','../../../helpers/test-observability/constants','getDirPath','utf8','2698232mlimfu','rmSync','../../../helpers/logger','7glJhhk','testId','BS_TESTOPS_BUILD_HASHED_ID','lHhBr','getStoreDirPath','trace_','abeSe','sZOjZ','BZLSJ','toString','3998445Ujbhnm','pid','path','string','Error\x20handling\x20trace\x20file\x20paths:\x20','error','getTraceZipDir','pbOkU','3438358OJmQVa','forEach','values','fiTVv','LLBoD','uhAII','10KtUGEf','199718guoUle','getProjectIdFromTestInfo','tests','message','shutdown','force','setup','mkdirSync','util','9497172pFQTtq','getFilePath','readFileSync','getTestDetails','some','parse','winstonLogger','retry','exports','appendToTracePaths','setAccessibilityPlatformValidation','SrZOG','appendFileSync','FxsPb','stringify','addTraceFilePath','EOKsv','writeFileSync','recursive','getTestUUID','vckVr','../../../helpers/helper','GnDCh','24sOQNDu','getTestIdFromTestInfo'];a45_0x5a6c=function(){return _0x43280a;};return a45_0x5a6c();}const fs=require('fs'),path=require(a45_0x4302e7(0x196)),{v4:uuidv4}=require(a45_0x4302e7(0x170)),{TEMP_STORE_DIR_NAME}=require(a45_0x4302e7(0x184)),{nestedKeyValue}=require(a45_0x4302e7(0x166)),logger=require('../../../helpers/logger')[a45_0x4302e7(0x1b2)],{getLogDir}=require(a45_0x4302e7(0x189)),util=require(a45_0x4302e7(0x1ab)),helper=require(a45_0x4302e7(0x166));function a45_0x5d6c(_0xf0657b,_0x963f09){const _0x5a6c80=a45_0x5a6c();return a45_0x5d6c=function(_0x5d6c1e,_0x21e743){_0x5d6c1e=_0x5d6c1e-0x158;let _0x298c31=_0x5a6c80[_0x5d6c1e];return _0x298c31;},a45_0x5d6c(_0xf0657b,_0x963f09);}class TestDetails{static [a45_0x4302e7(0x1a5)]={};static[a45_0x4302e7(0x1a9)](){const _0x4b77bd=a45_0x4302e7;this[_0x4b77bd(0x1a7)]();const _0x54c17a={};_0x54c17a[_0x4b77bd(0x163)]=!![],fs[_0x4b77bd(0x1aa)](this[_0x4b77bd(0x185)](),_0x54c17a);const _0x1e5c63={};_0x1e5c63['recursive']=!![],fs['mkdirSync'](this['getTraceZipDir'](),_0x1e5c63);}static['getStoreDirName'](){const _0x55c2a5=a45_0x4302e7,_0x525f4e={};_0x525f4e[_0x55c2a5(0x171)]=function(_0x34c0f4,_0x470a1b){return _0x34c0f4+_0x470a1b;},_0x525f4e[_0x55c2a5(0x182)]=function(_0x14b9e2,_0x231674){return _0x14b9e2+_0x231674;};const _0x4bd393=_0x525f4e;return _0x4bd393[_0x55c2a5(0x171)](_0x4bd393[_0x55c2a5(0x182)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x55c2a5(0x18c)]);}static[a45_0x4302e7(0x18e)](){const _0x49e904=a45_0x4302e7,_0x1c7241={};_0x1c7241[_0x49e904(0x192)]=function(_0x40f888,_0x568455){return _0x40f888+_0x568455;},_0x1c7241[_0x49e904(0x15e)]=_0x49e904(0x172);const _0x42c63d=_0x1c7241;return path['join'](_0x42c63d[_0x49e904(0x192)](_0x42c63d[_0x49e904(0x192)](TEMP_STORE_DIR_NAME,'-'),process[_0x49e904(0x17d)][_0x49e904(0x18c)]||_0x42c63d['FxsPb']));}static[a45_0x4302e7(0x19a)](){const _0x376026=a45_0x4302e7,_0x464bd6={};_0x464bd6[_0x376026(0x18d)]='traceZipPaths';const _0x24e790=_0x464bd6;return path[_0x376026(0x17b)](this[_0x376026(0x18e)](),_0x24e790['lHhBr']);}static['getDirPath'](){const _0x31a88a=a45_0x4302e7;return TestDetails[_0x31a88a(0x17e)]();}static[a45_0x4302e7(0x1ad)](_0x169c94){const _0x1e5f93=a45_0x4302e7,_0x3b22bd={};_0x3b22bd[_0x1e5f93(0x190)]=function(_0x50569a,_0x52d8ca){return _0x50569a+_0x52d8ca;},_0x3b22bd[_0x1e5f93(0x161)]='.json';const _0x3ffdc9=_0x3b22bd;return path['join'](this['getDirPath'](),_0x3ffdc9[_0x1e5f93(0x190)](_0x169c94,_0x3ffdc9['EOKsv']));}static['getTestRunIdFromTestInfo'](_0x5d2911){const _0x4ba907=a45_0x4302e7,_0x2a5f9a={};_0x2a5f9a[_0x4ba907(0x183)]=function(_0x117f09,_0x337eb7){return _0x117f09+_0x337eb7;},_0x2a5f9a['GnDCh']=function(_0x2048c2,_0x208927){return _0x2048c2+_0x208927;};const _0x4dac86=_0x2a5f9a;return _0x4dac86[_0x4ba907(0x183)](_0x4dac86[_0x4ba907(0x167)](_0x4dac86[_0x4ba907(0x183)](_0x4dac86[_0x4ba907(0x167)](this['getProjectIdFromTestInfo'](_0x5d2911),'-'),this['getTestIdFromTestInfo'](_0x5d2911)),'-'),_0x5d2911[_0x4ba907(0x158)]);}static[a45_0x4302e7(0x1a4)](_0x5cad65){const _0x4fd8db=a45_0x4302e7,_0x262cf8={'vwQFH':function(_0x46f336,_0x10be41,_0x5295e0){return _0x46f336(_0x10be41,_0x5295e0);},'pbOkU':_0x4fd8db(0x16e),'tRpnD':'_projectId','BlhKb':_0x4fd8db(0x176),'QwCtN':_0x4fd8db(0x17c)};return _0x262cf8['vwQFH'](nestedKeyValue,_0x5cad65,[_0x262cf8[_0x4fd8db(0x19b)],_0x262cf8['tRpnD']])||_0x262cf8[_0x4fd8db(0x174)](nestedKeyValue,_0x5cad65,[_0x262cf8[_0x4fd8db(0x178)],_0x262cf8[_0x4fd8db(0x175)]]);}static[a45_0x4302e7(0x169)](_0x61430a){const _0x5597aa=a45_0x4302e7,_0x1ef366={'AzSPz':function(_0x2be41b,_0x3627a5,_0x458331){return _0x2be41b(_0x3627a5,_0x458331);},'CirCV':_0x5597aa(0x16e)};return _0x1ef366[_0x5597aa(0x16a)](nestedKeyValue,_0x61430a,[_0x1ef366[_0x5597aa(0x17a)],'id'])||_0x61430a[_0x5597aa(0x18b)];}static[a45_0x4302e7(0x164)](_0x2a3948){const _0x324fc7=a45_0x4302e7,_0x228e19={'uhAII':function(_0x4a6efd,_0x2071cb){return _0x4a6efd===_0x2071cb;},'LLBoD':_0x324fc7(0x197),'xgvNF':function(_0x3dcd7a){return _0x3dcd7a();}};if(this[_0x324fc7(0x1a5)][_0x2a3948]&&_0x228e19[_0x324fc7(0x1a1)](typeof this[_0x324fc7(0x1a5)][_0x2a3948][_0x324fc7(0x170)],_0x228e19[_0x324fc7(0x1a0)]))return this[_0x324fc7(0x1a5)][_0x2a3948]['uuid'];const _0x545ae9=this[_0x324fc7(0x1ad)](_0x2a3948);if(_0x545ae9&&fs['existsSync'](_0x545ae9)){const _0x1cde10=JSON[_0x324fc7(0x1b1)](fs[_0x324fc7(0x1ae)](_0x545ae9)[_0x324fc7(0x193)]());return this[_0x324fc7(0x1a5)][_0x2a3948]=_0x1cde10,this[_0x324fc7(0x1a5)][_0x2a3948][_0x324fc7(0x170)];}return this[_0x324fc7(0x1a5)][_0x2a3948]={'uuid':_0x228e19['xgvNF'](uuidv4)},fs[_0x324fc7(0x162)](_0x545ae9,JSON[_0x324fc7(0x15f)](this[_0x324fc7(0x1a5)][_0x2a3948])),this['tests'][_0x2a3948][_0x324fc7(0x170)];}static['getAccessibilityPlatformValidation'](_0x3c7525){const _0x3bd640=a45_0x4302e7,_0xa45261=path['join'](this[_0x3bd640(0x185)](),_0x3c7525+_0x3bd640(0x16d));if(_0xa45261&&fs['existsSync'](_0xa45261))return fs[_0x3bd640(0x1ae)](_0xa45261)[_0x3bd640(0x193)]();}static[a45_0x4302e7(0x15b)](_0xc6cb80,_0x132bc5){const _0xd8e0bf=a45_0x4302e7,_0x1f8941=path[_0xd8e0bf(0x17b)](this[_0xd8e0bf(0x185)](),_0x132bc5+_0xd8e0bf(0x16d));fs[_0xd8e0bf(0x162)](_0x1f8941,_0xc6cb80[_0xd8e0bf(0x193)]());}static['shutdown'](){const _0x42a9c8=a45_0x4302e7,_0x356491={};_0x356491['recursive']=!![],_0x356491[_0x42a9c8(0x1a8)]=!![],fs[_0x42a9c8(0x188)](this[_0x42a9c8(0x185)](),_0x356491);}static[a45_0x4302e7(0x1af)](_0x3446c0){const _0x29c17a=a45_0x4302e7;if(this['tests'][_0x3446c0])return this[_0x29c17a(0x1a5)][_0x3446c0];const _0x5665df=this[_0x29c17a(0x1ad)](_0x3446c0);if(_0x5665df&&fs[_0x29c17a(0x16f)](_0x5665df)){const _0x13c3c1=JSON['parse'](fs['readFileSync'](_0x5665df)[_0x29c17a(0x193)]());return this[_0x29c17a(0x1a5)][_0x3446c0]=_0x13c3c1,_0x13c3c1;}return{};}static['setTestDetails'](_0x14e404,_0xc4b601){const _0xc7eab=a45_0x4302e7,_0x57411c=this['getFilePath'](_0x14e404);if(_0x57411c&&fs[_0xc7eab(0x16f)](_0x57411c)){const _0x9b6705=JSON[_0xc7eab(0x1b1)](fs['readFileSync'](_0x57411c)[_0xc7eab(0x193)]()),_0x19c70f={..._0x9b6705,..._0xc4b601};this['tests'][_0x14e404]=_0x19c70f;}else this[_0xc7eab(0x1a5)][_0x14e404]=_0xc4b601;fs[_0xc7eab(0x162)](_0x57411c,this[_0xc7eab(0x1a5)][_0x14e404]);}static[a45_0x4302e7(0x160)](_0x1abdcc){const _0x5473b1=a45_0x4302e7,_0x39d953={};_0x39d953['vckVr']=_0x5473b1(0x198);const _0x1d64e2=_0x39d953;try{const _0x42639c=process[_0x5473b1(0x195)],_0x332538=path[_0x5473b1(0x17b)](TestDetails[_0x5473b1(0x19a)](),_0x42639c+_0x5473b1(0x179));let _0x144070=[];_0x332538&&fs[_0x5473b1(0x16f)](_0x332538)&&(_0x144070=JSON[_0x5473b1(0x1b1)](fs[_0x5473b1(0x1ae)](_0x332538)[_0x5473b1(0x193)]())),!_0x144070[_0x5473b1(0x1b0)](_0x585511=>_0x585511[_0x5473b1(0x180)]===_0x1abdcc[_0x5473b1(0x180)])&&(_0x144070[_0x5473b1(0x177)](_0x1abdcc),fs[_0x5473b1(0x162)](_0x332538,JSON[_0x5473b1(0x15f)](_0x144070)));}catch(_0x29b1ef){logger[_0x5473b1(0x199)](_0x1d64e2[_0x5473b1(0x165)],_0x29b1ef);}}static['getTraceFilePaths'](){const _0x54d3db=a45_0x4302e7,_0x208bea={};_0x208bea[_0x54d3db(0x15c)]=_0x54d3db(0x179),_0x208bea[_0x54d3db(0x17f)]=_0x54d3db(0x173);const _0x120a3e=_0x208bea,_0x2ed020=[];try{const _0x14d52c=TestDetails[_0x54d3db(0x19a)]();if(_0x14d52c&&!fs[_0x54d3db(0x16f)](_0x14d52c))return _0x2ed020;const _0x2137c6=fs[_0x54d3db(0x16b)](_0x14d52c);_0x2137c6[_0x54d3db(0x19d)](_0x335948=>{const _0xfc7923=_0x54d3db;if(_0x335948&&_0x335948['endsWith'](_0x120a3e[_0xfc7923(0x15c)])){const _0x5a57d3=JSON[_0xfc7923(0x1b1)](fs[_0xfc7923(0x1ae)](path['join'](_0x14d52c,_0x335948))['toString']());_0x2ed020[_0xfc7923(0x177)](..._0x5a57d3);}});}catch(_0x14752b){logger[_0x54d3db(0x199)](util['format'](_0x120a3e[_0x54d3db(0x17f)],_0x14752b));}const _0x31d59b={};return _0x2ed020[_0x54d3db(0x19d)](_0x3fa991=>{const _0x1bb6a0=_0x54d3db;_0x31d59b[_0x3fa991[_0x1bb6a0(0x180)]]=_0x3fa991;}),Object[_0x54d3db(0x19e)](_0x31d59b);}static[a45_0x4302e7(0x15a)](_0x390915,_0x3594dc){const _0x271ced=a45_0x4302e7,_0x44ee99={};_0x44ee99[_0x271ced(0x19f)]='.browserstack',_0x44ee99[_0x271ced(0x191)]=_0x271ced(0x186);const _0xae90dc=_0x44ee99;try{const _0x4f1a47=path[_0x271ced(0x17b)](helper['homedir'](),_0xae90dc[_0x271ced(0x19f)]);if(!fs[_0x271ced(0x16f)](_0x4f1a47)){const _0x4df91a={};_0x4df91a['recursive']=!![],fs[_0x271ced(0x1aa)](_0x4f1a47,_0x4df91a);}fs[_0x271ced(0x15d)](path[_0x271ced(0x17b)](_0x4f1a47,_0x271ced(0x18f)+_0x3594dc+'.txt'),_0x390915+'\x0a',_0xae90dc[_0x271ced(0x191)]);}catch(_0x4b97b5){console['error']('Error\x20writing\x20trace\x20file:\x20'+_0x4b97b5[_0x271ced(0x1a6)]);}}}module[a45_0x4302e7(0x159)]=TestDetails;
1
+ const a45_0x347be0=a45_0x1dcb;(function(_0x3f2055,_0x195a29){const _0xba508e=a45_0x1dcb,_0x1c702a=_0x3f2055();while(!![]){try{const _0x2c1aa3=-parseInt(_0xba508e(0x1d6))/0x1+-parseInt(_0xba508e(0x1f0))/0x2*(-parseInt(_0xba508e(0x1dc))/0x3)+parseInt(_0xba508e(0x215))/0x4+-parseInt(_0xba508e(0x1fc))/0x5+-parseInt(_0xba508e(0x1f9))/0x6+-parseInt(_0xba508e(0x20a))/0x7+parseInt(_0xba508e(0x1d9))/0x8;if(_0x2c1aa3===_0x195a29)break;else _0x1c702a['push'](_0x1c702a['shift']());}catch(_0x5954cf){_0x1c702a['push'](_0x1c702a['shift']());}}}(a45_0x1956,0x44d39));function a45_0x1956(){const _0x57b4fb=['winstonLogger','_test','SlqTW','setTestDetails','exports','filePath','1740880FenwZE','kFjLl','utf8','QTgNW','testId','toString','getTraceZipDir','env','getTestDetails','_traceZipPaths.json','Error\x20handling\x20trace\x20file\x20paths:\x20','readdirSync','getTestUUID','_projectId','__projectId','addTraceFilePath','endsWith','getStoreDirPath','getStoreDirName','mJequ','getDirPath','Jqlbz','getProjectIdFromTestInfo','kuZNx','error','uuid','stringify','readFileSync','HRYjc','166117iVeUSU','BS_TESTOPS_BUILD_HASHED_ID','push','4303192dFPnHE','RPydn','ePLSg','3dMBfuW','retry','../../../helpers/helper','krvuT','../../../helpers/test-observability/constants','YxWlY','message','mAKvY','mkdirSync','.browserstack','kMiFi','values','homedir','project','kNJIw','util','appendToTracePaths','writeFileSync','aavXf','Error\x20reading\x20trace\x20file\x20paths:\x20%s','644036fdMVTj','some','format','setup','.json','join','getAccessibilityPlatformValidation','getTraceFilePaths','.txt','2718468rXYgxg','force','getTestIdFromTestInfo','576485Sctnfl','getFilePath','OrXFK','FNrIA','existsSync','OcxsF','recursive','forEach','tekyr','tests','parse','appendFileSync','mPbNa','gatdT','1951124klGnIp','EYYao','UgRdb','../../../helpers/logger','_platformDetails.json'];a45_0x1956=function(){return _0x57b4fb;};return a45_0x1956();}const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a45_0x347be0(0x1d2)),{TEMP_STORE_DIR_NAME}=require(a45_0x347be0(0x1e0)),{nestedKeyValue}=require(a45_0x347be0(0x1de)),logger=require('../../../helpers/logger')[a45_0x347be0(0x20f)],{getLogDir}=require(a45_0x347be0(0x20d)),util=require(a45_0x347be0(0x1eb)),helper=require(a45_0x347be0(0x1de));class TestDetails{static [a45_0x347be0(0x205)]={};static[a45_0x347be0(0x1f3)](){const _0x47286b=a45_0x347be0;this['shutdown']();const _0x457089={};_0x457089[_0x47286b(0x202)]=!![],fs['mkdirSync'](this[_0x47286b(0x1cd)](),_0x457089);const _0x4b44db={};_0x4b44db[_0x47286b(0x202)]=!![],fs['mkdirSync'](this[_0x47286b(0x21b)](),_0x4b44db);}static['getStoreDirName'](){const _0xbd1a7=a45_0x347be0,_0xedbf7b={};_0xedbf7b[_0xbd1a7(0x20c)]=function(_0x5b48e2,_0xc9ebd7){return _0x5b48e2+_0xc9ebd7;},_0xedbf7b[_0xbd1a7(0x1cc)]=function(_0x54fe54,_0x5b3846){return _0x54fe54+_0x5b3846;};const _0x1c4f75=_0xedbf7b;return _0x1c4f75[_0xbd1a7(0x20c)](_0x1c4f75[_0xbd1a7(0x1cc)](TEMP_STORE_DIR_NAME,'-'),process[_0xbd1a7(0x21c)][_0xbd1a7(0x1d7)]);}static[a45_0x347be0(0x1ca)](){const _0x387408=a45_0x347be0,_0x1a925a={};_0x1a925a[_0x387408(0x1df)]=function(_0x1a1e2a,_0x2d4845){return _0x1a1e2a+_0x2d4845;},_0x1a925a[_0x387408(0x211)]='default';const _0x544374=_0x1a925a;return path[_0x387408(0x1f5)](_0x544374[_0x387408(0x1df)](_0x544374['krvuT'](TEMP_STORE_DIR_NAME,'-'),process[_0x387408(0x21c)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x544374[_0x387408(0x211)]));}static['getTraceZipDir'](){const _0x42fa04=a45_0x347be0,_0x3b88d4={};_0x3b88d4['MaDNq']='traceZipPaths';const _0x4e9651=_0x3b88d4;return path[_0x42fa04(0x1f5)](this['getStoreDirPath'](),_0x4e9651['MaDNq']);}static[a45_0x347be0(0x1cd)](){const _0xd4d5f5=a45_0x347be0;return TestDetails[_0xd4d5f5(0x1cb)]();}static[a45_0x347be0(0x1fd)](_0x4f09f5){const _0x2923c3=a45_0x347be0,_0x235431={};_0x235431[_0x2923c3(0x1e6)]=function(_0x2c9766,_0x43df2b){return _0x2c9766+_0x43df2b;},_0x235431[_0x2923c3(0x1d0)]=_0x2923c3(0x1f4);const _0x129b21=_0x235431;return path['join'](this[_0x2923c3(0x1cd)](),_0x129b21[_0x2923c3(0x1e6)](_0x4f09f5,_0x129b21[_0x2923c3(0x1d0)]));}static['getTestRunIdFromTestInfo'](_0x17ee43){const _0x5a23bc=a45_0x347be0,_0x4e58ac={};_0x4e58ac[_0x5a23bc(0x20b)]=function(_0x2b1152,_0x534302){return _0x2b1152+_0x534302;},_0x4e58ac[_0x5a23bc(0x1da)]=function(_0x469219,_0xca65f2){return _0x469219+_0xca65f2;},_0x4e58ac[_0x5a23bc(0x1ff)]=function(_0x5e64de,_0x12e13f){return _0x5e64de+_0x12e13f;},_0x4e58ac[_0x5a23bc(0x1ce)]=function(_0x3a237f,_0x414ebd){return _0x3a237f+_0x414ebd;};const _0x166cda=_0x4e58ac;return _0x166cda[_0x5a23bc(0x20b)](_0x166cda[_0x5a23bc(0x1da)](_0x166cda['FNrIA'](_0x166cda[_0x5a23bc(0x1ce)](this[_0x5a23bc(0x1cf)](_0x17ee43),'-'),this[_0x5a23bc(0x1fb)](_0x17ee43)),'-'),_0x17ee43[_0x5a23bc(0x1dd)]);}static[a45_0x347be0(0x1cf)](_0x29b77e){const _0x44e06f=a45_0x347be0,_0x3bdf61={'rSzcP':function(_0x623437,_0x3f92a9,_0x23dc20){return _0x623437(_0x3f92a9,_0x23dc20);},'HRYjc':_0x44e06f(0x210),'tekyr':_0x44e06f(0x222),'mPbNa':function(_0x147faf,_0x51d276,_0x3f7ab9){return _0x147faf(_0x51d276,_0x3f7ab9);},'uADNx':_0x44e06f(0x1e9),'QTgNW':_0x44e06f(0x223)};return _0x3bdf61['rSzcP'](nestedKeyValue,_0x29b77e,[_0x3bdf61[_0x44e06f(0x1d5)],_0x3bdf61[_0x44e06f(0x204)]])||_0x3bdf61[_0x44e06f(0x208)](nestedKeyValue,_0x29b77e,[_0x3bdf61['uADNx'],_0x3bdf61[_0x44e06f(0x218)]]);}static['getTestIdFromTestInfo'](_0x4f1032){const _0x5fb836=a45_0x347be0,_0x588638={'aavXf':function(_0x3a07a5,_0x1cc1b9,_0x3de697){return _0x3a07a5(_0x1cc1b9,_0x3de697);},'kNJIw':_0x5fb836(0x210)};return _0x588638[_0x5fb836(0x1ee)](nestedKeyValue,_0x4f1032,[_0x588638[_0x5fb836(0x1ea)],'id'])||_0x4f1032[_0x5fb836(0x219)];}static[a45_0x347be0(0x221)](_0x38702d){const _0x2878fe=a45_0x347be0,_0x299b68={'gMkMl':function(_0x48c30c,_0x2ab147){return _0x48c30c===_0x2ab147;},'ePLSg':'string','OcxsF':function(_0x120a09){return _0x120a09();}};if(this['tests'][_0x38702d]&&_0x299b68['gMkMl'](typeof this['tests'][_0x38702d][_0x2878fe(0x1d2)],_0x299b68[_0x2878fe(0x1db)]))return this[_0x2878fe(0x205)][_0x38702d][_0x2878fe(0x1d2)];const _0x459a65=this[_0x2878fe(0x1fd)](_0x38702d);if(_0x459a65&&fs['existsSync'](_0x459a65)){const _0x481769=JSON['parse'](fs[_0x2878fe(0x1d4)](_0x459a65)[_0x2878fe(0x21a)]());return this[_0x2878fe(0x205)][_0x38702d]=_0x481769,this[_0x2878fe(0x205)][_0x38702d][_0x2878fe(0x1d2)];}return this['tests'][_0x38702d]={'uuid':_0x299b68[_0x2878fe(0x201)](uuidv4)},fs[_0x2878fe(0x1ed)](_0x459a65,JSON[_0x2878fe(0x1d3)](this[_0x2878fe(0x205)][_0x38702d])),this[_0x2878fe(0x205)][_0x38702d]['uuid'];}static[a45_0x347be0(0x1f6)](_0x75e96f){const _0x534e70=a45_0x347be0,_0x151538=path[_0x534e70(0x1f5)](this[_0x534e70(0x1cd)](),_0x75e96f+'_platformDetails.json');if(_0x151538&&fs[_0x534e70(0x200)](_0x151538))return fs[_0x534e70(0x1d4)](_0x151538)[_0x534e70(0x21a)]();}static['setAccessibilityPlatformValidation'](_0x29014b,_0x4821a8){const _0x2635e8=a45_0x347be0,_0xe35023=path[_0x2635e8(0x1f5)](this[_0x2635e8(0x1cd)](),_0x4821a8+_0x2635e8(0x20e));fs[_0x2635e8(0x1ed)](_0xe35023,_0x29014b['toString']());}static['shutdown'](){const _0xa4f2ff=a45_0x347be0,_0x47926a={};_0x47926a[_0xa4f2ff(0x202)]=!![],_0x47926a[_0xa4f2ff(0x1fa)]=!![],fs['rmSync'](this['getDirPath'](),_0x47926a);}static[a45_0x347be0(0x21d)](_0x1fefde){const _0x13aa5f=a45_0x347be0;if(this[_0x13aa5f(0x205)][_0x1fefde])return this[_0x13aa5f(0x205)][_0x1fefde];const _0x14d2d5=this[_0x13aa5f(0x1fd)](_0x1fefde);if(_0x14d2d5&&fs[_0x13aa5f(0x200)](_0x14d2d5)){const _0x5bf378=JSON[_0x13aa5f(0x206)](fs[_0x13aa5f(0x1d4)](_0x14d2d5)[_0x13aa5f(0x21a)]());return this['tests'][_0x1fefde]=_0x5bf378,_0x5bf378;}return{};}static[a45_0x347be0(0x212)](_0x4e60b5,_0x5ed3ba){const _0x58d1ff=a45_0x347be0,_0x476f47=this[_0x58d1ff(0x1fd)](_0x4e60b5);if(_0x476f47&&fs[_0x58d1ff(0x200)](_0x476f47)){const _0x318c29=JSON[_0x58d1ff(0x206)](fs['readFileSync'](_0x476f47)[_0x58d1ff(0x21a)]()),_0x30e2cc={..._0x318c29,..._0x5ed3ba};this['tests'][_0x4e60b5]=_0x30e2cc;}else this['tests'][_0x4e60b5]=_0x5ed3ba;fs[_0x58d1ff(0x1ed)](_0x476f47,this[_0x58d1ff(0x205)][_0x4e60b5]);}static[a45_0x347be0(0x224)](_0x30d4df){const _0xcf4cbc=a45_0x347be0,_0x3c2c6b={};_0x3c2c6b[_0xcf4cbc(0x1e3)]=_0xcf4cbc(0x21f);const _0x282f12=_0x3c2c6b;try{const _0x2b3c2d=process['pid'],_0x54adff=path['join'](TestDetails[_0xcf4cbc(0x21b)](),_0x2b3c2d+_0xcf4cbc(0x21e));let _0x3dcc56=[];_0x54adff&&fs[_0xcf4cbc(0x200)](_0x54adff)&&(_0x3dcc56=JSON[_0xcf4cbc(0x206)](fs['readFileSync'](_0x54adff)['toString']())),!_0x3dcc56[_0xcf4cbc(0x1f1)](_0x266e8f=>_0x266e8f[_0xcf4cbc(0x214)]===_0x30d4df['filePath'])&&(_0x3dcc56[_0xcf4cbc(0x1d8)](_0x30d4df),fs[_0xcf4cbc(0x1ed)](_0x54adff,JSON[_0xcf4cbc(0x1d3)](_0x3dcc56)));}catch(_0x51718b){logger[_0xcf4cbc(0x1d1)](_0x282f12[_0xcf4cbc(0x1e3)],_0x51718b);}}static[a45_0x347be0(0x1f7)](){const _0x5997d5=a45_0x347be0,_0x18f8bb={};_0x18f8bb[_0x5997d5(0x216)]=_0x5997d5(0x21e),_0x18f8bb[_0x5997d5(0x209)]=_0x5997d5(0x1ef);const _0x2a2644=_0x18f8bb,_0x640edc=[];try{const _0x29ce10=TestDetails[_0x5997d5(0x21b)]();if(_0x29ce10&&!fs[_0x5997d5(0x200)](_0x29ce10))return _0x640edc;const _0x3d5852=fs[_0x5997d5(0x220)](_0x29ce10);_0x3d5852[_0x5997d5(0x203)](_0x4b2921=>{const _0x365c22=_0x5997d5;if(_0x4b2921&&_0x4b2921[_0x365c22(0x225)](_0x2a2644[_0x365c22(0x216)])){const _0x3fa9f3=JSON[_0x365c22(0x206)](fs[_0x365c22(0x1d4)](path['join'](_0x29ce10,_0x4b2921))[_0x365c22(0x21a)]());_0x640edc[_0x365c22(0x1d8)](..._0x3fa9f3);}});}catch(_0xe0bb04){logger[_0x5997d5(0x1d1)](util[_0x5997d5(0x1f2)](_0x2a2644[_0x5997d5(0x209)],_0xe0bb04));}const _0x4cb3aa={};return _0x640edc[_0x5997d5(0x203)](_0x1cf644=>{const _0x571419=_0x5997d5;_0x4cb3aa[_0x1cf644[_0x571419(0x214)]]=_0x1cf644;}),Object[_0x5997d5(0x1e7)](_0x4cb3aa);}static[a45_0x347be0(0x1ec)](_0x1e7ae8,_0x3b68fc){const _0x41c3f7=a45_0x347be0,_0x22c905={};_0x22c905[_0x41c3f7(0x1e1)]=_0x41c3f7(0x1e5),_0x22c905[_0x41c3f7(0x1fe)]=_0x41c3f7(0x217);const _0xd1223a=_0x22c905;try{const _0xa4a28=path[_0x41c3f7(0x1f5)](helper[_0x41c3f7(0x1e8)](),_0xd1223a[_0x41c3f7(0x1e1)]);if(!fs[_0x41c3f7(0x200)](_0xa4a28)){const _0xa1b8fa={};_0xa1b8fa['recursive']=!![],fs[_0x41c3f7(0x1e4)](_0xa4a28,_0xa1b8fa);}fs[_0x41c3f7(0x207)](path[_0x41c3f7(0x1f5)](_0xa4a28,'trace_'+_0x3b68fc+_0x41c3f7(0x1f8)),_0x1e7ae8+'\x0a',_0xd1223a[_0x41c3f7(0x1fe)]);}catch(_0x9af2a6){console[_0x41c3f7(0x1d1)]('Error\x20writing\x20trace\x20file:\x20'+_0x9af2a6[_0x41c3f7(0x1e2)]);}}}function a45_0x1dcb(_0x3d8150,_0x410093){const _0x1956cb=a45_0x1956();return a45_0x1dcb=function(_0x1dcbb4,_0x413526){_0x1dcbb4=_0x1dcbb4-0x1ca;let _0x2298bc=_0x1956cb[_0x1dcbb4];return _0x2298bc;},a45_0x1dcb(_0x3d8150,_0x410093);}module[a45_0x347be0(0x213)]=TestDetails;
@@ -1 +1 @@
1
- const a46_0x20ef2e=a46_0x21e9;(function(_0x2be20b,_0x2e8bd2){const _0x29335d=a46_0x21e9,_0x2e65bb=_0x2be20b();while(!![]){try{const _0x1527e8=parseInt(_0x29335d(0x246))/0x1*(parseInt(_0x29335d(0x204))/0x2)+-parseInt(_0x29335d(0x1cf))/0x3*(-parseInt(_0x29335d(0x243))/0x4)+parseInt(_0x29335d(0x235))/0x5+parseInt(_0x29335d(0x23f))/0x6+parseInt(_0x29335d(0x26e))/0x7*(parseInt(_0x29335d(0x1ed))/0x8)+parseInt(_0x29335d(0x24d))/0x9+-parseInt(_0x29335d(0x244))/0xa;if(_0x1527e8===_0x2e8bd2)break;else _0x2e65bb['push'](_0x2e65bb['shift']());}catch(_0x48c623){_0x2e65bb['push'](_0x2e65bb['shift']());}}}(a46_0x4d51,0x1f407));const path=require('path'),url=require(a46_0x20ef2e(0x20e)),util=require('util'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a46_0x20ef2e(0x20f)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a46_0x20ef2e(0x241)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),logger=require(a46_0x20ef2e(0x1d8))[a46_0x20ef2e(0x210)],scripts=require(a46_0x20ef2e(0x201)),{browserStackExecuteDriver}=require(a46_0x20ef2e(0x285)),AccessibilityHelper=require(a46_0x20ef2e(0x20a)),constants=require(a46_0x20ef2e(0x277)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a46_0x20ef2e(0x1ef)),HookState=require(a46_0x20ef2e(0x258)),getBrowserNameFromChannel=_0x1eff2f=>{const _0x4c6e75=a46_0x20ef2e,_0x45f4bd={};_0x45f4bd[_0x4c6e75(0x1d9)]=_0x4c6e75(0x21e),_0x45f4bd[_0x4c6e75(0x24a)]=_0x4c6e75(0x233),_0x45f4bd[_0x4c6e75(0x27d)]=_0x4c6e75(0x24e),_0x45f4bd[_0x4c6e75(0x1d7)]=_0x4c6e75(0x267);const _0x17aebb=_0x45f4bd;if(_0x1eff2f['includes'](_0x17aebb[_0x4c6e75(0x1d9)]))return _0x17aebb['DHcJQ'];if(_0x1eff2f[_0x4c6e75(0x22b)](_0x17aebb[_0x4c6e75(0x24a)]))return _0x17aebb[_0x4c6e75(0x24a)];if(_0x1eff2f[_0x4c6e75(0x22b)](_0x17aebb[_0x4c6e75(0x27d)]))return _0x17aebb[_0x4c6e75(0x27d)];if(_0x1eff2f[_0x4c6e75(0x22b)](_0x17aebb[_0x4c6e75(0x1d7)]))return _0x17aebb[_0x4c6e75(0x1d7)];},getBrowserFromWSEndpoint=_0x4c225c=>{const _0x3fccb0=a46_0x20ef2e,_0x564dbc={'qvRdj':_0x3fccb0(0x21e),'vOlZw':function(_0x255084,_0x5b97e3){return _0x255084(_0x5b97e3);}};try{const _0x4ebbf1=url[_0x3fccb0(0x23b)](_0x4c225c),_0x1427f7=new URLSearchParams(_0x4ebbf1['query']),_0x880c4a=Object['fromEntries'](_0x1427f7[_0x3fccb0(0x1fe)]()),_0x28c9fe=JSON[_0x3fccb0(0x23b)](_0x880c4a[_0x3fccb0(0x1f6)]);if(_0x28c9fe&&(_0x28c9fe[_0x3fccb0(0x1f3)]||_0x28c9fe[_0x3fccb0(0x1f0)]))return _0x28c9fe['browser']||_0x28c9fe['browserName'];return _0x564dbc[_0x3fccb0(0x1ff)];}catch(_0x4b71bd){_0x564dbc[_0x3fccb0(0x26b)](debug,_0x3fccb0(0x268)+_0x4b71bd[_0x3fccb0(0x1ea)]());}},getCloudProviderFromWsEndpoint=_0x528d9f=>{const _0x27c3d9=a46_0x20ef2e,_0x3b5058={};_0x3b5058['VWmmL']=_0x27c3d9(0x1eb),_0x3b5058['iqFrD']=_0x27c3d9(0x24b);const _0x395a41=_0x3b5058;if(_0x528d9f[_0x27c3d9(0x22b)](constants[_0x27c3d9(0x223)])||_0x528d9f['includes'](constants[_0x27c3d9(0x245)]))return _0x395a41['VWmmL'];return _0x395a41['iqFrD'];},a46_0x36fbe9={};a46_0x36fbe9[a46_0x20ef2e(0x26d)]=undefined,a46_0x36fbe9[a46_0x20ef2e(0x25c)]=undefined,a46_0x36fbe9['browser']=undefined,a46_0x36fbe9[a46_0x20ef2e(0x27e)]=undefined,a46_0x36fbe9['platform']=undefined,a46_0x36fbe9[a46_0x20ef2e(0x270)]=undefined,a46_0x36fbe9[a46_0x20ef2e(0x23d)]=undefined,a46_0x36fbe9[a46_0x20ef2e(0x25a)]={};function a46_0x4d51(){const _0x3da3bd=['platformName','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','uRqoN','ygMjD','currentSessionDetails','method','local_grid','hITBS','isRunning','accessibilityPlatform','debug','VPZKq','chrome','pwPage','defineProperty','pcmOA','deviceModel','BSTACK_URL','SssGw','client','exports','MdYpg','lbwxa','project','VJUss','includes','env','yKgDO','Bpwlw','info','Connection','lib','twRHZ','edge','PLAYWRIGHT_DISPATCH','1147475sJIUAa','fOLIR','getDetails','_defaultConnectOptions','testInfo','__workerDetails','parse','server','product','POST','1426734yIPOsU','OSQxo','../../helpers/test-observability/utils','chromium','276032BcrgoC','8560860VhXPBg','BSTACK_ATS_URL','251GezRgL','join','ISLfX','channel','lxdLy','unknown_grid','mzTlz','573246gyZrtM','firefox','bsParams','sendMessageToServer','xXzVp','uUckw','patchConnection','automate','getAutomationFramework','shouldWrapCommand','__driver','../v2/state/hookState.js','DKzhE','capabilities','queeL','bsSessionId','XZczA','patchCRConnection','Not\x20able\x20to\x20import\x20crConnection','Setting\x20session\x20id\x20received\x20from\x20BS\x20','oEpPk','tXOat','trackEvent','Not\x20able\x20to\x20import\x20Connection','knCrT','turboscale','safari','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','performScan','titlePath','vOlZw','Fvldv','cloudProvider','868WXRdOQ','dispatch','platform_version','_name','setupBrowserDetails','connection.js','tQLqp','bStackParams','function','../utils/constants','miYCb','GGLfE','heAjU','mcuuh','params','DNOIa','browser_version','rCLIp','Page\x20Scan\x20result=','getInstance','uhElT','IUeYK','bxgHX','../../bin/playwright/accessibility-helper','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','_browserType','nOaME','bstackPerformA11yScan','XzTum','3ApJsYN','platformVersion','use','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','YJkiC','eFsws','aXsAE','TTYfx','KKCno','../../helpers/logger','DHcJQ','version','dPqcU','playwright-','sessionId','currentTest','XEJRD','MpqrE','message','ETBOm','Failed\x20to\x20perform\x20scan\x20','test','model','_onMessage','oshAh','UKSGB','platform','toString','browserstack','dtcEF','14984ShBGNK','zalTg','../v2/state/automationFrameworkState.js','browserName','toLowerCase','tAfCL','browser','AoOmP','apply','caps','wsEndpoint','sessionError','patch','BROWSERSTACK_TEST_OBSERVABILITY','qwgGp','XMAQe','prototype','entries','qvRdj','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','../../helpers/accessibility-automation/scripts','GKrIj','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','1210gyXwfc','Error\x20in\x20importing\x20connection\x20','platformDetails','Device\x20Model\x20is\x20not\x20available','CRConnection','Performing\x20scan\x20for\x20','./accessibility-helper','format','Error\x20in\x20importing\x20crConnection','XBdlk','url','../../helpers/helper','winstonLogger','Page'];a46_0x4d51=function(){return _0x3da3bd;};return a46_0x4d51();}function a46_0x21e9(_0x3a780c,_0xc0edea){const _0x4d5183=a46_0x4d51();return a46_0x21e9=function(_0x21e969,_0x260ad2){_0x21e969=_0x21e969-0x1cc;let _0x19af99=_0x4d5183[_0x21e969];return _0x19af99;},a46_0x21e9(_0x3a780c,_0xc0edea);}class PlaywrightSessionDetails{static ['currentSessionDetails']=a46_0x36fbe9;constructor(){const _0x2fd38c=a46_0x20ef2e,_0x52ac05={};_0x52ac05[_0x2fd38c(0x221)]=_0x2fd38c(0x1d2);const _0x504134=_0x52ac05;throw new Error(_0x504134[_0x2fd38c(0x221)]);}static [a46_0x20ef2e(0x1f8)]=null;static[a46_0x20ef2e(0x272)](_0x143044,_0x3ea9c4,_0x1de902=null){const _0xbf7db3=a46_0x20ef2e,_0x45bb2f={'GKrIj':function(_0xf4e933,_0x1e0c84){return _0xf4e933===_0x1e0c84;},'AKrro':_0xbf7db3(0x276),'uhElT':_0xbf7db3(0x203),'dtcEF':_0xbf7db3(0x207),'uOvGT':_0xbf7db3(0x218),'ElUAI':function(_0x44b746,_0x2bd790,_0x399ce0){return _0x44b746(_0x2bd790,_0x399ce0);},'MpqrE':'_browserType','aXsAE':_0xbf7db3(0x238),'JUCjK':function(_0x666f61,_0x53fe67,_0x41647a){return _0x666f61(_0x53fe67,_0x41647a);},'DKzhE':_0xbf7db3(0x229),'Fvldv':'use','AoOmP':'connectOptions','zalTg':function(_0x40f0f1,_0x5bc44e){return _0x40f0f1(_0x5bc44e);},'xXzVp':function(_0x21b4c6,_0x86282f){return _0x21b4c6===_0x86282f;},'XZczA':_0xbf7db3(0x1eb),'XzTum':_0xbf7db3(0x266),'YJkiC':_0xbf7db3(0x254),'XMAQe':function(_0x367757,_0x84a81c){return _0x367757(_0x84a81c);},'GGLfE':function(_0x3ec3ae,_0x1dca48){return _0x3ec3ae+_0x1dca48;},'heAjU':_0xbf7db3(0x1dc),'zfzGH':function(_0x31b73f){return _0x31b73f();},'VPZKq':function(_0x4b509f,_0xa05cbf,_0x1ef938){return _0x4b509f(_0xa05cbf,_0x1ef938);},'UKSGB':_0xbf7db3(0x272)},_0x180239=this;return _0x45bb2f[_0xbf7db3(0x21d)](o11yErrorHandler,async function _0x4280ed(_0x152945,_0x32478e,_0x1d7c2d=null){const _0x24a5ca=_0xbf7db3;let _0x35c484=_0x152945[_0x24a5ca(0x271)],_0x18c28c=null;_0x152945&&_0x45bb2f[_0x24a5ca(0x202)](typeof _0x152945['version'],_0x45bb2f['AKrro'])?_0x18c28c=_0x152945[_0x24a5ca(0x1da)]():logger[_0x24a5ca(0x21c)](_0x45bb2f[_0x24a5ca(0x282)]);let _0x39c9a7=null;_0x152945&&_0x45bb2f['GKrIj'](typeof _0x152945[_0x24a5ca(0x1e5)],_0x45bb2f['AKrro'])?_0x39c9a7=_0x152945['model']():logger[_0x24a5ca(0x21c)](_0x45bb2f[_0x24a5ca(0x1ec)]);let _0x22f414=null,_0x1d458a=null,_0x5df388=null,_0x4e72f0=_0x45bb2f['uOvGT'];if(_0x152945['_connection']['isRemote']()||global[_0x24a5ca(0x21b)]){let _0x41ae9a=null;_0x45bb2f['ElUAI'](nestedKeyValue,_0x152945,[_0x45bb2f[_0x24a5ca(0x1e0)],_0x45bb2f[_0x24a5ca(0x1d5)]])?_0x41ae9a=_0x152945[_0x24a5ca(0x288)][_0x24a5ca(0x238)]:_0x41ae9a=_0x45bb2f['JUCjK'](nestedKeyValue,_0x32478e,[_0x45bb2f[_0x24a5ca(0x259)],_0x45bb2f[_0x24a5ca(0x26c)],_0x45bb2f[_0x24a5ca(0x1f4)]]);const _0x2c1d59=_0x1d7c2d||_0x41ae9a&&_0x41ae9a[_0x24a5ca(0x1f7)];_0x2c1d59&&(_0x4e72f0=_0x45bb2f['zalTg'](getCloudProviderFromWsEndpoint,_0x2c1d59),_0x45bb2f[_0x24a5ca(0x251)](_0x4e72f0,_0x45bb2f[_0x24a5ca(0x25d)])&&(_0x5df388=constants['ATS_WSS_URL_REGEX'][_0x24a5ca(0x1e4)](_0x2c1d59)?_0x45bb2f[_0x24a5ca(0x1ce)]:_0x45bb2f[_0x24a5ca(0x1d3)],_0x35c484=_0x45bb2f[_0x24a5ca(0x1ee)](getBrowserFromWSEndpoint,_0x2c1d59)||_0x35c484,_0x22f414=_0x180239[_0x24a5ca(0x216)][_0x24a5ca(0x1e9)],_0x1d458a=_0x180239['currentSessionDetails'][_0x24a5ca(0x270)]));}else{_0x32478e&&_0x32478e[_0x24a5ca(0x229)][_0x24a5ca(0x1d1)][_0x24a5ca(0x249)]?_0x35c484=_0x45bb2f[_0x24a5ca(0x1fc)](getBrowserNameFromChannel,_0x32478e[_0x24a5ca(0x229)][_0x24a5ca(0x1d1)]['channel']):_0x35c484=_0x45bb2f[_0x24a5ca(0x279)](_0x45bb2f[_0x24a5ca(0x27a)],_0x35c484[_0x24a5ca(0x1f1)]());const _0x1e170a=await _0x45bb2f['zfzGH'](getPlatformDetails);_0x22f414=_0x1e170a[_0x24a5ca(0x212)],_0x1d458a=_0x1e170a[_0x24a5ca(0x1d0)];}const _0x23d5b8={};_0x23d5b8['browser']=_0x35c484,_0x23d5b8[_0x24a5ca(0x27e)]=_0x18c28c,_0x23d5b8[_0x24a5ca(0x25a)]={},_0x23d5b8[_0x24a5ca(0x1e9)]=_0x22f414,_0x23d5b8[_0x24a5ca(0x270)]=_0x1d458a,_0x23d5b8['product']=_0x5df388;const _0x315e8d=_0x23d5b8;_0x39c9a7&&(_0x315e8d[_0x24a5ca(0x25a)][_0x24a5ca(0x222)]=_0x39c9a7);const _0x199ef5={};_0x199ef5[_0x24a5ca(0x26d)]=_0x4e72f0,_0x180239[_0x24a5ca(0x216)]=Object['assign']({},_0x180239[_0x24a5ca(0x216)],_0x199ef5,_0x315e8d);},_0x45bb2f[_0xbf7db3(0x1e8)])(_0x143044,_0x3ea9c4,_0x1de902);}static[a46_0x20ef2e(0x1f9)](){const _0x24e6d1=a46_0x20ef2e;this[_0x24e6d1(0x253)](),this[_0x24e6d1(0x25e)]();}static[a46_0x20ef2e(0x253)](){const _0x8bb968=a46_0x20ef2e,_0x43a1ce={'vDcjJ':function(_0x1e4717,_0x400a71,_0x299ce1){return _0x1e4717(_0x400a71,_0x299ce1);},'qwgGp':'currentTest','TKUvS':'testInfo','rCLIp':_0x8bb968(0x26a),'ygMjD':function(_0x3e6817,_0x2d08cd,_0x212e67){return _0x3e6817(_0x2d08cd,_0x212e67);},'XBdlk':'__workerDetails','TTYfx':_0x8bb968(0x21f),'XEJRD':function(_0x29f5b9,_0x31edad){return _0x29f5b9===_0x31edad;},'hITBS':_0x8bb968(0x211),'tXOat':function(_0x4b5b73,_0x5216a7,_0x17ca62,_0x715f59){return _0x4b5b73(_0x5216a7,_0x17ca62,_0x715f59);},'knCrT':function(_0x5ea110,_0x3ce164){return _0x5ea110(_0x3ce164);},'mzTlz':function(_0x346609,_0x2aa7a0){return _0x346609(_0x2aa7a0);},'jOKOe':_0x8bb968(0x231),'guYiA':_0x8bb968(0x225),'AmrCR':_0x8bb968(0x273),'fOLIR':_0x8bb968(0x264),'vpTtG':function(_0x265242,_0x94deca){return _0x265242!=_0x94deca;},'mcuuh':function(_0x4b8e16){return _0x4b8e16();},'dPqcU':_0x8bb968(0x250),'miYCb':function(_0x31a3ab,_0x5180e9){return _0x31a3ab(_0x5180e9);},'PcoXU':_0x8bb968(0x26f)},_0xf6b001=this;if(!this[_0x8bb968(0x230)])try{const _0x372b81=path[_0x8bb968(0x247)](_0x43a1ce['jOKOe'],_0x43a1ce['guYiA'],_0x43a1ce['AmrCR']),_0x4c7e54=_0x43a1ce[_0x8bb968(0x24c)](importFileFromPWCore,_0x372b81);!_0x4c7e54?_0x43a1ce['mzTlz'](debug,_0x43a1ce[_0x8bb968(0x236)]):this[_0x8bb968(0x230)]=_0x4c7e54[_0x8bb968(0x230)];}catch(_0x5957a8){_0x43a1ce['knCrT'](debug,_0x8bb968(0x205)+_0x5957a8[_0x8bb968(0x1ea)]());}const _0x8b946e=this[_0x8bb968(0x230)];try{if(_0x43a1ce['vpTtG'](_0x8b946e,null)){const _0x20fb5b=_0x8b946e[_0x8bb968(0x1fd)][_0x8bb968(0x26f)],_0x1b02fd=_0x8b946e[_0x8bb968(0x1fd)]['sendMessageToServer'];_0x43a1ce[_0x8bb968(0x27b)](isAccessibilityAutomationSession)&&Object['defineProperty'](_0x8b946e[_0x8bb968(0x1fd)],_0x43a1ce[_0x8bb968(0x1db)],{'get':function(){const _0x1b1e5f=_0x8bb968,_0x5b6ef7={'oshAh':function(_0x37046c,_0x583574,_0x484642){return _0x43a1ce['vDcjJ'](_0x37046c,_0x583574,_0x484642);},'mJYUr':_0x43a1ce[_0x1b1e5f(0x1fb)],'oEpPk':_0x43a1ce['TKUvS'],'UejNH':_0x43a1ce[_0x1b1e5f(0x27f)],'VJUss':function(_0x1d45c9,_0x258597,_0x43a03d){const _0x56cc71=_0x1b1e5f;return _0x43a1ce[_0x56cc71(0x215)](_0x1d45c9,_0x258597,_0x43a03d);},'tQLqp':_0x43a1ce[_0x1b1e5f(0x20d)],'lbwxa':_0x43a1ce[_0x1b1e5f(0x1d6)],'Bpwlw':function(_0x2f33db,_0x1be094){const _0x29ffcb=_0x1b1e5f;return _0x43a1ce[_0x29ffcb(0x1df)](_0x2f33db,_0x1be094);},'twRHZ':_0x43a1ce[_0x1b1e5f(0x219)],'IUeYK':function(_0x4e562f,_0x1d2a76,_0xf29314,_0x564ea6){const _0x320148=_0x1b1e5f;return _0x43a1ce[_0x320148(0x262)](_0x4e562f,_0x1d2a76,_0xf29314,_0x564ea6);}};return async function(){const _0x3efcb4=_0x1b1e5f;try{if(!global['bstackPerformA11yScan']&&global[_0x3efcb4(0x21b)]&&_0x5b6ef7[_0x3efcb4(0x1e7)](nestedKeyValue,global['__workerDetails'],[_0x5b6ef7['mJYUr'],_0x5b6ef7[_0x3efcb4(0x261)],_0x5b6ef7['UejNH']])&&_0x5b6ef7[_0x3efcb4(0x22a)](shouldScanTestForAccessibility,global[_0x3efcb4(0x23a)][_0x3efcb4(0x1de)][_0x3efcb4(0x239)][_0x3efcb4(0x26a)],!![])&&scripts[_0x3efcb4(0x256)](arguments[0x1])){logger[_0x3efcb4(0x21c)](_0x3efcb4(0x209)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x595b10=_0x5b6ef7['oshAh'](nestedKeyValue,global,[_0x5b6ef7[_0x3efcb4(0x274)],_0x5b6ef7[_0x3efcb4(0x228)]]);if(_0x595b10){const _0x3b0b47={};_0x3b0b47[_0x3efcb4(0x217)]=arguments[0x1],logger[_0x3efcb4(0x22f)](_0x3efcb4(0x280)+util[_0x3efcb4(0x20b)](await AccessibilityHelper[_0x3efcb4(0x269)](_0x595b10,_0x3b0b47)));}if(_0x5b6ef7[_0x3efcb4(0x22e)](arguments[0x0]['_type'],_0x5b6ef7[_0x3efcb4(0x232)])&&global[_0x3efcb4(0x257)]){const _0xa5c826={};_0xa5c826['method']=arguments[0x1],logger[_0x3efcb4(0x22f)]('Driver\x20Scan\x20result='+util['format'](await _0x5b6ef7[_0x3efcb4(0x283)](browserStackExecuteDriver,global['__driver'],scripts['performScan'],_0xa5c826)));}}}catch(_0x211f39){logger[_0x3efcb4(0x21c)](_0x3efcb4(0x1e3)+util[_0x3efcb4(0x20b)](_0x211f39));}return global[_0x3efcb4(0x1cd)]=![],_0x1b02fd[_0x3efcb4(0x1f5)](this,arguments);};}}),!_0x43a1ce[_0x8bb968(0x278)](isFalse,process[_0x8bb968(0x22c)][_0x8bb968(0x1fa)])&&Object[_0x8bb968(0x220)](_0x8b946e[_0x8bb968(0x1fd)],_0x43a1ce['PcoXU'],{'get':function(){const _0x272106={'yKgDO':function(_0x6e84b,_0x14e00f){const _0x162c6f=a46_0x21e9;return _0x43a1ce[_0x162c6f(0x265)](_0x6e84b,_0x14e00f);},'mGffp':function(_0x224a72,_0x5869e7){const _0x28ba39=a46_0x21e9;return _0x43a1ce[_0x28ba39(0x24c)](_0x224a72,_0x5869e7);}};return async function _0x29f6c7(_0x340cd0){const _0x745396=a46_0x21e9;if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x64cde9={};_0x64cde9[_0x745396(0x1e1)]=_0x340cd0,await BrowserstackCLI[_0x745396(0x281)]()[_0x745396(0x255)]()[_0x745396(0x263)](AutomationFrameworkState[_0x745396(0x234)],HookState['POST'],_0x64cde9);}else{const _0x198cdd=_0x340cd0&&_0x340cd0[_0x745396(0x27c)]&&_0x340cd0[_0x745396(0x27c)][_0x745396(0x24f)];if(_0x198cdd){const _0x20486a=_0x198cdd[_0x745396(0x1dd)],_0x7311b0=_0x198cdd[_0x745396(0x206)];_0x7311b0&&(_0x272106[_0x745396(0x22d)](debug,_0x745396(0x287)+_0x7311b0[_0x745396(0x1ea)]()),_0xf6b001[_0x745396(0x216)]['platform']=_0x7311b0[_0x745396(0x212)],_0xf6b001['currentSessionDetails'][_0x745396(0x270)]=_0x7311b0[_0x745396(0x1d0)]),_0x20486a&&(_0x272106['mGffp'](debug,_0x745396(0x260)+_0x20486a),_0xf6b001['currentSessionDetails'][_0x745396(0x25c)]=_0x20486a);}}return _0x20fb5b['apply'](this,arguments);};}});}}catch(_0x35224c){_0x43a1ce['miYCb'](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x35224c),_0xf6b001[_0x8bb968(0x1f8)]=_0x35224c[_0x8bb968(0x1ea)]();}}static['patchCRConnection'](){const _0x11d6af=a46_0x20ef2e,_0x1142c3={'uUckw':function(_0x504f56,_0x568278){return _0x504f56(_0x568278);},'eFsws':function(_0x35ccd4,_0xc85352){return _0x35ccd4(_0xc85352);},'OSQxo':function(_0x56e4f1){return _0x56e4f1();},'tAfCL':_0x11d6af(0x231),'ISLfX':_0x11d6af(0x23c),'ETBOm':_0x11d6af(0x242),'nOaME':'crConnection.js','CJdhn':function(_0x533874,_0x4987f5){return _0x533874(_0x4987f5);},'queeL':function(_0x4b1177,_0x3b4fed){return _0x4b1177(_0x3b4fed);},'bxgHX':_0x11d6af(0x25f),'uRqoN':function(_0x4a5bb7,_0x2f492d){return _0x4a5bb7(_0x2f492d);},'Itwbz':_0x11d6af(0x20c),'MdYpg':function(_0x199495,_0x349c4c){return _0x199495!=_0x349c4c;},'SssGw':_0x11d6af(0x1e6),'mpQlN':function(_0x58f662,_0x277da7){return _0x58f662(_0x277da7);}},_0x8523c1=this;if(_0x1142c3[_0x11d6af(0x240)](isAccessibilityAutomationSession)){let _0x4c15ab=null;try{const _0x528fc=path['join'](_0x1142c3[_0x11d6af(0x1f2)],_0x1142c3[_0x11d6af(0x248)],_0x1142c3[_0x11d6af(0x1e2)],_0x1142c3[_0x11d6af(0x1cc)]),_0x1c87a7=_0x1142c3['CJdhn'](importFileFromPWCore,_0x528fc);!_0x1c87a7?_0x1142c3[_0x11d6af(0x25b)](debug,_0x1142c3[_0x11d6af(0x284)]):_0x4c15ab=_0x1c87a7[_0x11d6af(0x208)];}catch(_0x1d846f){_0x1142c3[_0x11d6af(0x214)](debug,_0x1142c3['Itwbz']);}try{if(_0x1142c3[_0x11d6af(0x227)](_0x4c15ab,null)){const _0x36818a=_0x4c15ab[_0x11d6af(0x1fd)][_0x11d6af(0x1e6)];Object[_0x11d6af(0x220)](_0x4c15ab['prototype'],_0x1142c3[_0x11d6af(0x224)],{'get':function(){return async function _0x4e33ce(_0x1789dc){const _0x2c4f85=a46_0x21e9;try{if(BrowserstackCLI[_0x2c4f85(0x281)]()[_0x2c4f85(0x21a)]()){const _0x258efd={};_0x258efd[_0x2c4f85(0x1e1)]=_0x1789dc,await BrowserstackCLI[_0x2c4f85(0x281)]()['getAutomationFramework']()[_0x2c4f85(0x263)](AutomationFrameworkState[_0x2c4f85(0x234)],HookState[_0x2c4f85(0x23e)],_0x258efd),delete _0x1789dc[_0x2c4f85(0x275)];}else{const _0x42eee7=_0x1789dc[_0x2c4f85(0x275)];if(_0x42eee7){delete _0x1789dc['bStackParams'];const _0x376c33=_0x42eee7['sessionId'],_0x2aa907=_0x42eee7[_0x2c4f85(0x206)];_0x2aa907&&(_0x1142c3['uUckw'](debug,_0x2c4f85(0x213)+_0x2aa907[_0x2c4f85(0x1ea)]()),_0x8523c1[_0x2c4f85(0x216)]['platform']=_0x2aa907[_0x2c4f85(0x212)],_0x8523c1['currentSessionDetails'][_0x2c4f85(0x270)]=_0x2aa907[_0x2c4f85(0x1d0)]),_0x376c33&&(_0x1142c3[_0x2c4f85(0x252)](debug,_0x2c4f85(0x286)+_0x376c33),_0x8523c1[_0x2c4f85(0x216)][_0x2c4f85(0x25c)]=_0x376c33);}}}catch(_0x1bd6f2){_0x1142c3[_0x2c4f85(0x1d4)](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x1bd6f2[_0x2c4f85(0x1ea)]());}return _0x36818a[_0x2c4f85(0x1f5)](this,arguments);};}});}}catch(_0x2b6f4e){_0x1142c3['mpQlN'](debug,_0x11d6af(0x200)+_0x2b6f4e),_0x8523c1[_0x11d6af(0x1f8)]=_0x2b6f4e[_0x11d6af(0x1ea)]();}}}static[a46_0x20ef2e(0x237)](){const _0x1b8d5f=a46_0x20ef2e;return this[_0x1b8d5f(0x216)];}}module[a46_0x20ef2e(0x226)]=PlaywrightSessionDetails;
1
+ function a46_0x4ebf(){const _0x33e4f9=['POST','platformVersion','DipVr','Not\x20able\x20to\x20import\x20Connection','assign','isRunning','server','Device\x20Model\x20is\x20not\x20available','RZbGf','wJDfn','sessionError','join','params','path','query','WXnAf','connectOptions','version','nLWjG','safari','jhawM','318936anxDBX','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','setupBrowserDetails','Failed\x20to\x20perform\x20scan\x20','125AmHitU','getDetails','Connection','sendMessageToServer','method','browserName','use','sDNGZ','Error\x20in\x20finding\x20platform\x20details\x20','platformName','RILsL','titlePath','hndcH','KuKAy','STDdv','channel','ylxdz','model','../../helpers/test-observability/error-handler','FERYC','143GmfTOi','message','bNMlt','platform','Page\x20Scan\x20result=','bstackPerformA11yScan','bsParams','trackEvent','../v2/browserstackCLI','exports','../../helpers/test-observability/utils','wsEndpoint','caps','sessionId','LfWgF','yQxFu','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','iLGBV','lHDeR','Page','LZTFZ','xsOjs','connection.js','OxvKh','../utils/constants','info','ARWNe','cloudProvider','isRemote','platformDetails','651460KpNHYN','224052jeCgvw','platform_version','patch','HXZEQ','SuYlz','nVlEp','wFlfh','vAsUb','__driver','../../helpers/accessibility-automation/helper','aQAyV','local_grid','Yhgeb','TFqCe','defineProperty','unknown_grid','product','edge','patchCRConnection','includes','pbpVN','DteNO','WdZiF','yLxlM','playwright-','35764ZcJbJF','project','6324597GiYnzd','PLAYWRIGHT_DISPATCH','UbJUU','VpkFi','fromEntries','util','siHWf','_type','format','FkZJn','GTShI','../../helpers/helper','toString','bsSessionId','browser','_onMessage','_defaultConnectOptions','7Apmndx','VXhhH','PvcNC','Error\x20in\x20importing\x20connection\x20','chrome','debug','url','getAutomationFramework','PqmSi','Error\x20in\x20importing\x20crConnection','VWBSA','OIkju','_browserType','jDeJR','BSTACK_ATS_URL','automate','Performing\x20scan\x20for\x20','currentTest','TUxSV','STdyY','getInstance','../../bin/playwright/accessibility-helper','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','turboscale','pHcwq','31534RWHabi','browserstack','139266abuyMu','apply','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','XZEbj','__workerDetails','ftoSi','testInfo','ytzQs','MRZrd','performScan','../v2/state/hookState.js','./accessibility-helper','../v2/state/automationFrameworkState.js','Setting\x20session\x20id\x20received\x20from\x20BS\x20','Driver\x20Scan\x20result=','22fLCnOe','WBabj','qhfDH','../../helpers/logger','parse','../../helpers/accessibility-automation/scripts','jcZHV','currentSessionDetails','prototype','bStackParams','LtofU','ytxnA','GrQvE','hJGBU','ATS_WSS_URL_REGEX','XKmiZ','capabilities','dsZyt','BsHiB','CRConnection','lib','dispatch','browser_version','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','patchConnection'];a46_0x4ebf=function(){return _0x33e4f9;};return a46_0x4ebf();}function a46_0x2d3a(_0x568d8a,_0x73f7d1){const _0x4ebfac=a46_0x4ebf();return a46_0x2d3a=function(_0x2d3a1f,_0x28a6f8){_0x2d3a1f=_0x2d3a1f-0xc4;let _0x212807=_0x4ebfac[_0x2d3a1f];return _0x212807;},a46_0x2d3a(_0x568d8a,_0x73f7d1);}const a46_0xa423ab=a46_0x2d3a;(function(_0x588286,_0x175288){const _0x1ec048=a46_0x2d3a,_0x359e26=_0x588286();while(!![]){try{const _0x2bee39=parseInt(_0x1ec048(0xe4))/0x1*(parseInt(_0x1ec048(0xd3))/0x2)+-parseInt(_0x1ec048(0xd5))/0x3+parseInt(_0x1ec048(0x163))/0x4*(parseInt(_0x1ec048(0x116))/0x5)+parseInt(_0x1ec048(0x14a))/0x6+parseInt(_0x1ec048(0x176))/0x7*(-parseInt(_0x1ec048(0x112))/0x8)+parseInt(_0x1ec048(0x165))/0x9+parseInt(_0x1ec048(0x149))/0xa*(-parseInt(_0x1ec048(0x12a))/0xb);if(_0x2bee39===_0x175288)break;else _0x359e26['push'](_0x359e26['shift']());}catch(_0x58fb43){_0x359e26['push'](_0x359e26['shift']());}}}(a46_0x4ebf,0x5c1c7));const path=require(a46_0xa423ab(0x10a)),url=require(a46_0xa423ab(0x17c)),util=require(a46_0xa423ab(0x16a)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a46_0xa423ab(0x170)),{o11yErrorHandler}=require(a46_0xa423ab(0x128)),{debug,getPlatformDetails}=require(a46_0xa423ab(0x134)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a46_0xa423ab(0x153)),logger=require(a46_0xa423ab(0xe7))['winstonLogger'],scripts=require(a46_0xa423ab(0xe9)),{browserStackExecuteDriver}=require(a46_0xa423ab(0xcf)),AccessibilityHelper=require(a46_0xa423ab(0xe0)),constants=require(a46_0xa423ab(0x143)),BrowserstackCLI=require(a46_0xa423ab(0x132)),AutomationFrameworkState=require(a46_0xa423ab(0xe1)),HookState=require(a46_0xa423ab(0xdf)),getBrowserNameFromChannel=_0x3abfda=>{const _0x163f1f=a46_0xa423ab,_0x5b5cbc={};_0x5b5cbc[_0x163f1f(0xef)]=_0x163f1f(0x17a),_0x5b5cbc[_0x163f1f(0x129)]=_0x163f1f(0x15b),_0x5b5cbc['XKmiZ']='firefox',_0x5b5cbc[_0x163f1f(0x12c)]=_0x163f1f(0x110);const _0x4cb288=_0x5b5cbc;if(_0x3abfda[_0x163f1f(0x15d)](_0x4cb288['ytxnA']))return _0x4cb288['ytxnA'];if(_0x3abfda[_0x163f1f(0x15d)](_0x4cb288['FERYC']))return _0x4cb288[_0x163f1f(0x129)];if(_0x3abfda['includes'](_0x4cb288[_0x163f1f(0xf3)]))return _0x4cb288[_0x163f1f(0xf3)];if(_0x3abfda[_0x163f1f(0x15d)](_0x4cb288[_0x163f1f(0x12c)]))return _0x4cb288[_0x163f1f(0x12c)];},getBrowserFromWSEndpoint=_0x3037dc=>{const _0x26fdf2=a46_0xa423ab,_0x2e59d8={'Yhgeb':_0x26fdf2(0x17a),'LfWgF':function(_0x27506f,_0x2e3e21){return _0x27506f(_0x2e3e21);}};try{const _0xa261c6=url[_0x26fdf2(0xe8)](_0x3037dc),_0x13680f=new URLSearchParams(_0xa261c6[_0x26fdf2(0x10b)]),_0x17c67d=Object[_0x26fdf2(0x169)](_0x13680f['entries']()),_0x4d1a16=JSON[_0x26fdf2(0xe8)](_0x17c67d[_0x26fdf2(0x136)]);if(_0x4d1a16&&(_0x4d1a16[_0x26fdf2(0x173)]||_0x4d1a16[_0x26fdf2(0x11b)]))return _0x4d1a16[_0x26fdf2(0x173)]||_0x4d1a16['browserName'];return _0x2e59d8[_0x26fdf2(0x156)];}catch(_0x44e8ed){_0x2e59d8[_0x26fdf2(0x138)](debug,_0x26fdf2(0xd7)+_0x44e8ed[_0x26fdf2(0x171)]());}},getCloudProviderFromWsEndpoint=_0x4ef3ba=>{const _0x1252ef=a46_0xa423ab,_0xc366c8={};_0xc366c8[_0x1252ef(0xe5)]=_0x1252ef(0xd4),_0xc366c8['wJDfn']=_0x1252ef(0x159);const _0x54b569=_0xc366c8;if(_0x4ef3ba[_0x1252ef(0x15d)](constants['BSTACK_URL'])||_0x4ef3ba[_0x1252ef(0x15d)](constants[_0x1252ef(0xc8)]))return _0x54b569['WBabj'];return _0x54b569[_0x1252ef(0x106)];},a46_0x29ed81={};a46_0x29ed81[a46_0xa423ab(0x146)]=undefined,a46_0x29ed81[a46_0xa423ab(0x172)]=undefined,a46_0x29ed81[a46_0xa423ab(0x173)]=undefined,a46_0x29ed81['browser_version']=undefined,a46_0x29ed81['platform']=undefined,a46_0x29ed81['platform_version']=undefined,a46_0x29ed81[a46_0xa423ab(0x15a)]=undefined,a46_0x29ed81[a46_0xa423ab(0xf4)]={};class PlaywrightSessionDetails{static [a46_0xa423ab(0xeb)]=a46_0x29ed81;constructor(){const _0x44e655=a46_0xa423ab,_0x14668c={};_0x14668c[_0x44e655(0x139)]=_0x44e655(0xd0);const _0x5051bf=_0x14668c;throw new Error(_0x5051bf[_0x44e655(0x139)]);}static [a46_0xa423ab(0x107)]=null;static['setupBrowserDetails'](_0x5306eb,_0x48d10,_0x1be931=null){const _0x12fca1=a46_0xa423ab,_0x2a6bd9={'dsZyt':function(_0x1f29d6,_0x5a7ce7){return _0x1f29d6===_0x5a7ce7;},'BsHiB':'function','hJGBU':_0x12fca1(0x13b),'HUzDg':_0x12fca1(0x104),'ubbeo':_0x12fca1(0x155),'pHcwq':function(_0x30fc1e,_0x147055,_0x27beb9){return _0x30fc1e(_0x147055,_0x27beb9);},'jhawM':_0x12fca1(0xc6),'LcueO':_0x12fca1(0x175),'GrQvE':function(_0x5f31a8,_0x793c60,_0x17f50c){return _0x5f31a8(_0x793c60,_0x17f50c);},'sBYah':_0x12fca1(0x164),'iLGBV':_0x12fca1(0x11c),'OIkju':_0x12fca1(0x10d),'nLWjG':function(_0x4983ab,_0x3542bc){return _0x4983ab(_0x3542bc);},'Jdmjw':function(_0x519381,_0x658373){return _0x519381===_0x658373;},'STDdv':_0x12fca1(0xd4),'lpPir':_0x12fca1(0xd1),'qhfDH':_0x12fca1(0xc9),'siHWf':function(_0x1a7079,_0x462bbd){return _0x1a7079+_0x462bbd;},'FRPux':_0x12fca1(0x162),'ytzQs':function(_0x260e8e){return _0x260e8e();},'STdyY':_0x12fca1(0x114)},_0x29a3a0=this;return _0x2a6bd9['GrQvE'](o11yErrorHandler,async function _0x1bb7ac(_0x2e19c5,_0x564a76,_0x153255=null){const _0x133ba8=_0x12fca1;let _0x5a7ac8=_0x2e19c5['_name'],_0xe450a3=null;_0x2e19c5&&_0x2a6bd9[_0x133ba8(0xf5)](typeof _0x2e19c5[_0x133ba8(0x10e)],_0x2a6bd9[_0x133ba8(0xf6)])?_0xe450a3=_0x2e19c5['version']():logger[_0x133ba8(0x17b)](_0x2a6bd9[_0x133ba8(0xf1)]);let _0x228c00=null;_0x2e19c5&&_0x2a6bd9['dsZyt'](typeof _0x2e19c5[_0x133ba8(0x127)],_0x2a6bd9[_0x133ba8(0xf6)])?_0x228c00=_0x2e19c5['model']():logger[_0x133ba8(0x17b)](_0x2a6bd9['HUzDg']);let _0x3193d4=null,_0x10e12a=null,_0x6cb2ce=null,_0x13ef8b=_0x2a6bd9['ubbeo'];if(_0x2e19c5['_connection'][_0x133ba8(0x147)]()||global['accessibilityPlatform']){let _0x51eaa1=null;_0x2a6bd9[_0x133ba8(0xd2)](nestedKeyValue,_0x2e19c5,[_0x2a6bd9[_0x133ba8(0x111)],_0x2a6bd9['LcueO']])?_0x51eaa1=_0x2e19c5[_0x133ba8(0xc6)][_0x133ba8(0x175)]:_0x51eaa1=_0x2a6bd9[_0x133ba8(0xf0)](nestedKeyValue,_0x564a76,[_0x2a6bd9['sBYah'],_0x2a6bd9[_0x133ba8(0x13c)],_0x2a6bd9[_0x133ba8(0xc5)]]);const _0x157b4a=_0x153255||_0x51eaa1&&_0x51eaa1[_0x133ba8(0x135)];_0x157b4a&&(_0x13ef8b=_0x2a6bd9['nLWjG'](getCloudProviderFromWsEndpoint,_0x157b4a),_0x2a6bd9['Jdmjw'](_0x13ef8b,_0x2a6bd9[_0x133ba8(0x124)])&&(_0x6cb2ce=constants[_0x133ba8(0xf2)]['test'](_0x157b4a)?_0x2a6bd9['lpPir']:_0x2a6bd9[_0x133ba8(0xe6)],_0x5a7ac8=_0x2a6bd9[_0x133ba8(0x10f)](getBrowserFromWSEndpoint,_0x157b4a)||_0x5a7ac8,_0x3193d4=_0x29a3a0[_0x133ba8(0xeb)][_0x133ba8(0x12d)],_0x10e12a=_0x29a3a0[_0x133ba8(0xeb)][_0x133ba8(0x14b)]));}else{_0x564a76&&_0x564a76[_0x133ba8(0x164)]['use'][_0x133ba8(0x125)]?_0x5a7ac8=_0x2a6bd9['nLWjG'](getBrowserNameFromChannel,_0x564a76['project'][_0x133ba8(0x11c)]['channel']):_0x5a7ac8=_0x2a6bd9[_0x133ba8(0x16b)](_0x2a6bd9['FRPux'],_0x5a7ac8['toLowerCase']());const _0x2188b3=await _0x2a6bd9[_0x133ba8(0xdc)](getPlatformDetails);_0x3193d4=_0x2188b3[_0x133ba8(0x11f)],_0x10e12a=_0x2188b3[_0x133ba8(0xfe)];}const _0x8d77c4={};_0x8d77c4[_0x133ba8(0x173)]=_0x5a7ac8,_0x8d77c4[_0x133ba8(0xfa)]=_0xe450a3,_0x8d77c4[_0x133ba8(0xf4)]={},_0x8d77c4[_0x133ba8(0x12d)]=_0x3193d4,_0x8d77c4[_0x133ba8(0x14b)]=_0x10e12a,_0x8d77c4[_0x133ba8(0x15a)]=_0x6cb2ce;const _0x184ad7=_0x8d77c4;_0x228c00&&(_0x184ad7[_0x133ba8(0xf4)]['deviceModel']=_0x228c00);const _0x264978={};_0x264978[_0x133ba8(0x146)]=_0x13ef8b,_0x29a3a0[_0x133ba8(0xeb)]=Object[_0x133ba8(0x101)]({},_0x29a3a0[_0x133ba8(0xeb)],_0x264978,_0x184ad7);},_0x2a6bd9[_0x12fca1(0xcd)])(_0x5306eb,_0x48d10,_0x1be931);}static[a46_0xa423ab(0x14c)](){const _0x3663d9=a46_0xa423ab;this[_0x3663d9(0xfc)](),this[_0x3663d9(0x15c)]();}static[a46_0xa423ab(0xfc)](){const _0x5b5692=a46_0xa423ab,_0x2fcbb9={'TTQlB':function(_0x40e70e,_0x1c8376,_0x418ed1){return _0x40e70e(_0x1c8376,_0x418ed1);},'FMgBG':_0x5b5692(0xcb),'nVlEp':_0x5b5692(0xdb),'jcZHV':_0x5b5692(0x121),'WXnAf':function(_0x1a62d2,_0x561306,_0x266672){return _0x1a62d2(_0x561306,_0x266672);},'yLxlM':_0x5b5692(0xd9),'MRZrd':'pwPage','HXZEQ':function(_0x4f72ea,_0x5a6355){return _0x4f72ea===_0x5a6355;},'NPMJz':_0x5b5692(0x13e),'OxvKh':function(_0x11504b,_0x1c7707,_0x4ab45c,_0xb4fcd){return _0x11504b(_0x1c7707,_0x4ab45c,_0xb4fcd);},'SuYlz':function(_0x20267b,_0x21f69d){return _0x20267b(_0x21f69d);},'hndcH':_0x5b5692(0xf8),'SYrjU':'client','XZEbj':_0x5b5692(0x141),'VpkFi':function(_0x47300d,_0x585315){return _0x47300d(_0x585315);},'PvcNC':function(_0x1bdd5d,_0x3e69d7){return _0x1bdd5d(_0x3e69d7);},'tjSSe':_0x5b5692(0x100),'CZQUe':function(_0x4d04df,_0x6fc8e1){return _0x4d04df(_0x6fc8e1);},'sDNGZ':function(_0x3f3fd3,_0x5087ce){return _0x3f3fd3!=_0x5087ce;},'WdZiF':function(_0x3880f2){return _0x3880f2();},'ylxdz':'sendMessageToServer','PqmSi':function(_0x27e1f4,_0x447f21){return _0x27e1f4(_0x447f21);},'VWBSA':'dispatch','QFjCw':function(_0x100585,_0x3fde2e){return _0x100585(_0x3fde2e);}},_0x1cc5fa=this;if(!this[_0x5b5692(0x118)])try{const _0x263dc0=path[_0x5b5692(0x108)](_0x2fcbb9[_0x5b5692(0x122)],_0x2fcbb9['SYrjU'],_0x2fcbb9[_0x5b5692(0xd8)]),_0x2b8559=_0x2fcbb9[_0x5b5692(0x168)](importFileFromPWCore,_0x263dc0);!_0x2b8559?_0x2fcbb9[_0x5b5692(0x178)](debug,_0x2fcbb9['tjSSe']):this['Connection']=_0x2b8559[_0x5b5692(0x118)];}catch(_0x2c541b){_0x2fcbb9['CZQUe'](debug,_0x5b5692(0x179)+_0x2c541b[_0x5b5692(0x171)]());}const _0x234ba9=this[_0x5b5692(0x118)];try{if(_0x2fcbb9[_0x5b5692(0x11d)](_0x234ba9,null)){const _0x20e1d3=_0x234ba9[_0x5b5692(0xec)][_0x5b5692(0xf9)],_0x5776b7=_0x234ba9[_0x5b5692(0xec)][_0x5b5692(0x119)];_0x2fcbb9[_0x5b5692(0x160)](isAccessibilityAutomationSession)&&Object[_0x5b5692(0x158)](_0x234ba9[_0x5b5692(0xec)],_0x2fcbb9[_0x5b5692(0x126)],{'get':function(){const _0x69f773=_0x5b5692,_0x2d48c0={'DteNO':function(_0x45ee5d,_0x3ac9aa,_0x1ef170){return _0x2fcbb9['TTQlB'](_0x45ee5d,_0x3ac9aa,_0x1ef170);},'llKZi':_0x2fcbb9['FMgBG'],'ARWNe':_0x2fcbb9[_0x69f773(0x14f)],'TUxSV':_0x2fcbb9[_0x69f773(0xea)],'wFlfh':function(_0x2708ca,_0x2065c3,_0x51130e){const _0x4ca404=_0x69f773;return _0x2fcbb9[_0x4ca404(0x10c)](_0x2708ca,_0x2065c3,_0x51130e);},'bdAtC':_0x2fcbb9[_0x69f773(0x161)],'KuKAy':_0x2fcbb9[_0x69f773(0xdd)],'UbJUU':function(_0x682974,_0xac9eb5){const _0x3d7116=_0x69f773;return _0x2fcbb9[_0x3d7116(0x14d)](_0x682974,_0xac9eb5);},'fFUvN':_0x2fcbb9['NPMJz'],'FkZJn':function(_0x40cde0,_0x1948a9,_0x534ffb,_0x4d3443){const _0xa24474=_0x69f773;return _0x2fcbb9[_0xa24474(0x142)](_0x40cde0,_0x1948a9,_0x534ffb,_0x4d3443);}};return async function(){const _0x2c5d43=_0x69f773;try{if(!global['bstackPerformA11yScan']&&global['accessibilityPlatform']&&_0x2d48c0[_0x2c5d43(0x15f)](nestedKeyValue,global['__workerDetails'],[_0x2d48c0['llKZi'],_0x2d48c0[_0x2c5d43(0x145)],_0x2d48c0[_0x2c5d43(0xcc)]])&&_0x2d48c0[_0x2c5d43(0x150)](shouldScanTestForAccessibility,global[_0x2c5d43(0xd9)][_0x2c5d43(0xcb)][_0x2c5d43(0xdb)]['titlePath'],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0x2c5d43(0x17b)](_0x2c5d43(0xca)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x3686d5=_0x2d48c0[_0x2c5d43(0x150)](nestedKeyValue,global,[_0x2d48c0['bdAtC'],_0x2d48c0[_0x2c5d43(0x123)]]);if(_0x3686d5){const _0x5dfa74={};_0x5dfa74[_0x2c5d43(0x11a)]=arguments[0x1],logger[_0x2c5d43(0x144)](_0x2c5d43(0x12e)+util[_0x2c5d43(0x16d)](await AccessibilityHelper[_0x2c5d43(0xde)](_0x3686d5,_0x5dfa74)));}if(_0x2d48c0[_0x2c5d43(0x167)](arguments[0x0][_0x2c5d43(0x16c)],_0x2d48c0['fFUvN'])&&global[_0x2c5d43(0x152)]){const _0x4a9059={};_0x4a9059[_0x2c5d43(0x11a)]=arguments[0x1],logger[_0x2c5d43(0x144)](_0x2c5d43(0xe3)+util[_0x2c5d43(0x16d)](await _0x2d48c0[_0x2c5d43(0x16e)](browserStackExecuteDriver,global[_0x2c5d43(0x152)],scripts[_0x2c5d43(0xde)],_0x4a9059)));}}}catch(_0x12ade7){logger['debug'](_0x2c5d43(0x115)+util[_0x2c5d43(0x16d)](_0x12ade7));}return global[_0x2c5d43(0x12f)]=![],_0x5776b7[_0x2c5d43(0xd6)](this,arguments);};}}),!_0x2fcbb9[_0x5b5692(0x17e)](isFalse,process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x5b5692(0x158)](_0x234ba9[_0x5b5692(0xec)],_0x2fcbb9[_0x5b5692(0xc4)],{'get':function(){const _0x1d8907={'RZbGf':function(_0x3de43f,_0x2483e7){const _0x20169d=a46_0x2d3a;return _0x2fcbb9[_0x20169d(0x14e)](_0x3de43f,_0x2483e7);},'VXhhH':function(_0x57e50a,_0x5aff16){return _0x2fcbb9['SuYlz'](_0x57e50a,_0x5aff16);}};return async function _0x39df84(_0x1ff331){const _0x8f4800=a46_0x2d3a;if(BrowserstackCLI[_0x8f4800(0xce)]()[_0x8f4800(0x102)]()){const _0x2021f1={};_0x2021f1[_0x8f4800(0x12b)]=_0x1ff331,await BrowserstackCLI[_0x8f4800(0xce)]()[_0x8f4800(0x17d)]()[_0x8f4800(0x131)](AutomationFrameworkState[_0x8f4800(0x166)],HookState[_0x8f4800(0xfd)],_0x2021f1);}else{const _0x279001=_0x1ff331&&_0x1ff331[_0x8f4800(0x109)]&&_0x1ff331[_0x8f4800(0x109)][_0x8f4800(0x130)];if(_0x279001){const _0x3f2594=_0x279001[_0x8f4800(0x137)],_0x52d703=_0x279001[_0x8f4800(0x148)];_0x52d703&&(_0x1d8907[_0x8f4800(0x105)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x52d703[_0x8f4800(0x171)]()),_0x1cc5fa['currentSessionDetails'][_0x8f4800(0x12d)]=_0x52d703['platformName'],_0x1cc5fa['currentSessionDetails'][_0x8f4800(0x14b)]=_0x52d703[_0x8f4800(0xfe)]),_0x3f2594&&(_0x1d8907[_0x8f4800(0x177)](debug,_0x8f4800(0xe2)+_0x3f2594),_0x1cc5fa[_0x8f4800(0xeb)][_0x8f4800(0x172)]=_0x3f2594);}}return _0x20e1d3['apply'](this,arguments);};}});}}catch(_0x536d17){_0x2fcbb9['QFjCw'](debug,_0x5b5692(0x13a)+_0x536d17),_0x1cc5fa[_0x5b5692(0x107)]=_0x536d17[_0x5b5692(0x171)]();}}static[a46_0xa423ab(0x15c)](){const _0x1bfd41=a46_0xa423ab,_0x4c551e={'LZTFZ':function(_0x14d5bd,_0xc7496d){return _0x14d5bd(_0xc7496d);},'lHDeR':function(_0x55d59f){return _0x55d59f();},'aQAyV':'lib','xsOjs':_0x1bfd41(0x103),'RILsL':'chromium','pbpVN':'crConnection.js','vAsUb':function(_0x1d9d19,_0x22de20){return _0x1d9d19(_0x22de20);},'LtofU':'Not\x20able\x20to\x20import\x20crConnection','TFqCe':_0x1bfd41(0x17f),'GTShI':function(_0x2a222b,_0x43ccd1){return _0x2a222b!=_0x43ccd1;},'jDeJR':_0x1bfd41(0x174),'ftoSi':function(_0x1a65fa,_0x1604da){return _0x1a65fa(_0x1604da);}},_0x2faa04=this;if(_0x4c551e[_0x1bfd41(0x13d)](isAccessibilityAutomationSession)){let _0x1f41c7=null;try{const _0xf1028a=path[_0x1bfd41(0x108)](_0x4c551e[_0x1bfd41(0x154)],_0x4c551e[_0x1bfd41(0x140)],_0x4c551e[_0x1bfd41(0x120)],_0x4c551e[_0x1bfd41(0x15e)]),_0x9ff804=_0x4c551e[_0x1bfd41(0x151)](importFileFromPWCore,_0xf1028a);!_0x9ff804?_0x4c551e[_0x1bfd41(0x151)](debug,_0x4c551e[_0x1bfd41(0xee)]):_0x1f41c7=_0x9ff804[_0x1bfd41(0xf7)];}catch(_0x131481){_0x4c551e[_0x1bfd41(0x151)](debug,_0x4c551e[_0x1bfd41(0x157)]);}try{if(_0x4c551e[_0x1bfd41(0x16f)](_0x1f41c7,null)){const _0x3f31ce=_0x1f41c7['prototype'][_0x1bfd41(0x174)];Object[_0x1bfd41(0x158)](_0x1f41c7[_0x1bfd41(0xec)],_0x4c551e[_0x1bfd41(0xc7)],{'get':function(){const _0x3fe4bc={'HrjUd':function(_0x40707b,_0x3ac92f){return _0x4c551e['LZTFZ'](_0x40707b,_0x3ac92f);},'DipVr':function(_0x5df9d5,_0x57d115){const _0x2779c0=a46_0x2d3a;return _0x4c551e[_0x2779c0(0x13f)](_0x5df9d5,_0x57d115);}};return async function _0x5d211a(_0xe026ff){const _0x1fba0f=a46_0x2d3a;try{if(BrowserstackCLI[_0x1fba0f(0xce)]()['isRunning']()){const _0x1bd6ab={};_0x1bd6ab['message']=_0xe026ff,await BrowserstackCLI['getInstance']()[_0x1fba0f(0x17d)]()['trackEvent'](AutomationFrameworkState[_0x1fba0f(0x166)],HookState[_0x1fba0f(0xfd)],_0x1bd6ab),delete _0xe026ff[_0x1fba0f(0xed)];}else{const _0x2b99d4=_0xe026ff[_0x1fba0f(0xed)];if(_0x2b99d4){delete _0xe026ff[_0x1fba0f(0xed)];const _0x1fad6c=_0x2b99d4['sessionId'],_0x536778=_0x2b99d4['platformDetails'];_0x536778&&(_0x3fe4bc['HrjUd'](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0x536778['toString']()),_0x2faa04['currentSessionDetails'][_0x1fba0f(0x12d)]=_0x536778['platformName'],_0x2faa04[_0x1fba0f(0xeb)][_0x1fba0f(0x14b)]=_0x536778[_0x1fba0f(0xfe)]),_0x1fad6c&&(_0x3fe4bc[_0x1fba0f(0xff)](debug,_0x1fba0f(0xfb)+_0x1fad6c),_0x2faa04['currentSessionDetails'][_0x1fba0f(0x172)]=_0x1fad6c);}}}catch(_0x148d0c){_0x3fe4bc[_0x1fba0f(0xff)](debug,_0x1fba0f(0x11e)+_0x148d0c[_0x1fba0f(0x171)]());}return _0x3f31ce['apply'](this,arguments);};}});}}catch(_0x194bc8){_0x4c551e[_0x1bfd41(0xda)](debug,_0x1bfd41(0x113)+_0x194bc8),_0x2faa04['sessionError']=_0x194bc8['toString']();}}}static[a46_0xa423ab(0x117)](){const _0x5d03dd=a46_0xa423ab;return this[_0x5d03dd(0xeb)];}}module[a46_0xa423ab(0x133)]=PlaywrightSessionDetails;
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a47_0x207087=a47_0x2a22;(function(_0x463ab7,_0x51d8bc){const _0x2f779f=a47_0x2a22,_0x3a4164=_0x463ab7();while(!![]){try{const _0x51f033=-parseInt(_0x2f779f(0x184))/0x1+parseInt(_0x2f779f(0x19f))/0x2*(parseInt(_0x2f779f(0x167))/0x3)+-parseInt(_0x2f779f(0x18e))/0x4*(-parseInt(_0x2f779f(0x1be))/0x5)+parseInt(_0x2f779f(0x1dd))/0x6*(parseInt(_0x2f779f(0x170))/0x7)+parseInt(_0x2f779f(0x14d))/0x8*(-parseInt(_0x2f779f(0x1ac))/0x9)+parseInt(_0x2f779f(0x15e))/0xa+-parseInt(_0x2f779f(0x179))/0xb*(-parseInt(_0x2f779f(0x1c7))/0xc);if(_0x51f033===_0x51d8bc)break;else _0x3a4164['push'](_0x3a4164['shift']());}catch(_0x32f484){_0x3a4164['push'](_0x3a4164['shift']());}}}(a47_0x26ba,0x27808));function a47_0x26ba(){const _0x460304=['10PJbauc','ats','winstonLogger','sheyz','--config','vUvZa','qeUel','spawn','--mochaRequire','2124sjpdqO','--no-package','DZjmw','./load/index','keaAE','describe','setBrowserStackAutomationDisable','WcdNB','strict','command','run','./mocha/command','./v2/browserstackCLI','roNFh','../helpers/logger','format','findAndReplace','CODECEPTJS','exitProcess','handler','vanilla','HST','6vXQotf','../helpers/performance/constants','exitCode','cgtGW','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','join','argv','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','../helpers/utilities','1037992WuqhgK','./integrations/command','child_process','VERSION','dot-notation','parserConfiguration','--opts','Parsing\x20command\x20line\x20arguments','xpLCR','option','mocha/lib/cli/run.js','usage','load\x20[subcommand]','getConfigPath','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','env','codeceptjs','531890jDXcfG','find','error','../helpers/helper','jest','start','mocha/lib/cli/cli.js','jPsqp','ZnMeS','6330MqtRpq','OLymv','ztPyZ','MOCHA','HELP','--require','vboTZ','path','SDK_CLEANUP','358099NMBWOv','dfzQj','NIGHTWATCH','mocha','INTEGRATIONS','VANILLA','--no-opts','YvFaP','uNfQM','9999EXrrpS','help','pbyuh','sendLogs','FWQYh','sJJMV','mocha/lib/cli/commands.js','wZpCp','--no-config','setTestObservabilityDisable','zUADv','241532uKIQZp','existsSync','wrap','isUndefined','--package','tvhZE','vCnJQ','wyBeR','.browserstack','info','417524GEWhXx','NQjGU','CUCUMBER','ApqwP','DdJap','RkNYY','integrations','../helpers/BrowserStackSetup','./nightwatch/command','./codeceptjs/command','SDKTestSuccessful','boolean','framework','alias','sAXRM','end','JEST','56yOvkJn','puExF','Show\x20help','version','PLAYWRIGHT','.local-not-set.json','SDK_SETUP','push','showHelpOnFail','GIHpE','config','JsZpt','debug','9jnyXAF','../helpers/performance/performance-tester','YFZbb','EVENTS','stop','../helpers/test-observability/constants','unlinkSync','./utils/constants','homedir','bAOTp','playwright','INFO','yargs','includes','slice','Running\x20SDK\x20with\x20args\x20','Ahgqv','util'];a47_0x26ba=function(){return _0x460304;};return a47_0x26ba();}function a47_0x2a22(_0x22ec22,_0x507922){const _0x26bacb=a47_0x26ba();return a47_0x2a22=function(_0x2a2232,_0x304445){_0x2a2232=_0x2a2232-0x14d;let _0x4bce49=_0x26bacb[_0x2a2232];return _0x4bce49;},a47_0x2a22(_0x22ec22,_0x507922);}const fs=require('fs'),path=require(a47_0x207087(0x16e)),util=require(a47_0x207087(0x1bd)),spawn=require(a47_0x207087(0x14f))[a47_0x207087(0x1c5)],{requireModule}=require(a47_0x207087(0x161)),PerformanceTester=require(a47_0x207087(0x1ad)),PerformanceEvents=require(a47_0x207087(0x1de))[a47_0x207087(0x1af)],helper=require('../helpers/helper'),utilities=require(a47_0x207087(0x1e5)),{default:BrowserStackSetup}=require(a47_0x207087(0x195)),{FRAMEWORKS}=require(a47_0x207087(0x1b1)),runIntegrations=require(a47_0x207087(0x14e)),yargs=require(a47_0x207087(0x1b8)),Constants=require(a47_0x207087(0x1b3)),BrowserstackCLI=require(a47_0x207087(0x1d3)),logger=require(a47_0x207087(0x1d5))[a47_0x207087(0x1c0)],origArgs=Object['assign']([],process['argv']),captureError=async(_0x4196b8,_0x3d4565,_0x52a3c1,_0x4e90f4=null)=>{const _0x4a1429=a47_0x207087,_0x1de9a6={'ApqwP':function(_0x1148e4,_0x396cf6,_0x3b4d04,_0x3b50df){return _0x1148e4(_0x396cf6,_0x3b4d04,_0x3b50df);},'OLymv':_0x4a1429(0x198)};try{logger[_0x4a1429(0x18d)](_0x4a1429(0x1bb)+origArgs[_0x4a1429(0x1e2)]('\x20')),await _0x1de9a6[_0x4a1429(0x191)](_0x4196b8,_0x3d4565,_0x4e90f4,_0x52a3c1);}catch(_0x3be778){process[_0x4a1429(0x1df)]=0x1,logger[_0x4a1429(0x160)](util[_0x4a1429(0x1d6)](_0x3be778));const _0x2e381c={'globalException':util[_0x4a1429(0x1d6)]('%j',_0x3be778)};PerformanceTester[_0x4a1429(0x19d)](PerformanceEvents[_0x4a1429(0x1a5)],![],util[_0x4a1429(0x1d6)](_0x3be778));if(helper['isUndefined'](global[_0x4a1429(0x1a9)])&&helper[_0x4a1429(0x187)](global[_0x4a1429(0x19a)]))return;try{utilities['fireFunnelTestEvent'](_0x1de9a6[_0x4a1429(0x168)],_0x2e381c,global[_0x4a1429(0x1a9)],global[_0x4a1429(0x19a)]);}catch(_0x598095){logger[_0x4a1429(0x1ab)](_0x4a1429(0x1e4)+_0x598095['stack']);}try{await helper[_0x4a1429(0x17c)](global[_0x4a1429(0x1a9)]);}catch(_0x45b8fb){logger[_0x4a1429(0x1ab)](_0x4a1429(0x15b)+_0x45b8fb['stack']);}await BrowserstackCLI['getInstance']()[_0x4a1429(0x1b0)](),PerformanceTester['end'](PerformanceEvents[_0x4a1429(0x1a5)],![],util[_0x4a1429(0x1d6)](_0x3be778));}finally{PerformanceTester[_0x4a1429(0x163)](PerformanceEvents[_0x4a1429(0x16f)]);}};try{const browserstackFolderPath=path[a47_0x207087(0x1e2)](helper[a47_0x207087(0x1b4)](),a47_0x207087(0x18c));if(fs[a47_0x207087(0x185)](browserstackFolderPath)){const filePath=path[a47_0x207087(0x1e2)](browserstackFolderPath,a47_0x207087(0x1a4));fs['existsSync'](filePath)&&fs[a47_0x207087(0x1b2)](filePath);}}catch(a47_0x415d7f){logger[a47_0x207087(0x1ab)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a47_0x415d7f['message']);}process[a47_0x207087(0x1e3)][a47_0x207087(0x1b9)]('mocha')&&(!process[a47_0x207087(0x1e3)][a47_0x207087(0x1b9)](a47_0x207087(0x153))&&process[a47_0x207087(0x1e3)]['push'](a47_0x207087(0x176)),!process[a47_0x207087(0x1e3)][a47_0x207087(0x15f)](_0x35c9cf=>_0x35c9cf['includes'](a47_0x207087(0x1c2)))&&process[a47_0x207087(0x1e3)][a47_0x207087(0x1a6)](a47_0x207087(0x181)),!process[a47_0x207087(0x1e3)][a47_0x207087(0x1b9)](a47_0x207087(0x188))&&process['argv'][a47_0x207087(0x1a6)](a47_0x207087(0x1c8)),helper[a47_0x207087(0x1d7)](process['argv'],a47_0x207087(0x16c),a47_0x207087(0x1c6)));PerformanceTester[a47_0x207087(0x163)](PerformanceEvents[a47_0x207087(0x1a5)]);const a47_0x598ccd={};a47_0x598ccd[a47_0x207087(0x151)]=![];const argv=yargs[a47_0x207087(0x152)](a47_0x598ccd)[a47_0x207087(0x158)]('usage:\x20$0\x20<command>\x20[args]')[a47_0x207087(0x19b)]('v',a47_0x207087(0x1a2))[a47_0x207087(0x1cc)]('v')['alias']('h','help')['help'](a47_0x207087(0x17a))[a47_0x207087(0x1a7)](!![],Constants[a47_0x207087(0x150)][a47_0x207087(0x16b)])[a47_0x207087(0x1d0)](a47_0x207087(0x162),Constants[a47_0x207087(0x19e)][a47_0x207087(0x1b7)],function(_0x272c6b){const _0x1846f1=a47_0x207087,_0x11bb89={'iwKOc':_0x1846f1(0x162),'xpLCR':function(_0x37e94e,_0x1cec18,_0x59bbca,_0x1f7c4f,_0xef4baf){return _0x37e94e(_0x1cec18,_0x59bbca,_0x1f7c4f,_0xef4baf);},'YzheH':function(_0x1545b5,_0x1d9d1b){return _0x1545b5(_0x1d9d1b);},'DdJap':'./jest/command'},_0x20dd87=process[_0x1846f1(0x1e3)][_0x1846f1(0x1ba)](0x2);helper['setTestObservabilityDisable'](),helper[_0x1846f1(0x1cd)]();const _0x26069e=new BrowserStackSetup(_0x272c6b['argv'],_0x11bb89['iwKOc']);return _0x11bb89[_0x1846f1(0x155)](captureError,_0x11bb89['YzheH'](require,_0x11bb89[_0x1846f1(0x192)]),_0x272c6b['argv'],_0x26069e,_0x20dd87);})[a47_0x207087(0x1d0)](a47_0x207087(0x173),Constants[a47_0x207087(0x16a)][a47_0x207087(0x1b7)],_0x34793b=>{const _0x495629=a47_0x207087,_0x42b03f={'tvhZE':function(_0x45c2ae,_0x16ef74,_0x11d7be,_0x2a760d){return _0x45c2ae(_0x16ef74,_0x11d7be,_0x2a760d);},'jPsqp':function(_0x526813,_0x29f577){return _0x526813(_0x29f577);},'WcdNB':_0x495629(0x1d2),'sJJMV':_0x495629(0x173),'MRptO':_0x495629(0x154),'wyBeR':function(_0x14e8b5,_0x150c30,_0xeaed75){return _0x14e8b5(_0x150c30,_0xeaed75);},'qeUel':_0x495629(0x157),'vCnJQ':function(_0x3469d1,_0x9702c8,_0x3566ad){return _0x3469d1(_0x9702c8,_0x3566ad);},'roNFh':_0x495629(0x17f),'NQjGU':_0x495629(0x164),'zUADv':function(_0x5a32e3){return _0x5a32e3();}};process[_0x495629(0x1e3)]=process['argv'][_0x495629(0x1ba)](0x1),helper[_0x495629(0x182)](),helper[_0x495629(0x1cd)]();const _0x22f985=new BrowserStackSetup(_0x34793b[_0x495629(0x1e3)],_0x42b03f[_0x495629(0x17e)]);logger['debug'](_0x42b03f['MRptO']);const _0x3fe6b0=_0x42b03f[_0x495629(0x18b)](requireModule,_0x42b03f[_0x495629(0x1c4)],_0x42b03f[_0x495629(0x17e)]),_0x3a64fa=_0x42b03f[_0x495629(0x18a)](requireModule,_0x42b03f[_0x495629(0x1d4)],_0x42b03f[_0x495629(0x17e)]);delete _0x3fe6b0['handler'],_0x3fe6b0[_0x495629(0x1da)]=function(_0x374b33){const _0x399033=_0x495629;return _0x42b03f[_0x399033(0x189)](captureError,_0x42b03f[_0x399033(0x165)](require,_0x42b03f[_0x399033(0x1ce)]),_0x374b33,_0x22f985);},_0x3a64fa[_0x495629(0x1d1)]=_0x3fe6b0;const {main:_0x46c301}=_0x42b03f[_0x495629(0x18a)](requireModule,_0x42b03f[_0x495629(0x18f)],_0x42b03f['sJJMV']);_0x42b03f[_0x495629(0x183)](_0x46c301);})['command']('cucumber-js',Constants[a47_0x207087(0x190)]['INFO'],function(_0x47dbcd){const _0x501709=a47_0x207087,_0x45c9fc={'uNfQM':'cucumber-js','RkNYY':function(_0x3151b5,_0x5e84a0,_0x1ca91a,_0x1b4ffa,_0x49df8d){return _0x3151b5(_0x5e84a0,_0x1ca91a,_0x1b4ffa,_0x49df8d);},'vUvZa':function(_0x304a7b,_0x4ffaba){return _0x304a7b(_0x4ffaba);},'wZpCp':'./cucumber-js/command'},_0x8f13be=process[_0x501709(0x1e3)][_0x501709(0x1ba)](0x2),_0x383e18=new BrowserStackSetup(_0x47dbcd['argv'],_0x45c9fc[_0x501709(0x178)]);return _0x45c9fc[_0x501709(0x193)](captureError,_0x45c9fc[_0x501709(0x1c3)](require,_0x45c9fc[_0x501709(0x180)]),_0x47dbcd[_0x501709(0x1e3)],_0x383e18,_0x8f13be);})[a47_0x207087(0x1d0)]('node',Constants[a47_0x207087(0x175)]['INFO'],function(_0x3edfd0){const _0x53711f=a47_0x207087,_0x22566c={'cgtGW':_0x53711f(0x1db),'JsZpt':function(_0x463651,_0x5823c7,_0x360c55,_0x3b6056,_0xa3eddd){return _0x463651(_0x5823c7,_0x360c55,_0x3b6056,_0xa3eddd);},'XLEQA':function(_0x13a1db,_0xbaa66a){return _0x13a1db(_0xbaa66a);},'Ahgqv':'./vanilla-js/command'},_0x122deb=process['argv'][_0x53711f(0x1ba)](0x2),_0x335973=new BrowserStackSetup(_0x3edfd0[_0x53711f(0x1e3)],_0x22566c[_0x53711f(0x1e0)]);return _0x22566c[_0x53711f(0x1aa)](captureError,_0x22566c['XLEQA'](require,_0x22566c[_0x53711f(0x1bc)]),_0x3edfd0[_0x53711f(0x1e3)],_0x335973,_0x122deb);})['command']('nightwatch',Constants[a47_0x207087(0x172)][a47_0x207087(0x1b7)],function(_0x1a203c){const _0x14646d=a47_0x207087,_0x34157c={'ztPyZ':function(_0x180521,_0x20d297,_0x16281c,_0x4b7d76,_0xea4d4e){return _0x180521(_0x20d297,_0x16281c,_0x4b7d76,_0xea4d4e);},'YvFaP':function(_0x93108,_0x48b460){return _0x93108(_0x48b460);},'sAXRM':_0x14646d(0x196)},_0x90a069=process['argv'][_0x14646d(0x1ba)](0x2),_0x10384d=new BrowserStackSetup(_0x1a203c[_0x14646d(0x1e3)]);return _0x34157c[_0x14646d(0x169)](captureError,_0x34157c[_0x14646d(0x177)](require,_0x34157c[_0x14646d(0x19c)]),_0x1a203c[_0x14646d(0x1e3)],_0x10384d,_0x90a069);})[a47_0x207087(0x1d0)](a47_0x207087(0x15d),Constants[a47_0x207087(0x1d8)]['INFO'],function(_0x16ea2c){const _0x10eb65=a47_0x207087,_0x172db4={'ZnMeS':_0x10eb65(0x15d),'puExF':function(_0x13d8ea,_0x51d603,_0x16e5a2,_0x3ee7bf,_0x14e6d1){return _0x13d8ea(_0x51d603,_0x16e5a2,_0x3ee7bf,_0x14e6d1);},'dlCFV':function(_0x18c258,_0x5531e1){return _0x18c258(_0x5531e1);},'YFZbb':_0x10eb65(0x197)},_0x8b7ccf=process['argv'][_0x10eb65(0x1ba)](0x2),_0x4ecd08=new BrowserStackSetup(_0x16ea2c[_0x10eb65(0x1e3)],_0x172db4[_0x10eb65(0x166)]);return _0x172db4[_0x10eb65(0x1a0)](captureError,_0x172db4['dlCFV'](require,_0x172db4[_0x10eb65(0x1ae)]),_0x16ea2c[_0x10eb65(0x1e3)],_0x4ecd08,_0x8b7ccf);})[a47_0x207087(0x1d0)]('ats',Constants[a47_0x207087(0x1dc)][a47_0x207087(0x1b7)],function(_0x588f44){const _0x5eb7fc=a47_0x207087,_0xcc9657={'GIHpE':function(_0x3c56d9,_0x15063c,_0x2e22b1){return _0x3c56d9(_0x15063c,_0x2e22b1);},'dfzQj':function(_0x37794b,_0x11ff06){return _0x37794b(_0x11ff06);},'xuvWQ':'../../ats/src/index'},_0x496c33=process[_0x5eb7fc(0x1e3)][_0x5eb7fc(0x1ba)](0x2);return _0xcc9657[_0x5eb7fc(0x1a8)](captureError,_0xcc9657[_0x5eb7fc(0x171)](require,_0xcc9657['xuvWQ']),_0x588f44);})[a47_0x207087(0x1d0)](a47_0x207087(0x194),Constants[a47_0x207087(0x174)][a47_0x207087(0x1b7)],function(_0x5f3bce){const _0x379d86={'GQCrZ':function(_0x5005ef,_0x411642){return _0x5005ef(_0x411642);}};return _0x379d86['GQCrZ'](runIntegrations,_0x5f3bce);})[a47_0x207087(0x1d0)](a47_0x207087(0x1b6),Constants[a47_0x207087(0x1a3)][a47_0x207087(0x1b7)],function(_0x1be1db){const _0x2bc9bd=a47_0x207087,_0x502f34={'GCCMI':function(_0xd46aae,_0xee1ae6,_0x170de0,_0x142420,_0x1134ba){return _0xd46aae(_0xee1ae6,_0x170de0,_0x142420,_0x1134ba);},'bAOTp':function(_0x46f428,_0xe87b70){return _0x46f428(_0xe87b70);},'pbyuh':'./playwright/command'},_0x4c9570=process[_0x2bc9bd(0x1e3)][_0x2bc9bd(0x1ba)](0x2);helper['getConfigPath'](process[_0x2bc9bd(0x1e3)])&&(process[_0x2bc9bd(0x15c)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x2bc9bd(0x15a)](process[_0x2bc9bd(0x1e3)]));helper['setTestObservabilityDisable'](),helper[_0x2bc9bd(0x1cd)]();const _0x4746bf=new BrowserStackSetup(_0x1be1db[_0x2bc9bd(0x1e3)],FRAMEWORKS['PLAYWRIGHT']);return _0x502f34['GCCMI'](captureError,_0x502f34[_0x2bc9bd(0x1b5)](require,_0x502f34[_0x2bc9bd(0x17b)]),_0x1be1db[_0x2bc9bd(0x1e3)],_0x4746bf,_0x4c9570);})[a47_0x207087(0x1d0)](a47_0x207087(0x159),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x548e37){const _0x1fc7f5=a47_0x207087,_0x56b958={};_0x56b958[_0x1fc7f5(0x1c9)]=_0x1fc7f5(0x17a),_0x56b958['FWQYh']=_0x1fc7f5(0x199),_0x56b958[_0x1fc7f5(0x16d)]=_0x1fc7f5(0x1a1);const _0x2aeb30=_0x56b958;return _0x548e37['help'](![])[_0x1fc7f5(0x156)](_0x2aeb30[_0x1fc7f5(0x1c9)],{'alias':'h','type':_0x2aeb30[_0x1fc7f5(0x17d)],'describe':_0x2aeb30[_0x1fc7f5(0x16d)]})[_0x1fc7f5(0x1cf)](![])[_0x1fc7f5(0x1d9)](![]);},function(_0x14b63d){const _0xf2469e=a47_0x207087,_0x123749={'keaAE':function(_0x58a6dd,_0x379a82,_0xd4573f){return _0x58a6dd(_0x379a82,_0xd4573f);},'sheyz':function(_0x1e3e87,_0x1efba1){return _0x1e3e87(_0x1efba1);},'wmwnb':_0xf2469e(0x1ca)},_0x1a33cc={};return _0x1a33cc[_0xf2469e(0x1e3)]=_0x14b63d,_0x123749[_0xf2469e(0x1cb)](captureError,_0x123749[_0xf2469e(0x1c1)](require,_0x123749['wmwnb']),_0x1a33cc);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a47_0x207087(0x186)](null)[a47_0x207087(0x1e3)];!helper[a47_0x207087(0x187)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a47_0x207087(0x1bf)&&console['error'](a47_0x207087(0x1e1));
2
+ 'use strict';const a47_0x306642=a47_0x4806;(function(_0x41e176,_0x1cdd13){const _0x22b4d0=a47_0x4806,_0x1e4fec=_0x41e176();while(!![]){try{const _0x3c2efb=-parseInt(_0x22b4d0(0x145))/0x1*(parseInt(_0x22b4d0(0x180))/0x2)+parseInt(_0x22b4d0(0x17c))/0x3*(parseInt(_0x22b4d0(0x135))/0x4)+-parseInt(_0x22b4d0(0x176))/0x5+parseInt(_0x22b4d0(0x15b))/0x6+-parseInt(_0x22b4d0(0x17a))/0x7*(-parseInt(_0x22b4d0(0x18c))/0x8)+-parseInt(_0x22b4d0(0x13d))/0x9*(-parseInt(_0x22b4d0(0x174))/0xa)+parseInt(_0x22b4d0(0x175))/0xb*(-parseInt(_0x22b4d0(0x10c))/0xc);if(_0x3c2efb===_0x1cdd13)break;else _0x1e4fec['push'](_0x1e4fec['shift']());}catch(_0x179aa5){_0x1e4fec['push'](_0x1e4fec['shift']());}}}(a47_0x4e1f,0x42050));const fs=require('fs'),path=require(a47_0x306642(0x173)),util=require('util'),spawn=require(a47_0x306642(0x15f))['spawn'],{requireModule}=require(a47_0x306642(0x12d)),PerformanceTester=require(a47_0x306642(0x129)),PerformanceEvents=require(a47_0x306642(0x163))[a47_0x306642(0x14d)],helper=require('../helpers/helper'),utilities=require(a47_0x306642(0x147)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a47_0x306642(0x158)),runIntegrations=require(a47_0x306642(0x117)),yargs=require(a47_0x306642(0x186)),Constants=require(a47_0x306642(0x130)),BrowserstackCLI=require('./v2/browserstackCLI'),logger=require(a47_0x306642(0x138))[a47_0x306642(0x110)],origArgs=Object[a47_0x306642(0x11d)]([],process[a47_0x306642(0x178)]),captureError=async(_0x52dd46,_0x444463,_0x2c5cbb,_0x47ce53=null)=>{const _0x5b3924=a47_0x306642,_0x351831={'VJAWK':function(_0x302971,_0x4acb28,_0x582845,_0x582bc8){return _0x302971(_0x4acb28,_0x582845,_0x582bc8);},'ozaQE':_0x5b3924(0x194)};try{logger[_0x5b3924(0x126)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x5b3924(0x14a)]('\x20')),await _0x351831['VJAWK'](_0x52dd46,_0x444463,_0x47ce53,_0x2c5cbb);}catch(_0x5d2c94){process[_0x5b3924(0x150)]=0x1,logger[_0x5b3924(0x182)](util[_0x5b3924(0x185)](_0x5d2c94));const _0x5af56b={'globalException':util[_0x5b3924(0x185)]('%j',_0x5d2c94)};PerformanceTester[_0x5b3924(0x112)](PerformanceEvents[_0x5b3924(0x188)],![],util[_0x5b3924(0x185)](_0x5d2c94));if(helper['isUndefined'](global['config'])&&helper[_0x5b3924(0x142)](global[_0x5b3924(0x15e)]))return;try{utilities[_0x5b3924(0x12b)](_0x351831[_0x5b3924(0x120)],_0x5af56b,global[_0x5b3924(0x165)],global[_0x5b3924(0x15e)]);}catch(_0x2849f6){logger[_0x5b3924(0x10b)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x2849f6['stack']);}try{await helper[_0x5b3924(0x18d)](global[_0x5b3924(0x165)]);}catch(_0x51a554){logger[_0x5b3924(0x10b)](_0x5b3924(0x189)+_0x51a554[_0x5b3924(0x152)]);}await BrowserstackCLI[_0x5b3924(0x151)]()[_0x5b3924(0x162)](),PerformanceTester[_0x5b3924(0x112)](PerformanceEvents[_0x5b3924(0x188)],![],util['format'](_0x5d2c94));}finally{PerformanceTester[_0x5b3924(0x18b)](PerformanceEvents[_0x5b3924(0x187)]);}};try{const browserstackFolderPath=path[a47_0x306642(0x14a)](helper[a47_0x306642(0x12f)](),'.browserstack');if(fs[a47_0x306642(0x13f)](browserstackFolderPath)){const filePath=path[a47_0x306642(0x14a)](browserstackFolderPath,a47_0x306642(0x16d));fs['existsSync'](filePath)&&fs[a47_0x306642(0x16b)](filePath);}}catch(a47_0x3efabd){logger[a47_0x306642(0x10b)](a47_0x306642(0x190)+a47_0x3efabd[a47_0x306642(0x10d)]);}process[a47_0x306642(0x178)][a47_0x306642(0x159)](a47_0x306642(0x124))&&(!process[a47_0x306642(0x178)][a47_0x306642(0x159)](a47_0x306642(0x13e))&&process['argv'][a47_0x306642(0x12e)](a47_0x306642(0x16f)),!process['argv']['find'](_0x27dfb9=>_0x27dfb9['includes'](a47_0x306642(0x143)))&&process['argv'][a47_0x306642(0x12e)](a47_0x306642(0x137)),!process['argv']['includes']('--package')&&process['argv'][a47_0x306642(0x12e)]('--no-package'),helper[a47_0x306642(0x17b)](process[a47_0x306642(0x178)],a47_0x306642(0x116),a47_0x306642(0x199)));PerformanceTester[a47_0x306642(0x18b)](PerformanceEvents[a47_0x306642(0x188)]);const a47_0x43ae2a={};a47_0x43ae2a['dot-notation']=![];function a47_0x4806(_0x560502,_0x1d947f){const _0x4e1fe6=a47_0x4e1f();return a47_0x4806=function(_0x4806b6,_0x5c381d){_0x4806b6=_0x4806b6-0x107;let _0x498b26=_0x4e1fe6[_0x4806b6];return _0x498b26;},a47_0x4806(_0x560502,_0x1d947f);}function a47_0x4e1f(){const _0x103970=['tdqer','error','kJlvz','DHjDb','format','yargs','SDK_CLEANUP','SDK_SETUP','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','INFO','start','8EueMpT','sendLogs','BROWSERSTACK_CONFIG_FILE_PATH','codeceptjs','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','parserConfiguration','PUyJM','demandCommand','SDKTestSuccessful','pbHVQ','uDtub','PLAYWRIGHT','dYVDX','--mochaRequire','CODECEPTJS','INTEGRATIONS','VANILLA','wrap','onBpw','debug','12kUEJZH','message','playwright','slice','winstonLogger','../../ats/src/index','end','usage','ofhuE','LjONR','--require','./integrations/command','vIDvH','EODkO','setTestObservabilityDisable','sMriq','JEST','assign','mocha/lib/cli/commands.js','node','ozaQE','NIGHTWATCH','CUCUMBER','BUsvN','mocha','option','info','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','jest','../helpers/performance/performance-tester','tVhFG','fireFunnelTestEvent','./vanilla-js/command','../helpers/helper','push','homedir','./utils/constants','alias','Ouhlb','OYfyz','./mocha/command','1925956lolDfB','integrations','--no-config','../helpers/logger','ayhsv','setBrowserStackAutomationDisable','QiRox','CjzFv','4950eAIdHq','--opts','existsSync','strict','pMiUy','isUndefined','--config','faSLG','728HbybCI','usage:\x20$0\x20<command>\x20[args]','../helpers/utilities','./load/index','load\x20[subcommand]','join','./nightwatch/command','tAaXR','EVENTS','help','ohFRW','exitCode','getInstance','stack','HnauP','env','AxGGH','ats','handler','../helpers/test-observability/constants','includes','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','459018syyJBQ','describe','cucumber-js','framework','child_process','./cucumber-js/command','command','stop','../helpers/performance/constants','rAvGH','config','getConfigPath','MOCHA','DGpgP','HELP','CeURr','unlinkSync','GlGQE','.local-not-set.json','mHbqw','--no-opts','EFmtT','vqYuG','IxrZq','path','2970YDacEe','7186982JkKgfh','487730PdSAPY','VERSION','argv','./codeceptjs/command','2293522TMebZS','findAndReplace','3FcaVCe','PWZlT','boolean','yPKdP','76oiZFRs'];a47_0x4e1f=function(){return _0x103970;};return a47_0x4e1f();}const argv=yargs[a47_0x306642(0x191)](a47_0x43ae2a)[a47_0x306642(0x113)](a47_0x306642(0x146))[a47_0x306642(0x131)]('v','version')[a47_0x306642(0x15c)]('v')[a47_0x306642(0x131)]('h','help')[a47_0x306642(0x14e)](a47_0x306642(0x14e))['showHelpOnFail'](!![],Constants[a47_0x306642(0x177)][a47_0x306642(0x169)])[a47_0x306642(0x161)](a47_0x306642(0x128),Constants[a47_0x306642(0x11c)]['INFO'],function(_0x232e28){const _0x133bde=a47_0x306642,_0x190fb3={'BUsvN':_0x133bde(0x128),'DGpgP':function(_0x1cb369,_0x331afa,_0x2f77dd,_0xe7f52,_0x2e2204){return _0x1cb369(_0x331afa,_0x2f77dd,_0xe7f52,_0x2e2204);},'OYfyz':function(_0x1b4965,_0x9e6e1){return _0x1b4965(_0x9e6e1);},'yPKdP':'./jest/command'},_0x2cdfa3=process['argv'][_0x133bde(0x10f)](0x2);helper['setTestObservabilityDisable'](),helper[_0x133bde(0x13a)]();const _0x331741=new BrowserStackSetup(_0x232e28['argv'],_0x190fb3[_0x133bde(0x123)]);return _0x190fb3[_0x133bde(0x168)](captureError,_0x190fb3[_0x133bde(0x133)](require,_0x190fb3[_0x133bde(0x17f)]),_0x232e28[_0x133bde(0x178)],_0x331741,_0x2cdfa3);})[a47_0x306642(0x161)](a47_0x306642(0x124),Constants[a47_0x306642(0x167)][a47_0x306642(0x18a)],_0x1b0a39=>{const _0x1a72ac=a47_0x306642,_0x3b5f66={'CjzFv':function(_0x5d22d0,_0x4efdf9,_0x5a8029,_0x5bf593){return _0x5d22d0(_0x4efdf9,_0x5a8029,_0x5bf593);},'PWZlT':function(_0x486ff1,_0x4d921d){return _0x486ff1(_0x4d921d);},'OxRNo':_0x1a72ac(0x134),'vIDvH':'mocha','PUyJM':'Parsing\x20command\x20line\x20arguments','HnauP':function(_0x24e6b8,_0x89c29,_0x566e44){return _0x24e6b8(_0x89c29,_0x566e44);},'LjONR':'mocha/lib/cli/run.js','IxrZq':_0x1a72ac(0x11e),'TNDCL':'mocha/lib/cli/cli.js','tAaXR':function(_0x2a0095){return _0x2a0095();}};process[_0x1a72ac(0x178)]=process[_0x1a72ac(0x178)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper[_0x1a72ac(0x13a)]();const _0xf43f38=new BrowserStackSetup(_0x1b0a39[_0x1a72ac(0x178)],_0x3b5f66[_0x1a72ac(0x118)]);logger['debug'](_0x3b5f66[_0x1a72ac(0x192)]);const _0x516d32=_0x3b5f66[_0x1a72ac(0x153)](requireModule,_0x3b5f66[_0x1a72ac(0x115)],_0x3b5f66[_0x1a72ac(0x118)]),_0xf7ddcc=_0x3b5f66['HnauP'](requireModule,_0x3b5f66[_0x1a72ac(0x172)],_0x3b5f66['vIDvH']);delete _0x516d32[_0x1a72ac(0x157)],_0x516d32[_0x1a72ac(0x157)]=function(_0x396e67){const _0x10827d=_0x1a72ac;return _0x3b5f66[_0x10827d(0x13c)](captureError,_0x3b5f66[_0x10827d(0x17d)](require,_0x3b5f66['OxRNo']),_0x396e67,_0xf43f38);},_0xf7ddcc['run']=_0x516d32;const {main:_0x508d05}=_0x3b5f66[_0x1a72ac(0x153)](requireModule,_0x3b5f66['TNDCL'],_0x3b5f66[_0x1a72ac(0x118)]);_0x3b5f66[_0x1a72ac(0x14c)](_0x508d05);})[a47_0x306642(0x161)]('cucumber-js',Constants[a47_0x306642(0x122)][a47_0x306642(0x18a)],function(_0x2da407){const _0x378b1a=a47_0x306642,_0x2926a9={'UtyMR':_0x378b1a(0x15d),'AxGGH':function(_0x9f5cd8,_0x4cfec0,_0x1eb44a,_0x851d9,_0x4d1d23){return _0x9f5cd8(_0x4cfec0,_0x1eb44a,_0x851d9,_0x4d1d23);},'uDtub':function(_0x42ec2e,_0x4633ca){return _0x42ec2e(_0x4633ca);},'ohFRW':_0x378b1a(0x160)},_0x58485f=process[_0x378b1a(0x178)]['slice'](0x2),_0x72f205=new BrowserStackSetup(_0x2da407[_0x378b1a(0x178)],_0x2926a9['UtyMR']);return _0x2926a9[_0x378b1a(0x155)](captureError,_0x2926a9[_0x378b1a(0x196)](require,_0x2926a9[_0x378b1a(0x14f)]),_0x2da407[_0x378b1a(0x178)],_0x72f205,_0x58485f);})[a47_0x306642(0x161)](a47_0x306642(0x11f),Constants[a47_0x306642(0x108)][a47_0x306642(0x18a)],function(_0x4b187c){const _0x31f672=a47_0x306642,_0x3ed954={'mHbqw':'vanilla','ayhsv':function(_0x47d391,_0x277215,_0x1848bc,_0x1f63e9,_0x5072f4){return _0x47d391(_0x277215,_0x1848bc,_0x1f63e9,_0x5072f4);},'ofhuE':function(_0x44ca2c,_0x28a128){return _0x44ca2c(_0x28a128);},'Ouhlb':_0x31f672(0x12c)},_0x29d7b2=process[_0x31f672(0x178)][_0x31f672(0x10f)](0x2),_0x20b3c4=new BrowserStackSetup(_0x4b187c['argv'],_0x3ed954[_0x31f672(0x16e)]);return _0x3ed954[_0x31f672(0x139)](captureError,_0x3ed954[_0x31f672(0x114)](require,_0x3ed954[_0x31f672(0x132)]),_0x4b187c[_0x31f672(0x178)],_0x20b3c4,_0x29d7b2);})[a47_0x306642(0x161)]('nightwatch',Constants[a47_0x306642(0x121)][a47_0x306642(0x18a)],function(_0x35379b){const _0xc07f9d=a47_0x306642,_0x2e5d77={'vqYuG':function(_0x56b75d,_0x366a99,_0x335db4,_0x352871,_0xa4ba76){return _0x56b75d(_0x366a99,_0x335db4,_0x352871,_0xa4ba76);},'GlGQE':function(_0x4f4aa3,_0x40963b){return _0x4f4aa3(_0x40963b);},'CeURr':_0xc07f9d(0x14b)},_0x2581cf=process['argv']['slice'](0x2),_0x45a3a6=new BrowserStackSetup(_0x35379b['argv']);return _0x2e5d77[_0xc07f9d(0x171)](captureError,_0x2e5d77[_0xc07f9d(0x16c)](require,_0x2e5d77[_0xc07f9d(0x16a)]),_0x35379b[_0xc07f9d(0x178)],_0x45a3a6,_0x2581cf);})[a47_0x306642(0x161)](a47_0x306642(0x18f),Constants[a47_0x306642(0x19a)]['INFO'],function(_0x4d1057){const _0x3a4667=a47_0x306642,_0x18cb7e={'MCTka':_0x3a4667(0x18f),'QiRox':function(_0x51c832,_0x11248e,_0x3ca022,_0x513b37,_0x39b951){return _0x51c832(_0x11248e,_0x3ca022,_0x513b37,_0x39b951);},'EODkO':function(_0x5e0df8,_0x4661ec){return _0x5e0df8(_0x4661ec);},'pMiUy':_0x3a4667(0x179)},_0x18a7ad=process[_0x3a4667(0x178)][_0x3a4667(0x10f)](0x2),_0x46ade5=new BrowserStackSetup(_0x4d1057[_0x3a4667(0x178)],_0x18cb7e['MCTka']);return _0x18cb7e[_0x3a4667(0x13b)](captureError,_0x18cb7e[_0x3a4667(0x119)](require,_0x18cb7e[_0x3a4667(0x141)]),_0x4d1057['argv'],_0x46ade5,_0x18a7ad);})[a47_0x306642(0x161)](a47_0x306642(0x156),Constants['HST'][a47_0x306642(0x18a)],function(_0x191dae){const _0x147198=a47_0x306642,_0x4db537={'kJlvz':function(_0x5a8c69,_0x253125,_0x5897d3){return _0x5a8c69(_0x253125,_0x5897d3);},'faSLG':function(_0x948378,_0x3db9db){return _0x948378(_0x3db9db);},'dYVDX':_0x147198(0x111)},_0xa7f6e7=process[_0x147198(0x178)][_0x147198(0x10f)](0x2);return _0x4db537[_0x147198(0x183)](captureError,_0x4db537[_0x147198(0x144)](require,_0x4db537[_0x147198(0x198)]),_0x191dae);})[a47_0x306642(0x161)](a47_0x306642(0x136),Constants[a47_0x306642(0x107)][a47_0x306642(0x18a)],function(_0x4b2470){const _0xee2eee=a47_0x306642,_0x551476={'pbHVQ':function(_0x50a73a,_0x3cfffe){return _0x50a73a(_0x3cfffe);}};return _0x551476[_0xee2eee(0x195)](runIntegrations,_0x4b2470);})[a47_0x306642(0x161)](a47_0x306642(0x10e),Constants[a47_0x306642(0x197)][a47_0x306642(0x18a)],function(_0x2b5d1a){const _0x2628bf=a47_0x306642,_0x375de5={'DHjDb':function(_0x5a57b8,_0x426273,_0x5eb396,_0x42b7a6,_0x1cb458){return _0x5a57b8(_0x426273,_0x5eb396,_0x42b7a6,_0x1cb458);},'sMriq':function(_0x416d46,_0x5b01cd){return _0x416d46(_0x5b01cd);},'rirSh':'./playwright/command'},_0x4be0ce=process['argv'][_0x2628bf(0x10f)](0x2);helper[_0x2628bf(0x166)](process[_0x2628bf(0x178)])&&(process[_0x2628bf(0x154)][_0x2628bf(0x18e)]=helper['getConfigPath'](process['argv']));helper[_0x2628bf(0x11a)](),helper[_0x2628bf(0x13a)]();const _0x28c6c7=new BrowserStackSetup(_0x2b5d1a[_0x2628bf(0x178)],FRAMEWORKS['PLAYWRIGHT']);return _0x375de5[_0x2628bf(0x184)](captureError,_0x375de5[_0x2628bf(0x11b)](require,_0x375de5['rirSh']),_0x2b5d1a[_0x2628bf(0x178)],_0x28c6c7,_0x4be0ce);})['command'](a47_0x306642(0x149),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x3c2e7c){const _0x14b8ea=a47_0x306642,_0x15640f={};_0x15640f[_0x14b8ea(0x12a)]=_0x14b8ea(0x14e),_0x15640f[_0x14b8ea(0x170)]=_0x14b8ea(0x17e),_0x15640f[_0x14b8ea(0x10a)]='Show\x20help';const _0x301332=_0x15640f;return _0x3c2e7c['help'](![])[_0x14b8ea(0x125)](_0x301332[_0x14b8ea(0x12a)],{'alias':'h','type':_0x301332[_0x14b8ea(0x170)],'describe':_0x301332['onBpw']})[_0x14b8ea(0x140)](![])['exitProcess'](![]);},function(_0x252d34){const _0x9fef6e=a47_0x306642,_0xf0ddbe={'rAvGH':function(_0x27e0f8,_0x3fb2f2,_0x559a3f){return _0x27e0f8(_0x3fb2f2,_0x559a3f);},'DIHXc':function(_0x23f283,_0x175da4){return _0x23f283(_0x175da4);},'tdqer':_0x9fef6e(0x148)},_0x1d6315={};return _0x1d6315[_0x9fef6e(0x178)]=_0x252d34,_0xf0ddbe[_0x9fef6e(0x164)](captureError,_0xf0ddbe['DIHXc'](require,_0xf0ddbe[_0x9fef6e(0x181)]),_0x1d6315);})[a47_0x306642(0x193)](0x1,a47_0x306642(0x15a))[a47_0x306642(0x109)](null)['argv'];!helper[a47_0x306642(0x142)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a47_0x306642(0x156)&&console[a47_0x306642(0x182)](a47_0x306642(0x127));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a48_0x2312e6=a48_0x5ad5;(function(_0x43e78e,_0x32af64){const _0x53eb33=a48_0x5ad5,_0x51640e=_0x43e78e();while(!![]){try{const _0x366d46=parseInt(_0x53eb33(0xa8))/0x1+parseInt(_0x53eb33(0x71))/0x2+parseInt(_0x53eb33(0x9f))/0x3+parseInt(_0x53eb33(0x7b))/0x4+parseInt(_0x53eb33(0x6e))/0x5*(parseInt(_0x53eb33(0x75))/0x6)+-parseInt(_0x53eb33(0x95))/0x7*(-parseInt(_0x53eb33(0x85))/0x8)+-parseInt(_0x53eb33(0xb3))/0x9*(parseInt(_0x53eb33(0x7d))/0xa);if(_0x366d46===_0x32af64)break;else _0x51640e['push'](_0x51640e['shift']());}catch(_0xce043e){_0x51640e['push'](_0x51640e['shift']());}}}(a48_0xb746,0x1afb8));const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a48_0x2312e6(0xae)),yaml=require('js-yaml'),yargs=require(a48_0x2312e6(0x99)),logger=require(a48_0x2312e6(0x98))[a48_0x2312e6(0x89)],configFileTemplate=__dirname+a48_0x2312e6(0xa0),configFileTemplatePW=__dirname+'/../../browserstack.pw.yml.sample',configFile=process['cwd']()+a48_0x2312e6(0x78),packageFile=process['cwd']()+a48_0x2312e6(0xa9),frameworks=['mocha',a48_0x2312e6(0xaf),a48_0x2312e6(0x8e),a48_0x2312e6(0x80),a48_0x2312e6(0x90),a48_0x2312e6(0x94),a48_0x2312e6(0x9e)];let config;logger[a48_0x2312e6(0xaa)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a48_0x2312e6(0xb4)][a48_0x2312e6(0x72)],yargs[a48_0x2312e6(0xb4)][a48_0x2312e6(0x96)],yargs[a48_0x2312e6(0xb4)][a48_0x2312e6(0x9e)]);try{sdkSetup();}catch(a48_0x15ab23){logger[a48_0x2312e6(0x91)](a48_0x2312e6(0xa6)+a48_0x15ab23);}addScriptInPackageJson();function createConfigurationFile(_0xdeed1,_0x5d5464,_0x34d4fb=![]){const _0x2ae337=a48_0x2312e6,_0x2a1787={};_0x2a1787[_0x2ae337(0x6f)]='utf8',_0x2a1787[_0x2ae337(0xb0)]=_0x2ae337(0x9c),_0x2a1787[_0x2ae337(0x77)]=_0x2ae337(0xa1);const _0x150b69=_0x2a1787;try{let _0x31c094=fs['readFileSync'](_0x34d4fb?configFileTemplatePW:configFileTemplate,_0x150b69[_0x2ae337(0x6f)]);_0xdeed1&&(_0x31c094=_0x31c094[_0x2ae337(0x87)](_0x150b69[_0x2ae337(0xb0)],_0xdeed1)),_0x5d5464&&(_0x31c094=_0x31c094[_0x2ae337(0x87)](_0x150b69['kugdK'],_0x5d5464)),config=yaml['load'](_0x31c094),fs['writeFileSync'](configFile,_0x31c094,_0x3b66a4=>{_0x3b66a4&&logger['error'](_0x3b66a4);});}catch(_0x4b8daf){logger[_0x2ae337(0x73)](_0x4b8daf);}}function addPostInstallScript(_0x3f5981,_0x5199ab){const _0x4920c6=a48_0x2312e6,_0x43a1ed={};_0x43a1ed[_0x4920c6(0x7c)]=_0x4920c6(0x74),_0x43a1ed[_0x4920c6(0xb2)]=_0x4920c6(0xab),_0x43a1ed[_0x4920c6(0x7e)]=_0x4920c6(0x76);const _0x399078=_0x43a1ed;let _0x51e4e1=_0x3f5981[_0x399078[_0x4920c6(0x7c)]];if(_0x51e4e1&&_0x51e4e1['includes'](_0x399078[_0x4920c6(0xb2)]))return;!_0x51e4e1?_0x51e4e1=_0x399078[_0x4920c6(0xb2)]:_0x51e4e1+=_0x399078['MhKeN'],_0x5199ab[_0x4920c6(0x81)]([_0x399078[_0x4920c6(0x7c)],_0x51e4e1]);}function addScriptInPackageJson(){const _0x35c13e=a48_0x2312e6,_0x1741c4={'nojMl':_0x35c13e(0x8c),'NwnLy':function(_0x297a84,_0x46918e){return _0x297a84<_0x46918e;},'QkeXJ':function(_0x41c92c,_0x143223,_0x272df7){return _0x41c92c(_0x143223,_0x272df7);},'yXUYU':function(_0x32ddc4,_0x37c8b4,_0x572512){return _0x32ddc4(_0x37c8b4,_0x572512);},'VHvqL':function(_0x36f451,_0x2ec830){return _0x36f451<_0x2ec830;},'HGZbO':function(_0x3e0212,_0x15abc2){return _0x3e0212!==_0x15abc2;},'FfXqG':_0x35c13e(0xa4)},_0x54e35e=JSON['parse'](fs[_0x35c13e(0xa5)](packageFile,_0x1741c4['nojMl'])),_0x62ad96=[];for(let _0x1125d6=0x0;_0x1741c4[_0x35c13e(0x8b)](_0x1125d6,frameworks[_0x35c13e(0x7f)]);_0x1125d6+=0x1){const _0x31e164=_0x1741c4[_0x35c13e(0x88)](findScriptsWithFramework,_0x54e35e[_0x35c13e(0x6d)],frameworks[_0x1125d6]);for(let _0x38daa0=0x0;_0x1741c4[_0x35c13e(0x8b)](_0x38daa0,_0x31e164['length']);_0x38daa0+=0x1){_0x62ad96[_0x35c13e(0x81)](_0x1741c4[_0x35c13e(0x79)](getUpdatedCommand,_0x54e35e[_0x35c13e(0x6d)],_0x31e164[_0x38daa0]));}_0x1741c4[_0x35c13e(0x79)](addPostInstallScript,_0x54e35e[_0x35c13e(0x6d)],_0x62ad96);}const _0x57db57={..._0x54e35e[_0x35c13e(0x6d)]},_0x4a6687=_0x57db57;for(let _0xae427=0x0;_0x1741c4['VHvqL'](_0xae427,_0x62ad96['length']);_0xae427+=0x1){_0x4a6687[_0x62ad96[_0xae427][0x0]]=_0x62ad96[_0xae427][0x1];}_0x1741c4[_0x35c13e(0x8d)](JSON[_0x35c13e(0x86)](_0x54e35e['scripts']),JSON[_0x35c13e(0x86)](_0x4a6687))&&(logger[_0x35c13e(0xaa)](_0x1741c4[_0x35c13e(0xa7)]),_0x54e35e[_0x35c13e(0x6d)]=_0x4a6687,fs['writeFileSync'](packageFile,JSON[_0x35c13e(0x86)](_0x54e35e,null,0x2),_0x13a506=>{const _0x1cc982=_0x35c13e;_0x13a506&&logger[_0x1cc982(0x73)](_0x13a506);}));}function a48_0x5ad5(_0x46bf3e,_0x385876){const _0xb7462e=a48_0xb746();return a48_0x5ad5=function(_0x5ad573,_0xf59774){_0x5ad573=_0x5ad573-0x6d;let _0x17ad67=_0xb7462e[_0x5ad573];return _0x17ad67;},a48_0x5ad5(_0x46bf3e,_0x385876);};function findScriptsWithFramework(_0x6fe7ac,_0x5c70f1){const _0x25d181=a48_0x2312e6,_0x3639d4={};_0x3639d4[_0x25d181(0x9d)]=function(_0x3e9837,_0x4b6493){return _0x3e9837<_0x4b6493;},_0x3639d4[_0x25d181(0xad)]=_0x25d181(0xa3);const _0x57cf7f=_0x3639d4,_0x395ad6=[],_0x5b9513=Object['entries'](_0x6fe7ac);for(let _0x2f0abe=0x0;_0x57cf7f[_0x25d181(0x9d)](_0x2f0abe,_0x5b9513[_0x25d181(0x7f)]);_0x2f0abe+=0x1){_0x5b9513[_0x2f0abe][0x1]['includes'](_0x5c70f1)&&!_0x5b9513[_0x2f0abe][0x1]['includes'](_0x57cf7f[_0x25d181(0xad)])&&_0x395ad6['push'](_0x5b9513[_0x2f0abe][0x0]);}return _0x395ad6;}function a48_0xb746(){const _0x303ac9=['NwnLy','utf8','HGZbO','cucumber-js','OINTn','nightwatch','debug','qjXOL','jODss','codeceptjs','770sjzmru','key','WoKte','../helpers/logger','yargs','isUndefined','Setup\x20completed','YOUR_USERNAME','qQRfI','playwright','512229VUnhpB','/../../browserstack.yml.sample','YOUR_ACCESS_KEY','fireFunnelTestEvent','browserstack-node-sdk','Adding\x20new\x20script(s)\x20in\x20package.json...','readFileSync','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','FfXqG','204877PbeACF','/package.json','info','npm\x20update\x20browserstack-node-sdk','join','vNoUQ','../helpers/utilities','jest','qyWYz','splice','pOQvc','31617kKjqxU','argv','scripts','224605gwddia','geuwT','indexOf','390500wApeHr','username','error','postinstall','18UYWtQS','\x20&&\x20npm\x20update\x20browserstack-node-sdk','kugdK','/browserstack.yml','yXUYU','-browserstack','723936TvpqFR','ZhHSF','2290nzrAHn','MhKeN','length','node','push','source','browserstack-node-sdk\x20','jUuYk','2064CwBMUb','stringify','replace','QkeXJ','winstonLogger','split'];a48_0xb746=function(){return _0x303ac9;};return a48_0xb746();}function getUpdatedCommand(_0x1cf9bd,_0x47990f){const _0x3c5b47=a48_0x2312e6,_0x263887={};_0x263887['jODss']=function(_0x2f1a07,_0x584f92){return _0x2f1a07!==_0x584f92;},_0x263887['OINTn']=_0x3c5b47(0xa3),_0x263887['qjXOL']=function(_0x2aa351,_0x3700cf){return _0x2aa351===_0x3700cf;};const _0x3f3325=_0x263887,_0x1505d0=_0x47990f+_0x3c5b47(0x7a),_0x4e9249=_0x1cf9bd[_0x47990f],_0x20e918=_0x4e9249[_0x3c5b47(0x8a)]('\x20');for(const _0x14c5ca of frameworks){if(_0x3f3325[_0x3c5b47(0x93)](_0x20e918[_0x3c5b47(0x70)](_0x14c5ca),-0x1)){_0x20e918[_0x3c5b47(0xb1)](_0x20e918[_0x3c5b47(0x70)](_0x14c5ca),0x0,_0x3f3325[_0x3c5b47(0x8f)]);break;}}let _0x9b34c9=_0x20e918[_0x3c5b47(0xac)]('\x20');return _0x3f3325[_0x3c5b47(0x92)](_0x9b34c9,_0x4e9249)&&(_0x9b34c9=_0x3c5b47(0x83)+_0x4e9249),[_0x1505d0,_0x9b34c9];}function sdkSetup(){const _0x1e4231=a48_0x2312e6,_0x1d20c7={};_0x1d20c7[_0x1e4231(0x84)]='node-setup',_0x1d20c7['WoKte']='SDKSetup';const _0x402e94=_0x1d20c7;if(helper[_0x1e4231(0x9a)](config))return;config[_0x1e4231(0x82)]=_0x402e94[_0x1e4231(0x84)];try{utilities[_0x1e4231(0xa2)](_0x402e94[_0x1e4231(0x97)],{},config,'');}catch(_0x5ebef7){logger['debug'](_0x1e4231(0xa6)+_0x5ebef7);}}logger[a48_0x2312e6(0xaa)](a48_0x2312e6(0x9b));
3
+ const a48_0xff9922=a48_0x2373;(function(_0x58beef,_0x5b3d45){const _0x346b70=a48_0x2373,_0x454ee2=_0x58beef();while(!![]){try{const _0x198747=parseInt(_0x346b70(0x117))/0x1+parseInt(_0x346b70(0x10a))/0x2+parseInt(_0x346b70(0x13f))/0x3+-parseInt(_0x346b70(0x136))/0x4+-parseInt(_0x346b70(0x129))/0x5*(-parseInt(_0x346b70(0x143))/0x6)+-parseInt(_0x346b70(0x134))/0x7*(parseInt(_0x346b70(0x10b))/0x8)+parseInt(_0x346b70(0x130))/0x9;if(_0x198747===_0x5b3d45)break;else _0x454ee2['push'](_0x454ee2['shift']());}catch(_0x4b1f22){_0x454ee2['push'](_0x454ee2['shift']());}}}(a48_0xa576,0xdec3d));const fs=require('fs'),helper=require(a48_0xff9922(0x131)),utilities=require(a48_0xff9922(0x10c)),yaml=require(a48_0xff9922(0x14a)),yargs=require(a48_0xff9922(0x108)),logger=require('../helpers/logger')[a48_0xff9922(0x112)],configFileTemplate=__dirname+a48_0xff9922(0x146),configFileTemplatePW=__dirname+'/../../browserstack.pw.yml.sample',configFile=process['cwd']()+a48_0xff9922(0x10f),packageFile=process['cwd']()+a48_0xff9922(0x10e),frameworks=[a48_0xff9922(0x132),a48_0xff9922(0x127),a48_0xff9922(0x110),a48_0xff9922(0x116),'nightwatch',a48_0xff9922(0x147),'playwright'];let config;logger[a48_0xff9922(0x113)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a48_0xff9922(0x12c)]['username'],yargs[a48_0xff9922(0x12c)]['key'],yargs[a48_0xff9922(0x12c)]['playwright']);function a48_0x2373(_0x12ccb4,_0x5289ba){const _0xa57682=a48_0xa576();return a48_0x2373=function(_0x23732e,_0x7870dd){_0x23732e=_0x23732e-0x104;let _0x3f8e71=_0xa57682[_0x23732e];return _0x3f8e71;},a48_0x2373(_0x12ccb4,_0x5289ba);}try{sdkSetup();}catch(a48_0x42fe38){logger[a48_0xff9922(0x148)](a48_0xff9922(0x137)+a48_0x42fe38);}addScriptInPackageJson();function createConfigurationFile(_0x46d950,_0x5268f6,_0x4e8b49=![]){const _0x41fce6=a48_0xff9922,_0x2823d3={};_0x2823d3[_0x41fce6(0x104)]=_0x41fce6(0x118),_0x2823d3[_0x41fce6(0x145)]=_0x41fce6(0x106),_0x2823d3['vUNab']=_0x41fce6(0x123);const _0x106a7e=_0x2823d3;try{let _0x757076=fs[_0x41fce6(0x12e)](_0x4e8b49?configFileTemplatePW:configFileTemplate,_0x106a7e[_0x41fce6(0x104)]);_0x46d950&&(_0x757076=_0x757076[_0x41fce6(0x124)](_0x106a7e[_0x41fce6(0x145)],_0x46d950)),_0x5268f6&&(_0x757076=_0x757076['replace'](_0x106a7e[_0x41fce6(0x11e)],_0x5268f6)),config=yaml[_0x41fce6(0x12a)](_0x757076),fs['writeFileSync'](configFile,_0x757076,_0x43830e=>{_0x43830e&&logger['error'](_0x43830e);});}catch(_0xda4cea){logger[_0x41fce6(0x115)](_0xda4cea);}}function addPostInstallScript(_0x291848,_0xdcaba4){const _0x391cd5=a48_0xff9922,_0x2f95b5={};_0x2f95b5[_0x391cd5(0x11d)]=_0x391cd5(0x119),_0x2f95b5[_0x391cd5(0x13a)]=_0x391cd5(0x144),_0x2f95b5['hQnXs']=_0x391cd5(0x14b);const _0x1c63e9=_0x2f95b5;let _0x43f062=_0x291848[_0x1c63e9['bWkXi']];if(_0x43f062&&_0x43f062['includes'](_0x1c63e9[_0x391cd5(0x13a)]))return;!_0x43f062?_0x43f062=_0x1c63e9['xbrzH']:_0x43f062+=_0x1c63e9[_0x391cd5(0x12d)],_0xdcaba4[_0x391cd5(0x120)]([_0x1c63e9['bWkXi'],_0x43f062]);}function a48_0xa576(){const _0xfb4392=['fireFunnelTestEvent','cTuBS','isUndefined','YOUR_USERNAME','PfaKx','yargs','uiiGM','429182PrmwcG','51376IYJodY','../helpers/utilities','zrxlI','/package.json','/browserstack.yml','cucumber-js','lxdFz','winstonLogger','info','includes','error','node','212442OphirW','utf8','postinstall','writeFileSync','JCGGp','browserstack-node-sdk\x20','bWkXi','vUNab','dkpmP','push','splice','vHjHb','YOUR_ACCESS_KEY','replace','entries','qqetq','jest','stringify','970UFLhGy','load','length','argv','hQnXs','readFileSync','RrkHD','16309098eUNYrg','../helpers/helper','mocha','-browserstack','1393KeCoRe','anClP','6154708iVfwfW','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','OWczn','BPxrh','xbrzH','bEIuP','SDKSetup','source','indexOf','15207FuxOIf','scripts','parse','Setup\x20completed','45924NVAzfC','npm\x20update\x20browserstack-node-sdk','mfBHB','/../../browserstack.yml.sample','codeceptjs','debug','browserstack-node-sdk','js-yaml','\x20&&\x20npm\x20update\x20browserstack-node-sdk'];a48_0xa576=function(){return _0xfb4392;};return a48_0xa576();}function addScriptInPackageJson(){const _0x25f66e=a48_0xff9922,_0x517129={'vHjHb':'utf8','OWczn':function(_0x58b763,_0x27becd){return _0x58b763<_0x27becd;},'uiiGM':function(_0x43f5dd,_0x3e481a,_0x4ab0f0){return _0x43f5dd(_0x3e481a,_0x4ab0f0);},'anClP':function(_0x23249c,_0x354223,_0x34869d){return _0x23249c(_0x354223,_0x34869d);},'bEIuP':function(_0xe75609,_0x1c8a05,_0x41ec72){return _0xe75609(_0x1c8a05,_0x41ec72);},'WsfeR':function(_0x4ce211,_0x243e52){return _0x4ce211<_0x243e52;},'dkpmP':function(_0x4c02c6,_0x60bb08){return _0x4c02c6!==_0x60bb08;},'QevdJ':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x485824=JSON[_0x25f66e(0x141)](fs[_0x25f66e(0x12e)](packageFile,_0x517129[_0x25f66e(0x122)])),_0xf9adc0=[];for(let _0x224ff1=0x0;_0x517129[_0x25f66e(0x138)](_0x224ff1,frameworks[_0x25f66e(0x12b)]);_0x224ff1+=0x1){const _0x692525=_0x517129[_0x25f66e(0x109)](findScriptsWithFramework,_0x485824[_0x25f66e(0x140)],frameworks[_0x224ff1]);for(let _0x336687=0x0;_0x517129[_0x25f66e(0x138)](_0x336687,_0x692525[_0x25f66e(0x12b)]);_0x336687+=0x1){_0xf9adc0[_0x25f66e(0x120)](_0x517129[_0x25f66e(0x135)](getUpdatedCommand,_0x485824[_0x25f66e(0x140)],_0x692525[_0x336687]));}_0x517129[_0x25f66e(0x13b)](addPostInstallScript,_0x485824[_0x25f66e(0x140)],_0xf9adc0);}const _0x56ad1f={..._0x485824[_0x25f66e(0x140)]},_0x52d78d=_0x56ad1f;for(let _0x18c3f0=0x0;_0x517129['WsfeR'](_0x18c3f0,_0xf9adc0['length']);_0x18c3f0+=0x1){_0x52d78d[_0xf9adc0[_0x18c3f0][0x0]]=_0xf9adc0[_0x18c3f0][0x1];}_0x517129[_0x25f66e(0x11f)](JSON[_0x25f66e(0x128)](_0x485824[_0x25f66e(0x140)]),JSON['stringify'](_0x52d78d))&&(logger['info'](_0x517129['QevdJ']),_0x485824[_0x25f66e(0x140)]=_0x52d78d,fs[_0x25f66e(0x11a)](packageFile,JSON['stringify'](_0x485824,null,0x2),_0x20a443=>{const _0x457333=_0x25f66e;_0x20a443&&logger[_0x457333(0x115)](_0x20a443);}));};function findScriptsWithFramework(_0x564f5b,_0x2e138c){const _0x6758e5=a48_0xff9922,_0x5ad468={};_0x5ad468[_0x6758e5(0x111)]=function(_0x3f9df8,_0x1a324){return _0x3f9df8<_0x1a324;},_0x5ad468[_0x6758e5(0x10d)]=_0x6758e5(0x149);const _0x2850e6=_0x5ad468,_0x293bf8=[],_0x3c1556=Object[_0x6758e5(0x125)](_0x564f5b);for(let _0x425cb3=0x0;_0x2850e6[_0x6758e5(0x111)](_0x425cb3,_0x3c1556[_0x6758e5(0x12b)]);_0x425cb3+=0x1){_0x3c1556[_0x425cb3][0x1][_0x6758e5(0x114)](_0x2e138c)&&!_0x3c1556[_0x425cb3][0x1]['includes'](_0x2850e6['zrxlI'])&&_0x293bf8[_0x6758e5(0x120)](_0x3c1556[_0x425cb3][0x0]);}return _0x293bf8;}function getUpdatedCommand(_0x4d930e,_0x567493){const _0x5275d2=a48_0xff9922,_0x2771ad={};_0x2771ad[_0x5275d2(0x12f)]=function(_0x379097,_0x2ab7af){return _0x379097!==_0x2ab7af;},_0x2771ad[_0x5275d2(0x126)]=_0x5275d2(0x149),_0x2771ad[_0x5275d2(0x11b)]=function(_0x5ebd21,_0x27f925){return _0x5ebd21===_0x27f925;};const _0x51f1b7=_0x2771ad,_0x2b422e=_0x567493+_0x5275d2(0x133),_0x3c02ca=_0x4d930e[_0x567493],_0x549246=_0x3c02ca['split']('\x20');for(const _0x513099 of frameworks){if(_0x51f1b7[_0x5275d2(0x12f)](_0x549246[_0x5275d2(0x13e)](_0x513099),-0x1)){_0x549246[_0x5275d2(0x121)](_0x549246[_0x5275d2(0x13e)](_0x513099),0x0,_0x51f1b7[_0x5275d2(0x126)]);break;}}let _0x14bd99=_0x549246['join']('\x20');return _0x51f1b7['JCGGp'](_0x14bd99,_0x3c02ca)&&(_0x14bd99=_0x5275d2(0x11c)+_0x3c02ca),[_0x2b422e,_0x14bd99];}function sdkSetup(){const _0x4f4ad7=a48_0xff9922,_0x355ff9={};_0x355ff9[_0x4f4ad7(0x107)]='node-setup',_0x355ff9[_0x4f4ad7(0x139)]=_0x4f4ad7(0x13c);const _0x387d2a=_0x355ff9;if(helper[_0x4f4ad7(0x105)](config))return;config[_0x4f4ad7(0x13d)]=_0x387d2a[_0x4f4ad7(0x107)];try{utilities[_0x4f4ad7(0x14c)](_0x387d2a[_0x4f4ad7(0x139)],{},config,'');}catch(_0x246f90){logger[_0x4f4ad7(0x148)](_0x4f4ad7(0x137)+_0x246f90);}}logger[a48_0xff9922(0x113)](a48_0xff9922(0x142));
@@ -1 +1 @@
1
- const a49_0x2fe66c=a49_0x1377;function a49_0x1377(_0x557e9b,_0x363428){const _0x1cbc22=a49_0x1cbc();return a49_0x1377=function(_0x1377df,_0x883d5c){_0x1377df=_0x1377df-0x1c3;let _0x449141=_0x1cbc22[_0x1377df];return _0x449141;},a49_0x1377(_0x557e9b,_0x363428);}(function(_0x4d6a9d,_0x2e26a8){const _0x3e7aa2=a49_0x1377,_0x55566c=_0x4d6a9d();while(!![]){try{const _0x52f02b=parseInt(_0x3e7aa2(0x213))/0x1*(parseInt(_0x3e7aa2(0x1c9))/0x2)+-parseInt(_0x3e7aa2(0x200))/0x3+parseInt(_0x3e7aa2(0x20c))/0x4+-parseInt(_0x3e7aa2(0x1f6))/0x5+-parseInt(_0x3e7aa2(0x1fc))/0x6*(-parseInt(_0x3e7aa2(0x1f9))/0x7)+-parseInt(_0x3e7aa2(0x1fa))/0x8*(-parseInt(_0x3e7aa2(0x1e8))/0x9)+-parseInt(_0x3e7aa2(0x1d4))/0xa;if(_0x52f02b===_0x2e26a8)break;else _0x55566c['push'](_0x55566c['shift']());}catch(_0x2c5072){_0x55566c['push'](_0x55566c['shift']());}}}(a49_0x1cbc,0xef421));const Worker=require('jest-worker')[a49_0x2fe66c(0x1fb)],Emittery=require('emittery'),pLimit=require(a49_0x2fe66c(0x203)),{parentPort}=require(a49_0x2fe66c(0x1e3)),util=require('util'),logger=require(a49_0x2fe66c(0x21f))[a49_0x2fe66c(0x202)],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require('../../helpers/performance/constants')[a49_0x2fe66c(0x1c4)],{debug}=require(a49_0x2fe66c(0x204)),TestHubHandler=require('../../helpers/testhub/testhubHandler');exports[a49_0x2fe66c(0x216)]=(_0xd7300e,_0x58a1e7,_0x145a6a)=>new Promise(async _0x3542c7=>{const _0x47833c=a49_0x2fe66c,_0x4f14f1={'vaYpV':'failureCount','gzVUf':function(_0x382718,_0x190b09){return _0x382718+_0x190b09;},'uzSFb':_0x47833c(0x1dd),'ZSPLu':_0x47833c(0x1cb),'irNTO':function(_0x3d7dbf,_0x324099){return _0x3d7dbf(_0x324099);},'cWWLQ':function(_0x2567d6,_0x17ce25){return _0x2567d6(_0x17ce25);},'mTPSQ':_0x47833c(0x1c3),'mSsTd':_0x47833c(0x1ea),'duaAx':_0x47833c(0x1ef),'OnAOp':'json','uoJlY':_0x47833c(0x1df),'jNKJb':function(_0x1c690f,_0x1a46e3){return _0x1c690f*_0x1a46e3;},'FpMWX':_0x47833c(0x206),'UHlzP':'test-file-failure'},_0x47dc6e=_0x145a6a[_0x47833c(0x209)],_0x17d851={},_0x20f63c=new Worker(require[_0x47833c(0x1ec)](_0x4f14f1[_0x47833c(0x1f0)]),{'exposedMethods':[_0x4f14f1[_0x47833c(0x215)]],'forkOptions':{'serialization':_0x4f14f1[_0x47833c(0x1f3)],'stdio':_0x4f14f1[_0x47833c(0x21e)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x4f14f1[_0x47833c(0x1e9)](_0x58a1e7,0x1),'enableWorkerThreads':!![]}),_0x332859=new Emittery();_0x332859['on'](_0x4f14f1[_0x47833c(0x21d)],_0x98027c=>{const _0x2ec7ab=_0x47833c;_0x17d851[_0x98027c[0x0]]?(_0x17d851[_0x98027c[0x0]][_0x4f14f1[_0x2ec7ab(0x219)]]=_0x4f14f1[_0x2ec7ab(0x205)](_0x17d851[_0x98027c[0x0]][_0x4f14f1['vaYpV']],_0x98027c[0x1][_0x4f14f1['vaYpV']]),_0x17d851[_0x98027c[0x0]][_0x4f14f1[_0x2ec7ab(0x1ed)]]=[..._0x17d851[_0x98027c[0x0]][_0x4f14f1['uzSFb']],..._0x98027c[0x1][_0x4f14f1[_0x2ec7ab(0x1ed)]]]):_0x17d851[_0x98027c[0x0]]={'failureCount':_0x98027c[0x1][_0x4f14f1[_0x2ec7ab(0x219)]],'results':[..._0x98027c[0x1][_0x4f14f1[_0x2ec7ab(0x1ed)]]]};}),_0x332859['on'](_0x4f14f1[_0x47833c(0x1da)],_0x201886=>console[_0x47833c(0x1f1)](_0x201886[0x1]));_0x20f63c[_0x47833c(0x1ca)]()&&_0x20f63c['getStdout']()['pipe'](process[_0x47833c(0x1ff)]);_0x20f63c[_0x47833c(0x1d9)]()&&_0x20f63c[_0x47833c(0x1d9)]()[_0x47833c(0x1df)](process[_0x47833c(0x20d)]);const _0x4f9819=async()=>{const _0x2636a9=_0x47833c,{forceExited:_0x5512b5}=await _0x20f63c[_0x2636a9(0x207)]();_0x5512b5&&console[_0x2636a9(0x1e0)](_0x4f14f1['ZSPLu']);try{await TestHubHandler[_0x2636a9(0x20b)]();}catch(_0x309ba1){_0x4f14f1[_0x2636a9(0x21b)](debug,_0x2636a9(0x1e4)+_0x309ba1);}_0x4f14f1['cWWLQ'](_0x3542c7,_0x17d851);},_0x54f55e=_0x4f14f1[_0x47833c(0x21b)](pLimit,_0x4f14f1[_0x47833c(0x1e9)](_0x58a1e7,0x1)),_0x4e23cf=_0x366e76=>_0x54f55e(async()=>{const _0x73f72b=_0x47833c;await _0x332859[_0x73f72b(0x201)](_0x4f14f1['mTPSQ'],_0x366e76);const _0x4d57ee=_0x20f63c[_0x73f72b(0x1ef)](_0x366e76,_0x47dc6e);try{parentPort&&_0x4d57ee[_0x73f72b(0x1dc)](_0x2f217d=>{const _0x5551da=_0x73f72b;try{parentPort[_0x5551da(0x1cf)](_0x2f217d);}catch(_0x54fb63){logger[_0x5551da(0x1d1)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util['format'](_0x54fb63));}});}catch(_0x927ccd){logger[_0x73f72b(0x1d1)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x73f72b(0x1e1)](_0x927ccd));}return _0x4d57ee;});PerformanceTester[_0x47833c(0x207)](PerformanceEvents[_0x47833c(0x1fd)]),Promise['all'](_0xd7300e[_0x47833c(0x1f5)](_0x1db9b6=>_0x4e23cf(_0x1db9b6)[_0x47833c(0x1c8)](_0x1f886c=>_0x332859[_0x47833c(0x201)]('test-file-success',[_0x1db9b6[_0x47833c(0x1e5)][_0x47833c(0x1d2)],_0x1f886c]),_0x153c6f=>_0x332859['emit']('test-file-failure',[_0x1db9b6,_0x153c6f]))))['then'](_0x4f9819,_0x4f9819);}),exports[a49_0x2fe66c(0x1cc)]=(_0x409969,_0x392aaa,_0x223c61,_0x39ee1c,_0x21e410)=>{const _0x1f82ab=a49_0x2fe66c,_0x2ef28a={'PiHlK':'Workers\x20failed\x20to\x20exit\x20gracefully','WCduQ':function(_0x155e65,_0x5a0341){return _0x155e65(_0x5a0341);},'RqdIx':_0x1f82ab(0x20f),'nxuyf':_0x1f82ab(0x1ea),'UksAl':_0x1f82ab(0x1f7),'Tdcvt':_0x1f82ab(0x1d5),'uoisI':_0x1f82ab(0x1df),'vMDJl':'platform-run-success','YUvmP':_0x1f82ab(0x1fe),'dCxTa':function(_0x749281,_0x38deb6){return _0x749281(_0x38deb6);}};return new Promise(_0x26f62a=>{const _0x12660f=_0x1f82ab,_0x5287d3={};_0x5287d3[_0x12660f(0x1eb)]=_0x2ef28a[_0x12660f(0x1e2)];const _0x1049ed=_0x5287d3,_0x17fec7=[],_0x2fb063=new Worker(require[_0x12660f(0x1ec)](_0x2ef28a['nxuyf']),{'exposedMethods':[_0x2ef28a[_0x12660f(0x1cd)]],'forkOptions':{'serialization':_0x2ef28a[_0x12660f(0x1db)],'stdio':_0x2ef28a[_0x12660f(0x1c7)]},'numWorkers':_0x409969[_0x12660f(0x214)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x500651=new Emittery();_0x500651['on'](_0x2ef28a[_0x12660f(0x208)],_0x19ba18=>{const _0x6f1057=_0x12660f;_0x17fec7[_0x6f1057(0x1d7)]([_0x19ba18[0x0],_0x19ba18[0x1]]);}),_0x500651['on'](_0x2ef28a[_0x12660f(0x20e)],_0x5093c9=>console[_0x12660f(0x1f1)](_0x5093c9[0x1]));_0x2fb063['getStdout']()&&_0x2fb063[_0x12660f(0x1ca)]()[_0x12660f(0x1df)](process[_0x12660f(0x1ff)]);_0x2fb063['getStderr']()&&_0x2fb063[_0x12660f(0x1d9)]()['pipe'](process[_0x12660f(0x20d)]);const _0x462fc5=async()=>{const _0x245f5a=_0x12660f,{forceExited:_0x46ef1a}=await _0x2fb063[_0x245f5a(0x207)]();_0x46ef1a&&console[_0x245f5a(0x1e0)](_0x2ef28a['PiHlK']),_0x2ef28a[_0x245f5a(0x217)](_0x26f62a,_0x17fec7);},_0x22684d=_0x2ef28a[_0x12660f(0x21a)](pLimit,_0x409969[_0x12660f(0x214)]||0x1),_0x264d68=(_0x10a9cb,_0x174bfb)=>_0x22684d(async()=>{const _0x405437=_0x12660f;return await _0x500651[_0x405437(0x201)](_0x1049ed[_0x405437(0x1eb)],_0x10a9cb),_0x392aaa[_0x405437(0x1c6)]=_0x223c61[_0x405437(0x1f8)][_0x174bfb],_0x2fb063['cucumberWorker'](_0x10a9cb,_0x392aaa,_0x223c61,_0x39ee1c,_0x21e410);});Promise[_0x12660f(0x1e7)](_0x409969[_0x12660f(0x1f5)]((_0x1deb54,_0x31648a)=>_0x264d68(_0x1deb54,_0x31648a)[_0x12660f(0x1c8)](_0x5ebd54=>_0x500651[_0x12660f(0x201)]('platform-run-success',[_0x1deb54,_0x5ebd54]),_0x2064af=>_0x500651[_0x12660f(0x201)](_0x12660f(0x1fe),[_0x1deb54,_0x2064af]))))[_0x12660f(0x1c8)](_0x462fc5,_0x462fc5);});},exports[a49_0x2fe66c(0x1ce)]=(_0x276b1a,_0x590fbb)=>new Promise(_0x19404b=>{const _0x1c9db8=a49_0x2fe66c,_0x17d6ba={'kBZaC':function(_0x416bc9,_0x46d947){return _0x416bc9===_0x46d947;},'TViHj':function(_0x2c13a7,_0x3f3fb8){return _0x2c13a7!==_0x3f3fb8;},'XQtbC':_0x1c9db8(0x1ee),'HMODe':_0x1c9db8(0x1cb),'mxjro':function(_0x4a1401,_0xb23018){return _0x4a1401(_0xb23018);},'TAPAS':_0x1c9db8(0x1ea),'apEMh':'vanillaWorker','kuDaE':_0x1c9db8(0x1d5),'uRWcf':'pipe','xjYKf':_0x1c9db8(0x206),'ouGBh':_0x1c9db8(0x212)},_0x2715d9={},_0x1fd320=new Worker(require[_0x1c9db8(0x1ec)](_0x17d6ba['TAPAS']),{'exposedMethods':[_0x17d6ba[_0x1c9db8(0x20a)]],'forkOptions':{'serialization':_0x17d6ba[_0x1c9db8(0x1d6)],'stdio':_0x17d6ba[_0x1c9db8(0x1f2)]},'numWorkers':_0x590fbb,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x4c3bbd=new Emittery();_0x4c3bbd['on'](_0x17d6ba['xjYKf'],_0x50d6c1=>{const _0x1e641d=_0x1c9db8;_0x50d6c1[0x0]&&logger[_0x1e641d(0x210)](_0x1e641d(0x218)+_0x50d6c1[0x1]+_0x1e641d(0x1f4),_0x50d6c1[0x0]);}),_0x4c3bbd['on'](_0x17d6ba['ouGBh'],_0x573b1c=>{process['exitCode']=0x1;});_0x1fd320[_0x1c9db8(0x1ca)]()&&_0x1fd320[_0x1c9db8(0x1ca)]()['pipe'](process[_0x1c9db8(0x1ff)]);_0x1fd320[_0x1c9db8(0x1d9)]()&&_0x1fd320[_0x1c9db8(0x1d9)]()[_0x1c9db8(0x1df)](process[_0x1c9db8(0x20d)]);const _0x20f14b=async()=>{const _0x183f9a=_0x1c9db8,_0x4a8a3a={'yWyIl':function(_0x39e75a,_0x25be47){return _0x17d6ba['kBZaC'](_0x39e75a,_0x25be47);},'VqSOj':function(_0x101044,_0x302001){return _0x17d6ba['TViHj'](_0x101044,_0x302001);},'hlkKd':_0x17d6ba[_0x183f9a(0x1e6)]};let _0x468203=0x0;const _0x2dcd87=_0x1fd320[_0x183f9a(0x211)]['getWorkers'](),_0x1f982c=()=>{},_0x3610b8=_0x2dcd87[_0x183f9a(0x1f5)](async _0x2caedf=>{const _0x317df6=_0x183f9a,_0x109f1d={'TPbsC':function(_0x1deea8,_0x333b95){const _0x226811=a49_0x1377;return _0x4a8a3a[_0x226811(0x21c)](_0x1deea8,_0x333b95);},'wiPCw':function(_0x3cef8f,_0x536f33){const _0x483cbc=a49_0x1377;return _0x4a8a3a[_0x483cbc(0x1d3)](_0x3cef8f,_0x536f33);}};_0x2caedf['send']([0x2,![]],_0x1f982c,_0x1f982c,_0x1f982c),_0x2caedf[_0x317df6(0x1de)]['on'](_0x4a8a3a['hlkKd'],_0x4e40e6=>{_0x109f1d['TPbsC'](_0x468203,0x0)&&_0x109f1d['wiPCw'](_0x4e40e6,0x0)&&(_0x468203=_0x4e40e6);}),await _0x2caedf['waitForExit']();});await Promise[_0x183f9a(0x1e7)](_0x3610b8),process[_0x183f9a(0x1d0)]=_0x468203;const {forceExited:_0xcf1d0a}=await _0x1fd320['end']();_0xcf1d0a&&console[_0x183f9a(0x1e0)](_0x17d6ba[_0x183f9a(0x1d8)]),_0x17d6ba[_0x183f9a(0x1c5)](_0x19404b,_0x2715d9);},_0x59e6c5=_0x17d6ba[_0x1c9db8(0x1c5)](pLimit,_0x590fbb),_0x2aeb13=_0x3d1497=>_0x59e6c5(async()=>{return _0x1fd320['vanillaWorker'](_0x3d1497);});Promise[_0x1c9db8(0x1e7)](_0x276b1a[_0x1c9db8(0x1f5)](_0x530f6c=>_0x2aeb13(_0x530f6c)[_0x1c9db8(0x1c8)](_0x26af23=>_0x4c3bbd['emit'](_0x1c9db8(0x206),[_0x530f6c[_0x1c9db8(0x1e5)][_0x1c9db8(0x1d2)],_0x530f6c[_0x1c9db8(0x1e5)]['file']]),_0x438414=>_0x4c3bbd['emit'](_0x1c9db8(0x212),[_0x530f6c,_0x438414]))))['then'](_0x20f14b,_0x20f14b);});function a49_0x1cbc(){const _0x4a8566=['1GGbKUY','length','duaAx','parallelTestRun','WCduQ','Running\x20','vaYpV','dCxTa','irNTO','yWyIl','FpMWX','uoJlY','../../helpers/logger','test-file-start','EVENTS','mxjro','platformCaps','uoisI','then','3484298iQzYbP','getStdout','Workers\x20failed\x20to\x20exit\x20gracefully','parallelCucumberRun','UksAl','parallelVanillaRun','postMessage','exitCode','debug','platform','VqSOj','28962780ITdQMS','json','kuDaE','push','HMODe','getStderr','UHlzP','Tdcvt','UNSTABLE_onCustomMessage','results','_child','pipe','error','format','RqdIx','worker_threads','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','configuration','XQtbC','all','306VdYlkp','jNKJb','./testWorker.js','sHjng','resolve','uzSFb','exit','worker','mSsTd','log','uRWcf','OnAOp','\x20for','map','3942215wdoVFQ','cucumberWorker','platforms','2996JKZyjf','327624SZVjdc','Worker','6738ndtqOg','SDK_SETUP','platform-run-failure','stdout','1344300jYTNWf','emit','winstonLogger','p-limit','../../helpers/test-observability/utils','gzVUf','test-file-success','end','vMDJl','config','apEMh','stop','5990508mlLLbI','stderr','YUvmP','platform-run-start','info','_workerPool','test-file-failure'];a49_0x1cbc=function(){return _0x4a8566;};return a49_0x1cbc();}
1
+ function a49_0x24fa(_0x30cd85,_0x19d4d5){const _0x38a996=a49_0x38a9();return a49_0x24fa=function(_0x24fafa,_0x4a413b){_0x24fafa=_0x24fafa-0xb6;let _0x4b3bdf=_0x38a996[_0x24fafa];return _0x4b3bdf;},a49_0x24fa(_0x30cd85,_0x19d4d5);}function a49_0x38a9(){const _0x5e971b=['emit','tIyQl','../../helpers/performance/constants','gzkHT','pipe','wAaSv','stdout','BsvZB','mIbxN','config','XlyHl','json','jest-worker','MTTBb','ymaSw','Running\x20','WOEHd','Workers\x20failed\x20to\x20exit\x20gracefully','oNArE','jTqmh','5099591XXbpnn','../../helpers/test-observability/utils','emittery','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','end','50bkEHmD','exitCode','resolve','worker','UNSTABLE_onCustomMessage','stderr','configuration','log','vanillaWorker','583245RigxWu','test-file-start','aMkMX','335137jgkAXV','../../helpers/testhub/testhubHandler','../../helpers/performance/performance-tester','pqVrM','11880156hihqZg','waitForExit','platform-run-start','TmlTv','XWUWG','debug','platforms','platform-run-success','6sqKxfx','format','all','platform','Exception\x20in\x20sending\x20worker\x20message\x20','WwRVr','cucumberWorker','tylqB','4TuXhCj','304688yowycL','RWKAo','postMessage','Worker','xohlS','getStdout','rxMNv','then','kmgHS','90eTuvFT','lAUSz','EOAiX','THoxy','SDK_SETUP','results','./testWorker.js','vKHsU','push','YVKop','length','map','failureCount','platformCaps','parallelTestRun','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','platform-run-failure','error','test-file-failure','SfPrJ','worker_threads','EVENTS','UxTzh','KyHLx','getWorkers','4097090ZCSAjk','2WLcFmL','test-file-success','3228510yIyjRd','\x20for','send','getStderr'];a49_0x38a9=function(){return _0x5e971b;};return a49_0x38a9();}const a49_0x137534=a49_0x24fa;(function(_0x43038d,_0x19bac9){const _0x26b3b5=a49_0x24fa,_0x3c0fb7=_0x43038d();while(!![]){try{const _0x578812=parseInt(_0x26b3b5(0xcd))/0x1+-parseInt(_0x26b3b5(0x108))/0x2*(parseInt(_0x26b3b5(0x10a))/0x3)+parseInt(_0x26b3b5(0xe4))/0x4*(parseInt(_0x26b3b5(0x107))/0x5)+parseInt(_0x26b3b5(0xdc))/0x6*(parseInt(_0x26b3b5(0xbf))/0x7)+-parseInt(_0x26b3b5(0xe5))/0x8*(-parseInt(_0x26b3b5(0xee))/0x9)+parseInt(_0x26b3b5(0xc4))/0xa*(parseInt(_0x26b3b5(0xd0))/0xb)+-parseInt(_0x26b3b5(0xd4))/0xc;if(_0x578812===_0x19bac9)break;else _0x3c0fb7['push'](_0x3c0fb7['shift']());}catch(_0x5ce1ba){_0x3c0fb7['push'](_0x3c0fb7['shift']());}}}(a49_0x38a9,0x920ac));const Worker=require(a49_0x137534(0xb7))[a49_0x137534(0xe8)],Emittery=require(a49_0x137534(0xc1)),pLimit=require('p-limit'),{parentPort}=require(a49_0x137534(0x102)),util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a49_0x137534(0xd2)),PerformanceEvents=require(a49_0x137534(0x110))[a49_0x137534(0x103)],{debug}=require(a49_0x137534(0xc0)),TestHubHandler=require(a49_0x137534(0xd1));exports[a49_0x137534(0xfc)]=(_0x41d7d7,_0x1b339d,_0x405e04)=>new Promise(async _0x623051=>{const _0x3bbdb2=a49_0x137534,_0x546829={'BsvZB':_0x3bbdb2(0xfa),'xKecX':function(_0x33e038,_0x28b3ce){return _0x33e038+_0x28b3ce;},'THoxy':_0x3bbdb2(0xf3),'OtJYO':_0x3bbdb2(0xbc),'kmgHS':function(_0x3fb56,_0x160653){return _0x3fb56(_0x160653);},'XlyHl':_0x3bbdb2(0xce),'XWUWG':'./testWorker.js','uWpUo':_0x3bbdb2(0xc7),'xohlS':_0x3bbdb2(0xb6),'WOEHd':_0x3bbdb2(0x112),'WwRVr':function(_0x44677b,_0x102a8a){return _0x44677b*_0x102a8a;},'EOAiX':_0x3bbdb2(0x109),'SfPrJ':'test-file-failure'},_0x20481b=_0x405e04[_0x3bbdb2(0x117)],_0x2eb7da={},_0x388961=new Worker(require[_0x3bbdb2(0xc6)](_0x546829[_0x3bbdb2(0xd8)]),{'exposedMethods':[_0x546829['uWpUo']],'forkOptions':{'serialization':_0x546829[_0x3bbdb2(0xe9)],'stdio':_0x546829[_0x3bbdb2(0xbb)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x546829[_0x3bbdb2(0xe1)](_0x1b339d,0x1),'enableWorkerThreads':!![]}),_0x34113e=new Emittery();_0x34113e['on'](_0x546829[_0x3bbdb2(0xf0)],_0x5c7b09=>{const _0x3c4672=_0x3bbdb2;_0x2eb7da[_0x5c7b09[0x0]]?(_0x2eb7da[_0x5c7b09[0x0]][_0x546829[_0x3c4672(0x115)]]=_0x546829['xKecX'](_0x2eb7da[_0x5c7b09[0x0]][_0x546829[_0x3c4672(0x115)]],_0x5c7b09[0x1][_0x546829[_0x3c4672(0x115)]]),_0x2eb7da[_0x5c7b09[0x0]][_0x546829[_0x3c4672(0xf1)]]=[..._0x2eb7da[_0x5c7b09[0x0]][_0x546829[_0x3c4672(0xf1)]],..._0x5c7b09[0x1][_0x546829[_0x3c4672(0xf1)]]]):_0x2eb7da[_0x5c7b09[0x0]]={'failureCount':_0x5c7b09[0x1][_0x546829[_0x3c4672(0x115)]],'results':[..._0x5c7b09[0x1][_0x546829[_0x3c4672(0xf1)]]]};}),_0x34113e['on'](_0x546829[_0x3bbdb2(0x101)],_0x318aff=>console[_0x3bbdb2(0xcb)](_0x318aff[0x1]));_0x388961[_0x3bbdb2(0xea)]()&&_0x388961['getStdout']()[_0x3bbdb2(0x112)](process[_0x3bbdb2(0x114)]);_0x388961['getStderr']()&&_0x388961[_0x3bbdb2(0x10d)]()[_0x3bbdb2(0x112)](process[_0x3bbdb2(0xc9)]);const _0x584bdd=async()=>{const _0x1c7ffb=_0x3bbdb2,{forceExited:_0x16a06d}=await _0x388961[_0x1c7ffb(0xc3)]();_0x16a06d&&console[_0x1c7ffb(0xff)](_0x546829['OtJYO']);try{await TestHubHandler['stop']();}catch(_0x5192d8){_0x546829[_0x1c7ffb(0xed)](debug,_0x1c7ffb(0xfd)+_0x5192d8);}_0x546829[_0x1c7ffb(0xed)](_0x623051,_0x2eb7da);},_0x496628=_0x546829[_0x3bbdb2(0xed)](pLimit,_0x546829[_0x3bbdb2(0xe1)](_0x1b339d,0x1)),_0x3c1846=_0x482e67=>_0x496628(async()=>{const _0x578043=_0x3bbdb2;await _0x34113e[_0x578043(0x10e)](_0x546829[_0x578043(0x118)],_0x482e67);const _0x4f1a9d=_0x388961[_0x578043(0xc7)](_0x482e67,_0x20481b);try{parentPort&&_0x4f1a9d[_0x578043(0xc8)](_0x3850ea=>{const _0x3ffa3c=_0x578043;try{parentPort[_0x3ffa3c(0xe7)](_0x3850ea);}catch(_0x2365cb){logger[_0x3ffa3c(0xd9)](_0x3ffa3c(0xe0)+util[_0x3ffa3c(0xdd)](_0x2365cb));}});}catch(_0x1b4980){logger['debug'](_0x578043(0xc2)+util[_0x578043(0xdd)](_0x1b4980));}return _0x4f1a9d;});PerformanceTester[_0x3bbdb2(0xc3)](PerformanceEvents[_0x3bbdb2(0xf2)]),Promise[_0x3bbdb2(0xde)](_0x41d7d7['map'](_0x238eeb=>_0x3c1846(_0x238eeb)[_0x3bbdb2(0xec)](_0x31771d=>_0x34113e[_0x3bbdb2(0x10e)](_0x3bbdb2(0x109),[_0x238eeb[_0x3bbdb2(0xca)][_0x3bbdb2(0xdf)],_0x31771d]),_0x2471c4=>_0x34113e[_0x3bbdb2(0x10e)](_0x3bbdb2(0x100),[_0x238eeb,_0x2471c4]))))[_0x3bbdb2(0xec)](_0x584bdd,_0x584bdd);}),exports['parallelCucumberRun']=(_0x19de82,_0x556c8b,_0x5b9161,_0x34918f,_0x1e5f4d)=>{const _0x708058=a49_0x137534,_0x16c5e3={'NwKtR':_0x708058(0xbc),'ZcRVG':function(_0xfbd458,_0x4d36fd){return _0xfbd458(_0x4d36fd);},'hlQvo':_0x708058(0xd6),'KyHLx':_0x708058(0xf4),'UxTzh':_0x708058(0xe2),'aMkMX':'json','vKHsU':_0x708058(0x112),'YVKop':'platform-run-success','AypvS':_0x708058(0xfe)};return new Promise(_0x24f63a=>{const _0x411702=_0x708058,_0x10af2d=[],_0x209006=new Worker(require[_0x411702(0xc6)](_0x16c5e3[_0x411702(0x105)]),{'exposedMethods':[_0x16c5e3[_0x411702(0x104)]],'forkOptions':{'serialization':_0x16c5e3[_0x411702(0xcf)],'stdio':_0x16c5e3[_0x411702(0xf5)]},'numWorkers':_0x19de82[_0x411702(0xf8)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x1b8f86=new Emittery();_0x1b8f86['on'](_0x16c5e3[_0x411702(0xf7)],_0x486631=>{const _0x4bf536=_0x411702;_0x10af2d[_0x4bf536(0xf6)]([_0x486631[0x0],_0x486631[0x1]]);}),_0x1b8f86['on'](_0x16c5e3['AypvS'],_0xd32d54=>console[_0x411702(0xcb)](_0xd32d54[0x1]));_0x209006[_0x411702(0xea)]()&&_0x209006[_0x411702(0xea)]()[_0x411702(0x112)](process[_0x411702(0x114)]);_0x209006['getStderr']()&&_0x209006[_0x411702(0x10d)]()[_0x411702(0x112)](process[_0x411702(0xc9)]);const _0x218e8f=async()=>{const _0x5c4c30=_0x411702,{forceExited:_0x5478f8}=await _0x209006[_0x5c4c30(0xc3)]();_0x5478f8&&console[_0x5c4c30(0xff)](_0x16c5e3['NwKtR']),_0x16c5e3['ZcRVG'](_0x24f63a,_0x10af2d);},_0x39f11e=_0x16c5e3['ZcRVG'](pLimit,_0x19de82[_0x411702(0xf8)]||0x1),_0x9d8b0e=(_0x3d3c94,_0x3d081)=>_0x39f11e(async()=>{const _0x124864=_0x411702;return await _0x1b8f86[_0x124864(0x10e)](_0x16c5e3['hlQvo'],_0x3d3c94),_0x556c8b[_0x124864(0xfb)]=_0x5b9161[_0x124864(0xda)][_0x3d081],_0x209006[_0x124864(0xe2)](_0x3d3c94,_0x556c8b,_0x5b9161,_0x34918f,_0x1e5f4d);});Promise[_0x411702(0xde)](_0x19de82[_0x411702(0xf9)]((_0x2c066d,_0x152dee)=>_0x9d8b0e(_0x2c066d,_0x152dee)[_0x411702(0xec)](_0x43bf93=>_0x1b8f86[_0x411702(0x10e)](_0x411702(0xdb),[_0x2c066d,_0x43bf93]),_0x160467=>_0x1b8f86[_0x411702(0x10e)](_0x411702(0xfe),[_0x2c066d,_0x160467]))))[_0x411702(0xec)](_0x218e8f,_0x218e8f);});},exports['parallelVanillaRun']=(_0x24693e,_0x2a1f65)=>new Promise(_0x2a562a=>{const _0x34d185=a49_0x137534,_0x46ffc6={'rxMNv':function(_0x1b4e37,_0x1bdd47){return _0x1b4e37===_0x1bdd47;},'jTqmh':function(_0x3b91de,_0x549184){return _0x3b91de!==_0x549184;},'tIyQl':'exit','wAaSv':_0x34d185(0xbc),'tylqB':function(_0x1c8faa,_0x54a3af){return _0x1c8faa(_0x54a3af);},'MTTBb':_0x34d185(0xf4),'RWKAo':'vanillaWorker','mIbxN':'json','TmlTv':_0x34d185(0x112),'pqVrM':_0x34d185(0x109),'oNArE':'test-file-failure'},_0x212232={},_0x4bf7cf=new Worker(require[_0x34d185(0xc6)](_0x46ffc6[_0x34d185(0xb8)]),{'exposedMethods':[_0x46ffc6[_0x34d185(0xe6)]],'forkOptions':{'serialization':_0x46ffc6[_0x34d185(0x116)],'stdio':_0x46ffc6[_0x34d185(0xd7)]},'numWorkers':_0x2a1f65,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0xf3bead=new Emittery();_0xf3bead['on'](_0x46ffc6[_0x34d185(0xd3)],_0x57e211=>{const _0x563626=_0x34d185;_0x57e211[0x0]&&logger['info'](_0x563626(0xba)+_0x57e211[0x1]+_0x563626(0x10b),_0x57e211[0x0]);}),_0xf3bead['on'](_0x46ffc6[_0x34d185(0xbd)],_0x4c63cf=>{process['exitCode']=0x1;});_0x4bf7cf['getStdout']()&&_0x4bf7cf[_0x34d185(0xea)]()[_0x34d185(0x112)](process[_0x34d185(0x114)]);_0x4bf7cf['getStderr']()&&_0x4bf7cf[_0x34d185(0x10d)]()['pipe'](process[_0x34d185(0xc9)]);const _0x55e61a=async()=>{const _0x2a8f66=_0x34d185,_0x1db98a={'gzkHT':function(_0xf7bc45,_0x322c49){const _0x3b778a=a49_0x24fa;return _0x46ffc6[_0x3b778a(0xeb)](_0xf7bc45,_0x322c49);},'ymaSw':function(_0x1be210,_0x2c611d){const _0x5c3f97=a49_0x24fa;return _0x46ffc6[_0x5c3f97(0xbe)](_0x1be210,_0x2c611d);},'lAUSz':_0x46ffc6[_0x2a8f66(0x10f)]};let _0x4a1caa=0x0;const _0x3d7a08=_0x4bf7cf['_workerPool'][_0x2a8f66(0x106)](),_0x466ce7=()=>{},_0x3c4052=_0x3d7a08[_0x2a8f66(0xf9)](async _0x4bfbba=>{const _0xb47704=_0x2a8f66;_0x4bfbba[_0xb47704(0x10c)]([0x2,![]],_0x466ce7,_0x466ce7,_0x466ce7),_0x4bfbba['_child']['on'](_0x1db98a[_0xb47704(0xef)],_0x2f9209=>{const _0x27a1f0=_0xb47704;_0x1db98a[_0x27a1f0(0x111)](_0x4a1caa,0x0)&&_0x1db98a[_0x27a1f0(0xb9)](_0x2f9209,0x0)&&(_0x4a1caa=_0x2f9209);}),await _0x4bfbba[_0xb47704(0xd5)]();});await Promise[_0x2a8f66(0xde)](_0x3c4052),process[_0x2a8f66(0xc5)]=_0x4a1caa;const {forceExited:_0x595c7d}=await _0x4bf7cf[_0x2a8f66(0xc3)]();_0x595c7d&&console['error'](_0x46ffc6[_0x2a8f66(0x113)]),_0x46ffc6[_0x2a8f66(0xe3)](_0x2a562a,_0x212232);},_0x1a1e1e=_0x46ffc6['tylqB'](pLimit,_0x2a1f65),_0x3e374d=_0x2d9920=>_0x1a1e1e(async()=>{const _0x222a0d=_0x34d185;return _0x4bf7cf[_0x222a0d(0xcc)](_0x2d9920);});Promise[_0x34d185(0xde)](_0x24693e['map'](_0x452a9d=>_0x3e374d(_0x452a9d)[_0x34d185(0xec)](_0x13f540=>_0xf3bead[_0x34d185(0x10e)](_0x34d185(0x109),[_0x452a9d[_0x34d185(0xca)][_0x34d185(0xdf)],_0x452a9d[_0x34d185(0xca)]['file']]),_0x54ec82=>_0xf3bead[_0x34d185(0x10e)](_0x34d185(0x100),[_0x452a9d,_0x54ec82]))))[_0x34d185(0xec)](_0x55e61a,_0x55e61a);});