browserstack-node-sdk 1.34.25 → 1.34.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.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/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -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 a68_0x51fea7=a68_0x4a64;(function(_0x4b0eee,_0xdeec4b){const _0x446bd1=a68_0x4a64,_0x251534=_0x4b0eee();while(!![]){try{const _0x5ba463=-parseInt(_0x446bd1(0xb3))/0x1*(-parseInt(_0x446bd1(0xa0))/0x2)+parseInt(_0x446bd1(0xab))/0x3+parseInt(_0x446bd1(0xa4))/0x4*(parseInt(_0x446bd1(0x9c))/0x5)+-parseInt(_0x446bd1(0xae))/0x6*(-parseInt(_0x446bd1(0xa6))/0x7)+parseInt(_0x446bd1(0x93))/0x8+-parseInt(_0x446bd1(0x91))/0x9*(parseInt(_0x446bd1(0x96))/0xa)+-parseInt(_0x446bd1(0xa2))/0xb;if(_0x5ba463===_0xdeec4b)break;else _0x251534['push'](_0x251534['shift']());}catch(_0x5a0a88){_0x251534['push'](_0x251534['shift']());}}}(a68_0x3176,0x1fa3a));const winston=require(a68_0x51fea7(0xac)),os=require('os'),fs=require('fs'),path=require(a68_0x51fea7(0x9a)),logDir='log';!fs[a68_0x51fea7(0xa1)](logDir)&&fs[a68_0x51fea7(0xad)](logDir);const a68_0x549917={};function a68_0x3176(){const _0x15e5c4=['colorize','name','155237ZHHHyC','File','winstonLogger','/usage-debug.log','message','1023714RYBqEl','format','972432oqkEJX','join','silly','10jMPHXy','fileLogger','level','console.info','path','transports','376290lNfnEv','/usage.log','loggerFile','debugLoggerFile','2aeYMIo','existsSync','5754342ZbIQTC','combine','12lmYqpl','Console','38304gKtTaa','createLogger','\x20-\x20','timestamp','YYYY-MM-DD\x20HH:mm:ss','332043WqpAOQ','winston','mkdirSync','168FMGLdo','loggerConsole','printf'];a68_0x3176=function(){return _0x15e5c4;};return a68_0x3176();}function a68_0x4a64(_0x5b202c,_0x1338d7){const _0x31768a=a68_0x3176();return a68_0x4a64=function(_0x4a64f7,_0x118f4e){_0x4a64f7=_0x4a64f7-0x8f;let _0x289d71=_0x31768a[_0x4a64f7];return _0x289d71;},a68_0x4a64(_0x5b202c,_0x1338d7);}a68_0x549917[a68_0x51fea7(0xb2)]=a68_0x51fea7(0x99);const transports={'loggerConsole':new winston[(a68_0x51fea7(0x9b))][(a68_0x51fea7(0xa5))](a68_0x549917),'loggerFile':new winston['transports'][(a68_0x51fea7(0xb4))]({'filename':path[a68_0x51fea7(0x94)](logDir,a68_0x51fea7(0x9d))}),'debugLoggerFile':new winston[(a68_0x51fea7(0x9b))][(a68_0x51fea7(0xb4))]({'filename':path[a68_0x51fea7(0x94)](logDir,a68_0x51fea7(0x8f)),'level':a68_0x51fea7(0x95)})},a68_0x39e1cd={};a68_0x39e1cd[a68_0x51fea7(0x92)]=a68_0x51fea7(0xaa);const a68_0x44116b={};a68_0x44116b[a68_0x51fea7(0x98)]=!![];const winstonLoggerParams={'format':winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa3)](winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa9)](a68_0x39e1cd),winston['format'][a68_0x51fea7(0xb1)](a68_0x44116b),winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xb0)](_0x3e61c5=>_0x3e61c5[a68_0x51fea7(0xa9)]+a68_0x51fea7(0xa8)+_0x3e61c5[a68_0x51fea7(0x98)]+':\x20'+_0x3e61c5['message'])),'transports':[transports[a68_0x51fea7(0xaf)],transports['loggerFile'],transports[a68_0x51fea7(0x9f)]]},a68_0x4e6611={};a68_0x4e6611[a68_0x51fea7(0x92)]=a68_0x51fea7(0xaa);const a68_0x354b89={};a68_0x354b89[a68_0x51fea7(0x98)]=!![];const winstonFileLoggerParams={'format':winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa3)](winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa9)](a68_0x4e6611),winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xb1)](a68_0x354b89),winston['format'][a68_0x51fea7(0xb0)](_0x3de79a=>_0x3de79a[a68_0x51fea7(0x98)]+':\x20'+_0x3de79a[a68_0x51fea7(0x90)])),'transports':[transports[a68_0x51fea7(0x9e)],transports['debugLoggerFile']]};exports[a68_0x51fea7(0xb5)]=new winston[(a68_0x51fea7(0xa7))](winstonLoggerParams),exports[a68_0x51fea7(0x97)]=new winston['createLogger'](winstonFileLoggerParams),exports['logDir']=logDir,exports[a68_0x51fea7(0x9b)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x5eb8cf=a69_0x2f80;(function(_0x2118ca,_0x2648b4){const _0x3edca2=a69_0x2f80,_0x1f336a=_0x2118ca();while(!![]){try{const _0x17efa5=parseInt(_0x3edca2(0x153))/0x1*(parseInt(_0x3edca2(0x135))/0x2)+parseInt(_0x3edca2(0x112))/0x3*(-parseInt(_0x3edca2(0x147))/0x4)+-parseInt(_0x3edca2(0x13a))/0x5+-parseInt(_0x3edca2(0x13d))/0x6+parseInt(_0x3edca2(0x10f))/0x7*(-parseInt(_0x3edca2(0x125))/0x8)+-parseInt(_0x3edca2(0x15a))/0x9+parseInt(_0x3edca2(0x126))/0xa*(parseInt(_0x3edca2(0x139))/0xb);if(_0x17efa5===_0x2648b4)break;else _0x1f336a['push'](_0x1f336a['shift']());}catch(_0x155ba0){_0x1f336a['push'](_0x1f336a['shift']());}}}(a69_0x52ef,0x732ab));function a69_0x2f80(_0x1e0e53,_0x2fce70){const _0x52ef09=a69_0x52ef();return a69_0x2f80=function(_0x2f8080,_0x1d7f0f){_0x2f8080=_0x2f8080-0x10d;let _0x54be02=_0x52ef09[_0x2f8080];return _0x54be02;},a69_0x2f80(_0x1e0e53,_0x2fce70);}const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require('./performance-tester'),globals=require('./globals'),logger=require(a69_0x5eb8cf(0x11e))[a69_0x5eb8cf(0x14d)],helper=require(a69_0x5eb8cf(0x15e)),constants=require(a69_0x5eb8cf(0x137));function a69_0x52ef(){const _0x3e38ce=['name','16kRMCQi','AGpUO','aiHeal:findElementFailure','findElement','overrideExecute','aiHeal_isHealingEnabled','winstonLogger','VDsed','Successfully\x20healed\x20command\x20using\x20new\x20','using','UuLcT','getNudgeLocalNotSetError','1EsIfMs','TexfU','Healing\x20failed\x20for\x20command\x20using\x20','vXrzs','qmlyz','NjdjQ','VUZNF','925713xaLaGF','measureWrapper','nestedKeyValue','fjKEs','./helper','name_','mPYhl','capability','xbxTp','NUDGE_LOCAL_ERRORS','findElement\x20command\x20failed\x20with\x20','getId','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','aiHeal:findElementSuccess','21OjOtbb','MuWvP','css\x20selector','218442sLIkEI',';\x20Trying\x20to\x20heal','NoSuchElementError','isSelfHealEnabled','aiSdk_defaultLogDataEnabled','url','BDSnR','isBrowserstackInfra','debug','yknsO','dlBYh','error','./logger','handleFailure','McnDP','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','find','TCcvf','info','248272LEhOwW','268180IuHLtC','AaKFk','WwDOL','execute','prROB','NSYZX','parameters_','findElement\x20command\x20failed\x20with\x20cssPath:\x20','aiHeal_isAuthenticated','setTcgToken','value','getSession','aiCck','toString','SCOUF','1259974zuPAEn','ueHGc','../bin/utils/constants','NSqnN','407IxYUIn','2364785YpaXMr','qRZFa','ERRng','1142148WReLps','browserstack.local','skipHealingSuccess','initExecute','vArJH','bstack:options','AFunQ','patchExecute','getGlobal'];a69_0x52ef=function(){return _0x3e38ce;};return a69_0x52ef();}exports[a69_0x5eb8cf(0x14b)]=(_0x13c9d8,_0x153dc0)=>{const _0x24e059=a69_0x5eb8cf,_0x33f916={'VDsed':_0x24e059(0x12e),'ZMvLw':'aiHeal:setToken','yknsO':function(_0x3294b0){return _0x3294b0();},'TCcvf':_0x24e059(0x116),'TexfU':function(_0x1c1738,_0x380596){return _0x1c1738===_0x380596;},'qRZFa':_0x24e059(0x14a),'vXrzs':_0x24e059(0x14c),'prROB':_0x24e059(0x10e),'ueHGc':_0x24e059(0x10d),'VCGfG':_0x24e059(0x114),'xbxTp':'JavascriptError','FCmZl':function(_0x49e167,_0x5b77de){return _0x49e167===_0x5b77de;},'SCOUF':_0x24e059(0x111),'NjdjQ':function(_0x5170f2,_0x303666){return _0x5170f2+_0x303666;},'fURuA':_0x24e059(0x12d),'AaKFk':_0x24e059(0x113),'AFunQ':function(_0x519d1e,_0x354874){return _0x519d1e+_0x354874;},'mPYhl':_0x24e059(0x164),'qmlyz':_0x24e059(0x149),'NSqnN':function(_0x4a68f6){return _0x4a68f6();},'UuLcT':function(_0x112843,_0x2329e0){return _0x112843&&_0x2329e0;},'dlBYh':function(_0x5f2a18,_0x397e07){return _0x5f2a18===_0x397e07;},'vNbXQ':function(_0x448d90,_0x3e084e){return _0x448d90+_0x3e084e;},'vArJH':_0x24e059(0x121),'GZUxm':_0x24e059(0x14f),'BDSnR':function(_0x73e75e,_0x250332){return _0x73e75e+_0x250332;},'McnDP':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','NSYZX':function(_0x436bf0,_0x46df9a){return _0x436bf0+_0x46df9a;},'esyST':function(_0x5c8be2,_0x422813){return _0x5c8be2+_0x422813;},'EVwdb':_0x24e059(0x155),'PpnPZ':'get','AGpUO':_0x24e059(0x12c),'aiCck':_0x24e059(0x117),'bmfZj':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','fjKEs':_0x24e059(0x161),'WwDOL':_0x24e059(0x13e),'VUZNF':_0x24e059(0x142),'MuWvP':'local'},_0x3500ac=_0x13c9d8[_0x24e059(0x144)]||(helper['nestedKeyValue'](_0x153dc0,[_0x33f916['fjKEs'],_0x33f916[_0x24e059(0x128)]])||helper[_0x24e059(0x15c)](_0x153dc0,[_0x33f916[_0x24e059(0x15d)],_0x33f916[_0x24e059(0x159)],_0x33f916[_0x24e059(0x110)]]));if(!globals['getGlobal'](_0x33f916[_0x24e059(0x14e)])&&!globals[_0x24e059(0x145)](_0x33f916['vXrzs'])&&_0x3500ac)return;_0x13c9d8['patchExecute']=!![],_0x13c9d8[_0x24e059(0x140)]=_0x13c9d8[_0x24e059(0x129)],_0x13c9d8[_0x24e059(0x129)]=async _0x40e629=>{const _0x6080da=_0x24e059,_0x540937={};_0x540937[_0x6080da(0x13c)]=_0x33f916[_0x6080da(0x14e)];const _0x5197f9=_0x540937;try{if(!commandRepository['getTcgTokenStatus']()&&globals['getGlobal'](_0x33f916[_0x6080da(0x14e)])){const _0x135f45=PerformanceTester[_0x6080da(0x15b)](_0x33f916['ZMvLw'],async()=>{const _0x1fc1d7=_0x6080da;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x1fc1d7(0x12f)]((await _0x13c9d8[_0x1fc1d7(0x131)]())[_0x1fc1d7(0x165)]());const _0x234155=globals[_0x1fc1d7(0x145)](_0x5197f9[_0x1fc1d7(0x13c)]);_0x234155&&commandRepository['setAiSessionTimeStamp']((await _0x13c9d8[_0x1fc1d7(0x131)]())['getId']());}catch(_0x4655e0){logger[_0x1fc1d7(0x11d)]('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x4655e0);}});await _0x33f916['yknsO'](_0x135f45);}const _0x386530=await _0x13c9d8['initExecute'](_0x40e629);if(!helper[_0x6080da(0x119)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x6080da(0x145)](_0x33f916[_0x6080da(0x123)]))&&_0x33f916[_0x6080da(0x154)](_0x40e629[_0x6080da(0x15f)],_0x33f916[_0x6080da(0x13b)])&&!_0x40e629[_0x6080da(0x13f)]&&globals[_0x6080da(0x145)](_0x33f916[_0x6080da(0x14e)])&&globals[_0x6080da(0x145)](_0x33f916['vXrzs'])){const _0x31e955=new Date(),_0x3d4778=PerformanceTester[_0x6080da(0x15b)](_0x33f916[_0x6080da(0x12a)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x153dc0,_0x13c9d8,_0x40e629);});await _0x33f916[_0x6080da(0x11b)](_0x3d4778);}return _0x386530;}catch(_0x14442e){logger[_0x6080da(0x11a)](_0x33f916[_0x6080da(0x136)]);try{if(!helper[_0x6080da(0x119)]()&&(_0x33f916[_0x6080da(0x154)](_0x14442e[_0x6080da(0x146)],_0x33f916['VCGfG'])||_0x33f916[_0x6080da(0x154)](_0x14442e[_0x6080da(0x146)],_0x33f916[_0x6080da(0x162)]))&&_0x33f916['FCmZl'](_0x40e629['name_'],_0x33f916[_0x6080da(0x13b)])&&commandRepository[_0x6080da(0x115)]()&&globals[_0x6080da(0x145)](_0x33f916[_0x6080da(0x14e)])&&globals['getGlobal'](_0x33f916[_0x6080da(0x156)])){_0x33f916['FCmZl'](_0x40e629['parameters_']['using'],_0x33f916[_0x6080da(0x134)])?logger['info'](_0x33f916[_0x6080da(0x158)](_0x33f916[_0x6080da(0x158)](_0x33f916['fURuA'],_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)]),_0x33f916[_0x6080da(0x127)])):logger[_0x6080da(0x124)](_0x33f916['NjdjQ'](_0x33f916['NjdjQ'](_0x33f916[_0x6080da(0x143)](_0x33f916['AFunQ'](_0x33f916[_0x6080da(0x160)],_0x40e629[_0x6080da(0x12c)][_0x6080da(0x150)]),':\x20'),_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)]),_0x33f916['AaKFk']));const _0x3b97a6=PerformanceTester[_0x6080da(0x15b)](_0x33f916[_0x6080da(0x157)],async()=>{const _0x4f219e=_0x6080da;return await aiSdkWrapper[_0x4f219e(0x11f)](_0x153dc0,_0x13c9d8,_0x40e629);}),_0x4075c9=new Date(),{locatorType:_0xd840f4,locatorValue:_0x1ce8f9,commandHealed:_0x530465}=await _0x33f916[_0x6080da(0x138)](_0x3b97a6);if(_0x33f916[_0x6080da(0x151)](_0xd840f4,_0x1ce8f9)){_0x40e629[_0x6080da(0x12c)][_0x6080da(0x150)]=_0xd840f4,_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)]=_0x1ce8f9,_0x40e629[_0x6080da(0x13f)]=!![];const _0x190343=_0x13c9d8[_0x6080da(0x129)](_0x40e629);return _0x33f916[_0x6080da(0x11c)](_0xd840f4,_0x33f916[_0x6080da(0x134)])?logger['info'](_0x33f916['vNbXQ'](_0x33f916[_0x6080da(0x141)],_0x1ce8f9)):logger['info'](_0x33f916[_0x6080da(0x158)](_0x33f916[_0x6080da(0x158)](_0x33f916['NjdjQ'](_0x33f916['GZUxm'],_0xd840f4),':\x20'),_0x1ce8f9)),_0x190343;}else!_0x530465&&(_0x33f916[_0x6080da(0x11c)](_0xd840f4,_0x33f916[_0x6080da(0x134)])?logger['info'](_0x33f916[_0x6080da(0x118)](_0x33f916[_0x6080da(0x120)],_0x40e629['parameters_']['value'])):logger[_0x6080da(0x124)](_0x33f916[_0x6080da(0x12b)](_0x33f916['esyST'](_0x33f916['BDSnR'](_0x33f916['EVwdb'],_0x40e629[_0x6080da(0x12c)]['using']),':\x20'),_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)])));}!_0x3500ac&&_0x33f916[_0x6080da(0x11c)](_0x40e629[_0x6080da(0x15f)],_0x33f916['PpnPZ'])&&helper[_0x6080da(0x15c)](_0x40e629,[_0x33f916[_0x6080da(0x148)],_0x33f916[_0x6080da(0x132)]])&&!!constants[_0x6080da(0x163)][_0x6080da(0x122)](_0x25bc16=>{const _0x2f2fd4=_0x6080da;return _0x14442e[_0x2f2fd4(0x133)]()['includes'](_0x25bc16);})&&helper[_0x6080da(0x152)](_0x40e629[_0x6080da(0x12c)][_0x6080da(0x117)],!![]);}catch(_0x40ef92){logger['debug'](_0x33f916['bmfZj'],_0x40ef92);}throw _0x14442e;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a70_0x56ea(_0x55940a,_0x29fa43){var _0x5e039e=a70_0x5e03();return a70_0x56ea=function(_0x56ea76,_0x1dfa05){_0x56ea76=_0x56ea76-0x1c5;var _0x3b919c=_0x5e039e[_0x56ea76];return _0x3b919c;},a70_0x56ea(_0x55940a,_0x29fa43);}function a70_0x5e03(){var _0x4420ea=['quitCount_','overrideTakeScreenshot','patchQuit','5HVvZyD','takeScreenshot','gKBIq','vWElw','687263bGdqGQ','oSFgp','11662944adDYyH','overrideQuit','830232NpvQJF','patchScreenshot','74240sRGHPj','AKqvU','6KtBYzY','72WdogMJ','KGveK','7XOrNsa','4|2|3|0|5|1','pid','split','2217120nsckZB','quit','1433616hIHlrw','WaYTk','1133aFFyEj','initScreenshot','initQuit','TseVj','BS_TESTOPS_ALLOW_SCREENSHOTS','750194APHqRr','fVhmg','FKLRy','oKJCG','0|2|1|3|4','true','env','zaYIE','TEST_SCREENSHOT'];a70_0x5e03=function(){return _0x4420ea;};return a70_0x5e03();}var a70_0x577c3d=a70_0x56ea;(function(_0x19a15e,_0x1fe14c){var _0x422d58=a70_0x56ea,_0x97ce7e=_0x19a15e();while(!![]){try{var _0x67e3d7=parseInt(_0x422d58(0x1eb))/0x1+-parseInt(_0x422d58(0x1db))/0x2*(parseInt(_0x422d58(0x1cb))/0x3)+-parseInt(_0x422d58(0x1d2))/0x4*(parseInt(_0x422d58(0x1e7))/0x5)+-parseInt(_0x422d58(0x1d4))/0x6*(-parseInt(_0x422d58(0x1ce))/0x7)+-parseInt(_0x422d58(0x1c7))/0x8*(parseInt(_0x422d58(0x1cc))/0x9)+parseInt(_0x422d58(0x1c9))/0xa*(parseInt(_0x422d58(0x1d6))/0xb)+parseInt(_0x422d58(0x1c5))/0xc;if(_0x67e3d7===_0x1fe14c)break;else _0x97ce7e['push'](_0x97ce7e['shift']());}catch(_0x3108d9){_0x97ce7e['push'](_0x97ce7e['shift']());}}}(a70_0x5e03,0x80ecd),exports[a70_0x577c3d(0x1e5)]=_0x3e5b07=>{var _0x1d23f5=a70_0x577c3d,_0x31ab0e={'TeahB':_0x1d23f5(0x1cf),'oKJCG':function(_0x40b079,_0x463a4d){return _0x40b079!==_0x463a4d;},'gKBIq':_0x1d23f5(0x1e0),'WaYTk':_0x1d23f5(0x1e3),'FNtjA':function(_0x1b43da,_0x13d60f){return _0x1b43da(_0x13d60f);}},_0x182583=_0x31ab0e['TeahB'][_0x1d23f5(0x1d1)]('|'),_0x4d80a2=0x0;while(!![]){switch(_0x182583[_0x4d80a2++]){case'0':_0x3e5b07[_0x1d23f5(0x1c8)]=!![];continue;case'1':_0x3e5b07[_0x1d23f5(0x1e8)]=()=>{var _0x56ae64=_0x1d23f5,_0x4ace3b={'FKLRy':_0x4273d2[_0x56ae64(0x1ca)],'KGveK':function(_0xddfa24,_0x4430df){return _0x4273d2['TuDTJ'](_0xddfa24,_0x4430df);}};return new Promise(function(_0x48738c,_0x15c31a){var _0x7d113f=_0x56ae64,_0x40d26b={'Ewsuj':_0x4ace3b[_0x7d113f(0x1dd)],'zaYIE':function(_0x421867,_0x2b4007){var _0x2f8387=_0x7d113f;return _0x4ace3b[_0x2f8387(0x1cd)](_0x421867,_0x2b4007);}};_0x3e5b07['initScreenshot']()['then'](_0x59cf5c=>{var _0x3d7662=_0x7d113f;process['emit']('bs:addLog:'+process[_0x3d7662(0x1d0)],{'timestamp':new Date()['toISOString'](),'message':_0x59cf5c,'kind':_0x40d26b['Ewsuj']}),_0x40d26b[_0x3d7662(0x1e2)](_0x48738c,_0x59cf5c);});});};continue;case'2':if(_0x31ab0e[_0x1d23f5(0x1de)](process[_0x1d23f5(0x1e1)][_0x1d23f5(0x1da)],_0x31ab0e[_0x1d23f5(0x1e9)]))return;continue;case'3':if(_0x3e5b07[_0x1d23f5(0x1c8)])return;continue;case'4':var _0x4273d2={'AKqvU':_0x31ab0e[_0x1d23f5(0x1d5)],'TuDTJ':function(_0x4d12c2,_0x215164){return _0x31ab0e['FNtjA'](_0x4d12c2,_0x215164);}};continue;case'5':_0x3e5b07[_0x1d23f5(0x1d7)]=_0x3e5b07[_0x1d23f5(0x1e8)];continue;}break;}},exports[a70_0x577c3d(0x1c6)]=(_0xcbb166,_0x321590=null)=>{var _0x1bf0e0=a70_0x577c3d,_0x20b027={'oSFgp':_0x1bf0e0(0x1df),'ESABy':function(_0x293663){return _0x293663();},'nPQTC':function(_0x4f8c38,_0xf49e98){return _0x4f8c38>_0xf49e98;}},_0x16942a=_0x20b027[_0x1bf0e0(0x1ec)][_0x1bf0e0(0x1d1)]('|'),_0x54de1e=0x0;while(!![]){switch(_0x16942a[_0x54de1e++]){case'0':var _0x2b7ff5={'TseVj':function(_0x29f082){return _0x20b027['ESABy'](_0x29f082);},'vWElw':function(_0x48ae14,_0x376904){return _0x20b027['nPQTC'](_0x48ae14,_0x376904);}};continue;case'1':_0xcbb166[_0x1bf0e0(0x1e6)]=!![];continue;case'2':if(_0xcbb166[_0x1bf0e0(0x1e6)])return;continue;case'3':_0xcbb166[_0x1bf0e0(0x1d8)]=_0xcbb166[_0x1bf0e0(0x1d3)];continue;case'4':_0xcbb166[_0x1bf0e0(0x1d3)]=()=>{var _0x131112=_0x1bf0e0,_0x3ddbbf={'fVhmg':function(_0x259834){var _0x509e3d=a70_0x56ea;return _0x2b7ff5[_0x509e3d(0x1d9)](_0x259834);}};if(_0x321590){_0x321590[_0x131112(0x1e4)]+=0x1;if(_0x2b7ff5[_0x131112(0x1ea)](_0x321590[_0x131112(0x1e4)],0x1))return _0xcbb166[_0x131112(0x1d8)]();}else{_0xcbb166[_0x131112(0x1e4)]+=0x1;if(_0x2b7ff5[_0x131112(0x1ea)](_0xcbb166[_0x131112(0x1e4)],0x1))return _0xcbb166['initQuit']();}return new Promise(function(_0x59cb02){var _0x16f98c=_0x131112;_0x3ddbbf[_0x16f98c(0x1dc)](_0x59cb02);});};continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x327e73=a71_0xbba1;function a71_0xbba1(_0x109450,_0x376265){const _0x5d824b=a71_0x5d82();return a71_0xbba1=function(_0xbba1f6,_0x496879){_0xbba1f6=_0xbba1f6-0x83;let _0x45a8ab=_0x5d824b[_0xbba1f6];return _0x45a8ab;},a71_0xbba1(_0x109450,_0x376265);}(function(_0x12392,_0x153db6){const _0x23191e=a71_0xbba1,_0x655fa6=_0x12392();while(!![]){try{const _0x4e4b5c=-parseInt(_0x23191e(0xa1))/0x1*(parseInt(_0x23191e(0xac))/0x2)+-parseInt(_0x23191e(0x9a))/0x3*(parseInt(_0x23191e(0xa5))/0x4)+parseInt(_0x23191e(0x92))/0x5+-parseInt(_0x23191e(0x9f))/0x6+parseInt(_0x23191e(0xb6))/0x7*(-parseInt(_0x23191e(0x9c))/0x8)+-parseInt(_0x23191e(0x8f))/0x9+-parseInt(_0x23191e(0x99))/0xa*(-parseInt(_0x23191e(0x97))/0xb);if(_0x4e4b5c===_0x153db6)break;else _0x655fa6['push'](_0x655fa6['shift']());}catch(_0x9e52d1){_0x655fa6['push'](_0x655fa6['shift']());}}}(a71_0x5d82,0xdc781));const fs=require('fs'),path=require(a71_0x327e73(0xc3)),os=require('os'),{spawn}=require(a71_0x327e73(0xc6)),helper=require(a71_0x327e73(0xc5)),logger=require(a71_0x327e73(0x94))['winstonLogger'],{logDir}=require(a71_0x327e73(0x94)),testHubConstants=require(a71_0x327e73(0xb1)),PercyBinary=require(a71_0x327e73(0xc0));function a71_0x5d82(){const _0x210943=['yxNWz','6244qfKlbl','app:exec','flags','vnJqO','close','healthcheck','projectName','51620PHkGgq','createPercyConfig','ENV_VAR','Percy\x20config\x20created\x20at\x20','automate','../../helpers/testhub/constants','MsrMF','exec:stop','stringify','debug','12475876SbOScM','qohMd','stdout','GgRCF','getBinaryPath','push','assign','percyOptions','kGXDj','&type=','./PercyBinary','percy/healthcheck','stop','path','fetchPercyToken','../helper','child_process','pipe','tmpdir','kCRGZ',':start','token','join','GNNgj','app','isProcessRunning','data','version','uZWoe','Percy\x20healthcheck\x20successful','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','vSiTh','percy.json','exports','writeFile','16072965BgjVaw','env','GET','8747200ptPSZP','JqzSO','../logger','GEnXP','CCVJd','63259262jVCCec','error','10GCbbJR','783lkDDAk','nodeRequest','8ccRgMW','createWriteStream','Error\x20creating\x20percy\x20config:\x20','9380742CPfAdF','start','41fuekhz','MFjzX','JjrMM'];a71_0x5d82=function(){return _0x210943;};return a71_0x5d82();}class Percy{#logfile=path['join'](logDir,'percy.log');#address=process[a71_0x327e73(0x90)]['PERCY_SERVER_ADDRESS']||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a71_0x327e73(0x85)]=![];constructor(_0x2c0daf){const _0x18d2e5=a71_0x327e73;this.#config=_0x2c0daf,!!_0x2c0daf[_0x18d2e5(0x84)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x17827b=a71_0x327e73;if(!this.#binaryPath){const _0xd5c100=new PercyBinary();this.#binaryPath=await _0xd5c100[_0x17827b(0xba)](this.#config);}return this.#binaryPath;}async #sleep(_0x5b92e4){return new Promise(_0x3aa69b=>setTimeout(_0x3aa69b,_0x5b92e4));}async[a71_0x327e73(0xaa)](){const _0x47c7ed=a71_0x327e73,_0x40da45={};_0x40da45['GEnXP']=_0x47c7ed(0x91),_0x40da45[_0x47c7ed(0x88)]=_0x47c7ed(0xc1);const _0x3e49e2=_0x40da45;try{const _0x13d922=await helper[_0x47c7ed(0x9b)](_0x3e49e2[_0x47c7ed(0x95)],_0x3e49e2[_0x47c7ed(0x88)],null,null,this.#address);if(_0x13d922)return!![];}catch(_0x291dad){return![];}}async[a71_0x327e73(0xa0)](){const _0x23d5a9=a71_0x327e73,_0x677c25={'MFjzX':_0x23d5a9(0xa6),'jlvVV':'exec','GNNgj':function(_0x13c18d,_0x4d392c,_0x5071fd,_0x22c1df){return _0x13c18d(_0x4d392c,_0x5071fd,_0x22c1df);},'MUVUo':_0x23d5a9(0xa9),'MsrMF':_0x23d5a9(0x89)},_0x4316e0=await this.#getBinaryPath(),_0x5e8db4={};_0x5e8db4[_0x23d5a9(0xa7)]='a';const _0x1c42d8=fs[_0x23d5a9(0x9d)](this.#logfile,_0x5e8db4),_0x426c56=await this[_0x23d5a9(0xc4)](),_0x43c254=await this[_0x23d5a9(0xad)]();if(!_0x426c56)return![];const _0x4a5919=[(this.#isApp?_0x677c25[_0x23d5a9(0xa2)]:_0x677c25['jlvVV'])+_0x23d5a9(0xca)];_0x43c254&&_0x4a5919[_0x23d5a9(0xbb)]('-c',_0x43c254);this.#proc=_0x677c25[_0x23d5a9(0x83)](spawn,_0x4316e0,_0x4a5919,{'env':Object[_0x23d5a9(0xbc)](process['env'],{'PERCY_TOKEN':_0x426c56,'TH_BUILD_UUID':process[_0x23d5a9(0x90)][testHubConstants[_0x23d5a9(0xae)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x23d5a9(0xb8)][_0x23d5a9(0xc7)](_0x1c42d8),this.#proc['stderr'][_0x23d5a9(0xc7)](_0x1c42d8),this['isProcessRunning']=!![];var _0x643cbb=this;this.#proc['on'](_0x677c25['MUVUo'],function(_0x323d12){const _0x598c3d=_0x23d5a9;_0x643cbb[_0x598c3d(0x85)]=![];});do{const _0x388d11=await this['healthcheck']();if(_0x388d11)return logger[_0x23d5a9(0xb5)](_0x677c25[_0x23d5a9(0xb2)]),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a71_0x327e73(0xc2)](){const _0x59f5b9=a71_0x327e73,_0x14e8c8={'kGXDj':function(_0x2888cb,_0x121f59){return _0x2888cb(_0x121f59);},'JjrMM':function(_0x1e84bf,_0x3c1aa7,_0x1f0e10){return _0x1e84bf(_0x3c1aa7,_0x1f0e10);},'vSiTh':_0x59f5b9(0xb3),'vnJqO':'close'},_0x514ef3=await this.#getBinaryPath();return new Promise((_0x2490ad,_0x357205)=>{const _0x3b3b2c=_0x59f5b9,_0x1bd99c={'OpagY':function(_0x59fb8f,_0x321101){const _0x2472ac=a71_0xbba1;return _0x14e8c8[_0x2472ac(0xbe)](_0x59fb8f,_0x321101);}},_0x512db8=_0x14e8c8[_0x3b3b2c(0xa3)](spawn,_0x514ef3,[_0x14e8c8[_0x3b3b2c(0x8b)]]);_0x512db8['on'](_0x14e8c8[_0x3b3b2c(0xa8)],_0x54b454=>{const _0x418907=_0x3b3b2c;this[_0x418907(0x85)]=![],_0x1bd99c['OpagY'](_0x2490ad,_0x54b454);});});}['isRunning'](){const _0x181931=a71_0x327e73;return this[_0x181931(0x85)];}async['fetchPercyToken'](){const _0x301ba3=a71_0x327e73,_0x2f3699={};_0x2f3699['enzJy']='app',_0x2f3699['kCRGZ']=_0x301ba3(0xb0),_0x2f3699['GgRCF']=_0x301ba3(0x91),_0x2f3699[_0x301ba3(0xb7)]='Percy\x20fetch\x20token\x20success';const _0x205d1e=_0x2f3699,_0x22e89e=this.#config[_0x301ba3(0xab)];try{const _0x2ccc54=this.#isApp?_0x205d1e['enzJy']:_0x205d1e[_0x301ba3(0xc9)],_0x4a9b31=await helper[_0x301ba3(0x9b)](_0x205d1e[_0x301ba3(0xb9)],'api/app_percy/get_project_token?name='+_0x22e89e+_0x301ba3(0xbf)+_0x2ccc54,{},this.#config),_0x24665b=_0x4a9b31[_0x301ba3(0x86)];return logger[_0x301ba3(0xb5)](_0x205d1e[_0x301ba3(0xb7)]),_0x24665b[_0x301ba3(0xcb)];}catch(_0x38a72c){return logger[_0x301ba3(0x98)](_0x301ba3(0x8a)+_0x38a72c),null;}}async[a71_0x327e73(0xad)](){const _0x3a5aed=a71_0x327e73,_0x2682b6={'BViFH':function(_0x1a20db,_0x33c276){return _0x1a20db(_0x33c276);},'lOGmw':function(_0x2e1e7f,_0x1aede8){return _0x2e1e7f+_0x1aede8;},'MSVCV':_0x3a5aed(0xaf),'JqzSO':_0x3a5aed(0x8c)};if(!this.#config[_0x3a5aed(0xbd)])return null;const _0x2d8e1b=path[_0x3a5aed(0xcc)](os[_0x3a5aed(0xc8)](),_0x2682b6[_0x3a5aed(0x93)]),_0x390af9=this.#config['percyOptions'];return!_0x390af9[_0x3a5aed(0x87)]&&(_0x390af9[_0x3a5aed(0x87)]='2'),new Promise((_0x199df8,_0x4cb8d1)=>{const _0x2555c1=_0x3a5aed,_0x5a1a6c={'CCVJd':function(_0x365a4d,_0x3a8274){return _0x2682b6['BViFH'](_0x365a4d,_0x3a8274);},'yxNWz':function(_0x21ce96,_0x464647){return _0x2682b6['lOGmw'](_0x21ce96,_0x464647);},'StHxi':_0x2682b6['MSVCV']};fs[_0x2555c1(0x8e)](_0x2d8e1b,JSON[_0x2555c1(0xb4)](_0x390af9),_0x18cf2e=>{const _0x15d93a=_0x2555c1;_0x18cf2e&&(logger[_0x15d93a(0x98)](_0x15d93a(0x9e)+_0x18cf2e),_0x5a1a6c[_0x15d93a(0x96)](_0x199df8,null)),logger[_0x15d93a(0xb5)](_0x5a1a6c[_0x15d93a(0xa4)](_0x5a1a6c['StHxi'],_0x2d8e1b)),_0x5a1a6c[_0x15d93a(0x96)](_0x199df8,_0x2d8e1b);});});}}module[a71_0x327e73(0x8d)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x2a43dd=a72_0x5557;(function(_0x5b634e,_0xf980e2){const _0x55b812=a72_0x5557,_0x2ccca0=_0x5b634e();while(!![]){try{const _0x4a9dda=parseInt(_0x55b812(0x19f))/0x1*(parseInt(_0x55b812(0x161))/0x2)+-parseInt(_0x55b812(0x1cf))/0x3*(-parseInt(_0x55b812(0x195))/0x4)+parseInt(_0x55b812(0x168))/0x5+parseInt(_0x55b812(0x1dc))/0x6+-parseInt(_0x55b812(0x170))/0x7*(-parseInt(_0x55b812(0x173))/0x8)+parseInt(_0x55b812(0x194))/0x9*(-parseInt(_0x55b812(0x18f))/0xa)+-parseInt(_0x55b812(0x1c4))/0xb*(parseInt(_0x55b812(0x1c7))/0xc);if(_0x4a9dda===_0xf980e2)break;else _0x2ccca0['push'](_0x2ccca0['shift']());}catch(_0xa96f48){_0x2ccca0['push'](_0x2ccca0['shift']());}}}(a72_0x45ff,0xee9a4));function a72_0x5557(_0x1c4e05,_0x3e7bb7){const _0x45ffe3=a72_0x45ff();return a72_0x5557=function(_0x55571f,_0x2e073d){_0x55571f=_0x55571f-0x15c;let _0x1c7295=_0x45ffe3[_0x55571f];return _0x1c7295;},a72_0x5557(_0x1c4e05,_0x3e7bb7);}const {https}=require(a72_0x2a43dd(0x17c)),url=require('url'),yauzl=require(a72_0x2a43dd(0x17f)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a72_0x2a43dd(0x186)),HttpsProxyAgent=require(a72_0x2a43dd(0x17d)),logger=require('../logger')[a72_0x2a43dd(0x1d1)];class PercyBinary{#hostOS=process[a72_0x2a43dd(0x183)];#httpPath=null;#binaryName=a72_0x2a43dd(0x176);#orderedPaths=[path[a72_0x2a43dd(0x1e1)](this.#homedir(),a72_0x2a43dd(0x1a0)),process['cwd'](),os['tmpdir']()];constructor(){const _0x4914f5=a72_0x2a43dd,_0x5af9e5={};_0x5af9e5['XvwEz']=_0x4914f5(0x160),_0x5af9e5[_0x4914f5(0x1bb)]=function(_0x5d2401,_0x275700){return _0x5d2401+_0x275700;},_0x5af9e5['jirze']=_0x4914f5(0x1a8),_0x5af9e5['Wflag']='/percy-win.zip',_0x5af9e5[_0x4914f5(0x171)]=_0x4914f5(0x1ca),_0x5af9e5[_0x4914f5(0x187)]='/percy-linux.zip';const _0x3fc4aa=_0x5af9e5,_0x3019a0=_0x3fc4aa[_0x4914f5(0x1c8)];if(this.#hostOS[_0x4914f5(0x1ba)](/darwin|mac os/i))this.#httpPath=_0x3fc4aa[_0x4914f5(0x1bb)](_0x3019a0,_0x3fc4aa[_0x4914f5(0x1c2)]);else this.#hostOS[_0x4914f5(0x1ba)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3fc4aa[_0x4914f5(0x1bb)](_0x3019a0,_0x3fc4aa[_0x4914f5(0x1b8)]),this.#binaryName=_0x3fc4aa[_0x4914f5(0x171)]):this.#httpPath=_0x3fc4aa[_0x4914f5(0x1bb)](_0x3019a0,_0x3fc4aa[_0x4914f5(0x187)]);}#getAvailableDirs(){const _0x4d9bf9=a72_0x2a43dd,_0x2d24b1={};_0x2d24b1['KmtJF']=function(_0x41abac,_0x4fb2dc){return _0x41abac<_0x4fb2dc;},_0x2d24b1[_0x4d9bf9(0x1a5)]=_0x4d9bf9(0x199);const _0x5ca302=_0x2d24b1;for(var _0x1b2f75=0x0;_0x5ca302['KmtJF'](_0x1b2f75,this.#orderedPaths[_0x4d9bf9(0x188)]);_0x1b2f75++){var _0x5e781f=this.#orderedPaths[_0x1b2f75];if(this.#makePath(_0x5e781f))return _0x5e781f;}throw new Error(_0x5ca302[_0x4d9bf9(0x1a5)]);}#makePath(_0x48a73e){const _0x590792=a72_0x2a43dd;try{return!this.#checkPath(_0x48a73e)&&fs[_0x590792(0x1d3)](_0x48a73e),!![];}catch{return![];}}#checkPath(_0x2b5858,_0x4f4193){const _0x3b1fa3=a72_0x2a43dd,_0x37f210={};_0x37f210['SYTRc']=function(_0x35cc46,_0x5bff4b){return _0x35cc46|_0x5bff4b;},_0x37f210[_0x3b1fa3(0x1c1)]=function(_0x18675d,_0xd33565){return _0x18675d!==_0xd33565;},_0x37f210[_0x3b1fa3(0x1b0)]=_0x3b1fa3(0x197);const _0x5696c0=_0x37f210;_0x4f4193=_0x4f4193||_0x5696c0[_0x3b1fa3(0x1ae)](fs['R_OK'],fs[_0x3b1fa3(0x1a6)]);try{return fs[_0x3b1fa3(0x165)](_0x2b5858,_0x4f4193),!![];}catch(_0x49f5d1){if(_0x5696c0[_0x3b1fa3(0x1c1)](typeof fs[_0x3b1fa3(0x165)],_0x5696c0[_0x3b1fa3(0x1b0)]))return![];try{return fs[_0x3b1fa3(0x178)](_0x2b5858),!![];}catch(_0x36b797){return![];}}}async[a72_0x2a43dd(0x1c9)](_0xfcc868){const _0x947e74=a72_0x2a43dd,_0x3ef94d={};_0x3ef94d[_0x947e74(0x19d)]=_0x947e74(0x1bd);const _0x3c4442=_0x3ef94d;var _0x2ad73f=this.#getAvailableDirs(),_0x4d257e=path['join'](_0x2ad73f,this.#binaryName);if(this.#checkPath(_0x4d257e,fs[_0x947e74(0x1df)]))return _0x4d257e;const _0x4f3552=await this[_0x947e74(0x181)](_0xfcc868,_0x2ad73f),_0xd6bb4a=await this['validateBinary'](_0x4f3552);if(!_0xd6bb4a)return logger[_0x947e74(0x19c)](_0x3c4442[_0x947e74(0x19d)]),await this[_0x947e74(0x181)](_0xfcc868,_0x2ad73f);return _0x4f3552;}async[a72_0x2a43dd(0x1d8)](_0x32bb00){const _0x54b305=a72_0x2a43dd,_0x2cef09={'yfAuD':function(_0x34f518,_0x4bc8fd){return _0x34f518(_0x4bc8fd);},'rtSch':function(_0x4e5381,_0x391eba){return _0x4e5381(_0x391eba);},'ZdoNt':function(_0x4a18e5,_0x5bad88,_0xac33cb){return _0x4a18e5(_0x5bad88,_0xac33cb);},'UjJJX':'--version','ivmEE':_0x54b305(0x1d7),'YxkoN':_0x54b305(0x1be)},_0x32eda4=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x278091,_0x561200)=>{const _0x103904=_0x54b305,_0x1b556f={'zbubI':function(_0x58364d,_0x3d0ecd){const _0x591e7b=a72_0x5557;return _0x2cef09[_0x591e7b(0x1bc)](_0x58364d,_0x3d0ecd);}},_0x165ac4=_0x2cef09[_0x103904(0x1d2)](spawn,_0x32bb00,[_0x2cef09['UjJJX']]);_0x165ac4[_0x103904(0x1a1)]['on'](_0x2cef09[_0x103904(0x1cd)],_0x4f3760=>{const _0x6b39ca=_0x103904;_0x32eda4[_0x6b39ca(0x19a)](_0x4f3760)&&_0x2cef09[_0x6b39ca(0x1d5)](_0x278091,!![]);}),_0x165ac4['on'](_0x2cef09[_0x103904(0x16c)],()=>{const _0x537667=_0x103904;_0x1b556f[_0x537667(0x17b)](_0x278091,![]);});});}[a72_0x2a43dd(0x181)](_0x116e48,_0x12ff95){const _0x3d15ed=a72_0x2a43dd,_0x301161={'cKeAP':_0x3d15ed(0x1b2),'qpGyo':function(_0x2e822c,_0x296087){return _0x2e822c(_0x296087);},'rjbJX':function(_0x28b686,_0x3a89b1){return _0x28b686(_0x3a89b1);},'LzOcc':_0x3d15ed(0x190),'LUdaL':function(_0x21e737,_0x3d6b56){return _0x21e737===_0x3d6b56;},'KUQOR':function(_0x121a94,_0x3b41f9){return _0x121a94(_0x3b41f9);},'shtSI':_0x3d15ed(0x1b1),'oLvxi':_0x3d15ed(0x19c),'MPpiK':_0x3d15ed(0x1be),'ymvOH':_0x3d15ed(0x18c),'keuRM':function(_0x1ef99b,_0x3622ee){return _0x1ef99b(_0x3622ee);},'kFEPg':_0x3d15ed(0x175),'jYOkr':_0x3d15ed(0x15f),'xpuIm':function(_0x5e9b7b,_0x44cc12){return _0x5e9b7b+_0x44cc12;},'SUsNV':'.zip','RqUov':_0x3d15ed(0x167)};!this.#checkPath(_0x12ff95)&&fs[_0x3d15ed(0x1d3)](_0x12ff95);const _0x5ea422=this.#binaryName,_0x524d6d=path[_0x3d15ed(0x1e1)](_0x12ff95,_0x301161['xpuIm'](_0x5ea422,_0x301161[_0x3d15ed(0x169)])),_0x2a93be=path[_0x3d15ed(0x1e1)](_0x12ff95,_0x5ea422),_0x115b4b=fs['createWriteStream'](_0x524d6d),_0x317a77=url[_0x3d15ed(0x192)](this.#httpPath);if(_0x116e48[_0x3d15ed(0x1b6)]&&_0x116e48['proxyPort']){const _0x4f16c3={};_0x4f16c3[_0x3d15ed(0x1d0)]=_0x116e48[_0x3d15ed(0x1b6)],_0x4f16c3[_0x3d15ed(0x164)]=_0x116e48[_0x3d15ed(0x180)],_0x317a77[_0x3d15ed(0x16d)]=new HttpsProxyAgent(_0x4f16c3);}if(_0x116e48[_0x3d15ed(0x1d6)])try{_0x317a77['ca']=fs['readFileSync'](_0x116e48['useCaCertificate']);}catch(_0x437fa1){logger[_0x3d15ed(0x19c)](_0x301161[_0x3d15ed(0x1ad)],_0x437fa1);}return new Promise((_0x276cd9,_0x45e212)=>{const _0x453c96=_0x3d15ed,_0x99face={'mzeBk':_0x301161[_0x453c96(0x1b7)],'Aysfl':function(_0x44ffcf,_0x5d6a96){const _0x5184e5=_0x453c96;return _0x301161[_0x5184e5(0x1cc)](_0x44ffcf,_0x5d6a96);},'HwzVE':function(_0x36434f,_0x1c45ae){const _0x39f3a4=_0x453c96;return _0x301161[_0x39f3a4(0x1ab)](_0x36434f,_0x1c45ae);},'ewMpm':_0x301161['kFEPg'],'vJyEv':_0x301161['jYOkr']};https[_0x453c96(0x1a3)](_0x317a77,function(_0x54baae){const _0x889541=_0x453c96,_0x40edd3={'cZVCL':_0x301161['cKeAP'],'TeDvz':function(_0x1b392b,_0x4dedb5){const _0x3b4fb3=a72_0x5557;return _0x301161[_0x3b4fb3(0x16f)](_0x1b392b,_0x4dedb5);},'DkvfQ':function(_0x54eb94,_0x3eaeec){return _0x301161['rjbJX'](_0x54eb94,_0x3eaeec);},'LvAfb':_0x301161[_0x889541(0x15d)],'WvUDq':function(_0x612584,_0x52b734){const _0x14ee86=_0x889541;return _0x301161[_0x14ee86(0x1a4)](_0x612584,_0x52b734);},'etUCx':function(_0x25b582,_0x1bc425){const _0x5b8727=_0x889541;return _0x301161[_0x5b8727(0x184)](_0x25b582,_0x1bc425);},'cHzno':_0x301161[_0x889541(0x1a7)],'ZwftQ':_0x301161[_0x889541(0x1a9)]};_0x54baae[_0x889541(0x16b)](_0x115b4b),_0x54baae['on'](_0x301161[_0x889541(0x1a9)],function(_0xa73c54){const _0x89f9e4=_0x889541;logger['error'](_0x40edd3[_0x89f9e4(0x1c6)],_0xa73c54),_0x40edd3[_0x89f9e4(0x18b)](_0x45e212,_0xa73c54);}),_0x115b4b['on'](_0x301161[_0x889541(0x1a9)],function(_0x473a65){const _0x52d680=_0x889541;logger['error'](_0x99face[_0x52d680(0x196)],_0x473a65),_0x99face[_0x52d680(0x18d)](_0x45e212,_0x473a65);}),_0x115b4b['on'](_0x301161[_0x889541(0x182)],function(){const _0x176448=_0x889541,_0x5b4ae8={'ozAut':function(_0x5090f5,_0xe7f102){const _0x381583=a72_0x5557;return _0x99face[_0x381583(0x18d)](_0x5090f5,_0xe7f102);},'jLoEH':function(_0x525e36,_0x9a7830){const _0x35947a=a72_0x5557;return _0x99face[_0x35947a(0x185)](_0x525e36,_0x9a7830);},'FgDox':_0x99face[_0x176448(0x1a2)]},_0x553dd6={};_0x553dd6[_0x176448(0x15c)]=!![],yauzl[_0x176448(0x1b9)](_0x524d6d,_0x553dd6,function(_0x184b60,_0x194a73){const _0x3f0284=_0x176448,_0x4f56f7={'sjLDN':function(_0x473be6,_0x2448ee){return _0x40edd3['DkvfQ'](_0x473be6,_0x2448ee);},'lpxmq':_0x40edd3[_0x3f0284(0x1dd)],'FDgSJ':function(_0x1da8c0,_0x4970d9){const _0x1b6a5f=_0x3f0284;return _0x40edd3[_0x1b6a5f(0x1c0)](_0x1da8c0,_0x4970d9);}};_0x184b60&&_0x40edd3[_0x3f0284(0x1d4)](_0x45e212,_0x184b60),_0x194a73[_0x3f0284(0x19e)](),_0x194a73['on'](_0x40edd3[_0x3f0284(0x16e)],_0x336479=>{const _0xd8aae9=_0x3f0284,_0x276865={'tvXnL':function(_0x47434,_0x29771c){return _0x4f56f7['sjLDN'](_0x47434,_0x29771c);},'VGUBI':_0x4f56f7[_0xd8aae9(0x189)]};if(/\/$/[_0xd8aae9(0x19a)](_0x336479[_0xd8aae9(0x177)]))_0x194a73[_0xd8aae9(0x19e)]();else{const _0x1bd832=fs['createWriteStream'](path['join'](_0x12ff95,_0x336479[_0xd8aae9(0x177)]));_0x194a73[_0xd8aae9(0x17a)](_0x336479,function(_0x4a60f2,_0x45b245){const _0x1684e5=_0xd8aae9;_0x4a60f2&&_0x276865[_0x1684e5(0x1e0)](_0x45e212,_0x184b60),_0x45b245['on'](_0x276865[_0x1684e5(0x1aa)],function(){const _0x209ce4=_0x1684e5;_0x1bd832[_0x209ce4(0x1be)](),_0x194a73[_0x209ce4(0x19e)]();}),_0x45b245[_0x1684e5(0x16b)](_0x1bd832);}),_0x4f56f7['FDgSJ'](_0x336479[_0xd8aae9(0x177)],_0x5ea422)&&_0x194a73[_0xd8aae9(0x1be)]();}}),_0x194a73['on'](_0x40edd3['ZwftQ'],_0x7006a=>{const _0x7be81c=_0x3f0284;_0x5b4ae8[_0x7be81c(0x1b4)](_0x45e212,_0x7006a);}),_0x194a73[_0x3f0284(0x1af)](_0x40edd3['LvAfb'],()=>{const _0x52eff8=_0x3f0284,_0x11dfb6={'RqcMb':function(_0x2dd775,_0x3417a6){const _0x1a4d99=a72_0x5557;return _0x5b4ae8[_0x1a4d99(0x179)](_0x2dd775,_0x3417a6);}};fs[_0x52eff8(0x15e)](_0x2a93be,_0x5b4ae8[_0x52eff8(0x1b3)],function(_0x5b3d16){const _0x47ab66=_0x52eff8;_0x5b3d16&&_0x11dfb6['RqcMb'](_0x45e212,_0x5b3d16),_0x11dfb6[_0x47ab66(0x1ce)](_0x276cd9,_0x2a93be);}),_0x194a73['close']();});});});})['on'](_0x301161[_0x453c96(0x1a9)],function(_0xe8bab0){const _0x528ada=_0x453c96;logger[_0x528ada(0x19c)](_0x99face[_0x528ada(0x198)],_0xe8bab0),_0x99face['HwzVE'](_0x45e212,_0xe8bab0);});});}#homedir(){const _0x2d6a4d=a72_0x2a43dd,_0x340f35={};_0x340f35[_0x2d6a4d(0x191)]=function(_0x870beb,_0x2dfb2c){return _0x870beb===_0x2dfb2c;},_0x340f35['ZRRIF']=_0x2d6a4d(0x166),_0x340f35[_0x2d6a4d(0x1d9)]=_0x2d6a4d(0x162),_0x340f35[_0x2d6a4d(0x1bf)]=function(_0xb6d0ef,_0x5720b2){return _0xb6d0ef+_0x5720b2;},_0x340f35[_0x2d6a4d(0x18e)]='darwin',_0x340f35['rCBQT']='/Users/',_0x340f35[_0x2d6a4d(0x1de)]=function(_0x77b263,_0x46279c){return _0x77b263===_0x46279c;},_0x340f35[_0x2d6a4d(0x174)]=_0x2d6a4d(0x18a),_0x340f35[_0x2d6a4d(0x1c5)]=function(_0x467dba,_0x5a01ad){return _0x467dba===_0x5a01ad;},_0x340f35['FZMCV']=_0x2d6a4d(0x1db),_0x340f35[_0x2d6a4d(0x17e)]=_0x2d6a4d(0x1cb),_0x340f35[_0x2d6a4d(0x16a)]=function(_0x1bb497,_0x33b148){return _0x1bb497||_0x33b148;};const _0x3dc45c=_0x340f35;if(_0x3dc45c[_0x2d6a4d(0x191)](typeof os['homedir'],_0x3dc45c['ZRRIF']))return os['homedir']();const _0xfe336e=process[_0x2d6a4d(0x19b)],_0x2c7f70=_0xfe336e[_0x2d6a4d(0x1b5)],_0xa0ea0e=_0xfe336e['LOGNAME']||_0xfe336e['USER']||_0xfe336e[_0x2d6a4d(0x163)]||_0xfe336e['USERNAME'];if(_0x3dc45c[_0x2d6a4d(0x191)](process[_0x2d6a4d(0x183)],_0x3dc45c[_0x2d6a4d(0x1d9)]))return _0xfe336e['USERPROFILE']||_0x3dc45c[_0x2d6a4d(0x1bf)](_0xfe336e[_0x2d6a4d(0x1ac)],_0xfe336e[_0x2d6a4d(0x1da)])||_0x2c7f70||null;if(_0x3dc45c[_0x2d6a4d(0x191)](process[_0x2d6a4d(0x183)],_0x3dc45c[_0x2d6a4d(0x18e)]))return _0x2c7f70||(_0xa0ea0e?_0x3dc45c[_0x2d6a4d(0x1bf)](_0x3dc45c[_0x2d6a4d(0x172)],_0xa0ea0e):null);if(_0x3dc45c['sOVlJ'](process[_0x2d6a4d(0x183)],_0x3dc45c[_0x2d6a4d(0x174)]))return _0x2c7f70||(_0x3dc45c[_0x2d6a4d(0x1c5)](process[_0x2d6a4d(0x1c3)](),0x0)?_0x3dc45c['FZMCV']:_0xa0ea0e?_0x3dc45c[_0x2d6a4d(0x1bf)](_0x3dc45c[_0x2d6a4d(0x17e)],_0xa0ea0e):null);return _0x3dc45c['ScSVw'](_0x2c7f70,null);}}module[a72_0x2a43dd(0x193)]=PercyBinary;function a72_0x45ff(){const _0x35749c=['48qrUeYs','XvwEz','getBinaryPath','percy.exe','/home/','keuRM','ivmEE','RqcMb','375cSgBRl','host','winstonLogger','ZdoNt','mkdirSync','etUCx','yfAuD','useCaCertificate','data','validateBinary','giUEe','HOMEPATH','/root','2429352lZDwUW','LvAfb','sOVlJ','X_OK','tvXnL','join','lazyEntries','LzOcc','chmod','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','https://github.com/percy/cli/releases/latest/download','1161742OhArMj','win32','LNAME','port','accessSync','function','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','2105500YgXUYI','SUsNV','ScSVw','pipe','YxkoN','agent','cHzno','qpGyo','7jsNoYK','gqVSQ','rCBQT','13071256cnKQnb','rGJCi','0755','percy','fileName','statSync','jLoEH','openReadStream','zbubI','follow-redirects','https-proxy-agent','fprKB','yauzl','proxyPort','download','MPpiK','platform','KUQOR','HwzVE','child_process','emjSv','length','lpxmq','linux','TeDvz','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','Aysfl','SsaIM','2473490cDPYnf','end','sBfCc','parse','exports','27KrqeBX','56920nWtUCX','mzeBk','undefined','vJyEv','Error\x20trying\x20to\x20download\x20percy\x20binary','test','env','error','LINVi','readEntry','2anBeDQ','.browserstack','stdout','ewMpm','get','LUdaL','cxoHt','W_OK','shtSI','/percy-osx.zip','oLvxi','VGUBI','rjbJX','HOMEDRIVE','RqUov','SYTRc','once','mQqln','entry','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','FgDox','ozAut','HOME','proxyHost','ymvOH','Wflag','open','match','CLDLu','rtSch','Corrupt\x20percy\x20binary,\x20retrying','close','GrZRJ','WvUDq','cnmBM','jirze','getuid','10122827fGQVGr','qVfzw','cZVCL'];a72_0x45ff=function(){return _0x35749c;};return a72_0x45ff();}
|
|
1
|
+
const a72_0x13584b=a72_0xe34f;(function(_0x224851,_0x650bd9){const _0x3e2a9b=a72_0xe34f,_0x1feb49=_0x224851();while(!![]){try{const _0x2ae1ce=-parseInt(_0x3e2a9b(0x20a))/0x1*(parseInt(_0x3e2a9b(0x208))/0x2)+-parseInt(_0x3e2a9b(0x1fa))/0x3*(-parseInt(_0x3e2a9b(0x201))/0x4)+parseInt(_0x3e2a9b(0x1cb))/0x5*(-parseInt(_0x3e2a9b(0x1a8))/0x6)+parseInt(_0x3e2a9b(0x1a6))/0x7*(-parseInt(_0x3e2a9b(0x1ce))/0x8)+-parseInt(_0x3e2a9b(0x19f))/0x9*(-parseInt(_0x3e2a9b(0x1b2))/0xa)+parseInt(_0x3e2a9b(0x212))/0xb+parseInt(_0x3e2a9b(0x19a))/0xc*(parseInt(_0x3e2a9b(0x1d1))/0xd);if(_0x2ae1ce===_0x650bd9)break;else _0x1feb49['push'](_0x1feb49['shift']());}catch(_0x1a6421){_0x1feb49['push'](_0x1feb49['shift']());}}}(a72_0x2390,0xe1be1));const {https}=require(a72_0x13584b(0x207)),url=require(a72_0x13584b(0x1d3)),yauzl=require('yauzl'),fs=require('fs'),path=require(a72_0x13584b(0x19b)),os=require('os'),{spawn}=require(a72_0x13584b(0x1ea)),HttpsProxyAgent=require('https-proxy-agent'),logger=require('../logger')[a72_0x13584b(0x1e5)];function a72_0x2390(){const _0x56c585=['LKiSe','platform','child_process','percy','tbhsr','error','BedoB','XGqzo','YcmIx','LOGNAME','XBYDk','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','QPOUk','env','KyOVQ','undefined','QQhVU','vAkUq','12AoemEx','dIJuM','entry','parse','btOqh','homedir','/Users/','897592NPcQlF','IPFji','dBvsi','JYwIT','validateBinary','open','follow-redirects','177326WSCpwd','JNTFR','9mvzziF','JNKHg','accessSync','proxyPort','.zip','getBinaryPath','bwbJC','Ofdys','19765185PxCiJI','ftwWN','kToLs','xEBee','createWriteStream','readEntry','jtxpQ','ZkWEh','twAwk','RFzlw','.browserstack','cwd','60QuWAyg','path','function','chmod','OpcCa','2836467hvOosj','linux','zTfDm','lclgq','kcnqv','readFileSync','getuid','9568993vqMZDz','oeaxd','517236MuueER','pipe','snbVw','test','apFJE','bhxjJ','end','download','once','/percy-linux.zip','10vddYGh','Fgxqg','--version','YxIcq','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','win32','R_OK','Uffxc','AGjbh','ZbqfL','https://github.com/percy/cli/releases/latest/download','Donxn','vXfAv','TOYjC','match','useCaCertificate','XOcEk','mkdirSync','proxyHost','USER','sBYmq','W_OK','oaNqG','lazyEntries','LnvtA','90HpZljh','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','get','8uGVQPQ','hVSxB','ocmjv','4242485LUfISy','length','url','/percy-osx.zip','close','percy.exe','Ilbez','join','LdxAw','0755','nzcMg','oxpDh','LNAME','wZUwu','tmpdir','ZLMSO','DRdjo','fileName','iDNjv','DyiWH','winstonLogger','fMhAs','qEcnW'];a72_0x2390=function(){return _0x56c585;};return a72_0x2390();}function a72_0xe34f(_0xa96432,_0x53b404){const _0x2390ae=a72_0x2390();return a72_0xe34f=function(_0xe34fd4,_0x1a977a){_0xe34fd4=_0xe34fd4-0x194;let _0xf41d48=_0x2390ae[_0xe34fd4];return _0xf41d48;},a72_0xe34f(_0xa96432,_0x53b404);}class PercyBinary{#hostOS=process[a72_0x13584b(0x1e9)];#httpPath=null;#binaryName=a72_0x13584b(0x1eb);#orderedPaths=[path[a72_0x13584b(0x1d8)](this.#homedir(),a72_0x13584b(0x198)),process[a72_0x13584b(0x199)](),os[a72_0x13584b(0x1df)]()];constructor(){const _0x180b1f=a72_0x13584b,_0x1e54b7={};_0x1e54b7[_0x180b1f(0x196)]=_0x180b1f(0x1bc),_0x1e54b7['oaNqG']=function(_0x262608,_0x91f321){return _0x262608+_0x91f321;},_0x1e54b7['ZbqfL']=_0x180b1f(0x1d4),_0x1e54b7[_0x180b1f(0x195)]=function(_0x33a6c0,_0x421c8f){return _0x33a6c0+_0x421c8f;},_0x1e54b7['vBLrV']='/percy-win.zip',_0x1e54b7[_0x180b1f(0x1bd)]=_0x180b1f(0x1d6),_0x1e54b7['zTfDm']=function(_0x5ca3b0,_0x12ae45){return _0x5ca3b0+_0x12ae45;},_0x1e54b7[_0x180b1f(0x1cf)]=_0x180b1f(0x1b1);const _0x3726e1=_0x1e54b7,_0x453d29=_0x3726e1[_0x180b1f(0x196)];if(this.#hostOS[_0x180b1f(0x1c0)](/darwin|mac os/i))this.#httpPath=_0x3726e1[_0x180b1f(0x1c8)](_0x453d29,_0x3726e1[_0x180b1f(0x1bb)]);else this.#hostOS[_0x180b1f(0x1c0)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3726e1[_0x180b1f(0x195)](_0x453d29,_0x3726e1['vBLrV']),this.#binaryName=_0x3726e1[_0x180b1f(0x1bd)]):this.#httpPath=_0x3726e1[_0x180b1f(0x1a1)](_0x453d29,_0x3726e1[_0x180b1f(0x1cf)]);}#getAvailableDirs(){const _0x242cbc=a72_0x13584b,_0x1ee44f={};_0x1ee44f[_0x242cbc(0x1e1)]=function(_0x1d24a9,_0x6aeb66){return _0x1d24a9<_0x6aeb66;},_0x1ee44f[_0x242cbc(0x1e6)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x1ca70a=_0x1ee44f;for(var _0x18cc79=0x0;_0x1ca70a[_0x242cbc(0x1e1)](_0x18cc79,this.#orderedPaths[_0x242cbc(0x1d2)]);_0x18cc79++){var _0x2caba3=this.#orderedPaths[_0x18cc79];if(this.#makePath(_0x2caba3))return _0x2caba3;}throw new Error(_0x1ca70a[_0x242cbc(0x1e6)]);}#makePath(_0xedddeb){try{return!this.#checkPath(_0xedddeb)&&fs['mkdirSync'](_0xedddeb),!![];}catch{return![];}}#checkPath(_0x57597d,_0x5b7a37){const _0x3a4b5a=a72_0x13584b,_0x478c0a={};_0x478c0a[_0x3a4b5a(0x19e)]=function(_0x2fca49,_0x12cd76){return _0x2fca49|_0x12cd76;},_0x478c0a[_0x3a4b5a(0x20b)]=function(_0x5c45aa,_0x235040){return _0x5c45aa!==_0x235040;},_0x478c0a['ftwWN']=_0x3a4b5a(0x1f7);const _0x485073=_0x478c0a;_0x5b7a37=_0x5b7a37||_0x485073[_0x3a4b5a(0x19e)](fs[_0x3a4b5a(0x1b8)],fs[_0x3a4b5a(0x1c7)]);try{return fs[_0x3a4b5a(0x20c)](_0x57597d,_0x5b7a37),!![];}catch(_0x207871){if(_0x485073[_0x3a4b5a(0x20b)](typeof fs[_0x3a4b5a(0x20c)],_0x485073[_0x3a4b5a(0x213)]))return![];try{return fs['statSync'](_0x57597d),!![];}catch(_0x1c8d00){return![];}}}async[a72_0x13584b(0x20f)](_0x44385e){const _0x1fdb5c=a72_0x13584b,_0x4fa8a7={};_0x4fa8a7[_0x1fdb5c(0x1dc)]='Corrupt\x20percy\x20binary,\x20retrying';const _0x401375=_0x4fa8a7;var _0x3d8f92=this.#getAvailableDirs(),_0x7f8549=path[_0x1fdb5c(0x1d8)](_0x3d8f92,this.#binaryName);if(this.#checkPath(_0x7f8549,fs['X_OK']))return _0x7f8549;const _0xc8efcc=await this['download'](_0x44385e,_0x3d8f92),_0x53028d=await this[_0x1fdb5c(0x205)](_0xc8efcc);if(!_0x53028d)return logger[_0x1fdb5c(0x1ed)](_0x401375[_0x1fdb5c(0x1dc)]),await this[_0x1fdb5c(0x1af)](_0x44385e,_0x3d8f92);return _0xc8efcc;}async[a72_0x13584b(0x205)](_0x2b89b1){const _0x1a47bd=a72_0x13584b,_0x110ee1={'LKiSe':function(_0x42ddbe,_0x2aa75f){return _0x42ddbe(_0x2aa75f);},'YxIcq':function(_0x7c0da8,_0x3c3f31,_0x25b864){return _0x7c0da8(_0x3c3f31,_0x25b864);},'QKzDs':_0x1a47bd(0x1b4),'lclgq':'data','UENsP':_0x1a47bd(0x1d5)},_0x43c45c=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x534459,_0x47634c)=>{const _0x359005=_0x1a47bd,_0x43c04a={'wZUwu':function(_0x421950,_0xb8949d){const _0x1b17c2=a72_0xe34f;return _0x110ee1[_0x1b17c2(0x1e8)](_0x421950,_0xb8949d);}},_0x220334=_0x110ee1[_0x359005(0x1b5)](spawn,_0x2b89b1,[_0x110ee1['QKzDs']]);_0x220334['stdout']['on'](_0x110ee1[_0x359005(0x1a2)],_0x199804=>{const _0x8911c=_0x359005;_0x43c45c[_0x8911c(0x1ab)](_0x199804)&&_0x110ee1[_0x8911c(0x1e8)](_0x534459,!![]);}),_0x220334['on'](_0x110ee1['UENsP'],()=>{const _0x568187=_0x359005;_0x43c04a[_0x568187(0x1de)](_0x534459,![]);});});}[a72_0x13584b(0x1af)](_0x4e6745,_0x2ee388){const _0x4382ca=a72_0x13584b,_0x58aa31={'vXfAv':_0x4382ca(0x1f3),'usidR':function(_0x33e5e8,_0x32763d){return _0x33e5e8(_0x32763d);},'ASopa':_0x4382ca(0x1b6),'RFzlw':_0x4382ca(0x1ed),'Fgxqg':'close','ZLMSO':function(_0x2cfa4a,_0xb1327d){return _0x2cfa4a(_0xb1327d);},'XOcEk':_0x4382ca(0x1ae),'vAkUq':function(_0x2cd7c4,_0x919476){return _0x2cd7c4===_0x919476;},'QQhVU':_0x4382ca(0x1da),'VxHlQ':_0x4382ca(0x1fc),'oeaxd':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','CVLWY':function(_0x1acc4c,_0xcb1872){return _0x1acc4c+_0xcb1872;},'Ofdys':_0x4382ca(0x20e),'apFJE':_0x4382ca(0x1cc)};!this.#checkPath(_0x2ee388)&&fs[_0x4382ca(0x1c3)](_0x2ee388);const _0x3e9e6f=this.#binaryName,_0x67bb37=path['join'](_0x2ee388,_0x58aa31['CVLWY'](_0x3e9e6f,_0x58aa31[_0x4382ca(0x211)])),_0x5f5529=path['join'](_0x2ee388,_0x3e9e6f),_0x142769=fs[_0x4382ca(0x216)](_0x67bb37),_0x322eee=url[_0x4382ca(0x1fd)](this.#httpPath);if(_0x4e6745[_0x4382ca(0x1c4)]&&_0x4e6745[_0x4382ca(0x20d)]){const _0xde92c4={};_0xde92c4['host']=_0x4e6745[_0x4382ca(0x1c4)],_0xde92c4['port']=_0x4e6745['proxyPort'],_0x322eee['agent']=new HttpsProxyAgent(_0xde92c4);}if(_0x4e6745[_0x4382ca(0x1c1)])try{_0x322eee['ca']=fs[_0x4382ca(0x1a4)](_0x4e6745[_0x4382ca(0x1c1)]);}catch(_0x1f8a20){logger[_0x4382ca(0x1ed)](_0x58aa31[_0x4382ca(0x1ac)],_0x1f8a20);}return new Promise((_0x22d819,_0x50403a)=>{const _0x1e6280=_0x4382ca,_0x33c00e={'TOYjC':function(_0x27bccb,_0x2e3be8){return _0x58aa31['ZLMSO'](_0x27bccb,_0x2e3be8);},'JNTFR':_0x58aa31[_0x1e6280(0x1c2)],'NPtKE':function(_0x96f9aa,_0x2bfb23){const _0xd9c2f7=_0x1e6280;return _0x58aa31[_0xd9c2f7(0x1f9)](_0x96f9aa,_0x2bfb23);},'AZfnm':_0x58aa31[_0x1e6280(0x1f8)],'BedoB':_0x58aa31['VxHlQ'],'IPFji':_0x58aa31[_0x1e6280(0x197)],'IToju':_0x58aa31[_0x1e6280(0x1a7)],'XBYDk':function(_0x268edd,_0x5de4b2){const _0x1863c5=_0x1e6280;return _0x58aa31[_0x1863c5(0x1e0)](_0x268edd,_0x5de4b2);}};https[_0x1e6280(0x1cd)](_0x322eee,function(_0x253ac8){const _0x5afd1b=_0x1e6280,_0x5f38f4={'btOqh':_0x58aa31[_0x5afd1b(0x1be)],'bwbJC':function(_0x4e4a01,_0x444292){return _0x58aa31['usidR'](_0x4e4a01,_0x444292);},'kJVhI':_0x58aa31['ASopa']};_0x253ac8[_0x5afd1b(0x1a9)](_0x142769),_0x253ac8['on'](_0x58aa31[_0x5afd1b(0x197)],function(_0x2b2021){const _0x5817f4=_0x5afd1b;logger[_0x5817f4(0x1ed)](_0x5f38f4[_0x5817f4(0x1fe)],_0x2b2021),_0x5f38f4[_0x5817f4(0x210)](_0x50403a,_0x2b2021);}),_0x142769['on'](_0x58aa31[_0x5afd1b(0x197)],function(_0x5a50c4){const _0x1bf5a0=_0x5afd1b;logger[_0x1bf5a0(0x1ed)](_0x5f38f4['kJVhI'],_0x5a50c4),_0x5f38f4[_0x1bf5a0(0x210)](_0x50403a,_0x5a50c4);}),_0x142769['on'](_0x58aa31[_0x5afd1b(0x1b3)],function(){const _0x5deed7=_0x5afd1b,_0x184e00={'qEcnW':function(_0x5b4d6d,_0x517f9e){return _0x33c00e['TOYjC'](_0x5b4d6d,_0x517f9e);},'snbVw':_0x33c00e[_0x5deed7(0x209)],'AGjbh':function(_0x5c7bb3,_0x409140){return _0x33c00e['NPtKE'](_0x5c7bb3,_0x409140);},'Uffxc':_0x33c00e['AZfnm'],'kToLs':function(_0xdda791,_0x751f77){const _0x590cda=_0x5deed7;return _0x33c00e[_0x590cda(0x1bf)](_0xdda791,_0x751f77);},'tbhsr':_0x33c00e[_0x5deed7(0x1ee)],'bhxjJ':_0x33c00e[_0x5deed7(0x202)]},_0x5b7b97={};_0x5b7b97[_0x5deed7(0x1c9)]=!![],yauzl[_0x5deed7(0x206)](_0x67bb37,_0x5b7b97,function(_0x3840bd,_0x45ce6d){const _0x40d5e6=_0x5deed7,_0x43dcc8={'JYwIT':function(_0x6be98d,_0x16d11c){const _0x2f1c09=a72_0xe34f;return _0x184e00[_0x2f1c09(0x1e7)](_0x6be98d,_0x16d11c);},'QPOUk':_0x184e00[_0x40d5e6(0x1aa)],'dIJuM':function(_0x353d13,_0x332410){const _0x1ec7e6=_0x40d5e6;return _0x184e00[_0x1ec7e6(0x1ba)](_0x353d13,_0x332410);},'nzAPj':function(_0x787395,_0x2dc16b){const _0x3a4976=_0x40d5e6;return _0x184e00[_0x3a4976(0x1e7)](_0x787395,_0x2dc16b);},'xEBee':_0x184e00[_0x40d5e6(0x1b9)]};_0x3840bd&&_0x184e00[_0x40d5e6(0x214)](_0x50403a,_0x3840bd),_0x45ce6d[_0x40d5e6(0x217)](),_0x45ce6d['on'](_0x184e00[_0x40d5e6(0x1ec)],_0x14be13=>{const _0x21f2e1=_0x40d5e6,_0x1cfa50={'sBYmq':function(_0x2f2150,_0x258f03){const _0x3933bf=a72_0xe34f;return _0x43dcc8[_0x3933bf(0x204)](_0x2f2150,_0x258f03);},'optQh':_0x43dcc8[_0x21f2e1(0x1f4)]};if(/\/$/['test'](_0x14be13[_0x21f2e1(0x1e2)]))_0x45ce6d['readEntry']();else{const _0x456f7b=fs['createWriteStream'](path[_0x21f2e1(0x1d8)](_0x2ee388,_0x14be13['fileName']));_0x45ce6d['openReadStream'](_0x14be13,function(_0x5b2d93,_0x5f1809){const _0x537a5c=_0x21f2e1;_0x5b2d93&&_0x1cfa50[_0x537a5c(0x1c6)](_0x50403a,_0x3840bd),_0x5f1809['on'](_0x1cfa50['optQh'],function(){const _0x59b6fd=_0x537a5c;_0x456f7b[_0x59b6fd(0x1d5)](),_0x45ce6d[_0x59b6fd(0x217)]();}),_0x5f1809[_0x537a5c(0x1a9)](_0x456f7b);}),_0x43dcc8[_0x21f2e1(0x1fb)](_0x14be13[_0x21f2e1(0x1e2)],_0x3e9e6f)&&_0x45ce6d[_0x21f2e1(0x1d5)]();}}),_0x45ce6d['on'](_0x184e00[_0x40d5e6(0x1ad)],_0x3667d1=>{const _0x5233cc=_0x40d5e6;_0x43dcc8[_0x5233cc(0x204)](_0x50403a,_0x3667d1);}),_0x45ce6d[_0x40d5e6(0x1b0)](_0x184e00[_0x40d5e6(0x1aa)],()=>{const _0xcc4979=_0x40d5e6;fs[_0xcc4979(0x19d)](_0x5f5529,_0x43dcc8[_0xcc4979(0x215)],function(_0x31912c){const _0x5dccc0=_0xcc4979;_0x31912c&&_0x43dcc8['nzAPj'](_0x50403a,_0x31912c),_0x43dcc8[_0x5dccc0(0x204)](_0x22d819,_0x5f5529);}),_0x45ce6d['close']();});});});})['on'](_0x58aa31[_0x1e6280(0x197)],function(_0x25cd62){const _0x1563d9=_0x1e6280;logger['error'](_0x33c00e['IToju'],_0x25cd62),_0x33c00e[_0x1563d9(0x1f2)](_0x50403a,_0x25cd62);});});}#homedir(){const _0xc1f42=a72_0x13584b,_0xb34f88={};_0xb34f88[_0xc1f42(0x1f6)]=function(_0x5e2805,_0x4986b3){return _0x5e2805===_0x4986b3;},_0xb34f88['dBvsi']=_0xc1f42(0x19c),_0xb34f88['XGqzo']=_0xc1f42(0x1b7),_0xb34f88['PxobL']=function(_0x114290,_0x5be52c){return _0x114290+_0x5be52c;},_0xb34f88['nzcMg']=function(_0x52d711,_0x2fab4f){return _0x52d711===_0x2fab4f;},_0xb34f88[_0xc1f42(0x1d7)]='darwin',_0xb34f88[_0xc1f42(0x1e3)]=function(_0xc92968,_0x55aaff){return _0xc92968+_0x55aaff;},_0xb34f88[_0xc1f42(0x1d9)]=_0xc1f42(0x200),_0xb34f88['YcmIx']=function(_0x1867a8,_0x1b2e1a){return _0x1867a8===_0x1b2e1a;},_0xb34f88['LnvtA']=_0xc1f42(0x1a0),_0xb34f88[_0xc1f42(0x1e4)]='/root',_0xb34f88[_0xc1f42(0x194)]=function(_0x5afdef,_0x4fb32f){return _0x5afdef+_0x4fb32f;},_0xb34f88[_0xc1f42(0x1a3)]='/home/',_0xb34f88[_0xc1f42(0x1d0)]=function(_0x1550c0,_0x49cc26){return _0x1550c0||_0x49cc26;};const _0x48fea8=_0xb34f88;if(_0x48fea8['KyOVQ'](typeof os[_0xc1f42(0x1ff)],_0x48fea8[_0xc1f42(0x203)]))return os[_0xc1f42(0x1ff)]();const _0x665fdb=process[_0xc1f42(0x1f5)],_0x2ebbd3=_0x665fdb['HOME'],_0x15f5f6=_0x665fdb[_0xc1f42(0x1f1)]||_0x665fdb[_0xc1f42(0x1c5)]||_0x665fdb[_0xc1f42(0x1dd)]||_0x665fdb['USERNAME'];if(_0x48fea8[_0xc1f42(0x1f6)](process[_0xc1f42(0x1e9)],_0x48fea8[_0xc1f42(0x1ef)]))return _0x665fdb['USERPROFILE']||_0x48fea8['PxobL'](_0x665fdb['HOMEDRIVE'],_0x665fdb['HOMEPATH'])||_0x2ebbd3||null;if(_0x48fea8[_0xc1f42(0x1db)](process[_0xc1f42(0x1e9)],_0x48fea8['Ilbez']))return _0x2ebbd3||(_0x15f5f6?_0x48fea8[_0xc1f42(0x1e3)](_0x48fea8[_0xc1f42(0x1d9)],_0x15f5f6):null);if(_0x48fea8[_0xc1f42(0x1f0)](process[_0xc1f42(0x1e9)],_0x48fea8[_0xc1f42(0x1ca)]))return _0x2ebbd3||(_0x48fea8['nzcMg'](process[_0xc1f42(0x1a5)](),0x0)?_0x48fea8[_0xc1f42(0x1e4)]:_0x15f5f6?_0x48fea8[_0xc1f42(0x194)](_0x48fea8[_0xc1f42(0x1a3)],_0x15f5f6):null);return _0x48fea8[_0xc1f42(0x1d0)](_0x2ebbd3,null);}}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a73_0x47c4(_0x59ae2a,_0x40c702){var _0x349b23=a73_0x349b();return a73_0x47c4=function(_0x47c46d,_0x3adc5f){_0x47c46d=_0x47c46d-0x1a2;var _0xe58531=_0x349b23[_0x47c46d];return _0xe58531;},a73_0x47c4(_0x59ae2a,_0x40c702);}function a73_0x349b(){var _0x289d90=['1431180GnFXWw','9326XZShMt','9KCRkNN','getName','6419890aCAVrM','380684DpoLhy','213976SyfhsT','2416730loofvx','1JubndV','exports','get','77oihOuc','137568dfqBcu'];a73_0x349b=function(){return _0x289d90;};return a73_0x349b();}var a73_0x594435=a73_0x47c4;(function(_0x1cd887,_0x5d73fa){var _0x11ae42=a73_0x47c4,_0x541076=_0x1cd887();while(!![]){try{var _0x451f91=-parseInt(_0x11ae42(0x1ab))/0x1*(-parseInt(_0x11ae42(0x1a4))/0x2)+parseInt(_0x11ae42(0x1a2))/0x3+parseInt(_0x11ae42(0x1a8))/0x4+-parseInt(_0x11ae42(0x1aa))/0x5+-parseInt(_0x11ae42(0x1a3))/0x6+-parseInt(_0x11ae42(0x1ae))/0x7*(-parseInt(_0x11ae42(0x1a9))/0x8)+-parseInt(_0x11ae42(0x1a5))/0x9*(-parseInt(_0x11ae42(0x1a7))/0xa);if(_0x451f91===_0x5d73fa)break;else _0x541076['push'](_0x541076['shift']());}catch(_0x42cf27){_0x541076['push'](_0x541076['shift']());}}}(a73_0x349b,0x57e54));class PercyCaptureMap{#map={};['increment'](_0x28d2ed,_0x3f3a67){!this.#map[_0x28d2ed]&&(this.#map[_0x28d2ed]={}),!this.#map[_0x28d2ed][_0x3f3a67]&&(this.#map[_0x28d2ed][_0x3f3a67]=0x0),this.#map[_0x28d2ed][_0x3f3a67]++;}[a73_0x594435(0x1a6)](_0x1ab27c,_0x5f52b2){var _0x27c07a=a73_0x594435;return _0x1ab27c+'-'+_0x5f52b2+'-'+this[_0x27c07a(0x1ad)](_0x1ab27c,_0x5f52b2);}[a73_0x594435(0x1ad)](_0x3139e8,_0x3f3025){if(!this.#map[_0x3139e8])return 0x0;if(!this.#map[_0x3139e8][_0x3f3025])return 0x0;return this.#map[_0x3139e8][_0x3f3025];}}module[a73_0x594435(0x1ac)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a74_0xbfe2ec=a74_0x9d07;function a74_0x9d07(_0x12a333,_0x3ff67e){var _0xef1474=a74_0xef14();return a74_0x9d07=function(_0x9d076b,_0x45ee10){_0x9d076b=_0x9d076b-0xdc;var _0x578dd1=_0xef1474[_0x9d076b];return _0x578dd1;},a74_0x9d07(_0x12a333,_0x3ff67e);}(function(_0x1f112c,_0x3be430){var _0x160d9f=a74_0x9d07,_0x225724=_0x1f112c();while(!![]){try{var _0x27623e=-parseInt(_0x160d9f(0xe3))/0x1+-parseInt(_0x160d9f(0xdf))/0x2+-parseInt(_0x160d9f(0xe2))/0x3+-parseInt(_0x160d9f(0xec))/0x4+-parseInt(_0x160d9f(0xe6))/0x5*(parseInt(_0x160d9f(0xe8))/0x6)+-parseInt(_0x160d9f(0xe9))/0x7+-parseInt(_0x160d9f(0xeb))/0x8*(-parseInt(_0x160d9f(0xe0))/0x9);if(_0x27623e===_0x3be430)break;else _0x225724['push'](_0x225724['shift']());}catch(_0x4a7357){_0x225724['push'](_0x225724['shift']());}}}(a74_0xef14,0xad395));var a74_0xe6c3e2={};a74_0xe6c3e2[a74_0xbfe2ec(0xe4)]=['takeScreenshot'],a74_0xe6c3e2[a74_0xbfe2ec(0xdc)]=[a74_0xbfe2ec(0xea),a74_0xbfe2ec(0xde)];var a74_0x11d914={};function a74_0xef14(){var _0x2719f0=['element','takeScreenshot','sendKeys','2627504HNymYp','51460641khsnBG','manual','3980292scUcrR','724758hPlBRp','driver','screenshot','85toudKM','exports','219642hSJEar','5531260WcdXFY','click','8gwcTst','922204iGPYXn'];a74_0xef14=function(){return _0x2719f0;};return a74_0xef14();}a74_0x11d914[a74_0xbfe2ec(0xe4)]=[a74_0xbfe2ec(0xdd)];var a74_0x345154={};a74_0x345154[a74_0xbfe2ec(0xdc)]=[a74_0xbfe2ec(0xea)];var a74_0xb7517f={};a74_0xb7517f['auto']=a74_0xe6c3e2,a74_0xb7517f[a74_0xbfe2ec(0xe5)]=a74_0x11d914,a74_0xb7517f[a74_0xbfe2ec(0xea)]=a74_0x345154,a74_0xb7517f['testcase']={},a74_0xb7517f[a74_0xbfe2ec(0xe1)]={},module[a74_0xbfe2ec(0xe7)]=a74_0xb7517f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a75_0x132b(_0x3ba62b,_0x3377b9){const _0x154954=a75_0x1549();return a75_0x132b=function(_0x132bdf,_0x403840){_0x132bdf=_0x132bdf-0x136;let _0x4cc767=_0x154954[_0x132bdf];return _0x4cc767;},a75_0x132b(_0x3ba62b,_0x3377b9);}const a75_0x5cff6a=a75_0x132b;function a75_0x1549(){const _0x10395c=['../../helpers/testhub/utils','imYEr','NqbmC','screenshot','1488138gxiyke','LUSTI','760720fjMMll','length','name','CBkmn','screenshotApp','mPixi','browserstackPercyBestPlatform','@percy/appium-app','KKEkX','thTestCaseExecutionId','apply','@percy/selenium-webdriver','measure','622343MoAMJs','MczJF','percy:snapshot','56rPfMTs','YBLrj','408dWayDi','testCase','uuid','../performance-tester','../logger','898074uWZZmt','TdCqo','winstonLogger','error','512sBsIOv','browserstackPlatformIndex','platformIndex','6498rRCLdm','5100Webtmr','356192okNrTV'];a75_0x1549=function(){return _0x10395c;};return a75_0x1549();}(function(_0x2c1acf,_0x3b4479){const _0x3e3e7c=a75_0x132b,_0x4a44ef=_0x2c1acf();while(!![]){try{const _0x55cc2a=parseInt(_0x3e3e7c(0x152))/0x1+parseInt(_0x3e3e7c(0x15c))/0x2+parseInt(_0x3e3e7c(0x157))/0x3*(-parseInt(_0x3e3e7c(0x139))/0x4)+-parseInt(_0x3e3e7c(0x145))/0x5+parseInt(_0x3e3e7c(0x143))/0x6+-parseInt(_0x3e3e7c(0x155))/0x7*(parseInt(_0x3e3e7c(0x13e))/0x8)+-parseInt(_0x3e3e7c(0x13c))/0x9*(parseInt(_0x3e3e7c(0x13d))/0xa);if(_0x55cc2a===_0x3b4479)break;else _0x4a44ef['push'](_0x4a44ef['shift']());}catch(_0x29e4ff){_0x4a44ef['push'](_0x4a44ef['shift']());}}}(a75_0x1549,0x67ddf));const tryRequire=function(_0x459779,_0x1c4499){const _0x3034d2=a75_0x132b,_0x4b90c4={'NqbmC':function(_0x1d827c,_0x2cf0f3){return _0x1d827c(_0x2cf0f3);}};try{return _0x4b90c4[_0x3034d2(0x141)](require,_0x459779);}catch{return _0x1c4499;}},percySnapshot=tryRequire(a75_0x5cff6a(0x150),null),{percyScreenshot}=tryRequire(a75_0x5cff6a(0x150),{}),percyAppScreenshot=require(a75_0x5cff6a(0x14c)),{getCurrentTestData}=require(a75_0x5cff6a(0x13f)),PerformanceTester=require(a75_0x5cff6a(0x15a)),logger=require(a75_0x5cff6a(0x15b))[a75_0x5cff6a(0x137)];percySnapshot&&(exports['snapshot']=async function(){const _0x31e393=a75_0x5cff6a,_0x57a73d={'fVStB':function(_0x32594e,_0x188b7b){return _0x32594e!==_0x188b7b;},'imYEr':function(_0x43b440,_0x50bdbc){return _0x43b440>=_0x50bdbc;},'YBLrj':function(_0x246b16){return _0x246b16();},'mPixi':_0x31e393(0x154)};if(global[_0x31e393(0x13a)]&&_0x57a73d['fVStB'](global[_0x31e393(0x13a)],global[_0x31e393(0x14b)]))return;const _0x26f1a3=_0x57a73d[_0x31e393(0x140)](arguments[_0x31e393(0x146)],0x2)?arguments[0x1]:'',_0x3fe01a=_0x57a73d[_0x31e393(0x156)](getCurrentTestData),_0x1f18f1={};return _0x1f18f1[_0x31e393(0x147)]=_0x26f1a3,_0x1f18f1[_0x31e393(0x158)]=_0x3fe01a[_0x31e393(0x147)]||'',_0x1f18f1[_0x31e393(0x14e)]=_0x3fe01a[_0x31e393(0x159)]||'',_0x1f18f1['platformIndex']=global[_0x31e393(0x13a)],await PerformanceTester[_0x31e393(0x151)](_0x57a73d[_0x31e393(0x14a)],()=>percySnapshot[_0x31e393(0x14f)](null,arguments),_0x1f18f1);});percyScreenshot?exports['screenshot']=async function(){const _0x38ab0c=a75_0x5cff6a,_0x5d9c09={'FvFcL':function(_0x32b280,_0x356fec){return _0x32b280>=_0x356fec;},'MczJF':function(_0x3d61b7){return _0x3d61b7();},'TdCqo':'percy:screenshot'},_0x65cd8a=_0x5d9c09['FvFcL'](arguments[_0x38ab0c(0x146)],0x2)?arguments[0x1]:'',_0x4c1c4a=_0x5d9c09[_0x38ab0c(0x153)](getCurrentTestData),_0xf1cb6a={};return _0xf1cb6a[_0x38ab0c(0x147)]=_0x65cd8a,_0xf1cb6a[_0x38ab0c(0x158)]=_0x4c1c4a[_0x38ab0c(0x147)]||'',_0xf1cb6a[_0x38ab0c(0x14e)]=_0x4c1c4a['uuid']||'',_0xf1cb6a[_0x38ab0c(0x13b)]=global[_0x38ab0c(0x13a)],await PerformanceTester['measure'](_0x5d9c09[_0x38ab0c(0x136)],()=>percyScreenshot['apply'](null,arguments),_0xf1cb6a);}:exports[a75_0x5cff6a(0x142)]=()=>{const _0x3fbbd2=a75_0x5cff6a,_0xe3327c={};_0xe3327c[_0x3fbbd2(0x148)]='Unsupported\x20driver\x20for\x20percy';const _0x4cf763=_0xe3327c;logger[_0x3fbbd2(0x138)](_0x4cf763[_0x3fbbd2(0x148)]);};exports[a75_0x5cff6a(0x149)]=async function(){const _0x18f3dd=a75_0x5cff6a,_0x3f22fc={'KKEkX':function(_0x654d34,_0x4ec0ae){return _0x654d34>=_0x4ec0ae;},'LUSTI':function(_0x5abf91){return _0x5abf91();},'NqVbo':'percy:screenshot-app'},_0x3df3a2=_0x3f22fc[_0x18f3dd(0x14d)](arguments[_0x18f3dd(0x146)],0x2)?arguments[0x1]:'',_0x5c878a=_0x3f22fc[_0x18f3dd(0x144)](getCurrentTestData),_0xbc069={};return _0xbc069[_0x18f3dd(0x147)]=_0x3df3a2,_0xbc069[_0x18f3dd(0x158)]=_0x5c878a[_0x18f3dd(0x147)]||'',_0xbc069['thTestCaseExecutionId']=_0x5c878a[_0x18f3dd(0x159)]||'',_0xbc069[_0x18f3dd(0x13b)]=global[_0x18f3dd(0x13a)],await PerformanceTester[_0x18f3dd(0x151)](_0x3f22fc['NqVbo'],()=>percyAppScreenshot['apply'](null,arguments),_0xbc069);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x31e7(_0x3421d7,_0x5a9b9a){var _0x3ce92c=a76_0x3ce9();return a76_0x31e7=function(_0x31e7f9,_0x39bd2d){_0x31e7f9=_0x31e7f9-0x176;var _0x4a6859=_0x3ce92c[_0x31e7f9];return _0x4a6859;},a76_0x31e7(_0x3421d7,_0x5a9b9a);}var a76_0xf833c8=a76_0x31e7;(function(_0x5b66c5,_0x58a613){var _0x4799b4=a76_0x31e7,_0x4c6758=_0x5b66c5();while(!![]){try{var _0x10e457=parseInt(_0x4799b4(0x17c))/0x1+parseInt(_0x4799b4(0x17d))/0x2*(parseInt(_0x4799b4(0x180))/0x3)+-parseInt(_0x4799b4(0x179))/0x4+-parseInt(_0x4799b4(0x176))/0x5+-parseInt(_0x4799b4(0x177))/0x6*(parseInt(_0x4799b4(0x17f))/0x7)+parseInt(_0x4799b4(0x17a))/0x8*(parseInt(_0x4799b4(0x17e))/0x9)+parseInt(_0x4799b4(0x17b))/0xa;if(_0x10e457===_0x58a613)break;else _0x4c6758['push'](_0x4c6758['shift']());}catch(_0x5c2588){_0x4c6758['push'](_0x4c6758['shift']());}}}(a76_0x3ce9,0x28f37),module['exports']=require(a76_0xf833c8(0x178)));function a76_0x3ce9(){var _0x425ce=['529250bIdzvt','1470IMbEeS','./Percy','319888CofwMg','61800qONavl','1746950VBuwms','204569FeZRgG','2zlJIKN','81pMfxqe','3073dSufSw','36969aazUiw'];a76_0x3ce9=function(){return _0x425ce;};return a76_0x3ce9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x13240e=a77_0x480d;(function(_0x38e650,_0x2d4d71){const _0xd2a66=a77_0x480d,_0x5d9be8=_0x38e650();while(!![]){try{const _0x59daf3=-parseInt(_0xd2a66(0x1d6))/0x1*(parseInt(_0xd2a66(0x200))/0x2)+-parseInt(_0xd2a66(0x20b))/0x3*(-parseInt(_0xd2a66(0x1e2))/0x4)+-parseInt(_0xd2a66(0x1f7))/0x5*(parseInt(_0xd2a66(0x1d0))/0x6)+parseInt(_0xd2a66(0x1c6))/0x7*(parseInt(_0xd2a66(0x1f0))/0x8)+-parseInt(_0xd2a66(0x20d))/0x9+parseInt(_0xd2a66(0x1c8))/0xa*(parseInt(_0xd2a66(0x1d3))/0xb)+parseInt(_0xd2a66(0x20c))/0xc;if(_0x59daf3===_0x2d4d71)break;else _0x5d9be8['push'](_0x5d9be8['shift']());}catch(_0x27f04e){_0x5d9be8['push'](_0x5d9be8['shift']());}}}(a77_0x2870,0xd9657));const Percy=require(a77_0x13240e(0x1fa)),PercySDK=require(a77_0x13240e(0x1fb)),PercyCaptureModes=require(a77_0x13240e(0x1db)),PercyCaptureMap=require(a77_0x13240e(0x1d5)),logger=require(a77_0x13240e(0x1e0))[a77_0x13240e(0x1cc)],helper=require('../helper'),PerformanceTester=require(a77_0x13240e(0x1f9));function a77_0x480d(_0x13e46f,_0x262777){const _0x287007=a77_0x2870();return a77_0x480d=function(_0x480d1f,_0x90fcc3){_0x480d1f=_0x480d1f-0x1c4;let _0x5ec534=_0x287007[_0x480d1f];return _0x5ec534;},a77_0x480d(_0x13e46f,_0x262777);}exports[a77_0x13240e(0x1fc)]=PerformanceTester['measureWrapper'](a77_0x13240e(0x1fe),async _0x7751e7=>{const _0x59b340=a77_0x13240e,_0x5e8a60={};_0x5e8a60[_0x59b340(0x1ed)]='Starting\x20percy';const _0x28122c=_0x5e8a60;logger['debug'](_0x28122c[_0x59b340(0x1ed)]);const _0x51f464=new Percy(_0x7751e7),_0x2ed764=await _0x51f464[_0x59b340(0x1d2)]();if(_0x2ed764)return _0x51f464;return null;}),exports[a77_0x13240e(0x1e3)]=PerformanceTester[a77_0x13240e(0x1dd)](a77_0x13240e(0x1e6),async _0x2b875f=>{const _0x566e61=a77_0x13240e,_0xdbe179={};_0xdbe179['LquTH']=_0x566e61(0x1e7);const _0x41b999=_0xdbe179;return logger[_0x566e61(0x206)](_0x41b999[_0x566e61(0x205)]),_0x2b875f[_0x566e61(0x1ee)]();}),exports[a77_0x13240e(0x1da)]=_0x5e6ac8=>{const _0x13ae3d=a77_0x13240e,_0x791b95={};_0x791b95[_0x13ae3d(0x1de)]=function(_0x2cd34b,_0x2b58b8){return _0x2cd34b<_0x2b58b8;};const _0x4be801=_0x791b95,_0x137e90={};_0x137e90[_0x13ae3d(0x1e8)]=0x0,_0x137e90[_0x13ae3d(0x1f6)]=0x1,_0x137e90[_0x13ae3d(0x1f4)]=0x2,_0x137e90[_0x13ae3d(0x1c4)]=0x3;const _0x1b1ffe=_0x137e90;return _0x5e6ac8[_0x13ae3d(0x1f2)]((_0x474e9d,_0x34c9ce,_0x53b4fc)=>{const _0x15efce=_0x13ae3d,_0x50a479=_0x5e6ac8[_0x474e9d];if(_0x34c9ce['deviceName'])return _0x474e9d;if(_0x50a479[_0x15efce(0x1f8)])return _0x53b4fc;const _0xde6bdd=_0x34c9ce[_0x15efce(0x1e9)]?_0x34c9ce[_0x15efce(0x1e9)]:_0x34c9ce['browserName'];if(_0xde6bdd&&_0x4be801['Uxrlz'](_0x1b1ffe[_0xde6bdd[_0x15efce(0x203)]()],_0x1b1ffe[_0xde6bdd[_0x15efce(0x203)]()]))return _0x53b4fc;return _0x474e9d;},0x0);},exports[a77_0x13240e(0x1f3)]=async(_0x4c0bbe,_0x57d5fb,_0x1e69a2)=>{const _0x2fa499=a77_0x13240e,_0x14a5c3={};_0x14a5c3[_0x2fa499(0x1cf)]=_0x2fa499(0x1fd);const _0xd830a2=_0x14a5c3,_0x213a99=_0x4c0bbe[_0x2fa499(0x1cb)];if(helper[_0x2fa499(0x1d4)](_0x4c0bbe[_0x2fa499(0x207)])){logger[_0x2fa499(0x206)](_0xd830a2['pHGHF']);return;}const _0x2b4640=_0x213a99[_0x2fa499(0x201)](_0x4c0bbe[_0x2fa499(0x207)],_0x57d5fb);_0x1e69a2[_0x2fa499(0x1ec)]?await PercySDK[_0x2fa499(0x1e1)](_0x4c0bbe,_0x2b4640):await PercySDK['screenshot'](_0x4c0bbe,_0x2b4640),_0x213a99[_0x2fa499(0x1dc)](_0x4c0bbe[_0x2fa499(0x207)],_0x57d5fb);},exports[a77_0x13240e(0x1ff)]=(_0x12c222,_0xb9f9f5,_0x1c0d37)=>{const _0x2ea790=a77_0x13240e,_0x3c096b={};_0x3c096b[_0x2ea790(0x1cd)]=_0x2ea790(0x1e4),_0x3c096b['ohZND']='percy',_0x3c096b[_0x2ea790(0x1c5)]=function(_0x1d707c,_0x37fe58){return _0x1d707c!==_0x37fe58;},_0x3c096b[_0x2ea790(0x1eb)]='manual';const _0x4fd449=_0x3c096b;if(!helper[_0x2ea790(0x1c9)](_0x1c0d37,[_0x4fd449['oWBjg'],_0x4fd449[_0x2ea790(0x209)]]))return;if(_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1ea)]&&_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1f5)]&&_0x4fd449[_0x2ea790(0x1c5)](_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1f5)],_0x4fd449['KVKyV'])&&!_0x12c222['browserstackPercyMap']){global[_0x2ea790(0x207)]&&(_0x12c222['browserstackSessionName']=global[_0x2ea790(0x207)]),_0x12c222[_0x2ea790(0x1cb)]=new PercyCaptureMap();const _0x438cf7=PercyCaptureModes[_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1f5)]];_0x438cf7[_0x2ea790(0x1d7)]&&_0x438cf7[_0x2ea790(0x1d7)][_0x2ea790(0x1e5)](_0x1bb9dd=>this['overrideXforPercy'](_0x12c222,_0x1bb9dd,_0x1c0d37)),_0x438cf7['element']&&_0x438cf7['element'][_0x2ea790(0x1e5)](_0x270a38=>{const _0x2acf6a=_0x2ea790;if(_0xb9f9f5[_0x2acf6a(0x202)][_0x2acf6a(0x1d1)+_0x270a38])return;_0xb9f9f5['prototype']['patch'+_0x270a38]=!![];const _0x1df90b=_0xb9f9f5[_0x2acf6a(0x202)][_0x270a38];_0xb9f9f5['prototype'][_0x270a38]=async function(){const _0x1a2b18=_0x2acf6a;let _0x238ff2=_0x1df90b['apply'](this,arguments);_0x238ff2&&_0x238ff2['then']&&(_0x238ff2=await _0x238ff2);try{const _0x5f3719=this[_0x1a2b18(0x208)]();await exports[_0x1a2b18(0x1f3)](_0x5f3719,_0x270a38,_0x1c0d37);}catch(_0x5adf68){logger['error']('Error\x20patching\x20'+_0x270a38+_0x1a2b18(0x1f1)+_0x5adf68);}return _0x238ff2;};});}},exports['overrideXforPercy']=function(_0x263efc,_0x56c738,_0x3f42b4){const _0x588f18=a77_0x13240e,_0x53e670={};_0x53e670[_0x588f18(0x1c7)]=function(_0x224bd3,_0x1378f6){return _0x224bd3+_0x1378f6;},_0x53e670[_0x588f18(0x1d8)]=_0x588f18(0x1d1),_0x53e670[_0x588f18(0x1ef)]=function(_0x4c4789,_0x305079){return _0x4c4789+_0x305079;},_0x53e670[_0x588f18(0x1ca)]=_0x588f18(0x1ce);const _0x3c4fd1=_0x53e670,_0x3833cd=_0x3c4fd1['hyDIG'](_0x3c4fd1['kMvdr'],_0x56c738),_0x3b01ef=_0x3c4fd1[_0x588f18(0x1ef)](_0x3c4fd1['tBhCI'],_0x56c738),_0x106981=this;if(_0x263efc[_0x3833cd]||!_0x263efc[_0x56c738])return;_0x263efc[_0x3833cd]=!![],_0x263efc[_0x3b01ef]=_0x263efc[_0x56c738],_0x263efc[_0x56c738]=async()=>{const _0x555537=_0x588f18;try{await _0x106981[_0x555537(0x1f3)](_0x263efc,_0x56c738,_0x3f42b4);}catch(_0x155f2a){logger[_0x555537(0x20a)]('Error\x20patching\x20'+_0x56c738+_0x555537(0x1f1)+_0x155f2a);}return await _0x263efc[_0x3b01ef][_0x555537(0x204)](_0x263efc,arguments);};},exports[a77_0x13240e(0x1d9)]=_0x17049b=>{const _0x2f7ed3=a77_0x13240e,_0x46af38={};_0x46af38['percy']=_0x17049b[_0x2f7ed3(0x1ea)],_0x46af38[_0x2f7ed3(0x1f5)]=_0x17049b[_0x2f7ed3(0x1f5)];const _0x792261=_0x46af38;_0x17049b[_0x2f7ed3(0x1ea)]&&(_0x792261[_0x2f7ed3(0x1df)]=exports['getBestPlatformForPercySnapshot'](_0x17049b['platforms']));;return _0x792261;};function a77_0x2870(){const _0x84d723=['apply','LquTH','debug','browserstackSessionName','getDriver','ohZND','error','729SOAkvB','34083744ulWrDG','13155147domkNM','safari','hBMoR','161QXNnpw','hyDIG','10gjEOtL','nestedKeyValue','tBhCI','browserstackPercyMap','winstonLogger','oWBjg','init','pHGHF','150PjXrGV','patch','start','5614367QYkSkA','isUndefined','./PercyCaptureMap','963253wCQMBA','driver','kMvdr','getPercyOptions','getBestPlatformForPercySnapshot','./PercyCaptureModes','increment','measureWrapper','Uxrlz','browserstackPercyBestPlatform','../logger','screenshotApp','4920KsKENE','stopPercy','browserStackPercyOptions','forEach','percy:stop','Stopping\x20percy','chrome','browser','percy','KVKyV','app','ycNdG','stop','IBXjU','199832UOKbYJ','\x20for\x20percy\x20','reduce','percyAutoCapture','edge','percyCaptureMode','firefox','181745oATCdu','deviceName','../performance-tester','./Percy','./PercySDK','startPercy','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','percy:start','patchDriverPercy','2wBihDR','getName','prototype','toLowerCase'];a77_0x2870=function(){return _0x84d723;};return a77_0x2870();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x186ff1=a78_0x5e41;(function(_0x5b7376,_0x2b039c){const _0x201ff2=a78_0x5e41,_0x46664b=_0x5b7376();while(!![]){try{const _0x39e14a=parseInt(_0x201ff2(0xc2))/0x1*(-parseInt(_0x201ff2(0xf0))/0x2)+parseInt(_0x201ff2(0xc5))/0x3*(parseInt(_0x201ff2(0xa4))/0x4)+-parseInt(_0x201ff2(0xb2))/0x5+-parseInt(_0x201ff2(0xb1))/0x6+parseInt(_0x201ff2(0xef))/0x7+parseInt(_0x201ff2(0x9f))/0x8+-parseInt(_0x201ff2(0x94))/0x9*(-parseInt(_0x201ff2(0xb0))/0xa);if(_0x39e14a===_0x2b039c)break;else _0x46664b['push'](_0x46664b['shift']());}catch(_0x1a596a){_0x46664b['push'](_0x46664b['shift']());}}}(a78_0x3f2c,0xd9441));const fs=require('fs'),{performance,PerformanceObserver}=require(a78_0x186ff1(0xa9)),{sleep,debug}=require(a78_0x186ff1(0x8e)),path=require('path'),logger=require(a78_0x186ff1(0xa5))[a78_0x186ff1(0xea)];function a78_0x3f2c(){const _0xf96172=['itzIz','meta','apply','finalizePerfMeasures','calculateTimeFromEvents','hKkPp','message','stringify','jkhri','Time\x20for\x20','getCleanedPerfEvents','zgnal','measures','wlOZb','_errorEvents','RJDIT','Performance\x20report\x20is\x20at\x20','performance-report.json','winstonLogger','stack','toString','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','BROWSERSTACK_SDK_INSTRUMENTATION','2653966DVoMwB','1292608Umgtbc','jWxjt','ikpCi','measure','readFileSync','isRaH','getEventsFromJSON','OoLhu','buffered','OekgI','startMonitoring','unlinkSync','generateHTMLReport','false','generateJSON','writeFile','UeFDc','peooN','parse','finalize','match','push','pushErrors','started','_observer','slice','captureError','./test-observability/utils','uKDbc','sUURF','errorFile','Bdkaa','stopAndGenerate','301572iUSFcv','exports','observe','catch','isEnabled','qEWiZ','tJdcK','lLboT','code','function','then','8577152gfdVZQ','<h1>Performance\x20Report</h1>','Error\x20in\x20doing\x20csv\x20operations:\x20','performance-own.html','reduce','19528WTapqr','./logger','join','getEntries','length','perf_hooks','forEach','duration','finalizeErrors','MZIXO','writeFileSync','mark','310bNcQfb','2906058hPuZdU','4461580QtgTEa','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','finally','vAZvu','calculateTimesFromMultipleFiles','GFWaP','XZkIk','existsSync','entryType','debug','FzEJZ','cwd','\x20for\x20all\x20processes\x20is\x20','env','GwrWA','errors','2auaeNj','name','kddEA','657alvkjE','errorReportFileName','atISX','mHqSs','error-report.json','entries','jsonReportFileName','<tr><td>','-end','</tbody></table></body></html>','map','_measureEvents','appendFileSync','HTEAc','cUMOR','pushPerfMeasures','_events','-start','concat'];a78_0x3f2c=function(){return _0xf96172;};return a78_0x3f2c();}class PerformanceTester{static [a78_0x186ff1(0x8b)];static [a78_0x186ff1(0xd5)]=[];static ['_measureEvents']=[];static [a78_0x186ff1(0xe6)]=[];static [a78_0x186ff1(0x8a)]=![];static ['jsonReportFileName']=a78_0x186ff1(0xe9);static [a78_0x186ff1(0xc6)]=a78_0x186ff1(0xc9);static[a78_0x186ff1(0xfa)](_0x5a9d11=a78_0x186ff1(0xe9),_0x3378f3='error-report.json'){const _0x3ad477=a78_0x186ff1,_0x6fde6b={};_0x6fde6b['hKkPp']=function(_0x47fb8b,_0x971dc1){return _0x47fb8b===_0x971dc1;},_0x6fde6b[_0x3ad477(0xc7)]='measure',_0x6fde6b[_0x3ad477(0xf9)]=_0x3ad477(0x9d);const _0x46c8ae=_0x6fde6b;if(this[_0x3ad477(0x8a)]||!this[_0x3ad477(0x98)]())return;this['_observer']=new PerformanceObserver(_0x5046e2=>{const _0x5daa92=_0x3ad477;_0x5046e2[_0x5daa92(0xa7)]()[_0x5daa92(0xaa)](_0x572de6=>{const _0x28df9b=_0x5daa92;_0x46c8ae[_0x28df9b(0xdd)](_0x572de6[_0x28df9b(0xba)],_0x46c8ae[_0x28df9b(0xc7)])?this[_0x28df9b(0xd0)][_0x28df9b(0x88)](_0x572de6):this['_events'][_0x28df9b(0x88)](_0x572de6);});});const _0x15607f={};_0x15607f[_0x3ad477(0xf8)]=!![],_0x15607f['entryTypes']=[_0x46c8ae['OekgI'],_0x46c8ae[_0x3ad477(0xc7)]],this['_observer'][_0x3ad477(0x96)](_0x15607f),this[_0x3ad477(0x8a)]=!![],this[_0x3ad477(0xcb)]=_0x5a9d11,this['errorReportFileName']=_0x3378f3;}static['getPerformance'](){return performance;}static[a78_0x186ff1(0xdc)](_0x463d2e,_0x1322e4){const _0x334ba6=a78_0x186ff1,_0xaf00b3={};_0xaf00b3['uKDbc']=function(_0x27adca,_0x2a49f1){return _0x27adca+_0x2a49f1;},_0xaf00b3[_0x334ba6(0xe3)]=function(_0x2e1b8f,_0x506feb){return _0x2e1b8f||_0x506feb;},_0xaf00b3[_0x334ba6(0xc0)]=function(_0x1e0079,_0x4926b7){return _0x1e0079===_0x4926b7;};const _0x10e9cc=_0xaf00b3,_0x3f8fc3={};if(!_0x463d2e||_0x10e9cc[_0x334ba6(0xc0)](_0x463d2e[_0x334ba6(0xa8)],0x0))return;_0x463d2e[_0x334ba6(0xcf)](_0xeb9c2a=>{const _0x4079bc=_0x334ba6;!_0x3f8fc3[_0xeb9c2a[_0x4079bc(0xc3)]]&&(_0x3f8fc3[_0xeb9c2a[_0x4079bc(0xc3)]]=0x0),_0x3f8fc3[_0xeb9c2a[_0x4079bc(0xc3)]]+=_0xeb9c2a[_0x4079bc(0xab)];});const _0x342b36=_0x1322e4[_0x334ba6(0xa3)]((_0x58c270,_0x2ad235)=>{const _0x13a39d=_0x334ba6;return _0x10e9cc[_0x13a39d(0x8f)](_0x3f8fc3[_0x2ad235],_0x10e9cc['zgnal'](_0x58c270,0x0));},0x0);return _0x342b36;}static async[a78_0x186ff1(0xb6)](_0x5fb421,_0x4a67e4){const _0x21f65c=a78_0x186ff1,_0xa28cde={'XZkIk':function(_0x57aebb,_0x16549f){return _0x57aebb+_0x16549f;},'JcCTv':function(_0x3282d0,_0xc55537){return _0x3282d0||_0xc55537;},'peooN':function(_0x1656bc,_0x3c90c2){return _0x1656bc===_0x3c90c2;},'isRaH':function(_0x59ceb1,_0x59ba14){return _0x59ceb1(_0x59ba14);}};if(!_0x5fb421||_0xa28cde[_0x21f65c(0x84)](_0x5fb421['length'],0x0))return 0x0;const _0x54f1d6=[];for(const _0x1e399a of _0x5fb421){const _0x783756=path[_0x21f65c(0xa6)]('.',_0x1e399a);try{const _0x3c0691=this[_0x21f65c(0xf6)](_0x783756);_0x3c0691[_0x21f65c(0xcf)](_0x293270=>{const _0x123738=_0x21f65c;!_0x54f1d6[_0x293270[_0x123738(0xc3)]]&&(_0x54f1d6[_0x293270[_0x123738(0xc3)]]=0x0),_0x54f1d6[_0x293270['name']]+=_0x293270[_0x123738(0xab)];});}catch(_0x3a322e){_0xa28cde['isRaH'](debug,_0x21f65c(0xa1)+_0x3a322e['toString']());}}const _0x3534ee=_0x4a67e4[_0x21f65c(0xa3)]((_0xb10e96,_0x1c26a1)=>{const _0x17ae8f=_0x21f65c;return _0xa28cde[_0x17ae8f(0xb8)](_0x54f1d6[_0x1c26a1],_0xa28cde['JcCTv'](_0xb10e96,0x0));},0x0);return _0xa28cde[_0x21f65c(0xf5)](debug,_0x21f65c(0xe1)+_0x4a67e4+_0x21f65c(0xbe)+_0x3534ee),_0x3534ee;}static[a78_0x186ff1(0xf6)](_0x5895fe){const _0x2b417d=a78_0x186ff1;if(!fs[_0x2b417d(0xb9)](_0x5895fe))return[];return JSON[_0x2b417d(0x85)](fs[_0x2b417d(0xf4)](_0x5895fe)['toString']());}static async[a78_0x186ff1(0x93)](_0x5305fa=a78_0x186ff1(0xa2),_0x3115a3=null){const _0x387a80=a78_0x186ff1,_0x1e304a={'RJDIT':function(_0x3754fa,_0x352caf){return _0x3754fa(_0x352caf);}};if(!this[_0x387a80(0x8a)])return;await _0x1e304a['RJDIT'](sleep,0x1e),this['_observer']['disconnect'](),this[_0x387a80(0x8a)]=![],this[_0x387a80(0x81)](this[_0x387a80(0xd5)]);const _0x413b2a=this[_0x387a80(0xfc)](this[_0x387a80(0xd5)]),_0x397e79=path[_0x387a80(0xa6)](process[_0x387a80(0xbd)](),_0x5305fa);fs[_0x387a80(0x82)](_0x397e79,_0x413b2a,_0x3d7847=>{const _0x478693=_0x387a80;if(_0x3d7847){_0x1e304a[_0x478693(0xe7)](debug,'Error\x20in\x20writing\x20html\x20'+_0x3d7847[_0x478693(0xec)]());return;}_0x1e304a[_0x478693(0xe7)](debug,_0x478693(0xe8)+_0x397e79);});if(_0x3115a3)return this[_0x387a80(0xdc)](this[_0x387a80(0xd5)],_0x3115a3);}static['generateHTMLReport'](_0xa4432){const _0x34cff0=a78_0x186ff1,_0x1a308d={};_0x1a308d[_0x34cff0(0xe0)]=_0x34cff0(0xed),_0x1a308d[_0x34cff0(0xc4)]=_0x34cff0(0xa0),_0x1a308d[_0x34cff0(0xc8)]=_0x34cff0(0xb3),_0x1a308d[_0x34cff0(0xb5)]=_0x34cff0(0xce);const _0x517182=_0x1a308d;let _0x804748=_0x517182[_0x34cff0(0xe0)];return _0x804748+=_0x517182[_0x34cff0(0xc4)],_0x804748+=_0x517182[_0x34cff0(0xc8)],_0xa4432['forEach'](_0x33aed6=>{const _0x270be0=_0x34cff0;_0x804748+=_0x270be0(0xcc)+_0x33aed6['name']+'</td><td>'+_0x33aed6[_0x270be0(0xab)]+'</td></tr>';}),_0x804748+=_0x517182[_0x34cff0(0xb5)],_0x804748;}static[a78_0x186ff1(0x81)](_0x1dae95){const _0xf90a81=a78_0x186ff1;if(!this[_0xf90a81(0xcb)])return;const _0x28380d={};_0x1dae95[_0xf90a81(0xcf)](_0x20c2e1=>{const _0x1b7ab0=_0xf90a81;!_0x28380d[_0x20c2e1[_0x1b7ab0(0xc3)]]&&(_0x28380d[_0x20c2e1[_0x1b7ab0(0xc3)]]=0x0),_0x28380d[_0x20c2e1[_0x1b7ab0(0xc3)]]+=_0x20c2e1[_0x1b7ab0(0xab)];});const _0x23cb3f=Object[_0xf90a81(0xca)](_0x28380d)[_0xf90a81(0xcf)](([_0x3be208,_0x22ecc0])=>{const _0x236742=_0xf90a81,_0x220b6d={};return _0x220b6d[_0x236742(0xc3)]=_0x3be208,_0x220b6d[_0x236742(0xab)]=_0x22ecc0,_0x220b6d;});fs[_0xf90a81(0xae)](this[_0xf90a81(0xcb)],JSON[_0xf90a81(0xdf)](_0x23cb3f));}static[a78_0x186ff1(0x98)](){const _0x2cbc5c=a78_0x186ff1,_0x13a13f={};_0x13a13f[_0x2cbc5c(0xf2)]=function(_0x4503df,_0x291f8d){return _0x4503df===_0x291f8d;},_0x13a13f[_0x2cbc5c(0x90)]=_0x2cbc5c(0xfd);const _0x62b8e4=_0x13a13f;return!_0x62b8e4['ikpCi'](process[_0x2cbc5c(0xbf)][_0x2cbc5c(0xee)],_0x62b8e4[_0x2cbc5c(0x90)]);}static['measure'](_0x574d29,_0x2ad733,_0x447a94=null,_0x163aa9=null){const _0x27f606=a78_0x186ff1,_0x1b6090={};_0x1b6090[_0x27f606(0xf1)]=function(_0x544720,_0x53b0ed){return _0x544720+_0x53b0ed;},_0x1b6090[_0x27f606(0xb7)]=_0x27f606(0xd6),_0x1b6090[_0x27f606(0xad)]=_0x27f606(0xcd),_0x1b6090[_0x27f606(0x83)]=function(_0x3eaf30,_0x5f1b21){return _0x3eaf30 instanceof _0x5f1b21;};const _0xbc0c40=_0x1b6090;try{if(this[_0x27f606(0x8a)]&&this['isEnabled']()){let _0x2f5c7f=_0x574d29;_0x447a94&&(_0x2f5c7f=_0x574d29+'['+JSON[_0x27f606(0xdf)](_0x447a94)+']');const _0x2b1312=_0xbc0c40[_0x27f606(0xf1)](_0x2f5c7f,_0xbc0c40[_0x27f606(0xb7)]),_0x250259=_0xbc0c40[_0x27f606(0xf1)](_0x2f5c7f,_0xbc0c40[_0x27f606(0xad)]);performance[_0x27f606(0xaf)](_0x2b1312);const _0x40b03c=_0x2ad733[_0x27f606(0xda)](null,_0x163aa9);if(_0xbc0c40['UeFDc'](_0x40b03c,Promise))return new Promise((_0x23ea36,_0x1ea931)=>{const _0x30ef73=_0x27f606;_0x40b03c[_0x30ef73(0x9e)](_0x480673=>_0x23ea36(_0x480673))[_0x30ef73(0x97)](_0x454514=>_0x1ea931(_0x454514))[_0x30ef73(0xb4)](()=>{const _0x136d3a=_0x30ef73;performance[_0x136d3a(0xaf)](_0x250259),performance[_0x136d3a(0xf3)](_0x2f5c7f,_0x2b1312,_0x250259);});});;return performance['mark'](_0x250259),performance[_0x27f606(0xf3)](_0x2f5c7f,_0x2b1312,_0x250259),_0x40b03c;};return _0x2ad733[_0x27f606(0xda)](null,_0x163aa9);}catch(_0x1ce545){return _0x2ad733['apply'](null,_0x163aa9);}}static['measureWrapper'](_0x2f6f3f,_0x5bdbc9){const _0xba7403=this;return function(){const _0x4a6985=a78_0x5e41,_0x3222b9=[_0x2f6f3f,_0x5bdbc9,null][_0x4a6985(0xd7)](arguments);return _0xba7403[_0x4a6985(0xf3)][_0x4a6985(0xda)](_0xba7403,_0x3222b9);};}static['getCleanedPerfEvents'](){const _0x5a4048=a78_0x186ff1,_0xca0f42={};_0xca0f42[_0x5a4048(0x9a)]=function(_0x374383,_0x3d9af9){return _0x374383/_0x3d9af9;},_0xca0f42['lLboT']=function(_0x1dd328,_0x1bb5c3){return _0x1dd328+_0x1bb5c3;},_0xca0f42[_0x5a4048(0xd2)]=function(_0x16748e,_0x4a6e01){return _0x16748e*_0x4a6e01;};const _0x491c1c=_0xca0f42,_0x2523a2=/(^.*)\[(.*)\]$/,_0x39ca3a={},_0x23cba1={};for(const _0x514355 of this[_0x5a4048(0xd0)]){const _0x48875c=_0x514355['name'][_0x5a4048(0x87)](_0x2523a2),_0xf2b4e={};_0xf2b4e[_0x5a4048(0xc3)]=_0x514355[_0x5a4048(0xc3)],_0xf2b4e[_0x5a4048(0xab)]=_0x514355['duration']||0x0;const _0x4ea1f6=_0xf2b4e;_0x48875c&&(_0x4ea1f6[_0x5a4048(0xc3)]=_0x48875c[0x1],_0x4ea1f6[_0x5a4048(0xd9)]=JSON['parse'](_0x48875c[0x2]));if(_0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]]){const _0x1acb9e=_0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]],_0x4fe646=_0x23cba1[_0x4ea1f6[_0x5a4048(0xc3)]];_0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]][_0x5a4048(0xab)]=_0x491c1c[_0x5a4048(0x9a)](_0x491c1c[_0x5a4048(0x9b)](_0x491c1c[_0x5a4048(0xd2)](_0x1acb9e['duration'],_0x4fe646),_0x4ea1f6[_0x5a4048(0xab)]),_0x491c1c[_0x5a4048(0x9b)](0x1,_0x4fe646)),_0x23cba1[_0x4ea1f6['name']]++;}else _0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]]=_0x4ea1f6,_0x23cba1[_0x4ea1f6['name']]=0x1;}return Object['values'](_0x39ca3a);}static[a78_0x186ff1(0xd4)](){const _0x4a09e5=a78_0x186ff1,_0x33db90={};_0x33db90[_0x4a09e5(0xd3)]=function(_0x58d4b1,_0x4b7427){return _0x58d4b1===_0x4b7427;},_0x33db90[_0x4a09e5(0xe5)]=function(_0x34efc1,_0x5c4e3c){return _0x34efc1+_0x5c4e3c;};const _0x22ea95=_0x33db90;if(_0x22ea95[_0x4a09e5(0xd3)](this['_measureEvents'][_0x4a09e5(0xa8)],0x0))return;const _0x1752e6=this[_0x4a09e5(0xe2)](),_0x2a4cdf=JSON[_0x4a09e5(0xdf)](_0x1752e6),_0x3b5b0f=_0x22ea95[_0x4a09e5(0xe5)](_0x2a4cdf[_0x4a09e5(0x8c)](0x1,-0x1),',');fs[_0x4a09e5(0xd1)](this[_0x4a09e5(0xcb)],_0x3b5b0f);}static[a78_0x186ff1(0xdb)](){const _0xd57447=a78_0x186ff1,_0x2faee4={};_0x2faee4[_0xd57447(0xbc)]=function(_0x37e20c,_0x41073c){return _0x37e20c===_0x41073c;},_0x2faee4['BEPDu']=function(_0x121806,_0x595323){return _0x121806>_0x595323;};const _0x3aa6c4=_0x2faee4;if(!this['started']||_0x3aa6c4[_0xd57447(0xbc)](this[_0xd57447(0xd0)][_0xd57447(0xa8)],0x0))return[];if(!fs[_0xd57447(0xb9)](this[_0xd57447(0xcb)]))return this[_0xd57447(0xd0)];let _0xaa7b5d=fs[_0xd57447(0xf4)](this['jsonReportFileName'])[_0xd57447(0xec)]();_0xaa7b5d='['+_0xaa7b5d[_0xd57447(0x8c)](0x0,-0x1)+']';let _0x41a767=JSON['parse'](_0xaa7b5d);return _0x3aa6c4['BEPDu'](this[_0xd57447(0xd0)]['length'],0x0)&&(_0x41a767=_0x41a767[_0xd57447(0xd7)](this[_0xd57447(0xe2)]())),this[_0xd57447(0x8b)]['disconnect'](),fs[_0xd57447(0xfb)](this[_0xd57447(0xcb)]),_0x41a767;}static[a78_0x186ff1(0x89)](){const _0x477d84=a78_0x186ff1,_0x57d336={};_0x57d336[_0x477d84(0xf7)]=function(_0x4af917,_0x485633){return _0x4af917===_0x485633;},_0x57d336[_0x477d84(0x99)]=function(_0x5ce570,_0x21d053){return _0x5ce570+_0x21d053;};const _0x29edc1=_0x57d336;if(_0x29edc1[_0x477d84(0xf7)](this['_errorEvents'][_0x477d84(0xa8)],0x0))return;const _0x4ad016=JSON['stringify'](this['_errorEvents']),_0x1b24ea=_0x29edc1[_0x477d84(0x99)](_0x4ad016['slice'](0x1,-0x1),',');fs[_0x477d84(0xd1)](this[_0x477d84(0x91)],_0x1b24ea);}static[a78_0x186ff1(0xac)](){const _0x5d2279=a78_0x186ff1,_0x4dcd4c={};_0x4dcd4c[_0x5d2279(0x92)]=function(_0x394e53,_0x5ddde3){return _0x394e53>_0x5ddde3;};const _0x56d95e=_0x4dcd4c;if(!fs[_0x5d2279(0xb9)](this[_0x5d2279(0xc6)]))return this[_0x5d2279(0xe6)];let _0x3973fc=fs[_0x5d2279(0xf4)](this[_0x5d2279(0xc6)])['toString']();_0x3973fc='['+_0x3973fc[_0x5d2279(0x8c)](0x0,-0x1)+']';let _0x5e9300=JSON[_0x5d2279(0x85)](_0x3973fc);return _0x56d95e[_0x5d2279(0x92)](this[_0x5d2279(0xe6)][_0x5d2279(0xa8)],0x0)&&(_0x5e9300=_0x5e9300['concat'](this[_0x5d2279(0xe6)])),fs[_0x5d2279(0xfb)](this[_0x5d2279(0xc6)]),_0x5e9300;}static[a78_0x186ff1(0x8d)](_0x322904){const _0x205dec=a78_0x186ff1;if(!this[_0x205dec(0x98)]())return;this['_errorEvents'][_0x205dec(0x88)]({'message':_0x322904[_0x205dec(0xde)],'trace':_0x322904[_0x205dec(0xeb)],'code':_0x322904[_0x205dec(0x9c)]||null,'time':new Date()});}static['stopMonitoring'](){const _0x221949=a78_0x186ff1,_0x1d4ca0={};_0x1d4ca0[_0x221949(0xd8)]='Error\x20stopping\x20monitoring';const _0x1e7585=_0x1d4ca0;try{if(!this['isEnabled']())return;this['_observer']['disconnect'](),this['pushPerfMeasures'](),this[_0x221949(0x89)]();}catch{logger[_0x221949(0xbb)](_0x1e7585[_0x221949(0xd8)]);}}static[a78_0x186ff1(0x86)](){const _0x2a667c=a78_0x186ff1,_0x56ed69=this[_0x2a667c(0xdb)](),_0x27a729=this[_0x2a667c(0xac)]();if(!this['isEnabled']()){const _0xff5869={};return _0xff5869[_0x2a667c(0xe4)]=[],_0xff5869[_0x2a667c(0xc1)]=[],_0xff5869;}const _0x2078d7={};return _0x2078d7[_0x2a667c(0xe4)]=_0x56ed69,_0x2078d7[_0x2a667c(0xc1)]=_0x27a729,_0x2078d7;}}function a78_0x5e41(_0x320066,_0x93b385){const _0x3f2c66=a78_0x3f2c();return a78_0x5e41=function(_0x5e4113,_0x3b8ed5){_0x5e4113=_0x5e4113-0x81;let _0xbf8e2e=_0x3f2c66[_0x5e4113];return _0xbf8e2e;},a78_0x5e41(_0x320066,_0x93b385);}module[a78_0x186ff1(0x95)]=PerformanceTester;
|
|
1
|
+
const a78_0x33832f=a78_0x2851;(function(_0x7e0397,_0x17fb15){const _0x5522f0=a78_0x2851,_0x40ee16=_0x7e0397();while(!![]){try{const _0x24172c=parseInt(_0x5522f0(0x1ce))/0x1+-parseInt(_0x5522f0(0x1c8))/0x2+parseInt(_0x5522f0(0x1aa))/0x3+-parseInt(_0x5522f0(0x1ed))/0x4*(parseInt(_0x5522f0(0x1cb))/0x5)+parseInt(_0x5522f0(0x203))/0x6+-parseInt(_0x5522f0(0x1a5))/0x7*(parseInt(_0x5522f0(0x1fe))/0x8)+parseInt(_0x5522f0(0x1e5))/0x9;if(_0x24172c===_0x17fb15)break;else _0x40ee16['push'](_0x40ee16['shift']());}catch(_0x1f55cc){_0x40ee16['push'](_0x40ee16['shift']());}}}(a78_0x3b6b,0x6e893));const fs=require('fs'),{performance,PerformanceObserver}=require(a78_0x33832f(0x1a2)),{sleep,debug}=require('./test-observability/utils'),path=require(a78_0x33832f(0x1f7)),logger=require(a78_0x33832f(0x1c6))[a78_0x33832f(0x19e)];class PerformanceTester{static [a78_0x33832f(0x1ec)];static [a78_0x33832f(0x1c2)]=[];static [a78_0x33832f(0x1ae)]=[];static ['_errorEvents']=[];static [a78_0x33832f(0x1c4)]=![];static [a78_0x33832f(0x20d)]=a78_0x33832f(0x1a4);static ['errorReportFileName']=a78_0x33832f(0x1ea);static[a78_0x33832f(0x20f)](_0x15af4e=a78_0x33832f(0x1a4),_0x55d8ce='error-report.json'){const _0x3058d8=a78_0x33832f,_0x41daec={};_0x41daec[_0x3058d8(0x1ef)]=function(_0x1e37e6,_0x55cbe1){return _0x1e37e6===_0x55cbe1;},_0x41daec[_0x3058d8(0x1fc)]='measure',_0x41daec[_0x3058d8(0x1f9)]='function';const _0x1eb00f=_0x41daec;if(this[_0x3058d8(0x1c4)]||!this[_0x3058d8(0x195)]())return;this[_0x3058d8(0x1ec)]=new PerformanceObserver(_0xf6fd68=>{const _0x3d5344=_0x3058d8,_0x5b80ae={'qPsTQ':function(_0x12cc64,_0x121da3){const _0x442943=a78_0x2851;return _0x1eb00f[_0x442943(0x1ef)](_0x12cc64,_0x121da3);},'EazSy':_0x1eb00f['EtSZS']};_0xf6fd68[_0x3d5344(0x1ff)]()[_0x3d5344(0x19d)](_0x4d2f10=>{const _0x370a40=_0x3d5344;_0x5b80ae['qPsTQ'](_0x4d2f10[_0x370a40(0x1d9)],_0x5b80ae[_0x370a40(0x1a7)])?this[_0x370a40(0x1ae)][_0x370a40(0x196)](_0x4d2f10):this[_0x370a40(0x1c2)][_0x370a40(0x196)](_0x4d2f10);});});const _0x6dd4b2={};_0x6dd4b2[_0x3058d8(0x1c5)]=!![],_0x6dd4b2[_0x3058d8(0x1b6)]=[_0x1eb00f[_0x3058d8(0x1f9)],_0x1eb00f['EtSZS']],this[_0x3058d8(0x1ec)][_0x3058d8(0x202)](_0x6dd4b2),this['started']=!![],this[_0x3058d8(0x20d)]=_0x15af4e,this[_0x3058d8(0x1b2)]=_0x55d8ce;}static[a78_0x33832f(0x200)](){return performance;}static['calculateTimeFromEvents'](_0x449da1,_0xc80b3f){const _0x1a458c=a78_0x33832f,_0x2aac16={};_0x2aac16[_0x1a458c(0x1ba)]=function(_0x5899e4,_0x5503f7){return _0x5899e4+_0x5503f7;},_0x2aac16[_0x1a458c(0x1b4)]=function(_0x1d730b,_0xdb4371){return _0x1d730b||_0xdb4371;},_0x2aac16['MbdwF']=function(_0x3163da,_0x31fac9){return _0x3163da===_0x31fac9;};const _0x5c6234=_0x2aac16,_0x34c699={};if(!_0x449da1||_0x5c6234['MbdwF'](_0x449da1[_0x1a458c(0x1d8)],0x0))return;_0x449da1[_0x1a458c(0x1a1)](_0x43fa15=>{const _0x5a6a56=_0x1a458c;!_0x34c699[_0x43fa15['name']]&&(_0x34c699[_0x43fa15['name']]=0x0),_0x34c699[_0x43fa15[_0x5a6a56(0x1ad)]]+=_0x43fa15['duration'];});const _0x52fb0f=_0xc80b3f['reduce']((_0x3c75cc,_0x3fe792)=>{const _0x106445=_0x1a458c;return _0x5c6234[_0x106445(0x1ba)](_0x34c699[_0x3fe792],_0x5c6234[_0x106445(0x1b4)](_0x3c75cc,0x0));},0x0);return _0x52fb0f;}static async[a78_0x33832f(0x1f1)](_0x1a4926,_0x52b726){const _0xec2231=a78_0x33832f,_0x38bf53={'nMimX':function(_0x3efe90,_0xe9f2a){return _0x3efe90+_0xe9f2a;},'lfzqh':function(_0x51f9ec,_0x521ea5){return _0x51f9ec||_0x521ea5;},'ezTXI':function(_0x18dcd8,_0x5a7f1f){return _0x18dcd8===_0x5a7f1f;},'gUaNk':function(_0x9fb51b,_0x50701d){return _0x9fb51b(_0x50701d);},'IvSXg':function(_0x2ace9a,_0x50ff5a){return _0x2ace9a(_0x50ff5a);}};if(!_0x1a4926||_0x38bf53[_0xec2231(0x1da)](_0x1a4926[_0xec2231(0x1d8)],0x0))return 0x0;const _0x461017=[];for(const _0x31662e of _0x1a4926){const _0x362172=path[_0xec2231(0x19a)]('.',_0x31662e);try{const _0x349fd3=this['getEventsFromJSON'](_0x362172);_0x349fd3['map'](_0x462fec=>{const _0x436da8=_0xec2231;!_0x461017[_0x462fec['name']]&&(_0x461017[_0x462fec[_0x436da8(0x1ad)]]=0x0),_0x461017[_0x462fec[_0x436da8(0x1ad)]]+=_0x462fec[_0x436da8(0x1f5)];});}catch(_0x41433c){_0x38bf53[_0xec2231(0x1d6)](debug,_0xec2231(0x1bc)+_0x41433c[_0xec2231(0x1e2)]());}}const _0x3742b8=_0x52b726[_0xec2231(0x1f0)]((_0x11d010,_0x13ab75)=>{const _0xcaca79=_0xec2231;return _0x38bf53[_0xcaca79(0x1b8)](_0x461017[_0x13ab75],_0x38bf53[_0xcaca79(0x1c3)](_0x11d010,0x0));},0x0);return _0x38bf53[_0xec2231(0x212)](debug,_0xec2231(0x1a0)+_0x52b726+_0xec2231(0x1f3)+_0x3742b8),_0x3742b8;}static[a78_0x33832f(0x1b7)](_0x1693a0){const _0x274b8a=a78_0x33832f;if(!fs[_0x274b8a(0x1db)](_0x1693a0))return[];return JSON[_0x274b8a(0x1be)](fs[_0x274b8a(0x20a)](_0x1693a0)['toString']());}static async[a78_0x33832f(0x1fb)](_0x3dcceb='performance-own.html',_0x1d0ad9=null){const _0x49ea3f=a78_0x33832f,_0x169316={'zVdDP':function(_0x3ce37c,_0x5a993a){return _0x3ce37c(_0x5a993a);},'APfdY':function(_0x548c66,_0x24aabd){return _0x548c66(_0x24aabd);}};if(!this[_0x49ea3f(0x1c4)])return;await _0x169316[_0x49ea3f(0x1a8)](sleep,0x1e),this[_0x49ea3f(0x1ec)][_0x49ea3f(0x211)](),this[_0x49ea3f(0x1c4)]=![],this[_0x49ea3f(0x199)](this['_events']);const _0x5269d9=this[_0x49ea3f(0x1af)](this[_0x49ea3f(0x1c2)]),_0x41c541=path[_0x49ea3f(0x19a)](process[_0x49ea3f(0x1ca)](),_0x3dcceb);fs['writeFile'](_0x41c541,_0x5269d9,_0xefb572=>{const _0x65bde5=_0x49ea3f;if(_0xefb572){_0x169316[_0x65bde5(0x1e9)](debug,'Error\x20in\x20writing\x20html\x20'+_0xefb572['toString']());return;}_0x169316[_0x65bde5(0x1a8)](debug,_0x65bde5(0x1f8)+_0x41c541);});if(_0x1d0ad9)return this[_0x49ea3f(0x209)](this[_0x49ea3f(0x1c2)],_0x1d0ad9);}static[a78_0x33832f(0x1af)](_0x20ee7a){const _0x46e46a=a78_0x33832f,_0x301048={};_0x301048[_0x46e46a(0x1cf)]=_0x46e46a(0x1d3),_0x301048[_0x46e46a(0x1e7)]='<h1>Performance\x20Report</h1>',_0x301048['KGZPb']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x301048['Ahiwk']=_0x46e46a(0x1e0);const _0x20eea6=_0x301048;let _0x20b94c=_0x20eea6[_0x46e46a(0x1cf)];return _0x20b94c+=_0x20eea6[_0x46e46a(0x1e7)],_0x20b94c+=_0x20eea6[_0x46e46a(0x1c1)],_0x20ee7a[_0x46e46a(0x19d)](_0x374819=>{const _0x5dca78=_0x46e46a;_0x20b94c+=_0x5dca78(0x1c7)+_0x374819['name']+_0x5dca78(0x210)+_0x374819[_0x5dca78(0x1f5)]+_0x5dca78(0x1c0);}),_0x20b94c+=_0x20eea6[_0x46e46a(0x1fd)],_0x20b94c;}static[a78_0x33832f(0x199)](_0x62e32b){const _0x4f4b85=a78_0x33832f;if(!this[_0x4f4b85(0x20d)])return;const _0x59b6fa={};_0x62e32b[_0x4f4b85(0x1a1)](_0xe6a7c8=>{const _0x43f77b=_0x4f4b85;!_0x59b6fa[_0xe6a7c8['name']]&&(_0x59b6fa[_0xe6a7c8['name']]=0x0),_0x59b6fa[_0xe6a7c8[_0x43f77b(0x1ad)]]+=_0xe6a7c8[_0x43f77b(0x1f5)];});const _0x289ff1=Object[_0x4f4b85(0x205)](_0x59b6fa)[_0x4f4b85(0x1a1)](([_0xe73711,_0x5db466])=>{const _0x14cd36=_0x4f4b85,_0x1f5a95={};return _0x1f5a95[_0x14cd36(0x1ad)]=_0xe73711,_0x1f5a95['duration']=_0x5db466,_0x1f5a95;});fs[_0x4f4b85(0x1dc)](this[_0x4f4b85(0x20d)],JSON[_0x4f4b85(0x1eb)](_0x289ff1));}static['isEnabled'](){const _0x474f1d=a78_0x33832f,_0x26af4f={};_0x26af4f[_0x474f1d(0x1f4)]=function(_0x4856ba,_0x539baf){return _0x4856ba===_0x539baf;},_0x26af4f[_0x474f1d(0x19c)]=_0x474f1d(0x201);const _0xde1ed1=_0x26af4f;return!_0xde1ed1[_0x474f1d(0x1f4)](process[_0x474f1d(0x1f2)][_0x474f1d(0x1e3)],_0xde1ed1['CdMit']);}static['measure'](_0xc68c23,_0x2ae766,_0x5b5cdb=null,_0x2093a7=null){const _0x459d08=a78_0x33832f,_0x5bb9c7={};_0x5bb9c7['aGDYj']=function(_0x2875b5,_0x292a46){return _0x2875b5+_0x292a46;},_0x5bb9c7['xNcIU']=_0x459d08(0x194),_0x5bb9c7[_0x459d08(0x1de)]=_0x459d08(0x1b5),_0x5bb9c7['DXnjO']=function(_0x46132b,_0x1cbbfc){return _0x46132b instanceof _0x1cbbfc;};const _0x28f360=_0x5bb9c7;try{if(this[_0x459d08(0x1c4)]&&this['isEnabled']()){let _0x42ab8b=_0xc68c23;_0x5b5cdb&&(_0x42ab8b=_0xc68c23+'['+JSON[_0x459d08(0x1eb)](_0x5b5cdb)+']');const _0x198c99=_0x28f360[_0x459d08(0x1e1)](_0x42ab8b,_0x28f360['xNcIU']),_0x2c7427=_0x28f360[_0x459d08(0x1e1)](_0x42ab8b,_0x28f360['vyHCK']);performance[_0x459d08(0x1df)](_0x198c99);const _0x5440cf=_0x2ae766[_0x459d08(0x207)](null,_0x2093a7);if(_0x28f360[_0x459d08(0x20b)](_0x5440cf,Promise))return new Promise((_0x35aada,_0x13246e)=>{const _0x4b22a4=_0x459d08;_0x5440cf[_0x4b22a4(0x1d1)](_0x2a1add=>_0x35aada(_0x2a1add))['catch'](_0x23044b=>_0x13246e(_0x23044b))[_0x4b22a4(0x204)](()=>{const _0x3d45d1=_0x4b22a4;performance[_0x3d45d1(0x1df)](_0x2c7427),performance[_0x3d45d1(0x1d2)](_0x42ab8b,_0x198c99,_0x2c7427);});});;return performance[_0x459d08(0x1df)](_0x2c7427),performance[_0x459d08(0x1d2)](_0x42ab8b,_0x198c99,_0x2c7427),_0x5440cf;};return _0x2ae766[_0x459d08(0x207)](null,_0x2093a7);}catch(_0x3728b3){return _0x2ae766[_0x459d08(0x207)](null,_0x2093a7);}}static[a78_0x33832f(0x1ee)](_0x7b1273,_0x42c920){const _0x316186=this;return function(){const _0x1b88b2=a78_0x2851,_0xc51219=[_0x7b1273,_0x42c920,null][_0x1b88b2(0x1e8)](arguments);return _0x316186[_0x1b88b2(0x1d2)][_0x1b88b2(0x207)](_0x316186,_0xc51219);};}static[a78_0x33832f(0x1dd)](){const _0x20b9cf=a78_0x33832f,_0x3a4fbb={};_0x3a4fbb['zXKjd']=function(_0x141858,_0x2b4a46){return _0x141858/_0x2b4a46;},_0x3a4fbb['ugJxs']=function(_0xda615f,_0x155851){return _0xda615f+_0x155851;},_0x3a4fbb[_0x20b9cf(0x1ac)]=function(_0x341d0c,_0x1e49bd){return _0x341d0c*_0x1e49bd;};const _0x582d5c=_0x3a4fbb,_0x5efd00=/(^.*)\[(.*)\]$/,_0x49a8ab={},_0x582a1d={};for(const _0x3da8f4 of this[_0x20b9cf(0x1ae)]){const _0x22c327=_0x3da8f4['name'][_0x20b9cf(0x19f)](_0x5efd00),_0x2586f3={};_0x2586f3[_0x20b9cf(0x1ad)]=_0x3da8f4[_0x20b9cf(0x1ad)],_0x2586f3[_0x20b9cf(0x1f5)]=_0x3da8f4['duration']||0x0;const _0x5c5fb4=_0x2586f3;_0x22c327&&(_0x5c5fb4[_0x20b9cf(0x1ad)]=_0x22c327[0x1],_0x5c5fb4[_0x20b9cf(0x1a6)]=JSON[_0x20b9cf(0x1be)](_0x22c327[0x2]));if(_0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]]){const _0x226285=_0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]],_0x5d1510=_0x582a1d[_0x5c5fb4['name']];_0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]]['duration']=_0x582d5c[_0x20b9cf(0x1e4)](_0x582d5c[_0x20b9cf(0x1f6)](_0x582d5c['ojtze'](_0x226285[_0x20b9cf(0x1f5)],_0x5d1510),_0x5c5fb4[_0x20b9cf(0x1f5)]),_0x582d5c[_0x20b9cf(0x1f6)](0x1,_0x5d1510)),_0x582a1d[_0x5c5fb4[_0x20b9cf(0x1ad)]]++;}else _0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]]=_0x5c5fb4,_0x582a1d[_0x5c5fb4[_0x20b9cf(0x1ad)]]=0x1;}return Object['values'](_0x49a8ab);}static[a78_0x33832f(0x1e6)](){const _0x4c0c8e=a78_0x33832f,_0x4debaa={};_0x4debaa[_0x4c0c8e(0x1cd)]=function(_0x2a92ed,_0x1f0ea3){return _0x2a92ed===_0x1f0ea3;},_0x4debaa[_0x4c0c8e(0x1b3)]=function(_0x47eb6f,_0x26fbb4){return _0x47eb6f+_0x26fbb4;};const _0x27ffde=_0x4debaa;if(_0x27ffde[_0x4c0c8e(0x1cd)](this[_0x4c0c8e(0x1ae)][_0x4c0c8e(0x1d8)],0x0))return;const _0x541e30=this[_0x4c0c8e(0x1dd)](),_0x4f172b=JSON[_0x4c0c8e(0x1eb)](_0x541e30),_0x8d89ac=_0x27ffde[_0x4c0c8e(0x1b3)](_0x4f172b[_0x4c0c8e(0x1bb)](0x1,-0x1),',');fs['appendFileSync'](this[_0x4c0c8e(0x20d)],_0x8d89ac);}static['finalizePerfMeasures'](){const _0x58efd9=a78_0x33832f,_0x4c9f06={};_0x4c9f06[_0x58efd9(0x208)]=function(_0x14170d,_0x2fd902){return _0x14170d===_0x2fd902;},_0x4c9f06[_0x58efd9(0x197)]=function(_0x5af8f5,_0x4dbc6f){return _0x5af8f5>_0x4dbc6f;};const _0x4d0907=_0x4c9f06;if(!this[_0x58efd9(0x1c4)]||_0x4d0907['dZSQz'](this[_0x58efd9(0x1ae)][_0x58efd9(0x1d8)],0x0))return[];if(!fs['existsSync'](this['jsonReportFileName']))return this['_measureEvents'];let _0x142de3=fs[_0x58efd9(0x20a)](this[_0x58efd9(0x20d)])[_0x58efd9(0x1e2)]();_0x142de3='['+_0x142de3[_0x58efd9(0x1bb)](0x0,-0x1)+']';let _0x6576c5=JSON[_0x58efd9(0x1be)](_0x142de3);return _0x4d0907[_0x58efd9(0x197)](this[_0x58efd9(0x1ae)][_0x58efd9(0x1d8)],0x0)&&(_0x6576c5=_0x6576c5[_0x58efd9(0x1e8)](this[_0x58efd9(0x1dd)]())),this[_0x58efd9(0x1ec)][_0x58efd9(0x211)](),fs[_0x58efd9(0x1bd)](this[_0x58efd9(0x20d)]),_0x6576c5;}static[a78_0x33832f(0x1fa)](){const _0x2c166b=a78_0x33832f,_0x43d5d1={};_0x43d5d1[_0x2c166b(0x1ab)]=function(_0x6e96ff,_0x7ba133){return _0x6e96ff===_0x7ba133;},_0x43d5d1[_0x2c166b(0x20c)]=function(_0x24504b,_0x38cda8){return _0x24504b+_0x38cda8;};const _0x1c5058=_0x43d5d1;if(_0x1c5058[_0x2c166b(0x1ab)](this['_errorEvents']['length'],0x0))return;const _0x58c019=JSON[_0x2c166b(0x1eb)](this[_0x2c166b(0x1bf)]),_0x257363=_0x1c5058[_0x2c166b(0x20c)](_0x58c019[_0x2c166b(0x1bb)](0x1,-0x1),',');fs[_0x2c166b(0x1cc)](this[_0x2c166b(0x1a3)],_0x257363);}static[a78_0x33832f(0x1d5)](){const _0x43ad72=a78_0x33832f,_0x29e9b0={};_0x29e9b0[_0x43ad72(0x1c9)]=function(_0x177808,_0x2aab82){return _0x177808>_0x2aab82;};const _0x28cbf9=_0x29e9b0;if(!fs[_0x43ad72(0x1db)](this['errorReportFileName']))return this[_0x43ad72(0x1bf)];let _0x2ced79=fs['readFileSync'](this[_0x43ad72(0x1b2)])[_0x43ad72(0x1e2)]();_0x2ced79='['+_0x2ced79[_0x43ad72(0x1bb)](0x0,-0x1)+']';let _0x3fb861=JSON[_0x43ad72(0x1be)](_0x2ced79);return _0x28cbf9[_0x43ad72(0x1c9)](this[_0x43ad72(0x1bf)][_0x43ad72(0x1d8)],0x0)&&(_0x3fb861=_0x3fb861[_0x43ad72(0x1e8)](this[_0x43ad72(0x1bf)])),fs[_0x43ad72(0x1bd)](this[_0x43ad72(0x1b2)]),_0x3fb861;}static['captureError'](_0x2d1db8){const _0x4d515c=a78_0x33832f;if(!this['isEnabled']())return;this[_0x4d515c(0x1bf)]['push']({'message':_0x2d1db8[_0x4d515c(0x1d0)],'trace':_0x2d1db8[_0x4d515c(0x1b0)],'code':_0x2d1db8[_0x4d515c(0x1d7)]||null,'time':new Date()});}static[a78_0x33832f(0x198)](){const _0x498e2b=a78_0x33832f,_0x3a1c33={};_0x3a1c33[_0x498e2b(0x1a9)]=_0x498e2b(0x19b);const _0x2475d8=_0x3a1c33;try{if(!this[_0x498e2b(0x195)]())return;this[_0x498e2b(0x1ec)][_0x498e2b(0x211)](),this[_0x498e2b(0x1e6)](),this[_0x498e2b(0x1fa)]();}catch{logger[_0x498e2b(0x1b9)](_0x2475d8['LSRMv']);}}static[a78_0x33832f(0x20e)](){const _0x2b6d50=a78_0x33832f,_0x40bd7b=this[_0x2b6d50(0x1b1)](),_0x1df8ec=this['finalizeErrors']();if(!this[_0x2b6d50(0x195)]()){const _0x1c1e88={};return _0x1c1e88[_0x2b6d50(0x1d4)]=[],_0x1c1e88[_0x2b6d50(0x206)]=[],_0x1c1e88;}const _0x1e9fe5={};return _0x1e9fe5[_0x2b6d50(0x1d4)]=_0x40bd7b,_0x1e9fe5[_0x2b6d50(0x206)]=_0x1df8ec,_0x1e9fe5;}}function a78_0x3b6b(){const _0x39dba8=['winstonLogger','match','Time\x20for\x20','map','perf_hooks','errorFile','performance-report.json','5227516wDEZqq','meta','EazSy','APfdY','LSRMv','308382BNAaDY','YXpbz','ojtze','name','_measureEvents','generateHTMLReport','stack','finalizePerfMeasures','errorReportFileName','QfoiA','HXqLP','-end','entryTypes','getEventsFromJSON','nMimX','debug','aNnRX','slice','Error\x20in\x20doing\x20csv\x20operations:\x20','unlinkSync','parse','_errorEvents','</td></tr>','KGZPb','_events','lfzqh','started','buffered','./logger','<tr><td>','1103068gqryDS','VQERj','cwd','5gFdtEo','appendFileSync','jvVDj','67130uDnqbO','nmbUJ','message','then','measure','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','measures','finalizeErrors','gUaNk','code','length','entryType','ezTXI','existsSync','writeFileSync','getCleanedPerfEvents','vyHCK','mark','</tbody></table></body></html>','aGDYj','toString','BROWSERSTACK_SDK_INSTRUMENTATION','zXKjd','19040400RYrzgr','pushPerfMeasures','oGVDK','concat','zVdDP','error-report.json','stringify','_observer','3326744exgkzx','measureWrapper','dMiks','reduce','calculateTimesFromMultipleFiles','env','\x20for\x20all\x20processes\x20is\x20','JtMpV','duration','ugJxs','path','Performance\x20report\x20is\x20at\x20','MWUwt','pushErrors','stopAndGenerate','EtSZS','Ahiwk','8wNDGdW','getEntries','getPerformance','false','observe','1783434gTwgLF','finally','entries','errors','apply','dZSQz','calculateTimeFromEvents','readFileSync','DXnjO','KYdRf','jsonReportFileName','finalize','startMonitoring','</td><td>','disconnect','IvSXg','-start','isEnabled','push','SAQPh','stopMonitoring','generateJSON','join','Error\x20stopping\x20monitoring','CdMit','forEach'];a78_0x3b6b=function(){return _0x39dba8;};return a78_0x3b6b();}function a78_0x2851(_0x5ccfba,_0x5861f1){const _0x3b6b9a=a78_0x3b6b();return a78_0x2851=function(_0x285167,_0x42f25d){_0x285167=_0x285167-0x194;let _0x30c415=_0x3b6b9a[_0x285167];return _0x30c415;},a78_0x2851(_0x5ccfba,_0x5861f1);}module['exports']=PerformanceTester;
|