browserstack-node-sdk 1.32.16 → 1.33.0
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a62_0x5505(){const _0x128754=['debugLoggerFile','name','createLogger','228yZhKjf','transports','9423708PbdFLC','timestamp','debug','Console','path','73dujuuc','59076zMioDX','loggerFile','tmpdir','/usage-debug.log','level','5603479MBqHFC','log','30876iauZhD','printf','loggerConsole','format','8FfrRUi','2095119EteYTS','44jFPfQo','fileLogger','7865440NvggCA','8491180aeMkUA','YYYY-MM-DD\x20HH:mm:ss','join','mkdirSync','File'];a62_0x5505=function(){return _0x128754;};return a62_0x5505();}const a62_0x4a5a2e=a62_0x11e3;(function(_0x531b08,_0x3f28ca){const _0xd69a1c=a62_0x11e3,_0x3ad15c=_0x531b08();while(!![]){try{const _0xeb1551=-parseInt(_0xd69a1c(0x140))/0x1*(parseInt(_0xd69a1c(0x148))/0x2)+-parseInt(_0xd69a1c(0x159))/0x3*(-parseInt(_0xd69a1c(0x141))/0x4)+-parseInt(_0xd69a1c(0x150))/0x5+-parseInt(_0xd69a1c(0x15b))/0x6+parseInt(_0xd69a1c(0x146))/0x7*(parseInt(_0xd69a1c(0x14c))/0x8)+-parseInt(_0xd69a1c(0x14d))/0x9+parseInt(_0xd69a1c(0x151))/0xa*(parseInt(_0xd69a1c(0x14e))/0xb);if(_0xeb1551===_0x3f28ca)break;else _0x3ad15c['push'](_0x3ad15c['shift']());}catch(_0x504c6c){_0x3ad15c['push'](_0x3ad15c['shift']());}}}(a62_0x5505,0xc7346));const winston=require('winston'),os=require('os'),fs=require('fs'),path=require(a62_0x4a5a2e(0x13f)),logDir=a62_0x4a5a2e(0x147);!fs['existsSync'](logDir)&&fs[a62_0x4a5a2e(0x154)](logDir);const a62_0x49dea7={};a62_0x49dea7[a62_0x4a5a2e(0x157)]='console.info';const transports={'loggerConsole':new winston['transports'][(a62_0x4a5a2e(0x13e))](a62_0x49dea7),'loggerFile':new winston[(a62_0x4a5a2e(0x15a))][(a62_0x4a5a2e(0x155))]({'filename':path['join'](logDir,'/usage.log')}),'debugLoggerFile':new winston[(a62_0x4a5a2e(0x15a))]['File']({'filename':path[a62_0x4a5a2e(0x153)](os[a62_0x4a5a2e(0x143)](),a62_0x4a5a2e(0x144)),'level':a62_0x4a5a2e(0x13d)})},a62_0x59b261={};a62_0x59b261[a62_0x4a5a2e(0x14b)]=a62_0x4a5a2e(0x152);function a62_0x11e3(_0x175c21,_0x58d99a){const _0x550591=a62_0x5505();return a62_0x11e3=function(_0x11e36c,_0xb2bb10){_0x11e36c=_0x11e36c-0x13d;let _0x326e45=_0x550591[_0x11e36c];return _0x326e45;},a62_0x11e3(_0x175c21,_0x58d99a);}const a62_0x1b330f={};a62_0x1b330f['level']=!![];const winstonLoggerParams={'format':winston[a62_0x4a5a2e(0x14b)]['combine'](winston[a62_0x4a5a2e(0x14b)][a62_0x4a5a2e(0x15c)](a62_0x59b261),winston[a62_0x4a5a2e(0x14b)]['colorize'](a62_0x1b330f),winston[a62_0x4a5a2e(0x14b)][a62_0x4a5a2e(0x149)](_0xcd9789=>_0xcd9789[a62_0x4a5a2e(0x15c)]+'\x20-\x20'+_0xcd9789[a62_0x4a5a2e(0x145)]+':\x20'+_0xcd9789['message'])),'transports':[transports[a62_0x4a5a2e(0x14a)],transports['loggerFile'],transports[a62_0x4a5a2e(0x156)]]},a62_0x3d2be3={};a62_0x3d2be3[a62_0x4a5a2e(0x15a)]=[transports[a62_0x4a5a2e(0x142)]];const winstonFileLoggerParams=a62_0x3d2be3;exports['winstonLogger']=new winston[(a62_0x4a5a2e(0x158))](winstonLoggerParams),exports[a62_0x4a5a2e(0x14f)]=new winston[(a62_0x4a5a2e(0x158))](winstonFileLoggerParams),exports['logDir']=logDir,exports['transports']=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a63_0x8e59(){var _0x5497c0=['1973626IwTFtB','bs:addLog:','overrideTakeScreenshot','toISOString','overrideQuit','WvmTw','split','61244oZgCgC','12TsqfJl','9006340YYfVyi','IRoVj','takeScreenshot','6651918SSAozj','initQuit','bZtDj','initScreenshot','patchScreenshot','oQnvd','uVbVD','quitCount_','1jeXOhW','ZoSJE','3|1|4|2|0','174mzQiIG','lGuQl','2345gpmtkw','patchQuit','TToyq','quit','5096TiJwjO','160525IyZrCy','21717982yRdQAR','BS_TESTOPS_ALLOW_SCREENSHOTS','TEST_SCREENSHOT','12MRqZqL','sInWB','true','aodoj'];a63_0x8e59=function(){return _0x5497c0;};return a63_0x8e59();}function a63_0x2894(_0xcac0ac,_0x58e0c0){var _0x8e5986=a63_0x8e59();return a63_0x2894=function(_0x289452,_0x1f34e9){_0x289452=_0x289452-0xbc;var _0x4c8f66=_0x8e5986[_0x289452];return _0x4c8f66;},a63_0x2894(_0xcac0ac,_0x58e0c0);}var a63_0x4abb81=a63_0x2894;(function(_0x22bb99,_0x5c4c46){var _0x125330=a63_0x2894,_0x464cba=_0x22bb99();while(!![]){try{var _0x2dd66f=parseInt(_0x125330(0xca))/0x1*(parseInt(_0x125330(0xdc))/0x2)+parseInt(_0x125330(0xbe))/0x3*(-parseInt(_0x125330(0xbd))/0x4)+parseInt(_0x125330(0xd4))/0x5*(-parseInt(_0x125330(0xcd))/0x6)+parseInt(_0x125330(0xcf))/0x7*(parseInt(_0x125330(0xd3))/0x8)+-parseInt(_0x125330(0xc2))/0x9+-parseInt(_0x125330(0xbf))/0xa+parseInt(_0x125330(0xd5))/0xb*(parseInt(_0x125330(0xd8))/0xc);if(_0x2dd66f===_0x5c4c46)break;else _0x464cba['push'](_0x464cba['shift']());}catch(_0x473e6e){_0x464cba['push'](_0x464cba['shift']());}}}(a63_0x8e59,0x84751),exports[a63_0x4abb81(0xde)]=_0x1a4704=>{var _0x9c433c=a63_0x4abb81,_0x487d6a={'TQrNc':'3|2|5|1|0|4','bZtDj':function(_0x353eed,_0x26eb3d){return _0x353eed!==_0x26eb3d;},'MseQq':_0x9c433c(0xda),'sInWB':_0x9c433c(0xd7),'LGBXN':function(_0x2127bb,_0x291e46){return _0x2127bb(_0x291e46);}},_0x3e48c3=_0x487d6a['TQrNc'][_0x9c433c(0xbc)]('|'),_0x3e0849=0x0;while(!![]){switch(_0x3e48c3[_0x3e0849++]){case'0':_0x1a4704[_0x9c433c(0xc5)]=_0x1a4704[_0x9c433c(0xc1)];continue;case'1':_0x1a4704[_0x9c433c(0xc6)]=!![];continue;case'2':if(_0x487d6a[_0x9c433c(0xc4)](process['env'][_0x9c433c(0xd6)],_0x487d6a['MseQq']))return;continue;case'3':var _0x52c551={'WvmTw':_0x487d6a[_0x9c433c(0xd9)],'IRoVj':function(_0x241aec,_0x28d26e){return _0x487d6a['LGBXN'](_0x241aec,_0x28d26e);}};continue;case'4':_0x1a4704[_0x9c433c(0xc1)]=()=>{return new Promise(function(_0x2455ad,_0x2efebf){var _0x1d3df4=a63_0x2894,_0x3d326c={'aodoj':_0x52c551[_0x1d3df4(0xe1)],'lGuQl':function(_0x358b41,_0x5bd0e0){var _0x8682dc=_0x1d3df4;return _0x52c551[_0x8682dc(0xc0)](_0x358b41,_0x5bd0e0);}};_0x1a4704[_0x1d3df4(0xc5)]()['then'](_0xcda6b9=>{var _0x3a8028=_0x1d3df4;process['emit'](_0x3a8028(0xdd)+process['pid'],{'timestamp':new Date()[_0x3a8028(0xdf)](),'message':_0xcda6b9,'kind':_0x3d326c[_0x3a8028(0xdb)]}),_0x3d326c[_0x3a8028(0xce)](_0x2455ad,_0xcda6b9);});});};continue;case'5':if(_0x1a4704[_0x9c433c(0xc6)])return;continue;}break;}},exports[a63_0x4abb81(0xe0)]=(_0x4ef3b0,_0x549064=null)=>{var _0x12d2b6=a63_0x4abb81,_0xf3f65a={'ZoSJE':_0x12d2b6(0xcc),'MMwsx':function(_0xd9c3e3){return _0xd9c3e3();},'oQnvd':function(_0x3b4100,_0x37e1b2){return _0x3b4100>_0x37e1b2;}},_0x25d195=_0xf3f65a[_0x12d2b6(0xcb)]['split']('|'),_0x340878=0x0;while(!![]){switch(_0x25d195[_0x340878++]){case'0':_0x4ef3b0[_0x12d2b6(0xd2)]=()=>{var _0x342d77=_0x12d2b6;if(_0x549064){_0x549064[_0x342d77(0xc9)]+=0x1;if(_0x3924ee['sXDmV'](_0x549064[_0x342d77(0xc9)],0x1))return _0x4ef3b0[_0x342d77(0xc3)]();}else{_0x4ef3b0[_0x342d77(0xc9)]+=0x1;if(_0x3924ee[_0x342d77(0xd1)](_0x4ef3b0[_0x342d77(0xc9)],0x1))return _0x4ef3b0['initQuit']();}return new Promise(function(_0x44b976){var _0x4c13df=_0x342d77;_0x3924ee[_0x4c13df(0xc8)](_0x44b976);});};continue;case'1':if(_0x4ef3b0[_0x12d2b6(0xd0)])return;continue;case'2':_0x4ef3b0['initQuit']=_0x4ef3b0['quit'];continue;case'3':var _0x3924ee={'uVbVD':function(_0x1fb91f){return _0xf3f65a['MMwsx'](_0x1fb91f);},'sXDmV':function(_0x32e86a,_0x3971b2){return _0xf3f65a['oQnvd'](_0x32e86a,_0x3971b2);},'TToyq':function(_0x1099b1,_0x1897aa){var _0x4a8911=_0x12d2b6;return _0xf3f65a[_0x4a8911(0xc7)](_0x1099b1,_0x1897aa);}};continue;case'4':_0x4ef3b0[_0x12d2b6(0xd0)]=!![];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0x42d0(_0x7a76da,_0xe58e76){const _0x5d3b4b=a64_0x5d3b();return a64_0x42d0=function(_0x42d094,_0x5d0005){_0x42d094=_0x42d094-0x8f;let _0x3c702e=_0x5d3b4b[_0x42d094];return _0x3c702e;},a64_0x42d0(_0x7a76da,_0xe58e76);}const a64_0x2650f3=a64_0x42d0;(function(_0x28c1b2,_0x5bfdc7){const _0x175df2=a64_0x42d0,_0x3d3db4=_0x28c1b2();while(!![]){try{const _0xce56ee=parseInt(_0x175df2(0xac))/0x1*(-parseInt(_0x175df2(0x9d))/0x2)+-parseInt(_0x175df2(0x90))/0x3+-parseInt(_0x175df2(0xb1))/0x4+parseInt(_0x175df2(0xd8))/0x5*(-parseInt(_0x175df2(0xce))/0x6)+-parseInt(_0x175df2(0xda))/0x7+-parseInt(_0x175df2(0xca))/0x8+parseInt(_0x175df2(0xd3))/0x9*(parseInt(_0x175df2(0xcc))/0xa);if(_0xce56ee===_0x5bfdc7)break;else _0x3d3db4['push'](_0x3d3db4['shift']());}catch(_0x525f2a){_0x3d3db4['push'](_0x3d3db4['shift']());}}}(a64_0x5d3b,0xc8d7d));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),helper=require('../helper'),logger=require('../logger')[a64_0x2650f3(0xbc)],{logDir}=require(a64_0x2650f3(0x8f)),testHubConstants=require(a64_0x2650f3(0xb4)),PercyBinary=require(a64_0x2650f3(0xc7));function a64_0x5d3b(){const _0x110fc8=['pipe','tmpdir','VSwPP','GET','Ytwds','46XLLOnI','tqZcG','PZBTb','RAdZT',':start','close','stderr','&type=','bwJVQ','txsIY','token','JByrk','healthcheck','exports','projectName','5793AXjoqC','stop','VGncI','data','exec:stop','6264760uwYUzQ','NeaIe','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','../../helpers/testhub/constants','app','version','VsIcd','debug','fUVhK','PERCY_SERVER_ADDRESS','jhoEA','winstonLogger','HbfRM','Percy\x20config\x20created\x20at\x20','stdout','BROWSERSTACK_TESTHUB_UUID','percyOptions','app:exec','join','JGMLK','flags','ldJgD','./PercyBinary','ENV_VAR','isProcessRunning','2827312ySjjzB','http://localhost:5338','10AcOyvl','kXRdQ','1734wOeofM','isRunning','fetchPercyToken','uxKuO','stringify','39995829ihDxlZ','writeFile','percy.log','jYdAt','push','8665nadphy','getBinaryPath','880691wlkdfK','hOrrT','error','zPwsc','../logger','2825505kYCLCg','Percy\x20fetch\x20token\x20success','createWriteStream','env','createPercyConfig','percy/healthcheck','AAHtr','XxcSD'];a64_0x5d3b=function(){return _0x110fc8;};return a64_0x5d3b();}class Percy{#logfile=path[a64_0x2650f3(0xc3)](logDir,a64_0x2650f3(0xd5));#address=process[a64_0x2650f3(0x93)][a64_0x2650f3(0xba)]||a64_0x2650f3(0xcb);#binaryPath=null;#config=null;#proc=null;#isApp=![];['isProcessRunning']=![];constructor(_0x11eb46){const _0x20af51=a64_0x2650f3;this.#config=_0x11eb46,!!_0x11eb46[_0x20af51(0xb5)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x484bb8=a64_0x2650f3;if(!this.#binaryPath){const _0x1417c9=new PercyBinary();this.#binaryPath=await _0x1417c9[_0x484bb8(0xd9)](this.#config);}return this.#binaryPath;}async #sleep(_0x5aabed){return new Promise(_0x3fe8c4=>setTimeout(_0x3fe8c4,_0x5aabed));}async['healthcheck'](){const _0x3c58aa=a64_0x2650f3,_0x8a2f2a={};_0x8a2f2a[_0x3c58aa(0x96)]=_0x3c58aa(0x9b),_0x8a2f2a['JGMLK']=_0x3c58aa(0x95);const _0x38f576=_0x8a2f2a;try{const _0x53e1cd=await helper['nodeRequest'](_0x38f576[_0x3c58aa(0x96)],_0x38f576[_0x3c58aa(0xc4)],null,null,this.#address);if(_0x53e1cd)return!![];}catch(_0x598354){return![];}}async['start'](){const _0x45a554=a64_0x2650f3,_0x26e255={'ldJgD':_0x45a554(0xc2),'tqZcG':'exec','kXRdQ':function(_0x3a52ef,_0x2c26d6,_0xcf5a87,_0x41226d){return _0x3a52ef(_0x2c26d6,_0xcf5a87,_0x41226d);},'VGncI':_0x45a554(0xa2),'HbfRM':'Percy\x20healthcheck\x20successful'},_0x4f8de4=await this.#getBinaryPath(),_0x543908={};_0x543908[_0x45a554(0xc5)]='a';const _0x5870df=fs[_0x45a554(0x92)](this.#logfile,_0x543908),_0x10d0a4=await this[_0x45a554(0xd0)](),_0x207893=await this[_0x45a554(0x94)]();if(!_0x10d0a4)return![];const _0x1607d6=[(this.#isApp?_0x26e255[_0x45a554(0xc6)]:_0x26e255[_0x45a554(0x9e)])+_0x45a554(0xa1)];_0x207893&&_0x1607d6[_0x45a554(0xd7)]('-c',_0x207893);this.#proc=_0x26e255[_0x45a554(0xcd)](spawn,_0x4f8de4,_0x1607d6,{'env':Object['assign'](process['env'],{'PERCY_TOKEN':_0x10d0a4,'TH_BUILD_UUID':process[_0x45a554(0x93)][testHubConstants[_0x45a554(0xc8)][_0x45a554(0xc0)]]})}),this.#proc[_0x45a554(0xbf)][_0x45a554(0x98)](_0x5870df),this.#proc[_0x45a554(0xa3)][_0x45a554(0x98)](_0x5870df),this['isProcessRunning']=!![];var _0x22719b=this;this.#proc['on'](_0x26e255[_0x45a554(0xae)],function(_0x7e913a){const _0x4fedca=_0x45a554;_0x22719b[_0x4fedca(0xc9)]=![];});do{const _0x183fa3=await this[_0x45a554(0xa9)]();if(_0x183fa3)return logger[_0x45a554(0xb8)](_0x26e255[_0x45a554(0xbd)]),!![];await this.#sleep(0x3e8);}while(this[_0x45a554(0xc9)]);return![];}async[a64_0x2650f3(0xad)](){const _0x51aa1c=a64_0x2650f3,_0xa252d8={'zPwsc':function(_0x42490,_0xbffb72){return _0x42490(_0xbffb72);},'txsIY':function(_0x389145,_0xb8cb43,_0xc1da0e){return _0x389145(_0xb8cb43,_0xc1da0e);},'hOrrT':_0x51aa1c(0xb0),'jhoEA':_0x51aa1c(0xa2)},_0x192dae=await this.#getBinaryPath();return new Promise((_0x2bc2b4,_0x1c18e2)=>{const _0x376903=_0x51aa1c,_0x1a4d8f={'NeaIe':function(_0x7f9af2,_0x5baccc){const _0x3288f0=a64_0x42d0;return _0xa252d8[_0x3288f0(0xdd)](_0x7f9af2,_0x5baccc);}},_0x57cb11=_0xa252d8[_0x376903(0xa6)](spawn,_0x192dae,[_0xa252d8[_0x376903(0xdb)]]);_0x57cb11['on'](_0xa252d8[_0x376903(0xbb)],_0x2e94c9=>{const _0x217758=_0x376903;this['isProcessRunning']=![],_0x1a4d8f[_0x217758(0xb2)](_0x2bc2b4,_0x2e94c9);});});}[a64_0x2650f3(0xcf)](){const _0x3740a3=a64_0x2650f3;return this[_0x3740a3(0xc9)];}async[a64_0x2650f3(0xd0)](){const _0x1632dd=a64_0x2650f3,_0x1ca72c={};_0x1ca72c[_0x1632dd(0xd1)]='app',_0x1ca72c['RAdZT']='automate',_0x1ca72c[_0x1632dd(0x9a)]=_0x1632dd(0x9b),_0x1ca72c[_0x1632dd(0xa8)]=_0x1632dd(0x91);const _0x55b37b=_0x1ca72c,_0x33774a=this.#config[_0x1632dd(0xab)];try{const _0x4e08aa=this.#isApp?_0x55b37b[_0x1632dd(0xd1)]:_0x55b37b[_0x1632dd(0xa0)],_0x1d218a=await helper['nodeRequest'](_0x55b37b['VSwPP'],'api/app_percy/get_project_token?name='+_0x33774a+_0x1632dd(0xa4)+_0x4e08aa,{},this.#config),_0x458d81=_0x1d218a[_0x1632dd(0xaf)];return logger[_0x1632dd(0xb8)](_0x55b37b[_0x1632dd(0xa8)]),_0x458d81[_0x1632dd(0xa7)];}catch(_0xf5455a){return logger[_0x1632dd(0xdc)](_0x1632dd(0xb3)+_0xf5455a),null;}}async[a64_0x2650f3(0x94)](){const _0x273e22=a64_0x2650f3,_0x3628cc={'jYdAt':function(_0x377010,_0x18b07a){return _0x377010(_0x18b07a);},'bwJVQ':function(_0x267142,_0x455c64){return _0x267142+_0x455c64;},'XxcSD':_0x273e22(0xbe),'Ytwds':'percy.json'};if(!this.#config[_0x273e22(0xc1)])return null;const _0x13d845=path['join'](os[_0x273e22(0x99)](),_0x3628cc[_0x273e22(0x9c)]),_0xc8c058=this.#config[_0x273e22(0xc1)];return!_0xc8c058[_0x273e22(0xb6)]&&(_0xc8c058[_0x273e22(0xb6)]='2'),new Promise((_0x380506,_0x5a4cf3)=>{const _0x1f1c70=_0x273e22,_0x23ae3c={'PZBTb':function(_0x992abb,_0x343867){const _0x41a463=a64_0x42d0;return _0x3628cc[_0x41a463(0xd6)](_0x992abb,_0x343867);},'VsIcd':function(_0x20daeb,_0x543748){const _0x4ed9be=a64_0x42d0;return _0x3628cc[_0x4ed9be(0xa5)](_0x20daeb,_0x543748);},'fUVhK':_0x3628cc[_0x1f1c70(0x97)]};fs[_0x1f1c70(0xd4)](_0x13d845,JSON[_0x1f1c70(0xd2)](_0xc8c058),_0x45b5e4=>{const _0x3147a5=_0x1f1c70;_0x45b5e4&&(logger['error']('Error\x20creating\x20percy\x20config:\x20'+_0x45b5e4),_0x23ae3c[_0x3147a5(0x9f)](_0x380506,null)),logger['debug'](_0x23ae3c[_0x3147a5(0xb7)](_0x23ae3c[_0x3147a5(0xb9)],_0x13d845)),_0x23ae3c[_0x3147a5(0x9f)](_0x380506,_0x13d845);});});}}module[a64_0x2650f3(0xaa)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x1c132b=a65_0x244a;(function(_0x5685e6,_0x10cb26){const _0x1f2740=a65_0x244a,_0x539611=_0x5685e6();while(!![]){try{const _0x2c8add=parseInt(_0x1f2740(0x151))/0x1*(parseInt(_0x1f2740(0x176))/0x2)+parseInt(_0x1f2740(0x148))/0x3*(-parseInt(_0x1f2740(0x16d))/0x4)+parseInt(_0x1f2740(0x18e))/0x5+-parseInt(_0x1f2740(0x190))/0x6*(-parseInt(_0x1f2740(0x170))/0x7)+parseInt(_0x1f2740(0x16c))/0x8*(-parseInt(_0x1f2740(0x19f))/0x9)+parseInt(_0x1f2740(0x150))/0xa+-parseInt(_0x1f2740(0x134))/0xb*(-parseInt(_0x1f2740(0x17c))/0xc);if(_0x2c8add===_0x10cb26)break;else _0x539611['push'](_0x539611['shift']());}catch(_0x34b90e){_0x539611['push'](_0x539611['shift']());}}}(a65_0x57e7,0x4acb9));const {https}=require(a65_0x1c132b(0x15e)),url=require(a65_0x1c132b(0x13c)),yauzl=require('yauzl'),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a65_0x1c132b(0x140)),HttpsProxyAgent=require(a65_0x1c132b(0x1a6)),logger=require('../logger')['winstonLogger'];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a65_0x1c132b(0x17f);#orderedPaths=[path[a65_0x1c132b(0x12d)](this.#homedir(),a65_0x1c132b(0x177)),process[a65_0x1c132b(0x16e)](),os[a65_0x1c132b(0x181)]()];constructor(){const _0x267e8f=a65_0x1c132b,_0x26cab7={};_0x26cab7[_0x267e8f(0x172)]=_0x267e8f(0x12b),_0x26cab7[_0x267e8f(0x191)]=function(_0xcfdcaa,_0x1c4d5e){return _0xcfdcaa+_0x1c4d5e;},_0x26cab7[_0x267e8f(0x137)]=_0x267e8f(0x159),_0x26cab7[_0x267e8f(0x1ab)]=function(_0xb6bc69,_0x5b5ff3){return _0xb6bc69+_0x5b5ff3;},_0x26cab7['bskUx']=_0x267e8f(0x19d),_0x26cab7[_0x267e8f(0x12f)]=_0x267e8f(0x178),_0x26cab7[_0x267e8f(0x194)]=_0x267e8f(0x169);const _0x4ad8b9=_0x26cab7,_0x1ba1a3=_0x4ad8b9['WWUaZ'];if(this.#hostOS[_0x267e8f(0x174)](/darwin|mac os/i))this.#httpPath=_0x4ad8b9[_0x267e8f(0x191)](_0x1ba1a3,_0x4ad8b9[_0x267e8f(0x137)]);else this.#hostOS[_0x267e8f(0x174)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4ad8b9[_0x267e8f(0x1ab)](_0x1ba1a3,_0x4ad8b9[_0x267e8f(0x1a1)]),this.#binaryName=_0x4ad8b9['lWbYj']):this.#httpPath=_0x4ad8b9[_0x267e8f(0x1ab)](_0x1ba1a3,_0x4ad8b9[_0x267e8f(0x194)]);}#getAvailableDirs(){const _0x4daae5=a65_0x1c132b,_0x534779={};_0x534779[_0x4daae5(0x198)]=function(_0x592310,_0x4ac96d){return _0x592310<_0x4ac96d;},_0x534779[_0x4daae5(0x15d)]=_0x4daae5(0x195);const _0x59485a=_0x534779;for(var _0x40b9ae=0x0;_0x59485a[_0x4daae5(0x198)](_0x40b9ae,this.#orderedPaths[_0x4daae5(0x16b)]);_0x40b9ae++){var _0x46ad6e=this.#orderedPaths[_0x40b9ae];if(this.#makePath(_0x46ad6e))return _0x46ad6e;}throw new Error(_0x59485a[_0x4daae5(0x15d)]);}#makePath(_0x4a3cfa){const _0x388d72=a65_0x1c132b;try{return!this.#checkPath(_0x4a3cfa)&&fs[_0x388d72(0x13b)](_0x4a3cfa),!![];}catch{return![];}}#checkPath(_0xd94323,_0x4d748a){const _0x490f96=a65_0x1c132b,_0x202e48={};_0x202e48[_0x490f96(0x1ac)]=function(_0x282266,_0x1a2591){return _0x282266|_0x1a2591;},_0x202e48[_0x490f96(0x184)]=function(_0x5f2bf9,_0x339ac3){return _0x5f2bf9!==_0x339ac3;},_0x202e48[_0x490f96(0x162)]=_0x490f96(0x15f);const _0xf791f4=_0x202e48;_0x4d748a=_0x4d748a||_0xf791f4[_0x490f96(0x1ac)](fs[_0x490f96(0x167)],fs[_0x490f96(0x149)]);try{return fs['accessSync'](_0xd94323,_0x4d748a),!![];}catch(_0x303dfe){if(_0xf791f4[_0x490f96(0x184)](typeof fs[_0x490f96(0x1a5)],_0xf791f4['yBRaX']))return![];try{return fs['statSync'](_0xd94323),!![];}catch(_0x260c18){return![];}}}async[a65_0x1c132b(0x147)](_0x5206f9){const _0x491164=a65_0x1c132b,_0xcaf03d={};_0xcaf03d['sUzld']=_0x491164(0x185);const _0x4f121f=_0xcaf03d;var _0x298e52=this.#getAvailableDirs(),_0x11cb7e=path[_0x491164(0x12d)](_0x298e52,this.#binaryName);if(this.#checkPath(_0x11cb7e,fs[_0x491164(0x187)]))return _0x11cb7e;const _0x2efcac=await this[_0x491164(0x14a)](_0x5206f9,_0x298e52),_0x5b60fd=await this['validateBinary'](_0x2efcac);if(!_0x5b60fd)return logger[_0x491164(0x145)](_0x4f121f[_0x491164(0x136)]),await this['download'](_0x5206f9,_0x298e52);return _0x2efcac;}async['validateBinary'](_0x51d6b1){const _0x533f6e=a65_0x1c132b,_0x6bd09f={'XuELf':function(_0x29c05f,_0x49a81d){return _0x29c05f(_0x49a81d);},'QjKnK':function(_0x6da998,_0x109fbb,_0x49bf96){return _0x6da998(_0x109fbb,_0x49bf96);},'LaMdK':_0x533f6e(0x18d),'pJFIv':_0x533f6e(0x1a8),'keYuH':_0x533f6e(0x1a0)},_0x3bcf6f=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x4995a4,_0x1c3657)=>{const _0x4ff53f=_0x533f6e,_0x3d3910={'odHJS':function(_0x41c34e,_0x219181){return _0x6bd09f['XuELf'](_0x41c34e,_0x219181);}},_0x59c2f7=_0x6bd09f[_0x4ff53f(0x18c)](spawn,_0x51d6b1,[_0x6bd09f[_0x4ff53f(0x189)]]);_0x59c2f7[_0x4ff53f(0x17d)]['on'](_0x6bd09f[_0x4ff53f(0x14c)],_0x23acc9=>{const _0x2abd3a=_0x4ff53f;_0x3bcf6f[_0x2abd3a(0x17a)](_0x23acc9)&&_0x3d3910[_0x2abd3a(0x171)](_0x4995a4,!![]);}),_0x59c2f7['on'](_0x6bd09f[_0x4ff53f(0x153)],()=>{const _0x3b1420=_0x4ff53f;_0x3d3910[_0x3b1420(0x171)](_0x4995a4,![]);});});}[a65_0x1c132b(0x14a)](_0xd963ce,_0x15f582){const _0x26d04d=a65_0x1c132b,_0x538c08={'RxrJX':function(_0x5ad1e2,_0x18b7f6){return _0x5ad1e2(_0x18b7f6);},'gOdkm':_0x26d04d(0x146),'TFiiF':function(_0x4ab33a,_0x25bd39){return _0x4ab33a(_0x25bd39);},'MzcqN':_0x26d04d(0x183),'adFel':_0x26d04d(0x145),'dVfSF':'end','QnnQv':function(_0x40e38f,_0x5d670b){return _0x40e38f===_0x5d670b;},'pfmeg':'close','vOKsq':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','MpJwr':function(_0x306f2b,_0x299f1d){return _0x306f2b(_0x299f1d);},'JzDCW':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','JSrdi':_0x26d04d(0x161),'HsErU':function(_0x338b86,_0x4bbfe7){return _0x338b86+_0x4bbfe7;},'SSHYb':_0x26d04d(0x168),'rMxbW':_0x26d04d(0x155)};!this.#checkPath(_0x15f582)&&fs[_0x26d04d(0x13b)](_0x15f582);const _0x3335a2=this.#binaryName,_0x34f893=path['join'](_0x15f582,_0x538c08[_0x26d04d(0x193)](_0x3335a2,_0x538c08[_0x26d04d(0x182)])),_0x3d644d=path[_0x26d04d(0x12d)](_0x15f582,_0x3335a2),_0x459dff=fs[_0x26d04d(0x175)](_0x34f893),_0x5b1cde=url['parse'](this.#httpPath);if(_0xd963ce['proxyHost']&&_0xd963ce[_0x26d04d(0x14e)]){const _0x5a6e10={};_0x5a6e10[_0x26d04d(0x199)]=_0xd963ce[_0x26d04d(0x13e)],_0x5a6e10[_0x26d04d(0x152)]=_0xd963ce[_0x26d04d(0x14e)],_0x5b1cde[_0x26d04d(0x13a)]=new HttpsProxyAgent(_0x5a6e10);}if(_0xd963ce[_0x26d04d(0x16a)])try{_0x5b1cde['ca']=fs['readFileSync'](_0xd963ce[_0x26d04d(0x16a)]);}catch(_0x3e9def){logger[_0x26d04d(0x145)](_0x538c08[_0x26d04d(0x1af)],_0x3e9def);}return new Promise((_0x412f4a,_0x41bd39)=>{const _0x125a59=_0x26d04d,_0x4ff56c={'LAUWg':_0x538c08['JzDCW'],'zXWUl':function(_0x15d265,_0x194f73){const _0xc3003=a65_0x244a;return _0x538c08[_0xc3003(0x17b)](_0x15d265,_0x194f73);},'AgPVj':_0x538c08[_0x125a59(0x1a3)],'BCLty':function(_0x1125ef,_0x38dc67){const _0x2d2d3d=_0x125a59;return _0x538c08[_0x2d2d3d(0x17b)](_0x1125ef,_0x38dc67);}};https['get'](_0x5b1cde,function(_0x54fc69){const _0x296cce=_0x125a59,_0x2c90d5={'lnJEO':function(_0x58ca11,_0x4647d3){const _0x1a4528=a65_0x244a;return _0x538c08[_0x1a4528(0x166)](_0x58ca11,_0x4647d3);},'vcFTU':_0x538c08[_0x296cce(0x179)],'vjApe':function(_0x5eeb5a,_0x4c9693){const _0x34ae8f=_0x296cce;return _0x538c08[_0x34ae8f(0x17b)](_0x5eeb5a,_0x4c9693);},'SfLWx':_0x538c08[_0x296cce(0x143)],'sLUkY':_0x538c08[_0x296cce(0x129)],'DrXxg':_0x538c08[_0x296cce(0x188)],'Geode':function(_0x4f9e95,_0x553d27){const _0x532a46=_0x296cce;return _0x538c08[_0x532a46(0x197)](_0x4f9e95,_0x553d27);}};_0x54fc69['pipe'](_0x459dff),_0x54fc69['on'](_0x538c08[_0x296cce(0x129)],function(_0xae81ce){const _0x345e88=_0x296cce;logger[_0x345e88(0x145)](_0x4ff56c[_0x345e88(0x163)],_0xae81ce),_0x4ff56c[_0x345e88(0x133)](_0x41bd39,_0xae81ce);}),_0x459dff['on'](_0x538c08[_0x296cce(0x129)],function(_0x1d1a7b){const _0x4b70b0=_0x296cce;logger['error'](_0x4ff56c['AgPVj'],_0x1d1a7b),_0x4ff56c[_0x4b70b0(0x142)](_0x41bd39,_0x1d1a7b);}),_0x459dff['on'](_0x538c08[_0x296cce(0x1b0)],function(){const _0x3594b6=_0x296cce,_0x4ca745={'efQsu':function(_0x342647,_0x260059){const _0xcf9c52=a65_0x244a;return _0x2c90d5[_0xcf9c52(0x19b)](_0x342647,_0x260059);},'qqieq':_0x2c90d5[_0x3594b6(0x14b)],'tmuNl':function(_0x190f5b,_0x3cfc2b){return _0x2c90d5['Geode'](_0x190f5b,_0x3cfc2b);}},_0x1a2b3c={};_0x1a2b3c[_0x3594b6(0x15a)]=!![],yauzl[_0x3594b6(0x1a2)](_0x34f893,_0x1a2b3c,function(_0x1b7d42,_0x488dd8){const _0x46a98b=_0x3594b6,_0x55e773={'UWPrZ':function(_0x1e09d6,_0x96cc15){return _0x2c90d5['lnJEO'](_0x1e09d6,_0x96cc15);},'aHMQP':_0x2c90d5[_0x46a98b(0x196)]};_0x1b7d42&&_0x2c90d5[_0x46a98b(0x19b)](_0x41bd39,_0x1b7d42),_0x488dd8[_0x46a98b(0x1ad)](),_0x488dd8['on'](_0x2c90d5[_0x46a98b(0x139)],_0x45815c=>{const _0x5e4a82=_0x46a98b,_0x3c31ff={'PDBJl':function(_0x324e7c,_0x1f530c){return _0x4ca745['efQsu'](_0x324e7c,_0x1f530c);},'IVFGE':_0x4ca745[_0x5e4a82(0x154)]};if(/\/$/['test'](_0x45815c['fileName']))_0x488dd8['readEntry']();else{const _0x5b107f=fs[_0x5e4a82(0x175)](path[_0x5e4a82(0x12d)](_0x15f582,_0x45815c[_0x5e4a82(0x135)]));_0x488dd8[_0x5e4a82(0x14d)](_0x45815c,function(_0x50068d,_0x3c48f3){const _0x204251=_0x5e4a82;_0x50068d&&_0x3c31ff[_0x204251(0x144)](_0x41bd39,_0x1b7d42),_0x3c48f3['on'](_0x3c31ff[_0x204251(0x12e)],function(){const _0x10480b=_0x204251;_0x5b107f[_0x10480b(0x1a0)](),_0x488dd8[_0x10480b(0x1ad)]();}),_0x3c48f3[_0x204251(0x18a)](_0x5b107f);}),_0x4ca745[_0x5e4a82(0x14f)](_0x45815c[_0x5e4a82(0x135)],_0x3335a2)&&_0x488dd8[_0x5e4a82(0x1a0)]();}}),_0x488dd8['on'](_0x2c90d5[_0x46a98b(0x186)],_0x244c37=>{const _0x49963a=_0x46a98b;_0x55e773[_0x49963a(0x13f)](_0x41bd39,_0x244c37);}),_0x488dd8[_0x46a98b(0x158)](_0x2c90d5[_0x46a98b(0x14b)],()=>{const _0x569c53=_0x46a98b;fs[_0x569c53(0x1aa)](_0x3d644d,_0x55e773[_0x569c53(0x1a4)],function(_0x3f0c02){const _0x5e74cd=_0x569c53;_0x3f0c02&&_0x55e773['UWPrZ'](_0x41bd39,_0x3f0c02),_0x55e773[_0x5e74cd(0x13f)](_0x412f4a,_0x3d644d);}),_0x488dd8[_0x569c53(0x1a0)]();});});});})['on'](_0x538c08[_0x125a59(0x129)],function(_0x20b9ee){const _0x49aea9=_0x125a59;logger['error'](_0x538c08[_0x49aea9(0x15b)],_0x20b9ee),_0x538c08[_0x49aea9(0x12a)](_0x41bd39,_0x20b9ee);});});}#homedir(){const _0x1f984f=a65_0x1c132b,_0xf7767b={};_0xf7767b[_0x1f984f(0x131)]=function(_0x4cb3a7,_0x3628d1){return _0x4cb3a7===_0x3628d1;},_0xf7767b['NbecU']='function',_0xf7767b['OfETc']='win32',_0xf7767b[_0x1f984f(0x130)]=function(_0x270779,_0x4b520a){return _0x270779+_0x4b520a;},_0xf7767b[_0x1f984f(0x138)]=_0x1f984f(0x19e),_0xf7767b[_0x1f984f(0x141)]=function(_0xf49a02,_0x4d8736){return _0xf49a02+_0x4d8736;},_0xf7767b['FzcRS']=_0x1f984f(0x17e),_0xf7767b[_0x1f984f(0x156)]=_0x1f984f(0x1a7),_0xf7767b[_0x1f984f(0x18f)]=function(_0x4b62d8,_0xd0c63f){return _0x4b62d8===_0xd0c63f;},_0xf7767b[_0x1f984f(0x1a9)]='/root',_0xf7767b['ccHJA']=_0x1f984f(0x19a),_0xf7767b['Zyisf']=function(_0x4c0b4b,_0x21074a){return _0x4c0b4b||_0x21074a;};const _0x41edbb=_0xf7767b;if(_0x41edbb[_0x1f984f(0x131)](typeof os[_0x1f984f(0x157)],_0x41edbb['NbecU']))return os[_0x1f984f(0x157)]();const _0x1ed45d=process[_0x1f984f(0x160)],_0x248463=_0x1ed45d[_0x1f984f(0x16f)],_0xf525a1=_0x1ed45d[_0x1f984f(0x19c)]||_0x1ed45d[_0x1f984f(0x1ae)]||_0x1ed45d[_0x1f984f(0x192)]||_0x1ed45d[_0x1f984f(0x173)];if(_0x41edbb['CzWRT'](process['platform'],_0x41edbb[_0x1f984f(0x15c)]))return _0x1ed45d[_0x1f984f(0x180)]||_0x41edbb[_0x1f984f(0x130)](_0x1ed45d[_0x1f984f(0x12c)],_0x1ed45d[_0x1f984f(0x18b)])||_0x248463||null;if(_0x41edbb[_0x1f984f(0x131)](process[_0x1f984f(0x132)],_0x41edbb[_0x1f984f(0x138)]))return _0x248463||(_0xf525a1?_0x41edbb[_0x1f984f(0x141)](_0x41edbb[_0x1f984f(0x13d)],_0xf525a1):null);if(_0x41edbb[_0x1f984f(0x131)](process['platform'],_0x41edbb['PLcTX']))return _0x248463||(_0x41edbb['oYMYk'](process['getuid'](),0x0)?_0x41edbb[_0x1f984f(0x1a9)]:_0xf525a1?_0x41edbb[_0x1f984f(0x130)](_0x41edbb['ccHJA'],_0xf525a1):null);return _0x41edbb[_0x1f984f(0x165)](_0x248463,null);}}function a65_0x244a(_0x4e641b,_0x15e564){const _0x57e7d2=a65_0x57e7();return a65_0x244a=function(_0x244aea,_0x3f7891){_0x244aea=_0x244aea-0x129;let _0x376c8d=_0x57e7d2[_0x244aea];return _0x376c8d;},a65_0x244a(_0x4e641b,_0x15e564);}function a65_0x57e7(){const _0x5b7274=['VkrxB','LNAME','HsErU','DjEeg','Error\x20trying\x20to\x20download\x20percy\x20binary','vcFTU','QnnQv','frwgy','host','/home/','vjApe','LOGNAME','/percy-win.zip','darwin','194589LXywcf','close','bskUx','open','JSrdi','aHMQP','accessSync','https-proxy-agent','linux','data','MapEX','chmod','mzyAT','bHAiW','readEntry','USER','rMxbW','pfmeg','adFel','MpJwr','https://github.com/percy/cli/releases/latest/download','HOMEDRIVE','join','IVFGE','lWbYj','ZznPT','CzWRT','platform','zXWUl','50127gwyRaw','fileName','sUzld','ioavj','XHxqG','SfLWx','agent','mkdirSync','url','FzcRS','proxyHost','UWPrZ','child_process','biEAO','BCLty','MzcqN','PDBJl','error','0755','getBinaryPath','957939njksMN','W_OK','download','DrXxg','pJFIv','openReadStream','proxyPort','tmuNl','409690xOQmaR','1eIliFQ','port','keYuH','qqieq','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','PLcTX','homedir','once','/percy-osx.zip','lazyEntries','vOKsq','OfETc','AonOv','follow-redirects','undefined','env','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','yBRaX','LAUWg','exports','Zyisf','RxrJX','R_OK','.zip','/percy-linux.zip','useCaCertificate','length','176JLbAku','4xrMSnN','cwd','HOME','14vVfzUP','odHJS','WWUaZ','USERNAME','match','createWriteStream','805112FZkgtw','.browserstack','percy.exe','gOdkm','test','TFiiF','564SjcVTG','stdout','/Users/','percy','USERPROFILE','tmpdir','SSHYb','entry','ouyWx','Corrupt\x20percy\x20binary,\x20retrying','sLUkY','X_OK','dVfSF','LaMdK','pipe','HOMEPATH','QjKnK','--version','1922970qukSBY','oYMYk','177114ndRYxG'];a65_0x57e7=function(){return _0x5b7274;};return a65_0x57e7();}module[a65_0x1c132b(0x164)]=PercyBinary;
|
|
1
|
+
function a65_0x54da(){const _0x49ed74=['QfCYW','BwQwt','wLtHY','HOMEPATH','close','BAVhT','PkffI','length','mkdirSync','IFmRU','mYAdp','getuid','path','/root','../logger','parse','.browserstack','percy.exe','ebRLe','env','Asjoh','lUVyr','download','fpFoS','iBhGz','R_OK','open','RtDKV','HOME','end','pipe','MnAiq','Incam','QWddu','yKjfA','/home/','--version','AfyVA','chmod','WemVA','LNAME','CVWOU','vFGNZ','join','exports','2661248PNXnOC','child_process','function','QtnJC','tfswr','/Users/','FXylQ','kpRjK','473658RQsBwY','Error\x20trying\x20to\x20download\x20percy\x20binary','follow-redirects','port','UgnLB','/percy-win.zip','RBlNN','test','https-proxy-agent','proxyHost','lazyEntries','proxyPort','abyie','LTLzx','AsVqC','ZLpPJ','1714758OMWffl','tlpYG','USERPROFILE','agent','TMoIK','url','readEntry','host','fileName','BqTQV','nLhlQ','3844600tCFmcJ','JwDLo','TONiI','fjsHJ','dPwoK','USERNAME','YRyQI','readFileSync','zdEko','ZJFaC','accessSync','undefined','LOGNAME','smoTg','match','XIDnX','W_OK','XruEr','XBUzR','validateBinary','1284596tvdnIH','dZAaf','useCaCertificate','cwd','qZWJA','darwin','data','vyDKA','lYEAE','atnOH','531923CNpYUe','error','lAMbb','stdout','X_OK','2259072ZdhoEd','platform','ldaSj','ppkrk','get','entry','gybzA','fEsvV','sUNsZ','createWriteStream','tmpdir','/percy-linux.zip','0755','mcofr'];a65_0x54da=function(){return _0x49ed74;};return a65_0x54da();}const a65_0x203d29=a65_0x10ef;(function(_0x189104,_0x1ad03b){const _0x442849=a65_0x10ef,_0x34bcd4=_0x189104();while(!![]){try{const _0x1db278=-parseInt(_0x442849(0x144))/0x1+parseInt(_0x442849(0xf2))/0x2+-parseInt(_0x442849(0x154))/0x3+parseInt(_0x442849(0x13c))/0x4+parseInt(_0x442849(0x15f))/0x5+-parseInt(_0x442849(0x101))/0x6+-parseInt(_0x442849(0xfc))/0x7;if(_0x1db278===_0x1ad03b)break;else _0x34bcd4['push'](_0x34bcd4['shift']());}catch(_0xb0073){_0x34bcd4['push'](_0x34bcd4['shift']());}}}(a65_0x54da,0x8d4e1));function a65_0x10ef(_0x492bc9,_0x4527c1){const _0x54da64=a65_0x54da();return a65_0x10ef=function(_0x10eff8,_0x2e1362){_0x10eff8=_0x10eff8-0xe1;let _0x32cdf8=_0x54da64[_0x10eff8];return _0x32cdf8;},a65_0x10ef(_0x492bc9,_0x4527c1);}const {https}=require(a65_0x203d29(0x146)),url=require(a65_0x203d29(0x159)),yauzl=require('yauzl'),fs=require('fs'),path=require(a65_0x203d29(0x11b)),os=require('os'),{spawn}=require(a65_0x203d29(0x13d)),HttpsProxyAgent=require(a65_0x203d29(0x14c)),logger=require(a65_0x203d29(0x11d))['winstonLogger'];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a65_0x203d29(0x13a)](this.#homedir(),a65_0x203d29(0x11f)),process[a65_0x203d29(0xf5)](),os[a65_0x203d29(0x10b)]()];constructor(){const _0x328e3f=a65_0x203d29,_0x40defa={};_0x40defa['lUVyr']='https://github.com/percy/cli/releases/latest/download',_0x40defa[_0x328e3f(0xf0)]=function(_0x1d8c67,_0x170606){return _0x1d8c67+_0x170606;},_0x40defa['BwQwt']='/percy-osx.zip',_0x40defa[_0x328e3f(0x150)]=_0x328e3f(0x149),_0x40defa[_0x328e3f(0x109)]=_0x328e3f(0x120),_0x40defa['QWddu']=_0x328e3f(0x10c);const _0x36fb6d=_0x40defa,_0x158ca1=_0x36fb6d[_0x328e3f(0x124)];if(this.#hostOS[_0x328e3f(0xec)](/darwin|mac os/i))this.#httpPath=_0x36fb6d['XBUzR'](_0x158ca1,_0x36fb6d[_0x328e3f(0x110)]);else this.#hostOS[_0x328e3f(0xec)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x36fb6d[_0x328e3f(0xf0)](_0x158ca1,_0x36fb6d[_0x328e3f(0x150)]),this.#binaryName=_0x36fb6d[_0x328e3f(0x109)]):this.#httpPath=_0x36fb6d[_0x328e3f(0xf0)](_0x158ca1,_0x36fb6d[_0x328e3f(0x130)]);}#getAvailableDirs(){const _0x241338=a65_0x203d29,_0x50dfb2={};_0x50dfb2[_0x241338(0x161)]=function(_0x1221d3,_0x401d76){return _0x1221d3<_0x401d76;},_0x50dfb2[_0x241338(0x12a)]=_0x241338(0x145);const _0x1f8e4c=_0x50dfb2;for(var _0x1f7e44=0x0;_0x1f8e4c[_0x241338(0x161)](_0x1f7e44,this.#orderedPaths[_0x241338(0x116)]);_0x1f7e44++){var _0x23a207=this.#orderedPaths[_0x1f7e44];if(this.#makePath(_0x23a207))return _0x23a207;}throw new Error(_0x1f8e4c[_0x241338(0x12a)]);}#makePath(_0x72893f){const _0x35f1a5=a65_0x203d29;try{return!this.#checkPath(_0x72893f)&&fs[_0x35f1a5(0x117)](_0x72893f),!![];}catch{return![];}}#checkPath(_0x55e77f,_0x322248){const _0x278121=a65_0x203d29,_0x5b85f3={};_0x5b85f3[_0x278121(0xf3)]=function(_0x4c7e7c,_0x5e7351){return _0x4c7e7c|_0x5e7351;},_0x5b85f3[_0x278121(0xe2)]=function(_0xb67365,_0x2b7c81){return _0xb67365!==_0x2b7c81;},_0x5b85f3['ebRLe']=_0x278121(0xe9);const _0x98d48b=_0x5b85f3;_0x322248=_0x322248||_0x98d48b[_0x278121(0xf3)](fs[_0x278121(0x128)],fs[_0x278121(0xee)]);try{return fs[_0x278121(0xe8)](_0x55e77f,_0x322248),!![];}catch(_0x20741b){if(_0x98d48b[_0x278121(0xe2)](typeof fs[_0x278121(0xe8)],_0x98d48b[_0x278121(0x121)]))return![];try{return fs['statSync'](_0x55e77f),!![];}catch(_0x5b342a){return![];}}}async['getBinaryPath'](_0x1b22bf){const _0x574107=a65_0x203d29,_0x50f57b={};_0x50f57b[_0x574107(0x111)]='Corrupt\x20percy\x20binary,\x20retrying';const _0x5b954d=_0x50f57b;var _0x162bed=this.#getAvailableDirs(),_0x49cd46=path[_0x574107(0x13a)](_0x162bed,this.#binaryName);if(this.#checkPath(_0x49cd46,fs[_0x574107(0x100)]))return _0x49cd46;const _0x4eb8bb=await this[_0x574107(0x125)](_0x1b22bf,_0x162bed),_0x2e9591=await this[_0x574107(0xf1)](_0x4eb8bb);if(!_0x2e9591)return logger[_0x574107(0xfd)](_0x5b954d[_0x574107(0x111)]),await this[_0x574107(0x125)](_0x1b22bf,_0x162bed);return _0x4eb8bb;}async[a65_0x203d29(0xf1)](_0x28ba04){const _0x46d764=a65_0x203d29,_0x501fc6={'mYAdp':function(_0x251e0,_0x4ca2e3){return _0x251e0(_0x4ca2e3);},'mcofr':function(_0x2291b1,_0x53e9e5,_0x357a0e){return _0x2291b1(_0x53e9e5,_0x357a0e);},'zjWSM':_0x46d764(0x133),'BqTQV':_0x46d764(0xf8),'vFGNZ':'close'},_0x2ec15c=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x6497ef,_0x3bf8ba)=>{const _0x53bdc7=_0x46d764,_0x1d9f9a={'JwDLo':function(_0x369116,_0x65410d){return _0x501fc6['mYAdp'](_0x369116,_0x65410d);}},_0x5591c7=_0x501fc6[_0x53bdc7(0x10e)](spawn,_0x28ba04,[_0x501fc6['zjWSM']]);_0x5591c7[_0x53bdc7(0xff)]['on'](_0x501fc6[_0x53bdc7(0x15d)],_0x59e2c2=>{const _0x2cb56c=_0x53bdc7;_0x2ec15c[_0x2cb56c(0x14b)](_0x59e2c2)&&_0x501fc6[_0x2cb56c(0x119)](_0x6497ef,!![]);}),_0x5591c7['on'](_0x501fc6[_0x53bdc7(0x139)],()=>{const _0x1e8731=_0x53bdc7;_0x1d9f9a[_0x1e8731(0x160)](_0x6497ef,![]);});});}['download'](_0x3790a7,_0x57f7bc){const _0x10109e=a65_0x203d29,_0x268bc6={'XruEr':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','FXylQ':function(_0x42910e,_0x129cc9){return _0x42910e(_0x129cc9);},'XIDnX':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','lAMbb':_0x10109e(0x12c),'mSGvQ':function(_0x4d0165,_0x323a29){return _0x4d0165===_0x323a29;},'huEre':_0x10109e(0x106),'ppkrk':_0x10109e(0xfd),'WnlXK':_0x10109e(0x10d),'ldaSj':'close','zCvsy':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','qZWJA':function(_0x1259cb,_0x4f0c62){return _0x1259cb(_0x4f0c62);},'TMoIK':function(_0x4f9c36,_0x586092){return _0x4f9c36+_0x586092;},'Incam':'.zip','lYEAE':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x57f7bc)&&fs[_0x10109e(0x117)](_0x57f7bc);const _0x5e3be8=this.#binaryName,_0x1e9e56=path[_0x10109e(0x13a)](_0x57f7bc,_0x268bc6[_0x10109e(0x158)](_0x5e3be8,_0x268bc6[_0x10109e(0x12f)])),_0x2eb246=path['join'](_0x57f7bc,_0x5e3be8),_0x3b5136=fs['createWriteStream'](_0x1e9e56),_0x5aaede=url[_0x10109e(0x11e)](this.#httpPath);if(_0x3790a7[_0x10109e(0x14d)]&&_0x3790a7[_0x10109e(0x14f)]){const _0x8dda7f={};_0x8dda7f[_0x10109e(0x15b)]=_0x3790a7['proxyHost'],_0x8dda7f[_0x10109e(0x147)]=_0x3790a7[_0x10109e(0x14f)],_0x5aaede[_0x10109e(0x157)]=new HttpsProxyAgent(_0x8dda7f);}if(_0x3790a7[_0x10109e(0xf4)])try{_0x5aaede['ca']=fs[_0x10109e(0xe5)](_0x3790a7[_0x10109e(0xf4)]);}catch(_0x4fa8d9){logger['error'](_0x268bc6[_0x10109e(0xfa)],_0x4fa8d9);}return new Promise((_0x108e23,_0x57edef)=>{const _0x42a7ee=_0x10109e,_0x4defd1={'hqsri':_0x268bc6[_0x42a7ee(0xef)],'kpRjK':function(_0x5133b9,_0x45e842){const _0x6dc431=_0x42a7ee;return _0x268bc6[_0x6dc431(0x142)](_0x5133b9,_0x45e842);},'YRyQI':_0x268bc6[_0x42a7ee(0xed)],'PkffI':_0x268bc6[_0x42a7ee(0xfe)],'MnAiq':function(_0x1f4f14,_0x423dfe){return _0x268bc6['mSGvQ'](_0x1f4f14,_0x423dfe);},'IFmRU':_0x268bc6['huEre'],'AfyVA':_0x268bc6[_0x42a7ee(0x104)],'AsVqC':function(_0x173962,_0x35ef8b){const _0x4ffe08=_0x42a7ee;return _0x268bc6[_0x4ffe08(0x142)](_0x173962,_0x35ef8b);},'UgnLB':_0x268bc6['WnlXK'],'tfswr':_0x268bc6[_0x42a7ee(0x103)],'AKvsu':_0x268bc6['zCvsy'],'vyDKA':function(_0x4344ca,_0x4757f0){const _0x2b3479=_0x42a7ee;return _0x268bc6[_0x2b3479(0xf6)](_0x4344ca,_0x4757f0);}};https[_0x42a7ee(0x105)](_0x5aaede,function(_0x35f009){const _0xcb853a=_0x42a7ee,_0x5a845c={'WemVA':_0x4defd1['hqsri'],'QtnJC':function(_0x210261,_0x33a0e6){const _0xecd4e0=a65_0x10ef;return _0x4defd1[_0xecd4e0(0x143)](_0x210261,_0x33a0e6);},'QfCYW':_0x4defd1[_0xcb853a(0xe4)],'CVWOU':_0x4defd1[_0xcb853a(0x115)],'vdTaZ':function(_0x182104,_0x5719ee){const _0x4392cd=_0xcb853a;return _0x4defd1[_0x4392cd(0x12e)](_0x182104,_0x5719ee);},'LTadv':function(_0x1e826a,_0x29cf6c){const _0x45c0e8=_0xcb853a;return _0x4defd1[_0x45c0e8(0x143)](_0x1e826a,_0x29cf6c);},'coYYc':_0x4defd1[_0xcb853a(0x118)],'nLhlQ':_0x4defd1[_0xcb853a(0x134)],'yKjfA':function(_0x3d8b3b,_0x16b896){const _0x4ebedb=_0xcb853a;return _0x4defd1[_0x4ebedb(0x152)](_0x3d8b3b,_0x16b896);},'fjsHJ':_0x4defd1[_0xcb853a(0x148)]};_0x35f009[_0xcb853a(0x12d)](_0x3b5136),_0x35f009['on'](_0x4defd1['AfyVA'],function(_0x593d20){const _0x2a221e=_0xcb853a;logger[_0x2a221e(0xfd)](_0x5a845c[_0x2a221e(0x136)],_0x593d20),_0x5a845c[_0x2a221e(0x13f)](_0x57edef,_0x593d20);}),_0x3b5136['on'](_0x4defd1['AfyVA'],function(_0x2c9055){const _0x4c06f2=_0xcb853a;logger['error'](_0x5a845c[_0x4c06f2(0x10f)],_0x2c9055),_0x5a845c['QtnJC'](_0x57edef,_0x2c9055);}),_0x3b5136['on'](_0x4defd1[_0xcb853a(0x140)],function(){const _0x46ac8b=_0xcb853a,_0xcb85e4={'RBlNN':function(_0x5c1370,_0x3997d7){const _0x10e0f4=a65_0x10ef;return _0x5a845c[_0x10e0f4(0x13f)](_0x5c1370,_0x3997d7);},'BAVhT':function(_0x5bcfad,_0x11d3c5){const _0x41febb=a65_0x10ef;return _0x5a845c[_0x41febb(0x131)](_0x5bcfad,_0x11d3c5);},'gybzA':_0x5a845c[_0x46ac8b(0xe1)]},_0x187b2d={};_0x187b2d[_0x46ac8b(0x14e)]=!![],yauzl[_0x46ac8b(0x129)](_0x1e9e56,_0x187b2d,function(_0x74b639,_0x30cea3){const _0x261b4d=_0x46ac8b,_0x2fd156={'EidtM':function(_0x3e16b2,_0x2479d4){const _0x4a09a3=a65_0x10ef;return _0x5a845c[_0x4a09a3(0x13f)](_0x3e16b2,_0x2479d4);},'zdEko':_0x5a845c['CVWOU'],'xoROX':function(_0x406b8e,_0x338f95){return _0x5a845c['vdTaZ'](_0x406b8e,_0x338f95);}};_0x74b639&&_0x5a845c['LTadv'](_0x57edef,_0x74b639),_0x30cea3[_0x261b4d(0x15a)](),_0x30cea3['on'](_0x5a845c['coYYc'],_0x24ab18=>{const _0x157af0=_0x261b4d,_0x47a812={'VdQCe':function(_0x4b7f92,_0x4d0eba){return _0x2fd156['EidtM'](_0x4b7f92,_0x4d0eba);},'iBhGz':_0x2fd156[_0x157af0(0xe6)]};if(/\/$/[_0x157af0(0x14b)](_0x24ab18[_0x157af0(0x15c)]))_0x30cea3[_0x157af0(0x15a)]();else{const _0x27c6f3=fs[_0x157af0(0x10a)](path[_0x157af0(0x13a)](_0x57f7bc,_0x24ab18[_0x157af0(0x15c)]));_0x30cea3['openReadStream'](_0x24ab18,function(_0x4c6fa0,_0x863dda){const _0x5858a0=_0x157af0;_0x4c6fa0&&_0x47a812['VdQCe'](_0x57edef,_0x74b639),_0x863dda['on'](_0x47a812[_0x5858a0(0x127)],function(){const _0x36e3b4=_0x5858a0;_0x27c6f3[_0x36e3b4(0x113)](),_0x30cea3['readEntry']();}),_0x863dda[_0x5858a0(0x12d)](_0x27c6f3);}),_0x2fd156['xoROX'](_0x24ab18[_0x157af0(0x15c)],_0x5e3be8)&&_0x30cea3[_0x157af0(0x113)]();}}),_0x30cea3['on'](_0x5a845c[_0x261b4d(0x15e)],_0x5e5066=>{const _0x2e066f=_0x261b4d;_0xcb85e4[_0x2e066f(0x14a)](_0x57edef,_0x5e5066);}),_0x30cea3['once'](_0x5a845c[_0x261b4d(0x138)],()=>{const _0x4fb00b=_0x261b4d,_0x7c6cca={'fJIBS':function(_0x3bf4e1,_0x5c526f){const _0x4c7a60=a65_0x10ef;return _0xcb85e4[_0x4c7a60(0x14a)](_0x3bf4e1,_0x5c526f);},'IQLhq':function(_0x53b591,_0x297eea){const _0xb7efef=a65_0x10ef;return _0xcb85e4[_0xb7efef(0x114)](_0x53b591,_0x297eea);}};fs[_0x4fb00b(0x135)](_0x2eb246,_0xcb85e4[_0x4fb00b(0x107)],function(_0x206fbd){_0x206fbd&&_0x7c6cca['fJIBS'](_0x57edef,_0x206fbd),_0x7c6cca['IQLhq'](_0x108e23,_0x2eb246);}),_0x30cea3[_0x4fb00b(0x113)]();});});});})['on'](_0x268bc6[_0x42a7ee(0x104)],function(_0x5e2bb3){const _0x2ff0a2=_0x42a7ee;logger[_0x2ff0a2(0xfd)](_0x4defd1['AKvsu'],_0x5e2bb3),_0x4defd1[_0x2ff0a2(0xf9)](_0x57edef,_0x5e2bb3);});});}#homedir(){const _0xe689b=a65_0x203d29,_0x376c2a={};_0x376c2a[_0xe689b(0xe7)]=function(_0x1bbd7f,_0x54b4bc){return _0x1bbd7f===_0x54b4bc;},_0x376c2a['ICQyr']=_0xe689b(0x13e),_0x376c2a[_0xe689b(0xeb)]='win32',_0x376c2a[_0xe689b(0x108)]=function(_0x3147c7,_0x4cf54e){return _0x3147c7+_0x4cf54e;},_0x376c2a[_0xe689b(0x123)]=_0xe689b(0xf7),_0x376c2a[_0xe689b(0x153)]=_0xe689b(0x141),_0x376c2a['bivBx']='linux',_0x376c2a[_0xe689b(0xfb)]=_0xe689b(0x11c),_0x376c2a[_0xe689b(0x151)]=function(_0x1779eb,_0x45838b){return _0x1779eb+_0x45838b;},_0x376c2a[_0xe689b(0x126)]=_0xe689b(0x132),_0x376c2a['tlpYG']=function(_0x4709ef,_0x5bb93f){return _0x4709ef||_0x5bb93f;};const _0x1bdfc9=_0x376c2a;if(_0x1bdfc9['ZJFaC'](typeof os['homedir'],_0x1bdfc9['ICQyr']))return os['homedir']();const _0x509dea=process[_0xe689b(0x122)],_0x169816=_0x509dea[_0xe689b(0x12b)],_0x1c7d6b=_0x509dea[_0xe689b(0xea)]||_0x509dea['USER']||_0x509dea[_0xe689b(0x137)]||_0x509dea[_0xe689b(0xe3)];if(_0x1bdfc9[_0xe689b(0xe7)](process[_0xe689b(0x102)],_0x1bdfc9['smoTg']))return _0x509dea[_0xe689b(0x156)]||_0x1bdfc9[_0xe689b(0x108)](_0x509dea['HOMEDRIVE'],_0x509dea[_0xe689b(0x112)])||_0x169816||null;if(_0x1bdfc9['ZJFaC'](process['platform'],_0x1bdfc9[_0xe689b(0x123)]))return _0x169816||(_0x1c7d6b?_0x1bdfc9[_0xe689b(0x108)](_0x1bdfc9['ZLpPJ'],_0x1c7d6b):null);if(_0x1bdfc9[_0xe689b(0xe7)](process[_0xe689b(0x102)],_0x1bdfc9['bivBx']))return _0x169816||(_0x1bdfc9['ZJFaC'](process[_0xe689b(0x11a)](),0x0)?_0x1bdfc9['atnOH']:_0x1c7d6b?_0x1bdfc9[_0xe689b(0x151)](_0x1bdfc9[_0xe689b(0x126)],_0x1c7d6b):null);return _0x1bdfc9[_0xe689b(0x155)](_0x169816,null);}}module[a65_0x203d29(0x13b)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a66_0x147e05=a66_0x30cc;(function(_0x1e54d5,_0x4e2f2e){var _0x761a45=a66_0x30cc,_0x1c9997=_0x1e54d5();while(!![]){try{var _0x4481b1=parseInt(_0x761a45(0xd6))/0x1*(-parseInt(_0x761a45(0xcd))/0x2)+-parseInt(_0x761a45(0xce))/0x3+-parseInt(_0x761a45(0xc9))/0x4*(parseInt(_0x761a45(0xd0))/0x5)+-parseInt(_0x761a45(0xd5))/0x6*(-parseInt(_0x761a45(0xd2))/0x7)+-parseInt(_0x761a45(0xc8))/0x8*(parseInt(_0x761a45(0xd1))/0x9)+-parseInt(_0x761a45(0xd3))/0xa+parseInt(_0x761a45(0xcf))/0xb;if(_0x4481b1===_0x4e2f2e)break;else _0x1c9997['push'](_0x1c9997['shift']());}catch(_0x470750){_0x1c9997['push'](_0x1c9997['shift']());}}}(a66_0x37db,0xe3ef1));function a66_0x37db(){var _0x3e80e1=['4284520NVkLCt','exports','28662toKoWa','431559tpQDov','5768LZctiw','101668FVCqph','increment','getName','get','6iOsfjm','2416839GaacnK','51738555aRCrXp','220FSiaDb','8271oUuXkc','791JvRjKi'];a66_0x37db=function(){return _0x3e80e1;};return a66_0x37db();}function a66_0x30cc(_0x15830f,_0x89192b){var _0x37db55=a66_0x37db();return a66_0x30cc=function(_0x30cc78,_0x227bb0){_0x30cc78=_0x30cc78-0xc8;var _0x30bb8c=_0x37db55[_0x30cc78];return _0x30bb8c;},a66_0x30cc(_0x15830f,_0x89192b);}class PercyCaptureMap{#map={};[a66_0x147e05(0xca)](_0x49a67d,_0x312be0){!this.#map[_0x49a67d]&&(this.#map[_0x49a67d]={}),!this.#map[_0x49a67d][_0x312be0]&&(this.#map[_0x49a67d][_0x312be0]=0x0),this.#map[_0x49a67d][_0x312be0]++;}[a66_0x147e05(0xcb)](_0x17677b,_0x4a1794){var _0x5a7592=a66_0x147e05;return _0x17677b+'-'+_0x4a1794+'-'+this[_0x5a7592(0xcc)](_0x17677b,_0x4a1794);}['get'](_0x34ed29,_0x29154e){if(!this.#map[_0x34ed29])return 0x0;if(!this.#map[_0x34ed29][_0x29154e])return 0x0;return this.#map[_0x34ed29][_0x29154e];}}module[a66_0x147e05(0xd4)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a67_0x5cd7e4=a67_0x2403;(function(_0x5a08b8,_0x176cd6){var _0x5764cc=a67_0x2403,_0x103c69=_0x5a08b8();while(!![]){try{var _0xb502fa=parseInt(_0x5764cc(0x1e2))/0x1+-parseInt(_0x5764cc(0x1e4))/0x2*(-parseInt(_0x5764cc(0x1e5))/0x3)+parseInt(_0x5764cc(0x1ec))/0x4*(parseInt(_0x5764cc(0x1eb))/0x5)+parseInt(_0x5764cc(0x1e9))/0x6+parseInt(_0x5764cc(0x1e6))/0x7+-parseInt(_0x5764cc(0x1e0))/0x8+-parseInt(_0x5764cc(0x1e3))/0x9*(parseInt(_0x5764cc(0x1ef))/0xa);if(_0xb502fa===_0x176cd6)break;else _0x103c69['push'](_0x103c69['shift']());}catch(_0x2edd0b){_0x103c69['push'](_0x103c69['shift']());}}}(a67_0x36f8,0xa3b1e));var a67_0x4df35b={};function a67_0x2403(_0x175627,_0x2043a6){var _0x36f85=a67_0x36f8();return a67_0x2403=function(_0x240315,_0x9f1a5){_0x240315=_0x240315-0x1df;var _0x10652c=_0x36f85[_0x240315];return _0x10652c;},a67_0x2403(_0x175627,_0x2043a6);}function a67_0x36f8(){var _0x121556=['sendKeys','244446LVUuwO','9wEzFYA','2oYgpIp','3759609GZMNkb','4137791wUbAcR','click','takeScreenshot','6664182YHcrJP','element','1465tINrnO','9788zkQbuj','auto','manual','21149950rpYnkm','driver','9047528WOoinh'];a67_0x36f8=function(){return _0x121556;};return a67_0x36f8();}a67_0x4df35b['driver']=[a67_0x5cd7e4(0x1e8)],a67_0x4df35b[a67_0x5cd7e4(0x1ea)]=['click',a67_0x5cd7e4(0x1e1)];var a67_0x55108c={};a67_0x55108c[a67_0x5cd7e4(0x1df)]=[a67_0x5cd7e4(0x1e8)];var a67_0xa88c3b={};a67_0xa88c3b[a67_0x5cd7e4(0x1ea)]=[a67_0x5cd7e4(0x1e7)];var a67_0x24506a={};a67_0x24506a[a67_0x5cd7e4(0x1ed)]=a67_0x4df35b,a67_0x24506a['screenshot']=a67_0x55108c,a67_0x24506a['click']=a67_0xa88c3b,a67_0x24506a['testcase']={},a67_0x24506a[a67_0x5cd7e4(0x1ee)]={},module['exports']=a67_0x24506a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x495aa7=a68_0x5e68;function a68_0x5e68(_0x18d976,_0x1857fd){const _0x164e82=a68_0x164e();return a68_0x5e68=function(_0x5e68c0,_0x298727){_0x5e68c0=_0x5e68c0-0x149;let _0x277b93=_0x164e82[_0x5e68c0];return _0x277b93;},a68_0x5e68(_0x18d976,_0x1857fd);}(function(_0x11fd6c,_0x5638f0){const _0xb6a3e0=a68_0x5e68,_0x34d71e=_0x11fd6c();while(!![]){try{const _0xeec5c3=-parseInt(_0xb6a3e0(0x15a))/0x1*(-parseInt(_0xb6a3e0(0x163))/0x2)+-parseInt(_0xb6a3e0(0x16f))/0x3+parseInt(_0xb6a3e0(0x170))/0x4+-parseInt(_0xb6a3e0(0x169))/0x5+parseInt(_0xb6a3e0(0x14a))/0x6*(-parseInt(_0xb6a3e0(0x166))/0x7)+parseInt(_0xb6a3e0(0x16d))/0x8*(parseInt(_0xb6a3e0(0x151))/0x9)+parseInt(_0xb6a3e0(0x158))/0xa;if(_0xeec5c3===_0x5638f0)break;else _0x34d71e['push'](_0x34d71e['shift']());}catch(_0x22bb94){_0x34d71e['push'](_0x34d71e['shift']());}}}(a68_0x164e,0x69dc7));const tryRequire=function(_0x344d36,_0x5afb45){const _0x513e64=a68_0x5e68,_0x22dd7f={'cHYnu':function(_0x11b7be,_0x5f0720){return _0x11b7be(_0x5f0720);}};try{return _0x22dd7f[_0x513e64(0x14e)](require,_0x344d36);}catch{return _0x5afb45;}},percySnapshot=tryRequire(a68_0x495aa7(0x16a),null),{percyScreenshot}=tryRequire(a68_0x495aa7(0x16a),{}),percyAppScreenshot=require(a68_0x495aa7(0x164)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a68_0x495aa7(0x149)),logger=require(a68_0x495aa7(0x155))['winstonLogger'];percySnapshot&&(exports[a68_0x495aa7(0x165)]=async function(){const _0x32483d=a68_0x495aa7,_0x3a4311={'Mvuxs':function(_0x1183d1,_0x3675f8){return _0x1183d1!==_0x3675f8;},'UpOwa':function(_0x3cce81,_0x316b0d){return _0x3cce81>=_0x316b0d;},'UoZoa':function(_0x40f43c){return _0x40f43c();},'aZYhF':_0x32483d(0x153)};if(global[_0x32483d(0x14d)]&&_0x3a4311[_0x32483d(0x156)](global[_0x32483d(0x14d)],global[_0x32483d(0x160)]))return;const _0x1bde38=_0x3a4311[_0x32483d(0x154)](arguments[_0x32483d(0x16b)],0x2)?arguments[0x1]:'',_0x4bef62=_0x3a4311['UoZoa'](getCurrentTestData),_0x4a30c5={};return _0x4a30c5['name']=_0x1bde38,_0x4a30c5['testCase']=_0x4bef62['name']||'',_0x4a30c5['thTestCaseExecutionId']=_0x4bef62[_0x32483d(0x167)]||'',_0x4a30c5[_0x32483d(0x168)]=global['browserstackPlatformIndex'],await PerformanceTester['measure'](_0x3a4311[_0x32483d(0x15f)],()=>percySnapshot[_0x32483d(0x15d)](null,arguments),_0x4a30c5);});function a68_0x164e(){const _0x539d7c=['@percy/selenium-webdriver','length','JlYcG','231704JQGunn','MpnGc','1724745rHWGwT','3294740SSxMhu','xqnYE','../performance-tester','3918hpQCxS','testCase','thTestCaseExecutionId','browserstackPlatformIndex','cHYnu','vQZDs','name','54XvRPtm','Ikkhw','percy:snapshot','UpOwa','../logger','Mvuxs','percy:screenshot-app','5803180zXGnHs','percy:screenshot','9697mURaCQ','Unsupported\x20driver\x20for\x20percy','WoAFj','apply','screenshot','aZYhF','browserstackPercyBestPlatform','qPEFd','measure','38QOaLck','@percy/appium-app','snapshot','7189SdlpmP','uuid','platformIndex','414355qbbMZN'];a68_0x164e=function(){return _0x539d7c;};return a68_0x164e();}percyScreenshot?exports[a68_0x495aa7(0x15e)]=async function(){const _0x3f1432=a68_0x495aa7,_0x1e43ae={'Ikkhw':function(_0x2b0f7b,_0x1c5a62){return _0x2b0f7b>=_0x1c5a62;},'JlYcG':function(_0x388a63){return _0x388a63();},'xqnYE':_0x3f1432(0x159)},_0x5a94c7=_0x1e43ae[_0x3f1432(0x152)](arguments[_0x3f1432(0x16b)],0x2)?arguments[0x1]:'',_0x4c14d9=_0x1e43ae[_0x3f1432(0x16c)](getCurrentTestData),_0x4b7160={};return _0x4b7160[_0x3f1432(0x150)]=_0x5a94c7,_0x4b7160[_0x3f1432(0x14b)]=_0x4c14d9[_0x3f1432(0x150)]||'',_0x4b7160[_0x3f1432(0x14c)]=_0x4c14d9[_0x3f1432(0x167)]||'',_0x4b7160[_0x3f1432(0x168)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x3f1432(0x162)](_0x1e43ae[_0x3f1432(0x171)],()=>percyScreenshot[_0x3f1432(0x15d)](null,arguments),_0x4b7160);}:exports[a68_0x495aa7(0x15e)]=()=>{const _0x534bce=a68_0x495aa7,_0x26dba7={};_0x26dba7[_0x534bce(0x14f)]=_0x534bce(0x15b);const _0x29a02d=_0x26dba7;logger['error'](_0x29a02d[_0x534bce(0x14f)]);};exports['screenshotApp']=async function(){const _0x4ddf7d=a68_0x495aa7,_0x30b727={'MpnGc':function(_0x11f3b8,_0x4e9fa5){return _0x11f3b8>=_0x4e9fa5;},'qPEFd':function(_0x15a6a7){return _0x15a6a7();},'WoAFj':_0x4ddf7d(0x157)},_0x12ef11=_0x30b727[_0x4ddf7d(0x16e)](arguments[_0x4ddf7d(0x16b)],0x2)?arguments[0x1]:'',_0x5badd8=_0x30b727[_0x4ddf7d(0x161)](getCurrentTestData),_0x208115={};return _0x208115['name']=_0x12ef11,_0x208115[_0x4ddf7d(0x14b)]=_0x5badd8[_0x4ddf7d(0x150)]||'',_0x208115[_0x4ddf7d(0x14c)]=_0x5badd8[_0x4ddf7d(0x167)]||'',_0x208115[_0x4ddf7d(0x168)]=global[_0x4ddf7d(0x14d)],await PerformanceTester[_0x4ddf7d(0x162)](_0x30b727[_0x4ddf7d(0x15c)],()=>percyAppScreenshot[_0x4ddf7d(0x15d)](null,arguments),_0x208115);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a69_0x3c67(_0x1f710b,_0x4d85d7){var _0x3e65c9=a69_0x3e65();return a69_0x3c67=function(_0x3c67f9,_0x5efc9b){_0x3c67f9=_0x3c67f9-0x134;var _0x59c006=_0x3e65c9[_0x3c67f9];return _0x59c006;},a69_0x3c67(_0x1f710b,_0x4d85d7);}var a69_0x3c1f54=a69_0x3c67;function a69_0x3e65(){var _0x429e0f=['4890252EIDzNG','10495GJEBgR','2047116VexiyN','36wMzfpD','2670417PErhmO','63GKuJlj','256146SkQKgY','63968efolMz','573616iJkOSZ','50nagiyG','exports','./Percy'];a69_0x3e65=function(){return _0x429e0f;};return a69_0x3e65();}(function(_0x3d2912,_0x56aa54){var _0x4d8316=a69_0x3c67,_0x537451=_0x3d2912();while(!![]){try{var _0x1d14d0=-parseInt(_0x4d8316(0x13e))/0x1+-parseInt(_0x4d8316(0x13d))/0x2+-parseInt(_0x4d8316(0x139))/0x3+-parseInt(_0x4d8316(0x13a))/0x4*(parseInt(_0x4d8316(0x138))/0x5)+-parseInt(_0x4d8316(0x137))/0x6+-parseInt(_0x4d8316(0x13c))/0x7*(-parseInt(_0x4d8316(0x13f))/0x8)+-parseInt(_0x4d8316(0x13b))/0x9*(-parseInt(_0x4d8316(0x134))/0xa);if(_0x1d14d0===_0x56aa54)break;else _0x537451['push'](_0x537451['shift']());}catch(_0x41382e){_0x537451['push'](_0x537451['shift']());}}}(a69_0x3e65,0x66ab9),module[a69_0x3c1f54(0x135)]=require(a69_0x3c1f54(0x136)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0xd01403=a70_0x44dd;function a70_0x44dd(_0x44ecd8,_0x1eb79f){const _0x265c05=a70_0x265c();return a70_0x44dd=function(_0x44ddd7,_0x4b81de){_0x44ddd7=_0x44ddd7-0x180;let _0x12a721=_0x265c05[_0x44ddd7];return _0x12a721;},a70_0x44dd(_0x44ecd8,_0x1eb79f);}(function(_0x12ada5,_0x64fafd){const _0x9c1e1d=a70_0x44dd,_0x22a7ae=_0x12ada5();while(!![]){try{const _0x5e94aa=parseInt(_0x9c1e1d(0x199))/0x1+parseInt(_0x9c1e1d(0x193))/0x2+parseInt(_0x9c1e1d(0x184))/0x3+parseInt(_0x9c1e1d(0x18d))/0x4+parseInt(_0x9c1e1d(0x1c7))/0x5+-parseInt(_0x9c1e1d(0x1bf))/0x6*(-parseInt(_0x9c1e1d(0x19c))/0x7)+parseInt(_0x9c1e1d(0x188))/0x8*(-parseInt(_0x9c1e1d(0x1a3))/0x9);if(_0x5e94aa===_0x64fafd)break;else _0x22a7ae['push'](_0x22a7ae['shift']());}catch(_0x25a1f0){_0x22a7ae['push'](_0x22a7ae['shift']());}}}(a70_0x265c,0x46388));const Percy=require(a70_0xd01403(0x1b9)),PercySDK=require(a70_0xd01403(0x1b1)),PercyCaptureModes=require(a70_0xd01403(0x1bd)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a70_0xd01403(0x1bc))[a70_0xd01403(0x1ac)],helper=require('../helper'),PerformanceTester=require(a70_0xd01403(0x19d));function a70_0x265c(){const _0xfb44c6=['isUndefined','1878023gBOAXl','../performance-tester','increment','forEach','error','stopPercy','stop','630FBjwTm','PfjzG','percyCaptureMode','browserStackPercyOptions','manual','browserstackPercyMap','deviceName','BUNNE','app','winstonLogger','CwpKn','getPercyOptions','getDriver','Error\x20patching\x20','./PercySDK','startPercy','browser','gVAAn','MrhTd','toLowerCase','reduce','debug','./Percy','getBestPlatformForPercySnapshot','RTWdO','../logger','./PercyCaptureModes','nestedKeyValue','6PwQWWz','percyAutoCapture','percy','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','safari','apply','chrome','platforms','663520LjprXA','firefox','UKbon','mKtEp','\x20for\x20percy\x20','GNNWF','372600PELyxK','Starting\x20percy','browserstackSessionName','Stopping\x20percy','147112VmWYBM','browserstackPercyBestPlatform','start','measureWrapper','init','1087640YoJtzz','percy:start','element','cMCkq','fQSvM','overrideXforPercy','725922SHmrGG','screenshotApp','rsDbP','patch','driver','getName','414790gXtKwu','prototype'];a70_0x265c=function(){return _0xfb44c6;};return a70_0x265c();}exports[a70_0xd01403(0x1b2)]=PerformanceTester[a70_0xd01403(0x18b)](a70_0xd01403(0x18e),async _0x2b101e=>{const _0x31b5a6=a70_0xd01403,_0x5da542={};_0x5da542[_0x31b5a6(0x1b5)]=_0x31b5a6(0x185);const _0x1f8700=_0x5da542;logger[_0x31b5a6(0x1b8)](_0x1f8700[_0x31b5a6(0x1b5)]);const _0x9c1e41=new Percy(_0x2b101e),_0x47349c=await _0x9c1e41[_0x31b5a6(0x18a)]();if(_0x47349c)return _0x9c1e41;return null;}),exports[a70_0xd01403(0x1a1)]=PerformanceTester[a70_0xd01403(0x18b)]('percy:stop',async _0x123a5c=>{const _0x439fa5=a70_0xd01403,_0x42cfe8={};_0x42cfe8[_0x439fa5(0x1ad)]=_0x439fa5(0x187);const _0x5081f9=_0x42cfe8;return logger['debug'](_0x5081f9[_0x439fa5(0x1ad)]),_0x123a5c[_0x439fa5(0x1a2)]();}),exports[a70_0xd01403(0x1ba)]=_0x27082f=>{const _0x2fea8b=a70_0xd01403,_0x1b3228={};_0x1b3228[_0x2fea8b(0x190)]=function(_0x41abe5,_0x1bed9d){return _0x41abe5<_0x1bed9d;};const _0x45697a=_0x1b3228,_0x503b79={};_0x503b79[_0x2fea8b(0x1c5)]=0x0,_0x503b79[_0x2fea8b(0x1c8)]=0x1,_0x503b79['edge']=0x2,_0x503b79[_0x2fea8b(0x1c3)]=0x3;const _0xe61f6e=_0x503b79;return _0x27082f[_0x2fea8b(0x1b7)]((_0x12947f,_0xd46a5e,_0x3b5b02)=>{const _0x1546b8=_0x2fea8b,_0x544c02=_0x27082f[_0x12947f];if(_0xd46a5e[_0x1546b8(0x1a9)])return _0x12947f;if(_0x544c02['deviceName'])return _0x3b5b02;const _0x2948bf=_0xd46a5e[_0x1546b8(0x1b3)]?_0xd46a5e[_0x1546b8(0x1b3)]:_0xd46a5e['browserName'];if(_0x2948bf&&_0x45697a[_0x1546b8(0x190)](_0xe61f6e[_0x2948bf[_0x1546b8(0x1b6)]()],_0xe61f6e[_0x2948bf[_0x1546b8(0x1b6)]()]))return _0x3b5b02;return _0x12947f;},0x0);},exports[a70_0xd01403(0x1c0)]=async(_0x1625d6,_0x131e1c,_0x230e64)=>{const _0x10240d=a70_0xd01403,_0x577dd6={};_0x577dd6[_0x10240d(0x1b4)]=_0x10240d(0x1c2);const _0x403a73=_0x577dd6,_0x42aebc=_0x1625d6['browserstackPercyMap'];if(helper[_0x10240d(0x19b)](_0x1625d6[_0x10240d(0x186)])){logger[_0x10240d(0x1b8)](_0x403a73[_0x10240d(0x1b4)]);return;}const _0x5cbae3=_0x42aebc[_0x10240d(0x198)](_0x1625d6[_0x10240d(0x186)],_0x131e1c);_0x230e64[_0x10240d(0x1ab)]?await PercySDK[_0x10240d(0x194)](_0x1625d6,_0x5cbae3):await PercySDK['screenshot'](_0x1625d6,_0x5cbae3),_0x42aebc[_0x10240d(0x19e)](_0x1625d6[_0x10240d(0x186)],_0x131e1c);},exports['patchDriverPercy']=(_0x24068f,_0x2bde5a,_0x2acba8)=>{const _0x351d77=a70_0xd01403,_0x44985e={};_0x44985e['RTWdO']=_0x351d77(0x1a6),_0x44985e[_0x351d77(0x1a4)]='percy',_0x44985e[_0x351d77(0x181)]=function(_0x4a3413,_0x2ec228){return _0x4a3413!==_0x2ec228;},_0x44985e['BUNNE']=_0x351d77(0x1a7);const _0x508c17=_0x44985e;if(!helper[_0x351d77(0x1be)](_0x2acba8,[_0x508c17[_0x351d77(0x1bb)],_0x508c17[_0x351d77(0x1a4)]]))return;if(_0x2acba8[_0x351d77(0x1a6)]['percy']&&_0x2acba8['browserStackPercyOptions'][_0x351d77(0x1a5)]&&_0x508c17[_0x351d77(0x181)](_0x2acba8[_0x351d77(0x1a6)][_0x351d77(0x1a5)],_0x508c17[_0x351d77(0x1aa)])&&!_0x24068f[_0x351d77(0x1a8)]){global['browserstackSessionName']&&(_0x24068f[_0x351d77(0x186)]=global[_0x351d77(0x186)]),_0x24068f['browserstackPercyMap']=new PercyCaptureMap();const _0x513e55=PercyCaptureModes[_0x2acba8[_0x351d77(0x1a6)][_0x351d77(0x1a5)]];_0x513e55['driver']&&_0x513e55[_0x351d77(0x197)][_0x351d77(0x19f)](_0x4ed51a=>this[_0x351d77(0x192)](_0x24068f,_0x4ed51a,_0x2acba8)),_0x513e55[_0x351d77(0x18f)]&&_0x513e55[_0x351d77(0x18f)][_0x351d77(0x19f)](_0x4112b4=>{const _0x15d98a=_0x351d77;if(_0x2bde5a[_0x15d98a(0x19a)][_0x15d98a(0x196)+_0x4112b4])return;_0x2bde5a['prototype']['patch'+_0x4112b4]=!![];const _0x53bb7e=_0x2bde5a[_0x15d98a(0x19a)][_0x4112b4];_0x2bde5a[_0x15d98a(0x19a)][_0x4112b4]=async function(){const _0x47a5c7=_0x15d98a;let _0x5be3ed=_0x53bb7e[_0x47a5c7(0x1c4)](this,arguments);_0x5be3ed&&_0x5be3ed['then']&&(_0x5be3ed=await _0x5be3ed);try{const _0x37b6b0=this[_0x47a5c7(0x1af)]();await exports[_0x47a5c7(0x1c0)](_0x37b6b0,_0x4112b4,_0x2acba8);}catch(_0x2a1a85){logger['error']('Error\x20patching\x20'+_0x4112b4+'\x20for\x20percy\x20'+_0x2a1a85);}return _0x5be3ed;};});}},exports[a70_0xd01403(0x192)]=function(_0x42b758,_0x525e4d,_0x396b16){const _0x2f961a=a70_0xd01403,_0x49275e={};_0x49275e[_0x2f961a(0x195)]=function(_0x78798e,_0x4e834a){return _0x78798e+_0x4e834a;},_0x49275e[_0x2f961a(0x180)]=_0x2f961a(0x196),_0x49275e[_0x2f961a(0x183)]=function(_0x53a36e,_0x399bdd){return _0x53a36e+_0x399bdd;},_0x49275e[_0x2f961a(0x191)]=_0x2f961a(0x18c);const _0x2acb55=_0x49275e,_0x131b89=_0x2acb55['rsDbP'](_0x2acb55[_0x2f961a(0x180)],_0x525e4d),_0x3b5fee=_0x2acb55[_0x2f961a(0x183)](_0x2acb55[_0x2f961a(0x191)],_0x525e4d),_0x4d410b=this;if(_0x42b758[_0x131b89]||!_0x42b758[_0x525e4d])return;_0x42b758[_0x131b89]=!![],_0x42b758[_0x3b5fee]=_0x42b758[_0x525e4d],_0x42b758[_0x525e4d]=async()=>{const _0x453796=_0x2f961a;try{await _0x4d410b[_0x453796(0x1c0)](_0x42b758,_0x525e4d,_0x396b16);}catch(_0x2676b3){logger[_0x453796(0x1a0)](_0x453796(0x1b0)+_0x525e4d+_0x453796(0x182)+_0x2676b3);}return await _0x42b758[_0x3b5fee][_0x453796(0x1c4)](_0x42b758,arguments);};},exports[a70_0xd01403(0x1ae)]=_0x55da24=>{const _0x3c6424=a70_0xd01403,_0x32d1e4={};_0x32d1e4['percy']=_0x55da24[_0x3c6424(0x1c1)],_0x32d1e4[_0x3c6424(0x1a5)]=_0x55da24[_0x3c6424(0x1a5)];const _0x3ccbb1=_0x32d1e4;_0x55da24[_0x3c6424(0x1c1)]&&(_0x3ccbb1[_0x3c6424(0x189)]=exports['getBestPlatformForPercySnapshot'](_0x55da24[_0x3c6424(0x1c6)]));;return _0x3ccbb1;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a71_0x21f4(_0x101de9,_0x31a0ad){const _0x40c658=a71_0x40c6();return a71_0x21f4=function(_0x21f439,_0x4fd666){_0x21f439=_0x21f439-0x140;let _0x4abc5f=_0x40c658[_0x21f439];return _0x4abc5f;},a71_0x21f4(_0x101de9,_0x31a0ad);}const a71_0x50f585=a71_0x21f4;(function(_0x6033d7,_0x2fcf19){const _0x346e96=a71_0x21f4,_0x401dc5=_0x6033d7();while(!![]){try{const _0x22f90a=parseInt(_0x346e96(0x162))/0x1*(parseInt(_0x346e96(0x19b))/0x2)+parseInt(_0x346e96(0x19a))/0x3*(-parseInt(_0x346e96(0x1b2))/0x4)+parseInt(_0x346e96(0x160))/0x5*(parseInt(_0x346e96(0x174))/0x6)+parseInt(_0x346e96(0x157))/0x7+-parseInt(_0x346e96(0x14c))/0x8*(parseInt(_0x346e96(0x14e))/0x9)+parseInt(_0x346e96(0x15c))/0xa*(-parseInt(_0x346e96(0x167))/0xb)+-parseInt(_0x346e96(0x188))/0xc;if(_0x22f90a===_0x2fcf19)break;else _0x401dc5['push'](_0x401dc5['shift']());}catch(_0x187b73){_0x401dc5['push'](_0x401dc5['shift']());}}}(a71_0x40c6,0xba936));function a71_0x40c6(){const _0x44c96a=['ZRWJT','stack','531QKGKTX','20Sczpnj','join','XgnCt','CDsPh','buffered','IKMiw','stopMonitoring','</tbody></table></body></html>','</td><td>','jsonReportFileName','writeFileSync','message','dxFJA','disconnect','writeFile','performance-report.json','stringify','error-report.json','false','lhzPr','finalizeErrors','slice','getPerformance','9116AfgRaT','winstonLogger','vXZzV','lwdJr','ExEtQ','AfNpF','./test-observability/utils','concat','errorFile','length','push','aSOAN','match','apply','XaiTl','finalizePerfMeasures','entryType','\x20for\x20all\x20processes\x20is\x20','calculateTimesFromMultipleFiles','parse','Error\x20in\x20doing\x20csv\x20operations:\x20','entries','269032syuZqA','catch','369USJCLk','QMuMx','observe','getEntries','./logger','function','startMonitoring','measureWrapper','appendFileSync','10100111nLBPMO','pushErrors','debug','AVKBW','cTAVA','7862410xgYqQN','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','_errorEvents','-start','6765635jeMfCX','path','65563AjQjaw','xnZbO','Error\x20in\x20writing\x20html\x20','BROWSERSTACK_SDK_INSTRUMENTATION','values','11egTBrW','generateJSON','_observer','unlinkSync','cxmoN','errors','_measureEvents','RSfea','started','aDIgr','isEnabled','getCleanedPerfEvents','errorReportFileName','6DenVqf','cwd','knbIB','dNTEi','iVKaD','xPtgS','Enylj','measures','calculateTimeFromEvents','map','measure','meta','duration','getEventsFromJSON','Performance\x20report\x20is\x20at\x20','existsSync','<h1>Performance\x20Report</h1>','UtAeG','mark','flhjA','1428036DSGLQO','generateHTMLReport','_events','finalize','echSf','nxDua','readFileSync','name','UWaHF','toString','PIJFX','UQCpR','vLfSp','qVLHo','wGRoA','captureError'];a71_0x40c6=function(){return _0x44c96a;};return a71_0x40c6();}const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a71_0x50f585(0x1b8)),path=require(a71_0x50f585(0x161)),logger=require(a71_0x50f585(0x152))[a71_0x50f585(0x1b3)];class PerformanceTester{static [a71_0x50f585(0x169)];static ['_events']=[];static [a71_0x50f585(0x16d)]=[];static ['_errorEvents']=[];static [a71_0x50f585(0x16f)]=![];static ['jsonReportFileName']='performance-report.json';static ['errorReportFileName']='error-report.json';static[a71_0x50f585(0x154)](_0x44bf25=a71_0x50f585(0x1aa),_0x445f7e=a71_0x50f585(0x1ac)){const _0x4be69e=a71_0x50f585,_0x309885={};_0x309885[_0x4be69e(0x176)]=function(_0x5ee512,_0x2062d5){return _0x5ee512===_0x2062d5;},_0x309885[_0x4be69e(0x15b)]='measure',_0x309885[_0x4be69e(0x177)]=_0x4be69e(0x153);const _0x45218b=_0x309885;if(this[_0x4be69e(0x16f)]||!this['isEnabled']())return;this[_0x4be69e(0x169)]=new PerformanceObserver(_0xe43fab=>{const _0x523ac5=_0x4be69e,_0x4bc54b={'UtAeG':function(_0x1c3c3c,_0x3565d7){const _0x29831d=a71_0x21f4;return _0x45218b[_0x29831d(0x176)](_0x1c3c3c,_0x3565d7);},'QMuMx':_0x45218b[_0x523ac5(0x15b)]};_0xe43fab[_0x523ac5(0x151)]()['forEach'](_0xaf86fb=>{const _0x70f996=_0x523ac5;_0x4bc54b[_0x70f996(0x185)](_0xaf86fb[_0x70f996(0x146)],_0x4bc54b[_0x70f996(0x14f)])?this[_0x70f996(0x16d)]['push'](_0xaf86fb):this[_0x70f996(0x18a)][_0x70f996(0x140)](_0xaf86fb);});});const _0x4758b5={};_0x4758b5[_0x4be69e(0x19f)]=!![],_0x4758b5['entryTypes']=[_0x45218b[_0x4be69e(0x177)],_0x45218b[_0x4be69e(0x15b)]],this[_0x4be69e(0x169)][_0x4be69e(0x150)](_0x4758b5),this['started']=!![],this[_0x4be69e(0x1a4)]=_0x44bf25,this[_0x4be69e(0x173)]=_0x445f7e;}static[a71_0x50f585(0x1b1)](){return performance;}static[a71_0x50f585(0x17c)](_0x38ae33,_0x3aee36){const _0x4e26d7=a71_0x50f585,_0x19579d={};_0x19579d['nxDua']=function(_0x253d62,_0xc0c860){return _0x253d62+_0xc0c860;},_0x19579d[_0x4e26d7(0x178)]=function(_0x1cc114,_0x134d08){return _0x1cc114||_0x134d08;},_0x19579d[_0x4e26d7(0x16e)]=function(_0x2240cf,_0x21a2ef){return _0x2240cf===_0x21a2ef;};const _0x382f6e=_0x19579d,_0x3b5927={};if(!_0x38ae33||_0x382f6e[_0x4e26d7(0x16e)](_0x38ae33[_0x4e26d7(0x1bb)],0x0))return;_0x38ae33['map'](_0x3bd293=>{const _0x56c6be=_0x4e26d7;!_0x3b5927[_0x3bd293[_0x56c6be(0x18f)]]&&(_0x3b5927[_0x3bd293['name']]=0x0),_0x3b5927[_0x3bd293[_0x56c6be(0x18f)]]+=_0x3bd293[_0x56c6be(0x180)];});const _0x539a69=_0x3aee36['reduce']((_0x40755b,_0x4d5988)=>{const _0x4a7b54=_0x4e26d7;return _0x382f6e[_0x4a7b54(0x18d)](_0x3b5927[_0x4d5988],_0x382f6e[_0x4a7b54(0x178)](_0x40755b,0x0));},0x0);return _0x539a69;}static async[a71_0x50f585(0x148)](_0xce69,_0x5df517){const _0x51a26c=a71_0x50f585,_0x2a7f94={'ZRWJT':function(_0xa2afe0,_0x32060e){return _0xa2afe0+_0x32060e;},'fQyLZ':function(_0x529c63,_0xa52a30){return _0x529c63||_0xa52a30;},'xnZbO':function(_0x3aa844,_0x1546a8){return _0x3aa844===_0x1546a8;},'XgnCt':function(_0x225f7d,_0x4e33c5){return _0x225f7d(_0x4e33c5);},'cxmoN':function(_0x5789a7,_0x1e78a3){return _0x5789a7(_0x1e78a3);}};if(!_0xce69||_0x2a7f94[_0x51a26c(0x163)](_0xce69[_0x51a26c(0x1bb)],0x0))return 0x0;const _0x15490e=[];for(const _0xc9dd67 of _0xce69){const _0x422699=path[_0x51a26c(0x19c)]('.',_0xc9dd67);try{const _0x1627cb=this['getEventsFromJSON'](_0x422699);_0x1627cb[_0x51a26c(0x17d)](_0x2eedbd=>{const _0xfd70bf=_0x51a26c;!_0x15490e[_0x2eedbd[_0xfd70bf(0x18f)]]&&(_0x15490e[_0x2eedbd[_0xfd70bf(0x18f)]]=0x0),_0x15490e[_0x2eedbd['name']]+=_0x2eedbd['duration'];});}catch(_0x5acfb4){_0x2a7f94[_0x51a26c(0x19d)](debug,_0x51a26c(0x14a)+_0x5acfb4['toString']());}}const _0x279b3b=_0x5df517['reduce']((_0x48ccf4,_0x5b0e08)=>{const _0x5bd386=_0x51a26c;return _0x2a7f94[_0x5bd386(0x198)](_0x15490e[_0x5b0e08],_0x2a7f94['fQyLZ'](_0x48ccf4,0x0));},0x0);return _0x2a7f94[_0x51a26c(0x16b)](debug,'Time\x20for\x20'+_0x5df517+_0x51a26c(0x147)+_0x279b3b),_0x279b3b;}static[a71_0x50f585(0x181)](_0x3c5316){const _0x562b4e=a71_0x50f585;if(!fs[_0x562b4e(0x183)](_0x3c5316))return[];return JSON[_0x562b4e(0x149)](fs[_0x562b4e(0x18e)](_0x3c5316)[_0x562b4e(0x191)]());}static async['stopAndGenerate'](_0x57c828='performance-own.html',_0x42faed=null){const _0x3a10d3=a71_0x50f585,_0x33c20f={'Enylj':function(_0x26c776,_0x16b7d0){return _0x26c776(_0x16b7d0);},'bIMpR':function(_0x34fe37,_0x2a9030){return _0x34fe37(_0x2a9030);},'CDsPh':function(_0xd1025b,_0x55e213){return _0xd1025b(_0x55e213);}};if(!this[_0x3a10d3(0x16f)])return;await _0x33c20f[_0x3a10d3(0x19e)](sleep,0x1e),this[_0x3a10d3(0x169)][_0x3a10d3(0x1a8)](),this[_0x3a10d3(0x16f)]=![],this[_0x3a10d3(0x168)](this[_0x3a10d3(0x18a)]);const _0x9e06f0=this[_0x3a10d3(0x189)](this[_0x3a10d3(0x18a)]),_0x514e89=path[_0x3a10d3(0x19c)](process[_0x3a10d3(0x175)](),_0x57c828);fs[_0x3a10d3(0x1a9)](_0x514e89,_0x9e06f0,_0x253b9d=>{const _0xcd545b=_0x3a10d3;if(_0x253b9d){_0x33c20f[_0xcd545b(0x17a)](debug,_0xcd545b(0x164)+_0x253b9d[_0xcd545b(0x191)]());return;}_0x33c20f['bIMpR'](debug,_0xcd545b(0x182)+_0x514e89);});if(_0x42faed)return this[_0x3a10d3(0x17c)](this[_0x3a10d3(0x18a)],_0x42faed);}static[a71_0x50f585(0x189)](_0x2e63d8){const _0x497a05=a71_0x50f585,_0x35ac9c={};_0x35ac9c[_0x497a05(0x196)]=_0x497a05(0x15d),_0x35ac9c[_0x497a05(0x1a7)]=_0x497a05(0x184),_0x35ac9c[_0x497a05(0x190)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x35ac9c[_0x497a05(0x144)]=_0x497a05(0x1a2);const _0x3d82ce=_0x35ac9c;let _0x5e0013=_0x3d82ce[_0x497a05(0x196)];return _0x5e0013+=_0x3d82ce[_0x497a05(0x1a7)],_0x5e0013+=_0x3d82ce[_0x497a05(0x190)],_0x2e63d8['forEach'](_0x413a7a=>{const _0x152c3e=_0x497a05;_0x5e0013+='<tr><td>'+_0x413a7a['name']+_0x152c3e(0x1a3)+_0x413a7a['duration']+'</td></tr>';}),_0x5e0013+=_0x3d82ce[_0x497a05(0x144)],_0x5e0013;}static[a71_0x50f585(0x168)](_0x279f09){const _0x4da633=a71_0x50f585;if(!this[_0x4da633(0x1a4)])return;const _0x174235={};_0x279f09[_0x4da633(0x17d)](_0x4ba7b1=>{const _0x268450=_0x4da633;!_0x174235[_0x4ba7b1['name']]&&(_0x174235[_0x4ba7b1[_0x268450(0x18f)]]=0x0),_0x174235[_0x4ba7b1['name']]+=_0x4ba7b1[_0x268450(0x180)];});const _0x1209a9=Object[_0x4da633(0x14b)](_0x174235)[_0x4da633(0x17d)](([_0x4dad7f,_0x1dc938])=>{const _0x2b6a6a=_0x4da633,_0x24e5fb={};return _0x24e5fb[_0x2b6a6a(0x18f)]=_0x4dad7f,_0x24e5fb[_0x2b6a6a(0x180)]=_0x1dc938,_0x24e5fb;});fs[_0x4da633(0x1a5)](this['jsonReportFileName'],JSON[_0x4da633(0x1ab)](_0x1209a9));}static['isEnabled'](){const _0x2d628b=a71_0x50f585,_0x26228d={};_0x26228d[_0x2d628b(0x18c)]=function(_0x361230,_0x55268c){return _0x361230===_0x55268c;},_0x26228d[_0x2d628b(0x1b6)]=_0x2d628b(0x1ad);const _0x4e13df=_0x26228d;return!_0x4e13df['echSf'](process['env'][_0x2d628b(0x165)],_0x4e13df['ExEtQ']);}static[a71_0x50f585(0x17e)](_0x1112c4,_0x156a62,_0x40e1c7=null,_0x3d396d=null){const _0x5b15d6=a71_0x50f585,_0x414208={};_0x414208['flhjA']=function(_0x123ecb,_0x81706d){return _0x123ecb+_0x81706d;},_0x414208['hHSEK']=_0x5b15d6(0x15f),_0x414208[_0x5b15d6(0x179)]='-end',_0x414208[_0x5b15d6(0x1b5)]=function(_0x5b277c,_0x1affa1){return _0x5b277c instanceof _0x1affa1;};const _0x4c6aac=_0x414208;try{if(this[_0x5b15d6(0x16f)]&&this[_0x5b15d6(0x171)]()){let _0x4a082b=_0x1112c4;_0x40e1c7&&(_0x4a082b=_0x1112c4+'['+JSON[_0x5b15d6(0x1ab)](_0x40e1c7)+']');const _0xd9c34=_0x4c6aac[_0x5b15d6(0x187)](_0x4a082b,_0x4c6aac['hHSEK']),_0x33e2e1=_0x4c6aac[_0x5b15d6(0x187)](_0x4a082b,_0x4c6aac[_0x5b15d6(0x179)]);performance[_0x5b15d6(0x186)](_0xd9c34);const _0x33f352=_0x156a62[_0x5b15d6(0x143)](null,_0x3d396d);if(_0x4c6aac['lwdJr'](_0x33f352,Promise))return new Promise((_0x3ca67a,_0x189a3e)=>{const _0x2d90c6=_0x5b15d6;_0x33f352['then'](_0x4c09ef=>_0x3ca67a(_0x4c09ef))[_0x2d90c6(0x14d)](_0x44da32=>_0x189a3e(_0x44da32))['finally'](()=>{const _0xa1c12a=_0x2d90c6;performance[_0xa1c12a(0x186)](_0x33e2e1),performance['measure'](_0x4a082b,_0xd9c34,_0x33e2e1);});});;return performance[_0x5b15d6(0x186)](_0x33e2e1),performance[_0x5b15d6(0x17e)](_0x4a082b,_0xd9c34,_0x33e2e1),_0x33f352;};return _0x156a62[_0x5b15d6(0x143)](null,_0x3d396d);}catch(_0x1974e5){return _0x156a62[_0x5b15d6(0x143)](null,_0x3d396d);}}static[a71_0x50f585(0x155)](_0x450af1,_0x58cafd){const _0x593fa1=this;return function(){const _0x5aefb5=a71_0x21f4,_0x107be3=[_0x450af1,_0x58cafd,null]['concat'](arguments);return _0x593fa1[_0x5aefb5(0x17e)][_0x5aefb5(0x143)](_0x593fa1,_0x107be3);};}static[a71_0x50f585(0x172)](){const _0x4419be=a71_0x50f585,_0x2769e7={};_0x2769e7[_0x4419be(0x1b7)]=function(_0x792d54,_0x1a9f9b){return _0x792d54/_0x1a9f9b;},_0x2769e7[_0x4419be(0x195)]=function(_0x27b625,_0x1cbe9b){return _0x27b625+_0x1cbe9b;},_0x2769e7[_0x4419be(0x1b4)]=function(_0x40972c,_0x46c8f9){return _0x40972c*_0x46c8f9;};const _0x284ecc=_0x2769e7,_0x1be080=/(^.*)\[(.*)\]$/,_0x3e209c={},_0x5ea635={};for(const _0x2a551d of this[_0x4419be(0x16d)]){const _0x2b9138=_0x2a551d[_0x4419be(0x18f)][_0x4419be(0x142)](_0x1be080),_0x3eb1db={};_0x3eb1db['name']=_0x2a551d['name'],_0x3eb1db['duration']=_0x2a551d[_0x4419be(0x180)]||0x0;const _0x3d8242=_0x3eb1db;_0x2b9138&&(_0x3d8242[_0x4419be(0x18f)]=_0x2b9138[0x1],_0x3d8242[_0x4419be(0x17f)]=JSON[_0x4419be(0x149)](_0x2b9138[0x2]));if(_0x3e209c[_0x3d8242[_0x4419be(0x18f)]]){const _0x1f3cdb=_0x3e209c[_0x3d8242[_0x4419be(0x18f)]],_0x3f75e3=_0x5ea635[_0x3d8242[_0x4419be(0x18f)]];_0x3e209c[_0x3d8242['name']][_0x4419be(0x180)]=_0x284ecc[_0x4419be(0x1b7)](_0x284ecc[_0x4419be(0x195)](_0x284ecc[_0x4419be(0x1b4)](_0x1f3cdb['duration'],_0x3f75e3),_0x3d8242[_0x4419be(0x180)]),_0x284ecc['qVLHo'](0x1,_0x3f75e3)),_0x5ea635[_0x3d8242['name']]++;}else _0x3e209c[_0x3d8242[_0x4419be(0x18f)]]=_0x3d8242,_0x5ea635[_0x3d8242[_0x4419be(0x18f)]]=0x1;}return Object[_0x4419be(0x166)](_0x3e209c);}static['pushPerfMeasures'](){const _0x48c4ee=a71_0x50f585,_0x5dabcc={};_0x5dabcc[_0x48c4ee(0x192)]=function(_0x87aaa6,_0x195879){return _0x87aaa6===_0x195879;},_0x5dabcc['aDIgr']=function(_0x5a82c0,_0x1ab22e){return _0x5a82c0+_0x1ab22e;};const _0x5872a9=_0x5dabcc;if(_0x5872a9[_0x48c4ee(0x192)](this['_measureEvents']['length'],0x0))return;const _0x23ea27=this[_0x48c4ee(0x172)](),_0x5a6806=JSON['stringify'](_0x23ea27),_0x2a3f12=_0x5872a9[_0x48c4ee(0x170)](_0x5a6806[_0x48c4ee(0x1b0)](0x1,-0x1),',');fs[_0x48c4ee(0x156)](this[_0x48c4ee(0x1a4)],_0x2a3f12);}static[a71_0x50f585(0x145)](){const _0x1b182f=a71_0x50f585,_0x12a5c2={};_0x12a5c2[_0x1b182f(0x193)]=function(_0x5d9b9a,_0x3bfd9c){return _0x5d9b9a===_0x3bfd9c;},_0x12a5c2[_0x1b182f(0x15a)]=function(_0x1951e6,_0x850968){return _0x1951e6>_0x850968;};const _0x405599=_0x12a5c2;if(!this['started']||_0x405599[_0x1b182f(0x193)](this[_0x1b182f(0x16d)][_0x1b182f(0x1bb)],0x0))return[];if(!fs[_0x1b182f(0x183)](this['jsonReportFileName']))return this[_0x1b182f(0x16d)];let _0x980455=fs[_0x1b182f(0x18e)](this['jsonReportFileName'])[_0x1b182f(0x191)]();_0x980455='['+_0x980455['slice'](0x0,-0x1)+']';let _0x3f150c=JSON['parse'](_0x980455);return _0x405599['AVKBW'](this[_0x1b182f(0x16d)][_0x1b182f(0x1bb)],0x0)&&(_0x3f150c=_0x3f150c[_0x1b182f(0x1b9)](this['getCleanedPerfEvents']())),this[_0x1b182f(0x169)][_0x1b182f(0x1a8)](),fs[_0x1b182f(0x16a)](this['jsonReportFileName']),_0x3f150c;}static[a71_0x50f585(0x158)](){const _0x238003=a71_0x50f585,_0x2d9950={};_0x2d9950[_0x238003(0x1ae)]=function(_0x4207fe,_0x2d4193){return _0x4207fe===_0x2d4193;},_0x2d9950['IKMiw']=function(_0x41434c,_0x3bbd79){return _0x41434c+_0x3bbd79;};const _0xd655b4=_0x2d9950;if(_0xd655b4[_0x238003(0x1ae)](this[_0x238003(0x15e)][_0x238003(0x1bb)],0x0))return;const _0x267965=JSON['stringify'](this[_0x238003(0x15e)]),_0x1937ee=_0xd655b4[_0x238003(0x1a0)](_0x267965['slice'](0x1,-0x1),',');fs[_0x238003(0x156)](this[_0x238003(0x1ba)],_0x1937ee);}static['finalizeErrors'](){const _0x19894e=a71_0x50f585,_0xec7d2c={};_0xec7d2c[_0x19894e(0x141)]=function(_0x4dd116,_0x301217){return _0x4dd116>_0x301217;};const _0x1a8782=_0xec7d2c;if(!fs[_0x19894e(0x183)](this[_0x19894e(0x173)]))return this[_0x19894e(0x15e)];let _0x53559a=fs[_0x19894e(0x18e)](this[_0x19894e(0x173)])[_0x19894e(0x191)]();_0x53559a='['+_0x53559a['slice'](0x0,-0x1)+']';let _0x1e21df=JSON['parse'](_0x53559a);return _0x1a8782[_0x19894e(0x141)](this[_0x19894e(0x15e)]['length'],0x0)&&(_0x1e21df=_0x1e21df[_0x19894e(0x1b9)](this['_errorEvents'])),fs[_0x19894e(0x16a)](this[_0x19894e(0x173)]),_0x1e21df;}static[a71_0x50f585(0x197)](_0x2889f9){const _0x51a0ec=a71_0x50f585;if(!this['isEnabled']())return;this[_0x51a0ec(0x15e)][_0x51a0ec(0x140)]({'message':_0x2889f9[_0x51a0ec(0x1a6)],'trace':_0x2889f9[_0x51a0ec(0x199)],'code':_0x2889f9['code']||null,'time':new Date()});}static[a71_0x50f585(0x1a1)](){const _0x2bcdb4=a71_0x50f585,_0x3e985e={};_0x3e985e['vLfSp']='Error\x20stopping\x20monitoring';const _0x407367=_0x3e985e;try{if(!this[_0x2bcdb4(0x171)]())return;this[_0x2bcdb4(0x169)]['disconnect'](),this['pushPerfMeasures'](),this[_0x2bcdb4(0x158)]();}catch{logger[_0x2bcdb4(0x159)](_0x407367[_0x2bcdb4(0x194)]);}}static[a71_0x50f585(0x18b)](){const _0xf3a503=a71_0x50f585,_0x36c6c6=this[_0xf3a503(0x145)](),_0x49c8ee=this[_0xf3a503(0x1af)]();if(!this[_0xf3a503(0x171)]()){const _0x1e5f41={};return _0x1e5f41[_0xf3a503(0x17b)]=[],_0x1e5f41['errors']=[],_0x1e5f41;}const _0x3157eb={};return _0x3157eb[_0xf3a503(0x17b)]=_0x36c6c6,_0x3157eb[_0xf3a503(0x16c)]=_0x49c8ee,_0x3157eb;}}module['exports']=PerformanceTester;
|
|
1
|
+
const a71_0xe8ec16=a71_0x4f0d;(function(_0x28bb5b,_0x440fe4){const _0x2e8d8e=a71_0x4f0d,_0x14e7c5=_0x28bb5b();while(!![]){try{const _0x5254a6=-parseInt(_0x2e8d8e(0x1b8))/0x1*(parseInt(_0x2e8d8e(0x1cc))/0x2)+parseInt(_0x2e8d8e(0x20b))/0x3+-parseInt(_0x2e8d8e(0x1c9))/0x4+parseInt(_0x2e8d8e(0x1c8))/0x5+-parseInt(_0x2e8d8e(0x1f8))/0x6*(parseInt(_0x2e8d8e(0x1d6))/0x7)+parseInt(_0x2e8d8e(0x1b9))/0x8+parseInt(_0x2e8d8e(0x220))/0x9*(parseInt(_0x2e8d8e(0x1e6))/0xa);if(_0x5254a6===_0x440fe4)break;else _0x14e7c5['push'](_0x14e7c5['shift']());}catch(_0x15e108){_0x14e7c5['push'](_0x14e7c5['shift']());}}}(a71_0x235b,0x26a14));function a71_0x235b(){const _0x550b7f=['\x20for\x20all\x20processes\x20is\x20','push','length','_events','generateJSON','started','message','cwd','stack','toString','460986ikBfyH','forEach','VwVdT','finalizePerfMeasures','startMonitoring','oDxYt','YoznF','readFileSync','observe','errors','performance-report.json','reduce','map','jfxGp','Error\x20in\x20doing\x20csv\x20operations:\x20','</td><td>','_measureEvents','ojElA','rgERR','</tbody></table></body></html>','zFHTX','1275084wFQdOa','writeFileSync','code','SoLjd','measures','catch','TCpBY','XlrNy','pushPerfMeasures','SclFA','<h1>Performance\x20Report</h1>','VmsfW','getEntries','Error\x20in\x20writing\x20html\x20','GkkLx','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','pushErrors','generateHTMLReport','jsonReportFileName','concat','parse','vXaIi','4741KhnEut','1019032UpfCAu','appendFileSync','LGTgn','errorFile','entryType','entries','Time\x20for\x20','debug','nlMQn','match','getEventsFromJSON','calculateTimeFromEvents','ZGHdt','apply','lHLJo','386235YFkThY','1202980ejaaII','cLtai','exports','98jdSGYB','Error\x20stopping\x20monitoring','getPerformance','slice','measure','stringify','stopAndGenerate','GrWLR','false','ckuln','644238fwdcjN','isEnabled','name','./test-observability/utils','calculateTimesFromMultipleFiles','LoQfi','path','pTPzh','-end','_observer','disconnect','Biwge','CMimY','fqMAK','-start','duration','30hFpXFt','_errorEvents','getCleanedPerfEvents','lNSem','./logger','existsSync','SguBW','errorReportFileName','values','FAIRW','writeFile','env','BoSaY','error-report.json','finally','Performance\x20report\x20is\x20at\x20','unlinkSync','mark','6HEJfBd','entryTypes','FMyVA','FCpXw','then','finalizeErrors','winstonLogger','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','perf_hooks'];a71_0x235b=function(){return _0x550b7f;};return a71_0x235b();}const fs=require('fs'),{performance,PerformanceObserver}=require(a71_0xe8ec16(0x200)),{sleep,debug}=require(a71_0xe8ec16(0x1d9)),path=require(a71_0xe8ec16(0x1dc)),logger=require(a71_0xe8ec16(0x1ea))[a71_0xe8ec16(0x1fe)];function a71_0x4f0d(_0x3f75d3,_0x2eace4){const _0x235b8b=a71_0x235b();return a71_0x4f0d=function(_0x4f0d46,_0x4e6a53){_0x4f0d46=_0x4f0d46-0x1a8;let _0x3a79ba=_0x235b8b[_0x4f0d46];return _0x3a79ba;},a71_0x4f0d(_0x3f75d3,_0x2eace4);}class PerformanceTester{static ['_observer'];static ['_events']=[];static [a71_0xe8ec16(0x21b)]=[];static [a71_0xe8ec16(0x1e7)]=[];static [a71_0xe8ec16(0x206)]=![];static ['jsonReportFileName']=a71_0xe8ec16(0x215);static ['errorReportFileName']=a71_0xe8ec16(0x1f3);static[a71_0xe8ec16(0x20f)](_0x68024b=a71_0xe8ec16(0x215),_0x36c987=a71_0xe8ec16(0x1f3)){const _0x4f268f=a71_0xe8ec16,_0xb88dc5={};_0xb88dc5['GkkLx']=function(_0x1dc6a8,_0x3b302b){return _0x1dc6a8===_0x3b302b;},_0xb88dc5[_0x4f268f(0x1fb)]=_0x4f268f(0x1d0),_0xb88dc5[_0x4f268f(0x1e3)]='function';const _0x17f25f=_0xb88dc5;if(this[_0x4f268f(0x206)]||!this[_0x4f268f(0x1d7)]())return;this[_0x4f268f(0x1df)]=new PerformanceObserver(_0x4238fa=>{const _0x3e7ac5=_0x4f268f;_0x4238fa[_0x3e7ac5(0x1ae)]()[_0x3e7ac5(0x20c)](_0x100c16=>{const _0x3ba9c6=_0x3e7ac5;_0x17f25f[_0x3ba9c6(0x1b0)](_0x100c16[_0x3ba9c6(0x1bd)],_0x17f25f[_0x3ba9c6(0x1fb)])?this[_0x3ba9c6(0x21b)][_0x3ba9c6(0x202)](_0x100c16):this[_0x3ba9c6(0x204)][_0x3ba9c6(0x202)](_0x100c16);});});const _0x4827a9={};_0x4827a9['buffered']=!![],_0x4827a9[_0x4f268f(0x1f9)]=[_0x17f25f[_0x4f268f(0x1e3)],_0x17f25f['FCpXw']],this[_0x4f268f(0x1df)][_0x4f268f(0x213)](_0x4827a9),this[_0x4f268f(0x206)]=!![],this[_0x4f268f(0x1b4)]=_0x68024b,this[_0x4f268f(0x1ed)]=_0x36c987;}static[a71_0xe8ec16(0x1ce)](){return performance;}static[a71_0xe8ec16(0x1c4)](_0xf7edb8,_0x375485){const _0x23a824=a71_0xe8ec16,_0x150eb0={};_0x150eb0[_0x23a824(0x1a8)]=function(_0x56243b,_0x25b788){return _0x56243b+_0x25b788;},_0x150eb0[_0x23a824(0x21c)]=function(_0x4a2f01,_0x36b762){return _0x4a2f01||_0x36b762;},_0x150eb0[_0x23a824(0x1ef)]=function(_0x1f65c8,_0x5b3fd2){return _0x1f65c8===_0x5b3fd2;};const _0xf2032d=_0x150eb0,_0x3eaa39={};if(!_0xf7edb8||_0xf2032d[_0x23a824(0x1ef)](_0xf7edb8['length'],0x0))return;_0xf7edb8['map'](_0xe591dc=>{const _0x1226d1=_0x23a824;!_0x3eaa39[_0xe591dc[_0x1226d1(0x1d8)]]&&(_0x3eaa39[_0xe591dc[_0x1226d1(0x1d8)]]=0x0),_0x3eaa39[_0xe591dc[_0x1226d1(0x1d8)]]+=_0xe591dc[_0x1226d1(0x1e5)];});const _0x5321f8=_0x375485[_0x23a824(0x216)]((_0x86eafc,_0xbf81ce)=>{const _0x446c3c=_0x23a824;return _0xf2032d[_0x446c3c(0x1a8)](_0x3eaa39[_0xbf81ce],_0xf2032d[_0x446c3c(0x21c)](_0x86eafc,0x0));},0x0);return _0x5321f8;}static async[a71_0xe8ec16(0x1da)](_0x22ef62,_0x24ef4c){const _0x596c59=a71_0xe8ec16,_0x34a767={'SclFA':function(_0x3c8d2f,_0x6440b8){return _0x3c8d2f+_0x6440b8;},'LoQfi':function(_0x23df4f,_0x424b9c){return _0x23df4f||_0x424b9c;},'LGTgn':function(_0x4d8b2f,_0xd14a59){return _0x4d8b2f===_0xd14a59;},'BwxZr':function(_0x40aac6,_0x4221e5){return _0x40aac6(_0x4221e5);},'vXaIi':function(_0x302a65,_0x49a073){return _0x302a65(_0x49a073);}};if(!_0x22ef62||_0x34a767[_0x596c59(0x1bb)](_0x22ef62[_0x596c59(0x203)],0x0))return 0x0;const _0x27c92b=[];for(const _0x409940 of _0x22ef62){const _0x503b99=path['join']('.',_0x409940);try{const _0x18d037=this[_0x596c59(0x1c3)](_0x503b99);_0x18d037[_0x596c59(0x217)](_0x1c806e=>{const _0x166167=_0x596c59;!_0x27c92b[_0x1c806e[_0x166167(0x1d8)]]&&(_0x27c92b[_0x1c806e['name']]=0x0),_0x27c92b[_0x1c806e[_0x166167(0x1d8)]]+=_0x1c806e['duration'];});}catch(_0x1afaaf){_0x34a767['BwxZr'](debug,_0x596c59(0x219)+_0x1afaaf[_0x596c59(0x20a)]());}}const _0x534c11=_0x24ef4c[_0x596c59(0x216)]((_0x553e04,_0x177395)=>{const _0x355185=_0x596c59;return _0x34a767[_0x355185(0x1ab)](_0x27c92b[_0x177395],_0x34a767[_0x355185(0x1db)](_0x553e04,0x0));},0x0);return _0x34a767[_0x596c59(0x1b7)](debug,_0x596c59(0x1bf)+_0x24ef4c+_0x596c59(0x201)+_0x534c11),_0x534c11;}static[a71_0xe8ec16(0x1c3)](_0x2473e6){const _0x1ab6f0=a71_0xe8ec16;if(!fs[_0x1ab6f0(0x1eb)](_0x2473e6))return[];return JSON[_0x1ab6f0(0x1b6)](fs[_0x1ab6f0(0x212)](_0x2473e6)[_0x1ab6f0(0x20a)]());}static async[a71_0xe8ec16(0x1d2)](_0x4da17b='performance-own.html',_0x215523=null){const _0x2f9c07=a71_0xe8ec16,_0x41285d={'GrWLR':function(_0x5a62a1,_0x2e50d2){return _0x5a62a1(_0x2e50d2);},'VmsfW':function(_0xf660c6,_0x5d48d9){return _0xf660c6(_0x5d48d9);}};if(!this[_0x2f9c07(0x206)])return;await _0x41285d[_0x2f9c07(0x1d3)](sleep,0x1e),this[_0x2f9c07(0x1df)][_0x2f9c07(0x1e0)](),this['started']=![],this[_0x2f9c07(0x205)](this[_0x2f9c07(0x204)]);const _0x26ad1d=this[_0x2f9c07(0x1b3)](this[_0x2f9c07(0x204)]),_0x26d360=path['join'](process[_0x2f9c07(0x208)](),_0x4da17b);fs[_0x2f9c07(0x1f0)](_0x26d360,_0x26ad1d,_0x530eed=>{const _0x46e9a9=_0x2f9c07;if(_0x530eed){_0x41285d[_0x46e9a9(0x1d3)](debug,_0x46e9a9(0x1af)+_0x530eed['toString']());return;}_0x41285d[_0x46e9a9(0x1ad)](debug,_0x46e9a9(0x1f5)+_0x26d360);});if(_0x215523)return this['calculateTimeFromEvents'](this[_0x2f9c07(0x204)],_0x215523);}static[a71_0xe8ec16(0x1b3)](_0x3fca2c){const _0x2196e6=a71_0xe8ec16,_0x4e9060={};_0x4e9060[_0x2196e6(0x1c7)]=_0x2196e6(0x1b1),_0x4e9060[_0x2196e6(0x223)]=_0x2196e6(0x1ac),_0x4e9060[_0x2196e6(0x1ca)]=_0x2196e6(0x1ff),_0x4e9060['yLwnu']=_0x2196e6(0x21e);const _0xfe52f9=_0x4e9060;let _0x4bc3bf=_0xfe52f9['lHLJo'];return _0x4bc3bf+=_0xfe52f9['SoLjd'],_0x4bc3bf+=_0xfe52f9[_0x2196e6(0x1ca)],_0x3fca2c[_0x2196e6(0x20c)](_0x39a75c=>{const _0x15699c=_0x2196e6;_0x4bc3bf+='<tr><td>'+_0x39a75c[_0x15699c(0x1d8)]+_0x15699c(0x21a)+_0x39a75c[_0x15699c(0x1e5)]+'</td></tr>';}),_0x4bc3bf+=_0xfe52f9['yLwnu'],_0x4bc3bf;}static[a71_0xe8ec16(0x205)](_0x5618f8){const _0x40ccd3=a71_0xe8ec16;if(!this[_0x40ccd3(0x1b4)])return;const _0x12e271={};_0x5618f8['map'](_0x4b615c=>{const _0x2b393e=_0x40ccd3;!_0x12e271[_0x4b615c[_0x2b393e(0x1d8)]]&&(_0x12e271[_0x4b615c[_0x2b393e(0x1d8)]]=0x0),_0x12e271[_0x4b615c[_0x2b393e(0x1d8)]]+=_0x4b615c['duration'];});const _0x594353=Object[_0x40ccd3(0x1be)](_0x12e271)[_0x40ccd3(0x217)](([_0x296391,_0x3b4d38])=>{const _0x7411e9=_0x40ccd3,_0x465a12={};return _0x465a12[_0x7411e9(0x1d8)]=_0x296391,_0x465a12[_0x7411e9(0x1e5)]=_0x3b4d38,_0x465a12;});fs[_0x40ccd3(0x221)](this[_0x40ccd3(0x1b4)],JSON[_0x40ccd3(0x1d1)](_0x594353));}static['isEnabled'](){const _0x39d42a=a71_0xe8ec16,_0x40fa07={};_0x40fa07[_0x39d42a(0x1dd)]=function(_0x8a0974,_0x354cfa){return _0x8a0974===_0x354cfa;},_0x40fa07[_0x39d42a(0x210)]=_0x39d42a(0x1d4);const _0x243fe6=_0x40fa07;return!_0x243fe6[_0x39d42a(0x1dd)](process[_0x39d42a(0x1f1)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x243fe6['oDxYt']);}static['measure'](_0x5dc71a,_0x40af0a,_0x354260=null,_0x2da05f=null){const _0x2dd278=a71_0xe8ec16,_0x234b02={};_0x234b02[_0x2dd278(0x1a9)]=function(_0x174462,_0x1a6bca){return _0x174462+_0x1a6bca;},_0x234b02[_0x2dd278(0x1c5)]=_0x2dd278(0x1e4),_0x234b02[_0x2dd278(0x1c1)]=function(_0x50c87,_0x44ed57){return _0x50c87+_0x44ed57;},_0x234b02['YoznF']=_0x2dd278(0x1de),_0x234b02[_0x2dd278(0x1f2)]=function(_0x4ee9d0,_0x4394de){return _0x4ee9d0 instanceof _0x4394de;};const _0x17ec1b=_0x234b02;try{if(this['started']&&this[_0x2dd278(0x1d7)]()){let _0x23ec2d=_0x5dc71a;_0x354260&&(_0x23ec2d=_0x5dc71a+'['+JSON[_0x2dd278(0x1d1)](_0x354260)+']');const _0x11fe5f=_0x17ec1b[_0x2dd278(0x1a9)](_0x23ec2d,_0x17ec1b[_0x2dd278(0x1c5)]),_0x2e2ea8=_0x17ec1b['nlMQn'](_0x23ec2d,_0x17ec1b[_0x2dd278(0x211)]);performance[_0x2dd278(0x1f7)](_0x11fe5f);const _0x46d845=_0x40af0a[_0x2dd278(0x1c6)](null,_0x2da05f);if(_0x17ec1b[_0x2dd278(0x1f2)](_0x46d845,Promise))return new Promise((_0x30f9bc,_0x50dc40)=>{const _0xf35350=_0x2dd278;_0x46d845[_0xf35350(0x1fc)](_0x57f818=>_0x30f9bc(_0x57f818))[_0xf35350(0x225)](_0xb3380d=>_0x50dc40(_0xb3380d))[_0xf35350(0x1f4)](()=>{const _0x33f3d6=_0xf35350;performance[_0x33f3d6(0x1f7)](_0x2e2ea8),performance[_0x33f3d6(0x1d0)](_0x23ec2d,_0x11fe5f,_0x2e2ea8);});});;return performance[_0x2dd278(0x1f7)](_0x2e2ea8),performance[_0x2dd278(0x1d0)](_0x23ec2d,_0x11fe5f,_0x2e2ea8),_0x46d845;};return _0x40af0a[_0x2dd278(0x1c6)](null,_0x2da05f);}catch(_0x273f71){return _0x40af0a[_0x2dd278(0x1c6)](null,_0x2da05f);}}static['measureWrapper'](_0x2b4907,_0x4b4696){const _0xc4077b=this;return function(){const _0x103bd4=a71_0x4f0d,_0x40957e=[_0x2b4907,_0x4b4696,null][_0x103bd4(0x1b5)](arguments);return _0xc4077b[_0x103bd4(0x1d0)][_0x103bd4(0x1c6)](_0xc4077b,_0x40957e);};}static[a71_0xe8ec16(0x1e8)](){const _0x368ca6=a71_0xe8ec16,_0xf3615d={};_0xf3615d['ckuln']=function(_0x477652,_0x1d5112){return _0x477652/_0x1d5112;},_0xf3615d['zFHTX']=function(_0x3d3ed5,_0x425b46){return _0x3d3ed5+_0x425b46;},_0xf3615d[_0x368ca6(0x1fa)]=function(_0x2481d8,_0x8cc478){return _0x2481d8*_0x8cc478;};const _0x416be4=_0xf3615d,_0x3dbcd2=/(^.*)\[(.*)\]$/,_0x488a44={},_0x2b0479={};for(const _0x3dac72 of this[_0x368ca6(0x21b)]){const _0x4a36e1=_0x3dac72['name'][_0x368ca6(0x1c2)](_0x3dbcd2),_0x1b33cf={};_0x1b33cf[_0x368ca6(0x1d8)]=_0x3dac72[_0x368ca6(0x1d8)],_0x1b33cf[_0x368ca6(0x1e5)]=_0x3dac72[_0x368ca6(0x1e5)]||0x0;const _0x53265a=_0x1b33cf;_0x4a36e1&&(_0x53265a['name']=_0x4a36e1[0x1],_0x53265a['meta']=JSON[_0x368ca6(0x1b6)](_0x4a36e1[0x2]));if(_0x488a44[_0x53265a[_0x368ca6(0x1d8)]]){const _0x2bc0ed=_0x488a44[_0x53265a[_0x368ca6(0x1d8)]],_0x27a341=_0x2b0479[_0x53265a['name']];_0x488a44[_0x53265a[_0x368ca6(0x1d8)]][_0x368ca6(0x1e5)]=_0x416be4[_0x368ca6(0x1d5)](_0x416be4[_0x368ca6(0x21f)](_0x416be4[_0x368ca6(0x1fa)](_0x2bc0ed['duration'],_0x27a341),_0x53265a[_0x368ca6(0x1e5)]),_0x416be4[_0x368ca6(0x21f)](0x1,_0x27a341)),_0x2b0479[_0x53265a[_0x368ca6(0x1d8)]]++;}else _0x488a44[_0x53265a[_0x368ca6(0x1d8)]]=_0x53265a,_0x2b0479[_0x53265a[_0x368ca6(0x1d8)]]=0x1;}return Object[_0x368ca6(0x1ee)](_0x488a44);}static[a71_0xe8ec16(0x1aa)](){const _0x7272db=a71_0xe8ec16,_0x1203d1={};_0x1203d1[_0x7272db(0x21d)]=function(_0x32675a,_0x3dbb0e){return _0x32675a===_0x3dbb0e;},_0x1203d1[_0x7272db(0x1e1)]=function(_0xc94e60,_0x47392e){return _0xc94e60+_0x47392e;};const _0x401edd=_0x1203d1;if(_0x401edd[_0x7272db(0x21d)](this['_measureEvents'][_0x7272db(0x203)],0x0))return;const _0x734e39=this[_0x7272db(0x1e8)](),_0x97886=JSON[_0x7272db(0x1d1)](_0x734e39),_0x411039=_0x401edd['Biwge'](_0x97886[_0x7272db(0x1cf)](0x1,-0x1),',');fs[_0x7272db(0x1ba)](this[_0x7272db(0x1b4)],_0x411039);}static[a71_0xe8ec16(0x20e)](){const _0x5a0297=a71_0xe8ec16,_0x5f3790={};_0x5f3790[_0x5a0297(0x1e9)]=function(_0x2c056e,_0x3f7735){return _0x2c056e===_0x3f7735;},_0x5f3790['CMimY']=function(_0x5ec8d2,_0x2c5963){return _0x5ec8d2>_0x2c5963;};const _0x3ffd4f=_0x5f3790;if(!this['started']||_0x3ffd4f[_0x5a0297(0x1e9)](this[_0x5a0297(0x21b)][_0x5a0297(0x203)],0x0))return[];if(!fs['existsSync'](this['jsonReportFileName']))return this['_measureEvents'];let _0x1cc690=fs['readFileSync'](this['jsonReportFileName'])[_0x5a0297(0x20a)]();_0x1cc690='['+_0x1cc690[_0x5a0297(0x1cf)](0x0,-0x1)+']';let _0x24f56d=JSON[_0x5a0297(0x1b6)](_0x1cc690);return _0x3ffd4f[_0x5a0297(0x1e2)](this[_0x5a0297(0x21b)][_0x5a0297(0x203)],0x0)&&(_0x24f56d=_0x24f56d['concat'](this['getCleanedPerfEvents']())),this[_0x5a0297(0x1df)]['disconnect'](),fs[_0x5a0297(0x1f6)](this['jsonReportFileName']),_0x24f56d;}static[a71_0xe8ec16(0x1b2)](){const _0x52165c=a71_0xe8ec16,_0x4e077e={};_0x4e077e['jfxGp']=function(_0x489c1d,_0x770577){return _0x489c1d===_0x770577;},_0x4e077e['rwNMB']=function(_0x494bc8,_0x1e2b8c){return _0x494bc8+_0x1e2b8c;};const _0x566252=_0x4e077e;if(_0x566252[_0x52165c(0x218)](this[_0x52165c(0x1e7)][_0x52165c(0x203)],0x0))return;const _0x42023b=JSON[_0x52165c(0x1d1)](this[_0x52165c(0x1e7)]),_0x4a9363=_0x566252['rwNMB'](_0x42023b[_0x52165c(0x1cf)](0x1,-0x1),',');fs[_0x52165c(0x1ba)](this[_0x52165c(0x1bc)],_0x4a9363);}static[a71_0xe8ec16(0x1fd)](){const _0x147795=a71_0xe8ec16,_0x485fdd={};_0x485fdd[_0x147795(0x20d)]=function(_0x23f40d,_0x188a98){return _0x23f40d>_0x188a98;};const _0xa252fa=_0x485fdd;if(!fs[_0x147795(0x1eb)](this[_0x147795(0x1ed)]))return this[_0x147795(0x1e7)];let _0x4615b4=fs[_0x147795(0x212)](this[_0x147795(0x1ed)])[_0x147795(0x20a)]();_0x4615b4='['+_0x4615b4['slice'](0x0,-0x1)+']';let _0x132d7b=JSON[_0x147795(0x1b6)](_0x4615b4);return _0xa252fa[_0x147795(0x20d)](this[_0x147795(0x1e7)][_0x147795(0x203)],0x0)&&(_0x132d7b=_0x132d7b[_0x147795(0x1b5)](this[_0x147795(0x1e7)])),fs['unlinkSync'](this[_0x147795(0x1ed)]),_0x132d7b;}static['captureError'](_0x5a9f6d){const _0x594a18=a71_0xe8ec16;if(!this[_0x594a18(0x1d7)]())return;this['_errorEvents'][_0x594a18(0x202)]({'message':_0x5a9f6d[_0x594a18(0x207)],'trace':_0x5a9f6d[_0x594a18(0x209)],'code':_0x5a9f6d[_0x594a18(0x222)]||null,'time':new Date()});}static['stopMonitoring'](){const _0x82a9e=a71_0xe8ec16,_0x1fca52={};_0x1fca52[_0x82a9e(0x1ec)]=_0x82a9e(0x1cd);const _0x1f7223=_0x1fca52;try{if(!this[_0x82a9e(0x1d7)]())return;this[_0x82a9e(0x1df)]['disconnect'](),this['pushPerfMeasures'](),this[_0x82a9e(0x1b2)]();}catch{logger[_0x82a9e(0x1c0)](_0x1f7223[_0x82a9e(0x1ec)]);}}static['finalize'](){const _0x177d17=a71_0xe8ec16,_0x44599c=this[_0x177d17(0x20e)](),_0x1e5633=this[_0x177d17(0x1fd)]();if(!this['isEnabled']()){const _0x55646f={};return _0x55646f[_0x177d17(0x224)]=[],_0x55646f[_0x177d17(0x214)]=[],_0x55646f;}const _0x515554={};return _0x515554[_0x177d17(0x224)]=_0x44599c,_0x515554['errors']=_0x1e5633,_0x515554;}}module[a71_0xe8ec16(0x1cb)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x37a90e=a72_0x41e1;function a72_0x5657(){const _0x4a1813=['OeEzD','560906bbtHMf','264haKyyS','1588855pwUFxw','https','exports','9296qflGVH','path','cUOlC','lMklR','end','monkeypatch','host','removeListener','now','response','FgtOa','error','socket','3137607DYMIuX','method','20BucDbQ','unpatch','3EzPmSQ','BtKvb','hostname','once','request','949336sxQPOp','Gzsxv','27555DaqWNM','12yyFVdM','280QgpZZg','zuDCu','headers','arugd','632278uLHojr','http','EDfQg','myHdI','mPjgC','duration_ms','syEfr'];a72_0x5657=function(){return _0x4a1813;};return a72_0x5657();}function a72_0x41e1(_0x442034,_0x2ffa5a){const _0x5657db=a72_0x5657();return a72_0x41e1=function(_0x41e1dc,_0x56a44e){_0x41e1dc=_0x41e1dc-0xa4;let _0x3befe5=_0x5657db[_0x41e1dc];return _0x3befe5;},a72_0x41e1(_0x442034,_0x2ffa5a);}(function(_0x1fb38c,_0x330337){const _0x5761ae=a72_0x41e1,_0x43f06e=_0x1fb38c();while(!![]){try{const _0x1ba679=parseInt(_0x5761ae(0xbd))/0x1+parseInt(_0x5761ae(0xb5))/0x2*(parseInt(_0x5761ae(0xa8))/0x3)+-parseInt(_0x5761ae(0xad))/0x4+parseInt(_0x5761ae(0xbf))/0x5*(parseInt(_0x5761ae(0xb0))/0x6)+-parseInt(_0x5761ae(0xc2))/0x7*(parseInt(_0x5761ae(0xb1))/0x8)+-parseInt(_0x5761ae(0xa4))/0x9*(parseInt(_0x5761ae(0xa6))/0xa)+-parseInt(_0x5761ae(0xaf))/0xb*(-parseInt(_0x5761ae(0xbe))/0xc);if(_0x1ba679===_0x330337)break;else _0x43f06e['push'](_0x43f06e['shift']());}catch(_0x14f584){_0x43f06e['push'](_0x43f06e['shift']());}}}(a72_0x5657,0x8f38d));const http=require(a72_0x37a90e(0xb6)),https=require(a72_0x37a90e(0xc0)),monkeypatch=require(a72_0x37a90e(0xc7));function spy(_0x1e0f5a){const _0x26d359=a72_0x37a90e,_0x4aef60={'EDfQg':function(_0x461d0a,_0x302e9b,_0x142909){return _0x461d0a(_0x302e9b,_0x142909);},'OeEzD':_0x26d359(0xcd),'lMklR':function(_0xc26570,..._0x49a8b3){return _0xc26570(..._0x49a8b3);},'mPjgC':function(_0x2f3a54,_0x479762){return _0x2f3a54-_0x479762;},'Gzsxv':function(_0x7d4926,_0x3beb29,_0x131998){return _0x7d4926(_0x3beb29,_0x131998);},'myHdI':_0x26d359(0xcb),'NPvQH':_0x26d359(0xce),'BtKvb':function(_0x152c7d,_0x3e9857,_0x3f094c,_0x2b73e7){return _0x152c7d(_0x3e9857,_0x3f094c,_0x2b73e7);},'zuDCu':_0x26d359(0xc6),'syEfr':_0x26d359(0xac)},_0x5b054f=(_0x166a00,_0x30d124,_0x198a09)=>{const _0x4fc895=_0x26d359,_0x116e31={'cUOlC':function(_0x11f6d0,_0x495ba6){const _0x22cd14=a72_0x41e1;return _0x4aef60[_0x22cd14(0xb9)](_0x11f6d0,_0x495ba6);},'arugd':function(_0x3a9172,_0x485852,_0x3603a7){const _0x38a50c=a72_0x41e1;return _0x4aef60[_0x38a50c(0xb7)](_0x3a9172,_0x485852,_0x3603a7);},'FgtOa':_0x4aef60['OeEzD']},_0x19130e=_0x4aef60[_0x4fc895(0xae)](_0x166a00,_0x30d124,_0x198a09);let _0x5546f8=Date['now'](),_0x34dc7f;const _0x184fee=_0x330275=>{const _0x47170c=_0x4fc895,_0x1cc352={};_0x1cc352['host']=_0x30d124['host']||_0x30d124[_0x47170c(0xaa)],_0x1cc352[_0x47170c(0xc3)]=_0x30d124[_0x47170c(0xc3)],_0x1cc352['method']=_0x30d124['method'],_0x1cc352[_0x47170c(0xb3)]=_0x30d124['headers'],_0x4aef60['EDfQg'](_0x1e0f5a,_0x330275,_0x1cc352);};return _0x19130e['once'](_0x4aef60[_0x4fc895(0xb8)],_0x2f99b1=>{const _0x1bf376=_0x4fc895,_0x4a3195=_0x116e31[_0x1bf376(0xc4)](Date[_0x1bf376(0xca)](),_0x5546f8),_0x52dce3={};_0x52dce3[_0x1bf376(0xaa)]=_0x30d124[_0x1bf376(0xc8)]||_0x30d124[_0x1bf376(0xaa)],_0x52dce3[_0x1bf376(0xc3)]=_0x30d124['path'],_0x52dce3['method']=_0x30d124[_0x1bf376(0xa5)],_0x52dce3[_0x1bf376(0xb3)]=_0x30d124[_0x1bf376(0xb3)],_0x52dce3['status_code']=_0x2f99b1['statusCode'],_0x52dce3[_0x1bf376(0xba)]=_0x4a3195,_0x116e31[_0x1bf376(0xb4)](_0x1e0f5a,null,_0x52dce3),_0x34dc7f[_0x1bf376(0xc9)](_0x116e31[_0x1bf376(0xcc)],_0x184fee);}),_0x19130e['on'](_0x4aef60['NPvQH'],_0x577874=>{const _0x495897=_0x4fc895;_0x34dc7f=_0x577874,_0x577874[_0x495897(0xab)](_0x4aef60[_0x495897(0xbc)],_0x184fee);}),_0x4aef60[_0x4fc895(0xa9)](monkeypatch,_0x19130e,_0x4aef60[_0x4fc895(0xb2)],(_0x4388a0,..._0x14d130)=>{const _0xc017=_0x4fc895;_0x5546f8=Date[_0xc017(0xca)](),_0x4aef60[_0xc017(0xc5)](_0x4388a0,..._0x14d130);}),_0x19130e;};_0x4aef60[_0x26d359(0xa9)](monkeypatch,http,_0x4aef60['syEfr'],_0x5b054f),_0x4aef60[_0x26d359(0xa9)](monkeypatch,https,_0x4aef60[_0x26d359(0xbb)],_0x5b054f);}function restore(){const _0x11797d=a72_0x37a90e;http['request'][_0x11797d(0xa7)](),https[_0x11797d(0xac)][_0x11797d(0xa7)]();}const a72_0xeea60a={};a72_0xeea60a['spy']=spy,a72_0xeea60a['restore']=restore,module[a72_0x37a90e(0xc1)]=a72_0xeea60a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a73_0x550ae7=a73_0x5a74;function a73_0x5a74(_0x45dba1,_0x1121de){const _0x20fead=a73_0x20fe();return a73_0x5a74=function(_0x5a742a,_0x2cb2c2){_0x5a742a=_0x5a742a-0xbd;let _0x1bacaf=_0x20fead[_0x5a742a];return _0x1bacaf;},a73_0x5a74(_0x45dba1,_0x1121de);}(function(_0x5ceaac,_0xab2d63){const _0x413634=a73_0x5a74,_0x1ddf63=_0x5ceaac();while(!![]){try{const _0x55d925=parseInt(_0x413634(0xbd))/0x1+-parseInt(_0x413634(0xd0))/0x2+-parseInt(_0x413634(0xc4))/0x3+parseInt(_0x413634(0xd2))/0x4+parseInt(_0x413634(0xcd))/0x5+parseInt(_0x413634(0xce))/0x6+-parseInt(_0x413634(0xc7))/0x7;if(_0x55d925===_0xab2d63)break;else _0x1ddf63['push'](_0x1ddf63['shift']());}catch(_0x270f4f){_0x1ddf63['push'](_0x1ddf63['shift']());}}}(a73_0x20fe,0x87256),module[a73_0x550ae7(0xc3)]=function(){const _0x4b4236=a73_0x550ae7,_0x39d1df={'NLwKW':function(_0x316b2c,_0x3a93af){return _0x316b2c===_0x3a93af;},'VSUsn':'https:','LIlCs':'agent','rQPJg':function(_0x57d7a0,_0x3d8946,_0x1dafa6){return _0x57d7a0(_0x3d8946,_0x1dafa6);},'AsBfA':function(_0x41db8d,_0x50b36a,_0x35026d){return _0x41db8d(_0x50b36a,_0x35026d);},'AVbLQ':function(_0xd719cd,_0x596c93){return _0xd719cd(_0x596c93);},'zUdJY':_0x4b4236(0xbf),'gTGMF':function(_0x5b412b,_0x11c4f0){return _0x5b412b(_0x11c4f0);},'NGPzO':'https','xukOs':function(_0x4e55eb,_0x48e1cb){return _0x4e55eb*_0x48e1cb;},'htvpw':'keepAlive'},_0x318d8b=_0x39d1df[_0x4b4236(0xc6)](require,_0x39d1df[_0x4b4236(0xc9)]),_0x4c26a9=_0x39d1df['gTGMF'](require,_0x39d1df[_0x4b4236(0xbe)]),_0xa460a1=_0x39d1df[_0x4b4236(0xca)](0x1e,0x3e8);if(_0x318d8b['globalAgent']&&Object[_0x4b4236(0xc0)]['hasOwnProperty']['call'](_0x318d8b[_0x4b4236(0xd3)],_0x39d1df[_0x4b4236(0xc5)]))_0x318d8b[_0x4b4236(0xd3)]['keepAlive']=!![],_0x4c26a9['globalAgent']['keepAlive']=!![],_0x318d8b['globalAgent'][_0x4b4236(0xcb)]=_0xa460a1,_0x4c26a9[_0x4b4236(0xd3)][_0x4b4236(0xcb)]=_0xa460a1;else{const _0xb8dab3={};_0xb8dab3['keepAlive']=!![],_0xb8dab3[_0x4b4236(0xcb)]=_0xa460a1;const _0x20e11e=new _0x318d8b[(_0x4b4236(0xd4))](_0xb8dab3),_0x533346={};_0x533346[_0x4b4236(0xcc)]=!![],_0x533346[_0x4b4236(0xcb)]=_0xa460a1;const _0x22d67d=new _0x4c26a9['Agent'](_0x533346),_0x1bbbdd=_0x318d8b[_0x4b4236(0xc8)],_0x4e3fc3=_0x4c26a9['request'];_0x318d8b[_0x4b4236(0xc8)]=function(_0xc97f4,_0x40ee57){const _0xec2338=_0x4b4236;if(_0x39d1df['NLwKW'](_0xc97f4[_0xec2338(0xc1)],_0x39d1df['VSUsn']))return _0xc97f4[_0x39d1df[_0xec2338(0xc2)]]=_0x22d67d,_0x39d1df[_0xec2338(0xd1)](_0x4e3fc3,_0xc97f4,_0x40ee57);return _0xc97f4[_0x39d1df[_0xec2338(0xc2)]]=_0x20e11e,_0x39d1df[_0xec2338(0xcf)](_0x1bbbdd,_0xc97f4,_0x40ee57);};}});function a73_0x20fe(){const _0xd9acba=['AVbLQ','3686774cBMvQH','request','zUdJY','xukOs','keepAliveMsecs','keepAlive','1260930AZEicT','6450486KkmKZD','AsBfA','981532GRulNt','rQPJg','3332904estZYI','globalAgent','Agent','143904tJRuAa','NGPzO','http','prototype','protocol','LIlCs','exports','2200173OuSTrU','htvpw'];a73_0x20fe=function(){return _0xd9acba;};return a73_0x20fe();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a74_0x2a4a(){var _0x3f9724=['210QxGFGC','24GaxjJr','exports','api/v1/event','1171751zjtgxo','Playwright','6eYMAka','2177815GaczWX','jest','43611gRonJz','2644NEUIkV','29753174IcFOaY','assign','codeceptjs','6301824znWNqg','PLAYWRIGHT','2973CdeDEL','MOCHA','329220onDAXx','api/v1/screenshots','.obs_test_details','api/v1/batch','https://collector-observability.browserstack.com'];a74_0x2a4a=function(){return _0x3f9724;};return a74_0x2a4a();}var a74_0xa409fd=a74_0x5917;(function(_0x3c7e7f,_0x1e35ac){var _0x5d21a8=a74_0x5917,_0x26ab93=_0x3c7e7f();while(!![]){try{var _0x7d6d2=parseInt(_0x5d21a8(0x1ed))/0x1*(-parseInt(_0x5d21a8(0x1ea))/0x2)+parseInt(_0x5d21a8(0x1f4))/0x3*(parseInt(_0x5d21a8(0x1ee))/0x4)+parseInt(_0x5d21a8(0x1eb))/0x5+parseInt(_0x5d21a8(0x1fc))/0x6*(parseInt(_0x5d21a8(0x1e8))/0x7)+parseInt(_0x5d21a8(0x1f2))/0x8+parseInt(_0x5d21a8(0x1f6))/0x9*(parseInt(_0x5d21a8(0x1fb))/0xa)+-parseInt(_0x5d21a8(0x1ef))/0xb;if(_0x7d6d2===_0x1e35ac)break;else _0x26ab93['push'](_0x26ab93['shift']());}catch(_0x4d7840){_0x26ab93['push'](_0x26ab93['shift']());}}}(a74_0x2a4a,0x754ab));function a74_0x5917(_0x250920,_0x369ca9){var _0x2a4ad3=a74_0x2a4a();return a74_0x5917=function(_0x591707,_0x519766){_0x591707=_0x591707-0x1e7;var _0x53ff96=_0x2a4ad3[_0x591707];return _0x53ff96;},a74_0x5917(_0x250920,_0x369ca9);}var a74_0x5849f0={};a74_0x5849f0[a74_0xa409fd(0x1f3)]=a74_0xa409fd(0x1e9),a74_0x5849f0[a74_0xa409fd(0x1f5)]='mocha',a74_0x5849f0['CODECEPT']=a74_0xa409fd(0x1f1),a74_0x5849f0['JEST']=a74_0xa409fd(0x1ec),module[a74_0xa409fd(0x1fd)]={'consoleHolder':Object[a74_0xa409fd(0x1f0)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a74_0xa409fd(0x1fa),'EVENT_ENDPOINT':a74_0xa409fd(0x1e7),'BATCH_ENDPOINT':a74_0xa409fd(0x1f9),'SCREENSHOT_ENDPOINT':a74_0xa409fd(0x1f7),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0x1388,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a74_0xa409fd(0x1f8),'FRAMEWORKS':a74_0x5849f0};
|