browserstack-node-sdk 1.49.8 → 1.49.9
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.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/classLogger.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/metadata.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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.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 a109_0x337b44=a109_0x5b73;(function(_0x23575b,_0xb476dd){const _0x55818a=a109_0x5b73,_0x3a80a6=_0x23575b();while(!![]){try{const _0x8c1832=parseInt(_0x55818a(0x1d1))/0x1+-parseInt(_0x55818a(0x1ce))/0x2*(parseInt(_0x55818a(0x1fb))/0x3)+-parseInt(_0x55818a(0x1f2))/0x4*(parseInt(_0x55818a(0x1d5))/0x5)+parseInt(_0x55818a(0x1f3))/0x6*(parseInt(_0x55818a(0x1e0))/0x7)+parseInt(_0x55818a(0x1e8))/0x8*(parseInt(_0x55818a(0x1d6))/0x9)+parseInt(_0x55818a(0x209))/0xa*(parseInt(_0x55818a(0x203))/0xb)+-parseInt(_0x55818a(0x1c2))/0xc;if(_0x8c1832===_0xb476dd)break;else _0x3a80a6['push'](_0x3a80a6['shift']());}catch(_0x30f96f){_0x3a80a6['push'](_0x3a80a6['shift']());}}}(a109_0x2ecf,0xe9009));const winston=require(a109_0x337b44(0x1d3)),path=require(a109_0x337b44(0x1c4)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a109_0x337b44(0x1e4),logFormat=winston[a109_0x337b44(0x204)](_0x217992=>{const _0x233795=a109_0x337b44,_0xfbeb71={};_0xfbeb71['xymYd']=function(_0x592825,_0x552992){return _0x592825!==_0x552992;},_0xfbeb71[_0x233795(0x1be)]=_0x233795(0x1fc),_0xfbeb71[_0x233795(0x1d8)]=function(_0x515bc1,_0x37558f){return _0x515bc1===_0x37558f;},_0xfbeb71['zvmun']=_0x233795(0x205),_0xfbeb71[_0x233795(0x1c5)]=function(_0x43b35b,_0x2b1e0a){return _0x43b35b===_0x2b1e0a;};const _0x28ab39=_0xfbeb71;return _0x28ab39[_0x233795(0x206)](typeof _0x217992['message'],_0x28ab39['XZZaa'])&&(_0x217992[_0x233795(0x1c1)]=JSON[_0x233795(0x1fd)](_0x217992[_0x233795(0x1c1)])),global[_0x233795(0x1cc)]?.[_0x233795(0x1da)]?.[_0x233795(0x1ee)]&&_0x28ab39[_0x233795(0x1d8)](typeof _0x217992[_0x233795(0x1c1)],_0x28ab39['XZZaa'])&&(_0x217992[_0x233795(0x1c1)]=_0x217992[_0x233795(0x1c1)][_0x233795(0x1dc)](new RegExp(global[_0x233795(0x1cc)]['config'][_0x233795(0x1ee)],'g'),_0x28ab39[_0x233795(0x1e6)])),global[_0x233795(0x1cc)]?.[_0x233795(0x1da)]?.[_0x233795(0x1d9)]&&_0x28ab39[_0x233795(0x1c5)](typeof _0x217992['message'],_0x28ab39[_0x233795(0x1be)])&&(_0x217992[_0x233795(0x1c1)]=_0x217992[_0x233795(0x1c1)][_0x233795(0x1dc)](new RegExp(global[_0x233795(0x1cc)]['config']['accessKey'],'g'),_0x28ab39[_0x233795(0x1e6)])),_0x217992;}),fetchLogDir=()=>{const _0x361a2b=a109_0x337b44;if(process[_0x361a2b(0x1d4)][_0x361a2b(0x207)])return process[_0x361a2b(0x1d4)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs['existsSync'](tempLogDir)&&fs[_0x361a2b(0x200)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x173fd9=a109_0x337b44,_0xfa90b9={};_0xfa90b9['wFPGV']=_0x173fd9(0x1cf);const _0xf2ed7c=_0xfa90b9,_0x44bb32=process['env'][_0x173fd9(0x1c0)],_0x33ee5f=Object[_0x173fd9(0x1ca)](winston[_0x173fd9(0x1da)][_0x173fd9(0x1f9)]['levels']);if(_0x44bb32&&_0x33ee5f['includes'](_0x44bb32[_0x173fd9(0x1ff)]()))return _0x44bb32[_0x173fd9(0x1ff)]();return _0xf2ed7c[_0x173fd9(0x208)];},initialLogLevel=getInitialLogLevel(),a109_0x424ef3={};a109_0x424ef3['name']=a109_0x337b44(0x1e9),a109_0x424ef3['level']=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x337b44(0x1cd))][(a109_0x337b44(0x1dd))](a109_0x424ef3),'loggerFile':new winston[(a109_0x337b44(0x1cd))][(a109_0x337b44(0x1d0))]({'filename':path[a109_0x337b44(0x1de)](logDir,a109_0x337b44(0x1e7)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x337b44(0x1cd))][(a109_0x337b44(0x1d0))]({'filename':path[a109_0x337b44(0x1de)](logDir,'/usage-debug.log'),'level':'silly'}),'debugCliLoggerFile':new winston[(a109_0x337b44(0x1cd))][(a109_0x337b44(0x1d0))]({'filename':path[a109_0x337b44(0x1de)](logDir,'/sdk-cli-debug.log'),'level':'silly'}),'buildLinkTransport':new winston[(a109_0x337b44(0x1cd))]['File']({'filename':path['join'](logDir,a109_0x337b44(0x1e7)),'level':'silly'})},automationTransports={};function a109_0x5b73(_0x912f6a,_0x4ebbf8){const _0x2ecffd=a109_0x2ecf();return a109_0x5b73=function(_0x5b730c,_0x544231){_0x5b730c=_0x5b730c-0x1be;let _0x4c7b96=_0x2ecffd[_0x5b730c];return _0x4c7b96;},a109_0x5b73(_0x912f6a,_0x4ebbf8);}process[a109_0x337b44(0x1d4)][a109_0x337b44(0x1e2)]===a109_0x337b44(0x1f4)&&(automationTransports[a109_0x337b44(0x1cb)]=new winston[(a109_0x337b44(0x1cd))][(a109_0x337b44(0x1d0))]({'filename':path['join'](logDir,a109_0x337b44(0x1d2)),'level':a109_0x337b44(0x202)}));transports['loggerConsole']['on'](a109_0x337b44(0x1ec),_0x1b42ed=>{const _0x344fe8=a109_0x337b44,_0x252130={};_0x252130[_0x344fe8(0x1e3)]=function(_0x4495ea,_0x38c446){return _0x4495ea===_0x38c446;},_0x252130[_0x344fe8(0x1c8)]='EPIPE',_0x252130[_0x344fe8(0x1ea)]='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x5d7bf3=_0x252130;if(_0x5d7bf3[_0x344fe8(0x1e3)](_0x1b42ed[_0x344fe8(0x1c9)],_0x5d7bf3[_0x344fe8(0x1c8)])){console[_0x344fe8(0x1e4)](_0x5d7bf3[_0x344fe8(0x1ea)],_0x1b42ed[_0x344fe8(0x1c1)]);return;}throw _0x1b42ed;});const a109_0x4d9e79={};a109_0x4d9e79[a109_0x337b44(0x204)]='YYYY-MM-DD\x20HH:mm:ss';const a109_0x18bf71={};a109_0x18bf71['level']=!![];const winstonLoggerParams={'format':winston[a109_0x337b44(0x204)][a109_0x337b44(0x1ef)](winston['format'][a109_0x337b44(0x1c7)](a109_0x4d9e79),winston[a109_0x337b44(0x204)][a109_0x337b44(0x1ed)](a109_0x18bf71),winston[a109_0x337b44(0x204)][a109_0x337b44(0x20b)](_0x410f63=>_0x410f63[a109_0x337b44(0x1c7)]+'\x20-\x20'+_0x410f63[a109_0x337b44(0x1c6)]+':\x20'+_0x410f63['message'])),'transports':[transports['loggerConsole']]},a109_0x33d826={};a109_0x33d826[a109_0x337b44(0x204)]='YYYY-MM-DD\x20HH:mm:ss';function a109_0x2ecf(){const _0x2735d4=['AmBIc','accessKey','config','fileLogger','replace','Console','join','debug','14UbiZdz','SAncZ','BROWSERSTACK_AUTOMATION_LOGS','jMNfy','log','winstonLogger','zvmun','/usage.log','28192TsLZzF','console.info','FnDUn','loggerFile','error','colorize','userName','combine','debugLoggerFile','add','6200156qcnbhw','5244714JWKfQe','true','initialize','YYYY-MM-DD\x20HH:mm:ss','http','createLogger','npm','buildLogger','4988877Xfpzmz','string','stringify','\x20-\x20','toLowerCase','mkdirSync','logDir','silly','10653401yDHjIk','format','[REDACTED]','xymYd','BROWSERSTACK_INTERNAL_LOG_DIR','wFPGV','10pZGNLb','buildLinkTransport','printf','XZZaa','getLogDir','BROWSERSTACK_LOG_LEVEL','message','2684880BdKJrO','warn','path','xJtiE','level','timestamp','jgEau','code','keys','automationLoggerFile','session','transports','2ijOBro','info','File','144970nYShMw','automation.log','winston','env','5gEEXPx','3906xXPsps','uncolorize'];a109_0x2ecf=function(){return _0x2735d4;};return a109_0x2ecf();}const a109_0x36b443={};a109_0x36b443[a109_0x337b44(0x1c6)]=!![];const winstonFileLoggerParams={'format':winston[a109_0x337b44(0x204)]['combine'](winston[a109_0x337b44(0x204)][a109_0x337b44(0x1c7)](a109_0x33d826),winston['format'][a109_0x337b44(0x1ed)](a109_0x36b443),winston[a109_0x337b44(0x204)][a109_0x337b44(0x20b)](_0x5f5121=>_0x5f5121[a109_0x337b44(0x1c6)]+':\x20'+_0x5f5121[a109_0x337b44(0x1c1)])),'transports':[]},a109_0x3d74eb={};a109_0x3d74eb[a109_0x337b44(0x204)]=a109_0x337b44(0x1f6);const a109_0x3f48ef={};a109_0x3f48ef[a109_0x337b44(0x1c6)]=!![];const a109_0x342afe={};a109_0x342afe[a109_0x337b44(0x1c6)]=a109_0x337b44(0x202);const BuildLoggerParams={'format':winston[a109_0x337b44(0x204)]['combine'](winston[a109_0x337b44(0x204)]['timestamp'](a109_0x3d74eb),winston[a109_0x337b44(0x204)][a109_0x337b44(0x1ed)](a109_0x3f48ef),winston['format'][a109_0x337b44(0x20b)](_0x419e89=>_0x419e89[a109_0x337b44(0x1c7)]+a109_0x337b44(0x1fe)+_0x419e89[a109_0x337b44(0x1c6)]+':\x20'+_0x419e89[a109_0x337b44(0x1c1)])),'transports':[transports[a109_0x337b44(0x20a)],new winston[(a109_0x337b44(0x1cd))][(a109_0x337b44(0x1dd))](a109_0x342afe)]},a109_0x4a1f94={};a109_0x4a1f94[a109_0x337b44(0x1f7)]=()=>{},a109_0x4a1f94[a109_0x337b44(0x1cf)]=()=>{},a109_0x4a1f94[a109_0x337b44(0x1c3)]=()=>{},a109_0x4a1f94[a109_0x337b44(0x1ec)]=()=>{},a109_0x4a1f94[a109_0x337b44(0x1df)]=()=>{},a109_0x4a1f94[a109_0x337b44(0x202)]=()=>{},exports['automationLogger']=process['env'][a109_0x337b44(0x1e2)]===a109_0x337b44(0x1f4)?winston['createLogger']({'format':winston[a109_0x337b44(0x204)][a109_0x337b44(0x1ef)](winston[a109_0x337b44(0x204)][a109_0x337b44(0x1d7)](),winston[a109_0x337b44(0x204)][a109_0x337b44(0x1c7)](),logFormat(),winston['format'][a109_0x337b44(0x20b)](_0x38e914=>_0x38e914[a109_0x337b44(0x1c6)]+':\x20'+_0x38e914[a109_0x337b44(0x1c1)])),'transports':[automationTransports['automationLoggerFile']]}):a109_0x4a1f94;const initialize=()=>{const _0x17632a=a109_0x337b44,_0x4c0635={};_0x4c0635[_0x17632a(0x1e1)]=_0x17632a(0x202);const _0x2e5f2e=_0x4c0635,_0x19ea40=transports['loggerConsole'][_0x17632a(0x1c6)]||initialLogLevel;transports[_0x17632a(0x1eb)]=new winston['transports'][(_0x17632a(0x1d0))]({'filename':path[_0x17632a(0x1de)](exports[_0x17632a(0x201)],LOG_FILE_NAME),'level':_0x19ea40}),transports[_0x17632a(0x1f0)]=new winston[(_0x17632a(0x1cd))][(_0x17632a(0x1d0))]({'filename':path[_0x17632a(0x1de)](exports[_0x17632a(0x201)],DEBUG_LOG_FILE_NAME),'level':_0x2e5f2e['SAncZ']}),exports['winstonLogger'][_0x17632a(0x1f1)](transports['loggerFile']),exports[_0x17632a(0x1e5)][_0x17632a(0x1f1)](transports[_0x17632a(0x1f0)]),exports[_0x17632a(0x1db)]['add'](transports[_0x17632a(0x1eb)]),exports[_0x17632a(0x1db)][_0x17632a(0x1f1)](transports[_0x17632a(0x1f0)]);};exports['winstonLogger']=new winston[(a109_0x337b44(0x1f8))](winstonLoggerParams),exports['fileLogger']=new winston[(a109_0x337b44(0x1f8))](winstonFileLoggerParams),exports[a109_0x337b44(0x1fa)]=new winston[(a109_0x337b44(0x1f8))](BuildLoggerParams),exports[a109_0x337b44(0x201)]=logDir,exports[a109_0x337b44(0x1bf)]=()=>{const _0x43744e=a109_0x337b44;return exports[_0x43744e(0x201)];},exports['transports']=transports,exports[a109_0x337b44(0x1f5)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110_0x2013a6=a110_0x21f8;function a110_0x21f8(_0x158338,_0x331b61){const _0x3d24e3=a110_0x3d24();return a110_0x21f8=function(_0x21f878,_0x40aeea){_0x21f878=_0x21f878-0x199;let _0x587ad0=_0x3d24e3[_0x21f878];return _0x587ad0;},a110_0x21f8(_0x158338,_0x331b61);}(function(_0x2ad78d,_0x279140){const _0x267d79=a110_0x21f8,_0x2261a5=_0x2ad78d();while(!![]){try{const _0x257683=parseInt(_0x267d79(0x19a))/0x1+-parseInt(_0x267d79(0x1b5))/0x2+parseInt(_0x267d79(0x1b8))/0x3+parseInt(_0x267d79(0x1a3))/0x4*(parseInt(_0x267d79(0x1ac))/0x5)+parseInt(_0x267d79(0x1a0))/0x6+parseInt(_0x267d79(0x1a7))/0x7+parseInt(_0x267d79(0x19c))/0x8*(-parseInt(_0x267d79(0x1a6))/0x9);if(_0x257683===_0x279140)break;else _0x2261a5['push'](_0x2261a5['shift']());}catch(_0x6a0d3f){_0x2261a5['push'](_0x2261a5['shift']());}}}(a110_0x3d24,0xad7ca));const globals=require(a110_0x2013a6(0x1a5)),helper=require('./helper'),logger=require(a110_0x2013a6(0x19f))[a110_0x2013a6(0x1b2)];module[a110_0x2013a6(0x1a2)]=class TestMetadata{static[a110_0x2013a6(0x1b6)](_0x2a5207={}){const _0x4cbbf9=a110_0x2013a6,_0x328d50={};_0x328d50[_0x4cbbf9(0x19d)]=_0x4cbbf9(0x1a8),_0x328d50[_0x4cbbf9(0x1a9)]=function(_0x258047,_0x386376){return _0x258047===_0x386376;},_0x328d50[_0x4cbbf9(0x1b7)]=_0x4cbbf9(0x1a4),_0x328d50[_0x4cbbf9(0x1af)]=function(_0x594c12,_0x51a607){return _0x594c12<=_0x51a607;},_0x328d50[_0x4cbbf9(0x1ad)]=_0x4cbbf9(0x1b1),_0x328d50[_0x4cbbf9(0x1b9)]=_0x4cbbf9(0x1b4);const _0x1b65ad=_0x328d50,_0x59afb7=globals['getGlobal'](_0x1b65ad[_0x4cbbf9(0x19d)]),_0x144345=_0x2a5207[_0x4cbbf9(0x1ae)];helper[_0x4cbbf9(0x19e)]()[_0x4cbbf9(0x1a1)]&&(_0x1b65ad[_0x4cbbf9(0x1a9)](typeof _0x144345,_0x1b65ad['mqJSe'])&&_0x1b65ad[_0x4cbbf9(0x1af)](_0x144345[_0x4cbbf9(0x1aa)],0x28)?_0x59afb7?globals[_0x4cbbf9(0x1b0)](_0x4cbbf9(0x1b3)+_0x59afb7,_0x2a5207):globals['setGlobal'](_0x1b65ad[_0x4cbbf9(0x1ad)],_0x2a5207):logger['warn'](_0x1b65ad['rCOhu']));}static[a110_0x2013a6(0x199)](_0x467a43){const _0x313ff2=a110_0x2013a6,_0x2acc39={};_0x2acc39[_0x313ff2(0x1ab)]=_0x313ff2(0x1b1);const _0x26c94f=_0x2acc39;if(helper[_0x313ff2(0x19e)]()[_0x313ff2(0x1a1)])return globals[_0x313ff2(0x19b)](_0x313ff2(0x1b3)+_0x467a43)||globals[_0x313ff2(0x19b)](_0x26c94f[_0x313ff2(0x1ab)])||{};return{};}};function a110_0x3d24(){const _0x2049b1=['rCOhu','get','1314105QrRrxT','getGlobal','144JfymxI','AMSNE','getCentralUser','./logger','2506806yFKmkU','lcnc','exports','438296nWdBuQ','string','./globals','776259EdCkas','2061759ABQNgl','testRunUUID','miLXo','length','obCtj','5XBGVjR','LgluN','identifier','gIKKp','setGlobal','testMeta','winstonLogger','testMeta-','The\x20metadata\x20object\x20is\x20not\x20valid.','769710xyJmMb','set','mqJSe','1535874zdZNNs'];a110_0x3d24=function(){return _0x2049b1;};return a110_0x3d24();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111_0x553cec=a111_0x2656;(function(_0x2bd7a8,_0x568e8a){const _0x33f1af=a111_0x2656,_0xac41c7=_0x2bd7a8();while(!![]){try{const _0x33f247=-parseInt(_0x33f1af(0x1b4))/0x1+parseInt(_0x33f1af(0x1b2))/0x2*(parseInt(_0x33f1af(0x1a2))/0x3)+-parseInt(_0x33f1af(0x168))/0x4+parseInt(_0x33f1af(0x182))/0x5*(-parseInt(_0x33f1af(0x146))/0x6)+-parseInt(_0x33f1af(0x13d))/0x7*(-parseInt(_0x33f1af(0x176))/0x8)+parseInt(_0x33f1af(0x178))/0x9+-parseInt(_0x33f1af(0x149))/0xa;if(_0x33f247===_0x568e8a)break;else _0xac41c7['push'](_0xac41c7['shift']());}catch(_0x795231){_0xac41c7['push'](_0xac41c7['shift']());}}}(a111_0x1764,0x7a130));function a111_0x2656(_0xd68c61,_0x3f2f0c){const _0x1764e9=a111_0x1764();return a111_0x2656=function(_0x2656ac,_0x173d04){_0x2656ac=_0x2656ac-0x138;let _0x3b09c9=_0x1764e9[_0x2656ac];return _0x3b09c9;},a111_0x2656(_0xd68c61,_0x3f2f0c);}const {aiSdkWrapper}=require(a111_0x553cec(0x181)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a111_0x553cec(0x162)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a111_0x553cec(0x150)),helper=require('./helper'),constants=require(a111_0x553cec(0x1bc)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x553cec(0x1b5)),util=require(a111_0x553cec(0x195));exports[a111_0x553cec(0x193)]=(_0x528744,_0x4808e2)=>{const _0x50c4ba=a111_0x553cec,_0x5172a1={'WrloK':'aiSdk_defaultLogDataEnabled','hIcJO':function(_0x52b616,_0x2067c3){return _0x52b616===_0x2067c3;},'vztSg':_0x50c4ba(0x17d),'bZlLb':_0x50c4ba(0x1b8),'ysMyF':_0x50c4ba(0x15e),'MVNJl':_0x50c4ba(0x16e),'tzXhN':function(_0xaf1694){return _0xaf1694();},'ikPFW':_0x50c4ba(0x1bd),'EcyKs':function(_0x25b8a9){return _0x25b8a9();},'LZQpx':_0x50c4ba(0x158),'crkSk':_0x50c4ba(0x19e),'bkRkP':'JavascriptError','Axblr':function(_0x199093,_0x2faca6){return _0x199093===_0x2faca6;},'cncrv':'css\x20selector','CJUsl':function(_0x360eee,_0x38e97f){return _0x360eee+_0x38e97f;},'MEONK':_0x50c4ba(0x16f),'fNkwu':_0x50c4ba(0x138),'HQIyT':_0x50c4ba(0x143),'mZrfE':'aiHeal:findElementFailure','ONslL':function(_0x443b4d,_0x1dca75){return _0x443b4d&&_0x1dca75;},'bZTvi':function(_0x2d15a8,_0xd568c){return _0x2d15a8===_0xd568c;},'HyViZ':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Rhpfz':function(_0x5f2818,_0x2aac6c){return _0x5f2818+_0x2aac6c;},'GSLbc':function(_0x21575a,_0x4d2748){return _0x21575a+_0x4d2748;},'weIOy':_0x50c4ba(0x1c1),'WTuzN':_0x50c4ba(0x163),'jPmow':function(_0x216602,_0x27a0be){return _0x216602+_0x27a0be;},'jytjO':function(_0x557354,_0x35319f){return _0x557354+_0x35319f;},'eLClC':_0x50c4ba(0x197),'hIdJN':_0x50c4ba(0x161),'VBBUm':'parameters_','KMypl':_0x50c4ba(0x15f),'wpZnw':_0x50c4ba(0x1ab),'OILQo':function(_0x34546f,_0x14ddfa){return _0x34546f===_0x14ddfa;},'fFMMh':_0x50c4ba(0x1ae),'WHSgh':_0x50c4ba(0x174),'rjufb':'string','qhoPI':'capability','IwShV':_0x50c4ba(0x170),'aWMvo':_0x50c4ba(0x165),'oIevX':_0x50c4ba(0x184)},_0x38e556=_0x528744[_0x50c4ba(0x19d)]||(helper[_0x50c4ba(0x19b)](_0x4808e2,[_0x5172a1['qhoPI'],_0x5172a1[_0x50c4ba(0x15d)]])||helper[_0x50c4ba(0x19b)](_0x4808e2,[_0x5172a1['qhoPI'],_0x5172a1[_0x50c4ba(0x1b6)],_0x5172a1[_0x50c4ba(0x175)]]));if(!globals[_0x50c4ba(0x1bf)](_0x5172a1['bZlLb'])&&!globals['getGlobal'](_0x5172a1[_0x50c4ba(0x140)])&&_0x38e556)return;_0x528744[_0x50c4ba(0x19d)]=!![],_0x528744[_0x50c4ba(0x166)]=_0x528744['execute'],_0x528744['execute']=async _0xc8bf90=>{const _0x40fc0a=_0x50c4ba,_0x5ebbae={'asJJG':_0x5172a1[_0x40fc0a(0x1a0)],'jHkZJ':_0x5172a1[_0x40fc0a(0x1b3)],'fQUny':function(_0xcd7709){return _0x5172a1['EcyKs'](_0xcd7709);},'kRuAG':_0x5172a1['LZQpx'],'xrdzR':function(_0x59e34a,_0x514d90){const _0x3d57ae=_0x40fc0a;return _0x5172a1[_0x3d57ae(0x1be)](_0x59e34a,_0x514d90);},'qKvao':_0x5172a1[_0x40fc0a(0x159)],'ThNdd':_0x5172a1[_0x40fc0a(0x1a7)],'OPDtt':function(_0x19df25,_0x528ad5){const _0x577ec5=_0x40fc0a;return _0x5172a1[_0x577ec5(0x17e)](_0x19df25,_0x528ad5);},'pImTj':_0x5172a1[_0x40fc0a(0x19c)],'aytzL':_0x5172a1[_0x40fc0a(0x140)],'APGJP':function(_0x304c74,_0xa29aab){const _0x59c979=_0x40fc0a;return _0x5172a1[_0x59c979(0x17e)](_0x304c74,_0xa29aab);},'cpSkc':_0x5172a1[_0x40fc0a(0x18b)],'HvGHv':function(_0x1b7520,_0x57a58){const _0xfce420=_0x40fc0a;return _0x5172a1[_0xfce420(0x1a5)](_0x1b7520,_0x57a58);},'HJudH':function(_0x2095c5,_0x33eff0){return _0x5172a1['CJUsl'](_0x2095c5,_0x33eff0);},'yWbcd':_0x5172a1[_0x40fc0a(0x13c)],'eoYNE':_0x5172a1[_0x40fc0a(0x17c)],'AcWMN':function(_0x1fd103,_0x59c774){const _0xd35a8a=_0x40fc0a;return _0x5172a1[_0xd35a8a(0x1a5)](_0x1fd103,_0x59c774);},'UbWyd':_0x5172a1[_0x40fc0a(0x1c2)],'oVnbA':_0x5172a1[_0x40fc0a(0x18a)],'rjcVi':function(_0x4f9d2d,_0x3eeecf){return _0x5172a1['ONslL'](_0x4f9d2d,_0x3eeecf);},'wuZMv':function(_0x59122d,_0x328766){const _0x4629d5=_0x40fc0a;return _0x5172a1[_0x4629d5(0x164)](_0x59122d,_0x328766);},'dmird':_0x5172a1[_0x40fc0a(0x190)],'aIiVH':function(_0x579338,_0x3fd903){const _0x5d3d62=_0x40fc0a;return _0x5172a1[_0x5d3d62(0x15c)](_0x579338,_0x3fd903);},'cxnDg':function(_0x55a985,_0x2e2ce6){const _0x1513d3=_0x40fc0a;return _0x5172a1[_0x1513d3(0x17b)](_0x55a985,_0x2e2ce6);},'iPUFf':_0x5172a1[_0x40fc0a(0x194)],'YkLaO':_0x5172a1[_0x40fc0a(0x1a6)],'kmuVD':function(_0x29ca74,_0x5d8276){const _0x26525e=_0x40fc0a;return _0x5172a1[_0x26525e(0x14d)](_0x29ca74,_0x5d8276);},'wtHVK':function(_0x5dd151,_0x3b6fa6){return _0x5172a1['jytjO'](_0x5dd151,_0x3b6fa6);},'IVRVu':_0x5172a1[_0x40fc0a(0x196)],'TkTNn':_0x5172a1[_0x40fc0a(0x148)],'MuPIg':_0x5172a1[_0x40fc0a(0x192)],'fBrSi':_0x5172a1[_0x40fc0a(0x188)],'rEwkW':_0x5172a1[_0x40fc0a(0x1b0)]};try{const _0x39b57f={};_0x39b57f['command']=_0xc8bf90[_0x40fc0a(0x141)],await PerformanceTester[_0x40fc0a(0x152)](PerformanceDriverEvents[_0x40fc0a(0x1ac)],async()=>{const _0x309053=_0x40fc0a,_0x64bb5a={};_0x64bb5a[_0x309053(0x16c)]=_0x5ebbae[_0x309053(0x1aa)];const _0x3aa0e8=_0x64bb5a;if(!commandRepository['getTcgTokenStatus']()&&globals[_0x309053(0x1bf)](_0x5ebbae['asJJG'])){const _0x2b2504=PerformanceTester[_0x309053(0x152)](_0x5ebbae[_0x309053(0x156)],async()=>{const _0x2d7166=_0x309053;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x2d7166(0x171)]((await _0x528744[_0x2d7166(0x17f)]())[_0x2d7166(0x19f)]());const _0x2f92bd=globals['getGlobal'](_0x3aa0e8[_0x2d7166(0x16c)]);_0x2f92bd&&commandRepository[_0x2d7166(0x179)]((await _0x528744[_0x2d7166(0x17f)]())['getId']());}catch(_0x13020d){logger[_0x2d7166(0x187)](_0x2d7166(0x157)+_0x13020d);}});await _0x5ebbae['fQUny'](_0x2b2504);}},_0x39b57f)();const _0x184f9e=await _0x528744[_0x40fc0a(0x166)](_0xc8bf90);try{if(_0x5172a1[_0x40fc0a(0x147)](_0xc8bf90[_0x40fc0a(0x141)],_0x5172a1[_0x40fc0a(0x13b)])||_0x5172a1['bZTvi'](_0xc8bf90['name_'],_0x5172a1[_0x40fc0a(0x13a)])){const _0x58f808=_0xc8bf90[_0x40fc0a(0x14e)]&&_0xc8bf90['parameters_'][_0x40fc0a(0x16a)],_0xe2f49=_0xc8bf90[_0x40fc0a(0x14e)]&&_0xc8bf90[_0x40fc0a(0x14e)][_0x40fc0a(0x14a)],_0x482fcc=_0xe2f49&&util[_0x40fc0a(0x173)]('%j',_0xe2f49);if(_0x58f808&&_0x5172a1[_0x40fc0a(0x164)](typeof _0x58f808,_0x5172a1[_0x40fc0a(0x18d)])){const _0x250af6=constants[_0x40fc0a(0x183)][_0x40fc0a(0x1c5)](_0x502996=>_0x58f808[_0x40fc0a(0x167)](_0x502996)||_0x482fcc&&_0x482fcc[_0x40fc0a(0x167)](_0x502996));if(_0x250af6){const _0x209123={};_0x209123[_0x40fc0a(0x145)]=_0x250af6,_0x209123[_0x40fc0a(0x155)]=_0xe2f49;const _0x247de8={};_0x247de8['body']=_0x184f9e;const _0x1eb2d0={};_0x1eb2d0[_0x40fc0a(0x14b)]=_0x209123,_0x1eb2d0[_0x40fc0a(0x191)]=_0x247de8,automationLogger[_0x40fc0a(0x1bb)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x40fc0a(0x173)]('%j',_0x1eb2d0));}}}}catch(_0x3c386f){logger[_0x40fc0a(0x1bb)](_0x40fc0a(0x1b7)+_0x3c386f[_0x40fc0a(0x177)]);}return await PerformanceTester[_0x40fc0a(0x152)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x298f39=_0x40fc0a;if(!helper[_0x298f39(0x18c)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x298f39(0x1bf)](_0x5172a1['WrloK']))&&_0x5172a1[_0x298f39(0x1be)](_0xc8bf90[_0x298f39(0x141)],_0x5172a1['vztSg'])&&!_0xc8bf90['skipHealingSuccess']&&globals[_0x298f39(0x1bf)](_0x5172a1[_0x298f39(0x1a0)])&&globals[_0x298f39(0x1bf)](_0x5172a1[_0x298f39(0x140)])){const _0x1a8f3f=new Date(),_0x5f74b4=PerformanceTester[_0x298f39(0x152)](_0x5172a1['MVNJl'],async()=>{const _0x32c2d2=_0x298f39;return await aiSdkWrapper[_0x32c2d2(0x1a1)](_0x4808e2,_0x528744,_0xc8bf90);});await _0x5172a1[_0x298f39(0x13f)](_0x5f74b4);}},{'command':_0xc8bf90[_0x40fc0a(0x141)]})(),_0x184f9e;}catch(_0x30c462){await PerformanceTester[_0x40fc0a(0x152)](PerformanceDriverEvents[_0x40fc0a(0x160)],async()=>{const _0x52d3f4=_0x40fc0a;logger[_0x52d3f4(0x16d)](_0x5ebbae[_0x52d3f4(0x14f)]);try{if(!helper[_0x52d3f4(0x18c)]()&&(_0x5ebbae[_0x52d3f4(0x144)](_0x30c462[_0x52d3f4(0x151)],_0x5ebbae[_0x52d3f4(0x1af)])||_0x5ebbae[_0x52d3f4(0x144)](_0x30c462[_0x52d3f4(0x151)],_0x5ebbae[_0x52d3f4(0x1a8)]))&&_0x5ebbae['OPDtt'](_0xc8bf90[_0x52d3f4(0x141)],_0x5ebbae[_0x52d3f4(0x169)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x52d3f4(0x1bf)](_0x5ebbae[_0x52d3f4(0x1aa)])&&globals[_0x52d3f4(0x1bf)](_0x5ebbae[_0x52d3f4(0x172)])){_0x5ebbae[_0x52d3f4(0x1b9)](_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x19a)],_0x5ebbae[_0x52d3f4(0x1c0)])?logger['info'](_0x5ebbae[_0x52d3f4(0x154)](_0x5ebbae['HJudH'](_0x5ebbae[_0x52d3f4(0x16b)],_0xc8bf90['parameters_'][_0x52d3f4(0x189)]),_0x5ebbae[_0x52d3f4(0x180)])):logger[_0x52d3f4(0x15a)](_0x5ebbae[_0x52d3f4(0x198)](_0x5ebbae[_0x52d3f4(0x1ba)](_0x5ebbae[_0x52d3f4(0x198)](_0x5ebbae['HvGHv'](_0x5ebbae[_0x52d3f4(0x153)],_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x19a)]),':\x20'),_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x189)]),_0x5ebbae[_0x52d3f4(0x180)]));const _0x382c41=PerformanceTester[_0x52d3f4(0x152)](_0x5ebbae[_0x52d3f4(0x1b1)],async()=>{return await aiSdkWrapper['handleFailure'](_0x4808e2,_0x528744,_0xc8bf90);}),_0x447b6a=new Date(),{locatorType:_0x28963f,locatorValue:_0x51e4b1,commandHealed:_0x5a7a88}=await _0x5ebbae['fQUny'](_0x382c41);if(_0x5ebbae['rjcVi'](_0x28963f,_0x51e4b1)){_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x19a)]=_0x28963f,_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x189)]=_0x51e4b1,_0xc8bf90[_0x52d3f4(0x18f)]=!![];const _0x1c41b0=_0x528744[_0x52d3f4(0x15b)](_0xc8bf90);return _0x5ebbae[_0x52d3f4(0x1a9)](_0x28963f,_0x5ebbae[_0x52d3f4(0x1c0)])?logger[_0x52d3f4(0x15a)](_0x5ebbae[_0x52d3f4(0x1ba)](_0x5ebbae[_0x52d3f4(0x142)],_0x51e4b1)):logger[_0x52d3f4(0x15a)](_0x5ebbae[_0x52d3f4(0x17a)](_0x5ebbae[_0x52d3f4(0x1c3)](_0x5ebbae['aIiVH'](_0x5ebbae[_0x52d3f4(0x14c)],_0x28963f),':\x20'),_0x51e4b1)),_0x1c41b0;}else!_0x5a7a88&&(_0x5ebbae['wuZMv'](_0x28963f,_0x5ebbae['cpSkc'])?logger['info'](_0x5ebbae[_0x52d3f4(0x1ba)](_0x5ebbae[_0x52d3f4(0x1a4)],_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x189)])):logger['info'](_0x5ebbae[_0x52d3f4(0x1c3)](_0x5ebbae[_0x52d3f4(0x1c4)](_0x5ebbae[_0x52d3f4(0x1a3)](_0x5ebbae[_0x52d3f4(0x1ad)],_0xc8bf90['parameters_']['using']),':\x20'),_0xc8bf90[_0x52d3f4(0x14e)][_0x52d3f4(0x189)])));}!_0x38e556&&_0x5ebbae['OPDtt'](_0xc8bf90['name_'],_0x5ebbae[_0x52d3f4(0x186)])&&helper[_0x52d3f4(0x19b)](_0xc8bf90,[_0x5ebbae[_0x52d3f4(0x199)],_0x5ebbae[_0x52d3f4(0x185)]])&&!!constants[_0x52d3f4(0x139)][_0x52d3f4(0x1c5)](_0x2286d8=>{const _0x2b9d0b=_0x52d3f4;return _0x30c462[_0x2b9d0b(0x13e)]()[_0x2b9d0b(0x167)](_0x2286d8);})&&helper['getNudgeLocalNotSetError'](_0xc8bf90['parameters_'][_0x52d3f4(0x15f)],!![]);}catch(_0x1ba484){logger['debug'](_0x5ebbae[_0x52d3f4(0x18e)],_0x1ba484);}},{'success':![],'failure':_0x30c462})();throw _0x30c462;}};};function a111_0x1764(){const _0x42a6aa=['aiHeal:findElementSuccess','findElement\x20command\x20failed\x20with\x20cssPath:\x20','browserstack.local','setTcgToken','aytzL','format','executeScript','oIevX','48rGTDbW','message','6510051kKcbsY','setAiSessionTimeStamp','aIiVH','GSLbc','fNkwu','findElement','Axblr','getSession','eoYNE','./ai-sdk/aiSdkWrapper','1786735ibDlth','AUTOMATION_LOG_COMMANDS','local','fBrSi','TkTNn','error','KMypl','value','mZrfE','cncrv','isBrowserstackInfra','rjufb','rEwkW','skipHealingSuccess','HyViZ','response','VBBUm','overrideExecute','weIOy','util','eLClC','Healing\x20failed\x20for\x20command\x20using\x20','HJudH','MuPIg','using','nestedKeyValue','vztSg','patchExecute','NoSuchElementError','getId','bZlLb','handleSuccess','27012UlmeyO','wtHVK','YkLaO','CJUsl','WTuzN','bkRkP','ThNdd','wuZMv','asJJG','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','PRE_EXECUTE','IVRVu','executeAsyncScript','qKvao','wpZnw','oVnbA','188RxXjoc','ikPFW','411707ujopol','./performance/constants','aWMvo','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','aiHeal_isAuthenticated','APGJP','AcWMN','silly','../bin/utils/constants','aiHeal:setToken','hIcJO','getGlobal','cpSkc','Successfully\x20healed\x20command\x20using\x20new\x20','HQIyT','cxnDg','kmuVD','find',';\x20Trying\x20to\x20heal','NUDGE_LOCAL_ERRORS','WHSgh','fFMMh','MEONK','358442NzwjVz','toString','tzXhN','ysMyF','name_','dmird','findElement\x20command\x20failed\x20with\x20','xrdzR','command','12EtCrYp','OILQo','hIdJN','1999150xSlqps','args','request','iPUFf','jPmow','parameters_','kRuAG','./logger','name','measureWrapper','UbWyd','HvGHv','parameters','jHkZJ','Error\x20in\x20handling\x20TCG\x20Auth:\x20','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','crkSk','info','execute','Rhpfz','IwShV','aiHeal_isHealingEnabled','url','POST_EXECUTE','get','./performance/performance-tester','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','bZTvi','bstack:options','initExecute','includes','202476lCwpse','pImTj','script','yWbcd','GkUUq','debug'];a111_0x1764=function(){return _0x42a6aa;};return a111_0x1764();}
|
|
1
|
+
function a111_0x5e25(_0x10dc81,_0x187b27){const _0x181ed3=a111_0x181e();return a111_0x5e25=function(_0x5e25d5,_0xd8bf50){_0x5e25d5=_0x5e25d5-0x14d;let _0x4efef2=_0x181ed3[_0x5e25d5];return _0x4efef2;},a111_0x5e25(_0x10dc81,_0x187b27);}const a111_0x4e3ada=a111_0x5e25;(function(_0x13fcad,_0x246706){const _0x1ae6ac=a111_0x5e25,_0x8c5e15=_0x13fcad();while(!![]){try{const _0x3a6df4=-parseInt(_0x1ae6ac(0x179))/0x1+parseInt(_0x1ae6ac(0x182))/0x2+-parseInt(_0x1ae6ac(0x1c9))/0x3*(parseInt(_0x1ae6ac(0x168))/0x4)+parseInt(_0x1ae6ac(0x172))/0x5*(-parseInt(_0x1ae6ac(0x1bc))/0x6)+parseInt(_0x1ae6ac(0x1d1))/0x7*(-parseInt(_0x1ae6ac(0x1b0))/0x8)+parseInt(_0x1ae6ac(0x171))/0x9+parseInt(_0x1ae6ac(0x19b))/0xa;if(_0x3a6df4===_0x246706)break;else _0x8c5e15['push'](_0x8c5e15['shift']());}catch(_0x13c57d){_0x8c5e15['push'](_0x8c5e15['shift']());}}}(a111_0x181e,0xef873));function a111_0x181e(){const _0xf661c7=['niklq','iAGZr','setTcgToken','281272SsXNqq','FyeJJ','bBXVB','uYbMl','PRE_EXECUTE','setAiSessionTimeStamp','aiHeal:findElementSuccess','findElement\x20command\x20failed\x20with\x20','amjQx','7630092ikfWQA','4184665OdSpDS','psjeo','ScEhg','args','measureWrapper','Healing\x20failed\x20for\x20command\x20using\x20','mgPHU','1443697TRsHVa','hQAAi','ouigN','iOGhE','ndpsk','findElement','patchExecute','iEkEg','getNudgeLocalNotSetError','1883884NemLPZ','jvoFj','./logger','eyfWK','toString','JDUYu','error','IeJIu','request','ZAgWH','AUTOMATION_LOG_COMMANDS','fnxTV','Qqste','./helper','xEyrw','isBrowserstackInfra','ucpjD','using','getTcgTokenStatus','getGlobal','parameters','./ai-sdk/aiSdkWrapper','name_','aMtwA',';\x20Trying\x20to\x20heal','26684160ClfiSm','JavascriptError','./performance/constants','dDFFB','find','isSelfHealEnabled','][\x20SDK-AUTOMATION\x20]\x20','xXllo','dGMbA','Baatt','nestedKeyValue','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','tyKzE','skipHealingSuccess','KeLdU','value','MseVv','response','xkBei','aiSdk_defaultLogDataEnabled','vvCrL','9008728MlpmNs','NoSuchElementError','aiHeal_isHealingEnabled','./globals','czEBD','getSession','capability','aiHeal:findElementFailure','info','POST_EXECUTE','parameters_','uRFLA','6dYzapw','tEBvi','zGZOq','xNpNp','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','sUiaK','getId','initExecute','url','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','wpLjQ','CBhXH','setTcgTokenStatus','3sQcmOs','zahKZ','includes','vigVj','executeAsyncScript','tTxXG','Nwydt','AvZwa','7TIPSEN','./performance/performance-tester','browserstack.local','zFsdB','Xnuoj','cXBAQ','format','aiHeal:setToken','gIMSH','ZOyic','Error\x20in\x20handling\x20TCG\x20Auth:\x20','trVXV','jHWAp','moINd','lRZWC','css\x20selector','execute','FBefz','name','silly','xDhiB','overrideExecute','hhEpE','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','MXMkX','EUyaH','gsZez','executeScript','debug','AhoNe','SQXvk'];a111_0x181e=function(){return _0xf661c7;};return a111_0x181e();}const {aiSdkWrapper}=require(a111_0x4e3ada(0x197)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a111_0x4e3ada(0x1d2)),globals=require(a111_0x4e3ada(0x1b3)),{winstonLogger:logger,automationLogger}=require(a111_0x4e3ada(0x184)),helper=require(a111_0x4e3ada(0x18f)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x4e3ada(0x19d)),util=require('util');exports[a111_0x4e3ada(0x15b)]=(_0x12ea1e,_0x15456f)=>{const _0x580a28=a111_0x4e3ada,_0x50b80e={'vigVj':'aiHeal_isAuthenticated','psjeo':_0x580a28(0x14d),'amjQx':function(_0x4423e1){return _0x4423e1();},'lYMJR':_0x580a28(0x1ae),'gsZez':function(_0x2b93ae,_0x4e9abb){return _0x2b93ae===_0x4e9abb;},'wpLjQ':_0x580a28(0x17e),'xkBei':_0x580a28(0x1b2),'moINd':_0x580a28(0x16e),'JDUYu':_0x580a28(0x1a6),'ndpsk':function(_0x3a71e8,_0x4a449e){return _0x3a71e8===_0x4a449e;},'sdWPQ':_0x580a28(0x1b1),'aMtwA':_0x580a28(0x19c),'ZOyic':function(_0x4e2b54,_0x5ad3ec){return _0x4e2b54===_0x5ad3ec;},'czEBD':_0x580a28(0x155),'tyKzE':function(_0x5b317b,_0x96e4d3){return _0x5b317b+_0x96e4d3;},'MXMkX':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','JiFLt':_0x580a28(0x19a),'eyfWK':function(_0x262705,_0x2b281b){return _0x262705+_0x2b281b;},'Nwydt':function(_0x49eb8e,_0x322adf){return _0x49eb8e+_0x322adf;},'sUiaK':_0x580a28(0x16f),'MseVv':_0x580a28(0x1b7),'qKtGl':function(_0x2b8c9f,_0x27280f){return _0x2b8c9f&&_0x27280f;},'ScEhg':function(_0x28d28c,_0xe59700){return _0x28d28c+_0xe59700;},'lRZWC':_0x580a28(0x1c5),'nBKmb':'Successfully\x20healed\x20command\x20using\x20new\x20','dDFFB':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','Xnuoj':_0x580a28(0x177),'Baatt':function(_0x5cb6cc,_0xeab1af){return _0x5cb6cc===_0xeab1af;},'fnxTV':'get','WaRAW':_0x580a28(0x1ba),'zahKZ':_0x580a28(0x1c4),'xDhiB':_0x580a28(0x15d),'SQXvk':_0x580a28(0x1cd),'KeLdU':function(_0x2b11a9,_0x1fb63f){return _0x2b11a9===_0x1fb63f;},'jGZaD':_0x580a28(0x161),'xNpNp':'string','dGMbA':_0x580a28(0x1b6),'tEBvi':_0x580a28(0x1d3),'hhEpE':'bstack:options','OCSKv':'local'},_0x30537f=_0x12ea1e[_0x580a28(0x17f)]||(helper[_0x580a28(0x1a5)](_0x15456f,[_0x50b80e[_0x580a28(0x1a3)],_0x50b80e[_0x580a28(0x1bd)]])||helper[_0x580a28(0x1a5)](_0x15456f,[_0x50b80e[_0x580a28(0x1a3)],_0x50b80e[_0x580a28(0x15c)],_0x50b80e['OCSKv']]));if(!globals[_0x580a28(0x195)](_0x50b80e[_0x580a28(0x1cc)])&&!globals[_0x580a28(0x195)](_0x50b80e[_0x580a28(0x1ad)])&&_0x30537f)return;_0x12ea1e[_0x580a28(0x17f)]=!![],_0x12ea1e[_0x580a28(0x1c3)]=_0x12ea1e[_0x580a28(0x156)],_0x12ea1e[_0x580a28(0x156)]=async _0x7b6608=>{const _0x3847e8=_0x580a28,_0x508569={'Qqste':_0x50b80e[_0x3847e8(0x1cc)],'esBGI':_0x50b80e[_0x3847e8(0x173)],'fecKl':function(_0x35090c){const _0xaa31e6=_0x3847e8;return _0x50b80e[_0xaa31e6(0x170)](_0x35090c);},'PgKJz':_0x50b80e['lYMJR'],'tTxXG':function(_0x7ab294,_0x41854a){const _0x49f7bc=_0x3847e8;return _0x50b80e[_0x49f7bc(0x160)](_0x7ab294,_0x41854a);},'IeJIu':_0x50b80e[_0x3847e8(0x1c6)],'iOGhE':_0x50b80e['xkBei'],'zGZOq':_0x50b80e[_0x3847e8(0x153)],'FBefz':function(_0x2130cc){const _0x5240a4=_0x3847e8;return _0x50b80e[_0x5240a4(0x170)](_0x2130cc);},'gIMSH':_0x50b80e[_0x3847e8(0x187)],'zFsdB':function(_0x331e7f,_0x4eba04){const _0x586d04=_0x3847e8;return _0x50b80e[_0x586d04(0x17d)](_0x331e7f,_0x4eba04);},'AhoNe':_0x50b80e['sdWPQ'],'FyeJJ':_0x50b80e[_0x3847e8(0x199)],'ZAgWH':function(_0x163c0b,_0x3d5dbc){const _0x2f8541=_0x3847e8;return _0x50b80e[_0x2f8541(0x14f)](_0x163c0b,_0x3d5dbc);},'trVXV':_0x50b80e[_0x3847e8(0x1b4)],'ucpjD':function(_0x33ebdd,_0x4adbff){const _0x402845=_0x3847e8;return _0x50b80e[_0x402845(0x1a7)](_0x33ebdd,_0x4adbff);},'iAGZr':function(_0x4c95a3,_0x4be62a){const _0x35f6ba=_0x3847e8;return _0x50b80e[_0x35f6ba(0x1a7)](_0x4c95a3,_0x4be62a);},'CBhXH':_0x50b80e[_0x3847e8(0x15e)],'OgbhO':_0x50b80e['JiFLt'],'jvoFj':function(_0x5b9818,_0x508ce8){const _0x51c9b2=_0x3847e8;return _0x50b80e[_0x51c9b2(0x1a7)](_0x5b9818,_0x508ce8);},'mgPHU':function(_0x7f0720,_0x388361){const _0x9ea123=_0x3847e8;return _0x50b80e[_0x9ea123(0x185)](_0x7f0720,_0x388361);},'jHWAp':function(_0x161ced,_0x35a754){const _0x56e438=_0x3847e8;return _0x50b80e[_0x56e438(0x185)](_0x161ced,_0x35a754);},'uYbMl':function(_0x4a0791,_0x636ff1){const _0x593e71=_0x3847e8;return _0x50b80e[_0x593e71(0x1cf)](_0x4a0791,_0x636ff1);},'EUyaH':_0x50b80e[_0x3847e8(0x1c1)],'LSGVB':_0x50b80e[_0x3847e8(0x1ab)],'xXllo':function(_0x1041b0,_0x361f68){return _0x50b80e['qKtGl'](_0x1041b0,_0x361f68);},'hqXhk':function(_0x170d8e,_0x44a757){const _0x2c015d=_0x3847e8;return _0x50b80e[_0x2c015d(0x174)](_0x170d8e,_0x44a757);},'AvZwa':_0x50b80e[_0x3847e8(0x154)],'YGOfr':function(_0xce18ad,_0x1f2e8d){const _0x464926=_0x3847e8;return _0x50b80e[_0x464926(0x174)](_0xce18ad,_0x1f2e8d);},'iEkEg':_0x50b80e['nBKmb'],'qUTsg':_0x50b80e[_0x3847e8(0x19e)],'xEyrw':function(_0x46eebd,_0x14c321){const _0x16a05c=_0x3847e8;return _0x50b80e[_0x16a05c(0x1cf)](_0x46eebd,_0x14c321);},'bBXVB':function(_0x1b13c9,_0x52a00f){return _0x50b80e['eyfWK'](_0x1b13c9,_0x52a00f);},'ouigN':_0x50b80e[_0x3847e8(0x1d5)],'yqMSq':function(_0x364f16,_0x2e2c52){const _0x36f5e9=_0x3847e8;return _0x50b80e[_0x36f5e9(0x1a4)](_0x364f16,_0x2e2c52);},'vvCrL':_0x50b80e[_0x3847e8(0x18d)],'uRFLA':_0x50b80e['WaRAW'],'niklq':_0x50b80e[_0x3847e8(0x1ca)],'cXBAQ':_0x50b80e[_0x3847e8(0x15a)]};try{const _0x10ac31={};_0x10ac31['command']=_0x7b6608[_0x3847e8(0x198)],await PerformanceTester[_0x3847e8(0x176)](PerformanceDriverEvents[_0x3847e8(0x16c)],async()=>{const _0x339af8=_0x3847e8,_0x21c838={};_0x21c838['hQAAi']=_0x508569[_0x339af8(0x18e)];const _0x556b23=_0x21c838;if(!commandRepository[_0x339af8(0x194)]()&&globals['getGlobal'](_0x508569['Qqste'])){const _0x4be4f5=PerformanceTester[_0x339af8(0x176)](_0x508569['esBGI'],async()=>{const _0x23efdf=_0x339af8;try{commandRepository[_0x23efdf(0x1c8)](!![]),await aiSdkWrapper[_0x23efdf(0x167)]((await _0x12ea1e[_0x23efdf(0x1b5)]())['getId']());const _0x5a0568=globals['getGlobal'](_0x556b23[_0x23efdf(0x17a)]);_0x5a0568&&commandRepository[_0x23efdf(0x16d)]((await _0x12ea1e[_0x23efdf(0x1b5)]())[_0x23efdf(0x1c2)]());}catch(_0x57c012){logger[_0x23efdf(0x188)](_0x23efdf(0x150)+_0x57c012);}});await _0x508569['fecKl'](_0x4be4f5);}},_0x10ac31)();const _0x5b2d3e=await _0x12ea1e['initExecute'](_0x7b6608);try{if(_0x50b80e[_0x3847e8(0x17d)](_0x7b6608[_0x3847e8(0x198)],_0x50b80e[_0x3847e8(0x164)])||_0x50b80e[_0x3847e8(0x1a9)](_0x7b6608[_0x3847e8(0x198)],_0x50b80e['jGZaD'])){const _0x16af17=_0x7b6608[_0x3847e8(0x1ba)]&&_0x7b6608['parameters_']['script'],_0x49b089=_0x7b6608[_0x3847e8(0x1ba)]&&_0x7b6608[_0x3847e8(0x1ba)][_0x3847e8(0x175)],_0x282138=_0x49b089&&util[_0x3847e8(0x1d7)]('%j',_0x49b089);if(_0x16af17&&_0x50b80e[_0x3847e8(0x1a4)](typeof _0x16af17,_0x50b80e[_0x3847e8(0x1bf)])){const _0xd0895=constants[_0x3847e8(0x18c)][_0x3847e8(0x19f)](_0x37d2e9=>_0x16af17[_0x3847e8(0x1cb)](_0x37d2e9)||_0x282138&&_0x282138['includes'](_0x37d2e9));if(_0xd0895){const _0x119143={};_0x119143['command']=_0xd0895,_0x119143[_0x3847e8(0x196)]=_0x49b089;const _0x50d621={};_0x50d621['body']=_0x5b2d3e;const _0x287471={};_0x287471[_0x3847e8(0x18a)]=_0x119143,_0x287471[_0x3847e8(0x1ac)]=_0x50d621,automationLogger[_0x3847e8(0x159)]('['+new Date()['toISOString']()+_0x3847e8(0x1a1)+util[_0x3847e8(0x1d7)]('%j',_0x287471));}}}}catch(_0x3adbaa){logger[_0x3847e8(0x159)](_0x3847e8(0x1c0)+_0x3adbaa['message']);}return await PerformanceTester[_0x3847e8(0x176)](PerformanceDriverEvents[_0x3847e8(0x1b9)],async()=>{const _0x1fdb96=_0x3847e8;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x1fdb96(0x1a0)]()||globals['getGlobal'](_0x508569['PgKJz']))&&_0x508569[_0x1fdb96(0x1ce)](_0x7b6608['name_'],_0x508569[_0x1fdb96(0x189)])&&!_0x7b6608['skipHealingSuccess']&&globals[_0x1fdb96(0x195)](_0x508569[_0x1fdb96(0x18e)])&&globals[_0x1fdb96(0x195)](_0x508569[_0x1fdb96(0x17c)])){const _0x56e6a1=new Date(),_0x302790=PerformanceTester[_0x1fdb96(0x176)](_0x508569[_0x1fdb96(0x1be)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x15456f,_0x12ea1e,_0x7b6608);});await _0x508569[_0x1fdb96(0x157)](_0x302790);}},{'command':_0x7b6608[_0x3847e8(0x198)]})(),_0x5b2d3e;}catch(_0xcc2fb2){await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x95b094=_0x3847e8;logger['debug'](_0x508569[_0x95b094(0x14e)]);try{if(!helper[_0x95b094(0x191)]()&&(_0x508569[_0x95b094(0x1d4)](_0xcc2fb2[_0x95b094(0x158)],_0x508569[_0x95b094(0x163)])||_0x508569[_0x95b094(0x1ce)](_0xcc2fb2['name'],_0x508569[_0x95b094(0x169)]))&&_0x508569[_0x95b094(0x1ce)](_0x7b6608['name_'],_0x508569[_0x95b094(0x189)])&&commandRepository[_0x95b094(0x1a0)]()&&globals[_0x95b094(0x195)](_0x508569[_0x95b094(0x18e)])&&globals['getGlobal'](_0x508569[_0x95b094(0x17c)])){_0x508569[_0x95b094(0x18b)](_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x193)],_0x508569[_0x95b094(0x151)])?logger['info'](_0x508569[_0x95b094(0x192)](_0x508569[_0x95b094(0x166)](_0x508569[_0x95b094(0x1c7)],_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x1aa)]),_0x508569['OgbhO'])):logger[_0x95b094(0x1b8)](_0x508569[_0x95b094(0x183)](_0x508569[_0x95b094(0x178)](_0x508569[_0x95b094(0x152)](_0x508569['uYbMl'](_0x508569[_0x95b094(0x15f)],_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x193)]),':\x20'),_0x7b6608[_0x95b094(0x1ba)]['value']),_0x508569['OgbhO']));const _0x338600=PerformanceTester[_0x95b094(0x176)](_0x508569['LSGVB'],async()=>{return await aiSdkWrapper['handleFailure'](_0x15456f,_0x12ea1e,_0x7b6608);}),_0x4af4aa=new Date(),{locatorType:_0x1fabe5,locatorValue:_0x1793ab,commandHealed:_0x3062b8}=await _0x508569['fecKl'](_0x338600);if(_0x508569[_0x95b094(0x1a2)](_0x1fabe5,_0x1793ab)){_0x7b6608['parameters_'][_0x95b094(0x193)]=_0x1fabe5,_0x7b6608[_0x95b094(0x1ba)]['value']=_0x1793ab,_0x7b6608[_0x95b094(0x1a8)]=!![];const _0xe5be0b=_0x12ea1e[_0x95b094(0x156)](_0x7b6608);return _0x508569['tTxXG'](_0x1fabe5,_0x508569['trVXV'])?logger[_0x95b094(0x1b8)](_0x508569['hqXhk'](_0x508569[_0x95b094(0x1d0)],_0x1793ab)):logger[_0x95b094(0x1b8)](_0x508569['YGOfr'](_0x508569[_0x95b094(0x183)](_0x508569[_0x95b094(0x166)](_0x508569[_0x95b094(0x180)],_0x1fabe5),':\x20'),_0x1793ab)),_0xe5be0b;}else!_0x3062b8&&(_0x508569[_0x95b094(0x1ce)](_0x1fabe5,_0x508569[_0x95b094(0x151)])?logger['info'](_0x508569[_0x95b094(0x16b)](_0x508569['qUTsg'],_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x1aa)])):logger[_0x95b094(0x1b8)](_0x508569[_0x95b094(0x16b)](_0x508569[_0x95b094(0x190)](_0x508569[_0x95b094(0x16a)](_0x508569[_0x95b094(0x17b)],_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x193)]),':\x20'),_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x1aa)])));}!_0x30537f&&_0x508569['yqMSq'](_0x7b6608[_0x95b094(0x198)],_0x508569[_0x95b094(0x1af)])&&helper[_0x95b094(0x1a5)](_0x7b6608,[_0x508569[_0x95b094(0x1bb)],_0x508569[_0x95b094(0x165)]])&&!!constants['NUDGE_LOCAL_ERRORS']['find'](_0x5efde3=>{const _0x5bc519=_0x95b094;return _0xcc2fb2[_0x5bc519(0x186)]()[_0x5bc519(0x1cb)](_0x5efde3);})&&helper[_0x95b094(0x181)](_0x7b6608[_0x95b094(0x1ba)][_0x95b094(0x1c4)],!![]);}catch(_0x360e0f){logger[_0x95b094(0x162)](_0x508569[_0x95b094(0x1d6)],_0x360e0f);}},{'success':![],'failure':_0xcc2fb2})();throw _0xcc2fb2;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x29b2c5=a112_0x4b5f;(function(_0x5d6aeb,_0x54e589){const _0x33829a=a112_0x4b5f,_0x5ed040=_0x5d6aeb();while(!![]){try{const _0x353542=parseInt(_0x33829a(0x171))/0x1*(-parseInt(_0x33829a(0x17a))/0x2)+parseInt(_0x33829a(0x173))/0x3*(parseInt(_0x33829a(0x178))/0x4)+-parseInt(_0x33829a(0x16d))/0x5+parseInt(_0x33829a(0x17c))/0x6*(-parseInt(_0x33829a(0x172))/0x7)+parseInt(_0x33829a(0x174))/0x8*(-parseInt(_0x33829a(0x169))/0x9)+parseInt(_0x33829a(0x164))/0xa+parseInt(_0x33829a(0x183))/0xb;if(_0x353542===_0x54e589)break;else _0x5ed040['push'](_0x5ed040['shift']());}catch(_0x1bb4b4){_0x5ed040['push'](_0x5ed040['shift']());}}}(a112_0x220f,0x95ee6));function a112_0x4b5f(_0x451256,_0x2ff502){const _0x220ff1=a112_0x220f();return a112_0x4b5f=function(_0x4b5fa7,_0x5b2b7d){_0x4b5fa7=_0x4b5fa7-0x15e;let _0x30d976=_0x220ff1[_0x4b5fa7];return _0x30d976;},a112_0x4b5f(_0x451256,_0x2ff502);}function a112_0x220f(){const _0x1a2853=['catch','ihACw','./performance/performance-tester','patchQuit','bs:addLog:','TAKE_SCREENSHOT','whULu','7509490haUEot','initQuit','quitCount_','patchScreenshot','pDCKn','5017221vrmlSC','end','pid','vzRDb','1821230FRDbJS','TEST_SCREENSHOT','KEmsE','then','3AlzcXv','28gUTSXs','14046kLdhqJ','16vDcDNW','overrideQuit','initScreenshot','PQsyP','620YoPzVz','pGWjw','131902VsQBlc','./performance/constants','1619796xnpSkB','start','wlHmW','quit','true','fUxMu','OfEQi','20837960vTTHqr','toISOString','XCGuY','UhzBW'];a112_0x220f=function(){return _0x1a2853;};return a112_0x220f();}const PerformanceTester=require(a112_0x29b2c5(0x15f)),O11yEvents=require(a112_0x29b2c5(0x17b))['O11y_EVENTS'];exports['overrideTakeScreenshot']=_0x13af1c=>{const _0x10ad35=a112_0x29b2c5,_0x2b1496={'UhzBW':_0x10ad35(0x16e),'PQsyP':function(_0x580bb6,_0x1260b1){return _0x580bb6(_0x1260b1);},'pDCKn':function(_0x59e058,_0x3999ee){return _0x59e058!==_0x3999ee;},'fUxMu':_0x10ad35(0x180)};if(_0x2b1496[_0x10ad35(0x168)](process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x2b1496[_0x10ad35(0x181)]))return;if(_0x13af1c[_0x10ad35(0x167)])return;_0x13af1c[_0x10ad35(0x167)]=!![],_0x13af1c[_0x10ad35(0x176)]=_0x13af1c['takeScreenshot'],_0x13af1c['takeScreenshot']=()=>{const _0x329b93=_0x10ad35,_0x194457={'wlHmW':_0x2b1496[_0x329b93(0x186)],'whULu':function(_0x2f2841,_0x13f82b){const _0x34c520=_0x329b93;return _0x2b1496[_0x34c520(0x177)](_0x2f2841,_0x13f82b);}};return new Promise(function(_0x449842,_0x24999e){const _0x104033=_0x329b93,_0x5634a8={'pGWjw':_0x194457[_0x104033(0x17e)],'vzRDb':function(_0x5a80b4,_0x1f735a){const _0xc0e722=_0x104033;return _0x194457[_0xc0e722(0x163)](_0x5a80b4,_0x1f735a);}};_0x13af1c['initScreenshot']()[_0x104033(0x170)](_0x40266f=>{const _0x3c5ff5=_0x104033;PerformanceTester[_0x3c5ff5(0x17d)](O11yEvents[_0x3c5ff5(0x162)]),process['emit'](_0x3c5ff5(0x161)+process[_0x3c5ff5(0x16b)],{'timestamp':new Date()[_0x3c5ff5(0x184)](),'message':_0x40266f,'kind':_0x5634a8[_0x3c5ff5(0x179)]}),_0x5634a8[_0x3c5ff5(0x16c)](_0x449842,_0x40266f),PerformanceTester[_0x3c5ff5(0x16a)](O11yEvents[_0x3c5ff5(0x162)]);})[_0x104033(0x187)](_0x4b117c=>{const _0x4a9103=_0x104033;PerformanceTester[_0x4a9103(0x16a)](O11yEvents[_0x4a9103(0x162)]),_0x5634a8[_0x4a9103(0x16c)](_0x24999e,_0x4b117c);});});};},exports[a112_0x29b2c5(0x175)]=(_0x45502e,_0x4eb2be=null)=>{const _0x457dae=a112_0x29b2c5,_0x1264fd={'ihACw':function(_0x2810a4){return _0x2810a4();},'XCGuY':function(_0x39525e,_0x1f4e97){return _0x39525e>_0x1f4e97;},'KEmsE':function(_0x332fb5,_0x9b1195){return _0x332fb5>_0x9b1195;}};if(_0x45502e[_0x457dae(0x160)])return;_0x45502e[_0x457dae(0x160)]=!![],_0x45502e[_0x457dae(0x165)]=_0x45502e[_0x457dae(0x17f)],_0x45502e[_0x457dae(0x17f)]=()=>{const _0x5b714b=_0x457dae,_0x540800={'OfEQi':function(_0x4e3e1c){const _0x2bfd09=a112_0x4b5f;return _0x1264fd[_0x2bfd09(0x15e)](_0x4e3e1c);}};if(_0x4eb2be){_0x4eb2be['quitCount_']+=0x1;if(_0x1264fd[_0x5b714b(0x185)](_0x4eb2be[_0x5b714b(0x166)],0x1))return _0x45502e['initQuit']();}else{_0x45502e[_0x5b714b(0x166)]+=0x1;if(_0x1264fd[_0x5b714b(0x16f)](_0x45502e[_0x5b714b(0x166)],0x1))return _0x45502e[_0x5b714b(0x165)]();}return new Promise(function(_0x29dc82){const _0x413939=_0x5b714b;_0x540800[_0x413939(0x182)](_0x29dc82);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x2a4d82=a113_0x31bd;(function(_0xbeefac,_0xa2a6f0){const _0x452225=a113_0x31bd,_0x14f9c6=_0xbeefac();while(!![]){try{const _0x5432ff=parseInt(_0x452225(0x11b))/0x1*(-parseInt(_0x452225(0x161))/0x2)+parseInt(_0x452225(0x127))/0x3+-parseInt(_0x452225(0x163))/0x4*(parseInt(_0x452225(0x128))/0x5)+-parseInt(_0x452225(0x12f))/0x6*(parseInt(_0x452225(0x12a))/0x7)+parseInt(_0x452225(0x14f))/0x8+parseInt(_0x452225(0x148))/0x9*(parseInt(_0x452225(0x124))/0xa)+parseInt(_0x452225(0x120))/0xb*(parseInt(_0x452225(0x139))/0xc);if(_0x5432ff===_0xa2a6f0)break;else _0x14f9c6['push'](_0x14f9c6['shift']());}catch(_0x1925a8){_0x14f9c6['push'](_0x14f9c6['shift']());}}}(a113_0x4219,0xbbf56));const fs=require('fs'),path=require(a113_0x2a4d82(0x12e)),os=require('os'),{spawn}=require(a113_0x2a4d82(0x14c)),helper=require(a113_0x2a4d82(0x15f)),logger=require(a113_0x2a4d82(0x11e))['winstonLogger'],{getLogDir}=require(a113_0x2a4d82(0x11e)),testHubConstants=require(a113_0x2a4d82(0x168)),PerformanceTester=require(a113_0x2a4d82(0x133)),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x2a4d82(0x15b)),PercyBinary=require(a113_0x2a4d82(0x12b));class Percy{#logfile=path[a113_0x2a4d82(0x153)](getLogDir(),'percy.log');#address=process[a113_0x2a4d82(0x119)]['PERCY_SERVER_ADDRESS']||a113_0x2a4d82(0x150);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a113_0x2a4d82(0x145)]=![];constructor(_0x6d460d){this.#config=_0x6d460d,!!_0x6d460d['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x306631=a113_0x2a4d82;if(!this.#binaryPath){const _0xa6328d=new PercyBinary();PerformanceTester[_0x306631(0x151)](PerformanceEvents[_0x306631(0x11f)]),this.#binaryPath=await _0xa6328d[_0x306631(0x144)](this.#config),PerformanceTester[_0x306631(0x134)](PerformanceEvents[_0x306631(0x11f)]);}return this.#binaryPath;}async #sleep(_0x57f3ac){return new Promise(_0x35b4b9=>setTimeout(_0x35b4b9,_0x57f3ac));}async[a113_0x2a4d82(0x143)](){const _0x4ccc7f=a113_0x2a4d82,_0x23b796={};_0x23b796[_0x4ccc7f(0x138)]='GET',_0x23b796[_0x4ccc7f(0x11a)]=_0x4ccc7f(0x147);const _0x5669ba=_0x23b796;try{const _0x3f5b7e=await helper[_0x4ccc7f(0x162)](_0x5669ba[_0x4ccc7f(0x138)],_0x5669ba[_0x4ccc7f(0x11a)],null,null,this.#address);if(_0x3f5b7e)return!![];}catch(_0x3675e1){return![];}}async[a113_0x2a4d82(0x151)](){const _0xf75396=a113_0x2a4d82,_0x3f87fd={'gBBow':_0xf75396(0x141),'kuxSK':_0xf75396(0x13f),'eenZX':function(_0x2d07b1,_0x2c2e57,_0x2bbd94,_0x4c085f){return _0x2d07b1(_0x2c2e57,_0x2bbd94,_0x4c085f);},'HEwhN':'close','uySxo':_0xf75396(0x11c)},_0xdcd726=await this.#getBinaryPath(),_0x41585c={};_0x41585c[_0xf75396(0x146)]='a',this.#logStream=fs[_0xf75396(0x14b)](this.#logfile,_0x41585c);const _0x1b7a1d=await this['fetchPercyToken'](),_0x2efe84=await this[_0xf75396(0x13d)]();if(!_0x1b7a1d)return![];const _0x53914c=[(this.#isApp?_0x3f87fd[_0xf75396(0x14e)]:_0x3f87fd['kuxSK'])+_0xf75396(0x156)];_0x2efe84&&_0x53914c[_0xf75396(0x12c)]('-c',_0x2efe84);this.#proc=_0x3f87fd[_0xf75396(0x15e)](spawn,_0xdcd726,_0x53914c,{'env':Object['assign'](process['env'],{'PERCY_TOKEN':_0x1b7a1d,'TH_BUILD_UUID':process[_0xf75396(0x119)][testHubConstants['ENV_VAR'][_0xf75396(0x169)]]})}),this.#proc[_0xf75396(0x142)][_0xf75396(0x13e)](this.#logStream),this.#proc[_0xf75396(0x125)]['pipe'](this.#logStream),this[_0xf75396(0x145)]=!![];var _0x58a196=this;this.#proc['on'](_0x3f87fd['HEwhN'],function(_0x23a3ec){const _0x52fcaf=_0xf75396;_0x58a196[_0x52fcaf(0x145)]=![];});do{const _0x55ab40=await this[_0xf75396(0x143)]();if(_0x55ab40)return logger[_0xf75396(0x11d)](_0x3f87fd[_0xf75396(0x155)]),!![];await this.#sleep(0x3e8);}while(this[_0xf75396(0x145)]);return![];}async['stop'](){const _0x34f006=a113_0x2a4d82,_0x5c5e6b={'Hmstn':function(_0x5e21f8,_0x68f8ac){return _0x5e21f8(_0x68f8ac);},'EKwAA':function(_0x1cc757,_0x238fc7,_0x13424b){return _0x1cc757(_0x238fc7,_0x13424b);},'GBoti':_0x34f006(0x123),'HpElj':_0x34f006(0x166)},_0x2f4643=await this.#getBinaryPath();return new Promise((_0x2556f2,_0x36f1b3)=>{const _0x46c0c8=_0x34f006,_0x3dde48=_0x5c5e6b[_0x46c0c8(0x13c)](spawn,_0x2f4643,[_0x5c5e6b[_0x46c0c8(0x164)]]);_0x3dde48['on'](_0x5c5e6b[_0x46c0c8(0x12d)],_0x401aba=>{const _0x5e9cc1=_0x46c0c8;this[_0x5e9cc1(0x145)]=![],this.#logStream&&(this.#logStream[_0x5e9cc1(0x134)](),this.#logStream=null),_0x5c5e6b[_0x5e9cc1(0x167)](_0x2556f2,_0x401aba);});});}['isRunning'](){return this['isProcessRunning'];}async[a113_0x2a4d82(0x154)](){const _0x297bf8=a113_0x2a4d82,_0x155f4a={};_0x155f4a['xdlAf']=_0x297bf8(0x131),_0x155f4a['eCqeW']=_0x297bf8(0x122),_0x155f4a[_0x297bf8(0x15c)]=_0x297bf8(0x157),_0x155f4a[_0x297bf8(0x14a)]=_0x297bf8(0x158);const _0x468d12=_0x155f4a,_0xeb76b7=this.#config['projectName'];try{const _0x1c9695=this.#isApp?_0x468d12[_0x297bf8(0x149)]:_0x468d12[_0x297bf8(0x121)],_0x233c39=await helper[_0x297bf8(0x162)](_0x468d12[_0x297bf8(0x15c)],_0x297bf8(0x118)+_0xeb76b7+'&type='+_0x1c9695,{},this.#config),_0x244883=_0x233c39[_0x297bf8(0x140)];return logger[_0x297bf8(0x11d)](_0x468d12[_0x297bf8(0x14a)]),_0x244883['token'];}catch(_0x453670){return logger[_0x297bf8(0x130)](_0x297bf8(0x126)+_0x453670),null;}}async[a113_0x2a4d82(0x13d)](){const _0x5ab769=a113_0x2a4d82,_0x17c70e={'uDppL':function(_0xfb17fa,_0x30c80d){return _0xfb17fa(_0x30c80d);},'WcoeY':function(_0x39dc6a,_0x296bce){return _0x39dc6a+_0x296bce;},'SuNRJ':_0x5ab769(0x14d),'bQaoM':_0x5ab769(0x136)};if(!this.#config['percyOptions'])return null;const _0x40e1ac=path[_0x5ab769(0x153)](os[_0x5ab769(0x15a)](),_0x17c70e[_0x5ab769(0x159)]),_0x32a99e=this.#config['percyOptions'];return!_0x32a99e[_0x5ab769(0x137)]&&(_0x32a99e['version']='2'),new Promise((_0x260d46,_0xc47526)=>{const _0xc12ac3=_0x5ab769,_0x2494be={'Qgsne':function(_0x16a7c5,_0x1da49c){const _0x16f1ee=a113_0x31bd;return _0x17c70e[_0x16f1ee(0x165)](_0x16a7c5,_0x1da49c);},'aEJRS':function(_0xff3a79,_0x5d7ea4){const _0x25d889=a113_0x31bd;return _0x17c70e[_0x25d889(0x15d)](_0xff3a79,_0x5d7ea4);},'bCqdw':_0x17c70e[_0xc12ac3(0x132)]};fs['writeFile'](_0x40e1ac,JSON[_0xc12ac3(0x129)](_0x32a99e),_0x57fa01=>{const _0x382bc3=_0xc12ac3;_0x57fa01&&(logger[_0x382bc3(0x130)](_0x382bc3(0x160)+_0x57fa01),_0x2494be[_0x382bc3(0x152)](_0x260d46,null)),logger[_0x382bc3(0x11d)](_0x2494be[_0x382bc3(0x13b)](_0x2494be[_0x382bc3(0x13a)],_0x40e1ac)),_0x2494be[_0x382bc3(0x152)](_0x260d46,_0x40e1ac);});});}}module[a113_0x2a4d82(0x135)]=Percy;function a113_0x31bd(_0x3e7f27,_0x35d37a){const _0x421985=a113_0x4219();return a113_0x31bd=function(_0x31bd20,_0x5be6eb){_0x31bd20=_0x31bd20-0x118;let _0x4edbfb=_0x421985[_0x31bd20];return _0x4edbfb;},a113_0x31bd(_0x3e7f27,_0x35d37a);}function a113_0x4219(){const _0x42eb54=['EKwAA','createPercyConfig','pipe','exec','data','app:exec','stdout','healthcheck','getBinaryPath','isProcessRunning','flags','percy/healthcheck','5242338EXqqDF','xdlAf','QkYLD','createWriteStream','child_process','Percy\x20config\x20created\x20at\x20','gBBow','6712608yEjKBE','http://localhost:5338','start','Qgsne','join','fetchPercyToken','uySxo',':start','GET','Percy\x20fetch\x20token\x20success','bQaoM','tmpdir','../../helpers/performance/constants','RbfDK','WcoeY','eenZX','../helper','Error\x20creating\x20percy\x20config:\x20','2TLYDgd','nodeRequest','120568KYMQDl','GBoti','uDppL','close','Hmstn','../../helpers/testhub/constants','BROWSERSTACK_TESTHUB_UUID','api/app_percy/get_project_token?name=','env','HyAtB','1304326zigaIe','Percy\x20healthcheck\x20successful','debug','../logger','DOWNLOAD','11rlaQkT','eCqeW','automate','exec:stop','10XQZDoT','stderr','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','426438GUCayp','85HXMCtQ','stringify','8652574YnuMdY','./PercyBinary','push','HpElj','path','6fSXgrs','error','app','SuNRJ','../../helpers/performance/performance-tester','end','exports','percy.json','version','JvBzy','27107952kyGaQj','bCqdw','aEJRS'];a113_0x4219=function(){return _0x42eb54;};return a113_0x4219();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a114_0x23d9(){const _0x330f94=['New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','OnlSe','162ppesUt','80062uCbJhJ','iBtvp','2LZWmDQ','OGtoj','qbbGK','headers','jbXhr','fileName','TRGLB','USERPROFILE','--version','54xIKtyC','/percy-win.zip','CFBth','bVLXP','error','XkbfJ','https-proxy-agent','KgszS','W_OK','96320qjhBpO','ODCiK','binaryPath','uVLBj','homedir','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','zoiHJ','download','nzgRQ','fpyYP','ATUIW','gYMrX','env','openReadStream','Failed\x20to\x20save\x20ETag\x20file:\x20','get','statSync','KpvaQ','KFsxm','readFileSync','SOyIW','WYzYl','iuPBa','rIpLU','test','Error\x20trying\x20to\x20download\x20percy\x20binary','LpNWS','exports','nnmZz','createWriteStream','Jjkre','YwvzP','follow-redirects','path','darwin','2069935fFceuP','length','197780IfButw','pObfq','xrsUB','stdout','gSsYY','QSGRF','host','end','extractAndSaveBinary','win32','needsUpdate','HYIuK','mkdirSync','winstonLogger','HOMEPATH','data','warn','R_OK','1669008fIersy','child_process','utf8','iPpLn','tSyTR','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','proxyHost','HOME','rTgfh','close','YxMBB','Ssrbl','EzIlf','QZyuF','Failed\x20to\x20read\x20ETag\x20file:\x20','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','destroy','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','FXWJa','kUQEn','readEntry','statusCode','LOGNAME','DRLwz','FfpRx','aIxLP','Connection','HnzKU','ppNiD','open','911574imBuAc','SlYzd','aRIhm','match','USERNAME','wvZBf','/Users/','debug','Lmixo','etag','writeFileSync','CXOhB','pipe','catch','trim','Xydoq','X_OK','CuYOV','QpnJC','HOMEDRIVE','parse','join','agent','percy','.browserstack','once','accessSync','bSNRP','TOkRI','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','percy.exe','then','USER','PEJEC','If-None-Match','yauzl','HVcVl','0755','mTZXi','vSlnK','undefined','148505iyyiIp','naOkb','platform','validateBinary'];a114_0x23d9=function(){return _0x330f94;};return a114_0x23d9();}function a114_0x1acb(_0xb224f4,_0x27a4d4){const _0x23d9c3=a114_0x23d9();return a114_0x1acb=function(_0x1acbce,_0x3356b4){_0x1acbce=_0x1acbce-0xb7;let _0x563a58=_0x23d9c3[_0x1acbce];return _0x563a58;},a114_0x1acb(_0xb224f4,_0x27a4d4);}const a114_0x4005e5=a114_0x1acb;(function(_0xa43f23,_0x15e461){const _0x4d7458=a114_0x1acb,_0x1740a8=_0xa43f23();while(!![]){try{const _0x5e5b52=-parseInt(_0x4d7458(0xe6))/0x1*(-parseInt(_0x4d7458(0xe4))/0x2)+parseInt(_0x4d7458(0x14d))/0x3+-parseInt(_0x4d7458(0x11d))/0x4+-parseInt(_0x4d7458(0xdd))/0x5*(parseInt(_0x4d7458(0xef))/0x6)+-parseInt(_0x4d7458(0x11b))/0x7+parseInt(_0x4d7458(0x12f))/0x8+-parseInt(_0x4d7458(0xe3))/0x9*(-parseInt(_0x4d7458(0xf8))/0xa);if(_0x5e5b52===_0x15e461)break;else _0x1740a8['push'](_0x1740a8['shift']());}catch(_0x25ffd9){_0x1740a8['push'](_0x1740a8['shift']());}}}(a114_0x23d9,0x25777));const {https}=require(a114_0x4005e5(0x118)),url=require('url'),yauzl=require(a114_0x4005e5(0xd7)),fs=require('fs'),path=require(a114_0x4005e5(0x119)),os=require('os'),{spawn}=require(a114_0x4005e5(0x130)),HttpsProxyAgent=require(a114_0x4005e5(0xf5)),logger=require('../logger')[a114_0x4005e5(0x12a)];class PercyBinary{#hostOS=process[a114_0x4005e5(0xdf)];#httpPath=null;#binaryName=a114_0x4005e5(0xcb);#orderedPaths=[path[a114_0x4005e5(0xc9)](this.#homedir(),a114_0x4005e5(0xcc)),process['cwd'](),os['tmpdir']()];constructor(){const _0x269b12=a114_0x4005e5,_0x1e3fcc={};_0x1e3fcc['ATUIW']='https://github.com/percy/cli/releases/latest/download',_0x1e3fcc[_0x269b12(0x10f)]=function(_0x24ec2d,_0x380ca4){return _0x24ec2d+_0x380ca4;},_0x1e3fcc[_0x269b12(0x14b)]='/percy-osx.zip',_0x1e3fcc[_0x269b12(0xf4)]=function(_0xe800e3,_0x5f0609){return _0xe800e3+_0x5f0609;},_0x1e3fcc[_0x269b12(0xe8)]=_0x269b12(0xf0),_0x1e3fcc[_0x269b12(0xec)]=_0x269b12(0xd2),_0x1e3fcc[_0x269b12(0x142)]=function(_0x268936,_0x3a444c){return _0x268936+_0x3a444c;},_0x1e3fcc[_0x269b12(0x147)]='/percy-linux.zip';const _0x1017f0=_0x1e3fcc,_0xb7ede9=_0x1017f0[_0x269b12(0x102)];if(this.#hostOS[_0x269b12(0xb7)](/darwin|mac os/i))this.#httpPath=_0x1017f0['rIpLU'](_0xb7ede9,_0x1017f0[_0x269b12(0x14b)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1017f0[_0x269b12(0xf4)](_0xb7ede9,_0x1017f0[_0x269b12(0xe8)]),this.#binaryName=_0x1017f0[_0x269b12(0xec)]):this.#httpPath=_0x1017f0[_0x269b12(0x142)](_0xb7ede9,_0x1017f0[_0x269b12(0x147)]);}#getAvailableDirs(){const _0x3e7265=a114_0x4005e5,_0xc24362={};_0xc24362['LzqwS']=function(_0x48a4dd,_0x2e8861){return _0x48a4dd<_0x2e8861;},_0xc24362[_0x3e7265(0xd5)]=_0x3e7265(0x111);const _0x5b7d29=_0xc24362;for(var _0x3c9fc4=0x0;_0x5b7d29['LzqwS'](_0x3c9fc4,this.#orderedPaths[_0x3e7265(0x11c)]);_0x3c9fc4++){var _0x674de6=this.#orderedPaths[_0x3c9fc4];if(this.#makePath(_0x674de6))return _0x674de6;}throw new Error(_0x5b7d29[_0x3e7265(0xd5)]);}#makePath(_0x274b2b){const _0x484172=a114_0x4005e5;try{return _0x274b2b&&!this.#checkPath(_0x274b2b)&&fs[_0x484172(0x129)](_0x274b2b),!![];}catch{return![];}}#checkPath(_0x4d2b7c,_0x5311dc){const _0x269de2=a114_0x4005e5,_0x3c9a49={};_0x3c9a49[_0x269de2(0xe5)]=function(_0x393d33,_0x28cdd9){return _0x393d33|_0x28cdd9;},_0x3c9a49[_0x269de2(0xc3)]=function(_0x179f9e,_0x279dac){return _0x179f9e!==_0x279dac;},_0x3c9a49['hNHlW']=_0x269de2(0xdc);const _0x46e52a=_0x3c9a49;_0x5311dc=_0x5311dc||_0x46e52a[_0x269de2(0xe5)](fs[_0x269de2(0x12e)],fs[_0x269de2(0xf7)]);try{return fs[_0x269de2(0xce)](_0x4d2b7c,_0x5311dc),!![];}catch(_0x36115a){if(_0x46e52a[_0x269de2(0xc3)](typeof fs['accessSync'],_0x46e52a['hNHlW']))return![];try{return fs[_0x269de2(0x108)](_0x4d2b7c),!![];}catch(_0x518ea4){return![];}}}#getETagPath(_0xe611c6){return path['join'](_0xe611c6,this.#binaryName+'.etag');}#loadETag(_0x2811f1){const _0x973ae3=a114_0x4005e5,_0x594ccb={};_0x594ccb[_0x973ae3(0xf1)]=_0x973ae3(0x131);const _0x1c4ace=_0x594ccb,_0x71793f=this.#getETagPath(_0x2811f1);if(this.#checkPath(_0x71793f))try{return fs[_0x973ae3(0x10b)](_0x71793f,_0x1c4ace[_0x973ae3(0xf1)])[_0x973ae3(0xc2)]();}catch(_0x28e809){logger[_0x973ae3(0x12d)](_0x973ae3(0x13d)+_0x28e809);}return null;}#saveETag(_0x5646c0,_0x25895b){const _0x47fdb0=a114_0x4005e5,_0x25becf={};_0x25becf['xrsUB']='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x2ac579=_0x25becf;if(!_0x25895b)return;try{const _0x46303d=this.#getETagPath(_0x5646c0);fs[_0x47fdb0(0xbe)](_0x46303d,_0x25895b),logger[_0x47fdb0(0xbb)](_0x2ac579[_0x47fdb0(0x11f)]);}catch(_0x35ef2e){logger['warn'](_0x47fdb0(0x106)+_0x35ef2e);}}async #handleBinaryDownload(_0x24a293,_0x2e23c7,_0x52b35b){const _0x14b870=a114_0x4005e5,_0x10949f={};_0x10949f[_0x14b870(0xfe)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x3db754=_0x10949f,_0x4a38b8=await this[_0x14b870(0xe0)](_0x24a293[_0x14b870(0xfa)]);if(!_0x4a38b8){logger[_0x14b870(0xf3)](_0x3db754[_0x14b870(0xfe)]);const _0x46f23e=await this[_0x14b870(0xff)](_0x2e23c7,_0x52b35b);return _0x46f23e['binaryPath'];}return _0x24a293[_0x14b870(0xfa)];}async['getBinaryPath'](_0x2a862b){const _0x2b09e8=a114_0x4005e5,_0x38de89={};_0x38de89['Lmixo']=_0x2b09e8(0x140),_0x38de89['FXWJa']=_0x2b09e8(0xe1);const _0x56d590=_0x38de89,_0x3a3622=this.#getAvailableDirs(),_0x8a3f42=path[_0x2b09e8(0xc9)](_0x3a3622,this.#binaryName);if(this.#checkPath(_0x8a3f42,fs[_0x2b09e8(0xc4)])){const _0x4fc276=this.#loadETag(_0x3a3622);if(_0x4fc276)try{const _0x34249a=await this['download'](_0x2a862b,_0x3a3622,_0x4fc276);if(!_0x34249a[_0x2b09e8(0x127)])return logger['debug'](_0x56d590[_0x2b09e8(0xbc)]),_0x8a3f42;return logger[_0x2b09e8(0xbb)](_0x56d590[_0x2b09e8(0x141)]),await this.#handleBinaryDownload(_0x34249a,_0x2a862b,_0x3a3622);}catch(_0x59d51){return logger['warn'](_0x2b09e8(0x134)+_0x59d51),_0x8a3f42;}}const _0x5441fd=await this[_0x2b09e8(0xff)](_0x2a862b,_0x3a3622);return await this.#handleBinaryDownload(_0x5441fd,_0x2a862b,_0x3a3622);}[a114_0x4005e5(0xff)](_0x487697,_0x44c26d,_0x5eb3e4=null){const _0x46369d=a114_0x4005e5,_0x3fa783={'WYzYl':function(_0x4ca4c4,_0x2535fa){return _0x4ca4c4(_0x2535fa);},'rTgfh':function(_0xc92ddd,_0x2276da){return _0xc92ddd===_0x2276da;},'vHeZV':function(_0x2c595d,_0x12cca6){return _0x2c595d(_0x12cca6);},'bSNRP':_0x46369d(0xf3),'DRLwz':_0x46369d(0x138),'KFsxm':function(_0x5d6093,_0x356daa){return _0x5d6093+_0x356daa;},'feuRf':'.zip'};_0x44c26d&&!this.#checkPath(_0x44c26d)&&fs[_0x46369d(0x129)](_0x44c26d);const _0x3f6065=this.#binaryName,_0x161e56=path[_0x46369d(0xc9)](_0x44c26d,_0x3fa783[_0x46369d(0x10a)](_0x3f6065,_0x3fa783['feuRf'])),_0x57fb95=fs[_0x46369d(0x115)](_0x161e56),_0x3fe2c4=url[_0x46369d(0xc8)](this.#httpPath);if(_0x487697['proxyHost']&&_0x487697['proxyPort']){const _0x37d9b2={};_0x37d9b2[_0x46369d(0x123)]=_0x487697[_0x46369d(0x135)],_0x37d9b2['port']=_0x487697['proxyPort'],_0x3fe2c4[_0x46369d(0xca)]=new HttpsProxyAgent(_0x37d9b2);}if(_0x487697['useCaCertificate'])try{_0x3fe2c4['ca']=fs[_0x46369d(0x10b)](_0x487697['useCaCertificate']);}catch(_0x38731f){logger[_0x46369d(0xf3)](_0x46369d(0xd1)+_0x38731f);}if(_0x5eb3e4){const _0x1ae515={};_0x1ae515[_0x46369d(0xd6)]=_0x5eb3e4,_0x1ae515[_0x46369d(0x149)]=_0x3fa783[_0x46369d(0x146)],_0x3fe2c4[_0x46369d(0xe9)]=_0x1ae515;}else{const _0x42ddb6={};_0x42ddb6[_0x46369d(0x149)]=_0x3fa783[_0x46369d(0x146)],_0x3fe2c4['headers']=_0x42ddb6;}return new Promise((_0x137c18,_0xe7750b)=>{const _0x3cbada=_0x46369d,_0x575a58={'aIxLP':function(_0x42845b,_0x5a4696){return _0x3fa783['WYzYl'](_0x42845b,_0x5a4696);},'QpnJC':function(_0xa3de00,_0x243d9f){const _0x2d2256=a114_0x1acb;return _0x3fa783[_0x2d2256(0x10d)](_0xa3de00,_0x243d9f);},'CuYOV':function(_0x56fe93,_0x315cd5){const _0x5265c7=a114_0x1acb;return _0x3fa783[_0x5265c7(0x137)](_0x56fe93,_0x315cd5);},'nnmZz':function(_0x760c43,_0x2b5a48){return _0x3fa783['vHeZV'](_0x760c43,_0x2b5a48);},'jbXhr':_0x3fa783[_0x3cbada(0xcf)],'SOyIW':_0x3fa783['DRLwz']};https[_0x3cbada(0x107)](_0x3fe2c4,_0x37d5a2=>{const _0x1e033d=_0x3cbada,_0x257c8c={'KpvaQ':function(_0x3523bd,_0x1aa827){const _0x35362c=a114_0x1acb;return _0x575a58[_0x35362c(0xc6)](_0x3523bd,_0x1aa827);}};if(_0x5eb3e4&&_0x575a58[_0x1e033d(0xc5)](_0x37d5a2[_0x1e033d(0x144)],0x130)){_0x57fb95[_0x1e033d(0x13f)]();const _0x3749c4={};_0x3749c4['needsUpdate']=![],_0x575a58[_0x1e033d(0x114)](_0x137c18,_0x3749c4);return;}const _0x4ac525=_0x37d5a2[_0x1e033d(0xe9)][_0x1e033d(0xbd)];_0x4ac525&&this.#saveETag(_0x44c26d,_0x4ac525),_0x37d5a2['pipe'](_0x57fb95),_0x37d5a2['on'](_0x575a58['jbXhr'],function(_0x3216cc){const _0x397782=_0x1e033d;logger[_0x397782(0xf3)](_0x397782(0x13e)+_0x3216cc),_0x575a58[_0x397782(0x148)](_0xe7750b,_0x3216cc);}),_0x57fb95['on'](_0x575a58[_0x1e033d(0xea)],function(_0x2df553){const _0x12b77e=_0x1e033d;logger[_0x12b77e(0xf3)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x2df553),_0x257c8c[_0x12b77e(0x109)](_0xe7750b,_0x2df553);}),_0x57fb95['on'](_0x575a58[_0x1e033d(0x10c)],()=>{const _0x1b6cbb=_0x1e033d;this['extractAndSaveBinary'](_0x161e56,_0x44c26d)[_0x1b6cbb(0xd3)](_0x4e9941=>_0x137c18({'needsUpdate':!![],'binaryPath':_0x4e9941}))[_0x1b6cbb(0xc1)](_0xe7750b);});})['on'](_0x3fa783[_0x3cbada(0xcf)],function(_0x52115a){const _0x491b53=_0x3cbada;logger['error'](_0x491b53(0xfd)+_0x52115a),_0x575a58[_0x491b53(0xc6)](_0xe7750b,_0x52115a);});});}[a114_0x4005e5(0x125)](_0x37cd4e,_0x147355){const _0x511063=a114_0x4005e5,_0x5ad817={'LpNWS':function(_0x6612e0,_0x31f1c6){return _0x6612e0(_0x31f1c6);},'wvZBf':_0x511063(0x124),'naOkb':function(_0x8ce67d,_0x4bcd87){return _0x8ce67d===_0x4bcd87;},'TvhOT':'entry','iPpLn':'error','YxMBB':function(_0xd9d9b3,_0x2ceefa){return _0xd9d9b3(_0x2ceefa);},'iuPBa':_0x511063(0xd9)},_0x409006=this.#binaryName,_0x26dfca=path[_0x511063(0xc9)](_0x147355,_0x409006);return new Promise((_0x571251,_0x599a13)=>{const _0x22bae9=_0x511063,_0x5c0700={'HVcVl':function(_0x464428,_0x2ec40a){const _0x50ef66=a114_0x1acb;return _0x5ad817[_0x50ef66(0x139)](_0x464428,_0x2ec40a);},'gSsYY':function(_0x45cdf7,_0xd3b116){const _0xf7bcef=a114_0x1acb;return _0x5ad817[_0xf7bcef(0x112)](_0x45cdf7,_0xd3b116);},'bVLXP':function(_0x47b775,_0x191dd5){const _0x493b2c=a114_0x1acb;return _0x5ad817[_0x493b2c(0x139)](_0x47b775,_0x191dd5);},'gYMrX':_0x5ad817[_0x22bae9(0x10e)]},_0x392ec3={};_0x392ec3['lazyEntries']=!![],yauzl[_0x22bae9(0x14c)](_0x37cd4e,_0x392ec3,function(_0xbafc6f,_0xc1c96b){const _0x2e01f2=_0x22bae9,_0xd7fddb={'Wryuv':function(_0x5b2f02,_0x2c1a9e){const _0x5d6c6=a114_0x1acb;return _0x5ad817[_0x5d6c6(0x112)](_0x5b2f02,_0x2c1a9e);},'HYIuK':_0x5ad817[_0x2e01f2(0xb9)],'CXOhB':function(_0x5a64a1,_0x4186ea){const _0x3ef2da=_0x2e01f2;return _0x5ad817[_0x3ef2da(0xde)](_0x5a64a1,_0x4186ea);}};_0xbafc6f&&_0x5ad817[_0x2e01f2(0x112)](_0x599a13,_0xbafc6f),_0xc1c96b[_0x2e01f2(0x143)](),_0xc1c96b['on'](_0x5ad817['TvhOT'],_0x190ec1=>{const _0x142fd1=_0x2e01f2,_0x158524={'DTwxa':function(_0x19693d,_0x441590){return _0xd7fddb['Wryuv'](_0x19693d,_0x441590);},'TOkRI':_0xd7fddb[_0x142fd1(0x128)]};if(/\/$/[_0x142fd1(0x110)](_0x190ec1[_0x142fd1(0xeb)]))_0xc1c96b[_0x142fd1(0x143)]();else{const _0x17f6ad=fs[_0x142fd1(0x115)](path[_0x142fd1(0xc9)](_0x147355,_0x190ec1[_0x142fd1(0xeb)]));_0xc1c96b[_0x142fd1(0x105)](_0x190ec1,function(_0xa2bded,_0x4f642f){const _0x32442c=_0x142fd1;_0xa2bded&&_0x158524['DTwxa'](_0x599a13,_0xbafc6f),_0x4f642f['on'](_0x158524[_0x32442c(0xd0)],function(){const _0x18557b=_0x32442c;_0x17f6ad[_0x18557b(0x138)](),_0xc1c96b[_0x18557b(0x143)]();}),_0x4f642f[_0x32442c(0xc0)](_0x17f6ad);}),_0xd7fddb[_0x142fd1(0xbf)](_0x190ec1[_0x142fd1(0xeb)],_0x409006)&&_0xc1c96b[_0x142fd1(0x138)]();}}),_0xc1c96b['on'](_0x5ad817[_0x2e01f2(0x132)],_0x36aba8=>{const _0x40eb3d=_0x2e01f2;_0x5c0700[_0x40eb3d(0xd8)](_0x599a13,_0x36aba8);}),_0xc1c96b[_0x2e01f2(0xcd)](_0x5ad817[_0x2e01f2(0xb9)],()=>{const _0x1c5510=_0x2e01f2,_0x5c85e0={'uVLBj':function(_0x25c45f,_0x4e98aa){const _0x1557bc=a114_0x1acb;return _0x5c0700[_0x1557bc(0x121)](_0x25c45f,_0x4e98aa);},'HnzKU':function(_0x557415,_0x25b747){const _0x2136e0=a114_0x1acb;return _0x5c0700[_0x2136e0(0xf2)](_0x557415,_0x25b747);}};fs['chmod'](_0x26dfca,_0x5c0700[_0x1c5510(0x103)],function(_0x4c42af){const _0x4d2a4e=_0x1c5510;_0x4c42af&&_0x5c85e0[_0x4d2a4e(0xfb)](_0x599a13,_0x4c42af),_0x5c85e0[_0x4d2a4e(0x14a)](_0x571251,_0x26dfca);}),_0xc1c96b[_0x1c5510(0x138)]();});});});}async['validateBinary'](_0xeefa65){const _0x566194=a114_0x4005e5,_0x7be555={'OGtoj':function(_0x43817c,_0x21a100){return _0x43817c(_0x21a100);},'OnlSe':function(_0x594c70,_0x4dbbee){return _0x594c70(_0x4dbbee);},'OjbWx':function(_0x51b926,_0x4cb909,_0x272bae,_0x4ce6d6){return _0x51b926(_0x4cb909,_0x272bae,_0x4ce6d6);},'YwvzP':_0x566194(0xee),'mTZXi':_0x566194(0x12c),'PjBhz':'close'},_0x4a6690=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1165c8,_0x4c2b45)=>{const _0xd35e03=_0x566194,_0x311d5c={'QZyuF':function(_0x1ed457,_0x57d071){const _0x171568=a114_0x1acb;return _0x7be555[_0x171568(0xe2)](_0x1ed457,_0x57d071);}},_0x4b3f24={};_0x4b3f24['env']=process[_0xd35e03(0x104)];const _0x277577=_0x7be555['OjbWx'](spawn,_0xeefa65,[_0x7be555[_0xd35e03(0x117)]],_0x4b3f24);_0x277577[_0xd35e03(0x120)]['on'](_0x7be555[_0xd35e03(0xda)],_0x5b7103=>{const _0x4c550c=_0xd35e03;_0x4a6690[_0x4c550c(0x110)](_0x5b7103)&&_0x311d5c[_0x4c550c(0x13c)](_0x1165c8,!![]);}),_0x277577['on'](_0x7be555['PjBhz'],()=>{const _0xbae12f=_0xd35e03;_0x7be555[_0xbae12f(0xe7)](_0x1165c8,![]);});});}#homedir(){const _0x51ecf3=a114_0x4005e5,_0x1352b8={};_0x1352b8[_0x51ecf3(0x13a)]=function(_0x59b19c,_0x5a20a6){return _0x59b19c===_0x5a20a6;},_0x1352b8[_0x51ecf3(0x100)]='function',_0x1352b8[_0x51ecf3(0x14e)]=function(_0x28880d,_0x397d3d){return _0x28880d===_0x397d3d;},_0x1352b8[_0x51ecf3(0x101)]=_0x51ecf3(0x126),_0x1352b8[_0x51ecf3(0x133)]=function(_0xb18e83,_0x530b38){return _0xb18e83+_0x530b38;},_0x1352b8['vSlnK']=function(_0x1e0586,_0x3ae123){return _0x1e0586===_0x3ae123;},_0x1352b8[_0x51ecf3(0x122)]=_0x51ecf3(0x11a),_0x1352b8['JCBFu']=_0x51ecf3(0xba),_0x1352b8['KgszS']=function(_0x3874c9,_0x13f75b){return _0x3874c9===_0x13f75b;},_0x1352b8['ODCiK']='linux',_0x1352b8[_0x51ecf3(0x116)]=function(_0x931124,_0x2724c1){return _0x931124===_0x2724c1;},_0x1352b8[_0x51ecf3(0x11e)]='/root',_0x1352b8['JtgLQ']=function(_0x54cddc,_0x977df6){return _0x54cddc+_0x977df6;},_0x1352b8['EzIlf']='/home/',_0x1352b8[_0x51ecf3(0x14f)]=function(_0x32ffec,_0x263460){return _0x32ffec||_0x263460;};const _0xa6d19f=_0x1352b8;if(_0xa6d19f[_0x51ecf3(0x13a)](typeof os['homedir'],_0xa6d19f[_0x51ecf3(0x100)]))return os[_0x51ecf3(0xfc)]();const _0x6b1941=process['env'],_0x30aad3=_0x6b1941[_0x51ecf3(0x136)],_0x4ffdc9=_0x6b1941[_0x51ecf3(0x145)]||_0x6b1941[_0x51ecf3(0xd4)]||_0x6b1941['LNAME']||_0x6b1941[_0x51ecf3(0xb8)];if(_0xa6d19f[_0x51ecf3(0x14e)](process['platform'],_0xa6d19f['fpyYP']))return _0x6b1941[_0x51ecf3(0xed)]||_0xa6d19f[_0x51ecf3(0x133)](_0x6b1941[_0x51ecf3(0xc7)],_0x6b1941[_0x51ecf3(0x12b)])||_0x30aad3||null;if(_0xa6d19f[_0x51ecf3(0xdb)](process['platform'],_0xa6d19f['QSGRF']))return _0x30aad3||(_0x4ffdc9?_0xa6d19f['tSyTR'](_0xa6d19f['JCBFu'],_0x4ffdc9):null);if(_0xa6d19f[_0x51ecf3(0xf6)](process[_0x51ecf3(0xdf)],_0xa6d19f[_0x51ecf3(0xf9)]))return _0x30aad3||(_0xa6d19f['Jjkre'](process['getuid'](),0x0)?_0xa6d19f[_0x51ecf3(0x11e)]:_0x4ffdc9?_0xa6d19f['JtgLQ'](_0xa6d19f[_0x51ecf3(0x13b)],_0x4ffdc9):null);return _0xa6d19f[_0x51ecf3(0x14f)](_0x30aad3,null);}}module[a114_0x4005e5(0x113)]=PercyBinary;
|
|
1
|
+
const a114_0x107ba2=a114_0x50d4;(function(_0x258a70,_0x5ea97c){const _0x281615=a114_0x50d4,_0x5f52d9=_0x258a70();while(!![]){try{const _0x2e0fde=parseInt(_0x281615(0x24e))/0x1*(parseInt(_0x281615(0x213))/0x2)+-parseInt(_0x281615(0x1da))/0x3+parseInt(_0x281615(0x1cc))/0x4*(-parseInt(_0x281615(0x1e2))/0x5)+parseInt(_0x281615(0x203))/0x6+parseInt(_0x281615(0x1ee))/0x7*(-parseInt(_0x281615(0x23a))/0x8)+parseInt(_0x281615(0x1cb))/0x9+-parseInt(_0x281615(0x200))/0xa*(parseInt(_0x281615(0x243))/0xb);if(_0x2e0fde===_0x5ea97c)break;else _0x5f52d9['push'](_0x5f52d9['shift']());}catch(_0x404f4c){_0x5f52d9['push'](_0x5f52d9['shift']());}}}(a114_0x1d21,0xad09a));const {https}=require(a114_0x107ba2(0x215)),url=require(a114_0x107ba2(0x212)),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x107ba2(0x21f)),os=require('os'),{spawn}=require(a114_0x107ba2(0x218)),HttpsProxyAgent=require(a114_0x107ba2(0x1e0)),logger=require(a114_0x107ba2(0x230))['winstonLogger'];class PercyBinary{#hostOS=process[a114_0x107ba2(0x1eb)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a114_0x107ba2(0x1d0)](this.#homedir(),a114_0x107ba2(0x1df)),process[a114_0x107ba2(0x1ce)](),os[a114_0x107ba2(0x21d)]()];constructor(){const _0x31e310=a114_0x107ba2,_0x437b20={};_0x437b20[_0x31e310(0x1f4)]=_0x31e310(0x24d),_0x437b20['JveSr']=function(_0x4cd154,_0x76c86b){return _0x4cd154+_0x76c86b;},_0x437b20[_0x31e310(0x207)]=_0x31e310(0x1fa),_0x437b20[_0x31e310(0x1bf)]=function(_0x4693a4,_0x3ac45b){return _0x4693a4+_0x3ac45b;},_0x437b20[_0x31e310(0x1d6)]=_0x31e310(0x226),_0x437b20[_0x31e310(0x1f2)]=_0x31e310(0x1ca),_0x437b20[_0x31e310(0x22f)]=function(_0x716348,_0x414630){return _0x716348+_0x414630;},_0x437b20[_0x31e310(0x209)]='/percy-linux.zip';const _0x4d0a80=_0x437b20,_0x474c9f=_0x4d0a80[_0x31e310(0x1f4)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x4d0a80[_0x31e310(0x202)](_0x474c9f,_0x4d0a80[_0x31e310(0x207)]);else this.#hostOS[_0x31e310(0x24b)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4d0a80[_0x31e310(0x1bf)](_0x474c9f,_0x4d0a80[_0x31e310(0x1d6)]),this.#binaryName=_0x4d0a80[_0x31e310(0x1f2)]):this.#httpPath=_0x4d0a80[_0x31e310(0x22f)](_0x474c9f,_0x4d0a80['ieWDZ']);}#getAvailableDirs(){const _0x30583f=a114_0x107ba2,_0x55f383={};_0x55f383['OBjrO']=function(_0x1539cb,_0x79c9a7){return _0x1539cb<_0x79c9a7;},_0x55f383[_0x30583f(0x20a)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0xdda3d=_0x55f383;for(var _0xd49c91=0x0;_0xdda3d[_0x30583f(0x1ec)](_0xd49c91,this.#orderedPaths[_0x30583f(0x1d3)]);_0xd49c91++){var _0x514017=this.#orderedPaths[_0xd49c91];if(this.#makePath(_0x514017))return _0x514017;}throw new Error(_0xdda3d[_0x30583f(0x20a)]);}#makePath(_0x2dc647){const _0x35111b=a114_0x107ba2;try{return _0x2dc647&&!this.#checkPath(_0x2dc647)&&fs[_0x35111b(0x22c)](_0x2dc647),!![];}catch{return![];}}#checkPath(_0x5dfe25,_0x19498a){const _0x28a83e=a114_0x107ba2,_0x27fcb0={};_0x27fcb0[_0x28a83e(0x1e5)]=function(_0x55115d,_0x5b201a){return _0x55115d|_0x5b201a;},_0x27fcb0[_0x28a83e(0x227)]=function(_0xc0e84b,_0x3fac17){return _0xc0e84b!==_0x3fac17;},_0x27fcb0['dAbVF']=_0x28a83e(0x210);const _0x5046af=_0x27fcb0;_0x19498a=_0x19498a||_0x5046af[_0x28a83e(0x1e5)](fs[_0x28a83e(0x22d)],fs[_0x28a83e(0x1d7)]);try{return fs[_0x28a83e(0x1ef)](_0x5dfe25,_0x19498a),!![];}catch(_0x5bd88c){if(_0x5046af[_0x28a83e(0x227)](typeof fs[_0x28a83e(0x1ef)],_0x5046af['dAbVF']))return![];try{return fs['statSync'](_0x5dfe25),!![];}catch(_0xf421ae){return![];}}}#getETagPath(_0x4eb428){const _0x5d3f69=a114_0x107ba2;return path[_0x5d3f69(0x1d0)](_0x4eb428,this.#binaryName+_0x5d3f69(0x23f));}#loadETag(_0xe75d6f){const _0x48a8b7=a114_0x107ba2,_0x15681b={};_0x15681b[_0x48a8b7(0x241)]=_0x48a8b7(0x1d4);const _0x2540b5=_0x15681b,_0x3b72ee=this.#getETagPath(_0xe75d6f);if(this.#checkPath(_0x3b72ee))try{return fs['readFileSync'](_0x3b72ee,_0x2540b5['jjjpT'])['trim']();}catch(_0x190749){logger[_0x48a8b7(0x20c)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x190749);}return null;}#saveETag(_0x3692be,_0xaa61f4){const _0x2a135d=a114_0x107ba2,_0x41a02a={};_0x41a02a[_0x2a135d(0x1e3)]=_0x2a135d(0x1f6);const _0x37db5e=_0x41a02a;if(!_0xaa61f4)return;try{const _0x55eecf=this.#getETagPath(_0x3692be);fs['writeFileSync'](_0x55eecf,_0xaa61f4),logger['debug'](_0x37db5e['fBrxN']);}catch(_0x2cc487){logger[_0x2a135d(0x20c)](_0x2a135d(0x236)+_0x2cc487);}}async #handleBinaryDownload(_0x14e7a3,_0x5d99dd,_0x175433){const _0x28473d=a114_0x107ba2,_0x25a1ce={};_0x25a1ce[_0x28473d(0x21c)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x53eb3b=_0x25a1ce,_0x167566=await this[_0x28473d(0x22a)](_0x14e7a3['binaryPath']);if(!_0x167566){logger[_0x28473d(0x244)](_0x53eb3b[_0x28473d(0x21c)]);const _0x3111a5=await this[_0x28473d(0x1fd)](_0x5d99dd,_0x175433);return _0x3111a5['binaryPath'];}return _0x14e7a3['binaryPath'];}async[a114_0x107ba2(0x1e9)](_0x15a1c6){const _0x191f6e=a114_0x107ba2,_0x3c4182={};_0x3c4182[_0x191f6e(0x1c3)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x3c4182['pgnCu']=_0x191f6e(0x204);const _0x36b55c=_0x3c4182,_0x13e291=this.#getAvailableDirs(),_0x227bbc=path[_0x191f6e(0x1d0)](_0x13e291,this.#binaryName);if(this.#checkPath(_0x227bbc,fs[_0x191f6e(0x1d2)])){const _0x5dc73b=this.#loadETag(_0x13e291);if(_0x5dc73b)try{const _0x550b5d=await this[_0x191f6e(0x1fd)](_0x15a1c6,_0x13e291,_0x5dc73b);if(!_0x550b5d[_0x191f6e(0x1db)])return logger[_0x191f6e(0x1e8)](_0x36b55c[_0x191f6e(0x1c3)]),_0x227bbc;return logger[_0x191f6e(0x1e8)](_0x36b55c['pgnCu']),await this.#handleBinaryDownload(_0x550b5d,_0x15a1c6,_0x13e291);}catch(_0x3e1359){return logger[_0x191f6e(0x20c)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x3e1359),_0x227bbc;}}const _0x2dcf9c=await this[_0x191f6e(0x1fd)](_0x15a1c6,_0x13e291);return await this.#handleBinaryDownload(_0x2dcf9c,_0x15a1c6,_0x13e291);}[a114_0x107ba2(0x1fd)](_0x50147d,_0x3fef76,_0x39fc0e=null){const _0xef2b61=a114_0x107ba2,_0x5ee6f3={'kYBGj':function(_0x120e1c,_0x8b6169){return _0x120e1c(_0x8b6169);},'EZGBH':function(_0x14140a,_0x5495e7){return _0x14140a===_0x5495e7;},'uVKHz':'error','zxbZx':_0xef2b61(0x1dc),'AuJFq':function(_0xbb1baa,_0x422bf4){return _0xbb1baa+_0x422bf4;},'xwZVQ':_0xef2b61(0x246)};_0x3fef76&&!this.#checkPath(_0x3fef76)&&fs[_0xef2b61(0x22c)](_0x3fef76);const _0x245355=this.#binaryName,_0x49d435=path[_0xef2b61(0x1d0)](_0x3fef76,_0x5ee6f3[_0xef2b61(0x1f1)](_0x245355,_0x5ee6f3[_0xef2b61(0x1ff)])),_0x4af572=fs[_0xef2b61(0x234)](_0x49d435),_0x4358c8=url['parse'](this.#httpPath);if(_0x50147d[_0xef2b61(0x1f0)]&&_0x50147d[_0xef2b61(0x1d8)]){const _0x11e809={};_0x11e809[_0xef2b61(0x1f7)]=_0x50147d[_0xef2b61(0x1f0)],_0x11e809[_0xef2b61(0x233)]=_0x50147d[_0xef2b61(0x1d8)],_0x4358c8[_0xef2b61(0x1c0)]=new HttpsProxyAgent(_0x11e809);}if(_0x50147d['useCaCertificate'])try{_0x4358c8['ca']=fs[_0xef2b61(0x1e4)](_0x50147d['useCaCertificate']);}catch(_0x24328f){logger[_0xef2b61(0x244)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x24328f);}if(_0x39fc0e){const _0x2eaa05={};_0x2eaa05[_0xef2b61(0x1d5)]=_0x39fc0e,_0x2eaa05[_0xef2b61(0x220)]=_0x5ee6f3[_0xef2b61(0x23b)],_0x4358c8[_0xef2b61(0x237)]=_0x2eaa05;}else{const _0x5f3efe={};_0x5f3efe[_0xef2b61(0x220)]=_0x5ee6f3[_0xef2b61(0x23b)],_0x4358c8[_0xef2b61(0x237)]=_0x5f3efe;}return new Promise((_0x2fcf27,_0x3e7622)=>{const _0x285028=_0xef2b61,_0x40e267={'OXPgo':function(_0x3be16e,_0x3f6927){const _0x1235a2=a114_0x50d4;return _0x5ee6f3[_0x1235a2(0x201)](_0x3be16e,_0x3f6927);},'RGvRw':function(_0x3a7477,_0x28fd4d){const _0x23133f=a114_0x50d4;return _0x5ee6f3[_0x23133f(0x20e)](_0x3a7477,_0x28fd4d);},'rPTrf':function(_0x365ec3,_0x226624){return _0x5ee6f3['kYBGj'](_0x365ec3,_0x226624);},'iGLUx':_0x5ee6f3[_0x285028(0x1c1)],'ANyFE':_0x5ee6f3[_0x285028(0x23b)],'wThcD':function(_0x416dea,_0x4dd46d){const _0x25a6be=_0x285028;return _0x5ee6f3[_0x25a6be(0x201)](_0x416dea,_0x4dd46d);}};https['get'](_0x4358c8,_0x25497f=>{const _0x313f7e=_0x285028;if(_0x39fc0e&&_0x40e267[_0x313f7e(0x221)](_0x25497f[_0x313f7e(0x1de)],0x130)){_0x4af572[_0x313f7e(0x24f)]();const _0x3aac6b={};_0x3aac6b[_0x313f7e(0x1db)]=![],_0x40e267[_0x313f7e(0x1dd)](_0x2fcf27,_0x3aac6b);return;}const _0x34f7d2=_0x25497f[_0x313f7e(0x237)][_0x313f7e(0x21e)];_0x34f7d2&&this.#saveETag(_0x3fef76,_0x34f7d2),_0x25497f[_0x313f7e(0x252)](_0x4af572),_0x25497f['on'](_0x40e267[_0x313f7e(0x1c2)],function(_0x513430){const _0xd2151f=_0x313f7e;logger[_0xd2151f(0x244)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x513430),_0x40e267[_0xd2151f(0x1fb)](_0x3e7622,_0x513430);}),_0x4af572['on'](_0x40e267[_0x313f7e(0x1c2)],function(_0x5f3968){const _0x1f80cd=_0x313f7e;logger[_0x1f80cd(0x244)](_0x1f80cd(0x228)+_0x5f3968),_0x40e267[_0x1f80cd(0x1fb)](_0x3e7622,_0x5f3968);}),_0x4af572['on'](_0x40e267[_0x313f7e(0x208)],()=>{const _0x4e22f6=_0x313f7e;this[_0x4e22f6(0x1e7)](_0x49d435,_0x3fef76)[_0x4e22f6(0x1ed)](_0x5f20d8=>_0x2fcf27({'needsUpdate':!![],'binaryPath':_0x5f20d8}))[_0x4e22f6(0x1f3)](_0x3e7622);});})['on'](_0x5ee6f3['uVKHz'],function(_0x3ad26f){const _0x45bf11=_0x285028;logger[_0x45bf11(0x244)](_0x45bf11(0x235)+_0x3ad26f),_0x40e267[_0x45bf11(0x217)](_0x3e7622,_0x3ad26f);});});}[a114_0x107ba2(0x1e7)](_0x29363c,_0x205ef9){const _0x1f68a3=a114_0x107ba2,_0x69bd96={'RjaqZ':function(_0x388d58,_0x413504){return _0x388d58(_0x413504);},'tAhjr':_0x1f68a3(0x225),'uVXjz':function(_0x19c153,_0x8f86a){return _0x19c153===_0x8f86a;},'Tcrdr':'0755','VUcnV':_0x1f68a3(0x248),'gWLdV':_0x1f68a3(0x244)},_0x1297df=this.#binaryName,_0x4f8f7d=path[_0x1f68a3(0x1d0)](_0x205ef9,_0x1297df);return new Promise((_0x2bfed0,_0x1eaf60)=>{const _0x478f22={};_0x478f22['lazyEntries']=!![],yauzl['open'](_0x29363c,_0x478f22,function(_0x13bbac,_0x4b9f74){const _0x4fe267=a114_0x50d4,_0x59c1ad={'CTXML':function(_0xd29dd1,_0x1d1e68){const _0x587c60=a114_0x50d4;return _0x69bd96[_0x587c60(0x22e)](_0xd29dd1,_0x1d1e68);},'HJlbC':_0x69bd96['tAhjr'],'SCSVL':function(_0x35940f,_0x37c069){const _0x4dfd42=a114_0x50d4;return _0x69bd96[_0x4dfd42(0x1f9)](_0x35940f,_0x37c069);},'gahOF':function(_0xb27398,_0x39ee52){return _0x69bd96['RjaqZ'](_0xb27398,_0x39ee52);},'BMZsd':_0x69bd96[_0x4fe267(0x1d9)]};_0x13bbac&&_0x69bd96['RjaqZ'](_0x1eaf60,_0x13bbac),_0x4b9f74['readEntry'](),_0x4b9f74['on'](_0x69bd96[_0x4fe267(0x1c7)],_0x4fbb9c=>{const _0x3ee1c3=_0x4fe267,_0x1f0a19={'fBCcG':function(_0x39171d,_0x16eaed){const _0x1005f0=a114_0x50d4;return _0x59c1ad[_0x1005f0(0x20f)](_0x39171d,_0x16eaed);},'qRnhq':_0x59c1ad[_0x3ee1c3(0x245)]};if(/\/$/[_0x3ee1c3(0x1c8)](_0x4fbb9c[_0x3ee1c3(0x20b)]))_0x4b9f74['readEntry']();else{const _0x1cd676=fs[_0x3ee1c3(0x234)](path['join'](_0x205ef9,_0x4fbb9c[_0x3ee1c3(0x20b)]));_0x4b9f74['openReadStream'](_0x4fbb9c,function(_0x99947a,_0x102e25){const _0x379ec1=_0x3ee1c3;_0x99947a&&_0x1f0a19['fBCcG'](_0x1eaf60,_0x13bbac),_0x102e25['on'](_0x1f0a19[_0x379ec1(0x251)],function(){const _0x38f234=_0x379ec1;_0x1cd676[_0x38f234(0x1dc)](),_0x4b9f74[_0x38f234(0x238)]();}),_0x102e25[_0x379ec1(0x252)](_0x1cd676);}),_0x59c1ad[_0x3ee1c3(0x23c)](_0x4fbb9c['fileName'],_0x1297df)&&_0x4b9f74[_0x3ee1c3(0x1dc)]();}}),_0x4b9f74['on'](_0x69bd96[_0x4fe267(0x211)],_0x1bac6c=>{const _0x42d5b5=_0x4fe267;_0x59c1ad[_0x42d5b5(0x21a)](_0x1eaf60,_0x1bac6c);}),_0x4b9f74[_0x4fe267(0x247)](_0x69bd96[_0x4fe267(0x219)],()=>{const _0x53da64=_0x4fe267,_0x474f2d={'gLXRR':function(_0x12c714,_0x282182){const _0x115d56=a114_0x50d4;return _0x59c1ad[_0x115d56(0x20f)](_0x12c714,_0x282182);}};fs[_0x53da64(0x1f5)](_0x4f8f7d,_0x59c1ad[_0x53da64(0x250)],function(_0x253f52){const _0x5bf40f=_0x53da64;_0x253f52&&_0x474f2d[_0x5bf40f(0x240)](_0x1eaf60,_0x253f52),_0x474f2d[_0x5bf40f(0x240)](_0x2bfed0,_0x4f8f7d);}),_0x4b9f74[_0x53da64(0x1dc)]();});});});}async[a114_0x107ba2(0x22a)](_0x28eb7d){const _0x23172f=a114_0x107ba2,_0x3c4e6e={'AOPxE':function(_0x248bb4,_0x37a150){return _0x248bb4(_0x37a150);},'KpNQe':function(_0x5b18a0,_0x1cd84e,_0x1f45ba,_0xbe4cee){return _0x5b18a0(_0x1cd84e,_0x1f45ba,_0xbe4cee);},'EZXGJ':_0x23172f(0x216),'QFVpe':_0x23172f(0x1e6),'UUQWq':'close'},_0x136c4b=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x88259d,_0xa6eba0)=>{const _0x5bda29=_0x23172f,_0x2a5d8b={'EppKo':function(_0x332592,_0x2f9ee3){return _0x3c4e6e['AOPxE'](_0x332592,_0x2f9ee3);}},_0x166070={};_0x166070[_0x5bda29(0x223)]=process[_0x5bda29(0x223)];const _0x8262fc=_0x3c4e6e[_0x5bda29(0x1fc)](spawn,_0x28eb7d,[_0x3c4e6e[_0x5bda29(0x231)]],_0x166070);_0x8262fc[_0x5bda29(0x24c)]['on'](_0x3c4e6e[_0x5bda29(0x24a)],_0x2368d1=>{const _0x1a7c2d=_0x5bda29;_0x136c4b[_0x1a7c2d(0x1c8)](_0x2368d1)&&_0x2a5d8b['EppKo'](_0x88259d,!![]);}),_0x8262fc['on'](_0x3c4e6e['UUQWq'],()=>{const _0x3f8245=_0x5bda29;_0x2a5d8b[_0x3f8245(0x242)](_0x88259d,![]);});});}#homedir(){const _0x351ed6=a114_0x107ba2,_0x2390d0={};_0x2390d0[_0x351ed6(0x1c6)]=function(_0x145f00,_0x58f818){return _0x145f00===_0x58f818;},_0x2390d0['jnzfz']=_0x351ed6(0x1ea),_0x2390d0['QEXre']=function(_0x5afb56,_0x4d7aa1){return _0x5afb56===_0x4d7aa1;},_0x2390d0['jPASn']='win32',_0x2390d0[_0x351ed6(0x1d1)]=function(_0x452e55,_0x151307){return _0x452e55+_0x151307;},_0x2390d0[_0x351ed6(0x205)]=_0x351ed6(0x229),_0x2390d0[_0x351ed6(0x21b)]='/Users/',_0x2390d0[_0x351ed6(0x1c4)]=_0x351ed6(0x1f8),_0x2390d0[_0x351ed6(0x1e1)]=_0x351ed6(0x22b),_0x2390d0[_0x351ed6(0x224)]=_0x351ed6(0x249),_0x2390d0[_0x351ed6(0x1cf)]=function(_0x31c8f4,_0x2ce8ef){return _0x31c8f4||_0x2ce8ef;};const _0x57e453=_0x2390d0;if(_0x57e453[_0x351ed6(0x1c6)](typeof os[_0x351ed6(0x20d)],_0x57e453[_0x351ed6(0x222)]))return os[_0x351ed6(0x20d)]();const _0x246857=process['env'],_0x49a65a=_0x246857[_0x351ed6(0x239)],_0x1cf0ba=_0x246857[_0x351ed6(0x206)]||_0x246857['USER']||_0x246857['LNAME']||_0x246857[_0x351ed6(0x23e)];if(_0x57e453[_0x351ed6(0x1fe)](process[_0x351ed6(0x1eb)],_0x57e453[_0x351ed6(0x1c5)]))return _0x246857[_0x351ed6(0x1c9)]||_0x57e453[_0x351ed6(0x1d1)](_0x246857[_0x351ed6(0x23d)],_0x246857[_0x351ed6(0x1cd)])||_0x49a65a||null;if(_0x57e453[_0x351ed6(0x1c6)](process[_0x351ed6(0x1eb)],_0x57e453[_0x351ed6(0x205)]))return _0x49a65a||(_0x1cf0ba?_0x57e453[_0x351ed6(0x1d1)](_0x57e453[_0x351ed6(0x21b)],_0x1cf0ba):null);if(_0x57e453[_0x351ed6(0x1c6)](process[_0x351ed6(0x1eb)],_0x57e453[_0x351ed6(0x1c4)]))return _0x49a65a||(_0x57e453[_0x351ed6(0x1c6)](process[_0x351ed6(0x214)](),0x0)?_0x57e453[_0x351ed6(0x1e1)]:_0x1cf0ba?_0x57e453[_0x351ed6(0x1d1)](_0x57e453[_0x351ed6(0x224)],_0x1cf0ba):null);return _0x57e453['MWGsW'](_0x49a65a,null);}}module[a114_0x107ba2(0x232)]=PercyBinary;function a114_0x50d4(_0x1abc0c,_0x283106){const _0x1d21d1=a114_0x1d21();return a114_0x50d4=function(_0x50d4e9,_0x1c065f){_0x50d4e9=_0x50d4e9-0x1bf;let _0x1fb4d7=_0x1d21d1[_0x50d4e9];return _0x1fb4d7;},a114_0x50d4(_0x1abc0c,_0x283106);}function a114_0x1d21(){const _0x4d4339=['rPTrf','statusCode','.browserstack','https-proxy-agent','mnSZS','381565wdZhPA','fBrxN','readFileSync','AUBxK','data','extractAndSaveBinary','debug','getBinaryPath','function','platform','OBjrO','then','301VNzKes','accessSync','proxyHost','AuJFq','riWez','catch','wYKBj','chmod','Saved\x20new\x20ETag\x20for\x20percy\x20binary','host','linux','uVXjz','/percy-osx.zip','OXPgo','KpNQe','download','QEXre','xwZVQ','3290lmtGTu','kYBGj','JveSr','7689972VuBwSK','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','unfiV','LOGNAME','OkVIy','ANyFE','ieWDZ','qAKNr','fileName','warn','homedir','EZGBH','CTXML','undefined','gWLdV','url','29350ZqMDvn','getuid','follow-redirects','--version','wThcD','child_process','tAhjr','gahOF','HyoQp','NGeqw','tmpdir','etag','path','Connection','RGvRw','jnzfz','env','UKtRc','end','/percy-win.zip','IexLq','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','darwin','validateBinary','/root','mkdirSync','R_OK','RjaqZ','oSOkZ','../logger','EZXGJ','exports','port','createWriteStream','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','Failed\x20to\x20save\x20ETag\x20file:\x20','headers','readEntry','HOME','217040EYkNAl','zxbZx','SCSVL','HOMEDRIVE','USERNAME','.etag','gLXRR','jjjpT','EppKo','13398qkhugk','error','HJlbC','.zip','once','entry','/home/','QFVpe','match','stdout','https://github.com/percy/cli/releases/latest/download','47mHiaTo','destroy','BMZsd','qRnhq','pipe','AdCIJ','agent','uVKHz','iGLUx','pWChe','rWBoC','jPASn','Mzsqh','VUcnV','test','USERPROFILE','percy.exe','8339985NIWfnx','8HJdQbq','HOMEPATH','cwd','MWGsW','join','URVCD','X_OK','length','utf8','If-None-Match','tiLpb','W_OK','proxyPort','Tcrdr','1408056GJBeWj','needsUpdate','close'];a114_0x1d21=function(){return _0x4d4339;};return a114_0x1d21();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a115_0x694449=a115_0x2cd0;function a115_0x21f9(){var _0x13e4ae=['2116745YDVflJ','7872760jHgKco','1022158rcWxAx','exports','get','3685824SnEuKt','getName','2414373wnIeWU','2aLdekt','9120902psIbHo','1970388kTpQyy'];a115_0x21f9=function(){return _0x13e4ae;};return a115_0x21f9();}(function(_0xded413,_0x22ef1a){var _0x43880c=a115_0x2cd0,_0x203dd1=_0xded413();while(!![]){try{var _0x3917f5=-parseInt(_0x43880c(0x1ae))/0x1*(-parseInt(_0x43880c(0x1b3))/0x2)+-parseInt(_0x43880c(0x1ad))/0x3+parseInt(_0x43880c(0x1ab))/0x4+-parseInt(_0x43880c(0x1b1))/0x5+-parseInt(_0x43880c(0x1b0))/0x6+parseInt(_0x43880c(0x1af))/0x7+-parseInt(_0x43880c(0x1b2))/0x8;if(_0x3917f5===_0x22ef1a)break;else _0x203dd1['push'](_0x203dd1['shift']());}catch(_0x15f911){_0x203dd1['push'](_0x203dd1['shift']());}}}(a115_0x21f9,0xac5af));function a115_0x2cd0(_0x5e5719,_0x3ca310){var _0x21f9cd=a115_0x21f9();return a115_0x2cd0=function(_0x2cd0c7,_0x1a5c1a){_0x2cd0c7=_0x2cd0c7-0x1aa;var _0x3dc7cb=_0x21f9cd[_0x2cd0c7];return _0x3dc7cb;},a115_0x2cd0(_0x5e5719,_0x3ca310);}class PercyCaptureMap{#map={};['increment'](_0x365436,_0x1767e4){!this.#map[_0x365436]&&(this.#map[_0x365436]={}),!this.#map[_0x365436][_0x1767e4]&&(this.#map[_0x365436][_0x1767e4]=0x0),this.#map[_0x365436][_0x1767e4]++;}[a115_0x694449(0x1ac)](_0x1bfb46,_0x3e0747){var _0x2700d5=a115_0x694449;return _0x1bfb46+'-'+_0x3e0747+'-'+this[_0x2700d5(0x1aa)](_0x1bfb46,_0x3e0747);}[a115_0x694449(0x1aa)](_0x94ded,_0x539704){if(!this.#map[_0x94ded])return 0x0;if(!this.#map[_0x94ded][_0x539704])return 0x0;return this.#map[_0x94ded][_0x539704];}}module[a115_0x694449(0x1b4)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a116_0x5e728a=a116_0x5ada;(function(_0x28809e,_0x1ff502){var _0x40bfe2=a116_0x5ada,_0x3f9730=_0x28809e();while(!![]){try{var _0x446ef1=parseInt(_0x40bfe2(0x1a9))/0x1*(parseInt(_0x40bfe2(0x1a5))/0x2)+-parseInt(_0x40bfe2(0x1ad))/0x3*(-parseInt(_0x40bfe2(0x1ab))/0x4)+parseInt(_0x40bfe2(0x1a1))/0x5*(parseInt(_0x40bfe2(0x19f))/0x6)+-parseInt(_0x40bfe2(0x1af))/0x7*(parseInt(_0x40bfe2(0x19e))/0x8)+-parseInt(_0x40bfe2(0x1a7))/0x9+-parseInt(_0x40bfe2(0x19d))/0xa*(-parseInt(_0x40bfe2(0x1a3))/0xb)+-parseInt(_0x40bfe2(0x1a2))/0xc;if(_0x446ef1===_0x1ff502)break;else _0x3f9730['push'](_0x3f9730['shift']());}catch(_0x4a9587){_0x3f9730['push'](_0x3f9730['shift']());}}}(a116_0x33ce,0x3244a));var a116_0x1615bf={};a116_0x1615bf[a116_0x5e728a(0x1a8)]=['takeScreenshot'],a116_0x1615bf[a116_0x5e728a(0x1ae)]=['click',a116_0x5e728a(0x1a4)];var a116_0x2e272a={};a116_0x2e272a['driver']=['takeScreenshot'];var a116_0x25ea40={};function a116_0x33ce(){var _0x721c17=['element','2947wBIjUN','2640yEIdLG','3856TEJyXN','599706ydOfoZ','screenshot','5EeFJdB','678816AUuOcB','561GVbAGF','sendKeys','545434KGTEMO','exports','2625768XGgwfa','driver','1fGjGPa','auto','4izcYnw','click','1113024tDRbQB'];a116_0x33ce=function(){return _0x721c17;};return a116_0x33ce();}a116_0x25ea40['element']=[a116_0x5e728a(0x1ac)];function a116_0x5ada(_0x2ff3cf,_0x5e80a7){var _0x33ce85=a116_0x33ce();return a116_0x5ada=function(_0x5ada1a,_0x53e593){_0x5ada1a=_0x5ada1a-0x19d;var _0xac5c2b=_0x33ce85[_0x5ada1a];return _0xac5c2b;},a116_0x5ada(_0x2ff3cf,_0x5e80a7);}var a116_0x132df6={};a116_0x132df6[a116_0x5e728a(0x1aa)]=a116_0x1615bf,a116_0x132df6[a116_0x5e728a(0x1a0)]=a116_0x2e272a,a116_0x132df6[a116_0x5e728a(0x1ac)]=a116_0x25ea40,a116_0x132df6['testcase']={},a116_0x132df6['manual']={},module[a116_0x5e728a(0x1a6)]=a116_0x132df6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x357041=a117_0x5f3a;(function(_0x50497f,_0x46d24a){const _0x505527=a117_0x5f3a,_0xdd06e4=_0x50497f();while(!![]){try{const _0x38e23e=parseInt(_0x505527(0x9c))/0x1*(parseInt(_0x505527(0x98))/0x2)+parseInt(_0x505527(0xad))/0x3+-parseInt(_0x505527(0x97))/0x4+-parseInt(_0x505527(0xb2))/0x5*(parseInt(_0x505527(0xa0))/0x6)+-parseInt(_0x505527(0xa4))/0x7*(-parseInt(_0x505527(0xa2))/0x8)+parseInt(_0x505527(0x9d))/0x9+-parseInt(_0x505527(0xa3))/0xa;if(_0x38e23e===_0x46d24a)break;else _0xdd06e4['push'](_0xdd06e4['shift']());}catch(_0xe98fd9){_0xdd06e4['push'](_0xdd06e4['shift']());}}}(a117_0x44d6,0x941d2));function a117_0x5f3a(_0x4651d4,_0x4490c5){const _0x44d62f=a117_0x44d6();return a117_0x5f3a=function(_0x5f3a57,_0x42fdd9){_0x5f3a57=_0x5f3a57-0x97;let _0x20cad1=_0x44d62f[_0x5f3a57];return _0x20cad1;},a117_0x5f3a(_0x4651d4,_0x4490c5);}const tryRequire=function(_0x27cfe5,_0x559982){const _0x1cb3d3={'YDTWA':function(_0xb7d4bb,_0x3c551d){return _0xb7d4bb(_0x3c551d);}};try{return _0x1cb3d3['YDTWA'](require,_0x27cfe5);}catch{return _0x559982;}},percySnapshot=tryRequire(a117_0x357041(0xaa),null),{percyScreenshot}=tryRequire(a117_0x357041(0xaa),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a117_0x357041(0xa7)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require('../logger')[a117_0x357041(0x99)];percySnapshot&&(exports['snapshot']=async function(){const _0x1eaac0=a117_0x357041,_0x365805={'kHNjZ':function(_0x337e6a,_0x2f571a){return _0x337e6a!==_0x2f571a;},'txttg':function(_0x8e42bc,_0x69fe22){return _0x8e42bc>=_0x69fe22;},'PSPuq':function(_0x14e114){return _0x14e114();}};if(global[_0x1eaac0(0xa9)]&&_0x365805[_0x1eaac0(0xac)](global[_0x1eaac0(0xa9)],global[_0x1eaac0(0xa1)]))return;const _0x30078e=_0x365805[_0x1eaac0(0xb4)](arguments[_0x1eaac0(0xb9)],0x2)?arguments[0x1]:'',_0x549f66=_0x365805[_0x1eaac0(0xb7)](getCurrentTestData),_0xf6a33d={};return _0xf6a33d[_0x1eaac0(0xaf)]=_0x30078e,_0xf6a33d['testCase']=_0x549f66[_0x1eaac0(0xaf)]||'',_0xf6a33d[_0x1eaac0(0xb3)]=_0x549f66[_0x1eaac0(0xba)]||'',_0xf6a33d[_0x1eaac0(0xb0)]=global[_0x1eaac0(0xa9)],await PerformanceTester[_0x1eaac0(0xb1)](PerformanceEvents['SNAPSHOT'],()=>percySnapshot[_0x1eaac0(0x9f)](null,arguments),_0xf6a33d);});percyScreenshot?exports['screenshot']=async function(){const _0x2967c6=a117_0x357041,_0x2c64b7={'PnYHf':function(_0x52d455,_0x239cce){return _0x52d455>=_0x239cce;},'HkYuG':function(_0x4734b9){return _0x4734b9();}},_0x3a7a9a=_0x2c64b7[_0x2967c6(0xa8)](arguments[_0x2967c6(0xb9)],0x2)?arguments[0x1]:'',_0x29ab08=_0x2c64b7[_0x2967c6(0x9b)](getCurrentTestData),_0x3d86a8={};return _0x3d86a8[_0x2967c6(0xaf)]=_0x3a7a9a,_0x3d86a8[_0x2967c6(0xb5)]=_0x29ab08[_0x2967c6(0xaf)]||'',_0x3d86a8[_0x2967c6(0xb3)]=_0x29ab08[_0x2967c6(0xba)]||'',_0x3d86a8[_0x2967c6(0xb0)]=global[_0x2967c6(0xa9)],await PerformanceTester[_0x2967c6(0xb1)](PerformanceEvents[_0x2967c6(0x9e)],()=>percyScreenshot[_0x2967c6(0x9f)](null,arguments),_0x3d86a8);}:exports[a117_0x357041(0x9a)]=()=>{const _0x26d3fb=a117_0x357041,_0x27770f={};_0x27770f[_0x26d3fb(0xae)]=_0x26d3fb(0xa6);const _0x5d3263=_0x27770f;logger['error'](_0x5d3263[_0x26d3fb(0xae)]);};exports[a117_0x357041(0xb8)]=async function(){const _0x394edb=a117_0x357041,_0x1be12a={'pBupt':function(_0x395eb3,_0x3eb1af){return _0x395eb3>=_0x3eb1af;},'KBqjQ':function(_0x3ccd09){return _0x3ccd09();}},_0x5efd00=_0x1be12a[_0x394edb(0xa5)](arguments[_0x394edb(0xb9)],0x2)?arguments[0x1]:'',_0x2cc0c3=_0x1be12a[_0x394edb(0xb6)](getCurrentTestData),_0x3a44df={};return _0x3a44df[_0x394edb(0xaf)]=_0x5efd00,_0x3a44df[_0x394edb(0xb5)]=_0x2cc0c3[_0x394edb(0xaf)]||'',_0x3a44df[_0x394edb(0xb3)]=_0x2cc0c3[_0x394edb(0xba)]||'',_0x3a44df['platformIndex']=global[_0x394edb(0xa9)],await PerformanceTester['measure'](PerformanceEvents[_0x394edb(0xab)],()=>percyAppScreenshot[_0x394edb(0x9f)](null,arguments),_0x3a44df);};function a117_0x44d6(){const _0x13a32a=['2196240ESGkBq','6oHaeYd','winstonLogger','screenshot','HkYuG','40759JQytFz','2928321hrUzuU','SCREENSHOT','apply','210ywmCrj','browserstackPercyBestPlatform','528gHlroX','1352280rYIcIa','54558PvilXU','pBupt','Unsupported\x20driver\x20for\x20percy','../performance/performance-tester','PnYHf','browserstackPlatformIndex','@percy/selenium-webdriver','SCREENSHOT_APP','kHNjZ','1875246FbVTqZ','jORoG','name','platformIndex','measure','42310ookdtA','thTestCaseExecutionId','txttg','testCase','KBqjQ','PSPuq','screenshotApp','length','uuid'];a117_0x44d6=function(){return _0x13a32a;};return a117_0x44d6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a118_0x6f20(_0x27762d,_0x20bcf1){var _0x4ccf7e=a118_0x4ccf();return a118_0x6f20=function(_0x6f2061,_0x2aebc7){_0x6f2061=_0x6f2061-0x165;var _0x5f24a7=_0x4ccf7e[_0x6f2061];return _0x5f24a7;},a118_0x6f20(_0x27762d,_0x20bcf1);}function a118_0x4ccf(){var _0x3072e2=['2375440RtJMHk','6318594UhgOzC','./Percy','20pdNrJM','7225250bnVCao','202lfVxJj','7949gUCVhg','1931210JCmDIg','348024EUAVkV','7AJLQBt','5022780GrSIzY'];a118_0x4ccf=function(){return _0x3072e2;};return a118_0x4ccf();}var a118_0x16bf93=a118_0x6f20;(function(_0x194027,_0x44e39d){var _0x19f1ca=a118_0x6f20,_0x58efaf=_0x194027();while(!![]){try{var _0x32cc29=-parseInt(_0x19f1ca(0x16c))/0x1*(parseInt(_0x19f1ca(0x16b))/0x2)+-parseInt(_0x19f1ca(0x16e))/0x3*(-parseInt(_0x19f1ca(0x169))/0x4)+parseInt(_0x19f1ca(0x16d))/0x5+-parseInt(_0x19f1ca(0x165))/0x6+parseInt(_0x19f1ca(0x16f))/0x7*(-parseInt(_0x19f1ca(0x166))/0x8)+parseInt(_0x19f1ca(0x167))/0x9+parseInt(_0x19f1ca(0x16a))/0xa;if(_0x32cc29===_0x44e39d)break;else _0x58efaf['push'](_0x58efaf['shift']());}catch(_0x3177f2){_0x58efaf['push'](_0x58efaf['shift']());}}}(a118_0x4ccf,0x6ed4c),module['exports']=require(a118_0x16bf93(0x168)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a119_0x1ee5(_0x2708a1,_0xc4509f){const _0x5df716=a119_0x5df7();return a119_0x1ee5=function(_0x1ee563,_0x5c3af5){_0x1ee563=_0x1ee563-0x181;let _0x13076a=_0x5df716[_0x1ee563];return _0x13076a;},a119_0x1ee5(_0x2708a1,_0xc4509f);}function a119_0x5df7(){const _0xecd003=['./Percy','then','paLof','8XbYmSk','patchDriverPercy','./PercyCaptureModes','getName','561927DvirDN','nestedKeyValue','Stopping\x20percy','kgEZb','browserName','sQprC','PRPGl','getDriver','startPercy','qNjjf','screenshotApp','hoIdk','./PercyCaptureMap','5571900EoAIxf','browserstackSessionName','903213dHhUok','stop','percyCaptureMode','UXFVr','owusM','browserStackPercyOptions','auto','Error\x20patching\x20','screenshot','12761290PYtufe','manual','percyAutoCapture','74552nkvAfs','measureWrapper','vartE','AUTO_CAPTURE','browserstackPercyMap','hFxfF','28FuqWuq','error','overrideXforPercy','debug','Starting\x20percy','toLowerCase','7lwaiJB','isUndefined','8IzrAaX','kLLji','init','percy','prototype','reduce','patch','../logger','GDJwi','2679435FMyqws','STOP','forEach','safari','\x20for\x20percy\x20','edge','../performance/performance-tester','27474513tmfEhj','chrome','getBestPlatformForPercySnapshot','browser','driver','browserstackPercyBestPlatform','deviceName','element','START','apply','../performance/constants','getPercyOptions','./PercySDK','firefox'];a119_0x5df7=function(){return _0xecd003;};return a119_0x5df7();}const a119_0x107c06=a119_0x1ee5;(function(_0x17b7e6,_0x39d65f){const _0x359375=a119_0x1ee5,_0x40edd5=_0x17b7e6();while(!![]){try{const _0x19f3c6=parseInt(_0x359375(0x181))/0x1*(parseInt(_0x359375(0x1b0))/0x2)+parseInt(_0x359375(0x1b4))/0x3*(parseInt(_0x359375(0x187))/0x4)+-parseInt(_0x359375(0x198))/0x5+-parseInt(_0x359375(0x1c1))/0x6*(-parseInt(_0x359375(0x18d))/0x7)+parseInt(_0x359375(0x18f))/0x8*(-parseInt(_0x359375(0x1c3))/0x9)+parseInt(_0x359375(0x1cc))/0xa+-parseInt(_0x359375(0x19f))/0xb;if(_0x19f3c6===_0x39d65f)break;else _0x40edd5['push'](_0x40edd5['shift']());}catch(_0x3cc2bb){_0x40edd5['push'](_0x40edd5['shift']());}}}(a119_0x5df7,0xa611f));const Percy=require(a119_0x107c06(0x1ad)),PercySDK=require(a119_0x107c06(0x1ab)),PercyCaptureModes=require(a119_0x107c06(0x1b2)),PercyCaptureMap=require(a119_0x107c06(0x1c0)),logger=require(a119_0x107c06(0x196))['winstonLogger'],helper=require('../helper'),PerformanceTester=require(a119_0x107c06(0x19e)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x107c06(0x1a9));exports[a119_0x107c06(0x1bc)]=PerformanceTester[a119_0x107c06(0x182)](PerformanceEvents[a119_0x107c06(0x1a7)],async _0x397efa=>{const _0x1b4988=a119_0x107c06,_0x23d76f={};_0x23d76f[_0x1b4988(0x1c7)]=_0x1b4988(0x18b);const _0x1c63d2=_0x23d76f;logger[_0x1b4988(0x18a)](_0x1c63d2[_0x1b4988(0x1c7)]);const _0x358dae=new Percy(_0x397efa),_0x16d0d7=await _0x358dae['start']();if(_0x16d0d7)return _0x358dae;return null;}),exports['stopPercy']=PerformanceTester[a119_0x107c06(0x182)](PerformanceEvents[a119_0x107c06(0x199)],async _0x534d7e=>{const _0x106401=a119_0x107c06,_0x5e67cf={};_0x5e67cf[_0x106401(0x1af)]=_0x106401(0x1b6);const _0xd4e7ff=_0x5e67cf;return logger['debug'](_0xd4e7ff[_0x106401(0x1af)]),_0x534d7e[_0x106401(0x1c4)]();}),exports[a119_0x107c06(0x1a1)]=_0x131194=>{const _0x206eeb=a119_0x107c06,_0x4e6f0d={};_0x4e6f0d[_0x206eeb(0x190)]=function(_0x4ee5ad,_0xf5b0c4){return _0x4ee5ad<_0xf5b0c4;};const _0x21008c=_0x4e6f0d,_0x586d65={};_0x586d65[_0x206eeb(0x1a0)]=0x0,_0x586d65[_0x206eeb(0x1ac)]=0x1,_0x586d65[_0x206eeb(0x19d)]=0x2,_0x586d65[_0x206eeb(0x19b)]=0x3;const _0x419b2f=_0x586d65;return _0x131194[_0x206eeb(0x194)]((_0x2b0dc8,_0x2eecea,_0x452020)=>{const _0x4bc8b3=_0x206eeb,_0x26f473=_0x131194[_0x2b0dc8];if(_0x2eecea['deviceName'])return _0x2b0dc8;if(_0x26f473[_0x4bc8b3(0x1a5)])return _0x452020;const _0x5bad74=_0x2eecea['browser']?_0x2eecea[_0x4bc8b3(0x1a2)]:_0x2eecea[_0x4bc8b3(0x1b8)];if(_0x5bad74&&_0x21008c['kLLji'](_0x419b2f[_0x5bad74[_0x4bc8b3(0x18c)]()],_0x419b2f[_0x5bad74[_0x4bc8b3(0x18c)]()]))return _0x452020;return _0x2b0dc8;},0x0);},exports[a119_0x107c06(0x1ce)]=PerformanceTester[a119_0x107c06(0x182)](PerformanceEvents[a119_0x107c06(0x184)],async(_0x2d5f64,_0x111b1c,_0x13bfad)=>{const _0xf30221=a119_0x107c06,_0x1d94d3={};_0x1d94d3['kgEZb']='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0x228fdf=_0x1d94d3,_0x5dae37=_0x2d5f64[_0xf30221(0x185)];if(helper[_0xf30221(0x18e)](_0x2d5f64[_0xf30221(0x1c2)])){logger['debug'](_0x228fdf[_0xf30221(0x1b7)]);return;}const _0x196972=_0x5dae37[_0xf30221(0x1b3)](_0x2d5f64[_0xf30221(0x1c2)],_0x111b1c);_0x13bfad['app']?await PercySDK[_0xf30221(0x1be)](_0x2d5f64,_0x196972):await PercySDK[_0xf30221(0x1cb)](_0x2d5f64,_0x196972),_0x5dae37['increment'](_0x2d5f64[_0xf30221(0x1c2)],_0x111b1c);}),exports[a119_0x107c06(0x1b1)]=(_0x1f61ad,_0x1223ff,_0x69fdc3)=>{const _0x1129c9=a119_0x107c06,_0x5917dd={};_0x5917dd[_0x1129c9(0x183)]='browserStackPercyOptions',_0x5917dd['GDJwi']='percy',_0x5917dd[_0x1129c9(0x1b9)]=function(_0x56bee6,_0x4ddfef){return _0x56bee6!==_0x4ddfef;},_0x5917dd[_0x1129c9(0x1bd)]=_0x1129c9(0x1cd);const _0x571b25=_0x5917dd;if(!helper[_0x1129c9(0x1b5)](_0x69fdc3,[_0x571b25[_0x1129c9(0x183)],_0x571b25[_0x1129c9(0x197)]]))return;if(_0x69fdc3['browserStackPercyOptions'][_0x1129c9(0x192)]&&_0x69fdc3[_0x1129c9(0x1c8)]['percyCaptureMode']&&_0x571b25[_0x1129c9(0x1b9)](_0x69fdc3['browserStackPercyOptions'][_0x1129c9(0x1c5)],_0x571b25[_0x1129c9(0x1bd)])&&!_0x1f61ad[_0x1129c9(0x185)]){global[_0x1129c9(0x1c2)]&&(_0x1f61ad[_0x1129c9(0x1c2)]=global[_0x1129c9(0x1c2)]),_0x1f61ad[_0x1129c9(0x185)]=new PercyCaptureMap();const _0x3cae40=PercyCaptureModes[_0x69fdc3[_0x1129c9(0x1c8)][_0x1129c9(0x1c5)]];_0x3cae40[_0x1129c9(0x1a3)]&&_0x3cae40[_0x1129c9(0x1a3)][_0x1129c9(0x19a)](_0x21c3b7=>this[_0x1129c9(0x189)](_0x1f61ad,_0x21c3b7,_0x69fdc3)),_0x3cae40[_0x1129c9(0x1a6)]&&_0x3cae40[_0x1129c9(0x1a6)][_0x1129c9(0x19a)](_0x3fdea3=>{const _0x882997=_0x1129c9;if(_0x1223ff['prototype'][_0x882997(0x195)+_0x3fdea3])return;_0x1223ff[_0x882997(0x193)]['patch'+_0x3fdea3]=!![];const _0x21c143=_0x1223ff[_0x882997(0x193)][_0x3fdea3];_0x1223ff[_0x882997(0x193)][_0x3fdea3]=async function(){const _0x32a1b0=_0x882997;let _0x275a6f=_0x21c143['apply'](this,arguments);_0x275a6f&&_0x275a6f[_0x32a1b0(0x1ae)]&&(_0x275a6f=await _0x275a6f);try{const _0x7fa6a6=this[_0x32a1b0(0x1bb)]();await exports[_0x32a1b0(0x1ce)](_0x7fa6a6,_0x3fdea3,_0x69fdc3);}catch(_0x55867f){logger['error'](_0x32a1b0(0x1ca)+_0x3fdea3+'\x20for\x20percy\x20'+_0x55867f);}return _0x275a6f;};});}},exports[a119_0x107c06(0x189)]=function(_0x4242b2,_0x36d8f2,_0x4b253c){const _0x363cdc=a119_0x107c06,_0x3d0b45={};_0x3d0b45['hoIdk']=function(_0x3113f5,_0x35dac2){return _0x3113f5+_0x35dac2;},_0x3d0b45[_0x363cdc(0x186)]=_0x363cdc(0x195),_0x3d0b45['PRPGl']=_0x363cdc(0x191);const _0x19f286=_0x3d0b45,_0x488109=_0x19f286[_0x363cdc(0x1bf)](_0x19f286[_0x363cdc(0x186)],_0x36d8f2),_0x4cf57c=_0x19f286[_0x363cdc(0x1bf)](_0x19f286[_0x363cdc(0x1ba)],_0x36d8f2),_0x533cf2=this;if(_0x4242b2[_0x488109]||!_0x4242b2[_0x36d8f2])return;_0x4242b2[_0x488109]=!![],_0x4242b2[_0x4cf57c]=_0x4242b2[_0x36d8f2],_0x4242b2[_0x36d8f2]=async()=>{const _0x583e16=_0x363cdc;try{await _0x533cf2[_0x583e16(0x1ce)](_0x4242b2,_0x36d8f2,_0x4b253c);}catch(_0xe5a552){logger[_0x583e16(0x188)](_0x583e16(0x1ca)+_0x36d8f2+_0x583e16(0x19c)+_0xe5a552);}return await _0x4242b2[_0x4cf57c][_0x583e16(0x1a8)](_0x4242b2,arguments);};},exports[a119_0x107c06(0x1aa)]=_0x29fab2=>{const _0x5a31f7=a119_0x107c06,_0x99a40b={};_0x99a40b[_0x5a31f7(0x1c6)]=_0x5a31f7(0x1c9);const _0x28db0e=_0x99a40b,_0x33adad={};_0x33adad['percy']=_0x29fab2[_0x5a31f7(0x192)],_0x33adad[_0x5a31f7(0x1c5)]=_0x29fab2[_0x5a31f7(0x1c5)]||_0x28db0e['UXFVr'];const _0x4e4362=_0x33adad;_0x29fab2[_0x5a31f7(0x192)]&&(_0x4e4362[_0x5a31f7(0x1a4)]=exports[_0x5a31f7(0x1a1)](_0x29fab2['platforms']));;return _0x4e4362;};
|