browserstack-node-sdk 1.40.2 → 1.40.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a117_0x3545b4=a117_0x3454;(function(_0x2dedd3,_0x352559){const _0x1d1807=a117_0x3454,_0x178799=_0x2dedd3();while(!![]){try{const _0x57ace6=parseInt(_0x1d1807(0x14b))/0x1+parseInt(_0x1d1807(0x165))/0x2+-parseInt(_0x1d1807(0x135))/0x3+-parseInt(_0x1d1807(0xaf))/0x4*(parseInt(_0x1d1807(0x168))/0x5)+parseInt(_0x1d1807(0x16c))/0x6*(-parseInt(_0x1d1807(0x104))/0x7)+parseInt(_0x1d1807(0xfb))/0x8+-parseInt(_0x1d1807(0x156))/0x9*(-parseInt(_0x1d1807(0x14a))/0xa);if(_0x57ace6===_0x352559)break;else _0x178799['push'](_0x178799['shift']());}catch(_0x4eb167){_0x178799['push'](_0x178799['shift']());}}}(a117_0xd0f2,0xe365b));function a117_0xd0f2(){const _0x2595ee=['env','format','stringify','modifyReqForTraceUpload','catch','appium:app','AssertionError','BTnAh','uIZyo','mRkHc','Fhlmd','lodash','okFvv','headers','AMiPj','unknown_grid','TEST_OBSERVABILITY_BUILD_TAG','app','message','YFykv','agent','execSync','getSyncScript','XuvNQ','push','Error\x20in\x20importing\x20windows-release\x20','yayni','GFXLP','O11Y_URL','maxSockets','getBrowserVersion','isTestObservabilitySession','BUSWT','sDyim','forEach','Agent','browserstack','TEST_ATTACHMENT','RMTay','match','url','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','../../bin/utils/constants','nodeRequest','test','4188520QPfccP','sendPlatformDetails','SGkDv','BROWSERSTACK_TEST_OBSERVABILITY','QHBzM','yGCoU','platform','LogCreated','host','5049436TGTNsD','keys','win32','HTTP','backtrace','ydayo','PRINT_BUILDLINK','UEbLg','BROWSERSTACK_TEST_OBSERVABILITY_YML','hwEQR','gHyIP','llEGn','iAmCI','toISOString','][\x20OBSERVABILITY\x20]\x20','hcaIi','X-BSTACK-TESTOPS','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','qbOFR','__cloud_provider___','oIhiT','body','Content-Type','timeout','UnhandledError','SpJmx','toString','HUB_URL_REGEX','YluRn','ccmrn','../../bin/utils/logPatcher','/builds/','getCustomTags','relativeTestFilePath','XsxLh','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','platformName','Error\x20in\x20getting\x20Linux\x20Details','@cucumber/cucumber','aThMC','turboScaleGridDetails','\x20:\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','prefixTestPath','oQXZK','cZtxY','expanded','dLpQi','fileName','295851VNTXmF','DqutA','IQTRA','DwTzy','linux','./constants','measureWrapper','json','getPackageVersion','mocha','trace','test_run_uuid','Linux','default','BROWSERSTACK_TESTHUB_JWT','uApji','error','BROWSERSTACK_CONFIG_FILE_PATH','pid','UeOwn','parse','27260YltURP','111202QSJlmE','Windows','uljsE','git-last-commit','clScC','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','fyhQi','https','UFRGb','ATS_HUB_URL_REGEX','8199tDBHCu','PathHelper','true','config','join','uGhpV','maxTotalSockets','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','CUCUMBER','TRGjV','aPoXV','hostname','wXwWl','app-automate','undefined','706934VuVobn','debug','eLXLC','40skVCir','turboscale','uUNOX','split','12RYhNOQ','RpRIh','vFzCp','nnlir','capabilities','isUndefined','bUZHB','customTag','getDefaultHeaders','now','filter','getPlatformDetails','isInternalHook','platformVersion','emit','ZSXjY','getPlatform','getos','util','rootDir','silly','child_process','sHPmJ','CzhIN','PLAYWRIGHT','browserstack_executor:\x20','err','O11yHashedID','git-repo-info','HwSYQ','QKXaG','includes','object','VoTzk','lnUKm','getSession','isArray','ZLRPL','logs','BS_TESTOPS_BUILD_HASHED_ID','../../../src/bin/utils/constants','parseFileNames','../logger','pSeVD','jnevt','2|5|1|4|3|0','getFrameworkVersion','qOwLG','mQZyK','OS\x20X','TEST_PLATFORM','tiUWr','yKUSb','Authorization','application/json','hGySO','ZyPHi','winstonLogger','nEKjP','qdnps','keepAlive','ObservabilitySync:','AihCj','info','cwd','aVjVl','log','length','extractValuesWithRegexKeyMatch','formData','release','DLaEI','annotate','BROWSERSTACK_OBSERVABILITY_DEBUG','jest','null','DtECg','dist','stack','499444PrRQwV','asyncAwaitNodeReq','getCapabilities','sleep','prefix','^CUSTOM_TAG_\x5cd+$','trim','getBrowserStackConfig','replace','removeAnsiColors','NugSn','XehpJ','../helper','../../bin/v2/browserstackCLI','BROWSERSTACK_RERUN_TESTS','vOwHj','spy','JTWFT','CODECEPT','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','wtGKq','data','FsTod','BkYqQ','Scxex','Visit\x20','NwOQw','mjQbI','../../helpers/request-spy','cWFGc','NuDLZ'];a117_0xd0f2=function(){return _0x2595ee;};return a117_0xd0f2();}const fs=require('fs'),path=require('path'),gitLastCommit=require(a117_0x3545b4(0x14e)),getRepoInfo=require(a117_0x3545b4(0x7c)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x3545b4(0x13a)),http=require('http'),https=require('https'),child_process=require(a117_0x3545b4(0x181)),getos=require(a117_0x3545b4(0x17d)),os=require('os'),logger=require(a117_0x3545b4(0x8a))[a117_0x3545b4(0x99)],bsSetupHelper=require(a117_0x3545b4(0xbb)),requestSpy=require(a117_0x3545b4(0xcb)),constants=require(a117_0x3545b4(0xf8)),logPatcher=require(a117_0x3545b4(0x122)),util=require(a117_0x3545b4(0x17e)),{fileLogger}=require(a117_0x3545b4(0x8a)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a117_0x3545b4(0xd9)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x3545b4(0x88));exports[a117_0x3545b4(0x13f)]=_0x4ce5ca=>{const _0x5f4f1c=a117_0x3545b4;fileLogger[_0x5f4f1c(0x180)]('['+new Date()[_0x5f4f1c(0x111)]()+_0x5f4f1c(0x112)+_0x4ce5ca);},exports['debug']=_0x3727e4=>{const _0x407a00=a117_0x3545b4,_0x2265a5={};_0x2265a5[_0x407a00(0xd8)]=function(_0x2e9917,_0x28ae62){return _0x2e9917===_0x28ae62;},_0x2265a5['yKUSb']=_0x407a00(0x158);const _0x44520f=_0x2265a5;fileLogger['debug']('['+new Date()[_0x407a00(0x111)]()+_0x407a00(0x112)+_0x3727e4),(_0x44520f['Fhlmd'](process[_0x407a00(0xce)][_0x407a00(0xa9)],_0x44520f[_0x407a00(0x94)])||_0x44520f['Fhlmd'](process['env'][_0x407a00(0xa9)],'1'))&&consoleHolder[_0x407a00(0xa2)]('\x0a['+new Date()[_0x407a00(0x111)]()+_0x407a00(0x112)+_0x3727e4+'\x0a');};const a117_0x5cefe1={};a117_0x5cefe1[a117_0x3545b4(0x9c)]=!![],a117_0x5cefe1[a117_0x3545b4(0x11b)]=0xea60,a117_0x5cefe1[a117_0x3545b4(0xeb)]=0x2,a117_0x5cefe1['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a117_0x3545b4(0xf1))](a117_0x5cefe1),a117_0x4da9cd={};a117_0x4da9cd[a117_0x3545b4(0x9c)]=!![],a117_0x4da9cd[a117_0x3545b4(0x11b)]=0xea60,a117_0x4da9cd[a117_0x3545b4(0xeb)]=0x2,a117_0x4da9cd['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a117_0x3545b4(0xf1))](a117_0x4da9cd),a117_0x3d512f={};a117_0x3d512f['keepAlive']=!![],a117_0x3d512f[a117_0x3545b4(0x11b)]=0xea60,a117_0x3d512f[a117_0x3545b4(0xeb)]=0x2,a117_0x3d512f[a117_0x3545b4(0x15c)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a117_0x3d512f),a117_0x46babe={};a117_0x46babe['keepAlive']=!![],a117_0x46babe['timeout']=0xea60,a117_0x46babe[a117_0x3545b4(0xeb)]=0x2,a117_0x46babe[a117_0x3545b4(0x15c)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x3545b4(0xf1))](a117_0x46babe);exports['shouldReRunObservabilityTests']=()=>{const _0x39b088=a117_0x3545b4,_0xbaea5b={};_0xbaea5b[_0x39b088(0x90)]=function(_0x121048,_0x3c5d74){return _0x121048!==_0x3c5d74;},_0xbaea5b[_0x39b088(0xc9)]=_0x39b088(0xab);const _0x250909=_0xbaea5b;return process[_0x39b088(0xce)]['BROWSERSTACK_RERUN_TESTS']&&_0x250909[_0x39b088(0x90)](process[_0x39b088(0xce)][_0x39b088(0xbd)],_0x250909['NwOQw'])?!![]:![];},exports[a117_0x3545b4(0xed)]=()=>{const _0x3032bb=a117_0x3545b4,_0x45108c={};_0x45108c[_0x3032bb(0xe1)]=function(_0x258a5c,_0x55295d){return _0x258a5c===_0x55295d;},_0x45108c[_0x3032bb(0x152)]=_0x3032bb(0x158),_0x45108c[_0x3032bb(0x133)]=function(_0x445f6b,_0xa1540c){return _0x445f6b===_0xa1540c;};const _0x2f6aa2=_0x45108c;let _0x3f9dce=!![];return process[_0x3032bb(0xce)][_0x3032bb(0x10c)]&&(_0x3f9dce=_0x2f6aa2[_0x3032bb(0xe1)](process['env'][_0x3032bb(0x10c)],_0x2f6aa2[_0x3032bb(0x152)])),process[_0x3032bb(0xce)][_0x3032bb(0xfe)]&&(_0x3f9dce=_0x2f6aa2[_0x3032bb(0x133)](process[_0x3032bb(0xce)][_0x3032bb(0xfe)],_0x2f6aa2[_0x3032bb(0x152)])),_0x3f9dce;},exports[a117_0x3545b4(0x89)]=_0x28dc49=>{const _0x12ebd3=a117_0x3545b4;if(bsSetupHelper['isUndefined'](_0x28dc49))return undefined;try{return _0x28dc49[_0x12ebd3(0xb5)]()[_0x12ebd3(0x16b)](',');}catch(_0xa6fdb3){return undefined;}},exports['printBuildLink']=()=>{const _0x4a83d2=a117_0x3545b4,_0x54ffe4={'aPoXV':function(_0x50647f,_0x106188){return _0x50647f(_0x106188);},'IQTRA':_0x4a83d2(0xbc),'JTWFT':function(_0x477e8a,_0x310b24){return _0x477e8a!==_0x310b24;},'uApji':'null','XsxLh':_0x4a83d2(0x164),'uGhpV':_0x4a83d2(0x15d)};return PerformanceTester[_0x4a83d2(0x13b)](PerformanceO11yEvents[_0x4a83d2(0x10a)],async()=>{const _0x3f162c=_0x4a83d2;try{const _0x49cd5e=_0x54ffe4[_0x3f162c(0x160)](require,_0x54ffe4[_0x3f162c(0x137)]);if(_0x49cd5e[_0x3f162c(0x7b)]){logger['info'](_0x3f162c(0xc8)+O11Y_URL+_0x3f162c(0x123)+_0x49cd5e['O11yHashedID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');return;}process[_0x3f162c(0xce)][_0x3f162c(0x87)]&&_0x54ffe4[_0x3f162c(0xc0)](process[_0x3f162c(0xce)][_0x3f162c(0x87)],_0x54ffe4[_0x3f162c(0x144)])&&_0x54ffe4[_0x3f162c(0xc0)](process[_0x3f162c(0xce)][_0x3f162c(0x87)],_0x54ffe4[_0x3f162c(0x126)])&&logger[_0x3f162c(0x9f)](_0x3f162c(0xc8)+constants[_0x3f162c(0xea)]+'/builds/'+process[_0x3f162c(0xce)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x3f162c(0x150));}catch(_0x2f4dc6){logger[_0x3f162c(0x145)](util[_0x3f162c(0xcf)](_0x54ffe4[_0x3f162c(0x15b)],new Date()[_0x3f162c(0x111)](),_0x2f4dc6[_0x3f162c(0xae)]||_0x2f4dc6[_0x3f162c(0xe0)]||_0x2f4dc6));}})();},exports['getFailureType']=_0x576412=>{const _0xe1f86d=a117_0x3545b4,_0x35757b={};_0x35757b[_0xe1f86d(0x148)]=_0xe1f86d(0xd4),_0x35757b[_0xe1f86d(0x182)]=_0xe1f86d(0x11c);const _0x513969=_0x35757b;if(!_0x576412)return null;return _0x576412[_0xe1f86d(0x11e)]()['match'](/AssertionError/)?_0x513969[_0xe1f86d(0x148)]:_0x513969[_0xe1f86d(0x182)];},exports[a117_0x3545b4(0x8e)]=_0x598a39=>{const _0x1324d3=a117_0x3545b4,_0x3f34c9={};_0x3f34c9[_0x1324d3(0x121)]=_0x1324d3(0x13e),_0x3f34c9[_0x1324d3(0x113)]='@playwright/test',_0x3f34c9[_0x1324d3(0xca)]='codeceptjs',_0x3f34c9['BTnAh']=_0x1324d3(0xaa),_0x3f34c9[_0x1324d3(0x172)]=_0x1324d3(0x12a);const _0x1016b3=_0x3f34c9;let _0x1a3ae0=null;switch(_0x598a39){case FRAMEWORKS['MOCHA']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3['ccmrn']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0x113)]);break;case FRAMEWORKS[_0x1324d3(0xc1)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0xca)]);break;case FRAMEWORKS['JEST']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0xd5)]);break;case FRAMEWORKS[_0x1324d3(0x15e)]:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0x172)]);break;default:break;}return _0x1a3ae0;},exports[a117_0x3545b4(0xb6)]=_0x2d6ac9=>{const _0x166fd5=a117_0x3545b4;let _0x568918=null;switch(_0x2d6ac9){case FRAMEWORKS[_0x166fd5(0x184)]:_0x568918=process['env'][_0x166fd5(0x146)];break;}if(!_0x568918)return;return bsSetupHelper['readConfig'](_0x568918,![]);},exports['getUserCredentials']=_0x1542bb=>{return{'username':bsSetupHelper['getUserName'](_0x1542bb),'accessKey':bsSetupHelper['getAccessKey'](_0x1542bb)};},exports[a117_0x3545b4(0xd1)]=(_0x3dc4a1,_0x5d26ba)=>{const _0x23974e=a117_0x3545b4,_0x52fad7={};_0x52fad7[_0x23974e(0xb9)]=_0x23974e(0x8d),_0x52fad7[_0x23974e(0xff)]=_0x23974e(0x102),_0x52fad7[_0x23974e(0x109)]=_0x23974e(0xf3);const _0x442fde=_0x52fad7,_0x2d36ca=_0x442fde['NugSn'][_0x23974e(0x16b)]('|');let _0x5c11ff=0x0;while(!![]){switch(_0x2d36ca[_0x5c11ff++]){case'0':delete _0x5d26ba['headers'];continue;case'1':_0x3dc4a1[_0x23974e(0xa5)]={'data':_0x3dc4a1[_0x23974e(0x119)][0x0][_0x23974e(0x86)][0x0]['data'],'test_run_uuid':_0x3dc4a1[_0x23974e(0x119)][0x0][_0x23974e(0x86)][0x0][_0x23974e(0x140)],'event_type':_0x442fde[_0x23974e(0xff)],'kind':_0x442fde[_0x23974e(0x109)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x23974e(0x111)](),'fileName':_0x3dc4a1[_0x23974e(0x119)][0x0]['logs'][0x0][_0x23974e(0x134)]};continue;case'2':if(!_0x3dc4a1[_0x23974e(0x119)]||!Array[_0x23974e(0x84)](_0x3dc4a1[_0x23974e(0x119)]))return;continue;case'3':delete _0x3dc4a1[_0x23974e(0x13c)];continue;case'4':delete _0x3dc4a1['body'];continue;case'5':if(!_0x3dc4a1[_0x23974e(0x119)][0x0]||!_0x3dc4a1[_0x23974e(0x119)][0x0][_0x23974e(0x86)]||!_0x3dc4a1['body'][0x0]['logs'][_0x23974e(0xa3)])return;continue;}break;}},exports[a117_0x3545b4(0xb0)]=async(_0x19dffd,_0x189bdb,_0x4ca208,_0x1d63f1,_0xdbafad=!![])=>{const _0x17ca97=a117_0x3545b4,_0x1c1cb9={};_0x1c1cb9['YluRn']=function(_0x3cfef4,_0x3b4129){return _0x3cfef4===_0x3b4129;},_0x1c1cb9['HwSYQ']=_0x17ca97(0x11a),_0x1c1cb9[_0x17ca97(0xef)]=_0x17ca97(0x96),_0x1c1cb9[_0x17ca97(0xbe)]=_0x17ca97(0x153),_0x1c1cb9[_0x17ca97(0xdc)]=function(_0x5dd364,_0x3b7c73){return _0x5dd364===_0x3b7c73;},_0x1c1cb9[_0x17ca97(0xcd)]=function(_0x2f68a1,_0x431637){return _0x2f68a1!==_0x431637;},_0x1c1cb9[_0x17ca97(0xe8)]=function(_0x3476bd,_0x4888bc){return _0x3476bd!==_0x4888bc;},_0x1c1cb9[_0x17ca97(0x14d)]=_0x17ca97(0x80),_0x1c1cb9[_0x17ca97(0x8c)]=_0x17ca97(0x12e);const _0x5c2ebb=_0x1c1cb9,_0x40484d={..._0x1d63f1,...{'method':_0x19dffd,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x189bdb,'body':_0x4ca208,'json':_0x5c2ebb[_0x17ca97(0x120)](_0x1d63f1[_0x17ca97(0xdb)][_0x5c2ebb[_0x17ca97(0x7d)]],_0x5c2ebb[_0x17ca97(0xef)]),'agent':API_URL[_0x17ca97(0x7f)](_0x5c2ebb[_0x17ca97(0xbe)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5c2ebb['AMiPj'](_0x189bdb,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x40484d[_0x17ca97(0xe2)]=API_URL[_0x17ca97(0x7f)](_0x5c2ebb[_0x17ca97(0xbe)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x40484d,_0x1d63f1),logger[_0x17ca97(0x166)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x40484d[_0x17ca97(0xf6)]));try{const {statusCode:_0x153fbf,body:_0x3b5438}=await bsSetupHelper['nodeRequest'](_0x19dffd,_0x189bdb,_0x40484d,_0x1d63f1,_0x40484d[_0x17ca97(0xf6)]);if(_0x5c2ebb[_0x17ca97(0xcd)](_0x153fbf,0xc8))return _0x3b5438?_0x3b5438:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x153fbf;let _0x12f075=_0x3b5438;if(_0xdbafad)try{_0x5c2ebb['yayni'](typeof _0x3b5438,_0x5c2ebb[_0x17ca97(0x14d)])&&(_0x12f075=JSON['parse'](_0x3b5438));}catch(_0x43fa67){logger['error'](_0x5c2ebb[_0x17ca97(0x8c)],_0x3b5438,util['format'](_0x43fa67));}const _0x1c73bf={};return _0x1c73bf[_0x17ca97(0xc4)]=_0x12f075,_0x1c73bf;}catch(_0x417031){logger[_0x17ca97(0x145)](_0x17ca97(0x151)+util[_0x17ca97(0xcf)](_0x417031));throw _0x417031;}},exports['nodeRequest']=(_0x24ba86,_0x481c4d,_0xc7821,_0x27fd15,_0x54f154=!![])=>{const _0x49420a=a117_0x3545b4,_0x1f23c3={'AihCj':function(_0x5c81c2,_0x4e7fc9){return _0x5c81c2!==_0x4e7fc9;},'CzhIN':function(_0x3beef5,_0x865812){return _0x3beef5(_0x865812);},'tiUWr':function(_0x153ca9,_0x1a9a6a){return _0x153ca9!==_0x1a9a6a;},'yCDxJ':'object','iAmCI':function(_0x4149df,_0x43a028){return _0x4149df(_0x43a028);},'lnUKm':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','DLaEI':function(_0x32f4de,_0x502f6f){return _0x32f4de(_0x502f6f);},'clScC':function(_0x171057,_0x4555b4){return _0x171057===_0x4555b4;},'yGCoU':_0x49420a(0x11a),'pSeVD':_0x49420a(0x96),'aVjVl':_0x49420a(0x153),'wtGKq':function(_0xb52566,_0x44cc65){return _0xb52566===_0x44cc65;}};return new Promise((_0x5d88c2,_0x4bba87)=>{const _0x2c083d=_0x49420a,_0x21aec0={'UEbLg':function(_0x4162e0,_0xfa1983){const _0x4f424f=a117_0x3454;return _0x1f23c3[_0x4f424f(0xa7)](_0x4162e0,_0xfa1983);}},_0x4b56fe={..._0x27fd15,...{'method':_0x24ba86,'url':API_URL+'/'+_0x481c4d,'body':_0xc7821,'json':_0x1f23c3[_0x2c083d(0x14f)](_0x27fd15[_0x2c083d(0xdb)][_0x1f23c3[_0x2c083d(0x100)]],_0x1f23c3[_0x2c083d(0x8b)]),'agent':API_URL[_0x2c083d(0x7f)](_0x1f23c3[_0x2c083d(0xa1)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1f23c3[_0x2c083d(0xc3)](_0x481c4d,SCREENSHOT_ENDPOINT)&&(_0x4b56fe[_0x2c083d(0xe2)]=API_URL[_0x2c083d(0x7f)](_0x1f23c3[_0x2c083d(0xa1)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x2c083d(0xf9)](_0x24ba86,_0x481c4d,_0x4b56fe,_0x27fd15,API_URL)['then'](({statusCode:_0x517da8,body:_0xcefa80})=>{const _0x28c1e1=_0x2c083d;if(_0x1f23c3[_0x28c1e1(0x9e)](_0x517da8,0xc8))_0x1f23c3[_0x28c1e1(0x183)](_0x4bba87,_0xcefa80?_0xcefa80:_0x28c1e1(0x127)+_0x517da8);else{if(_0x54f154)try{_0x1f23c3[_0x28c1e1(0x93)](typeof _0xcefa80,_0x1f23c3['yCDxJ'])&&(_0xcefa80=JSON[_0x28c1e1(0x149)](_0xcefa80));}catch(_0x52f6a2){_0x1f23c3[_0x28c1e1(0x110)](_0x4bba87,_0x1f23c3[_0x28c1e1(0x82)]);return;}const _0x2ac998={};_0x2ac998[_0x28c1e1(0xc4)]=_0xcefa80,_0x1f23c3[_0x28c1e1(0x183)](_0x5d88c2,_0x2ac998);}})[_0x2c083d(0xd2)](_0x50400a=>{const _0x27a080=_0x2c083d;_0x50400a&&_0x21aec0[_0x27a080(0x10b)](_0x4bba87,_0x50400a);});});},exports['getBuildTags']=_0xdfede3=>{const _0x5238c0=a117_0x3545b4;if(process[_0x5238c0(0xce)][_0x5238c0(0xde)])return process['env'][_0x5238c0(0xde)]['split'](',');if(_0xdfede3['buildTag'])return _0xdfede3['buildTag'];return[];},exports[a117_0x3545b4(0x174)]=(_0x25c03f=!![])=>{const _0x3ea6a7=a117_0x3545b4,_0x54a1f4={};_0x54a1f4[_0x3ea6a7(0xba)]=_0x3ea6a7(0x96),_0x54a1f4[_0x3ea6a7(0xfd)]='true',_0x54a1f4[_0x3ea6a7(0xc6)]=_0x3ea6a7(0x95);const _0x261ee7=_0x54a1f4,_0x3a1235={};_0x3a1235[_0x3ea6a7(0x11a)]=_0x261ee7[_0x3ea6a7(0xba)],_0x3a1235[_0x3ea6a7(0x114)]=_0x261ee7[_0x3ea6a7(0xfd)];const _0x22c234=_0x3a1235;return _0x25c03f&&process['env'][_0x3ea6a7(0x143)]&&(_0x22c234[_0x261ee7[_0x3ea6a7(0xc6)]]='Bearer\x20'+process['env'][_0x3ea6a7(0x143)]),_0x22c234;},exports['extractValuesWithRegexKeyMatch']=_0x1037db=>{const _0xd03e65=a117_0x3545b4,_0x275f68={};_0x275f68['DwTzy']=_0xd03e65(0xb4);const _0x5d17d5=_0x275f68,_0x4ca3e0=[],_0x3049c9=new RegExp(_0x5d17d5[_0xd03e65(0x138)],'i');return Object[_0xd03e65(0x105)](_0x1037db)[_0xd03e65(0x176)](_0xa1c2a=>_0x3049c9[_0xd03e65(0xfa)](_0xa1c2a))[_0xd03e65(0xf0)](_0x260ce0=>_0x4ca3e0['push'](_0x1037db[_0x260ce0])),_0x4ca3e0;},exports[a117_0x3545b4(0x124)]=_0x419ae2=>{const _0xa37b3f=a117_0x3545b4,_0x32f900=[],_0x115561=_0x419ae2[_0xa37b3f(0x173)]||process[_0xa37b3f(0xce)]['CUSTOM_TAG'];return _0x115561&&_0x32f900[_0xa37b3f(0xe6)](_0x115561),_0x32f900[_0xa37b3f(0xe6)](...exports['extractValuesWithRegexKeyMatch'](process[_0xa37b3f(0xce)])),_0x32f900[_0xa37b3f(0xe6)](...exports[_0xa37b3f(0xa4)](_0x419ae2)),_0x32f900;},exports[a117_0x3545b4(0xb8)]=_0xd0a7a0=>{const _0x74c40c=a117_0x3545b4;if(!_0xd0a7a0)return'';return _0xd0a7a0[_0x74c40c(0xb7)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x3545b4(0xb2)]=(_0x52eb60=0x64)=>new Promise(_0x13bb88=>setTimeout(_0x13bb88,_0x52eb60));const getPlatformName=()=>{const _0x228458=a117_0x3545b4,_0x3613e6={};_0x3613e6['UFRGb']=function(_0x3652ab,_0x1df20c){return _0x3652ab===_0x1df20c;},_0x3613e6[_0x228458(0xe5)]=_0x228458(0x106),_0x3613e6[_0x228458(0x162)]=_0x228458(0x14c),_0x3613e6['LPZIR']='darwin',_0x3613e6[_0x228458(0xcc)]=_0x228458(0x91),_0x3613e6['qdnps']=_0x228458(0x139),_0x3613e6[_0x228458(0x97)]='Linux',_0x3613e6[_0x228458(0xc5)]='Unknown';const _0x7bf379=_0x3613e6;if(_0x7bf379[_0x228458(0x154)](process[_0x228458(0x101)],_0x7bf379[_0x228458(0xe5)]))return _0x7bf379['wXwWl'];if(_0x7bf379[_0x228458(0x154)](process[_0x228458(0x101)],_0x7bf379['LPZIR']))return _0x7bf379[_0x228458(0xcc)];if(_0x7bf379[_0x228458(0x154)](process[_0x228458(0x101)],_0x7bf379[_0x228458(0x9b)]))return _0x7bf379[_0x228458(0x97)];return _0x7bf379[_0x228458(0xc5)];},getMacOSVersion=()=>{const _0x2e73bc=a117_0x3545b4,_0x649a9d={};_0x649a9d['llEGn']='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x46e5a6=_0x649a9d;return child_process[_0x2e73bc(0xe3)](_0x46e5a6[_0x2e73bc(0x10f)])[_0x2e73bc(0x11e)]()[_0x2e73bc(0xb5)]();},getLinuxDetails=()=>{const _0x429378={'eLXLC':function(_0xd3d864,_0x75cd15){return _0xd3d864(_0x75cd15);},'pmDdY':function(_0x205624,_0x126ac7){return _0x205624(_0x126ac7);}};return new Promise((_0x10393d,_0x157d1b)=>{_0x429378['eLXLC'](getos,(_0x3ffc14,_0x28c0a2)=>{const _0x5d507f=a117_0x3454;if(_0x3ffc14)return _0x429378[_0x5d507f(0x167)](_0x157d1b,_0x3ffc14);_0x429378['pmDdY'](_0x10393d,_0x28c0a2);});});};exports[a117_0x3545b4(0x177)]=async()=>{const _0x57efd9=a117_0x3545b4,_0x402774={'uUNOX':function(_0x109138){return _0x109138();},'gHyIP':_0x57efd9(0x91),'lqQOD':_0x57efd9(0x14c),'ZLRPL':'windows-release','qbOFR':function(_0x5821d9){return _0x5821d9();},'BUSWT':_0x57efd9(0x141),'tAOxe':_0x57efd9(0x129)};let _0x178796=_0x402774[_0x57efd9(0x16a)](getPlatformName),_0x39b59c=os[_0x57efd9(0xa6)]()['toString']();switch(_0x178796){case _0x402774[_0x57efd9(0x10e)]:_0x39b59c=_0x402774[_0x57efd9(0x16a)](getMacOSVersion);break;case _0x402774['lqQOD']:try{const _0x12727b=(await import(_0x402774[_0x57efd9(0x85)]))[_0x57efd9(0x142)];_0x39b59c=_0x402774[_0x57efd9(0x116)](_0x12727b);}catch(_0xe311a9){exports[_0x57efd9(0x166)](_0x57efd9(0xe7)+_0xe311a9['toString']());}break;case _0x402774[_0x57efd9(0xee)]:try{const _0x155775=await _0x402774[_0x57efd9(0x116)](getLinuxDetails);_0x155775[_0x57efd9(0xad)]&&(_0x178796=_0x155775['dist']),_0x155775[_0x57efd9(0xa6)]&&(_0x39b59c=_0x155775[_0x57efd9(0xa6)][_0x57efd9(0x11e)]());}catch(_0x5b7b89){exports[_0x57efd9(0x166)](_0x402774['tAOxe']);}break;default:break;}const _0x4afee2={};return _0x4afee2[_0x57efd9(0x128)]=_0x178796,_0x4afee2[_0x57efd9(0x179)]=_0x39b59c,_0x4afee2;},exports['failureData']=(_0x1596ce,_0x344178)=>{const _0x3ed76f=a117_0x3545b4,_0x447f66={};_0x447f66[_0x3ed76f(0x17b)]=function(_0x53ecb7,_0x51a0cb){return _0x53ecb7===_0x51a0cb;},_0x447f66[_0x3ed76f(0xda)]=_0x3ed76f(0xfa),_0x447f66[_0x3ed76f(0x98)]=_0x3ed76f(0x7a);const _0x4fa843=_0x447f66;if(!_0x1596ce)return[];try{if(_0x4fa843[_0x3ed76f(0x17b)](_0x344178,_0x4fa843[_0x3ed76f(0xda)]))return _0x1596ce['map'](_0x1df97e=>{const _0x401307=_0x3ed76f,{stack:_0x7e5a3,..._0x1a9534}=_0x1df97e,_0x31f126=Object[_0x401307(0x105)](_0x1a9534)['map'](_0x29c53c=>{return _0x29c53c+':\x20'+_0x1a9534[_0x29c53c];}),_0x24cce0=_0x7e5a3?exports[_0x401307(0xb8)](_0x7e5a3)[_0x401307(0x16b)](/\r?\n/):[exports[_0x401307(0xb8)](_0x1df97e['message'])],_0x1267e8={};return _0x1267e8[_0x401307(0x108)]=_0x24cce0,_0x1267e8[_0x401307(0x132)]=_0x31f126,_0x1267e8;});else{if(_0x4fa843[_0x3ed76f(0x17b)](_0x344178,_0x4fa843['ZyPHi'])){const _0x1005a1=[],_0x58ed99=[];return Object[_0x3ed76f(0x105)](_0x1596ce)['forEach'](_0x54b908=>{const _0x1ad374=_0x3ed76f;try{_0x58ed99[_0x1ad374(0xe6)](_0x54b908+':\x20'+_0x1596ce[_0x54b908]);}catch(_0xdf112a){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0xdf112a[_0x1ad374(0xe0)]+_0x1ad374(0x12d)+_0xdf112a[_0x1ad374(0x108)]);}}),_0x1005a1[_0x3ed76f(0xe6)]({'backtrace':exports[_0x3ed76f(0xb8)](_0x1596ce[_0x3ed76f(0xae)])[_0x3ed76f(0x16b)](/\r?\n/),'expanded':_0x58ed99}),_0x1005a1;}}return[];}catch(_0xfd3527){exports[_0x3ed76f(0x166)](_0x3ed76f(0xf7)+_0xfd3527[_0x3ed76f(0xe0)]+'\x20:\x20'+_0xfd3527[_0x3ed76f(0x108)]);}return[];};function a117_0x3454(_0x35e218,_0x322d59){const _0xd0f248=a117_0xd0f2();return a117_0x3454=function(_0x34540d,_0x5c8e23){_0x34540d=_0x34540d-0x79;let _0x5ad499=_0xd0f248[_0x34540d];return _0x5ad499;},a117_0x3454(_0x35e218,_0x322d59);}class PathHelper{constructor(_0x39ee8b,_0x4dc3f8){const _0x5d9e8a=a117_0x3545b4;this[_0x5d9e8a(0x159)]=_0x39ee8b,this[_0x5d9e8a(0xb3)]=_0x4dc3f8;}['relativeTestFilePath'](_0x86cebe){const _0x19af8d=a117_0x3545b4,_0x13c799=this[_0x19af8d(0x159)][_0x19af8d(0xa0)]||this[_0x19af8d(0x159)][_0x19af8d(0x17f)];return path['relative'](_0x13c799,_0x86cebe);}[a117_0x3545b4(0x12f)](_0x399cb3){const _0x5c6961=a117_0x3545b4,_0x2b418e=this[_0x5c6961(0x125)](_0x399cb3);return this['prefix']?path[_0x5c6961(0x15a)](this[_0x5c6961(0xb3)],_0x2b418e):_0x2b418e;}}exports[a117_0x3545b4(0x157)]=PathHelper,exports['addRequestSpy']=(_0x160ead=!![])=>{const _0xa67e0b=a117_0x3545b4,_0x5df51a={};_0x5df51a['GFXLP']=function(_0x8a137a,_0x38db41){return _0x8a137a===_0x38db41;},_0x5df51a[_0xa67e0b(0x136)]='X-BSTACK-TESTOPS',_0x5df51a[_0xa67e0b(0x15f)]=_0xa67e0b(0x158),_0x5df51a[_0xa67e0b(0xac)]=_0xa67e0b(0x107),_0x5df51a['qOwLG']='browserstack',_0x5df51a[_0xa67e0b(0x118)]='local_grid';const _0x5f3524=_0x5df51a;requestSpy[_0xa67e0b(0xbf)]((_0x2bb907,_0x5431b3)=>{const _0x2811f5=_0xa67e0b;_0x5431b3&&!(_0x5431b3[_0x2811f5(0xdb)]&&_0x5f3524[_0x2811f5(0xe9)](_0x5431b3[_0x2811f5(0xdb)][_0x5f3524[_0x2811f5(0x136)]],_0x5f3524[_0x2811f5(0x15f)]))&&(_0x5431b3['host']=_0x5431b3[_0x2811f5(0x161)],delete _0x5431b3[_0x2811f5(0x161)],_0x160ead&&process[_0x2811f5(0x17a)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x2811f5(0x111)](),'level':null,'message':null,'kind':_0x5f3524['DtECg'],'http_response':_0x5431b3})),_0x5431b3&&(constants[_0x2811f5(0x11f)][_0x2811f5(0xfa)](_0x5431b3['host'])||constants[_0x2811f5(0x155)][_0x2811f5(0xfa)](_0x5431b3[_0x2811f5(0x103)]))?global[_0x2811f5(0x117)]=_0x5f3524[_0x2811f5(0x8f)]:global[_0x2811f5(0x117)]=_0x5f3524[_0x2811f5(0x118)];});},exports['patchConsoleLogger']=()=>{const _0x388ce2=a117_0x3545b4,_0x4e0816={'RMTay':function(_0x1521ca,_0x38ce27){return _0x1521ca(_0x38ce27);}};console={},Object[_0x388ce2(0x105)](consoleHolder)['forEach'](_0x13d813=>{const _0x30b300=_0x388ce2;_0x4e0816[_0x30b300(0xf4)](isFunction,consoleHolder[_0x13d813])?console[_0x13d813]=(..._0x5a4831)=>{const _0x14855a=_0x30b300;try{!Object[_0x14855a(0x105)](BSTestOpsPatcher)[_0x14855a(0x7f)](_0x13d813)?consoleHolder[_0x13d813](..._0x5a4831):BSTestOpsPatcher[_0x13d813](..._0x5a4831);}catch(_0x44974d){consoleHolder[_0x13d813](..._0x5a4831);}}:console[_0x13d813]=consoleHolder[_0x13d813];});},exports[a117_0x3545b4(0xe4)]=()=>a117_0x3545b4(0x79)+JSON[a117_0x3545b4(0xd0)]({'action':a117_0x3545b4(0xa8),'arguments':{'data':a117_0x3545b4(0x9d)+Date[a117_0x3545b4(0x175)](),'level':a117_0x3545b4(0x166)}}),exports['getObservabilityLinkedProductName']=_0x512d0e=>{const _0x2705b0=a117_0x3545b4,_0x504252={};_0x504252[_0x2705b0(0xd6)]=function(_0x5545dd,_0x536db8){return _0x5545dd===_0x536db8;},_0x504252[_0x2705b0(0x130)]=_0x2705b0(0xf2),_0x504252[_0x2705b0(0x16e)]=_0x2705b0(0xd3),_0x504252[_0x2705b0(0x7e)]=_0x2705b0(0xdf),_0x504252['mRkHc']=function(_0x336361,_0x4329b4){return _0x336361>_0x4329b4;},_0x504252[_0x2705b0(0x131)]=_0x2705b0(0x163),_0x504252['RpRIh']='bstack:options',_0x504252['hwEQR']=_0x2705b0(0x12c),_0x504252[_0x2705b0(0xc7)]=_0x2705b0(0x169),_0x504252[_0x2705b0(0x9a)]='automate';const _0x2ac177=_0x504252;let _0x58e109=null;try{if(_0x2ac177[_0x2705b0(0xd6)](global[_0x2705b0(0x117)],_0x2ac177['oQXZK'])){if(_0x512d0e[_0x2ac177[_0x2705b0(0x16e)]]||_0x512d0e[_0x2ac177['QKXaG']]||!bsSetupHelper[_0x2705b0(0x171)](global['capabilities'])&&_0x2ac177[_0x2705b0(0xd7)](global['capabilities'][_0x2705b0(0xa3)],0x0)&&(global['capabilities'][0x0][_0x2ac177[_0x2705b0(0x7e)]]||global[_0x2705b0(0x170)][0x0][_0x2ac177['vFzCp']]))_0x58e109=_0x2ac177['cZtxY'];else _0x512d0e[_0x2ac177['RpRIh']]&&_0x512d0e[_0x2ac177[_0x2705b0(0x16d)]][_0x2ac177[_0x2705b0(0x10d)]]?_0x58e109=_0x2ac177['Scxex']:_0x58e109=_0x2ac177[_0x2705b0(0x9a)];}}catch(_0x36267c){exports[_0x2705b0(0x166)](_0x2705b0(0xc2)+_0x36267c);}return _0x58e109;},exports[a117_0x3545b4(0xfc)]=async(_0x3fedfa,_0x228289,_0x3374fa=![])=>{const _0x34cf52=a117_0x3545b4,_0xe94009={};_0xe94009[_0x34cf52(0x11d)]=function(_0x32372d,_0x1da2f4){return _0x32372d===_0x1da2f4;},_0xe94009[_0x34cf52(0x81)]='browserstack',_0xe94009['aThMC']=_0x34cf52(0xdd),_0xe94009[_0x34cf52(0x16f)]=_0x34cf52(0x92);const _0x4c3f4f=_0xe94009;try{const _0x2f762a=await _0x3fedfa[_0x34cf52(0xb1)](),_0x1839f6=await _0x3fedfa[_0x34cf52(0x83)](),_0x1490c1={},_0x6b44de=Object['fromEntries'](_0x1839f6[_0x34cf52(0xb1)]()['map_']),_0x29014d={'product':exports['getObservabilityLinkedProductName'](_0x6b44de),'capabilities':_0x6b44de,'platform':_0x2f762a[_0x34cf52(0x17c)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x4c3f4f[_0x34cf52(0x11d)](global[_0x34cf52(0x117)],_0x4c3f4f['VoTzk'])),'browser':_0x2f762a['getBrowserName'](),'browser_version':_0x2f762a[_0x34cf52(0xec)](),'session_id':_0x1839f6['toJSON']()};global[_0x34cf52(0x117)]?_0x1490c1[global['__cloud_provider___']]=_0x29014d:_0x1490c1[_0x4c3f4f[_0x34cf52(0x12b)]]=_0x29014d;if(_0x3374fa)return _0x1490c1;process[_0x34cf52(0x17a)]('bs:addPlatformDetails:'+process[_0x34cf52(0x147)],{'timestamp':new Date()[_0x34cf52(0x111)](),'level':null,'message':null,'kind':_0x4c3f4f[_0x34cf52(0x16f)],'http_response':_0x1490c1,'uuid':_0x228289});}catch(_0x5217b1){exports[_0x34cf52(0x166)](_0x34cf52(0x115)+_0x5217b1);}},exports[a117_0x3545b4(0x178)]=_0x33f700=>{const _0x534ea3=a117_0x3545b4;return _0x33f700&&_0x33f700['toString']()[_0x534ea3(0xf5)](/browserstack internal helper hook/);};
1
+ const a117_0x26b6d9=a117_0x59f4;(function(_0x3632a5,_0x42b643){const _0x43fdc5=a117_0x59f4,_0x4d71bd=_0x3632a5();while(!![]){try{const _0x396b90=-parseInt(_0x43fdc5(0x152))/0x1+parseInt(_0x43fdc5(0x1ec))/0x2*(parseInt(_0x43fdc5(0x1e5))/0x3)+-parseInt(_0x43fdc5(0x201))/0x4+-parseInt(_0x43fdc5(0x1b9))/0x5+parseInt(_0x43fdc5(0xfe))/0x6*(-parseInt(_0x43fdc5(0x101))/0x7)+-parseInt(_0x43fdc5(0x1df))/0x8+parseInt(_0x43fdc5(0x114))/0x9;if(_0x396b90===_0x42b643)break;else _0x4d71bd['push'](_0x4d71bd['shift']());}catch(_0x1d606d){_0x4d71bd['push'](_0x4d71bd['shift']());}}}(a117_0x4c5d,0x623f4));const fs=require('fs'),path=require(a117_0x26b6d9(0x18a)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a117_0x26b6d9(0xf8)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require('http'),https=require(a117_0x26b6d9(0x103)),child_process=require(a117_0x26b6d9(0x1d3)),getos=require(a117_0x26b6d9(0x207)),os=require('os'),logger=require(a117_0x26b6d9(0x158))[a117_0x26b6d9(0x18f)],bsSetupHelper=require(a117_0x26b6d9(0x179)),requestSpy=require('../../helpers/request-spy'),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),util=require(a117_0x26b6d9(0x1a8)),{fileLogger}=require(a117_0x26b6d9(0x158)),PerformanceTester=require(a117_0x26b6d9(0x14b)),{isFunction}=require('lodash'),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a117_0x26b6d9(0x154)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x26b6d9(0x1da));exports['trace']=_0x3453e3=>{const _0x5989ad=a117_0x26b6d9;fileLogger['silly']('['+new Date()[_0x5989ad(0x13b)]()+_0x5989ad(0x19c)+_0x3453e3);},exports[a117_0x26b6d9(0x13a)]=_0x131bdf=>{const _0x45720a=a117_0x26b6d9,_0x1cc83a={};_0x1cc83a[_0x45720a(0x147)]=function(_0x4a02be,_0x46d685){return _0x4a02be===_0x46d685;},_0x1cc83a[_0x45720a(0x1bb)]=_0x45720a(0x1cb),_0x1cc83a[_0x45720a(0x1b6)]=function(_0x990b1f,_0x48ca38){return _0x990b1f===_0x48ca38;};const _0x360a3a=_0x1cc83a;fileLogger['debug']('['+new Date()[_0x45720a(0x13b)]()+_0x45720a(0x19c)+_0x131bdf),(_0x360a3a['xLLcm'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x360a3a[_0x45720a(0x1bb)])||_0x360a3a['PngtR'](process['env'][_0x45720a(0x184)],'1'))&&consoleHolder[_0x45720a(0x108)]('\x0a['+new Date()['toISOString']()+_0x45720a(0x19c)+_0x131bdf+'\x0a');};const a117_0x9753e8={};a117_0x9753e8[a117_0x26b6d9(0x155)]=!![],a117_0x9753e8[a117_0x26b6d9(0x170)]=0xea60,a117_0x9753e8[a117_0x26b6d9(0x18c)]=0x2,a117_0x9753e8[a117_0x26b6d9(0x198)]=0x2;const httpKeepAliveAgent=new http['Agent'](a117_0x9753e8),a117_0x5129b3={};a117_0x5129b3[a117_0x26b6d9(0x155)]=!![],a117_0x5129b3[a117_0x26b6d9(0x170)]=0xea60,a117_0x5129b3[a117_0x26b6d9(0x18c)]=0x2,a117_0x5129b3[a117_0x26b6d9(0x198)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a117_0x5129b3),a117_0x2ebb32={};a117_0x2ebb32[a117_0x26b6d9(0x155)]=!![],a117_0x2ebb32[a117_0x26b6d9(0x170)]=0xea60,a117_0x2ebb32[a117_0x26b6d9(0x18c)]=0x2,a117_0x2ebb32[a117_0x26b6d9(0x198)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x26b6d9(0x151))](a117_0x2ebb32),a117_0x5de5c3={};a117_0x5de5c3[a117_0x26b6d9(0x155)]=!![],a117_0x5de5c3[a117_0x26b6d9(0x170)]=0xea60,a117_0x5de5c3['maxSockets']=0x2,a117_0x5de5c3[a117_0x26b6d9(0x198)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x26b6d9(0x151))](a117_0x5de5c3);exports[a117_0x26b6d9(0x1bc)]=()=>{const _0x1c377b=a117_0x26b6d9,_0x5a5435={};_0x5a5435[_0x1c377b(0x1d2)]=function(_0x5f3203,_0x235a58){return _0x5f3203!==_0x235a58;},_0x5a5435[_0x1c377b(0x1c2)]=_0x1c377b(0x1d1);const _0x246b96=_0x5a5435;return process[_0x1c377b(0x120)][_0x1c377b(0x1f6)]&&_0x246b96[_0x1c377b(0x1d2)](process[_0x1c377b(0x120)][_0x1c377b(0x1f6)],_0x246b96[_0x1c377b(0x1c2)])?!![]:![];},exports[a117_0x26b6d9(0x1ae)]=()=>{const _0x53bf17=a117_0x26b6d9,_0x26d2f3={};_0x26d2f3[_0x53bf17(0x10d)]=function(_0x384b96,_0x16092d){return _0x384b96===_0x16092d;},_0x26d2f3[_0x53bf17(0x137)]=_0x53bf17(0x1cb);const _0x189093=_0x26d2f3;let _0x294397=!![];return process[_0x53bf17(0x120)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x294397=_0x189093[_0x53bf17(0x10d)](process[_0x53bf17(0x120)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x189093[_0x53bf17(0x137)])),process[_0x53bf17(0x120)][_0x53bf17(0x1d8)]&&(_0x294397=_0x189093[_0x53bf17(0x10d)](process[_0x53bf17(0x120)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x189093[_0x53bf17(0x137)])),_0x294397;},exports[a117_0x26b6d9(0x204)]=_0x2e4d12=>{const _0xf08295=a117_0x26b6d9;if(bsSetupHelper['isUndefined'](_0x2e4d12))return undefined;try{return _0x2e4d12[_0xf08295(0x165)]()[_0xf08295(0x132)](',');}catch(_0x345fa8){return undefined;}},exports[a117_0x26b6d9(0x1ea)]=()=>{const _0x40e528=a117_0x26b6d9,_0x24ea40={'AJANG':function(_0xd9723e,_0x3f29c3){return _0xd9723e(_0x3f29c3);},'RjcgP':_0x40e528(0x15b),'kwblt':function(_0x50ae29,_0x163af0){return _0x50ae29!==_0x163af0;},'MPeRe':_0x40e528(0x1d1),'ZostI':function(_0x2c4fda,_0x1e36e7){return _0x2c4fda!==_0x1e36e7;},'sRApO':'undefined','vYSAq':_0x40e528(0x167)};return PerformanceTester[_0x40e528(0x133)](PerformanceO11yEvents[_0x40e528(0x1d7)],async()=>{const _0x3447d9=_0x40e528;try{const _0x4f0dc3=_0x24ea40[_0x3447d9(0x106)](require,_0x24ea40['RjcgP']);if(_0x4f0dc3[_0x3447d9(0x1de)]){logger[_0x3447d9(0x1a2)](_0x3447d9(0x1e0)+O11Y_URL+_0x3447d9(0x19b)+_0x4f0dc3[_0x3447d9(0x1de)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');return;}process[_0x3447d9(0x120)][_0x3447d9(0x1bf)]&&_0x24ea40[_0x3447d9(0x1f2)](process[_0x3447d9(0x120)][_0x3447d9(0x1bf)],_0x24ea40[_0x3447d9(0x203)])&&_0x24ea40[_0x3447d9(0x19d)](process[_0x3447d9(0x120)][_0x3447d9(0x1bf)],_0x24ea40[_0x3447d9(0x1e1)])&&logger[_0x3447d9(0x1a2)](_0x3447d9(0x1e0)+constants[_0x3447d9(0x164)]+'/builds/'+process[_0x3447d9(0x120)][_0x3447d9(0x1bf)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x448496){logger[_0x3447d9(0x16f)](util[_0x3447d9(0x17c)](_0x24ea40[_0x3447d9(0x146)],new Date()['toISOString'](),_0x448496[_0x3447d9(0xfb)]||_0x448496[_0x3447d9(0x140)]||_0x448496));}})();},exports[a117_0x26b6d9(0x1b2)]=_0x6ee75c=>{const _0x3789bd=a117_0x26b6d9,_0x1f2a69={};_0x1f2a69['dGuOA']=_0x3789bd(0x209),_0x1f2a69['NsscL']=_0x3789bd(0x1a3);const _0x58f566=_0x1f2a69;if(!_0x6ee75c)return null;return _0x6ee75c[_0x3789bd(0x205)]()[_0x3789bd(0x16b)](/AssertionError/)?_0x58f566['dGuOA']:_0x58f566[_0x3789bd(0x1ca)];},exports[a117_0x26b6d9(0x163)]=_0x199e86=>{const _0x2d2dd0=a117_0x26b6d9,_0x10fef9={};_0x10fef9[_0x2d2dd0(0x1ab)]=_0x2d2dd0(0x195),_0x10fef9[_0x2d2dd0(0x193)]=_0x2d2dd0(0x105),_0x10fef9['eNksJ']=_0x2d2dd0(0x117),_0x10fef9['cJyOJ']=_0x2d2dd0(0x17e),_0x10fef9['MmMDo']=_0x2d2dd0(0x1c6);const _0x484448=_0x10fef9;let _0x39be23=null;switch(_0x199e86){case FRAMEWORKS[_0x2d2dd0(0x100)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x1ab)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x193)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x2d2dd0(0x138)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x186)]);break;case FRAMEWORKS[_0x2d2dd0(0x1eb)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448['cJyOJ']);break;case FRAMEWORKS[_0x2d2dd0(0x159)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x1a5)]);break;default:break;}return _0x39be23;},exports[a117_0x26b6d9(0x1f7)]=_0x2a382e=>{const _0x25b603=a117_0x26b6d9;let _0x537581=null;switch(_0x2a382e){case FRAMEWORKS[_0x25b603(0x16d)]:_0x537581=process[_0x25b603(0x120)][_0x25b603(0x1fe)];break;}if(!_0x537581)return;return bsSetupHelper[_0x25b603(0x160)](_0x537581,![]);},exports[a117_0x26b6d9(0x1b7)]=_0x305c71=>{const _0x19b706=a117_0x26b6d9;return{'username':bsSetupHelper[_0x19b706(0x11e)](_0x305c71),'accessKey':bsSetupHelper[_0x19b706(0x115)](_0x305c71)};},exports[a117_0x26b6d9(0x208)]=(_0x3e7565,_0x1a871b)=>{const _0x3c449d=a117_0x26b6d9,_0x40efad={};_0x40efad[_0x3c449d(0x10a)]=_0x3c449d(0x180),_0x40efad[_0x3c449d(0x143)]=_0x3c449d(0x1c9),_0x40efad[_0x3c449d(0x1ba)]=_0x3c449d(0x110);const _0x3d509f=_0x40efad,_0x5118a1=_0x3d509f[_0x3c449d(0x10a)][_0x3c449d(0x132)]('|');let _0x2646d6=0x0;while(!![]){switch(_0x5118a1[_0x2646d6++]){case'0':delete _0x1a871b[_0x3c449d(0x20b)];continue;case'1':_0x3e7565[_0x3c449d(0xf5)]={'data':_0x3e7565['body'][0x0][_0x3c449d(0xfa)][0x0][_0x3c449d(0xf6)],'test_run_uuid':_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)][0x0]['test_run_uuid'],'event_type':_0x3d509f['MlymT'],'kind':_0x3d509f[_0x3c449d(0x1ba)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x3c449d(0x13b)](),'fileName':_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)][0x0][_0x3c449d(0x14a)]};continue;case'2':if(!_0x3e7565[_0x3c449d(0x11f)]||!Array[_0x3c449d(0x11c)](_0x3e7565[_0x3c449d(0x11f)]))return;continue;case'3':delete _0x3e7565['body'];continue;case'4':delete _0x3e7565[_0x3c449d(0x127)];continue;case'5':if(!_0x3e7565[_0x3c449d(0x11f)][0x0]||!_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)]||!_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)][_0x3c449d(0x125)])return;continue;}break;}},exports[a117_0x26b6d9(0x13f)]=async(_0x9b8c14,_0x350c51,_0x19a304,_0x3571de,_0x1873b8=!![])=>{const _0x2720a4=a117_0x26b6d9,_0x24cd13={};_0x24cd13[_0x2720a4(0x182)]=function(_0x4ef139,_0x19c94d){return _0x4ef139===_0x19c94d;},_0x24cd13['giiFh']='Content-Type',_0x24cd13[_0x2720a4(0x17a)]=_0x2720a4(0x10b),_0x24cd13['dBeCw']=_0x2720a4(0x103),_0x24cd13[_0x2720a4(0x19a)]=function(_0x50147f,_0x2507f8){return _0x50147f!==_0x2507f8;},_0x24cd13['ySSMU']=function(_0x1d28ec,_0x1a1dd1){return _0x1d28ec!==_0x1a1dd1;},_0x24cd13[_0x2720a4(0x187)]='object',_0x24cd13['jkCOm']=_0x2720a4(0x166);const _0x502f16=_0x24cd13,_0x24fc1d={..._0x3571de,...{'method':_0x9b8c14,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x350c51,'body':_0x19a304,'json':_0x502f16[_0x2720a4(0x182)](_0x3571de[_0x2720a4(0x20b)][_0x502f16[_0x2720a4(0x1e3)]],_0x502f16[_0x2720a4(0x17a)]),'agent':API_URL[_0x2720a4(0x113)](_0x502f16[_0x2720a4(0x134)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x502f16[_0x2720a4(0x182)](_0x350c51,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x24fc1d[_0x2720a4(0x1c5)]=API_URL['includes'](_0x502f16['dBeCw'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x2720a4(0x208)](_0x24fc1d,_0x3571de),logger[_0x2720a4(0x13a)](_0x2720a4(0x1b8)+_0x24fc1d[_0x2720a4(0x153)]));try{const {statusCode:_0x2d80dd,body:_0x3f51a5}=await bsSetupHelper['nodeRequest'](_0x9b8c14,_0x350c51,_0x24fc1d,_0x3571de,_0x24fc1d['url']);if(_0x502f16['FoGWH'](_0x2d80dd,0xc8))return _0x3f51a5?_0x3f51a5:_0x2720a4(0x1ee)+_0x2d80dd;let _0x14086f=_0x3f51a5;if(_0x1873b8)try{_0x502f16[_0x2720a4(0x141)](typeof _0x3f51a5,_0x502f16[_0x2720a4(0x187)])&&(_0x14086f=JSON['parse'](_0x3f51a5));}catch(_0x5dc846){logger[_0x2720a4(0x16f)](_0x502f16[_0x2720a4(0x17b)],_0x3f51a5,util[_0x2720a4(0x17c)](_0x5dc846));}const _0x5ad8b7={};return _0x5ad8b7['data']=_0x14086f,_0x5ad8b7;}catch(_0x1a166f){logger[_0x2720a4(0x16f)](_0x2720a4(0x131)+util[_0x2720a4(0x17c)](_0x1a166f));throw _0x1a166f;}},exports[a117_0x26b6d9(0x124)]=(_0x521739,_0x414eba,_0x480f21,_0x50c152,_0x57e151=!![])=>{const _0x523022=a117_0x26b6d9,_0x3fa073={'kRtkf':function(_0x12c3dc,_0x426d4a){return _0x12c3dc!==_0x426d4a;},'yrzMo':function(_0x4ddfa1,_0x304db5){return _0x4ddfa1(_0x304db5);},'dapAG':_0x523022(0x1c8),'UUOFZ':function(_0x4fd5b7,_0x53ae79){return _0x4fd5b7(_0x53ae79);},'UCJly':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','yRKMI':function(_0x2b6d16,_0x5b9ae3){return _0x2b6d16(_0x5b9ae3);},'zxvAK':function(_0x15e8d2,_0x4bcc20){return _0x15e8d2===_0x4bcc20;},'RqHgv':_0x523022(0x1e8),'TxAUN':_0x523022(0x10b),'hFXPp':_0x523022(0x103)};return new Promise((_0x18e2ed,_0x3fa4d2)=>{const _0x4ebb4e=_0x523022,_0x4eaba1={'ifusj':function(_0x1406be,_0x4bc9a3){const _0x153927=a117_0x59f4;return _0x3fa073[_0x153927(0x12c)](_0x1406be,_0x4bc9a3);},'RzEDw':function(_0x42cfbe,_0x55fbcf){const _0x3e9886=a117_0x59f4;return _0x3fa073[_0x3e9886(0x139)](_0x42cfbe,_0x55fbcf);},'YvZni':function(_0x502d5f,_0x3e8f8a){const _0x1840eb=a117_0x59f4;return _0x3fa073[_0x1840eb(0x12c)](_0x502d5f,_0x3e8f8a);},'ZhoSw':_0x3fa073[_0x4ebb4e(0x1cc)],'BJNQZ':function(_0x3e70b6,_0x384e2c){return _0x3fa073['UUOFZ'](_0x3e70b6,_0x384e2c);},'tPjMv':_0x3fa073['UCJly'],'GIuVG':function(_0x1aee15,_0x4b20d5){const _0x35ed88=_0x4ebb4e;return _0x3fa073[_0x35ed88(0x1a7)](_0x1aee15,_0x4b20d5);}},_0x1a448f={..._0x50c152,...{'method':_0x521739,'url':API_URL+'/'+_0x414eba,'body':_0x480f21,'json':_0x3fa073[_0x4ebb4e(0x12d)](_0x50c152[_0x4ebb4e(0x20b)][_0x3fa073[_0x4ebb4e(0x1b5)]],_0x3fa073['TxAUN']),'agent':API_URL['includes'](_0x3fa073[_0x4ebb4e(0x157)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3fa073[_0x4ebb4e(0x12d)](_0x414eba,SCREENSHOT_ENDPOINT)&&(_0x1a448f[_0x4ebb4e(0x1c5)]=API_URL['includes'](_0x3fa073[_0x4ebb4e(0x157)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x521739,_0x414eba,_0x1a448f,_0x50c152,API_URL)['then'](({statusCode:_0x16fcf6,body:_0x369ed8})=>{const _0x1aef2=_0x4ebb4e;if(_0x4eaba1[_0x1aef2(0x1aa)](_0x16fcf6,0xc8))_0x4eaba1[_0x1aef2(0x1f5)](_0x3fa4d2,_0x369ed8?_0x369ed8:_0x1aef2(0x1ee)+_0x16fcf6);else{if(_0x57e151)try{_0x4eaba1[_0x1aef2(0x142)](typeof _0x369ed8,_0x4eaba1[_0x1aef2(0x150)])&&(_0x369ed8=JSON['parse'](_0x369ed8));}catch(_0x4ee171){_0x4eaba1[_0x1aef2(0x107)](_0x3fa4d2,_0x4eaba1[_0x1aef2(0x1e2)]);return;}const _0x46bd8d={};_0x46bd8d['data']=_0x369ed8,_0x4eaba1[_0x1aef2(0x206)](_0x18e2ed,_0x46bd8d);}})[_0x4ebb4e(0x128)](_0x17da7b=>{const _0x5c780f=_0x4ebb4e;_0x17da7b&&_0x4eaba1[_0x5c780f(0x206)](_0x3fa4d2,_0x17da7b);});});},exports['getBuildTags']=_0x2a5aa0=>{const _0x3a2568=a117_0x26b6d9;if(process[_0x3a2568(0x120)][_0x3a2568(0x1ad)])return process[_0x3a2568(0x120)][_0x3a2568(0x1ad)]['split'](',');if(_0x2a5aa0[_0x3a2568(0x177)])return _0x2a5aa0[_0x3a2568(0x177)];return[];},exports[a117_0x26b6d9(0x189)]=(_0x36fb8f=!![])=>{const _0x44b292=a117_0x26b6d9,_0x1c4319={};_0x1c4319[_0x44b292(0x12f)]=_0x44b292(0x10b),_0x1c4319[_0x44b292(0x1dd)]=_0x44b292(0x1cb),_0x1c4319[_0x44b292(0x1d0)]='Authorization';const _0x12c31a=_0x1c4319,_0x43ebcc={};_0x43ebcc[_0x44b292(0x1e8)]=_0x12c31a['XNNKw'],_0x43ebcc[_0x44b292(0x1fa)]=_0x12c31a[_0x44b292(0x1dd)];const _0x553179=_0x43ebcc;return _0x36fb8f&&process['env'][_0x44b292(0x1d6)]&&(_0x553179[_0x12c31a[_0x44b292(0x1d0)]]='Bearer\x20'+process[_0x44b292(0x120)][_0x44b292(0x1d6)]),_0x553179;},exports['extractValuesWithRegexKeyMatch']=_0x1125e3=>{const _0x342045=a117_0x26b6d9,_0x1d013a={};_0x1d013a[_0x342045(0x1e7)]='^CUSTOM_TAG_\x5cd+$';const _0x48da2b=_0x1d013a,_0x275f34=[],_0x1afba4=new RegExp(_0x48da2b[_0x342045(0x1e7)],'i');return Object['keys'](_0x1125e3)[_0x342045(0x19e)](_0x319a30=>_0x1afba4[_0x342045(0x194)](_0x319a30))[_0x342045(0x1b0)](_0x35f0a2=>_0x275f34[_0x342045(0x111)](_0x1125e3[_0x35f0a2])),_0x275f34;},exports[a117_0x26b6d9(0x130)]=_0x1d055b=>{const _0x561689=a117_0x26b6d9,_0x911621=[],_0x585833=_0x1d055b['customTag']||process[_0x561689(0x120)][_0x561689(0x12b)];return _0x585833&&_0x911621[_0x561689(0x111)](_0x585833),_0x911621[_0x561689(0x111)](...exports['extractValuesWithRegexKeyMatch'](process[_0x561689(0x120)])),_0x911621[_0x561689(0x111)](...exports[_0x561689(0x1e6)](_0x1d055b)),_0x911621;},exports[a117_0x26b6d9(0x188)]=_0x410c5c=>{const _0x44be19=a117_0x26b6d9;if(!_0x410c5c)return'';return _0x410c5c[_0x44be19(0x116)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x26b6d9(0x126)]=(_0x46d023=0x64)=>new Promise(_0x87e266=>setTimeout(_0x87e266,_0x46d023));const getPlatformName=()=>{const _0x4dfc74=a117_0x26b6d9,_0x3cb00d={};_0x3cb00d[_0x4dfc74(0x121)]=function(_0x3d0f26,_0x5ca2ec){return _0x3d0f26===_0x5ca2ec;},_0x3cb00d[_0x4dfc74(0x1c1)]=_0x4dfc74(0x176),_0x3cb00d[_0x4dfc74(0x1a0)]=_0x4dfc74(0x1f9),_0x3cb00d[_0x4dfc74(0x162)]=_0x4dfc74(0x1dc),_0x3cb00d['FMjbq']=_0x4dfc74(0x191),_0x3cb00d['xZhVF']=function(_0x204c15,_0x465c62){return _0x204c15===_0x465c62;},_0x3cb00d[_0x4dfc74(0x196)]=_0x4dfc74(0x11a),_0x3cb00d[_0x4dfc74(0x135)]=_0x4dfc74(0x112),_0x3cb00d['BhIZh']='Unknown';const _0x45300c=_0x3cb00d;if(_0x45300c[_0x4dfc74(0x121)](process[_0x4dfc74(0x11d)],_0x45300c[_0x4dfc74(0x1c1)]))return _0x45300c[_0x4dfc74(0x1a0)];if(_0x45300c[_0x4dfc74(0x121)](process['platform'],_0x45300c[_0x4dfc74(0x162)]))return _0x45300c[_0x4dfc74(0x14d)];if(_0x45300c[_0x4dfc74(0x1db)](process[_0x4dfc74(0x11d)],_0x45300c['VfyRI']))return _0x45300c[_0x4dfc74(0x135)];return _0x45300c[_0x4dfc74(0xff)];},getMacOSVersion=()=>{const _0x1c4be3=a117_0x26b6d9,_0x1dc2f4={};_0x1dc2f4[_0x1c4be3(0x109)]='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0xbe7a20=_0x1dc2f4;return child_process[_0x1c4be3(0x168)](_0xbe7a20[_0x1c4be3(0x109)])[_0x1c4be3(0x205)]()[_0x1c4be3(0x165)]();},getLinuxDetails=()=>{const _0x3f218e={'eTYOX':function(_0x5f5e1a,_0x4229d0){return _0x5f5e1a(_0x4229d0);},'QiNqW':function(_0x202f3e,_0x2557dd){return _0x202f3e(_0x2557dd);}};return new Promise((_0x4762c1,_0x3d8fbf)=>{const _0x429b4d=a117_0x59f4,_0xec66ec={'xLULo':function(_0x1b207f,_0x23b0d5){const _0x3b31ef=a117_0x59f4;return _0x3f218e[_0x3b31ef(0x18b)](_0x1b207f,_0x23b0d5);}};_0x3f218e[_0x429b4d(0x1ed)](getos,(_0x49b118,_0x10c619)=>{const _0x34c452=_0x429b4d;if(_0x49b118)return _0xec66ec[_0x34c452(0xfd)](_0x3d8fbf,_0x49b118);_0xec66ec['xLULo'](_0x4762c1,_0x10c619);});});};exports[a117_0x26b6d9(0x156)]=async()=>{const _0x13fec9=a117_0x26b6d9,_0x398f71={'NfPJw':function(_0x436c7b){return _0x436c7b();},'rnWbZ':'OS\x20X','aAVVu':_0x13fec9(0x1f9),'yOUfu':_0x13fec9(0x1d9),'ckyyp':function(_0x5be627){return _0x5be627();},'fOSDd':_0x13fec9(0x112),'Ulxir':function(_0xc56071){return _0xc56071();},'YlAIf':'Error\x20in\x20getting\x20Linux\x20Details'};let _0xc87204=_0x398f71[_0x13fec9(0x102)](getPlatformName),_0x57f397=os['release']()[_0x13fec9(0x205)]();switch(_0xc87204){case _0x398f71['rnWbZ']:_0x57f397=_0x398f71['NfPJw'](getMacOSVersion);break;case _0x398f71[_0x13fec9(0x178)]:try{const _0x24d00c=(await import(_0x398f71[_0x13fec9(0x1af)]))[_0x13fec9(0x1ff)];_0x57f397=_0x398f71[_0x13fec9(0xfc)](_0x24d00c);}catch(_0x14ffa4){exports[_0x13fec9(0x13a)](_0x13fec9(0x1b4)+_0x14ffa4[_0x13fec9(0x205)]());}break;case _0x398f71[_0x13fec9(0x15a)]:try{const _0x160115=await _0x398f71[_0x13fec9(0x17f)](getLinuxDetails);_0x160115[_0x13fec9(0x1c0)]&&(_0xc87204=_0x160115[_0x13fec9(0x1c0)]),_0x160115[_0x13fec9(0x173)]&&(_0x57f397=_0x160115[_0x13fec9(0x173)]['toString']());}catch(_0x1e0381){exports[_0x13fec9(0x13a)](_0x398f71['YlAIf']);}break;default:break;}const _0x5f4a21={};return _0x5f4a21[_0x13fec9(0x10f)]=_0xc87204,_0x5f4a21[_0x13fec9(0x1f8)]=_0x57f397,_0x5f4a21;},exports[a117_0x26b6d9(0x1c3)]=(_0x11dbaf,_0x30c421)=>{const _0x5ef251=a117_0x26b6d9,_0xffe2b7={};_0xffe2b7['vRSzI']=function(_0x19cc3d,_0x409b1a){return _0x19cc3d===_0x409b1a;},_0xffe2b7['aCyUu']=_0x5ef251(0x194),_0xffe2b7[_0x5ef251(0x1a1)]=function(_0x1753e1,_0x12ab9b){return _0x1753e1===_0x12ab9b;},_0xffe2b7[_0x5ef251(0x1cd)]=_0x5ef251(0x13c);const _0x1583cd=_0xffe2b7;if(!_0x11dbaf)return[];try{if(_0x1583cd[_0x5ef251(0x1f3)](_0x30c421,_0x1583cd[_0x5ef251(0x13e)]))return _0x11dbaf[_0x5ef251(0x199)](_0x2437bc=>{const _0x4516cb=_0x5ef251,{stack:_0x1b9686,..._0x5d5754}=_0x2437bc,_0x31f0cd=Object['keys'](_0x5d5754)[_0x4516cb(0x199)](_0x39bff4=>{return _0x39bff4+':\x20'+_0x5d5754[_0x39bff4];}),_0xa856e0=_0x1b9686?exports[_0x4516cb(0x188)](_0x1b9686)['split'](/\r?\n/):[exports[_0x4516cb(0x188)](_0x2437bc[_0x4516cb(0x140)])],_0xcede8a={};return _0xcede8a[_0x4516cb(0x197)]=_0xa856e0,_0xcede8a[_0x4516cb(0x15f)]=_0x31f0cd,_0xcede8a;});else{if(_0x1583cd[_0x5ef251(0x1a1)](_0x30c421,_0x1583cd[_0x5ef251(0x1cd)])){const _0x3bcd4b=[],_0x1503bd=[];return Object[_0x5ef251(0x18d)](_0x11dbaf)[_0x5ef251(0x1b0)](_0x47dfaf=>{const _0x40aa47=_0x5ef251;try{_0x1503bd[_0x40aa47(0x111)](_0x47dfaf+':\x20'+_0x11dbaf[_0x47dfaf]);}catch(_0x2aadfb){exports[_0x40aa47(0x13a)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x2aadfb[_0x40aa47(0x140)]+_0x40aa47(0x144)+_0x2aadfb[_0x40aa47(0x197)]);}}),_0x3bcd4b[_0x5ef251(0x111)]({'backtrace':exports[_0x5ef251(0x188)](_0x11dbaf['stack'])[_0x5ef251(0x132)](/\r?\n/),'expanded':_0x1503bd}),_0x3bcd4b;}}return[];}catch(_0x41f184){exports[_0x5ef251(0x13a)](_0x5ef251(0x12a)+_0x41f184[_0x5ef251(0x140)]+'\x20:\x20'+_0x41f184[_0x5ef251(0x197)]);}return[];};class PathHelper{constructor(_0x545835,_0x21d1da){const _0x331be6=a117_0x26b6d9;this['config']=_0x545835,this[_0x331be6(0x1ce)]=_0x21d1da;}['relativeTestFilePath'](_0x29c016){const _0x3fe0c1=a117_0x26b6d9,_0x5dc03a=this[_0x3fe0c1(0x172)]['cwd']||this[_0x3fe0c1(0x172)][_0x3fe0c1(0x118)];return path[_0x3fe0c1(0x10c)](_0x5dc03a,_0x29c016);}[a117_0x26b6d9(0x20a)](_0xc4cea7){const _0x5562ae=a117_0x26b6d9,_0x32fa7f=this[_0x5562ae(0x1ac)](_0xc4cea7);return this[_0x5562ae(0x1ce)]?path[_0x5562ae(0x1d5)](this[_0x5562ae(0x1ce)],_0x32fa7f):_0x32fa7f;}}function a117_0x59f4(_0x3c8bb6,_0x4d0bfc){const _0x4c5d2f=a117_0x4c5d();return a117_0x59f4=function(_0x59f41e,_0x5a60af){_0x59f41e=_0x59f41e-0xf4;let _0x3d02cd=_0x4c5d2f[_0x59f41e];return _0x3d02cd;},a117_0x59f4(_0x3c8bb6,_0x4d0bfc);}exports[a117_0x26b6d9(0x1c4)]=PathHelper,exports[a117_0x26b6d9(0x145)]=(_0x1d114d=!![])=>{const _0x1f9ff1=a117_0x26b6d9,_0x41e048={};_0x41e048[_0x1f9ff1(0x181)]=function(_0x37040a,_0x532011){return _0x37040a===_0x532011;},_0x41e048[_0x1f9ff1(0x161)]='X-BSTACK-TESTOPS',_0x41e048[_0x1f9ff1(0x122)]=_0x1f9ff1(0x1cb),_0x41e048[_0x1f9ff1(0x14c)]='HTTP',_0x41e048['miOPt']=_0x1f9ff1(0x12e),_0x41e048[_0x1f9ff1(0x119)]=_0x1f9ff1(0x202);const _0x396ff1=_0x41e048;requestSpy['spy']((_0x48c7c5,_0x2a568d)=>{const _0x256f22=_0x1f9ff1;_0x2a568d&&!(_0x2a568d['headers']&&_0x396ff1[_0x256f22(0x181)](_0x2a568d[_0x256f22(0x20b)][_0x396ff1[_0x256f22(0x161)]],_0x396ff1['CwsmD']))&&(_0x2a568d[_0x256f22(0x19f)]=_0x2a568d['hostname'],delete _0x2a568d[_0x256f22(0x1e4)],_0x1d114d&&process[_0x256f22(0xf4)](_0x256f22(0x123)+process[_0x256f22(0x17d)],{'timestamp':new Date()[_0x256f22(0x13b)](),'level':null,'message':null,'kind':_0x396ff1[_0x256f22(0x14c)],'http_response':_0x2a568d})),_0x2a568d&&(constants[_0x256f22(0x183)][_0x256f22(0x194)](_0x2a568d[_0x256f22(0x19f)])||constants[_0x256f22(0x200)][_0x256f22(0x194)](_0x2a568d[_0x256f22(0x19f)]))?global[_0x256f22(0x10e)]=_0x396ff1['miOPt']:global[_0x256f22(0x10e)]=_0x396ff1[_0x256f22(0x119)];});},exports['patchConsoleLogger']=()=>{const _0x28e10a=a117_0x26b6d9,_0x7ab787={'fuNpM':function(_0x5d087c,_0x49413f){return _0x5d087c(_0x49413f);}};console={},Object[_0x28e10a(0x18d)](consoleHolder)[_0x28e10a(0x1b0)](_0xb1ec7b=>{const _0xf2f0fb=_0x28e10a;_0x7ab787[_0xf2f0fb(0x16e)](isFunction,consoleHolder[_0xb1ec7b])?console[_0xb1ec7b]=(..._0x334da8)=>{const _0x102e18=_0xf2f0fb;try{!Object[_0x102e18(0x18d)](BSTestOpsPatcher)[_0x102e18(0x113)](_0xb1ec7b)?consoleHolder[_0xb1ec7b](..._0x334da8):BSTestOpsPatcher[_0xb1ec7b](..._0x334da8);}catch(_0x7fb938){consoleHolder[_0xb1ec7b](..._0x334da8);}}:console[_0xb1ec7b]=consoleHolder[_0xb1ec7b];});},exports[a117_0x26b6d9(0x149)]=()=>'browserstack_executor:\x20'+JSON[a117_0x26b6d9(0x190)]({'action':a117_0x26b6d9(0x192),'arguments':{'data':a117_0x26b6d9(0x16a)+Date[a117_0x26b6d9(0x174)](),'level':'debug'}}),exports[a117_0x26b6d9(0x15d)]=_0x30320f=>{const _0x3da3d2=a117_0x26b6d9,_0x279f4b={};_0x279f4b['tnMYE']=function(_0x4319fc,_0x322589){return _0x4319fc===_0x322589;},_0x279f4b[_0x3da3d2(0x14f)]=_0x3da3d2(0x12e),_0x279f4b[_0x3da3d2(0x1f4)]=_0x3da3d2(0x15e),_0x279f4b[_0x3da3d2(0x1fb)]=_0x3da3d2(0x1fd),_0x279f4b[_0x3da3d2(0x1b1)]=function(_0x3e48d1,_0x51267d){return _0x3e48d1>_0x51267d;},_0x279f4b[_0x3da3d2(0x175)]=_0x3da3d2(0x16c),_0x279f4b[_0x3da3d2(0x104)]='bstack:options',_0x279f4b[_0x3da3d2(0xf7)]=_0x3da3d2(0x1cf),_0x279f4b['cJLWK']=_0x3da3d2(0x11b),_0x279f4b[_0x3da3d2(0x1bd)]=_0x3da3d2(0x185);const _0x4b65bd=_0x279f4b;let _0x1bc68c=null;try{if(_0x4b65bd[_0x3da3d2(0x1c7)](global[_0x3da3d2(0x10e)],_0x4b65bd[_0x3da3d2(0x14f)])){if(_0x30320f[_0x4b65bd[_0x3da3d2(0x1f4)]]||_0x30320f[_0x4b65bd[_0x3da3d2(0x1fb)]]||!bsSetupHelper[_0x3da3d2(0x15c)](global[_0x3da3d2(0x169)])&&_0x4b65bd['YMDAE'](global[_0x3da3d2(0x169)]['length'],0x0)&&(global[_0x3da3d2(0x169)][0x0][_0x4b65bd[_0x3da3d2(0x1fb)]]||global['capabilities'][0x0][_0x4b65bd[_0x3da3d2(0x1f4)]]))_0x1bc68c=_0x4b65bd[_0x3da3d2(0x175)];else _0x30320f[_0x4b65bd[_0x3da3d2(0x104)]]&&_0x30320f[_0x4b65bd[_0x3da3d2(0x104)]][_0x4b65bd[_0x3da3d2(0xf7)]]?_0x1bc68c=_0x4b65bd[_0x3da3d2(0x1f1)]:_0x1bc68c=_0x4b65bd[_0x3da3d2(0x1bd)];}}catch(_0x1418f7){exports[_0x3da3d2(0x13a)](_0x3da3d2(0x1fc)+_0x1418f7);}return _0x1bc68c;},exports['sendPlatformDetails']=async(_0x5133c7,_0x332ef2,_0x40ac73=![])=>{const _0x23e0d2=a117_0x26b6d9,_0x295951={};_0x295951[_0x23e0d2(0xf9)]=function(_0x2e1cfb,_0x5db789){return _0x2e1cfb===_0x5db789;},_0x295951[_0x23e0d2(0x14e)]='browserstack',_0x295951['PhFPf']='unknown_grid',_0x295951[_0x23e0d2(0x1e9)]=_0x23e0d2(0x1a9);const _0x654ae1=_0x295951;try{const _0x24bddb=await _0x5133c7[_0x23e0d2(0x1b3)](),_0x4b30cb=await _0x5133c7[_0x23e0d2(0x1be)](),_0x48a37a={},_0x486f8a=Object[_0x23e0d2(0x13d)](_0x4b30cb['getCapabilities']()[_0x23e0d2(0x136)]),_0x17c00d={'product':exports[_0x23e0d2(0x15d)](_0x486f8a),'capabilities':_0x486f8a,'platform':_0x24bddb['getPlatform'](),'platform_version':bsSetupHelper[_0x23e0d2(0x1a4)](_0x654ae1[_0x23e0d2(0xf9)](global[_0x23e0d2(0x10e)],_0x654ae1['RBQBi'])),'browser':_0x24bddb[_0x23e0d2(0x129)](),'browser_version':_0x24bddb[_0x23e0d2(0x1a6)](),'session_id':_0x4b30cb[_0x23e0d2(0x18e)]()};global['__cloud_provider___']?_0x48a37a[global[_0x23e0d2(0x10e)]]=_0x17c00d:_0x48a37a[_0x654ae1[_0x23e0d2(0x1ef)]]=_0x17c00d;if(_0x40ac73)return _0x48a37a;process['emit'](_0x23e0d2(0x1f0)+process[_0x23e0d2(0x17d)],{'timestamp':new Date()[_0x23e0d2(0x13b)](),'level':null,'message':null,'kind':_0x654ae1['iaUtS'],'http_response':_0x48a37a,'uuid':_0x332ef2});}catch(_0x2fea0d){exports[_0x23e0d2(0x13a)](_0x23e0d2(0x171)+_0x2fea0d);}},exports[a117_0x26b6d9(0x1d4)]=_0x10da71=>{const _0x358d5d=a117_0x26b6d9;return _0x10da71&&_0x10da71[_0x358d5d(0x205)]()['match'](/browserstack internal helper hook/);};function a117_0x4c5d(){const _0x643ac1=['map','FoGWH','/builds/','][\x20OBSERVABILITY\x20]\x20','ZostI','filter','host','tvcnh','PiBJs','info','UnhandledError','getPlatformVersion','MmMDo','getBrowserVersion','yRKMI','util','TEST_PLATFORM','ifusj','jdWUq','relativeTestFilePath','TEST_OBSERVABILITY_BUILD_TAG','isTestObservabilitySession','yOUfu','forEach','YMDAE','getFailureType','getCapabilities','Error\x20in\x20importing\x20windows-release\x20','RqHgv','PngtR','getUserCredentials','Uploading\x20trace\x20logs\x20to:\x20','285340dYnrqF','iOGfT','nTuLy','shouldReRunObservabilityTests','Fsndj','getSession','BS_TESTOPS_BUILD_HASHED_ID','dist','KtjOc','KekfV','failureData','PathHelper','agent','@cucumber/cucumber','tnMYE','object','LogCreated','NsscL','true','dapAG','KyhzH','prefix','turboScaleGridDetails','opyvg','null','Dhqwt','child_process','isInternalHook','join','BROWSERSTACK_TESTHUB_JWT','PRINT_BUILDLINK','BROWSERSTACK_TEST_OBSERVABILITY','windows-release','../../../src/bin/utils/constants','xZhVF','darwin','ULcAD','O11yHashedID','3401176EYdKjT','Visit\x20','sRApO','tPjMv','giiFh','hostname','3879dtHMJN','extractValuesWithRegexKeyMatch','YKsKM','Content-Type','iaUtS','printBuildLink','JEST','1108COnMsQ','QiNqW','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','PhFPf','bs:addPlatformDetails:','cJLWK','kwblt','vRSzI','bvjZN','RzEDw','BROWSERSTACK_RERUN_TESTS','getBrowserStackConfig','platformVersion','Windows','X-BSTACK-TESTOPS','tvUBz','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','app','BROWSERSTACK_CONFIG_FILE_PATH','default','ATS_HUB_URL_REGEX','1046936OsKwgb','local_grid','MPeRe','parseFileNames','toString','GIuVG','getos','modifyReqForTraceUpload','AssertionError','prefixTestPath','headers','emit','formData','data','EVlch','git-repo-info','DfZJx','logs','stack','ckyyp','xLULo','3064164txmEiQ','BhIZh','MOCHA','7VoxbLQ','NfPJw','https','wxHOe','@playwright/test','AJANG','BJNQZ','log','xInEG','VnPBv','application/json','relative','fVlqv','__cloud_provider___','platformName','TEST_ATTACHMENT','push','Linux','includes','11464542AQTOAI','getAccessKey','replace','codeceptjs','rootDir','SwEeG','linux','turboscale','isArray','platform','getUserName','body','env','hcCNg','CwsmD','bs:addLog:','nodeRequest','length','sleep','json','catch','getBrowserName','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','CUSTOM_TAG','kRtkf','zxvAK','browserstack','XNNKw','getCustomTags','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','split','measureWrapper','dBeCw','cHOEg','map_','EFYDU','CODECEPT_CUCUMBER','yrzMo','debug','toISOString','err','fromEntries','aCyUu','asyncAwaitNodeReq','message','ySSMU','YvZni','MlymT','\x20:\x20','addRequestSpy','vYSAq','xLLcm','getPackageVersion','getSyncScript','fileName','../performance/performance-tester','ovfEk','FMjbq','RBQBi','oweul','ZhoSw','Agent','333097rHbmZY','url','../performance/constants','keepAlive','getPlatformDetails','hFXPp','../logger','CUCUMBER','fOSDd','../../bin/v2/browserstackCLI','isUndefined','getObservabilityLinkedProductName','appium:app','expanded','readConfig','QkbTn','hJzUE','getFrameworkVersion','O11Y_URL','trim','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','execSync','capabilities','ObservabilitySync:','match','app-automate','PLAYWRIGHT','fuNpM','error','timeout','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','config','release','now','YbrxD','win32','buildTag','aAVVu','../helper','XRDlG','jkCOm','format','pid','jest','Ulxir','2|5|1|3|4|0','LDPLd','FSIlQ','HUB_URL_REGEX','BROWSERSTACK_OBSERVABILITY_DEBUG','automate','eNksJ','ASEyL','removeAnsiColors','getDefaultHeaders','path','eTYOX','maxSockets','keys','toJSON','winstonLogger','stringify','OS\x20X','annotate','WxBEc','test','mocha','VfyRI','backtrace','maxTotalSockets'];a117_0x4c5d=function(){return _0x643ac1;};return a117_0x4c5d();}
@@ -1 +1 @@
1
- function a118_0x112e(_0x163263,_0x1523ea){var _0x45b7a8=a118_0x45b7();return a118_0x112e=function(_0x112ee1,_0x1fa8b5){_0x112ee1=_0x112ee1-0x123;var _0x5d97ba=_0x45b7a8[_0x112ee1];return _0x5d97ba;},a118_0x112e(_0x163263,_0x1523ea);}var a118_0x2a81d0=a118_0x112e;(function(_0x196434,_0x1aaf3d){var _0x5eace8=a118_0x112e,_0x3d2b5e=_0x196434();while(!![]){try{var _0x31a7ec=parseInt(_0x5eace8(0x130))/0x1+parseInt(_0x5eace8(0x128))/0x2*(parseInt(_0x5eace8(0x125))/0x3)+-parseInt(_0x5eace8(0x131))/0x4*(parseInt(_0x5eace8(0x132))/0x5)+-parseInt(_0x5eace8(0x12e))/0x6+parseInt(_0x5eace8(0x12b))/0x7+parseInt(_0x5eace8(0x12a))/0x8+-parseInt(_0x5eace8(0x12c))/0x9;if(_0x31a7ec===_0x1aaf3d)break;else _0x3d2b5e['push'](_0x3d2b5e['shift']());}catch(_0x4aeed2){_0x3d2b5e['push'](_0x3d2b5e['shift']());}}}(a118_0x45b7,0xdf03d));var a118_0x5202f9={};function a118_0x45b7(){var _0xf24208=['1006062ZpxpNl','8cnJmZw','4555790qlUACb','testorchestration/api/v1/split-tests','testorchestration/api/v1/failed-tests','338202FqAvCg','SPLIT_TESTS_ENDPOINT','ORCHESTRATION_API_URL','30gxdWho','exports','14446584apOdQP','5342890wAPugT','19139724cBDcAY','FAILED_TESTS_ENDPOINT','2422464jJElMp','https://collector-observability.browserstack.com'];a118_0x45b7=function(){return _0xf24208;};return a118_0x45b7();}a118_0x5202f9[a118_0x2a81d0(0x127)]=a118_0x2a81d0(0x12f),a118_0x5202f9[a118_0x2a81d0(0x12d)]=a118_0x2a81d0(0x124),a118_0x5202f9[a118_0x2a81d0(0x126)]=a118_0x2a81d0(0x123),module[a118_0x2a81d0(0x129)]=a118_0x5202f9;
1
+ function a118_0x42c0(){var _0x559d53=['1010560dlUtZd','2390ElVeFb','ORCHESTRATION_API_URL','424NBzVul','exports','26731BOxxPJ','SPLIT_TESTS_ENDPOINT','195906SPvGok','52wrRzYB','FAILED_TESTS_ENDPOINT','11110itfbXy','1146pbedFp','testorchestration/api/v1/split-tests','3612NhdRbX','1840660aAopnl','45jiNQHf','133735tszOOs','testorchestration/api/v1/failed-tests','https://collector-observability.browserstack.com'];a118_0x42c0=function(){return _0x559d53;};return a118_0x42c0();}var a118_0x1f515d=a118_0x4503;(function(_0x4582a6,_0x51c40a){var _0x410766=a118_0x4503,_0x1faaca=_0x4582a6();while(!![]){try{var _0x22841e=parseInt(_0x410766(0xc4))/0x1*(parseInt(_0x410766(0xb4))/0x2)+-parseInt(_0x410766(0xb3))/0x3+-parseInt(_0x410766(0xbf))/0x4+-parseInt(_0x410766(0xc0))/0x5*(-parseInt(_0x410766(0xb7))/0x6)+-parseInt(_0x410766(0xbc))/0x7*(parseInt(_0x410766(0xc2))/0x8)+parseInt(_0x410766(0xbb))/0x9*(parseInt(_0x410766(0xba))/0xa)+parseInt(_0x410766(0xb6))/0xb*(parseInt(_0x410766(0xb9))/0xc);if(_0x22841e===_0x51c40a)break;else _0x1faaca['push'](_0x1faaca['shift']());}catch(_0x5307ea){_0x1faaca['push'](_0x1faaca['shift']());}}}(a118_0x42c0,0xa60c9));var a118_0x486e73={};function a118_0x4503(_0x243389,_0x49d7c3){var _0x42c064=a118_0x42c0();return a118_0x4503=function(_0x450394,_0x45d2b5){_0x450394=_0x450394-0xb3;var _0x69916f=_0x42c064[_0x450394];return _0x69916f;},a118_0x4503(_0x243389,_0x49d7c3);}a118_0x486e73[a118_0x1f515d(0xc1)]=a118_0x1f515d(0xbe),a118_0x486e73[a118_0x1f515d(0xb5)]=a118_0x1f515d(0xbd),a118_0x486e73[a118_0x1f515d(0xc5)]=a118_0x1f515d(0xb8),module[a118_0x1f515d(0xc3)]=a118_0x486e73;
@@ -1 +1 @@
1
- const a119_0x546bf6=a119_0x57aa;(function(_0x10091f,_0x1164c3){const _0x5c91cf=a119_0x57aa,_0x2cfac4=_0x10091f();while(!![]){try{const _0x47c78a=-parseInt(_0x5c91cf(0xc8))/0x1*(-parseInt(_0x5c91cf(0xca))/0x2)+-parseInt(_0x5c91cf(0xdb))/0x3*(parseInt(_0x5c91cf(0x13d))/0x4)+parseInt(_0x5c91cf(0xe4))/0x5+-parseInt(_0x5c91cf(0x110))/0x6+-parseInt(_0x5c91cf(0x13b))/0x7*(-parseInt(_0x5c91cf(0x123))/0x8)+-parseInt(_0x5c91cf(0xf6))/0x9*(parseInt(_0x5c91cf(0xf9))/0xa)+-parseInt(_0x5c91cf(0xfb))/0xb*(parseInt(_0x5c91cf(0x105))/0xc);if(_0x47c78a===_0x1164c3)break;else _0x2cfac4['push'](_0x2cfac4['shift']());}catch(_0x401b2b){_0x2cfac4['push'](_0x2cfac4['shift']());}}}(a119_0x1626,0x3af9a));const fs=require('fs'),path=require(a119_0x546bf6(0x11e)),FileHelper=require(a119_0x546bf6(0x122)),RequestUtils=require('./requestUtils'),logger=require('../logger')[a119_0x546bf6(0xe5)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';function a119_0x57aa(_0x2c807c,_0x1d13b7){const _0x162610=a119_0x1626();return a119_0x57aa=function(_0x57aaf3,_0xd01bf7){_0x57aaf3=_0x57aaf3-0xc2;let _0x5e4b53=_0x162610[_0x57aaf3];return _0x5e4b53;},a119_0x57aa(_0x2c807c,_0x1d13b7);}class FailFastManager{constructor(_0x18a95f,_0x191c0e,_0x304d59){const _0x2c3f45=a119_0x546bf6,_0x11d0fe={};_0x11d0fe[_0x2c3f45(0xdd)]=function(_0x547506,_0x1d88d6){return _0x547506+_0x1d88d6;},_0x11d0fe[_0x2c3f45(0xeb)]=_0x2c3f45(0x10a),_0x11d0fe[_0x2c3f45(0xf3)]=function(_0x5499fb,_0x5c2931){return _0x5499fb||_0x5c2931;},_0x11d0fe['elbaS']='failFastState.json',_0x11d0fe['KLwPh']=_0x2c3f45(0xe1),_0x11d0fe[_0x2c3f45(0x126)]='failFast.active';const _0x4978e4=_0x11d0fe;this[_0x2c3f45(0xd6)]=_0x4978e4[_0x2c3f45(0xf3)](_0x18a95f,{}),this['buildName']=_0x191c0e,this[_0x2c3f45(0xef)]=_0x304d59,this[_0x2c3f45(0x103)]=!!(process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x2c3f45(0x11f)][_0x2c3f45(0x12b)]&&process[_0x2c3f45(0x11f)][_0x2c3f45(0xd3)]);const _0x36f81f=this[_0x2c3f45(0xd6)][_0x2c3f45(0x11a)];this['stateFilePath']=path[_0x2c3f45(0x107)](_0x36f81f,_0x4978e4['elbaS']),this['lockFilePath']=path[_0x2c3f45(0x107)](_0x36f81f,_0x4978e4[_0x2c3f45(0xcc)]),this[_0x2c3f45(0x115)]=path[_0x2c3f45(0x107)](_0x36f81f,_0x4978e4[_0x2c3f45(0x126)]),this[_0x2c3f45(0xf7)]=new FileHelper(this[_0x2c3f45(0xd6)],this[_0x2c3f45(0x111)],this[_0x2c3f45(0xc2)],this[_0x2c3f45(0xe8)]()),this['state']=this[_0x2c3f45(0xe8)](),this[_0x2c3f45(0x145)]=null,this[_0x2c3f45(0x103)]&&(this[_0x2c3f45(0xf1)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x5b8cf0=>{const _0x5337c5=_0x2c3f45;logger['error']('['+TAG+_0x5337c5(0x137)+_0x5b8cf0[_0x5337c5(0x11b)]+(_0x5b8cf0[_0x5337c5(0xe0)]?_0x4978e4['WdYXh'](_0x4978e4[_0x5337c5(0xeb)],_0x5b8cf0['stack']):'')),this['state']=this[_0x5337c5(0xe8)]();}),this[_0x2c3f45(0x103)]&&this[_0x2c3f45(0x144)](),logger[_0x2c3f45(0x146)]('['+TAG+_0x2c3f45(0x12d)+this[_0x2c3f45(0xd6)][_0x2c3f45(0x139)]+_0x2c3f45(0x101)+this[_0x2c3f45(0x103)]);}[a119_0x546bf6(0xe8)](){const _0x9e5a28={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x9e5a28;}async[a119_0x546bf6(0xc7)](){const _0x3ab5f1=a119_0x546bf6,_0x32d4bd={};_0x32d4bd[_0x3ab5f1(0xe7)]=function(_0x4c32f3,_0xea2983){return _0x4c32f3+_0xea2983;},_0x32d4bd[_0x3ab5f1(0x13f)]=_0x3ab5f1(0x10a),_0x32d4bd[_0x3ab5f1(0xe6)]=function(_0x2f3659,_0x1128a0){return _0x2f3659+_0x1128a0;};const _0x41ad0b=_0x32d4bd;if(this[_0x3ab5f1(0x103)])try{fs[_0x3ab5f1(0xce)](this[_0x3ab5f1(0x115)])&&(this[_0x3ab5f1(0xcb)]['failFastActive']=!![],logger[_0x3ab5f1(0x146)]('['+TAG+_0x3ab5f1(0x109)));}catch(_0xb6f659){logger[_0x3ab5f1(0x12a)]('['+TAG+_0x3ab5f1(0x131)+_0xb6f659[_0x3ab5f1(0x11b)]+(_0xb6f659[_0x3ab5f1(0xe0)]?_0x41ad0b[_0x3ab5f1(0xe7)](_0x41ad0b[_0x3ab5f1(0x13f)],_0xb6f659[_0x3ab5f1(0xe0)]):''));}else try{const _0x578473=await this[_0x3ab5f1(0xf7)][_0x3ab5f1(0x141)]();if(_0x578473)this[_0x3ab5f1(0xcb)]={...this['_getDefaultState'](),..._0x578473,'uniqueFailedTests':new Set(_0x578473[_0x3ab5f1(0x13c)]||[])},logger[_0x3ab5f1(0x146)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x3ab5f1(0x146)]('['+TAG+_0x3ab5f1(0x108));const _0x115147=this['_getDefaultState'](),_0x88630f={..._0x115147,'uniqueFailedTests':Array[_0x3ab5f1(0x12e)](_0x115147['uniqueFailedTests'])};await this[_0x3ab5f1(0xf7)]['writeState'](_0x88630f),this[_0x3ab5f1(0xcb)]=_0x115147;}}catch(_0x59e119){logger['debug']('['+TAG+_0x3ab5f1(0x125)+_0x59e119[_0x3ab5f1(0x11b)]+(_0x59e119[_0x3ab5f1(0xe0)]?_0x41ad0b['VnETi'](_0x41ad0b['nyARK'],_0x59e119['stack']):'')),this[_0x3ab5f1(0xcb)]=this[_0x3ab5f1(0xe8)]();}}async[a119_0x546bf6(0x121)](_0x573153,_0x467156){const _0x4a8cf0=a119_0x546bf6,_0x179fcd={};_0x179fcd['KYjmS']=function(_0x4e2d4e,_0x13455e){return _0x4e2d4e>_0x13455e;},_0x179fcd[_0x4a8cf0(0xd7)]=_0x4a8cf0(0x100),_0x179fcd[_0x4a8cf0(0xde)]=_0x4a8cf0(0x106),_0x179fcd['Ckkxk']=function(_0x53fa6a,_0x2d2f7a){return _0x53fa6a+_0x2d2f7a;},_0x179fcd[_0x4a8cf0(0xfe)]=_0x4a8cf0(0x10a),_0x179fcd[_0x4a8cf0(0xc4)]=function(_0x255484,_0xa6f576){return _0x255484||_0xa6f576;},_0x179fcd[_0x4a8cf0(0x135)]=function(_0x42a501,_0x21df4a){return _0x42a501+_0x21df4a;};const _0x231e5e=_0x179fcd;if(this[_0x4a8cf0(0x103)])this[_0x4a8cf0(0xcb)][_0x4a8cf0(0x134)]+=0x1,_0x467156&&_0x231e5e[_0x4a8cf0(0xc3)](_0x467156['length'],0x0)&&(!this[_0x4a8cf0(0xf1)][_0x4a8cf0(0xd5)](_0x573153)&&(await this[_0x4a8cf0(0xd8)](_0x573153),this[_0x4a8cf0(0xf1)][_0x4a8cf0(0xfc)](_0x573153)));else try{const _0x203cf1={'fullName':_0x573153,'status':_0x467156&&_0x231e5e['KYjmS'](_0x467156[_0x4a8cf0(0xf0)],0x0)?_0x231e5e[_0x4a8cf0(0xd7)]:_0x231e5e['dGnPO']},_0x509245=await this['fileHelper'][_0x4a8cf0(0xcf)](_0x203cf1);this['state']={...this[_0x4a8cf0(0xe8)](),..._0x509245['newState'],'uniqueFailedTests':new Set(_0x509245[_0x4a8cf0(0x128)]['uniqueFailedTests']||[])};}catch(_0x1e5a28){logger[_0x4a8cf0(0x12a)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x1e5a28[_0x4a8cf0(0x11b)]+(_0x1e5a28[_0x4a8cf0(0xe0)]?_0x231e5e[_0x4a8cf0(0x118)](_0x231e5e[_0x4a8cf0(0xfe)],_0x1e5a28[_0x4a8cf0(0xe0)]):''));try{const _0x3e56c6=await this['fileHelper']['readState']();this[_0x4a8cf0(0xcb)]={...this[_0x4a8cf0(0xe8)](),..._0x231e5e[_0x4a8cf0(0xc4)](_0x3e56c6,{}),'uniqueFailedTests':new Set(_0x3e56c6?_0x3e56c6[_0x4a8cf0(0x13c)]||[]:[])},logger[_0x4a8cf0(0x146)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0xc4b6e5){logger['error']('['+TAG+_0x4a8cf0(0x143)+_0xc4b6e5[_0x4a8cf0(0x11b)]+(_0xc4b6e5['stack']?_0x231e5e[_0x4a8cf0(0x135)](_0x231e5e[_0x4a8cf0(0xfe)],_0xc4b6e5[_0x4a8cf0(0xe0)]):'')),this[_0x4a8cf0(0xcb)]=this[_0x4a8cf0(0xe8)]();}}}async[a119_0x546bf6(0xd8)](_0xccef5a){const _0x3199c4=a119_0x546bf6,_0xb050e5={};_0xb050e5[_0x3199c4(0xed)]=function(_0x352ec9,_0x3c76fc){return _0x352ec9+_0x3c76fc;},_0xb050e5[_0x3199c4(0x119)]='\x0aStack:\x20';const _0x5013ac=_0xb050e5;if(!this[_0x3199c4(0x103)]||!_0xccef5a)return;try{logger[_0x3199c4(0x146)]('['+TAG+_0x3199c4(0xea)+_0xccef5a);const _0x84ef9b={};_0x84ef9b[_0x3199c4(0xd0)]=this[_0x3199c4(0xd0)],_0x84ef9b['projectName']=this[_0x3199c4(0xef)],_0x84ef9b[_0x3199c4(0x113)]=[_0xccef5a],_0x84ef9b[_0x3199c4(0xd9)]=process[_0x3199c4(0x11f)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x3199c4(0x138)](_0x84ef9b);}catch(_0x1d4200){logger['error']('['+TAG+_0x3199c4(0xe2)+_0xccef5a+_0x3199c4(0x10f)+_0x1d4200[_0x3199c4(0x11b)]+(_0x1d4200['stack']?_0x5013ac[_0x3199c4(0xed)](_0x5013ac['YlkhH'],_0x1d4200[_0x3199c4(0xe0)]):''));}}async[a119_0x546bf6(0x10d)](){const _0x28fe6a=a119_0x546bf6,_0x4899dd={};_0x4899dd[_0x28fe6a(0x10e)]=function(_0x50fcf0,_0x29adbf){return _0x50fcf0===_0x29adbf;},_0x4899dd[_0x28fe6a(0x116)]=_0x28fe6a(0x120),_0x4899dd[_0x28fe6a(0x114)]=function(_0x1587c2,_0x5b5b41){return _0x1587c2+_0x5b5b41;},_0x4899dd[_0x28fe6a(0x102)]=_0x28fe6a(0x10a),_0x4899dd[_0x28fe6a(0xec)]=function(_0x39fa6e,_0x50e26d){return _0x39fa6e!==_0x50e26d;};const _0x2aabf0=_0x4899dd;if(!this[_0x28fe6a(0x103)])return 0x0;try{const _0x385029={};_0x385029['buildName']=this[_0x28fe6a(0xd0)],_0x385029[_0x28fe6a(0xef)]=this[_0x28fe6a(0xef)],_0x385029[_0x28fe6a(0xd9)]=process['env'][_0x28fe6a(0x10c)];const _0x133a00=await RequestUtils[_0x28fe6a(0xf8)](_0x385029);return logger['debug']('['+TAG+_0x28fe6a(0x12c)+_0x133a00),_0x2aabf0[_0x28fe6a(0x10e)](typeof _0x133a00,_0x2aabf0[_0x28fe6a(0x116)])?_0x133a00:0x0;}catch(_0x2f50d9){return logger['error']('['+TAG+_0x28fe6a(0xee)+_0x2f50d9[_0x28fe6a(0x11b)]+(_0x2f50d9[_0x28fe6a(0xe0)]?_0x2aabf0['ChfdU'](_0x2aabf0[_0x28fe6a(0x102)],_0x2f50d9[_0x28fe6a(0xe0)]):'')),_0x2aabf0[_0x28fe6a(0xec)](this[_0x28fe6a(0xcb)][_0x28fe6a(0x10b)],undefined)?this[_0x28fe6a(0xcb)][_0x28fe6a(0x10b)]:0x0;}}async['_pollFailedTests'](){const _0xd2c256=a119_0x546bf6,_0x4f056e={};_0x4f056e[_0xd2c256(0x136)]=function(_0x29e76c,_0x529dde){return _0x29e76c!==_0x529dde;},_0x4f056e[_0xd2c256(0x142)]=function(_0x5db9ec,_0x1e4847){return _0x5db9ec+_0x1e4847;},_0x4f056e[_0xd2c256(0xcd)]=_0xd2c256(0x10a);const _0x15fbd2=_0x4f056e;if(!this[_0xd2c256(0x103)])return;try{const _0x27cad3=await this[_0xd2c256(0x10d)]();_0x15fbd2[_0xd2c256(0x136)](_0x27cad3,this[_0xd2c256(0xcb)][_0xd2c256(0x10b)])&&(logger[_0xd2c256(0x146)]('['+TAG+_0xd2c256(0xdf)+_0x27cad3+_0xd2c256(0xc5)+this[_0xd2c256(0xcb)][_0xd2c256(0x10b)]+')'),this['state'][_0xd2c256(0x10b)]=_0x27cad3);}catch(_0x3614ca){logger['error']('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x3614ca[_0xd2c256(0x11b)]+(_0x3614ca[_0xd2c256(0xe0)]?_0x15fbd2[_0xd2c256(0x142)](_0x15fbd2[_0xd2c256(0xcd)],_0x3614ca[_0xd2c256(0xe0)]):''));}}async[a119_0x546bf6(0x144)](){const _0x3ecb65=a119_0x546bf6,_0x50566d={'GjoZf':function(_0x1887f,_0x4ee824,_0x5af58c){return _0x1887f(_0x4ee824,_0x5af58c);}};this['pollingInterval']&&this[_0x3ecb65(0xc6)](),this[_0x3ecb65(0x103)]&&(await this['_pollFailedTests'](),this[_0x3ecb65(0x145)]=_0x50566d[_0x3ecb65(0x127)](setInterval,async()=>{const _0x483c44=_0x3ecb65;await this[_0x483c44(0xda)]();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x3ecb65(0xd4)+POLLING_INTERVAL+'ms.'));}[a119_0x546bf6(0xc6)](){const _0x4032a7=a119_0x546bf6,_0x45ae91={'JJjXN':function(_0x409331,_0x3d5435){return _0x409331(_0x3d5435);}};this['pollingInterval']&&(_0x45ae91['JJjXN'](clearInterval,this['pollingInterval']),this[_0x4032a7(0x145)]=null,logger['debug']('['+TAG+_0x4032a7(0xf5)));}async[a119_0x546bf6(0x124)](){const _0x3813e2=a119_0x546bf6,_0x360a66={};_0x360a66[_0x3813e2(0xfd)]=function(_0x5bb64e,_0x50cd97){return _0x5bb64e===_0x50cd97;},_0x360a66[_0x3813e2(0x133)]=function(_0xb07b47,_0xb0792){return _0xb07b47<=_0xb0792;},_0x360a66[_0x3813e2(0x12f)]=function(_0x4002ae,_0x4acef3){return _0x4002ae+_0x4acef3;},_0x360a66[_0x3813e2(0x129)]='\x0aStack:\x20',_0x360a66[_0x3813e2(0x11c)]=function(_0x898738,_0x3a2346){return _0x898738!==_0x3a2346;},_0x360a66[_0x3813e2(0x11d)]=function(_0x5c4de5,_0x2e4eb7){return _0x5c4de5>=_0x2e4eb7;},_0x360a66[_0x3813e2(0x148)]=function(_0x924014,_0x23c813){return _0x924014+_0x23c813;},_0x360a66[_0x3813e2(0xe9)]=function(_0x3ff9c2,_0x46ac03){return _0x3ff9c2+_0x46ac03;},_0x360a66[_0x3813e2(0x130)]=function(_0x28bb5b,_0x582f64){return _0x28bb5b+_0x582f64;};const _0x48ffb7=_0x360a66,{failureThresholdCount:_0x52967f}=this[_0x3813e2(0xd6)];if(_0x48ffb7[_0x3813e2(0xfd)](_0x52967f,null)||_0x48ffb7[_0x3813e2(0xfd)](_0x52967f,undefined)||_0x48ffb7['ZAaRs'](_0x52967f,0x0))return logger[_0x3813e2(0x146)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x3813e2(0x103)]){try{if(fs['existsSync'](this[_0x3813e2(0x115)]))return logger[_0x3813e2(0x146)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x3813e2(0xcb)][_0x3813e2(0x117)]&&(this['state'][_0x3813e2(0x117)]=!![]),this[_0x3813e2(0xc6)](),!![];}catch(_0x253600){logger['error']('['+TAG+_0x3813e2(0x131)+_0x253600[_0x3813e2(0x11b)]+(_0x253600['stack']?_0x48ffb7[_0x3813e2(0x12f)](_0x48ffb7[_0x3813e2(0x129)],_0x253600[_0x3813e2(0xe0)]):''));}const _0x1abbc4=_0x48ffb7[_0x3813e2(0x11c)](this['state'][_0x3813e2(0x10b)],undefined)?this[_0x3813e2(0xcb)][_0x3813e2(0x10b)]:0x0;if(_0x48ffb7['lVZeJ'](_0x1abbc4,_0x52967f)){logger[_0x3813e2(0x140)]('['+TAG+_0x3813e2(0xc9)+_0x1abbc4+_0x3813e2(0x147)+_0x52967f+'.');try{fs['writeFileSync'](this[_0x3813e2(0x115)],new Date()['toISOString']()),logger['debug']('['+TAG+_0x3813e2(0x13a)+this[_0x3813e2(0x115)]),this[_0x3813e2(0xcb)][_0x3813e2(0x117)]=!![];}catch(_0x5c078b){logger[_0x3813e2(0x12a)]('['+TAG+_0x3813e2(0xfa)+_0x5c078b[_0x3813e2(0x11b)]+(_0x5c078b[_0x3813e2(0xe0)]?_0x48ffb7[_0x3813e2(0x148)](_0x48ffb7[_0x3813e2(0x129)],_0x5c078b[_0x3813e2(0xe0)]):''));}return this['stopPolling'](),!![];}}else{let _0x56679a;try{_0x56679a=await this[_0x3813e2(0xf7)][_0x3813e2(0x141)]();if(!_0x56679a)return logger['warn']('['+TAG+_0x3813e2(0xdc)),![];}catch(_0x29fbe2){return logger[_0x3813e2(0x12a)]('['+TAG+_0x3813e2(0xff)+_0x29fbe2[_0x3813e2(0x11b)]+(_0x29fbe2[_0x3813e2(0xe0)]?_0x48ffb7[_0x3813e2(0xe9)](_0x48ffb7['QnpKz'],_0x29fbe2[_0x3813e2(0xe0)]):'')),![];}this['state']={...this[_0x3813e2(0xe8)](),..._0x56679a,'uniqueFailedTests':new Set(_0x56679a[_0x3813e2(0x13c)]||[])};if(this[_0x3813e2(0xcb)][_0x3813e2(0x117)])return logger[_0x3813e2(0x146)]('['+TAG+_0x3813e2(0xe3)),!![];const _0x923d4e=this[_0x3813e2(0xcb)][_0x3813e2(0x13c)],_0x35353a=_0x923d4e[_0x3813e2(0x13e)];if(_0x48ffb7[_0x3813e2(0x11d)](_0x35353a,_0x52967f)){try{logger[_0x3813e2(0x140)]('['+TAG+_0x3813e2(0x132)+_0x35353a+',\x20threshold:\x20'+_0x52967f+'.'),this[_0x3813e2(0xcb)][_0x3813e2(0x117)]=!![];}catch(_0x57d6fa){logger[_0x3813e2(0x12a)]('['+TAG+_0x3813e2(0x104)+_0x57d6fa[_0x3813e2(0x11b)]+(_0x57d6fa[_0x3813e2(0xe0)]?_0x48ffb7[_0x3813e2(0x130)](_0x48ffb7[_0x3813e2(0x129)],_0x57d6fa[_0x3813e2(0xe0)]):''));}return!![];}}return![];}async[a119_0x546bf6(0x112)](){const _0x237a24=a119_0x546bf6,_0xe6377={};_0xe6377[_0x237a24(0xf2)]=function(_0x1072dd,_0x4cb155){return _0x1072dd+_0x4cb155;},_0xe6377[_0x237a24(0xd1)]='\x0aStack:\x20';const _0x1e9d3c=_0xe6377;this['stopPolling']();if(this[_0x237a24(0x103)])logger[_0x237a24(0x146)]('['+TAG+_0x237a24(0xf4));else try{const _0x274d49={...this[_0x237a24(0xcb)],'uniqueFailedTests':Array[_0x237a24(0x12e)](this[_0x237a24(0xcb)][_0x237a24(0x13c)]||new Set())};await this[_0x237a24(0xf7)]['writeState'](_0x274d49),logger[_0x237a24(0x146)]('['+TAG+'_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.');}catch(_0xe90ea){logger[_0x237a24(0x12a)]('['+TAG+_0x237a24(0xd2)+_0xe90ea['message']+(_0xe90ea[_0x237a24(0xe0)]?_0x1e9d3c[_0x237a24(0xf2)](_0x1e9d3c['thtBZ'],_0xe90ea['stack']):''));}}}function a119_0x1626(){const _0x510b11=[',\x20threshold:\x20','TXOnZ','lockFilePath','KYjmS','CaCyg','\x20(was\x20','stopPolling','_initializeStateFromFile','25QEPNdy','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','34862onWeNP','state','KLwPh','PJHcP','existsSync','recordTestResult','buildName','thtBZ','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20Polling\x20started\x20with\x20interval:\x20','has','failFastConfig','OSScy','_sendFailedTestsToAPI','buildRunIdentifier','_pollFailedTests','723HYcedX','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','WdYXh','dGnPO','_CI]\x20API\x20failed\x20count\x20updated:\x20','stack','failFastState.lock','_CI]\x20Error\x20sending\x20failed\x20test\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','1301370mFVgpv','winstonLogger','VnETi','MJeqk','_getDefaultState','mQKQo','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','qbigr','BLRYJ','JmmOZ','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','projectName','length','reportedFailuresToAPI','LMoQN','ANcIO','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.',']\x20Polling\x20stopped.','3412233SvLXOX','fileHelper','getFailedTestsCount','10FUwKZd','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','11pVIDiC','add','EtACU','ioKUN','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','failed',',\x20CI\x20Mode:\x20','YWhYD','isCIMode','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','1624164geLhCd','passed','join','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','\x0aStack:\x20','lastAPIFailedCount','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_fetchAPIFailedCount','YJodu','\x20to\x20API:\x20','544008NsyvaO','stateFilePath','cleanup','failedTests','ChfdU','failFastActiveMarkerPath','xjUOj','failFastActive','Ckkxk','YlkhH','workingDir','message','XhRMC','lVZeJ','path','env','number','onTestDone','./fileHelper','40wXQNmS','shouldFailFast','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','PZoQB','GjoZf','newState','QnpKz','error','BROWSERSTACK_NODE_INDEX','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','from','taoYs','OMBrN','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','ZAaRs','totalTests','OpKlo','ANxlw',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','putFailedTests','failureThresholdCount','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','627620guOJrG','uniqueFailedTests','4940OADogC','size','nyARK','info','readState','rBqsW','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','startPolling','pollingInterval','debug'];a119_0x1626=function(){return _0x510b11;};return a119_0x1626();}module['exports']=FailFastManager;
1
+ function a119_0x4641(){const _0x2e0995=['_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','xVQCM','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','failureThresholdCount','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','1480JxMBNd',',\x20threshold:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','info','recordTestResult','message','startPolling','6LPHEBk','failFastState.json','10478611POnjsG','_fetchAPIFailedCount','\x20to\x20API:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20Polling\x20started\x20with\x20interval:\x20','add','\x0aStack:\x20','_CI]\x20API\x20failed\x20count\x20updated:\x20','stack','AEdVd','newState','totalTests','lastAPIFailedCount','4315erOUHq','wBWJB','putFailedTests','failFast.active','projectName',',\x20CI\x20Mode:\x20','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','_sendFailedTestsToAPI','length','passed','shouldFailFast','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','./fileHelper','catch','stateFilePath','WXOuv','5286RGqOpR','11ilzlff','readState','isCIMode','ZbYwL','uniqueFailedTests','115800MJMgVF','aVXpy','failFastActiveMarkerPath','oacKt','existsSync','939321jcfSON','MplAU','uazeu','tZBzT','env','MoQuc','writeState','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','warn','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','getFailedTestsCount','TJUcJ','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','pollingInterval','fileHelper','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','350ggfnaw','state','10aObono','WVvnM','buildName','workingDir','writeFileSync','LEAql','336412eiosTV','lAFot','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','toISOString','has','_initializeStateFromFile','from','size','xjhMH','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','8666gCsxPk','CuUuR','ESGQB','\x20(was\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','HhnJY','AxsSM','koSIw','_pollFailedTests','_getDefaultState','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','AfBjV','TIuFR',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','ms.','112dbllbb','jGdZm','../logger','spxNq','dDuiE','BuLuD',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','debug','yYORm','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','dBwyb','ExvSZ','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','failFastConfig','cleanup','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Error\x20during\x20polling\x20logic:\x20','failFastActive','reportedFailuresToAPI',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','failedTests','FailFastManager','_CI]\x20Error\x20sending\x20failed\x20test\x20','_Local]\x20State\x20initialized\x20from\x20file.','kTrTS','./requestUtils','cGpXz','stopPolling','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','MiAzk','error','lockFilePath','GInVi'];a119_0x4641=function(){return _0x2e0995;};return a119_0x4641();}function a119_0x16ec(_0x103c62,_0x2f65c6){const _0x464176=a119_0x4641();return a119_0x16ec=function(_0x16ec37,_0xd18021){_0x16ec37=_0x16ec37-0x193;let _0x5d26c1=_0x464176[_0x16ec37];return _0x5d26c1;},a119_0x16ec(_0x103c62,_0x2f65c6);}const a119_0x14ab8c=a119_0x16ec;(function(_0x10295b,_0x2cae3c){const _0x43b9b5=a119_0x16ec,_0x40504f=_0x10295b();while(!![]){try{const _0x8bb7b9=-parseInt(_0x43b9b5(0x1f2))/0x1*(parseInt(_0x43b9b5(0x1b4))/0x2)+parseInt(_0x43b9b5(0x1e3))/0x3*(-parseInt(_0x43b9b5(0x19b))/0x4)+parseInt(_0x43b9b5(0x193))/0x5*(parseInt(_0x43b9b5(0x202))/0x6)+parseInt(_0x43b9b5(0x1a5))/0x7*(-parseInt(_0x43b9b5(0x1dc))/0x8)+parseInt(_0x43b9b5(0x20d))/0x9*(-parseInt(_0x43b9b5(0x195))/0xa)+-parseInt(_0x43b9b5(0x203))/0xb*(-parseInt(_0x43b9b5(0x208))/0xc)+parseInt(_0x43b9b5(0x1e5))/0xd;if(_0x8bb7b9===_0x2cae3c)break;else _0x40504f['push'](_0x40504f['shift']());}catch(_0x5d0965){_0x40504f['push'](_0x40504f['shift']());}}}(a119_0x4641,0x20bea));const fs=require('fs'),path=require('path'),FileHelper=require(a119_0x14ab8c(0x1fe)),RequestUtils=require(a119_0x14ab8c(0x1cf)),logger=require(a119_0x14ab8c(0x1b6))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a119_0x14ab8c(0x1cb);class FailFastManager{constructor(_0x52744e,_0xa91f14,_0x13bd96){const _0x775f77=a119_0x14ab8c,_0x3f8635={};_0x3f8635[_0x775f77(0x1b7)]=function(_0x44855e,_0x2a709d){return _0x44855e+_0x2a709d;},_0x3f8635['Uruad']=_0x775f77(0x1eb),_0x3f8635[_0x775f77(0x1ce)]=function(_0x35a074,_0x4536ec){return _0x35a074||_0x4536ec;},_0x3f8635[_0x775f77(0x1b5)]=_0x775f77(0x1e4),_0x3f8635['AEdVd']='failFastState.lock',_0x3f8635['xVQCM']=_0x775f77(0x1f5);const _0x509bd9=_0x3f8635;this['failFastConfig']=_0x509bd9['kTrTS'](_0x52744e,{}),this['buildName']=_0xa91f14,this[_0x775f77(0x1f6)]=_0x13bd96,this[_0x775f77(0x205)]=!!(process[_0x775f77(0x211)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x775f77(0x211)]['BROWSERSTACK_NODE_INDEX']&&process['env'][_0x775f77(0x1e8)]);const _0x42b592=this[_0x775f77(0x1c1)][_0x775f77(0x198)];this[_0x775f77(0x200)]=path['join'](_0x42b592,_0x509bd9[_0x775f77(0x1b5)]),this[_0x775f77(0x1d5)]=path['join'](_0x42b592,_0x509bd9[_0x775f77(0x1ee)]),this[_0x775f77(0x20a)]=path['join'](_0x42b592,_0x509bd9[_0x775f77(0x1d8)]),this[_0x775f77(0x21c)]=new FileHelper(this['failFastConfig'],this[_0x775f77(0x200)],this[_0x775f77(0x1d5)],this[_0x775f77(0x1ae)]()),this[_0x775f77(0x194)]=this[_0x775f77(0x1ae)](),this['pollingInterval']=null,this[_0x775f77(0x205)]&&(this[_0x775f77(0x1c7)]=new Set()),this[_0x775f77(0x1a0)]()[_0x775f77(0x1ff)](_0x10b416=>{const _0x484ec1=_0x775f77;logger[_0x484ec1(0x1d4)]('['+TAG+_0x484ec1(0x1c8)+_0x10b416[_0x484ec1(0x1e1)]+(_0x10b416['stack']?_0x509bd9[_0x484ec1(0x1b7)](_0x509bd9['Uruad'],_0x10b416[_0x484ec1(0x1ed)]):'')),this[_0x484ec1(0x194)]=this[_0x484ec1(0x1ae)]();}),this[_0x775f77(0x205)]&&this[_0x775f77(0x1e2)](),logger[_0x775f77(0x1bb)]('['+TAG+_0x775f77(0x1b2)+this['failFastConfig'][_0x775f77(0x1da)]+_0x775f77(0x1f7)+this['isCIMode']);}['_getDefaultState'](){const _0x36fffb={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x36fffb;}async[a119_0x14ab8c(0x1a0)](){const _0x8934e0=a119_0x14ab8c,_0x42c48f={};_0x42c48f['nOssO']=function(_0x305373,_0x4944d7){return _0x305373+_0x4944d7;},_0x42c48f[_0x8934e0(0x206)]=_0x8934e0(0x1eb);const _0x20e357=_0x42c48f;if(this[_0x8934e0(0x205)])try{fs['existsSync'](this[_0x8934e0(0x20a)])&&(this[_0x8934e0(0x194)]['failFastActive']=!![],logger[_0x8934e0(0x1bb)]('['+TAG+_0x8934e0(0x1db)));}catch(_0x46e917){logger['error']('['+TAG+_0x8934e0(0x1c9)+_0x46e917[_0x8934e0(0x1e1)]+(_0x46e917[_0x8934e0(0x1ed)]?_0x20e357['nOssO'](_0x20e357[_0x8934e0(0x206)],_0x46e917[_0x8934e0(0x1ed)]):''));}else try{const _0x2a4f3a=await this[_0x8934e0(0x21c)][_0x8934e0(0x204)]();if(_0x2a4f3a)this[_0x8934e0(0x194)]={...this[_0x8934e0(0x1ae)](),..._0x2a4f3a,'uniqueFailedTests':new Set(_0x2a4f3a[_0x8934e0(0x207)]||[])},logger[_0x8934e0(0x1bb)]('['+TAG+_0x8934e0(0x1cd));else{logger['debug']('['+TAG+_0x8934e0(0x1a4));const _0x24dae5=this['_getDefaultState'](),_0xcd7738={..._0x24dae5,'uniqueFailedTests':Array[_0x8934e0(0x1a1)](_0x24dae5[_0x8934e0(0x207)])};await this[_0x8934e0(0x21c)][_0x8934e0(0x213)](_0xcd7738),this[_0x8934e0(0x194)]=_0x24dae5;}}catch(_0x464a0e){logger[_0x8934e0(0x1bb)]('['+TAG+_0x8934e0(0x1c4)+_0x464a0e[_0x8934e0(0x1e1)]+(_0x464a0e[_0x8934e0(0x1ed)]?_0x20e357['nOssO'](_0x20e357[_0x8934e0(0x206)],_0x464a0e['stack']):'')),this[_0x8934e0(0x194)]=this['_getDefaultState']();}}async['onTestDone'](_0x54ccd6,_0x2e4ed4){const _0x5ae839=a119_0x14ab8c,_0x15642a={};_0x15642a[_0x5ae839(0x210)]=function(_0x376255,_0x231d5d){return _0x376255>_0x231d5d;},_0x15642a[_0x5ae839(0x20e)]=function(_0x186b23,_0x2e737d){return _0x186b23>_0x2e737d;},_0x15642a['AxsSM']='failed',_0x15642a[_0x5ae839(0x1d0)]=_0x5ae839(0x1fb),_0x15642a[_0x5ae839(0x1b1)]=function(_0x3ab4e2,_0x28b8b3){return _0x3ab4e2+_0x28b8b3;},_0x15642a[_0x5ae839(0x1d3)]=_0x5ae839(0x1eb),_0x15642a[_0x5ae839(0x1d6)]=function(_0x268445,_0x23daca){return _0x268445||_0x23daca;},_0x15642a[_0x5ae839(0x1bc)]=function(_0x8446be,_0x371696){return _0x8446be+_0x371696;};const _0x1329d9=_0x15642a;if(this[_0x5ae839(0x205)])this['state'][_0x5ae839(0x1f0)]+=0x1,_0x2e4ed4&&_0x1329d9[_0x5ae839(0x210)](_0x2e4ed4[_0x5ae839(0x1fa)],0x0)&&(!this[_0x5ae839(0x1c7)][_0x5ae839(0x19f)](_0x54ccd6)&&(await this[_0x5ae839(0x1f9)](_0x54ccd6),this[_0x5ae839(0x1c7)][_0x5ae839(0x1ea)](_0x54ccd6)));else try{const _0x1f0df1={'fullName':_0x54ccd6,'status':_0x2e4ed4&&_0x1329d9[_0x5ae839(0x20e)](_0x2e4ed4[_0x5ae839(0x1fa)],0x0)?_0x1329d9[_0x5ae839(0x1ab)]:_0x1329d9[_0x5ae839(0x1d0)]},_0xab9981=await this[_0x5ae839(0x21c)][_0x5ae839(0x1e0)](_0x1f0df1);this['state']={...this[_0x5ae839(0x1ae)](),..._0xab9981[_0x5ae839(0x1ef)],'uniqueFailedTests':new Set(_0xab9981[_0x5ae839(0x1ef)][_0x5ae839(0x207)]||[])};}catch(_0x500bdd){logger[_0x5ae839(0x1d4)]('['+TAG+_0x5ae839(0x21a)+_0x500bdd['message']+(_0x500bdd[_0x5ae839(0x1ed)]?_0x1329d9[_0x5ae839(0x1b1)](_0x1329d9[_0x5ae839(0x1d3)],_0x500bdd[_0x5ae839(0x1ed)]):''));try{const _0x512d0d=await this['fileHelper'][_0x5ae839(0x204)]();this[_0x5ae839(0x194)]={...this['_getDefaultState'](),..._0x1329d9['GInVi'](_0x512d0d,{}),'uniqueFailedTests':new Set(_0x512d0d?_0x512d0d[_0x5ae839(0x207)]||[]:[])},logger['debug']('['+TAG+_0x5ae839(0x1af));}catch(_0x593613){logger['error']('['+TAG+_0x5ae839(0x1fd)+_0x593613[_0x5ae839(0x1e1)]+(_0x593613[_0x5ae839(0x1ed)]?_0x1329d9[_0x5ae839(0x1bc)](_0x1329d9['MiAzk'],_0x593613[_0x5ae839(0x1ed)]):'')),this[_0x5ae839(0x194)]=this[_0x5ae839(0x1ae)]();}}}async[a119_0x14ab8c(0x1f9)](_0x33c565){const _0x4e3c16=a119_0x14ab8c,_0x41ad3a={};_0x41ad3a[_0x4e3c16(0x1a7)]=function(_0x390a79,_0x4a0941){return _0x390a79+_0x4a0941;},_0x41ad3a['cAMFJ']=_0x4e3c16(0x1eb);const _0x5e9d98=_0x41ad3a;if(!this[_0x4e3c16(0x205)]||!_0x33c565)return;try{logger[_0x4e3c16(0x1bb)]('['+TAG+_0x4e3c16(0x216)+_0x33c565);const _0x107b77={};_0x107b77[_0x4e3c16(0x197)]=this[_0x4e3c16(0x197)],_0x107b77[_0x4e3c16(0x1f6)]=this[_0x4e3c16(0x1f6)],_0x107b77[_0x4e3c16(0x1ca)]=[_0x33c565],_0x107b77['buildRunIdentifier']=process[_0x4e3c16(0x211)][_0x4e3c16(0x1de)],await RequestUtils[_0x4e3c16(0x1f4)](_0x107b77);}catch(_0x1ad4aa){logger[_0x4e3c16(0x1d4)]('['+TAG+_0x4e3c16(0x1cc)+_0x33c565+_0x4e3c16(0x1e7)+_0x1ad4aa['message']+(_0x1ad4aa[_0x4e3c16(0x1ed)]?_0x5e9d98['ESGQB'](_0x5e9d98['cAMFJ'],_0x1ad4aa[_0x4e3c16(0x1ed)]):''));}}async['_fetchAPIFailedCount'](){const _0x17ed06=a119_0x14ab8c,_0x5f0f07={};_0x5f0f07[_0x17ed06(0x19c)]=function(_0x1db26d,_0x1d9ac6){return _0x1db26d===_0x1d9ac6;},_0x5f0f07['BuLuD']='number',_0x5f0f07[_0x17ed06(0x1b8)]=function(_0x3f8f56,_0xd17c03){return _0x3f8f56+_0xd17c03;},_0x5f0f07[_0x17ed06(0x20f)]=_0x17ed06(0x1eb),_0x5f0f07[_0x17ed06(0x1be)]=function(_0x3228be,_0x3046bc){return _0x3228be!==_0x3046bc;};const _0x1a1793=_0x5f0f07;if(!this[_0x17ed06(0x205)])return 0x0;try{const _0x25dc3b={};_0x25dc3b[_0x17ed06(0x197)]=this[_0x17ed06(0x197)],_0x25dc3b['projectName']=this[_0x17ed06(0x1f6)],_0x25dc3b['buildRunIdentifier']=process[_0x17ed06(0x211)][_0x17ed06(0x1de)];const _0x417fc7=await RequestUtils[_0x17ed06(0x217)](_0x25dc3b);return logger[_0x17ed06(0x1bb)]('['+TAG+_0x17ed06(0x219)+_0x417fc7),_0x1a1793[_0x17ed06(0x19c)](typeof _0x417fc7,_0x1a1793[_0x17ed06(0x1b9)])?_0x417fc7:0x0;}catch(_0x4ce5bb){return logger[_0x17ed06(0x1d4)]('['+TAG+_0x17ed06(0x1a9)+_0x4ce5bb[_0x17ed06(0x1e1)]+(_0x4ce5bb[_0x17ed06(0x1ed)]?_0x1a1793[_0x17ed06(0x1b8)](_0x1a1793[_0x17ed06(0x20f)],_0x4ce5bb[_0x17ed06(0x1ed)]):'')),_0x1a1793[_0x17ed06(0x1be)](this[_0x17ed06(0x194)]['lastAPIFailedCount'],undefined)?this[_0x17ed06(0x194)][_0x17ed06(0x1f1)]:0x0;}}async[a119_0x14ab8c(0x1ad)](){const _0x3e4a5c=a119_0x14ab8c,_0x27e3be={};_0x27e3be[_0x3e4a5c(0x212)]=function(_0x283d45,_0x51de24){return _0x283d45!==_0x51de24;},_0x27e3be[_0x3e4a5c(0x209)]=function(_0x30a5e2,_0x17571d){return _0x30a5e2+_0x17571d;},_0x27e3be[_0x3e4a5c(0x1ac)]=_0x3e4a5c(0x1eb);const _0x8b5e76=_0x27e3be;if(!this[_0x3e4a5c(0x205)])return;try{const _0x1a8e86=await this[_0x3e4a5c(0x1e6)]();_0x8b5e76[_0x3e4a5c(0x212)](_0x1a8e86,this[_0x3e4a5c(0x194)][_0x3e4a5c(0x1f1)])&&(logger[_0x3e4a5c(0x1bb)]('['+TAG+_0x3e4a5c(0x1ec)+_0x1a8e86+_0x3e4a5c(0x1a8)+this[_0x3e4a5c(0x194)]['lastAPIFailedCount']+')'),this['state'][_0x3e4a5c(0x1f1)]=_0x1a8e86);}catch(_0x161997){logger[_0x3e4a5c(0x1d4)]('['+TAG+_0x3e4a5c(0x1c5)+_0x161997['message']+(_0x161997[_0x3e4a5c(0x1ed)]?_0x8b5e76[_0x3e4a5c(0x209)](_0x8b5e76[_0x3e4a5c(0x1ac)],_0x161997['stack']):''));}}async['startPolling'](){const _0x5802d1=a119_0x14ab8c,_0x37b6cf={'BLgRc':function(_0x2b8ed6,_0x3d8fca,_0x1a6491){return _0x2b8ed6(_0x3d8fca,_0x1a6491);}};this[_0x5802d1(0x21b)]&&this[_0x5802d1(0x1d1)](),this['isCIMode']&&(await this[_0x5802d1(0x1ad)](),this[_0x5802d1(0x21b)]=_0x37b6cf['BLgRc'](setInterval,async()=>{const _0x4155dd=_0x5802d1;await this[_0x4155dd(0x1ad)]();},POLLING_INTERVAL),logger[_0x5802d1(0x1bb)]('['+TAG+_0x5802d1(0x1e9)+POLLING_INTERVAL+_0x5802d1(0x1b3)));}['stopPolling'](){const _0x101848=a119_0x14ab8c,_0x38011c={'WVvnM':function(_0x2f32b6,_0x33e87a){return _0x2f32b6(_0x33e87a);}};this[_0x101848(0x21b)]&&(_0x38011c[_0x101848(0x196)](clearInterval,this[_0x101848(0x21b)]),this[_0x101848(0x21b)]=null,logger[_0x101848(0x1bb)]('['+TAG+']\x20Polling\x20stopped.'));}async[a119_0x14ab8c(0x1fc)](){const _0x46e383=a119_0x14ab8c,_0x455029={};_0x455029[_0x46e383(0x218)]=function(_0x29dfb3,_0x4226d9){return _0x29dfb3===_0x4226d9;},_0x455029[_0x46e383(0x20b)]=function(_0x1db636,_0x1f454c){return _0x1db636<=_0x1f454c;},_0x455029[_0x46e383(0x1a3)]=function(_0x30c288,_0x119dcb){return _0x30c288+_0x119dcb;},_0x455029[_0x46e383(0x19a)]=_0x46e383(0x1eb),_0x455029[_0x46e383(0x1a6)]=function(_0x53a5b0,_0xd765ce){return _0x53a5b0!==_0xd765ce;},_0x455029[_0x46e383(0x1f3)]=function(_0x3d286c,_0x440fc4){return _0x3d286c>=_0x440fc4;},_0x455029[_0x46e383(0x1bf)]=function(_0x21ea44,_0x528411){return _0x21ea44+_0x528411;},_0x455029['AfBjV']=function(_0x341059,_0x57e04b){return _0x341059+_0x57e04b;};const _0x391e15=_0x455029,{failureThresholdCount:_0x41ecfe}=this['failFastConfig'];if(_0x391e15[_0x46e383(0x218)](_0x41ecfe,null)||_0x391e15['TJUcJ'](_0x41ecfe,undefined)||_0x391e15[_0x46e383(0x20b)](_0x41ecfe,0x0))return logger[_0x46e383(0x1bb)]('['+TAG+_0x46e383(0x1ba)),![];if(this[_0x46e383(0x205)]){try{if(fs[_0x46e383(0x20c)](this[_0x46e383(0x20a)]))return logger['debug']('['+TAG+_0x46e383(0x1c0)),!this['state'][_0x46e383(0x1c6)]&&(this[_0x46e383(0x194)][_0x46e383(0x1c6)]=!![]),this[_0x46e383(0x1d1)](),!![];}catch(_0x1e1812){logger[_0x46e383(0x1d4)]('['+TAG+_0x46e383(0x1c9)+_0x1e1812[_0x46e383(0x1e1)]+(_0x1e1812[_0x46e383(0x1ed)]?_0x391e15['xjhMH'](_0x391e15[_0x46e383(0x19a)],_0x1e1812[_0x46e383(0x1ed)]):''));}const _0x5173d6=_0x391e15[_0x46e383(0x1a6)](this['state']['lastAPIFailedCount'],undefined)?this[_0x46e383(0x194)][_0x46e383(0x1f1)]:0x0;if(_0x391e15[_0x46e383(0x1f3)](_0x5173d6,_0x41ecfe)){logger[_0x46e383(0x1df)]('['+TAG+_0x46e383(0x1c3)+_0x5173d6+_0x46e383(0x1dd)+_0x41ecfe+'.');try{fs[_0x46e383(0x199)](this[_0x46e383(0x20a)],new Date()[_0x46e383(0x19e)]()),logger['debug']('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x46e383(0x20a)]),this[_0x46e383(0x194)]['failFastActive']=!![];}catch(_0x173efc){logger[_0x46e383(0x1d4)]('['+TAG+_0x46e383(0x214)+_0x173efc[_0x46e383(0x1e1)]+(_0x173efc[_0x46e383(0x1ed)]?_0x391e15[_0x46e383(0x1bf)](_0x391e15[_0x46e383(0x19a)],_0x173efc[_0x46e383(0x1ed)]):''));}return this[_0x46e383(0x1d1)](),!![];}}else{let _0x3cd76e;try{_0x3cd76e=await this[_0x46e383(0x21c)][_0x46e383(0x204)]();if(!_0x3cd76e)return logger[_0x46e383(0x215)]('['+TAG+_0x46e383(0x21d)),![];}catch(_0x11afe2){return logger['error']('['+TAG+_0x46e383(0x1f8)+_0x11afe2[_0x46e383(0x1e1)]+(_0x11afe2[_0x46e383(0x1ed)]?_0x391e15['xjhMH'](_0x391e15[_0x46e383(0x19a)],_0x11afe2['stack']):'')),![];}this[_0x46e383(0x194)]={...this[_0x46e383(0x1ae)](),..._0x3cd76e,'uniqueFailedTests':new Set(_0x3cd76e[_0x46e383(0x207)]||[])};if(this[_0x46e383(0x194)][_0x46e383(0x1c6)])return logger[_0x46e383(0x1bb)]('['+TAG+_0x46e383(0x1d9)),!![];const _0x5af518=this['state'][_0x46e383(0x207)],_0x18ce5e=_0x5af518[_0x46e383(0x1a2)];if(_0x391e15[_0x46e383(0x1f3)](_0x18ce5e,_0x41ecfe)){try{logger[_0x46e383(0x1df)]('['+TAG+_0x46e383(0x19d)+_0x18ce5e+_0x46e383(0x1dd)+_0x41ecfe+'.'),this[_0x46e383(0x194)]['failFastActive']=!![];}catch(_0x20e98a){logger[_0x46e383(0x1d4)]('['+TAG+_0x46e383(0x1d7)+_0x20e98a[_0x46e383(0x1e1)]+(_0x20e98a['stack']?_0x391e15[_0x46e383(0x1b0)](_0x391e15[_0x46e383(0x19a)],_0x20e98a[_0x46e383(0x1ed)]):''));}return!![];}}return![];}async[a119_0x14ab8c(0x1c2)](){const _0x3ecbdd=a119_0x14ab8c,_0x9dab3b={};_0x9dab3b[_0x3ecbdd(0x201)]=function(_0xf6161,_0x4e6b47){return _0xf6161+_0x4e6b47;},_0x9dab3b[_0x3ecbdd(0x1aa)]=_0x3ecbdd(0x1eb);const _0x11d8c9=_0x9dab3b;this[_0x3ecbdd(0x1d1)]();if(this[_0x3ecbdd(0x205)])logger['debug']('['+TAG+_0x3ecbdd(0x1d2));else try{const _0x366678={...this[_0x3ecbdd(0x194)],'uniqueFailedTests':Array[_0x3ecbdd(0x1a1)](this['state']['uniqueFailedTests']||new Set())};await this[_0x3ecbdd(0x21c)][_0x3ecbdd(0x213)](_0x366678),logger[_0x3ecbdd(0x1bb)]('['+TAG+'_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.');}catch(_0x4dc60e){logger[_0x3ecbdd(0x1d4)]('['+TAG+_0x3ecbdd(0x1bd)+_0x4dc60e[_0x3ecbdd(0x1e1)]+(_0x4dc60e['stack']?_0x11d8c9['WXOuv'](_0x11d8c9[_0x3ecbdd(0x1aa)],_0x4dc60e['stack']):''));}}}module['exports']=FailFastManager;
@@ -1 +1 @@
1
- const a120_0x4bbc1e=a120_0x55cf;function a120_0x55cf(_0x4e4077,_0x2d2b97){const _0x1b5ab7=a120_0x1b5a();return a120_0x55cf=function(_0x55cf5c,_0x581445){_0x55cf5c=_0x55cf5c-0x68;let _0x2d46db=_0x1b5ab7[_0x55cf5c];return _0x2d46db;},a120_0x55cf(_0x4e4077,_0x2d2b97);}(function(_0x576af6,_0x629a69){const _0xacfc0b=a120_0x55cf,_0x3c79fc=_0x576af6();while(!![]){try{const _0x4c15c5=-parseInt(_0xacfc0b(0x95))/0x1+parseInt(_0xacfc0b(0x90))/0x2+parseInt(_0xacfc0b(0x9f))/0x3*(-parseInt(_0xacfc0b(0x70))/0x4)+parseInt(_0xacfc0b(0x91))/0x5*(-parseInt(_0xacfc0b(0x98))/0x6)+-parseInt(_0xacfc0b(0x9c))/0x7*(-parseInt(_0xacfc0b(0x8b))/0x8)+-parseInt(_0xacfc0b(0x6f))/0x9+parseInt(_0xacfc0b(0x97))/0xa;if(_0x4c15c5===_0x629a69)break;else _0x3c79fc['push'](_0x3c79fc['shift']());}catch(_0x45950c){_0x3c79fc['push'](_0x3c79fc['shift']());}}}(a120_0x1b5a,0x68be0));const fs=require('fs'),logger=require('../logger')[a120_0x4bbc1e(0x6d)],TAG=a120_0x4bbc1e(0x85);class FileHelper{constructor(_0x37366b,_0x236051,_0x66ad44,_0x5d5157){const _0x350099=a120_0x4bbc1e,_0x1fc968={};_0x1fc968[_0x350099(0x68)]=_0x350099(0x86),_0x1fc968[_0x350099(0xa1)]=_0x350099(0x92);const _0x562162=_0x1fc968,_0x46b5d2=_0x562162[_0x350099(0x68)][_0x350099(0x8c)]('|');let _0x4b35da=0x0;while(!![]){switch(_0x46b5d2[_0x4b35da++]){case'0':this[_0x350099(0x75)]=_0x37366b;continue;case'1':this[_0x350099(0x6b)]=_0x66ad44;continue;case'2':if(!fs[_0x350099(0x71)](this['stateFilePath']))try{fs[_0x350099(0x8d)](this[_0x350099(0x7b)],'{}',_0x562162[_0x350099(0xa1)]);}catch(_0x4a68bd){logger[_0x350099(0x81)]('['+TAG+_0x350099(0x8f)+_0x4a68bd[_0x350099(0x72)]+'\x20'+_0x4a68bd[_0x350099(0x99)]);}continue;case'3':this['stateFilePath']=_0x236051;continue;case'4':this[_0x350099(0x80)]=_0x5d5157;continue;}break;}}async[a120_0x4bbc1e(0x7f)](){const _0x41603c=a120_0x4bbc1e,_0x4c4803={};_0x4c4803[_0x41603c(0x96)]=function(_0xc49e5c,_0x19be3d){return _0xc49e5c===_0x19be3d;},_0x4c4803[_0x41603c(0x9e)]='EEXIST';const _0x45ce8d=_0x4c4803;let _0x845831;try{return _0x845831=fs[_0x41603c(0x82)](this[_0x41603c(0x6b)],'wx'),_0x845831;}catch(_0x3f11b0){if(_0x45ce8d[_0x41603c(0x96)](_0x3f11b0[_0x41603c(0x69)],_0x45ce8d[_0x41603c(0x9e)]))return null;throw _0x3f11b0;}}async[a120_0x4bbc1e(0x84)](_0xf8e4cd){const _0x839f60=a120_0x4bbc1e;if(_0xf8e4cd)try{fs[_0x839f60(0x73)](_0xf8e4cd),fs[_0x839f60(0x88)](this[_0x839f60(0x6b)]);}catch(_0x286529){logger['error']('['+TAG+_0x839f60(0x87)+_0x286529[_0x839f60(0x72)]+'\x20'+_0x286529[_0x839f60(0x99)]);}}['readState'](){const _0x3b75d6=a120_0x4bbc1e,_0xd0f363={};_0xd0f363[_0x3b75d6(0x76)]='utf8';const _0x1ff845=_0xd0f363;try{const _0x26ed4a=fs['readFileSync'](this[_0x3b75d6(0x7b)],_0x1ff845['PGWRc']);return JSON['parse'](_0x26ed4a);}catch(_0x33720f){return logger[_0x3b75d6(0x81)]('['+TAG+_0x3b75d6(0x9a)+_0x33720f[_0x3b75d6(0x72)]+'\x20'+_0x33720f[_0x3b75d6(0x99)]),null;}}async[a120_0x4bbc1e(0x7e)](_0x5b4ff6){const _0x1cec1e=a120_0x4bbc1e,_0x162147={..._0x5b4ff6,'uniqueFailedTests':Array[_0x1cec1e(0x93)](_0x5b4ff6['uniqueFailedTests'])?_0x5b4ff6[_0x1cec1e(0x8a)]:Array['from'](_0x5b4ff6['uniqueFailedTests']||[])};try{fs['writeFileSync'](this[_0x1cec1e(0x7b)],JSON['stringify'](_0x162147,null,0x2));}catch(_0xf2af55){logger['error']('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0xf2af55[_0x1cec1e(0x72)]+'\x20'+_0xf2af55[_0x1cec1e(0x99)]);throw _0xf2af55;}}async[a120_0x4bbc1e(0x74)](_0x294119,_0x42d66d){const _0x452d28=a120_0x4bbc1e,_0x5382f7={};_0x5382f7['YoPdO']=function(_0x3b7d64,_0x2080f4){return _0x3b7d64!==_0x2080f4;},_0x5382f7['rHxel']=_0x452d28(0x6c),_0x5382f7['LvFdb']=function(_0x574fe3,_0x407bf5){return _0x574fe3===_0x407bf5;},_0x5382f7[_0x452d28(0x6e)]='failed';const _0xdad735=_0x5382f7,_0x36cf1f=await this[_0x452d28(0x7f)]();if(!_0x36cf1f)return logger['warn']('['+TAG+_0x452d28(0x89)),{'newState':this[_0x452d28(0x7d)]()||this[_0x452d28(0x80)],'isNewFailure':![]};try{let _0xb0f7a3=this[_0x452d28(0x7d)]();!_0xb0f7a3&&(_0xb0f7a3=JSON[_0x452d28(0x78)](JSON['stringify'](this[_0x452d28(0x80)])));if(!_0xb0f7a3[_0x452d28(0x8a)]||_0xdad735['YoPdO'](typeof _0xb0f7a3[_0x452d28(0x8a)][Symbol[_0x452d28(0x7a)]],_0xdad735[_0x452d28(0x83)]))_0xb0f7a3[_0x452d28(0x8a)]=new Set();else Array[_0x452d28(0x93)](_0xb0f7a3[_0x452d28(0x8a)])&&(_0xb0f7a3[_0x452d28(0x8a)]=new Set(_0xb0f7a3[_0x452d28(0x8a)]));_0xb0f7a3[_0x452d28(0x9b)]=_0x42d66d;let _0x1b8b4b=![];_0xdad735['LvFdb'](_0x294119['status'],_0xdad735[_0x452d28(0x6e)])&&(_0xb0f7a3[_0x452d28(0x94)]+=0x1,!_0xb0f7a3[_0x452d28(0x8a)][_0x452d28(0x77)](_0x294119[_0x452d28(0x7c)])&&(_0xb0f7a3['uniqueFailedTests']['add'](_0x294119[_0x452d28(0x7c)]),_0x1b8b4b=!![]));await this[_0x452d28(0x7e)](_0xb0f7a3);const _0x234f02={};return _0x234f02[_0x452d28(0x9d)]=_0xb0f7a3,_0x234f02[_0x452d28(0xa0)]=_0x1b8b4b,_0x234f02;}finally{await this['releaseLock'](_0x36cf1f);}}async[a120_0x4bbc1e(0x6a)](_0xa5821){const _0x449834=a120_0x4bbc1e,_0x59132f=await this['acquireLock']();if(!_0x59132f)return logger[_0x449834(0x79)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x449834(0x7d)]()||this[_0x449834(0x80)];try{let _0x3c5b78=this[_0x449834(0x7d)]();return!_0x3c5b78&&(_0x3c5b78=JSON['parse'](JSON['stringify'](this[_0x449834(0x80)]))),_0x3c5b78[_0x449834(0x8e)]=_0xa5821,await this[_0x449834(0x7e)](_0x3c5b78),_0x3c5b78;}finally{await this[_0x449834(0x84)](_0x59132f);}}}module['exports']=FileHelper;function a120_0x1b5a(){const _0x53be68=['writeState','acquireLock','defaultState','error','openSync','rHxel','releaseLock','FailFastFileHelper','0|3|1|4|2',']\x20Error\x20releasing\x20lock:\x20','unlinkSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','uniqueFailedTests','29752oRdRQZ','split','writeFileSync','lastAPIFailedCount',']\x20Error\x20creating\x20state\x20file:\x20','241386utjXor','20zJygMv','utf8','isArray','failedTests','822689YyMeJh','bZkyy','32012490IXSQuC','1009512IVWgnG','stack',']\x20Error\x20reading\x20state\x20file:\x20','totalTests','35lPWkiU','newState','UZRld','3AkuhLI','isNewFailure','eSIia','vqdnQ','code','updateAPIFailedCount','lockFilePath','function','winstonLogger','fjYeQ','6269220CcstSV','2876944CjLbda','existsSync','message','closeSync','recordTestResult','failFastConfig','PGWRc','has','parse','warn','iterator','stateFilePath','fullName','readState'];a120_0x1b5a=function(){return _0x53be68;};return a120_0x1b5a();}
1
+ function a120_0x1faa(_0x1ce0fe,_0x1171f9){const _0x3a7d9b=a120_0x3a7d();return a120_0x1faa=function(_0x1faaae,_0x513cef){_0x1faaae=_0x1faaae-0x1da;let _0xbe7b0=_0x3a7d9b[_0x1faaae];return _0xbe7b0;},a120_0x1faa(_0x1ce0fe,_0x1171f9);}const a120_0x330a18=a120_0x1faa;(function(_0x1b0fa9,_0x44f68b){const _0x467d45=a120_0x1faa,_0x314bc8=_0x1b0fa9();while(!![]){try{const _0x5f087e=parseInt(_0x467d45(0x1ee))/0x1+parseInt(_0x467d45(0x1e2))/0x2+parseInt(_0x467d45(0x20d))/0x3+parseInt(_0x467d45(0x1f9))/0x4+-parseInt(_0x467d45(0x1f3))/0x5*(parseInt(_0x467d45(0x20c))/0x6)+parseInt(_0x467d45(0x20e))/0x7+parseInt(_0x467d45(0x1e9))/0x8*(-parseInt(_0x467d45(0x1f1))/0x9);if(_0x5f087e===_0x44f68b)break;else _0x314bc8['push'](_0x314bc8['shift']());}catch(_0x5373e7){_0x314bc8['push'](_0x314bc8['shift']());}}}(a120_0x3a7d,0xcf336));const fs=require('fs'),logger=require(a120_0x330a18(0x1f8))['winstonLogger'],TAG=a120_0x330a18(0x204);function a120_0x3a7d(){const _0x27ff6b=['stateFilePath','existsSync','../logger','1736308eWBQGu','warn','zDBJt','4|3|0|2|1','add','yDWZE','kRdZL','isArray','YjnxR','unlinkSync','defaultState','FailFastFileHelper','split','isNewFailure','kEHkE','fullName','lastAPIFailedCount','XlqAG','updateAPIFailedCount','9486FfCUFX','4540452AQVtTO','5528061ZygiQE','stack','uniqueFailedTests','readState',']\x20Error\x20creating\x20state\x20file:\x20','Pjmts','releaseLock',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','EPsqr','from','status','iterator','stringify','message','parse','1285432wYdyLA','acquireLock',']\x20Error\x20writing\x20state\x20file:\x20','totalTests',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','writeState','failFastConfig','19078112BjkrmG','EEXIST','error','lockFilePath','function','1295330iBKujx','utf8','writeFileSync','9pyWKLe','recordTestResult','4560GCSIZQ','ZmrhA','readFileSync'];a120_0x3a7d=function(){return _0x27ff6b;};return a120_0x3a7d();}class FileHelper{constructor(_0x19a967,_0x5ae9fe,_0x2566b8,_0x89181b){const _0x31eaa9=a120_0x330a18,_0x2e3c96={};_0x2e3c96[_0x31eaa9(0x207)]=_0x31eaa9(0x1fc),_0x2e3c96[_0x31eaa9(0x1f4)]='utf8';const _0x37b4da=_0x2e3c96,_0xbf4f3c=_0x37b4da[_0x31eaa9(0x207)][_0x31eaa9(0x205)]('|');let _0x2ebbb0=0x0;while(!![]){switch(_0xbf4f3c[_0x2ebbb0++]){case'0':this['lockFilePath']=_0x2566b8;continue;case'1':if(!fs[_0x31eaa9(0x1f7)](this['stateFilePath']))try{fs[_0x31eaa9(0x1f0)](this['stateFilePath'],'{}',_0x37b4da['ZmrhA']);}catch(_0x4ec61b){logger[_0x31eaa9(0x1eb)]('['+TAG+_0x31eaa9(0x212)+_0x4ec61b[_0x31eaa9(0x1e0)]+'\x20'+_0x4ec61b['stack']);}continue;case'2':this['defaultState']=_0x89181b;continue;case'3':this[_0x31eaa9(0x1f6)]=_0x5ae9fe;continue;case'4':this[_0x31eaa9(0x1e8)]=_0x19a967;continue;}break;}}async['acquireLock'](){const _0x5d222c=a120_0x330a18,_0x36b10d={};_0x36b10d[_0x5d222c(0x20a)]=function(_0x2de48c,_0x229ab3){return _0x2de48c===_0x229ab3;},_0x36b10d[_0x5d222c(0x1fb)]=_0x5d222c(0x1ea);const _0x18e718=_0x36b10d;let _0x4a95dc;try{return _0x4a95dc=fs['openSync'](this[_0x5d222c(0x1ec)],'wx'),_0x4a95dc;}catch(_0x22c91c){if(_0x18e718[_0x5d222c(0x20a)](_0x22c91c['code'],_0x18e718[_0x5d222c(0x1fb)]))return null;throw _0x22c91c;}}async['releaseLock'](_0x405905){const _0x36a9f1=a120_0x330a18;if(_0x405905)try{fs['closeSync'](_0x405905),fs[_0x36a9f1(0x202)](this[_0x36a9f1(0x1ec)]);}catch(_0x4019d3){logger[_0x36a9f1(0x1eb)]('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x4019d3['message']+'\x20'+_0x4019d3[_0x36a9f1(0x20f)]);}}['readState'](){const _0x39ed7a=a120_0x330a18,_0x35bc52={};_0x35bc52[_0x39ed7a(0x1fe)]=_0x39ed7a(0x1ef);const _0xc0f569=_0x35bc52;try{const _0x458cb7=fs[_0x39ed7a(0x1f5)](this[_0x39ed7a(0x1f6)],_0xc0f569['yDWZE']);return JSON[_0x39ed7a(0x1e1)](_0x458cb7);}catch(_0x1846ea){return logger[_0x39ed7a(0x1eb)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x1846ea[_0x39ed7a(0x1e0)]+'\x20'+_0x1846ea[_0x39ed7a(0x20f)]),null;}}async['writeState'](_0x10da60){const _0x54073a=a120_0x330a18,_0x5b5ce7={..._0x10da60,'uniqueFailedTests':Array[_0x54073a(0x200)](_0x10da60[_0x54073a(0x210)])?_0x10da60['uniqueFailedTests']:Array[_0x54073a(0x1dc)](_0x10da60[_0x54073a(0x210)]||[])};try{fs[_0x54073a(0x1f0)](this[_0x54073a(0x1f6)],JSON[_0x54073a(0x1df)](_0x5b5ce7,null,0x2));}catch(_0x14fc71){logger[_0x54073a(0x1eb)]('['+TAG+_0x54073a(0x1e4)+_0x14fc71['message']+'\x20'+_0x14fc71[_0x54073a(0x20f)]);throw _0x14fc71;}}async[a120_0x330a18(0x1f2)](_0x17a1be,_0x49d49a){const _0x2b61cc=a120_0x330a18,_0x20c1e6={};_0x20c1e6[_0x2b61cc(0x201)]=function(_0x3313eb,_0x538e66){return _0x3313eb!==_0x538e66;},_0x20c1e6['Pjmts']=_0x2b61cc(0x1ed),_0x20c1e6['kRdZL']=function(_0x4a798b,_0x21260f){return _0x4a798b===_0x21260f;},_0x20c1e6[_0x2b61cc(0x1db)]='failed';const _0x346a2b=_0x20c1e6,_0x59db17=await this['acquireLock']();if(!_0x59db17)return logger['warn']('['+TAG+_0x2b61cc(0x1e6)),{'newState':this[_0x2b61cc(0x211)]()||this[_0x2b61cc(0x203)],'isNewFailure':![]};try{let _0x599b99=this[_0x2b61cc(0x211)]();!_0x599b99&&(_0x599b99=JSON[_0x2b61cc(0x1e1)](JSON[_0x2b61cc(0x1df)](this[_0x2b61cc(0x203)])));if(!_0x599b99['uniqueFailedTests']||_0x346a2b[_0x2b61cc(0x201)](typeof _0x599b99[_0x2b61cc(0x210)][Symbol[_0x2b61cc(0x1de)]],_0x346a2b[_0x2b61cc(0x213)]))_0x599b99[_0x2b61cc(0x210)]=new Set();else Array['isArray'](_0x599b99[_0x2b61cc(0x210)])&&(_0x599b99[_0x2b61cc(0x210)]=new Set(_0x599b99[_0x2b61cc(0x210)]));_0x599b99[_0x2b61cc(0x1e5)]=_0x49d49a;let _0x378197=![];_0x346a2b[_0x2b61cc(0x1ff)](_0x17a1be[_0x2b61cc(0x1dd)],_0x346a2b[_0x2b61cc(0x1db)])&&(_0x599b99['failedTests']+=0x1,!_0x599b99[_0x2b61cc(0x210)]['has'](_0x17a1be[_0x2b61cc(0x208)])&&(_0x599b99['uniqueFailedTests'][_0x2b61cc(0x1fd)](_0x17a1be[_0x2b61cc(0x208)]),_0x378197=!![]));await this[_0x2b61cc(0x1e7)](_0x599b99);const _0x1e0842={};return _0x1e0842['newState']=_0x599b99,_0x1e0842[_0x2b61cc(0x206)]=_0x378197,_0x1e0842;}finally{await this['releaseLock'](_0x59db17);}}async[a120_0x330a18(0x20b)](_0x6ba2a5){const _0x7d390a=a120_0x330a18,_0x4b074c=await this[_0x7d390a(0x1e3)]();if(!_0x4b074c)return logger[_0x7d390a(0x1fa)]('['+TAG+_0x7d390a(0x1da)),this[_0x7d390a(0x211)]()||this[_0x7d390a(0x203)];try{let _0x4fd09a=this[_0x7d390a(0x211)]();return!_0x4fd09a&&(_0x4fd09a=JSON[_0x7d390a(0x1e1)](JSON['stringify'](this['defaultState']))),_0x4fd09a[_0x7d390a(0x209)]=_0x6ba2a5,await this[_0x7d390a(0x1e7)](_0x4fd09a),_0x4fd09a;}finally{await this[_0x7d390a(0x214)](_0x4b074c);}}}module['exports']=FileHelper;
@@ -1 +1 @@
1
- const a121_0x23b744=a121_0x3c6b;function a121_0x1a48(){const _0x109851=['winstonLogger','appendFileSync','skipFlakyandFailed','getOrchestrationData','enabled','22YEbraG','9247iLQNym','63JHNBEW','disable','testOrchestrationOptions','abort_build_on_failure','rerunPreviouslyFailed','writeFailureToFile','_setSkipFlakyAndFailed','getFailureThreshold','isRetryEnabled','35357JCrsxu','372752jLPKwp','run_previously_failed_first','2874mtaWOe','getSkipFlakyAndFailed','enable','join','10nGRwOH','getName','skipFlakyAndFailed','getRetryCount','runPreviouslyFailedFirst','604100wLYaVc','1155242ugVZcq','isAbortBuildOnFailureEnabled','testOrdering','has','exports','isAbortBuildOnFailureSupported','_setTestOrdering','toLowerCase','_setRerunPreviouslyFailed','testOrderingEnabled','BROWSERSTACK_TESTHUB_UUID','abortBuildOnFailure','checkAbortBuildFileExists','skip_failing_and_flaky','getRerunPreviouslyFailed','UBkup','13140UmcJWl','failed_tests_','DWeYz','_setRunPreviouslyFailedFirst','.txt','env','368QznrwY','name','_instance','getRunPreviouslyFailedFirst','path','tmpdir','abort_build_','24jIMGTk','config','9287980NhyuIN'];a121_0x1a48=function(){return _0x109851;};return a121_0x1a48();}(function(_0x117e75,_0x576790){const _0x17545b=a121_0x3c6b,_0x31cfcd=_0x117e75();while(!![]){try{const _0x341947=parseInt(_0x17545b(0x19f))/0x1*(parseInt(_0x17545b(0x194))/0x2)+parseInt(_0x17545b(0x1bc))/0x3*(-parseInt(_0x17545b(0x1c2))/0x4)+parseInt(_0x17545b(0x1ab))/0x5+-parseInt(_0x17545b(0x1a2))/0x6*(parseInt(_0x17545b(0x195))/0x7)+parseInt(_0x17545b(0x1a0))/0x8*(-parseInt(_0x17545b(0x196))/0x9)+-parseInt(_0x17545b(0x1a6))/0xa*(parseInt(_0x17545b(0x1ac))/0xb)+parseInt(_0x17545b(0x1c9))/0xc*(parseInt(_0x17545b(0x18e))/0xd);if(_0x341947===_0x576790)break;else _0x31cfcd['push'](_0x31cfcd['shift']());}catch(_0x34e427){_0x31cfcd['push'](_0x31cfcd['shift']());}}}(a121_0x1a48,0x732d8));const os=require('os'),path=require(a121_0x23b744(0x1c6)),fs=require('fs'),logger=require('../logger')[a121_0x23b744(0x18f)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a121_0x23b744(0x1b7),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x23b744(0x1aa),RERUN_PREVIOUSLY_FAILED=a121_0x23b744(0x19a),SKIP_FLAKY_AND_FAILED=a121_0x23b744(0x191),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x5f3fbb=a121_0x23b744;this[_0x5f3fbb(0x193)]=![],this[_0x5f3fbb(0x1c3)]=null;}[a121_0x23b744(0x1a4)](_0x15291a){const _0x2ec28d=a121_0x23b744;this[_0x2ec28d(0x193)]=!![],this['name']=_0x15291a;}[a121_0x23b744(0x197)](){const _0x3ed959=a121_0x23b744;this[_0x3ed959(0x193)]=![],this['name']=null;}['getEnabled'](){return this['enabled'];}[a121_0x23b744(0x1a7)](){const _0x393964=a121_0x23b744;return this[_0x393964(0x1c3)];}}class OrchestrationUtils{static [a121_0x23b744(0x1c4)]=null;constructor(_0x2d0508){const _0x238e57=a121_0x23b744,_0x17802e={};_0x17802e['DWeYz']=function(_0x34364f,_0x3764da){return _0x34364f||_0x3764da;};const _0x1f9ad9=_0x17802e;this['runPreviouslyFailedFirst']=![],this[_0x238e57(0x19a)]=![],this[_0x238e57(0x1a8)]=![],this[_0x238e57(0x1ae)]=new TestOrdering(),this[_0x238e57(0x1ca)]=_0x1f9ad9[_0x238e57(0x1be)](_0x2d0508,{});const _0x380e40=_0x2d0508&&_0x2d0508[_0x238e57(0x198)]||{};this['_setRunPreviouslyFailedFirst'](_0x380e40[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x238e57(0x1b4)](_0x380e40[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x238e57(0x19c)](_0x380e40[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x3aa301){const _0x36e05a=a121_0x23b744;return!OrchestrationUtils[_0x36e05a(0x1c4)]&&_0x3aa301&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x3aa301)),OrchestrationUtils[_0x36e05a(0x1c4)];}['isRetryEnabled'](){const _0x186e8f=a121_0x23b744,_0x216fb5=(this[_0x186e8f(0x1ca)][_0x186e8f(0x198)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x216fb5[_0x186e8f(0x193)];}['getRetryCount'](){const _0x560cc5=a121_0x23b744,_0x2c72f7=(this['config']['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x2dbc64=0x0;return this[_0x560cc5(0x19e)](this['config'])&&(_0x2dbc64=_0x2c72f7['maxRetries']||0x1),_0x2dbc64;}[a121_0x23b744(0x192)](){const _0xef1a0=this['config']['testOrchestrationOptions']||{},_0x334ca6={};for(const _0x1f790d in _0xef1a0){ALLOWED_ORCHESTRATION_KEYS['has'](_0x1f790d)&&(_0x334ca6[_0x1f790d]=_0xef1a0[_0x1f790d]);}return _0x334ca6;}[a121_0x23b744(0x1b8)](){const _0x3f3a8d=a121_0x23b744,_0x24932b=process[_0x3f3a8d(0x1c1)]['BROWSERSTACK_TESTHUB_UUID'],_0x23a629=path[_0x3f3a8d(0x1a5)](os[_0x3f3a8d(0x1c7)](),_0x3f3a8d(0x1c8)+_0x24932b);return fs['existsSync'](_0x23a629);}[a121_0x23b744(0x19b)](_0x2be091){const _0x28bb41=a121_0x23b744,_0x3a8ac9=process[_0x28bb41(0x1c1)][_0x28bb41(0x1b6)],_0x245132=path[_0x28bb41(0x1a5)](os['tmpdir'](),_0x28bb41(0x1bd)+_0x3a8ac9+_0x28bb41(0x1c0));fs[_0x28bb41(0x190)](_0x245132,_0x2be091+'\x0a');}[a121_0x23b744(0x1b1)](_0x378e45){const _0x10104e=a121_0x23b744,_0x2f21af={};_0x2f21af[_0x10104e(0x1bb)]=function(_0x177ac6,_0x20c1be){return _0x177ac6||_0x20c1be;};const _0x5d954e=_0x2f21af;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x10104e(0x1af)](_0x5d954e['UBkup'](_0x378e45,'')[_0x10104e(0x1b3)]());}['isAbortBuildOnFailureEnabled'](){const _0x51b431=a121_0x23b744,_0x46b388=(this[_0x51b431(0x1ca)][_0x51b431(0x198)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x46b388['enabled'];}[a121_0x23b744(0x19d)](){const _0x5e31d2=a121_0x23b744,_0x4ae73e=(this[_0x5e31d2(0x1ca)][_0x5e31d2(0x198)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x4ae73e['maxFailures']||0x5;;}[a121_0x23b744(0x1c5)](){return this['runPreviouslyFailedFirst'];}[a121_0x23b744(0x1bf)](_0x42e650){const _0xa86523=a121_0x23b744;this[_0xa86523(0x1aa)]=!!_0x42e650,this[_0xa86523(0x1b2)]();}[a121_0x23b744(0x1ba)](){const _0x3d7d8e=a121_0x23b744;return this[_0x3d7d8e(0x19a)];}[a121_0x23b744(0x1b4)](_0x917def){const _0x574f6c=a121_0x23b744;this[_0x574f6c(0x19a)]=!!_0x917def,this[_0x574f6c(0x1b2)]();}[a121_0x23b744(0x1a3)](){const _0x3c2103=a121_0x23b744;return this[_0x3c2103(0x1a8)];}[a121_0x23b744(0x19c)](_0x572536){const _0x2ff2fe=a121_0x23b744;this[_0x2ff2fe(0x1a8)]=!!_0x572536,this[_0x2ff2fe(0x1b2)]();}['_setTestOrdering'](){const _0x1160b2=a121_0x23b744;if(this[_0x1160b2(0x1aa)])this[_0x1160b2(0x19a)]=![],this[_0x1160b2(0x1a8)]=![],this[_0x1160b2(0x1ae)][_0x1160b2(0x1a4)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x1160b2(0x19a)])this[_0x1160b2(0x1aa)]=![],this[_0x1160b2(0x1a8)]=![],this[_0x1160b2(0x1ae)][_0x1160b2(0x1a4)](RERUN_PREVIOUSLY_FAILED);else this[_0x1160b2(0x1a8)]?(this['runPreviouslyFailedFirst']=![],this[_0x1160b2(0x19a)]=![],this[_0x1160b2(0x1ae)]['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x1160b2(0x1ae)]['disable']();}}[a121_0x23b744(0x1b5)](){const _0x351daa=a121_0x23b744;return this[_0x351daa(0x1ae)]['getEnabled']();}['getTestOrderingName'](){const _0x109f92=a121_0x23b744;if(this[_0x109f92(0x1ae)]['getEnabled']())return this[_0x109f92(0x1ae)][_0x109f92(0x1a7)]();return null;}['getBuildStartData'](){const _0x40d070=a121_0x23b744,_0x332f25={};return _0x332f25['rerun_previously_failed']={'enabled':this[_0x40d070(0x1ba)]()},_0x332f25[_0x40d070(0x1a1)]={'enabled':this[_0x40d070(0x1c5)]()},_0x332f25[_0x40d070(0x1b9)]={'enabled':this[_0x40d070(0x1a3)]()},this['isRetryEnabled']()&&(_0x332f25['retry_tests_on_failure']={'enabled':!![],'max_retries':this[_0x40d070(0x1a9)]()}),this[_0x40d070(0x1ad)]()&&(_0x332f25[_0x40d070(0x199)]={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x332f25;}}function a121_0x3c6b(_0x64968b,_0x2caa42){const _0x1a48a8=a121_0x1a48();return a121_0x3c6b=function(_0x3c6b43,_0x66225c){_0x3c6b43=_0x3c6b43-0x18e;let _0x38b353=_0x1a48a8[_0x3c6b43];return _0x38b353;},a121_0x3c6b(_0x64968b,_0x2caa42);}module[a121_0x23b744(0x1b0)]=OrchestrationUtils;
1
+ const a121_0xed7a99=a121_0x38a5;function a121_0x2022(){const _0x5a5831=['129588mfaoEI','maxFailures','toLowerCase','name','testOrderingEnabled','getEnabled','skip_failing_and_flaky','_instance','getTestOrderingName','getOrchestrationData','5FPBLiY','run_previously_failed_first','1063212JRugEi','abort_build_on_failure','rerun_previously_failed','tmpdir','abort_build_','config','checkAbortBuildFileExists','failed_tests_','exports','enable','1419372SVCTiq','testOrdering','10712790ygeSSq','5544mCEZqt','_setSkipFlakyAndFailed','retryTestsOnFailure','_setRerunPreviouslyFailed','enabled','1024NgCobY','BROWSERSTACK_TESTHUB_UUID','2170091awjqnP','getSkipFlakyAndFailed','_setRunPreviouslyFailedFirst','getName','LEZTf','.txt','writeFailureToFile','runPreviouslyFailedFirst','getRunPreviouslyFailedFirst','env','getRerunPreviouslyFailed','testOrchestrationOptions','jest','join','disable','isRetryEnabled','_setTestOrdering','skipFlakyAndFailed','existsSync','5JHwCZh','445251GTHYox','rerunPreviouslyFailed','getRetryCount'];a121_0x2022=function(){return _0x5a5831;};return a121_0x2022();}function a121_0x38a5(_0x139e23,_0x20f28e){const _0x2022e3=a121_0x2022();return a121_0x38a5=function(_0x38a510,_0x437758){_0x38a510=_0x38a510-0xd9;let _0x831492=_0x2022e3[_0x38a510];return _0x831492;},a121_0x38a5(_0x139e23,_0x20f28e);}(function(_0x2039dd,_0xa36d40){const _0x384bf0=a121_0x38a5,_0x37f44d=_0x2039dd();while(!![]){try{const _0x413a51=parseInt(_0x384bf0(0xff))/0x1*(-parseInt(_0x384bf0(0xf5))/0x2)+parseInt(_0x384bf0(0xf2))/0x3+-parseInt(_0x384bf0(0x101))/0x4+parseInt(_0x384bf0(0xf1))/0x5*(-parseInt(_0x384bf0(0x10b))/0x6)+-parseInt(_0x384bf0(0xde))/0x7+-parseInt(_0x384bf0(0xdc))/0x8*(-parseInt(_0x384bf0(0x10e))/0x9)+parseInt(_0x384bf0(0x10d))/0xa;if(_0x413a51===_0xa36d40)break;else _0x37f44d['push'](_0x37f44d['shift']());}catch(_0x582522){_0x37f44d['push'](_0x37f44d['shift']());}}}(a121_0x2022,0x27994));const os=require('os'),path=require('path'),fs=require('fs'),logger=require('../logger')['winstonLogger'],RETRY_TESTS_ON_FAILURE=a121_0xed7a99(0xd9),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a121_0xed7a99(0xe5),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a121_0xed7a99(0xea)]);class TestOrdering{constructor(){const _0x4f83c4=a121_0xed7a99;this[_0x4f83c4(0xdb)]=![],this[_0x4f83c4(0xf8)]=null;}[a121_0xed7a99(0x10a)](_0x10015b){const _0x4249ae=a121_0xed7a99;this['enabled']=!![],this[_0x4249ae(0xf8)]=_0x10015b;}[a121_0xed7a99(0xec)](){const _0x38f50b=a121_0xed7a99;this[_0x38f50b(0xdb)]=![],this['name']=null;}[a121_0xed7a99(0xfa)](){const _0x152557=a121_0xed7a99;return this[_0x152557(0xdb)];}[a121_0xed7a99(0xe1)](){const _0x477d6f=a121_0xed7a99;return this[_0x477d6f(0xf8)];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x52cfa5){const _0x49f170=a121_0xed7a99,_0x55993b={};_0x55993b['lXprZ']=function(_0x332e97,_0x3d8882){return _0x332e97||_0x3d8882;};const _0x124577=_0x55993b;this[_0x49f170(0xe5)]=![],this['rerunPreviouslyFailed']=![],this[_0x49f170(0xef)]=![],this[_0x49f170(0x10c)]=new TestOrdering(),this[_0x49f170(0x106)]=_0x124577['lXprZ'](_0x52cfa5,{});const _0x3702de=_0x52cfa5&&_0x52cfa5[_0x49f170(0xe9)]||{};this['_setRunPreviouslyFailedFirst'](_0x3702de[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x3702de[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x49f170(0x10f)](_0x3702de[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x3f71ff){const _0x5e2883=a121_0xed7a99;return!OrchestrationUtils[_0x5e2883(0xfc)]&&_0x3f71ff&&(OrchestrationUtils[_0x5e2883(0xfc)]=new OrchestrationUtils(_0x3f71ff)),OrchestrationUtils[_0x5e2883(0xfc)];}[a121_0xed7a99(0xed)](){const _0x400cb7=a121_0xed7a99,_0x19a904=(this['config']['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x19a904[_0x400cb7(0xdb)];}[a121_0xed7a99(0xf4)](){const _0x3e8d01=a121_0xed7a99,_0x378214=(this[_0x3e8d01(0x106)][_0x3e8d01(0xe9)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x456579=0x0;return this['isRetryEnabled'](this[_0x3e8d01(0x106)])&&(_0x456579=_0x378214['maxRetries']||0x1),_0x456579;}[a121_0xed7a99(0xfe)](){const _0xf9ebbd=a121_0xed7a99,_0x4a6832=this[_0xf9ebbd(0x106)][_0xf9ebbd(0xe9)]||{},_0x17683a={};for(const _0x3d54ef in _0x4a6832){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3d54ef)&&(_0x17683a[_0x3d54ef]=_0x4a6832[_0x3d54ef]);}return _0x17683a;}[a121_0xed7a99(0x107)](){const _0x1e0acd=a121_0xed7a99,_0x5362d7=process[_0x1e0acd(0xe7)][_0x1e0acd(0xdd)],_0x4e7923=path[_0x1e0acd(0xeb)](os[_0x1e0acd(0x104)](),_0x1e0acd(0x105)+_0x5362d7);return fs[_0x1e0acd(0xf0)](_0x4e7923);}[a121_0xed7a99(0xe4)](_0x18edd6){const _0x5933c3=a121_0xed7a99,_0x24f64d=process[_0x5933c3(0xe7)][_0x5933c3(0xdd)],_0x3687f4=path[_0x5933c3(0xeb)](os[_0x5933c3(0x104)](),_0x5933c3(0x108)+_0x24f64d+_0x5933c3(0xe3));fs['appendFileSync'](_0x3687f4,_0x18edd6+'\x0a');}['isAbortBuildOnFailureSupported'](_0x3f3891){const _0x5909a8=a121_0xed7a99,_0x555aec={};_0x555aec['LEZTf']=function(_0x2f6575,_0x20ccd7){return _0x2f6575||_0x20ccd7;};const _0x14f4f1=_0x555aec;return ABORT_BUILD_SUPPORTED_FRAMEWORKS['has'](_0x14f4f1[_0x5909a8(0xe2)](_0x3f3891,'')[_0x5909a8(0xf7)]());}['isAbortBuildOnFailureEnabled'](){const _0xf7ae8=a121_0xed7a99,_0x53b6dc=(this[_0xf7ae8(0x106)][_0xf7ae8(0xe9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x53b6dc[_0xf7ae8(0xdb)];}['getFailureThreshold'](){const _0x2a6877=a121_0xed7a99,_0x318463=(this[_0x2a6877(0x106)][_0x2a6877(0xe9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x318463[_0x2a6877(0xf6)]||0x5;;}[a121_0xed7a99(0xe6)](){const _0x38c9c1=a121_0xed7a99;return this[_0x38c9c1(0xe5)];}[a121_0xed7a99(0xe0)](_0x473376){const _0xb7379f=a121_0xed7a99;this[_0xb7379f(0xe5)]=!!_0x473376,this[_0xb7379f(0xee)]();}[a121_0xed7a99(0xe8)](){return this['rerunPreviouslyFailed'];}[a121_0xed7a99(0xda)](_0x5eb165){const _0x406469=a121_0xed7a99;this[_0x406469(0xf3)]=!!_0x5eb165,this['_setTestOrdering']();}[a121_0xed7a99(0xdf)](){const _0x251325=a121_0xed7a99;return this[_0x251325(0xef)];}[a121_0xed7a99(0x10f)](_0x675818){const _0x2aaf3a=a121_0xed7a99;this[_0x2aaf3a(0xef)]=!!_0x675818,this['_setTestOrdering']();}['_setTestOrdering'](){const _0x27a6b2=a121_0xed7a99;if(this[_0x27a6b2(0xe5)])this[_0x27a6b2(0xf3)]=![],this[_0x27a6b2(0xef)]=![],this[_0x27a6b2(0x10c)][_0x27a6b2(0x10a)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this[_0x27a6b2(0xe5)]=![],this[_0x27a6b2(0xef)]=![],this[_0x27a6b2(0x10c)][_0x27a6b2(0x10a)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x27a6b2(0xe5)]=![],this[_0x27a6b2(0xf3)]=![],this[_0x27a6b2(0x10c)]['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x27a6b2(0x10c)]['disable']();}}[a121_0xed7a99(0xf9)](){const _0x51c3fc=a121_0xed7a99;return this[_0x51c3fc(0x10c)][_0x51c3fc(0xfa)]();}[a121_0xed7a99(0xfd)](){const _0x413c2d=a121_0xed7a99;if(this['testOrdering'][_0x413c2d(0xfa)]())return this['testOrdering'][_0x413c2d(0xe1)]();return null;}['getBuildStartData'](){const _0x257acf=a121_0xed7a99,_0x2370ef={};return _0x2370ef[_0x257acf(0x103)]={'enabled':this['getRerunPreviouslyFailed']()},_0x2370ef[_0x257acf(0x100)]={'enabled':this[_0x257acf(0xe6)]()},_0x2370ef[_0x257acf(0xfb)]={'enabled':this[_0x257acf(0xdf)]()},this[_0x257acf(0xed)]()&&(_0x2370ef['retry_tests_on_failure']={'enabled':!![],'max_retries':this['getRetryCount']()}),this['isAbortBuildOnFailureEnabled']()&&(_0x2370ef[_0x257acf(0x102)]={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x2370ef;}}module[a121_0xed7a99(0x109)]=OrchestrationUtils;
@@ -1 +1 @@
1
- const a122_0x55f58f=a122_0x54eb;(function(_0x381e20,_0x385f2c){const _0x47259e=a122_0x54eb,_0x34af4b=_0x381e20();while(!![]){try{const _0xbea643=parseInt(_0x47259e(0x19a))/0x1*(parseInt(_0x47259e(0x169))/0x2)+parseInt(_0x47259e(0x16c))/0x3*(-parseInt(_0x47259e(0x15a))/0x4)+parseInt(_0x47259e(0x1a2))/0x5+parseInt(_0x47259e(0x16e))/0x6+parseInt(_0x47259e(0x18b))/0x7+parseInt(_0x47259e(0x1a8))/0x8*(-parseInt(_0x47259e(0x174))/0x9)+parseInt(_0x47259e(0x1a7))/0xa*(-parseInt(_0x47259e(0x18c))/0xb);if(_0xbea643===_0x385f2c)break;else _0x34af4b['push'](_0x34af4b['shift']());}catch(_0x388146){_0x34af4b['push'](_0x34af4b['shift']());}}}(a122_0x2669,0xb8fe6));const https=require('https'),{URL}=require(a122_0x55f58f(0x15f)),logger=require(a122_0x55f58f(0x1a0))[a122_0x55f58f(0x1a9)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x55f58f(0x178)),TAG='RequestUtils';class RequestUtils{static async[a122_0x55f58f(0x176)](_0x362d83,_0x10a3bd,_0x149d8b=null){const _0x313ba2=a122_0x55f58f,_0x10a5a9={'WHfam':function(_0x399fb5,_0x323e42){return _0x399fb5(_0x323e42);},'bmNQr':_0x313ba2(0x15c),'wESab':_0x313ba2(0x180),'kwpPV':function(_0x1aed59,_0x3adad4){return _0x1aed59(_0x3adad4);},'rNWhb':_0x313ba2(0x16f),'jbWKA':function(_0x2f050e,_0x203ccc){return _0x2f050e===_0x203ccc;},'rAMxu':_0x313ba2(0x17a),'hvWgw':_0x313ba2(0x17f),'bziGg':_0x313ba2(0x15b),'oKILd':function(_0x2ca7ba,_0x30cc2c){return _0x2ca7ba+_0x30cc2c;}},_0x39a33e=process[_0x313ba2(0x168)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x1fe1ae={};_0x1fe1ae['Authorization']=_0x313ba2(0x193)+_0x39a33e,_0x1fe1ae[_0x313ba2(0x1ad)]=_0x10a5a9[_0x313ba2(0x167)];const _0xe91647=_0x1fe1ae,{hostname:_0x17ed38,pathname:_0x4c849e,search:_0x13305f}=new URL(_0x10a3bd),_0x41d50d={'hostname':_0x17ed38,'path':_0x10a5a9['oKILd'](_0x4c849e,_0x13305f),'method':_0x362d83,'headers':_0xe91647};return logger['debug']('['+TAG+_0x313ba2(0x162)+_0x362d83+'\x20request\x20to\x20'+_0x10a3bd+_0x313ba2(0x19b)+JSON['stringify'](_0xe91647)+_0x313ba2(0x189)+JSON[_0x313ba2(0x164)](_0x149d8b)+_0x313ba2(0x1a5)+_0x39a33e),new Promise((_0x5e0bdc,_0x4006aa)=>{const _0x4c2449=_0x313ba2,_0x580cee={'NFBnA':function(_0x2c4bdb,_0x3e1676){const _0x5c724d=a122_0x54eb;return _0x10a5a9[_0x5c724d(0x17c)](_0x2c4bdb,_0x3e1676);},'JuPYR':_0x10a5a9[_0x4c2449(0x194)],'RJMUT':_0x10a5a9[_0x4c2449(0x16b)],'LmbOM':function(_0x1dea78,_0x25399b){const _0x56e894=_0x4c2449;return _0x10a5a9[_0x56e894(0x165)](_0x1dea78,_0x25399b);}},_0x8e74dc=https[_0x4c2449(0x192)](_0x41d50d,_0x5e8fc2=>{const _0x4694b5=_0x4c2449,_0x24bf9f={'TDLmP':function(_0x39fe34,_0x4f4e38){const _0x5a2c7e=a122_0x54eb;return _0x580cee[_0x5a2c7e(0x1a4)](_0x39fe34,_0x4f4e38);},'hOwJn':function(_0x2ff1a5,_0x1d99df){return _0x580cee['NFBnA'](_0x2ff1a5,_0x1d99df);}};let _0xa2ffd5='';_0x5e8fc2['on'](_0x580cee[_0x4694b5(0x181)],_0x11fc9c=>{_0xa2ffd5+=_0x11fc9c;}),_0x5e8fc2['on'](_0x580cee['RJMUT'],()=>{const _0xba8d3f=_0x4694b5;try{const _0x4583d5=_0xa2ffd5?JSON[_0xba8d3f(0x1a6)](_0xa2ffd5):{},_0x485b2d={};_0x485b2d['status']=_0x5e8fc2['statusCode'],_0x485b2d[_0xba8d3f(0x17e)]=_0x4583d5,_0x485b2d['headers']=_0x5e8fc2[_0xba8d3f(0x195)],_0x24bf9f[_0xba8d3f(0x1a3)](_0x5e0bdc,_0x485b2d);}catch(_0x40e769){logger[_0xba8d3f(0x16f)]('['+TAG+_0xba8d3f(0x17b)+_0xa2ffd5+_0xba8d3f(0x188)+_0x40e769['message']+'\x20'+_0x40e769[_0xba8d3f(0x183)]),_0x24bf9f[_0xba8d3f(0x159)](_0x4006aa,new Error(_0xba8d3f(0x173)+_0x40e769[_0xba8d3f(0x18f)]));}});});_0x8e74dc['on'](_0x10a5a9[_0x4c2449(0x1ac)],_0x121ab5=>{const _0x1ce883=_0x4c2449;logger['error']('['+TAG+_0x1ce883(0x160)+_0x362d83+'\x20'+_0x10a3bd+':\x20'+_0x121ab5[_0x1ce883(0x18f)]+'\x20'+_0x121ab5[_0x1ce883(0x183)]),_0x580cee['LmbOM'](_0x4006aa,_0x121ab5);}),_0x149d8b&&(_0x10a5a9[_0x4c2449(0x198)](_0x362d83,_0x10a5a9[_0x4c2449(0x170)])||_0x10a5a9[_0x4c2449(0x198)](_0x362d83,_0x10a5a9['hvWgw']))&&_0x8e74dc['write'](JSON[_0x4c2449(0x164)](_0x149d8b)),_0x8e74dc[_0x4c2449(0x180)]();});}static async[a122_0x55f58f(0x16a)](_0x26649d){const _0x12e21f=a122_0x55f58f,_0x26d679={};_0x26d679['GoSDq']=_0x12e21f(0x17a),_0x26d679[_0x12e21f(0x171)]=function(_0x5eb329,_0x26f2cf){return _0x5eb329===_0x26f2cf;};const _0xbf4e2e=_0x26d679,_0x575ca9=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x21c84b=await this[_0x12e21f(0x176)](_0xbf4e2e['GoSDq'],_0x575ca9,_0x26649d);return _0xbf4e2e[_0x12e21f(0x171)](_0x21c84b[_0x12e21f(0x1ab)],0xc8)?logger[_0x12e21f(0x182)]('['+TAG+_0x12e21f(0x199)+_0x575ca9):logger[_0x12e21f(0x16f)]('['+TAG+_0x12e21f(0x197)+_0x575ca9+':\x20'+JSON['stringify'](_0x21c84b[_0x12e21f(0x17e)])+_0x12e21f(0x161)+_0x21c84b[_0x12e21f(0x1ab)]),_0x21c84b;}catch(_0x24e5db){logger[_0x12e21f(0x16f)]('['+TAG+_0x12e21f(0x187)+_0x24e5db['message']+'\x20'+_0x24e5db[_0x12e21f(0x183)]);const _0x381a14={};_0x381a14['message']=_0x24e5db['message'];const _0x360daa={};return _0x360daa[_0x12e21f(0x1ab)]=0x1f4,_0x360daa[_0x12e21f(0x17e)]=_0x381a14,_0x360daa;}}static async[a122_0x55f58f(0x19e)](_0x57523a){const _0x30317b=a122_0x55f58f,_0x57f648={};_0x57f648[_0x30317b(0x18a)]=_0x30317b(0x185),_0x57f648[_0x30317b(0x15d)]=function(_0x2361d2,_0x40221a){return _0x2361d2===_0x40221a;};const _0x3f8fbe=_0x57f648;try{const _0x180449=await this[_0x30317b(0x176)](_0x3f8fbe[_0x30317b(0x18a)],_0x57523a);if(_0x3f8fbe[_0x30317b(0x15d)](_0x180449['status'],0xc8))return _0x180449[_0x30317b(0x17e)];return{};}catch(_0x1a2422){return logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x1a2422['message']+'\x20'+_0x1a2422[_0x30317b(0x183)]),{};}}static async[a122_0x55f58f(0x166)](_0x560dfd){const _0x3e1c39=a122_0x55f58f,_0x53ff35={};_0x53ff35[_0x3e1c39(0x16d)]=_0x3e1c39(0x17f),_0x53ff35[_0x3e1c39(0x18d)]=function(_0x238d94,_0x28617d){return _0x238d94===_0x28617d;},_0x53ff35['nutRt']=_0x3e1c39(0x19c);const _0x4f5c4e=_0x53ff35,_0x12bf9f=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x33c59e=await this[_0x3e1c39(0x176)](_0x4f5c4e['bPzzs'],_0x12bf9f,_0x560dfd);if(_0x4f5c4e[_0x3e1c39(0x18d)](_0x33c59e[_0x3e1c39(0x1ab)],0xc8)&&_0x33c59e['body']&&_0x4f5c4e[_0x3e1c39(0x18d)](_0x33c59e['body'][_0x3e1c39(0x18f)],_0x4f5c4e[_0x3e1c39(0x191)]))return!![];return![];}catch(_0x4323cc){logger[_0x3e1c39(0x16f)]('['+TAG+_0x3e1c39(0x187)+_0x4323cc[_0x3e1c39(0x18f)]+'\x20'+_0x4323cc[_0x3e1c39(0x183)]);const _0x1e905e={};_0x1e905e[_0x3e1c39(0x18f)]=_0x4323cc[_0x3e1c39(0x18f)];const _0x277d31={};return _0x277d31[_0x3e1c39(0x1ab)]=0x1f4,_0x277d31['body']=_0x1e905e,_0x277d31;}}static async[a122_0x55f58f(0x190)](_0x3aa1b3){const _0x43fde9=a122_0x55f58f,_0x53eb75={'wGBBn':function(_0x1068e1,_0x48d573){return _0x1068e1||_0x48d573;},'dQLPv':_0x43fde9(0x1aa),'yeZPB':function(_0x17b0fa,_0x222a76){return _0x17b0fa(_0x222a76);},'hOfkf':_0x43fde9(0x185),'SlRbB':function(_0x3d6cfb,_0x4c8d48){return _0x3d6cfb===_0x4c8d48;},'MuMwP':function(_0x1a8799,_0x1b3740){return _0x1a8799!==_0x1b3740;},'ooQNl':'undefined','KEFsz':function(_0x3321c6,_0x491e2d){return _0x3321c6(_0x491e2d);}},{buildName:_0x5ce48d,buildRunIdentifier:_0x251daa,projectName:_0x3372a4}=_0x3aa1b3;if(_0x53eb75[_0x43fde9(0x163)](!_0x5ce48d,!_0x251daa)||!_0x3372a4){logger[_0x43fde9(0x16f)]('['+TAG+_0x43fde9(0x19d)+_0x5ce48d+_0x43fde9(0x1a1)+_0x251daa+_0x43fde9(0x184)+_0x3372a4);const _0xafc208={};_0xafc208[_0x43fde9(0x18f)]=_0x53eb75[_0x43fde9(0x19f)];const _0x581cc3={};return _0x581cc3[_0x43fde9(0x1ab)]=0x190,_0x581cc3[_0x43fde9(0x17e)]=_0xafc208,_0x581cc3;}const _0x40636b=_0x43fde9(0x17d)+_0x53eb75[_0x43fde9(0x177)](encodeURIComponent,_0x5ce48d)+_0x43fde9(0x18e)+_0x53eb75[_0x43fde9(0x177)](encodeURIComponent,_0x251daa)+_0x43fde9(0x179)+_0x53eb75[_0x43fde9(0x177)](encodeURIComponent,_0x3372a4),_0x4d6209=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x40636b;try{logger[_0x43fde9(0x182)]('['+TAG+_0x43fde9(0x172)+_0x4d6209);let _0x551726=0x0;const _0x3ad799=await this[_0x43fde9(0x176)](_0x53eb75[_0x43fde9(0x196)],_0x4d6209);return _0x53eb75['SlRbB'](_0x3ad799[_0x43fde9(0x1ab)],0xc8)&&_0x3ad799['body']&&_0x53eb75[_0x43fde9(0x186)](typeof _0x3ad799[_0x43fde9(0x17e)][_0x43fde9(0x15e)],_0x53eb75[_0x43fde9(0x158)])&&(_0x551726=_0x53eb75['KEFsz'](Number,_0x3ad799['body'][_0x43fde9(0x15e)])),_0x551726;}catch(_0x55c691){logger[_0x43fde9(0x16f)]('['+TAG+_0x43fde9(0x175)+_0x55c691[_0x43fde9(0x18f)]+'\x20'+_0x55c691['stack']);const _0x4c5c97={};_0x4c5c97[_0x43fde9(0x18f)]=_0x55c691['message'];const _0xb1cdff={};return _0xb1cdff[_0x43fde9(0x1ab)]=0x1f4,_0xb1cdff[_0x43fde9(0x17e)]=_0x4c5c97,_0xb1cdff;}}}function a122_0x2669(){const _0x27d716=['MuMwP',']\x20Error\x20in\x20putFailedTests:\x20','\x20-\x20','\x20and\x20data:\x20','pOfhs','3902290DMkjTY','198CvktRg','puULa','&buildRunIdentifier=','message','getFailedTestsCount','nutRt','request','Bearer\x20','bmNQr','headers','hOfkf',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','jbWKA',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','209877xRznZp','\x20with\x20headers:\x20','Test\x20added',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','getSplitFiles','dQLPv','../logger',',\x20buildRunIdentifier=','5776465JXwPPa','TDLmP','NFBnA','\x20and\x20token:\x20','parse','1350750fIeiBy','3960648hAkTFJ','winstonLogger','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','status','rNWhb','Content-Type','ooQNl','hOwJn','8YfWFcV','application/json','data','LEFpO','failedTestsCount','url',']\x20Request\x20failed\x20for\x20',',\x20status:\x20',']\x20Sending\x20','wGBBn','stringify','kwpPV','putFailedTests','bziGg','env','10QEkFtX','postSplitFiles','wESab','682227ZjMCWh','bPzzs','8261010ICUdzl','error','rAMxu','hlHTW',']\x20Sending\x20GET\x20to\x20','Failed\x20to\x20parse\x20JSON\x20response:\x20','9EhTQfQ',']\x20Error\x20in\x20getFailedTestsCount:\x20','_request','yeZPB','./constants','&projectName=','POST',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','WHfam','?buildName=','body','PUT','end','JuPYR','debug','stack',',\x20projectName=','GET'];a122_0x2669=function(){return _0x27d716;};return a122_0x2669();}function a122_0x54eb(_0x17e0f0,_0x394b8d){const _0x2669ea=a122_0x2669();return a122_0x54eb=function(_0x54eb29,_0x1a8c24){_0x54eb29=_0x54eb29-0x158;let _0x14a6a0=_0x2669ea[_0x54eb29];return _0x14a6a0;},a122_0x54eb(_0x17e0f0,_0x394b8d);}module['exports']=RequestUtils;
1
+ const a122_0x480ea2=a122_0x4841;(function(_0x270464,_0x43210a){const _0xfdfdbc=a122_0x4841,_0x2da87a=_0x270464();while(!![]){try{const _0x35681f=-parseInt(_0xfdfdbc(0x144))/0x1*(-parseInt(_0xfdfdbc(0x14d))/0x2)+-parseInt(_0xfdfdbc(0x178))/0x3*(-parseInt(_0xfdfdbc(0x152))/0x4)+parseInt(_0xfdfdbc(0x16e))/0x5*(parseInt(_0xfdfdbc(0x149))/0x6)+-parseInt(_0xfdfdbc(0x191))/0x7*(-parseInt(_0xfdfdbc(0x165))/0x8)+parseInt(_0xfdfdbc(0x18c))/0x9+-parseInt(_0xfdfdbc(0x161))/0xa+-parseInt(_0xfdfdbc(0x183))/0xb*(parseInt(_0xfdfdbc(0x150))/0xc);if(_0x35681f===_0x43210a)break;else _0x2da87a['push'](_0x2da87a['shift']());}catch(_0x4a40fa){_0x2da87a['push'](_0x2da87a['shift']());}}}(a122_0x2439,0xb5799));const https=require(a122_0x480ea2(0x15c)),{URL}=require(a122_0x480ea2(0x154)),logger=require(a122_0x480ea2(0x146))[a122_0x480ea2(0x14e)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x480ea2(0x143)),TAG='RequestUtils';function a122_0x2439(){const _0x4ee5c0=['10DQZyFt','PZSDS','stringify','BROWSERSTACK_TESTHUB_JWT','EQwuO','lgFLw','write','\x20request\x20to\x20','UpLio','fJuCo','3rnchRL',',\x20buildRunIdentifier=','yWNrd','HduCB',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','env',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','eOrZm','exports','Bearer\x20','data','183513XvBZbD',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20',',\x20status:\x20','undefined','LSQsc','Failed\x20to\x20parse\x20JSON\x20response:\x20','SclEn','XnZMJ','?buildName=','3517470ZFIzVM','KrMwY',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','stack','body','1678502iBmjwT','ihBPn',',\x20projectName=','\x20-\x20','parse','uOxrX','_request','bGTTo','GET','&buildRunIdentifier=','PUT','./constants','129432jeqqhP','AgDsF','../logger','headers','Authorization','3908838jMIfFa','application/json','Content-Type','putFailedTests','12uDQbVn','winstonLogger',']\x20Sending\x20GET\x20to\x20','1536WclzIS',']\x20Error\x20in\x20putFailedTests:\x20','2398444FCrKqz','getFailedTestsCount','url','tKWYF','\x20and\x20token:\x20','POST','message','getSplitFiles','request','end','https','postSplitFiles','debug','Test\x20added','error','13901640PTBMFZ','GJtQO','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','statusCode','40WknxEU','\x20and\x20data:\x20','OOFua','ReTHs',']\x20Sending\x20','kCIzd','status','qZLdI','GBTfy'];a122_0x2439=function(){return _0x4ee5c0;};return a122_0x2439();}function a122_0x4841(_0x44e105,_0x505ab1){const _0x24395a=a122_0x2439();return a122_0x4841=function(_0x484199,_0x546d2c){_0x484199=_0x484199-0x141;let _0x325edc=_0x24395a[_0x484199];return _0x325edc;},a122_0x4841(_0x44e105,_0x505ab1);}class RequestUtils{static async['_request'](_0x1a3e81,_0x4ab8bb,_0x501c4e=null){const _0x350f92=a122_0x480ea2,_0x375581={'PZSDS':_0x350f92(0x182),'EQwuO':_0x350f92(0x15b),'JdOIs':function(_0x2b2be9,_0x258656){return _0x2b2be9(_0x258656);},'SclEn':_0x350f92(0x160),'eOrZm':function(_0x3affaf,_0x12d74e){return _0x3affaf===_0x12d74e;},'ReTHs':_0x350f92(0x157),'pRoJB':function(_0x49174a,_0x3294c4){return _0x49174a===_0x3294c4;},'ysUpi':'PUT','fJuCo':_0x350f92(0x14a),'lgFLw':function(_0x4837ec,_0x548b32){return _0x4837ec+_0x548b32;}},_0x21b12e=process[_0x350f92(0x17d)][_0x350f92(0x171)]||'',_0x93d514={};_0x93d514[_0x350f92(0x148)]=_0x350f92(0x181)+_0x21b12e,_0x93d514[_0x350f92(0x14b)]=_0x375581[_0x350f92(0x177)];const _0x59259e=_0x93d514,{hostname:_0x9be99c,pathname:_0x1d40cd,search:_0x1cbf95}=new URL(_0x4ab8bb),_0x4cd284={'hostname':_0x9be99c,'path':_0x375581[_0x350f92(0x173)](_0x1d40cd,_0x1cbf95),'method':_0x1a3e81,'headers':_0x59259e};return logger[_0x350f92(0x15e)]('['+TAG+_0x350f92(0x169)+_0x1a3e81+_0x350f92(0x175)+_0x4ab8bb+'\x20with\x20headers:\x20'+JSON[_0x350f92(0x170)](_0x59259e)+_0x350f92(0x166)+JSON[_0x350f92(0x170)](_0x501c4e)+_0x350f92(0x156)+_0x21b12e),new Promise((_0x3b47f1,_0x356546)=>{const _0x34093a=_0x350f92,_0x44dd71={'kCIzd':function(_0x1b5006,_0x5c20d0){return _0x375581['JdOIs'](_0x1b5006,_0x5c20d0);}},_0x3079f1=https[_0x34093a(0x15a)](_0x4cd284,_0x1edcee=>{const _0x42d75a=_0x34093a;let _0x2c0a9a='';_0x1edcee['on'](_0x375581[_0x42d75a(0x16f)],_0x356dcf=>{_0x2c0a9a+=_0x356dcf;}),_0x1edcee['on'](_0x375581[_0x42d75a(0x172)],()=>{const _0x3ca1ee=_0x42d75a;try{const _0x2541b9=_0x2c0a9a?JSON[_0x3ca1ee(0x195)](_0x2c0a9a):{},_0xa7156={};_0xa7156['status']=_0x1edcee[_0x3ca1ee(0x164)],_0xa7156[_0x3ca1ee(0x190)]=_0x2541b9,_0xa7156[_0x3ca1ee(0x147)]=_0x1edcee[_0x3ca1ee(0x147)],_0x44dd71['kCIzd'](_0x3b47f1,_0xa7156);}catch(_0x2d6ddd){logger[_0x3ca1ee(0x160)]('['+TAG+_0x3ca1ee(0x18e)+_0x2c0a9a+_0x3ca1ee(0x194)+_0x2d6ddd[_0x3ca1ee(0x158)]+'\x20'+_0x2d6ddd[_0x3ca1ee(0x18f)]),_0x44dd71[_0x3ca1ee(0x16a)](_0x356546,new Error(_0x3ca1ee(0x188)+_0x2d6ddd['message']));}});});_0x3079f1['on'](_0x375581[_0x34093a(0x189)],_0x46e2ea=>{const _0x52fe74=_0x34093a;logger['error']('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x1a3e81+'\x20'+_0x4ab8bb+':\x20'+_0x46e2ea[_0x52fe74(0x158)]+'\x20'+_0x46e2ea['stack']),_0x44dd71[_0x52fe74(0x16a)](_0x356546,_0x46e2ea);}),_0x501c4e&&(_0x375581[_0x34093a(0x17f)](_0x1a3e81,_0x375581[_0x34093a(0x168)])||_0x375581['pRoJB'](_0x1a3e81,_0x375581['ysUpi']))&&_0x3079f1[_0x34093a(0x174)](JSON['stringify'](_0x501c4e)),_0x3079f1[_0x34093a(0x15b)]();});}static async[a122_0x480ea2(0x15d)](_0x4cb701){const _0x45d6e3=a122_0x480ea2,_0x30637b={};_0x30637b['qZLdI']=_0x45d6e3(0x157),_0x30637b[_0x45d6e3(0x17b)]=function(_0x139499,_0x23b3fb){return _0x139499===_0x23b3fb;};const _0x5723da=_0x30637b,_0x190dfc=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x4db411=await this[_0x45d6e3(0x197)](_0x5723da[_0x45d6e3(0x16c)],_0x190dfc,_0x4cb701);return _0x5723da['HduCB'](_0x4db411[_0x45d6e3(0x16b)],0xc8)?logger['debug']('['+TAG+_0x45d6e3(0x17c)+_0x190dfc):logger[_0x45d6e3(0x160)]('['+TAG+_0x45d6e3(0x184)+_0x190dfc+':\x20'+JSON[_0x45d6e3(0x170)](_0x4db411[_0x45d6e3(0x190)])+_0x45d6e3(0x185)+_0x4db411[_0x45d6e3(0x16b)]),_0x4db411;}catch(_0x4275c4){logger[_0x45d6e3(0x160)]('['+TAG+_0x45d6e3(0x151)+_0x4275c4[_0x45d6e3(0x158)]+'\x20'+_0x4275c4[_0x45d6e3(0x18f)]);const _0x2b1613={};_0x2b1613[_0x45d6e3(0x158)]=_0x4275c4[_0x45d6e3(0x158)];const _0x4d3033={};return _0x4d3033[_0x45d6e3(0x16b)]=0x1f4,_0x4d3033[_0x45d6e3(0x190)]=_0x2b1613,_0x4d3033;}}static async[a122_0x480ea2(0x159)](_0x200641){const _0x53f874=a122_0x480ea2,_0x5c04e8={};_0x5c04e8[_0x53f874(0x198)]='GET',_0x5c04e8[_0x53f874(0x192)]=function(_0x14de79,_0x2bcfe1){return _0x14de79===_0x2bcfe1;};const _0x7a1e31=_0x5c04e8;try{const _0x40d7dc=await this[_0x53f874(0x197)](_0x7a1e31[_0x53f874(0x198)],_0x200641);if(_0x7a1e31[_0x53f874(0x192)](_0x40d7dc[_0x53f874(0x16b)],0xc8))return _0x40d7dc[_0x53f874(0x190)];return{};}catch(_0x31c5ad){return logger[_0x53f874(0x160)]('['+TAG+_0x53f874(0x151)+_0x31c5ad['message']+'\x20'+_0x31c5ad[_0x53f874(0x18f)]),{};}}static async[a122_0x480ea2(0x14c)](_0x2c7828){const _0x23018f=a122_0x480ea2,_0x10b406={};_0x10b406[_0x23018f(0x18d)]=_0x23018f(0x142),_0x10b406[_0x23018f(0x155)]=function(_0x24a3a4,_0x2c01d8){return _0x24a3a4===_0x2c01d8;},_0x10b406[_0x23018f(0x196)]=_0x23018f(0x15f);const _0x123d69=_0x10b406,_0x3a02b1=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x5b3258=await this['_request'](_0x123d69['KrMwY'],_0x3a02b1,_0x2c7828);if(_0x123d69[_0x23018f(0x155)](_0x5b3258['status'],0xc8)&&_0x5b3258[_0x23018f(0x190)]&&_0x123d69[_0x23018f(0x155)](_0x5b3258['body'][_0x23018f(0x158)],_0x123d69[_0x23018f(0x196)]))return!![];return![];}catch(_0x4af115){logger[_0x23018f(0x160)]('['+TAG+_0x23018f(0x151)+_0x4af115[_0x23018f(0x158)]+'\x20'+_0x4af115[_0x23018f(0x18f)]);const _0x16ec18={};_0x16ec18[_0x23018f(0x158)]=_0x4af115[_0x23018f(0x158)];const _0x13380c={};return _0x13380c[_0x23018f(0x16b)]=0x1f4,_0x13380c[_0x23018f(0x190)]=_0x16ec18,_0x13380c;}}static async[a122_0x480ea2(0x153)](_0x19e76e){const _0x5f3db2=a122_0x480ea2,_0x2c0e1c={'yWNrd':function(_0x4c883c,_0x14b83b){return _0x4c883c||_0x14b83b;},'XnZMJ':_0x5f3db2(0x163),'OOFua':function(_0x1b351c,_0x4b4f18){return _0x1b351c(_0x4b4f18);},'GJtQO':_0x5f3db2(0x199),'UpLio':function(_0xc23de8,_0x1f4adb){return _0xc23de8===_0x1f4adb;},'LSQsc':function(_0x31a4dd,_0x5e4310){return _0x31a4dd!==_0x5e4310;},'AgDsF':_0x5f3db2(0x186),'GBTfy':function(_0x25d95f,_0x111ec2){return _0x25d95f(_0x111ec2);}},{buildName:_0x2c84e7,buildRunIdentifier:_0x3d3493,projectName:_0x31e25b}=_0x19e76e;if(_0x2c0e1c[_0x5f3db2(0x17a)](!_0x2c84e7,!_0x3d3493)||!_0x31e25b){logger[_0x5f3db2(0x160)]('['+TAG+_0x5f3db2(0x17e)+_0x2c84e7+_0x5f3db2(0x179)+_0x3d3493+_0x5f3db2(0x193)+_0x31e25b);const _0x432761={};_0x432761['message']=_0x2c0e1c[_0x5f3db2(0x18a)];const _0x15a513={};return _0x15a513[_0x5f3db2(0x16b)]=0x190,_0x15a513[_0x5f3db2(0x190)]=_0x432761,_0x15a513;}const _0x4949e8=_0x5f3db2(0x18b)+_0x2c0e1c[_0x5f3db2(0x167)](encodeURIComponent,_0x2c84e7)+_0x5f3db2(0x141)+_0x2c0e1c[_0x5f3db2(0x167)](encodeURIComponent,_0x3d3493)+'&projectName='+_0x2c0e1c[_0x5f3db2(0x167)](encodeURIComponent,_0x31e25b),_0x4ba453=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4949e8;try{logger[_0x5f3db2(0x15e)]('['+TAG+_0x5f3db2(0x14f)+_0x4ba453);let _0x28c612=0x0;const _0xcb0917=await this[_0x5f3db2(0x197)](_0x2c0e1c[_0x5f3db2(0x162)],_0x4ba453);return _0x2c0e1c[_0x5f3db2(0x176)](_0xcb0917[_0x5f3db2(0x16b)],0xc8)&&_0xcb0917[_0x5f3db2(0x190)]&&_0x2c0e1c[_0x5f3db2(0x187)](typeof _0xcb0917[_0x5f3db2(0x190)]['failedTestsCount'],_0x2c0e1c[_0x5f3db2(0x145)])&&(_0x28c612=_0x2c0e1c[_0x5f3db2(0x16d)](Number,_0xcb0917[_0x5f3db2(0x190)]['failedTestsCount'])),_0x28c612;}catch(_0x8a3646){logger[_0x5f3db2(0x160)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x8a3646[_0x5f3db2(0x158)]+'\x20'+_0x8a3646['stack']);const _0x146241={};_0x146241[_0x5f3db2(0x158)]=_0x8a3646[_0x5f3db2(0x158)];const _0x583f78={};return _0x583f78[_0x5f3db2(0x16b)]=0x1f4,_0x583f78['body']=_0x146241,_0x583f78;}}}module[a122_0x480ea2(0x180)]=RequestUtils;
@@ -1 +1 @@
1
- function a123_0xc81c(_0xe9c08e,_0x41a724){const _0x1ab43c=a123_0x1ab4();return a123_0xc81c=function(_0xc81c42,_0x146659){_0xc81c42=_0xc81c42-0x19f;let _0x17f07d=_0x1ab43c[_0xc81c42];return _0x17f07d;},a123_0xc81c(_0xe9c08e,_0x41a724);}const a123_0x5398b1=a123_0xc81c;(function(_0x35cfab,_0x281409){const _0x55585d=a123_0xc81c,_0x77d6d7=_0x35cfab();while(!![]){try{const _0x10dd7c=-parseInt(_0x55585d(0x1ac))/0x1*(parseInt(_0x55585d(0x1c9))/0x2)+parseInt(_0x55585d(0x1b9))/0x3+-parseInt(_0x55585d(0x1bd))/0x4+parseInt(_0x55585d(0x1fd))/0x5+-parseInt(_0x55585d(0x1c8))/0x6+parseInt(_0x55585d(0x202))/0x7*(parseInt(_0x55585d(0x204))/0x8)+parseInt(_0x55585d(0x200))/0x9;if(_0x10dd7c===_0x281409)break;else _0x77d6d7['push'](_0x77d6d7['shift']());}catch(_0x460eed){_0x77d6d7['push'](_0x77d6d7['shift']());}}}(a123_0x1ab4,0x589f2));function a123_0x1ab4(){const _0x4f230b=['WxeIg','path','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','cxHdj','utf-8','fiYCQ','500772uzUEtM','IJysw','buildIdentifier','totalNodes','map','child_process','dRlbS','env','HwYoc','UwVQq','BROWSERSTACK_TOTAL_NODE_COUNT','winstonLogger','./testOrderingServerHandler','1608231ejpeZj','LIIBP','_initializeTestOrdering','IjnNH','1093904CZgvGZ','XwHiN','EtBEe','xZLXk','addToOrderingInstrumentationData','isTestOrchestrationEnabled','isArray','split','BROWSERSTACK_NODE_INDEX','rootDir','exports','2533728TzzvmU','2xZbqYv','orderingInstrumentationData','stack','kbtBZ','setTestOrderingApplied','micromatch','testPathIgnorePatterns','BROWSERSTACK_BUILD_RUN_IDENTIFIER','\x20files','downloadedTestFilesCount','../logger','npx','cwfBC','length','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','logTestOrderingChecks','GPVVF','gQgtF','testOrderingServerHandler','toString','jest','testObservability','qReom','UojhV','orchestrationUtils','kEzFE','glob','--listTests','sdBuC','0|2|3|1|4|5','JZAOY','_shouldLogTestOrderingChecks','testOrderingApplied','info','splitTestsAPICallCount','Qpmnf','buildName','getTestOrderingName','uploadedTestFilesCount','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','YzOeJ','./orchestrationUtils','xPoZG','**/?(*.)+(spec|test).[jt]s?(x)','rTuNG','Error\x20finding\x20test\x20files:\x20','testOrderingEnabled','filter','getSplitTestsAPICallCount','Test\x20orchestration\x20without\x20test\x20ordering','GNuQT','IoRdV','439360twGZoy','NLXIF','splitTests','4150728WLeGeP','matchBase','7ekSJaA','ignore','3795112SaBJeT','testMatch','debug','stringify','findTestFiles','aJmMS','--config','config','isTestOrderingApplied','wdHbC'];a123_0x1ab4=function(){return _0x4f230b;};return a123_0x1ab4();}const logger=require(a123_0x5398b1(0x1d3))[a123_0x5398b1(0x1b7)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a123_0x5398b1(0x1b8)),OrchestrationUtils=require(a123_0x5398b1(0x1f2)),path=require(a123_0x5398b1(0x1a7)),{spawnSync}=require(a123_0x5398b1(0x1b1)),micromatch=require(a123_0x5398b1(0x1ce)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x25f847){const _0x5c696a=a123_0x5398b1,_0xa88a6d={};_0xa88a6d['dRlbS']=_0x5c696a(0x1e6);const _0x16d365=_0xa88a6d,_0x437f3e=_0x16d365[_0x5c696a(0x1b2)][_0x5c696a(0x1c4)]('|');let _0x3f0f00=0x0;while(!![]){switch(_0x437f3e[_0x3f0f00++]){case'0':this['config']=_0x25f847;continue;case'1':this[_0x5c696a(0x1db)]=null;continue;case'2':this[_0x5c696a(0x1ca)]={};continue;case'3':this[_0x5c696a(0x1e9)]=![];continue;case'4':this[_0x5c696a(0x1e1)]=new OrchestrationUtils(_0x25f847);continue;case'5':this[_0x5c696a(0x1bb)]();continue;}break;}}[a123_0x5398b1(0x1c2)](){const _0x3126f0=a123_0x5398b1,_0x5d4a98={'gQgtF':function(_0x5ec7b3,_0x3d44d8){return _0x5ec7b3(_0x3d44d8);},'WxeIg':function(_0x3e0f99,_0x146aa8){return _0x3e0f99(_0x146aa8);},'HUVQM':function(_0x47722a,_0x196858){return _0x47722a&&_0x196858;}},_0x58e217=_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)])&&(_0x5d4a98[_0x3126f0(0x1a6)](isUndefined,this['config'][_0x3126f0(0x1de)])||_0x5d4a98[_0x3126f0(0x1a6)](isTrueString,this[_0x3126f0(0x1a3)][_0x3126f0(0x1de)])),_0x396f3d=this[_0x3126f0(0x1e1)][_0x3126f0(0x1f7)](),_0xd49ea3=_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)])&&_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)]['projectName']),_0x1a4138=_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)])&&_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)][_0x3126f0(0x1ed)]);return _0x5d4a98['HUVQM'](_0x58e217,_0x396f3d)&&_0xd49ea3&&_0x1a4138;}[a123_0x5398b1(0x1bb)](){const _0x65dfa7=a123_0x5398b1,_0x39fbd7={};_0x39fbd7[_0x65dfa7(0x1a5)]=_0x65dfa7(0x1d7),_0x39fbd7[_0x65dfa7(0x1ab)]=_0x65dfa7(0x1fa);const _0x38ee6c=_0x39fbd7;this[_0x65dfa7(0x1c2)]()?(this[_0x65dfa7(0x1db)]=new TestOrderingServerHandler(this[_0x65dfa7(0x1a3)]),logger[_0x65dfa7(0x1ea)](_0x38ee6c[_0x65dfa7(0x1a5)])):(logger['debug'](_0x38ee6c[_0x65dfa7(0x1ab)]),this['logTestOrderingChecks']());}[a123_0x5398b1(0x1d8)](){const _0x5723db=a123_0x5398b1,_0xe61aae={'xPoZG':function(_0x1b7496,_0x14fae3){return _0x1b7496(_0x14fae3);},'qReom':function(_0x2e5cbf,_0x3fe2fc){return _0x2e5cbf(_0x3fe2fc);},'sdBuC':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','cxHdj':function(_0x431500,_0xf11852){return _0x431500(_0xf11852);},'Qpmnf':function(_0x5c67a0,_0x2d1093){return _0x5c67a0(_0x2d1093);},'kEzFE':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this['_shouldLogTestOrderingChecks']())return;(!_0xe61aae[_0x5723db(0x1f3)](isNotUndefined,this[_0x5723db(0x1a3)])||!_0xe61aae[_0x5723db(0x1df)](isNotUndefined,this[_0x5723db(0x1a3)]['buildName'])||!_0xe61aae[_0x5723db(0x1f3)](isNotUndefined,this['config']['projectName']))&&logger[_0x5723db(0x1ea)](_0xe61aae[_0x5723db(0x1e5)]),_0xe61aae[_0x5723db(0x1a9)](isNotUndefined,this[_0x5723db(0x1a3)])&&_0xe61aae['xPoZG'](isNotUndefined,this[_0x5723db(0x1a3)][_0x5723db(0x1de)])&&!_0xe61aae[_0x5723db(0x1ec)](isTrueString,this[_0x5723db(0x1a3)][_0x5723db(0x1de)])&&logger[_0x5723db(0x1ea)](_0xe61aae[_0x5723db(0x1e2)]);}[a123_0x5398b1(0x1e8)](){const _0x1488cf=a123_0x5398b1;return!this[_0x1488cf(0x1c2)]()&&this[_0x1488cf(0x1e1)][_0x1488cf(0x1f7)]();}[a123_0x5398b1(0x1a4)](){const _0x1e31a=a123_0x5398b1;return this[_0x1e31a(0x1e9)];}[a123_0x5398b1(0x1cd)](_0x324913){const _0x568002=a123_0x5398b1,_0x593643={};_0x593643[_0x568002(0x1b5)]='applied';const _0x48f958=_0x593643;this[_0x568002(0x1e9)]=_0x324913,this[_0x568002(0x1c1)](_0x48f958[_0x568002(0x1b5)],_0x324913);}[a123_0x5398b1(0x1c1)](_0x5c591e,_0x36f246){const _0x43f2fb=a123_0x5398b1;this[_0x43f2fb(0x1ca)][_0x5c591e]=_0x36f246;}['getOrderingInstrumentationData'](){const _0x4d3b6b=a123_0x5398b1;return this[_0x4d3b6b(0x1ca)];}['updateBuildIdentifier'](){const _0x16af38=a123_0x5398b1,_0x38a6c1={'dQygx':function(_0x2380e0,_0x5661e5){return _0x2380e0(_0x5661e5);},'XwHiN':function(_0x468310,_0x3182f9){return _0x468310>_0x3182f9;}},_0x2787fc=_0x38a6c1['dQygx'](parseInt,process[_0x16af38(0x1b3)][_0x16af38(0x1b6)]||'1'),_0xdaf11f=process[_0x16af38(0x1b3)][_0x16af38(0x1d0)];_0xdaf11f&&_0x38a6c1[_0x16af38(0x1be)](_0x2787fc,0x1)&&(logger[_0x16af38(0x206)](_0x16af38(0x1a8)+_0xdaf11f),this[_0x16af38(0x1a3)][_0x16af38(0x1ae)]=_0xdaf11f);}async['reorderTestFiles'](_0x399ae4){const _0x5bc9eb=a123_0x5398b1,_0x2e9b8e={'LIIBP':function(_0x405cf9,_0x726d22){return _0x405cf9===_0x726d22;},'NLXIF':_0x5bc9eb(0x1f0),'UojhV':function(_0x5ced6a,_0x499372){return _0x5ced6a===_0x499372;},'rTuNG':function(_0x5edaf7,_0x5e07d4){return _0x5edaf7(_0x5e07d4);},'aJmMS':function(_0x78d5bc,_0x2803e1){return _0x78d5bc(_0x2803e1);},'YzOeJ':_0x5bc9eb(0x1ef),'NeLPu':'nodeIndex','NDWQg':_0x5bc9eb(0x1af),'HwYoc':_0x5bc9eb(0x1d2),'kAeZh':_0x5bc9eb(0x1eb)};try{if(!_0x399ae4||!Array[_0x5bc9eb(0x1c3)](_0x399ae4)||_0x2e9b8e['LIIBP'](_0x399ae4[_0x5bc9eb(0x1d6)],0x0))return null;if(_0x2e9b8e[_0x5bc9eb(0x1ba)](this[_0x5bc9eb(0x1c2)](),![]))return logger['debug'](_0x2e9b8e[_0x5bc9eb(0x1fe)]),null;let _0x514fc1=null;const _0x5f1ad6=this['orchestrationUtils'][_0x5bc9eb(0x1ee)]();if(this[_0x5bc9eb(0x1db)]){const _0x4cb615=await this[_0x5bc9eb(0x1db)][_0x5bc9eb(0x1ff)](_0x399ae4,_0x5f1ad6);if(!_0x4cb615)return null;_0x514fc1=await this[_0x5bc9eb(0x1db)]['getOrderedTestFiles'](_0x4cb615);}if(!_0x514fc1||!Array['isArray'](_0x514fc1)||_0x2e9b8e[_0x5bc9eb(0x1e0)](_0x514fc1[_0x5bc9eb(0x1d6)],0x0))return null;const _0x5b1f3a=_0x2e9b8e[_0x5bc9eb(0x1f5)](parseInt,process[_0x5bc9eb(0x1b3)][_0x5bc9eb(0x1c5)]||'0'),_0x30f087=_0x2e9b8e[_0x5bc9eb(0x1a1)](parseInt,process['env'][_0x5bc9eb(0x1b6)]||'1');return this[_0x5bc9eb(0x1c1)](_0x2e9b8e[_0x5bc9eb(0x1f1)],_0x399ae4['length']),this[_0x5bc9eb(0x1c1)](_0x2e9b8e['NeLPu'],_0x5b1f3a),this[_0x5bc9eb(0x1c1)](_0x2e9b8e['NDWQg'],_0x30f087),this['addToOrderingInstrumentationData'](_0x2e9b8e[_0x5bc9eb(0x1b4)],_0x514fc1[_0x5bc9eb(0x1d6)]),this[_0x5bc9eb(0x1c1)](_0x2e9b8e['kAeZh'],this[_0x5bc9eb(0x1db)]?this[_0x5bc9eb(0x1db)][_0x5bc9eb(0x1f9)]():0x0),_0x514fc1[_0x5bc9eb(0x1b0)](_0x460f7a=>sanitizedFilePath(_0x460f7a));}catch(_0x28935c){return logger[_0x5bc9eb(0x206)]('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x28935c[_0x5bc9eb(0x1cb)]||_0x28935c[_0x5bc9eb(0x1dc)]())),null;}}async[a123_0x5398b1(0x1a0)](_0x3b2339,_0x17eca6,_0x2fe91a){const _0x366788=a123_0x5398b1,_0x483b91={'JZAOY':function(_0x16a7b9,_0x6c4c56){return _0x16a7b9(_0x6c4c56);},'GNuQT':'jest-config','RrRHe':'jest-util','IoRdV':'jest-runner','xZLXk':_0x366788(0x1e3),'uSoEC':'**/__tests__/**/*.[jt]s?(x)','kbtBZ':_0x366788(0x1f4),'cwfBC':function(_0x1a5195,_0x24b51c,_0x3c7c61,_0x43785e){return _0x1a5195(_0x24b51c,_0x3c7c61,_0x43785e);},'IjnNH':_0x366788(0x1d4),'uJLOP':_0x366788(0x1dd),'IJysw':_0x366788(0x1a2),'GPVVF':_0x366788(0x1e4),'EtBEe':_0x366788(0x1aa)};try{const {getTestPathPatterns:_0x22fb52}=_0x483b91['JZAOY'](require,_0x483b91[_0x366788(0x1fb)]),{globsToMatcher:_0x1ed189}=_0x483b91[_0x366788(0x1e7)](require,_0x483b91['RrRHe']),{findRelatedTests:_0x3fe4fd}=_0x483b91[_0x366788(0x1e7)](require,_0x483b91[_0x366788(0x1fc)]),_0x36589e=_0x483b91[_0x366788(0x1e7)](require,_0x483b91[_0x366788(0x1c0)]),_0x38d9e6=_0x3b2339[_0x366788(0x205)]||[_0x483b91['uSoEC'],_0x483b91[_0x366788(0x1cc)]],_0x5d291e=_0x3b2339[_0x366788(0x1cf)]||[],_0x28e3df=_0x483b91[_0x366788(0x1d5)](spawnSync,_0x483b91[_0x366788(0x1bc)],[_0x483b91['uJLOP'],_0x483b91[_0x366788(0x1ad)],_0x2fe91a,..._0x17eca6,_0x483b91[_0x366788(0x1d9)]],{'encoding':_0x483b91[_0x366788(0x1bf)]});let _0xd3ba7c=[];!_0x28e3df['error']&&(_0xd3ba7c=_0x28e3df['stdout'][_0x366788(0x1c4)]('\x0a')[_0x366788(0x1f8)](Boolean));logger[_0x366788(0x206)]('Found\x20test\x20files:\x20'+JSON[_0x366788(0x19f)](_0xd3ba7c)+_0x366788(0x1d1));const _0x3a34a1={};_0x3a34a1[_0x366788(0x201)]=!![],_0x3a34a1[_0x366788(0x203)]=_0x5d291e;const _0x27e2f4=_0x483b91[_0x366788(0x1d5)](micromatch,_0xd3ba7c,_0x38d9e6,_0x3a34a1)[_0x366788(0x1b0)](_0x544ff7=>path['relative'](_0x3b2339[_0x366788(0x1c6)],_0x544ff7));return logger[_0x366788(0x206)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x366788(0x19f)](_0x27e2f4)+_0x366788(0x1d1)),_0x27e2f4;}catch(_0xc5ba33){return logger['debug'](_0x366788(0x1f6)+_0xc5ba33),[];}}}module[a123_0x5398b1(0x1c7)]=TestOrchestrationHandler;
1
+ const a123_0x3f6163=a123_0x4104;function a123_0x14fa(){const _0x4c0768=['BROWSERSTACK_NODE_INDEX','isArray','length','106qTLEYm','\x20files','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','testOrderingApplied','kxHRY','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','yFsAx','sySVp','testMatch','jXdsd','ihpwR','setTestOrderingApplied','KIhtt','fwAiE','testPathIgnorePatterns','applied','bzyMg','sjQgh','Filterted\x20to\x20test\x20files:\x20','YhRac','isTestOrderingApplied','Error\x20finding\x20test\x20files:\x20','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','1659sAPlvG','mlVig','testOrderingEnabled','--config','matchBase','split','stringify','./orchestrationUtils','micromatch','876DqLbEH','nodeIndex','Bbttg','1199972Kbswew','relative','JsFQC','MhoiO','NezHP','npx','stdout','getTestOrderingName','buildIdentifier','vtNZH','glob','stack','5tsZmwy','addToOrderingInstrumentationData','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','totalNodes','./testOrderingServerHandler','Found\x20test\x20files:\x20','hhCEt','AGufl','toString','oBwTD','2208THTpbF','IEaCr','splitTests','info','qjKbK','exports','jest-config','DMHDC','debug','buildName','sFznq','UcrDU','OPjhJ','BpBJG','testOrderingServerHandler','updateBuildIdentifier','utf-8','config','uploadedTestFilesCount','xvBwW','getOrderedTestFiles','BROWSERSTACK_TOTAL_NODE_COUNT','getSplitTestsAPICallCount','ScCuv','_shouldLogTestOrderingChecks','110QXocIP','downloadedTestFilesCount','ryCaU','UfFml','map','80839MgIwKg','2248188iyGgkb','ignore','orderingInstrumentationData','fYwvC','env','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','error','--listTests','isTestOrchestrationEnabled','4136EEqNhs','393201BsNlJZ','logTestOrderingChecks','jest-runner','454750KPBJyA','jest-util','testObservability','1|3|4|0|2|5','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','orchestrationUtils'];a123_0x14fa=function(){return _0x4c0768;};return a123_0x14fa();}function a123_0x4104(_0x5bb257,_0x5a94f3){const _0x14fa6c=a123_0x14fa();return a123_0x4104=function(_0x410465,_0x2a8ea7){_0x410465=_0x410465-0x68;let _0x426f9f=_0x14fa6c[_0x410465];return _0x426f9f;},a123_0x4104(_0x5bb257,_0x5a94f3);}(function(_0x200f67,_0x1a8ef4){const _0x4c54cf=a123_0x4104,_0x6a832e=_0x200f67();while(!![]){try{const _0x328a9e=parseInt(_0x4c54cf(0x8c))/0x1+-parseInt(_0x4c54cf(0x95))/0x2*(-parseInt(_0x4c54cf(0xce))/0x3)+parseInt(_0x4c54cf(0xb8))/0x4*(parseInt(_0x4c54cf(0xc4))/0x5)+parseInt(_0x4c54cf(0x7f))/0x6+parseInt(_0x4c54cf(0xac))/0x7*(parseInt(_0x4c54cf(0x88))/0x8)+parseInt(_0x4c54cf(0x89))/0x9*(-parseInt(_0x4c54cf(0x79))/0xa)+parseInt(_0x4c54cf(0x7e))/0xb*(-parseInt(_0x4c54cf(0xb5))/0xc);if(_0x328a9e===_0x1a8ef4)break;else _0x6a832e['push'](_0x6a832e['shift']());}catch(_0x251c4b){_0x6a832e['push'](_0x6a832e['shift']());}}}(a123_0x14fa,0x42e02));const logger=require('../logger')['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a123_0x3f6163(0xc8)),OrchestrationUtils=require(a123_0x3f6163(0xb3)),path=require('path'),{spawnSync}=require('child_process'),micromatch=require(a123_0x3f6163(0xb4)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x20c986){const _0x4ed948=a123_0x3f6163,_0x564e18={};_0x564e18[_0x4ed948(0x82)]=_0x4ed948(0x8f);const _0x5b1b11=_0x564e18,_0x2a2814=_0x5b1b11[_0x4ed948(0x82)][_0x4ed948(0xb1)]('|');let _0x46bf0c=0x0;while(!![]){switch(_0x2a2814[_0x46bf0c++]){case'0':this[_0x4ed948(0x6e)]=null;continue;case'1':this[_0x4ed948(0x71)]=_0x20c986;continue;case'2':this[_0x4ed948(0x91)]=new OrchestrationUtils(_0x20c986);continue;case'3':this[_0x4ed948(0x81)]={};continue;case'4':this[_0x4ed948(0x98)]=![];continue;case'5':this['_initializeTestOrdering']();continue;}break;}}[a123_0x3f6163(0x87)](){const _0x22cf93=a123_0x3f6163,_0x3a5592={'Bbttg':function(_0x1aa07a,_0x31583c){return _0x1aa07a(_0x31583c);},'vtNZH':function(_0x1e4bfd,_0x1aa6e8){return _0x1e4bfd(_0x1aa6e8);},'Kcrqo':function(_0x4ac9af,_0x5c8c1a){return _0x4ac9af&&_0x5c8c1a;}},_0x4f393c=_0x3a5592[_0x22cf93(0xb7)](isNotUndefined,this[_0x22cf93(0x71)])&&(_0x3a5592[_0x22cf93(0xb7)](isUndefined,this[_0x22cf93(0x71)]['testObservability'])||_0x3a5592[_0x22cf93(0xb7)](isTrueString,this[_0x22cf93(0x71)][_0x22cf93(0x8e)])),_0x33c262=this['orchestrationUtils'][_0x22cf93(0xae)](),_0x51a968=_0x3a5592[_0x22cf93(0xb7)](isNotUndefined,this['config'])&&_0x3a5592['Bbttg'](isNotUndefined,this['config']['projectName']),_0x2dbe88=_0x3a5592[_0x22cf93(0xb7)](isNotUndefined,this[_0x22cf93(0x71)])&&_0x3a5592[_0x22cf93(0xc1)](isNotUndefined,this[_0x22cf93(0x71)]['buildName']);return _0x3a5592['Kcrqo'](_0x4f393c,_0x33c262)&&_0x51a968&&_0x2dbe88;}['_initializeTestOrdering'](){const _0x4ebb5e=a123_0x3f6163,_0x454fe={};_0x454fe[_0x4ebb5e(0x6c)]=_0x4ebb5e(0x90),_0x454fe[_0x4ebb5e(0x6a)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0x2646a2=_0x454fe;this[_0x4ebb5e(0x87)]()?(this[_0x4ebb5e(0x6e)]=new TestOrderingServerHandler(this[_0x4ebb5e(0x71)]),logger[_0x4ebb5e(0xd1)](_0x2646a2[_0x4ebb5e(0x6c)])):(logger[_0x4ebb5e(0x68)](_0x2646a2[_0x4ebb5e(0x6a)]),this[_0x4ebb5e(0x8a)]());}[a123_0x3f6163(0x8a)](){const _0x3a62e9=a123_0x3f6163,_0xa27770={'ScCuv':function(_0x3c9868,_0x589dc6){return _0x3c9868(_0x589dc6);},'BRTjg':function(_0x506a48,_0x4ff9a6){return _0x506a48(_0x4ff9a6);},'IWHoP':_0x3a62e9(0xab),'mlVig':function(_0xdc1e4c,_0x13e057){return _0xdc1e4c(_0x13e057);},'fwAiE':function(_0x5c31c0,_0x381b6f){return _0x5c31c0(_0x381b6f);},'jXdsd':_0x3a62e9(0x9a)};if(!this[_0x3a62e9(0x78)]())return;(!_0xa27770['ScCuv'](isNotUndefined,this[_0x3a62e9(0x71)])||!_0xa27770[_0x3a62e9(0x77)](isNotUndefined,this[_0x3a62e9(0x71)][_0x3a62e9(0x69)])||!_0xa27770['BRTjg'](isNotUndefined,this[_0x3a62e9(0x71)]['projectName']))&&logger[_0x3a62e9(0xd1)](_0xa27770['IWHoP']),_0xa27770[_0x3a62e9(0xad)](isNotUndefined,this['config'])&&_0xa27770[_0x3a62e9(0x77)](isNotUndefined,this[_0x3a62e9(0x71)][_0x3a62e9(0x8e)])&&!_0xa27770[_0x3a62e9(0xa2)](isTrueString,this['config']['testObservability'])&&logger[_0x3a62e9(0xd1)](_0xa27770[_0x3a62e9(0x9e)]);}[a123_0x3f6163(0x78)](){const _0x368e2b=a123_0x3f6163;return!this[_0x368e2b(0x87)]()&&this['orchestrationUtils'][_0x368e2b(0xae)]();}[a123_0x3f6163(0xa9)](){const _0x2feefd=a123_0x3f6163;return this[_0x2feefd(0x98)];}[a123_0x3f6163(0xa0)](_0x28e66c){const _0x4693f8=a123_0x3f6163,_0x4070bf={};_0x4070bf[_0x4693f8(0x7b)]=_0x4693f8(0xa4);const _0xa547f7=_0x4070bf;this['testOrderingApplied']=_0x28e66c,this['addToOrderingInstrumentationData'](_0xa547f7['ryCaU'],_0x28e66c);}[a123_0x3f6163(0xc5)](_0x28b7f7,_0x43c863){const _0x4e3885=a123_0x3f6163;this[_0x4e3885(0x81)][_0x28b7f7]=_0x43c863;}['getOrderingInstrumentationData'](){const _0x330faa=a123_0x3f6163;return this[_0x330faa(0x81)];}[a123_0x3f6163(0x6f)](){const _0x9f0979=a123_0x3f6163,_0x3a6835={'wofBK':function(_0xc251be,_0x1bb875){return _0xc251be(_0x1bb875);},'yFsAx':function(_0x1d7516,_0xcc5531){return _0x1d7516>_0xcc5531;}},_0x2e10a3=_0x3a6835['wofBK'](parseInt,process[_0x9f0979(0x83)][_0x9f0979(0x75)]||'1'),_0x2bcc2d=process[_0x9f0979(0x83)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x2bcc2d&&_0x3a6835[_0x9f0979(0x9b)](_0x2e10a3,0x1)&&(logger[_0x9f0979(0x68)](_0x9f0979(0x97)+_0x2bcc2d),this[_0x9f0979(0x71)][_0x9f0979(0xc0)]=_0x2bcc2d);}async['reorderTestFiles'](_0x113b2f){const _0x2dc743=a123_0x3f6163,_0x2aa103={'qjKbK':function(_0x589ed8,_0x34a09f){return _0x589ed8===_0x34a09f;},'sySVp':_0x2dc743(0xc6),'kxHRY':function(_0x11b535,_0x230a10){return _0x11b535(_0x230a10);},'xvBwW':_0x2dc743(0x72),'UcrDU':_0x2dc743(0xb6),'IEaCr':_0x2dc743(0xc7),'BpBJG':_0x2dc743(0x7a),'DMHDC':'splitTestsAPICallCount'};try{if(!_0x113b2f||!Array[_0x2dc743(0x93)](_0x113b2f)||_0x2aa103[_0x2dc743(0xd2)](_0x113b2f[_0x2dc743(0x94)],0x0))return null;if(_0x2aa103[_0x2dc743(0xd2)](this[_0x2dc743(0x87)](),![]))return logger[_0x2dc743(0x68)](_0x2aa103[_0x2dc743(0x9c)]),null;let _0x4d32d7=null;const _0x572a47=this[_0x2dc743(0x91)][_0x2dc743(0xbf)]();if(this['testOrderingServerHandler']){const _0x5c941d=await this['testOrderingServerHandler'][_0x2dc743(0xd0)](_0x113b2f,_0x572a47);if(!_0x5c941d)return null;_0x4d32d7=await this[_0x2dc743(0x6e)][_0x2dc743(0x74)](_0x5c941d);}if(!_0x4d32d7||!Array[_0x2dc743(0x93)](_0x4d32d7)||_0x2aa103[_0x2dc743(0xd2)](_0x4d32d7[_0x2dc743(0x94)],0x0))return null;const _0x58bf4c=_0x2aa103[_0x2dc743(0x99)](parseInt,process[_0x2dc743(0x83)][_0x2dc743(0x92)]||'0'),_0x1e570f=_0x2aa103[_0x2dc743(0x99)](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0x73)],_0x113b2f[_0x2dc743(0x94)]),this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0x6b)],_0x58bf4c),this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0xcf)],_0x1e570f),this['addToOrderingInstrumentationData'](_0x2aa103[_0x2dc743(0x6d)],_0x4d32d7[_0x2dc743(0x94)]),this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0xd5)],this[_0x2dc743(0x6e)]?this[_0x2dc743(0x6e)][_0x2dc743(0x76)]():0x0),_0x4d32d7['map'](_0x5f3c88=>sanitizedFilePath(_0x5f3c88));}catch(_0x418c3c){return logger[_0x2dc743(0x68)](_0x2dc743(0x84)+(_0x418c3c[_0x2dc743(0xc3)]||_0x418c3c[_0x2dc743(0xcc)]())),null;}}async['findTestFiles'](_0x12a8d4,_0x65c940,_0x2a663f){const _0x53d8b3=a123_0x3f6163,_0x4b0caa={'oBwTD':function(_0x17b3c5,_0x1fa02f){return _0x17b3c5(_0x1fa02f);},'YhRac':_0x53d8b3(0xd4),'AGufl':function(_0x4f9d0f,_0x5ee1af){return _0x4f9d0f(_0x5ee1af);},'KIhtt':_0x53d8b3(0x8d),'impHf':_0x53d8b3(0x8b),'UfFml':function(_0x2287c5,_0x4d104b){return _0x2287c5(_0x4d104b);},'MhoiO':_0x53d8b3(0xc2),'bzyMg':'**/__tests__/**/*.[jt]s?(x)','UCaAh':'**/?(*.)+(spec|test).[jt]s?(x)','NezHP':function(_0x1827dd,_0x81adaf,_0x56cfab,_0x4f2f84){return _0x1827dd(_0x81adaf,_0x56cfab,_0x4f2f84);},'SfLlq':_0x53d8b3(0xbd),'JsFQC':'jest','hhCEt':_0x53d8b3(0xaf),'ihpwR':_0x53d8b3(0x86),'sjQgh':_0x53d8b3(0x70),'OzydH':function(_0x359476,_0x25fb66,_0x4fd403,_0x346fea){return _0x359476(_0x25fb66,_0x4fd403,_0x346fea);}};try{const {getTestPathPatterns:_0x48bd6a}=_0x4b0caa[_0x53d8b3(0xcd)](require,_0x4b0caa[_0x53d8b3(0xa8)]),{globsToMatcher:_0x594f99}=_0x4b0caa[_0x53d8b3(0xcb)](require,_0x4b0caa[_0x53d8b3(0xa1)]),{findRelatedTests:_0x57c461}=_0x4b0caa[_0x53d8b3(0xcd)](require,_0x4b0caa['impHf']),_0x68e2a4=_0x4b0caa[_0x53d8b3(0x7c)](require,_0x4b0caa[_0x53d8b3(0xbb)]),_0x2ac453=_0x12a8d4[_0x53d8b3(0x9d)]||[_0x4b0caa[_0x53d8b3(0xa5)],_0x4b0caa['UCaAh']],_0x111d9b=_0x12a8d4[_0x53d8b3(0xa3)]||[],_0xb78a44=_0x4b0caa[_0x53d8b3(0xbc)](spawnSync,_0x4b0caa['SfLlq'],[_0x4b0caa[_0x53d8b3(0xba)],_0x4b0caa[_0x53d8b3(0xca)],_0x2a663f,..._0x65c940,_0x4b0caa[_0x53d8b3(0x9f)]],{'encoding':_0x4b0caa[_0x53d8b3(0xa6)]});let _0x45ff71=[];!_0xb78a44[_0x53d8b3(0x85)]&&(_0x45ff71=_0xb78a44[_0x53d8b3(0xbe)][_0x53d8b3(0xb1)]('\x0a')['filter'](Boolean));logger['debug'](_0x53d8b3(0xc9)+JSON[_0x53d8b3(0xb2)](_0x45ff71)+'\x20files');const _0x5f1249={};_0x5f1249[_0x53d8b3(0xb0)]=!![],_0x5f1249[_0x53d8b3(0x80)]=_0x111d9b;const _0x1df2b3=_0x4b0caa['OzydH'](micromatch,_0x45ff71,_0x2ac453,_0x5f1249)[_0x53d8b3(0x7d)](_0x22eb04=>path[_0x53d8b3(0xb9)](_0x12a8d4['rootDir'],_0x22eb04));return logger[_0x53d8b3(0x68)](_0x53d8b3(0xa7)+JSON[_0x53d8b3(0xb2)](_0x1df2b3)+_0x53d8b3(0x96)),_0x1df2b3;}catch(_0x15ed5f){return logger[_0x53d8b3(0x68)](_0x53d8b3(0xaa)+_0x15ed5f),[];}}}module[a123_0x3f6163(0xd3)]=TestOrchestrationHandler;