browserstack-node-sdk 1.32.10 → 1.32.12
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/CFTemplates/aws-eks-cluster-dep.yaml +6 -1
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/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 a61_0x2b43bf=a61_0x5643;(function(_0x43d04c,_0x148fbd){const _0x34dd4a=a61_0x5643,_0x454f04=_0x43d04c();while(!![]){try{const _0x11b9a2=parseInt(_0x34dd4a(0x201))/0x1*(parseInt(_0x34dd4a(0x203))/0x2)+parseInt(_0x34dd4a(0x20a))/0x3*(-parseInt(_0x34dd4a(0x1fe))/0x4)+-parseInt(_0x34dd4a(0x209))/0x5*(parseInt(_0x34dd4a(0x1fd))/0x6)+-parseInt(_0x34dd4a(0x1e9))/0x7*(parseInt(_0x34dd4a(0x1f4))/0x8)+parseInt(_0x34dd4a(0x205))/0x9*(parseInt(_0x34dd4a(0x1ff))/0xa)+parseInt(_0x34dd4a(0x1e7))/0xb+parseInt(_0x34dd4a(0x1fa))/0xc;if(_0x11b9a2===_0x148fbd)break;else _0x454f04['push'](_0x454f04['shift']());}catch(_0x276051){_0x454f04['push'](_0x454f04['shift']());}}}(a61_0x38bb,0x7a736));const winston=require(a61_0x2b43bf(0x1ee)),os=require('os'),fs=require('fs'),path=require('path'),logDir=a61_0x2b43bf(0x1f7);!fs[a61_0x2b43bf(0x204)](logDir)&&fs['mkdirSync'](logDir);const a61_0x2991c5={};a61_0x2991c5[a61_0x2b43bf(0x1fc)]=a61_0x2b43bf(0x1ec);const transports={'loggerConsole':new winston[(a61_0x2b43bf(0x202))][(a61_0x2b43bf(0x20d))](a61_0x2991c5),'loggerFile':new winston[(a61_0x2b43bf(0x202))][(a61_0x2b43bf(0x1f1))]({'filename':path[a61_0x2b43bf(0x1fb)](logDir,a61_0x2b43bf(0x20e))}),'debugLoggerFile':new winston['transports'][(a61_0x2b43bf(0x1f1))]({'filename':path[a61_0x2b43bf(0x1fb)](os[a61_0x2b43bf(0x206)](),a61_0x2b43bf(0x1ef)),'level':a61_0x2b43bf(0x1eb)})},a61_0x4bf083={};function a61_0x5643(_0x3788d2,_0x1cd75c){const _0x38bb04=a61_0x38bb();return a61_0x5643=function(_0x5643aa,_0x34a972){_0x5643aa=_0x5643aa-0x1e7;let _0xf40ca4=_0x38bb04[_0x5643aa];return _0xf40ca4;},a61_0x5643(_0x3788d2,_0x1cd75c);}a61_0x4bf083['format']=a61_0x2b43bf(0x207);const a61_0x473d9e={};a61_0x473d9e[a61_0x2b43bf(0x1e8)]=!![];const winstonLoggerParams={'format':winston[a61_0x2b43bf(0x1f8)][a61_0x2b43bf(0x1f9)](winston['format'][a61_0x2b43bf(0x1f5)](a61_0x4bf083),winston[a61_0x2b43bf(0x1f8)][a61_0x2b43bf(0x1f2)](a61_0x473d9e),winston['format'][a61_0x2b43bf(0x200)](_0x57a38f=>_0x57a38f[a61_0x2b43bf(0x1f5)]+a61_0x2b43bf(0x208)+_0x57a38f['level']+':\x20'+_0x57a38f[a61_0x2b43bf(0x1f6)])),'transports':[transports['loggerConsole'],transports[a61_0x2b43bf(0x1f0)],transports[a61_0x2b43bf(0x1ed)]]},a61_0x440949={};a61_0x440949[a61_0x2b43bf(0x202)]=[transports[a61_0x2b43bf(0x1f0)]];function a61_0x38bb(){const _0xa41e01=['name','3013974DRSURZ','19588TfYVCo','844140RJdxqV','printf','432527TnivnY','transports','2lPzJOk','existsSync','63yaotDE','tmpdir','YYYY-MM-DD\x20HH:mm:ss','\x20-\x20','5bUujOl','435gonhcF','winstonLogger','createLogger','Console','/usage.log','10444599oakVoy','level','343yExTvl','fileLogger','debug','console.info','debugLoggerFile','winston','/usage-debug.log','loggerFile','File','colorize','logDir','85000EiiwUG','timestamp','message','log','format','combine','3139716KpjnkX','join'];a61_0x38bb=function(){return _0xa41e01;};return a61_0x38bb();}const winstonFileLoggerParams=a61_0x440949;exports[a61_0x2b43bf(0x20b)]=new winston[(a61_0x2b43bf(0x20c))](winstonLoggerParams),exports[a61_0x2b43bf(0x1ea)]=new winston[(a61_0x2b43bf(0x20c))](winstonFileLoggerParams),exports[a61_0x2b43bf(0x1f3)]=logDir,exports[a61_0x2b43bf(0x202)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a62_0x4037(_0x91671c,_0x3f3f8f){var _0x44bd56=a62_0x44bd();return a62_0x4037=function(_0x4037bc,_0x1404e2){_0x4037bc=_0x4037bc-0x157;var _0x3f9a6c=_0x44bd56[_0x4037bc];return _0x3f9a6c;},a62_0x4037(_0x91671c,_0x3f3f8f);}var a62_0x2050e0=a62_0x4037;function a62_0x44bd(){var _0x4c1101=['19562ixdGCy','156haHuHw','1790qelPSE','then','quit','jbXMc','BS_TESTOPS_ALLOW_SCREENSHOTS','yZshp','initScreenshot','175CAVVwW','4864485eTSrLk','lsQrF','split','0|3|1|2|4','1532244hVHPEe','dvagC','16044993kJNefM','eXPTI','TEST_SCREENSHOT','quitCount_','patchQuit','whRrq','7660NwHNxR','AyMkp','initQuit','276nLtvTS','4noAXRW','16445bHVfiP','VSnjb','67096IEzhwR','GPDiR','78MbnWWP','uOPsv','toISOString','overrideQuit','pid','takeScreenshot'];a62_0x44bd=function(){return _0x4c1101;};return a62_0x44bd();}(function(_0x78cd92,_0x1b1fd1){var _0x5476f7=a62_0x4037,_0x50a97a=_0x78cd92();while(!![]){try{var _0xfb9f41=parseInt(_0x5476f7(0x176))/0x1*(parseInt(_0x5476f7(0x177))/0x2)+-parseInt(_0x5476f7(0x15b))/0x3*(parseInt(_0x5476f7(0x16b))/0x4)+parseInt(_0x5476f7(0x167))/0x5*(parseInt(_0x5476f7(0x16a))/0x6)+parseInt(_0x5476f7(0x15a))/0x7*(parseInt(_0x5476f7(0x16e))/0x8)+parseInt(_0x5476f7(0x161))/0x9+parseInt(_0x5476f7(0x178))/0xa*(-parseInt(_0x5476f7(0x16c))/0xb)+parseInt(_0x5476f7(0x15f))/0xc*(-parseInt(_0x5476f7(0x170))/0xd);if(_0xfb9f41===_0x1b1fd1)break;else _0x50a97a['push'](_0x50a97a['shift']());}catch(_0x303ff8){_0x50a97a['push'](_0x50a97a['shift']());}}}(a62_0x44bd,0xe3ea2),exports['overrideTakeScreenshot']=_0x379a63=>{var _0x3e846a=a62_0x4037,_0x274870={'dvagC':'2|3|1|5|4|0','whRrq':_0x3e846a(0x163),'GPDiR':function(_0x255fd7,_0x296f25){return _0x255fd7(_0x296f25);},'DTcZe':function(_0x31f799,_0x526a09){return _0x31f799!==_0x526a09;},'jbXMc':'true'},_0x22d55e=_0x274870[_0x3e846a(0x160)][_0x3e846a(0x15d)]('|'),_0x48d826=0x0;while(!![]){switch(_0x22d55e[_0x48d826++]){case'0':_0x379a63['takeScreenshot']=()=>{var _0x4b5f3c={'StvET':_0x233186['vbgJe'],'yZshp':function(_0x32fe6a,_0x418f60){var _0x4322b4=a62_0x4037;return _0x233186[_0x4322b4(0x15c)](_0x32fe6a,_0x418f60);}};return new Promise(function(_0x41cf2d,_0x53bf0c){var _0x3efaa3=a62_0x4037;_0x379a63[_0x3efaa3(0x159)]()[_0x3efaa3(0x179)](_0x429ad2=>{var _0x3171c9=_0x3efaa3;process['emit']('bs:addLog:'+process[_0x3171c9(0x174)],{'timestamp':new Date()[_0x3171c9(0x172)](),'message':_0x429ad2,'kind':_0x4b5f3c['StvET']}),_0x4b5f3c[_0x3171c9(0x158)](_0x41cf2d,_0x429ad2);});});};continue;case'1':if(_0x379a63['patchScreenshot'])return;continue;case'2':var _0x233186={'vbgJe':_0x274870[_0x3e846a(0x166)],'lsQrF':function(_0x2bd2e4,_0x37c1cf){var _0x4fd0a8=_0x3e846a;return _0x274870[_0x4fd0a8(0x16f)](_0x2bd2e4,_0x37c1cf);}};continue;case'3':if(_0x274870['DTcZe'](process['env'][_0x3e846a(0x157)],_0x274870[_0x3e846a(0x17b)]))return;continue;case'4':_0x379a63[_0x3e846a(0x159)]=_0x379a63[_0x3e846a(0x175)];continue;case'5':_0x379a63['patchScreenshot']=!![];continue;}break;}},exports[a62_0x2050e0(0x173)]=(_0x5a392a,_0x35692b=null)=>{var _0x4e640a=a62_0x2050e0,_0x1875b3={'DrFoI':_0x4e640a(0x15e),'sxwpV':function(_0x155d8b){return _0x155d8b();},'uOPsv':function(_0x2731b0,_0x4880de){return _0x2731b0>_0x4880de;}},_0x25c888=_0x1875b3['DrFoI'][_0x4e640a(0x15d)]('|'),_0x2fe5b9=0x0;while(!![]){switch(_0x25c888[_0x2fe5b9++]){case'0':var _0x5f1909={'VSnjb':function(_0x3039e3){return _0x1875b3['sxwpV'](_0x3039e3);},'AyMkp':function(_0xf42193,_0x24ff3b){var _0xce35e3=_0x4e640a;return _0x1875b3[_0xce35e3(0x171)](_0xf42193,_0x24ff3b);},'eXPTI':function(_0x5b52d9,_0x510397){var _0x1344e3=_0x4e640a;return _0x1875b3[_0x1344e3(0x171)](_0x5b52d9,_0x510397);}};continue;case'1':_0x5a392a['patchQuit']=!![];continue;case'2':_0x5a392a['initQuit']=_0x5a392a['quit'];continue;case'3':if(_0x5a392a[_0x4e640a(0x165)])return;continue;case'4':_0x5a392a[_0x4e640a(0x17a)]=()=>{var _0x32bcc1=_0x4e640a;if(_0x35692b){_0x35692b[_0x32bcc1(0x164)]+=0x1;if(_0x5f1909[_0x32bcc1(0x168)](_0x35692b[_0x32bcc1(0x164)],0x1))return _0x5a392a[_0x32bcc1(0x169)]();}else{_0x5a392a[_0x32bcc1(0x164)]+=0x1;if(_0x5f1909[_0x32bcc1(0x162)](_0x5a392a[_0x32bcc1(0x164)],0x1))return _0x5a392a[_0x32bcc1(0x169)]();}return new Promise(function(_0x5e2a94){var _0x21e99c=_0x32bcc1;_0x5f1909[_0x21e99c(0x16d)](_0x5e2a94);});};continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a63_0x23c6(_0x31e600,_0x1b70a8){const _0x13b713=a63_0x13b7();return a63_0x23c6=function(_0x23c6a8,_0x5f27d2){_0x23c6a8=_0x23c6a8-0xe7;let _0x56dc58=_0x13b713[_0x23c6a8];return _0x56dc58;},a63_0x23c6(_0x31e600,_0x1b70a8);}const a63_0x265462=a63_0x23c6;function a63_0x13b7(){const _0x29956b=['PERCY_SERVER_ADDRESS','lUPbY','QpfHR','891747lAOfFs','automate','&type=','join','env',':start','85966gXUuvi','percy.log','awSAw','195435nzzZRc','2517995tXZsqX','app:exec','tGoHZ','7nkoVQN','JDVDY','app','exec:stop','stdout','start','winstonLogger','path','QzWGF','IfqNV','createPercyConfig','fetchPercyToken','error','nodeRequest','exports','BRnvj','3102978CXjniu','nVZBj','projectName','data','percyOptions','krCTA','GET','pipe','KLbnM','../logger','RxFIo','kYjLK','token','hTAZb','assign','10TuyHGb','percy.json','api/app_percy/get_project_token?name=','child_process','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','version','TUgpJ','Error\x20creating\x20percy\x20config:\x20','push','stderr','stringify','close','Percy\x20fetch\x20token\x20success','5091713JrUgXG','isProcessRunning','naoIn','percy/healthcheck','Percy\x20healthcheck\x20successful','healthcheck','ZRYox','ZOqYP','8RNnmQb','hkUlv','exec','688407HGhCHo','yOcmO','isRunning','8FlSXVn'];a63_0x13b7=function(){return _0x29956b;};return a63_0x13b7();}(function(_0x40a3fa,_0xef3eef){const _0x4dc21a=a63_0x23c6,_0x12aa23=_0x40a3fa();while(!![]){try{const _0x1e4e66=parseInt(_0x4dc21a(0x125))/0x1+parseInt(_0x4dc21a(0x122))/0x2+parseInt(_0x4dc21a(0x115))/0x3*(parseInt(_0x4dc21a(0x118))/0x4)+parseInt(_0x4dc21a(0x126))/0x5+parseInt(_0x4dc21a(0xee))/0x6*(-parseInt(_0x4dc21a(0x129))/0x7)+parseInt(_0x4dc21a(0x112))/0x8*(parseInt(_0x4dc21a(0x11c))/0x9)+parseInt(_0x4dc21a(0xfd))/0xa*(-parseInt(_0x4dc21a(0x10a))/0xb);if(_0x1e4e66===_0xef3eef)break;else _0x12aa23['push'](_0x12aa23['shift']());}catch(_0x47d1bc){_0x12aa23['push'](_0x12aa23['shift']());}}}(a63_0x13b7,0x4e1f8));const fs=require('fs'),path=require(a63_0x265462(0x130)),os=require('os'),{spawn}=require(a63_0x265462(0x100)),helper=require('../helper'),logger=require(a63_0x265462(0xf7))[a63_0x265462(0x12f)],{logDir}=require(a63_0x265462(0xf7)),PercyBinary=require('./PercyBinary');class Percy{#logfile=path[a63_0x265462(0x11f)](logDir,a63_0x265462(0x123));#address=process[a63_0x265462(0x120)][a63_0x265462(0x119)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a63_0x265462(0x10b)]=![];constructor(_0x2e2bb6){const _0x46e8b2=a63_0x265462;this.#config=_0x2e2bb6,!!_0x2e2bb6[_0x46e8b2(0x12b)]&&(this.#isApp=!![]);}async #getBinaryPath(){if(!this.#binaryPath){const _0x171bee=new PercyBinary();this.#binaryPath=await _0x171bee['getBinaryPath'](this.#config);}return this.#binaryPath;}async #sleep(_0x4be38a){return new Promise(_0x404894=>setTimeout(_0x404894,_0x4be38a));}async[a63_0x265462(0x10f)](){const _0x4868ab=a63_0x265462,_0x59628d={};_0x59628d[_0x4868ab(0xfb)]=_0x4868ab(0xf4),_0x59628d[_0x4868ab(0xf6)]=_0x4868ab(0x10d);const _0x4a5b85=_0x59628d;try{const _0x38bf67=await helper['nodeRequest'](_0x4a5b85[_0x4868ab(0xfb)],_0x4a5b85[_0x4868ab(0xf6)],null,null,this.#address);if(_0x38bf67)return!![];}catch(_0x1bd4e6){return![];}}async[a63_0x265462(0x12e)](){const _0xfc5b7=a63_0x265462,_0x1d127b={'nVZBj':_0xfc5b7(0x127),'lUPbY':_0xfc5b7(0x114),'hkUlv':function(_0x17f260,_0x134dc1,_0x2467c8,_0x22143e){return _0x17f260(_0x134dc1,_0x2467c8,_0x22143e);},'GkPaX':_0xfc5b7(0x108),'ChvKA':_0xfc5b7(0x10e)},_0x3dabb3=await this.#getBinaryPath(),_0x142cec={};_0x142cec['flags']='a';const _0x3b0c8f=fs['createWriteStream'](this.#logfile,_0x142cec),_0x145f05=await this[_0xfc5b7(0xe9)](),_0x455230=await this[_0xfc5b7(0xe8)]();if(!_0x145f05)return![];const _0x49d4b1=[(this.#isApp?_0x1d127b[_0xfc5b7(0xef)]:_0x1d127b[_0xfc5b7(0x11a)])+_0xfc5b7(0x121)];_0x455230&&_0x49d4b1[_0xfc5b7(0x105)]('-c',_0x455230);const _0x3ac660={};_0x3ac660['PERCY_TOKEN']=_0x145f05,this.#proc=_0x1d127b[_0xfc5b7(0x113)](spawn,_0x3dabb3,_0x49d4b1,{'env':Object[_0xfc5b7(0xfc)](process[_0xfc5b7(0x120)],_0x3ac660)}),this.#proc[_0xfc5b7(0x12d)][_0xfc5b7(0xf5)](_0x3b0c8f),this.#proc[_0xfc5b7(0x106)][_0xfc5b7(0xf5)](_0x3b0c8f),this['isProcessRunning']=!![];var _0x90867e=this;this.#proc['on'](_0x1d127b['GkPaX'],function(_0x3121a3){const _0x5ad2f3=_0xfc5b7;_0x90867e[_0x5ad2f3(0x10b)]=![];});do{const _0x1cad16=await this['healthcheck']();if(_0x1cad16)return logger['debug'](_0x1d127b['ChvKA']),!![];await this.#sleep(0x3e8);}while(this[_0xfc5b7(0x10b)]);return![];}async['stop'](){const _0x257a6e=a63_0x265462,_0x23ae3e={'QzWGF':function(_0x3fc5cc,_0x372f8b){return _0x3fc5cc(_0x372f8b);},'tGoHZ':function(_0x3276ad,_0x1f4c44,_0x304b95){return _0x3276ad(_0x1f4c44,_0x304b95);},'ZOqYP':_0x257a6e(0x12c),'CENYG':_0x257a6e(0x108)},_0x2130e9=await this.#getBinaryPath();return new Promise((_0x572f93,_0x67fa22)=>{const _0x17910a=_0x257a6e,_0x547c68=_0x23ae3e[_0x17910a(0x128)](spawn,_0x2130e9,[_0x23ae3e[_0x17910a(0x111)]]);_0x547c68['on'](_0x23ae3e['CENYG'],_0x5d0ee3=>{const _0x4bbe5f=_0x17910a;this[_0x4bbe5f(0x10b)]=![],_0x23ae3e[_0x4bbe5f(0x131)](_0x572f93,_0x5d0ee3);});});}[a63_0x265462(0x117)](){const _0x4a1634=a63_0x265462;return this[_0x4a1634(0x10b)];}async[a63_0x265462(0xe9)](){const _0x4cef98=a63_0x265462,_0x33737f={};_0x33737f[_0x4cef98(0xed)]=_0x4cef98(0x12b),_0x33737f[_0x4cef98(0xf8)]=_0x4cef98(0x11d),_0x33737f[_0x4cef98(0xe7)]=_0x4cef98(0xf4),_0x33737f[_0x4cef98(0x116)]=_0x4cef98(0x109);const _0x3b4f99=_0x33737f,_0x2e57a4=this.#config[_0x4cef98(0xf0)];try{const _0xe9644=this.#isApp?_0x3b4f99['BRnvj']:_0x3b4f99[_0x4cef98(0xf8)],_0x38c6c0=await helper[_0x4cef98(0xeb)](_0x3b4f99['IfqNV'],_0x4cef98(0xff)+_0x2e57a4+_0x4cef98(0x11e)+_0xe9644,{},this.#config),_0x106ee9=_0x38c6c0[_0x4cef98(0xf1)];return logger['debug'](_0x3b4f99[_0x4cef98(0x116)]),_0x106ee9[_0x4cef98(0xfa)];}catch(_0x2ee1d5){return logger[_0x4cef98(0xea)](_0x4cef98(0x101)+_0x2ee1d5),null;}}async[a63_0x265462(0xe8)](){const _0x4324c2=a63_0x265462,_0x1774da={'awSAw':function(_0x214932,_0x2dce70){return _0x214932(_0x2dce70);},'JDVDY':function(_0x5f2dd6,_0x433769){return _0x5f2dd6+_0x433769;},'TUgpJ':'Percy\x20config\x20created\x20at\x20','QpfHR':function(_0x35d77b,_0x4a2dac){return _0x35d77b(_0x4a2dac);},'naoIn':_0x4324c2(0xfe)};if(!this.#config[_0x4324c2(0xf2)])return null;const _0x3f645d=path[_0x4324c2(0x11f)](os['tmpdir'](),_0x1774da[_0x4324c2(0x10c)]),_0x25c5a0=this.#config['percyOptions'];return!_0x25c5a0[_0x4324c2(0x102)]&&(_0x25c5a0['version']='2'),new Promise((_0x54be2b,_0x4c6430)=>{const _0x3da1c0=_0x4324c2,_0x175f00={'GSbAy':function(_0x4c39f9,_0x4f0520){const _0x542db5=a63_0x23c6;return _0x1774da[_0x542db5(0x124)](_0x4c39f9,_0x4f0520);},'kYjLK':function(_0x266ea0,_0x28bb5f){const _0x370566=a63_0x23c6;return _0x1774da[_0x370566(0x12a)](_0x266ea0,_0x28bb5f);},'ZRYox':_0x1774da[_0x3da1c0(0x103)],'krCTA':function(_0x1e42ae,_0x7786cc){const _0x3e1817=_0x3da1c0;return _0x1774da[_0x3e1817(0x11b)](_0x1e42ae,_0x7786cc);}};fs['writeFile'](_0x3f645d,JSON[_0x3da1c0(0x107)](_0x25c5a0),_0x21cfb4=>{const _0x2000fa=_0x3da1c0;_0x21cfb4&&(logger['error'](_0x2000fa(0x104)+_0x21cfb4),_0x175f00['GSbAy'](_0x54be2b,null)),logger['debug'](_0x175f00[_0x2000fa(0xf9)](_0x175f00[_0x2000fa(0x110)],_0x3f645d)),_0x175f00[_0x2000fa(0xf3)](_0x54be2b,_0x3f645d);});});}}module[a63_0x265462(0xec)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a64_0x4393a6=a64_0x2e70;(function(_0x53707e,_0xa0dabb){const _0x852ec=a64_0x2e70,_0x613a4e=_0x53707e();while(!![]){try{const _0x5f10e9=parseInt(_0x852ec(0x1da))/0x1*(-parseInt(_0x852ec(0x161))/0x2)+-parseInt(_0x852ec(0x162))/0x3+parseInt(_0x852ec(0x1a5))/0x4+-parseInt(_0x852ec(0x1d6))/0x5*(parseInt(_0x852ec(0x1ab))/0x6)+-parseInt(_0x852ec(0x1dc))/0x7*(parseInt(_0x852ec(0x1cf))/0x8)+-parseInt(_0x852ec(0x19d))/0x9*(-parseInt(_0x852ec(0x16e))/0xa)+parseInt(_0x852ec(0x183))/0xb;if(_0x5f10e9===_0xa0dabb)break;else _0x613a4e['push'](_0x613a4e['shift']());}catch(_0x417f19){_0x613a4e['push'](_0x613a4e['shift']());}}}(a64_0x53f4,0xdecfa));const {https}=require(a64_0x4393a6(0x16c)),url=require(a64_0x4393a6(0x1bd)),yauzl=require(a64_0x4393a6(0x190)),fs=require('fs'),path=require(a64_0x4393a6(0x185)),os=require('os'),{spawn}=require(a64_0x4393a6(0x160)),HttpsProxyAgent=require('https-proxy-agent'),logger=require('../logger')[a64_0x4393a6(0x1d5)];function a64_0x53f4(){const _0xc795aa=['AHGEE','jAbJS','LNAME','percy.exe','follow-redirects','xujLJ','50990jFRwfc','VsGoK','JnfyH','oLsyV','readFileSync','pxMLr','eQPVg','YvCMq','xNvuK','AWBEq','ZpkXE','FOZAD','join','tFHmT','AreWX','/home/','WiiEn','PSkpp','aBhtV','ZCPxv','win32','26177910RVwJOv','lWbQN','path','lazyEntries','.zip','undefined','darwin','omZyB','R_OK','percy','error','openReadStream','PcDLq','yauzl','LCVxM','length','MNJkM','ePESo','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','validateBinary','cVloK','proxyHost','HOME','wFWCa','VVkqn','https://github.com/percy/cli/releases/latest/download','882cxIyux','FERCt','kBfdD','gJxOG','AqQOv','port','end','jjeSN','6030032SshHQl','OcnhO','statSync','PNjDR','WiIxo','--version','6EUpoJM','plOio','/percy-win.zip','pipe','/root','QDvaQ','mkdirSync','tKjVR','XdPGa','getBinaryPath','UgDiB','get','vuDjP','GPnnb','SOKDM','BZWfH','jYKBZ','liNvK','url','match','XruMY','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','MhKDZ','download','HOMEDRIVE','OFAPq','createWriteStream','Corrupt\x20percy\x20binary,\x20retrying','ZwkGv','rGsrd','stdout','linux','tmpdir','useCaCertificate','pVuTc','USERPROFILE','56YlNySO','HnzRi','env','open','USERNAME','eagWp','winstonLogger','5982365RHoQDE','agent','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','function','416249WBaydx','cwd','1095269pZWBsw','XtUIS','proxyPort','test','WkBOZ','homedir','Error\x20trying\x20to\x20download\x20percy\x20binary','.browserstack','zLsgq','SWUIC','spSSe','chmod','readEntry','platform','kyKrp','close','getuid','zgaGy','fileName','nAVVj','child_process','2pzNkoi','2299185TBxkjq','entry','KaWcC','MEqLt','rOMQI','USER'];a64_0x53f4=function(){return _0xc795aa;};return a64_0x53f4();}class PercyBinary{#hostOS=process[a64_0x4393a6(0x159)];#httpPath=null;#binaryName=a64_0x4393a6(0x18c);#orderedPaths=[path['join'](this.#homedir(),a64_0x4393a6(0x153)),process[a64_0x4393a6(0x1db)](),os[a64_0x4393a6(0x1cb)]()];constructor(){const _0x2f3206=a64_0x4393a6,_0x23b64f={};_0x23b64f['VVkqn']=_0x2f3206(0x19c),_0x23b64f[_0x2f3206(0x16f)]=function(_0x21e28b,_0x58cc63){return _0x21e28b+_0x58cc63;},_0x23b64f[_0x2f3206(0x1c8)]='/percy-osx.zip',_0x23b64f[_0x2f3206(0x1c7)]=_0x2f3206(0x1ad),_0x23b64f['pxMLr']=_0x2f3206(0x16b),_0x23b64f[_0x2f3206(0x1b5)]=function(_0x4c272c,_0x3cf814){return _0x4c272c+_0x3cf814;},_0x23b64f[_0x2f3206(0x15d)]='/percy-linux.zip';const _0x16b5a7=_0x23b64f,_0x47a60b=_0x16b5a7[_0x2f3206(0x19b)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x16b5a7[_0x2f3206(0x16f)](_0x47a60b,_0x16b5a7[_0x2f3206(0x1c8)]);else this.#hostOS[_0x2f3206(0x1be)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x16b5a7[_0x2f3206(0x16f)](_0x47a60b,_0x16b5a7[_0x2f3206(0x1c7)]),this.#binaryName=_0x16b5a7[_0x2f3206(0x173)]):this.#httpPath=_0x16b5a7[_0x2f3206(0x1b5)](_0x47a60b,_0x16b5a7[_0x2f3206(0x15d)]);}#getAvailableDirs(){const _0x26a783=a64_0x4393a6,_0x3eb368={};_0x3eb368[_0x26a783(0x1ba)]=function(_0x1799f9,_0x1e72a9){return _0x1799f9<_0x1e72a9;},_0x3eb368[_0x26a783(0x168)]=_0x26a783(0x152);const _0x3bdd28=_0x3eb368;for(var _0xaec7b3=0x0;_0x3bdd28[_0x26a783(0x1ba)](_0xaec7b3,this.#orderedPaths[_0x26a783(0x192)]);_0xaec7b3++){var _0x3f387b=this.#orderedPaths[_0xaec7b3];if(this.#makePath(_0x3f387b))return _0x3f387b;}throw new Error(_0x3bdd28['AHGEE']);}#makePath(_0x5c377f){const _0x2a3c69=a64_0x4393a6;try{return!this.#checkPath(_0x5c377f)&&fs[_0x2a3c69(0x1b1)](_0x5c377f),!![];}catch{return![];}}#checkPath(_0xee0af7,_0x47e08e){const _0x4c5b85=a64_0x4393a6,_0x400a0a={};_0x400a0a[_0x4c5b85(0x175)]=function(_0x353da2,_0x5c4a05){return _0x353da2|_0x5c4a05;},_0x400a0a['liNvK']=function(_0x45097f,_0xd5f9c3){return _0x45097f!==_0xd5f9c3;},_0x400a0a[_0x4c5b85(0x156)]=_0x4c5b85(0x188);const _0xc52064=_0x400a0a;_0x47e08e=_0x47e08e||_0xc52064[_0x4c5b85(0x175)](fs[_0x4c5b85(0x18b)],fs['W_OK']);try{return fs['accessSync'](_0xee0af7,_0x47e08e),!![];}catch(_0x215f92){if(_0xc52064[_0x4c5b85(0x1bc)](typeof fs['accessSync'],_0xc52064[_0x4c5b85(0x156)]))return![];try{return fs[_0x4c5b85(0x1a7)](_0xee0af7),!![];}catch(_0x4ffdee){return![];}}}async[a64_0x4393a6(0x1b4)](_0x429695){const _0x20378f=a64_0x4393a6,_0x27af8b={};_0x27af8b[_0x20378f(0x1b7)]=_0x20378f(0x1c6);const _0x5736c7=_0x27af8b;var _0x1d1a86=this.#getAvailableDirs(),_0x27457e=path[_0x20378f(0x17a)](_0x1d1a86,this.#binaryName);if(this.#checkPath(_0x27457e,fs['X_OK']))return _0x27457e;const _0x28b2fb=await this[_0x20378f(0x1c2)](_0x429695,_0x1d1a86),_0x5531cd=await this[_0x20378f(0x196)](_0x28b2fb);if(!_0x5531cd)return logger['error'](_0x5736c7['vuDjP']),await this[_0x20378f(0x1c2)](_0x429695,_0x1d1a86);return _0x28b2fb;}async[a64_0x4393a6(0x196)](_0x1f67e0){const _0x32630b=a64_0x4393a6,_0x103ae5={'yMNzy':function(_0x44aa15,_0x24790f){return _0x44aa15(_0x24790f);},'AqQOv':function(_0x388917,_0x5c0cd0){return _0x388917(_0x5c0cd0);},'LCVxM':function(_0x332430,_0x588583,_0x45000f){return _0x332430(_0x588583,_0x45000f);},'ePESo':_0x32630b(0x1aa),'dsytl':'data','eLQhy':'close'},_0x31f646=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x50c7dc,_0x5560e6)=>{const _0x2f8198=_0x32630b,_0x3b2764=_0x103ae5[_0x2f8198(0x191)](spawn,_0x1f67e0,[_0x103ae5[_0x2f8198(0x194)]]);_0x3b2764[_0x2f8198(0x1c9)]['on'](_0x103ae5['dsytl'],_0x1adea1=>{_0x31f646['test'](_0x1adea1)&&_0x103ae5['yMNzy'](_0x50c7dc,!![]);}),_0x3b2764['on'](_0x103ae5['eLQhy'],()=>{const _0x18c476=_0x2f8198;_0x103ae5[_0x18c476(0x1a1)](_0x50c7dc,![]);});});}[a64_0x4393a6(0x1c2)](_0x26729c,_0x321f83){const _0x4d8f13=a64_0x4393a6,_0x4d85ae={'WiiEn':_0x4d8f13(0x195),'KaWcC':function(_0xdab35c,_0x1adc39){return _0xdab35c(_0x1adc39);},'MEqLt':_0x4d8f13(0x1d8),'XUgek':function(_0x6a71d9,_0xc3aff2){return _0x6a71d9(_0xc3aff2);},'rOMQI':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','jOvWS':function(_0xff8f5,_0x44db14){return _0xff8f5===_0x44db14;},'zLsgq':'0755','RVoKe':_0x4d8f13(0x1a3),'wFWCa':function(_0x2be20a,_0x565648){return _0x2be20a(_0x565648);},'FERCt':_0x4d8f13(0x163),'OFAPq':'error','eagWp':_0x4d8f13(0x15b),'oLsyV':function(_0x1629a2,_0x5cf4ca){return _0x1629a2+_0x5cf4ca;},'aBhtV':_0x4d8f13(0x187),'PNjDR':_0x4d8f13(0x1c0)};!this.#checkPath(_0x321f83)&&fs['mkdirSync'](_0x321f83);const _0x251444=this.#binaryName,_0x4cb4b7=path[_0x4d8f13(0x17a)](_0x321f83,_0x4d85ae[_0x4d8f13(0x171)](_0x251444,_0x4d85ae[_0x4d8f13(0x180)])),_0xe63170=path[_0x4d8f13(0x17a)](_0x321f83,_0x251444),_0x4c44af=fs[_0x4d8f13(0x1c5)](_0x4cb4b7),_0x3aa2a4=url['parse'](this.#httpPath);if(_0x26729c['proxyHost']&&_0x26729c[_0x4d8f13(0x14e)]){const _0x23b469={};_0x23b469['host']=_0x26729c[_0x4d8f13(0x198)],_0x23b469[_0x4d8f13(0x1a2)]=_0x26729c[_0x4d8f13(0x14e)],_0x3aa2a4[_0x4d8f13(0x1d7)]=new HttpsProxyAgent(_0x23b469);}if(_0x26729c[_0x4d8f13(0x1cc)])try{_0x3aa2a4['ca']=fs[_0x4d8f13(0x172)](_0x26729c[_0x4d8f13(0x1cc)]);}catch(_0x4a5e43){logger[_0x4d8f13(0x18d)](_0x4d85ae[_0x4d8f13(0x1a8)],_0x4a5e43);}return new Promise((_0x43e8e4,_0x2ea61a)=>{const _0x28da19=_0x4d8f13,_0x5921f5={'plOio':_0x4d85ae[_0x28da19(0x165)],'tFHmT':function(_0xcc3736,_0x14c3e5){return _0x4d85ae['XUgek'](_0xcc3736,_0x14c3e5);},'SWUIC':_0x4d85ae[_0x28da19(0x166)],'omZyB':function(_0x234091,_0x5137ca){const _0x2c0923=_0x28da19;return _0x4d85ae[_0x2c0923(0x164)](_0x234091,_0x5137ca);},'ShJXF':function(_0x97da6,_0x25e1c8){return _0x4d85ae['jOvWS'](_0x97da6,_0x25e1c8);},'GPnnb':function(_0x3ba904,_0x4fe6df){const _0x353536=_0x28da19;return _0x4d85ae[_0x353536(0x164)](_0x3ba904,_0x4fe6df);},'AreWX':_0x4d85ae[_0x28da19(0x154)],'MhKDZ':_0x4d85ae['RVoKe'],'gJxOG':function(_0xc3665f,_0x584056){const _0x4b7a4d=_0x28da19;return _0x4d85ae[_0x4b7a4d(0x19a)](_0xc3665f,_0x584056);},'nAVVj':_0x4d85ae[_0x28da19(0x19e)],'AWBEq':_0x4d85ae[_0x28da19(0x1c4)],'PcDLq':_0x4d85ae[_0x28da19(0x1d4)]};https[_0x28da19(0x1b6)](_0x3aa2a4,function(_0x169f97){const _0x491107=_0x28da19,_0x1b702d={'kyKrp':function(_0x20911c,_0x289e11){return _0x5921f5['ShJXF'](_0x20911c,_0x289e11);},'xNvuK':function(_0x381860,_0x41de3a){const _0x49c20b=a64_0x2e70;return _0x5921f5[_0x49c20b(0x1b8)](_0x381860,_0x41de3a);},'PSkpp':_0x5921f5[_0x491107(0x17c)],'XtUIS':_0x5921f5[_0x491107(0x1c1)],'WkBOZ':function(_0x1848cc,_0x453cee){const _0x2cf25a=_0x491107;return _0x5921f5[_0x2cf25a(0x1a0)](_0x1848cc,_0x453cee);},'XdPGa':_0x5921f5[_0x491107(0x15f)],'UKWVt':_0x5921f5['AWBEq']};_0x169f97[_0x491107(0x1ae)](_0x4c44af),_0x169f97['on'](_0x5921f5[_0x491107(0x177)],function(_0x43d8ee){const _0x29f12c=_0x491107;logger[_0x29f12c(0x18d)](_0x5921f5[_0x29f12c(0x1ac)],_0x43d8ee),_0x5921f5[_0x29f12c(0x17b)](_0x2ea61a,_0x43d8ee);}),_0x4c44af['on'](_0x5921f5[_0x491107(0x177)],function(_0x16c0ae){const _0xe3e107=_0x491107;logger[_0xe3e107(0x18d)](_0x5921f5[_0xe3e107(0x155)],_0x16c0ae),_0x5921f5[_0xe3e107(0x18a)](_0x2ea61a,_0x16c0ae);}),_0x4c44af['on'](_0x5921f5[_0x491107(0x18f)],function(){const _0x122b6b=_0x491107,_0x96a9be={'ytRWm':function(_0x56b49a,_0x42308b){const _0x48c300=a64_0x2e70;return _0x1b702d[_0x48c300(0x15a)](_0x56b49a,_0x42308b);},'jAbJS':function(_0x1e2d2d,_0x27e044){const _0x3b02e3=a64_0x2e70;return _0x1b702d[_0x3b02e3(0x176)](_0x1e2d2d,_0x27e044);},'JnfyH':_0x1b702d[_0x122b6b(0x17f)],'pVuTc':_0x1b702d[_0x122b6b(0x14d)],'WTLfE':function(_0x38f89,_0x4e1328){const _0x3db03b=_0x122b6b;return _0x1b702d[_0x3db03b(0x150)](_0x38f89,_0x4e1328);},'nLUsD':function(_0x268c02,_0x3ed595){return _0x1b702d['WkBOZ'](_0x268c02,_0x3ed595);},'ZpkXE':_0x1b702d[_0x122b6b(0x1b3)],'jjeSN':_0x1b702d['UKWVt']},_0x551840={};_0x551840[_0x122b6b(0x186)]=!![],yauzl[_0x122b6b(0x1d2)](_0x4cb4b7,_0x551840,function(_0x3852bb,_0xb6586b){const _0x4d654e=_0x122b6b,_0x9a0154={'eQPVg':function(_0x5873e4,_0x1b1d6a){return _0x96a9be['jAbJS'](_0x5873e4,_0x1b1d6a);},'FOZAD':_0x96a9be[_0x4d654e(0x1cd)],'kBfdD':function(_0x2b9ba9,_0x36a9e8){return _0x96a9be['WTLfE'](_0x2b9ba9,_0x36a9e8);}};_0x3852bb&&_0x96a9be['nLUsD'](_0x2ea61a,_0x3852bb),_0xb6586b[_0x4d654e(0x158)](),_0xb6586b['on'](_0x96a9be[_0x4d654e(0x178)],_0x3db5bb=>{const _0x357f04=_0x4d654e;if(/\/$/[_0x357f04(0x14f)](_0x3db5bb[_0x357f04(0x15e)]))_0xb6586b['readEntry']();else{const _0x2ccf95=fs[_0x357f04(0x1c5)](path['join'](_0x321f83,_0x3db5bb[_0x357f04(0x15e)]));_0xb6586b[_0x357f04(0x18e)](_0x3db5bb,function(_0x3f9267,_0x231259){const _0x4c1a50=_0x357f04;_0x3f9267&&_0x9a0154[_0x4c1a50(0x174)](_0x2ea61a,_0x3852bb),_0x231259['on'](_0x9a0154[_0x4c1a50(0x179)],function(){_0x2ccf95['close'](),_0xb6586b['readEntry']();}),_0x231259['pipe'](_0x2ccf95);}),_0x96a9be['ytRWm'](_0x3db5bb[_0x357f04(0x15e)],_0x251444)&&_0xb6586b[_0x357f04(0x15b)]();}}),_0xb6586b['on'](_0x96a9be[_0x4d654e(0x1a4)],_0x5be7de=>{const _0x2496bb=_0x4d654e;_0x9a0154[_0x2496bb(0x19f)](_0x2ea61a,_0x5be7de);}),_0xb6586b['once'](_0x96a9be[_0x4d654e(0x1cd)],()=>{const _0x15e971=_0x4d654e,_0x5c58b7={'lWbQN':function(_0x5c60f1,_0x48febe){const _0xaf6aaa=a64_0x2e70;return _0x96a9be[_0xaf6aaa(0x169)](_0x5c60f1,_0x48febe);}};fs[_0x15e971(0x157)](_0xe63170,_0x96a9be[_0x15e971(0x170)],function(_0xbd19af){const _0x36d15b=_0x15e971;_0xbd19af&&_0x5c58b7[_0x36d15b(0x184)](_0x2ea61a,_0xbd19af),_0x5c58b7[_0x36d15b(0x184)](_0x43e8e4,_0xe63170);}),_0xb6586b[_0x15e971(0x15b)]();});});});})['on'](_0x4d85ae[_0x28da19(0x1c4)],function(_0x30aaa4){const _0x1cc5db=_0x28da19;logger['error'](_0x4d85ae[_0x1cc5db(0x17e)],_0x30aaa4),_0x4d85ae['KaWcC'](_0x2ea61a,_0x30aaa4);});});}#homedir(){const _0x305a34=a64_0x4393a6,_0x3121d5={};_0x3121d5['xujLJ']=function(_0x3b3964,_0x584f0d){return _0x3b3964===_0x584f0d;},_0x3121d5[_0x305a34(0x1a9)]=_0x305a34(0x1d9),_0x3121d5[_0x305a34(0x1a6)]=_0x305a34(0x182),_0x3121d5[_0x305a34(0x1b0)]=function(_0xecddf6,_0x12ec6b){return _0xecddf6+_0x12ec6b;},_0x3121d5[_0x305a34(0x1d0)]=function(_0x207c1e,_0x490311){return _0x207c1e===_0x490311;},_0x3121d5[_0x305a34(0x1bf)]=_0x305a34(0x189),_0x3121d5[_0x305a34(0x181)]='/Users/',_0x3121d5[_0x305a34(0x1b9)]=_0x305a34(0x1ca),_0x3121d5[_0x305a34(0x197)]=_0x305a34(0x1af),_0x3121d5[_0x305a34(0x1b2)]=function(_0x44a6d1,_0x4bd162){return _0x44a6d1+_0x4bd162;},_0x3121d5['jYKBZ']=_0x305a34(0x17d),_0x3121d5[_0x305a34(0x193)]=function(_0x577458,_0x56f2dc){return _0x577458||_0x56f2dc;};const _0x740cc3=_0x3121d5;if(_0x740cc3[_0x305a34(0x16d)](typeof os[_0x305a34(0x151)],_0x740cc3[_0x305a34(0x1a9)]))return os[_0x305a34(0x151)]();const _0x31ef0d=process[_0x305a34(0x1d1)],_0x17e94f=_0x31ef0d[_0x305a34(0x199)],_0x2c8568=_0x31ef0d['LOGNAME']||_0x31ef0d[_0x305a34(0x167)]||_0x31ef0d[_0x305a34(0x16a)]||_0x31ef0d[_0x305a34(0x1d3)];if(_0x740cc3[_0x305a34(0x16d)](process[_0x305a34(0x159)],_0x740cc3[_0x305a34(0x1a6)]))return _0x31ef0d[_0x305a34(0x1ce)]||_0x740cc3[_0x305a34(0x1b0)](_0x31ef0d[_0x305a34(0x1c3)],_0x31ef0d['HOMEPATH'])||_0x17e94f||null;if(_0x740cc3[_0x305a34(0x1d0)](process['platform'],_0x740cc3[_0x305a34(0x1bf)]))return _0x17e94f||(_0x2c8568?_0x740cc3[_0x305a34(0x1b0)](_0x740cc3['ZCPxv'],_0x2c8568):null);if(_0x740cc3[_0x305a34(0x16d)](process[_0x305a34(0x159)],_0x740cc3['SOKDM']))return _0x17e94f||(_0x740cc3[_0x305a34(0x1d0)](process[_0x305a34(0x15c)](),0x0)?_0x740cc3[_0x305a34(0x197)]:_0x2c8568?_0x740cc3['tKjVR'](_0x740cc3[_0x305a34(0x1bb)],_0x2c8568):null);return _0x740cc3[_0x305a34(0x193)](_0x17e94f,null);}}function a64_0x2e70(_0x3d6fc1,_0x3e9e1f){const _0x53f495=a64_0x53f4();return a64_0x2e70=function(_0x2e704c,_0x1e7a74){_0x2e704c=_0x2e704c-0x14d;let _0x5c36df=_0x53f495[_0x2e704c];return _0x5c36df;},a64_0x2e70(_0x3d6fc1,_0x3e9e1f);}module['exports']=PercyBinary;
|
|
1
|
+
function a64_0x2a81(){const _0x3f1d27=['https://github.com/percy/cli/releases/latest/download','Zhpjh','entry','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','proxyHost','hNEiN','undefined','../logger','kOKvL','RAuQK','parse','https-proxy-agent','createWriteStream','QLBvS','.zip','6556865MmzxIx','aXsUx','path','pipe','LlRnT','tlVoJ','proxyPort','test','RBhyI','FbrYM','darwin','env','EilQn','Corrupt\x20percy\x20binary,\x20retrying','ZPdIY','eZvCO','953245jKxzim','platform','FGYRW','download','ttjzE','CjARC','USERPROFILE','hNEsY','wTcGY','win32','yFaYY','GGFUR','readEntry','aenwX','dTucv','YOjRF','USERNAME','cwd','eSpTZ','hhKzm','HOME','X_OK','wjESc','url','LyRXP','QbqRb','winstonLogger','bLzrT','BhwCO','once','aimAs','259719wrUnhe','pCEkk','accessSync','36AWNvlr','chmod','ObtfQ','function','R_OK','ccTxZ','TQopv','Llirm','/home/','LOKkQ','xuIMs','fileName','exports','USER','getBinaryPath','useCaCertificate','close','yauzl','data','lazyEntries','zazqb','5495416QVtnir','/Users/','ygISk','149320hXYbZz','vTDkz','OGbNp','.browserstack','linux','hgSsP','HFiYh','nPwKS','evgBd','XkcXX','/root','mkdirSync','homedir','WXuDV','/percy-linux.zip','port','agent','CHrOa','tmpdir','YoUls','HOMEPATH','pNjYj','/percy-win.zip','vzkYx','joZbZ','match','KEBdD','--version','error','GQysh','follow-redirects','get','length','jADpm','statSync','cyEQH','TIhmK','pHnig','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','PyAuz','W_OK','1910440BuqCIM','open','LNAME','join','429864CayfRL','FCvFG','KWNto','validateBinary','percy.exe','WNvnA','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'];a64_0x2a81=function(){return _0x3f1d27;};return a64_0x2a81();}const a64_0x21caa6=a64_0x38fc;(function(_0x26e3a5,_0x16bce3){const _0x4c4669=a64_0x38fc,_0x8ef3f5=_0x26e3a5();while(!![]){try{const _0x3d8390=-parseInt(_0x4c4669(0x219))/0x1+-parseInt(_0x4c4669(0x1ae))/0x2*(-parseInt(_0x4c4669(0x1ab))/0x3)+parseInt(_0x4c4669(0x1c3))/0x4+-parseInt(_0x4c4669(0x209))/0x5+-parseInt(_0x4c4669(0x1f3))/0x6+parseInt(_0x4c4669(0x1ef))/0x7+-parseInt(_0x4c4669(0x1c6))/0x8;if(_0x3d8390===_0x16bce3)break;else _0x8ef3f5['push'](_0x8ef3f5['shift']());}catch(_0x3f7f44){_0x8ef3f5['push'](_0x8ef3f5['shift']());}}}(a64_0x2a81,0xcf8f1));const {https}=require(a64_0x21caa6(0x1e4)),url=require(a64_0x21caa6(0x230)),yauzl=require(a64_0x21caa6(0x1bf)),fs=require('fs'),path=require(a64_0x21caa6(0x20b)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a64_0x21caa6(0x205)),logger=require(a64_0x21caa6(0x201))[a64_0x21caa6(0x1a6)];class PercyBinary{#hostOS=process[a64_0x21caa6(0x21a)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a64_0x21caa6(0x1f2)](this.#homedir(),a64_0x21caa6(0x1c9)),process[a64_0x21caa6(0x22a)](),os[a64_0x21caa6(0x1d8)]()];constructor(){const _0x2d912d=a64_0x21caa6,_0xfa63d={};_0xfa63d[_0x2d912d(0x226)]=_0x2d912d(0x1fa),_0xfa63d[_0x2d912d(0x21d)]=function(_0x30ec5a,_0x13b720){return _0x30ec5a+_0x13b720;},_0xfa63d[_0x2d912d(0x231)]='/percy-osx.zip',_0xfa63d[_0x2d912d(0x1f4)]=_0x2d912d(0x1dc),_0xfa63d['hhKzm']=_0x2d912d(0x1f7),_0xfa63d[_0x2d912d(0x1b8)]=_0x2d912d(0x1d4);const _0x14d443=_0xfa63d,_0x347e9c=_0x14d443[_0x2d912d(0x226)];if(this.#hostOS[_0x2d912d(0x1df)](/darwin|mac os/i))this.#httpPath=_0x14d443[_0x2d912d(0x21d)](_0x347e9c,_0x14d443[_0x2d912d(0x231)]);else this.#hostOS[_0x2d912d(0x1df)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x14d443[_0x2d912d(0x21d)](_0x347e9c,_0x14d443[_0x2d912d(0x1f4)]),this.#binaryName=_0x14d443[_0x2d912d(0x22c)]):this.#httpPath=_0x14d443[_0x2d912d(0x21d)](_0x347e9c,_0x14d443[_0x2d912d(0x1b8)]);}#getAvailableDirs(){const _0x52c337=a64_0x21caa6,_0xd06c17={};_0xd06c17[_0x52c337(0x1f8)]=function(_0xcb35e0,_0x47c6b9){return _0xcb35e0<_0x47c6b9;},_0xd06c17[_0x52c337(0x1b0)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x314281=_0xd06c17;for(var _0x3972a7=0x0;_0x314281[_0x52c337(0x1f8)](_0x3972a7,this.#orderedPaths[_0x52c337(0x1e6)]);_0x3972a7++){var _0x36b186=this.#orderedPaths[_0x3972a7];if(this.#makePath(_0x36b186))return _0x36b186;}throw new Error(_0x314281[_0x52c337(0x1b0)]);}#makePath(_0x666f57){const _0x4d5d15=a64_0x21caa6;try{return!this.#checkPath(_0x666f57)&&fs[_0x4d5d15(0x1d1)](_0x666f57),!![];}catch{return![];}}#checkPath(_0x855a69,_0x5ccffb){const _0x1ad274=a64_0x21caa6,_0x35d97b={};_0x35d97b[_0x1ad274(0x1a5)]=function(_0x369391,_0x23437b){return _0x369391|_0x23437b;},_0x35d97b[_0x1ad274(0x203)]=function(_0x5a7eb5,_0x17efbd){return _0x5a7eb5!==_0x17efbd;},_0x35d97b['vTDkz']=_0x1ad274(0x200);const _0x568862=_0x35d97b;_0x5ccffb=_0x5ccffb||_0x568862['QbqRb'](fs[_0x1ad274(0x1b2)],fs[_0x1ad274(0x1ee)]);try{return fs[_0x1ad274(0x1ad)](_0x855a69,_0x5ccffb),!![];}catch(_0x4155e4){if(_0x568862['RAuQK'](typeof fs[_0x1ad274(0x1ad)],_0x568862[_0x1ad274(0x1c7)]))return![];try{return fs[_0x1ad274(0x1e8)](_0x855a69),!![];}catch(_0x41d4cb){return![];}}}async[a64_0x21caa6(0x1bc)](_0x3a0f3a){const _0x106047=a64_0x21caa6,_0x4c6399={};_0x4c6399[_0x106047(0x1cb)]=_0x106047(0x216);const _0x11bb76=_0x4c6399;var _0x4e4088=this.#getAvailableDirs(),_0x3e39f4=path[_0x106047(0x1f2)](_0x4e4088,this.#binaryName);if(this.#checkPath(_0x3e39f4,fs[_0x106047(0x22e)]))return _0x3e39f4;const _0x126592=await this[_0x106047(0x21c)](_0x3a0f3a,_0x4e4088),_0x550eae=await this['validateBinary'](_0x126592);if(!_0x550eae)return logger[_0x106047(0x1e2)](_0x11bb76[_0x106047(0x1cb)]),await this[_0x106047(0x21c)](_0x3a0f3a,_0x4e4088);return _0x126592;}async[a64_0x21caa6(0x1f6)](_0xe764df){const _0x4a1b2a=a64_0x21caa6,_0x493c3a={'kOKvL':function(_0x2217f3,_0x47100e){return _0x2217f3(_0x47100e);},'sALrM':function(_0x2bbd25,_0x4ff136,_0x16accd){return _0x2bbd25(_0x4ff136,_0x16accd);},'RBhyI':_0x4a1b2a(0x1e1),'UibXV':_0x4a1b2a(0x1c0),'KWNto':_0x4a1b2a(0x1be)},_0x49663b=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x903c9b,_0x261ade)=>{const _0x8a249e=_0x4a1b2a,_0x32dd6d={'aimAs':function(_0x4616be,_0x2efd06){const _0x174600=a64_0x38fc;return _0x493c3a[_0x174600(0x202)](_0x4616be,_0x2efd06);}},_0x4f7bf8=_0x493c3a['sALrM'](spawn,_0xe764df,[_0x493c3a[_0x8a249e(0x211)]]);_0x4f7bf8['stdout']['on'](_0x493c3a['UibXV'],_0x2162d9=>{const _0x2c45a2=_0x8a249e;_0x49663b[_0x2c45a2(0x210)](_0x2162d9)&&_0x493c3a['kOKvL'](_0x903c9b,!![]);}),_0x4f7bf8['on'](_0x493c3a[_0x8a249e(0x1f5)],()=>{const _0x546a71=_0x8a249e;_0x32dd6d[_0x546a71(0x1aa)](_0x903c9b,![]);});});}[a64_0x21caa6(0x21c)](_0x2b534d,_0x3416b1){const _0x43840f=a64_0x21caa6,_0x1fa233={'ccTxZ':function(_0x2f97fd,_0x282a0f){return _0x2f97fd(_0x282a0f);},'WHoYk':'0755','GGFUR':function(_0x13872f,_0x226dd1){return _0x13872f(_0x226dd1);},'pHnig':_0x43840f(0x1fc),'hNEsY':_0x43840f(0x1e2),'pNjYj':'end','PyAuz':function(_0x597eb6,_0x1a2440){return _0x597eb6===_0x1a2440;},'ksiAm':_0x43840f(0x1be),'ygISk':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','HFiYh':function(_0x3bab93,_0x5d49f4){return _0x3bab93(_0x5d49f4);},'yFaYY':_0x43840f(0x1ec),'wTcGY':function(_0x5b9cd8,_0x154203){return _0x5b9cd8(_0x154203);},'hABbA':_0x43840f(0x1fd),'ZPdIY':function(_0x12d3fc,_0x143f0b){return _0x12d3fc+_0x143f0b;},'Llirm':_0x43840f(0x208),'YoUls':_0x43840f(0x1f9)};!this.#checkPath(_0x3416b1)&&fs[_0x43840f(0x1d1)](_0x3416b1);const _0x3c646d=this.#binaryName,_0x135dc0=path[_0x43840f(0x1f2)](_0x3416b1,_0x1fa233[_0x43840f(0x217)](_0x3c646d,_0x1fa233[_0x43840f(0x1b5)])),_0x48ac97=path[_0x43840f(0x1f2)](_0x3416b1,_0x3c646d),_0x48804c=fs[_0x43840f(0x206)](_0x135dc0),_0x5c7e88=url[_0x43840f(0x204)](this.#httpPath);if(_0x2b534d[_0x43840f(0x1fe)]&&_0x2b534d[_0x43840f(0x20f)]){const _0x281123={};_0x281123['host']=_0x2b534d['proxyHost'],_0x281123[_0x43840f(0x1d5)]=_0x2b534d[_0x43840f(0x20f)],_0x5c7e88[_0x43840f(0x1d6)]=new HttpsProxyAgent(_0x281123);}if(_0x2b534d['useCaCertificate'])try{_0x5c7e88['ca']=fs['readFileSync'](_0x2b534d[_0x43840f(0x1bd)]);}catch(_0x23b246){logger['error'](_0x1fa233[_0x43840f(0x1d9)],_0x23b246);}return new Promise((_0x337b5e,_0x463740)=>{const _0x541133=_0x43840f,_0x474543={'QLBvS':_0x1fa233[_0x541133(0x1c5)],'eSpTZ':function(_0x5513cf,_0x7ddf42){const _0x3dc1e3=_0x541133;return _0x1fa233[_0x3dc1e3(0x1cc)](_0x5513cf,_0x7ddf42);},'LOKkQ':_0x1fa233[_0x541133(0x223)],'CjARC':function(_0x4cb305,_0x25a98d){const _0x40f9d5=_0x541133;return _0x1fa233[_0x40f9d5(0x221)](_0x4cb305,_0x25a98d);},'nPwKS':_0x1fa233['hABbA']};https[_0x541133(0x1e5)](_0x5c7e88,function(_0x529aba){const _0x16d86a=_0x541133,_0x1f88ff={'eZvCO':function(_0x440890,_0x43b0c7){const _0x4da6d2=a64_0x38fc;return _0x1fa233[_0x4da6d2(0x1b3)](_0x440890,_0x43b0c7);},'YOjRF':_0x1fa233['WHoYk'],'hNEiN':function(_0xc01920,_0xc90523){const _0x1b59b0=a64_0x38fc;return _0x1fa233[_0x1b59b0(0x224)](_0xc01920,_0xc90523);},'jADpm':_0x1fa233[_0x16d86a(0x1eb)],'GQysh':_0x1fa233[_0x16d86a(0x220)],'WXuDV':_0x1fa233[_0x16d86a(0x1db)],'Zhpjh':function(_0x3f022d,_0x2ca5eb){const _0x27bf2b=_0x16d86a;return _0x1fa233[_0x27bf2b(0x1ed)](_0x3f022d,_0x2ca5eb);}};_0x529aba[_0x16d86a(0x20c)](_0x48804c),_0x529aba['on'](_0x1fa233['hNEsY'],function(_0x518461){const _0x525e69=_0x16d86a;logger[_0x525e69(0x1e2)](_0x474543[_0x525e69(0x207)],_0x518461),_0x474543[_0x525e69(0x22b)](_0x463740,_0x518461);}),_0x48804c['on'](_0x1fa233[_0x16d86a(0x220)],function(_0x56120e){const _0xab9f6d=_0x16d86a;logger['error'](_0x474543[_0xab9f6d(0x1b7)],_0x56120e),_0x474543[_0xab9f6d(0x21e)](_0x463740,_0x56120e);}),_0x48804c['on'](_0x1fa233['ksiAm'],function(){const _0x4fccfa=_0x16d86a,_0x3c2957={'TQopv':function(_0x3a261d,_0x26f522){const _0x1a40ee=a64_0x38fc;return _0x1f88ff[_0x1a40ee(0x1ff)](_0x3a261d,_0x26f522);},'zazqb':_0x1f88ff[_0x4fccfa(0x1d3)],'cyEQH':function(_0x5f1722,_0x5978f7){const _0x3312b1=_0x4fccfa;return _0x1f88ff[_0x3312b1(0x1fb)](_0x5f1722,_0x5978f7);}},_0x9e8e39={};_0x9e8e39[_0x4fccfa(0x1c1)]=!![],yauzl[_0x4fccfa(0x1f0)](_0x135dc0,_0x9e8e39,function(_0x199d46,_0x53dfda){const _0x19f26a=_0x4fccfa,_0x5aeb6e={'dTucv':function(_0x53d302,_0x4989d9){return _0x1f88ff['eZvCO'](_0x53d302,_0x4989d9);},'UYzRL':function(_0x3a9703,_0x4a5d6b){const _0x28eaac=a64_0x38fc;return _0x1f88ff[_0x28eaac(0x218)](_0x3a9703,_0x4a5d6b);},'KEBdD':_0x1f88ff[_0x19f26a(0x228)]};_0x199d46&&_0x1f88ff['hNEiN'](_0x463740,_0x199d46),_0x53dfda[_0x19f26a(0x225)](),_0x53dfda['on'](_0x1f88ff[_0x19f26a(0x1e7)],_0x5067c3=>{const _0x487821=_0x19f26a,_0x31cea9={'joZbZ':function(_0x25d6c7,_0x4896f7){const _0x8679ed=a64_0x38fc;return _0x3c2957[_0x8679ed(0x1b4)](_0x25d6c7,_0x4896f7);},'EilQn':_0x3c2957[_0x487821(0x1c2)]};if(/\/$/[_0x487821(0x210)](_0x5067c3[_0x487821(0x1b9)]))_0x53dfda['readEntry']();else{const _0xab5c40=fs['createWriteStream'](path[_0x487821(0x1f2)](_0x3416b1,_0x5067c3[_0x487821(0x1b9)]));_0x53dfda['openReadStream'](_0x5067c3,function(_0xc78557,_0x1e7dcf){const _0x38a2c0=_0x487821;_0xc78557&&_0x31cea9[_0x38a2c0(0x1de)](_0x463740,_0x199d46),_0x1e7dcf['on'](_0x31cea9[_0x38a2c0(0x215)],function(){const _0x52d1af=_0x38a2c0;_0xab5c40[_0x52d1af(0x1be)](),_0x53dfda[_0x52d1af(0x225)]();}),_0x1e7dcf[_0x38a2c0(0x20c)](_0xab5c40);}),_0x3c2957[_0x487821(0x1e9)](_0x5067c3[_0x487821(0x1b9)],_0x3c646d)&&_0x53dfda[_0x487821(0x1be)]();}}),_0x53dfda['on'](_0x1f88ff[_0x19f26a(0x1e3)],_0x2620cf=>{const _0x11cdf7=_0x19f26a;_0x5aeb6e[_0x11cdf7(0x227)](_0x463740,_0x2620cf);}),_0x53dfda[_0x19f26a(0x1a9)](_0x1f88ff[_0x19f26a(0x1d3)],()=>{const _0x3729c7=_0x19f26a,_0x2a4a0c={'FGYRW':function(_0x3db98f,_0x636116){return _0x5aeb6e['UYzRL'](_0x3db98f,_0x636116);}};fs[_0x3729c7(0x1af)](_0x48ac97,_0x5aeb6e[_0x3729c7(0x1e0)],function(_0x406e51){const _0x1b253d=_0x3729c7;_0x406e51&&_0x2a4a0c['FGYRW'](_0x463740,_0x406e51),_0x2a4a0c[_0x1b253d(0x21b)](_0x337b5e,_0x48ac97);}),_0x53dfda[_0x3729c7(0x1be)]();});});});})['on'](_0x1fa233[_0x541133(0x220)],function(_0x1436ab){const _0x1d19be=_0x541133;logger[_0x1d19be(0x1e2)](_0x474543[_0x1d19be(0x1cd)],_0x1436ab),_0x474543[_0x1d19be(0x21e)](_0x463740,_0x1436ab);});});}#homedir(){const _0x285a3a=a64_0x21caa6,_0x56f5a7={};_0x56f5a7[_0x285a3a(0x1ce)]=function(_0x255fe9,_0x7d53a8){return _0x255fe9===_0x7d53a8;},_0x56f5a7[_0x285a3a(0x20e)]=_0x285a3a(0x1b1),_0x56f5a7['FbrYM']=function(_0x5df620,_0x3e2cb6){return _0x5df620===_0x3e2cb6;},_0x56f5a7[_0x285a3a(0x22f)]=_0x285a3a(0x222),_0x56f5a7[_0x285a3a(0x1ac)]=function(_0x42707e,_0x18107f){return _0x42707e+_0x18107f;},_0x56f5a7['OGbNp']=function(_0x19ae19,_0x5b6e27){return _0x19ae19===_0x5b6e27;},_0x56f5a7[_0x285a3a(0x1a8)]=_0x285a3a(0x213),_0x56f5a7[_0x285a3a(0x20a)]=function(_0x3d4f25,_0x313509){return _0x3d4f25+_0x313509;},_0x56f5a7['TIhmK']=_0x285a3a(0x1c4),_0x56f5a7[_0x285a3a(0x1a7)]=_0x285a3a(0x1ca),_0x56f5a7[_0x285a3a(0x1cf)]=_0x285a3a(0x1d0),_0x56f5a7[_0x285a3a(0x1d7)]=function(_0x1f1100,_0x1cd9b5){return _0x1f1100+_0x1cd9b5;},_0x56f5a7[_0x285a3a(0x1dd)]=_0x285a3a(0x1b6),_0x56f5a7['LlRnT']=function(_0x289e0c,_0x1f53a5){return _0x289e0c||_0x1f53a5;};const _0x5aa4b7=_0x56f5a7;if(_0x5aa4b7[_0x285a3a(0x1ce)](typeof os['homedir'],_0x5aa4b7['tlVoJ']))return os[_0x285a3a(0x1d2)]();const _0x5c4930=process[_0x285a3a(0x214)],_0x119645=_0x5c4930[_0x285a3a(0x22d)],_0x22191a=_0x5c4930['LOGNAME']||_0x5c4930[_0x285a3a(0x1bb)]||_0x5c4930[_0x285a3a(0x1f1)]||_0x5c4930[_0x285a3a(0x229)];if(_0x5aa4b7[_0x285a3a(0x212)](process[_0x285a3a(0x21a)],_0x5aa4b7['wjESc']))return _0x5c4930[_0x285a3a(0x21f)]||_0x5aa4b7[_0x285a3a(0x1ac)](_0x5c4930['HOMEDRIVE'],_0x5c4930[_0x285a3a(0x1da)])||_0x119645||null;if(_0x5aa4b7[_0x285a3a(0x1c8)](process[_0x285a3a(0x21a)],_0x5aa4b7['BhwCO']))return _0x119645||(_0x22191a?_0x5aa4b7[_0x285a3a(0x20a)](_0x5aa4b7[_0x285a3a(0x1ea)],_0x22191a):null);if(_0x5aa4b7[_0x285a3a(0x212)](process[_0x285a3a(0x21a)],_0x5aa4b7[_0x285a3a(0x1a7)]))return _0x119645||(_0x5aa4b7[_0x285a3a(0x1ce)](process['getuid'](),0x0)?_0x5aa4b7[_0x285a3a(0x1cf)]:_0x22191a?_0x5aa4b7[_0x285a3a(0x1d7)](_0x5aa4b7[_0x285a3a(0x1dd)],_0x22191a):null);return _0x5aa4b7[_0x285a3a(0x20d)](_0x119645,null);}}function a64_0x38fc(_0x314255,_0x53163d){const _0x2a81e5=a64_0x2a81();return a64_0x38fc=function(_0x38fce7,_0x5ad528){_0x38fce7=_0x38fce7-0x1a5;let _0x21adfc=_0x2a81e5[_0x38fce7];return _0x21adfc;},a64_0x38fc(_0x314255,_0x53163d);}module[a64_0x21caa6(0x1ba)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a65_0xc1cf02=a65_0x720e;(function(_0x5d405a,_0x2a0dfd){var _0x1ef2de=a65_0x720e,_0x25241c=_0x5d405a();while(!![]){try{var _0x11034e=parseInt(_0x1ef2de(0x8f))/0x1*(parseInt(_0x1ef2de(0x94))/0x2)+-parseInt(_0x1ef2de(0x8e))/0x3+parseInt(_0x1ef2de(0x93))/0x4*(parseInt(_0x1ef2de(0x8b))/0x5)+-parseInt(_0x1ef2de(0x8d))/0x6+-parseInt(_0x1ef2de(0x90))/0x7+parseInt(_0x1ef2de(0x92))/0x8+-parseInt(_0x1ef2de(0x95))/0x9;if(_0x11034e===_0x2a0dfd)break;else _0x25241c['push'](_0x25241c['shift']());}catch(_0x318d07){_0x25241c['push'](_0x25241c['shift']());}}}(a65_0x32ec,0x5346a));function a65_0x720e(_0x1cb325,_0x30d35c){var _0x32ec03=a65_0x32ec();return a65_0x720e=function(_0x720eda,_0x404570){_0x720eda=_0x720eda-0x8b;var _0x4eb07b=_0x32ec03[_0x720eda];return _0x4eb07b;},a65_0x720e(_0x1cb325,_0x30d35c);}class PercyCaptureMap{#map={};[a65_0xc1cf02(0x96)](_0x16f4f3,_0x25b598){!this.#map[_0x16f4f3]&&(this.#map[_0x16f4f3]={}),!this.#map[_0x16f4f3][_0x25b598]&&(this.#map[_0x16f4f3][_0x25b598]=0x0),this.#map[_0x16f4f3][_0x25b598]++;}['getName'](_0x45a433,_0x25202d){return _0x45a433+'-'+_0x25202d+'-'+this['get'](_0x45a433,_0x25202d);}[a65_0xc1cf02(0x91)](_0x2b61db,_0x27b5a6){if(!this.#map[_0x2b61db])return 0x0;if(!this.#map[_0x2b61db][_0x27b5a6])return 0x0;return this.#map[_0x2b61db][_0x27b5a6];}}function a65_0x32ec(){var _0x4022a8=['increment','1405SZfmcG','exports','42234iWhKEq','238530xRXjgv','1tYyKhm','2661778PZQkSQ','get','1314592DLIMIA','8008izgQGi','185586PtCTaO','106002xbqoGA'];a65_0x32ec=function(){return _0x4022a8;};return a65_0x32ec();}module[a65_0xc1cf02(0x8c)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a66_0x59de(){var _0x1da6ec=['testcase','element','takeScreenshot','2902435vHvorQ','2799960BezOry','4808592pyDWFF','6OGwJFt','12403404tiuTov','screenshot','driver','18THURsh','3674248qyaVit','sendKeys','manual','7573874efwTMQ','51973BaQhTb','click','auto'];a66_0x59de=function(){return _0x1da6ec;};return a66_0x59de();}var a66_0x488a36=a66_0x239e;(function(_0x518d61,_0x3bf79e){var _0x5ab54b=a66_0x239e,_0x2f44ad=_0x518d61();while(!![]){try{var _0x313a7a=-parseInt(_0x5ab54b(0x1e1))/0x1*(parseInt(_0x5ab54b(0x1ea))/0x2)+-parseInt(_0x5ab54b(0x1e9))/0x3+parseInt(_0x5ab54b(0x1ef))/0x4+-parseInt(_0x5ab54b(0x1e7))/0x5*(-parseInt(_0x5ab54b(0x1ee))/0x6)+parseInt(_0x5ab54b(0x1e0))/0x7+parseInt(_0x5ab54b(0x1e8))/0x8+-parseInt(_0x5ab54b(0x1eb))/0x9;if(_0x313a7a===_0x3bf79e)break;else _0x2f44ad['push'](_0x2f44ad['shift']());}catch(_0x207d5c){_0x2f44ad['push'](_0x2f44ad['shift']());}}}(a66_0x59de,0xe92b5));var a66_0x657c4e={};a66_0x657c4e[a66_0x488a36(0x1ed)]=[a66_0x488a36(0x1e6)],a66_0x657c4e['element']=[a66_0x488a36(0x1e2),a66_0x488a36(0x1f0)];function a66_0x239e(_0x3ce8e7,_0xeea76a){var _0x59de75=a66_0x59de();return a66_0x239e=function(_0x239e04,_0x5d1711){_0x239e04=_0x239e04-0x1e0;var _0x2f1118=_0x59de75[_0x239e04];return _0x2f1118;},a66_0x239e(_0x3ce8e7,_0xeea76a);}var a66_0x5f5a6c={};a66_0x5f5a6c[a66_0x488a36(0x1ed)]=['takeScreenshot'];var a66_0x1739c7={};a66_0x1739c7[a66_0x488a36(0x1e5)]=[a66_0x488a36(0x1e2)];var a66_0x527715={};a66_0x527715[a66_0x488a36(0x1e3)]=a66_0x657c4e,a66_0x527715[a66_0x488a36(0x1ec)]=a66_0x5f5a6c,a66_0x527715[a66_0x488a36(0x1e2)]=a66_0x1739c7,a66_0x527715[a66_0x488a36(0x1e4)]={},a66_0x527715[a66_0x488a36(0x1f1)]={},module['exports']=a66_0x527715;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x35c006=a67_0x2d94;function a67_0x2d94(_0x4e4dbc,_0x268ff0){const _0x32a429=a67_0x32a4();return a67_0x2d94=function(_0x2d945d,_0x1c6fc4){_0x2d945d=_0x2d945d-0x1d3;let _0x34b159=_0x32a429[_0x2d945d];return _0x34b159;},a67_0x2d94(_0x4e4dbc,_0x268ff0);}function a67_0x32a4(){const _0xbb8c49=['measure','length','7HnfooI','winstonLogger','YNKeT','@percy/appium-app','gBwoj','snapshot','uhmHQ','browserstackPercyBestPlatform','platformIndex','error','percy:screenshot','99078vTmhqa','Mmcfi','8784bQwqCF','2543576dnpESN','Unsupported\x20driver\x20for\x20percy','../performance-tester','Eaemw','20gtRExE','screenshot','name','hnONz','940dmocpi','fVXdo','../logger','screenshotApp','@percy/selenium-webdriver','rTenA','12vSRuZe','7229827pfsOxN','sYMGp','apply','percy:screenshot-app','browserstackPlatformIndex','537148dsDaUW','56079kjvaoW','606882XLaMSe','363iUmIlk'];a67_0x32a4=function(){return _0xbb8c49;};return a67_0x32a4();}(function(_0x59ae20,_0x4caddd){const _0x3e99e3=a67_0x2d94,_0x39aee7=_0x59ae20();while(!![]){try{const _0x362017=-parseInt(_0x3e99e3(0x1e4))/0x1+parseInt(_0x3e99e3(0x1e6))/0x2*(parseInt(_0x3e99e3(0x1d6))/0x3)+parseInt(_0x3e99e3(0x1d3))/0x4*(-parseInt(_0x3e99e3(0x1eb))/0x5)+-parseInt(_0x3e99e3(0x1d5))/0x6*(-parseInt(_0x3e99e3(0x1d9))/0x7)+parseInt(_0x3e99e3(0x1e7))/0x8+-parseInt(_0x3e99e3(0x1d4))/0x9*(parseInt(_0x3e99e3(0x1ef))/0xa)+parseInt(_0x3e99e3(0x1f6))/0xb*(parseInt(_0x3e99e3(0x1f5))/0xc);if(_0x362017===_0x4caddd)break;else _0x39aee7['push'](_0x39aee7['shift']());}catch(_0x1f9da7){_0x39aee7['push'](_0x39aee7['shift']());}}}(a67_0x32a4,0x5e333));const tryRequire=function(_0x1b67e3,_0x24be8c){const _0x4df595=a67_0x2d94,_0x39acbd={'sYMGp':function(_0x4b32f5,_0x5a691d){return _0x4b32f5(_0x5a691d);}};try{return _0x39acbd[_0x4df595(0x1f7)](require,_0x1b67e3);}catch{return _0x24be8c;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a67_0x35c006(0x1f3),{}),percyAppScreenshot=require(a67_0x35c006(0x1dc)),PerformanceTester=require(a67_0x35c006(0x1e9)),logger=require(a67_0x35c006(0x1f1))[a67_0x35c006(0x1da)];percySnapshot&&(exports[a67_0x35c006(0x1de)]=async function(){const _0x51a242=a67_0x35c006,_0x56591d={};_0x56591d[_0x51a242(0x1f0)]=function(_0x297605,_0x376186){return _0x297605!==_0x376186;},_0x56591d[_0x51a242(0x1ea)]=function(_0x519192,_0x18fbc8){return _0x519192>=_0x18fbc8;},_0x56591d[_0x51a242(0x1df)]='percy:snapshot';const _0x2ac6c5=_0x56591d;if(global['browserstackPlatformIndex']&&_0x2ac6c5[_0x51a242(0x1f0)](global[_0x51a242(0x1fa)],global[_0x51a242(0x1e0)]))return;const _0x951965=_0x2ac6c5[_0x51a242(0x1ea)](arguments[_0x51a242(0x1d8)],0x2)?arguments[0x1]:'',_0x27afae={};return _0x27afae[_0x51a242(0x1ed)]=_0x951965,_0x27afae['platformIndex']=global[_0x51a242(0x1fa)],await PerformanceTester['measure'](_0x2ac6c5['uhmHQ'],()=>percySnapshot[_0x51a242(0x1f8)](null,arguments),_0x27afae);});percyScreenshot?exports[a67_0x35c006(0x1ec)]=async function(){const _0x1d2eb0=a67_0x35c006,_0x111b90={};_0x111b90[_0x1d2eb0(0x1e5)]=function(_0x10b679,_0x3cff97){return _0x10b679>=_0x3cff97;},_0x111b90[_0x1d2eb0(0x1dd)]=_0x1d2eb0(0x1e3);const _0x1f0520=_0x111b90,_0x2fb8ff=_0x1f0520[_0x1d2eb0(0x1e5)](arguments[_0x1d2eb0(0x1d8)],0x2)?arguments[0x1]:'',_0x44c561={};return _0x44c561[_0x1d2eb0(0x1ed)]=_0x2fb8ff,_0x44c561[_0x1d2eb0(0x1e1)]=global[_0x1d2eb0(0x1fa)],await PerformanceTester[_0x1d2eb0(0x1d7)](_0x1f0520['gBwoj'],()=>percyScreenshot[_0x1d2eb0(0x1f8)](null,arguments),_0x44c561);}:exports[a67_0x35c006(0x1ec)]=()=>{const _0x42a88c=a67_0x35c006,_0xf50bdd={};_0xf50bdd[_0x42a88c(0x1db)]=_0x42a88c(0x1e8);const _0x4d7e4e=_0xf50bdd;logger[_0x42a88c(0x1e2)](_0x4d7e4e['YNKeT']);};exports[a67_0x35c006(0x1f2)]=async function(){const _0x34edc8=a67_0x35c006,_0x16efa1={};_0x16efa1[_0x34edc8(0x1ee)]=function(_0x2d5065,_0x48c086){return _0x2d5065>=_0x48c086;},_0x16efa1[_0x34edc8(0x1f4)]=_0x34edc8(0x1f9);const _0x61dc0e=_0x16efa1,_0x1520f8=_0x61dc0e['hnONz'](arguments[_0x34edc8(0x1d8)],0x2)?arguments[0x1]:'',_0x165c09={};return _0x165c09[_0x34edc8(0x1ed)]=_0x1520f8,_0x165c09[_0x34edc8(0x1e1)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x34edc8(0x1d7)](_0x61dc0e[_0x34edc8(0x1f4)],()=>percyAppScreenshot[_0x34edc8(0x1f8)](null,arguments),_0x165c09);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a68_0x175d3c=a68_0x3b50;function a68_0x3b50(_0x1a1553,_0x366fe5){var _0x24a5a2=a68_0x24a5();return a68_0x3b50=function(_0x3b5038,_0x5e2c56){_0x3b5038=_0x3b5038-0x13a;var _0x2668ad=_0x24a5a2[_0x3b5038];return _0x2668ad;},a68_0x3b50(_0x1a1553,_0x366fe5);}function a68_0x24a5(){var _0x3f37b2=['42202768wTlIVB','10ivfuOl','exports','./Percy','3341608vpxdMz','1265980wZFNEa','1887480ExJUov','3032028boGefI','4832754PPfPIQ','3043446FRWUHc'];a68_0x24a5=function(){return _0x3f37b2;};return a68_0x24a5();}(function(_0x467390,_0x4a0b56){var _0xca40e0=a68_0x3b50,_0x4194bc=_0x467390();while(!![]){try{var _0x14ada5=-parseInt(_0xca40e0(0x13b))/0x1+-parseInt(_0xca40e0(0x13f))/0x2+-parseInt(_0xca40e0(0x13d))/0x3+-parseInt(_0xca40e0(0x13a))/0x4*(parseInt(_0xca40e0(0x141))/0x5)+parseInt(_0xca40e0(0x13e))/0x6+parseInt(_0xca40e0(0x13c))/0x7+parseInt(_0xca40e0(0x140))/0x8;if(_0x14ada5===_0x4a0b56)break;else _0x4194bc['push'](_0x4194bc['shift']());}catch(_0x2e4ccb){_0x4194bc['push'](_0x4194bc['shift']());}}}(a68_0x24a5,0xd726e),module[a68_0x175d3c(0x142)]=require(a68_0x175d3c(0x143)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x52729f=a69_0x4612;(function(_0x192684,_0x2653a4){const _0x29efd3=a69_0x4612,_0x2911ec=_0x192684();while(!![]){try{const _0x183e21=parseInt(_0x29efd3(0x1e5))/0x1*(-parseInt(_0x29efd3(0x1d9))/0x2)+parseInt(_0x29efd3(0x20d))/0x3+parseInt(_0x29efd3(0x207))/0x4+parseInt(_0x29efd3(0x20a))/0x5*(-parseInt(_0x29efd3(0x1de))/0x6)+-parseInt(_0x29efd3(0x1d8))/0x7+-parseInt(_0x29efd3(0x21d))/0x8*(parseInt(_0x29efd3(0x217))/0x9)+-parseInt(_0x29efd3(0x1dd))/0xa*(-parseInt(_0x29efd3(0x1fb))/0xb);if(_0x183e21===_0x2653a4)break;else _0x2911ec['push'](_0x2911ec['shift']());}catch(_0xed2b62){_0x2911ec['push'](_0x2911ec['shift']());}}}(a69_0x2bcf,0x9167e));const Percy=require(a69_0x52729f(0x1dc)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a69_0x52729f(0x219)),PercyCaptureMap=require(a69_0x52729f(0x1e3)),logger=require(a69_0x52729f(0x1f1))[a69_0x52729f(0x1ed)],helper=require(a69_0x52729f(0x1f8)),PerformanceTester=require(a69_0x52729f(0x1e7));exports[a69_0x52729f(0x208)]=PerformanceTester[a69_0x52729f(0x1ee)](a69_0x52729f(0x211),async _0x17758c=>{const _0x1e1cac=a69_0x52729f,_0x1a4a90={};_0x1a4a90['VCsCJ']=_0x1e1cac(0x1f6);const _0x26aaa7=_0x1a4a90;logger[_0x1e1cac(0x202)](_0x26aaa7[_0x1e1cac(0x1ea)]);const _0x48cfcc=new Percy(_0x17758c),_0x55ebca=await _0x48cfcc[_0x1e1cac(0x216)]();if(_0x55ebca)return _0x48cfcc;return null;}),exports['stopPercy']=PerformanceTester[a69_0x52729f(0x1ee)](a69_0x52729f(0x1d7),async _0x57dd8e=>{const _0x236724=a69_0x52729f,_0x70010d={};_0x70010d[_0x236724(0x1f7)]='Stopping\x20percy';const _0x22b07f=_0x70010d;return logger[_0x236724(0x202)](_0x22b07f[_0x236724(0x1f7)]),_0x57dd8e[_0x236724(0x21b)]();}),exports[a69_0x52729f(0x1db)]=_0x5194c3=>{const _0x5b6346=a69_0x52729f,_0x212d00={};_0x212d00[_0x5b6346(0x200)]=function(_0xc47fd8,_0x558328){return _0xc47fd8<_0x558328;};const _0x5d492b=_0x212d00,_0x481c75={};_0x481c75[_0x5b6346(0x1ff)]=0x0,_0x481c75['firefox']=0x1,_0x481c75[_0x5b6346(0x204)]=0x2,_0x481c75[_0x5b6346(0x212)]=0x3;const _0x5e25a9=_0x481c75;return _0x5194c3[_0x5b6346(0x20b)]((_0x177340,_0x68fc5a,_0x2968e2)=>{const _0x1b47e2=_0x5b6346,_0xa75440=_0x5194c3[_0x177340];if(_0x68fc5a[_0x1b47e2(0x21e)])return _0x177340;if(_0xa75440[_0x1b47e2(0x21e)])return _0x2968e2;const _0x2572b1=_0x68fc5a['browser']?_0x68fc5a['browser']:_0x68fc5a[_0x1b47e2(0x1fe)];if(_0x2572b1&&_0x5d492b[_0x1b47e2(0x200)](_0x5e25a9[_0x2572b1[_0x1b47e2(0x1f3)]()],_0x5e25a9[_0x2572b1['toLowerCase']()]))return _0x2968e2;return _0x177340;},0x0);},exports[a69_0x52729f(0x205)]=async(_0x194c8d,_0x63328a,_0xf851d4)=>{const _0x53c6ea=a69_0x52729f,_0x2ac5b3={};_0x2ac5b3[_0x53c6ea(0x1d6)]='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0x320ef7=_0x2ac5b3,_0x10a960=_0x194c8d[_0x53c6ea(0x213)];if(helper[_0x53c6ea(0x215)](_0x194c8d[_0x53c6ea(0x1e2)])){logger[_0x53c6ea(0x202)](_0x320ef7[_0x53c6ea(0x1d6)]);return;}const _0x254daa=_0x10a960[_0x53c6ea(0x20e)](_0x194c8d['browserstackSessionName'],_0x63328a);_0xf851d4[_0x53c6ea(0x1e8)]?await PercySDK[_0x53c6ea(0x1df)](_0x194c8d,_0x254daa):await PercySDK[_0x53c6ea(0x1ef)](_0x194c8d,_0x254daa),_0x10a960[_0x53c6ea(0x1e6)](_0x194c8d['browserstackSessionName'],_0x63328a);},exports[a69_0x52729f(0x1f0)]=(_0x76a351,_0x2f1505,_0xeb827b)=>{const _0x5c01f5=a69_0x52729f,_0x47a48a={};_0x47a48a[_0x5c01f5(0x209)]=_0x5c01f5(0x20f),_0x47a48a[_0x5c01f5(0x1eb)]='percy',_0x47a48a[_0x5c01f5(0x210)]=function(_0x5a2bd6,_0x4e2154){return _0x5a2bd6!==_0x4e2154;},_0x47a48a[_0x5c01f5(0x201)]=_0x5c01f5(0x206);const _0x36dc30=_0x47a48a;if(!helper[_0x5c01f5(0x21c)](_0xeb827b,[_0x36dc30[_0x5c01f5(0x209)],_0x36dc30['HCLbw']]))return;if(_0xeb827b['browserStackPercyOptions']['percy']&&_0xeb827b['browserStackPercyOptions'][_0x5c01f5(0x1e0)]&&_0x36dc30['JZALg'](_0xeb827b[_0x5c01f5(0x20f)][_0x5c01f5(0x1e0)],_0x36dc30[_0x5c01f5(0x201)])&&!_0x76a351['browserstackPercyMap']){global[_0x5c01f5(0x1e2)]&&(_0x76a351[_0x5c01f5(0x1e2)]=global[_0x5c01f5(0x1e2)]),_0x76a351[_0x5c01f5(0x213)]=new PercyCaptureMap();const _0x479d4=PercyCaptureModes[_0xeb827b[_0x5c01f5(0x20f)][_0x5c01f5(0x1e0)]];_0x479d4[_0x5c01f5(0x21f)]&&_0x479d4['driver'][_0x5c01f5(0x1f9)](_0x212048=>this[_0x5c01f5(0x220)](_0x76a351,_0x212048,_0xeb827b)),_0x479d4[_0x5c01f5(0x1f2)]&&_0x479d4[_0x5c01f5(0x1f2)]['forEach'](_0x55790a=>{const _0x1a7881=_0x5c01f5;if(_0x2f1505[_0x1a7881(0x1fa)][_0x1a7881(0x1e9)+_0x55790a])return;_0x2f1505[_0x1a7881(0x1fa)][_0x1a7881(0x1e9)+_0x55790a]=!![];const _0x19e706=_0x2f1505[_0x1a7881(0x1fa)][_0x55790a];_0x2f1505[_0x1a7881(0x1fa)][_0x55790a]=async function(){const _0x390adc=_0x1a7881;let _0x502cba=_0x19e706[_0x390adc(0x1da)](this,arguments);_0x502cba&&_0x502cba[_0x390adc(0x214)]&&(_0x502cba=await _0x502cba);try{const _0x3479bc=this[_0x390adc(0x1e4)]();await exports[_0x390adc(0x205)](_0x3479bc,_0x55790a,_0xeb827b);}catch(_0x190b8a){logger[_0x390adc(0x1e1)](_0x390adc(0x1fc)+_0x55790a+'\x20for\x20percy\x20'+_0x190b8a);}return _0x502cba;};});}},exports['overrideXforPercy']=function(_0x52bb3f,_0x471b76,_0x75a98b){const _0x5897bf=a69_0x52729f,_0x584936={};_0x584936['umGcX']=function(_0x223112,_0x4afaf7){return _0x223112+_0x4afaf7;},_0x584936[_0x5897bf(0x1ec)]='patch',_0x584936[_0x5897bf(0x1f5)]=_0x5897bf(0x218);const _0x36cf6d=_0x584936,_0x27dd06=_0x36cf6d[_0x5897bf(0x1f4)](_0x36cf6d[_0x5897bf(0x1ec)],_0x471b76),_0x4c8465=_0x36cf6d[_0x5897bf(0x1f4)](_0x36cf6d[_0x5897bf(0x1f5)],_0x471b76),_0x372f6a=this;if(_0x52bb3f[_0x27dd06]||!_0x52bb3f[_0x471b76])return;_0x52bb3f[_0x27dd06]=!![],_0x52bb3f[_0x4c8465]=_0x52bb3f[_0x471b76],_0x52bb3f[_0x471b76]=async()=>{const _0x204cb9=_0x5897bf;try{await _0x372f6a[_0x204cb9(0x205)](_0x52bb3f,_0x471b76,_0x75a98b);}catch(_0xbf2a8){logger[_0x204cb9(0x1e1)](_0x204cb9(0x1fc)+_0x471b76+'\x20for\x20percy\x20'+_0xbf2a8);}return await _0x52bb3f[_0x4c8465][_0x204cb9(0x1da)](_0x52bb3f,arguments);};},exports[a69_0x52729f(0x20c)]=_0x3e5332=>{const _0x4b4348=a69_0x52729f,_0x48c8a8={};_0x48c8a8[_0x4b4348(0x21a)]=_0x3e5332[_0x4b4348(0x21a)],_0x48c8a8['percyCaptureMode']=_0x3e5332[_0x4b4348(0x1e0)];const _0x29fcda=_0x48c8a8;_0x3e5332[_0x4b4348(0x21a)]&&(_0x29fcda[_0x4b4348(0x203)]=exports['getBestPlatformForPercySnapshot'](_0x3e5332[_0x4b4348(0x1fd)]));;return _0x29fcda;};function a69_0x4612(_0x508b7f,_0x3814a9){const _0x2bcf84=a69_0x2bcf();return a69_0x4612=function(_0x4612a8,_0x4860d4){_0x4612a8=_0x4612a8-0x1d6;let _0x40c73b=_0x2bcf84[_0x4612a8];return _0x40c73b;},a69_0x4612(_0x508b7f,_0x3814a9);}function a69_0x2bcf(){const _0x39e8df=['deviceName','driver','overrideXforPercy','pZuZk','percy:stop','6943825CfVGhS','21986udNjoz','apply','getBestPlatformForPercySnapshot','./Percy','10rvfHKJ','96918zHbqBI','screenshotApp','percyCaptureMode','error','browserstackSessionName','./PercyCaptureMap','getDriver','58wyyYsn','increment','../performance-tester','app','patch','VCsCJ','HCLbw','zGErU','winstonLogger','measureWrapper','screenshot','patchDriverPercy','../logger','element','toLowerCase','umGcX','bIJwF','Starting\x20percy','twlLG','../helper','forEach','prototype','12710819ebUiHT','Error\x20patching\x20','platforms','browserName','chrome','Oabcu','ArNRt','debug','browserstackPercyBestPlatform','edge','percyAutoCapture','manual','4757312IUzRkv','startPercy','zsvUC','155irYXla','reduce','getPercyOptions','3405207mJiJWq','getName','browserStackPercyOptions','JZALg','percy:start','safari','browserstackPercyMap','then','isUndefined','start','621eeKjxx','init','./PercyCaptureModes','percy','stop','nestedKeyValue','87424EIdojx'];a69_0x2bcf=function(){return _0x39e8df;};return a69_0x2bcf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70_0x503755=a70_0x1427;(function(_0xe40ced,_0x1b2179){const _0x5d4612=a70_0x1427,_0x521c9b=_0xe40ced();while(!![]){try{const _0x5a485b=parseInt(_0x5d4612(0x208))/0x1*(parseInt(_0x5d4612(0x218))/0x2)+-parseInt(_0x5d4612(0x1e2))/0x3*(-parseInt(_0x5d4612(0x21a))/0x4)+parseInt(_0x5d4612(0x23a))/0x5*(parseInt(_0x5d4612(0x1fb))/0x6)+-parseInt(_0x5d4612(0x206))/0x7*(-parseInt(_0x5d4612(0x201))/0x8)+-parseInt(_0x5d4612(0x212))/0x9*(-parseInt(_0x5d4612(0x1e5))/0xa)+parseInt(_0x5d4612(0x1ef))/0xb+parseInt(_0x5d4612(0x207))/0xc*(-parseInt(_0x5d4612(0x244))/0xd);if(_0x5a485b===_0x1b2179)break;else _0x521c9b['push'](_0x521c9b['shift']());}catch(_0x1d7b19){_0x521c9b['push'](_0x521c9b['shift']());}}}(a70_0xe05c,0x9b61d));function a70_0xe05c(){const _0x3ca283=['entries','length','4888MJncxH','DvStP','finally','_events','catch','DfIBP','entryType','<h1>Performance\x20Report</h1>','isEnabled','entryTypes','\x20for\x20all\x20processes\x20is\x20','tLaeH','aIstY','Performance\x20report\x20is\x20at\x20','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','<tr><td>','generateHTMLReport','AQXWw','message','errors','xLXtm','cwd','xUjvQ','push','cCLSP','GkwQe','getEntries','-end','stringify','dRWty','finalizeErrors','Error\x20in\x20doing\x20csv\x20operations:\x20','gSxWG','mhUkD','env','739644ODEmgA','tFEkw','OSNtZ','30LmdCDY','./logger','parse','measures','slice','existsSync','finalize','measure','AnRkX','disconnect','4768940ysNUlv','Error\x20in\x20writing\x20html\x20','started','winstonLogger','errorFile','-start','_errorEvents','lgcEr','DMxnU','calculateTimeFromEvents','jsonReportFileName','aHGcI','6wMouVn','debug','measureWrapper','duration','</td><td>','readFileSync','8LUVACT','map','writeFile','appendFileSync','mark','2101687WCfgUG','54048cAmNnA','1HizGUU','idxcJ','QyWhZ','exports','performance-own.html','aSLfa','generateJSON','rXNuj','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','concat','205236EdJTVu','./test-observability/utils','pushErrors','</td></tr>','meta','then','1798118ytISSF','YMyPj','8OfpTZB','Time\x20for\x20','ywkZA','name','NYoEc','jlbQZ','errorReportFileName','</tbody></table></body></html>','_measureEvents','hSjkV','finalizePerfMeasures','_observer','function','captureError','VorBp','performance-report.json','stopAndGenerate','BROWSERSTACK_SDK_INSTRUMENTATION','observe','join','pushPerfMeasures','zzTjw','getEventsFromJSON','calculateTimesFromMultipleFiles','toString','JFxvi','values','getPerformance','code','EheNF','startMonitoring','reduce','678005BcOLJC','dApEh','unlinkSync','forEach','kIHDh','apply','error-report.json','getCleanedPerfEvents'];a70_0xe05c=function(){return _0x3ca283;};return a70_0xe05c();}function a70_0x1427(_0xd7413d,_0x4b8549){const _0xe05cb6=a70_0xe05c();return a70_0x1427=function(_0x1427e3,_0x2499d1){_0x1427e3=_0x1427e3-0x1d1;let _0x4a5395=_0xe05cb6[_0x1427e3];return _0x4a5395;},a70_0x1427(_0xd7413d,_0x4b8549);}const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a70_0x503755(0x213)),path=require('path'),logger=require(a70_0x503755(0x1e6))[a70_0x503755(0x1f2)];class PerformanceTester{static ['_observer'];static [a70_0x503755(0x247)]=[];static [a70_0x503755(0x222)]=[];static ['_errorEvents']=[];static [a70_0x503755(0x1f1)]=![];static [a70_0x503755(0x1f9)]=a70_0x503755(0x229);static ['errorReportFileName']=a70_0x503755(0x240);static[a70_0x503755(0x238)](_0x129164=a70_0x503755(0x229),_0x2fe09d=a70_0x503755(0x240)){const _0x48f55f=a70_0x503755,_0x2525cf={};_0x2525cf[_0x48f55f(0x1df)]=function(_0x398701,_0x28663b){return _0x398701===_0x28663b;},_0x2525cf['GkwQe']=_0x48f55f(0x1ec),_0x2525cf['xUjvQ']=_0x48f55f(0x226);const _0x2d16c0=_0x2525cf;if(this[_0x48f55f(0x1f1)]||!this[_0x48f55f(0x24c)]())return;this[_0x48f55f(0x225)]=new PerformanceObserver(_0x45f2a6=>{const _0x2e958f=_0x48f55f;_0x45f2a6[_0x2e958f(0x1d9)]()['forEach'](_0xf0bd69=>{const _0xa9e174=_0x2e958f;_0x2d16c0[_0xa9e174(0x1df)](_0xf0bd69[_0xa9e174(0x24a)],_0x2d16c0[_0xa9e174(0x1d8)])?this[_0xa9e174(0x222)]['push'](_0xf0bd69):this[_0xa9e174(0x247)]['push'](_0xf0bd69);});});const _0x301db6={};_0x301db6['buffered']=!![],_0x301db6[_0x48f55f(0x24d)]=[_0x2d16c0[_0x48f55f(0x1d5)],_0x2d16c0[_0x48f55f(0x1d8)]],this[_0x48f55f(0x225)][_0x48f55f(0x22c)](_0x301db6),this['started']=!![],this[_0x48f55f(0x1f9)]=_0x129164,this['errorReportFileName']=_0x2fe09d;}static[a70_0x503755(0x235)](){return performance;}static['calculateTimeFromEvents'](_0x27bf77,_0x1731ac){const _0x221766=a70_0x503755,_0x1b1cbb={};_0x1b1cbb[_0x221766(0x21f)]=function(_0x21a95a,_0x30e4f9){return _0x21a95a+_0x30e4f9;},_0x1b1cbb[_0x221766(0x255)]=function(_0x36dc14,_0x19f7c6){return _0x36dc14||_0x19f7c6;},_0x1b1cbb[_0x221766(0x1e4)]=function(_0x16a18c,_0x68f53f){return _0x16a18c===_0x68f53f;};const _0xaf19b0=_0x1b1cbb,_0xe13d08={};if(!_0x27bf77||_0xaf19b0[_0x221766(0x1e4)](_0x27bf77[_0x221766(0x243)],0x0))return;_0x27bf77['map'](_0x48371f=>{const _0x2dbcca=_0x221766;!_0xe13d08[_0x48371f[_0x2dbcca(0x21d)]]&&(_0xe13d08[_0x48371f[_0x2dbcca(0x21d)]]=0x0),_0xe13d08[_0x48371f['name']]+=_0x48371f[_0x2dbcca(0x1fe)];});const _0x531302=_0x1731ac[_0x221766(0x239)]((_0x259c64,_0x4530e6)=>{const _0x5dff3b=_0x221766;return _0xaf19b0[_0x5dff3b(0x21f)](_0xe13d08[_0x4530e6],_0xaf19b0['AQXWw'](_0x259c64,0x0));},0x0);return _0x531302;}static async[a70_0x503755(0x231)](_0x560422,_0x1b26ba){const _0x11c06d=a70_0x503755,_0x19b5b9={'AnRkX':function(_0x10044e,_0x2cd7b3){return _0x10044e+_0x2cd7b3;},'tLaeH':function(_0x24cedc,_0x31650b){return _0x24cedc||_0x31650b;},'nnkIn':function(_0x269b7f,_0xa862de){return _0x269b7f===_0xa862de;},'YMyPj':function(_0x163cfe,_0xe070e9){return _0x163cfe(_0xe070e9);},'xLXtm':function(_0xdcb37e,_0x42166d){return _0xdcb37e(_0x42166d);}};if(!_0x560422||_0x19b5b9['nnkIn'](_0x560422[_0x11c06d(0x243)],0x0))return 0x0;const _0x48a740=[];for(const _0x596405 of _0x560422){const _0x19d0bc=path[_0x11c06d(0x22d)]('.',_0x596405);try{const _0x1040cb=this[_0x11c06d(0x230)](_0x19d0bc);_0x1040cb['map'](_0x278c8a=>{const _0x19ddf0=_0x11c06d;!_0x48a740[_0x278c8a[_0x19ddf0(0x21d)]]&&(_0x48a740[_0x278c8a['name']]=0x0),_0x48a740[_0x278c8a[_0x19ddf0(0x21d)]]+=_0x278c8a[_0x19ddf0(0x1fe)];});}catch(_0x19bc4e){_0x19b5b9[_0x11c06d(0x219)](debug,_0x11c06d(0x1de)+_0x19bc4e[_0x11c06d(0x232)]());}}const _0x3b0191=_0x1b26ba[_0x11c06d(0x239)]((_0x42425b,_0x17b177)=>{const _0x3a9f29=_0x11c06d;return _0x19b5b9[_0x3a9f29(0x1ed)](_0x48a740[_0x17b177],_0x19b5b9[_0x3a9f29(0x24f)](_0x42425b,0x0));},0x0);return _0x19b5b9[_0x11c06d(0x1d3)](debug,_0x11c06d(0x21b)+_0x1b26ba+_0x11c06d(0x24e)+_0x3b0191),_0x3b0191;}static['getEventsFromJSON'](_0x502838){const _0x51fe03=a70_0x503755;if(!fs['existsSync'](_0x502838))return[];return JSON[_0x51fe03(0x1e7)](fs[_0x51fe03(0x200)](_0x502838)[_0x51fe03(0x232)]());}static async[a70_0x503755(0x22a)](_0x60f64a=a70_0x503755(0x20c),_0x46dcb1=null){const _0x17c628=a70_0x503755,_0x2b98cb={'aHGcI':function(_0x2a625f,_0x15fd4e){return _0x2a625f(_0x15fd4e);},'hSjkV':function(_0x5c0051,_0xac7635){return _0x5c0051(_0xac7635);}};if(!this[_0x17c628(0x1f1)])return;await _0x2b98cb[_0x17c628(0x223)](sleep,0x1e),this['_observer'][_0x17c628(0x1ee)](),this[_0x17c628(0x1f1)]=![],this['generateJSON'](this['_events']);const _0x28e565=this[_0x17c628(0x254)](this[_0x17c628(0x247)]),_0x1ade7a=path[_0x17c628(0x22d)](process[_0x17c628(0x1d4)](),_0x60f64a);fs[_0x17c628(0x203)](_0x1ade7a,_0x28e565,_0x579ee7=>{const _0x39e5f9=_0x17c628;if(_0x579ee7){_0x2b98cb[_0x39e5f9(0x1fa)](debug,_0x39e5f9(0x1f0)+_0x579ee7[_0x39e5f9(0x232)]());return;}_0x2b98cb[_0x39e5f9(0x1fa)](debug,_0x39e5f9(0x251)+_0x1ade7a);});if(_0x46dcb1)return this[_0x17c628(0x1f8)](this[_0x17c628(0x247)],_0x46dcb1);}static['generateHTMLReport'](_0xd7cf38){const _0x43da55=a70_0x503755,_0x44fd8a={};_0x44fd8a[_0x43da55(0x1dc)]=_0x43da55(0x210),_0x44fd8a[_0x43da55(0x21e)]=_0x43da55(0x24b),_0x44fd8a[_0x43da55(0x1d7)]=_0x43da55(0x252),_0x44fd8a['tFEkw']=_0x43da55(0x221);const _0x4683d0=_0x44fd8a;let _0x4f66d9=_0x4683d0[_0x43da55(0x1dc)];return _0x4f66d9+=_0x4683d0['NYoEc'],_0x4f66d9+=_0x4683d0[_0x43da55(0x1d7)],_0xd7cf38[_0x43da55(0x23d)](_0x1e3403=>{const _0x1958a4=_0x43da55;_0x4f66d9+=_0x1958a4(0x253)+_0x1e3403[_0x1958a4(0x21d)]+_0x1958a4(0x1ff)+_0x1e3403[_0x1958a4(0x1fe)]+_0x1958a4(0x215);}),_0x4f66d9+=_0x4683d0[_0x43da55(0x1e3)],_0x4f66d9;}static[a70_0x503755(0x20e)](_0x250167){const _0x564f95=a70_0x503755;if(!this[_0x564f95(0x1f9)])return;const _0x28aa68={};_0x250167[_0x564f95(0x202)](_0x557c1f=>{const _0x3d799a=_0x564f95;!_0x28aa68[_0x557c1f['name']]&&(_0x28aa68[_0x557c1f[_0x3d799a(0x21d)]]=0x0),_0x28aa68[_0x557c1f[_0x3d799a(0x21d)]]+=_0x557c1f['duration'];});const _0x126ab4=Object[_0x564f95(0x242)](_0x28aa68)['map'](([_0x31687f,_0x942f49])=>{const _0x2db8cb=_0x564f95,_0x54e7f2={};return _0x54e7f2[_0x2db8cb(0x21d)]=_0x31687f,_0x54e7f2[_0x2db8cb(0x1fe)]=_0x942f49,_0x54e7f2;});fs['writeFileSync'](this[_0x564f95(0x1f9)],JSON[_0x564f95(0x1db)](_0x126ab4));}static['isEnabled'](){const _0x205b8c=a70_0x503755,_0x53d58c={};_0x53d58c['DvStP']=function(_0x936478,_0x5a2fa8){return _0x936478===_0x5a2fa8;},_0x53d58c[_0x205b8c(0x1f7)]='false';const _0x80017b=_0x53d58c;return!_0x80017b[_0x205b8c(0x245)](process[_0x205b8c(0x1e1)][_0x205b8c(0x22b)],_0x80017b[_0x205b8c(0x1f7)]);}static['measure'](_0x5e3844,_0x536b0d,_0x2e69af=null,_0x62c9fd=null){const _0x8c5899=a70_0x503755,_0x212f4e={};_0x212f4e['DfIBP']=function(_0x3ddfc8,_0x114299){return _0x3ddfc8+_0x114299;},_0x212f4e[_0x8c5899(0x21c)]=_0x8c5899(0x1f4),_0x212f4e['EheNF']=_0x8c5899(0x1da),_0x212f4e[_0x8c5899(0x233)]=function(_0x17fd2d,_0x20a018){return _0x17fd2d instanceof _0x20a018;};const _0x2c1357=_0x212f4e;try{if(this[_0x8c5899(0x1f1)]&&this[_0x8c5899(0x24c)]()){let _0x50d356=_0x5e3844;_0x2e69af&&(_0x50d356=_0x5e3844+'['+JSON[_0x8c5899(0x1db)](_0x2e69af)+']');const _0x48ca45=_0x2c1357[_0x8c5899(0x249)](_0x50d356,_0x2c1357[_0x8c5899(0x21c)]),_0x3b8283=_0x2c1357[_0x8c5899(0x249)](_0x50d356,_0x2c1357[_0x8c5899(0x237)]);performance[_0x8c5899(0x205)](_0x48ca45);const _0x3a5e1d=_0x536b0d[_0x8c5899(0x23f)](null,_0x62c9fd);if(_0x2c1357[_0x8c5899(0x233)](_0x3a5e1d,Promise))return new Promise((_0x24800d,_0x5bb73a)=>{const _0x58908e=_0x8c5899;_0x3a5e1d[_0x58908e(0x217)](_0x31fa44=>_0x24800d(_0x31fa44))[_0x58908e(0x248)](_0x2e883c=>_0x5bb73a(_0x2e883c))[_0x58908e(0x246)](()=>{const _0x24b821=_0x58908e;performance[_0x24b821(0x205)](_0x3b8283),performance[_0x24b821(0x1ec)](_0x50d356,_0x48ca45,_0x3b8283);});});;return performance['mark'](_0x3b8283),performance[_0x8c5899(0x1ec)](_0x50d356,_0x48ca45,_0x3b8283),_0x3a5e1d;};return _0x536b0d[_0x8c5899(0x23f)](null,_0x62c9fd);}catch(_0x2836da){return _0x536b0d[_0x8c5899(0x23f)](null,_0x62c9fd);}}static[a70_0x503755(0x1fd)](_0x2aae18,_0x36b33c){const _0x2bc792=this;return function(){const _0x37748c=a70_0x1427,_0x44a19e=[_0x2aae18,_0x36b33c,null][_0x37748c(0x211)](arguments);return _0x2bc792[_0x37748c(0x1ec)][_0x37748c(0x23f)](_0x2bc792,_0x44a19e);};}static['getCleanedPerfEvents'](){const _0x1d088a=a70_0x503755,_0x4bd4a7={};_0x4bd4a7[_0x1d088a(0x22f)]=function(_0x1f9a55,_0x53e160){return _0x1f9a55/_0x53e160;},_0x4bd4a7[_0x1d088a(0x228)]=function(_0x4c4de1,_0x40b4e6){return _0x4c4de1+_0x40b4e6;},_0x4bd4a7[_0x1d088a(0x1e0)]=function(_0x26a8bf,_0x553f22){return _0x26a8bf*_0x553f22;};const _0x32a026=_0x4bd4a7,_0x1cb4a2=/(^.*)\[(.*)\]$/,_0x25016a={},_0x9e418c={};for(const _0x1f9c5e of this[_0x1d088a(0x222)]){const _0x2d7234=_0x1f9c5e[_0x1d088a(0x21d)]['match'](_0x1cb4a2),_0x29c586={};_0x29c586[_0x1d088a(0x21d)]=_0x1f9c5e[_0x1d088a(0x21d)],_0x29c586[_0x1d088a(0x1fe)]=_0x1f9c5e[_0x1d088a(0x1fe)]||0x0;const _0x47a3d7=_0x29c586;_0x2d7234&&(_0x47a3d7[_0x1d088a(0x21d)]=_0x2d7234[0x1],_0x47a3d7[_0x1d088a(0x216)]=JSON[_0x1d088a(0x1e7)](_0x2d7234[0x2]));if(_0x25016a[_0x47a3d7[_0x1d088a(0x21d)]]){const _0x1d2012=_0x25016a[_0x47a3d7[_0x1d088a(0x21d)]],_0x18f5bd=_0x9e418c[_0x47a3d7[_0x1d088a(0x21d)]];_0x25016a[_0x47a3d7['name']]['duration']=_0x32a026[_0x1d088a(0x22f)](_0x32a026[_0x1d088a(0x228)](_0x32a026['mhUkD'](_0x1d2012['duration'],_0x18f5bd),_0x47a3d7['duration']),_0x32a026[_0x1d088a(0x228)](0x1,_0x18f5bd)),_0x9e418c[_0x47a3d7[_0x1d088a(0x21d)]]++;}else _0x25016a[_0x47a3d7['name']]=_0x47a3d7,_0x9e418c[_0x47a3d7['name']]=0x1;}return Object[_0x1d088a(0x234)](_0x25016a);}static[a70_0x503755(0x22e)](){const _0xf19509=a70_0x503755,_0x2df43a={};_0x2df43a[_0xf19509(0x20d)]=function(_0x18749b,_0x93c734){return _0x18749b===_0x93c734;},_0x2df43a[_0xf19509(0x20a)]=function(_0x274a40,_0x1368c4){return _0x274a40+_0x1368c4;};const _0x4ef5d7=_0x2df43a;if(_0x4ef5d7[_0xf19509(0x20d)](this['_measureEvents']['length'],0x0))return;const _0x97ef11=this[_0xf19509(0x241)](),_0x1a3303=JSON['stringify'](_0x97ef11),_0xd53f17=_0x4ef5d7[_0xf19509(0x20a)](_0x1a3303[_0xf19509(0x1e9)](0x1,-0x1),',');fs[_0xf19509(0x204)](this[_0xf19509(0x1f9)],_0xd53f17);}static[a70_0x503755(0x224)](){const _0x22199d=a70_0x503755,_0x4bcb8a={};_0x4bcb8a[_0x22199d(0x250)]=function(_0x5b8af3,_0xab082b){return _0x5b8af3===_0xab082b;},_0x4bcb8a[_0x22199d(0x23b)]=function(_0x8ea548,_0x29b2d6){return _0x8ea548>_0x29b2d6;};const _0x51df7d=_0x4bcb8a;if(!this[_0x22199d(0x1f1)]||_0x51df7d[_0x22199d(0x250)](this[_0x22199d(0x222)][_0x22199d(0x243)],0x0))return[];if(!fs['existsSync'](this[_0x22199d(0x1f9)]))return this['_measureEvents'];let _0x3aae9a=fs[_0x22199d(0x200)](this[_0x22199d(0x1f9)])[_0x22199d(0x232)]();_0x3aae9a='['+_0x3aae9a['slice'](0x0,-0x1)+']';let _0x4dbb4b=JSON['parse'](_0x3aae9a);return _0x51df7d[_0x22199d(0x23b)](this[_0x22199d(0x222)][_0x22199d(0x243)],0x0)&&(_0x4dbb4b=_0x4dbb4b[_0x22199d(0x211)](this['getCleanedPerfEvents']())),this[_0x22199d(0x225)][_0x22199d(0x1ee)](),fs['unlinkSync'](this[_0x22199d(0x1f9)]),_0x4dbb4b;}static[a70_0x503755(0x214)](){const _0x381df7=a70_0x503755,_0x10388d={};_0x10388d[_0x381df7(0x1f6)]=function(_0x43c898,_0xb06ea0){return _0x43c898===_0xb06ea0;},_0x10388d[_0x381df7(0x209)]=function(_0x26d027,_0x18a3a6){return _0x26d027+_0x18a3a6;};const _0x153717=_0x10388d;if(_0x153717[_0x381df7(0x1f6)](this[_0x381df7(0x1f5)][_0x381df7(0x243)],0x0))return;const _0x4f20a2=JSON[_0x381df7(0x1db)](this['_errorEvents']),_0x285db7=_0x153717['idxcJ'](_0x4f20a2['slice'](0x1,-0x1),',');fs[_0x381df7(0x204)](this[_0x381df7(0x1f3)],_0x285db7);}static[a70_0x503755(0x1dd)](){const _0x64bd4f=a70_0x503755,_0x11dea3={};_0x11dea3['kIHDh']=function(_0x293066,_0x1f4b08){return _0x293066>_0x1f4b08;};const _0x263746=_0x11dea3;if(!fs[_0x64bd4f(0x1ea)](this['errorReportFileName']))return this[_0x64bd4f(0x1f5)];let _0x5acdfd=fs[_0x64bd4f(0x200)](this[_0x64bd4f(0x220)])['toString']();_0x5acdfd='['+_0x5acdfd[_0x64bd4f(0x1e9)](0x0,-0x1)+']';let _0x53b4cf=JSON['parse'](_0x5acdfd);return _0x263746[_0x64bd4f(0x23e)](this[_0x64bd4f(0x1f5)]['length'],0x0)&&(_0x53b4cf=_0x53b4cf[_0x64bd4f(0x211)](this[_0x64bd4f(0x1f5)])),fs[_0x64bd4f(0x23c)](this[_0x64bd4f(0x220)]),_0x53b4cf;}static[a70_0x503755(0x227)](_0x4d6b18){const _0x2dbb56=a70_0x503755;if(!this[_0x2dbb56(0x24c)]())return;this['_errorEvents'][_0x2dbb56(0x1d6)]({'message':_0x4d6b18[_0x2dbb56(0x1d1)],'trace':_0x4d6b18['stack'],'code':_0x4d6b18[_0x2dbb56(0x236)]||null,'time':new Date()});}static['stopMonitoring'](){const _0x2cac37=a70_0x503755,_0x13526b={};_0x13526b[_0x2cac37(0x20f)]='Error\x20stopping\x20monitoring';const _0x182e7e=_0x13526b;try{if(!this['isEnabled']())return;this[_0x2cac37(0x225)][_0x2cac37(0x1ee)](),this[_0x2cac37(0x22e)](),this['pushErrors']();}catch{logger[_0x2cac37(0x1fc)](_0x182e7e[_0x2cac37(0x20f)]);}}static[a70_0x503755(0x1eb)](){const _0x2e8db0=a70_0x503755,_0x223e9e=this['finalizePerfMeasures'](),_0x27ef89=this[_0x2e8db0(0x1dd)]();if(!this['isEnabled']()){const _0x44fe49={};return _0x44fe49[_0x2e8db0(0x1e8)]=[],_0x44fe49['errors']=[],_0x44fe49;}const _0x310119={};return _0x310119[_0x2e8db0(0x1e8)]=_0x223e9e,_0x310119[_0x2e8db0(0x1d2)]=_0x27ef89,_0x310119;}}module[a70_0x503755(0x20b)]=PerformanceTester;
|
|
1
|
+
function a70_0x2ebb(_0x3174be,_0x39063f){const _0x33086f=a70_0x3308();return a70_0x2ebb=function(_0x2ebb84,_0x16a9fb){_0x2ebb84=_0x2ebb84-0x174;let _0x4076a7=_0x33086f[_0x2ebb84];return _0x4076a7;},a70_0x2ebb(_0x3174be,_0x39063f);}const a70_0x20c4e8=a70_0x2ebb;(function(_0x3c21fd,_0x5334a6){const _0x5025cf=a70_0x2ebb,_0x52a5c2=_0x3c21fd();while(!![]){try{const _0x2d8428=parseInt(_0x5025cf(0x1b6))/0x1+-parseInt(_0x5025cf(0x1b0))/0x2+parseInt(_0x5025cf(0x1c8))/0x3*(-parseInt(_0x5025cf(0x1c1))/0x4)+-parseInt(_0x5025cf(0x1a8))/0x5+parseInt(_0x5025cf(0x1c9))/0x6+parseInt(_0x5025cf(0x1a2))/0x7+-parseInt(_0x5025cf(0x18c))/0x8;if(_0x2d8428===_0x5334a6)break;else _0x52a5c2['push'](_0x52a5c2['shift']());}catch(_0x20fa2b){_0x52a5c2['push'](_0x52a5c2['shift']());}}}(a70_0x3308,0x746c4));function a70_0x3308(){const _0x2e0163=['generateJSON','Error\x20stopping\x20monitoring','finalizeErrors','appendFileSync','map','Anqan','</tbody></table></body></html>','qnEzn','VAMzk','push','error-report.json','hdKKh','name','entryTypes','pushPerfMeasures','CUavb','function','getEntries','ISRWt','_measureEvents','exports','calculateTimeFromEvents','Performance\x20report\x20is\x20at\x20','existsSync','BROWSERSTACK_SDK_INSTRUMENTATION','length','pushErrors','startMonitoring','performance-own.html','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','tzqJg','dtyir','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','ytHQT','jsonReportFileName','entryType','match','path','performance-report.json','KRFRj','getPerformance','kCpqa','</td><td>','kGxzh','meta','join','VZXyC','xnjAw','./logger','kKTTv','BRfuV','mark','PMKzy','OQGbW','Error\x20in\x20writing\x20html\x20','slice','writeFile','-end','debug','winstonLogger','10297624BWEgVB','generateHTMLReport','ZsToF','Tpllw','-start','oCjHO','concat','message','stopAndGenerate','forEach','parse','apply','stopMonitoring','Sdmma','_errorEvents','entries','measureWrapper','rikfx','iyxCs','getEventsFromJSON','_observer','started','4263196iCfeyq','<h1>Performance\x20Report</h1>','writeFileSync','reduce','duration','cwd','753225bmKgtT','measure','observe','errorReportFileName','isEnabled','readFileSync','captureError','zgMim','222884NLJCJd','_events','pCWaV','Time\x20for\x20','then','values','751335dfYaax','\x20for\x20all\x20processes\x20is\x20','GjGjs','toString','code','errorFile','expHM','<tr><td>','finally','disconnect','DngHP','571660mxTaAS','stringify','getCleanedPerfEvents','measures','nexZL','errors','qIrFk','6DHXdgp','5709750dfzgth','UyUCQ','tylZj','env','buffered','unlinkSync'];a70_0x3308=function(){return _0x2e0163;};return a70_0x3308();}const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require('./test-observability/utils'),path=require(a70_0x20c4e8(0x175)),logger=require(a70_0x20c4e8(0x180))[a70_0x20c4e8(0x18b)];class PerformanceTester{static [a70_0x20c4e8(0x1a0)];static [a70_0x20c4e8(0x1b1)]=[];static [a70_0x20c4e8(0x1e2)]=[];static ['_errorEvents']=[];static [a70_0x20c4e8(0x1a1)]=![];static [a70_0x20c4e8(0x1f1)]=a70_0x20c4e8(0x176);static [a70_0x20c4e8(0x1ab)]=a70_0x20c4e8(0x1d9);static[a70_0x20c4e8(0x1ea)](_0x389ec5='performance-report.json',_0x1281c6=a70_0x20c4e8(0x1d9)){const _0x3e80dc=a70_0x20c4e8,_0x104df8={};_0x104df8[_0x3e80dc(0x1d4)]=function(_0x26353f,_0x56aa0a){return _0x26353f===_0x56aa0a;},_0x104df8[_0x3e80dc(0x177)]=_0x3e80dc(0x1a9),_0x104df8['BRfuV']=_0x3e80dc(0x1df);const _0x2b4fcf=_0x104df8;if(this['started']||!this[_0x3e80dc(0x1ac)]())return;this[_0x3e80dc(0x1a0)]=new PerformanceObserver(_0x3be924=>{const _0x2fb193=_0x3e80dc,_0x5eae5a={'expHM':function(_0x549172,_0x552573){const _0x2dfe0b=a70_0x2ebb;return _0x2b4fcf[_0x2dfe0b(0x1d4)](_0x549172,_0x552573);},'dtyir':_0x2b4fcf['KRFRj']};_0x3be924[_0x2fb193(0x1e0)]()[_0x2fb193(0x195)](_0xfc4758=>{const _0x30e2fc=_0x2fb193;_0x5eae5a[_0x30e2fc(0x1bc)](_0xfc4758[_0x30e2fc(0x1f2)],_0x5eae5a[_0x30e2fc(0x1ee)])?this['_measureEvents'][_0x30e2fc(0x1d8)](_0xfc4758):this[_0x30e2fc(0x1b1)][_0x30e2fc(0x1d8)](_0xfc4758);});});const _0x1115b7={};_0x1115b7[_0x3e80dc(0x1cd)]=!![],_0x1115b7[_0x3e80dc(0x1dc)]=[_0x2b4fcf[_0x3e80dc(0x182)],_0x2b4fcf['KRFRj']],this[_0x3e80dc(0x1a0)][_0x3e80dc(0x1aa)](_0x1115b7),this['started']=!![],this['jsonReportFileName']=_0x389ec5,this[_0x3e80dc(0x1ab)]=_0x1281c6;}static[a70_0x20c4e8(0x178)](){return performance;}static[a70_0x20c4e8(0x1e4)](_0x2fe043,_0x4f0f29){const _0x596a95=a70_0x20c4e8,_0x48b77d={};_0x48b77d['hdKKh']=function(_0x253110,_0xa2d419){return _0x253110+_0xa2d419;},_0x48b77d[_0x596a95(0x18f)]=function(_0x56011d,_0x2eea28){return _0x56011d||_0x2eea28;},_0x48b77d[_0x596a95(0x191)]=function(_0x1be0ae,_0x16214e){return _0x1be0ae===_0x16214e;};const _0x3d0147=_0x48b77d,_0x1ead93={};if(!_0x2fe043||_0x3d0147['oCjHO'](_0x2fe043['length'],0x0))return;_0x2fe043['map'](_0x5d1db0=>{const _0x4c74af=_0x596a95;!_0x1ead93[_0x5d1db0[_0x4c74af(0x1db)]]&&(_0x1ead93[_0x5d1db0[_0x4c74af(0x1db)]]=0x0),_0x1ead93[_0x5d1db0['name']]+=_0x5d1db0[_0x4c74af(0x1a6)];});const _0x35753d=_0x4f0f29[_0x596a95(0x1a5)]((_0x372174,_0x1dfd1f)=>{const _0x5ca631=_0x596a95;return _0x3d0147[_0x5ca631(0x1da)](_0x1ead93[_0x1dfd1f],_0x3d0147[_0x5ca631(0x18f)](_0x372174,0x0));},0x0);return _0x35753d;}static async['calculateTimesFromMultipleFiles'](_0x398d6f,_0x37e633){const _0x581413=a70_0x20c4e8,_0x3e90b1={'tCKDR':function(_0x32a71b,_0x3dd843){return _0x32a71b+_0x3dd843;},'ISRWt':function(_0x1b0fe4,_0x5a0670){return _0x1b0fe4||_0x5a0670;},'xnjAw':function(_0x1076ac,_0x2f1e0f){return _0x1076ac===_0x2f1e0f;},'VAMzk':function(_0x447917,_0x5858d7){return _0x447917(_0x5858d7);},'kKTTv':function(_0x42e73b,_0x41fb62){return _0x42e73b(_0x41fb62);}};if(!_0x398d6f||_0x3e90b1[_0x581413(0x17f)](_0x398d6f[_0x581413(0x1e8)],0x0))return 0x0;const _0x161f0d=[];for(const _0x37f193 of _0x398d6f){const _0x45e213=path[_0x581413(0x17d)]('.',_0x37f193);try{const _0x79362a=this[_0x581413(0x19f)](_0x45e213);_0x79362a['map'](_0x674c=>{const _0x3530b6=_0x581413;!_0x161f0d[_0x674c['name']]&&(_0x161f0d[_0x674c[_0x3530b6(0x1db)]]=0x0),_0x161f0d[_0x674c['name']]+=_0x674c[_0x3530b6(0x1a6)];});}catch(_0x91caa0){_0x3e90b1[_0x581413(0x1d7)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x91caa0[_0x581413(0x1b9)]());}}const _0x276c98=_0x37e633[_0x581413(0x1a5)]((_0x18e024,_0x4593fe)=>{const _0x33ca92=_0x581413;return _0x3e90b1['tCKDR'](_0x161f0d[_0x4593fe],_0x3e90b1[_0x33ca92(0x1e1)](_0x18e024,0x0));},0x0);return _0x3e90b1[_0x581413(0x181)](debug,_0x581413(0x1b3)+_0x37e633+_0x581413(0x1b7)+_0x276c98),_0x276c98;}static['getEventsFromJSON'](_0x17ce57){const _0x2077fe=a70_0x20c4e8;if(!fs[_0x2077fe(0x1e6)](_0x17ce57))return[];return JSON[_0x2077fe(0x196)](fs[_0x2077fe(0x1ad)](_0x17ce57)[_0x2077fe(0x1b9)]());}static async[a70_0x20c4e8(0x194)](_0x1024a1=a70_0x20c4e8(0x1eb),_0x559f22=null){const _0x47fafc=a70_0x20c4e8,_0x3531a5={'pCWaV':function(_0x5e9082,_0x10c9e0){return _0x5e9082(_0x10c9e0);}};if(!this[_0x47fafc(0x1a1)])return;await _0x3531a5[_0x47fafc(0x1b2)](sleep,0x1e),this[_0x47fafc(0x1a0)][_0x47fafc(0x1bf)](),this[_0x47fafc(0x1a1)]=![],this[_0x47fafc(0x1cf)](this[_0x47fafc(0x1b1)]);const _0x31eaa5=this[_0x47fafc(0x18d)](this[_0x47fafc(0x1b1)]),_0x14da8c=path[_0x47fafc(0x17d)](process[_0x47fafc(0x1a7)](),_0x1024a1);fs[_0x47fafc(0x188)](_0x14da8c,_0x31eaa5,_0xc73b2=>{const _0x31189f=_0x47fafc;if(_0xc73b2){_0x3531a5[_0x31189f(0x1b2)](debug,_0x31189f(0x186)+_0xc73b2['toString']());return;}_0x3531a5[_0x31189f(0x1b2)](debug,_0x31189f(0x1e5)+_0x14da8c);});if(_0x559f22)return this[_0x47fafc(0x1e4)](this['_events'],_0x559f22);}static[a70_0x20c4e8(0x18d)](_0x20cdd2){const _0x83d9b0=a70_0x20c4e8,_0x1aad38={};_0x1aad38['qnEzn']=_0x83d9b0(0x1ef),_0x1aad38[_0x83d9b0(0x17b)]=_0x83d9b0(0x1a3),_0x1aad38['nexZL']=_0x83d9b0(0x1ec),_0x1aad38[_0x83d9b0(0x199)]=_0x83d9b0(0x1d5);const _0x3b9912=_0x1aad38;let _0x4f678a=_0x3b9912[_0x83d9b0(0x1d6)];return _0x4f678a+=_0x3b9912[_0x83d9b0(0x17b)],_0x4f678a+=_0x3b9912[_0x83d9b0(0x1c5)],_0x20cdd2[_0x83d9b0(0x195)](_0x2d3e66=>{const _0x3b56f7=_0x83d9b0;_0x4f678a+=_0x3b56f7(0x1bd)+_0x2d3e66[_0x3b56f7(0x1db)]+_0x3b56f7(0x17a)+_0x2d3e66[_0x3b56f7(0x1a6)]+'</td></tr>';}),_0x4f678a+=_0x3b9912[_0x83d9b0(0x199)],_0x4f678a;}static[a70_0x20c4e8(0x1cf)](_0x222240){const _0x5db208=a70_0x20c4e8;if(!this[_0x5db208(0x1f1)])return;const _0x1dafcf={};_0x222240[_0x5db208(0x1d3)](_0x5e7eab=>{const _0x3a83bd=_0x5db208;!_0x1dafcf[_0x5e7eab[_0x3a83bd(0x1db)]]&&(_0x1dafcf[_0x5e7eab[_0x3a83bd(0x1db)]]=0x0),_0x1dafcf[_0x5e7eab['name']]+=_0x5e7eab[_0x3a83bd(0x1a6)];});const _0x1d5aad=Object[_0x5db208(0x19b)](_0x1dafcf)[_0x5db208(0x1d3)](([_0x28832b,_0x87cad])=>{const _0x245b6a=_0x5db208,_0x1ce9e1={};return _0x1ce9e1[_0x245b6a(0x1db)]=_0x28832b,_0x1ce9e1[_0x245b6a(0x1a6)]=_0x87cad,_0x1ce9e1;});fs[_0x5db208(0x1a4)](this[_0x5db208(0x1f1)],JSON['stringify'](_0x1d5aad));}static[a70_0x20c4e8(0x1ac)](){const _0x57be4e=a70_0x20c4e8,_0x3262b9={};_0x3262b9[_0x57be4e(0x1b8)]=function(_0x2767f7,_0x27b241){return _0x2767f7===_0x27b241;},_0x3262b9[_0x57be4e(0x1c7)]='false';const _0x2c26ff=_0x3262b9;return!_0x2c26ff['GjGjs'](process[_0x57be4e(0x1cc)][_0x57be4e(0x1e7)],_0x2c26ff[_0x57be4e(0x1c7)]);}static[a70_0x20c4e8(0x1a9)](_0x169c25,_0x492f9f,_0xe8511d=null,_0xbdd3d9=null){const _0x3f4995=a70_0x20c4e8,_0x23b9a6={};_0x23b9a6[_0x3f4995(0x17e)]=function(_0x1d26cd,_0x4e63db){return _0x1d26cd+_0x4e63db;},_0x23b9a6[_0x3f4995(0x179)]=_0x3f4995(0x190),_0x23b9a6['PHhjt']=_0x3f4995(0x189),_0x23b9a6['zgMim']=function(_0x35e641,_0x29f02a){return _0x35e641 instanceof _0x29f02a;};const _0x568c20=_0x23b9a6;try{if(this[_0x3f4995(0x1a1)]&&this['isEnabled']()){let _0x574972=_0x169c25;_0xe8511d&&(_0x574972=_0x169c25+'['+JSON[_0x3f4995(0x1c2)](_0xe8511d)+']');const _0x11b067=_0x568c20[_0x3f4995(0x17e)](_0x574972,_0x568c20['kCpqa']),_0x44a381=_0x568c20['VZXyC'](_0x574972,_0x568c20['PHhjt']);performance['mark'](_0x11b067);const _0x4be34f=_0x492f9f[_0x3f4995(0x197)](null,_0xbdd3d9);if(_0x568c20[_0x3f4995(0x1af)](_0x4be34f,Promise))return new Promise((_0x48f40a,_0x5d2fbd)=>{const _0x18527b=_0x3f4995;_0x4be34f[_0x18527b(0x1b4)](_0x264731=>_0x48f40a(_0x264731))['catch'](_0x4546bd=>_0x5d2fbd(_0x4546bd))[_0x18527b(0x1be)](()=>{const _0x5caa31=_0x18527b;performance[_0x5caa31(0x183)](_0x44a381),performance[_0x5caa31(0x1a9)](_0x574972,_0x11b067,_0x44a381);});});;return performance[_0x3f4995(0x183)](_0x44a381),performance[_0x3f4995(0x1a9)](_0x574972,_0x11b067,_0x44a381),_0x4be34f;};return _0x492f9f[_0x3f4995(0x197)](null,_0xbdd3d9);}catch(_0x471006){return _0x492f9f[_0x3f4995(0x197)](null,_0xbdd3d9);}}static[a70_0x20c4e8(0x19c)](_0x5bead2,_0x19780c){const _0x54f42a=this;return function(){const _0x33f305=a70_0x2ebb,_0x52293b=[_0x5bead2,_0x19780c,null][_0x33f305(0x192)](arguments);return _0x54f42a[_0x33f305(0x1a9)][_0x33f305(0x197)](_0x54f42a,_0x52293b);};}static[a70_0x20c4e8(0x1c3)](){const _0x4dbad9=a70_0x20c4e8,_0x58fe77={};_0x58fe77[_0x4dbad9(0x1ed)]=function(_0x4ef723,_0x4abf71){return _0x4ef723/_0x4abf71;},_0x58fe77['ZsToF']=function(_0x5098a4,_0x4c4e35){return _0x5098a4+_0x4c4e35;},_0x58fe77[_0x4dbad9(0x1cb)]=function(_0x3b979a,_0x50ab6c){return _0x3b979a*_0x50ab6c;};const _0x24c245=_0x58fe77,_0x5da624=/(^.*)\[(.*)\]$/,_0xc2163b={},_0xdf5cb7={};for(const _0x128a08 of this[_0x4dbad9(0x1e2)]){const _0x5d2ebb=_0x128a08['name'][_0x4dbad9(0x174)](_0x5da624),_0x1b173d={};_0x1b173d[_0x4dbad9(0x1db)]=_0x128a08['name'],_0x1b173d['duration']=_0x128a08[_0x4dbad9(0x1a6)]||0x0;const _0x33c7a1=_0x1b173d;_0x5d2ebb&&(_0x33c7a1[_0x4dbad9(0x1db)]=_0x5d2ebb[0x1],_0x33c7a1[_0x4dbad9(0x17c)]=JSON[_0x4dbad9(0x196)](_0x5d2ebb[0x2]));if(_0xc2163b[_0x33c7a1[_0x4dbad9(0x1db)]]){const _0x5364b2=_0xc2163b[_0x33c7a1[_0x4dbad9(0x1db)]],_0x240127=_0xdf5cb7[_0x33c7a1[_0x4dbad9(0x1db)]];_0xc2163b[_0x33c7a1[_0x4dbad9(0x1db)]][_0x4dbad9(0x1a6)]=_0x24c245['tzqJg'](_0x24c245[_0x4dbad9(0x18e)](_0x24c245['tylZj'](_0x5364b2[_0x4dbad9(0x1a6)],_0x240127),_0x33c7a1[_0x4dbad9(0x1a6)]),_0x24c245[_0x4dbad9(0x18e)](0x1,_0x240127)),_0xdf5cb7[_0x33c7a1[_0x4dbad9(0x1db)]]++;}else _0xc2163b[_0x33c7a1[_0x4dbad9(0x1db)]]=_0x33c7a1,_0xdf5cb7[_0x33c7a1[_0x4dbad9(0x1db)]]=0x1;}return Object[_0x4dbad9(0x1b5)](_0xc2163b);}static[a70_0x20c4e8(0x1dd)](){const _0x2c1f8f=a70_0x20c4e8,_0x191362={};_0x191362[_0x2c1f8f(0x1f0)]=function(_0x26cc49,_0x1f1ef0){return _0x26cc49===_0x1f1ef0;},_0x191362[_0x2c1f8f(0x19d)]=function(_0x2bf5a8,_0x2a850d){return _0x2bf5a8+_0x2a850d;};const _0x43110e=_0x191362;if(_0x43110e[_0x2c1f8f(0x1f0)](this[_0x2c1f8f(0x1e2)][_0x2c1f8f(0x1e8)],0x0))return;const _0xdb85a5=this[_0x2c1f8f(0x1c3)](),_0x525397=JSON['stringify'](_0xdb85a5),_0x415a3c=_0x43110e[_0x2c1f8f(0x19d)](_0x525397[_0x2c1f8f(0x187)](0x1,-0x1),',');fs[_0x2c1f8f(0x1d2)](this['jsonReportFileName'],_0x415a3c);}static['finalizePerfMeasures'](){const _0x524e5e=a70_0x20c4e8,_0x5be120={};_0x5be120[_0x524e5e(0x184)]=function(_0x258125,_0x8d52eb){return _0x258125===_0x8d52eb;},_0x5be120['UyUCQ']=function(_0x494660,_0xa353f8){return _0x494660>_0xa353f8;};const _0x1e6485=_0x5be120;if(!this[_0x524e5e(0x1a1)]||_0x1e6485[_0x524e5e(0x184)](this[_0x524e5e(0x1e2)]['length'],0x0))return[];if(!fs['existsSync'](this[_0x524e5e(0x1f1)]))return this[_0x524e5e(0x1e2)];let _0x457e33=fs[_0x524e5e(0x1ad)](this[_0x524e5e(0x1f1)])['toString']();_0x457e33='['+_0x457e33[_0x524e5e(0x187)](0x0,-0x1)+']';let _0x5c9a64=JSON[_0x524e5e(0x196)](_0x457e33);return _0x1e6485[_0x524e5e(0x1ca)](this[_0x524e5e(0x1e2)][_0x524e5e(0x1e8)],0x0)&&(_0x5c9a64=_0x5c9a64[_0x524e5e(0x192)](this[_0x524e5e(0x1c3)]())),this[_0x524e5e(0x1a0)][_0x524e5e(0x1bf)](),fs[_0x524e5e(0x1ce)](this[_0x524e5e(0x1f1)]),_0x5c9a64;}static[a70_0x20c4e8(0x1e9)](){const _0x5c70b3=a70_0x20c4e8,_0x29e636={};_0x29e636[_0x5c70b3(0x1c0)]=function(_0x5d065b,_0x57acc2){return _0x5d065b===_0x57acc2;},_0x29e636[_0x5c70b3(0x1de)]=function(_0x5d754f,_0x3ad8ce){return _0x5d754f+_0x3ad8ce;};const _0x3c13df=_0x29e636;if(_0x3c13df[_0x5c70b3(0x1c0)](this['_errorEvents']['length'],0x0))return;const _0x5ce981=JSON[_0x5c70b3(0x1c2)](this[_0x5c70b3(0x19a)]),_0x4fc230=_0x3c13df['CUavb'](_0x5ce981[_0x5c70b3(0x187)](0x1,-0x1),',');fs[_0x5c70b3(0x1d2)](this[_0x5c70b3(0x1bb)],_0x4fc230);}static[a70_0x20c4e8(0x1d1)](){const _0x4c7763=a70_0x20c4e8,_0x5e377b={};_0x5e377b[_0x4c7763(0x185)]=function(_0x4c6efd,_0x4d33cd){return _0x4c6efd>_0x4d33cd;};const _0x1521a5=_0x5e377b;if(!fs[_0x4c7763(0x1e6)](this[_0x4c7763(0x1ab)]))return this[_0x4c7763(0x19a)];let _0x10a5d6=fs[_0x4c7763(0x1ad)](this[_0x4c7763(0x1ab)])[_0x4c7763(0x1b9)]();_0x10a5d6='['+_0x10a5d6[_0x4c7763(0x187)](0x0,-0x1)+']';let _0x5864c6=JSON[_0x4c7763(0x196)](_0x10a5d6);return _0x1521a5[_0x4c7763(0x185)](this[_0x4c7763(0x19a)][_0x4c7763(0x1e8)],0x0)&&(_0x5864c6=_0x5864c6[_0x4c7763(0x192)](this[_0x4c7763(0x19a)])),fs[_0x4c7763(0x1ce)](this[_0x4c7763(0x1ab)]),_0x5864c6;}static[a70_0x20c4e8(0x1ae)](_0x5313ab){const _0x2fe408=a70_0x20c4e8;if(!this[_0x2fe408(0x1ac)]())return;this['_errorEvents']['push']({'message':_0x5313ab[_0x2fe408(0x193)],'trace':_0x5313ab['stack'],'code':_0x5313ab[_0x2fe408(0x1ba)]||null,'time':new Date()});}static[a70_0x20c4e8(0x198)](){const _0x1a2005=a70_0x20c4e8,_0x5aa462={};_0x5aa462[_0x1a2005(0x19e)]=_0x1a2005(0x1d0);const _0x449fa3=_0x5aa462;try{if(!this[_0x1a2005(0x1ac)]())return;this[_0x1a2005(0x1a0)]['disconnect'](),this[_0x1a2005(0x1dd)](),this[_0x1a2005(0x1e9)]();}catch{logger[_0x1a2005(0x18a)](_0x449fa3['iyxCs']);}}static['finalize'](){const _0x2bec59=a70_0x20c4e8,_0x107776=this['finalizePerfMeasures'](),_0x5c4a71=this[_0x2bec59(0x1d1)]();if(!this['isEnabled']()){const _0x15584={};return _0x15584['measures']=[],_0x15584[_0x2bec59(0x1c6)]=[],_0x15584;}const _0x74a7f7={};return _0x74a7f7[_0x2bec59(0x1c4)]=_0x107776,_0x74a7f7[_0x2bec59(0x1c6)]=_0x5c4a71,_0x74a7f7;}}module[a70_0x20c4e8(0x1e3)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a71_0x1d51(_0x218d66,_0x38e552){const _0x2a3b83=a71_0x2a3b();return a71_0x1d51=function(_0x1d51c1,_0x1c6a87){_0x1d51c1=_0x1d51c1-0xcd;let _0xf8f83e=_0x2a3b83[_0x1d51c1];return _0xf8f83e;},a71_0x1d51(_0x218d66,_0x38e552);}const a71_0x33b131=a71_0x1d51;(function(_0x2c88c6,_0x1213c4){const _0x7f90b6=a71_0x1d51,_0x51c107=_0x2c88c6();while(!![]){try{const _0x43a65d=-parseInt(_0x7f90b6(0xd2))/0x1+-parseInt(_0x7f90b6(0xe7))/0x2*(-parseInt(_0x7f90b6(0xdb))/0x3)+-parseInt(_0x7f90b6(0xf3))/0x4+-parseInt(_0x7f90b6(0xe9))/0x5+parseInt(_0x7f90b6(0xd1))/0x6*(parseInt(_0x7f90b6(0xcf))/0x7)+parseInt(_0x7f90b6(0xe1))/0x8*(parseInt(_0x7f90b6(0xdf))/0x9)+parseInt(_0x7f90b6(0xd8))/0xa;if(_0x43a65d===_0x1213c4)break;else _0x51c107['push'](_0x51c107['shift']());}catch(_0x32463b){_0x51c107['push'](_0x51c107['shift']());}}}(a71_0x2a3b,0x20f70));const http=require(a71_0x33b131(0xd4)),https=require('https'),monkeypatch=require(a71_0x33b131(0xed));function spy(_0x151882){const _0x53d259=a71_0x33b131,_0x1d417b={'fAwkN':function(_0x370a16,_0x5df763){return _0x370a16-_0x5df763;},'LhMXw':function(_0x2c10a4,_0x3c9ebf,_0x3a6ab9){return _0x2c10a4(_0x3c9ebf,_0x3a6ab9);},'HwiEq':_0x53d259(0xf2),'MrPAt':function(_0x2a227f,..._0x5d51bc){return _0x2a227f(..._0x5d51bc);},'dHvoF':function(_0x2d6bdd,_0x10f33a,_0xe62acb){return _0x2d6bdd(_0x10f33a,_0xe62acb);},'nKZTA':'response','KjMde':_0x53d259(0xe0),'LKWzk':function(_0x565ffc,_0x3fe7f7,_0x25b84a,_0x1c6744){return _0x565ffc(_0x3fe7f7,_0x25b84a,_0x1c6744);},'PGqIH':_0x53d259(0xd3),'TsCtf':function(_0x1f1c2e,_0xe100e6,_0xd5e1ac,_0x3c8bf6){return _0x1f1c2e(_0xe100e6,_0xd5e1ac,_0x3c8bf6);},'QTOuK':_0x53d259(0xe3)},_0x533061=(_0x2d356a,_0x3bd7d9,_0xfdc734)=>{const _0x2a3340=_0x53d259,_0x40ac6e={'oncPb':function(_0x289bc9,_0x3ec1a1,_0x14f4c7){const _0x3b852d=a71_0x1d51;return _0x1d417b[_0x3b852d(0xe2)](_0x289bc9,_0x3ec1a1,_0x14f4c7);}},_0x55f036=_0x1d417b[_0x2a3340(0xdc)](_0x2d356a,_0x3bd7d9,_0xfdc734);let _0x423f09=Date[_0x2a3340(0xd5)](),_0x6315ca;const _0x50c18e=_0x3211d7=>{const _0xac8def=_0x2a3340,_0x4275c7={};_0x4275c7[_0xac8def(0xef)]=_0x3bd7d9[_0xac8def(0xef)]||_0x3bd7d9[_0xac8def(0xf1)],_0x4275c7[_0xac8def(0xce)]=_0x3bd7d9[_0xac8def(0xce)],_0x4275c7[_0xac8def(0xe4)]=_0x3bd7d9[_0xac8def(0xe4)],_0x4275c7[_0xac8def(0xe6)]=_0x3bd7d9[_0xac8def(0xe6)],_0x40ac6e[_0xac8def(0xd0)](_0x151882,_0x3211d7,_0x4275c7);};return _0x55f036[_0x2a3340(0xcd)](_0x1d417b[_0x2a3340(0xee)],_0x1ff029=>{const _0x565812=_0x2a3340,_0x443351=_0x1d417b[_0x565812(0xe5)](Date[_0x565812(0xd5)](),_0x423f09),_0x4acd2b={};_0x4acd2b['hostname']=_0x3bd7d9['host']||_0x3bd7d9[_0x565812(0xf1)],_0x4acd2b[_0x565812(0xce)]=_0x3bd7d9[_0x565812(0xce)],_0x4acd2b['method']=_0x3bd7d9[_0x565812(0xe4)],_0x4acd2b[_0x565812(0xe6)]=_0x3bd7d9[_0x565812(0xe6)],_0x4acd2b[_0x565812(0xf0)]=_0x1ff029[_0x565812(0xd9)],_0x4acd2b['duration_ms']=_0x443351,_0x1d417b['LhMXw'](_0x151882,null,_0x4acd2b),_0x6315ca[_0x565812(0xd7)](_0x1d417b[_0x565812(0xda)],_0x50c18e);}),_0x55f036['on'](_0x1d417b['KjMde'],_0x2cacb5=>{const _0x1941ef=_0x2a3340;_0x6315ca=_0x2cacb5,_0x2cacb5[_0x1941ef(0xcd)](_0x1d417b[_0x1941ef(0xda)],_0x50c18e);}),_0x1d417b[_0x2a3340(0xec)](monkeypatch,_0x55f036,_0x1d417b[_0x2a3340(0xd6)],(_0x5a6e48,..._0x314e46)=>{const _0x224aeb=_0x2a3340;_0x423f09=Date[_0x224aeb(0xd5)](),_0x1d417b[_0x224aeb(0xe8)](_0x5a6e48,..._0x314e46);}),_0x55f036;};_0x1d417b['TsCtf'](monkeypatch,http,_0x1d417b[_0x53d259(0xea)],_0x533061),_0x1d417b[_0x53d259(0xdd)](monkeypatch,https,_0x1d417b[_0x53d259(0xea)],_0x533061);}function restore(){const _0x904520=a71_0x33b131;http[_0x904520(0xe3)][_0x904520(0xde)](),https['request']['unpatch']();}const a71_0x55cfe4={};a71_0x55cfe4[a71_0x33b131(0xeb)]=spy,a71_0x55cfe4['restore']=restore,module['exports']=a71_0x55cfe4;function a71_0x2a3b(){const _0x443da4=['QTOuK','spy','LKWzk','monkeypatch','nKZTA','host','status_code','hostname','error','755716ggLRbv','once','path','189wAXzOR','oncPb','46866MsHtgI','54861lDZhxL','end','http','now','PGqIH','removeListener','2406200oolUtw','statusCode','HwiEq','15eUvcCV','LhMXw','TsCtf','unpatch','18yXwiRz','socket','49568cmMqwI','dHvoF','request','method','fAwkN','headers','64572KOEAUY','MrPAt','1232625bjGuYj'];a71_0x2a3b=function(){return _0x443da4;};return a71_0x2a3b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2071c1,_0xc5b970){const _0x46da13=a72_0xfb2a,_0x2428cb=_0x2071c1();while(!![]){try{const _0x5e25dc=parseInt(_0x46da13(0x201))/0x1+parseInt(_0x46da13(0x200))/0x2*(-parseInt(_0x46da13(0x1f9))/0x3)+parseInt(_0x46da13(0x1fa))/0x4+parseInt(_0x46da13(0x1f7))/0x5+-parseInt(_0x46da13(0x1ee))/0x6+-parseInt(_0x46da13(0x1f2))/0x7+parseInt(_0x46da13(0x203))/0x8*(-parseInt(_0x46da13(0x1ed))/0x9);if(_0x5e25dc===_0xc5b970)break;else _0x2428cb['push'](_0x2428cb['shift']());}catch(_0x429e29){_0x2428cb['push'](_0x2428cb['shift']());}}}(a72_0x3731,0x60ccb),module['exports']=function(){const _0x205edc=a72_0xfb2a,_0x11499d={'yuDKG':function(_0xf9ab26,_0x924e2){return _0xf9ab26===_0x924e2;},'QllKF':_0x205edc(0x1eb),'gpYLc':_0x205edc(0x1f8),'bFQkq':function(_0x400d34,_0x2fe7df,_0x40d99e){return _0x400d34(_0x2fe7df,_0x40d99e);},'WKQDI':function(_0x5bc7e6,_0x5ee5c7,_0x27652b){return _0x5bc7e6(_0x5ee5c7,_0x27652b);},'XdVxQ':function(_0x5b72cb,_0x47eaef){return _0x5b72cb(_0x47eaef);},'zycVB':_0x205edc(0x1fc),'Hdocs':_0x205edc(0x1f4),'HwDnR':function(_0xc0bd05,_0x55c149){return _0xc0bd05*_0x55c149;},'HKVgZ':_0x205edc(0x1fe)},_0x549ba9=_0x11499d[_0x205edc(0x1ef)](require,_0x11499d['zycVB']),_0x1c1c21=_0x11499d[_0x205edc(0x1ef)](require,_0x11499d['Hdocs']),_0x88cb61=_0x11499d[_0x205edc(0x1ea)](0x1e,0x3e8);if(_0x549ba9['globalAgent']&&Object['prototype']['hasOwnProperty'][_0x205edc(0x1f6)](_0x549ba9['globalAgent'],_0x11499d['HKVgZ']))_0x549ba9[_0x205edc(0x1f3)][_0x205edc(0x1fe)]=!![],_0x1c1c21[_0x205edc(0x1f3)][_0x205edc(0x1fe)]=!![],_0x549ba9[_0x205edc(0x1f3)][_0x205edc(0x1f1)]=_0x88cb61,_0x1c1c21['globalAgent'][_0x205edc(0x1f1)]=_0x88cb61;else{const _0x30205f={};_0x30205f[_0x205edc(0x1fe)]=!![],_0x30205f[_0x205edc(0x1f1)]=_0x88cb61;const _0x140244=new _0x549ba9[(_0x205edc(0x202))](_0x30205f),_0x55ff62={};_0x55ff62[_0x205edc(0x1fe)]=!![],_0x55ff62[_0x205edc(0x1f1)]=_0x88cb61;const _0x57dea6=new _0x1c1c21[(_0x205edc(0x202))](_0x55ff62),_0x50ebde=_0x549ba9[_0x205edc(0x1ec)],_0x2af056=_0x1c1c21[_0x205edc(0x1ec)];_0x549ba9[_0x205edc(0x1ec)]=function(_0x7ae603,_0x396b93){const _0x59aaf0=_0x205edc;if(_0x11499d[_0x59aaf0(0x1fd)](_0x7ae603[_0x59aaf0(0x204)],_0x11499d[_0x59aaf0(0x1ff)]))return _0x7ae603[_0x11499d[_0x59aaf0(0x1fb)]]=_0x57dea6,_0x11499d[_0x59aaf0(0x1f0)](_0x2af056,_0x7ae603,_0x396b93);return _0x7ae603[_0x11499d['gpYLc']]=_0x140244,_0x11499d[_0x59aaf0(0x1f5)](_0x50ebde,_0x7ae603,_0x396b93);};}});function a72_0xfb2a(_0x230bb7,_0x2c8922){const _0x373177=a72_0x3731();return a72_0xfb2a=function(_0xfb2a90,_0x3f031f){_0xfb2a90=_0xfb2a90-0x1ea;let _0x54ccf7=_0x373177[_0xfb2a90];return _0x54ccf7;},a72_0xfb2a(_0x230bb7,_0x2c8922);}function a72_0x3731(){const _0x378184=['agent','3BCyKvL','2949100QleSgN','gpYLc','http','yuDKG','keepAlive','QllKF','910576wipSPv','574157TFMbMJ','Agent','16GNhajk','protocol','HwDnR','https:','request','113139tjarQq','2164410KRKPQE','XdVxQ','bFQkq','keepAliveMsecs','4971561YeoBff','globalAgent','https','WKQDI','call','3182235tkObpD'];a72_0x3731=function(){return _0x378184;};return a72_0x3731();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x3571(_0x325f8f,_0x446703){var _0x5c84e0=a73_0x5c84();return a73_0x3571=function(_0x3571e6,_0x4c0482){_0x3571e6=_0x3571e6-0x154;var _0x341eec=_0x5c84e0[_0x3571e6];return _0x341eec;},a73_0x3571(_0x325f8f,_0x446703);}function a73_0x5c84(){var _0x2821df=['106840NSmyCg','https://collector-observability.browserstack.com','284rhdIRO','PLAYWRIGHT','Playwright','934014fRRtuQ','api/v1/event','2631824QdfpuR','assign','api/v1/batch','CODECEPT','963603EedxAA','35oVzXvM','.obs_test_details','4613811NgkQUm','codeceptjs','mocha','2116845JBXHul','10301544phgfrZ','90QfwZjh'];a73_0x5c84=function(){return _0x2821df;};return a73_0x5c84();}var a73_0x328b10=a73_0x3571;(function(_0x215ce5,_0x32f3f4){var _0x1d4049=a73_0x3571,_0x30e591=_0x215ce5();while(!![]){try{var _0x1d079e=parseInt(_0x1d4049(0x163))/0x1+-parseInt(_0x1d4049(0x15f))/0x2+-parseInt(_0x1d4049(0x166))/0x3+-parseInt(_0x1d4049(0x15a))/0x4*(parseInt(_0x1d4049(0x158))/0x5)+parseInt(_0x1d4049(0x15d))/0x6*(parseInt(_0x1d4049(0x164))/0x7)+parseInt(_0x1d4049(0x156))/0x8+-parseInt(_0x1d4049(0x155))/0x9*(-parseInt(_0x1d4049(0x157))/0xa);if(_0x1d079e===_0x32f3f4)break;else _0x30e591['push'](_0x30e591['shift']());}catch(_0x1d5be0){_0x30e591['push'](_0x30e591['shift']());}}}(a73_0x5c84,0xbd555));var a73_0x2417a3={};a73_0x2417a3[a73_0x328b10(0x15b)]=a73_0x328b10(0x15c),a73_0x2417a3['MOCHA']=a73_0x328b10(0x154),a73_0x2417a3[a73_0x328b10(0x162)]=a73_0x328b10(0x167),module['exports']={'consoleHolder':Object[a73_0x328b10(0x160)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a73_0x328b10(0x159),'EVENT_ENDPOINT':a73_0x328b10(0x15e),'BATCH_ENDPOINT':a73_0x328b10(0x161),'SCREENSHOT_ENDPOINT':'api/v1/screenshots','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':a73_0x328b10(0x165),'FRAMEWORKS':a73_0x2417a3};
|