browserstack-node-sdk 1.42.0 → 1.42.2

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 (176) 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/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -1
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a120_0x1ef4aa=a120_0x1149;function a120_0x1149(_0x13cb24,_0x439d54){const _0x439b0b=a120_0x439b();return a120_0x1149=function(_0x11497f,_0x12755b){_0x11497f=_0x11497f-0xd1;let _0x560e52=_0x439b0b[_0x11497f];return _0x560e52;},a120_0x1149(_0x13cb24,_0x439d54);}(function(_0x2d140a,_0x9ad7ca){const _0x20012e=a120_0x1149,_0x6146d6=_0x2d140a();while(!![]){try{const _0x1bdec0=parseInt(_0x20012e(0x189))/0x1*(parseInt(_0x20012e(0x126))/0x2)+parseInt(_0x20012e(0xdf))/0x3+parseInt(_0x20012e(0x13f))/0x4*(-parseInt(_0x20012e(0x125))/0x5)+-parseInt(_0x20012e(0x166))/0x6+-parseInt(_0x20012e(0x13a))/0x7*(-parseInt(_0x20012e(0x159))/0x8)+-parseInt(_0x20012e(0x1d1))/0x9+parseInt(_0x20012e(0x1e0))/0xa*(parseInt(_0x20012e(0xf5))/0xb);if(_0x1bdec0===_0x9ad7ca)break;else _0x6146d6['push'](_0x6146d6['shift']());}catch(_0x36e2e8){_0x6146d6['push'](_0x6146d6['shift']());}}}(a120_0x439b,0x45626));const fs=require('fs'),path=require(a120_0x1ef4aa(0x1a7)),gitLastCommit=require(a120_0x1ef4aa(0x12b)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require('http'),https=require(a120_0x1ef4aa(0x1bd)),child_process=require(a120_0x1ef4aa(0x1ac)),getos=require(a120_0x1ef4aa(0x177)),os=require('os'),logger=require('../logger')[a120_0x1ef4aa(0x101)],bsSetupHelper=require('../helper'),requestSpy=require(a120_0x1ef4aa(0x1bc)),constants=require(a120_0x1ef4aa(0x12e)),logPatcher=require(a120_0x1ef4aa(0x156)),util=require(a120_0x1ef4aa(0x13b)),{fileLogger}=require(a120_0x1ef4aa(0x158)),PerformanceTester=require(a120_0x1ef4aa(0x1ba)),{isFunction}=require(a120_0x1ef4aa(0x161)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a120_0x1ef4aa(0x18c)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a120_0x1ef4aa(0x127));function a120_0x439b(){const _0xcce11f=['snKOn','darwin','\x20]\x20Build\x20Not\x20Found\x20%s','forEach','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','includes','dUiMN','body','XmrGy','O11yHashedID','backtrace','pid','turboscale','RmQEn','customTag','HUB_URL_REGEX','codeceptjs','agent','toJSON','logs','rUOGg','removeAnsiColors','match','iHBdB','yFDqc','vdXeK','FEHMQ','eLEWG','replace','getPlatformDetails','IKxXs','jest','buBej','data','15715yJvPBe','371666okXUxu','../../../src/bin/utils/constants','XAEiS','csXgb','NjvKC','git-last-commit','hostname','host','../../bin/utils/constants','toISOString','Windows','timeout','platform','cXlSX','CUSTOM_TAG','capabilities','getDefaultHeaders','WZcef','ogrzb','X-BSTACK-TESTOPS','14nIYdji','util','patchConsoleLogger','jBTiJ','filter','664ueiwjN','EIfcy','relativeTestFilePath','catch','mocha','uqMHf','now','NLunW','fbqxZ','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','FEDtq','kAUNR','buildTag','platformName','nFhGW','xxfgR','yoetU','PathHelper','bstack:options','log','YOGfe','local_grid','getBuildTags','../../bin/utils/logPatcher','bsPDg','../logger','301296ELrIgM','trim','eOSbg','][\x20','\x20test\x20instance\x20:\x20','LogCreated','Bffon','getBrowserName','lodash','map','FgDfM','^CUSTOM_TAG_\x5cd+$','test','852630zhDDSk','ObservabilitySync:','zLMde','Error\x20in\x20importing\x20windows-release\x20','shouldReRunObservabilityTests','BROWSERSTACK_TEST_REPORTING','cwd','parseFileNames','Unknown','extractValuesWithRegexKeyMatch','dist','getBrowserVersion','getSyncScript','printBuildLink','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','Arfla','Linux','getos','EWfPW','maxTotalSockets','automate','bs:addPlatformDetails:','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','isUndefined','Error\x20in\x20getting\x20Linux\x20Details','CODECEPT','TaAMr','env','Uploading\x20trace\x20logs\x20to:\x20','yQBlF','pAouL','BROWSERSTACK_TEST_OBSERVABILITY_YML','bs:addLog:','0|5|1|3|4|2','map_','2OANNRC','BS_TESTOPS_BUILD_HASHED_ID','eHMUx','../performance/constants','Bearer\x20','isArray','readConfig','execSync','Visit\x20','length','OUkug','qWSow','keys','getUserCredentials','url','app','qxItH','YDcVA','TEST_OBSERVABILITY_BUILD_TAG','SsBXg','ysXSt','linux','\x20:\x20','error','object','prefix','lfwWK','BROWSERSTACK_CONFIG_FILE_PATH','ArHqI','uKaxM','path','KqOEX','addRequestSpy','headers','spy','child_process','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','OiZtw','getPlatform','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','appium:app','push','format','nodeRequest','/builds/','getPackageVersion','fromEntries','toString','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','../performance/performance-tester','JQDDg','../../helpers/request-spy','https','TpTmc','null','blNXw','TEST_PLATFORM','keepAlive','TEST_REPORTING_ANALYTICS','lBYgV','JEST','asyncAwaitNodeReq','info','undefined','yFIKK','kgket','\x20]\x20','json','ecmXy','BROWSERSTACK_RERUN_TESTS','modifyReqForTraceUpload','TEST_REPORTING_BUILD_TAG','3698019GCIYax','message','CUCUMBER','isTestObservabilitySession','fileName','unknown_grid','BROWSERSTACK_TEST_OBSERVABILITY','getSession','app-automate','test_run_uuid','IcEbo','jCpnD','QlkvF','parse','UAXRl','10ObMAaH','dIthT','release','sROlU','getBrowserStackConfig','browserstack_executor:\x20','stack','jexmP','LzXXT','vroiF','measureWrapper','__cloud_provider___','yCZoQ','PRINT_BUILDLINK','getCapabilities','Icfxa','application/json','101925VrDqIN','getAccessKey','err','expanded','tlGUd','getObservabilityLinkedProductName','iHtiJ','HbJcx','ATS_HUB_URL_REGEX','rootDir','BROWSERSTACK_TEST_REPORTING_DEBUG','LdWFQ','../../bin/v2/browserstackCLI','MqlLC','CODECEPT_CUCUMBER','PLAYWRIGHT','jnlGh','split','EyXoQ','lrKty','debug','ynheB','9657637elnzkW','zrZVq','OS\x20X','NzqFR','maxSockets','true','Agent','silly','getPlatformVersion','config','browserstack','Nvuvn','winstonLogger','getFailureType'];a120_0x439b=function(){return _0xcce11f;};return a120_0x439b();}exports['trace']=_0x5c3779=>{const _0x498371=a120_0x1ef4aa;fileLogger[_0x498371(0xfc)]('['+new Date()['toISOString']()+'][\x20'+constants[_0x498371(0x1c3)]+'\x20]\x20'+_0x5c3779);},exports['debug']=_0x1d3c99=>{const _0x30e919=a120_0x1ef4aa,_0x2f6d10={};_0x2f6d10['TaAMr']=function(_0x5a7cc1,_0x184a69){return _0x5a7cc1===_0x184a69;},_0x2f6d10[_0x30e919(0x11c)]=_0x30e919(0xfa),_0x2f6d10['LzXXT']=function(_0x4ed3f5,_0x825dba){return _0x4ed3f5===_0x825dba;};const _0x25e798=_0x2f6d10;fileLogger[_0x30e919(0xf3)]('['+new Date()[_0x30e919(0x12f)]()+_0x30e919(0x15c)+constants[_0x30e919(0x1c3)]+_0x30e919(0x1cb)+_0x1d3c99),(_0x25e798[_0x30e919(0x180)](process['env'][_0x30e919(0xe9)],_0x25e798[_0x30e919(0x11c)])||_0x25e798[_0x30e919(0x180)](process['env'][_0x30e919(0xe9)],'1')||_0x25e798['TaAMr'](process[_0x30e919(0x181)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x25e798[_0x30e919(0x11c)])||_0x25e798[_0x30e919(0xd6)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x30e919(0x152)]('\x0a['+new Date()['toISOString']()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x30e919(0x1cb)+_0x1d3c99+'\x0a');};const a120_0x4b9872={};a120_0x4b9872[a120_0x1ef4aa(0x1c2)]=!![],a120_0x4b9872[a120_0x1ef4aa(0x131)]=0xea60,a120_0x4b9872[a120_0x1ef4aa(0xf9)]=0x2,a120_0x4b9872['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http['Agent'](a120_0x4b9872),a120_0x5704b1={};a120_0x5704b1[a120_0x1ef4aa(0x1c2)]=!![],a120_0x5704b1[a120_0x1ef4aa(0x131)]=0xea60,a120_0x5704b1['maxSockets']=0x2,a120_0x5704b1[a120_0x1ef4aa(0x179)]=0x2;const httpsKeepAliveAgent=new https[(a120_0x1ef4aa(0xfb))](a120_0x5704b1),a120_0x5700cc={};a120_0x5700cc[a120_0x1ef4aa(0x1c2)]=!![],a120_0x5700cc[a120_0x1ef4aa(0x131)]=0xea60,a120_0x5700cc[a120_0x1ef4aa(0xf9)]=0x2,a120_0x5700cc[a120_0x1ef4aa(0x179)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a120_0x5700cc),a120_0x42fef8={};a120_0x42fef8[a120_0x1ef4aa(0x1c2)]=!![],a120_0x42fef8[a120_0x1ef4aa(0x131)]=0xea60,a120_0x42fef8['maxSockets']=0x2,a120_0x42fef8[a120_0x1ef4aa(0x179)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x1ef4aa(0xfb))](a120_0x42fef8);exports[a120_0x1ef4aa(0x16a)]=()=>{const _0x29e032=a120_0x1ef4aa,_0x46ea55={};_0x46ea55[_0x29e032(0x12a)]=function(_0x1a8953,_0x3d9987){return _0x1a8953!==_0x3d9987;},_0x46ea55[_0x29e032(0x117)]=_0x29e032(0x1bf);const _0x45fb33=_0x46ea55;return process[_0x29e032(0x181)][_0x29e032(0x1ce)]&&_0x45fb33['NjvKC'](process['env'][_0x29e032(0x1ce)],_0x45fb33[_0x29e032(0x117)])?!![]:![];},exports[a120_0x1ef4aa(0x1d4)]=()=>{const _0x4910cd=a120_0x1ef4aa,_0x7e8e3a={};_0x7e8e3a['yQBlF']=function(_0x2420ec,_0x51ecfd){return _0x2420ec===_0x51ecfd;},_0x7e8e3a[_0x4910cd(0xf2)]=_0x4910cd(0xfa);const _0x3a7a58=_0x7e8e3a;let _0x40d3a4=!![];return process['env'][_0x4910cd(0x185)]&&(_0x40d3a4=_0x3a7a58['yQBlF'](process[_0x4910cd(0x181)][_0x4910cd(0x185)],_0x3a7a58[_0x4910cd(0xf2)])),process[_0x4910cd(0x181)][_0x4910cd(0x1d7)]&&(_0x40d3a4=_0x3a7a58[_0x4910cd(0x183)](process['env'][_0x4910cd(0x1d7)],_0x3a7a58['lrKty'])),process[_0x4910cd(0x181)]['BROWSERSTACK_TEST_REPORTING']&&(_0x40d3a4=_0x3a7a58[_0x4910cd(0x183)](process[_0x4910cd(0x181)][_0x4910cd(0x16b)],_0x3a7a58[_0x4910cd(0xf2)])),_0x40d3a4;},exports[a120_0x1ef4aa(0x16d)]=_0x4564ea=>{const _0x2e2d26=a120_0x1ef4aa;if(bsSetupHelper['isUndefined'](_0x4564ea))return undefined;try{return _0x4564ea[_0x2e2d26(0x15a)]()[_0x2e2d26(0xf0)](',');}catch(_0x401361){return undefined;}},exports[a120_0x1ef4aa(0x173)]=()=>{const _0x193287=a120_0x1ef4aa,_0x38897a={'clmZY':function(_0x1c5998,_0x3122a6){return _0x1c5998(_0x3122a6);},'jUSyU':_0x193287(0xeb),'ysXSt':function(_0x37e1ee,_0x288ad8){return _0x37e1ee!==_0x288ad8;},'yoetU':'null','EwefG':function(_0x104382,_0x5452e6){return _0x104382!==_0x5452e6;},'EsXwa':_0x193287(0x1c8)};return PerformanceTester[_0x193287(0xd8)](PerformanceO11yEvents[_0x193287(0xdb)],async()=>{const _0x539253=_0x193287;try{const _0x31d0e7=_0x38897a['clmZY'](require,_0x38897a['jUSyU']);if(_0x31d0e7[_0x539253(0x10c)]){logger[_0x539253(0x1c7)](_0x539253(0x191)+O11Y_URL+'/builds/'+_0x31d0e7['O11yHashedID']+_0x539253(0x174));return;}process[_0x539253(0x181)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x38897a[_0x539253(0x19d)](process['env'][_0x539253(0x18a)],_0x38897a[_0x539253(0x14f)])&&_0x38897a['EwefG'](process[_0x539253(0x181)][_0x539253(0x18a)],_0x38897a['EsXwa'])&&logger[_0x539253(0x1c7)](_0x539253(0x191)+constants['O11Y_URL']+_0x539253(0x1b5)+process[_0x539253(0x181)]['BS_TESTOPS_BUILD_HASHED_ID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x133c50){logger[_0x539253(0x1a0)](util['format']('[%s][\x20'+constants[_0x539253(0x1c3)]+_0x539253(0x105),new Date()['toISOString'](),_0x133c50[_0x539253(0xd4)]||_0x133c50[_0x539253(0x1d2)]||_0x133c50));}})();},exports[a120_0x1ef4aa(0x102)]=_0x40d4f4=>{const _0x3a4b20=a120_0x1ef4aa,_0x37c163={};_0x37c163[_0x3a4b20(0x13d)]='AssertionError',_0x37c163['YkNHV']='UnhandledError';const _0x297f0a=_0x37c163;if(!_0x40d4f4)return null;return _0x40d4f4['toString']()['match'](/AssertionError/)?_0x297f0a[_0x3a4b20(0x13d)]:_0x297f0a['YkNHV'];},exports['getFrameworkVersion']=_0x3df2ed=>{const _0x46eeb9=a120_0x1ef4aa,_0x5cb5df={};_0x5cb5df['Bffon']=_0x46eeb9(0x143),_0x5cb5df[_0x46eeb9(0xe5)]='@playwright/test',_0x5cb5df['vroiF']=_0x46eeb9(0x113),_0x5cb5df[_0x46eeb9(0x103)]=_0x46eeb9(0x122),_0x5cb5df[_0x46eeb9(0x157)]='@cucumber/cucumber';const _0x3226d9=_0x5cb5df;let _0x40b898=null;switch(_0x3df2ed){case FRAMEWORKS['MOCHA']:_0x40b898=bsSetupHelper[_0x46eeb9(0x1b6)](_0x3226d9[_0x46eeb9(0x15f)]);break;case FRAMEWORKS[_0x46eeb9(0xee)]:_0x40b898=bsSetupHelper[_0x46eeb9(0x1b6)](_0x3226d9[_0x46eeb9(0xe5)]);break;case FRAMEWORKS[_0x46eeb9(0x17f)]:case FRAMEWORKS[_0x46eeb9(0xed)]:_0x40b898=bsSetupHelper[_0x46eeb9(0x1b6)](_0x3226d9[_0x46eeb9(0xd7)]);break;case FRAMEWORKS[_0x46eeb9(0x1c5)]:_0x40b898=bsSetupHelper[_0x46eeb9(0x1b6)](_0x3226d9[_0x46eeb9(0x103)]);break;case FRAMEWORKS[_0x46eeb9(0x1d3)]:_0x40b898=bsSetupHelper['getPackageVersion'](_0x3226d9[_0x46eeb9(0x157)]);break;default:break;}return _0x40b898;},exports[a120_0x1ef4aa(0xd2)]=_0x221272=>{const _0x10731b=a120_0x1ef4aa;let _0x4ee79f=null;switch(_0x221272){case FRAMEWORKS[_0x10731b(0xee)]:_0x4ee79f=process[_0x10731b(0x181)][_0x10731b(0x1a4)];break;}if(!_0x4ee79f)return;return bsSetupHelper[_0x10731b(0x18f)](_0x4ee79f,![]);},exports[a120_0x1ef4aa(0x196)]=_0x15e443=>{const _0x13e4b3=a120_0x1ef4aa;return{'username':bsSetupHelper['getUserName'](_0x15e443),'accessKey':bsSetupHelper[_0x13e4b3(0xe0)](_0x15e443)};},exports[a120_0x1ef4aa(0x1cf)]=(_0x1dcb72,_0x5675ce)=>{const _0x8f351f=a120_0x1ef4aa,_0x54f107={};_0x54f107['lfwWK']=_0x8f351f(0x187),_0x54f107[_0x8f351f(0x14a)]=_0x8f351f(0x15e),_0x54f107[_0x8f351f(0x1a5)]='TEST_ATTACHMENT';const _0x561c9d=_0x54f107,_0x5ae092=_0x561c9d[_0x8f351f(0x1a3)][_0x8f351f(0xf0)]('|');let _0xc314a6=0x0;while(!![]){switch(_0x5ae092[_0xc314a6++]){case'0':if(!_0x1dcb72[_0x8f351f(0x10a)]||!Array[_0x8f351f(0x18e)](_0x1dcb72[_0x8f351f(0x10a)]))return;continue;case'1':_0x1dcb72['formData']={'data':_0x1dcb72[_0x8f351f(0x10a)][0x0]['logs'][0x0][_0x8f351f(0x124)],'test_run_uuid':_0x1dcb72['body'][0x0]['logs'][0x0][_0x8f351f(0x1da)],'event_type':_0x561c9d[_0x8f351f(0x14a)],'kind':_0x561c9d['ArHqI'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x8f351f(0x12f)](),'fileName':_0x1dcb72[_0x8f351f(0x10a)][0x0][_0x8f351f(0x116)][0x0][_0x8f351f(0x1d5)]};continue;case'2':delete _0x5675ce[_0x8f351f(0x1aa)];continue;case'3':delete _0x1dcb72[_0x8f351f(0x10a)];continue;case'4':delete _0x1dcb72[_0x8f351f(0x1cc)];continue;case'5':if(!_0x1dcb72[_0x8f351f(0x10a)][0x0]||!_0x1dcb72[_0x8f351f(0x10a)][0x0]['logs']||!_0x1dcb72['body'][0x0]['logs'][_0x8f351f(0x192)])return;continue;}break;}},exports[a120_0x1ef4aa(0x1c6)]=async(_0x51b670,_0x500797,_0x3b9535,_0x1dc907,_0x337533=!![])=>{const _0x5b508e=a120_0x1ef4aa,_0x2988ab={};_0x2988ab[_0x5b508e(0x199)]=function(_0x5a6f40,_0x30daf4){return _0x5a6f40===_0x30daf4;},_0x2988ab[_0x5b508e(0x133)]='Content-Type',_0x2988ab[_0x5b508e(0x1bb)]='application/json',_0x2988ab[_0x5b508e(0x193)]=_0x5b508e(0x1bd),_0x2988ab[_0x5b508e(0xf8)]=function(_0x29cb26,_0x21671f){return _0x29cb26!==_0x21671f;},_0x2988ab[_0x5b508e(0x147)]=_0x5b508e(0x1a1),_0x2988ab[_0x5b508e(0x18b)]=_0x5b508e(0x1ad);const _0x5d9de3=_0x2988ab,_0x99ca2b={..._0x1dc907,...{'method':_0x51b670,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x500797,'body':_0x3b9535,'json':_0x5d9de3['qxItH'](_0x1dc907[_0x5b508e(0x1aa)][_0x5d9de3[_0x5b508e(0x133)]],_0x5d9de3[_0x5b508e(0x1bb)]),'agent':API_URL['includes'](_0x5d9de3[_0x5b508e(0x193)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5d9de3[_0x5b508e(0x199)](_0x500797,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x99ca2b[_0x5b508e(0x114)]=API_URL[_0x5b508e(0x108)](_0x5d9de3[_0x5b508e(0x193)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x99ca2b,_0x1dc907),logger[_0x5b508e(0xf3)](_0x5b508e(0x182)+_0x99ca2b[_0x5b508e(0x197)]));try{const {statusCode:_0x349b85,body:_0x34bb89}=await bsSetupHelper[_0x5b508e(0x1b4)](_0x51b670,_0x500797,_0x99ca2b,_0x1dc907,_0x99ca2b['url']);if(_0x5d9de3[_0x5b508e(0xf8)](_0x349b85,0xc8))return _0x34bb89?_0x34bb89:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x349b85;let _0x5184ce=_0x34bb89;if(_0x337533)try{_0x5d9de3[_0x5b508e(0xf8)](typeof _0x34bb89,_0x5d9de3[_0x5b508e(0x147)])&&(_0x5184ce=JSON[_0x5b508e(0x1de)](_0x34bb89));}catch(_0x22feeb){logger[_0x5b508e(0x1a0)](_0x5d9de3[_0x5b508e(0x18b)],_0x34bb89,util[_0x5b508e(0x1b3)](_0x22feeb));}const _0x41e7ff={};return _0x41e7ff[_0x5b508e(0x124)]=_0x5184ce,_0x41e7ff;}catch(_0x4054ff){logger[_0x5b508e(0x1a0)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util['format'](_0x4054ff));throw _0x4054ff;}},exports[a120_0x1ef4aa(0x1b4)]=(_0x212a71,_0x543f1a,_0x288953,_0x10eb10,_0x2479dd=!![])=>{const _0x7c91e2=a120_0x1ef4aa,_0x111d97={'eLEWG':function(_0x1307e9,_0x2f1947){return _0x1307e9!==_0x2f1947;},'IKxXs':function(_0x2670ff,_0x4e0a9f){return _0x2670ff(_0x4e0a9f);},'jnlGh':_0x7c91e2(0x1a1),'FEHMQ':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','NLunW':function(_0x1ffc04,_0x4e3c2b){return _0x1ffc04(_0x4e3c2b);},'nFhGW':function(_0x256f5b,_0x4ee7df){return _0x256f5b===_0x4ee7df;},'LdWFQ':'Content-Type','IcEbo':_0x7c91e2(0xde),'yCZoQ':_0x7c91e2(0x1bd),'QwDkj':function(_0x5241d1,_0x57ac1d){return _0x5241d1===_0x57ac1d;}};return new Promise((_0x1071d0,_0x4f5c19)=>{const _0x4a9d12=_0x7c91e2,_0x15c53d={'QlkvF':function(_0x1d2391,_0x51ee32){const _0x347307=a120_0x1149;return _0x111d97[_0x347307(0x11e)](_0x1d2391,_0x51ee32);},'Icfxa':function(_0x480e5a,_0x50ae63){const _0xb8f006=a120_0x1149;return _0x111d97[_0xb8f006(0x121)](_0x480e5a,_0x50ae63);},'OiZtw':_0x111d97[_0x4a9d12(0xef)],'lBYgV':_0x111d97[_0x4a9d12(0x11d)],'XiqFm':function(_0x395e39,_0x178c41){const _0x13c95a=_0x4a9d12;return _0x111d97[_0x13c95a(0x146)](_0x395e39,_0x178c41);}},_0x4997e4={..._0x10eb10,...{'method':_0x212a71,'url':API_URL+'/'+_0x543f1a,'body':_0x288953,'json':_0x111d97[_0x4a9d12(0x14d)](_0x10eb10['headers'][_0x111d97[_0x4a9d12(0xea)]],_0x111d97[_0x4a9d12(0x1db)]),'agent':API_URL[_0x4a9d12(0x108)](_0x111d97[_0x4a9d12(0xda)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x111d97['QwDkj'](_0x543f1a,SCREENSHOT_ENDPOINT)&&(_0x4997e4['agent']=API_URL['includes'](_0x111d97[_0x4a9d12(0xda)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x4a9d12(0x1b4)](_0x212a71,_0x543f1a,_0x4997e4,_0x10eb10,API_URL)['then'](({statusCode:_0x55d73d,body:_0x34f759})=>{const _0x34b7f5=_0x4a9d12;if(_0x15c53d[_0x34b7f5(0x1dd)](_0x55d73d,0xc8))_0x15c53d['Icfxa'](_0x4f5c19,_0x34f759?_0x34f759:_0x34b7f5(0x1b9)+_0x55d73d);else{if(_0x2479dd)try{_0x15c53d['QlkvF'](typeof _0x34f759,_0x15c53d[_0x34b7f5(0x1ae)])&&(_0x34f759=JSON['parse'](_0x34f759));}catch(_0x389c15){_0x15c53d[_0x34b7f5(0xdd)](_0x4f5c19,_0x15c53d[_0x34b7f5(0x1c4)]);return;}const _0x3976d3={};_0x3976d3[_0x34b7f5(0x124)]=_0x34f759,_0x15c53d['XiqFm'](_0x1071d0,_0x3976d3);}})[_0x4a9d12(0x142)](_0x1e1afd=>{const _0x542132=_0x4a9d12;_0x1e1afd&&_0x15c53d[_0x542132(0xdd)](_0x4f5c19,_0x1e1afd);});});},exports[a120_0x1ef4aa(0x155)]=_0x3e3323=>{const _0x52e893=a120_0x1ef4aa;if(process[_0x52e893(0x181)][_0x52e893(0x1d0)])return process[_0x52e893(0x181)]['TEST_REPORTING_BUILD_TAG']['split'](',');if(process[_0x52e893(0x181)][_0x52e893(0x19b)])return process[_0x52e893(0x181)][_0x52e893(0x19b)]['split'](',');if(_0x3e3323[_0x52e893(0x14b)])return _0x3e3323[_0x52e893(0x14b)];return[];},exports[a120_0x1ef4aa(0x136)]=(_0x3a7b7f=!![])=>{const _0x257294=a120_0x1ef4aa,_0xa49885={};_0xa49885['TpTmc']=_0x257294(0xde),_0xa49885['sROlU']=_0x257294(0xfa),_0xa49885['qWSow']='Authorization';const _0x14020c=_0xa49885,_0xe5b82f={};_0xe5b82f['Content-Type']=_0x14020c[_0x257294(0x1be)],_0xe5b82f[_0x257294(0x139)]=_0x14020c[_0x257294(0xd1)];const _0x398b72=_0xe5b82f;return _0x3a7b7f&&process[_0x257294(0x181)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x398b72[_0x14020c[_0x257294(0x194)]]=_0x257294(0x18d)+process[_0x257294(0x181)]['BROWSERSTACK_TESTHUB_JWT']),_0x398b72;},exports[a120_0x1ef4aa(0x16f)]=_0x1bba39=>{const _0x4d7170=a120_0x1ef4aa,_0x59214e={};_0x59214e['csXgb']=_0x4d7170(0x164);const _0x29fa25=_0x59214e,_0x7f1fcb=[],_0xbbd015=new RegExp(_0x29fa25[_0x4d7170(0x129)],'i');return Object[_0x4d7170(0x195)](_0x1bba39)[_0x4d7170(0x13e)](_0x41c324=>_0xbbd015[_0x4d7170(0x165)](_0x41c324))[_0x4d7170(0x106)](_0x37eab9=>_0x7f1fcb['push'](_0x1bba39[_0x37eab9])),_0x7f1fcb;},exports['getCustomTags']=_0x28859a=>{const _0x3a0ee0=a120_0x1ef4aa,_0xa82684=[],_0x10da0b=_0x28859a[_0x3a0ee0(0x111)]||process[_0x3a0ee0(0x181)][_0x3a0ee0(0x134)];return _0x10da0b&&_0xa82684[_0x3a0ee0(0x1b2)](_0x10da0b),_0xa82684[_0x3a0ee0(0x1b2)](...exports[_0x3a0ee0(0x16f)](process[_0x3a0ee0(0x181)])),_0xa82684[_0x3a0ee0(0x1b2)](...exports[_0x3a0ee0(0x16f)](_0x28859a)),_0xa82684;},exports['removeAnsiColors']=_0xffdd31=>{const _0x16fc99=a120_0x1ef4aa;if(!_0xffdd31)return'';return _0xffdd31[_0x16fc99(0x11f)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x5d4173=0x64)=>new Promise(_0x2d98e0=>setTimeout(_0x2d98e0,_0x5d4173));const getPlatformName=()=>{const _0xf4e821=a120_0x1ef4aa,_0x320f9c={};_0x320f9c[_0xf4e821(0x168)]=function(_0x579117,_0x59c4f7){return _0x579117===_0x59c4f7;},_0x320f9c[_0xf4e821(0x10b)]='win32',_0x320f9c['mWFtN']=_0xf4e821(0x130),_0x320f9c['Arfla']=_0xf4e821(0x104),_0x320f9c[_0xf4e821(0x178)]=_0xf4e821(0xf7),_0x320f9c['XAEiS']=_0xf4e821(0x19e),_0x320f9c['uqMHf']=_0xf4e821(0x176),_0x320f9c[_0xf4e821(0x11a)]=_0xf4e821(0x16e);const _0x59e587=_0x320f9c;if(_0x59e587[_0xf4e821(0x168)](process[_0xf4e821(0x132)],_0x59e587[_0xf4e821(0x10b)]))return _0x59e587['mWFtN'];if(_0x59e587[_0xf4e821(0x168)](process['platform'],_0x59e587[_0xf4e821(0x175)]))return _0x59e587[_0xf4e821(0x178)];if(_0x59e587[_0xf4e821(0x168)](process[_0xf4e821(0x132)],_0x59e587[_0xf4e821(0x128)]))return _0x59e587[_0xf4e821(0x144)];return _0x59e587[_0xf4e821(0x11a)];},getMacOSVersion=()=>{const _0x2753bb=a120_0x1ef4aa,_0x1b6e1b={};_0x1b6e1b[_0x2753bb(0x1cd)]=_0x2753bb(0x148);const _0x478c9c=_0x1b6e1b;return child_process[_0x2753bb(0x190)](_0x478c9c[_0x2753bb(0x1cd)])[_0x2753bb(0x1b8)]()[_0x2753bb(0x15a)]();},getLinuxDetails=()=>{const _0x21b07c={'KqOEX':function(_0x47440a,_0x1edf15){return _0x47440a(_0x1edf15);},'uKaxM':function(_0x12bbe8,_0x5d35a5){return _0x12bbe8(_0x5d35a5);}};return new Promise((_0x26b8da,_0x1437d5)=>{const _0x32cbd0=a120_0x1149,_0x4e6151={'geQgB':function(_0x23da5c,_0x32dda4){const _0x5c6102=a120_0x1149;return _0x21b07c[_0x5c6102(0x1a8)](_0x23da5c,_0x32dda4);},'YOGfe':function(_0x3a2dd8,_0x3939d1){return _0x21b07c['KqOEX'](_0x3a2dd8,_0x3939d1);}};_0x21b07c[_0x32cbd0(0x1a6)](getos,(_0x3636f2,_0x3ad30f)=>{const _0x29e250=_0x32cbd0;if(_0x3636f2)return _0x4e6151['geQgB'](_0x1437d5,_0x3636f2);_0x4e6151[_0x29e250(0x153)](_0x26b8da,_0x3ad30f);});});};exports[a120_0x1ef4aa(0x120)]=async()=>{const _0x53d546=a120_0x1ef4aa,_0x35cdda={'Nvuvn':function(_0x6b698d){return _0x6b698d();},'xxfgR':_0x53d546(0xf7),'NknUc':_0x53d546(0x130),'ogrzb':'windows-release','GtCEs':function(_0x1bb878){return _0x1bb878();},'KuzUj':_0x53d546(0x176),'EyXoQ':function(_0x3bd75a){return _0x3bd75a();},'UKANX':_0x53d546(0x17e)};let _0x29acab=_0x35cdda['Nvuvn'](getPlatformName),_0x2ce291=os[_0x53d546(0x1e2)]()[_0x53d546(0x1b8)]();switch(_0x29acab){case _0x35cdda[_0x53d546(0x14e)]:_0x2ce291=_0x35cdda[_0x53d546(0x100)](getMacOSVersion);break;case _0x35cdda['NknUc']:try{const _0x3b1a34=(await import(_0x35cdda[_0x53d546(0x138)]))['default'];_0x2ce291=_0x35cdda['GtCEs'](_0x3b1a34);}catch(_0x23d77f){exports[_0x53d546(0xf3)](_0x53d546(0x169)+_0x23d77f[_0x53d546(0x1b8)]());}break;case _0x35cdda['KuzUj']:try{const _0x291f30=await _0x35cdda[_0x53d546(0xf1)](getLinuxDetails);_0x291f30['dist']&&(_0x29acab=_0x291f30[_0x53d546(0x170)]),_0x291f30[_0x53d546(0x1e2)]&&(_0x2ce291=_0x291f30[_0x53d546(0x1e2)][_0x53d546(0x1b8)]());}catch(_0x571a0a){exports['debug'](_0x35cdda['UKANX']);}break;default:break;}const _0x93ecd9={};return _0x93ecd9[_0x53d546(0x14c)]=_0x29acab,_0x93ecd9['platformVersion']=_0x2ce291,_0x93ecd9;},exports['failureData']=(_0x48e840,_0x45c481)=>{const _0x10533a=a120_0x1ef4aa,_0x4bfbda={};_0x4bfbda['YDcVA']=function(_0x138e52,_0x15e96a){return _0x138e52===_0x15e96a;},_0x4bfbda[_0x10533a(0xe3)]=_0x10533a(0x165),_0x4bfbda[_0x10533a(0x1e1)]=function(_0x2e4e15,_0x18d938){return _0x2e4e15===_0x18d938;},_0x4bfbda['VCGPM']=_0x10533a(0xe1);const _0x23f8cd=_0x4bfbda;if(!_0x48e840)return[];try{if(_0x23f8cd[_0x10533a(0x19a)](_0x45c481,_0x23f8cd['tlGUd']))return _0x48e840[_0x10533a(0x162)](_0x224d3f=>{const _0x658911=_0x10533a,{stack:_0xfa9fe,..._0x44e3bd}=_0x224d3f,_0x23c214=Object[_0x658911(0x195)](_0x44e3bd)[_0x658911(0x162)](_0x267a9e=>{return _0x267a9e+':\x20'+_0x44e3bd[_0x267a9e];}),_0x132ee2=_0xfa9fe?exports[_0x658911(0x118)](_0xfa9fe)[_0x658911(0xf0)](/\r?\n/):[exports[_0x658911(0x118)](_0x224d3f[_0x658911(0x1d2)])],_0xa46e9a={};return _0xa46e9a[_0x658911(0x10d)]=_0x132ee2,_0xa46e9a[_0x658911(0xe2)]=_0x23c214,_0xa46e9a;});else{if(_0x23f8cd['dIthT'](_0x45c481,_0x23f8cd['VCGPM'])){const _0x4b92ef=[],_0x3867eb=[];return Object[_0x10533a(0x195)](_0x48e840)[_0x10533a(0x106)](_0x15f603=>{const _0x231d27=_0x10533a;try{_0x3867eb[_0x231d27(0x1b2)](_0x15f603+':\x20'+_0x48e840[_0x15f603]);}catch(_0x5b5a05){exports[_0x231d27(0xf3)](_0x231d27(0x17c)+_0x5b5a05[_0x231d27(0x1d2)]+_0x231d27(0x19f)+_0x5b5a05[_0x231d27(0x10d)]);}}),_0x4b92ef['push']({'backtrace':exports[_0x10533a(0x118)](_0x48e840[_0x10533a(0xd4)])['split'](/\r?\n/),'expanded':_0x3867eb}),_0x4b92ef;}}return[];}catch(_0x51d190){exports[_0x10533a(0xf3)](_0x10533a(0x17c)+_0x51d190[_0x10533a(0x1d2)]+'\x20:\x20'+_0x51d190['backtrace']);}return[];};class PathHelper{constructor(_0x120a2e,_0x546862){const _0x39d020=a120_0x1ef4aa;this[_0x39d020(0xfe)]=_0x120a2e,this[_0x39d020(0x1a2)]=_0x546862;}[a120_0x1ef4aa(0x141)](_0x18eb50){const _0x43d7bb=a120_0x1ef4aa,_0x2aa0e3=this[_0x43d7bb(0xfe)][_0x43d7bb(0x16c)]||this['config'][_0x43d7bb(0xe8)];return path['relative'](_0x2aa0e3,_0x18eb50);}['prefixTestPath'](_0x5a1776){const _0x26298d=a120_0x1ef4aa,_0x9dd096=this[_0x26298d(0x141)](_0x5a1776);return this[_0x26298d(0x1a2)]?path['join'](this[_0x26298d(0x1a2)],_0x9dd096):_0x9dd096;}}exports[a120_0x1ef4aa(0x150)]=PathHelper,exports[a120_0x1ef4aa(0x1a9)]=(_0x49e822=!![])=>{const _0x1e9788=a120_0x1ef4aa,_0x492aea={};_0x492aea[_0x1e9788(0xf6)]=function(_0x12774b,_0x52f334){return _0x12774b===_0x52f334;},_0x492aea[_0x1e9788(0x110)]='X-BSTACK-TESTOPS',_0x492aea[_0x1e9788(0x140)]='true',_0x492aea[_0x1e9788(0x149)]='HTTP',_0x492aea['kgket']=_0x1e9788(0xff),_0x492aea[_0x1e9788(0xd5)]=_0x1e9788(0x154);const _0x54c259=_0x492aea;requestSpy[_0x1e9788(0x1ab)]((_0xe06ad5,_0x5501f7)=>{const _0x57deaf=_0x1e9788;_0x5501f7&&!(_0x5501f7[_0x57deaf(0x1aa)]&&_0x54c259[_0x57deaf(0xf6)](_0x5501f7[_0x57deaf(0x1aa)][_0x54c259['RmQEn']],_0x54c259[_0x57deaf(0x140)]))&&(_0x5501f7['host']=_0x5501f7[_0x57deaf(0x12c)],delete _0x5501f7['hostname'],_0x49e822&&process['emit'](_0x57deaf(0x186)+process[_0x57deaf(0x10e)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x54c259[_0x57deaf(0x149)],'http_response':_0x5501f7})),_0x5501f7&&(constants[_0x57deaf(0x112)][_0x57deaf(0x165)](_0x5501f7['host'])||constants[_0x57deaf(0xe7)][_0x57deaf(0x165)](_0x5501f7[_0x57deaf(0x12d)]))?global[_0x57deaf(0xd9)]=_0x54c259[_0x57deaf(0x1ca)]:global[_0x57deaf(0xd9)]=_0x54c259[_0x57deaf(0xd5)];});},exports[a120_0x1ef4aa(0x13c)]=()=>{const _0x22185a=a120_0x1ef4aa,_0x18ce9f={'yFDqc':function(_0x3809dd,_0x5fa66b){return _0x3809dd(_0x5fa66b);}};console={},Object['keys'](consoleHolder)[_0x22185a(0x106)](_0x12d642=>{const _0x3aa60f=_0x22185a;_0x18ce9f[_0x3aa60f(0x11b)](isFunction,consoleHolder[_0x12d642])?console[_0x12d642]=(..._0x2370c9)=>{const _0x251ed0=_0x3aa60f;try{!Object[_0x251ed0(0x195)](BSTestOpsPatcher)['includes'](_0x12d642)?consoleHolder[_0x12d642](..._0x2370c9):BSTestOpsPatcher[_0x12d642](..._0x2370c9);}catch(_0x47c626){consoleHolder[_0x12d642](..._0x2370c9);}}:console[_0x12d642]=consoleHolder[_0x12d642];});},exports[a120_0x1ef4aa(0x172)]=()=>a120_0x1ef4aa(0xd3)+JSON['stringify']({'action':'annotate','arguments':{'data':a120_0x1ef4aa(0x167)+Date[a120_0x1ef4aa(0x145)](),'level':a120_0x1ef4aa(0xf3)}}),exports[a120_0x1ef4aa(0xe4)]=_0x14d3f3=>{const _0x35df27=a120_0x1ef4aa,_0x442b87={};_0x442b87[_0x35df27(0xec)]=function(_0x3e6593,_0x242e0d){return _0x3e6593===_0x242e0d;},_0x442b87['jCpnD']=_0x35df27(0xff),_0x442b87['buBej']=_0x35df27(0x1b1),_0x442b87[_0x35df27(0x19c)]=_0x35df27(0x198),_0x442b87[_0x35df27(0xf4)]=function(_0x1ec448,_0x441ecb){return _0x1ec448>_0x441ecb;},_0x442b87['yFIKK']=_0x35df27(0x1d9),_0x442b87[_0x35df27(0x15b)]=_0x35df27(0x151),_0x442b87[_0x35df27(0xe6)]='turboScaleGridDetails',_0x442b87[_0x35df27(0x109)]=_0x35df27(0x10f),_0x442b87['pAouL']=_0x35df27(0x17a);const _0x50e9a7=_0x442b87;let _0x1a5cb4=null;try{if(_0x50e9a7[_0x35df27(0xec)](global['__cloud_provider___'],_0x50e9a7[_0x35df27(0x1dc)])){if(_0x14d3f3[_0x50e9a7[_0x35df27(0x123)]]||_0x14d3f3[_0x50e9a7[_0x35df27(0x19c)]]||!bsSetupHelper[_0x35df27(0x17d)](global[_0x35df27(0x135)])&&_0x50e9a7['ynheB'](global[_0x35df27(0x135)][_0x35df27(0x192)],0x0)&&(global[_0x35df27(0x135)][0x0][_0x50e9a7['SsBXg']]||global['capabilities'][0x0][_0x50e9a7[_0x35df27(0x123)]]))_0x1a5cb4=_0x50e9a7[_0x35df27(0x1c9)];else _0x14d3f3[_0x50e9a7[_0x35df27(0x15b)]]&&_0x14d3f3[_0x50e9a7[_0x35df27(0x15b)]][_0x50e9a7['HbJcx']]?_0x1a5cb4=_0x50e9a7['dUiMN']:_0x1a5cb4=_0x50e9a7[_0x35df27(0x184)];}}catch(_0x37e143){exports['debug'](_0x35df27(0x1b0)+constants[_0x35df27(0x1c3)]+_0x35df27(0x15d)+_0x37e143);}return _0x1a5cb4;},exports['sendPlatformDetails']=async(_0x1099b9,_0x2bfda3,_0x23e78e=![])=>{const _0xd16065=a120_0x1ef4aa,_0x28e9a8={};_0x28e9a8[_0xd16065(0x137)]=function(_0x3d8a30,_0x133f9e){return _0x3d8a30===_0x133f9e;},_0x28e9a8[_0xd16065(0x163)]=_0xd16065(0xff),_0x28e9a8['blNXw']=_0xd16065(0x1d6),_0x28e9a8[_0xd16065(0x1df)]=_0xd16065(0x1c1);const _0x3e0824=_0x28e9a8;try{const _0x16bc39=await _0x1099b9[_0xd16065(0xdc)](),_0x211d82=await _0x1099b9[_0xd16065(0x1d8)](),_0x31e09d={},_0x37e8b8=Object[_0xd16065(0x1b7)](_0x211d82['getCapabilities']()[_0xd16065(0x188)]),_0x497e90={'product':exports[_0xd16065(0xe4)](_0x37e8b8),'capabilities':_0x37e8b8,'platform':_0x16bc39[_0xd16065(0x1af)](),'platform_version':bsSetupHelper[_0xd16065(0xfd)](_0x3e0824[_0xd16065(0x137)](global[_0xd16065(0xd9)],_0x3e0824[_0xd16065(0x163)])),'browser':_0x16bc39[_0xd16065(0x160)](),'browser_version':_0x16bc39[_0xd16065(0x171)](),'session_id':_0x211d82[_0xd16065(0x115)]()};global['__cloud_provider___']?_0x31e09d[global['__cloud_provider___']]=_0x497e90:_0x31e09d[_0x3e0824[_0xd16065(0x1c0)]]=_0x497e90;if(_0x23e78e)return _0x31e09d;process['emit'](_0xd16065(0x17b)+process[_0xd16065(0x10e)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x3e0824['UAXRl'],'http_response':_0x31e09d,'uuid':_0x2bfda3});}catch(_0x261ec7){exports[_0xd16065(0xf3)](_0xd16065(0x107)+_0x261ec7);}},exports['isInternalHook']=_0x5deb0c=>{const _0x599d3=a120_0x1ef4aa;return _0x5deb0c&&_0x5deb0c[_0x599d3(0x1b8)]()[_0x599d3(0x119)](/browserstack internal helper hook/);};
1
+ function a120_0x1caf(){const _0x2f0886=['../performance/performance-tester','../../bin/utils/logPatcher','CODECEPT','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','lDiQb','^CUSTOM_TAG_\x5cd+$','BROWSERSTACK_TEST_OBSERVABILITY_YML','local_grid','PathHelper','ztibB','getFailureType','message','Error\x20in\x20importing\x20windows-release\x20','TEST_PLATFORM','507570dmRNig','./constants','KbSpd','host','isTestObservabilitySession','iHxVH','getPackageVersion','../logger','Mdxeh','expanded','xrvSw','toString','Rybzs','iIuen','prefixTestPath','6291pQsrRW','tvXQJ','forEach','filter','4|1|2|0|3|5','RICTG','getSyncScript','AOhtt','getBrowserName','relative','bMiYu','BROWSERSTACK_OBSERVABILITY_DEBUG','Uploading\x20trace\x20logs\x20to:\x20','MMwmo','ATS_HUB_URL_REGEX','addRequestSpy','BROWSERSTACK_RERUN_TESTS','test_run_uuid','IgHwZ','getCapabilities','729568mBQyrx','sScQK','EzENl','default','vlaKE','now','BROWSERSTACK_TEST_OBSERVABILITY','4okJaYh','nodeRequest','getUserName','2591510xjmYnm','aJJaY','maxSockets','YwqDO','ZWFOs','QdwzX','bs:addLog:','asJPD','winstonLogger','XBhuo','join','../performance/constants','UihuE','TEST_REPORTING_BUILD_TAG','CUSTOM_TAG','18400oRZxHn','length','config','backtrace','getPlatformVersion','mceDo','agent','customTag','https','\x20]\x20Build\x20Not\x20Found\x20%s','dkGpJ','SeXdL','measureWrapper','keys','getos','getDefaultHeaders','TEST_ATTACHMENT','getObservabilityLinkedProductName','browserstack','1259122zfCiPH','annotate','GxKxT','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','sQZzp','lodash','RYXbX','Linux','shouldReRunObservabilityTests','][\x20','pyrGy','HUB_URL_REGEX','UdXGM','url','match','debug','[%s][\x20','failureData','../../bin/utils/constants','true','rootDir','object','BROWSERSTACK_TEST_REPORTING_DEBUG','emit','map','ZVvQv','eNZTM','mocha','PRINT_BUILDLINK','BROWSERSTACK_TEST_REPORTING','err','keepAlive','sleep','parse','release','cJwZG','getSession','toJSON','../../bin/v2/browserstackCLI','X-BSTACK-TESTOPS','nnTlM','data','removeAnsiColors','trace','getBrowserVersion','O11Y_URL','http','FxRuA','ZhTtY','error','buildTag','relativeTestFilePath','LogCreated','/builds/','stack','SMDGY','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','application/json','browserstack_executor:\x20','__cloud_provider___','util','QOjjE','split','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','ojfVv','lmttQ','TEST_REPORTING_ANALYTICS','toISOString','getAccessKey','extractValuesWithRegexKeyMatch','format','app-automate','body','fromEntries','turboscale','getBrowserStackConfig','app','RUoPa','bstack:options','asyncAwaitNodeReq','JNJYn','smXoI','Visit\x20','automate','test','112092BPLsLj','windows-release','RzXza','LIVCQ','dist','platform','formData','BROWSERSTACK_TESTHUB_JWT','path','DlTLC','lPQjI','timeout','printBuildLink','RmKkM','turboScaleGridDetails','\x20test\x20instance\x20:\x20','Sxqep','kjEjh','capabilities','TEST_OBSERVABILITY_BUILD_TAG','getPlatformDetails','mhEbt','MHetA','TxGlW','yvlCE','698SnStpp','ehxaQ','patchConsoleLogger','spy','AssertionError','Windows','env','maxTotalSockets','../helper','\x20]\x20','headers','getFrameworkVersion','pMdTD','BS_TESTOPS_BUILD_HASHED_ID','log','YWPqN','modifyReqForTraceUpload','LRAre','appium:app','json','codeceptjs','dobuE','lbtCZ','getCustomTags','push','git-repo-info','trim','child_process','Agent','undefined','KIMlO','pid','getBuildTags','77CCScnG','vyYMF','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','catch','Content-Type','ObservabilitySync:','AVipr','unknown_grid','isUndefined','DgTMc','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','NCndF','stringify','PLAYWRIGHT','pKmTP','xGEud','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','includes','Authorization','SdvNt','logs','Znnlq','iuTcE','CUCUMBER','zyOVB','fqmvf','prefix','O11yHashedID','hQDRU','zGKOV','replace','jest','UnhandledError','KdzeF','NykMu','win32','xIEhK','git-last-commit','getPlatform','\x20:\x20','OS\x20X','info','isArray','MOCHA','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','UzEoc','null','platformVersion'];a120_0x1caf=function(){return _0x2f0886;};return a120_0x1caf();}const a120_0x4e99a3=a120_0x4d01;(function(_0xc91dda,_0x280e1f){const _0x5f4d30=a120_0x4d01,_0x2d445c=_0xc91dda();while(!![]){try{const _0x2eea06=-parseInt(_0x5f4d30(0x23b))/0x1+parseInt(_0x5f4d30(0x1cc))/0x2+parseInt(_0x5f4d30(0x17d))/0x3+-parseInt(_0x5f4d30(0x1a7))/0x4*(-parseInt(_0x5f4d30(0x1aa))/0x5)+parseInt(_0x5f4d30(0x222))/0x6*(parseInt(_0x5f4d30(0x25c))/0x7)+parseInt(_0x5f4d30(0x1a0))/0x8+-parseInt(_0x5f4d30(0x18c))/0x9*(parseInt(_0x5f4d30(0x1b9))/0xa);if(_0x2eea06===_0x280e1f)break;else _0x2d445c['push'](_0x2d445c['shift']());}catch(_0x44e772){_0x2d445c['push'](_0x2d445c['shift']());}}}(a120_0x1caf,0x4fced));const fs=require('fs'),path=require(a120_0x4e99a3(0x22a)),gitLastCommit=require(a120_0x4e99a3(0x281)),getRepoInfo=require(a120_0x4e99a3(0x254)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a120_0x4e99a3(0x17e)),http=require(a120_0x4e99a3(0x1fa)),https=require('https'),child_process=require(a120_0x4e99a3(0x256)),getos=require(a120_0x4e99a3(0x1c7)),os=require('os'),logger=require(a120_0x4e99a3(0x184))[a120_0x4e99a3(0x1b2)],bsSetupHelper=require(a120_0x4e99a3(0x243)),requestSpy=require('../../helpers/request-spy'),constants=require(a120_0x4e99a3(0x1de)),logPatcher=require(a120_0x4e99a3(0x28d)),util=require(a120_0x4e99a3(0x208)),{fileLogger}=require('../logger'),PerformanceTester=require(a120_0x4e99a3(0x28c)),{isFunction}=require(a120_0x4e99a3(0x1d1)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a120_0x4e99a3(0x1b5)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a120_0x4e99a3(0x1f7)]=_0x26121e=>{const _0x5f302e=a120_0x4e99a3;fileLogger['silly']('['+new Date()[_0x5f302e(0x210)]()+'][\x20'+constants[_0x5f302e(0x20f)]+'\x20]\x20'+_0x26121e);},exports[a120_0x4e99a3(0x1db)]=_0x47735f=>{const _0x586fdf=a120_0x4e99a3,_0x23ccee={};_0x23ccee[_0x586fdf(0x17f)]=function(_0xc2cf81,_0x5d76ae){return _0xc2cf81===_0x5d76ae;},_0x23ccee[_0x586fdf(0x19e)]=_0x586fdf(0x1df),_0x23ccee['dobuE']=function(_0x4ee837,_0x5297a){return _0x4ee837===_0x5297a;};const _0xa06ec3=_0x23ccee;fileLogger[_0x586fdf(0x1db)]('['+new Date()[_0x586fdf(0x210)]()+_0x586fdf(0x1d5)+constants['TEST_REPORTING_ANALYTICS']+_0x586fdf(0x244)+_0x47735f),(_0xa06ec3['KbSpd'](process[_0x586fdf(0x241)][_0x586fdf(0x1e2)],_0xa06ec3['IgHwZ'])||_0xa06ec3[_0x586fdf(0x17f)](process[_0x586fdf(0x241)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0xa06ec3[_0x586fdf(0x17f)](process[_0x586fdf(0x241)][_0x586fdf(0x197)],_0xa06ec3[_0x586fdf(0x19e)])||_0xa06ec3[_0x586fdf(0x250)](process[_0x586fdf(0x241)][_0x586fdf(0x197)],'1'))&&consoleHolder[_0x586fdf(0x249)]('\x0a['+new Date()[_0x586fdf(0x210)]()+'][\x20'+constants[_0x586fdf(0x20f)]+_0x586fdf(0x244)+_0x47735f+'\x0a');};const a120_0x279b30={};a120_0x279b30[a120_0x4e99a3(0x1eb)]=!![],a120_0x279b30[a120_0x4e99a3(0x22d)]=0xea60,a120_0x279b30[a120_0x4e99a3(0x1ac)]=0x2,a120_0x279b30[a120_0x4e99a3(0x242)]=0x2;const httpKeepAliveAgent=new http[(a120_0x4e99a3(0x257))](a120_0x279b30),a120_0x8c929f={};a120_0x8c929f[a120_0x4e99a3(0x1eb)]=!![],a120_0x8c929f[a120_0x4e99a3(0x22d)]=0xea60,a120_0x8c929f['maxSockets']=0x2,a120_0x8c929f[a120_0x4e99a3(0x242)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a120_0x8c929f),a120_0x2d511b={};a120_0x2d511b['keepAlive']=!![],a120_0x2d511b[a120_0x4e99a3(0x22d)]=0xea60,a120_0x2d511b[a120_0x4e99a3(0x1ac)]=0x2,a120_0x2d511b[a120_0x4e99a3(0x242)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a120_0x4e99a3(0x257))](a120_0x2d511b),a120_0x61c9d1={};a120_0x61c9d1[a120_0x4e99a3(0x1eb)]=!![],a120_0x61c9d1[a120_0x4e99a3(0x22d)]=0xea60,a120_0x61c9d1[a120_0x4e99a3(0x1ac)]=0x2,a120_0x61c9d1[a120_0x4e99a3(0x242)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x4e99a3(0x257))](a120_0x61c9d1);exports[a120_0x4e99a3(0x1d4)]=()=>{const _0x19e242=a120_0x4e99a3,_0x412a80={};_0x412a80[_0x19e242(0x189)]=function(_0x56d12f,_0x43d87e){return _0x56d12f!==_0x43d87e;},_0x412a80[_0x19e242(0x1ab)]=_0x19e242(0x28a);const _0x7fc9f=_0x412a80;return process[_0x19e242(0x241)][_0x19e242(0x19c)]&&_0x7fc9f[_0x19e242(0x189)](process[_0x19e242(0x241)][_0x19e242(0x19c)],_0x7fc9f[_0x19e242(0x1ab)])?!![]:![];},exports[a120_0x4e99a3(0x181)]=()=>{const _0x20d1f5=a120_0x4e99a3,_0x2c70d1={};_0x2c70d1[_0x20d1f5(0x1e5)]=function(_0x89e29c,_0x4424b8){return _0x89e29c===_0x4424b8;},_0x2c70d1[_0x20d1f5(0x1e6)]=_0x20d1f5(0x1df),_0x2c70d1['bMiYu']=function(_0x32bafd,_0x27f4a0){return _0x32bafd===_0x27f4a0;};const _0x1f35c1=_0x2c70d1;let _0x1743ac=!![];return process[_0x20d1f5(0x241)][_0x20d1f5(0x292)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x1e5)](process[_0x20d1f5(0x241)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x1f35c1[_0x20d1f5(0x1e6)])),process[_0x20d1f5(0x241)][_0x20d1f5(0x1a6)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x1e5)](process[_0x20d1f5(0x241)][_0x20d1f5(0x1a6)],_0x1f35c1[_0x20d1f5(0x1e6)])),process[_0x20d1f5(0x241)][_0x20d1f5(0x1e9)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x196)](process[_0x20d1f5(0x241)][_0x20d1f5(0x1e9)],_0x1f35c1[_0x20d1f5(0x1e6)])),_0x1743ac;},exports['parseFileNames']=_0x1d7ca9=>{const _0x50b3d0=a120_0x4e99a3;if(bsSetupHelper[_0x50b3d0(0x264)](_0x1d7ca9))return undefined;try{return _0x1d7ca9['trim']()[_0x50b3d0(0x20a)](',');}catch(_0x23c065){return undefined;}},exports[a120_0x4e99a3(0x22e)]=()=>{const _0x505337=a120_0x4e99a3,_0x4649a8={'AVipr':function(_0x561c9f,_0x2d0051){return _0x561c9f(_0x2d0051);},'UdXGM':_0x505337(0x1f2),'SMDGY':function(_0x59ff06,_0x1f58d6){return _0x59ff06!==_0x1f58d6;},'aJxnP':_0x505337(0x28a),'MwEgI':_0x505337(0x258)};return PerformanceTester[_0x505337(0x1c5)](PerformanceO11yEvents[_0x505337(0x1e8)],async()=>{const _0xcb4adc=_0x505337;try{const _0x4d087f=_0x4649a8[_0xcb4adc(0x262)](require,_0x4649a8[_0xcb4adc(0x1d8)]);if(_0x4d087f[_0xcb4adc(0x277)]){logger[_0xcb4adc(0x285)](_0xcb4adc(0x21f)+O11Y_URL+_0xcb4adc(0x201)+_0x4d087f[_0xcb4adc(0x277)]+_0xcb4adc(0x25e));return;}process['env'][_0xcb4adc(0x248)]&&_0x4649a8['SMDGY'](process[_0xcb4adc(0x241)][_0xcb4adc(0x248)],_0x4649a8['aJxnP'])&&_0x4649a8[_0xcb4adc(0x203)](process[_0xcb4adc(0x241)][_0xcb4adc(0x248)],_0x4649a8['MwEgI'])&&logger['info'](_0xcb4adc(0x21f)+constants[_0xcb4adc(0x1f9)]+'/builds/'+process[_0xcb4adc(0x241)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xcb4adc(0x25e));}catch(_0x61324b){logger[_0xcb4adc(0x1fd)](util[_0xcb4adc(0x213)](_0xcb4adc(0x1dc)+constants['TEST_REPORTING_ANALYTICS']+_0xcb4adc(0x1c2),new Date()[_0xcb4adc(0x210)](),_0x61324b[_0xcb4adc(0x202)]||_0x61324b['message']||_0x61324b));}})();},exports[a120_0x4e99a3(0x179)]=_0xece1d6=>{const _0x1a542d=a120_0x4e99a3,_0x4c1b70={};_0x4c1b70[_0x1a542d(0x1b6)]=_0x1a542d(0x23f),_0x4c1b70[_0x1a542d(0x27d)]=_0x1a542d(0x27c);const _0x9a3b9d=_0x4c1b70;if(!_0xece1d6)return null;return _0xece1d6[_0x1a542d(0x188)]()[_0x1a542d(0x1da)](/AssertionError/)?_0x9a3b9d[_0x1a542d(0x1b6)]:_0x9a3b9d[_0x1a542d(0x27d)];},exports[a120_0x4e99a3(0x246)]=_0x37eec2=>{const _0x53cec7=a120_0x4e99a3,_0x8c6fb1={};_0x8c6fb1[_0x53cec7(0x25d)]=_0x53cec7(0x1e7),_0x8c6fb1[_0x53cec7(0x1f4)]='@playwright/test',_0x8c6fb1['Mdxeh']=_0x53cec7(0x24f),_0x8c6fb1[_0x53cec7(0x22f)]=_0x53cec7(0x27b),_0x8c6fb1['mceDo']='@cucumber/cucumber';const _0x1cc1c3=_0x8c6fb1;let _0x23eee9=null;switch(_0x37eec2){case FRAMEWORKS[_0x53cec7(0x287)]:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x25d)]);break;case FRAMEWORKS[_0x53cec7(0x269)]:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x1f4)]);break;case FRAMEWORKS[_0x53cec7(0x28e)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x185)]);break;case FRAMEWORKS['JEST']:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x22f)]);break;case FRAMEWORKS[_0x53cec7(0x273)]:_0x23eee9=bsSetupHelper['getPackageVersion'](_0x1cc1c3[_0x53cec7(0x1be)]);break;default:break;}return _0x23eee9;},exports[a120_0x4e99a3(0x218)]=_0x3ecac0=>{const _0x583d51=a120_0x4e99a3;let _0x29a216=null;switch(_0x3ecac0){case FRAMEWORKS[_0x583d51(0x269)]:_0x29a216=process['env']['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x29a216)return;return bsSetupHelper['readConfig'](_0x29a216,![]);},exports['getUserCredentials']=_0x5e7938=>{const _0x1f9426=a120_0x4e99a3;return{'username':bsSetupHelper[_0x1f9426(0x1a9)](_0x5e7938),'accessKey':bsSetupHelper[_0x1f9426(0x211)](_0x5e7938)};},exports[a120_0x4e99a3(0x24b)]=(_0x3aeeb8,_0x38c45b)=>{const _0x1bb95e=a120_0x4e99a3,_0xdb2394={};_0xdb2394[_0x1bb95e(0x26b)]=_0x1bb95e(0x190),_0xdb2394[_0x1bb95e(0x271)]=_0x1bb95e(0x200),_0xdb2394[_0x1bb95e(0x1b3)]=_0x1bb95e(0x1c9);const _0x1063f6=_0xdb2394,_0x50f262=_0x1063f6['xGEud'][_0x1bb95e(0x20a)]('|');let _0x576aea=0x0;while(!![]){switch(_0x50f262[_0x576aea++]){case'0':delete _0x3aeeb8['body'];continue;case'1':if(!_0x3aeeb8[_0x1bb95e(0x215)][0x0]||!_0x3aeeb8['body'][0x0][_0x1bb95e(0x270)]||!_0x3aeeb8['body'][0x0]['logs'][_0x1bb95e(0x1ba)])return;continue;case'2':_0x3aeeb8[_0x1bb95e(0x228)]={'data':_0x3aeeb8[_0x1bb95e(0x215)][0x0][_0x1bb95e(0x270)][0x0][_0x1bb95e(0x1f5)],'test_run_uuid':_0x3aeeb8['body'][0x0][_0x1bb95e(0x270)][0x0][_0x1bb95e(0x19d)],'event_type':_0x1063f6[_0x1bb95e(0x271)],'kind':_0x1063f6[_0x1bb95e(0x1b3)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x1bb95e(0x210)](),'fileName':_0x3aeeb8[_0x1bb95e(0x215)][0x0]['logs'][0x0]['fileName']};continue;case'3':delete _0x3aeeb8[_0x1bb95e(0x24e)];continue;case'4':if(!_0x3aeeb8[_0x1bb95e(0x215)]||!Array[_0x1bb95e(0x286)](_0x3aeeb8['body']))return;continue;case'5':delete _0x38c45b['headers'];continue;}break;}},exports[a120_0x4e99a3(0x21c)]=async(_0x21ef9b,_0x13f425,_0x56116e,_0x526fc1,_0x36002f=!![])=>{const _0x4e5389=a120_0x4e99a3,_0x5ee5cd={};_0x5ee5cd[_0x4e5389(0x193)]=function(_0x2df5d4,_0x563f9d){return _0x2df5d4===_0x563f9d;},_0x5ee5cd['bJpKj']='Content-Type',_0x5ee5cd[_0x4e5389(0x18a)]=_0x4e5389(0x205),_0x5ee5cd[_0x4e5389(0x1ef)]=_0x4e5389(0x1c1),_0x5ee5cd[_0x4e5389(0x247)]=function(_0x3b951c,_0x2f55a2){return _0x3b951c!==_0x2f55a2;},_0x5ee5cd[_0x4e5389(0x1b1)]=_0x4e5389(0x1e1),_0x5ee5cd[_0x4e5389(0x21e)]=_0x4e5389(0x20c);const _0x682985=_0x5ee5cd,_0x38fbcb={..._0x526fc1,...{'method':_0x21ef9b,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x13f425,'body':_0x56116e,'json':_0x682985[_0x4e5389(0x193)](_0x526fc1['headers'][_0x682985['bJpKj']],_0x682985[_0x4e5389(0x18a)]),'agent':API_URL[_0x4e5389(0x26d)](_0x682985[_0x4e5389(0x1ef)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x682985[_0x4e5389(0x193)](_0x13f425,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x38fbcb[_0x4e5389(0x1bf)]=API_URL[_0x4e5389(0x26d)](_0x682985[_0x4e5389(0x1ef)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x38fbcb,_0x526fc1),logger['debug'](_0x4e5389(0x198)+_0x38fbcb['url']));try{const {statusCode:_0x338d2b,body:_0x9c880e}=await bsSetupHelper[_0x4e5389(0x1a8)](_0x21ef9b,_0x13f425,_0x38fbcb,_0x526fc1,_0x38fbcb[_0x4e5389(0x1d9)]);if(_0x682985[_0x4e5389(0x247)](_0x338d2b,0xc8))return _0x9c880e?_0x9c880e:_0x4e5389(0x1cf)+_0x338d2b;let _0x5e0f34=_0x9c880e;if(_0x36002f)try{_0x682985[_0x4e5389(0x247)](typeof _0x9c880e,_0x682985[_0x4e5389(0x1b1)])&&(_0x5e0f34=JSON[_0x4e5389(0x1ed)](_0x9c880e));}catch(_0x41031a){logger[_0x4e5389(0x1fd)](_0x682985['smXoI'],_0x9c880e,util['format'](_0x41031a));}const _0x3099b3={};return _0x3099b3[_0x4e5389(0x1f5)]=_0x5e0f34,_0x3099b3;}catch(_0x2d67b9){logger['error'](_0x4e5389(0x28f)+util[_0x4e5389(0x213)](_0x2d67b9));throw _0x2d67b9;}},exports['nodeRequest']=(_0x56e7b2,_0x24a6b7,_0x39aa95,_0x53489d,_0x41f862=!![])=>{const _0x10e400=a120_0x4e99a3,_0x2ac542={'YwqDO':function(_0x4d98ec,_0x2c6dc2){return _0x4d98ec!==_0x2c6dc2;},'GxKxT':function(_0x4a935f,_0x5ecaa9){return _0x4a935f(_0x5ecaa9);},'BKZbU':function(_0x5280e6,_0x241fc0){return _0x5280e6!==_0x241fc0;},'vlaKE':_0x10e400(0x1e1),'sQZzp':_0x10e400(0x266),'DlTLC':function(_0x33c73a,_0x4afe2b){return _0x33c73a===_0x4afe2b;},'YWPqN':_0x10e400(0x260),'RzXza':_0x10e400(0x205),'zGKOV':'https'};return new Promise((_0x4a61cb,_0x15b733)=>{const _0x5d81a1=_0x10e400,_0x51f611={'KIMlO':function(_0x3096f4,_0x42ae01){const _0x136485=a120_0x4d01;return _0x2ac542[_0x136485(0x1ce)](_0x3096f4,_0x42ae01);}},_0x50d6cd={..._0x53489d,...{'method':_0x56e7b2,'url':API_URL+'/'+_0x24a6b7,'body':_0x39aa95,'json':_0x2ac542[_0x5d81a1(0x22b)](_0x53489d[_0x5d81a1(0x245)][_0x2ac542[_0x5d81a1(0x24a)]],_0x2ac542[_0x5d81a1(0x224)]),'agent':API_URL[_0x5d81a1(0x26d)](_0x2ac542[_0x5d81a1(0x279)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2ac542[_0x5d81a1(0x22b)](_0x24a6b7,SCREENSHOT_ENDPOINT)&&(_0x50d6cd[_0x5d81a1(0x1bf)]=API_URL[_0x5d81a1(0x26d)](_0x2ac542[_0x5d81a1(0x279)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x56e7b2,_0x24a6b7,_0x50d6cd,_0x53489d,API_URL)['then'](({statusCode:_0x5cf973,body:_0x3a1827})=>{const _0x443c14=_0x5d81a1;if(_0x2ac542[_0x443c14(0x1ad)](_0x5cf973,0xc8))_0x2ac542[_0x443c14(0x1ce)](_0x15b733,_0x3a1827?_0x3a1827:_0x443c14(0x1cf)+_0x5cf973);else{if(_0x41f862)try{_0x2ac542['BKZbU'](typeof _0x3a1827,_0x2ac542[_0x443c14(0x1a4)])&&(_0x3a1827=JSON[_0x443c14(0x1ed)](_0x3a1827));}catch(_0x56469a){_0x2ac542[_0x443c14(0x1ce)](_0x15b733,_0x2ac542[_0x443c14(0x1d0)]);return;}const _0x9c118d={};_0x9c118d[_0x443c14(0x1f5)]=_0x3a1827,_0x2ac542[_0x443c14(0x1ce)](_0x4a61cb,_0x9c118d);}})[_0x5d81a1(0x25f)](_0x2e9065=>{const _0x5236bb=_0x5d81a1;_0x2e9065&&_0x51f611[_0x5236bb(0x259)](_0x15b733,_0x2e9065);});});},exports[a120_0x4e99a3(0x25b)]=_0x1d0519=>{const _0x533fcd=a120_0x4e99a3;if(process[_0x533fcd(0x241)][_0x533fcd(0x1b7)])return process['env'][_0x533fcd(0x1b7)][_0x533fcd(0x20a)](',');if(process[_0x533fcd(0x241)][_0x533fcd(0x235)])return process[_0x533fcd(0x241)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x533fcd(0x20a)](',');if(_0x1d0519[_0x533fcd(0x1fe)])return _0x1d0519[_0x533fcd(0x1fe)];return[];},exports[a120_0x4e99a3(0x1c8)]=(_0x1895f4=!![])=>{const _0x5b697e=a120_0x4e99a3,_0x47d0d0={};_0x47d0d0[_0x5b697e(0x199)]='application/json',_0x47d0d0[_0x5b697e(0x209)]='true',_0x47d0d0['reoOO']=_0x5b697e(0x26e);const _0x510d7f=_0x47d0d0,_0x271c85={};_0x271c85['Content-Type']=_0x510d7f['MMwmo'],_0x271c85[_0x5b697e(0x1f3)]=_0x510d7f[_0x5b697e(0x209)];const _0x169a86=_0x271c85;return _0x1895f4&&process[_0x5b697e(0x241)][_0x5b697e(0x229)]&&(_0x169a86[_0x510d7f['reoOO']]='Bearer\x20'+process[_0x5b697e(0x241)][_0x5b697e(0x229)]),_0x169a86;},exports['extractValuesWithRegexKeyMatch']=_0x1288e4=>{const _0x1282cd=a120_0x4e99a3,_0x7010bb={};_0x7010bb['xrvSw']=_0x1282cd(0x291);const _0x46bf39=_0x7010bb,_0x39392a=[],_0x9098e4=new RegExp(_0x46bf39[_0x1282cd(0x187)],'i');return Object[_0x1282cd(0x1c6)](_0x1288e4)[_0x1282cd(0x18f)](_0x7fda90=>_0x9098e4[_0x1282cd(0x221)](_0x7fda90))[_0x1282cd(0x18e)](_0x351f7a=>_0x39392a[_0x1282cd(0x253)](_0x1288e4[_0x351f7a])),_0x39392a;},exports[a120_0x4e99a3(0x252)]=_0x58626a=>{const _0x5109f4=a120_0x4e99a3,_0x4b5b27=[],_0x1a299b=_0x58626a[_0x5109f4(0x1c0)]||process[_0x5109f4(0x241)][_0x5109f4(0x1b8)];return _0x1a299b&&_0x4b5b27[_0x5109f4(0x253)](_0x1a299b),_0x4b5b27['push'](...exports[_0x5109f4(0x212)](process[_0x5109f4(0x241)])),_0x4b5b27[_0x5109f4(0x253)](...exports[_0x5109f4(0x212)](_0x58626a)),_0x4b5b27;},exports[a120_0x4e99a3(0x1f6)]=_0x39fa42=>{const _0x31e3fc=a120_0x4e99a3;if(!_0x39fa42)return'';return _0x39fa42[_0x31e3fc(0x27a)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a120_0x4e99a3(0x1ec)]=(_0x3aa8a0=0x64)=>new Promise(_0x44f6b7=>setTimeout(_0x44f6b7,_0x3aa8a0));function a120_0x4d01(_0x3ba5b5,_0x3efb1f){const _0x1caf88=a120_0x1caf();return a120_0x4d01=function(_0x4d01c9,_0x122e0a){_0x4d01c9=_0x4d01c9-0x179;let _0x3efc7e=_0x1caf88[_0x4d01c9];return _0x3efc7e;},a120_0x4d01(_0x3ba5b5,_0x3efb1f);}const getPlatformName=()=>{const _0x4c6833=a120_0x4e99a3,_0x428b9b={};_0x428b9b[_0x4c6833(0x265)]=function(_0x50563d,_0x29d641){return _0x50563d===_0x29d641;},_0x428b9b['QdwzX']=_0x4c6833(0x27f),_0x428b9b['MHetA']=_0x4c6833(0x240),_0x428b9b['SeXdL']=function(_0x328102,_0x39022c){return _0x328102===_0x39022c;},_0x428b9b[_0x4c6833(0x21a)]='darwin',_0x428b9b[_0x4c6833(0x275)]=_0x4c6833(0x284),_0x428b9b[_0x4c6833(0x182)]=function(_0x47d6ba,_0x2b51ca){return _0x47d6ba===_0x2b51ca;},_0x428b9b[_0x4c6833(0x1a1)]='linux',_0x428b9b[_0x4c6833(0x274)]=_0x4c6833(0x1d3),_0x428b9b[_0x4c6833(0x20d)]='Unknown';const _0x21729b=_0x428b9b;if(_0x21729b[_0x4c6833(0x265)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x1af)]))return _0x21729b[_0x4c6833(0x238)];if(_0x21729b[_0x4c6833(0x1c4)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x21a)]))return _0x21729b[_0x4c6833(0x275)];if(_0x21729b[_0x4c6833(0x182)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x1a1)]))return _0x21729b[_0x4c6833(0x274)];return _0x21729b[_0x4c6833(0x20d)];},getMacOSVersion=()=>{const _0x217ab9=a120_0x4e99a3,_0x33e1d0={};_0x33e1d0[_0x217ab9(0x26a)]=_0x217ab9(0x204);const _0x26c354=_0x33e1d0;return child_process['execSync'](_0x26c354[_0x217ab9(0x26a)])[_0x217ab9(0x188)]()[_0x217ab9(0x255)]();},getLinuxDetails=()=>{const _0x145bba={'lPQjI':function(_0x2af032,_0x4f8169){return _0x2af032(_0x4f8169);},'LIVCQ':function(_0x506d5e,_0x3ce68e){return _0x506d5e(_0x3ce68e);}};return new Promise((_0x54aad0,_0x16953a)=>{const _0x1b009d=a120_0x4d01,_0x5a8612={'hQDRU':function(_0x21c403,_0x573427){const _0x4d0207=a120_0x4d01;return _0x145bba[_0x4d0207(0x22c)](_0x21c403,_0x573427);}};_0x145bba[_0x1b009d(0x225)](getos,(_0x59b637,_0x515f29)=>{const _0x32a8a4=_0x1b009d;if(_0x59b637)return _0x5a8612['hQDRU'](_0x16953a,_0x59b637);_0x5a8612[_0x32a8a4(0x278)](_0x54aad0,_0x515f29);});});};exports[a120_0x4e99a3(0x236)]=async()=>{const _0x2b65a6=a120_0x4e99a3,_0x5a8318={'ZWFOs':function(_0x394ea6){return _0x394ea6();},'TxGlW':_0x2b65a6(0x284),'ztibB':_0x2b65a6(0x240),'yvlCE':_0x2b65a6(0x223),'rXOfJ':_0x2b65a6(0x1d3),'iuTcE':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x318654=_0x5a8318[_0x2b65a6(0x1ae)](getPlatformName),_0x4a2f12=os['release']()[_0x2b65a6(0x188)]();switch(_0x318654){case _0x5a8318[_0x2b65a6(0x239)]:_0x4a2f12=_0x5a8318[_0x2b65a6(0x1ae)](getMacOSVersion);break;case _0x5a8318[_0x2b65a6(0x295)]:try{const _0x2d6dd0=(await import(_0x5a8318[_0x2b65a6(0x23a)]))[_0x2b65a6(0x1a3)];_0x4a2f12=_0x5a8318[_0x2b65a6(0x1ae)](_0x2d6dd0);}catch(_0x3d1a8b){exports[_0x2b65a6(0x1db)](_0x2b65a6(0x17b)+_0x3d1a8b['toString']());}break;case _0x5a8318['rXOfJ']:try{const _0x3ad86a=await _0x5a8318[_0x2b65a6(0x1ae)](getLinuxDetails);_0x3ad86a[_0x2b65a6(0x226)]&&(_0x318654=_0x3ad86a[_0x2b65a6(0x226)]),_0x3ad86a[_0x2b65a6(0x1ee)]&&(_0x4a2f12=_0x3ad86a['release']['toString']());}catch(_0x1a408e){exports[_0x2b65a6(0x1db)](_0x5a8318[_0x2b65a6(0x272)]);}break;default:break;}const _0x47df56={};return _0x47df56['platformName']=_0x318654,_0x47df56[_0x2b65a6(0x28b)]=_0x4a2f12,_0x47df56;},exports[a120_0x4e99a3(0x1dd)]=(_0x1692cc,_0x3ff1b3)=>{const _0xa46621=a120_0x4e99a3,_0x2a8408={};_0x2a8408[_0xa46621(0x290)]=function(_0x1ec82f,_0x49833d){return _0x1ec82f===_0x49833d;},_0x2a8408[_0xa46621(0x1d6)]='test',_0x2a8408[_0xa46621(0x289)]=_0xa46621(0x1ea);const _0x5883c8=_0x2a8408;if(!_0x1692cc)return[];try{if(_0x5883c8[_0xa46621(0x290)](_0x3ff1b3,_0x5883c8[_0xa46621(0x1d6)]))return _0x1692cc[_0xa46621(0x1e4)](_0x56952a=>{const _0x26ee74=_0xa46621,{stack:_0x4fb83c,..._0xb02a3}=_0x56952a,_0x612801=Object[_0x26ee74(0x1c6)](_0xb02a3)[_0x26ee74(0x1e4)](_0x186e51=>{return _0x186e51+':\x20'+_0xb02a3[_0x186e51];}),_0xf25425=_0x4fb83c?exports[_0x26ee74(0x1f6)](_0x4fb83c)[_0x26ee74(0x20a)](/\r?\n/):[exports['removeAnsiColors'](_0x56952a['message'])],_0x42eb43={};return _0x42eb43['backtrace']=_0xf25425,_0x42eb43[_0x26ee74(0x186)]=_0x612801,_0x42eb43;});else{if(_0x5883c8[_0xa46621(0x290)](_0x3ff1b3,_0x5883c8['UzEoc'])){const _0x40c688=[],_0x1db480=[];return Object[_0xa46621(0x1c6)](_0x1692cc)[_0xa46621(0x18e)](_0x5b25f5=>{const _0x47a65f=_0xa46621;try{_0x1db480[_0x47a65f(0x253)](_0x5b25f5+':\x20'+_0x1692cc[_0x5b25f5]);}catch(_0x2f91eb){exports[_0x47a65f(0x1db)](_0x47a65f(0x26c)+_0x2f91eb['message']+'\x20:\x20'+_0x2f91eb[_0x47a65f(0x1bc)]);}}),_0x40c688[_0xa46621(0x253)]({'backtrace':exports['removeAnsiColors'](_0x1692cc[_0xa46621(0x202)])[_0xa46621(0x20a)](/\r?\n/),'expanded':_0x1db480}),_0x40c688;}}return[];}catch(_0x1d16c5){exports[_0xa46621(0x1db)](_0xa46621(0x26c)+_0x1d16c5[_0xa46621(0x17a)]+_0xa46621(0x283)+_0x1d16c5[_0xa46621(0x1bc)]);}return[];};class PathHelper{constructor(_0x13cab6,_0x252311){const _0x55af9f=a120_0x4e99a3;this[_0x55af9f(0x1bb)]=_0x13cab6,this[_0x55af9f(0x276)]=_0x252311;}[a120_0x4e99a3(0x1ff)](_0x5eb818){const _0x4a6c48=a120_0x4e99a3,_0x21041a=this[_0x4a6c48(0x1bb)]['cwd']||this[_0x4a6c48(0x1bb)][_0x4a6c48(0x1e0)];return path[_0x4a6c48(0x195)](_0x21041a,_0x5eb818);}[a120_0x4e99a3(0x18b)](_0x4596c6){const _0x14d416=a120_0x4e99a3,_0x4b6d68=this[_0x14d416(0x1ff)](_0x4596c6);return this[_0x14d416(0x276)]?path[_0x14d416(0x1b4)](this['prefix'],_0x4b6d68):_0x4b6d68;}}exports[a120_0x4e99a3(0x294)]=PathHelper,exports[a120_0x4e99a3(0x19b)]=(_0x2a31f0=!![])=>{const _0x505bfb=a120_0x4e99a3,_0x35659c={};_0x35659c[_0x505bfb(0x1fc)]=function(_0x132d47,_0x57175e){return _0x132d47===_0x57175e;},_0x35659c[_0x505bfb(0x1a2)]='X-BSTACK-TESTOPS',_0x35659c[_0x505bfb(0x267)]='true',_0x35659c['QngcR']='HTTP',_0x35659c[_0x505bfb(0x191)]=_0x505bfb(0x1cb),_0x35659c['JNJYn']=_0x505bfb(0x293);const _0x1ab474=_0x35659c;requestSpy[_0x505bfb(0x23e)]((_0x171ef3,_0x45d5a6)=>{const _0x4132ce=_0x505bfb;_0x45d5a6&&!(_0x45d5a6[_0x4132ce(0x245)]&&_0x1ab474[_0x4132ce(0x1fc)](_0x45d5a6[_0x4132ce(0x245)][_0x1ab474[_0x4132ce(0x1a2)]],_0x1ab474['NCndF']))&&(_0x45d5a6[_0x4132ce(0x180)]=_0x45d5a6['hostname'],delete _0x45d5a6['hostname'],_0x2a31f0&&process[_0x4132ce(0x1e3)](_0x4132ce(0x1b0)+process[_0x4132ce(0x25a)],{'timestamp':new Date()[_0x4132ce(0x210)](),'level':null,'message':null,'kind':_0x1ab474['QngcR'],'http_response':_0x45d5a6})),_0x45d5a6&&(constants[_0x4132ce(0x1d7)][_0x4132ce(0x221)](_0x45d5a6[_0x4132ce(0x180)])||constants[_0x4132ce(0x19a)][_0x4132ce(0x221)](_0x45d5a6['host']))?global[_0x4132ce(0x207)]=_0x1ab474['RICTG']:global[_0x4132ce(0x207)]=_0x1ab474[_0x4132ce(0x21d)];});},exports[a120_0x4e99a3(0x23d)]=()=>{const _0x308d0b=a120_0x4e99a3,_0xe3428a={'jkZXs':function(_0x2a9fb9,_0x22dbb0){return _0x2a9fb9(_0x22dbb0);}};console={},Object[_0x308d0b(0x1c6)](consoleHolder)['forEach'](_0x3350fd=>{_0xe3428a['jkZXs'](isFunction,consoleHolder[_0x3350fd])?console[_0x3350fd]=(..._0x305b7d)=>{const _0x5b05b1=a120_0x4d01;try{!Object[_0x5b05b1(0x1c6)](BSTestOpsPatcher)['includes'](_0x3350fd)?consoleHolder[_0x3350fd](..._0x305b7d):BSTestOpsPatcher[_0x3350fd](..._0x305b7d);}catch(_0x2b4d26){consoleHolder[_0x3350fd](..._0x305b7d);}}:console[_0x3350fd]=consoleHolder[_0x3350fd];});},exports[a120_0x4e99a3(0x192)]=()=>a120_0x4e99a3(0x206)+JSON[a120_0x4e99a3(0x268)]({'action':a120_0x4e99a3(0x1cd),'arguments':{'data':a120_0x4e99a3(0x261)+Date[a120_0x4e99a3(0x1a5)](),'level':a120_0x4e99a3(0x1db)}}),exports[a120_0x4e99a3(0x1ca)]=_0x298107=>{const _0x350aa0=a120_0x4e99a3,_0x2dd3af={};_0x2dd3af[_0x350aa0(0x20e)]=function(_0x175202,_0x1c4901){return _0x175202===_0x1c4901;},_0x2dd3af[_0x350aa0(0x18d)]=_0x350aa0(0x1cb),_0x2dd3af[_0x350aa0(0x280)]=_0x350aa0(0x24d),_0x2dd3af[_0x350aa0(0x251)]=_0x350aa0(0x219),_0x2dd3af['RYXbX']=function(_0x22c392,_0x6e9e42){return _0x22c392>_0x6e9e42;},_0x2dd3af[_0x350aa0(0x23c)]=_0x350aa0(0x214),_0x2dd3af[_0x350aa0(0x232)]=_0x350aa0(0x21b),_0x2dd3af[_0x350aa0(0x1fb)]=_0x350aa0(0x230),_0x2dd3af[_0x350aa0(0x237)]=_0x350aa0(0x217),_0x2dd3af[_0x350aa0(0x24c)]=_0x350aa0(0x220);const _0x5f3c54=_0x2dd3af;let _0x525669=null;try{if(_0x5f3c54[_0x350aa0(0x20e)](global[_0x350aa0(0x207)],_0x5f3c54['tvXQJ'])){if(_0x298107[_0x5f3c54[_0x350aa0(0x280)]]||_0x298107[_0x5f3c54[_0x350aa0(0x251)]]||!bsSetupHelper[_0x350aa0(0x264)](global['capabilities'])&&_0x5f3c54[_0x350aa0(0x1d2)](global[_0x350aa0(0x234)][_0x350aa0(0x1ba)],0x0)&&(global[_0x350aa0(0x234)][0x0][_0x5f3c54[_0x350aa0(0x251)]]||global[_0x350aa0(0x234)][0x0][_0x5f3c54[_0x350aa0(0x280)]]))_0x525669=_0x5f3c54[_0x350aa0(0x23c)];else _0x298107[_0x5f3c54[_0x350aa0(0x232)]]&&_0x298107[_0x5f3c54[_0x350aa0(0x232)]][_0x5f3c54['FxRuA']]?_0x525669=_0x5f3c54[_0x350aa0(0x237)]:_0x525669=_0x5f3c54[_0x350aa0(0x24c)];}}catch(_0x2110c4){exports[_0x350aa0(0x1db)](_0x350aa0(0x20b)+constants[_0x350aa0(0x20f)]+_0x350aa0(0x231)+_0x2110c4);}return _0x525669;},exports['sendPlatformDetails']=async(_0x224070,_0x4febee,_0x2b8d21=![])=>{const _0x1f6bff=a120_0x4e99a3,_0x4ad420={};_0x4ad420[_0x1f6bff(0x233)]=function(_0x3bf3e4,_0x172001){return _0x3bf3e4===_0x172001;},_0x4ad420[_0x1f6bff(0x27e)]=_0x1f6bff(0x1cb),_0x4ad420[_0x1f6bff(0x26f)]=_0x1f6bff(0x263),_0x4ad420[_0x1f6bff(0x1c3)]=_0x1f6bff(0x17c);const _0x3d7072=_0x4ad420;try{const _0x1f2593=await _0x224070[_0x1f6bff(0x19f)](),_0x2675fb=await _0x224070[_0x1f6bff(0x1f0)](),_0x2dd822={},_0xe95ad=Object[_0x1f6bff(0x216)](_0x2675fb[_0x1f6bff(0x19f)]()['map_']),_0x2b81c={'product':exports[_0x1f6bff(0x1ca)](_0xe95ad),'capabilities':_0xe95ad,'platform':_0x1f2593[_0x1f6bff(0x282)](),'platform_version':bsSetupHelper[_0x1f6bff(0x1bd)](_0x3d7072['kjEjh'](global[_0x1f6bff(0x207)],_0x3d7072['NykMu'])),'browser':_0x1f2593[_0x1f6bff(0x194)](),'browser_version':_0x1f2593[_0x1f6bff(0x1f8)](),'session_id':_0x2675fb[_0x1f6bff(0x1f1)]()};global[_0x1f6bff(0x207)]?_0x2dd822[global[_0x1f6bff(0x207)]]=_0x2b81c:_0x2dd822[_0x3d7072[_0x1f6bff(0x26f)]]=_0x2b81c;if(_0x2b8d21)return _0x2dd822;process[_0x1f6bff(0x1e3)]('bs:addPlatformDetails:'+process[_0x1f6bff(0x25a)],{'timestamp':new Date()[_0x1f6bff(0x210)](),'level':null,'message':null,'kind':_0x3d7072['dkGpJ'],'http_response':_0x2dd822,'uuid':_0x4febee});}catch(_0x293ef5){exports[_0x1f6bff(0x1db)](_0x1f6bff(0x288)+_0x293ef5);}},exports['isInternalHook']=_0xa5408e=>{const _0x557ef7=a120_0x4e99a3;return _0xa5408e&&_0xa5408e[_0x557ef7(0x188)]()[_0x557ef7(0x1da)](/browserstack internal helper hook/);};
@@ -1 +1 @@
1
- var a121_0x3d9636=a121_0x3760;(function(_0x4a22e4,_0x34e3ef){var _0x3e8bd2=a121_0x3760,_0x56179f=_0x4a22e4();while(!![]){try{var _0x4347fa=-parseInt(_0x3e8bd2(0x9d))/0x1*(-parseInt(_0x3e8bd2(0x9e))/0x2)+parseInt(_0x3e8bd2(0x9b))/0x3+parseInt(_0x3e8bd2(0x9f))/0x4*(-parseInt(_0x3e8bd2(0x98))/0x5)+-parseInt(_0x3e8bd2(0x9c))/0x6+-parseInt(_0x3e8bd2(0xa3))/0x7+parseInt(_0x3e8bd2(0xa4))/0x8+parseInt(_0x3e8bd2(0x97))/0x9*(parseInt(_0x3e8bd2(0xa0))/0xa);if(_0x4347fa===_0x34e3ef)break;else _0x56179f['push'](_0x56179f['shift']());}catch(_0x12afc2){_0x56179f['push'](_0x56179f['shift']());}}}(a121_0xe19d,0x6a754));function a121_0x3760(_0x35fcf1,_0x4c5e54){var _0xe19d01=a121_0xe19d();return a121_0x3760=function(_0x376063,_0x38e745){_0x376063=_0x376063-0x97;var _0x50a334=_0xe19d01[_0x376063];return _0x50a334;},a121_0x3760(_0x35fcf1,_0x4c5e54);}var a121_0x356ab7={};function a121_0xe19d(){var _0x239ac9=['2973882YBNagG','2HcrcFT','322822HNmSsd','5704vgTHid','230aRpbIe','ORCHESTRATION_API_URL','https://collector-observability.browserstack.com','2531963KnNSsG','6848792VutjPq','47655lFcWKf','165zvGZSn','testorchestration/api/v1/split-tests','FAILED_TESTS_ENDPOINT','119280YITvOa'];a121_0xe19d=function(){return _0x239ac9;};return a121_0xe19d();}a121_0x356ab7[a121_0x3d9636(0xa1)]=a121_0x3d9636(0xa2),a121_0x356ab7[a121_0x3d9636(0x9a)]='testorchestration/api/v1/failed-tests',a121_0x356ab7['SPLIT_TESTS_ENDPOINT']=a121_0x3d9636(0x99),module['exports']=a121_0x356ab7;
1
+ function a121_0x28dc(_0x3e11f8,_0x1813e5){var _0x26c3f9=a121_0x26c3();return a121_0x28dc=function(_0x28dcbf,_0x50044f){_0x28dcbf=_0x28dcbf-0xf2;var _0x31e90d=_0x26c3f9[_0x28dcbf];return _0x31e90d;},a121_0x28dc(_0x3e11f8,_0x1813e5);}function a121_0x26c3(){var _0x14afe1=['343cxwWst','SPLIT_TESTS_ENDPOINT','1895620OHSeGn','https://collector-observability.browserstack.com','testorchestration/api/v1/split-tests','26672jraZjW','FAILED_TESTS_ENDPOINT','114096EUWUQe','140dumbAY','exports','testorchestration/api/v1/failed-tests','1465494xPyKiC','284yTDaed','359QKJozz','11961840ravqgb','3195144UtYEqw','54HZSssf'];a121_0x26c3=function(){return _0x14afe1;};return a121_0x26c3();}var a121_0x5167c8=a121_0x28dc;(function(_0x32bd90,_0x5e9eb8){var _0x12cbf5=a121_0x28dc,_0x243925=_0x32bd90();while(!![]){try{var _0x320e25=-parseInt(_0x12cbf5(0xf9))/0x1*(-parseInt(_0x12cbf5(0xf8))/0x2)+-parseInt(_0x12cbf5(0xf7))/0x3+-parseInt(_0x12cbf5(0xfb))/0x4+-parseInt(_0x12cbf5(0xf4))/0x5*(parseInt(_0x12cbf5(0xf3))/0x6)+parseInt(_0x12cbf5(0xfd))/0x7*(parseInt(_0x12cbf5(0x102))/0x8)+parseInt(_0x12cbf5(0xfc))/0x9*(parseInt(_0x12cbf5(0xff))/0xa)+parseInt(_0x12cbf5(0xfa))/0xb;if(_0x320e25===_0x5e9eb8)break;else _0x243925['push'](_0x243925['shift']());}catch(_0x635181){_0x243925['push'](_0x243925['shift']());}}}(a121_0x26c3,0x973a0));var a121_0x43bdba={};a121_0x43bdba['ORCHESTRATION_API_URL']=a121_0x5167c8(0x100),a121_0x43bdba[a121_0x5167c8(0xf2)]=a121_0x5167c8(0xf6),a121_0x43bdba[a121_0x5167c8(0xfe)]=a121_0x5167c8(0x101),module[a121_0x5167c8(0xf5)]=a121_0x43bdba;
@@ -1 +1 @@
1
- function a122_0x2e1b(_0x1f5c2c,_0x73d5fe){const _0x34bf82=a122_0x34bf();return a122_0x2e1b=function(_0x2e1bb5,_0x3ba5b7){_0x2e1bb5=_0x2e1bb5-0x1e7;let _0x3c5e9b=_0x34bf82[_0x2e1bb5];return _0x3c5e9b;},a122_0x2e1b(_0x1f5c2c,_0x73d5fe);}const a122_0x3334f0=a122_0x2e1b;(function(_0x41baca,_0xfff00e){const _0x925f24=a122_0x2e1b,_0x447de1=_0x41baca();while(!![]){try{const _0x5c4e0d=parseInt(_0x925f24(0x225))/0x1+-parseInt(_0x925f24(0x1f5))/0x2*(parseInt(_0x925f24(0x24c))/0x3)+-parseInt(_0x925f24(0x21a))/0x4*(parseInt(_0x925f24(0x261))/0x5)+-parseInt(_0x925f24(0x217))/0x6*(-parseInt(_0x925f24(0x222))/0x7)+-parseInt(_0x925f24(0x208))/0x8+parseInt(_0x925f24(0x200))/0x9*(-parseInt(_0x925f24(0x249))/0xa)+parseInt(_0x925f24(0x236))/0xb;if(_0x5c4e0d===_0xfff00e)break;else _0x447de1['push'](_0x447de1['shift']());}catch(_0x330a06){_0x447de1['push'](_0x447de1['shift']());}}}(a122_0x34bf,0x72bc4));const fs=require('fs'),path=require(a122_0x3334f0(0x1e9)),FileHelper=require(a122_0x3334f0(0x252)),RequestUtils=require(a122_0x3334f0(0x215)),logger=require(a122_0x3334f0(0x1fa))[a122_0x3334f0(0x268)],POLLING_INTERVAL=0x2710,TAG=a122_0x3334f0(0x228);class FailFastManager{constructor(_0x511ffe,_0x2a457a,_0x4461f6){const _0x281f51=a122_0x3334f0,_0x1573c9={};_0x1573c9[_0x281f51(0x1ee)]=function(_0xa46577,_0x3388aa){return _0xa46577+_0x3388aa;},_0x1573c9[_0x281f51(0x246)]=_0x281f51(0x248),_0x1573c9[_0x281f51(0x234)]=function(_0x449009,_0x4072d1){return _0x449009||_0x4072d1;},_0x1573c9['zESdB']=_0x281f51(0x22e),_0x1573c9['jkZxs']='failFastState.lock',_0x1573c9[_0x281f51(0x21e)]=_0x281f51(0x1f3);const _0x2178d8=_0x1573c9;this[_0x281f51(0x242)]=_0x2178d8[_0x281f51(0x234)](_0x511ffe,{}),this[_0x281f51(0x214)]=_0x2a457a,this[_0x281f51(0x22a)]=_0x4461f6,this['isCIMode']=!!(process[_0x281f51(0x229)][_0x281f51(0x202)]&&process[_0x281f51(0x229)]['BROWSERSTACK_NODE_INDEX']&&process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x36684d=this[_0x281f51(0x242)][_0x281f51(0x1ef)];this[_0x281f51(0x1f1)]=path[_0x281f51(0x227)](_0x36684d,_0x2178d8[_0x281f51(0x247)]),this[_0x281f51(0x1f6)]=path[_0x281f51(0x227)](_0x36684d,_0x2178d8[_0x281f51(0x1ed)]),this['failFastActiveMarkerPath']=path[_0x281f51(0x227)](_0x36684d,_0x2178d8[_0x281f51(0x21e)]),this[_0x281f51(0x24f)]=new FileHelper(this['failFastConfig'],this[_0x281f51(0x1f1)],this[_0x281f51(0x1f6)],this['_getDefaultState']()),this['state']=this[_0x281f51(0x263)](),this['pollingInterval']=null,this[_0x281f51(0x1ec)]&&(this[_0x281f51(0x23c)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x5504d4=>{const _0x197e94=_0x281f51;logger[_0x197e94(0x244)]('['+TAG+_0x197e94(0x260)+_0x5504d4[_0x197e94(0x22f)]+(_0x5504d4[_0x197e94(0x250)]?_0x2178d8[_0x197e94(0x1ee)](_0x2178d8[_0x197e94(0x246)],_0x5504d4[_0x197e94(0x250)]):'')),this[_0x197e94(0x20e)]=this[_0x197e94(0x263)]();}),this[_0x281f51(0x1ec)]&&this[_0x281f51(0x259)](),logger['debug']('['+TAG+_0x281f51(0x26a)+this[_0x281f51(0x242)][_0x281f51(0x23a)]+',\x20CI\x20Mode:\x20'+this[_0x281f51(0x1ec)]);}['_getDefaultState'](){const _0x7114bb={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x7114bb;}async[a122_0x3334f0(0x22b)](){const _0x7ddc80=a122_0x3334f0,_0x467727={};_0x467727[_0x7ddc80(0x1e7)]=function(_0x22d139,_0x529664){return _0x22d139+_0x529664;},_0x467727[_0x7ddc80(0x24b)]='\x0aStack:\x20';const _0x45e782=_0x467727;if(this[_0x7ddc80(0x1ec)])try{fs['existsSync'](this[_0x7ddc80(0x23b)])&&(this[_0x7ddc80(0x20e)]['failFastActive']=!![],logger[_0x7ddc80(0x232)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x3bfb9c){logger[_0x7ddc80(0x244)]('['+TAG+_0x7ddc80(0x1ea)+_0x3bfb9c['message']+(_0x3bfb9c[_0x7ddc80(0x250)]?_0x45e782[_0x7ddc80(0x1e7)](_0x45e782['lzVwM'],_0x3bfb9c[_0x7ddc80(0x250)]):''));}else try{const _0x44d8d3=await this[_0x7ddc80(0x24f)][_0x7ddc80(0x1f9)]();if(_0x44d8d3)this[_0x7ddc80(0x20e)]={...this[_0x7ddc80(0x263)](),..._0x44d8d3,'uniqueFailedTests':new Set(_0x44d8d3[_0x7ddc80(0x212)]||[])},logger[_0x7ddc80(0x232)]('['+TAG+_0x7ddc80(0x262));else{logger[_0x7ddc80(0x232)]('['+TAG+_0x7ddc80(0x266));const _0x265e6e=this[_0x7ddc80(0x263)](),_0x2a42eb={..._0x265e6e,'uniqueFailedTests':Array[_0x7ddc80(0x216)](_0x265e6e[_0x7ddc80(0x212)])};await this[_0x7ddc80(0x24f)][_0x7ddc80(0x255)](_0x2a42eb),this[_0x7ddc80(0x20e)]=_0x265e6e;}}catch(_0x40458c){logger[_0x7ddc80(0x232)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x40458c[_0x7ddc80(0x22f)]+(_0x40458c[_0x7ddc80(0x250)]?_0x45e782[_0x7ddc80(0x1e7)](_0x45e782[_0x7ddc80(0x24b)],_0x40458c[_0x7ddc80(0x250)]):'')),this[_0x7ddc80(0x20e)]=this['_getDefaultState']();}}async[a122_0x3334f0(0x24a)](_0x4443e3,_0x3cec14){const _0x3b8a89=a122_0x3334f0,_0x3b54a7={};_0x3b54a7[_0x3b8a89(0x1fe)]=function(_0x366b10,_0x2f4bb3){return _0x366b10>_0x2f4bb3;},_0x3b54a7[_0x3b8a89(0x20f)]='failed',_0x3b54a7['noKfp']='passed',_0x3b54a7['zqfAv']=function(_0x51e52f,_0x1eb8de){return _0x51e52f+_0x1eb8de;},_0x3b54a7[_0x3b8a89(0x238)]='\x0aStack:\x20',_0x3b54a7[_0x3b8a89(0x25a)]=function(_0x574966,_0x4dd563){return _0x574966||_0x4dd563;},_0x3b54a7[_0x3b8a89(0x224)]=function(_0x5e1968,_0x28db03){return _0x5e1968+_0x28db03;};const _0x58acad=_0x3b54a7;if(this['isCIMode'])this['state'][_0x3b8a89(0x21c)]+=0x1,_0x3cec14&&_0x58acad[_0x3b8a89(0x1fe)](_0x3cec14['length'],0x0)&&(!this[_0x3b8a89(0x23c)][_0x3b8a89(0x22c)](_0x4443e3)&&(await this[_0x3b8a89(0x269)](_0x4443e3),this[_0x3b8a89(0x23c)]['add'](_0x4443e3)));else try{const _0x9b725e={'fullName':_0x4443e3,'status':_0x3cec14&&_0x58acad[_0x3b8a89(0x1fe)](_0x3cec14['length'],0x0)?_0x58acad[_0x3b8a89(0x20f)]:_0x58acad[_0x3b8a89(0x21f)]},_0x5b2e98=await this['fileHelper'][_0x3b8a89(0x267)](_0x9b725e);this[_0x3b8a89(0x20e)]={...this[_0x3b8a89(0x263)](),..._0x5b2e98['newState'],'uniqueFailedTests':new Set(_0x5b2e98[_0x3b8a89(0x213)][_0x3b8a89(0x212)]||[])};}catch(_0x19a0d9){logger['error']('['+TAG+_0x3b8a89(0x253)+_0x19a0d9['message']+(_0x19a0d9[_0x3b8a89(0x250)]?_0x58acad[_0x3b8a89(0x265)](_0x58acad['hyIkV'],_0x19a0d9['stack']):''));try{const _0x23138e=await this[_0x3b8a89(0x24f)][_0x3b8a89(0x1f9)]();this[_0x3b8a89(0x20e)]={...this['_getDefaultState'](),..._0x58acad['AqUHN'](_0x23138e,{}),'uniqueFailedTests':new Set(_0x23138e?_0x23138e['uniqueFailedTests']||[]:[])},logger[_0x3b8a89(0x232)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x237d92){logger[_0x3b8a89(0x244)]('['+TAG+_0x3b8a89(0x24e)+_0x237d92[_0x3b8a89(0x22f)]+(_0x237d92[_0x3b8a89(0x250)]?_0x58acad[_0x3b8a89(0x224)](_0x58acad[_0x3b8a89(0x238)],_0x237d92[_0x3b8a89(0x250)]):'')),this[_0x3b8a89(0x20e)]=this[_0x3b8a89(0x263)]();}}}async[a122_0x3334f0(0x269)](_0x25f34a){const _0x573f75=a122_0x3334f0,_0x3320ae={};_0x3320ae['IiMlO']=function(_0x2ed8ff,_0x11e5bf){return _0x2ed8ff+_0x11e5bf;},_0x3320ae[_0x573f75(0x21b)]=_0x573f75(0x248);const _0x1b9476=_0x3320ae;if(!this[_0x573f75(0x1ec)]||!_0x25f34a)return;try{logger[_0x573f75(0x232)]('['+TAG+_0x573f75(0x204)+_0x25f34a);const _0x9a4c1f={};_0x9a4c1f[_0x573f75(0x214)]=this[_0x573f75(0x214)],_0x9a4c1f[_0x573f75(0x22a)]=this[_0x573f75(0x22a)],_0x9a4c1f[_0x573f75(0x231)]=[_0x25f34a],_0x9a4c1f[_0x573f75(0x1f7)]=process[_0x573f75(0x229)][_0x573f75(0x202)],await RequestUtils[_0x573f75(0x25e)](_0x9a4c1f);}catch(_0x4b3e7a){logger[_0x573f75(0x244)]('['+TAG+_0x573f75(0x235)+_0x25f34a+_0x573f75(0x23d)+_0x4b3e7a[_0x573f75(0x22f)]+(_0x4b3e7a[_0x573f75(0x250)]?_0x1b9476[_0x573f75(0x211)](_0x1b9476[_0x573f75(0x21b)],_0x4b3e7a[_0x573f75(0x250)]):''));}}async[a122_0x3334f0(0x206)](){const _0x413217=a122_0x3334f0,_0x4f12a0={};_0x4f12a0[_0x413217(0x1eb)]=function(_0x391f2c,_0x6db2a2){return _0x391f2c===_0x6db2a2;},_0x4f12a0['YjMKa']=_0x413217(0x25b),_0x4f12a0['luQMN']=function(_0x414715,_0x26073e){return _0x414715+_0x26073e;},_0x4f12a0[_0x413217(0x1f2)]=_0x413217(0x248),_0x4f12a0[_0x413217(0x21d)]=function(_0x3046a5,_0x4cc727){return _0x3046a5!==_0x4cc727;};const _0x114c86=_0x4f12a0;if(!this[_0x413217(0x1ec)])return 0x0;try{const _0x172e81={};_0x172e81[_0x413217(0x214)]=this[_0x413217(0x214)],_0x172e81['projectName']=this[_0x413217(0x22a)],_0x172e81['buildRunIdentifier']=process[_0x413217(0x229)][_0x413217(0x202)];const _0x35c83c=await RequestUtils['getFailedTestsCount'](_0x172e81);return logger[_0x413217(0x232)]('['+TAG+_0x413217(0x25c)+_0x35c83c),_0x114c86[_0x413217(0x1eb)](typeof _0x35c83c,_0x114c86[_0x413217(0x25f)])?_0x35c83c:0x0;}catch(_0x2d3253){return logger['error']('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x2d3253['message']+(_0x2d3253[_0x413217(0x250)]?_0x114c86[_0x413217(0x219)](_0x114c86[_0x413217(0x1f2)],_0x2d3253[_0x413217(0x250)]):'')),_0x114c86[_0x413217(0x21d)](this['state'][_0x413217(0x25d)],undefined)?this[_0x413217(0x20e)]['lastAPIFailedCount']:0x0;}}async[a122_0x3334f0(0x1f0)](){const _0x229400=a122_0x3334f0,_0x147aa3={};_0x147aa3[_0x229400(0x256)]=function(_0x56f9b6,_0x5ebb8f){return _0x56f9b6!==_0x5ebb8f;},_0x147aa3[_0x229400(0x203)]=function(_0x33cfdd,_0x10cf23){return _0x33cfdd+_0x10cf23;},_0x147aa3['tSkmo']=_0x229400(0x248);const _0x5ba360=_0x147aa3;if(!this[_0x229400(0x1ec)])return;try{const _0x1981c2=await this[_0x229400(0x206)]();_0x5ba360[_0x229400(0x256)](_0x1981c2,this[_0x229400(0x20e)][_0x229400(0x25d)])&&(logger[_0x229400(0x232)]('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x1981c2+_0x229400(0x223)+this[_0x229400(0x20e)][_0x229400(0x25d)]+')'),this[_0x229400(0x20e)][_0x229400(0x25d)]=_0x1981c2);}catch(_0x1988f3){logger[_0x229400(0x244)]('['+TAG+_0x229400(0x1e8)+_0x1988f3['message']+(_0x1988f3[_0x229400(0x250)]?_0x5ba360[_0x229400(0x203)](_0x5ba360['tSkmo'],_0x1988f3[_0x229400(0x250)]):''));}}async[a122_0x3334f0(0x259)](){const _0x57cb94=a122_0x3334f0,_0x5e2b6c={'VhUIJ':function(_0x54f17b,_0x13867c,_0x4bb107){return _0x54f17b(_0x13867c,_0x4bb107);}};this[_0x57cb94(0x1f8)]&&this[_0x57cb94(0x233)](),this[_0x57cb94(0x1ec)]&&(await this[_0x57cb94(0x1f0)](),this['pollingInterval']=_0x5e2b6c[_0x57cb94(0x1f4)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x57cb94(0x232)]('['+TAG+_0x57cb94(0x239)+POLLING_INTERVAL+_0x57cb94(0x254)));}[a122_0x3334f0(0x233)](){const _0x9ccf40=a122_0x3334f0,_0x44e900={'LILXq':function(_0x44b958,_0x4d2fcf){return _0x44b958(_0x4d2fcf);}};this[_0x9ccf40(0x1f8)]&&(_0x44e900[_0x9ccf40(0x22d)](clearInterval,this[_0x9ccf40(0x1f8)]),this[_0x9ccf40(0x1f8)]=null,logger[_0x9ccf40(0x232)]('['+TAG+_0x9ccf40(0x251)));}async[a122_0x3334f0(0x230)](){const _0x2e70d4=a122_0x3334f0,_0x186785={};_0x186785['glaWc']=function(_0x4d3d60,_0x2f8d5c){return _0x4d3d60===_0x2f8d5c;},_0x186785['mETzE']=function(_0x121511,_0xd4a929){return _0x121511===_0xd4a929;},_0x186785[_0x2e70d4(0x20b)]=function(_0x475341,_0x277b33){return _0x475341<=_0x277b33;},_0x186785[_0x2e70d4(0x257)]=function(_0xd3bf71,_0x2bbc51){return _0xd3bf71+_0x2bbc51;},_0x186785[_0x2e70d4(0x1fc)]='\x0aStack:\x20',_0x186785['ioFcs']=function(_0x50e49f,_0x4141fb){return _0x50e49f!==_0x4141fb;},_0x186785[_0x2e70d4(0x210)]=function(_0x485b87,_0x231398){return _0x485b87>=_0x231398;},_0x186785[_0x2e70d4(0x20d)]=function(_0x409435,_0x36e2cd){return _0x409435>=_0x36e2cd;};const _0x19773c=_0x186785,{failureThresholdCount:_0xf8cbad}=this[_0x2e70d4(0x242)];if(_0x19773c[_0x2e70d4(0x241)](_0xf8cbad,null)||_0x19773c[_0x2e70d4(0x245)](_0xf8cbad,undefined)||_0x19773c[_0x2e70d4(0x20b)](_0xf8cbad,0x0))return logger[_0x2e70d4(0x232)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x2e70d4(0x1ec)]){try{if(fs[_0x2e70d4(0x207)](this[_0x2e70d4(0x23b)]))return logger[_0x2e70d4(0x232)]('['+TAG+_0x2e70d4(0x1fd)),!this['state']['failFastActive']&&(this[_0x2e70d4(0x20e)][_0x2e70d4(0x226)]=!![]),this['stopPolling'](),!![];}catch(_0x298f54){logger[_0x2e70d4(0x244)]('['+TAG+_0x2e70d4(0x1ea)+_0x298f54['message']+(_0x298f54[_0x2e70d4(0x250)]?_0x19773c[_0x2e70d4(0x257)](_0x19773c[_0x2e70d4(0x1fc)],_0x298f54[_0x2e70d4(0x250)]):''));}const _0x46b751=_0x19773c[_0x2e70d4(0x218)](this[_0x2e70d4(0x20e)][_0x2e70d4(0x25d)],undefined)?this[_0x2e70d4(0x20e)][_0x2e70d4(0x25d)]:0x0;if(_0x19773c[_0x2e70d4(0x210)](_0x46b751,_0xf8cbad)){logger['info']('['+TAG+_0x2e70d4(0x23e)+_0x46b751+_0x2e70d4(0x221)+_0xf8cbad+'.');try{fs[_0x2e70d4(0x1ff)](this[_0x2e70d4(0x23b)],new Date()[_0x2e70d4(0x20a)]()),logger[_0x2e70d4(0x232)]('['+TAG+_0x2e70d4(0x201)+this[_0x2e70d4(0x23b)]),this[_0x2e70d4(0x20e)][_0x2e70d4(0x226)]=!![];}catch(_0x2b2d1d){logger[_0x2e70d4(0x244)]('['+TAG+_0x2e70d4(0x24d)+_0x2b2d1d['message']+(_0x2b2d1d[_0x2e70d4(0x250)]?_0x19773c['bZAiV'](_0x19773c[_0x2e70d4(0x1fc)],_0x2b2d1d[_0x2e70d4(0x250)]):''));}return this[_0x2e70d4(0x233)](),!![];}}else{let _0x3934dc;try{_0x3934dc=await this[_0x2e70d4(0x24f)][_0x2e70d4(0x1f9)]();if(!_0x3934dc)return logger[_0x2e70d4(0x264)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x91f6b7){return logger[_0x2e70d4(0x244)]('['+TAG+_0x2e70d4(0x205)+_0x91f6b7[_0x2e70d4(0x22f)]+(_0x91f6b7[_0x2e70d4(0x250)]?_0x19773c[_0x2e70d4(0x257)](_0x19773c[_0x2e70d4(0x1fc)],_0x91f6b7[_0x2e70d4(0x250)]):'')),![];}this[_0x2e70d4(0x20e)]={...this[_0x2e70d4(0x263)](),..._0x3934dc,'uniqueFailedTests':new Set(_0x3934dc[_0x2e70d4(0x212)]||[])};if(this[_0x2e70d4(0x20e)][_0x2e70d4(0x226)])return logger[_0x2e70d4(0x232)]('['+TAG+_0x2e70d4(0x20c)),!![];const _0x5cfb14=this['state']['uniqueFailedTests'],_0xef914c=_0x5cfb14[_0x2e70d4(0x243)];if(_0x19773c['kLmXB'](_0xef914c,_0xf8cbad)){try{logger['info']('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0xef914c+_0x2e70d4(0x221)+_0xf8cbad+'.'),this['state'][_0x2e70d4(0x226)]=!![];}catch(_0x4126fd){logger[_0x2e70d4(0x244)]('['+TAG+_0x2e70d4(0x220)+_0x4126fd[_0x2e70d4(0x22f)]+(_0x4126fd['stack']?_0x19773c[_0x2e70d4(0x257)](_0x19773c[_0x2e70d4(0x1fc)],_0x4126fd[_0x2e70d4(0x250)]):''));}return!![];}}return![];}async[a122_0x3334f0(0x23f)](){const _0x5714aa=a122_0x3334f0,_0x44373f={};_0x44373f[_0x5714aa(0x258)]=function(_0x840dc3,_0x3e8548){return _0x840dc3+_0x3e8548;},_0x44373f['gFRVE']='\x0aStack:\x20';const _0x18be64=_0x44373f;this[_0x5714aa(0x233)]();if(this['isCIMode'])logger['debug']('['+TAG+_0x5714aa(0x1fb));else try{const _0x5211cb={...this[_0x5714aa(0x20e)],'uniqueFailedTests':Array[_0x5714aa(0x216)](this['state'][_0x5714aa(0x212)]||new Set())};await this[_0x5714aa(0x24f)][_0x5714aa(0x255)](_0x5211cb),logger['debug']('['+TAG+_0x5714aa(0x237));}catch(_0x120e21){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x120e21['message']+(_0x120e21[_0x5714aa(0x250)]?_0x18be64['wXkwA'](_0x18be64[_0x5714aa(0x209)],_0x120e21[_0x5714aa(0x250)]):''));}}}function a122_0x34bf(){const _0x3277ab=['debug','stopPolling','VUvNB','_CI]\x20Error\x20sending\x20failed\x20test\x20','16197005fQbEfO','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','hyIkV','_CI]\x20Polling\x20started\x20with\x20interval:\x20','failureThresholdCount','failFastActiveMarkerPath','reportedFailuresToAPI','\x20to\x20API:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','cleanup','exports','glaWc','failFastConfig','size','error','mETzE','ySOpP','zESdB','\x0aStack:\x20','110IJRuJx','onTestDone','lzVwM','3UHMPUT','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','fileHelper','stack',']\x20Polling\x20stopped.','./fileHelper','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','ms.','writeState','CDfCN','bZAiV','wXkwA','startPolling','AqUHN','number','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','lastAPIFailedCount','putFailedTests','YjMKa',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','5CvASLM','_Local]\x20State\x20initialized\x20from\x20file.','_getDefaultState','warn','zqfAv','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','recordTestResult','winstonLogger','_sendFailedTestsToAPI',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','Zzzgh','_CI]\x20Error\x20during\x20polling\x20logic:\x20','path','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','JAjBm','isCIMode','jkZxs','rjUTT','workingDir','_pollFailedTests','stateFilePath','IHnMP','failFast.active','VhUIJ','1853318kNQtVr','lockFilePath','buildRunIdentifier','pollingInterval','readState','../logger','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','zeJfP','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','eBoHb','writeFileSync','159831BJHmVU','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','okUtb','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','_fetchAPIFailedCount','existsSync','6032552wGTSlx','gFRVE','toISOString','Slyxe','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','kLmXB','state','MxuUB','rZntt','IiMlO','uniqueFailedTests','newState','buildName','./requestUtils','from','546nQyUZI','ioFcs','luQMN','2305532VBWocL','pOiEe','totalTests','uLHJN','KPVHI','noKfp','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20',',\x20threshold:\x20','55573YcpuWD','\x20(was\x20','mIPaU','727512pInpCf','failFastActive','join','FailFastManager','env','projectName','_initializeStateFromFile','has','LILXq','failFastState.json','message','shouldFailFast','failedTests'];a122_0x34bf=function(){return _0x3277ab;};return a122_0x34bf();}module[a122_0x3334f0(0x240)]=FailFastManager;
1
+ const a122_0x4a2c2e=a122_0x4fda;function a122_0x4fda(_0x532548,_0x1a0232){const _0x69c5f1=a122_0x69c5();return a122_0x4fda=function(_0x4fda04,_0x3a29ff){_0x4fda04=_0x4fda04-0x17d;let _0x14deca=_0x69c5f1[_0x4fda04];return _0x14deca;},a122_0x4fda(_0x532548,_0x1a0232);}(function(_0x38eb06,_0x2174af){const _0x12a564=a122_0x4fda,_0x2c69b1=_0x38eb06();while(!![]){try{const _0x5db791=parseInt(_0x12a564(0x1f5))/0x1+-parseInt(_0x12a564(0x1f7))/0x2+-parseInt(_0x12a564(0x1a9))/0x3+parseInt(_0x12a564(0x1b3))/0x4*(parseInt(_0x12a564(0x1af))/0x5)+-parseInt(_0x12a564(0x1ab))/0x6*(parseInt(_0x12a564(0x1e7))/0x7)+parseInt(_0x12a564(0x1cf))/0x8*(parseInt(_0x12a564(0x1e4))/0x9)+parseInt(_0x12a564(0x183))/0xa;if(_0x5db791===_0x2174af)break;else _0x2c69b1['push'](_0x2c69b1['shift']());}catch(_0x10e15c){_0x2c69b1['push'](_0x2c69b1['shift']());}}}(a122_0x69c5,0xe726b));const fs=require('fs'),path=require(a122_0x4a2c2e(0x1bb)),FileHelper=require(a122_0x4a2c2e(0x1b0)),RequestUtils=require(a122_0x4a2c2e(0x1a4)),logger=require(a122_0x4a2c2e(0x1a0))[a122_0x4a2c2e(0x1f0)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x458e07,_0xf69535,_0x37cde2){const _0x2d3898=a122_0x4a2c2e,_0x2a42fc={};_0x2a42fc['dmMTn']=function(_0x520820,_0x309ba3){return _0x520820+_0x309ba3;},_0x2a42fc[_0x2d3898(0x184)]=_0x2d3898(0x1c5),_0x2a42fc[_0x2d3898(0x1f1)]=function(_0x1bd2ba,_0x167b1f){return _0x1bd2ba||_0x167b1f;},_0x2a42fc[_0x2d3898(0x1ae)]=_0x2d3898(0x193),_0x2a42fc[_0x2d3898(0x19e)]=_0x2d3898(0x18b),_0x2a42fc[_0x2d3898(0x1d0)]='failFast.active';const _0x3a0121=_0x2a42fc;this[_0x2d3898(0x19c)]=_0x3a0121[_0x2d3898(0x1f1)](_0x458e07,{}),this[_0x2d3898(0x1a6)]=_0xf69535,this[_0x2d3898(0x1bf)]=_0x37cde2,this[_0x2d3898(0x187)]=!!(process[_0x2d3898(0x1e1)][_0x2d3898(0x18f)]&&process[_0x2d3898(0x1e1)]['BROWSERSTACK_NODE_INDEX']&&process[_0x2d3898(0x1e1)][_0x2d3898(0x185)]);const _0x31fde5=this[_0x2d3898(0x19c)][_0x2d3898(0x180)];this['stateFilePath']=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x1ae)]),this[_0x2d3898(0x190)]=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x19e)]),this[_0x2d3898(0x1ef)]=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x1d0)]),this[_0x2d3898(0x1be)]=new FileHelper(this[_0x2d3898(0x19c)],this['stateFilePath'],this['lockFilePath'],this[_0x2d3898(0x1ce)]()),this[_0x2d3898(0x186)]=this[_0x2d3898(0x1ce)](),this[_0x2d3898(0x1b2)]=null,this[_0x2d3898(0x187)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x2d3898(0x1a1)]()[_0x2d3898(0x18e)](_0x313563=>{const _0x128175=_0x2d3898;logger[_0x128175(0x1fe)]('['+TAG+_0x128175(0x18a)+_0x313563[_0x128175(0x1f6)]+(_0x313563['stack']?_0x3a0121[_0x128175(0x1ed)](_0x3a0121[_0x128175(0x184)],_0x313563['stack']):'')),this['state']=this[_0x128175(0x1ce)]();}),this[_0x2d3898(0x187)]&&this['startPolling'](),logger['debug']('['+TAG+_0x2d3898(0x196)+this[_0x2d3898(0x19c)][_0x2d3898(0x1ad)]+_0x2d3898(0x182)+this[_0x2d3898(0x187)]);}[a122_0x4a2c2e(0x1ce)](){const _0x5e2b58={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5e2b58;}async[a122_0x4a2c2e(0x1a1)](){const _0x2246a6=a122_0x4a2c2e,_0x1af17e={};_0x1af17e[_0x2246a6(0x1e3)]=function(_0x2023a5,_0x37082d){return _0x2023a5+_0x37082d;},_0x1af17e['yUNqC']=_0x2246a6(0x1c5);const _0x3ed29c=_0x1af17e;if(this['isCIMode'])try{fs[_0x2246a6(0x199)](this[_0x2246a6(0x1ef)])&&(this['state'][_0x2246a6(0x1b6)]=!![],logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1c7)));}catch(_0x21b6cf){logger[_0x2246a6(0x1fe)]('['+TAG+_0x2246a6(0x1a2)+_0x21b6cf[_0x2246a6(0x1f6)]+(_0x21b6cf[_0x2246a6(0x1dc)]?_0x3ed29c[_0x2246a6(0x1e3)](_0x3ed29c[_0x2246a6(0x1f2)],_0x21b6cf[_0x2246a6(0x1dc)]):''));}else try{const _0x1533b0=await this[_0x2246a6(0x1be)]['readState']();if(_0x1533b0)this[_0x2246a6(0x186)]={...this['_getDefaultState'](),..._0x1533b0,'uniqueFailedTests':new Set(_0x1533b0[_0x2246a6(0x1f3)]||[])},logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1a5));else{logger[_0x2246a6(0x1a8)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x20906e=this[_0x2246a6(0x1ce)](),_0x23a3ea={..._0x20906e,'uniqueFailedTests':Array[_0x2246a6(0x1e2)](_0x20906e[_0x2246a6(0x1f3)])};await this[_0x2246a6(0x1be)]['writeState'](_0x23a3ea),this[_0x2246a6(0x186)]=_0x20906e;}}catch(_0x5cd612){logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1e5)+_0x5cd612[_0x2246a6(0x1f6)]+(_0x5cd612[_0x2246a6(0x1dc)]?_0x3ed29c['IFFLK'](_0x3ed29c[_0x2246a6(0x1f2)],_0x5cd612[_0x2246a6(0x1dc)]):'')),this['state']=this[_0x2246a6(0x1ce)]();}}async[a122_0x4a2c2e(0x1e0)](_0x20c606,_0x23cf1a){const _0x295ffc=a122_0x4a2c2e,_0x3834c6={};_0x3834c6[_0x295ffc(0x1dd)]=function(_0x30f33b,_0x16a061){return _0x30f33b>_0x16a061;},_0x3834c6['Gxwas']=_0x295ffc(0x1c4),_0x3834c6[_0x295ffc(0x1c0)]=_0x295ffc(0x18d),_0x3834c6[_0x295ffc(0x188)]=function(_0x180247,_0x47fbc5){return _0x180247+_0x47fbc5;},_0x3834c6[_0x295ffc(0x1de)]=_0x295ffc(0x1c5),_0x3834c6[_0x295ffc(0x1cd)]=function(_0x3b51ac,_0x904b42){return _0x3b51ac||_0x904b42;},_0x3834c6[_0x295ffc(0x1a7)]=function(_0x5a5f7d,_0x455f02){return _0x5a5f7d+_0x455f02;};const _0x8c1cf=_0x3834c6;if(this['isCIMode'])this[_0x295ffc(0x186)][_0x295ffc(0x19d)]+=0x1,_0x23cf1a&&_0x8c1cf[_0x295ffc(0x1dd)](_0x23cf1a[_0x295ffc(0x1c6)],0x0)&&(!this[_0x295ffc(0x18c)]['has'](_0x20c606)&&(await this['_sendFailedTestsToAPI'](_0x20c606),this[_0x295ffc(0x18c)][_0x295ffc(0x1ff)](_0x20c606)));else try{const _0x5d8989={'fullName':_0x20c606,'status':_0x23cf1a&&_0x8c1cf['Mrplv'](_0x23cf1a[_0x295ffc(0x1c6)],0x0)?_0x8c1cf['Gxwas']:_0x8c1cf[_0x295ffc(0x1c0)]},_0x43d549=await this['fileHelper'][_0x295ffc(0x1fd)](_0x5d8989);this['state']={...this[_0x295ffc(0x1ce)](),..._0x43d549[_0x295ffc(0x1d2)],'uniqueFailedTests':new Set(_0x43d549[_0x295ffc(0x1d2)][_0x295ffc(0x1f3)]||[])};}catch(_0x1ea7f1){logger[_0x295ffc(0x1fe)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x1ea7f1[_0x295ffc(0x1f6)]+(_0x1ea7f1[_0x295ffc(0x1dc)]?_0x8c1cf[_0x295ffc(0x188)](_0x8c1cf['mCkGC'],_0x1ea7f1[_0x295ffc(0x1dc)]):''));try{const _0x574372=await this[_0x295ffc(0x1be)][_0x295ffc(0x1e9)]();this[_0x295ffc(0x186)]={...this[_0x295ffc(0x1ce)](),..._0x8c1cf[_0x295ffc(0x1cd)](_0x574372,{}),'uniqueFailedTests':new Set(_0x574372?_0x574372[_0x295ffc(0x1f3)]||[]:[])},logger[_0x295ffc(0x1a8)]('['+TAG+_0x295ffc(0x1ba));}catch(_0x79240d){logger[_0x295ffc(0x1fe)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x79240d[_0x295ffc(0x1f6)]+(_0x79240d['stack']?_0x8c1cf[_0x295ffc(0x1a7)](_0x8c1cf[_0x295ffc(0x1de)],_0x79240d[_0x295ffc(0x1dc)]):'')),this[_0x295ffc(0x186)]=this[_0x295ffc(0x1ce)]();}}}async[a122_0x4a2c2e(0x1b5)](_0x214592){const _0x44ba7b=a122_0x4a2c2e,_0x11f750={};_0x11f750[_0x44ba7b(0x1bc)]=function(_0x4276f1,_0x1935fe){return _0x4276f1+_0x1935fe;},_0x11f750[_0x44ba7b(0x19f)]=_0x44ba7b(0x1c5);const _0xcca45b=_0x11f750;if(!this[_0x44ba7b(0x187)]||!_0x214592)return;try{logger[_0x44ba7b(0x1a8)]('['+TAG+_0x44ba7b(0x1ac)+_0x214592);const _0x578146={};_0x578146[_0x44ba7b(0x1a6)]=this[_0x44ba7b(0x1a6)],_0x578146[_0x44ba7b(0x1bf)]=this[_0x44ba7b(0x1bf)],_0x578146[_0x44ba7b(0x1b8)]=[_0x214592],_0x578146[_0x44ba7b(0x1fa)]=process[_0x44ba7b(0x1e1)][_0x44ba7b(0x18f)],await RequestUtils[_0x44ba7b(0x1df)](_0x578146);}catch(_0x3d1fa0){logger[_0x44ba7b(0x1fe)]('['+TAG+_0x44ba7b(0x1e6)+_0x214592+_0x44ba7b(0x1b7)+_0x3d1fa0[_0x44ba7b(0x1f6)]+(_0x3d1fa0[_0x44ba7b(0x1dc)]?_0xcca45b[_0x44ba7b(0x1bc)](_0xcca45b[_0x44ba7b(0x19f)],_0x3d1fa0['stack']):''));}}async['_fetchAPIFailedCount'](){const _0x14f40c=a122_0x4a2c2e,_0x5661eb={};_0x5661eb['kjaIS']=function(_0x2557f8,_0x403b52){return _0x2557f8===_0x403b52;},_0x5661eb['LoVvq']='number',_0x5661eb[_0x14f40c(0x1d7)]=function(_0x28e874,_0x433a8b){return _0x28e874+_0x433a8b;},_0x5661eb['CQaOl']=_0x14f40c(0x1c5),_0x5661eb[_0x14f40c(0x194)]=function(_0xe35669,_0x246337){return _0xe35669!==_0x246337;};const _0x22d4d0=_0x5661eb;if(!this[_0x14f40c(0x187)])return 0x0;try{const _0x38d9d7={};_0x38d9d7[_0x14f40c(0x1a6)]=this[_0x14f40c(0x1a6)],_0x38d9d7[_0x14f40c(0x1bf)]=this[_0x14f40c(0x1bf)],_0x38d9d7[_0x14f40c(0x1fa)]=process[_0x14f40c(0x1e1)][_0x14f40c(0x18f)];const _0x1d74bf=await RequestUtils[_0x14f40c(0x17d)](_0x38d9d7);return logger[_0x14f40c(0x1a8)]('['+TAG+_0x14f40c(0x1b9)+_0x1d74bf),_0x22d4d0[_0x14f40c(0x1eb)](typeof _0x1d74bf,_0x22d4d0[_0x14f40c(0x1d8)])?_0x1d74bf:0x0;}catch(_0x1278ca){return logger[_0x14f40c(0x1fe)]('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x1278ca[_0x14f40c(0x1f6)]+(_0x1278ca[_0x14f40c(0x1dc)]?_0x22d4d0['OyQkM'](_0x22d4d0[_0x14f40c(0x1d4)],_0x1278ca[_0x14f40c(0x1dc)]):'')),_0x22d4d0[_0x14f40c(0x194)](this[_0x14f40c(0x186)][_0x14f40c(0x198)],undefined)?this[_0x14f40c(0x186)][_0x14f40c(0x198)]:0x0;}}async[a122_0x4a2c2e(0x1fc)](){const _0x46f212=a122_0x4a2c2e,_0x142ae8={};_0x142ae8['zEZAZ']=function(_0xb42c80,_0x3caede){return _0xb42c80!==_0x3caede;},_0x142ae8[_0x46f212(0x1c1)]=function(_0x35b680,_0x2af97a){return _0x35b680+_0x2af97a;},_0x142ae8[_0x46f212(0x1c8)]=_0x46f212(0x1c5);const _0x3f1b01=_0x142ae8;if(!this['isCIMode'])return;try{const _0x482618=await this['_fetchAPIFailedCount']();_0x3f1b01[_0x46f212(0x1d6)](_0x482618,this[_0x46f212(0x186)][_0x46f212(0x198)])&&(logger['debug']('['+TAG+_0x46f212(0x1d3)+_0x482618+_0x46f212(0x192)+this[_0x46f212(0x186)][_0x46f212(0x198)]+')'),this[_0x46f212(0x186)]['lastAPIFailedCount']=_0x482618);}catch(_0x317cde){logger[_0x46f212(0x1fe)]('['+TAG+_0x46f212(0x1b1)+_0x317cde[_0x46f212(0x1f6)]+(_0x317cde[_0x46f212(0x1dc)]?_0x3f1b01[_0x46f212(0x1c1)](_0x3f1b01['hSAgA'],_0x317cde['stack']):''));}}async['startPolling'](){const _0x38cd93=a122_0x4a2c2e,_0x13def5={'VkSiq':function(_0x4bb335,_0x50faa8,_0x4834bb){return _0x4bb335(_0x50faa8,_0x4834bb);}};this['pollingInterval']&&this['stopPolling'](),this['isCIMode']&&(await this[_0x38cd93(0x1fc)](),this['pollingInterval']=_0x13def5['VkSiq'](setInterval,async()=>{const _0x3c9b56=_0x38cd93;await this[_0x3c9b56(0x1fc)]();},POLLING_INTERVAL),logger[_0x38cd93(0x1a8)]('['+TAG+_0x38cd93(0x1ea)+POLLING_INTERVAL+_0x38cd93(0x19a)));}[a122_0x4a2c2e(0x1f9)](){const _0x16e20b=a122_0x4a2c2e,_0x12b60e={'wHTXU':function(_0x4f9079,_0x2e5270){return _0x4f9079(_0x2e5270);}};this['pollingInterval']&&(_0x12b60e[_0x16e20b(0x1d5)](clearInterval,this[_0x16e20b(0x1b2)]),this[_0x16e20b(0x1b2)]=null,logger[_0x16e20b(0x1a8)]('['+TAG+_0x16e20b(0x17e)));}async[a122_0x4a2c2e(0x1aa)](){const _0x20115b=a122_0x4a2c2e,_0x8a3bb5={};_0x8a3bb5[_0x20115b(0x1f8)]=function(_0xff799a,_0x45a6a7){return _0xff799a===_0x45a6a7;},_0x8a3bb5[_0x20115b(0x200)]=function(_0x12a789,_0x3c2dc8){return _0x12a789===_0x3c2dc8;},_0x8a3bb5[_0x20115b(0x1c3)]=function(_0x49b660,_0xf7c94f){return _0x49b660<=_0xf7c94f;},_0x8a3bb5['uzDeP']=function(_0x1f3293,_0x30eb01){return _0x1f3293+_0x30eb01;},_0x8a3bb5[_0x20115b(0x1cc)]=_0x20115b(0x1c5),_0x8a3bb5[_0x20115b(0x1ca)]=function(_0x12aa42,_0x3d785a){return _0x12aa42!==_0x3d785a;},_0x8a3bb5[_0x20115b(0x1d9)]=function(_0x276940,_0xde4046){return _0x276940>=_0xde4046;},_0x8a3bb5['QVvkR']=function(_0x5df034,_0x565854){return _0x5df034+_0x565854;};const _0x1427d7=_0x8a3bb5,{failureThresholdCount:_0x322d2a}=this[_0x20115b(0x19c)];if(_0x1427d7[_0x20115b(0x1f8)](_0x322d2a,null)||_0x1427d7['eIdcw'](_0x322d2a,undefined)||_0x1427d7[_0x20115b(0x1c3)](_0x322d2a,0x0))return logger['debug']('['+TAG+_0x20115b(0x1c2)),![];if(this[_0x20115b(0x187)]){try{if(fs[_0x20115b(0x199)](this['failFastActiveMarkerPath']))return logger['debug']('['+TAG+_0x20115b(0x189)),!this['state'][_0x20115b(0x1b6)]&&(this['state'][_0x20115b(0x1b6)]=!![]),this[_0x20115b(0x1f9)](),!![];}catch(_0x474d39){logger[_0x20115b(0x1fe)]('['+TAG+_0x20115b(0x1a2)+_0x474d39[_0x20115b(0x1f6)]+(_0x474d39[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0x474d39[_0x20115b(0x1dc)]):''));}const _0x446d9f=_0x1427d7[_0x20115b(0x1ca)](this[_0x20115b(0x186)][_0x20115b(0x198)],undefined)?this[_0x20115b(0x186)][_0x20115b(0x198)]:0x0;if(_0x1427d7[_0x20115b(0x1d9)](_0x446d9f,_0x322d2a)){logger['info']('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x446d9f+_0x20115b(0x195)+_0x322d2a+'.');try{fs[_0x20115b(0x1a3)](this['failFastActiveMarkerPath'],new Date()[_0x20115b(0x1d1)]()),logger[_0x20115b(0x1a8)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x20115b(0x1ef)]),this[_0x20115b(0x186)][_0x20115b(0x1b6)]=!![];}catch(_0xf6e2c7){logger['error']('['+TAG+_0x20115b(0x1ee)+_0xf6e2c7[_0x20115b(0x1f6)]+(_0xf6e2c7[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0xf6e2c7[_0x20115b(0x1dc)]):''));}return this[_0x20115b(0x1f9)](),!![];}}else{let _0x139ed4;try{_0x139ed4=await this[_0x20115b(0x1be)][_0x20115b(0x1e9)]();if(!_0x139ed4)return logger[_0x20115b(0x1cb)]('['+TAG+_0x20115b(0x181)),![];}catch(_0x4f4c34){return logger[_0x20115b(0x1fe)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x4f4c34[_0x20115b(0x1f6)]+(_0x4f4c34[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0x4f4c34[_0x20115b(0x1dc)]):'')),![];}this[_0x20115b(0x186)]={...this[_0x20115b(0x1ce)](),..._0x139ed4,'uniqueFailedTests':new Set(_0x139ed4[_0x20115b(0x1f3)]||[])};if(this[_0x20115b(0x186)][_0x20115b(0x1b6)])return logger[_0x20115b(0x1a8)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x1b59f7=this[_0x20115b(0x186)]['uniqueFailedTests'],_0x1c6e00=_0x1b59f7[_0x20115b(0x1db)];if(_0x1427d7['srVgD'](_0x1c6e00,_0x322d2a)){try{logger[_0x20115b(0x1fb)]('['+TAG+_0x20115b(0x1ec)+_0x1c6e00+_0x20115b(0x195)+_0x322d2a+'.'),this[_0x20115b(0x186)][_0x20115b(0x1b6)]=!![];}catch(_0x5a9ccb){logger[_0x20115b(0x1fe)]('['+TAG+_0x20115b(0x1b4)+_0x5a9ccb[_0x20115b(0x1f6)]+(_0x5a9ccb['stack']?_0x1427d7[_0x20115b(0x19b)](_0x1427d7['PWACa'],_0x5a9ccb[_0x20115b(0x1dc)]):''));}return!![];}}return![];}async[a122_0x4a2c2e(0x191)](){const _0x5adc61=a122_0x4a2c2e,_0x21b1e2={};_0x21b1e2[_0x5adc61(0x1c9)]=function(_0xd6ec97,_0x254827){return _0xd6ec97+_0x254827;},_0x21b1e2['hZNVM']='\x0aStack:\x20';const _0xb65b15=_0x21b1e2;this[_0x5adc61(0x1f9)]();if(this['isCIMode'])logger[_0x5adc61(0x1a8)]('['+TAG+_0x5adc61(0x17f));else try{const _0x6816e5={...this[_0x5adc61(0x186)],'uniqueFailedTests':Array[_0x5adc61(0x1e2)](this[_0x5adc61(0x186)][_0x5adc61(0x1f3)]||new Set())};await this['fileHelper']['writeState'](_0x6816e5),logger[_0x5adc61(0x1a8)]('['+TAG+_0x5adc61(0x1e8));}catch(_0x5bf86e){logger[_0x5adc61(0x1fe)]('['+TAG+_0x5adc61(0x1da)+_0x5bf86e[_0x5adc61(0x1f6)]+(_0x5bf86e[_0x5adc61(0x1dc)]?_0xb65b15[_0x5adc61(0x1c9)](_0xb65b15['hZNVM'],_0x5bf86e[_0x5adc61(0x1dc)]):''));}}}function a122_0x69c5(){const _0x519796=['projectName','gkCJk','MImJr',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','XPxLw','failed','\x0aStack:\x20','length','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','hSAgA','lezdU','iVNbq','warn','PWACa','hFXml','_getDefaultState','6874872YPJvgg','XdcoT','toISOString','newState','_CI]\x20API\x20failed\x20count\x20updated:\x20','CQaOl','wHTXU','zEZAZ','OyQkM','LoVvq','srVgD','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','size','stack','Mrplv','mCkGC','putFailedTests','onTestDone','env','from','IFFLK','9ManOSo','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','29407hlqFql','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','readState','_CI]\x20Polling\x20started\x20with\x20interval:\x20','kjaIS','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','dmMTn','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failFastActiveMarkerPath','winstonLogger','ckTJF','yUNqC','uniqueFailedTests','exports','1214762uHsctr','message','1009238qeKsQB','aeZod','stopPolling','buildRunIdentifier','info','_pollFailedTests','recordTestResult','error','add','eIdcw','getFailedTestsCount',']\x20Polling\x20stopped.','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','workingDir','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.',',\x20CI\x20Mode:\x20','13162210sZUoWh','sOVUu','BROWSERSTACK_TOTAL_NODE_COUNT','state','isCIMode','oQPya','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failFastState.lock','reportedFailuresToAPI','passed','catch','BROWSERSTACK_BUILD_RUN_IDENTIFIER','lockFilePath','cleanup','\x20(was\x20','failFastState.json','LbXDX',',\x20threshold:\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','join','lastAPIFailedCount','existsSync','ms.','QVvkR','failFastConfig','totalTests','lPmzt','PmhsB','../logger','_initializeStateFromFile','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','writeFileSync','./requestUtils','_Local]\x20State\x20initialized\x20from\x20file.','buildName','tlKQA','debug','2638212yHRipk','shouldFailFast','2082lcTRFx','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','failureThresholdCount','vhglD','6615DSbKhd','./fileHelper','_CI]\x20Error\x20during\x20polling\x20logic:\x20','pollingInterval','1204BuJzki','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_sendFailedTestsToAPI','failFastActive','\x20to\x20API:\x20','failedTests','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','path','CXfSd','uzDeP','fileHelper'];a122_0x69c5=function(){return _0x519796;};return a122_0x69c5();}module[a122_0x4a2c2e(0x1f4)]=FailFastManager;
@@ -1 +1 @@
1
- function a123_0x5e60(_0x48e1cd,_0x482a7a){const _0x364345=a123_0x3643();return a123_0x5e60=function(_0x5e608f,_0x4d2296){_0x5e608f=_0x5e608f-0x1cb;let _0x45fae9=_0x364345[_0x5e608f];return _0x45fae9;},a123_0x5e60(_0x48e1cd,_0x482a7a);}const a123_0x56e1f6=a123_0x5e60;(function(_0x2e7808,_0x4a6f26){const _0x3e892f=a123_0x5e60,_0x3302d1=_0x2e7808();while(!![]){try{const _0x41bac0=-parseInt(_0x3e892f(0x1e8))/0x1+parseInt(_0x3e892f(0x1e9))/0x2+-parseInt(_0x3e892f(0x1f3))/0x3+-parseInt(_0x3e892f(0x1da))/0x4*(parseInt(_0x3e892f(0x1f8))/0x5)+-parseInt(_0x3e892f(0x1d9))/0x6+-parseInt(_0x3e892f(0x1f4))/0x7*(-parseInt(_0x3e892f(0x1fc))/0x8)+parseInt(_0x3e892f(0x203))/0x9*(parseInt(_0x3e892f(0x1d7))/0xa);if(_0x41bac0===_0x4a6f26)break;else _0x3302d1['push'](_0x3302d1['shift']());}catch(_0x1b8c1e){_0x3302d1['push'](_0x3302d1['shift']());}}}(a123_0x3643,0xe3021));function a123_0x3643(){const _0x5da035=['7044102tdnHMj','28DOGYSL',']\x20Error\x20writing\x20state\x20file:\x20','readState','failFastConfig','newState','lockFilePath','closeSync','zogfz','add','UuyVV',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.',']\x20Error\x20creating\x20state\x20file:\x20','uniqueFailedTests',']\x20Error\x20reading\x20state\x20file:\x20','1301924RPbfRt','2557350sBXxaA','fullName','Cadke','writeFileSync','status','winstonLogger','failedTests','failed','iterator','recordTestResult','4241538uPjdHL','16352YOZBpK','updateAPIFailedCount','aAgkt','stringify','531955elTgyd','has','FailFastFileHelper','utf8','3544GyxJND','exports','unlinkSync','split','../logger','acquireLock','warn','14628717uUTlAn','isArray','releaseLock','MjSeh','parse','openSync','from','function',']\x20Error\x20releasing\x20lock:\x20','writeState','defaultState','message','zkgsK','ShQHi','Sghqk','stack','error',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','20EfXBKL','stateFilePath'];a123_0x3643=function(){return _0x5da035;};return a123_0x3643();}const fs=require('fs'),logger=require(a123_0x56e1f6(0x200))[a123_0x56e1f6(0x1ee)],TAG=a123_0x56e1f6(0x1fa);class FileHelper{constructor(_0x313ee0,_0x487ed1,_0x4b4b4d,_0xfe3f10){const _0x4cff14=a123_0x56e1f6,_0x4ad0e6={};_0x4ad0e6[_0x4cff14(0x1d3)]='3|1|2|4|0',_0x4ad0e6[_0x4cff14(0x1e1)]=_0x4cff14(0x1fb);const _0x5ea510=_0x4ad0e6,_0x4ee2f0=_0x5ea510['Sghqk'][_0x4cff14(0x1ff)]('|');let _0x3c31bd=0x0;while(!![]){switch(_0x4ee2f0[_0x3c31bd++]){case'0':if(!fs['existsSync'](this[_0x4cff14(0x1d8)]))try{fs[_0x4cff14(0x1ec)](this[_0x4cff14(0x1d8)],'{}',_0x5ea510[_0x4cff14(0x1e1)]);}catch(_0xc1ac84){logger[_0x4cff14(0x1d5)]('['+TAG+_0x4cff14(0x1e5)+_0xc1ac84[_0x4cff14(0x1d0)]+'\x20'+_0xc1ac84['stack']);}continue;case'1':this['stateFilePath']=_0x487ed1;continue;case'2':this[_0x4cff14(0x1df)]=_0x4b4b4d;continue;case'3':this[_0x4cff14(0x1dd)]=_0x313ee0;continue;case'4':this[_0x4cff14(0x1cf)]=_0xfe3f10;continue;}break;}}async['acquireLock'](){const _0x3ee12f=a123_0x56e1f6,_0x4d8ee4={};_0x4d8ee4['Cadke']=function(_0x55a13e,_0x3095b5){return _0x55a13e===_0x3095b5;},_0x4d8ee4[_0x3ee12f(0x1e3)]='EEXIST';const _0x5214b8=_0x4d8ee4;let _0x297be9;try{return _0x297be9=fs[_0x3ee12f(0x208)](this[_0x3ee12f(0x1df)],'wx'),_0x297be9;}catch(_0x3d7f9b){if(_0x5214b8[_0x3ee12f(0x1eb)](_0x3d7f9b['code'],_0x5214b8[_0x3ee12f(0x1e3)]))return null;throw _0x3d7f9b;}}async[a123_0x56e1f6(0x205)](_0x1c1511){const _0x40a00f=a123_0x56e1f6;if(_0x1c1511)try{fs[_0x40a00f(0x1e0)](_0x1c1511),fs[_0x40a00f(0x1fe)](this[_0x40a00f(0x1df)]);}catch(_0x4334a4){logger[_0x40a00f(0x1d5)]('['+TAG+_0x40a00f(0x1cd)+_0x4334a4['message']+'\x20'+_0x4334a4[_0x40a00f(0x1d4)]);}}[a123_0x56e1f6(0x1dc)](){const _0x38a075=a123_0x56e1f6,_0x593faa={};_0x593faa[_0x38a075(0x206)]=_0x38a075(0x1fb);const _0x4ac3e7=_0x593faa;try{const _0x2fc39c=fs['readFileSync'](this[_0x38a075(0x1d8)],_0x4ac3e7[_0x38a075(0x206)]);return JSON[_0x38a075(0x207)](_0x2fc39c);}catch(_0x30085c){return logger[_0x38a075(0x1d5)]('['+TAG+_0x38a075(0x1e7)+_0x30085c[_0x38a075(0x1d0)]+'\x20'+_0x30085c['stack']),null;}}async[a123_0x56e1f6(0x1ce)](_0x1a9329){const _0x1cd6d5=a123_0x56e1f6,_0x44eed9={..._0x1a9329,'uniqueFailedTests':Array[_0x1cd6d5(0x204)](_0x1a9329[_0x1cd6d5(0x1e6)])?_0x1a9329[_0x1cd6d5(0x1e6)]:Array[_0x1cd6d5(0x1cb)](_0x1a9329[_0x1cd6d5(0x1e6)]||[])};try{fs[_0x1cd6d5(0x1ec)](this[_0x1cd6d5(0x1d8)],JSON[_0x1cd6d5(0x1f7)](_0x44eed9,null,0x2));}catch(_0x1e96d8){logger[_0x1cd6d5(0x1d5)]('['+TAG+_0x1cd6d5(0x1db)+_0x1e96d8[_0x1cd6d5(0x1d0)]+'\x20'+_0x1e96d8['stack']);throw _0x1e96d8;}}async[a123_0x56e1f6(0x1f2)](_0x5ca620,_0x3059e6){const _0xcff34d=a123_0x56e1f6,_0x416bf4={};_0x416bf4['zkgsK']=function(_0x3eb9ad,_0x51680a){return _0x3eb9ad!==_0x51680a;},_0x416bf4[_0xcff34d(0x1d2)]=_0xcff34d(0x1cc),_0x416bf4['hATwU']=function(_0xe55c56,_0x546d78){return _0xe55c56===_0x546d78;},_0x416bf4[_0xcff34d(0x1f6)]=_0xcff34d(0x1f0);const _0x18aac6=_0x416bf4,_0x12fe54=await this[_0xcff34d(0x201)]();if(!_0x12fe54)return logger['warn']('['+TAG+_0xcff34d(0x1d6)),{'newState':this[_0xcff34d(0x1dc)]()||this[_0xcff34d(0x1cf)],'isNewFailure':![]};try{let _0x1997f2=this[_0xcff34d(0x1dc)]();!_0x1997f2&&(_0x1997f2=JSON[_0xcff34d(0x207)](JSON[_0xcff34d(0x1f7)](this['defaultState'])));if(!_0x1997f2['uniqueFailedTests']||_0x18aac6[_0xcff34d(0x1d1)](typeof _0x1997f2[_0xcff34d(0x1e6)][Symbol[_0xcff34d(0x1f1)]],_0x18aac6[_0xcff34d(0x1d2)]))_0x1997f2[_0xcff34d(0x1e6)]=new Set();else Array[_0xcff34d(0x204)](_0x1997f2[_0xcff34d(0x1e6)])&&(_0x1997f2[_0xcff34d(0x1e6)]=new Set(_0x1997f2['uniqueFailedTests']));_0x1997f2['totalTests']=_0x3059e6;let _0x203c23=![];_0x18aac6['hATwU'](_0x5ca620[_0xcff34d(0x1ed)],_0x18aac6[_0xcff34d(0x1f6)])&&(_0x1997f2[_0xcff34d(0x1ef)]+=0x1,!_0x1997f2[_0xcff34d(0x1e6)][_0xcff34d(0x1f9)](_0x5ca620[_0xcff34d(0x1ea)])&&(_0x1997f2[_0xcff34d(0x1e6)][_0xcff34d(0x1e2)](_0x5ca620[_0xcff34d(0x1ea)]),_0x203c23=!![]));await this[_0xcff34d(0x1ce)](_0x1997f2);const _0x3116be={};return _0x3116be[_0xcff34d(0x1de)]=_0x1997f2,_0x3116be['isNewFailure']=_0x203c23,_0x3116be;}finally{await this[_0xcff34d(0x205)](_0x12fe54);}}async[a123_0x56e1f6(0x1f5)](_0x1daead){const _0x59b4d9=a123_0x56e1f6,_0x4e8f71=await this[_0x59b4d9(0x201)]();if(!_0x4e8f71)return logger[_0x59b4d9(0x202)]('['+TAG+_0x59b4d9(0x1e4)),this['readState']()||this[_0x59b4d9(0x1cf)];try{let _0xd0d282=this[_0x59b4d9(0x1dc)]();return!_0xd0d282&&(_0xd0d282=JSON['parse'](JSON[_0x59b4d9(0x1f7)](this[_0x59b4d9(0x1cf)]))),_0xd0d282['lastAPIFailedCount']=_0x1daead,await this['writeState'](_0xd0d282),_0xd0d282;}finally{await this[_0x59b4d9(0x205)](_0x4e8f71);}}}module[a123_0x56e1f6(0x1fd)]=FileHelper;
1
+ const a123_0x25e90c=a123_0x4d56;(function(_0x3f29cf,_0x571c02){const _0x35cbaa=a123_0x4d56,_0x545d49=_0x3f29cf();while(!![]){try{const _0x5aff40=parseInt(_0x35cbaa(0xf0))/0x1*(-parseInt(_0x35cbaa(0xf2))/0x2)+parseInt(_0x35cbaa(0xeb))/0x3*(parseInt(_0x35cbaa(0x11c))/0x4)+parseInt(_0x35cbaa(0x128))/0x5+-parseInt(_0x35cbaa(0x119))/0x6+-parseInt(_0x35cbaa(0x109))/0x7+-parseInt(_0x35cbaa(0x110))/0x8*(-parseInt(_0x35cbaa(0xfd))/0x9)+-parseInt(_0x35cbaa(0xf5))/0xa*(-parseInt(_0x35cbaa(0x117))/0xb);if(_0x5aff40===_0x571c02)break;else _0x545d49['push'](_0x545d49['shift']());}catch(_0x282aff){_0x545d49['push'](_0x545d49['shift']());}}}(a123_0x5b75,0x5db20));function a123_0x4d56(_0x452803,_0x28a687){const _0x5b754d=a123_0x5b75();return a123_0x4d56=function(_0x4d5667,_0x28d6a5){_0x4d5667=_0x4d5667-0xe8;let _0x2f0eab=_0x5b754d[_0x4d5667];return _0x2f0eab;},a123_0x4d56(_0x452803,_0x28a687);}const fs=require('fs'),logger=require(a123_0x25e90c(0xe9))[a123_0x25e90c(0xf9)],TAG=a123_0x25e90c(0xf6);function a123_0x5b75(){const _0x171fda=['status',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','parse','defaultState','2913296RYIuhV','message','UVCIW','dIPid','function','lockFilePath','updateAPIFailedCount','11nVFpBx','failed','898794tumPpu','writeState',']\x20Error\x20writing\x20state\x20file:\x20','16700tjWYpW','add','existsSync','warn',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','YsVei','stringify','readState','stateFilePath','EEXIST','newState','lastAPIFailedCount','279395Telkam','openSync','totalTests','../logger','utf8','33BPESpi',']\x20Error\x20releasing\x20lock:\x20','isNewFailure',']\x20Error\x20reading\x20state\x20file:\x20','unlinkSync','4FSAJwJ','iterator','303436FxMXHb','isArray','releaseLock','10612090XgKegQ','FailFastFileHelper','puYdz','recordTestResult','winstonLogger','uniqueFailedTests','2|3|4|0|1','fullName','18NTicEc','readFileSync','code','error','zkgcR','MswzP','vTfKC','PpANi','LWjEY','acquireLock','writeFileSync','stack','5256230CrfIju','closeSync','failedTests'];a123_0x5b75=function(){return _0x171fda;};return a123_0x5b75();}class FileHelper{constructor(_0x29b7b2,_0xcb004f,_0x5c2e65,_0x34c745){const _0x591b01=a123_0x25e90c,_0x42cbac={};_0x42cbac[_0x591b01(0x121)]=_0x591b01(0xfb),_0x42cbac[_0x591b01(0x102)]=_0x591b01(0xea);const _0x3aef0f=_0x42cbac,_0x240bf9=_0x3aef0f[_0x591b01(0x121)]['split']('|');let _0x257dea=0x0;while(!![]){switch(_0x240bf9[_0x257dea++]){case'0':this[_0x591b01(0x10f)]=_0x34c745;continue;case'1':if(!fs[_0x591b01(0x11e)](this['stateFilePath']))try{fs['writeFileSync'](this[_0x591b01(0x124)],'{}',_0x3aef0f[_0x591b01(0x102)]);}catch(_0x377f95){logger[_0x591b01(0x100)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x377f95[_0x591b01(0x111)]+'\x20'+_0x377f95[_0x591b01(0x108)]);}continue;case'2':this['failFastConfig']=_0x29b7b2;continue;case'3':this[_0x591b01(0x124)]=_0xcb004f;continue;case'4':this['lockFilePath']=_0x5c2e65;continue;}break;}}async[a123_0x25e90c(0x106)](){const _0x45afdf=a123_0x25e90c,_0x231c58={};_0x231c58[_0x45afdf(0x112)]=function(_0x51f824,_0x5c510f){return _0x51f824===_0x5c510f;},_0x231c58[_0x45afdf(0x113)]=_0x45afdf(0x125);const _0x202bad=_0x231c58;let _0x5b0185;try{return _0x5b0185=fs[_0x45afdf(0x129)](this[_0x45afdf(0x115)],'wx'),_0x5b0185;}catch(_0xcd2a9d){if(_0x202bad[_0x45afdf(0x112)](_0xcd2a9d[_0x45afdf(0xff)],_0x202bad[_0x45afdf(0x113)]))return null;throw _0xcd2a9d;}}async[a123_0x25e90c(0xf4)](_0x28cdc6){const _0x4bf9dd=a123_0x25e90c;if(_0x28cdc6)try{fs[_0x4bf9dd(0x10a)](_0x28cdc6),fs[_0x4bf9dd(0xef)](this[_0x4bf9dd(0x115)]);}catch(_0x4eb6d0){logger[_0x4bf9dd(0x100)]('['+TAG+_0x4bf9dd(0xec)+_0x4eb6d0[_0x4bf9dd(0x111)]+'\x20'+_0x4eb6d0[_0x4bf9dd(0x108)]);}}[a123_0x25e90c(0x123)](){const _0x13174a=a123_0x25e90c,_0x5b84c4={};_0x5b84c4[_0x13174a(0x103)]='utf8';const _0x38ae7a=_0x5b84c4;try{const _0x13fc47=fs[_0x13174a(0xfe)](this['stateFilePath'],_0x38ae7a[_0x13174a(0x103)]);return JSON[_0x13174a(0x10e)](_0x13fc47);}catch(_0x4eb4bb){return logger[_0x13174a(0x100)]('['+TAG+_0x13174a(0xee)+_0x4eb4bb[_0x13174a(0x111)]+'\x20'+_0x4eb4bb[_0x13174a(0x108)]),null;}}async['writeState'](_0x3805d9){const _0x50fd51=a123_0x25e90c,_0x1b8f37={..._0x3805d9,'uniqueFailedTests':Array[_0x50fd51(0xf3)](_0x3805d9['uniqueFailedTests'])?_0x3805d9[_0x50fd51(0xfa)]:Array['from'](_0x3805d9['uniqueFailedTests']||[])};try{fs[_0x50fd51(0x107)](this[_0x50fd51(0x124)],JSON[_0x50fd51(0x122)](_0x1b8f37,null,0x2));}catch(_0x2ede0b){logger['error']('['+TAG+_0x50fd51(0x11b)+_0x2ede0b[_0x50fd51(0x111)]+'\x20'+_0x2ede0b['stack']);throw _0x2ede0b;}}async[a123_0x25e90c(0xf8)](_0x247e30,_0x564c83){const _0x5eba85=a123_0x25e90c,_0x128cd7={};_0x128cd7[_0x5eba85(0x101)]=function(_0x34a699,_0x50aaf5){return _0x34a699!==_0x50aaf5;},_0x128cd7[_0x5eba85(0x105)]=_0x5eba85(0x114),_0x128cd7[_0x5eba85(0x104)]=function(_0x3f716f,_0x11feca){return _0x3f716f===_0x11feca;},_0x128cd7['puYdz']=_0x5eba85(0x118);const _0x341700=_0x128cd7,_0x616c55=await this['acquireLock']();if(!_0x616c55)return logger[_0x5eba85(0x11f)]('['+TAG+_0x5eba85(0x120)),{'newState':this['readState']()||this[_0x5eba85(0x10f)],'isNewFailure':![]};try{let _0x330498=this['readState']();!_0x330498&&(_0x330498=JSON[_0x5eba85(0x10e)](JSON[_0x5eba85(0x122)](this[_0x5eba85(0x10f)])));if(!_0x330498[_0x5eba85(0xfa)]||_0x341700['zkgcR'](typeof _0x330498['uniqueFailedTests'][Symbol[_0x5eba85(0xf1)]],_0x341700[_0x5eba85(0x105)]))_0x330498[_0x5eba85(0xfa)]=new Set();else Array[_0x5eba85(0xf3)](_0x330498['uniqueFailedTests'])&&(_0x330498[_0x5eba85(0xfa)]=new Set(_0x330498[_0x5eba85(0xfa)]));_0x330498[_0x5eba85(0xe8)]=_0x564c83;let _0x49c621=![];_0x341700[_0x5eba85(0x104)](_0x247e30[_0x5eba85(0x10c)],_0x341700[_0x5eba85(0xf7)])&&(_0x330498[_0x5eba85(0x10b)]+=0x1,!_0x330498[_0x5eba85(0xfa)]['has'](_0x247e30['fullName'])&&(_0x330498[_0x5eba85(0xfa)][_0x5eba85(0x11d)](_0x247e30[_0x5eba85(0xfc)]),_0x49c621=!![]));await this[_0x5eba85(0x11a)](_0x330498);const _0x40b114={};return _0x40b114[_0x5eba85(0x126)]=_0x330498,_0x40b114[_0x5eba85(0xed)]=_0x49c621,_0x40b114;}finally{await this['releaseLock'](_0x616c55);}}async[a123_0x25e90c(0x116)](_0x2854c9){const _0x506f42=a123_0x25e90c,_0x2a6b40=await this[_0x506f42(0x106)]();if(!_0x2a6b40)return logger['warn']('['+TAG+_0x506f42(0x10d)),this[_0x506f42(0x123)]()||this[_0x506f42(0x10f)];try{let _0x42f8c6=this['readState']();return!_0x42f8c6&&(_0x42f8c6=JSON[_0x506f42(0x10e)](JSON[_0x506f42(0x122)](this[_0x506f42(0x10f)]))),_0x42f8c6[_0x506f42(0x127)]=_0x2854c9,await this[_0x506f42(0x11a)](_0x42f8c6),_0x42f8c6;}finally{await this['releaseLock'](_0x2a6b40);}}}module['exports']=FileHelper;
@@ -1 +1 @@
1
- const a124_0x4528d8=a124_0x2cbd;function a124_0x4c5c(){const _0x4ec2c0=['814950QPTXix','enable','enabled','8cHRlDr','getEnabled','maxFailures','join','450584FeVSgM','disable','skipFlakyAndFailed','existsSync','_setRunPreviouslyFailedFirst','281242cPzXlA','rerun_previously_failed','rerunPreviouslyFailed','_setTestOrdering','getFailureThreshold','qHktt','getRunPreviouslyFailedFirst','325739hdvvKL','name','failed_tests_','getBuildStartData','config','121UKgcqs','tmpdir','abortBuildOnFailure','.txt','getName','21nnMiKR','isAbortBuildOnFailureSupported','getRerunPreviouslyFailed','env','2122269XgXBkW','95868DoxuLa','exports','has','9582HKgWto','isRetryEnabled','_setSkipFlakyAndFailed','writeFailureToFile','getOrchestrationData','XspQG','getInstance','getRetryCount','path','maxRetries','checkAbortBuildFileExists','testOrdering','../logger','isAbortBuildOnFailureEnabled','_instance','getSkipFlakyAndFailed','BROWSERSTACK_TESTHUB_UUID','3695UrMzAW','testOrchestrationOptions','runPreviouslyFailedFirst'];a124_0x4c5c=function(){return _0x4ec2c0;};return a124_0x4c5c();}(function(_0x3da5ad,_0x5b67b9){const _0x5ed558=a124_0x2cbd,_0xdfbb78=_0x3da5ad();while(!![]){try{const _0x5e1347=-parseInt(_0x5ed558(0x214))/0x1+parseInt(_0x5ed558(0x20d))/0x2+parseInt(_0x5ed558(0x222))/0x3*(parseInt(_0x5ed558(0x204))/0x4)+-parseInt(_0x5ed558(0x1fe))/0x5*(parseInt(_0x5ed558(0x226))/0x6)+parseInt(_0x5ed558(0x21e))/0x7*(-parseInt(_0x5ed558(0x208))/0x8)+parseInt(_0x5ed558(0x223))/0x9+parseInt(_0x5ed558(0x201))/0xa*(parseInt(_0x5ed558(0x219))/0xb);if(_0x5e1347===_0x5b67b9)break;else _0xdfbb78['push'](_0xdfbb78['shift']());}catch(_0x52538e){_0xdfbb78['push'](_0xdfbb78['shift']());}}}(a124_0x4c5c,0xc04d9));const os=require('os'),path=require(a124_0x4528d8(0x1f5)),fs=require('fs'),logger=require(a124_0x4528d8(0x1f9))['winstonLogger'],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a124_0x4528d8(0x21b),RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a124_0x4528d8(0x20f),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x3217f3=a124_0x4528d8;this[_0x3217f3(0x203)]=![],this[_0x3217f3(0x215)]=null;}[a124_0x4528d8(0x202)](_0x4264f0){const _0x116b9c=a124_0x4528d8;this[_0x116b9c(0x203)]=!![],this[_0x116b9c(0x215)]=_0x4264f0;}[a124_0x4528d8(0x209)](){this['enabled']=![],this['name']=null;}[a124_0x4528d8(0x205)](){const _0x21c691=a124_0x4528d8;return this[_0x21c691(0x203)];}['getName'](){const _0x1a845c=a124_0x4528d8;return this[_0x1a845c(0x215)];}}function a124_0x2cbd(_0x4150f1,_0x5166ed){const _0x4c5c9c=a124_0x4c5c();return a124_0x2cbd=function(_0x2cbddc,_0x39cf03){_0x2cbddc=_0x2cbddc-0x1f4;let _0x246853=_0x4c5c9c[_0x2cbddc];return _0x246853;},a124_0x2cbd(_0x4150f1,_0x5166ed);}class OrchestrationUtils{static ['_instance']=null;constructor(_0x4fd6c0){const _0x334353=a124_0x4528d8,_0x2a0004={};_0x2a0004[_0x334353(0x212)]=function(_0x11629d,_0x57c056){return _0x11629d||_0x57c056;};const _0x56abd9=_0x2a0004;this['runPreviouslyFailedFirst']=![],this[_0x334353(0x20f)]=![],this[_0x334353(0x20a)]=![],this[_0x334353(0x1f8)]=new TestOrdering(),this[_0x334353(0x218)]=_0x56abd9['qHktt'](_0x4fd6c0,{});const _0x335e64=_0x4fd6c0&&_0x4fd6c0[_0x334353(0x1ff)]||{};this[_0x334353(0x20c)](_0x335e64[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x335e64[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x334353(0x228)](_0x335e64[SKIP_FLAKY_AND_FAILED]||![]);}static[a124_0x4528d8(0x22c)](_0x35c4ac){const _0x57058c=a124_0x4528d8;return!OrchestrationUtils[_0x57058c(0x1fb)]&&_0x35c4ac&&(OrchestrationUtils[_0x57058c(0x1fb)]=new OrchestrationUtils(_0x35c4ac)),OrchestrationUtils[_0x57058c(0x1fb)];}[a124_0x4528d8(0x227)](){const _0x376b6a=a124_0x4528d8,_0x5a7b72=(this['config'][_0x376b6a(0x1ff)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x5a7b72[_0x376b6a(0x203)];}[a124_0x4528d8(0x1f4)](){const _0x105425=a124_0x4528d8,_0x1c6577=(this[_0x105425(0x218)][_0x105425(0x1ff)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x5e8c7a=0x0;return this[_0x105425(0x227)](this[_0x105425(0x218)])&&(_0x5e8c7a=_0x1c6577[_0x105425(0x1f6)]||0x1),_0x5e8c7a;}[a124_0x4528d8(0x22a)](){const _0x3b1088=a124_0x4528d8,_0x2305ea=this[_0x3b1088(0x218)][_0x3b1088(0x1ff)]||{},_0x4ac8ea={};for(const _0x20b441 in _0x2305ea){ALLOWED_ORCHESTRATION_KEYS[_0x3b1088(0x225)](_0x20b441)&&(_0x4ac8ea[_0x20b441]=_0x2305ea[_0x20b441]);}return _0x4ac8ea;}[a124_0x4528d8(0x1f7)](){const _0x4dc222=a124_0x4528d8,_0x24576b=process[_0x4dc222(0x221)][_0x4dc222(0x1fd)],_0x2ac614=path[_0x4dc222(0x207)](os[_0x4dc222(0x21a)](),'abort_build_'+_0x24576b);return fs[_0x4dc222(0x20b)](_0x2ac614);}[a124_0x4528d8(0x229)](_0x17e824){const _0x4e5ce8=a124_0x4528d8,_0x2ec4f1=process[_0x4e5ce8(0x221)][_0x4e5ce8(0x1fd)],_0x4555b3=path['join'](os[_0x4e5ce8(0x21a)](),_0x4e5ce8(0x216)+_0x2ec4f1+_0x4e5ce8(0x21c));fs['appendFileSync'](_0x4555b3,_0x17e824+'\x0a');}[a124_0x4528d8(0x21f)](_0x2fe717){const _0x305104=a124_0x4528d8,_0x27c804={};_0x27c804['XspQG']=function(_0x45ea12,_0x3e1131){return _0x45ea12||_0x3e1131;};const _0x3f2077=_0x27c804;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x305104(0x225)](_0x3f2077[_0x305104(0x22b)](_0x2fe717,'')['toLowerCase']());}[a124_0x4528d8(0x1fa)](){const _0x9d26d2=a124_0x4528d8,_0xc08bae=(this[_0x9d26d2(0x218)][_0x9d26d2(0x1ff)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0xc08bae[_0x9d26d2(0x203)];}['getFailureThreshold'](){const _0x34c038=a124_0x4528d8,_0x2dfa0d=(this['config'][_0x34c038(0x1ff)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x2dfa0d[_0x34c038(0x206)]||0x5;;}[a124_0x4528d8(0x213)](){const _0x1c828f=a124_0x4528d8;return this[_0x1c828f(0x200)];}[a124_0x4528d8(0x20c)](_0x1f6f24){const _0xbb88ca=a124_0x4528d8;this[_0xbb88ca(0x200)]=!!_0x1f6f24,this['_setTestOrdering']();}[a124_0x4528d8(0x220)](){const _0x18a9fb=a124_0x4528d8;return this[_0x18a9fb(0x20f)];}['_setRerunPreviouslyFailed'](_0x28a216){this['rerunPreviouslyFailed']=!!_0x28a216,this['_setTestOrdering']();}[a124_0x4528d8(0x1fc)](){const _0x53fc69=a124_0x4528d8;return this[_0x53fc69(0x20a)];}[a124_0x4528d8(0x228)](_0x3fe6ff){const _0x5515c6=a124_0x4528d8;this[_0x5515c6(0x20a)]=!!_0x3fe6ff,this[_0x5515c6(0x210)]();}[a124_0x4528d8(0x210)](){const _0x596275=a124_0x4528d8;if(this[_0x596275(0x200)])this['rerunPreviouslyFailed']=![],this['skipFlakyAndFailed']=![],this[_0x596275(0x1f8)][_0x596275(0x202)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x596275(0x20f)])this[_0x596275(0x200)]=![],this['skipFlakyAndFailed']=![],this['testOrdering'][_0x596275(0x202)](RERUN_PREVIOUSLY_FAILED);else this[_0x596275(0x20a)]?(this[_0x596275(0x200)]=![],this[_0x596275(0x20f)]=![],this[_0x596275(0x1f8)][_0x596275(0x202)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x596275(0x209)]();}}['testOrderingEnabled'](){const _0x4da241=a124_0x4528d8;return this[_0x4da241(0x1f8)][_0x4da241(0x205)]();}['getTestOrderingName'](){const _0x33d571=a124_0x4528d8;if(this[_0x33d571(0x1f8)][_0x33d571(0x205)]())return this[_0x33d571(0x1f8)][_0x33d571(0x21d)]();return null;}[a124_0x4528d8(0x217)](){const _0x494082=a124_0x4528d8,_0x37f61d={};return _0x37f61d[_0x494082(0x20e)]={'enabled':this[_0x494082(0x220)]()},_0x37f61d['run_previously_failed_first']={'enabled':this[_0x494082(0x213)]()},_0x37f61d['skip_failing_and_flaky']={'enabled':this[_0x494082(0x1fc)]()},this[_0x494082(0x227)]()&&(_0x37f61d['retry_tests_on_failure']={'enabled':!![],'max_retries':this[_0x494082(0x1f4)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x37f61d['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x494082(0x211)]()}),_0x37f61d;}}module[a124_0x4528d8(0x224)]=OrchestrationUtils;
1
+ const a124_0x311ad8=a124_0xb4d2;(function(_0x1f7dbd,_0xd56f5d){const _0x4cd7da=a124_0xb4d2,_0x929aeb=_0x1f7dbd();while(!![]){try{const _0x219cfe=parseInt(_0x4cd7da(0x204))/0x1+-parseInt(_0x4cd7da(0x1ef))/0x2+-parseInt(_0x4cd7da(0x1ea))/0x3+-parseInt(_0x4cd7da(0x1e9))/0x4+-parseInt(_0x4cd7da(0x1d9))/0x5*(parseInt(_0x4cd7da(0x1dd))/0x6)+parseInt(_0x4cd7da(0x1df))/0x7+-parseInt(_0x4cd7da(0x1e5))/0x8*(-parseInt(_0x4cd7da(0x1d3))/0x9);if(_0x219cfe===_0xd56f5d)break;else _0x929aeb['push'](_0x929aeb['shift']());}catch(_0x538583){_0x929aeb['push'](_0x929aeb['shift']());}}}(a124_0xedba,0xbfeb8));const os=require('os'),path=require(a124_0x311ad8(0x1fd)),fs=require('fs'),logger=require(a124_0x311ad8(0x1f4))[a124_0x311ad8(0x1fc)],RETRY_TESTS_ON_FAILURE=a124_0x311ad8(0x1e0),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a124_0x311ad8(0x1f8),RERUN_PREVIOUSLY_FAILED=a124_0x311ad8(0x1fe),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a124_0x311ad8(0x1de)]);function a124_0xb4d2(_0x5473ed,_0x161c53){const _0xedbac5=a124_0xedba();return a124_0xb4d2=function(_0xb4d2bf,_0x31faf3){_0xb4d2bf=_0xb4d2bf-0x1cd;let _0x88edf=_0xedbac5[_0xb4d2bf];return _0x88edf;},a124_0xb4d2(_0x5473ed,_0x161c53);}class TestOrdering{constructor(){const _0x57e2f7=a124_0x311ad8;this[_0x57e2f7(0x1f3)]=![],this[_0x57e2f7(0x1fa)]=null;}[a124_0x311ad8(0x207)](_0x1f4f40){const _0x1caa77=a124_0x311ad8;this[_0x1caa77(0x1f3)]=!![],this[_0x1caa77(0x1fa)]=_0x1f4f40;}[a124_0x311ad8(0x200)](){const _0xddf5f3=a124_0x311ad8;this[_0xddf5f3(0x1f3)]=![],this[_0xddf5f3(0x1fa)]=null;}[a124_0x311ad8(0x1e6)](){const _0x26b73c=a124_0x311ad8;return this[_0x26b73c(0x1f3)];}[a124_0x311ad8(0x1f6)](){return this['name'];}}class OrchestrationUtils{static [a124_0x311ad8(0x1cf)]=null;constructor(_0x41f950){const _0x31dcda=a124_0x311ad8,_0x173832={};_0x173832[_0x31dcda(0x203)]=function(_0xae51d1,_0xee1c9d){return _0xae51d1||_0xee1c9d;};const _0x544c99=_0x173832;this[_0x31dcda(0x1f8)]=![],this[_0x31dcda(0x1fe)]=![],this[_0x31dcda(0x205)]=![],this[_0x31dcda(0x208)]=new TestOrdering(),this[_0x31dcda(0x1f7)]=_0x544c99[_0x31dcda(0x203)](_0x41f950,{});const _0x27ab68=_0x41f950&&_0x41f950['testOrchestrationOptions']||{};this[_0x31dcda(0x1d0)](_0x27ab68[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x27ab68[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x31dcda(0x1e4)](_0x27ab68[SKIP_FLAKY_AND_FAILED]||![]);}static[a124_0x311ad8(0x201)](_0x2edf5d){const _0x1dacb4=a124_0x311ad8;return!OrchestrationUtils[_0x1dacb4(0x1cf)]&&_0x2edf5d&&(OrchestrationUtils[_0x1dacb4(0x1cf)]=new OrchestrationUtils(_0x2edf5d)),OrchestrationUtils[_0x1dacb4(0x1cf)];}[a124_0x311ad8(0x1dc)](){const _0x44d2ed=a124_0x311ad8,_0x146799=(this[_0x44d2ed(0x1f7)][_0x44d2ed(0x1cd)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x146799['enabled'];}['getRetryCount'](){const _0x43765d=a124_0x311ad8,_0x499faa=(this[_0x43765d(0x1f7)][_0x43765d(0x1cd)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x2c70d3=0x0;return this['isRetryEnabled'](this[_0x43765d(0x1f7)])&&(_0x2c70d3=_0x499faa['maxRetries']||0x1),_0x2c70d3;}['getOrchestrationData'](){const _0x24a786=a124_0x311ad8,_0x5f332e=this['config'][_0x24a786(0x1cd)]||{},_0x3caa8f={};for(const _0x3dee03 in _0x5f332e){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3dee03)&&(_0x3caa8f[_0x3dee03]=_0x5f332e[_0x3dee03]);}return _0x3caa8f;}[a124_0x311ad8(0x1e3)](){const _0x3775b2=a124_0x311ad8,_0x3a9ce6=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x1bf32a=path[_0x3775b2(0x1eb)](os['tmpdir'](),'abort_build_'+_0x3a9ce6);return fs[_0x3775b2(0x1e2)](_0x1bf32a);}[a124_0x311ad8(0x1ff)](_0x7f7101){const _0x2934dc=a124_0x311ad8,_0x1660d3=process[_0x2934dc(0x202)][_0x2934dc(0x1d4)],_0x31f6e8=path[_0x2934dc(0x1eb)](os[_0x2934dc(0x1ce)](),_0x2934dc(0x1d5)+_0x1660d3+_0x2934dc(0x1db));fs[_0x2934dc(0x1f9)](_0x31f6e8,_0x7f7101+'\x0a');}['isAbortBuildOnFailureSupported'](_0x233b11){const _0x5e4d9b=a124_0x311ad8,_0xd8ad7a={};_0xd8ad7a[_0x5e4d9b(0x1f0)]=function(_0x310f31,_0x2e404c){return _0x310f31||_0x2e404c;};const _0x327d27=_0xd8ad7a;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x5e4d9b(0x1fb)](_0x327d27[_0x5e4d9b(0x1f0)](_0x233b11,'')[_0x5e4d9b(0x1ec)]());}[a124_0x311ad8(0x206)](){const _0x1734c7=a124_0x311ad8,_0x4b8bd6=(this[_0x1734c7(0x1f7)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x4b8bd6[_0x1734c7(0x1f3)];}['getFailureThreshold'](){const _0x17bd66=a124_0x311ad8,_0x52d429=(this['config'][_0x17bd66(0x1cd)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x52d429[_0x17bd66(0x1f1)]||0x5;;}[a124_0x311ad8(0x1d2)](){const _0x1369fc=a124_0x311ad8;return this[_0x1369fc(0x1f8)];}[a124_0x311ad8(0x1d0)](_0x102622){this['runPreviouslyFailedFirst']=!!_0x102622,this['_setTestOrdering']();}['getRerunPreviouslyFailed'](){const _0x1bc098=a124_0x311ad8;return this[_0x1bc098(0x1fe)];}['_setRerunPreviouslyFailed'](_0x218fd7){const _0x51ee09=a124_0x311ad8;this[_0x51ee09(0x1fe)]=!!_0x218fd7,this[_0x51ee09(0x1e8)]();}['getSkipFlakyAndFailed'](){return this['skipFlakyAndFailed'];}[a124_0x311ad8(0x1e4)](_0x4af571){const _0x1ba3c0=a124_0x311ad8;this[_0x1ba3c0(0x205)]=!!_0x4af571,this[_0x1ba3c0(0x1e8)]();}[a124_0x311ad8(0x1e8)](){const _0x35d6eb=a124_0x311ad8;if(this['runPreviouslyFailedFirst'])this[_0x35d6eb(0x1fe)]=![],this[_0x35d6eb(0x205)]=![],this[_0x35d6eb(0x208)][_0x35d6eb(0x207)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x35d6eb(0x1fe)])this['runPreviouslyFailedFirst']=![],this[_0x35d6eb(0x205)]=![],this[_0x35d6eb(0x208)][_0x35d6eb(0x207)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x35d6eb(0x1f8)]=![],this[_0x35d6eb(0x1fe)]=![],this[_0x35d6eb(0x208)][_0x35d6eb(0x207)](SKIP_FLAKY_AND_FAILED)):this[_0x35d6eb(0x208)]['disable']();}}[a124_0x311ad8(0x1e1)](){const _0x35028a=a124_0x311ad8;return this[_0x35028a(0x208)][_0x35028a(0x1e6)]();}[a124_0x311ad8(0x1d1)](){const _0x5aa7b8=a124_0x311ad8;if(this[_0x5aa7b8(0x208)][_0x5aa7b8(0x1e6)]())return this[_0x5aa7b8(0x208)]['getName']();return null;}[a124_0x311ad8(0x1f2)](){const _0x551cf8=a124_0x311ad8,_0x3ce869={};return _0x3ce869[_0x551cf8(0x1f5)]={'enabled':this['getRerunPreviouslyFailed']()},_0x3ce869[_0x551cf8(0x1d8)]={'enabled':this[_0x551cf8(0x1d2)]()},_0x3ce869[_0x551cf8(0x1ed)]={'enabled':this[_0x551cf8(0x1e7)]()},this[_0x551cf8(0x1dc)]()&&(_0x3ce869[_0x551cf8(0x1ee)]={'enabled':!![],'max_retries':this[_0x551cf8(0x1d7)]()}),this[_0x551cf8(0x206)]()&&(_0x3ce869['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x551cf8(0x1da)]()}),_0x3ce869;}}module[a124_0x311ad8(0x1d6)]=OrchestrationUtils;function a124_0xedba(){const _0x4f3eb8=['maxFailures','getBuildStartData','enabled','../logger','rerun_previously_failed','getName','config','runPreviouslyFailedFirst','appendFileSync','name','has','winstonLogger','path','rerunPreviouslyFailed','writeFailureToFile','disable','getInstance','env','bgUPO','799476QmsJRU','skipFlakyAndFailed','isAbortBuildOnFailureEnabled','enable','testOrdering','testOrchestrationOptions','tmpdir','_instance','_setRunPreviouslyFailedFirst','getTestOrderingName','getRunPreviouslyFailedFirst','30940146uhOJQr','BROWSERSTACK_TESTHUB_UUID','failed_tests_','exports','getRetryCount','run_previously_failed_first','3346425abUldC','getFailureThreshold','.txt','isRetryEnabled','12seTwWQ','jest','1447460Bdruzl','retryTestsOnFailure','testOrderingEnabled','existsSync','checkAbortBuildFileExists','_setSkipFlakyAndFailed','8lbGsau','getEnabled','getSkipFlakyAndFailed','_setTestOrdering','17936Pprnio','4251960bDJrYJ','join','toLowerCase','skip_failing_and_flaky','retry_tests_on_failure','1795144pDEPUz','hVcje'];a124_0xedba=function(){return _0x4f3eb8;};return a124_0xedba();}
@@ -1 +1 @@
1
- function a125_0x48b2(){const _0x1c9ac7=['stringify','data','env','message','bEmaa','Pkcwd','postSplitFiles','status',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','Content-Type','request','uDUXr','exports','error','mwWxt','XknsM','application/json','Bearer\x20','getFailedTestsCount','_request','putFailedTests','1472250RwJsFi','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','2347326GcwwSX','\x20and\x20data:\x20','545NXAFUM','&projectName=','TaFrb',']\x20Request\x20failed\x20for\x20','LaLZG','BROWSERSTACK_TESTHUB_JWT','HZTDU','pGKsL','antYF','Test\x20added','../logger','fIhZx','482376bnQOOe',']\x20Sending\x20',']\x20Error\x20in\x20putFailedTests:\x20','VbWyU','8323592gcqjeg','getSplitFiles','PUT','SoNPW','TAmLE',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','statusCode','GET','failedTestsCount','65190NzSKzO','end',']\x20Sending\x20GET\x20to\x20','./constants',',\x20projectName=',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','debug','body','https','nbuUS','qoNnP','write','121236ldRscu','?buildName=','Authorization','370481QJegEC',',\x20buildRunIdentifier=','parse','RequestUtils','POST','ZHmot','fRKEC','\x20-\x20','fHrgl','SdIKY','fJjiu',']\x20Error\x20in\x20getFailedTestsCount:\x20','LpEbA','XCHtt','url','stack','7yraoNJ','undefined','headers'];a125_0x48b2=function(){return _0x1c9ac7;};return a125_0x48b2();}function a125_0x2cbb(_0x3fc043,_0x56c658){const _0x48b266=a125_0x48b2();return a125_0x2cbb=function(_0x2cbbbd,_0x236524){_0x2cbbbd=_0x2cbbbd-0x171;let _0x16d2a3=_0x48b266[_0x2cbbbd];return _0x16d2a3;},a125_0x2cbb(_0x3fc043,_0x56c658);}const a125_0x652029=a125_0x2cbb;(function(_0x32a65c,_0x506c83){const _0x4ac97a=a125_0x2cbb,_0x3b6bb6=_0x32a65c();while(!![]){try{const _0x7436e0=-parseInt(_0x4ac97a(0x1b5))/0x1+parseInt(_0x4ac97a(0x189))/0x2+parseInt(_0x4ac97a(0x199))/0x3+parseInt(_0x4ac97a(0x1b2))/0x4+-parseInt(_0x4ac97a(0x18d))/0x5*(parseInt(_0x4ac97a(0x1a6))/0x6)+-parseInt(_0x4ac97a(0x171))/0x7*(-parseInt(_0x4ac97a(0x19d))/0x8)+parseInt(_0x4ac97a(0x18b))/0x9;if(_0x7436e0===_0x506c83)break;else _0x3b6bb6['push'](_0x3b6bb6['shift']());}catch(_0x44caa9){_0x3b6bb6['push'](_0x3b6bb6['shift']());}}}(a125_0x48b2,0xa47bb));const https=require(a125_0x652029(0x1ae)),{URL}=require(a125_0x652029(0x1c3)),logger=require(a125_0x652029(0x197))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a125_0x652029(0x1a9)),TAG=a125_0x652029(0x1b8);class RequestUtils{static async['_request'](_0x354d5c,_0x387892,_0x465841=null){const _0x3473a0=a125_0x652029,_0x2f4474={'EoEOA':_0x3473a0(0x175),'mwWxt':_0x3473a0(0x1a7),'LaLZG':function(_0x23a2c6,_0x43710e){return _0x23a2c6(_0x43710e);},'fIhZx':_0x3473a0(0x181),'uDUXr':function(_0x36576f,_0x5d97e9){return _0x36576f===_0x5d97e9;},'Pkcwd':'POST','zwKLx':function(_0x22bbc0,_0x2e2a47){return _0x22bbc0===_0x2e2a47;},'XknsM':_0x3473a0(0x19f),'fJjiu':_0x3473a0(0x184),'LpEbA':function(_0x4abb1d,_0x25fabf){return _0x4abb1d+_0x25fabf;}},_0x5068df=process[_0x3473a0(0x176)][_0x3473a0(0x192)]||'',_0x2b803e={};_0x2b803e[_0x3473a0(0x1b4)]=_0x3473a0(0x185)+_0x5068df,_0x2b803e[_0x3473a0(0x17d)]=_0x2f4474[_0x3473a0(0x1bf)];const _0x20e22d=_0x2b803e,{hostname:_0x473a24,pathname:_0x256fc2,search:_0x209b53}=new URL(_0x387892),_0xad82ce={'hostname':_0x473a24,'path':_0x2f4474[_0x3473a0(0x1c1)](_0x256fc2,_0x209b53),'method':_0x354d5c,'headers':_0x20e22d};return logger[_0x3473a0(0x1ac)]('['+TAG+_0x3473a0(0x19a)+_0x354d5c+'\x20request\x20to\x20'+_0x387892+'\x20with\x20headers:\x20'+JSON[_0x3473a0(0x174)](_0x20e22d)+_0x3473a0(0x18c)+JSON[_0x3473a0(0x174)](_0x465841)+'\x20and\x20token:\x20'+_0x5068df),new Promise((_0x3f926a,_0x584bd7)=>{const _0x2dfe78=_0x3473a0,_0x2d34ec={'SoNPW':function(_0x19c098,_0xc43bd){const _0x5bb9a7=a125_0x2cbb;return _0x2f4474[_0x5bb9a7(0x191)](_0x19c098,_0xc43bd);}},_0x3b68f8=https[_0x2dfe78(0x17e)](_0xad82ce,_0xf551aa=>{const _0x47d942=_0x2dfe78;let _0x250409='';_0xf551aa['on'](_0x2f4474['EoEOA'],_0x29131c=>{_0x250409+=_0x29131c;}),_0xf551aa['on'](_0x2f4474[_0x47d942(0x182)],()=>{const _0x5a3dcc=_0x47d942;try{const _0x5347b1=_0x250409?JSON[_0x5a3dcc(0x1b7)](_0x250409):{},_0x4aaf40={};_0x4aaf40[_0x5a3dcc(0x17b)]=_0xf551aa[_0x5a3dcc(0x1a3)],_0x4aaf40[_0x5a3dcc(0x1ad)]=_0x5347b1,_0x4aaf40[_0x5a3dcc(0x173)]=_0xf551aa[_0x5a3dcc(0x173)],_0x2d34ec[_0x5a3dcc(0x1a0)](_0x3f926a,_0x4aaf40);}catch(_0x418031){logger[_0x5a3dcc(0x181)]('['+TAG+_0x5a3dcc(0x1a2)+_0x250409+_0x5a3dcc(0x1bc)+_0x418031[_0x5a3dcc(0x177)]+'\x20'+_0x418031[_0x5a3dcc(0x1c4)]),_0x2d34ec[_0x5a3dcc(0x1a0)](_0x584bd7,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x418031[_0x5a3dcc(0x177)]));}});});_0x3b68f8['on'](_0x2f4474[_0x2dfe78(0x198)],_0x31a016=>{const _0x17b107=_0x2dfe78;logger['error']('['+TAG+_0x17b107(0x190)+_0x354d5c+'\x20'+_0x387892+':\x20'+_0x31a016[_0x17b107(0x177)]+'\x20'+_0x31a016[_0x17b107(0x1c4)]),_0x2f4474[_0x17b107(0x191)](_0x584bd7,_0x31a016);}),_0x465841&&(_0x2f4474[_0x2dfe78(0x17f)](_0x354d5c,_0x2f4474[_0x2dfe78(0x179)])||_0x2f4474['zwKLx'](_0x354d5c,_0x2f4474[_0x2dfe78(0x183)]))&&_0x3b68f8[_0x2dfe78(0x1b1)](JSON['stringify'](_0x465841)),_0x3b68f8[_0x2dfe78(0x1a7)]();});}static async[a125_0x652029(0x17a)](_0x2ad8ca){const _0x14a8df=a125_0x652029,_0x2d0e05={};_0x2d0e05[_0x14a8df(0x1c2)]=_0x14a8df(0x1b9),_0x2d0e05[_0x14a8df(0x178)]=function(_0x39d5cf,_0xcf6f0f){return _0x39d5cf===_0xcf6f0f;};const _0x11a7e8=_0x2d0e05,_0x227787=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x1fb09f=await this[_0x14a8df(0x187)](_0x11a7e8['XCHtt'],_0x227787,_0x2ad8ca);return _0x11a7e8[_0x14a8df(0x178)](_0x1fb09f['status'],0xc8)?logger[_0x14a8df(0x1ac)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x227787):logger['error']('['+TAG+_0x14a8df(0x1ab)+_0x227787+':\x20'+JSON['stringify'](_0x1fb09f[_0x14a8df(0x1ad)])+',\x20status:\x20'+_0x1fb09f[_0x14a8df(0x17b)]),_0x1fb09f;}catch(_0x25b248){logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x25b248[_0x14a8df(0x177)]+'\x20'+_0x25b248[_0x14a8df(0x1c4)]);const _0x506ddc={};_0x506ddc[_0x14a8df(0x177)]=_0x25b248[_0x14a8df(0x177)];const _0x2262fb={};return _0x2262fb['status']=0x1f4,_0x2262fb[_0x14a8df(0x1ad)]=_0x506ddc,_0x2262fb;}}static async[a125_0x652029(0x19e)](_0x215a39){const _0x2dc8a3=a125_0x652029,_0x218887={};_0x218887['fHrgl']='GET',_0x218887[_0x2dc8a3(0x193)]=function(_0x180c17,_0x4fe0a3){return _0x180c17===_0x4fe0a3;};const _0x39cd4f=_0x218887;try{const _0x6d8499=await this['_request'](_0x39cd4f[_0x2dc8a3(0x1bd)],_0x215a39);if(_0x39cd4f[_0x2dc8a3(0x193)](_0x6d8499[_0x2dc8a3(0x17b)],0xc8))return _0x6d8499[_0x2dc8a3(0x1ad)];return{};}catch(_0x59b288){return logger[_0x2dc8a3(0x181)]('['+TAG+_0x2dc8a3(0x19b)+_0x59b288[_0x2dc8a3(0x177)]+'\x20'+_0x59b288[_0x2dc8a3(0x1c4)]),{};}}static async[a125_0x652029(0x188)](_0x48514f){const _0x22f757=a125_0x652029,_0x1bf629={};_0x1bf629[_0x22f757(0x1be)]='PUT',_0x1bf629['TaFrb']=function(_0x10f36e,_0x14ce15){return _0x10f36e===_0x14ce15;},_0x1bf629[_0x22f757(0x194)]=_0x22f757(0x196);const _0x5e3b96=_0x1bf629,_0x1512dc=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0xf2d82d=await this[_0x22f757(0x187)](_0x5e3b96['SdIKY'],_0x1512dc,_0x48514f);if(_0x5e3b96[_0x22f757(0x18f)](_0xf2d82d[_0x22f757(0x17b)],0xc8)&&_0xf2d82d[_0x22f757(0x1ad)]&&_0x5e3b96[_0x22f757(0x18f)](_0xf2d82d[_0x22f757(0x1ad)][_0x22f757(0x177)],_0x5e3b96['pGKsL']))return!![];return![];}catch(_0xbb5402){logger[_0x22f757(0x181)]('['+TAG+_0x22f757(0x19b)+_0xbb5402[_0x22f757(0x177)]+'\x20'+_0xbb5402[_0x22f757(0x1c4)]);const _0x4e3d68={};_0x4e3d68[_0x22f757(0x177)]=_0xbb5402[_0x22f757(0x177)];const _0xd00fa2={};return _0xd00fa2[_0x22f757(0x17b)]=0x1f4,_0xd00fa2[_0x22f757(0x1ad)]=_0x4e3d68,_0xd00fa2;}}static async[a125_0x652029(0x186)](_0x22484d){const _0x3020b5=a125_0x652029,_0x5535be={'fRKEC':function(_0x25855f,_0x115244){return _0x25855f||_0x115244;},'VbWyU':_0x3020b5(0x18a),'ndzMp':function(_0x4105ff,_0x33ac88){return _0x4105ff(_0x33ac88);},'TAmLE':function(_0x473e3f,_0x5506ca){return _0x473e3f(_0x5506ca);},'antYF':_0x3020b5(0x1a4),'nbuUS':function(_0x1592d1,_0x3b184d){return _0x1592d1===_0x3b184d;},'xLQwC':function(_0x13b2fc,_0x5d5195){return _0x13b2fc!==_0x5d5195;},'ZHmot':_0x3020b5(0x172),'qoNnP':function(_0x559537,_0x3a6c2d){return _0x559537(_0x3a6c2d);}},{buildName:_0x36d08a,buildRunIdentifier:_0x7c7c59,projectName:_0x5900ed}=_0x22484d;if(_0x5535be[_0x3020b5(0x1bb)](!_0x36d08a,!_0x7c7c59)||!_0x5900ed){logger['error']('['+TAG+_0x3020b5(0x17c)+_0x36d08a+_0x3020b5(0x1b6)+_0x7c7c59+_0x3020b5(0x1aa)+_0x5900ed);const _0x505096={};_0x505096[_0x3020b5(0x177)]=_0x5535be[_0x3020b5(0x19c)];const _0x3cc238={};return _0x3cc238[_0x3020b5(0x17b)]=0x190,_0x3cc238['body']=_0x505096,_0x3cc238;}const _0x53ab73=_0x3020b5(0x1b3)+_0x5535be['ndzMp'](encodeURIComponent,_0x36d08a)+'&buildRunIdentifier='+_0x5535be['TAmLE'](encodeURIComponent,_0x7c7c59)+_0x3020b5(0x18e)+_0x5535be[_0x3020b5(0x1a1)](encodeURIComponent,_0x5900ed),_0x47d7fa=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x53ab73;try{logger[_0x3020b5(0x1ac)]('['+TAG+_0x3020b5(0x1a8)+_0x47d7fa);let _0x5856fd=0x0;const _0x3913c6=await this[_0x3020b5(0x187)](_0x5535be[_0x3020b5(0x195)],_0x47d7fa);return _0x5535be[_0x3020b5(0x1af)](_0x3913c6[_0x3020b5(0x17b)],0xc8)&&_0x3913c6['body']&&_0x5535be['xLQwC'](typeof _0x3913c6['body'][_0x3020b5(0x1a5)],_0x5535be[_0x3020b5(0x1ba)])&&(_0x5856fd=_0x5535be[_0x3020b5(0x1b0)](Number,_0x3913c6['body'][_0x3020b5(0x1a5)])),_0x5856fd;}catch(_0x376845){logger[_0x3020b5(0x181)]('['+TAG+_0x3020b5(0x1c0)+_0x376845['message']+'\x20'+_0x376845['stack']);const _0x391cb5={};_0x391cb5[_0x3020b5(0x177)]=_0x376845['message'];const _0x4f5dd7={};return _0x4f5dd7[_0x3020b5(0x17b)]=0x1f4,_0x4f5dd7['body']=_0x391cb5,_0x4f5dd7;}}}module[a125_0x652029(0x180)]=RequestUtils;
1
+ const a125_0x375822=a125_0x411a;function a125_0x411a(_0x33109a,_0x4429a9){const _0x4f0175=a125_0x4f01();return a125_0x411a=function(_0x411a49,_0x26d818){_0x411a49=_0x411a49-0xea;let _0x384b8a=_0x4f0175[_0x411a49];return _0x384b8a;},a125_0x411a(_0x33109a,_0x4429a9);}(function(_0x123cc8,_0x5b38fb){const _0x1e617c=a125_0x411a,_0x3ef160=_0x123cc8();while(!![]){try{const _0x37a4fb=-parseInt(_0x1e617c(0x128))/0x1*(parseInt(_0x1e617c(0x13b))/0x2)+parseInt(_0x1e617c(0x134))/0x3*(-parseInt(_0x1e617c(0xfd))/0x4)+-parseInt(_0x1e617c(0x125))/0x5*(-parseInt(_0x1e617c(0x13d))/0x6)+parseInt(_0x1e617c(0x11d))/0x7*(-parseInt(_0x1e617c(0x12d))/0x8)+-parseInt(_0x1e617c(0xf5))/0x9+-parseInt(_0x1e617c(0x124))/0xa*(-parseInt(_0x1e617c(0x100))/0xb)+parseInt(_0x1e617c(0x11c))/0xc;if(_0x37a4fb===_0x5b38fb)break;else _0x3ef160['push'](_0x3ef160['shift']());}catch(_0x4b5134){_0x3ef160['push'](_0x3ef160['shift']());}}}(a125_0x4f01,0xa78dc));const https=require(a125_0x375822(0x10f)),{URL}=require(a125_0x375822(0x116)),logger=require(a125_0x375822(0xfe))[a125_0x375822(0x107)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a125_0x375822(0x11a);function a125_0x4f01(){const _0x5530d9=['pdBQK','230ClQgzk','10QujHPN','application/json','Whlqs','1115315glRNCr','\x20-\x20','mbCcX','postSplitFiles','message','2728FKqmoR','undefined','fpaaD','XDIqy','ZrCVE','getFailedTestsCount','status','1010127uWzvtv','POST',']\x20Sending\x20',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','?buildName=','ehEIJ','Test\x20added','2KoarMR','Bearer\x20','798654CrktGM','debug','FZxFk','Failed\x20to\x20parse\x20JSON\x20response:\x20','stack','beCCg','FZGUB','Sdcpy','dLOxB','WzFvu','nCiiZ',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','ygkjB','5449311hujcfn',']\x20Error\x20in\x20putFailedTests:\x20','body','xuEsF','request','RJuyt','zbjTL',',\x20projectName=','4bhwNjr','../logger','&buildRunIdentifier=','441749JlmyIt',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','jxyEX','putFailedTests','kmldu','LJcIr','DTFPj','winstonLogger','dSPvv','\x20and\x20data:\x20','error','end','stringify','exports','&projectName=','https',']\x20Request\x20failed\x20for\x20','TbznW','PUT',',\x20buildRunIdentifier=','\x20and\x20token:\x20','failedTestsCount','url','data',',\x20status:\x20','parse','RequestUtils','RclRY','21503352DgCaXA','4886lCGeDI','aaTlB','headers','GET','env','_request'];a125_0x4f01=function(){return _0x5530d9;};return a125_0x4f01();}class RequestUtils{static async[a125_0x375822(0x122)](_0x5eb4ee,_0x352c69,_0x2273e6=null){const _0x5732df=a125_0x375822,_0x316794={'nCiiZ':function(_0x1a5637,_0x4e0e7e){return _0x1a5637(_0x4e0e7e);},'mbCcX':function(_0x351588,_0x22b92c){return _0x351588(_0x22b92c);},'IzAAz':_0x5732df(0x117),'dSPvv':_0x5732df(0x10b),'DTFPj':_0x5732df(0x10a),'ehEIJ':function(_0x5cc6d7,_0x1f8564){return _0x5cc6d7===_0x1f8564;},'jxyEX':_0x5732df(0x135),'ZrCVE':_0x5732df(0x112),'aaTlB':_0x5732df(0x126),'xerfd':function(_0x30a14d,_0x24d4f7){return _0x30a14d+_0x24d4f7;}},_0x29f44f=process[_0x5732df(0x121)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x1424f2={};_0x1424f2['Authorization']=_0x5732df(0x13c)+_0x29f44f,_0x1424f2['Content-Type']=_0x316794[_0x5732df(0x11e)];const _0x175fe7=_0x1424f2,{hostname:_0x585d14,pathname:_0x29ac69,search:_0x41914f}=new URL(_0x352c69),_0x550176={'hostname':_0x585d14,'path':_0x316794['xerfd'](_0x29ac69,_0x41914f),'method':_0x5eb4ee,'headers':_0x175fe7};return logger[_0x5732df(0x13e)]('['+TAG+_0x5732df(0x136)+_0x5eb4ee+'\x20request\x20to\x20'+_0x352c69+'\x20with\x20headers:\x20'+JSON[_0x5732df(0x10c)](_0x175fe7)+_0x5732df(0x109)+JSON['stringify'](_0x2273e6)+_0x5732df(0x114)+_0x29f44f),new Promise((_0x3cdcd6,_0x3b3058)=>{const _0x597717=_0x5732df,_0x728f5={'RclRY':function(_0x22b6ff,_0xbc5d40){const _0x23ac08=a125_0x411a;return _0x316794[_0x23ac08(0x12a)](_0x22b6ff,_0xbc5d40);},'MDyga':function(_0x24167d,_0x3ee888){const _0x2f883e=a125_0x411a;return _0x316794[_0x2f883e(0x12a)](_0x24167d,_0x3ee888);},'FZxFk':_0x316794['IzAAz'],'zbjTL':_0x316794[_0x597717(0x108)]},_0x128898=https[_0x597717(0xf9)](_0x550176,_0x364b96=>{const _0x497a83=_0x597717;let _0x423eec='';_0x364b96['on'](_0x728f5[_0x497a83(0xea)],_0xc9f270=>{_0x423eec+=_0xc9f270;}),_0x364b96['on'](_0x728f5[_0x497a83(0xfb)],()=>{const _0x316f46=_0x497a83;try{const _0x1f2851=_0x423eec?JSON[_0x316f46(0x119)](_0x423eec):{},_0x6fa5f={};_0x6fa5f[_0x316f46(0x133)]=_0x364b96['statusCode'],_0x6fa5f['body']=_0x1f2851,_0x6fa5f[_0x316f46(0x11f)]=_0x364b96[_0x316f46(0x11f)],_0x728f5[_0x316f46(0x11b)](_0x3cdcd6,_0x6fa5f);}catch(_0xf92f0){logger[_0x316f46(0x10a)]('['+TAG+_0x316f46(0x137)+_0x423eec+_0x316f46(0x129)+_0xf92f0[_0x316f46(0x12c)]+'\x20'+_0xf92f0['stack']),_0x728f5['MDyga'](_0x3b3058,new Error(_0x316f46(0xeb)+_0xf92f0[_0x316f46(0x12c)]));}});});_0x128898['on'](_0x316794[_0x597717(0x106)],_0x1ddae8=>{const _0x5b75c6=_0x597717;logger['error']('['+TAG+_0x5b75c6(0x110)+_0x5eb4ee+'\x20'+_0x352c69+':\x20'+_0x1ddae8[_0x5b75c6(0x12c)]+'\x20'+_0x1ddae8['stack']),_0x316794[_0x5b75c6(0xf2)](_0x3b3058,_0x1ddae8);}),_0x2273e6&&(_0x316794[_0x597717(0x139)](_0x5eb4ee,_0x316794[_0x597717(0x102)])||_0x316794[_0x597717(0x139)](_0x5eb4ee,_0x316794[_0x597717(0x131)]))&&_0x128898['write'](JSON['stringify'](_0x2273e6)),_0x128898[_0x597717(0x10b)]();});}static async[a125_0x375822(0x12b)](_0x47b6ae){const _0x56b6bc=a125_0x375822,_0x41a5c7={};_0x41a5c7[_0x56b6bc(0x127)]='POST',_0x41a5c7['Sdcpy']=function(_0xf2ddc1,_0x462055){return _0xf2ddc1===_0x462055;};const _0x1ce0b7=_0x41a5c7,_0x36e21e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x520dad=await this[_0x56b6bc(0x122)](_0x1ce0b7['Whlqs'],_0x36e21e,_0x47b6ae);return _0x1ce0b7[_0x56b6bc(0xef)](_0x520dad[_0x56b6bc(0x133)],0xc8)?logger[_0x56b6bc(0x13e)]('['+TAG+_0x56b6bc(0x101)+_0x36e21e):logger[_0x56b6bc(0x10a)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x36e21e+':\x20'+JSON[_0x56b6bc(0x10c)](_0x520dad[_0x56b6bc(0xf7)])+_0x56b6bc(0x118)+_0x520dad[_0x56b6bc(0x133)]),_0x520dad;}catch(_0x1b0f81){logger[_0x56b6bc(0x10a)]('['+TAG+_0x56b6bc(0xf6)+_0x1b0f81[_0x56b6bc(0x12c)]+'\x20'+_0x1b0f81[_0x56b6bc(0xec)]);const _0xdb431e={};_0xdb431e[_0x56b6bc(0x12c)]=_0x1b0f81[_0x56b6bc(0x12c)];const _0x2fb1a8={};return _0x2fb1a8[_0x56b6bc(0x133)]=0x1f4,_0x2fb1a8[_0x56b6bc(0xf7)]=_0xdb431e,_0x2fb1a8;}}static async['getSplitFiles'](_0x199c90){const _0x212c89=a125_0x375822,_0x206944={};_0x206944[_0x212c89(0x130)]=_0x212c89(0x120),_0x206944[_0x212c89(0xee)]=function(_0xf3e451,_0x24f0aa){return _0xf3e451===_0x24f0aa;};const _0x38e149=_0x206944;try{const _0x53494c=await this['_request'](_0x38e149[_0x212c89(0x130)],_0x199c90);if(_0x38e149[_0x212c89(0xee)](_0x53494c['status'],0xc8))return _0x53494c[_0x212c89(0xf7)];return{};}catch(_0x3f8ce5){return logger[_0x212c89(0x10a)]('['+TAG+_0x212c89(0xf6)+_0x3f8ce5[_0x212c89(0x12c)]+'\x20'+_0x3f8ce5[_0x212c89(0xec)]),{};}}static async[a125_0x375822(0x103)](_0xc87e3a){const _0x1012d5=a125_0x375822,_0x54044f={};_0x54044f['TbznW']=_0x1012d5(0x112),_0x54044f['WzFvu']=function(_0x2e7cb1,_0x277bf7){return _0x2e7cb1===_0x277bf7;},_0x54044f[_0x1012d5(0x123)]=function(_0x3be097,_0x2edfa6){return _0x3be097===_0x2edfa6;},_0x54044f[_0x1012d5(0xed)]=_0x1012d5(0x13a);const _0x246c21=_0x54044f,_0x91cd6c=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x2bb5ee=await this['_request'](_0x246c21[_0x1012d5(0x111)],_0x91cd6c,_0xc87e3a);if(_0x246c21[_0x1012d5(0xf1)](_0x2bb5ee[_0x1012d5(0x133)],0xc8)&&_0x2bb5ee['body']&&_0x246c21[_0x1012d5(0x123)](_0x2bb5ee[_0x1012d5(0xf7)][_0x1012d5(0x12c)],_0x246c21[_0x1012d5(0xed)]))return!![];return![];}catch(_0xb7b62c){logger[_0x1012d5(0x10a)]('['+TAG+_0x1012d5(0xf6)+_0xb7b62c[_0x1012d5(0x12c)]+'\x20'+_0xb7b62c[_0x1012d5(0xec)]);const _0x813f8d={};_0x813f8d[_0x1012d5(0x12c)]=_0xb7b62c[_0x1012d5(0x12c)];const _0x188fd={};return _0x188fd[_0x1012d5(0x133)]=0x1f4,_0x188fd[_0x1012d5(0xf7)]=_0x813f8d,_0x188fd;}}static async[a125_0x375822(0x132)](_0x12dfc9){const _0x412092=a125_0x375822,_0x434e1e={'ygkjB':function(_0x5392dd,_0x950187){return _0x5392dd||_0x950187;},'sCkBD':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','LJcIr':function(_0x17254f,_0x5bf5a1){return _0x17254f(_0x5bf5a1);},'xuEsF':function(_0xe22ce,_0x2879b9){return _0xe22ce(_0x2879b9);},'dLOxB':_0x412092(0x120),'RJuyt':function(_0x51f0b3,_0x4133da){return _0x51f0b3===_0x4133da;},'kmldu':function(_0x1b662a,_0x17a28c){return _0x1b662a!==_0x17a28c;},'fpaaD':_0x412092(0x12e)},{buildName:_0x67303a,buildRunIdentifier:_0x519812,projectName:_0x2e0671}=_0x12dfc9;if(_0x434e1e[_0x412092(0xf4)](!_0x67303a,!_0x519812)||!_0x2e0671){logger[_0x412092(0x10a)]('['+TAG+_0x412092(0xf3)+_0x67303a+_0x412092(0x113)+_0x519812+_0x412092(0xfc)+_0x2e0671);const _0x4ff0fe={};_0x4ff0fe['message']=_0x434e1e['sCkBD'];const _0x4cce89={};return _0x4cce89[_0x412092(0x133)]=0x190,_0x4cce89[_0x412092(0xf7)]=_0x4ff0fe,_0x4cce89;}const _0xcc5e47=_0x412092(0x138)+_0x434e1e[_0x412092(0x105)](encodeURIComponent,_0x67303a)+_0x412092(0xff)+_0x434e1e[_0x412092(0xf8)](encodeURIComponent,_0x519812)+_0x412092(0x10e)+_0x434e1e[_0x412092(0xf8)](encodeURIComponent,_0x2e0671),_0x3cfd72=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0xcc5e47;try{logger['debug']('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x3cfd72);let _0x3baa38=0x0;const _0x5e3c18=await this['_request'](_0x434e1e[_0x412092(0xf0)],_0x3cfd72);return _0x434e1e[_0x412092(0xfa)](_0x5e3c18[_0x412092(0x133)],0xc8)&&_0x5e3c18['body']&&_0x434e1e[_0x412092(0x104)](typeof _0x5e3c18[_0x412092(0xf7)][_0x412092(0x115)],_0x434e1e[_0x412092(0x12f)])&&(_0x3baa38=_0x434e1e[_0x412092(0xf8)](Number,_0x5e3c18[_0x412092(0xf7)][_0x412092(0x115)])),_0x3baa38;}catch(_0x48d1ff){logger['error']('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x48d1ff[_0x412092(0x12c)]+'\x20'+_0x48d1ff[_0x412092(0xec)]);const _0x39adba={};_0x39adba[_0x412092(0x12c)]=_0x48d1ff[_0x412092(0x12c)];const _0x358008={};return _0x358008[_0x412092(0x133)]=0x1f4,_0x358008[_0x412092(0xf7)]=_0x39adba,_0x358008;}}}module[a125_0x375822(0x10d)]=RequestUtils;
@@ -1 +1 @@
1
- function a126_0x20d1(_0x15b15d,_0x4c6134){const _0x390a55=a126_0x390a();return a126_0x20d1=function(_0x20d128,_0x50c376){_0x20d128=_0x20d128-0x86;let _0xefaffa=_0x390a55[_0x20d128];return _0xefaffa;},a126_0x20d1(_0x15b15d,_0x4c6134);}function a126_0x390a(){const _0x1784b3=['[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','jdCvU','toString','downloadedTestFilesCount','micromatch','ltzxQ','env','16257gWHEfX','relative','sOEUn','length','BROWSERSTACK_TOTAL_NODE_COUNT','GXEkj','matchBase','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','15057300iwcsRP','ignore','testOrderingEnabled','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','nOOWG','addToOrderingInstrumentationData','filter','stringify','jest-config','reorderTestFiles','Test\x20orchestration\x20without\x20test\x20ordering','8748271YCNrbT','rootDir','getTestOrderingName','324LMXwvd','YFiDu','winstonLogger','config','stdout','testObservability','vDxWO','HQKRd','aqNqq','VZbSa','setTestOrderingApplied','6ONftSy','orderingInstrumentationData','\x20files','map','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','testOrderingServerHandler','exports','info','XWNna','iDZQH','251960XJTNZJ','_shouldLogTestOrderingChecks','--config','JmwUE','split','buildName','./orchestrationUtils','isTestOrderingApplied','isArray','totalNodes','projectName','error','ZDkXy','debug','DdZLg','iOHyz','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','BROWSERSTACK_NODE_INDEX','12957426wzfYYG','wJFdB','DZGwW','Found\x20test\x20files:\x20','testMatch','AlehA','getSplitTestsAPICallCount','kAJYi','cHJJc','nodeIndex','npx','updateBuildIdentifier','vnopH','2NKbwzU','_initializeTestOrdering','SDLtR','12444656uaWNvS','isTestOrchestrationEnabled','BROWSERSTACK_BUILD_RUN_IDENTIFIER','pzZss','./testOrderingServerHandler','ESjmQ','DvqGJ','logTestOrderingChecks','JUnJw','Error\x20finding\x20test\x20files:\x20','orchestrationUtils','uMgeS','applied','../logger','1|4|3|2|5|0','--listTests','aitPk','jest-util','testOrderingApplied','LNnRC','glob','BYmBo','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','TCqOU','12253Jeijde'];a126_0x390a=function(){return _0x1784b3;};return a126_0x390a();}const a126_0x6b3643=a126_0x20d1;(function(_0x57275a,_0x3d1ec3){const _0x3dadb0=a126_0x20d1,_0x29e680=_0x57275a();while(!![]){try{const _0x5b89e8=-parseInt(_0x3dadb0(0xbb))/0x1*(-parseInt(_0x3dadb0(0xa0))/0x2)+parseInt(_0x3dadb0(0xc3))/0x3*(parseInt(_0x3dadb0(0xd9))/0x4)+-parseInt(_0x3dadb0(0xee))/0x5*(-parseInt(_0x3dadb0(0xe4))/0x6)+-parseInt(_0x3dadb0(0xd6))/0x7+parseInt(_0x3dadb0(0xa3))/0x8+-parseInt(_0x3dadb0(0x93))/0x9+parseInt(_0x3dadb0(0xcb))/0xa;if(_0x5b89e8===_0x3d1ec3)break;else _0x29e680['push'](_0x29e680['shift']());}catch(_0x58632a){_0x29e680['push'](_0x29e680['shift']());}}}(a126_0x390a,0xd53d5));const logger=require(a126_0x6b3643(0xb0))[a126_0x6b3643(0xdb)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a126_0x6b3643(0xa7)),OrchestrationUtils=require(a126_0x6b3643(0x87)),path=require('path'),{spawnSync}=require('child_process'),micromatch=require(a126_0x6b3643(0xc0)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x5839b9){const _0x3221fb=a126_0x6b3643,_0xa65039={};_0xa65039[_0x3221fb(0xb8)]=_0x3221fb(0xb1);const _0x57ab7b=_0xa65039,_0x4d4dc0=_0x57ab7b['BYmBo'][_0x3221fb(0xf2)]('|');let _0x372453=0x0;while(!![]){switch(_0x4d4dc0[_0x372453++]){case'0':this[_0x3221fb(0xa1)]();continue;case'1':this['config']=_0x5839b9;continue;case'2':this[_0x3221fb(0xe9)]=null;continue;case'3':this['testOrderingApplied']=![];continue;case'4':this[_0x3221fb(0xe5)]={};continue;case'5':this[_0x3221fb(0xad)]=new OrchestrationUtils(_0x5839b9);continue;}break;}}[a126_0x6b3643(0xa4)](){const _0x4750bc=a126_0x6b3643,_0x7017c4={'aqNqq':function(_0xffc41f,_0x5bf664){return _0xffc41f(_0x5bf664);},'YFiDu':function(_0x3ac2c0,_0x525976){return _0x3ac2c0(_0x525976);},'ESjmQ':function(_0x15d20e,_0x8ef078){return _0x15d20e&&_0x8ef078;}},_0x4ff00e=_0x7017c4['aqNqq'](isNotUndefined,this[_0x4750bc(0xdc)])&&(_0x7017c4[_0x4750bc(0xe1)](isUndefined,this[_0x4750bc(0xdc)][_0x4750bc(0xde)])||_0x7017c4[_0x4750bc(0xda)](isTrueString,this['config'][_0x4750bc(0xde)])),_0xf127b9=this[_0x4750bc(0xad)][_0x4750bc(0xcd)](),_0x3bb5a9=_0x7017c4[_0x4750bc(0xda)](isNotUndefined,this[_0x4750bc(0xdc)])&&_0x7017c4[_0x4750bc(0xe1)](isNotUndefined,this[_0x4750bc(0xdc)]['projectName']),_0x22a6e2=_0x7017c4[_0x4750bc(0xda)](isNotUndefined,this[_0x4750bc(0xdc)])&&_0x7017c4['YFiDu'](isNotUndefined,this['config'][_0x4750bc(0x86)]);return _0x7017c4[_0x4750bc(0xa8)](_0x4ff00e,_0xf127b9)&&_0x3bb5a9&&_0x22a6e2;}[a126_0x6b3643(0xa1)](){const _0x99b1ef=a126_0x6b3643,_0x2054e9={};_0x2054e9['iOHyz']=_0x99b1ef(0xce),_0x2054e9[_0x99b1ef(0xc8)]=_0x99b1ef(0xd5);const _0x222b08=_0x2054e9;this[_0x99b1ef(0xa4)]()?(this[_0x99b1ef(0xe9)]=new TestOrderingServerHandler(this[_0x99b1ef(0xdc)]),logger['info'](_0x222b08[_0x99b1ef(0x90)])):(logger[_0x99b1ef(0x8e)](_0x222b08[_0x99b1ef(0xc8)]),this[_0x99b1ef(0xaa)]());}[a126_0x6b3643(0xaa)](){const _0x510f47=a126_0x6b3643,_0x36a641={'vDxWO':function(_0x572aa5,_0x1e7e08){return _0x572aa5(_0x1e7e08);},'vnopH':function(_0x894db,_0x3f6c29){return _0x894db(_0x3f6c29);},'qYhlO':function(_0x348b27,_0x2143b1){return _0x348b27(_0x2143b1);},'HQKRd':_0x510f47(0xb9),'pzZss':function(_0x2a6d49,_0x4bf61b){return _0x2a6d49(_0x4bf61b);},'DdZLg':function(_0x8bb9cb,_0x57e055){return _0x8bb9cb(_0x57e055);},'TCqOU':_0x510f47(0xe8)};if(!this[_0x510f47(0xef)]())return;(!_0x36a641[_0x510f47(0xdf)](isNotUndefined,this[_0x510f47(0xdc)])||!_0x36a641[_0x510f47(0x9f)](isNotUndefined,this[_0x510f47(0xdc)][_0x510f47(0x86)])||!_0x36a641['qYhlO'](isNotUndefined,this[_0x510f47(0xdc)][_0x510f47(0x8b)]))&&logger[_0x510f47(0xeb)](_0x36a641[_0x510f47(0xe0)]),_0x36a641[_0x510f47(0xa6)](isNotUndefined,this[_0x510f47(0xdc)])&&_0x36a641[_0x510f47(0x8f)](isNotUndefined,this[_0x510f47(0xdc)]['testObservability'])&&!_0x36a641[_0x510f47(0x8f)](isTrueString,this[_0x510f47(0xdc)][_0x510f47(0xde)])&&logger[_0x510f47(0xeb)](_0x36a641[_0x510f47(0xba)]);}[a126_0x6b3643(0xef)](){const _0x419302=a126_0x6b3643;return!this[_0x419302(0xa4)]()&&this[_0x419302(0xad)][_0x419302(0xcd)]();}[a126_0x6b3643(0x88)](){const _0x422faf=a126_0x6b3643;return this[_0x422faf(0xb5)];}[a126_0x6b3643(0xe3)](_0x35343c){const _0xb6862=a126_0x6b3643,_0x4b26ad={};_0x4b26ad['LNnRC']=_0xb6862(0xaf);const _0x13a09f=_0x4b26ad;this[_0xb6862(0xb5)]=_0x35343c,this[_0xb6862(0xd0)](_0x13a09f[_0xb6862(0xb6)],_0x35343c);}[a126_0x6b3643(0xd0)](_0x561b24,_0x3830c0){const _0x2bf067=a126_0x6b3643;this[_0x2bf067(0xe5)][_0x561b24]=_0x3830c0;}['getOrderingInstrumentationData'](){const _0x11c143=a126_0x6b3643;return this[_0x11c143(0xe5)];}[a126_0x6b3643(0x9e)](){const _0x2bc96f=a126_0x6b3643,_0x288a02={'aitPk':function(_0xfe395f,_0x3102a4){return _0xfe395f(_0x3102a4);},'JUnJw':function(_0x5dfb48,_0x34ef2b){return _0x5dfb48>_0x34ef2b;}},_0x39bb7c=_0x288a02[_0x2bc96f(0xb3)](parseInt,process[_0x2bc96f(0xc2)][_0x2bc96f(0xc7)]||'1'),_0xdd68ca=process[_0x2bc96f(0xc2)][_0x2bc96f(0xa5)];_0xdd68ca&&_0x288a02[_0x2bc96f(0xab)](_0x39bb7c,0x1)&&(logger['debug'](_0x2bc96f(0xca)+_0xdd68ca),this[_0x2bc96f(0xdc)]['buildIdentifier']=_0xdd68ca);}async[a126_0x6b3643(0xd4)](_0x4f4322){const _0x239eb8=a126_0x6b3643,_0xb3f4d6={'sOEUn':function(_0x323bb5,_0x569745){return _0x323bb5===_0x569745;},'AlehA':_0x239eb8(0x91),'FOFwa':function(_0x134ea6,_0x12a124){return _0x134ea6===_0x12a124;},'XWNna':function(_0x355c75,_0x53780b){return _0x355c75(_0x53780b);},'jdCvU':'uploadedTestFilesCount','nOOWG':_0x239eb8(0x9c),'VsvJI':_0x239eb8(0x8a),'DZGwW':_0x239eb8(0xbf),'wJFdB':'splitTestsAPICallCount'};try{if(!_0x4f4322||!Array[_0x239eb8(0x89)](_0x4f4322)||_0xb3f4d6[_0x239eb8(0xc5)](_0x4f4322[_0x239eb8(0xc6)],0x0))return null;if(_0xb3f4d6[_0x239eb8(0xc5)](this[_0x239eb8(0xa4)](),![]))return logger[_0x239eb8(0x8e)](_0xb3f4d6[_0x239eb8(0x98)]),null;let _0x57ff11=null;const _0x3270f6=this['orchestrationUtils'][_0x239eb8(0xd8)]();if(this['testOrderingServerHandler']){const _0x21539a=await this[_0x239eb8(0xe9)]['splitTests'](_0x4f4322,_0x3270f6);if(!_0x21539a)return null;_0x57ff11=await this[_0x239eb8(0xe9)]['getOrderedTestFiles'](_0x21539a);}if(!_0x57ff11||!Array[_0x239eb8(0x89)](_0x57ff11)||_0xb3f4d6['FOFwa'](_0x57ff11[_0x239eb8(0xc6)],0x0))return null;const _0xd10087=_0xb3f4d6['XWNna'](parseInt,process['env'][_0x239eb8(0x92)]||'0'),_0x3bbbb2=_0xb3f4d6[_0x239eb8(0xec)](parseInt,process[_0x239eb8(0xc2)][_0x239eb8(0xc7)]||'1');return this[_0x239eb8(0xd0)](_0xb3f4d6[_0x239eb8(0xbd)],_0x4f4322[_0x239eb8(0xc6)]),this[_0x239eb8(0xd0)](_0xb3f4d6[_0x239eb8(0xcf)],_0xd10087),this[_0x239eb8(0xd0)](_0xb3f4d6['VsvJI'],_0x3bbbb2),this[_0x239eb8(0xd0)](_0xb3f4d6[_0x239eb8(0x95)],_0x57ff11[_0x239eb8(0xc6)]),this[_0x239eb8(0xd0)](_0xb3f4d6[_0x239eb8(0x94)],this[_0x239eb8(0xe9)]?this[_0x239eb8(0xe9)][_0x239eb8(0x99)]():0x0),_0x57ff11[_0x239eb8(0xe7)](_0x2e6011=>sanitizedFilePath(_0x2e6011));}catch(_0x2de9ec){return logger[_0x239eb8(0x8e)](_0x239eb8(0xbc)+(_0x2de9ec['stack']||_0x2de9ec[_0x239eb8(0xbe)]())),null;}}async['findTestFiles'](_0x1d0d6b,_0x3457d9,_0x1941e7){const _0x49e6ff=a126_0x6b3643,_0x3c67bf={'uMgeS':function(_0x35cfe2,_0x4c1b64){return _0x35cfe2(_0x4c1b64);},'AcMSN':_0x49e6ff(0xd3),'DvqGJ':function(_0x5c7037,_0x5005ff){return _0x5c7037(_0x5005ff);},'ZDkXy':_0x49e6ff(0xb4),'JmwUE':'jest-runner','ltzxQ':function(_0x563697,_0x20d75b){return _0x563697(_0x20d75b);},'iDkbE':_0x49e6ff(0xb7),'kAJYi':'**/__tests__/**/*.[jt]s?(x)','VZbSa':'**/?(*.)+(spec|test).[jt]s?(x)','cHJJc':function(_0x5e01e8,_0x58146d,_0x16f46e,_0x38039e){return _0x5e01e8(_0x58146d,_0x16f46e,_0x38039e);},'NHJWu':_0x49e6ff(0x9d),'hrvYv':'jest','HZFhc':_0x49e6ff(0xf0),'SDLtR':_0x49e6ff(0xb2),'iDZQH':'utf-8'};try{const {getTestPathPatterns:_0x549f1c}=_0x3c67bf['uMgeS'](require,_0x3c67bf['AcMSN']),{globsToMatcher:_0x507287}=_0x3c67bf[_0x49e6ff(0xa9)](require,_0x3c67bf[_0x49e6ff(0x8d)]),{findRelatedTests:_0x535ce0}=_0x3c67bf[_0x49e6ff(0xae)](require,_0x3c67bf[_0x49e6ff(0xf1)]),_0x486bbe=_0x3c67bf[_0x49e6ff(0xc1)](require,_0x3c67bf['iDkbE']),_0x553828=_0x1d0d6b[_0x49e6ff(0x97)]||[_0x3c67bf[_0x49e6ff(0x9a)],_0x3c67bf[_0x49e6ff(0xe2)]],_0x495930=_0x1d0d6b['testPathIgnorePatterns']||[],_0xc2d030=_0x3c67bf[_0x49e6ff(0x9b)](spawnSync,_0x3c67bf['NHJWu'],[_0x3c67bf['hrvYv'],_0x3c67bf['HZFhc'],_0x1941e7,..._0x3457d9,_0x3c67bf[_0x49e6ff(0xa2)]],{'encoding':_0x3c67bf[_0x49e6ff(0xed)]});let _0x35c24a=[];!_0xc2d030[_0x49e6ff(0x8c)]&&(_0x35c24a=_0xc2d030[_0x49e6ff(0xdd)]['split']('\x0a')[_0x49e6ff(0xd1)](Boolean));logger[_0x49e6ff(0x8e)](_0x49e6ff(0x96)+JSON[_0x49e6ff(0xd2)](_0x35c24a)+_0x49e6ff(0xe6));const _0x104c85={};_0x104c85[_0x49e6ff(0xc9)]=!![],_0x104c85[_0x49e6ff(0xcc)]=_0x495930;const _0x397e5d=_0x3c67bf[_0x49e6ff(0x9b)](micromatch,_0x35c24a,_0x553828,_0x104c85)['map'](_0x2fc590=>path[_0x49e6ff(0xc4)](_0x1d0d6b[_0x49e6ff(0xd7)],_0x2fc590));return logger[_0x49e6ff(0x8e)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x49e6ff(0xd2)](_0x397e5d)+_0x49e6ff(0xe6)),_0x397e5d;}catch(_0x55e096){return logger[_0x49e6ff(0x8e)](_0x49e6ff(0xac)+_0x55e096),[];}}}module[a126_0x6b3643(0xea)]=TestOrchestrationHandler;
1
+ function a126_0x27c2(){const _0x1c124c=['DaSXo','rDfgd','downloadedTestFilesCount','3808992xgTHij','ZlBNZ','orderingInstrumentationData','isTestOrchestrationEnabled','MkLey','MQUbf','hpqGM','637224eAdhha','exports','rJoQD','13YQUHcc','jest-util','MBHqA','testPathIgnorePatterns','getSplitTestsAPICallCount','jest','_shouldLogTestOrderingChecks','stringify','rjofT','glob','buildName','micromatch','_initializeTestOrdering','wJeIw','splitTests','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','testOrderingEnabled','gSwed','\x20files','getOrderingInstrumentationData','yWWfb','getTestOrderingName','YTMli','addToOrderingInstrumentationData','env','npx','gPVuJ','cVvqL','config','sdvGp','debug','Found\x20test\x20files:\x20','**/__tests__/**/*.[jt]s?(x)','3|2|1|0|5|4','BROWSERSTACK_BUILD_RUN_IDENTIFIER','testOrderingApplied','166623fIAsDi','applied','835555juYvro','../helper','split','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','winstonLogger','BROWSERSTACK_TOTAL_NODE_COUNT','VmqLE','../logger','--config','length','ignore','orchestrationUtils','getOrderedTestFiles','Test\x20orchestration\x20without\x20test\x20ordering','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','YKlad','451FSDbyh','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','stack','filter','splitTestsAPICallCount','matchBase','jpBov','logTestOrderingChecks','nodeIndex','153190OBjZXe','JDgWI','testOrderingServerHandler','stdout','swIrv','testMatch','**/?(*.)+(spec|test).[jt]s?(x)','AMINq','utf-8','jest-runner','SNdHJ','FDpgj','isArray','4kjruWy','error','path','info','4KDQMML','4968qeYIJo','MBTLs','Error\x20finding\x20test\x20files:\x20','6543pkgIoR','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','15426204BIJivw','child_process','./orchestrationUtils','testObservability','DAztE','7FmucmJ','uQWrH','rootDir','hSugw','KrJKL','YrxQc','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','projectName','map','BROWSERSTACK_NODE_INDEX'];a126_0x27c2=function(){return _0x1c124c;};return a126_0x27c2();}const a126_0x104078=a126_0x339e;(function(_0xb23fa2,_0x25d0b9){const _0x25cceb=a126_0x339e,_0x2e9bc5=_0xb23fa2();while(!![]){try{const _0x2ae5ce=-parseInt(_0x25cceb(0x226))/0x1*(parseInt(_0x25cceb(0x1dc))/0x2)+parseInt(_0x25cceb(0x1ff))/0x3*(-parseInt(_0x25cceb(0x1e0))/0x4)+parseInt(_0x25cceb(0x228))/0x5+-parseInt(_0x25cceb(0x1f8))/0x6*(parseInt(_0x25cceb(0x1eb))/0x7)+parseInt(_0x25cceb(0x1e1))/0x8*(-parseInt(_0x25cceb(0x1e4))/0x9)+-parseInt(_0x25cceb(0x241))/0xa*(-parseInt(_0x25cceb(0x238))/0xb)+-parseInt(_0x25cceb(0x1e6))/0xc*(-parseInt(_0x25cceb(0x202))/0xd);if(_0x2ae5ce===_0x25d0b9)break;else _0x2e9bc5['push'](_0x2e9bc5['shift']());}catch(_0x3d6a56){_0x2e9bc5['push'](_0x2e9bc5['shift']());}}}(a126_0x27c2,0x6d8f2));const logger=require(a126_0x104078(0x22f))[a126_0x104078(0x22c)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a126_0x104078(0x229)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require(a126_0x104078(0x1e8)),path=require(a126_0x104078(0x1de)),{spawnSync}=require(a126_0x104078(0x1e7)),micromatch=require(a126_0x104078(0x20d)),fs=require('fs');function a126_0x339e(_0x108a94,_0x3a48c0){const _0x27c227=a126_0x27c2();return a126_0x339e=function(_0x339e76,_0x126886){_0x339e76=_0x339e76-0x1da;let _0xbdaefe=_0x27c227[_0x339e76];return _0xbdaefe;},a126_0x339e(_0x108a94,_0x3a48c0);}class TestOrchestrationHandler{constructor(_0x2422dd){const _0x474d7b=a126_0x104078,_0x150436={};_0x150436['uQWrH']=_0x474d7b(0x223);const _0x543350=_0x150436,_0x17ea9c=_0x543350[_0x474d7b(0x1ec)][_0x474d7b(0x22a)]('|');let _0x2e115b=0x0;while(!![]){switch(_0x17ea9c[_0x2e115b++]){case'0':this[_0x474d7b(0x243)]=null;continue;case'1':this[_0x474d7b(0x225)]=![];continue;case'2':this[_0x474d7b(0x1fa)]={};continue;case'3':this[_0x474d7b(0x21e)]=_0x2422dd;continue;case'4':this[_0x474d7b(0x20e)]();continue;case'5':this['orchestrationUtils']=new OrchestrationUtils(_0x2422dd);continue;}break;}}[a126_0x104078(0x1fb)](){const _0x2f15d0=a126_0x104078,_0x4f67f9={'hpqGM':function(_0x293300,_0x1d38c6){return _0x293300(_0x1d38c6);},'YTMli':function(_0x32064e,_0x157eeb){return _0x32064e(_0x157eeb);},'ZlBNZ':function(_0x4e889c,_0x49f562){return _0x4e889c(_0x49f562);},'yWWfb':function(_0x382d4c,_0x573bbc){return _0x382d4c&&_0x573bbc;}},_0x10a510=_0x4f67f9[_0x2f15d0(0x1fe)](isNotUndefined,this[_0x2f15d0(0x21e)])&&(_0x4f67f9[_0x2f15d0(0x1fe)](isUndefined,this['config']['testObservability'])||_0x4f67f9[_0x2f15d0(0x1fe)](isTrueString,this[_0x2f15d0(0x21e)]['testObservability'])),_0x379ce7=this[_0x2f15d0(0x233)]['testOrderingEnabled'](),_0x59fbf6=_0x4f67f9[_0x2f15d0(0x218)](isNotUndefined,this[_0x2f15d0(0x21e)])&&_0x4f67f9[_0x2f15d0(0x1f9)](isNotUndefined,this[_0x2f15d0(0x21e)][_0x2f15d0(0x1f2)]),_0x40083c=_0x4f67f9['YTMli'](isNotUndefined,this['config'])&&_0x4f67f9[_0x2f15d0(0x1fe)](isNotUndefined,this[_0x2f15d0(0x21e)][_0x2f15d0(0x20c)]);return _0x4f67f9[_0x2f15d0(0x216)](_0x10a510,_0x379ce7)&&_0x59fbf6&&_0x40083c;}['_initializeTestOrdering'](){const _0x44774e=a126_0x104078,_0x276ffc={};_0x276ffc[_0x44774e(0x1fc)]=_0x44774e(0x1f1),_0x276ffc[_0x44774e(0x204)]=_0x44774e(0x235);const _0xc441d1=_0x276ffc;this[_0x44774e(0x1fb)]()?(this[_0x44774e(0x243)]=new TestOrderingServerHandler(this[_0x44774e(0x21e)]),logger[_0x44774e(0x1df)](_0xc441d1[_0x44774e(0x1fc)])):(logger[_0x44774e(0x220)](_0xc441d1[_0x44774e(0x204)]),this['logTestOrderingChecks']());}[a126_0x104078(0x23f)](){const _0x3588fe=a126_0x104078,_0x26713c={'FDkqD':function(_0x373466,_0x393c71){return _0x373466(_0x393c71);},'TJKfO':function(_0x30a8ea,_0x2e2cc4){return _0x30a8ea(_0x2e2cc4);},'MBTLs':function(_0x5d8091,_0x27d1c8){return _0x5d8091(_0x27d1c8);},'yTNsb':_0x3588fe(0x239),'ByrTy':function(_0x190633,_0x1ad2fd){return _0x190633(_0x1ad2fd);},'FDpgj':function(_0x359691,_0x1ea381){return _0x359691(_0x1ea381);},'kPcCz':function(_0x50a52f,_0x3177bc){return _0x50a52f(_0x3177bc);},'DaSXo':_0x3588fe(0x236)};if(!this[_0x3588fe(0x208)]())return;(!_0x26713c['FDkqD'](isNotUndefined,this[_0x3588fe(0x21e)])||!_0x26713c['TJKfO'](isNotUndefined,this[_0x3588fe(0x21e)][_0x3588fe(0x20c)])||!_0x26713c[_0x3588fe(0x1e2)](isNotUndefined,this[_0x3588fe(0x21e)][_0x3588fe(0x1f2)]))&&logger['info'](_0x26713c['yTNsb']),_0x26713c['ByrTy'](isNotUndefined,this[_0x3588fe(0x21e)])&&_0x26713c[_0x3588fe(0x1da)](isNotUndefined,this[_0x3588fe(0x21e)]['testObservability'])&&!_0x26713c['kPcCz'](isTrueString,this[_0x3588fe(0x21e)][_0x3588fe(0x1e9)])&&logger[_0x3588fe(0x1df)](_0x26713c[_0x3588fe(0x1f5)]);}[a126_0x104078(0x208)](){const _0x2d3b54=a126_0x104078;return!this[_0x2d3b54(0x1fb)]()&&this['orchestrationUtils'][_0x2d3b54(0x212)]();}['isTestOrderingApplied'](){const _0x172aaa=a126_0x104078;return this[_0x172aaa(0x225)];}['setTestOrderingApplied'](_0x1aa18b){const _0x3b5f6e=a126_0x104078,_0x6e48e6={};_0x6e48e6[_0x3b5f6e(0x1f0)]=_0x3b5f6e(0x227);const _0x4f0801=_0x6e48e6;this[_0x3b5f6e(0x225)]=_0x1aa18b,this[_0x3b5f6e(0x219)](_0x4f0801[_0x3b5f6e(0x1f0)],_0x1aa18b);}[a126_0x104078(0x219)](_0x29e147,_0x479e4e){const _0x3d2060=a126_0x104078;this[_0x3d2060(0x1fa)][_0x29e147]=_0x479e4e;}[a126_0x104078(0x215)](){const _0x33ffcc=a126_0x104078;return this[_0x33ffcc(0x1fa)];}['updateBuildIdentifier'](){const _0x16224e=a126_0x104078,_0x575e01={'DAztE':function(_0x4365c3,_0x364ffe){return _0x4365c3(_0x364ffe);},'lIwiO':function(_0x1839c7,_0x487401){return _0x1839c7>_0x487401;}},_0x3ce42e=_0x575e01[_0x16224e(0x1ea)](parseInt,process[_0x16224e(0x21a)][_0x16224e(0x22d)]||'1'),_0x1ef8fd=process[_0x16224e(0x21a)][_0x16224e(0x224)];_0x1ef8fd&&_0x575e01['lIwiO'](_0x3ce42e,0x1)&&(logger[_0x16224e(0x220)](_0x16224e(0x22b)+_0x1ef8fd),this['config']['buildIdentifier']=_0x1ef8fd);}async['reorderTestFiles'](_0x10f1c7){const _0x146b64=a126_0x104078,_0x4a3ffd={'JDgWI':function(_0x2b3dcf,_0x180ac4){return _0x2b3dcf===_0x180ac4;},'XYJCr':_0x146b64(0x211),'hSugw':function(_0x102ad6,_0x1f4778){return _0x102ad6===_0x1f4778;},'YKlad':function(_0x22bd23,_0x5bdc27){return _0x22bd23(_0x5bdc27);},'AMINq':'uploadedTestFilesCount','KrJKL':_0x146b64(0x240),'MQUbf':'totalNodes','rDfgd':_0x146b64(0x1f7),'XpDqj':_0x146b64(0x23c)};try{if(!_0x10f1c7||!Array['isArray'](_0x10f1c7)||_0x4a3ffd[_0x146b64(0x242)](_0x10f1c7['length'],0x0))return null;if(_0x4a3ffd['JDgWI'](this[_0x146b64(0x1fb)](),![]))return logger[_0x146b64(0x220)](_0x4a3ffd['XYJCr']),null;let _0x16c78f=null;const _0x27a8a8=this[_0x146b64(0x233)][_0x146b64(0x217)]();if(this[_0x146b64(0x243)]){const _0x49eb28=await this[_0x146b64(0x243)][_0x146b64(0x210)](_0x10f1c7,_0x27a8a8);if(!_0x49eb28)return null;_0x16c78f=await this['testOrderingServerHandler'][_0x146b64(0x234)](_0x49eb28);}if(!_0x16c78f||!Array[_0x146b64(0x1db)](_0x16c78f)||_0x4a3ffd[_0x146b64(0x1ee)](_0x16c78f['length'],0x0))return null;const _0x72691b=_0x4a3ffd[_0x146b64(0x237)](parseInt,process[_0x146b64(0x21a)][_0x146b64(0x1f4)]||'0'),_0x3bfcb0=_0x4a3ffd[_0x146b64(0x237)](parseInt,process[_0x146b64(0x21a)][_0x146b64(0x22d)]||'1');return this['addToOrderingInstrumentationData'](_0x4a3ffd[_0x146b64(0x248)],_0x10f1c7[_0x146b64(0x231)]),this[_0x146b64(0x219)](_0x4a3ffd[_0x146b64(0x1ef)],_0x72691b),this[_0x146b64(0x219)](_0x4a3ffd[_0x146b64(0x1fd)],_0x3bfcb0),this['addToOrderingInstrumentationData'](_0x4a3ffd[_0x146b64(0x1f6)],_0x16c78f[_0x146b64(0x231)]),this['addToOrderingInstrumentationData'](_0x4a3ffd['XpDqj'],this['testOrderingServerHandler']?this[_0x146b64(0x243)][_0x146b64(0x206)]():0x0),_0x16c78f[_0x146b64(0x1f3)](_0x48a3dd=>sanitizedFilePath(_0x48a3dd));}catch(_0x3f9c00){return logger[_0x146b64(0x220)](_0x146b64(0x1e5)+(_0x3f9c00[_0x146b64(0x23a)]||_0x3f9c00['toString']())),null;}}async['findTestFiles'](_0x3774d3,_0xb163d3,_0x4db01d){const _0x1967ce=a126_0x104078,_0x2941a0={'nqdhi':function(_0xb1935e,_0x3107b3){return _0xb1935e(_0x3107b3);},'gSwed':'jest-config','SNdHJ':function(_0x158be1,_0x350d2b){return _0x158be1(_0x350d2b);},'sdvGp':_0x1967ce(0x203),'jpBov':function(_0x92b7ac,_0x6116c5){return _0x92b7ac(_0x6116c5);},'rjofT':_0x1967ce(0x24a),'LJDAW':_0x1967ce(0x20b),'SULjP':_0x1967ce(0x222),'rJoQD':_0x1967ce(0x247),'wJeIw':function(_0xaf27c8,_0x389ccd,_0x35c3b4,_0x42f57c){return _0xaf27c8(_0x389ccd,_0x35c3b4,_0x42f57c);},'cVvqL':_0x1967ce(0x21b),'aJCIJ':_0x1967ce(0x207),'gPVuJ':_0x1967ce(0x230),'VmqLE':'--listTests','swIrv':_0x1967ce(0x249),'iIgRZ':function(_0x16d16b,_0x71412d,_0x4e3ab7,_0x3e3bb8){return _0x16d16b(_0x71412d,_0x4e3ab7,_0x3e3bb8);}};try{const {getTestPathPatterns:_0x4ee63e}=_0x2941a0['nqdhi'](require,_0x2941a0[_0x1967ce(0x213)]),{globsToMatcher:_0x43ad4c}=_0x2941a0[_0x1967ce(0x24b)](require,_0x2941a0[_0x1967ce(0x21f)]),{findRelatedTests:_0x17830c}=_0x2941a0['jpBov'](require,_0x2941a0[_0x1967ce(0x20a)]),_0x45cf13=_0x2941a0[_0x1967ce(0x23e)](require,_0x2941a0['LJDAW']),_0x2564d3=_0x3774d3[_0x1967ce(0x246)]||[_0x2941a0['SULjP'],_0x2941a0[_0x1967ce(0x201)]],_0x20bffe=_0x3774d3[_0x1967ce(0x205)]||[],_0xcd33cc=_0x2941a0[_0x1967ce(0x20f)](spawnSync,_0x2941a0[_0x1967ce(0x21d)],[_0x2941a0['aJCIJ'],_0x2941a0[_0x1967ce(0x21c)],_0x4db01d,..._0xb163d3,_0x2941a0[_0x1967ce(0x22e)]],{'encoding':_0x2941a0[_0x1967ce(0x245)]});let _0x179f38=[];!_0xcd33cc[_0x1967ce(0x1dd)]&&(_0x179f38=_0xcd33cc[_0x1967ce(0x244)]['split']('\x0a')[_0x1967ce(0x23b)](Boolean));logger[_0x1967ce(0x220)](_0x1967ce(0x221)+JSON[_0x1967ce(0x209)](_0x179f38)+_0x1967ce(0x214));const _0x4a82e4={};_0x4a82e4[_0x1967ce(0x23d)]=!![],_0x4a82e4[_0x1967ce(0x232)]=_0x20bffe;const _0x5d236e=_0x2941a0['iIgRZ'](micromatch,_0x179f38,_0x2564d3,_0x4a82e4)['map'](_0x1bd28a=>path['relative'](_0x3774d3[_0x1967ce(0x1ed)],_0x1bd28a));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x1967ce(0x209)](_0x5d236e)+'\x20files'),_0x5d236e;}catch(_0x5cab0f){return logger[_0x1967ce(0x220)](_0x1967ce(0x1e3)+_0x5cab0f),[];}}}module[a126_0x104078(0x200)]=TestOrchestrationHandler;