browserstack-node-sdk 1.40.2 → 1.40.3

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_0x1b42eb=a117_0x35ea;(function(_0x5fb12d,_0x53fd1f){const _0x2cec7b=a117_0x35ea,_0x4be4e7=_0x5fb12d();while(!![]){try{const _0x5aa650=-parseInt(_0x2cec7b(0x12d))/0x1*(-parseInt(_0x2cec7b(0x120))/0x2)+parseInt(_0x2cec7b(0x11d))/0x3*(parseInt(_0x2cec7b(0x8b))/0x4)+-parseInt(_0x2cec7b(0x13e))/0x5*(parseInt(_0x2cec7b(0x97))/0x6)+parseInt(_0x2cec7b(0x9c))/0x7*(-parseInt(_0x2cec7b(0x17e))/0x8)+parseInt(_0x2cec7b(0x17f))/0x9*(parseInt(_0x2cec7b(0xad))/0xa)+-parseInt(_0x2cec7b(0xa1))/0xb*(-parseInt(_0x2cec7b(0x178))/0xc)+parseInt(_0x2cec7b(0x134))/0xd;if(_0x5aa650===_0x53fd1f)break;else _0x4be4e7['push'](_0x4be4e7['shift']());}catch(_0x2f38b){_0x4be4e7['push'](_0x4be4e7['shift']());}}}(a117_0xedd6,0x54f3a));const fs=require('fs'),path=require(a117_0x1b42eb(0xef)),gitLastCommit=require(a117_0x1b42eb(0x179)),getRepoInfo=require(a117_0x1b42eb(0x126)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a117_0x1b42eb(0x158)),https=require('https'),child_process=require(a117_0x1b42eb(0xe2)),getos=require(a117_0x1b42eb(0x12a)),os=require('os'),logger=require(a117_0x1b42eb(0xe0))[a117_0x1b42eb(0xa4)],bsSetupHelper=require('../helper'),requestSpy=require(a117_0x1b42eb(0x11e)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x1b42eb(0x141)),util=require(a117_0x1b42eb(0x12c)),{fileLogger}=require(a117_0x1b42eb(0xe0)),PerformanceTester=require(a117_0x1b42eb(0xf3)),{isFunction}=require(a117_0x1b42eb(0x12f)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x1b42eb(0xde));exports['trace']=_0x44da27=>{const _0x26472c=a117_0x1b42eb;fileLogger[_0x26472c(0x14a)]('['+new Date()['toISOString']()+'][\x20OBSERVABILITY\x20]\x20'+_0x44da27);},exports[a117_0x1b42eb(0xd8)]=_0x180936=>{const _0x6f0732=a117_0x1b42eb,_0x1b5d92={};_0x1b5d92[_0x6f0732(0xe3)]=function(_0x3bb619,_0x676789){return _0x3bb619===_0x676789;},_0x1b5d92[_0x6f0732(0x168)]=_0x6f0732(0x16c);const _0x2b41aa=_0x1b5d92;fileLogger[_0x6f0732(0xd8)]('['+new Date()[_0x6f0732(0xec)]()+_0x6f0732(0x105)+_0x180936),(_0x2b41aa[_0x6f0732(0xe3)](process['env'][_0x6f0732(0x82)],_0x2b41aa[_0x6f0732(0x168)])||_0x2b41aa[_0x6f0732(0xe3)](process[_0x6f0732(0x14d)][_0x6f0732(0x82)],'1'))&&consoleHolder[_0x6f0732(0xbc)]('\x0a['+new Date()[_0x6f0732(0xec)]()+_0x6f0732(0x105)+_0x180936+'\x0a');};const a117_0x47ef8e={};a117_0x47ef8e[a117_0x1b42eb(0x98)]=!![],a117_0x47ef8e['timeout']=0xea60,a117_0x47ef8e[a117_0x1b42eb(0xf7)]=0x2,a117_0x47ef8e[a117_0x1b42eb(0xa6)]=0x2;const httpKeepAliveAgent=new http[(a117_0x1b42eb(0x108))](a117_0x47ef8e),a117_0x40f0a0={};a117_0x40f0a0[a117_0x1b42eb(0x98)]=!![],a117_0x40f0a0[a117_0x1b42eb(0xb8)]=0xea60,a117_0x40f0a0['maxSockets']=0x2,a117_0x40f0a0[a117_0x1b42eb(0xa6)]=0x2;function a117_0xedd6(){const _0x4dc59d=['nRZKd','X-BSTACK-TESTOPS','37804lQppYg','APqTR','app','join','Fzeez','object','CODECEPT_CUCUMBER','Windows','xNVmW','getPlatformDetails','hEqZH','stringify','1696998hJLiiM','keepAlive','buildTag','isArray','extractValuesWithRegexKeyMatch','7mjmhaK','yMRQr','GHJQn','ZcukZ','aKwIo','55MDpYeE','JRMgE','Authorization','winstonLogger','headers','maxTotalSockets','then','FFDEy','getUserCredentials','darwin','@cucumber/cucumber','gmMdJ','2810aRauAe','MOCHA','bnVQH','includes','wMtwH','HTNgq','Error\x20in\x20importing\x20windows-release\x20','expanded','WGijZ','format','Uploading\x20trace\x20logs\x20to:\x20','timeout','body','IwWZu','data','log','emit','fromEntries','sluzq','sKLYL','Error\x20in\x20getting\x20Linux\x20Details','GXwIv','PLAYWRIGHT','match','CUSTOM_TAG','getPlatform','default','map','avcYy','../../bin/v2/browserstackCLI','IepyQ','gYvhb','CUCUMBER','O11yHashedID','BS_TESTOPS_BUILD_HASHED_ID','null','keys','mocha','HTTP','getCustomTags','ZuLhu','jest','CODECEPT','debug','GqTSX','Content-Type','nsnzR','application/json','getUserName','../../../src/bin/utils/constants','prefix','../logger','getBrowserStackConfig','child_process','QCuLQ','BROWSERSTACK_TEST_OBSERVABILITY_YML','asyncAwaitNodeReq','JEST','isTestObservabilitySession','cwd','parse','measureWrapper','dist','toISOString','shouldReRunObservabilityTests','sendPlatformDetails','path','https','nkqQm','browserstack_executor:\x20','../performance/performance-tester','gRjaH','gfwjX','THtPm','maxSockets','UWvJh','AssertionError','/builds/','BROWSERSTACK_TEST_OBSERVABILITY','CEcuN','win32','wfxbB','iQNjW','codeceptjs','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','ckVSh','turboScaleGridDetails','zxmjy','][\x20OBSERVABILITY\x20]\x20','hpsEa','relativeTestFilePath','Agent','CgEBB','nodeRequest','UnhandledError','stack','bs:addPlatformDetails:','failureData','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','release','message','getBuildTags','toString','TEST_OBSERVABILITY_BUILD_TAG','xTSPy','BROWSERSTACK_RERUN_TESTS','Togdl','customTag','udqbK','removeAnsiColors','fGluj','gjybX','33ZHpNXM','../../helpers/request-spy','pid','2JIURsE','HYMtA','sLAtE','@playwright/test','ggJgg','agent','git-repo-info','platformVersion','isUndefined','getFailureType','getos','DBzbU','util','174947ExwsRr','EJICw','lodash','Allrj','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','VXcoM','getAccessKey','7524283HhJuol','automate','rFetQ','push','getObservabilityLinkedProductName','MyDbi','Linux','__cloud_provider___','test','O11Y_URL','10bEBZoQ','ZTjXr','vcMSH','../../bin/utils/logPatcher','eVSft','trim','getCapabilities','getSyncScript','info','BROWSERSTACK_TESTHUB_JWT','ddknU','4|2|1|5|0|3','silly','turboscale','readConfig','env','nYtvO','replace','modifyReqForTraceUpload','platformName','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','kbyts','uJPAY','patchConsoleLogger','WwCWa','^CUSTOM_TAG_\x5cd+$','http','HUB_URL_REGEX','getFrameworkVersion','backtrace','err','browserstack','aFYsv','bZXCK','KjmKN','TEST_PLATFORM','\x20:\x20','FmwEB','dhHgK','ahFaG','unknown_grid','rVKBf','QxgyB','fileName','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','OS\x20X','true','error','relative','local_grid','split','platform','length','ThxTk','hostname','getPackageVersion','IhISb','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','122736xSIXNV','git-last-commit','addRequestSpy','jeadS','formData','undefined','5066896Klegxp','20439wbaFfQ','annotate','FbIDj','vndwK','toJSON','bs:addLog:','Visit\x20','logs','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','uvZCO','capabilities','wPEyf','FbETq','BROWSERSTACK_OBSERVABILITY_DEBUG','RvGMJ','test_run_uuid','getDefaultHeaders','app-automate','forEach','yqwNI'];a117_0xedd6=function(){return _0x4dc59d;};return a117_0xedd6();}const httpsKeepAliveAgent=new https[(a117_0x1b42eb(0x108))](a117_0x40f0a0),a117_0x5e3419={};a117_0x5e3419[a117_0x1b42eb(0x98)]=!![],a117_0x5e3419[a117_0x1b42eb(0xb8)]=0xea60,a117_0x5e3419['maxSockets']=0x2,a117_0x5e3419[a117_0x1b42eb(0xa6)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x1b42eb(0x108))](a117_0x5e3419),a117_0x5ef5e6={};function a117_0x35ea(_0x2a365a,_0x2679b1){const _0xedd66e=a117_0xedd6();return a117_0x35ea=function(_0x35eab1,_0x1a691f){_0x35eab1=_0x35eab1-0x7a;let _0x437a36=_0xedd66e[_0x35eab1];return _0x437a36;},a117_0x35ea(_0x2a365a,_0x2679b1);}a117_0x5ef5e6[a117_0x1b42eb(0x98)]=!![],a117_0x5ef5e6[a117_0x1b42eb(0xb8)]=0xea60,a117_0x5ef5e6['maxSockets']=0x2,a117_0x5ef5e6[a117_0x1b42eb(0xa6)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x1b42eb(0x108))](a117_0x5ef5e6);exports[a117_0x1b42eb(0xed)]=()=>{const _0x4d55f7=a117_0x1b42eb,_0x590f3f={};_0x590f3f[_0x4d55f7(0x17b)]=function(_0x53a681,_0x538442){return _0x53a681!==_0x538442;},_0x590f3f[_0x4d55f7(0x160)]=_0x4d55f7(0xd0);const _0x2720a8=_0x590f3f;return process['env'][_0x4d55f7(0x116)]&&_0x2720a8[_0x4d55f7(0x17b)](process[_0x4d55f7(0x14d)]['BROWSERSTACK_RERUN_TESTS'],_0x2720a8['KjmKN'])?!![]:![];},exports[a117_0x1b42eb(0xe7)]=()=>{const _0x806134=a117_0x1b42eb,_0x42feca={};_0x42feca[_0x806134(0x95)]=function(_0x15ca61,_0xb038dc){return _0x15ca61===_0xb038dc;},_0x42feca[_0x806134(0x11c)]=_0x806134(0x16c),_0x42feca['Ssdot']=function(_0x3430ba,_0x2b1772){return _0x3430ba===_0x2b1772;};const _0x726b41=_0x42feca;let _0x14cf7a=!![];return process[_0x806134(0x14d)][_0x806134(0xe4)]&&(_0x14cf7a=_0x726b41[_0x806134(0x95)](process[_0x806134(0x14d)][_0x806134(0xe4)],_0x726b41[_0x806134(0x11c)])),process[_0x806134(0x14d)][_0x806134(0xfb)]&&(_0x14cf7a=_0x726b41['Ssdot'](process[_0x806134(0x14d)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x726b41[_0x806134(0x11c)])),_0x14cf7a;},exports['parseFileNames']=_0x5ef17b=>{const _0x188a83=a117_0x1b42eb;if(bsSetupHelper[_0x188a83(0x128)](_0x5ef17b))return undefined;try{return _0x5ef17b[_0x188a83(0x143)]()[_0x188a83(0x170)](',');}catch(_0x530c39){return undefined;}},exports['printBuildLink']=()=>{const _0xf98285=a117_0x1b42eb,_0x183d36={'wMtwH':function(_0xc216d,_0x4cbe94){return _0xc216d(_0x4cbe94);},'FmwEB':_0xf98285(0xca),'JZNSW':function(_0x340ac1,_0x41579d){return _0x340ac1!==_0x41579d;},'gfwjX':_0xf98285(0xd0),'ahFaG':function(_0x241e54,_0x28ef60){return _0x241e54!==_0x28ef60;},'REJym':_0xf98285(0x17d),'GHJQn':_0xf98285(0x131)};return PerformanceTester[_0xf98285(0xea)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x28c5a1=_0xf98285;try{const _0x2e9edc=_0x183d36[_0x28c5a1(0xb1)](require,_0x183d36[_0x28c5a1(0x163)]);if(_0x2e9edc[_0x28c5a1(0xce)]){logger[_0x28c5a1(0x146)](_0x28c5a1(0x7b)+O11Y_URL+_0x28c5a1(0xfa)+_0x2e9edc[_0x28c5a1(0xce)]+_0x28c5a1(0x101));return;}process[_0x28c5a1(0x14d)][_0x28c5a1(0xcf)]&&_0x183d36['JZNSW'](process[_0x28c5a1(0x14d)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x183d36[_0x28c5a1(0xf5)])&&_0x183d36[_0x28c5a1(0x165)](process[_0x28c5a1(0x14d)][_0x28c5a1(0xcf)],_0x183d36['REJym'])&&logger[_0x28c5a1(0x146)](_0x28c5a1(0x7b)+constants[_0x28c5a1(0x13d)]+_0x28c5a1(0xfa)+process[_0x28c5a1(0x14d)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x28c5a1(0x101));}catch(_0x99aec8){logger['error'](util[_0x28c5a1(0xb6)](_0x183d36[_0x28c5a1(0x9e)],new Date()[_0x28c5a1(0xec)](),_0x99aec8['stack']||_0x99aec8[_0x28c5a1(0x111)]||_0x99aec8));}})();},exports[a117_0x1b42eb(0x129)]=_0x3d4dac=>{const _0x14af7e=a117_0x1b42eb,_0x680a6d={};_0x680a6d[_0x14af7e(0xfc)]=_0x14af7e(0xf9),_0x680a6d[_0x14af7e(0xb2)]=_0x14af7e(0x10b);const _0x2043b4=_0x680a6d;if(!_0x3d4dac)return null;return _0x3d4dac[_0x14af7e(0x113)]()[_0x14af7e(0xc4)](/AssertionError/)?_0x2043b4[_0x14af7e(0xfc)]:_0x2043b4[_0x14af7e(0xb2)];},exports[a117_0x1b42eb(0x15a)]=_0x4d6494=>{const _0x441087=a117_0x1b42eb,_0x203262={};_0x203262['vndwK']=_0x441087(0xd2),_0x203262[_0x441087(0xac)]=_0x441087(0x123),_0x203262[_0x441087(0x83)]=_0x441087(0x100),_0x203262[_0x441087(0xd5)]=_0x441087(0xd6),_0x203262[_0x441087(0x102)]=_0x441087(0xab);const _0x57613d=_0x203262;let _0x5defda=null;switch(_0x4d6494){case FRAMEWORKS[_0x441087(0xae)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0x182)]);break;case FRAMEWORKS[_0x441087(0xc3)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0xac)]);break;case FRAMEWORKS[_0x441087(0xd7)]:case FRAMEWORKS[_0x441087(0x91)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0x83)]);break;case FRAMEWORKS[_0x441087(0xe6)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0xd5)]);break;case FRAMEWORKS[_0x441087(0xcd)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d['ckVSh']);break;default:break;}return _0x5defda;},exports[a117_0x1b42eb(0xe1)]=_0x346448=>{const _0x55fa9f=a117_0x1b42eb;let _0x4352d=null;switch(_0x346448){case FRAMEWORKS[_0x55fa9f(0xc3)]:_0x4352d=process[_0x55fa9f(0x14d)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x4352d)return;return bsSetupHelper[_0x55fa9f(0x14c)](_0x4352d,![]);},exports[a117_0x1b42eb(0xa9)]=_0xb13ab2=>{const _0x749d07=a117_0x1b42eb;return{'username':bsSetupHelper[_0x749d07(0xdd)](_0xb13ab2),'accessKey':bsSetupHelper[_0x749d07(0x133)](_0xb13ab2)};},exports[a117_0x1b42eb(0x150)]=(_0x3c6214,_0x10817)=>{const _0x25f93d=a117_0x1b42eb,_0x9cbaf0={};_0x9cbaf0['WGijZ']=_0x25f93d(0x149),_0x9cbaf0[_0x25f93d(0x117)]='LogCreated',_0x9cbaf0[_0x25f93d(0x80)]='TEST_ATTACHMENT';const _0x3f8c9d=_0x9cbaf0,_0x4b7e7=_0x3f8c9d[_0x25f93d(0xb5)]['split']('|');let _0x35e886=0x0;while(!![]){switch(_0x4b7e7[_0x35e886++]){case'0':delete _0x3c6214['json'];continue;case'1':_0x3c6214[_0x25f93d(0x17c)]={'data':_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)][0x0][_0x25f93d(0xbb)],'test_run_uuid':_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)][0x0][_0x25f93d(0x84)],'event_type':_0x3f8c9d[_0x25f93d(0x117)],'kind':_0x3f8c9d[_0x25f93d(0x80)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x25f93d(0xec)](),'fileName':_0x3c6214['body'][0x0][_0x25f93d(0x7c)][0x0][_0x25f93d(0x169)]};continue;case'2':if(!_0x3c6214[_0x25f93d(0xb9)][0x0]||!_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)]||!_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)][_0x25f93d(0x172)])return;continue;case'3':delete _0x10817[_0x25f93d(0xa5)];continue;case'4':if(!_0x3c6214[_0x25f93d(0xb9)]||!Array[_0x25f93d(0x9a)](_0x3c6214['body']))return;continue;case'5':delete _0x3c6214[_0x25f93d(0xb9)];continue;}break;}},exports[a117_0x1b42eb(0xe5)]=async(_0x20ac04,_0xbababe,_0x2c6a06,_0x102188,_0x382a26=!![])=>{const _0x20ab6a=a117_0x1b42eb,_0x4bca53={};_0x4bca53[_0x20ab6a(0xdb)]=function(_0x4b4b8f,_0x3290e6){return _0x4b4b8f===_0x3290e6;},_0x4bca53[_0x20ab6a(0x7e)]=_0x20ab6a(0xda),_0x4bca53[_0x20ab6a(0x148)]=_0x20ab6a(0xdc),_0x4bca53[_0x20ab6a(0x167)]=_0x20ab6a(0xf0),_0x4bca53[_0x20ab6a(0x156)]=function(_0x2cf240,_0x5b5991){return _0x2cf240!==_0x5b5991;},_0x4bca53[_0x20ab6a(0x9d)]=_0x20ab6a(0x90),_0x4bca53[_0x20ab6a(0xf6)]=_0x20ab6a(0x177);const _0x19598f=_0x4bca53,_0x1e5ece={..._0x102188,...{'method':_0x20ac04,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0xbababe,'body':_0x2c6a06,'json':_0x19598f[_0x20ab6a(0xdb)](_0x102188[_0x20ab6a(0xa5)][_0x19598f[_0x20ab6a(0x7e)]],_0x19598f[_0x20ab6a(0x148)]),'agent':API_URL[_0x20ab6a(0xb0)](_0x19598f[_0x20ab6a(0x167)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x19598f['nsnzR'](_0xbababe,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1e5ece[_0x20ab6a(0x125)]=API_URL[_0x20ab6a(0xb0)](_0x19598f['rVKBf'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x20ab6a(0x150)](_0x1e5ece,_0x102188),logger['debug'](_0x20ab6a(0xb7)+_0x1e5ece['url']));try{const {statusCode:_0x45b23b,body:_0x5321bc}=await bsSetupHelper[_0x20ab6a(0x10a)](_0x20ac04,_0xbababe,_0x1e5ece,_0x102188,_0x1e5ece['url']);if(_0x19598f[_0x20ab6a(0x156)](_0x45b23b,0xc8))return _0x5321bc?_0x5321bc:_0x20ab6a(0x152)+_0x45b23b;let _0x3633da=_0x5321bc;if(_0x382a26)try{_0x19598f[_0x20ab6a(0x156)](typeof _0x5321bc,_0x19598f['yMRQr'])&&(_0x3633da=JSON[_0x20ab6a(0xe9)](_0x5321bc));}catch(_0x522371){logger[_0x20ab6a(0x16d)](_0x19598f['THtPm'],_0x5321bc,util['format'](_0x522371));}const _0x191155={};return _0x191155[_0x20ab6a(0xbb)]=_0x3633da,_0x191155;}catch(_0x52f563){logger[_0x20ab6a(0x16d)](_0x20ab6a(0x16a)+util[_0x20ab6a(0xb6)](_0x52f563));throw _0x52f563;}},exports['nodeRequest']=(_0x112250,_0x286507,_0x250654,_0x74bb01,_0xb2b425=!![])=>{const _0x163afb=a117_0x1b42eb,_0x3575f1={'xNVmW':function(_0x15fc58,_0x492e34){return _0x15fc58!==_0x492e34;},'CgEBB':function(_0x220646,_0x2a7207){return _0x220646(_0x2a7207);},'yqwNI':function(_0x30f967,_0x122926){return _0x30f967!==_0x122926;},'nYtvO':'object','hgxdJ':function(_0x11eb33,_0x46efca){return _0x11eb33(_0x46efca);},'yTEru':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','PhpZo':function(_0x2682a2,_0x19113a){return _0x2682a2===_0x19113a;},'YFgBp':_0x163afb(0xda),'IwWZu':_0x163afb(0xdc),'vcMSH':_0x163afb(0xf0),'zxmjy':function(_0x277cb6,_0x48a863){return _0x277cb6===_0x48a863;}};return new Promise((_0x5594bf,_0x24158b)=>{const _0x33ca77=_0x163afb,_0x26d83d={..._0x74bb01,...{'method':_0x112250,'url':API_URL+'/'+_0x286507,'body':_0x250654,'json':_0x3575f1['PhpZo'](_0x74bb01['headers'][_0x3575f1['YFgBp']],_0x3575f1[_0x33ca77(0xba)]),'agent':API_URL[_0x33ca77(0xb0)](_0x3575f1[_0x33ca77(0x140)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3575f1[_0x33ca77(0x104)](_0x286507,SCREENSHOT_ENDPOINT)&&(_0x26d83d[_0x33ca77(0x125)]=API_URL[_0x33ca77(0xb0)](_0x3575f1['vcMSH'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x33ca77(0x10a)](_0x112250,_0x286507,_0x26d83d,_0x74bb01,API_URL)[_0x33ca77(0xa7)](({statusCode:_0x338bc3,body:_0x1ac955})=>{const _0x203a04=_0x33ca77;if(_0x3575f1[_0x203a04(0x93)](_0x338bc3,0xc8))_0x3575f1[_0x203a04(0x109)](_0x24158b,_0x1ac955?_0x1ac955:_0x203a04(0x152)+_0x338bc3);else{if(_0xb2b425)try{_0x3575f1[_0x203a04(0x88)](typeof _0x1ac955,_0x3575f1[_0x203a04(0x14e)])&&(_0x1ac955=JSON[_0x203a04(0xe9)](_0x1ac955));}catch(_0x5b9d7d){_0x3575f1['hgxdJ'](_0x24158b,_0x3575f1['yTEru']);return;}const _0x3286b1={};_0x3286b1[_0x203a04(0xbb)]=_0x1ac955,_0x3575f1[_0x203a04(0x109)](_0x5594bf,_0x3286b1);}})['catch'](_0x36fa98=>{_0x36fa98&&_0x3575f1['hgxdJ'](_0x24158b,_0x36fa98);});});},exports[a117_0x1b42eb(0x112)]=_0x309f7b=>{const _0x419635=a117_0x1b42eb;if(process[_0x419635(0x14d)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x419635(0x14d)][_0x419635(0x114)]['split'](',');if(_0x309f7b['buildTag'])return _0x309f7b[_0x419635(0x99)];return[];},exports[a117_0x1b42eb(0x85)]=(_0x10c09c=!![])=>{const _0x120cf8=a117_0x1b42eb,_0x394de8={};_0x394de8[_0x120cf8(0x153)]=_0x120cf8(0xdc),_0x394de8['GXwIv']=_0x120cf8(0x16c),_0x394de8[_0x120cf8(0x130)]=_0x120cf8(0xa3);const _0x38920a=_0x394de8,_0x31b894={};_0x31b894[_0x120cf8(0xda)]=_0x38920a['kbyts'],_0x31b894[_0x120cf8(0x8a)]=_0x38920a[_0x120cf8(0xc2)];const _0x38f618=_0x31b894;return _0x10c09c&&process[_0x120cf8(0x14d)][_0x120cf8(0x147)]&&(_0x38f618[_0x38920a[_0x120cf8(0x130)]]='Bearer\x20'+process[_0x120cf8(0x14d)]['BROWSERSTACK_TESTHUB_JWT']),_0x38f618;},exports[a117_0x1b42eb(0x9b)]=_0x1a6b30=>{const _0x51abab=a117_0x1b42eb,_0x153397={};_0x153397[_0x51abab(0xfe)]=_0x51abab(0x157);const _0x1cd635=_0x153397,_0x3a20b8=[],_0x1ac68e=new RegExp(_0x1cd635['wfxbB'],'i');return Object[_0x51abab(0xd1)](_0x1a6b30)['filter'](_0xfdddf0=>_0x1ac68e['test'](_0xfdddf0))[_0x51abab(0x87)](_0x320cab=>_0x3a20b8[_0x51abab(0x137)](_0x1a6b30[_0x320cab])),_0x3a20b8;},exports[a117_0x1b42eb(0xd4)]=_0x3c91a8=>{const _0x48ba2c=a117_0x1b42eb,_0x528086=[],_0x521183=_0x3c91a8[_0x48ba2c(0x118)]||process[_0x48ba2c(0x14d)][_0x48ba2c(0xc5)];return _0x521183&&_0x528086['push'](_0x521183),_0x528086[_0x48ba2c(0x137)](...exports[_0x48ba2c(0x9b)](process[_0x48ba2c(0x14d)])),_0x528086[_0x48ba2c(0x137)](...exports[_0x48ba2c(0x9b)](_0x3c91a8)),_0x528086;},exports['removeAnsiColors']=_0x42073d=>{const _0x14cf63=a117_0x1b42eb;if(!_0x42073d)return'';return _0x42073d[_0x14cf63(0x14f)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x4bf4cf=0x64)=>new Promise(_0x138881=>setTimeout(_0x138881,_0x4bf4cf));const getPlatformName=()=>{const _0xdedcaf=a117_0x1b42eb,_0x24bae2={};_0x24bae2[_0xdedcaf(0xcb)]=function(_0x147cd4,_0x2b44dd){return _0x147cd4===_0x2b44dd;},_0x24bae2[_0xdedcaf(0xa2)]=_0xdedcaf(0xfd),_0x24bae2[_0xdedcaf(0xbf)]=_0xdedcaf(0x92),_0x24bae2[_0xdedcaf(0xf4)]=_0xdedcaf(0xaa),_0x24bae2[_0xdedcaf(0x173)]=_0xdedcaf(0x16b),_0x24bae2['nRZKd']=function(_0x111d74,_0x9ace3e){return _0x111d74===_0x9ace3e;},_0x24bae2[_0xdedcaf(0x81)]='linux',_0x24bae2[_0xdedcaf(0xf1)]='Linux',_0x24bae2[_0xdedcaf(0x12b)]='Unknown';const _0x10c267=_0x24bae2;if(_0x10c267[_0xdedcaf(0xcb)](process[_0xdedcaf(0x171)],_0x10c267[_0xdedcaf(0xa2)]))return _0x10c267[_0xdedcaf(0xbf)];if(_0x10c267[_0xdedcaf(0xcb)](process['platform'],_0x10c267[_0xdedcaf(0xf4)]))return _0x10c267[_0xdedcaf(0x173)];if(_0x10c267[_0xdedcaf(0x89)](process[_0xdedcaf(0x171)],_0x10c267[_0xdedcaf(0x81)]))return _0x10c267['nkqQm'];return _0x10c267[_0xdedcaf(0x12b)];},getMacOSVersion=()=>{const _0x4fd9f7=a117_0x1b42eb,_0x5153a2={};_0x5153a2[_0x4fd9f7(0x164)]='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 _0x152e94=_0x5153a2;return child_process['execSync'](_0x152e94[_0x4fd9f7(0x164)])[_0x4fd9f7(0x113)]()[_0x4fd9f7(0x143)]();},getLinuxDetails=()=>{const _0x5626d0={'rFetQ':function(_0x4de6ad,_0x1cd759){return _0x4de6ad(_0x1cd759);},'EJICw':function(_0x3265fe,_0x2826ba){return _0x3265fe(_0x2826ba);}};return new Promise((_0x51fbf1,_0x142418)=>{const _0x893c03=a117_0x35ea;_0x5626d0[_0x893c03(0x12e)](getos,(_0x138bc6,_0x525672)=>{const _0x6e4ddd=_0x893c03;if(_0x138bc6)return _0x5626d0['rFetQ'](_0x142418,_0x138bc6);_0x5626d0[_0x6e4ddd(0x136)](_0x51fbf1,_0x525672);});});};exports[a117_0x1b42eb(0x94)]=async()=>{const _0x1f211d=a117_0x1b42eb,_0x5e3bfb={'egYuY':function(_0x1c00a4){return _0x1c00a4();},'sKLYL':_0x1f211d(0x16b),'bnVQH':'Windows','hpsEa':'windows-release','HZdXb':function(_0x22a93e){return _0x22a93e();},'aFYsv':_0x1f211d(0x13a),'IhISb':_0x1f211d(0xc1)};let _0x5dc53d=_0x5e3bfb['egYuY'](getPlatformName),_0x38f308=os[_0x1f211d(0x110)]()[_0x1f211d(0x113)]();switch(_0x5dc53d){case _0x5e3bfb[_0x1f211d(0xc0)]:_0x38f308=_0x5e3bfb['egYuY'](getMacOSVersion);break;case _0x5e3bfb[_0x1f211d(0xaf)]:try{const _0x10a84e=(await import(_0x5e3bfb[_0x1f211d(0x106)]))[_0x1f211d(0xc7)];_0x38f308=_0x5e3bfb['HZdXb'](_0x10a84e);}catch(_0x824e75){exports[_0x1f211d(0xd8)](_0x1f211d(0xb3)+_0x824e75['toString']());}break;case _0x5e3bfb[_0x1f211d(0x15e)]:try{const _0x1c8046=await _0x5e3bfb['HZdXb'](getLinuxDetails);_0x1c8046[_0x1f211d(0xeb)]&&(_0x5dc53d=_0x1c8046[_0x1f211d(0xeb)]),_0x1c8046[_0x1f211d(0x110)]&&(_0x38f308=_0x1c8046['release'][_0x1f211d(0x113)]());}catch(_0x5bcd8a){exports[_0x1f211d(0xd8)](_0x5e3bfb[_0x1f211d(0x176)]);}break;default:break;}const _0x1da470={};return _0x1da470[_0x1f211d(0x151)]=_0x5dc53d,_0x1da470[_0x1f211d(0x127)]=_0x38f308,_0x1da470;},exports[a117_0x1b42eb(0x10e)]=(_0x2d0aca,_0x348555)=>{const _0x5ddd1f=a117_0x1b42eb,_0x42c07c={};_0x42c07c[_0x5ddd1f(0xff)]=function(_0x290f97,_0x40e865){return _0x290f97===_0x40e865;},_0x42c07c['FbIDj']=_0x5ddd1f(0x13c),_0x42c07c[_0x5ddd1f(0x122)]=function(_0x8a1049,_0x5192e8){return _0x8a1049===_0x5192e8;},_0x42c07c['djzSs']=_0x5ddd1f(0x15c);const _0x5acf70=_0x42c07c;if(!_0x2d0aca)return[];try{if(_0x5acf70[_0x5ddd1f(0xff)](_0x348555,_0x5acf70[_0x5ddd1f(0x181)]))return _0x2d0aca[_0x5ddd1f(0xc8)](_0x250490=>{const _0x1f1ced=_0x5ddd1f,{stack:_0x59556d,..._0x4780f1}=_0x250490,_0x5b0d1b=Object[_0x1f1ced(0xd1)](_0x4780f1)['map'](_0x38677e=>{return _0x38677e+':\x20'+_0x4780f1[_0x38677e];}),_0x13ed2c=_0x59556d?exports[_0x1f1ced(0x11a)](_0x59556d)[_0x1f1ced(0x170)](/\r?\n/):[exports[_0x1f1ced(0x11a)](_0x250490[_0x1f1ced(0x111)])],_0x4f12f2={};return _0x4f12f2[_0x1f1ced(0x15b)]=_0x13ed2c,_0x4f12f2[_0x1f1ced(0xb4)]=_0x5b0d1b,_0x4f12f2;});else{if(_0x5acf70['sLAtE'](_0x348555,_0x5acf70['djzSs'])){const _0x4ab527=[],_0xc4eda7=[];return Object[_0x5ddd1f(0xd1)](_0x2d0aca)[_0x5ddd1f(0x87)](_0x474281=>{const _0x327b15=_0x5ddd1f;try{_0xc4eda7[_0x327b15(0x137)](_0x474281+':\x20'+_0x2d0aca[_0x474281]);}catch(_0x45c25a){exports[_0x327b15(0xd8)](_0x327b15(0x7d)+_0x45c25a[_0x327b15(0x111)]+_0x327b15(0x162)+_0x45c25a[_0x327b15(0x15b)]);}}),_0x4ab527[_0x5ddd1f(0x137)]({'backtrace':exports[_0x5ddd1f(0x11a)](_0x2d0aca[_0x5ddd1f(0x10c)])[_0x5ddd1f(0x170)](/\r?\n/),'expanded':_0xc4eda7}),_0x4ab527;}}return[];}catch(_0x36a7fc){exports[_0x5ddd1f(0xd8)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x36a7fc[_0x5ddd1f(0x111)]+_0x5ddd1f(0x162)+_0x36a7fc['backtrace']);}return[];};class PathHelper{constructor(_0xbd2d02,_0x57c683){const _0x7ff378=a117_0x1b42eb;this['config']=_0xbd2d02,this[_0x7ff378(0xdf)]=_0x57c683;}[a117_0x1b42eb(0x107)](_0x176a17){const _0x4db1fe=a117_0x1b42eb,_0x106b36=this['config'][_0x4db1fe(0xe8)]||this['config']['rootDir'];return path[_0x4db1fe(0x16e)](_0x106b36,_0x176a17);}['prefixTestPath'](_0x4fa06d){const _0x1cc747=a117_0x1b42eb,_0x536a3d=this[_0x1cc747(0x107)](_0x4fa06d);return this['prefix']?path[_0x1cc747(0x8e)](this[_0x1cc747(0xdf)],_0x536a3d):_0x536a3d;}}exports['PathHelper']=PathHelper,exports[a117_0x1b42eb(0x17a)]=(_0x410bcd=!![])=>{const _0x55d3d7=a117_0x1b42eb,_0x28fc79={};_0x28fc79[_0x55d3d7(0xcc)]=function(_0x233125,_0x3315b7){return _0x233125===_0x3315b7;},_0x28fc79[_0x55d3d7(0x8f)]=_0x55d3d7(0x8a),_0x28fc79['ZcukZ']=_0x55d3d7(0x16c),_0x28fc79[_0x55d3d7(0x15f)]=_0x55d3d7(0xd3),_0x28fc79[_0x55d3d7(0x11b)]='browserstack',_0x28fc79['MyDbi']=_0x55d3d7(0x16f);const _0x2c5301=_0x28fc79;requestSpy['spy']((_0x4f744c,_0x26cb64)=>{const _0x1a3c4e=_0x55d3d7;_0x26cb64&&!(_0x26cb64['headers']&&_0x2c5301['gYvhb'](_0x26cb64[_0x1a3c4e(0xa5)][_0x2c5301[_0x1a3c4e(0x8f)]],_0x2c5301[_0x1a3c4e(0x9f)]))&&(_0x26cb64['host']=_0x26cb64['hostname'],delete _0x26cb64[_0x1a3c4e(0x174)],_0x410bcd&&process['emit'](_0x1a3c4e(0x7a)+process[_0x1a3c4e(0x11f)],{'timestamp':new Date()[_0x1a3c4e(0xec)](),'level':null,'message':null,'kind':_0x2c5301[_0x1a3c4e(0x15f)],'http_response':_0x26cb64})),_0x26cb64&&(constants[_0x1a3c4e(0x159)][_0x1a3c4e(0x13c)](_0x26cb64['host'])||constants['ATS_HUB_URL_REGEX'][_0x1a3c4e(0x13c)](_0x26cb64['host']))?global[_0x1a3c4e(0x13b)]=_0x2c5301[_0x1a3c4e(0x11b)]:global[_0x1a3c4e(0x13b)]=_0x2c5301[_0x1a3c4e(0x139)];});},exports[a117_0x1b42eb(0x155)]=()=>{const _0x251859=a117_0x1b42eb,_0x5707e6={'nVxnl':function(_0x4988d7,_0x125683){return _0x4988d7(_0x125683);}};console={},Object['keys'](consoleHolder)[_0x251859(0x87)](_0x473843=>{_0x5707e6['nVxnl'](isFunction,consoleHolder[_0x473843])?console[_0x473843]=(..._0x2c9e94)=>{const _0x55d13f=a117_0x35ea;try{!Object['keys'](BSTestOpsPatcher)[_0x55d13f(0xb0)](_0x473843)?consoleHolder[_0x473843](..._0x2c9e94):BSTestOpsPatcher[_0x473843](..._0x2c9e94);}catch(_0x5543d7){consoleHolder[_0x473843](..._0x2c9e94);}}:console[_0x473843]=consoleHolder[_0x473843];});},exports[a117_0x1b42eb(0x145)]=()=>a117_0x1b42eb(0xf2)+JSON[a117_0x1b42eb(0x96)]({'action':a117_0x1b42eb(0x180),'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':a117_0x1b42eb(0xd8)}}),exports[a117_0x1b42eb(0x138)]=_0x2a7cd0=>{const _0x159f6b=a117_0x1b42eb,_0x59c773={};_0x59c773[_0x159f6b(0x121)]=function(_0x2f80f3,_0x2b5ec1){return _0x2f80f3===_0x2b5ec1;},_0x59c773[_0x159f6b(0x142)]='browserstack',_0x59c773['avcYy']='appium:app',_0x59c773[_0x159f6b(0x124)]=_0x159f6b(0x8d),_0x59c773[_0x159f6b(0xd9)]=function(_0x318247,_0x26a692){return _0x318247>_0x26a692;},_0x59c773[_0x159f6b(0x119)]=_0x159f6b(0x86),_0x59c773[_0x159f6b(0x154)]='bstack:options',_0x59c773[_0x159f6b(0xa8)]=_0x159f6b(0x103),_0x59c773[_0x159f6b(0x132)]=_0x159f6b(0x14b),_0x59c773[_0x159f6b(0x8c)]=_0x159f6b(0x135);const _0x3b8c38=_0x59c773;let _0x58ce6a=null;try{if(_0x3b8c38['HYMtA'](global[_0x159f6b(0x13b)],_0x3b8c38['eVSft'])){if(_0x2a7cd0[_0x3b8c38[_0x159f6b(0xc9)]]||_0x2a7cd0[_0x3b8c38[_0x159f6b(0x124)]]||!bsSetupHelper[_0x159f6b(0x128)](global[_0x159f6b(0x7f)])&&_0x3b8c38[_0x159f6b(0xd9)](global[_0x159f6b(0x7f)][_0x159f6b(0x172)],0x0)&&(global[_0x159f6b(0x7f)][0x0][_0x3b8c38[_0x159f6b(0x124)]]||global[_0x159f6b(0x7f)][0x0][_0x3b8c38[_0x159f6b(0xc9)]]))_0x58ce6a=_0x3b8c38[_0x159f6b(0x119)];else _0x2a7cd0[_0x3b8c38[_0x159f6b(0x154)]]&&_0x2a7cd0[_0x3b8c38[_0x159f6b(0x154)]][_0x3b8c38[_0x159f6b(0xa8)]]?_0x58ce6a=_0x3b8c38[_0x159f6b(0x132)]:_0x58ce6a=_0x3b8c38[_0x159f6b(0x8c)];}}catch(_0x3277f3){exports['debug']('Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20'+_0x3277f3);}return _0x58ce6a;},exports[a117_0x1b42eb(0xee)]=async(_0x5e540f,_0x31a620,_0x1e3a01=![])=>{const _0xcdb263=a117_0x1b42eb,_0x4f6017={};_0x4f6017[_0xcdb263(0xa0)]=function(_0x977a5a,_0x33e7){return _0x977a5a===_0x33e7;},_0x4f6017['xTSPy']=_0xcdb263(0x15d),_0x4f6017[_0xcdb263(0x13f)]=_0xcdb263(0x166),_0x4f6017[_0xcdb263(0xf8)]=_0xcdb263(0x161);const _0x2a8bd1=_0x4f6017;try{const _0x2a36a6=await _0x5e540f[_0xcdb263(0x144)](),_0x5bd604=await _0x5e540f['getSession'](),_0x15b765={},_0x397009=Object[_0xcdb263(0xbe)](_0x5bd604['getCapabilities']()['map_']),_0x377d1c={'product':exports[_0xcdb263(0x138)](_0x397009),'capabilities':_0x397009,'platform':_0x2a36a6[_0xcdb263(0xc6)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x2a8bd1[_0xcdb263(0xa0)](global[_0xcdb263(0x13b)],_0x2a8bd1[_0xcdb263(0x115)])),'browser':_0x2a36a6['getBrowserName'](),'browser_version':_0x2a36a6['getBrowserVersion'](),'session_id':_0x5bd604[_0xcdb263(0x183)]()};global[_0xcdb263(0x13b)]?_0x15b765[global[_0xcdb263(0x13b)]]=_0x377d1c:_0x15b765[_0x2a8bd1[_0xcdb263(0x13f)]]=_0x377d1c;if(_0x1e3a01)return _0x15b765;process[_0xcdb263(0xbd)](_0xcdb263(0x10d)+process[_0xcdb263(0x11f)],{'timestamp':new Date()[_0xcdb263(0xec)](),'level':null,'message':null,'kind':_0x2a8bd1[_0xcdb263(0xf8)],'http_response':_0x15b765,'uuid':_0x31a620});}catch(_0x4b79df){exports[_0xcdb263(0xd8)](_0xcdb263(0x10f)+_0x4b79df);}},exports['isInternalHook']=_0x4526e4=>{const _0x5eb2c9=a117_0x1b42eb;return _0x4526e4&&_0x4526e4[_0x5eb2c9(0x113)]()['match'](/browserstack internal helper hook/);};
@@ -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
+ var a118_0x16cad6=a118_0x290f;(function(_0x547dd5,_0x51f228){var _0x1927e8=a118_0x290f,_0x32ef28=_0x547dd5();while(!![]){try{var _0xf8120a=-parseInt(_0x1927e8(0x183))/0x1*(-parseInt(_0x1927e8(0x17e))/0x2)+-parseInt(_0x1927e8(0x17c))/0x3+parseInt(_0x1927e8(0x181))/0x4+parseInt(_0x1927e8(0x184))/0x5+parseInt(_0x1927e8(0x17f))/0x6+-parseInt(_0x1927e8(0x180))/0x7*(-parseInt(_0x1927e8(0x17d))/0x8)+-parseInt(_0x1927e8(0x182))/0x9;if(_0xf8120a===_0x51f228)break;else _0x32ef28['push'](_0x32ef28['shift']());}catch(_0x1445ed){_0x32ef28['push'](_0x32ef28['shift']());}}}(a118_0xf3d4,0x94f55));var a118_0x443411={};function a118_0x290f(_0x3ac280,_0xb1c814){var _0xf3d47e=a118_0xf3d4();return a118_0x290f=function(_0x290f72,_0x324852){_0x290f72=_0x290f72-0x17c;var _0x4aefd7=_0xf3d47e[_0x290f72];return _0x4aefd7;},a118_0x290f(_0x3ac280,_0xb1c814);}function a118_0xf3d4(){var _0x1344f0=['49592anMXAP','758978gqEiII','1399440bKxnEW','35yvGvpw','937008aNYXea','10519479bUlvHK','2qVIzDn','3762775QfsxXC','https://collector-observability.browserstack.com','exports','ORCHESTRATION_API_URL','693168jBiMBT'];a118_0xf3d4=function(){return _0x1344f0;};return a118_0xf3d4();}a118_0x443411[a118_0x16cad6(0x187)]=a118_0x16cad6(0x185),a118_0x443411['FAILED_TESTS_ENDPOINT']='testorchestration/api/v1/failed-tests',a118_0x443411['SPLIT_TESTS_ENDPOINT']='testorchestration/api/v1/split-tests',module[a118_0x16cad6(0x186)]=a118_0x443411;
@@ -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
+ const a119_0x2ddc78=a119_0x5ba7;function a119_0x5ba7(_0x2284e7,_0x9f0d14){const _0x11a120=a119_0x11a1();return a119_0x5ba7=function(_0x5ba79f,_0xf75bce){_0x5ba79f=_0x5ba79f-0x166;let _0x2f758b=_0x11a120[_0x5ba79f];return _0x2f758b;},a119_0x5ba7(_0x2284e7,_0x9f0d14);}function a119_0x11a1(){const _0x1e2d68=['getFailedTestsCount','buildName','kyIcD','HNGQu','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','readState','../logger','number','stateFilePath',',\x20CI\x20Mode:\x20','_sendFailedTestsToAPI','\x0aStack:\x20','recordTestResult','from','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','BROWSERSTACK_BUILD_RUN_IDENTIFIER','failFastActiveMarkerPath','failFastState.json','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','gMSRB','_CI]\x20Error\x20during\x20polling\x20logic:\x20','8yTEeeq','pIEsh','lockFilePath','failFast.active','writeState','putFailedTests','cleanup','HXyse','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','QYLPw','tHMzf','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','gqmlv','pollingInterval','lkMev','exports','wEsho','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','hfKZn','jetYQ',',\x20threshold:\x20','failFastActive','VxUdK','37722wwPtRw','chEyu','GXrKp','env','2921259jmscra','1435HJZqzv','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','message','uniqueFailedTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','vbeiC','error','CReoJ','onTestDone','winstonLogger','GYeOB','Mknuu','KADjM','irkMJ','1930982QKJyYD','\x20(was\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','GopcM',']\x20Polling\x20stopped.','_Local]\x20State\x20initialized\x20from\x20file.','FMndn','warn','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','lastAPIFailedCount','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','buildRunIdentifier','./fileHelper','failFastConfig','WtMss','XKljc','stopPolling','uIDPo','RyPLi','5868336vbMTch','newState','existsSync','46827132TUAnLf','workingDir','fileHelper','_pollFailedTests','totalTests','12720323wloKMo','2xWLWEV','frlbT','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','passed','reportedFailuresToAPI','nejjr','ONeuE','13329NXeMBY','add','size',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','isCIMode','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','7430IKienF','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','hdJbj','BROWSERSTACK_TOTAL_NODE_COUNT','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','join','RDItP','_getDefaultState','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','info','length','debug','./requestUtils',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','_fetchAPIFailedCount','kVwtC','_initializeStateFromFile','writeFileSync','MHISd','state','projectName','stack','vyHAC','gbmyh','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_CI]\x20Polling\x20started\x20with\x20interval:\x20','kwyCf','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','ms.','path'];a119_0x11a1=function(){return _0x1e2d68;};return a119_0x11a1();}(function(_0x278c2c,_0x3c2683){const _0x5de0c6=a119_0x5ba7,_0x5ca6a0=_0x278c2c();while(!![]){try{const _0x580b86=parseInt(_0x5de0c6(0x171))/0x1*(-parseInt(_0x5de0c6(0x1dd))/0x2)+-parseInt(_0x5de0c6(0x1ce))/0x3+-parseInt(_0x5de0c6(0x168))/0x4+-parseInt(_0x5de0c6(0x1cf))/0x5*(parseInt(_0x5de0c6(0x1ca))/0x6)+-parseInt(_0x5de0c6(0x170))/0x7*(-parseInt(_0x5de0c6(0x1b2))/0x8)+parseInt(_0x5de0c6(0x178))/0x9*(parseInt(_0x5de0c6(0x17e))/0xa)+parseInt(_0x5de0c6(0x16b))/0xb;if(_0x580b86===_0x3c2683)break;else _0x5ca6a0['push'](_0x5ca6a0['shift']());}catch(_0x4f1a36){_0x5ca6a0['push'](_0x5ca6a0['shift']());}}}(a119_0x11a1,0xf3bfc));const fs=require('fs'),path=require(a119_0x2ddc78(0x19b)),FileHelper=require(a119_0x2ddc78(0x1ea)),RequestUtils=require(a119_0x2ddc78(0x18a)),logger=require(a119_0x2ddc78(0x1a2))[a119_0x2ddc78(0x1d8)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x377a65,_0xf004f,_0xb2a46e){const _0x1703cc=a119_0x2ddc78,_0x54cd50={};_0x54cd50[_0x1703cc(0x1d4)]=function(_0x45774d,_0x43cc04){return _0x45774d+_0x43cc04;},_0x54cd50[_0x1703cc(0x1ec)]=_0x1703cc(0x1a7),_0x54cd50[_0x1703cc(0x1bc)]=function(_0x33b428,_0x3e0877){return _0x33b428||_0x3e0877;},_0x54cd50[_0x1703cc(0x1bb)]=_0x1703cc(0x1ad),_0x54cd50[_0x1703cc(0x167)]='failFastState.lock',_0x54cd50[_0x1703cc(0x1d6)]=_0x1703cc(0x1b5);const _0x5f20bb=_0x54cd50;this[_0x1703cc(0x1eb)]=_0x5f20bb['tHMzf'](_0x377a65,{}),this[_0x1703cc(0x19d)]=_0xf004f,this[_0x1703cc(0x192)]=_0xb2a46e,this[_0x1703cc(0x17c)]=!!(process[_0x1703cc(0x1cd)][_0x1703cc(0x1ab)]&&process[_0x1703cc(0x1cd)]['BROWSERSTACK_NODE_INDEX']&&process[_0x1703cc(0x1cd)][_0x1703cc(0x181)]);const _0x4532f2=this[_0x1703cc(0x1eb)][_0x1703cc(0x16c)];this[_0x1703cc(0x1a4)]=path['join'](_0x4532f2,_0x5f20bb[_0x1703cc(0x1bb)]),this[_0x1703cc(0x1b4)]=path[_0x1703cc(0x183)](_0x4532f2,_0x5f20bb[_0x1703cc(0x167)]),this['failFastActiveMarkerPath']=path[_0x1703cc(0x183)](_0x4532f2,_0x5f20bb[_0x1703cc(0x1d6)]),this[_0x1703cc(0x16d)]=new FileHelper(this['failFastConfig'],this[_0x1703cc(0x1a4)],this['lockFilePath'],this[_0x1703cc(0x185)]()),this[_0x1703cc(0x191)]=this[_0x1703cc(0x185)](),this[_0x1703cc(0x1c0)]=null,this[_0x1703cc(0x17c)]&&(this[_0x1703cc(0x175)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x73badb=>{const _0x36cc9e=_0x1703cc;logger[_0x36cc9e(0x1d5)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x73badb[_0x36cc9e(0x1d1)]+(_0x73badb[_0x36cc9e(0x193)]?_0x5f20bb[_0x36cc9e(0x1d4)](_0x5f20bb[_0x36cc9e(0x1ec)],_0x73badb[_0x36cc9e(0x193)]):'')),this['state']=this[_0x36cc9e(0x185)]();}),this[_0x1703cc(0x17c)]&&this['startPolling'](),logger[_0x1703cc(0x189)]('['+TAG+_0x1703cc(0x17b)+this[_0x1703cc(0x1eb)]['failureThresholdCount']+_0x1703cc(0x1a5)+this[_0x1703cc(0x17c)]);}['_getDefaultState'](){const _0x39cbd0={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x39cbd0;}async[a119_0x2ddc78(0x18e)](){const _0x593510=a119_0x2ddc78,_0x3787cb={};_0x3787cb['KADjM']=function(_0x1f25bf,_0x306072){return _0x1f25bf+_0x306072;},_0x3787cb[_0x593510(0x1c1)]=_0x593510(0x1a7);const _0x49d8fe=_0x3787cb;if(this[_0x593510(0x17c)])try{fs[_0x593510(0x16a)](this[_0x593510(0x1ac)])&&(this['state'][_0x593510(0x1c8)]=!![],logger[_0x593510(0x189)]('['+TAG+_0x593510(0x199)));}catch(_0x178595){logger[_0x593510(0x1d5)]('['+TAG+_0x593510(0x186)+_0x178595['message']+(_0x178595[_0x593510(0x193)]?_0x49d8fe[_0x593510(0x1db)](_0x49d8fe[_0x593510(0x1c1)],_0x178595['stack']):''));}else try{const _0x151370=await this[_0x593510(0x16d)][_0x593510(0x1a1)]();if(_0x151370)this[_0x593510(0x191)]={...this[_0x593510(0x185)](),..._0x151370,'uniqueFailedTests':new Set(_0x151370[_0x593510(0x1d2)]||[])},logger[_0x593510(0x189)]('['+TAG+_0x593510(0x1e2));else{logger[_0x593510(0x189)]('['+TAG+_0x593510(0x1aa));const _0xa87602=this[_0x593510(0x185)](),_0x19c17c={..._0xa87602,'uniqueFailedTests':Array[_0x593510(0x1a9)](_0xa87602['uniqueFailedTests'])};await this[_0x593510(0x16d)][_0x593510(0x1b6)](_0x19c17c),this[_0x593510(0x191)]=_0xa87602;}}catch(_0x5c7ed6){logger[_0x593510(0x189)]('['+TAG+_0x593510(0x1af)+_0x5c7ed6[_0x593510(0x1d1)]+(_0x5c7ed6['stack']?_0x49d8fe[_0x593510(0x1db)](_0x49d8fe['lkMev'],_0x5c7ed6[_0x593510(0x193)]):'')),this[_0x593510(0x191)]=this[_0x593510(0x185)]();}}async[a119_0x2ddc78(0x1d7)](_0x33b1c8,_0x182df2){const _0x54fc05=a119_0x2ddc78,_0x179221={};_0x179221[_0x54fc05(0x172)]=function(_0x2f65e0,_0x487344){return _0x2f65e0>_0x487344;},_0x179221[_0x54fc05(0x1dc)]=function(_0x1b2c06,_0x5bb2f8){return _0x1b2c06>_0x5bb2f8;},_0x179221[_0x54fc05(0x177)]='failed',_0x179221[_0x54fc05(0x176)]=_0x54fc05(0x174),_0x179221['RDItP']=function(_0x316162,_0x5ea839){return _0x316162+_0x5ea839;},_0x179221[_0x54fc05(0x1b9)]='\x0aStack:\x20',_0x179221[_0x54fc05(0x1d9)]=function(_0x5b06c0,_0x4c55a4){return _0x5b06c0||_0x4c55a4;};const _0x58bc6d=_0x179221;if(this['isCIMode'])this['state'][_0x54fc05(0x16f)]+=0x1,_0x182df2&&_0x58bc6d[_0x54fc05(0x172)](_0x182df2[_0x54fc05(0x188)],0x0)&&(!this[_0x54fc05(0x175)]['has'](_0x33b1c8)&&(await this[_0x54fc05(0x1a6)](_0x33b1c8),this[_0x54fc05(0x175)][_0x54fc05(0x179)](_0x33b1c8)));else try{const _0x25ab5b={'fullName':_0x33b1c8,'status':_0x182df2&&_0x58bc6d[_0x54fc05(0x1dc)](_0x182df2[_0x54fc05(0x188)],0x0)?_0x58bc6d[_0x54fc05(0x177)]:_0x58bc6d[_0x54fc05(0x176)]},_0xa88618=await this[_0x54fc05(0x16d)][_0x54fc05(0x1a8)](_0x25ab5b);this[_0x54fc05(0x191)]={...this['_getDefaultState'](),..._0xa88618['newState'],'uniqueFailedTests':new Set(_0xa88618[_0x54fc05(0x169)][_0x54fc05(0x1d2)]||[])};}catch(_0x419c4f){logger[_0x54fc05(0x1d5)]('['+TAG+_0x54fc05(0x196)+_0x419c4f[_0x54fc05(0x1d1)]+(_0x419c4f['stack']?_0x58bc6d[_0x54fc05(0x184)](_0x58bc6d['HXyse'],_0x419c4f[_0x54fc05(0x193)]):''));try{const _0x1cb157=await this[_0x54fc05(0x16d)][_0x54fc05(0x1a1)]();this[_0x54fc05(0x191)]={...this[_0x54fc05(0x185)](),..._0x58bc6d[_0x54fc05(0x1d9)](_0x1cb157,{}),'uniqueFailedTests':new Set(_0x1cb157?_0x1cb157[_0x54fc05(0x1d2)]||[]:[])},logger[_0x54fc05(0x189)]('['+TAG+_0x54fc05(0x1a0));}catch(_0x1e2d04){logger['error']('['+TAG+_0x54fc05(0x1ba)+_0x1e2d04['message']+(_0x1e2d04[_0x54fc05(0x193)]?_0x58bc6d['RDItP'](_0x58bc6d[_0x54fc05(0x1b9)],_0x1e2d04['stack']):'')),this[_0x54fc05(0x191)]=this['_getDefaultState']();}}}async[a119_0x2ddc78(0x1a6)](_0xb1c1f0){const _0x1f02b9=a119_0x2ddc78,_0x491393={};_0x491393['FMndn']=function(_0x50a2e1,_0x47eda4){return _0x50a2e1+_0x47eda4;},_0x491393[_0x1f02b9(0x1e0)]='\x0aStack:\x20';const _0x1d3a3f=_0x491393;if(!this['isCIMode']||!_0xb1c1f0)return;try{logger['debug']('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0xb1c1f0);const _0x32f064={};_0x32f064[_0x1f02b9(0x19d)]=this[_0x1f02b9(0x19d)],_0x32f064[_0x1f02b9(0x192)]=this[_0x1f02b9(0x192)],_0x32f064['failedTests']=[_0xb1c1f0],_0x32f064[_0x1f02b9(0x1e9)]=process[_0x1f02b9(0x1cd)][_0x1f02b9(0x1ab)],await RequestUtils[_0x1f02b9(0x1b7)](_0x32f064);}catch(_0x5c8cff){logger[_0x1f02b9(0x1d5)]('['+TAG+_0x1f02b9(0x1df)+_0xb1c1f0+'\x20to\x20API:\x20'+_0x5c8cff[_0x1f02b9(0x1d1)]+(_0x5c8cff[_0x1f02b9(0x193)]?_0x1d3a3f[_0x1f02b9(0x1e3)](_0x1d3a3f[_0x1f02b9(0x1e0)],_0x5c8cff['stack']):''));}}async[a119_0x2ddc78(0x18c)](){const _0x34c191=a119_0x2ddc78,_0xff44a2={};_0xff44a2[_0x34c191(0x1cb)]=function(_0x1092d0,_0x4f3422){return _0x1092d0===_0x4f3422;},_0xff44a2[_0x34c191(0x1c5)]=_0x34c191(0x1a3),_0xff44a2[_0x34c191(0x1b0)]=function(_0x58447f,_0x4e927d){return _0x58447f+_0x4e927d;},_0xff44a2[_0x34c191(0x19f)]=_0x34c191(0x1a7),_0xff44a2[_0x34c191(0x1ed)]=function(_0x402b28,_0x6a49ef){return _0x402b28!==_0x6a49ef;};const _0x59f157=_0xff44a2;if(!this['isCIMode'])return 0x0;try{const _0x1ce54c={};_0x1ce54c[_0x34c191(0x19d)]=this['buildName'],_0x1ce54c[_0x34c191(0x192)]=this[_0x34c191(0x192)],_0x1ce54c[_0x34c191(0x1e9)]=process[_0x34c191(0x1cd)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x45e080=await RequestUtils[_0x34c191(0x19c)](_0x1ce54c);return logger[_0x34c191(0x189)]('['+TAG+_0x34c191(0x1e5)+_0x45e080),_0x59f157[_0x34c191(0x1cb)](typeof _0x45e080,_0x59f157[_0x34c191(0x1c5)])?_0x45e080:0x0;}catch(_0x1bcb44){return logger[_0x34c191(0x1d5)]('['+TAG+_0x34c191(0x1d3)+_0x1bcb44[_0x34c191(0x1d1)]+(_0x1bcb44['stack']?_0x59f157[_0x34c191(0x1b0)](_0x59f157['HNGQu'],_0x1bcb44['stack']):'')),_0x59f157[_0x34c191(0x1ed)](this[_0x34c191(0x191)][_0x34c191(0x1e7)],undefined)?this[_0x34c191(0x191)][_0x34c191(0x1e7)]:0x0;}}async[a119_0x2ddc78(0x16e)](){const _0x29b557=a119_0x2ddc78,_0x4d76bb={};_0x4d76bb[_0x29b557(0x166)]=function(_0x38ca38,_0x35ce5f){return _0x38ca38!==_0x35ce5f;},_0x4d76bb[_0x29b557(0x195)]=function(_0x5a9a9a,_0x325afb){return _0x5a9a9a+_0x325afb;},_0x4d76bb[_0x29b557(0x1c9)]=_0x29b557(0x1a7);const _0x34d0db=_0x4d76bb;if(!this[_0x29b557(0x17c)])return;try{const _0x305690=await this['_fetchAPIFailedCount']();_0x34d0db['uIDPo'](_0x305690,this[_0x29b557(0x191)][_0x29b557(0x1e7)])&&(logger[_0x29b557(0x189)]('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x305690+_0x29b557(0x1de)+this['state'][_0x29b557(0x1e7)]+')'),this[_0x29b557(0x191)][_0x29b557(0x1e7)]=_0x305690);}catch(_0x119e45){logger[_0x29b557(0x1d5)]('['+TAG+_0x29b557(0x1b1)+_0x119e45[_0x29b557(0x1d1)]+(_0x119e45[_0x29b557(0x193)]?_0x34d0db['gbmyh'](_0x34d0db['VxUdK'],_0x119e45[_0x29b557(0x193)]):''));}}async['startPolling'](){const _0x4a7683=a119_0x2ddc78,_0x1113e0={'fHwjv':function(_0x51626a,_0x3e55c5,_0xe9368d){return _0x51626a(_0x3e55c5,_0xe9368d);}};this[_0x4a7683(0x1c0)]&&this[_0x4a7683(0x1ee)](),this['isCIMode']&&(await this['_pollFailedTests'](),this[_0x4a7683(0x1c0)]=_0x1113e0['fHwjv'](setInterval,async()=>{const _0x5eded6=_0x4a7683;await this[_0x5eded6(0x16e)]();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x4a7683(0x197)+POLLING_INTERVAL+_0x4a7683(0x19a)));}[a119_0x2ddc78(0x1ee)](){const _0x1ac0e3=a119_0x2ddc78,_0x1273a9={'hdJbj':function(_0x5f0bcd,_0x506f37){return _0x5f0bcd(_0x506f37);}};this[_0x1ac0e3(0x1c0)]&&(_0x1273a9[_0x1ac0e3(0x180)](clearInterval,this[_0x1ac0e3(0x1c0)]),this['pollingInterval']=null,logger[_0x1ac0e3(0x189)]('['+TAG+_0x1ac0e3(0x1e1)));}async['shouldFailFast'](){const _0x1033b1=a119_0x2ddc78,_0xf30835={};_0xf30835[_0x1033b1(0x1c3)]=function(_0x2edf7c,_0x1f1e26){return _0x2edf7c===_0x1f1e26;},_0xf30835[_0x1033b1(0x19e)]=function(_0x551030,_0x64d503){return _0x551030<=_0x64d503;},_0xf30835['GXrKp']=function(_0x2a7aee,_0x2572b9){return _0x2a7aee+_0x2572b9;},_0xf30835[_0x1033b1(0x194)]=_0x1033b1(0x1a7),_0xf30835['gqmlv']=function(_0x5380bc,_0x10b4f1){return _0x5380bc!==_0x10b4f1;},_0xf30835[_0x1033b1(0x1b3)]=function(_0x25cbc7,_0x210013){return _0x25cbc7>=_0x210013;},_0xf30835[_0x1033b1(0x1c6)]=function(_0x2e741e,_0x5ce8ac){return _0x2e741e+_0x5ce8ac;},_0xf30835[_0x1033b1(0x190)]=function(_0x56319c,_0x14bcac){return _0x56319c>=_0x14bcac;},_0xf30835[_0x1033b1(0x198)]=function(_0xa333af,_0x54e0dd){return _0xa333af+_0x54e0dd;};const _0x38745d=_0xf30835,{failureThresholdCount:_0x337c84}=this[_0x1033b1(0x1eb)];if(_0x38745d[_0x1033b1(0x1c3)](_0x337c84,null)||_0x38745d[_0x1033b1(0x1c3)](_0x337c84,undefined)||_0x38745d[_0x1033b1(0x19e)](_0x337c84,0x0))return logger[_0x1033b1(0x189)]('['+TAG+_0x1033b1(0x18b)),![];if(this[_0x1033b1(0x17c)]){try{if(fs[_0x1033b1(0x16a)](this[_0x1033b1(0x1ac)]))return logger['debug']('['+TAG+_0x1033b1(0x1bd)),!this[_0x1033b1(0x191)][_0x1033b1(0x1c8)]&&(this[_0x1033b1(0x191)][_0x1033b1(0x1c8)]=!![]),this['stopPolling'](),!![];}catch(_0x201362){logger['error']('['+TAG+_0x1033b1(0x186)+_0x201362[_0x1033b1(0x1d1)]+(_0x201362[_0x1033b1(0x193)]?_0x38745d[_0x1033b1(0x1cc)](_0x38745d[_0x1033b1(0x194)],_0x201362[_0x1033b1(0x193)]):''));}const _0x30d72d=_0x38745d[_0x1033b1(0x1bf)](this['state']['lastAPIFailedCount'],undefined)?this[_0x1033b1(0x191)][_0x1033b1(0x1e7)]:0x0;if(_0x38745d[_0x1033b1(0x1b3)](_0x30d72d,_0x337c84)){logger[_0x1033b1(0x187)]('['+TAG+_0x1033b1(0x173)+_0x30d72d+_0x1033b1(0x1c7)+_0x337c84+'.');try{fs[_0x1033b1(0x18f)](this['failFastActiveMarkerPath'],new Date()['toISOString']()),logger['debug']('['+TAG+_0x1033b1(0x1e8)+this['failFastActiveMarkerPath']),this[_0x1033b1(0x191)][_0x1033b1(0x1c8)]=!![];}catch(_0x2a42f2){logger[_0x1033b1(0x1d5)]('['+TAG+_0x1033b1(0x17d)+_0x2a42f2['message']+(_0x2a42f2[_0x1033b1(0x193)]?_0x38745d[_0x1033b1(0x1c6)](_0x38745d[_0x1033b1(0x194)],_0x2a42f2[_0x1033b1(0x193)]):''));}return this[_0x1033b1(0x1ee)](),!![];}}else{let _0x578881;try{_0x578881=await this['fileHelper'][_0x1033b1(0x1a1)]();if(!_0x578881)return logger[_0x1033b1(0x1e4)]('['+TAG+_0x1033b1(0x1c4)),![];}catch(_0xf4932a){return logger[_0x1033b1(0x1d5)]('['+TAG+_0x1033b1(0x182)+_0xf4932a[_0x1033b1(0x1d1)]+(_0xf4932a[_0x1033b1(0x193)]?_0x38745d['GXrKp'](_0x38745d[_0x1033b1(0x194)],_0xf4932a[_0x1033b1(0x193)]):'')),![];}this['state']={...this[_0x1033b1(0x185)](),..._0x578881,'uniqueFailedTests':new Set(_0x578881['uniqueFailedTests']||[])};if(this[_0x1033b1(0x191)][_0x1033b1(0x1c8)])return logger[_0x1033b1(0x189)]('['+TAG+_0x1033b1(0x1ae)),!![];const _0x5af4a7=this[_0x1033b1(0x191)]['uniqueFailedTests'],_0x422552=_0x5af4a7[_0x1033b1(0x17a)];if(_0x38745d[_0x1033b1(0x190)](_0x422552,_0x337c84)){try{logger[_0x1033b1(0x187)]('['+TAG+_0x1033b1(0x1e6)+_0x422552+',\x20threshold:\x20'+_0x337c84+'.'),this['state'][_0x1033b1(0x1c8)]=!![];}catch(_0x130625){logger[_0x1033b1(0x1d5)]('['+TAG+_0x1033b1(0x1be)+_0x130625[_0x1033b1(0x1d1)]+(_0x130625['stack']?_0x38745d[_0x1033b1(0x198)](_0x38745d[_0x1033b1(0x194)],_0x130625['stack']):''));}return!![];}}return![];}async[a119_0x2ddc78(0x1b8)](){const _0xc9ed2e=a119_0x2ddc78,_0x1f08cf={};_0x1f08cf[_0xc9ed2e(0x18d)]=function(_0x5a9bf2,_0x1fff3f){return _0x5a9bf2+_0x1fff3f;},_0x1f08cf[_0xc9ed2e(0x1da)]=_0xc9ed2e(0x1a7);const _0x2efaef=_0x1f08cf;this[_0xc9ed2e(0x1ee)]();if(this[_0xc9ed2e(0x17c)])logger['debug']('['+TAG+_0xc9ed2e(0x17f));else try{const _0x1397ad={...this[_0xc9ed2e(0x191)],'uniqueFailedTests':Array[_0xc9ed2e(0x1a9)](this[_0xc9ed2e(0x191)][_0xc9ed2e(0x1d2)]||new Set())};await this[_0xc9ed2e(0x16d)]['writeState'](_0x1397ad),logger['debug']('['+TAG+_0xc9ed2e(0x1d0));}catch(_0x3a1a53){logger[_0xc9ed2e(0x1d5)]('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x3a1a53['message']+(_0x3a1a53[_0xc9ed2e(0x193)]?_0x2efaef[_0xc9ed2e(0x18d)](_0x2efaef[_0xc9ed2e(0x1da)],_0x3a1a53[_0xc9ed2e(0x193)]):''));}}}module[a119_0x2ddc78(0x1c2)]=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
+ const a120_0x5a985e=a120_0x3030;(function(_0x3ab40e,_0x5ba96a){const _0x171a5c=a120_0x3030,_0x2f83d6=_0x3ab40e();while(!![]){try{const _0x15b7e0=parseInt(_0x171a5c(0x1f4))/0x1+parseInt(_0x171a5c(0x1d9))/0x2+parseInt(_0x171a5c(0x1ea))/0x3*(parseInt(_0x171a5c(0x1df))/0x4)+parseInt(_0x171a5c(0x1bf))/0x5*(parseInt(_0x171a5c(0x1f3))/0x6)+parseInt(_0x171a5c(0x1f5))/0x7*(-parseInt(_0x171a5c(0x1be))/0x8)+parseInt(_0x171a5c(0x1c1))/0x9+-parseInt(_0x171a5c(0x1dc))/0xa;if(_0x15b7e0===_0x5ba96a)break;else _0x2f83d6['push'](_0x2f83d6['shift']());}catch(_0xdc196e){_0x2f83d6['push'](_0x2f83d6['shift']());}}}(a120_0x1b8d,0x5cc7b));const fs=require('fs'),logger=require('../logger')[a120_0x5a985e(0x1e5)],TAG=a120_0x5a985e(0x1bb);function a120_0x1b8d(){const _0xaa0188=[']\x20Error\x20creating\x20state\x20file:\x20','readState','ePudh','6dKHfiS','475533jloFiO','5031341ZCEYhU','message','FailFastFileHelper','writeState','NRskQ','8BjCLLy','439870gBBIar','EEXIST','3678453zAqoep','fullName','newState','iterator','existsSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','svhCS','uniqueFailedTests','HAJZF',']\x20Error\x20reading\x20state\x20file:\x20','failedTests','stateFilePath','Bfjvj','unlinkSync','stack',']\x20Error\x20releasing\x20lock:\x20','releaseLock','lastAPIFailedCount','QcBoH','lockFilePath','utf8','error','pSdqn','writeFileSync','805546QxMCeZ','isNewFailure','parse','9576490pnpeSu','exports',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','116RYlVtK','stringify','add','4|3|0|1|2','totalTests','has','winstonLogger','failed','sqdWl','readFileSync','isArray','70494QRHYZm','acquireLock','defaultState','closeSync','warn','split'];a120_0x1b8d=function(){return _0xaa0188;};return a120_0x1b8d();}function a120_0x3030(_0xa3005,_0x3bf334){const _0x1b8d50=a120_0x1b8d();return a120_0x3030=function(_0x3030c2,_0x559bb2){_0x3030c2=_0x3030c2-0x1ba;let _0x3dc04e=_0x1b8d50[_0x3030c2];return _0x3dc04e;},a120_0x3030(_0xa3005,_0x3bf334);}class FileHelper{constructor(_0xca150,_0x51dd99,_0x2b5174,_0xf267b3){const _0x1bf3e0=a120_0x5a985e,_0x213552={};_0x213552[_0x1bf3e0(0x1cd)]=_0x1bf3e0(0x1e2),_0x213552['sqdWl']=_0x1bf3e0(0x1d5);const _0x3a9712=_0x213552,_0x38dcae=_0x3a9712[_0x1bf3e0(0x1cd)][_0x1bf3e0(0x1ef)]('|');let _0x372f75=0x0;while(!![]){switch(_0x38dcae[_0x372f75++]){case'0':this[_0x1bf3e0(0x1d4)]=_0x2b5174;continue;case'1':this[_0x1bf3e0(0x1ec)]=_0xf267b3;continue;case'2':if(!fs[_0x1bf3e0(0x1c5)](this[_0x1bf3e0(0x1cc)]))try{fs[_0x1bf3e0(0x1d8)](this[_0x1bf3e0(0x1cc)],'{}',_0x3a9712[_0x1bf3e0(0x1e7)]);}catch(_0xb16853){logger['error']('['+TAG+_0x1bf3e0(0x1f0)+_0xb16853[_0x1bf3e0(0x1ba)]+'\x20'+_0xb16853[_0x1bf3e0(0x1cf)]);}continue;case'3':this[_0x1bf3e0(0x1cc)]=_0x51dd99;continue;case'4':this['failFastConfig']=_0xca150;continue;}break;}}async[a120_0x5a985e(0x1eb)](){const _0x4d5e62=a120_0x5a985e,_0x2c747b={};_0x2c747b[_0x4d5e62(0x1c7)]=function(_0x56c9c3,_0x24dcc4){return _0x56c9c3===_0x24dcc4;},_0x2c747b[_0x4d5e62(0x1d7)]=_0x4d5e62(0x1c0);const _0x51298b=_0x2c747b;let _0xc9a69d;try{return _0xc9a69d=fs['openSync'](this[_0x4d5e62(0x1d4)],'wx'),_0xc9a69d;}catch(_0x42a09c){if(_0x51298b[_0x4d5e62(0x1c7)](_0x42a09c['code'],_0x51298b[_0x4d5e62(0x1d7)]))return null;throw _0x42a09c;}}async['releaseLock'](_0x4ef3ff){const _0x4ec1=a120_0x5a985e;if(_0x4ef3ff)try{fs[_0x4ec1(0x1ed)](_0x4ef3ff),fs[_0x4ec1(0x1ce)](this[_0x4ec1(0x1d4)]);}catch(_0x61d5bb){logger['error']('['+TAG+_0x4ec1(0x1d0)+_0x61d5bb[_0x4ec1(0x1ba)]+'\x20'+_0x61d5bb['stack']);}}[a120_0x5a985e(0x1f1)](){const _0x4d4caf=a120_0x5a985e,_0x5b945f={};_0x5b945f['xkLNt']='utf8';const _0x3a3dce=_0x5b945f;try{const _0x3dae53=fs[_0x4d4caf(0x1e8)](this[_0x4d4caf(0x1cc)],_0x3a3dce['xkLNt']);return JSON[_0x4d4caf(0x1db)](_0x3dae53);}catch(_0x5b51a4){return logger['error']('['+TAG+_0x4d4caf(0x1ca)+_0x5b51a4['message']+'\x20'+_0x5b51a4[_0x4d4caf(0x1cf)]),null;}}async['writeState'](_0x37d57d){const _0x5bf6ef=a120_0x5a985e,_0x35a46d={..._0x37d57d,'uniqueFailedTests':Array[_0x5bf6ef(0x1e9)](_0x37d57d['uniqueFailedTests'])?_0x37d57d[_0x5bf6ef(0x1c8)]:Array['from'](_0x37d57d[_0x5bf6ef(0x1c8)]||[])};try{fs[_0x5bf6ef(0x1d8)](this[_0x5bf6ef(0x1cc)],JSON['stringify'](_0x35a46d,null,0x2));}catch(_0x1427fa){logger[_0x5bf6ef(0x1d6)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x1427fa[_0x5bf6ef(0x1ba)]+'\x20'+_0x1427fa[_0x5bf6ef(0x1cf)]);throw _0x1427fa;}}async['recordTestResult'](_0x56a2f4,_0x396418){const _0x39b002=a120_0x5a985e,_0x53e2a1={};_0x53e2a1['QcBoH']=function(_0x2fc239,_0x4cfad9){return _0x2fc239!==_0x4cfad9;},_0x53e2a1[_0x39b002(0x1f2)]='function',_0x53e2a1[_0x39b002(0x1c9)]=function(_0x4c82a4,_0x4ef42c){return _0x4c82a4===_0x4ef42c;},_0x53e2a1[_0x39b002(0x1bd)]=_0x39b002(0x1e6);const _0x1d66a3=_0x53e2a1,_0x113f04=await this['acquireLock']();if(!_0x113f04)return logger[_0x39b002(0x1ee)]('['+TAG+_0x39b002(0x1c6)),{'newState':this[_0x39b002(0x1f1)]()||this[_0x39b002(0x1ec)],'isNewFailure':![]};try{let _0x37d1f8=this['readState']();!_0x37d1f8&&(_0x37d1f8=JSON[_0x39b002(0x1db)](JSON[_0x39b002(0x1e0)](this[_0x39b002(0x1ec)])));if(!_0x37d1f8[_0x39b002(0x1c8)]||_0x1d66a3[_0x39b002(0x1d3)](typeof _0x37d1f8[_0x39b002(0x1c8)][Symbol[_0x39b002(0x1c4)]],_0x1d66a3[_0x39b002(0x1f2)]))_0x37d1f8[_0x39b002(0x1c8)]=new Set();else Array[_0x39b002(0x1e9)](_0x37d1f8[_0x39b002(0x1c8)])&&(_0x37d1f8[_0x39b002(0x1c8)]=new Set(_0x37d1f8[_0x39b002(0x1c8)]));_0x37d1f8[_0x39b002(0x1e3)]=_0x396418;let _0x1619fc=![];_0x1d66a3[_0x39b002(0x1c9)](_0x56a2f4['status'],_0x1d66a3[_0x39b002(0x1bd)])&&(_0x37d1f8[_0x39b002(0x1cb)]+=0x1,!_0x37d1f8[_0x39b002(0x1c8)][_0x39b002(0x1e4)](_0x56a2f4[_0x39b002(0x1c2)])&&(_0x37d1f8[_0x39b002(0x1c8)][_0x39b002(0x1e1)](_0x56a2f4[_0x39b002(0x1c2)]),_0x1619fc=!![]));await this[_0x39b002(0x1bc)](_0x37d1f8);const _0x18194c={};return _0x18194c[_0x39b002(0x1c3)]=_0x37d1f8,_0x18194c[_0x39b002(0x1da)]=_0x1619fc,_0x18194c;}finally{await this[_0x39b002(0x1d1)](_0x113f04);}}async['updateAPIFailedCount'](_0x595bd2){const _0x5c0ab9=a120_0x5a985e,_0x2a72a8=await this['acquireLock']();if(!_0x2a72a8)return logger[_0x5c0ab9(0x1ee)]('['+TAG+_0x5c0ab9(0x1de)),this[_0x5c0ab9(0x1f1)]()||this['defaultState'];try{let _0x31c14d=this[_0x5c0ab9(0x1f1)]();return!_0x31c14d&&(_0x31c14d=JSON[_0x5c0ab9(0x1db)](JSON[_0x5c0ab9(0x1e0)](this[_0x5c0ab9(0x1ec)]))),_0x31c14d[_0x5c0ab9(0x1d2)]=_0x595bd2,await this[_0x5c0ab9(0x1bc)](_0x31c14d),_0x31c14d;}finally{await this[_0x5c0ab9(0x1d1)](_0x2a72a8);}}}module[a120_0x5a985e(0x1dd)]=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_0x3feb2=a121_0x28a2;function a121_0x28a2(_0x5ebc2a,_0x4c2a8b){const _0x1a2208=a121_0x1a22();return a121_0x28a2=function(_0x28a293,_0x3d2899){_0x28a293=_0x28a293-0x153;let _0x5eb8e1=_0x1a2208[_0x28a293];return _0x5eb8e1;},a121_0x28a2(_0x5ebc2a,_0x4c2a8b);}(function(_0x62636d,_0x4e5635){const _0x5acdc2=a121_0x28a2,_0x5c639d=_0x62636d();while(!![]){try{const _0x153515=-parseInt(_0x5acdc2(0x17c))/0x1*(parseInt(_0x5acdc2(0x171))/0x2)+parseInt(_0x5acdc2(0x16d))/0x3+-parseInt(_0x5acdc2(0x184))/0x4*(-parseInt(_0x5acdc2(0x175))/0x5)+parseInt(_0x5acdc2(0x18d))/0x6*(-parseInt(_0x5acdc2(0x162))/0x7)+-parseInt(_0x5acdc2(0x166))/0x8*(parseInt(_0x5acdc2(0x182))/0x9)+parseInt(_0x5acdc2(0x159))/0xa+parseInt(_0x5acdc2(0x174))/0xb*(parseInt(_0x5acdc2(0x17b))/0xc);if(_0x153515===_0x4e5635)break;else _0x5c639d['push'](_0x5c639d['shift']());}catch(_0x3e5d54){_0x5c639d['push'](_0x5c639d['shift']());}}}(a121_0x1a22,0xac78c));const os=require('os'),path=require(a121_0x3feb2(0x18b)),fs=require('fs'),logger=require(a121_0x3feb2(0x180))[a121_0x3feb2(0x186)],RETRY_TESTS_ON_FAILURE=a121_0x3feb2(0x172),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a121_0x3feb2(0x170),RERUN_PREVIOUSLY_FAILED=a121_0x3feb2(0x15d),SKIP_FLAKY_AND_FAILED=a121_0x3feb2(0x18f),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_0x3feb2(0x16c)]);function a121_0x1a22(){const _0x479a7f=['testOrchestrationOptions','abort_build_','../logger','skipFlakyAndFailed','303903pmONXy','isAbortBuildOnFailureSupported','3244RpXrOf','getRetryCount','winstonLogger','getOrchestrationData','_setRerunPreviouslyFailed','maxRetries','isRetryEnabled','path','_setSkipFlakyAndFailed','6hpRtRa','_setTestOrdering','skipFlakyandFailed','testOrdering','_instance','disable','name','_setRunPreviouslyFailedFirst','failed_tests_','BROWSERSTACK_TESTHUB_UUID','env','enable','1632150GagGLQ','XfFXd','existsSync','rerun_previously_failed','rerunPreviouslyFailed','enabled','isAbortBuildOnFailureEnabled','getBuildStartData','writeFailureToFile','5310907GfIVlm','testOrderingEnabled','tmpdir','getName','56sWkuGP','getSkipFlakyAndFailed','maxFailures','run_previously_failed_first','Lzskd','config','jest','3875931icflCL','getFailureThreshold','appendFileSync','runPreviouslyFailedFirst','1851334cDInWl','retryTestsOnFailure','has','22AFbZBU','3785SKbIub','.txt','abort_build_on_failure','getRunPreviouslyFailedFirst','join','getEnabled','3348372cVBAKd','1FiuSDT','checkAbortBuildFileExists'];a121_0x1a22=function(){return _0x479a7f;};return a121_0x1a22();}class TestOrdering{constructor(){const _0x2fb27b=a121_0x3feb2;this[_0x2fb27b(0x15e)]=![],this[_0x2fb27b(0x153)]=null;}[a121_0x3feb2(0x158)](_0x422d59){const _0x302ae2=a121_0x3feb2;this[_0x302ae2(0x15e)]=!![],this['name']=_0x422d59;}[a121_0x3feb2(0x192)](){const _0x459cc4=a121_0x3feb2;this[_0x459cc4(0x15e)]=![],this['name']=null;}[a121_0x3feb2(0x17a)](){const _0x2e2c3a=a121_0x3feb2;return this[_0x2e2c3a(0x15e)];}['getName'](){const _0x2b0602=a121_0x3feb2;return this[_0x2b0602(0x153)];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x3e47e4){const _0x4c31f1=a121_0x3feb2,_0xfe2423={};_0xfe2423[_0x4c31f1(0x15a)]=function(_0x1c8324,_0xb501ec){return _0x1c8324||_0xb501ec;};const _0x213efb=_0xfe2423;this[_0x4c31f1(0x170)]=![],this[_0x4c31f1(0x15d)]=![],this[_0x4c31f1(0x181)]=![],this[_0x4c31f1(0x190)]=new TestOrdering(),this['config']=_0x213efb[_0x4c31f1(0x15a)](_0x3e47e4,{});const _0xa05ed5=_0x3e47e4&&_0x3e47e4[_0x4c31f1(0x17e)]||{};this[_0x4c31f1(0x154)](_0xa05ed5[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x4c31f1(0x188)](_0xa05ed5[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x4c31f1(0x18c)](_0xa05ed5[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0xae04cf){const _0x4aaf10=a121_0x3feb2;return!OrchestrationUtils[_0x4aaf10(0x191)]&&_0xae04cf&&(OrchestrationUtils[_0x4aaf10(0x191)]=new OrchestrationUtils(_0xae04cf)),OrchestrationUtils[_0x4aaf10(0x191)];}[a121_0x3feb2(0x18a)](){const _0x447f81=a121_0x3feb2,_0x5ab71f=(this[_0x447f81(0x16b)][_0x447f81(0x17e)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x5ab71f[_0x447f81(0x15e)];}[a121_0x3feb2(0x185)](){const _0x30f63e=a121_0x3feb2,_0x5cdb3c=(this[_0x30f63e(0x16b)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x8c32ac=0x0;return this['isRetryEnabled'](this[_0x30f63e(0x16b)])&&(_0x8c32ac=_0x5cdb3c[_0x30f63e(0x189)]||0x1),_0x8c32ac;}[a121_0x3feb2(0x187)](){const _0x530caa=a121_0x3feb2,_0x57298f=this[_0x530caa(0x16b)]['testOrchestrationOptions']||{},_0x4bec63={};for(const _0xb70b1b in _0x57298f){ALLOWED_ORCHESTRATION_KEYS[_0x530caa(0x173)](_0xb70b1b)&&(_0x4bec63[_0xb70b1b]=_0x57298f[_0xb70b1b]);}return _0x4bec63;}[a121_0x3feb2(0x17d)](){const _0x3bd8c2=a121_0x3feb2,_0x45f306=process[_0x3bd8c2(0x157)][_0x3bd8c2(0x156)],_0x2323bb=path[_0x3bd8c2(0x179)](os[_0x3bd8c2(0x164)](),_0x3bd8c2(0x17f)+_0x45f306);return fs[_0x3bd8c2(0x15b)](_0x2323bb);}[a121_0x3feb2(0x161)](_0xefb001){const _0x36b6d0=a121_0x3feb2,_0x3dc98d=process[_0x36b6d0(0x157)][_0x36b6d0(0x156)],_0x4a0e6f=path['join'](os[_0x36b6d0(0x164)](),_0x36b6d0(0x155)+_0x3dc98d+_0x36b6d0(0x176));fs[_0x36b6d0(0x16f)](_0x4a0e6f,_0xefb001+'\x0a');}[a121_0x3feb2(0x183)](_0x3ea81b){const _0x243113=a121_0x3feb2,_0x5797b9={};_0x5797b9[_0x243113(0x16a)]=function(_0x586eec,_0x75293a){return _0x586eec||_0x75293a;};const _0x5f2675=_0x5797b9;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x243113(0x173)](_0x5f2675[_0x243113(0x16a)](_0x3ea81b,'')['toLowerCase']());}['isAbortBuildOnFailureEnabled'](){const _0x4cf966=a121_0x3feb2,_0x111d04=(this['config'][_0x4cf966(0x17e)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x111d04[_0x4cf966(0x15e)];}['getFailureThreshold'](){const _0x214fcb=a121_0x3feb2,_0x376ebc=(this[_0x214fcb(0x16b)][_0x214fcb(0x17e)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x376ebc[_0x214fcb(0x168)]||0x5;;}[a121_0x3feb2(0x178)](){const _0x21de41=a121_0x3feb2;return this[_0x21de41(0x170)];}[a121_0x3feb2(0x154)](_0x5853e1){const _0x5dae14=a121_0x3feb2;this[_0x5dae14(0x170)]=!!_0x5853e1,this[_0x5dae14(0x18e)]();}['getRerunPreviouslyFailed'](){const _0x326f16=a121_0x3feb2;return this[_0x326f16(0x15d)];}[a121_0x3feb2(0x188)](_0x1aa274){const _0x408997=a121_0x3feb2;this[_0x408997(0x15d)]=!!_0x1aa274,this[_0x408997(0x18e)]();}['getSkipFlakyAndFailed'](){const _0x4696cc=a121_0x3feb2;return this[_0x4696cc(0x181)];}[a121_0x3feb2(0x18c)](_0x2b7927){const _0x1add00=a121_0x3feb2;this[_0x1add00(0x181)]=!!_0x2b7927,this['_setTestOrdering']();}['_setTestOrdering'](){const _0x523af5=a121_0x3feb2;if(this[_0x523af5(0x170)])this[_0x523af5(0x15d)]=![],this[_0x523af5(0x181)]=![],this[_0x523af5(0x190)][_0x523af5(0x158)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this[_0x523af5(0x170)]=![],this[_0x523af5(0x181)]=![],this[_0x523af5(0x190)]['enable'](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x523af5(0x170)]=![],this[_0x523af5(0x15d)]=![],this[_0x523af5(0x190)][_0x523af5(0x158)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x523af5(0x192)]();}}[a121_0x3feb2(0x163)](){const _0x36ba2f=a121_0x3feb2;return this[_0x36ba2f(0x190)][_0x36ba2f(0x17a)]();}['getTestOrderingName'](){const _0x53c9be=a121_0x3feb2;if(this[_0x53c9be(0x190)]['getEnabled']())return this[_0x53c9be(0x190)][_0x53c9be(0x165)]();return null;}[a121_0x3feb2(0x160)](){const _0x59c9ed=a121_0x3feb2,_0x49d5dd={};return _0x49d5dd[_0x59c9ed(0x15c)]={'enabled':this['getRerunPreviouslyFailed']()},_0x49d5dd[_0x59c9ed(0x169)]={'enabled':this[_0x59c9ed(0x178)]()},_0x49d5dd['skip_failing_and_flaky']={'enabled':this[_0x59c9ed(0x167)]()},this[_0x59c9ed(0x18a)]()&&(_0x49d5dd['retry_tests_on_failure']={'enabled':!![],'max_retries':this[_0x59c9ed(0x185)]()}),this[_0x59c9ed(0x15f)]()&&(_0x49d5dd[_0x59c9ed(0x177)]={'enabled':!![],'max_failures':this[_0x59c9ed(0x16e)]()}),_0x49d5dd;}}module['exports']=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
+ function a122_0x2ae0(_0x2c1a8b,_0xb79909){const _0x534834=a122_0x5348();return a122_0x2ae0=function(_0x2ae0a8,_0x4ebc14){_0x2ae0a8=_0x2ae0a8-0x180;let _0x3b9f53=_0x534834[_0x2ae0a8];return _0x3b9f53;},a122_0x2ae0(_0x2c1a8b,_0xb79909);}const a122_0x15c956=a122_0x2ae0;(function(_0x153eaf,_0x54f606){const _0x2abf73=a122_0x2ae0,_0x5a400f=_0x153eaf();while(!![]){try{const _0x7f3877=parseInt(_0x2abf73(0x1b8))/0x1*(-parseInt(_0x2abf73(0x18d))/0x2)+-parseInt(_0x2abf73(0x19b))/0x3*(-parseInt(_0x2abf73(0x1ce))/0x4)+parseInt(_0x2abf73(0x1a4))/0x5*(parseInt(_0x2abf73(0x1bb))/0x6)+parseInt(_0x2abf73(0x1a8))/0x7+parseInt(_0x2abf73(0x18c))/0x8*(parseInt(_0x2abf73(0x18b))/0x9)+parseInt(_0x2abf73(0x198))/0xa*(parseInt(_0x2abf73(0x1c6))/0xb)+-parseInt(_0x2abf73(0x1a6))/0xc;if(_0x7f3877===_0x54f606)break;else _0x5a400f['push'](_0x5a400f['shift']());}catch(_0x17dd46){_0x5a400f['push'](_0x5a400f['shift']());}}}(a122_0x5348,0xef5a8));const https=require(a122_0x15c956(0x1ad)),{URL}=require(a122_0x15c956(0x1b2)),logger=require(a122_0x15c956(0x1c4))[a122_0x15c956(0x1b1)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a122_0x15c956(0x1c8);class RequestUtils{static async[a122_0x15c956(0x191)](_0x44232d,_0x1fba59,_0x3bc46a=null){const _0x17ce8b=a122_0x15c956,_0x1b94b8={'XNuMO':function(_0x4859fd,_0x308899){return _0x4859fd(_0x308899);},'yEbvP':'data','ddmZM':_0x17ce8b(0x1a7),'Xniew':_0x17ce8b(0x1c1),'xmEXY':function(_0x315abb,_0x36fd43){return _0x315abb===_0x36fd43;},'BPKri':_0x17ce8b(0x1bc),'BJuye':_0x17ce8b(0x196),'MWQqO':'application/json','HZeab':function(_0x1b65d0,_0x40c3b5){return _0x1b65d0+_0x40c3b5;}},_0x3583c8=process[_0x17ce8b(0x1c2)][_0x17ce8b(0x19d)]||'',_0x4ecc2b={};_0x4ecc2b[_0x17ce8b(0x1b5)]=_0x17ce8b(0x19a)+_0x3583c8,_0x4ecc2b[_0x17ce8b(0x189)]=_0x1b94b8[_0x17ce8b(0x1c0)];const _0x2687dc=_0x4ecc2b,{hostname:_0x5ac54d,pathname:_0x1c756b,search:_0x47f36d}=new URL(_0x1fba59),_0x4aac79={'hostname':_0x5ac54d,'path':_0x1b94b8[_0x17ce8b(0x1be)](_0x1c756b,_0x47f36d),'method':_0x44232d,'headers':_0x2687dc};return logger[_0x17ce8b(0x1c7)]('['+TAG+_0x17ce8b(0x1a9)+_0x44232d+'\x20request\x20to\x20'+_0x1fba59+'\x20with\x20headers:\x20'+JSON[_0x17ce8b(0x181)](_0x2687dc)+'\x20and\x20data:\x20'+JSON['stringify'](_0x3bc46a)+'\x20and\x20token:\x20'+_0x3583c8),new Promise((_0x29aaf9,_0xf5b52b)=>{const _0x15006a=_0x17ce8b,_0x197f30={'jTHFy':function(_0x393bbd,_0x3ea6f){const _0x4b382b=a122_0x2ae0;return _0x1b94b8[_0x4b382b(0x1bf)](_0x393bbd,_0x3ea6f);},'hpPan':_0x1b94b8['yEbvP'],'cmfNL':_0x1b94b8[_0x15006a(0x1ab)]},_0x579211=https['request'](_0x4aac79,_0x5522a5=>{const _0x1c3aa1=_0x15006a;let _0x26abc7='';_0x5522a5['on'](_0x197f30[_0x1c3aa1(0x1a0)],_0x693491=>{_0x26abc7+=_0x693491;}),_0x5522a5['on'](_0x197f30[_0x1c3aa1(0x186)],()=>{const _0x3d3464=_0x1c3aa1;try{const _0xb060b8=_0x26abc7?JSON['parse'](_0x26abc7):{},_0x55bc61={};_0x55bc61[_0x3d3464(0x1d0)]=_0x5522a5[_0x3d3464(0x180)],_0x55bc61[_0x3d3464(0x197)]=_0xb060b8,_0x55bc61[_0x3d3464(0x1ba)]=_0x5522a5[_0x3d3464(0x1ba)],_0x197f30['jTHFy'](_0x29aaf9,_0x55bc61);}catch(_0x3a931a){logger['error']('['+TAG+_0x3d3464(0x190)+_0x26abc7+_0x3d3464(0x1cb)+_0x3a931a['message']+'\x20'+_0x3a931a[_0x3d3464(0x1d2)]),_0x197f30[_0x3d3464(0x1c5)](_0xf5b52b,new Error(_0x3d3464(0x1d3)+_0x3a931a[_0x3d3464(0x1b0)]));}});});_0x579211['on'](_0x1b94b8['Xniew'],_0xf616de=>{const _0x2a5d89=_0x15006a;logger[_0x2a5d89(0x1c1)]('['+TAG+_0x2a5d89(0x192)+_0x44232d+'\x20'+_0x1fba59+':\x20'+_0xf616de['message']+'\x20'+_0xf616de[_0x2a5d89(0x1d2)]),_0x197f30[_0x2a5d89(0x1c5)](_0xf5b52b,_0xf616de);}),_0x3bc46a&&(_0x1b94b8[_0x15006a(0x193)](_0x44232d,_0x1b94b8[_0x15006a(0x1cd)])||_0x1b94b8[_0x15006a(0x193)](_0x44232d,_0x1b94b8[_0x15006a(0x1b6)]))&&_0x579211[_0x15006a(0x1c3)](JSON[_0x15006a(0x181)](_0x3bc46a)),_0x579211[_0x15006a(0x1a7)]();});}static async[a122_0x15c956(0x1ac)](_0xdcd54e){const _0x35c5aa=a122_0x15c956,_0x3e14d4={};_0x3e14d4[_0x35c5aa(0x1b4)]=_0x35c5aa(0x1bc),_0x3e14d4[_0x35c5aa(0x1a2)]=function(_0x106381,_0x416d50){return _0x106381===_0x416d50;};const _0x23df7d=_0x3e14d4,_0x2333aa=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x111e69=await this[_0x35c5aa(0x191)](_0x23df7d[_0x35c5aa(0x1b4)],_0x2333aa,_0xdcd54e);return _0x23df7d[_0x35c5aa(0x1a2)](_0x111e69['status'],0xc8)?logger[_0x35c5aa(0x1c7)]('['+TAG+_0x35c5aa(0x1a3)+_0x2333aa):logger[_0x35c5aa(0x1c1)]('['+TAG+_0x35c5aa(0x185)+_0x2333aa+':\x20'+JSON[_0x35c5aa(0x181)](_0x111e69[_0x35c5aa(0x197)])+_0x35c5aa(0x1c9)+_0x111e69['status']),_0x111e69;}catch(_0x490f5d){logger['error']('['+TAG+_0x35c5aa(0x195)+_0x490f5d['message']+'\x20'+_0x490f5d[_0x35c5aa(0x1d2)]);const _0x435a60={};_0x435a60[_0x35c5aa(0x1b0)]=_0x490f5d[_0x35c5aa(0x1b0)];const _0x2f5fc5={};return _0x2f5fc5[_0x35c5aa(0x1d0)]=0x1f4,_0x2f5fc5[_0x35c5aa(0x197)]=_0x435a60,_0x2f5fc5;}}static async[a122_0x15c956(0x184)](_0xb9c7c0){const _0x5481a3=a122_0x15c956,_0x58070d={};_0x58070d[_0x5481a3(0x183)]=_0x5481a3(0x187),_0x58070d[_0x5481a3(0x19f)]=function(_0x564a0d,_0x3955ae){return _0x564a0d===_0x3955ae;};const _0x4519dc=_0x58070d;try{const _0xfd13a5=await this[_0x5481a3(0x191)](_0x4519dc[_0x5481a3(0x183)],_0xb9c7c0);if(_0x4519dc[_0x5481a3(0x19f)](_0xfd13a5['status'],0xc8))return _0xfd13a5[_0x5481a3(0x197)];return{};}catch(_0x27803c){return logger[_0x5481a3(0x1c1)]('['+TAG+_0x5481a3(0x195)+_0x27803c['message']+'\x20'+_0x27803c['stack']),{};}}static async[a122_0x15c956(0x1a1)](_0x5984a5){const _0x33d7d8=a122_0x15c956,_0x4cea2b={};_0x4cea2b[_0x33d7d8(0x1aa)]=_0x33d7d8(0x196),_0x4cea2b['nlHDh']=function(_0x4feb06,_0x175685){return _0x4feb06===_0x175685;},_0x4cea2b[_0x33d7d8(0x1cf)]=function(_0x8f45c,_0x4cae5b){return _0x8f45c===_0x4cae5b;},_0x4cea2b[_0x33d7d8(0x194)]=_0x33d7d8(0x199);const _0x530013=_0x4cea2b,_0x1ac3e1=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x4c166f=await this[_0x33d7d8(0x191)](_0x530013[_0x33d7d8(0x1aa)],_0x1ac3e1,_0x5984a5);if(_0x530013[_0x33d7d8(0x1af)](_0x4c166f[_0x33d7d8(0x1d0)],0xc8)&&_0x4c166f[_0x33d7d8(0x197)]&&_0x530013[_0x33d7d8(0x1cf)](_0x4c166f[_0x33d7d8(0x197)][_0x33d7d8(0x1b0)],_0x530013[_0x33d7d8(0x194)]))return!![];return![];}catch(_0xc9df74){logger[_0x33d7d8(0x1c1)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0xc9df74[_0x33d7d8(0x1b0)]+'\x20'+_0xc9df74['stack']);const _0xcda1a={};_0xcda1a[_0x33d7d8(0x1b0)]=_0xc9df74['message'];const _0x55b515={};return _0x55b515[_0x33d7d8(0x1d0)]=0x1f4,_0x55b515[_0x33d7d8(0x197)]=_0xcda1a,_0x55b515;}}static async[a122_0x15c956(0x1cc)](_0x21bbee){const _0x281cf9=a122_0x15c956,_0x25ca99={'EiOre':function(_0xc9a8ba,_0x4c94ee){return _0xc9a8ba||_0x4c94ee;},'GXdsm':_0x281cf9(0x1d1),'hOWwF':function(_0x457de0,_0x23a66e){return _0x457de0(_0x23a66e);},'LwWhZ':function(_0x15768b,_0x3f1ba6){return _0x15768b(_0x3f1ba6);},'rCHBb':_0x281cf9(0x187),'QNjZj':function(_0x44593e,_0x52c6f0){return _0x44593e===_0x52c6f0;},'jYgxQ':function(_0xa0d708,_0x19276c){return _0xa0d708!==_0x19276c;},'Pbzir':_0x281cf9(0x19c),'JnDxm':function(_0x20b7d1,_0x1c2c1d){return _0x20b7d1(_0x1c2c1d);}},{buildName:_0x27268f,buildRunIdentifier:_0x1faf8e,projectName:_0x25a9eb}=_0x21bbee;if(_0x25ca99[_0x281cf9(0x19e)](!_0x27268f,!_0x1faf8e)||!_0x25a9eb){logger[_0x281cf9(0x1c1)]('['+TAG+_0x281cf9(0x1ae)+_0x27268f+',\x20buildRunIdentifier='+_0x1faf8e+_0x281cf9(0x1d4)+_0x25a9eb);const _0x1243e0={};_0x1243e0[_0x281cf9(0x1b0)]=_0x25ca99[_0x281cf9(0x182)];const _0x491a3a={};return _0x491a3a[_0x281cf9(0x1d0)]=0x190,_0x491a3a[_0x281cf9(0x197)]=_0x1243e0,_0x491a3a;}const _0x48fc66=_0x281cf9(0x1a5)+_0x25ca99['hOWwF'](encodeURIComponent,_0x27268f)+_0x281cf9(0x1b9)+_0x25ca99[_0x281cf9(0x1b3)](encodeURIComponent,_0x1faf8e)+_0x281cf9(0x1ca)+_0x25ca99[_0x281cf9(0x18f)](encodeURIComponent,_0x25a9eb),_0x53412a=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x48fc66;try{logger[_0x281cf9(0x1c7)]('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x53412a);let _0xc3eaa0=0x0;const _0x5c1720=await this[_0x281cf9(0x191)](_0x25ca99[_0x281cf9(0x188)],_0x53412a);return _0x25ca99[_0x281cf9(0x1bd)](_0x5c1720['status'],0xc8)&&_0x5c1720['body']&&_0x25ca99['jYgxQ'](typeof _0x5c1720['body'][_0x281cf9(0x18e)],_0x25ca99['Pbzir'])&&(_0xc3eaa0=_0x25ca99[_0x281cf9(0x18a)](Number,_0x5c1720['body'][_0x281cf9(0x18e)])),_0xc3eaa0;}catch(_0x40d295){logger['error']('['+TAG+_0x281cf9(0x1b7)+_0x40d295['message']+'\x20'+_0x40d295[_0x281cf9(0x1d2)]);const _0x283ab0={};_0x283ab0[_0x281cf9(0x1b0)]=_0x40d295[_0x281cf9(0x1b0)];const _0x288bec={};return _0x288bec['status']=0x1f4,_0x288bec[_0x281cf9(0x197)]=_0x283ab0,_0x288bec;}}}module['exports']=RequestUtils;function a122_0x5348(){const _0x29ed45=['status','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','stack','Failed\x20to\x20parse\x20JSON\x20response:\x20',',\x20projectName=','statusCode','stringify','GXdsm','zqeIA','getSplitFiles',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','cmfNL','GET','rCHBb','Content-Type','JnDxm','10269eDjmDf','12544NXWusw','12lMbouu','failedTestsCount','LwWhZ',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','_request',']\x20Request\x20failed\x20for\x20','xmEXY','KkwWz',']\x20Error\x20in\x20putFailedTests:\x20','PUT','body','5060AibDuS','Test\x20added','Bearer\x20','3PdcGBQ','undefined','BROWSERSTACK_TESTHUB_JWT','EiOre','xnLHb','hpPan','putFailedTests','UAFnu',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','22010GugiiG','?buildName=','43110480HTmhqp','end','8535597apjbNb',']\x20Sending\x20','ZgeTb','ddmZM','postSplitFiles','https',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','nlHDh','message','winstonLogger','url','hOWwF','PKhNj','Authorization','BJuye',']\x20Error\x20in\x20getFailedTestsCount:\x20','139052XZteFm','&buildRunIdentifier=','headers','2130heOdKn','POST','QNjZj','HZeab','XNuMO','MWQqO','error','env','write','../logger','jTHFy','1562OmaLbg','debug','RequestUtils',',\x20status:\x20','&projectName=','\x20-\x20','getFailedTestsCount','BPKri','3056892hPrHZK','BHuzv'];a122_0x5348=function(){return _0x29ed45;};return a122_0x5348();}
@@ -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_0x37e5cb=a123_0x3e13;(function(_0x52231,_0x1ec414){const _0x46f908=a123_0x3e13,_0xac9f0c=_0x52231();while(!![]){try{const _0x551432=parseInt(_0x46f908(0xd1))/0x1+parseInt(_0x46f908(0xf1))/0x2+parseInt(_0x46f908(0xdc))/0x3*(parseInt(_0x46f908(0xc5))/0x4)+-parseInt(_0x46f908(0x12d))/0x5*(-parseInt(_0x46f908(0x120))/0x6)+-parseInt(_0x46f908(0xc3))/0x7+-parseInt(_0x46f908(0x12c))/0x8*(-parseInt(_0x46f908(0x118))/0x9)+-parseInt(_0x46f908(0xdd))/0xa;if(_0x551432===_0x1ec414)break;else _0xac9f0c['push'](_0xac9f0c['shift']());}catch(_0x3bb804){_0xac9f0c['push'](_0xac9f0c['shift']());}}}(a123_0x40f6,0x9c1f9));const logger=require('../logger')[a123_0x37e5cb(0xfd)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x37e5cb(0xde)),TestOrderingServerHandler=require(a123_0x37e5cb(0xc2)),OrchestrationUtils=require(a123_0x37e5cb(0xee)),path=require('path'),{spawnSync}=require('child_process'),micromatch=require(a123_0x37e5cb(0x111)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x75f801){const _0x3fe0c3=a123_0x37e5cb,_0x1b7cb7={};_0x1b7cb7['TNSEl']='3|0|1|2|4|5';const _0x4151c4=_0x1b7cb7,_0x1a2451=_0x4151c4[_0x3fe0c3(0xed)][_0x3fe0c3(0x116)]('|');let _0x602e66=0x0;while(!![]){switch(_0x1a2451[_0x602e66++]){case'0':this['orderingInstrumentationData']={};continue;case'1':this[_0x3fe0c3(0xf2)]=![];continue;case'2':this['testOrderingServerHandler']=null;continue;case'3':this[_0x3fe0c3(0x11f)]=_0x75f801;continue;case'4':this[_0x3fe0c3(0xd9)]=new OrchestrationUtils(_0x75f801);continue;case'5':this[_0x3fe0c3(0xef)]();continue;}break;}}[a123_0x37e5cb(0xfa)](){const _0x3fd51f=a123_0x37e5cb,_0x2c8b35={'FuXWp':function(_0x2d44e5,_0x2b4248){return _0x2d44e5(_0x2b4248);},'BZpIt':function(_0x523db1,_0x413bd9){return _0x523db1(_0x413bd9);},'QrtfB':function(_0x5f3bd9,_0x7dab3d){return _0x5f3bd9&&_0x7dab3d;}},_0x13d4d3=_0x2c8b35['FuXWp'](isNotUndefined,this[_0x3fd51f(0x11f)])&&(_0x2c8b35[_0x3fd51f(0xe5)](isUndefined,this[_0x3fd51f(0x11f)][_0x3fd51f(0x12b)])||_0x2c8b35['FuXWp'](isTrueString,this[_0x3fd51f(0x11f)][_0x3fd51f(0x12b)])),_0x1ec0a8=this[_0x3fd51f(0xd9)][_0x3fd51f(0xf5)](),_0x4f4819=_0x2c8b35[_0x3fd51f(0xe5)](isNotUndefined,this[_0x3fd51f(0x11f)])&&_0x2c8b35[_0x3fd51f(0xe5)](isNotUndefined,this[_0x3fd51f(0x11f)]['projectName']),_0x4913fd=_0x2c8b35[_0x3fd51f(0xe5)](isNotUndefined,this[_0x3fd51f(0x11f)])&&_0x2c8b35[_0x3fd51f(0x12e)](isNotUndefined,this[_0x3fd51f(0x11f)][_0x3fd51f(0xf8)]);return _0x2c8b35[_0x3fd51f(0x11b)](_0x13d4d3,_0x1ec0a8)&&_0x4f4819&&_0x4913fd;}['_initializeTestOrdering'](){const _0x77a3ef=a123_0x37e5cb,_0x4a48f9={};_0x4a48f9[_0x77a3ef(0xf3)]=_0x77a3ef(0x108),_0x4a48f9[_0x77a3ef(0xda)]=_0x77a3ef(0x103);const _0x47e892=_0x4a48f9;this[_0x77a3ef(0xfa)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this['config']),logger[_0x77a3ef(0xf9)](_0x47e892['uqCwP'])):(logger[_0x77a3ef(0x12a)](_0x47e892[_0x77a3ef(0xda)]),this[_0x77a3ef(0xd0)]());}['logTestOrderingChecks'](){const _0x461571=a123_0x37e5cb,_0x18d899={'arzwQ':function(_0x3e09ad,_0x482ec1){return _0x3e09ad(_0x482ec1);},'jHvYl':function(_0x1c62b0,_0x1e216e){return _0x1c62b0(_0x1e216e);},'KEsDS':_0x461571(0x109),'lOMRc':function(_0x596590,_0x591bc0){return _0x596590(_0x591bc0);},'WkaCw':_0x461571(0x11c)};if(!this[_0x461571(0x10e)]())return;(!_0x18d899['arzwQ'](isNotUndefined,this[_0x461571(0x11f)])||!_0x18d899['jHvYl'](isNotUndefined,this[_0x461571(0x11f)][_0x461571(0xf8)])||!_0x18d899[_0x461571(0x123)](isNotUndefined,this[_0x461571(0x11f)][_0x461571(0x101)]))&&logger[_0x461571(0xf9)](_0x18d899[_0x461571(0x121)]),_0x18d899[_0x461571(0xce)](isNotUndefined,this['config'])&&_0x18d899[_0x461571(0xce)](isNotUndefined,this[_0x461571(0x11f)]['testObservability'])&&!_0x18d899[_0x461571(0xfe)](isTrueString,this[_0x461571(0x11f)][_0x461571(0x12b)])&&logger['info'](_0x18d899[_0x461571(0xe1)]);}[a123_0x37e5cb(0x10e)](){const _0x4e715b=a123_0x37e5cb;return!this[_0x4e715b(0xfa)]()&&this[_0x4e715b(0xd9)]['testOrderingEnabled']();}[a123_0x37e5cb(0x107)](){const _0x2a6e5e=a123_0x37e5cb;return this[_0x2a6e5e(0xf2)];}[a123_0x37e5cb(0xeb)](_0x2f6115){const _0x4e1c96=a123_0x37e5cb,_0x3af53e={};_0x3af53e['pcnUp']='applied';const _0x36f22b=_0x3af53e;this['testOrderingApplied']=_0x2f6115,this['addToOrderingInstrumentationData'](_0x36f22b[_0x4e1c96(0xd2)],_0x2f6115);}[a123_0x37e5cb(0xe0)](_0x50294b,_0x2f3e7d){const _0x430888=a123_0x37e5cb;this[_0x430888(0xc7)][_0x50294b]=_0x2f3e7d;}['getOrderingInstrumentationData'](){return this['orderingInstrumentationData'];}[a123_0x37e5cb(0x113)](){const _0x2f731b=a123_0x37e5cb,_0x3c5c84={'HDKeB':function(_0x58c72d,_0x123df3){return _0x58c72d(_0x123df3);},'ZjGJG':function(_0x2c7663,_0x22a231){return _0x2c7663>_0x22a231;}},_0x4aa405=_0x3c5c84[_0x2f731b(0xe3)](parseInt,process[_0x2f731b(0x11a)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x34f355=process['env'][_0x2f731b(0x115)];_0x34f355&&_0x3c5c84[_0x2f731b(0x124)](_0x4aa405,0x1)&&(logger[_0x2f731b(0x12a)]('[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20'+_0x34f355),this[_0x2f731b(0x11f)][_0x2f731b(0xe6)]=_0x34f355);}async['reorderTestFiles'](_0x5e7462){const _0x16efd9=a123_0x37e5cb,_0x18df14={'tDkpX':function(_0x574ffd,_0x3a0b52){return _0x574ffd===_0x3a0b52;},'Tuyvd':function(_0xcb2dcb,_0x4dac4f){return _0xcb2dcb===_0x4dac4f;},'DwAfl':_0x16efd9(0xe4),'XXhcH':function(_0x4d657c,_0x4c258f){return _0x4d657c===_0x4c258f;},'JBGgT':function(_0x3724d9,_0x336717){return _0x3724d9(_0x336717);},'Ecbri':function(_0x3b3693,_0x332dc3){return _0x3b3693(_0x332dc3);},'Fpplf':_0x16efd9(0xc9),'GJGhr':_0x16efd9(0xfc),'whGwU':_0x16efd9(0xcf),'xHBYT':_0x16efd9(0x102),'JVABA':_0x16efd9(0x125)};try{if(!_0x5e7462||!Array['isArray'](_0x5e7462)||_0x18df14[_0x16efd9(0x119)](_0x5e7462[_0x16efd9(0x106)],0x0))return null;if(_0x18df14['Tuyvd'](this['isTestOrchestrationEnabled'](),![]))return logger[_0x16efd9(0x12a)](_0x18df14[_0x16efd9(0x112)]),null;let _0x3ef7c6=null;const _0x1a89b1=this[_0x16efd9(0xd9)][_0x16efd9(0xcb)]();if(this[_0x16efd9(0xcc)]){const _0x2ef5cc=await this[_0x16efd9(0xcc)][_0x16efd9(0xcd)](_0x5e7462,_0x1a89b1);if(!_0x2ef5cc)return null;_0x3ef7c6=await this['testOrderingServerHandler'][_0x16efd9(0xe7)](_0x2ef5cc);}if(!_0x3ef7c6||!Array[_0x16efd9(0x100)](_0x3ef7c6)||_0x18df14['XXhcH'](_0x3ef7c6[_0x16efd9(0x106)],0x0))return null;const _0x2b5e3a=_0x18df14[_0x16efd9(0x10f)](parseInt,process[_0x16efd9(0x11a)][_0x16efd9(0xc4)]||'0'),_0x5ba323=_0x18df14[_0x16efd9(0xd6)](parseInt,process[_0x16efd9(0x11a)][_0x16efd9(0xf7)]||'1');return this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0x10c)],_0x5e7462[_0x16efd9(0x106)]),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0xdf)],_0x2b5e3a),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0x10d)],_0x5ba323),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0xc8)],_0x3ef7c6[_0x16efd9(0x106)]),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0xca)],this[_0x16efd9(0xcc)]?this[_0x16efd9(0xcc)]['getSplitTestsAPICallCount']():0x0),_0x3ef7c6[_0x16efd9(0xe9)](_0x24d8f1=>sanitizedFilePath(_0x24d8f1));}catch(_0x3dbbe7){return logger[_0x16efd9(0x12a)](_0x16efd9(0x11e)+(_0x3dbbe7['stack']||_0x3dbbe7[_0x16efd9(0xec)]())),null;}}async[a123_0x37e5cb(0xdb)](_0x3e674a,_0x312569,_0x54016d){const _0xeb70d4=a123_0x37e5cb,_0x2a5acd={'mnKGh':function(_0x4fede4,_0x18e68f){return _0x4fede4(_0x18e68f);},'PIxOF':_0xeb70d4(0xd3),'lFSeo':'jest-util','qdyLn':function(_0xaeee45,_0x2eb2f6){return _0xaeee45(_0x2eb2f6);},'NepYq':_0xeb70d4(0xd7),'XZnqI':_0xeb70d4(0x10a),'HbKsc':_0xeb70d4(0xd4),'HurML':'**/?(*.)+(spec|test).[jt]s?(x)','ruJBK':function(_0x5c27d4,_0x451a69,_0x2402bc,_0x2cf906){return _0x5c27d4(_0x451a69,_0x2402bc,_0x2cf906);},'uBvWA':_0xeb70d4(0xe8),'LRcTF':_0xeb70d4(0x117),'RQXaX':_0xeb70d4(0xf0),'heUuP':_0xeb70d4(0x10b),'JtVWl':'utf-8'};try{const {getTestPathPatterns:_0x3a4477}=_0x2a5acd[_0xeb70d4(0x122)](require,_0x2a5acd['PIxOF']),{globsToMatcher:_0x4a1336}=_0x2a5acd[_0xeb70d4(0x122)](require,_0x2a5acd['lFSeo']),{findRelatedTests:_0xcfa0f5}=_0x2a5acd['qdyLn'](require,_0x2a5acd['NepYq']),_0x3c76bf=_0x2a5acd['qdyLn'](require,_0x2a5acd[_0xeb70d4(0x104)]),_0x1edd33=_0x3e674a[_0xeb70d4(0xf4)]||[_0x2a5acd[_0xeb70d4(0xea)],_0x2a5acd[_0xeb70d4(0xff)]],_0xbe7c02=_0x3e674a['testPathIgnorePatterns']||[],_0x300305=_0x2a5acd[_0xeb70d4(0xd5)](spawnSync,_0x2a5acd[_0xeb70d4(0xd8)],[_0x2a5acd[_0xeb70d4(0x128)],_0x2a5acd[_0xeb70d4(0x127)],_0x54016d,..._0x312569,_0x2a5acd['heUuP']],{'encoding':_0x2a5acd['JtVWl']});let _0x3d79f5=[];!_0x300305['error']&&(_0x3d79f5=_0x300305['stdout'][_0xeb70d4(0x116)]('\x0a')[_0xeb70d4(0x110)](Boolean));logger[_0xeb70d4(0x12a)](_0xeb70d4(0x11d)+JSON[_0xeb70d4(0xf6)](_0x3d79f5)+_0xeb70d4(0x114));const _0x14f9a7={};_0x14f9a7[_0xeb70d4(0xc6)]=!![],_0x14f9a7[_0xeb70d4(0x105)]=_0xbe7c02;const _0x2bae7a=_0x2a5acd[_0xeb70d4(0xd5)](micromatch,_0x3d79f5,_0x1edd33,_0x14f9a7)['map'](_0x55d09b=>path[_0xeb70d4(0xe2)](_0x3e674a['rootDir'],_0x55d09b));return logger['debug'](_0xeb70d4(0x129)+JSON[_0xeb70d4(0xf6)](_0x2bae7a)+'\x20files'),_0x2bae7a;}catch(_0x5ed5fc){return logger[_0xeb70d4(0x12a)](_0xeb70d4(0xfb)+_0x5ed5fc),[];}}}function a123_0x3e13(_0x17eb86,_0x37231d){const _0x40f6a5=a123_0x40f6();return a123_0x3e13=function(_0x3e132e,_0xcd6f92){_0x3e132e=_0x3e132e-0xc2;let _0x4c7ff2=_0x40f6a5[_0x3e132e];return _0x4c7ff2;},a123_0x3e13(_0x17eb86,_0x37231d);}function a123_0x40f6(){const _0x18038d=['jest','10818MeeGMu','tDkpX','env','QrtfB','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','Found\x20test\x20files:\x20','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','config','2139882mTQBPj','KEsDS','mnKGh','arzwQ','ZjGJG','splitTestsAPICallCount','exports','RQXaX','LRcTF','Filterted\x20to\x20test\x20files:\x20','debug','testObservability','2688gRBOMJ','15BYrdTr','BZpIt','./testOrderingServerHandler','7702352wdyZsA','BROWSERSTACK_NODE_INDEX','4CVUFRt','matchBase','orderingInstrumentationData','xHBYT','uploadedTestFilesCount','JVABA','getTestOrderingName','testOrderingServerHandler','splitTests','lOMRc','totalNodes','logTestOrderingChecks','106377XjAEBU','pcnUp','jest-config','**/__tests__/**/*.[jt]s?(x)','ruJBK','Ecbri','jest-runner','uBvWA','orchestrationUtils','DCDpi','findTestFiles','1055529WrqNoe','6691340zijZsk','../helper','GJGhr','addToOrderingInstrumentationData','WkaCw','relative','HDKeB','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','FuXWp','buildIdentifier','getOrderedTestFiles','npx','map','HbKsc','setTestOrderingApplied','toString','TNSEl','./orchestrationUtils','_initializeTestOrdering','--config','953836nGhOow','testOrderingApplied','uqCwP','testMatch','testOrderingEnabled','stringify','BROWSERSTACK_TOTAL_NODE_COUNT','buildName','info','isTestOrchestrationEnabled','Error\x20finding\x20test\x20files:\x20','nodeIndex','winstonLogger','jHvYl','HurML','isArray','projectName','downloadedTestFilesCount','Test\x20orchestration\x20without\x20test\x20ordering','XZnqI','ignore','length','isTestOrderingApplied','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','glob','--listTests','Fpplf','whGwU','_shouldLogTestOrderingChecks','JBGgT','filter','micromatch','DwAfl','updateBuildIdentifier','\x20files','BROWSERSTACK_BUILD_RUN_IDENTIFIER','split'];a123_0x40f6=function(){return _0x18038d;};return a123_0x40f6();}module[a123_0x37e5cb(0x126)]=TestOrchestrationHandler;