browserstack-node-sdk 1.50.0 → 1.50.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 (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a129_0xb0e0(){const _0x318741=['EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Batch-Queue','resolve','buildName','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','pQfsU','\x20REQUEST\x20TO\x20','Authorization','ecJrC','WutOg','TdSoF','BS_TESTOPS_BUILD_HASHED_ID','HookRunStarted','wIFgH','ERROR_INVALID_CREDENTIALS','length','EsefV','xwqwC','X-BSTACK-TESTOPS','hdqOT','build_hashed_id','Test_End_Upload','trxEq','fedil','QnuQj','frameworkName','api/v1/builds',']\x20event\x20successful!','BS_TESTOPS_ALLOW_SCREENSHOTS','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','ICJnn','LogCreated','toString','zVmEE','Retry\x20runs\x20exceeded','info','debug','Processing\x20event\x20-\x20\x27','Log_Upload','ERROR_SDK_DEPRECATED','./requestQueueHandler','eventUrl','max','pkRqG','UzzDK','getInstance','username','6YebAqb','206790IOkThx','Hook_End_Upload','path','getAccessKey','jwt','util','browserstackAutomation','buildDescription','toISOString','uploadEventData','Bearer\x20','BS_TESTOPS_BUILD_COMPLETED','event_type','Poywe','password','../logger','nhofd','jlCwb','tFpEh','includes','format','AbxNW','\x20:\x20','BROWSERSTACK_TESTHUB_JWT','errorType','requestQueueHandler','TEST_REPORTING_ANALYTICS','PMhJK','BROWSERSTACK_TESTHUB_UUID','yHyiO','false','getLogTag','inspect','\x20:\x20missing\x20authentication\x20token','basename','../../helpers/testhub/utils','./constants','null','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','YLvsH','FzIXI','hook_run','winstonLogger','success','sendTraceZip','136dxvLSv','gSGxD','logs','Content-Type','error','IPYmj','allow_screenshots','data','Sending\x20trace\x20zip\x20for\x20test:\x20','env','app','56mrQrxe','nestedKeyValue','uuid','BRoQo','Data\x20upload\x20to\x20BrowserStack\x20','stringify','TestRunSkipped','JRyHB','sendEventData','hfAKM','iDGqz','vMorH','2999590sJcibs','projectName','PCLOe','6430750nACIMB','ucyzG','GXiEZ','./utils','POST','test_run','lXgXD','TestRunStarted','getUserName','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','CawmW','uNGkG','6039100MKajAP','application/json','657cgKjfo','yuToo','hFTYx','qcOQr','status','bmEXe','true','GMWpl','237jjcvvU','HookRunFinished','eFhLJ','RTENj','add','start','message','zyJPs','10702gOfFKh','Hook_Start_Upload','BS_TESTOPS_JWT','SmklE','LtrZT','pendingUploads','buildIdentifier','TRUUQ','CBT_Upload','response','BROWSERSTACK_BUILD_RUN_IDENTIFIER','../../bin/utils/constants','Build\x20creation\x20successful!','dPxRq','statusText','ouAnd','BROWSERSTACK_RERUN','4027968mOfihS','getCiInfo','QonqE','headers','EXCEPTION\x20IN\x20','\x20failed\x20due\x20to\x20','getAgentVersion','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','YVOKc','VIZQG'];a129_0xb0e0=function(){return _0x318741;};return a129_0xb0e0();}const a129_0x57e204=a129_0x5139;(function(_0x1dfbda,_0x3f2a43){const _0x2e7e4e=a129_0x5139,_0x9ebc4b=_0x1dfbda();while(!![]){try{const _0x65cf76=-parseInt(_0x2e7e4e(0x1e6))/0x1*(-parseInt(_0x2e7e4e(0x1ee))/0x2)+-parseInt(_0x2e7e4e(0x239))/0x3*(-parseInt(_0x2e7e4e(0x1c1))/0x4)+-parseInt(_0x2e7e4e(0x1dc))/0x5*(parseInt(_0x2e7e4e(0x238))/0x6)+parseInt(_0x2e7e4e(0x1ff))/0x7+-parseInt(_0x2e7e4e(0x1b6))/0x8*(parseInt(_0x2e7e4e(0x1de))/0x9)+-parseInt(_0x2e7e4e(0x1d0))/0xa+-parseInt(_0x2e7e4e(0x1cd))/0xb;if(_0x65cf76===_0x3f2a43)break;else _0x9ebc4b['push'](_0x9ebc4b['shift']());}catch(_0x2891ca){_0x9ebc4b['push'](_0x9ebc4b['shift']());}}}(a129_0xb0e0,0xa6f1d));const bsSetupHelper=require('../helper'),path=require(a129_0x57e204(0x23b)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x57e204(0x1d3)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x57e204(0x25d)),RequestQueueHandler=require(a129_0x57e204(0x231)),logger=require(a129_0x57e204(0x248))[a129_0x57e204(0x263)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x57e204(0x25c)),util=require(a129_0x57e204(0x23e)),constants=require(a129_0x57e204(0x1f9));function a129_0x5139(_0x22e388,_0x54f55d){const _0xb0e0eb=a129_0xb0e0();return a129_0x5139=function(_0x513968,_0x36f3a5){_0x513968=_0x513968-0x1b6;let _0x25e9eb=_0xb0e0eb[_0x513968];return _0x25e9eb;},a129_0x5139(_0x22e388,_0x54f55d);}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a129_0x57e204(0x236)]();static async['launch'](_0x3bb24f,_0x4e609c){const _0x281466=a129_0x57e204,_0x2f1a4d={'MUATK':function(_0xa86d98,_0x2a3476){return _0xa86d98||_0x2a3476;},'eFhLJ':function(_0x332a4b,_0x4fc0c2){return _0x332a4b||_0x4fc0c2;},'QnuQj':function(_0x5b5c03,_0x585bcd){return _0x5b5c03===_0x585bcd;},'UzzDK':function(_0x4c64d3,_0x5c3183){return _0x4c64d3(_0x5c3183);},'lXgXD':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','ucyzG':_0x281466(0x257),'HsbSG':'json','CawmW':function(_0x1aeb3e,_0x48f0f2){return _0x1aeb3e(_0x48f0f2);},'yHyiO':function(_0x193021,_0x117c39){return _0x193021(_0x117c39);},'AOJJE':function(_0x248a0f,_0x1c9547,_0x5cbbe1,_0x910427,_0x4620bf){return _0x248a0f(_0x1c9547,_0x5cbbe1,_0x910427,_0x4620bf);},'wIFgH':_0x281466(0x1d4),'jlCwb':_0x281466(0x223),'VdCdQ':function(_0x30e3d2,_0x1e477a){return _0x30e3d2(_0x1e477a);},'TRUUQ':_0x281466(0x1fa),'AbxNW':function(_0x1efa42){return _0x1efa42();},'yuToo':_0x281466(0x1e4),'DwSoO':'null','NFEAS':function(_0x1d82c7,_0x13bb7b){return _0x1d82c7(_0x13bb7b);},'qTaZv':_0x281466(0x217),'EsefV':'ERROR_ACCESS_DENIED','gSGxD':_0x281466(0x230)};logger[_0x281466(0x22c)](_0x281466(0x20d)+util[_0x281466(0x259)](_0x3bb24f));const _0x5287be=bsSetupHelper[_0x281466(0x1d8)](_0x3bb24f),_0x5d1dd8=bsSetupHelper[_0x281466(0x23c)](_0x3bb24f),_0xf06f92=_0x2f1a4d['MUATK'](_0x5287be,'')+':'+_0x2f1a4d[_0x281466(0x1e8)](_0x5d1dd8,'');if(_0x2f1a4d[_0x281466(0x221)](_0xf06f92,':'))return _0x2f1a4d['UzzDK'](debug,_0x2f1a4d[_0x281466(0x1d6)]),process[_0x281466(0x1bf)][_0x281466(0x244)]=_0x2f1a4d[_0x281466(0x1d1)],[null,null];let _0x50465e=![],_0x1219d0=![];if(_0x3bb24f['browserstackAutomation']&&_0x3bb24f[_0x281466(0x1c0)])_0x1219d0=!![];else _0x3bb24f[_0x281466(0x23f)]&&(_0x50465e=!![]);try{const _0x644734={'format':_0x2f1a4d['HsbSG'],'project_name':_0x3bb24f[_0x281466(0x1ce)]||'','name':_0x3bb24f[_0x281466(0x20c)]||path[_0x281466(0x25b)](path[_0x281466(0x20b)](process['cwd']())),'build_identifier':_0x3bb24f[_0x281466(0x1f4)],'description':_0x3bb24f[_0x281466(0x240)]||'','start_time':new Date()[_0x281466(0x241)](),'tags':_0x2f1a4d[_0x281466(0x1da)](getCustomTags,_0x3bb24f),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x281466(0x200)](),'build_run_identifier':process[_0x281466(0x1bf)][_0x281466(0x1f8)],'failed_tests_rerun':process[_0x281466(0x1bf)][_0x281466(0x1fe)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x4e609c[_0x281466(0x222)],'frameworkVersion':_0x4e609c['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x281466(0x205)]()},'product_map':_0x2f1a4d[_0x281466(0x256)](getProductMap,_0x3bb24f),'test_orchestration':_0x2f1a4d[_0x281466(0x256)](getTestOrchestrationBuildStartData,_0x3bb24f)},_0x1c2b8a={};_0x1c2b8a[_0x281466(0x237)]=_0x5287be,_0x1c2b8a[_0x281466(0x247)]=_0x5d1dd8;const _0x2c52b8={'auth':_0x1c2b8a,'headers':_0x2f1a4d[_0x281466(0x235)](getDefaultHeaders,![])},_0x2ac7ce=await _0x2f1a4d['AOJJE'](nodeRequest,_0x2f1a4d[_0x281466(0x216)],_0x2f1a4d[_0x281466(0x24a)],_0x644734,_0x2c52b8);_0x2f1a4d['VdCdQ'](debug,_0x2f1a4d[_0x281466(0x1f5)]);const _0x1904f8=_0x2ac7ce[_0x281466(0x1bd)];_0x1904f8['build_hashed_id']&&(process['env'][_0x281466(0x255)]=_0x1904f8[_0x281466(0x21d)]);if(_0x2f1a4d[_0x281466(0x24e)](isTestObservabilitySession)){process[_0x281466(0x1bf)][_0x281466(0x244)]=_0x2f1a4d[_0x281466(0x1df)];if(_0x1904f8[_0x281466(0x23d)]){process[_0x281466(0x1bf)][_0x281466(0x1f0)]=_0x1904f8[_0x281466(0x23d)];const _0x206ecd={};_0x206ecd['username']=_0x5287be,_0x206ecd[_0x281466(0x247)]=_0x5d1dd8,process[_0x281466(0x1bf)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x281466(0x1c6)](_0x206ecd);}_0x1904f8[_0x281466(0x21d)]&&(process[_0x281466(0x1bf)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x1904f8['build_hashed_id']),_0x1904f8['allow_screenshots']&&(process[_0x281466(0x1bf)][_0x281466(0x225)]=_0x1904f8[_0x281466(0x1bc)][_0x281466(0x229)]());}return[_0x2ac7ce[_0x281466(0x1bd)][_0x281466(0x23d)],_0x2ac7ce[_0x281466(0x1bd)]['build_hashed_id'],_0x2ac7ce['data'][_0x281466(0x1bc)]];}catch(_0x39a03c){process[_0x281466(0x1bf)]['BROWSERSTACK_TESTHUB_UUID']=_0x2f1a4d['DwSoO'],process[_0x281466(0x1bf)][_0x281466(0x244)]=_0x2f1a4d['ucyzG'],process[_0x281466(0x1bf)]['BS_TESTOPS_JWT']=_0x2f1a4d['DwSoO'],process['env'][_0x281466(0x214)]=_0x2f1a4d['DwSoO'],process[_0x281466(0x1bf)][_0x281466(0x225)]=_0x2f1a4d['DwSoO'];_0x39a03c['response']?_0x2f1a4d['NFEAS'](debug,_0x281466(0x209)+_0x39a03c[_0x281466(0x1f7)][_0x281466(0x1e2)]+'\x20'+_0x39a03c['response'][_0x281466(0x1fc)]+'\x20'+JSON[_0x281466(0x1c6)](_0x39a03c['response']['data'])):_0x2f1a4d[_0x281466(0x235)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x39a03c['message']||_0x39a03c));if(_0x39a03c&&_0x39a03c[_0x281466(0x1ec)]){const _0x547539=_0x39a03c[_0x281466(0x1ec)];switch(_0x39a03c[_0x281466(0x251)]){case _0x2f1a4d['qTaZv']:logger[_0x281466(0x1ba)](_0x547539);break;case _0x2f1a4d[_0x281466(0x219)]:logger[_0x281466(0x22c)](_0x547539);break;case _0x2f1a4d[_0x281466(0x1b7)]:logger[_0x281466(0x1ba)](_0x547539);break;default:logger['error'](_0x547539);}}else console[_0x281466(0x22c)](_0x281466(0x1c5)+constants[_0x281466(0x253)]+_0x281466(0x204)+_0x39a03c);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x68b7a0=a129_0x57e204,_0x3838ee={'qcOQr':'true','ouAnd':'false','IPYmj':function(_0x267176,_0x221297){return _0x267176(_0x221297);}},_0x5aab23=process[_0x68b7a0(0x1bf)][_0x68b7a0(0x244)];if([_0x3838ee[_0x68b7a0(0x1e1)],_0x3838ee[_0x68b7a0(0x1fd)]][_0x68b7a0(0x24c)](_0x5aab23))return;while([_0x3838ee[_0x68b7a0(0x1e1)],_0x3838ee[_0x68b7a0(0x1fd)]]['includes'](_0x5aab23)){await _0x3838ee[_0x68b7a0(0x1bb)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x57e204(0x258)](_0xe9a1a5){const _0x2e71aa=a129_0x57e204,_0x45237a={};_0x45237a[_0x2e71aa(0x260)]='Test_Start_Upload',_0x45237a[_0x2e71aa(0x24b)]=_0x2e71aa(0x21e),_0x45237a[_0x2e71aa(0x22a)]='Test_Skipped_Upload',_0x45237a['aVyqQ']=_0x2e71aa(0x22f),_0x45237a[_0x2e71aa(0x21f)]=_0x2e71aa(0x1ef),_0x45237a[_0x2e71aa(0x212)]=_0x2e71aa(0x23a),_0x45237a[_0x2e71aa(0x1e5)]=_0x2e71aa(0x1f6);const _0x25f16f=_0x45237a,_0x178381={};return _0x178381[_0x2e71aa(0x1d7)]=_0x25f16f[_0x2e71aa(0x260)],_0x178381['TestRunFinished']=_0x25f16f[_0x2e71aa(0x24b)],_0x178381[_0x2e71aa(0x1c7)]=_0x25f16f[_0x2e71aa(0x22a)],_0x178381[_0x2e71aa(0x228)]=_0x25f16f['aVyqQ'],_0x178381[_0x2e71aa(0x215)]=_0x25f16f[_0x2e71aa(0x21f)],_0x178381[_0x2e71aa(0x1e7)]=_0x25f16f[_0x2e71aa(0x212)],_0x178381['CBTSessionCreated']=_0x25f16f[_0x2e71aa(0x1e5)],_0x178381[_0xe9a1a5[_0x2e71aa(0x245)]];}static async['sendEventData'](_0x18cb07,_0x58e1c0=0x0,_0x1854fe=null){const _0x4527da=a129_0x57e204,_0x519810={'PCLOe':function(_0x1fa722,_0x58dcff){return _0x1fa722===_0x58dcff;},'LtrZT':_0x4527da(0x265),'SmklE':function(_0x59cfa5,_0x14b8a6){return _0x59cfa5!==_0x14b8a6;},'BvGlE':_0x4527da(0x1dd),'RTENj':_0x4527da(0x1e4),'PMhJK':function(_0x3dc3b3,_0x1d2373){return _0x3dc3b3===_0x1d2373;},'FpbCj':function(_0x83ed9e,_0x262eb3,_0xea85e8,_0x2b494f,_0x19154c){return _0x83ed9e(_0x262eb3,_0xea85e8,_0x2b494f,_0x19154c);},'TdSoF':_0x4527da(0x1d4),'zyJPs':function(_0x40c000,_0x4d89aa,_0x1ce3f8,_0x1f8421,_0x180de1){return _0x40c000(_0x4d89aa,_0x1ce3f8,_0x1f8421,_0x180de1);},'bmEXe':function(_0x4f3a3c,_0x1b01b8){return _0x4f3a3c(_0x1b01b8);},'BRoQo':function(_0x3b3e41,_0x5e3f10){return _0x3b3e41!==_0x5e3f10;},'iDGqz':_0x4527da(0x20a),'pkRqG':function(_0x18d2c4,_0x5e2857){return _0x18d2c4-_0x5e2857;},'uNGkG':'api/v1/event','ISKUQ':_0x4527da(0x264),'WnDLj':function(_0x506f88,_0x5577ab){return _0x506f88(_0x5577ab);},'hfAKM':function(_0x5a2138,_0x8415c2){return _0x5a2138-_0x8415c2;},'JRyHB':_0x4527da(0x1ba)};_0x519810[_0x4527da(0x1cf)](_0x1854fe,_0x519810[_0x4527da(0x1f2)])&&logger[_0x4527da(0x22d)](_0x4527da(0x1be)+_0x18cb07[_0x4527da(0x1b8)][0x0]['test_run_uuid']);const _0x55b25a=await this[_0x4527da(0x258)](_0x18cb07);let _0xb18b9c=_0x18cb07,_0x165a2a=EVENT_ENDPOINT;_0x519810[_0x4527da(0x1f1)](_0x1854fe,_0x519810[_0x4527da(0x1f2)])&&this['requestQueueHandler'][_0x4527da(0x1eb)]();const {shouldProceed:_0x1a816d,proceedWithData:_0x2a21ca,proceedWithUrl:_0xf89cc8}=this[_0x4527da(0x252)][_0x4527da(0x1ea)](_0x18cb07);if(!_0x1a816d)return;else _0x2a21ca&&(_0xb18b9c=_0x2a21ca,_0x165a2a=_0xf89cc8);const _0x2f1dbd={};_0x2f1dbd[_0x4527da(0x210)]=_0x4527da(0x243)+process[_0x4527da(0x1bf)][_0x4527da(0x250)],_0x2f1dbd[_0x4527da(0x1b9)]=_0x519810['BvGlE'],_0x2f1dbd[_0x4527da(0x21b)]=_0x519810[_0x4527da(0x1e9)];const _0xb8e4b7={};_0xb8e4b7[_0x4527da(0x202)]=_0x2f1dbd;const _0x2de79c=_0xb8e4b7;let _0x555b1f;try{_0x519810[_0x4527da(0x254)](_0x1854fe,_0x519810[_0x4527da(0x1f2)])?(logger['debug'](_0x4527da(0x226)+_0x18cb07?.['logs'][0x0]?.['test_run_uuid']),_0x555b1f=await _0x519810['FpbCj'](asyncAwaitNodeReq,_0x519810[_0x4527da(0x213)],_0x165a2a,_0xb18b9c,_0x2de79c),logger[_0x4527da(0x22d)](_0x4527da(0x1d9)+_0x18cb07?.[_0x4527da(0x1b8)][0x0]?.['test_run_uuid'])):_0x555b1f=await _0x519810[_0x4527da(0x1ed)](nodeRequest,_0x519810[_0x4527da(0x213)],_0x165a2a,_0xb18b9c,_0x2de79c);if(_0x555b1f[_0x4527da(0x1bd)][_0x4527da(0x1ba)]){const _0x1f44f7={};_0x1f44f7[_0x4527da(0x1ec)]=_0x555b1f['data'][_0x4527da(0x1ba)];throw _0x1f44f7;}else{_0x519810[_0x4527da(0x1e3)](debug,(_0x519810[_0x4527da(0x1c4)](_0x165a2a,this[_0x4527da(0x252)][_0x4527da(0x232)])?_0x55b25a:_0x519810[_0x4527da(0x1cb)])+'['+_0x58e1c0+_0x4527da(0x224)),this[_0x4527da(0x252)][_0x4527da(0x1f3)]=Math[_0x4527da(0x233)](0x0,_0x519810[_0x4527da(0x234)](this[_0x4527da(0x252)][_0x4527da(0x1f3)],_0x519810['PCLOe'](_0x165a2a,_0x519810[_0x4527da(0x1db)])?0x1:_0xb18b9c[_0x4527da(0x218)]));const _0x582e37={};return _0x582e37[_0x4527da(0x1e2)]=_0x519810['ISKUQ'],_0x582e37['message']='',_0x582e37;}}catch(_0x14becf){_0x14becf[_0x4527da(0x1f7)]?_0x519810[_0x4527da(0x1e3)](debug,_0x4527da(0x203)+(_0x519810[_0x4527da(0x1c4)](_0x165a2a,this[_0x4527da(0x252)][_0x4527da(0x232)])?_0x55b25a:_0x519810['iDGqz'])+_0x4527da(0x20f)+constants[_0x4527da(0x253)]+_0x4527da(0x24f)+_0x14becf[_0x4527da(0x1f7)][_0x4527da(0x1e2)]+'\x20'+_0x14becf[_0x4527da(0x1f7)]['statusText']+'\x20'+util['format'](_0x14becf['response'][_0x4527da(0x1bd)])):_0x519810['WnDLj'](debug,_0x4527da(0x203)+(_0x519810['SmklE'](_0x165a2a,this[_0x4527da(0x252)]['eventUrl'])?_0x55b25a:_0x519810[_0x4527da(0x1cb)])+_0x4527da(0x20f)+constants[_0x4527da(0x253)]+'\x20:\x20'+util[_0x4527da(0x24d)](_0x14becf));this[_0x4527da(0x252)][_0x4527da(0x1f3)]=Math['max'](0x0,_0x519810[_0x4527da(0x1ca)](this[_0x4527da(0x252)][_0x4527da(0x1f3)],_0x519810[_0x4527da(0x1cf)](_0x165a2a,_0x519810[_0x4527da(0x1db)])?0x1:_0xb18b9c['length']));const _0x4383c5={};return _0x4383c5[_0x4527da(0x1e2)]=_0x519810[_0x4527da(0x1c8)],_0x4383c5[_0x4527da(0x1ec)]=_0x14becf['message']||(_0x14becf[_0x4527da(0x1f7)]?_0x14becf[_0x4527da(0x1f7)][_0x4527da(0x1e2)]+':'+_0x14becf['response']['statusText']:_0x14becf),_0x4383c5;}}static async[a129_0x57e204(0x242)](_0x11917c,_0x3fae5f=0x0){const _0x5cbefa=a129_0x57e204,_0x586097={'fPVMR':function(_0xd6a3d,_0xf4706a){return _0xd6a3d+_0xf4706a;},'fedil':function(_0x911061,_0x49f81f){return _0x911061(_0x49f81f);},'rGfUE':_0x5cbefa(0x1d5),'xwqwC':_0x5cbefa(0x1c3),'uMiXY':_0x5cbefa(0x262),'ecJrC':function(_0x1a581c,_0x1f9db8,_0xdeedf2){return _0x1a581c(_0x1f9db8,_0xdeedf2);},'vMorH':_0x5cbefa(0x242),'nhofd':function(_0x126a08,_0xa71001){return _0x126a08===_0xa71001;},'QonqE':function(_0xa4742a,_0x5d68a9){return _0xa4742a!==_0x5d68a9;},'ICJnn':_0x5cbefa(0x25e),'GRFED':function(_0x1e0da3,_0x1b71cf){return _0x1e0da3===_0x1b71cf;},'hdqOT':_0x5cbefa(0x1e4),'Poywe':function(_0x4d0571){return _0x4d0571();},'RlCkf':function(_0x5d3737,_0x49eb75){return _0x5d3737-_0x49eb75;},'VIZQG':_0x5cbefa(0x1ba),'GXiEZ':_0x5cbefa(0x206),'dPxRq':function(_0x235bfb,_0x313a8a){return _0x235bfb>=_0x313a8a;},'pQfsU':function(_0x53eef6,_0x383bea){return _0x53eef6(_0x383bea);},'hFTYx':function(_0x95e27c,_0x31dd2e){return _0x95e27c-_0x31dd2e;},'FzIXI':_0x5cbefa(0x22b),'YVOKc':_0x5cbefa(0x257)},_0x19505b=this[_0x5cbefa(0x258)](_0x11917c);_0x586097[_0x5cbefa(0x220)](trace,_0x5cbefa(0x22e)+_0x11917c[_0x5cbefa(0x245)]+'\x27\x20'+(bsSetupHelper[_0x5cbefa(0x1c2)](_0x11917c,[_0x586097['rGfUE'],_0x586097[_0x5cbefa(0x21a)]])||bsSetupHelper['nestedKeyValue'](_0x11917c,[_0x586097['uMiXY'],_0x586097[_0x5cbefa(0x21a)]])));if(!_0x586097[_0x5cbefa(0x211)](shouldProcessEventForTesthub,_0x11917c[_0x5cbefa(0x245)],_0x586097[_0x5cbefa(0x1cc)]))return;_0x586097[_0x5cbefa(0x249)](_0x3fae5f,0x0)&&process['env'][_0x5cbefa(0x250)]&&_0x586097['QonqE'](process[_0x5cbefa(0x1bf)][_0x5cbefa(0x250)],_0x586097[_0x5cbefa(0x227)])&&(this[_0x5cbefa(0x252)][_0x5cbefa(0x1f3)]+=0x1);if(_0x586097['GRFED'](process[_0x5cbefa(0x1bf)]['BS_TESTOPS_BUILD_COMPLETED'],_0x586097[_0x5cbefa(0x21c)])||process[_0x5cbefa(0x1bf)]['BS_A11Y_JWT']||_0x586097[_0x5cbefa(0x246)](isPercyBuild)){if(_0x586097[_0x5cbefa(0x249)](process['env'][_0x5cbefa(0x250)],_0x586097[_0x5cbefa(0x227)])){_0x586097[_0x5cbefa(0x220)](debug,_0x5cbefa(0x203)+_0x19505b+_0x5cbefa(0x20f)+constants[_0x5cbefa(0x253)]+_0x5cbefa(0x25a)),this[_0x5cbefa(0x252)][_0x5cbefa(0x1f3)]=Math[_0x5cbefa(0x233)](0x0,_0x586097['RlCkf'](this[_0x5cbefa(0x252)]['pendingUploads'],0x1));const _0x43b3a5={};return _0x43b3a5[_0x5cbefa(0x1e2)]=_0x586097[_0x5cbefa(0x208)],_0x43b3a5[_0x5cbefa(0x1ec)]=_0x586097[_0x5cbefa(0x1d2)],_0x43b3a5;}return await this[_0x5cbefa(0x1c9)](_0x11917c,_0x3fae5f);}else{if(_0x586097[_0x5cbefa(0x1fb)](_0x3fae5f,0x5)){_0x586097[_0x5cbefa(0x20e)](debug,_0x5cbefa(0x203)+_0x19505b+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x5cbefa(0x25f)+_0x19505b+'\x20retry\x20runs\x20exceeded');_0x586097[_0x5cbefa(0x201)](process[_0x5cbefa(0x1bf)][_0x5cbefa(0x250)],_0x586097['ICJnn'])&&(this['requestQueueHandler']['pendingUploads']=Math[_0x5cbefa(0x233)](0x0,_0x586097[_0x5cbefa(0x1e0)](this[_0x5cbefa(0x252)][_0x5cbefa(0x1f3)],0x1)));const _0x504f68={};return _0x504f68[_0x5cbefa(0x1e2)]=_0x586097[_0x5cbefa(0x208)],_0x504f68[_0x5cbefa(0x1ec)]=_0x586097[_0x5cbefa(0x261)],_0x504f68;}else _0x586097[_0x5cbefa(0x201)](process[_0x5cbefa(0x1bf)][_0x5cbefa(0x244)],_0x586097[_0x5cbefa(0x207)])&&_0x586097[_0x5cbefa(0x211)](setTimeout,()=>{this['uploadEventData'](_0x11917c,_0x586097['fPVMR'](_0x3fae5f,0x1));},0x3e8);}}}module['exports']=SessionHandler;
1
+ function a129_0x40a8(_0x56225a,_0x31a147){const _0x2141f5=a129_0x2141();return a129_0x40a8=function(_0x40a8a0,_0x233fa2){_0x40a8a0=_0x40a8a0-0x19a;let _0x54c412=_0x2141f5[_0x40a8a0];return _0x54c412;},a129_0x40a8(_0x56225a,_0x31a147);}const a129_0x22377b=a129_0x40a8;(function(_0x1373bd,_0x11a803){const _0x57f595=a129_0x40a8,_0x4f466a=_0x1373bd();while(!![]){try{const _0x281214=-parseInt(_0x57f595(0x1b3))/0x1+parseInt(_0x57f595(0x207))/0x2*(parseInt(_0x57f595(0x24a))/0x3)+parseInt(_0x57f595(0x1bc))/0x4+parseInt(_0x57f595(0x1b1))/0x5*(parseInt(_0x57f595(0x23e))/0x6)+parseInt(_0x57f595(0x1e9))/0x7*(parseInt(_0x57f595(0x221))/0x8)+parseInt(_0x57f595(0x1a9))/0x9+-parseInt(_0x57f595(0x1ea))/0xa*(parseInt(_0x57f595(0x240))/0xb);if(_0x281214===_0x11a803)break;else _0x4f466a['push'](_0x4f466a['shift']());}catch(_0x3cccdf){_0x4f466a['push'](_0x4f466a['shift']());}}}(a129_0x2141,0x7468f));const bsSetupHelper=require(a129_0x22377b(0x233)),path=require(a129_0x22377b(0x209)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x22377b(0x215)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a129_0x22377b(0x225))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x22377b(0x1de)),util=require(a129_0x22377b(0x1ae)),constants=require(a129_0x22377b(0x1f5));class SessionHandler{static [a129_0x22377b(0x1c6)]=RequestQueueHandler['getInstance']();static async[a129_0x22377b(0x1db)](_0x1a97ad,_0x246aaa){const _0x13981c=a129_0x22377b,_0x13f70f={'tvGqK':function(_0x1b53fe,_0x4b28fe){return _0x1b53fe||_0x4b28fe;},'FAJWf':function(_0x3d7c8d,_0x1fc30b){return _0x3d7c8d||_0x1fc30b;},'yWJDd':function(_0x476709,_0x307523){return _0x476709===_0x307523;},'yxuVo':function(_0x37235d,_0x3b3bf4){return _0x37235d(_0x3b3bf4);},'XchUH':_0x13981c(0x1ac),'jxeHl':_0x13981c(0x1a0),'zimgH':_0x13981c(0x203),'QcMwr':function(_0x3fbaf6,_0x12dabb){return _0x3fbaf6(_0x12dabb);},'ccsXm':function(_0x8bbb8b,_0x5bc0ec){return _0x8bbb8b(_0x5bc0ec);},'DPtGY':function(_0x128c4e,_0x14315f){return _0x128c4e(_0x14315f);},'anjKt':function(_0xfea593,_0x1b2b68){return _0xfea593(_0x1b2b68);},'qwExq':function(_0x30056a,_0x51e261,_0x5247ea,_0x157955,_0x1b01cf){return _0x30056a(_0x51e261,_0x5247ea,_0x157955,_0x1b01cf);},'JouKP':_0x13981c(0x248),'RXGlj':_0x13981c(0x249),'cQzCe':function(_0xe86741,_0x4ddfc3){return _0xe86741(_0x4ddfc3);},'wCzrT':'Build\x20creation\x20successful!','lVAmd':function(_0x389e9e){return _0x389e9e();},'JQdXK':_0x13981c(0x19b),'WPoog':'null','SYJiu':_0x13981c(0x1ce),'MMCip':'ERROR_ACCESS_DENIED','zfSZd':_0x13981c(0x1dd)};logger[_0x13981c(0x22e)](_0x13981c(0x22f)+util[_0x13981c(0x1fa)](_0x1a97ad));const _0x3dee02=bsSetupHelper['getUserName'](_0x1a97ad),_0x3ad43a=bsSetupHelper[_0x13981c(0x1fc)](_0x1a97ad),_0x481276=_0x13f70f['tvGqK'](_0x3dee02,'')+':'+_0x13f70f[_0x13981c(0x246)](_0x3ad43a,'');if(_0x13f70f['yWJDd'](_0x481276,':'))return _0x13f70f[_0x13981c(0x1dc)](debug,_0x13f70f[_0x13981c(0x1f2)]),process['env'][_0x13981c(0x1d7)]=_0x13f70f[_0x13981c(0x200)],[null,null];let _0x5f1e06=![],_0x55494c=![];if(_0x1a97ad[_0x13981c(0x1d1)]&&_0x1a97ad['app'])_0x55494c=!![];else _0x1a97ad['browserstackAutomation']&&(_0x5f1e06=!![]);try{const _0x42a644={'format':_0x13f70f[_0x13981c(0x20d)],'project_name':_0x1a97ad[_0x13981c(0x19a)]||'','name':_0x1a97ad['buildName']||path[_0x13981c(0x219)](path['resolve'](process[_0x13981c(0x1bd)]())),'build_identifier':_0x1a97ad[_0x13981c(0x1bb)],'description':_0x1a97ad[_0x13981c(0x239)]||'','start_time':new Date()[_0x13981c(0x23b)](),'tags':_0x13f70f[_0x13981c(0x1a5)](getCustomTags,_0x1a97ad),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x13981c(0x1a1)](),'build_run_identifier':process['env'][_0x13981c(0x1ef)],'failed_tests_rerun':process[_0x13981c(0x1b7)][_0x13981c(0x211)]||![],'version_control':await bsSetupHelper[_0x13981c(0x243)](),'observability_version':{'frameworkName':_0x246aaa[_0x13981c(0x19f)],'frameworkVersion':_0x246aaa[_0x13981c(0x1d0)],'sdkVersion':bsSetupHelper[_0x13981c(0x212)]()},'product_map':_0x13f70f[_0x13981c(0x1f0)](getProductMap,_0x1a97ad),'test_orchestration':_0x13f70f[_0x13981c(0x1a7)](getTestOrchestrationBuildStartData,_0x1a97ad)},_0x4d11d5={};_0x4d11d5[_0x13981c(0x1e8)]=_0x3dee02,_0x4d11d5[_0x13981c(0x23d)]=_0x3ad43a;const _0x1f92ea={'auth':_0x4d11d5,'headers':_0x13f70f['anjKt'](getDefaultHeaders,![])},_0x1fef72=await _0x13f70f[_0x13981c(0x247)](nodeRequest,_0x13f70f[_0x13981c(0x1a2)],_0x13f70f['RXGlj'],_0x42a644,_0x1f92ea);_0x13f70f['cQzCe'](debug,_0x13f70f[_0x13981c(0x245)]);const _0x5d1aea=_0x1fef72[_0x13981c(0x241)];_0x5d1aea[_0x13981c(0x214)]&&(process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x5d1aea['build_hashed_id']);if(_0x13f70f[_0x13981c(0x1cd)](isTestObservabilitySession)){process[_0x13981c(0x1b7)][_0x13981c(0x1d7)]=_0x13f70f['JQdXK'];if(_0x5d1aea['jwt']){process[_0x13981c(0x1b7)][_0x13981c(0x1b0)]=_0x5d1aea[_0x13981c(0x232)];const _0x3c3020={};_0x3c3020['username']=_0x3dee02,_0x3c3020['password']=_0x3ad43a,process[_0x13981c(0x1b7)][_0x13981c(0x227)]=JSON[_0x13981c(0x205)](_0x3c3020);}_0x5d1aea['build_hashed_id']&&(process['env'][_0x13981c(0x242)]=_0x5d1aea[_0x13981c(0x214)]),_0x5d1aea[_0x13981c(0x1b2)]&&(process[_0x13981c(0x1b7)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x5d1aea[_0x13981c(0x1b2)]['toString']());}return[_0x1fef72['data'][_0x13981c(0x232)],_0x1fef72['data'][_0x13981c(0x214)],_0x1fef72[_0x13981c(0x241)]['allow_screenshots']];}catch(_0x5311e6){process[_0x13981c(0x1b7)][_0x13981c(0x201)]=_0x13f70f['WPoog'],process['env'][_0x13981c(0x1d7)]=_0x13f70f[_0x13981c(0x200)],process[_0x13981c(0x1b7)][_0x13981c(0x1b0)]=_0x13f70f[_0x13981c(0x1c8)],process[_0x13981c(0x1b7)][_0x13981c(0x242)]=_0x13f70f['WPoog'],process[_0x13981c(0x1b7)][_0x13981c(0x1d9)]=_0x13f70f[_0x13981c(0x1c8)];_0x5311e6[_0x13981c(0x1c5)]?_0x13f70f[_0x13981c(0x1ee)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x5311e6[_0x13981c(0x1c5)][_0x13981c(0x20a)]+'\x20'+_0x5311e6[_0x13981c(0x1c5)][_0x13981c(0x21f)]+'\x20'+JSON[_0x13981c(0x205)](_0x5311e6[_0x13981c(0x1c5)][_0x13981c(0x241)])):_0x13f70f[_0x13981c(0x1d2)](debug,_0x13981c(0x218)+(_0x5311e6[_0x13981c(0x1a8)]||_0x5311e6));if(_0x5311e6&&_0x5311e6[_0x13981c(0x1a8)]){const _0x112dca=_0x5311e6[_0x13981c(0x1a8)];switch(_0x5311e6['errorType']){case _0x13f70f[_0x13981c(0x1a6)]:logger['error'](_0x112dca);break;case _0x13f70f[_0x13981c(0x20e)]:logger[_0x13981c(0x22e)](_0x112dca);break;case _0x13f70f['zfSZd']:logger[_0x13981c(0x220)](_0x112dca);break;default:logger[_0x13981c(0x220)](_0x112dca);}}else console['info'](_0x13981c(0x19e)+constants['TEST_REPORTING_ANALYTICS']+_0x13981c(0x20b)+_0x5311e6);return[null,null,null];}}static async[a129_0x22377b(0x1f1)](){const _0x30006a=a129_0x22377b,_0x472b36={'TOSgO':_0x30006a(0x19b),'zUAAk':'false','jtzsc':function(_0xec42d,_0x5347b2){return _0xec42d(_0x5347b2);}},_0x472b27=process['env'][_0x30006a(0x1d7)];if([_0x472b36[_0x30006a(0x204)],_0x472b36[_0x30006a(0x1a4)]][_0x30006a(0x1e0)](_0x472b27))return;while([_0x472b36[_0x30006a(0x204)],_0x472b36[_0x30006a(0x1a4)]][_0x30006a(0x1e0)](_0x472b27)){await _0x472b36[_0x30006a(0x1c0)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x22377b(0x1bf)](_0x12633b){const _0x1cb747=a129_0x22377b,_0x488538={};_0x488538[_0x1cb747(0x1c9)]=_0x1cb747(0x236),_0x488538[_0x1cb747(0x1f6)]=_0x1cb747(0x1ed),_0x488538[_0x1cb747(0x1b8)]='Test_Skipped_Upload',_0x488538[_0x1cb747(0x23c)]='Log_Upload',_0x488538['anROc']='Hook_Start_Upload',_0x488538[_0x1cb747(0x22a)]=_0x1cb747(0x19d),_0x488538['UwGFG']=_0x1cb747(0x1cf);const _0x36908a=_0x488538,_0x23a429={};return _0x23a429[_0x1cb747(0x1c2)]=_0x36908a[_0x1cb747(0x1c9)],_0x23a429[_0x1cb747(0x1b9)]=_0x36908a['noFCV'],_0x23a429[_0x1cb747(0x23a)]=_0x36908a[_0x1cb747(0x1b8)],_0x23a429[_0x1cb747(0x1d6)]=_0x36908a[_0x1cb747(0x23c)],_0x23a429[_0x1cb747(0x1e3)]=_0x36908a[_0x1cb747(0x217)],_0x23a429[_0x1cb747(0x237)]=_0x36908a[_0x1cb747(0x22a)],_0x23a429[_0x1cb747(0x1e6)]=_0x36908a['UwGFG'],_0x23a429[_0x12633b[_0x1cb747(0x1cb)]];}static async['sendEventData'](_0x37fb96,_0x72b93c=0x0,_0x4fdab9=null){const _0x1471c=a129_0x22377b,_0x24950d={'tIltx':function(_0x5d546c,_0x294996){return _0x5d546c===_0x294996;},'vyOFc':_0x1471c(0x235),'Gmpti':function(_0x1de5ab,_0x5f234a){return _0x1de5ab!==_0x5f234a;},'pkTUv':_0x1471c(0x229),'UoeJx':'true','fYtwd':function(_0x473b5f,_0x22c5b1){return _0x473b5f===_0x22c5b1;},'hLctx':function(_0x54a4cb,_0x32474b,_0x35e739,_0x239164,_0x45c984){return _0x54a4cb(_0x32474b,_0x35e739,_0x239164,_0x45c984);},'xWtNz':_0x1471c(0x248),'ZvUtz':function(_0x3c22d5,_0x26969b,_0x551c9a,_0x187918,_0x1ca481){return _0x3c22d5(_0x26969b,_0x551c9a,_0x187918,_0x1ca481);},'DeHad':function(_0x32361a,_0xccd26b){return _0x32361a(_0xccd26b);},'tKUvT':function(_0x255dd8,_0x468e91){return _0x255dd8!==_0x468e91;},'uwogh':_0x1471c(0x213),'yzpyY':function(_0x879a73,_0x459205){return _0x879a73-_0x459205;},'ivasV':'api/v1/event','nrzXL':_0x1471c(0x1c1),'OBOtH':function(_0x2cbda9,_0x290f90){return _0x2cbda9(_0x290f90);},'lZUUD':function(_0x30a994,_0x43c456){return _0x30a994(_0x43c456);},'fRTCJ':function(_0x272264,_0x33a7cb){return _0x272264!==_0x33a7cb;},'DKQGJ':_0x1471c(0x220)};_0x24950d[_0x1471c(0x223)](_0x4fdab9,_0x24950d[_0x1471c(0x1d8)])&&logger[_0x1471c(0x216)](_0x1471c(0x210)+_0x37fb96[_0x1471c(0x1fd)][0x0][_0x1471c(0x1c3)]);const _0x21d3cf=await this[_0x1471c(0x1bf)](_0x37fb96);let _0x49c2a9=_0x37fb96,_0x502e83=EVENT_ENDPOINT;_0x24950d['Gmpti'](_0x4fdab9,_0x24950d['vyOFc'])&&this[_0x1471c(0x1c6)][_0x1471c(0x208)]();const {shouldProceed:_0x4662af,proceedWithData:_0x151279,proceedWithUrl:_0x703892}=this[_0x1471c(0x1c6)][_0x1471c(0x1d5)](_0x37fb96);if(!_0x4662af)return;else _0x151279&&(_0x49c2a9=_0x151279,_0x502e83=_0x703892);const _0x32b309={};_0x32b309[_0x1471c(0x23f)]='Bearer\x20'+process[_0x1471c(0x1b7)][_0x1471c(0x202)],_0x32b309[_0x1471c(0x21a)]=_0x24950d['pkTUv'],_0x32b309[_0x1471c(0x244)]=_0x24950d['UoeJx'];const _0x407a87={};_0x407a87[_0x1471c(0x21c)]=_0x32b309;const _0x2d585e=_0x407a87;let _0x2d6c89;try{_0x24950d[_0x1471c(0x21d)](_0x4fdab9,_0x24950d[_0x1471c(0x1d8)])?(logger[_0x1471c(0x216)](_0x1471c(0x22c)+_0x37fb96?.[_0x1471c(0x1fd)][0x0]?.[_0x1471c(0x1c3)]),_0x2d6c89=await _0x24950d[_0x1471c(0x1e2)](asyncAwaitNodeReq,_0x24950d[_0x1471c(0x1e1)],_0x502e83,_0x49c2a9,_0x2d585e),logger[_0x1471c(0x216)](_0x1471c(0x1c4)+_0x37fb96?.[_0x1471c(0x1fd)][0x0]?.[_0x1471c(0x1c3)])):_0x2d6c89=await _0x24950d[_0x1471c(0x1fe)](nodeRequest,_0x24950d[_0x1471c(0x1e1)],_0x502e83,_0x49c2a9,_0x2d585e);if(_0x2d6c89[_0x1471c(0x241)][_0x1471c(0x220)]){const _0x5d4ad0={};_0x5d4ad0['message']=_0x2d6c89['data'][_0x1471c(0x220)];throw _0x5d4ad0;}else{_0x24950d[_0x1471c(0x1e5)](debug,(_0x24950d[_0x1471c(0x234)](_0x502e83,this[_0x1471c(0x1c6)]['eventUrl'])?_0x21d3cf:_0x24950d['uwogh'])+'['+_0x72b93c+_0x1471c(0x1fb)),this['requestQueueHandler'][_0x1471c(0x206)]=Math['max'](0x0,_0x24950d['yzpyY'](this[_0x1471c(0x1c6)][_0x1471c(0x206)],_0x24950d[_0x1471c(0x21d)](_0x502e83,_0x24950d[_0x1471c(0x228)])?0x1:_0x49c2a9[_0x1471c(0x1c7)]));const _0x10dd1={};return _0x10dd1['status']=_0x24950d[_0x1471c(0x21e)],_0x10dd1[_0x1471c(0x1a8)]='',_0x10dd1;}}catch(_0x40c27c){_0x40c27c[_0x1471c(0x1c5)]?_0x24950d[_0x1471c(0x1ad)](debug,_0x1471c(0x1aa)+(_0x24950d[_0x1471c(0x234)](_0x502e83,this['requestQueueHandler'][_0x1471c(0x1ab)])?_0x21d3cf:_0x24950d[_0x1471c(0x1f8)])+_0x1471c(0x1df)+constants[_0x1471c(0x1f9)]+_0x1471c(0x1f7)+_0x40c27c[_0x1471c(0x1c5)][_0x1471c(0x20a)]+'\x20'+_0x40c27c[_0x1471c(0x1c5)][_0x1471c(0x21f)]+'\x20'+util[_0x1471c(0x231)](_0x40c27c[_0x1471c(0x1c5)][_0x1471c(0x241)])):_0x24950d[_0x1471c(0x20c)](debug,_0x1471c(0x1aa)+(_0x24950d[_0x1471c(0x1e7)](_0x502e83,this[_0x1471c(0x1c6)][_0x1471c(0x1ab)])?_0x21d3cf:_0x24950d[_0x1471c(0x1f8)])+'\x20REQUEST\x20TO\x20'+constants[_0x1471c(0x1f9)]+_0x1471c(0x1f7)+util[_0x1471c(0x231)](_0x40c27c));this[_0x1471c(0x1c6)][_0x1471c(0x206)]=Math[_0x1471c(0x21b)](0x0,_0x24950d[_0x1471c(0x19c)](this[_0x1471c(0x1c6)]['pendingUploads'],_0x24950d[_0x1471c(0x21d)](_0x502e83,_0x24950d[_0x1471c(0x228)])?0x1:_0x49c2a9[_0x1471c(0x1c7)]));const _0x4f4f18={};return _0x4f4f18['status']=_0x24950d['DKQGJ'],_0x4f4f18[_0x1471c(0x1a8)]=_0x40c27c[_0x1471c(0x1a8)]||(_0x40c27c['response']?_0x40c27c[_0x1471c(0x1c5)][_0x1471c(0x20a)]+':'+_0x40c27c[_0x1471c(0x1c5)][_0x1471c(0x21f)]:_0x40c27c),_0x4f4f18;}}static async[a129_0x22377b(0x1ca)](_0x21b332,_0x1b92af=0x0){const _0x3aa872=a129_0x22377b,_0x40b9a6={'gkHNk':function(_0x4c8f30,_0x37b85a){return _0x4c8f30+_0x37b85a;},'LufGL':function(_0x4249b8,_0x4cb9b2){return _0x4249b8(_0x4cb9b2);},'YOpsP':_0x3aa872(0x1f3),'HtNvH':_0x3aa872(0x1b5),'iOAoj':_0x3aa872(0x1a3),'SXBdx':function(_0x1e1289,_0x59fc7c,_0x490c71){return _0x1e1289(_0x59fc7c,_0x490c71);},'zuWuI':'uploadEventData','MSVag':function(_0x283cc4,_0x5450d8){return _0x283cc4===_0x5450d8;},'jaxSh':function(_0x15a859,_0x1e799e){return _0x15a859!==_0x1e799e;},'aUolL':_0x3aa872(0x1da),'hvHce':function(_0x46e40c,_0x509d44){return _0x46e40c===_0x509d44;},'HqeSt':_0x3aa872(0x19b),'Czlco':function(_0x28be1f){return _0x28be1f();},'sQTKS':function(_0x197ffc,_0x43e571){return _0x197ffc-_0x43e571;},'gZoxi':_0x3aa872(0x220),'VdETS':_0x3aa872(0x1cc),'PMbLA':function(_0x163cff,_0xb30e3b){return _0x163cff>=_0xb30e3b;},'XjDTL':function(_0x42df2b,_0x49c931){return _0x42df2b!==_0x49c931;},'Atjdk':function(_0x3d13ca,_0x267900){return _0x3d13ca-_0x267900;},'HtNIw':_0x3aa872(0x1af),'ixSNU':function(_0x3a6f8d,_0x5010b9){return _0x3a6f8d!==_0x5010b9;},'DEcfc':_0x3aa872(0x1a0)},_0xe33a73=this[_0x3aa872(0x1bf)](_0x21b332);_0x40b9a6[_0x3aa872(0x1be)](trace,_0x3aa872(0x1f4)+_0x21b332[_0x3aa872(0x1cb)]+'\x27\x20'+(bsSetupHelper[_0x3aa872(0x1b4)](_0x21b332,[_0x40b9a6[_0x3aa872(0x224)],_0x40b9a6[_0x3aa872(0x222)]])||bsSetupHelper[_0x3aa872(0x1b4)](_0x21b332,[_0x40b9a6[_0x3aa872(0x22b)],_0x40b9a6['HtNvH']])));if(!_0x40b9a6[_0x3aa872(0x22d)](shouldProcessEventForTesthub,_0x21b332[_0x3aa872(0x1cb)],_0x40b9a6['zuWuI']))return;_0x40b9a6['MSVag'](_0x1b92af,0x0)&&process[_0x3aa872(0x1b7)]['BROWSERSTACK_TESTHUB_JWT']&&_0x40b9a6['jaxSh'](process[_0x3aa872(0x1b7)][_0x3aa872(0x202)],_0x40b9a6[_0x3aa872(0x226)])&&(this[_0x3aa872(0x1c6)][_0x3aa872(0x206)]+=0x1);if(_0x40b9a6['hvHce'](process[_0x3aa872(0x1b7)][_0x3aa872(0x1d7)],_0x40b9a6[_0x3aa872(0x230)])||process['env'][_0x3aa872(0x1d4)]||_0x40b9a6['Czlco'](isPercyBuild)){if(_0x40b9a6['hvHce'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x40b9a6['aUolL'])){_0x40b9a6[_0x3aa872(0x1be)](debug,'EXCEPTION\x20IN\x20'+_0xe33a73+'\x20REQUEST\x20TO\x20'+constants[_0x3aa872(0x1f9)]+_0x3aa872(0x1e4)),this[_0x3aa872(0x1c6)][_0x3aa872(0x206)]=Math[_0x3aa872(0x21b)](0x0,_0x40b9a6['sQTKS'](this['requestQueueHandler']['pendingUploads'],0x1));const _0x5a17bf={};return _0x5a17bf[_0x3aa872(0x20a)]=_0x40b9a6[_0x3aa872(0x20f)],_0x5a17bf[_0x3aa872(0x1a8)]=_0x40b9a6[_0x3aa872(0x1d3)],_0x5a17bf;}return await this[_0x3aa872(0x1eb)](_0x21b332,_0x1b92af);}else{if(_0x40b9a6[_0x3aa872(0x1b6)](_0x1b92af,0x5)){_0x40b9a6[_0x3aa872(0x1be)](debug,_0x3aa872(0x1aa)+_0xe33a73+_0x3aa872(0x1df)+constants[_0x3aa872(0x1f9)]+_0x3aa872(0x238)+_0xe33a73+'\x20retry\x20runs\x20exceeded');_0x40b9a6['XjDTL'](process[_0x3aa872(0x1b7)][_0x3aa872(0x202)],_0x40b9a6[_0x3aa872(0x226)])&&(this[_0x3aa872(0x1c6)][_0x3aa872(0x206)]=Math['max'](0x0,_0x40b9a6['Atjdk'](this['requestQueueHandler'][_0x3aa872(0x206)],0x1)));const _0x103037={};return _0x103037[_0x3aa872(0x20a)]=_0x40b9a6[_0x3aa872(0x20f)],_0x103037[_0x3aa872(0x1a8)]=_0x40b9a6['HtNIw'],_0x103037;}else _0x40b9a6[_0x3aa872(0x1ff)](process['env'][_0x3aa872(0x1d7)],_0x40b9a6[_0x3aa872(0x1ba)])&&_0x40b9a6['SXBdx'](setTimeout,()=>{const _0x312c7f=_0x3aa872;this[_0x312c7f(0x1ca)](_0x21b332,_0x40b9a6[_0x312c7f(0x1ec)](_0x1b92af,0x1));},0x3e8);}}}function a129_0x2141(){const _0x3f3eb6=['SXBdx','info','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','HqeSt','format','jwt','../helper','tKUvT','sendTraceZip','Test_Start_Upload','HookRunFinished','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','buildDescription','TestRunSkipped','toISOString','ctyrq','password','6AOtMZq','Authorization','22NGNCUO','data','BS_TESTOPS_BUILD_HASHED_ID','getGitMetaData','X-BSTACK-TESTOPS','wCzrT','FAJWf','qwExq','POST','api/v1/builds','29361jDefRT','projectName','true','yzpyY','Hook_End_Upload','Data\x20upload\x20to\x20BrowserStack\x20','frameworkName','false','getCiInfo','JouKP','hook_run','zUAAk','QcMwr','SYJiu','DPtGY','message','4779873RNeNCZ','EXCEPTION\x20IN\x20','eventUrl','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','OBOtH','util','Retry\x20runs\x20exceeded','BS_TESTOPS_JWT','2818385KQfFSH','allow_screenshots','78336GGAKQv','nestedKeyValue','uuid','PMbLA','env','HjAvu','TestRunFinished','DEcfc','buildIdentifier','1106680hoplFd','cwd','LufGL','getLogTag','jtzsc','success','TestRunStarted','test_run_uuid','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','response','requestQueueHandler','length','WPoog','lYXKt','uploadEventData','event_type','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','lVAmd','ERROR_INVALID_CREDENTIALS','CBT_Upload','frameworkVersion','browserstackAutomation','anjKt','VdETS','BS_A11Y_JWT','add','LogCreated','BS_TESTOPS_BUILD_COMPLETED','vyOFc','BS_TESTOPS_ALLOW_SCREENSHOTS','null','launch','yxuVo','ERROR_SDK_DEPRECATED','../../helpers/testhub/utils','\x20REQUEST\x20TO\x20','includes','xWtNz','hLctx','HookRunStarted','\x20:\x20missing\x20authentication\x20token','DeHad','CBTSessionCreated','fRTCJ','username','7nnqVgW','9955420JFbKIC','sendEventData','gkHNk','Test_End_Upload','cQzCe','BROWSERSTACK_BUILD_RUN_IDENTIFIER','ccsXm','waitForBuildStatus','XchUH','test_run','Processing\x20event\x20-\x20\x27','../../bin/utils/constants','noFCV','\x20:\x20','uwogh','TEST_REPORTING_ANALYTICS','inspect',']\x20event\x20successful!','getAccessKey','logs','ZvUtz','ixSNU','jxeHl','BROWSERSTACK_TESTHUB_UUID','BROWSERSTACK_TESTHUB_JWT','json','TOSgO','stringify','pendingUploads','128qKLGmO','start','path','status','\x20failed\x20due\x20to\x20','lZUUD','zimgH','MMCip','gZoxi','Sending\x20trace\x20zip\x20for\x20test:\x20','BROWSERSTACK_RERUN','getAgentVersion','Batch-Queue','build_hashed_id','./utils','debug','anROc','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','basename','Content-Type','max','headers','fYtwd','nrzXL','statusText','error','4387384CFvGbL','HtNvH','tIltx','YOpsP','../logger','aUolL','CREDENTIALS_FOR_CRASH_REPORTING','ivasV','application/json','LNFxu','iOAoj','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'];a129_0x2141=function(){return _0x3f3eb6;};return a129_0x2141();}module['exports']=SessionHandler;
@@ -1 +1 @@
1
- const a130_0x496190=a130_0x5400;function a130_0x5400(_0xfb47f3,_0x28b1e9){const _0x31550a=a130_0x3155();return a130_0x5400=function(_0x54000e,_0x42fc9b){_0x54000e=_0x54000e-0x1de;let _0x153286=_0x31550a[_0x54000e];return _0x153286;},a130_0x5400(_0xfb47f3,_0x28b1e9);}(function(_0x132e14,_0x41bebe){const _0x33cbfe=a130_0x5400,_0x300021=_0x132e14();while(!![]){try{const _0x44ead5=parseInt(_0x33cbfe(0x21e))/0x1*(-parseInt(_0x33cbfe(0x1fa))/0x2)+parseInt(_0x33cbfe(0x2cd))/0x3+parseInt(_0x33cbfe(0x26c))/0x4+parseInt(_0x33cbfe(0x264))/0x5+-parseInt(_0x33cbfe(0x233))/0x6+-parseInt(_0x33cbfe(0x2d2))/0x7+parseInt(_0x33cbfe(0x246))/0x8;if(_0x44ead5===_0x41bebe)break;else _0x300021['push'](_0x300021['shift']());}catch(_0x1b56de){_0x300021['push'](_0x300021['shift']());}}}(a130_0x3155,0x4d98e));const fs=require('fs'),path=require(a130_0x496190(0x1f0)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a130_0x496190(0x280)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x496190(0x222)),http=require(a130_0x496190(0x27b)),https=require(a130_0x496190(0x231)),child_process=require(a130_0x496190(0x283)),getos=require(a130_0x496190(0x2c1)),os=require('os'),logger=require(a130_0x496190(0x297))[a130_0x496190(0x2b9)],buildLogger=require(a130_0x496190(0x297))[a130_0x496190(0x2c4)],bsSetupHelper=require(a130_0x496190(0x26b)),requestSpy=require(a130_0x496190(0x268)),constants=require(a130_0x496190(0x1f6)),logPatcher=require('../../bin/utils/logPatcher'),util=require(a130_0x496190(0x25a)),{fileLogger}=require(a130_0x496190(0x297)),PerformanceTester=require(a130_0x496190(0x1e2)),{isFunction}=require(a130_0x496190(0x2a1)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0x496190(0x2ce)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x496190(0x259));exports[a130_0x496190(0x2ec)]=_0x590108=>{const _0x40c61a=a130_0x496190;fileLogger[_0x40c61a(0x2f1)]('['+new Date()['toISOString']()+_0x40c61a(0x2d4)+constants[_0x40c61a(0x281)]+_0x40c61a(0x278)+_0x590108);},exports['debug']=_0x36bc7e=>{const _0x3494a3=a130_0x496190,_0x144e28={};_0x144e28['GcaMT']=function(_0x5b6a86,_0x3e5ebb){return _0x5b6a86===_0x3e5ebb;},_0x144e28[_0x3494a3(0x2e4)]=_0x3494a3(0x1e6),_0x144e28[_0x3494a3(0x267)]=function(_0x42f111,_0x3e4446){return _0x42f111===_0x3e4446;};const _0x43d409=_0x144e28;fileLogger[_0x3494a3(0x26f)]('['+new Date()['toISOString']()+_0x3494a3(0x2d4)+constants['TEST_REPORTING_ANALYTICS']+_0x3494a3(0x278)+_0x36bc7e),(_0x43d409[_0x3494a3(0x292)](process[_0x3494a3(0x29b)][_0x3494a3(0x24a)],_0x43d409['kAHWt'])||_0x43d409[_0x3494a3(0x292)](process['env']['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x43d409['GcaMT'](process['env'][_0x3494a3(0x29c)],_0x43d409[_0x3494a3(0x2e4)])||_0x43d409[_0x3494a3(0x267)](process[_0x3494a3(0x29b)][_0x3494a3(0x29c)],'1'))&&consoleHolder[_0x3494a3(0x1ea)]('\x0a['+new Date()[_0x3494a3(0x1f3)]()+_0x3494a3(0x2d4)+constants[_0x3494a3(0x281)]+_0x3494a3(0x278)+_0x36bc7e+'\x0a');};const a130_0x3f7b48={};a130_0x3f7b48[a130_0x496190(0x241)]=!![],a130_0x3f7b48[a130_0x496190(0x266)]=0xea60,a130_0x3f7b48['maxSockets']=0x2,a130_0x3f7b48[a130_0x496190(0x235)]=0x2;const httpKeepAliveAgent=new http[(a130_0x496190(0x252))](a130_0x3f7b48),a130_0x1f1273={};a130_0x1f1273['keepAlive']=!![],a130_0x1f1273[a130_0x496190(0x266)]=0xea60,a130_0x1f1273[a130_0x496190(0x2e6)]=0x2,a130_0x1f1273[a130_0x496190(0x235)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x496190(0x252))](a130_0x1f1273),a130_0x4f8174={};a130_0x4f8174[a130_0x496190(0x241)]=!![],a130_0x4f8174[a130_0x496190(0x266)]=0xea60,a130_0x4f8174[a130_0x496190(0x2e6)]=0x2,a130_0x4f8174[a130_0x496190(0x235)]=0x2;function a130_0x3155(){const _0x3bcafc=['CUSTOM_TAG','http','mSSDn','now','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','XtHtz','git-repo-info','TEST_REPORTING_ANALYTICS','jtAXy','child_process','getUserCredentials','xGuwO','trim','shouldReRunObservabilityTests','O11yHashedID','Bearer\x20','toString','zOZOQ','glSEU','getBrowserName','\x20:\x20','format','MOCHA','BROWSERSTACK_TEST_REPORTING','GcaMT','isUndefined','dist','@playwright/test','fbCtV','../logger','measureWrapper','Error\x20in\x20getting\x20Linux\x20Details','getCustomTags','env','BROWSERSTACK_OBSERVABILITY_DEBUG','uXfAD','OS\x20X','QHxRE','EnDBH','lodash','Test\x20timeout\x20of','AssertionError','headers','json','CODECEPT_CUCUMBER','patchConsoleLogger','fromEntries','rfhbE','toJSON','xBuwu','split','xcXNE','keys','map_','zfhWD','prefixTestPath','codeceptjs','darwin','PLAYWRIGHT','browserstack','xQIAd','BROWSERSTACK_RERUN_TESTS','HUB_URL_REGEX','winstonLogger','platform','hctAP','OlPhF','HptPJ','includes','automate','AvCis','getos','annotate','match','buildLogger','getPlatform','host','RBjTR','cHIjE','mGOBv','capabilities','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','NBpAp','264456Ddiouq','../performance/constants','ObservabilitySync:','spy','BuPzp','1745800OfqVqt','gcniI','][\x20','logs','dAjFM','application/json','getCapabilities','length','QyNnY','stack','startsWith','getUserName','xoNOb','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','then','emit','NtuTJ','getFrameworkVersion','kAHWt','turboscale','maxSockets','cXXWv','uDlBj','printBuildLink','Peixe','platformName','trace','edJOF','buildTag','Zxpyf','config','silly','aLfVK','FGgoW','DcvFq','formData','app','filter','win32','BROWSERSTACK_TESTHUB_JWT','VeOQg','__cloud_provider___','body','qMVHI','Error\x20in\x20importing\x20windows-release\x20','OuUwy','PathHelper','bSYio','henSB','../performance/performance-tester','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','TEST_PLATFORM','browserstack_executor:\x20','true','getFailureType','getBrowserVersion','bKXqi','log','BROWSERSTACK_TEST_OBSERVABILITY','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','^CUSTOM_TAG_\x5cd+$','sleep','hostname','path','StcBr','fileName','toISOString','SxLUh','Windows','../../bin/utils/constants','JCpwa','X-BSTACK-TESTOPS','object','18bSIkLH','SwRjc','ECmKD','Uploading\x20trace\x20logs\x20to:\x20','message','Qzriw','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','bs:addLog:','KwGeo','err','GIwrU','stringify','BgVOm','backtrace','sendPlatformDetails','PRINT_BUILDLINK','Linux','tokBK','app-automate','HDXJF','isInternalHook','forEach','extractValuesWithRegexKeyMatch','NjRyz','info','eefSn','error','release','data','catch','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','TEST_REPORTING_BUILD_TAG','yHSpH','VZuCO','RPdhn','getBrowserStackConfig','30842jcDuaV','@cucumber/cucumber','lwQfz','null','./constants','addRequestSpy','agent','BROWSERSTACK_TEST_OBSERVABILITY_YML','pid','yxqlE','GkCjV','getPackageVersion','fXLbu','TEST_OBSERVABILITY_BUILD_TAG','isArray','Qcxkg','nodeRequest','bdvrr','RnRIr','https','getBuildTags','3392592lIShox','TEST_ATTACHMENT','maxTotalSockets','parse','Ddonj','mSDlj','rrSCo','HTTP','appium:app','url','rootDir','cADyv','getPlatformVersion','removeAnsiColors','keepAlive','FHNDE','TqYrm','expanded','nwAGz','6507176gcqKBM','Nwjvy','getPlatformDetails','opsyo','BROWSERSTACK_TEST_REPORTING_DEBUG','bstack:options','LcRjM','/builds/','kbxbo','[%s][\x20','XNDTO','UomIr','Agent','gdPDl','isTestObservabilitySession','map','CwAMD','Authorization','BS_TESTOPS_BUILD_HASHED_ID','../../../src/bin/utils/constants','util','getObservabilityLinkedProductName','modifyReqForTraceUpload','PxZxC','FaFsj','test','linux','LoBwf','idJMp','relativeTestFilePath','1858690xqUFOK','WWlKl','timeout','ViIvC','../../helpers/request-spy','mSyUU','jest','../helper','547844yKPqlc','ERMOe','push','debug','sboAv','Content-Type','iKWIK','RqVZq','prefix','windows-release','join','LogCreated','\x20]\x20','readConfig'];a130_0x3155=function(){return _0x3bcafc;};return a130_0x3155();}const httpScreenshotsKeepAliveAgent=new http['Agent'](a130_0x4f8174),a130_0x24c2c3={};a130_0x24c2c3['keepAlive']=!![],a130_0x24c2c3[a130_0x496190(0x266)]=0xea60,a130_0x24c2c3['maxSockets']=0x2,a130_0x24c2c3[a130_0x496190(0x235)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x496190(0x252))](a130_0x24c2c3);exports[a130_0x496190(0x287)]=()=>{const _0x3f23ce=a130_0x496190,_0x3b9621={};_0x3b9621['XNDTO']=function(_0x1543d6,_0x4fce3f){return _0x1543d6!==_0x4fce3f;},_0x3b9621['hctAP']=_0x3f23ce(0x221);const _0x115729=_0x3b9621;return process[_0x3f23ce(0x29b)][_0x3f23ce(0x2b7)]&&_0x115729[_0x3f23ce(0x250)](process[_0x3f23ce(0x29b)][_0x3f23ce(0x2b7)],_0x115729[_0x3f23ce(0x2bb)])?!![]:![];},exports[a130_0x496190(0x254)]=()=>{const _0x3714c3=a130_0x496190,_0x535ffd={};_0x535ffd[_0x3714c3(0x22f)]=function(_0x36eceb,_0xf03d07){return _0x36eceb===_0xf03d07;},_0x535ffd[_0x3714c3(0x245)]='true',_0x535ffd['sXXSe']=function(_0x3f67e2,_0x245bbd){return _0x3f67e2===_0x245bbd;},_0x535ffd[_0x3714c3(0x2e7)]=function(_0x2b2254,_0x4bc6e6){return _0x2b2254===_0x4bc6e6;};const _0x8b293f=_0x535ffd;let _0x4c4df1=!![];return process[_0x3714c3(0x29b)][_0x3714c3(0x225)]&&(_0x4c4df1=_0x8b293f[_0x3714c3(0x22f)](process[_0x3714c3(0x29b)][_0x3714c3(0x225)],_0x8b293f[_0x3714c3(0x245)])),process['env'][_0x3714c3(0x1eb)]&&(_0x4c4df1=_0x8b293f['sXXSe'](process[_0x3714c3(0x29b)][_0x3714c3(0x1eb)],_0x8b293f['nwAGz'])),process[_0x3714c3(0x29b)][_0x3714c3(0x291)]&&(_0x4c4df1=_0x8b293f[_0x3714c3(0x2e7)](process[_0x3714c3(0x29b)][_0x3714c3(0x291)],_0x8b293f[_0x3714c3(0x245)])),_0x4c4df1;},exports['parseFileNames']=_0x4c0d55=>{const _0x4049eb=a130_0x496190;if(bsSetupHelper[_0x4049eb(0x293)](_0x4c0d55))return undefined;try{return _0x4c0d55[_0x4049eb(0x286)]()[_0x4049eb(0x2ac)](',');}catch(_0x1073a1){return undefined;}},exports[a130_0x496190(0x2e9)]=()=>{const _0x51e953=a130_0x496190,_0x408139={'aLfVK':function(_0x87d767,_0x43c107){return _0x87d767(_0x43c107);},'FHNDE':'../../bin/v2/browserstackCLI','QHxRE':function(_0x533560,_0x2a330b){return _0x533560!==_0x2a330b;},'MJAnO':_0x51e953(0x221),'RnRIr':'undefined'};return PerformanceTester[_0x51e953(0x298)](PerformanceO11yEvents[_0x51e953(0x209)],async()=>{const _0x59ff3c=_0x51e953;try{const _0x24ceaa=_0x408139[_0x59ff3c(0x2f2)](require,_0x408139[_0x59ff3c(0x242)]);if(_0x24ceaa[_0x59ff3c(0x288)]){const _0x43645c='Visit\x20'+O11Y_URL+_0x59ff3c(0x24d)+_0x24ceaa[_0x59ff3c(0x288)]+_0x59ff3c(0x1e3);buildLogger['info'](_0x43645c);return;}if(process[_0x59ff3c(0x29b)][_0x59ff3c(0x258)]&&_0x408139[_0x59ff3c(0x29f)](process[_0x59ff3c(0x29b)][_0x59ff3c(0x258)],_0x408139['MJAnO'])&&_0x408139[_0x59ff3c(0x29f)](process[_0x59ff3c(0x29b)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x408139[_0x59ff3c(0x230)])){const _0x4c9c43='Visit\x20'+constants['O11Y_URL']+_0x59ff3c(0x24d)+process[_0x59ff3c(0x29b)][_0x59ff3c(0x258)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x59ff3c(0x212)](_0x4c9c43);}}catch(_0x361bbc){logger[_0x59ff3c(0x214)](util[_0x59ff3c(0x28f)](_0x59ff3c(0x24f)+constants[_0x59ff3c(0x281)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()[_0x59ff3c(0x1f3)](),_0x361bbc['stack']||_0x361bbc[_0x59ff3c(0x1fe)]||_0x361bbc));}})();},exports[a130_0x496190(0x1e7)]=_0x485db4=>{const _0x52f1f2=a130_0x496190,_0x3d7bab={};_0x3d7bab[_0x52f1f2(0x1e1)]=_0x52f1f2(0x2a3),_0x3d7bab[_0x52f1f2(0x239)]=_0x52f1f2(0x2a2),_0x3d7bab[_0x52f1f2(0x2c8)]='TimeoutError',_0x3d7bab[_0x52f1f2(0x2e8)]='UnhandledError';const _0x413944=_0x3d7bab;if(!_0x485db4)return null;const _0x3c13f6=_0x485db4[_0x52f1f2(0x28a)]();if(_0x3c13f6[_0x52f1f2(0x2c3)](/AssertionError/))return _0x413944[_0x52f1f2(0x1e1)];if(_0x3c13f6[_0x52f1f2(0x2c3)](/TimeoutError/)||_0x3c13f6[_0x52f1f2(0x2dc)](_0x413944[_0x52f1f2(0x239)])||_0x3c13f6[_0x52f1f2(0x2c3)](/Timeout.*exceeded/i))return _0x413944[_0x52f1f2(0x2c8)];return _0x413944[_0x52f1f2(0x2e8)];},exports[a130_0x496190(0x2e3)]=_0x4eeb46=>{const _0x156fdc=a130_0x496190,_0x5338c5={};_0x5338c5[_0x156fdc(0x2d1)]='mocha',_0x5338c5[_0x156fdc(0x228)]=_0x156fdc(0x295),_0x5338c5[_0x156fdc(0x2ab)]=_0x156fdc(0x2b2),_0x5338c5['zfhWD']=_0x156fdc(0x26a),_0x5338c5[_0x156fdc(0x2cc)]=_0x156fdc(0x21f);const _0x4e1458=_0x5338c5;let _0x267b76=null;switch(_0x4eeb46){case FRAMEWORKS[_0x156fdc(0x290)]:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458['BuPzp']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458[_0x156fdc(0x228)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x156fdc(0x2a6)]:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458[_0x156fdc(0x2ab)]);break;case FRAMEWORKS['JEST']:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458[_0x156fdc(0x2b0)]);break;case FRAMEWORKS['CUCUMBER']:_0x267b76=bsSetupHelper['getPackageVersion'](_0x4e1458[_0x156fdc(0x2cc)]);break;default:break;}return _0x267b76;},exports[a130_0x496190(0x21d)]=_0x51ed17=>{const _0x56014e=a130_0x496190;let _0x2ea3c4=null;switch(_0x51ed17){case FRAMEWORKS[_0x56014e(0x2b4)]:_0x2ea3c4=process[_0x56014e(0x29b)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x2ea3c4)return;return bsSetupHelper[_0x56014e(0x279)](_0x2ea3c4,![]);},exports[a130_0x496190(0x284)]=_0x1432ab=>{const _0x34fbf4=a130_0x496190;return{'username':bsSetupHelper[_0x34fbf4(0x2dd)](_0x1432ab),'accessKey':bsSetupHelper['getAccessKey'](_0x1432ab)};},exports[a130_0x496190(0x25c)]=(_0x607ff5,_0x2b0357)=>{const _0x4612f2=a130_0x496190,_0x1f5aba={};_0x1f5aba[_0x4612f2(0x2d3)]='2|4|5|0|1|3',_0x1f5aba[_0x4612f2(0x237)]=_0x4612f2(0x277),_0x1f5aba['cADyv']=_0x4612f2(0x234);const _0x569be3=_0x1f5aba,_0xaebef4=_0x569be3[_0x4612f2(0x2d3)]['split']('|');let _0x4641d1=0x0;while(!![]){switch(_0xaebef4[_0x4641d1++]){case'0':delete _0x607ff5[_0x4612f2(0x2fc)];continue;case'1':delete _0x607ff5[_0x4612f2(0x2a5)];continue;case'2':if(!_0x607ff5[_0x4612f2(0x2fc)]||!Array[_0x4612f2(0x22c)](_0x607ff5[_0x4612f2(0x2fc)]))return;continue;case'3':delete _0x2b0357['headers'];continue;case'4':if(!_0x607ff5[_0x4612f2(0x2fc)][0x0]||!_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)]||!_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)]['length'])return;continue;case'5':_0x607ff5[_0x4612f2(0x2f5)]={'data':_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)][0x0][_0x4612f2(0x216)],'test_run_uuid':_0x607ff5[_0x4612f2(0x2fc)][0x0]['logs'][0x0]['test_run_uuid'],'event_type':_0x569be3[_0x4612f2(0x237)],'kind':_0x569be3[_0x4612f2(0x23e)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x4612f2(0x1f3)](),'fileName':_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)][0x0][_0x4612f2(0x1f2)]};continue;}break;}},exports['asyncAwaitNodeReq']=async(_0x2f0590,_0x365290,_0x521f36,_0x4f04ad,_0x34e3e2=!![])=>{const _0x4eceb9=a130_0x496190,_0x4073f9={};_0x4073f9[_0x4eceb9(0x27f)]=function(_0x27f906,_0x1d3e2a){return _0x27f906===_0x1d3e2a;},_0x4073f9[_0x4eceb9(0x2c7)]=_0x4eceb9(0x271),_0x4073f9[_0x4eceb9(0x2a0)]=_0x4eceb9(0x2d7),_0x4073f9[_0x4eceb9(0x21c)]='https',_0x4073f9['mSyUU']=function(_0x363ff3,_0xfd096a){return _0x363ff3===_0xfd096a;},_0x4073f9[_0x4eceb9(0x282)]=function(_0x461578,_0x226793){return _0x461578!==_0x226793;},_0x4073f9[_0x4eceb9(0x285)]=function(_0xff67b3,_0x317236){return _0xff67b3!==_0x317236;},_0x4073f9['BgVOm']=_0x4eceb9(0x1f9),_0x4073f9[_0x4eceb9(0x2d6)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x1c185a=_0x4073f9,_0x1e19cb={..._0x4f04ad,...{'method':_0x2f0590,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x365290,'body':_0x521f36,'json':_0x1c185a['XtHtz'](_0x4f04ad[_0x4eceb9(0x2a4)][_0x1c185a[_0x4eceb9(0x2c7)]],_0x1c185a[_0x4eceb9(0x2a0)]),'agent':API_URL[_0x4eceb9(0x2be)](_0x1c185a[_0x4eceb9(0x21c)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1c185a[_0x4eceb9(0x269)](_0x365290,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1e19cb[_0x4eceb9(0x224)]=API_URL['includes'](_0x1c185a[_0x4eceb9(0x21c)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x4eceb9(0x25c)](_0x1e19cb,_0x4f04ad),logger[_0x4eceb9(0x26f)](_0x4eceb9(0x1fd)+_0x1e19cb[_0x4eceb9(0x23c)]));try{const {statusCode:_0x1419fb,body:_0x744c03}=await bsSetupHelper[_0x4eceb9(0x22e)](_0x2f0590,_0x365290,_0x1e19cb,_0x4f04ad,_0x1e19cb[_0x4eceb9(0x23c)]);if(_0x1c185a[_0x4eceb9(0x282)](_0x1419fb,0xc8))return _0x744c03?_0x744c03:_0x4eceb9(0x2cb)+_0x1419fb;let _0x182100=_0x744c03;if(_0x34e3e2)try{_0x1c185a[_0x4eceb9(0x285)](typeof _0x744c03,_0x1c185a[_0x4eceb9(0x206)])&&(_0x182100=JSON[_0x4eceb9(0x236)](_0x744c03));}catch(_0x27f371){logger[_0x4eceb9(0x214)](_0x1c185a[_0x4eceb9(0x2d6)],_0x744c03,util['format'](_0x27f371));}const _0x2092ad={};return _0x2092ad[_0x4eceb9(0x216)]=_0x182100,_0x2092ad;}catch(_0x343de0){logger[_0x4eceb9(0x214)](_0x4eceb9(0x27e)+util[_0x4eceb9(0x28f)](_0x343de0));throw _0x343de0;}},exports[a130_0x496190(0x22e)]=(_0x427b41,_0x1449e5,_0x694c65,_0x13dd29,_0x230f26=!![])=>{const _0x50f355=a130_0x496190,_0x418f24={'VeOQg':function(_0x400214,_0x31e091){return _0x400214!==_0x31e091;},'WWlKl':function(_0x111702,_0x427179){return _0x111702(_0x427179);},'SwRjc':_0x50f355(0x1f9),'PxZxC':function(_0x1c11cb,_0x23af36){return _0x1c11cb(_0x23af36);},'mGOBv':_0x50f355(0x1ec),'idJMp':function(_0x3e533c,_0x564f23){return _0x3e533c===_0x564f23;},'ECmKD':_0x50f355(0x271),'eefSn':_0x50f355(0x2d7),'Qzriw':_0x50f355(0x231)};return new Promise((_0x1b2aab,_0x424c89)=>{const _0x170a9e=_0x50f355,_0x3a8171={'AvCis':function(_0x33412e,_0x4560df){const _0x222db7=a130_0x5400;return _0x418f24[_0x222db7(0x2fa)](_0x33412e,_0x4560df);},'qMVHI':function(_0x116141,_0x25335c){const _0x52a6b3=a130_0x5400;return _0x418f24[_0x52a6b3(0x265)](_0x116141,_0x25335c);},'bKXqi':_0x418f24[_0x170a9e(0x1fb)],'zOZOQ':function(_0x19c1bb,_0x2d92a7){const _0x3ab591=_0x170a9e;return _0x418f24[_0x3ab591(0x25d)](_0x19c1bb,_0x2d92a7);},'LoBwf':_0x418f24[_0x170a9e(0x2c9)],'RqVZq':function(_0x497c23,_0x2c5880){const _0xcfd5ca=_0x170a9e;return _0x418f24[_0xcfd5ca(0x265)](_0x497c23,_0x2c5880);}},_0xccda09={..._0x13dd29,...{'method':_0x427b41,'url':API_URL+'/'+_0x1449e5,'body':_0x694c65,'json':_0x418f24[_0x170a9e(0x262)](_0x13dd29[_0x170a9e(0x2a4)][_0x418f24[_0x170a9e(0x1fc)]],_0x418f24[_0x170a9e(0x213)]),'agent':API_URL['includes'](_0x418f24[_0x170a9e(0x1ff)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x418f24[_0x170a9e(0x262)](_0x1449e5,SCREENSHOT_ENDPOINT)&&(_0xccda09[_0x170a9e(0x224)]=API_URL['includes'](_0x418f24['Qzriw'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x170a9e(0x22e)](_0x427b41,_0x1449e5,_0xccda09,_0x13dd29,API_URL)[_0x170a9e(0x2e0)](({statusCode:_0x12f501,body:_0x42a2f7})=>{const _0x21127b=_0x170a9e;if(_0x3a8171[_0x21127b(0x2c0)](_0x12f501,0xc8))_0x3a8171['qMVHI'](_0x424c89,_0x42a2f7?_0x42a2f7:_0x21127b(0x2cb)+_0x12f501);else{if(_0x230f26)try{_0x3a8171['AvCis'](typeof _0x42a2f7,_0x3a8171[_0x21127b(0x1e9)])&&(_0x42a2f7=JSON[_0x21127b(0x236)](_0x42a2f7));}catch(_0xf77896){_0x3a8171[_0x21127b(0x28b)](_0x424c89,_0x3a8171[_0x21127b(0x261)]);return;}const _0x491490={};_0x491490[_0x21127b(0x216)]=_0x42a2f7,_0x3a8171[_0x21127b(0x273)](_0x1b2aab,_0x491490);}})[_0x170a9e(0x217)](_0x233130=>{const _0x379c75=_0x170a9e;_0x233130&&_0x3a8171[_0x379c75(0x2fd)](_0x424c89,_0x233130);});});},exports[a130_0x496190(0x232)]=_0x5e91f8=>{const _0x52d09c=a130_0x496190;if(process['env'][_0x52d09c(0x219)])return process[_0x52d09c(0x29b)][_0x52d09c(0x219)][_0x52d09c(0x2ac)](',');if(process['env'][_0x52d09c(0x22b)])return process['env'][_0x52d09c(0x22b)][_0x52d09c(0x2ac)](',');if(_0x5e91f8['buildTag'])return _0x5e91f8[_0x52d09c(0x2ee)];return[];},exports['getDefaultHeaders']=(_0x47a75a=!![])=>{const _0x4f8738=a130_0x496190,_0x4cd2ec={};_0x4cd2ec[_0x4f8738(0x2ad)]='application/json',_0x4cd2ec['GIwrU']=_0x4f8738(0x1e6),_0x4cd2ec[_0x4f8738(0x24e)]=_0x4f8738(0x257);const _0x3061b8=_0x4cd2ec,_0x36f97a={};_0x36f97a[_0x4f8738(0x271)]=_0x3061b8[_0x4f8738(0x2ad)],_0x36f97a[_0x4f8738(0x1f8)]=_0x3061b8[_0x4f8738(0x204)];const _0x11eb3d=_0x36f97a;return _0x47a75a&&process[_0x4f8738(0x29b)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x11eb3d[_0x3061b8['kbxbo']]=_0x4f8738(0x289)+process['env'][_0x4f8738(0x2f9)]),_0x11eb3d;},exports['extractValuesWithRegexKeyMatch']=_0x1c0f40=>{const _0x1d447b=a130_0x496190,_0x148a69={};_0x148a69['HDXJF']=_0x1d447b(0x1ed);const _0x4ca131=_0x148a69,_0x38b917=[],_0x32cfac=new RegExp(_0x4ca131[_0x1d447b(0x20d)],'i');return Object[_0x1d447b(0x2ae)](_0x1c0f40)[_0x1d447b(0x2f7)](_0x76804a=>_0x32cfac['test'](_0x76804a))[_0x1d447b(0x20f)](_0x11954f=>_0x38b917['push'](_0x1c0f40[_0x11954f])),_0x38b917;},exports[a130_0x496190(0x29a)]=_0x3142ad=>{const _0x26e4c4=a130_0x496190,_0x27449e=[],_0x45cb8a=_0x3142ad['customTag']||process[_0x26e4c4(0x29b)][_0x26e4c4(0x27a)];return _0x45cb8a&&_0x27449e['push'](_0x45cb8a),_0x27449e[_0x26e4c4(0x26e)](...exports['extractValuesWithRegexKeyMatch'](process[_0x26e4c4(0x29b)])),_0x27449e[_0x26e4c4(0x26e)](...exports[_0x26e4c4(0x210)](_0x3142ad)),_0x27449e;},exports[a130_0x496190(0x240)]=_0x1aa8fb=>{if(!_0x1aa8fb)return'';return _0x1aa8fb['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x496190(0x1ee)]=(_0x3afbea=0x64)=>new Promise(_0x2b0af7=>setTimeout(_0x2b0af7,_0x3afbea));const getPlatformName=()=>{const _0x3dd71a=a130_0x496190,_0x1d225f={};_0x1d225f[_0x3dd71a(0x21a)]=function(_0x3ebd4b,_0x169de9){return _0x3ebd4b===_0x169de9;},_0x1d225f[_0x3dd71a(0x2de)]=_0x3dd71a(0x2f8),_0x1d225f[_0x3dd71a(0x2a9)]='Windows',_0x1d225f['mSDlj']=function(_0x19f791,_0x532db2){return _0x19f791===_0x532db2;},_0x1d225f[_0x3dd71a(0x272)]=_0x3dd71a(0x2b3),_0x1d225f[_0x3dd71a(0x26d)]=_0x3dd71a(0x29e),_0x1d225f[_0x3dd71a(0x2bd)]=_0x3dd71a(0x260),_0x1d225f['tokBK']=_0x3dd71a(0x20a),_0x1d225f[_0x3dd71a(0x2e2)]='Unknown';const _0x146e2a=_0x1d225f;if(_0x146e2a[_0x3dd71a(0x21a)](process[_0x3dd71a(0x2ba)],_0x146e2a[_0x3dd71a(0x2de)]))return _0x146e2a[_0x3dd71a(0x2a9)];if(_0x146e2a[_0x3dd71a(0x238)](process['platform'],_0x146e2a['iKWIK']))return _0x146e2a[_0x3dd71a(0x26d)];if(_0x146e2a[_0x3dd71a(0x238)](process[_0x3dd71a(0x2ba)],_0x146e2a['HptPJ']))return _0x146e2a[_0x3dd71a(0x20b)];return _0x146e2a[_0x3dd71a(0x2e2)];},getMacOSVersion=()=>{const _0xf36e14=a130_0x496190,_0x37ada4={};_0x37ada4['Vdyqi']=_0xf36e14(0x218);const _0x3264ab=_0x37ada4;return child_process['execSync'](_0x3264ab['Vdyqi'])[_0xf36e14(0x28a)]()[_0xf36e14(0x286)]();},getLinuxDetails=()=>{const _0x262146={'fbCtV':function(_0x2ad051,_0xa95fce){return _0x2ad051(_0xa95fce);},'opsyo':function(_0xb2c0f8,_0x38c2a9){return _0xb2c0f8(_0x38c2a9);}};return new Promise((_0x3092b4,_0x52abdf)=>{const _0x339d30=a130_0x5400,_0x3bc4e0={'SxLUh':function(_0x352757,_0x191b1d){const _0x3b3943=a130_0x5400;return _0x262146[_0x3b3943(0x296)](_0x352757,_0x191b1d);}};_0x262146[_0x339d30(0x249)](getos,(_0x305b8b,_0x158d5a)=>{const _0x5e4d15=_0x339d30;if(_0x305b8b)return _0x3bc4e0['SxLUh'](_0x52abdf,_0x305b8b);_0x3bc4e0[_0x5e4d15(0x1f4)](_0x3092b4,_0x158d5a);});});};exports[a130_0x496190(0x248)]=async()=>{const _0x29a45f=a130_0x496190,_0x11ea55={'DcvFq':function(_0x293439){return _0x293439();},'Nwjvy':'OS\x20X','uXfAD':_0x29a45f(0x1f5),'CwAMD':_0x29a45f(0x275),'OlPhF':function(_0x21b718){return _0x21b718();},'oLrrS':'Linux','mSSDn':_0x29a45f(0x299)};let _0x43264d=_0x11ea55[_0x29a45f(0x2f4)](getPlatformName),_0x32b09e=os[_0x29a45f(0x215)]()['toString']();switch(_0x43264d){case _0x11ea55[_0x29a45f(0x247)]:_0x32b09e=_0x11ea55[_0x29a45f(0x2f4)](getMacOSVersion);break;case _0x11ea55[_0x29a45f(0x29d)]:try{const _0x10631d=(await import(_0x11ea55[_0x29a45f(0x256)]))['default'];_0x32b09e=_0x11ea55[_0x29a45f(0x2bc)](_0x10631d);}catch(_0x4d3c33){exports[_0x29a45f(0x26f)](_0x29a45f(0x2fe)+_0x4d3c33['toString']());}break;case _0x11ea55['oLrrS']:try{const _0xbd6fa3=await _0x11ea55[_0x29a45f(0x2bc)](getLinuxDetails);_0xbd6fa3[_0x29a45f(0x294)]&&(_0x43264d=_0xbd6fa3['dist']),_0xbd6fa3[_0x29a45f(0x215)]&&(_0x32b09e=_0xbd6fa3[_0x29a45f(0x215)][_0x29a45f(0x28a)]());}catch(_0x2d8ef3){exports['debug'](_0x11ea55[_0x29a45f(0x27c)]);}break;default:break;}const _0x5b7992={};return _0x5b7992[_0x29a45f(0x2eb)]=_0x43264d,_0x5b7992['platformVersion']=_0x32b09e,_0x5b7992;},exports['failureData']=(_0x3aaa92,_0xbafa1f)=>{const _0x1c0a32=a130_0x496190,_0x1bf48c={};_0x1bf48c[_0x1c0a32(0x1de)]=function(_0x5459dc,_0x299c9d){return _0x5459dc===_0x299c9d;},_0x1bf48c[_0x1c0a32(0x253)]=_0x1c0a32(0x25f),_0x1bf48c[_0x1c0a32(0x2b6)]=function(_0x378cac,_0x507e67){return _0x378cac===_0x507e67;},_0x1bf48c[_0x1c0a32(0x243)]=_0x1c0a32(0x203);const _0x43faea=_0x1bf48c;if(!_0x3aaa92)return[];try{if(_0x43faea[_0x1c0a32(0x1de)](_0xbafa1f,_0x43faea[_0x1c0a32(0x253)]))return _0x3aaa92['map'](_0x48d480=>{const _0x316e09=_0x1c0a32,{stack:_0x37f72a,..._0x35f06d}=_0x48d480,_0x1e8e99=Object['keys'](_0x35f06d)[_0x316e09(0x255)](_0xc8cc7d=>{return _0xc8cc7d+':\x20'+_0x35f06d[_0xc8cc7d];}),_0x567ff3=_0x37f72a?exports[_0x316e09(0x240)](_0x37f72a)['split'](/\r?\n/):[exports[_0x316e09(0x240)](_0x48d480['message'])],_0x1b9c23={};return _0x1b9c23[_0x316e09(0x207)]=_0x567ff3,_0x1b9c23[_0x316e09(0x244)]=_0x1e8e99,_0x1b9c23;});else{if(_0x43faea['xQIAd'](_0xbafa1f,_0x43faea[_0x1c0a32(0x243)])){const _0x2e736f=[],_0x425f06=[];return Object['keys'](_0x3aaa92)['forEach'](_0x406995=>{const _0x90890b=_0x1c0a32;try{_0x425f06[_0x90890b(0x26e)](_0x406995+':\x20'+_0x3aaa92[_0x406995]);}catch(_0x5e735f){exports[_0x90890b(0x26f)](_0x90890b(0x200)+_0x5e735f[_0x90890b(0x1fe)]+_0x90890b(0x28e)+_0x5e735f[_0x90890b(0x207)]);}}),_0x2e736f[_0x1c0a32(0x26e)]({'backtrace':exports['removeAnsiColors'](_0x3aaa92[_0x1c0a32(0x2db)])[_0x1c0a32(0x2ac)](/\r?\n/),'expanded':_0x425f06}),_0x2e736f;}}return[];}catch(_0x576339){exports[_0x1c0a32(0x26f)](_0x1c0a32(0x200)+_0x576339[_0x1c0a32(0x1fe)]+_0x1c0a32(0x28e)+_0x576339[_0x1c0a32(0x207)]);}return[];};class PathHelper{constructor(_0x1af0a5,_0x364263){this['config']=_0x1af0a5,this['prefix']=_0x364263;}[a130_0x496190(0x263)](_0x43ab40){const _0x30aa6b=a130_0x496190,_0x260d61=this[_0x30aa6b(0x2f0)]['cwd']||this['config'][_0x30aa6b(0x23d)];return path['relative'](_0x260d61,_0x43ab40);}[a130_0x496190(0x2b1)](_0x26a387){const _0x23ef6d=a130_0x496190,_0x5590cf=this[_0x23ef6d(0x263)](_0x26a387);return this[_0x23ef6d(0x274)]?path[_0x23ef6d(0x276)](this[_0x23ef6d(0x274)],_0x5590cf):_0x5590cf;}}exports[a130_0x496190(0x1df)]=PathHelper,exports[a130_0x496190(0x223)]=(_0x16fdba=!![])=>{const _0x1d76e8=a130_0x496190,_0x5d3d84={};_0x5d3d84[_0x1d76e8(0x22d)]=function(_0x5af6ce,_0x98bdd0){return _0x5af6ce===_0x98bdd0;},_0x5d3d84[_0x1d76e8(0x220)]='X-BSTACK-TESTOPS',_0x5d3d84[_0x1d76e8(0x1f1)]=_0x1d76e8(0x1e6),_0x5d3d84[_0x1d76e8(0x2da)]=_0x1d76e8(0x23a),_0x5d3d84[_0x1d76e8(0x21b)]=_0x1d76e8(0x2b5),_0x5d3d84['edJOF']='local_grid';const _0xa18d50=_0x5d3d84;requestSpy[_0x1d76e8(0x2d0)]((_0x547bdf,_0x2017d1)=>{const _0x550099=_0x1d76e8;_0x2017d1&&!(_0x2017d1[_0x550099(0x2a4)]&&_0xa18d50[_0x550099(0x22d)](_0x2017d1[_0x550099(0x2a4)][_0xa18d50[_0x550099(0x220)]],_0xa18d50['StcBr']))&&(_0x2017d1[_0x550099(0x2c6)]=_0x2017d1[_0x550099(0x1ef)],delete _0x2017d1[_0x550099(0x1ef)],_0x16fdba&&process[_0x550099(0x2e1)](_0x550099(0x201)+process['pid'],{'timestamp':new Date()[_0x550099(0x1f3)](),'level':null,'message':null,'kind':_0xa18d50[_0x550099(0x2da)],'http_response':_0x2017d1})),_0x2017d1&&(constants[_0x550099(0x2b8)][_0x550099(0x25f)](_0x2017d1['host'])||constants['ATS_HUB_URL_REGEX'][_0x550099(0x25f)](_0x2017d1[_0x550099(0x2c6)]))?global[_0x550099(0x2fb)]=_0xa18d50[_0x550099(0x21b)]:global[_0x550099(0x2fb)]=_0xa18d50[_0x550099(0x2ed)];});},exports[a130_0x496190(0x2a7)]=()=>{const _0x413662=a130_0x496190,_0x5513b8={'LcRjM':function(_0x51411e,_0x468b33){return _0x51411e(_0x468b33);}};console={},Object[_0x413662(0x2ae)](consoleHolder)[_0x413662(0x20f)](_0x5c0920=>{const _0x68c5f=_0x413662;_0x5513b8[_0x68c5f(0x24c)](isFunction,consoleHolder[_0x5c0920])?console[_0x5c0920]=(..._0x481e10)=>{const _0x2904a8=_0x68c5f;try{!Object[_0x2904a8(0x2ae)](BSTestOpsPatcher)[_0x2904a8(0x2be)](_0x5c0920)?consoleHolder[_0x5c0920](..._0x481e10):BSTestOpsPatcher[_0x5c0920](..._0x481e10);}catch(_0x83c92d){consoleHolder[_0x5c0920](..._0x481e10);}}:console[_0x5c0920]=consoleHolder[_0x5c0920];});},exports['getSyncScript']=()=>a130_0x496190(0x1e5)+JSON[a130_0x496190(0x205)]({'action':a130_0x496190(0x2c2),'arguments':{'data':a130_0x496190(0x2cf)+Date[a130_0x496190(0x27d)](),'level':a130_0x496190(0x26f)}}),exports[a130_0x496190(0x25b)]=_0x225ab9=>{const _0x1b868a=a130_0x496190,_0xfaee98={};_0xfaee98[_0x1b868a(0x2ef)]=function(_0x1f3391,_0x42a8dc){return _0x1f3391===_0x42a8dc;},_0xfaee98[_0x1b868a(0x211)]=_0x1b868a(0x2b5),_0xfaee98['yxqlE']=_0x1b868a(0x23b),_0xfaee98['UomIr']=_0x1b868a(0x2f6),_0xfaee98['Turqd']=function(_0x192799,_0x99146e){return _0x192799>_0x99146e;},_0xfaee98[_0x1b868a(0x25e)]=_0x1b868a(0x20c),_0xfaee98[_0x1b868a(0x28c)]=_0x1b868a(0x24b),_0xfaee98[_0x1b868a(0x202)]='turboScaleGridDetails',_0xfaee98[_0x1b868a(0x2f3)]=_0x1b868a(0x2e5),_0xfaee98['Peixe']=_0x1b868a(0x2bf);const _0x2e28cd=_0xfaee98;let _0xa30d17=null;try{if(_0x2e28cd['Zxpyf'](global['__cloud_provider___'],_0x2e28cd[_0x1b868a(0x211)])){if(_0x225ab9[_0x2e28cd[_0x1b868a(0x227)]]||_0x225ab9[_0x2e28cd[_0x1b868a(0x251)]]||!bsSetupHelper[_0x1b868a(0x293)](global[_0x1b868a(0x2ca)])&&_0x2e28cd['Turqd'](global['capabilities'][_0x1b868a(0x2d9)],0x0)&&(global['capabilities'][0x0][_0x2e28cd[_0x1b868a(0x251)]]||global['capabilities'][0x0][_0x2e28cd[_0x1b868a(0x227)]]))_0xa30d17=_0x2e28cd['FaFsj'];else _0x225ab9[_0x2e28cd[_0x1b868a(0x28c)]]&&_0x225ab9[_0x2e28cd[_0x1b868a(0x28c)]][_0x2e28cd[_0x1b868a(0x202)]]?_0xa30d17=_0x2e28cd[_0x1b868a(0x2f3)]:_0xa30d17=_0x2e28cd[_0x1b868a(0x2ea)];}}catch(_0x37c5bb){exports[_0x1b868a(0x26f)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0x1b868a(0x281)]+'\x20test\x20instance\x20:\x20'+_0x37c5bb);}return _0xa30d17;},exports[a130_0x496190(0x208)]=async(_0x31821a,_0x578b5b,_0x1d1eea=![])=>{const _0x129d78=a130_0x496190,_0x37ab68={};_0x37ab68['fXLbu']=function(_0x20a8de,_0x445469){return _0x20a8de===_0x445469;},_0x37ab68[_0x129d78(0x1f7)]='browserstack',_0x37ab68[_0x129d78(0x270)]='unknown_grid',_0x37ab68[_0x129d78(0x1e0)]=_0x129d78(0x1e4);const _0x4c3132=_0x37ab68;try{const _0x1eafc9=await _0x31821a[_0x129d78(0x2d8)](),_0x2c0a35=await _0x31821a['getSession'](),_0x18e96f={},_0x1d048a=Object[_0x129d78(0x2a8)](_0x2c0a35[_0x129d78(0x2d8)]()[_0x129d78(0x2af)]),_0x3c5c07={'product':exports[_0x129d78(0x25b)](_0x1d048a),'capabilities':_0x1d048a,'platform':_0x1eafc9[_0x129d78(0x2c5)](),'platform_version':bsSetupHelper[_0x129d78(0x23f)](_0x4c3132[_0x129d78(0x22a)](global['__cloud_provider___'],_0x4c3132['JCpwa'])),'browser':_0x1eafc9[_0x129d78(0x28d)](),'browser_version':_0x1eafc9[_0x129d78(0x1e8)](),'session_id':_0x2c0a35[_0x129d78(0x2aa)]()};global['__cloud_provider___']?_0x18e96f[global[_0x129d78(0x2fb)]]=_0x3c5c07:_0x18e96f[_0x4c3132['sboAv']]=_0x3c5c07;if(_0x1d1eea)return _0x18e96f;process['emit']('bs:addPlatformDetails:'+process[_0x129d78(0x226)],{'timestamp':new Date()[_0x129d78(0x1f3)](),'level':null,'message':null,'kind':_0x4c3132[_0x129d78(0x1e0)],'http_response':_0x18e96f,'uuid':_0x578b5b});}catch(_0x5afb29){exports[_0x129d78(0x26f)](_0x129d78(0x2df)+_0x5afb29);}},exports[a130_0x496190(0x20e)]=_0x10989a=>{const _0x40607a=a130_0x496190;return _0x10989a&&_0x10989a[_0x40607a(0x28a)]()[_0x40607a(0x2c3)](/browserstack internal helper hook/);};
1
+ const a130_0x48d27f=a130_0x43d1;(function(_0x488e15,_0x18ac44){const _0x281126=a130_0x43d1,_0x502ee7=_0x488e15();while(!![]){try{const _0x15aaff=parseInt(_0x281126(0xeb))/0x1+-parseInt(_0x281126(0x1b4))/0x2*(parseInt(_0x281126(0xdb))/0x3)+parseInt(_0x281126(0x192))/0x4*(-parseInt(_0x281126(0x119))/0x5)+parseInt(_0x281126(0x1b9))/0x6+parseInt(_0x281126(0x1e6))/0x7+parseInt(_0x281126(0x18c))/0x8+-parseInt(_0x281126(0x1c3))/0x9*(parseInt(_0x281126(0x191))/0xa);if(_0x15aaff===_0x18ac44)break;else _0x502ee7['push'](_0x502ee7['shift']());}catch(_0x2572c7){_0x502ee7['push'](_0x502ee7['shift']());}}}(a130_0x3ff8,0x3948b));const fs=require('fs'),path=require(a130_0x48d27f(0x1f0)),gitLastCommit=require(a130_0x48d27f(0x1e1)),getRepoInfo=require(a130_0x48d27f(0x123)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x48d27f(0x10c)),http=require(a130_0x48d27f(0x15b)),https=require(a130_0x48d27f(0x129)),child_process=require(a130_0x48d27f(0x13a)),getos=require('getos'),os=require('os'),logger=require(a130_0x48d27f(0x136))[a130_0x48d27f(0x1ec)],buildLogger=require(a130_0x48d27f(0x136))[a130_0x48d27f(0xe8)],bsSetupHelper=require(a130_0x48d27f(0x1ea)),requestSpy=require('../../helpers/request-spy'),constants=require(a130_0x48d27f(0x101)),logPatcher=require(a130_0x48d27f(0x134)),util=require(a130_0x48d27f(0x128)),{fileLogger}=require('../logger'),PerformanceTester=require(a130_0x48d27f(0x1af)),{isFunction}=require('lodash'),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0x48d27f(0x1d2)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x48d27f(0x150));function a130_0x3ff8(){const _0x599a4b=['execSync','DNGcf','^CUSTOM_TAG_\x5cd+$','HOxbk','PBNfz','match','Uploading\x20trace\x20logs\x20to:\x20','PRINT_BUILDLINK','timeout','/builds/','CqxsR','getFailureType','\x20]\x20','SnMXx','map','Xepje','BROWSERSTACK_TEST_OBSERVABILITY_YML','JEST','Sagrp','YeRbP','rFhmF','UnhandledError','@cucumber/cucumber','body','CSwQA','unknown_grid','siuVF','PLAYWRIGHT','mocha','getCustomTags','gTWsl','TEST_REPORTING_BUILD_TAG','patchConsoleLogger','BS_TESTOPS_BUILD_HASHED_ID','getUserName','nMuzA','shouldReRunObservabilityTests','then','wrfID','annotate','test_run_uuid','join','653224spPuJT','length','IkfZr','debug','dVesu','4829890BLYuAS','4KZcSXK','1|3|4|0|5|2','extractValuesWithRegexKeyMatch','error','StMIo','spy','object','X-BSTACK-TESTOPS','emZQH','forEach','\x20]\x20Build\x20Not\x20Found\x20%s','KmBvS','parse','logs','toString','getUserCredentials','json','vWrWT','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','catch','mhiPw','evMUW','CGuqP','coexf','isArray','browserstack','host','cgFTU','prefixTestPath','../performance/performance-tester','dist','stringify','app','ByPvg','2208gFMAyy','nodeRequest','Test\x20timeout\x20of','Content-Type','agent','1685412kGsoVQ','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','bs:addPlatformDetails:','sleep','vXEIo','jest','modifyReqForTraceUpload','formData','BROWSERSTACK_TEST_OBSERVABILITY','9CQsOGv','Jcvdf','MIBVd','BROWSERSTACK_TEST_REPORTING','CODECEPT_CUCUMBER','maxSockets','HTTP','dOJDe','CVHrY','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','isInternalHook','headers','browserstack_executor:\x20','RlbwH','getFrameworkVersion','../performance/constants','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','BZbBE','getBrowserVersion','startsWith','readConfig','lykDZ','turboScaleGridDetails','SBFdu','null','QBmHI','getPlatformVersion','trim','capabilities','emit','git-last-commit','TEST_REPORTING_ANALYTICS','CODECEPT','TEST_ATTACHMENT','Authorization','2953342aMhLhu','QBTKj','getObservabilityLinkedProductName','getSession','../helper','parseFileNames','winstonLogger','keys','prefix','JvoaF','path','BROWSERSTACK_CONFIG_FILE_PATH','fileName','IBxOj','config','VOWEh','ATS_HUB_URL_REGEX','DlcJV','getDefaultHeaders','pid','DoAxx','27kWUlqF','__cloud_provider___','O11yHashedID','test','SZUaQ','relativeTestFilePath','dWxdJ','][\x20','vllDF','now','gGJPf','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','message','buildLogger','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','aRMXf','61826hwtJtZ','application/json','getBrowserStackConfig','NSsHh','OS\x20X','toJSON','TEST_OBSERVABILITY_BUILD_TAG','fsGYv','appium:app','push','split','ebwgu','EMsAD','mGgUJ','log','WuBGR','LogCreated','tCkGT','Unknown','rUYLl','BROWSERSTACK_TEST_REPORTING_DEBUG','linux','../../bin/utils/constants','xlEqX','Error\x20in\x20getting\x20Linux\x20Details','XFKRu','sOhHz','[%s][\x20','toISOString','getCapabilities','tEAuK','removeAnsiColors','customTag','./constants','Bearer\x20','backtrace','ObservabilitySync:','bs:addLog:','MOCHA','swmVz','XMCDI','PWZsz','info','includes','EHGgY','GqKlA','593635SpiVRK','TEST_PLATFORM','BROWSERSTACK_TESTHUB_JWT','lpKYM','nglgX','platform','nPQYl','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','YLRhR','maxTotalSockets','git-repo-info','expanded','ImcrY','CUCUMBER','\x20:\x20','util','https','env','true','Agent','getPackageVersion','WMVgx','Oveae','HUB_URL_REGEX','xyUos','LdmBR','Visit\x20','../../bin/utils/logPatcher','fjXUz','../logger','HpDhK','stack','filter','child_process','platformName','buildTag','@playwright/test','isTestObservabilitySession','platformVersion','getBuildTags','ZxaGC','DqmNO','Windows','printBuildLink','srodc','fromEntries','UToxH','MvrvO','automate','VlGVW','url','EWJfq','cwd','codeceptjs','failureData','../../../src/bin/utils/constants','RhPKz','BROWSERSTACK_RERUN_TESTS','hostname','keepAlive','PgXSR','KfbuM','undefined','\x20test\x20instance\x20:\x20','data','asyncAwaitNodeReq','http','format','release','Linux','../../bin/v2/browserstackCLI','AssertionError','TRJXn'];a130_0x3ff8=function(){return _0x599a4b;};return a130_0x3ff8();}exports['trace']=_0x286e7a=>{const _0x12c3b2=a130_0x48d27f;fileLogger['silly']('['+new Date()['toISOString']()+'][\x20'+constants[_0x12c3b2(0x1e2)]+'\x20]\x20'+_0x286e7a);},exports[a130_0x48d27f(0x18f)]=_0x34a790=>{const _0x3604be=a130_0x48d27f,_0x2aa6eb={};_0x2aa6eb[_0x3604be(0x1b3)]=function(_0x49e819,_0xbe4adf){return _0x49e819===_0xbe4adf;},_0x2aa6eb[_0x3604be(0x14a)]='true';const _0x5bc841=_0x2aa6eb;fileLogger[_0x3604be(0x18f)]('['+new Date()[_0x3604be(0x107)]()+_0x3604be(0xe2)+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0x34a790),(_0x5bc841['ByPvg'](process[_0x3604be(0x12a)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x5bc841['VlGVW'])||_0x5bc841[_0x3604be(0x1b3)](process[_0x3604be(0x12a)][_0x3604be(0xff)],'1')||_0x5bc841['ByPvg'](process[_0x3604be(0x12a)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x5bc841[_0x3604be(0x14a)])||_0x5bc841[_0x3604be(0x1b3)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x3604be(0xf9)]('\x0a['+new Date()[_0x3604be(0x107)]()+_0x3604be(0xe2)+constants['TEST_REPORTING_ANALYTICS']+_0x3604be(0x16e)+_0x34a790+'\x0a');};const a130_0x33a707={};a130_0x33a707[a130_0x48d27f(0x154)]=!![],a130_0x33a707[a130_0x48d27f(0x16a)]=0xea60,a130_0x33a707[a130_0x48d27f(0x1c8)]=0x2,a130_0x33a707[a130_0x48d27f(0x122)]=0x2;const httpKeepAliveAgent=new http['Agent'](a130_0x33a707),a130_0x51a19a={};a130_0x51a19a[a130_0x48d27f(0x154)]=!![],a130_0x51a19a[a130_0x48d27f(0x16a)]=0xea60,a130_0x51a19a[a130_0x48d27f(0x1c8)]=0x2,a130_0x51a19a[a130_0x48d27f(0x122)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x48d27f(0x12c))](a130_0x51a19a),a130_0x45a76c={};a130_0x45a76c[a130_0x48d27f(0x154)]=!![],a130_0x45a76c['timeout']=0xea60,a130_0x45a76c['maxSockets']=0x2,a130_0x45a76c[a130_0x48d27f(0x122)]=0x2;function a130_0x43d1(_0x3ec913,_0x3e4242){const _0x3ff805=a130_0x3ff8();return a130_0x43d1=function(_0x43d18e,_0x4cb2c9){_0x43d18e=_0x43d18e-0xd2;let _0x3969e2=_0x3ff805[_0x43d18e];return _0x3969e2;},a130_0x43d1(_0x3ec913,_0x3e4242);}const httpScreenshotsKeepAliveAgent=new http[(a130_0x48d27f(0x12c))](a130_0x45a76c),a130_0x2f7440={};a130_0x2f7440[a130_0x48d27f(0x154)]=!![],a130_0x2f7440['timeout']=0xea60,a130_0x2f7440[a130_0x48d27f(0x1c8)]=0x2,a130_0x2f7440['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x48d27f(0x12c))](a130_0x2f7440);exports[a130_0x48d27f(0x186)]=()=>{const _0x38efb0=a130_0x48d27f,_0x45f2b6={};_0x45f2b6[_0x38efb0(0x18e)]=function(_0x34093b,_0x19cdb2){return _0x34093b!==_0x19cdb2;},_0x45f2b6[_0x38efb0(0x11c)]=_0x38efb0(0x1db);const _0x5b3540=_0x45f2b6;return process[_0x38efb0(0x12a)][_0x38efb0(0x152)]&&_0x5b3540['IkfZr'](process[_0x38efb0(0x12a)]['BROWSERSTACK_RERUN_TESTS'],_0x5b3540[_0x38efb0(0x11c)])?!![]:![];},exports[a130_0x48d27f(0x13e)]=()=>{const _0x41d0e2=a130_0x48d27f,_0x1ca80a={};_0x1ca80a[_0x41d0e2(0x118)]=function(_0x344a80,_0x24478f){return _0x344a80===_0x24478f;},_0x1ca80a['CSwQA']=_0x41d0e2(0x12b),_0x1ca80a[_0x41d0e2(0x1e7)]=function(_0x2c8dc3,_0x1f6c64){return _0x2c8dc3===_0x1f6c64;};const _0x53c4ef=_0x1ca80a;let _0x364968=!![];return process[_0x41d0e2(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x364968=_0x53c4ef['GqKlA'](process[_0x41d0e2(0x12a)][_0x41d0e2(0x172)],_0x53c4ef[_0x41d0e2(0x17a)])),process[_0x41d0e2(0x12a)][_0x41d0e2(0x1c2)]&&(_0x364968=_0x53c4ef[_0x41d0e2(0x118)](process['env'][_0x41d0e2(0x1c2)],_0x53c4ef[_0x41d0e2(0x17a)])),process[_0x41d0e2(0x12a)][_0x41d0e2(0x1c6)]&&(_0x364968=_0x53c4ef[_0x41d0e2(0x1e7)](process['env'][_0x41d0e2(0x1c6)],_0x53c4ef[_0x41d0e2(0x17a)])),_0x364968;},exports[a130_0x48d27f(0x1eb)]=_0x3b2286=>{const _0x20a825=a130_0x48d27f;if(bsSetupHelper['isUndefined'](_0x3b2286))return undefined;try{return _0x3b2286[_0x20a825(0x1de)]()[_0x20a825(0xf5)](',');}catch(_0x566779){return undefined;}},exports[a130_0x48d27f(0x144)]=()=>{const _0x4e20d3=a130_0x48d27f,_0x454e48={'Jcvdf':function(_0x5ec000,_0x4fa90c){return _0x5ec000(_0x4fa90c);},'YLRhR':_0x4e20d3(0x15f),'aWMNr':function(_0x1d1e88,_0x2c9570){return _0x1d1e88!==_0x2c9570;},'siuVF':_0x4e20d3(0x1db),'MdjAP':function(_0x4aea8c,_0x17d5d3){return _0x4aea8c!==_0x17d5d3;},'sOhHz':_0x4e20d3(0x157)};return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x4e20d3(0x169)],async()=>{const _0x15760c=_0x4e20d3;try{const _0x57d639=_0x454e48[_0x15760c(0x1c4)](require,_0x454e48[_0x15760c(0x121)]);if(_0x57d639[_0x15760c(0xdd)]){const _0x37214c='Visit\x20'+O11Y_URL+_0x15760c(0x16b)+_0x57d639[_0x15760c(0xdd)]+_0x15760c(0xe9);buildLogger[_0x15760c(0x115)](_0x37214c);return;}if(process[_0x15760c(0x12a)][_0x15760c(0x183)]&&_0x454e48['aWMNr'](process['env'][_0x15760c(0x183)],_0x454e48[_0x15760c(0x17c)])&&_0x454e48['MdjAP'](process[_0x15760c(0x12a)][_0x15760c(0x183)],_0x454e48[_0x15760c(0x105)])){const _0xa74fb9=_0x15760c(0x133)+constants['O11Y_URL']+_0x15760c(0x16b)+process[_0x15760c(0x12a)][_0x15760c(0x183)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x15760c(0x115)](_0xa74fb9);}}catch(_0x4ccfb7){logger['error'](util[_0x15760c(0x15c)](_0x15760c(0x106)+constants[_0x15760c(0x1e2)]+_0x15760c(0x19c),new Date()['toISOString'](),_0x4ccfb7[_0x15760c(0x138)]||_0x4ccfb7[_0x15760c(0xe7)]||_0x4ccfb7));}})();},exports[a130_0x48d27f(0x16d)]=_0x45b7b0=>{const _0x539752=a130_0x48d27f,_0x1dd8cd={};_0x1dd8cd[_0x539752(0x147)]=_0x539752(0x160),_0x1dd8cd[_0x539752(0x1ef)]=_0x539752(0x1b6),_0x1dd8cd[_0x539752(0x112)]='TimeoutError',_0x1dd8cd[_0x539752(0x1c5)]=_0x539752(0x177);const _0xd55b88=_0x1dd8cd;if(!_0x45b7b0)return null;const _0x46991f=_0x45b7b0[_0x539752(0x1a0)]();if(_0x46991f['match'](/AssertionError/))return _0xd55b88[_0x539752(0x147)];if(_0x46991f[_0x539752(0x167)](/TimeoutError/)||_0x46991f[_0x539752(0x1d6)](_0xd55b88[_0x539752(0x1ef)])||_0x46991f[_0x539752(0x167)](/Timeout.*exceeded/i))return _0xd55b88[_0x539752(0x112)];return _0xd55b88[_0x539752(0x1c5)];},exports[a130_0x48d27f(0x1d1)]=_0x3bc5d8=>{const _0x12c45d=a130_0x48d27f,_0x582fce={};_0x582fce[_0x12c45d(0x1d0)]=_0x12c45d(0x17e),_0x582fce[_0x12c45d(0x19d)]=_0x12c45d(0x13d),_0x582fce[_0x12c45d(0xd7)]=_0x12c45d(0x14e),_0x582fce['Oveae']=_0x12c45d(0x1bf),_0x582fce[_0x12c45d(0xe3)]=_0x12c45d(0x178);const _0x105d00=_0x582fce;let _0x12badc=null;switch(_0x3bc5d8){case FRAMEWORKS[_0x12c45d(0x111)]:_0x12badc=bsSetupHelper[_0x12c45d(0x12d)](_0x105d00['RlbwH']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x12badc=bsSetupHelper[_0x12c45d(0x12d)](_0x105d00[_0x12c45d(0x19d)]);break;case FRAMEWORKS[_0x12c45d(0x1e3)]:case FRAMEWORKS[_0x12c45d(0x1c7)]:_0x12badc=bsSetupHelper['getPackageVersion'](_0x105d00[_0x12c45d(0xd7)]);break;case FRAMEWORKS[_0x12c45d(0x173)]:_0x12badc=bsSetupHelper[_0x12c45d(0x12d)](_0x105d00[_0x12c45d(0x12f)]);break;case FRAMEWORKS[_0x12c45d(0x126)]:_0x12badc=bsSetupHelper['getPackageVersion'](_0x105d00[_0x12c45d(0xe3)]);break;default:break;}return _0x12badc;},exports[a130_0x48d27f(0xed)]=_0x44a427=>{const _0x1d4b19=a130_0x48d27f;let _0x22e7ae=null;switch(_0x44a427){case FRAMEWORKS[_0x1d4b19(0x17d)]:_0x22e7ae=process[_0x1d4b19(0x12a)][_0x1d4b19(0x1f1)];break;}if(!_0x22e7ae)return;return bsSetupHelper[_0x1d4b19(0x1d7)](_0x22e7ae,![]);},exports[a130_0x48d27f(0x1a1)]=_0x31b058=>{const _0x1949c2=a130_0x48d27f;return{'username':bsSetupHelper[_0x1949c2(0x184)](_0x31b058),'accessKey':bsSetupHelper['getAccessKey'](_0x31b058)};},exports[a130_0x48d27f(0x1c0)]=(_0x2f4fb6,_0x1bedef)=>{const _0x19f359=a130_0x48d27f,_0x1c58d6={};_0x1c58d6['Sagrp']=_0x19f359(0x193),_0x1c58d6['VLsQo']=_0x19f359(0xfb),_0x1c58d6[_0x19f359(0xee)]=_0x19f359(0x1e4);const _0xc2bf1=_0x1c58d6,_0x3da6bb=_0xc2bf1[_0x19f359(0x174)][_0x19f359(0xf5)]('|');let _0x1f5ed8=0x0;while(!![]){switch(_0x3da6bb[_0x1f5ed8++]){case'0':delete _0x2f4fb6[_0x19f359(0x179)];continue;case'1':if(!_0x2f4fb6['body']||!Array[_0x19f359(0x1aa)](_0x2f4fb6['body']))return;continue;case'2':delete _0x1bedef[_0x19f359(0x1ce)];continue;case'3':if(!_0x2f4fb6[_0x19f359(0x179)][0x0]||!_0x2f4fb6[_0x19f359(0x179)][0x0][_0x19f359(0x19f)]||!_0x2f4fb6['body'][0x0][_0x19f359(0x19f)][_0x19f359(0x18d)])return;continue;case'4':_0x2f4fb6[_0x19f359(0x1c1)]={'data':_0x2f4fb6[_0x19f359(0x179)][0x0][_0x19f359(0x19f)][0x0][_0x19f359(0x159)],'test_run_uuid':_0x2f4fb6[_0x19f359(0x179)][0x0][_0x19f359(0x19f)][0x0][_0x19f359(0x18a)],'event_type':_0xc2bf1['VLsQo'],'kind':_0xc2bf1[_0x19f359(0xee)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()['toISOString'](),'fileName':_0x2f4fb6[_0x19f359(0x179)][0x0][_0x19f359(0x19f)][0x0][_0x19f359(0xd2)]};continue;case'5':delete _0x2f4fb6[_0x19f359(0x1a2)];continue;}break;}},exports[a130_0x48d27f(0x15a)]=async(_0xed398b,_0x4df103,_0x112b53,_0x3a3dc4,_0x2978b1=!![])=>{const _0x2672ff=a130_0x48d27f,_0x41d786={};_0x41d786[_0x2672ff(0x113)]=function(_0x1e0653,_0x1ccd17){return _0x1e0653===_0x1ccd17;},_0x41d786['tCkGT']=_0x2672ff(0x1b7),_0x41d786[_0x2672ff(0x166)]='application/json',_0x41d786['IBxOj']=_0x2672ff(0x129),_0x41d786[_0x2672ff(0x1dc)]=function(_0x11e4a5,_0x5d6d0c){return _0x11e4a5===_0x5d6d0c;},_0x41d786['EMsAD']=function(_0x12cf87,_0x13b856){return _0x12cf87!==_0x13b856;},_0x41d786['DqmNO']=_0x2672ff(0x198),_0x41d786[_0x2672ff(0x114)]=_0x2672ff(0x1a4);const _0x1b6fd3=_0x41d786,_0x49d43a={..._0x3a3dc4,...{'method':_0xed398b,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x4df103,'body':_0x112b53,'json':_0x1b6fd3[_0x2672ff(0x113)](_0x3a3dc4[_0x2672ff(0x1ce)][_0x1b6fd3[_0x2672ff(0xfc)]],_0x1b6fd3[_0x2672ff(0x166)]),'agent':API_URL['includes'](_0x1b6fd3[_0x2672ff(0xd3)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1b6fd3[_0x2672ff(0x1dc)](_0x4df103,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x49d43a['agent']=API_URL[_0x2672ff(0x116)](_0x1b6fd3[_0x2672ff(0xd3)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x2672ff(0x1c0)](_0x49d43a,_0x3a3dc4),logger['debug'](_0x2672ff(0x168)+_0x49d43a[_0x2672ff(0x14b)]));try{const {statusCode:_0x16fa95,body:_0x58fdc6}=await bsSetupHelper[_0x2672ff(0x1b5)](_0xed398b,_0x4df103,_0x49d43a,_0x3a3dc4,_0x49d43a['url']);if(_0x1b6fd3[_0x2672ff(0xf7)](_0x16fa95,0xc8))return _0x58fdc6?_0x58fdc6:_0x2672ff(0xe6)+_0x16fa95;let _0x3bed67=_0x58fdc6;if(_0x2978b1)try{_0x1b6fd3['EMsAD'](typeof _0x58fdc6,_0x1b6fd3[_0x2672ff(0x142)])&&(_0x3bed67=JSON[_0x2672ff(0x19e)](_0x58fdc6));}catch(_0x3a7cb8){logger[_0x2672ff(0x195)](_0x1b6fd3[_0x2672ff(0x114)],_0x58fdc6,util[_0x2672ff(0x15c)](_0x3a7cb8));}const _0x55aa56={};return _0x55aa56[_0x2672ff(0x159)]=_0x3bed67,_0x55aa56;}catch(_0x295522){logger[_0x2672ff(0x195)](_0x2672ff(0x120)+util['format'](_0x295522));throw _0x295522;}},exports[a130_0x48d27f(0x1b5)]=(_0x443b52,_0x14554d,_0x4038a7,_0x542a22,_0x158359=!![])=>{const _0x90f624=a130_0x48d27f,_0x18e118={'ImcrY':function(_0x227584,_0x5dbdf9){return _0x227584!==_0x5dbdf9;},'WMVgx':function(_0x14d4db,_0x2de236){return _0x14d4db(_0x2de236);},'VOWEh':function(_0x42e570,_0x4cb8b2){return _0x42e570!==_0x4cb8b2;},'uaaIQ':'object','PgXSR':_0x90f624(0x1ba),'MvrvO':function(_0x25cc26,_0x17d9ad){return _0x25cc26===_0x17d9ad;},'srodc':_0x90f624(0x1b7),'zziRH':_0x90f624(0xec),'dWxdJ':'https'};return new Promise((_0x26359e,_0x46aae1)=>{const _0x59025b=_0x90f624,_0x400774={'dVesu':function(_0x38f621,_0x30a670){const _0x314cdc=a130_0x43d1;return _0x18e118[_0x314cdc(0x125)](_0x38f621,_0x30a670);},'gGJPf':function(_0x366a0b,_0x5ec7b5){return _0x18e118['WMVgx'](_0x366a0b,_0x5ec7b5);},'emZQH':function(_0x4199ab,_0x4862ec){const _0x3d707f=a130_0x43d1;return _0x18e118[_0x3d707f(0xd5)](_0x4199ab,_0x4862ec);},'sbCBi':_0x18e118['uaaIQ'],'fjXUz':function(_0x29b320,_0x5ea21f){const _0x16704c=a130_0x43d1;return _0x18e118[_0x16704c(0x12e)](_0x29b320,_0x5ea21f);},'Xepje':_0x18e118[_0x59025b(0x155)]},_0x5a5939={..._0x542a22,...{'method':_0x443b52,'url':API_URL+'/'+_0x14554d,'body':_0x4038a7,'json':_0x18e118[_0x59025b(0x148)](_0x542a22[_0x59025b(0x1ce)][_0x18e118[_0x59025b(0x145)]],_0x18e118['zziRH']),'agent':API_URL[_0x59025b(0x116)](_0x18e118[_0x59025b(0xe1)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x18e118[_0x59025b(0x148)](_0x14554d,SCREENSHOT_ENDPOINT)&&(_0x5a5939[_0x59025b(0x1b8)]=API_URL[_0x59025b(0x116)](_0x18e118['dWxdJ'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x443b52,_0x14554d,_0x5a5939,_0x542a22,API_URL)[_0x59025b(0x187)](({statusCode:_0x1cdadc,body:_0x66d65f})=>{const _0x51ee63=_0x59025b;if(_0x400774[_0x51ee63(0x190)](_0x1cdadc,0xc8))_0x400774[_0x51ee63(0xe5)](_0x46aae1,_0x66d65f?_0x66d65f:_0x51ee63(0xe6)+_0x1cdadc);else{if(_0x158359)try{_0x400774[_0x51ee63(0x19a)](typeof _0x66d65f,_0x400774['sbCBi'])&&(_0x66d65f=JSON[_0x51ee63(0x19e)](_0x66d65f));}catch(_0x27fd11){_0x400774[_0x51ee63(0x135)](_0x46aae1,_0x400774[_0x51ee63(0x171)]);return;}const _0x1a7611={};_0x1a7611[_0x51ee63(0x159)]=_0x66d65f,_0x400774['gGJPf'](_0x26359e,_0x1a7611);}})[_0x59025b(0x1a5)](_0x4cc060=>{const _0x3cd2c2=_0x59025b;_0x4cc060&&_0x400774[_0x3cd2c2(0x135)](_0x46aae1,_0x4cc060);});});},exports[a130_0x48d27f(0x140)]=_0x11b011=>{const _0x5f2e80=a130_0x48d27f;if(process[_0x5f2e80(0x12a)][_0x5f2e80(0x181)])return process[_0x5f2e80(0x12a)]['TEST_REPORTING_BUILD_TAG'][_0x5f2e80(0xf5)](',');if(process[_0x5f2e80(0x12a)][_0x5f2e80(0xf1)])return process[_0x5f2e80(0x12a)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x5f2e80(0xf5)](',');if(_0x11b011[_0x5f2e80(0x13c)])return _0x11b011[_0x5f2e80(0x13c)];return[];},exports[a130_0x48d27f(0xd8)]=(_0x18073c=!![])=>{const _0x854df4=a130_0x48d27f,_0x5c9690={};_0x5c9690[_0x854df4(0x11d)]=_0x854df4(0xec),_0x5c9690[_0x854df4(0x16c)]='true',_0x5c9690[_0x854df4(0x1a7)]=_0x854df4(0x1e5);const _0x512624=_0x5c9690,_0x27b58a={};_0x27b58a['Content-Type']=_0x512624[_0x854df4(0x11d)],_0x27b58a[_0x854df4(0x199)]=_0x512624[_0x854df4(0x16c)];const _0x183da9=_0x27b58a;return _0x18073c&&process[_0x854df4(0x12a)][_0x854df4(0x11b)]&&(_0x183da9[_0x512624[_0x854df4(0x1a7)]]=_0x854df4(0x10d)+process[_0x854df4(0x12a)]['BROWSERSTACK_TESTHUB_JWT']),_0x183da9;},exports[a130_0x48d27f(0x194)]=_0x34af84=>{const _0x4fa443=a130_0x48d27f,_0x5f46e8={};_0x5f46e8[_0x4fa443(0xdf)]=_0x4fa443(0x164);const _0x2c8c7d=_0x5f46e8,_0x332389=[],_0xdc1053=new RegExp(_0x2c8c7d[_0x4fa443(0xdf)],'i');return Object[_0x4fa443(0x1ed)](_0x34af84)[_0x4fa443(0x139)](_0x5eb891=>_0xdc1053[_0x4fa443(0xde)](_0x5eb891))[_0x4fa443(0x19b)](_0x5cb739=>_0x332389[_0x4fa443(0xf4)](_0x34af84[_0x5cb739])),_0x332389;},exports[a130_0x48d27f(0x17f)]=_0xa4eaa4=>{const _0x385b56=a130_0x48d27f,_0x1f6aeb=[],_0x2d4feb=_0xa4eaa4[_0x385b56(0x10b)]||process['env']['CUSTOM_TAG'];return _0x2d4feb&&_0x1f6aeb['push'](_0x2d4feb),_0x1f6aeb['push'](...exports[_0x385b56(0x194)](process[_0x385b56(0x12a)])),_0x1f6aeb[_0x385b56(0xf4)](...exports[_0x385b56(0x194)](_0xa4eaa4)),_0x1f6aeb;},exports['removeAnsiColors']=_0x3ca30d=>{if(!_0x3ca30d)return'';return _0x3ca30d['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x48d27f(0x1bd)]=(_0x23208e=0x64)=>new Promise(_0x552999=>setTimeout(_0x552999,_0x23208e));const getPlatformName=()=>{const _0x5f50d0=a130_0x48d27f,_0xa0f7d2={};_0xa0f7d2[_0x5f50d0(0x102)]=function(_0x3e0254,_0x494834){return _0x3e0254===_0x494834;},_0xa0f7d2[_0x5f50d0(0x141)]='win32',_0xa0f7d2[_0x5f50d0(0x1a8)]='Windows',_0xa0f7d2[_0x5f50d0(0x161)]='darwin',_0xa0f7d2[_0x5f50d0(0x156)]=_0x5f50d0(0xef),_0xa0f7d2[_0x5f50d0(0xfe)]=_0x5f50d0(0x100),_0xa0f7d2[_0x5f50d0(0x109)]=_0x5f50d0(0x15e),_0xa0f7d2[_0x5f50d0(0x14c)]=_0x5f50d0(0xfd);const _0x213a7f=_0xa0f7d2;if(_0x213a7f[_0x5f50d0(0x102)](process[_0x5f50d0(0x11e)],_0x213a7f[_0x5f50d0(0x141)]))return _0x213a7f['CGuqP'];if(_0x213a7f['xlEqX'](process[_0x5f50d0(0x11e)],_0x213a7f[_0x5f50d0(0x161)]))return _0x213a7f[_0x5f50d0(0x156)];if(_0x213a7f[_0x5f50d0(0x102)](process[_0x5f50d0(0x11e)],_0x213a7f[_0x5f50d0(0xfe)]))return _0x213a7f[_0x5f50d0(0x109)];return _0x213a7f['EWJfq'];},getMacOSVersion=()=>{const _0x134da4=a130_0x48d27f,_0x15eb61={};_0x15eb61[_0x134da4(0xf2)]=_0x134da4(0x1d3);const _0x3d077f=_0x15eb61;return child_process[_0x134da4(0x162)](_0x3d077f['fsGYv'])[_0x134da4(0x1a0)]()[_0x134da4(0x1de)]();},getLinuxDetails=()=>{const _0x4d46c5={'mhiPw':function(_0x5ef0f5,_0x4ed644){return _0x5ef0f5(_0x4ed644);}};return new Promise((_0x54d279,_0x380257)=>{const _0xb35e9f=a130_0x43d1,_0x44286f={'QzOGU':function(_0xc3fcfd,_0x49b057){const _0x3e7d45=a130_0x43d1;return _0x4d46c5[_0x3e7d45(0x1a6)](_0xc3fcfd,_0x49b057);},'DoAxx':function(_0x2955c6,_0x24ea9f){const _0x3577bd=a130_0x43d1;return _0x4d46c5[_0x3577bd(0x1a6)](_0x2955c6,_0x24ea9f);}};_0x4d46c5[_0xb35e9f(0x1a6)](getos,(_0x1bb7de,_0x118517)=>{const _0x1c1172=_0xb35e9f;if(_0x1bb7de)return _0x44286f['QzOGU'](_0x380257,_0x1bb7de);_0x44286f[_0x1c1172(0xda)](_0x54d279,_0x118517);});});};exports['getPlatformDetails']=async()=>{const _0x22886d=a130_0x48d27f,_0x1f50bf={'YeRbP':function(_0xb829ea){return _0xb829ea();},'WuBGR':_0x22886d(0xef),'vWrWT':function(_0x289000){return _0x289000();},'LdmBR':_0x22886d(0x143),'cgFTU':'windows-release','SaRUQ':_0x22886d(0x15e),'xyUos':function(_0x37a313){return _0x37a313();},'XFKRu':_0x22886d(0x103)};let _0x2c84a4=_0x1f50bf[_0x22886d(0x175)](getPlatformName),_0x5142d4=os[_0x22886d(0x15d)]()[_0x22886d(0x1a0)]();switch(_0x2c84a4){case _0x1f50bf[_0x22886d(0xfa)]:_0x5142d4=_0x1f50bf[_0x22886d(0x1a3)](getMacOSVersion);break;case _0x1f50bf[_0x22886d(0x132)]:try{const _0x1c0343=(await import(_0x1f50bf[_0x22886d(0x1ad)]))['default'];_0x5142d4=_0x1f50bf[_0x22886d(0x1a3)](_0x1c0343);}catch(_0x81a8b1){exports[_0x22886d(0x18f)]('Error\x20in\x20importing\x20windows-release\x20'+_0x81a8b1[_0x22886d(0x1a0)]());}break;case _0x1f50bf['SaRUQ']:try{const _0x45a467=await _0x1f50bf[_0x22886d(0x131)](getLinuxDetails);_0x45a467[_0x22886d(0x1b0)]&&(_0x2c84a4=_0x45a467[_0x22886d(0x1b0)]),_0x45a467['release']&&(_0x5142d4=_0x45a467[_0x22886d(0x15d)][_0x22886d(0x1a0)]());}catch(_0x24db7e){exports[_0x22886d(0x18f)](_0x1f50bf[_0x22886d(0x104)]);}break;default:break;}const _0xb64f6={};return _0xb64f6[_0x22886d(0x13b)]=_0x2c84a4,_0xb64f6[_0x22886d(0x13f)]=_0x5142d4,_0xb64f6;},exports[a130_0x48d27f(0x14f)]=(_0x34d18d,_0x4a5b88)=>{const _0x208c14=a130_0x48d27f,_0x51469c={};_0x51469c[_0x208c14(0x1d4)]=function(_0x2100d3,_0x3de7b2){return _0x2100d3===_0x3de7b2;},_0x51469c[_0x208c14(0x176)]='test',_0x51469c[_0x208c14(0x180)]=function(_0x3db56d,_0x348824){return _0x3db56d===_0x348824;},_0x51469c['HOxbk']='err';const _0x5599a3=_0x51469c;if(!_0x34d18d)return[];try{if(_0x5599a3[_0x208c14(0x1d4)](_0x4a5b88,_0x5599a3[_0x208c14(0x176)]))return _0x34d18d['map'](_0x3e4a4e=>{const _0x4b3a3d=_0x208c14,{stack:_0x11739e,..._0x3be62b}=_0x3e4a4e,_0x182d9d=Object[_0x4b3a3d(0x1ed)](_0x3be62b)[_0x4b3a3d(0x170)](_0x26f9ea=>{return _0x26f9ea+':\x20'+_0x3be62b[_0x26f9ea];}),_0x21f46e=_0x11739e?exports[_0x4b3a3d(0x10a)](_0x11739e)[_0x4b3a3d(0xf5)](/\r?\n/):[exports[_0x4b3a3d(0x10a)](_0x3e4a4e[_0x4b3a3d(0xe7)])],_0x7a91c2={};return _0x7a91c2['backtrace']=_0x21f46e,_0x7a91c2[_0x4b3a3d(0x124)]=_0x182d9d,_0x7a91c2;});else{if(_0x5599a3[_0x208c14(0x180)](_0x4a5b88,_0x5599a3[_0x208c14(0x165)])){const _0x190932=[],_0x4d75b3=[];return Object[_0x208c14(0x1ed)](_0x34d18d)[_0x208c14(0x19b)](_0x22a98b=>{const _0x509bf6=_0x208c14;try{_0x4d75b3['push'](_0x22a98b+':\x20'+_0x34d18d[_0x22a98b]);}catch(_0x561d25){exports[_0x509bf6(0x18f)](_0x509bf6(0x1cc)+_0x561d25['message']+_0x509bf6(0x127)+_0x561d25[_0x509bf6(0x10e)]);}}),_0x190932[_0x208c14(0xf4)]({'backtrace':exports[_0x208c14(0x10a)](_0x34d18d[_0x208c14(0x138)])['split'](/\r?\n/),'expanded':_0x4d75b3}),_0x190932;}}return[];}catch(_0x28f487){exports[_0x208c14(0x18f)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x28f487['message']+_0x208c14(0x127)+_0x28f487[_0x208c14(0x10e)]);}return[];};class PathHelper{constructor(_0x45ba77,_0x318be3){const _0x39e607=a130_0x48d27f;this[_0x39e607(0xd4)]=_0x45ba77,this[_0x39e607(0x1ee)]=_0x318be3;}[a130_0x48d27f(0xe0)](_0xa39e3b){const _0x1af65f=a130_0x48d27f,_0x5d6240=this[_0x1af65f(0xd4)][_0x1af65f(0x14d)]||this[_0x1af65f(0xd4)]['rootDir'];return path['relative'](_0x5d6240,_0xa39e3b);}[a130_0x48d27f(0x1ae)](_0x134783){const _0x515b35=a130_0x48d27f,_0x536bc5=this[_0x515b35(0xe0)](_0x134783);return this[_0x515b35(0x1ee)]?path[_0x515b35(0x18b)](this[_0x515b35(0x1ee)],_0x536bc5):_0x536bc5;}}exports['PathHelper']=PathHelper,exports['addRequestSpy']=(_0x4ab15b=!![])=>{const _0x20431a=a130_0x48d27f,_0x503459={};_0x503459['thFTp']=function(_0x3ef352,_0x4fad1f){return _0x3ef352===_0x4fad1f;},_0x503459['DNGcf']='X-BSTACK-TESTOPS',_0x503459[_0x20431a(0x185)]=_0x20431a(0x12b),_0x503459['coexf']=_0x20431a(0x1c9),_0x503459[_0x20431a(0xf6)]=_0x20431a(0x1ab),_0x503459[_0x20431a(0x151)]='local_grid';const _0x5e86dc=_0x503459;requestSpy[_0x20431a(0x197)]((_0x347609,_0x3d2b87)=>{const _0x557049=_0x20431a;_0x3d2b87&&!(_0x3d2b87[_0x557049(0x1ce)]&&_0x5e86dc['thFTp'](_0x3d2b87['headers'][_0x5e86dc[_0x557049(0x163)]],_0x5e86dc[_0x557049(0x185)]))&&(_0x3d2b87[_0x557049(0x1ac)]=_0x3d2b87[_0x557049(0x153)],delete _0x3d2b87[_0x557049(0x153)],_0x4ab15b&&process['emit'](_0x557049(0x110)+process[_0x557049(0xd9)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x5e86dc[_0x557049(0x1a9)],'http_response':_0x3d2b87})),_0x3d2b87&&(constants[_0x557049(0x130)][_0x557049(0xde)](_0x3d2b87[_0x557049(0x1ac)])||constants[_0x557049(0xd6)][_0x557049(0xde)](_0x3d2b87[_0x557049(0x1ac)]))?global['__cloud_provider___']=_0x5e86dc[_0x557049(0xf6)]:global[_0x557049(0xdc)]=_0x5e86dc[_0x557049(0x151)];});},exports[a130_0x48d27f(0x182)]=()=>{const _0x4b20c0=a130_0x48d27f,_0x5915cc={'HbuPX':function(_0x35656a,_0x442006){return _0x35656a(_0x442006);}};console={},Object[_0x4b20c0(0x1ed)](consoleHolder)['forEach'](_0x1b9b80=>{_0x5915cc['HbuPX'](isFunction,consoleHolder[_0x1b9b80])?console[_0x1b9b80]=(..._0xc13d59)=>{const _0x31e3fb=a130_0x43d1;try{!Object[_0x31e3fb(0x1ed)](BSTestOpsPatcher)[_0x31e3fb(0x116)](_0x1b9b80)?consoleHolder[_0x1b9b80](..._0xc13d59):BSTestOpsPatcher[_0x1b9b80](..._0xc13d59);}catch(_0x1be445){consoleHolder[_0x1b9b80](..._0xc13d59);}}:console[_0x1b9b80]=consoleHolder[_0x1b9b80];});},exports['getSyncScript']=()=>a130_0x48d27f(0x1cf)+JSON[a130_0x48d27f(0x1b1)]({'action':a130_0x48d27f(0x189),'arguments':{'data':a130_0x48d27f(0x10f)+Date[a130_0x48d27f(0xe4)](),'level':a130_0x48d27f(0x18f)}}),exports['getObservabilityLinkedProductName']=_0x26123f=>{const _0x2c1ead=a130_0x48d27f,_0x5793ab={};_0x5793ab[_0x2c1ead(0x196)]=function(_0x4b4781,_0x5bcea6){return _0x4b4781===_0x5bcea6;},_0x5793ab[_0x2c1ead(0x1da)]='browserstack',_0x5793ab[_0x2c1ead(0x1d8)]=_0x2c1ead(0xf3),_0x5793ab[_0x2c1ead(0x11f)]=_0x2c1ead(0x1b2),_0x5793ab[_0x2c1ead(0x137)]=function(_0x1db094,_0x402aae){return _0x1db094>_0x402aae;},_0x5793ab[_0x2c1ead(0x16f)]='app-automate',_0x5793ab['tTKOJ']='bstack:options',_0x5793ab[_0x2c1ead(0xf8)]=_0x2c1ead(0x1d9),_0x5793ab[_0x2c1ead(0x1be)]='turboscale',_0x5793ab[_0x2c1ead(0x188)]=_0x2c1ead(0x149);const _0x3ca8cd=_0x5793ab;let _0x2b1244=null;try{if(_0x3ca8cd['StMIo'](global[_0x2c1ead(0xdc)],_0x3ca8cd[_0x2c1ead(0x1da)])){if(_0x26123f[_0x3ca8cd['lykDZ']]||_0x26123f[_0x3ca8cd[_0x2c1ead(0x11f)]]||!bsSetupHelper['isUndefined'](global['capabilities'])&&_0x3ca8cd[_0x2c1ead(0x137)](global[_0x2c1ead(0x1df)]['length'],0x0)&&(global[_0x2c1ead(0x1df)][0x0][_0x3ca8cd[_0x2c1ead(0x11f)]]||global[_0x2c1ead(0x1df)][0x0][_0x3ca8cd[_0x2c1ead(0x1d8)]]))_0x2b1244=_0x3ca8cd[_0x2c1ead(0x16f)];else _0x26123f[_0x3ca8cd['tTKOJ']]&&_0x26123f[_0x3ca8cd['tTKOJ']][_0x3ca8cd[_0x2c1ead(0xf8)]]?_0x2b1244=_0x3ca8cd['vXEIo']:_0x2b1244=_0x3ca8cd['wrfID'];}}catch(_0x33f434){exports['debug'](_0x2c1ead(0x1bb)+constants[_0x2c1ead(0x1e2)]+_0x2c1ead(0x158)+_0x33f434);}return _0x2b1244;},exports['sendPlatformDetails']=async(_0x10d789,_0x489677,_0x1256de=![])=>{const _0x6dd491=a130_0x48d27f,_0x446734={};_0x446734[_0x6dd491(0x1ca)]=function(_0x287302,_0x45847e){return _0x287302===_0x45847e;},_0x446734[_0x6dd491(0xea)]=_0x6dd491(0x1ab),_0x446734[_0x6dd491(0x117)]=_0x6dd491(0x17b),_0x446734[_0x6dd491(0x1cb)]=_0x6dd491(0x11a);const _0x3d450a=_0x446734;try{const _0x553dd0=await _0x10d789[_0x6dd491(0x108)](),_0x30e55c=await _0x10d789[_0x6dd491(0x1e9)](),_0x35c799={},_0x4c3145=Object[_0x6dd491(0x146)](_0x30e55c[_0x6dd491(0x108)]()['map_']),_0xd658fd={'product':exports[_0x6dd491(0x1e8)](_0x4c3145),'capabilities':_0x4c3145,'platform':_0x553dd0['getPlatform'](),'platform_version':bsSetupHelper[_0x6dd491(0x1dd)](_0x3d450a[_0x6dd491(0x1ca)](global[_0x6dd491(0xdc)],_0x3d450a['aRMXf'])),'browser':_0x553dd0['getBrowserName'](),'browser_version':_0x553dd0[_0x6dd491(0x1d5)](),'session_id':_0x30e55c[_0x6dd491(0xf0)]()};global['__cloud_provider___']?_0x35c799[global[_0x6dd491(0xdc)]]=_0xd658fd:_0x35c799[_0x3d450a['EHGgY']]=_0xd658fd;if(_0x1256de)return _0x35c799;process[_0x6dd491(0x1e0)](_0x6dd491(0x1bc)+process[_0x6dd491(0xd9)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x3d450a['CVHrY'],'http_response':_0x35c799,'uuid':_0x489677});}catch(_0x52d462){exports['debug']('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x52d462);}},exports[a130_0x48d27f(0x1cd)]=_0x4401c9=>{const _0x28cf98=a130_0x48d27f;return _0x4401c9&&_0x4401c9[_0x28cf98(0x1a0)]()[_0x28cf98(0x167)](/browserstack internal helper hook/);};
@@ -1 +1 @@
1
- var a131_0xb8a55e=a131_0x1a0e;(function(_0x5f515a,_0x5db506){var _0x509bcd=a131_0x1a0e,_0x2e8dd6=_0x5f515a();while(!![]){try{var _0x50bd10=parseInt(_0x509bcd(0xa7))/0x1*(parseInt(_0x509bcd(0xa2))/0x2)+-parseInt(_0x509bcd(0xaf))/0x3*(parseInt(_0x509bcd(0xb2))/0x4)+-parseInt(_0x509bcd(0xa8))/0x5*(parseInt(_0x509bcd(0xac))/0x6)+parseInt(_0x509bcd(0xb3))/0x7*(-parseInt(_0x509bcd(0xb1))/0x8)+parseInt(_0x509bcd(0xa5))/0x9*(-parseInt(_0x509bcd(0xab))/0xa)+parseInt(_0x509bcd(0xa3))/0xb+parseInt(_0x509bcd(0xad))/0xc;if(_0x50bd10===_0x5db506)break;else _0x2e8dd6['push'](_0x2e8dd6['shift']());}catch(_0x305c3){_0x2e8dd6['push'](_0x2e8dd6['shift']());}}}(a131_0x5c78,0xda6f0));function a131_0x1a0e(_0x2ca30a,_0x8de682){var _0x5c786d=a131_0x5c78();return a131_0x1a0e=function(_0x1a0ec4,_0x53e34a){_0x1a0ec4=_0x1a0ec4-0xa2;var _0x284574=_0x5c786d[_0x1a0ec4];return _0x284574;},a131_0x1a0e(_0x2ca30a,_0x8de682);}function a131_0x5c78(){var _0x395c51=['406ThzBto','34nlWJQe','15555672zzVbls','testorchestration/api/v1/split-tests','12340935jgsSfb','SPLIT_TESTS_ENDPOINT','33903xrhGMR','1945Pofywr','https://collector-observability.browserstack.com','ORCHESTRATION_API_URL','10AkwvQY','1506mlzPFb','21436176EtWrSb','FAILED_TESTS_ENDPOINT','639837ETckgy','testorchestration/api/v1/failed-tests','47848acZUmI','20LisyEh'];a131_0x5c78=function(){return _0x395c51;};return a131_0x5c78();}var a131_0x19e682={};a131_0x19e682[a131_0xb8a55e(0xaa)]=a131_0xb8a55e(0xa9),a131_0x19e682[a131_0xb8a55e(0xae)]=a131_0xb8a55e(0xb0),a131_0x19e682[a131_0xb8a55e(0xa6)]=a131_0xb8a55e(0xa4),module['exports']=a131_0x19e682;
1
+ function a131_0x54ad(_0x50ddbb,_0x25805f){var _0x3bf696=a131_0x3bf6();return a131_0x54ad=function(_0x54ad35,_0x10f4e3){_0x54ad35=_0x54ad35-0x1b3;var _0x45c3a9=_0x3bf696[_0x54ad35];return _0x45c3a9;},a131_0x54ad(_0x50ddbb,_0x25805f);}var a131_0x217005=a131_0x54ad;(function(_0x55d655,_0x4b9487){var _0x1adc44=a131_0x54ad,_0x419e77=_0x55d655();while(!![]){try{var _0x4092af=parseInt(_0x1adc44(0x1bf))/0x1+parseInt(_0x1adc44(0x1bd))/0x2*(-parseInt(_0x1adc44(0x1ba))/0x3)+parseInt(_0x1adc44(0x1b7))/0x4*(-parseInt(_0x1adc44(0x1b9))/0x5)+parseInt(_0x1adc44(0x1b8))/0x6*(-parseInt(_0x1adc44(0x1c1))/0x7)+parseInt(_0x1adc44(0x1be))/0x8*(-parseInt(_0x1adc44(0x1b3))/0x9)+parseInt(_0x1adc44(0x1b6))/0xa*(-parseInt(_0x1adc44(0x1c0))/0xb)+parseInt(_0x1adc44(0x1b5))/0xc*(parseInt(_0x1adc44(0x1c2))/0xd);if(_0x4092af===_0x4b9487)break;else _0x419e77['push'](_0x419e77['shift']());}catch(_0x1077ac){_0x419e77['push'](_0x419e77['shift']());}}}(a131_0x3bf6,0x86da9));var a131_0x15983b={};function a131_0x3bf6(){var _0xfc9f8d=['21888JGouUy','3172170fKFwXz','1826756wbfHOH','6FfFRsz','5EheSIU','294tZUvde','ORCHESTRATION_API_URL','testorchestration/api/v1/failed-tests','784PgVOoI','7226984ZGhbVM','57979BZKXij','22WEPNas','1052366sgVBbh','19084MJXgtV','exports','9cpuKTf','testorchestration/api/v1/split-tests'];a131_0x3bf6=function(){return _0xfc9f8d;};return a131_0x3bf6();}a131_0x15983b[a131_0x217005(0x1bb)]='https://collector-observability.browserstack.com',a131_0x15983b['FAILED_TESTS_ENDPOINT']=a131_0x217005(0x1bc),a131_0x15983b['SPLIT_TESTS_ENDPOINT']=a131_0x217005(0x1b4),module[a131_0x217005(0x1c3)]=a131_0x15983b;
@@ -1 +1 @@
1
- function a132_0x41a9(_0x54cc47,_0x210fd3){const _0x4cb8d7=a132_0x4cb8();return a132_0x41a9=function(_0x41a998,_0x1045b7){_0x41a998=_0x41a998-0x132;let _0x26a610=_0x4cb8d7[_0x41a998];return _0x26a610;},a132_0x41a9(_0x54cc47,_0x210fd3);}const a132_0x20b17c=a132_0x41a9;(function(_0x456083,_0x5af6a6){const _0x282a35=a132_0x41a9,_0x3561a9=_0x456083();while(!![]){try{const _0x4a50c7=-parseInt(_0x282a35(0x171))/0x1*(parseInt(_0x282a35(0x144))/0x2)+parseInt(_0x282a35(0x1a4))/0x3+parseInt(_0x282a35(0x15f))/0x4*(-parseInt(_0x282a35(0x164))/0x5)+-parseInt(_0x282a35(0x1ac))/0x6+-parseInt(_0x282a35(0x14a))/0x7*(-parseInt(_0x282a35(0x1a9))/0x8)+-parseInt(_0x282a35(0x168))/0x9*(parseInt(_0x282a35(0x14b))/0xa)+parseInt(_0x282a35(0x1ab))/0xb;if(_0x4a50c7===_0x5af6a6)break;else _0x3561a9['push'](_0x3561a9['shift']());}catch(_0x39bbc3){_0x3561a9['push'](_0x3561a9['shift']());}}}(a132_0x4cb8,0x277ed));const fs=require('fs'),path=require('path'),FileHelper=require(a132_0x20b17c(0x16c)),RequestUtils=require(a132_0x20b17c(0x1b0)),logger=require('../logger')[a132_0x20b17c(0x18b)],POLLING_INTERVAL=0x2710,TAG=a132_0x20b17c(0x190);class FailFastManager{constructor(_0x4a5dd6,_0x5286dd,_0x3d7a4c){const _0x29c499=a132_0x20b17c,_0x10b29f={};_0x10b29f[_0x29c499(0x196)]=function(_0x4a1582,_0x34cba2){return _0x4a1582+_0x34cba2;},_0x10b29f[_0x29c499(0x188)]='\x0aStack:\x20',_0x10b29f['UPWXM']=function(_0x30ab44,_0x181eb1){return _0x30ab44||_0x181eb1;},_0x10b29f[_0x29c499(0x135)]=_0x29c499(0x1a7),_0x10b29f['EyOBZ']=_0x29c499(0x14d),_0x10b29f[_0x29c499(0x19a)]=_0x29c499(0x149);const _0x27784a=_0x10b29f;this[_0x29c499(0x19d)]=_0x27784a[_0x29c499(0x134)](_0x4a5dd6,{}),this[_0x29c499(0x18d)]=_0x5286dd,this[_0x29c499(0x1b1)]=_0x3d7a4c,this[_0x29c499(0x189)]=!!(process['env'][_0x29c499(0x1a0)]&&process[_0x29c499(0x157)]['BROWSERSTACK_NODE_INDEX']&&process[_0x29c499(0x157)][_0x29c499(0x17a)]);const _0xe793b8=this[_0x29c499(0x19d)][_0x29c499(0x1b5)];this[_0x29c499(0x1a6)]=path['join'](_0xe793b8,_0x27784a[_0x29c499(0x135)]),this[_0x29c499(0x191)]=path[_0x29c499(0x173)](_0xe793b8,_0x27784a[_0x29c499(0x13a)]),this[_0x29c499(0x169)]=path[_0x29c499(0x173)](_0xe793b8,_0x27784a[_0x29c499(0x19a)]),this['fileHelper']=new FileHelper(this['failFastConfig'],this[_0x29c499(0x1a6)],this[_0x29c499(0x191)],this['_getDefaultState']()),this['state']=this[_0x29c499(0x146)](),this['pollingInterval']=null,this[_0x29c499(0x189)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x29c499(0x182)]()['catch'](_0x3eba98=>{const _0x4bf98d=_0x29c499;logger[_0x4bf98d(0x15b)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x3eba98[_0x4bf98d(0x14f)]+(_0x3eba98[_0x4bf98d(0x19c)]?_0x27784a['GEPkN'](_0x27784a[_0x4bf98d(0x188)],_0x3eba98[_0x4bf98d(0x19c)]):'')),this['state']=this['_getDefaultState']();}),this[_0x29c499(0x189)]&&this['startPolling'](),logger[_0x29c499(0x153)]('['+TAG+_0x29c499(0x177)+this[_0x29c499(0x19d)][_0x29c499(0x19b)]+_0x29c499(0x162)+this[_0x29c499(0x189)]);}[a132_0x20b17c(0x146)](){const _0x9bf93e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x9bf93e;}async[a132_0x20b17c(0x182)](){const _0x3994e3=a132_0x20b17c,_0x592e55={};_0x592e55[_0x3994e3(0x140)]=function(_0x1328b8,_0x2e2c43){return _0x1328b8+_0x2e2c43;},_0x592e55[_0x3994e3(0x154)]=_0x3994e3(0x198),_0x592e55[_0x3994e3(0x137)]=function(_0x565294,_0x5dcf37){return _0x565294+_0x5dcf37;};const _0x41640a=_0x592e55;if(this[_0x3994e3(0x189)])try{fs['existsSync'](this[_0x3994e3(0x169)])&&(this[_0x3994e3(0x16d)]['failFastActive']=!![],logger['debug']('['+TAG+_0x3994e3(0x150)));}catch(_0x23384f){logger[_0x3994e3(0x15b)]('['+TAG+_0x3994e3(0x1b2)+_0x23384f['message']+(_0x23384f[_0x3994e3(0x19c)]?_0x41640a['WLAfP'](_0x41640a['MMdyD'],_0x23384f['stack']):''));}else try{const _0xaadf0d=await this[_0x3994e3(0x163)][_0x3994e3(0x156)]();if(_0xaadf0d)this['state']={...this[_0x3994e3(0x146)](),..._0xaadf0d,'uniqueFailedTests':new Set(_0xaadf0d[_0x3994e3(0x142)]||[])},logger[_0x3994e3(0x153)]('['+TAG+_0x3994e3(0x181));else{logger['debug']('['+TAG+_0x3994e3(0x13c));const _0x5c4cdf=this[_0x3994e3(0x146)](),_0x36fe94={..._0x5c4cdf,'uniqueFailedTests':Array['from'](_0x5c4cdf[_0x3994e3(0x142)])};await this[_0x3994e3(0x163)]['writeState'](_0x36fe94),this['state']=_0x5c4cdf;}}catch(_0x136530){logger[_0x3994e3(0x153)]('['+TAG+_0x3994e3(0x15e)+_0x136530[_0x3994e3(0x14f)]+(_0x136530[_0x3994e3(0x19c)]?_0x41640a[_0x3994e3(0x137)](_0x41640a[_0x3994e3(0x154)],_0x136530[_0x3994e3(0x19c)]):'')),this['state']=this['_getDefaultState']();}}async['onTestDone'](_0x7d64c1,_0x308054){const _0xa65bac=a132_0x20b17c,_0x4fc6cc={};_0x4fc6cc[_0xa65bac(0x199)]=function(_0x4ca933,_0xa248c1){return _0x4ca933>_0xa248c1;},_0x4fc6cc[_0xa65bac(0x167)]=function(_0xa9323d,_0x1395d5){return _0xa9323d>_0x1395d5;},_0x4fc6cc[_0xa65bac(0x1aa)]=_0xa65bac(0x176),_0x4fc6cc['IVQTb']=_0xa65bac(0x18c),_0x4fc6cc[_0xa65bac(0x180)]=function(_0x4fb200,_0x121809){return _0x4fb200+_0x121809;},_0x4fc6cc[_0xa65bac(0x14e)]=_0xa65bac(0x198),_0x4fc6cc['WpLpJ']=function(_0x3ac9f5,_0x118860){return _0x3ac9f5||_0x118860;};const _0x5f306c=_0x4fc6cc;if(this[_0xa65bac(0x189)])this['state']['totalTests']+=0x1,_0x308054&&_0x5f306c[_0xa65bac(0x199)](_0x308054[_0xa65bac(0x1a8)],0x0)&&(!this['reportedFailuresToAPI'][_0xa65bac(0x17f)](_0x7d64c1)&&(await this['_sendFailedTestsToAPI'](_0x7d64c1),this[_0xa65bac(0x187)]['add'](_0x7d64c1)));else try{const _0x106798={'fullName':_0x7d64c1,'status':_0x308054&&_0x5f306c[_0xa65bac(0x167)](_0x308054[_0xa65bac(0x1a8)],0x0)?_0x5f306c[_0xa65bac(0x1aa)]:_0x5f306c[_0xa65bac(0x18e)]},_0x1c74b6=await this[_0xa65bac(0x163)][_0xa65bac(0x192)](_0x106798);this[_0xa65bac(0x16d)]={...this[_0xa65bac(0x146)](),..._0x1c74b6[_0xa65bac(0x170)],'uniqueFailedTests':new Set(_0x1c74b6[_0xa65bac(0x170)]['uniqueFailedTests']||[])};}catch(_0x1272ae){logger['error']('['+TAG+_0xa65bac(0x13d)+_0x1272ae[_0xa65bac(0x14f)]+(_0x1272ae[_0xa65bac(0x19c)]?_0x5f306c[_0xa65bac(0x180)](_0x5f306c[_0xa65bac(0x14e)],_0x1272ae[_0xa65bac(0x19c)]):''));try{const _0x3c4eca=await this[_0xa65bac(0x163)]['readState']();this['state']={...this[_0xa65bac(0x146)](),..._0x5f306c['WpLpJ'](_0x3c4eca,{}),'uniqueFailedTests':new Set(_0x3c4eca?_0x3c4eca[_0xa65bac(0x142)]||[]:[])},logger['debug']('['+TAG+_0xa65bac(0x1b6));}catch(_0x5f39d7){logger[_0xa65bac(0x15b)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5f39d7[_0xa65bac(0x14f)]+(_0x5f39d7[_0xa65bac(0x19c)]?_0x5f306c['gcIJk'](_0x5f306c[_0xa65bac(0x14e)],_0x5f39d7[_0xa65bac(0x19c)]):'')),this[_0xa65bac(0x16d)]=this[_0xa65bac(0x146)]();}}}async[a132_0x20b17c(0x159)](_0x38051c){const _0x1649ad=a132_0x20b17c,_0x45114d={};_0x45114d['nXRlY']=function(_0x1bad78,_0x3aa80c){return _0x1bad78+_0x3aa80c;},_0x45114d[_0x1649ad(0x17c)]=_0x1649ad(0x198);const _0x5d08e0=_0x45114d;if(!this[_0x1649ad(0x189)]||!_0x38051c)return;try{logger[_0x1649ad(0x153)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x38051c);const _0x579088={};_0x579088['buildName']=this['buildName'],_0x579088[_0x1649ad(0x1b1)]=this['projectName'],_0x579088[_0x1649ad(0x178)]=[_0x38051c],_0x579088[_0x1649ad(0x193)]=process[_0x1649ad(0x157)][_0x1649ad(0x1a0)],await RequestUtils[_0x1649ad(0x16e)](_0x579088);}catch(_0x4c294a){logger[_0x1649ad(0x15b)]('['+TAG+_0x1649ad(0x16b)+_0x38051c+_0x1649ad(0x148)+_0x4c294a[_0x1649ad(0x14f)]+(_0x4c294a['stack']?_0x5d08e0[_0x1649ad(0x1a5)](_0x5d08e0[_0x1649ad(0x17c)],_0x4c294a['stack']):''));}}async[a132_0x20b17c(0x1a2)](){const _0x2db20e=a132_0x20b17c,_0x3b65f9={};_0x3b65f9['XQaYg']=function(_0xb29f1c,_0x4a4cdc){return _0xb29f1c===_0x4a4cdc;},_0x3b65f9[_0x2db20e(0x17e)]=_0x2db20e(0x141),_0x3b65f9['woATl']=function(_0x1a8a96,_0x24e727){return _0x1a8a96+_0x24e727;},_0x3b65f9[_0x2db20e(0x15d)]=_0x2db20e(0x198),_0x3b65f9[_0x2db20e(0x13f)]=function(_0x16c7af,_0x2f60b5){return _0x16c7af!==_0x2f60b5;};const _0x2a8b0c=_0x3b65f9;if(!this[_0x2db20e(0x189)])return 0x0;try{const _0xc8bcfa={};_0xc8bcfa[_0x2db20e(0x18d)]=this['buildName'],_0xc8bcfa['projectName']=this[_0x2db20e(0x1b1)],_0xc8bcfa[_0x2db20e(0x193)]=process['env'][_0x2db20e(0x1a0)];const _0x399dfd=await RequestUtils[_0x2db20e(0x1a3)](_0xc8bcfa);return logger['debug']('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x399dfd),_0x2a8b0c[_0x2db20e(0x195)](typeof _0x399dfd,_0x2a8b0c[_0x2db20e(0x17e)])?_0x399dfd:0x0;}catch(_0x2a554a){return logger[_0x2db20e(0x15b)]('['+TAG+_0x2db20e(0x133)+_0x2a554a[_0x2db20e(0x14f)]+(_0x2a554a[_0x2db20e(0x19c)]?_0x2a8b0c[_0x2db20e(0x147)](_0x2a8b0c[_0x2db20e(0x15d)],_0x2a554a[_0x2db20e(0x19c)]):'')),_0x2a8b0c[_0x2db20e(0x13f)](this[_0x2db20e(0x16d)]['lastAPIFailedCount'],undefined)?this[_0x2db20e(0x16d)][_0x2db20e(0x151)]:0x0;}}async[a132_0x20b17c(0x194)](){const _0x45e638=a132_0x20b17c,_0x54fc07={};_0x54fc07['UtQWx']=function(_0x16984e,_0x25f3b6){return _0x16984e!==_0x25f3b6;},_0x54fc07[_0x45e638(0x174)]=function(_0x2610c3,_0x281120){return _0x2610c3+_0x281120;},_0x54fc07[_0x45e638(0x17b)]='\x0aStack:\x20';const _0x157798=_0x54fc07;if(!this['isCIMode'])return;try{const _0x4802b7=await this['_fetchAPIFailedCount']();_0x157798[_0x45e638(0x158)](_0x4802b7,this['state'][_0x45e638(0x151)])&&(logger['debug']('['+TAG+_0x45e638(0x17d)+_0x4802b7+'\x20(was\x20'+this[_0x45e638(0x16d)][_0x45e638(0x151)]+')'),this[_0x45e638(0x16d)][_0x45e638(0x151)]=_0x4802b7);}catch(_0x9ccd70){logger[_0x45e638(0x15b)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x9ccd70['message']+(_0x9ccd70[_0x45e638(0x19c)]?_0x157798[_0x45e638(0x174)](_0x157798[_0x45e638(0x17b)],_0x9ccd70[_0x45e638(0x19c)]):''));}}async['startPolling'](){const _0x5e0d82=a132_0x20b17c,_0x4551f0={'ArYzp':function(_0x423573,_0xf7019f,_0x2f8a5f){return _0x423573(_0xf7019f,_0x2f8a5f);}};this['pollingInterval']&&this[_0x5e0d82(0x139)](),this[_0x5e0d82(0x189)]&&(await this[_0x5e0d82(0x194)](),this[_0x5e0d82(0x14c)]=_0x4551f0[_0x5e0d82(0x143)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x5e0d82(0x153)]('['+TAG+_0x5e0d82(0x160)+POLLING_INTERVAL+'ms.'));}[a132_0x20b17c(0x139)](){const _0x3f9015=a132_0x20b17c,_0x1e7b2a={'EWQTT':function(_0x3be24f,_0x9b9d03){return _0x3be24f(_0x9b9d03);}};this['pollingInterval']&&(_0x1e7b2a['EWQTT'](clearInterval,this['pollingInterval']),this['pollingInterval']=null,logger[_0x3f9015(0x153)]('['+TAG+']\x20Polling\x20stopped.'));}async[a132_0x20b17c(0x1ae)](){const _0x4eb082=a132_0x20b17c,_0x29bb69={};_0x29bb69[_0x4eb082(0x179)]=function(_0xab48d1,_0x1bb7d3){return _0xab48d1===_0x1bb7d3;},_0x29bb69[_0x4eb082(0x152)]=function(_0x390009,_0x3ffa44){return _0x390009<=_0x3ffa44;},_0x29bb69[_0x4eb082(0x1b4)]=function(_0x44e54e,_0x41a3a7){return _0x44e54e+_0x41a3a7;},_0x29bb69[_0x4eb082(0x16a)]='\x0aStack:\x20',_0x29bb69[_0x4eb082(0x18a)]=function(_0x48e1de,_0x56ebb6){return _0x48e1de!==_0x56ebb6;},_0x29bb69['VhOGI']=function(_0x447385,_0x8405fb){return _0x447385>=_0x8405fb;},_0x29bb69[_0x4eb082(0x1af)]=function(_0x3b0816,_0x57a52a){return _0x3b0816>=_0x57a52a;},_0x29bb69[_0x4eb082(0x1ad)]=function(_0x46c028,_0x309f79){return _0x46c028+_0x309f79;};const _0x294124=_0x29bb69,{failureThresholdCount:_0x39af0e}=this[_0x4eb082(0x19d)];if(_0x294124['umrqm'](_0x39af0e,null)||_0x294124[_0x4eb082(0x179)](_0x39af0e,undefined)||_0x294124[_0x4eb082(0x152)](_0x39af0e,0x0))return logger['debug']('['+TAG+_0x4eb082(0x138)),![];if(this[_0x4eb082(0x189)]){try{if(fs['existsSync'](this[_0x4eb082(0x169)]))return logger['debug']('['+TAG+_0x4eb082(0x18f)),!this[_0x4eb082(0x16d)][_0x4eb082(0x145)]&&(this['state'][_0x4eb082(0x145)]=!![]),this[_0x4eb082(0x139)](),!![];}catch(_0x55d193){logger[_0x4eb082(0x15b)]('['+TAG+_0x4eb082(0x1b2)+_0x55d193[_0x4eb082(0x14f)]+(_0x55d193[_0x4eb082(0x19c)]?_0x294124[_0x4eb082(0x1b4)](_0x294124[_0x4eb082(0x16a)],_0x55d193[_0x4eb082(0x19c)]):''));}const _0x24b6b1=_0x294124[_0x4eb082(0x18a)](this[_0x4eb082(0x16d)]['lastAPIFailedCount'],undefined)?this[_0x4eb082(0x16d)][_0x4eb082(0x151)]:0x0;if(_0x294124[_0x4eb082(0x132)](_0x24b6b1,_0x39af0e)){logger[_0x4eb082(0x136)]('['+TAG+_0x4eb082(0x19f)+_0x24b6b1+_0x4eb082(0x183)+_0x39af0e+'.');try{fs[_0x4eb082(0x1a1)](this['failFastActiveMarkerPath'],new Date()[_0x4eb082(0x197)]()),logger['debug']('['+TAG+_0x4eb082(0x165)+this[_0x4eb082(0x169)]),this[_0x4eb082(0x16d)][_0x4eb082(0x145)]=!![];}catch(_0x239433){logger[_0x4eb082(0x15b)]('['+TAG+_0x4eb082(0x175)+_0x239433[_0x4eb082(0x14f)]+(_0x239433['stack']?_0x294124['AENmx'](_0x294124[_0x4eb082(0x16a)],_0x239433[_0x4eb082(0x19c)]):''));}return this['stopPolling'](),!![];}}else{let _0x363d3a;try{_0x363d3a=await this[_0x4eb082(0x163)][_0x4eb082(0x156)]();if(!_0x363d3a)return logger[_0x4eb082(0x15c)]('['+TAG+_0x4eb082(0x172)),![];}catch(_0xa34726){return logger[_0x4eb082(0x15b)]('['+TAG+_0x4eb082(0x15a)+_0xa34726[_0x4eb082(0x14f)]+(_0xa34726['stack']?_0x294124[_0x4eb082(0x1b4)](_0x294124['yEkxG'],_0xa34726[_0x4eb082(0x19c)]):'')),![];}this['state']={...this['_getDefaultState'](),..._0x363d3a,'uniqueFailedTests':new Set(_0x363d3a[_0x4eb082(0x142)]||[])};if(this[_0x4eb082(0x16d)][_0x4eb082(0x145)])return logger[_0x4eb082(0x153)]('['+TAG+_0x4eb082(0x1b3)),!![];const _0x3c0aa3=this[_0x4eb082(0x16d)][_0x4eb082(0x142)],_0x16a60c=_0x3c0aa3[_0x4eb082(0x186)];if(_0x294124['yMpGW'](_0x16a60c,_0x39af0e)){try{logger['info']('['+TAG+_0x4eb082(0x184)+_0x16a60c+_0x4eb082(0x183)+_0x39af0e+'.'),this[_0x4eb082(0x16d)][_0x4eb082(0x145)]=!![];}catch(_0x38799c){logger['error']('['+TAG+_0x4eb082(0x161)+_0x38799c[_0x4eb082(0x14f)]+(_0x38799c['stack']?_0x294124[_0x4eb082(0x1ad)](_0x294124[_0x4eb082(0x16a)],_0x38799c[_0x4eb082(0x19c)]):''));}return!![];}}return![];}async[a132_0x20b17c(0x13b)](){const _0x225621=a132_0x20b17c,_0x464895={};_0x464895[_0x225621(0x185)]=function(_0xae9c9,_0x3fed81){return _0xae9c9+_0x3fed81;},_0x464895[_0x225621(0x13e)]='\x0aStack:\x20';const _0x25bc75=_0x464895;this[_0x225621(0x139)]();if(this[_0x225621(0x189)])logger[_0x225621(0x153)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x26f346={...this[_0x225621(0x16d)],'uniqueFailedTests':Array[_0x225621(0x16f)](this[_0x225621(0x16d)][_0x225621(0x142)]||new Set())};await this[_0x225621(0x163)]['writeState'](_0x26f346),logger[_0x225621(0x153)]('['+TAG+_0x225621(0x19e));}catch(_0x5c4970){logger[_0x225621(0x15b)]('['+TAG+_0x225621(0x166)+_0x5c4970['message']+(_0x5c4970[_0x225621(0x19c)]?_0x25bc75['ZIKVA'](_0x25bc75[_0x225621(0x13e)],_0x5c4970['stack']):''));}}}module[a132_0x20b17c(0x155)]=FailFastManager;function a132_0x4cb8(){const _0x260737=['_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','UPWXM','bdLjK','info','tQcvA',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','stopPolling','EyOBZ','cleanup','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','iLhRw','ZFCMR','WLAfP','number','uniqueFailedTests','ArYzp','12ICvIWS','failFastActive','_getDefaultState','woATl','\x20to\x20API:\x20','failFast.active','7bcObQP','2720420tfEFkP','pollingInterval','failFastState.lock','jQIWZ','message','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','lastAPIFailedCount','ALwCp','debug','MMdyD','exports','readState','env','UtQWx','_sendFailedTestsToAPI','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','error','warn','wRZMY','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','1227300arkIOc','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20',',\x20CI\x20Mode:\x20','fileHelper','5nFQfDb','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','qmGnf','9fQneEx','failFastActiveMarkerPath','yEkxG','_CI]\x20Error\x20sending\x20failed\x20test\x20','./fileHelper','state','putFailedTests','from','newState','32949oHWvMO','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','join','ZRHES','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failed',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','failedTests','umrqm','BROWSERSTACK_TOTAL_NODE_COUNT','uVPyg','wDamk','_CI]\x20API\x20failed\x20count\x20updated:\x20','QkOsV','has','gcIJk','_Local]\x20State\x20initialized\x20from\x20file.','_initializeStateFromFile',',\x20threshold:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','ZIKVA','size','reportedFailuresToAPI','dyOta','isCIMode','KodUa','winstonLogger','passed','buildName','IVQTb','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','FailFastManager','lockFilePath','recordTestResult','buildRunIdentifier','_pollFailedTests','XQaYg','GEPkN','toISOString','\x0aStack:\x20','JrrfX','foSeq','failureThresholdCount','stack','failFastConfig','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','writeFileSync','_fetchAPIFailedCount','getFailedTestsCount','518355nWkvcg','nXRlY','stateFilePath','failFastState.json','length','2160272RDqrCc','mxlXv','8299775eXvRBO','1554060FNdQGr','OyhxK','shouldFailFast','yMpGW','./requestUtils','projectName','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','AENmx','workingDir','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','VhOGI'];a132_0x4cb8=function(){return _0x260737;};return a132_0x4cb8();}
1
+ const a132_0x18b21c=a132_0x431a;(function(_0x5c7cf0,_0x1dac4d){const _0x4be74f=a132_0x431a,_0x4adc63=_0x5c7cf0();while(!![]){try{const _0x35fa3a=parseInt(_0x4be74f(0x144))/0x1*(parseInt(_0x4be74f(0x15e))/0x2)+-parseInt(_0x4be74f(0x109))/0x3*(-parseInt(_0x4be74f(0x163))/0x4)+-parseInt(_0x4be74f(0x16d))/0x5*(-parseInt(_0x4be74f(0x10c))/0x6)+parseInt(_0x4be74f(0x146))/0x7*(parseInt(_0x4be74f(0xfe))/0x8)+parseInt(_0x4be74f(0x14f))/0x9+parseInt(_0x4be74f(0x12c))/0xa*(parseInt(_0x4be74f(0x168))/0xb)+-parseInt(_0x4be74f(0xf9))/0xc;if(_0x35fa3a===_0x1dac4d)break;else _0x4adc63['push'](_0x4adc63['shift']());}catch(_0x5187c7){_0x4adc63['push'](_0x4adc63['shift']());}}}(a132_0x2c5a,0x2e16f));const fs=require('fs'),path=require('path'),FileHelper=require(a132_0x18b21c(0x157)),RequestUtils=require('./requestUtils'),logger=require('../logger')[a132_0x18b21c(0x135)],POLLING_INTERVAL=0x2710,TAG=a132_0x18b21c(0x149);function a132_0x431a(_0x3e6728,_0xcc1ccb){const _0x2c5a43=a132_0x2c5a();return a132_0x431a=function(_0x431ab1,_0x144f1f){_0x431ab1=_0x431ab1-0xf0;let _0x39b3fd=_0x2c5a43[_0x431ab1];return _0x39b3fd;},a132_0x431a(_0x3e6728,_0xcc1ccb);}class FailFastManager{constructor(_0x390fdc,_0x228cfd,_0x1baa4e){const _0x30fb72=a132_0x18b21c,_0x5ee16d={};_0x5ee16d['ZtLie']=function(_0x4d452e,_0x4e92dc){return _0x4d452e+_0x4e92dc;},_0x5ee16d[_0x30fb72(0x153)]=_0x30fb72(0xf0),_0x5ee16d[_0x30fb72(0x160)]=function(_0x2cdd4d,_0x2fadc6){return _0x2cdd4d||_0x2fadc6;},_0x5ee16d[_0x30fb72(0xff)]=_0x30fb72(0x15c),_0x5ee16d[_0x30fb72(0x158)]='failFastState.lock',_0x5ee16d['MvpGo']='failFast.active';const _0x16a2d7=_0x5ee16d;this[_0x30fb72(0x16e)]=_0x16a2d7[_0x30fb72(0x160)](_0x390fdc,{}),this['buildName']=_0x228cfd,this['projectName']=_0x1baa4e,this[_0x30fb72(0xf6)]=!!(process[_0x30fb72(0x15d)][_0x30fb72(0x15a)]&&process[_0x30fb72(0x15d)][_0x30fb72(0xf2)]&&process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x467a08=this[_0x30fb72(0x16e)]['workingDir'];this[_0x30fb72(0xf1)]=path[_0x30fb72(0x154)](_0x467a08,_0x16a2d7[_0x30fb72(0xff)]),this[_0x30fb72(0x139)]=path[_0x30fb72(0x154)](_0x467a08,_0x16a2d7['EHPST']),this[_0x30fb72(0x164)]=path[_0x30fb72(0x154)](_0x467a08,_0x16a2d7[_0x30fb72(0x106)]),this[_0x30fb72(0x121)]=new FileHelper(this['failFastConfig'],this['stateFilePath'],this[_0x30fb72(0x139)],this[_0x30fb72(0x15f)]()),this[_0x30fb72(0x11e)]=this[_0x30fb72(0x15f)](),this[_0x30fb72(0x13b)]=null,this['isCIMode']&&(this['reportedFailuresToAPI']=new Set()),this[_0x30fb72(0x11c)]()[_0x30fb72(0x114)](_0x9d7797=>{const _0x135fca=_0x30fb72;logger[_0x135fca(0xf4)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x9d7797[_0x135fca(0x112)]+(_0x9d7797[_0x135fca(0x118)]?_0x16a2d7[_0x135fca(0x100)](_0x16a2d7[_0x135fca(0x153)],_0x9d7797[_0x135fca(0x118)]):'')),this['state']=this[_0x135fca(0x15f)]();}),this['isCIMode']&&this[_0x30fb72(0x13e)](),logger['debug']('['+TAG+_0x30fb72(0x140)+this['failFastConfig'][_0x30fb72(0x122)]+_0x30fb72(0x16a)+this[_0x30fb72(0xf6)]);}['_getDefaultState'](){const _0x27042e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x27042e;}async['_initializeStateFromFile'](){const _0x58c468=a132_0x18b21c,_0x5e7f0c={};_0x5e7f0c[_0x58c468(0x113)]=function(_0x570b38,_0x2666ab){return _0x570b38+_0x2666ab;},_0x5e7f0c['DOaDN']=_0x58c468(0xf0),_0x5e7f0c['DuBmj']=function(_0x47be5c,_0x8677f1){return _0x47be5c+_0x8677f1;};const _0x51d128=_0x5e7f0c;if(this[_0x58c468(0xf6)])try{fs[_0x58c468(0x130)](this[_0x58c468(0x164)])&&(this[_0x58c468(0x11e)][_0x58c468(0x137)]=!![],logger['debug']('['+TAG+_0x58c468(0x115)));}catch(_0x3c6173){logger[_0x58c468(0xf4)]('['+TAG+_0x58c468(0x12b)+_0x3c6173[_0x58c468(0x112)]+(_0x3c6173[_0x58c468(0x118)]?_0x51d128[_0x58c468(0x113)](_0x51d128['DOaDN'],_0x3c6173[_0x58c468(0x118)]):''));}else try{const _0x317673=await this[_0x58c468(0x121)]['readState']();if(_0x317673)this[_0x58c468(0x11e)]={...this['_getDefaultState'](),..._0x317673,'uniqueFailedTests':new Set(_0x317673[_0x58c468(0x16b)]||[])},logger[_0x58c468(0x103)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x58c468(0x103)]('['+TAG+_0x58c468(0x132));const _0x103b48=this[_0x58c468(0x15f)](),_0x2dc99d={..._0x103b48,'uniqueFailedTests':Array[_0x58c468(0x11a)](_0x103b48['uniqueFailedTests'])};await this['fileHelper'][_0x58c468(0x165)](_0x2dc99d),this[_0x58c468(0x11e)]=_0x103b48;}}catch(_0x4efcdf){logger[_0x58c468(0x103)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x4efcdf['message']+(_0x4efcdf[_0x58c468(0x118)]?_0x51d128[_0x58c468(0x15b)](_0x51d128[_0x58c468(0x129)],_0x4efcdf[_0x58c468(0x118)]):'')),this['state']=this[_0x58c468(0x15f)]();}}async[a132_0x18b21c(0x10a)](_0x3563b2,_0x15eff8){const _0x594f02=a132_0x18b21c,_0x197001={};_0x197001[_0x594f02(0x11f)]=function(_0x39131f,_0xa9d526){return _0x39131f>_0xa9d526;},_0x197001[_0x594f02(0x14a)]='failed',_0x197001['LTrVt']=_0x594f02(0xf7),_0x197001[_0x594f02(0x126)]=function(_0x530115,_0x464b0a){return _0x530115+_0x464b0a;},_0x197001[_0x594f02(0xf8)]=_0x594f02(0xf0),_0x197001[_0x594f02(0x119)]=function(_0x33e1c4,_0x50fdc4){return _0x33e1c4||_0x50fdc4;},_0x197001['DnRRd']=function(_0xa5d72c,_0x3e6c14){return _0xa5d72c+_0x3e6c14;};const _0x18af63=_0x197001;if(this[_0x594f02(0xf6)])this[_0x594f02(0x11e)][_0x594f02(0x116)]+=0x1,_0x15eff8&&_0x18af63[_0x594f02(0x11f)](_0x15eff8['length'],0x0)&&(!this[_0x594f02(0x13a)][_0x594f02(0x124)](_0x3563b2)&&(await this[_0x594f02(0x12f)](_0x3563b2),this['reportedFailuresToAPI'][_0x594f02(0x169)](_0x3563b2)));else try{const _0x464858={'fullName':_0x3563b2,'status':_0x15eff8&&_0x18af63[_0x594f02(0x11f)](_0x15eff8[_0x594f02(0x117)],0x0)?_0x18af63[_0x594f02(0x14a)]:_0x18af63[_0x594f02(0x127)]},_0x227349=await this[_0x594f02(0x121)][_0x594f02(0x128)](_0x464858);this[_0x594f02(0x11e)]={...this['_getDefaultState'](),..._0x227349[_0x594f02(0x14b)],'uniqueFailedTests':new Set(_0x227349[_0x594f02(0x14b)][_0x594f02(0x16b)]||[])};}catch(_0x5a0b69){logger[_0x594f02(0xf4)]('['+TAG+_0x594f02(0x105)+_0x5a0b69['message']+(_0x5a0b69['stack']?_0x18af63[_0x594f02(0x126)](_0x18af63[_0x594f02(0xf8)],_0x5a0b69['stack']):''));try{const _0x2bb7bd=await this[_0x594f02(0x121)]['readState']();this[_0x594f02(0x11e)]={...this['_getDefaultState'](),..._0x18af63[_0x594f02(0x119)](_0x2bb7bd,{}),'uniqueFailedTests':new Set(_0x2bb7bd?_0x2bb7bd[_0x594f02(0x16b)]||[]:[])},logger[_0x594f02(0x103)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x2bceee){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x2bceee[_0x594f02(0x112)]+(_0x2bceee[_0x594f02(0x118)]?_0x18af63[_0x594f02(0x102)](_0x18af63[_0x594f02(0xf8)],_0x2bceee[_0x594f02(0x118)]):'')),this[_0x594f02(0x11e)]=this[_0x594f02(0x15f)]();}}}async[a132_0x18b21c(0x12f)](_0x14eeb3){const _0x217271=a132_0x18b21c,_0x2228fe={};_0x2228fe[_0x217271(0xfd)]=function(_0x4d4dfd,_0x19f4d7){return _0x4d4dfd+_0x19f4d7;},_0x2228fe[_0x217271(0x167)]=_0x217271(0xf0);const _0x57dc3d=_0x2228fe;if(!this[_0x217271(0xf6)]||!_0x14eeb3)return;try{logger[_0x217271(0x103)]('['+TAG+_0x217271(0x101)+_0x14eeb3);const _0xf3f21a={};_0xf3f21a['buildName']=this[_0x217271(0x120)],_0xf3f21a[_0x217271(0xf3)]=this['projectName'],_0xf3f21a[_0x217271(0x111)]=[_0x14eeb3],_0xf3f21a['buildRunIdentifier']=process[_0x217271(0x15d)][_0x217271(0x15a)],await RequestUtils[_0x217271(0x14c)](_0xf3f21a);}catch(_0x3d776d){logger[_0x217271(0xf4)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x14eeb3+_0x217271(0x108)+_0x3d776d[_0x217271(0x112)]+(_0x3d776d[_0x217271(0x118)]?_0x57dc3d[_0x217271(0xfd)](_0x57dc3d[_0x217271(0x167)],_0x3d776d['stack']):''));}}async[a132_0x18b21c(0x148)](){const _0x461701=a132_0x18b21c,_0x4c829d={};_0x4c829d[_0x461701(0x14e)]=function(_0x306fb5,_0x20f54a){return _0x306fb5===_0x20f54a;},_0x4c829d[_0x461701(0x150)]=_0x461701(0x159),_0x4c829d[_0x461701(0x143)]=function(_0x46becb,_0xd0b940){return _0x46becb+_0xd0b940;},_0x4c829d[_0x461701(0x10d)]=_0x461701(0xf0),_0x4c829d[_0x461701(0x155)]=function(_0x69e34d,_0x41c2e9){return _0x69e34d!==_0x41c2e9;};const _0x338094=_0x4c829d;if(!this[_0x461701(0xf6)])return 0x0;try{const _0x5285b9={};_0x5285b9[_0x461701(0x120)]=this[_0x461701(0x120)],_0x5285b9[_0x461701(0xf3)]=this[_0x461701(0xf3)],_0x5285b9[_0x461701(0x134)]=process[_0x461701(0x15d)][_0x461701(0x15a)];const _0x743287=await RequestUtils[_0x461701(0x104)](_0x5285b9);return logger[_0x461701(0x103)]('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x743287),_0x338094[_0x461701(0x14e)](typeof _0x743287,_0x338094[_0x461701(0x150)])?_0x743287:0x0;}catch(_0x309486){return logger['error']('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x309486[_0x461701(0x112)]+(_0x309486[_0x461701(0x118)]?_0x338094[_0x461701(0x143)](_0x338094[_0x461701(0x10d)],_0x309486[_0x461701(0x118)]):'')),_0x338094[_0x461701(0x155)](this[_0x461701(0x11e)]['lastAPIFailedCount'],undefined)?this[_0x461701(0x11e)]['lastAPIFailedCount']:0x0;}}async['_pollFailedTests'](){const _0x25ea1b=a132_0x18b21c,_0x553d21={};_0x553d21['VmzMn']=function(_0x165e6c,_0x2a73ec){return _0x165e6c!==_0x2a73ec;},_0x553d21['cqpje']=function(_0x3e0b58,_0x19ac0c){return _0x3e0b58+_0x19ac0c;},_0x553d21[_0x25ea1b(0x133)]=_0x25ea1b(0xf0);const _0x44bc43=_0x553d21;if(!this[_0x25ea1b(0xf6)])return;try{const _0x361a48=await this[_0x25ea1b(0x148)]();_0x44bc43['VmzMn'](_0x361a48,this[_0x25ea1b(0x11e)][_0x25ea1b(0x13d)])&&(logger[_0x25ea1b(0x103)]('['+TAG+_0x25ea1b(0x145)+_0x361a48+'\x20(was\x20'+this['state']['lastAPIFailedCount']+')'),this[_0x25ea1b(0x11e)]['lastAPIFailedCount']=_0x361a48);}catch(_0x4d5274){logger[_0x25ea1b(0xf4)]('['+TAG+_0x25ea1b(0xf5)+_0x4d5274[_0x25ea1b(0x112)]+(_0x4d5274[_0x25ea1b(0x118)]?_0x44bc43[_0x25ea1b(0x156)](_0x44bc43[_0x25ea1b(0x133)],_0x4d5274[_0x25ea1b(0x118)]):''));}}async[a132_0x18b21c(0x13e)](){const _0xa6c47d=a132_0x18b21c,_0x5abd59={'BhjLU':function(_0x29e249,_0xf681e8,_0xcd398e){return _0x29e249(_0xf681e8,_0xcd398e);}};this['pollingInterval']&&this[_0xa6c47d(0x152)](),this[_0xa6c47d(0xf6)]&&(await this[_0xa6c47d(0x162)](),this[_0xa6c47d(0x13b)]=_0x5abd59[_0xa6c47d(0x13c)](setInterval,async()=>{const _0xfff68e=_0xa6c47d;await this[_0xfff68e(0x162)]();},POLLING_INTERVAL),logger[_0xa6c47d(0x103)]('['+TAG+_0xa6c47d(0x11b)+POLLING_INTERVAL+_0xa6c47d(0x10e)));}[a132_0x18b21c(0x152)](){const _0x647a0b=a132_0x18b21c,_0x1ae4ff={'WZKrn':function(_0x170c54,_0x25792e){return _0x170c54(_0x25792e);}};this[_0x647a0b(0x13b)]&&(_0x1ae4ff[_0x647a0b(0x136)](clearInterval,this[_0x647a0b(0x13b)]),this['pollingInterval']=null,logger[_0x647a0b(0x103)]('['+TAG+_0x647a0b(0x11d)));}async['shouldFailFast'](){const _0x5d1abe=a132_0x18b21c,_0x180626={};_0x180626['QPkQY']=function(_0x2694ed,_0x2ea456){return _0x2694ed===_0x2ea456;},_0x180626[_0x5d1abe(0x142)]=function(_0x416f43,_0x22a241){return _0x416f43===_0x22a241;},_0x180626['VIwJa']=function(_0x4e9d43,_0x5a3380){return _0x4e9d43<=_0x5a3380;},_0x180626[_0x5d1abe(0x161)]=function(_0x39b4a1,_0x376fcb){return _0x39b4a1+_0x376fcb;},_0x180626[_0x5d1abe(0x107)]=_0x5d1abe(0xf0),_0x180626[_0x5d1abe(0x16c)]=function(_0x3c2385,_0xce36e7){return _0x3c2385!==_0xce36e7;},_0x180626['zBWVJ']=function(_0x48e5f2,_0xad9979){return _0x48e5f2>=_0xad9979;};const _0x18c015=_0x180626,{failureThresholdCount:_0x239749}=this['failFastConfig'];if(_0x18c015[_0x5d1abe(0xfc)](_0x239749,null)||_0x18c015[_0x5d1abe(0x142)](_0x239749,undefined)||_0x18c015['VIwJa'](_0x239749,0x0))return logger['debug']('['+TAG+_0x5d1abe(0xfb)),![];if(this[_0x5d1abe(0xf6)]){try{if(fs[_0x5d1abe(0x130)](this['failFastActiveMarkerPath']))return logger[_0x5d1abe(0x103)]('['+TAG+_0x5d1abe(0x123)),!this['state']['failFastActive']&&(this['state'][_0x5d1abe(0x137)]=!![]),this[_0x5d1abe(0x152)](),!![];}catch(_0x165a9a){logger[_0x5d1abe(0xf4)]('['+TAG+_0x5d1abe(0x12b)+_0x165a9a[_0x5d1abe(0x112)]+(_0x165a9a[_0x5d1abe(0x118)]?_0x18c015[_0x5d1abe(0x161)](_0x18c015[_0x5d1abe(0x107)],_0x165a9a[_0x5d1abe(0x118)]):''));}const _0x52cb6b=_0x18c015[_0x5d1abe(0x16c)](this[_0x5d1abe(0x11e)][_0x5d1abe(0x13d)],undefined)?this[_0x5d1abe(0x11e)][_0x5d1abe(0x13d)]:0x0;if(_0x18c015[_0x5d1abe(0x151)](_0x52cb6b,_0x239749)){logger['info']('['+TAG+_0x5d1abe(0x12d)+_0x52cb6b+',\x20threshold:\x20'+_0x239749+'.');try{fs[_0x5d1abe(0x12e)](this[_0x5d1abe(0x164)],new Date()[_0x5d1abe(0x125)]()),logger['debug']('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this['failFastActiveMarkerPath']),this['state'][_0x5d1abe(0x137)]=!![];}catch(_0x20d28e){logger[_0x5d1abe(0xf4)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x20d28e[_0x5d1abe(0x112)]+(_0x20d28e[_0x5d1abe(0x118)]?_0x18c015[_0x5d1abe(0x161)](_0x18c015['OKqtQ'],_0x20d28e['stack']):''));}return this[_0x5d1abe(0x152)](),!![];}}else{let _0x5505e3;try{_0x5505e3=await this['fileHelper']['readState']();if(!_0x5505e3)return logger[_0x5d1abe(0x141)]('['+TAG+_0x5d1abe(0x12a)),![];}catch(_0x1a5829){return logger['error']('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x1a5829[_0x5d1abe(0x112)]+(_0x1a5829[_0x5d1abe(0x118)]?_0x18c015[_0x5d1abe(0x161)](_0x18c015[_0x5d1abe(0x107)],_0x1a5829['stack']):'')),![];}this[_0x5d1abe(0x11e)]={...this[_0x5d1abe(0x15f)](),..._0x5505e3,'uniqueFailedTests':new Set(_0x5505e3[_0x5d1abe(0x16b)]||[])};if(this[_0x5d1abe(0x11e)]['failFastActive'])return logger[_0x5d1abe(0x103)]('['+TAG+_0x5d1abe(0x13f)),!![];const _0x18201d=this['state'][_0x5d1abe(0x16b)],_0x1f298c=_0x18201d['size'];if(_0x18c015[_0x5d1abe(0x151)](_0x1f298c,_0x239749)){try{logger['info']('['+TAG+_0x5d1abe(0xfa)+_0x1f298c+_0x5d1abe(0x110)+_0x239749+'.'),this[_0x5d1abe(0x11e)][_0x5d1abe(0x137)]=!![];}catch(_0x272314){logger[_0x5d1abe(0xf4)]('['+TAG+_0x5d1abe(0x131)+_0x272314[_0x5d1abe(0x112)]+(_0x272314['stack']?_0x18c015[_0x5d1abe(0x161)](_0x18c015[_0x5d1abe(0x107)],_0x272314[_0x5d1abe(0x118)]):''));}return!![];}}return![];}async['cleanup'](){const _0x302f15=a132_0x18b21c,_0x2d7f38={};_0x2d7f38[_0x302f15(0x138)]=function(_0x3c25a4,_0x11266a){return _0x3c25a4+_0x11266a;},_0x2d7f38[_0x302f15(0x14d)]='\x0aStack:\x20';const _0x1519c6=_0x2d7f38;this[_0x302f15(0x152)]();if(this[_0x302f15(0xf6)])logger[_0x302f15(0x103)]('['+TAG+_0x302f15(0x166));else try{const _0x3e0d1c={...this['state'],'uniqueFailedTests':Array[_0x302f15(0x11a)](this[_0x302f15(0x11e)][_0x302f15(0x16b)]||new Set())};await this[_0x302f15(0x121)][_0x302f15(0x165)](_0x3e0d1c),logger[_0x302f15(0x103)]('['+TAG+_0x302f15(0x147));}catch(_0x35cc52){logger['error']('['+TAG+_0x302f15(0x10f)+_0x35cc52['message']+(_0x35cc52['stack']?_0x1519c6[_0x302f15(0x138)](_0x1519c6['nrbsj'],_0x35cc52[_0x302f15(0x118)]):''));}}}function a132_0x2c5a(){const _0x2894ff=['_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','uNWgj','buildRunIdentifier','winstonLogger','WZKrn','failFastActive','EkvjE','lockFilePath','reportedFailuresToAPI','pollingInterval','BhjLU','lastAPIFailedCount','startPolling','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','warn','vbTvC','lWzzt','224057BrqduK','_CI]\x20API\x20failed\x20count\x20updated:\x20','21nepUod','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_fetchAPIFailedCount','FailFastManager','Brmfn','newState','putFailedTests','nrbsj','ogiFi','1651437ffQvBZ','KsfdU','zBWVJ','stopPolling','CbMXW','join','ieNfK','cqpje','./fileHelper','EHPST','number','BROWSERSTACK_BUILD_RUN_IDENTIFIER','DuBmj','failFastState.json','env','2JoKsJK','_getDefaultState','iNJvQ','pRrzD','_pollFailedTests','233272ZKWDEj','failFastActiveMarkerPath','writeState','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','aKnNR','165RUYhtx','add',',\x20CI\x20Mode:\x20','uniqueFailedTests','Kkvui','16705DXFZrQ','failFastConfig','\x0aStack:\x20','stateFilePath','BROWSERSTACK_NODE_INDEX','projectName','error','_CI]\x20Error\x20during\x20polling\x20logic:\x20','isCIMode','passed','SKREK','9827760TWxegn','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','QPkQY','UcHdn','586472buMKnZ','kPMbL','ZtLie','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','DnRRd','debug','getFailedTestsCount','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','MvpGo','OKqtQ','\x20to\x20API:\x20','12doHkZP','onTestDone','exports','114hqINzp','stoGw','ms.','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20',',\x20threshold:\x20','failedTests','message','AKQil','catch','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','totalTests','length','stack','AEExh','from','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_initializeStateFromFile',']\x20Polling\x20stopped.','state','BLtwL','buildName','fileHelper','failureThresholdCount','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','has','toISOString','MDCcx','LTrVt','recordTestResult','DOaDN','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','55690ExChsS','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','writeFileSync','_sendFailedTestsToAPI','existsSync'];a132_0x2c5a=function(){return _0x2894ff;};return a132_0x2c5a();}module[a132_0x18b21c(0x10b)]=FailFastManager;
@@ -1 +1 @@
1
- const a133_0x30bfd9=a133_0x27da;(function(_0x4a7b55,_0x5252e3){const _0x1f8ea3=a133_0x27da,_0x328c44=_0x4a7b55();while(!![]){try{const _0xca8224=-parseInt(_0x1f8ea3(0x1d2))/0x1*(-parseInt(_0x1f8ea3(0x1c0))/0x2)+-parseInt(_0x1f8ea3(0x1b5))/0x3*(parseInt(_0x1f8ea3(0x1c4))/0x4)+parseInt(_0x1f8ea3(0x1e4))/0x5+parseInt(_0x1f8ea3(0x1d6))/0x6+parseInt(_0x1f8ea3(0x1bf))/0x7+parseInt(_0x1f8ea3(0x1b4))/0x8*(-parseInt(_0x1f8ea3(0x1bd))/0x9)+-parseInt(_0x1f8ea3(0x1c3))/0xa;if(_0xca8224===_0x5252e3)break;else _0x328c44['push'](_0x328c44['shift']());}catch(_0x383f9a){_0x328c44['push'](_0x328c44['shift']());}}}(a133_0x2d63,0x226a2));const fs=require('fs'),logger=require(a133_0x30bfd9(0x1da))[a133_0x30bfd9(0x1ce)],TAG=a133_0x30bfd9(0x1cf);class FileHelper{constructor(_0x246b32,_0x3ef3cb,_0x3bb334,_0x2f97fb){const _0x506b8d=a133_0x30bfd9,_0x5a58ac={};_0x5a58ac['wFmke']=_0x506b8d(0x1e5),_0x5a58ac[_0x506b8d(0x1de)]=_0x506b8d(0x1c9);const _0x545395=_0x5a58ac,_0x57d14e=_0x545395[_0x506b8d(0x1ec)]['split']('|');let _0x444f29=0x0;while(!![]){switch(_0x57d14e[_0x444f29++]){case'0':this['stateFilePath']=_0x3ef3cb;continue;case'1':this[_0x506b8d(0x1e6)]=_0x3bb334;continue;case'2':if(!fs['existsSync'](this[_0x506b8d(0x1c2)]))try{fs[_0x506b8d(0x1c8)](this[_0x506b8d(0x1c2)],'{}',_0x545395[_0x506b8d(0x1de)]);}catch(_0x11cbed){logger[_0x506b8d(0x1e2)]('['+TAG+_0x506b8d(0x1c5)+_0x11cbed[_0x506b8d(0x1cd)]+'\x20'+_0x11cbed[_0x506b8d(0x1eb)]);}continue;case'3':this[_0x506b8d(0x1c1)]=_0x246b32;continue;case'4':this[_0x506b8d(0x1df)]=_0x2f97fb;continue;}break;}}async[a133_0x30bfd9(0x1be)](){const _0x296493=a133_0x30bfd9,_0x2d278d={};_0x2d278d[_0x296493(0x1dc)]=function(_0x2a9527,_0x579efa){return _0x2a9527===_0x579efa;},_0x2d278d['asYHO']=_0x296493(0x1ba);const _0x64c51f=_0x2d278d;let _0x133a06;try{return _0x133a06=fs[_0x296493(0x1bc)](this[_0x296493(0x1e6)],'wx'),_0x133a06;}catch(_0x1b68c2){if(_0x64c51f[_0x296493(0x1dc)](_0x1b68c2[_0x296493(0x1d7)],_0x64c51f[_0x296493(0x1bb)]))return null;throw _0x1b68c2;}}async['releaseLock'](_0x694e47){const _0x1f95e2=a133_0x30bfd9;if(_0x694e47)try{fs[_0x1f95e2(0x1b6)](_0x694e47),fs[_0x1f95e2(0x1d8)](this[_0x1f95e2(0x1e6)]);}catch(_0x5c8cce){logger[_0x1f95e2(0x1e2)]('['+TAG+_0x1f95e2(0x1d3)+_0x5c8cce[_0x1f95e2(0x1cd)]+'\x20'+_0x5c8cce[_0x1f95e2(0x1eb)]);}}[a133_0x30bfd9(0x1b3)](){const _0x192cea=a133_0x30bfd9,_0xfca3b4={};_0xfca3b4['gBwZe']=_0x192cea(0x1c9);const _0x429a28=_0xfca3b4;try{const _0x42f18b=fs[_0x192cea(0x1e9)](this[_0x192cea(0x1c2)],_0x429a28[_0x192cea(0x1e7)]);return JSON[_0x192cea(0x1b8)](_0x42f18b);}catch(_0x1063de){return logger['error']('['+TAG+_0x192cea(0x1f0)+_0x1063de[_0x192cea(0x1cd)]+'\x20'+_0x1063de[_0x192cea(0x1eb)]),null;}}async[a133_0x30bfd9(0x1d1)](_0x1f57ff){const _0x4196de=a133_0x30bfd9,_0x54de01={..._0x1f57ff,'uniqueFailedTests':Array['isArray'](_0x1f57ff[_0x4196de(0x1e8)])?_0x1f57ff[_0x4196de(0x1e8)]:Array[_0x4196de(0x1ed)](_0x1f57ff['uniqueFailedTests']||[])};try{fs[_0x4196de(0x1c8)](this[_0x4196de(0x1c2)],JSON['stringify'](_0x54de01,null,0x2));}catch(_0x37d643){logger[_0x4196de(0x1e2)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x37d643[_0x4196de(0x1cd)]+'\x20'+_0x37d643[_0x4196de(0x1eb)]);throw _0x37d643;}}async[a133_0x30bfd9(0x1e3)](_0x538ad3,_0x3a2972){const _0x11b439=a133_0x30bfd9,_0x25c9c3={};_0x25c9c3['ovgEd']=function(_0x59c1ab,_0x2d0977){return _0x59c1ab!==_0x2d0977;},_0x25c9c3[_0x11b439(0x1db)]=_0x11b439(0x1d5),_0x25c9c3[_0x11b439(0x1d4)]=function(_0x11812d,_0x2a95f4){return _0x11812d===_0x2a95f4;},_0x25c9c3[_0x11b439(0x1b7)]=_0x11b439(0x1ca);const _0x4d977f=_0x25c9c3,_0x52845d=await this['acquireLock']();if(!_0x52845d)return logger[_0x11b439(0x1cc)]('['+TAG+_0x11b439(0x1b9)),{'newState':this['readState']()||this[_0x11b439(0x1df)],'isNewFailure':![]};try{let _0x2c662f=this[_0x11b439(0x1b3)]();!_0x2c662f&&(_0x2c662f=JSON[_0x11b439(0x1b8)](JSON[_0x11b439(0x1e0)](this[_0x11b439(0x1df)])));if(!_0x2c662f[_0x11b439(0x1e8)]||_0x4d977f[_0x11b439(0x1f1)](typeof _0x2c662f[_0x11b439(0x1e8)][Symbol['iterator']],_0x4d977f[_0x11b439(0x1db)]))_0x2c662f[_0x11b439(0x1e8)]=new Set();else Array[_0x11b439(0x1d9)](_0x2c662f[_0x11b439(0x1e8)])&&(_0x2c662f[_0x11b439(0x1e8)]=new Set(_0x2c662f['uniqueFailedTests']));_0x2c662f[_0x11b439(0x1c7)]=_0x3a2972;let _0x3b546d=![];_0x4d977f[_0x11b439(0x1d4)](_0x538ad3[_0x11b439(0x1dd)],_0x4d977f['DuomU'])&&(_0x2c662f[_0x11b439(0x1c6)]+=0x1,!_0x2c662f[_0x11b439(0x1e8)]['has'](_0x538ad3[_0x11b439(0x1ea)])&&(_0x2c662f[_0x11b439(0x1e8)][_0x11b439(0x1ee)](_0x538ad3['fullName']),_0x3b546d=!![]));await this[_0x11b439(0x1d1)](_0x2c662f);const _0x3eb0fd={};return _0x3eb0fd[_0x11b439(0x1e1)]=_0x2c662f,_0x3eb0fd['isNewFailure']=_0x3b546d,_0x3eb0fd;}finally{await this[_0x11b439(0x1d0)](_0x52845d);}}async['updateAPIFailedCount'](_0x2593a7){const _0x312e8b=a133_0x30bfd9,_0x3a25a9=await this['acquireLock']();if(!_0x3a25a9)return logger[_0x312e8b(0x1cc)]('['+TAG+_0x312e8b(0x1cb)),this[_0x312e8b(0x1b3)]()||this[_0x312e8b(0x1df)];try{let _0x308bbd=this[_0x312e8b(0x1b3)]();return!_0x308bbd&&(_0x308bbd=JSON[_0x312e8b(0x1b8)](JSON['stringify'](this[_0x312e8b(0x1df)]))),_0x308bbd['lastAPIFailedCount']=_0x2593a7,await this['writeState'](_0x308bbd),_0x308bbd;}finally{await this[_0x312e8b(0x1d0)](_0x3a25a9);}}}module[a133_0x30bfd9(0x1ef)]=FileHelper;function a133_0x27da(_0x44036e,_0x482dd0){const _0x2d631f=a133_0x2d63();return a133_0x27da=function(_0x27dabc,_0x3d2fe5){_0x27dabc=_0x27dabc-0x1b3;let _0x459324=_0x2d631f[_0x27dabc];return _0x459324;},a133_0x27da(_0x44036e,_0x482dd0);}function a133_0x2d63(){const _0x37b7bd=['lockFilePath','gBwZe','uniqueFailedTests','readFileSync','fullName','stack','wFmke','from','add','exports',']\x20Error\x20reading\x20state\x20file:\x20','ovgEd','readState','56jsvJzd','3axcdNJ','closeSync','DuomU','parse',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','EEXIST','asYHO','openSync','52101DtMnvy','acquireLock','1939357KhmnTr','2NRffPy','failFastConfig','stateFilePath','4648290qfhUIv','184152zIfffa',']\x20Error\x20creating\x20state\x20file:\x20','failedTests','totalTests','writeFileSync','utf8','failed',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','warn','message','winstonLogger','FailFastFileHelper','releaseLock','writeState','65772GXsDeU',']\x20Error\x20releasing\x20lock:\x20','ZxMYA','function','1217406sJBGcc','code','unlinkSync','isArray','../logger','HmLXe','ncnSv','status','aRQdq','defaultState','stringify','newState','error','recordTestResult','733140EzANTU','3|0|1|4|2'];a133_0x2d63=function(){return _0x37b7bd;};return a133_0x2d63();}
1
+ const a133_0x20456a=a133_0x2367;function a133_0x76b0(){const _0x30803e=['XpMLu','split','totalTests','status','add','failed','../logger','exports','8649wtMfoq','defaultState','winstonLogger','150mfdOte','openSync','message','parse','144YIWSmp','releaseLock','readState','jsVnj','64eNvmPn','364BYCUps','492KnZOvx','readFileSync','8923VHMSTv','pFFOw','fullName',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','stringify','203104ITQdgK','unlinkSync','writeState',']\x20Error\x20creating\x20state\x20file:\x20','FailFastFileHelper','12iSsEZJ','acquireLock','uniqueFailedTests','3|2|4|0|1','kJJXm','GVjjz','recordTestResult','stateFilePath','closeSync','rjPdn','has','from',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','utf8','TWKFp',']\x20Error\x20writing\x20state\x20file:\x20','18515ZTHNuM','lockFilePath','stack',']\x20Error\x20reading\x20state\x20file:\x20','failFastConfig','failedTests','90622SDHygU','688753LXGdeI','isNewFailure','iterator','145818NhzmrB','error','isArray','writeFileSync','iHDSZ'];a133_0x76b0=function(){return _0x30803e;};return a133_0x76b0();}function a133_0x2367(_0x715eb4,_0x176d03){const _0x76b075=a133_0x76b0();return a133_0x2367=function(_0x236749,_0x387506){_0x236749=_0x236749-0x17b;let _0x2067ac=_0x76b075[_0x236749];return _0x2067ac;},a133_0x2367(_0x715eb4,_0x176d03);}(function(_0x2ed434,_0x23525e){const _0x2a6077=a133_0x2367,_0x27a54b=_0x2ed434();while(!![]){try{const _0x17f664=-parseInt(_0x2a6077(0x18f))/0x1*(-parseInt(_0x2a6077(0x18b))/0x2)+-parseInt(_0x2a6077(0x180))/0x3*(parseInt(_0x2a6077(0x18c))/0x4)+parseInt(_0x2a6077(0x1a9))/0x5*(-parseInt(_0x2a6077(0x18d))/0x6)+parseInt(_0x2a6077(0x1af))/0x7*(parseInt(_0x2a6077(0x187))/0x8)+parseInt(_0x2a6077(0x1b3))/0x9*(parseInt(_0x2a6077(0x183))/0xa)+parseInt(_0x2a6077(0x194))/0xb+-parseInt(_0x2a6077(0x199))/0xc*(parseInt(_0x2a6077(0x1b0))/0xd);if(_0x17f664===_0x23525e)break;else _0x27a54b['push'](_0x27a54b['shift']());}catch(_0x45b33e){_0x27a54b['push'](_0x27a54b['shift']());}}}(a133_0x76b0,0x27536));const fs=require('fs'),logger=require(a133_0x20456a(0x17e))[a133_0x20456a(0x182)],TAG=a133_0x20456a(0x198);class FileHelper{constructor(_0x24d384,_0x48b99a,_0x2fd5a0,_0x3dcdb9){const _0x47a696=a133_0x20456a,_0x3a77bc={};_0x3a77bc['jsVnj']=_0x47a696(0x19c),_0x3a77bc[_0x47a696(0x1a7)]=_0x47a696(0x1a6);const _0x1847fd=_0x3a77bc,_0x42d8fa=_0x1847fd[_0x47a696(0x18a)][_0x47a696(0x1b9)]('|');let _0x243848=0x0;while(!![]){switch(_0x42d8fa[_0x243848++]){case'0':this[_0x47a696(0x181)]=_0x3dcdb9;continue;case'1':if(!fs['existsSync'](this[_0x47a696(0x1a0)]))try{fs[_0x47a696(0x1b6)](this['stateFilePath'],'{}',_0x1847fd[_0x47a696(0x1a7)]);}catch(_0x18c31b){logger['error']('['+TAG+_0x47a696(0x197)+_0x18c31b[_0x47a696(0x185)]+'\x20'+_0x18c31b[_0x47a696(0x1ab)]);}continue;case'2':this[_0x47a696(0x1a0)]=_0x48b99a;continue;case'3':this[_0x47a696(0x1ad)]=_0x24d384;continue;case'4':this[_0x47a696(0x1aa)]=_0x2fd5a0;continue;}break;}}async[a133_0x20456a(0x19a)](){const _0xfcdb12=a133_0x20456a,_0x20a51b={};_0x20a51b[_0xfcdb12(0x190)]=function(_0x3be8d6,_0x1f664e){return _0x3be8d6===_0x1f664e;},_0x20a51b[_0xfcdb12(0x1b8)]='EEXIST';const _0x405c57=_0x20a51b;let _0x4b5635;try{return _0x4b5635=fs[_0xfcdb12(0x184)](this[_0xfcdb12(0x1aa)],'wx'),_0x4b5635;}catch(_0x5f0408){if(_0x405c57[_0xfcdb12(0x190)](_0x5f0408['code'],_0x405c57[_0xfcdb12(0x1b8)]))return null;throw _0x5f0408;}}async[a133_0x20456a(0x188)](_0x30959b){const _0x2b4df5=a133_0x20456a;if(_0x30959b)try{fs[_0x2b4df5(0x1a1)](_0x30959b),fs[_0x2b4df5(0x195)](this[_0x2b4df5(0x1aa)]);}catch(_0x447477){logger[_0x2b4df5(0x1b4)]('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x447477['message']+'\x20'+_0x447477[_0x2b4df5(0x1ab)]);}}[a133_0x20456a(0x189)](){const _0x23b647=a133_0x20456a,_0x1fab5b={};_0x1fab5b[_0x23b647(0x19d)]='utf8';const _0x111261=_0x1fab5b;try{const _0x4841a9=fs[_0x23b647(0x18e)](this[_0x23b647(0x1a0)],_0x111261[_0x23b647(0x19d)]);return JSON[_0x23b647(0x186)](_0x4841a9);}catch(_0x8460b4){return logger['error']('['+TAG+_0x23b647(0x1ac)+_0x8460b4[_0x23b647(0x185)]+'\x20'+_0x8460b4[_0x23b647(0x1ab)]),null;}}async[a133_0x20456a(0x196)](_0x1a86c0){const _0xe96a3=a133_0x20456a,_0x2fcad9={..._0x1a86c0,'uniqueFailedTests':Array['isArray'](_0x1a86c0[_0xe96a3(0x19b)])?_0x1a86c0[_0xe96a3(0x19b)]:Array[_0xe96a3(0x1a4)](_0x1a86c0['uniqueFailedTests']||[])};try{fs['writeFileSync'](this[_0xe96a3(0x1a0)],JSON['stringify'](_0x2fcad9,null,0x2));}catch(_0x519347){logger['error']('['+TAG+_0xe96a3(0x1a8)+_0x519347[_0xe96a3(0x185)]+'\x20'+_0x519347[_0xe96a3(0x1ab)]);throw _0x519347;}}async[a133_0x20456a(0x19f)](_0x1e832e,_0x47dccc){const _0x1886eb=a133_0x20456a,_0x543857={};_0x543857[_0x1886eb(0x19e)]=function(_0x14f378,_0x1e5d5a){return _0x14f378!==_0x1e5d5a;},_0x543857[_0x1886eb(0x1a2)]='function',_0x543857['IxFuw']=function(_0x4011e3,_0x9ff6d9){return _0x4011e3===_0x9ff6d9;},_0x543857[_0x1886eb(0x1b7)]=_0x1886eb(0x17d);const _0x1ec3ce=_0x543857,_0x201bf3=await this[_0x1886eb(0x19a)]();if(!_0x201bf3)return logger['warn']('['+TAG+_0x1886eb(0x192)),{'newState':this[_0x1886eb(0x189)]()||this['defaultState'],'isNewFailure':![]};try{let _0x3d7430=this['readState']();!_0x3d7430&&(_0x3d7430=JSON[_0x1886eb(0x186)](JSON[_0x1886eb(0x193)](this['defaultState'])));if(!_0x3d7430[_0x1886eb(0x19b)]||_0x1ec3ce[_0x1886eb(0x19e)](typeof _0x3d7430[_0x1886eb(0x19b)][Symbol[_0x1886eb(0x1b2)]],_0x1ec3ce[_0x1886eb(0x1a2)]))_0x3d7430[_0x1886eb(0x19b)]=new Set();else Array[_0x1886eb(0x1b5)](_0x3d7430['uniqueFailedTests'])&&(_0x3d7430[_0x1886eb(0x19b)]=new Set(_0x3d7430[_0x1886eb(0x19b)]));_0x3d7430[_0x1886eb(0x1ba)]=_0x47dccc;let _0x442630=![];_0x1ec3ce['IxFuw'](_0x1e832e[_0x1886eb(0x17b)],_0x1ec3ce[_0x1886eb(0x1b7)])&&(_0x3d7430[_0x1886eb(0x1ae)]+=0x1,!_0x3d7430[_0x1886eb(0x19b)][_0x1886eb(0x1a3)](_0x1e832e[_0x1886eb(0x191)])&&(_0x3d7430[_0x1886eb(0x19b)][_0x1886eb(0x17c)](_0x1e832e[_0x1886eb(0x191)]),_0x442630=!![]));await this[_0x1886eb(0x196)](_0x3d7430);const _0x4aab83={};return _0x4aab83['newState']=_0x3d7430,_0x4aab83[_0x1886eb(0x1b1)]=_0x442630,_0x4aab83;}finally{await this[_0x1886eb(0x188)](_0x201bf3);}}async['updateAPIFailedCount'](_0x3f59ff){const _0x3cc419=a133_0x20456a,_0x1c264d=await this[_0x3cc419(0x19a)]();if(!_0x1c264d)return logger['warn']('['+TAG+_0x3cc419(0x1a5)),this[_0x3cc419(0x189)]()||this[_0x3cc419(0x181)];try{let _0x5dcbe3=this[_0x3cc419(0x189)]();return!_0x5dcbe3&&(_0x5dcbe3=JSON[_0x3cc419(0x186)](JSON[_0x3cc419(0x193)](this[_0x3cc419(0x181)]))),_0x5dcbe3['lastAPIFailedCount']=_0x3f59ff,await this[_0x3cc419(0x196)](_0x5dcbe3),_0x5dcbe3;}finally{await this['releaseLock'](_0x1c264d);}}}module[a133_0x20456a(0x17f)]=FileHelper;
@@ -1 +1 @@
1
- const a134_0x28ec07=a134_0x2e89;(function(_0x4c8fb5,_0x2d0e6f){const _0x8124a4=a134_0x2e89,_0x1ff6e6=_0x4c8fb5();while(!![]){try{const _0x4d6e2f=parseInt(_0x8124a4(0xca))/0x1*(-parseInt(_0x8124a4(0xff))/0x2)+parseInt(_0x8124a4(0x105))/0x3+parseInt(_0x8124a4(0xd9))/0x4*(parseInt(_0x8124a4(0xd8))/0x5)+-parseInt(_0x8124a4(0x106))/0x6*(-parseInt(_0x8124a4(0x100))/0x7)+-parseInt(_0x8124a4(0xc7))/0x8+-parseInt(_0x8124a4(0xd5))/0x9*(-parseInt(_0x8124a4(0xfb))/0xa)+parseInt(_0x8124a4(0x107))/0xb*(-parseInt(_0x8124a4(0xf1))/0xc);if(_0x4d6e2f===_0x2d0e6f)break;else _0x1ff6e6['push'](_0x1ff6e6['shift']());}catch(_0x3d1260){_0x1ff6e6['push'](_0x1ff6e6['shift']());}}}(a134_0x1352,0x81e93));const os=require('os'),path=require(a134_0x28ec07(0xdc)),fs=require('fs'),logger=require(a134_0x28ec07(0xed))[a134_0x28ec07(0xd1)],RETRY_TESTS_ON_FAILURE=a134_0x28ec07(0xcd),ABORT_BUILD_ON_FAILURE=a134_0x28ec07(0x104),RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a134_0x28ec07(0xfd),SKIP_FLAKY_AND_FAILED=a134_0x28ec07(0xdb),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([a134_0x28ec07(0xd6)]);class TestOrdering{constructor(){const _0x2a4bc4=a134_0x28ec07;this[_0x2a4bc4(0xf8)]=![],this['name']=null;}[a134_0x28ec07(0xf6)](_0x176e32){const _0x3ea470=a134_0x28ec07;this['enabled']=!![],this[_0x3ea470(0xe5)]=_0x176e32;}[a134_0x28ec07(0x102)](){const _0x129bcb=a134_0x28ec07;this[_0x129bcb(0xf8)]=![],this[_0x129bcb(0xe5)]=null;}[a134_0x28ec07(0xf4)](){const _0x58da99=a134_0x28ec07;return this[_0x58da99(0xf8)];}[a134_0x28ec07(0xf7)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x54f97b){const _0x5b24a4=a134_0x28ec07,_0x170eb2={};_0x170eb2[_0x5b24a4(0x101)]=function(_0x5e7e90,_0xd28c19){return _0x5e7e90||_0xd28c19;};const _0x17923f=_0x170eb2;this['runPreviouslyFailedFirst']=![],this['rerunPreviouslyFailed']=![],this[_0x5b24a4(0xe7)]=![],this[_0x5b24a4(0xef)]=new TestOrdering(),this[_0x5b24a4(0xda)]=_0x17923f[_0x5b24a4(0x101)](_0x54f97b,{});const _0x17f7ce=_0x54f97b&&_0x54f97b[_0x5b24a4(0xcb)]||{};this[_0x5b24a4(0xe3)](_0x17f7ce[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x5b24a4(0xe8)](_0x17f7ce[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x5b24a4(0xc9)](_0x17f7ce[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x28ec07(0xe6)](_0x47bf64){const _0x12bf94=a134_0x28ec07;return!OrchestrationUtils[_0x12bf94(0xc8)]&&_0x47bf64&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x47bf64)),OrchestrationUtils[_0x12bf94(0xc8)];}[a134_0x28ec07(0xdf)](){const _0x178cf4=a134_0x28ec07,_0x208c61=(this['config'][_0x178cf4(0xcb)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x208c61[_0x178cf4(0xf8)];}[a134_0x28ec07(0xf2)](){const _0x37da06=a134_0x28ec07,_0x12b3bd=(this[_0x37da06(0xda)][_0x37da06(0xcb)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x1f2a26=0x0;return this['isRetryEnabled'](this['config'])&&(_0x1f2a26=_0x12b3bd[_0x37da06(0xfc)]||0x1),_0x1f2a26;}['getOrchestrationData'](){const _0x53df88=a134_0x28ec07,_0x369753=this[_0x53df88(0xda)][_0x53df88(0xcb)]||{},_0x5b3db4={};for(const _0x1554a0 in _0x369753){ALLOWED_ORCHESTRATION_KEYS[_0x53df88(0xe9)](_0x1554a0)&&(_0x5b3db4[_0x1554a0]=_0x369753[_0x1554a0]);}return _0x5b3db4;}[a134_0x28ec07(0xde)](){const _0x3d302c=a134_0x28ec07,_0x402e60=process['env'][_0x3d302c(0x103)],_0x24ac61=path[_0x3d302c(0xcc)](os[_0x3d302c(0xf0)](),_0x3d302c(0xd2)+_0x402e60);return fs[_0x3d302c(0xee)](_0x24ac61);}[a134_0x28ec07(0xf5)](_0x345670){const _0x9ce461=a134_0x28ec07,_0x5aca00=process['env'][_0x9ce461(0x103)],_0x5be4d4=path[_0x9ce461(0xcc)](os[_0x9ce461(0xf0)](),_0x9ce461(0xf3)+_0x5aca00+'.txt');fs[_0x9ce461(0xfa)](_0x5be4d4,_0x345670+'\x0a');}[a134_0x28ec07(0xe4)](_0x5de63a){const _0x26a653=a134_0x28ec07,_0x50acfd={};_0x50acfd['TUJzQ']=function(_0x2693fc,_0x22a1f8){return _0x2693fc||_0x22a1f8;};const _0x4ee28a=_0x50acfd;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x26a653(0xe9)](_0x4ee28a[_0x26a653(0xce)](_0x5de63a,'')[_0x26a653(0xea)]());}[a134_0x28ec07(0xfe)](){const _0x41d473=(this['config']['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x41d473['enabled'];}['getFailureThreshold'](){const _0x23d881=a134_0x28ec07,_0x577ef4=(this[_0x23d881(0xda)][_0x23d881(0xcb)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x577ef4['maxFailures']||0x5;;}[a134_0x28ec07(0xe2)](){const _0x4502f4=a134_0x28ec07;return this[_0x4502f4(0xec)];}['_setRunPreviouslyFailedFirst'](_0x56fb6f){const _0x22d02b=a134_0x28ec07;this[_0x22d02b(0xec)]=!!_0x56fb6f,this[_0x22d02b(0xd0)]();}[a134_0x28ec07(0xd4)](){const _0x1e29da=a134_0x28ec07;return this[_0x1e29da(0xfd)];}[a134_0x28ec07(0xe8)](_0x3a494b){const _0x235d19=a134_0x28ec07;this[_0x235d19(0xfd)]=!!_0x3a494b,this['_setTestOrdering']();}['getSkipFlakyAndFailed'](){const _0x3eb3dd=a134_0x28ec07;return this[_0x3eb3dd(0xe7)];}[a134_0x28ec07(0xc9)](_0x3816e2){const _0x2583f3=a134_0x28ec07;this[_0x2583f3(0xe7)]=!!_0x3816e2,this[_0x2583f3(0xd0)]();}[a134_0x28ec07(0xd0)](){const _0x118dfd=a134_0x28ec07;if(this[_0x118dfd(0xec)])this[_0x118dfd(0xfd)]=![],this[_0x118dfd(0xe7)]=![],this['testOrdering'][_0x118dfd(0xf6)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x118dfd(0xfd)])this[_0x118dfd(0xec)]=![],this[_0x118dfd(0xe7)]=![],this[_0x118dfd(0xef)]['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x118dfd(0xe7)]?(this['runPreviouslyFailedFirst']=![],this[_0x118dfd(0xfd)]=![],this[_0x118dfd(0xef)][_0x118dfd(0xf6)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x118dfd(0x102)]();}}[a134_0x28ec07(0xdd)](){const _0x2bc0b5=a134_0x28ec07;return this[_0x2bc0b5(0xef)][_0x2bc0b5(0xf4)]();}['getTestOrderingName'](){const _0xc64a06=a134_0x28ec07;if(this[_0xc64a06(0xef)][_0xc64a06(0xf4)]())return this[_0xc64a06(0xef)][_0xc64a06(0xf7)]();return null;}[a134_0x28ec07(0xe0)](){const _0x23c925=a134_0x28ec07,_0x2303f7={};return _0x2303f7['rerun_previously_failed']={'enabled':this[_0x23c925(0xd4)]()},_0x2303f7[_0x23c925(0xd7)]={'enabled':this[_0x23c925(0xe2)]()},_0x2303f7[_0x23c925(0xeb)]={'enabled':this['getSkipFlakyAndFailed']()},this['isRetryEnabled']()&&(_0x2303f7[_0x23c925(0xcf)]={'enabled':!![],'max_retries':this[_0x23c925(0xf2)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x2303f7[_0x23c925(0xd3)]={'enabled':!![],'max_failures':this[_0x23c925(0xe1)]()}),_0x2303f7;}}function a134_0x2e89(_0x15ebbc,_0x23077a){const _0x135295=a134_0x1352();return a134_0x2e89=function(_0x2e894c,_0x74f2a7){_0x2e894c=_0x2e894c-0xc7;let _0x4df985=_0x135295[_0x2e894c];return _0x4df985;},a134_0x2e89(_0x15ebbc,_0x23077a);}module[a134_0x28ec07(0xf9)]=OrchestrationUtils;function a134_0x1352(){const _0x4b16aa=['skipFlakyAndFailed','_setRerunPreviouslyFailed','has','toLowerCase','skip_failing_and_flaky','runPreviouslyFailedFirst','../logger','existsSync','testOrdering','tmpdir','12tMoCgC','getRetryCount','failed_tests_','getEnabled','writeFailureToFile','enable','getName','enabled','exports','appendFileSync','9000vadpnG','maxRetries','rerunPreviouslyFailed','isAbortBuildOnFailureEnabled','38828MhEZih','28XRdIGp','KRejK','disable','BROWSERSTACK_TESTHUB_UUID','abortBuildOnFailure','235815xwlVWk','1268094AYCGCA','5851967qpotRf','1807776ZxtDXy','_instance','_setSkipFlakyAndFailed','10utccNY','testOrchestrationOptions','join','retryTestsOnFailure','TUJzQ','retry_tests_on_failure','_setTestOrdering','winstonLogger','abort_build_','abort_build_on_failure','getRerunPreviouslyFailed','2430lWBGve','jest','run_previously_failed_first','1895DvLTRb','3348WeSafj','config','skipFlakyandFailed','path','testOrderingEnabled','checkAbortBuildFileExists','isRetryEnabled','getBuildStartData','getFailureThreshold','getRunPreviouslyFailedFirst','_setRunPreviouslyFailedFirst','isAbortBuildOnFailureSupported','name','getInstance'];a134_0x1352=function(){return _0x4b16aa;};return a134_0x1352();}
1
+ function a134_0x41e5(){const _0x4c0026=['getRerunPreviouslyFailed','6AoDnLw','run_previously_failed_first','config','_setSkipFlakyAndFailed','disable','env','join','isRetryEnabled','getInstance','568220VVIxCX','has','skipFlakyandFailed','testOrderingEnabled','.txt','enable','131838NWOQFw','1853397iRxJrm','rerun_previously_failed','15VWUPxq','tmpdir','runPreviouslyFailedFirst','skipFlakyAndFailed','retry_tests_on_failure','_setTestOrdering','retryTestsOnFailure','433038OIouIm','getBuildStartData','name','getOrchestrationData','abortBuildOnFailure','getTestOrderingName','104649xJXyRj','isAbortBuildOnFailureEnabled','checkAbortBuildFileExists','_setRerunPreviouslyFailed','maxRetries','../logger','237648EhERjs','appendFileSync','getRetryCount','28TkIkRL','getRunPreviouslyFailedFirst','rerunPreviouslyFailed','winstonLogger','jest','_instance','getEnabled','BxkEE','maxFailures','BROWSERSTACK_TESTHUB_UUID','LzTdE','testOrdering','getFailureThreshold','_setRunPreviouslyFailedFirst','enabled','getSkipFlakyAndFailed','253648ojswVD','testOrchestrationOptions','abort_build_'];a134_0x41e5=function(){return _0x4c0026;};return a134_0x41e5();}const a134_0x38ae9c=a134_0x1bd0;(function(_0x233781,_0x4b844d){const _0x3c9dbb=a134_0x1bd0,_0x26eeee=_0x233781();while(!![]){try{const _0x2a8a86=-parseInt(_0x3c9dbb(0x1e4))/0x1+-parseInt(_0x3c9dbb(0x1c5))/0x2*(-parseInt(_0x3c9dbb(0x1d4))/0x3)+parseInt(_0x3c9dbb(0x1fd))/0x4+parseInt(_0x3c9dbb(0x1d7))/0x5*(-parseInt(_0x3c9dbb(0x1de))/0x6)+-parseInt(_0x3c9dbb(0x1ed))/0x7*(-parseInt(_0x3c9dbb(0x1ea))/0x8)+parseInt(_0x3c9dbb(0x1d5))/0x9+-parseInt(_0x3c9dbb(0x1ce))/0xa;if(_0x2a8a86===_0x4b844d)break;else _0x26eeee['push'](_0x26eeee['shift']());}catch(_0x206519){_0x26eeee['push'](_0x26eeee['shift']());}}}(a134_0x41e5,0x22ac1));const os=require('os'),path=require('path'),fs=require('fs'),logger=require(a134_0x38ae9c(0x1e9))[a134_0x38ae9c(0x1f0)],RETRY_TESTS_ON_FAILURE=a134_0x38ae9c(0x1dd),ABORT_BUILD_ON_FAILURE=a134_0x38ae9c(0x1e2),RUN_PREVIOUSLY_FAILED_FIRST=a134_0x38ae9c(0x1d9),RERUN_PREVIOUSLY_FAILED=a134_0x38ae9c(0x1ef),SKIP_FLAKY_AND_FAILED=a134_0x38ae9c(0x1d0),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([a134_0x38ae9c(0x1f1)]);function a134_0x1bd0(_0xf40243,_0x49f4b9){const _0x41e542=a134_0x41e5();return a134_0x1bd0=function(_0x1bd028,_0x2a26c1){_0x1bd028=_0x1bd028-0x1c5;let _0x58ff09=_0x41e542[_0x1bd028];return _0x58ff09;},a134_0x1bd0(_0xf40243,_0x49f4b9);}class TestOrdering{constructor(){const _0x760a7e=a134_0x38ae9c;this[_0x760a7e(0x1fb)]=![],this[_0x760a7e(0x1e0)]=null;}[a134_0x38ae9c(0x1d3)](_0xac7c1){const _0x18c5ae=a134_0x38ae9c;this['enabled']=!![],this[_0x18c5ae(0x1e0)]=_0xac7c1;}['disable'](){const _0x44dbad=a134_0x38ae9c;this[_0x44dbad(0x1fb)]=![],this[_0x44dbad(0x1e0)]=null;}[a134_0x38ae9c(0x1f3)](){const _0x2776da=a134_0x38ae9c;return this[_0x2776da(0x1fb)];}['getName'](){const _0x5bbe63=a134_0x38ae9c;return this[_0x5bbe63(0x1e0)];}}class OrchestrationUtils{static [a134_0x38ae9c(0x1f2)]=null;constructor(_0x571ca7){const _0x2f000f=a134_0x38ae9c,_0x18089b={};_0x18089b[_0x2f000f(0x1f4)]=function(_0x4a76d1,_0x964273){return _0x4a76d1||_0x964273;};const _0x452118=_0x18089b;this[_0x2f000f(0x1d9)]=![],this[_0x2f000f(0x1ef)]=![],this[_0x2f000f(0x1da)]=![],this[_0x2f000f(0x1f8)]=new TestOrdering(),this[_0x2f000f(0x1c7)]=_0x452118['BxkEE'](_0x571ca7,{});const _0xfe4abb=_0x571ca7&&_0x571ca7[_0x2f000f(0x1fe)]||{};this['_setRunPreviouslyFailedFirst'](_0xfe4abb[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x2f000f(0x1e7)](_0xfe4abb[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0xfe4abb[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x38ae9c(0x1cd)](_0xdc8d90){const _0x3bce43=a134_0x38ae9c;return!OrchestrationUtils[_0x3bce43(0x1f2)]&&_0xdc8d90&&(OrchestrationUtils[_0x3bce43(0x1f2)]=new OrchestrationUtils(_0xdc8d90)),OrchestrationUtils[_0x3bce43(0x1f2)];}[a134_0x38ae9c(0x1cc)](){const _0xaa5061=a134_0x38ae9c,_0x3703d0=(this[_0xaa5061(0x1c7)][_0xaa5061(0x1fe)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x3703d0['enabled'];}[a134_0x38ae9c(0x1ec)](){const _0x1ecb4c=a134_0x38ae9c,_0x2b0a7d=(this[_0x1ecb4c(0x1c7)][_0x1ecb4c(0x1fe)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x4bb46c=0x0;return this[_0x1ecb4c(0x1cc)](this[_0x1ecb4c(0x1c7)])&&(_0x4bb46c=_0x2b0a7d[_0x1ecb4c(0x1e8)]||0x1),_0x4bb46c;}[a134_0x38ae9c(0x1e1)](){const _0x574ecf=a134_0x38ae9c,_0x4c36b4=this[_0x574ecf(0x1c7)][_0x574ecf(0x1fe)]||{},_0x49f596={};for(const _0x285d5d in _0x4c36b4){ALLOWED_ORCHESTRATION_KEYS[_0x574ecf(0x1cf)](_0x285d5d)&&(_0x49f596[_0x285d5d]=_0x4c36b4[_0x285d5d]);}return _0x49f596;}[a134_0x38ae9c(0x1e6)](){const _0x16170d=a134_0x38ae9c,_0x546bb7=process[_0x16170d(0x1ca)]['BROWSERSTACK_TESTHUB_UUID'],_0x9372a9=path[_0x16170d(0x1cb)](os[_0x16170d(0x1d8)](),_0x16170d(0x1ff)+_0x546bb7);return fs['existsSync'](_0x9372a9);}['writeFailureToFile'](_0x2c475f){const _0x27071c=a134_0x38ae9c,_0x566291=process[_0x27071c(0x1ca)][_0x27071c(0x1f6)],_0x593c33=path['join'](os[_0x27071c(0x1d8)](),'failed_tests_'+_0x566291+_0x27071c(0x1d2));fs[_0x27071c(0x1eb)](_0x593c33,_0x2c475f+'\x0a');}['isAbortBuildOnFailureSupported'](_0x34143d){const _0x258d29=a134_0x38ae9c,_0x2c86b6={};_0x2c86b6[_0x258d29(0x1f7)]=function(_0x30b29a,_0x368daa){return _0x30b29a||_0x368daa;};const _0x56cd70=_0x2c86b6;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x258d29(0x1cf)](_0x56cd70['LzTdE'](_0x34143d,'')['toLowerCase']());}[a134_0x38ae9c(0x1e5)](){const _0x55fe52=a134_0x38ae9c,_0x316d4c=(this[_0x55fe52(0x1c7)][_0x55fe52(0x1fe)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x316d4c[_0x55fe52(0x1fb)];}[a134_0x38ae9c(0x1f9)](){const _0x341898=a134_0x38ae9c,_0x5be60c=(this['config'][_0x341898(0x1fe)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x5be60c[_0x341898(0x1f5)]||0x5;;}[a134_0x38ae9c(0x1ee)](){return this['runPreviouslyFailedFirst'];}[a134_0x38ae9c(0x1fa)](_0x22999f){const _0x5be6d3=a134_0x38ae9c;this[_0x5be6d3(0x1d9)]=!!_0x22999f,this[_0x5be6d3(0x1dc)]();}[a134_0x38ae9c(0x200)](){const _0xf19b86=a134_0x38ae9c;return this[_0xf19b86(0x1ef)];}[a134_0x38ae9c(0x1e7)](_0x2806d7){const _0x2f408b=a134_0x38ae9c;this[_0x2f408b(0x1ef)]=!!_0x2806d7,this[_0x2f408b(0x1dc)]();}[a134_0x38ae9c(0x1fc)](){const _0x1d5dad=a134_0x38ae9c;return this[_0x1d5dad(0x1da)];}[a134_0x38ae9c(0x1c8)](_0x383c56){const _0x10c689=a134_0x38ae9c;this[_0x10c689(0x1da)]=!!_0x383c56,this['_setTestOrdering']();}[a134_0x38ae9c(0x1dc)](){const _0x1f7f8c=a134_0x38ae9c;if(this['runPreviouslyFailedFirst'])this[_0x1f7f8c(0x1ef)]=![],this[_0x1f7f8c(0x1da)]=![],this[_0x1f7f8c(0x1f8)][_0x1f7f8c(0x1d3)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x1f7f8c(0x1ef)])this[_0x1f7f8c(0x1d9)]=![],this['skipFlakyAndFailed']=![],this[_0x1f7f8c(0x1f8)][_0x1f7f8c(0x1d3)](RERUN_PREVIOUSLY_FAILED);else this[_0x1f7f8c(0x1da)]?(this[_0x1f7f8c(0x1d9)]=![],this[_0x1f7f8c(0x1ef)]=![],this[_0x1f7f8c(0x1f8)][_0x1f7f8c(0x1d3)](SKIP_FLAKY_AND_FAILED)):this[_0x1f7f8c(0x1f8)][_0x1f7f8c(0x1c9)]();}}[a134_0x38ae9c(0x1d1)](){const _0x443ae8=a134_0x38ae9c;return this[_0x443ae8(0x1f8)][_0x443ae8(0x1f3)]();}[a134_0x38ae9c(0x1e3)](){const _0x2bdedc=a134_0x38ae9c;if(this[_0x2bdedc(0x1f8)]['getEnabled']())return this[_0x2bdedc(0x1f8)]['getName']();return null;}[a134_0x38ae9c(0x1df)](){const _0x5cfac8=a134_0x38ae9c,_0x5d6a43={};return _0x5d6a43[_0x5cfac8(0x1d6)]={'enabled':this[_0x5cfac8(0x200)]()},_0x5d6a43[_0x5cfac8(0x1c6)]={'enabled':this['getRunPreviouslyFailedFirst']()},_0x5d6a43['skip_failing_and_flaky']={'enabled':this[_0x5cfac8(0x1fc)]()},this[_0x5cfac8(0x1cc)]()&&(_0x5d6a43[_0x5cfac8(0x1db)]={'enabled':!![],'max_retries':this[_0x5cfac8(0x1ec)]()}),this[_0x5cfac8(0x1e5)]()&&(_0x5d6a43['abort_build_on_failure']={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x5d6a43;}}module['exports']=OrchestrationUtils;
@@ -1 +1 @@
1
- function a135_0xa382(){const _0x4b80e2=['?buildName=','RMaiH','2401746iuhPUg','\x20with\x20headers:\x20','tolMD','aZZtQ','\x20request\x20to\x20','4327542YLrWls','write','RequestUtils','failedTestsCount','stringify',']\x20Error\x20in\x20getFailedTestsCount:\x20',',\x20projectName=','pVzTH','PhgxB','419154TcKvVP','debug','end','Urjmb','./constants','aNczh',']\x20Successfully\x20posted\x20split\x20files\x20to\x20',']\x20Sending\x20GET\x20to\x20','stack','oUsVi','Authorization','message','POST','146xwXrTD','../logger','&buildRunIdentifier=','5867mUISDD','sgATj','_request','error','KapRg','XMZnz','status','1755835JNGXKe','njqJN','PUT','env','putFailedTests',']\x20Error\x20in\x20putFailedTests:\x20','PxbFK','xrxDe','Content-Type',']\x20Sending\x20',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','TyHAO','\x20-\x20',',\x20buildRunIdentifier=','WWMCY','rKAgI','getFailedTestsCount','GET','1344126HxZcJL','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','body','winstonLogger',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','aSiUK','BROWSERSTACK_TESTHUB_JWT','4nrVYTy','parse','8DtVfrz','rAoab','1708640rxIwzZ','data','Lpvus','utyrY','\x20and\x20data:\x20','headers','url',']\x20Request\x20failed\x20for\x20','getSplitFiles','statusCode','exports'];a135_0xa382=function(){return _0x4b80e2;};return a135_0xa382();}const a135_0x427279=a135_0x4145;(function(_0x28ebc2,_0x248991){const _0x1e8d71=a135_0x4145,_0x3f91bb=_0x28ebc2();while(!![]){try{const _0xed859e=-parseInt(_0x1e8d71(0x66))/0x1*(parseInt(_0x1e8d71(0xb2))/0x2)+parseInt(_0x1e8d71(0xa5))/0x3*(parseInt(_0x1e8d71(0x86))/0x4)+parseInt(_0x1e8d71(0x6d))/0x5+parseInt(_0x1e8d71(0x97))/0x6+-parseInt(_0x1e8d71(0x7f))/0x7*(-parseInt(_0x1e8d71(0x88))/0x8)+-parseInt(_0x1e8d71(0x9c))/0x9+parseInt(_0x1e8d71(0x8a))/0xa;if(_0xed859e===_0x248991)break;else _0x3f91bb['push'](_0x3f91bb['shift']());}catch(_0x4bee74){_0x3f91bb['push'](_0x3f91bb['shift']());}}}(a135_0xa382,0x54361));function a135_0x4145(_0x161b8c,_0x4edb63){const _0xa38268=a135_0xa382();return a135_0x4145=function(_0x41459f,_0x99ba18){_0x41459f=_0x41459f-0x66;let _0x5efdaf=_0xa38268[_0x41459f];return _0x5efdaf;},a135_0x4145(_0x161b8c,_0x4edb63);}const https=require('https'),{URL}=require(a135_0x427279(0x90)),logger=require(a135_0x427279(0xb3))[a135_0x427279(0x82)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a135_0x427279(0xa9)),TAG=a135_0x427279(0x9e);class RequestUtils{static async[a135_0x427279(0x68)](_0x322af0,_0x49e05b,_0x3146ec=null){const _0xecc675=a135_0x427279,_0x1ac46c={'PhgxB':_0xecc675(0x8b),'Lpvus':_0xecc675(0xa7),'aZZtQ':function(_0x4aeed4,_0xeb55ac){return _0x4aeed4(_0xeb55ac);},'KCNXL':_0xecc675(0x69),'tolMD':function(_0x1c7d65,_0x5ea5b3){return _0x1c7d65===_0x5ea5b3;},'TyHAO':_0xecc675(0xb1),'KapRg':'PUT','RMaiH':'application/json','utyrY':function(_0x35fdce,_0x1fd398){return _0x35fdce+_0x1fd398;}},_0x307db6=process[_0xecc675(0x70)][_0xecc675(0x85)]||'',_0x35fe0f={};_0x35fe0f[_0xecc675(0xaf)]='Bearer\x20'+_0x307db6,_0x35fe0f[_0xecc675(0x75)]=_0x1ac46c[_0xecc675(0x96)];const _0x1fdfa4=_0x35fe0f,{hostname:_0x504544,pathname:_0xfe4a41,search:_0x5e6c50}=new URL(_0x49e05b),_0x2b232f={'hostname':_0x504544,'path':_0x1ac46c[_0xecc675(0x8d)](_0xfe4a41,_0x5e6c50),'method':_0x322af0,'headers':_0x1fdfa4};return logger[_0xecc675(0xa6)]('['+TAG+_0xecc675(0x76)+_0x322af0+_0xecc675(0x9b)+_0x49e05b+_0xecc675(0x98)+JSON['stringify'](_0x1fdfa4)+_0xecc675(0x8e)+JSON[_0xecc675(0xa0)](_0x3146ec)+'\x20and\x20token:\x20'+_0x307db6),new Promise((_0x582a6e,_0x538431)=>{const _0x42a37c=_0xecc675,_0x50dad3={'aSiUK':function(_0x4b425f,_0x2e10b9){const _0x723f35=a135_0x4145;return _0x1ac46c[_0x723f35(0x9a)](_0x4b425f,_0x2e10b9);},'hwMXb':function(_0x541bd7,_0x118397){return _0x1ac46c['aZZtQ'](_0x541bd7,_0x118397);}},_0x445e73=https['request'](_0x2b232f,_0x5b703c=>{const _0x3111c9=a135_0x4145;let _0x5046e8='';_0x5b703c['on'](_0x1ac46c[_0x3111c9(0xa4)],_0x30c495=>{_0x5046e8+=_0x30c495;}),_0x5b703c['on'](_0x1ac46c[_0x3111c9(0x8c)],()=>{const _0x312101=_0x3111c9;try{const _0x574fe1=_0x5046e8?JSON[_0x312101(0x87)](_0x5046e8):{},_0x1f1885={};_0x1f1885[_0x312101(0x6c)]=_0x5b703c[_0x312101(0x93)],_0x1f1885[_0x312101(0x81)]=_0x574fe1,_0x1f1885[_0x312101(0x8f)]=_0x5b703c[_0x312101(0x8f)],_0x50dad3[_0x312101(0x84)](_0x582a6e,_0x1f1885);}catch(_0x106ef7){logger[_0x312101(0x69)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x5046e8+_0x312101(0x79)+_0x106ef7[_0x312101(0xb0)]+'\x20'+_0x106ef7[_0x312101(0xad)]),_0x50dad3[_0x312101(0x84)](_0x538431,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x106ef7[_0x312101(0xb0)]));}});});_0x445e73['on'](_0x1ac46c['KCNXL'],_0x20c4d6=>{const _0xef3ebb=a135_0x4145;logger[_0xef3ebb(0x69)]('['+TAG+_0xef3ebb(0x91)+_0x322af0+'\x20'+_0x49e05b+':\x20'+_0x20c4d6['message']+'\x20'+_0x20c4d6['stack']),_0x50dad3['hwMXb'](_0x538431,_0x20c4d6);}),_0x3146ec&&(_0x1ac46c[_0x42a37c(0x99)](_0x322af0,_0x1ac46c[_0x42a37c(0x78)])||_0x1ac46c[_0x42a37c(0x99)](_0x322af0,_0x1ac46c[_0x42a37c(0x6a)]))&&_0x445e73[_0x42a37c(0x9d)](JSON[_0x42a37c(0xa0)](_0x3146ec)),_0x445e73['end']();});}static async['postSplitFiles'](_0x166303){const _0x1c2af2=a135_0x427279,_0x27581e={};_0x27581e[_0x1c2af2(0x6e)]='POST',_0x27581e['rAoab']=function(_0x51cb49,_0x3aba25){return _0x51cb49===_0x3aba25;};const _0x2e4824=_0x27581e,_0x3617e3=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x43c718=await this[_0x1c2af2(0x68)](_0x2e4824['njqJN'],_0x3617e3,_0x166303);return _0x2e4824[_0x1c2af2(0x89)](_0x43c718[_0x1c2af2(0x6c)],0xc8)?logger[_0x1c2af2(0xa6)]('['+TAG+_0x1c2af2(0xab)+_0x3617e3):logger[_0x1c2af2(0x69)]('['+TAG+_0x1c2af2(0x77)+_0x3617e3+':\x20'+JSON[_0x1c2af2(0xa0)](_0x43c718['body'])+',\x20status:\x20'+_0x43c718[_0x1c2af2(0x6c)]),_0x43c718;}catch(_0x299c3d){logger[_0x1c2af2(0x69)]('['+TAG+_0x1c2af2(0x72)+_0x299c3d[_0x1c2af2(0xb0)]+'\x20'+_0x299c3d[_0x1c2af2(0xad)]);const _0x3241b9={};_0x3241b9['message']=_0x299c3d[_0x1c2af2(0xb0)];const _0x1f5d66={};return _0x1f5d66['status']=0x1f4,_0x1f5d66[_0x1c2af2(0x81)]=_0x3241b9,_0x1f5d66;}}static async[a135_0x427279(0x92)](_0x22dae9){const _0x14f1ca=a135_0x427279,_0xface2e={};_0xface2e[_0x14f1ca(0x74)]=_0x14f1ca(0x7e),_0xface2e['pVzTH']=function(_0x8cb2f4,_0x256685){return _0x8cb2f4===_0x256685;};const _0x1fd4ec=_0xface2e;try{const _0x36152f=await this[_0x14f1ca(0x68)](_0x1fd4ec[_0x14f1ca(0x74)],_0x22dae9);if(_0x1fd4ec[_0x14f1ca(0xa3)](_0x36152f[_0x14f1ca(0x6c)],0xc8))return _0x36152f[_0x14f1ca(0x81)];return{};}catch(_0x486885){return logger['error']('['+TAG+_0x14f1ca(0x72)+_0x486885[_0x14f1ca(0xb0)]+'\x20'+_0x486885['stack']),{};}}static async[a135_0x427279(0x71)](_0xddaa5d){const _0x328f6a=a135_0x427279,_0x64b773={};_0x64b773[_0x328f6a(0xa8)]=_0x328f6a(0x6f),_0x64b773['rKAgI']=function(_0x542679,_0x502968){return _0x542679===_0x502968;},_0x64b773[_0x328f6a(0x6b)]=function(_0x4dbd5a,_0x2541f4){return _0x4dbd5a===_0x2541f4;},_0x64b773[_0x328f6a(0xae)]='Test\x20added';const _0x225664=_0x64b773,_0x585585=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x198876=await this[_0x328f6a(0x68)](_0x225664[_0x328f6a(0xa8)],_0x585585,_0xddaa5d);if(_0x225664[_0x328f6a(0x7c)](_0x198876[_0x328f6a(0x6c)],0xc8)&&_0x198876['body']&&_0x225664[_0x328f6a(0x6b)](_0x198876[_0x328f6a(0x81)][_0x328f6a(0xb0)],_0x225664['oUsVi']))return!![];return![];}catch(_0x40b1da){logger[_0x328f6a(0x69)]('['+TAG+_0x328f6a(0x72)+_0x40b1da[_0x328f6a(0xb0)]+'\x20'+_0x40b1da['stack']);const _0x3df9cf={};_0x3df9cf[_0x328f6a(0xb0)]=_0x40b1da['message'];const _0x3ac7f2={};return _0x3ac7f2[_0x328f6a(0x6c)]=0x1f4,_0x3ac7f2[_0x328f6a(0x81)]=_0x3df9cf,_0x3ac7f2;}}static async[a135_0x427279(0x7d)](_0x2094c4){const _0x368676=a135_0x427279,_0x54f401={'PxbFK':function(_0x37ce57,_0x3c2aa2){return _0x37ce57||_0x3c2aa2;},'pJoBr':_0x368676(0x80),'aNczh':function(_0x499e98,_0x24bf8f){return _0x499e98(_0x24bf8f);},'gUNSV':_0x368676(0x7e),'WWMCY':function(_0xf17107,_0x1f8021){return _0xf17107===_0x1f8021;},'sbshS':function(_0xf32701,_0x1a7415){return _0xf32701!==_0x1a7415;},'sgATj':'undefined'},{buildName:_0x2279fc,buildRunIdentifier:_0x5524e1,projectName:_0x34d2ef}=_0x2094c4;if(_0x54f401[_0x368676(0x73)](!_0x2279fc,!_0x5524e1)||!_0x34d2ef){logger[_0x368676(0x69)]('['+TAG+_0x368676(0x83)+_0x2279fc+_0x368676(0x7a)+_0x5524e1+_0x368676(0xa2)+_0x34d2ef);const _0x6af0a0={};_0x6af0a0[_0x368676(0xb0)]=_0x54f401['pJoBr'];const _0x5e96b1={};return _0x5e96b1['status']=0x190,_0x5e96b1[_0x368676(0x81)]=_0x6af0a0,_0x5e96b1;}const _0x1ddb9f=_0x368676(0x95)+_0x54f401['aNczh'](encodeURIComponent,_0x2279fc)+_0x368676(0xb4)+_0x54f401[_0x368676(0xaa)](encodeURIComponent,_0x5524e1)+'&projectName='+_0x54f401['aNczh'](encodeURIComponent,_0x34d2ef),_0x1d43d2=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x1ddb9f;try{logger[_0x368676(0xa6)]('['+TAG+_0x368676(0xac)+_0x1d43d2);let _0x3a381a=0x0;const _0x53fc88=await this['_request'](_0x54f401['gUNSV'],_0x1d43d2);return _0x54f401[_0x368676(0x7b)](_0x53fc88['status'],0xc8)&&_0x53fc88[_0x368676(0x81)]&&_0x54f401['sbshS'](typeof _0x53fc88[_0x368676(0x81)][_0x368676(0x9f)],_0x54f401[_0x368676(0x67)])&&(_0x3a381a=_0x54f401[_0x368676(0xaa)](Number,_0x53fc88['body']['failedTestsCount'])),_0x3a381a;}catch(_0x3f77e4){logger[_0x368676(0x69)]('['+TAG+_0x368676(0xa1)+_0x3f77e4[_0x368676(0xb0)]+'\x20'+_0x3f77e4[_0x368676(0xad)]);const _0x3ebdf6={};_0x3ebdf6[_0x368676(0xb0)]=_0x3f77e4[_0x368676(0xb0)];const _0x23de03={};return _0x23de03[_0x368676(0x6c)]=0x1f4,_0x23de03[_0x368676(0x81)]=_0x3ebdf6,_0x23de03;}}}module[a135_0x427279(0x94)]=RequestUtils;
1
+ function a135_0x511c(_0x233197,_0x14bac5){const _0x3ca2d0=a135_0x3ca2();return a135_0x511c=function(_0x511c68,_0xd4cbbb){_0x511c68=_0x511c68-0x187;let _0x80c428=_0x3ca2d0[_0x511c68];return _0x80c428;},a135_0x511c(_0x233197,_0x14bac5);}const a135_0x356e84=a135_0x511c;(function(_0x7a1262,_0x45c4fc){const _0x3e59ab=a135_0x511c,_0xf34ba8=_0x7a1262();while(!![]){try{const _0x34e67c=parseInt(_0x3e59ab(0x1d9))/0x1*(-parseInt(_0x3e59ab(0x1bb))/0x2)+parseInt(_0x3e59ab(0x1a4))/0x3+-parseInt(_0x3e59ab(0x196))/0x4*(-parseInt(_0x3e59ab(0x1b0))/0x5)+parseInt(_0x3e59ab(0x1d2))/0x6*(parseInt(_0x3e59ab(0x1cd))/0x7)+-parseInt(_0x3e59ab(0x19f))/0x8+parseInt(_0x3e59ab(0x1aa))/0x9*(-parseInt(_0x3e59ab(0x1c9))/0xa)+parseInt(_0x3e59ab(0x1da))/0xb*(-parseInt(_0x3e59ab(0x1a0))/0xc);if(_0x34e67c===_0x45c4fc)break;else _0xf34ba8['push'](_0xf34ba8['shift']());}catch(_0x20c6d5){_0xf34ba8['push'](_0xf34ba8['shift']());}}}(a135_0x3ca2,0x54321));const https=require('https'),{URL}=require(a135_0x356e84(0x1d8)),logger=require(a135_0x356e84(0x1b9))[a135_0x356e84(0x19b)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a135_0x356e84(0x1db)),TAG='RequestUtils';class RequestUtils{static async[a135_0x356e84(0x1ac)](_0x3a6217,_0x22f3ba,_0x56e842=null){const _0x543fc1=a135_0x356e84,_0x16722e={'JMHDI':function(_0x1d2521,_0x543b2f){return _0x1d2521(_0x543b2f);},'XSMCy':_0x543fc1(0x1c2),'KoxnK':_0x543fc1(0x19d),'ogiUl':'error','TyASx':function(_0x3cc426,_0x1310ab){return _0x3cc426===_0x1310ab;},'kVBCL':_0x543fc1(0x191),'MXbYU':function(_0x26ad63,_0x36e381){return _0x26ad63===_0x36e381;},'Kmmgg':'PUT','lxSzd':_0x543fc1(0x1de),'sVCMI':function(_0x48d3d0,_0x444dfd){return _0x48d3d0+_0x444dfd;}},_0x166a73=process[_0x543fc1(0x1cc)][_0x543fc1(0x1b6)]||'',_0x4c3698={};_0x4c3698[_0x543fc1(0x1c0)]=_0x543fc1(0x1b7)+_0x166a73,_0x4c3698[_0x543fc1(0x1b3)]=_0x16722e['lxSzd'];const _0x1973e8=_0x4c3698,{hostname:_0x148056,pathname:_0x9b548e,search:_0x1988a0}=new URL(_0x22f3ba),_0xe3aaee={'hostname':_0x148056,'path':_0x16722e[_0x543fc1(0x1d5)](_0x9b548e,_0x1988a0),'method':_0x3a6217,'headers':_0x1973e8};return logger[_0x543fc1(0x1a2)]('['+TAG+_0x543fc1(0x1be)+_0x3a6217+_0x543fc1(0x1ba)+_0x22f3ba+_0x543fc1(0x192)+JSON['stringify'](_0x1973e8)+_0x543fc1(0x1c7)+JSON[_0x543fc1(0x1ae)](_0x56e842)+_0x543fc1(0x197)+_0x166a73),new Promise((_0x1699c6,_0x3c12c7)=>{const _0x4cecc5=_0x543fc1,_0x3dd5a9={'nwPnA':function(_0x2780f1,_0x454b46){const _0xce2b3f=a135_0x511c;return _0x16722e[_0xce2b3f(0x1bf)](_0x2780f1,_0x454b46);},'xCIQo':_0x16722e['XSMCy'],'xrTPd':_0x16722e[_0x4cecc5(0x189)]},_0x495eb7=https[_0x4cecc5(0x1a7)](_0xe3aaee,_0xd08410=>{const _0x4dddff=_0x4cecc5;let _0x3bc01e='';_0xd08410['on'](_0x3dd5a9['xCIQo'],_0x224ced=>{_0x3bc01e+=_0x224ced;}),_0xd08410['on'](_0x3dd5a9[_0x4dddff(0x1a9)],()=>{const _0x4c21e8=_0x4dddff;try{const _0x32a4cb=_0x3bc01e?JSON[_0x4c21e8(0x18a)](_0x3bc01e):{},_0x424800={};_0x424800[_0x4c21e8(0x1d6)]=_0xd08410[_0x4c21e8(0x1b1)],_0x424800['body']=_0x32a4cb,_0x424800[_0x4c21e8(0x1b5)]=_0xd08410[_0x4c21e8(0x1b5)],_0x3dd5a9[_0x4c21e8(0x198)](_0x1699c6,_0x424800);}catch(_0xf99ec3){logger[_0x4c21e8(0x18f)]('['+TAG+_0x4c21e8(0x187)+_0x3bc01e+_0x4c21e8(0x1af)+_0xf99ec3[_0x4c21e8(0x1dc)]+'\x20'+_0xf99ec3[_0x4c21e8(0x195)]),_0x3dd5a9[_0x4c21e8(0x198)](_0x3c12c7,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0xf99ec3['message']));}});});_0x495eb7['on'](_0x16722e[_0x4cecc5(0x1c3)],_0xc93999=>{const _0x1d3271=_0x4cecc5;logger[_0x1d3271(0x18f)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x3a6217+'\x20'+_0x22f3ba+':\x20'+_0xc93999[_0x1d3271(0x1dc)]+'\x20'+_0xc93999[_0x1d3271(0x195)]),_0x3dd5a9[_0x1d3271(0x198)](_0x3c12c7,_0xc93999);}),_0x56e842&&(_0x16722e[_0x4cecc5(0x18c)](_0x3a6217,_0x16722e['kVBCL'])||_0x16722e[_0x4cecc5(0x1ab)](_0x3a6217,_0x16722e[_0x4cecc5(0x1d7)]))&&_0x495eb7[_0x4cecc5(0x1c5)](JSON[_0x4cecc5(0x1ae)](_0x56e842)),_0x495eb7[_0x4cecc5(0x19d)]();});}static async[a135_0x356e84(0x18d)](_0x3d419f){const _0x1c42b=a135_0x356e84,_0x4f980f={};_0x4f980f[_0x1c42b(0x1b4)]=_0x1c42b(0x191),_0x4f980f[_0x1c42b(0x1b8)]=function(_0x11293e,_0x77cfee){return _0x11293e===_0x77cfee;};const _0x593b84=_0x4f980f,_0x18378e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x3f418f=await this['_request'](_0x593b84[_0x1c42b(0x1b4)],_0x18378e,_0x3d419f);return _0x593b84[_0x1c42b(0x1b8)](_0x3f418f[_0x1c42b(0x1d6)],0xc8)?logger['debug']('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x18378e):logger[_0x1c42b(0x18f)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x18378e+':\x20'+JSON['stringify'](_0x3f418f[_0x1c42b(0x1bd)])+_0x1c42b(0x1df)+_0x3f418f[_0x1c42b(0x1d6)]),_0x3f418f;}catch(_0x45bec7){logger[_0x1c42b(0x18f)]('['+TAG+_0x1c42b(0x1c4)+_0x45bec7[_0x1c42b(0x1dc)]+'\x20'+_0x45bec7[_0x1c42b(0x195)]);const _0x1779c5={};_0x1779c5['message']=_0x45bec7['message'];const _0x3ebaff={};return _0x3ebaff['status']=0x1f4,_0x3ebaff[_0x1c42b(0x1bd)]=_0x1779c5,_0x3ebaff;}}static async[a135_0x356e84(0x1bc)](_0x1ea639){const _0x1a8871=a135_0x356e84,_0x298a7c={};_0x298a7c['TCrIx']=_0x1a8871(0x1a6),_0x298a7c[_0x1a8871(0x1c6)]=function(_0x31e4c7,_0x51a239){return _0x31e4c7===_0x51a239;};const _0x9541da=_0x298a7c;try{const _0x48cd8f=await this['_request'](_0x9541da[_0x1a8871(0x193)],_0x1ea639);if(_0x9541da['BUrNV'](_0x48cd8f['status'],0xc8))return _0x48cd8f[_0x1a8871(0x1bd)];return{};}catch(_0x3e24bd){return logger[_0x1a8871(0x18f)]('['+TAG+_0x1a8871(0x1c4)+_0x3e24bd[_0x1a8871(0x1dc)]+'\x20'+_0x3e24bd[_0x1a8871(0x195)]),{};}}static async[a135_0x356e84(0x19e)](_0x7a122a){const _0x2f992d=a135_0x356e84,_0x30bd8b={};_0x30bd8b['RPanX']=_0x2f992d(0x1d0),_0x30bd8b['HNvWx']=function(_0x2a7c79,_0x2fde81){return _0x2a7c79===_0x2fde81;},_0x30bd8b[_0x2f992d(0x1c1)]=function(_0x4839f7,_0x390fbf){return _0x4839f7===_0x390fbf;},_0x30bd8b[_0x2f992d(0x1d4)]=_0x2f992d(0x1b2);const _0x3a9211=_0x30bd8b,_0x44a887=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x3fd8d4=await this[_0x2f992d(0x1ac)](_0x3a9211[_0x2f992d(0x18e)],_0x44a887,_0x7a122a);if(_0x3a9211[_0x2f992d(0x1ca)](_0x3fd8d4['status'],0xc8)&&_0x3fd8d4[_0x2f992d(0x1bd)]&&_0x3a9211[_0x2f992d(0x1c1)](_0x3fd8d4[_0x2f992d(0x1bd)][_0x2f992d(0x1dc)],_0x3a9211[_0x2f992d(0x1d4)]))return!![];return![];}catch(_0x54b1eb){logger[_0x2f992d(0x18f)]('['+TAG+_0x2f992d(0x1c4)+_0x54b1eb[_0x2f992d(0x1dc)]+'\x20'+_0x54b1eb['stack']);const _0x2659d6={};_0x2659d6[_0x2f992d(0x1dc)]=_0x54b1eb[_0x2f992d(0x1dc)];const _0x3a23ff={};return _0x3a23ff[_0x2f992d(0x1d6)]=0x1f4,_0x3a23ff[_0x2f992d(0x1bd)]=_0x2659d6,_0x3a23ff;}}static async[a135_0x356e84(0x18b)](_0x255cc8){const _0x2fde3a=a135_0x356e84,_0x582700={'pFXlt':function(_0x4f73d6,_0x70f83){return _0x4f73d6||_0x70f83;},'ygTbZ':_0x2fde3a(0x1a8),'MvBdt':function(_0x424a85,_0x40a74d){return _0x424a85(_0x40a74d);},'pAULy':function(_0x2daca5,_0xff5d8c){return _0x2daca5(_0xff5d8c);},'OHDxn':'GET','ybAsy':function(_0x480311,_0x12729f){return _0x480311===_0x12729f;},'BUBzj':function(_0x2c0e41,_0x224188){return _0x2c0e41!==_0x224188;},'uZyTB':_0x2fde3a(0x19c),'RQZZx':function(_0x3d936e,_0x9984d3){return _0x3d936e(_0x9984d3);}},{buildName:_0x2a1ddf,buildRunIdentifier:_0x466234,projectName:_0x3c6f82}=_0x255cc8;if(_0x582700[_0x2fde3a(0x1c8)](!_0x2a1ddf,!_0x466234)||!_0x3c6f82){logger[_0x2fde3a(0x18f)]('['+TAG+_0x2fde3a(0x1cf)+_0x2a1ddf+_0x2fde3a(0x1a5)+_0x466234+_0x2fde3a(0x190)+_0x3c6f82);const _0x50bfbe={};_0x50bfbe[_0x2fde3a(0x1dc)]=_0x582700[_0x2fde3a(0x1d1)];const _0x2772d5={};return _0x2772d5[_0x2fde3a(0x1d6)]=0x190,_0x2772d5[_0x2fde3a(0x1bd)]=_0x50bfbe,_0x2772d5;}const _0x3403e9=_0x2fde3a(0x1a3)+_0x582700[_0x2fde3a(0x1cb)](encodeURIComponent,_0x2a1ddf)+_0x2fde3a(0x19a)+_0x582700[_0x2fde3a(0x1dd)](encodeURIComponent,_0x466234)+_0x2fde3a(0x199)+_0x582700[_0x2fde3a(0x1cb)](encodeURIComponent,_0x3c6f82),_0x2db45f=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x3403e9;try{logger[_0x2fde3a(0x1a2)]('['+TAG+_0x2fde3a(0x1a1)+_0x2db45f);let _0x49dd16=0x0;const _0x268413=await this['_request'](_0x582700[_0x2fde3a(0x1ce)],_0x2db45f);return _0x582700[_0x2fde3a(0x188)](_0x268413[_0x2fde3a(0x1d6)],0xc8)&&_0x268413[_0x2fde3a(0x1bd)]&&_0x582700['BUBzj'](typeof _0x268413[_0x2fde3a(0x1bd)][_0x2fde3a(0x1ad)],_0x582700[_0x2fde3a(0x194)])&&(_0x49dd16=_0x582700['RQZZx'](Number,_0x268413[_0x2fde3a(0x1bd)][_0x2fde3a(0x1ad)])),_0x49dd16;}catch(_0x3689b2){logger['error']('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x3689b2[_0x2fde3a(0x1dc)]+'\x20'+_0x3689b2['stack']);const _0x477764={};_0x477764[_0x2fde3a(0x1dc)]=_0x3689b2[_0x2fde3a(0x1dc)];const _0x55bbf0={};return _0x55bbf0[_0x2fde3a(0x1d6)]=0x1f4,_0x55bbf0[_0x2fde3a(0x1bd)]=_0x477764,_0x55bbf0;}}}function a135_0x3ca2(){const _0x31307c=['failedTestsCount','stringify','\x20-\x20','200695HtNjPm','statusCode','Test\x20added','Content-Type','dToKa','headers','BROWSERSTACK_TESTHUB_JWT','Bearer\x20','Netst','../logger','\x20request\x20to\x20','22SyogMj','getSplitFiles','body',']\x20Sending\x20','JMHDI','Authorization','DdoVZ','data','ogiUl',']\x20Error\x20in\x20putFailedTests:\x20','write','BUrNV','\x20and\x20data:\x20','pFXlt','1611570mmMKQG','HNvWx','MvBdt','env','483QSTRUe','OHDxn',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','PUT','ygTbZ','11010Gykuul','exports','xtNiW','sVCMI','status','Kmmgg','url','2887YFNREf','3999908ZaxkOt','./constants','message','pAULy','application/json',',\x20status:\x20',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','ybAsy','KoxnK','parse','getFailedTestsCount','TyASx','postSplitFiles','RPanX','error',',\x20projectName=','POST','\x20with\x20headers:\x20','TCrIx','uZyTB','stack','60QjZtYD','\x20and\x20token:\x20','nwPnA','&projectName=','&buildRunIdentifier=','winstonLogger','undefined','end','putFailedTests','1557616FiDyTO','12aqMyCq',']\x20Sending\x20GET\x20to\x20','debug','?buildName=','1585698JrvpOd',',\x20buildRunIdentifier=','GET','request','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','xrTPd','18NNtuZI','MXbYU','_request'];a135_0x3ca2=function(){return _0x31307c;};return a135_0x3ca2();}module[a135_0x356e84(0x1d3)]=RequestUtils;