browserstack-node-sdk 1.34.2 → 1.34.4
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/ai-sdk-node/bundle.js +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-observability.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/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.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/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -0
- 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
|
+
const a66_0x4ae4db=a66_0x286c;(function(_0x305a8c,_0xf7a91b){const _0x22a53c=a66_0x286c,_0x18da8e=_0x305a8c();while(!![]){try{const _0x44af9d=parseInt(_0x22a53c(0x182))/0x1+-parseInt(_0x22a53c(0x196))/0x2+-parseInt(_0x22a53c(0x18e))/0x3*(-parseInt(_0x22a53c(0x19a))/0x4)+-parseInt(_0x22a53c(0x18b))/0x5+-parseInt(_0x22a53c(0x18a))/0x6*(parseInt(_0x22a53c(0x18c))/0x7)+-parseInt(_0x22a53c(0x17f))/0x8+-parseInt(_0x22a53c(0x18f))/0x9*(-parseInt(_0x22a53c(0x195))/0xa);if(_0x44af9d===_0xf7a91b)break;else _0x18da8e['push'](_0x18da8e['shift']());}catch(_0x2e1ece){_0x18da8e['push'](_0x18da8e['shift']());}}}(a66_0x31bd,0x3f8ef));function a66_0x286c(_0x21af6c,_0x3cf600){const _0x31bdc4=a66_0x31bd();return a66_0x286c=function(_0x286c83,_0x1a7a4d){_0x286c83=_0x286c83-0x17c;let _0x1dd06f=_0x31bdc4[_0x286c83];return _0x1dd06f;},a66_0x286c(_0x21af6c,_0x3cf600);}const winston=require(a66_0x4ae4db(0x188)),os=require('os'),fs=require('fs'),path=require('path'),logDir=a66_0x4ae4db(0x17e);!fs['existsSync'](logDir)&&fs[a66_0x4ae4db(0x181)](logDir);function a66_0x31bd(){const _0x439dc9=['mkdirSync','300798xOPawA','format','message','fileLogger','YYYY-MM-DD\x20HH:mm:ss','File','winston','timestamp','6MByoEU','2277395GSyGNK','706426oANSQR','printf','7113fNWhgt','9MNLmzb','loggerConsole','createLogger','level','/usage.log','Console','6973110sIeQMH','579214LFyepD','loggerFile','silly','join','516FHlpGw','combine','debugLoggerFile','log','1581032rEbVrv','transports'];a66_0x31bd=function(){return _0x439dc9;};return a66_0x31bd();}const a66_0x20e84b={};a66_0x20e84b['name']='console.info';const transports={'loggerConsole':new winston[(a66_0x4ae4db(0x180))][(a66_0x4ae4db(0x194))](a66_0x20e84b),'loggerFile':new winston[(a66_0x4ae4db(0x180))]['File']({'filename':path['join'](logDir,a66_0x4ae4db(0x193))}),'debugLoggerFile':new winston['transports'][(a66_0x4ae4db(0x187))]({'filename':path[a66_0x4ae4db(0x199)](logDir,'/usage-debug.log'),'level':a66_0x4ae4db(0x198)})},a66_0x2ddd8f={};a66_0x2ddd8f[a66_0x4ae4db(0x183)]=a66_0x4ae4db(0x186);const a66_0x4283ce={};a66_0x4283ce['level']=!![];const winstonLoggerParams={'format':winston[a66_0x4ae4db(0x183)][a66_0x4ae4db(0x17c)](winston['format'][a66_0x4ae4db(0x189)](a66_0x2ddd8f),winston[a66_0x4ae4db(0x183)]['colorize'](a66_0x4283ce),winston[a66_0x4ae4db(0x183)][a66_0x4ae4db(0x18d)](_0xbf90b6=>_0xbf90b6[a66_0x4ae4db(0x189)]+'\x20-\x20'+_0xbf90b6['level']+':\x20'+_0xbf90b6[a66_0x4ae4db(0x184)])),'transports':[transports[a66_0x4ae4db(0x190)],transports['loggerFile'],transports[a66_0x4ae4db(0x17d)]]},a66_0x18ac42={};a66_0x18ac42[a66_0x4ae4db(0x183)]=a66_0x4ae4db(0x186);const a66_0x5c9e0c={};a66_0x5c9e0c[a66_0x4ae4db(0x192)]=!![];const winstonFileLoggerParams={'format':winston[a66_0x4ae4db(0x183)]['combine'](winston[a66_0x4ae4db(0x183)][a66_0x4ae4db(0x189)](a66_0x18ac42),winston[a66_0x4ae4db(0x183)]['colorize'](a66_0x5c9e0c),winston[a66_0x4ae4db(0x183)][a66_0x4ae4db(0x18d)](_0x1de75c=>_0x1de75c[a66_0x4ae4db(0x192)]+':\x20'+_0x1de75c[a66_0x4ae4db(0x184)])),'transports':[transports[a66_0x4ae4db(0x197)],transports[a66_0x4ae4db(0x17d)]]};exports['winstonLogger']=new winston[(a66_0x4ae4db(0x191))](winstonLoggerParams),exports[a66_0x4ae4db(0x185)]=new winston[(a66_0x4ae4db(0x191))](winstonFileLoggerParams),exports['logDir']=logDir,exports[a66_0x4ae4db(0x180)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0xab97(_0x4d08db,_0x2527af){var _0x10bb2d=a67_0x10bb();return a67_0xab97=function(_0xab9781,_0x15fb3e){_0xab9781=_0xab9781-0xfb;var _0x3abb4f=_0x10bb2d[_0xab9781];return _0x3abb4f;},a67_0xab97(_0x4d08db,_0x2527af);}function a67_0x10bb(){var _0x46d55b=['3|2|0|4|1','takeScreenshot','3IGYZpm','lkfDX','initScreenshot','XdgcA','emit','patchScreenshot','1902972mjzfAr','eFYeE','overrideTakeScreenshot','SebRk','BS_TESTOPS_ALLOW_SCREENSHOTS','VPpFH','RJXir','split','1|2|0|3|5|4','1024390QfTHLn','patchQuit','WnFFq','UjQut','toISOString','365120PWWEmB','initQuit','742996hapfAF','TEST_SCREENSHOT','true','155435Qxafah','env','quitCount_','bs:addLog:','hBWBI','yjjnc','609888NsmQjr','quit','naSfo','9SGaaxp','nZGvy','kIoSG','pid','24bgRTQA','2876395RozhxB'];a67_0x10bb=function(){return _0x46d55b;};return a67_0x10bb();}var a67_0x69e412=a67_0xab97;(function(_0x1bc12d,_0x84302b){var _0x164a8e=a67_0xab97,_0x336cc9=_0x1bc12d();while(!![]){try{var _0x4ebace=parseInt(_0x164a8e(0x115))/0x1+-parseInt(_0x164a8e(0x10a))/0x2+parseInt(_0x164a8e(0x120))/0x3*(parseInt(_0x164a8e(0x10c))/0x4)+-parseInt(_0x164a8e(0x11d))/0x5+parseInt(_0x164a8e(0xfc))/0x6+parseInt(_0x164a8e(0x10f))/0x7*(parseInt(_0x164a8e(0x11c))/0x8)+parseInt(_0x164a8e(0x118))/0x9*(-parseInt(_0x164a8e(0x105))/0xa);if(_0x4ebace===_0x84302b)break;else _0x336cc9['push'](_0x336cc9['shift']());}catch(_0x2e24d8){_0x336cc9['push'](_0x336cc9['shift']());}}}(a67_0x10bb,0x4dea0),exports[a67_0x69e412(0xfe)]=_0x12de40=>{var _0x4974b2=a67_0x69e412,_0x5515e8={'RJXir':_0x4974b2(0x104),'lkfDX':_0x4974b2(0x10d),'ohsGV':function(_0x52b7d9,_0x4c8b7a){return _0x52b7d9(_0x4c8b7a);},'nZGvy':function(_0x352cda,_0x3c4de2){return _0x352cda!==_0x3c4de2;},'VPpFH':_0x4974b2(0x10e)},_0x366680=_0x5515e8[_0x4974b2(0x102)][_0x4974b2(0x103)]('|'),_0x2f05f4=0x0;while(!![]){switch(_0x366680[_0x2f05f4++]){case'0':if(_0x12de40[_0x4974b2(0xfb)])return;continue;case'1':var _0x5f558d={'naSfo':_0x5515e8[_0x4974b2(0x121)],'yjjnc':function(_0x4df38a,_0x606307){return _0x5515e8['ohsGV'](_0x4df38a,_0x606307);}};continue;case'2':if(_0x5515e8[_0x4974b2(0x119)](process[_0x4974b2(0x110)][_0x4974b2(0x100)],_0x5515e8[_0x4974b2(0x101)]))return;continue;case'3':_0x12de40['patchScreenshot']=!![];continue;case'4':_0x12de40['takeScreenshot']=()=>{return new Promise(function(_0x10d246,_0x4947de){var _0x2b2955=a67_0xab97,_0x15a30f={'XdgcA':_0x5f558d[_0x2b2955(0x117)],'eFYeE':function(_0x45c060,_0x4e69ec){var _0x2145d8=_0x2b2955;return _0x5f558d[_0x2145d8(0x114)](_0x45c060,_0x4e69ec);}};_0x12de40['initScreenshot']()['then'](_0x38f1c7=>{var _0x98dbcc=_0x2b2955;process[_0x98dbcc(0x124)](_0x98dbcc(0x112)+process[_0x98dbcc(0x11b)],{'timestamp':new Date()[_0x98dbcc(0x109)](),'message':_0x38f1c7,'kind':_0x15a30f[_0x98dbcc(0x123)]}),_0x15a30f[_0x98dbcc(0xfd)](_0x10d246,_0x38f1c7);});});};continue;case'5':_0x12de40[_0x4974b2(0x122)]=_0x12de40[_0x4974b2(0x11f)];continue;}break;}},exports['overrideQuit']=(_0x3886b9,_0x21a77a=null)=>{var _0x1d5b66=a67_0x69e412,_0x110836={'hBWBI':_0x1d5b66(0x11e),'UjQut':function(_0x5f1ed6){return _0x5f1ed6();},'kIoSG':function(_0x34a2fa,_0x2dfffd){return _0x34a2fa>_0x2dfffd;}},_0x23b8fd=_0x110836[_0x1d5b66(0x113)][_0x1d5b66(0x103)]('|'),_0x267b67=0x0;while(!![]){switch(_0x23b8fd[_0x267b67++]){case'0':_0x3886b9[_0x1d5b66(0x106)]=!![];continue;case'1':_0x3886b9['quit']=()=>{var _0xf7ba22=_0x1d5b66;if(_0x21a77a){_0x21a77a[_0xf7ba22(0x111)]+=0x1;if(_0x36009a[_0xf7ba22(0xff)](_0x21a77a['quitCount_'],0x1))return _0x3886b9[_0xf7ba22(0x10b)]();}else{_0x3886b9[_0xf7ba22(0x111)]+=0x1;if(_0x36009a['SebRk'](_0x3886b9['quitCount_'],0x1))return _0x3886b9['initQuit']();}return new Promise(function(_0x2b83dd){var _0x40fa5a=_0xf7ba22;_0x36009a[_0x40fa5a(0x107)](_0x2b83dd);});};continue;case'2':if(_0x3886b9['patchQuit'])return;continue;case'3':var _0x36009a={'WnFFq':function(_0x310054){var _0x38f5e6=_0x1d5b66;return _0x110836[_0x38f5e6(0x108)](_0x310054);},'SebRk':function(_0x3af670,_0x30ab1a){var _0x1c2ad6=_0x1d5b66;return _0x110836[_0x1c2ad6(0x11a)](_0x3af670,_0x30ab1a);}};continue;case'4':_0x3886b9[_0x1d5b66(0x10b)]=_0x3886b9[_0x1d5b66(0x116)];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x559b(){const _0x15ea81=['percyOptions','yOycp','stringify','GvUGW','814588mHrzwj','Percy\x20healthcheck\x20successful','percy.json','debug','EploO','fetchPercyToken','sFytz','stderr','JntMj','jJwCO','3760746rgYVsr','RFOal','pipe','193958vKfqQo','20bvSYJe','QkbJU','../../helpers/testhub/constants','projectName','api/app_percy/get_project_token?name=','3UKDsCW','8glHxQw','GET','start','app:exec','ybJdb','tmpdir','percy/healthcheck','Percy\x20fetch\x20token\x20success','Percy\x20config\x20created\x20at\x20','writeFile','Error\x20creating\x20percy\x20config:\x20',':start','hbkVI','HuczQ','../helper','aLNUF','../logger','isProcessRunning','qZkhq','PERCY_SERVER_ADDRESS','23104301iDdlML','./PercyBinary','mFYtg','automate','data','createPercyConfig','UspgQ','error','ObBcp','http://localhost:5338','10dGjUXV','app','isRAC','IEenO','6688087zxyaLX','isRunning','createWriteStream','push','exports','902105GQgtXN','close','version','path','&type=','BROWSERSTACK_TESTHUB_UUID','stdout','uJzhK','727371TpjwdB','healthcheck','exec:stop','nodeRequest'];a68_0x559b=function(){return _0x15ea81;};return a68_0x559b();}const a68_0x353e92=a68_0x56a6;(function(_0x5407f6,_0x3f7b54){const _0x52fa19=a68_0x56a6,_0x1ba733=_0x5407f6();while(!![]){try{const _0x529d0c=parseInt(_0x52fa19(0xd8))/0x1+-parseInt(_0x52fa19(0xaa))/0x2*(-parseInt(_0x52fa19(0xb0))/0x3)+parseInt(_0x52fa19(0x9d))/0x4*(-parseInt(_0x52fa19(0xab))/0x5)+-parseInt(_0x52fa19(0xa7))/0x6+-parseInt(_0x52fa19(0xd3))/0x7*(parseInt(_0x52fa19(0xb1))/0x8)+parseInt(_0x52fa19(0xe0))/0x9*(-parseInt(_0x52fa19(0xcf))/0xa)+parseInt(_0x52fa19(0xc5))/0xb;if(_0x529d0c===_0x3f7b54)break;else _0x1ba733['push'](_0x1ba733['shift']());}catch(_0x404495){_0x1ba733['push'](_0x1ba733['shift']());}}}(a68_0x559b,0x97d0c));const fs=require('fs'),path=require(a68_0x353e92(0xdb)),os=require('os'),{spawn}=require('child_process'),helper=require(a68_0x353e92(0xbf)),logger=require(a68_0x353e92(0xc1))['winstonLogger'],{logDir}=require(a68_0x353e92(0xc1)),testHubConstants=require(a68_0x353e92(0xad)),PercyBinary=require(a68_0x353e92(0xc6));class Percy{#logfile=path['join'](logDir,'percy.log');#address=process['env'][a68_0x353e92(0xc4)]||a68_0x353e92(0xce);#binaryPath=null;#config=null;#proc=null;#isApp=![];[a68_0x353e92(0xc2)]=![];constructor(_0x5c2fe6){const _0x2f0961=a68_0x353e92;this.#config=_0x5c2fe6,!!_0x5c2fe6[_0x2f0961(0xd0)]&&(this.#isApp=!![]);}async #getBinaryPath(){if(!this.#binaryPath){const _0x1068ef=new PercyBinary();this.#binaryPath=await _0x1068ef['getBinaryPath'](this.#config);}return this.#binaryPath;}async #sleep(_0x2ef279){return new Promise(_0x2df45f=>setTimeout(_0x2df45f,_0x2ef279));}async[a68_0x353e92(0xe1)](){const _0x37a9a7=a68_0x353e92,_0x2a5f52={};_0x2a5f52['JntMj']='GET',_0x2a5f52[_0x37a9a7(0xcd)]=_0x37a9a7(0xb7);const _0x5c4125=_0x2a5f52;try{const _0x278fe9=await helper[_0x37a9a7(0xe3)](_0x5c4125[_0x37a9a7(0xa5)],_0x5c4125[_0x37a9a7(0xcd)],null,null,this.#address);if(_0x278fe9)return!![];}catch(_0x1ded24){return![];}}async[a68_0x353e92(0xb3)](){const _0x4ebda1=a68_0x353e92,_0x17af25={'qZkhq':_0x4ebda1(0xb4),'RFOal':'exec','mFYtg':function(_0x484e8e,_0x4de016,_0x3d2b19,_0x293f2d){return _0x484e8e(_0x4de016,_0x3d2b19,_0x293f2d);},'isRAC':'close','uJzhK':_0x4ebda1(0x9e)},_0x3e6440=await this.#getBinaryPath(),_0x12793d={};_0x12793d['flags']='a';const _0x3a63f4=fs[_0x4ebda1(0xd5)](this.#logfile,_0x12793d),_0x3062c9=await this[_0x4ebda1(0xa2)](),_0x7fa6c6=await this['createPercyConfig']();if(!_0x3062c9)return![];const _0x2ac29f=[(this.#isApp?_0x17af25[_0x4ebda1(0xc3)]:_0x17af25[_0x4ebda1(0xa8)])+_0x4ebda1(0xbc)];_0x7fa6c6&&_0x2ac29f[_0x4ebda1(0xd6)]('-c',_0x7fa6c6);this.#proc=_0x17af25[_0x4ebda1(0xc7)](spawn,_0x3e6440,_0x2ac29f,{'env':Object['assign'](process['env'],{'PERCY_TOKEN':_0x3062c9,'TH_BUILD_UUID':process['env'][testHubConstants['ENV_VAR'][_0x4ebda1(0xdd)]]})}),this.#proc[_0x4ebda1(0xde)]['pipe'](_0x3a63f4),this.#proc[_0x4ebda1(0xa4)][_0x4ebda1(0xa9)](_0x3a63f4),this[_0x4ebda1(0xc2)]=!![];var _0x11fa60=this;this.#proc['on'](_0x17af25[_0x4ebda1(0xd1)],function(_0x1d149b){_0x11fa60['isProcessRunning']=![];});do{const _0x266d0d=await this[_0x4ebda1(0xe1)]();if(_0x266d0d)return logger['debug'](_0x17af25[_0x4ebda1(0xdf)]),!![];await this.#sleep(0x3e8);}while(this[_0x4ebda1(0xc2)]);return![];}async['stop'](){const _0x2369d6=a68_0x353e92,_0x3dd170={'aLNUF':function(_0x3612fa,_0x40f31f){return _0x3612fa(_0x40f31f);},'hbkVI':function(_0x34ed65,_0x4021c8,_0x3fc096){return _0x34ed65(_0x4021c8,_0x3fc096);},'UspgQ':_0x2369d6(0xe2),'IEenO':_0x2369d6(0xd9)},_0x55fed5=await this.#getBinaryPath();return new Promise((_0x5b80d5,_0x1a8a0a)=>{const _0x29a99b=_0x2369d6,_0x230ebd={'ybJdb':function(_0x190999,_0x1a1d16){const _0x489055=a68_0x56a6;return _0x3dd170[_0x489055(0xc0)](_0x190999,_0x1a1d16);}},_0x3fa006=_0x3dd170[_0x29a99b(0xbd)](spawn,_0x55fed5,[_0x3dd170[_0x29a99b(0xcb)]]);_0x3fa006['on'](_0x3dd170[_0x29a99b(0xd2)],_0xd5b493=>{const _0x1a3bb0=_0x29a99b;this[_0x1a3bb0(0xc2)]=![],_0x230ebd[_0x1a3bb0(0xb5)](_0x5b80d5,_0xd5b493);});});}[a68_0x353e92(0xd4)](){const _0x49778b=a68_0x353e92;return this[_0x49778b(0xc2)];}async[a68_0x353e92(0xa2)](){const _0x319bad=a68_0x353e92,_0x5f1792={};_0x5f1792[_0x319bad(0xe7)]=_0x319bad(0xd0),_0x5f1792[_0x319bad(0xa1)]=_0x319bad(0xc8),_0x5f1792[_0x319bad(0xa3)]=_0x319bad(0xb2),_0x5f1792[_0x319bad(0xbe)]=_0x319bad(0xb8);const _0x4a5deb=_0x5f1792,_0x148991=this.#config[_0x319bad(0xae)];try{const _0x482b87=this.#isApp?_0x4a5deb['GvUGW']:_0x4a5deb['EploO'],_0x4649d3=await helper[_0x319bad(0xe3)](_0x4a5deb[_0x319bad(0xa3)],_0x319bad(0xaf)+_0x148991+_0x319bad(0xdc)+_0x482b87,{},this.#config),_0x24a206=_0x4649d3[_0x319bad(0xc9)];return logger[_0x319bad(0xa0)](_0x4a5deb[_0x319bad(0xbe)]),_0x24a206['token'];}catch(_0x200df0){return logger[_0x319bad(0xcc)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x200df0),null;}}async[a68_0x353e92(0xca)](){const _0x52ba9b=a68_0x353e92,_0x42865f={'jJwCO':function(_0x5c1f3a,_0x23d878){return _0x5c1f3a(_0x23d878);},'EDBoO':function(_0x2013e3,_0x11b811){return _0x2013e3+_0x11b811;},'yOycp':_0x52ba9b(0xb9),'QkbJU':_0x52ba9b(0x9f)};if(!this.#config[_0x52ba9b(0xe4)])return null;const _0x1164f9=path['join'](os[_0x52ba9b(0xb6)](),_0x42865f[_0x52ba9b(0xac)]),_0x3f21dc=this.#config['percyOptions'];return!_0x3f21dc[_0x52ba9b(0xda)]&&(_0x3f21dc[_0x52ba9b(0xda)]='2'),new Promise((_0x11e954,_0x2137aa)=>{const _0x38e5e3=_0x52ba9b;fs[_0x38e5e3(0xba)](_0x1164f9,JSON[_0x38e5e3(0xe6)](_0x3f21dc),_0x4d07db=>{const _0x53e03c=_0x38e5e3;_0x4d07db&&(logger[_0x53e03c(0xcc)](_0x53e03c(0xbb)+_0x4d07db),_0x42865f[_0x53e03c(0xa6)](_0x11e954,null)),logger[_0x53e03c(0xa0)](_0x42865f['EDBoO'](_0x42865f[_0x53e03c(0xe5)],_0x1164f9)),_0x42865f[_0x53e03c(0xa6)](_0x11e954,_0x1164f9);});});}}function a68_0x56a6(_0x112a24,_0x579a0a){const _0x559be5=a68_0x559b();return a68_0x56a6=function(_0x56a6cc,_0xa454ea){_0x56a6cc=_0x56a6cc-0x9d;let _0x4d6d6a=_0x559be5[_0x56a6cc];return _0x4d6d6a;},a68_0x56a6(_0x112a24,_0x579a0a);}module[a68_0x353e92(0xd7)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69_0x5d5334=a69_0x2859;(function(_0x2d22c6,_0x2969b7){const _0x200787=a69_0x2859,_0x509a96=_0x2d22c6();while(!![]){try{const _0x405f05=parseInt(_0x200787(0x14f))/0x1+parseInt(_0x200787(0x1b3))/0x2+parseInt(_0x200787(0x132))/0x3*(parseInt(_0x200787(0x150))/0x4)+parseInt(_0x200787(0x12d))/0x5*(parseInt(_0x200787(0x173))/0x6)+parseInt(_0x200787(0x153))/0x7+-parseInt(_0x200787(0x1ad))/0x8*(parseInt(_0x200787(0x136))/0x9)+parseInt(_0x200787(0x1af))/0xa*(-parseInt(_0x200787(0x18f))/0xb);if(_0x405f05===_0x2969b7)break;else _0x509a96['push'](_0x509a96['shift']());}catch(_0x4bf6af){_0x509a96['push'](_0x509a96['shift']());}}}(a69_0x4d51,0xe69d0));const {https}=require(a69_0x5d5334(0x1a8)),url=require(a69_0x5d5334(0x174)),yauzl=require('yauzl'),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a69_0x5d5334(0x15d)),HttpsProxyAgent=require(a69_0x5d5334(0x189)),logger=require(a69_0x5d5334(0x133))[a69_0x5d5334(0x151)];class PercyBinary{#hostOS=process[a69_0x5d5334(0x1b2)];#httpPath=null;#binaryName=a69_0x5d5334(0x16a);#orderedPaths=[path['join'](this.#homedir(),a69_0x5d5334(0x1ac)),process[a69_0x5d5334(0x14b)](),os[a69_0x5d5334(0x1ab)]()];constructor(){const _0x434f73=a69_0x5d5334,_0x327e74={};_0x327e74[_0x434f73(0x1a2)]=_0x434f73(0x165),_0x327e74['mTrFk']=function(_0x2b9483,_0x57afeb){return _0x2b9483+_0x57afeb;},_0x327e74['kJGWv']=_0x434f73(0x135),_0x327e74['jmNHh']=_0x434f73(0x1a4),_0x327e74['wbQed']='percy.exe',_0x327e74[_0x434f73(0x13b)]=function(_0x100217,_0x214ac3){return _0x100217+_0x214ac3;},_0x327e74[_0x434f73(0x162)]=_0x434f73(0x176);const _0x276a80=_0x327e74,_0x1b1bf7=_0x276a80[_0x434f73(0x1a2)];if(this.#hostOS[_0x434f73(0x17f)](/darwin|mac os/i))this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80[_0x434f73(0x147)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80['jmNHh']),this.#binaryName=_0x276a80[_0x434f73(0x130)]):this.#httpPath=_0x276a80[_0x434f73(0x13b)](_0x1b1bf7,_0x276a80[_0x434f73(0x162)]);}#getAvailableDirs(){const _0x281bab=a69_0x5d5334,_0x173263={};_0x173263[_0x281bab(0x19d)]=function(_0x2d9826,_0x1abf39){return _0x2d9826<_0x1abf39;},_0x173263[_0x281bab(0x184)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x21a1e0=_0x173263;for(var _0x1c44f8=0x0;_0x21a1e0[_0x281bab(0x19d)](_0x1c44f8,this.#orderedPaths[_0x281bab(0x1a1)]);_0x1c44f8++){var _0x5b1aab=this.#orderedPaths[_0x1c44f8];if(this.#makePath(_0x5b1aab))return _0x5b1aab;}throw new Error(_0x21a1e0[_0x281bab(0x184)]);}#makePath(_0x553145){const _0x5f0b34=a69_0x5d5334;try{return!this.#checkPath(_0x553145)&&fs[_0x5f0b34(0x19e)](_0x553145),!![];}catch{return![];}}#checkPath(_0x39c97f,_0xe0a540){const _0x1073bd=a69_0x5d5334,_0x2b81d8={};_0x2b81d8[_0x1073bd(0x142)]=function(_0xe1df9f,_0x54b4b6){return _0xe1df9f|_0x54b4b6;},_0x2b81d8[_0x1073bd(0x198)]=function(_0x339277,_0x5e2206){return _0x339277!==_0x5e2206;},_0x2b81d8[_0x1073bd(0x170)]=_0x1073bd(0x178);const _0x5cb811=_0x2b81d8;_0xe0a540=_0xe0a540||_0x5cb811[_0x1073bd(0x142)](fs[_0x1073bd(0x156)],fs[_0x1073bd(0x1a6)]);try{return fs[_0x1073bd(0x163)](_0x39c97f,_0xe0a540),!![];}catch(_0x5e1d26){if(_0x5cb811['XdNRs'](typeof fs[_0x1073bd(0x163)],_0x5cb811['gVntF']))return![];try{return fs[_0x1073bd(0x1b4)](_0x39c97f),!![];}catch(_0x1439a4){return![];}}}async[a69_0x5d5334(0x13f)](_0x34a0fd){const _0x268e6b=a69_0x5d5334,_0x1d2d69={};_0x1d2d69['jZwQu']='Corrupt\x20percy\x20binary,\x20retrying';const _0x3db5ed=_0x1d2d69;var _0x58cd79=this.#getAvailableDirs(),_0x37c69c=path[_0x268e6b(0x19c)](_0x58cd79,this.#binaryName);if(this.#checkPath(_0x37c69c,fs[_0x268e6b(0x180)]))return _0x37c69c;const _0x42c041=await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79),_0x49d576=await this[_0x268e6b(0x155)](_0x42c041);if(!_0x49d576)return logger[_0x268e6b(0x171)](_0x3db5ed['jZwQu']),await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79);return _0x42c041;}async[a69_0x5d5334(0x155)](_0x102225){const _0x1b11fb=a69_0x5d5334,_0x54eec1={'qCVgT':function(_0x18cae3,_0x3267cf){return _0x18cae3(_0x3267cf);},'QWmYq':function(_0x3e6ee9,_0x379138,_0x39e5ce){return _0x3e6ee9(_0x379138,_0x39e5ce);},'JlOtN':'--version','Fxpwo':_0x1b11fb(0x196),'lnkNV':_0x1b11fb(0x1b0)},_0x57a347=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1acf98,_0x61e6b6)=>{const _0x2f71a7=_0x1b11fb,_0x4b0360={'mKupU':function(_0x39ce15,_0x375be1){const _0x41f589=a69_0x2859;return _0x54eec1[_0x41f589(0x1aa)](_0x39ce15,_0x375be1);},'BvTdt':function(_0x4f2bd5,_0xd841a5){return _0x54eec1['qCVgT'](_0x4f2bd5,_0xd841a5);}},_0x401d9f=_0x54eec1[_0x2f71a7(0x14d)](spawn,_0x102225,[_0x54eec1[_0x2f71a7(0x179)]]);_0x401d9f['stdout']['on'](_0x54eec1[_0x2f71a7(0x14a)],_0x487112=>{const _0x746ec3=_0x2f71a7;_0x57a347['test'](_0x487112)&&_0x4b0360[_0x746ec3(0x16e)](_0x1acf98,!![]);}),_0x401d9f['on'](_0x54eec1[_0x2f71a7(0x15a)],()=>{const _0x394250=_0x2f71a7;_0x4b0360[_0x394250(0x145)](_0x1acf98,![]);});});}['download'](_0xa621c8,_0xf60994){const _0x693f26=a69_0x5d5334,_0x434d2c={'rMflT':_0x693f26(0x138),'vZWdN':function(_0x11151d,_0x47f8b1){return _0x11151d(_0x47f8b1);},'bVLBj':_0x693f26(0x160),'APISw':_0x693f26(0x1a5),'XuYex':function(_0x393b6b,_0x4918ba){return _0x393b6b===_0x4918ba;},'BygLH':'0755','SpJXF':_0x693f26(0x192),'qCQyY':'error','ICmAF':_0x693f26(0x1b0),'JCanD':_0x693f26(0x193),'jvWQa':function(_0xe1be7,_0x2abdef){return _0xe1be7+_0x2abdef;},'fGbHf':_0x693f26(0x161),'Xusqz':_0x693f26(0x15b)};!this.#checkPath(_0xf60994)&&fs[_0x693f26(0x19e)](_0xf60994);const _0x2317ed=this.#binaryName,_0x10ad92=path[_0x693f26(0x19c)](_0xf60994,_0x434d2c[_0x693f26(0x17d)](_0x2317ed,_0x434d2c[_0x693f26(0x1b1)])),_0x4aba4e=path[_0x693f26(0x19c)](_0xf60994,_0x2317ed),_0x315c9a=fs['createWriteStream'](_0x10ad92),_0x471751=url['parse'](this.#httpPath);if(_0xa621c8[_0x693f26(0x164)]&&_0xa621c8['proxyPort']){const _0x55b848={};_0x55b848['host']=_0xa621c8[_0x693f26(0x164)],_0x55b848[_0x693f26(0x181)]=_0xa621c8[_0x693f26(0x19a)],_0x471751['agent']=new HttpsProxyAgent(_0x55b848);}if(_0xa621c8[_0x693f26(0x16c)])try{_0x471751['ca']=fs[_0x693f26(0x148)](_0xa621c8['useCaCertificate']);}catch(_0x50ae8c){logger[_0x693f26(0x171)](_0x434d2c[_0x693f26(0x1a0)],_0x50ae8c);}return new Promise((_0x28eac5,_0x47ff83)=>{const _0x106fbc=_0x693f26;https[_0x106fbc(0x140)](_0x471751,function(_0x313bf4){const _0x3f4e37=_0x106fbc,_0x4da80e={'YWujq':_0x434d2c[_0x3f4e37(0x139)],'FTflk':function(_0x5abb97,_0x5e6736){const _0x271de6=_0x3f4e37;return _0x434d2c[_0x271de6(0x1a9)](_0x5abb97,_0x5e6736);},'wIxAM':_0x434d2c[_0x3f4e37(0x177)],'zWsrf':function(_0x3dd090,_0x28e15f){const _0x5b081e=_0x3f4e37;return _0x434d2c[_0x5b081e(0x1a9)](_0x3dd090,_0x28e15f);},'puwZN':_0x434d2c[_0x3f4e37(0x13c)],'sEERf':function(_0x347816,_0x310869){const _0x56e5d8=_0x3f4e37;return _0x434d2c[_0x56e5d8(0x15e)](_0x347816,_0x310869);},'sRwzj':_0x434d2c['BygLH'],'ZSlvp':_0x434d2c[_0x3f4e37(0x1a7)],'KAUpZ':_0x434d2c[_0x3f4e37(0x137)]};_0x313bf4[_0x3f4e37(0x15c)](_0x315c9a),_0x313bf4['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x4a03df){const _0xde98f5=_0x3f4e37;logger['error'](_0x4da80e['YWujq'],_0x4a03df),_0x4da80e[_0xde98f5(0x182)](_0x47ff83,_0x4a03df);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x22597e){const _0x130cd0=_0x3f4e37;logger[_0x130cd0(0x171)](_0x4da80e[_0x130cd0(0x18a)],_0x22597e),_0x4da80e[_0x130cd0(0x182)](_0x47ff83,_0x22597e);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x168)],function(){const _0x31ee5a=_0x3f4e37,_0x13971c={'YPsjY':function(_0x3ff2ba,_0x3af1e3){const _0x46bbe8=a69_0x2859;return _0x4da80e[_0x46bbe8(0x182)](_0x3ff2ba,_0x3af1e3);}},_0xe06b61={};_0xe06b61[_0x31ee5a(0x131)]=!![],yauzl[_0x31ee5a(0x18e)](_0x10ad92,_0xe06b61,function(_0x526896,_0x3542d3){const _0x236841=_0x31ee5a,_0x5257a9={'ypcut':function(_0x1db67d,_0x2884e2){const _0x51b755=a69_0x2859;return _0x4da80e[_0x51b755(0x14e)](_0x1db67d,_0x2884e2);},'GZdXl':_0x4da80e[_0x236841(0x159)],'lkwNY':function(_0x2c81f5,_0xdd7bb8){return _0x4da80e['sEERf'](_0x2c81f5,_0xdd7bb8);},'rMjCa':function(_0x51d780,_0x190ae2){const _0x3e2521=_0x236841;return _0x4da80e[_0x3e2521(0x182)](_0x51d780,_0x190ae2);},'qrMfK':function(_0x12d2a6,_0x120b7b){return _0x4da80e['zWsrf'](_0x12d2a6,_0x120b7b);},'uxtZS':_0x4da80e[_0x236841(0x190)]};_0x526896&&_0x4da80e['FTflk'](_0x47ff83,_0x526896),_0x3542d3[_0x236841(0x172)](),_0x3542d3['on'](_0x4da80e['ZSlvp'],_0x43c5b3=>{const _0x4b5e67=_0x236841,_0x1b4e59={'FPFPz':function(_0x1dc18b,_0x56b9aa){const _0x3544ee=a69_0x2859;return _0x5257a9[_0x3544ee(0x17b)](_0x1dc18b,_0x56b9aa);},'ZVFeR':_0x5257a9[_0x4b5e67(0x152)]};if(/\/$/['test'](_0x43c5b3[_0x4b5e67(0x143)]))_0x3542d3[_0x4b5e67(0x172)]();else{const _0x409004=fs[_0x4b5e67(0x194)](path[_0x4b5e67(0x19c)](_0xf60994,_0x43c5b3[_0x4b5e67(0x143)]));_0x3542d3[_0x4b5e67(0x19b)](_0x43c5b3,function(_0x4bda7a,_0x8a7e21){const _0x5ef8af=_0x4b5e67;_0x4bda7a&&_0x1b4e59['FPFPz'](_0x47ff83,_0x526896),_0x8a7e21['on'](_0x1b4e59[_0x5ef8af(0x1a3)],function(){const _0x1dc74d=_0x5ef8af;_0x409004['close'](),_0x3542d3[_0x1dc74d(0x172)]();}),_0x8a7e21[_0x5ef8af(0x15c)](_0x409004);}),_0x5257a9['lkwNY'](_0x43c5b3[_0x4b5e67(0x143)],_0x2317ed)&&_0x3542d3['close']();}}),_0x3542d3['on'](_0x4da80e[_0x236841(0x146)],_0x4489a8=>{const _0x5bff63=_0x236841;_0x13971c[_0x5bff63(0x169)](_0x47ff83,_0x4489a8);}),_0x3542d3[_0x236841(0x157)](_0x4da80e['puwZN'],()=>{const _0x35868c=_0x236841,_0xda62c5={'NesCn':function(_0x3bc3cf,_0x2b9ff9){const _0x87f600=a69_0x2859;return _0x5257a9[_0x87f600(0x191)](_0x3bc3cf,_0x2b9ff9);},'kRhBI':function(_0x24fe95,_0x516180){const _0x346236=a69_0x2859;return _0x5257a9[_0x346236(0x199)](_0x24fe95,_0x516180);}};fs[_0x35868c(0x197)](_0x4aba4e,_0x5257a9['uxtZS'],function(_0x35eee6){const _0x4468bf=_0x35868c;_0x35eee6&&_0xda62c5[_0x4468bf(0x1ae)](_0x47ff83,_0x35eee6),_0xda62c5[_0x4468bf(0x16d)](_0x28eac5,_0x4aba4e);}),_0x3542d3[_0x35868c(0x1b0)]();});});});})['on'](_0x434d2c['qCQyY'],function(_0x338d8d){const _0x49107e=_0x106fbc;logger[_0x49107e(0x171)](_0x434d2c[_0x49107e(0x13d)],_0x338d8d),_0x434d2c[_0x49107e(0x1a9)](_0x47ff83,_0x338d8d);});});}#homedir(){const _0x4a82f7=a69_0x5d5334,_0x4e3c89={};_0x4e3c89[_0x4a82f7(0x16b)]=function(_0x33e69f,_0x372ea3){return _0x33e69f===_0x372ea3;},_0x4e3c89['zSgRt']=_0x4a82f7(0x166),_0x4e3c89[_0x4a82f7(0x183)]=function(_0x3c3dc9,_0x203342){return _0x3c3dc9===_0x203342;},_0x4e3c89[_0x4a82f7(0x187)]=_0x4a82f7(0x17c),_0x4e3c89[_0x4a82f7(0x13e)]=function(_0x6f7225,_0x256a92){return _0x6f7225+_0x256a92;},_0x4e3c89[_0x4a82f7(0x13a)]=function(_0x237749,_0x4beeed){return _0x237749===_0x4beeed;},_0x4e3c89[_0x4a82f7(0x186)]=_0x4a82f7(0x149),_0x4e3c89[_0x4a82f7(0x17a)]=function(_0x7c261e,_0x4d36b1){return _0x7c261e+_0x4d36b1;},_0x4e3c89[_0x4a82f7(0x185)]=_0x4a82f7(0x144),_0x4e3c89[_0x4a82f7(0x12f)]=function(_0x1aa9da,_0x4dc27d){return _0x1aa9da===_0x4dc27d;},_0x4e3c89[_0x4a82f7(0x154)]=_0x4a82f7(0x16f),_0x4e3c89['TwspA']='/root',_0x4e3c89['KcnWb']=_0x4a82f7(0x158),_0x4e3c89['VjUUC']=function(_0x3b6b96,_0x4756a8){return _0x3b6b96||_0x4756a8;};const _0x49ec62=_0x4e3c89;if(_0x49ec62['azlUh'](typeof os['homedir'],_0x49ec62[_0x4a82f7(0x17e)]))return os[_0x4a82f7(0x167)]();const _0x354be3=process[_0x4a82f7(0x195)],_0x199df4=_0x354be3[_0x4a82f7(0x188)],_0x608538=_0x354be3[_0x4a82f7(0x18c)]||_0x354be3[_0x4a82f7(0x18b)]||_0x354be3['LNAME']||_0x354be3[_0x4a82f7(0x15f)];if(_0x49ec62[_0x4a82f7(0x183)](process['platform'],_0x49ec62[_0x4a82f7(0x187)]))return _0x354be3[_0x4a82f7(0x19f)]||_0x49ec62[_0x4a82f7(0x13e)](_0x354be3[_0x4a82f7(0x18d)],_0x354be3[_0x4a82f7(0x12e)])||_0x199df4||null;if(_0x49ec62[_0x4a82f7(0x13a)](process['platform'],_0x49ec62[_0x4a82f7(0x186)]))return _0x199df4||(_0x608538?_0x49ec62[_0x4a82f7(0x17a)](_0x49ec62[_0x4a82f7(0x185)],_0x608538):null);if(_0x49ec62[_0x4a82f7(0x12f)](process[_0x4a82f7(0x1b2)],_0x49ec62[_0x4a82f7(0x154)]))return _0x199df4||(_0x49ec62[_0x4a82f7(0x12f)](process['getuid'](),0x0)?_0x49ec62[_0x4a82f7(0x134)]:_0x608538?_0x49ec62['XtJOq'](_0x49ec62[_0x4a82f7(0x14c)],_0x608538):null);return _0x49ec62['VjUUC'](_0x199df4,null);}}function a69_0x2859(_0x2c1dfb,_0x2385d8){const _0x4d51a7=a69_0x4d51();return a69_0x2859=function(_0x285908,_0x1d8173){_0x285908=_0x285908-0x12d;let _0x279a45=_0x4d51a7[_0x285908];return _0x279a45;},a69_0x2859(_0x2c1dfb,_0x2385d8);}module[a69_0x5d5334(0x1b5)]=PercyBinary;function a69_0x4d51(){const _0x1fb648=['FTflk','sHHah','pBGKD','VOoDg','AaYRL','CTtSs','HOME','https-proxy-agent','wIxAM','USER','LOGNAME','HOMEDRIVE','open','18581893xEvjtr','sRwzj','rMjCa','entry','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','createWriteStream','env','data','chmod','XdNRs','qrMfK','proxyPort','openReadStream','join','JAUlk','mkdirSync','USERPROFILE','Xusqz','length','TMsVI','ZVFeR','/percy-win.zip','end','W_OK','SpJXF','follow-redirects','vZWdN','qCVgT','tmpdir','.browserstack','680824lJnIFZ','NesCn','10skdZYx','close','fGbHf','platform','2305070jLuKgx','statSync','exports','5oImscD','HOMEPATH','rgRXd','wbQed','lazyEntries','9CaAgdz','../logger','TwspA','/percy-osx.zip','162bPPAyc','qCQyY','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','rMflT','vjtZQ','HjWGf','APISw','JCanD','XtJOq','getBinaryPath','get','download','pREle','fileName','/Users/','BvTdt','KAUpZ','kJGWv','readFileSync','darwin','Fxpwo','cwd','KcnWb','QWmYq','zWsrf','1003771jomCUM','618312oLmNMN','winstonLogger','GZdXl','10443790uUWSGw','DJMhL','validateBinary','R_OK','once','/home/','puwZN','lnkNV','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','pipe','child_process','XuYex','USERNAME','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','.zip','jgZLb','accessSync','proxyHost','https://github.com/percy/cli/releases/latest/download','function','homedir','ICmAF','YPsjY','percy','azlUh','useCaCertificate','kRhBI','mKupU','linux','gVntF','error','readEntry','322194Qgjggz','url','mTrFk','/percy-linux.zip','bVLBj','undefined','JlOtN','XlLfY','ypcut','win32','jvWQa','zSgRt','match','X_OK','port'];a69_0x4d51=function(){return _0x1fb648;};return a69_0x4d51();}
|
|
1
|
+
function a69_0x589b(_0x22285f,_0x5e9697){const _0x120ff9=a69_0x120f();return a69_0x589b=function(_0x589bae,_0x4d28e5){_0x589bae=_0x589bae-0x1e4;let _0x7dcb2f=_0x120ff9[_0x589bae];return _0x7dcb2f;},a69_0x589b(_0x22285f,_0x5e9697);}const a69_0x5bcbb1=a69_0x589b;(function(_0xd10458,_0x537744){const _0x5e3dc=a69_0x589b,_0xb9d8ce=_0xd10458();while(!![]){try{const _0x3bfc11=parseInt(_0x5e3dc(0x201))/0x1+parseInt(_0x5e3dc(0x223))/0x2*(-parseInt(_0x5e3dc(0x1eb))/0x3)+-parseInt(_0x5e3dc(0x1f1))/0x4+-parseInt(_0x5e3dc(0x1f6))/0x5*(-parseInt(_0x5e3dc(0x20d))/0x6)+parseInt(_0x5e3dc(0x22b))/0x7*(parseInt(_0x5e3dc(0x1ee))/0x8)+-parseInt(_0x5e3dc(0x245))/0x9*(-parseInt(_0x5e3dc(0x242))/0xa)+-parseInt(_0x5e3dc(0x210))/0xb;if(_0x3bfc11===_0x537744)break;else _0xb9d8ce['push'](_0xb9d8ce['shift']());}catch(_0x4b67d9){_0xb9d8ce['push'](_0xb9d8ce['shift']());}}}(a69_0x120f,0x93335));const {https}=require(a69_0x5bcbb1(0x256)),url=require('url'),yauzl=require(a69_0x5bcbb1(0x247)),fs=require('fs'),path=require(a69_0x5bcbb1(0x1f8)),os=require('os'),{spawn}=require(a69_0x5bcbb1(0x1fb)),HttpsProxyAgent=require(a69_0x5bcbb1(0x21b)),logger=require(a69_0x5bcbb1(0x21c))[a69_0x5bcbb1(0x248)];class PercyBinary{#hostOS=process[a69_0x5bcbb1(0x26a)];#httpPath=null;#binaryName=a69_0x5bcbb1(0x20c);#orderedPaths=[path[a69_0x5bcbb1(0x20f)](this.#homedir(),a69_0x5bcbb1(0x26f)),process['cwd'](),os['tmpdir']()];constructor(){const _0x5b81f1=a69_0x5bcbb1,_0x308832={};_0x308832[_0x5b81f1(0x22e)]='https://github.com/percy/cli/releases/latest/download',_0x308832[_0x5b81f1(0x26e)]=function(_0x3fb78b,_0x22285c){return _0x3fb78b+_0x22285c;},_0x308832['aMwYN']='/percy-osx.zip',_0x308832[_0x5b81f1(0x270)]=function(_0xcf7b41,_0xdb6e30){return _0xcf7b41+_0xdb6e30;},_0x308832['yOnXZ']=_0x5b81f1(0x266),_0x308832['FUMgY']=_0x5b81f1(0x254),_0x308832[_0x5b81f1(0x23b)]=function(_0x461ae4,_0x29c0eb){return _0x461ae4+_0x29c0eb;},_0x308832['Stcfw']=_0x5b81f1(0x229);const _0x545f81=_0x308832,_0x27472d=_0x545f81[_0x5b81f1(0x22e)];if(this.#hostOS[_0x5b81f1(0x226)](/darwin|mac os/i))this.#httpPath=_0x545f81[_0x5b81f1(0x26e)](_0x27472d,_0x545f81[_0x5b81f1(0x215)]);else this.#hostOS[_0x5b81f1(0x226)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x545f81['MejpJ'](_0x27472d,_0x545f81[_0x5b81f1(0x21d)]),this.#binaryName=_0x545f81[_0x5b81f1(0x263)]):this.#httpPath=_0x545f81['MgYyX'](_0x27472d,_0x545f81[_0x5b81f1(0x219)]);}#getAvailableDirs(){const _0x4188b9=a69_0x5bcbb1,_0x340936={};_0x340936[_0x4188b9(0x23c)]=function(_0x1afcac,_0x2bffbf){return _0x1afcac<_0x2bffbf;},_0x340936[_0x4188b9(0x240)]=_0x4188b9(0x214);const _0x3beaee=_0x340936;for(var _0x1ea077=0x0;_0x3beaee['xvXHC'](_0x1ea077,this.#orderedPaths[_0x4188b9(0x262)]);_0x1ea077++){var _0x19a928=this.#orderedPaths[_0x1ea077];if(this.#makePath(_0x19a928))return _0x19a928;}throw new Error(_0x3beaee[_0x4188b9(0x240)]);}#makePath(_0x214e6e){const _0xf71d85=a69_0x5bcbb1;try{return!this.#checkPath(_0x214e6e)&&fs[_0xf71d85(0x1ec)](_0x214e6e),!![];}catch{return![];}}#checkPath(_0x20acd7,_0x34686d){const _0x56603f=a69_0x5bcbb1,_0x2341b9={};_0x2341b9[_0x56603f(0x231)]=function(_0x5b70d3,_0x4f22cb){return _0x5b70d3|_0x4f22cb;},_0x2341b9[_0x56603f(0x1f3)]=function(_0x376a81,_0x59aff6){return _0x376a81!==_0x59aff6;},_0x2341b9[_0x56603f(0x259)]='undefined';const _0x5c7654=_0x2341b9;_0x34686d=_0x34686d||_0x5c7654['qiice'](fs[_0x56603f(0x239)],fs[_0x56603f(0x25f)]);try{return fs[_0x56603f(0x206)](_0x20acd7,_0x34686d),!![];}catch(_0x416825){if(_0x5c7654['lPWVj'](typeof fs[_0x56603f(0x206)],_0x5c7654[_0x56603f(0x259)]))return![];try{return fs[_0x56603f(0x261)](_0x20acd7),!![];}catch(_0xae6a85){return![];}}}async[a69_0x5bcbb1(0x1e9)](_0x4e256d){const _0x5cb87c=a69_0x5bcbb1,_0x399295={};_0x399295['kpGjI']=_0x5cb87c(0x20a);const _0x1114f1=_0x399295;var _0x1caf77=this.#getAvailableDirs(),_0x32fd42=path[_0x5cb87c(0x20f)](_0x1caf77,this.#binaryName);if(this.#checkPath(_0x32fd42,fs[_0x5cb87c(0x23a)]))return _0x32fd42;const _0x20f7ba=await this['download'](_0x4e256d,_0x1caf77),_0x104068=await this[_0x5cb87c(0x258)](_0x20f7ba);if(!_0x104068)return logger[_0x5cb87c(0x22a)](_0x1114f1[_0x5cb87c(0x24a)]),await this[_0x5cb87c(0x1f0)](_0x4e256d,_0x1caf77);return _0x20f7ba;}async['validateBinary'](_0xae50d4){const _0xb5c901=a69_0x5bcbb1,_0x5e8d1a={'EFjRE':function(_0x5cf12b,_0x2fb966){return _0x5cf12b(_0x2fb966);},'zKksd':function(_0x47e03d,_0x19602c,_0x5107f1){return _0x47e03d(_0x19602c,_0x5107f1);},'YTTEP':'--version','MFEFm':_0xb5c901(0x1ed),'nDMLY':'close'},_0x36882d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x139593,_0x28aa7b)=>{const _0x115c84=_0xb5c901,_0x15d996={'VXbWa':function(_0x16eee6,_0x4af2da){const _0xcc709a=a69_0x589b;return _0x5e8d1a[_0xcc709a(0x1e5)](_0x16eee6,_0x4af2da);}},_0x57c7ed=_0x5e8d1a[_0x115c84(0x26d)](spawn,_0xae50d4,[_0x5e8d1a['YTTEP']]);_0x57c7ed[_0x115c84(0x1f5)]['on'](_0x5e8d1a[_0x115c84(0x257)],_0x47bea5=>{const _0x1d61af=_0x115c84;_0x36882d['test'](_0x47bea5)&&_0x15d996[_0x1d61af(0x1e7)](_0x139593,!![]);}),_0x57c7ed['on'](_0x5e8d1a[_0x115c84(0x24e)],()=>{const _0x5b903a=_0x115c84;_0x5e8d1a[_0x5b903a(0x1e5)](_0x139593,![]);});});}[a69_0x5bcbb1(0x1f0)](_0x25f810,_0x262a8b){const _0xd380a2=a69_0x5bcbb1,_0x2f0508={'hToMR':function(_0x2a1ddf,_0x2573cf){return _0x2a1ddf(_0x2573cf);},'mMShc':_0xd380a2(0x268),'hmHsF':function(_0x33c52f,_0x472722){return _0x33c52f===_0x472722;},'zwkIN':function(_0x42de3d,_0x2cb805){return _0x42de3d(_0x2cb805);},'NOVpc':_0xd380a2(0x269),'fcxmd':_0xd380a2(0x22a),'KbuLO':function(_0xe9267f,_0x398ecd){return _0xe9267f(_0x398ecd);},'utmLg':_0xd380a2(0x24c),'IEssx':_0xd380a2(0x25e),'EGfyV':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','WckSQ':function(_0x368ed2,_0x2fa778){return _0x368ed2(_0x2fa778);},'UolNn':_0xd380a2(0x241),'daudG':function(_0x29fa9f,_0x4ec81a){return _0x29fa9f(_0x4ec81a);},'cWeBB':_0xd380a2(0x227),'QRGVp':function(_0x134f4d,_0x21c0f8){return _0x134f4d+_0x21c0f8;},'xIHRD':_0xd380a2(0x1fd),'QmJKS':_0xd380a2(0x1f4)};!this.#checkPath(_0x262a8b)&&fs[_0xd380a2(0x1ec)](_0x262a8b);const _0xc0633e=this.#binaryName,_0x21872e=path[_0xd380a2(0x20f)](_0x262a8b,_0x2f0508['QRGVp'](_0xc0633e,_0x2f0508[_0xd380a2(0x220)])),_0xca2cea=path[_0xd380a2(0x20f)](_0x262a8b,_0xc0633e),_0x29224d=fs[_0xd380a2(0x235)](_0x21872e),_0x28811d=url[_0xd380a2(0x253)](this.#httpPath);if(_0x25f810[_0xd380a2(0x212)]&&_0x25f810['proxyPort']){const _0x49e8d9={};_0x49e8d9[_0xd380a2(0x25d)]=_0x25f810[_0xd380a2(0x212)],_0x49e8d9[_0xd380a2(0x20e)]=_0x25f810[_0xd380a2(0x24d)],_0x28811d[_0xd380a2(0x20b)]=new HttpsProxyAgent(_0x49e8d9);}if(_0x25f810['useCaCertificate'])try{_0x28811d['ca']=fs[_0xd380a2(0x221)](_0x25f810[_0xd380a2(0x237)]);}catch(_0x1c8986){logger[_0xd380a2(0x22a)](_0x2f0508[_0xd380a2(0x24b)],_0x1c8986);}return new Promise((_0x265cfa,_0xddb81)=>{const _0x2c50c2=_0xd380a2,_0x3108d6={'gBSQO':_0x2f0508[_0x2c50c2(0x1f7)],'ejQvy':function(_0x4493e2,_0x28df94){const _0x17d699=_0x2c50c2;return _0x2f0508[_0x17d699(0x232)](_0x4493e2,_0x28df94);},'QuvtJ':_0x2f0508['UolNn'],'RQHOW':function(_0x545fae,_0x536157){const _0x3792a1=_0x2c50c2;return _0x2f0508[_0x3792a1(0x1e6)](_0x545fae,_0x536157);},'UajjI':_0x2f0508['cWeBB']};https['get'](_0x28811d,function(_0x37edc4){const _0x3de7a8=_0x2c50c2,_0x5e6a53={'XVgfX':function(_0x2506ac,_0x4844b9){const _0x3a6dde=a69_0x589b;return _0x2f0508[_0x3a6dde(0x204)](_0x2506ac,_0x4844b9);},'qzUOX':_0x2f0508[_0x3de7a8(0x224)],'LmTJc':function(_0x4545ce,_0x55fe73){const _0x5069a3=_0x3de7a8;return _0x2f0508[_0x5069a3(0x252)](_0x4545ce,_0x55fe73);},'mPWNg':function(_0xd4e5be,_0x3c2941){const _0x48ab83=_0x3de7a8;return _0x2f0508[_0x48ab83(0x22d)](_0xd4e5be,_0x3c2941);},'ADDFI':function(_0xe7cad9,_0x45fcc1){return _0x2f0508['zwkIN'](_0xe7cad9,_0x45fcc1);},'BnRTN':_0x2f0508[_0x3de7a8(0x21a)],'DFedy':_0x2f0508['fcxmd'],'hGRJP':function(_0x1dc39d,_0x1bd197){const _0x46fbca=_0x3de7a8;return _0x2f0508[_0x46fbca(0x233)](_0x1dc39d,_0x1bd197);},'kIaNZ':_0x2f0508[_0x3de7a8(0x260)]};_0x37edc4[_0x3de7a8(0x22c)](_0x29224d),_0x37edc4['on'](_0x2f0508[_0x3de7a8(0x1e8)],function(_0x3bf95f){const _0x3b8448=_0x3de7a8;logger['error'](_0x3108d6[_0x3b8448(0x23d)],_0x3bf95f),_0x3108d6['ejQvy'](_0xddb81,_0x3bf95f);}),_0x29224d['on'](_0x2f0508[_0x3de7a8(0x1e8)],function(_0xccf35d){const _0x351579=_0x3de7a8;logger[_0x351579(0x22a)](_0x3108d6[_0x351579(0x23f)],_0xccf35d),_0x3108d6['RQHOW'](_0xddb81,_0xccf35d);}),_0x29224d['on'](_0x2f0508[_0x3de7a8(0x203)],function(){const _0x1b2898=_0x3de7a8,_0x1ed310={'lSNqt':function(_0x3b5d75,_0x6a6522){const _0x1429af=a69_0x589b;return _0x5e6a53[_0x1429af(0x23e)](_0x3b5d75,_0x6a6522);},'WfsKp':_0x5e6a53[_0x1b2898(0x225)]},_0x2bc2b8={};_0x2bc2b8[_0x1b2898(0x211)]=!![],yauzl[_0x1b2898(0x1e4)](_0x21872e,_0x2bc2b8,function(_0x44ee72,_0x360cb8){const _0x54c367=_0x1b2898,_0x5436d2={'fHVkX':function(_0xcbc39a,_0x48d0ab){const _0x54d3c3=a69_0x589b;return _0x5e6a53[_0x54d3c3(0x1fc)](_0xcbc39a,_0x48d0ab);},'sxBxr':_0x5e6a53[_0x54c367(0x236)],'JFLpd':function(_0x26cdc5,_0x2b3b66){const _0x4feced=_0x54c367;return _0x5e6a53[_0x4feced(0x21e)](_0x26cdc5,_0x2b3b66);},'ZqbMs':function(_0x229fc7,_0x1daf5c){const _0x472260=_0x54c367;return _0x5e6a53[_0x472260(0x1fc)](_0x229fc7,_0x1daf5c);},'tygWB':function(_0x510ea3,_0xd35698){const _0x4183f6=_0x54c367;return _0x5e6a53[_0x4183f6(0x216)](_0x510ea3,_0xd35698);}};_0x44ee72&&_0x5e6a53[_0x54c367(0x243)](_0xddb81,_0x44ee72),_0x360cb8[_0x54c367(0x213)](),_0x360cb8['on'](_0x5e6a53['BnRTN'],_0x1a9c42=>{const _0x542b0c=_0x54c367;if(/\/$/[_0x542b0c(0x22f)](_0x1a9c42[_0x542b0c(0x1f9)]))_0x360cb8[_0x542b0c(0x213)]();else{const _0x2cdcf3=fs[_0x542b0c(0x235)](path[_0x542b0c(0x20f)](_0x262a8b,_0x1a9c42[_0x542b0c(0x1f9)]));_0x360cb8[_0x542b0c(0x244)](_0x1a9c42,function(_0x5dbef9,_0x5cf7a3){const _0xd0ba19=_0x542b0c;_0x5dbef9&&_0x5436d2['fHVkX'](_0xddb81,_0x44ee72),_0x5cf7a3['on'](_0x5436d2[_0xd0ba19(0x26c)],function(){const _0x566587=_0xd0ba19;_0x2cdcf3[_0x566587(0x25e)](),_0x360cb8[_0x566587(0x213)]();}),_0x5cf7a3[_0xd0ba19(0x22c)](_0x2cdcf3);}),_0x5436d2[_0x542b0c(0x208)](_0x1a9c42[_0x542b0c(0x1f9)],_0xc0633e)&&_0x360cb8[_0x542b0c(0x25e)]();}}),_0x360cb8['on'](_0x5e6a53[_0x54c367(0x251)],_0x1c0c44=>{const _0x5120cb=_0x54c367;_0x1ed310[_0x5120cb(0x200)](_0xddb81,_0x1c0c44);}),_0x360cb8[_0x54c367(0x1f2)](_0x5e6a53['qzUOX'],()=>{const _0x325557=_0x54c367;fs[_0x325557(0x230)](_0xca2cea,_0x1ed310[_0x325557(0x26b)],function(_0x47aee6){const _0xda206f=_0x325557;_0x47aee6&&_0x5436d2[_0xda206f(0x1fe)](_0xddb81,_0x47aee6),_0x5436d2[_0xda206f(0x1fa)](_0x265cfa,_0xca2cea);}),_0x360cb8[_0x325557(0x25e)]();});});});})['on'](_0x2f0508[_0x2c50c2(0x1e8)],function(_0x35c1a5){const _0x3ead85=_0x2c50c2;logger[_0x3ead85(0x22a)](_0x3108d6[_0x3ead85(0x249)],_0x35c1a5),_0x3108d6[_0x3ead85(0x202)](_0xddb81,_0x35c1a5);});});}#homedir(){const _0xfbce31=a69_0x5bcbb1,_0x310c9f={};_0x310c9f[_0xfbce31(0x217)]=function(_0x4eae9b,_0x1e36d2){return _0x4eae9b===_0x1e36d2;},_0x310c9f[_0xfbce31(0x234)]=_0xfbce31(0x264),_0x310c9f[_0xfbce31(0x25b)]=function(_0x34543c,_0x4373d1){return _0x34543c===_0x4373d1;},_0x310c9f['MULuV']='win32',_0x310c9f[_0xfbce31(0x222)]=function(_0x5030f4,_0x1eb7ee){return _0x5030f4+_0x1eb7ee;},_0x310c9f[_0xfbce31(0x267)]=_0xfbce31(0x21f),_0x310c9f['wGbFB']=function(_0x391289,_0x4bfdf4){return _0x391289+_0x4bfdf4;},_0x310c9f['iOmNL']=_0xfbce31(0x271),_0x310c9f[_0xfbce31(0x1ff)]=function(_0x40e013,_0x5e6b2e){return _0x40e013===_0x5e6b2e;},_0x310c9f[_0xfbce31(0x255)]=_0xfbce31(0x265),_0x310c9f[_0xfbce31(0x238)]=_0xfbce31(0x205),_0x310c9f[_0xfbce31(0x24f)]=function(_0x2b4f54,_0x279898){return _0x2b4f54+_0x279898;},_0x310c9f[_0xfbce31(0x25c)]='/home/',_0x310c9f[_0xfbce31(0x1ea)]=function(_0x411a12,_0x3acb02){return _0x411a12||_0x3acb02;};const _0x478799=_0x310c9f;if(_0x478799[_0xfbce31(0x217)](typeof os[_0xfbce31(0x218)],_0x478799['YSMST']))return os[_0xfbce31(0x218)]();const _0x471fea=process[_0xfbce31(0x228)],_0x4809e5=_0x471fea[_0xfbce31(0x250)],_0x2c6254=_0x471fea[_0xfbce31(0x207)]||_0x471fea['USER']||_0x471fea[_0xfbce31(0x1ef)]||_0x471fea[_0xfbce31(0x25a)];if(_0x478799['iyUxl'](process[_0xfbce31(0x26a)],_0x478799['MULuV']))return _0x471fea['USERPROFILE']||_0x478799[_0xfbce31(0x222)](_0x471fea['HOMEDRIVE'],_0x471fea[_0xfbce31(0x246)])||_0x4809e5||null;if(_0x478799[_0xfbce31(0x217)](process[_0xfbce31(0x26a)],_0x478799[_0xfbce31(0x267)]))return _0x4809e5||(_0x2c6254?_0x478799['wGbFB'](_0x478799['iOmNL'],_0x2c6254):null);if(_0x478799[_0xfbce31(0x1ff)](process[_0xfbce31(0x26a)],_0x478799[_0xfbce31(0x255)]))return _0x4809e5||(_0x478799[_0xfbce31(0x1ff)](process['getuid'](),0x0)?_0x478799[_0xfbce31(0x238)]:_0x2c6254?_0x478799['HBiGw'](_0x478799[_0xfbce31(0x25c)],_0x2c6254):null);return _0x478799[_0xfbce31(0x1ea)](_0x4809e5,null);}}module[a69_0x5bcbb1(0x209)]=PercyBinary;function a69_0x120f(){const _0x482414=['readFileSync','IRCCu','52SmJaOk','mMShc','kIaNZ','match','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','env','/percy-linux.zip','error','544124bgdMhd','pipe','zwkIN','gVBSr','test','chmod','qiice','WckSQ','KbuLO','YSMST','createWriteStream','qzUOX','useCaCertificate','xsVQg','R_OK','X_OK','MgYyX','xvXHC','gBSQO','hGRJP','QuvtJ','yiIKO','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','3598930TofhBC','ADDFI','openReadStream','27JaXyAj','HOMEPATH','yauzl','winstonLogger','UajjI','kpGjI','QmJKS','0755','proxyPort','nDMLY','HBiGw','HOME','DFedy','hmHsF','parse','percy.exe','tQWSU','follow-redirects','MFEFm','validateBinary','VuFcD','USERNAME','iyUxl','YdmzR','host','close','W_OK','utmLg','statSync','length','FUMgY','function','linux','/percy-win.zip','icvgs','end','entry','platform','WfsKp','sxBxr','zKksd','XfbkE','.browserstack','MejpJ','/Users/','open','EFjRE','daudG','VXbWa','fcxmd','getBinaryPath','vXLLw','10896fXuOeC','mkdirSync','data','88Tvldny','LNAME','download','2750568nrBnOa','once','lPWVj','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','stdout','66325GVymRK','EGfyV','path','fileName','tygWB','child_process','XVgfX','.zip','ZqbMs','nkBIt','lSNqt','904550pRIsBq','RQHOW','IEssx','hToMR','/root','accessSync','LOGNAME','JFLpd','exports','Corrupt\x20percy\x20binary,\x20retrying','agent','percy','438doadbd','port','join','26648809SYLdgs','lazyEntries','proxyHost','readEntry','Error\x20trying\x20to\x20download\x20percy\x20binary','aMwYN','mPWNg','NFGIM','homedir','Stcfw','NOVpc','https-proxy-agent','../logger','yOnXZ','LmTJc','darwin','xIHRD'];a69_0x120f=function(){return _0x482414;};return a69_0x120f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a70_0x448d(_0x299083,_0x588432){var _0x1d20af=a70_0x1d20();return a70_0x448d=function(_0x448d23,_0x516c4c){_0x448d23=_0x448d23-0x8d;var _0x32bce4=_0x1d20af[_0x448d23];return _0x32bce4;},a70_0x448d(_0x299083,_0x588432);}function a70_0x1d20(){var _0x2b83da=['4YBHFAT','769212zUIcZc','increment','4417890uqpYxA','1384272WRajjO','get','7yPTEgE','getName','533488JOtprB','2VzsbyF','454929QpWqrG','1012105RfpXkb','28295yCTErE'];a70_0x1d20=function(){return _0x2b83da;};return a70_0x1d20();}var a70_0x319885=a70_0x448d;(function(_0x2271dd,_0x3de099){var _0x5bb2d2=a70_0x448d,_0x5c4a82=_0x2271dd();while(!![]){try{var _0x3561c4=parseInt(_0x5bb2d2(0x97))/0x1*(-parseInt(_0x5bb2d2(0x94))/0x2)+-parseInt(_0x5bb2d2(0x95))/0x3+parseInt(_0x5bb2d2(0x98))/0x4*(parseInt(_0x5bb2d2(0x96))/0x5)+-parseInt(_0x5bb2d2(0x99))/0x6+parseInt(_0x5bb2d2(0x91))/0x7*(-parseInt(_0x5bb2d2(0x93))/0x8)+-parseInt(_0x5bb2d2(0x8f))/0x9+parseInt(_0x5bb2d2(0x8e))/0xa;if(_0x3561c4===_0x3de099)break;else _0x5c4a82['push'](_0x5c4a82['shift']());}catch(_0x5859a6){_0x5c4a82['push'](_0x5c4a82['shift']());}}}(a70_0x1d20,0x1c378));class PercyCaptureMap{#map={};[a70_0x319885(0x8d)](_0x50a0fb,_0x3a865c){!this.#map[_0x50a0fb]&&(this.#map[_0x50a0fb]={}),!this.#map[_0x50a0fb][_0x3a865c]&&(this.#map[_0x50a0fb][_0x3a865c]=0x0),this.#map[_0x50a0fb][_0x3a865c]++;}[a70_0x319885(0x92)](_0x283fbf,_0x4d44f6){var _0x47a261=a70_0x319885;return _0x283fbf+'-'+_0x4d44f6+'-'+this[_0x47a261(0x90)](_0x283fbf,_0x4d44f6);}[a70_0x319885(0x90)](_0x12ad30,_0x11d056){if(!this.#map[_0x12ad30])return 0x0;if(!this.#map[_0x12ad30][_0x11d056])return 0x0;return this.#map[_0x12ad30][_0x11d056];}}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x45ce41=a71_0x495f;(function(_0x12f8fc,_0x5f4f22){var _0x4f2030=a71_0x495f,_0x1bf437=_0x12f8fc();while(!![]){try{var _0x39164a=parseInt(_0x4f2030(0xd2))/0x1+parseInt(_0x4f2030(0xca))/0x2+-parseInt(_0x4f2030(0xd4))/0x3*(parseInt(_0x4f2030(0xd1))/0x4)+parseInt(_0x4f2030(0xd7))/0x5+-parseInt(_0x4f2030(0xd0))/0x6+-parseInt(_0x4f2030(0xcd))/0x7*(parseInt(_0x4f2030(0xd6))/0x8)+parseInt(_0x4f2030(0xcb))/0x9;if(_0x39164a===_0x5f4f22)break;else _0x1bf437['push'](_0x1bf437['shift']());}catch(_0x5e2a6f){_0x1bf437['push'](_0x1bf437['shift']());}}}(a71_0x4ae4,0x5118f));var a71_0x107456={};a71_0x107456[a71_0x45ce41(0xce)]=[a71_0x45ce41(0xcc)],a71_0x107456[a71_0x45ce41(0xdb)]=[a71_0x45ce41(0xd5),a71_0x45ce41(0xcf)];var a71_0x2f8aeb={};function a71_0x495f(_0x2045d2,_0x30923c){var _0x4ae450=a71_0x4ae4();return a71_0x495f=function(_0x495f2c,_0x365cd9){_0x495f2c=_0x495f2c-0xca;var _0x127f8c=_0x4ae450[_0x495f2c];return _0x127f8c;},a71_0x495f(_0x2045d2,_0x30923c);}a71_0x2f8aeb['driver']=[a71_0x45ce41(0xcc)];var a71_0x5ebe39={};function a71_0x4ae4(){var _0x49a87e=['879790QimjwK','5998311kFvyKw','takeScreenshot','2428797FBFBWn','driver','sendKeys','3871500houFgD','4sMYpyW','231955zwCauw','testcase','425319rkxdqf','click','8QJlpna','639200NnjtXi','auto','manual','exports','element'];a71_0x4ae4=function(){return _0x49a87e;};return a71_0x4ae4();}a71_0x5ebe39['element']=[a71_0x45ce41(0xd5)];var a71_0xbee1d8={};a71_0xbee1d8[a71_0x45ce41(0xd8)]=a71_0x107456,a71_0xbee1d8['screenshot']=a71_0x2f8aeb,a71_0xbee1d8['click']=a71_0x5ebe39,a71_0xbee1d8[a71_0x45ce41(0xd3)]={},a71_0xbee1d8[a71_0x45ce41(0xd9)]={},module[a71_0x45ce41(0xda)]=a71_0xbee1d8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0x4173(){const _0x276133=['JTTAl','14939496CwpyNc','apply','screenshotApp','percy:screenshot','dVrWd','10nNiHHh','893782WYoXKf','snapshot','error','840ivXeJb','platformIndex','895848WKcWyf','@percy/selenium-webdriver','browserstackPercyBestPlatform','@percy/appium-app','thTestCaseExecutionId','QCZuB','percy:screenshot-app','length','xSDYc','measure','name','../performance-tester','hQLcT','wnnQD','dtuyt','screenshot','5726077DiSLzv','5uDMtoM','5116368WSKQFt','testCase','yfDCb','3525810ifTGtO','browserstackPlatformIndex','ACXSc','winstonLogger','percy:snapshot','OdtCA','5758RMkUTF','uuid'];a72_0x4173=function(){return _0x276133;};return a72_0x4173();}const a72_0x968248=a72_0x513e;(function(_0x527ce9,_0xe237f2){const _0x452dbb=a72_0x513e,_0x44b6b7=_0x527ce9();while(!![]){try{const _0x2e3f71=-parseInt(_0x452dbb(0x1db))/0x1+parseInt(_0x452dbb(0x1fb))/0x2*(parseInt(_0x452dbb(0x1de))/0x3)+-parseInt(_0x452dbb(0x1e0))/0x4+parseInt(_0x452dbb(0x1f1))/0x5*(parseInt(_0x452dbb(0x1f5))/0x6)+-parseInt(_0x452dbb(0x1f0))/0x7+-parseInt(_0x452dbb(0x1f2))/0x8+parseInt(_0x452dbb(0x1fe))/0x9*(parseInt(_0x452dbb(0x203))/0xa);if(_0x2e3f71===_0xe237f2)break;else _0x44b6b7['push'](_0x44b6b7['shift']());}catch(_0x4fe491){_0x44b6b7['push'](_0x44b6b7['shift']());}}}(a72_0x4173,0x74cbe));const tryRequire=function(_0xdc5e6a,_0x193cfd){const _0x22c535=a72_0x513e,_0x5ce9e1={'OdtCA':function(_0x158f69,_0x32dc36){return _0x158f69(_0x32dc36);}};try{return _0x5ce9e1[_0x22c535(0x1fa)](require,_0xdc5e6a);}catch{return _0x193cfd;}},percySnapshot=tryRequire(a72_0x968248(0x1e1),null),{percyScreenshot}=tryRequire(a72_0x968248(0x1e1),{}),percyAppScreenshot=require(a72_0x968248(0x1e3)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a72_0x968248(0x1eb)),logger=require('../logger')[a72_0x968248(0x1f8)];percySnapshot&&(exports[a72_0x968248(0x1dc)]=async function(){const _0x40cd73=a72_0x968248,_0x5f517e={'dtuyt':function(_0x3bf323,_0x3cd4e9){return _0x3bf323!==_0x3cd4e9;},'ACXSc':function(_0x2e3be6,_0x1981b3){return _0x2e3be6>=_0x1981b3;},'UpwIu':function(_0x13afc0){return _0x13afc0();},'hQLcT':_0x40cd73(0x1f9)};if(global['browserstackPlatformIndex']&&_0x5f517e[_0x40cd73(0x1ee)](global['browserstackPlatformIndex'],global[_0x40cd73(0x1e2)]))return;const _0x5efb4e=_0x5f517e[_0x40cd73(0x1f7)](arguments[_0x40cd73(0x1e7)],0x2)?arguments[0x1]:'',_0x551796=_0x5f517e['UpwIu'](getCurrentTestData),_0x17f162={};return _0x17f162[_0x40cd73(0x1ea)]=_0x5efb4e,_0x17f162['testCase']=_0x551796['name']||'',_0x17f162[_0x40cd73(0x1e4)]=_0x551796[_0x40cd73(0x1fc)]||'',_0x17f162['platformIndex']=global[_0x40cd73(0x1f6)],await PerformanceTester[_0x40cd73(0x1e9)](_0x5f517e[_0x40cd73(0x1ec)],()=>percySnapshot[_0x40cd73(0x1ff)](null,arguments),_0x17f162);});function a72_0x513e(_0x53b19d,_0x51373e){const _0x41739e=a72_0x4173();return a72_0x513e=function(_0x513e71,_0x126748){_0x513e71=_0x513e71-0x1db;let _0x57fb0d=_0x41739e[_0x513e71];return _0x57fb0d;},a72_0x513e(_0x53b19d,_0x51373e);}percyScreenshot?exports[a72_0x968248(0x1ef)]=async function(){const _0x7adf57=a72_0x968248,_0x43f834={'xSDYc':function(_0x258736,_0x243d90){return _0x258736>=_0x243d90;},'dVrWd':function(_0x2f8609){return _0x2f8609();},'wnnQD':_0x7adf57(0x201)},_0x72143=_0x43f834[_0x7adf57(0x1e8)](arguments[_0x7adf57(0x1e7)],0x2)?arguments[0x1]:'',_0x2db34c=_0x43f834[_0x7adf57(0x202)](getCurrentTestData),_0x5b1143={};return _0x5b1143[_0x7adf57(0x1ea)]=_0x72143,_0x5b1143['testCase']=_0x2db34c[_0x7adf57(0x1ea)]||'',_0x5b1143[_0x7adf57(0x1e4)]=_0x2db34c[_0x7adf57(0x1fc)]||'',_0x5b1143[_0x7adf57(0x1df)]=global[_0x7adf57(0x1f6)],await PerformanceTester[_0x7adf57(0x1e9)](_0x43f834[_0x7adf57(0x1ed)],()=>percyScreenshot[_0x7adf57(0x1ff)](null,arguments),_0x5b1143);}:exports[a72_0x968248(0x1ef)]=()=>{const _0x49010a=a72_0x968248,_0x2c09f9={};_0x2c09f9[_0x49010a(0x1f4)]='Unsupported\x20driver\x20for\x20percy';const _0x3602c2=_0x2c09f9;logger[_0x49010a(0x1dd)](_0x3602c2[_0x49010a(0x1f4)]);};exports[a72_0x968248(0x200)]=async function(){const _0x29b645=a72_0x968248,_0x149405={'QCZuB':function(_0x260cfa,_0x25591a){return _0x260cfa>=_0x25591a;},'JTTAl':function(_0x13123e){return _0x13123e();},'NNTVt':_0x29b645(0x1e6)},_0x5e1843=_0x149405[_0x29b645(0x1e5)](arguments[_0x29b645(0x1e7)],0x2)?arguments[0x1]:'',_0x430ea7=_0x149405[_0x29b645(0x1fd)](getCurrentTestData),_0x269630={};return _0x269630[_0x29b645(0x1ea)]=_0x5e1843,_0x269630[_0x29b645(0x1f3)]=_0x430ea7[_0x29b645(0x1ea)]||'',_0x269630[_0x29b645(0x1e4)]=_0x430ea7[_0x29b645(0x1fc)]||'',_0x269630[_0x29b645(0x1df)]=global[_0x29b645(0x1f6)],await PerformanceTester['measure'](_0x149405['NNTVt'],()=>percyAppScreenshot[_0x29b645(0x1ff)](null,arguments),_0x269630);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a73_0x1994b=a73_0x5680;(function(_0x16ac06,_0x18667d){var _0xcbac50=a73_0x5680,_0x8786f8=_0x16ac06();while(!![]){try{var _0x1f69a1=parseInt(_0xcbac50(0x101))/0x1*(-parseInt(_0xcbac50(0x105))/0x2)+-parseInt(_0xcbac50(0xff))/0x3+parseInt(_0xcbac50(0x103))/0x4+parseInt(_0xcbac50(0x102))/0x5+parseInt(_0xcbac50(0x108))/0x6+-parseInt(_0xcbac50(0x104))/0x7*(parseInt(_0xcbac50(0x107))/0x8)+parseInt(_0xcbac50(0x106))/0x9;if(_0x1f69a1===_0x18667d)break;else _0x8786f8['push'](_0x8786f8['shift']());}catch(_0x4c33fe){_0x8786f8['push'](_0x8786f8['shift']());}}}(a73_0x4a51,0x5e3f2),module[a73_0x1994b(0xfe)]=require(a73_0x1994b(0x100)));function a73_0x5680(_0x3b9f83,_0x4229eb){var _0x4a5176=a73_0x4a51();return a73_0x5680=function(_0x56809b,_0x460bb3){_0x56809b=_0x56809b-0xfe;var _0x33feb6=_0x4a5176[_0x56809b];return _0x33feb6;},a73_0x5680(_0x3b9f83,_0x4229eb);}function a73_0x4a51(){var _0x4e8dcc=['104KXhEwI','189792ikJxRf','exports','162297RJMeUj','./Percy','1dwSwqU','942130jSgcMw','1596580NpLroR','299411DWzhGD','441566JfhkSu','5379858LSWlVT'];a73_0x4a51=function(){return _0x4e8dcc;};return a73_0x4a51();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x14606a=a74_0x4c59;(function(_0x42a90e,_0x5085af){const _0x1bb11b=a74_0x4c59,_0x1b74d0=_0x42a90e();while(!![]){try{const _0x5dfb2f=-parseInt(_0x1bb11b(0x161))/0x1+-parseInt(_0x1bb11b(0x152))/0x2*(-parseInt(_0x1bb11b(0x176))/0x3)+parseInt(_0x1bb11b(0x172))/0x4+parseInt(_0x1bb11b(0x188))/0x5+-parseInt(_0x1bb11b(0x16d))/0x6+-parseInt(_0x1bb11b(0x150))/0x7+-parseInt(_0x1bb11b(0x14b))/0x8;if(_0x5dfb2f===_0x5085af)break;else _0x1b74d0['push'](_0x1b74d0['shift']());}catch(_0x8ba69f){_0x1b74d0['push'](_0x1b74d0['shift']());}}}(a74_0x4ef7,0x5b91e));const Percy=require('./Percy'),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a74_0x14606a(0x162)),PercyCaptureMap=require(a74_0x14606a(0x184)),logger=require(a74_0x14606a(0x164))['winstonLogger'],helper=require(a74_0x14606a(0x183)),PerformanceTester=require(a74_0x14606a(0x186));function a74_0x4c59(_0x6ca75,_0x40cf69){const _0x4ef7cb=a74_0x4ef7();return a74_0x4c59=function(_0x4c59e2,_0x2f7b8e){_0x4c59e2=_0x4c59e2-0x14a;let _0x37c21d=_0x4ef7cb[_0x4c59e2];return _0x37c21d;},a74_0x4c59(_0x6ca75,_0x40cf69);}exports[a74_0x14606a(0x182)]=PerformanceTester[a74_0x14606a(0x15d)](a74_0x14606a(0x17f),async _0x5069c7=>{const _0x33508f=a74_0x14606a,_0xf1313b={};_0xf1313b[_0x33508f(0x17e)]=_0x33508f(0x18e);const _0x59fb47=_0xf1313b;logger['debug'](_0x59fb47['vKfHd']);const _0xc03a79=new Percy(_0x5069c7),_0x35c33b=await _0xc03a79[_0x33508f(0x17d)]();if(_0x35c33b)return _0xc03a79;return null;}),exports['stopPercy']=PerformanceTester[a74_0x14606a(0x15d)](a74_0x14606a(0x16e),async _0x1e33fe=>{const _0x32fc44=a74_0x14606a,_0x335516={};_0x335516[_0x32fc44(0x18a)]=_0x32fc44(0x153);const _0x49f468=_0x335516;return logger[_0x32fc44(0x17c)](_0x49f468['CtCqM']),_0x1e33fe['stop']();}),exports[a74_0x14606a(0x15e)]=_0x19979a=>{const _0x2e4959=a74_0x14606a,_0x29f774={};_0x29f774[_0x2e4959(0x18c)]=function(_0x160413,_0x390b16){return _0x160413<_0x390b16;};const _0x2947ca=_0x29f774,_0x20560d={};_0x20560d[_0x2e4959(0x151)]=0x0,_0x20560d[_0x2e4959(0x173)]=0x1,_0x20560d['edge']=0x2,_0x20560d[_0x2e4959(0x177)]=0x3;const _0x4aec2e=_0x20560d;return _0x19979a['reduce']((_0x816bea,_0x23a457,_0x1eadce)=>{const _0xeebc7a=_0x2e4959,_0x3a4ffd=_0x19979a[_0x816bea];if(_0x23a457['deviceName'])return _0x816bea;if(_0x3a4ffd['deviceName'])return _0x1eadce;const _0x3541d9=_0x23a457[_0xeebc7a(0x168)]?_0x23a457[_0xeebc7a(0x168)]:_0x23a457[_0xeebc7a(0x158)];if(_0x3541d9&&_0x2947ca[_0xeebc7a(0x18c)](_0x4aec2e[_0x3541d9[_0xeebc7a(0x181)]()],_0x4aec2e[_0x3541d9[_0xeebc7a(0x181)]()]))return _0x1eadce;return _0x816bea;},0x0);},exports['percyAutoCapture']=async(_0x2aece0,_0x32eb37,_0x5c5ad7)=>{const _0x267371=a74_0x14606a,_0x104506={};_0x104506['NJcKT']=_0x267371(0x15c);const _0x256a18=_0x104506,_0x6296d6=_0x2aece0[_0x267371(0x14e)];if(helper[_0x267371(0x179)](_0x2aece0[_0x267371(0x157)])){logger[_0x267371(0x17c)](_0x256a18[_0x267371(0x156)]);return;}const _0x316543=_0x6296d6[_0x267371(0x15a)](_0x2aece0[_0x267371(0x157)],_0x32eb37);_0x5c5ad7[_0x267371(0x15f)]?await PercySDK['screenshotApp'](_0x2aece0,_0x316543):await PercySDK['screenshot'](_0x2aece0,_0x316543),_0x6296d6[_0x267371(0x14a)](_0x2aece0[_0x267371(0x157)],_0x32eb37);},exports[a74_0x14606a(0x16a)]=(_0x5a4225,_0x5caf32,_0x13d57d)=>{const _0xd5b936=a74_0x14606a,_0x257be2={};_0x257be2[_0xd5b936(0x169)]=_0xd5b936(0x17b),_0x257be2[_0xd5b936(0x14f)]='percy',_0x257be2[_0xd5b936(0x160)]=function(_0x595199,_0x44bebe){return _0x595199!==_0x44bebe;},_0x257be2[_0xd5b936(0x178)]=_0xd5b936(0x17a);const _0x508e6b=_0x257be2;if(!helper[_0xd5b936(0x18b)](_0x13d57d,[_0x508e6b[_0xd5b936(0x169)],_0x508e6b[_0xd5b936(0x14f)]]))return;if(_0x13d57d[_0xd5b936(0x17b)][_0xd5b936(0x154)]&&_0x13d57d['browserStackPercyOptions']['percyCaptureMode']&&_0x508e6b['KxNVE'](_0x13d57d['browserStackPercyOptions'][_0xd5b936(0x185)],_0x508e6b['dUNon'])&&!_0x5a4225['browserstackPercyMap']){global[_0xd5b936(0x157)]&&(_0x5a4225[_0xd5b936(0x157)]=global[_0xd5b936(0x157)]),_0x5a4225[_0xd5b936(0x14e)]=new PercyCaptureMap();const _0x37b41e=PercyCaptureModes[_0x13d57d['browserStackPercyOptions'][_0xd5b936(0x185)]];_0x37b41e[_0xd5b936(0x167)]&&_0x37b41e[_0xd5b936(0x167)]['forEach'](_0x1768e4=>this[_0xd5b936(0x174)](_0x5a4225,_0x1768e4,_0x13d57d)),_0x37b41e[_0xd5b936(0x165)]&&_0x37b41e[_0xd5b936(0x165)][_0xd5b936(0x16f)](_0x452a56=>{const _0x550b07=_0xd5b936;if(_0x5caf32[_0x550b07(0x175)][_0x550b07(0x170)+_0x452a56])return;_0x5caf32[_0x550b07(0x175)][_0x550b07(0x170)+_0x452a56]=!![];const _0x52c69c=_0x5caf32[_0x550b07(0x175)][_0x452a56];_0x5caf32[_0x550b07(0x175)][_0x452a56]=async function(){const _0x47010d=_0x550b07;let _0x5c6481=_0x52c69c[_0x47010d(0x180)](this,arguments);_0x5c6481&&_0x5c6481['then']&&(_0x5c6481=await _0x5c6481);try{const _0x2817d8=this[_0x47010d(0x189)]();await exports[_0x47010d(0x14c)](_0x2817d8,_0x452a56,_0x13d57d);}catch(_0x2ac083){logger[_0x47010d(0x18d)](_0x47010d(0x16b)+_0x452a56+_0x47010d(0x159)+_0x2ac083);}return _0x5c6481;};});}},exports[a74_0x14606a(0x174)]=function(_0x1e4bb7,_0x317062,_0xc9dc7a){const _0x237b52=a74_0x14606a,_0x5c3a31={};_0x5c3a31[_0x237b52(0x166)]=function(_0x237b78,_0x8af906){return _0x237b78+_0x8af906;},_0x5c3a31[_0x237b52(0x163)]=_0x237b52(0x170),_0x5c3a31[_0x237b52(0x155)]=function(_0xbb4643,_0x507123){return _0xbb4643+_0x507123;},_0x5c3a31[_0x237b52(0x14d)]=_0x237b52(0x187);const _0x1ccafa=_0x5c3a31,_0x5a1199=_0x1ccafa[_0x237b52(0x166)](_0x1ccafa['Cocwi'],_0x317062),_0x8bfb8e=_0x1ccafa[_0x237b52(0x155)](_0x1ccafa['GzPsn'],_0x317062),_0x1fe901=this;if(_0x1e4bb7[_0x5a1199]||!_0x1e4bb7[_0x317062])return;_0x1e4bb7[_0x5a1199]=!![],_0x1e4bb7[_0x8bfb8e]=_0x1e4bb7[_0x317062],_0x1e4bb7[_0x317062]=async()=>{const _0x5098be=_0x237b52;try{await _0x1fe901[_0x5098be(0x14c)](_0x1e4bb7,_0x317062,_0xc9dc7a);}catch(_0x1d65e6){logger[_0x5098be(0x18d)](_0x5098be(0x16b)+_0x317062+_0x5098be(0x159)+_0x1d65e6);}return await _0x1e4bb7[_0x8bfb8e][_0x5098be(0x180)](_0x1e4bb7,arguments);};},exports[a74_0x14606a(0x15b)]=_0x59d684=>{const _0x316c67=a74_0x14606a,_0x352a4b={};_0x352a4b[_0x316c67(0x154)]=_0x59d684[_0x316c67(0x154)],_0x352a4b[_0x316c67(0x185)]=_0x59d684['percyCaptureMode'];const _0x5371c1=_0x352a4b;_0x59d684[_0x316c67(0x154)]&&(_0x5371c1[_0x316c67(0x16c)]=exports[_0x316c67(0x15e)](_0x59d684[_0x316c67(0x171)]));;return _0x5371c1;};function a74_0x4ef7(){const _0x219b0=['vKfHd','percy:start','apply','toLowerCase','startPercy','../helper','./PercyCaptureMap','percyCaptureMode','../performance-tester','init','3548330iNDckL','getDriver','CtCqM','nestedKeyValue','FDWqt','error','Starting\x20percy','increment','5262544CHbxQA','percyAutoCapture','GzPsn','browserstackPercyMap','yIOPt','884513jEEkCn','chrome','314854LLVFVJ','Stopping\x20percy','percy','JxhYn','NJcKT','browserstackSessionName','browserName','\x20for\x20percy\x20','getName','getPercyOptions','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','measureWrapper','getBestPlatformForPercySnapshot','app','KxNVE','208998UKrpFV','./PercyCaptureModes','Cocwi','../logger','element','vzwEL','driver','browser','YKdUL','patchDriverPercy','Error\x20patching\x20','browserstackPercyBestPlatform','314028ublofe','percy:stop','forEach','patch','platforms','954544HJjpLh','firefox','overrideXforPercy','prototype','9TCUYjh','safari','dUNon','isUndefined','manual','browserStackPercyOptions','debug','start'];a74_0x4ef7=function(){return _0x219b0;};return a74_0x4ef7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x57eb49=a75_0x2083;function a75_0x2083(_0x311166,_0x435e99){const _0x4bc7a3=a75_0x4bc7();return a75_0x2083=function(_0x208356,_0x116bfb){_0x208356=_0x208356-0x10b;let _0x5d26ca=_0x4bc7a3[_0x208356];return _0x5d26ca;},a75_0x2083(_0x311166,_0x435e99);}(function(_0x24ffd8,_0x1fe982){const _0x4443b2=a75_0x2083,_0x468eed=_0x24ffd8();while(!![]){try{const _0x47f4b8=-parseInt(_0x4443b2(0x10e))/0x1*(parseInt(_0x4443b2(0x11d))/0x2)+parseInt(_0x4443b2(0x160))/0x3+-parseInt(_0x4443b2(0x178))/0x4+parseInt(_0x4443b2(0x140))/0x5+-parseInt(_0x4443b2(0x16c))/0x6+-parseInt(_0x4443b2(0x170))/0x7+parseInt(_0x4443b2(0x127))/0x8;if(_0x47f4b8===_0x1fe982)break;else _0x468eed['push'](_0x468eed['shift']());}catch(_0x1e2cab){_0x468eed['push'](_0x468eed['shift']());}}}(a75_0x4bc7,0xe9bf9));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x57eb49(0x176)),{sleep,debug}=require('./test-observability/utils'),path=require(a75_0x57eb49(0x16a)),logger=require(a75_0x57eb49(0x142))[a75_0x57eb49(0x158)];class PerformanceTester{static [a75_0x57eb49(0x139)];static [a75_0x57eb49(0x174)]=[];static ['_measureEvents']=[];static ['_errorEvents']=[];static [a75_0x57eb49(0x130)]=![];static [a75_0x57eb49(0x167)]='performance-report.json';static [a75_0x57eb49(0x13f)]=a75_0x57eb49(0x10b);static[a75_0x57eb49(0x180)](_0x23e98c=a75_0x57eb49(0x14f),_0x214d42=a75_0x57eb49(0x10b)){const _0x5d622c=a75_0x57eb49,_0x54c9fc={};_0x54c9fc['gMomA']=function(_0x50ab5e,_0xa2213d){return _0x50ab5e===_0xa2213d;},_0x54c9fc[_0x5d622c(0x117)]='measure',_0x54c9fc[_0x5d622c(0x14a)]='function';const _0x875978=_0x54c9fc;if(this[_0x5d622c(0x130)]||!this[_0x5d622c(0x177)]())return;this[_0x5d622c(0x139)]=new PerformanceObserver(_0x5e84f6=>{const _0xe9724=_0x5d622c;_0x5e84f6[_0xe9724(0x150)]()[_0xe9724(0x15b)](_0x25a2b1=>{const _0x3bd2c6=_0xe9724;_0x875978['gMomA'](_0x25a2b1['entryType'],_0x875978[_0x3bd2c6(0x117)])?this['_measureEvents'][_0x3bd2c6(0x13b)](_0x25a2b1):this[_0x3bd2c6(0x174)]['push'](_0x25a2b1);});});const _0x5a9a93={};_0x5a9a93[_0x5d622c(0x13a)]=!![],_0x5a9a93[_0x5d622c(0x16d)]=[_0x875978['lViyD'],_0x875978['QxpiQ']],this[_0x5d622c(0x139)][_0x5d622c(0x12f)](_0x5a9a93),this[_0x5d622c(0x130)]=!![],this[_0x5d622c(0x167)]=_0x23e98c,this[_0x5d622c(0x13f)]=_0x214d42;}static[a75_0x57eb49(0x123)](){return performance;}static[a75_0x57eb49(0x125)](_0xaa9736,_0x3b44af){const _0x44ddeb=a75_0x57eb49,_0x2db6f5={};_0x2db6f5['pYGgl']=function(_0x584bbc,_0x5ac212){return _0x584bbc+_0x5ac212;},_0x2db6f5[_0x44ddeb(0x168)]=function(_0x7ae696,_0x1901f0){return _0x7ae696||_0x1901f0;},_0x2db6f5[_0x44ddeb(0x118)]=function(_0x4ba04a,_0x4c8391){return _0x4ba04a===_0x4c8391;};const _0x233ce0=_0x2db6f5,_0x2c4c33={};if(!_0xaa9736||_0x233ce0['XWuwL'](_0xaa9736[_0x44ddeb(0x134)],0x0))return;_0xaa9736[_0x44ddeb(0x12a)](_0x554726=>{const _0x31e007=_0x44ddeb;!_0x2c4c33[_0x554726['name']]&&(_0x2c4c33[_0x554726[_0x31e007(0x153)]]=0x0),_0x2c4c33[_0x554726[_0x31e007(0x153)]]+=_0x554726[_0x31e007(0x16b)];});const _0x51c16f=_0x3b44af['reduce']((_0x246da6,_0x4fa04a)=>{const _0x5d486c=_0x44ddeb;return _0x233ce0[_0x5d486c(0x17b)](_0x2c4c33[_0x4fa04a],_0x233ce0[_0x5d486c(0x168)](_0x246da6,0x0));},0x0);return _0x51c16f;}static async['calculateTimesFromMultipleFiles'](_0x2b06f1,_0x2a8baa){const _0x1c7335=a75_0x57eb49,_0x1a9a83={'KBouF':function(_0xe566be,_0x2c5c26){return _0xe566be+_0x2c5c26;},'zojDi':function(_0x9e8a9f,_0x1eba9b){return _0x9e8a9f||_0x1eba9b;},'sBeLs':function(_0x3949bc,_0x555a41){return _0x3949bc===_0x555a41;},'IbVxo':function(_0x49272a,_0xd2350f){return _0x49272a(_0xd2350f);},'IdAMa':function(_0x33f1b0,_0x128bb7){return _0x33f1b0(_0x128bb7);}};if(!_0x2b06f1||_0x1a9a83[_0x1c7335(0x112)](_0x2b06f1['length'],0x0))return 0x0;const _0x2aa7e3=[];for(const _0xdae256 of _0x2b06f1){const _0x5014a9=path[_0x1c7335(0x147)]('.',_0xdae256);try{const _0x4857f3=this[_0x1c7335(0x14b)](_0x5014a9);_0x4857f3[_0x1c7335(0x12a)](_0x2b92e9=>{const _0x5b7440=_0x1c7335;!_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]&&(_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]=0x0),_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]+=_0x2b92e9[_0x5b7440(0x16b)];});}catch(_0x542b98){_0x1a9a83[_0x1c7335(0x164)](debug,_0x1c7335(0x11f)+_0x542b98[_0x1c7335(0x15f)]());}}const _0x4e6cd0=_0x2a8baa[_0x1c7335(0x157)]((_0x280354,_0x6df158)=>{const _0x284f74=_0x1c7335;return _0x1a9a83[_0x284f74(0x162)](_0x2aa7e3[_0x6df158],_0x1a9a83['zojDi'](_0x280354,0x0));},0x0);return _0x1a9a83['IdAMa'](debug,_0x1c7335(0x156)+_0x2a8baa+_0x1c7335(0x11e)+_0x4e6cd0),_0x4e6cd0;}static['getEventsFromJSON'](_0x3ac2a3){const _0x1cadb0=a75_0x57eb49;if(!fs[_0x1cadb0(0x137)](_0x3ac2a3))return[];return JSON[_0x1cadb0(0x161)](fs[_0x1cadb0(0x143)](_0x3ac2a3)['toString']());}static async[a75_0x57eb49(0x128)](_0x3f0a25=a75_0x57eb49(0x119),_0x93f5a7=null){const _0x3af701=a75_0x57eb49,_0x2b1806={'vMMlx':function(_0x3479b8,_0x6927f0){return _0x3479b8(_0x6927f0);},'isFvc':function(_0x3c3d38,_0x528662){return _0x3c3d38(_0x528662);}};if(!this[_0x3af701(0x130)])return;await _0x2b1806['vMMlx'](sleep,0x1e),this[_0x3af701(0x139)][_0x3af701(0x138)](),this['started']=![],this[_0x3af701(0x122)](this[_0x3af701(0x174)]);const _0x157c13=this[_0x3af701(0x169)](this[_0x3af701(0x174)]),_0x1e6f8a=path[_0x3af701(0x147)](process['cwd'](),_0x3f0a25);fs[_0x3af701(0x124)](_0x1e6f8a,_0x157c13,_0xd36813=>{const _0x5b5406=_0x3af701;if(_0xd36813){_0x2b1806[_0x5b5406(0x135)](debug,_0x5b5406(0x12d)+_0xd36813[_0x5b5406(0x15f)]());return;}_0x2b1806[_0x5b5406(0x132)](debug,_0x5b5406(0x179)+_0x1e6f8a);});if(_0x93f5a7)return this[_0x3af701(0x125)](this[_0x3af701(0x174)],_0x93f5a7);}static[a75_0x57eb49(0x169)](_0x8b3a4e){const _0x15ad9b=a75_0x57eb49,_0xbdbac9={};_0xbdbac9['KhrWc']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xbdbac9['SAHKy']=_0x15ad9b(0x17c),_0xbdbac9[_0x15ad9b(0x154)]=_0x15ad9b(0x131),_0xbdbac9['sCVfI']=_0x15ad9b(0x12e);const _0x1fe1ec=_0xbdbac9;let _0x35768d=_0x1fe1ec['KhrWc'];return _0x35768d+=_0x1fe1ec['SAHKy'],_0x35768d+=_0x1fe1ec[_0x15ad9b(0x154)],_0x8b3a4e[_0x15ad9b(0x15b)](_0x5835b9=>{const _0x14bac7=_0x15ad9b;_0x35768d+=_0x14bac7(0x17f)+_0x5835b9[_0x14bac7(0x153)]+_0x14bac7(0x115)+_0x5835b9[_0x14bac7(0x16b)]+_0x14bac7(0x172);}),_0x35768d+=_0x1fe1ec[_0x15ad9b(0x121)],_0x35768d;}static[a75_0x57eb49(0x122)](_0x453d92){const _0x248c1e=a75_0x57eb49;if(!this['jsonReportFileName'])return;const _0x13e251={};_0x453d92['map'](_0x3a46b2=>{const _0xa027c=a75_0x2083;!_0x13e251[_0x3a46b2[_0xa027c(0x153)]]&&(_0x13e251[_0x3a46b2[_0xa027c(0x153)]]=0x0),_0x13e251[_0x3a46b2[_0xa027c(0x153)]]+=_0x3a46b2[_0xa027c(0x16b)];});const _0x51d1c7=Object[_0x248c1e(0x110)](_0x13e251)[_0x248c1e(0x12a)](([_0x2f26f0,_0x435dd7])=>{const _0x48833e={};return _0x48833e['name']=_0x2f26f0,_0x48833e['duration']=_0x435dd7,_0x48833e;});fs[_0x248c1e(0x129)](this[_0x248c1e(0x167)],JSON[_0x248c1e(0x120)](_0x51d1c7));}static[a75_0x57eb49(0x177)](){const _0x5f28a5=a75_0x57eb49,_0x2f72e6={};_0x2f72e6[_0x5f28a5(0x13d)]=function(_0x1506f1,_0x519dc3){return _0x1506f1===_0x519dc3;},_0x2f72e6['BUQqW']=_0x5f28a5(0x166);const _0x4588b2=_0x2f72e6;return!_0x4588b2[_0x5f28a5(0x13d)](process[_0x5f28a5(0x165)][_0x5f28a5(0x13e)],_0x4588b2[_0x5f28a5(0x146)]);}static[a75_0x57eb49(0x17a)](_0x4e5639,_0x123e4f,_0xfa9e1d=null,_0x1bd9c4=null){const _0x726c9a=a75_0x57eb49,_0x21d489={};_0x21d489['XrXKL']=function(_0x238be7,_0x3418e1){return _0x238be7+_0x3418e1;},_0x21d489[_0x726c9a(0x16e)]=_0x726c9a(0x15d),_0x21d489['sIzBx']=_0x726c9a(0x155),_0x21d489[_0x726c9a(0x114)]=function(_0x205428,_0x5430e8){return _0x205428 instanceof _0x5430e8;};const _0x26158a=_0x21d489;try{if(this[_0x726c9a(0x130)]&&this[_0x726c9a(0x177)]()){let _0xde1142=_0x4e5639;_0xfa9e1d&&(_0xde1142=_0x4e5639+'['+JSON[_0x726c9a(0x120)](_0xfa9e1d)+']');const _0x8db141=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a['NKjCw']),_0x13c6a3=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a[_0x726c9a(0x148)]);performance[_0x726c9a(0x144)](_0x8db141);const _0x28c8aa=_0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);if(_0x26158a[_0x726c9a(0x114)](_0x28c8aa,Promise))return new Promise((_0x598093,_0x170ba3)=>{const _0x40b7f7=_0x726c9a;_0x28c8aa[_0x40b7f7(0x15e)](_0x4ef7a7=>_0x598093(_0x4ef7a7))['catch'](_0x43bfcf=>_0x170ba3(_0x43bfcf))[_0x40b7f7(0x149)](()=>{const _0x2bac97=_0x40b7f7;performance[_0x2bac97(0x144)](_0x13c6a3),performance[_0x2bac97(0x17a)](_0xde1142,_0x8db141,_0x13c6a3);});});;return performance[_0x726c9a(0x144)](_0x13c6a3),performance[_0x726c9a(0x17a)](_0xde1142,_0x8db141,_0x13c6a3),_0x28c8aa;};return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}catch(_0x1442c9){return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}}static['measureWrapper'](_0x1b7e9,_0x190949){const _0x33b56a=this;return function(){const _0x558d93=a75_0x2083,_0x594618=[_0x1b7e9,_0x190949,null][_0x558d93(0x17e)](arguments);return _0x33b56a[_0x558d93(0x17a)][_0x558d93(0x13c)](_0x33b56a,_0x594618);};}static['getCleanedPerfEvents'](){const _0x2800db=a75_0x57eb49,_0x247dbb={};_0x247dbb[_0x2800db(0x14d)]=function(_0x3ae73f,_0x3a443d){return _0x3ae73f/_0x3a443d;},_0x247dbb[_0x2800db(0x133)]=function(_0x1d81db,_0x28242e){return _0x1d81db+_0x28242e;},_0x247dbb[_0x2800db(0x173)]=function(_0x88d752,_0x54a7a7){return _0x88d752*_0x54a7a7;};const _0x14753f=_0x247dbb,_0x53ce37=/(^.*)\[(.*)\]$/,_0x231c1d={},_0x42b144={};for(const _0x123d48 of this['_measureEvents']){const _0x6eb4fa=_0x123d48[_0x2800db(0x153)]['match'](_0x53ce37),_0x11b6ac={};_0x11b6ac[_0x2800db(0x153)]=_0x123d48['name'],_0x11b6ac[_0x2800db(0x16b)]=_0x123d48[_0x2800db(0x16b)]||0x0;const _0x3b8365=_0x11b6ac;_0x6eb4fa&&(_0x3b8365[_0x2800db(0x153)]=_0x6eb4fa[0x1],_0x3b8365[_0x2800db(0x14e)]=JSON['parse'](_0x6eb4fa[0x2]));if(_0x231c1d[_0x3b8365[_0x2800db(0x153)]]){const _0x1f12b7=_0x231c1d[_0x3b8365[_0x2800db(0x153)]],_0x1f956b=_0x42b144[_0x3b8365['name']];_0x231c1d[_0x3b8365[_0x2800db(0x153)]][_0x2800db(0x16b)]=_0x14753f['LDikj'](_0x14753f[_0x2800db(0x133)](_0x14753f[_0x2800db(0x173)](_0x1f12b7[_0x2800db(0x16b)],_0x1f956b),_0x3b8365[_0x2800db(0x16b)]),_0x14753f[_0x2800db(0x133)](0x1,_0x1f956b)),_0x42b144[_0x3b8365[_0x2800db(0x153)]]++;}else _0x231c1d[_0x3b8365['name']]=_0x3b8365,_0x42b144[_0x3b8365['name']]=0x1;}return Object['values'](_0x231c1d);}static[a75_0x57eb49(0x141)](){const _0x56e94f=a75_0x57eb49,_0x3e0386={};_0x3e0386[_0x56e94f(0x181)]=function(_0x494562,_0x25db83){return _0x494562===_0x25db83;},_0x3e0386[_0x56e94f(0x136)]=function(_0x3413f4,_0x4800e6){return _0x3413f4+_0x4800e6;};const _0x27f167=_0x3e0386;if(_0x27f167[_0x56e94f(0x181)](this[_0x56e94f(0x116)][_0x56e94f(0x134)],0x0))return;const _0x1a598b=this[_0x56e94f(0x10c)](),_0x6d676f=JSON[_0x56e94f(0x120)](_0x1a598b),_0x4c99db=_0x27f167[_0x56e94f(0x136)](_0x6d676f[_0x56e94f(0x16f)](0x1,-0x1),',');fs[_0x56e94f(0x11c)](this['jsonReportFileName'],_0x4c99db);}static['finalizePerfMeasures'](){const _0x539e84=a75_0x57eb49,_0x57047e={};_0x57047e[_0x539e84(0x171)]=function(_0x260daf,_0x351396){return _0x260daf===_0x351396;},_0x57047e[_0x539e84(0x159)]=function(_0x3ec350,_0x663371){return _0x3ec350>_0x663371;};const _0x35f8d6=_0x57047e;if(!this[_0x539e84(0x130)]||_0x35f8d6[_0x539e84(0x171)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0))return[];if(!fs[_0x539e84(0x137)](this[_0x539e84(0x167)]))return this[_0x539e84(0x116)];let _0x2dd435=fs[_0x539e84(0x143)](this[_0x539e84(0x167)])['toString']();_0x2dd435='['+_0x2dd435[_0x539e84(0x16f)](0x0,-0x1)+']';let _0x521df1=JSON[_0x539e84(0x161)](_0x2dd435);return _0x35f8d6[_0x539e84(0x159)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0)&&(_0x521df1=_0x521df1[_0x539e84(0x17e)](this[_0x539e84(0x10c)]())),this['_observer'][_0x539e84(0x138)](),fs['unlinkSync'](this['jsonReportFileName']),_0x521df1;}static[a75_0x57eb49(0x113)](){const _0x37ddf2=a75_0x57eb49,_0x1e30b8={};_0x1e30b8['oHmwq']=function(_0x238e01,_0x474acf){return _0x238e01===_0x474acf;},_0x1e30b8['AWzlc']=function(_0xb477a1,_0xdb722b){return _0xb477a1+_0xdb722b;};const _0x388d9b=_0x1e30b8;if(_0x388d9b[_0x37ddf2(0x175)](this[_0x37ddf2(0x11b)][_0x37ddf2(0x134)],0x0))return;const _0x318fbc=JSON['stringify'](this[_0x37ddf2(0x11b)]),_0x3cbeb5=_0x388d9b['AWzlc'](_0x318fbc[_0x37ddf2(0x16f)](0x1,-0x1),',');fs[_0x37ddf2(0x11c)](this['errorFile'],_0x3cbeb5);}static[a75_0x57eb49(0x12c)](){const _0x5fefa5=a75_0x57eb49,_0x1d6112={};_0x1d6112[_0x5fefa5(0x15a)]=function(_0x3e1aed,_0x370f04){return _0x3e1aed>_0x370f04;};const _0xdd065d=_0x1d6112;if(!fs[_0x5fefa5(0x137)](this['errorReportFileName']))return this[_0x5fefa5(0x11b)];let _0xf5b394=fs['readFileSync'](this[_0x5fefa5(0x13f)])[_0x5fefa5(0x15f)]();_0xf5b394='['+_0xf5b394[_0x5fefa5(0x16f)](0x0,-0x1)+']';let _0x1ac905=JSON[_0x5fefa5(0x161)](_0xf5b394);return _0xdd065d[_0x5fefa5(0x15a)](this[_0x5fefa5(0x11b)]['length'],0x0)&&(_0x1ac905=_0x1ac905['concat'](this[_0x5fefa5(0x11b)])),fs[_0x5fefa5(0x11a)](this[_0x5fefa5(0x13f)]),_0x1ac905;}static[a75_0x57eb49(0x126)](_0x1043f4){const _0x24fa89=a75_0x57eb49;if(!this[_0x24fa89(0x177)]())return;this['_errorEvents'][_0x24fa89(0x13b)]({'message':_0x1043f4[_0x24fa89(0x152)],'trace':_0x1043f4[_0x24fa89(0x12b)],'code':_0x1043f4[_0x24fa89(0x14c)]||null,'time':new Date()});}static[a75_0x57eb49(0x145)](){const _0x2bbf0b=a75_0x57eb49,_0xd79753={};_0xd79753['lBRdb']=_0x2bbf0b(0x151);const _0x3bd9eb=_0xd79753;try{if(!this[_0x2bbf0b(0x177)]())return;this['_observer'][_0x2bbf0b(0x138)](),this[_0x2bbf0b(0x141)](),this[_0x2bbf0b(0x113)]();}catch{logger['debug'](_0x3bd9eb[_0x2bbf0b(0x10d)]);}}static[a75_0x57eb49(0x163)](){const _0x597e96=a75_0x57eb49,_0x50f648=this['finalizePerfMeasures'](),_0x5e0ddd=this[_0x597e96(0x12c)]();if(!this['isEnabled']()){const _0x505757={};return _0x505757[_0x597e96(0x10f)]=[],_0x505757[_0x597e96(0x17d)]=[],_0x505757;}const _0x2fcddf={};return _0x2fcddf['measures']=_0x50f648,_0x2fcddf[_0x597e96(0x17d)]=_0x5e0ddd,_0x2fcddf;}}function a75_0x4bc7(){const _0x55f684=['buffered','push','apply','UAMhr','BROWSERSTACK_SDK_INSTRUMENTATION','errorReportFileName','9096850OXpeQa','pushPerfMeasures','./logger','readFileSync','mark','stopMonitoring','BUQqW','join','sIzBx','finally','lViyD','getEventsFromJSON','code','LDikj','meta','performance-report.json','getEntries','Error\x20stopping\x20monitoring','message','name','mTMDD','-end','Time\x20for\x20','reduce','winstonLogger','kaDTa','Ggjur','forEach','XrXKL','-start','then','toString','4820679FHGoNv','parse','KBouF','finalize','IbVxo','env','false','jsonReportFileName','EOKIp','generateHTMLReport','path','duration','4860606bzesWN','entryTypes','NKjCw','slice','6265350UWyvpJ','zRrGx','</td></tr>','EYyjH','_events','oHmwq','perf_hooks','isEnabled','2665076siSlPV','Performance\x20report\x20is\x20at\x20','measure','pYGgl','<h1>Performance\x20Report</h1>','errors','concat','<tr><td>','startMonitoring','tzIuc','error-report.json','getCleanedPerfEvents','lBRdb','62531OBDiYn','measures','entries','exports','sBeLs','pushErrors','XKSBC','</td><td>','_measureEvents','QxpiQ','XWuwL','performance-own.html','unlinkSync','_errorEvents','appendFileSync','14LooxON','\x20for\x20all\x20processes\x20is\x20','Error\x20in\x20doing\x20csv\x20operations:\x20','stringify','sCVfI','generateJSON','getPerformance','writeFile','calculateTimeFromEvents','captureError','2722456cnMdYD','stopAndGenerate','writeFileSync','map','stack','finalizeErrors','Error\x20in\x20writing\x20html\x20','</tbody></table></body></html>','observe','started','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','isFvc','mRaPm','length','vMMlx','xYfKz','existsSync','disconnect','_observer'];a75_0x4bc7=function(){return _0x55f684;};return a75_0x4bc7();}module[a75_0x57eb49(0x111)]=PerformanceTester;
|
|
1
|
+
const a75_0x1f9941=a75_0x210a;(function(_0x1163c1,_0x1f460f){const _0x4f606b=a75_0x210a,_0x37dd63=_0x1163c1();while(!![]){try{const _0x583a6a=parseInt(_0x4f606b(0x13e))/0x1+parseInt(_0x4f606b(0x150))/0x2+parseInt(_0x4f606b(0x12c))/0x3*(parseInt(_0x4f606b(0x113))/0x4)+-parseInt(_0x4f606b(0x105))/0x5*(-parseInt(_0x4f606b(0xea))/0x6)+-parseInt(_0x4f606b(0xe1))/0x7+-parseInt(_0x4f606b(0x125))/0x8+parseInt(_0x4f606b(0xf3))/0x9*(-parseInt(_0x4f606b(0x134))/0xa);if(_0x583a6a===_0x1f460f)break;else _0x37dd63['push'](_0x37dd63['shift']());}catch(_0x4b672d){_0x37dd63['push'](_0x37dd63['shift']());}}}(a75_0x38a8,0xe12bd));function a75_0x38a8(){const _0x47f040=['TCDFd','started','PdQGW','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','entryType','339399uKdPue','measure','stopMonitoring','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','existsSync','catch','winstonLogger','finalizeErrors','./logger','</tbody></table></body></html>','PzGTP','iekQA','WmBSF','Error\x20stopping\x20monitoring','match','slice','fXSfH','errorReportFileName','84595cTvspd','duration','pushErrors','meta','pushPerfMeasures','mark','getCleanedPerfEvents','startMonitoring','JmJfx','finalize','calculateTimeFromEvents','toString','zAvQR','writeFileSync','772QcVGEC','ymbcx','performance-report.json','false','zZCRC','map','generateJSON','eRDPR','generateHTMLReport','BROWSERSTACK_SDK_INSTRUMENTATION','exports','finalizePerfMeasures','stringify','wRhBY','FBikS','entries','./test-observability/utils','\x20for\x20all\x20processes\x20is\x20','4896312fYSrxE','<tr><td>','mpzpo','stopAndGenerate','RweEh','disconnect','KvYcu','14127OivNEE','Error\x20in\x20doing\x20csv\x20operations:\x20','ysRKe','push','cwd','Time\x20for\x20','measureWrapper','vZiKd','540BjsvbP','then','jsonReportFileName','teUuq','readFileSync','stack','measures','message','NiUMg','errorFile','234894fMCuoJ','PNZlA','forEach','_errorEvents','Performance\x20report\x20is\x20at\x20','<h1>Performance\x20Report</h1>','concat','apply','</td><td>','name','ezNWM','parse','errors','function','GWzmv','isEnabled','join','yQhJj','3576392mEIXYA','sXEXR','qkoXW','length','lZLxp','unlinkSync','getEventsFromJSON','jfFnl','7963816tlDIBL','ztOZK','cGRBo','</td></tr>','PQESH','_measureEvents','BIWcB','RPjYR','_observer','630jDDBYe','error-report.json','debug','appendFileSync'];a75_0x38a8=function(){return _0x47f040;};return a75_0x38a8();}function a75_0x210a(_0x224558,_0x14edf3){const _0x38a89f=a75_0x38a8();return a75_0x210a=function(_0x210aec,_0x32b0a5){_0x210aec=_0x210aec-0xdd;let _0x2eecbc=_0x38a89f[_0x210aec];return _0x2eecbc;},a75_0x210a(_0x224558,_0x14edf3);}const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a75_0x1f9941(0x123)),path=require('path'),logger=require(a75_0x1f9941(0xfb))[a75_0x1f9941(0xf9)];class PerformanceTester{static [a75_0x1f9941(0xe9)];static ['_events']=[];static ['_measureEvents']=[];static [a75_0x1f9941(0x141)]=[];static ['started']=![];static ['jsonReportFileName']='performance-report.json';static [a75_0x1f9941(0x104)]=a75_0x1f9941(0xeb);static[a75_0x1f9941(0x10c)](_0x32cd8d=a75_0x1f9941(0x115),_0x2677ae=a75_0x1f9941(0xeb)){const _0x299556=a75_0x1f9941,_0x434999={};_0x434999[_0x299556(0x127)]=function(_0x29e050,_0xa3c8a8){return _0x29e050===_0xa3c8a8;},_0x434999[_0x299556(0xf0)]=_0x299556(0xf4),_0x434999[_0x299556(0x111)]=_0x299556(0x14b);const _0x55f99c=_0x434999;if(this[_0x299556(0xef)]||!this[_0x299556(0x14d)]())return;this[_0x299556(0xe9)]=new PerformanceObserver(_0x309222=>{const _0x3c72d4=_0x299556,_0x73d24={'ysRKe':function(_0x312aac,_0x35a917){const _0x151abc=a75_0x210a;return _0x55f99c[_0x151abc(0x127)](_0x312aac,_0x35a917);},'JmJfx':_0x55f99c['PdQGW']};_0x309222['getEntries']()[_0x3c72d4(0x140)](_0x4abfed=>{const _0x33da84=_0x3c72d4;_0x73d24[_0x33da84(0x12e)](_0x4abfed[_0x33da84(0xf2)],_0x73d24[_0x33da84(0x10d)])?this[_0x33da84(0xe6)]['push'](_0x4abfed):this['_events'][_0x33da84(0x12f)](_0x4abfed);});});const _0x32a84f={};_0x32a84f['buffered']=!![],_0x32a84f['entryTypes']=[_0x55f99c[_0x299556(0x111)],_0x55f99c[_0x299556(0xf0)]],this[_0x299556(0xe9)]['observe'](_0x32a84f),this[_0x299556(0xef)]=!![],this[_0x299556(0x136)]=_0x32cd8d,this['errorReportFileName']=_0x2677ae;}static['getPerformance'](){return performance;}static[a75_0x1f9941(0x10f)](_0x6394a4,_0x474e0a){const _0x215e54=a75_0x1f9941,_0x1ea31d={};_0x1ea31d[_0x215e54(0x152)]=function(_0x1b1086,_0x2b3f49){return _0x1b1086+_0x2b3f49;},_0x1ea31d['zZCRC']=function(_0x51b0de,_0x47352e){return _0x51b0de||_0x47352e;},_0x1ea31d[_0x215e54(0x14c)]=function(_0x32e62f,_0x125973){return _0x32e62f===_0x125973;};const _0x14ea29=_0x1ea31d,_0x43e9b0={};if(!_0x6394a4||_0x14ea29['GWzmv'](_0x6394a4[_0x215e54(0x153)],0x0))return;_0x6394a4[_0x215e54(0x118)](_0x7f3991=>{const _0x4ffa90=_0x215e54;!_0x43e9b0[_0x7f3991['name']]&&(_0x43e9b0[_0x7f3991[_0x4ffa90(0x147)]]=0x0),_0x43e9b0[_0x7f3991[_0x4ffa90(0x147)]]+=_0x7f3991['duration'];});const _0x3378cd=_0x474e0a['reduce']((_0x3ff57c,_0x52e756)=>{const _0x5272d0=_0x215e54;return _0x14ea29[_0x5272d0(0x152)](_0x43e9b0[_0x52e756],_0x14ea29[_0x5272d0(0x117)](_0x3ff57c,0x0));},0x0);return _0x3378cd;}static async['calculateTimesFromMultipleFiles'](_0x412693,_0x3f490b){const _0x87abce=a75_0x1f9941,_0x5c40d6={'PQESH':function(_0x377719,_0x14dad9){return _0x377719+_0x14dad9;},'UYWRW':function(_0x5b03b7,_0x978f4b){return _0x5b03b7||_0x978f4b;},'KvYcu':function(_0x24e68a,_0x409426){return _0x24e68a===_0x409426;},'xBrgQ':function(_0x1f8e35,_0x1ffc24){return _0x1f8e35(_0x1ffc24);},'MSesp':function(_0x104ae1,_0x30b35f){return _0x104ae1(_0x30b35f);}};if(!_0x412693||_0x5c40d6[_0x87abce(0x12b)](_0x412693[_0x87abce(0x153)],0x0))return 0x0;const _0x51908b=[];for(const _0x58ca71 of _0x412693){const _0x3004e4=path[_0x87abce(0x14e)]('.',_0x58ca71);try{const _0x52c2a0=this[_0x87abce(0xdf)](_0x3004e4);_0x52c2a0[_0x87abce(0x118)](_0x29cbe8=>{const _0x572679=_0x87abce;!_0x51908b[_0x29cbe8[_0x572679(0x147)]]&&(_0x51908b[_0x29cbe8[_0x572679(0x147)]]=0x0),_0x51908b[_0x29cbe8[_0x572679(0x147)]]+=_0x29cbe8['duration'];});}catch(_0x33511d){_0x5c40d6['xBrgQ'](debug,_0x87abce(0x12d)+_0x33511d[_0x87abce(0x110)]());}}const _0x5c52c9=_0x3f490b['reduce']((_0x14bd84,_0x583f35)=>{const _0x53db27=_0x87abce;return _0x5c40d6[_0x53db27(0xe5)](_0x51908b[_0x583f35],_0x5c40d6['UYWRW'](_0x14bd84,0x0));},0x0);return _0x5c40d6['MSesp'](debug,_0x87abce(0x131)+_0x3f490b+_0x87abce(0x124)+_0x5c52c9),_0x5c52c9;}static[a75_0x1f9941(0xdf)](_0xade53){const _0x26c5e=a75_0x1f9941;if(!fs[_0x26c5e(0xf7)](_0xade53))return[];return JSON[_0x26c5e(0x149)](fs[_0x26c5e(0x138)](_0xade53)[_0x26c5e(0x110)]());}static async[a75_0x1f9941(0x128)](_0x1143af='performance-own.html',_0x342785=null){const _0x42130b=a75_0x1f9941,_0x3987b8={'LOXhC':function(_0x177219,_0x247a79){return _0x177219(_0x247a79);},'DDIct':function(_0x53b960,_0x2feb79){return _0x53b960(_0x2feb79);},'TCDFd':function(_0x131b5a,_0x56e8dd){return _0x131b5a(_0x56e8dd);}};if(!this[_0x42130b(0xef)])return;await _0x3987b8[_0x42130b(0xee)](sleep,0x1e),this[_0x42130b(0xe9)][_0x42130b(0x12a)](),this[_0x42130b(0xef)]=![],this[_0x42130b(0x119)](this['_events']);const _0x178882=this[_0x42130b(0x11b)](this['_events']),_0x2d756a=path[_0x42130b(0x14e)](process[_0x42130b(0x130)](),_0x1143af);fs['writeFile'](_0x2d756a,_0x178882,_0x48ad84=>{const _0x411520=_0x42130b;if(_0x48ad84){_0x3987b8['LOXhC'](debug,'Error\x20in\x20writing\x20html\x20'+_0x48ad84[_0x411520(0x110)]());return;}_0x3987b8['DDIct'](debug,_0x411520(0x142)+_0x2d756a);});if(_0x342785)return this[_0x42130b(0x10f)](this['_events'],_0x342785);}static[a75_0x1f9941(0x11b)](_0x5023d3){const _0x50eedf=a75_0x1f9941,_0x2d0fcc={};_0x2d0fcc['teUuq']=_0x50eedf(0xf6),_0x2d0fcc[_0x50eedf(0xe3)]=_0x50eedf(0x143),_0x2d0fcc[_0x50eedf(0x114)]=_0x50eedf(0xf1),_0x2d0fcc[_0x50eedf(0x148)]=_0x50eedf(0xfc);const _0x3c4ca0=_0x2d0fcc;let _0x385e27=_0x3c4ca0[_0x50eedf(0x137)];return _0x385e27+=_0x3c4ca0[_0x50eedf(0xe3)],_0x385e27+=_0x3c4ca0[_0x50eedf(0x114)],_0x5023d3[_0x50eedf(0x140)](_0x2643d7=>{const _0xe5578=_0x50eedf;_0x385e27+=_0xe5578(0x126)+_0x2643d7[_0xe5578(0x147)]+_0xe5578(0x146)+_0x2643d7[_0xe5578(0x106)]+_0xe5578(0xe4);}),_0x385e27+=_0x3c4ca0[_0x50eedf(0x148)],_0x385e27;}static[a75_0x1f9941(0x119)](_0x378849){const _0xbf6713=a75_0x1f9941;if(!this[_0xbf6713(0x136)])return;const _0x3046b5={};_0x378849[_0xbf6713(0x118)](_0x2e491d=>{const _0x5567f1=_0xbf6713;!_0x3046b5[_0x2e491d[_0x5567f1(0x147)]]&&(_0x3046b5[_0x2e491d['name']]=0x0),_0x3046b5[_0x2e491d[_0x5567f1(0x147)]]+=_0x2e491d[_0x5567f1(0x106)];});const _0xeb053c=Object[_0xbf6713(0x122)](_0x3046b5)[_0xbf6713(0x118)](([_0x146118,_0x3c8e52])=>{const _0x47c893=_0xbf6713,_0x3b877e={};return _0x3b877e[_0x47c893(0x147)]=_0x146118,_0x3b877e[_0x47c893(0x106)]=_0x3c8e52,_0x3b877e;});fs[_0xbf6713(0x112)](this[_0xbf6713(0x136)],JSON[_0xbf6713(0x11f)](_0xeb053c));}static[a75_0x1f9941(0x14d)](){const _0x1e6d65=a75_0x1f9941,_0x27c18a={};_0x27c18a[_0x1e6d65(0x13c)]=function(_0x1f0ba1,_0x207c88){return _0x1f0ba1===_0x207c88;},_0x27c18a['RweEh']=_0x1e6d65(0x116);const _0x393904=_0x27c18a;return!_0x393904[_0x1e6d65(0x13c)](process['env'][_0x1e6d65(0x11c)],_0x393904[_0x1e6d65(0x129)]);}static[a75_0x1f9941(0xf4)](_0x4a39c6,_0x101393,_0x585c99=null,_0x2cde15=null){const _0x415a94=a75_0x1f9941,_0x5ddcb6={};_0x5ddcb6[_0x415a94(0xe0)]=function(_0x4e7a1f,_0x5c39cc){return _0x4e7a1f+_0x5c39cc;},_0x5ddcb6[_0x415a94(0x151)]='-start',_0x5ddcb6[_0x415a94(0x14f)]=function(_0x21da2f,_0x968b4a){return _0x21da2f+_0x968b4a;},_0x5ddcb6['eRDPR']='-end',_0x5ddcb6[_0x415a94(0xfd)]=function(_0x479787,_0x42acd3){return _0x479787 instanceof _0x42acd3;};const _0x4e4601=_0x5ddcb6;try{if(this['started']&&this[_0x415a94(0x14d)]()){let _0x48bc5a=_0x4a39c6;_0x585c99&&(_0x48bc5a=_0x4a39c6+'['+JSON[_0x415a94(0x11f)](_0x585c99)+']');const _0x117d84=_0x4e4601[_0x415a94(0xe0)](_0x48bc5a,_0x4e4601[_0x415a94(0x151)]),_0x1936a3=_0x4e4601[_0x415a94(0x14f)](_0x48bc5a,_0x4e4601[_0x415a94(0x11a)]);performance['mark'](_0x117d84);const _0x1df3b2=_0x101393[_0x415a94(0x145)](null,_0x2cde15);if(_0x4e4601[_0x415a94(0xfd)](_0x1df3b2,Promise))return new Promise((_0x3fc2a5,_0x5df9f4)=>{const _0x451286=_0x415a94;_0x1df3b2[_0x451286(0x135)](_0x41afae=>_0x3fc2a5(_0x41afae))[_0x451286(0xf8)](_0x4a7855=>_0x5df9f4(_0x4a7855))['finally'](()=>{const _0x2b7295=_0x451286;performance[_0x2b7295(0x10a)](_0x1936a3),performance[_0x2b7295(0xf4)](_0x48bc5a,_0x117d84,_0x1936a3);});});;return performance['mark'](_0x1936a3),performance[_0x415a94(0xf4)](_0x48bc5a,_0x117d84,_0x1936a3),_0x1df3b2;};return _0x101393[_0x415a94(0x145)](null,_0x2cde15);}catch(_0x2d1301){return _0x101393['apply'](null,_0x2cde15);}}static[a75_0x1f9941(0x132)](_0x4c050a,_0x54e861){const _0x26f18b=this;return function(){const _0x108aec=a75_0x210a,_0x49792d=[_0x4c050a,_0x54e861,null][_0x108aec(0x144)](arguments);return _0x26f18b[_0x108aec(0xf4)][_0x108aec(0x145)](_0x26f18b,_0x49792d);};}static[a75_0x1f9941(0x10b)](){const _0x38aa4a=a75_0x1f9941,_0x4c048a={};_0x4c048a[_0x38aa4a(0x133)]=function(_0x1a30ef,_0x5c37d1){return _0x1a30ef/_0x5c37d1;},_0x4c048a[_0x38aa4a(0x103)]=function(_0x15756c,_0x5034f6){return _0x15756c+_0x5034f6;},_0x4c048a[_0x38aa4a(0x13f)]=function(_0x30f71b,_0x4c7b54){return _0x30f71b*_0x4c7b54;};const _0x439807=_0x4c048a,_0x44764f=/(^.*)\[(.*)\]$/,_0x24c6aa={},_0x465543={};for(const _0x121b4a of this[_0x38aa4a(0xe6)]){const _0x1fb23d=_0x121b4a['name'][_0x38aa4a(0x101)](_0x44764f),_0x4e90ca={};_0x4e90ca[_0x38aa4a(0x147)]=_0x121b4a[_0x38aa4a(0x147)],_0x4e90ca[_0x38aa4a(0x106)]=_0x121b4a[_0x38aa4a(0x106)]||0x0;const _0x4ae22d=_0x4e90ca;_0x1fb23d&&(_0x4ae22d[_0x38aa4a(0x147)]=_0x1fb23d[0x1],_0x4ae22d[_0x38aa4a(0x108)]=JSON[_0x38aa4a(0x149)](_0x1fb23d[0x2]));if(_0x24c6aa[_0x4ae22d['name']]){const _0x13ab3b=_0x24c6aa[_0x4ae22d[_0x38aa4a(0x147)]],_0x25b424=_0x465543[_0x4ae22d['name']];_0x24c6aa[_0x4ae22d['name']]['duration']=_0x439807[_0x38aa4a(0x133)](_0x439807['fXSfH'](_0x439807['PNZlA'](_0x13ab3b[_0x38aa4a(0x106)],_0x25b424),_0x4ae22d[_0x38aa4a(0x106)]),_0x439807[_0x38aa4a(0x103)](0x1,_0x25b424)),_0x465543[_0x4ae22d[_0x38aa4a(0x147)]]++;}else _0x24c6aa[_0x4ae22d[_0x38aa4a(0x147)]]=_0x4ae22d,_0x465543[_0x4ae22d[_0x38aa4a(0x147)]]=0x1;}return Object['values'](_0x24c6aa);}static['pushPerfMeasures'](){const _0x3ca019=a75_0x1f9941,_0x486b64={};_0x486b64[_0x3ca019(0xff)]=function(_0x1ab98d,_0x59945e){return _0x1ab98d===_0x59945e;},_0x486b64[_0x3ca019(0xe8)]=function(_0x37b732,_0x3de0a2){return _0x37b732+_0x3de0a2;};const _0x342fc1=_0x486b64;if(_0x342fc1[_0x3ca019(0xff)](this[_0x3ca019(0xe6)]['length'],0x0))return;const _0x500c4c=this[_0x3ca019(0x10b)](),_0x3f3b12=JSON['stringify'](_0x500c4c),_0x14be43=_0x342fc1[_0x3ca019(0xe8)](_0x3f3b12[_0x3ca019(0x102)](0x1,-0x1),',');fs[_0x3ca019(0xed)](this['jsonReportFileName'],_0x14be43);}static[a75_0x1f9941(0x11e)](){const _0x122e37=a75_0x1f9941,_0x37b4f0={};_0x37b4f0[_0x122e37(0x120)]=function(_0x349aca,_0x3195da){return _0x349aca===_0x3195da;},_0x37b4f0[_0x122e37(0xe7)]=function(_0xfbcabd,_0x3b76d7){return _0xfbcabd>_0x3b76d7;};const _0x19e669=_0x37b4f0;if(!this[_0x122e37(0xef)]||_0x19e669[_0x122e37(0x120)](this[_0x122e37(0xe6)][_0x122e37(0x153)],0x0))return[];if(!fs[_0x122e37(0xf7)](this['jsonReportFileName']))return this['_measureEvents'];let _0xf6949e=fs[_0x122e37(0x138)](this[_0x122e37(0x136)])[_0x122e37(0x110)]();_0xf6949e='['+_0xf6949e[_0x122e37(0x102)](0x0,-0x1)+']';let _0x3512f8=JSON[_0x122e37(0x149)](_0xf6949e);return _0x19e669[_0x122e37(0xe7)](this['_measureEvents'][_0x122e37(0x153)],0x0)&&(_0x3512f8=_0x3512f8[_0x122e37(0x144)](this[_0x122e37(0x10b)]())),this[_0x122e37(0xe9)][_0x122e37(0x12a)](),fs['unlinkSync'](this[_0x122e37(0x136)]),_0x3512f8;}static[a75_0x1f9941(0x107)](){const _0x2de82b=a75_0x1f9941,_0x5c86ca={};_0x5c86ca[_0x2de82b(0xfe)]=function(_0x3615a1,_0x19883d){return _0x3615a1===_0x19883d;},_0x5c86ca[_0x2de82b(0x121)]=function(_0x5c47b2,_0x2f4c9b){return _0x5c47b2+_0x2f4c9b;};const _0x332868=_0x5c86ca;if(_0x332868[_0x2de82b(0xfe)](this[_0x2de82b(0x141)][_0x2de82b(0x153)],0x0))return;const _0x3bca20=JSON[_0x2de82b(0x11f)](this[_0x2de82b(0x141)]),_0x1a5391=_0x332868[_0x2de82b(0x121)](_0x3bca20[_0x2de82b(0x102)](0x1,-0x1),',');fs[_0x2de82b(0xed)](this[_0x2de82b(0x13d)],_0x1a5391);}static['finalizeErrors'](){const _0x24f2f6=a75_0x1f9941,_0x222bad={};_0x222bad['ztOZK']=function(_0x15ac97,_0x50f783){return _0x15ac97>_0x50f783;};const _0x3a975c=_0x222bad;if(!fs[_0x24f2f6(0xf7)](this[_0x24f2f6(0x104)]))return this[_0x24f2f6(0x141)];let _0x32e773=fs[_0x24f2f6(0x138)](this[_0x24f2f6(0x104)])[_0x24f2f6(0x110)]();_0x32e773='['+_0x32e773['slice'](0x0,-0x1)+']';let _0x41fe2d=JSON[_0x24f2f6(0x149)](_0x32e773);return _0x3a975c[_0x24f2f6(0xe2)](this[_0x24f2f6(0x141)][_0x24f2f6(0x153)],0x0)&&(_0x41fe2d=_0x41fe2d[_0x24f2f6(0x144)](this[_0x24f2f6(0x141)])),fs[_0x24f2f6(0xde)](this[_0x24f2f6(0x104)]),_0x41fe2d;}static['captureError'](_0x389275){const _0x2f8c4e=a75_0x1f9941;if(!this[_0x2f8c4e(0x14d)]())return;this[_0x2f8c4e(0x141)][_0x2f8c4e(0x12f)]({'message':_0x389275[_0x2f8c4e(0x13b)],'trace':_0x389275[_0x2f8c4e(0x139)],'code':_0x389275['code']||null,'time':new Date()});}static[a75_0x1f9941(0xf5)](){const _0x1e0625=a75_0x1f9941,_0x5295ee={};_0x5295ee[_0x1e0625(0xdd)]=_0x1e0625(0x100);const _0x9f397c=_0x5295ee;try{if(!this[_0x1e0625(0x14d)]())return;this[_0x1e0625(0xe9)][_0x1e0625(0x12a)](),this[_0x1e0625(0x109)](),this[_0x1e0625(0x107)]();}catch{logger[_0x1e0625(0xec)](_0x9f397c[_0x1e0625(0xdd)]);}}static[a75_0x1f9941(0x10e)](){const _0x12eeab=a75_0x1f9941,_0x17adc4=this[_0x12eeab(0x11e)](),_0x1166f7=this[_0x12eeab(0xfa)]();if(!this[_0x12eeab(0x14d)]()){const _0x4267d8={};return _0x4267d8[_0x12eeab(0x13a)]=[],_0x4267d8[_0x12eeab(0x14a)]=[],_0x4267d8;}const _0x542cb4={};return _0x542cb4['measures']=_0x17adc4,_0x542cb4['errors']=_0x1166f7,_0x542cb4;}}module[a75_0x1f9941(0x11d)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a76_0xa090(){const _0x18a3ea=['error','spy','WNRiK','monkeypatch','path','OpGhL','9FDWOFj','pMdMp','method','NZveH','45397RPgAUz','16233kjQwnt','TqzTd','duration_ms','now','7IJWkGb','332466LjmMgA','hostname','removeListener','9040pdNKKJ','xtRNS','6920260bmDFll','86myngTE','headers','sUIBq','status_code','unpatch','end','8934032wBkvvo','response','https','277284Cacumr','65800ISUjrj','request','once'];a76_0xa090=function(){return _0x18a3ea;};return a76_0xa090();}const a76_0x35725d=a76_0x4d6d;(function(_0x3f7603,_0x2693ba){const _0x8a5956=a76_0x4d6d,_0x2b29f1=_0x3f7603();while(!![]){try{const _0x6cc59a=-parseInt(_0x8a5956(0x200))/0x1*(parseInt(_0x8a5956(0x20b))/0x2)+parseInt(_0x8a5956(0x1f1))/0x3+parseInt(_0x8a5956(0x1f2))/0x4+-parseInt(_0x8a5956(0x20a))/0x5+parseInt(_0x8a5956(0x205))/0x6*(parseInt(_0x8a5956(0x204))/0x7)+parseInt(_0x8a5956(0x1ee))/0x8*(-parseInt(_0x8a5956(0x1fb))/0x9)+parseInt(_0x8a5956(0x208))/0xa*(parseInt(_0x8a5956(0x1ff))/0xb);if(_0x6cc59a===_0x2693ba)break;else _0x2b29f1['push'](_0x2b29f1['shift']());}catch(_0x19f198){_0x2b29f1['push'](_0x2b29f1['shift']());}}}(a76_0xa090,0xa9fd0));const http=require('http'),https=require(a76_0x35725d(0x1f0)),monkeypatch=require(a76_0x35725d(0x1f8));function spy(_0x10aaf1){const _0x1399ac=a76_0x35725d,_0x26565e={'pMdMp':function(_0x37aa5e,_0x1b9a14,_0x2c9526){return _0x37aa5e(_0x1b9a14,_0x2c9526);},'xtRNS':function(_0x22d376,_0x13f3f7){return _0x22d376-_0x13f3f7;},'TqzTd':_0x1399ac(0x1f5),'ATHgL':function(_0x37ec53,..._0x3cfa45){return _0x37ec53(..._0x3cfa45);},'sUIBq':_0x1399ac(0x1ef),'NZveH':'socket','OpGhL':function(_0x250777,_0x362f08,_0x1d3683,_0x25146c){return _0x250777(_0x362f08,_0x1d3683,_0x25146c);},'hmNeB':_0x1399ac(0x1ed),'dBmEO':function(_0x592960,_0x44a777,_0x385f78,_0x5bcc86){return _0x592960(_0x44a777,_0x385f78,_0x5bcc86);},'WNRiK':_0x1399ac(0x1f3),'Cmszl':function(_0x16409d,_0x42f77c,_0x320882,_0x4b7f28){return _0x16409d(_0x42f77c,_0x320882,_0x4b7f28);}},_0x8f2920=(_0x14a799,_0x1002df,_0x2c9b02)=>{const _0x2b1d45=_0x1399ac,_0x4d914d=_0x26565e[_0x2b1d45(0x1fc)](_0x14a799,_0x1002df,_0x2c9b02);let _0x22cd15=Date[_0x2b1d45(0x203)](),_0x3c1f25;const _0x1d8ac3=_0x5fa72=>{const _0x175846=_0x2b1d45,_0x67d960={};_0x67d960['host']=_0x1002df['host']||_0x1002df['hostname'],_0x67d960[_0x175846(0x1f9)]=_0x1002df[_0x175846(0x1f9)],_0x67d960[_0x175846(0x1fd)]=_0x1002df['method'],_0x67d960[_0x175846(0x20c)]=_0x1002df['headers'],_0x26565e['pMdMp'](_0x10aaf1,_0x5fa72,_0x67d960);};return _0x4d914d[_0x2b1d45(0x1f4)](_0x26565e[_0x2b1d45(0x20d)],_0x1d6743=>{const _0x5b2a14=_0x2b1d45,_0x2c06d6=_0x26565e[_0x5b2a14(0x209)](Date['now'](),_0x22cd15),_0x153d2a={};_0x153d2a[_0x5b2a14(0x206)]=_0x1002df['host']||_0x1002df[_0x5b2a14(0x206)],_0x153d2a[_0x5b2a14(0x1f9)]=_0x1002df[_0x5b2a14(0x1f9)],_0x153d2a[_0x5b2a14(0x1fd)]=_0x1002df[_0x5b2a14(0x1fd)],_0x153d2a[_0x5b2a14(0x20c)]=_0x1002df[_0x5b2a14(0x20c)],_0x153d2a[_0x5b2a14(0x1eb)]=_0x1d6743['statusCode'],_0x153d2a[_0x5b2a14(0x202)]=_0x2c06d6,_0x26565e[_0x5b2a14(0x1fc)](_0x10aaf1,null,_0x153d2a),_0x3c1f25[_0x5b2a14(0x207)](_0x26565e[_0x5b2a14(0x201)],_0x1d8ac3);}),_0x4d914d['on'](_0x26565e[_0x2b1d45(0x1fe)],_0x22f038=>{const _0x41771e=_0x2b1d45;_0x3c1f25=_0x22f038,_0x22f038['once'](_0x26565e[_0x41771e(0x201)],_0x1d8ac3);}),_0x26565e[_0x2b1d45(0x1fa)](monkeypatch,_0x4d914d,_0x26565e['hmNeB'],(_0x88f401,..._0x544f07)=>{const _0x3a871d=_0x2b1d45;_0x22cd15=Date[_0x3a871d(0x203)](),_0x26565e['ATHgL'](_0x88f401,..._0x544f07);}),_0x4d914d;};_0x26565e['dBmEO'](monkeypatch,http,_0x26565e[_0x1399ac(0x1f7)],_0x8f2920),_0x26565e['Cmszl'](monkeypatch,https,_0x26565e[_0x1399ac(0x1f7)],_0x8f2920);}function restore(){const _0x1be441=a76_0x35725d;http['request'][_0x1be441(0x1ec)](),https['request'][_0x1be441(0x1ec)]();}const a76_0x275f7b={};function a76_0x4d6d(_0x594253,_0x3a81f2){const _0xa09045=a76_0xa090();return a76_0x4d6d=function(_0x4d6d24,_0x778e5b){_0x4d6d24=_0x4d6d24-0x1eb;let _0x53f332=_0xa09045[_0x4d6d24];return _0x53f332;},a76_0x4d6d(_0x594253,_0x3a81f2);}a76_0x275f7b[a76_0x35725d(0x1f6)]=spy,a76_0x275f7b['restore']=restore,module['exports']=a76_0x275f7b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x2775(_0x1426d0,_0x686312){const _0x12e834=a77_0x12e8();return a77_0x2775=function(_0x2775db,_0x145a37){_0x2775db=_0x2775db-0xe3;let _0x572191=_0x12e834[_0x2775db];return _0x572191;},a77_0x2775(_0x1426d0,_0x686312);}const a77_0x447686=a77_0x2775;function a77_0x12e8(){const _0x442f53=['keepAliveMsecs','hasOwnProperty','HwqxL','1HVoJDs','Agent','https','globalAgent','3939sFdYPb','3464yzbRlL','request','protocol','https:','2349260ARbToD','NLqap','412tIHFOU','yUSyE','luLZr','1798008IDxkLb','28892dlsbGb','13995PQmcpM','prototype','hPTtt','keepAlive','ALCYt','4591370mqGJnH','gekEG','http','inQkl','6586780kVtQVL','call','Shyne','exports'];a77_0x12e8=function(){return _0x442f53;};return a77_0x12e8();}(function(_0x517307,_0x2f4f22){const _0x1e07b7=a77_0x2775,_0x474258=_0x517307();while(!![]){try{const _0x1fa486=parseInt(_0x1e07b7(0xe9))/0x1*(-parseInt(_0x1e07b7(0xf8))/0x2)+parseInt(_0x1e07b7(0xed))/0x3*(-parseInt(_0x1e07b7(0xf4))/0x4)+-parseInt(_0x1e07b7(0xf2))/0x5+parseInt(_0x1e07b7(0xf7))/0x6+-parseInt(_0x1e07b7(0xfe))/0x7+parseInt(_0x1e07b7(0xee))/0x8*(parseInt(_0x1e07b7(0xf9))/0x9)+parseInt(_0x1e07b7(0x102))/0xa;if(_0x1fa486===_0x2f4f22)break;else _0x474258['push'](_0x474258['shift']());}catch(_0x42eb13){_0x474258['push'](_0x474258['shift']());}}}(a77_0x12e8,0x56f76),module[a77_0x447686(0xe5)]=function(){const _0x1722b3=a77_0x447686,_0x4382ee={'hPTtt':function(_0x591ea5,_0x88d9c8){return _0x591ea5===_0x88d9c8;},'Shyne':_0x1722b3(0xf1),'yUSyE':'agent','ALCYt':function(_0x379aed,_0x59d680,_0x3d28a7){return _0x379aed(_0x59d680,_0x3d28a7);},'HwqxL':function(_0x1dcaf0,_0x33d463){return _0x1dcaf0(_0x33d463);},'RqvUN':_0x1722b3(0x100),'luLZr':function(_0x3da413,_0x4652ff){return _0x3da413(_0x4652ff);},'inQkl':_0x1722b3(0xeb),'gekEG':function(_0x335b8a,_0x2c8f92){return _0x335b8a*_0x2c8f92;},'NLqap':_0x1722b3(0xfc)},_0x7d22b3=_0x4382ee[_0x1722b3(0xe8)](require,_0x4382ee['RqvUN']),_0x450cdb=_0x4382ee[_0x1722b3(0xf6)](require,_0x4382ee[_0x1722b3(0x101)]),_0x5bcc89=_0x4382ee[_0x1722b3(0xff)](0x1e,0x3e8);if(_0x7d22b3[_0x1722b3(0xec)]&&Object[_0x1722b3(0xfa)][_0x1722b3(0xe7)][_0x1722b3(0xe3)](_0x7d22b3[_0x1722b3(0xec)],_0x4382ee[_0x1722b3(0xf3)]))_0x7d22b3['globalAgent'][_0x1722b3(0xfc)]=!![],_0x450cdb[_0x1722b3(0xec)][_0x1722b3(0xfc)]=!![],_0x7d22b3['globalAgent'][_0x1722b3(0xe6)]=_0x5bcc89,_0x450cdb[_0x1722b3(0xec)][_0x1722b3(0xe6)]=_0x5bcc89;else{const _0x37c9cd={};_0x37c9cd[_0x1722b3(0xfc)]=!![],_0x37c9cd['keepAliveMsecs']=_0x5bcc89;const _0x1eebba=new _0x7d22b3[(_0x1722b3(0xea))](_0x37c9cd),_0x2b3649={};_0x2b3649[_0x1722b3(0xfc)]=!![],_0x2b3649[_0x1722b3(0xe6)]=_0x5bcc89;const _0x155252=new _0x450cdb[(_0x1722b3(0xea))](_0x2b3649),_0x585fd5=_0x7d22b3[_0x1722b3(0xef)],_0x333ce4=_0x450cdb[_0x1722b3(0xef)];_0x7d22b3[_0x1722b3(0xef)]=function(_0x58e175,_0x41e439){const _0x3aed0e=_0x1722b3;if(_0x4382ee[_0x3aed0e(0xfb)](_0x58e175[_0x3aed0e(0xf0)],_0x4382ee[_0x3aed0e(0xe4)]))return _0x58e175[_0x4382ee[_0x3aed0e(0xf5)]]=_0x155252,_0x4382ee[_0x3aed0e(0xfd)](_0x333ce4,_0x58e175,_0x41e439);return _0x58e175[_0x4382ee[_0x3aed0e(0xf5)]]=_0x1eebba,_0x4382ee['ALCYt'](_0x585fd5,_0x58e175,_0x41e439);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a78_0x1a89(){var _0x3541cc=['MOCHA','jest','api/v1/batch','20rzCemy','4081656jgBMys','assign','1535608nvJnGd','CUCUMBER','.obs_test_details','api/v1/screenshots','10POgEux','49vDSnAH','Playwright','48623976slFnxt','api/v1/event','11xcQGRC','29382RARTTT','5691444bLmcWj','https://collector-observability.browserstack.com','exports','mocha','1906804nWkMmI','1638441OvOaui','codeceptjs','PLAYWRIGHT','41KlFpAN'];a78_0x1a89=function(){return _0x3541cc;};return a78_0x1a89();}function a78_0x3501(_0x6f96e2,_0x2504e7){var _0x1a89e6=a78_0x1a89();return a78_0x3501=function(_0x3501fc,_0x1b463f){_0x3501fc=_0x3501fc-0x68;var _0x3a17d2=_0x1a89e6[_0x3501fc];return _0x3a17d2;},a78_0x3501(_0x6f96e2,_0x2504e7);}var a78_0x404221=a78_0x3501;(function(_0x165fb7,_0x34ad0){var _0x20ebb6=a78_0x3501,_0x594c39=_0x165fb7();while(!![]){try{var _0x1ea672=parseInt(_0x20ebb6(0x6e))/0x1*(parseInt(_0x20ebb6(0x7f))/0x2)+parseInt(_0x20ebb6(0x73))/0x3+-parseInt(_0x20ebb6(0x6a))/0x4*(-parseInt(_0x20ebb6(0x79))/0x5)+parseInt(_0x20ebb6(0x80))/0x6+-parseInt(_0x20ebb6(0x7a))/0x7*(-parseInt(_0x20ebb6(0x75))/0x8)+parseInt(_0x20ebb6(0x6b))/0x9*(-parseInt(_0x20ebb6(0x72))/0xa)+parseInt(_0x20ebb6(0x7e))/0xb*(-parseInt(_0x20ebb6(0x7c))/0xc);if(_0x1ea672===_0x34ad0)break;else _0x594c39['push'](_0x594c39['shift']());}catch(_0x1855e0){_0x594c39['push'](_0x594c39['shift']());}}}(a78_0x1a89,0xc1764));var a78_0x4c3e54={};a78_0x4c3e54[a78_0x404221(0x6d)]=a78_0x404221(0x7b),a78_0x4c3e54[a78_0x404221(0x6f)]=a78_0x404221(0x69),a78_0x4c3e54['CODECEPT']=a78_0x404221(0x6c),a78_0x4c3e54['JEST']=a78_0x404221(0x70),a78_0x4c3e54[a78_0x404221(0x76)]='cucumber',module[a78_0x404221(0x68)]={'consoleHolder':Object[a78_0x404221(0x74)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a78_0x404221(0x81),'EVENT_ENDPOINT':a78_0x404221(0x7d),'BATCH_ENDPOINT':a78_0x404221(0x71),'SCREENSHOT_ENDPOINT':a78_0x404221(0x78),'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':a78_0x404221(0x77),'FRAMEWORKS':a78_0x4c3e54};
|