browserstack-node-sdk 1.35.3 → 1.35.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) 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/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a40_0x5bb86a=a40_0xd2c0;(function(_0x36f90c,_0x46d151){const _0x18f92c=a40_0xd2c0,_0x34d42b=_0x36f90c();while(!![]){try{const _0x134a4b=parseInt(_0x18f92c(0xda))/0x1*(parseInt(_0x18f92c(0xa0))/0x2)+parseInt(_0x18f92c(0xe5))/0x3*(-parseInt(_0x18f92c(0x116))/0x4)+-parseInt(_0x18f92c(0xd4))/0x5+-parseInt(_0x18f92c(0xd0))/0x6+parseInt(_0x18f92c(0xa1))/0x7+parseInt(_0x18f92c(0x122))/0x8*(parseInt(_0x18f92c(0xe0))/0x9)+parseInt(_0x18f92c(0xe8))/0xa;if(_0x134a4b===_0x46d151)break;else _0x34d42b['push'](_0x34d42b['shift']());}catch(_0x5129c9){_0x34d42b['push'](_0x34d42b['shift']());}}}(a40_0x3ffb,0xcda20));function a40_0xd2c0(_0x59868f,_0x2ebf52){const _0x3ffbec=a40_0x3ffb();return a40_0xd2c0=function(_0xd2c02b,_0x3f2e46){_0xd2c02b=_0xd2c02b-0x7c;let _0x445aa3=_0x3ffbec[_0xd2c02b];return _0x445aa3;},a40_0xd2c0(_0x59868f,_0x2ebf52);}const {debug,getFrameworkVersion,removeAnsiColors,failureData}=require('../../../helpers/test-observability/utils'),PerformanceTester=require(a40_0x5bb86a(0xb9)),fs=require('fs'),{FRAMEWORKS,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE}=require('../../../helpers/test-observability/constants'),helper=require(a40_0x5bb86a(0xbb)),path=require(a40_0x5bb86a(0x10f)),logger=require(a40_0x5bb86a(0x85))[a40_0x5bb86a(0xef)],SessionHandler=require(a40_0x5bb86a(0xa9)),TestDetails=require(a40_0x5bb86a(0xe2)),util=require(a40_0x5bb86a(0xab)),getTagsFromTitle=_0x48dec8=>{const _0x32e402=a40_0x5bb86a;return _0x48dec8[_0x32e402(0xb4)](/@(\w+)/g)?.['map'](_0x13becd=>_0x13becd['slice'](0x1))||[];};function a40_0x3ffb(){const _0x282fc4=['PcpeM','extname','runner/projectUtils.js','GbhPu','runner/loadUtils.js','Fxscv','stack','join','beforeWorkerHook','\x20bytes','@playwright/test','1.42.0','18574HojVVG','143899KlkTTO','map','Trace\x20file\x20size\x20exceeds\x20100MB:\x20','qWHLL','mDNCK','Total\x20time\x20taken\x20by\x20O11y\x20is\x20','onTestBegin','TAtYm','../../../helpers/test-observability/sessionHandler','call','util','GAudg','zgnuq','vudVo','UUCcM','Qtwir','Hoibl','geCkL','statSync','match','USmSQ','START_TIME','khhTA','getFailureData','../../../helpers/performance/performance-tester','playwright/lib/common/configLoader.js','../../../helpers/helper','doo11ySync','slice','includes','message','OfGev','qIAlk','onStepBegin','cLrkQ','beforeTestHook','calculateTimesFromMultipleFiles','ltmfV','zHbxw','env','title','toISOString','CWpzK','getTestTags','Total\x20duration\x20for\x20whole\x20build\x20is\x20','compareVersions','sendEventData','2407470mVitoi','MCCMS','getProjectUtilsPath','getForkProcessPath','5922810lGFNZK','name','EWSUL','PLAYWRIGHT','Error\x20in\x20sending\x20trace\x20file:\x20%s','sendSessionDetails','175uEDtbP','debug','LZkld','KMdWg','yQCXt','getTransformPath','189lPZVWr','Found\x20key:\x20','./test-details','CmqRU','ahlBR','2190831AwwvlC','size','process.js','11221630gKsKHY','onBegin','test','Trace\x20enabled','existsSync','oPtDZ','.zip','winstonLogger','format','playwright','hfMNC','sendTestLog','Searching\x20for\x20key:\x20','ERROR','performance-report-worker-','kWKbe','tags','find','toLowerCase','hTRkn','getLoadUtilsPath','startsWith','getPlaywrightLibPath','readdirSync','Arguments','kwXwj','TEST_ATTACHMENT','substr','jhYXb','onStepEnd','.json','rwLRu','Aeleu','filter','DyNlL','attachments','@playwright/test/lib/transform/transform.js','validateFilePath','sendTraceZip','path','1.38.0','AMzJQ','pYaHz','common','afterTestHook','uDOLV','4HWquTu','LogCreated','hxxgb','CQhuJ','stopAndGenerate','Test\x20timeout\x20of','jCdYl','OAfAs','lib','filePath','trace','toString','148728rdOjZs','CFnIP','iQiaS','error','getConfigLoaderPath','CgSkf','Invalid\x20file\x20format.\x20Expected\x20a\x20.zip\x20file,\x20but\x20got:\x20','onTestEnd','oxxqA','vPFbS','@playwright/test/lib/common/configLoader.js','findNestedKey','nQGmR','../../../helpers/logger','mpVRb','setupBrowserDetails','pGAWT','processPageScreenshot','dPOHA','endSession','gnYRi','testUId','@playwright/test/lib/common/transform.js','calculatePerformance','rMTDQ','basename','uuRxC','jwpdP'];a40_0x3ffb=function(){return _0x282fc4;};return a40_0x3ffb();}exports[a40_0x5bb86a(0xcc)]=_0x249a66=>{const _0x4c31aa=a40_0x5bb86a,_0x1af7f0={'nGtXr':function(_0x1ace77,_0x55808f){return _0x1ace77(_0x55808f);}};if(_0x249a66['tags'])return _0x249a66[_0x4c31aa(0xf8)][_0x4c31aa(0xa2)](_0x5aae57=>_0x5aae57['startsWith']('@')?_0x5aae57[_0x4c31aa(0x103)](0x1):_0x5aae57);return _0x1af7f0['nGtXr'](getTagsFromTitle,_0x249a66[_0x4c31aa(0xc9)]);},exports[a40_0x5bb86a(0x8f)]=async()=>{const _0x13d8ee=a40_0x5bb86a,_0x12ee16={'mDNCK':function(_0x4e754d,_0x49a353){return _0x4e754d-_0x49a353;},'Aeleu':'performance-reporter.html','GAudg':_0x13d8ee(0xe9),'JwsEk':_0x13d8ee(0x8b),'KWGBW':_0x13d8ee(0xa7),'rMTDQ':_0x13d8ee(0x7f),'nQGmR':_0x13d8ee(0xc2),'uSQhZ':_0x13d8ee(0x105),'mpVRb':_0x13d8ee(0x9c),'elzdm':'afterWorkerHook','TAtYm':_0x13d8ee(0xc4),'bbqrP':_0x13d8ee(0x114),'qaApO':_0x13d8ee(0xbc),'Hoibl':_0x13d8ee(0x89),'ltmfV':_0x13d8ee(0xd9),'ABtAO':_0x13d8ee(0x87),'YSAaA':'requestSpyCallback','pGAWT':_0x13d8ee(0xf3),'CWpzK':function(_0x5e83c4,_0x5a4adf){return _0x5e83c4(_0x5a4adf);},'oPtDZ':function(_0xc46157,_0x866755){return _0xc46157/_0x866755;},'CQhuJ':function(_0xca55c9,_0x417387){return _0xca55c9+_0x417387;},'rhphi':function(_0x8c9671,_0x297b8b){return _0x8c9671*_0x297b8b;}};if(!process[_0x13d8ee(0xc8)]['START_TIME'])return;const _0x4a037f=_0x12ee16[_0x13d8ee(0xa5)](new Date()['getTime'](),new Date(process['env'][_0x13d8ee(0xb6)])['getTime']()),_0x34f9af=await PerformanceTester[_0x13d8ee(0x11a)](_0x12ee16[_0x13d8ee(0x108)],[_0x12ee16[_0x13d8ee(0xac)],_0x12ee16['JwsEk'],_0x12ee16['KWGBW'],_0x12ee16[_0x13d8ee(0x90)],_0x12ee16[_0x13d8ee(0x84)],_0x12ee16['uSQhZ']]),_0x583c77=fs[_0x13d8ee(0xff)]('.'),_0x2240c8=_0x583c77[_0x13d8ee(0x109)](_0x33bd7c=>_0x33bd7c[_0x13d8ee(0xfd)](_0x13d8ee(0xf6))&&_0x33bd7c['endsWith'](_0x13d8ee(0x106))),_0x4a7614=await PerformanceTester[_0x13d8ee(0xc5)](_0x2240c8,[_0x12ee16[_0x13d8ee(0x86)],_0x12ee16['elzdm'],_0x12ee16[_0x13d8ee(0xa8)],_0x12ee16['bbqrP'],_0x12ee16['qaApO'],_0x12ee16[_0x13d8ee(0xb1)],_0x12ee16[_0x13d8ee(0xc6)],_0x12ee16['ABtAO'],_0x12ee16['YSAaA'],_0x12ee16[_0x13d8ee(0x88)]]);_0x12ee16[_0x13d8ee(0xcb)](debug,_0x13d8ee(0xcd)+_0x12ee16[_0x13d8ee(0xed)](_0x4a037f,0x3e8)+'\x20s'),_0x12ee16['CWpzK'](debug,_0x13d8ee(0xa6)+_0x12ee16[_0x13d8ee(0x119)](_0x4a7614,_0x34f9af)),_0x12ee16[_0x13d8ee(0xcb)](debug,'Percentage\x20of\x20increased\x20time\x20is\x20'+_0x12ee16['rhphi'](_0x12ee16['oPtDZ'](_0x12ee16['CQhuJ'](_0x4a7614,_0x34f9af),_0x4a037f),0x64));},exports[a40_0x5bb86a(0xdf)]=()=>{const _0x2e96f4=a40_0x5bb86a,_0x598143={'gnYRi':function(_0x5567bd,_0xed4193){return _0x5567bd(_0xed4193);},'hTRkn':function(_0x3be7ee,_0x4458a5){return _0x3be7ee>=_0x4458a5;},'bFiJO':_0x2e96f4(0x110),'OfGev':'playwright/lib/transform/transform.js','CgSkf':_0x2e96f4(0xf1),'KMdWg':'1.35.0','khhTA':_0x2e96f4(0x10c),'jwpdP':'@playwright/test','AMzJQ':_0x2e96f4(0x8e)},_0x46dc6c=_0x598143[_0x2e96f4(0x8c)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x598143[_0x2e96f4(0xfb)](helper[_0x2e96f4(0xce)](_0x46dc6c,_0x598143['bFiJO']),0x0))return[_0x598143[_0x2e96f4(0xc0)],_0x598143[_0x2e96f4(0x7d)]];if(_0x598143[_0x2e96f4(0xfb)](helper['compareVersions'](_0x46dc6c,_0x598143[_0x2e96f4(0xdd)]),0x0))return[_0x598143[_0x2e96f4(0xb7)],_0x598143[_0x2e96f4(0x93)]];return[_0x598143[_0x2e96f4(0x111)],_0x598143['jwpdP']];},exports[a40_0x5bb86a(0x7c)]=()=>{const _0x266ffa=a40_0x5bb86a,_0x2a6695={'CmqRU':function(_0x48f01b,_0x29bf46){return _0x48f01b(_0x29bf46);},'LWszj':function(_0x6418e5,_0x3142f5){return _0x6418e5>=_0x3142f5;},'hfMNC':_0x266ffa(0x110),'MCCMS':_0x266ffa(0xba),'cLrkQ':_0x266ffa(0xf1),'dPOHA':_0x266ffa(0x82),'uDOLV':_0x266ffa(0x9e)},_0x33b9fd=_0x2a6695[_0x266ffa(0xe3)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x2a6695['LWszj'](helper[_0x266ffa(0xce)](_0x33b9fd,_0x2a6695[_0x266ffa(0xf2)]),0x0))return[_0x2a6695[_0x266ffa(0xd1)],_0x2a6695[_0x266ffa(0xc3)]];return[_0x2a6695[_0x266ffa(0x8a)],_0x2a6695[_0x266ffa(0x115)]];},exports[a40_0x5bb86a(0xfc)]=()=>{const _0x28cde3=a40_0x5bb86a,_0x318082={};_0x318082['zHbxw']=_0x28cde3(0x98);const _0x20d4bc=_0x318082;return helper[_0x28cde3(0xfe)](_0x20d4bc[_0x28cde3(0xc7)]);},exports[a40_0x5bb86a(0xd2)]=()=>{const _0x57993a=a40_0x5bb86a,_0x38fb1d={};_0x38fb1d[_0x57993a(0x101)]=_0x57993a(0x96);const _0x256c4b=_0x38fb1d;return helper['getPlaywrightLibPath'](_0x256c4b[_0x57993a(0x101)]);},exports[a40_0x5bb86a(0xd3)]=()=>{const _0x131b77=a40_0x5bb86a,_0x301f81={'jhYXb':function(_0xd0f96b,_0x3f3c26){return _0xd0f96b(_0x3f3c26);},'hxxgb':function(_0x2b4dd1,_0x2dd0b7){return _0x2b4dd1>=_0x2dd0b7;},'vPFbS':_0x131b77(0x110),'DyNlL':_0x131b77(0x11e),'qWHLL':_0x131b77(0x113),'LZkld':_0x131b77(0xe7),'UUCcM':_0x131b77(0xea)},_0x23e4ee=_0x301f81[_0x131b77(0x104)](getFrameworkVersion,FRAMEWORKS[_0x131b77(0xd7)]);if(_0x301f81[_0x131b77(0x118)](helper[_0x131b77(0xce)](_0x23e4ee,_0x301f81[_0x131b77(0x81)]),0x0))return path[_0x131b77(0x9b)](_0x301f81[_0x131b77(0x10a)],_0x301f81[_0x131b77(0xa4)],_0x301f81[_0x131b77(0xdc)]);return path['join'](_0x301f81[_0x131b77(0xaf)],_0x301f81[_0x131b77(0x10a)],_0x301f81['qWHLL'],_0x301f81[_0x131b77(0xdc)]);},exports[a40_0x5bb86a(0xb8)]=(_0x54cfe0,{test_run_uuid:_0x14f7e6})=>{const _0x482fe7=a40_0x5bb86a,_0x4ec6e4={'ZqzLr':_0x482fe7(0xf5),'pYaHz':'TEST_LOG','GbhPu':function(_0xd56f6,_0x3e5f10){return _0xd56f6<=_0x3e5f10;},'Fxscv':function(_0x51b076,_0x5b2f58){return _0x51b076(_0x5b2f58);},'kWKbe':_0x482fe7(0x11b),'OAfAs':function(_0x726815,_0x9f9132){return _0x726815(_0x9f9132);},'yQCXt':function(_0x70f5db,_0xebce97){return _0x70f5db>=_0xebce97;},'iQiaS':_0x482fe7(0x9f),'ahlBR':function(_0x489cca,_0x24fcdc){return _0x489cca>_0x24fcdc;},'oxxqA':function(_0x341215,_0x22074c,_0x1ff3c9){return _0x341215(_0x22074c,_0x1ff3c9);},'geCkL':_0x482fe7(0xea)};if(!_0x54cfe0||_0x4ec6e4[_0x482fe7(0x97)](_0x54cfe0['length'],0x0))return[];const _0x499683=_0x4ec6e4[_0x482fe7(0x99)](removeAnsiColors,_0x54cfe0[0x0][_0x482fe7(0xbf)]);if(_0x499683[_0x482fe7(0xfd)](_0x4ec6e4[_0x482fe7(0xf7)])){const _0x23ae09=_0x54cfe0[0x0],_0x579fa9=_0x4ec6e4[_0x482fe7(0x11d)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if((!_0x23ae09['stack']||_0x4ec6e4[_0x482fe7(0xde)](_0x579fa9,_0x4ec6e4[_0x482fe7(0x124)]))&&_0x4ec6e4[_0x482fe7(0xe4)](_0x54cfe0['length'],0x1))return{'failureData':[{'backtrace':[_0x499683,_0x4ec6e4[_0x482fe7(0x99)](removeAnsiColors,_0x54cfe0[0x1][_0x482fe7(0x9a)])]}],'logs':_0x54cfe0[_0x482fe7(0xbd)](0x2)[_0x482fe7(0xa2)](_0x175143=>{const _0x235df0=_0x482fe7;return{'timestamp':new Date()[_0x235df0(0xca)](),'level':_0x4ec6e4['ZqzLr'],'message':''+_0x175143[_0x235df0(0xbf)],'kind':_0x4ec6e4[_0x235df0(0x112)],'http_response':{},'test_run_uuid':_0x14f7e6};})};}return{'failureData':_0x4ec6e4[_0x482fe7(0x80)](failureData,_0x54cfe0,_0x4ec6e4[_0x482fe7(0xb2)]),'logs':[]};},exports['validateFilePath']=_0x22de1e=>{const _0x47484f=a40_0x5bb86a,_0x492c6d={};_0x492c6d[_0x47484f(0x11c)]=function(_0x1715b9,_0x4b35d1){return _0x1715b9!==_0x4b35d1;},_0x492c6d[_0x47484f(0xae)]=_0x47484f(0xee),_0x492c6d[_0x47484f(0x123)]=function(_0x4c512a,_0x227eca){return _0x4c512a>_0x227eca;};const _0x79e35=_0x492c6d;if(_0x22de1e&&fs[_0x47484f(0xec)](_0x22de1e)){if(_0x79e35[_0x47484f(0x11c)](path[_0x47484f(0x95)](_0x22de1e)[_0x47484f(0xfa)](),_0x79e35[_0x47484f(0xae)]))return logger['error'](_0x47484f(0x7e)+_0x22de1e),![];const _0x4e3152=fs[_0x47484f(0xb3)](_0x22de1e)[_0x47484f(0xe6)];if(_0x79e35['CFnIP'](_0x4e3152,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE))return logger[_0x47484f(0x125)](_0x47484f(0xa3)+_0x4e3152+_0x47484f(0x9d)),![];return!![];}return![];},exports[a40_0x5bb86a(0x83)]=(_0x3811ea,_0x52cd19)=>{const _0x1d69ee=a40_0x5bb86a,_0x4adec0={};_0x4adec0[_0x1d69ee(0xd6)]=_0x1d69ee(0x100);const _0x303ebd=_0x4adec0;logger[_0x1d69ee(0xdb)](_0x1d69ee(0xf4)+_0x52cd19);if(_0x3811ea[_0x1d69ee(0x10b)]){const _0x1a1a44=_0x3811ea[_0x1d69ee(0x10b)][_0x1d69ee(0xf9)](_0x42b8bd=>_0x42b8bd[_0x1d69ee(0xd5)]===_0x1d69ee(0x120));if(_0x1a1a44)return logger['debug']('Found\x20key:\x20'+_0x52cd19+'\x20in\x20attachments'),_0x1a1a44[_0x52cd19];}else{if(Object['prototype'][_0x1d69ee(0x121)][_0x1d69ee(0xaa)](_0x3811ea)[_0x1d69ee(0xbe)](_0x303ebd[_0x1d69ee(0xd6)]))for(const _0x2b8a7d of _0x3811ea){if(_0x2b8a7d[_0x52cd19])return logger[_0x1d69ee(0xdb)](_0x1d69ee(0xe1)+_0x52cd19+'\x20in\x20arguments'),_0x2b8a7d[_0x52cd19];}}return'';},exports['uploadTraceZip']=async(_0x77f76c,_0x46c640)=>{const _0x3f5fb4=a40_0x5bb86a,_0xb15e2a={};_0xb15e2a[_0x3f5fb4(0x92)]=_0x3f5fb4(0x117),_0xb15e2a[_0x3f5fb4(0xb5)]=_0x3f5fb4(0x102),_0xb15e2a['PcpeM']=_0x3f5fb4(0x10e),_0xb15e2a['qIAlk']='Error\x20in\x20sending\x20trace\x20file:\x20%s';const _0x7e1a2e=_0xb15e2a;try{const _0x7a0c2e={'event_type':_0x7e1a2e[_0x3f5fb4(0x92)],'logs':[{'data':_0x77f76c?fs['createReadStream'](_0x77f76c):'','test_run_uuid':_0x46c640,'kind':_0x7e1a2e[_0x3f5fb4(0xb5)],'fileName':_0x77f76c?path[_0x3f5fb4(0x91)](_0x77f76c):''}]};return await SessionHandler[_0x3f5fb4(0xcf)](_0x7a0c2e,0x0,_0x7e1a2e[_0x3f5fb4(0x94)]);}catch(_0x142e00){logger[_0x3f5fb4(0x125)](util['format'](_0x7e1a2e[_0x3f5fb4(0xc1)],_0x142e00));}},exports[a40_0x5bb86a(0x10e)]=async(_0x96b701,_0x53e464)=>{const _0xbc99b7=a40_0x5bb86a,_0x104577={};_0x104577[_0xbc99b7(0xad)]=_0xbc99b7(0x10f),_0x104577[_0xbc99b7(0x107)]=_0xbc99b7(0xeb),_0x104577[_0xbc99b7(0xb0)]=_0xbc99b7(0xd8);const _0x1bead8=_0x104577;try{logger[_0xbc99b7(0xdb)]('Checking\x20if\x20trace\x20is\x20enabled\x20for\x20test:\x20'+_0x53e464);const _0x4a4764=await exports[_0xbc99b7(0x83)](_0x96b701,_0x1bead8[_0xbc99b7(0xad)]);if(exports[_0xbc99b7(0x10d)](_0x4a4764)){logger[_0xbc99b7(0xdb)](_0x1bead8[_0xbc99b7(0x107)]);const _0x3bc09a={};_0x3bc09a[_0xbc99b7(0x8d)]=_0x53e464,_0x3bc09a[_0xbc99b7(0x11f)]=_0x4a4764;const _0x32f1ae=_0x3bc09a;TestDetails['addTraceFilePath'](_0x32f1ae);};}catch(_0xe916bd){logger[_0xbc99b7(0x125)](util[_0xbc99b7(0xf0)](_0x1bead8[_0xbc99b7(0xb0)],_0xe916bd));}};
1
+ const a40_0x34c274=a40_0x48a0;(function(_0x3c0b70,_0x1b054d){const _0x6b1940=a40_0x48a0,_0x16a2ee=_0x3c0b70();while(!![]){try{const _0x569a2e=-parseInt(_0x6b1940(0x8c))/0x1+parseInt(_0x6b1940(0x93))/0x2*(parseInt(_0x6b1940(0x11a))/0x3)+-parseInt(_0x6b1940(0xe8))/0x4*(parseInt(_0x6b1940(0x10c))/0x5)+parseInt(_0x6b1940(0xef))/0x6+parseInt(_0x6b1940(0x80))/0x7*(parseInt(_0x6b1940(0xb4))/0x8)+parseInt(_0x6b1940(0xb9))/0x9*(parseInt(_0x6b1940(0xad))/0xa)+-parseInt(_0x6b1940(0xc2))/0xb*(parseInt(_0x6b1940(0x88))/0xc);if(_0x569a2e===_0x1b054d)break;else _0x16a2ee['push'](_0x16a2ee['shift']());}catch(_0x50b9b1){_0x16a2ee['push'](_0x16a2ee['shift']());}}}(a40_0x5b4f,0xa8b5d));function a40_0x48a0(_0x26ee36,_0x96909a){const _0x5b4fd7=a40_0x5b4f();return a40_0x48a0=function(_0x48a000,_0x2f1cce){_0x48a000=_0x48a000-0x76;let _0x4af322=_0x5b4fd7[_0x48a000];return _0x4af322;},a40_0x48a0(_0x26ee36,_0x96909a);}function a40_0x5b4f(){const _0x203bde=['tpywA','../../../helpers/helper','@playwright/test/lib/transform/transform.js','lib','length','sDHsL','Owvsd','DMPpC','DmCqZ','@playwright/test/lib/common/transform.js','Test\x20timeout\x20of','name','debug','Aystc','winstonLogger','VBzKJ','QUOVU','Searching\x20for\x20key:\x20','getTransformPath','DYSiN','euhlm','wYApT','HVGQu','extname','TnLJI','oCoJt','validateFilePath','compareVersions','test','bUQBy','1.38.0','220iuHHFm','brsdT','runner/loadUtils.js','Checking\x20if\x20trace\x20is\x20enabled\x20for\x20test:\x20','createReadStream','calculatePerformance','call','3055986froRqo','performance-report-worker-','Total\x20time\x20taken\x20by\x20O11y\x20is\x20','epSfw','stack','QfhfJ','format','beforeWorkerHook','DeMwc','ftGig','onBegin','util','LogCreated','slice','EZOIk','TEST_ATTACHMENT','onStepEnd','Found\x20key:\x20','flvAW','PLAYWRIGHT','map','FpTxE','message','LkiUv','qVrpg','VcURn','sXQdD','@playwright/test','VGIMj','41330HhzbLi','playwright','tags','CyOok','yhfCR','RsUeQ','tEJtS','qFqHa','testUId','filePath','STAAe','sendTraceZip','.zip','join','3RjMmgS','Trace\x20file\x20size\x20exceeds\x20100MB:\x20','playwright/lib/transform/transform.js','stopAndGenerate','getLoadUtilsPath','EHaaQ','eVVRs','mbFbj','winPJ','doo11ySync','@playwright/test/lib/common/configLoader.js','3234JFkrbL','../../../helpers/logger','iWJEK','tnJTV','PeHXe','error','onTestBegin','MYndC','312KjsZwP','VBlLK','readdirSync','existsSync','91983sqMOfx','DHljr','eJFhK','CKmxL','attachments','getProjectUtilsPath','VQErX','440176cwjUTO','Arguments','YyvDc','mKJrx','nlszG','\x20bytes','Invalid\x20file\x20format.\x20Expected\x20a\x20.zip\x20file,\x20but\x20got:\x20','path','calculateTimesFromMultipleFiles','rlUtG','ilxId','EAlXS','HUSou','env','runner/projectUtils.js','iNhTW','endSession','afterWorkerHook','uploadTraceZip','addTraceFilePath','../../../helpers/performance/performance-tester','vNHTe','title','setupBrowserDetails','SywuO','processPageScreenshot','277170gsWdAK','getForkProcessPath','Percentage\x20of\x20increased\x20time\x20is\x20','prototype','xwCQw','Error\x20in\x20sending\x20trace\x20file:\x20%s','UxMZB','12248aEjoIp','startsWith','getConfigLoaderPath','playwright/lib/common/configLoader.js','pzgqz','387gbBrRO','common','getPlaywrightLibPath','TEST_LOG','toISOString','START_TIME','tMGKm','getTime','statSync','588467dNgSct','findNestedKey','zRiKd','ERROR','getTestTags','basename','cqgcA'];a40_0x5b4f=function(){return _0x203bde;};return a40_0x5b4f();}const {debug,getFrameworkVersion,removeAnsiColors,failureData}=require('../../../helpers/test-observability/utils'),PerformanceTester=require(a40_0x34c274(0xa7)),fs=require('fs'),{FRAMEWORKS,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE}=require('../../../helpers/test-observability/constants'),helper=require(a40_0x34c274(0xca)),path=require(a40_0x34c274(0x9a)),logger=require(a40_0x34c274(0x81))[a40_0x34c274(0xd7)],SessionHandler=require('../../../helpers/test-observability/sessionHandler'),TestDetails=require('./test-details'),util=require(a40_0x34c274(0xfa)),getTagsFromTitle=_0x41fbbb=>{const _0x860566=a40_0x34c274;return _0x41fbbb['match'](/@(\w+)/g)?.[_0x860566(0x103)](_0x52f99e=>_0x52f99e[_0x860566(0xfc)](0x1))||[];};exports[a40_0x34c274(0xc6)]=_0x289c3c=>{const _0x3f2d61=a40_0x34c274,_0x4fb7ce={'DHljr':function(_0x1e6d0d,_0xa9dbeb){return _0x1e6d0d(_0xa9dbeb);}};if(_0x289c3c['tags'])return _0x289c3c[_0x3f2d61(0x10e)][_0x3f2d61(0x103)](_0x1f67d7=>_0x1f67d7[_0x3f2d61(0xb5)]('@')?_0x1f67d7['substr'](0x1):_0x1f67d7);return _0x4fb7ce[_0x3f2d61(0x8d)](getTagsFromTitle,_0x289c3c[_0x3f2d61(0xa9)]);},exports[a40_0x34c274(0xed)]=async()=>{const _0x553273=a40_0x34c274,_0x49d2dd={'oCoJt':function(_0x539091,_0x1dcd7d){return _0x539091-_0x1dcd7d;},'DmCqZ':'performance-reporter.html','EHaaQ':_0x553273(0xf9),'PeHXe':_0x553273(0xa3),'bUQBy':_0x553273(0x86),'sDHsL':'onTestEnd','ftGig':'onStepBegin','Owvsd':_0x553273(0xff),'YyDFa':_0x553273(0xf6),'mKJrx':_0x553273(0xa4),'yhfCR':'beforeTestHook','SywuO':'afterTestHook','tnJTV':_0x553273(0x7e),'ilxId':_0x553273(0xac),'CyOok':'sendSessionDetails','iNhTW':_0x553273(0xaa),'BCCRF':'requestSpyCallback','TnLJI':'sendTestLog','YyvDc':function(_0x23a41e,_0x5e6188){return _0x23a41e(_0x5e6188);},'FpTxE':function(_0x74d234,_0x4de48e){return _0x74d234/_0x4de48e;},'VGIMj':function(_0xc4ad7d,_0x10bf40){return _0xc4ad7d+_0x10bf40;},'DeMwc':function(_0x3ec0ea,_0x1c7333){return _0x3ec0ea*_0x1c7333;},'eJFhK':function(_0x2240f0,_0x599edb){return _0x2240f0/_0x599edb;},'BAwgJ':function(_0x244d36,_0x6f935f){return _0x244d36+_0x6f935f;}};if(!process[_0x553273(0xa0)][_0x553273(0xbe)])return;const _0x5e35ab=_0x49d2dd[_0x553273(0xe2)](new Date()[_0x553273(0xc0)](),new Date(process[_0x553273(0xa0)][_0x553273(0xbe)])['getTime']()),_0x45d9ea=await PerformanceTester[_0x553273(0x78)](_0x49d2dd[_0x553273(0xd1)],[_0x49d2dd[_0x553273(0x7a)],_0x49d2dd[_0x553273(0x84)],_0x49d2dd[_0x553273(0xe6)],_0x49d2dd[_0x553273(0xce)],_0x49d2dd[_0x553273(0xf8)],_0x49d2dd[_0x553273(0xcf)]]),_0x214bd1=fs[_0x553273(0x8a)]('.'),_0x45d726=_0x214bd1['filter'](_0x36edc1=>_0x36edc1[_0x553273(0xb5)](_0x553273(0xf0))&&_0x36edc1['endsWith']('.json')),_0x53a528=await PerformanceTester[_0x553273(0x9b)](_0x45d726,[_0x49d2dd['YyDFa'],_0x49d2dd[_0x553273(0x96)],_0x49d2dd[_0x553273(0x110)],_0x49d2dd[_0x553273(0xab)],_0x49d2dd[_0x553273(0x83)],_0x49d2dd[_0x553273(0x9d)],_0x49d2dd[_0x553273(0x10f)],_0x49d2dd[_0x553273(0xa2)],_0x49d2dd['BCCRF'],_0x49d2dd[_0x553273(0xe1)]]);_0x49d2dd[_0x553273(0x95)](debug,'Total\x20duration\x20for\x20whole\x20build\x20is\x20'+_0x49d2dd[_0x553273(0x104)](_0x5e35ab,0x3e8)+'\x20s'),_0x49d2dd[_0x553273(0x95)](debug,_0x553273(0xf1)+_0x49d2dd[_0x553273(0x10b)](_0x53a528,_0x45d9ea)),_0x49d2dd[_0x553273(0x95)](debug,_0x553273(0xaf)+_0x49d2dd[_0x553273(0xf7)](_0x49d2dd[_0x553273(0x8e)](_0x49d2dd['BAwgJ'](_0x53a528,_0x45d9ea),_0x5e35ab),0x64));},exports[a40_0x34c274(0xdb)]=()=>{const _0xfc05e7=a40_0x34c274,_0xa7a3af={'vNHTe':function(_0x926cf7,_0x2ee98e){return _0x926cf7(_0x2ee98e);},'HVGQu':function(_0x359b01,_0x50f53e){return _0x359b01>=_0x50f53e;},'bLFKj':'1.38.0','qVrpg':_0xfc05e7(0x77),'PJWev':_0xfc05e7(0x10d),'brsdT':'1.35.0','UxMZB':_0xfc05e7(0xcb),'iWJEK':'@playwright/test','eVVRs':_0xfc05e7(0xd2)},_0x774191=_0xa7a3af[_0xfc05e7(0xa8)](getFrameworkVersion,FRAMEWORKS[_0xfc05e7(0x102)]);if(_0xa7a3af[_0xfc05e7(0xdf)](helper['compareVersions'](_0x774191,_0xa7a3af['bLFKj']),0x0))return[_0xa7a3af[_0xfc05e7(0x107)],_0xa7a3af['PJWev']];if(_0xa7a3af[_0xfc05e7(0xdf)](helper[_0xfc05e7(0xe4)](_0x774191,_0xa7a3af[_0xfc05e7(0xe9)]),0x0))return[_0xa7a3af[_0xfc05e7(0xb3)],_0xa7a3af[_0xfc05e7(0x82)]];return[_0xa7a3af[_0xfc05e7(0x7b)],_0xa7a3af[_0xfc05e7(0x82)]];},exports[a40_0x34c274(0xb6)]=()=>{const _0x21d24c=a40_0x34c274,_0x3f0c52={'SCjeJ':function(_0xed4d4b,_0x2c2bf8){return _0xed4d4b(_0x2c2bf8);},'qFqHa':function(_0x556ed9,_0x5ae256){return _0x556ed9>=_0x5ae256;},'euhlm':_0x21d24c(0xe7),'QUOVU':_0x21d24c(0xb7),'KTRPE':_0x21d24c(0x10d),'QfhfJ':_0x21d24c(0x7f),'nlszG':_0x21d24c(0x10a)},_0x1bd84c=_0x3f0c52['SCjeJ'](getFrameworkVersion,FRAMEWORKS[_0x21d24c(0x102)]);if(_0x3f0c52[_0x21d24c(0x113)](helper['compareVersions'](_0x1bd84c,_0x3f0c52[_0x21d24c(0xdd)]),0x0))return[_0x3f0c52[_0x21d24c(0xd9)],_0x3f0c52['KTRPE']];return[_0x3f0c52[_0x21d24c(0xf4)],_0x3f0c52[_0x21d24c(0x97)]];},exports[a40_0x34c274(0x79)]=()=>{const _0xb44ba2=a40_0x34c274,_0x1a37b5={};_0x1a37b5[_0xb44ba2(0xc8)]=_0xb44ba2(0xea);const _0x256df6=_0x1a37b5;return helper['getPlaywrightLibPath'](_0x256df6[_0xb44ba2(0xc8)]);},exports[a40_0x34c274(0x91)]=()=>{const _0x4c5b77=a40_0x34c274,_0x4e743b={};_0x4e743b[_0x4c5b77(0xdc)]=_0x4c5b77(0xa1);const _0x419376=_0x4e743b;return helper[_0x4c5b77(0xbb)](_0x419376['DYSiN']);},exports[a40_0x34c274(0xae)]=()=>{const _0x188ebd=a40_0x34c274,_0xefa7d8={'tEJtS':function(_0x3a1d16,_0x43ec1f){return _0x3a1d16(_0x43ec1f);},'epSfw':function(_0x38e605,_0x5485b7){return _0x38e605>=_0x5485b7;},'STAAe':'1.38.0','rlUtG':_0x188ebd(0xcc),'DMPpC':_0x188ebd(0xba),'zRiKd':'process.js','VQErX':'test'},_0x2691b5=_0xefa7d8[_0x188ebd(0x112)](getFrameworkVersion,FRAMEWORKS[_0x188ebd(0x102)]);if(_0xefa7d8[_0x188ebd(0xf2)](helper[_0x188ebd(0xe4)](_0x2691b5,_0xefa7d8[_0x188ebd(0x116)]),0x0))return path[_0x188ebd(0x119)](_0xefa7d8[_0x188ebd(0x9c)],_0xefa7d8[_0x188ebd(0xd0)],_0xefa7d8['zRiKd']);return path['join'](_0xefa7d8[_0x188ebd(0x92)],_0xefa7d8[_0x188ebd(0x9c)],_0xefa7d8[_0x188ebd(0xd0)],_0xefa7d8[_0x188ebd(0xc4)]);},exports['getFailureData']=(_0x115ae5,{test_run_uuid:_0x9d2a7e})=>{const _0x43a10e=a40_0x34c274,_0x33e9ee={'ndQvq':_0x43a10e(0xc5),'RsUeQ':_0x43a10e(0xbc),'VBlLK':function(_0x498014,_0x361bf7){return _0x498014<=_0x361bf7;},'MYndC':function(_0x21bfe9,_0x4b22d4){return _0x21bfe9(_0x4b22d4);},'SueZJ':_0x43a10e(0xd3),'winPJ':function(_0xc74da1,_0x165758){return _0xc74da1(_0x165758);},'sXQdD':function(_0x518052,_0x5a631d){return _0x518052>=_0x5a631d;},'VBzKJ':'1.42.0','tMGKm':function(_0x14c999,_0x527d94){return _0x14c999>_0x527d94;},'wYApT':function(_0x708e27,_0x2fbd13){return _0x708e27(_0x2fbd13);},'tpywA':function(_0x5d8e76,_0x3d5fef,_0x51c116){return _0x5d8e76(_0x3d5fef,_0x51c116);},'pzgqz':_0x43a10e(0xe5)};if(!_0x115ae5||_0x33e9ee[_0x43a10e(0x89)](_0x115ae5[_0x43a10e(0xcd)],0x0))return[];const _0x26a24c=_0x33e9ee[_0x43a10e(0x87)](removeAnsiColors,_0x115ae5[0x0]['message']);if(_0x26a24c[_0x43a10e(0xb5)](_0x33e9ee['SueZJ'])){const _0x335e7f=_0x115ae5[0x0],_0x5423aa=_0x33e9ee[_0x43a10e(0x7d)](getFrameworkVersion,FRAMEWORKS[_0x43a10e(0x102)]);if((!_0x335e7f[_0x43a10e(0xf3)]||_0x33e9ee[_0x43a10e(0x109)](_0x5423aa,_0x33e9ee[_0x43a10e(0xd8)]))&&_0x33e9ee[_0x43a10e(0xbf)](_0x115ae5[_0x43a10e(0xcd)],0x1))return{'failureData':[{'backtrace':[_0x26a24c,_0x33e9ee[_0x43a10e(0xde)](removeAnsiColors,_0x115ae5[0x1][_0x43a10e(0xf3)])]}],'logs':_0x115ae5[_0x43a10e(0xfc)](0x2)['map'](_0x11217f=>{const _0x9865fa=_0x43a10e;return{'timestamp':new Date()[_0x9865fa(0xbd)](),'level':_0x33e9ee['ndQvq'],'message':''+_0x11217f[_0x9865fa(0x105)],'kind':_0x33e9ee[_0x9865fa(0x111)],'http_response':{},'test_run_uuid':_0x9d2a7e};})};}return{'failureData':_0x33e9ee[_0x43a10e(0xc9)](failureData,_0x115ae5,_0x33e9ee[_0x43a10e(0xb8)]),'logs':[]};},exports[a40_0x34c274(0xe3)]=_0x2b3ded=>{const _0x165e77=a40_0x34c274,_0x548e93={};_0x548e93[_0x165e77(0xb1)]=function(_0x2a7df5,_0x133571){return _0x2a7df5!==_0x133571;},_0x548e93[_0x165e77(0xfd)]=_0x165e77(0x118),_0x548e93[_0x165e77(0x9f)]=function(_0x13b68e,_0xa94de5){return _0x13b68e>_0xa94de5;};const _0x523314=_0x548e93;if(_0x2b3ded&&fs[_0x165e77(0x8b)](_0x2b3ded)){if(_0x523314[_0x165e77(0xb1)](path[_0x165e77(0xe0)](_0x2b3ded)['toLowerCase'](),_0x523314[_0x165e77(0xfd)]))return logger[_0x165e77(0x85)](_0x165e77(0x99)+_0x2b3ded),![];const _0x75e1f=fs[_0x165e77(0xc1)](_0x2b3ded)['size'];if(_0x523314[_0x165e77(0x9f)](_0x75e1f,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE))return logger[_0x165e77(0x85)](_0x165e77(0x76)+_0x75e1f+_0x165e77(0x98)),![];return!![];}return![];},exports['findNestedKey']=(_0x48f91b,_0x178467)=>{const _0xf70020=a40_0x34c274,_0x4139f2={};_0x4139f2[_0xf70020(0x7c)]=_0xf70020(0x94);const _0x19d444=_0x4139f2;logger[_0xf70020(0xd5)](_0xf70020(0xda)+_0x178467);if(_0x48f91b[_0xf70020(0x90)]){const _0x4399af=_0x48f91b[_0xf70020(0x90)]['find'](_0x5c46f5=>_0x5c46f5[_0xf70020(0xd4)]==='trace');if(_0x4399af)return logger[_0xf70020(0xd5)](_0xf70020(0x100)+_0x178467+'\x20in\x20attachments'),_0x4399af[_0x178467];}else{if(Object[_0xf70020(0xb0)]['toString'][_0xf70020(0xee)](_0x48f91b)['includes'](_0x19d444[_0xf70020(0x7c)]))for(const _0x8d1e12 of _0x48f91b){if(_0x8d1e12[_0x178467])return logger['debug'](_0xf70020(0x100)+_0x178467+'\x20in\x20arguments'),_0x8d1e12[_0x178467];}}return'';},exports[a40_0x34c274(0xa5)]=async(_0x54a9d6,_0x35c71e)=>{const _0x514f00=a40_0x34c274,_0x3a5b5f={};_0x3a5b5f[_0x514f00(0x9e)]=_0x514f00(0xfb),_0x3a5b5f[_0x514f00(0x108)]=_0x514f00(0xfe),_0x3a5b5f[_0x514f00(0x106)]=_0x514f00(0x117),_0x3a5b5f[_0x514f00(0x101)]=_0x514f00(0xb2);const _0x4cd810=_0x3a5b5f;try{const _0x3123a3={'event_type':_0x4cd810[_0x514f00(0x9e)],'logs':[{'data':_0x54a9d6?fs[_0x514f00(0xec)](_0x54a9d6):'','test_run_uuid':_0x35c71e,'kind':_0x4cd810[_0x514f00(0x108)],'fileName':_0x54a9d6?path[_0x514f00(0xc7)](_0x54a9d6):''}]};return await SessionHandler['sendEventData'](_0x3123a3,0x0,_0x4cd810[_0x514f00(0x106)]);}catch(_0xa63f1d){logger[_0x514f00(0x85)](util[_0x514f00(0xf5)](_0x4cd810[_0x514f00(0x101)],_0xa63f1d));}},exports['sendTraceZip']=async(_0x3825e2,_0x51637d)=>{const _0x12fea9=a40_0x34c274,_0x5a7027={};_0x5a7027[_0x12fea9(0x8f)]='path',_0x5a7027[_0x12fea9(0xd6)]='Trace\x20enabled',_0x5a7027['ZKLEU']='Error\x20in\x20sending\x20trace\x20file:\x20%s';const _0x1750b3=_0x5a7027;try{logger[_0x12fea9(0xd5)](_0x12fea9(0xeb)+_0x51637d);const _0x4ffc5f=await exports[_0x12fea9(0xc3)](_0x3825e2,_0x1750b3['CKmxL']);if(exports['validateFilePath'](_0x4ffc5f)){logger[_0x12fea9(0xd5)](_0x1750b3[_0x12fea9(0xd6)]);const _0x2f5b8c={};_0x2f5b8c[_0x12fea9(0x114)]=_0x51637d,_0x2f5b8c[_0x12fea9(0x115)]=_0x4ffc5f;const _0x19df2e=_0x2f5b8c;TestDetails[_0x12fea9(0xa6)](_0x19df2e);};}catch(_0x86ff01){logger[_0x12fea9(0x85)](util[_0x12fea9(0xf5)](_0x1750b3['ZKLEU'],_0x86ff01));}};
@@ -1 +1 @@
1
- const a41_0x24882e=a41_0x1433;function a41_0x9538(){const _0x3523df=['6|3|0|5|2|4|1','root','getInstance','15684PgAMwt','configureGit','../../../helpers/testhub/testhubHandler','object','hiadO','HYwcC','oqzRh','BEFORE_EACH','nMxLy','../../../helpers/test-observability/requestQueueHandler','NGKqd','fANJf','TestRunFinished','trace_','2710862MpBqpV','_bs_hookIdentifier','_testHooksMap','rfrhF','CDfrj','failure_reason','After\x20Hooks','getCustomRerunParam','\x20is\x20triggered\x20for\x20test\x20','sendHookRunEvent','nQSmg','sendSessionDetails','forEach','pNmGW','MwYhk','dDzET','xtKvi','readFileSync','onTestEnd','lhOyO','10551905KrIkuS','shutdown','hooks','MLyoo','map','AOrVX','UgXlz','screenshot','existsSync','roLaY','\x20for\x20','DvCju','rvXjT','reverse','JcCqN','join','getTestRunIdentifier','getTime','fglZu','21uCPots','Expected\x20to\x20fail,\x20but\x20passed.','NixCs','BOanN','exports','reportLogs','LpUcx','Sending\x20session\x20details\x20for\x20','onEnd','utf8','ImXRO','getHierarchy','duOOy','KMBhG','test_run','ZQMsb','title','xdztO','Hook\x20Finished\x20with\x20unique\x20id\x20','base64','VNRWS','ADtiP','mtime','TEST_SCREENSHOT','setup','_tests','indexOf','wVIyW','AvxSg','857678NkTsdJ','test_run_uuid','getHookType','beforeEach\x20hook','format','env','GTgeX','parent','AXtLo','./pwUtils','qECZp','endSession','_tags','attachments','760845GRAZiY','dQoRW','9MKKNkF','../../../helpers/test-observability/sessionHandler','oEdCk','onBegin','errors','gNuoc','START_TIME','XIsyr','qNHIE','37107860nPLPlk','eRqrx','javascript','basename','performance-report-reporter.json','logLevel','EBCTa','sendTestRunEvent','addTestUIDAndReportLog','Test\x20Started\x20with\x20unique\x20id\x20','pending','iAzyj','gSles','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','name','retry','cwd','ptMjE','PLAYWRIGHT_TRACE_LOGS','getScope','push','JiQUX','onTestBegin','../../../helpers/test-observability/error-handler','PqDwB','hook_run_uuid','getTestUUID','test','failed','Trace\x20file\x20found\x20for\x20test:\x20','../../../helpers/helper','ggmoG','hook_run','finishedAt','wPNxX','mTOoN','uCYGM','toString','cQyYg','split','meta','./test-details','uuid','AJVPG','yOdDw','Xzyso','duration','getStepIdentifier','aFPPt','NjChS','lsitn','startTime','AFTER_ALL','zgZMt','path','\x20at\x20','TEST_STEP','mkdirSync','BROWSERSTACK_LOG_LEVEL','length','NvoNb','getTestIdentifier','startsWith','FWoUe','util','event_type','Test\x20Finished\x20with\x20unique\x20id\x20','titlePath','expanded','MxFZx','gtYnX','backtrace','etktD','BROWSERSTACK_O11Y_PERF_MEASUREMENT','hook','7451952EJcHYd','OCrnz','_gitConfigured','startMonitoring','stack','BROWSERSTACK_TEST_RUN_ID','YpeHl','HookRunFinished','YkULN','Error\x20in\x20sending\x20trace\x20zip:\x20%s','_gitConfigPath','result','uMMgv','error','qLEgE','VydOb','file','euEhI','tuYDJ','getStepsAndLogs','LDuhL','beforeAll\x20hook','passed','nRIiX','.txt','qzUcD','startedAt','afterEach\x20hook','IQzZx','sumGx','xvKEx','cojTV','onStepEnd','smmPN','hejWE','needToReportStep','afterAll\x20hook','status','rVbad','message','DYTdi','TEST_ATTACHMENT','MyReporter','steps','6TBRcvX','expectedStatus','VPTCd','cclBI','toISOString','category','PLAYWRIGHT','AohsW','relative','UHAkQ','retry_of','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','lSoPY','uploadEventData','iKemu','onStepBegin','unknown','err','location','setStepIdentifier','bGNCm','Error\x20in\x20calculating\x20performance:\x20','djlcE','CBTSessionCreated','FDfOb','../../../helpers/testhub/utils','logs','failure_type','mIAcn','eYVHn','pNlQc','wbTzZ','depth','.browserstack','uvLgQ'];a41_0x9538=function(){return _0x3523df;};return a41_0x9538();}(function(_0x4dc74d,_0xa438c0){const _0x49aa95=a41_0x1433,_0x3008db=_0x4dc74d();while(!![]){try{const _0x4dcd37=parseInt(_0x49aa95(0x18e))/0x1+-parseInt(_0x49aa95(0x14a))/0x2+-parseInt(_0x49aa95(0x171))/0x3*(parseInt(_0x49aa95(0x13c))/0x4)+-parseInt(_0x49aa95(0x19c))/0x5*(-parseInt(_0x49aa95(0x116))/0x6)+-parseInt(_0x49aa95(0x15e))/0x7+-parseInt(_0x49aa95(0x1f2))/0x8+-parseInt(_0x49aa95(0x19e))/0x9*(-parseInt(_0x49aa95(0x1a7))/0xa);if(_0x4dcd37===_0xa438c0)break;else _0x3008db['push'](_0x3008db['shift']());}catch(_0x506d5e){_0x3008db['push'](_0x3008db['shift']());}}}(a41_0x9538,0xdb71e));function a41_0x1433(_0x1c17f8,_0x37e9c7){const _0x953884=a41_0x9538();return a41_0x1433=function(_0x1433d4,_0x15f75b){_0x1433d4=_0x1433d4-0x108;let _0x427e9d=_0x953884[_0x1433d4];return _0x427e9d;},a41_0x1433(_0x1c17f8,_0x37e9c7);}const RequestQueueHandler=require(a41_0x24882e(0x145)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require(a41_0x24882e(0x197)),{v4:uuidv4}=require(a41_0x24882e(0x1d1)),path=require(a41_0x24882e(0x1dd)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require('../../../helpers/test-observability/utils'),{getGitMetaData,setLogLevel}=require(a41_0x24882e(0x1c5)),TestDetails=require(a41_0x24882e(0x1d0)),fs=require('fs'),util=require(a41_0x24882e(0x1e7)),{o11yClassErrorHandler}=require(a41_0x24882e(0x1be)),PerformanceTester=require('../../../helpers/performance/performance-tester'),{FRAMEWORKS}=require('../../../helpers/test-observability/constants'),SessionHandler=require(a41_0x24882e(0x19f)),{appendTesthubParams}=require(a41_0x24882e(0x12f)),TestHubHandler=require(a41_0x24882e(0x13e)),helper=require(a41_0x24882e(0x1c5));class MyReporter{constructor(_0x6f63cb){const _0x485db0=a41_0x24882e,_0xcd6862={'rvXjT':_0x485db0(0x139),'smmPN':_0x485db0(0x1ab),'ZQMsb':function(_0x5687c4,_0x1ad13c,_0x15d3b2,_0x22c3d5){return _0x5687c4(_0x1ad13c,_0x15d3b2,_0x22c3d5);}},_0x1e2acd=_0xcd6862[_0x485db0(0x16a)][_0x485db0(0x1ce)]('|');let _0x20fb33=0x0;while(!![]){switch(_0x1e2acd[_0x20fb33++]){case'0':this[_0x485db0(0x18a)]={};continue;case'1':this[_0x485db0(0x1fc)]=null;continue;case'2':this['options']=_0x6f63cb;continue;case'3':process['env'][_0x485db0(0x1f0)]&&(PerformanceTester[_0x485db0(0x1f5)](_0xcd6862[_0x485db0(0x10b)]),process[_0x485db0(0x193)][_0x485db0(0x1a4)]=new Date()['toISOString']());continue;case'4':this['_gitConfigured']=![];continue;case'5':this[_0x485db0(0x14c)]={};continue;case'6':const _0x38e586={};_0x38e586[_0x485db0(0x1ac)]=process[_0x485db0(0x193)][_0x485db0(0x1e1)],_0xcd6862[_0x485db0(0x180)](setLogLevel,_0x38e586,new Map(),new Map());continue;}break;}}async[a41_0x24882e(0x1a1)](){const _0x460197=a41_0x24882e;TestDetails[_0x460197(0x189)](),await this[_0x460197(0x13d)]();}async['onTestBegin'](_0x299066,_0x140f00){const _0x2f133a=a41_0x24882e,_0x118224={'iLctd':function(_0xd3b297,_0x70f21){return _0xd3b297(_0x70f21);},'nMxLy':'TestRunStarted'},_0x4b7b43=this[_0x2f133a(0x1e4)](_0x299066),_0x17fee4=TestDetails[_0x2f133a(0x1c1)](this['getTestRunIdentifier'](_0x299066,_0x140f00[_0x2f133a(0x1b6)]));process[_0x2f133a(0x193)][_0x2f133a(0x1f7)]=_0x17fee4;const _0x25a5d4={};_0x25a5d4[_0x2f133a(0x1d1)]=_0x17fee4,_0x25a5d4[_0x2f133a(0x20c)]=_0x140f00[_0x2f133a(0x1da)],this[_0x2f133a(0x18a)][_0x4b7b43]=_0x25a5d4,_0x118224['iLctd'](trace,_0x2f133a(0x1b0)+_0x4b7b43),await this[_0x2f133a(0x1ae)](_0x299066,_0x118224[_0x2f133a(0x144)],_0x140f00);}async[a41_0x24882e(0x125)](_0x44674d,_0x1ae7fd,_0x274ed5){const _0xaabbdf=a41_0x24882e,_0x2db5cd={'lSoPY':function(_0x3174b1,_0x4f2653){return _0x3174b1(_0x4f2653);},'MxFZx':'HookRunStarted'};if(!this[_0xaabbdf(0x10d)](_0x274ed5,_0x44674d))return;const _0x303121=this[_0xaabbdf(0x129)](_0x44674d,_0x274ed5);this['_tests'][_0x303121]={'uuid':TestDetails['getTestUUID'](_0x303121),'startedAt':_0x274ed5['startTime'][_0xaabbdf(0x11a)]()};const _0x2ec775=this[_0xaabbdf(0x16e)](_0x44674d,_0x1ae7fd[_0xaabbdf(0x1b6)]);!this[_0xaabbdf(0x14c)][_0x2ec775]&&(this[_0xaabbdf(0x14c)][_0x2ec775]=[]),this['_testHooksMap'][_0x2ec775][_0xaabbdf(0x1bb)](this['_tests'][_0x303121]['uuid']),_0x2db5cd[_0xaabbdf(0x122)](trace,'Hook\x20Started\x20with\x20unique\x20id\x20'+_0x303121+_0xaabbdf(0x152)+_0x2ec775),await this[_0xaabbdf(0x153)](_0x44674d,_0x274ed5,_0x2db5cd[_0xaabbdf(0x1ec)],_0x1ae7fd);}async[a41_0x24882e(0x10a)](_0x37e7eb,_0x159c71,_0x1dfed3){const _0x58dad0=a41_0x24882e,_0x4453d6={'fANJf':function(_0x5ec898,_0x3aefe1){return _0x5ec898+_0x3aefe1;},'uvLgQ':function(_0x2353dd,_0x3b63da){return _0x2353dd(_0x3b63da);},'sumGx':_0x58dad0(0x1f9)};if(!this[_0x58dad0(0x10d)](_0x1dfed3,_0x37e7eb))return;const _0x10a165=this[_0x58dad0(0x1d6)](_0x37e7eb,_0x1dfed3);this[_0x58dad0(0x18a)][_0x10a165]={...this[_0x58dad0(0x18a)][_0x10a165]||{},'finishedAt':new Date(_0x4453d6[_0x58dad0(0x147)](_0x1dfed3[_0x58dad0(0x1da)][_0x58dad0(0x16f)](),_0x1dfed3[_0x58dad0(0x1d5)]))},_0x4453d6[_0x58dad0(0x138)](trace,_0x58dad0(0x183)+_0x10a165+'\x20is\x20triggered'),await this[_0x58dad0(0x153)](_0x37e7eb,_0x1dfed3,_0x4453d6[_0x58dad0(0x20f)],_0x159c71);}async[a41_0x24882e(0x15c)](_0x5df3ce,_0x723fba){const _0x1c2d80=a41_0x24882e,_0x2e2ea3={'ImXRO':function(_0x307aa6,_0x30ef26){return _0x307aa6===_0x30ef26;},'fglZu':_0x1c2d80(0x165),'jgRVw':_0x1c2d80(0x188),'rfrhF':_0x1c2d80(0x184),'iKemu':function(_0x30c938,_0x51f521){return _0x30c938(_0x51f521);},'Xzyso':_0x1c2d80(0x148),'dQoRW':_0x1c2d80(0x121),'euEhI':function(_0x27ffb2,_0xdede11){return _0x27ffb2(_0xdede11);},'iAzyj':function(_0xaeb545,_0x469cb1,_0x5a4e71){return _0xaeb545(_0x469cb1,_0x5a4e71);},'FWoUe':function(_0x19e987,_0x4bff15){return _0x19e987(_0x4bff15);},'nQSmg':_0x1c2d80(0x1fb),'VNRWS':function(_0x33d575,_0x1b8f07){return _0x33d575>_0x1b8f07;}},_0x2c66c2=this['getTestIdentifier'](_0x5df3ce),_0x4418f6=TestDetails['getTestUUID'](this[_0x1c2d80(0x16e)](_0x5df3ce,_0x723fba[_0x1c2d80(0x1b6)]));this[_0x1c2d80(0x18a)][_0x2c66c2]={...this[_0x1c2d80(0x18a)][_0x2c66c2]||{},'finishedAt':new Date()[_0x1c2d80(0x11a)]()},_0x2e2ea3[_0x1c2d80(0x124)](trace,_0x1c2d80(0x1e9)+_0x2c66c2);try{await this['sendTestRunEvent'](_0x5df3ce,_0x2e2ea3[_0x1c2d80(0x1d4)],_0x723fba);}catch(_0x534c71){_0x2e2ea3[_0x1c2d80(0x124)](debug,util[_0x1c2d80(0x192)](_0x2e2ea3[_0x1c2d80(0x19d)],_0x534c71[_0x1c2d80(0x1cc)]()));}try{_0x2e2ea3[_0x1c2d80(0x203)](debug,_0x1c2d80(0x1b4)+_0x4418f6),await _0x2e2ea3[_0x1c2d80(0x1b2)](sendTraceZip,_0x723fba,_0x4418f6);}catch(_0x299db9){_0x2e2ea3[_0x1c2d80(0x1e6)](debug,util[_0x1c2d80(0x192)](_0x2e2ea3[_0x1c2d80(0x154)],_0x299db9[_0x1c2d80(0x1cc)]()));}const _0x6621d4=[];_0x723fba['attachments']&&_0x723fba[_0x1c2d80(0x19b)][_0x1c2d80(0x162)](_0x18f309=>{const _0x56c968=_0x1c2d80;if(_0x2e2ea3[_0x56c968(0x17b)](_0x18f309[_0x56c968(0x1b5)],_0x2e2ea3[_0x56c968(0x170)])){if(!_0x18f309['path']||!fs[_0x56c968(0x166)](_0x18f309['path']))return;_0x6621d4[_0x56c968(0x1bb)]({'test_run_uuid':_0x4418f6,'timestamp':fs['statSync'](_0x18f309[_0x56c968(0x1dd)])[_0x56c968(0x187)],'kind':_0x2e2ea3['jgRVw'],'message':fs[_0x56c968(0x15b)](_0x18f309[_0x56c968(0x1dd)],{'encoding':_0x2e2ea3[_0x56c968(0x14d)]})});}}),_0x2e2ea3[_0x1c2d80(0x185)](_0x6621d4[_0x1c2d80(0x1e2)],0x0)&&await MyReporter[_0x1c2d80(0x176)](_0x6621d4);}async[a41_0x24882e(0x199)](){const _0x34aa36=a41_0x24882e;await RequestQueueHandler[_0x34aa36(0x13b)]()[_0x34aa36(0x15f)]();}async[a41_0x24882e(0x179)](_0xf5d600){const _0x56ccc9=a41_0x24882e,_0x5cc48d={'qECZp':function(_0x566a1e){return _0x566a1e();},'KOyUF':function(_0x414f25,_0x25bf08){return _0x414f25(_0x25bf08);}};await this[_0x56ccc9(0x199)]();try{process['env'][_0x56ccc9(0x1f0)]&&await _0x5cc48d[_0x56ccc9(0x198)](calculatePerformance);}catch(_0x21d9e3){_0x5cc48d['KOyUF'](debug,_0x56ccc9(0x12b)+_0x21d9e3[_0x56ccc9(0x1cc)]());}}static async[a41_0x24882e(0x1af)](_0x4898d7,_0x3d7ada){const _0x3a2af7=a41_0x24882e;_0x3d7ada[_0x3a2af7(0x18f)]=TestDetails[_0x3a2af7(0x1c1)](_0x4898d7),await this['reportLogs']([_0x3d7ada]);}static async[a41_0x24882e(0x176)](_0x269f55){const _0x5f4356=a41_0x24882e,_0x1658c0={};_0x1658c0[_0x5f4356(0x1c6)]='LogCreated';const _0x920799=_0x1658c0,_0x1abf5c={};_0x1abf5c[_0x5f4356(0x1e8)]=_0x920799[_0x5f4356(0x1c6)],_0x1abf5c[_0x5f4356(0x130)]=_0x269f55,await SessionHandler[_0x5f4356(0x123)](_0x1abf5c);}async[a41_0x24882e(0x153)](_0x2c0061,_0x436d1c,_0x432c7a,_0x479fec){const _0x3c2fc6=a41_0x24882e,_0x2d02f6={'yOdDw':'hook','UgXlz':_0x3c2fc6(0x1a9),'OCrnz':_0x3c2fc6(0x1b1),'zohVY':function(_0x3e54e0,_0x18bdf6){return _0x3e54e0>=_0x18bdf6;},'KMBhG':function(_0xe55497,_0x173e77){return _0xe55497===_0x173e77;},'cojTV':_0x3c2fc6(0x1f9),'ziOzv':function(_0x64c043,_0x45d5f5){return _0x64c043>_0x45d5f5;},'AXtLo':_0x3c2fc6(0x1c3),'IQzZx':function(_0xfc960a,_0x287b17){return _0xfc960a(_0x287b17);},'PqDwB':function(_0x35080d,_0x57141a,_0x53d1d4){return _0x35080d(_0x57141a,_0x53d1d4);},'MLyoo':_0x3c2fc6(0x127),'pNlQc':function(_0x3eb324,_0x15d631){return _0x3eb324===_0x15d631;},'wPNxX':'passed'},_0x5174b7=this[_0x3c2fc6(0x1d6)](_0x2c0061,_0x436d1c),_0x2aba2d=this['_tests'][_0x5174b7],_0x50ae45={'uuid':_0x2aba2d['uuid'],'type':_0x2d02f6[_0x3c2fc6(0x1d3)],'hook_type':this[_0x3c2fc6(0x190)](_0x436d1c[_0x3c2fc6(0x181)]),'name':_0x436d1c['title'],'scope':this[_0x3c2fc6(0x1ba)](_0x436d1c),'scopes':this[_0x3c2fc6(0x17c)](_0x2c0061),'body':{'lang':_0x2d02f6[_0x3c2fc6(0x164)],'code':null},'identifier':_0x5174b7,'file_name':path[_0x3c2fc6(0x11e)](process[_0x3c2fc6(0x1b7)](),_0x2c0061[_0x3c2fc6(0x128)][_0x3c2fc6(0x202)]),'location':path[_0x3c2fc6(0x11e)](process[_0x3c2fc6(0x1b7)](),_0x2c0061[_0x3c2fc6(0x128)]['file']),'result':_0x2d02f6[_0x3c2fc6(0x1f3)],'duration_in_ms':_0x2d02f6['zohVY'](_0x436d1c['duration'],0x0)?_0x436d1c[_0x3c2fc6(0x1d5)]:undefined,'vc_filepath':this[_0x3c2fc6(0x1fc)]&&_0x2c0061[_0x3c2fc6(0x128)]['file']?path[_0x3c2fc6(0x11e)](this[_0x3c2fc6(0x1fc)],_0x2c0061[_0x3c2fc6(0x128)][_0x3c2fc6(0x202)]):undefined,'started_at':_0x2aba2d[_0x3c2fc6(0x20c)],'finished_at':_0x2aba2d[_0x3c2fc6(0x1c8)],'framework':FRAMEWORKS[_0x3c2fc6(0x11c)]};if(_0x2d02f6[_0x3c2fc6(0x17e)](_0x432c7a,_0x2d02f6[_0x3c2fc6(0x109)])){const {steps:_0x34ad1b,logs:_0x4ece73}=this[_0x3c2fc6(0x205)](_0x436d1c[_0x3c2fc6(0x115)],_0x2aba2d[_0x3c2fc6(0x1d1)],_0x2d02f6[_0x3c2fc6(0x1d3)]);_0x4ece73&&_0x2d02f6['ziOzv'](_0x4ece73[_0x3c2fc6(0x1e2)],0x0)&&await MyReporter[_0x3c2fc6(0x176)](_0x4ece73);const _0x1f3294={};_0x1f3294[_0x3c2fc6(0x115)]=_0x34ad1b,_0x50ae45[_0x3c2fc6(0x1cf)]=_0x1f3294;if(_0x436d1c[_0x3c2fc6(0x1ff)]){_0x50ae45[_0x3c2fc6(0x1fd)]=_0x2d02f6[_0x3c2fc6(0x196)],_0x50ae45['failure_reason']=_0x2d02f6[_0x3c2fc6(0x20e)](removeAnsiColors,_0x436d1c[_0x3c2fc6(0x1ff)][_0x3c2fc6(0x111)]),_0x50ae45[_0x3c2fc6(0x131)]=_0x2d02f6[_0x3c2fc6(0x20e)](getFailureType,_0x436d1c[_0x3c2fc6(0x1ff)][_0x3c2fc6(0x111)]);const _0x502874=_0x2d02f6[_0x3c2fc6(0x1bf)](failureData,_0x436d1c[_0x3c2fc6(0x1ff)],_0x2d02f6[_0x3c2fc6(0x161)]);if(_0x502874&&_0x2d02f6[_0x3c2fc6(0x134)](_0x502874[_0x3c2fc6(0x1e2)],0x0)){const _0x5a833b={};_0x5a833b['backtrace']=[_0x50ae45[_0x3c2fc6(0x14f)]],_0x5a833b['expanded']=[],_0x502874['push'](_0x5a833b);}_0x50ae45['failure']=_0x502874;}else _0x50ae45[_0x3c2fc6(0x1fd)]=_0x2d02f6[_0x3c2fc6(0x1c9)];}const _0x58fe7a={};_0x58fe7a['event_type']=_0x432c7a,_0x58fe7a[_0x3c2fc6(0x1c7)]=_0x50ae45;const _0x5f3be2=_0x58fe7a;await SessionHandler[_0x3c2fc6(0x123)](_0x5f3be2);}[a41_0x24882e(0x205)](_0x15458d,_0x17f324,_0xbc1d27){const _0x36ac30=a41_0x24882e,_0x5e6d6b={'NixCs':function(_0x3d33c4,_0x26f4d4){return _0x3d33c4===_0x26f4d4;},'oEdCk':_0x36ac30(0x1f1),'AvxSg':function(_0x4d178b,_0x57cf4e){return _0x4d178b===_0x57cf4e;},'FDfOb':_0x36ac30(0x150),'YkULN':'Before\x20Hooks','RZtHT':_0x36ac30(0x1c2),'fdPJX':'test_run_uuid','xtKvi':_0x36ac30(0x1c0),'rjuvH':_0x36ac30(0x1df),'etktD':'failed','ADtiP':_0x36ac30(0x208),'kftez':function(_0x16afd6,_0x3f9955){return _0x16afd6(_0x3f9955);},'BhSQy':function(_0x41b8f0,_0x39eec8){return _0x41b8f0(_0x39eec8);},'CavYq':function(_0x1b949e){return _0x1b949e();},'tuYDJ':function(_0x91c776,_0x257765){return _0x91c776(_0x257765);},'uCYGM':function(_0x5eb641,_0x188a71,_0x4fd769){return _0x5eb641(_0x188a71,_0x4fd769);}},_0x1b2ff6=[],_0x321617=[],_0x49a49a=_0x15458d['filter'](_0x23ca0c=>{const _0xfae9f1=_0x36ac30;if(_0x5e6d6b[_0xfae9f1(0x173)](_0x23ca0c[_0xfae9f1(0x11b)],_0x5e6d6b[_0xfae9f1(0x1a0)])&&(_0x5e6d6b[_0xfae9f1(0x18d)](_0x23ca0c[_0xfae9f1(0x181)],_0x5e6d6b[_0xfae9f1(0x12e)])||_0x5e6d6b[_0xfae9f1(0x18d)](_0x23ca0c[_0xfae9f1(0x181)],_0x5e6d6b[_0xfae9f1(0x1fa)])))return![];return!![];}),_0x26cee5=(_0x36468b,_0x4ebc46=![])=>{const _0x812dac=_0x36ac30;if(_0x5e6d6b[_0x812dac(0x173)](_0x36468b[_0x812dac(0x115)]['length'],0x0)){const _0x293c34=_0x5e6d6b[_0x812dac(0x18d)](_0xbc1d27,_0x5e6d6b['RZtHT'])?_0x5e6d6b['fdPJX']:_0x5e6d6b[_0x812dac(0x15a)];_0x321617[_0x812dac(0x1bb)]({'kind':_0x5e6d6b['rjuvH'],[_0x293c34]:_0x17f324,'message':_0x36468b['title'],'timestamp':_0x36468b[_0x812dac(0x1da)][_0x812dac(0x11a)](),'level':_0x36468b['error']?_0x5e6d6b[_0x812dac(0x1ef)]:_0x5e6d6b[_0x812dac(0x186)],'duration':_0x36468b['duration'],'failure':_0x36468b['error']&&_0x36468b['error'][_0x812dac(0x111)]&&_0x5e6d6b['kftez'](removeAnsiColors,_0x36468b[_0x812dac(0x1ff)][_0x812dac(0x111)]),'failure_type':_0x5e6d6b['BhSQy'](getFailureType,_0x36468b[_0x812dac(0x1ff)]&&_0x36468b[_0x812dac(0x1ff)][_0x812dac(0x111)])});}else{!_0x4ebc46&&_0x1b2ff6[_0x812dac(0x1bb)]({'id':_0x5e6d6b['CavYq'](uuidv4),'text':_0x36468b['title'],'keyword':undefined,'started_at':_0x36468b['startTime']['toISOString'](),'duration':_0x36468b[_0x812dac(0x1d5)],'result':_0x36468b[_0x812dac(0x1ff)]?_0x5e6d6b[_0x812dac(0x1ef)]:_0x5e6d6b[_0x812dac(0x186)],'failure':_0x36468b[_0x812dac(0x1ff)]&&_0x36468b[_0x812dac(0x1ff)]['message']&&_0x5e6d6b[_0x812dac(0x204)](removeAnsiColors,_0x36468b[_0x812dac(0x1ff)][_0x812dac(0x111)]),'failure_type':_0x5e6d6b[_0x812dac(0x204)](getFailureType,_0x36468b[_0x812dac(0x1ff)]&&_0x36468b[_0x812dac(0x1ff)][_0x812dac(0x111)])});for(const _0x323fe0 of _0x36468b[_0x812dac(0x115)]){_0x5e6d6b[_0x812dac(0x1cb)](_0x26cee5,_0x323fe0,!![]);}}};for(const _0x57ac16 of _0x49a49a){_0x5e6d6b[_0x36ac30(0x1cb)](_0x26cee5,_0x57ac16,![]);}const _0xe4e622={};return _0xe4e622[_0x36ac30(0x115)]=_0x1b2ff6,_0xe4e622[_0x36ac30(0x130)]=_0x321617,_0xe4e622;}async[a41_0x24882e(0x1ae)](_0x552bde,_0x469bda,_0x29fae6){const _0x10da6c=a41_0x24882e,_0x487efd={'hejWE':function(_0x38ad67,_0x17a017){return _0x38ad67(_0x17a017);},'XIsyr':_0x10da6c(0x113),'oqzRh':_0x10da6c(0x1b9),'ptMjE':_0x10da6c(0x1c2),'gNuoc':_0x10da6c(0x1a9),'djlcE':_0x10da6c(0x1b1),'aFPPt':function(_0x4edf4c,_0x5ef832){return _0x4edf4c(_0x5ef832);},'lsPbI':function(_0x42c2ac,_0x4cf235,_0x273581,_0x171201,_0x82cdb8){return _0x42c2ac(_0x4cf235,_0x273581,_0x171201,_0x82cdb8);},'MwYhk':function(_0x46e12a,_0xb1ba8b){return _0x46e12a>_0xb1ba8b;},'hiadO':function(_0x31c9cc,_0x15b8ac){return _0x31c9cc-_0x15b8ac;},'gtYnX':function(_0x2e4695,_0x5107b5){return _0x2e4695===_0x5107b5;},'lhOyO':'TestRunFinished','AohsW':function(_0x4269f8,_0x53ec0d){return _0x4269f8===_0x53ec0d;},'XSOeA':'skipped','roLaY':_0x10da6c(0x208),'qzUcD':function(_0x33c15c,_0x66ef04){return _0x33c15c===_0x66ef04;},'FTSDX':function(_0x3f1100,_0x2abc61){return _0x3f1100===_0x2abc61;},'qLEgE':_0x10da6c(0x1c3),'DYTdi':function(_0x59a15e,_0x1bf858){return _0x59a15e===_0x1bf858;},'mTOoN':'timedOut','NjChS':function(_0x776f4e,_0xb780a1){return _0x776f4e===_0xb780a1;},'VydOb':_0x10da6c(0x172),'cQyYg':function(_0x2a1348,_0x1463c1){return _0x2a1348(_0x1463c1);},'uMMgv':function(_0x381897,_0x320aef,_0x3a5ce9){return _0x381897(_0x320aef,_0x3a5ce9);},'qKrnd':function(_0x3cd3d0,_0x1398cc){return _0x3cd3d0>_0x1398cc;},'NvoNb':'path','crJJf':function(_0xb0dc3,_0x45ff78){return _0xb0dc3(_0x45ff78);},'dDzET':_0x10da6c(0x137),'xdztO':_0x10da6c(0x17a),'mldIn':function(_0x25e25b,_0x5a2275){return _0x25e25b!==_0x5a2275;}},_0x1314a0=this[_0x10da6c(0x1e4)](_0x552bde),_0x26a6cf=this['getScope'](_0x552bde),_0x2010d3=this[_0x10da6c(0x18a)][_0x1314a0],_0x202c11=path[_0x10da6c(0x11e)](process[_0x10da6c(0x1b7)](),_0x552bde[_0x10da6c(0x128)]['file']);await this['configureGit']();const _0x2fc82d={'uuid':_0x2010d3[_0x10da6c(0x1d1)],'type':_0x487efd[_0x10da6c(0x1b8)],'name':_0x552bde[_0x10da6c(0x181)],'body':{'lang':_0x487efd[_0x10da6c(0x1a3)],'code':_0x552bde['fn'][_0x10da6c(0x1cc)]()},'scope':_0x26a6cf,'scopes':this[_0x10da6c(0x17c)](_0x552bde),'identifier':_0x1314a0,'file_name':_0x202c11,'location':_0x202c11,'result':_0x487efd[_0x10da6c(0x12c)],'duration_in_ms':_0x29fae6&&_0x29fae6[_0x10da6c(0x1d5)]?_0x29fae6[_0x10da6c(0x1d5)]:null,'vc_filepath':this[_0x10da6c(0x1fc)]&&_0x552bde[_0x10da6c(0x128)][_0x10da6c(0x202)]?path[_0x10da6c(0x11e)](this['_gitConfigPath'],_0x552bde[_0x10da6c(0x128)][_0x10da6c(0x202)]):undefined,'started_at':_0x2010d3['startedAt'],'finished_at':_0x2010d3['finishedAt'],'framework':FRAMEWORKS['PLAYWRIGHT'],'customRerunParam':{'rerun_name':this[_0x10da6c(0x151)](_0x552bde)},'tags':_0x487efd[_0x10da6c(0x1d7)](getTestTags,_0x552bde)};_0x487efd['lsPbI'](appendTesthubParams,_0x2fc82d,_0x469bda,_0x552bde,FRAMEWORKS[_0x10da6c(0x11c)]);_0x29fae6&&_0x487efd[_0x10da6c(0x158)](_0x29fae6[_0x10da6c(0x1b6)],0x0)&&(_0x2fc82d[_0x10da6c(0x120)]=TestDetails[_0x10da6c(0x1c1)](this[_0x10da6c(0x16e)](_0x552bde,_0x487efd[_0x10da6c(0x140)](_0x29fae6['retry'],0x1))));if(_0x487efd['gtYnX'](_0x469bda,_0x487efd[_0x10da6c(0x15d)])){_0x2fc82d[_0x10da6c(0x1fd)]=_0x29fae6[_0x10da6c(0x10f)];if(_0x487efd['AohsW'](_0x29fae6[_0x10da6c(0x10f)],_0x552bde[_0x10da6c(0x117)]))_0x2fc82d[_0x10da6c(0x1fd)]=_0x487efd[_0x10da6c(0x11d)](_0x29fae6[_0x10da6c(0x10f)],_0x487efd['XSOeA'])?_0x487efd['XSOeA']:_0x487efd[_0x10da6c(0x167)];else{(_0x487efd[_0x10da6c(0x20b)](_0x2fc82d[_0x10da6c(0x1fd)],_0x487efd['roLaY'])||_0x487efd['FTSDX'](_0x2fc82d[_0x10da6c(0x1fd)],_0x487efd['qLEgE'])||_0x487efd[_0x10da6c(0x112)](_0x2fc82d['result'],_0x487efd[_0x10da6c(0x1ca)]))&&(_0x2fc82d[_0x10da6c(0x1fd)]=_0x487efd[_0x10da6c(0x200)]);if(_0x487efd[_0x10da6c(0x1ed)](_0x29fae6[_0x10da6c(0x10f)],_0x487efd['roLaY'])&&_0x487efd[_0x10da6c(0x1d8)](_0x552bde[_0x10da6c(0x117)],_0x487efd['qLEgE'])){const _0x3a83af={};_0x3a83af[_0x10da6c(0x111)]=_0x487efd[_0x10da6c(0x201)],_0x3a83af[_0x10da6c(0x1f6)]=_0x487efd[_0x10da6c(0x201)],_0x29fae6[_0x10da6c(0x1ff)]=_0x3a83af,_0x29fae6[_0x10da6c(0x1a2)]=[_0x29fae6[_0x10da6c(0x1ff)]];}}const _0x2f9391=this['getTestRunIdentifier'](_0x552bde,_0x29fae6[_0x10da6c(0x1b6)]);_0x2fc82d[_0x10da6c(0x160)]=this[_0x10da6c(0x14c)][_0x2f9391];const {steps:_0x1fbbea,logs:_0x11906f}=this[_0x10da6c(0x205)](_0x29fae6[_0x10da6c(0x115)],_0x2010d3[_0x10da6c(0x1d1)],_0x487efd[_0x10da6c(0x1b8)]);await MyReporter[_0x10da6c(0x176)](_0x11906f);const _0x52a239={};_0x52a239['steps']=_0x1fbbea,_0x2fc82d[_0x10da6c(0x1cf)]=_0x52a239;if(_0x29fae6['error']){_0x2fc82d[_0x10da6c(0x14f)]=_0x487efd[_0x10da6c(0x1d7)](removeAnsiColors,_0x29fae6['error'][_0x10da6c(0x111)]),_0x2fc82d[_0x10da6c(0x131)]=_0x487efd[_0x10da6c(0x1cd)](getFailureType,_0x29fae6[_0x10da6c(0x1ff)]['message']);const _0x113cc5={};_0x113cc5[_0x10da6c(0x18f)]=_0x2010d3[_0x10da6c(0x1d1)];const {failureData:_0x34aa4a,logs:_0x46dfbb}=_0x487efd[_0x10da6c(0x1fe)](getFailureData,_0x29fae6['errors'],_0x113cc5);if(_0x34aa4a&&_0x487efd[_0x10da6c(0x1d8)](_0x34aa4a[_0x10da6c(0x1e2)],0x0)){const _0x4ed151={};_0x4ed151[_0x10da6c(0x1ee)]=[_0x2fc82d[_0x10da6c(0x14f)]],_0x4ed151[_0x10da6c(0x1eb)]=[],_0x34aa4a['push'](_0x4ed151);}_0x2fc82d['failure']=_0x34aa4a,_0x46dfbb&&_0x487efd['qKrnd'](_0x46dfbb[_0x10da6c(0x1e2)],0x0)&&await MyReporter['reportLogs'](_0x46dfbb);}}let _0x1fcdaf=_0x487efd[_0x10da6c(0x1fe)](findNestedKey,_0x29fae6,_0x487efd[_0x10da6c(0x1e3)]);if(_0x1fcdaf&&_0x487efd['crJJf'](validateFilePath,_0x1fcdaf))_0x487efd['crJJf'](debug,_0x10da6c(0x1c4)+_0x2010d3[_0x10da6c(0x1d1)]+_0x10da6c(0x1de)+_0x1fcdaf);else{const _0x1f473c=path[_0x10da6c(0x16d)](helper['homedir'](),_0x487efd[_0x10da6c(0x159)]);!fs[_0x10da6c(0x166)](_0x1f473c)&&fs[_0x10da6c(0x1e0)](_0x1f473c),fs[_0x10da6c(0x166)](path['join'](_0x1f473c,'trace_'+_0x2010d3['uuid']+_0x10da6c(0x20a)))&&(_0x1fcdaf=fs[_0x10da6c(0x15b)](path[_0x10da6c(0x16d)](_0x1f473c,_0x10da6c(0x149)+_0x2010d3[_0x10da6c(0x1d1)]+_0x10da6c(0x20a)),_0x487efd[_0x10da6c(0x182)]),_0x487efd[_0x10da6c(0x10c)](debug,_0x10da6c(0x1c4)+_0x2010d3[_0x10da6c(0x1d1)]+_0x10da6c(0x1de)+_0x1fcdaf));}const _0x3cea63={};_0x3cea63[_0x10da6c(0x1e8)]=_0x469bda,_0x3cea63['test_run']=_0x2fc82d;const _0x10123a=_0x3cea63;_0x1fcdaf&&_0x487efd['mldIn'](_0x1fcdaf,'')&&_0x487efd['qzUcD'](_0x469bda,_0x487efd[_0x10da6c(0x15d)])&&(!_0x10123a[_0x10da6c(0x130)]&&(_0x10123a[_0x10da6c(0x130)]=[]),_0x1fcdaf[_0x10da6c(0x1ce)]('\x0a')[_0x10da6c(0x156)](_0x5b75b7=>{const _0x1b610a=_0x10da6c;_0x5b75b7&&_0x487efd[_0x1b610a(0x10c)](validateFilePath,_0x5b75b7)&&_0x10123a[_0x1b610a(0x130)][_0x1b610a(0x1bb)]({'kind':_0x487efd[_0x1b610a(0x1a5)],'timestamp':new Date()[_0x1b610a(0x11a)](),'test_run_uuid':_0x2010d3[_0x1b610a(0x1d1)],'file_name':path[_0x1b610a(0x1aa)](_0x5b75b7),'file_size':fs['statSync'](_0x5b75b7)['size'],'attachment_type':_0x487efd[_0x1b610a(0x142)]});})),await SessionHandler[_0x10da6c(0x123)](_0x10123a);}[a41_0x24882e(0x151)](_0x45a0a0){const _0x243789=a41_0x24882e,_0x304d4a={};_0x304d4a[_0x243789(0x17d)]=function(_0x3c50b3,_0x5bec78){return _0x3c50b3===_0x5bec78;},_0x304d4a['nRIiX']=function(_0x4c828d,_0x700185){return _0x4c828d>_0x700185;},_0x304d4a['bGNCm']=function(_0x2df0a5,_0x196a1a){return _0x2df0a5+_0x196a1a;},_0x304d4a[_0x243789(0x163)]=function(_0x201fa7,_0x441a27){return _0x201fa7===_0x441a27;},_0x304d4a[_0x243789(0x169)]=function(_0x43aa4d,_0x357ba1){return _0x43aa4d>_0x357ba1;},_0x304d4a[_0x243789(0x177)]=function(_0x15234c,_0x3ff7ec){return _0x15234c+_0x3ff7ec;};const _0x24f4b5=_0x304d4a,_0x4f1e8b=_0x45a0a0[_0x243789(0x1ea)]()[_0x243789(0x162)](_0x19a9e6=>{const _0x3a3418=_0x243789;if(_0x45a0a0[_0x3a3418(0x195)]&&_0x24f4b5['duOOy'](_0x19a9e6,_0x45a0a0[_0x3a3418(0x195)][_0x3a3418(0x181)])&&_0x45a0a0[_0x3a3418(0x195)][_0x3a3418(0x19a)]&&_0x24f4b5[_0x3a3418(0x209)](_0x45a0a0[_0x3a3418(0x195)][_0x3a3418(0x19a)][_0x3a3418(0x1e2)],0x0))return _0x24f4b5[_0x3a3418(0x12a)](_0x24f4b5[_0x3a3418(0x12a)](_0x19a9e6,'\x20'),_0x45a0a0[_0x3a3418(0x195)]['_tags'][_0x3a3418(0x16d)]('\x20'));if(_0x24f4b5[_0x3a3418(0x163)](_0x19a9e6,_0x45a0a0['title'])&&_0x45a0a0[_0x3a3418(0x19a)]&&_0x24f4b5[_0x3a3418(0x169)](_0x45a0a0[_0x3a3418(0x19a)][_0x3a3418(0x1e2)],0x0))return _0x24f4b5[_0x3a3418(0x177)](_0x24f4b5[_0x3a3418(0x177)](_0x19a9e6,'\x20'),_0x45a0a0[_0x3a3418(0x19a)][_0x3a3418(0x16d)]('\x20'));return _0x19a9e6;})['join']('\x20');return _0x4f1e8b;}static async[a41_0x24882e(0x155)](_0x68af80,_0x5816cf){const _0x3d45d9=a41_0x24882e,_0x26fcb3={'GTgeX':function(_0x4cf33b,_0x2ac480){return _0x4cf33b(_0x2ac480);},'JcCqN':_0x3d45d9(0x12d)},_0x51f78c={'uuid':TestDetails[_0x3d45d9(0x1c1)](_0x68af80),'integrations':_0x5816cf},_0x305532={};_0x305532[_0x3d45d9(0x136)]=null,_0x26fcb3[_0x3d45d9(0x194)](debug,_0x3d45d9(0x178)+_0x68af80+',\x20'+util['inspect'](_0x5816cf,_0x305532));const _0x36047f={};_0x36047f['event_type']=_0x26fcb3[_0x3d45d9(0x16c)],_0x36047f[_0x3d45d9(0x17f)]=_0x51f78c,await SessionHandler[_0x3d45d9(0x123)](_0x36047f);}async[a41_0x24882e(0x13d)](){const _0x9cd2e9=a41_0x24882e,_0x21f890={'qNHIE':function(_0x52e080){return _0x52e080();}};if(this[_0x9cd2e9(0x1f4)])return;const _0x3187e3=await _0x21f890[_0x9cd2e9(0x1a6)](getGitMetaData);_0x3187e3&&(this['_gitConfigPath']=_0x3187e3[_0x9cd2e9(0x13a)]),this['_gitConfigured']=!![];}[a41_0x24882e(0x17c)](_0x3c8f75){const _0x77a653=a41_0x24882e,_0x2256d4={};_0x2256d4['xvKEx']=function(_0x3fee44,_0x4f2feb){return _0x3fee44!==_0x4f2feb;};const _0x62702a=_0x2256d4,_0xb4ac81=[];if(_0x3c8f75&&_0x3c8f75[_0x77a653(0x195)]){let _0x418c1c=_0x3c8f75[_0x77a653(0x195)];while(_0x418c1c&&_0x62702a[_0x77a653(0x108)](_0x418c1c[_0x77a653(0x181)],'')){_0xb4ac81[_0x77a653(0x1bb)](_0x418c1c[_0x77a653(0x181)]),_0x418c1c=_0x418c1c[_0x77a653(0x195)];}}return _0xb4ac81[_0x77a653(0x16b)]()['splice'](0x0,0x2),_0xb4ac81;}[a41_0x24882e(0x10d)](_0x212d52){const _0x571b5a=a41_0x24882e,_0x5b6c77={};_0x5b6c77['wbTzZ']=function(_0xd09597,_0x502654){return _0xd09597!==_0x502654;},_0x5b6c77[_0x571b5a(0x11f)]='hook',_0x5b6c77[_0x571b5a(0x141)]=function(_0xf74dd0,_0x3fa8cd){return _0xf74dd0===_0x3fa8cd;},_0x5b6c77[_0x571b5a(0x157)]=_0x571b5a(0x191),_0x5b6c77[_0x571b5a(0x1b3)]=_0x571b5a(0x207),_0x5b6c77[_0x571b5a(0x1d2)]='afterAll\x20hook',_0x5b6c77[_0x571b5a(0x1d9)]=_0x571b5a(0x20d);const _0x2c6484=_0x5b6c77;if(_0x2c6484[_0x571b5a(0x135)](_0x212d52['category'],_0x2c6484[_0x571b5a(0x11f)]))return![];if(_0x2c6484[_0x571b5a(0x141)]([_0x2c6484[_0x571b5a(0x157)],_0x2c6484[_0x571b5a(0x1b3)],_0x2c6484[_0x571b5a(0x1d2)],_0x2c6484[_0x571b5a(0x1d9)]][_0x571b5a(0x18b)](_0x212d52['title']),-0x1))return![];return!![];}[a41_0x24882e(0x1d6)](_0x11c9c0,_0x141a11){const _0x412b5c=a41_0x24882e,_0x290825=_0x141a11[_0x412b5c(0x14b)];if(_0x290825)return _0x290825;return _0x141a11[_0x412b5c(0x181)]+_0x412b5c(0x168)+this[_0x412b5c(0x1e4)](_0x11c9c0);}[a41_0x24882e(0x129)](_0x4bf3e8,_0x2efcbd){const _0x43b28b=a41_0x24882e,_0x43ec45={'kQcBs':function(_0xf2733a){return _0xf2733a();}};let _0x419d3d=_0x2efcbd[_0x43b28b(0x181)]+_0x43b28b(0x168)+this[_0x43b28b(0x1e4)](_0x4bf3e8);return this[_0x43b28b(0x18a)][_0x419d3d]&&(_0x419d3d=_0x419d3d+'\x20-\x20'+_0x43ec45['kQcBs'](uuidv4)),_0x2efcbd[_0x43b28b(0x14b)]=_0x419d3d,_0x419d3d;}[a41_0x24882e(0x1e4)]=_0x143302=>{const _0x3ab095=a41_0x24882e,_0x12356d={};_0x12356d[_0x3ab095(0x174)]=function(_0x2f0b33,_0xb527e9){return _0x2f0b33+_0xb527e9;},_0x12356d['YpeHl']=function(_0x561d33,_0x45643f){return _0x561d33+_0x45643f;};const _0x22396b=_0x12356d;return _0x22396b[_0x3ab095(0x174)](_0x22396b[_0x3ab095(0x1f8)](_0x143302['_projectId'],'-'),_0x143302['id']);};[a41_0x24882e(0x16e)]=(_0x38e733,_0x551fc0)=>{const _0x39a8b6=a41_0x24882e,_0x4d4187={};_0x4d4187['JiQUX']=function(_0x389f52,_0x3e1826){return _0x389f52+_0x3e1826;},_0x4d4187[_0x39a8b6(0x133)]=function(_0x5c289a,_0x5f33a1){return _0x5c289a+_0x5f33a1;};const _0x1236b3=_0x4d4187;return _0x1236b3[_0x39a8b6(0x1bc)](_0x1236b3[_0x39a8b6(0x133)](this[_0x39a8b6(0x1e4)](_0x38e733),'-'),_0x551fc0);};[a41_0x24882e(0x190)]=_0xb2b580=>{const _0x4ec6fd=a41_0x24882e,_0x17e7c0={};_0x17e7c0[_0x4ec6fd(0x132)]=_0x4ec6fd(0x191),_0x17e7c0[_0x4ec6fd(0x18c)]=_0x4ec6fd(0x143),_0x17e7c0[_0x4ec6fd(0x1ad)]=_0x4ec6fd(0x207),_0x17e7c0[_0x4ec6fd(0x206)]='BEFORE_ALL',_0x17e7c0[_0x4ec6fd(0x118)]=_0x4ec6fd(0x20d),_0x17e7c0[_0x4ec6fd(0x1a8)]='AFTER_EACH',_0x17e7c0[_0x4ec6fd(0x146)]=_0x4ec6fd(0x10e),_0x17e7c0[_0x4ec6fd(0x119)]=_0x4ec6fd(0x1db),_0x17e7c0['zgZMt']=_0x4ec6fd(0x126);const _0x2f6904=_0x17e7c0;if(_0xb2b580['startsWith'](_0x2f6904['mIAcn']))return _0x2f6904[_0x4ec6fd(0x18c)];else{if(_0xb2b580[_0x4ec6fd(0x1e5)](_0x2f6904[_0x4ec6fd(0x1ad)]))return _0x2f6904[_0x4ec6fd(0x206)];else{if(_0xb2b580[_0x4ec6fd(0x1e5)](_0x2f6904['VPTCd']))return _0x2f6904[_0x4ec6fd(0x1a8)];else{if(_0xb2b580['startsWith'](_0x2f6904[_0x4ec6fd(0x146)]))return _0x2f6904[_0x4ec6fd(0x119)];}}}return _0x2f6904[_0x4ec6fd(0x1dc)];};[a41_0x24882e(0x1ba)]=_0x4f88b4=>{const _0x573f01=a41_0x24882e,_0x329678={};_0x329678[_0x573f01(0x110)]=function(_0x3aeb0f,_0x247555){return _0x3aeb0f===_0x247555;},_0x329678[_0x573f01(0x14e)]=_0x573f01(0x13f);const _0x37ff58=_0x329678;let _0x526a34=_0x4f88b4['parent'];return _0x37ff58[_0x573f01(0x110)](typeof _0x4f88b4[_0x573f01(0x195)],_0x37ff58[_0x573f01(0x14e)])&&(_0x526a34=_0x526a34[_0x573f01(0x181)]),_0x526a34+'\x20-\x20'+_0x4f88b4['title'];};['printsToStdio'](){return![];}}module[a41_0x24882e(0x175)]=o11yClassErrorHandler(MyReporter,[a41_0x24882e(0x1a1),a41_0x24882e(0x199),a41_0x24882e(0x1bd),a41_0x24882e(0x15c),a41_0x24882e(0x125),a41_0x24882e(0x10a),a41_0x24882e(0x155)],a41_0x24882e(0x114));
1
+ const a41_0x4cb01e=a41_0x3d77;(function(_0x3ab6ff,_0x2c1e91){const _0x1fab84=a41_0x3d77,_0x9824ee=_0x3ab6ff();while(!![]){try{const _0x3c46ac=-parseInt(_0x1fab84(0x22b))/0x1+parseInt(_0x1fab84(0x13e))/0x2*(parseInt(_0x1fab84(0x179))/0x3)+parseInt(_0x1fab84(0x196))/0x4+-parseInt(_0x1fab84(0x1d0))/0x5+parseInt(_0x1fab84(0x215))/0x6*(parseInt(_0x1fab84(0x1eb))/0x7)+parseInt(_0x1fab84(0x236))/0x8*(-parseInt(_0x1fab84(0x1a7))/0x9)+parseInt(_0x1fab84(0x14e))/0xa*(-parseInt(_0x1fab84(0x153))/0xb);if(_0x3c46ac===_0x2c1e91)break;else _0x9824ee['push'](_0x9824ee['shift']());}catch(_0x4221ec){_0x9824ee['push'](_0x9824ee['shift']());}}}(a41_0x31e5,0x9f7ec));function a41_0x3d77(_0x126eb2,_0x20786c){const _0x31e56d=a41_0x31e5();return a41_0x3d77=function(_0x3d770d,_0x104b9a){_0x3d770d=_0x3d770d-0x13e;let _0x24a6fd=_0x31e56d[_0x3d770d];return _0x24a6fd;},a41_0x3d77(_0x126eb2,_0x20786c);}const RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require('./pwUtils'),{v4:uuidv4}=require(a41_0x4cb01e(0x1ab)),path=require('path'),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require('../../../helpers/test-observability/utils'),{getGitMetaData,setLogLevel}=require(a41_0x4cb01e(0x19b)),TestDetails=require(a41_0x4cb01e(0x170)),fs=require('fs'),util=require(a41_0x4cb01e(0x1b9)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),PerformanceTester=require('../../../helpers/performance/performance-tester'),{FRAMEWORKS}=require(a41_0x4cb01e(0x234)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{appendTesthubParams}=require(a41_0x4cb01e(0x1d7)),helper=require(a41_0x4cb01e(0x19b));class MyReporter{constructor(_0x23d6c3){const _0x56fbd9=a41_0x4cb01e,_0x20d487={'YKedc':_0x56fbd9(0x1fb),'uKyuL':_0x56fbd9(0x14a),'BwrBC':function(_0x5c1793,_0x58db28,_0x4557f0,_0x1654fe){return _0x5c1793(_0x58db28,_0x4557f0,_0x1654fe);}},_0xcf1765=_0x20d487[_0x56fbd9(0x14f)][_0x56fbd9(0x166)]('|');let _0x4f0cee=0x0;while(!![]){switch(_0xcf1765[_0x4f0cee++]){case'0':this[_0x56fbd9(0x143)]=null;continue;case'1':this[_0x56fbd9(0x185)]=![];continue;case'2':process[_0x56fbd9(0x167)][_0x56fbd9(0x15e)]&&(PerformanceTester['startMonitoring'](_0x20d487[_0x56fbd9(0x162)]),process[_0x56fbd9(0x167)]['START_TIME']=new Date()[_0x56fbd9(0x15d)]());continue;case'3':this[_0x56fbd9(0x1bc)]={};continue;case'4':this[_0x56fbd9(0x19d)]={};continue;case'5':const _0x495b13={};_0x495b13['logLevel']=process[_0x56fbd9(0x167)]['BROWSERSTACK_LOG_LEVEL'],_0x20d487[_0x56fbd9(0x1ea)](setLogLevel,_0x495b13,new Map(),new Map());continue;case'6':this[_0x56fbd9(0x1cb)]=_0x23d6c3;continue;}break;}}async['onBegin'](){const _0x403eb7=a41_0x4cb01e;TestDetails[_0x403eb7(0x16c)](),await this[_0x403eb7(0x1a8)]();}async[a41_0x4cb01e(0x1f2)](_0x15d878,_0x3f9e34){const _0x31435c=a41_0x4cb01e,_0x390601={'YKFdI':function(_0x2d7cc0,_0x2e73a8){return _0x2d7cc0(_0x2e73a8);},'OMOYl':_0x31435c(0x1d3)},_0x5592e3=this[_0x31435c(0x16d)](_0x15d878),_0x4bb3ed=TestDetails[_0x31435c(0x1a2)](this['getTestRunIdentifier'](_0x15d878,_0x3f9e34[_0x31435c(0x1dc)]));process[_0x31435c(0x167)][_0x31435c(0x161)]=_0x4bb3ed;const _0x50afb4={};_0x50afb4[_0x31435c(0x1ab)]=_0x4bb3ed,_0x50afb4[_0x31435c(0x177)]=_0x3f9e34[_0x31435c(0x1c1)],this[_0x31435c(0x19d)][_0x5592e3]=_0x50afb4,_0x390601['YKFdI'](trace,_0x31435c(0x169)+_0x5592e3),await this[_0x31435c(0x1d4)](_0x15d878,_0x390601['OMOYl'],_0x3f9e34);}async[a41_0x4cb01e(0x223)](_0x3ecf07,_0x51bda5,_0x45b662){const _0x5874dd=a41_0x4cb01e,_0x5b1097={'qHrhG':function(_0x600c,_0x45d3b1){return _0x600c(_0x45d3b1);},'ORmdY':_0x5874dd(0x1b0)};if(!this[_0x5874dd(0x180)](_0x45b662,_0x3ecf07))return;const _0x1e036e=this[_0x5874dd(0x1e9)](_0x3ecf07,_0x45b662);this[_0x5874dd(0x19d)][_0x1e036e]={'uuid':TestDetails[_0x5874dd(0x1a2)](_0x1e036e),'startedAt':_0x45b662[_0x5874dd(0x1c1)][_0x5874dd(0x15d)]()};const _0x8c5172=this[_0x5874dd(0x235)](_0x3ecf07,_0x51bda5[_0x5874dd(0x1dc)]);!this[_0x5874dd(0x1bc)][_0x8c5172]&&(this[_0x5874dd(0x1bc)][_0x8c5172]=[]),this[_0x5874dd(0x1bc)][_0x8c5172][_0x5874dd(0x1d2)](this[_0x5874dd(0x19d)][_0x1e036e][_0x5874dd(0x1ab)]),_0x5b1097['qHrhG'](trace,'Hook\x20Started\x20with\x20unique\x20id\x20'+_0x1e036e+_0x5874dd(0x1fe)+_0x8c5172),await this[_0x5874dd(0x213)](_0x3ecf07,_0x45b662,_0x5b1097[_0x5874dd(0x1fc)],_0x51bda5);}async[a41_0x4cb01e(0x20a)](_0x576aec,_0x3b7cd8,_0x207ac7){const _0x11cc6c=a41_0x4cb01e,_0x3e429f={'zXRKI':function(_0x56b23f,_0x17f92c){return _0x56b23f+_0x17f92c;},'UkKAE':function(_0x4df099,_0x3cc6de){return _0x4df099(_0x3cc6de);},'iVXsq':'HookRunFinished'};if(!this[_0x11cc6c(0x180)](_0x207ac7,_0x576aec))return;const _0x1e039=this[_0x11cc6c(0x230)](_0x576aec,_0x207ac7);this['_tests'][_0x1e039]={...this[_0x11cc6c(0x19d)][_0x1e039]||{},'finishedAt':new Date(_0x3e429f[_0x11cc6c(0x13f)](_0x207ac7[_0x11cc6c(0x1c1)][_0x11cc6c(0x142)](),_0x207ac7[_0x11cc6c(0x1ac)]))},_0x3e429f[_0x11cc6c(0x212)](trace,_0x11cc6c(0x19f)+_0x1e039+_0x11cc6c(0x21f)),await this[_0x11cc6c(0x213)](_0x576aec,_0x207ac7,_0x3e429f['iVXsq'],_0x3b7cd8);}async[a41_0x4cb01e(0x1be)](_0x4d3add,_0x3c3cb1){const _0xc7a33d=a41_0x4cb01e,_0x1bfaea={'VWloK':function(_0xa871b7,_0x5ef637){return _0xa871b7===_0x5ef637;},'uPymU':_0xc7a33d(0x1c7),'TcLgR':'TEST_SCREENSHOT','gNEUF':'base64','HspoI':function(_0x4ef6aa,_0x1b4155){return _0x4ef6aa(_0x1b4155);},'FmIzb':_0xc7a33d(0x1f5),'ODhNN':function(_0x48e3c3,_0x42252d){return _0x48e3c3(_0x42252d);},'GrjBC':_0xc7a33d(0x154),'ZclNS':function(_0x19e65d,_0x5f4542){return _0x19e65d(_0x5f4542);},'CjXWb':function(_0x557c47,_0x4aa8a2,_0x554164){return _0x557c47(_0x4aa8a2,_0x554164);},'smPkM':function(_0xc8cb29,_0x4bbdf6){return _0xc8cb29(_0x4bbdf6);},'rgjDu':'Error\x20in\x20sending\x20trace\x20zip:\x20%s','AueyO':function(_0xa0b6cd,_0x32136a){return _0xa0b6cd>_0x32136a;}},_0x2b3de1=this[_0xc7a33d(0x16d)](_0x4d3add),_0x27f3cd=TestDetails['getTestUUID'](this[_0xc7a33d(0x235)](_0x4d3add,_0x3c3cb1[_0xc7a33d(0x1dc)]));this[_0xc7a33d(0x19d)][_0x2b3de1]={...this[_0xc7a33d(0x19d)][_0x2b3de1]||{},'finishedAt':new Date()[_0xc7a33d(0x15d)]()},_0x1bfaea[_0xc7a33d(0x1f6)](trace,_0xc7a33d(0x1c0)+_0x2b3de1);try{await this[_0xc7a33d(0x1d4)](_0x4d3add,_0x1bfaea[_0xc7a33d(0x140)],_0x3c3cb1);}catch(_0x4e4b2a){_0x1bfaea[_0xc7a33d(0x1f7)](debug,util[_0xc7a33d(0x1bb)](_0x1bfaea['GrjBC'],_0x4e4b2a['toString']()));}try{_0x1bfaea['ZclNS'](debug,_0xc7a33d(0x1e3)+_0x27f3cd),await _0x1bfaea[_0xc7a33d(0x1e2)](sendTraceZip,_0x3c3cb1,_0x27f3cd);}catch(_0x300fa9){_0x1bfaea[_0xc7a33d(0x156)](debug,util[_0xc7a33d(0x1bb)](_0x1bfaea['rgjDu'],_0x300fa9[_0xc7a33d(0x183)]()));}const _0x3357ec=[];_0x3c3cb1[_0xc7a33d(0x1ee)]&&_0x3c3cb1['attachments'][_0xc7a33d(0x1cf)](_0x4dd428=>{const _0x36a9b6=_0xc7a33d;if(_0x1bfaea['VWloK'](_0x4dd428[_0x36a9b6(0x159)],_0x1bfaea[_0x36a9b6(0x209)])){if(!_0x4dd428['path']||!fs['existsSync'](_0x4dd428['path']))return;_0x3357ec['push']({'test_run_uuid':_0x27f3cd,'timestamp':fs['statSync'](_0x4dd428[_0x36a9b6(0x227)])[_0x36a9b6(0x205)],'kind':_0x1bfaea[_0x36a9b6(0x184)],'message':fs['readFileSync'](_0x4dd428[_0x36a9b6(0x227)],{'encoding':_0x1bfaea[_0x36a9b6(0x1a1)]})});}}),_0x1bfaea[_0xc7a33d(0x150)](_0x3357ec[_0xc7a33d(0x220)],0x0)&&await MyReporter[_0xc7a33d(0x192)](_0x3357ec);}async[a41_0x4cb01e(0x1c9)](){const _0x5ceab8=a41_0x4cb01e;await RequestQueueHandler[_0x5ceab8(0x22f)]()['shutdown']();}async[a41_0x4cb01e(0x231)](_0x2dd8e0){const _0xe86435=a41_0x4cb01e,_0x6f1716={'daPUi':function(_0x2b72b3){return _0x2b72b3();},'Yxrql':function(_0x2b8e5c,_0x3c5339){return _0x2b8e5c(_0x3c5339);}};await this[_0xe86435(0x1c9)]();try{process[_0xe86435(0x167)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&await _0x6f1716['daPUi'](calculatePerformance);}catch(_0x43724d){_0x6f1716[_0xe86435(0x15a)](debug,'Error\x20in\x20calculating\x20performance:\x20'+_0x43724d['toString']());}}static async['addTestUIDAndReportLog'](_0x4f9455,_0xbf9b5b){const _0x1dddab=a41_0x4cb01e;_0xbf9b5b[_0x1dddab(0x222)]=TestDetails['getTestUUID'](_0x4f9455),await this['reportLogs']([_0xbf9b5b]);}static async[a41_0x4cb01e(0x192)](_0xe23b7d){const _0x11d73e=a41_0x4cb01e,_0x9c870c={};_0x9c870c[_0x11d73e(0x20e)]=_0x11d73e(0x1ae);const _0x21c44d=_0x9c870c,_0x14f7a5={};_0x14f7a5[_0x11d73e(0x158)]=_0x21c44d[_0x11d73e(0x20e)],_0x14f7a5['logs']=_0xe23b7d,await SessionHandler[_0x11d73e(0x207)](_0x14f7a5);}async[a41_0x4cb01e(0x213)](_0x559602,_0x57725c,_0x1b7ddf,_0x1619a6){const _0x16972f=a41_0x4cb01e,_0x1884a5={'lOnBD':_0x16972f(0x1ed),'HvycQ':'javascript','Xkklp':'pending','fOafF':function(_0x7c2ccb,_0x4da69d){return _0x7c2ccb>=_0x4da69d;},'chYUz':function(_0x5e9daf,_0x5c5a72){return _0x5e9daf===_0x5c5a72;},'sKWWJ':'HookRunFinished','fRzlF':function(_0x164425,_0x1b2548){return _0x164425>_0x1b2548;},'IGVAD':_0x16972f(0x187),'yvwMG':function(_0x1f9b29,_0x4a2ad0){return _0x1f9b29(_0x4a2ad0);},'lpbMh':function(_0x3a7d68,_0x4c2fe4,_0x14cf22){return _0x3a7d68(_0x4c2fe4,_0x14cf22);},'LnWuI':_0x16972f(0x1e1),'BrWSz':_0x16972f(0x163)},_0x41cf4e=this[_0x16972f(0x230)](_0x559602,_0x57725c),_0x144314=this['_tests'][_0x41cf4e],_0x1a3c10={'uuid':_0x144314[_0x16972f(0x1ab)],'type':_0x1884a5[_0x16972f(0x144)],'hook_type':this[_0x16972f(0x200)](_0x57725c[_0x16972f(0x20d)]),'name':_0x57725c[_0x16972f(0x20d)],'scope':this[_0x16972f(0x17f)](_0x57725c),'scopes':this[_0x16972f(0x1ff)](_0x559602),'body':{'lang':_0x1884a5[_0x16972f(0x17b)],'code':null},'identifier':_0x41cf4e,'file_name':path[_0x16972f(0x1b2)](process[_0x16972f(0x1ca)](),_0x559602[_0x16972f(0x1b3)][_0x16972f(0x224)]),'location':path[_0x16972f(0x1b2)](process[_0x16972f(0x1ca)](),_0x559602[_0x16972f(0x1b3)][_0x16972f(0x224)]),'result':_0x1884a5['Xkklp'],'duration_in_ms':_0x1884a5[_0x16972f(0x21e)](_0x57725c['duration'],0x0)?_0x57725c[_0x16972f(0x1ac)]:undefined,'vc_filepath':this[_0x16972f(0x143)]&&_0x559602[_0x16972f(0x1b3)]['file']?path[_0x16972f(0x1b2)](this[_0x16972f(0x143)],_0x559602['location']['file']):undefined,'started_at':_0x144314['startedAt'],'finished_at':_0x144314[_0x16972f(0x1bf)],'framework':FRAMEWORKS[_0x16972f(0x194)]};if(_0x1884a5[_0x16972f(0x151)](_0x1b7ddf,_0x1884a5[_0x16972f(0x1fa)])){const {steps:_0x211294,logs:_0x2a694c}=this[_0x16972f(0x1b1)](_0x57725c[_0x16972f(0x20b)],_0x144314[_0x16972f(0x1ab)],_0x1884a5[_0x16972f(0x144)]);_0x2a694c&&_0x1884a5[_0x16972f(0x181)](_0x2a694c[_0x16972f(0x220)],0x0)&&await MyReporter[_0x16972f(0x192)](_0x2a694c);const _0x377e7d={};_0x377e7d[_0x16972f(0x20b)]=_0x211294,_0x1a3c10[_0x16972f(0x160)]=_0x377e7d;if(_0x57725c['error']){_0x1a3c10[_0x16972f(0x21a)]=_0x1884a5[_0x16972f(0x22a)],_0x1a3c10[_0x16972f(0x202)]=_0x1884a5['yvwMG'](removeAnsiColors,_0x57725c[_0x16972f(0x1f0)][_0x16972f(0x197)]),_0x1a3c10[_0x16972f(0x14c)]=_0x1884a5[_0x16972f(0x178)](getFailureType,_0x57725c[_0x16972f(0x1f0)][_0x16972f(0x197)]);const _0x3ac067=_0x1884a5['lpbMh'](failureData,_0x57725c[_0x16972f(0x1f0)],_0x1884a5[_0x16972f(0x1cd)]);if(_0x3ac067&&_0x1884a5['chYUz'](_0x3ac067[_0x16972f(0x220)],0x0)){const _0x43ec3b={};_0x43ec3b[_0x16972f(0x216)]=[_0x1a3c10['failure_reason']],_0x43ec3b[_0x16972f(0x1e0)]=[],_0x3ac067[_0x16972f(0x1d2)](_0x43ec3b);}_0x1a3c10[_0x16972f(0x21d)]=_0x3ac067;}else _0x1a3c10[_0x16972f(0x21a)]=_0x1884a5[_0x16972f(0x155)];}const _0xed969f={};_0xed969f[_0x16972f(0x158)]=_0x1b7ddf,_0xed969f[_0x16972f(0x225)]=_0x1a3c10;const _0x45c5e2=_0xed969f;await SessionHandler[_0x16972f(0x207)](_0x45c5e2);}[a41_0x4cb01e(0x1b1)](_0x714497,_0x493d6e,_0xa3649){const _0xbe1cbf=a41_0x4cb01e,_0x5a4bea={'NCDSC':function(_0x48a984,_0xdd0fe){return _0x48a984===_0xdd0fe;},'YCKkx':'hook','lrMJR':function(_0x3f785f,_0x292c41){return _0x3f785f===_0x292c41;},'kmpMc':_0xbe1cbf(0x233),'dQwJI':function(_0x40fe6a,_0x3ffc19){return _0x40fe6a===_0x3ffc19;},'JDTii':_0xbe1cbf(0x147),'rNhwl':function(_0x2b060d,_0x4bd454){return _0x2b060d===_0x4bd454;},'kJjTQ':_0xbe1cbf(0x146),'CdpmB':'test_run_uuid','DEvTt':_0xbe1cbf(0x14b),'guyVP':_0xbe1cbf(0x1c6),'DINie':'failed','lbibU':'passed','hfNqQ':function(_0x165094,_0x35bd18){return _0x165094(_0x35bd18);},'fREml':function(_0x1904c4,_0x4bacb1){return _0x1904c4(_0x4bacb1);},'xyiZY':function(_0x355df1){return _0x355df1();},'APIAy':function(_0xcf178c,_0x52e9ba){return _0xcf178c(_0x52e9ba);},'JUZlX':function(_0x5ad331,_0x4333b8){return _0x5ad331(_0x4333b8);},'rQANB':function(_0x361965,_0x5a702a,_0x5b5c60){return _0x361965(_0x5a702a,_0x5b5c60);}},_0x1bbd16=[],_0x4dba25=[],_0x1fa147=_0x714497['filter'](_0x198c83=>{const _0x36b34a=_0xbe1cbf;if(_0x5a4bea[_0x36b34a(0x1a9)](_0x198c83[_0x36b34a(0x168)],_0x5a4bea['YCKkx'])&&(_0x5a4bea['lrMJR'](_0x198c83['title'],_0x5a4bea['kmpMc'])||_0x5a4bea[_0x36b34a(0x22d)](_0x198c83[_0x36b34a(0x20d)],_0x5a4bea['JDTii'])))return![];return!![];}),_0x549489=(_0xdb897,_0x28f93d=![])=>{const _0x3ac81e=_0xbe1cbf;if(_0x5a4bea[_0x3ac81e(0x148)](_0xdb897['steps'][_0x3ac81e(0x220)],0x0)){const _0x59b9c3=_0x5a4bea[_0x3ac81e(0x18e)](_0xa3649,_0x5a4bea['kJjTQ'])?_0x5a4bea[_0x3ac81e(0x18b)]:_0x5a4bea[_0x3ac81e(0x229)];_0x4dba25[_0x3ac81e(0x1d2)]({'kind':_0x5a4bea[_0x3ac81e(0x173)],[_0x59b9c3]:_0x493d6e,'message':_0xdb897[_0x3ac81e(0x20d)],'timestamp':_0xdb897['startTime']['toISOString'](),'level':_0xdb897[_0x3ac81e(0x1f0)]?_0x5a4bea[_0x3ac81e(0x188)]:_0x5a4bea[_0x3ac81e(0x157)],'duration':_0xdb897[_0x3ac81e(0x1ac)],'failure':_0xdb897[_0x3ac81e(0x1f0)]&&_0xdb897[_0x3ac81e(0x1f0)][_0x3ac81e(0x197)]&&_0x5a4bea[_0x3ac81e(0x1e8)](removeAnsiColors,_0xdb897[_0x3ac81e(0x1f0)][_0x3ac81e(0x197)]),'failure_type':_0x5a4bea['fREml'](getFailureType,_0xdb897[_0x3ac81e(0x1f0)]&&_0xdb897[_0x3ac81e(0x1f0)][_0x3ac81e(0x197)])});}else{!_0x28f93d&&_0x1bbd16[_0x3ac81e(0x1d2)]({'id':_0x5a4bea['xyiZY'](uuidv4),'text':_0xdb897['title'],'keyword':undefined,'started_at':_0xdb897[_0x3ac81e(0x1c1)][_0x3ac81e(0x15d)](),'duration':_0xdb897[_0x3ac81e(0x1ac)],'result':_0xdb897['error']?_0x5a4bea['DINie']:_0x5a4bea['lbibU'],'failure':_0xdb897[_0x3ac81e(0x1f0)]&&_0xdb897['error'][_0x3ac81e(0x197)]&&_0x5a4bea[_0x3ac81e(0x1d6)](removeAnsiColors,_0xdb897[_0x3ac81e(0x1f0)][_0x3ac81e(0x197)]),'failure_type':_0x5a4bea[_0x3ac81e(0x208)](getFailureType,_0xdb897['error']&&_0xdb897[_0x3ac81e(0x1f0)][_0x3ac81e(0x197)])});for(const _0x5bf66f of _0xdb897[_0x3ac81e(0x20b)]){_0x5a4bea[_0x3ac81e(0x16e)](_0x549489,_0x5bf66f,!![]);}}};for(const _0x369ce9 of _0x1fa147){_0x5a4bea['rQANB'](_0x549489,_0x369ce9,![]);}const _0x36b775={};return _0x36b775['steps']=_0x1bbd16,_0x36b775[_0xbe1cbf(0x1d9)]=_0x4dba25,_0x36b775;}async[a41_0x4cb01e(0x1d4)](_0x19f7ff,_0x46e729,_0x31713a){const _0x235ca4=a41_0x4cb01e,_0x19e20e={'jlJfF':function(_0x4af316,_0x2498ed){return _0x4af316(_0x2498ed);},'vVXcQ':_0x235ca4(0x15b),'Fdour':_0x235ca4(0x176),'KeWdZ':_0x235ca4(0x146),'WuoER':'javascript','KgSKE':_0x235ca4(0x1b6),'yBpJe':function(_0x56478e,_0x24d921){return _0x56478e(_0x24d921);},'amXDq':function(_0x3d0e31,_0x3543e9,_0x412fb7,_0x50ed6b,_0x1268eb){return _0x3d0e31(_0x3543e9,_0x412fb7,_0x50ed6b,_0x1268eb);},'TaDlK':function(_0x502aea,_0x4fd818){return _0x502aea>_0x4fd818;},'OHorU':function(_0x35cf2b,_0x97259e){return _0x35cf2b-_0x97259e;},'SDzom':function(_0x4ba677,_0x536524){return _0x4ba677===_0x536524;},'iDtda':_0x235ca4(0x1f5),'mhHOh':function(_0x992d9c,_0x2bf79f){return _0x992d9c===_0x2bf79f;},'pWzEA':'skipped','rfTGN':_0x235ca4(0x163),'rAOVS':_0x235ca4(0x187),'UqdYo':_0x235ca4(0x193),'OgnSf':_0x235ca4(0x175),'cUcct':function(_0x346b93,_0x5dc1e2){return _0x346b93(_0x5dc1e2);},'TbnRw':function(_0x251b25,_0x48fbd8,_0x11d76e){return _0x251b25(_0x48fbd8,_0x11d76e);},'GGCDu':function(_0x363e58,_0x22fdff,_0x14dd63){return _0x363e58(_0x22fdff,_0x14dd63);},'kjJpv':_0x235ca4(0x227),'flYEu':_0x235ca4(0x22c),'XdcaM':_0x235ca4(0x15c),'gPdar':function(_0x311e75,_0x1bf9e5){return _0x311e75(_0x1bf9e5);},'WpzkY':function(_0x3b949a,_0x725581){return _0x3b949a!==_0x725581;}},_0x4675dc=this[_0x235ca4(0x16d)](_0x19f7ff),_0x3d60a8=this[_0x235ca4(0x17f)](_0x19f7ff),_0x3181b5=this[_0x235ca4(0x19d)][_0x4675dc],_0x30f861=path[_0x235ca4(0x1b2)](process[_0x235ca4(0x1ca)](),_0x19f7ff['location']['file']);await this[_0x235ca4(0x1a8)]();const _0x31f7dd={'uuid':_0x3181b5[_0x235ca4(0x1ab)],'type':_0x19e20e[_0x235ca4(0x1a0)],'name':_0x19f7ff[_0x235ca4(0x20d)],'body':{'lang':_0x19e20e['WuoER'],'code':_0x19f7ff['fn'][_0x235ca4(0x183)]()},'scope':_0x3d60a8,'scopes':this[_0x235ca4(0x1ff)](_0x19f7ff),'identifier':_0x4675dc,'file_name':_0x30f861,'location':_0x30f861,'result':_0x19e20e['KgSKE'],'duration_in_ms':_0x31713a&&_0x31713a['duration']?_0x31713a['duration']:null,'vc_filepath':this[_0x235ca4(0x143)]&&_0x19f7ff['location'][_0x235ca4(0x224)]?path[_0x235ca4(0x1b2)](this[_0x235ca4(0x143)],_0x19f7ff[_0x235ca4(0x1b3)][_0x235ca4(0x224)]):undefined,'started_at':_0x3181b5[_0x235ca4(0x177)],'finished_at':_0x3181b5['finishedAt'],'framework':FRAMEWORKS[_0x235ca4(0x194)],'customRerunParam':{'rerun_name':this[_0x235ca4(0x171)](_0x19f7ff)},'tags':_0x19e20e[_0x235ca4(0x1e5)](getTestTags,_0x19f7ff)};_0x19e20e[_0x235ca4(0x18c)](appendTesthubParams,_0x31f7dd,_0x46e729,_0x19f7ff,FRAMEWORKS[_0x235ca4(0x194)]);_0x31713a&&_0x19e20e[_0x235ca4(0x1ef)](_0x31713a['retry'],0x0)&&(_0x31f7dd[_0x235ca4(0x20c)]=TestDetails[_0x235ca4(0x1a2)](this[_0x235ca4(0x235)](_0x19f7ff,_0x19e20e[_0x235ca4(0x17a)](_0x31713a[_0x235ca4(0x1dc)],0x1))));if(_0x19e20e[_0x235ca4(0x1db)](_0x46e729,_0x19e20e[_0x235ca4(0x20f)])){_0x31f7dd['result']=_0x31713a[_0x235ca4(0x1c5)];if(_0x19e20e[_0x235ca4(0x226)](_0x31713a['status'],_0x19f7ff[_0x235ca4(0x172)]))_0x31f7dd['result']=_0x19e20e['mhHOh'](_0x31713a[_0x235ca4(0x1c5)],_0x19e20e[_0x235ca4(0x228)])?_0x19e20e['pWzEA']:_0x19e20e[_0x235ca4(0x232)];else{(_0x19e20e[_0x235ca4(0x226)](_0x31f7dd[_0x235ca4(0x21a)],_0x19e20e[_0x235ca4(0x232)])||_0x19e20e[_0x235ca4(0x226)](_0x31f7dd[_0x235ca4(0x21a)],_0x19e20e[_0x235ca4(0x1a3)])||_0x19e20e[_0x235ca4(0x226)](_0x31f7dd[_0x235ca4(0x21a)],_0x19e20e[_0x235ca4(0x1df)]))&&(_0x31f7dd['result']=_0x19e20e[_0x235ca4(0x1a3)]);if(_0x19e20e['mhHOh'](_0x31713a[_0x235ca4(0x1c5)],_0x19e20e['rfTGN'])&&_0x19e20e[_0x235ca4(0x1db)](_0x19f7ff['expectedStatus'],_0x19e20e[_0x235ca4(0x1a3)])){const _0x51c255={};_0x51c255[_0x235ca4(0x197)]=_0x19e20e[_0x235ca4(0x1ad)],_0x51c255['stack']=_0x19e20e['OgnSf'],_0x31713a[_0x235ca4(0x1f0)]=_0x51c255,_0x31713a[_0x235ca4(0x1aa)]=[_0x31713a[_0x235ca4(0x1f0)]];}}const _0x56255c=this[_0x235ca4(0x235)](_0x19f7ff,_0x31713a[_0x235ca4(0x1dc)]);_0x31f7dd['hooks']=this[_0x235ca4(0x1bc)][_0x56255c];const {steps:_0x3b8d76,logs:_0x481e00}=this[_0x235ca4(0x1b1)](_0x31713a[_0x235ca4(0x20b)],_0x3181b5['uuid'],_0x19e20e[_0x235ca4(0x1a0)]);await MyReporter[_0x235ca4(0x192)](_0x481e00);const _0x41d634={};_0x41d634[_0x235ca4(0x20b)]=_0x3b8d76,_0x31f7dd[_0x235ca4(0x160)]=_0x41d634;if(_0x31713a[_0x235ca4(0x1f0)]){_0x31f7dd[_0x235ca4(0x202)]=_0x19e20e[_0x235ca4(0x1e5)](removeAnsiColors,_0x31713a[_0x235ca4(0x1f0)][_0x235ca4(0x197)]),_0x31f7dd[_0x235ca4(0x14c)]=_0x19e20e[_0x235ca4(0x218)](getFailureType,_0x31713a['error'][_0x235ca4(0x197)]);const _0xa97578={};_0xa97578[_0x235ca4(0x222)]=_0x3181b5['uuid'];const {failureData:_0x5a3615,logs:_0x374bcb}=_0x19e20e['TbnRw'](getFailureData,_0x31713a['errors'],_0xa97578);if(_0x5a3615&&_0x19e20e['SDzom'](_0x5a3615[_0x235ca4(0x220)],0x0)){const _0x1159e7={};_0x1159e7[_0x235ca4(0x216)]=[_0x31f7dd['failure_reason']],_0x1159e7['expanded']=[],_0x5a3615[_0x235ca4(0x1d2)](_0x1159e7);}_0x31f7dd[_0x235ca4(0x21d)]=_0x5a3615,_0x374bcb&&_0x19e20e[_0x235ca4(0x1ef)](_0x374bcb[_0x235ca4(0x220)],0x0)&&await MyReporter[_0x235ca4(0x192)](_0x374bcb);}}let _0x18ee6a=_0x19e20e['GGCDu'](findNestedKey,_0x31713a,_0x19e20e['kjJpv']);if(_0x18ee6a&&_0x19e20e[_0x235ca4(0x217)](validateFilePath,_0x18ee6a))_0x19e20e[_0x235ca4(0x218)](debug,'Trace\x20file\x20found\x20for\x20test:\x20'+_0x3181b5[_0x235ca4(0x1ab)]+_0x235ca4(0x1cc)+_0x18ee6a);else{const _0x48ca17=path[_0x235ca4(0x214)](helper[_0x235ca4(0x21b)](),_0x19e20e[_0x235ca4(0x198)]);!fs[_0x235ca4(0x186)](_0x48ca17)&&fs[_0x235ca4(0x18f)](_0x48ca17),fs[_0x235ca4(0x186)](path[_0x235ca4(0x214)](_0x48ca17,_0x235ca4(0x221)+_0x3181b5[_0x235ca4(0x1ab)]+'.txt'))&&(_0x18ee6a=fs[_0x235ca4(0x1e6)](path[_0x235ca4(0x214)](_0x48ca17,'trace_'+_0x3181b5[_0x235ca4(0x1ab)]+'.txt'),_0x19e20e[_0x235ca4(0x1b4)]),_0x19e20e[_0x235ca4(0x190)](debug,_0x235ca4(0x1f9)+_0x3181b5[_0x235ca4(0x1ab)]+_0x235ca4(0x1cc)+_0x18ee6a));}const _0x4fd7ea={};_0x4fd7ea[_0x235ca4(0x158)]=_0x46e729,_0x4fd7ea[_0x235ca4(0x15f)]=_0x31f7dd;const _0x184ff2=_0x4fd7ea;_0x18ee6a&&_0x19e20e[_0x235ca4(0x145)](_0x18ee6a,'')&&_0x19e20e[_0x235ca4(0x1db)](_0x46e729,_0x19e20e[_0x235ca4(0x20f)])&&(!_0x184ff2[_0x235ca4(0x1d9)]&&(_0x184ff2[_0x235ca4(0x1d9)]=[]),_0x18ee6a[_0x235ca4(0x166)]('\x0a')[_0x235ca4(0x1a4)](_0x40edcb=>{const _0x2ebf19=_0x235ca4;_0x40edcb&&_0x19e20e['jlJfF'](validateFilePath,_0x40edcb)&&_0x184ff2[_0x2ebf19(0x1d9)]['push']({'kind':_0x19e20e[_0x2ebf19(0x1e4)],'timestamp':new Date()['toISOString'](),'test_run_uuid':_0x3181b5['uuid'],'file_name':path[_0x2ebf19(0x1d8)](_0x40edcb),'file_size':fs[_0x2ebf19(0x182)](_0x40edcb)[_0x2ebf19(0x203)],'attachment_type':_0x19e20e[_0x2ebf19(0x211)]});})),await SessionHandler[_0x235ca4(0x207)](_0x184ff2);}[a41_0x4cb01e(0x171)](_0x7d5fdf){const _0x3aba15=a41_0x4cb01e,_0x1c5a04={};_0x1c5a04[_0x3aba15(0x19a)]=function(_0x593ec1,_0x5a9e14){return _0x593ec1===_0x5a9e14;},_0x1c5a04['HbKvh']=function(_0x37613c,_0x578e74){return _0x37613c>_0x578e74;},_0x1c5a04['UvwGE']=function(_0x4834b6,_0x9e7102){return _0x4834b6+_0x9e7102;},_0x1c5a04[_0x3aba15(0x17d)]=function(_0x405e67,_0x188c03){return _0x405e67+_0x188c03;},_0x1c5a04[_0x3aba15(0x191)]=function(_0x329285,_0x4018ef){return _0x329285+_0x4018ef;};const _0x2898d1=_0x1c5a04,_0x45578b=_0x7d5fdf[_0x3aba15(0x152)]()[_0x3aba15(0x1cf)](_0xbd3980=>{const _0x4d49dd=_0x3aba15;if(_0x7d5fdf[_0x4d49dd(0x1d1)]&&_0x2898d1[_0x4d49dd(0x19a)](_0xbd3980,_0x7d5fdf[_0x4d49dd(0x1d1)]['title'])&&_0x7d5fdf['parent'][_0x4d49dd(0x1af)]&&_0x2898d1[_0x4d49dd(0x210)](_0x7d5fdf[_0x4d49dd(0x1d1)][_0x4d49dd(0x1af)][_0x4d49dd(0x220)],0x0))return _0x2898d1[_0x4d49dd(0x1f3)](_0x2898d1[_0x4d49dd(0x17d)](_0xbd3980,'\x20'),_0x7d5fdf['parent'][_0x4d49dd(0x1af)][_0x4d49dd(0x214)]('\x20'));if(_0x2898d1[_0x4d49dd(0x19a)](_0xbd3980,_0x7d5fdf['title'])&&_0x7d5fdf[_0x4d49dd(0x1af)]&&_0x2898d1[_0x4d49dd(0x210)](_0x7d5fdf[_0x4d49dd(0x1af)][_0x4d49dd(0x220)],0x0))return _0x2898d1[_0x4d49dd(0x1f3)](_0x2898d1[_0x4d49dd(0x191)](_0xbd3980,'\x20'),_0x7d5fdf[_0x4d49dd(0x1af)][_0x4d49dd(0x214)]('\x20'));return _0xbd3980;})[_0x3aba15(0x214)]('\x20');return _0x45578b;}static async['sendSessionDetails'](_0x403bf7,_0x81a126){const _0x3d88db=a41_0x4cb01e,_0xcfdf97={'DDIbk':function(_0x5aa367,_0x31e5c7){return _0x5aa367(_0x31e5c7);},'UAIab':_0x3d88db(0x1c8)},_0x43f94f={'uuid':TestDetails[_0x3d88db(0x1a2)](_0x403bf7),'integrations':_0x81a126},_0x229698={};_0x229698[_0x3d88db(0x1bd)]=null,_0xcfdf97[_0x3d88db(0x149)](debug,_0x3d88db(0x1b7)+_0x403bf7+',\x20'+util['inspect'](_0x81a126,_0x229698));const _0x558738={};_0x558738['event_type']=_0xcfdf97['UAIab'],_0x558738['test_run']=_0x43f94f,await SessionHandler['uploadEventData'](_0x558738);}async[a41_0x4cb01e(0x1a8)](){const _0x3edf0e=a41_0x4cb01e,_0x551a04={'DgLtz':function(_0x5b0e5c){return _0x5b0e5c();}};if(this[_0x3edf0e(0x185)])return;const _0x25a950=await _0x551a04[_0x3edf0e(0x1fd)](getGitMetaData);_0x25a950&&(this[_0x3edf0e(0x143)]=_0x25a950[_0x3edf0e(0x1ba)]),this[_0x3edf0e(0x185)]=!![];}[a41_0x4cb01e(0x1ff)](_0x376f89){const _0x3d27bb=a41_0x4cb01e,_0x392f75={};_0x392f75['tAVlo']=function(_0x4d86eb,_0x570718){return _0x4d86eb!==_0x570718;};const _0x2b90cc=_0x392f75,_0x1d4dae=[];if(_0x376f89&&_0x376f89[_0x3d27bb(0x1d1)]){let _0x152940=_0x376f89[_0x3d27bb(0x1d1)];while(_0x152940&&_0x2b90cc[_0x3d27bb(0x165)](_0x152940[_0x3d27bb(0x20d)],'')){_0x1d4dae[_0x3d27bb(0x1d2)](_0x152940[_0x3d27bb(0x20d)]),_0x152940=_0x152940[_0x3d27bb(0x1d1)];}}return _0x1d4dae['reverse']()[_0x3d27bb(0x1b8)](0x0,0x2),_0x1d4dae;}['needToReportStep'](_0x5ba54b){const _0xd89074=a41_0x4cb01e,_0x399afc={};_0x399afc['QQpTl']=function(_0x143eb0,_0x185cb9){return _0x143eb0!==_0x185cb9;},_0x399afc[_0xd89074(0x18d)]=_0xd89074(0x1ed),_0x399afc['kLnyG']=function(_0x1e19ca,_0x3d9351){return _0x1e19ca===_0x3d9351;},_0x399afc[_0xd89074(0x1a6)]=_0xd89074(0x1da),_0x399afc[_0xd89074(0x1dd)]=_0xd89074(0x18a),_0x399afc['DptaJ']=_0xd89074(0x1a5),_0x399afc[_0xd89074(0x17e)]=_0xd89074(0x19c);const _0x29f2c6=_0x399afc;if(_0x29f2c6[_0xd89074(0x164)](_0x5ba54b[_0xd89074(0x168)],_0x29f2c6['fwGrD']))return![];if(_0x29f2c6[_0xd89074(0x16f)]([_0x29f2c6[_0xd89074(0x1a6)],_0x29f2c6['fyqMG'],_0x29f2c6['DptaJ'],_0x29f2c6[_0xd89074(0x17e)]]['indexOf'](_0x5ba54b[_0xd89074(0x20d)]),-0x1))return![];return!![];}[a41_0x4cb01e(0x230)](_0x3edf99,_0x279d1b){const _0x5b9a9b=a41_0x4cb01e,_0x1d27f9=_0x279d1b[_0x5b9a9b(0x19e)];if(_0x1d27f9)return _0x1d27f9;return _0x279d1b[_0x5b9a9b(0x20d)]+_0x5b9a9b(0x1ce)+this[_0x5b9a9b(0x16d)](_0x3edf99);}[a41_0x4cb01e(0x1e9)](_0x342a72,_0x53ca40){const _0x4f56eb=a41_0x4cb01e,_0x322049={'LMbkL':function(_0x49e147){return _0x49e147();}};let _0x5d6541=_0x53ca40[_0x4f56eb(0x20d)]+'\x20for\x20'+this[_0x4f56eb(0x16d)](_0x342a72);return this[_0x4f56eb(0x19d)][_0x5d6541]&&(_0x5d6541=_0x5d6541+_0x4f56eb(0x201)+_0x322049[_0x4f56eb(0x1ec)](uuidv4)),_0x53ca40['_bs_hookIdentifier']=_0x5d6541,_0x5d6541;}['getTestIdentifier']=_0x40bcc5=>{const _0x365b5c=a41_0x4cb01e,_0x52211f={};_0x52211f['AjSbB']=function(_0x17ca6b,_0x77324){return _0x17ca6b+_0x77324;},_0x52211f[_0x365b5c(0x1e7)]=function(_0x28bad5,_0x19ddae){return _0x28bad5+_0x19ddae;};const _0x23a7ed=_0x52211f;return _0x23a7ed[_0x365b5c(0x1c2)](_0x23a7ed[_0x365b5c(0x1e7)](_0x40bcc5[_0x365b5c(0x199)],'-'),_0x40bcc5['id']);};[a41_0x4cb01e(0x235)]=(_0x350264,_0x4216f7)=>{const _0x2445d4=a41_0x4cb01e,_0x3f0b2d={};_0x3f0b2d[_0x2445d4(0x1de)]=function(_0xee37c7,_0x6efb04){return _0xee37c7+_0x6efb04;};const _0xedbb9=_0x3f0b2d;return _0xedbb9[_0x2445d4(0x1de)](_0xedbb9[_0x2445d4(0x1de)](this[_0x2445d4(0x16d)](_0x350264),'-'),_0x4216f7);};[a41_0x4cb01e(0x200)]=_0x1fc779=>{const _0x251640=a41_0x4cb01e,_0x3d357d={};_0x3d357d[_0x251640(0x141)]=_0x251640(0x1da),_0x3d357d[_0x251640(0x1c3)]=_0x251640(0x195),_0x3d357d[_0x251640(0x204)]=_0x251640(0x18a),_0x3d357d[_0x251640(0x22e)]='BEFORE_ALL',_0x3d357d['zKGHU']=_0x251640(0x19c),_0x3d357d['hCxnE']=_0x251640(0x14d),_0x3d357d['gfMNR']='afterAll\x20hook',_0x3d357d[_0x251640(0x1d5)]=_0x251640(0x1c4),_0x3d357d[_0x251640(0x1f8)]='unknown';const _0x56acdf=_0x3d357d;if(_0x1fc779['startsWith'](_0x56acdf['oKWAV']))return _0x56acdf[_0x251640(0x1c3)];else{if(_0x1fc779['startsWith'](_0x56acdf['vySSd']))return _0x56acdf[_0x251640(0x22e)];else{if(_0x1fc779[_0x251640(0x206)](_0x56acdf[_0x251640(0x189)]))return _0x56acdf['hCxnE'];else{if(_0x1fc779[_0x251640(0x206)](_0x56acdf[_0x251640(0x17c)]))return _0x56acdf[_0x251640(0x1d5)];}}}return _0x56acdf['AGnsP'];};['getScope']=_0x3924de=>{const _0xfbeeac=a41_0x4cb01e,_0x5a0802={};_0x5a0802['yqGPO']=function(_0x437ba7,_0x296564){return _0x437ba7===_0x296564;},_0x5a0802[_0xfbeeac(0x16b)]=_0xfbeeac(0x219);const _0x48e488=_0x5a0802;let _0x232e22=_0x3924de[_0xfbeeac(0x1d1)];return _0x48e488[_0xfbeeac(0x1b5)](typeof _0x3924de[_0xfbeeac(0x1d1)],_0x48e488['lFMwE'])&&(_0x232e22=_0x232e22[_0xfbeeac(0x20d)]),_0x232e22+'\x20-\x20'+_0x3924de[_0xfbeeac(0x20d)];};[a41_0x4cb01e(0x16a)](){return![];}}function a41_0x31e5(){const _0x493033=['TcLgR','_gitConfigured','existsSync','failed','DINie','zKGHU','beforeAll\x20hook','CdpmB','amXDq','fwGrD','rNhwl','mkdirSync','gPdar','uPiQJ','reportLogs','timedOut','PLAYWRIGHT','BEFORE_EACH','891904kNwJwJ','message','flYEu','_projectId','HQGnT','../../../helpers/helper','afterEach\x20hook','_tests','_bs_hookIdentifier','Hook\x20Finished\x20with\x20unique\x20id\x20','KeWdZ','gNEUF','getTestUUID','rAOVS','forEach','afterAll\x20hook','jAzym','260289hquOhl','configureGit','NCDSC','errors','uuid','duration','OgnSf','LogCreated','_tags','HookRunStarted','getStepsAndLogs','relative','location','XdcaM','yqGPO','pending','Sending\x20session\x20details\x20for\x20','splice','util','root','format','_testHooksMap','depth','onTestEnd','finishedAt','Test\x20Finished\x20with\x20unique\x20id\x20','startTime','AjSbB','KYuqe','AFTER_ALL','status','TEST_STEP','screenshot','CBTSessionCreated','endSession','cwd','options','\x20at\x20','LnWuI','\x20for\x20','map','879490smqTZx','parent','push','TestRunStarted','sendTestRunEvent','tYPZq','APIAy','../../../helpers/testhub/utils','basename','logs','beforeEach\x20hook','SDzom','retry','fyqMG','LBrNt','UqdYo','expanded','err','CjXWb','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','vVXcQ','yBpJe','readFileSync','Whhdg','hfNqQ','setStepIdentifier','BwrBC','21nsUbCh','LMbkL','hook','attachments','TaDlK','error','sendSessionDetails','onTestBegin','UvwGE','MyReporter','TestRunFinished','HspoI','ODhNN','AGnsP','Trace\x20file\x20found\x20for\x20test:\x20','sKWWJ','5|2|4|3|6|1|0','ORmdY','DgLtz','\x20is\x20triggered\x20for\x20test\x20','getHierarchy','getHookType','\x20-\x20','failure_reason','size','vySSd','mtime','startsWith','uploadEventData','JUZlX','uPymU','onStepEnd','steps','retry_of','title','eTseK','iDtda','HbKvh','Fdour','UkKAE','sendHookRunEvent','join','2414532haktaZ','backtrace','jlJfF','cUcct','object','result','homedir','exports','failure','fOafF','\x20is\x20triggered','length','trace_','test_run_uuid','onStepBegin','file','hook_run','mhHOh','path','pWzEA','DEvTt','IGVAD','432005mQHkvY','.browserstack','dQwJI','oSGqj','getInstance','getStepIdentifier','onEnd','rfTGN','After\x20Hooks','../../../helpers/test-observability/constants','getTestRunIdentifier','208SoCcZA','2SiOdCr','zXRKI','FmIzb','oKWAV','getTime','_gitConfigPath','lOnBD','WpzkY','test','Before\x20Hooks','lrMJR','DDIbk','performance-report-reporter.json','hook_run_uuid','failure_type','AFTER_EACH','1472260DGKUaP','YKedc','AueyO','chYUz','titlePath','33QfvbJj','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','BrWSz','smPkM','lbibU','event_type','name','Yxrql','TEST_ATTACHMENT','utf8','toISOString','BROWSERSTACK_O11Y_PERF_MEASUREMENT','test_run','meta','BROWSERSTACK_TEST_RUN_ID','uKyuL','passed','QQpTl','tAVlo','split','env','category','Test\x20Started\x20with\x20unique\x20id\x20','printsToStdio','lFMwE','setup','getTestIdentifier','rQANB','kLnyG','./test-details','getCustomRerunParam','expectedStatus','guyVP','onBegin','Expected\x20to\x20fail,\x20but\x20passed.','PLAYWRIGHT_TRACE_LOGS','startedAt','yvwMG','3073731uMfRsJ','OHorU','HvycQ','gfMNR','nWMQI','eWYny','getScope','needToReportStep','fRzlF','statSync','toString'];a41_0x31e5=function(){return _0x493033;};return a41_0x31e5();}module[a41_0x4cb01e(0x21c)]=o11yClassErrorHandler(MyReporter,[a41_0x4cb01e(0x174),a41_0x4cb01e(0x1c9),a41_0x4cb01e(0x1f2),'onTestEnd',a41_0x4cb01e(0x223),a41_0x4cb01e(0x20a),a41_0x4cb01e(0x1f1)],a41_0x4cb01e(0x1f4));
@@ -1 +1 @@
1
- const a42_0x42700a=a42_0x33e4;(function(_0x25344c,_0x1f370d){const _0x5933bf=a42_0x33e4,_0x2a54ab=_0x25344c();while(!![]){try{const _0x58e59c=-parseInt(_0x5933bf(0x185))/0x1+-parseInt(_0x5933bf(0x177))/0x2*(parseInt(_0x5933bf(0x1bc))/0x3)+parseInt(_0x5933bf(0x16c))/0x4*(parseInt(_0x5933bf(0x17f))/0x5)+-parseInt(_0x5933bf(0x198))/0x6+parseInt(_0x5933bf(0x1b4))/0x7+-parseInt(_0x5933bf(0x166))/0x8+parseInt(_0x5933bf(0x192))/0x9;if(_0x58e59c===_0x1f370d)break;else _0x2a54ab['push'](_0x2a54ab['shift']());}catch(_0x2bb09a){_0x2a54ab['push'](_0x2a54ab['shift']());}}}(a42_0x16ed,0x5ebc6));function a42_0x16ed(){const _0x54f273=['xlpWm','qvpFH','xVmyL','traceZipPaths','27BXRHKK','message','getStoreDirName','getTestRunIdFromTestInfo','uuid','error','SiZwY','3939352jxZHSn','appendFileSync','parse','writeFileSync','arrDo','string','4CwHTsr','PSwYh','env','push','readFileSync','rmSync','setup','path','../../../helpers/helper','cwd','FIsvj','2818BcyHSY','project','NEWJL','getStoreDirPath','tests','recursive','setTestDetails','existsSync','3105325QdbxCf','stringify','filePath','qmSmf','BS_TESTOPS_BUILD_HASHED_ID','NIQzO','487542iuwuGT','util','zfqYS','dUFwH','Error\x20handling\x20trace\x20file\x20paths:\x20','readdirSync','forEach','_test','getProjectIdFromTestInfo','winstonLogger','join','_platformDetails.json','toString','8773191knWuZv','utf8','RSrnF','.txt','GPFrB','getTestIdFromTestInfo','4651716VqxOUU','Error\x20reading\x20trace\x20file\x20paths:\x20%s','Error\x20writing\x20trace\x20file:\x20','getFilePath','retry','testId','default','dirPath','traceZipDir','kGJKB','.json','split','getAccessibilityPlatformValidation','_projectId','appendToTracePaths','FMdgP','IGhzW','mkdirSync','HNGJq','vRkCV','hgLVt','TpDJz','getTraceFilePaths','pid','../../../helpers/test-observability/constants','Ktnwq','../../../helpers/logger','_traceZipPaths.json','3920714kYyyMB','getTraceZipDir','values','trace_'];a42_0x16ed=function(){return _0x54f273;};return a42_0x16ed();}const fs=require('fs'),path=require(a42_0x42700a(0x173)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require(a42_0x42700a(0x1b0)),{nestedKeyValue}=require(a42_0x42700a(0x174)),logger=require(a42_0x42700a(0x1b2))[a42_0x42700a(0x18e)],util=require(a42_0x42700a(0x186)),helper=require('../../../helpers/helper');function a42_0x33e4(_0x253dc2,_0x5dee4b){const _0x16edd9=a42_0x16ed();return a42_0x33e4=function(_0x33e4ff,_0x179e67){_0x33e4ff=_0x33e4ff-0x163;let _0x519a20=_0x16edd9[_0x33e4ff];return _0x519a20;},a42_0x33e4(_0x253dc2,_0x5dee4b);}class TestDetails{static [a42_0x42700a(0x17b)]={};static ['dirPath']=path[a42_0x42700a(0x18f)](process[a42_0x42700a(0x175)](),TestDetails[a42_0x42700a(0x1be)]());static [a42_0x42700a(0x1a0)]=path['join'](TestDetails[a42_0x42700a(0x19f)],a42_0x42700a(0x1bb));static[a42_0x42700a(0x172)](){const _0x2cdcda=a42_0x42700a,_0x44bb30={};_0x44bb30['PSwYh']='3|1|4|2|0',_0x44bb30['Ktnwq']=_0x2cdcda(0x1bb);const _0x4f4ecb=_0x44bb30,_0x4b4889=_0x4f4ecb[_0x2cdcda(0x16d)][_0x2cdcda(0x1a3)]('|');let _0x3b8042=0x0;while(!![]){switch(_0x4b4889[_0x3b8042++]){case'0':const _0x2bdd43={};_0x2bdd43['recursive']=!![],fs['mkdirSync'](this['traceZipDir'],_0x2bdd43);continue;case'1':this[_0x2cdcda(0x1a0)]=path[_0x2cdcda(0x18f)](this[_0x2cdcda(0x19f)],_0x4f4ecb[_0x2cdcda(0x1b1)]);continue;case'2':const _0x26c9ed={};_0x26c9ed[_0x2cdcda(0x17c)]=!![],fs[_0x2cdcda(0x1a9)](this[_0x2cdcda(0x19f)],_0x26c9ed);continue;case'3':this[_0x2cdcda(0x19f)]=path[_0x2cdcda(0x18f)](process[_0x2cdcda(0x175)](),TestDetails[_0x2cdcda(0x1be)]());continue;case'4':this['shutdown']();continue;}break;}}static[a42_0x42700a(0x1be)](){const _0x52423d=a42_0x42700a,_0x335a5b={};_0x335a5b[_0x52423d(0x179)]=function(_0x58a40f,_0x13f55d){return _0x58a40f+_0x13f55d;},_0x335a5b[_0x52423d(0x1a1)]=function(_0x218e04,_0x14ae07){return _0x218e04+_0x14ae07;};const _0x21c4a6=_0x335a5b;return _0x21c4a6['NEWJL'](_0x21c4a6[_0x52423d(0x1a1)](TEMP_STORE_DIR_NAME,'-'),process[_0x52423d(0x16e)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a42_0x42700a(0x17a)](){const _0x489fd0=a42_0x42700a,_0x52b406={};_0x52b406['vRkCV']=function(_0x54b46b,_0x3e45d4){return _0x54b46b+_0x3e45d4;},_0x52b406[_0x489fd0(0x194)]=function(_0x4f3629,_0x1e8be9){return _0x4f3629+_0x1e8be9;},_0x52b406[_0x489fd0(0x184)]=_0x489fd0(0x19e);const _0x1cd075=_0x52b406;return path['join'](process[_0x489fd0(0x175)](),_0x1cd075[_0x489fd0(0x1ab)](_0x1cd075[_0x489fd0(0x194)](TEMP_STORE_DIR_NAME,'-'),process[_0x489fd0(0x16e)][_0x489fd0(0x183)]||_0x1cd075[_0x489fd0(0x184)]));}static[a42_0x42700a(0x1b5)](){const _0x5cb3be=a42_0x42700a,_0x42652a={};_0x42652a[_0x5cb3be(0x188)]=_0x5cb3be(0x1bb);const _0x6c1e08=_0x42652a;return path[_0x5cb3be(0x18f)](this[_0x5cb3be(0x17a)](),_0x6c1e08[_0x5cb3be(0x188)]);}static[a42_0x42700a(0x19b)](_0x14fc61){const _0x919fef=a42_0x42700a,_0x402598={};_0x402598[_0x919fef(0x16a)]=function(_0xa5c500,_0x30351a){return _0xa5c500+_0x30351a;},_0x402598['xlpWm']=_0x919fef(0x1a2);const _0x48de4e=_0x402598;return path['join'](this['dirPath'],_0x48de4e[_0x919fef(0x16a)](_0x14fc61,_0x48de4e[_0x919fef(0x1b8)]));}static[a42_0x42700a(0x1bf)](_0x4ad98b){const _0xd70179=a42_0x42700a,_0x12b58e={};_0x12b58e[_0xd70179(0x165)]=function(_0x285bab,_0x11591c){return _0x285bab+_0x11591c;},_0x12b58e[_0xd70179(0x176)]=function(_0x52bc25,_0x5b1446){return _0x52bc25+_0x5b1446;};const _0x447f63=_0x12b58e;return _0x447f63[_0xd70179(0x165)](_0x447f63[_0xd70179(0x165)](_0x447f63[_0xd70179(0x165)](_0x447f63[_0xd70179(0x176)](this['getProjectIdFromTestInfo'](_0x4ad98b),'-'),this[_0xd70179(0x197)](_0x4ad98b)),'-'),_0x4ad98b[_0xd70179(0x19c)]);}static[a42_0x42700a(0x18d)](_0x156c38){const _0x2c031c=a42_0x42700a,_0x2b6647={'cvywS':function(_0x49703e,_0xe008fb,_0xc2a3eb){return _0x49703e(_0xe008fb,_0xc2a3eb);},'qmSmf':_0x2c031c(0x18c),'zFaYL':_0x2c031c(0x1a5),'HNGJq':function(_0x5640ea,_0x527c18,_0x27a1b6){return _0x5640ea(_0x527c18,_0x27a1b6);},'YBoQr':_0x2c031c(0x178),'xVmyL':'__projectId'};return _0x2b6647['cvywS'](nestedKeyValue,_0x156c38,[_0x2b6647[_0x2c031c(0x182)],_0x2b6647['zFaYL']])||_0x2b6647[_0x2c031c(0x1aa)](nestedKeyValue,_0x156c38,[_0x2b6647['YBoQr'],_0x2b6647[_0x2c031c(0x1ba)]]);}static[a42_0x42700a(0x197)](_0x2a2237){const _0x543b44=a42_0x42700a,_0x391a32={'zfqYS':function(_0x56181e,_0x41973f,_0x30999e){return _0x56181e(_0x41973f,_0x30999e);},'OjvjR':_0x543b44(0x18c)};return _0x391a32[_0x543b44(0x187)](nestedKeyValue,_0x2a2237,[_0x391a32['OjvjR'],'id'])||_0x2a2237[_0x543b44(0x19d)];}static['getTestUUID'](_0x50808a){const _0x317f30=a42_0x42700a,_0x3da02c={'GPFrB':function(_0x1e5814,_0x202205){return _0x1e5814===_0x202205;},'gyawy':_0x317f30(0x16b),'adlYJ':function(_0x448d85){return _0x448d85();}};if(this[_0x317f30(0x17b)][_0x50808a]&&_0x3da02c[_0x317f30(0x196)](typeof this[_0x317f30(0x17b)][_0x50808a][_0x317f30(0x163)],_0x3da02c['gyawy']))return this[_0x317f30(0x17b)][_0x50808a][_0x317f30(0x163)];const _0x1f7b30=this[_0x317f30(0x19b)](_0x50808a);if(_0x1f7b30&&fs[_0x317f30(0x17e)](_0x1f7b30)){const _0x201654=JSON['parse'](fs[_0x317f30(0x170)](_0x1f7b30)[_0x317f30(0x191)]());return this[_0x317f30(0x17b)][_0x50808a]=_0x201654,this[_0x317f30(0x17b)][_0x50808a][_0x317f30(0x163)];}return this[_0x317f30(0x17b)][_0x50808a]={'uuid':_0x3da02c['adlYJ'](uuidv4)},fs[_0x317f30(0x169)](_0x1f7b30,JSON[_0x317f30(0x180)](this[_0x317f30(0x17b)][_0x50808a])),this[_0x317f30(0x17b)][_0x50808a][_0x317f30(0x163)];}static[a42_0x42700a(0x1a4)](_0x1f977a){const _0x1a7569=a42_0x42700a,_0x1f0dda=path[_0x1a7569(0x18f)](this[_0x1a7569(0x19f)],_0x1f977a+'_platformDetails.json');if(_0x1f0dda&&fs[_0x1a7569(0x17e)](_0x1f0dda))return fs[_0x1a7569(0x170)](_0x1f0dda)[_0x1a7569(0x191)]();}static['setAccessibilityPlatformValidation'](_0x3e532a,_0x1d583c){const _0x5e08a4=a42_0x42700a,_0xf02d65=path[_0x5e08a4(0x18f)](this[_0x5e08a4(0x19f)],_0x1d583c+_0x5e08a4(0x190));fs[_0x5e08a4(0x169)](_0xf02d65,_0x3e532a['toString']());}static['shutdown'](){const _0x237fd5=a42_0x42700a,_0x41117f={};_0x41117f['recursive']=!![],_0x41117f['force']=!![],fs[_0x237fd5(0x171)](this[_0x237fd5(0x19f)],_0x41117f);}static['getTestDetails'](_0x3f9cb2){const _0x54f549=a42_0x42700a;if(this[_0x54f549(0x17b)][_0x3f9cb2])return this['tests'][_0x3f9cb2];const _0x292ec2=this[_0x54f549(0x19b)](_0x3f9cb2);if(_0x292ec2&&fs['existsSync'](_0x292ec2)){const _0xf7bf9=JSON[_0x54f549(0x168)](fs[_0x54f549(0x170)](_0x292ec2)[_0x54f549(0x191)]());return this[_0x54f549(0x17b)][_0x3f9cb2]=_0xf7bf9,_0xf7bf9;}return{};}static[a42_0x42700a(0x17d)](_0x6da8a8,_0x5e11e4){const _0x15e6cf=a42_0x42700a,_0x2214a1=this['getFilePath'](_0x6da8a8);if(_0x2214a1&&fs['existsSync'](_0x2214a1)){const _0x26cc6c=JSON[_0x15e6cf(0x168)](fs['readFileSync'](_0x2214a1)[_0x15e6cf(0x191)]()),_0x2431cc={..._0x26cc6c,..._0x5e11e4};this[_0x15e6cf(0x17b)][_0x6da8a8]=_0x2431cc;}else this['tests'][_0x6da8a8]=_0x5e11e4;fs[_0x15e6cf(0x169)](_0x2214a1,this[_0x15e6cf(0x17b)][_0x6da8a8]);}static['addTraceFilePath'](_0x4fff5e){const _0x27cf5b=a42_0x42700a,_0x3fdd8f={};_0x3fdd8f[_0x27cf5b(0x1a8)]=_0x27cf5b(0x189);const _0x54d136=_0x3fdd8f;try{const _0x58dbc7=process[_0x27cf5b(0x1af)],_0x189d13=path[_0x27cf5b(0x18f)](TestDetails[_0x27cf5b(0x1b5)](),_0x58dbc7+_0x27cf5b(0x1b3));let _0x17fff2=[];_0x189d13&&fs[_0x27cf5b(0x17e)](_0x189d13)&&(_0x17fff2=JSON[_0x27cf5b(0x168)](fs['readFileSync'](_0x189d13)[_0x27cf5b(0x191)]())),!_0x17fff2['some'](_0x4033bc=>_0x4033bc[_0x27cf5b(0x181)]===_0x4fff5e[_0x27cf5b(0x181)])&&(_0x17fff2[_0x27cf5b(0x16f)](_0x4fff5e),fs[_0x27cf5b(0x169)](_0x189d13,JSON['stringify'](_0x17fff2)));}catch(_0x1297e2){logger[_0x27cf5b(0x164)](_0x54d136[_0x27cf5b(0x1a8)],_0x1297e2);}}static[a42_0x42700a(0x1ae)](){const _0x48fb2c=a42_0x42700a,_0x1fc7cc={};_0x1fc7cc[_0x48fb2c(0x1ad)]=_0x48fb2c(0x1b3),_0x1fc7cc[_0x48fb2c(0x1a7)]=_0x48fb2c(0x199);const _0x456c70=_0x1fc7cc,_0x427925=[];try{const _0x5a7a53=TestDetails[_0x48fb2c(0x1b5)]();if(_0x5a7a53&&!fs[_0x48fb2c(0x17e)](_0x5a7a53))return _0x427925;const _0x1c595f=fs[_0x48fb2c(0x18a)](_0x5a7a53);_0x1c595f[_0x48fb2c(0x18b)](_0x18ef36=>{const _0x2ebd1d=_0x48fb2c;if(_0x18ef36&&_0x18ef36['endsWith'](_0x456c70['TpDJz'])){const _0x5d5836=JSON['parse'](fs['readFileSync'](path[_0x2ebd1d(0x18f)](_0x5a7a53,_0x18ef36))[_0x2ebd1d(0x191)]());_0x427925[_0x2ebd1d(0x16f)](..._0x5d5836);}});}catch(_0x5f5e05){logger['error'](util['format'](_0x456c70['FMdgP'],_0x5f5e05));}const _0x383746={};return _0x427925[_0x48fb2c(0x18b)](_0x1976c7=>{const _0x531eb6=_0x48fb2c;_0x383746[_0x1976c7[_0x531eb6(0x181)]]=_0x1976c7;}),Object[_0x48fb2c(0x1b6)](_0x383746);}static[a42_0x42700a(0x1a6)](_0x448157,_0x583060){const _0x16b81e=a42_0x42700a,_0x536ae2={};_0x536ae2[_0x16b81e(0x1b9)]='.browserstack',_0x536ae2['hgLVt']=_0x16b81e(0x193);const _0x3dee03=_0x536ae2;try{const _0x2c0681=path[_0x16b81e(0x18f)](helper['homedir'](),_0x3dee03[_0x16b81e(0x1b9)]);if(!fs[_0x16b81e(0x17e)](_0x2c0681)){const _0x39ad52={};_0x39ad52[_0x16b81e(0x17c)]=!![],fs['mkdirSync'](_0x2c0681,_0x39ad52);}fs[_0x16b81e(0x167)](path['join'](_0x2c0681,_0x16b81e(0x1b7)+_0x583060+_0x16b81e(0x195)),_0x448157+'\x0a',_0x3dee03[_0x16b81e(0x1ac)]);}catch(_0x23947b){console[_0x16b81e(0x164)](_0x16b81e(0x19a)+_0x23947b[_0x16b81e(0x1bd)]);}}}module['exports']=TestDetails;
1
+ const a42_0x1f0e9e=a42_0xb490;function a42_0xb490(_0x42a92c,_0xe5138b){const _0x32defe=a42_0x32de();return a42_0xb490=function(_0xb4900d,_0xbb1412){_0xb4900d=_0xb4900d-0x110;let _0x38b8b1=_0x32defe[_0xb4900d];return _0x38b8b1;},a42_0xb490(_0x42a92c,_0xe5138b);}(function(_0x407127,_0x529b2f){const _0xa57e42=a42_0xb490,_0x1c6c56=_0x407127();while(!![]){try{const _0x4efb3d=-parseInt(_0xa57e42(0x15d))/0x1+-parseInt(_0xa57e42(0x111))/0x2*(-parseInt(_0xa57e42(0x161))/0x3)+-parseInt(_0xa57e42(0x11e))/0x4*(-parseInt(_0xa57e42(0x160))/0x5)+-parseInt(_0xa57e42(0x138))/0x6*(-parseInt(_0xa57e42(0x16a))/0x7)+-parseInt(_0xa57e42(0x166))/0x8+parseInt(_0xa57e42(0x168))/0x9+parseInt(_0xa57e42(0x128))/0xa*(parseInt(_0xa57e42(0x117))/0xb);if(_0x4efb3d===_0x529b2f)break;else _0x1c6c56['push'](_0x1c6c56['shift']());}catch(_0xf68452){_0x1c6c56['push'](_0x1c6c56['shift']());}}}(a42_0x32de,0xc45ef));const fs=require('fs'),path=require('path'),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require(a42_0x1f0e9e(0x144)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a42_0x1f0e9e(0x169))[a42_0x1f0e9e(0x14a)],{getLogDir}=require(a42_0x1f0e9e(0x169)),util=require('util'),helper=require('../../../helpers/helper');class TestDetails{static ['tests']={};static[a42_0x1f0e9e(0x164)](){const _0x2d1672=a42_0x1f0e9e;this[_0x2d1672(0x139)]();const _0x520f00={};_0x520f00[_0x2d1672(0x13d)]=!![],fs[_0x2d1672(0x143)](this[_0x2d1672(0x13c)](),_0x520f00);const _0x51914c={};_0x51914c['recursive']=!![],fs[_0x2d1672(0x143)](this[_0x2d1672(0x142)](),_0x51914c);}static[a42_0x1f0e9e(0x114)](){const _0x27a466=a42_0x1f0e9e,_0x3ff2e3={};_0x3ff2e3[_0x27a466(0x118)]=function(_0x31c3b3,_0x1fb7a7){return _0x31c3b3+_0x1fb7a7;},_0x3ff2e3[_0x27a466(0x15b)]=function(_0x2b0aa3,_0x1a732b){return _0x2b0aa3+_0x1a732b;};const _0x17ba67=_0x3ff2e3;return _0x17ba67[_0x27a466(0x118)](_0x17ba67[_0x27a466(0x15b)](TEMP_STORE_DIR_NAME,'-'),process[_0x27a466(0x13f)][_0x27a466(0x112)]);}static[a42_0x1f0e9e(0x127)](){const _0x5dac40=a42_0x1f0e9e,_0x2a2d4e={'mrmwk':function(_0x2d5e2a){return _0x2d5e2a();},'Cpyov':function(_0x3f498f,_0x3b85ff){return _0x3f498f+_0x3b85ff;},'vpcmy':function(_0x2de74b,_0x3a5ad1){return _0x2de74b+_0x3a5ad1;},'VCYln':_0x5dac40(0x119)};return path[_0x5dac40(0x157)](_0x2a2d4e[_0x5dac40(0x12a)](getLogDir),_0x2a2d4e['Cpyov'](_0x2a2d4e[_0x5dac40(0x146)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x5dac40(0x112)]||_0x2a2d4e['VCYln']));}static[a42_0x1f0e9e(0x142)](){const _0x2117be=a42_0x1f0e9e,_0x592651={};_0x592651[_0x2117be(0x11b)]=_0x2117be(0x15c);const _0x6ecea0=_0x592651;return path[_0x2117be(0x157)](this[_0x2117be(0x127)](),_0x6ecea0['uygvl']);}static[a42_0x1f0e9e(0x13c)](){const _0x470349=a42_0x1f0e9e,_0x29adbe={'dgSMB':function(_0x4da3cb){return _0x4da3cb();}};return path[_0x470349(0x157)](_0x29adbe[_0x470349(0x133)](getLogDir),TestDetails[_0x470349(0x114)]());}static[a42_0x1f0e9e(0x115)](_0x115d2f){const _0x166f01=a42_0x1f0e9e,_0xf4cf03={};_0xf4cf03[_0x166f01(0x137)]=function(_0x5bc6de,_0x547c7a){return _0x5bc6de+_0x547c7a;},_0xf4cf03['nIqXL']=_0x166f01(0x15a);const _0x281bf2=_0xf4cf03;return path[_0x166f01(0x157)](this[_0x166f01(0x13c)](),_0x281bf2[_0x166f01(0x137)](_0x115d2f,_0x281bf2[_0x166f01(0x167)]));}static['getTestRunIdFromTestInfo'](_0x35eab7){const _0x2fa622=a42_0x1f0e9e,_0x5827c1={};_0x5827c1[_0x2fa622(0x11a)]=function(_0x4e0b05,_0x4dd3aa){return _0x4e0b05+_0x4dd3aa;},_0x5827c1['bjnsD']=function(_0x939954,_0x3fb3df){return _0x939954+_0x3fb3df;};const _0x179c1c=_0x5827c1;return _0x179c1c['ezQsz'](_0x179c1c[_0x2fa622(0x11a)](_0x179c1c[_0x2fa622(0x11a)](_0x179c1c[_0x2fa622(0x136)](this[_0x2fa622(0x148)](_0x35eab7),'-'),this[_0x2fa622(0x163)](_0x35eab7)),'-'),_0x35eab7['retry']);}static[a42_0x1f0e9e(0x148)](_0x5c0666){const _0x2296b=a42_0x1f0e9e,_0x375051={'UslFU':function(_0x51b639,_0x278cc4,_0x53c9e4){return _0x51b639(_0x278cc4,_0x53c9e4);},'kmgFy':_0x2296b(0x12e),'gYYLG':_0x2296b(0x121),'TyafB':'project','HGdiG':_0x2296b(0x13b)};return _0x375051[_0x2296b(0x14d)](nestedKeyValue,_0x5c0666,[_0x375051[_0x2296b(0x16b)],_0x375051[_0x2296b(0x14b)]])||_0x375051[_0x2296b(0x14d)](nestedKeyValue,_0x5c0666,[_0x375051[_0x2296b(0x165)],_0x375051[_0x2296b(0x116)]]);}static['getTestIdFromTestInfo'](_0x1f5ea9){const _0xf03d55=a42_0x1f0e9e,_0x47069b={'BbQWm':function(_0x14b8e0,_0x5c7057,_0x1e4f90){return _0x14b8e0(_0x5c7057,_0x1e4f90);},'vqzGJ':_0xf03d55(0x12e)};return _0x47069b['BbQWm'](nestedKeyValue,_0x1f5ea9,[_0x47069b[_0xf03d55(0x126)],'id'])||_0x1f5ea9[_0xf03d55(0x124)];}static[a42_0x1f0e9e(0x156)](_0x1ef54c){const _0x1bae06=a42_0x1f0e9e,_0x35ce8={'FPtKD':function(_0x39c991,_0x1af219){return _0x39c991===_0x1af219;},'VkleF':_0x1bae06(0x122),'eVxFf':function(_0x3a5238){return _0x3a5238();}};if(this[_0x1bae06(0x13e)][_0x1ef54c]&&_0x35ce8['FPtKD'](typeof this[_0x1bae06(0x13e)][_0x1ef54c]['uuid'],_0x35ce8[_0x1bae06(0x14f)]))return this[_0x1bae06(0x13e)][_0x1ef54c]['uuid'];const _0x321f50=this[_0x1bae06(0x115)](_0x1ef54c);if(_0x321f50&&fs['existsSync'](_0x321f50)){const _0xa34e35=JSON[_0x1bae06(0x158)](fs[_0x1bae06(0x150)](_0x321f50)['toString']());return this[_0x1bae06(0x13e)][_0x1ef54c]=_0xa34e35,this[_0x1bae06(0x13e)][_0x1ef54c][_0x1bae06(0x11f)];}return this[_0x1bae06(0x13e)][_0x1ef54c]={'uuid':_0x35ce8[_0x1bae06(0x135)](uuidv4)},fs[_0x1bae06(0x162)](_0x321f50,JSON[_0x1bae06(0x149)](this[_0x1bae06(0x13e)][_0x1ef54c])),this['tests'][_0x1ef54c][_0x1bae06(0x11f)];}static[a42_0x1f0e9e(0x12f)](_0x363f70){const _0x3d4043=a42_0x1f0e9e,_0x5495fc=path['join'](this[_0x3d4043(0x13c)](),_0x363f70+_0x3d4043(0x159));if(_0x5495fc&&fs[_0x3d4043(0x15f)](_0x5495fc))return fs[_0x3d4043(0x150)](_0x5495fc)[_0x3d4043(0x151)]();}static[a42_0x1f0e9e(0x14e)](_0x4e40a3,_0x231b83){const _0x46bde2=a42_0x1f0e9e,_0x353d0f=path[_0x46bde2(0x157)](this[_0x46bde2(0x13c)](),_0x231b83+'_platformDetails.json');fs[_0x46bde2(0x162)](_0x353d0f,_0x4e40a3[_0x46bde2(0x151)]());}static[a42_0x1f0e9e(0x139)](){const _0x1da271=a42_0x1f0e9e,_0x1c9573={};_0x1c9573[_0x1da271(0x13d)]=!![],_0x1c9573[_0x1da271(0x134)]=!![],fs['rmSync'](this['getDirPath'](),_0x1c9573);}static[a42_0x1f0e9e(0x153)](_0x265803){const _0x16cd3b=a42_0x1f0e9e;if(this['tests'][_0x265803])return this['tests'][_0x265803];const _0x26c4ac=this[_0x16cd3b(0x115)](_0x265803);if(_0x26c4ac&&fs[_0x16cd3b(0x15f)](_0x26c4ac)){const _0x24f89c=JSON[_0x16cd3b(0x158)](fs[_0x16cd3b(0x150)](_0x26c4ac)[_0x16cd3b(0x151)]());return this[_0x16cd3b(0x13e)][_0x265803]=_0x24f89c,_0x24f89c;}return{};}static['setTestDetails'](_0x76b326,_0x4c360e){const _0x383e7f=a42_0x1f0e9e,_0x5b877a=this[_0x383e7f(0x115)](_0x76b326);if(_0x5b877a&&fs[_0x383e7f(0x15f)](_0x5b877a)){const _0x98c8d7=JSON[_0x383e7f(0x158)](fs[_0x383e7f(0x150)](_0x5b877a)[_0x383e7f(0x151)]()),_0x4ae634={..._0x98c8d7,..._0x4c360e};this[_0x383e7f(0x13e)][_0x76b326]=_0x4ae634;}else this[_0x383e7f(0x13e)][_0x76b326]=_0x4c360e;fs['writeFileSync'](_0x5b877a,this[_0x383e7f(0x13e)][_0x76b326]);}static[a42_0x1f0e9e(0x155)](_0x568103){const _0x454af9=a42_0x1f0e9e,_0xfb86c2={};_0xfb86c2[_0x454af9(0x14c)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x5dec78=_0xfb86c2;try{const _0x51b019=process[_0x454af9(0x15e)],_0x325153=path[_0x454af9(0x157)](TestDetails[_0x454af9(0x142)](),_0x51b019+_0x454af9(0x132));let _0x3e5982=[];_0x325153&&fs['existsSync'](_0x325153)&&(_0x3e5982=JSON[_0x454af9(0x158)](fs[_0x454af9(0x150)](_0x325153)[_0x454af9(0x151)]())),!_0x3e5982[_0x454af9(0x145)](_0x495b1f=>_0x495b1f['filePath']===_0x568103[_0x454af9(0x12b)])&&(_0x3e5982[_0x454af9(0x140)](_0x568103),fs[_0x454af9(0x162)](_0x325153,JSON[_0x454af9(0x149)](_0x3e5982)));}catch(_0x40a12e){logger[_0x454af9(0x11c)](_0x5dec78[_0x454af9(0x14c)],_0x40a12e);}}static['getTraceFilePaths'](){const _0x15c228=a42_0x1f0e9e,_0x3a0255={};_0x3a0255[_0x15c228(0x13a)]='_traceZipPaths.json',_0x3a0255['APtQW']='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0xd026c4=_0x3a0255,_0x16166f=[];try{const _0x485d57=TestDetails['getTraceZipDir']();if(_0x485d57&&!fs[_0x15c228(0x15f)](_0x485d57))return _0x16166f;const _0x5387ef=fs[_0x15c228(0x154)](_0x485d57);_0x5387ef[_0x15c228(0x125)](_0x380baa=>{const _0x185967=_0x15c228;if(_0x380baa&&_0x380baa[_0x185967(0x130)](_0xd026c4[_0x185967(0x13a)])){const _0xa952ab=JSON[_0x185967(0x158)](fs[_0x185967(0x150)](path[_0x185967(0x157)](_0x485d57,_0x380baa))['toString']());_0x16166f[_0x185967(0x140)](..._0xa952ab);}});}catch(_0x54a1e0){logger[_0x15c228(0x11c)](util['format'](_0xd026c4[_0x15c228(0x141)],_0x54a1e0));}const _0x39f5e2={};return _0x16166f['forEach'](_0x3abc36=>{const _0x2dced7=_0x15c228;_0x39f5e2[_0x3abc36[_0x2dced7(0x12b)]]=_0x3abc36;}),Object[_0x15c228(0x123)](_0x39f5e2);}static[a42_0x1f0e9e(0x129)](_0x23160c,_0x2b6285){const _0x4797da=a42_0x1f0e9e,_0x2cb05c={};_0x2cb05c[_0x4797da(0x110)]=_0x4797da(0x12c),_0x2cb05c[_0x4797da(0x147)]=_0x4797da(0x120);const _0x840579=_0x2cb05c;try{const _0x2c9347=path[_0x4797da(0x157)](helper[_0x4797da(0x152)](),_0x840579['RlaJt']);if(!fs[_0x4797da(0x15f)](_0x2c9347)){const _0x37477e={};_0x37477e[_0x4797da(0x13d)]=!![],fs['mkdirSync'](_0x2c9347,_0x37477e);}fs[_0x4797da(0x131)](path[_0x4797da(0x157)](_0x2c9347,_0x4797da(0x113)+_0x2b6285+_0x4797da(0x12d)),_0x23160c+'\x0a',_0x840579[_0x4797da(0x147)]);}catch(_0x10e612){console[_0x4797da(0x11c)]('Error\x20writing\x20trace\x20file:\x20'+_0x10e612['message']);}}}function a42_0x32de(){const _0x3fce6b=['1990ZeoUgp','appendToTracePaths','mrmwk','filePath','.browserstack','.txt','_test','getAccessibilityPlatformValidation','endsWith','appendFileSync','_traceZipPaths.json','dgSMB','force','eVxFf','bjnsD','Emnjo','7758kIbbtb','shutdown','AxbmM','__projectId','getDirPath','recursive','tests','env','push','APtQW','getTraceZipDir','mkdirSync','../../../helpers/test-observability/constants','some','vpcmy','bpArd','getProjectIdFromTestInfo','stringify','winstonLogger','gYYLG','jgDUB','UslFU','setAccessibilityPlatformValidation','VkleF','readFileSync','toString','homedir','getTestDetails','readdirSync','addTraceFilePath','getTestUUID','join','parse','_platformDetails.json','.json','QFPBV','traceZipPaths','1111462OuWfQS','pid','existsSync','115945cRdLZd','42054BuyeyO','writeFileSync','getTestIdFromTestInfo','setup','TyafB','4440816nWolRZ','nIqXL','2589318ARGKVh','../../../helpers/logger','553QMwPUP','kmgFy','RlaJt','86QOjncc','BS_TESTOPS_BUILD_HASHED_ID','trace_','getStoreDirName','getFilePath','HGdiG','34287gHQSOq','iTeiS','default','ezQsz','uygvl','error','exports','148TWaElQ','uuid','utf8','_projectId','string','values','testId','forEach','vqzGJ','getStoreDirPath'];a42_0x32de=function(){return _0x3fce6b;};return a42_0x32de();}module[a42_0x1f0e9e(0x11d)]=TestDetails;
@@ -1 +1 @@
1
- const a43_0x522d3b=a43_0x543d;(function(_0x550cef,_0xb1c44d){const _0x525046=a43_0x543d,_0x289f1c=_0x550cef();while(!![]){try{const _0x18eb38=-parseInt(_0x525046(0x1f7))/0x1+-parseInt(_0x525046(0x24f))/0x2*(parseInt(_0x525046(0x1e9))/0x3)+-parseInt(_0x525046(0x1b3))/0x4+-parseInt(_0x525046(0x1c0))/0x5*(-parseInt(_0x525046(0x208))/0x6)+-parseInt(_0x525046(0x1ca))/0x7+parseInt(_0x525046(0x251))/0x8+-parseInt(_0x525046(0x24e))/0x9;if(_0x18eb38===_0xb1c44d)break;else _0x289f1c['push'](_0x289f1c['shift']());}catch(_0x44577c){_0x289f1c['push'](_0x289f1c['shift']());}}}(a43_0x1495,0x24a31));const path=require('path'),url=require('url'),util=require(a43_0x522d3b(0x1f0)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require(a43_0x522d3b(0x1fc)),{debug,getPlatformDetails}=require(a43_0x522d3b(0x1f1)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a43_0x522d3b(0x1b2)),logger=require(a43_0x522d3b(0x1c5))[a43_0x522d3b(0x21f)],scripts=require(a43_0x522d3b(0x1d8)),{browserStackExecuteDriver}=require(a43_0x522d3b(0x1e4)),AccessibilityHelper=require(a43_0x522d3b(0x1c9)),constants=require(a43_0x522d3b(0x1bd)),getBrowserNameFromChannel=_0x237c65=>{const _0x2024b6=a43_0x522d3b,_0x1383aa={};_0x1383aa[_0x2024b6(0x224)]=_0x2024b6(0x205),_0x1383aa[_0x2024b6(0x221)]=_0x2024b6(0x1f2),_0x1383aa[_0x2024b6(0x1c1)]=_0x2024b6(0x249),_0x1383aa[_0x2024b6(0x1b5)]=_0x2024b6(0x1e2);const _0x1c9a7f=_0x1383aa;if(_0x237c65[_0x2024b6(0x258)](_0x1c9a7f[_0x2024b6(0x224)]))return _0x1c9a7f[_0x2024b6(0x224)];if(_0x237c65[_0x2024b6(0x258)](_0x1c9a7f[_0x2024b6(0x221)]))return _0x1c9a7f[_0x2024b6(0x221)];if(_0x237c65['includes'](_0x1c9a7f[_0x2024b6(0x1c1)]))return _0x1c9a7f[_0x2024b6(0x1c1)];if(_0x237c65[_0x2024b6(0x258)](_0x1c9a7f[_0x2024b6(0x1b5)]))return _0x1c9a7f['SzvAM'];},getBrowserFromWSEndpoint=_0x99b28c=>{const _0x3e9b0f=a43_0x522d3b,_0x393a5d={'ajhiq':_0x3e9b0f(0x205),'uqrAD':function(_0x1d6129,_0xb2f9e4){return _0x1d6129(_0xb2f9e4);}};try{const _0x34665a=url[_0x3e9b0f(0x261)](_0x99b28c),_0x3d81f5=new URLSearchParams(_0x34665a[_0x3e9b0f(0x22d)]),_0x3dffd9=Object[_0x3e9b0f(0x1b4)](_0x3d81f5['entries']()),_0x22d377=JSON[_0x3e9b0f(0x261)](_0x3dffd9[_0x3e9b0f(0x253)]);if(_0x22d377&&(_0x22d377[_0x3e9b0f(0x217)]||_0x22d377[_0x3e9b0f(0x242)]))return _0x22d377[_0x3e9b0f(0x217)]||_0x22d377[_0x3e9b0f(0x242)];return _0x393a5d[_0x3e9b0f(0x203)];}catch(_0x49f944){_0x393a5d[_0x3e9b0f(0x1ea)](debug,_0x3e9b0f(0x1d0)+_0x49f944[_0x3e9b0f(0x1ee)]());}},getCloudProviderFromWsEndpoint=_0x23e275=>{const _0x50795f=a43_0x522d3b,_0x5bb50e={};_0x5bb50e[_0x50795f(0x25e)]=_0x50795f(0x1f8),_0x5bb50e[_0x50795f(0x1cf)]=_0x50795f(0x209),_0x5bb50e[_0x50795f(0x1fd)]='browserstack',_0x5bb50e['xdAlr']=_0x50795f(0x20b);const _0x70ed72=_0x5bb50e;if(_0x23e275[_0x50795f(0x258)](_0x70ed72[_0x50795f(0x25e)])||_0x23e275['includes'](_0x70ed72[_0x50795f(0x1cf)]))return _0x70ed72['RgIbB'];return _0x70ed72[_0x50795f(0x212)];},a43_0x35a0ca={};function a43_0x543d(_0x493d86,_0x3735c1){const _0x1495ce=a43_0x1495();return a43_0x543d=function(_0x543d6b,_0x3c78f3){_0x543d6b=_0x543d6b-0x1b2;let _0x3e0da0=_0x1495ce[_0x543d6b];return _0x3e0da0;},a43_0x543d(_0x493d86,_0x3735c1);}a43_0x35a0ca[a43_0x522d3b(0x231)]=undefined,a43_0x35a0ca[a43_0x522d3b(0x216)]=undefined,a43_0x35a0ca[a43_0x522d3b(0x217)]=undefined,a43_0x35a0ca[a43_0x522d3b(0x20a)]=undefined,a43_0x35a0ca[a43_0x522d3b(0x23a)]=undefined,a43_0x35a0ca[a43_0x522d3b(0x21a)]=undefined,a43_0x35a0ca['product']=undefined,a43_0x35a0ca[a43_0x522d3b(0x228)]={};class PlaywrightSessionDetails{static [a43_0x522d3b(0x236)]=a43_0x35a0ca;constructor(){const _0x13877a=a43_0x522d3b,_0x24e680={};_0x24e680[_0x13877a(0x206)]=_0x13877a(0x234);const _0x33f51a=_0x24e680;throw new Error(_0x33f51a[_0x13877a(0x206)]);}static [a43_0x522d3b(0x21e)]=null;static[a43_0x522d3b(0x23e)](_0x1f486e,_0x5da241,_0x469903=null){const _0x3f0085=a43_0x522d3b,_0x253a7a={'iomca':function(_0x28a9e3,_0x14138e){return _0x28a9e3===_0x14138e;},'fRrAl':'function','Ktfqv':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','fhGZe':function(_0x23cbb1,_0x1431df){return _0x23cbb1===_0x1431df;},'SYlOQ':_0x3f0085(0x1c8),'ofXAm':'local_grid','LjQmF':function(_0x2896c0,_0x7166d7,_0x4e2864){return _0x2896c0(_0x7166d7,_0x4e2864);},'ivKFn':_0x3f0085(0x1f5),'hHfEM':_0x3f0085(0x246),'puRZW':_0x3f0085(0x256),'cnNbd':'use','WhnAQ':'connectOptions','VPiDS':function(_0x18c84a,_0x5cc702){return _0x18c84a(_0x5cc702);},'ABRdA':_0x3f0085(0x240),'aNZhx':_0x3f0085(0x1e7),'kinNr':_0x3f0085(0x254),'Dtcby':function(_0x4d6543,_0x4a6f9a){return _0x4d6543(_0x4a6f9a);},'tiINM':function(_0x15f541,_0x57f4f0){return _0x15f541+_0x57f4f0;},'udqeY':_0x3f0085(0x25a),'GdAMY':function(_0x2673ee){return _0x2673ee();},'deled':function(_0x4c55e7,_0x2e56f8,_0x1ebe4e){return _0x4c55e7(_0x2e56f8,_0x1ebe4e);},'PPCcU':_0x3f0085(0x23e)},_0x321b0f=this;return _0x253a7a[_0x3f0085(0x211)](o11yErrorHandler,async function _0x568013(_0x31e57c,_0x494677,_0x7417fa=null){const _0x1ee8c2=_0x3f0085;let _0x10af91=_0x31e57c[_0x1ee8c2(0x1be)],_0x25d65f=null;_0x31e57c&&_0x253a7a[_0x1ee8c2(0x1f4)](typeof _0x31e57c[_0x1ee8c2(0x1bf)],_0x253a7a[_0x1ee8c2(0x1d9)])?_0x25d65f=_0x31e57c[_0x1ee8c2(0x1bf)]():logger[_0x1ee8c2(0x262)](_0x253a7a[_0x1ee8c2(0x1fb)]);let _0xdcc96e=null;_0x31e57c&&_0x253a7a['fhGZe'](typeof _0x31e57c['model'],_0x253a7a[_0x1ee8c2(0x1d9)])?_0xdcc96e=_0x31e57c[_0x1ee8c2(0x223)]():logger[_0x1ee8c2(0x262)](_0x253a7a[_0x1ee8c2(0x20c)]);let _0xffc6a4=null,_0x18a86b=null,_0x2ab6f1=null,_0x38dece=_0x253a7a[_0x1ee8c2(0x21b)];if(_0x31e57c[_0x1ee8c2(0x24d)][_0x1ee8c2(0x232)]()||global[_0x1ee8c2(0x248)]){let _0x53d56e=null;_0x253a7a['LjQmF'](nestedKeyValue,_0x31e57c,[_0x253a7a[_0x1ee8c2(0x1cd)],_0x253a7a[_0x1ee8c2(0x220)]])?_0x53d56e=_0x31e57c[_0x1ee8c2(0x1f5)][_0x1ee8c2(0x246)]:_0x53d56e=_0x253a7a['LjQmF'](nestedKeyValue,_0x494677,[_0x253a7a[_0x1ee8c2(0x215)],_0x253a7a[_0x1ee8c2(0x255)],_0x253a7a[_0x1ee8c2(0x21d)]]);const _0xbabc69=_0x7417fa||_0x53d56e&&_0x53d56e[_0x1ee8c2(0x1ba)];_0xbabc69&&(_0x38dece=_0x253a7a[_0x1ee8c2(0x229)](getCloudProviderFromWsEndpoint,_0xbabc69),_0x253a7a[_0x1ee8c2(0x22b)](_0x38dece,_0x253a7a[_0x1ee8c2(0x225)])&&(_0x2ab6f1=constants[_0x1ee8c2(0x24b)][_0x1ee8c2(0x218)](_0xbabc69)?_0x253a7a[_0x1ee8c2(0x20d)]:_0x253a7a[_0x1ee8c2(0x227)],_0x10af91=_0x253a7a['VPiDS'](getBrowserFromWSEndpoint,_0xbabc69)||_0x10af91,_0xffc6a4=_0x321b0f[_0x1ee8c2(0x236)][_0x1ee8c2(0x23a)],_0x18a86b=_0x321b0f[_0x1ee8c2(0x236)][_0x1ee8c2(0x21a)]));}else{_0x494677&&_0x494677['project'][_0x1ee8c2(0x1dd)]['channel']?_0x10af91=_0x253a7a[_0x1ee8c2(0x241)](getBrowserNameFromChannel,_0x494677[_0x1ee8c2(0x256)][_0x1ee8c2(0x1dd)][_0x1ee8c2(0x1f9)]):_0x10af91=_0x253a7a[_0x1ee8c2(0x1b6)](_0x253a7a[_0x1ee8c2(0x22f)],_0x10af91[_0x1ee8c2(0x1ff)]());const _0x440e39=await _0x253a7a[_0x1ee8c2(0x204)](getPlatformDetails);_0xffc6a4=_0x440e39['platformName'],_0x18a86b=_0x440e39[_0x1ee8c2(0x25b)];}const _0x36e692={};_0x36e692[_0x1ee8c2(0x217)]=_0x10af91,_0x36e692[_0x1ee8c2(0x20a)]=_0x25d65f,_0x36e692[_0x1ee8c2(0x228)]={},_0x36e692[_0x1ee8c2(0x23a)]=_0xffc6a4,_0x36e692[_0x1ee8c2(0x21a)]=_0x18a86b,_0x36e692[_0x1ee8c2(0x1d7)]=_0x2ab6f1;const _0x4cff21=_0x36e692;_0xdcc96e&&(_0x4cff21[_0x1ee8c2(0x228)][_0x1ee8c2(0x230)]=_0xdcc96e);const _0x6dadd0={};_0x6dadd0[_0x1ee8c2(0x231)]=_0x38dece,_0x321b0f[_0x1ee8c2(0x236)]=Object[_0x1ee8c2(0x1d4)]({},_0x321b0f[_0x1ee8c2(0x236)],_0x6dadd0,_0x4cff21);},_0x253a7a[_0x3f0085(0x22e)])(_0x1f486e,_0x5da241,_0x469903);}static['patch'](){const _0x217648=a43_0x522d3b;this[_0x217648(0x245)](),this['patchCRConnection']();}static[a43_0x522d3b(0x245)](){const _0x21314b=a43_0x522d3b,_0x40ca99={'sIJYH':function(_0x2257a7,_0x4ca33d,_0x11592b){return _0x2257a7(_0x4ca33d,_0x11592b);},'qxryN':_0x21314b(0x24c),'VauyZ':_0x21314b(0x1bc),'EjtmY':_0x21314b(0x247),'HlJKY':function(_0x2c4632,_0x59a126,_0x473ecf){return _0x2c4632(_0x59a126,_0x473ecf);},'BDSXn':_0x21314b(0x1d6),'gtewO':_0x21314b(0x1dc),'RIooe':function(_0xdfa14c,_0x280013){return _0xdfa14c===_0x280013;},'iqNlS':_0x21314b(0x260),'WcbNg':function(_0x4b3871,_0x465783,_0xd67493,_0x5a669f){return _0x4b3871(_0x465783,_0xd67493,_0x5a669f);},'iqGIM':function(_0x4f7252,_0x4ca5ec){return _0x4f7252(_0x4ca5ec);},'AbgXP':_0x21314b(0x23b),'BNnvN':_0x21314b(0x25c),'wruNo':_0x21314b(0x22c),'UMHBQ':'Not\x20able\x20to\x20import\x20Connection','hWamd':function(_0x18d06a,_0x3810a3){return _0x18d06a!=_0x3810a3;},'bMycE':function(_0x4cc685){return _0x4cc685();},'DLpXZ':_0x21314b(0x1e3),'JjFWb':function(_0x178a37,_0x57d308){return _0x178a37(_0x57d308);},'BfPlf':'dispatch'},_0x2fef71=this;if(!this['Connection'])try{const _0x45e336=path[_0x21314b(0x21c)](_0x40ca99['AbgXP'],_0x40ca99['BNnvN'],_0x40ca99[_0x21314b(0x25f)]),_0x418b70=_0x40ca99['iqGIM'](importFileFromPWCore,_0x45e336);!_0x418b70?_0x40ca99['iqGIM'](debug,_0x40ca99['UMHBQ']):this[_0x21314b(0x1fe)]=_0x418b70[_0x21314b(0x1fe)];}catch(_0x44fd12){_0x40ca99[_0x21314b(0x1b7)](debug,'Error\x20in\x20importing\x20connection\x20'+_0x44fd12[_0x21314b(0x1ee)]());}const _0xfd0bde=this[_0x21314b(0x1fe)];try{if(_0x40ca99[_0x21314b(0x1ce)](_0xfd0bde,null)){const _0x472ca7=_0xfd0bde[_0x21314b(0x239)]['dispatch'],_0x3b2b28=_0xfd0bde['prototype'][_0x21314b(0x1e3)];_0x40ca99[_0x21314b(0x1df)](isAccessibilityAutomationSession)&&Object[_0x21314b(0x25d)](_0xfd0bde['prototype'],_0x40ca99[_0x21314b(0x1d1)],{'get':function(){return async function(){const _0x4a3ca6=a43_0x543d;try{if(!global[_0x4a3ca6(0x1eb)]&&global[_0x4a3ca6(0x248)]&&_0x40ca99[_0x4a3ca6(0x257)](nestedKeyValue,global[_0x4a3ca6(0x1d6)],[_0x40ca99[_0x4a3ca6(0x1cb)],_0x40ca99[_0x4a3ca6(0x1d2)],_0x40ca99[_0x4a3ca6(0x213)]])&&_0x40ca99[_0x4a3ca6(0x207)](shouldScanTestForAccessibility,global[_0x4a3ca6(0x1d6)]['currentTest'][_0x4a3ca6(0x1bc)][_0x4a3ca6(0x247)],!![])&&scripts[_0x4a3ca6(0x252)](arguments[0x1])){logger[_0x4a3ca6(0x262)]('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x4a3ca6(0x1eb)]=!![];const _0x50be33=_0x40ca99[_0x4a3ca6(0x207)](nestedKeyValue,global,[_0x40ca99[_0x4a3ca6(0x24a)],_0x40ca99[_0x4a3ca6(0x1da)]]),_0x74c882={};_0x74c882['method']=arguments[0x1],_0x50be33&&logger[_0x4a3ca6(0x262)](util[_0x4a3ca6(0x1c7)](await AccessibilityHelper[_0x4a3ca6(0x1b8)](_0x50be33,_0x74c882)));if(_0x40ca99[_0x4a3ca6(0x23d)](arguments[0x0][_0x4a3ca6(0x22a)],_0x40ca99[_0x4a3ca6(0x243)])&&global['__driver']){const _0x537173={};_0x537173[_0x4a3ca6(0x20e)]=arguments[0x1],await _0x40ca99[_0x4a3ca6(0x238)](browserStackExecuteDriver,global[_0x4a3ca6(0x1fa)],scripts[_0x4a3ca6(0x1b8)],_0x537173);}}}catch(_0x33e163){logger[_0x4a3ca6(0x262)](_0x4a3ca6(0x201)+util[_0x4a3ca6(0x1c7)](_0x33e163));}return global['bstackPerformA11yScan']=![],_0x3b2b28['apply'](this,arguments);};}}),!_0x40ca99[_0x21314b(0x214)](isFalse,process[_0x21314b(0x1c2)][_0x21314b(0x219)])&&Object[_0x21314b(0x25d)](_0xfd0bde[_0x21314b(0x239)],_0x40ca99['BfPlf'],{'get':function(){const _0x5a9367={'AMTym':function(_0x3f0af0,_0x3e65e6){const _0x1d6034=a43_0x543d;return _0x40ca99[_0x1d6034(0x1b7)](_0x3f0af0,_0x3e65e6);},'lgnCc':function(_0x5015b3,_0x283ff9){const _0x5f1773=a43_0x543d;return _0x40ca99[_0x5f1773(0x1b7)](_0x5015b3,_0x283ff9);}};return function _0x3936b7(_0x4dbcd7){const _0x24c417=a43_0x543d,_0x58ce27=_0x4dbcd7&&_0x4dbcd7[_0x24c417(0x1f3)]&&_0x4dbcd7[_0x24c417(0x1f3)][_0x24c417(0x1ef)];if(_0x58ce27){const _0x2fb4ce=_0x58ce27[_0x24c417(0x259)],_0x4ea783=_0x58ce27[_0x24c417(0x233)];_0x4ea783&&(_0x5a9367[_0x24c417(0x222)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x4ea783[_0x24c417(0x1ee)]()),_0x2fef71[_0x24c417(0x236)][_0x24c417(0x23a)]=_0x4ea783[_0x24c417(0x1d5)],_0x2fef71[_0x24c417(0x236)]['platform_version']=_0x4ea783['platformVersion']),_0x2fb4ce&&(_0x5a9367[_0x24c417(0x23c)](debug,_0x24c417(0x23f)+_0x2fb4ce),_0x2fef71[_0x24c417(0x236)]['bsSessionId']=_0x2fb4ce);}return _0x472ca7[_0x24c417(0x202)](this,arguments);};}});}}catch(_0x37dbfc){_0x40ca99[_0x21314b(0x214)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x37dbfc),_0x2fef71[_0x21314b(0x21e)]=_0x37dbfc[_0x21314b(0x1ee)]();}}static[a43_0x522d3b(0x250)](){const _0x999cc3=a43_0x522d3b,_0x11a398={'UokqV':function(_0x5a9efa,_0x44b67a){return _0x5a9efa(_0x44b67a);},'KQUYR':function(_0x280a6f,_0x179c2e){return _0x280a6f(_0x179c2e);},'zcvMR':function(_0x28bc98){return _0x28bc98();},'MSKUR':_0x999cc3(0x23b),'gwOtf':_0x999cc3(0x20f),'guNhp':_0x999cc3(0x1ec),'HhJtr':_0x999cc3(0x1db),'doGcy':function(_0x15c53d,_0x32928c){return _0x15c53d(_0x32928c);},'UFatG':_0x999cc3(0x210),'RrlYz':_0x999cc3(0x200),'Iravy':function(_0x357f64,_0x3d1465){return _0x357f64!=_0x3d1465;},'rESjC':_0x999cc3(0x1e1)},_0x212f3f=this;if(_0x11a398[_0x999cc3(0x1cc)](isAccessibilityAutomationSession)){let _0x12eac9=null;try{const _0x3168b4=path[_0x999cc3(0x21c)](_0x11a398[_0x999cc3(0x1bb)],_0x11a398[_0x999cc3(0x1e8)],_0x11a398[_0x999cc3(0x1c4)],_0x11a398[_0x999cc3(0x1c6)]),_0x1086f2=_0x11a398[_0x999cc3(0x1e6)](importFileFromPWCore,_0x3168b4);!_0x1086f2?_0x11a398['doGcy'](debug,_0x11a398[_0x999cc3(0x1ed)]):_0x12eac9=_0x1086f2['CRConnection'];}catch(_0x3231c9){_0x11a398[_0x999cc3(0x226)](debug,_0x11a398[_0x999cc3(0x1f6)]);}try{if(_0x11a398[_0x999cc3(0x237)](_0x12eac9,null)){const _0x42b045=_0x12eac9['prototype'][_0x999cc3(0x1e1)];Object[_0x999cc3(0x25d)](_0x12eac9[_0x999cc3(0x239)],_0x11a398['rESjC'],{'get':function(){const _0xdb5ce={'LhMlw':function(_0x45e4dc,_0x27b280){return _0x11a398['UokqV'](_0x45e4dc,_0x27b280);},'cbYly':function(_0x28606c,_0x9b2962){const _0x112098=a43_0x543d;return _0x11a398[_0x112098(0x1e5)](_0x28606c,_0x9b2962);}};return function _0x399848(_0x2773ee){const _0x2f9b1b=a43_0x543d;try{const _0x4cc5dd=_0x2773ee['bStackParams'];if(_0x4cc5dd){delete _0x2773ee['bStackParams'];const _0x338476=_0x4cc5dd[_0x2f9b1b(0x259)],_0x45e923=_0x4cc5dd[_0x2f9b1b(0x233)];_0x45e923&&(_0xdb5ce[_0x2f9b1b(0x1b9)](debug,_0x2f9b1b(0x1c3)+_0x45e923['toString']()),_0x212f3f[_0x2f9b1b(0x236)][_0x2f9b1b(0x23a)]=_0x45e923[_0x2f9b1b(0x1d5)],_0x212f3f[_0x2f9b1b(0x236)][_0x2f9b1b(0x21a)]=_0x45e923[_0x2f9b1b(0x25b)]),_0x338476&&(_0xdb5ce[_0x2f9b1b(0x1d3)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x338476),_0x212f3f[_0x2f9b1b(0x236)][_0x2f9b1b(0x216)]=_0x338476);}}catch(_0x5922ad){_0xdb5ce['LhMlw'](debug,_0x2f9b1b(0x1e0)+_0x5922ad['toString']());}return _0x42b045[_0x2f9b1b(0x202)](this,arguments);};}});}}catch(_0x47d035){_0x11a398['doGcy'](debug,_0x999cc3(0x244)+_0x47d035),_0x212f3f[_0x999cc3(0x21e)]=_0x47d035[_0x999cc3(0x1ee)]();}}}static[a43_0x522d3b(0x1de)](){const _0x34a97d=a43_0x522d3b;return this[_0x34a97d(0x236)];}}module[a43_0x522d3b(0x235)]=PlaywrightSessionDetails;function a43_0x1495(){const _0x9d58a5=['format','Device\x20Model\x20is\x20not\x20available','./accessibility-helper','1310652yDCEOu','qxryN','zcvMR','ivKFn','hWamd','zNWvY','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','DLpXZ','VauyZ','cbYly','assign','platformName','__workerDetails','product','../../helpers/accessibility-automation/scripts','fRrAl','gtewO','crConnection.js','pwPage','use','getDetails','bMycE','Error\x20in\x20finding\x20platform\x20details\x20','_onMessage','safari','sendMessageToServer','../../bin/playwright/accessibility-helper','KQUYR','UokqV','turboscale','gwOtf','15BPZrgD','uqrAD','bstackPerformA11yScan','chromium','UFatG','toString','bsParams','util','../../helpers/test-observability/utils','edge','params','iomca','_browserType','RrlYz','51143qZqzQl','browserstack.com','channel','__driver','Ktfqv','../../helpers/test-observability/error-handler','RgIbB','Connection','toLowerCase','Error\x20in\x20importing\x20crConnection','Failed\x20to\x20perform\x20scan\x20','apply','ajhiq','GdAMY','chrome','asgGZ','HlJKY','6iFUhZJ','browserstack-ats.com','browser_version','unknown_grid','SYlOQ','aNZhx','method','server','Not\x20able\x20to\x20import\x20crConnection','deled','xdAlr','EjtmY','JjFWb','puRZW','bsSessionId','browser','test','BROWSERSTACK_TEST_OBSERVABILITY','platform_version','ofXAm','join','WhnAQ','sessionError','winstonLogger','hHfEM','wlFAw','AMTym','model','Svaew','ABRdA','doGcy','kinNr','capabilities','VPiDS','_type','fhGZe','connection.js','query','PPCcU','udqeY','deviceModel','cloudProvider','isRemote','platformDetails','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','exports','currentSessionDetails','Iravy','WcbNg','prototype','platform','lib','lgnCc','RIooe','setupBrowserDetails','Setting\x20session\x20id\x20received\x20from\x20BS\x20','browserstack','Dtcby','browserName','iqNlS','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','patchConnection','_defaultConnectOptions','titlePath','accessibilityPlatform','firefox','BDSXn','ATS_WSS_URL_REGEX','currentTest','_connection','340164QZvOlW','43114OFIFnf','patchCRConnection','2254248xpSCLz','shouldWrapCommand','caps','automate','cnNbd','project','sIJYH','includes','sessionId','playwright-','platformVersion','client','defineProperty','ZuPpp','wruNo','Page','parse','debug','../../helpers/accessibility-automation/helper','151608qlHLZy','fromEntries','SzvAM','tiINM','iqGIM','performScan','LhMlw','wsEndpoint','MSKUR','testInfo','../utils/constants','_name','version','1450730uxYAAA','XAsEN','env','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','guNhp','../../helpers/logger','HhJtr'];a43_0x1495=function(){return _0x9d58a5;};return a43_0x1495();}
1
+ function a43_0x1f14(_0x1cbc7d,_0x47d950){const _0x155800=a43_0x1558();return a43_0x1f14=function(_0x1f14eb,_0x545d7d){_0x1f14eb=_0x1f14eb-0x1c1;let _0xf3b5f9=_0x155800[_0x1f14eb];return _0xf3b5f9;},a43_0x1f14(_0x1cbc7d,_0x47d950);}function a43_0x1558(){const _0x1dcdba=['Not\x20able\x20to\x20import\x20crConnection','url','version','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','../utils/constants','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','browserstack','project','playwright-','lVMiZ','query','platformVersion','Error\x20in\x20importing\x20crConnection','nPESq','bstackPerformA11yScan','CHyob','_name','BjjVR','bsSessionId','platformName','sessionError','lPneG','includes','method','turboscale','tQTtU','winstonLogger','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','../../helpers/accessibility-automation/scripts','_connection','uwPhG','connection.js','automate','platformDetails','HZxtc','gjtme','Page','CtCUC','apply','chrome','parse','params','channel','browser_version','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','Device\x20Model\x20is\x20not\x20available','use','capabilities','BBVDS','11cddpPz','6237240SCHDmd','fromEntries','iXRWO','_onMessage','iEsIi','wxqzA','AUZzV','jajPe','platform_version','3570328BXRZes','currentSessionDetails','WQLBT','getDetails','ORrSF','ZLgrC','hMirD','BbbaO','cloudProvider','mezBO','debug','4669343BcLmee','defineProperty','browser','ubMnr','local_grid','unknown_grid','model','fJmkH','xfhVh','pOMXc','test','browserstack-ats.com','GtFcT','HYXWm','bStackParams','usINK','gxRtY','server','browserstack.com','isRemote','PStoC','dNpHM','8kwfAjK','toString','patchCRConnection','../../helpers/accessibility-automation/helper','hXbdu','connectOptions','nDfHG','KZeLF','sendMessageToServer','SHGXk','product','2087700AhgoXm','prototype','deviceModel','browserName','Performing\x20scan\x20for\x20','HwjbO','XVjxH','currentTest','WwDUQ','_browserType','exports','AfYxH','HApwK','ATS_WSS_URL_REGEX','6EwrXSK','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','CRConnection','testInfo','_defaultConnectOptions','90582DuWWDI','__workerDetails','crConnection.js','titlePath','kNGsj','client','bmuge','12bOdXyZ','XRrmb','Error\x20in\x20importing\x20connection\x20','MdGKM','udWnw','setupBrowserDetails','IrJac','accessibilityPlatform','__driver','wZMWp','Failed\x20to\x20perform\x20scan\x20','WnKkQ','sessionId','HUnVo','tlFpn','edge','Connection','patchConnection','Not\x20able\x20to\x20import\x20Connection','2221745xOpeFs','Setting\x20session\x20id\x20received\x20from\x20BS\x20','caps','dispatch','TeWry','EpyyV','format','BNXnL','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','lib','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Error\x20in\x20finding\x20platform\x20details\x20','util','assign','join','zXghK','BROWSERSTACK_TEST_OBSERVABILITY','RNgEs','wsEndpoint','pwPage','IqHAK','iuXry','performScan','env','KviNs','shouldWrapCommand','bRHHE','UxXmR','../../helpers/test-observability/utils','921906QQcMEe','platform'];a43_0x1558=function(){return _0x1dcdba;};return a43_0x1558();}const a43_0x300aa1=a43_0x1f14;(function(_0x4b9a8a,_0x157184){const _0x4cc754=a43_0x1f14,_0x4d9462=_0x4b9a8a();while(!![]){try{const _0x10ea92=parseInt(_0x4cc754(0x258))/0x1*(-parseInt(_0x4cc754(0x25d))/0x2)+parseInt(_0x4cc754(0x24a))/0x3+parseInt(_0x4cc754(0x21e))/0x4+-parseInt(_0x4cc754(0x1c4))/0x5*(parseInt(_0x4cc754(0x264))/0x6)+parseInt(_0x4cc754(0x229))/0x7*(-parseInt(_0x4cc754(0x23f))/0x8)+parseInt(_0x4cc754(0x1e1))/0x9+-parseInt(_0x4cc754(0x215))/0xa*(-parseInt(_0x4cc754(0x214))/0xb);if(_0x10ea92===_0x157184)break;else _0x4d9462['push'](_0x4d9462['shift']());}catch(_0x574f00){_0x4d9462['push'](_0x4d9462['shift']());}}}(a43_0x1558,0x76eeb));const path=require('path'),url=require(a43_0x300aa1(0x1e4)),util=require(a43_0x300aa1(0x1d0)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a43_0x300aa1(0x1e0)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a43_0x300aa1(0x242)),logger=require('../../helpers/logger')[a43_0x300aa1(0x1fd)],scripts=require(a43_0x300aa1(0x1ff)),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require('./accessibility-helper'),constants=require(a43_0x300aa1(0x1e7)),getBrowserNameFromChannel=_0x4f7b46=>{const _0x4fafe7=a43_0x300aa1,_0x7b05ab={};_0x7b05ab[_0x4fafe7(0x239)]='chrome',_0x7b05ab[_0x4fafe7(0x208)]=_0x4fafe7(0x273),_0x7b05ab['wZMWp']='firefox',_0x7b05ab[_0x4fafe7(0x1ec)]='safari';const _0x29bab2=_0x7b05ab;if(_0x4f7b46['includes'](_0x29bab2[_0x4fafe7(0x239)]))return _0x29bab2[_0x4fafe7(0x239)];if(_0x4f7b46[_0x4fafe7(0x1f9)](_0x29bab2[_0x4fafe7(0x208)]))return _0x29bab2[_0x4fafe7(0x208)];if(_0x4f7b46[_0x4fafe7(0x1f9)](_0x29bab2[_0x4fafe7(0x26d)]))return _0x29bab2[_0x4fafe7(0x26d)];if(_0x4f7b46[_0x4fafe7(0x1f9)](_0x29bab2['lVMiZ']))return _0x29bab2[_0x4fafe7(0x1ec)];},getBrowserFromWSEndpoint=_0x212466=>{const _0x9db732=a43_0x300aa1,_0x182461={'HZxtc':_0x9db732(0x20a),'dNpHM':function(_0x489dab,_0x3f5b00){return _0x489dab(_0x3f5b00);}};try{const _0x2dac19=url[_0x9db732(0x20b)](_0x212466),_0x254175=new URLSearchParams(_0x2dac19[_0x9db732(0x1ed)]),_0x26bee1=Object[_0x9db732(0x216)](_0x254175['entries']()),_0x13d91a=JSON[_0x9db732(0x20b)](_0x26bee1[_0x9db732(0x1c6)]);if(_0x13d91a&&(_0x13d91a['browser']||_0x13d91a[_0x9db732(0x24d)]))return _0x13d91a[_0x9db732(0x22b)]||_0x13d91a['browserName'];return _0x182461[_0x9db732(0x205)];}catch(_0xa3f0df){_0x182461[_0x9db732(0x23e)](debug,_0x9db732(0x1fe)+_0xa3f0df['toString']());}},getCloudProviderFromWsEndpoint=_0xdac01e=>{const _0x116fc8=a43_0x300aa1,_0x3d1ac1={};_0x3d1ac1[_0x116fc8(0x219)]=_0x116fc8(0x23b),_0x3d1ac1['zXghK']=_0x116fc8(0x234),_0x3d1ac1['WwDUQ']=_0x116fc8(0x1e9),_0x3d1ac1[_0x116fc8(0x245)]=_0x116fc8(0x22e);const _0x109439=_0x3d1ac1;if(_0xdac01e['includes'](_0x109439[_0x116fc8(0x219)])||_0xdac01e['includes'](_0x109439[_0x116fc8(0x1d3)]))return _0x109439[_0x116fc8(0x252)];return _0x109439[_0x116fc8(0x245)];},a43_0x2ce54e={};a43_0x2ce54e[a43_0x300aa1(0x226)]=undefined,a43_0x2ce54e[a43_0x300aa1(0x1f5)]=undefined,a43_0x2ce54e[a43_0x300aa1(0x22b)]=undefined,a43_0x2ce54e['browser_version']=undefined,a43_0x2ce54e[a43_0x300aa1(0x1e2)]=undefined,a43_0x2ce54e[a43_0x300aa1(0x21d)]=undefined,a43_0x2ce54e[a43_0x300aa1(0x249)]=undefined,a43_0x2ce54e[a43_0x300aa1(0x212)]={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a43_0x2ce54e;constructor(){const _0x323696=a43_0x300aa1,_0x5440be={};_0x5440be[_0x323696(0x1d5)]=_0x323696(0x1e8);const _0x4e1d65=_0x5440be;throw new Error(_0x4e1d65[_0x323696(0x1d5)]);}static [a43_0x300aa1(0x1f7)]=null;static['setupBrowserDetails'](_0x1ed692,_0x26c592,_0x4e5249=null){const _0x3e7ebe=a43_0x300aa1,_0x50d132={'pOMXc':function(_0x502ee2,_0x36815b){return _0x502ee2===_0x36815b;},'IrJac':'function','iuXry':_0x3e7ebe(0x1ce),'mezBO':function(_0x215283,_0xc56e69){return _0x215283===_0xc56e69;},'GtFcT':_0x3e7ebe(0x210),'bmobS':_0x3e7ebe(0x22d),'tQTtU':function(_0x5c1c72,_0x595c91,_0x1e202c){return _0x5c1c72(_0x595c91,_0x1e202c);},'RNTmV':'_browserType','WnKkQ':_0x3e7ebe(0x25c),'jajPe':_0x3e7ebe(0x1ea),'hXbdu':_0x3e7ebe(0x211),'ONabk':_0x3e7ebe(0x244),'fJmkH':function(_0x1e88f0,_0x384576){return _0x1e88f0(_0x384576);},'BbbaO':function(_0x1a293c,_0x12f7ca){return _0x1a293c===_0x12f7ca;},'UxXmR':_0x3e7ebe(0x1e9),'CHyob':_0x3e7ebe(0x1fb),'BNXnL':_0x3e7ebe(0x203),'XVjxH':function(_0x2fbdcc,_0x39dc80){return _0x2fbdcc(_0x39dc80);},'xfhVh':function(_0x22aaaf,_0x33fc81){return _0x22aaaf+_0x33fc81;},'PStoC':_0x3e7ebe(0x1eb),'Stuev':function(_0x4c355c){return _0x4c355c();},'udWnw':function(_0x590617,_0x5b22f0,_0x2df795){return _0x590617(_0x5b22f0,_0x2df795);},'HUnVo':_0x3e7ebe(0x269)},_0x1f85e9=this;return _0x50d132[_0x3e7ebe(0x268)](o11yErrorHandler,async function _0x1d1363(_0x58f04c,_0x2f5adf,_0x3b0927=null){const _0x32af65=_0x3e7ebe;let _0x2b224a=_0x58f04c[_0x32af65(0x1f3)],_0x409851=null;_0x58f04c&&_0x50d132[_0x32af65(0x232)](typeof _0x58f04c[_0x32af65(0x1e5)],_0x50d132[_0x32af65(0x26a)])?_0x409851=_0x58f04c[_0x32af65(0x1e5)]():logger[_0x32af65(0x228)](_0x50d132[_0x32af65(0x1d9)]);let _0x27ac84=null;_0x58f04c&&_0x50d132[_0x32af65(0x227)](typeof _0x58f04c[_0x32af65(0x22f)],_0x50d132[_0x32af65(0x26a)])?_0x27ac84=_0x58f04c[_0x32af65(0x22f)]():logger[_0x32af65(0x228)](_0x50d132[_0x32af65(0x235)]);let _0x4d6ea8=null,_0x4bc450=null,_0x4cf128=null,_0x3e443d=_0x50d132['bmobS'];if(_0x58f04c[_0x32af65(0x200)][_0x32af65(0x23c)]()||global[_0x32af65(0x26b)]){let _0xc2defe=null;_0x50d132['tQTtU'](nestedKeyValue,_0x58f04c,[_0x50d132['RNTmV'],_0x50d132[_0x32af65(0x26f)]])?_0xc2defe=_0x58f04c[_0x32af65(0x253)]['_defaultConnectOptions']:_0xc2defe=_0x50d132[_0x32af65(0x1fc)](nestedKeyValue,_0x2f5adf,[_0x50d132[_0x32af65(0x21c)],_0x50d132[_0x32af65(0x243)],_0x50d132['ONabk']]);const _0x4a001e=_0x3b0927||_0xc2defe&&_0xc2defe[_0x32af65(0x1d6)];_0x4a001e&&(_0x3e443d=_0x50d132[_0x32af65(0x230)](getCloudProviderFromWsEndpoint,_0x4a001e),_0x50d132[_0x32af65(0x225)](_0x3e443d,_0x50d132[_0x32af65(0x1df)])&&(_0x4cf128=constants[_0x32af65(0x257)][_0x32af65(0x233)](_0x4a001e)?_0x50d132[_0x32af65(0x1f2)]:_0x50d132[_0x32af65(0x1cb)],_0x2b224a=_0x50d132['fJmkH'](getBrowserFromWSEndpoint,_0x4a001e)||_0x2b224a,_0x4d6ea8=_0x1f85e9[_0x32af65(0x21f)]['platform'],_0x4bc450=_0x1f85e9[_0x32af65(0x21f)][_0x32af65(0x21d)]));}else{_0x2f5adf&&_0x2f5adf[_0x32af65(0x1ea)][_0x32af65(0x211)][_0x32af65(0x20d)]?_0x2b224a=_0x50d132[_0x32af65(0x250)](getBrowserNameFromChannel,_0x2f5adf[_0x32af65(0x1ea)][_0x32af65(0x211)][_0x32af65(0x20d)]):_0x2b224a=_0x50d132[_0x32af65(0x231)](_0x50d132[_0x32af65(0x23d)],_0x2b224a['toLowerCase']());const _0x16ae90=await _0x50d132['Stuev'](getPlatformDetails);_0x4d6ea8=_0x16ae90['platformName'],_0x4bc450=_0x16ae90[_0x32af65(0x1ee)];}const _0x599e01={};_0x599e01['browser']=_0x2b224a,_0x599e01[_0x32af65(0x20e)]=_0x409851,_0x599e01[_0x32af65(0x212)]={},_0x599e01[_0x32af65(0x1e2)]=_0x4d6ea8,_0x599e01[_0x32af65(0x21d)]=_0x4bc450,_0x599e01[_0x32af65(0x249)]=_0x4cf128;const _0x5805f6=_0x599e01;_0x27ac84&&(_0x5805f6['capabilities'][_0x32af65(0x24c)]=_0x27ac84);const _0x55a21d={};_0x55a21d[_0x32af65(0x226)]=_0x3e443d,_0x1f85e9[_0x32af65(0x21f)]=Object[_0x32af65(0x1d1)]({},_0x1f85e9['currentSessionDetails'],_0x55a21d,_0x5805f6);},_0x50d132[_0x3e7ebe(0x271)])(_0x1ed692,_0x26c592,_0x4e5249);}static['patch'](){const _0x2d4cb4=a43_0x300aa1;this[_0x2d4cb4(0x1c2)](),this[_0x2d4cb4(0x241)]();}static[a43_0x300aa1(0x1c2)](){const _0xef067e=a43_0x300aa1,_0x1960dc={'IqHAK':function(_0x215387,_0xb8f802,_0x406a6e){return _0x215387(_0xb8f802,_0x406a6e);},'HApwK':_0xef067e(0x251),'AUZzV':_0xef067e(0x25b),'uwPhG':_0xef067e(0x260),'iXRWO':function(_0x5b6745,_0x347e3e,_0x2640b0){return _0x5b6745(_0x347e3e,_0x2640b0);},'EpyyV':_0xef067e(0x25e),'ORrSF':_0xef067e(0x1d7),'cnNVc':function(_0x569c81,_0x255f2a){return _0x569c81===_0x255f2a;},'bmuge':_0xef067e(0x207),'hMirD':function(_0x3d92d8,_0x5f3fc6,_0x38cfda,_0x184e6e){return _0x3d92d8(_0x5f3fc6,_0x38cfda,_0x184e6e);},'bRHHE':function(_0x35ce99,_0xdcabef){return _0x35ce99(_0xdcabef);},'BBVDS':function(_0xc8181,_0x41dc32){return _0xc8181(_0x41dc32);},'kNGsj':_0xef067e(0x1cd),'usINK':_0xef067e(0x262),'pKeMe':_0xef067e(0x202),'tlFpn':function(_0x97c7e0,_0x577dea){return _0x97c7e0(_0x577dea);},'MdGKM':_0xef067e(0x1c3),'gjtme':function(_0x4fc967,_0xd53f23){return _0x4fc967(_0xd53f23);},'nOupo':function(_0x305287,_0x105a90){return _0x305287!=_0x105a90;},'lPneG':function(_0x570548){return _0x570548();},'ubMnr':_0xef067e(0x247),'RkhkK':function(_0x1c9292,_0x5211fd){return _0x1c9292(_0x5211fd);},'AfYxH':_0xef067e(0x1c7)},_0x46df08=this;if(!this[_0xef067e(0x1c1)])try{const _0x17feb2=path[_0xef067e(0x1d2)](_0x1960dc[_0xef067e(0x261)],_0x1960dc[_0xef067e(0x238)],_0x1960dc['pKeMe']),_0x188d82=_0x1960dc[_0xef067e(0x1de)](importFileFromPWCore,_0x17feb2);!_0x188d82?_0x1960dc[_0xef067e(0x272)](debug,_0x1960dc[_0xef067e(0x267)]):this[_0xef067e(0x1c1)]=_0x188d82[_0xef067e(0x1c1)];}catch(_0x57cd4b){_0x1960dc[_0xef067e(0x206)](debug,_0xef067e(0x266)+_0x57cd4b[_0xef067e(0x240)]());}const _0x27bb69=this['Connection'];try{if(_0x1960dc['nOupo'](_0x27bb69,null)){const _0x4d1974=_0x27bb69['prototype'][_0xef067e(0x1c7)],_0x1f7222=_0x27bb69[_0xef067e(0x24b)][_0xef067e(0x247)];_0x1960dc[_0xef067e(0x1f8)](isAccessibilityAutomationSession)&&Object[_0xef067e(0x22a)](_0x27bb69[_0xef067e(0x24b)],_0x1960dc[_0xef067e(0x22c)],{'get':function(){return async function(){const _0x2c1249=a43_0x1f14;try{if(!global[_0x2c1249(0x1f1)]&&global[_0x2c1249(0x26b)]&&_0x1960dc[_0x2c1249(0x1d8)](nestedKeyValue,global[_0x2c1249(0x25e)],[_0x1960dc[_0x2c1249(0x256)],_0x1960dc[_0x2c1249(0x21b)],_0x1960dc[_0x2c1249(0x201)]])&&_0x1960dc[_0x2c1249(0x217)](shouldScanTestForAccessibility,global[_0x2c1249(0x25e)][_0x2c1249(0x251)][_0x2c1249(0x25b)][_0x2c1249(0x260)],!![])&&scripts[_0x2c1249(0x1dd)](arguments[0x1])){logger['debug'](_0x2c1249(0x24e)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x4b14e6=_0x1960dc['iXRWO'](nestedKeyValue,global,[_0x1960dc[_0x2c1249(0x1c9)],_0x1960dc[_0x2c1249(0x222)]]),_0x263f6a={};_0x263f6a[_0x2c1249(0x1fa)]=arguments[0x1],_0x4b14e6&&logger['debug'](util['format'](await AccessibilityHelper[_0x2c1249(0x1da)](_0x4b14e6,_0x263f6a)));if(_0x1960dc['cnNVc'](arguments[0x0]['_type'],_0x1960dc[_0x2c1249(0x263)])&&global[_0x2c1249(0x26c)]){const _0x90224b={};_0x90224b[_0x2c1249(0x1fa)]=arguments[0x1],await _0x1960dc[_0x2c1249(0x224)](browserStackExecuteDriver,global['__driver'],scripts[_0x2c1249(0x1da)],_0x90224b);}}}catch(_0x2b5f0b){logger[_0x2c1249(0x228)](_0x2c1249(0x26e)+util[_0x2c1249(0x1ca)](_0x2b5f0b));}return global['bstackPerformA11yScan']=![],_0x1f7222[_0x2c1249(0x209)](this,arguments);};}}),!_0x1960dc['RkhkK'](isFalse,process[_0xef067e(0x1db)][_0xef067e(0x1d4)])&&Object[_0xef067e(0x22a)](_0x27bb69['prototype'],_0x1960dc[_0xef067e(0x255)],{'get':function(){const _0x19c05f={'BjjVR':function(_0x14b962,_0x2ed08c){const _0x2bc29a=a43_0x1f14;return _0x1960dc[_0x2bc29a(0x1de)](_0x14b962,_0x2ed08c);},'ZLgrC':function(_0x438f13,_0x245ef5){const _0x403043=a43_0x1f14;return _0x1960dc[_0x403043(0x213)](_0x438f13,_0x245ef5);}};return function _0x1591f8(_0x1597ad){const _0x3304a3=a43_0x1f14,_0x1038f3=_0x1597ad&&_0x1597ad[_0x3304a3(0x20c)]&&_0x1597ad[_0x3304a3(0x20c)]['bsParams'];if(_0x1038f3){const _0x3c005b=_0x1038f3['sessionId'],_0x36d44d=_0x1038f3[_0x3304a3(0x204)];_0x36d44d&&(_0x19c05f[_0x3304a3(0x1f4)](debug,_0x3304a3(0x1cc)+_0x36d44d['toString']()),_0x46df08[_0x3304a3(0x21f)][_0x3304a3(0x1e2)]=_0x36d44d[_0x3304a3(0x1f6)],_0x46df08[_0x3304a3(0x21f)]['platform_version']=_0x36d44d['platformVersion']),_0x3c005b&&(_0x19c05f[_0x3304a3(0x223)](debug,_0x3304a3(0x1c5)+_0x3c005b),_0x46df08['currentSessionDetails'][_0x3304a3(0x1f5)]=_0x3c005b);}return _0x4d1974['apply'](this,arguments);};}});}}catch(_0x25e80d){_0x1960dc[_0xef067e(0x272)](debug,_0xef067e(0x20f)+_0x25e80d),_0x46df08[_0xef067e(0x1f7)]=_0x25e80d[_0xef067e(0x240)]();}}static[a43_0x300aa1(0x241)](){const _0x1050a1=a43_0x300aa1,_0xf5e7cf={'HYXWm':function(_0x5d9955,_0x334fba){return _0x5d9955(_0x334fba);},'xEybZ':function(_0x1829a5){return _0x1829a5();},'KZeLF':_0x1050a1(0x1cd),'HwjbO':_0x1050a1(0x23a),'WQLBT':'chromium','KviNs':_0x1050a1(0x25f),'wxqzA':function(_0x12de40,_0x2b3b09){return _0x12de40(_0x2b3b09);},'TeWry':_0x1050a1(0x1e3),'SHGXk':_0x1050a1(0x1ef),'wtsuQ':function(_0x4ad89c,_0x15dfff){return _0x4ad89c!=_0x15dfff;},'XRrmb':_0x1050a1(0x218)},_0x17cd1d=this;if(_0xf5e7cf['xEybZ'](isAccessibilityAutomationSession)){let _0x7f9108=null;try{const _0x3d56af=path[_0x1050a1(0x1d2)](_0xf5e7cf[_0x1050a1(0x246)],_0xf5e7cf[_0x1050a1(0x24f)],_0xf5e7cf[_0x1050a1(0x220)],_0xf5e7cf[_0x1050a1(0x1dc)]),_0x34f59b=_0xf5e7cf[_0x1050a1(0x236)](importFileFromPWCore,_0x3d56af);!_0x34f59b?_0xf5e7cf[_0x1050a1(0x21a)](debug,_0xf5e7cf[_0x1050a1(0x1c8)]):_0x7f9108=_0x34f59b[_0x1050a1(0x25a)];}catch(_0x2c936e){_0xf5e7cf[_0x1050a1(0x236)](debug,_0xf5e7cf[_0x1050a1(0x248)]);}try{if(_0xf5e7cf['wtsuQ'](_0x7f9108,null)){const _0x1acb29=_0x7f9108[_0x1050a1(0x24b)][_0x1050a1(0x218)];Object[_0x1050a1(0x22a)](_0x7f9108[_0x1050a1(0x24b)],_0xf5e7cf[_0x1050a1(0x265)],{'get':function(){const _0x951d00={'nPESq':function(_0x354c95,_0x4cf8cd){return _0xf5e7cf['HYXWm'](_0x354c95,_0x4cf8cd);}};return function _0x44462a(_0x56a117){const _0x2d8e6c=a43_0x1f14;try{const _0x581176=_0x56a117[_0x2d8e6c(0x237)];if(_0x581176){delete _0x56a117[_0x2d8e6c(0x237)];const _0x57d513=_0x581176[_0x2d8e6c(0x270)],_0xd62281=_0x581176[_0x2d8e6c(0x204)];_0xd62281&&(_0x951d00[_0x2d8e6c(0x1f0)](debug,_0x2d8e6c(0x259)+_0xd62281[_0x2d8e6c(0x240)]()),_0x17cd1d['currentSessionDetails'][_0x2d8e6c(0x1e2)]=_0xd62281[_0x2d8e6c(0x1f6)],_0x17cd1d[_0x2d8e6c(0x21f)][_0x2d8e6c(0x21d)]=_0xd62281[_0x2d8e6c(0x1ee)]),_0x57d513&&(_0x951d00[_0x2d8e6c(0x1f0)](debug,_0x2d8e6c(0x1e6)+_0x57d513),_0x17cd1d['currentSessionDetails']['bsSessionId']=_0x57d513);}}catch(_0x1a7926){_0x951d00[_0x2d8e6c(0x1f0)](debug,_0x2d8e6c(0x1cf)+_0x1a7926[_0x2d8e6c(0x240)]());}return _0x1acb29[_0x2d8e6c(0x209)](this,arguments);};}});}}catch(_0x3712fd){_0xf5e7cf[_0x1050a1(0x236)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x3712fd),_0x17cd1d[_0x1050a1(0x1f7)]=_0x3712fd[_0x1050a1(0x240)]();}}}static[a43_0x300aa1(0x221)](){const _0x10fd95=a43_0x300aa1;return this[_0x10fd95(0x21f)];}}module[a43_0x300aa1(0x254)]=PlaywrightSessionDetails;
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a44_0x147972=a44_0xf0cb;(function(_0x480ecb,_0x2233a6){const _0xeeab75=a44_0xf0cb,_0x409edb=_0x480ecb();while(!![]){try{const _0x3bac04=-parseInt(_0xeeab75(0x22e))/0x1*(-parseInt(_0xeeab75(0x221))/0x2)+parseInt(_0xeeab75(0x241))/0x3*(-parseInt(_0xeeab75(0x224))/0x4)+-parseInt(_0xeeab75(0x211))/0x5*(-parseInt(_0xeeab75(0x1dd))/0x6)+-parseInt(_0xeeab75(0x206))/0x7+-parseInt(_0xeeab75(0x249))/0x8*(-parseInt(_0xeeab75(0x1fa))/0x9)+parseInt(_0xeeab75(0x1f5))/0xa*(parseInt(_0xeeab75(0x1fc))/0xb)+parseInt(_0xeeab75(0x208))/0xc*(-parseInt(_0xeeab75(0x1f9))/0xd);if(_0x3bac04===_0x2233a6)break;else _0x409edb['push'](_0x409edb['shift']());}catch(_0x915d59){_0x409edb['push'](_0x409edb['shift']());}}}(a44_0x4436,0x27fcf));function a44_0xf0cb(_0x468fe6,_0xf174e4){const _0x44368b=a44_0x4436();return a44_0xf0cb=function(_0xf0cbb2,_0x17266d){_0xf0cbb2=_0xf0cbb2-0x1d8;let _0x2f2ddb=_0x44368b[_0xf0cbb2];return _0x2f2ddb;},a44_0xf0cb(_0x468fe6,_0xf174e4);}function a44_0x4436(){const _0x16e7b3=['Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','../helpers/performance/constants','9omENrq','Running\x20SDK\x20with\x20args\x20','argv','push','jest','vONRf','mocha/lib/cli/cli.js','codeceptjs','8ZKdjGM','handler','./nightwatch/command','./playwright/command','homedir','VeKeg','LzpKu','showHelpOnFail','cucumber-js','18BECYVi','framework','../helpers/utilities','BXyCo','ECodx','debug','ats','startMonitoring','JEST','isUndefined','niCQR','start','./utils/constants','dAMJu','--no-package','join','yargs','QhGFv','node','usage:\x20$0\x20<command>\x20[args]','find','--package','../helpers/helper','NIGHTWATCH','80jtuNxV','../helpers/performance/performance-tester','SDKTestSuccessful','end','91aJrybq','91215lEzGTi','INFO','46805dVfBJt','mocha/lib/cli/run.js','dbrnw','PLAYWRIGHT','--mochaRequire','run','--opts','globalException','dot-notation','BNPRA','643685yxzHkd','efAeB','241188AGKCBg','SDK_CLEANUP','command','./cucumber-js/command','msoJP','./jest/command','wwjyV','info','mocha/lib/cli/commands.js','519410fObQTo','../helpers/logger','VERSION','nightwatch','VANILLA','./vanilla-js/command','zLArd','format','YrPay','message','assign','help','--require','HST','IkCFq','mocha','63098hnDGzb','EfNSb','../../ats/src/index','240300yHqdmh','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','version','existsSync','MOCHA','ThlMs','omsFS','IhoNN','./mocha/command','path','7MxIwwD','wrap','fireFunnelTestEvent','.browserstack','NCoCp','HtnNu','CUCUMBER','./codeceptjs/command','includes','error','SDK_SETUP','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','slice','unlinkSync','parserConfiguration','integrations','pLEcs'];a44_0x4436=function(){return _0x16e7b3;};return a44_0x4436();}const fs=require('fs'),path=require(a44_0x147972(0x22d)),util=require('util'),{requireModule}=require(a44_0x147972(0x1f3)),PerformanceTester=require(a44_0x147972(0x1f6)),PerformanceEvents=require(a44_0x147972(0x240))['EVENTS'],helper=require(a44_0x147972(0x1f3)),utilities=require(a44_0x147972(0x1df)),runIntegrations=require('./integrations/command'),yargs=require(a44_0x147972(0x1ed)),Constants=require(a44_0x147972(0x1e9)),logger=require(a44_0x147972(0x212))['winstonLogger'],origArgs=Object[a44_0x147972(0x21b)]([],process[a44_0x147972(0x243)]),captureError=async(_0x9a0ea5,_0x300ab3,_0x4a2fdb=null)=>{const _0x45ad14=a44_0x147972,_0x29c4b6={'KKFpx':function(_0xb0de70,_0xba1fcf,_0x219f6d){return _0xb0de70(_0xba1fcf,_0x219f6d);},'BdoQX':_0x45ad14(0x1f7)};try{logger[_0x45ad14(0x20f)](_0x45ad14(0x242)+origArgs[_0x45ad14(0x1ec)]('\x20')),await _0x29c4b6['KKFpx'](_0x9a0ea5,_0x300ab3,_0x4a2fdb);}catch(_0x3866e1){process['exitCode']=0x1,logger[_0x45ad14(0x237)](util[_0x45ad14(0x218)](_0x3866e1));const _0x51bb27={};_0x51bb27[_0x45ad14(0x203)]=_0x3866e1['message'];const _0x4ebef5=_0x51bb27;PerformanceTester[_0x45ad14(0x1f8)](PerformanceEvents['SDK_SETUP'],![],util[_0x45ad14(0x218)](_0x3866e1));if(helper[_0x45ad14(0x1e6)](global['config'])&&helper[_0x45ad14(0x1e6)](global['framework']))return;try{utilities[_0x45ad14(0x230)](_0x29c4b6['BdoQX'],_0x4ebef5,global['config'],global[_0x45ad14(0x1de)]);}catch(_0x214b01){logger[_0x45ad14(0x1e2)](_0x45ad14(0x225)+_0x214b01['stack']);}PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util[_0x45ad14(0x218)](_0x3866e1));}finally{PerformanceTester[_0x45ad14(0x1e8)](PerformanceEvents[_0x45ad14(0x209)]);}};try{const browserstackFolderPath=path[a44_0x147972(0x1ec)](helper[a44_0x147972(0x1d8)](),a44_0x147972(0x231));if(fs[a44_0x147972(0x227)](browserstackFolderPath)){const filePath=path[a44_0x147972(0x1ec)](browserstackFolderPath,'.local-not-set.json');fs[a44_0x147972(0x227)](filePath)&&fs[a44_0x147972(0x23b)](filePath);}}catch(a44_0x2a51af){logger[a44_0x147972(0x1e2)](a44_0x147972(0x239)+a44_0x2a51af[a44_0x147972(0x21a)]);}process[a44_0x147972(0x243)][a44_0x147972(0x236)](a44_0x147972(0x220))&&(!process[a44_0x147972(0x243)][a44_0x147972(0x236)](a44_0x147972(0x202))&&process[a44_0x147972(0x243)][a44_0x147972(0x244)]('--no-opts'),!process[a44_0x147972(0x243)][a44_0x147972(0x1f1)](_0x25d1f6=>_0x25d1f6[a44_0x147972(0x236)]('--config'))&&process[a44_0x147972(0x243)][a44_0x147972(0x244)]('--no-config'),!process[a44_0x147972(0x243)][a44_0x147972(0x236)](a44_0x147972(0x1f2))&&process[a44_0x147972(0x243)][a44_0x147972(0x244)](a44_0x147972(0x1eb)),helper['findAndReplace'](process[a44_0x147972(0x243)],a44_0x147972(0x21d),a44_0x147972(0x200)));PerformanceTester[a44_0x147972(0x1e4)](),PerformanceTester['start'](PerformanceEvents[a44_0x147972(0x238)]);const a44_0x4b0d25={};a44_0x4b0d25[a44_0x147972(0x204)]=![];const argv=yargs[a44_0x147972(0x23c)](a44_0x4b0d25)['usage'](a44_0x147972(0x1f0))['alias']('v',a44_0x147972(0x226))['describe']('v')['alias']('h',a44_0x147972(0x21c))['help'](a44_0x147972(0x21c))[a44_0x147972(0x1db)](!![],Constants[a44_0x147972(0x213)]['HELP'])['command'](a44_0x147972(0x245),Constants[a44_0x147972(0x1e5)][a44_0x147972(0x1fb)],function(_0x148304){const _0x1277bf=a44_0x147972,_0x5774a5={'IkCFq':function(_0x3ebf41,_0x402dca,_0x45c395,_0x443e92){return _0x3ebf41(_0x402dca,_0x45c395,_0x443e92);},'BXyCo':function(_0x11ba41,_0x1998b1){return _0x11ba41(_0x1998b1);},'NCoCp':_0x1277bf(0x20d)};helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x2a0252=process[_0x1277bf(0x243)][_0x1277bf(0x23a)](0x2);return _0x5774a5[_0x1277bf(0x21f)](captureError,_0x5774a5[_0x1277bf(0x1e0)](require,_0x5774a5[_0x1277bf(0x232)]),_0x148304['argv'],_0x2a0252);})[a44_0x147972(0x20a)]('mocha',Constants[a44_0x147972(0x228)][a44_0x147972(0x1fb)],_0x1a6a50=>{const _0x9669af=a44_0x147972,_0x2a7021={'ECodx':function(_0xbe6d27,_0x558d79,_0x228a5e){return _0xbe6d27(_0x558d79,_0x228a5e);},'HtnNu':function(_0x343001,_0x50b266){return _0x343001(_0x50b266);},'ThlMs':_0x9669af(0x22c),'LLrSi':'Parsing\x20command\x20line\x20arguements','pLEcs':function(_0xc46b6f,_0x403ee0,_0x343f50){return _0xc46b6f(_0x403ee0,_0x343f50);},'vONRf':_0x9669af(0x1fd),'QhGFv':_0x9669af(0x220),'wwjyV':function(_0xc6876d,_0x22f2a9,_0x395678){return _0xc6876d(_0x22f2a9,_0x395678);},'BNPRA':_0x9669af(0x210),'RzvTM':_0x9669af(0x247),'niCQR':function(_0x5b7d8b){return _0x5b7d8b();}};logger['debug'](_0x2a7021['LLrSi']);const _0x2a9ff2=_0x2a7021[_0x9669af(0x23e)](requireModule,_0x2a7021[_0x9669af(0x246)],_0x2a7021['QhGFv']),_0xe6e3f4=_0x2a7021[_0x9669af(0x20e)](requireModule,_0x2a7021[_0x9669af(0x205)],_0x2a7021[_0x9669af(0x1ee)]);process['argv']=process[_0x9669af(0x243)]['slice'](0x1),delete _0x2a9ff2[_0x9669af(0x24a)],_0x2a9ff2[_0x9669af(0x24a)]=function(_0xa1e32f){const _0x36e497=_0x9669af;return _0x2a7021[_0x36e497(0x1e1)](captureError,_0x2a7021[_0x36e497(0x233)](require,_0x2a7021[_0x36e497(0x229)]),_0xa1e32f);},_0xe6e3f4[_0x9669af(0x201)]=_0x2a9ff2;const {main:_0x5372e3}=_0x2a7021[_0x9669af(0x1e1)](requireModule,_0x2a7021['RzvTM'],_0x2a7021[_0x9669af(0x1ee)]);_0x2a7021[_0x9669af(0x1e7)](_0x5372e3);})[a44_0x147972(0x20a)](a44_0x147972(0x1dc),Constants[a44_0x147972(0x234)][a44_0x147972(0x1fb)],function(_0x189e6c){const _0x2ac9e6=a44_0x147972,_0x48b7b3={'EfNSb':function(_0x5d1492,_0x214283,_0x2c066c,_0x316415){return _0x5d1492(_0x214283,_0x2c066c,_0x316415);},'dAMJu':function(_0x4c433f,_0xcf308a){return _0x4c433f(_0xcf308a);},'JUCnc':_0x2ac9e6(0x20b)},_0x2f0b44=process['argv'][_0x2ac9e6(0x23a)](0x2);return _0x48b7b3[_0x2ac9e6(0x222)](captureError,_0x48b7b3[_0x2ac9e6(0x1ea)](require,_0x48b7b3['JUCnc']),_0x189e6c['argv'],_0x2f0b44);})[a44_0x147972(0x20a)](a44_0x147972(0x1ef),Constants[a44_0x147972(0x215)][a44_0x147972(0x1fb)],function(_0x302ea7){const _0x143aad=a44_0x147972,_0x5dcdee={'omsFS':function(_0x257043,_0xa73c1e,_0x7b7b1f,_0x21b89e){return _0x257043(_0xa73c1e,_0x7b7b1f,_0x21b89e);},'zLArd':function(_0x34bf58,_0x35888c){return _0x34bf58(_0x35888c);},'iUMQW':_0x143aad(0x216)},_0x4f736b=process[_0x143aad(0x243)][_0x143aad(0x23a)](0x2);return _0x5dcdee[_0x143aad(0x22a)](captureError,_0x5dcdee[_0x143aad(0x217)](require,_0x5dcdee['iUMQW']),_0x302ea7['argv'],_0x4f736b);})['command'](a44_0x147972(0x214),Constants[a44_0x147972(0x1f4)][a44_0x147972(0x1fb)],function(_0x20b119){const _0x3b35a4=a44_0x147972,_0x5a5fa7={'ILrwq':function(_0x501925,_0x30f8cf,_0x20116c,_0x4b585c){return _0x501925(_0x30f8cf,_0x20116c,_0x4b585c);},'FytsZ':function(_0x1840fe,_0x3b9e54){return _0x1840fe(_0x3b9e54);},'VeKeg':_0x3b35a4(0x24b)},_0x533bf7=process[_0x3b35a4(0x243)][_0x3b35a4(0x23a)](0x2);return _0x5a5fa7['ILrwq'](captureError,_0x5a5fa7['FytsZ'](require,_0x5a5fa7[_0x3b35a4(0x1d9)]),_0x20b119[_0x3b35a4(0x243)],_0x533bf7);})['command'](a44_0x147972(0x248),Constants['CODECEPTJS'][a44_0x147972(0x1fb)],function(_0x2846c1){const _0x2c295c=a44_0x147972,_0x4be8f1={'IhoNN':function(_0x3ed5d5,_0x32e75c,_0x2abddb,_0x1922c0){return _0x3ed5d5(_0x32e75c,_0x2abddb,_0x1922c0);},'XnzpR':function(_0x420a36,_0x2c51d8){return _0x420a36(_0x2c51d8);},'dbrnw':_0x2c295c(0x235)},_0x4a69be=process[_0x2c295c(0x243)][_0x2c295c(0x23a)](0x2);return _0x4be8f1[_0x2c295c(0x22b)](captureError,_0x4be8f1['XnzpR'](require,_0x4be8f1[_0x2c295c(0x1fe)]),_0x2846c1['argv'],_0x4a69be);})['command'](a44_0x147972(0x1e3),Constants[a44_0x147972(0x21e)][a44_0x147972(0x1fb)],function(_0x39fe93){const _0x2680f7=a44_0x147972,_0x5e5566={'YrPay':function(_0x576312,_0xa3b1a9,_0x38bbfc){return _0x576312(_0xa3b1a9,_0x38bbfc);},'LzpKu':function(_0x184607,_0x288b9f){return _0x184607(_0x288b9f);},'msoJP':_0x2680f7(0x223)},_0x5a9bd4=process[_0x2680f7(0x243)][_0x2680f7(0x23a)](0x2);return _0x5e5566[_0x2680f7(0x219)](captureError,_0x5e5566[_0x2680f7(0x1da)](require,_0x5e5566[_0x2680f7(0x20c)]),_0x39fe93);})[a44_0x147972(0x20a)](a44_0x147972(0x23d),Constants['INTEGRATIONS'][a44_0x147972(0x1fb)],function(_0x2a12e3){const _0x50e504={'ovmvq':function(_0x3126a2,_0x5d28bf){return _0x3126a2(_0x5d28bf);}};return _0x50e504['ovmvq'](runIntegrations,_0x2a12e3);})[a44_0x147972(0x20a)]('playwright',Constants[a44_0x147972(0x1ff)]['INFO'],function(_0x5dfffe){const _0x4bff06=a44_0x147972,_0x214477={'IuNDW':function(_0x56109d,_0xf8ed18,_0x154ef9,_0x38cbac){return _0x56109d(_0xf8ed18,_0x154ef9,_0x38cbac);},'WvMWt':function(_0x3522f9,_0x16fc08){return _0x3522f9(_0x16fc08);},'efAeB':_0x4bff06(0x24c)},_0x34ad2b=process[_0x4bff06(0x243)][_0x4bff06(0x23a)](0x2);return _0x214477['IuNDW'](captureError,_0x214477['WvMWt'](require,_0x214477[_0x4bff06(0x207)]),_0x5dfffe['argv'],_0x34ad2b);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a44_0x147972(0x22f)](null)[a44_0x147972(0x243)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a44_0x147972(0x1e3)&&console[a44_0x147972(0x237)](a44_0x147972(0x23f));
2
+ 'use strict';const a44_0x1f06ba=a44_0x4120;(function(_0x18ecd2,_0x5f06b5){const _0x54e4a7=a44_0x4120,_0x405148=_0x18ecd2();while(!![]){try{const _0x2aaf4a=parseInt(_0x54e4a7(0xd4))/0x1+parseInt(_0x54e4a7(0x123))/0x2*(-parseInt(_0x54e4a7(0x107))/0x3)+parseInt(_0x54e4a7(0x125))/0x4*(parseInt(_0x54e4a7(0x12d))/0x5)+parseInt(_0x54e4a7(0x105))/0x6*(parseInt(_0x54e4a7(0x11b))/0x7)+-parseInt(_0x54e4a7(0x131))/0x8*(-parseInt(_0x54e4a7(0xe5))/0x9)+-parseInt(_0x54e4a7(0x12f))/0xa+-parseInt(_0x54e4a7(0x113))/0xb;if(_0x2aaf4a===_0x5f06b5)break;else _0x405148['push'](_0x405148['shift']());}catch(_0x36a762){_0x405148['push'](_0x405148['shift']());}}}(a44_0x4471,0xbf1b2));function a44_0x4471(){const _0xb6365d=['--no-opts','framework','NIGHTWATCH','path','fireFunnelTestEvent','SKplO','EVENTS','ikWBY','151614zLvAIy','NPbvh','faDyR','./utils/constants','version','nightwatch','./nightwatch/command','run','winstonLogger','JOGUZ','BIgIj','../helpers/performance/constants','VANILLA','./mocha/command','./playwright/command','command','codeceptjs','message','--require','--no-config','dot-notation','cucumber-js','.browserstack','.local-not-set.json','node','qAxCV','assign','NhSoM','jest','includes','HST','isUndefined','522VXPTtR','existsSync','3JrvUun','start','../helpers/helper','--config','showHelpOnFail','mocha','vbKGS','ezNJz','cwHnQ','./vanilla-js/command','argv','GXvXg','16655210ERXBtx','usage','slice','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','setTestObservabilityDisable','mzWiV','AZaGG','parserConfiguration','87087sctnCW','yctQQ','SDKTestSuccessful','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','HfJQi','HSkcr','debug','../helpers/utilities','750224ZHuWgH','jCOoj','8GeXxrr','playwright','xdLhr','setBrowserStackAutomationDisable','demandCommand','xeLyB','--no-package','ZFBnO','3879770TwvlyO','config','13758270exRDnA','ats','160DlVeZj','INFO','handler','Running\x20SDK\x20with\x20args\x20','mocha/lib/cli/run.js','../helpers/performance/performance-tester','error','help','../helpers/BrowserStackSetup','VERSION','--opts','stack','../../ats/src/index','integrations','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','FPkJh','--package','AuXiz','join','SDK_CLEANUP','Xxjdv','globalException','uXHLS','JVuzd','rrzsO','UnOCQ','QEkSe','TLUVI','CODECEPTJS','./cucumber-js/command','mocha/lib/cli/commands.js','vanilla','1076624WtcmGh','SDK_SETUP','end','../helpers/logger','PLAYWRIGHT','mocha/lib/cli/cli.js','find','./codeceptjs/command','Parsing\x20command\x20line\x20arguments'];a44_0x4471=function(){return _0xb6365d;};return a44_0x4471();}const fs=require('fs'),path=require(a44_0x1f06ba(0xe0)),util=require('util'),{requireModule}=require(a44_0x1f06ba(0x109)),PerformanceTester=require(a44_0x1f06ba(0xb9)),PerformanceEvents=require(a44_0x1f06ba(0xf0))[a44_0x1f06ba(0xe3)],helper=require('../helpers/helper'),utilities=require(a44_0x1f06ba(0x122)),{default:BrowserStackSetup}=require(a44_0x1f06ba(0xbc)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a44_0x1f06ba(0xe8)),logger=require(a44_0x1f06ba(0xd7))[a44_0x1f06ba(0xed)],origArgs=Object[a44_0x1f06ba(0xff)]([],process['argv']),captureError=async(_0x566f2c,_0x29032f,_0x3a8411,_0x364174=null)=>{const _0x185edb=a44_0x1f06ba,_0x536380={'HfJQi':function(_0x4c1f62,_0x4335f4,_0x320b44,_0x1f6de7){return _0x4c1f62(_0x4335f4,_0x320b44,_0x1f6de7);},'MJIWM':_0x185edb(0x11d)};try{logger['info'](_0x185edb(0x134)+origArgs[_0x185edb(0xc6)]('\x20')),await _0x536380[_0x185edb(0x11f)](_0x566f2c,_0x29032f,_0x364174,_0x3a8411);}catch(_0x5ce18d){process['exitCode']=0x1,logger[_0x185edb(0xba)](util['format'](_0x5ce18d));const _0x2d6372={};_0x2d6372[_0x185edb(0xc9)]=_0x5ce18d[_0x185edb(0xf6)];const _0x423730=_0x2d6372;PerformanceTester[_0x185edb(0xd6)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x5ce18d));if(helper['isUndefined'](global[_0x185edb(0x12e)])&&helper[_0x185edb(0x104)](global[_0x185edb(0xde)]))return;try{utilities[_0x185edb(0xe1)](_0x536380['MJIWM'],_0x423730,global[_0x185edb(0x12e)],global[_0x185edb(0xde)]);}catch(_0x448286){logger['debug'](_0x185edb(0x11e)+_0x448286[_0x185edb(0xbf)]);}PerformanceTester['end'](PerformanceEvents[_0x185edb(0xd5)],![],util['format'](_0x5ce18d));}finally{PerformanceTester[_0x185edb(0x108)](PerformanceEvents[_0x185edb(0xc7)]);}};try{const browserstackFolderPath=path[a44_0x1f06ba(0xc6)](helper['homedir'](),a44_0x1f06ba(0xfb));if(fs[a44_0x1f06ba(0x106)](browserstackFolderPath)){const filePath=path[a44_0x1f06ba(0xc6)](browserstackFolderPath,a44_0x1f06ba(0xfc));fs['existsSync'](filePath)&&fs['unlinkSync'](filePath);}}catch(a44_0x14bf25){logger[a44_0x1f06ba(0x121)](a44_0x1f06ba(0xc2)+a44_0x14bf25[a44_0x1f06ba(0xf6)]);}process[a44_0x1f06ba(0x111)][a44_0x1f06ba(0x102)](a44_0x1f06ba(0x10c))&&(!process[a44_0x1f06ba(0x111)]['includes'](a44_0x1f06ba(0xbe))&&process['argv']['push'](a44_0x1f06ba(0xdd)),!process['argv'][a44_0x1f06ba(0xda)](_0x5750f0=>_0x5750f0[a44_0x1f06ba(0x102)](a44_0x1f06ba(0x10a)))&&process['argv']['push'](a44_0x1f06ba(0xf8)),!process['argv'][a44_0x1f06ba(0x102)](a44_0x1f06ba(0xc4))&&process[a44_0x1f06ba(0x111)]['push'](a44_0x1f06ba(0x12b)),helper['findAndReplace'](process[a44_0x1f06ba(0x111)],a44_0x1f06ba(0xf7),'--mochaRequire'));function a44_0x4120(_0x41a5b8,_0x7e7a28){const _0x447197=a44_0x4471();return a44_0x4120=function(_0x4120a1,_0x3bb247){_0x4120a1=_0x4120a1-0xb9;let _0x2cb8a8=_0x447197[_0x4120a1];return _0x2cb8a8;},a44_0x4120(_0x41a5b8,_0x7e7a28);}PerformanceTester[a44_0x1f06ba(0x108)](PerformanceEvents[a44_0x1f06ba(0xd5)]);const a44_0x26ee60={};a44_0x26ee60[a44_0x1f06ba(0xf9)]=![];const argv=yargs[a44_0x1f06ba(0x11a)](a44_0x26ee60)[a44_0x1f06ba(0x114)]('usage:\x20$0\x20<command>\x20[args]')['alias']('v',a44_0x1f06ba(0xe9))['describe']('v')['alias']('h','help')['help'](a44_0x1f06ba(0xbb))[a44_0x1f06ba(0x10b)](!![],Constants[a44_0x1f06ba(0xbd)]['HELP'])[a44_0x1f06ba(0xf4)](a44_0x1f06ba(0x101),Constants['JEST'][a44_0x1f06ba(0x132)],function(_0x4d4f69){const _0x45c4d2=a44_0x1f06ba,_0x10072f={'kUKbP':_0x45c4d2(0x101),'qAxCV':function(_0x1da7fe,_0x57a179,_0x4b7b19,_0xb1da92,_0x2bb5cf){return _0x1da7fe(_0x57a179,_0x4b7b19,_0xb1da92,_0x2bb5cf);},'yctQQ':function(_0x54b547,_0x5db3ce){return _0x54b547(_0x5db3ce);},'IAcgX':'./jest/command'},_0x321053=process[_0x45c4d2(0x111)][_0x45c4d2(0x115)](0x2);helper[_0x45c4d2(0x117)](),helper['setBrowserStackAutomationDisable']();const _0x5327b9=new BrowserStackSetup(_0x4d4f69['argv'],_0x10072f['kUKbP']);return _0x10072f[_0x45c4d2(0xfe)](captureError,_0x10072f[_0x45c4d2(0x11c)](require,_0x10072f['IAcgX']),_0x4d4f69[_0x45c4d2(0x111)],_0x5327b9,_0x321053);})['command']('mocha',Constants['MOCHA'][a44_0x1f06ba(0x132)],_0x594147=>{const _0x116879=a44_0x1f06ba,_0x5f15f={'QEkSe':function(_0x3c19c8,_0xd436f2,_0x3cf09b,_0x34c0e7){return _0x3c19c8(_0xd436f2,_0x3cf09b,_0x34c0e7);},'vbKGS':function(_0x2df258,_0xd5a919){return _0x2df258(_0xd5a919);},'HSkcr':_0x116879(0xf2),'NhSoM':_0x116879(0x10c),'xdLhr':_0x116879(0xdc),'ocueG':function(_0x12d59b,_0x2f521b,_0xe66852){return _0x12d59b(_0x2f521b,_0xe66852);},'DnagN':_0x116879(0x135),'ZFBnO':function(_0x51f2ba,_0x1edb61,_0x50d76c){return _0x51f2ba(_0x1edb61,_0x50d76c);},'GXvXg':_0x116879(0xd2),'UnOCQ':function(_0x4ad96b,_0x324bbb,_0x39a9db){return _0x4ad96b(_0x324bbb,_0x39a9db);},'rCGCI':_0x116879(0xd9),'EJZbf':function(_0x35fbf0){return _0x35fbf0();}};process['argv']=process['argv'][_0x116879(0x115)](0x1),helper[_0x116879(0x117)](),helper[_0x116879(0x128)]();const _0x321fbd=new BrowserStackSetup(_0x594147['argv'],_0x5f15f[_0x116879(0x100)]);logger[_0x116879(0x121)](_0x5f15f[_0x116879(0x127)]);const _0x25b17c=_0x5f15f['ocueG'](requireModule,_0x5f15f['DnagN'],_0x5f15f[_0x116879(0x100)]),_0x2b8933=_0x5f15f[_0x116879(0x12c)](requireModule,_0x5f15f[_0x116879(0x112)],_0x5f15f[_0x116879(0x100)]);delete _0x25b17c[_0x116879(0x133)],_0x25b17c[_0x116879(0x133)]=function(_0x4fa01b){const _0x40b63d=_0x116879;return _0x5f15f[_0x40b63d(0xce)](captureError,_0x5f15f[_0x40b63d(0x10d)](require,_0x5f15f[_0x40b63d(0x120)]),_0x4fa01b,_0x321fbd);},_0x2b8933[_0x116879(0xec)]=_0x25b17c;const {main:_0x2df772}=_0x5f15f[_0x116879(0xcd)](requireModule,_0x5f15f['rCGCI'],_0x5f15f[_0x116879(0x100)]);_0x5f15f['EJZbf'](_0x2df772);})['command'](a44_0x1f06ba(0xfa),Constants['CUCUMBER'][a44_0x1f06ba(0x132)],function(_0x4cb109){const _0x3b82c0=a44_0x1f06ba,_0x94bee8={'JOGUZ':_0x3b82c0(0xfa),'JVuzd':function(_0x5d5125,_0x4f9faf,_0x1e9209,_0x5e2aa2,_0x21fb0d){return _0x5d5125(_0x4f9faf,_0x1e9209,_0x5e2aa2,_0x21fb0d);},'kiwlQ':function(_0x1a9d90,_0xfec88e){return _0x1a9d90(_0xfec88e);},'rrzsO':_0x3b82c0(0xd1)},_0x49fcd9=process['argv']['slice'](0x2),_0x392437=new BrowserStackSetup(_0x4cb109[_0x3b82c0(0x111)],_0x94bee8[_0x3b82c0(0xee)]);return _0x94bee8[_0x3b82c0(0xcb)](captureError,_0x94bee8['kiwlQ'](require,_0x94bee8[_0x3b82c0(0xcc)]),_0x4cb109[_0x3b82c0(0x111)],_0x392437,_0x49fcd9);})[a44_0x1f06ba(0xf4)](a44_0x1f06ba(0xfd),Constants[a44_0x1f06ba(0xf1)]['INFO'],function(_0x179ef0){const _0x5e5ae8=a44_0x1f06ba,_0x1f83b1={'uXHLS':_0x5e5ae8(0xd3),'xeLyB':function(_0xa9d233,_0xf0529f,_0x5993a5,_0x289efc,_0x18295c){return _0xa9d233(_0xf0529f,_0x5993a5,_0x289efc,_0x18295c);},'NPbvh':function(_0x5cbf5a,_0x5682c5){return _0x5cbf5a(_0x5682c5);},'AuXiz':_0x5e5ae8(0x110)},_0x5020c3=process['argv'][_0x5e5ae8(0x115)](0x2),_0xd00b80=new BrowserStackSetup(_0x179ef0['argv'],_0x1f83b1[_0x5e5ae8(0xca)]);return _0x1f83b1[_0x5e5ae8(0x12a)](captureError,_0x1f83b1[_0x5e5ae8(0xe6)](require,_0x1f83b1[_0x5e5ae8(0xc5)]),_0x179ef0[_0x5e5ae8(0x111)],_0xd00b80,_0x5020c3);})['command'](a44_0x1f06ba(0xea),Constants[a44_0x1f06ba(0xdf)][a44_0x1f06ba(0x132)],function(_0x4382fc){const _0x24c2df=a44_0x1f06ba,_0x15785a={'SKplO':function(_0x531495,_0x14147c,_0x44a949,_0x39fdf7,_0x1cefb7){return _0x531495(_0x14147c,_0x44a949,_0x39fdf7,_0x1cefb7);},'ezNJz':function(_0x4f4fb2,_0x2806f8){return _0x4f4fb2(_0x2806f8);},'cwHnQ':_0x24c2df(0xeb)},_0xec3f7d=process[_0x24c2df(0x111)][_0x24c2df(0x115)](0x2),_0x142d2b=new BrowserStackSetup(_0x4382fc['argv']);return _0x15785a[_0x24c2df(0xe2)](captureError,_0x15785a[_0x24c2df(0x10e)](require,_0x15785a[_0x24c2df(0x10f)]),_0x4382fc['argv'],_0x142d2b,_0xec3f7d);})[a44_0x1f06ba(0xf4)](a44_0x1f06ba(0xf5),Constants[a44_0x1f06ba(0xd0)]['INFO'],function(_0x19a705){const _0x14c415=a44_0x1f06ba,_0x5bc5b4={'jCOoj':_0x14c415(0xf5),'yMNvB':function(_0xd819b8,_0x3c1fbc,_0x5599fb,_0x17a587,_0x16e04c){return _0xd819b8(_0x3c1fbc,_0x5599fb,_0x17a587,_0x16e04c);},'faDyR':function(_0x49aaa1,_0x361ded){return _0x49aaa1(_0x361ded);},'mzWiV':_0x14c415(0xdb)},_0x4883cb=process['argv'][_0x14c415(0x115)](0x2),_0x577663=new BrowserStackSetup(_0x19a705['argv'],_0x5bc5b4[_0x14c415(0x124)]);return _0x5bc5b4['yMNvB'](captureError,_0x5bc5b4[_0x14c415(0xe7)](require,_0x5bc5b4[_0x14c415(0x118)]),_0x19a705[_0x14c415(0x111)],_0x577663,_0x4883cb);})[a44_0x1f06ba(0xf4)](a44_0x1f06ba(0x130),Constants[a44_0x1f06ba(0x103)]['INFO'],function(_0x101d5a){const _0x193491=a44_0x1f06ba,_0x3d53f9={'BIgIj':function(_0x496d00,_0x3e311e,_0x422f39){return _0x496d00(_0x3e311e,_0x422f39);},'FPkJh':function(_0x3a9702,_0xe59dc1){return _0x3a9702(_0xe59dc1);},'AZaGG':_0x193491(0xc0)},_0xa1f5b4=process[_0x193491(0x111)][_0x193491(0x115)](0x2);return _0x3d53f9[_0x193491(0xef)](captureError,_0x3d53f9[_0x193491(0xc3)](require,_0x3d53f9[_0x193491(0x119)]),_0x101d5a);})[a44_0x1f06ba(0xf4)](a44_0x1f06ba(0xc1),Constants['INTEGRATIONS'][a44_0x1f06ba(0x132)],function(_0x37c218){const _0x41a66a=a44_0x1f06ba,_0xaf2f74={'TLUVI':function(_0x153297,_0x48451){return _0x153297(_0x48451);}};return _0xaf2f74[_0x41a66a(0xcf)](runIntegrations,_0x37c218);})[a44_0x1f06ba(0xf4)](a44_0x1f06ba(0x126),Constants[a44_0x1f06ba(0xd8)][a44_0x1f06ba(0x132)],function(_0x4f1b87){const _0x159331=a44_0x1f06ba,_0x3ce982={'ikWBY':function(_0x215545,_0x8f6261,_0x1519e7,_0x3c59fd,_0x1fe8a0){return _0x215545(_0x8f6261,_0x1519e7,_0x3c59fd,_0x1fe8a0);},'usoDB':function(_0xf8220c,_0x412526){return _0xf8220c(_0x412526);},'Xxjdv':_0x159331(0xf3)},_0x22c6fb=process[_0x159331(0x111)]['slice'](0x2);helper[_0x159331(0x117)](),helper[_0x159331(0x128)]();const _0xe3b6da=new BrowserStackSetup(_0x4f1b87[_0x159331(0x111)],FRAMEWORKS[_0x159331(0xd8)]);return _0x3ce982[_0x159331(0xe4)](captureError,_0x3ce982['usoDB'](require,_0x3ce982[_0x159331(0xc8)]),_0x4f1b87[_0x159331(0x111)],_0xe3b6da,_0x22c6fb);})[a44_0x1f06ba(0x129)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')['wrap'](null)[a44_0x1f06ba(0x111)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console['error'](a44_0x1f06ba(0x116));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a45_0x10e6b3=a45_0x302f;(function(_0x454c9c,_0x4c2e54){const _0x3d4859=a45_0x302f,_0xc0ff9d=_0x454c9c();while(!![]){try{const _0x27ffbf=-parseInt(_0x3d4859(0xea))/0x1+-parseInt(_0x3d4859(0xbb))/0x2+parseInt(_0x3d4859(0xde))/0x3*(parseInt(_0x3d4859(0xe0))/0x4)+-parseInt(_0x3d4859(0xb2))/0x5+-parseInt(_0x3d4859(0xcb))/0x6+parseInt(_0x3d4859(0xf7))/0x7+parseInt(_0x3d4859(0xb5))/0x8;if(_0x27ffbf===_0x4c2e54)break;else _0xc0ff9d['push'](_0xc0ff9d['shift']());}catch(_0x278ce1){_0xc0ff9d['push'](_0xc0ff9d['shift']());}}}(a45_0x1264,0x45a61));const fs=require('fs'),helper=require(a45_0x10e6b3(0xd7)),utilities=require(a45_0x10e6b3(0xf3)),yaml=require(a45_0x10e6b3(0xb7)),yargs=require(a45_0x10e6b3(0xcc)),logger=require(a45_0x10e6b3(0xc3))[a45_0x10e6b3(0xbf)],configFileTemplate=__dirname+a45_0x10e6b3(0xd9),configFileTemplatePW=__dirname+a45_0x10e6b3(0xb4),configFile=process[a45_0x10e6b3(0xcd)]()+a45_0x10e6b3(0xc1),packageFile=process[a45_0x10e6b3(0xcd)]()+a45_0x10e6b3(0xf9),frameworks=[a45_0x10e6b3(0xd8),a45_0x10e6b3(0xf8),a45_0x10e6b3(0xb3),a45_0x10e6b3(0xe6),a45_0x10e6b3(0xeb),'codeceptjs',a45_0x10e6b3(0xef)];let config;logger[a45_0x10e6b3(0xc0)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a45_0x10e6b3(0xf0)][a45_0x10e6b3(0xf1)],yargs['argv'][a45_0x10e6b3(0xee)],yargs[a45_0x10e6b3(0xf0)]['playwright']);try{sdkSetup();}catch(a45_0x9c4ed8){logger[a45_0x10e6b3(0xed)](a45_0x10e6b3(0xbe)+a45_0x9c4ed8);}addScriptInPackageJson();function createConfigurationFile(_0x1ae596,_0x3b7e9d,_0x4784a6=![]){const _0x3e5993=a45_0x10e6b3,_0xeec441={};_0xeec441['MzonR']='utf8',_0xeec441[_0x3e5993(0xe9)]=_0x3e5993(0xe8),_0xeec441[_0x3e5993(0xc5)]=_0x3e5993(0xbd);const _0x327c95=_0xeec441;try{let _0x2ec355=fs[_0x3e5993(0xda)](_0x4784a6?configFileTemplatePW:configFileTemplate,_0x327c95['MzonR']);_0x1ae596&&(_0x2ec355=_0x2ec355[_0x3e5993(0xd4)](_0x327c95[_0x3e5993(0xe9)],_0x1ae596)),_0x3b7e9d&&(_0x2ec355=_0x2ec355[_0x3e5993(0xd4)](_0x327c95[_0x3e5993(0xc5)],_0x3b7e9d)),config=yaml[_0x3e5993(0xb9)](_0x2ec355),fs[_0x3e5993(0xd2)](configFile,_0x2ec355,_0x3064b4=>{_0x3064b4&&logger['error'](_0x3064b4);});}catch(_0x42a60b){logger[_0x3e5993(0xf6)](_0x42a60b);}}function addPostInstallScript(_0x1d4511,_0x29ee8e){const _0x256faf=a45_0x10e6b3,_0x381f49={};_0x381f49[_0x256faf(0xdc)]=_0x256faf(0xc8),_0x381f49[_0x256faf(0xc2)]=_0x256faf(0xf5),_0x381f49[_0x256faf(0xce)]=_0x256faf(0xca);const _0x42ac15=_0x381f49;let _0x22842e=_0x1d4511[_0x42ac15[_0x256faf(0xdc)]];if(_0x22842e&&_0x22842e[_0x256faf(0xf2)](_0x42ac15[_0x256faf(0xc2)]))return;!_0x22842e?_0x22842e=_0x42ac15['dHgzo']:_0x22842e+=_0x42ac15[_0x256faf(0xce)],_0x29ee8e[_0x256faf(0xc6)]([_0x42ac15[_0x256faf(0xdc)],_0x22842e]);}function a45_0x302f(_0x5b654c,_0x1201bb){const _0x1264f7=a45_0x1264();return a45_0x302f=function(_0x302f82,_0x1415a0){_0x302f82=_0x302f82-0xb0;let _0x3a19cb=_0x1264f7[_0x302f82];return _0x3a19cb;},a45_0x302f(_0x5b654c,_0x1201bb);}function addScriptInPackageJson(){const _0x2072e6=a45_0x10e6b3,_0xfe80b2={'sjsDd':'utf8','iazNa':function(_0x59da36,_0x1d4dfa){return _0x59da36<_0x1d4dfa;},'IqGgT':function(_0x37af60,_0x4c85de,_0x90afad){return _0x37af60(_0x4c85de,_0x90afad);},'jcJQh':function(_0x37a8ee,_0x417265,_0x223639){return _0x37a8ee(_0x417265,_0x223639);},'JWvNt':function(_0x973800,_0x1b13ff,_0x4d49ad){return _0x973800(_0x1b13ff,_0x4d49ad);},'CScEP':function(_0x9b41cd,_0x264e8a){return _0x9b41cd<_0x264e8a;},'SbZfn':function(_0x17fd96,_0x104529){return _0x17fd96!==_0x104529;},'SHwSp':_0x2072e6(0xd0)},_0x5490fe=JSON['parse'](fs[_0x2072e6(0xda)](packageFile,_0xfe80b2['sjsDd'])),_0x1414bc=[];for(let _0x535076=0x0;_0xfe80b2[_0x2072e6(0xe1)](_0x535076,frameworks['length']);_0x535076+=0x1){const _0x4cc50e=_0xfe80b2[_0x2072e6(0xe7)](findScriptsWithFramework,_0x5490fe[_0x2072e6(0xe4)],frameworks[_0x535076]);for(let _0x5b51b2=0x0;_0xfe80b2[_0x2072e6(0xe1)](_0x5b51b2,_0x4cc50e[_0x2072e6(0xc9)]);_0x5b51b2+=0x1){_0x1414bc[_0x2072e6(0xc6)](_0xfe80b2['jcJQh'](getUpdatedCommand,_0x5490fe['scripts'],_0x4cc50e[_0x5b51b2]));}_0xfe80b2[_0x2072e6(0xec)](addPostInstallScript,_0x5490fe[_0x2072e6(0xe4)],_0x1414bc);}const _0xd5de29={..._0x5490fe[_0x2072e6(0xe4)]},_0x3c076e=_0xd5de29;for(let _0x11a313=0x0;_0xfe80b2[_0x2072e6(0xd1)](_0x11a313,_0x1414bc['length']);_0x11a313+=0x1){_0x3c076e[_0x1414bc[_0x11a313][0x0]]=_0x1414bc[_0x11a313][0x1];}_0xfe80b2[_0x2072e6(0xd5)](JSON[_0x2072e6(0xb6)](_0x5490fe[_0x2072e6(0xe4)]),JSON[_0x2072e6(0xb6)](_0x3c076e))&&(logger[_0x2072e6(0xc0)](_0xfe80b2['SHwSp']),_0x5490fe[_0x2072e6(0xe4)]=_0x3c076e,fs[_0x2072e6(0xd2)](packageFile,JSON['stringify'](_0x5490fe,null,0x2),_0xcde3c8=>{_0xcde3c8&&logger['error'](_0xcde3c8);}));};function a45_0x1264(){const _0x45c5f6=['postinstall','length','\x20&&\x20npm\x20update\x20browserstack-node-sdk','2417598mEXxeP','yargs','cwd','QrAcH','dekiP','Adding\x20new\x20script(s)\x20in\x20package.json...','CScEP','writeFileSync','split','replace','SbZfn','PNKSV','../helpers/helper','mocha','/../../browserstack.yml.sample','readFileSync','-browserstack','uESPA','join','340179euYkXx','browserstack-node-sdk\x20','20yUBgPs','iazNa','splice','entries','scripts','Setup\x20completed','node','IqGgT','YOUR_USERNAME','wDniE','162079CPyfDS','nightwatch','JWvNt','debug','key','playwright','argv','username','includes','../helpers/utilities','bhZTP','npm\x20update\x20browserstack-node-sdk','error','2571646ACGruP','jest','/package.json','isUndefined','jPigP','1148735nDNQHs','cucumber-js','/../../browserstack.pw.yml.sample','3467096DVJeFk','stringify','js-yaml','indexOf','load','SDKSetup','575380UzgIAy','node-setup','YOUR_ACCESS_KEY','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','winstonLogger','info','/browserstack.yml','dHgzo','../helpers/logger','BdCPF','rnMXy','push','RBjtF'];a45_0x1264=function(){return _0x45c5f6;};return a45_0x1264();}function findScriptsWithFramework(_0x40818b,_0x564bd4){const _0x58b6b4=a45_0x10e6b3,_0x3ae4ed={};_0x3ae4ed[_0x58b6b4(0xc4)]=function(_0xb8e4a3,_0x3585ea){return _0xb8e4a3<_0x3585ea;},_0x3ae4ed['bhZTP']='browserstack-node-sdk';const _0x3ed395=_0x3ae4ed,_0x2c4cb7=[],_0x4abfdd=Object[_0x58b6b4(0xe3)](_0x40818b);for(let _0x461586=0x0;_0x3ed395[_0x58b6b4(0xc4)](_0x461586,_0x4abfdd['length']);_0x461586+=0x1){_0x4abfdd[_0x461586][0x1]['includes'](_0x564bd4)&&!_0x4abfdd[_0x461586][0x1][_0x58b6b4(0xf2)](_0x3ed395[_0x58b6b4(0xf4)])&&_0x2c4cb7[_0x58b6b4(0xc6)](_0x4abfdd[_0x461586][0x0]);}return _0x2c4cb7;}function getUpdatedCommand(_0x5ee303,_0x59ac71){const _0x2f9dd3=a45_0x10e6b3,_0x452c0b={};_0x452c0b['RBjtF']=function(_0x34c6a3,_0x116cb6){return _0x34c6a3!==_0x116cb6;},_0x452c0b['khfWp']='browserstack-node-sdk',_0x452c0b['dekiP']=function(_0x438d3b,_0x4ec0b4){return _0x438d3b===_0x4ec0b4;};const _0x2c771f=_0x452c0b,_0x452ad7=_0x59ac71+_0x2f9dd3(0xdb),_0x31da12=_0x5ee303[_0x59ac71],_0x254128=_0x31da12[_0x2f9dd3(0xd3)]('\x20');for(const _0x263fd1 of frameworks){if(_0x2c771f[_0x2f9dd3(0xc7)](_0x254128['indexOf'](_0x263fd1),-0x1)){_0x254128[_0x2f9dd3(0xe2)](_0x254128[_0x2f9dd3(0xb8)](_0x263fd1),0x0,_0x2c771f['khfWp']);break;}}let _0x1028ba=_0x254128[_0x2f9dd3(0xdd)]('\x20');return _0x2c771f[_0x2f9dd3(0xcf)](_0x1028ba,_0x31da12)&&(_0x1028ba=_0x2f9dd3(0xdf)+_0x31da12),[_0x452ad7,_0x1028ba];}function sdkSetup(){const _0x46d588=a45_0x10e6b3,_0x1eba3f={};_0x1eba3f[_0x46d588(0xd6)]=_0x46d588(0xbc),_0x1eba3f[_0x46d588(0xb1)]=_0x46d588(0xba);const _0x5344cd=_0x1eba3f;if(helper[_0x46d588(0xb0)](config))return;config['source']=_0x5344cd[_0x46d588(0xd6)];try{utilities['fireFunnelTestEvent'](_0x5344cd[_0x46d588(0xb1)],{},config,'');}catch(_0x5700f4){logger[_0x46d588(0xed)](_0x46d588(0xbe)+_0x5700f4);}}logger[a45_0x10e6b3(0xc0)](a45_0x10e6b3(0xe5));
3
+ const a45_0x5ddff0=a45_0x2c67;(function(_0x3f8265,_0x34494f){const _0x15ead5=a45_0x2c67,_0x4cbd32=_0x3f8265();while(!![]){try{const _0x3ef448=-parseInt(_0x15ead5(0x160))/0x1*(-parseInt(_0x15ead5(0x18a))/0x2)+-parseInt(_0x15ead5(0x183))/0x3+parseInt(_0x15ead5(0x174))/0x4*(parseInt(_0x15ead5(0x154))/0x5)+-parseInt(_0x15ead5(0x16e))/0x6+-parseInt(_0x15ead5(0x178))/0x7+parseInt(_0x15ead5(0x190))/0x8*(-parseInt(_0x15ead5(0x173))/0x9)+parseInt(_0x15ead5(0x16f))/0xa;if(_0x3ef448===_0x34494f)break;else _0x4cbd32['push'](_0x4cbd32['shift']());}catch(_0x208a32){_0x4cbd32['push'](_0x4cbd32['shift']());}}}(a45_0x21d1,0x71a59));const fs=require('fs'),helper=require(a45_0x5ddff0(0x16c)),utilities=require(a45_0x5ddff0(0x191)),yaml=require('js-yaml'),yargs=require(a45_0x5ddff0(0x16b)),logger=require(a45_0x5ddff0(0x189))['winstonLogger'],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a45_0x5ddff0(0x180),configFile=process[a45_0x5ddff0(0x18f)]()+'/browserstack.yml',packageFile=process[a45_0x5ddff0(0x18f)]()+a45_0x5ddff0(0x171),frameworks=[a45_0x5ddff0(0x18b),'jest',a45_0x5ddff0(0x188),a45_0x5ddff0(0x184),'nightwatch',a45_0x5ddff0(0x17f),a45_0x5ddff0(0x179)];let config;logger[a45_0x5ddff0(0x193)](a45_0x5ddff0(0x16a)),createConfigurationFile(yargs[a45_0x5ddff0(0x157)][a45_0x5ddff0(0x192)],yargs['argv'][a45_0x5ddff0(0x172)],yargs[a45_0x5ddff0(0x157)][a45_0x5ddff0(0x179)]);try{sdkSetup();}catch(a45_0x2ff437){logger[a45_0x5ddff0(0x17a)](a45_0x5ddff0(0x168)+a45_0x2ff437);}addScriptInPackageJson();function createConfigurationFile(_0x57f63f,_0x1c4c08,_0x130eef=![]){const _0xd6466d=a45_0x5ddff0,_0x4cd57d={};_0x4cd57d[_0xd6466d(0x187)]='utf8',_0x4cd57d[_0xd6466d(0x18e)]=_0xd6466d(0x155),_0x4cd57d[_0xd6466d(0x158)]=_0xd6466d(0x176);const _0x50724a=_0x4cd57d;try{let _0x100b56=fs[_0xd6466d(0x161)](_0x130eef?configFileTemplatePW:configFileTemplate,_0x50724a[_0xd6466d(0x187)]);_0x57f63f&&(_0x100b56=_0x100b56[_0xd6466d(0x18c)](_0x50724a[_0xd6466d(0x18e)],_0x57f63f)),_0x1c4c08&&(_0x100b56=_0x100b56[_0xd6466d(0x18c)](_0x50724a['vxmgJ'],_0x1c4c08)),config=yaml['load'](_0x100b56),fs['writeFileSync'](configFile,_0x100b56,_0x1679e5=>{const _0x2ffb1b=_0xd6466d;_0x1679e5&&logger[_0x2ffb1b(0x195)](_0x1679e5);});}catch(_0x5ca214){logger[_0xd6466d(0x195)](_0x5ca214);}}function addPostInstallScript(_0x1da7b4,_0x56c2ce){const _0x52711b=a45_0x5ddff0,_0x29e801={};_0x29e801[_0x52711b(0x152)]=_0x52711b(0x159),_0x29e801[_0x52711b(0x15a)]=_0x52711b(0x15c),_0x29e801['InSlq']=_0x52711b(0x182);const _0x1d91ab=_0x29e801;let _0x2dbb58=_0x1da7b4[_0x1d91ab[_0x52711b(0x152)]];if(_0x2dbb58&&_0x2dbb58[_0x52711b(0x15d)](_0x1d91ab['YURYM']))return;!_0x2dbb58?_0x2dbb58=_0x1d91ab[_0x52711b(0x15a)]:_0x2dbb58+=_0x1d91ab[_0x52711b(0x194)],_0x56c2ce[_0x52711b(0x170)]([_0x1d91ab[_0x52711b(0x152)],_0x2dbb58]);}function addScriptInPackageJson(){const _0x158d0f=a45_0x5ddff0,_0x4b0590={'ZbKsw':_0x158d0f(0x181),'gztuv':function(_0x1f43ee,_0x4e42bc){return _0x1f43ee<_0x4e42bc;},'KasxF':function(_0x3fd751,_0x57ff8a,_0x112ecc){return _0x3fd751(_0x57ff8a,_0x112ecc);},'GJYZG':function(_0x552353,_0x1cb40e,_0x177284){return _0x552353(_0x1cb40e,_0x177284);},'OyUtq':function(_0x2a1bb7,_0x10d71e){return _0x2a1bb7!==_0x10d71e;},'MGXoK':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x2380c6=JSON['parse'](fs[_0x158d0f(0x161)](packageFile,_0x4b0590[_0x158d0f(0x17c)])),_0x2b1d46=[];for(let _0x147da4=0x0;_0x4b0590[_0x158d0f(0x164)](_0x147da4,frameworks[_0x158d0f(0x197)]);_0x147da4+=0x1){const _0x7115bf=_0x4b0590[_0x158d0f(0x163)](findScriptsWithFramework,_0x2380c6['scripts'],frameworks[_0x147da4]);for(let _0x46cb3e=0x0;_0x4b0590[_0x158d0f(0x164)](_0x46cb3e,_0x7115bf[_0x158d0f(0x197)]);_0x46cb3e+=0x1){_0x2b1d46[_0x158d0f(0x170)](_0x4b0590[_0x158d0f(0x15f)](getUpdatedCommand,_0x2380c6[_0x158d0f(0x177)],_0x7115bf[_0x46cb3e]));}_0x4b0590[_0x158d0f(0x163)](addPostInstallScript,_0x2380c6['scripts'],_0x2b1d46);}const _0x389c85={..._0x2380c6[_0x158d0f(0x177)]},_0x4c10e0=_0x389c85;for(let _0x3f4105=0x0;_0x4b0590[_0x158d0f(0x164)](_0x3f4105,_0x2b1d46['length']);_0x3f4105+=0x1){_0x4c10e0[_0x2b1d46[_0x3f4105][0x0]]=_0x2b1d46[_0x3f4105][0x1];}_0x4b0590[_0x158d0f(0x165)](JSON['stringify'](_0x2380c6[_0x158d0f(0x177)]),JSON[_0x158d0f(0x169)](_0x4c10e0))&&(logger['info'](_0x4b0590['MGXoK']),_0x2380c6[_0x158d0f(0x177)]=_0x4c10e0,fs[_0x158d0f(0x17d)](packageFile,JSON[_0x158d0f(0x169)](_0x2380c6,null,0x2),_0x5a5fb2=>{const _0x230409=_0x158d0f;_0x5a5fb2&&logger[_0x230409(0x195)](_0x5a5fb2);}));};function findScriptsWithFramework(_0x349b82,_0xcc3154){const _0x41be52=a45_0x5ddff0,_0x459373={};_0x459373['WELGS']=function(_0x256ae0,_0x1e9716){return _0x256ae0<_0x1e9716;},_0x459373[_0x41be52(0x166)]=_0x41be52(0x17b);const _0x491f0f=_0x459373,_0xfb47c7=[],_0x36287b=Object[_0x41be52(0x153)](_0x349b82);for(let _0xbdde4=0x0;_0x491f0f['WELGS'](_0xbdde4,_0x36287b[_0x41be52(0x197)]);_0xbdde4+=0x1){_0x36287b[_0xbdde4][0x1][_0x41be52(0x15d)](_0xcc3154)&&!_0x36287b[_0xbdde4][0x1]['includes'](_0x491f0f['swvbd'])&&_0xfb47c7[_0x41be52(0x170)](_0x36287b[_0xbdde4][0x0]);}return _0xfb47c7;}function getUpdatedCommand(_0xf7f592,_0x406495){const _0x3ac599=a45_0x5ddff0,_0x3b6574={};_0x3b6574[_0x3ac599(0x196)]=function(_0x10c343,_0x4f4790){return _0x10c343!==_0x4f4790;},_0x3b6574['GvOVW']=_0x3ac599(0x17b),_0x3b6574['OTDrC']=function(_0x167b79,_0x1d2cde){return _0x167b79===_0x1d2cde;};const _0x155fb6=_0x3b6574,_0x12ca78=_0x406495+_0x3ac599(0x15e),_0x344d=_0xf7f592[_0x406495],_0x2a2f24=_0x344d[_0x3ac599(0x162)]('\x20');for(const _0x127a88 of frameworks){if(_0x155fb6[_0x3ac599(0x196)](_0x2a2f24['indexOf'](_0x127a88),-0x1)){_0x2a2f24[_0x3ac599(0x16d)](_0x2a2f24[_0x3ac599(0x17e)](_0x127a88),0x0,_0x155fb6[_0x3ac599(0x185)]);break;}}let _0x2ffaf6=_0x2a2f24['join']('\x20');return _0x155fb6['OTDrC'](_0x2ffaf6,_0x344d)&&(_0x2ffaf6=_0x3ac599(0x167)+_0x344d),[_0x12ca78,_0x2ffaf6];}function a45_0x21d1(){const _0x3b3a95=['split','KasxF','gztuv','OyUtq','swvbd','browserstack-node-sdk\x20','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','stringify','Creating\x20configuration\x20file...','yargs','../helpers/helper','splice','136302duOGnR','13144240cuyqgp','push','/package.json','key','4246623AWaoDZ','540788YBQGyx','fireFunnelTestEvent','YOUR_ACCESS_KEY','scripts','2753828ZVfkaF','playwright','debug','browserstack-node-sdk','ZbKsw','writeFileSync','indexOf','codeceptjs','/../../browserstack.pw.yml.sample','utf8','\x20&&\x20npm\x20update\x20browserstack-node-sdk','2723940YmKaXe','node','GvOVW','Setup\x20completed','crcol','cucumber-js','../helpers/logger','271036bzsXgX','mocha','replace','isUndefined','NHnHP','cwd','8SOtmau','../helpers/utilities','username','info','InSlq','error','TVwGs','length','node-setup','bhiNp','entries','25YLpOJf','YOUR_USERNAME','EKeVv','argv','vxmgJ','postinstall','YURYM','jhEho','npm\x20update\x20browserstack-node-sdk','includes','-browserstack','GJYZG','2KBgumV','readFileSync'];a45_0x21d1=function(){return _0x3b3a95;};return a45_0x21d1();}function a45_0x2c67(_0x2d6ccb,_0x4b6bf4){const _0x21d15b=a45_0x21d1();return a45_0x2c67=function(_0x2c6701,_0x4420a6){_0x2c6701=_0x2c6701-0x151;let _0x181671=_0x21d15b[_0x2c6701];return _0x181671;},a45_0x2c67(_0x2d6ccb,_0x4b6bf4);}function sdkSetup(){const _0x1fa8d9=a45_0x5ddff0,_0x18b02d={};_0x18b02d[_0x1fa8d9(0x15b)]=_0x1fa8d9(0x151),_0x18b02d[_0x1fa8d9(0x156)]='SDKSetup';const _0x2b4843=_0x18b02d;if(helper[_0x1fa8d9(0x18d)](config))return;config['source']=_0x2b4843[_0x1fa8d9(0x15b)];try{utilities[_0x1fa8d9(0x175)](_0x2b4843['EKeVv'],{},config,'');}catch(_0x561e4b){logger[_0x1fa8d9(0x17a)](_0x1fa8d9(0x168)+_0x561e4b);}}logger[a45_0x5ddff0(0x193)](a45_0x5ddff0(0x186));