browserstack-node-sdk 1.38.2 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) 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 +2 -0
  69. package/src/bin/load/load/index.js +114 -0
  70. package/src/bin/load/load/loadUtils.js +58 -0
  71. package/src/bin/load/loadUtils.js +1 -0
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a23_0x4b5b62=a23_0x5136;(function(_0x148801,_0x4159a6){const _0xe2ba9e=a23_0x5136,_0x17f87f=_0x148801();while(!![]){try{const _0x58c882=-parseInt(_0xe2ba9e(0x26c))/0x1*(parseInt(_0xe2ba9e(0x240))/0x2)+parseInt(_0xe2ba9e(0x236))/0x3*(parseInt(_0xe2ba9e(0x1a7))/0x4)+parseInt(_0xe2ba9e(0x235))/0x5+parseInt(_0xe2ba9e(0x1e3))/0x6+parseInt(_0xe2ba9e(0x1da))/0x7+parseInt(_0xe2ba9e(0x1c2))/0x8*(parseInt(_0xe2ba9e(0x26b))/0x9)+parseInt(_0xe2ba9e(0x20f))/0xa*(-parseInt(_0xe2ba9e(0x1d2))/0xb);if(_0x58c882===_0x4159a6)break;else _0x17f87f['push'](_0x17f87f['shift']());}catch(_0x4f700c){_0x17f87f['push'](_0x17f87f['shift']());}}}(a23_0xe909,0x71011));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x4b5b62(0x1a5)),SessionHandler=require(a23_0x4b5b62(0x215)),{v4:uuidv4}=require(a23_0x4b5b62(0x219)),{name,version}=require(a23_0x4b5b62(0x245)),stackTrace=require(a23_0x4b5b62(0x1b2)),path=require(a23_0x4b5b62(0x1eb)),fs=require('fs'),TestDetails=require(a23_0x4b5b62(0x1f7)),{FRAMEWORKS}=require(a23_0x4b5b62(0x243)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require(a23_0x4b5b62(0x260)),{appendTesthubParams,setCurrentTestData}=require(a23_0x4b5b62(0x1b8)),a23_0x485fa8={};a23_0x485fa8[a23_0x4b5b62(0x22a)]=a23_0x4b5b62(0x212),a23_0x485fa8['STATE_FAILED']=a23_0x4b5b62(0x23e),a23_0x485fa8[a23_0x4b5b62(0x1b4)]=a23_0x4b5b62(0x22d);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x485fa8,a23_0x5f0d23={};function a23_0x5136(_0x25254f,_0x173795){const _0xe909d2=a23_0xe909();return a23_0x5136=function(_0x51365a,_0x2659c3){_0x51365a=_0x51365a-0x1a1;let _0x2d6a61=_0xe909d2[_0x51365a];return _0x2d6a61;},a23_0x5136(_0x25254f,_0x173795);}function a23_0xe909(){const _0x3842af=['9ezIQMF','failure_backtrace','title',':hookAnalyticsId','join','LoHtt','cpEli','testStarted','failed','isJestInternalHook','6HGFway','toISOString','getRootParentFile','../../utils/constants','started_at','../../../../package.json','bbAjT','root','AGsSc','ObservabilityReporter','parse','toString','gWilt','getHooksForTest','mapTestHooks','qvhBI','PJvkn','current_test','skipped','khVOH','SVeZT','getHierarchy','CBTSessionCreated','appendTestItemLog','bs:addPlatformDetails:','3|2|1|4|0','push','javascript','DIOzI','getTestEnv','iCTmv','beforeEach','../../../helpers/helper','OGTNO','vMWLt','testAnalyticsId','bs:addLog:','ROOT_DESCRIBE_BLOCK','aWMpA','jAZbD','state','WJMTM','kGHbN','64377VwTukG','160373SdABxl','tlsLp','ZCLwM','qpqYa','relative','../../../helpers/test-observability/utils','eojxa','258504TXpqwn','SQYcQ','mIeLP','2|0|6|5|1|4|3','hook_data','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','_testEnv','_testResults','RxVFR','File\x20path\x20could\x20not\x20be\x20found','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','stack-trace','cwd','STATE_PENDING','location_prefix','current_hook','js-','../../../helpers/testhub/utils','analyticsResult','hook_run_uuid','bdKjW','prefixTestPath','JEST','hooks','cGeHF','findGitConfig',':testAnalyticsId','888qFIfcv','PhbEj','rElOE','LogCreated','parent','afterEach','errorsDetailed','failure_reason_expanded','markedStatus','jChQC','bind','_gitConfigPath','hook_failure','sendTestRunEvent','setTestUUID','test_run_uuid','17632351swdxWq','inspect','config','hqsJr','resetTestHooks','LUrIX','failure','apply','2399817SwovPh','appendTestPlatform','failed\x20to\x20get\x20root\x20parent\x20file\x20','hook_run','EWhyG','QDSMu','BEFORE_EACH','qwzzt','http_response','4262622tsqTMR','retryOf','failure_reason','CPvcw','yDfpR','qwOqq','dirname','eJHCB','path','forEach','jest-circus','psGmI','tbXHR','configureGit','XiFXV','backtrace','removeAllListeners','finished_at','aeRIM','pid','./test-details','registerListeners','monxP','uploadEventData','afterAll','GaXLD','NQhER','_paths','hookAnalyticsId','length','result','CfSzV','_gitConfigured','generic','reverse','AFTER_EACH','TbCRb','TestRunSkipped','getFileName','VlDIv','\x22\x20hook\x20for\x20\x22','getTime','UmJFG','vzCCW','10GdOelW','asyncError','testObservability','passed','expanded','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','../../../helpers/test-observability/sessionHandler','HookRunFinished','file','CkvVq','uuid','test_run','hook_type','sep','test','getTestUUID','\x20with\x20error\x20:\x20','getName','LbcJG','match','includes','KifJX','statSync','util','WmqfJ','SWiAf','BEFORE_ALL','STATE_PASSED','mwpNx','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','pending','AdJfQ','cRPsV','name','type','beforeAll','exports','WZVVn','2528980MafYLd'];a23_0xe909=function(){return _0x3842af;};return a23_0xe909();}a23_0x5f0d23[a23_0x4b5b62(0x232)]=a23_0x4b5b62(0x229),a23_0x5f0d23[a23_0x4b5b62(0x1fb)]='AFTER_ALL',a23_0x5f0d23['beforeEach']=a23_0x4b5b62(0x1e0),a23_0x5f0d23[a23_0x4b5b62(0x1c7)]=a23_0x4b5b62(0x206);const HOOK_TYPES_MAP=a23_0x5f0d23;module[a23_0x4b5b62(0x233)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x92382e=a23_0x4b5b62,_0x431d07={'EfGor':_0x92382e(0x1aa),'vzCCW':function(_0x542fbe){return _0x542fbe();}},_0x974b5f=_0x431d07['EfGor']['split']('|');let _0x26fdb4=0x0;while(!![]){switch(_0x974b5f[_0x26fdb4++]){case'0':this[_0x92382e(0x1ae)]=[];continue;case'1':this[_0x92382e(0x1ab)]=[];continue;case'2':this[_0x92382e(0x211)]=_0x431d07[_0x92382e(0x20e)](isTestObservabilitySession);continue;case'3':this[_0x92382e(0x1cd)]=null;continue;case'4':this[_0x92382e(0x203)]=![];continue;case'5':this['_paths']=new PathHelper({'cwd':process[_0x92382e(0x1b3)]()},this[_0x92382e(0x1ad)][_0x92382e(0x1b5)]);continue;case'6':this[_0x92382e(0x1ad)]=this[_0x92382e(0x25d)]();continue;}break;}}[a23_0x4b5b62(0x25d)]=()=>{const _0x575507=a23_0x4b5b62,_0x4bd422={'yEchV':_0x575507(0x204),'CuJJV':function(_0x50a844){return _0x50a844();}};return{'ci':_0x4bd422['yEchV'],'key':_0x4bd422['CuJJV'](uuidv4),'version':version,'collector':_0x575507(0x1b7)+name};};[a23_0x4b5b62(0x1f8)](){const _0x46e382=a23_0x4b5b62;process[_0x46e382(0x1f3)](_0x46e382(0x264)+process[_0x46e382(0x1f6)]),process['on'](_0x46e382(0x264)+process[_0x46e382(0x1f6)],this['appendTestItemLog'][_0x46e382(0x1cc)](this)),process[_0x46e382(0x1f3)](_0x46e382(0x258)+process[_0x46e382(0x1f6)]),process['on']('bs:addPlatformDetails:'+process[_0x46e382(0x1f6)],this[_0x46e382(0x1db)][_0x46e382(0x1cc)](this));}[a23_0x4b5b62(0x23d)]=async _0x5ddafa=>{const _0x17695c=a23_0x4b5b62,_0x2186f5={'yDfpR':function(_0x396d30,_0x4d6264){return _0x396d30>_0x4d6264;},'jChQC':function(_0x3e8613,_0x1c3146){return _0x3e8613===_0x1c3146;},'psGmI':'TestRunStarted','mwpNx':function(_0x600bae,_0x3d1de2){return _0x600bae(_0x3d1de2);}};try{const _0x4625e9=this[_0x17695c(0x251)];this[_0x17695c(0x251)]=_0x5ddafa,_0x5ddafa[_0x17695c(0x1e4)]=null,_0x5ddafa['testAnalyticsId']=TestDetails[_0x17695c(0x1d0)](process['pid']+_0x17695c(0x1c1)),_0x5ddafa[_0x17695c(0x244)]=new Date()[_0x17695c(0x241)](),_0x2186f5[_0x17695c(0x1e7)](_0x5ddafa['_currentRetry'],0x0)&&_0x4625e9&&_0x2186f5[_0x17695c(0x1cb)](_0x4625e9['title'],_0x5ddafa[_0x17695c(0x238)])?(_0x5ddafa[_0x17695c(0x1e4)]=_0x4625e9[_0x17695c(0x263)],await this[_0x17695c(0x1cf)](_0x5ddafa,undefined,![],_0x2186f5[_0x17695c(0x1ee)]),_0x4625e9[_0x17695c(0x268)]=STATE_FAILED,await this['sendTestRunEvent'](_0x4625e9,undefined,!![])):await this[_0x17695c(0x1cf)](_0x5ddafa,undefined,![],_0x2186f5[_0x17695c(0x1ee)]);}catch(_0x196fa4){_0x2186f5[_0x17695c(0x22b)](debug,_0x17695c(0x1ac)+_0x196fa4);}};[a23_0x4b5b62(0x220)](_0x575981){const _0x3acf03=a23_0x4b5b62,_0x4cedcc={};_0x4cedcc[_0x3acf03(0x1bf)]=function(_0xdc47f2,_0x3d4577){return _0xdc47f2!==_0x3d4577;},_0x4cedcc[_0x3acf03(0x1e8)]=_0x3acf03(0x21d);const _0x572b14=_0x4cedcc;if(_0x572b14['cGeHF'](_0x575981['type'],_0x572b14['qwOqq']))return'\x22'+_0x575981[_0x3acf03(0x231)]+_0x3acf03(0x20b)+(_0x575981[_0x3acf03(0x1c6)]&&_0x575981['parent'][_0x3acf03(0x230)])+'\x22';return _0x575981[_0x3acf03(0x230)];}['sendTestRunEvent']=async(_0x2ee668,_0x3581cd=undefined,_0x2b71a3=![],_0x3ee921='TestRunFinished')=>{const _0x33625d=a23_0x4b5b62,_0x249207={'aWMpA':_0x33625d(0x259),'SQYcQ':_0x33625d(0x1dd),'UmJFG':_0x33625d(0x201),'XiFXV':_0x33625d(0x21a),'zQMsm':'failure_type','rElOE':_0x33625d(0x1d8),'GaXLD':_0x33625d(0x1e5),'CkvVq':function(_0x428454,_0x16d129){return _0x428454(_0x16d129);},'eJHCB':'jest-circus','ZCLwM':_0x33625d(0x226),'qwzzt':function(_0xcb22f3,_0x4da216){return _0xcb22f3!==_0x4da216;},'AdJfQ':_0x33625d(0x21d),'qvhBI':function(_0x29f436,_0x54786d){return _0x29f436!==_0x54786d;},'KifJX':'err','gJttN':_0x33625d(0x1b0),'bbAjT':_0x33625d(0x25b),'qpqYa':function(_0x3422ca,_0xbc712d){return _0x3422ca===_0xbc712d;},'QDSMu':_0x33625d(0x208),'mIeLP':_0x33625d(0x252),'CPvcw':function(_0x105413,_0x20a878){return _0x105413>_0x20a878;},'EWhyG':'failed','WZVVn':'passed','sfeyv':function(_0x30966d,_0xd18da1){return _0x30966d-_0xd18da1;},'hqsJr':function(_0x1bbc1e,_0x3e37e7){return _0x1bbc1e(_0x3e37e7);},'VlDIv':function(_0x584786,_0xabdef7,_0x1c25f9,_0x31511c,_0x3e4d84){return _0x584786(_0xabdef7,_0x1c25f9,_0x31511c,_0x3e4d84);},'vMWLt':function(_0x2961f4,_0x1906ec){return _0x2961f4===_0x1906ec;},'cRPsV':_0x33625d(0x244),'iCTmv':_0x33625d(0x1f4),'JIaIs':function(_0x1df9a9,_0x23618){return _0x1df9a9===_0x23618;},'LoHtt':_0x33625d(0x216),'kGHbN':function(_0x4731e5,_0x5034a8){return _0x4731e5!==_0x5034a8;},'TimbB':_0x33625d(0x237),'cXbGF':_0x33625d(0x1f2),'CfSzV':_0x33625d(0x1c9),'NQhER':_0x33625d(0x213),'SVeZT':'TestRunFinished','TbCRb':'hook_type','tlsLp':function(_0xe90f92,_0x44130b){return _0xe90f92>_0x44130b;},'bdKjW':function(_0x4b22fa,_0x251f26){return _0x4b22fa===_0x251f26;},'jAZbD':_0x33625d(0x232),'dkyII':function(_0x3c3b5e,_0x3f6b57,_0x44b725){return _0x3c3b5e(_0x3f6b57,_0x44b725);},'zcbCX':function(_0x46c97d,_0x308ff2){return _0x46c97d(_0x308ff2);}};try{if(_0x2ee668['fn']&&_0x2ee668['fn'][_0x33625d(0x24b)]()['match'](/browserstack internal helper hook/))return;await this['configureGit']();let _0x140b66;try{_0x140b66=this['getRootParentFile'](_0x2ee668);}catch(_0x136d99){_0x249207[_0x33625d(0x218)](debug,_0x33625d(0x1dc)+_0x136d99),_0x140b66=null;}if(_0x140b66[_0x33625d(0x223)](_0x249207[_0x33625d(0x1ea)]))return;const _0x164331=_0x249207[_0x33625d(0x218)](require,_0x249207[_0x33625d(0x1a2)]);let _0x51eabf=[];if(_0x249207[_0x33625d(0x1e1)](_0x2ee668[_0x33625d(0x1c8)],undefined))_0x51eabf=[_0x2ee668[_0x33625d(0x1c8)],_0x249207[_0x33625d(0x22e)]];else _0x249207[_0x33625d(0x24f)](_0x3581cd,undefined)?_0x51eabf=[_0x3581cd,_0x249207[_0x33625d(0x224)]]:_0x51eabf=[];const _0x5455cc=_0x249207[_0x33625d(0x1e1)](_0x2ee668['errorsDetailed'],undefined)?_0x164331[_0x33625d(0x1d3)](_0x2ee668['errorsDetailed'][0x0]):_0x249207[_0x33625d(0x1e1)](_0x3581cd,undefined)?_0x3581cd[_0x33625d(0x24b)]():undefined,_0x5ea8d4=_0x140b66?this[_0x33625d(0x1fe)][_0x33625d(0x1bc)](this[_0x33625d(0x242)](_0x2ee668)):_0x249207['gJttN'],_0x258796={'framework':FRAMEWORKS[_0x33625d(0x1bd)],'uuid':_0x2ee668[_0x33625d(0x263)]||_0x2ee668[_0x33625d(0x1ff)],'name':this[_0x33625d(0x220)](_0x2ee668),'body':{'lang':_0x249207[_0x33625d(0x246)],'code':_0x2ee668['fn']['toString']()},'scopes':this[_0x33625d(0x255)](_0x2ee668),'file_name':_0x5ea8d4,'vc_filepath':this[_0x33625d(0x1cd)]&&_0x140b66?path[_0x33625d(0x1a4)](this[_0x33625d(0x1cd)],_0x140b66):null,'location':_0x5ea8d4,'result':_0x249207[_0x33625d(0x1a3)](_0x3ee921,_0x249207[_0x33625d(0x1df)])?_0x249207[_0x33625d(0x1a9)]:this['analyticsResult'](_0x2ee668[_0x33625d(0x1c8)]&&_0x249207[_0x33625d(0x1e6)](_0x2ee668[_0x33625d(0x1c8)][_0x33625d(0x200)],0x0)?_0x249207[_0x33625d(0x1de)]:_0x249207[_0x33625d(0x234)]),'failure_reason':_0x5455cc,'duration_in_ms':_0x2ee668['duration']||(_0x3ee921[_0x33625d(0x222)](/Finished/)||_0x3ee921[_0x33625d(0x222)](/Skipped/)?_0x249207['sfeyv'](Date['now'](),new Date(_0x2ee668[_0x33625d(0x244)])[_0x33625d(0x20c)]()):null),'started_at':_0x2ee668[_0x33625d(0x244)],'finished_at':_0x3ee921[_0x33625d(0x222)](/Finished/)||_0x3ee921[_0x33625d(0x222)](/Skipped/)?new Date()[_0x33625d(0x241)]():null,'failure':failureData[_0x33625d(0x1d9)](null,_0x51eabf),'failure_type':!_0x5455cc?null:_0x249207[_0x33625d(0x1d5)](getFailureType,_0x5455cc),'retry_of':_0x2ee668['retryOf']};_0x249207[_0x33625d(0x20a)](appendTesthubParams,_0x258796,_0x3ee921,_0x2ee668,FRAMEWORKS['JEST']);_0x249207[_0x33625d(0x262)](_0x3ee921,_0x249207[_0x33625d(0x1df)])&&!_0x258796[_0x249207[_0x33625d(0x22f)]]&&(_0x258796[_0x249207[_0x33625d(0x22f)]]=_0x258796[_0x249207[_0x33625d(0x25e)]]);if(_0x3ee921[_0x33625d(0x222)](/HookRun/))[_0x258796[_0x33625d(0x21b)],_0x258796['name']]=[_0x2ee668[_0x33625d(0x231)],this[_0x33625d(0x220)](_0x2ee668)],_0x249207['JIaIs'](_0x3ee921,_0x249207[_0x33625d(0x23b)])&&(_0x249207[_0x33625d(0x26a)](_0x258796[_0x33625d(0x201)],_0x249207[_0x33625d(0x1de)])&&(_0x258796[_0x33625d(0x201)]=_0x249207['WZVVn']));else _0x3ee921[_0x33625d(0x222)](/TestRun/)&&this['mapTestHooks'](_0x2ee668);const _0x4b405f=_0x258796[_0x249207[_0x33625d(0x1c4)]][0x0];_0x4b405f&&(_0x258796[_0x249207['TimbB']]=_0x4b405f[_0x249207['cXbGF']],_0x258796[_0x249207[_0x33625d(0x202)]]=_0x4b405f[_0x249207[_0x33625d(0x1fd)]]);[_0x249207[_0x33625d(0x254)],_0x249207[_0x33625d(0x1df)]]['includes'](_0x3ee921)&&(this[_0x33625d(0x1ae)][_0x33625d(0x25a)](_0x258796),_0x258796['hooks']=this[_0x33625d(0x24d)](_0x2ee668),this['resetTestHooks'](_0x2ee668));const _0x940a4f={'event_type':_0x249207['vMWLt'](_0x3ee921,_0x249207['QDSMu'])?_0x249207[_0x33625d(0x254)]:_0x3ee921};_0x3ee921[_0x33625d(0x222)](/HookRun/)?(_0x258796[_0x249207[_0x33625d(0x207)]]=HOOK_TYPES_MAP[_0x258796[_0x249207[_0x33625d(0x207)]]],_0x940a4f[_0x249207[_0x33625d(0x1a8)]]=_0x258796):_0x940a4f[_0x249207[_0x33625d(0x1f1)]]=_0x258796;_0x249207[_0x33625d(0x1a1)](this['hook_data'][_0x33625d(0x200)],0x0)&&[_0x249207[_0x33625d(0x254)],_0x249207[_0x33625d(0x1df)]][_0x33625d(0x223)](_0x3ee921)&&(this['hook_data'][_0x33625d(0x1ec)](async _0x142342=>{const _0xda798c=_0x33625d,_0x24da37=_0x249207[_0xda798c(0x266)]['split']('|');let _0x4c617d=0x0;while(!![]){switch(_0x24da37[_0x4c617d++]){case'0':await SessionHandler[_0xda798c(0x1fa)](_0x142342);continue;case'1':_0x142342[_0x249207[_0xda798c(0x1a8)]][_0x249207[_0xda798c(0x20d)]]=_0x940a4f[_0x249207['XiFXV']][_0x249207[_0xda798c(0x20d)]];continue;case'2':_0x142342[_0x249207[_0xda798c(0x1a8)]][_0x249207['zQMsm']]=_0x940a4f[_0x249207['XiFXV']][_0x249207['zQMsm']];continue;case'3':_0x142342[_0x249207[_0xda798c(0x1a8)]][_0x249207['rElOE']]=_0x940a4f[_0x249207[_0xda798c(0x1f1)]][_0x249207[_0xda798c(0x1c4)]];continue;case'4':_0x142342[_0x249207['SQYcQ']][_0x249207[_0xda798c(0x1fc)]]=_0x940a4f[_0x249207[_0xda798c(0x1f1)]][_0x249207['GaXLD']];continue;}break;}}),this[_0x33625d(0x1ab)]=[]);if(_0x249207[_0x33625d(0x262)](this[_0x33625d(0x1ce)],_0x2ee668[_0x33625d(0x231)])){this[_0x33625d(0x1ab)][_0x33625d(0x25a)](_0x940a4f);return;}_0x249207[_0x33625d(0x1bb)](this[_0x33625d(0x1ce)],_0x249207[_0x33625d(0x267)])&&_0x940a4f[_0x249207[_0x33625d(0x1f1)]]&&(_0x940a4f[_0x249207['XiFXV']][_0x249207[_0x33625d(0x20d)]]=_0x249207[_0x33625d(0x1a9)],_0x940a4f[_0x249207[_0x33625d(0x1f1)]][_0x249207[_0x33625d(0x1c4)]]=null,_0x940a4f[_0x249207[_0x33625d(0x1f1)]][_0x249207['zQMsm']]=null),_0x249207['dkyII'](setCurrentTestData,FRAMEWORKS[_0x33625d(0x1bd)],_0x940a4f),await SessionHandler['uploadEventData'](_0x940a4f);}catch(_0x8eb2b0){_0x249207['zcbCX'](debug,_0x33625d(0x214)+_0x3ee921+_0x33625d(0x21f)+_0x8eb2b0);}};[a23_0x4b5b62(0x1c0)](_0x450b65){const _0x2d3832=a23_0x4b5b62,_0x4fc1b1={};_0x4fc1b1['LUrIX']=function(_0x1668c6,_0x482a6f){return _0x1668c6==_0x482a6f;},_0x4fc1b1[_0x2d3832(0x253)]=function(_0x3007d0,_0x1d814e){return _0x3007d0===_0x1d814e;},_0x4fc1b1['RxVFR']='.git',_0x4fc1b1['QDnrE']=_0x2d3832(0x1d4);const _0xb0aaed=_0x4fc1b1,_0x57d9c4=path[_0x2d3832(0x21c)];if(_0xb0aaed[_0x2d3832(0x1d7)](_0x450b65,null)||_0xb0aaed[_0x2d3832(0x253)](_0x450b65,'')||_0xb0aaed['khVOH'](_0x450b65,_0x57d9c4)||_0xb0aaed[_0x2d3832(0x253)](_0x450b65,path[_0x2d3832(0x1e9)](_0x450b65)))return null;try{return fs[_0x2d3832(0x225)](path[_0x2d3832(0x23a)](_0x450b65,_0xb0aaed[_0x2d3832(0x1af)],_0xb0aaed['QDnrE'])),_0x450b65;}catch(_0x789fba){const _0x375562=path[_0x2d3832(0x1e9)](_0x450b65);return this[_0x2d3832(0x1c0)](_0x375562);}}[a23_0x4b5b62(0x257)]=async _0x21d863=>{const _0x1d091a=a23_0x4b5b62,_0x4086fa={'cpEli':_0x1d091a(0x1c5),'YaARA':function(_0x304065,_0x39803a){return _0x304065(_0x39803a);}},_0x3e49e0=TestDetails[_0x1d091a(0x21e)](process[_0x1d091a(0x1f6)]+_0x1d091a(0x239)),_0x5692f1=TestDetails[_0x1d091a(0x21e)](process[_0x1d091a(0x1f6)]+_0x1d091a(0x1c1));try{(_0x3e49e0||this[_0x1d091a(0x1b6)]&&!this['current_hook'][_0x1d091a(0x1ca)])&&(_0x21d863[_0x1d091a(0x1ba)]=_0x3e49e0);!_0x21d863[_0x1d091a(0x1ba)]&&_0x5692f1&&(_0x21d863[_0x1d091a(0x1d1)]=_0x5692f1);if(_0x21d863[_0x1d091a(0x1ba)]||_0x21d863[_0x1d091a(0x1d1)]){const _0x29ea53={};_0x29ea53['event_type']=_0x4086fa[_0x1d091a(0x23c)],_0x29ea53['logs']=[_0x21d863],await SessionHandler[_0x1d091a(0x1fa)](_0x29ea53);}}catch(_0xd9e9c6){_0x4086fa['YaARA'](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20'+_0xd9e9c6);}};[a23_0x4b5b62(0x1db)]=async _0x472596=>{const _0x520d75=a23_0x4b5b62,_0x1018ee={'aeRIM':_0x520d75(0x1e2),'tbXHR':_0x520d75(0x256),'OGTNO':function(_0x26bb1d,_0x4515f6){return _0x26bb1d(_0x4515f6);}};try{const _0x43f881={'uuid':_0x472596[_0x520d75(0x219)]||TestDetails['getTestUUID'](process[_0x520d75(0x1f6)]+_0x520d75(0x1c1)),'integrations':_0x472596[_0x1018ee[_0x520d75(0x1f5)]]},_0x44c429={};_0x44c429['event_type']=_0x1018ee[_0x520d75(0x1ef)],_0x44c429[_0x520d75(0x21a)]=_0x43f881,await SessionHandler[_0x520d75(0x1fa)](_0x44c429);}catch(_0x10a2b5){_0x1018ee[_0x520d75(0x261)](debug,_0x520d75(0x22c)+_0x10a2b5);}};async[a23_0x4b5b62(0x1f0)](){const _0x172972=a23_0x4b5b62,_0x350a6c={'DeBXm':function(_0x569cf2){return _0x569cf2();}};if(this[_0x172972(0x203)])return this[_0x172972(0x1cd)];const _0x5ac365=await _0x350a6c['DeBXm'](getGitMetaData);_0x5ac365&&(this[_0x172972(0x1cd)]=_0x5ac365[_0x172972(0x247)]),this[_0x172972(0x203)]=!![];}[a23_0x4b5b62(0x1b9)](_0xc4c960){const _0x19e3ee=a23_0x4b5b62,_0x158cf9={};_0x158cf9[_0x19e3ee(0x25c)]=_0x19e3ee(0x212),_0x158cf9[_0x19e3ee(0x221)]=_0x19e3ee(0x22d),_0x158cf9[_0x19e3ee(0x248)]=_0x19e3ee(0x23e);const _0x34a79c=_0x158cf9,_0x3de2ff={};return _0x3de2ff[STATE_PASSED]=_0x34a79c[_0x19e3ee(0x25c)],_0x3de2ff[STATE_PENDING]=_0x34a79c[_0x19e3ee(0x221)],_0x3de2ff[STATE_FAILED]=_0x34a79c[_0x19e3ee(0x248)],_0x3de2ff[_0xc4c960];}[a23_0x4b5b62(0x255)](_0x2ce7c9){const _0x2f65b7=a23_0x4b5b62,_0x334a98={};_0x334a98[_0x2f65b7(0x227)]=function(_0x3779ec,_0x1fbc8b){return _0x3779ec!==_0x1fbc8b;},_0x334a98['pElLf']=_0x2f65b7(0x265);const _0x321122=_0x334a98,_0x2c9cce=[];if(_0x2ce7c9&&_0x2ce7c9[_0x2f65b7(0x1c6)]){let _0xef9797=_0x2ce7c9['parent'];while(_0xef9797&&_0x321122[_0x2f65b7(0x227)](_0xef9797[_0x2f65b7(0x230)],'')&&_0x321122[_0x2f65b7(0x227)](_0xef9797[_0x2f65b7(0x230)],_0x321122['pElLf'])){_0x2c9cce[_0x2f65b7(0x25a)](_0xef9797[_0x2f65b7(0x230)]),_0xef9797=_0xef9797[_0x2f65b7(0x1c6)];}}return _0x2c9cce[_0x2f65b7(0x205)](),_0x2c9cce;}[a23_0x4b5b62(0x242)]=_0x2dac6d=>{const _0x41bb27=a23_0x4b5b62;if(_0x2dac6d[_0x41bb27(0x210)]){const _0x4e49b9=stackTrace[_0x41bb27(0x24a)]['call'](stackTrace,_0x2dac6d[_0x41bb27(0x210)]);return _0x4e49b9[0x0][_0x41bb27(0x209)]();}if(_0x2dac6d[_0x41bb27(0x217)])return _0x2dac6d[_0x41bb27(0x217)];return null;};['mapTestHooks']=_0x7d631f=>{const _0x155376=a23_0x4b5b62;if(!_0x7d631f||!_0x7d631f[_0x155376(0x1c6)])return;_0x7d631f[_0x155376(0x1c6)][_0x155376(0x1be)][_0x155376(0x1ec)](_0x4e74ea=>{const _0x3a5e37=_0x155376;!_0x4e74ea[_0x3a5e37(0x1ff)]&&(_0x4e74ea[_0x3a5e37(0x1ff)]=TestDetails[_0x3a5e37(0x1d0)](process[_0x3a5e37(0x1f6)]+':hookAnalyticsId'));}),this[_0x155376(0x24e)](_0x7d631f[_0x155376(0x1c6)]);};['resetTestHooks']=_0x59783c=>{const _0x1c4ddf=a23_0x4b5b62,_0x5dbfc0={};_0x5dbfc0[_0x1c4ddf(0x250)]=_0x1c4ddf(0x25f),_0x5dbfc0[_0x1c4ddf(0x1f9)]='afterEach';const _0x14c51a=_0x5dbfc0;if(!_0x59783c||!_0x59783c[_0x1c4ddf(0x1c6)])return;_0x59783c[_0x1c4ddf(0x1c6)][_0x1c4ddf(0x1be)][_0x1c4ddf(0x1ec)](_0x18cc68=>{const _0x51d18a=_0x1c4ddf;[_0x14c51a[_0x51d18a(0x250)],_0x14c51a[_0x51d18a(0x1f9)]][_0x51d18a(0x223)](_0x18cc68['type'])&&_0x18cc68[_0x51d18a(0x1ff)]&&(_0x18cc68[_0x51d18a(0x1ff)]=null);}),this[_0x1c4ddf(0x24e)](_0x59783c[_0x1c4ddf(0x1c6)]);};[a23_0x4b5b62(0x23f)](_0xab6900){const _0x99f19f=a23_0x4b5b62,_0x3f3074={'gWilt':_0x99f19f(0x1ed),'SWiAf':function(_0x52f734,_0xba81e5){return _0x52f734(_0xba81e5);},'PhbEj':function(_0x3cb47f,_0x258363){return _0x3cb47f+_0x258363;},'WJMTM':_0x99f19f(0x1b1)};try{const _0x34ee74=this[_0x99f19f(0x242)](_0xab6900);return _0x34ee74[_0x99f19f(0x223)](_0x3f3074[_0x99f19f(0x24c)]);}catch(_0x4280ff){_0x3f3074[_0x99f19f(0x228)](debug,_0x3f3074[_0x99f19f(0x1c3)](_0x3f3074[_0x99f19f(0x269)],_0x4280ff));}return![];}[a23_0x4b5b62(0x24d)]=_0x310071=>{const _0x369302=a23_0x4b5b62,_0x6fe3={'eojxa':function(_0x72a2a2,_0x17d9f6){return _0x72a2a2(_0x17d9f6);}};if(!_0x310071||!_0x310071[_0x369302(0x1c6)])return[];const _0x23002d=[];return _0x310071[_0x369302(0x1c6)]['hooks'][_0x369302(0x1ec)](_0x290706=>{const _0x4192c7=_0x369302;_0x290706[_0x4192c7(0x1ff)]&&!_0x6fe3[_0x4192c7(0x1a6)](isInternalHook,_0x290706['fn'])&&!this[_0x4192c7(0x23f)](_0x290706)&&_0x23002d['push'](_0x290706[_0x4192c7(0x1ff)]);}),[..._0x23002d,...this['getHooksForTest'](_0x310071[_0x369302(0x1c6)])];};},[a23_0x4b5b62(0x25d),'registerListeners',a23_0x4b5b62(0x23d),a23_0x4b5b62(0x220),a23_0x4b5b62(0x1cf),'findGitConfig',a23_0x4b5b62(0x257),a23_0x4b5b62(0x1db),a23_0x4b5b62(0x1b9),'getHierarchy',a23_0x4b5b62(0x242),'mapTestHooks',a23_0x4b5b62(0x1d6),a23_0x4b5b62(0x24d),'configureGit'],a23_0x4b5b62(0x249));
1
+ const a23_0x51caba=a23_0x3985;(function(_0x2be7f5,_0x56d4ad){const _0x4d07e0=a23_0x3985,_0x4cba70=_0x2be7f5();while(!![]){try{const _0x381688=parseInt(_0x4d07e0(0x11f))/0x1*(-parseInt(_0x4d07e0(0x12c))/0x2)+parseInt(_0x4d07e0(0x145))/0x3*(-parseInt(_0x4d07e0(0xc8))/0x4)+-parseInt(_0x4d07e0(0x113))/0x5+-parseInt(_0x4d07e0(0x178))/0x6*(-parseInt(_0x4d07e0(0x173))/0x7)+-parseInt(_0x4d07e0(0x10b))/0x8+-parseInt(_0x4d07e0(0x158))/0x9+parseInt(_0x4d07e0(0x15a))/0xa;if(_0x381688===_0x56d4ad)break;else _0x4cba70['push'](_0x4cba70['shift']());}catch(_0x5984ab){_0x4cba70['push'](_0x4cba70['shift']());}}}(a23_0x4921,0x2416f));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x51caba(0xf4)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{v4:uuidv4}=require('uuid'),{name,version}=require(a23_0x51caba(0xf5)),stackTrace=require(a23_0x51caba(0x104)),path=require(a23_0x51caba(0x14b)),fs=require('fs'),TestDetails=require(a23_0x51caba(0x122)),{FRAMEWORKS}=require('../../utils/constants'),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require('../../../helpers/helper'),{appendTesthubParams,setCurrentTestData}=require(a23_0x51caba(0x174)),a23_0x5d9b42={};a23_0x5d9b42['STATE_PASSED']='passed',a23_0x5d9b42[a23_0x51caba(0xd6)]='failed',a23_0x5d9b42[a23_0x51caba(0xfc)]=a23_0x51caba(0x161);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x5d9b42,a23_0x560e90={};function a23_0x3985(_0x1a25de,_0x4852cd){const _0x49211b=a23_0x4921();return a23_0x3985=function(_0x39855b,_0x2ac479){_0x39855b=_0x39855b-0xc2;let _0x114ea0=_0x49211b[_0x39855b];return _0x114ea0;},a23_0x3985(_0x1a25de,_0x4852cd);}a23_0x560e90['beforeAll']=a23_0x51caba(0xc2),a23_0x560e90[a23_0x51caba(0x14a)]='AFTER_ALL',a23_0x560e90['beforeEach']=a23_0x51caba(0x13e),a23_0x560e90['afterEach']='AFTER_EACH';const HOOK_TYPES_MAP=a23_0x560e90;module[a23_0x51caba(0xe7)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x3a3f56=a23_0x51caba,_0x4bf5a4={'ihvbf':_0x3a3f56(0x142),'ESyRc':function(_0x37788c){return _0x37788c();}},_0xf28f6f=_0x4bf5a4[_0x3a3f56(0xd9)][_0x3a3f56(0x10f)]('|');let _0x5b7226=0x0;while(!![]){switch(_0xf28f6f[_0x5b7226++]){case'0':this[_0x3a3f56(0x101)]=new PathHelper({'cwd':process[_0x3a3f56(0xd5)]()},this[_0x3a3f56(0x106)]['location_prefix']);continue;case'1':this['hook_data']=[];continue;case'2':this[_0x3a3f56(0x169)]=![];continue;case'3':this[_0x3a3f56(0x106)]=this[_0x3a3f56(0xe8)]();continue;case'4':this[_0x3a3f56(0x141)]=null;continue;case'5':this['_testResults']=[];continue;case'6':this[_0x3a3f56(0x15b)]=_0x4bf5a4[_0x3a3f56(0x133)](isTestObservabilitySession);continue;}break;}}['getTestEnv']=()=>{const _0x190012=a23_0x51caba,_0x143ee9={'MiAjE':_0x190012(0x11a),'DDzLW':function(_0x1015e3){return _0x1015e3();}};return{'ci':_0x143ee9[_0x190012(0xcd)],'key':_0x143ee9[_0x190012(0xea)](uuidv4),'version':version,'collector':'js-'+name};};[a23_0x51caba(0xf2)](){const _0x50dd80=a23_0x51caba;process[_0x50dd80(0x166)](_0x50dd80(0xf8)+process['pid']),process['on'](_0x50dd80(0xf8)+process[_0x50dd80(0x128)],this[_0x50dd80(0x111)][_0x50dd80(0x16c)](this)),process['removeAllListeners']('bs:addPlatformDetails:'+process[_0x50dd80(0x128)]),process['on'](_0x50dd80(0xe0)+process[_0x50dd80(0x128)],this[_0x50dd80(0x167)][_0x50dd80(0x16c)](this));}[a23_0x51caba(0x12a)]=async _0x11cb3e=>{const _0x428cd2=a23_0x51caba,_0x19fb73={'Bsbzb':function(_0x26a312,_0x57ae61){return _0x26a312>_0x57ae61;},'ZiSUW':function(_0x3ab378,_0x4ab5fe){return _0x3ab378===_0x4ab5fe;},'eubKq':'TestRunStarted','qEWPA':function(_0x5b6ae6,_0x47d815){return _0x5b6ae6(_0x47d815);}};try{const _0x53e359=this[_0x428cd2(0x114)];this[_0x428cd2(0x114)]=_0x11cb3e,_0x11cb3e[_0x428cd2(0xc5)]=null,_0x11cb3e[_0x428cd2(0x123)]=TestDetails[_0x428cd2(0xe6)](process[_0x428cd2(0x128)]+_0x428cd2(0xc3)),_0x11cb3e[_0x428cd2(0xde)]=new Date()['toISOString'](),_0x19fb73['Bsbzb'](_0x11cb3e[_0x428cd2(0x105)],0x0)&&_0x53e359&&_0x19fb73[_0x428cd2(0x10d)](_0x53e359[_0x428cd2(0xfe)],_0x11cb3e['title'])?(_0x11cb3e[_0x428cd2(0xc5)]=_0x53e359[_0x428cd2(0x123)],await this[_0x428cd2(0x175)](_0x11cb3e,undefined,![],_0x19fb73[_0x428cd2(0x150)]),_0x53e359['state']=STATE_FAILED,await this['sendTestRunEvent'](_0x53e359,undefined,!![])):await this[_0x428cd2(0x175)](_0x11cb3e,undefined,![],_0x19fb73[_0x428cd2(0x150)]);}catch(_0x1167d2){_0x19fb73[_0x428cd2(0x15e)](debug,_0x428cd2(0xdf)+_0x1167d2);}};['getName'](_0x1ba2ad){const _0x3c3d24=a23_0x51caba,_0x538c27={};_0x538c27[_0x3c3d24(0x102)]=function(_0x2b6024,_0x117365){return _0x2b6024!==_0x117365;},_0x538c27[_0x3c3d24(0xcf)]=_0x3c3d24(0x121);const _0x1d23f2=_0x538c27;if(_0x1d23f2[_0x3c3d24(0x102)](_0x1ba2ad[_0x3c3d24(0x184)],_0x1d23f2[_0x3c3d24(0xcf)]))return'\x22'+_0x1ba2ad['type']+_0x3c3d24(0x17b)+(_0x1ba2ad[_0x3c3d24(0x17d)]&&_0x1ba2ad[_0x3c3d24(0x17d)][_0x3c3d24(0x11e)])+'\x22';return _0x1ba2ad[_0x3c3d24(0x11e)];}[a23_0x51caba(0x175)]=async(_0x213203,_0x454404=undefined,_0x56971f=![],_0x55476e=a23_0x51caba(0x108))=>{const _0x8e90d7=a23_0x51caba,_0x4eb2b1={'dAOal':_0x8e90d7(0x130),'vkulz':_0x8e90d7(0x154),'BNmwh':_0x8e90d7(0x15f),'BoTzH':'test_run','MtAId':_0x8e90d7(0xdc),'NSILt':_0x8e90d7(0x118),'bohgy':_0x8e90d7(0x13f),'lnybA':function(_0x34bc33,_0x58638e){return _0x34bc33(_0x58638e);},'hrAiG':_0x8e90d7(0x16e),'gjolP':function(_0x1826a5,_0x10aea4){return _0x1826a5(_0x10aea4);},'uLXXF':_0x8e90d7(0xff),'ZwRHc':function(_0x4465cc,_0x159328){return _0x4465cc!==_0x159328;},'RKhXS':'test','uhFwH':_0x8e90d7(0xd2),'iLMxD':_0x8e90d7(0xce),'ZZoHs':'javascript','ImTxb':function(_0x4fbc45,_0x19ea42){return _0x4fbc45===_0x19ea42;},'Rhifi':'TestRunSkipped','JZMOB':'skipped','EXCNO':function(_0x3e257a,_0x44ad69){return _0x3e257a>_0x44ad69;},'HxYPB':'failed','odEmh':_0x8e90d7(0x13d),'BsCCZ':function(_0x25eccc,_0x4749c8){return _0x25eccc-_0x4749c8;},'KAVSH':function(_0x56c173,_0x31299c,_0x3ecddb,_0x1cfb1b,_0x1f6c62){return _0x56c173(_0x31299c,_0x3ecddb,_0x1cfb1b,_0x1f6c62);},'jNjnC':function(_0x76334f,_0x204680){return _0x76334f===_0x204680;},'fUFVf':_0x8e90d7(0xde),'vbqwt':_0x8e90d7(0xe2),'SHbHs':function(_0x108be7,_0x3dbec7){return _0x108be7===_0x3dbec7;},'LEyTv':_0x8e90d7(0x14f),'ZfTnU':function(_0x3a54f9,_0x5f2a1e){return _0x3a54f9!==_0x5f2a1e;},'oyysk':_0x8e90d7(0x152),'ufvZv':'backtrace','QofeL':_0x8e90d7(0x171),'NhcDO':_0x8e90d7(0x12d),'AVfmj':_0x8e90d7(0x108),'VuRsw':_0x8e90d7(0x176),'SxCEC':_0x8e90d7(0x15c),'vDOah':function(_0x1e4add,_0xed4100,_0x51d2c3){return _0x1e4add(_0xed4100,_0x51d2c3);},'sNbwM':function(_0x10bc54,_0x59338a){return _0x10bc54(_0x59338a);}};try{if(_0x213203['fn']&&_0x213203['fn'][_0x8e90d7(0x149)]()[_0x8e90d7(0x14c)](/browserstack internal helper hook/))return;await this[_0x8e90d7(0x14e)]();let _0x5b4f58;try{_0x5b4f58=this['getRootParentFile'](_0x213203);}catch(_0x283302){_0x4eb2b1['lnybA'](debug,_0x8e90d7(0x15d)+_0x283302),_0x5b4f58=null;}if(_0x5b4f58[_0x8e90d7(0xe4)](_0x4eb2b1['hrAiG']))return;const _0x1b248e=_0x4eb2b1['gjolP'](require,_0x4eb2b1['uLXXF']);let _0x337918=[];if(_0x4eb2b1[_0x8e90d7(0x137)](_0x213203[_0x8e90d7(0x162)],undefined))_0x337918=[_0x213203[_0x8e90d7(0x162)],_0x4eb2b1[_0x8e90d7(0x100)]];else _0x4eb2b1[_0x8e90d7(0x137)](_0x454404,undefined)?_0x337918=[_0x454404,_0x4eb2b1[_0x8e90d7(0xfb)]]:_0x337918=[];const _0x381932=_0x4eb2b1[_0x8e90d7(0x137)](_0x213203[_0x8e90d7(0x162)],undefined)?_0x1b248e['inspect'](_0x213203[_0x8e90d7(0x162)][0x0]):_0x4eb2b1[_0x8e90d7(0x137)](_0x454404,undefined)?_0x454404[_0x8e90d7(0x149)]():undefined,_0x214b80=_0x5b4f58?this[_0x8e90d7(0x101)][_0x8e90d7(0x12f)](this[_0x8e90d7(0x13c)](_0x213203)):_0x4eb2b1[_0x8e90d7(0x146)],_0x48126e={'framework':FRAMEWORKS[_0x8e90d7(0x181)],'uuid':_0x213203[_0x8e90d7(0x123)]||_0x213203[_0x8e90d7(0xeb)],'name':this[_0x8e90d7(0xd7)](_0x213203),'body':{'lang':_0x4eb2b1[_0x8e90d7(0x16f)],'code':_0x213203['fn'][_0x8e90d7(0x149)]()},'scopes':this[_0x8e90d7(0x140)](_0x213203),'file_name':_0x214b80,'vc_filepath':this[_0x8e90d7(0x141)]&&_0x5b4f58?path[_0x8e90d7(0x11c)](this[_0x8e90d7(0x141)],_0x5b4f58):null,'location':_0x214b80,'result':_0x4eb2b1[_0x8e90d7(0xc6)](_0x55476e,_0x4eb2b1[_0x8e90d7(0xed)])?_0x4eb2b1['JZMOB']:this[_0x8e90d7(0x179)](_0x213203['errorsDetailed']&&_0x4eb2b1[_0x8e90d7(0x157)](_0x213203['errorsDetailed'][_0x8e90d7(0xd3)],0x0)?_0x4eb2b1[_0x8e90d7(0x159)]:_0x4eb2b1[_0x8e90d7(0xe5)]),'failure_reason':_0x381932,'duration_in_ms':_0x213203['duration']||(_0x55476e[_0x8e90d7(0x14c)](/Finished/)||_0x55476e[_0x8e90d7(0x14c)](/Skipped/)?_0x4eb2b1[_0x8e90d7(0x13b)](Date[_0x8e90d7(0x124)](),new Date(_0x213203[_0x8e90d7(0xde)])[_0x8e90d7(0x107)]()):null),'started_at':_0x213203['started_at'],'finished_at':_0x55476e[_0x8e90d7(0x14c)](/Finished/)||_0x55476e[_0x8e90d7(0x14c)](/Skipped/)?new Date()[_0x8e90d7(0x17a)]():null,'failure':failureData[_0x8e90d7(0x12b)](null,_0x337918),'failure_type':!_0x381932?null:_0x4eb2b1[_0x8e90d7(0xe3)](getFailureType,_0x381932),'retry_of':_0x213203[_0x8e90d7(0xc5)]};_0x4eb2b1[_0x8e90d7(0x147)](appendTesthubParams,_0x48126e,_0x55476e,_0x213203,FRAMEWORKS['JEST']);_0x4eb2b1[_0x8e90d7(0x170)](_0x55476e,_0x4eb2b1['Rhifi'])&&!_0x48126e[_0x4eb2b1[_0x8e90d7(0xf9)]]&&(_0x48126e[_0x4eb2b1[_0x8e90d7(0xf9)]]=_0x48126e[_0x4eb2b1['vbqwt']]);if(_0x55476e[_0x8e90d7(0x14c)](/HookRun/))[_0x48126e['hook_type'],_0x48126e[_0x8e90d7(0x11e)]]=[_0x213203['type'],this[_0x8e90d7(0xd7)](_0x213203)],_0x4eb2b1[_0x8e90d7(0x16d)](_0x55476e,_0x4eb2b1[_0x8e90d7(0x13a)])&&(_0x4eb2b1[_0x8e90d7(0x129)](_0x48126e[_0x8e90d7(0x13f)],_0x4eb2b1[_0x8e90d7(0x159)])&&(_0x48126e[_0x8e90d7(0x13f)]=_0x4eb2b1['odEmh']));else _0x55476e[_0x8e90d7(0x14c)](/TestRun/)&&this[_0x8e90d7(0x127)](_0x213203);const _0x14e2fe=_0x48126e[_0x4eb2b1[_0x8e90d7(0x16b)]][0x0];_0x14e2fe&&(_0x48126e[_0x4eb2b1[_0x8e90d7(0x160)]]=_0x14e2fe[_0x4eb2b1[_0x8e90d7(0xd1)]],_0x48126e[_0x4eb2b1['QofeL']]=_0x14e2fe[_0x4eb2b1[_0x8e90d7(0xe1)]]);[_0x4eb2b1['AVfmj'],_0x4eb2b1['Rhifi']][_0x8e90d7(0xe4)](_0x55476e)&&(this[_0x8e90d7(0x16a)][_0x8e90d7(0x17e)](_0x48126e),_0x48126e[_0x8e90d7(0x10e)]=this[_0x8e90d7(0xe9)](_0x213203),this[_0x8e90d7(0x153)](_0x213203));const _0x542f5a={'event_type':_0x4eb2b1[_0x8e90d7(0x16d)](_0x55476e,_0x4eb2b1[_0x8e90d7(0xed)])?_0x4eb2b1[_0x8e90d7(0x11d)]:_0x55476e};_0x55476e[_0x8e90d7(0x14c)](/HookRun/)?(_0x48126e[_0x4eb2b1[_0x8e90d7(0x172)]]=HOOK_TYPES_MAP[_0x48126e[_0x4eb2b1['VuRsw']]],_0x542f5a[_0x4eb2b1[_0x8e90d7(0x103)]]=_0x48126e):_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]]=_0x48126e;_0x4eb2b1[_0x8e90d7(0x157)](this[_0x8e90d7(0x156)]['length'],0x0)&&[_0x4eb2b1['AVfmj'],_0x4eb2b1[_0x8e90d7(0xed)]][_0x8e90d7(0xe4)](_0x55476e)&&(this[_0x8e90d7(0x156)]['forEach'](async _0x290554=>{const _0x591597=_0x8e90d7,_0x3607fb=_0x4eb2b1[_0x591597(0xee)]['split']('|');let _0x37c8c6=0x0;while(!![]){switch(_0x3607fb[_0x37c8c6++]){case'0':_0x290554[_0x4eb2b1['vkulz']][_0x4eb2b1[_0x591597(0x117)]]=_0x542f5a[_0x4eb2b1[_0x591597(0x115)]][_0x4eb2b1[_0x591597(0x117)]];continue;case'1':_0x290554[_0x4eb2b1[_0x591597(0x103)]][_0x4eb2b1[_0x591597(0x16b)]]=_0x542f5a[_0x4eb2b1[_0x591597(0x115)]][_0x4eb2b1[_0x591597(0x16b)]];continue;case'2':await SessionHandler[_0x591597(0x11b)](_0x290554);continue;case'3':_0x290554[_0x4eb2b1['vkulz']][_0x4eb2b1[_0x591597(0x164)]]=_0x542f5a[_0x4eb2b1[_0x591597(0x115)]][_0x4eb2b1[_0x591597(0x164)]];continue;case'4':_0x290554[_0x4eb2b1[_0x591597(0x103)]][_0x4eb2b1[_0x591597(0xd8)]]=_0x542f5a[_0x4eb2b1['BoTzH']][_0x4eb2b1[_0x591597(0xd8)]];continue;}break;}}),this[_0x8e90d7(0x156)]=[]);if(_0x4eb2b1[_0x8e90d7(0xc6)](this['hook_failure'],_0x213203[_0x8e90d7(0x184)])){this[_0x8e90d7(0x156)]['push'](_0x542f5a);return;}_0x4eb2b1[_0x8e90d7(0xc6)](this[_0x8e90d7(0xcb)],_0x4eb2b1[_0x8e90d7(0x12e)])&&_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]]&&(_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]][_0x4eb2b1['bohgy']]=_0x4eb2b1[_0x8e90d7(0x17f)],_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]][_0x4eb2b1['MtAId']]=null,_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]][_0x4eb2b1['NSILt']]=null),_0x4eb2b1[_0x8e90d7(0x10c)](setCurrentTestData,FRAMEWORKS[_0x8e90d7(0x181)],_0x542f5a),await SessionHandler[_0x8e90d7(0x11b)](_0x542f5a);}catch(_0x477362){_0x4eb2b1['sNbwM'](debug,_0x8e90d7(0x110)+_0x55476e+'\x20with\x20error\x20:\x20'+_0x477362);}};[a23_0x51caba(0x116)](_0x47d3b1){const _0x12c95a=a23_0x51caba,_0x2b346d={};_0x2b346d[_0x12c95a(0x183)]=function(_0x525f16,_0x437b63){return _0x525f16==_0x437b63;},_0x2b346d[_0x12c95a(0x125)]=function(_0x3bb854,_0x23d180){return _0x3bb854===_0x23d180;},_0x2b346d[_0x12c95a(0x119)]=_0x12c95a(0x138),_0x2b346d['Solxa']='config';const _0x2db1a0=_0x2b346d,_0x5b6ac6=path[_0x12c95a(0x182)];if(_0x2db1a0[_0x12c95a(0x183)](_0x47d3b1,null)||_0x2db1a0[_0x12c95a(0x125)](_0x47d3b1,'')||_0x2db1a0[_0x12c95a(0x125)](_0x47d3b1,_0x5b6ac6)||_0x2db1a0[_0x12c95a(0x125)](_0x47d3b1,path['dirname'](_0x47d3b1)))return null;try{return fs['statSync'](path[_0x12c95a(0xc7)](_0x47d3b1,_0x2db1a0['VOOUF'],_0x2db1a0[_0x12c95a(0x168)])),_0x47d3b1;}catch(_0x50ed96){const _0xc87524=path[_0x12c95a(0x135)](_0x47d3b1);return this[_0x12c95a(0x116)](_0xc87524);}}[a23_0x51caba(0x111)]=async _0x15f696=>{const _0x731c91=a23_0x51caba,_0x4f0b2e={'bFxuH':_0x731c91(0xca),'DqjAy':function(_0xf393fb,_0x5daa63){return _0xf393fb(_0x5daa63);}},_0x435035=TestDetails[_0x731c91(0x17c)](process[_0x731c91(0x128)]+':hookAnalyticsId'),_0x29c25c=TestDetails[_0x731c91(0x17c)](process[_0x731c91(0x128)]+_0x731c91(0xc3));try{(_0x435035||this[_0x731c91(0xc9)]&&!this[_0x731c91(0xc9)][_0x731c91(0xf6)])&&(_0x15f696[_0x731c91(0x139)]=_0x435035);!_0x15f696[_0x731c91(0x139)]&&_0x29c25c&&(_0x15f696[_0x731c91(0x148)]=_0x29c25c);if(_0x15f696[_0x731c91(0x139)]||_0x15f696['test_run_uuid']){const _0x33bad7={};_0x33bad7[_0x731c91(0x144)]=_0x4f0b2e[_0x731c91(0x134)],_0x33bad7[_0x731c91(0xd0)]=[_0x15f696],await SessionHandler['uploadEventData'](_0x33bad7);}}catch(_0x3ca305){_0x4f0b2e['DqjAy'](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20'+_0x3ca305);}};[a23_0x51caba(0x167)]=async _0x3a2c1d=>{const _0xf4d4dd=a23_0x51caba,_0x1e2968={'rWfzV':'http_response','goxdT':_0xf4d4dd(0x136),'TFCJI':function(_0x14f3ee,_0x6eb1f3){return _0x14f3ee(_0x6eb1f3);}};try{const _0x159b33={'uuid':_0x3a2c1d[_0xf4d4dd(0x180)]||TestDetails[_0xf4d4dd(0x17c)](process[_0xf4d4dd(0x128)]+_0xf4d4dd(0xc3)),'integrations':_0x3a2c1d[_0x1e2968[_0xf4d4dd(0x155)]]},_0x24ee1a={};_0x24ee1a[_0xf4d4dd(0x144)]=_0x1e2968['goxdT'],_0x24ee1a[_0xf4d4dd(0x120)]=_0x159b33,await SessionHandler['uploadEventData'](_0x24ee1a);}catch(_0x4d931f){_0x1e2968[_0xf4d4dd(0xfd)](debug,_0xf4d4dd(0xf7)+_0x4d931f);}};async[a23_0x51caba(0x14e)](){const _0x3ba80b=a23_0x51caba,_0x451a73={'YDzuZ':function(_0x25ad22){return _0x25ad22();}};if(this['_gitConfigured'])return this['_gitConfigPath'];const _0x1a1bf2=await _0x451a73[_0x3ba80b(0x14d)](getGitMetaData);_0x1a1bf2&&(this['_gitConfigPath']=_0x1a1bf2[_0x3ba80b(0xc4)]),this[_0x3ba80b(0x169)]=!![];}[a23_0x51caba(0x179)](_0xc8327c){const _0x2bce91=a23_0x51caba,_0x29335f={};_0x29335f[_0x2bce91(0xd4)]=_0x2bce91(0x13d),_0x29335f[_0x2bce91(0xdd)]=_0x2bce91(0x161),_0x29335f[_0x2bce91(0x163)]=_0x2bce91(0xdb);const _0x5a2aaf=_0x29335f,_0x26b67e={};return _0x26b67e[STATE_PASSED]=_0x5a2aaf[_0x2bce91(0xd4)],_0x26b67e[STATE_PENDING]=_0x5a2aaf[_0x2bce91(0xdd)],_0x26b67e[STATE_FAILED]=_0x5a2aaf[_0x2bce91(0x163)],_0x26b67e[_0xc8327c];}[a23_0x51caba(0x140)](_0x1f5ff9){const _0x167098=a23_0x51caba,_0x56500e={};_0x56500e['ldNIA']=function(_0x12d9a2,_0x3b92be){return _0x12d9a2!==_0x3b92be;},_0x56500e[_0x167098(0x112)]=_0x167098(0xec);const _0x1973b5=_0x56500e,_0x3f7eec=[];if(_0x1f5ff9&&_0x1f5ff9['parent']){let _0x5dce6d=_0x1f5ff9[_0x167098(0x17d)];while(_0x5dce6d&&_0x1973b5['ldNIA'](_0x5dce6d[_0x167098(0x11e)],'')&&_0x1973b5['ldNIA'](_0x5dce6d['name'],_0x1973b5[_0x167098(0x112)])){_0x3f7eec[_0x167098(0x17e)](_0x5dce6d[_0x167098(0x11e)]),_0x5dce6d=_0x5dce6d[_0x167098(0x17d)];}}return _0x3f7eec[_0x167098(0xf1)](),_0x3f7eec;}[a23_0x51caba(0x13c)]=_0x1d31e6=>{const _0x9b3415=a23_0x51caba;if(_0x1d31e6[_0x9b3415(0xfa)]){const _0x22ee1f=stackTrace[_0x9b3415(0x10a)][_0x9b3415(0x165)](stackTrace,_0x1d31e6[_0x9b3415(0xfa)]);return _0x22ee1f[0x0][_0x9b3415(0x143)]();}if(_0x1d31e6['file'])return _0x1d31e6[_0x9b3415(0x177)];return null;};['mapTestHooks']=_0x51be69=>{const _0x64a1ea=a23_0x51caba;if(!_0x51be69||!_0x51be69[_0x64a1ea(0x17d)])return;_0x51be69['parent'][_0x64a1ea(0x10e)]['forEach'](_0x5e86a8=>{const _0x268449=_0x64a1ea;!_0x5e86a8['hookAnalyticsId']&&(_0x5e86a8[_0x268449(0xeb)]=TestDetails[_0x268449(0xe6)](process[_0x268449(0x128)]+_0x268449(0xf3)));}),this[_0x64a1ea(0x127)](_0x51be69[_0x64a1ea(0x17d)]);};['resetTestHooks']=_0x29519b=>{const _0x4a7052=a23_0x51caba,_0x2cbb73={};_0x2cbb73['WxXHA']=_0x4a7052(0xcc),_0x2cbb73[_0x4a7052(0xda)]=_0x4a7052(0xef);const _0x39b2fd=_0x2cbb73;if(!_0x29519b||!_0x29519b[_0x4a7052(0x17d)])return;_0x29519b['parent'][_0x4a7052(0x10e)][_0x4a7052(0x131)](_0x1c693f=>{const _0x469027=_0x4a7052;[_0x39b2fd[_0x469027(0x151)],_0x39b2fd[_0x469027(0xda)]][_0x469027(0xe4)](_0x1c693f[_0x469027(0x184)])&&_0x1c693f[_0x469027(0xeb)]&&(_0x1c693f[_0x469027(0xeb)]=null);}),this[_0x4a7052(0x127)](_0x29519b['parent']);};['isJestInternalHook'](_0x26eaae){const _0x58a0e5=a23_0x51caba,_0x1db7ad={'QJEyj':_0x58a0e5(0x16e),'INfGU':function(_0x417100,_0x3f8858){return _0x417100(_0x3f8858);},'IGBMA':function(_0x4dda91,_0x1f7503){return _0x4dda91+_0x1f7503;},'pGbMg':'Exception\x20in\x20getting\x20file\x20for\x20hook\x20'};try{const _0x2fec75=this[_0x58a0e5(0x13c)](_0x26eaae);return _0x2fec75[_0x58a0e5(0xe4)](_0x1db7ad['QJEyj']);}catch(_0x3ac92a){_0x1db7ad[_0x58a0e5(0x132)](debug,_0x1db7ad['IGBMA'](_0x1db7ad['pGbMg'],_0x3ac92a));}return![];}[a23_0x51caba(0xe9)]=_0x389b7e=>{const _0x2dcba2=a23_0x51caba,_0x21b934={'wgBlB':function(_0x29c710,_0x5018cd){return _0x29c710(_0x5018cd);}};if(!_0x389b7e||!_0x389b7e['parent'])return[];const _0x56cbf2=[];return _0x389b7e[_0x2dcba2(0x17d)][_0x2dcba2(0x10e)][_0x2dcba2(0x131)](_0x1f3e5f=>{const _0x4e21ca=_0x2dcba2;_0x1f3e5f['hookAnalyticsId']&&!_0x21b934[_0x4e21ca(0x126)](isInternalHook,_0x1f3e5f['fn'])&&!this[_0x4e21ca(0x109)](_0x1f3e5f)&&_0x56cbf2[_0x4e21ca(0x17e)](_0x1f3e5f[_0x4e21ca(0xeb)]);}),[..._0x56cbf2,...this[_0x2dcba2(0xe9)](_0x389b7e['parent'])];};},[a23_0x51caba(0xe8),'registerListeners',a23_0x51caba(0x12a),a23_0x51caba(0xd7),a23_0x51caba(0x175),a23_0x51caba(0x116),a23_0x51caba(0x111),a23_0x51caba(0x167),a23_0x51caba(0x179),'getHierarchy',a23_0x51caba(0x13c),a23_0x51caba(0x127),a23_0x51caba(0x153),a23_0x51caba(0xe9),a23_0x51caba(0x14e)],a23_0x51caba(0xf0));function a23_0x4921(){const _0x5243f9=['ZiSUW','hooks','split','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','appendTestItemLog','Yrbtd','217875PyKIKZ','current_test','BoTzH','findGitConfig','BNmwh','failure_type','VOOUF','generic','uploadEventData','relative','AVfmj','name','2stimVL','test_run','test','./test-details','testAnalyticsId','now','cBbus','wgBlB','mapTestHooks','pid','ZfTnU','testStarted','apply','8278nVwJbG','expanded','SxCEC','prefixTestPath','1|3|4|0|2','forEach','INfGU','ESyRc','bFxuH','dirname','CBTSessionCreated','ZwRHc','.git','hook_run_uuid','LEyTv','BsCCZ','getRootParentFile','passed','BEFORE_EACH','result','getHierarchy','_gitConfigPath','6|5|3|0|1|2|4','getFileName','event_type','355029nnxOXH','iLMxD','KAVSH','test_run_uuid','toString','afterAll','path','match','YDzuZ','configureGit','HookRunFinished','eubKq','WxXHA','failure_backtrace','resetTestHooks','hook_run','rWfzV','hook_data','EXCNO','1604619mRMkCp','HxYPB','3544460FXEarM','testObservability','beforeAll','failed\x20to\x20get\x20root\x20parent\x20file\x20','qEWPA','failure_reason','oyysk','pending','errorsDetailed','iwwma','NSILt','call','removeAllListeners','appendTestPlatform','Solxa','_gitConfigured','_testResults','MtAId','bind','SHbHs','jest-circus','ZZoHs','jNjnC','failure_reason_expanded','VuRsw','1873228ShzIVK','../../../helpers/testhub/utils','sendTestRunEvent','hook_type','file','6rlTniG','analyticsResult','toISOString','\x22\x20hook\x20for\x20\x22','getTestUUID','parent','push','JZMOB','uuid','JEST','sep','jRRbq','type','BEFORE_ALL',':testAnalyticsId','root','retryOf','ImTxb','join','4BRQnVK','current_hook','LogCreated','hook_failure','beforeEach','MiAjE','File\x20path\x20could\x20not\x20be\x20found','BRqLa','logs','ufvZv','err','length','zGsPY','cwd','STATE_FAILED','getName','bohgy','ihvbf','pmWDP','failed','failure','naQtv','started_at','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','bs:addPlatformDetails:','NhcDO','finished_at','gjolP','includes','odEmh','setTestUUID','exports','getTestEnv','getHooksForTest','DDzLW','hookAnalyticsId','ROOT_DESCRIBE_BLOCK','Rhifi','dAOal','afterEach','ObservabilityReporter','reverse','registerListeners',':hookAnalyticsId','../../../helpers/test-observability/utils','../../../../package.json','markedStatus','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','bs:addLog:','fUFVf','asyncError','uhFwH','STATE_PENDING','TFCJI','title','util','RKhXS','_paths','LRHCQ','vkulz','stack-trace','_currentRetry','_testEnv','getTime','TestRunFinished','isJestInternalHook','parse','1005920TvNIsT','vDOah'];a23_0x4921=function(){return _0x5243f9;};return a23_0x4921();}
@@ -1 +1 @@
1
- const a24_0x15d587=a24_0x5f3d;function a24_0x1be4(){const _0x4a5484=['7638282eePLAi','28209JjajEJ','removeTestUUID','setup','hSZAw','1012449jyjjoD','setTestUUID','dirPath','exports','.browserstack','_projectId','ncKJm','uuid','mkdirSync','toString','readFileSync','yHEVo','22GkVlJh','recursive','24176730GyXXnb','../../../helpers/testhub/constants','writeFileSync','setTestData','stringify','parse','5YdLnpP','jest-o11y-','shutdown','mOPsm','HYBYb','hYDhh','testData.json','756091jUXQlL','_test','homedir','36IBZUFw','getTestUUID','getTestRunIdFromTestInfo','getFilePath','1701528BkMtAr','unlinkSync','env','join','4150076HPXOBu','path','../../../helpers/helper','VAQul','ENV_VAR','tests','existsSync','amDnP','pUMeJ','BROWSERSTACK_TESTHUB_UUID'];a24_0x1be4=function(){return _0x4a5484;};return a24_0x1be4();}(function(_0x3c955a,_0x35e9d0){const _0x17de93=a24_0x5f3d,_0x1737e4=_0x3c955a();while(!![]){try{const _0x24c257=-parseInt(_0x17de93(0x88))/0x1*(-parseInt(_0x17de93(0x98))/0x2)+parseInt(_0x17de93(0x8c))/0x3+parseInt(_0x17de93(0xb2))/0x4*(parseInt(_0x17de93(0xa0))/0x5)+parseInt(_0x17de93(0xaa))/0x6*(parseInt(_0x17de93(0xa7))/0x7)+-parseInt(_0x17de93(0xae))/0x8+parseInt(_0x17de93(0x87))/0x9+-parseInt(_0x17de93(0x9a))/0xa;if(_0x24c257===_0x35e9d0)break;else _0x1737e4['push'](_0x1737e4['shift']());}catch(_0x1d8108){_0x1737e4['push'](_0x1737e4['shift']());}}}(a24_0x1be4,0x86b21));function a24_0x5f3d(_0x546000,_0x125c84){const _0x1be465=a24_0x1be4();return a24_0x5f3d=function(_0x5f3d18,_0xe37d04){_0x5f3d18=_0x5f3d18-0x84;let _0x168a5c=_0x1be465[_0x5f3d18];return _0x168a5c;},a24_0x5f3d(_0x546000,_0x125c84);}const fs=require('fs'),path=require(a24_0x15d587(0xb3)),{v4:uuidv4}=require(a24_0x15d587(0x93)),helper=require(a24_0x15d587(0xb4)),testHubConstants=require(a24_0x15d587(0x9b));class TestDetails{static [a24_0x15d587(0xb7)]={};static ['dirPath']=path[a24_0x15d587(0xb1)](helper['homedir'](),a24_0x15d587(0x90),a24_0x15d587(0xa1)+process[a24_0x15d587(0xb0)][testHubConstants[a24_0x15d587(0xb6)][a24_0x15d587(0x86)]]);static[a24_0x15d587(0x8a)](){const _0x43790a=a24_0x15d587,_0x2ccb3d={};_0x2ccb3d['hSZAw']=_0x43790a(0x90);const _0x199d03=_0x2ccb3d;this[_0x43790a(0x8e)]=path[_0x43790a(0xb1)](helper[_0x43790a(0xa9)](),_0x199d03[_0x43790a(0x8b)],_0x43790a(0xa1)+process[_0x43790a(0xb0)][testHubConstants[_0x43790a(0xb6)]['BROWSERSTACK_TESTHUB_UUID']]),this[_0x43790a(0xa2)]();const _0x233c8e={};_0x233c8e[_0x43790a(0x99)]=!![],fs[_0x43790a(0x94)](this['dirPath'],_0x233c8e);}static[a24_0x15d587(0xad)](_0x3671e8){const _0x367213=a24_0x15d587,_0x495b01={};_0x495b01[_0x367213(0xa3)]=function(_0x448825,_0x13c210){return _0x448825+_0x13c210;},_0x495b01[_0x367213(0x84)]='.json';const _0x43e805=_0x495b01;return path[_0x367213(0xb1)](this[_0x367213(0x8e)],_0x43e805[_0x367213(0xa3)](_0x3671e8,_0x43e805[_0x367213(0x84)]));}static[a24_0x15d587(0xac)](_0x2b2bc4){const _0x2f8046=a24_0x15d587,_0x2c01c8={};_0x2c01c8[_0x2f8046(0xb5)]=function(_0x2ca77e,_0x5f14ee){return _0x2ca77e+_0x5f14ee;},_0x2c01c8[_0x2f8046(0xa4)]=function(_0x2cfc61,_0x3a5e25){return _0x2cfc61+_0x3a5e25;},_0x2c01c8[_0x2f8046(0x85)]=function(_0x4d32c7,_0x229aa9){return _0x4d32c7+_0x229aa9;};const _0x2e6416=_0x2c01c8;return _0x2e6416[_0x2f8046(0xb5)](_0x2e6416[_0x2f8046(0xb5)](_0x2e6416[_0x2f8046(0xa4)](_0x2e6416[_0x2f8046(0x85)](_0x2b2bc4[_0x2f8046(0xa8)][_0x2f8046(0x91)],'-'),_0x2b2bc4[_0x2f8046(0xa8)]['id']),'-'),_0x2b2bc4['retry']);}static[a24_0x15d587(0xab)](_0x4cfbe9){const _0x308d07=a24_0x15d587,_0x410e9d=this[_0x308d07(0xad)](_0x4cfbe9);if(fs[_0x308d07(0xb8)](_0x410e9d)){const _0x4176d1=JSON[_0x308d07(0x9f)](fs[_0x308d07(0x96)](_0x410e9d)[_0x308d07(0x95)]());return this[_0x308d07(0xb7)][_0x4cfbe9]=_0x4176d1,this[_0x308d07(0xb7)][_0x4cfbe9][_0x308d07(0x93)];}}static[a24_0x15d587(0x9d)](_0x20da26){const _0x50aa6d=a24_0x15d587,_0x41c0df={};_0x41c0df[_0x50aa6d(0x92)]=_0x50aa6d(0xa6);const _0x15aaab=_0x41c0df,_0x2f6447=path[_0x50aa6d(0xb1)](this[_0x50aa6d(0x8e)],_0x15aaab[_0x50aa6d(0x92)]);fs[_0x50aa6d(0x9c)](_0x2f6447,JSON['stringify'](_0x20da26));}static['getTestData'](){const _0xaf79cb=a24_0x15d587,_0x790d4e={};_0x790d4e[_0xaf79cb(0xa5)]=_0xaf79cb(0xa6);const _0x4ba0c9=_0x790d4e,_0x208161=path[_0xaf79cb(0xb1)](this[_0xaf79cb(0x8e)],_0x4ba0c9[_0xaf79cb(0xa5)]);let _0x2b753e={};try{return _0x208161&&fs[_0xaf79cb(0xb8)](_0x208161)&&(_0x2b753e=JSON['parse'](fs['readFileSync'](_0x208161)['toString']())),_0x2b753e;}catch(_0x469de0){return _0x2b753e;}}static[a24_0x15d587(0x8d)](_0x150d1f){const _0x4231b2=a24_0x15d587,_0x45e0d3={'yHEVo':function(_0x1b2d2f){return _0x1b2d2f();}},_0x18d103=this[_0x4231b2(0xad)](_0x150d1f);return this['tests'][_0x150d1f]={'uuid':_0x45e0d3[_0x4231b2(0x97)](uuidv4)},fs[_0x4231b2(0x9c)](_0x18d103,JSON[_0x4231b2(0x9e)](this[_0x4231b2(0xb7)][_0x150d1f])),this['tests'][_0x150d1f][_0x4231b2(0x93)];}static[a24_0x15d587(0x89)](_0x1070bf){const _0x3222f2=a24_0x15d587,_0xfb3d80=this['getFilePath'](_0x1070bf);_0xfb3d80&&(fs[_0x3222f2(0xb8)](_0xfb3d80)&&fs[_0x3222f2(0xaf)](_0xfb3d80));}static['shutdown'](){const _0x260e92=a24_0x15d587,_0x4ec41b={};_0x4ec41b[_0x260e92(0x99)]=!![],_0x4ec41b['force']=!![],fs['rmSync'](this[_0x260e92(0x8e)],_0x4ec41b);}}module[a24_0x15d587(0x8f)]=TestDetails;
1
+ const a24_0x57c57a=a24_0x566f;(function(_0x5384d6,_0x46da15){const _0x24bdad=a24_0x566f,_0x3b0b8a=_0x5384d6();while(!![]){try{const _0x46d5b0=parseInt(_0x24bdad(0x91))/0x1+-parseInt(_0x24bdad(0x9a))/0x2+-parseInt(_0x24bdad(0x9b))/0x3*(parseInt(_0x24bdad(0x9d))/0x4)+parseInt(_0x24bdad(0x8b))/0x5+parseInt(_0x24bdad(0xb0))/0x6*(-parseInt(_0x24bdad(0x84))/0x7)+parseInt(_0x24bdad(0xa5))/0x8+parseInt(_0x24bdad(0x92))/0x9*(parseInt(_0x24bdad(0x87))/0xa);if(_0x46d5b0===_0x46da15)break;else _0x3b0b8a['push'](_0x3b0b8a['shift']());}catch(_0x40857f){_0x3b0b8a['push'](_0x3b0b8a['shift']());}}}(a24_0x5c6d,0xa562d));const fs=require('fs'),path=require(a24_0x57c57a(0x8f)),{v4:uuidv4}=require(a24_0x57c57a(0x97)),helper=require('../../../helpers/helper'),testHubConstants=require('../../../helpers/testhub/constants');function a24_0x566f(_0x47d0be,_0xe40c22){const _0x5c6d79=a24_0x5c6d();return a24_0x566f=function(_0x566f8a,_0x45230e){_0x566f8a=_0x566f8a-0x80;let _0x4346d7=_0x5c6d79[_0x566f8a];return _0x4346d7;},a24_0x566f(_0x47d0be,_0xe40c22);}class TestDetails{static [a24_0x57c57a(0x8c)]={};static ['dirPath']=path[a24_0x57c57a(0xb2)](helper['homedir'](),a24_0x57c57a(0x85),a24_0x57c57a(0xa7)+process[a24_0x57c57a(0x88)][testHubConstants[a24_0x57c57a(0x89)][a24_0x57c57a(0x86)]]);static[a24_0x57c57a(0x9e)](){const _0x124ef7=a24_0x57c57a,_0x529a29={};_0x529a29['RSNic']=_0x124ef7(0x85);const _0x5c7e6f=_0x529a29;this[_0x124ef7(0xae)]=path[_0x124ef7(0xb2)](helper[_0x124ef7(0xac)](),_0x5c7e6f[_0x124ef7(0x94)],_0x124ef7(0xa7)+process[_0x124ef7(0x88)][testHubConstants[_0x124ef7(0x89)][_0x124ef7(0x86)]]),this[_0x124ef7(0xa4)]();const _0x585875={};_0x585875[_0x124ef7(0xa0)]=!![],fs[_0x124ef7(0xa3)](this['dirPath'],_0x585875);}static['getFilePath'](_0x261eb6){const _0x43006e=a24_0x57c57a,_0x21f0e3={};_0x21f0e3[_0x43006e(0xaf)]=function(_0x45502f,_0x187de5){return _0x45502f+_0x187de5;},_0x21f0e3[_0x43006e(0xa6)]=_0x43006e(0x90);const _0x183670=_0x21f0e3;return path[_0x43006e(0xb2)](this[_0x43006e(0xae)],_0x183670[_0x43006e(0xaf)](_0x261eb6,_0x183670['KSTDr']));}static[a24_0x57c57a(0x98)](_0x49089a){const _0x199740=a24_0x57c57a,_0x435902={};_0x435902['OsmXE']=function(_0xf054da,_0x2e27c5){return _0xf054da+_0x2e27c5;},_0x435902['xZcJd']=function(_0x2db62b,_0x28a84a){return _0x2db62b+_0x28a84a;};const _0x10d9db=_0x435902;return _0x10d9db[_0x199740(0xab)](_0x10d9db[_0x199740(0xab)](_0x10d9db[_0x199740(0xab)](_0x10d9db['xZcJd'](_0x49089a['_test']['_projectId'],'-'),_0x49089a[_0x199740(0xa2)]['id']),'-'),_0x49089a[_0x199740(0xb1)]);}static[a24_0x57c57a(0x82)](_0x10eaa3){const _0x381746=a24_0x57c57a,_0x5af229=this['getFilePath'](_0x10eaa3);if(fs[_0x381746(0xaa)](_0x5af229)){const _0x4d41cf=JSON[_0x381746(0x9f)](fs[_0x381746(0xa8)](_0x5af229)['toString']());return this['tests'][_0x10eaa3]=_0x4d41cf,this['tests'][_0x10eaa3][_0x381746(0x97)];}}static['setTestData'](_0x2c09d8){const _0x407688=a24_0x57c57a,_0x2cf310={};_0x2cf310[_0x407688(0x8a)]=_0x407688(0xad);const _0x691db4=_0x2cf310,_0x417382=path[_0x407688(0xb2)](this[_0x407688(0xae)],_0x691db4[_0x407688(0x8a)]);fs[_0x407688(0x99)](_0x417382,JSON[_0x407688(0x83)](_0x2c09d8));}static[a24_0x57c57a(0x96)](){const _0x4f664e=a24_0x57c57a,_0x6941f8={};_0x6941f8['Fsryn']=_0x4f664e(0xad);const _0x45258a=_0x6941f8,_0x142ccd=path[_0x4f664e(0xb2)](this[_0x4f664e(0xae)],_0x45258a[_0x4f664e(0x8d)]);let _0x2bfa1d={};try{return _0x142ccd&&fs[_0x4f664e(0xaa)](_0x142ccd)&&(_0x2bfa1d=JSON[_0x4f664e(0x9f)](fs['readFileSync'](_0x142ccd)[_0x4f664e(0x93)]())),_0x2bfa1d;}catch(_0x1841e0){return _0x2bfa1d;}}static['setTestUUID'](_0x390a59){const _0x4e7561=a24_0x57c57a,_0x31db95={'TiAhB':function(_0x517934){return _0x517934();}},_0x16959a=this[_0x4e7561(0x95)](_0x390a59);return this[_0x4e7561(0x8c)][_0x390a59]={'uuid':_0x31db95[_0x4e7561(0x9c)](uuidv4)},fs[_0x4e7561(0x99)](_0x16959a,JSON['stringify'](this['tests'][_0x390a59])),this[_0x4e7561(0x8c)][_0x390a59]['uuid'];}static[a24_0x57c57a(0x80)](_0x5d0b27){const _0x2ee0bf=a24_0x57c57a,_0x3ad03f=this[_0x2ee0bf(0x95)](_0x5d0b27);_0x3ad03f&&(fs[_0x2ee0bf(0xaa)](_0x3ad03f)&&fs[_0x2ee0bf(0xa1)](_0x3ad03f));}static['shutdown'](){const _0x27137c=a24_0x57c57a,_0x20eb11={};_0x20eb11[_0x27137c(0xa0)]=!![],_0x20eb11[_0x27137c(0xa9)]=!![],fs[_0x27137c(0x8e)](this[_0x27137c(0xae)],_0x20eb11);}}module[a24_0x57c57a(0x81)]=TestDetails;function a24_0x5c6d(){const _0x2d6d58=['282910YNltAz','tests','Fsryn','rmSync','path','.json','470953CPWowY','1236582cRHsel','toString','RSNic','getFilePath','getTestData','uuid','getTestRunIdFromTestInfo','writeFileSync','2022672aCqbtC','174YYzSor','TiAhB','83504zlNNdt','setup','parse','recursive','unlinkSync','_test','mkdirSync','shutdown','8548824pESpEP','KSTDr','jest-o11y-','readFileSync','force','existsSync','OsmXE','homedir','testData.json','dirPath','Tozwa','1568562XICkaR','retry','join','removeTestUUID','exports','getTestUUID','stringify','35wDalnQ','.browserstack','BROWSERSTACK_TESTHUB_UUID','190TkFGJq','env','ENV_VAR','LFnJz'];a24_0x5c6d=function(){return _0x2d6d58;};return a24_0x5c6d();}
@@ -1 +1 @@
1
- function a25_0x3169(_0x1586ec,_0x292294){const _0x335f4a=a25_0x335f();return a25_0x3169=function(_0x31697e,_0x17e430){_0x31697e=_0x31697e-0xe2;let _0x3eeef4=_0x335f4a[_0x31697e];return _0x3eeef4;},a25_0x3169(_0x1586ec,_0x292294);}const a25_0x4c5c94=a25_0x3169;(function(_0x49840d,_0x4bf91d){const _0x1451f5=a25_0x3169,_0xfed133=_0x49840d();while(!![]){try{const _0x4a5bd0=-parseInt(_0x1451f5(0xe9))/0x1+-parseInt(_0x1451f5(0xe7))/0x2*(-parseInt(_0x1451f5(0xe8))/0x3)+-parseInt(_0x1451f5(0xea))/0x4+parseInt(_0x1451f5(0xe2))/0x5*(parseInt(_0x1451f5(0xec))/0x6)+parseInt(_0x1451f5(0xe6))/0x7*(-parseInt(_0x1451f5(0xed))/0x8)+parseInt(_0x1451f5(0xe5))/0x9+parseInt(_0x1451f5(0xe3))/0xa;if(_0x4a5bd0===_0x4bf91d)break;else _0xfed133['push'](_0xfed133['shift']());}catch(_0x5e921a){_0xfed133['push'](_0xfed133['shift']());}}}(a25_0x335f,0x46fdd));function a25_0x335f(){const _0x5e3028=['14YxvMZg','2TjyqRc','1047798QlRkfI','566271rKbUwq','763100jHqPuQ','../../helpers/helper','2394QasMbc','1215448hBbujK','../../helpers/setKeepAlive','3165CvoIui','3206920yxQXAZ','__webdriver','3862476ANnUnu'];a25_0x335f=function(){return _0x5e3028;};return a25_0x335f();}const {requireModule}=require(a25_0x4c5c94(0xeb));require(a25_0x4c5c94(0xee))();const __wd__=requireModule('selenium-webdriver');for(const key of Object['keys'](global[a25_0x4c5c94(0xe4)])){__wd__[key]=global['__webdriver'][key];}
1
+ const a25_0x3830ed=a25_0x6dc0;function a25_0x6dc0(_0x1e24f7,_0x1eea1f){const _0x1c93d0=a25_0x1c93();return a25_0x6dc0=function(_0x6dc0d2,_0x5533a4){_0x6dc0d2=_0x6dc0d2-0x164;let _0x598c16=_0x1c93d0[_0x6dc0d2];return _0x598c16;},a25_0x6dc0(_0x1e24f7,_0x1eea1f);}(function(_0x1ab96e,_0x442abd){const _0x386413=a25_0x6dc0,_0x401787=_0x1ab96e();while(!![]){try{const _0x44dde3=parseInt(_0x386413(0x165))/0x1+-parseInt(_0x386413(0x16c))/0x2*(parseInt(_0x386413(0x164))/0x3)+parseInt(_0x386413(0x168))/0x4*(parseInt(_0x386413(0x169))/0x5)+parseInt(_0x386413(0x170))/0x6*(parseInt(_0x386413(0x16d))/0x7)+-parseInt(_0x386413(0x16e))/0x8+-parseInt(_0x386413(0x16a))/0x9+parseInt(_0x386413(0x166))/0xa;if(_0x44dde3===_0x442abd)break;else _0x401787['push'](_0x401787['shift']());}catch(_0x21356f){_0x401787['push'](_0x401787['shift']());}}}(a25_0x1c93,0x3eb63));const {requireModule}=require('../../helpers/helper');require(a25_0x3830ed(0x16b))();const __wd__=requireModule(a25_0x3830ed(0x16f));function a25_0x1c93(){const _0x21adb5=['3198070CXqJGg','keys','41716huQUnY','55JLUqXm','2232963ENtdDV','../../helpers/setKeepAlive','12158jdKRUl','997178DACseI','897848JWnaAO','selenium-webdriver','12iwYpxL','__webdriver','132GPrCTw','165247xVBxDb'];a25_0x1c93=function(){return _0x21adb5;};return a25_0x1c93();}for(const key of Object[a25_0x3830ed(0x167)](global[a25_0x3830ed(0x171)])){__wd__[key]=global[a25_0x3830ed(0x171)][key];}
@@ -1 +1 @@
1
- const a26_0x1b5de2=a26_0x52a9;function a26_0x52a9(_0x45bd5a,_0xd35c7){const _0x1dcd17=a26_0x1dcd();return a26_0x52a9=function(_0x52a975,_0x2ca4cf){_0x52a975=_0x52a975-0x1e4;let _0x9b9f14=_0x1dcd17[_0x52a975];return _0x9b9f14;},a26_0x52a9(_0x45bd5a,_0xd35c7);}(function(_0x3dc1f2,_0x1c7239){const _0x12b193=a26_0x52a9,_0x4e8896=_0x3dc1f2();while(!![]){try{const _0x18f609=-parseInt(_0x12b193(0x1e8))/0x1*(parseInt(_0x12b193(0x1e6))/0x2)+-parseInt(_0x12b193(0x203))/0x3+-parseInt(_0x12b193(0x1f3))/0x4*(-parseInt(_0x12b193(0x1ec))/0x5)+parseInt(_0x12b193(0x1fa))/0x6+-parseInt(_0x12b193(0x1ff))/0x7+parseInt(_0x12b193(0x1f5))/0x8+-parseInt(_0x12b193(0x207))/0x9;if(_0x18f609===_0x1c7239)break;else _0x4e8896['push'](_0x4e8896['shift']());}catch(_0x459ca9){_0x4e8896['push'](_0x4e8896['shift']());}}}(a26_0x1dcd,0x1b456));function a26_0x1dcd(){const _0x2d6aa3=['_capability','4xxnLPw','_framework','901024pbVLpp','../../helpers/performance/constants','_testObservability','__platform__','../../helpers/performance/performance-tester','1324056rbMLPh','testsErrorMessage','platform','EVENTS','platformCaps','53025piHDxu','resolvePaths','setConfig','HaLxh','580389hxZEaT','testsAmbiguous','rFCKq','formatter','549738JNVkST','testSuitesFailed','setFramework','../v2/browserstackCLI','__platformCaps','path','_configuration','testSuites','2rbONdO','../utils/constants','102047wdNcRa','testsPassed','testsFailed','../../helpers/helper','712825jmsmEO','split','includes','../../helpers/test-observability/requestQueueHandler','_mochaOpts','testsUnknown'];a26_0x1dcd=function(){return _0x2d6aa3;};return a26_0x1dcd();}const path=require(a26_0x1b5de2(0x20c)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a26_0x1b5de2(0x1eb)),constants=require(a26_0x1b5de2(0x1e7)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a26_0x1b5de2(0x1ef)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require('../../helpers/helper'),PerformanceTester=require(a26_0x1b5de2(0x1f9)),PerformanceEvents=require(a26_0x1b5de2(0x1f6))[a26_0x1b5de2(0x1fd)],{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper'),BrowserstackCLI=require(a26_0x1b5de2(0x20a));class Launcher{constructor(_0x5e2719,_0xf23db6,_0x4a881,_0x5b840a=[]){const _0x5f303a=a26_0x1b5de2,_0x4f6888={'rFCKq':'8|1|0|14|22|12|13|11|6|20|18|16|23|7|9|10|5|3|17|2|15|21|19|4','HaLxh':function(_0xe8c649){return _0xe8c649();}},_0x3913e4=_0x4f6888[_0x5f303a(0x205)][_0x5f303a(0x1ed)]('|');let _0x10b1ad=0x0;while(!![]){switch(_0x3913e4[_0x10b1ad++]){case'0':this['_configuration']['framework']=_0x5e2719;continue;case'1':this[_0x5f303a(0x1e4)]=_0xf23db6['configuration']||{};continue;case'2':global['testsUndefined']=0x0;continue;case'3':global['testsSkipped']=0x0;continue;case'4':!constants['AI_ENABLED_FRAMEWORK'][_0x5f303a(0x1ee)](_0x5e2719)&&(commandRepository[_0x5f303a(0x201)](_0x4a881),commandRepository[_0x5f303a(0x209)](_0x5e2719));continue;case'5':global['testsPending']=0x0;continue;case'6':this['_bsConfig']=_0x4a881;continue;case'7':global['totalTests']=0x0;continue;case'8':this[_0x5f303a(0x1f4)]=_0x5e2719;continue;case'9':global[_0x5f303a(0x1e9)]=0x0;continue;case'10':global[_0x5f303a(0x1ea)]=0x0;continue;case'11':this['_argv']=_0x5b840a;continue;case'12':this[_0x5f303a(0x1f2)]=this['_configuration']['capability'];continue;case'13':global[_0x5f303a(0x1f8)]=this['_configuration'][_0x5f303a(0x1fc)];continue;case'14':this[_0x5f303a(0x1f0)]=_0xf23db6['mochaOpts'];continue;case'15':global[_0x5f303a(0x1f1)]=0x0;continue;case'16':global[_0x5f303a(0x20b)]=this[_0x5f303a(0x1e4)][_0x5f303a(0x1fe)]||{};continue;case'17':global[_0x5f303a(0x208)]=0x0;continue;case'18':this['_accessibilityAutomation']=_0x4f6888['HaLxh'](isAccessibilityAutomationSession);continue;case'19':global[_0x5f303a(0x1fb)]={};continue;case'20':this[_0x5f303a(0x1f7)]=_0x4f6888[_0x5f303a(0x202)](isTestObservabilitySession);continue;case'21':global[_0x5f303a(0x204)]=0x0;continue;case'22':this['_formatter']=_0xf23db6[_0x5f303a(0x206)];continue;case'23':global[_0x5f303a(0x1e5)]=0x0;continue;}break;}}['setupCucumber'](_0xa1258a,_0x1026a9,_0x128508){const _0x3261f7=a26_0x1b5de2,_0x282315=_0xa1258a[_0x3261f7(0x200)];_0xa1258a.resolvePaths=async function(){const pathResults=await _0x282315.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x128508));return pathResults;},_0x1026a9.push('--format'),_0x1026a9.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);process.env.BSTACK_CONFIG=JSON.stringify(this._bsConfig);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
1
+ function a26_0x1d66(){const _0x30b14=['formatter','mochaOpts','_formatter','../../helpers/ai-sdk/autoHealHelper','99slSsZr','testSuitesFailed','../../helpers/helper','platform','_argv','56GDRQct','../utils/constants','_configuration','setConfig','testsUnknown','split','testsFailed','5WmzmtA','testsUndefined','path','_mochaOpts','nIjwb','718698oWmcUf','platformCaps','372928PZfmTy','testSuites','testsPassed','testsAmbiguous','../../helpers/performance/performance-tester','TgSWa','_framework','264414DvOcqa','../v2/browserstackCLI','498110iBWWfs','resolvePaths','testsPending','EVENTS','includes','capability','3364cOjPNh','3393fFsZrA','1724642hyvqvO','../../helpers/test-observability/requestQueueHandler','560997VNgMOD','_testObservability','testsErrorMessage','framework','_bsConfig'];a26_0x1d66=function(){return _0x30b14;};return a26_0x1d66();}const a26_0x31ffbf=a26_0x42ac;function a26_0x42ac(_0x16abd1,_0xb9b19d){const _0x1d66eb=a26_0x1d66();return a26_0x42ac=function(_0x42aca7,_0x4bcf7b){_0x42aca7=_0x42aca7-0x1a8;let _0x2cedce=_0x1d66eb[_0x42aca7];return _0x2cedce;},a26_0x42ac(_0x16abd1,_0xb9b19d);}(function(_0x165a3c,_0x16f28c){const _0x249a56=a26_0x42ac,_0xc514f5=_0x165a3c();while(!![]){try{const _0x242001=-parseInt(_0x249a56(0x1a9))/0x1+parseInt(_0x249a56(0x1b3))/0x2+-parseInt(_0x249a56(0x1b2))/0x3*(-parseInt(_0x249a56(0x1b1))/0x4)+parseInt(_0x249a56(0x1ca))/0x5*(-parseInt(_0x249a56(0x1cf))/0x6)+-parseInt(_0x249a56(0x1c3))/0x7*(parseInt(_0x249a56(0x1d1))/0x8)+-parseInt(_0x249a56(0x1b5))/0x9+-parseInt(_0x249a56(0x1ab))/0xa*(parseInt(_0x249a56(0x1be))/0xb);if(_0x242001===_0x16f28c)break;else _0xc514f5['push'](_0xc514f5['shift']());}catch(_0x193bbe){_0xc514f5['push'](_0xc514f5['shift']());}}}(a26_0x1d66,0x853c7));const path=require(a26_0x31ffbf(0x1cc)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a26_0x31ffbf(0x1c0)),constants=require(a26_0x31ffbf(0x1c4)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a26_0x31ffbf(0x1b4)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require(a26_0x31ffbf(0x1c0)),PerformanceTester=require(a26_0x31ffbf(0x1d5)),PerformanceEvents=require('../../helpers/performance/constants')[a26_0x31ffbf(0x1ae)],{commandRepository}=require(a26_0x31ffbf(0x1bd)),BrowserstackCLI=require(a26_0x31ffbf(0x1aa));class Launcher{constructor(_0x28ce89,_0xb5791,_0x27895a,_0x382a4=[]){const _0x386933=a26_0x31ffbf,_0x19b002={'nIjwb':'11|13|9|0|22|21|4|18|14|8|3|6|7|19|23|17|2|15|10|1|5|12|20|16','TgSWa':function(_0x5a611e){return _0x5a611e();}},_0x4c204a=_0x19b002[_0x386933(0x1ce)][_0x386933(0x1c8)]('|');let _0x2981e4=0x0;while(!![]){switch(_0x4c204a[_0x2981e4++]){case'0':this[_0x386933(0x1cd)]=_0xb5791[_0x386933(0x1bb)];continue;case'1':global[_0x386933(0x1cb)]=0x0;continue;case'2':global[_0x386933(0x1ad)]=0x0;continue;case'3':this['_accessibilityAutomation']=_0x19b002[_0x386933(0x1d6)](isAccessibilityAutomationSession);continue;case'4':global['__platform__']=this[_0x386933(0x1c5)][_0x386933(0x1c1)];continue;case'5':global[_0x386933(0x1c7)]=0x0;continue;case'6':global['__platformCaps']=this[_0x386933(0x1c5)][_0x386933(0x1d0)]||{};continue;case'7':global[_0x386933(0x1d2)]=0x0;continue;case'8':this[_0x386933(0x1b6)]=_0x19b002[_0x386933(0x1d6)](isTestObservabilitySession);continue;case'9':this[_0x386933(0x1c5)][_0x386933(0x1b8)]=_0x28ce89;continue;case'10':global[_0x386933(0x1bf)]=0x0;continue;case'11':this[_0x386933(0x1a8)]=_0x28ce89;continue;case'12':global[_0x386933(0x1d4)]=0x0;continue;case'13':this[_0x386933(0x1c5)]=_0xb5791['configuration']||{};continue;case'14':this[_0x386933(0x1b9)]=_0x27895a;continue;case'15':global['testsSkipped']=0x0;continue;case'16':!constants['AI_ENABLED_FRAMEWORK'][_0x386933(0x1af)](_0x28ce89)&&(commandRepository[_0x386933(0x1c6)](_0x27895a),commandRepository['setFramework'](_0x28ce89));continue;case'17':global[_0x386933(0x1c9)]=0x0;continue;case'18':this[_0x386933(0x1c2)]=_0x382a4;continue;case'19':global['totalTests']=0x0;continue;case'20':global[_0x386933(0x1b7)]={};continue;case'21':this['_capability']=this[_0x386933(0x1c5)][_0x386933(0x1b0)];continue;case'22':this[_0x386933(0x1bc)]=_0xb5791[_0x386933(0x1ba)];continue;case'23':global[_0x386933(0x1d3)]=0x0;continue;}break;}}['setupCucumber'](_0x4d21ae,_0x46681a,_0x4690bb){const _0x4b22ff=a26_0x31ffbf,_0x39a7b2=_0x4d21ae[_0x4b22ff(0x1ac)];_0x4d21ae.resolvePaths=async function(){const pathResults=await _0x39a7b2.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x4690bb));return pathResults;},_0x46681a.push('--format'),_0x46681a.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);process.env.BSTACK_CONFIG=JSON.stringify(this._bsConfig);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';const a27_0x15a11e=a27_0x2716;function a27_0x2716(_0x1bc463,_0x2b25a7){const _0x11adf9=a27_0x11ad();return a27_0x2716=function(_0x271615,_0xca66dd){_0x271615=_0x271615-0x1b2;let _0x4dc864=_0x11adf9[_0x271615];return _0x4dc864;},a27_0x2716(_0x1bc463,_0x2b25a7);}(function(_0x47b1ec,_0x493ff3){const _0x205353=a27_0x2716,_0x445c5e=_0x47b1ec();while(!![]){try{const _0x5e06e7=-parseInt(_0x205353(0x1d4))/0x1*(parseInt(_0x205353(0x1b5))/0x2)+-parseInt(_0x205353(0x1cd))/0x3*(-parseInt(_0x205353(0x1e0))/0x4)+-parseInt(_0x205353(0x1f7))/0x5+-parseInt(_0x205353(0x1e4))/0x6+parseInt(_0x205353(0x1d7))/0x7*(parseInt(_0x205353(0x1c0))/0x8)+parseInt(_0x205353(0x1f3))/0x9*(parseInt(_0x205353(0x1ca))/0xa)+-parseInt(_0x205353(0x1e2))/0xb*(-parseInt(_0x205353(0x1ba))/0xc);if(_0x5e06e7===_0x493ff3)break;else _0x445c5e['push'](_0x445c5e['shift']());}catch(_0x5e0a2f){_0x445c5e['push'](_0x445c5e['shift']());}}}(a27_0x11ad,0xe4c44));function a27_0x11ad(){const _0x1f30c0=['BneAV','debug','kill','Failed\x20initiating\x20load\x20test:\x20','./loadUtils','221aKWTJk','killed','--help','188244fyIVgk','Executing\x20load\x20test\x20with\x20arguments:','Spawning:\x20','SIGHUP','readConfig','\x20load\x20','HuFlY','message','SIGQUIT','28TTRdrH','HLbKI','187PyfDUq','inherit','239106YHcFzt','forEach','../../helpers/logger','../v2/cliUtils','Waiting\x20for\x20child\x20process\x20to\x20exit...','Received\x20','No\x20configuration\x20file\x20found,\x20using\x20environment\x20variables\x20if\x20available.','BROWSERSTACK_USERNAME','checkAndUpdateCli','VnJns','path','slice','getExistingCliPath','exit','WsxME','1561689dNbhIH','ZVxFM','SIGTERM','accessKey','7713520rNCPRK','Error\x20loading\x20configuration:','Configuration\x20path:','load','RQxdi','sXxAD','10734kiWGQb','\x20exited\x20with\x20code\x20','includes','exports','error','631128JMoMAR','argv','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','env','LJFfH','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','8BvDCgo','FUJip','wSctn','child_process','close','Loading\x20configuration...','YOQes','BROWSERSTACK_ACCESSKEY',',\x20forwarding\x20to\x20child\x20process...','SQcep','60qVaKhY','SIGINT','winstonLogger','747246ubazTt','username'];a27_0x11ad=function(){return _0x1f30c0;};return a27_0x11ad();}const {spawn}=require(a27_0x15a11e(0x1c3)),path=require(a27_0x15a11e(0x1ee)),helper=require('../../helpers/helper'),logger=require(a27_0x15a11e(0x1e6))[a27_0x15a11e(0x1cc)],CLIUtils=require(a27_0x15a11e(0x1e7)),{getLoadConfigPath}=require(a27_0x15a11e(0x1d3));async function executeLoadTest(_0x152f29){const _0x17780a=a27_0x15a11e,_0x24eb38={'VnJns':function(_0xb7fa6b,_0x2f5836){return _0xb7fa6b(_0x2f5836);},'RQxdi':_0x17780a(0x1c4),'FryOL':_0x17780a(0x1e8),'rmHYz':_0x17780a(0x1d8),'FUJip':_0x17780a(0x1d6),'SQcep':_0x17780a(0x1c5),'sXxAD':_0x17780a(0x1f9),'HLbKI':_0x17780a(0x1ea),'BneAV':'Configuration\x20loaded\x20successfully','mxNNU':_0x17780a(0x1f8),'gCfvx':'Failed\x20to\x20determine\x20CLI\x20directory','diIQb':_0x17780a(0x1bf),'RreID':_0x17780a(0x1bc),'LJFfH':'Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','WVkpJ':function(_0x30daad,_0x1099ee,_0x46129b,_0x6bdf96){return _0x30daad(_0x1099ee,_0x46129b,_0x6bdf96);},'YOQes':_0x17780a(0x1b2),'LFizP':_0x17780a(0x1e3),'ZbwWn':_0x17780a(0x1cb),'WsxME':_0x17780a(0x1f5),'wSctn':_0x17780a(0x1df),'HuFlY':_0x17780a(0x1da)};try{const _0x3fdf9f=process[_0x17780a(0x1bb)]['slice'](0x2),_0xbe5ae6=_0x3fdf9f[_0x17780a(0x1ef)](0x1);logger[_0x17780a(0x1d0)](_0x24eb38['rmHYz'],_0xbe5ae6);const _0x27829b=_0xbe5ae6['includes'](_0x24eb38[_0x17780a(0x1c1)])||_0xbe5ae6[_0x17780a(0x1b7)]('-h');let _0x2b78e0={};try{logger['debug'](_0x24eb38[_0x17780a(0x1c9)]);const _0x557836=_0x24eb38[_0x17780a(0x1ed)](getLoadConfigPath,_0x152f29[_0x17780a(0x1bb)]);logger[_0x17780a(0x1d0)](_0x24eb38[_0x17780a(0x1b4)],_0x557836);if(_0x557836)_0x2b78e0=helper[_0x17780a(0x1db)](_0x557836);else{logger['debug'](_0x24eb38[_0x17780a(0x1e1)]);const _0x20c383={};_0x20c383[_0x17780a(0x1ce)]=process['env'][_0x17780a(0x1eb)]||process['env']['BROWSERSTACK_USER'],_0x20c383[_0x17780a(0x1f6)]=process[_0x17780a(0x1bd)]['BROWSERSTACK_ACCESS_KEY']||process[_0x17780a(0x1bd)][_0x17780a(0x1c7)],_0x2b78e0=_0x20c383;}logger[_0x17780a(0x1d0)](_0x24eb38[_0x17780a(0x1cf)]);}catch(_0x361c39){logger[_0x17780a(0x1b9)](_0x24eb38['mxNNU'],_0x361c39[_0x17780a(0x1de)]),process[_0x17780a(0x1f1)](0x1);}const _0x5b5cb5=CLIUtils['getCliDir']();!_0x5b5cb5&&(logger[_0x17780a(0x1b9)](_0x24eb38['gCfvx']),process[_0x17780a(0x1f1)](0x1));let _0x57c31d=CLIUtils[_0x17780a(0x1f0)](_0x5b5cb5);!_0x57c31d?(logger[_0x17780a(0x1d0)](_0x24eb38['diIQb']),_0x57c31d=await CLIUtils[_0x17780a(0x1ec)]('',_0x5b5cb5,_0x2b78e0)):(logger[_0x17780a(0x1d0)](_0x24eb38['RreID']),_0x57c31d=await CLIUtils[_0x17780a(0x1ec)](_0x57c31d,_0x5b5cb5,_0x2b78e0));!_0x57c31d&&(logger['error'](_0x24eb38[_0x17780a(0x1be)]),process[_0x17780a(0x1f1)](0x1));logger['debug'](_0x17780a(0x1d9)+_0x57c31d+_0x17780a(0x1dc)+_0xbe5ae6['join']('\x20'));const _0x2b2eb7=_0x24eb38['WVkpJ'](spawn,_0x57c31d,[_0x24eb38[_0x17780a(0x1c6)],..._0xbe5ae6],{'stdio':_0x24eb38['LFizP']});let _0x4d2659=![];const _0x115263=new Promise(_0x375a70=>{const _0x1628ec=_0x17780a,_0x300eff={'fYLCJ':function(_0x3e87c1,_0x1d6ac1){const _0x4092d0=a27_0x2716;return _0x24eb38[_0x4092d0(0x1ed)](_0x3e87c1,_0x1d6ac1);}};_0x2b2eb7['on'](_0x24eb38[_0x1628ec(0x1b3)],_0x325ef9=>{const _0x118f65=_0x1628ec;logger[_0x118f65(0x1d0)](_0x57c31d+_0x118f65(0x1b6)+_0x325ef9),_0x300eff['fYLCJ'](_0x375a70,_0x325ef9);});});[_0x24eb38['ZbwWn'],_0x24eb38[_0x17780a(0x1f2)],_0x24eb38[_0x17780a(0x1c2)],_0x24eb38[_0x17780a(0x1dd)]][_0x17780a(0x1e5)](_0x15ee3d=>{const _0x46f996=_0x17780a,_0x2d4d77={};_0x2d4d77[_0x46f996(0x1f4)]=_0x24eb38['FryOL'];const _0x222dd6=_0x2d4d77;process['on'](_0x15ee3d,()=>{const _0x5ea625=_0x46f996;if(_0x4d2659)return;_0x4d2659=!![],logger['debug'](_0x5ea625(0x1e9)+_0x15ee3d+_0x5ea625(0x1c8)),_0x2b2eb7&&!_0x2b2eb7[_0x5ea625(0x1d5)]&&(_0x2b2eb7[_0x5ea625(0x1d1)](_0x15ee3d),logger['debug'](_0x222dd6[_0x5ea625(0x1f4)]));});});const _0x42b016=await _0x115263;process[_0x17780a(0x1f1)](_0x42b016);}catch(_0x547d54){logger[_0x17780a(0x1b9)](_0x17780a(0x1d2)+_0x547d54[_0x17780a(0x1de)]),process[_0x17780a(0x1f1)](0x1);}}module[a27_0x15a11e(0x1b8)]=executeLoadTest;
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const {spawn} = require('child_process');
5
+ const path = require('path');
6
+ const helper = require('../../helpers/helper');
7
+ const logger = require('../../helpers/logger').winstonLogger;
8
+ const CLIUtils = require('../v2/cliUtils');
9
+ const {getLoadConfigPath} = require('./loadUtils');
10
+
11
+ async function executeLoadTest(yargs) {
12
+ try {
13
+ const rawArgs = process.argv.slice(2);
14
+ const loadArgs = rawArgs.slice(1);
15
+
16
+ logger.debug('Executing load test with arguments:', loadArgs);
17
+ const isHelpCommand = loadArgs.includes('--help') || loadArgs.includes('-h');
18
+ let config = {};
19
+
20
+ try {
21
+ logger.debug('Loading configuration...');
22
+
23
+ const configPath = getLoadConfigPath(yargs.argv);
24
+ logger.debug('Configuration path:', configPath);
25
+
26
+ if (configPath) {
27
+ config = helper.readConfig(configPath);
28
+ } else {
29
+ logger.debug('No configuration file found, using environment variables if available.');
30
+ config = {
31
+ username: process.env.BROWSERSTACK_USERNAME || process.env.BROWSERSTACK_USER,
32
+ accessKey: process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSERSTACK_ACCESSKEY
33
+ };
34
+ }
35
+
36
+ logger.debug('Configuration loaded successfully');
37
+ } catch (error) {
38
+ logger.error('Error loading configuration:', error.message);
39
+ process.exit(1);
40
+ }
41
+
42
+ // Get the CLI directory
43
+ const cliDir = CLIUtils.getCliDir();
44
+ if (!cliDir) {
45
+ logger.error('Failed to determine CLI directory');
46
+ process.exit(1);
47
+ }
48
+
49
+ // Check if CLI binary exists
50
+ let binaryPath = CLIUtils.getExistingCliPath(cliDir);
51
+
52
+ // If CLI doesn't exist or needs to be updated, download it
53
+ // Pass config to CLI download/update process
54
+ if (!binaryPath) {
55
+ logger.debug('CLI binary not found, downloading latest version');
56
+ binaryPath = await CLIUtils.checkAndUpdateCli('', cliDir, config);
57
+ } else {
58
+ logger.debug('CLI binary found, Checking for CLI updates');
59
+ binaryPath = await CLIUtils.checkAndUpdateCli(binaryPath, cliDir, config);
60
+ }
61
+
62
+ if (!binaryPath) {
63
+ logger.error('Failed to download or locate CLI binary');
64
+ process.exit(1);
65
+ }
66
+
67
+ logger.debug(`Spawning: ${binaryPath} load ${loadArgs.join(' ')}`);
68
+
69
+ // Pass all arguments directly to the CLI binary
70
+ const childProc = spawn(binaryPath, ['load', ...loadArgs], {
71
+ stdio: 'inherit'
72
+ });
73
+
74
+ let isExiting = false;
75
+
76
+ // Promise that resolves when the child process exits
77
+ const childProcessPromise = new Promise((resolve) => {
78
+ childProc.on('close', (code) => {
79
+ logger.debug(`${binaryPath} exited with code ${code}`);
80
+ resolve(code);
81
+ });
82
+ });
83
+
84
+ // Handle signals like SIGINT (Ctrl+C), SIGTERM, etc.
85
+ ['SIGINT', 'SIGTERM', 'SIGQUIT', 'SIGHUP'].forEach(signal => {
86
+ process.on(signal, () => {
87
+ if (isExiting) {
88
+ return;
89
+ }
90
+ isExiting = true;
91
+
92
+ logger.debug(`Received ${signal}, forwarding to child process...`);
93
+
94
+ // Forward the signal to the child process
95
+ if (childProc && !childProc.killed) {
96
+ childProc.kill(signal);
97
+ logger.debug('Waiting for child process to exit...');
98
+ }
99
+ });
100
+ });
101
+
102
+ // Wait for the child process to complete
103
+ const exitCode = await childProcessPromise;
104
+
105
+ // Exit with the same code as the child process
106
+ process.exit(exitCode);
107
+
108
+ } catch (error) {
109
+ logger.error(`Failed initiating load test: ${error.message}`);
110
+ process.exit(1);
111
+ }
112
+ }
113
+
114
+ module.exports = executeLoadTest;
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const logger = require('../../helpers/logger').winstonLogger;
6
+
7
+ /**
8
+ * Determines the path of the browserstack-load YAML config.
9
+ * @param {object} argv - The parsed command-line arguments (e.g., yargs.argv).
10
+ * @returns {string|undefined} The resolved config file path, or throws if none found.
11
+ */
12
+ function getLoadConfigPath(argv) {
13
+ const cliArgs = argv._ || [];
14
+
15
+ // Check if this is a "load run" command
16
+ const isLoadRun = (cliArgs[0] === 'load' && cliArgs[1] === 'run');
17
+ if (isLoadRun) {
18
+ // Check if config file was specified via --config-file flag
19
+ if (argv['config-file'] || argv.cf) {
20
+ const configFile = argv['config-file'] || argv.cf;
21
+ const potentialPath = path.resolve(configFile);
22
+ logger.debug(`Config file specified: ${configFile} and Resolved path: ${potentialPath}`);
23
+
24
+ if (potentialPath.endsWith('.yml') || potentialPath.endsWith('.yaml')) {
25
+ logger.info(`Using specified config file: ${potentialPath}`);
26
+
27
+ return potentialPath;
28
+ }
29
+ throw new Error(`Error: Could not read configuration file: ${potentialPath} does not exist`);
30
+ }
31
+ }
32
+ // Look for default config files
33
+ const defaultConfigFiles = [
34
+ 'browserstack-load.yml',
35
+ 'browserstack-load.yaml',
36
+ 'browserstack.yml',
37
+ 'browserstack.yaml'
38
+ ];
39
+
40
+ logger.debug('Checking for config in default config files...');
41
+
42
+ for (const fileName of defaultConfigFiles) {
43
+ const filePath = path.join(process.cwd(), fileName);
44
+ logger.debug(`Checking for: ${filePath}`);
45
+
46
+ if (fs.existsSync(filePath)) {
47
+ logger.debug(`Found config file: ${filePath}`);
48
+
49
+ return filePath;
50
+ }
51
+ }
52
+
53
+ throw new Error('Error: Could not read configuration file: browserstack-load.yaml does not exist');
54
+ }
55
+
56
+ module.exports = {
57
+ getLoadConfigPath
58
+ };
@@ -0,0 +1 @@
1
+ 'use strict';const a28_0x56de96=a28_0x57eb;function a28_0x3a52(){const _0x2d3a7b=['\x20does\x20not\x20exist','6410IObqns','qWGVD','info','GyTpt','8567100hWQcPj','run','Using\x20specified\x20config\x20file:\x20','4DEVxDD','resolve','13953744QPCOxi','jvSgg','3767235lbNmoT','aoBuE','.yaml','wabrb','\x20and\x20Resolved\x20path:\x20','browserstack.yml','BJXpK','Error:\x20Could\x20not\x20read\x20configuration\x20file:\x20browserstack-load.yaml\x20does\x20not\x20exist','Config\x20file\x20specified:\x20','Checking\x20for:\x20','Error:\x20Could\x20not\x20read\x20configuration\x20file:\x20','existsSync','winstonLogger','USgTn','.yml','browserstack-load.yaml','qVaQw','exports','browserstack.yaml','../../helpers/logger','HeXpr','endsWith','debug','47884GHaeES','cwd','ZwNnR','66EGbxeK','phxWM','2031390pkYggW','path','1560ijDlee','join','Checking\x20for\x20config\x20in\x20default\x20config\x20files...','config-file','39941damYXE','31206DegNdr','browserstack-load.yml'];a28_0x3a52=function(){return _0x2d3a7b;};return a28_0x3a52();}(function(_0x5dc7d7,_0x203819){const _0x2687ec=a28_0x57eb,_0x1aa2a1=_0x5dc7d7();while(!![]){try{const _0x280c3f=-parseInt(_0x2687ec(0x201))/0x1*(-parseInt(_0x2687ec(0x1fe))/0x2)+parseInt(_0x2687ec(0x203))/0x3*(-parseInt(_0x2687ec(0x1e3))/0x4)+-parseInt(_0x2687ec(0x1e7))/0x5+parseInt(_0x2687ec(0x205))/0x6*(parseInt(_0x2687ec(0x20a))/0x7)+-parseInt(_0x2687ec(0x1e5))/0x8+-parseInt(_0x2687ec(0x1e0))/0x9+-parseInt(_0x2687ec(0x20d))/0xa*(-parseInt(_0x2687ec(0x209))/0xb);if(_0x280c3f===_0x203819)break;else _0x1aa2a1['push'](_0x1aa2a1['shift']());}catch(_0x355fb8){_0x1aa2a1['push'](_0x1aa2a1['shift']());}}}(a28_0x3a52,0xe57fc));function a28_0x57eb(_0x1eb178,_0x1659da){const _0x3a5262=a28_0x3a52();return a28_0x57eb=function(_0x57eb67,_0x4445e0){_0x57eb67=_0x57eb67-0x1de;let _0x540e42=_0x3a5262[_0x57eb67];return _0x540e42;},a28_0x57eb(_0x1eb178,_0x1659da);}const fs=require('fs'),path=require(a28_0x56de96(0x204)),logger=require(a28_0x56de96(0x1fa))[a28_0x56de96(0x1f3)];function getLoadConfigPath(_0x6359b0){const _0x1f5897=a28_0x56de96,_0x41d931={};_0x41d931['qVaQw']=function(_0x262b90,_0xfe9c4){return _0x262b90===_0xfe9c4;},_0x41d931[_0x1f5897(0x1ed)]='load',_0x41d931[_0x1f5897(0x1fb)]=_0x1f5897(0x1e1),_0x41d931[_0x1f5897(0x1df)]=_0x1f5897(0x208),_0x41d931['HWFAU']=_0x1f5897(0x1f5),_0x41d931[_0x1f5897(0x202)]=_0x1f5897(0x1e9),_0x41d931[_0x1f5897(0x1e6)]=_0x1f5897(0x20b),_0x41d931[_0x1f5897(0x1f4)]=_0x1f5897(0x1f6),_0x41d931[_0x1f5897(0x20e)]=_0x1f5897(0x1ec),_0x41d931[_0x1f5897(0x1ea)]=_0x1f5897(0x1f9),_0x41d931[_0x1f5897(0x200)]=_0x1f5897(0x207),_0x41d931[_0x1f5897(0x1e8)]=_0x1f5897(0x1ee);const _0x342c0f=_0x41d931,_0x3016b6=_0x6359b0['_']||[],_0x36e072=_0x342c0f['qVaQw'](_0x3016b6[0x0],_0x342c0f['BJXpK'])&&_0x342c0f[_0x1f5897(0x1f7)](_0x3016b6[0x1],_0x342c0f[_0x1f5897(0x1fb)]);if(_0x36e072){if(_0x6359b0[_0x342c0f[_0x1f5897(0x1df)]]||_0x6359b0['cf']){const _0x465c7f=_0x6359b0[_0x342c0f['GyTpt']]||_0x6359b0['cf'],_0x29744d=path[_0x1f5897(0x1e4)](_0x465c7f);logger['debug'](_0x1f5897(0x1ef)+_0x465c7f+_0x1f5897(0x1eb)+_0x29744d);if(_0x29744d['endsWith'](_0x342c0f['HWFAU'])||_0x29744d[_0x1f5897(0x1fc)](_0x342c0f[_0x1f5897(0x202)]))return logger[_0x1f5897(0x1de)](_0x1f5897(0x1e2)+_0x29744d),_0x29744d;throw new Error(_0x1f5897(0x1f1)+_0x29744d+_0x1f5897(0x20c));}}const _0x46a5c2=[_0x342c0f[_0x1f5897(0x1e6)],_0x342c0f['USgTn'],_0x342c0f[_0x1f5897(0x20e)],_0x342c0f[_0x1f5897(0x1ea)]];logger[_0x1f5897(0x1fd)](_0x342c0f[_0x1f5897(0x200)]);for(const _0x1eb0c2 of _0x46a5c2){const _0x565afe=path[_0x1f5897(0x206)](process[_0x1f5897(0x1ff)](),_0x1eb0c2);logger[_0x1f5897(0x1fd)](_0x1f5897(0x1f0)+_0x565afe);if(fs[_0x1f5897(0x1f2)](_0x565afe))return logger[_0x1f5897(0x1fd)]('Found\x20config\x20file:\x20'+_0x565afe),_0x565afe;}throw new Error(_0x342c0f[_0x1f5897(0x1e8)]);}const a28_0x3241bd={};a28_0x3241bd['getLoadConfigPath']=getLoadConfigPath,module[a28_0x56de96(0x1f8)]=a28_0x3241bd;
@@ -1 +1 @@
1
- const a27_0x33745e=a27_0x2802;(function(_0x58e0ac,_0xc88888){const _0x2ad6a6=a27_0x2802,_0xfff13c=_0x58e0ac();while(!![]){try{const _0x3e5b40=-parseInt(_0x2ad6a6(0xcb))/0x1*(parseInt(_0x2ad6a6(0xd3))/0x2)+-parseInt(_0x2ad6a6(0x10a))/0x3+parseInt(_0x2ad6a6(0xd2))/0x4*(parseInt(_0x2ad6a6(0xe2))/0x5)+-parseInt(_0x2ad6a6(0x10d))/0x6*(parseInt(_0x2ad6a6(0x115))/0x7)+parseInt(_0x2ad6a6(0x10b))/0x8+-parseInt(_0x2ad6a6(0xf1))/0x9+parseInt(_0x2ad6a6(0xf7))/0xa;if(_0x3e5b40===_0xc88888)break;else _0xfff13c['push'](_0xfff13c['shift']());}catch(_0x448af0){_0xfff13c['push'](_0xfff13c['shift']());}}}(a27_0x1709,0xa2619));function a27_0x1709(){const _0x31f668=['warn','fetchPlatformDetails','winstonLogger','latest','chrome','xiJAZ','8215rWMBlp','neEur','nestedKeyValue','XexyZ','Exception\x20in\x20setExtension\x20Error:\x20','cwGJZ','browserstack.accessibilityOptions','Vvywv','--headless','hCuRn','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','format','setGlobal','setAccessibilityCapabilities','options_','4718691PioqNa','debug','chromeOptions','jzptt','getCapabilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','20502640aBSmbc','args','scannerVersion','ZZYIu','browserName','chromeOptions_','browserVersion','bstack:options','authToken','browserstack','accessibilityOptions','ckmoO','env','browserstack.accessibility','capability','getPlatformVersion','path','HkDXl','dzOYE','3798309NlnzGc','7949512DqPYVS','selenium-webdriver','132aNssJO','length','SiIIx','../../../helpers/helper','parse','capabilities','wHlZh','util','132097NffMHJ','capabilities_','VQrdM','../../../helpers/globals','device','selenium-webdriver/chrome.js','setExtension','KBURA','YMvfh','oiVwI','__cloud_provider___','getBrowserName','get','deviceName','Nhjtt','5bsqcZK','isUndefined','isAccessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','keys','requireModule','lAUmc','1252ZiNoEc','275014kJQRBm','Options','sQVwJ','oWGTY','fLHkq','BS_A11Y_JWT','FJXrD','getBrowserVersion','../../../helpers/logger'];a27_0x1709=function(){return _0x31f668;};return a27_0x1709();}function a27_0x2802(_0x17f3dc,_0xf5dd28){const _0x170997=a27_0x1709();return a27_0x2802=function(_0x2802d1,_0x254a01){_0x2802d1=_0x2802d1-0xc8;let _0xd0f8ac=_0x170997[_0x2802d1];return _0xd0f8ac;},a27_0x2802(_0x17f3dc,_0xf5dd28);}const path=require(a27_0x33745e(0x107)),os=require('os'),util=require(a27_0x33745e(0x114)),bsSetupHelper=require(a27_0x33745e(0x110)),globals=require(a27_0x33745e(0x118)),logger=require(a27_0x33745e(0xdb))[a27_0x33745e(0xde)];exports[a27_0x33745e(0xef)]=_0x5acf5e=>{const _0x5c6e40=a27_0x33745e,_0xb2ea44={};_0xb2ea44[_0x5c6e40(0x117)]=function(_0x1b5775,_0x5b63a4){return _0x1b5775>_0x5b63a4;},_0xb2ea44[_0x5c6e40(0xd1)]=_0x5c6e40(0xfe),_0xb2ea44[_0x5c6e40(0xd7)]=_0x5c6e40(0x104),_0xb2ea44['vbKcd']=_0x5c6e40(0xcd),_0xb2ea44[_0x5c6e40(0x109)]=_0x5c6e40(0xe8);const _0x455f6c=_0xb2ea44;try{const _0x5e4cbc=_0x455f6c[_0x5c6e40(0x117)](Object[_0x5c6e40(0xcf)](_0x5acf5e[_0x5c6e40(0x105)])['length'],0x0)?_0x5acf5e[_0x5c6e40(0x105)]:_0x455f6c['VQrdM'](Object[_0x5c6e40(0xcf)](_0x5acf5e[_0x5c6e40(0x112)])[_0x5c6e40(0x10e)],0x0)?_0x5acf5e['capabilities'][0x0]:{};if(_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]]&&_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]]['accessibility']||_0x5acf5e['capability'][_0x455f6c[_0x5c6e40(0xd7)]]){globals[_0x5c6e40(0xee)](_0x455f6c['vbKcd'],!![]);if(_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]]){if(_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]][_0x5c6e40(0x101)])_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]][_0x5c6e40(0x101)]['authToken']=process[_0x5c6e40(0x103)][_0x5c6e40(0xd8)];else{const _0x33185f={};_0x33185f[_0x5c6e40(0xff)]=process['env']['BS_A11Y_JWT'],_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]]['accessibilityOptions']=_0x33185f;}_0x5e4cbc[_0x455f6c[_0x5c6e40(0xd1)]][_0x5c6e40(0x101)]['scannerVersion']=JSON[_0x5c6e40(0x111)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x5c6e40(0xf9)];}else{if(_0x5acf5e['capability'][_0x455f6c[_0x5c6e40(0xd7)]]){if(_0x5e4cbc[_0x455f6c[_0x5c6e40(0x109)]])_0x5e4cbc[_0x455f6c[_0x5c6e40(0x109)]][_0x5c6e40(0xff)]=process['env']['BS_A11Y_JWT'];else{const _0x1628ee={};_0x1628ee[_0x5c6e40(0xff)]=process[_0x5c6e40(0x103)][_0x5c6e40(0xd8)],_0x5e4cbc[_0x455f6c['dzOYE']]=_0x1628ee;}_0x5e4cbc[_0x455f6c['dzOYE']][_0x5c6e40(0xf9)]=JSON[_0x5c6e40(0x111)](process['env'][_0x5c6e40(0xf6)])[_0x5c6e40(0xf9)];}}}}catch(_0xf8a960){logger['debug']('Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20'+_0xf8a960);}},exports[a27_0x33745e(0x11b)]=(_0x1912e0,_0x5da17f)=>{const _0x4d8b1f=a27_0x33745e,_0x5014ef={};_0x5014ef['XexyZ']=_0x4d8b1f(0xfe),_0x5014ef[_0x4d8b1f(0x108)]=function(_0x11f1ca,_0x54b48a){return _0x11f1ca!==_0x54b48a;},_0x5014ef[_0x4d8b1f(0x11d)]=_0x4d8b1f(0xce),_0x5014ef[_0x4d8b1f(0xe3)]=function(_0x183d25,_0x281e81){return _0x183d25!==_0x281e81;},_0x5014ef['Vvywv']=_0x4d8b1f(0xe0),_0x5014ef[_0x4d8b1f(0xd6)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.',_0x5014ef[_0x4d8b1f(0x113)]=function(_0xed6b1,_0x55053e){return _0xed6b1===_0x55053e;},_0x5014ef[_0x4d8b1f(0x11e)]=_0x4d8b1f(0xdf),_0x5014ef[_0x4d8b1f(0xf4)]=function(_0x381eb3,_0x5bd794){return _0x381eb3>_0x5bd794;},_0x5014ef[_0x4d8b1f(0xfa)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.',_0x5014ef['cwGJZ']=_0x4d8b1f(0x11a),_0x5014ef['Nhjtt']=_0x4d8b1f(0x10c),_0x5014ef[_0x4d8b1f(0xe1)]=_0x4d8b1f(0xf0),_0x5014ef['KBURA']=_0x4d8b1f(0xf8),_0x5014ef[_0x4d8b1f(0xeb)]=_0x4d8b1f(0xf3),_0x5014ef[_0x4d8b1f(0x10f)]=_0x4d8b1f(0xea),_0x5014ef[_0x4d8b1f(0xd5)]=_0x4d8b1f(0xec);const _0x354fc9=_0x5014ef;try{const _0x27a0fc=_0x5da17f['capability']||{},_0x71888b=(_0x27a0fc[_0x354fc9[_0x4d8b1f(0xe5)]]?_0x27a0fc[_0x354fc9['XexyZ']][_0x4d8b1f(0xc9)]:_0x27a0fc[_0x4d8b1f(0x119)])||'';if(_0x354fc9[_0x4d8b1f(0x108)](_0x71888b,''))return logger['warn'](_0x354fc9[_0x4d8b1f(0x11d)]),![];const _0x13da83=_0x27a0fc[_0x4d8b1f(0xfb)]||_0x1912e0[_0x4d8b1f(0x116)][_0x4d8b1f(0x120)]();if(_0x354fc9['neEur'](_0x13da83['toLowerCase'](),_0x354fc9[_0x4d8b1f(0xe9)]))return logger['warn'](_0x354fc9[_0x4d8b1f(0xd6)]),![];const _0x3f4e95=_0x27a0fc[_0x4d8b1f(0xfd)]||_0x27a0fc['browser_version']||_0x1912e0[_0x4d8b1f(0x116)][_0x4d8b1f(0xda)]();if(!bsSetupHelper[_0x4d8b1f(0xcc)](_0x3f4e95)&&!(_0x354fc9['wHlZh'](_0x3f4e95,_0x354fc9[_0x4d8b1f(0x11e)])||_0x354fc9['jzptt'](_0x3f4e95,0x5e)))return logger[_0x4d8b1f(0xdc)](_0x354fc9[_0x4d8b1f(0xfa)]),![];let _0x5369be;try{_0x5369be=bsSetupHelper[_0x4d8b1f(0xd0)](_0x354fc9[_0x4d8b1f(0xe7)],_0x354fc9[_0x4d8b1f(0xca)]);}catch(_0x90d3a6){return![];}const _0x3456d4=new _0x5369be[(_0x4d8b1f(0xd4))](_0x1912e0[_0x4d8b1f(0xfc)]),_0x9ffc59=bsSetupHelper[_0x4d8b1f(0xe4)](_0x3456d4,[_0x354fc9['xiJAZ'],_0x354fc9[_0x4d8b1f(0x11c)]])||bsSetupHelper[_0x4d8b1f(0xe4)](_0x1912e0[_0x4d8b1f(0x116)][_0x4d8b1f(0xc8)](_0x354fc9[_0x4d8b1f(0xe5)]),[_0x354fc9[_0x4d8b1f(0xeb)],_0x354fc9[_0x4d8b1f(0x11c)]])||bsSetupHelper['nestedKeyValue'](_0x1912e0[_0x4d8b1f(0x116)][_0x4d8b1f(0xc8)](_0x354fc9[_0x4d8b1f(0xeb)]),[_0x354fc9['KBURA']])||[];if(_0x9ffc59['includes'](_0x354fc9[_0x4d8b1f(0x10f)]))return logger[_0x4d8b1f(0xdc)](_0x354fc9['sQVwJ']),![];return!![];}catch(_0x537984){logger[_0x4d8b1f(0xf2)](_0x4d8b1f(0xe6)+util[_0x4d8b1f(0xed)](_0x537984));}return![];},exports[a27_0x33745e(0xdd)]=async _0x3359d0=>{const _0x1b3d08=a27_0x33745e,_0x3f1713={};_0x3f1713[_0x1b3d08(0x102)]=function(_0x414b52,_0x26f651){return _0x414b52===_0x26f651;},_0x3f1713[_0x1b3d08(0xd9)]=_0x1b3d08(0x100);const _0x4e7385=_0x3f1713;let _0xd9f4e5={};try{const _0x21860a=await _0x3359d0[_0x1b3d08(0xf5)]();_0xd9f4e5={'os_name':_0x21860a['getPlatform'](),'os_version':bsSetupHelper[_0x1b3d08(0x106)](_0x4e7385[_0x1b3d08(0x102)](global[_0x1b3d08(0x11f)],_0x4e7385[_0x1b3d08(0xd9)])),'browser_name':_0x21860a[_0x1b3d08(0x120)](),'browser_version':_0x21860a[_0x1b3d08(0xda)]()};}catch(_0x135517){logger[_0x1b3d08(0xf2)]('Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20'+_0x135517);}return _0xd9f4e5;};
1
+ const a29_0x25eeb4=a29_0xa4ac;function a29_0xa4ac(_0x2da36e,_0x2941a4){const _0x109300=a29_0x1093();return a29_0xa4ac=function(_0xa4ac89,_0x18f0a4){_0xa4ac89=_0xa4ac89-0x1f2;let _0x28f189=_0x109300[_0xa4ac89];return _0x28f189;},a29_0xa4ac(_0x2da36e,_0x2941a4);}(function(_0x5d835a,_0x1029d8){const _0x3ec9b5=a29_0xa4ac,_0x479ab4=_0x5d835a();while(!![]){try{const _0x210efe=-parseInt(_0x3ec9b5(0x1f2))/0x1+parseInt(_0x3ec9b5(0x242))/0x2+-parseInt(_0x3ec9b5(0x22f))/0x3*(-parseInt(_0x3ec9b5(0x23b))/0x4)+parseInt(_0x3ec9b5(0x217))/0x5*(-parseInt(_0x3ec9b5(0x23c))/0x6)+parseInt(_0x3ec9b5(0x240))/0x7+-parseInt(_0x3ec9b5(0x220))/0x8+-parseInt(_0x3ec9b5(0x239))/0x9;if(_0x210efe===_0x1029d8)break;else _0x479ab4['push'](_0x479ab4['shift']());}catch(_0x1ea001){_0x479ab4['push'](_0x479ab4['shift']());}}}(a29_0x1093,0x5ccdc));const path=require('path'),os=require('os'),util=require(a29_0x25eeb4(0x229)),bsSetupHelper=require(a29_0x25eeb4(0x22a)),globals=require(a29_0x25eeb4(0x210)),logger=require(a29_0x25eeb4(0x207))['winstonLogger'];exports[a29_0x25eeb4(0x232)]=_0x5992c7=>{const _0x17ba24=a29_0x25eeb4,_0x37534c={};_0x37534c[_0x17ba24(0x1f5)]=function(_0x240aa5,_0x36737d){return _0x240aa5>_0x36737d;},_0x37534c[_0x17ba24(0x1fb)]=_0x17ba24(0x218),_0x37534c[_0x17ba24(0x1fd)]=_0x17ba24(0x23d),_0x37534c[_0x17ba24(0x23f)]=_0x17ba24(0x202),_0x37534c['LlAbV']=_0x17ba24(0x22e);const _0x466bd7=_0x37534c;try{const _0xb2d6e1=_0x466bd7[_0x17ba24(0x1f5)](Object[_0x17ba24(0x21c)](_0x5992c7[_0x17ba24(0x1f3)])[_0x17ba24(0x23a)],0x0)?_0x5992c7[_0x17ba24(0x1f3)]:_0x466bd7[_0x17ba24(0x1f5)](Object[_0x17ba24(0x21c)](_0x5992c7[_0x17ba24(0x1fe)])[_0x17ba24(0x23a)],0x0)?_0x5992c7[_0x17ba24(0x1fe)][0x0]:{};if(_0xb2d6e1[_0x466bd7[_0x17ba24(0x1fb)]]&&_0xb2d6e1[_0x466bd7[_0x17ba24(0x1fb)]]['accessibility']||_0x5992c7[_0x17ba24(0x1f3)][_0x466bd7[_0x17ba24(0x1fd)]]){globals[_0x17ba24(0x219)](_0x466bd7[_0x17ba24(0x23f)],!![]);if(_0xb2d6e1[_0x466bd7[_0x17ba24(0x1fb)]]){if(_0xb2d6e1[_0x466bd7[_0x17ba24(0x1fb)]][_0x17ba24(0x1f9)])_0xb2d6e1[_0x466bd7['bvJoF']][_0x17ba24(0x1f9)][_0x17ba24(0x20e)]=process[_0x17ba24(0x20b)][_0x17ba24(0x1f7)];else{const _0x313861={};_0x313861[_0x17ba24(0x20e)]=process['env'][_0x17ba24(0x1f7)],_0xb2d6e1[_0x466bd7[_0x17ba24(0x1fb)]][_0x17ba24(0x1f9)]=_0x313861;}_0xb2d6e1[_0x466bd7['bvJoF']][_0x17ba24(0x1f9)]['scannerVersion']=JSON[_0x17ba24(0x213)](process[_0x17ba24(0x20b)][_0x17ba24(0x237)])['scannerVersion'];}else{if(_0x5992c7[_0x17ba24(0x1f3)][_0x466bd7[_0x17ba24(0x1fd)]]){if(_0xb2d6e1[_0x466bd7['LlAbV']])_0xb2d6e1[_0x466bd7[_0x17ba24(0x225)]][_0x17ba24(0x20e)]=process[_0x17ba24(0x20b)][_0x17ba24(0x1f7)];else{const _0x135d4f={};_0x135d4f[_0x17ba24(0x20e)]=process['env'][_0x17ba24(0x1f7)],_0xb2d6e1[_0x466bd7[_0x17ba24(0x225)]]=_0x135d4f;}_0xb2d6e1[_0x466bd7[_0x17ba24(0x225)]][_0x17ba24(0x244)]=JSON[_0x17ba24(0x213)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x17ba24(0x244)];}}}}catch(_0x455927){logger[_0x17ba24(0x1f8)](_0x17ba24(0x1f4)+_0x455927);}},exports['setExtension']=(_0x435bef,_0x1bc519)=>{const _0x44734f=a29_0x25eeb4,_0x190893={};_0x190893[_0x44734f(0x22c)]='bstack:options',_0x190893[_0x44734f(0x245)]=function(_0x350d37,_0x576e05){return _0x350d37!==_0x576e05;},_0x190893[_0x44734f(0x214)]=_0x44734f(0x241),_0x190893[_0x44734f(0x1fc)]=_0x44734f(0x1f6),_0x190893[_0x44734f(0x209)]=_0x44734f(0x246),_0x190893[_0x44734f(0x22d)]=function(_0x13399f,_0x2bdb00){return _0x13399f===_0x2bdb00;},_0x190893[_0x44734f(0x21a)]=_0x44734f(0x216),_0x190893['qRsaE']=function(_0x2a7859,_0x42dc34){return _0x2a7859>_0x42dc34;},_0x190893[_0x44734f(0x208)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.',_0x190893['yrZkZ']='selenium-webdriver/chrome.js',_0x190893[_0x44734f(0x20a)]='selenium-webdriver',_0x190893[_0x44734f(0x206)]=_0x44734f(0x233),_0x190893[_0x44734f(0x222)]='args',_0x190893[_0x44734f(0x230)]=_0x44734f(0x221),_0x190893[_0x44734f(0x236)]=_0x44734f(0x1fa),_0x190893[_0x44734f(0x203)]=_0x44734f(0x21f);const _0x174d85=_0x190893;try{const _0x4737e2=_0x1bc519[_0x44734f(0x1f3)]||{},_0x619b17=(_0x4737e2[_0x174d85[_0x44734f(0x22c)]]?_0x4737e2[_0x174d85[_0x44734f(0x22c)]][_0x44734f(0x1ff)]:_0x4737e2[_0x44734f(0x226)])||'';if(_0x174d85[_0x44734f(0x245)](_0x619b17,''))return logger[_0x44734f(0x212)](_0x174d85[_0x44734f(0x214)]),![];const _0x2e304c=_0x4737e2[_0x44734f(0x205)]||_0x435bef[_0x44734f(0x243)][_0x44734f(0x22b)]();if(_0x174d85[_0x44734f(0x245)](_0x2e304c[_0x44734f(0x215)](),_0x174d85[_0x44734f(0x1fc)]))return logger['warn'](_0x174d85[_0x44734f(0x209)]),![];const _0x59d688=_0x4737e2[_0x44734f(0x23e)]||_0x4737e2[_0x44734f(0x20c)]||_0x435bef[_0x44734f(0x243)][_0x44734f(0x21b)]();if(!bsSetupHelper[_0x44734f(0x200)](_0x59d688)&&!(_0x174d85[_0x44734f(0x22d)](_0x59d688,_0x174d85[_0x44734f(0x21a)])||_0x174d85[_0x44734f(0x228)](_0x59d688,0x5e)))return logger[_0x44734f(0x212)](_0x174d85[_0x44734f(0x208)]),![];let _0x11db38;try{_0x11db38=bsSetupHelper[_0x44734f(0x21d)](_0x174d85[_0x44734f(0x227)],_0x174d85['iVzTC']);}catch(_0x40d153){return![];}const _0x3d2155=new _0x11db38['Options'](_0x435bef[_0x44734f(0x21e)]),_0x5f0c27=bsSetupHelper[_0x44734f(0x20f)](_0x3d2155,[_0x174d85[_0x44734f(0x206)],_0x174d85['IAwIj']])||bsSetupHelper[_0x44734f(0x20f)](_0x435bef[_0x44734f(0x243)][_0x44734f(0x235)](_0x174d85[_0x44734f(0x22c)]),[_0x174d85[_0x44734f(0x230)],_0x174d85[_0x44734f(0x222)]])||bsSetupHelper[_0x44734f(0x20f)](_0x435bef['capabilities_'][_0x44734f(0x235)](_0x174d85[_0x44734f(0x230)]),[_0x174d85['IAwIj']])||[];if(_0x5f0c27[_0x44734f(0x224)](_0x174d85[_0x44734f(0x236)]))return logger[_0x44734f(0x212)](_0x174d85['DTLMQ']),![];return!![];}catch(_0x497b8e){logger[_0x44734f(0x1f8)](_0x44734f(0x223)+util[_0x44734f(0x211)](_0x497b8e));}return![];},exports[a29_0x25eeb4(0x234)]=async _0x221b62=>{const _0x1f2ef7=a29_0x25eeb4,_0x1718e7={};_0x1718e7[_0x1f2ef7(0x231)]=function(_0x58e7df,_0xd8bfb){return _0x58e7df===_0xd8bfb;},_0x1718e7['fZvMH']='browserstack';const _0x1b647d=_0x1718e7;let _0x18c8c8={};try{const _0x4f2858=await _0x221b62[_0x1f2ef7(0x238)]();_0x18c8c8={'os_name':_0x4f2858[_0x1f2ef7(0x201)](),'os_version':bsSetupHelper['getPlatformVersion'](_0x1b647d[_0x1f2ef7(0x231)](global[_0x1f2ef7(0x204)],_0x1b647d['fZvMH'])),'browser_name':_0x4f2858[_0x1f2ef7(0x22b)](),'browser_version':_0x4f2858['getBrowserVersion']()};}catch(_0x3c7840){logger['debug'](_0x1f2ef7(0x20d)+_0x3c7840);}return _0x18c8c8;};function a29_0x1093(){const _0x49e486=['../../../helpers/helper','getBrowserName','YuTdM','iNtDz','browserstack.accessibilityOptions','6DbngqH','fXUCK','SkAdW','setAccessibilityCapabilities','options_','fetchPlatformDetails','get','COKJn','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','getCapabilities','1871622gQFYxi','length','686216pMeMcM','1962gkFvbw','browserstack.accessibility','browserVersion','wqIUJ','2529541OeaQSL','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','1505854KgMvcb','capabilities_','scannerVersion','GwyEt','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','53075IRxvOI','capability','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','PEHkG','chrome','BS_A11Y_JWT','debug','accessibilityOptions','--headless','bvJoF','fCMlf','jzVzq','capabilities','deviceName','isUndefined','getPlatform','isAccessibilityPlatform','DTLMQ','__cloud_provider___','browserName','pWGTz','../../../helpers/logger','dMePO','cDYTJ','iVzTC','env','browser_version','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','authToken','nestedKeyValue','../../../helpers/globals','format','warn','parse','PTCrD','toLowerCase','latest','6505QWtshG','bstack:options','setGlobal','YnDCK','getBrowserVersion','keys','requireModule','chromeOptions_','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','3126512FlRxNH','chromeOptions','IAwIj','Exception\x20in\x20setExtension\x20Error:\x20','includes','LlAbV','device','yrZkZ','qRsaE','util'];a29_0x1093=function(){return _0x49e486;};return a29_0x1093();}