browserstack-node-sdk 1.55.4 → 1.55.5

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 (199) 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 +3 -2
  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.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/capsMapping.js +1 -1
  156. package/src/helpers/central-scanner/constants.js +1 -1
  157. package/src/helpers/central-scanner/helpers.js +1 -1
  158. package/src/helpers/classLogger.js +1 -1
  159. package/src/helpers/globals.js +1 -1
  160. package/src/helpers/helper.js +1 -1
  161. package/src/helpers/logger.js +1 -1
  162. package/src/helpers/metadata.js +1 -1
  163. package/src/helpers/patchHelper.js +1 -1
  164. package/src/helpers/patchHelpers.js +1 -1
  165. package/src/helpers/percy/Percy.js +1 -1
  166. package/src/helpers/percy/PercyBinary.js +1 -1
  167. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  168. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  169. package/src/helpers/percy/PercySDK.js +1 -1
  170. package/src/helpers/percy/index.js +1 -1
  171. package/src/helpers/percy/utils.js +1 -1
  172. package/src/helpers/performance/constants.js +1 -1
  173. package/src/helpers/performance/performance-tester.js +1 -1
  174. package/src/helpers/playwright-helper.js +1 -1
  175. package/src/helpers/processHelper.js +1 -1
  176. package/src/helpers/puppeteer-helper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/stackFrameUtils.js +1 -0
  180. package/src/helpers/test-observability/constants.js +1 -1
  181. package/src/helpers/test-observability/error-handler.js +1 -1
  182. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  183. package/src/helpers/test-observability/sessionHandler.js +1 -1
  184. package/src/helpers/test-observability/utils.js +1 -1
  185. package/src/helpers/test-orchestration/constants.js +1 -1
  186. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  187. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  188. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  189. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  190. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  191. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  192. package/src/helpers/testhub/constants.js +1 -1
  193. package/src/helpers/testhub/testhubHandler.js +1 -1
  194. package/src/helpers/testhub/utils.js +1 -1
  195. package/src/helpers/timeoutPromise.js +1 -1
  196. package/src/helpers/utilities.js +1 -1
  197. package/src/helpers/w3cMapping.js +1 -1
  198. package/src/hubAllocationMethods.js +1 -1
  199. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a147_0x7085(){const _0x3a1ed8=[']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','write','KsVkV','end','./constants','PUT','2EDtVVx','headers','jVaGc','body',']\x20Error\x20in\x20getFailedTestsCount:\x20','error','nHLJn','fxtbo','stack','failedTestsCount','284438vHRDMh','Content-Type','RequestUtils','\x20and\x20token:\x20','MAKbA','POST','exports',',\x20buildRunIdentifier=','4375NBaDfT','Authorization','EAjxi','900740bNwCya','22QYEEAY',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','\x20with\x20headers:\x20','7457751IQOyxW','statusCode','debug','env','winstonLogger','ggcJl','152XHhGlc','stringify','xFYOT','../logger','postSplitFiles','parse','data','putFailedTests','getSplitFiles','GET','yQpXy','Bearer\x20',',\x20status:\x20','svgNg','\x20and\x20data:\x20','message','okZpl','BROWSERSTACK_TESTHUB_JWT','_request','MTPUp','Mveme','status','Test\x20added','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','CWPVM','application/json','uvZAo',',\x20projectName=','2786490qLGoOQ','\x20request\x20to\x20',']\x20Sending\x20',']\x20Error\x20in\x20putFailedTests:\x20','3064323TzVTLt','531936SypkSS','TmRUF','496YUAvBS','getFailedTestsCount','BPZCY','aXwLg','csEDk','ekPQE'];a147_0x7085=function(){return _0x3a1ed8;};return a147_0x7085();}const a147_0x5966f2=a147_0xd600;(function(_0x44f676,_0x28aff4){const _0x34d2f1=a147_0xd600,_0x1bceb1=_0x44f676();while(!![]){try{const _0x10017a=parseInt(_0x34d2f1(0xd3))/0x1+parseInt(_0x34d2f1(0x10c))/0x2*(-parseInt(_0x34d2f1(0xfd))/0x3)+-parseInt(_0x34d2f1(0x100))/0x4*(-parseInt(_0x34d2f1(0xd0))/0x5)+-parseInt(_0x34d2f1(0xfe))/0x6+parseInt(_0x34d2f1(0x116))/0x7*(-parseInt(_0x34d2f1(0xdd))/0x8)+parseInt(_0x34d2f1(0xd7))/0x9+parseInt(_0x34d2f1(0xf9))/0xa*(parseInt(_0x34d2f1(0xd4))/0xb);if(_0x10017a===_0x28aff4)break;else _0x1bceb1['push'](_0x1bceb1['shift']());}catch(_0x5959a4){_0x1bceb1['push'](_0x1bceb1['shift']());}}}(a147_0x7085,0x7d40a));const https=require('https'),{URL}=require('url'),logger=require(a147_0x5966f2(0xe0))[a147_0x5966f2(0xdb)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a147_0x5966f2(0x10a)),TAG=a147_0x5966f2(0x118);class RequestUtils{static async[a147_0x5966f2(0xef)](_0x2cfe35,_0x492a9e,_0x2d9963=null){const _0x2f6319=a147_0x5966f2,_0x172dbf={'csEDk':function(_0x14b637,_0x119dee){return _0x14b637(_0x119dee);},'eEZsA':_0x2f6319(0xe3),'caSfQ':_0x2f6319(0x109),'MAKbA':_0x2f6319(0x111),'TmRUF':function(_0x4d51cc,_0x28e25c){return _0x4d51cc===_0x28e25c;},'KsVkV':'POST','MTPUp':function(_0x2abd48,_0x389b6e){return _0x2abd48===_0x389b6e;},'ekPQE':_0x2f6319(0x10b),'yQpXy':_0x2f6319(0xf6),'YQKyG':function(_0x2423ff,_0x2332fa){return _0x2423ff+_0x2332fa;}},_0x3ede11=process[_0x2f6319(0xda)][_0x2f6319(0xee)]||'',_0x491f1b={};_0x491f1b[_0x2f6319(0xd1)]=_0x2f6319(0xe8)+_0x3ede11,_0x491f1b[_0x2f6319(0x117)]=_0x172dbf[_0x2f6319(0xe7)];const _0x1278a3=_0x491f1b,{hostname:_0xcf5e6e,pathname:_0x21accf,search:_0x48886f}=new URL(_0x492a9e),_0xb6d1ee={'hostname':_0xcf5e6e,'path':_0x172dbf['YQKyG'](_0x21accf,_0x48886f),'method':_0x2cfe35,'headers':_0x1278a3};return logger[_0x2f6319(0xd9)]('['+TAG+_0x2f6319(0xfb)+_0x2cfe35+_0x2f6319(0xfa)+_0x492a9e+_0x2f6319(0xd6)+JSON[_0x2f6319(0xde)](_0x1278a3)+_0x2f6319(0xeb)+JSON['stringify'](_0x2d9963)+_0x2f6319(0x119)+_0x3ede11),new Promise((_0x3df085,_0x568ccf)=>{const _0x17b555=_0x2f6319,_0x58bb18=https['request'](_0xb6d1ee,_0x4d7d2d=>{const _0x3c97ed={'fxtbo':function(_0x7849ea,_0x5961d4){const _0x31c6ca=a147_0xd600;return _0x172dbf[_0x31c6ca(0x104)](_0x7849ea,_0x5961d4);}};let _0x224754='';_0x4d7d2d['on'](_0x172dbf['eEZsA'],_0x27b8e5=>{_0x224754+=_0x27b8e5;}),_0x4d7d2d['on'](_0x172dbf['caSfQ'],()=>{const _0x216eeb=a147_0xd600;try{const _0x203b27=_0x224754?JSON[_0x216eeb(0xe2)](_0x224754):{},_0x583604={};_0x583604[_0x216eeb(0xf2)]=_0x4d7d2d[_0x216eeb(0xd8)],_0x583604[_0x216eeb(0x10f)]=_0x203b27,_0x583604['headers']=_0x4d7d2d[_0x216eeb(0x10d)],_0x3c97ed['fxtbo'](_0x3df085,_0x583604);}catch(_0x5d99c7){logger['error']('['+TAG+_0x216eeb(0xd5)+_0x224754+'\x20-\x20'+_0x5d99c7[_0x216eeb(0xec)]+'\x20'+_0x5d99c7[_0x216eeb(0x114)]),_0x3c97ed[_0x216eeb(0x113)](_0x568ccf,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x5d99c7[_0x216eeb(0xec)]));}});});_0x58bb18['on'](_0x172dbf[_0x17b555(0x11a)],_0x45f6c6=>{const _0x7e9991=_0x17b555;logger[_0x7e9991(0x111)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x2cfe35+'\x20'+_0x492a9e+':\x20'+_0x45f6c6[_0x7e9991(0xec)]+'\x20'+_0x45f6c6[_0x7e9991(0x114)]),_0x172dbf[_0x7e9991(0x104)](_0x568ccf,_0x45f6c6);}),_0x2d9963&&(_0x172dbf[_0x17b555(0xff)](_0x2cfe35,_0x172dbf[_0x17b555(0x108)])||_0x172dbf[_0x17b555(0xf0)](_0x2cfe35,_0x172dbf[_0x17b555(0x105)]))&&_0x58bb18[_0x17b555(0x107)](JSON[_0x17b555(0xde)](_0x2d9963)),_0x58bb18[_0x17b555(0x109)]();});}static async[a147_0x5966f2(0xe1)](_0x1da486){const _0x4b6bba=a147_0x5966f2,_0x56dbb5={};_0x56dbb5[_0x4b6bba(0xed)]=_0x4b6bba(0x11b),_0x56dbb5[_0x4b6bba(0x103)]=function(_0x14fcf9,_0x293a62){return _0x14fcf9===_0x293a62;};const _0x3db0dd=_0x56dbb5,_0x1498db=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x2aa3c8=await this['_request'](_0x3db0dd['okZpl'],_0x1498db,_0x1da486);return _0x3db0dd[_0x4b6bba(0x103)](_0x2aa3c8[_0x4b6bba(0xf2)],0xc8)?logger[_0x4b6bba(0xd9)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x1498db):logger[_0x4b6bba(0x111)]('['+TAG+_0x4b6bba(0x106)+_0x1498db+':\x20'+JSON[_0x4b6bba(0xde)](_0x2aa3c8[_0x4b6bba(0x10f)])+_0x4b6bba(0xe9)+_0x2aa3c8[_0x4b6bba(0xf2)]),_0x2aa3c8;}catch(_0x4c9d50){logger[_0x4b6bba(0x111)]('['+TAG+_0x4b6bba(0xfc)+_0x4c9d50[_0x4b6bba(0xec)]+'\x20'+_0x4c9d50[_0x4b6bba(0x114)]);const _0x4762c2={};_0x4762c2[_0x4b6bba(0xec)]=_0x4c9d50[_0x4b6bba(0xec)];const _0x1e1d30={};return _0x1e1d30[_0x4b6bba(0xf2)]=0x1f4,_0x1e1d30[_0x4b6bba(0x10f)]=_0x4762c2,_0x1e1d30;}}static async[a147_0x5966f2(0xe5)](_0x56e080){const _0x32f898=a147_0x5966f2,_0x560128={};_0x560128[_0x32f898(0xd2)]=_0x32f898(0xe6),_0x560128[_0x32f898(0xf5)]=function(_0x40d92b,_0x5828f9){return _0x40d92b===_0x5828f9;};const _0x5ddcb0=_0x560128;try{const _0x544bf7=await this[_0x32f898(0xef)](_0x5ddcb0[_0x32f898(0xd2)],_0x56e080);if(_0x5ddcb0[_0x32f898(0xf5)](_0x544bf7[_0x32f898(0xf2)],0xc8))return _0x544bf7[_0x32f898(0x10f)];return{};}catch(_0x26fc94){return logger[_0x32f898(0x111)]('['+TAG+_0x32f898(0xfc)+_0x26fc94['message']+'\x20'+_0x26fc94[_0x32f898(0x114)]),{};}}static async[a147_0x5966f2(0xe4)](_0x476dbd){const _0x56b569=a147_0x5966f2,_0x17217e={};_0x17217e['ggcJl']=_0x56b569(0x10b),_0x17217e[_0x56b569(0xf1)]=function(_0x4cd49a,_0x2d7a47){return _0x4cd49a===_0x2d7a47;},_0x17217e[_0x56b569(0xdf)]=function(_0x1a9fc5,_0x3e1724){return _0x1a9fc5===_0x3e1724;},_0x17217e[_0x56b569(0x102)]=_0x56b569(0xf3);const _0x2be51a=_0x17217e,_0x280391=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x4d2d92=await this[_0x56b569(0xef)](_0x2be51a[_0x56b569(0xdc)],_0x280391,_0x476dbd);if(_0x2be51a[_0x56b569(0xf1)](_0x4d2d92['status'],0xc8)&&_0x4d2d92[_0x56b569(0x10f)]&&_0x2be51a[_0x56b569(0xdf)](_0x4d2d92[_0x56b569(0x10f)][_0x56b569(0xec)],_0x2be51a['BPZCY']))return!![];return![];}catch(_0x256e0f){logger[_0x56b569(0x111)]('['+TAG+_0x56b569(0xfc)+_0x256e0f['message']+'\x20'+_0x256e0f[_0x56b569(0x114)]);const _0x21471f={};_0x21471f[_0x56b569(0xec)]=_0x256e0f[_0x56b569(0xec)];const _0x26c4d6={};return _0x26c4d6['status']=0x1f4,_0x26c4d6[_0x56b569(0x10f)]=_0x21471f,_0x26c4d6;}}static async[a147_0x5966f2(0x101)](_0x35b135){const _0x2d35a2=a147_0x5966f2,_0xa07c55={'nHLJn':function(_0x3c28a1,_0x30d5f7){return _0x3c28a1||_0x30d5f7;},'ZvAoV':_0x2d35a2(0xf4),'UYMuO':function(_0x11a92f,_0xf5206c){return _0x11a92f(_0xf5206c);},'kczKV':function(_0x3a6207,_0x72dcf2){return _0x3a6207(_0x72dcf2);},'svgNg':_0x2d35a2(0xe6),'ywBHA':function(_0x25283f,_0x1cc17e){return _0x25283f===_0x1cc17e;},'uvZAo':function(_0x2acb00,_0x3498aa){return _0x2acb00!==_0x3498aa;},'jVaGc':'undefined'},{buildName:_0x27e74c,buildRunIdentifier:_0x55047e,projectName:_0xd7f4e4}=_0x35b135;if(_0xa07c55[_0x2d35a2(0x112)](!_0x27e74c,!_0x55047e)||!_0xd7f4e4){logger[_0x2d35a2(0x111)]('['+TAG+']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName='+_0x27e74c+_0x2d35a2(0x11d)+_0x55047e+_0x2d35a2(0xf8)+_0xd7f4e4);const _0x5d1719={};_0x5d1719['message']=_0xa07c55['ZvAoV'];const _0x1f4f9b={};return _0x1f4f9b[_0x2d35a2(0xf2)]=0x190,_0x1f4f9b[_0x2d35a2(0x10f)]=_0x5d1719,_0x1f4f9b;}const _0xf47d7='?buildName='+_0xa07c55['UYMuO'](encodeURIComponent,_0x27e74c)+'&buildRunIdentifier='+_0xa07c55['UYMuO'](encodeURIComponent,_0x55047e)+'&projectName='+_0xa07c55['kczKV'](encodeURIComponent,_0xd7f4e4),_0x3632e0=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0xf47d7;try{logger[_0x2d35a2(0xd9)]('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x3632e0);let _0x2b4272=0x0;const _0x528233=await this['_request'](_0xa07c55[_0x2d35a2(0xea)],_0x3632e0);return _0xa07c55['ywBHA'](_0x528233[_0x2d35a2(0xf2)],0xc8)&&_0x528233['body']&&_0xa07c55[_0x2d35a2(0xf7)](typeof _0x528233[_0x2d35a2(0x10f)][_0x2d35a2(0x115)],_0xa07c55[_0x2d35a2(0x10e)])&&(_0x2b4272=_0xa07c55['UYMuO'](Number,_0x528233[_0x2d35a2(0x10f)]['failedTestsCount'])),_0x2b4272;}catch(_0x51a62c){logger['error']('['+TAG+_0x2d35a2(0x110)+_0x51a62c['message']+'\x20'+_0x51a62c[_0x2d35a2(0x114)]);const _0x38e507={};_0x38e507[_0x2d35a2(0xec)]=_0x51a62c['message'];const _0x100e10={};return _0x100e10['status']=0x1f4,_0x100e10['body']=_0x38e507,_0x100e10;}}}function a147_0xd600(_0x34fd25,_0xb34af4){const _0x7085ad=a147_0x7085();return a147_0xd600=function(_0xd60010,_0x40bb96){_0xd60010=_0xd60010-0xd0;let _0x2e01ab=_0x7085ad[_0xd60010];return _0x2e01ab;},a147_0xd600(_0x34fd25,_0xb34af4);}module[a147_0x5966f2(0x11c)]=RequestUtils;
1
+ function a148_0x31fd(){const _0x333fc5=[']\x20Successfully\x20posted\x20split\x20files\x20to\x20','putFailedTests','KzeVs','aPmwU',']\x20Error\x20in\x20getFailedTestsCount:\x20','32331840enfLLq',']\x20Sending\x20','error','3793820WnXEeP','Bearer\x20','JEsQc',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','BUjvK','exports','FLnCx','application/json','env','nvPSZ','JyjEE',',\x20projectName=','6759510IyLIBK',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','Test\x20added','Content-Type','ayMCz','PUT','postSplitFiles','mGrKP','write','Authorization','getSplitFiles',']\x20Request\x20failed\x20for\x20','daUUf','message','218703CZQPcb','4819200cihoHA','stack','headers',',\x20buildRunIdentifier=','data','stringify','dfhMP','bjPeV',']\x20Error\x20in\x20putFailedTests:\x20','27leEnNj','?buildName=','PyMqV','&projectName=','&buildRunIdentifier=','debug','seAeg','Failed\x20to\x20parse\x20JSON\x20response:\x20','undefined','url','JjYoZ','6zOYYKY','crXVF','724137lWBQer','WRBtA','getFailedTestsCount','body','miPuG','end','FaeEm','xFPhV','7cIMSzI','881328FwxUCl','../logger','eYXek','YxyCB',']\x20Sending\x20GET\x20to\x20','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','\x20and\x20data:\x20',',\x20status:\x20','request','\x20and\x20token:\x20','_request','status','GET','winstonLogger','igBLl'];a148_0x31fd=function(){return _0x333fc5;};return a148_0x31fd();}const a148_0x422e08=a148_0x2d90;function a148_0x2d90(_0x5e9f4c,_0x5e9fe3){const _0x31fd9b=a148_0x31fd();return a148_0x2d90=function(_0x2d902d,_0x281efc){_0x2d902d=_0x2d902d-0xd4;let _0x2c3e4b=_0x31fd9b[_0x2d902d];return _0x2c3e4b;},a148_0x2d90(_0x5e9f4c,_0x5e9fe3);}(function(_0x141955,_0xe78da6){const _0x5a5cb0=a148_0x2d90,_0x3c249e=_0x141955();while(!![]){try{const _0x319dc2=parseInt(_0x5a5cb0(0x11c))/0x1+-parseInt(_0x5a5cb0(0x11a))/0x2*(parseInt(_0x5a5cb0(0x105))/0x3)+parseInt(_0x5a5cb0(0x106))/0x4+parseInt(_0x5a5cb0(0xeb))/0x5+parseInt(_0x5a5cb0(0xf7))/0x6*(parseInt(_0x5a5cb0(0x124))/0x7)+parseInt(_0x5a5cb0(0xd4))/0x8*(parseInt(_0x5a5cb0(0x10f))/0x9)+-parseInt(_0x5a5cb0(0xe8))/0xa;if(_0x319dc2===_0xe78da6)break;else _0x3c249e['push'](_0x3c249e['shift']());}catch(_0x18d095){_0x3c249e['push'](_0x3c249e['shift']());}}}(a148_0x31fd,0xa92a1));const https=require('https'),{URL}=require(a148_0x422e08(0x118)),logger=require(a148_0x422e08(0xd5))[a148_0x422e08(0xe1)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG='RequestUtils';class RequestUtils{static async[a148_0x422e08(0xde)](_0x213e62,_0x50d45a,_0x5a8182=null){const _0x13e4d0=a148_0x422e08,_0x534a75={'aPmwU':function(_0x21e5ed,_0x36c61f){return _0x21e5ed(_0x36c61f);},'dfhMP':_0x13e4d0(0x10a),'xFPhV':_0x13e4d0(0x121),'wjvuQ':_0x13e4d0(0xea),'mGrKP':function(_0x55f429,_0x2084d9){return _0x55f429===_0x2084d9;},'JjYoZ':'POST','ayMCz':_0x13e4d0(0xfc),'axKze':_0x13e4d0(0xf2),'HoVFF':function(_0x212578,_0x152755){return _0x212578+_0x152755;}},_0x27c519=process[_0x13e4d0(0xf3)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x76056d={};_0x76056d[_0x13e4d0(0x100)]=_0x13e4d0(0xec)+_0x27c519,_0x76056d[_0x13e4d0(0xfa)]=_0x534a75['axKze'];const _0x5ebb36=_0x76056d,{hostname:_0x11266b,pathname:_0x37c933,search:_0x45a838}=new URL(_0x50d45a),_0x32ef6f={'hostname':_0x11266b,'path':_0x534a75['HoVFF'](_0x37c933,_0x45a838),'method':_0x213e62,'headers':_0x5ebb36};return logger[_0x13e4d0(0x114)]('['+TAG+_0x13e4d0(0xe9)+_0x213e62+'\x20request\x20to\x20'+_0x50d45a+'\x20with\x20headers:\x20'+JSON[_0x13e4d0(0x10b)](_0x5ebb36)+_0x13e4d0(0xda)+JSON[_0x13e4d0(0x10b)](_0x5a8182)+_0x13e4d0(0xdd)+_0x27c519),new Promise((_0x37fbc3,_0x20125f)=>{const _0x38ce66=_0x13e4d0,_0x3fa02b={'KzeVs':function(_0x53bb15,_0x13b8f6){const _0x4b6664=a148_0x2d90;return _0x534a75[_0x4b6664(0xe6)](_0x53bb15,_0x13b8f6);},'puYXh':_0x534a75[_0x38ce66(0x10c)],'BUjvK':_0x534a75[_0x38ce66(0x123)]},_0x3bea3f=https[_0x38ce66(0xdc)](_0x32ef6f,_0x1b8e33=>{const _0x4bf331=_0x38ce66;let _0x4a4b5c='';_0x1b8e33['on'](_0x3fa02b['puYXh'],_0x9f0f33=>{_0x4a4b5c+=_0x9f0f33;}),_0x1b8e33['on'](_0x3fa02b[_0x4bf331(0xef)],()=>{const _0x400943=_0x4bf331;try{const _0x5d79c7=_0x4a4b5c?JSON['parse'](_0x4a4b5c):{},_0x349f1e={};_0x349f1e[_0x400943(0xdf)]=_0x1b8e33['statusCode'],_0x349f1e[_0x400943(0x11f)]=_0x5d79c7,_0x349f1e[_0x400943(0x108)]=_0x1b8e33[_0x400943(0x108)],_0x3fa02b['KzeVs'](_0x37fbc3,_0x349f1e);}catch(_0x49f5c4){logger[_0x400943(0xea)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x4a4b5c+'\x20-\x20'+_0x49f5c4['message']+'\x20'+_0x49f5c4['stack']),_0x3fa02b[_0x400943(0xe5)](_0x20125f,new Error(_0x400943(0x116)+_0x49f5c4[_0x400943(0x104)]));}});});_0x3bea3f['on'](_0x534a75['wjvuQ'],_0x36e207=>{const _0x3426b1=_0x38ce66;logger['error']('['+TAG+_0x3426b1(0x102)+_0x213e62+'\x20'+_0x50d45a+':\x20'+_0x36e207[_0x3426b1(0x104)]+'\x20'+_0x36e207[_0x3426b1(0x107)]),_0x3fa02b[_0x3426b1(0xe5)](_0x20125f,_0x36e207);}),_0x5a8182&&(_0x534a75['mGrKP'](_0x213e62,_0x534a75[_0x38ce66(0x119)])||_0x534a75[_0x38ce66(0xfe)](_0x213e62,_0x534a75[_0x38ce66(0xfb)]))&&_0x3bea3f[_0x38ce66(0xff)](JSON[_0x38ce66(0x10b)](_0x5a8182)),_0x3bea3f[_0x38ce66(0x121)]();});}static async[a148_0x422e08(0xfd)](_0x331b7e){const _0x56d041=a148_0x422e08,_0x5912f0={};_0x5912f0['miPuG']='POST',_0x5912f0['JyjEE']=function(_0x3ac69c,_0x45b1e1){return _0x3ac69c===_0x45b1e1;};const _0x408ee8=_0x5912f0,_0x347adf=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0xafb76d=await this[_0x56d041(0xde)](_0x408ee8[_0x56d041(0x120)],_0x347adf,_0x331b7e);return _0x408ee8[_0x56d041(0xf5)](_0xafb76d[_0x56d041(0xdf)],0xc8)?logger[_0x56d041(0x114)]('['+TAG+_0x56d041(0xe3)+_0x347adf):logger[_0x56d041(0xea)]('['+TAG+_0x56d041(0xf8)+_0x347adf+':\x20'+JSON[_0x56d041(0x10b)](_0xafb76d[_0x56d041(0x11f)])+_0x56d041(0xdb)+_0xafb76d['status']),_0xafb76d;}catch(_0x1e0b52){logger[_0x56d041(0xea)]('['+TAG+_0x56d041(0x10e)+_0x1e0b52[_0x56d041(0x104)]+'\x20'+_0x1e0b52[_0x56d041(0x107)]);const _0x202823={};_0x202823[_0x56d041(0x104)]=_0x1e0b52[_0x56d041(0x104)];const _0x3ce086={};return _0x3ce086[_0x56d041(0xdf)]=0x1f4,_0x3ce086['body']=_0x202823,_0x3ce086;}}static async[a148_0x422e08(0x101)](_0x3bbbb1){const _0x5c43d2=a148_0x422e08,_0x164a84={};_0x164a84[_0x5c43d2(0x11d)]=_0x5c43d2(0xe0),_0x164a84[_0x5c43d2(0xe2)]=function(_0x1d78d2,_0x13af60){return _0x1d78d2===_0x13af60;};const _0x58ab46=_0x164a84;try{const _0x3adf00=await this[_0x5c43d2(0xde)](_0x58ab46[_0x5c43d2(0x11d)],_0x3bbbb1);if(_0x58ab46[_0x5c43d2(0xe2)](_0x3adf00[_0x5c43d2(0xdf)],0xc8))return _0x3adf00[_0x5c43d2(0x11f)];return{};}catch(_0x372705){return logger[_0x5c43d2(0xea)]('['+TAG+_0x5c43d2(0x10e)+_0x372705['message']+'\x20'+_0x372705[_0x5c43d2(0x107)]),{};}}static async[a148_0x422e08(0xe4)](_0xebabd2){const _0x5f1ec5=a148_0x422e08,_0xbc27f6={};_0xbc27f6[_0x5f1ec5(0xf4)]=_0x5f1ec5(0xfc),_0xbc27f6[_0x5f1ec5(0xed)]=function(_0x5b456a,_0x67001e){return _0x5b456a===_0x67001e;},_0xbc27f6[_0x5f1ec5(0x122)]=function(_0x209191,_0x144cc8){return _0x209191===_0x144cc8;},_0xbc27f6['bjPeV']=_0x5f1ec5(0xf9);const _0x7c938c=_0xbc27f6,_0x1b4683=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x49a02e=await this[_0x5f1ec5(0xde)](_0x7c938c[_0x5f1ec5(0xf4)],_0x1b4683,_0xebabd2);if(_0x7c938c[_0x5f1ec5(0xed)](_0x49a02e[_0x5f1ec5(0xdf)],0xc8)&&_0x49a02e[_0x5f1ec5(0x11f)]&&_0x7c938c['FaeEm'](_0x49a02e[_0x5f1ec5(0x11f)]['message'],_0x7c938c[_0x5f1ec5(0x10d)]))return!![];return![];}catch(_0x4bbcf1){logger[_0x5f1ec5(0xea)]('['+TAG+_0x5f1ec5(0x10e)+_0x4bbcf1[_0x5f1ec5(0x104)]+'\x20'+_0x4bbcf1[_0x5f1ec5(0x107)]);const _0xd44de7={};_0xd44de7[_0x5f1ec5(0x104)]=_0x4bbcf1[_0x5f1ec5(0x104)];const _0x7346d8={};return _0x7346d8[_0x5f1ec5(0xdf)]=0x1f4,_0x7346d8['body']=_0xd44de7,_0x7346d8;}}static async[a148_0x422e08(0x11e)](_0x557dec){const _0x5ee86b=a148_0x422e08,_0x413106={'Fuzkn':function(_0x3b4792,_0x2ce3ba){return _0x3b4792||_0x2ce3ba;},'daUUf':_0x5ee86b(0xd9),'eYXek':function(_0x54162b,_0x36357d){return _0x54162b(_0x36357d);},'FLnCx':function(_0x9b746c,_0x21b54c){return _0x9b746c(_0x21b54c);},'YxyCB':_0x5ee86b(0xe0),'seAeg':function(_0x592d73,_0x3d8421){return _0x592d73===_0x3d8421;},'crXVF':function(_0x18b1f6,_0x2c7abe){return _0x18b1f6!==_0x2c7abe;},'PyMqV':_0x5ee86b(0x117)},{buildName:_0x3692fe,buildRunIdentifier:_0x3115dc,projectName:_0x7b1134}=_0x557dec;if(_0x413106['Fuzkn'](!_0x3692fe,!_0x3115dc)||!_0x7b1134){logger['error']('['+TAG+_0x5ee86b(0xee)+_0x3692fe+_0x5ee86b(0x109)+_0x3115dc+_0x5ee86b(0xf6)+_0x7b1134);const _0xe3a419={};_0xe3a419[_0x5ee86b(0x104)]=_0x413106[_0x5ee86b(0x103)];const _0x35d6d7={};return _0x35d6d7[_0x5ee86b(0xdf)]=0x190,_0x35d6d7[_0x5ee86b(0x11f)]=_0xe3a419,_0x35d6d7;}const _0x20e1a3=_0x5ee86b(0x110)+_0x413106[_0x5ee86b(0xd6)](encodeURIComponent,_0x3692fe)+_0x5ee86b(0x113)+_0x413106['eYXek'](encodeURIComponent,_0x3115dc)+_0x5ee86b(0x112)+_0x413106[_0x5ee86b(0xf1)](encodeURIComponent,_0x7b1134),_0x5cd0c5=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x20e1a3;try{logger[_0x5ee86b(0x114)]('['+TAG+_0x5ee86b(0xd8)+_0x5cd0c5);let _0x43567e=0x0;const _0x54646f=await this[_0x5ee86b(0xde)](_0x413106[_0x5ee86b(0xd7)],_0x5cd0c5);return _0x413106[_0x5ee86b(0x115)](_0x54646f[_0x5ee86b(0xdf)],0xc8)&&_0x54646f[_0x5ee86b(0x11f)]&&_0x413106[_0x5ee86b(0x11b)](typeof _0x54646f[_0x5ee86b(0x11f)]['failedTestsCount'],_0x413106[_0x5ee86b(0x111)])&&(_0x43567e=_0x413106[_0x5ee86b(0xd6)](Number,_0x54646f['body']['failedTestsCount'])),_0x43567e;}catch(_0xf94e38){logger[_0x5ee86b(0xea)]('['+TAG+_0x5ee86b(0xe7)+_0xf94e38[_0x5ee86b(0x104)]+'\x20'+_0xf94e38[_0x5ee86b(0x107)]);const _0x206b47={};_0x206b47[_0x5ee86b(0x104)]=_0xf94e38[_0x5ee86b(0x104)];const _0x3900ff={};return _0x3900ff[_0x5ee86b(0xdf)]=0x1f4,_0x3900ff['body']=_0x206b47,_0x3900ff;}}}module[a148_0x422e08(0xf0)]=RequestUtils;
@@ -1 +1 @@
1
- const a148_0xa4e41e=a148_0x11d6;function a148_0x5cc5(){const _0x2d7feb=['LBSeK','./orchestrationUtils','getOrderedTestFiles','\x20files','QPAGl','info','../helper','./testOrderingServerHandler','jest-config','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','toString','npx','xUSle','relative','testMatch','testOrderingApplied','ignore','isTestOrchestrationEnabled','config','xfJut','Poasn','jest-runner','isArray','MrEDr','matchBase','map','4336074XxOhvT','lIYmC','LtmqF','mOqLV','iLmzB','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','pqimU','GqYBA','KxrSb','eTNcR','glob','micromatch','rootDir','522lNKeRl','splitTests','ZEqrI','addToOrderingInstrumentationData','testOrderingServerHandler','ZNsLS','testPathIgnorePatterns','filter','projectName','5309605TMTwGt','../logger','uipJD','--config','SoPqd','debug','buildIdentifier','**/__tests__/**/*.[jt]s?(x)','jest-util','applied','error','stdout','DFpgY','675NuCDxR','jest','isTestOrderingApplied','pVRgp','rPTJV','vdwlG','orderingInstrumentationData','stringify','ugTCe','testObservability','--listTests','logTestOrderingChecks','AzhDl','updateBuildIdentifier','exports','2|0|3|4|1|5','1735622LirzAV','getSplitTestsAPICallCount','ReSgJ','1988091MZTGMp','BROWSERSTACK_NODE_INDEX','utf-8','CskEx','5070848NNVoqY','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','env','7756ygQWIZ','downloadedTestFilesCount','Xigby','reorderTestFiles','aaDIi','sXZdv','child_process','testOrderingEnabled','1iCEqdG','NTEPZ','_initializeTestOrdering','nodeIndex','DgZqd','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','_shouldLogTestOrderingChecks','169560pcFJhb','path','Filterted\x20to\x20test\x20files:\x20','orchestrationUtils','Rsfog','Test\x20orchestration\x20without\x20test\x20ordering','split','buildName','length'];a148_0x5cc5=function(){return _0x2d7feb;};return a148_0x5cc5();}function a148_0x11d6(_0x418088,_0x1df3b9){const _0x5cc5ad=a148_0x5cc5();return a148_0x11d6=function(_0x11d6d2,_0x3c1ea5){_0x11d6d2=_0x11d6d2-0x15e;let _0x3552da=_0x5cc5ad[_0x11d6d2];return _0x3552da;},a148_0x11d6(_0x418088,_0x1df3b9);}(function(_0x457fd8,_0x5ebe9d){const _0x234060=a148_0x11d6,_0x58386d=_0x457fd8();while(!![]){try{const _0x467d08=-parseInt(_0x234060(0x186))/0x1*(parseInt(_0x234060(0x174))/0x2)+-parseInt(_0x234060(0x177))/0x3+-parseInt(_0x234060(0x17e))/0x4*(-parseInt(_0x234060(0x164))/0x5)+parseInt(_0x234060(0x1b1))/0x6+parseInt(_0x234060(0x1c7))/0x7+-parseInt(_0x234060(0x17b))/0x8+parseInt(_0x234060(0x1be))/0x9*(parseInt(_0x234060(0x18d))/0xa);if(_0x467d08===_0x5ebe9d)break;else _0x58386d['push'](_0x58386d['shift']());}catch(_0x2562b2){_0x58386d['push'](_0x58386d['shift']());}}}(a148_0x5cc5,0x8937b));const logger=require(a148_0xa4e41e(0x1c8))['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a148_0xa4e41e(0x19c)),TestOrderingServerHandler=require(a148_0xa4e41e(0x19d)),OrchestrationUtils=require(a148_0xa4e41e(0x197)),path=require(a148_0xa4e41e(0x18e)),{spawnSync}=require(a148_0xa4e41e(0x184)),micromatch=require(a148_0xa4e41e(0x1bc)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x223e06){const _0x41c705=a148_0xa4e41e,_0x51363b={};_0x51363b[_0x41c705(0x1b7)]=_0x41c705(0x173);const _0x5cba9b=_0x51363b,_0x3340a1=_0x5cba9b[_0x41c705(0x1b7)][_0x41c705(0x193)]('|');let _0x3aaf41=0x0;while(!![]){switch(_0x3340a1[_0x3aaf41++]){case'0':this['orderingInstrumentationData']={};continue;case'1':this[_0x41c705(0x190)]=new OrchestrationUtils(_0x223e06);continue;case'2':this[_0x41c705(0x1a9)]=_0x223e06;continue;case'3':this[_0x41c705(0x1a6)]=![];continue;case'4':this[_0x41c705(0x1c2)]=null;continue;case'5':this[_0x41c705(0x188)]();continue;}break;}}[a148_0xa4e41e(0x1a8)](){const _0x1b2762=a148_0xa4e41e,_0x182f48={'mOqLV':function(_0x6fd072,_0x3ddd17){return _0x6fd072(_0x3ddd17);},'jglQD':function(_0x39a0a0,_0x46d784){return _0x39a0a0(_0x46d784);},'MrEDr':function(_0x47bf5f,_0x49de7e){return _0x47bf5f&&_0x49de7e;}},_0x393590=_0x182f48[_0x1b2762(0x1b4)](isNotUndefined,this['config'])&&(_0x182f48[_0x1b2762(0x1b4)](isUndefined,this[_0x1b2762(0x1a9)][_0x1b2762(0x16d)])||_0x182f48[_0x1b2762(0x1b4)](isTrueString,this[_0x1b2762(0x1a9)]['testObservability'])),_0x1aa3f5=this[_0x1b2762(0x190)][_0x1b2762(0x185)](),_0x457c75=_0x182f48[_0x1b2762(0x1b4)](isNotUndefined,this[_0x1b2762(0x1a9)])&&_0x182f48[_0x1b2762(0x1b4)](isNotUndefined,this[_0x1b2762(0x1a9)][_0x1b2762(0x1c6)]),_0xf3d884=_0x182f48['jglQD'](isNotUndefined,this[_0x1b2762(0x1a9)])&&_0x182f48['jglQD'](isNotUndefined,this[_0x1b2762(0x1a9)][_0x1b2762(0x194)]);return _0x182f48[_0x1b2762(0x1ae)](_0x393590,_0x1aa3f5)&&_0x457c75&&_0xf3d884;}[a148_0xa4e41e(0x188)](){const _0x2554c5=a148_0xa4e41e,_0x23ae6b={};_0x23ae6b[_0x2554c5(0x183)]=_0x2554c5(0x17c),_0x23ae6b[_0x2554c5(0x1b8)]=_0x2554c5(0x192);const _0x19f7ac=_0x23ae6b;this[_0x2554c5(0x1a8)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this[_0x2554c5(0x1a9)]),logger[_0x2554c5(0x19b)](_0x19f7ac[_0x2554c5(0x183)])):(logger['debug'](_0x19f7ac[_0x2554c5(0x1b8)]),this[_0x2554c5(0x16f)]());}[a148_0xa4e41e(0x16f)](){const _0x5f589a=a148_0xa4e41e,_0x4ee181={'DgZqd':function(_0x31e7b4,_0x1105fd){return _0x31e7b4(_0x1105fd);},'iLmzB':function(_0x27a5b7,_0x4e149d){return _0x27a5b7(_0x4e149d);},'rPTJV':function(_0x144456,_0x14f013){return _0x144456(_0x14f013);},'vdwlG':_0x5f589a(0x18b),'Xigby':function(_0x4e3d43,_0x578535){return _0x4e3d43(_0x578535);},'SoPqd':function(_0x1072b0,_0x50c547){return _0x1072b0(_0x50c547);},'pVRgp':_0x5f589a(0x19f)};if(!this[_0x5f589a(0x18c)]())return;(!_0x4ee181[_0x5f589a(0x18a)](isNotUndefined,this[_0x5f589a(0x1a9)])||!_0x4ee181[_0x5f589a(0x1b5)](isNotUndefined,this[_0x5f589a(0x1a9)][_0x5f589a(0x194)])||!_0x4ee181[_0x5f589a(0x168)](isNotUndefined,this[_0x5f589a(0x1a9)][_0x5f589a(0x1c6)]))&&logger['info'](_0x4ee181[_0x5f589a(0x169)]),_0x4ee181[_0x5f589a(0x180)](isNotUndefined,this[_0x5f589a(0x1a9)])&&_0x4ee181[_0x5f589a(0x1cb)](isNotUndefined,this['config'][_0x5f589a(0x16d)])&&!_0x4ee181[_0x5f589a(0x168)](isTrueString,this[_0x5f589a(0x1a9)][_0x5f589a(0x16d)])&&logger[_0x5f589a(0x19b)](_0x4ee181[_0x5f589a(0x167)]);}[a148_0xa4e41e(0x18c)](){const _0xe40a39=a148_0xa4e41e;return!this[_0xe40a39(0x1a8)]()&&this['orchestrationUtils'][_0xe40a39(0x185)]();}[a148_0xa4e41e(0x166)](){return this['testOrderingApplied'];}['setTestOrderingApplied'](_0x5513b5){const _0x533f7f=a148_0xa4e41e,_0x301c1c={};_0x301c1c[_0x533f7f(0x1c0)]=_0x533f7f(0x160);const _0x521763=_0x301c1c;this['testOrderingApplied']=_0x5513b5,this[_0x533f7f(0x1c1)](_0x521763[_0x533f7f(0x1c0)],_0x5513b5);}[a148_0xa4e41e(0x1c1)](_0x3f71b4,_0x379745){const _0x40c84f=a148_0xa4e41e;this[_0x40c84f(0x16a)][_0x3f71b4]=_0x379745;}['getOrderingInstrumentationData'](){const _0x47d7bf=a148_0xa4e41e;return this[_0x47d7bf(0x16a)];}[a148_0xa4e41e(0x171)](){const _0x102af9=a148_0xa4e41e,_0x38ce75={'dgkUZ':function(_0x1c4740,_0x3d331d){return _0x1c4740(_0x3d331d);},'cVaZb':function(_0x20928d,_0x5381a6){return _0x20928d>_0x5381a6;}},_0x11156c=_0x38ce75['dgkUZ'](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x350fc0=process[_0x102af9(0x17d)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x350fc0&&_0x38ce75['cVaZb'](_0x11156c,0x1)&&(logger['debug'](_0x102af9(0x1a0)+_0x350fc0),this[_0x102af9(0x1a9)][_0x102af9(0x1cd)]=_0x350fc0);}async[a148_0xa4e41e(0x181)](_0x12e9be){const _0xe21e66=a148_0xa4e41e,_0x3fab3e={'ReSgJ':function(_0x18f785,_0x40b07e){return _0x18f785===_0x40b07e;},'Poasn':function(_0x1422dd,_0x1d33aa){return _0x1422dd===_0x1d33aa;},'txCAB':_0xe21e66(0x1b6),'KxrSb':function(_0x36d3ed,_0x4bcff5){return _0x36d3ed(_0x4bcff5);},'ZNsLS':'uploadedTestFilesCount','LBSeK':_0xe21e66(0x189),'fblOR':'totalNodes','COvzD':_0xe21e66(0x17f),'DFpgY':'splitTestsAPICallCount'};try{if(!_0x12e9be||!Array[_0xe21e66(0x1ad)](_0x12e9be)||_0x3fab3e[_0xe21e66(0x176)](_0x12e9be[_0xe21e66(0x195)],0x0))return null;if(_0x3fab3e['Poasn'](this[_0xe21e66(0x1a8)](),![]))return logger[_0xe21e66(0x1cc)](_0x3fab3e['txCAB']),null;let _0x564e19=null;const _0x4e1725=this[_0xe21e66(0x190)]['getTestOrderingName']();if(this['testOrderingServerHandler']){const _0x40c2b3=await this[_0xe21e66(0x1c2)][_0xe21e66(0x1bf)](_0x12e9be,_0x4e1725);if(!_0x40c2b3)return null;_0x564e19=await this['testOrderingServerHandler'][_0xe21e66(0x198)](_0x40c2b3);}if(!_0x564e19||!Array['isArray'](_0x564e19)||_0x3fab3e[_0xe21e66(0x1ab)](_0x564e19[_0xe21e66(0x195)],0x0))return null;const _0x27c6f5=_0x3fab3e[_0xe21e66(0x1b9)](parseInt,process[_0xe21e66(0x17d)][_0xe21e66(0x178)]||'0'),_0x1531f6=_0x3fab3e[_0xe21e66(0x1b9)](parseInt,process[_0xe21e66(0x17d)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0xe21e66(0x1c1)](_0x3fab3e[_0xe21e66(0x1c3)],_0x12e9be[_0xe21e66(0x195)]),this[_0xe21e66(0x1c1)](_0x3fab3e[_0xe21e66(0x196)],_0x27c6f5),this[_0xe21e66(0x1c1)](_0x3fab3e['fblOR'],_0x1531f6),this[_0xe21e66(0x1c1)](_0x3fab3e['COvzD'],_0x564e19[_0xe21e66(0x195)]),this['addToOrderingInstrumentationData'](_0x3fab3e[_0xe21e66(0x163)],this['testOrderingServerHandler']?this[_0xe21e66(0x1c2)][_0xe21e66(0x175)]():0x0),_0x564e19[_0xe21e66(0x1b0)](_0x27ff64=>sanitizedFilePath(_0x27ff64));}catch(_0x596159){return logger[_0xe21e66(0x1cc)]('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x596159['stack']||_0x596159[_0xe21e66(0x1a1)]())),null;}}async['findTestFiles'](_0x5ceb2b,_0x2ae15a,_0x3f91cc){const _0x4bbd59=a148_0xa4e41e,_0x1a4878={'tqjxt':function(_0x220769,_0x3e4146){return _0x220769(_0x3e4146);},'vkcsq':_0x4bbd59(0x19e),'lIYmC':function(_0x18e7c1,_0x1810c9){return _0x18e7c1(_0x1810c9);},'eTNcR':_0x4bbd59(0x15f),'QPAGl':function(_0x1fd8a8,_0x148799){return _0x1fd8a8(_0x148799);},'AzhDl':_0x4bbd59(0x1ac),'ugTCe':function(_0x39a2d7,_0xf09dc3){return _0x39a2d7(_0xf09dc3);},'NTEPZ':_0x4bbd59(0x1bb),'aaDIi':_0x4bbd59(0x15e),'uipJD':'**/?(*.)+(spec|test).[jt]s?(x)','CskEx':function(_0x50b8b1,_0x48c25c,_0x5901c7,_0x3c14f4){return _0x50b8b1(_0x48c25c,_0x5901c7,_0x3c14f4);},'azSco':_0x4bbd59(0x1a2),'LtmqF':_0x4bbd59(0x165),'xUSle':_0x4bbd59(0x1ca),'sctJX':_0x4bbd59(0x16e),'Rsfog':_0x4bbd59(0x179),'xfJut':function(_0x3db9d0,_0x5a513f,_0x4c5b61,_0x2a32d3){return _0x3db9d0(_0x5a513f,_0x4c5b61,_0x2a32d3);}};try{const {getTestPathPatterns:_0x1cd342}=_0x1a4878['tqjxt'](require,_0x1a4878['vkcsq']),{globsToMatcher:_0x49bd6a}=_0x1a4878[_0x4bbd59(0x1b2)](require,_0x1a4878[_0x4bbd59(0x1ba)]),{findRelatedTests:_0x5e02af}=_0x1a4878[_0x4bbd59(0x19a)](require,_0x1a4878[_0x4bbd59(0x170)]),_0x1b9102=_0x1a4878[_0x4bbd59(0x16c)](require,_0x1a4878[_0x4bbd59(0x187)]),_0x8ccc68=_0x5ceb2b[_0x4bbd59(0x1a5)]||[_0x1a4878[_0x4bbd59(0x182)],_0x1a4878[_0x4bbd59(0x1c9)]],_0x5d741d=_0x5ceb2b[_0x4bbd59(0x1c4)]||[],_0x5e0a10=_0x1a4878[_0x4bbd59(0x17a)](spawnSync,_0x1a4878['azSco'],[_0x1a4878[_0x4bbd59(0x1b3)],_0x1a4878[_0x4bbd59(0x1a3)],_0x3f91cc,..._0x2ae15a,_0x1a4878['sctJX']],{'encoding':_0x1a4878[_0x4bbd59(0x191)]});let _0x207da1=[];!_0x5e0a10[_0x4bbd59(0x161)]&&(_0x207da1=_0x5e0a10[_0x4bbd59(0x162)]['split']('\x0a')[_0x4bbd59(0x1c5)](Boolean));logger[_0x4bbd59(0x1cc)]('Found\x20test\x20files:\x20'+JSON[_0x4bbd59(0x16b)](_0x207da1)+_0x4bbd59(0x199));const _0x3848b4={};_0x3848b4[_0x4bbd59(0x1af)]=!![],_0x3848b4[_0x4bbd59(0x1a7)]=_0x5d741d;const _0x2c4663=_0x1a4878[_0x4bbd59(0x1aa)](micromatch,_0x207da1,_0x8ccc68,_0x3848b4)['map'](_0xd09e5b=>path[_0x4bbd59(0x1a4)](_0x5ceb2b[_0x4bbd59(0x1bd)],_0xd09e5b));return logger[_0x4bbd59(0x1cc)](_0x4bbd59(0x18f)+JSON[_0x4bbd59(0x16b)](_0x2c4663)+_0x4bbd59(0x199)),_0x2c4663;}catch(_0x4f579e){return logger[_0x4bbd59(0x1cc)]('Error\x20finding\x20test\x20files:\x20'+_0x4f579e),[];}}}module[a148_0xa4e41e(0x172)]=TestOrchestrationHandler;
1
+ function a149_0x36ef(){const _0xca2ca9=['dDnLR','child_process','29324uNazpv','45vQtNxh','../logger','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','uploadedTestFilesCount','2169368hpfASZ','./orchestrationUtils','getOrderedTestFiles','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','glob','oAhVz','setTestOrderingApplied','orderingInstrumentationData','jest-config','orchestrationUtils','aVKZy','env','error','2384990IirgAt','Filterted\x20to\x20test\x20files:\x20','reorderTestFiles','PKVrp','config','split','NnIsu','EFJto','applied','testPathIgnorePatterns','WctUt','BROWSERSTACK_TOTAL_NODE_COUNT','buildIdentifier','xFnxA','testObservability','ujmTr','relative','npx','NQQWR','ZqKsk','info','1748520nXavay','3985384aUjJUq','Error\x20finding\x20test\x20files:\x20','rootDir','nodeIndex','../helper','debug','eqydK','AZBrH','TEflc','rKDbi','testMatch','BROWSERSTACK_BUILD_RUN_IDENTIFIER','BihsQ','Found\x20test\x20files:\x20','path','isTestOrderingApplied','winstonLogger','micromatch','jest-runner','updateBuildIdentifier','**/?(*.)+(spec|test).[jt]s?(x)','whOGv','testOrderingApplied','3936009FzHqdy','testOrderingServerHandler','totalNodes','_shouldLogTestOrderingChecks','ignore','logTestOrderingChecks','getOrderingInstrumentationData','RRiPJ','HniyC','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','./testOrderingServerHandler','addToOrderingInstrumentationData','projectName','UTfNP','length','testOrderingEnabled','Test\x20orchestration\x20without\x20test\x20ordering','downloadedTestFilesCount','findTestFiles','splitTestsAPICallCount','stdout','aYxEV','filter','SCEqI','mvOkO','_initializeTestOrdering','buildName','lNpyl','isArray','getSplitTestsAPICallCount','\x20files','IupBK','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','ZRYIy','JXWsm','map','stringify','hFNHq','stack','jest-util','matchBase','isTestOrchestrationEnabled','tfZjf','390454HeNniV','--listTests','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'];a149_0x36ef=function(){return _0xca2ca9;};return a149_0x36ef();}const a149_0x3a4cf3=a149_0x776d;(function(_0x185b0b,_0xeefd04){const _0x20cf01=a149_0x776d,_0x408711=_0x185b0b();while(!![]){try{const _0xd4de9=parseInt(_0x20cf01(0x206))/0x1+parseInt(_0x20cf01(0x20b))/0x2*(parseInt(_0x20cf01(0x20c))/0x3)+-parseInt(_0x20cf01(0x210))/0x4+parseInt(_0x20cf01(0x21d))/0x5+-parseInt(_0x20cf01(0x232))/0x6+parseInt(_0x20cf01(0x24a))/0x7+-parseInt(_0x20cf01(0x233))/0x8;if(_0xd4de9===_0xeefd04)break;else _0x408711['push'](_0x408711['shift']());}catch(_0x366d65){_0x408711['push'](_0x408711['shift']());}}}(a149_0x36ef,0x4d926));const logger=require(a149_0x3a4cf3(0x20d))[a149_0x3a4cf3(0x243)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a149_0x3a4cf3(0x237)),TestOrderingServerHandler=require(a149_0x3a4cf3(0x1e5)),OrchestrationUtils=require(a149_0x3a4cf3(0x211)),path=require(a149_0x3a4cf3(0x241)),{spawnSync}=require(a149_0x3a4cf3(0x20a)),micromatch=require(a149_0x3a4cf3(0x244)),fs=require('fs');function a149_0x776d(_0x54a752,_0x216f01){const _0x36ef6e=a149_0x36ef();return a149_0x776d=function(_0x776d66,_0x15c912){_0x776d66=_0x776d66-0x1dc;let _0x4d122f=_0x36ef6e[_0x776d66];return _0x4d122f;},a149_0x776d(_0x54a752,_0x216f01);}class TestOrchestrationHandler{constructor(_0x58ca2d){const _0xca2c47=a149_0x3a4cf3,_0x596cc0={};_0x596cc0[_0xca2c47(0x23b)]='3|2|4|5|1|0';const _0x19efaf=_0x596cc0,_0x45f6cb=_0x19efaf['TEflc'][_0xca2c47(0x222)]('|');let _0x50848e=0x0;while(!![]){switch(_0x45f6cb[_0x50848e++]){case'0':this['_initializeTestOrdering']();continue;case'1':this[_0xca2c47(0x219)]=new OrchestrationUtils(_0x58ca2d);continue;case'2':this[_0xca2c47(0x217)]={};continue;case'3':this['config']=_0x58ca2d;continue;case'4':this['testOrderingApplied']=![];continue;case'5':this[_0xca2c47(0x1dc)]=null;continue;}break;}}[a149_0x3a4cf3(0x204)](){const _0x317b8a=a149_0x3a4cf3,_0xf80ae5={'hFNHq':function(_0x4105ad,_0x2f8e37){return _0x4105ad(_0x2f8e37);},'ujmTr':function(_0x4afd43,_0x418fb1){return _0x4afd43(_0x418fb1);},'mvOkO':function(_0x119463,_0x318d1f){return _0x119463(_0x318d1f);},'TvYJq':function(_0x39aef6,_0x2eca9d){return _0x39aef6&&_0x2eca9d;}},_0x50fa5f=_0xf80ae5[_0x317b8a(0x200)](isNotUndefined,this[_0x317b8a(0x221)])&&(_0xf80ae5['hFNHq'](isUndefined,this[_0x317b8a(0x221)][_0x317b8a(0x22b)])||_0xf80ae5[_0x317b8a(0x22c)](isTrueString,this[_0x317b8a(0x221)][_0x317b8a(0x22b)])),_0x1fd5ed=this[_0x317b8a(0x219)]['testOrderingEnabled'](),_0x1ff517=_0xf80ae5[_0x317b8a(0x1f3)](isNotUndefined,this[_0x317b8a(0x221)])&&_0xf80ae5[_0x317b8a(0x200)](isNotUndefined,this[_0x317b8a(0x221)]['projectName']),_0x2166ce=_0xf80ae5[_0x317b8a(0x22c)](isNotUndefined,this[_0x317b8a(0x221)])&&_0xf80ae5[_0x317b8a(0x22c)](isNotUndefined,this['config']['buildName']);return _0xf80ae5['TvYJq'](_0x50fa5f,_0x1fd5ed)&&_0x1ff517&&_0x2166ce;}[a149_0x3a4cf3(0x1f4)](){const _0x483f1b=a149_0x3a4cf3,_0x236420={};_0x236420[_0x483f1b(0x1fc)]=_0x483f1b(0x1fb),_0x236420[_0x483f1b(0x23a)]=_0x483f1b(0x1eb);const _0x17643c=_0x236420;this[_0x483f1b(0x204)]()?(this[_0x483f1b(0x1dc)]=new TestOrderingServerHandler(this[_0x483f1b(0x221)]),logger[_0x483f1b(0x231)](_0x17643c[_0x483f1b(0x1fc)])):(logger['debug'](_0x17643c[_0x483f1b(0x23a)]),this[_0x483f1b(0x1e0)]());}[a149_0x3a4cf3(0x1e0)](){const _0x35ae93=a149_0x3a4cf3,_0x2fbf3e={'whOGv':function(_0x43b836,_0x36bfe1){return _0x43b836(_0x36bfe1);},'rKDbi':_0x35ae93(0x20e),'IupBK':function(_0x4ef885,_0x389999){return _0x4ef885(_0x389999);},'lNpyl':_0x35ae93(0x208)};if(!this[_0x35ae93(0x1de)]())return;(!_0x2fbf3e['whOGv'](isNotUndefined,this['config'])||!_0x2fbf3e[_0x35ae93(0x248)](isNotUndefined,this[_0x35ae93(0x221)][_0x35ae93(0x1f5)])||!_0x2fbf3e[_0x35ae93(0x248)](isNotUndefined,this[_0x35ae93(0x221)][_0x35ae93(0x1e7)]))&&logger[_0x35ae93(0x231)](_0x2fbf3e[_0x35ae93(0x23c)]),_0x2fbf3e[_0x35ae93(0x248)](isNotUndefined,this['config'])&&_0x2fbf3e['whOGv'](isNotUndefined,this[_0x35ae93(0x221)][_0x35ae93(0x22b)])&&!_0x2fbf3e[_0x35ae93(0x1fa)](isTrueString,this[_0x35ae93(0x221)]['testObservability'])&&logger[_0x35ae93(0x231)](_0x2fbf3e[_0x35ae93(0x1f6)]);}[a149_0x3a4cf3(0x1de)](){const _0xfc63f4=a149_0x3a4cf3;return!this[_0xfc63f4(0x204)]()&&this[_0xfc63f4(0x219)][_0xfc63f4(0x1ea)]();}[a149_0x3a4cf3(0x242)](){const _0x21105f=a149_0x3a4cf3;return this[_0x21105f(0x249)];}[a149_0x3a4cf3(0x216)](_0x29b7f5){const _0x389f14=a149_0x3a4cf3,_0x4b617c={};_0x4b617c[_0x389f14(0x224)]=_0x389f14(0x225);const _0xeee65f=_0x4b617c;this[_0x389f14(0x249)]=_0x29b7f5,this[_0x389f14(0x1e6)](_0xeee65f[_0x389f14(0x224)],_0x29b7f5);}[a149_0x3a4cf3(0x1e6)](_0x19436e,_0x2a3655){const _0x42638e=a149_0x3a4cf3;this[_0x42638e(0x217)][_0x19436e]=_0x2a3655;}[a149_0x3a4cf3(0x1e1)](){return this['orderingInstrumentationData'];}[a149_0x3a4cf3(0x246)](){const _0x9b24d3=a149_0x3a4cf3,_0x5ec2a5={'ZqKsk':function(_0x447d7b,_0x4f843c){return _0x447d7b(_0x4f843c);},'NnIsu':function(_0x337222,_0x5785d9){return _0x337222>_0x5785d9;}},_0x2bed1e=_0x5ec2a5[_0x9b24d3(0x230)](parseInt,process[_0x9b24d3(0x21b)][_0x9b24d3(0x228)]||'1'),_0x200613=process[_0x9b24d3(0x21b)][_0x9b24d3(0x23e)];_0x200613&&_0x5ec2a5[_0x9b24d3(0x223)](_0x2bed1e,0x1)&&(logger[_0x9b24d3(0x238)](_0x9b24d3(0x1e4)+_0x200613),this[_0x9b24d3(0x221)][_0x9b24d3(0x229)]=_0x200613);}async[a149_0x3a4cf3(0x21f)](_0x37876e){const _0x242926=a149_0x3a4cf3,_0x3c0c6e={'eqydK':function(_0x57bc25,_0x223c6c){return _0x57bc25===_0x223c6c;},'RRiPJ':_0x242926(0x213),'xFnxA':function(_0x5a2f39,_0x599ebe){return _0x5a2f39(_0x599ebe);},'oAhVz':_0x242926(0x20f),'JXWsm':_0x242926(0x236),'BihsQ':_0x242926(0x1dd),'uapkn':_0x242926(0x1ec),'Gterl':_0x242926(0x1ee)};try{if(!_0x37876e||!Array[_0x242926(0x1f7)](_0x37876e)||_0x3c0c6e[_0x242926(0x239)](_0x37876e['length'],0x0))return null;if(_0x3c0c6e[_0x242926(0x239)](this[_0x242926(0x204)](),![]))return logger['debug'](_0x3c0c6e[_0x242926(0x1e2)]),null;let _0x68e99c=null;const _0xd21af2=this[_0x242926(0x219)]['getTestOrderingName']();if(this[_0x242926(0x1dc)]){const _0x13f060=await this[_0x242926(0x1dc)]['splitTests'](_0x37876e,_0xd21af2);if(!_0x13f060)return null;_0x68e99c=await this['testOrderingServerHandler'][_0x242926(0x212)](_0x13f060);}if(!_0x68e99c||!Array[_0x242926(0x1f7)](_0x68e99c)||_0x3c0c6e[_0x242926(0x239)](_0x68e99c[_0x242926(0x1e9)],0x0))return null;const _0x4c06b2=_0x3c0c6e[_0x242926(0x22a)](parseInt,process['env']['BROWSERSTACK_NODE_INDEX']||'0'),_0x89a881=_0x3c0c6e[_0x242926(0x22a)](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0x242926(0x1e6)](_0x3c0c6e[_0x242926(0x215)],_0x37876e[_0x242926(0x1e9)]),this[_0x242926(0x1e6)](_0x3c0c6e[_0x242926(0x1fd)],_0x4c06b2),this['addToOrderingInstrumentationData'](_0x3c0c6e[_0x242926(0x23f)],_0x89a881),this['addToOrderingInstrumentationData'](_0x3c0c6e['uapkn'],_0x68e99c[_0x242926(0x1e9)]),this[_0x242926(0x1e6)](_0x3c0c6e['Gterl'],this[_0x242926(0x1dc)]?this['testOrderingServerHandler'][_0x242926(0x1f8)]():0x0),_0x68e99c[_0x242926(0x1fe)](_0x14cb46=>sanitizedFilePath(_0x14cb46));}catch(_0x5054c3){return logger['debug']('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x5054c3[_0x242926(0x201)]||_0x5054c3['toString']())),null;}}async[a149_0x3a4cf3(0x1ed)](_0x4c6ffc,_0x175f88,_0x50a57d){const _0x601d59=a149_0x3a4cf3,_0x546d5c={'aVKZy':function(_0xba348,_0xed2660){return _0xba348(_0xed2660);},'dDnLR':_0x601d59(0x218),'tfZjf':_0x601d59(0x202),'UTfNP':function(_0x576ca9,_0x5e950b){return _0x576ca9(_0x5e950b);},'IoYdR':_0x601d59(0x245),'PKVrp':_0x601d59(0x214),'XLbym':'**/__tests__/**/*.[jt]s?(x)','ilVve':_0x601d59(0x247),'LVhEx':function(_0x4fc192,_0x3afd86,_0x24c5de,_0x693475){return _0x4fc192(_0x3afd86,_0x24c5de,_0x693475);},'HniyC':_0x601d59(0x22e),'NQQWR':'jest','SCEqI':'--config','aYxEV':_0x601d59(0x207),'XRnDG':'utf-8','WctUt':function(_0x4e702,_0xa86784,_0x2b8d35,_0x456d74){return _0x4e702(_0xa86784,_0x2b8d35,_0x456d74);}};try{const {getTestPathPatterns:_0x579f7a}=_0x546d5c[_0x601d59(0x21a)](require,_0x546d5c[_0x601d59(0x209)]),{globsToMatcher:_0x403fe4}=_0x546d5c['aVKZy'](require,_0x546d5c[_0x601d59(0x205)]),{findRelatedTests:_0x15ed9d}=_0x546d5c[_0x601d59(0x1e8)](require,_0x546d5c['IoYdR']),_0x1cbfb4=_0x546d5c[_0x601d59(0x1e8)](require,_0x546d5c[_0x601d59(0x220)]),_0x84f7cb=_0x4c6ffc[_0x601d59(0x23d)]||[_0x546d5c['XLbym'],_0x546d5c['ilVve']],_0x32f08c=_0x4c6ffc[_0x601d59(0x226)]||[],_0x465463=_0x546d5c['LVhEx'](spawnSync,_0x546d5c[_0x601d59(0x1e3)],[_0x546d5c[_0x601d59(0x22f)],_0x546d5c[_0x601d59(0x1f2)],_0x50a57d,..._0x175f88,_0x546d5c[_0x601d59(0x1f0)]],{'encoding':_0x546d5c['XRnDG']});let _0x538e69=[];!_0x465463[_0x601d59(0x21c)]&&(_0x538e69=_0x465463[_0x601d59(0x1ef)]['split']('\x0a')[_0x601d59(0x1f1)](Boolean));logger[_0x601d59(0x238)](_0x601d59(0x240)+JSON['stringify'](_0x538e69)+'\x20files');const _0x4c1cd0={};_0x4c1cd0[_0x601d59(0x203)]=!![],_0x4c1cd0[_0x601d59(0x1df)]=_0x32f08c;const _0x3a1a16=_0x546d5c[_0x601d59(0x227)](micromatch,_0x538e69,_0x84f7cb,_0x4c1cd0)[_0x601d59(0x1fe)](_0x38c592=>path[_0x601d59(0x22d)](_0x4c6ffc[_0x601d59(0x235)],_0x38c592));return logger[_0x601d59(0x238)](_0x601d59(0x21e)+JSON[_0x601d59(0x1ff)](_0x3a1a16)+_0x601d59(0x1f9)),_0x3a1a16;}catch(_0x20cc34){return logger['debug'](_0x601d59(0x234)+_0x20cc34),[];}}}module['exports']=TestOrchestrationHandler;
@@ -1 +1 @@
1
- const a149_0x2df284=a149_0x13e2;function a149_0x536d(){const _0x3cdedf=['FzLaI','timeoutUrl','config','9225590AjRkqR','1295iaahxT','_getHostInfo','prfqi','Mmkfd','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','buildName','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20',',\x20resultUrl:\x20','arch','timeoutInterval','1960609iLcegm','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','getSplitFiles','313979aBUpgo','getSplitTestsAPICallCount','body','tEcQA','BROWSERSTACK_TOTAL_NODE_COUNT','defaultTimeoutInterval','toString','[processSplitTestsResponse]\x20timeout:\x20','oyFjG','./requestUtils','splitTests','now','GBdSt','63498qbBGkL',',\x20timeoutUrl:\x20','resultUrl','defaultTimeout','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','hostname','stringify','stack','250611czrPRC','FfENW','12cZyIoc','filePath','env','getOrderedTestFiles','release','timeout','OsPXY','4782ljBaYD','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','CiPCw','tests','uqJhb',',\x20timeoutInterval:\x20','BROWSERSTACK_NODE_INDEX','freemem','584DmdoDl','32697joicys','splitTestsAPICallCount','../logger','projectName','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','[processSplitTestsResponse]\x20Processing\x20response:\x20','map','processSplitTestsResponse','debug','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files'];a149_0x536d=function(){return _0x3cdedf;};return a149_0x536d();}function a149_0x13e2(_0x31d399,_0x405b9f){const _0x536de7=a149_0x536d();return a149_0x13e2=function(_0x13e245,_0x3cb242){_0x13e245=_0x13e245-0x91;let _0x1bbb4e=_0x536de7[_0x13e245];return _0x1bbb4e;},a149_0x13e2(_0x31d399,_0x405b9f);}(function(_0x313a67,_0x27373a){const _0x5d4672=a149_0x13e2,_0x542494=_0x313a67();while(!![]){try{const _0x24fc5a=-parseInt(_0x5d4672(0xa4))/0x1+parseInt(_0x5d4672(0xb1))/0x2+-parseInt(_0x5d4672(0xb9))/0x3*(parseInt(_0x5d4672(0xbb))/0x4)+-parseInt(_0x5d4672(0x97))/0x5*(parseInt(_0x5d4672(0xc2))/0x6)+-parseInt(_0x5d4672(0xa1))/0x7+-parseInt(_0x5d4672(0xca))/0x8*(-parseInt(_0x5d4672(0xcb))/0x9)+parseInt(_0x5d4672(0x96))/0xa;if(_0x24fc5a===_0x27373a)break;else _0x542494['push'](_0x542494['shift']());}catch(_0x2c9610){_0x542494['push'](_0x542494['shift']());}}}(a149_0x536d,0x291e1));const logger=require(a149_0x2df284(0xcd))['winstonLogger'],RequestUtils=require(a149_0x2df284(0xad));class TestOrderingServerHandler{constructor(_0x503c40){const _0x5b52fa=a149_0x2df284;this[_0x5b52fa(0x95)]=_0x503c40,this[_0x5b52fa(0xcc)]=0x0,this['defaultTimeout']=0x3c,this[_0x5b52fa(0xa9)]=0x5;}[a149_0x2df284(0xa5)](){const _0x3e06a7=a149_0x2df284;return this[_0x3e06a7(0xcc)];}[a149_0x2df284(0xd2)](_0x1262c0){const _0x53e550=a149_0x2df284,_0x56814c={};_0x56814c[_0x53e550(0xba)]=_0x53e550(0xcf);const _0xe5de62=_0x56814c;if(!_0x1262c0)return null;const _0x3fd7ef={};return _0x3fd7ef[_0x53e550(0xc0)]=_0x1262c0[_0x53e550(0xc0)]||this[_0x53e550(0xb4)],_0x3fd7ef[_0x53e550(0xa0)]=_0x1262c0['timeoutInterval']||this[_0x53e550(0xa9)],_0x3fd7ef[_0x53e550(0xb3)]=_0x1262c0[_0x53e550(0xb3)],_0x3fd7ef[_0x53e550(0x94)]=_0x1262c0[_0x53e550(0x94)],logger[_0x53e550(0x91)](_0x53e550(0xd0)+JSON['stringify'](_0x1262c0)),logger[_0x53e550(0x91)](_0x53e550(0xab)+_0x1262c0[_0x53e550(0xc0)]+_0x53e550(0xc7)+_0x1262c0[_0x53e550(0xa0)]+_0x53e550(0x9e)+_0x1262c0['resultUrl']+_0x53e550(0xb2)+_0x1262c0[_0x53e550(0x94)]),(!_0x1262c0['timeout']||!_0x1262c0[_0x53e550(0xa0)]||!_0x1262c0[_0x53e550(0x94)]||!_0x1262c0['resultUrl'])&&logger[_0x53e550(0x91)](_0xe5de62[_0x53e550(0xba)]),_0x3fd7ef;}async[a149_0x2df284(0xae)](_0x33f21f,_0x30cbdc){const _0x562ea8=a149_0x2df284,_0x515541={'LeaUE':function(_0x7c0b77,_0x5502a7){return _0x7c0b77(_0x5502a7);},'LkljC':function(_0x2381d8,_0x34b591){return _0x2381d8(_0x34b591);}};try{const _0x27fb09=_0x515541['LeaUE'](parseInt,process[_0x562ea8(0xbd)][_0x562ea8(0xc8)]||'0'),_0x19137a=_0x515541['LkljC'](parseInt,process[_0x562ea8(0xbd)][_0x562ea8(0xa8)]||'1'),_0x1900ed=process[_0x562ea8(0xbd)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x52370d={'nodeIndex':_0x27fb09,'totalNodes':_0x19137a,'projectName':this[_0x562ea8(0x95)][_0x562ea8(0xce)],'buildName':this['config'][_0x562ea8(0x9c)],'buildRunIdentifier':_0x1900ed,'orchestrationStrategy':_0x30cbdc,'hostInfo':this[_0x562ea8(0x98)](),'tests':_0x33f21f[_0x562ea8(0xd1)](_0x7b3e94=>({'filePath':_0x7b3e94}))},_0x5d5594=await RequestUtils['postSplitFiles'](_0x52370d);return logger[_0x562ea8(0x91)](_0x562ea8(0x9d)+JSON[_0x562ea8(0xb7)](_0x5d5594)),this[_0x562ea8(0xcc)]+=0x1,this['processSplitTestsResponse'](_0x5d5594[_0x562ea8(0xa6)]||{});}catch(_0x5419b4){return logger[_0x562ea8(0x91)](_0x562ea8(0xb5)+(_0x5419b4[_0x562ea8(0xb8)]||_0x5419b4['toString']())),null;}}async[a149_0x2df284(0xbe)](_0x347c3f){const _0x2d9859=a149_0x2df284,_0x2b8f51={};_0x2b8f51[_0x2d9859(0xc1)]=_0x2d9859(0x92),_0x2b8f51[_0x2d9859(0xc4)]=function(_0x273027,_0x88f175){return _0x273027*_0x88f175;},_0x2b8f51[_0x2d9859(0xc6)]=function(_0x27bed7,_0x23a0ef){return _0x27bed7&&_0x23a0ef;},_0x2b8f51[_0x2d9859(0x93)]=function(_0xb078c6,_0x2becf5){return _0xb078c6<_0x2becf5;},_0x2b8f51['Mmkfd']=function(_0x4b3ee7,_0x85ae55){return _0x4b3ee7-_0x85ae55;},_0x2b8f51[_0x2d9859(0xac)]=function(_0x5d78ca,_0xcb2604){return _0x5d78ca&&_0xcb2604;},_0x2b8f51[_0x2d9859(0x99)]=_0x2d9859(0xc3),_0x2b8f51[_0x2d9859(0xa7)]=function(_0x2d2b2d,_0x49448f){return _0x2d2b2d>_0x49448f;};const _0x189bfd=_0x2b8f51;if(!_0x347c3f)return null;try{logger['debug'](_0x189bfd[_0x2d9859(0xc1)]);const _0x82e3c3=_0x347c3f[_0x2d9859(0xa0)]||this[_0x2d9859(0xa9)],_0x26c3d3=_0x189bfd[_0x2d9859(0xc4)](_0x347c3f['timeout']||this['defaultTimeout'],0x3e8),_0x40fb8c=_0x347c3f['timeoutUrl'],_0x4cac59=_0x347c3f[_0x2d9859(0xb3)];if(_0x189bfd[_0x2d9859(0xc6)](!_0x4cac59,!_0x40fb8c))return null;let _0x547ee3=null;const _0x3933d6=Date[_0x2d9859(0xaf)]();while(_0x4cac59&&_0x189bfd[_0x2d9859(0x93)](_0x189bfd[_0x2d9859(0x9a)](Date[_0x2d9859(0xaf)](),_0x3933d6),_0x26c3d3)){logger[_0x2d9859(0x91)]('[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20'+_0x4cac59);const _0x1c64cc=await RequestUtils[_0x2d9859(0xa3)](_0x4cac59);logger[_0x2d9859(0x91)](_0x2d9859(0x9b)+JSON[_0x2d9859(0xb7)](_0x1c64cc)),this[_0x2d9859(0xcc)]+=0x1;if(_0x1c64cc&&_0x1c64cc[_0x2d9859(0xc5)]){_0x547ee3=_0x1c64cc[_0x2d9859(0xc5)];break;}await new Promise(_0x5f4e9a=>setTimeout(_0x5f4e9a,_0x82e3c3*0x3e8)),logger[_0x2d9859(0x91)](_0x2d9859(0xa2)+_0x82e3c3+'\x20seconds.');}if(_0x189bfd[_0x2d9859(0xac)](!_0x547ee3,_0x40fb8c)){logger[_0x2d9859(0x91)](_0x189bfd['prfqi']);const _0x2d3637=await RequestUtils[_0x2d9859(0xa3)](_0x40fb8c);_0x2d3637&&_0x2d3637[_0x2d9859(0xc5)]&&(_0x547ee3=_0x2d3637[_0x2d9859(0xc5)]);}if(_0x547ee3&&_0x189bfd['tEcQA'](_0x547ee3['length'],0x0))return _0x547ee3['map'](_0x106de8=>_0x106de8[_0x2d9859(0xbc)]);return null;}catch(_0x20c0c2){return logger[_0x2d9859(0x91)]('[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20'+(_0x20c0c2[_0x2d9859(0xb8)]||_0x20c0c2[_0x2d9859(0xaa)]())),null;}}[a149_0x2df284(0x98)](){const _0x5e9866=a149_0x2df284,_0x5ef463={'GBdSt':function(_0x3f494c,_0x42f1d2){return _0x3f494c(_0x42f1d2);}},_0x19f477=_0x5ef463[_0x5e9866(0xb0)](require,'os');try{return{'hostname':_0x19f477[_0x5e9866(0xb6)](),'platform':_0x19f477['platform'](),'release':_0x19f477[_0x5e9866(0xbf)](),'arch':_0x19f477[_0x5e9866(0x9f)](),'totalmem':_0x19f477['totalmem'](),'freemem':_0x19f477[_0x5e9866(0xc9)]()};}catch(_0x17a2f0){return{};}}}module['exports']=TestOrderingServerHandler;
1
+ const a150_0x3a9162=a150_0x3bd7;function a150_0x3bd7(_0xbdff50,_0x5dcd06){const _0x3fca32=a150_0x3fca();return a150_0x3bd7=function(_0x3bd79b,_0xd98db9){_0x3bd79b=_0x3bd79b-0x19c;let _0x1b3c08=_0x3fca32[_0x3bd79b];return _0x1b3c08;},a150_0x3bd7(_0xbdff50,_0x5dcd06);}(function(_0x3f0a8a,_0x7f27d2){const _0x250329=a150_0x3bd7,_0x481139=_0x3f0a8a();while(!![]){try{const _0x525baa=-parseInt(_0x250329(0x1d5))/0x1*(parseInt(_0x250329(0x1d2))/0x2)+-parseInt(_0x250329(0x1ad))/0x3+-parseInt(_0x250329(0x1cb))/0x4*(parseInt(_0x250329(0x1c9))/0x5)+-parseInt(_0x250329(0x1a1))/0x6+parseInt(_0x250329(0x1c4))/0x7*(parseInt(_0x250329(0x1ca))/0x8)+parseInt(_0x250329(0x1b5))/0x9+-parseInt(_0x250329(0x1bd))/0xa*(-parseInt(_0x250329(0x1c1))/0xb);if(_0x525baa===_0x7f27d2)break;else _0x481139['push'](_0x481139['shift']());}catch(_0xbb9ab2){_0x481139['push'](_0x481139['shift']());}}}(a150_0x3fca,0xac9f7));const logger=require(a150_0x3a9162(0x1d1))[a150_0x3a9162(0x1bb)],RequestUtils=require(a150_0x3a9162(0x19d));class TestOrderingServerHandler{constructor(_0x24fb36){const _0x3d2338=a150_0x3a9162;this['config']=_0x24fb36,this[_0x3d2338(0x1bf)]=0x0,this[_0x3d2338(0x1db)]=0x3c,this[_0x3d2338(0x1a5)]=0x5;}[a150_0x3a9162(0x1c8)](){const _0x1039c8=a150_0x3a9162;return this[_0x1039c8(0x1bf)];}['processSplitTestsResponse'](_0x84bcf9){const _0x4c84a0=a150_0x3a9162,_0xb39219={};_0xb39219[_0x4c84a0(0x1ac)]=_0x4c84a0(0x1af);const _0x43cefe=_0xb39219;if(!_0x84bcf9)return null;const _0x3c224c={};return _0x3c224c[_0x4c84a0(0x1a6)]=_0x84bcf9[_0x4c84a0(0x1a6)]||this['defaultTimeout'],_0x3c224c[_0x4c84a0(0x1a8)]=_0x84bcf9[_0x4c84a0(0x1a8)]||this[_0x4c84a0(0x1a5)],_0x3c224c[_0x4c84a0(0x1ab)]=_0x84bcf9[_0x4c84a0(0x1ab)],_0x3c224c['timeoutUrl']=_0x84bcf9[_0x4c84a0(0x1c0)],logger[_0x4c84a0(0x1dc)]('[processSplitTestsResponse]\x20Processing\x20response:\x20'+JSON[_0x4c84a0(0x1dd)](_0x84bcf9)),logger['debug'](_0x4c84a0(0x1d4)+_0x84bcf9[_0x4c84a0(0x1a6)]+',\x20timeoutInterval:\x20'+_0x84bcf9[_0x4c84a0(0x1a8)]+_0x4c84a0(0x1b7)+_0x84bcf9[_0x4c84a0(0x1ab)]+_0x4c84a0(0x1d9)+_0x84bcf9[_0x4c84a0(0x1c0)]),(!_0x84bcf9[_0x4c84a0(0x1a6)]||!_0x84bcf9[_0x4c84a0(0x1a8)]||!_0x84bcf9[_0x4c84a0(0x1c0)]||!_0x84bcf9['resultUrl'])&&logger[_0x4c84a0(0x1dc)](_0x43cefe[_0x4c84a0(0x1ac)]),_0x3c224c;}async['splitTests'](_0x14c0a3,_0x1f2c18){const _0x41c4c8=a150_0x3a9162,_0x4d5f39={'NcWVl':function(_0x33337c,_0x1bb7ca){return _0x33337c(_0x1bb7ca);}};try{const _0xb9d2ac=_0x4d5f39[_0x41c4c8(0x1ae)](parseInt,process[_0x41c4c8(0x1b2)][_0x41c4c8(0x1ba)]||'0'),_0x89e138=_0x4d5f39['NcWVl'](parseInt,process['env'][_0x41c4c8(0x1ce)]||'1'),_0x539515=process[_0x41c4c8(0x1b2)][_0x41c4c8(0x1c2)],_0x561919={'nodeIndex':_0xb9d2ac,'totalNodes':_0x89e138,'projectName':this['config'][_0x41c4c8(0x1a3)],'buildName':this['config'][_0x41c4c8(0x1a0)],'buildRunIdentifier':_0x539515,'orchestrationStrategy':_0x1f2c18,'hostInfo':this[_0x41c4c8(0x1b9)](),'tests':_0x14c0a3[_0x41c4c8(0x1b3)](_0x3a553c=>({'filePath':_0x3a553c}))},_0xc8e93=await RequestUtils[_0x41c4c8(0x1b8)](_0x561919);return logger['debug'](_0x41c4c8(0x1b0)+JSON[_0x41c4c8(0x1dd)](_0xc8e93)),this[_0x41c4c8(0x1bf)]+=0x1,this[_0x41c4c8(0x1c3)](_0xc8e93[_0x41c4c8(0x1cd)]||{});}catch(_0x301444){return logger['debug']('[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20'+(_0x301444[_0x41c4c8(0x1aa)]||_0x301444[_0x41c4c8(0x1a2)]())),null;}}async[a150_0x3a9162(0x1a9)](_0x20bd5e){const _0x291a68=a150_0x3a9162,_0x2eecf5={};_0x2eecf5[_0x291a68(0x1c7)]=_0x291a68(0x1be),_0x2eecf5['VOQUd']=function(_0x53d930,_0x234998){return _0x53d930*_0x234998;},_0x2eecf5['gIXPY']=function(_0x13ed6c,_0x5b6f55){return _0x13ed6c&&_0x5b6f55;},_0x2eecf5[_0x291a68(0x1da)]=function(_0x7b8fa8,_0x3f09be){return _0x7b8fa8<_0x3f09be;},_0x2eecf5[_0x291a68(0x1d7)]=function(_0x4c92ef,_0x158395){return _0x4c92ef-_0x158395;},_0x2eecf5['Etiaf']=_0x291a68(0x1de),_0x2eecf5[_0x291a68(0x1d8)]=function(_0x456b9c,_0x3b6e2a){return _0x456b9c>_0x3b6e2a;};const _0xce9577=_0x2eecf5;if(!_0x20bd5e)return null;try{logger[_0x291a68(0x1dc)](_0xce9577['ZmxVx']);const _0xdc2023=_0x20bd5e[_0x291a68(0x1a8)]||this[_0x291a68(0x1a5)],_0x1d8f91=_0xce9577[_0x291a68(0x19c)](_0x20bd5e['timeout']||this[_0x291a68(0x1db)],0x3e8),_0x2e52b7=_0x20bd5e[_0x291a68(0x1c0)],_0x47f281=_0x20bd5e[_0x291a68(0x1ab)];if(_0xce9577[_0x291a68(0x1cc)](!_0x47f281,!_0x2e52b7))return null;let _0x132efb=null;const _0x30aa18=Date[_0x291a68(0x19e)]();while(_0x47f281&&_0xce9577['wmAdz'](_0xce9577['izHuE'](Date[_0x291a68(0x19e)](),_0x30aa18),_0x1d8f91)){logger[_0x291a68(0x1dc)]('[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20'+_0x47f281);const _0x29d082=await RequestUtils['getSplitFiles'](_0x47f281);logger[_0x291a68(0x1dc)](_0x291a68(0x1c6)+JSON[_0x291a68(0x1dd)](_0x29d082)),this[_0x291a68(0x1bf)]+=0x1;if(_0x29d082&&_0x29d082[_0x291a68(0x1a7)]){_0x132efb=_0x29d082[_0x291a68(0x1a7)];break;}await new Promise(_0x2989d7=>setTimeout(_0x2989d7,_0xdc2023*0x3e8)),logger[_0x291a68(0x1dc)]('[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20'+_0xdc2023+_0x291a68(0x1b6));}if(_0xce9577[_0x291a68(0x1cc)](!_0x132efb,_0x2e52b7)){logger[_0x291a68(0x1dc)](_0xce9577[_0x291a68(0x1a4)]);const _0x20e0f2=await RequestUtils[_0x291a68(0x1d0)](_0x2e52b7);_0x20e0f2&&_0x20e0f2[_0x291a68(0x1a7)]&&(_0x132efb=_0x20e0f2[_0x291a68(0x1a7)]);}if(_0x132efb&&_0xce9577['vNUyn'](_0x132efb[_0x291a68(0x1c5)],0x0))return _0x132efb[_0x291a68(0x1b3)](_0x34e87b=>_0x34e87b[_0x291a68(0x1b4)]);return null;}catch(_0x314fc5){return logger[_0x291a68(0x1dc)](_0x291a68(0x1d3)+(_0x314fc5['stack']||_0x314fc5[_0x291a68(0x1a2)]())),null;}}[a150_0x3a9162(0x1b9)](){const _0x2f5d0f=a150_0x3a9162,_0x236cb8={'OhrBn':function(_0x4ad820,_0x1454e7){return _0x4ad820(_0x1454e7);}},_0x2e8f5f=_0x236cb8[_0x2f5d0f(0x1bc)](require,'os');try{return{'hostname':_0x2e8f5f['hostname'](),'platform':_0x2e8f5f['platform'](),'release':_0x2e8f5f[_0x2f5d0f(0x1d6)](),'arch':_0x2e8f5f['arch'](),'totalmem':_0x2e8f5f[_0x2f5d0f(0x19f)](),'freemem':_0x2e8f5f[_0x2f5d0f(0x1b1)]()};}catch(_0x37045a){return{};}}}module[a150_0x3a9162(0x1cf)]=TestOrderingServerHandler;function a150_0x3fca(){const _0x36675d=['izHuE','vNUyn',',\x20timeoutUrl:\x20','wmAdz','defaultTimeout','debug','stringify','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','VOQUd','./requestUtils','now','totalmem','buildName','2899986zSUtEQ','toString','projectName','Etiaf','defaultTimeoutInterval','timeout','tests','timeoutInterval','getOrderedTestFiles','stack','resultUrl','SYbNZ','2350743BdCkPs','NcWVl','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','freemem','env','map','filePath','11371329SLqsHc','\x20seconds.',',\x20resultUrl:\x20','postSplitFiles','_getHostInfo','BROWSERSTACK_NODE_INDEX','winstonLogger','OhrBn','2710cvziPp','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','splitTestsAPICallCount','timeoutUrl','50743UUwaZM','BROWSERSTACK_BUILD_RUN_IDENTIFIER','processSplitTestsResponse','7VlsJmY','length','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','ZmxVx','getSplitTestsAPICallCount','886360KnRzso','5106992FTcvvX','8LEhnwJ','gIXPY','body','BROWSERSTACK_TOTAL_NODE_COUNT','exports','getSplitFiles','../logger','235274ubOgzh','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','[processSplitTestsResponse]\x20timeout:\x20','7aobicm','release'];a150_0x3fca=function(){return _0x36675d;};return a150_0x3fca();}
@@ -1 +1 @@
1
- var a150_0x3fbe51=a150_0x5757;function a150_0x402d(){var _0x2c2e7e=['BROWSERSTACK_TESTHUB_UUID','10850iItvhl','OBSERVABILITY','451TBSgVu','HookStarted','84075JOgchH','accessibility','TestRunSkipped','INVALID_CREDENTIALS','32aVScLv','TestSkipped','TestRunStarted','DEPRECATED','ACCESSIBILITY','7ohgFJY','3888UoJuoj','322776OkHATA','HookRunFinished','LogCreated','exports','EVENT','ERROR_ACCESS_DENIED','TestRunFinished','HookRunStarted','BROWSERSTACK_TESTHUB_JWT','observability','ERROR_INVALID_CREDENTIALS','11569pFvxNL','16tRMBPc','TestFinished','235287MBRQVE','72300aspajB','60zlGYzh','HookFinished','3484OqRFay','ERROR','CBTSessionCreated'];a150_0x402d=function(){return _0x2c2e7e;};return a150_0x402d();}(function(_0x4b9627,_0x5427ba){var _0x449d24=a150_0x5757,_0x502bb1=_0x4b9627();while(!![]){try{var _0x3b24bf=-parseInt(_0x449d24(0xe7))/0x1*(parseInt(_0x449d24(0xe8))/0x2)+-parseInt(_0x449d24(0xd1))/0x3*(-parseInt(_0x449d24(0xd5))/0x4)+-parseInt(_0x449d24(0xeb))/0x5*(-parseInt(_0x449d24(0xec))/0x6)+-parseInt(_0x449d24(0xda))/0x7*(parseInt(_0x449d24(0xdc))/0x8)+parseInt(_0x449d24(0xea))/0x9+-parseInt(_0x449d24(0xf2))/0xa*(parseInt(_0x449d24(0xf4))/0xb)+parseInt(_0x449d24(0xdb))/0xc*(-parseInt(_0x449d24(0xee))/0xd);if(_0x3b24bf===_0x5427ba)break;else _0x502bb1['push'](_0x502bb1['shift']());}catch(_0x16e898){_0x502bb1['push'](_0x502bb1['shift']());}}}(a150_0x402d,0x1fea7));var a150_0x5edb92={};a150_0x5edb92[a150_0x3fbe51(0xd4)]=a150_0x3fbe51(0xe6),a150_0x5edb92[a150_0x3fbe51(0xd8)]='ERROR_SDK_DEPRECATED',a150_0x5edb92['ACCESS_DENIED']=a150_0x3fbe51(0xe1);var a150_0x36737d={};a150_0x36737d['TestStarted']=a150_0x3fbe51(0xd7),a150_0x36737d[a150_0x3fbe51(0xe9)]=a150_0x3fbe51(0xe2),a150_0x36737d[a150_0x3fbe51(0xd6)]=a150_0x3fbe51(0xd3),a150_0x36737d[a150_0x3fbe51(0xde)]=a150_0x3fbe51(0xde),a150_0x36737d[a150_0x3fbe51(0xf5)]=a150_0x3fbe51(0xe3),a150_0x36737d[a150_0x3fbe51(0xed)]=a150_0x3fbe51(0xdd),a150_0x36737d[a150_0x3fbe51(0xf0)]=a150_0x3fbe51(0xf0);var a150_0x2fb75c={};function a150_0x5757(_0x39596a,_0x5da51f){var _0x402d29=a150_0x402d();return a150_0x5757=function(_0x5757c1,_0x7ca139){_0x5757c1=_0x5757c1-0xd1;var _0x32363a=_0x402d29[_0x5757c1];return _0x32363a;},a150_0x5757(_0x39596a,_0x5da51f);}a150_0x2fb75c[a150_0x3fbe51(0xf1)]=a150_0x3fbe51(0xf1),a150_0x2fb75c[a150_0x3fbe51(0xe4)]=a150_0x3fbe51(0xe4);var a150_0x8b9fc6={};a150_0x8b9fc6['TESTHUB_BUILD_API']='api/v2/builds',a150_0x8b9fc6[a150_0x3fbe51(0xd9)]=a150_0x3fbe51(0xd2),a150_0x8b9fc6[a150_0x3fbe51(0xf3)]=a150_0x3fbe51(0xe5),a150_0x8b9fc6[a150_0x3fbe51(0xef)]=a150_0x5edb92,a150_0x8b9fc6[a150_0x3fbe51(0xe0)]=a150_0x36737d,a150_0x8b9fc6['ENV_VAR']=a150_0x2fb75c,module[a150_0x3fbe51(0xdf)]=a150_0x8b9fc6;
1
+ var a151_0x47309b=a151_0x5db1;function a151_0x536a(){var _0x4be5a1=['EVENT','BROWSERSTACK_TESTHUB_JWT','8832PiSDDs','3980870tTtvTP','714mvnIil','340270HyjKMc','TestStarted','TestSkipped','observability','ERROR_INVALID_CREDENTIALS','TestRunStarted','9bZFkuO','67566XuoAhe','306Qitmtd','accessibility','CBTSessionCreated','HookFinished','HookStarted','OBSERVABILITY','ERROR','INVALID_CREDENTIALS','api/v2/builds','187ZZgCTe','419219ZTdSlJ','TESTHUB_BUILD_API','5yESxnw','1948bQCZPo','TestRunFinished','HookRunFinished','LogCreated','52032rXpRSH'];a151_0x536a=function(){return _0x4be5a1;};return a151_0x536a();}(function(_0x5a8586,_0x56943e){var _0x585ee8=a151_0x5db1,_0x347447=_0x5a8586();while(!![]){try{var _0xadee3f=parseInt(_0x585ee8(0x136))/0x1+parseInt(_0x585ee8(0x143))/0x2+parseInt(_0x585ee8(0x14b))/0x3*(parseInt(_0x585ee8(0x139))/0x4)+parseInt(_0x585ee8(0x138))/0x5*(parseInt(_0x585ee8(0x14a))/0x6)+-parseInt(_0x585ee8(0x142))/0x7*(parseInt(_0x585ee8(0x140))/0x8)+parseInt(_0x585ee8(0x149))/0x9*(-parseInt(_0x585ee8(0x141))/0xa)+-parseInt(_0x585ee8(0x135))/0xb*(-parseInt(_0x585ee8(0x13d))/0xc);if(_0xadee3f===_0x56943e)break;else _0x347447['push'](_0x347447['shift']());}catch(_0x58a4f3){_0x347447['push'](_0x347447['shift']());}}}(a151_0x536a,0x3413a));var a151_0x3744eb={};a151_0x3744eb[a151_0x47309b(0x133)]=a151_0x47309b(0x147),a151_0x3744eb['DEPRECATED']='ERROR_SDK_DEPRECATED',a151_0x3744eb['ACCESS_DENIED']='ERROR_ACCESS_DENIED';var a151_0x4002c1={};function a151_0x5db1(_0x500fa1,_0x2e06ee){var _0x536ab8=a151_0x536a();return a151_0x5db1=function(_0x5db18e,_0x2fbe77){_0x5db18e=_0x5db18e-0x131;var _0x1792ac=_0x536ab8[_0x5db18e];return _0x1792ac;},a151_0x5db1(_0x500fa1,_0x2e06ee);}a151_0x4002c1[a151_0x47309b(0x144)]=a151_0x47309b(0x148),a151_0x4002c1['TestFinished']=a151_0x47309b(0x13a),a151_0x4002c1[a151_0x47309b(0x145)]='TestRunSkipped',a151_0x4002c1[a151_0x47309b(0x13c)]='LogCreated',a151_0x4002c1[a151_0x47309b(0x14f)]='HookRunStarted',a151_0x4002c1[a151_0x47309b(0x14e)]=a151_0x47309b(0x13b),a151_0x4002c1[a151_0x47309b(0x14d)]='CBTSessionCreated';var a151_0x43a55c={};a151_0x43a55c['BROWSERSTACK_TESTHUB_UUID']='BROWSERSTACK_TESTHUB_UUID',a151_0x43a55c[a151_0x47309b(0x13f)]=a151_0x47309b(0x13f);var a151_0xccd8b={};a151_0xccd8b[a151_0x47309b(0x137)]=a151_0x47309b(0x134),a151_0xccd8b['ACCESSIBILITY']=a151_0x47309b(0x14c),a151_0xccd8b[a151_0x47309b(0x131)]=a151_0x47309b(0x146),a151_0xccd8b[a151_0x47309b(0x132)]=a151_0x3744eb,a151_0xccd8b[a151_0x47309b(0x13e)]=a151_0x4002c1,a151_0xccd8b['ENV_VAR']=a151_0x43a55c,module['exports']=a151_0xccd8b;
@@ -1 +1 @@
1
- function a151_0x55a2(_0x1db201,_0x3cd8dc){const _0x4c2d17=a151_0x4c2d();return a151_0x55a2=function(_0x55a2c2,_0x16e661){_0x55a2c2=_0x55a2c2-0x113;let _0x4ab86a=_0x4c2d17[_0x55a2c2];return _0x4ab86a;},a151_0x55a2(_0x1db201,_0x3cd8dc);}const a151_0x3a2b08=a151_0x55a2;(function(_0x577e00,_0xd5263d){const _0x5e2209=a151_0x55a2,_0x10ebde=_0x577e00();while(!![]){try{const _0x1a6fb=parseInt(_0x5e2209(0x177))/0x1+-parseInt(_0x5e2209(0x17d))/0x2+parseInt(_0x5e2209(0x151))/0x3+parseInt(_0x5e2209(0x130))/0x4*(-parseInt(_0x5e2209(0x184))/0x5)+-parseInt(_0x5e2209(0x139))/0x6*(parseInt(_0x5e2209(0x1a1))/0x7)+-parseInt(_0x5e2209(0x156))/0x8+-parseInt(_0x5e2209(0x14d))/0x9*(-parseInt(_0x5e2209(0x126))/0xa);if(_0x1a6fb===_0xd5263d)break;else _0x10ebde['push'](_0x10ebde['shift']());}catch(_0x134ce3){_0x10ebde['push'](_0x10ebde['shift']());}}}(a151_0x4c2d,0x66f22));const bsSetupHelper=require(a151_0x3a2b08(0x146)),path=require(a151_0x3a2b08(0x173)),util=require(a151_0x3a2b08(0x133)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a151_0x3a2b08(0x136)),testhubUtils=require('./utils.js'),testHubConstants=require(a151_0x3a2b08(0x187)),constants=require(a151_0x3a2b08(0x14b)),RequestQueueHandler=require('../test-observability/requestQueueHandler.js'),logger=require(a151_0x3a2b08(0x162))['winstonLogger'],SessionHandler=require(a151_0x3a2b08(0x137)),PerformanceTester=require(a151_0x3a2b08(0x171)),{TESTHUB_EVENTS:PerformanceEvents}=require(a151_0x3a2b08(0x189)),TestDetails=require(a151_0x3a2b08(0x196)),{uploadTraceZip}=require(a151_0x3a2b08(0x194)),{isTurboScaleSession}=require('../helper.js'),BrowserstackCLI=require('../../bin/v2/browserstackCLI'),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x49ea4c=>{const _0x56626d=a151_0x3a2b08;OngoingEvents[_0x56626d(0x1a7)](_0x49ea4c);},awaitAllEvents=async()=>{const _0x5b9868=a151_0x3a2b08;return Promise[_0x5b9868(0x19f)](OngoingEvents);};function a151_0x4c2d(){const _0xc3b790=['../../bin/playwright/reporter/pwUtils.js','vHQlM','../../bin/playwright/reporter/test-details.js','wIZTC','status','message','TESTHUB_BUILD_API','ddlaJ','assign','ygzPO','qnBJw','allSettled','STOP','3933363pODIzj','PUT','OLcYD','FHeNC','getAccessibilityOptions','isAccessibilityEnabled','add','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','extractDataFromResponse','RwMfj','measureWrapper','job_id','finished_metadata','Percy\x20is\x20not\x20supported\x20for\x20','getUserName','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','data','response','launchBuild','error','accessibilityOptions','JRcjS','false','BROWSERSTACK_BUILD_RUN_IDENTIFIER','ENV_VAR','Cecuo','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','statusText','stop','186510rzHRkz','generateBuildUpstreamData','waitForBuildStatus','PERCY_SUPPORTED_FRAMEWORKS','resolve','qBJwV','debug','GYgBF','yGekx','mEWDh','1931852DRaeSh','env','includes','util','getProductMap','setAccessibilityVariables','../test-observability/utils','../test-observability/sessionHandler.js','ORwqT','6IUXfXI','settings','uploadPending','BROWSERSTACK_PRODUCT_MAP','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_RERUN','processTraceZips','framework','All\x20trace\x20zip\x20send\x20events\x20complete','stringify','BeKrK','ROKPt','cwd','../helper','QMBAt','password','kYZKb','checkAndSetupPercy','../../bin/utils/constants.js','forEach','603eRKtFH','POST','aJvdO','OBSERVABILITY','588162AdNZHh','KhCeL','/stop','BROWSERSTACK_ACCESSIBILITY','buildDescription','3948008CKoeES','\x20framework','wkhMl','BROWSERSTACK_TESTHUB_UUID','getTraceFilePaths','ACCESSIBILITY','getCiInfo','GUxXl','true','user_killed','central_scanner','setupPercy','../logger','isBrowserstackInfra','stopBuildUpstream\x20event\x20successful!','getCentralUser','info','buildHashedId','includeEncodedExtension','YyrVS','BROWSERSTACK_LINKED_BUILD_UUID','buildIdentifier','isUndefined','UNcJQ','buildStopSent','toISOString','getAccessKey','../performance/performance-tester.js','getHostInfo','path','getInstance','BROWSERSTACK_TEST_OBSERVABILITY','getProductMapForBuildStartCall','537050Mzzird','getFrameworkDetails','BROWSERSTACK_CENTRAL_SCANNER_JWT','accessibility','token','BS_TESTOPS_BUILD_COMPLETED','45364WHPRec','allowScreenshot','scannerProcessingTimeout','format','success','setTestObservabilityVariables','config','5YAzBta','gLcNE','vBlow','./constants.js','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','../performance/constants','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','hhzbo','logBuildError','buildName','username','jzFQI','XVeou','KSAiF','projectName','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER'];a151_0x4c2d=function(){return _0xc3b790;};return a151_0x4c2d();}class TestHubHandler{static [a151_0x3a2b08(0x16e)]=![];static async[a151_0x3a2b08(0x11b)](_0x2743d0,_0x37c039){const _0x3ae773=a151_0x3a2b08,_0x226064={'kYZKb':function(_0x57e571,_0x4ff534){return _0x57e571||_0x4ff534;},'QMBAt':function(_0x5655ff,_0x2a95e6){return _0x5655ff||_0x2a95e6;},'WAAnj':function(_0x14462b,_0x129271){return _0x14462b===_0x129271;},'vHNJF':function(_0x27dd66){return _0x27dd66();},'DJusY':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','KSAiF':_0x3ae773(0x11f),'GYgBF':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','qBJwV':function(_0x2afa21,_0x11a019,_0x5572a8,_0x25e437,_0xc9d701){return _0x2afa21(_0x11a019,_0x5572a8,_0x25e437,_0xc9d701);},'RwMfj':_0x3ae773(0x14e),'qnBJw':function(_0x1589d4,_0xc66122){return _0x1589d4===_0xc66122;},'BeKrK':'accessibility','vHQlM':_0x3ae773(0x15e),'XVeou':_0x3ae773(0x17f),'PxyCy':function(_0x5a3f6c,_0x4cfe3c){return _0x5a3f6c===_0x4cfe3c;}};await PerformanceTester[_0x3ae773(0x113)](PerformanceEvents['START'],async()=>{const _0x3ba12c=_0x3ae773,_0x21a92e=Object[_0x3ba12c(0x19c)]({},_0x37c039[_0x3ba12c(0x183)],{'root_dir_path':'','framework':_0x37c039[_0x3ba12c(0x140)]}),_0x4dd415=bsSetupHelper[_0x3ba12c(0x117)](_0x21a92e),_0x2099cb=bsSetupHelper[_0x3ba12c(0x170)](_0x21a92e),_0x2920d1=_0x226064[_0x3ba12c(0x149)](_0x4dd415,'')+':'+_0x226064[_0x3ba12c(0x147)](_0x2099cb,'');if(_0x226064['WAAnj'](_0x2920d1,':'))return _0x226064['vHNJF'](isTestObservabilitySession)&&(logger[_0x3ba12c(0x12c)](_0x226064['DJusY']),process['env'][_0x3ba12c(0x17c)]=_0x226064[_0x3ba12c(0x191)]),testhubUtils[_0x3ba12c(0x1a6)](_0x21a92e)&&logger['debug'](_0x226064[_0x3ba12c(0x12d)]),[null,null];try{const _0x1bbbad=await this[_0x3ba12c(0x127)](_0x21a92e,_0x2743d0),_0x1e627e=this['getConfig'](_0x4dd415,_0x2099cb),_0x59cac5=await _0x226064[_0x3ba12c(0x12b)](nodeRequest,_0x226064[_0x3ba12c(0x1aa)],testHubConstants[_0x3ba12c(0x19a)],_0x1bbbad,_0x1e627e),_0x1812e0=this['extractDataFromResponse'](_0x21a92e,_0x59cac5,_0x1e627e);await this[_0x3ba12c(0x14a)](_0x37c039,_0x2743d0);const _0x2e13f5=testhubUtils[_0x3ba12c(0x134)](_0x21a92e);process['env'][_0x3ba12c(0x13c)]=JSON['stringify'](_0x2e13f5);if(_0x226064[_0x3ba12c(0x19e)](testhubUtils['getAccessibilityValueFromYml'](_0x37c039['config']),null)){const _0x2bee99=_0x1812e0[_0x226064[_0x3ba12c(0x143)]];_0x2bee99&&_0x2bee99['authToken']&&_0x2bee99[_0x3ba12c(0x167)]&&(_0x37c039[_0x3ba12c(0x183)][_0x3ba12c(0x17a)]=!![],process[_0x3ba12c(0x131)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x226064[_0x3ba12c(0x195)]);}return _0x1812e0&&_0x1812e0[_0x226064[_0x3ba12c(0x143)]]&&_0x1812e0[_0x226064[_0x3ba12c(0x143)]][_0x226064[_0x3ba12c(0x190)]]&&(process[_0x3ba12c(0x131)][_0x3ba12c(0x123)]=_0x1812e0[_0x226064[_0x3ba12c(0x143)]][_0x226064[_0x3ba12c(0x190)]]),_0x1812e0;}catch(_0x8ceddd){_0x226064['PxyCy'](_0x8ceddd[_0x3ba12c(0x181)],![])&&testhubUtils[_0x3ba12c(0x18c)](_0x8ceddd);throw _0x8ceddd;}})();}static async[a151_0x3a2b08(0x13f)](){const _0x1a4ae5=a151_0x3a2b08,_0x154b3a={'ddlaJ':function(_0x17624c,_0x549fca,_0x57fb80){return _0x17624c(_0x549fca,_0x57fb80);},'Cecuo':function(_0x3dc201,_0x1cb8eb){return _0x3dc201(_0x1cb8eb);},'iJnam':function(_0x3eb1aa){return _0x3eb1aa();},'hdDjS':_0x1a4ae5(0x141)};if(processedTraceZips)return;const _0x130019=TestDetails[_0x1a4ae5(0x15a)]();_0x130019[_0x1a4ae5(0x14c)](({testUId:_0x5d0b18,filePath:_0x39227b})=>{const _0x48d904=_0x1a4ae5;var _0x33c3d4=_0x154b3a[_0x48d904(0x19b)](uploadTraceZip,_0x39227b,_0x5d0b18);_0x154b3a[_0x48d904(0x122)](addEvent,_0x33c3d4);});try{await _0x154b3a['iJnam'](awaitAllEvents),logger['debug'](_0x154b3a['hdDjS']),processedTraceZips=!![];}catch(_0x1a43b3){logger[_0x1a4ae5(0x11c)]('Error\x20while\x20waiting\x20for\x20events:\x20'+util[_0x1a4ae5(0x180)](_0x1a43b3));}}static async[a151_0x3a2b08(0x14a)](_0x47b512,_0x2d9a64){const _0xee864f=a151_0x3a2b08;if(constants[_0xee864f(0x129)][_0xee864f(0x132)](_0x2d9a64)){await _0x47b512[_0xee864f(0x161)]();return;}_0x47b512[_0xee864f(0x183)]['percy']&&logger['debug'](_0xee864f(0x116)+_0x2d9a64+_0xee864f(0x157));}static[a151_0x3a2b08(0x1a5)](_0x4ea5b7){const _0x40a11b=a151_0x3a2b08,_0x1a70bf={'GUxXl':function(_0x36f87f,_0x34fb3c){return _0x36f87f(_0x34fb3c);},'ORwqT':_0x40a11b(0x15e)};let _0xc04a07;if(_0x4ea5b7[_0x40a11b(0x11d)]){const _0x5b38a8={};_0x5b38a8[_0x40a11b(0x13a)]=_0x4ea5b7['accessibilityOptions'],_0xc04a07=_0x5b38a8;}else{const _0x60b8db={};_0x60b8db[_0x40a11b(0x13a)]={},_0xc04a07=_0x60b8db;}if((!bsSetupHelper['isBrowserstackInfra']()||_0x1a70bf[_0x40a11b(0x15d)](isTurboScaleSession,_0x4ea5b7))&&testhubUtils[_0x40a11b(0x1a6)](_0x4ea5b7)){const _0x1741c6={};_0x1741c6[_0x40a11b(0x168)]=_0x1a70bf[_0x40a11b(0x138)],Object[_0x40a11b(0x19c)](_0xc04a07[_0x40a11b(0x13a)],_0x1741c6);}return _0xc04a07;}static['getConfig'](_0x226ecb,_0x33c2d1){const _0x212779=a151_0x3a2b08,_0x3cb66e={'GzJmt':function(_0x2d4740,_0x4374ac){return _0x2d4740(_0x4374ac);}},_0x1d48d6={};return _0x1d48d6[_0x212779(0x18e)]=_0x226ecb,_0x1d48d6[_0x212779(0x148)]=_0x33c2d1,{'auth':_0x1d48d6,'headers':_0x3cb66e['GzJmt'](getDefaultHeaders,![])};}static async[a151_0x3a2b08(0x127)](_0x106016,_0x5e753c){const _0x3b653c=a151_0x3a2b08,_0x13a2ed={'rfwEV':_0x3b653c(0x18a),'jzFQI':function(_0x4cbd68,_0x40664c){return _0x4cbd68(_0x40664c);}};logger[_0x3b653c(0x12c)](_0x13a2ed['rfwEV']);const _0x2bdfce={'project_name':_0x106016[_0x3b653c(0x192)]||'','name':_0x106016[_0x3b653c(0x18d)]||path['basename'](path[_0x3b653c(0x12a)](process[_0x3b653c(0x145)]())),'build_identifier':_0x106016[_0x3b653c(0x16b)],'description':_0x106016[_0x3b653c(0x155)]||'','started_at':new Date()[_0x3b653c(0x16f)](),'tags':_0x13a2ed[_0x3b653c(0x18f)](getCustomTags,_0x106016),'host_info':bsSetupHelper[_0x3b653c(0x172)](),'ci_info':bsSetupHelper[_0x3b653c(0x15c)](),'build_run_identifier':process['env'][_0x3b653c(0x120)],'failed_tests_rerun':process[_0x3b653c(0x131)][_0x3b653c(0x13e)]||![],'linked_build_uuid':process[_0x3b653c(0x131)][_0x3b653c(0x16a)]||'','version_control':await bsSetupHelper['getGitMetaData'](),'accessibility':this[_0x3b653c(0x1a5)](_0x106016),'framework_details':testhubUtils[_0x3b653c(0x178)](_0x106016,_0x5e753c),'product_map':testhubUtils[_0x3b653c(0x176)](_0x106016),'browserstackAutomation':bsSetupHelper[_0x3b653c(0x163)](),'grouping_identifier':process['env'][_0x3b653c(0x193)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x106016)};if(bsSetupHelper['getCentralUser']()[_0x3b653c(0x160)]||bsSetupHelper[_0x3b653c(0x165)]()['lcnc']){const _0x2d73a1={};_0x2d73a1[_0x3b653c(0x114)]=process[_0x3b653c(0x131)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0x2d73a1[_0x3b653c(0x17b)]=process[_0x3b653c(0x131)][_0x3b653c(0x179)],_0x2bdfce['central_scanner']=_0x2d73a1;}return _0x2bdfce;}static[a151_0x3a2b08(0x1a9)](_0x1f0f43,_0x35684e,_0x417310){const _0x4fa6b9=a151_0x3a2b08,_0x410d42={'vBlow':function(_0x138ea7){return _0x138ea7();},'JRcjS':function(_0x1525c2,_0x1e5582){return _0x1525c2&&_0x1e5582;},'hhzbo':'true','mEWDh':'false','wIZTC':function(_0x5333a8,_0x5b5410){return _0x5333a8&&_0x5b5410;}},_0x5d83e5={};if(_0x410d42[_0x4fa6b9(0x186)](isTestObservabilitySession)){const [_0x3459f6,_0x14b6d9,_0x5a2aa1]=testhubUtils[_0x4fa6b9(0x182)](_0x35684e[_0x4fa6b9(0x119)],_0x417310['auth']);if(_0x410d42[_0x4fa6b9(0x11e)](_0x3459f6,_0x14b6d9)){const _0x2964b4={};_0x2964b4['jwt']=_0x3459f6,_0x2964b4[_0x4fa6b9(0x167)]=_0x14b6d9,_0x2964b4[_0x4fa6b9(0x17e)]=_0x5a2aa1,_0x5d83e5[testHubConstants[_0x4fa6b9(0x150)]]=_0x2964b4,process[_0x4fa6b9(0x131)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x410d42[_0x4fa6b9(0x18b)];}else _0x5d83e5[testHubConstants[_0x4fa6b9(0x150)]]={},process[_0x4fa6b9(0x131)][_0x4fa6b9(0x175)]=_0x410d42[_0x4fa6b9(0x12f)];}else process[_0x4fa6b9(0x131)][_0x4fa6b9(0x175)]=_0x410d42['mEWDh'];const [_0x2835fe,_0x52ff80,_0x5679ce]=testhubUtils[_0x4fa6b9(0x135)](_0x35684e['data']);if(_0x410d42[_0x4fa6b9(0x197)](_0x2835fe,_0x52ff80)){const _0x396d10={};_0x396d10['authToken']=_0x2835fe,_0x396d10[_0x4fa6b9(0x167)]=_0x52ff80,_0x396d10['scannerProcessingTimeout']=_0x5679ce,_0x5d83e5[testHubConstants[_0x4fa6b9(0x15b)]]=_0x396d10,process[_0x4fa6b9(0x131)][_0x4fa6b9(0x154)]=_0x410d42[_0x4fa6b9(0x18b)];}else _0x5d83e5[testHubConstants[_0x4fa6b9(0x15b)]]={},process[_0x4fa6b9(0x131)][_0x4fa6b9(0x154)]=_0x410d42['mEWDh'];return testhubUtils['setTestHubCommonMetaInfo'](_0x35684e[_0x4fa6b9(0x119)]),logger[_0x4fa6b9(0x166)]('Testhub\x20started\x20with\x20id:\x20'+process[_0x4fa6b9(0x131)][_0x4fa6b9(0x159)]),_0x5d83e5;}static async[a151_0x3a2b08(0x125)](_0x484339){const _0x4ede87=a151_0x3a2b08,_0x5b1b59={'KhCeL':function(_0x18fab3,_0x4a719c){return _0x18fab3===_0x4a719c;},'yGekx':'false','UNcJQ':'null','hrNmX':function(_0x4a8b7d,_0x3c91b4){return _0x4a8b7d===_0x3c91b4;},'wkhMl':_0x4ede87(0x1a8),'gLcNE':_0x4ede87(0x11c),'OLcYD':_0x4ede87(0x118),'aJvdO':_0x4ede87(0x115),'ygzPO':_0x4ede87(0x15f),'YyrVS':function(_0x2f5962){return _0x2f5962();},'RvoBn':function(_0x3a5191,_0x239436,_0x695105,_0x3d3d03,_0x4c30c3,_0x209274){return _0x3a5191(_0x239436,_0x695105,_0x3d3d03,_0x4c30c3,_0x209274);},'ROKPt':_0x4ede87(0x1a2),'FHeNC':_0x4ede87(0x164),'LmSZA':_0x4ede87(0x181)};await PerformanceTester[_0x4ede87(0x113)](PerformanceEvents[_0x4ede87(0x1a0)],async()=>{const _0x52a145=_0x4ede87;if(_0x5b1b59['KhCeL'](process['env'][_0x52a145(0x17c)],_0x5b1b59[_0x52a145(0x12e)])||TestHubHandler[_0x52a145(0x16e)]||bsSetupHelper[_0x52a145(0x16c)](process[_0x52a145(0x131)][testHubConstants['ENV_VAR'][_0x52a145(0x13d)]]))return;TestHubHandler['buildStopSent']=!![];if(BrowserstackCLI[_0x52a145(0x174)]()['isRunning']())return;await this['processTraceZips'](),await RequestQueueHandler[_0x52a145(0x174)]()[_0x52a145(0x13b)](),await SessionHandler[_0x52a145(0x128)]();if(_0x5b1b59[_0x52a145(0x152)](process[_0x52a145(0x131)][testHubConstants[_0x52a145(0x121)][_0x52a145(0x13d)]],_0x5b1b59[_0x52a145(0x16d)])||_0x5b1b59['hrNmX'](process[_0x52a145(0x131)][testHubConstants['ENV_VAR'][_0x52a145(0x159)]],_0x5b1b59['UNcJQ'])){logger[_0x52a145(0x12c)](_0x5b1b59[_0x52a145(0x158)]);const _0x253fd4={};return _0x253fd4[_0x52a145(0x198)]=_0x5b1b59['gLcNE'],_0x253fd4[_0x52a145(0x199)]=_0x5b1b59[_0x52a145(0x1a3)],_0x253fd4;}const _0x2bb3dc={'finished_at':new Date()[_0x52a145(0x16f)](),'finished_metadata':[]};!!_0x484339&&_0x2bb3dc[_0x5b1b59[_0x52a145(0x14f)]]['push']({'reason':_0x5b1b59[_0x52a145(0x19d)],'signal':_0x484339,'failure_data':''});const _0x104ed6={'headers':_0x5b1b59[_0x52a145(0x169)](getDefaultHeaders)};try{const _0x559b3b=await _0x5b1b59['RvoBn'](nodeRequest,_0x5b1b59[_0x52a145(0x144)],'api/v1/builds/'+process['env'][testHubConstants[_0x52a145(0x121)][_0x52a145(0x159)]]+_0x52a145(0x153),_0x2bb3dc,_0x104ed6,![]);if(_0x559b3b[_0x52a145(0x119)]&&_0x559b3b[_0x52a145(0x119)][_0x52a145(0x11c)]){const _0x277393={};_0x277393[_0x52a145(0x199)]=_0x559b3b[_0x52a145(0x119)][_0x52a145(0x11c)];throw _0x277393;}else{logger[_0x52a145(0x12c)](_0x5b1b59[_0x52a145(0x1a4)]);const _0x1b8515={};return _0x1b8515[_0x52a145(0x198)]=_0x5b1b59['LmSZA'],_0x1b8515[_0x52a145(0x199)]='',_0x1b8515;}}catch(_0x1eac84){_0x1eac84[_0x52a145(0x11a)]?logger[_0x52a145(0x12c)](_0x52a145(0x188)+_0x1eac84['response'][_0x52a145(0x198)]+'\x20'+_0x1eac84[_0x52a145(0x11a)][_0x52a145(0x124)]+'\x20'+JSON[_0x52a145(0x142)](_0x1eac84[_0x52a145(0x11a)][_0x52a145(0x119)])):logger[_0x52a145(0x12c)](_0x52a145(0x188)+(_0x1eac84[_0x52a145(0x199)]||_0x1eac84));const _0x49c6ba={};return _0x49c6ba[_0x52a145(0x198)]=_0x5b1b59[_0x52a145(0x185)],_0x49c6ba['message']=_0x1eac84[_0x52a145(0x199)]||_0x1eac84[_0x52a145(0x11a)]?_0x1eac84[_0x52a145(0x11a)][_0x52a145(0x198)]+':'+_0x1eac84[_0x52a145(0x11a)][_0x52a145(0x124)]:_0x1eac84,_0x49c6ba;}})();}}module['exports']=TestHubHandler;
1
+ const a152_0x1c1167=a152_0xea98;(function(_0x31adf9,_0x588f56){const _0x307fcf=a152_0xea98,_0x269a90=_0x31adf9();while(!![]){try{const _0x2a21e7=parseInt(_0x307fcf(0x250))/0x1*(-parseInt(_0x307fcf(0x215))/0x2)+-parseInt(_0x307fcf(0x1e1))/0x3+-parseInt(_0x307fcf(0x268))/0x4+parseInt(_0x307fcf(0x25b))/0x5*(-parseInt(_0x307fcf(0x24d))/0x6)+-parseInt(_0x307fcf(0x25a))/0x7+-parseInt(_0x307fcf(0x23d))/0x8+parseInt(_0x307fcf(0x23b))/0x9*(parseInt(_0x307fcf(0x256))/0xa);if(_0x2a21e7===_0x588f56)break;else _0x269a90['push'](_0x269a90['shift']());}catch(_0xe655ac){_0x269a90['push'](_0x269a90['shift']());}}}(a152_0x4e9f,0x636b1));const bsSetupHelper=require('../helper'),path=require('path'),util=require(a152_0x1c1167(0x25e)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a152_0x1c1167(0x200)),testhubUtils=require(a152_0x1c1167(0x26d)),testHubConstants=require(a152_0x1c1167(0x225)),constants=require(a152_0x1c1167(0x21a)),RequestQueueHandler=require(a152_0x1c1167(0x266)),logger=require('../logger')[a152_0x1c1167(0x239)],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require(a152_0x1c1167(0x1f9)),{TESTHUB_EVENTS:PerformanceEvents}=require(a152_0x1c1167(0x21c)),TestDetails=require(a152_0x1c1167(0x222)),{uploadTraceZip}=require(a152_0x1c1167(0x20a)),{isTurboScaleSession}=require(a152_0x1c1167(0x248)),BrowserstackCLI=require(a152_0x1c1167(0x1d8)),OngoingEvents=new Set();let processedTraceZips=![];function a152_0xea98(_0x430df0,_0x4eca65){const _0x4e9f13=a152_0x4e9f();return a152_0xea98=function(_0xea988c,_0x362c10){_0xea988c=_0xea988c-0x1d5;let _0x213bb2=_0x4e9f13[_0xea988c];return _0x213bb2;},a152_0xea98(_0x430df0,_0x4eca65);}const addEvent=_0x5139a5=>{const _0x1a5223=a152_0x1c1167;OngoingEvents[_0x1a5223(0x219)](_0x5139a5);},awaitAllEvents=async()=>{const _0x1fe433=a152_0x1c1167;return Promise[_0x1fe433(0x1ef)](OngoingEvents);};class TestHubHandler{static [a152_0x1c1167(0x1f6)]=![];static async[a152_0x1c1167(0x1ea)](_0x2d8ad0,_0x2ad49d){const _0x3d10ff=a152_0x1c1167,_0x5379ff={'bGOCh':function(_0x4d8937,_0x535b1b){return _0x4d8937||_0x535b1b;},'tVYvp':function(_0x4e332f,_0x4baf9d){return _0x4e332f===_0x4baf9d;},'JmDeN':function(_0xf4205a){return _0xf4205a();},'ROCAN':_0x3d10ff(0x264),'nDcBb':'false','fADHH':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','bkqIh':function(_0x547526,_0x3153f8,_0x32d517,_0xc6f3e5,_0x351060){return _0x547526(_0x3153f8,_0x32d517,_0xc6f3e5,_0x351060);},'iydiB':'POST','FAAoS':_0x3d10ff(0x1e5),'hvCrY':_0x3d10ff(0x1e2),'uecKV':_0x3d10ff(0x254),'mhpBo':function(_0x4362c6,_0x3d558f){return _0x4362c6===_0x3d558f;}};await PerformanceTester[_0x3d10ff(0x22a)](PerformanceEvents[_0x3d10ff(0x1fe)],async()=>{const _0x30bd3a=_0x3d10ff,_0x49fa59=Object[_0x30bd3a(0x238)]({},_0x2ad49d[_0x30bd3a(0x241)],{'root_dir_path':'','framework':_0x2ad49d[_0x30bd3a(0x23e)]}),_0x3723cf=bsSetupHelper['getUserName'](_0x49fa59),_0xa8c01=bsSetupHelper[_0x30bd3a(0x233)](_0x49fa59),_0x3b310f=_0x5379ff['bGOCh'](_0x3723cf,'')+':'+_0x5379ff['bGOCh'](_0xa8c01,'');if(_0x5379ff['tVYvp'](_0x3b310f,':'))return _0x5379ff[_0x30bd3a(0x227)](isTestObservabilitySession)&&(logger[_0x30bd3a(0x203)](_0x5379ff['ROCAN']),process[_0x30bd3a(0x1fb)][_0x30bd3a(0x1e6)]=_0x5379ff[_0x30bd3a(0x21f)]),testhubUtils[_0x30bd3a(0x20c)](_0x49fa59)&&logger['debug'](_0x5379ff[_0x30bd3a(0x223)]),[null,null];try{const _0x1299d0=await this['generateBuildUpstreamData'](_0x49fa59,_0x2d8ad0),_0x229790=this[_0x30bd3a(0x1d7)](_0x3723cf,_0xa8c01),_0x1695c4=await _0x5379ff[_0x30bd3a(0x265)](nodeRequest,_0x5379ff['iydiB'],testHubConstants[_0x30bd3a(0x1fd)],_0x1299d0,_0x229790),_0x5d15af=this[_0x30bd3a(0x22b)](_0x49fa59,_0x1695c4,_0x229790);await this[_0x30bd3a(0x231)](_0x2ad49d,_0x2d8ad0);const _0x3f9cbb=testhubUtils[_0x30bd3a(0x25c)](_0x49fa59);process['env'][_0x30bd3a(0x271)]=JSON['stringify'](_0x3f9cbb);if(_0x5379ff[_0x30bd3a(0x1f1)](testhubUtils[_0x30bd3a(0x269)](_0x2ad49d[_0x30bd3a(0x241)]),null)){const _0x566e3b=_0x5d15af[_0x5379ff[_0x30bd3a(0x253)]];_0x566e3b&&_0x566e3b[_0x30bd3a(0x24f)]&&_0x566e3b[_0x30bd3a(0x229)]&&(_0x2ad49d[_0x30bd3a(0x241)][_0x30bd3a(0x1e5)]=!![],process[_0x30bd3a(0x1fb)][_0x30bd3a(0x262)]=_0x5379ff[_0x30bd3a(0x1df)]);}return _0x5d15af&&_0x5d15af[_0x5379ff['FAAoS']]&&_0x5d15af[_0x5379ff['FAAoS']][_0x5379ff[_0x30bd3a(0x258)]]&&(process['env'][_0x30bd3a(0x211)]=_0x5d15af[_0x5379ff[_0x30bd3a(0x253)]][_0x5379ff[_0x30bd3a(0x258)]]),_0x5d15af;}catch(_0xaec02f){_0x5379ff[_0x30bd3a(0x244)](_0xaec02f[_0x30bd3a(0x209)],![])&&testhubUtils[_0x30bd3a(0x24e)](_0xaec02f);throw _0xaec02f;}})();}static async[a152_0x1c1167(0x213)](){const _0x5a6913=a152_0x1c1167,_0x5ce027={'UFNNl':function(_0x1147f5,_0x5ecc2f,_0x485848){return _0x1147f5(_0x5ecc2f,_0x485848);},'xiELt':function(_0x13b651,_0x17cf32){return _0x13b651(_0x17cf32);},'QXAxB':function(_0x2fe244){return _0x2fe244();},'exops':_0x5a6913(0x204)};if(processedTraceZips)return;const _0x1fbc65=TestDetails[_0x5a6913(0x201)]();_0x1fbc65['forEach'](({testUId:_0x5a1f15,filePath:_0x3623cd})=>{const _0x131c5f=_0x5a6913;var _0x18014c=_0x5ce027[_0x131c5f(0x22f)](uploadTraceZip,_0x3623cd,_0x5a1f15);_0x5ce027[_0x131c5f(0x26b)](addEvent,_0x18014c);});try{await _0x5ce027[_0x5a6913(0x217)](awaitAllEvents),logger[_0x5a6913(0x203)](_0x5ce027[_0x5a6913(0x259)]),processedTraceZips=!![];}catch(_0x2d3272){logger[_0x5a6913(0x210)](_0x5a6913(0x257)+util[_0x5a6913(0x23a)](_0x2d3272));}}static async['checkAndSetupPercy'](_0x3030d9,_0x234cfd){const _0x1b4580=a152_0x1c1167;if(constants[_0x1b4580(0x1e3)][_0x1b4580(0x242)](_0x234cfd)){await _0x3030d9[_0x1b4580(0x255)]();return;}_0x3030d9[_0x1b4580(0x241)]['percy']&&logger[_0x1b4580(0x203)]('Percy\x20is\x20not\x20supported\x20for\x20'+_0x234cfd+_0x1b4580(0x220));}static[a152_0x1c1167(0x206)](_0x46861d){const _0x3ef3b9=a152_0x1c1167,_0x19ef1f={'xtreH':function(_0x5a1170,_0x125509){return _0x5a1170(_0x125509);},'JxPgj':_0x3ef3b9(0x1e2)};let _0x49b893;if(_0x46861d['accessibilityOptions']){const _0x1870c3={};_0x1870c3['settings']=_0x46861d['accessibilityOptions'],_0x49b893=_0x1870c3;}else{const _0xc332a1={};_0xc332a1[_0x3ef3b9(0x1f8)]={},_0x49b893=_0xc332a1;}if((!bsSetupHelper[_0x3ef3b9(0x1ed)]()||_0x19ef1f[_0x3ef3b9(0x1ee)](isTurboScaleSession,_0x46861d))&&testhubUtils[_0x3ef3b9(0x20c)](_0x46861d)){const _0x5335c6={};_0x5335c6[_0x3ef3b9(0x24b)]=_0x19ef1f['JxPgj'],Object[_0x3ef3b9(0x238)](_0x49b893['settings'],_0x5335c6);}return _0x49b893;}static[a152_0x1c1167(0x1d7)](_0xff7bc0,_0x191346){const _0x3b5a5a=a152_0x1c1167,_0xb33649={'Iicju':function(_0x5ce013,_0x3dd627){return _0x5ce013(_0x3dd627);}},_0x24fee8={};return _0x24fee8[_0x3b5a5a(0x23c)]=_0xff7bc0,_0x24fee8['password']=_0x191346,{'auth':_0x24fee8,'headers':_0xb33649['Iicju'](getDefaultHeaders,![])};}static async[a152_0x1c1167(0x1f3)](_0x408654,_0x1d48fa){const _0x35b87b=a152_0x1c1167,_0x55c8bb={'VCLor':_0x35b87b(0x21b),'ospkG':function(_0x29f64b,_0x590526){return _0x29f64b(_0x590526);}};logger['debug'](_0x55c8bb[_0x35b87b(0x1f0)]);const _0x2d316c={'project_name':_0x408654['projectName']||'','name':_0x408654[_0x35b87b(0x234)]||path[_0x35b87b(0x22c)](path[_0x35b87b(0x263)](process[_0x35b87b(0x1d5)]())),'build_identifier':_0x408654[_0x35b87b(0x221)],'description':_0x408654[_0x35b87b(0x249)]||'','started_at':new Date()[_0x35b87b(0x1da)](),'tags':_0x55c8bb[_0x35b87b(0x251)](getCustomTags,_0x408654),'host_info':bsSetupHelper[_0x35b87b(0x224)](),'ci_info':bsSetupHelper[_0x35b87b(0x202)](),'build_run_identifier':process[_0x35b87b(0x1fb)][_0x35b87b(0x1dc)],'failed_tests_rerun':process[_0x35b87b(0x1fb)][_0x35b87b(0x207)]||![],'linked_build_uuid':process['env']['BROWSERSTACK_LINKED_BUILD_UUID']||'','version_control':await bsSetupHelper[_0x35b87b(0x22e)](),'accessibility':this[_0x35b87b(0x206)](_0x408654),'framework_details':testhubUtils[_0x35b87b(0x260)](_0x408654,_0x1d48fa),'product_map':testhubUtils[_0x35b87b(0x20f)](_0x408654),'browserstackAutomation':bsSetupHelper[_0x35b87b(0x1ed)](),'grouping_identifier':process[_0x35b87b(0x1fb)][_0x35b87b(0x26a)],'test_orchestration':testhubUtils[_0x35b87b(0x21e)](_0x408654)};if(bsSetupHelper[_0x35b87b(0x1f4)]()['central_scanner']||bsSetupHelper[_0x35b87b(0x1f4)]()[_0x35b87b(0x1e0)]){const _0x4bb914={};_0x4bb914['job_id']=process[_0x35b87b(0x1fb)][_0x35b87b(0x1ec)],_0x4bb914['token']=process['env'][_0x35b87b(0x245)],_0x2d316c[_0x35b87b(0x228)]=_0x4bb914;}return _0x2d316c;}static['extractDataFromResponse'](_0x4f52a2,_0x3060f7,_0x2ab6d0){const _0x48b7d2=a152_0x1c1167,_0x1ee6a7={'wJyHl':function(_0x228a30){return _0x228a30();},'FlCxx':function(_0x4fc187,_0x5247a2){return _0x4fc187&&_0x5247a2;},'GkbIC':'true','rPSPf':_0x48b7d2(0x267),'iWbeD':function(_0x18d4df,_0x3bc2be){return _0x18d4df&&_0x3bc2be;}},_0x38c530={};if(_0x1ee6a7[_0x48b7d2(0x235)](isTestObservabilitySession)){const [_0x214b83,_0x5af18a,_0x30ea25]=testhubUtils['setTestObservabilityVariables'](_0x3060f7[_0x48b7d2(0x25f)],_0x2ab6d0[_0x48b7d2(0x1f5)]);if(_0x1ee6a7[_0x48b7d2(0x1dd)](_0x214b83,_0x5af18a)){const _0x2f6acf={};_0x2f6acf[_0x48b7d2(0x1f2)]=_0x214b83,_0x2f6acf[_0x48b7d2(0x229)]=_0x5af18a,_0x2f6acf[_0x48b7d2(0x1de)]=_0x30ea25,_0x38c530[testHubConstants[_0x48b7d2(0x205)]]=_0x2f6acf,process[_0x48b7d2(0x1fb)][_0x48b7d2(0x26c)]=_0x1ee6a7[_0x48b7d2(0x1fa)];}else _0x38c530[testHubConstants['OBSERVABILITY']]={},process[_0x48b7d2(0x1fb)][_0x48b7d2(0x26c)]=_0x1ee6a7[_0x48b7d2(0x1e7)];}else process[_0x48b7d2(0x1fb)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x1ee6a7[_0x48b7d2(0x1e7)];const [_0x2c864a,_0x58a731,_0xf59a0b]=testhubUtils[_0x48b7d2(0x214)](_0x3060f7['data']);if(_0x1ee6a7[_0x48b7d2(0x261)](_0x2c864a,_0x58a731)){const _0x4c563c={};_0x4c563c[_0x48b7d2(0x24f)]=_0x2c864a,_0x4c563c[_0x48b7d2(0x229)]=_0x58a731,_0x4c563c[_0x48b7d2(0x254)]=_0xf59a0b,_0x38c530[testHubConstants[_0x48b7d2(0x20d)]]=_0x4c563c,process[_0x48b7d2(0x1fb)][_0x48b7d2(0x243)]=_0x1ee6a7[_0x48b7d2(0x1fa)];}else _0x38c530[testHubConstants[_0x48b7d2(0x20d)]]={},process['env'][_0x48b7d2(0x243)]=_0x1ee6a7[_0x48b7d2(0x1e7)];return testhubUtils[_0x48b7d2(0x1d6)](_0x3060f7['data']),logger[_0x48b7d2(0x26f)]('Testhub\x20started\x20with\x20id:\x20'+process[_0x48b7d2(0x1fb)][_0x48b7d2(0x246)]),_0x38c530;}static async[a152_0x1c1167(0x232)](_0x3c8bb8){const _0x412295=a152_0x1c1167,_0x4ff6f6={'fEzjE':function(_0x5bae2f,_0x6d9403){return _0x5bae2f===_0x6d9403;},'yfSIw':_0x412295(0x267),'ANWQM':function(_0x54e945,_0x15461b){return _0x54e945===_0x15461b;},'EQQho':_0x412295(0x1f7),'YuPLC':function(_0x2618d6,_0x9ddd33){return _0x2618d6===_0x9ddd33;},'EuaIN':_0x412295(0x1e4),'XgUCf':_0x412295(0x210),'sZtGE':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','slQDG':_0x412295(0x24a),'PQsgs':_0x412295(0x218),'mbBas':function(_0x40e1a6){return _0x40e1a6();},'xlbjZ':function(_0x44c542,_0x160faf,_0x207380,_0x396d2f,_0x300b31,_0x3b46ef){return _0x44c542(_0x160faf,_0x207380,_0x396d2f,_0x300b31,_0x3b46ef);},'nACyW':_0x412295(0x216),'WbDku':'stopBuildUpstream\x20event\x20successful!','BZMYX':_0x412295(0x209)};await PerformanceTester[_0x412295(0x22a)](PerformanceEvents['STOP'],async()=>{const _0x1681d3=_0x412295;if(_0x4ff6f6['fEzjE'](process['env'][_0x1681d3(0x1e6)],_0x4ff6f6[_0x1681d3(0x252)])||TestHubHandler['buildStopSent']||bsSetupHelper['isUndefined'](process['env'][testHubConstants[_0x1681d3(0x1eb)]['BROWSERSTACK_TESTHUB_JWT']]))return;TestHubHandler[_0x1681d3(0x1f6)]=!![];if(BrowserstackCLI[_0x1681d3(0x212)]()[_0x1681d3(0x1e8)]())return;await this[_0x1681d3(0x213)](),await RequestQueueHandler['getInstance']()['uploadPending'](),await SessionHandler['waitForBuildStatus']();if(_0x4ff6f6['ANWQM'](process['env'][testHubConstants[_0x1681d3(0x1eb)][_0x1681d3(0x208)]],_0x4ff6f6['EQQho'])||_0x4ff6f6[_0x1681d3(0x1d9)](process['env'][testHubConstants[_0x1681d3(0x1eb)][_0x1681d3(0x246)]],_0x4ff6f6[_0x1681d3(0x240)])){logger['debug'](_0x4ff6f6[_0x1681d3(0x237)]);const _0x4d5a97={};return _0x4d5a97['status']=_0x4ff6f6[_0x1681d3(0x25d)],_0x4d5a97[_0x1681d3(0x26e)]=_0x4ff6f6['sZtGE'],_0x4d5a97;}const _0xbf28d3={'finished_at':new Date()['toISOString'](),'finished_metadata':[]};!!_0x3c8bb8&&_0xbf28d3[_0x4ff6f6[_0x1681d3(0x247)]][_0x1681d3(0x270)]({'reason':_0x4ff6f6[_0x1681d3(0x1e9)],'signal':_0x3c8bb8,'failure_data':''});const _0x225c0f={'headers':_0x4ff6f6[_0x1681d3(0x236)](getDefaultHeaders)};try{const _0x492e3b=await _0x4ff6f6[_0x1681d3(0x23f)](nodeRequest,_0x4ff6f6[_0x1681d3(0x226)],'api/v1/builds/'+process[_0x1681d3(0x1fb)][testHubConstants['ENV_VAR'][_0x1681d3(0x246)]]+_0x1681d3(0x1fc),_0xbf28d3,_0x225c0f,![]);if(_0x492e3b[_0x1681d3(0x25f)]&&_0x492e3b[_0x1681d3(0x25f)]['error']){const _0x31fd16={};_0x31fd16['message']=_0x492e3b['data'][_0x1681d3(0x210)];throw _0x31fd16;}else{logger['debug'](_0x4ff6f6[_0x1681d3(0x230)]);const _0x4957c7={};return _0x4957c7[_0x1681d3(0x20e)]=_0x4ff6f6[_0x1681d3(0x22d)],_0x4957c7['message']='',_0x4957c7;}}catch(_0x1f6d77){_0x1f6d77['response']?logger['debug'](_0x1681d3(0x1ff)+_0x1f6d77[_0x1681d3(0x21d)][_0x1681d3(0x20e)]+'\x20'+_0x1f6d77[_0x1681d3(0x21d)][_0x1681d3(0x20b)]+'\x20'+JSON[_0x1681d3(0x1db)](_0x1f6d77[_0x1681d3(0x21d)]['data'])):logger[_0x1681d3(0x203)](_0x1681d3(0x1ff)+(_0x1f6d77[_0x1681d3(0x26e)]||_0x1f6d77));const _0x4b34d4={};return _0x4b34d4[_0x1681d3(0x20e)]=_0x4ff6f6[_0x1681d3(0x25d)],_0x4b34d4[_0x1681d3(0x26e)]=_0x1f6d77[_0x1681d3(0x26e)]||_0x1f6d77[_0x1681d3(0x21d)]?_0x1f6d77['response'][_0x1681d3(0x20e)]+':'+_0x1f6d77[_0x1681d3(0x21d)][_0x1681d3(0x20b)]:_0x1f6d77,_0x4b34d4;}})();}}module[a152_0x1c1167(0x24c)]=TestHubHandler;function a152_0x4e9f(){const _0x547601=['isAccessibilityEnabled','ACCESSIBILITY','status','getProductMapForBuildStartCall','error','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','getInstance','processTraceZips','setAccessibilityVariables','22npHmha','PUT','QXAxB','user_killed','add','../../bin/utils/constants.js','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','../performance/constants','response','getTestOrchestrationBuildStartData','nDcBb','\x20framework','buildIdentifier','../../bin/playwright/reporter/test-details.js','fADHH','getHostInfo','./constants.js','nACyW','JmDeN','central_scanner','buildHashedId','measureWrapper','extractDataFromResponse','basename','BZMYX','getGitMetaData','UFNNl','WbDku','checkAndSetupPercy','stop','getAccessKey','buildName','wJyHl','mbBas','EuaIN','assign','winstonLogger','format','27fXkrcj','username','759192RCCBVP','framework','xlbjZ','EQQho','config','includes','BROWSERSTACK_ACCESSIBILITY','mhpBo','BROWSERSTACK_CENTRAL_SCANNER_JWT','BROWSERSTACK_TESTHUB_UUID','slQDG','../helper.js','buildDescription','finished_metadata','includeEncodedExtension','exports','3797148fVlFzV','logBuildError','authToken','56951rVTaIL','ospkG','yfSIw','FAAoS','scannerProcessingTimeout','setupPercy','8235880GHQKvq','Error\x20while\x20waiting\x20for\x20events:\x20','uecKV','exops','566678DxVQRY','5TVyXgB','getProductMap','XgUCf','util','data','getFrameworkDetails','iWbeD','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','resolve','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','bkqIh','../test-observability/requestQueueHandler.js','false','2474512FuZhie','getAccessibilityValueFromYml','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','xiELt','BROWSERSTACK_TEST_OBSERVABILITY','./utils.js','message','info','push','BROWSERSTACK_PRODUCT_MAP','cwd','setTestHubCommonMetaInfo','getConfig','../../bin/v2/browserstackCLI','YuPLC','toISOString','stringify','BROWSERSTACK_BUILD_RUN_IDENTIFIER','FlCxx','allowScreenshot','hvCrY','lcnc','29241DEdccw','true','PERCY_SUPPORTED_FRAMEWORKS','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','accessibility','BS_TESTOPS_BUILD_COMPLETED','rPSPf','isRunning','PQsgs','launchBuild','ENV_VAR','BROWSERSTACK_CENTRAL_SCANNER_JOBID','isBrowserstackInfra','xtreH','allSettled','VCLor','tVYvp','jwt','generateBuildUpstreamData','getCentralUser','auth','buildStopSent','null','settings','../performance/performance-tester.js','GkbIC','env','/stop','TESTHUB_BUILD_API','START','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','../test-observability/utils','getTraceFilePaths','getCiInfo','debug','All\x20trace\x20zip\x20send\x20events\x20complete','OBSERVABILITY','getAccessibilityOptions','BROWSERSTACK_RERUN','BROWSERSTACK_TESTHUB_JWT','success','../../bin/playwright/reporter/pwUtils.js','statusText'];a152_0x4e9f=function(){return _0x547601;};return a152_0x4e9f();}
@@ -1 +1 @@
1
- const a152_0x217118=a152_0x169f;function a152_0x2114(){const _0xeeeb68=['nadOd','BS_TESTOPS_BUILD_HASHED_ID','build_hashed_id','JEST','scannerVersion','CODECEPT','urUxN','../logger','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','true','INVALID_CREDENTIALS','platforms','QTWLh','hQVEx','vSiWA','HJBEO','getTestFrameworkDetails','checkAccessibilityPlatformConfig','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','PLAYWRIGHT','QzXhn','null','2oXWNto','VhDMb','getAccessibilityValueFromYml','NHgCi','Gctwg','uploadEventData','handleErrorForObservability','observability','YbVTl','appendTesthubParams','split','./constants.js','vZxUZ','inTsH','ACCESS_DENIED','2066300GNRQsT','bDqkf','BS_A11Y_JWT','BS_TESTOPS_JWT','BROWSERSTACK_ACCESSIBILITY','FRAMEWORK_DETAILS','2004cTJDYv','../test-observability/constants.js','../globals.js','error','XrtfT','WGavJ','112067iNSnky','assign','rWzbk','keys','success','accessibilityPlatform','javascript','MOCHA','ERROR','app','BROWSERSTACK_TESTHUB_UUID:\x20','696Ojfcza','options','2|3|1|0|4','../accessibility-automation/helper','test_run','zTcPZ','DEPRECATED','config','1385255qFcDcZ','qgtLH','\x20Build\x20creation\x20failed','BS_TESTOPS_BUILD_COMPLETED','../helper','VpdXD','handleErrorForAccessibility','false','HookRunFinished','skipCDPConnectOverride','244395YyfEQn','getAgentVersion','logBuildError','11231PFzixg','TEST_REPORTING_ANALYTICS','../test-orchestration/orchestrationUtils.js','message','commands','getTestOrchestrationBuildStartData','password','tags','GWGCD','toUpperCase','wjqxF','HookRunStarted','KJJOX','capabilities','parseFromJson','72TlOdtB','percy','nAQSI','oQSFG','setAccessibilityVariables','getBuildStartData','kiooG','../../bin/v2/modules/loadTestModule','../../bin/playwright/reporter/test-details.js','isBrowserstackInfra','../helper.js','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','username','parseA11yJwtPayload','value','iCJhp','command','2807QDKGLe','shouldProcessEventForTesthub','CBTSessionCreated','getAccessibilityPlatformValidation','isTrue','setCurrentTestData','CREDENTIALS_FOR_CRASH_REPORTING','IpNYe','SJZpg','getCurrentTestData','sPIbv','isAccessibilityEnabled','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','name','EvFRS','key','env','titlePath','xifAB','TKKQm','isAccessibilityPlatform','info','5367PTagwf','iLSSL','QcioA','AgZzs','getFrameworkDetails','YUEMf','qhzmc','getProductMapForBuildStartCall','BROWSERSTACK_TEST_ACCESSIBILITY_YML','WWHzb','setPercyFlag','pYqer','jwt','vAjMi','getCentralUser','FOuZk','goog:chromeOptions','shouldScanTestForAccessibility','BROWSERSTACK_TESTHUB_JWT','isPercyBuild','../test-observability/utils','ReNJN','wdjnG','parse','KWouJ','nonBStackInfraA11yChromeOptions','scripts','setTestObservabilityVariables','getTestData','getGlobal','length','OBSERVABILITY','isTurboScaleSession','BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP','includes','setTestData','tugwP','../accessibility-automation/scripts.js','mUGDp','rKAnU','dNgde','saiFR','xJrRR','stringify','4980pToLmo','isLTSSession','fBGQZ','BROWSERSTACK_TESTHUB_UUID','accessibility','BS_TESTOPS_ALLOW_SCREENSHOTS','debug','join'];a152_0x2114=function(){return _0xeeeb68;};return a152_0x2114();}(function(_0x558cad,_0x57a684){const _0x13b048=a152_0x169f,_0x3df123=_0x558cad();while(!![]){try{const _0x1b2eec=-parseInt(_0x13b048(0x24f))/0x1*(-parseInt(_0x13b048(0x234))/0x2)+-parseInt(_0x13b048(0x1ea))/0x3*(parseInt(_0x13b048(0x25a))/0x4)+parseInt(_0x13b048(0x262))/0x5+-parseInt(_0x13b048(0x249))/0x6*(-parseInt(_0x13b048(0x1d4))/0x7)+parseInt(_0x13b048(0x1c3))/0x8*(-parseInt(_0x13b048(0x1b1))/0x9)+-parseInt(_0x13b048(0x243))/0xa+parseInt(_0x13b048(0x1b4))/0xb*(parseInt(_0x13b048(0x216))/0xc);if(_0x1b2eec===_0x57a684)break;else _0x3df123['push'](_0x3df123['shift']());}catch(_0x283003){_0x3df123['push'](_0x3df123['shift']());}}}(a152_0x2114,0x2d088));const bsSetupHelper=require(a152_0x217118(0x266)),LoadTestModule=require(a152_0x217118(0x1ca)),{isTestObservabilitySession,getFrameworkVersion}=require(a152_0x217118(0x1fe)),accessibilityHelper=require(a152_0x217118(0x25d)),logger=require(a152_0x217118(0x225))['winstonLogger'],{nestedKeyValue}=require(a152_0x217118(0x1cd)),scripts=require(a152_0x217118(0x20f)),globals=require(a152_0x217118(0x24b)),testHubConstants=require(a152_0x217118(0x23f)),PWTestDetails=require(a152_0x217118(0x1cb)),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require(a152_0x217118(0x24a)),{isTurboScaleSession}=require('../ats/helper'),OrchestrationUtils=require(a152_0x217118(0x1b6)),constants=require('../../bin/utils/constants.js');function a152_0x169f(_0x1daa06,_0x65aae5){const _0x211413=a152_0x2114();return a152_0x169f=function(_0x169f54,_0x34d77e){_0x169f54=_0x169f54-0x1b1;let _0x1ae6ae=_0x211413[_0x169f54];return _0x1ae6ae;},a152_0x169f(_0x1daa06,_0x65aae5);}let testData={};exports['getProductMap']=_0x384528=>{const _0x3906db=a152_0x217118,_0x9c9557={'TKKQm':function(_0x396535){return _0x396535();}};let _0x507dbc=![],_0x2c1b1a=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x384528['app'])_0x2c1b1a=!![];else bsSetupHelper[_0x3906db(0x1cc)]()&&(_0x507dbc=!![]);return Object['assign']({'observability':_0x9c9557[_0x3906db(0x1e7)](isTestObservabilitySession),'accessibility':exports['isAccessibilityEnabled'](_0x384528),'percy':_0x384528[_0x3906db(0x1c4)]||![],'automate':_0x507dbc,'app_automate':_0x2c1b1a,'turboscale':bsSetupHelper[_0x3906db(0x20a)](_0x384528),'lts':LoadTestModule[_0x3906db(0x217)](_0x384528)},bsSetupHelper[_0x3906db(0x1f8)]());},exports[a152_0x217118(0x1ee)]=(_0x12efa4,_0x59d10d)=>{const _0x4f4abe=a152_0x217118,_0x1cc360={'VMZqV':function(_0xef55c9,_0x34edb5){return _0xef55c9(_0x34edb5);},'KBgzu':_0x4f4abe(0x255)},_0x54d36c={'frameworkName':_0x59d10d,'frameworkVersion':_0x1cc360['VMZqV'](getFrameworkVersion,_0x59d10d),'sdkVersion':bsSetupHelper[_0x4f4abe(0x1b2)](),'language':_0x1cc360['KBgzu'],'testFramework':bsSetupHelper[_0x4f4abe(0x22e)](_0x12efa4,_0x59d10d)};return process[_0x4f4abe(0x1e4)][_0x4f4abe(0x248)]=JSON['stringify'](_0x54d36c),_0x54d36c;},exports[a152_0x217118(0x1f4)]=_0x4bee2b=>{const _0x5bc0e7=a152_0x217118,_0x4e8b79={};_0x4e8b79['HrEpf']=_0x5bc0e7(0x269),_0x4e8b79[_0x5bc0e7(0x267)]='true';const _0x247189=_0x4e8b79;process['env']['BROWSERSTACK_PERCY']=_0x247189['HrEpf'],bsSetupHelper[_0x5bc0e7(0x1d8)](_0x4bee2b[_0x5bc0e7(0x261)][_0x5bc0e7(0x1c4)])&&(!_0x4bee2b[_0x5bc0e7(0x1c4)]||!_0x4bee2b[_0x5bc0e7(0x1c4)]['isRunning']())&&(process[_0x5bc0e7(0x1e4)]['BROWSERSTACK_PERCY']=_0x247189['VpdXD']);},exports['isPercyBuild']=()=>{const _0x4bd07b=a152_0x217118;return bsSetupHelper[_0x4bd07b(0x1d8)](process['env']['BROWSERSTACK_PERCY']);},exports[a152_0x217118(0x1df)]=(_0x3b83cb={})=>{const _0xe72f54=a152_0x217118,_0x5da98e={};_0x5da98e['WWHzb']=function(_0x52db0c,_0x2ba25b){return _0x52db0c!==_0x2ba25b;},_0x5da98e['uKKPn']=function(_0x46190c,_0x2d4396){return _0x46190c===_0x2d4396;},_0x5da98e['mUGDp']='true',_0x5da98e['SuVDs']=function(_0x436c0b,_0x2bf46e){return _0x436c0b>_0x2bf46e;},_0x5da98e['QcioA']=function(_0x5075e6,_0x5363e0){return _0x5075e6===_0x5363e0;};const _0x476841=_0x5da98e;if(_0x476841[_0xe72f54(0x1f3)](process[_0xe72f54(0x1e4)][_0xe72f54(0x247)],undefined))return bsSetupHelper[_0xe72f54(0x1d8)](process[_0xe72f54(0x1e4)][_0xe72f54(0x247)]);let _0x3eaaaa=_0x476841['uKKPn'](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x476841[_0xe72f54(0x210)]);return _0x476841['SuVDs'](Object[_0xe72f54(0x252)](_0x3b83cb)['length'],0x0)&&(process[_0xe72f54(0x1e4)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper[_0xe72f54(0x22f)](_0x3b83cb)),_0x3eaaaa=_0x3eaaaa||_0x476841[_0xe72f54(0x1ec)](process[_0xe72f54(0x1e4)][_0xe72f54(0x230)],_0x476841[_0xe72f54(0x210)]),_0x3eaaaa;},exports[a152_0x217118(0x205)]=(_0x4ee332,_0x176b7b)=>{const _0xea923c=a152_0x217118,_0x56a3c1={'fBGQZ':function(_0x3b5547){return _0x3b5547();},'nQvNJ':'5|4|2|3|0|1','gkMrM':function(_0x171a1d,_0x30c5b8,_0x2c1675){return _0x171a1d(_0x30c5b8,_0x2c1675);},'dcqLf':_0xea923c(0x23b),'FOuZk':_0xea923c(0x25b),'wjqxF':_0xea923c(0x227)};if(!_0x4ee332||!_0x4ee332['observability'])return exports[_0xea923c(0x23a)](),[null,null,null];if(!_0x4ee332[_0xea923c(0x23b)][_0xea923c(0x253)])return exports[_0xea923c(0x23a)](_0x4ee332[_0xea923c(0x23b)]),[null,null,null];if(_0x56a3c1[_0xea923c(0x218)](isTestObservabilitySession)){const _0x505fdb=_0x56a3c1['nQvNJ']['split']('|');let _0x1718e5=0x0;while(!![]){switch(_0x505fdb[_0x1718e5++]){case'0':logger[_0xea923c(0x21c)]('['+constants[_0xea923c(0x1b5)]+']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x4ee332[_0xea923c(0x220)]);continue;case'1':return[_0x4ee332[_0xea923c(0x1f6)],_0x4ee332[_0xea923c(0x220)],process[_0xea923c(0x1e4)][_0xea923c(0x21b)]];case'2':_0x4ee332[_0xea923c(0x220)]&&(process[_0xea923c(0x1e4)][_0xea923c(0x21f)]=_0x4ee332[_0xea923c(0x220)]);continue;case'3':_0x56a3c1['gkMrM'](nestedKeyValue,_0x4ee332,[_0x56a3c1['dcqLf'],_0x56a3c1[_0xea923c(0x1f9)]])&&(process[_0xea923c(0x1e4)][_0xea923c(0x21b)]=_0x4ee332[_0xea923c(0x23b)]['options']['allow_screenshots']['toString']());continue;case'4':if(_0x4ee332[_0xea923c(0x1f6)]){process[_0xea923c(0x1e4)][_0xea923c(0x246)]=_0x4ee332['jwt'];const _0x38141d={};_0x38141d[_0xea923c(0x1cf)]=_0x176b7b[_0xea923c(0x1cf)],_0x38141d['password']=_0x176b7b[_0xea923c(0x1ba)],process[_0xea923c(0x1e4)][_0xea923c(0x1da)]=JSON['stringify'](_0x38141d);}continue;case'5':process[_0xea923c(0x1e4)][_0xea923c(0x265)]=_0x56a3c1[_0xea923c(0x1be)];continue;}break;}}return[null,null,null];},exports[a152_0x217118(0x1c7)]=_0x4a3fda=>{const _0x4936bb=a152_0x217118,_0x254874={'QzXhn':function(_0x4a3dea,_0x1b8064,_0x4d8b27){return _0x4a3dea(_0x1b8064,_0x4d8b27);},'qgtLH':_0x4936bb(0x21a),'cwqxh':_0x4936bb(0x25b),'VhDMb':function(_0xd35f2b,_0x48f39e,_0x24cc3a,_0x58d16f){return _0xd35f2b(_0x48f39e,_0x24cc3a,_0x58d16f);},'WGavJ':_0x4936bb(0x1e1),'ReNJN':_0x4936bb(0x1d1),'nUpkd':function(_0x51b66f,_0x347835,_0x54563c,_0x47f11c){return _0x51b66f(_0x347835,_0x54563c,_0x47f11c);},'KJJOX':_0x4936bb(0x1d3),'bDqkf':_0x4936bb(0x1b8),'pEuTU':function(_0x5de55d,_0xbe9e62,_0x1350ad,_0x2d1dc3){return _0x5de55d(_0xbe9e62,_0x1350ad,_0x2d1dc3);},'urUxN':_0x4936bb(0x203),'oQSFG':_0x4936bb(0x1fa),'qhzmc':function(_0x5124c1,_0x25bdfd){return _0x5124c1(_0x25bdfd);},'TZOzl':function(_0x986ce0,_0x4a131b){return _0x986ce0===_0x4a131b;},'YUEMf':function(_0x2fa0a0,_0x253fb1){return _0x2fa0a0===_0x253fb1;},'zMJCp':_0x4936bb(0x227),'KWouJ':'[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override'};if(!_0x4a3fda[_0x4936bb(0x21a)])return exports[_0x4936bb(0x268)](),[null,null];if(!_0x4a3fda[_0x4936bb(0x21a)][_0x4936bb(0x253)])return exports['handleErrorForAccessibility'](_0x4a3fda[_0x4936bb(0x21a)]),[null,null];if(_0x254874[_0x4936bb(0x232)](nestedKeyValue,_0x4a3fda,[_0x254874[_0x4936bb(0x263)],_0x254874['cwqxh']])){const {accessibilityToken:_0x1fbc13,scannerVersion:_0x4a1ebc,scannerProcessingTimeout:_0x3021f8,isMobileScanningEnabledForGroup:_0x1c71c0}=_0x254874[_0x4936bb(0x235)](jsonifyAccessibilityArray,_0x4a3fda[_0x4936bb(0x21a)]['options'][_0x4936bb(0x1c1)],_0x254874['WGavJ'],_0x254874[_0x4936bb(0x1ff)]),_0x21ec87={'scripts':_0x254874['nUpkd'](jsonifyAccessibilityArray,_0x4a3fda[_0x4936bb(0x21a)][_0x4936bb(0x25b)][_0x4936bb(0x204)],_0x254874[_0x4936bb(0x24e)],_0x254874[_0x4936bb(0x1c0)])};_0x21ec87[_0x254874[_0x4936bb(0x244)]]=_0x4a3fda[_0x4936bb(0x21a)][_0x4936bb(0x25b)]['commandsToWrap'][_0x4936bb(0x1b8)];const _0xf3bf10=_0x254874['pEuTU'](jsonifyAccessibilityArray,_0x4a3fda[_0x4936bb(0x21a)][_0x4936bb(0x25b)][_0x4936bb(0x1c1)],_0x254874['WGavJ'],_0x254874[_0x4936bb(0x1ff)]);_0x21ec87[_0x254874[_0x4936bb(0x224)]]=_0xf3bf10[_0x254874[_0x4936bb(0x1c6)]],scripts[_0x4936bb(0x1c2)](_0x21ec87),scripts['toJson']();let _0x30d0c3=process[_0x4936bb(0x1e4)][_0x4936bb(0x1e0)];_0x30d0c3=!!_0x30d0c3?JSON[_0x4936bb(0x201)](_0x30d0c3):{},_0x30d0c3[_0x4936bb(0x222)]=_0x4a1ebc,process[_0x4936bb(0x1e4)][_0x4936bb(0x1e0)]=JSON[_0x4936bb(0x215)](_0x30d0c3),process[_0x4936bb(0x1e4)][_0x4936bb(0x245)]=_0x1fbc13,process[_0x4936bb(0x1e4)][_0x4936bb(0x20b)]=_0x254874[_0x4936bb(0x1f0)](String,_0x254874['TZOzl'](_0x1c71c0,!![])||_0x254874[_0x4936bb(0x1ef)](_0x1c71c0,_0x254874['zMJCp'])),logger[_0x4936bb(0x21c)](_0x4936bb(0x226)+_0x4a3fda[_0x4936bb(0x220)]);const _0x4089de=accessibilityHelper[_0x4936bb(0x1d0)](_0x1fbc13);return _0x4089de&&bsSetupHelper[_0x4936bb(0x1d8)](_0x4089de[_0x4936bb(0x26b)])&&(process['env'][_0x4936bb(0x1ce)]=!![],logger[_0x4936bb(0x21c)](_0x254874[_0x4936bb(0x202)])),[_0x1fbc13,_0x4a3fda[_0x4936bb(0x220)],_0x3021f8];}return[null,null];},exports[a152_0x217118(0x23a)]=_0x2b7419=>{const _0x471189=a152_0x217118,_0x1f3ded={};_0x1f3ded['qdYrh']='1|4|6|2|3|0|5',_0x1f3ded[_0x471189(0x251)]=_0x471189(0x233),_0x1f3ded[_0x471189(0x1eb)]=_0x471189(0x269);const _0x14a004=_0x1f3ded,_0x2c375b=_0x14a004['qdYrh'][_0x471189(0x23e)]('|');let _0x2a257f=0x0;while(!![]){switch(_0x2c375b[_0x2a257f++]){case'0':process['env'][_0x471189(0x21b)]=_0x14a004['rWzbk'];continue;case'1':process[_0x471189(0x1e4)]['BROWSERSTACK_TESTHUB_UUID']=_0x14a004[_0x471189(0x251)];continue;case'2':process[_0x471189(0x1e4)][_0x471189(0x246)]=_0x14a004['rWzbk'];continue;case'3':process['env'][_0x471189(0x21f)]=_0x14a004[_0x471189(0x251)];continue;case'4':process[_0x471189(0x1e4)][_0x471189(0x1fc)]=_0x14a004['rWzbk'];continue;case'5':exports['logBuildError'](_0x2b7419,testHubConstants[_0x471189(0x209)]);continue;case'6':process[_0x471189(0x1e4)]['BS_TESTOPS_BUILD_COMPLETED']=_0x14a004[_0x471189(0x1eb)];continue;}break;}},exports[a152_0x217118(0x268)]=_0x11d322=>{const _0x18eed1=a152_0x217118,_0x663987={};_0x663987[_0x18eed1(0x211)]=_0x18eed1(0x25c),_0x663987[_0x18eed1(0x24d)]=_0x18eed1(0x269),_0x663987[_0x18eed1(0x22b)]=_0x18eed1(0x233);const _0xde05c3=_0x663987,_0xbeaf39=_0xde05c3[_0x18eed1(0x211)][_0x18eed1(0x23e)]('|');let _0x2ef8b1=0x0;while(!![]){switch(_0xbeaf39[_0x2ef8b1++]){case'0':process[_0x18eed1(0x1e4)][_0x18eed1(0x230)]=_0xde05c3[_0x18eed1(0x24d)];continue;case'1':process[_0x18eed1(0x1e4)][_0x18eed1(0x1f2)]=_0xde05c3[_0x18eed1(0x24d)];continue;case'2':process[_0x18eed1(0x1e4)]['BROWSERSTACK_TESTHUB_UUID']=_0xde05c3[_0x18eed1(0x22b)];continue;case'3':process['env']['BROWSERSTACK_TESTHUB_JWT']=_0xde05c3[_0x18eed1(0x22b)];continue;case'4':exports['logBuildError'](_0x11d322,testHubConstants['ACCESSIBILITY']);continue;}break;}},exports[a152_0x217118(0x1b3)]=(_0xe0f779,_0x28ce17='')=>{const _0x2ca5bd=a152_0x217118,_0xa6a298={};_0xa6a298[_0x2ca5bd(0x238)]=function(_0x50c8c0,_0x44e8da){return _0x50c8c0===_0x44e8da;};const _0x1921ea=_0xa6a298;if(_0x1921ea[_0x2ca5bd(0x238)](_0xe0f779,undefined)){logger[_0x2ca5bd(0x24c)](_0x28ce17[_0x2ca5bd(0x1bd)]()+_0x2ca5bd(0x264));return;}for(const _0x1e4bfc of _0xe0f779['errors']){const _0x30ed46=_0x1e4bfc[_0x2ca5bd(0x1e3)],_0xfa8fe5=_0x1e4bfc[_0x2ca5bd(0x1b7)];if(_0xfa8fe5)switch(_0x30ed46){case testHubConstants[_0x2ca5bd(0x257)][_0x2ca5bd(0x228)]:logger['error'](_0xfa8fe5);break;case testHubConstants['ERROR'][_0x2ca5bd(0x242)]:logger[_0x2ca5bd(0x1e9)](_0xfa8fe5);break;case testHubConstants['ERROR'][_0x2ca5bd(0x260)]:logger[_0x2ca5bd(0x24c)](_0xfa8fe5);break;default:logger[_0x2ca5bd(0x24c)](_0xfa8fe5);}}};const jsonifyAccessibilityArray=(_0x363058,_0x26c30d,_0x500b65)=>{const _0x5cba34={};return _0x363058['forEach'](_0x1e21bd=>{_0x5cba34[_0x1e21bd[_0x26c30d]]=_0x1e21bd[_0x500b65];}),_0x5cba34;};exports['setTestHubCommonMetaInfo']=_0x160d3a=>{const _0x267806=a152_0x217118;_0x160d3a[_0x267806(0x1f6)]&&(process[_0x267806(0x1e4)]['BROWSERSTACK_TESTHUB_JWT']=_0x160d3a[_0x267806(0x1f6)]);_0x160d3a['build_hashed_id']&&(process[_0x267806(0x1e4)][_0x267806(0x219)]=_0x160d3a[_0x267806(0x220)],logger['debug'](_0x267806(0x259)+_0x160d3a['build_hashed_id']));;},exports[a152_0x217118(0x1d5)]=(_0x20ac82='',_0x3e0e81='')=>{const _0x4ae685=a152_0x217118,_0x24204c={'SJZpg':function(_0x3330fe){return _0x3330fe();},'tYvyd':function(_0x451def,_0x2ef22c){return _0x451def===_0x2ef22c;},'ESRpW':_0x4ae685(0x239),'IpNYe':'LogCreated','iCJhp':_0x4ae685(0x1d6),'nadOd':function(_0x28ec89){return _0x28ec89();},'xifAB':'HookRunStarted','xJrRR':_0x4ae685(0x26a)};if(exports[_0x4ae685(0x1fd)]()&&!exports[_0x4ae685(0x1df)]()&&!_0x24204c[_0x4ae685(0x1dc)](isTestObservabilitySession)){if(_0x24204c['tYvyd'](_0x3e0e81,_0x24204c['ESRpW']))return![];if([_0x24204c[_0x4ae685(0x1db)],_0x24204c[_0x4ae685(0x1d2)]][_0x4ae685(0x20c)](_0x20ac82))return![];return!![];}if(exports[_0x4ae685(0x1df)]()&&!_0x24204c[_0x4ae685(0x21e)](isTestObservabilitySession)){if([_0x24204c[_0x4ae685(0x1e6)],_0x24204c[_0x4ae685(0x214)],_0x24204c[_0x4ae685(0x1db)]]['includes'](_0x20ac82))return![];return!![];}return exports[_0x4ae685(0x1df)]()||_0x24204c[_0x4ae685(0x21e)](isTestObservabilitySession)||exports['isPercyBuild']();},exports[a152_0x217118(0x23d)]=(_0x34050f,_0x231e5d,_0x2691fc='',_0x15a473)=>{const _0x2bdf7c=a152_0x217118,_0x54cce8={};_0x54cce8[_0x2bdf7c(0x22a)]=_0x2bdf7c(0x1bf),_0x54cce8[_0x2bdf7c(0x20e)]=_0x2bdf7c(0x26a),_0x54cce8[_0x2bdf7c(0x23c)]=function(_0x34a610,_0x4bf97b){return _0x34a610===_0x4bf97b;},_0x54cce8[_0x2bdf7c(0x1c9)]='bstackA11yShouldScan',_0x54cce8['sPIbv']=_0x2bdf7c(0x1e8),_0x54cce8[_0x2bdf7c(0x241)]=_0x2bdf7c(0x21a),_0x54cce8[_0x2bdf7c(0x1f5)]=function(_0x57bc74,_0x2d38ac){return _0x57bc74&&_0x2d38ac;},_0x54cce8[_0x2bdf7c(0x22c)]=function(_0xdc3657,_0x3d6441){return _0xdc3657===_0x3d6441;},_0x54cce8[_0x2bdf7c(0x1e2)]=function(_0x5188d2,_0x1323e2){return _0x5188d2+_0x1323e2;},_0x54cce8[_0x2bdf7c(0x200)]=function(_0x2c65f7,_0x579e28){return _0x2c65f7+_0x579e28;},_0x54cce8[_0x2bdf7c(0x237)]=function(_0x4e69f2,_0x4c7357){return _0x4e69f2===_0x4c7357;},_0x54cce8['ACJZC']=function(_0x4e281f,_0x275f80){return _0x4e281f===_0x275f80;},_0x54cce8[_0x2bdf7c(0x25f)]='TestRunStarted',_0x54cce8[_0x2bdf7c(0x213)]=function(_0x1be6cc,_0x4bb9b3){return _0x1be6cc===_0x4bb9b3;},_0x54cce8[_0x2bdf7c(0x1f7)]=function(_0x52b67a,_0x41a008){return _0x52b67a&&_0x41a008;},_0x54cce8[_0x2bdf7c(0x1bc)]='product_map';const _0x211536=_0x54cce8;if(![_0x211536[_0x2bdf7c(0x22a)],_0x211536['tugwP']][_0x2bdf7c(0x20c)](_0x231e5d)&&exports[_0x2bdf7c(0x1df)]()){const _0x5d7865={};if(_0x211536[_0x2bdf7c(0x23c)](_0x15a473,FRAMEWORKS[_0x2bdf7c(0x256)])){const _0x5d5b38=globals[_0x2bdf7c(0x207)](_0x211536['kiooG'])||accessibilityHelper[_0x2bdf7c(0x1fb)](_0x2691fc[_0x2bdf7c(0x1e5)](),!![]),_0x4d0eb0=globals[_0x2bdf7c(0x207)](_0x211536[_0x2bdf7c(0x1de)]);_0x5d7865[_0x211536[_0x2bdf7c(0x241)]]=_0x211536[_0x2bdf7c(0x1f5)](_0x4d0eb0,_0x5d5b38);}if(_0x211536[_0x2bdf7c(0x22c)](_0x15a473,FRAMEWORKS[_0x2bdf7c(0x221)])){const _0x207bb2=_0x211536[_0x2bdf7c(0x1e2)](_0x211536[_0x2bdf7c(0x200)](_0x34050f['scopes'][_0x2bdf7c(0x21d)]('\x20'),'\x20'),_0x2691fc[_0x2bdf7c(0x1e1)]),_0x434e0e=globals[_0x2bdf7c(0x207)](_0x211536[_0x2bdf7c(0x1c9)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x207bb2,![]),_0x1aeddd=browserStackGlobals[_0x2bdf7c(0x1e8)];_0x5d7865[_0x211536['inTsH']]=_0x211536['pYqer'](_0x1aeddd,_0x434e0e);}if(_0x211536[_0x2bdf7c(0x237)](_0x15a473,FRAMEWORKS[_0x2bdf7c(0x231)])){if(_0x211536['ACJZC'](_0x231e5d,_0x211536[_0x2bdf7c(0x25f)]))return;_0x5d7865[_0x211536[_0x2bdf7c(0x241)]]=PWTestDetails[_0x2bdf7c(0x1d7)](_0x34050f['uuid']);}if(_0x211536['saiFR'](_0x15a473,FRAMEWORKS[_0x2bdf7c(0x223)])){const _0x59fe03=accessibilityHelper['shouldScanTestForAccessibility'](_0x2691fc[_0x2bdf7c(0x1e5)](),!![]),_0x57e8c6=global[_0x2bdf7c(0x254)];_0x5d7865[_0x211536[_0x2bdf7c(0x241)]]=_0x211536[_0x2bdf7c(0x1f5)](_0x57e8c6,_0x59fe03);}if(_0x211536['YbVTl'](_0x15a473,FRAMEWORKS['CUCUMBER'])){const _0x3c7e59=accessibilityHelper[_0x2bdf7c(0x1fb)](null,![],_0x34050f[_0x2bdf7c(0x1bb)]),_0x440c74=globals[_0x2bdf7c(0x207)](_0x211536[_0x2bdf7c(0x1de)]);_0x5d7865[_0x211536[_0x2bdf7c(0x241)]]=_0x211536[_0x2bdf7c(0x1f7)](_0x440c74,_0x3c7e59);}_0x34050f[_0x211536[_0x2bdf7c(0x1bc)]]=_0x5d7865;}},exports[a152_0x217118(0x1dd)]=_0xc92917=>{const _0xa86b88=a152_0x217118,_0x2bfff8={};_0x2bfff8[_0xa86b88(0x212)]=function(_0xe5e25d,_0x33503b){return _0xe5e25d>_0x33503b;};const _0x5cf33d=_0x2bfff8;let _0x12eea2={};if(_0x5cf33d[_0xa86b88(0x212)](Object[_0xa86b88(0x252)](testData)[_0xa86b88(0x208)],0x0))return testData;_0x12eea2=JestTestDetails[_0xa86b88(0x206)]();if(_0x5cf33d['dNgde'](Object['keys'](_0x12eea2)[_0xa86b88(0x208)],0x0))return _0x12eea2;return _0x12eea2;},exports[a152_0x217118(0x1d9)]=(_0x293400,_0x38e6e8={})=>{const _0x551e3b=a152_0x217118;if(bsSetupHelper['isUndefined'](_0x38e6e8['test_run']))return;switch(_0x293400){case FRAMEWORKS[_0x551e3b(0x256)]:testData=_0x38e6e8[_0x551e3b(0x25e)];break;case FRAMEWORKS['JEST']:JestTestDetails[_0x551e3b(0x20d)](_0x38e6e8[_0x551e3b(0x25e)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x5d6e1a=>{const _0x59ebb3=a152_0x217118,_0x57097c={};_0x57097c['HJBEO']=function(_0x2ffadc,_0x3531f2){return _0x2ffadc!==_0x3531f2;},_0x57097c['AgZzs']=function(_0x1e995e,_0x573142){return _0x1e995e!==_0x573142;},_0x57097c[_0x59ebb3(0x240)]=function(_0x22f0c3,_0x1f381a){return _0x22f0c3!==_0x1f381a;};const _0x457f8f=_0x57097c;if(_0x457f8f[_0x59ebb3(0x22d)](_0x5d6e1a['accessibility'],null)&&_0x457f8f[_0x59ebb3(0x1ed)](_0x5d6e1a[_0x59ebb3(0x21a)],undefined))return _0x5d6e1a[_0x59ebb3(0x21a)];let _0x218221=![],_0x2d3628=![];if(_0x5d6e1a[_0x59ebb3(0x229)])for(const _0x452563 of _0x5d6e1a[_0x59ebb3(0x229)]){_0x457f8f[_0x59ebb3(0x22d)](_0x452563[_0x59ebb3(0x21a)],null)&&_0x457f8f[_0x59ebb3(0x240)](_0x452563['accessibility'],undefined)&&(_0x218221=_0x218221||bsSetupHelper[_0x59ebb3(0x1d8)](_0x452563[_0x59ebb3(0x21a)]),_0x2d3628=!![]);}if(_0x2d3628)return _0x218221;return null;},exports[a152_0x217118(0x1b9)]=_0x3f1370=>{const _0x4bcd45=a152_0x217118,_0xe569e8=new OrchestrationUtils(_0x3f1370);return _0xe569e8[_0x4bcd45(0x1c8)]();},exports[a152_0x217118(0x1f1)]=_0x4944b7=>{const _0x21816e=a152_0x217118,_0x115f0e={'nAQSI':function(_0xce42b2){return _0xce42b2();}};let _0x188e58=![],_0x2817b9=![];if(bsSetupHelper[_0x21816e(0x1cc)]()&&_0x4944b7[_0x21816e(0x258)])_0x2817b9=!![];else bsSetupHelper[_0x21816e(0x1cc)]()&&(_0x188e58=!![]);return Object[_0x21816e(0x250)]({'observability':_0x115f0e[_0x21816e(0x1c5)](isTestObservabilitySession),'accessibility':exports[_0x21816e(0x236)](_0x4944b7),'percy':_0x4944b7['percy']||![],'automate':_0x188e58,'app_automate':_0x2817b9,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x4944b7),'lts':LoadTestModule['isLTSSession'](_0x4944b7)},bsSetupHelper[_0x21816e(0x1f8)]());};
1
+ function a153_0x1897(){const _0x5c4c81=['lOEcj','BAFyU','FRAMEWORK_DETAILS','oyVsk','success','commandsToWrap','parse','YbpdN','scannerVersion','null','percy','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getAccessibilityValueFromYml','isTurboScaleSession','getGlobal','smYiN','YUsZh','BS_TESTOPS_ALLOW_SCREENSHOTS','59464wlHDPu','UZVgu','BS_TESTOPS_BUILD_COMPLETED','../accessibility-automation/scripts.js','jwt','goog:chromeOptions','FDwem','env','titlePath','commands','true','accessibilityPlatform','isAccessibilityPlatform','1553376LvwIWY','BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP','MraRf','XcXgi','../../bin/v2/modules/loadTestModule','setPercyFlag','ACCESS_DENIED','mYWzz','12136593jXkzeQ','PLAYWRIGHT','PeIGv','../globals.js','iFqZP','Odqqt','debug','xvoBO','setTestData','getProductMapForBuildStartCall','shouldScanTestForAccessibility','KvJFd','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','3KwWVLC','toJson','jJSWS','BROWSERSTACK_TESTHUB_JWT','Rjjvn','assign','config','stringify','otEjl','TBPMr','forEach','../logger','password','BROWSERSTACK_PERCY','DEPRECATED','2097ajrJYP','../ats/helper','error','ARUgb','HookRunStarted','message','BqdYu','../../bin/playwright/reporter/test-details.js','IRHsk','RGlfX','uwZmg','info','13156790RwcPTI','tags','xMsXx','length','JhAnz','lhGfA','348345oOkydY','ASsoL','tfpRH','build_hashed_id','UUrdz','yfwlE','\x20Build\x20creation\x20failed','getFrameworkDetails','name','Zubdx','../test-observability/constants.js','../accessibility-automation/helper','getProductMap','BROWSERSTACK_ACCESSIBILITY','CBTSessionCreated','skipCDPConnectOverride','../../bin/utils/constants.js','INVALID_CREDENTIALS','TestRunStarted','../helper','username','accessibility','BS_A11Y_JWT','EQOwQ','platforms','4|3|2|1|0','tsnkH','MHwOE','toUpperCase','uploadEventData','getTestData','FRiOr','xbWVz','oqjwS','toString','scripts','value','winstonLogger','TfjRL','setCurrentTestData','JOEEv','102QgpGid','PKGkJ','ACCESSIBILITY','allow_screenshots','app','6974196JoIEVZ','isAccessibilityEnabled','437520VkhjBv','VbkUb',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','isBrowserstackInfra','BS_TESTOPS_JWT','hfjGN','setTestObservabilityVariables','BROWSERSTACK_TESTHUB_UUID','uuid','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','false','2|5|0|4|1|6|3','observability','ERROR','GxVnx','getAgentVersion','isTrue','yBJMQ','YtRxr','nXiOS','../test-observability/utils','getCentralUser','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','split','KxFGJ','handleErrorForObservability','keys','TEST_REPORTING_ANALYTICS','nkZus','ISvXV','VGGnR','CREDENTIALS_FOR_CRASH_REPORTING','getCurrentTestData','capabilities','options','JEST','HEAFR','includes','logBuildError','handleErrorForAccessibility','avsCH','mEjnx','MOCHA','nonBStackInfraA11yChromeOptions','LogCreated','isUndefined','isRunning'];a153_0x1897=function(){return _0x5c4c81;};return a153_0x1897();}const a153_0x3266a3=a153_0x22a8;(function(_0x3561fe,_0x21fe18){const _0x42b450=a153_0x22a8,_0x2e6d22=_0x3561fe();while(!![]){try{const _0x4602f8=-parseInt(_0x42b450(0x225))/0x1+-parseInt(_0x42b450(0x1d7))/0x2+-parseInt(_0x42b450(0x23a))/0x3*(-parseInt(_0x42b450(0x1d5))/0x4)+-parseInt(_0x42b450(0x25b))/0x5*(parseInt(_0x42b450(0x284))/0x6)+parseInt(_0x42b450(0x22d))/0x7+parseInt(_0x42b450(0x218))/0x8*(parseInt(_0x42b450(0x249))/0x9)+-parseInt(_0x42b450(0x255))/0xa;if(_0x4602f8===_0x21fe18)break;else _0x2e6d22['push'](_0x2e6d22['shift']());}catch(_0x18d13b){_0x2e6d22['push'](_0x2e6d22['shift']());}}}(a153_0x1897,0xe4c59));const bsSetupHelper=require(a153_0x3266a3(0x26e)),LoadTestModule=require(a153_0x3266a3(0x229)),{isTestObservabilitySession,getFrameworkVersion}=require(a153_0x3266a3(0x1eb)),accessibilityHelper=require(a153_0x3266a3(0x266)),logger=require(a153_0x3266a3(0x245))[a153_0x3266a3(0x280)],{nestedKeyValue}=require('../helper.js'),scripts=require(a153_0x3266a3(0x21b)),globals=require(a153_0x3266a3(0x230)),testHubConstants=require('./constants.js'),PWTestDetails=require(a153_0x3266a3(0x250)),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require(a153_0x3266a3(0x265)),{isTurboScaleSession}=require(a153_0x3266a3(0x24a)),OrchestrationUtils=require('../test-orchestration/orchestrationUtils.js'),constants=require(a153_0x3266a3(0x26b));let testData={};exports[a153_0x3266a3(0x267)]=_0x3b413d=>{const _0x2a4583=a153_0x3266a3,_0xe3f644={'lhGfA':function(_0x33b1b5){return _0x33b1b5();}};let _0x2e0dce=![],_0xd6188c=![];if(bsSetupHelper[_0x2a4583(0x1da)]()&&_0x3b413d[_0x2a4583(0x1d4)])_0xd6188c=!![];else bsSetupHelper[_0x2a4583(0x1da)]()&&(_0x2e0dce=!![]);return Object[_0x2a4583(0x23f)]({'observability':_0xe3f644[_0x2a4583(0x25a)](isTestObservabilitySession),'accessibility':exports[_0x2a4583(0x1d6)](_0x3b413d),'percy':_0x3b413d['percy']||![],'automate':_0x2e0dce,'app_automate':_0xd6188c,'turboscale':bsSetupHelper[_0x2a4583(0x213)](_0x3b413d),'lts':LoadTestModule['isLTSSession'](_0x3b413d)},bsSetupHelper[_0x2a4583(0x1ec)]());},exports[a153_0x3266a3(0x262)]=(_0x2002d3,_0x402329)=>{const _0x464579=a153_0x3266a3,_0x228bbb={'JOEEv':function(_0x3e626f,_0x3a0893){return _0x3e626f(_0x3a0893);},'VHlsw':'javascript'},_0x3dfea6={'frameworkName':_0x402329,'frameworkVersion':_0x228bbb[_0x464579(0x283)](getFrameworkVersion,_0x402329),'sdkVersion':bsSetupHelper[_0x464579(0x1e6)](),'language':_0x228bbb['VHlsw'],'testFramework':bsSetupHelper['getTestFrameworkDetails'](_0x2002d3,_0x402329)};return process[_0x464579(0x21f)][_0x464579(0x208)]=JSON[_0x464579(0x241)](_0x3dfea6),_0x3dfea6;},exports[a153_0x3266a3(0x22a)]=_0x3936ce=>{const _0x2039d2=a153_0x3266a3,_0x1c424a={};_0x1c424a[_0x2039d2(0x207)]='false',_0x1c424a[_0x2039d2(0x238)]='true';const _0x3f288f=_0x1c424a;process[_0x2039d2(0x21f)][_0x2039d2(0x247)]=_0x3f288f[_0x2039d2(0x207)],bsSetupHelper['isTrue'](_0x3936ce[_0x2039d2(0x240)]['percy'])&&(!_0x3936ce['percy']||!_0x3936ce[_0x2039d2(0x210)][_0x2039d2(0x205)]())&&(process['env'][_0x2039d2(0x247)]=_0x3f288f[_0x2039d2(0x238)]);},exports['isPercyBuild']=()=>{const _0x5d9ab5=a153_0x3266a3;return bsSetupHelper['isTrue'](process['env'][_0x5d9ab5(0x247)]);},exports[a153_0x3266a3(0x1d6)]=(_0x5c9b49={})=>{const _0x3953cb=a153_0x3266a3,_0x1b7c86={};_0x1b7c86[_0x3953cb(0x231)]=function(_0x51d5ca,_0x8811ea){return _0x51d5ca!==_0x8811ea;},_0x1b7c86[_0x3953cb(0x215)]=function(_0x246493,_0x5d8fb6){return _0x246493===_0x5d8fb6;},_0x1b7c86[_0x3953cb(0x20d)]='true',_0x1b7c86[_0x3953cb(0x25d)]=function(_0x4001bf,_0x1b387a){return _0x4001bf>_0x1b387a;};const _0x3ced93=_0x1b7c86;if(_0x3ced93[_0x3953cb(0x231)](process[_0x3953cb(0x21f)][_0x3953cb(0x268)],undefined))return bsSetupHelper['isTrue'](process[_0x3953cb(0x21f)][_0x3953cb(0x268)]);let _0x23f8da=_0x3ced93[_0x3953cb(0x215)](process['env'][_0x3953cb(0x211)],_0x3ced93[_0x3953cb(0x20d)]);return _0x3ced93[_0x3953cb(0x25d)](Object[_0x3953cb(0x1f1)](_0x5c9b49)[_0x3953cb(0x258)],0x0)&&(process[_0x3953cb(0x21f)][_0x3953cb(0x1e0)]=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x5c9b49)),_0x23f8da=_0x23f8da||_0x3ced93['smYiN'](process[_0x3953cb(0x21f)][_0x3953cb(0x1e0)],_0x3ced93[_0x3953cb(0x20d)]),_0x23f8da;},exports[a153_0x3266a3(0x1dd)]=(_0x1d8138,_0x12b82f)=>{const _0x2320be=a153_0x3266a3,_0x38406={'mEjnx':function(_0x41df93){return _0x41df93();},'nkZus':'1|5|0|4|3|2','UUrdz':_0x2320be(0x222),'UZVgu':function(_0x44183c,_0x559636,_0x3e93c9){return _0x44183c(_0x559636,_0x3e93c9);},'lOEcj':_0x2320be(0x1e3),'Rjjvn':_0x2320be(0x1f9)};if(!_0x1d8138||!_0x1d8138[_0x2320be(0x1e3)])return exports[_0x2320be(0x1f0)](),[null,null,null];if(!_0x1d8138[_0x2320be(0x1e3)][_0x2320be(0x20a)])return exports[_0x2320be(0x1f0)](_0x1d8138['observability']),[null,null,null];if(_0x38406[_0x2320be(0x200)](isTestObservabilitySession)){const _0x571dc9=_0x38406[_0x2320be(0x1f3)][_0x2320be(0x1ee)]('|');let _0x2ed92d=0x0;while(!![]){switch(_0x571dc9[_0x2ed92d++]){case'0':_0x1d8138['build_hashed_id']&&(process[_0x2320be(0x21f)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x1d8138[_0x2320be(0x25e)]);continue;case'1':process[_0x2320be(0x21f)][_0x2320be(0x21a)]=_0x38406[_0x2320be(0x25f)];continue;case'2':return[_0x1d8138['jwt'],_0x1d8138[_0x2320be(0x25e)],process[_0x2320be(0x21f)][_0x2320be(0x217)]];case'3':logger['debug']('['+constants[_0x2320be(0x1f2)]+_0x2320be(0x1d9)+_0x1d8138['build_hashed_id']);continue;case'4':_0x38406[_0x2320be(0x219)](nestedKeyValue,_0x1d8138,[_0x38406[_0x2320be(0x206)],_0x38406[_0x2320be(0x23e)]])&&(process['env'][_0x2320be(0x217)]=_0x1d8138[_0x2320be(0x1e3)][_0x2320be(0x1f9)][_0x2320be(0x1d3)][_0x2320be(0x27d)]());continue;case'5':if(_0x1d8138[_0x2320be(0x21c)]){process[_0x2320be(0x21f)][_0x2320be(0x1db)]=_0x1d8138[_0x2320be(0x21c)];const _0x3dcdf6={};_0x3dcdf6['username']=_0x12b82f[_0x2320be(0x26f)],_0x3dcdf6[_0x2320be(0x246)]=_0x12b82f[_0x2320be(0x246)],process[_0x2320be(0x21f)][_0x2320be(0x1f6)]=JSON['stringify'](_0x3dcdf6);}continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x310a98=>{const _0x10fbc8=a153_0x3266a3,_0xebb72={'VGGnR':function(_0x2d58e2,_0x2687a,_0x433856){return _0x2d58e2(_0x2687a,_0x433856);},'xMsXx':_0x10fbc8(0x270),'UGURg':_0x10fbc8(0x1f9),'jRPxt':function(_0x3140af,_0x327584,_0x59cb2c,_0x2c893e){return _0x3140af(_0x327584,_0x59cb2c,_0x2c893e);},'MHwOE':_0x10fbc8(0x263),'PeIGv':_0x10fbc8(0x27f),'MraRf':function(_0x299488,_0x52c825,_0x2626f0,_0x199bee){return _0x299488(_0x52c825,_0x2626f0,_0x199bee);},'zQVar':'command','BqdYu':_0x10fbc8(0x221),'RGlfX':_0x10fbc8(0x202),'Okzbs':_0x10fbc8(0x21d),'iWEOn':function(_0x270db9,_0x33b7ca){return _0x270db9(_0x33b7ca);},'LLvAz':function(_0x2f1a0a,_0x4086b7){return _0x2f1a0a===_0x4086b7;},'ASsoL':_0x10fbc8(0x222),'FDwem':'[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override'};if(!_0x310a98['accessibility'])return exports[_0x10fbc8(0x1fe)](),[null,null];if(!_0x310a98['accessibility']['success'])return exports[_0x10fbc8(0x1fe)](_0x310a98[_0x10fbc8(0x270)]),[null,null];if(_0xebb72[_0x10fbc8(0x1f5)](nestedKeyValue,_0x310a98,[_0xebb72[_0x10fbc8(0x257)],_0xebb72['UGURg']])){const {accessibilityToken:_0x4aafc1,scannerVersion:_0x4a02d0,scannerProcessingTimeout:_0x3d4e43,isMobileScanningEnabledForGroup:_0x41a67e}=_0xebb72['jRPxt'](jsonifyAccessibilityArray,_0x310a98[_0x10fbc8(0x270)][_0x10fbc8(0x1f9)][_0x10fbc8(0x1f8)],_0xebb72[_0x10fbc8(0x276)],_0xebb72[_0x10fbc8(0x22f)]),_0x4f5fe3={'scripts':_0xebb72[_0x10fbc8(0x227)](jsonifyAccessibilityArray,_0x310a98['accessibility'][_0x10fbc8(0x1f9)][_0x10fbc8(0x27e)],_0xebb72[_0x10fbc8(0x276)],_0xebb72['zQVar'])};_0x4f5fe3[_0xebb72[_0x10fbc8(0x24f)]]=_0x310a98[_0x10fbc8(0x270)][_0x10fbc8(0x1f9)][_0x10fbc8(0x20b)][_0x10fbc8(0x221)];const _0x19add8=_0xebb72[_0x10fbc8(0x227)](jsonifyAccessibilityArray,_0x310a98['accessibility'][_0x10fbc8(0x1f9)]['capabilities'],_0xebb72[_0x10fbc8(0x276)],_0xebb72[_0x10fbc8(0x22f)]);_0x4f5fe3[_0xebb72[_0x10fbc8(0x252)]]=_0x19add8[_0xebb72['Okzbs']],scripts['parseFromJson'](_0x4f5fe3),scripts[_0x10fbc8(0x23b)]();let _0x27e3e9=process[_0x10fbc8(0x21f)][_0x10fbc8(0x239)];_0x27e3e9=!!_0x27e3e9?JSON[_0x10fbc8(0x20c)](_0x27e3e9):{},_0x27e3e9[_0x10fbc8(0x20e)]=_0x4a02d0,process[_0x10fbc8(0x21f)][_0x10fbc8(0x239)]=JSON['stringify'](_0x27e3e9),process['env'][_0x10fbc8(0x271)]=_0x4aafc1,process['env'][_0x10fbc8(0x226)]=_0xebb72['iWEOn'](String,_0xebb72['LLvAz'](_0x41a67e,!![])||_0xebb72['LLvAz'](_0x41a67e,_0xebb72[_0x10fbc8(0x25c)])),logger[_0x10fbc8(0x233)]('[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x310a98[_0x10fbc8(0x25e)]);const _0x2efa55=accessibilityHelper['parseA11yJwtPayload'](_0x4aafc1);return _0x2efa55&&bsSetupHelper['isTrue'](_0x2efa55[_0x10fbc8(0x26a)])&&(process[_0x10fbc8(0x21f)][_0x10fbc8(0x1ed)]=!![],logger[_0x10fbc8(0x233)](_0xebb72[_0x10fbc8(0x21e)])),[_0x4aafc1,_0x310a98[_0x10fbc8(0x25e)],_0x3d4e43];}return[null,null];},exports['handleErrorForObservability']=_0x237d75=>{const _0x1632f4=a153_0x3266a3,_0xf49157={};_0xf49157['GdoEC']=_0x1632f4(0x1e2),_0xf49157[_0x1632f4(0x281)]='false',_0xf49157[_0x1632f4(0x1d8)]=_0x1632f4(0x20f);const _0x4deb6a=_0xf49157,_0x5c31de=_0x4deb6a['GdoEC'][_0x1632f4(0x1ee)]('|');let _0x35beec=0x0;while(!![]){switch(_0x5c31de[_0x35beec++]){case'0':process[_0x1632f4(0x21f)][_0x1632f4(0x21a)]=_0x4deb6a[_0x1632f4(0x281)];continue;case'1':process[_0x1632f4(0x21f)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x4deb6a[_0x1632f4(0x1d8)];continue;case'2':process[_0x1632f4(0x21f)][_0x1632f4(0x1de)]=_0x4deb6a[_0x1632f4(0x1d8)];continue;case'3':exports[_0x1632f4(0x1fd)](_0x237d75,testHubConstants['OBSERVABILITY']);continue;case'4':process[_0x1632f4(0x21f)][_0x1632f4(0x1db)]=_0x4deb6a['VbkUb'];continue;case'5':process[_0x1632f4(0x21f)][_0x1632f4(0x23d)]=_0x4deb6a['VbkUb'];continue;case'6':process['env'][_0x1632f4(0x217)]=_0x4deb6a[_0x1632f4(0x1d8)];continue;}break;}},exports[a153_0x3266a3(0x1fe)]=_0x11d18d=>{const _0x1d3b16=a153_0x3266a3,_0x467161={};_0x467161[_0x1d3b16(0x251)]=_0x1d3b16(0x274),_0x467161[_0x1d3b16(0x1f4)]=_0x1d3b16(0x1e1),_0x467161[_0x1d3b16(0x1ea)]=_0x1d3b16(0x20f);const _0x24d286=_0x467161,_0x2f0421=_0x24d286['IRHsk']['split']('|');let _0x5e7a7d=0x0;while(!![]){switch(_0x2f0421[_0x5e7a7d++]){case'0':exports[_0x1d3b16(0x1fd)](_0x11d18d,testHubConstants[_0x1d3b16(0x1d2)]);continue;case'1':process[_0x1d3b16(0x21f)][_0x1d3b16(0x1e0)]=_0x24d286[_0x1d3b16(0x1f4)];continue;case'2':process['env'][_0x1d3b16(0x211)]=_0x24d286[_0x1d3b16(0x1f4)];continue;case'3':process[_0x1d3b16(0x21f)][_0x1d3b16(0x23d)]=_0x24d286[_0x1d3b16(0x1ea)];continue;case'4':process[_0x1d3b16(0x21f)]['BROWSERSTACK_TESTHUB_UUID']=_0x24d286[_0x1d3b16(0x1ea)];continue;}break;}},exports['logBuildError']=(_0x59df,_0x4d855d='')=>{const _0x53c3dd=a153_0x3266a3,_0x1adf8b={};_0x1adf8b[_0x53c3dd(0x1ef)]=function(_0x1c4787,_0x52e228){return _0x1c4787===_0x52e228;};const _0x4ff14c=_0x1adf8b;if(_0x4ff14c[_0x53c3dd(0x1ef)](_0x59df,undefined)){logger[_0x53c3dd(0x24b)](_0x4d855d[_0x53c3dd(0x277)]()+_0x53c3dd(0x261));return;}for(const _0x4f3f45 of _0x59df['errors']){const _0x1b0f7d=_0x4f3f45['key'],_0x449115=_0x4f3f45[_0x53c3dd(0x24e)];if(_0x449115)switch(_0x1b0f7d){case testHubConstants[_0x53c3dd(0x1e4)][_0x53c3dd(0x26c)]:logger[_0x53c3dd(0x24b)](_0x449115);break;case testHubConstants[_0x53c3dd(0x1e4)][_0x53c3dd(0x22b)]:logger[_0x53c3dd(0x254)](_0x449115);break;case testHubConstants['ERROR'][_0x53c3dd(0x248)]:logger['error'](_0x449115);break;default:logger[_0x53c3dd(0x24b)](_0x449115);}}};function a153_0x22a8(_0x54d44f,_0x155623){const _0x1897cc=a153_0x1897();return a153_0x22a8=function(_0x22a8af,_0x228fbc){_0x22a8af=_0x22a8af-0x1d2;let _0x4d4422=_0x1897cc[_0x22a8af];return _0x4d4422;},a153_0x22a8(_0x54d44f,_0x155623);}const jsonifyAccessibilityArray=(_0x256690,_0x2a0833,_0x2c9932)=>{const _0x1bcfb9=a153_0x3266a3,_0x2e9ca3={};return _0x256690[_0x1bcfb9(0x244)](_0x1e471b=>{_0x2e9ca3[_0x1e471b[_0x2a0833]]=_0x1e471b[_0x2c9932];}),_0x2e9ca3;};exports['setTestHubCommonMetaInfo']=_0xdb24cf=>{const _0x11c436=a153_0x3266a3;_0xdb24cf[_0x11c436(0x21c)]&&(process[_0x11c436(0x21f)][_0x11c436(0x23d)]=_0xdb24cf[_0x11c436(0x21c)]);_0xdb24cf[_0x11c436(0x25e)]&&(process[_0x11c436(0x21f)][_0x11c436(0x1de)]=_0xdb24cf[_0x11c436(0x25e)],logger[_0x11c436(0x233)]('BROWSERSTACK_TESTHUB_UUID:\x20'+_0xdb24cf[_0x11c436(0x25e)]));;},exports['shouldProcessEventForTesthub']=(_0x238f39='',_0x1a5e40='')=>{const _0x1352a3=a153_0x3266a3,_0x2f1dbd={'Odqqt':function(_0x137228){return _0x137228();},'sGPty':function(_0x4fdf10,_0xe96e9b){return _0x4fdf10===_0xe96e9b;},'oyVsk':_0x1352a3(0x278),'xvoBO':_0x1352a3(0x203),'avsCH':_0x1352a3(0x269),'INluZ':function(_0xb0a60f){return _0xb0a60f();},'oqjwS':_0x1352a3(0x24d),'EQOwQ':'HookRunFinished','YUsZh':function(_0x1fa7cc){return _0x1fa7cc();}};if(exports['isPercyBuild']()&&!exports[_0x1352a3(0x1d6)]()&&!_0x2f1dbd[_0x1352a3(0x232)](isTestObservabilitySession)){if(_0x2f1dbd['sGPty'](_0x1a5e40,_0x2f1dbd[_0x1352a3(0x209)]))return![];if([_0x2f1dbd[_0x1352a3(0x234)],_0x2f1dbd[_0x1352a3(0x1ff)]][_0x1352a3(0x1fc)](_0x238f39))return![];return!![];}if(exports[_0x1352a3(0x1d6)]()&&!_0x2f1dbd['INluZ'](isTestObservabilitySession)){if([_0x2f1dbd[_0x1352a3(0x27c)],_0x2f1dbd[_0x1352a3(0x272)],_0x2f1dbd[_0x1352a3(0x234)]][_0x1352a3(0x1fc)](_0x238f39))return![];return!![];}return exports[_0x1352a3(0x1d6)]()||_0x2f1dbd[_0x1352a3(0x216)](isTestObservabilitySession)||exports['isPercyBuild']();},exports['appendTesthubParams']=(_0x26bf5f,_0xdbb681,_0x48fee2='',_0x426894)=>{const _0x52fedd=a153_0x3266a3,_0x1eea26={};_0x1eea26[_0x52fedd(0x1fb)]=_0x52fedd(0x24d),_0x1eea26[_0x52fedd(0x1e8)]='HookRunFinished',_0x1eea26[_0x52fedd(0x23c)]=function(_0x45fdae,_0x4bcae5){return _0x45fdae===_0x4bcae5;},_0x1eea26['xbWVz']='bstackA11yShouldScan',_0x1eea26[_0x52fedd(0x24c)]='isAccessibilityPlatform',_0x1eea26['YtRxr']=_0x52fedd(0x270),_0x1eea26[_0x52fedd(0x243)]=function(_0x59aedc,_0x590409){return _0x59aedc&&_0x590409;},_0x1eea26[_0x52fedd(0x1dc)]=function(_0x2b1df7,_0x39343d){return _0x2b1df7+_0x39343d;},_0x1eea26[_0x52fedd(0x253)]=function(_0x2578a8,_0x43d5dc){return _0x2578a8+_0x43d5dc;},_0x1eea26[_0x52fedd(0x27a)]=function(_0x454a98,_0x224deb){return _0x454a98===_0x224deb;},_0x1eea26[_0x52fedd(0x275)]=_0x52fedd(0x26d),_0x1eea26[_0x52fedd(0x22c)]=function(_0x6ec97d,_0x51c37f){return _0x6ec97d&&_0x51c37f;},_0x1eea26[_0x52fedd(0x285)]='product_map';const _0x1e0bb6=_0x1eea26;if(![_0x1e0bb6[_0x52fedd(0x1fb)],_0x1e0bb6[_0x52fedd(0x1e8)]][_0x52fedd(0x1fc)](_0xdbb681)&&exports[_0x52fedd(0x1d6)]()){const _0x5afb4d={};if(_0x1e0bb6[_0x52fedd(0x23c)](_0x426894,FRAMEWORKS[_0x52fedd(0x201)])){const _0x42b7f2=globals[_0x52fedd(0x214)](_0x1e0bb6[_0x52fedd(0x27b)])||accessibilityHelper[_0x52fedd(0x237)](_0x48fee2[_0x52fedd(0x220)](),!![]),_0x4fea36=globals[_0x52fedd(0x214)](_0x1e0bb6[_0x52fedd(0x24c)]);_0x5afb4d[_0x1e0bb6['YtRxr']]=_0x1e0bb6[_0x52fedd(0x243)](_0x4fea36,_0x42b7f2);}if(_0x1e0bb6['jJSWS'](_0x426894,FRAMEWORKS[_0x52fedd(0x1fa)])){const _0x3779dd=_0x1e0bb6[_0x52fedd(0x1dc)](_0x1e0bb6[_0x52fedd(0x253)](_0x26bf5f['scopes']['join']('\x20'),'\x20'),_0x48fee2[_0x52fedd(0x263)]),_0x5b2090=globals['getGlobal'](_0x1e0bb6[_0x52fedd(0x27b)])||accessibilityHelper[_0x52fedd(0x237)](_0x3779dd,![]),_0x5dec0a=browserStackGlobals[_0x52fedd(0x224)];_0x5afb4d[_0x1e0bb6['YtRxr']]=_0x1e0bb6[_0x52fedd(0x243)](_0x5dec0a,_0x5b2090);}if(_0x1e0bb6[_0x52fedd(0x23c)](_0x426894,FRAMEWORKS[_0x52fedd(0x22e)])){if(_0x1e0bb6[_0x52fedd(0x27a)](_0xdbb681,_0x1e0bb6['tsnkH']))return;_0x5afb4d[_0x1e0bb6['YtRxr']]=PWTestDetails['getAccessibilityPlatformValidation'](_0x26bf5f[_0x52fedd(0x1df)]);}if(_0x1e0bb6[_0x52fedd(0x27a)](_0x426894,FRAMEWORKS['CODECEPT'])){const _0x4b1623=accessibilityHelper[_0x52fedd(0x237)](_0x48fee2[_0x52fedd(0x220)](),!![]),_0x54f01a=global[_0x52fedd(0x223)];_0x5afb4d[_0x1e0bb6[_0x52fedd(0x1e9)]]=_0x1e0bb6[_0x52fedd(0x243)](_0x54f01a,_0x4b1623);}if(_0x1e0bb6[_0x52fedd(0x27a)](_0x426894,FRAMEWORKS['CUCUMBER'])){const _0x202642=accessibilityHelper[_0x52fedd(0x237)](null,![],_0x26bf5f[_0x52fedd(0x256)]),_0x546365=globals['getGlobal'](_0x1e0bb6[_0x52fedd(0x24c)]);_0x5afb4d[_0x1e0bb6['YtRxr']]=_0x1e0bb6[_0x52fedd(0x22c)](_0x546365,_0x202642);}_0x26bf5f[_0x1e0bb6[_0x52fedd(0x285)]]=_0x5afb4d;}},exports[a153_0x3266a3(0x1f7)]=_0x57281b=>{const _0x20a1df=a153_0x3266a3,_0x43ee27={};_0x43ee27[_0x20a1df(0x1e5)]=function(_0x4c5765,_0xc6fd24){return _0x4c5765>_0xc6fd24;},_0x43ee27[_0x20a1df(0x259)]=function(_0x49d855,_0x517771){return _0x49d855>_0x517771;};const _0x4ff768=_0x43ee27;let _0x12fe66={};if(_0x4ff768[_0x20a1df(0x1e5)](Object['keys'](testData)['length'],0x0))return testData;_0x12fe66=JestTestDetails[_0x20a1df(0x279)]();if(_0x4ff768[_0x20a1df(0x259)](Object[_0x20a1df(0x1f1)](_0x12fe66)[_0x20a1df(0x258)],0x0))return _0x12fe66;return _0x12fe66;},exports[a153_0x3266a3(0x282)]=(_0x3a5618,_0xac05fd={})=>{const _0xe44d9d=a153_0x3266a3;if(bsSetupHelper[_0xe44d9d(0x204)](_0xac05fd['test_run']))return;switch(_0x3a5618){case FRAMEWORKS[_0xe44d9d(0x201)]:testData=_0xac05fd['test_run'];break;case FRAMEWORKS[_0xe44d9d(0x1fa)]:JestTestDetails[_0xe44d9d(0x235)](_0xac05fd['test_run']);break;default:break;}},exports[a153_0x3266a3(0x212)]=_0x1b5aa3=>{const _0x572d04=a153_0x3266a3,_0x32465d={};_0x32465d[_0x572d04(0x228)]=function(_0xdb1f04,_0x300140){return _0xdb1f04!==_0x300140;},_0x32465d[_0x572d04(0x260)]=function(_0x4ade8a,_0x16b841){return _0x4ade8a!==_0x16b841;},_0x32465d['Zubdx']=function(_0x3e68ca,_0x761260){return _0x3e68ca!==_0x761260;};const _0x1b24e8=_0x32465d;if(_0x1b24e8[_0x572d04(0x228)](_0x1b5aa3[_0x572d04(0x270)],null)&&_0x1b24e8[_0x572d04(0x260)](_0x1b5aa3[_0x572d04(0x270)],undefined))return _0x1b5aa3[_0x572d04(0x270)];let _0x2b7cc8=![],_0x24188f=![];if(_0x1b5aa3[_0x572d04(0x273)])for(const _0x22f066 of _0x1b5aa3[_0x572d04(0x273)]){_0x1b24e8['XcXgi'](_0x22f066[_0x572d04(0x270)],null)&&_0x1b24e8[_0x572d04(0x264)](_0x22f066[_0x572d04(0x270)],undefined)&&(_0x2b7cc8=_0x2b7cc8||bsSetupHelper[_0x572d04(0x1e7)](_0x22f066['accessibility']),_0x24188f=!![]);}if(_0x24188f)return _0x2b7cc8;return null;},exports['getTestOrchestrationBuildStartData']=_0x498bf9=>{const _0x4a1585=new OrchestrationUtils(_0x498bf9);return _0x4a1585['getBuildStartData']();},exports[a153_0x3266a3(0x236)]=_0xe8e61f=>{const _0x3e3c55=a153_0x3266a3,_0x29f597={'otEjl':function(_0xfae5a){return _0xfae5a();}};let _0x427d9c=![],_0x24b73e=![];if(bsSetupHelper[_0x3e3c55(0x1da)]()&&_0xe8e61f[_0x3e3c55(0x1d4)])_0x24b73e=!![];else bsSetupHelper[_0x3e3c55(0x1da)]()&&(_0x427d9c=!![]);return Object['assign']({'observability':_0x29f597[_0x3e3c55(0x242)](isTestObservabilitySession),'accessibility':exports[_0x3e3c55(0x212)](_0xe8e61f),'percy':_0xe8e61f[_0x3e3c55(0x210)]||![],'automate':_0x427d9c,'app_automate':_0x24b73e,'turboscale':bsSetupHelper[_0x3e3c55(0x213)](_0xe8e61f),'lts':LoadTestModule['isLTSSession'](_0xe8e61f)},bsSetupHelper['getCentralUser']());};
@@ -1 +1 @@
1
- const a153_0x3a1329=a153_0x5505;function a153_0x5212(){const _0x1340f9=['cancel','23300433HEvVQB','4276YwRMBR','exports','DeoAJ','2392040OwHvYq','fireFunnelTestEvent','63bGQhpP','7523784cYIkdi','1876852PDOETj','3273rZJmbd','UPbUI','972300KZURBT','1474480QuBjkP'];a153_0x5212=function(){return _0x1340f9;};return a153_0x5212();}(function(_0x102e2c,_0x4c2a50){const _0x1d5b32=a153_0x5505,_0x1e204f=_0x102e2c();while(!![]){try{const _0x1fcda3=-parseInt(_0x1d5b32(0x94))/0x1+parseInt(_0x1d5b32(0x90))/0x2+-parseInt(_0x1d5b32(0x95))/0x3*(-parseInt(_0x1d5b32(0x8d))/0x4)+parseInt(_0x1d5b32(0x98))/0x5+parseInt(_0x1d5b32(0x97))/0x6*(-parseInt(_0x1d5b32(0x92))/0x7)+-parseInt(_0x1d5b32(0x93))/0x8+parseInt(_0x1d5b32(0x8c))/0x9;if(_0x1fcda3===_0x4c2a50)break;else _0x1e204f['push'](_0x1e204f['shift']());}catch(_0x4ba8aa){_0x1e204f['push'](_0x1e204f['shift']());}}}(a153_0x5212,0xece75));const utilities=require('./utilities');function a153_0x5505(_0x3d3023,_0x3101fe){const _0x5212fa=a153_0x5212();return a153_0x5505=function(_0x5505b2,_0x5c9831){_0x5505b2=_0x5505b2-0x8c;let _0x21befa=_0x5212fa[_0x5505b2];return _0x21befa;},a153_0x5505(_0x3d3023,_0x3101fe);}module[a153_0x3a1329(0x8e)]=(_0x573859,_0x9d624a,_0x4a0d26,_0x40ea65,_0x28aeca,_0x881249)=>{const _0x2533a1=a153_0x3a1329,_0x53d1a8={'UPbUI':function(_0x3b6060,_0x514caa){return _0x3b6060-_0x514caa;},'DeoAJ':function(_0x31a639,_0x3510e1){return _0x31a639(_0x3510e1);},'jgWHT':function(_0x56d07a,_0x1c5789,_0x1cbe67){return _0x56d07a(_0x1c5789,_0x1cbe67);},'dpTOb':function(_0x3f058a,_0x4ca4ae){return _0x3f058a(_0x4ca4ae);}};let _0x54d6e1,_0x3a045c=![];const _0x162444=new Promise((_0x5bd4b2,_0x4919f7)=>{_0x54d6e1=_0x53d1a8['jgWHT'](setTimeout,()=>{const _0x46a830=a153_0x5505;if(!_0x3a045c){const _0x54fa0b={'status':''+_0x9d624a,'timeTaken':_0x53d1a8[_0x46a830(0x96)](new Date(),_0x40ea65)};utilities[_0x46a830(0x91)](_0x4a0d26,_0x54fa0b,_0x28aeca,_0x881249),_0x53d1a8[_0x46a830(0x8f)](_0x4919f7,new Error(_0x9d624a));}},_0x573859);});return _0x162444[_0x2533a1(0x99)]=()=>{_0x3a045c=!![],_0x53d1a8['dpTOb'](clearTimeout,_0x54d6e1);},_0x162444;};
1
+ const a154_0x38f8b2=a154_0x401a;(function(_0x510dd1,_0x765eb9){const _0x1c976f=a154_0x401a,_0x5bf2c2=_0x510dd1();while(!![]){try{const _0x742309=parseInt(_0x1c976f(0x1d6))/0x1*(-parseInt(_0x1c976f(0x1d9))/0x2)+-parseInt(_0x1c976f(0x1dd))/0x3*(-parseInt(_0x1c976f(0x1cd))/0x4)+-parseInt(_0x1c976f(0x1de))/0x5+-parseInt(_0x1c976f(0x1d4))/0x6*(parseInt(_0x1c976f(0x1cc))/0x7)+parseInt(_0x1c976f(0x1ce))/0x8*(parseInt(_0x1c976f(0x1d8))/0x9)+parseInt(_0x1c976f(0x1d2))/0xa*(parseInt(_0x1c976f(0x1d1))/0xb)+parseInt(_0x1c976f(0x1cf))/0xc*(parseInt(_0x1c976f(0x1d7))/0xd);if(_0x742309===_0x765eb9)break;else _0x5bf2c2['push'](_0x5bf2c2['shift']());}catch(_0x26d41c){_0x5bf2c2['push'](_0x5bf2c2['shift']());}}}(a154_0x4ede,0xb8edd));const utilities=require('./utilities');function a154_0x4ede(){const _0x24e8c0=['19377AQbbqz','28SCyqdm','janLM','fireFunnelTestEvent','YuVeL','262869LVgoRc','1666075kXAzXk','416087MUYyqD','44kfCMfx','1304ddwmgl','32556ELLBqI','JHwiv','196999kfLscC','580ZJOdUT','cancel','96RTifxi','exports','95133tMfAIy','4888hwTSPX'];a154_0x4ede=function(){return _0x24e8c0;};return a154_0x4ede();}function a154_0x401a(_0x425e1e,_0x272788){const _0x4ede5c=a154_0x4ede();return a154_0x401a=function(_0x401a7e,_0x49a3c0){_0x401a7e=_0x401a7e-0x1cc;let _0x49bb02=_0x4ede5c[_0x401a7e];return _0x49bb02;},a154_0x401a(_0x425e1e,_0x272788);}module[a154_0x38f8b2(0x1d5)]=(_0xa7de61,_0x2df61c,_0x489ab5,_0x493a3d,_0x11b1a8,_0x4f4786)=>{const _0x207679=a154_0x38f8b2,_0x5e73dd={'JHwiv':function(_0x542097,_0x2878b7){return _0x542097-_0x2878b7;},'janLM':function(_0x330fdb,_0x410627){return _0x330fdb(_0x410627);},'wRfMI':function(_0x4d6920,_0x2bd21c,_0x158f18){return _0x4d6920(_0x2bd21c,_0x158f18);},'YuVeL':function(_0x6df442,_0x1b576f){return _0x6df442(_0x1b576f);}};let _0x2908e0,_0xfc4535=![];const _0x5d1a70=new Promise((_0x1258aa,_0x3e7207)=>{_0x2908e0=_0x5e73dd['wRfMI'](setTimeout,()=>{const _0x4c2eaf=a154_0x401a;if(!_0xfc4535){const _0x4e23c7={'status':''+_0x2df61c,'timeTaken':_0x5e73dd[_0x4c2eaf(0x1d0)](new Date(),_0x493a3d)};utilities[_0x4c2eaf(0x1db)](_0x489ab5,_0x4e23c7,_0x11b1a8,_0x4f4786),_0x5e73dd[_0x4c2eaf(0x1da)](_0x3e7207,new Error(_0x2df61c));}},_0xa7de61);});return _0x5d1a70[_0x207679(0x1d3)]=()=>{const _0x5905d3=_0x207679;_0xfc4535=!![],_0x5e73dd[_0x5905d3(0x1dc)](clearTimeout,_0x2908e0);},_0x5d1a70;};
@@ -1 +1 @@
1
- const a154_0x5dced7=a154_0x39a8;function a154_0x3630(){const _0x396d46=['2951242JjhWjf','\x20response\x20-\x20','object','getUserName','content-type','isModifiable','errorMessage','getTurboScaleSessionsList','HIxAl','version','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','parse','isBrowserstackInfra','Wmgdu','EvxHy','join','stringify','ZZnYb','keys','getFrameworkVersion','sdkRunId','MaBDn','./performance/performance-tester','app','JyRTa','codeceptjs','16484760CQEgxw','values','null','433155WUQlPR','tjFMj','aecbY','sMtyt','5FTcTzs','vMDIN','azqcF','source','osVersion','./globals','getTurboScaleBuildLink','ENV_VAR','debug','seleniumVersion','format','kLqZx',',\x20testhub\x20id:\x20','getPackageVersion','QiHcn','getOptimalHubUrl','\x20:\x20','2250014DXEDdB','user_killed','API\x20Event\x20','getGlobal','getSessionsList','nRNYv','132FhRNdr','AUTOMATE','W_OK','AUTOMATE_PRODUCTS','replace','../helpers/testhub/constants','SwRwm','browserVersion','./testhub/utils','../bin/utils/constants','7597752KnRvaZ','EGhnc','4536882AevlYS','mTIaf','finishedMetadata','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','JYLmk','unhandledErrors','getStackTraceAsString','1601410SEqHSB','assign','EzPpX','config','[REDACTED]','type','SDK\x20run\x20ended\x20for\x20id:\x20','APP_AUTOMATE','X_OK','undefined','browserStackConfig','info','3eqVWNs','nodeRequest','stack','forEach','toString','getBuildLink','buildIdentifier','BROWSERSTACK_TESTHUB_UUID','application/json','playwrightVersion','./helper','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','SDKTestSuccessful','getAccessKey','hostname','util','./test-observability/utils','apply','getTestFrameworkDetails','qAwII','body','HZooQ','fireFunnelTestEvent','accessSync','Playwright','every','requirePWModule','browser','unknown','mfdoj','length','all','isNullOrEmpty','selenium-webdriver','Directory\x20','GtMJW','wuFnn','BAOoY','nodejs','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','wVPpg','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','notifyUpdate','Failed\x20to\x20set\x20directory\x20access:\x20','OGcrG','deviceName','error','chmodSync','tests','Error\x20in\x20firing\x20request\x20to\x20','vUUiu','event_properties','winstonLogger','8KgoLCS','JFQuz','framework'];a154_0x3630=function(){return _0x396d46;};return a154_0x3630();}function a154_0x39a8(_0x9a3c7e,_0x15c2d8){const _0x36305a=a154_0x3630();return a154_0x39a8=function(_0x39a8de,_0x43aa2d){_0x39a8de=_0x39a8de-0x157;let _0x487a2d=_0x36305a[_0x39a8de];return _0x487a2d;},a154_0x39a8(_0x9a3c7e,_0x15c2d8);}(function(_0x5c7ee9,_0x3e7996){const _0x257b23=a154_0x39a8,_0x30b14b=_0x5c7ee9();while(!![]){try{const _0x572b3f=parseInt(_0x257b23(0x164))/0x1+parseInt(_0x257b23(0x179))/0x2*(-parseInt(_0x257b23(0x19e))/0x3)+parseInt(_0x257b23(0x189))/0x4*(parseInt(_0x257b23(0x168))/0x5)+-parseInt(_0x257b23(0x18b))/0x6+-parseInt(_0x257b23(0x1d6))/0x7*(-parseInt(_0x257b23(0x1d3))/0x8)+-parseInt(_0x257b23(0x161))/0x9+-parseInt(_0x257b23(0x192))/0xa*(-parseInt(_0x257b23(0x17f))/0xb);if(_0x572b3f===_0x3e7996)break;else _0x30b14b['push'](_0x30b14b['shift']());}catch(_0x18e4cd){_0x30b14b['push'](_0x30b14b['shift']());}}}(a154_0x3630,0xeb219));const os=require('os'),util=require(a154_0x5dced7(0x1ad)),fs=require('fs'),{getProductMap}=require(a154_0x5dced7(0x187)),logger=require('./logger')[a154_0x5dced7(0x1d2)],constants=require('../bin/utils/constants'),testHubConstants=require(a154_0x5dced7(0x184)),{getTransformPath}=require('../bin/playwright/reporter/pwUtils'),{FUNNEL_INSTRUMENTATION_API_URL}=require(a154_0x5dced7(0x188)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a154_0x5dced7(0x1a8)),PerformanceTester=require(a154_0x5dced7(0x15d)),globals=require(a154_0x5dced7(0x16d)),helper=require(a154_0x5dced7(0x1a8)),{isTestObservabilitySession}=require(a154_0x5dced7(0x1ae));let unhandledErrors='';exports[a154_0x5dced7(0x1b4)]=async(_0x5f9ba1,_0x50a5a1={},_0x3203bb,_0x4a11a7,_0x57cd9c=![])=>{const _0xb2b532=a154_0x5dced7,_0x561447={'JYLmk':function(_0x58c43b,_0x3f3fb5){return _0x58c43b===_0x3f3fb5;},'tjFMj':_0xb2b532(0x1d8),'JFQuz':function(_0x5deb25,_0x1e9dd0){return _0x5deb25>_0x1e9dd0;},'wVPpg':_0xb2b532(0x1ce),'MaBDn':function(_0x5683c9){return _0x5683c9();},'aecbY':function(_0x597d32){return _0x597d32();},'OGcrG':function(_0x1900cb,_0x3f31b1){return _0x1900cb==_0x3f31b1;},'wuFnn':_0xb2b532(0x163),'nRNYv':_0xb2b532(0x19b),'zSjTb':_0xb2b532(0x160),'fdpEV':function(_0x3fc429,_0x299171){return _0x3fc429!==_0x299171;},'BAOoY':_0xb2b532(0x1b6),'tKPnF':function(_0x100e8c,_0x579e47){return _0x100e8c===_0x579e47;},'ZZnYb':_0xb2b532(0x1cc),'QiHcn':function(_0x2782b5,_0x36345e){return _0x2782b5+_0x36345e;},'HIxAl':_0xb2b532(0x1c7),'bjJNe':'_buildHashedId','XfmLe':function(_0x4cfe3d,_0x2a47d3){return _0x4cfe3d(_0x2a47d3);},'nriQb':function(_0x3038b5,_0x48113b){return _0x3038b5(_0x48113b);},'qAwII':_0xb2b532(0x1ba),'MhVrh':_0xb2b532(0x1c4),'vUUiu':function(_0x19c26a,_0x553ba8){return _0x19c26a===_0x553ba8;},'EvxHy':_0xb2b532(0x1aa),'EzPpX':function(_0x590207,_0x313c06){return _0x590207===_0x313c06;},'UmAbx':function(_0x263acb){return _0x263acb();},'Abapr':_0xb2b532(0x1bf),'vMDIN':_0xb2b532(0x1a6),'HZooQ':_0xb2b532(0x196),'SwRwm':'POST'};let _0x313986=[];if(helper[_0xb2b532(0x1e2)]()&&_0x561447[_0xb2b532(0x15c)](isTestObservabilitySession))_0x313986=_0x3203bb[_0xb2b532(0x15e)]?constants['APP_AUTOMATE_PRODUCTS']:constants[_0xb2b532(0x182)];else{if(_0x561447[_0xb2b532(0x166)](isTestObservabilitySession))_0x313986=constants[_0xb2b532(0x1e0)];else helper[_0xb2b532(0x1e2)]()&&(_0x313986=_0x3203bb[_0xb2b532(0x15e)]?constants[_0xb2b532(0x199)]:constants[_0xb2b532(0x180)]);}let _0x2bc309=_0x3203bb[_0xb2b532(0x1a4)];if(_0x561447[_0xb2b532(0x1ca)](_0x2bc309,null))_0x2bc309=_0x561447[_0xb2b532(0x1c2)];else _0x561447['JYLmk'](_0x2bc309,undefined)&&(_0x2bc309=_0x561447[_0xb2b532(0x17e)]);unhandledErrors&&_0x561447[_0xb2b532(0x1d4)](unhandledErrors['length'],0x0)&&(_0x50a5a1['globalException']=unhandledErrors);global[_0xb2b532(0x15b)]&&(_0x50a5a1[_0xb2b532(0x15b)]=global[_0xb2b532(0x15b)]);try{if(_0x50a5a1[_0xb2b532(0x1cc)]){if(_0x561447[_0xb2b532(0x18f)](_0x4a11a7,_0x561447['zSjTb'])&&_0x561447[_0xb2b532(0x1d4)](_0x50a5a1[_0xb2b532(0x1cc)][_0xb2b532(0x1bc)],0x0)){const _0x125464={};_0x125464['os']='',_0x125464[_0xb2b532(0x16c)]='',_0x125464[_0xb2b532(0x1b9)]='',_0x125464[_0xb2b532(0x186)]='';const _0x16ea60=_0x125464;let _0x4b2aad={};const _0x518b25=_0x50a5a1[_0xb2b532(0x1cc)];_0x4b2aad=_0x518b25['reduce']((_0x156a75,_0x231f2d)=>{for(const _0x5e07e5 in _0x231f2d){_0x156a75[_0x5e07e5]=_0x231f2d[_0x5e07e5];}return _0x156a75;},{});const _0x11f6a={};_0x11f6a[_0xb2b532(0x1ce)]=_0x4b2aad,_0x50a5a1[_0xb2b532(0x1cc)]=[Object[_0xb2b532(0x193)]({},_0x16ea60,_0x11f6a)];}else{let _0x2110ef=0x0;const _0x45668e=_0x561447['fdpEV'](_0x4a11a7,_0x561447[_0xb2b532(0x1c3)])?JSON[_0xb2b532(0x1e1)](_0x50a5a1[_0xb2b532(0x1cc)]):_0x50a5a1[_0xb2b532(0x1cc)],_0x2e6fca=Object[_0xb2b532(0x162)](_0x45668e);_0x2e6fca[_0xb2b532(0x1a1)](_0x3650e2=>{const _0x5a4d3d=_0xb2b532;if(_0x561447[_0x5a4d3d(0x18f)](typeof _0x3650e2,_0x561447[_0x5a4d3d(0x165)])){const _0x362d74=Object[_0x5a4d3d(0x162)](_0x3650e2);!_0x362d74[_0x5a4d3d(0x1b7)](_0x22b99f=>_0x22b99f===null||_0x22b99f===undefined||_0x22b99f==='')&&(_0x2110ef+=0x1);}});if(_0x561447['tKPnF'](_0x2110ef,0x0))delete _0x50a5a1[_0x561447[_0xb2b532(0x158)]];else{const _0x51ec8c=[];Object[_0xb2b532(0x159)](_0x45668e)[_0xb2b532(0x1a1)](_0x36be4a=>{const _0x21051f=_0xb2b532,[_0x48d710,_0xc5db7,_0xf836e0,_0x11d471]=_0x36be4a['split'](',\x20');let _0x49a66b={};if(!_0x11d471){const _0x15153b={};_0x15153b[_0x21051f(0x1cb)]=_0x48d710,_0x15153b[_0x21051f(0x16c)]=_0xc5db7,_0x15153b[_0x21051f(0x1b9)]=_0xf836e0,_0x49a66b=_0x15153b;}else{const _0x29e3a6={};_0x29e3a6['os']=_0x48d710,_0x29e3a6[_0x21051f(0x16c)]=_0xc5db7,_0x29e3a6['browser']=_0xf836e0,_0x29e3a6[_0x21051f(0x186)]=_0x11d471,_0x49a66b=_0x29e3a6;}const _0x20b5a8={},_0x84cf26=_0x45668e[_0x36be4a];Object[_0x21051f(0x159)](_0x84cf26)[_0x21051f(0x1a1)](_0x81ac0f=>{const _0x1719e5=_0x21051f;_0x561447[_0x1719e5(0x1d4)](_0x84cf26[_0x81ac0f][_0x1719e5(0x1bc)],0x0)&&(_0x20b5a8[_0x81ac0f]=_0x84cf26[_0x81ac0f]);}),_0x561447[_0x21051f(0x1d4)](Object['keys'](_0x20b5a8)[_0x21051f(0x1bc)],0x0)&&(_0x49a66b[_0x561447[_0x21051f(0x1c6)]]=_0x20b5a8,_0x51ec8c['push'](_0x49a66b));}),_0x561447[_0xb2b532(0x1d4)](_0x51ec8c[_0xb2b532(0x1bc)],0x0)?_0x50a5a1['error']=_0x51ec8c:delete _0x50a5a1[_0x561447[_0xb2b532(0x158)]];}}}}catch(_0x575ab9){delete _0x50a5a1[_0x561447[_0xb2b532(0x158)]],logger[_0xb2b532(0x170)](_0x561447[_0xb2b532(0x176)](_0x561447[_0xb2b532(0x1de)],_0x575ab9));}const _0x1beffd=helper[_0xb2b532(0x1b0)](_0x3203bb,_0x3203bb[_0xb2b532(0x1d5)]),_0xada0e0={'userName':helper['getUserName'](_0x3203bb),'accessKey':helper[_0xb2b532(0x1ab)](_0x3203bb),'event_type':_0x5f9ba1,'detectedFramework':_0x4a11a7,'buildHashedId':globals[_0xb2b532(0x17c)](_0x561447['bjJNe']),'optimalHubUrl':helper[_0xb2b532(0x177)](),'event_properties':{'testhub_uuid':process['env'][testHubConstants[_0xb2b532(0x16f)][_0xb2b532(0x1a5)]]||'','sdkRunId':global[_0xb2b532(0x15b)],'product_map':_0x561447['XfmLe'](getProductMap,_0x3203bb),'productMap':_0x561447['nriQb'](getProductMap,_0x3203bb),'language_framework':_0x3203bb[_0xb2b532(0x16b)]||_0x561447[_0xb2b532(0x1b1)],'referrer':helper['getNodeAgent'](_0x4a11a7),'framework':_0x3203bb[_0xb2b532(0x1d5)],'frameworkVersion':helper[_0xb2b532(0x15a)](_0x4a11a7),'automationFramework':_0x1beffd['name'],'automationFrameworkVersion':_0x1beffd[_0xb2b532(0x1df)],'language':_0x561447['MhVrh'],'languageVersion':process[_0xb2b532(0x1df)],'product':_0x313986,'buildName':_0x3203bb['buildName']||_0x561447[_0xb2b532(0x17e)],'buildIdentifier':_0x2bc309,'os':os[_0xb2b532(0x197)]()||_0x561447[_0xb2b532(0x1b1)],'hostname':os[_0xb2b532(0x1ac)]()||_0x561447[_0xb2b532(0x1b1)],..._0x50a5a1,'isCLIEnabled':_0x57cd9c}};try{_0x561447[_0xb2b532(0x1d0)](_0x5f9ba1,_0x561447[_0xb2b532(0x1e4)])&&(_0xada0e0[_0xb2b532(0x1d1)][_0xb2b532(0x19c)]=helper['sanitizeBrowserStackConfig'](_0x3203bb)),_0x561447[_0xb2b532(0x194)](_0x4a11a7,_0x561447[_0xb2b532(0x1c3)])?_0xada0e0[_0xb2b532(0x1d1)][_0xb2b532(0x1a7)]=helper[_0xb2b532(0x1b8)][_0xb2b532(0x1af)](null,_0x561447['UmAbx'](getTransformPath),!![]):_0xada0e0['event_properties'][_0xb2b532(0x171)]=helper[_0xb2b532(0x175)](_0x561447['Abapr']);}catch(_0x28bdca){logger[_0xb2b532(0x170)](_0xb2b532(0x1c5)+_0x28bdca);}const _0x11a233={};_0x11a233[_0xb2b532(0x1da)]=_0x561447[_0xb2b532(0x169)];const _0xcacc7a={'headers':_0x11a233,'body':_0xada0e0,'auth':{'user':helper[_0xb2b532(0x1d9)](_0x3203bb),'pass':helper[_0xb2b532(0x1ab)](_0x3203bb)},'json':!![]};logger[_0xb2b532(0x170)](_0xb2b532(0x1a9)+JSON[_0xb2b532(0x157)](_0xcacc7a[_0xb2b532(0x1b2)])[_0xb2b532(0x183)](new RegExp(helper[_0xb2b532(0x1d9)](_0x3203bb),'g'),_0x561447[_0xb2b532(0x1b3)])[_0xb2b532(0x183)](new RegExp(helper[_0xb2b532(0x1ab)](_0x3203bb),'g'),_0x561447[_0xb2b532(0x1b3)]));try{const _0x121b2e=await helper[_0xb2b532(0x19f)](_0x561447[_0xb2b532(0x185)],FUNNEL_INSTRUMENTATION_API_URL,_0xcacc7a,_0x3203bb);logger['debug'](_0xb2b532(0x17b)+_0x5f9ba1+_0xb2b532(0x1d7)+util[_0xb2b532(0x172)]('%j',_0x121b2e));}catch(_0x20a32b){logger[_0xb2b532(0x170)](_0xb2b532(0x1cf)+FUNNEL_INSTRUMENTATION_API_URL+_0xb2b532(0x178)+util[_0xb2b532(0x172)](_0x20a32b));}},exports['finalExecution']=async(_0x3f3c67,_0x4cbc54=![])=>{const _0x39ddb0=a154_0x5dced7,_0x3d45b6={'kLqZx':function(_0x11a108){return _0x11a108();},'Wmgdu':_0x39ddb0(0x18d),'xCZFU':_0x39ddb0(0x17a),'srOMe':_0x39ddb0(0x1aa),'azqcF':function(_0x46f3ef,_0x5c64fe,_0x38560c){return _0x46f3ef(_0x5c64fe,_0x38560c);},'mTIaf':function(_0x424563,_0x33e329){return _0x424563+_0x33e329;},'sMtyt':_0x39ddb0(0x18e)};try{await _0x3f3c67['stopPercy'](),_0x3d45b6[_0x39ddb0(0x173)](printNudgeLocalNotSetError);const _0x3fc8f9={};_0x3fc8f9[_0x39ddb0(0x1cc)]=_0x3f3c67[_0x39ddb0(0x1dc)]?_0x3f3c67[_0x39ddb0(0x1dc)]:'{}';const _0x407fc0=_0x3fc8f9,_0x4eb09d=Object[_0x39ddb0(0x193)]({},_0x407fc0);!!_0x3f3c67['killSignal']&&(_0x4eb09d[_0x3d45b6[_0x39ddb0(0x1e3)]]={'reason':_0x3d45b6['xCZFU'],'signal':_0x3f3c67['killSignal']});unhandledErrors=_0x3f3c67[_0x39ddb0(0x190)][_0x39ddb0(0x1e5)]('\x0a');let _0x44c98a,_0x1435ae,_0x233ba0;helper['isTurboScaleSession'](_0x3f3c67['config'])?([_0x44c98a,_0x1435ae]=await helper[_0x39ddb0(0x16e)](_0x3f3c67[_0x39ddb0(0x195)]),[_0x233ba0]=await Promise[_0x39ddb0(0x1bd)]([helper[_0x39ddb0(0x1dd)](_0x44c98a,_0x3f3c67['config']),exports['fireFunnelTestEvent'](_0x3d45b6['srOMe'],_0x4eb09d,_0x3f3c67['config'],_0x3f3c67[_0x39ddb0(0x1d5)],_0x4cbc54)])):([_0x44c98a,_0x1435ae]=await helper[_0x39ddb0(0x1a3)](_0x3f3c67[_0x39ddb0(0x195)]),[_0x233ba0]=await Promise[_0x39ddb0(0x1bd)]([helper[_0x39ddb0(0x17d)](_0x44c98a,_0x3f3c67[_0x39ddb0(0x195)]),exports[_0x39ddb0(0x1b4)](_0x3d45b6['srOMe'],_0x4eb09d,_0x3f3c67[_0x39ddb0(0x195)],_0x3f3c67[_0x39ddb0(0x1d5)],_0x4cbc54)])),_0x233ba0&&await _0x3d45b6[_0x39ddb0(0x16a)](generateCIArtifacts,_0x233ba0,_0x1435ae),logger[_0x39ddb0(0x19d)](_0x39ddb0(0x198)+_0x3f3c67[_0x39ddb0(0x15b)]+_0x39ddb0(0x174)+process['env']['BROWSERSTACK_TESTHUB_UUID']),await helper['sendLogs'](_0x3f3c67['config']);}catch(_0x2c7145){logger['debug'](_0x3d45b6[_0x39ddb0(0x18c)](_0x3d45b6[_0x39ddb0(0x167)],_0x2c7145));}helper[_0x39ddb0(0x1c8)]();},exports[a154_0x5dced7(0x191)]=_0x4c733f=>{const _0x31980a=a154_0x5dced7,_0x20337f={'JyRTa':function(_0x4f4c4c,_0x589510){return _0x4f4c4c instanceof _0x589510;},'GtMJW':function(_0x27584f,_0x2601cf){return _0x27584f(_0x2601cf);}};try{if(_0x20337f[_0x31980a(0x15f)](_0x4c733f,Error))return _0x4c733f[_0x31980a(0x1a0)]||_0x4c733f[_0x31980a(0x1a2)]();return _0x20337f[_0x31980a(0x1c1)](String,_0x4c733f);}catch(_0x1e8343){return _0x4c733f?_0x4c733f[_0x31980a(0x1a2)]():'';}},exports[a154_0x5dced7(0x1be)]=_0x5e2835=>{const _0x218d2e=a154_0x5dced7,_0x4cdeaf={};_0x4cdeaf[_0x218d2e(0x1bb)]=function(_0x3ecefd,_0x1ccbd0){return _0x3ecefd===_0x1ccbd0;};const _0xba2b71=_0x4cdeaf;return!_0x5e2835||_0xba2b71[_0x218d2e(0x1bb)](_0x5e2835['trim'](),'');},exports[a154_0x5dced7(0x1db)]=_0x400b8a=>{const _0x2d93f7=a154_0x5dced7,_0xa4bf22={};_0xa4bf22[_0x2d93f7(0x18a)]=function(_0x230efa,_0x27bd57){return _0x230efa|_0x27bd57;};const _0x124e9b=_0xa4bf22;try{return fs[_0x2d93f7(0x1b5)](_0x400b8a,_0x124e9b['EGhnc'](fs['constants'][_0x2d93f7(0x181)],fs['constants'][_0x2d93f7(0x19a)])),!![];}catch(_0x590e7e){return![];}},exports['setReadWriteExecuteAccess']=_0x3db18c=>{const _0x599cd7=a154_0x5dced7;try{fs[_0x599cd7(0x1cd)](_0x3db18c,0x1ff),logger[_0x599cd7(0x170)](_0x599cd7(0x1c0)+_0x3db18c+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x1978a7){logger[_0x599cd7(0x1cc)](_0x599cd7(0x1c9)+exports['getStackTraceAsString'](_0x1978a7));}};
1
+ const a155_0x246a23=a155_0x5c15;(function(_0x586709,_0x3f97ae){const _0x522c4b=a155_0x5c15,_0x2f0763=_0x586709();while(!![]){try{const _0x53b886=-parseInt(_0x522c4b(0x1df))/0x1*(parseInt(_0x522c4b(0x1cd))/0x2)+-parseInt(_0x522c4b(0x253))/0x3*(-parseInt(_0x522c4b(0x254))/0x4)+-parseInt(_0x522c4b(0x1fd))/0x5+parseInt(_0x522c4b(0x22d))/0x6*(-parseInt(_0x522c4b(0x24e))/0x7)+parseInt(_0x522c4b(0x1f3))/0x8*(parseInt(_0x522c4b(0x203))/0x9)+parseInt(_0x522c4b(0x24b))/0xa+parseInt(_0x522c4b(0x229))/0xb*(parseInt(_0x522c4b(0x241))/0xc);if(_0x53b886===_0x3f97ae)break;else _0x2f0763['push'](_0x2f0763['shift']());}catch(_0x471fb1){_0x2f0763['push'](_0x2f0763['shift']());}}}(a155_0xc281,0xaa859));const os=require('os'),util=require(a155_0x246a23(0x243)),fs=require('fs'),{getProductMap}=require(a155_0x246a23(0x1e3)),logger=require(a155_0x246a23(0x1d7))['winstonLogger'],constants=require('../bin/utils/constants'),testHubConstants=require(a155_0x246a23(0x246)),{getTransformPath}=require('../bin/playwright/reporter/pwUtils'),{FUNNEL_INSTRUMENTATION_API_URL}=require('../bin/utils/constants'),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a155_0x246a23(0x1c2)),PerformanceTester=require(a155_0x246a23(0x20c)),globals=require(a155_0x246a23(0x235)),helper=require(a155_0x246a23(0x1c2)),{isTestObservabilitySession}=require('./test-observability/utils');function a155_0x5c15(_0x1f7684,_0x379be9){const _0xc281c9=a155_0xc281();return a155_0x5c15=function(_0x5c1546,_0x1d9dd6){_0x5c1546=_0x5c1546-0x1c2;let _0x56699c=_0xc281c9[_0x5c1546];return _0x56699c;},a155_0x5c15(_0x1f7684,_0x379be9);}let unhandledErrors='';function a155_0xc281(){const _0x5eec5c=['event_properties','13020KXxKib','isBrowserstackInfra','API\x20Event\x20','globalException','TAZeX','PMVDx','reduce','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','./globals','getNodeAgent','fireFunnelTestEvent','replace','X_OK','stopPercy','ZnNVB','requirePWModule','getAccessKey','AUTOMATE_PRODUCTS','constants','finishedMetadata','13812LEqmmx','osVersion','util','notifyUpdate','Ihqkk','../helpers/testhub/constants','getTestFrameworkDetails','setReadWriteExecuteAccess','killSignal','body','12267370neltwn','name','SDK\x20run\x20ended\x20for\x20id:\x20','1204BbVQuE','push','selenium-webdriver','keys','app','27PyxEve','402436LrZtXU','AlvpL','./helper','browser','config','bWcBL','browserVersion','object','bITkw','BROWSERSTACK_TESTHUB_UUID','IgNHZ','getBuildLink','IDMkI','92gGaGgW','jZrWB','every','stringify','source','deviceName','QgLBV','xwSVP','content-type','getTurboScaleBuildLink','./logger','seleniumVersion','[REDACTED]','getOptimalHubUrl','version','error','isModifiable','KOkPd','20781oPpJAd','JRwQB','application/json','info','./testhub/utils','TgzAm','getSessionsList','ahIYS','aOLiv','iHfCq','hubAllocation','stack','ESqsl','toString','qIJoo','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','EllnH','user_killed','assign','OChth','360NmBxJL','DDNJI','POST','getGlobal','sdkRunId','playwrightVersion','SDKTestSuccessful','isNullOrEmpty',',\x20testhub\x20id:\x20','framework','2785660CPldIO','ENV_VAR','KbzTx','buildName','getUserName','join','81990Uzwlux','unhandledErrors','tests','values','laNDZ','hostname','nodejs','\x20:\x20','parse','./performance/performance-tester','W_OK','TASDl','pBWpl','getPackageVersion','dmdhT','debug','qEnGs','Error\x20in\x20firing\x20request\x20to\x20','apply','LOyYu','trim','IvnfH','undefined','split','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','type','RjZjx','errorMessage','getTurboScaleSessionsList','all','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','getFrameworkVersion','chmodSync','getStackTraceAsString','_buildHashedId','length','unknown','forEach','407sOHWON','codeceptjs','env'];a155_0xc281=function(){return _0x5eec5c;};return a155_0xc281();}exports[a155_0x246a23(0x237)]=async(_0x138ff6,_0xeedf92={},_0x534c02,_0xef7f3d,_0x1eaa7e=![])=>{const _0x6dca42=a155_0x246a23,_0x4ccf27={'aOLiv':function(_0x11a034,_0x29abd7){return _0x11a034===_0x29abd7;},'DDNJI':_0x6dca42(0x1c7),'xwSVP':function(_0x1bf926,_0x346f41){return _0x1bf926>_0x346f41;},'bBtRF':'tests','TAZeX':function(_0x2b134f){return _0x2b134f();},'bWcBL':function(_0x2484b8){return _0x2484b8();},'CHjYu':function(_0x56fb01,_0x1756de){return _0x56fb01==_0x1756de;},'IgNHZ':'null','iHfCq':function(_0x535d9b,_0x23f8f4){return _0x535d9b===_0x23f8f4;},'IDMkI':_0x6dca42(0x219),'qIJoo':function(_0x72b47e,_0x17b142){return _0x72b47e>_0x17b142;},'qEnGs':function(_0x3c103a,_0x2bf59e){return _0x3c103a===_0x2bf59e;},'ahIYS':_0x6dca42(0x22a),'NlvRi':function(_0x2c8c60,_0x2b3854){return _0x2c8c60!==_0x2b3854;},'dmdhT':'Playwright','OChth':_0x6dca42(0x1dc),'GWyNe':function(_0x3abb74,_0x4d5ca5){return _0x3abb74+_0x4d5ca5;},'TASDl':_0x6dca42(0x234),'tUALd':_0x6dca42(0x225),'pBWpl':function(_0x3fa23f,_0x5ece01){return _0x3fa23f(_0x5ece01);},'PMVDx':function(_0x330aa9,_0x565093){return _0x330aa9(_0x565093);},'bITkw':_0x6dca42(0x227),'QgLBV':_0x6dca42(0x209),'RjZjx':_0x6dca42(0x1f9),'EllnH':_0x6dca42(0x250),'TbTpb':_0x6dca42(0x1e1),'ESqsl':_0x6dca42(0x1d9),'laNDZ':_0x6dca42(0x1f5)};let _0x5aec3f=[];if(helper[_0x6dca42(0x22e)]()&&_0x4ccf27[_0x6dca42(0x231)](isTestObservabilitySession))_0x5aec3f=_0x534c02['app']?constants['APP_AUTOMATE_PRODUCTS']:constants[_0x6dca42(0x23e)];else{if(_0x4ccf27[_0x6dca42(0x1c5)](isTestObservabilitySession))_0x5aec3f=constants['PRODUCT_IF_NOT_BROWSERSTACK_INFRA'];else helper[_0x6dca42(0x22e)]()&&(_0x5aec3f=_0x534c02[_0x6dca42(0x252)]?constants['APP_AUTOMATE']:constants['AUTOMATE']);}let _0x45a23c=_0x534c02['buildIdentifier'];if(_0x4ccf27['CHjYu'](_0x45a23c,null))_0x45a23c=_0x4ccf27[_0x6dca42(0x1ca)];else _0x4ccf27[_0x6dca42(0x1e8)](_0x45a23c,undefined)&&(_0x45a23c=_0x4ccf27[_0x6dca42(0x1cc)]);unhandledErrors&&_0x4ccf27[_0x6dca42(0x1ed)](unhandledErrors[_0x6dca42(0x226)],0x0)&&(_0xeedf92[_0x6dca42(0x230)]=unhandledErrors);global[_0x6dca42(0x1f7)]&&(_0xeedf92[_0x6dca42(0x1f7)]=global[_0x6dca42(0x1f7)]);try{if(_0xeedf92[_0x6dca42(0x1dc)]){if(_0x4ccf27[_0x6dca42(0x213)](_0xef7f3d,_0x4ccf27[_0x6dca42(0x1e6)])&&_0x4ccf27[_0x6dca42(0x1ed)](_0xeedf92['error'][_0x6dca42(0x226)],0x0)){const _0x3a35d0={};_0x3a35d0['os']='',_0x3a35d0[_0x6dca42(0x242)]='',_0x3a35d0['browser']='',_0x3a35d0[_0x6dca42(0x1c6)]='';const _0x3b45d0=_0x3a35d0;let _0x16b787={};const _0x5f92a6=_0xeedf92[_0x6dca42(0x1dc)];_0x16b787=_0x5f92a6[_0x6dca42(0x233)]((_0x21493d,_0x5ddce2)=>{for(const _0x561321 in _0x5ddce2){_0x21493d[_0x561321]=_0x5ddce2[_0x561321];}return _0x21493d;},{});const _0x4b559f={};_0x4b559f[_0x6dca42(0x205)]=_0x16b787,_0xeedf92[_0x6dca42(0x1dc)]=[Object[_0x6dca42(0x1f1)]({},_0x3b45d0,_0x4b559f)];}else{let _0x10e299=0x0;const _0x486d43=_0x4ccf27['NlvRi'](_0xef7f3d,_0x4ccf27[_0x6dca42(0x211)])?JSON[_0x6dca42(0x20b)](_0xeedf92['error']):_0xeedf92[_0x6dca42(0x1dc)],_0x1dc0e9=Object[_0x6dca42(0x206)](_0x486d43);_0x1dc0e9[_0x6dca42(0x228)](_0x2f4020=>{const _0x4cdfc7=_0x6dca42;if(_0x4ccf27[_0x4cdfc7(0x1e7)](typeof _0x2f4020,_0x4ccf27[_0x4cdfc7(0x1f4)])){const _0x222426=Object[_0x4cdfc7(0x206)](_0x2f4020);!_0x222426[_0x4cdfc7(0x1cf)](_0x4a2731=>_0x4a2731===null||_0x4a2731===undefined||_0x4a2731==='')&&(_0x10e299+=0x1);}});if(_0x4ccf27[_0x6dca42(0x1e8)](_0x10e299,0x0))delete _0xeedf92[_0x4ccf27[_0x6dca42(0x1f2)]];else{const _0x5e7d28=[];Object['keys'](_0x486d43)[_0x6dca42(0x228)](_0x47b0d0=>{const _0x145863=_0x6dca42,_0x4c3bee={'jZrWB':function(_0x331684,_0x5f3a43){const _0x2bf297=a155_0x5c15;return _0x4ccf27[_0x2bf297(0x1d4)](_0x331684,_0x5f3a43);}},[_0x12ec6d,_0x262475,_0x31040f,_0x471af6]=_0x47b0d0[_0x145863(0x21a)](',\x20');let _0x140b75={};if(!_0x471af6){const _0xd91b86={};_0xd91b86[_0x145863(0x1d2)]=_0x12ec6d,_0xd91b86['osVersion']=_0x262475,_0xd91b86[_0x145863(0x1c3)]=_0x31040f,_0x140b75=_0xd91b86;}else{const _0x5d9de5={};_0x5d9de5['os']=_0x12ec6d,_0x5d9de5[_0x145863(0x242)]=_0x262475,_0x5d9de5[_0x145863(0x1c3)]=_0x31040f,_0x5d9de5['browserVersion']=_0x471af6,_0x140b75=_0x5d9de5;}const _0x1dfab6={},_0x399269=_0x486d43[_0x47b0d0];Object['keys'](_0x399269)[_0x145863(0x228)](_0x2b1758=>{const _0xf7f9ff=_0x145863;_0x4c3bee[_0xf7f9ff(0x1ce)](_0x399269[_0x2b1758]['length'],0x0)&&(_0x1dfab6[_0x2b1758]=_0x399269[_0x2b1758]);}),_0x4ccf27[_0x145863(0x1d4)](Object[_0x145863(0x251)](_0x1dfab6)[_0x145863(0x226)],0x0)&&(_0x140b75[_0x4ccf27['bBtRF']]=_0x1dfab6,_0x5e7d28[_0x145863(0x24f)](_0x140b75));}),_0x4ccf27[_0x6dca42(0x1d4)](_0x5e7d28[_0x6dca42(0x226)],0x0)?_0xeedf92[_0x6dca42(0x1dc)]=_0x5e7d28:delete _0xeedf92[_0x4ccf27[_0x6dca42(0x1f2)]];}}}}catch(_0x11b71b){delete _0xeedf92[_0x4ccf27['OChth']],logger[_0x6dca42(0x212)](_0x4ccf27['GWyNe'](_0x4ccf27[_0x6dca42(0x20e)],_0x11b71b));}const _0x2e904b=helper[_0x6dca42(0x247)](_0x534c02,_0x534c02['framework']),_0x70dfdb={'userName':helper[_0x6dca42(0x201)](_0x534c02),'accessKey':helper['getAccessKey'](_0x534c02),'event_type':_0x138ff6,'detectedFramework':_0xef7f3d,'buildHashedId':globals['getGlobal'](_0x4ccf27['tUALd']),'optimalHubUrl':helper[_0x6dca42(0x1da)](),'event_properties':{'testhub_uuid':process['env'][testHubConstants[_0x6dca42(0x1fe)]['BROWSERSTACK_TESTHUB_UUID']]||'','sdkRunId':global[_0x6dca42(0x1f7)],'product_map':_0x4ccf27[_0x6dca42(0x20f)](getProductMap,_0x534c02),'productMap':_0x4ccf27[_0x6dca42(0x232)](getProductMap,_0x534c02),'language_framework':_0x534c02[_0x6dca42(0x1d1)]||_0x4ccf27[_0x6dca42(0x1c8)],'referrer':helper[_0x6dca42(0x236)](_0xef7f3d),'framework':_0x534c02['framework'],'frameworkVersion':helper[_0x6dca42(0x222)](_0xef7f3d),'automationFramework':_0x2e904b[_0x6dca42(0x24c)],'automationFrameworkVersion':_0x2e904b[_0x6dca42(0x1db)],'language':_0x4ccf27[_0x6dca42(0x1d3)],'languageVersion':process[_0x6dca42(0x1db)],'product':_0x5aec3f,'buildName':_0x534c02[_0x6dca42(0x200)]||_0x4ccf27[_0x6dca42(0x1cc)],'buildIdentifier':_0x45a23c,'os':os[_0x6dca42(0x21c)]()||_0x4ccf27['bITkw'],'hostname':os[_0x6dca42(0x208)]()||_0x4ccf27[_0x6dca42(0x1c8)],..._0xeedf92,'isCLIEnabled':_0x1eaa7e}};try{_0x4ccf27['qEnGs'](_0x138ff6,_0x4ccf27[_0x6dca42(0x21d)])&&(_0x70dfdb[_0x6dca42(0x22c)]['browserStackConfig']=helper['sanitizeBrowserStackConfig'](_0x534c02)),_0x4ccf27[_0x6dca42(0x213)](_0xef7f3d,_0x4ccf27['dmdhT'])?_0x70dfdb['event_properties'][_0x6dca42(0x1f8)]=helper[_0x6dca42(0x23c)][_0x6dca42(0x215)](null,_0x4ccf27['TAZeX'](getTransformPath),!![]):_0x70dfdb[_0x6dca42(0x22c)][_0x6dca42(0x1d8)]=helper[_0x6dca42(0x210)](_0x4ccf27[_0x6dca42(0x1ef)]);}catch(_0x1fdc41){logger[_0x6dca42(0x212)](_0x6dca42(0x1ee)+_0x1fdc41);}const _0x5049f5={};_0x5049f5[_0x6dca42(0x1d5)]=_0x4ccf27['TbTpb'];const _0x4f0928={'headers':_0x5049f5,'body':_0x70dfdb,'auth':{'user':helper[_0x6dca42(0x201)](_0x534c02),'pass':helper[_0x6dca42(0x23d)](_0x534c02)},'json':!![]};logger[_0x6dca42(0x212)](_0x6dca42(0x21b)+JSON[_0x6dca42(0x1d0)](_0x4f0928[_0x6dca42(0x24a)])[_0x6dca42(0x238)](new RegExp(helper[_0x6dca42(0x201)](_0x534c02),'g'),_0x4ccf27[_0x6dca42(0x1eb)])[_0x6dca42(0x238)](new RegExp(helper[_0x6dca42(0x23d)](_0x534c02),'g'),_0x4ccf27[_0x6dca42(0x1eb)]));try{const _0x25c698=await helper['nodeRequest'](_0x4ccf27[_0x6dca42(0x207)],FUNNEL_INSTRUMENTATION_API_URL,_0x4f0928,_0x534c02);logger['debug'](_0x6dca42(0x22f)+_0x138ff6+'\x20response\x20-\x20'+util['format']('%j',_0x25c698));}catch(_0x3f3c3a){logger[_0x6dca42(0x212)](_0x6dca42(0x214)+FUNNEL_INSTRUMENTATION_API_URL+_0x6dca42(0x20a)+util['format'](_0x3f3c3a));}},exports['finalExecution']=async(_0x51e072,_0x5406f5=![])=>{const _0x559fdc=a155_0x246a23,_0x6ede3a={'dolkr':function(_0x52fa40){return _0x52fa40();},'JRwQB':'_hubAllocationData','IvnfH':_0x559fdc(0x240),'KbzTx':_0x559fdc(0x1f0),'AlvpL':'SDKTestSuccessful','Ihqkk':function(_0x544b01,_0x4090fd,_0x1afe34){return _0x544b01(_0x4090fd,_0x1afe34);},'dBZQH':function(_0x54ab6d,_0xa880c){return _0x54ab6d+_0xa880c;},'TgzAm':_0x559fdc(0x221)};try{await _0x51e072[_0x559fdc(0x23a)](),_0x6ede3a['dolkr'](printNudgeLocalNotSetError);const _0xbdcca9={};_0xbdcca9['error']=_0x51e072['errorMessage']?_0x51e072[_0x559fdc(0x21e)]:'{}';const _0x48871b=_0xbdcca9,_0x5e6907=Object['assign']({},_0x48871b),_0x56f80f=globals[_0x559fdc(0x1f6)](_0x6ede3a[_0x559fdc(0x1e0)]);_0x56f80f&&(_0x5e6907[_0x559fdc(0x1e9)]=_0x56f80f);!!_0x51e072[_0x559fdc(0x249)]&&(_0x5e6907[_0x6ede3a[_0x559fdc(0x218)]]={'reason':_0x6ede3a[_0x559fdc(0x1ff)],'signal':_0x51e072[_0x559fdc(0x249)]});unhandledErrors=_0x51e072[_0x559fdc(0x204)][_0x559fdc(0x202)]('\x0a');let _0x1a17d0,_0x17d49d,_0x3ec1ff;helper['isTurboScaleSession'](_0x51e072[_0x559fdc(0x1c4)])?([_0x1a17d0,_0x17d49d]=await helper[_0x559fdc(0x1d6)](_0x51e072[_0x559fdc(0x1c4)]),[_0x3ec1ff]=await Promise[_0x559fdc(0x220)]([helper[_0x559fdc(0x21f)](_0x1a17d0,_0x51e072[_0x559fdc(0x1c4)]),exports['fireFunnelTestEvent'](_0x6ede3a[_0x559fdc(0x255)],_0x5e6907,_0x51e072[_0x559fdc(0x1c4)],_0x51e072[_0x559fdc(0x1fc)],_0x5406f5)])):([_0x1a17d0,_0x17d49d]=await helper[_0x559fdc(0x1cb)](_0x51e072[_0x559fdc(0x1c4)]),[_0x3ec1ff]=await Promise[_0x559fdc(0x220)]([helper[_0x559fdc(0x1e5)](_0x1a17d0,_0x51e072[_0x559fdc(0x1c4)]),exports['fireFunnelTestEvent'](_0x6ede3a[_0x559fdc(0x255)],_0x5e6907,_0x51e072[_0x559fdc(0x1c4)],_0x51e072[_0x559fdc(0x1fc)],_0x5406f5)])),_0x3ec1ff&&await _0x6ede3a[_0x559fdc(0x245)](generateCIArtifacts,_0x3ec1ff,_0x17d49d),logger[_0x559fdc(0x1e2)](_0x559fdc(0x24d)+_0x51e072[_0x559fdc(0x1f7)]+_0x559fdc(0x1fb)+process[_0x559fdc(0x22b)][_0x559fdc(0x1c9)]),await helper['sendLogs'](_0x51e072[_0x559fdc(0x1c4)]);}catch(_0x4aa15b){logger['debug'](_0x6ede3a['dBZQH'](_0x6ede3a[_0x559fdc(0x1e4)],_0x4aa15b));}helper[_0x559fdc(0x244)]();},exports[a155_0x246a23(0x224)]=_0x11db4e=>{const _0x44421c=a155_0x246a23,_0x2e8ac5={'NzaaJ':function(_0x52dac7,_0x8b7e5f){return _0x52dac7 instanceof _0x8b7e5f;},'LOyYu':function(_0x387df5,_0x4500ee){return _0x387df5(_0x4500ee);}};try{if(_0x2e8ac5['NzaaJ'](_0x11db4e,Error))return _0x11db4e[_0x44421c(0x1ea)]||_0x11db4e[_0x44421c(0x1ec)]();return _0x2e8ac5[_0x44421c(0x216)](String,_0x11db4e);}catch(_0x2b3d7b){return _0x11db4e?_0x11db4e[_0x44421c(0x1ec)]():'';}},exports[a155_0x246a23(0x1fa)]=_0x49d405=>{const _0x597827=a155_0x246a23,_0x874adc={};_0x874adc[_0x597827(0x23b)]=function(_0x785e78,_0x4ee177){return _0x785e78===_0x4ee177;};const _0x3e7407=_0x874adc;return!_0x49d405||_0x3e7407[_0x597827(0x23b)](_0x49d405[_0x597827(0x217)](),'');},exports[a155_0x246a23(0x1dd)]=_0xb0ab13=>{const _0x33d5de=a155_0x246a23,_0x44f610={};_0x44f610[_0x33d5de(0x1de)]=function(_0x5c2cb8,_0x25101d){return _0x5c2cb8|_0x25101d;};const _0x37ae79=_0x44f610;try{return fs['accessSync'](_0xb0ab13,_0x37ae79['KOkPd'](fs[_0x33d5de(0x23f)][_0x33d5de(0x20d)],fs['constants'][_0x33d5de(0x239)])),!![];}catch(_0x110bf7){return![];}},exports[a155_0x246a23(0x248)]=_0x16c8a4=>{const _0x12e878=a155_0x246a23;try{fs[_0x12e878(0x223)](_0x16c8a4,0x1ff),logger[_0x12e878(0x212)]('Directory\x20'+_0x16c8a4+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x178b89){logger['error']('Failed\x20to\x20set\x20directory\x20access:\x20'+exports[_0x12e878(0x224)](_0x178b89));}};