browserstack-node-sdk 1.55.3 → 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
- const a147_0x1ce523=a147_0x5ef6;function a147_0x15bc(){const _0x48de4b=['PZofM','TsQbN','\x20and\x20data:\x20','statusCode','headers','?buildName=','rTUNC','eGpUY',',\x20buildRunIdentifier=',']\x20Sending\x20','Authorization','3398448YwrfCk','write','./constants','242420IpUHln','RequestUtils','3461185ipxCYv','POST','QiMhb','application/json','parse','../logger','Bearer\x20','iIrjV','BROWSERSTACK_TESTHUB_JWT','postSplitFiles','avLAp','body','error','Content-Type','stringify','aXGXM','eCNQv','data',']\x20Sending\x20GET\x20to\x20','MQYSY','noCVe','stack',']\x20Error\x20in\x20getFailedTestsCount:\x20','\x20with\x20headers:\x20','RBhIp','status','lusCU','debug','gHjqf','end','mHQzr','getSplitFiles','Failed\x20to\x20parse\x20JSON\x20response:\x20','aAkXE',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','47910GlOtSa','Slhrj','exports','failedTestsCount',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','CnnAk','https','message','\x20-\x20','_request','qsNJT','zFPFN','2991744lVInhL','&projectName=','2167821qbTAKl','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','VRkPO',']\x20Error\x20in\x20putFailedTests:\x20','NQoQK','hOkiM','&buildRunIdentifier=','PUT','winstonLogger','getFailedTestsCount',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','4046724WAVgbX','Test\x20added'];a147_0x15bc=function(){return _0x48de4b;};return a147_0x15bc();}(function(_0x5ee922,_0x565360){const _0x4172aa=a147_0x5ef6,_0x4b6487=_0x5ee922();while(!![]){try{const _0x169637=parseInt(_0x4172aa(0x21d))/0x1+parseInt(_0x4172aa(0x1f8))/0x2+parseInt(_0x4172aa(0x22b))/0x3+-parseInt(_0x4172aa(0x1f5))/0x4+parseInt(_0x4172aa(0x1fa))/0x5+-parseInt(_0x4172aa(0x236))/0x6+parseInt(_0x4172aa(0x229))/0x7;if(_0x169637===_0x565360)break;else _0x4b6487['push'](_0x4b6487['shift']());}catch(_0x334588){_0x4b6487['push'](_0x4b6487['shift']());}}}(a147_0x15bc,0x76f7a));const https=require(a147_0x1ce523(0x223)),{URL}=require('url'),logger=require(a147_0x1ce523(0x1ff))[a147_0x1ce523(0x233)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a147_0x1ce523(0x1f7)),TAG=a147_0x1ce523(0x1f9);function a147_0x5ef6(_0x1e8ee8,_0x1e0713){const _0x15bcd4=a147_0x15bc();return a147_0x5ef6=function(_0x5ef6fb,_0x563bf2){_0x5ef6fb=_0x5ef6fb-0x1f2;let _0x1c8e4c=_0x15bcd4[_0x5ef6fb];return _0x1c8e4c;},a147_0x5ef6(_0x1e8ee8,_0x1e0713);}class RequestUtils{static async[a147_0x1ce523(0x226)](_0x2f6cda,_0x5c06dc,_0x51eaf4=null){const _0x27520e=a147_0x1ce523,_0x2763c6={'aAkXE':function(_0x1d74a8,_0x7e3759){return _0x1d74a8(_0x7e3759);},'wFVfs':_0x27520e(0x20b),'zFPFN':'end','VRkPO':function(_0x744cb7,_0x272b30){return _0x744cb7(_0x272b30);},'AwMZu':_0x27520e(0x206),'CnnAk':function(_0x4ab1d6,_0x37221c){return _0x4ab1d6===_0x37221c;},'QiMhb':_0x27520e(0x1fb),'Slhrj':function(_0x373dbb,_0x109e6d){return _0x373dbb===_0x109e6d;},'qsNJT':_0x27520e(0x232),'Jdfgc':_0x27520e(0x1fd),'fbTgZ':function(_0x332a1f,_0xef5f0c){return _0x332a1f+_0xef5f0c;}},_0x3a0fb4=process['env'][_0x27520e(0x202)]||'',_0x648bd0={};_0x648bd0[_0x27520e(0x1f4)]=_0x27520e(0x200)+_0x3a0fb4,_0x648bd0[_0x27520e(0x207)]=_0x2763c6['Jdfgc'];const _0x24f5d1=_0x648bd0,{hostname:_0x41bc57,pathname:_0x48a227,search:_0x4fde47}=new URL(_0x5c06dc),_0x1edc70={'hostname':_0x41bc57,'path':_0x2763c6['fbTgZ'](_0x48a227,_0x4fde47),'method':_0x2f6cda,'headers':_0x24f5d1};return logger[_0x27520e(0x215)]('['+TAG+_0x27520e(0x1f3)+_0x2f6cda+'\x20request\x20to\x20'+_0x5c06dc+_0x27520e(0x211)+JSON[_0x27520e(0x208)](_0x24f5d1)+_0x27520e(0x23a)+JSON['stringify'](_0x51eaf4)+'\x20and\x20token:\x20'+_0x3a0fb4),new Promise((_0x5ec562,_0x27961b)=>{const _0xa59a4a=_0x27520e,_0x4d4080={'mHQzr':function(_0x234fe1,_0xb84ce0){const _0x593de3=a147_0x5ef6;return _0x2763c6[_0x593de3(0x22d)](_0x234fe1,_0xb84ce0);}},_0x4baa75=https['request'](_0x1edc70,_0x34bcd0=>{const _0x42cdcb=a147_0x5ef6,_0x1ebe08={'eCNQv':function(_0x88a670,_0x585159){const _0x1ede76=a147_0x5ef6;return _0x2763c6[_0x1ede76(0x21b)](_0x88a670,_0x585159);}};let _0x5914be='';_0x34bcd0['on'](_0x2763c6['wFVfs'],_0x3541c7=>{_0x5914be+=_0x3541c7;}),_0x34bcd0['on'](_0x2763c6[_0x42cdcb(0x228)],()=>{const _0x15fad6=_0x42cdcb;try{const _0x2b9097=_0x5914be?JSON[_0x15fad6(0x1fe)](_0x5914be):{},_0x43e936={};_0x43e936[_0x15fad6(0x213)]=_0x34bcd0[_0x15fad6(0x23b)],_0x43e936['body']=_0x2b9097,_0x43e936[_0x15fad6(0x23c)]=_0x34bcd0[_0x15fad6(0x23c)],_0x1ebe08[_0x15fad6(0x20a)](_0x5ec562,_0x43e936);}catch(_0x4cc920){logger[_0x15fad6(0x206)]('['+TAG+_0x15fad6(0x21c)+_0x5914be+_0x15fad6(0x225)+_0x4cc920['message']+'\x20'+_0x4cc920[_0x15fad6(0x20f)]),_0x1ebe08[_0x15fad6(0x20a)](_0x27961b,new Error(_0x15fad6(0x21a)+_0x4cc920[_0x15fad6(0x224)]));}});});_0x4baa75['on'](_0x2763c6['AwMZu'],_0x451cfc=>{const _0x566365=a147_0x5ef6;logger[_0x566365(0x206)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x2f6cda+'\x20'+_0x5c06dc+':\x20'+_0x451cfc['message']+'\x20'+_0x451cfc['stack']),_0x4d4080[_0x566365(0x218)](_0x27961b,_0x451cfc);}),_0x51eaf4&&(_0x2763c6[_0xa59a4a(0x222)](_0x2f6cda,_0x2763c6[_0xa59a4a(0x1fc)])||_0x2763c6[_0xa59a4a(0x21e)](_0x2f6cda,_0x2763c6[_0xa59a4a(0x227)]))&&_0x4baa75[_0xa59a4a(0x1f6)](JSON[_0xa59a4a(0x208)](_0x51eaf4)),_0x4baa75[_0xa59a4a(0x217)]();});}static async[a147_0x1ce523(0x203)](_0x33ec3b){const _0x3ad209=a147_0x1ce523,_0x3a9f17={};_0x3a9f17[_0x3ad209(0x212)]=_0x3ad209(0x1fb),_0x3a9f17[_0x3ad209(0x204)]=function(_0x44891b,_0x2a6619){return _0x44891b===_0x2a6619;};const _0x352203=_0x3a9f17,_0x3fc784=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x2051aa=await this[_0x3ad209(0x226)](_0x352203[_0x3ad209(0x212)],_0x3fc784,_0x33ec3b);return _0x352203[_0x3ad209(0x204)](_0x2051aa['status'],0xc8)?logger['debug']('['+TAG+_0x3ad209(0x235)+_0x3fc784):logger[_0x3ad209(0x206)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x3fc784+':\x20'+JSON['stringify'](_0x2051aa[_0x3ad209(0x205)])+',\x20status:\x20'+_0x2051aa['status']),_0x2051aa;}catch(_0x2b4079){logger[_0x3ad209(0x206)]('['+TAG+_0x3ad209(0x22e)+_0x2b4079['message']+'\x20'+_0x2b4079[_0x3ad209(0x20f)]);const _0x5dc347={};_0x5dc347['message']=_0x2b4079[_0x3ad209(0x224)];const _0x1352c9={};return _0x1352c9[_0x3ad209(0x213)]=0x1f4,_0x1352c9['body']=_0x5dc347,_0x1352c9;}}static async[a147_0x1ce523(0x219)](_0x5e6d6f){const _0xfb91a=a147_0x1ce523,_0x5ec01f={};_0x5ec01f['gHjqf']='GET',_0x5ec01f[_0xfb91a(0x20d)]=function(_0x572da6,_0x3d33af){return _0x572da6===_0x3d33af;};const _0x42d085=_0x5ec01f;try{const _0x4a646d=await this[_0xfb91a(0x226)](_0x42d085[_0xfb91a(0x216)],_0x5e6d6f);if(_0x42d085[_0xfb91a(0x20d)](_0x4a646d[_0xfb91a(0x213)],0xc8))return _0x4a646d['body'];return{};}catch(_0x43b768){return logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x43b768[_0xfb91a(0x224)]+'\x20'+_0x43b768[_0xfb91a(0x20f)]),{};}}static async['putFailedTests'](_0x4df74d){const _0xe39819=a147_0x1ce523,_0x11b36f={};_0x11b36f[_0xe39819(0x209)]=_0xe39819(0x232),_0x11b36f['PZofM']=function(_0x16885e,_0x982ca2){return _0x16885e===_0x982ca2;},_0x11b36f['lusCU']=function(_0x31c12c,_0x559de7){return _0x31c12c===_0x559de7;},_0x11b36f[_0xe39819(0x201)]=_0xe39819(0x237);const _0x3a3e5a=_0x11b36f,_0x4bf75f=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0xd100a6=await this['_request'](_0x3a3e5a[_0xe39819(0x209)],_0x4bf75f,_0x4df74d);if(_0x3a3e5a[_0xe39819(0x238)](_0xd100a6[_0xe39819(0x213)],0xc8)&&_0xd100a6[_0xe39819(0x205)]&&_0x3a3e5a[_0xe39819(0x214)](_0xd100a6[_0xe39819(0x205)][_0xe39819(0x224)],_0x3a3e5a['iIrjV']))return!![];return![];}catch(_0x1e6998){logger[_0xe39819(0x206)]('['+TAG+_0xe39819(0x22e)+_0x1e6998['message']+'\x20'+_0x1e6998[_0xe39819(0x20f)]);const _0x38f1be={};_0x38f1be['message']=_0x1e6998[_0xe39819(0x224)];const _0x24d923={};return _0x24d923[_0xe39819(0x213)]=0x1f4,_0x24d923['body']=_0x38f1be,_0x24d923;}}static async[a147_0x1ce523(0x234)](_0x12646a){const _0x3d5bad=a147_0x1ce523,_0x4f3ace={'QbnqG':function(_0x42cd9a,_0x2b854e){return _0x42cd9a||_0x2b854e;},'hOkiM':_0x3d5bad(0x22c),'TsQbN':function(_0x5ebe08,_0x4142ef){return _0x5ebe08(_0x4142ef);},'eGpUY':function(_0xb88fa1,_0x2d4b4f){return _0xb88fa1(_0x2d4b4f);},'jtIpB':'GET','rTUNC':function(_0xa13c5e,_0x5b3f38){return _0xa13c5e===_0x5b3f38;},'NQoQK':function(_0x395639,_0x2c7614){return _0x395639!==_0x2c7614;},'noCVe':'undefined'},{buildName:_0x1a654b,buildRunIdentifier:_0x29efcd,projectName:_0x35e268}=_0x12646a;if(_0x4f3ace['QbnqG'](!_0x1a654b,!_0x29efcd)||!_0x35e268){logger[_0x3d5bad(0x206)]('['+TAG+_0x3d5bad(0x221)+_0x1a654b+_0x3d5bad(0x1f2)+_0x29efcd+',\x20projectName='+_0x35e268);const _0x192fb0={};_0x192fb0[_0x3d5bad(0x224)]=_0x4f3ace[_0x3d5bad(0x230)];const _0x4be9c4={};return _0x4be9c4[_0x3d5bad(0x213)]=0x190,_0x4be9c4['body']=_0x192fb0,_0x4be9c4;}const _0x261ff5=_0x3d5bad(0x23d)+_0x4f3ace[_0x3d5bad(0x239)](encodeURIComponent,_0x1a654b)+_0x3d5bad(0x231)+_0x4f3ace[_0x3d5bad(0x23f)](encodeURIComponent,_0x29efcd)+_0x3d5bad(0x22a)+_0x4f3ace[_0x3d5bad(0x23f)](encodeURIComponent,_0x35e268),_0x511f25=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x261ff5;try{logger[_0x3d5bad(0x215)]('['+TAG+_0x3d5bad(0x20c)+_0x511f25);let _0x51999a=0x0;const _0xa717c3=await this['_request'](_0x4f3ace['jtIpB'],_0x511f25);return _0x4f3ace[_0x3d5bad(0x23e)](_0xa717c3[_0x3d5bad(0x213)],0xc8)&&_0xa717c3[_0x3d5bad(0x205)]&&_0x4f3ace[_0x3d5bad(0x22f)](typeof _0xa717c3[_0x3d5bad(0x205)]['failedTestsCount'],_0x4f3ace[_0x3d5bad(0x20e)])&&(_0x51999a=_0x4f3ace[_0x3d5bad(0x23f)](Number,_0xa717c3['body'][_0x3d5bad(0x220)])),_0x51999a;}catch(_0x23161c){logger['error']('['+TAG+_0x3d5bad(0x210)+_0x23161c['message']+'\x20'+_0x23161c[_0x3d5bad(0x20f)]);const _0x4b9ee4={};_0x4b9ee4[_0x3d5bad(0x224)]=_0x23161c[_0x3d5bad(0x224)];const _0x326d88={};return _0x326d88[_0x3d5bad(0x213)]=0x1f4,_0x326d88[_0x3d5bad(0x205)]=_0x4b9ee4,_0x326d88;}}}module[a147_0x1ce523(0x21f)]=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
- function a148_0x1dfc(){const _0x373cc9=['testObservability','30980YIeeDJ','snqwR','testOrderingEnabled','exports','fUPSg','aFbwY','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','10380300pqlbGA','testPathIgnorePatterns','winstonLogger','uploadedTestFilesCount','3839372uXzcLW','2727tTGMZM','_shouldLogTestOrderingChecks','buildName','jest-config','../helper','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','getSplitTestsAPICallCount','env','info','Error\x20finding\x20test\x20files:\x20','child_process','cRgFY','applied','isTestOrchestrationEnabled','reorderTestFiles','MuSGk','**/__tests__/**/*.[jt]s?(x)','11SkWvES','1104HBidSu','fDzSG','\x20files','nodeIndex','MJtRs','612eBNMQN','zVdcs','PYDhA','30vvQvSi','utf-8','orchestrationUtils','testOrderingApplied','length','Found\x20test\x20files:\x20','buildIdentifier','split','IxKDV','RqCjU','injLK','UBrDD','HsxUN','gkAdA','orderingInstrumentationData','stringify','iQetU','--config','toString','1104260Nouspt','BROWSERSTACK_TOTAL_NODE_COUNT','kONsy','1619835TXGjsG','debug','7LGBHMk','Filterted\x20to\x20test\x20files:\x20','testMatch','jest-runner','map','YbVZh','PmtxM','--listTests','uGXis','splitTests','jzwhC','isTestOrderingApplied','**/?(*.)+(spec|test).[jt]s?(x)','logTestOrderingChecks','lZYep','testOrderingServerHandler','projectName','RdxZZ','EJEQK','npx','stdout','filter','ignore','AXayd','ndrOD','config','alHtq','AnbcP','downloadedTestFilesCount','mTFkd','matchBase','./orchestrationUtils','./testOrderingServerHandler','LBdTL','updateBuildIdentifier','1|0|3|5|4|2','ojLQL','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','XAyxc','_initializeTestOrdering','addToOrderingInstrumentationData','6735128TLXfYg','glob','stack'];a148_0x1dfc=function(){return _0x373cc9;};return a148_0x1dfc();}const a148_0x5f0a4b=a148_0x246a;(function(_0x304043,_0x292d4a){const _0x38c250=a148_0x246a,_0x19ee50=_0x304043();while(!![]){try{const _0x42f9db=-parseInt(_0x38c250(0x1af))/0x1*(-parseInt(_0x38c250(0x1b4))/0x2)+-parseInt(_0x38c250(0x1cd))/0x3+parseInt(_0x38c250(0x19c))/0x4+-parseInt(_0x38c250(0x1ca))/0x5*(parseInt(_0x38c250(0x1b7))/0x6)+-parseInt(_0x38c250(0x1cf))/0x7*(-parseInt(_0x38c250(0x18d))/0x8)+-parseInt(_0x38c250(0x19d))/0x9*(-parseInt(_0x38c250(0x191))/0xa)+parseInt(_0x38c250(0x1ae))/0xb*(-parseInt(_0x38c250(0x198))/0xc);if(_0x42f9db===_0x292d4a)break;else _0x19ee50['push'](_0x19ee50['shift']());}catch(_0x2cf47e){_0x19ee50['push'](_0x19ee50['shift']());}}}(a148_0x1dfc,0x8aebe));const logger=require('../logger')[a148_0x5f0a4b(0x19a)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a148_0x5f0a4b(0x1a1)),TestOrderingServerHandler=require(a148_0x5f0a4b(0x184)),OrchestrationUtils=require(a148_0x5f0a4b(0x183)),path=require('path'),{spawnSync}=require(a148_0x5f0a4b(0x1a7)),micromatch=require('micromatch'),fs=require('fs');class TestOrchestrationHandler{constructor(_0x3533c1){const _0x5cfcf0=a148_0x5f0a4b,_0x23e7a4={};_0x23e7a4[_0x5cfcf0(0x1b6)]=_0x5cfcf0(0x187);const _0x3bd558=_0x23e7a4,_0xf2adcc=_0x3bd558[_0x5cfcf0(0x1b6)][_0x5cfcf0(0x1be)]('|');let _0x3958db=0x0;while(!![]){switch(_0xf2adcc[_0x3958db++]){case'0':this['orderingInstrumentationData']={};continue;case'1':this[_0x5cfcf0(0x1e8)]=_0x3533c1;continue;case'2':this[_0x5cfcf0(0x18b)]();continue;case'3':this[_0x5cfcf0(0x1ba)]=![];continue;case'4':this[_0x5cfcf0(0x1b9)]=new OrchestrationUtils(_0x3533c1);continue;case'5':this[_0x5cfcf0(0x1de)]=null;continue;}break;}}[a148_0x5f0a4b(0x1aa)](){const _0x571aec=a148_0x5f0a4b,_0x36b7ef={'YbVZh':function(_0xf46c0e,_0x5a2e99){return _0xf46c0e(_0x5a2e99);},'fUPSg':function(_0x2517be,_0x195c77){return _0x2517be(_0x195c77);},'UBrDD':function(_0x4c5b41,_0x410a66){return _0x4c5b41(_0x410a66);},'ndrOD':function(_0x15f599,_0x579d7d){return _0x15f599&&_0x579d7d;}},_0x2ae24d=_0x36b7ef[_0x571aec(0x1d4)](isNotUndefined,this[_0x571aec(0x1e8)])&&(_0x36b7ef[_0x571aec(0x195)](isUndefined,this[_0x571aec(0x1e8)]['testObservability'])||_0x36b7ef[_0x571aec(0x1d4)](isTrueString,this[_0x571aec(0x1e8)][_0x571aec(0x190)])),_0x333b64=this[_0x571aec(0x1b9)][_0x571aec(0x193)](),_0x100435=_0x36b7ef[_0x571aec(0x1c2)](isNotUndefined,this['config'])&&_0x36b7ef[_0x571aec(0x1d4)](isNotUndefined,this[_0x571aec(0x1e8)][_0x571aec(0x1df)]),_0x5e3073=_0x36b7ef[_0x571aec(0x195)](isNotUndefined,this[_0x571aec(0x1e8)])&&_0x36b7ef['YbVZh'](isNotUndefined,this[_0x571aec(0x1e8)][_0x571aec(0x19f)]);return _0x36b7ef[_0x571aec(0x1e7)](_0x2ae24d,_0x333b64)&&_0x100435&&_0x5e3073;}[a148_0x5f0a4b(0x18b)](){const _0x334333=a148_0x5f0a4b,_0x587b71={};_0x587b71[_0x334333(0x1b5)]=_0x334333(0x197),_0x587b71[_0x334333(0x1e1)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0x2e9e21=_0x587b71;this[_0x334333(0x1aa)]()?(this[_0x334333(0x1de)]=new TestOrderingServerHandler(this[_0x334333(0x1e8)]),logger[_0x334333(0x1a5)](_0x2e9e21[_0x334333(0x1b5)])):(logger[_0x334333(0x1ce)](_0x2e9e21[_0x334333(0x1e1)]),this[_0x334333(0x1dc)]());}[a148_0x5f0a4b(0x1dc)](){const _0x201d07=a148_0x5f0a4b,_0x509d44={'aFbwY':function(_0x17e391,_0x3c380c){return _0x17e391(_0x3c380c);},'lZYep':function(_0x1c3374,_0x33e88f){return _0x1c3374(_0x33e88f);},'AnbcP':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','alHtq':function(_0x50bb78,_0xce479a){return _0x50bb78(_0xce479a);},'bSYPa':function(_0x44e694,_0x5c3ff4){return _0x44e694(_0x5c3ff4);},'snqwR':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this['_shouldLogTestOrderingChecks']())return;(!_0x509d44[_0x201d07(0x196)](isNotUndefined,this[_0x201d07(0x1e8)])||!_0x509d44[_0x201d07(0x196)](isNotUndefined,this[_0x201d07(0x1e8)][_0x201d07(0x19f)])||!_0x509d44[_0x201d07(0x1dd)](isNotUndefined,this[_0x201d07(0x1e8)][_0x201d07(0x1df)]))&&logger['info'](_0x509d44[_0x201d07(0x1ea)]),_0x509d44[_0x201d07(0x1e9)](isNotUndefined,this[_0x201d07(0x1e8)])&&_0x509d44[_0x201d07(0x196)](isNotUndefined,this[_0x201d07(0x1e8)][_0x201d07(0x190)])&&!_0x509d44['bSYPa'](isTrueString,this[_0x201d07(0x1e8)]['testObservability'])&&logger[_0x201d07(0x1a5)](_0x509d44[_0x201d07(0x192)]);}[a148_0x5f0a4b(0x19e)](){const _0x59f5f1=a148_0x5f0a4b;return!this[_0x59f5f1(0x1aa)]()&&this['orchestrationUtils']['testOrderingEnabled']();}[a148_0x5f0a4b(0x1da)](){const _0x56ef6c=a148_0x5f0a4b;return this[_0x56ef6c(0x1ba)];}['setTestOrderingApplied'](_0x2db86c){const _0x4c6859=a148_0x5f0a4b,_0x20d473={};_0x20d473[_0x4c6859(0x1e0)]=_0x4c6859(0x1a9);const _0x190341=_0x20d473;this[_0x4c6859(0x1ba)]=_0x2db86c,this[_0x4c6859(0x18c)](_0x190341[_0x4c6859(0x1e0)],_0x2db86c);}[a148_0x5f0a4b(0x18c)](_0x288f51,_0x53f7ac){const _0x1ab587=a148_0x5f0a4b;this[_0x1ab587(0x1c5)][_0x288f51]=_0x53f7ac;}['getOrderingInstrumentationData'](){const _0x4accb6=a148_0x5f0a4b;return this[_0x4accb6(0x1c5)];}[a148_0x5f0a4b(0x186)](){const _0x530c19=a148_0x5f0a4b,_0x5a748f={'SGiUw':function(_0x535062,_0x3eecfd){return _0x535062(_0x3eecfd);},'TrkNi':function(_0x590d52,_0x294e6d){return _0x590d52>_0x294e6d;}},_0x4eb945=_0x5a748f['SGiUw'](parseInt,process[_0x530c19(0x1a4)][_0x530c19(0x1cb)]||'1'),_0x3dc48b=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x3dc48b&&_0x5a748f['TrkNi'](_0x4eb945,0x1)&&(logger[_0x530c19(0x1ce)](_0x530c19(0x189)+_0x3dc48b),this[_0x530c19(0x1e8)][_0x530c19(0x1bd)]=_0x3dc48b);}async[a148_0x5f0a4b(0x1ab)](_0x2f3422){const _0x264b63=a148_0x5f0a4b,_0x43678e={'bJzpY':function(_0x1b1181,_0x2b0877){return _0x1b1181===_0x2b0877;},'hUlBJ':function(_0x593f5d,_0x34f045){return _0x593f5d===_0x34f045;},'RqCjU':'[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','oDpXc':function(_0x38af42,_0x290064){return _0x38af42===_0x290064;},'PmtxM':function(_0x175805,_0x27f8de){return _0x175805(_0x27f8de);},'uGXis':_0x264b63(0x19b),'kONsy':_0x264b63(0x1b2),'LBdTL':'totalNodes','AXayd':_0x264b63(0x1eb),'XAyxc':'splitTestsAPICallCount'};try{if(!_0x2f3422||!Array['isArray'](_0x2f3422)||_0x43678e['bJzpY'](_0x2f3422[_0x264b63(0x1bb)],0x0))return null;if(_0x43678e['hUlBJ'](this[_0x264b63(0x1aa)](),![]))return logger[_0x264b63(0x1ce)](_0x43678e[_0x264b63(0x1c0)]),null;let _0x180cdb=null;const _0x190273=this[_0x264b63(0x1b9)]['getTestOrderingName']();if(this[_0x264b63(0x1de)]){const _0x443df6=await this[_0x264b63(0x1de)][_0x264b63(0x1d8)](_0x2f3422,_0x190273);if(!_0x443df6)return null;_0x180cdb=await this[_0x264b63(0x1de)]['getOrderedTestFiles'](_0x443df6);}if(!_0x180cdb||!Array['isArray'](_0x180cdb)||_0x43678e['oDpXc'](_0x180cdb[_0x264b63(0x1bb)],0x0))return null;const _0x3ee9fa=_0x43678e[_0x264b63(0x1d5)](parseInt,process[_0x264b63(0x1a4)]['BROWSERSTACK_NODE_INDEX']||'0'),_0xd4d784=_0x43678e['PmtxM'](parseInt,process[_0x264b63(0x1a4)][_0x264b63(0x1cb)]||'1');return this['addToOrderingInstrumentationData'](_0x43678e[_0x264b63(0x1d7)],_0x2f3422[_0x264b63(0x1bb)]),this[_0x264b63(0x18c)](_0x43678e[_0x264b63(0x1cc)],_0x3ee9fa),this[_0x264b63(0x18c)](_0x43678e[_0x264b63(0x185)],_0xd4d784),this['addToOrderingInstrumentationData'](_0x43678e[_0x264b63(0x1e6)],_0x180cdb['length']),this['addToOrderingInstrumentationData'](_0x43678e[_0x264b63(0x18a)],this[_0x264b63(0x1de)]?this[_0x264b63(0x1de)][_0x264b63(0x1a3)]():0x0),_0x180cdb[_0x264b63(0x1d3)](_0x506107=>sanitizedFilePath(_0x506107));}catch(_0x247ed4){return logger['debug'](_0x264b63(0x1a2)+(_0x247ed4[_0x264b63(0x18f)]||_0x247ed4[_0x264b63(0x1c9)]())),null;}}async['findTestFiles'](_0x238ff8,_0x11f24d,_0x2cd2ee){const _0x48ab1e=a148_0x5f0a4b,_0x44deff={'IxKDV':function(_0x4870e2,_0x43bf99){return _0x4870e2(_0x43bf99);},'mTFkd':_0x48ab1e(0x1a0),'gkAdA':'jest-util','iQetU':_0x48ab1e(0x1d2),'HsxUN':_0x48ab1e(0x18e),'ORPIu':_0x48ab1e(0x1ad),'ojLQL':_0x48ab1e(0x1db),'MuSGk':function(_0x4d4616,_0x2e0ae2,_0x292615,_0x2d264c){return _0x4d4616(_0x2e0ae2,_0x292615,_0x2d264c);},'jzwhC':_0x48ab1e(0x1e2),'fDzSG':'jest','cRgFY':_0x48ab1e(0x1c8),'injLK':_0x48ab1e(0x1d6),'MJtRs':_0x48ab1e(0x1b8)};try{const {getTestPathPatterns:_0x167250}=_0x44deff[_0x48ab1e(0x1bf)](require,_0x44deff[_0x48ab1e(0x181)]),{globsToMatcher:_0x58052f}=_0x44deff[_0x48ab1e(0x1bf)](require,_0x44deff[_0x48ab1e(0x1c4)]),{findRelatedTests:_0x298c79}=_0x44deff['IxKDV'](require,_0x44deff[_0x48ab1e(0x1c7)]),_0x1733db=_0x44deff[_0x48ab1e(0x1bf)](require,_0x44deff[_0x48ab1e(0x1c3)]),_0x46a539=_0x238ff8[_0x48ab1e(0x1d1)]||[_0x44deff['ORPIu'],_0x44deff[_0x48ab1e(0x188)]],_0x4c4a1d=_0x238ff8[_0x48ab1e(0x199)]||[],_0x3f3919=_0x44deff[_0x48ab1e(0x1ac)](spawnSync,_0x44deff[_0x48ab1e(0x1d9)],[_0x44deff[_0x48ab1e(0x1b0)],_0x44deff[_0x48ab1e(0x1a8)],_0x2cd2ee,..._0x11f24d,_0x44deff[_0x48ab1e(0x1c1)]],{'encoding':_0x44deff[_0x48ab1e(0x1b3)]});let _0x180672=[];!_0x3f3919['error']&&(_0x180672=_0x3f3919[_0x48ab1e(0x1e3)][_0x48ab1e(0x1be)]('\x0a')[_0x48ab1e(0x1e4)](Boolean));logger[_0x48ab1e(0x1ce)](_0x48ab1e(0x1bc)+JSON[_0x48ab1e(0x1c6)](_0x180672)+_0x48ab1e(0x1b1));const _0x1fa1f9={};_0x1fa1f9[_0x48ab1e(0x182)]=!![],_0x1fa1f9[_0x48ab1e(0x1e5)]=_0x4c4a1d;const _0x3b8daa=_0x44deff[_0x48ab1e(0x1ac)](micromatch,_0x180672,_0x46a539,_0x1fa1f9)['map'](_0x48ea60=>path['relative'](_0x238ff8['rootDir'],_0x48ea60));return logger[_0x48ab1e(0x1ce)](_0x48ab1e(0x1d0)+JSON['stringify'](_0x3b8daa)+_0x48ab1e(0x1b1)),_0x3b8daa;}catch(_0x1d06b5){return logger[_0x48ab1e(0x1ce)](_0x48ab1e(0x1a6)+_0x1d06b5),[];}}}function a148_0x246a(_0x3cd796,_0x42883b){const _0x1dfcd2=a148_0x1dfc();return a148_0x246a=function(_0x246ac0,_0x3ec66a){_0x246ac0=_0x246ac0-0x181;let _0x13378b=_0x1dfcd2[_0x246ac0];return _0x13378b;},a148_0x246a(_0x3cd796,_0x42883b);}module[a148_0x5f0a4b(0x194)]=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
- function a149_0x13a5(){const _0x5265b7=['275185DbpOta','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','krRhN','tests','qvUdD','[processSplitTestsResponse]\x20timeout:\x20','buildName','BROWSERSTACK_BUILD_RUN_IDENTIFIER','getSplitFiles','release','BROWSERSTACK_TOTAL_NODE_COUNT','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','15297pqWwPG','processSplitTestsResponse','timeout','stack','splitTestsAPICallCount','getOrderedTestFiles','_getHostInfo',',\x20timeoutUrl:\x20','length','bAgwt','8gGNnUU','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','freemem','exports','projectName','config','timeoutInterval','platform','5261067JcHpsa','tjpln','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','604arDBuS','17716150TqHQNU','CyMgK','resultUrl','now','bZDqz','stringify','arch','debug','postSplitFiles',',\x20resultUrl:\x20','./requestUtils','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','totalmem','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','timeoutUrl','1878048mstdyz','body','hostname','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','defaultTimeoutInterval','5398308GgaguO','150RkErMu','defaultTimeout','gnMOY','toString','map','env','jrQpz','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','5981EWYQeh','ivpxA'];a149_0x13a5=function(){return _0x5265b7;};return a149_0x13a5();}const a149_0x56cf5f=a149_0x5b0e;(function(_0x155c14,_0x1ee0ba){const _0x41b7ce=a149_0x5b0e,_0x4ccca3=_0x155c14();while(!![]){try{const _0x15297c=parseInt(_0x41b7ce(0x21e))/0x1*(parseInt(_0x41b7ce(0x216))/0x2)+-parseInt(_0x41b7ce(0x22c))/0x3*(-parseInt(_0x41b7ce(0x200))/0x4)+parseInt(_0x41b7ce(0x220))/0x5+-parseInt(_0x41b7ce(0x210))/0x6+parseInt(_0x41b7ce(0x1fd))/0x7+-parseInt(_0x41b7ce(0x1f5))/0x8*(-parseInt(_0x41b7ce(0x215))/0x9)+-parseInt(_0x41b7ce(0x201))/0xa;if(_0x15297c===_0x1ee0ba)break;else _0x4ccca3['push'](_0x4ccca3['shift']());}catch(_0x2720a3){_0x4ccca3['push'](_0x4ccca3['shift']());}}}(a149_0x13a5,0x83eab));const logger=require('../logger')['winstonLogger'],RequestUtils=require(a149_0x56cf5f(0x20b));class TestOrderingServerHandler{constructor(_0x5f4e1b){const _0x18dcba=a149_0x56cf5f;this[_0x18dcba(0x1fa)]=_0x5f4e1b,this[_0x18dcba(0x230)]=0x0,this['defaultTimeout']=0x3c,this['defaultTimeoutInterval']=0x5;}['getSplitTestsAPICallCount'](){return this['splitTestsAPICallCount'];}[a149_0x56cf5f(0x22d)](_0x211ee4){const _0x49e1fb=a149_0x56cf5f,_0x4c584a={};_0x4c584a['jrQpz']=_0x49e1fb(0x213);const _0x17367=_0x4c584a;if(!_0x211ee4)return null;const _0x3e87c3={};return _0x3e87c3[_0x49e1fb(0x22e)]=_0x211ee4[_0x49e1fb(0x22e)]||this['defaultTimeout'],_0x3e87c3[_0x49e1fb(0x1fb)]=_0x211ee4['timeoutInterval']||this[_0x49e1fb(0x214)],_0x3e87c3[_0x49e1fb(0x203)]=_0x211ee4[_0x49e1fb(0x203)],_0x3e87c3[_0x49e1fb(0x20f)]=_0x211ee4[_0x49e1fb(0x20f)],logger[_0x49e1fb(0x208)]('[processSplitTestsResponse]\x20Processing\x20response:\x20'+JSON[_0x49e1fb(0x206)](_0x211ee4)),logger[_0x49e1fb(0x208)](_0x49e1fb(0x225)+_0x211ee4['timeout']+',\x20timeoutInterval:\x20'+_0x211ee4[_0x49e1fb(0x1fb)]+_0x49e1fb(0x20a)+_0x211ee4[_0x49e1fb(0x203)]+_0x49e1fb(0x1f2)+_0x211ee4[_0x49e1fb(0x20f)]),(!_0x211ee4[_0x49e1fb(0x22e)]||!_0x211ee4[_0x49e1fb(0x1fb)]||!_0x211ee4['timeoutUrl']||!_0x211ee4[_0x49e1fb(0x203)])&&logger[_0x49e1fb(0x208)](_0x17367[_0x49e1fb(0x21c)]),_0x3e87c3;}async['splitTests'](_0x58ceb2,_0x49dbcd){const _0xfb7fbb=a149_0x56cf5f,_0x544964={'krRhN':function(_0x294a4f,_0x238341){return _0x294a4f(_0x238341);},'Tarix':function(_0x31989c,_0x35a3e5){return _0x31989c(_0x35a3e5);}};try{const _0x38d8fe=_0x544964[_0xfb7fbb(0x222)](parseInt,process['env']['BROWSERSTACK_NODE_INDEX']||'0'),_0x2f2a5d=_0x544964['Tarix'](parseInt,process[_0xfb7fbb(0x21b)][_0xfb7fbb(0x22a)]||'1'),_0x5394a9=process[_0xfb7fbb(0x21b)][_0xfb7fbb(0x227)],_0xa99c7f={'nodeIndex':_0x38d8fe,'totalNodes':_0x2f2a5d,'projectName':this['config'][_0xfb7fbb(0x1f9)],'buildName':this[_0xfb7fbb(0x1fa)][_0xfb7fbb(0x226)],'buildRunIdentifier':_0x5394a9,'orchestrationStrategy':_0x49dbcd,'hostInfo':this[_0xfb7fbb(0x232)](),'tests':_0x58ceb2[_0xfb7fbb(0x21a)](_0x1818f1=>({'filePath':_0x1818f1}))},_0x4fcee9=await RequestUtils[_0xfb7fbb(0x209)](_0xa99c7f);return logger[_0xfb7fbb(0x208)](_0xfb7fbb(0x1f6)+JSON[_0xfb7fbb(0x206)](_0x4fcee9)),this[_0xfb7fbb(0x230)]+=0x1,this[_0xfb7fbb(0x22d)](_0x4fcee9[_0xfb7fbb(0x211)]||{});}catch(_0x297f47){return logger[_0xfb7fbb(0x208)]('[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20'+(_0x297f47[_0xfb7fbb(0x22f)]||_0x297f47['toString']())),null;}}async[a149_0x56cf5f(0x231)](_0x51174d){const _0x301f68=a149_0x56cf5f,_0x313abf={};_0x313abf['WESlG']=_0x301f68(0x1ff),_0x313abf[_0x301f68(0x205)]=function(_0x59b4df,_0x1c6b0a){return _0x59b4df*_0x1c6b0a;},_0x313abf['iwBQx']=function(_0x38b992,_0x3c30e7){return _0x38b992&&_0x3c30e7;},_0x313abf['tjpln']=function(_0x5b5b68,_0x3ad277){return _0x5b5b68<_0x3ad277;},_0x313abf[_0x301f68(0x1f4)]=function(_0x3dd1c2,_0x21c640){return _0x3dd1c2-_0x21c640;},_0x313abf[_0x301f68(0x218)]=function(_0x2959ec,_0x4b5769){return _0x2959ec&&_0x4b5769;},_0x313abf[_0x301f68(0x21f)]=_0x301f68(0x21d),_0x313abf[_0x301f68(0x202)]=function(_0x27ae97,_0x22e9cc){return _0x27ae97>_0x22e9cc;};const _0x2606af=_0x313abf;if(!_0x51174d)return null;try{logger[_0x301f68(0x208)](_0x2606af['WESlG']);const _0x400bcf=_0x51174d[_0x301f68(0x1fb)]||this[_0x301f68(0x214)],_0x5e4c74=_0x2606af[_0x301f68(0x205)](_0x51174d[_0x301f68(0x22e)]||this[_0x301f68(0x217)],0x3e8),_0x4f9eb4=_0x51174d[_0x301f68(0x20f)],_0xff885e=_0x51174d[_0x301f68(0x203)];if(_0x2606af['iwBQx'](!_0xff885e,!_0x4f9eb4))return null;let _0x5f929a=null;const _0x15e489=Date[_0x301f68(0x204)]();while(_0xff885e&&_0x2606af[_0x301f68(0x1fe)](_0x2606af[_0x301f68(0x1f4)](Date[_0x301f68(0x204)](),_0x15e489),_0x5e4c74)){logger['debug'](_0x301f68(0x20e)+_0xff885e);const _0x523b3c=await RequestUtils[_0x301f68(0x228)](_0xff885e);logger[_0x301f68(0x208)](_0x301f68(0x221)+JSON['stringify'](_0x523b3c)),this[_0x301f68(0x230)]+=0x1;if(_0x523b3c&&_0x523b3c[_0x301f68(0x223)]){_0x5f929a=_0x523b3c[_0x301f68(0x223)];break;}await new Promise(_0x156f52=>setTimeout(_0x156f52,_0x400bcf*0x3e8)),logger[_0x301f68(0x208)](_0x301f68(0x20c)+_0x400bcf+'\x20seconds.');}if(_0x2606af['gnMOY'](!_0x5f929a,_0x4f9eb4)){logger[_0x301f68(0x208)](_0x2606af[_0x301f68(0x21f)]);const _0x3634c6=await RequestUtils['getSplitFiles'](_0x4f9eb4);_0x3634c6&&_0x3634c6['tests']&&(_0x5f929a=_0x3634c6['tests']);}if(_0x5f929a&&_0x2606af[_0x301f68(0x202)](_0x5f929a[_0x301f68(0x1f3)],0x0))return _0x5f929a[_0x301f68(0x21a)](_0x5d86a7=>_0x5d86a7['filePath']);return null;}catch(_0xaa1b92){return logger[_0x301f68(0x208)](_0x301f68(0x22b)+(_0xaa1b92[_0x301f68(0x22f)]||_0xaa1b92[_0x301f68(0x219)]())),null;}}['_getHostInfo'](){const _0x4abe1d=a149_0x56cf5f,_0x252208={'qvUdD':function(_0x4b0208,_0x1ef0ff){return _0x4b0208(_0x1ef0ff);}},_0x1e61f2=_0x252208[_0x4abe1d(0x224)](require,'os');try{return{'hostname':_0x1e61f2[_0x4abe1d(0x212)](),'platform':_0x1e61f2[_0x4abe1d(0x1fc)](),'release':_0x1e61f2[_0x4abe1d(0x229)](),'arch':_0x1e61f2[_0x4abe1d(0x207)](),'totalmem':_0x1e61f2[_0x4abe1d(0x20d)](),'freemem':_0x1e61f2[_0x4abe1d(0x1f7)]()};}catch(_0x52741d){return{};}}}function a149_0x5b0e(_0x38fe89,_0x140bef){const _0x13a50e=a149_0x13a5();return a149_0x5b0e=function(_0x5b0edd,_0x563fe6){_0x5b0edd=_0x5b0edd-0x1f2;let _0x1e8b9a=_0x13a50e[_0x5b0edd];return _0x1e8b9a;},a149_0x5b0e(_0x38fe89,_0x140bef);}module[a149_0x56cf5f(0x1f8)]=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_0x4c9f34=a150_0x4724;(function(_0x2bb9b8,_0x9731d1){var _0x369fe5=a150_0x4724,_0x12d6e4=_0x2bb9b8();while(!![]){try{var _0x311ec2=parseInt(_0x369fe5(0xca))/0x1+-parseInt(_0x369fe5(0xc8))/0x2+parseInt(_0x369fe5(0xc6))/0x3*(parseInt(_0x369fe5(0xb9))/0x4)+-parseInt(_0x369fe5(0xba))/0x5+parseInt(_0x369fe5(0xb1))/0x6+parseInt(_0x369fe5(0xc4))/0x7*(parseInt(_0x369fe5(0xb5))/0x8)+-parseInt(_0x369fe5(0xcc))/0x9*(-parseInt(_0x369fe5(0xcb))/0xa);if(_0x311ec2===_0x9731d1)break;else _0x12d6e4['push'](_0x12d6e4['shift']());}catch(_0x585774){_0x12d6e4['push'](_0x12d6e4['shift']());}}}(a150_0x5cf4,0xe3285));var a150_0x72a72b={};a150_0x72a72b[a150_0x4c9f34(0xc3)]=a150_0x4c9f34(0xb3),a150_0x72a72b[a150_0x4c9f34(0xc0)]=a150_0x4c9f34(0xb2),a150_0x72a72b[a150_0x4c9f34(0xae)]='ERROR_ACCESS_DENIED';function a150_0x5cf4(){var _0x51ba08=['TestRunStarted','TestRunFinished','LogCreated','8DODsBR','9008340mayONJ','HookRunStarted','BROWSERSTACK_TESTHUB_UUID','observability','TESTHUB_BUILD_API','TestFinished','DEPRECATED','accessibility','ACCESSIBILITY','INVALID_CREDENTIALS','16961uIVSmA','EVENT','32442mWFKHC','TestStarted','3500058IDMyjq','CBTSessionCreated','62874hCCbnG','16238440fDQhDH','9SXJMmx','BROWSERSTACK_TESTHUB_JWT','ACCESS_DENIED','HookRunFinished','TestSkipped','5811918ewCCaZ','ERROR_SDK_DEPRECATED','ERROR_INVALID_CREDENTIALS','exports','5960tLCiGI'];a150_0x5cf4=function(){return _0x51ba08;};return a150_0x5cf4();}var a150_0x2a6fa4={};a150_0x2a6fa4[a150_0x4c9f34(0xc7)]=a150_0x4c9f34(0xb6),a150_0x2a6fa4[a150_0x4c9f34(0xbf)]=a150_0x4c9f34(0xb7),a150_0x2a6fa4[a150_0x4c9f34(0xb0)]='TestRunSkipped',a150_0x2a6fa4[a150_0x4c9f34(0xb8)]=a150_0x4c9f34(0xb8),a150_0x2a6fa4['HookStarted']=a150_0x4c9f34(0xbb),a150_0x2a6fa4['HookFinished']=a150_0x4c9f34(0xaf),a150_0x2a6fa4['CBTSessionCreated']=a150_0x4c9f34(0xc9);var a150_0x327b94={};a150_0x327b94[a150_0x4c9f34(0xbc)]=a150_0x4c9f34(0xbc),a150_0x327b94['BROWSERSTACK_TESTHUB_JWT']=a150_0x4c9f34(0xad);function a150_0x4724(_0xf0872c,_0x48f6ad){var _0x5cf497=a150_0x5cf4();return a150_0x4724=function(_0x47249e,_0x2afaee){_0x47249e=_0x47249e-0xad;var _0x8f5f6b=_0x5cf497[_0x47249e];return _0x8f5f6b;},a150_0x4724(_0xf0872c,_0x48f6ad);}var a150_0x1d3ac7={};a150_0x1d3ac7[a150_0x4c9f34(0xbe)]='api/v2/builds',a150_0x1d3ac7[a150_0x4c9f34(0xc2)]=a150_0x4c9f34(0xc1),a150_0x1d3ac7['OBSERVABILITY']=a150_0x4c9f34(0xbd),a150_0x1d3ac7['ERROR']=a150_0x72a72b,a150_0x1d3ac7[a150_0x4c9f34(0xc5)]=a150_0x2a6fa4,a150_0x1d3ac7['ENV_VAR']=a150_0x327b94,module[a150_0x4c9f34(0xb4)]=a150_0x1d3ac7;
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
- const a151_0x5583b3=a151_0x1122;(function(_0xd3761d,_0x3edeeb){const _0x2a8927=a151_0x1122,_0x2f7dbb=_0xd3761d();while(!![]){try{const _0x2f6f2d=-parseInt(_0x2a8927(0x1e0))/0x1+parseInt(_0x2a8927(0x1b3))/0x2*(-parseInt(_0x2a8927(0x1b7))/0x3)+-parseInt(_0x2a8927(0x207))/0x4*(parseInt(_0x2a8927(0x1f3))/0x5)+-parseInt(_0x2a8927(0x1de))/0x6*(parseInt(_0x2a8927(0x21c))/0x7)+-parseInt(_0x2a8927(0x1be))/0x8+-parseInt(_0x2a8927(0x201))/0x9+parseInt(_0x2a8927(0x1fb))/0xa*(parseInt(_0x2a8927(0x1dd))/0xb);if(_0x2f6f2d===_0x3edeeb)break;else _0x2f7dbb['push'](_0x2f7dbb['shift']());}catch(_0x385eec){_0x2f7dbb['push'](_0x2f7dbb['shift']());}}}(a151_0x3cd8,0xc9892));const bsSetupHelper=require('../helper'),path=require(a151_0x5583b3(0x1d9)),util=require(a151_0x5583b3(0x204)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a151_0x5583b3(0x1eb)),testhubUtils=require(a151_0x5583b3(0x23e)),testHubConstants=require(a151_0x5583b3(0x200)),constants=require(a151_0x5583b3(0x1b6)),RequestQueueHandler=require(a151_0x5583b3(0x230)),logger=require(a151_0x5583b3(0x1c6))[a151_0x5583b3(0x20e)],SessionHandler=require(a151_0x5583b3(0x229)),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require(a151_0x5583b3(0x1f2)),TestDetails=require('../../bin/playwright/reporter/test-details.js'),{uploadTraceZip}=require(a151_0x5583b3(0x1fd)),{isTurboScaleSession}=require('../helper.js'),BrowserstackCLI=require(a151_0x5583b3(0x1d0)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x382d19=>{OngoingEvents['add'](_0x382d19);},awaitAllEvents=async()=>{return Promise['allSettled'](OngoingEvents);};class TestHubHandler{static [a151_0x5583b3(0x1ea)]=![];static async['launchBuild'](_0xb1606d,_0x21fcf3){const _0x1071d1=a151_0x5583b3,_0x15ba97={'sBjLO':function(_0x1236bc,_0x52ab39){return _0x1236bc||_0x52ab39;},'fmMJy':function(_0x131c4c,_0x4afbd1){return _0x131c4c||_0x4afbd1;},'rvTqc':function(_0x393c79,_0x172251){return _0x393c79===_0x172251;},'QjJgZ':function(_0x4b2d5a){return _0x4b2d5a();},'yIHaa':_0x1071d1(0x20b),'Iakqr':_0x1071d1(0x213),'iIaNZ':_0x1071d1(0x1ed),'QoVxk':function(_0x4e7d5b,_0x1982e6,_0x22065e,_0x590780,_0x480e20){return _0x4e7d5b(_0x1982e6,_0x22065e,_0x590780,_0x480e20);},'mqxgu':_0x1071d1(0x20a),'GYSHr':function(_0x5d42a1,_0x1232b3){return _0x5d42a1===_0x1232b3;},'NOKJI':'accessibility','iSZlQ':_0x1071d1(0x23a),'uWhdZ':_0x1071d1(0x23d),'aYSbb':function(_0x41d402,_0x139974){return _0x41d402===_0x139974;}};await PerformanceTester[_0x1071d1(0x216)](PerformanceEvents[_0x1071d1(0x1ba)],async()=>{const _0x464210=_0x1071d1,_0x4489a8=Object[_0x464210(0x21a)]({},_0x21fcf3[_0x464210(0x1da)],{'root_dir_path':'','framework':_0x21fcf3[_0x464210(0x1c2)]}),_0x8f5388=bsSetupHelper[_0x464210(0x217)](_0x4489a8),_0x1d33da=bsSetupHelper[_0x464210(0x1d7)](_0x4489a8),_0x5a2d6e=_0x15ba97['sBjLO'](_0x8f5388,'')+':'+_0x15ba97[_0x464210(0x1f8)](_0x1d33da,'');if(_0x15ba97[_0x464210(0x1b5)](_0x5a2d6e,':'))return _0x15ba97[_0x464210(0x22f)](isTestObservabilitySession)&&(logger[_0x464210(0x228)](_0x15ba97[_0x464210(0x219)]),process[_0x464210(0x212)][_0x464210(0x1e7)]=_0x15ba97[_0x464210(0x1d8)]),testhubUtils['isAccessibilityEnabled'](_0x4489a8)&&logger['debug'](_0x15ba97['iIaNZ']),[null,null];try{const _0x19301a=await this[_0x464210(0x1c7)](_0x4489a8,_0xb1606d),_0x2b326b=this[_0x464210(0x1e2)](_0x8f5388,_0x1d33da),_0x4875b8=await _0x15ba97[_0x464210(0x1f0)](nodeRequest,_0x15ba97['mqxgu'],testHubConstants['TESTHUB_BUILD_API'],_0x19301a,_0x2b326b),_0x4466d7=this[_0x464210(0x214)](_0x4489a8,_0x4875b8,_0x2b326b);await this[_0x464210(0x20d)](_0x21fcf3,_0xb1606d);const _0x1cbc5b=testhubUtils[_0x464210(0x21e)](_0x4489a8);process[_0x464210(0x212)][_0x464210(0x1e1)]=JSON[_0x464210(0x227)](_0x1cbc5b);if(_0x15ba97[_0x464210(0x1ce)](testhubUtils['getAccessibilityValueFromYml'](_0x21fcf3[_0x464210(0x1da)]),null)){const _0x354494=_0x4466d7[_0x15ba97[_0x464210(0x223)]];_0x354494&&_0x354494[_0x464210(0x23f)]&&_0x354494['buildHashedId']&&(_0x21fcf3[_0x464210(0x1da)][_0x464210(0x22e)]=!![],process['env'][_0x464210(0x1f7)]=_0x15ba97[_0x464210(0x1c3)]);}return _0x4466d7&&_0x4466d7[_0x15ba97[_0x464210(0x223)]]&&_0x4466d7[_0x15ba97[_0x464210(0x223)]][_0x15ba97['uWhdZ']]&&(process[_0x464210(0x212)]['BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT']=_0x4466d7[_0x15ba97[_0x464210(0x223)]][_0x15ba97['uWhdZ']]),_0x4466d7;}catch(_0xb9c82e){_0x15ba97[_0x464210(0x203)](_0xb9c82e[_0x464210(0x1cd)],![])&&testhubUtils[_0x464210(0x1c4)](_0xb9c82e);throw _0xb9c82e;}})();}static async['processTraceZips'](){const _0x559648=a151_0x5583b3,_0x1dcb1f={'HZwDp':function(_0x1747f1,_0x789568,_0x19e109){return _0x1747f1(_0x789568,_0x19e109);},'yQCND':function(_0x1df7bb,_0x2dbca6){return _0x1df7bb(_0x2dbca6);},'DOvtJ':function(_0x191477){return _0x191477();},'aaBxp':_0x559648(0x1bc)};if(processedTraceZips)return;const _0x426048=TestDetails['getTraceFilePaths']();_0x426048['forEach'](({testUId:_0x240fcf,filePath:_0x215a60})=>{const _0x37603e=_0x559648;var _0xc437bf=_0x1dcb1f[_0x37603e(0x221)](uploadTraceZip,_0x215a60,_0x240fcf);_0x1dcb1f[_0x37603e(0x1e4)](addEvent,_0xc437bf);});try{await _0x1dcb1f['DOvtJ'](awaitAllEvents),logger[_0x559648(0x228)](_0x1dcb1f[_0x559648(0x22a)]),processedTraceZips=!![];}catch(_0x4f5bfa){logger[_0x559648(0x231)](_0x559648(0x1dc)+util['format'](_0x4f5bfa));}}static async[a151_0x5583b3(0x20d)](_0x550501,_0x4a4287){const _0x514c7a=a151_0x5583b3;if(constants[_0x514c7a(0x241)][_0x514c7a(0x1d3)](_0x4a4287)){await _0x550501['setupPercy']();return;}_0x550501['config'][_0x514c7a(0x208)]&&logger[_0x514c7a(0x228)](_0x514c7a(0x1b9)+_0x4a4287+_0x514c7a(0x1c5));}static[a151_0x5583b3(0x1d2)](_0x517d99){const _0xfdae40=a151_0x5583b3,_0x5b92a3={'LAint':function(_0x3f5ff1,_0x757618){return _0x3f5ff1(_0x757618);},'qPlVt':_0xfdae40(0x23a)};let _0x506624;if(_0x517d99[_0xfdae40(0x1e5)]){const _0x239130={};_0x239130[_0xfdae40(0x1f4)]=_0x517d99[_0xfdae40(0x1e5)],_0x506624=_0x239130;}else{const _0x574d32={};_0x574d32[_0xfdae40(0x1f4)]={},_0x506624=_0x574d32;}if((!bsSetupHelper[_0xfdae40(0x1c0)]()||_0x5b92a3[_0xfdae40(0x20f)](isTurboScaleSession,_0x517d99))&&testhubUtils[_0xfdae40(0x1c9)](_0x517d99)){const _0x53d117={};_0x53d117[_0xfdae40(0x232)]=_0x5b92a3[_0xfdae40(0x21d)],Object[_0xfdae40(0x21a)](_0x506624[_0xfdae40(0x1f4)],_0x53d117);}return _0x506624;}static[a151_0x5583b3(0x1e2)](_0x2f1ecc,_0x13ad90){const _0xd6844d=a151_0x5583b3,_0x429116={'eMVZo':function(_0x2f397a,_0x22ac50){return _0x2f397a(_0x22ac50);}},_0xaa3280={};return _0xaa3280[_0xd6844d(0x242)]=_0x2f1ecc,_0xaa3280['password']=_0x13ad90,{'auth':_0xaa3280,'headers':_0x429116['eMVZo'](getDefaultHeaders,![])};}static async[a151_0x5583b3(0x1c7)](_0x20ed9c,_0x4d9abc){const _0x4715ac=a151_0x5583b3,_0x14959c={'YzQwq':'Generating\x20build\x20upstream\x20data\x20for\x20TestHub','mxMpI':function(_0x3bc8e3,_0xa2b413){return _0x3bc8e3(_0xa2b413);}};logger[_0x4715ac(0x228)](_0x14959c[_0x4715ac(0x238)]);const _0x2d818c={'project_name':_0x20ed9c[_0x4715ac(0x1bd)]||'','name':_0x20ed9c[_0x4715ac(0x218)]||path[_0x4715ac(0x1d5)](path[_0x4715ac(0x1bf)](process['cwd']())),'build_identifier':_0x20ed9c[_0x4715ac(0x1fc)],'description':_0x20ed9c[_0x4715ac(0x1b8)]||'','started_at':new Date()['toISOString'](),'tags':_0x14959c[_0x4715ac(0x1e8)](getCustomTags,_0x20ed9c),'host_info':bsSetupHelper[_0x4715ac(0x1e6)](),'ci_info':bsSetupHelper[_0x4715ac(0x22b)](),'build_run_identifier':process['env'][_0x4715ac(0x1ca)],'failed_tests_rerun':process[_0x4715ac(0x212)]['BROWSERSTACK_RERUN']||![],'linked_build_uuid':process[_0x4715ac(0x212)][_0x4715ac(0x22c)]||'','version_control':await bsSetupHelper['getGitMetaData'](),'accessibility':this[_0x4715ac(0x1d2)](_0x20ed9c),'framework_details':testhubUtils['getFrameworkDetails'](_0x20ed9c,_0x4d9abc),'product_map':testhubUtils[_0x4715ac(0x1e3)](_0x20ed9c),'browserstackAutomation':bsSetupHelper[_0x4715ac(0x1c0)](),'grouping_identifier':process[_0x4715ac(0x212)][_0x4715ac(0x22d)],'test_orchestration':testhubUtils[_0x4715ac(0x23b)](_0x20ed9c)};if(bsSetupHelper[_0x4715ac(0x1f1)]()['central_scanner']||bsSetupHelper['getCentralUser']()[_0x4715ac(0x1d6)]){const _0x234712={};_0x234712['job_id']=process[_0x4715ac(0x212)][_0x4715ac(0x1ee)],_0x234712['token']=process[_0x4715ac(0x212)]['BROWSERSTACK_CENTRAL_SCANNER_JWT'],_0x2d818c['central_scanner']=_0x234712;}return _0x2d818c;}static['extractDataFromResponse'](_0xa91087,_0x55d211,_0x392470){const _0x1ef17c=a151_0x5583b3,_0x46ea0d={'ETDGE':function(_0x38206){return _0x38206();},'EMzUJ':function(_0x52cc2c,_0xc7330b){return _0x52cc2c&&_0xc7330b;},'NxfzM':_0x1ef17c(0x23a),'dHoBp':'false'},_0x154e71={};if(_0x46ea0d[_0x1ef17c(0x1c1)](isTestObservabilitySession)){const [_0x233a12,_0x3fca5f,_0x1cabbb]=testhubUtils['setTestObservabilityVariables'](_0x55d211[_0x1ef17c(0x211)],_0x392470[_0x1ef17c(0x205)]);if(_0x46ea0d[_0x1ef17c(0x1ff)](_0x233a12,_0x3fca5f)){const _0x5ee258={};_0x5ee258[_0x1ef17c(0x21b)]=_0x233a12,_0x5ee258[_0x1ef17c(0x202)]=_0x3fca5f,_0x5ee258['allowScreenshot']=_0x1cabbb,_0x154e71[testHubConstants[_0x1ef17c(0x235)]]=_0x5ee258,process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x46ea0d[_0x1ef17c(0x1f6)];}else _0x154e71[testHubConstants[_0x1ef17c(0x235)]]={},process[_0x1ef17c(0x212)][_0x1ef17c(0x1d1)]=_0x46ea0d[_0x1ef17c(0x243)];}else process[_0x1ef17c(0x212)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x46ea0d[_0x1ef17c(0x243)];const [_0x4e3c18,_0x5956fd,_0x48b1b7]=testhubUtils[_0x1ef17c(0x1f5)](_0x55d211[_0x1ef17c(0x211)]);if(_0x46ea0d[_0x1ef17c(0x1ff)](_0x4e3c18,_0x5956fd)){const _0x12ce32={};_0x12ce32['authToken']=_0x4e3c18,_0x12ce32['buildHashedId']=_0x5956fd,_0x12ce32[_0x1ef17c(0x23d)]=_0x48b1b7,_0x154e71[testHubConstants[_0x1ef17c(0x240)]]=_0x12ce32,process[_0x1ef17c(0x212)][_0x1ef17c(0x1d4)]=_0x46ea0d['NxfzM'];}else _0x154e71[testHubConstants['ACCESSIBILITY']]={},process[_0x1ef17c(0x212)][_0x1ef17c(0x1d4)]=_0x46ea0d[_0x1ef17c(0x243)];return testhubUtils[_0x1ef17c(0x210)](_0x55d211[_0x1ef17c(0x211)]),logger[_0x1ef17c(0x1e9)]('Testhub\x20started\x20with\x20id:\x20'+process[_0x1ef17c(0x212)]['BROWSERSTACK_TESTHUB_UUID']),_0x154e71;}static async[a151_0x5583b3(0x222)](_0xd3db2a){const _0x489ef2=a151_0x5583b3,_0x598b72={'VTffC':function(_0x3d11bc,_0x3eb5c2){return _0x3d11bc===_0x3eb5c2;},'OOlQU':_0x489ef2(0x213),'yukIx':_0x489ef2(0x1f9),'ogXyF':_0x489ef2(0x1b4),'aSSgd':_0x489ef2(0x231),'TLbrH':_0x489ef2(0x1ec),'YIZor':_0x489ef2(0x1fa),'aQpGC':'user_killed','updHL':function(_0x884d36){return _0x884d36();},'LPWqn':function(_0x2e069a,_0x48a903,_0x5bcb6c,_0x264704,_0x43ec20,_0x5dd4dd){return _0x2e069a(_0x48a903,_0x5bcb6c,_0x264704,_0x43ec20,_0x5dd4dd);},'JEwaP':'PUT','stNIl':'stopBuildUpstream\x20event\x20successful!','SgyrZ':_0x489ef2(0x1cd)};await PerformanceTester[_0x489ef2(0x216)](PerformanceEvents[_0x489ef2(0x20c)],async()=>{const _0x5dd8e6=_0x489ef2;if(_0x598b72[_0x5dd8e6(0x1c8)](process['env'][_0x5dd8e6(0x1e7)],_0x598b72['OOlQU'])||TestHubHandler[_0x5dd8e6(0x1ea)]||bsSetupHelper['isUndefined'](process[_0x5dd8e6(0x212)][testHubConstants[_0x5dd8e6(0x215)]['BROWSERSTACK_TESTHUB_JWT']]))return;TestHubHandler[_0x5dd8e6(0x1ea)]=!![];if(BrowserstackCLI[_0x5dd8e6(0x237)]()['isRunning']())return;await this['processTraceZips'](),await RequestQueueHandler[_0x5dd8e6(0x237)]()[_0x5dd8e6(0x224)](),await SessionHandler[_0x5dd8e6(0x1cf)]();if(_0x598b72[_0x5dd8e6(0x1c8)](process[_0x5dd8e6(0x212)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']],_0x598b72['yukIx'])||_0x598b72[_0x5dd8e6(0x1c8)](process[_0x5dd8e6(0x212)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x598b72[_0x5dd8e6(0x1cc)])){logger[_0x5dd8e6(0x228)](_0x598b72[_0x5dd8e6(0x234)]);const _0x1ed7a4={};return _0x1ed7a4['status']=_0x598b72[_0x5dd8e6(0x1db)],_0x1ed7a4[_0x5dd8e6(0x225)]=_0x598b72[_0x5dd8e6(0x239)],_0x1ed7a4;}const _0x52180c={'finished_at':new Date()['toISOString'](),'finished_metadata':[]};!!_0xd3db2a&&_0x52180c[_0x598b72[_0x5dd8e6(0x1df)]][_0x5dd8e6(0x23c)]({'reason':_0x598b72[_0x5dd8e6(0x1ef)],'signal':_0xd3db2a,'failure_data':''});const _0x30ea14={'headers':_0x598b72['updHL'](getDefaultHeaders)};try{const _0x520928=await _0x598b72[_0x5dd8e6(0x209)](nodeRequest,_0x598b72[_0x5dd8e6(0x226)],_0x5dd8e6(0x236)+process['env'][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]+_0x5dd8e6(0x206),_0x52180c,_0x30ea14,![]);if(_0x520928[_0x5dd8e6(0x211)]&&_0x520928[_0x5dd8e6(0x211)]['error']){const _0x311769={};_0x311769[_0x5dd8e6(0x225)]=_0x520928['data'][_0x5dd8e6(0x231)];throw _0x311769;}else{logger[_0x5dd8e6(0x228)](_0x598b72[_0x5dd8e6(0x21f)]);const _0x40f360={};return _0x40f360[_0x5dd8e6(0x1bb)]=_0x598b72[_0x5dd8e6(0x1fe)],_0x40f360['message']='',_0x40f360;}}catch(_0x554cfd){_0x554cfd[_0x5dd8e6(0x220)]?logger[_0x5dd8e6(0x228)](_0x5dd8e6(0x233)+_0x554cfd[_0x5dd8e6(0x220)][_0x5dd8e6(0x1bb)]+'\x20'+_0x554cfd[_0x5dd8e6(0x220)][_0x5dd8e6(0x244)]+'\x20'+JSON[_0x5dd8e6(0x227)](_0x554cfd[_0x5dd8e6(0x220)][_0x5dd8e6(0x211)])):logger[_0x5dd8e6(0x228)](_0x5dd8e6(0x233)+(_0x554cfd[_0x5dd8e6(0x225)]||_0x554cfd));const _0x5307e2={};return _0x5307e2[_0x5dd8e6(0x1bb)]=_0x598b72['aSSgd'],_0x5307e2[_0x5dd8e6(0x225)]=_0x554cfd['message']||_0x554cfd[_0x5dd8e6(0x220)]?_0x554cfd['response']['status']+':'+_0x554cfd[_0x5dd8e6(0x220)]['statusText']:_0x554cfd,_0x5307e2;}})();}}function a151_0x1122(_0x5dfbd0,_0x61adc8){const _0x3cd8af=a151_0x3cd8();return a151_0x1122=function(_0x1122e5,_0x19d931){_0x1122e5=_0x1122e5-0x1b3;let _0x12c81d=_0x3cd8af[_0x1122e5];return _0x12c81d;},a151_0x1122(_0x5dfbd0,_0x61adc8);}module[a151_0x5583b3(0x1cb)]=TestHubHandler;function a151_0x3cd8(){const _0x133832=['uploadPending','message','JEwaP','stringify','debug','../test-observability/sessionHandler.js','aaBxp','getCiInfo','BROWSERSTACK_LINKED_BUILD_UUID','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','accessibility','QjJgZ','../test-observability/requestQueueHandler.js','error','includeEncodedExtension','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','ogXyF','OBSERVABILITY','api/v1/builds/','getInstance','YzQwq','TLbrH','true','getTestOrchestrationBuildStartData','push','scannerProcessingTimeout','./utils.js','authToken','ACCESSIBILITY','PERCY_SUPPORTED_FRAMEWORKS','username','dHoBp','statusText','42LWhfSz','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','rvTqc','../../bin/utils/constants.js','16284QqGMls','buildDescription','Percy\x20is\x20not\x20supported\x20for\x20','START','status','All\x20trace\x20zip\x20send\x20events\x20complete','projectName','5953088OBQPRq','resolve','isBrowserstackInfra','ETDGE','framework','iSZlQ','logBuildError','\x20framework','../logger','generateBuildUpstreamData','VTffC','isAccessibilityEnabled','BROWSERSTACK_BUILD_RUN_IDENTIFIER','exports','yukIx','success','GYSHr','waitForBuildStatus','../../bin/v2/browserstackCLI','BROWSERSTACK_TEST_OBSERVABILITY','getAccessibilityOptions','includes','BROWSERSTACK_ACCESSIBILITY','basename','lcnc','getAccessKey','Iakqr','path','config','aSSgd','Error\x20while\x20waiting\x20for\x20events:\x20','209fiCvTg','78rPAkus','YIZor','514849CYLklN','BROWSERSTACK_PRODUCT_MAP','getConfig','getProductMapForBuildStartCall','yQCND','accessibilityOptions','getHostInfo','BS_TESTOPS_BUILD_COMPLETED','mxMpI','info','buildStopSent','../test-observability/utils','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','BROWSERSTACK_CENTRAL_SCANNER_JOBID','aQpGC','QoVxk','getCentralUser','../performance/constants','504565uXMjHa','settings','setAccessibilityVariables','NxfzM','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','fmMJy','null','finished_metadata','1942470vZAvgQ','buildIdentifier','../../bin/playwright/reporter/pwUtils.js','SgyrZ','EMzUJ','./constants.js','3626865EEQSUY','buildHashedId','aYSbb','util','auth','/stop','8JkuFyE','percy','LPWqn','POST','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','STOP','checkAndSetupPercy','winstonLogger','LAint','setTestHubCommonMetaInfo','data','env','false','extractDataFromResponse','ENV_VAR','measureWrapper','getUserName','buildName','yIHaa','assign','jwt','477841FymruY','qPlVt','getProductMap','stNIl','response','HZwDp','stop','NOKJI'];a151_0x3cd8=function(){return _0x133832;};return a151_0x3cd8();}
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_0x105ae6=a152_0x325f;(function(_0x153b3f,_0x1fdd57){const _0x4da047=a152_0x325f,_0x7abb96=_0x153b3f();while(!![]){try{const _0x55e1c4=-parseInt(_0x4da047(0x1f0))/0x1+parseInt(_0x4da047(0x1b9))/0x2+parseInt(_0x4da047(0x1f6))/0x3*(parseInt(_0x4da047(0x1e7))/0x4)+parseInt(_0x4da047(0x264))/0x5*(parseInt(_0x4da047(0x258))/0x6)+parseInt(_0x4da047(0x20a))/0x7+parseInt(_0x4da047(0x1f9))/0x8*(parseInt(_0x4da047(0x1b8))/0x9)+-parseInt(_0x4da047(0x24f))/0xa;if(_0x55e1c4===_0x1fdd57)break;else _0x7abb96['push'](_0x7abb96['shift']());}catch(_0x56a68f){_0x7abb96['push'](_0x7abb96['shift']());}}}(a152_0x4997,0xd658d));const bsSetupHelper=require(a152_0x105ae6(0x1f5)),LoadTestModule=require(a152_0x105ae6(0x21f)),{isTestObservabilitySession,getFrameworkVersion}=require('../test-observability/utils'),accessibilityHelper=require(a152_0x105ae6(0x22e)),logger=require(a152_0x105ae6(0x259))['winstonLogger'],{nestedKeyValue}=require(a152_0x105ae6(0x246)),scripts=require(a152_0x105ae6(0x251)),globals=require('../globals.js'),testHubConstants=require(a152_0x105ae6(0x1df)),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require(a152_0x105ae6(0x250)),{FRAMEWORKS}=require(a152_0x105ae6(0x249)),{isTurboScaleSession}=require(a152_0x105ae6(0x23f)),OrchestrationUtils=require(a152_0x105ae6(0x22d)),constants=require(a152_0x105ae6(0x205));let testData={};function a152_0x325f(_0x6d1c86,_0x4fff4d){const _0x499707=a152_0x4997();return a152_0x325f=function(_0x325f96,_0x379330){_0x325f96=_0x325f96-0x1b5;let _0x892a8e=_0x499707[_0x325f96];return _0x892a8e;},a152_0x325f(_0x6d1c86,_0x4fff4d);}function a152_0x4997(){const _0x299099=['foGSm','ACCESS_DENIED','commands','BS_TESTOPS_ALLOW_SCREENSHOTS','../helper','5469sTBwqo','CsNRt','username','2074424QKvzTH','getTestData','toString','ONqrt','uuid','MOCHA','isTrue','error','parseFromJson','CbtXG','getAgentVersion','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../bin/utils/constants.js','setTestObservabilityVariables','lerDG','message','setTestData','2906764FfrKpi','OBSERVABILITY','checkAccessibilityPlatformConfig','CBTSessionCreated','zhSsS','PMpFK','toUpperCase','build_hashed_id','gNmcf','LLiQs','null','HookRunStarted','BROWSERSTACK_PERCY','PGkXJ','isAccessibilityPlatform','BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP','accessibility','parse','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','length','setCurrentTestData','../../bin/v2/modules/loadTestModule','FRAMEWORK_DETAILS','accessibilityPlatform','setPercyFlag','QdFcc','isBrowserstackInfra','TlFmh','getTestOrchestrationBuildStartData','fAtrC','value','ERROR','config','split','xGQHn','../test-orchestration/orchestrationUtils.js','../accessibility-automation/helper','CREDENTIALS_FOR_CRASH_REPORTING','ylFvG','commandsToWrap','RvbeG','app','options','handleErrorForObservability','getAccessibilityPlatformValidation','TestRunStarted','success','ksVny','scripts','pGuKH','YCeIF','TfzMl','gecFu','../ats/helper','parseA11yJwtPayload','4|6|3|0|2|1|5','zADLw','BROWSERSTACK_ACCESSIBILITY','BS_TESTOPS_BUILD_HASHED_ID','HookRunFinished','../helper.js','enyLM','BS_A11Y_JWT','../test-observability/constants.js','DKgRz','false','getFrameworkDetails','lbQVT','kHeNI','23414400xOrhyH','../../bin/jest/test-observability/test-details.js','../accessibility-automation/scripts.js','tags','BROWSERSTACK_TESTHUB_JWT','INVALID_CREDENTIALS','javascript','JPSjw','RLZyR','222VgYCzw','../logger','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override','debug','qAybY','doqZJ','MjjJN','CrzGY','percy','CbmPG','ULTlt','53245cUaswD','qupfH','appendTesthubParams','QhQkl','getTestFrameworkDetails','getAccessibilityValueFromYml','daTBO','handleErrorForAccessibility','rUdna','isAccessibilityEnabled','test_run','BROWSERSTACK_TESTHUB_UUID','shouldProcessEventForTesthub','isPercyBuild','27twMhnH','3450266WgeIRJ','command','stringify','VepSB','nbYtw','getGlobal','xbabp','OmJwG','isTurboScaleSession','TEST_REPORTING_ANALYTICS','shouldScanTestForAccessibility','KxNtK','goog:chromeOptions','xaPCG','BROWSERSTACK_TEST_ACCESSIBILITY_YML','bstackA11yShouldScan','getCentralUser','setTestHubCommonMetaInfo','VxijM','isUndefined','znGMG','rkJyz','env','qVVJX','capabilities','mfECt','CuPTf','BS_TESTOPS_BUILD_COMPLETED','CkILS','observability','titlePath','assign','getCurrentTestData','JEST','logBuildError','gvsxf','MDntK','fbJxK','./constants.js','LogCreated','true','BS_TESTOPS_JWT','\x20Build\x20creation\x20failed','1|3|0|4|2|5','isLTSSession','platforms','2784BtUYJs','DSGCY','setAccessibilityVariables','CODECEPT','jwt','vENXn','keys','password','ACCESSIBILITY','1361710kUPceo'];a152_0x4997=function(){return _0x299099;};return a152_0x4997();}exports['getProductMap']=_0x2b5c43=>{const _0x54cd47=a152_0x105ae6,_0x424641={'DKgRz':function(_0x116c3d){return _0x116c3d();}};let _0x4db03f=![],_0x917800=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x2b5c43[_0x54cd47(0x233)])_0x917800=!![];else bsSetupHelper[_0x54cd47(0x224)]()&&(_0x4db03f=!![]);return Object[_0x54cd47(0x1d8)]({'observability':_0x424641[_0x54cd47(0x24a)](isTestObservabilitySession),'accessibility':exports[_0x54cd47(0x26d)](_0x2b5c43),'percy':_0x2b5c43['percy']||![],'automate':_0x4db03f,'app_automate':_0x917800,'turboscale':bsSetupHelper[_0x54cd47(0x1c1)](_0x2b5c43),'lts':LoadTestModule['isLTSSession'](_0x2b5c43)},bsSetupHelper[_0x54cd47(0x1c9)]());},exports[a152_0x105ae6(0x24c)]=(_0x3bf129,_0x13ef51)=>{const _0x4c2c49=a152_0x105ae6,_0x26876a={'MDntK':function(_0x5aff78,_0x1435ce){return _0x5aff78(_0x1435ce);},'NyNYF':_0x4c2c49(0x255)},_0x368d61={'frameworkName':_0x13ef51,'frameworkVersion':_0x26876a[_0x4c2c49(0x1dd)](getFrameworkVersion,_0x13ef51),'sdkVersion':bsSetupHelper[_0x4c2c49(0x203)](),'language':_0x26876a['NyNYF'],'testFramework':bsSetupHelper[_0x4c2c49(0x268)](_0x3bf129,_0x13ef51)};return process[_0x4c2c49(0x1cf)][_0x4c2c49(0x220)]=JSON[_0x4c2c49(0x1bb)](_0x368d61),_0x368d61;},exports[a152_0x105ae6(0x222)]=_0x4cd884=>{const _0x12710a=a152_0x105ae6,_0x582021={};_0x582021[_0x12710a(0x239)]=_0x12710a(0x24b),_0x582021['Nqzwk']=_0x12710a(0x1e1);const _0x29d73c=_0x582021;process['env'][_0x12710a(0x216)]=_0x29d73c['ksVny'],bsSetupHelper[_0x12710a(0x1ff)](_0x4cd884[_0x12710a(0x22a)][_0x12710a(0x261)])&&(!_0x4cd884[_0x12710a(0x261)]||!_0x4cd884[_0x12710a(0x261)]['isRunning']())&&(process[_0x12710a(0x1cf)][_0x12710a(0x216)]=_0x29d73c['Nqzwk']);},exports[a152_0x105ae6(0x1b7)]=()=>{const _0x51f2ed=a152_0x105ae6;return bsSetupHelper['isTrue'](process[_0x51f2ed(0x1cf)][_0x51f2ed(0x216)]);},exports['isAccessibilityEnabled']=(_0x8566af={})=>{const _0x4e2bcf=a152_0x105ae6,_0x5a7391={};_0x5a7391[_0x4e2bcf(0x1bd)]=function(_0x5b9921,_0x4a3915){return _0x5b9921!==_0x4a3915;},_0x5a7391['qVVJX']=function(_0x4b318a,_0x11ce89){return _0x4b318a===_0x11ce89;},_0x5a7391[_0x4e2bcf(0x26a)]='true',_0x5a7391[_0x4e2bcf(0x227)]=function(_0x37f23b,_0x3a6442){return _0x37f23b>_0x3a6442;};const _0x42889c=_0x5a7391;if(_0x42889c[_0x4e2bcf(0x1bd)](process['env'][_0x4e2bcf(0x243)],undefined))return bsSetupHelper[_0x4e2bcf(0x1ff)](process[_0x4e2bcf(0x1cf)][_0x4e2bcf(0x243)]);let _0x5511f9=_0x42889c[_0x4e2bcf(0x1d0)](process[_0x4e2bcf(0x1cf)][_0x4e2bcf(0x1c7)],_0x42889c[_0x4e2bcf(0x26a)]);return _0x42889c[_0x4e2bcf(0x227)](Object[_0x4e2bcf(0x1ed)](_0x8566af)[_0x4e2bcf(0x21d)],0x0)&&(process[_0x4e2bcf(0x1cf)][_0x4e2bcf(0x21c)]=accessibilityHelper[_0x4e2bcf(0x20c)](_0x8566af)),_0x5511f9=_0x5511f9||_0x42889c[_0x4e2bcf(0x1d0)](process[_0x4e2bcf(0x1cf)][_0x4e2bcf(0x21c)],_0x42889c[_0x4e2bcf(0x26a)]),_0x5511f9;},exports[a152_0x105ae6(0x206)]=(_0x57bf57,_0x59ea12)=>{const _0x2f9ebe=a152_0x105ae6,_0x50ba0a={'wAgEn':function(_0x1d31d4){return _0x1d31d4();},'oCwLF':_0x2f9ebe(0x1e4),'YCeIF':'true','RLZyR':function(_0x1d9801,_0x5a64dd,_0x465f29){return _0x1d9801(_0x5a64dd,_0x465f29);},'ULTlt':_0x2f9ebe(0x1d6),'VxijM':_0x2f9ebe(0x234)};if(!_0x57bf57||!_0x57bf57[_0x2f9ebe(0x1d6)])return exports[_0x2f9ebe(0x235)](),[null,null,null];if(!_0x57bf57['observability']['success'])return exports[_0x2f9ebe(0x235)](_0x57bf57[_0x2f9ebe(0x1d6)]),[null,null,null];if(_0x50ba0a['wAgEn'](isTestObservabilitySession)){const _0x3bfc78=_0x50ba0a['oCwLF'][_0x2f9ebe(0x22b)]('|');let _0x15013e=0x0;while(!![]){switch(_0x3bfc78[_0x15013e++]){case'0':_0x57bf57[_0x2f9ebe(0x211)]&&(process[_0x2f9ebe(0x1cf)][_0x2f9ebe(0x244)]=_0x57bf57['build_hashed_id']);continue;case'1':process[_0x2f9ebe(0x1cf)][_0x2f9ebe(0x1d4)]=_0x50ba0a[_0x2f9ebe(0x23c)];continue;case'2':logger['debug']('['+constants[_0x2f9ebe(0x1c2)]+']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x57bf57[_0x2f9ebe(0x211)]);continue;case'3':if(_0x57bf57[_0x2f9ebe(0x1eb)]){process['env'][_0x2f9ebe(0x1e2)]=_0x57bf57[_0x2f9ebe(0x1eb)];const _0x169d46={};_0x169d46[_0x2f9ebe(0x1f8)]=_0x59ea12['username'],_0x169d46[_0x2f9ebe(0x1ee)]=_0x59ea12[_0x2f9ebe(0x1ee)],process[_0x2f9ebe(0x1cf)][_0x2f9ebe(0x22f)]=JSON[_0x2f9ebe(0x1bb)](_0x169d46);}continue;case'4':_0x50ba0a[_0x2f9ebe(0x257)](nestedKeyValue,_0x57bf57,[_0x50ba0a[_0x2f9ebe(0x263)],_0x50ba0a[_0x2f9ebe(0x1cb)]])&&(process[_0x2f9ebe(0x1cf)][_0x2f9ebe(0x1f4)]=_0x57bf57['observability'][_0x2f9ebe(0x234)]['allow_screenshots'][_0x2f9ebe(0x1fb)]());continue;case'5':return[_0x57bf57[_0x2f9ebe(0x1eb)],_0x57bf57[_0x2f9ebe(0x211)],process[_0x2f9ebe(0x1cf)][_0x2f9ebe(0x1f4)]];}break;}}return[null,null,null];},exports[a152_0x105ae6(0x1e9)]=_0x2e4016=>{const _0x2c0023=a152_0x105ae6,_0x35600e={'foGSm':function(_0x1c8ae4,_0x549467,_0x47422c){return _0x1c8ae4(_0x549467,_0x47422c);},'ylFvG':_0x2c0023(0x21a),'enyLM':_0x2c0023(0x234),'xaPCG':function(_0xb321cb,_0x1bb9ec,_0x486974,_0x284cb3){return _0xb321cb(_0x1bb9ec,_0x486974,_0x284cb3);},'TlFmh':'name','QhQkl':_0x2c0023(0x228),'DSGCY':function(_0x1e4df8,_0xf88ee1,_0x41e964,_0xbfe69d){return _0x1e4df8(_0xf88ee1,_0x41e964,_0xbfe69d);},'VepSB':_0x2c0023(0x1ba),'eYvka':'commands','qAybY':'nonBStackInfraA11yChromeOptions','KxNtK':_0x2c0023(0x1c5),'qweaO':function(_0x12c814,_0x2d0c09){return _0x12c814(_0x2d0c09);},'CuPTf':function(_0x2f18be,_0x477aed){return _0x2f18be===_0x477aed;},'doqZJ':function(_0x321890,_0x4457b6){return _0x321890===_0x4457b6;},'QdFcc':_0x2c0023(0x1e1),'OmJwG':_0x2c0023(0x25b)};if(!_0x2e4016[_0x2c0023(0x21a)])return exports[_0x2c0023(0x26b)](),[null,null];if(!_0x2e4016[_0x2c0023(0x21a)][_0x2c0023(0x238)])return exports[_0x2c0023(0x26b)](_0x2e4016[_0x2c0023(0x21a)]),[null,null];if(_0x35600e[_0x2c0023(0x1f1)](nestedKeyValue,_0x2e4016,[_0x35600e[_0x2c0023(0x230)],_0x35600e[_0x2c0023(0x247)]])){const {accessibilityToken:_0x10083f,scannerVersion:_0x369ea4,scannerProcessingTimeout:_0x1da002,isMobileScanningEnabledForGroup:_0x35f344}=_0x35600e[_0x2c0023(0x1c6)](jsonifyAccessibilityArray,_0x2e4016[_0x2c0023(0x21a)][_0x2c0023(0x234)][_0x2c0023(0x1d1)],_0x35600e['TlFmh'],_0x35600e[_0x2c0023(0x267)]),_0x17c622={'scripts':_0x35600e[_0x2c0023(0x1e8)](jsonifyAccessibilityArray,_0x2e4016['accessibility'][_0x2c0023(0x234)][_0x2c0023(0x23a)],_0x35600e[_0x2c0023(0x225)],_0x35600e[_0x2c0023(0x1bc)])};_0x17c622[_0x35600e['eYvka']]=_0x2e4016[_0x2c0023(0x21a)][_0x2c0023(0x234)][_0x2c0023(0x231)][_0x2c0023(0x1f3)];const _0x4e001b=_0x35600e[_0x2c0023(0x1c6)](jsonifyAccessibilityArray,_0x2e4016[_0x2c0023(0x21a)][_0x2c0023(0x234)][_0x2c0023(0x1d1)],_0x35600e['TlFmh'],_0x35600e[_0x2c0023(0x267)]);_0x17c622[_0x35600e[_0x2c0023(0x25d)]]=_0x4e001b[_0x35600e[_0x2c0023(0x1c4)]],scripts[_0x2c0023(0x201)](_0x17c622),scripts['toJson']();let _0x5881a9=process['env'][_0x2c0023(0x204)];_0x5881a9=!!_0x5881a9?JSON[_0x2c0023(0x21b)](_0x5881a9):{},_0x5881a9['scannerVersion']=_0x369ea4,process[_0x2c0023(0x1cf)][_0x2c0023(0x204)]=JSON[_0x2c0023(0x1bb)](_0x5881a9),process['env'][_0x2c0023(0x248)]=_0x10083f,process['env'][_0x2c0023(0x219)]=_0x35600e['qweaO'](String,_0x35600e[_0x2c0023(0x1d3)](_0x35f344,!![])||_0x35600e[_0x2c0023(0x25e)](_0x35f344,_0x35600e[_0x2c0023(0x223)])),logger[_0x2c0023(0x25c)](_0x2c0023(0x25a)+_0x2e4016[_0x2c0023(0x211)]);const _0x1b32aa=accessibilityHelper[_0x2c0023(0x240)](_0x10083f);return _0x1b32aa&&bsSetupHelper[_0x2c0023(0x1ff)](_0x1b32aa['skipCDPConnectOverride'])&&(process[_0x2c0023(0x1cf)]['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE']=!![],logger[_0x2c0023(0x25c)](_0x35600e[_0x2c0023(0x1c0)])),[_0x10083f,_0x2e4016[_0x2c0023(0x211)],_0x1da002];}return[null,null];},exports[a152_0x105ae6(0x235)]=_0x4ae749=>{const _0xeb874c=a152_0x105ae6,_0x5a862c={};_0x5a862c[_0xeb874c(0x1f7)]=_0xeb874c(0x241),_0x5a862c['rUdna']=_0xeb874c(0x214),_0x5a862c[_0xeb874c(0x202)]=_0xeb874c(0x24b);const _0x37af73=_0x5a862c,_0x3c4d42=_0x37af73[_0xeb874c(0x1f7)][_0xeb874c(0x22b)]('|');let _0x4537f3=0x0;while(!![]){switch(_0x3c4d42[_0x4537f3++]){case'0':process['env'][_0xeb874c(0x1e2)]=_0x37af73[_0xeb874c(0x26c)];continue;case'1':process[_0xeb874c(0x1cf)][_0xeb874c(0x1f4)]=_0x37af73[_0xeb874c(0x26c)];continue;case'2':process[_0xeb874c(0x1cf)][_0xeb874c(0x244)]=_0x37af73[_0xeb874c(0x26c)];continue;case'3':process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x37af73[_0xeb874c(0x202)];continue;case'4':process[_0xeb874c(0x1cf)]['BROWSERSTACK_TESTHUB_UUID']=_0x37af73['rUdna'];continue;case'5':exports['logBuildError'](_0x4ae749,testHubConstants[_0xeb874c(0x20b)]);continue;case'6':process[_0xeb874c(0x1cf)][_0xeb874c(0x253)]=_0x37af73[_0xeb874c(0x26c)];continue;}break;}},exports[a152_0x105ae6(0x26b)]=_0x2e4a55=>{const _0x4c02ce=a152_0x105ae6,_0x270531={};_0x270531[_0x4c02ce(0x1bf)]='2|0|1|3|4',_0x270531[_0x4c02ce(0x242)]=_0x4c02ce(0x214),_0x270531[_0x4c02ce(0x1d2)]='false';const _0x2d91d6=_0x270531,_0x5bb1dd=_0x2d91d6[_0x4c02ce(0x1bf)][_0x4c02ce(0x22b)]('|');let _0x1b842=0x0;while(!![]){switch(_0x5bb1dd[_0x1b842++]){case'0':process[_0x4c02ce(0x1cf)][_0x4c02ce(0x253)]=_0x2d91d6[_0x4c02ce(0x242)];continue;case'1':process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2d91d6['mfECt'];continue;case'2':process[_0x4c02ce(0x1cf)][_0x4c02ce(0x1b5)]=_0x2d91d6['zADLw'];continue;case'3':process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x2d91d6[_0x4c02ce(0x1d2)];continue;case'4':exports[_0x4c02ce(0x1db)](_0x2e4a55,testHubConstants[_0x4c02ce(0x1ef)]);continue;}break;}},exports[a152_0x105ae6(0x1db)]=(_0x1402c5,_0x2a5290='')=>{const _0x3e4ed9=a152_0x105ae6,_0x536822={};_0x536822['TfzMl']=function(_0x53b453,_0x271cc6){return _0x53b453===_0x271cc6;};const _0x2e5fe4=_0x536822;if(_0x2e5fe4[_0x3e4ed9(0x23d)](_0x1402c5,undefined)){logger[_0x3e4ed9(0x200)](_0x2a5290[_0x3e4ed9(0x210)]()+_0x3e4ed9(0x1e3));return;}for(const _0x2dac5e of _0x1402c5['errors']){const _0x1909f0=_0x2dac5e['key'],_0x3d1ca3=_0x2dac5e[_0x3e4ed9(0x208)];if(_0x3d1ca3)switch(_0x1909f0){case testHubConstants[_0x3e4ed9(0x229)][_0x3e4ed9(0x254)]:logger[_0x3e4ed9(0x200)](_0x3d1ca3);break;case testHubConstants[_0x3e4ed9(0x229)][_0x3e4ed9(0x1f2)]:logger['info'](_0x3d1ca3);break;case testHubConstants[_0x3e4ed9(0x229)]['DEPRECATED']:logger[_0x3e4ed9(0x200)](_0x3d1ca3);break;default:logger[_0x3e4ed9(0x200)](_0x3d1ca3);}}};const jsonifyAccessibilityArray=(_0x5f078c,_0x508c86,_0x290368)=>{const _0x43f96c={};return _0x5f078c['forEach'](_0x171ce9=>{_0x43f96c[_0x171ce9[_0x508c86]]=_0x171ce9[_0x290368];}),_0x43f96c;};exports[a152_0x105ae6(0x1ca)]=_0x6f6de4=>{const _0x1e337c=a152_0x105ae6;_0x6f6de4[_0x1e337c(0x1eb)]&&(process[_0x1e337c(0x1cf)]['BROWSERSTACK_TESTHUB_JWT']=_0x6f6de4[_0x1e337c(0x1eb)]);_0x6f6de4[_0x1e337c(0x211)]&&(process[_0x1e337c(0x1cf)][_0x1e337c(0x1b5)]=_0x6f6de4[_0x1e337c(0x211)],logger[_0x1e337c(0x25c)]('BROWSERSTACK_TESTHUB_UUID:\x20'+_0x6f6de4[_0x1e337c(0x211)]));;},exports[a152_0x105ae6(0x1b6)]=(_0x1699c5='',_0x2f4b45='')=>{const _0x29de26=a152_0x105ae6,_0x221fdf={'vENXn':function(_0x5a4fbe){return _0x5a4fbe();},'aBNzb':function(_0xaa62e6,_0x44efb9){return _0xaa62e6===_0x44efb9;},'PGkXJ':'uploadEventData','ONqrt':_0x29de26(0x1e0),'CbmPG':_0x29de26(0x20d),'fbJxK':_0x29de26(0x215),'rkJyz':'HookRunFinished'};if(exports['isPercyBuild']()&&!exports[_0x29de26(0x26d)]()&&!_0x221fdf[_0x29de26(0x1ec)](isTestObservabilitySession)){if(_0x221fdf['aBNzb'](_0x2f4b45,_0x221fdf[_0x29de26(0x217)]))return![];if([_0x221fdf['ONqrt'],_0x221fdf[_0x29de26(0x262)]]['includes'](_0x1699c5))return![];return!![];}if(exports[_0x29de26(0x26d)]()&&!_0x221fdf[_0x29de26(0x1ec)](isTestObservabilitySession)){if([_0x221fdf[_0x29de26(0x1de)],_0x221fdf[_0x29de26(0x1ce)],_0x221fdf[_0x29de26(0x1fc)]]['includes'](_0x1699c5))return![];return!![];}return exports[_0x29de26(0x26d)]()||_0x221fdf[_0x29de26(0x1ec)](isTestObservabilitySession)||exports[_0x29de26(0x1b7)]();},exports[a152_0x105ae6(0x266)]=(_0x3adc41,_0x5d1d1d,_0x32ed01='',_0x543a64)=>{const _0x2afbb2=a152_0x105ae6,_0x2123fb={};_0x2123fb[_0x2afbb2(0x23e)]=_0x2afbb2(0x215),_0x2123fb[_0x2afbb2(0x1d5)]=_0x2afbb2(0x245),_0x2123fb['PMpFK']=function(_0x1a2aaa,_0x41f901){return _0x1a2aaa===_0x41f901;},_0x2123fb[_0x2afbb2(0x23b)]=_0x2afbb2(0x1c8),_0x2123fb[_0x2afbb2(0x207)]=_0x2afbb2(0x218),_0x2123fb[_0x2afbb2(0x1dc)]=_0x2afbb2(0x21a),_0x2123fb[_0x2afbb2(0x1cd)]=function(_0x102440,_0x4710b3){return _0x102440&&_0x4710b3;},_0x2123fb[_0x2afbb2(0x22c)]=function(_0x291cf1,_0x1bcb72){return _0x291cf1+_0x1bcb72;},_0x2123fb[_0x2afbb2(0x260)]=function(_0x16f130,_0x486403){return _0x16f130+_0x486403;},_0x2123fb[_0x2afbb2(0x20e)]=function(_0x5ef610,_0x17c127){return _0x5ef610&&_0x17c127;},_0x2123fb['fgtXB']=function(_0x5327fe,_0x1a780a){return _0x5327fe===_0x1a780a;},_0x2123fb[_0x2afbb2(0x256)]=function(_0x53f1aa,_0x3e8f4e){return _0x53f1aa===_0x3e8f4e;},_0x2123fb[_0x2afbb2(0x25f)]=_0x2afbb2(0x237),_0x2123fb[_0x2afbb2(0x24e)]=function(_0x1b4a3b,_0x3be8b7){return _0x1b4a3b===_0x3be8b7;},_0x2123fb[_0x2afbb2(0x265)]=function(_0xfcb874,_0xc29d6d){return _0xfcb874===_0xc29d6d;},_0x2123fb[_0x2afbb2(0x212)]='product_map';const _0x157e9e=_0x2123fb;if(![_0x157e9e[_0x2afbb2(0x23e)],_0x157e9e[_0x2afbb2(0x1d5)]]['includes'](_0x5d1d1d)&&exports[_0x2afbb2(0x26d)]()){const _0x4f6621={};if(_0x157e9e[_0x2afbb2(0x20f)](_0x543a64,FRAMEWORKS[_0x2afbb2(0x1fe)])){const _0x47f048=globals[_0x2afbb2(0x1be)](_0x157e9e[_0x2afbb2(0x23b)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x32ed01[_0x2afbb2(0x1d7)](),!![]),_0x520249=globals[_0x2afbb2(0x1be)](_0x157e9e['lerDG']);_0x4f6621[_0x157e9e[_0x2afbb2(0x1dc)]]=_0x157e9e[_0x2afbb2(0x1cd)](_0x520249,_0x47f048);}if(_0x157e9e[_0x2afbb2(0x20f)](_0x543a64,FRAMEWORKS['JEST'])){const _0x16d729=_0x157e9e['xGQHn'](_0x157e9e[_0x2afbb2(0x260)](_0x3adc41['scopes']['join']('\x20'),'\x20'),_0x32ed01['name']),_0x8f66cd=globals[_0x2afbb2(0x1be)](_0x157e9e[_0x2afbb2(0x23b)])||accessibilityHelper[_0x2afbb2(0x1c3)](_0x16d729,![]),_0xa23901=browserStackGlobals[_0x2afbb2(0x218)];_0x4f6621[_0x157e9e['gvsxf']]=_0x157e9e['zhSsS'](_0xa23901,_0x8f66cd);}if(_0x157e9e['fgtXB'](_0x543a64,FRAMEWORKS['PLAYWRIGHT'])){if(_0x157e9e[_0x2afbb2(0x256)](_0x5d1d1d,_0x157e9e['MjjJN']))return;_0x4f6621[_0x157e9e[_0x2afbb2(0x1dc)]]=PWTestDetails[_0x2afbb2(0x236)](_0x3adc41[_0x2afbb2(0x1fd)]);}if(_0x157e9e[_0x2afbb2(0x24e)](_0x543a64,FRAMEWORKS[_0x2afbb2(0x1ea)])){const _0x4e8d2f=accessibilityHelper['shouldScanTestForAccessibility'](_0x32ed01[_0x2afbb2(0x1d7)](),!![]),_0x29527c=global[_0x2afbb2(0x221)];_0x4f6621[_0x157e9e[_0x2afbb2(0x1dc)]]=_0x157e9e['zhSsS'](_0x29527c,_0x4e8d2f);}if(_0x157e9e[_0x2afbb2(0x265)](_0x543a64,FRAMEWORKS['CUCUMBER'])){const _0x1dc2d8=accessibilityHelper[_0x2afbb2(0x1c3)](null,![],_0x3adc41[_0x2afbb2(0x252)]),_0x184b2e=globals[_0x2afbb2(0x1be)](_0x157e9e[_0x2afbb2(0x207)]);_0x4f6621[_0x157e9e[_0x2afbb2(0x1dc)]]=_0x157e9e[_0x2afbb2(0x20e)](_0x184b2e,_0x1dc2d8);}_0x3adc41[_0x157e9e[_0x2afbb2(0x212)]]=_0x4f6621;}},exports[a152_0x105ae6(0x1d9)]=_0x227ba4=>{const _0x447cb1=a152_0x105ae6,_0x4997af={};_0x4997af['RvbeG']=function(_0x4168ca,_0x206189){return _0x4168ca>_0x206189;};const _0xc2d106=_0x4997af;let _0x3cf103={};if(_0xc2d106[_0x447cb1(0x232)](Object[_0x447cb1(0x1ed)](testData)[_0x447cb1(0x21d)],0x0))return testData;_0x3cf103=JestTestDetails[_0x447cb1(0x1fa)]();if(_0xc2d106['RvbeG'](Object[_0x447cb1(0x1ed)](_0x3cf103)['length'],0x0))return _0x3cf103;return _0x3cf103;},exports[a152_0x105ae6(0x21e)]=(_0x4d17f3,_0x5da9bc={})=>{const _0x1c3603=a152_0x105ae6;if(bsSetupHelper[_0x1c3603(0x1cc)](_0x5da9bc[_0x1c3603(0x26e)]))return;switch(_0x4d17f3){case FRAMEWORKS[_0x1c3603(0x1fe)]:testData=_0x5da9bc[_0x1c3603(0x26e)];break;case FRAMEWORKS[_0x1c3603(0x1da)]:JestTestDetails[_0x1c3603(0x209)](_0x5da9bc[_0x1c3603(0x26e)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x4909d3=>{const _0x5f0399=a152_0x105ae6,_0x3d0c19={};_0x3d0c19[_0x5f0399(0x24d)]=function(_0x47a5b5,_0x588aca){return _0x47a5b5!==_0x588aca;},_0x3d0c19[_0x5f0399(0x213)]=function(_0x187dda,_0x27c669){return _0x187dda!==_0x27c669;};const _0x2ab1ae=_0x3d0c19;if(_0x2ab1ae[_0x5f0399(0x24d)](_0x4909d3[_0x5f0399(0x21a)],null)&&_0x2ab1ae[_0x5f0399(0x24d)](_0x4909d3[_0x5f0399(0x21a)],undefined))return _0x4909d3[_0x5f0399(0x21a)];let _0x9a88dc=![],_0x37e258=![];if(_0x4909d3[_0x5f0399(0x1e6)])for(const _0x1f3cda of _0x4909d3[_0x5f0399(0x1e6)]){_0x2ab1ae['lbQVT'](_0x1f3cda[_0x5f0399(0x21a)],null)&&_0x2ab1ae[_0x5f0399(0x213)](_0x1f3cda[_0x5f0399(0x21a)],undefined)&&(_0x9a88dc=_0x9a88dc||bsSetupHelper['isTrue'](_0x1f3cda[_0x5f0399(0x21a)]),_0x37e258=!![]);}if(_0x37e258)return _0x9a88dc;return null;},exports[a152_0x105ae6(0x226)]=_0xfe4fa4=>{const _0x5494d2=new OrchestrationUtils(_0xfe4fa4);return _0x5494d2['getBuildStartData']();},exports['getProductMapForBuildStartCall']=_0x6192ad=>{const _0x106cce=a152_0x105ae6,_0x211a5a={'VrYrj':function(_0x5edb82){return _0x5edb82();}};let _0x451b95=![],_0x21beca=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x6192ad[_0x106cce(0x233)])_0x21beca=!![];else bsSetupHelper[_0x106cce(0x224)]()&&(_0x451b95=!![]);return Object['assign']({'observability':_0x211a5a['VrYrj'](isTestObservabilitySession),'accessibility':exports[_0x106cce(0x269)](_0x6192ad),'percy':_0x6192ad[_0x106cce(0x261)]||![],'automate':_0x451b95,'app_automate':_0x21beca,'turboscale':bsSetupHelper[_0x106cce(0x1c1)](_0x6192ad),'lts':LoadTestModule[_0x106cce(0x1e5)](_0x6192ad)},bsSetupHelper[_0x106cce(0x1c9)]());};
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
- function a153_0x52f0(){const _0x20d3b2=['2808ohADZD','fireFunnelTestEvent','34278NTLmaE','2116288bnCwww','1551090HrxDYk','2247ClxFMt','zcCML','408868QdlLyo','eivqk','KhBqO','gDFiu','4868830ROVNRW','exports','9GLTXAv','./utilities','2ZNOrWv','cancel','333343OAUQFG'];a153_0x52f0=function(){return _0x20d3b2;};return a153_0x52f0();}const a153_0x49845b=a153_0x1e0d;(function(_0x40ebb1,_0x3f25bc){const _0x408d61=a153_0x1e0d,_0x20d55b=_0x40ebb1();while(!![]){try{const _0x47dbb6=-parseInt(_0x408d61(0x100))/0x1+-parseInt(_0x408d61(0xfe))/0x2*(parseInt(_0x408d61(0x103))/0x3)+-parseInt(_0x408d61(0xf6))/0x4+parseInt(_0x408d61(0xf3))/0x5+parseInt(_0x408d61(0x101))/0x6*(parseInt(_0x408d61(0xf4))/0x7)+-parseInt(_0x408d61(0x104))/0x8+parseInt(_0x408d61(0xfc))/0x9*(parseInt(_0x408d61(0xfa))/0xa);if(_0x47dbb6===_0x3f25bc)break;else _0x20d55b['push'](_0x20d55b['shift']());}catch(_0x5c5133){_0x20d55b['push'](_0x20d55b['shift']());}}}(a153_0x52f0,0x3991f));function a153_0x1e0d(_0x3860bb,_0x2e7b27){const _0x52f067=a153_0x52f0();return a153_0x1e0d=function(_0x1e0db0,_0xeab11a){_0x1e0db0=_0x1e0db0-0xf3;let _0x16659b=_0x52f067[_0x1e0db0];return _0x16659b;},a153_0x1e0d(_0x3860bb,_0x2e7b27);}const utilities=require(a153_0x49845b(0xfd));module[a153_0x49845b(0xfb)]=(_0x2b041c,_0x2c0efe,_0x1b8e03,_0x173f5a,_0x9cb87e,_0x1e58f3)=>{const _0x494bcd=a153_0x49845b,_0x56213e={'eivqk':function(_0x4e7a70,_0x3e556e){return _0x4e7a70-_0x3e556e;},'eLpVX':function(_0x4d3850,_0x55e968){return _0x4d3850(_0x55e968);},'sMVJe':function(_0x2bbe8a,_0x18dc9f,_0x19daf4){return _0x2bbe8a(_0x18dc9f,_0x19daf4);},'zcCML':function(_0x435150,_0x37e861){return _0x435150(_0x37e861);}};let _0x54ad8c,_0x65777f=![];const _0x5976fb=new Promise((_0x5b3dff,_0x4ac4bb)=>{const _0x1bc861={'KhBqO':function(_0x5b4ee6,_0x1885b6){const _0x7aa11c=a153_0x1e0d;return _0x56213e[_0x7aa11c(0xf7)](_0x5b4ee6,_0x1885b6);},'gDFiu':function(_0x4f4df4,_0x567c30){return _0x56213e['eLpVX'](_0x4f4df4,_0x567c30);}};_0x54ad8c=_0x56213e['sMVJe'](setTimeout,()=>{const _0x2f0417=a153_0x1e0d;if(!_0x65777f){const _0x358874={'status':''+_0x2c0efe,'timeTaken':_0x1bc861[_0x2f0417(0xf8)](new Date(),_0x173f5a)};utilities[_0x2f0417(0x102)](_0x1b8e03,_0x358874,_0x9cb87e,_0x1e58f3),_0x1bc861[_0x2f0417(0xf9)](_0x4ac4bb,new Error(_0x2c0efe));}},_0x2b041c);});return _0x5976fb[_0x494bcd(0xff)]=()=>{const _0x5e1449=_0x494bcd;_0x65777f=!![],_0x56213e[_0x5e1449(0xf5)](clearTimeout,_0x54ad8c);},_0x5976fb;};
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_0x13145d=a154_0x1138;function a154_0x1964(){const _0x3f9c91=['9696134HTtEpw','22134720nxKSHd','_buildHashedId','mLYBG','nodejs','172QqpvFD','getStackTraceAsString','requirePWModule','fireFunnelTestEvent','POST','NMuxo','osVersion','NqIBS','forEach','body','push','buildIdentifier','331991eLkMlQ','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','getTestFrameworkDetails','framework','fpJPR','JWrvJ','98LikuWG','finishedMetadata','35287hSgTUW','getPackageVersion','playwrightVersion','replace','AUTOMATE','codeceptjs','./helper','browserVersion','version','event_properties','yJEBe','isNullOrEmpty','sdkRunId','vDHSP','ENV_VAR','YRsUg','sddCD','[REDACTED]','bgRJa','info','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','nodeRequest','killSignal','join','../bin/utils/constants','BROWSERSTACK_TESTHUB_UUID','format','constants','49515XyquyV','source','setReadWriteExecuteAccess','5062437JrnHJu','keys','getAccessKey','SDKTestSuccessful','assign','getUserName','reduce','../helpers/testhub/constants','error','API\x20Event\x20','vezAO','\x20response\x20-\x20','zqyYf','xvZjf','./globals','uBPst','SDK\x20run\x20ended\x20for\x20id:\x20','browser','16TQJxHV','finalExecution','values','APP_AUTOMATE_PRODUCTS','50iWUxNY','browserStackConfig','length','160746KBuKLF','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','./testhub/utils','X_OK','content-type','ybsDE','trim','iPIFs','all','hostname','seleniumVersion','QlguL','env','VRYlR','./test-observability/utils','getTurboScaleSessionsList','util','parse','app','dEaJS','apply','selenium-webdriver','isTurboScaleSession','CwhTG','tests','globalException','getBuildLink','every','15xpaflD','debug','isModifiable','Error\x20in\x20firing\x20request\x20to\x20','mKhGB','config','RbEGS','type','xShxp','chmodSync','object','unknown','cqiAc','wCdZJ','sendLogs','\x20:\x20','wqpMQ','null','eSpOm','APP_AUTOMATE','getNodeAgent','toString','winstonLogger','errorMessage','mvpsE','undefined','HWXjk','sanitizeBrowserStackConfig','isBrowserstackInfra','split','ryEqC','NBSwo','getFrameworkVersion'];a154_0x1964=function(){return _0x3f9c91;};return a154_0x1964();}(function(_0xb6a429,_0x32993f){const _0x44fae1=a154_0x1138,_0x5008d0=_0xb6a429();while(!![]){try{const _0x3062ec=parseInt(_0x44fae1(0x1d0))/0x1*(parseInt(_0x44fae1(0x1ce))/0x2)+-parseInt(_0x44fae1(0x1ec))/0x3*(-parseInt(_0x44fae1(0x24a))/0x4)+-parseInt(_0x44fae1(0x224))/0x5*(parseInt(_0x44fae1(0x208))/0x6)+parseInt(_0x44fae1(0x245))/0x7+parseInt(_0x44fae1(0x201))/0x8*(-parseInt(_0x44fae1(0x1ef))/0x9)+parseInt(_0x44fae1(0x205))/0xa*(parseInt(_0x44fae1(0x1c8))/0xb)+-parseInt(_0x44fae1(0x246))/0xc;if(_0x3062ec===_0x32993f)break;else _0x5008d0['push'](_0x5008d0['shift']());}catch(_0x369969){_0x5008d0['push'](_0x5008d0['shift']());}}}(a154_0x1964,0xe1cfe));const os=require('os'),util=require(a154_0x13145d(0x218)),fs=require('fs'),{getProductMap}=require(a154_0x13145d(0x20a)),logger=require('./logger')[a154_0x13145d(0x23a)],constants=require(a154_0x13145d(0x1e8)),testHubConstants=require(a154_0x13145d(0x1f6)),{getTransformPath}=require('../bin/playwright/reporter/pwUtils'),{FUNNEL_INSTRUMENTATION_API_URL}=require('../bin/utils/constants'),{generateCIArtifacts,printNudgeLocalNotSetError}=require('./helper'),PerformanceTester=require('./performance/performance-tester'),globals=require(a154_0x13145d(0x1fd)),helper=require(a154_0x13145d(0x1d6)),{isTestObservabilitySession}=require(a154_0x13145d(0x216));function a154_0x1138(_0x4bcde7,_0x504c89){const _0x196494=a154_0x1964();return a154_0x1138=function(_0x113897,_0x28af9c){_0x113897=_0x113897-0x1c2;let _0x1e48f4=_0x196494[_0x113897];return _0x1e48f4;},a154_0x1138(_0x4bcde7,_0x504c89);}let unhandledErrors='';exports['fireFunnelTestEvent']=async(_0x3e1019,_0x5a19ec={},_0xeb4414,_0x2a9b2a,_0x2afa1e=![])=>{const _0x9a2943=a154_0x13145d,_0x13475c={'fpJPR':function(_0x2952ec,_0x5ae740){return _0x2952ec===_0x5ae740;},'vDHSP':_0x9a2943(0x22e),'iPIFs':function(_0x21082f,_0x222937){return _0x21082f>_0x222937;},'HWXjk':_0x9a2943(0x220),'ryEqC':function(_0x3bd1c3){return _0x3bd1c3();},'eSpOm':function(_0x5ebd2c,_0xc4a06){return _0x5ebd2c==_0xc4a06;},'VRYlR':_0x9a2943(0x235),'xvZjf':_0x9a2943(0x23d),'NMuxo':_0x9a2943(0x1d5),'CwhTG':function(_0x218b92,_0x4548a2){return _0x218b92>_0x4548a2;},'sddCD':function(_0xb882a0,_0x558455){return _0xb882a0!==_0x558455;},'vezAO':'Playwright','NBSwo':_0x9a2943(0x1f7),'YRsUg':function(_0x1d70e,_0x29a83b){return _0x1d70e>_0x29a83b;},'wqpMQ':function(_0x543d83,_0x5b7ba4){return _0x543d83+_0x5b7ba4;},'mLYBG':'Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','ybsDE':_0x9a2943(0x247),'yJEBe':function(_0xe74b95,_0x3a4be9){return _0xe74b95(_0x3a4be9);},'zqyYf':_0x9a2943(0x22f),'EZIqZ':_0x9a2943(0x249),'dEaJS':_0x9a2943(0x1f2),'xShxp':function(_0x2801a7,_0x3c7649){return _0x2801a7===_0x3c7649;},'cqiAc':function(_0x78aa18){return _0x78aa18();},'RsvGe':_0x9a2943(0x21d),'smyoG':'application/json','wCdZJ':_0x9a2943(0x1e1),'YOumm':_0x9a2943(0x24e)};let _0x39fe28=[];if(helper[_0x9a2943(0x240)]()&&_0x13475c['ryEqC'](isTestObservabilitySession))_0x39fe28=_0xeb4414[_0x9a2943(0x21a)]?constants[_0x9a2943(0x204)]:constants['AUTOMATE_PRODUCTS'];else{if(_0x13475c[_0x9a2943(0x242)](isTestObservabilitySession))_0x39fe28=constants[_0x9a2943(0x1c9)];else helper[_0x9a2943(0x240)]()&&(_0x39fe28=_0xeb4414[_0x9a2943(0x21a)]?constants[_0x9a2943(0x237)]:constants[_0x9a2943(0x1d4)]);}let _0x5be840=_0xeb4414[_0x9a2943(0x1c7)];if(_0x13475c[_0x9a2943(0x236)](_0x5be840,null))_0x5be840=_0x13475c[_0x9a2943(0x215)];else _0x13475c[_0x9a2943(0x1cc)](_0x5be840,undefined)&&(_0x5be840=_0x13475c[_0x9a2943(0x1fc)]);unhandledErrors&&_0x13475c[_0x9a2943(0x20f)](unhandledErrors[_0x9a2943(0x207)],0x0)&&(_0x5a19ec[_0x9a2943(0x221)]=unhandledErrors);global[_0x9a2943(0x1dc)]&&(_0x5a19ec[_0x9a2943(0x1dc)]=global[_0x9a2943(0x1dc)]);try{if(_0x5a19ec[_0x9a2943(0x1f7)]){if(_0x13475c[_0x9a2943(0x1cc)](_0x2a9b2a,_0x13475c[_0x9a2943(0x24f)])&&_0x13475c[_0x9a2943(0x21f)](_0x5a19ec['error'][_0x9a2943(0x207)],0x0)){const _0x2b932f={};_0x2b932f['os']='',_0x2b932f['osVersion']='',_0x2b932f['browser']='',_0x2b932f[_0x9a2943(0x1d7)]='';const _0x17b3c0=_0x2b932f;let _0x3fc9b6={};const _0x4d6449=_0x5a19ec[_0x9a2943(0x1f7)];_0x3fc9b6=_0x4d6449[_0x9a2943(0x1f5)]((_0x263f4b,_0x1ea734)=>{for(const _0x1b9b85 in _0x1ea734){_0x263f4b[_0x1b9b85]=_0x1ea734[_0x1b9b85];}return _0x263f4b;},{});const _0x7e64d={};_0x7e64d[_0x9a2943(0x220)]=_0x3fc9b6,_0x5a19ec[_0x9a2943(0x1f7)]=[Object[_0x9a2943(0x1f3)]({},_0x17b3c0,_0x7e64d)];}else{let _0x29b25e=0x0;const _0x3f0fe3=_0x13475c[_0x9a2943(0x1e0)](_0x2a9b2a,_0x13475c[_0x9a2943(0x1f9)])?JSON[_0x9a2943(0x219)](_0x5a19ec[_0x9a2943(0x1f7)]):_0x5a19ec[_0x9a2943(0x1f7)],_0x424745=Object[_0x9a2943(0x203)](_0x3f0fe3);_0x424745[_0x9a2943(0x1c4)](_0x52df77=>{const _0x9a6e8=_0x9a2943;if(_0x13475c[_0x9a6e8(0x1cc)](typeof _0x52df77,_0x13475c[_0x9a6e8(0x1dd)])){const _0x6bac5=Object[_0x9a6e8(0x203)](_0x52df77);!_0x6bac5[_0x9a6e8(0x223)](_0x27a2b5=>_0x27a2b5===null||_0x27a2b5===undefined||_0x27a2b5==='')&&(_0x29b25e+=0x1);}});if(_0x13475c[_0x9a2943(0x1cc)](_0x29b25e,0x0))delete _0x5a19ec[_0x13475c[_0x9a2943(0x243)]];else{const _0x23b8e6=[];Object[_0x9a2943(0x1f0)](_0x3f0fe3)[_0x9a2943(0x1c4)](_0x2285c4=>{const _0x21072c=_0x9a2943,[_0x150e06,_0x35fbce,_0x56e6a0,_0x5a4234]=_0x2285c4[_0x21072c(0x241)](',\x20');let _0x1b92a1={};if(!_0x5a4234){const _0x4b3e7a={};_0x4b3e7a['deviceName']=_0x150e06,_0x4b3e7a[_0x21072c(0x1c2)]=_0x35fbce,_0x4b3e7a[_0x21072c(0x200)]=_0x56e6a0,_0x1b92a1=_0x4b3e7a;}else{const _0x405e9b={};_0x405e9b['os']=_0x150e06,_0x405e9b['osVersion']=_0x35fbce,_0x405e9b[_0x21072c(0x200)]=_0x56e6a0,_0x405e9b[_0x21072c(0x1d7)]=_0x5a4234,_0x1b92a1=_0x405e9b;}const _0x45c1bc={},_0x494432=_0x3f0fe3[_0x2285c4];Object[_0x21072c(0x1f0)](_0x494432)[_0x21072c(0x1c4)](_0x4b6019=>{const _0x141d10=_0x21072c;_0x13475c[_0x141d10(0x20f)](_0x494432[_0x4b6019][_0x141d10(0x207)],0x0)&&(_0x45c1bc[_0x4b6019]=_0x494432[_0x4b6019]);}),_0x13475c['iPIFs'](Object[_0x21072c(0x1f0)](_0x45c1bc)[_0x21072c(0x207)],0x0)&&(_0x1b92a1[_0x13475c[_0x21072c(0x23e)]]=_0x45c1bc,_0x23b8e6[_0x21072c(0x1c6)](_0x1b92a1));}),_0x13475c[_0x9a2943(0x1df)](_0x23b8e6[_0x9a2943(0x207)],0x0)?_0x5a19ec['error']=_0x23b8e6:delete _0x5a19ec[_0x13475c[_0x9a2943(0x243)]];}}}}catch(_0x1bd3f3){delete _0x5a19ec[_0x13475c[_0x9a2943(0x243)]],logger[_0x9a2943(0x225)](_0x13475c[_0x9a2943(0x234)](_0x13475c[_0x9a2943(0x248)],_0x1bd3f3));}const _0x39175c=helper[_0x9a2943(0x1ca)](_0xeb4414,_0xeb4414['framework']),_0x54a760={'userName':helper[_0x9a2943(0x1f4)](_0xeb4414),'accessKey':helper[_0x9a2943(0x1f1)](_0xeb4414),'event_type':_0x3e1019,'detectedFramework':_0x2a9b2a,'buildHashedId':globals['getGlobal'](_0x13475c[_0x9a2943(0x20d)]),'optimalHubUrl':helper['getOptimalHubUrl'](),'event_properties':{'testhub_uuid':process['env'][testHubConstants[_0x9a2943(0x1de)][_0x9a2943(0x1e9)]]||'','sdkRunId':global[_0x9a2943(0x1dc)],'product_map':_0x13475c['yJEBe'](getProductMap,_0xeb4414),'productMap':_0x13475c[_0x9a2943(0x1da)](getProductMap,_0xeb4414),'language_framework':_0xeb4414[_0x9a2943(0x1ed)]||_0x13475c[_0x9a2943(0x1fb)],'referrer':helper[_0x9a2943(0x238)](_0x2a9b2a),'framework':_0xeb4414[_0x9a2943(0x1cb)],'frameworkVersion':helper[_0x9a2943(0x244)](_0x2a9b2a),'automationFramework':_0x39175c['name'],'automationFrameworkVersion':_0x39175c[_0x9a2943(0x1d8)],'language':_0x13475c['EZIqZ'],'languageVersion':process[_0x9a2943(0x1d8)],'product':_0x39fe28,'buildName':_0xeb4414['buildName']||_0x13475c[_0x9a2943(0x1fc)],'buildIdentifier':_0x5be840,'os':os[_0x9a2943(0x22b)]()||_0x13475c[_0x9a2943(0x1fb)],'hostname':os[_0x9a2943(0x211)]()||_0x13475c[_0x9a2943(0x1fb)],..._0x5a19ec,'isCLIEnabled':_0x2afa1e}};try{_0x13475c['fpJPR'](_0x3e1019,_0x13475c[_0x9a2943(0x21b)])&&(_0x54a760[_0x9a2943(0x1d9)][_0x9a2943(0x206)]=helper[_0x9a2943(0x23f)](_0xeb4414)),_0x13475c[_0x9a2943(0x22c)](_0x2a9b2a,_0x13475c[_0x9a2943(0x1f9)])?_0x54a760[_0x9a2943(0x1d9)][_0x9a2943(0x1d2)]=helper[_0x9a2943(0x24c)][_0x9a2943(0x21c)](null,_0x13475c[_0x9a2943(0x230)](getTransformPath),!![]):_0x54a760[_0x9a2943(0x1d9)][_0x9a2943(0x212)]=helper[_0x9a2943(0x1d1)](_0x13475c['RsvGe']);}catch(_0xba7319){logger[_0x9a2943(0x225)](_0x9a2943(0x1e4)+_0xba7319);}const _0x2eadda={};_0x2eadda[_0x9a2943(0x20c)]=_0x13475c['smyoG'];const _0x842965={'headers':_0x2eadda,'body':_0x54a760,'auth':{'user':helper[_0x9a2943(0x1f4)](_0xeb4414),'pass':helper[_0x9a2943(0x1f1)](_0xeb4414)},'json':!![]};logger['debug'](_0x9a2943(0x209)+JSON['stringify'](_0x842965[_0x9a2943(0x1c5)])[_0x9a2943(0x1d3)](new RegExp(helper['getUserName'](_0xeb4414),'g'),_0x13475c[_0x9a2943(0x231)])[_0x9a2943(0x1d3)](new RegExp(helper[_0x9a2943(0x1f1)](_0xeb4414),'g'),_0x13475c[_0x9a2943(0x231)]));try{const _0x108c62=await helper[_0x9a2943(0x1e5)](_0x13475c['YOumm'],FUNNEL_INSTRUMENTATION_API_URL,_0x842965,_0xeb4414);logger['debug'](_0x9a2943(0x1f8)+_0x3e1019+_0x9a2943(0x1fa)+util['format']('%j',_0x108c62));}catch(_0x14e510){logger[_0x9a2943(0x225)](_0x9a2943(0x227)+FUNNEL_INSTRUMENTATION_API_URL+_0x9a2943(0x233)+util[_0x9a2943(0x1ea)](_0x14e510));}},exports[a154_0x13145d(0x202)]=async(_0xb96bb6,_0x5dbdb8=![])=>{const _0xb9062a=a154_0x13145d,_0x159240={'IBKBV':function(_0x526b91){return _0x526b91();},'JWrvJ':_0xb9062a(0x1cf),'bgRJa':'user_killed','RbEGS':_0xb9062a(0x1f2),'BBWff':function(_0x3d37d6,_0x2de45d,_0x12d04f){return _0x3d37d6(_0x2de45d,_0x12d04f);},'QlguL':function(_0x53469f,_0x16b701){return _0x53469f+_0x16b701;},'rJkXu':'Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20'};try{await _0xb96bb6['stopPercy'](),_0x159240['IBKBV'](printNudgeLocalNotSetError);const _0x293f3e={};_0x293f3e[_0xb9062a(0x1f7)]=_0xb96bb6[_0xb9062a(0x23b)]?_0xb96bb6['errorMessage']:'{}';const _0x1b2b1c=_0x293f3e,_0x1f2970=Object[_0xb9062a(0x1f3)]({},_0x1b2b1c);!!_0xb96bb6['killSignal']&&(_0x1f2970[_0x159240[_0xb9062a(0x1cd)]]={'reason':_0x159240[_0xb9062a(0x1e2)],'signal':_0xb96bb6[_0xb9062a(0x1e6)]});unhandledErrors=_0xb96bb6['unhandledErrors'][_0xb9062a(0x1e7)]('\x0a');let _0x5e5f78,_0x4f54ae,_0x429a7a;helper[_0xb9062a(0x21e)](_0xb96bb6['config'])?([_0x5e5f78,_0x4f54ae]=await helper['getTurboScaleBuildLink'](_0xb96bb6['config']),[_0x429a7a]=await Promise[_0xb9062a(0x210)]([helper[_0xb9062a(0x217)](_0x5e5f78,_0xb96bb6['config']),exports[_0xb9062a(0x24d)](_0x159240[_0xb9062a(0x22a)],_0x1f2970,_0xb96bb6['config'],_0xb96bb6['framework'],_0x5dbdb8)])):([_0x5e5f78,_0x4f54ae]=await helper[_0xb9062a(0x222)](_0xb96bb6[_0xb9062a(0x229)]),[_0x429a7a]=await Promise[_0xb9062a(0x210)]([helper['getSessionsList'](_0x5e5f78,_0xb96bb6['config']),exports['fireFunnelTestEvent'](_0x159240[_0xb9062a(0x22a)],_0x1f2970,_0xb96bb6['config'],_0xb96bb6[_0xb9062a(0x1cb)],_0x5dbdb8)])),_0x429a7a&&await _0x159240['BBWff'](generateCIArtifacts,_0x429a7a,_0x4f54ae),logger[_0xb9062a(0x1e3)](_0xb9062a(0x1ff)+_0xb96bb6['sdkRunId']+',\x20testhub\x20id:\x20'+process[_0xb9062a(0x214)][_0xb9062a(0x1e9)]),await helper[_0xb9062a(0x232)](_0xb96bb6[_0xb9062a(0x229)]);}catch(_0x433786){logger[_0xb9062a(0x225)](_0x159240[_0xb9062a(0x213)](_0x159240['rJkXu'],_0x433786));}helper['notifyUpdate']();},exports[a154_0x13145d(0x24b)]=_0x248e53=>{const _0x4f336c=a154_0x13145d,_0x5064d3={'uBPst':function(_0x3a200c,_0x2f2f0c){return _0x3a200c instanceof _0x2f2f0c;},'NqIBS':function(_0x186eaf,_0x57f557){return _0x186eaf(_0x57f557);}};try{if(_0x5064d3[_0x4f336c(0x1fe)](_0x248e53,Error))return _0x248e53['stack']||_0x248e53[_0x4f336c(0x239)]();return _0x5064d3[_0x4f336c(0x1c3)](String,_0x248e53);}catch(_0x209b44){return _0x248e53?_0x248e53[_0x4f336c(0x239)]():'';}},exports[a154_0x13145d(0x1db)]=_0x42a4cd=>{const _0x33c139=a154_0x13145d,_0x19778e={};_0x19778e[_0x33c139(0x228)]=function(_0xbcf03f,_0x296268){return _0xbcf03f===_0x296268;};const _0x4d7bff=_0x19778e;return!_0x42a4cd||_0x4d7bff[_0x33c139(0x228)](_0x42a4cd[_0x33c139(0x20e)](),'');},exports[a154_0x13145d(0x226)]=_0x14655e=>{const _0x913ea5=a154_0x13145d,_0x315118={};_0x315118[_0x913ea5(0x23c)]=function(_0x366673,_0x430edc){return _0x366673|_0x430edc;};const _0x355d7c=_0x315118;try{return fs['accessSync'](_0x14655e,_0x355d7c['mvpsE'](fs[_0x913ea5(0x1eb)]['W_OK'],fs['constants'][_0x913ea5(0x20b)])),!![];}catch(_0x465bc5){return![];}},exports[a154_0x13145d(0x1ee)]=_0x9026cd=>{const _0x1d7c15=a154_0x13145d;try{fs[_0x1d7c15(0x22d)](_0x9026cd,0x1ff),logger[_0x1d7c15(0x225)]('Directory\x20'+_0x9026cd+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x2d0291){logger[_0x1d7c15(0x1f7)]('Failed\x20to\x20set\x20directory\x20access:\x20'+exports[_0x1d7c15(0x24b)](_0x2d0291));}};
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));}};