browserstack-node-sdk 1.55.5 → 1.55.6
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/generated/sdk-messages_pb.d.ts +40 -0
- package/generated/sdk-messages_pb.js +322 -2
- 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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/puppeteer-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/newmanTestFramework.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/puppeteerAutomationFramework.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/puppeteerDriverModule.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/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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 a120_0x331c47=a120_0x1a17;(function(_0x13510a,_0x4f1335){const _0xcbc4cc=a120_0x1a17,_0x4ffca1=_0x13510a();while(!![]){try{const _0x3bb8ca=parseInt(_0xcbc4cc(0x11f))/0x1*(-parseInt(_0xcbc4cc(0xe0))/0x2)+parseInt(_0xcbc4cc(0x119))/0x3+parseInt(_0xcbc4cc(0x11b))/0x4+-parseInt(_0xcbc4cc(0xf7))/0x5*(-parseInt(_0xcbc4cc(0x115))/0x6)+parseInt(_0xcbc4cc(0x103))/0x7*(-parseInt(_0xcbc4cc(0x113))/0x8)+-parseInt(_0xcbc4cc(0xf1))/0x9*(-parseInt(_0xcbc4cc(0xff))/0xa)+parseInt(_0xcbc4cc(0x109))/0xb;if(_0x3bb8ca===_0x4f1335)break;else _0x4ffca1['push'](_0x4ffca1['shift']());}catch(_0x17abad){_0x4ffca1['push'](_0x4ffca1['shift']());}}}(a120_0x2d76,0x3fa21));const winston=require(a120_0x331c47(0xe2)),path=require(a120_0x331c47(0xfe)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a120_0x331c47(0x105);let redactRegex=null,lastConfigHash='';const logFormat=winston[a120_0x331c47(0x102)](_0x50a62c=>{const _0x1b6294=a120_0x331c47,_0x338c26={};_0x338c26[_0x1b6294(0xe6)]=function(_0x1892d8,_0x141df9){return _0x1892d8!==_0x141df9;},_0x338c26[_0x1b6294(0xd2)]=_0x1b6294(0x117),_0x338c26[_0x1b6294(0xd1)]=function(_0x1c95a0,_0x1632ca){return _0x1c95a0+_0x1632ca;},_0x338c26[_0x1b6294(0xf0)]=function(_0x336a93,_0x780b3c){return _0x336a93+_0x780b3c;},_0x338c26['nLoUA']=function(_0x567eaa,_0x3b6d43){return _0x567eaa>_0x3b6d43;},_0x338c26[_0x1b6294(0x10e)]='[REDACTED]';const _0x3cfd24=_0x338c26;_0x3cfd24[_0x1b6294(0xe6)](typeof _0x50a62c['message'],_0x3cfd24['TnMPA'])&&(_0x50a62c[_0x1b6294(0x106)]=JSON['stringify'](_0x50a62c[_0x1b6294(0x106)]));const _0x1745aa=global[_0x1b6294(0x110)]&&global[_0x1b6294(0x110)][_0x1b6294(0xdf)]||'',_0x5abd1c=global[_0x1b6294(0x110)]&&global[_0x1b6294(0x110)][_0x1b6294(0xe9)]||'',_0x4809de=_0x3cfd24['DePQD'](_0x3cfd24['OSsqr'](_0x1745aa,'|'),_0x5abd1c);if(_0x3cfd24[_0x1b6294(0xe6)](_0x4809de,lastConfigHash)){lastConfigHash=_0x4809de;const _0x3a0c38=[_0x1745aa,_0x5abd1c][_0x1b6294(0x111)](Boolean);if(_0x3cfd24[_0x1b6294(0xcd)](_0x3a0c38[_0x1b6294(0x10c)],0x0)){const _0x4a831e=_0x3a0c38[_0x1b6294(0xe1)](_0x3e5849=>_0x3e5849['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))['join']('|');redactRegex=new RegExp(_0x4a831e,'g');}else redactRegex=null;}return redactRegex&&(_0x50a62c[_0x1b6294(0x106)]=_0x50a62c[_0x1b6294(0x106)][_0x1b6294(0x11d)](redactRegex,_0x3cfd24[_0x1b6294(0x10e)])),_0x50a62c;}),fetchLogDir=()=>{const _0x147945=a120_0x331c47;if(process[_0x147945(0xfd)][_0x147945(0xfb)])return process['env'][_0x147945(0xfb)];else!fs[_0x147945(0xd6)](tempLogDir)&&fs[_0x147945(0x10d)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0xc25008=a120_0x331c47,_0x8d01c5={};_0x8d01c5['cPDvh']=_0xc25008(0xfa);const _0x52a7c0=_0x8d01c5,_0x292f14=process[_0xc25008(0xfd)]['BROWSERSTACK_LOG_LEVEL'],_0x3dfa73=Object[_0xc25008(0xef)](winston[_0xc25008(0x110)]['npm'][_0xc25008(0x114)]);if(_0x292f14&&_0x3dfa73[_0xc25008(0x10a)](_0x292f14[_0xc25008(0xea)]()))return _0x292f14[_0xc25008(0xea)]();return _0x52a7c0[_0xc25008(0xee)];},initialLogLevel=getInitialLogLevel(),a120_0x2257f0={};a120_0x2257f0[a120_0x331c47(0xce)]=a120_0x331c47(0xf5),a120_0x2257f0[a120_0x331c47(0xdd)]=initialLogLevel;const transports={'loggerConsole':new winston[(a120_0x331c47(0xdb))]['Console'](a120_0x2257f0),'loggerFile':new winston['transports'][(a120_0x331c47(0xf8))]({'filename':path[a120_0x331c47(0xda)](logDir,a120_0x331c47(0xeb)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a120_0x331c47(0xdb))]['File']({'filename':path['join'](logDir,a120_0x331c47(0xf3)),'level':a120_0x331c47(0x112)}),'debugCliLoggerFile':new winston[(a120_0x331c47(0xdb))][(a120_0x331c47(0xf8))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a120_0x331c47(0x112)}),'buildLinkTransport':new winston[(a120_0x331c47(0xdb))][(a120_0x331c47(0xf8))]({'filename':path['join'](logDir,'/usage.log'),'level':'silly'})},automationTransports={};process[a120_0x331c47(0xfd)][a120_0x331c47(0xec)]===a120_0x331c47(0x10b)&&(automationTransports[a120_0x331c47(0x104)]=new winston['transports'][(a120_0x331c47(0xf8))]({'filename':path[a120_0x331c47(0xda)](logDir,a120_0x331c47(0x11a)),'level':a120_0x331c47(0x112)}));transports[a120_0x331c47(0x11e)]['on'](a120_0x331c47(0x116),_0x43e129=>{const _0xa7d5a4=a120_0x331c47,_0x186069={};_0x186069[_0xa7d5a4(0xcf)]=function(_0x3028a5,_0x4cfac4){return _0x3028a5===_0x4cfac4;},_0x186069[_0xa7d5a4(0xd8)]=_0xa7d5a4(0x108),_0x186069[_0xa7d5a4(0x10f)]='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x5132f1=_0x186069;if(_0x5132f1[_0xa7d5a4(0xcf)](_0x43e129[_0xa7d5a4(0xe5)],_0x5132f1['pmYhw'])){console[_0xa7d5a4(0x105)](_0x5132f1['TUTHm'],_0x43e129[_0xa7d5a4(0x106)]);return;}throw _0x43e129;});const a120_0x78d858={};a120_0x78d858['format']=a120_0x331c47(0xe8);const a120_0x41fdd4={};a120_0x41fdd4[a120_0x331c47(0xdd)]=!![];const winstonLoggerParams={'format':winston[a120_0x331c47(0x102)]['combine'](winston[a120_0x331c47(0x102)][a120_0x331c47(0xfc)](a120_0x78d858),winston[a120_0x331c47(0x102)]['colorize'](a120_0x41fdd4),winston[a120_0x331c47(0x102)]['printf'](_0x2d9b50=>_0x2d9b50[a120_0x331c47(0xfc)]+a120_0x331c47(0x11c)+_0x2d9b50[a120_0x331c47(0xdd)]+':\x20'+_0x2d9b50[a120_0x331c47(0x106)])),'transports':[transports[a120_0x331c47(0x11e)]]},a120_0x28b861={};a120_0x28b861[a120_0x331c47(0x102)]=a120_0x331c47(0xe8);function a120_0x1a17(_0xfdcdca,_0x44b3fe){const _0x2d76e1=a120_0x2d76();return a120_0x1a17=function(_0x1a17ab,_0x5f3e08){_0x1a17ab=_0x1a17ab-0xcc;let _0x353812=_0x2d76e1[_0x1a17ab];return _0x353812;},a120_0x1a17(_0xfdcdca,_0x44b3fe);}const a120_0x4b6821={};a120_0x4b6821['level']=!![];const winstonFileLoggerParams={'format':winston['format'][a120_0x331c47(0xe7)](winston['format'][a120_0x331c47(0xfc)](a120_0x28b861),winston[a120_0x331c47(0x102)][a120_0x331c47(0x100)](a120_0x4b6821),winston['format'][a120_0x331c47(0x118)](_0x232e6a=>_0x232e6a[a120_0x331c47(0xdd)]+':\x20'+_0x232e6a[a120_0x331c47(0x106)])),'transports':[]},a120_0x500b79={};a120_0x500b79[a120_0x331c47(0x102)]=a120_0x331c47(0xe8);function a120_0x2d76(){const _0x5cfc1b=['fileLogger','code','dSZpj','combine','YYYY-MM-DD\x20HH:mm:ss','accessKey','toLowerCase','/usage.log','BROWSERSTACK_AUTOMATION_LOGS','http','cPDvh','keys','OSsqr','135ZAjWGn','createLogger','/usage-debug.log','buildLogger','console.info','getLogDir','529190HHfYQt','File','debugLoggerFile','info','BROWSERSTACK_INTERNAL_LOG_DIR','timestamp','env','path','31840ywJULp','colorize','add','format','364231YZrfGO','automationLoggerFile','log','message','XEzOE','EPIPE','779229XUbyFv','includes','true','length','mkdirSync','jKuzP','TUTHm','config','filter','silly','80VNasAq','levels','24pvpQMR','error','string','printf','1237803PzNAng','automation.log','874656RrIEQt','\x20-\x20','replace','loggerConsole','392245LTVBmL','initialize','nLoUA','name','cvcsI','debugCliLoggerFile','DePQD','TnMPA','automationLogger','Console','winstonLogger','existsSync','logDir','pmYhw','debug','join','transports','loggerFile','level','warn','userName','2KzmBAF','map','winston','remove'];a120_0x2d76=function(){return _0x5cfc1b;};return a120_0x2d76();}const a120_0x2a6f7f={};a120_0x2a6f7f[a120_0x331c47(0xdd)]=!![];const a120_0x43b6d4={};a120_0x43b6d4['level']=a120_0x331c47(0x112);const BuildLoggerParams={'format':winston[a120_0x331c47(0x102)][a120_0x331c47(0xe7)](winston[a120_0x331c47(0x102)][a120_0x331c47(0xfc)](a120_0x500b79),winston['format'][a120_0x331c47(0x100)](a120_0x2a6f7f),winston[a120_0x331c47(0x102)][a120_0x331c47(0x118)](_0x3874f3=>_0x3874f3[a120_0x331c47(0xfc)]+a120_0x331c47(0x11c)+_0x3874f3[a120_0x331c47(0xdd)]+':\x20'+_0x3874f3[a120_0x331c47(0x106)])),'transports':[transports['buildLinkTransport'],new winston[(a120_0x331c47(0xdb))][(a120_0x331c47(0xd4))](a120_0x43b6d4)]},a120_0x35baee={};a120_0x35baee[a120_0x331c47(0xed)]=()=>{},a120_0x35baee[a120_0x331c47(0xfa)]=()=>{},a120_0x35baee[a120_0x331c47(0xde)]=()=>{},a120_0x35baee[a120_0x331c47(0x116)]=()=>{},a120_0x35baee[a120_0x331c47(0xd9)]=()=>{},a120_0x35baee[a120_0x331c47(0x112)]=()=>{},exports[a120_0x331c47(0xd3)]=process[a120_0x331c47(0xfd)][a120_0x331c47(0xec)]===a120_0x331c47(0x10b)?winston[a120_0x331c47(0xf2)]({'format':winston[a120_0x331c47(0x102)][a120_0x331c47(0xe7)](winston[a120_0x331c47(0x102)]['uncolorize'](),winston[a120_0x331c47(0x102)]['timestamp'](),logFormat(),winston[a120_0x331c47(0x102)][a120_0x331c47(0x118)](_0x340cf9=>_0x340cf9[a120_0x331c47(0xdd)]+':\x20'+_0x340cf9['message'])),'transports':[automationTransports['automationLoggerFile']]}):a120_0x35baee;const initialize=()=>{const _0xf6dbef=a120_0x331c47,_0x35d750={};_0x35d750[_0xf6dbef(0x107)]=_0xf6dbef(0x112);const _0x5aa1f1=_0x35d750,_0x53420f=transports[_0xf6dbef(0x11e)][_0xf6dbef(0xdd)]||initialLogLevel;transports[_0xf6dbef(0xdc)]&&(exports[_0xf6dbef(0xd5)]['remove'](transports[_0xf6dbef(0xdc)]),exports[_0xf6dbef(0xe4)]['remove'](transports[_0xf6dbef(0xdc)])),transports[_0xf6dbef(0xf9)]&&(exports[_0xf6dbef(0xd5)][_0xf6dbef(0xe3)](transports[_0xf6dbef(0xf9)]),exports[_0xf6dbef(0xe4)][_0xf6dbef(0xe3)](transports[_0xf6dbef(0xf9)])),transports['loggerFile']=new winston['transports'][(_0xf6dbef(0xf8))]({'filename':path[_0xf6dbef(0xda)](exports[_0xf6dbef(0xd7)],LOG_FILE_NAME),'level':_0x53420f}),transports[_0xf6dbef(0xf9)]=new winston[(_0xf6dbef(0xdb))][(_0xf6dbef(0xf8))]({'filename':path[_0xf6dbef(0xda)](exports[_0xf6dbef(0xd7)],DEBUG_LOG_FILE_NAME),'level':_0x5aa1f1[_0xf6dbef(0x107)]}),transports[_0xf6dbef(0xd0)]=new winston[(_0xf6dbef(0xdb))][(_0xf6dbef(0xf8))]({'filename':path['join'](exports[_0xf6dbef(0xd7)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x5aa1f1['XEzOE']}),exports[_0xf6dbef(0xd5)][_0xf6dbef(0x101)](transports[_0xf6dbef(0xdc)]),exports[_0xf6dbef(0xd5)]['add'](transports[_0xf6dbef(0xf9)]),exports[_0xf6dbef(0xe4)][_0xf6dbef(0x101)](transports['loggerFile']),exports['fileLogger'][_0xf6dbef(0x101)](transports[_0xf6dbef(0xf9)]);};exports[a120_0x331c47(0xd5)]=new winston[(a120_0x331c47(0xf2))](winstonLoggerParams),exports['fileLogger']=new winston[(a120_0x331c47(0xf2))](winstonFileLoggerParams),exports[a120_0x331c47(0xf4)]=new winston[(a120_0x331c47(0xf2))](BuildLoggerParams),exports[a120_0x331c47(0xd7)]=logDir,exports[a120_0x331c47(0xf6)]=()=>{const _0x5eabee=a120_0x331c47;return exports[_0x5eabee(0xd7)];},exports[a120_0x331c47(0xdb)]=transports,exports[a120_0x331c47(0xcc)]=initialize;logDir&&initialize();
|
|
1
|
+
const a120_0x56107f=a120_0x5655;(function(_0x811b98,_0x493aee){const _0x5be17b=a120_0x5655,_0x5791ed=_0x811b98();while(!![]){try{const _0x2700ab=-parseInt(_0x5be17b(0xe6))/0x1+-parseInt(_0x5be17b(0x10e))/0x2+-parseInt(_0x5be17b(0x102))/0x3*(-parseInt(_0x5be17b(0x107))/0x4)+-parseInt(_0x5be17b(0xdf))/0x5+parseInt(_0x5be17b(0xd6))/0x6+-parseInt(_0x5be17b(0x113))/0x7*(-parseInt(_0x5be17b(0x11c))/0x8)+-parseInt(_0x5be17b(0xff))/0x9*(-parseInt(_0x5be17b(0xdc))/0xa);if(_0x2700ab===_0x493aee)break;else _0x5791ed['push'](_0x5791ed['shift']());}catch(_0x22a463){_0x5791ed['push'](_0x5791ed['shift']());}}}(a120_0x2ba8,0xe2ad4));const winston=require(a120_0x56107f(0x11a)),path=require(a120_0x56107f(0x105)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a120_0x56107f(0x11b)),tempLogDir=a120_0x56107f(0xf7);let redactRegex=null,lastConfigHash='';const logFormat=winston[a120_0x56107f(0xfd)](_0x6ae49f=>{const _0x26e73c=a120_0x56107f,_0x3bc2f0={};_0x3bc2f0[_0x26e73c(0x11d)]=function(_0x1887b7,_0x4c646b){return _0x1887b7!==_0x4c646b;},_0x3bc2f0[_0x26e73c(0xe1)]=_0x26e73c(0xd8),_0x3bc2f0[_0x26e73c(0xf6)]=function(_0x5dce8d,_0x4e1280){return _0x5dce8d+_0x4e1280;},_0x3bc2f0['yLnuZ']=function(_0x34b8ff,_0x3fb80f){return _0x34b8ff!==_0x3fb80f;},_0x3bc2f0['LEeIm']=function(_0x1e257f,_0x1ff870){return _0x1e257f>_0x1ff870;},_0x3bc2f0[_0x26e73c(0x123)]=_0x26e73c(0xfb);const _0x302fe2=_0x3bc2f0;_0x302fe2[_0x26e73c(0x11d)](typeof _0x6ae49f[_0x26e73c(0xda)],_0x302fe2[_0x26e73c(0xe1)])&&(_0x6ae49f[_0x26e73c(0xda)]=JSON[_0x26e73c(0x118)](_0x6ae49f[_0x26e73c(0xda)]));const _0x1daa35=global[_0x26e73c(0x110)]&&global['config'][_0x26e73c(0xf0)]||'',_0x29e7a6=global['config']&&global[_0x26e73c(0x110)]['accessKey']||'',_0x5643bc=_0x302fe2[_0x26e73c(0xf6)](_0x302fe2[_0x26e73c(0xf6)](_0x1daa35,'|'),_0x29e7a6);if(_0x302fe2['yLnuZ'](_0x5643bc,lastConfigHash)){lastConfigHash=_0x5643bc;const _0x367bc8=[_0x1daa35,_0x29e7a6][_0x26e73c(0x111)](Boolean);if(_0x302fe2[_0x26e73c(0x121)](_0x367bc8[_0x26e73c(0x10a)],0x0)){const _0x41117a=_0x367bc8[_0x26e73c(0xf1)](_0x517885=>_0x517885[_0x26e73c(0xf3)](/[.*+?^${}()|[\]\\]/g,_0x26e73c(0xe3)))[_0x26e73c(0x101)]('|');redactRegex=new RegExp(_0x41117a,'g');}else redactRegex=null;}return redactRegex&&(_0x6ae49f[_0x26e73c(0xda)]=_0x6ae49f['message'][_0x26e73c(0xf3)](redactRegex,_0x302fe2['IarNt'])),_0x6ae49f;}),fetchLogDir=()=>{const _0x51be10=a120_0x56107f;if(process[_0x51be10(0x120)][_0x51be10(0x119)])return process[_0x51be10(0x120)][_0x51be10(0x119)];else!fs[_0x51be10(0x10b)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x352ae6=a120_0x56107f,_0x47efbe={};_0x47efbe[_0x352ae6(0xe2)]=_0x352ae6(0xd5);const _0x2e56dd=_0x47efbe,_0x3404d7=process[_0x352ae6(0x120)][_0x352ae6(0xe4)],_0x487871=Object['keys'](winston['config'][_0x352ae6(0x11f)][_0x352ae6(0x115)]);if(_0x3404d7&&_0x487871[_0x352ae6(0xe8)](_0x3404d7['toLowerCase']()))return _0x3404d7['toLowerCase']();return _0x2e56dd['Gkxgr'];},initialLogLevel=getInitialLogLevel(),a120_0x484dba={};a120_0x484dba['name']=a120_0x56107f(0x108),a120_0x484dba[a120_0x56107f(0xf9)]=initialLogLevel;const transports={'loggerConsole':new winston[(a120_0x56107f(0x125))][(a120_0x56107f(0x126))](a120_0x484dba),'loggerFile':new winston[(a120_0x56107f(0x125))][(a120_0x56107f(0x11e))]({'filename':path[a120_0x56107f(0x101)](logDir,a120_0x56107f(0x106)),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a120_0x56107f(0x11e))]({'filename':path[a120_0x56107f(0x101)](logDir,a120_0x56107f(0x10c)),'level':a120_0x56107f(0xf5)}),'debugCliLoggerFile':new winston[(a120_0x56107f(0x125))][(a120_0x56107f(0x11e))]({'filename':path[a120_0x56107f(0x101)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a120_0x56107f(0xf5)}),'buildLinkTransport':new winston[(a120_0x56107f(0x125))][(a120_0x56107f(0x11e))]({'filename':path[a120_0x56107f(0x101)](logDir,a120_0x56107f(0x106)),'level':a120_0x56107f(0xf5)})},automationTransports={};process[a120_0x56107f(0x120)][a120_0x56107f(0xf4)]===a120_0x56107f(0xea)&&(automationTransports[a120_0x56107f(0xe9)]=new winston[(a120_0x56107f(0x125))][(a120_0x56107f(0x11e))]({'filename':path[a120_0x56107f(0x101)](logDir,a120_0x56107f(0xd9)),'level':'silly'}));transports[a120_0x56107f(0xed)]['on'](a120_0x56107f(0xd7),_0x1740ed=>{const _0x187d37=a120_0x56107f,_0x1431cf={};_0x1431cf[_0x187d37(0x10f)]=function(_0x276586,_0x5c6ca4){return _0x276586===_0x5c6ca4;},_0x1431cf[_0x187d37(0xe7)]=_0x187d37(0x124),_0x1431cf['Qaurr']='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x3259c5=_0x1431cf;if(_0x3259c5['GNHOb'](_0x1740ed[_0x187d37(0xfa)],_0x3259c5[_0x187d37(0xe7)])){console[_0x187d37(0xf7)](_0x3259c5[_0x187d37(0x117)],_0x1740ed[_0x187d37(0xda)]);return;}throw _0x1740ed;});const a120_0xfe3828={};a120_0xfe3828[a120_0x56107f(0xfd)]=a120_0x56107f(0x10d);const a120_0x2d7fe9={};a120_0x2d7fe9['level']=!![];const winstonLoggerParams={'format':winston[a120_0x56107f(0xfd)][a120_0x56107f(0x103)](winston[a120_0x56107f(0xfd)]['timestamp'](a120_0xfe3828),winston['format'][a120_0x56107f(0x114)](a120_0x2d7fe9),winston[a120_0x56107f(0xfd)][a120_0x56107f(0xee)](_0x34f08f=>_0x34f08f['timestamp']+a120_0x56107f(0x116)+_0x34f08f[a120_0x56107f(0xf9)]+':\x20'+_0x34f08f[a120_0x56107f(0xda)])),'transports':[transports['loggerConsole']]},a120_0x117af4={};a120_0x117af4[a120_0x56107f(0xfd)]=a120_0x56107f(0x10d);const a120_0x3cd402={};a120_0x3cd402[a120_0x56107f(0xf9)]=!![];const winstonFileLoggerParams={'format':winston[a120_0x56107f(0xfd)][a120_0x56107f(0x103)](winston[a120_0x56107f(0xfd)]['timestamp'](a120_0x117af4),winston['format'][a120_0x56107f(0x114)](a120_0x3cd402),winston['format'][a120_0x56107f(0xee)](_0x25bffc=>_0x25bffc[a120_0x56107f(0xf9)]+':\x20'+_0x25bffc[a120_0x56107f(0xda)])),'transports':[]},a120_0x4f2dce={};a120_0x4f2dce[a120_0x56107f(0xfd)]='YYYY-MM-DD\x20HH:mm:ss';const a120_0x49e81b={};a120_0x49e81b[a120_0x56107f(0xf9)]=!![];function a120_0x2ba8(){const _0x248ea0=['http','loggerConsole','printf','logDir','userName','map','timestamp','replace','BROWSERSTACK_AUTOMATION_LOGS','silly','ApSKI','log','loggerFile','level','code','[REDACTED]','winstonLogger','format','kJcLJ','11392110knlsrF','debugLoggerFile','join','21uwoclh','combine','buildLogger','path','/usage.log','50756eiPXQi','console.info','initialize','length','existsSync','/usage-debug.log','YYYY-MM-DD\x20HH:mm:ss','2486314LmanoZ','GNHOb','config','filter','debugCliLoggerFile','974078wUpPlM','colorize','levels','\x20-\x20','Qaurr','stringify','BROWSERSTACK_INTERNAL_LOG_DIR','winston','../bin/utils/constants','24Lirksv','PwgRo','File','npm','env','LEeIm','add','IarNt','EPIPE','transports','Console','info','3237234qTzLiy','error','string','automation.log','message','createLogger','30feiIba','uncolorize','debug','5102620IliwkD','fileLogger','JPdOi','Gkxgr','\x5c$&','BROWSERSTACK_LOG_LEVEL','remove','1651045rpdxXD','uGFFT','includes','automationLoggerFile','true','automationLogger'];a120_0x2ba8=function(){return _0x248ea0;};return a120_0x2ba8();}const a120_0x1b29fa={};a120_0x1b29fa['level']=a120_0x56107f(0xf5);function a120_0x5655(_0x163188,_0x38324d){const _0x2ba8e3=a120_0x2ba8();return a120_0x5655=function(_0x565538,_0x4b20ce){_0x565538=_0x565538-0xd5;let _0x24ae2a=_0x2ba8e3[_0x565538];return _0x24ae2a;},a120_0x5655(_0x163188,_0x38324d);}const BuildLoggerParams={'format':winston[a120_0x56107f(0xfd)][a120_0x56107f(0x103)](winston[a120_0x56107f(0xfd)][a120_0x56107f(0xf2)](a120_0x4f2dce),winston[a120_0x56107f(0xfd)][a120_0x56107f(0x114)](a120_0x49e81b),winston[a120_0x56107f(0xfd)][a120_0x56107f(0xee)](_0x5b0a6a=>_0x5b0a6a[a120_0x56107f(0xf2)]+a120_0x56107f(0x116)+_0x5b0a6a['level']+':\x20'+_0x5b0a6a[a120_0x56107f(0xda)])),'transports':[transports['buildLinkTransport'],new winston[(a120_0x56107f(0x125))]['Console'](a120_0x1b29fa)]},a120_0x5de24e={};a120_0x5de24e[a120_0x56107f(0xec)]=()=>{},a120_0x5de24e['info']=()=>{},a120_0x5de24e['warn']=()=>{},a120_0x5de24e['error']=()=>{},a120_0x5de24e[a120_0x56107f(0xde)]=()=>{},a120_0x5de24e[a120_0x56107f(0xf5)]=()=>{},exports[a120_0x56107f(0xeb)]=process[a120_0x56107f(0x120)][a120_0x56107f(0xf4)]==='true'?winston['createLogger']({'format':winston['format']['combine'](winston[a120_0x56107f(0xfd)][a120_0x56107f(0xdd)](),winston[a120_0x56107f(0xfd)][a120_0x56107f(0xf2)](),logFormat(),winston[a120_0x56107f(0xfd)]['printf'](_0x39bb51=>_0x39bb51['level']+':\x20'+_0x39bb51[a120_0x56107f(0xda)])),'transports':[automationTransports[a120_0x56107f(0xe9)]]}):a120_0x5de24e;const initialize=()=>{const _0x532a18=a120_0x56107f,_0x2f45c1={};_0x2f45c1[_0x532a18(0xfe)]=_0x532a18(0xf5);const _0x285ed2=_0x2f45c1,_0x18b4c8=transports[_0x532a18(0xed)][_0x532a18(0xf9)]||initialLogLevel;transports['loggerFile']&&(exports[_0x532a18(0xfc)]['remove'](transports[_0x532a18(0xf8)]),exports[_0x532a18(0xe0)][_0x532a18(0xe5)](transports[_0x532a18(0xf8)])),transports['debugLoggerFile']&&(exports['winstonLogger'][_0x532a18(0xe5)](transports[_0x532a18(0x100)]),exports['fileLogger'][_0x532a18(0xe5)](transports['debugLoggerFile'])),transports[_0x532a18(0xf8)]=new winston[(_0x532a18(0x125))][(_0x532a18(0x11e))]({'filename':path[_0x532a18(0x101)](exports['logDir'],LOG_FILE_NAME),'level':_0x18b4c8}),transports[_0x532a18(0x100)]=new winston['transports'][(_0x532a18(0x11e))]({'filename':path[_0x532a18(0x101)](exports[_0x532a18(0xef)],DEBUG_LOG_FILE_NAME),'level':_0x285ed2[_0x532a18(0xfe)]}),transports[_0x532a18(0x112)]=new winston[(_0x532a18(0x125))][(_0x532a18(0x11e))]({'filename':path[_0x532a18(0x101)](exports[_0x532a18(0xef)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x285ed2['kJcLJ']}),exports[_0x532a18(0xfc)]['add'](transports[_0x532a18(0xf8)]),exports['winstonLogger'][_0x532a18(0x122)](transports['debugLoggerFile']),exports[_0x532a18(0xe0)][_0x532a18(0x122)](transports[_0x532a18(0xf8)]),exports['fileLogger'][_0x532a18(0x122)](transports[_0x532a18(0x100)]);};exports['winstonLogger']=new winston[(a120_0x56107f(0xdb))](winstonLoggerParams),exports[a120_0x56107f(0xe0)]=new winston[(a120_0x56107f(0xdb))](winstonFileLoggerParams),exports[a120_0x56107f(0x104)]=new winston[(a120_0x56107f(0xdb))](BuildLoggerParams),exports['logDir']=logDir,exports['getLogDir']=()=>{const _0x305736=a120_0x56107f;return exports[_0x305736(0xef)];},exports[a120_0x56107f(0x125)]=transports,exports[a120_0x56107f(0x109)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0xef4d(_0x59afce,_0x9a0217){const _0x51a350=a121_0x51a3();return a121_0xef4d=function(_0xef4db1,_0x16c859){_0xef4db1=_0xef4db1-0x1c5;let _0x16842e=_0x51a350[_0xef4db1];return _0x16842e;},a121_0xef4d(_0x59afce,_0x9a0217);}function a121_0x51a3(){const _0x18e1e1=['fZpro','identifier','IXQoU','./helper','505iCITHc','The\x20metadata\x20object\x20is\x20not\x20valid.','length','testMeta-','OndZy','testMeta','warn','./logger','./globals','qCXaN','2787280dCDUqv','18XqVEuf','34971iwMdHA','getGlobal','80rthAKN','MVUgN','lcnc','78665sZPzsA','7338YKJMrz','setGlobal','4089526xoLTOx','TBTlT','getCentralUser','string','set','509624hWzJav','14648gTgGnb','DTJNp'];a121_0x51a3=function(){return _0x18e1e1;};return a121_0x51a3();}const a121_0x12d882=a121_0xef4d;(function(_0x40cb03,_0x12593a){const _0x3dd7c0=a121_0xef4d,_0x11a6b2=_0x40cb03();while(!![]){try{const _0x367423=-parseInt(_0x3dd7c0(0x1e3))/0x1+parseInt(_0x3dd7c0(0x1cb))/0x2+-parseInt(_0x3dd7c0(0x1de))/0x3*(-parseInt(_0x3dd7c0(0x1e0))/0x4)+-parseInt(_0x3dd7c0(0x1d2))/0x5*(parseInt(_0x3dd7c0(0x1e4))/0x6)+parseInt(_0x3dd7c0(0x1c6))/0x7+-parseInt(_0x3dd7c0(0x1cc))/0x8+-parseInt(_0x3dd7c0(0x1dd))/0x9*(parseInt(_0x3dd7c0(0x1dc))/0xa);if(_0x367423===_0x12593a)break;else _0x11a6b2['push'](_0x11a6b2['shift']());}catch(_0x30e2e7){_0x11a6b2['push'](_0x11a6b2['shift']());}}}(a121_0x51a3,0x4bda7));const globals=require(a121_0x12d882(0x1da)),helper=require(a121_0x12d882(0x1d1)),logger=require(a121_0x12d882(0x1d9))['winstonLogger'];module['exports']=class TestMetadata{static[a121_0x12d882(0x1ca)](_0x167d7e={}){const _0x3efa43=a121_0x12d882,_0x5b4c04={};_0x5b4c04['qCXaN']='testRunUUID',_0x5b4c04[_0x3efa43(0x1d6)]=function(_0x5bc4ce,_0x33ae74){return _0x5bc4ce===_0x33ae74;},_0x5b4c04[_0x3efa43(0x1e1)]=_0x3efa43(0x1c9),_0x5b4c04[_0x3efa43(0x1d0)]=function(_0x22ea28,_0x3dab75){return _0x22ea28<=_0x3dab75;},_0x5b4c04['fZpro']=_0x3efa43(0x1d7),_0x5b4c04[_0x3efa43(0x1cd)]=_0x3efa43(0x1d3);const _0x8c2c3d=_0x5b4c04,_0x269820=globals[_0x3efa43(0x1df)](_0x8c2c3d[_0x3efa43(0x1db)]),_0x3b6c43=_0x167d7e[_0x3efa43(0x1cf)];helper[_0x3efa43(0x1c8)]()['lcnc']&&(_0x8c2c3d[_0x3efa43(0x1d6)](typeof _0x3b6c43,_0x8c2c3d[_0x3efa43(0x1e1)])&&_0x8c2c3d[_0x3efa43(0x1d0)](_0x3b6c43[_0x3efa43(0x1d4)],0x28)?_0x269820?globals[_0x3efa43(0x1c5)](_0x3efa43(0x1d5)+_0x269820,_0x167d7e):globals[_0x3efa43(0x1c5)](_0x8c2c3d[_0x3efa43(0x1ce)],_0x167d7e):logger[_0x3efa43(0x1d8)](_0x8c2c3d[_0x3efa43(0x1cd)]));}static['get'](_0x52396f){const _0x596d17=a121_0x12d882,_0x447b90={};_0x447b90[_0x596d17(0x1c7)]=_0x596d17(0x1d7);const _0x493c88=_0x447b90;if(helper[_0x596d17(0x1c8)]()[_0x596d17(0x1e2)])return globals[_0x596d17(0x1df)](_0x596d17(0x1d5)+_0x52396f)||globals[_0x596d17(0x1df)](_0x493c88[_0x596d17(0x1c7)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122_0x315441=a122_0x3f49;(function(_0x153127,_0x11bf67){const _0x8a109e=a122_0x3f49,_0x939bdc=_0x153127();while(!![]){try{const _0x2dbf8d=parseInt(_0x8a109e(0x212))/0x1+parseInt(_0x8a109e(0x1ea))/0x2+-parseInt(_0x8a109e(0x201))/0x3+-parseInt(_0x8a109e(0x1f9))/0x4*(-parseInt(_0x8a109e(0x20d))/0x5)+parseInt(_0x8a109e(0x1b5))/0x6+-parseInt(_0x8a109e(0x1dc))/0x7+-parseInt(_0x8a109e(0x1da))/0x8;if(_0x2dbf8d===_0x11bf67)break;else _0x939bdc['push'](_0x939bdc['shift']());}catch(_0xf07aa1){_0x939bdc['push'](_0x939bdc['shift']());}}}(a122_0x325b,0x849af));function a122_0x3f49(_0x1a8398,_0x16502f){const _0x325b66=a122_0x325b();return a122_0x3f49=function(_0x3f49fe,_0x3271bb){_0x3f49fe=_0x3f49fe-0x1b1;let _0x3721a4=_0x325b66[_0x3f49fe];return _0x3721a4;},a122_0x3f49(_0x1a8398,_0x16502f);}function a122_0x325b(){const _0x5be806=['name','NUDGE_LOCAL_ERRORS','nestedKeyValue','message','AUTOMATION_LOG_COMMANDS','error','1761510VCIszf','response','aiHeal:findElementSuccess','gxFMU','KeGYC','YaRqy','executeAsyncScript','aiHeal:findElementFailure','findElement\x20command\x20failed\x20with\x20','getNudgeLocalNotSetError','findElement\x20command\x20failed\x20with\x20cssPath:\x20','pFWeI','body','get','patchExecute','11732FQouhT','Successfully\x20healed\x20command\x20using\x20new\x20','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','css\x20selector','POST_EXECUTE','DLLJL','../bin/utils/constants','LIDnk','1337796BXRuZY','umqJo','browserstack.local','HIlZx','command','args','crPvZ','util','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','string','ippmQ','name_','675XmGaPD','./ai-sdk/aiSdkWrapper','nYwyb','url','JavascriptError','221392zeaEEW','./logger','rAlsR','CLxVg','measureWrapper','iIDRf','value','silly','initExecute','OrKGm','Error\x20in\x20handling\x20TCG\x20Auth:\x20','toISOString','script','5634888rftOFu','setTcgToken','qYYjl','SgYPv','getGlobal','getId','VZihx','VYvAK','klkfT','info',';\x20Trying\x20to\x20heal','xvQAu','handleSuccess','TOjFb','execute','overrideExecute','isSelfHealEnabled','skipHealingSuccess','using','DzIFF','Healing\x20failed\x20for\x20command\x20using\x20','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','yrOWP','Kzutc','DRSPo','local','find','AGbPA','aiHeal_isAuthenticated','debug','./performance/performance-tester','bstack:options','RwdVK','OkIcF','Wdktx','setTcgTokenStatus','QYmHS','5222456YJQevk','getTcgTokenStatus','5567520PdIgeG','getSession','bRevi','parameters','isBrowserstackInfra','./helper','parameters_','includes'];a122_0x325b=function(){return _0x5be806;};return a122_0x325b();}const {aiSdkWrapper}=require(a122_0x315441(0x20e)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a122_0x315441(0x1d3)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a122_0x315441(0x213)),helper=require(a122_0x315441(0x1e1)),constants=require(a122_0x315441(0x1ff)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a122_0x315441(0x208));exports[a122_0x315441(0x1c4)]=(_0x1b09d9,_0x40c732)=>{const _0x26d001=a122_0x315441,_0xb8450e={'Kzutc':_0x26d001(0x1d1),'EvMRU':'aiHeal:setToken','VZihx':function(_0x16b335){return _0x16b335();},'Wdktx':'aiSdk_defaultLogDataEnabled','LIDnk':function(_0x23acf6,_0x232bdd){return _0x23acf6===_0x232bdd;},'yrOWP':'findElement','bRevi':'aiHeal_isHealingEnabled','VYvAK':_0x26d001(0x1ec),'vKDyn':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','iIDRf':'NoSuchElementError','TOjFb':function(_0x18abb2,_0x24e5f8){return _0x18abb2===_0x24e5f8;},'ylTdV':_0x26d001(0x211),'OkIcF':_0x26d001(0x1fc),'DLLJL':function(_0x5236df,_0x2c3b9e){return _0x5236df+_0x2c3b9e;},'pFWeI':_0x26d001(0x1f4),'AGbPA':_0x26d001(0x1bf),'SgYPv':function(_0x3e9529,_0x1298bb){return _0x3e9529+_0x1298bb;},'OmThR':_0x26d001(0x1f2),'rAlsR':_0x26d001(0x1f1),'CLxVg':function(_0x237266,_0x22aa71){return _0x237266&&_0x22aa71;},'umqJo':_0x26d001(0x1ca),'YaRqy':function(_0x22c410,_0x4cfbd0){return _0x22c410+_0x4cfbd0;},'qYYjl':_0x26d001(0x1fa),'HIlZx':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','OrKGm':function(_0x2fb9c8,_0x27a3ee){return _0x2fb9c8+_0x27a3ee;},'RwdVK':_0x26d001(0x1c9),'XOfIg':_0x26d001(0x1f7),'KeGYC':'parameters_','DRSPo':_0x26d001(0x210),'FAfmS':_0x26d001(0x209),'ippmQ':_0x26d001(0x1f0),'gxFMU':'executeScript','XrtvS':function(_0x189c52,_0x5b8317){return _0x189c52===_0x5b8317;},'xvQAu':_0x26d001(0x20a),'klkfT':'capability','nYwyb':_0x26d001(0x203),'crPvZ':_0x26d001(0x1d4),'QYmHS':_0x26d001(0x1ce)},_0x48b6fd=_0x1b09d9[_0x26d001(0x1f8)]||(helper[_0x26d001(0x1e6)](_0x40c732,[_0xb8450e['klkfT'],_0xb8450e[_0x26d001(0x20f)]])||helper[_0x26d001(0x1e6)](_0x40c732,[_0xb8450e[_0x26d001(0x1bd)],_0xb8450e[_0x26d001(0x207)],_0xb8450e[_0x26d001(0x1d9)]]));if(!globals[_0x26d001(0x1b9)](_0xb8450e[_0x26d001(0x1cc)])&&!globals[_0x26d001(0x1b9)](_0xb8450e[_0x26d001(0x1de)])&&_0x48b6fd)return;_0x1b09d9[_0x26d001(0x1f8)]=!![],_0x1b09d9[_0x26d001(0x21a)]=_0x1b09d9[_0x26d001(0x1c3)],_0x1b09d9[_0x26d001(0x1c3)]=async _0x2dac6e=>{const _0x5f47c1=_0x26d001;try{const _0x2ba145={};_0x2ba145[_0x5f47c1(0x205)]=_0x2dac6e[_0x5f47c1(0x20c)],await PerformanceTester[_0x5f47c1(0x216)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x8261c0=_0x5f47c1,_0x3a1119={};_0x3a1119['DzIFF']=_0xb8450e[_0x8261c0(0x1cc)];const _0x3ec3a8=_0x3a1119;if(!commandRepository[_0x8261c0(0x1db)]()&&globals[_0x8261c0(0x1b9)](_0xb8450e[_0x8261c0(0x1cc)])){const _0x42a25d=PerformanceTester[_0x8261c0(0x216)](_0xb8450e['EvMRU'],async()=>{const _0x2e5a4d=_0x8261c0;try{commandRepository[_0x2e5a4d(0x1d8)](!![]),await aiSdkWrapper[_0x2e5a4d(0x1b6)]((await _0x1b09d9[_0x2e5a4d(0x1dd)]())['getId']());const _0x4aefe7=globals[_0x2e5a4d(0x1b9)](_0x3ec3a8[_0x2e5a4d(0x1c8)]);_0x4aefe7&&commandRepository['setAiSessionTimeStamp']((await _0x1b09d9['getSession']())[_0x2e5a4d(0x1ba)]());}catch(_0x5530c7){logger[_0x2e5a4d(0x1e9)](_0x2e5a4d(0x1b2)+_0x5530c7);}});await _0xb8450e[_0x8261c0(0x1bb)](_0x42a25d);}},_0x2ba145)();const _0x22e8cd=await _0x1b09d9['initExecute'](_0x2dac6e);try{if(_0xb8450e[_0x5f47c1(0x200)](_0x2dac6e[_0x5f47c1(0x20c)],_0xb8450e[_0x5f47c1(0x20b)])||_0xb8450e[_0x5f47c1(0x1c2)](_0x2dac6e['name_'],_0xb8450e[_0x5f47c1(0x1ed)])){const _0x56d8bf=_0x2dac6e[_0x5f47c1(0x1e2)]&&_0x2dac6e[_0x5f47c1(0x1e2)][_0x5f47c1(0x1b4)],_0x133f59=_0x2dac6e[_0x5f47c1(0x1e2)]&&_0x2dac6e[_0x5f47c1(0x1e2)][_0x5f47c1(0x206)],_0x1afb08=_0x133f59&&util['format']('%j',_0x133f59);if(_0x56d8bf&&_0xb8450e['XrtvS'](typeof _0x56d8bf,_0xb8450e[_0x5f47c1(0x1c0)])){const _0x50be5f=constants[_0x5f47c1(0x1e8)]['find'](_0x1f3897=>_0x56d8bf['includes'](_0x1f3897)||_0x1afb08&&_0x1afb08['includes'](_0x1f3897));if(_0x50be5f){const _0xa6a325={};_0xa6a325[_0x5f47c1(0x205)]=_0x50be5f,_0xa6a325[_0x5f47c1(0x1df)]=_0x133f59;const _0x177741={};_0x177741[_0x5f47c1(0x1f6)]=_0x22e8cd;const _0x544da3={};_0x544da3['request']=_0xa6a325,_0x544da3[_0x5f47c1(0x1eb)]=_0x177741,automationLogger[_0x5f47c1(0x219)]('['+new Date()[_0x5f47c1(0x1b3)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util['format']('%j',_0x544da3));}}}}catch(_0x24b861){logger[_0x5f47c1(0x219)](_0x5f47c1(0x1fb)+_0x24b861[_0x5f47c1(0x1e7)]);}return await PerformanceTester[_0x5f47c1(0x216)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x56dbb0=_0x5f47c1;if(!helper[_0x56dbb0(0x1e0)]()&&(commandRepository[_0x56dbb0(0x1c5)]()||globals[_0x56dbb0(0x1b9)](_0xb8450e[_0x56dbb0(0x1d7)]))&&_0xb8450e['LIDnk'](_0x2dac6e[_0x56dbb0(0x20c)],_0xb8450e[_0x56dbb0(0x1cb)])&&!_0x2dac6e['skipHealingSuccess']&&globals[_0x56dbb0(0x1b9)](_0xb8450e[_0x56dbb0(0x1cc)])&&globals['getGlobal'](_0xb8450e[_0x56dbb0(0x1de)])){const _0x43d596=new Date(),_0x9ee607=PerformanceTester[_0x56dbb0(0x216)](_0xb8450e[_0x56dbb0(0x1bc)],async()=>{const _0xd92bf1=_0x56dbb0;return await aiSdkWrapper[_0xd92bf1(0x1c1)](_0x40c732,_0x1b09d9,_0x2dac6e);});await _0xb8450e[_0x56dbb0(0x1bb)](_0x9ee607);}},{'command':_0x2dac6e[_0x5f47c1(0x20c)]})(),_0x22e8cd;}catch(_0x103e20){await PerformanceTester[_0x5f47c1(0x216)](PerformanceDriverEvents[_0x5f47c1(0x1fd)],async()=>{const _0x31fa64=_0x5f47c1;logger[_0x31fa64(0x1d2)](_0xb8450e['vKDyn']);try{if(!helper['isBrowserstackInfra']()&&(_0xb8450e[_0x31fa64(0x200)](_0x103e20[_0x31fa64(0x1e4)],_0xb8450e[_0x31fa64(0x217)])||_0xb8450e[_0x31fa64(0x1c2)](_0x103e20[_0x31fa64(0x1e4)],_0xb8450e['ylTdV']))&&_0xb8450e[_0x31fa64(0x1c2)](_0x2dac6e[_0x31fa64(0x20c)],_0xb8450e[_0x31fa64(0x1cb)])&&commandRepository[_0x31fa64(0x1c5)]()&&globals[_0x31fa64(0x1b9)](_0xb8450e[_0x31fa64(0x1cc)])&&globals[_0x31fa64(0x1b9)](_0xb8450e['bRevi'])){_0xb8450e[_0x31fa64(0x1c2)](_0x2dac6e[_0x31fa64(0x1e2)][_0x31fa64(0x1c7)],_0xb8450e[_0x31fa64(0x1d6)])?logger[_0x31fa64(0x1be)](_0xb8450e['DLLJL'](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1f5)],_0x2dac6e['parameters_'][_0x31fa64(0x218)]),_0xb8450e[_0x31fa64(0x1d0)])):logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1b8)](_0xb8450e['OmThR'],_0x2dac6e[_0x31fa64(0x1e2)]['using']),':\x20'),_0x2dac6e[_0x31fa64(0x1e2)][_0x31fa64(0x218)]),_0xb8450e[_0x31fa64(0x1d0)]));const _0x122284=PerformanceTester[_0x31fa64(0x216)](_0xb8450e[_0x31fa64(0x214)],async()=>{return await aiSdkWrapper['handleFailure'](_0x40c732,_0x1b09d9,_0x2dac6e);}),_0x857370=new Date(),{locatorType:_0x11219b,locatorValue:_0xb321c6,commandHealed:_0x9e78c8}=await _0xb8450e['VZihx'](_0x122284);if(_0xb8450e[_0x31fa64(0x215)](_0x11219b,_0xb321c6)){_0x2dac6e['parameters_'][_0x31fa64(0x1c7)]=_0x11219b,_0x2dac6e['parameters_'][_0x31fa64(0x218)]=_0xb321c6,_0x2dac6e[_0x31fa64(0x1c6)]=!![];const _0xb17154=_0x1b09d9['execute'](_0x2dac6e);return _0xb8450e[_0x31fa64(0x200)](_0x11219b,_0xb8450e[_0x31fa64(0x1d6)])?logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x202)],_0xb321c6)):logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1ef)](_0xb8450e['DLLJL'](_0xb8450e['DLLJL'](_0xb8450e[_0x31fa64(0x1b7)],_0x11219b),':\x20'),_0xb321c6)),_0xb17154;}else!_0x9e78c8&&(_0xb8450e[_0x31fa64(0x1c2)](_0x11219b,_0xb8450e['OkIcF'])?logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x204)],_0x2dac6e['parameters_'][_0x31fa64(0x218)])):logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1b1)](_0xb8450e[_0x31fa64(0x1b1)](_0xb8450e[_0x31fa64(0x1ef)](_0xb8450e[_0x31fa64(0x1d5)],_0x2dac6e[_0x31fa64(0x1e2)][_0x31fa64(0x1c7)]),':\x20'),_0x2dac6e['parameters_'][_0x31fa64(0x218)])));}!_0x48b6fd&&_0xb8450e[_0x31fa64(0x200)](_0x2dac6e[_0x31fa64(0x20c)],_0xb8450e['XOfIg'])&&helper[_0x31fa64(0x1e6)](_0x2dac6e,[_0xb8450e[_0x31fa64(0x1ee)],_0xb8450e[_0x31fa64(0x1cd)]])&&!!constants[_0x31fa64(0x1e5)][_0x31fa64(0x1cf)](_0x5e9650=>{const _0x117a79=_0x31fa64;return _0x103e20['toString']()[_0x117a79(0x1e3)](_0x5e9650);})&&helper[_0x31fa64(0x1f3)](_0x2dac6e['parameters_'][_0x31fa64(0x210)],!![]);}catch(_0x4735bb){logger[_0x31fa64(0x1d2)](_0xb8450e['FAfmS'],_0x4735bb);}},{'success':![],'failure':_0x103e20})();throw _0x103e20;}};};
|
|
1
|
+
function a122_0x2059(_0x303c78,_0x8ebda){const _0x4c4357=a122_0x4c43();return a122_0x2059=function(_0x2059c3,_0x15f063){_0x2059c3=_0x2059c3-0x144;let _0x54b049=_0x4c4357[_0x2059c3];return _0x54b049;},a122_0x2059(_0x303c78,_0x8ebda);}const a122_0x5bfd9b=a122_0x2059;(function(_0x28dddb,_0x1cc997){const _0x283778=a122_0x2059,_0x261ada=_0x28dddb();while(!![]){try{const _0x5321c9=-parseInt(_0x283778(0x161))/0x1*(-parseInt(_0x283778(0x196))/0x2)+-parseInt(_0x283778(0x194))/0x3*(-parseInt(_0x283778(0x1a6))/0x4)+-parseInt(_0x283778(0x1a5))/0x5*(-parseInt(_0x283778(0x1a9))/0x6)+-parseInt(_0x283778(0x155))/0x7+-parseInt(_0x283778(0x195))/0x8*(-parseInt(_0x283778(0x1b5))/0x9)+parseInt(_0x283778(0x144))/0xa+parseInt(_0x283778(0x146))/0xb*(-parseInt(_0x283778(0x163))/0xc);if(_0x5321c9===_0x1cc997)break;else _0x261ada['push'](_0x261ada['shift']());}catch(_0x4f44c4){_0x261ada['push'](_0x261ada['shift']());}}}(a122_0x4c43,0xd90d4));const {aiSdkWrapper}=require(a122_0x5bfd9b(0x168)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a122_0x5bfd9b(0x157)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a122_0x5bfd9b(0x170)),helper=require(a122_0x5bfd9b(0x192)),constants=require(a122_0x5bfd9b(0x189)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a122_0x5bfd9b(0x18c));function a122_0x4c43(){const _0x1dfcf1=['toString','util','aiHeal_isHealingEnabled','][\x20SDK-AUTOMATION\x20]\x20','FtSNN','VpGVC','TTbIr','./helper','args','1940379gxeSzH','72tNwMdv','261654aDLmOG','body','css\x20selector','eNsme','Vndsx','getTcgTokenStatus','gWuko','SrUVR','toaXc','PRE_EXECUTE','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','Healing\x20failed\x20for\x20command\x20using\x20','xenXV','response','overrideExecute','895315kUSynq','8BnhkTj','zhHaj','gnVLT','6OvnqTF','isSelfHealEnabled','NSMzD','yrXmF','setAiSessionTimeStamp','WqhxO','NUDGE_LOCAL_ERRORS','QKkcI','kwUJg','cjehS','jgRdx','executeScript','660285JMFAvU','CMFHR','10295020WKfjIK','execute','294855VnpyFw','keMDy','ASnNO','fKIPV','aiHeal:setToken','patchExecute','brytU','name_','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','NOvXJ','OcEqf','gxgVB','zDGFM','info','get','2006368bSMJdD','includes','./performance/performance-tester','JMhLL','OddCC','Sennt','value','name','IIiHu','Successfully\x20healed\x20command\x20using\x20new\x20','capability','bstack:options','1PMVuDu','getSession','948ptuZmH','string','setTcgTokenStatus','format','VczpE','./ai-sdk/aiSdkWrapper','JavascriptError','iKqxa','findElement','nestedKeyValue','aiSdk_defaultLogDataEnabled','aiHeal:findElementFailure','measureWrapper','./logger','executeAsyncScript','parameters_','silly','message','skipHealingSuccess','utCbA','find','local','command','PNkKv','SMnlR','POST_EXECUTE','isBrowserstackInfra','handleFailure','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','HUwna','Cnpxo','initExecute','toISOString','using','AUTOMATION_LOG_COMMANDS','JCuDE','handleSuccess','getGlobal','../bin/utils/constants','getId'];a122_0x4c43=function(){return _0x1dfcf1;};return a122_0x4c43();}exports[a122_0x5bfd9b(0x1a4)]=(_0x1bdbca,_0x12e356)=>{const _0x510b52=a122_0x5bfd9b,_0x1f0429={'OddCC':'aiHeal_isAuthenticated','keMDy':_0x510b52(0x14a),'Cnpxo':function(_0x328b35){return _0x328b35();},'brytU':_0x510b52(0x17f),'gnVLT':function(_0x5f0564,_0xd96969){return _0x5f0564===_0xd96969;},'eNsme':'NoSuchElementError','Vndsx':_0x510b52(0x169),'jgRdx':_0x510b52(0x16b),'VpGVC':_0x510b52(0x18d),'iKqxa':_0x510b52(0x198),'CMFHR':function(_0x319f3a,_0xa8ecae){return _0x319f3a+_0xa8ecae;},'EvPcE':function(_0x1c4680,_0x3a7414){return _0x1c4680+_0x3a7414;},'toaXc':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','Sennt':';\x20Trying\x20to\x20heal','yrXmF':function(_0x3587db,_0x51d038){return _0x3587db+_0x51d038;},'AbwbS':'findElement\x20command\x20failed\x20with\x20','gWuko':_0x510b52(0x16e),'HUwna':function(_0xe9ad67,_0x2b3c9e){return _0xe9ad67&&_0x2b3c9e;},'xenXV':function(_0x26a76a,_0x1d4a8c){return _0x26a76a+_0x1d4a8c;},'obOUr':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','dveHD':function(_0x8d30a,_0x3e755e){return _0x8d30a+_0x3e755e;},'NSMzD':function(_0x65ca17,_0x510940){return _0x65ca17+_0x510940;},'nvrLJ':_0x510b52(0x15e),'cjehS':_0x510b52(0x1a0),'JCuDE':function(_0x609c40,_0x743edf){return _0x609c40+_0x743edf;},'NOvXJ':_0x510b52(0x1a1),'FtSNN':function(_0x38b716,_0x14c519){return _0x38b716===_0x14c519;},'VczpE':_0x510b52(0x154),'QKkcI':'parameters_','utCbA':'url','ZVmaN':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','vmRqU':_0x510b52(0x16d),'oxvxn':'aiHeal:findElementSuccess','SrUVR':function(_0x690309){return _0x690309();},'rpAGc':_0x510b52(0x171),'gxgVB':_0x510b52(0x1b4),'OcEqf':function(_0x51bb6d,_0x627651){return _0x51bb6d===_0x627651;},'JMhLL':_0x510b52(0x164),'zDGFM':_0x510b52(0x15f),'kwUJg':'browserstack.local','IIiHu':_0x510b52(0x160),'zhHaj':_0x510b52(0x178)},_0x3f6aae=_0x1bdbca[_0x510b52(0x14b)]||(helper[_0x510b52(0x16c)](_0x12e356,[_0x1f0429[_0x510b52(0x152)],_0x1f0429[_0x510b52(0x1b1)]])||helper[_0x510b52(0x16c)](_0x12e356,[_0x1f0429['zDGFM'],_0x1f0429[_0x510b52(0x15d)],_0x1f0429[_0x510b52(0x1a7)]]));if(!globals[_0x510b52(0x188)](_0x1f0429[_0x510b52(0x159)])&&!globals[_0x510b52(0x188)](_0x1f0429[_0x510b52(0x190)])&&_0x3f6aae)return;_0x1bdbca['patchExecute']=!![],_0x1bdbca[_0x510b52(0x182)]=_0x1bdbca[_0x510b52(0x145)],_0x1bdbca[_0x510b52(0x145)]=async _0x20c6d4=>{const _0x59c267=_0x510b52,_0x545e57={'viCAf':_0x1f0429['vmRqU'],'SMnlR':function(_0x5b0b87,_0x4db6ad){return _0x1f0429['FtSNN'](_0x5b0b87,_0x4db6ad);},'TTbIr':_0x1f0429[_0x59c267(0x1b3)],'WCdmg':_0x1f0429[_0x59c267(0x159)],'WqhxO':_0x1f0429[_0x59c267(0x190)],'fKIPV':_0x1f0429['oxvxn'],'PNkKv':function(_0x3a8436){const _0x5e3bbd=_0x59c267;return _0x1f0429[_0x5e3bbd(0x19d)](_0x3a8436);}};try{const _0x4772a1={};_0x4772a1[_0x59c267(0x179)]=_0x20c6d4['name_'],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x59c267(0x19f)],async()=>{const _0x4d4204=_0x59c267,_0x3ed6ab={};_0x3ed6ab['ASnNO']=_0x1f0429[_0x4d4204(0x159)];const _0x2d77ce=_0x3ed6ab;if(!commandRepository[_0x4d4204(0x19b)]()&&globals[_0x4d4204(0x188)](_0x1f0429[_0x4d4204(0x159)])){const _0x297364=PerformanceTester[_0x4d4204(0x16f)](_0x1f0429[_0x4d4204(0x147)],async()=>{const _0x326671=_0x4d4204;try{commandRepository[_0x326671(0x165)](!![]),await aiSdkWrapper['setTcgToken']((await _0x1bdbca['getSession']())[_0x326671(0x18a)]());const _0x494cd7=globals[_0x326671(0x188)](_0x2d77ce[_0x326671(0x148)]);_0x494cd7&&commandRepository[_0x326671(0x1ad)]((await _0x1bdbca[_0x326671(0x162)]())[_0x326671(0x18a)]());}catch(_0x6fc66b){logger['error']('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x6fc66b);}});await _0x1f0429[_0x4d4204(0x181)](_0x297364);}},_0x4772a1)();const _0x44aac4=await _0x1bdbca[_0x59c267(0x182)](_0x20c6d4);try{if(_0x1f0429[_0x59c267(0x1a8)](_0x20c6d4[_0x59c267(0x14d)],_0x1f0429['rpAGc'])||_0x1f0429[_0x59c267(0x18f)](_0x20c6d4['name_'],_0x1f0429[_0x59c267(0x151)])){const _0x5c60ea=_0x20c6d4[_0x59c267(0x172)]&&_0x20c6d4[_0x59c267(0x172)]['script'],_0x5a0525=_0x20c6d4[_0x59c267(0x172)]&&_0x20c6d4[_0x59c267(0x172)][_0x59c267(0x193)],_0x43cdab=_0x5a0525&&util['format']('%j',_0x5a0525);if(_0x5c60ea&&_0x1f0429[_0x59c267(0x150)](typeof _0x5c60ea,_0x1f0429[_0x59c267(0x158)])){const _0x5d7aae=constants[_0x59c267(0x185)][_0x59c267(0x177)](_0x5596da=>_0x5c60ea['includes'](_0x5596da)||_0x43cdab&&_0x43cdab[_0x59c267(0x156)](_0x5596da));if(_0x5d7aae){const _0xf90a2b={};_0xf90a2b['command']=_0x5d7aae,_0xf90a2b['parameters']=_0x5a0525;const _0x57e4da={};_0x57e4da[_0x59c267(0x197)]=_0x44aac4;const _0x239dc8={};_0x239dc8['request']=_0xf90a2b,_0x239dc8[_0x59c267(0x1a3)]=_0x57e4da,automationLogger[_0x59c267(0x173)]('['+new Date()[_0x59c267(0x183)]()+_0x59c267(0x18e)+util[_0x59c267(0x166)]('%j',_0x239dc8));}}}}catch(_0x4f0fd1){logger['silly'](_0x59c267(0x14e)+_0x4f0fd1[_0x59c267(0x174)]);}return await PerformanceTester[_0x59c267(0x16f)](PerformanceDriverEvents[_0x59c267(0x17c)],async()=>{const _0x3461f2=_0x59c267;if(!helper[_0x3461f2(0x17d)]()&&(commandRepository[_0x3461f2(0x1aa)]()||globals['getGlobal'](_0x545e57['viCAf']))&&_0x545e57[_0x3461f2(0x17b)](_0x20c6d4[_0x3461f2(0x14d)],_0x545e57[_0x3461f2(0x191)])&&!_0x20c6d4['skipHealingSuccess']&&globals[_0x3461f2(0x188)](_0x545e57['WCdmg'])&&globals[_0x3461f2(0x188)](_0x545e57[_0x3461f2(0x1ae)])){const _0x2df08e=new Date(),_0x24882f=PerformanceTester[_0x3461f2(0x16f)](_0x545e57[_0x3461f2(0x149)],async()=>{const _0x46f802=_0x3461f2;return await aiSdkWrapper[_0x46f802(0x187)](_0x12e356,_0x1bdbca,_0x20c6d4);});await _0x545e57[_0x3461f2(0x17a)](_0x24882f);}},{'command':_0x20c6d4[_0x59c267(0x14d)]})(),_0x44aac4;}catch(_0x223e2e){await PerformanceTester[_0x59c267(0x16f)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x360db7=_0x59c267;logger['debug'](_0x1f0429[_0x360db7(0x14c)]);try{if(!helper[_0x360db7(0x17d)]()&&(_0x1f0429['gnVLT'](_0x223e2e['name'],_0x1f0429[_0x360db7(0x199)])||_0x1f0429['gnVLT'](_0x223e2e[_0x360db7(0x15c)],_0x1f0429[_0x360db7(0x19a)]))&&_0x1f0429[_0x360db7(0x1a8)](_0x20c6d4[_0x360db7(0x14d)],_0x1f0429[_0x360db7(0x1b3)])&&commandRepository[_0x360db7(0x1aa)]()&&globals[_0x360db7(0x188)](_0x1f0429[_0x360db7(0x159)])&&globals['getGlobal'](_0x1f0429[_0x360db7(0x190)])){_0x1f0429['gnVLT'](_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x184)],_0x1f0429[_0x360db7(0x16a)])?logger[_0x360db7(0x153)](_0x1f0429[_0x360db7(0x1b6)](_0x1f0429['EvPcE'](_0x1f0429[_0x360db7(0x19e)],_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x15b)]),_0x1f0429[_0x360db7(0x15a)])):logger[_0x360db7(0x153)](_0x1f0429[_0x360db7(0x1b6)](_0x1f0429[_0x360db7(0x1b6)](_0x1f0429[_0x360db7(0x1b6)](_0x1f0429[_0x360db7(0x1ac)](_0x1f0429['AbwbS'],_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x184)]),':\x20'),_0x20c6d4['parameters_'][_0x360db7(0x15b)]),_0x1f0429[_0x360db7(0x15a)]));const _0x203912=PerformanceTester[_0x360db7(0x16f)](_0x1f0429[_0x360db7(0x19c)],async()=>{const _0x404da2=_0x360db7;return await aiSdkWrapper[_0x404da2(0x17e)](_0x12e356,_0x1bdbca,_0x20c6d4);}),_0xaa5bd7=new Date(),{locatorType:_0x1a38c3,locatorValue:_0x531220,commandHealed:_0xabda47}=await _0x1f0429['Cnpxo'](_0x203912);if(_0x1f0429[_0x360db7(0x180)](_0x1a38c3,_0x531220)){_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x184)]=_0x1a38c3,_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x15b)]=_0x531220,_0x20c6d4[_0x360db7(0x175)]=!![];const _0x211611=_0x1bdbca[_0x360db7(0x145)](_0x20c6d4);return _0x1f0429['gnVLT'](_0x1a38c3,_0x1f0429['iKqxa'])?logger['info'](_0x1f0429[_0x360db7(0x1a2)](_0x1f0429['obOUr'],_0x531220)):logger[_0x360db7(0x153)](_0x1f0429['dveHD'](_0x1f0429['NSMzD'](_0x1f0429['yrXmF'](_0x1f0429['nvrLJ'],_0x1a38c3),':\x20'),_0x531220)),_0x211611;}else!_0xabda47&&(_0x1f0429[_0x360db7(0x1a8)](_0x1a38c3,_0x1f0429[_0x360db7(0x16a)])?logger[_0x360db7(0x153)](_0x1f0429[_0x360db7(0x1a2)](_0x1f0429[_0x360db7(0x1b2)],_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x15b)])):logger[_0x360db7(0x153)](_0x1f0429['JCuDE'](_0x1f0429[_0x360db7(0x186)](_0x1f0429[_0x360db7(0x1ab)](_0x1f0429[_0x360db7(0x14f)],_0x20c6d4[_0x360db7(0x172)]['using']),':\x20'),_0x20c6d4[_0x360db7(0x172)][_0x360db7(0x15b)])));}!_0x3f6aae&&_0x1f0429['FtSNN'](_0x20c6d4[_0x360db7(0x14d)],_0x1f0429[_0x360db7(0x167)])&&helper[_0x360db7(0x16c)](_0x20c6d4,[_0x1f0429[_0x360db7(0x1b0)],_0x1f0429[_0x360db7(0x176)]])&&!!constants[_0x360db7(0x1af)][_0x360db7(0x177)](_0x2c166d=>{const _0x45e64b=_0x360db7;return _0x223e2e[_0x45e64b(0x18b)]()[_0x45e64b(0x156)](_0x2c166d);})&&helper['getNudgeLocalNotSetError'](_0x20c6d4[_0x360db7(0x172)]['url'],!![]);}catch(_0x44dcb9){logger['debug'](_0x1f0429['ZVmaN'],_0x44dcb9);}},{'success':![],'failure':_0x223e2e})();throw _0x223e2e;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x4d91a8=a123_0x2246;(function(_0x120a14,_0x32d01b){const _0x3e4283=a123_0x2246,_0x359aef=_0x120a14();while(!![]){try{const _0x6e69c4=parseInt(_0x3e4283(0xa6))/0x1+parseInt(_0x3e4283(0xb2))/0x2+-parseInt(_0x3e4283(0xa2))/0x3+parseInt(_0x3e4283(0xb7))/0x4+-parseInt(_0x3e4283(0xb9))/0x5*(parseInt(_0x3e4283(0xbf))/0x6)+-parseInt(_0x3e4283(0xb1))/0x7*(-parseInt(_0x3e4283(0xab))/0x8)+parseInt(_0x3e4283(0xad))/0x9*(parseInt(_0x3e4283(0xb3))/0xa);if(_0x6e69c4===_0x32d01b)break;else _0x359aef['push'](_0x359aef['shift']());}catch(_0x497957){_0x359aef['push'](_0x359aef['shift']());}}}(a123_0x16fd,0x5f31b));function a123_0x16fd(){const _0x5e0d96=['6146072qYVUZL','takeScreenshot','3191733AqWYza','patchQuit','mHCjw','env','7SkMGrB','129980tKNJBI','10Rcdhte','overrideTakeScreenshot','TEST_SCREENSHOT','end','629648JCjJLU','hXZSF','59425WusMMr','initQuit','emit','true','then','./performance/performance-tester','372YyTBLa','qPOKy','initScreenshot','pid','quitCount_','overrideQuit','aemSS','cexJJ','O11y_EVENTS','quit','mYmhR','2158158cHwOaD','teaXT','./performance/constants','TAKE_SCREENSHOT','500873sUgXxT','patchScreenshot','gkgHm','BS_TESTOPS_ALLOW_SCREENSHOTS','toISOString'];a123_0x16fd=function(){return _0x5e0d96;};return a123_0x16fd();}function a123_0x2246(_0x2bfc1f,_0x32fa2b){const _0x16fd77=a123_0x16fd();return a123_0x2246=function(_0x2246bb,_0x4048c7){_0x2246bb=_0x2246bb-0xa1;let _0x3016f=_0x16fd77[_0x2246bb];return _0x3016f;},a123_0x2246(_0x2bfc1f,_0x32fa2b);}const PerformanceTester=require(a123_0x4d91a8(0xbe)),O11yEvents=require(a123_0x4d91a8(0xa4))[a123_0x4d91a8(0xc7)];exports[a123_0x4d91a8(0xb4)]=_0xb7e3a7=>{const _0x168c76=a123_0x4d91a8,_0x4f00c7={'gkgHm':function(_0x54ead5,_0x2ed6be){return _0x54ead5(_0x2ed6be);},'qPOKy':_0x168c76(0xb5),'teaXT':function(_0x20e2c7,_0x1cfa1a){return _0x20e2c7!==_0x1cfa1a;},'mHCjw':_0x168c76(0xbc)};if(_0x4f00c7[_0x168c76(0xa3)](process[_0x168c76(0xb0)][_0x168c76(0xa9)],_0x4f00c7[_0x168c76(0xaf)]))return;if(_0xb7e3a7[_0x168c76(0xa7)])return;_0xb7e3a7[_0x168c76(0xa7)]=!![],_0xb7e3a7[_0x168c76(0xc1)]=_0xb7e3a7[_0x168c76(0xac)],_0xb7e3a7[_0x168c76(0xac)]=()=>{const _0x4249da=_0x168c76,_0x23583b={'cexJJ':function(_0x1d044e,_0x14bf57){const _0x4cdfdd=a123_0x2246;return _0x4f00c7[_0x4cdfdd(0xa8)](_0x1d044e,_0x14bf57);},'aemSS':_0x4f00c7[_0x4249da(0xc0)],'iQzKH':function(_0x5d78c4,_0x1c1ca2){return _0x4f00c7['gkgHm'](_0x5d78c4,_0x1c1ca2);}};return new Promise(function(_0x20f2bb,_0x66b2cb){const _0x174870=_0x4249da,_0x3ecba9={'aGdUo':_0x23583b[_0x174870(0xc5)],'yzYnB':function(_0xbfd8a,_0x265bd6){return _0x23583b['iQzKH'](_0xbfd8a,_0x265bd6);}};_0xb7e3a7['initScreenshot']()[_0x174870(0xbd)](_0xc31422=>{const _0x4a7e63=_0x174870;PerformanceTester['start'](O11yEvents[_0x4a7e63(0xa5)]),process[_0x4a7e63(0xbb)]('bs:addLog:'+process[_0x4a7e63(0xc2)],{'timestamp':new Date()[_0x4a7e63(0xaa)](),'message':_0xc31422,'kind':_0x3ecba9['aGdUo']}),_0x3ecba9['yzYnB'](_0x20f2bb,_0xc31422),PerformanceTester[_0x4a7e63(0xb6)](O11yEvents[_0x4a7e63(0xa5)]);})['catch'](_0x106764=>{const _0x20919c=_0x174870;PerformanceTester['end'](O11yEvents['TAKE_SCREENSHOT']),_0x23583b[_0x20919c(0xc6)](_0x66b2cb,_0x106764);});});};},exports[a123_0x4d91a8(0xc4)]=(_0x1f0fac,_0x38254e=null)=>{const _0x281462=a123_0x4d91a8,_0x58434b={'egYDc':function(_0x172464){return _0x172464();},'ynicr':function(_0x49c329,_0x452862){return _0x49c329>_0x452862;},'mYmhR':function(_0x306ee3,_0x281adc){return _0x306ee3>_0x281adc;}};if(_0x1f0fac[_0x281462(0xae)])return;_0x1f0fac[_0x281462(0xae)]=!![],_0x1f0fac[_0x281462(0xba)]=_0x1f0fac[_0x281462(0xc8)],_0x1f0fac[_0x281462(0xc8)]=()=>{const _0x5b12b8=_0x281462,_0x707d95={'hXZSF':function(_0x4e9256){return _0x58434b['egYDc'](_0x4e9256);}};if(_0x38254e){_0x38254e[_0x5b12b8(0xc3)]+=0x1;if(_0x58434b['ynicr'](_0x38254e[_0x5b12b8(0xc3)],0x1))return _0x1f0fac[_0x5b12b8(0xba)]();}else{_0x1f0fac['quitCount_']+=0x1;if(_0x58434b[_0x5b12b8(0xa1)](_0x1f0fac[_0x5b12b8(0xc3)],0x1))return _0x1f0fac[_0x5b12b8(0xba)]();}return new Promise(function(_0x90a820){const _0x529836=_0x5b12b8;_0x707d95[_0x529836(0xb8)](_0x90a820);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0xf09350=a124_0x5cb8;function a124_0x5cb8(_0x397cd9,_0x18fe2d){const _0x55dbec=a124_0x55db();return a124_0x5cb8=function(_0x5cb80a,_0x3ef223){_0x5cb80a=_0x5cb80a-0xe9;let _0x5f5cbc=_0x55dbec[_0x5cb80a];return _0x5f5cbc;},a124_0x5cb8(_0x397cd9,_0x18fe2d);}(function(_0x1fccf4,_0xbfa06e){const _0x311dca=a124_0x5cb8,_0x9bce98=_0x1fccf4();while(!![]){try{const _0x9b8b33=parseInt(_0x311dca(0x12e))/0x1*(-parseInt(_0x311dca(0x110))/0x2)+parseInt(_0x311dca(0x129))/0x3+parseInt(_0x311dca(0x135))/0x4+parseInt(_0x311dca(0xfb))/0x5*(-parseInt(_0x311dca(0xe9))/0x6)+parseInt(_0x311dca(0x118))/0x7*(-parseInt(_0x311dca(0xf1))/0x8)+parseInt(_0x311dca(0x124))/0x9*(parseInt(_0x311dca(0x136))/0xa)+parseInt(_0x311dca(0x106))/0xb*(parseInt(_0x311dca(0x11b))/0xc);if(_0x9b8b33===_0xbfa06e)break;else _0x9bce98['push'](_0x9bce98['shift']());}catch(_0x562aa5){_0x9bce98['push'](_0x9bce98['shift']());}}}(a124_0x55db,0x9e4fc));function a124_0x55db(){const _0x1b7591=['cpVFe','pipe','bdkcY','mHJld','NmuIk','GET','stdout','join','25NjRBwQ','ENV_VAR','api/app_percy/get_project_token?name=','sTGZV','path','OwfdZ','gYonQ','app:exec','PERCY_SERVER_ADDRESS','../logger','XItMB','22Ffgoir','stderr','YxPyX','debug','LqSLp','createPercyConfig','AscUQ','data','env','QaNtV','118jVxuAv','percy/healthcheck','end','app','error','close','isRunning','&type=','159278XKHUXa','ORBGF','isProcessRunning','1392528AmreTI','dtYqY','exec','../../helpers/performance/performance-tester',':start','start','percyOptions','nodeRequest','healthcheck','23292aSptrZ','fetchPercyToken','getBinaryPath','projectName','DOWNLOAD','2196909wZvMoA','wGlIw','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','mTPaA','version','20820mNFLkY','../helper','http://localhost:5338','percy.log','YAPCD','Percy\x20config\x20created\x20at\x20','stringify','4056748NkJlol','750LHiwIE','191196pRWJaG','automate','./PercyBinary','Percy\x20fetch\x20token\x20success','tmpdir','stop','JxsUt','createWriteStream','48EJNaJx','exec:stop'];a124_0x55db=function(){return _0x1b7591;};return a124_0x55db();}const fs=require('fs'),path=require(a124_0xf09350(0xff)),os=require('os'),{spawn}=require('child_process'),helper=require(a124_0xf09350(0x12f)),logger=require(a124_0xf09350(0x104))['winstonLogger'],{getLogDir}=require('../logger'),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require(a124_0xf09350(0x11e)),{PERCY_EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),PercyBinary=require(a124_0xf09350(0xeb));class Percy{#logfile=path[a124_0xf09350(0xfa)](getLogDir(),a124_0xf09350(0x131));#address=process['env'][a124_0xf09350(0x103)]||a124_0xf09350(0x130);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a124_0xf09350(0x11a)]=![];constructor(_0x31809f){const _0x1e770b=a124_0xf09350;this.#config=_0x31809f,!!_0x31809f[_0x1e770b(0x113)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x33c5c8=a124_0xf09350;if(!this.#binaryPath){const _0x36afa9=new PercyBinary();PerformanceTester[_0x33c5c8(0x120)](PerformanceEvents[_0x33c5c8(0x128)]),this.#binaryPath=await _0x36afa9[_0x33c5c8(0x126)](this.#config),PerformanceTester['end'](PerformanceEvents[_0x33c5c8(0x128)]);}return this.#binaryPath;}async #sleep(_0x5b06ea){return new Promise(_0x57a5a9=>setTimeout(_0x57a5a9,_0x5b06ea));}async[a124_0xf09350(0x123)](){const _0x197505=a124_0xf09350,_0x216096={};_0x216096[_0x197505(0x119)]=_0x197505(0xf8),_0x216096[_0x197505(0xfe)]=_0x197505(0x111);const _0x121b33=_0x216096;try{const _0x25899e=await helper[_0x197505(0x122)](_0x121b33['ORBGF'],_0x121b33['sTGZV'],null,null,this.#address);if(_0x25899e)return!![];}catch(_0x59fac0){return![];}}async[a124_0xf09350(0x120)](){const _0x5980fb=a124_0xf09350,_0x4380aa={'AqrgF':_0x5980fb(0x102),'NmuIk':_0x5980fb(0x11d),'TSizF':function(_0x508550,_0x1c0ea3,_0x4b5d41,_0x18caf9){return _0x508550(_0x1c0ea3,_0x4b5d41,_0x18caf9);},'YxPyX':_0x5980fb(0x115),'XItMB':'Percy\x20healthcheck\x20successful'},_0x44085f=await this.#getBinaryPath(),_0x5131cc={};_0x5131cc['flags']='a',this.#logStream=fs[_0x5980fb(0xf0)](this.#logfile,_0x5131cc);const _0xe84920=await this['fetchPercyToken'](),_0x144327=await this[_0x5980fb(0x10b)]();if(!_0xe84920)return![];const _0x44afd6=[(this.#isApp?_0x4380aa['AqrgF']:_0x4380aa[_0x5980fb(0xf7)])+_0x5980fb(0x11f)];_0x144327&&_0x44afd6['push']('-c',_0x144327);this.#proc=_0x4380aa['TSizF'](spawn,_0x44085f,_0x44afd6,{'env':Object['assign'](process[_0x5980fb(0x10e)],{'PERCY_TOKEN':_0xe84920,'TH_BUILD_UUID':process[_0x5980fb(0x10e)][testHubConstants[_0x5980fb(0xfc)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x5980fb(0xf9)]['pipe'](this.#logStream),this.#proc[_0x5980fb(0x107)][_0x5980fb(0xf4)](this.#logStream),this['isProcessRunning']=!![];var _0x3d2d7a=this;this.#proc['on'](_0x4380aa[_0x5980fb(0x108)],function(_0x2aae14){_0x3d2d7a['isProcessRunning']=![];});do{const _0x4401b5=await this[_0x5980fb(0x123)]();if(_0x4401b5)return logger[_0x5980fb(0x109)](_0x4380aa[_0x5980fb(0x105)]),!![];await this.#sleep(0x3e8);}while(this[_0x5980fb(0x11a)]);return![];}async[a124_0xf09350(0xee)](){const _0x355bc1=a124_0xf09350,_0x56d623={'JxsUt':function(_0x4c0773,_0xb46907){return _0x4c0773(_0xb46907);},'cpVFe':function(_0x3be1aa,_0x14a48b,_0xc0394b){return _0x3be1aa(_0x14a48b,_0xc0394b);},'bdkcY':_0x355bc1(0xf2),'dtYqY':'close'},_0x4a69a8=await this.#getBinaryPath();return new Promise((_0x332809,_0x43809c)=>{const _0x25a6d7=_0x355bc1,_0x3af01c=_0x56d623[_0x25a6d7(0xf3)](spawn,_0x4a69a8,[_0x56d623[_0x25a6d7(0xf5)]]);_0x3af01c['on'](_0x56d623[_0x25a6d7(0x11c)],_0x2b36fc=>{const _0x528822=_0x25a6d7;this['isProcessRunning']=![],this.#logStream&&(this.#logStream[_0x528822(0x112)](),this.#logStream=null),_0x56d623[_0x528822(0xef)](_0x332809,_0x2b36fc);});});}[a124_0xf09350(0x116)](){const _0x4c7db0=a124_0xf09350;return this[_0x4c7db0(0x11a)];}async[a124_0xf09350(0x125)](){const _0x21afee=a124_0xf09350,_0x1076d2={};_0x1076d2[_0x21afee(0x132)]=_0x21afee(0x113),_0x1076d2[_0x21afee(0x10c)]=_0x21afee(0xea),_0x1076d2[_0x21afee(0x12a)]='GET',_0x1076d2[_0x21afee(0xf6)]=_0x21afee(0xec);const _0xe1c2b7=_0x1076d2,_0x46297d=this.#config[_0x21afee(0x127)];try{const _0x539c88=this.#isApp?_0xe1c2b7[_0x21afee(0x132)]:_0xe1c2b7['AscUQ'],_0x2eb1f6=await helper[_0x21afee(0x122)](_0xe1c2b7[_0x21afee(0x12a)],_0x21afee(0xfd)+_0x46297d+_0x21afee(0x117)+_0x539c88,{},this.#config),_0x5dbdf6=_0x2eb1f6[_0x21afee(0x10d)];return logger[_0x21afee(0x109)](_0xe1c2b7[_0x21afee(0xf6)]),_0x5dbdf6['token'];}catch(_0x44577b){return logger['error'](_0x21afee(0x12b)+_0x44577b),null;}}async[a124_0xf09350(0x10b)](){const _0x384f79=a124_0xf09350,_0x54c2d8={'NOgAq':function(_0x3df154,_0x1f5260){return _0x3df154(_0x1f5260);},'LqSLp':function(_0x909451,_0x23baba){return _0x909451+_0x23baba;},'bxEPc':_0x384f79(0x133),'OwfdZ':'percy.json'};if(!this.#config['percyOptions'])return null;const _0x193744=path['join'](os[_0x384f79(0xed)](),_0x54c2d8[_0x384f79(0x100)]),_0x3adde8=this.#config[_0x384f79(0x121)];return!_0x3adde8[_0x384f79(0x12d)]&&(_0x3adde8[_0x384f79(0x12d)]='2'),new Promise((_0x2dd57f,_0x31ff03)=>{const _0x1b4914=_0x384f79,_0x1ee3bb={'QaNtV':function(_0x4ae05a,_0x535772){return _0x54c2d8['NOgAq'](_0x4ae05a,_0x535772);},'mTPaA':function(_0x8ed192,_0x59cd38){const _0x280d88=a124_0x5cb8;return _0x54c2d8[_0x280d88(0x10a)](_0x8ed192,_0x59cd38);},'gYonQ':_0x54c2d8['bxEPc']};fs['writeFile'](_0x193744,JSON[_0x1b4914(0x134)](_0x3adde8),_0x2c19f5=>{const _0x2c4ec7=_0x1b4914;_0x2c19f5&&(logger[_0x2c4ec7(0x114)]('Error\x20creating\x20percy\x20config:\x20'+_0x2c19f5),_0x1ee3bb[_0x2c4ec7(0x10f)](_0x2dd57f,null)),logger[_0x2c4ec7(0x109)](_0x1ee3bb[_0x2c4ec7(0x12c)](_0x1ee3bb[_0x2c4ec7(0x101)],_0x193744)),_0x1ee3bb[_0x2c4ec7(0x10f)](_0x2dd57f,_0x193744);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a125_0x5e03(){const _0x266c4f=['close','OmHqY','validateBinary','mkdirSync','fileName','ygsyc','EIgFA','BfSvq','112977bhsQtX','174DCmZXl','oKvqR','destroy','dqjjx','AFZha','function','goXnV','warn','ZfOpp','iTGph','headers','get','stdout','.etag','winstonLogger','path','data','open','lazyEntries','145971gwUdoM','LOGNAME','nDfwW','percy.exe','openReadStream','USERPROFILE','/root','agent','statusCode','error','ZTVNo','tmpdir','pXJne','REcXT','TkeHO','.zip','QPTwL','/percy-osx.zip','join','127315gqVGsx','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','197019PsjNIa','Connection','once','iANEj','yDoPD','readEntry','entry','DrPLE','length','download','56833YozkSD','port','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','proxyHost','needsUpdate','proxyPort','gcDhw','getBinaryPath','https-proxy-agent','NJaBr','NDAIO','JJupF','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','xrQto','BwUqb','env','exports','debug','etag','ehTrw','16CvbMqo','Failed\x20to\x20save\x20ETag\x20file:\x20','end','FuOMv','yauzl','percy','CHhDQ','platform','readFileSync','homedir','USER','utf8','/Users/','createWriteStream','jBCUw','8CikVqq','url','Bgvrg','fzIgw','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','zpkoe','LnEbK','cwd','useCaCertificate','https://github.com/percy/cli/releases/latest/download','/home/','HOMEDRIVE','child_process','cbAJQ','WVcaR','zIzHb','aSHlI','qqzud','pzvVC','HOME','pNRUS','IMJwR','chmod','test','binaryPath','extractAndSaveBinary','Saved\x20new\x20ETag\x20for\x20percy\x20binary','YLDxv','CxrLP','bSklo','getuid','win32','accessSync','host','trim','SNqsZ','/percy-win.zip','ZSGgI','6476690uZveNu','Failed\x20to\x20read\x20ETag\x20file:\x20','MYwhd','X_OK','oADOl','0755','R_OK','HOMEPATH','parse','mVWYb','match','pipe','catch','mjrch','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','UbHjv','--version','302264jXpGoq','XdnOF','LHkYH'];a125_0x5e03=function(){return _0x266c4f;};return a125_0x5e03();}const a125_0x3bbd42=a125_0x2148;function a125_0x2148(_0x10b749,_0x55491e){const _0x5e0309=a125_0x5e03();return a125_0x2148=function(_0x214861,_0x16aa0b){_0x214861=_0x214861-0x1ea;let _0x13415e=_0x5e0309[_0x214861];return _0x13415e;},a125_0x2148(_0x10b749,_0x55491e);}(function(_0x39a9bc,_0xfd93cd){const _0x302989=a125_0x2148,_0x33c1b0=_0x39a9bc();while(!![]){try{const _0x1acd58=parseInt(_0x302989(0x234))/0x1+-parseInt(_0x302989(0x215))/0x2+-parseInt(_0x302989(0x249))/0x3*(parseInt(_0x302989(0x267))/0x4)+-parseInt(_0x302989(0x247))/0x5+-parseInt(_0x302989(0x221))/0x6*(parseInt(_0x302989(0x253))/0x7)+parseInt(_0x302989(0x276))/0x8*(parseInt(_0x302989(0x220))/0x9)+parseInt(_0x302989(0x204))/0xa;if(_0x1acd58===_0xfd93cd)break;else _0x33c1b0['push'](_0x33c1b0['shift']());}catch(_0xd1bb02){_0x33c1b0['push'](_0x33c1b0['shift']());}}}(a125_0x5e03,0x2017f));const {https}=require('follow-redirects'),url=require(a125_0x3bbd42(0x277)),yauzl=require(a125_0x3bbd42(0x26b)),fs=require('fs'),path=require(a125_0x3bbd42(0x230)),os=require('os'),{spawn}=require(a125_0x3bbd42(0x1ea)),HttpsProxyAgent=require(a125_0x3bbd42(0x25b)),logger=require('../logger')[a125_0x3bbd42(0x22f)];class PercyBinary{#hostOS=process[a125_0x3bbd42(0x26e)];#httpPath=null;#binaryName=a125_0x3bbd42(0x26c);#orderedPaths=[path[a125_0x3bbd42(0x246)](this.#homedir(),'.browserstack'),process[a125_0x3bbd42(0x27d)](),os[a125_0x3bbd42(0x23f)]()];constructor(){const _0x2c8b2f=a125_0x3bbd42,_0x15e94a={};_0x15e94a['MYwhd']=_0x2c8b2f(0x27f),_0x15e94a[_0x2c8b2f(0x217)]=function(_0x4e0e6d,_0x5ecd11){return _0x4e0e6d+_0x5ecd11;},_0x15e94a[_0x2c8b2f(0x21f)]=_0x2c8b2f(0x245),_0x15e94a[_0x2c8b2f(0x203)]=_0x2c8b2f(0x202),_0x15e94a[_0x2c8b2f(0x22a)]=_0x2c8b2f(0x237),_0x15e94a['TLbzT']=function(_0x3e6692,_0x4c0835){return _0x3e6692+_0x4c0835;},_0x15e94a['cbAJQ']='/percy-linux.zip';const _0x7ecf55=_0x15e94a,_0x1c677c=_0x7ecf55[_0x2c8b2f(0x206)];if(this.#hostOS[_0x2c8b2f(0x20e)](/darwin|mac os/i))this.#httpPath=_0x7ecf55[_0x2c8b2f(0x217)](_0x1c677c,_0x7ecf55['BfSvq']);else this.#hostOS[_0x2c8b2f(0x20e)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x7ecf55[_0x2c8b2f(0x217)](_0x1c677c,_0x7ecf55[_0x2c8b2f(0x203)]),this.#binaryName=_0x7ecf55[_0x2c8b2f(0x22a)]):this.#httpPath=_0x7ecf55['TLbzT'](_0x1c677c,_0x7ecf55[_0x2c8b2f(0x1eb)]);}#getAvailableDirs(){const _0x17d08a=a125_0x3bbd42,_0x18b1b5={};_0x18b1b5['XdnOF']=function(_0x298aaa,_0x466270){return _0x298aaa<_0x466270;},_0x18b1b5['ehTrw']='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x5293d3=_0x18b1b5;for(var _0x22eb67=0x0;_0x5293d3[_0x17d08a(0x216)](_0x22eb67,this.#orderedPaths[_0x17d08a(0x251)]);_0x22eb67++){var _0x4003b5=this.#orderedPaths[_0x22eb67];if(this.#makePath(_0x4003b5))return _0x4003b5;}throw new Error(_0x5293d3[_0x17d08a(0x266)]);}#makePath(_0x508d25){const _0x2fcd07=a125_0x3bbd42;try{return _0x508d25&&!this.#checkPath(_0x508d25)&&fs[_0x2fcd07(0x21b)](_0x508d25),!![];}catch{return![];}}#checkPath(_0xd4a637,_0x53d3dd){const _0x28af68=a125_0x3bbd42,_0xd1ddf={};_0xd1ddf['pzvVC']=function(_0x5d0622,_0x11a683){return _0x5d0622|_0x11a683;},_0xd1ddf['goXnV']=function(_0x267577,_0x22ea24){return _0x267577!==_0x22ea24;},_0xd1ddf['zIzHb']='undefined';const _0x352403=_0xd1ddf;_0x53d3dd=_0x53d3dd||_0x352403[_0x28af68(0x1f0)](fs[_0x28af68(0x20a)],fs['W_OK']);try{return fs[_0x28af68(0x1fe)](_0xd4a637,_0x53d3dd),!![];}catch(_0x561512){if(_0x352403[_0x28af68(0x227)](typeof fs[_0x28af68(0x1fe)],_0x352403[_0x28af68(0x1ed)]))return![];try{return fs['statSync'](_0xd4a637),!![];}catch(_0x44ec09){return![];}}}#getETagPath(_0x1633d8){const _0x29e909=a125_0x3bbd42;return path['join'](_0x1633d8,this.#binaryName+_0x29e909(0x22e));}#loadETag(_0x52be69){const _0x3fabca=a125_0x3bbd42,_0x1278e2={};_0x1278e2[_0x3fabca(0x25c)]=_0x3fabca(0x272);const _0x34d8e6=_0x1278e2,_0x4625ff=this.#getETagPath(_0x52be69);if(this.#checkPath(_0x4625ff))try{return fs[_0x3fabca(0x26f)](_0x4625ff,_0x34d8e6['NJaBr'])[_0x3fabca(0x200)]();}catch(_0x54747f){logger['warn'](_0x3fabca(0x205)+_0x54747f);}return null;}#saveETag(_0x3430bc,_0x50b7cd){const _0x47d3fb=a125_0x3bbd42,_0xab6c18={};_0xab6c18['wXvAm']=_0x47d3fb(0x1f8);const _0x590473=_0xab6c18;if(!_0x50b7cd)return;try{const _0x2a59fd=this.#getETagPath(_0x3430bc);fs['writeFileSync'](_0x2a59fd,_0x50b7cd),logger[_0x47d3fb(0x264)](_0x590473['wXvAm']);}catch(_0x199ff8){logger[_0x47d3fb(0x228)](_0x47d3fb(0x268)+_0x199ff8);}}async #handleBinaryDownload(_0x13c2ff,_0xcadf32,_0x4dfb8b){const _0x339c39=a125_0x3bbd42,_0x386baf={};_0x386baf['zpkoe']=_0x339c39(0x27a);const _0x4dc845=_0x386baf,_0x2e9643=await this[_0x339c39(0x21a)](_0x13c2ff[_0x339c39(0x1f6)]);if(!_0x2e9643){logger['error'](_0x4dc845[_0x339c39(0x27b)]);const _0x1062ed=await this[_0x339c39(0x252)](_0xcadf32,_0x4dfb8b);return _0x1062ed[_0x339c39(0x1f6)];}return _0x13c2ff['binaryPath'];}async[a125_0x3bbd42(0x25a)](_0x4e51b1){const _0x5e5085=a125_0x3bbd42,_0x57ae12={};_0x57ae12[_0x5e5085(0x21e)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x57ae12['SNqsZ']=_0x5e5085(0x248);const _0x2cd25c=_0x57ae12,_0x44fa43=this.#getAvailableDirs(),_0x8184a3=path[_0x5e5085(0x246)](_0x44fa43,this.#binaryName);if(this.#checkPath(_0x8184a3,fs[_0x5e5085(0x207)])){const _0x7118e0=this.#loadETag(_0x44fa43);if(_0x7118e0)try{const _0x5957f9=await this[_0x5e5085(0x252)](_0x4e51b1,_0x44fa43,_0x7118e0);if(!_0x5957f9[_0x5e5085(0x257)])return logger['debug'](_0x2cd25c[_0x5e5085(0x21e)]),_0x8184a3;return logger[_0x5e5085(0x264)](_0x2cd25c[_0x5e5085(0x201)]),await this.#handleBinaryDownload(_0x5957f9,_0x4e51b1,_0x44fa43);}catch(_0x5910d6){return logger[_0x5e5085(0x228)](_0x5e5085(0x212)+_0x5910d6),_0x8184a3;}}const _0x9d28d1=await this[_0x5e5085(0x252)](_0x4e51b1,_0x44fa43);return await this.#handleBinaryDownload(_0x9d28d1,_0x4e51b1,_0x44fa43);}['download'](_0x104df8,_0x162bdb,_0x526db8=null){const _0x45f1a5=a125_0x3bbd42,_0x5a25bb={'pNRUS':function(_0x2ee468,_0x18ca57){return _0x2ee468(_0x18ca57);},'WVcaR':function(_0x312635,_0x5733ba){return _0x312635===_0x5733ba;},'fzIgw':_0x45f1a5(0x23d),'FuOMv':_0x45f1a5(0x218),'zQuOQ':function(_0x1cfed7,_0x4e174d){return _0x1cfed7+_0x4e174d;},'IMJwR':_0x45f1a5(0x243)};_0x162bdb&&!this.#checkPath(_0x162bdb)&&fs[_0x45f1a5(0x21b)](_0x162bdb);const _0x415178=this.#binaryName,_0x3f5fa9=path[_0x45f1a5(0x246)](_0x162bdb,_0x5a25bb['zQuOQ'](_0x415178,_0x5a25bb[_0x45f1a5(0x1f3)])),_0x507775=fs[_0x45f1a5(0x274)](_0x3f5fa9),_0x2d9d4e=url[_0x45f1a5(0x20c)](this.#httpPath);if(_0x104df8['proxyHost']&&_0x104df8[_0x45f1a5(0x258)]){const _0x4b59e1={};_0x4b59e1[_0x45f1a5(0x1ff)]=_0x104df8[_0x45f1a5(0x256)],_0x4b59e1[_0x45f1a5(0x254)]=_0x104df8[_0x45f1a5(0x258)],_0x2d9d4e[_0x45f1a5(0x23b)]=new HttpsProxyAgent(_0x4b59e1);}if(_0x104df8['useCaCertificate'])try{_0x2d9d4e['ca']=fs[_0x45f1a5(0x26f)](_0x104df8[_0x45f1a5(0x27e)]);}catch(_0x4aaefc){logger[_0x45f1a5(0x23d)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x4aaefc);}if(_0x526db8){const _0x3ba7b0={};_0x3ba7b0['If-None-Match']=_0x526db8,_0x3ba7b0[_0x45f1a5(0x24a)]=_0x5a25bb[_0x45f1a5(0x26a)],_0x2d9d4e[_0x45f1a5(0x22b)]=_0x3ba7b0;}else{const _0x4cd87f={};_0x4cd87f[_0x45f1a5(0x24a)]=_0x5a25bb['FuOMv'],_0x2d9d4e[_0x45f1a5(0x22b)]=_0x4cd87f;}return new Promise((_0x16ef22,_0x28c529)=>{const _0x5b8e5e=_0x45f1a5,_0x4a5235={'UbHjv':function(_0x372a7f,_0x5db384){const _0x540780=a125_0x2148;return _0x5a25bb[_0x540780(0x1f2)](_0x372a7f,_0x5db384);},'LNROM':function(_0xcc7065,_0x546e75){const _0x2c33d1=a125_0x2148;return _0x5a25bb[_0x2c33d1(0x1ec)](_0xcc7065,_0x546e75);},'YLDxv':_0x5a25bb[_0x5b8e5e(0x279)],'ZfOpp':_0x5a25bb[_0x5b8e5e(0x26a)]};https[_0x5b8e5e(0x22c)](_0x2d9d4e,_0x5e070d=>{const _0xfb40f3=_0x5b8e5e,_0x3e298c={'pXJne':function(_0x2e26d2,_0x3555a5){return _0x4a5235['UbHjv'](_0x2e26d2,_0x3555a5);},'iTJWE':function(_0x3ae1f0,_0x2a3716){return _0x4a5235['UbHjv'](_0x3ae1f0,_0x2a3716);}};if(_0x526db8&&_0x4a5235['LNROM'](_0x5e070d[_0xfb40f3(0x23c)],0x130)){_0x507775[_0xfb40f3(0x223)]();const _0x317f9a={};_0x317f9a[_0xfb40f3(0x257)]=![],_0x4a5235[_0xfb40f3(0x213)](_0x16ef22,_0x317f9a);return;}const _0x9d4ffe=_0x5e070d[_0xfb40f3(0x22b)][_0xfb40f3(0x265)];_0x9d4ffe&&this.#saveETag(_0x162bdb,_0x9d4ffe),_0x5e070d[_0xfb40f3(0x20f)](_0x507775),_0x5e070d['on'](_0x4a5235[_0xfb40f3(0x1f9)],function(_0x89bae9){const _0x23b5e1=_0xfb40f3;logger['error']('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x89bae9),_0x3e298c[_0x23b5e1(0x240)](_0x28c529,_0x89bae9);}),_0x507775['on'](_0x4a5235[_0xfb40f3(0x1f9)],function(_0x4db09a){const _0x18b47=_0xfb40f3;logger[_0x18b47(0x23d)](_0x18b47(0x25f)+_0x4db09a),_0x3e298c['iTJWE'](_0x28c529,_0x4db09a);}),_0x507775['on'](_0x4a5235[_0xfb40f3(0x229)],()=>{const _0x453515=_0xfb40f3;this['extractAndSaveBinary'](_0x3f5fa9,_0x162bdb)['then'](_0x4f0f7a=>_0x16ef22({'needsUpdate':!![],'binaryPath':_0x4f0f7a}))[_0x453515(0x210)](_0x28c529);});})['on'](_0x5a25bb[_0x5b8e5e(0x279)],function(_0x52ac23){const _0x8499e7=_0x5b8e5e;logger['error'](_0x8499e7(0x255)+_0x52ac23),_0x5a25bb['pNRUS'](_0x28c529,_0x52ac23);});});}[a125_0x3bbd42(0x1f7)](_0x597aae,_0x1ba166){const _0x4f01fa=a125_0x3bbd42,_0x47e15c={'gcDhw':function(_0x38efd2,_0x542769){return _0x38efd2(_0x542769);},'iQYLL':_0x4f01fa(0x209),'JJupF':function(_0x2d0eb7,_0x1a1340){return _0x2d0eb7(_0x1a1340);},'OmHqY':_0x4f01fa(0x269),'QPTwL':function(_0x2420b6,_0x2b055b){return _0x2420b6===_0x2b055b;},'qqzud':_0x4f01fa(0x24f),'jBCUw':_0x4f01fa(0x23d)},_0x23261f=this.#binaryName,_0x213801=path[_0x4f01fa(0x246)](_0x1ba166,_0x23261f);return new Promise((_0x50a0ee,_0x3d096e)=>{const _0x164579=_0x4f01fa,_0x287515={'iANEj':function(_0x45ed73,_0x379a4f){const _0x4ddf77=a125_0x2148;return _0x47e15c[_0x4ddf77(0x259)](_0x45ed73,_0x379a4f);},'sAqqZ':_0x47e15c['iQYLL'],'mVWYb':function(_0x8b76d3,_0x2f0a23){const _0x47fc09=a125_0x2148;return _0x47e15c[_0x47fc09(0x25e)](_0x8b76d3,_0x2f0a23);},'LnEbK':_0x47e15c[_0x164579(0x219)],'dqjjx':function(_0x19a928,_0x3388f2){const _0x44f028=_0x164579;return _0x47e15c[_0x44f028(0x244)](_0x19a928,_0x3388f2);},'bSklo':_0x47e15c[_0x164579(0x1ef)],'qBdRG':_0x47e15c[_0x164579(0x275)]},_0x5c146c={};_0x5c146c[_0x164579(0x233)]=!![],yauzl[_0x164579(0x232)](_0x597aae,_0x5c146c,function(_0x3285fd,_0x176653){const _0x3e0e65=_0x164579,_0x451d13={'ygsyc':function(_0x4ee82d,_0x4546aa){const _0x453fc1=a125_0x2148;return _0x287515[_0x453fc1(0x20d)](_0x4ee82d,_0x4546aa);},'oKvqR':_0x287515[_0x3e0e65(0x27c)],'zzjxB':function(_0x252ee4,_0x243765){const _0x3194ea=_0x3e0e65;return _0x287515[_0x3194ea(0x224)](_0x252ee4,_0x243765);},'BwUqb':function(_0x10ad98,_0x23de78){return _0x287515['iANEj'](_0x10ad98,_0x23de78);}};_0x3285fd&&_0x287515['iANEj'](_0x3d096e,_0x3285fd),_0x176653[_0x3e0e65(0x24e)](),_0x176653['on'](_0x287515[_0x3e0e65(0x1fb)],_0xff39a2=>{const _0x2092f4=_0x3e0e65;if(/\/$/[_0x2092f4(0x1f5)](_0xff39a2[_0x2092f4(0x21c)]))_0x176653[_0x2092f4(0x24e)]();else{const _0x571ddb=fs[_0x2092f4(0x274)](path[_0x2092f4(0x246)](_0x1ba166,_0xff39a2[_0x2092f4(0x21c)]));_0x176653[_0x2092f4(0x238)](_0xff39a2,function(_0x2aff76,_0x3136d8){const _0x1bc569=_0x2092f4;_0x2aff76&&_0x451d13[_0x1bc569(0x21d)](_0x3d096e,_0x3285fd),_0x3136d8['on'](_0x451d13[_0x1bc569(0x222)],function(){const _0x101211=_0x1bc569;_0x571ddb['close'](),_0x176653[_0x101211(0x24e)]();}),_0x3136d8[_0x1bc569(0x20f)](_0x571ddb);}),_0x451d13['zzjxB'](_0xff39a2[_0x2092f4(0x21c)],_0x23261f)&&_0x176653[_0x2092f4(0x218)]();}}),_0x176653['on'](_0x287515['qBdRG'],_0x4c6cd0=>{const _0x1dc34b=_0x3e0e65;_0x287515[_0x1dc34b(0x24c)](_0x3d096e,_0x4c6cd0);}),_0x176653[_0x3e0e65(0x24b)](_0x287515[_0x3e0e65(0x27c)],()=>{const _0x381bc8=_0x3e0e65;fs[_0x381bc8(0x1f4)](_0x213801,_0x287515['sAqqZ'],function(_0x427a22){const _0x5919c8=_0x381bc8;_0x427a22&&_0x451d13[_0x5919c8(0x261)](_0x3d096e,_0x427a22),_0x451d13[_0x5919c8(0x261)](_0x50a0ee,_0x213801);}),_0x176653[_0x381bc8(0x218)]();});});});}async['validateBinary'](_0x4e7906){const _0x57c5ec=a125_0x3bbd42,_0x4f529f={'yDoPD':function(_0x596ae4,_0x275a58){return _0x596ae4(_0x275a58);},'AFZha':function(_0x471dfa,_0x4b79cf,_0x397508,_0x4b6179){return _0x471dfa(_0x4b79cf,_0x397508,_0x4b6179);},'TkeHO':_0x57c5ec(0x214),'CxrLP':_0x57c5ec(0x231),'oADOl':'close'},_0xb2664b=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x3f7c3f,_0x119892)=>{const _0x5053de=_0x57c5ec,_0x465a8c={'NDAIO':function(_0x207621,_0x183d7d){const _0x81870d=a125_0x2148;return _0x4f529f[_0x81870d(0x24d)](_0x207621,_0x183d7d);}},_0x19a70d={};_0x19a70d[_0x5053de(0x262)]=process['env'];const _0x2e8b0b=_0x4f529f[_0x5053de(0x225)](spawn,_0x4e7906,[_0x4f529f[_0x5053de(0x242)]],_0x19a70d);_0x2e8b0b[_0x5053de(0x22d)]['on'](_0x4f529f[_0x5053de(0x1fa)],_0x561fd2=>{const _0x58bfdc=_0x5053de;_0xb2664b[_0x58bfdc(0x1f5)](_0x561fd2)&&_0x465a8c[_0x58bfdc(0x25d)](_0x3f7c3f,!![]);}),_0x2e8b0b['on'](_0x4f529f[_0x5053de(0x208)],()=>{const _0xc9ae6c=_0x5053de;_0x4f529f[_0xc9ae6c(0x24d)](_0x3f7c3f,![]);});});}#homedir(){const _0x298448=a125_0x3bbd42,_0x4f215b={};_0x4f215b[_0x298448(0x250)]=function(_0xac020e,_0x4f5504){return _0xac020e===_0x4f5504;},_0x4f215b['ITiBB']=_0x298448(0x226),_0x4f215b[_0x298448(0x260)]=_0x298448(0x1fd),_0x4f215b[_0x298448(0x241)]=function(_0x3b90bd,_0x54d12c){return _0x3b90bd+_0x54d12c;},_0x4f215b['qvOpX']='darwin',_0x4f215b['CHhDQ']=_0x298448(0x273),_0x4f215b[_0x298448(0x23e)]=function(_0x3a3b72,_0x144cc5){return _0x3a3b72===_0x144cc5;},_0x4f215b[_0x298448(0x1ee)]='linux',_0x4f215b['Bgvrg']=_0x298448(0x23a),_0x4f215b[_0x298448(0x236)]=_0x298448(0x280),_0x4f215b[_0x298448(0x211)]=function(_0x4bc876,_0x499c78){return _0x4bc876||_0x499c78;};const _0x3023fb=_0x4f215b;if(_0x3023fb[_0x298448(0x250)](typeof os[_0x298448(0x270)],_0x3023fb['ITiBB']))return os[_0x298448(0x270)]();const _0x555244=process['env'],_0x17a31d=_0x555244[_0x298448(0x1f1)],_0x1a7b67=_0x555244[_0x298448(0x235)]||_0x555244[_0x298448(0x271)]||_0x555244['LNAME']||_0x555244['USERNAME'];if(_0x3023fb[_0x298448(0x250)](process[_0x298448(0x26e)],_0x3023fb[_0x298448(0x260)]))return _0x555244[_0x298448(0x239)]||_0x3023fb[_0x298448(0x241)](_0x555244[_0x298448(0x281)],_0x555244[_0x298448(0x20b)])||_0x17a31d||null;if(_0x3023fb[_0x298448(0x250)](process['platform'],_0x3023fb['qvOpX']))return _0x17a31d||(_0x1a7b67?_0x3023fb[_0x298448(0x241)](_0x3023fb[_0x298448(0x26d)],_0x1a7b67):null);if(_0x3023fb[_0x298448(0x23e)](process['platform'],_0x3023fb[_0x298448(0x1ee)]))return _0x17a31d||(_0x3023fb[_0x298448(0x250)](process[_0x298448(0x1fc)](),0x0)?_0x3023fb[_0x298448(0x278)]:_0x1a7b67?_0x3023fb['REcXT'](_0x3023fb[_0x298448(0x236)],_0x1a7b67):null);return _0x3023fb[_0x298448(0x211)](_0x17a31d,null);}}module[a125_0x3bbd42(0x263)]=PercyBinary;
|
|
1
|
+
function a125_0x3f94(_0x3fb576,_0x487621){const _0x28ab16=a125_0x28ab();return a125_0x3f94=function(_0x3f941c,_0x3f851c){_0x3f941c=_0x3f941c-0xb0;let _0x4ab9de=_0x28ab16[_0x3f941c];return _0x4ab9de;},a125_0x3f94(_0x3fb576,_0x487621);}const a125_0x1a9b57=a125_0x3f94;(function(_0x42fbbe,_0x4170ee){const _0x11e7c3=a125_0x3f94,_0x362f93=_0x42fbbe();while(!![]){try{const _0x48e13c=parseInt(_0x11e7c3(0xfa))/0x1*(-parseInt(_0x11e7c3(0x104))/0x2)+parseInt(_0x11e7c3(0x140))/0x3*(parseInt(_0x11e7c3(0x10e))/0x4)+-parseInt(_0x11e7c3(0xbd))/0x5*(-parseInt(_0x11e7c3(0x12f))/0x6)+-parseInt(_0x11e7c3(0xe3))/0x7*(parseInt(_0x11e7c3(0x13b))/0x8)+parseInt(_0x11e7c3(0x125))/0x9+parseInt(_0x11e7c3(0x116))/0xa*(-parseInt(_0x11e7c3(0x117))/0xb)+parseInt(_0x11e7c3(0x122))/0xc;if(_0x48e13c===_0x4170ee)break;else _0x362f93['push'](_0x362f93['shift']());}catch(_0x54842c){_0x362f93['push'](_0x362f93['shift']());}}}(a125_0x28ab,0x87625));function a125_0x28ab(){const _0xd61a31=['match','statSync','destroy','219610FPBvaY','.etag','TELDY','proxyPort','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','eWSLo','join','nDxue','stdout','WQrAE','64WmdWVk','W_OK','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','/root','USERPROFILE','rjzrC','host','end','50ErFDrE','2288605PpVuQZ','LOGNAME','url','path','YrXzq','cdAOz','STPSx','UNCHG','tjrLT','tJPuA','jnNSo','6372372UZAdLy','Blwvg','Error\x20trying\x20to\x20download\x20percy\x20binary','8151129GYAGMA','proxyHost','.browserstack','hGPkP','wdPKF','pipe','.zip','eruwr','qJQnF','yoRJU','3962220mbkrjA','ZvEgT','readFileSync','KyEpp','HOME','qFvXB','dIakr','kqKlI','env','HAlub','PSYEg','cwd','64JIsSjp','TmTsz','kdmHR','test','qNTYH','188805WvWgRV','tVcPx','bAwGS','LbCBQ','debug','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','darwin','getBinaryPath','useCaCertificate','mkdirSync','bfGNm','WIAaH','fadzT','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','oUyZX','aqtjc','platform','undefined','headers','5FwzXDH','statusCode','TUyMb','eHvla','win32','entry','0755','Failed\x20to\x20read\x20ETag\x20file:\x20','error','YKPCd','../logger','ioDBF','tmpdir','TvVds','/percy-osx.zip','open','trim','child_process','dXOgr','eYadb','X_OK','YgqMt','Connection','https-proxy-agent','agent','winstonLogger','yauzl','iDGtB','fileName','download','hLAKe','gDFpb','/percy-win.zip','ETcXx','BniIJ','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','accessSync','exports','359786EMcccn','get','openReadStream','needsUpdate','USERNAME','warn','binaryPath','wdwHF','once','extractAndSaveBinary','MBqdD','getuid','percy','/percy-linux.zip','zSxCx','function','mizbs','HOMEPATH','port','then','parse','IsjWF','close','10zQuKKz','createWriteStream','percy.exe','jnaHk','readEntry','homedir','ajCYT'];a125_0x28ab=function(){return _0xd61a31;};return a125_0x28ab();}const {https}=require('follow-redirects'),url=require(a125_0x1a9b57(0x119)),yauzl=require(a125_0x1a9b57(0xd7)),fs=require('fs'),path=require(a125_0x1a9b57(0x11a)),os=require('os'),{spawn}=require(a125_0x1a9b57(0xce)),HttpsProxyAgent=require(a125_0x1a9b57(0xd4)),logger=require(a125_0x1a9b57(0xc7))[a125_0x1a9b57(0xd6)];class PercyBinary{#hostOS=process[a125_0x1a9b57(0xba)];#httpPath=null;#binaryName=a125_0x1a9b57(0xef);#orderedPaths=[path[a125_0x1a9b57(0x10a)](this.#homedir(),a125_0x1a9b57(0x127)),process[a125_0x1a9b57(0x13a)](),os[a125_0x1a9b57(0xc9)]()];constructor(){const _0xe8f1df=a125_0x1a9b57,_0x3e8876={};_0x3e8876[_0xe8f1df(0xde)]='https://github.com/percy/cli/releases/latest/download',_0x3e8876[_0xe8f1df(0x141)]=function(_0x408467,_0x532c84){return _0x408467+_0x532c84;},_0x3e8876[_0xe8f1df(0x123)]=_0xe8f1df(0xcb),_0x3e8876[_0xe8f1df(0xdc)]=function(_0x347e39,_0x4c9587){return _0x347e39+_0x4c9587;},_0x3e8876[_0xe8f1df(0xed)]=_0xe8f1df(0xdd),_0x3e8876['fadzT']=_0xe8f1df(0xfc),_0x3e8876['PSYEg']=function(_0x44d8a2,_0x5b40de){return _0x44d8a2+_0x5b40de;},_0x3e8876['TvVds']=_0xe8f1df(0xf0);const _0x5d98f7=_0x3e8876,_0x5ac6fd=_0x5d98f7['ETcXx'];if(this.#hostOS[_0xe8f1df(0x101)](/darwin|mac os/i))this.#httpPath=_0x5d98f7['tVcPx'](_0x5ac6fd,_0x5d98f7[_0xe8f1df(0x123)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x5d98f7[_0xe8f1df(0xdc)](_0x5ac6fd,_0x5d98f7[_0xe8f1df(0xed)]),this.#binaryName=_0x5d98f7[_0xe8f1df(0xb6)]):this.#httpPath=_0x5d98f7[_0xe8f1df(0x139)](_0x5ac6fd,_0x5d98f7[_0xe8f1df(0xca)]);}#getAvailableDirs(){const _0x5cd63e=a125_0x1a9b57,_0x385871={};_0x385871[_0x5cd63e(0x12e)]=function(_0x2ba6b1,_0x4ab9d2){return _0x2ba6b1<_0x4ab9d2;},_0x385871[_0x5cd63e(0x106)]=_0x5cd63e(0x124);const _0x16647b=_0x385871;for(var _0x393621=0x0;_0x16647b[_0x5cd63e(0x12e)](_0x393621,this.#orderedPaths['length']);_0x393621++){var _0x222ba1=this.#orderedPaths[_0x393621];if(this.#makePath(_0x222ba1))return _0x222ba1;}throw new Error(_0x16647b[_0x5cd63e(0x106)]);}#makePath(_0x53e8ec){const _0x19c89f=a125_0x1a9b57;try{return _0x53e8ec&&!this.#checkPath(_0x53e8ec)&&fs[_0x19c89f(0xb3)](_0x53e8ec),!![];}catch{return![];}}#checkPath(_0x51fc41,_0x3d135a){const _0xf78e9b=a125_0x1a9b57,_0x3c3090={};_0x3c3090[_0xf78e9b(0xc6)]=function(_0xa471cf,_0x33202f){return _0xa471cf|_0x33202f;},_0x3c3090[_0xf78e9b(0x113)]=function(_0x15c3b8,_0xf497d8){return _0x15c3b8!==_0xf497d8;},_0x3c3090[_0xf78e9b(0x109)]=_0xf78e9b(0xbb);const _0x138b1c=_0x3c3090;_0x3d135a=_0x3d135a||_0x138b1c[_0xf78e9b(0xc6)](fs['R_OK'],fs[_0xf78e9b(0x10f)]);try{return fs[_0xf78e9b(0xe1)](_0x51fc41,_0x3d135a),!![];}catch(_0x1d8b65){if(_0x138b1c['rjzrC'](typeof fs[_0xf78e9b(0xe1)],_0x138b1c[_0xf78e9b(0x109)]))return![];try{return fs[_0xf78e9b(0x102)](_0x51fc41),!![];}catch(_0x2be1a2){return![];}}}#getETagPath(_0x3f901d){const _0xb9fc7b=a125_0x1a9b57;return path[_0xb9fc7b(0x10a)](_0x3f901d,this.#binaryName+_0xb9fc7b(0x105));}#loadETag(_0x2687f7){const _0x16fa35=a125_0x1a9b57,_0x5520bf={};_0x5520bf[_0x16fa35(0xf3)]='utf8';const _0x2158ec=_0x5520bf,_0x3de69f=this.#getETagPath(_0x2687f7);if(this.#checkPath(_0x3de69f))try{return fs[_0x16fa35(0x131)](_0x3de69f,_0x2158ec[_0x16fa35(0xf3)])[_0x16fa35(0xcd)]();}catch(_0x359859){logger[_0x16fa35(0xe8)](_0x16fa35(0xc4)+_0x359859);}return null;}#saveETag(_0x19fec2,_0xde4a61){const _0x5c52d8=a125_0x1a9b57,_0x267c0f={};_0x267c0f[_0x5c52d8(0x13d)]='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x2ce807=_0x267c0f;if(!_0xde4a61)return;try{const _0x473dc0=this.#getETagPath(_0x19fec2);fs['writeFileSync'](_0x473dc0,_0xde4a61),logger[_0x5c52d8(0x144)](_0x2ce807[_0x5c52d8(0x13d)]);}catch(_0x5020c2){logger['warn']('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x5020c2);}}async #handleBinaryDownload(_0x19c0af,_0x559ddc,_0x5aa4b3){const _0x14ca6f=a125_0x1a9b57,_0x31a38b={};_0x31a38b[_0x14ca6f(0xbf)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x583b88=_0x31a38b,_0x4f4e=await this['validateBinary'](_0x19c0af[_0x14ca6f(0xe9)]);if(!_0x4f4e){logger[_0x14ca6f(0xc5)](_0x583b88['TUyMb']);const _0x21d66a=await this[_0x14ca6f(0xda)](_0x559ddc,_0x5aa4b3);return _0x21d66a[_0x14ca6f(0xe9)];}return _0x19c0af['binaryPath'];}async[a125_0x1a9b57(0xb1)](_0xa24325){const _0x192bd5=a125_0x1a9b57,_0x57251c={};_0x57251c['fXmcL']=_0x192bd5(0x145),_0x57251c[_0x192bd5(0x135)]=_0x192bd5(0xe0);const _0x27a429=_0x57251c,_0x510de0=this.#getAvailableDirs(),_0x319191=path[_0x192bd5(0x10a)](_0x510de0,this.#binaryName);if(this.#checkPath(_0x319191,fs[_0x192bd5(0xd1)])){const _0x39f2f9=this.#loadETag(_0x510de0);if(_0x39f2f9)try{const _0x14d289=await this['download'](_0xa24325,_0x510de0,_0x39f2f9);if(!_0x14d289[_0x192bd5(0xe6)])return logger['debug'](_0x27a429['fXmcL']),_0x319191;return logger['debug'](_0x27a429[_0x192bd5(0x135)]),await this.#handleBinaryDownload(_0x14d289,_0xa24325,_0x510de0);}catch(_0x30ca61){return logger[_0x192bd5(0xe8)](_0x192bd5(0x110)+_0x30ca61),_0x319191;}}const _0x43d90d=await this[_0x192bd5(0xda)](_0xa24325,_0x510de0);return await this.#handleBinaryDownload(_0x43d90d,_0xa24325,_0x510de0);}[a125_0x1a9b57(0xda)](_0x2cb7f9,_0x240b35,_0x1ac582=null){const _0x22be0c=a125_0x1a9b57,_0x3acc3e={'dXOgr':function(_0x151d4e,_0x561b46){return _0x151d4e(_0x561b46);},'WIAaH':function(_0x1715b5,_0x14995e){return _0x1715b5===_0x14995e;},'qFvXB':_0x22be0c(0xc5),'IsjWF':_0x22be0c(0xf9),'wuSYb':function(_0xc010c,_0x47b690){return _0xc010c+_0x47b690;},'eHvla':_0x22be0c(0x12b)};_0x240b35&&!this.#checkPath(_0x240b35)&&fs['mkdirSync'](_0x240b35);const _0x16314f=this.#binaryName,_0x22dc2d=path[_0x22be0c(0x10a)](_0x240b35,_0x3acc3e['wuSYb'](_0x16314f,_0x3acc3e[_0x22be0c(0xc0)])),_0x538b36=fs[_0x22be0c(0xfb)](_0x22dc2d),_0x5005ee=url[_0x22be0c(0xf7)](this.#httpPath);if(_0x2cb7f9[_0x22be0c(0x126)]&&_0x2cb7f9[_0x22be0c(0x107)]){const _0x32f6a2={};_0x32f6a2[_0x22be0c(0x114)]=_0x2cb7f9['proxyHost'],_0x32f6a2[_0x22be0c(0xf5)]=_0x2cb7f9[_0x22be0c(0x107)],_0x5005ee[_0x22be0c(0xd5)]=new HttpsProxyAgent(_0x32f6a2);}if(_0x2cb7f9[_0x22be0c(0xb2)])try{_0x5005ee['ca']=fs[_0x22be0c(0x131)](_0x2cb7f9['useCaCertificate']);}catch(_0x21de19){logger[_0x22be0c(0xc5)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x21de19);}if(_0x1ac582){const _0x11e88a={};_0x11e88a['If-None-Match']=_0x1ac582,_0x11e88a[_0x22be0c(0xd3)]=_0x3acc3e['IsjWF'],_0x5005ee[_0x22be0c(0xbc)]=_0x11e88a;}else{const _0x357141={};_0x357141[_0x22be0c(0xd3)]=_0x3acc3e[_0x22be0c(0xf8)],_0x5005ee['headers']=_0x357141;}return new Promise((_0x42c457,_0x530212)=>{const _0x26aa3e=_0x22be0c,_0x3cb31b={'FktYg':function(_0x4cac85,_0x3cbd97){const _0x3e3930=a125_0x3f94;return _0x3acc3e[_0x3e3930(0xcf)](_0x4cac85,_0x3cbd97);},'KyEpp':function(_0x2bfcaa,_0x1fbd77){const _0x38cb17=a125_0x3f94;return _0x3acc3e[_0x38cb17(0xb5)](_0x2bfcaa,_0x1fbd77);},'hGPkP':function(_0x76095e,_0x287a37){return _0x3acc3e['dXOgr'](_0x76095e,_0x287a37);},'eYadb':_0x3acc3e['qFvXB'],'WQrAE':_0x3acc3e[_0x26aa3e(0xf8)]};https[_0x26aa3e(0xe4)](_0x5005ee,_0x282b0e=>{const _0x244cdf=_0x26aa3e,_0xc18091={'wdwHF':function(_0x524025,_0x41d1ae){return _0x3cb31b['FktYg'](_0x524025,_0x41d1ae);}};if(_0x1ac582&&_0x3cb31b[_0x244cdf(0x132)](_0x282b0e[_0x244cdf(0xbe)],0x130)){_0x538b36[_0x244cdf(0x103)]();const _0x2781f0={};_0x2781f0[_0x244cdf(0xe6)]=![],_0x3cb31b['hGPkP'](_0x42c457,_0x2781f0);return;}const _0x102dd2=_0x282b0e[_0x244cdf(0xbc)]['etag'];_0x102dd2&&this.#saveETag(_0x240b35,_0x102dd2),_0x282b0e['pipe'](_0x538b36),_0x282b0e['on'](_0x3cb31b[_0x244cdf(0xd0)],function(_0x3697e4){const _0x487604=_0x244cdf;logger['error'](_0x487604(0xb7)+_0x3697e4),_0xc18091['wdwHF'](_0x530212,_0x3697e4);}),_0x538b36['on'](_0x3cb31b[_0x244cdf(0xd0)],function(_0x16ad56){const _0x491ba5=_0x244cdf;logger[_0x491ba5(0xc5)](_0x491ba5(0x108)+_0x16ad56),_0xc18091[_0x491ba5(0xea)](_0x530212,_0x16ad56);}),_0x538b36['on'](_0x3cb31b[_0x244cdf(0x10d)],()=>{const _0x9a8b1e=_0x244cdf;this[_0x9a8b1e(0xec)](_0x22dc2d,_0x240b35)[_0x9a8b1e(0xf6)](_0x3a3e5b=>_0x42c457({'needsUpdate':!![],'binaryPath':_0x3a3e5b}))['catch'](_0x530212);});})['on'](_0x3acc3e[_0x26aa3e(0x134)],function(_0x2f7e9b){const _0x3747ab=_0x26aa3e;logger['error']('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x2f7e9b),_0x3cb31b[_0x3747ab(0x128)](_0x530212,_0x2f7e9b);});});}[a125_0x1a9b57(0xec)](_0x2bb183,_0x3653c2){const _0x3e1fed=a125_0x1a9b57,_0x64197b={'wdPKF':function(_0x1b1a36,_0x230d0e){return _0x1b1a36(_0x230d0e);},'TmTsz':_0x3e1fed(0x115),'YrXzq':function(_0x213246,_0x16d36c){return _0x213246===_0x16d36c;},'ajCYT':function(_0x2d1dab,_0x231695){return _0x2d1dab(_0x231695);},'HAlub':_0x3e1fed(0xc2),'aqtjc':'error','UNCHG':_0x3e1fed(0xc3)},_0x345210=this.#binaryName,_0x1acd48=path[_0x3e1fed(0x10a)](_0x3653c2,_0x345210);return new Promise((_0x28d615,_0x2ee147)=>{const _0x57cd5c=_0x3e1fed,_0x3c310d={'pCzYx':function(_0x375842,_0x1f871a){const _0x5cf33c=a125_0x3f94;return _0x64197b[_0x5cf33c(0x100)](_0x375842,_0x1f871a);},'hLAKe':_0x64197b[_0x57cd5c(0x11e)]},_0x5ae9f3={};_0x5ae9f3['lazyEntries']=!![],yauzl[_0x57cd5c(0xcc)](_0x2bb183,_0x5ae9f3,function(_0x55be74,_0x2aadd6){const _0x135012=_0x57cd5c,_0x44d295={'KkgnC':function(_0x1ae7bc,_0xc6455d){const _0x4aba5a=a125_0x3f94;return _0x64197b[_0x4aba5a(0x129)](_0x1ae7bc,_0xc6455d);},'qJQnF':_0x64197b[_0x135012(0x13c)],'awiNN':function(_0x3c1a44,_0x5aa3a7){const _0x9098c5=_0x135012;return _0x64197b[_0x9098c5(0x11b)](_0x3c1a44,_0x5aa3a7);},'cdAOz':function(_0x2aedf7,_0x43dbb3){const _0x2a167f=_0x135012;return _0x64197b[_0x2a167f(0x100)](_0x2aedf7,_0x43dbb3);}};_0x55be74&&_0x64197b[_0x135012(0x100)](_0x2ee147,_0x55be74),_0x2aadd6[_0x135012(0xfe)](),_0x2aadd6['on'](_0x64197b[_0x135012(0x138)],_0x199b39=>{const _0xe0b12f=_0x135012,_0x1714d7={'ZvEgT':function(_0x539e97,_0xc3696){return _0x44d295['KkgnC'](_0x539e97,_0xc3696);},'tJPuA':_0x44d295[_0xe0b12f(0x12d)]};if(/\/$/[_0xe0b12f(0x13e)](_0x199b39['fileName']))_0x2aadd6[_0xe0b12f(0xfe)]();else{const _0x2f7518=fs[_0xe0b12f(0xfb)](path[_0xe0b12f(0x10a)](_0x3653c2,_0x199b39['fileName']));_0x2aadd6[_0xe0b12f(0xe5)](_0x199b39,function(_0x347c8,_0x33d49e){const _0x21d243=_0xe0b12f;_0x347c8&&_0x1714d7[_0x21d243(0x130)](_0x2ee147,_0x55be74),_0x33d49e['on'](_0x1714d7[_0x21d243(0x120)],function(){const _0x3d7c02=_0x21d243;_0x2f7518[_0x3d7c02(0xf9)](),_0x2aadd6[_0x3d7c02(0xfe)]();}),_0x33d49e[_0x21d243(0x12a)](_0x2f7518);}),_0x44d295['awiNN'](_0x199b39[_0xe0b12f(0xd9)],_0x345210)&&_0x2aadd6[_0xe0b12f(0xf9)]();}}),_0x2aadd6['on'](_0x64197b[_0x135012(0xb9)],_0x4aa8ff=>{const _0x3d4f20=_0x135012;_0x44d295[_0x3d4f20(0x11c)](_0x2ee147,_0x4aa8ff);}),_0x2aadd6[_0x135012(0xeb)](_0x64197b[_0x135012(0x13c)],()=>{const _0x19cccb=_0x135012,_0x42cded={'YgqMt':function(_0x163833,_0x14c6b6){return _0x3c310d['pCzYx'](_0x163833,_0x14c6b6);}};fs['chmod'](_0x1acd48,_0x3c310d[_0x19cccb(0xdb)],function(_0x1c5cbe){const _0x4f4b78=_0x19cccb;_0x1c5cbe&&_0x42cded[_0x4f4b78(0xd2)](_0x2ee147,_0x1c5cbe),_0x42cded[_0x4f4b78(0xd2)](_0x28d615,_0x1acd48);}),_0x2aadd6[_0x19cccb(0xf9)]();});});});}async['validateBinary'](_0x517512){const _0xf430ef={'ioDBF':function(_0x22d47f,_0x90db5){return _0x22d47f(_0x90db5);},'bfGNm':function(_0x27fdd8,_0x193a64,_0x20f6fd,_0x5c27ba){return _0x27fdd8(_0x193a64,_0x20f6fd,_0x5c27ba);},'tjrLT':'--version','kqKlI':'data','nDxue':'close'},_0x5d72b5=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x2c2d3e,_0x509d9c)=>{const _0x270cfa=a125_0x3f94,_0xd37b5c={};_0xd37b5c[_0x270cfa(0x137)]=process['env'];const _0x25b5ae=_0xf430ef[_0x270cfa(0xb4)](spawn,_0x517512,[_0xf430ef[_0x270cfa(0x11f)]],_0xd37b5c);_0x25b5ae[_0x270cfa(0x10c)]['on'](_0xf430ef[_0x270cfa(0x136)],_0x4a51ef=>{const _0x14ad29=_0x270cfa;_0x5d72b5[_0x14ad29(0x13e)](_0x4a51ef)&&_0xf430ef[_0x14ad29(0xc8)](_0x2c2d3e,!![]);}),_0x25b5ae['on'](_0xf430ef[_0x270cfa(0x10b)],()=>{const _0x1854f0=_0x270cfa;_0xf430ef[_0x1854f0(0xc8)](_0x2c2d3e,![]);});});}#homedir(){const _0x5dfb61=a125_0x1a9b57,_0x2f38f9={};_0x2f38f9[_0x5dfb61(0xdf)]=function(_0x2c417f,_0x176ba8){return _0x2c417f===_0x176ba8;},_0x2f38f9[_0x5dfb61(0x12c)]=_0x5dfb61(0xf2),_0x2f38f9[_0x5dfb61(0xb8)]=_0x5dfb61(0xc1),_0x2f38f9['sHJHa']=function(_0x170a6a,_0x437be3){return _0x170a6a+_0x437be3;},_0x2f38f9[_0x5dfb61(0x143)]=_0x5dfb61(0xb0),_0x2f38f9['iDGtB']=function(_0x25267d,_0x304c9a){return _0x25267d+_0x304c9a;},_0x2f38f9[_0x5dfb61(0x142)]='/Users/',_0x2f38f9[_0x5dfb61(0xf1)]=function(_0x54d381,_0x323a87){return _0x54d381===_0x323a87;},_0x2f38f9[_0x5dfb61(0xfd)]='linux',_0x2f38f9[_0x5dfb61(0x13f)]=_0x5dfb61(0x111),_0x2f38f9[_0x5dfb61(0x11d)]='/home/',_0x2f38f9['jnNSo']=function(_0x260f73,_0x31b188){return _0x260f73||_0x31b188;};const _0x32e0da=_0x2f38f9;if(_0x32e0da[_0x5dfb61(0xdf)](typeof os['homedir'],_0x32e0da[_0x5dfb61(0x12c)]))return os[_0x5dfb61(0xff)]();const _0x59770f=process[_0x5dfb61(0x137)],_0x3404a1=_0x59770f[_0x5dfb61(0x133)],_0x14906c=_0x59770f[_0x5dfb61(0x118)]||_0x59770f['USER']||_0x59770f['LNAME']||_0x59770f[_0x5dfb61(0xe7)];if(_0x32e0da[_0x5dfb61(0xdf)](process['platform'],_0x32e0da['oUyZX']))return _0x59770f[_0x5dfb61(0x112)]||_0x32e0da['sHJHa'](_0x59770f['HOMEDRIVE'],_0x59770f[_0x5dfb61(0xf4)])||_0x3404a1||null;if(_0x32e0da[_0x5dfb61(0xdf)](process[_0x5dfb61(0xba)],_0x32e0da[_0x5dfb61(0x143)]))return _0x3404a1||(_0x14906c?_0x32e0da[_0x5dfb61(0xd8)](_0x32e0da[_0x5dfb61(0x142)],_0x14906c):null);if(_0x32e0da[_0x5dfb61(0xf1)](process[_0x5dfb61(0xba)],_0x32e0da[_0x5dfb61(0xfd)]))return _0x3404a1||(_0x32e0da[_0x5dfb61(0xdf)](process[_0x5dfb61(0xee)](),0x0)?_0x32e0da[_0x5dfb61(0x13f)]:_0x14906c?_0x32e0da['iDGtB'](_0x32e0da[_0x5dfb61(0x11d)],_0x14906c):null);return _0x32e0da[_0x5dfb61(0x121)](_0x3404a1,null);}}module[a125_0x1a9b57(0xe2)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a126_0x5c40(){var _0x44c9d5=['879420gSavrK','1068438BqVovq','get','1760IlfiVD','4875363ToKwWw','11077HbRaQb','671941QKuOIT','8mNmtfu','getName','5LhWTsg','245646TszzjQ','exports','4726589oAxvnI','27aCoQWQ'];a126_0x5c40=function(){return _0x44c9d5;};return a126_0x5c40();}function a126_0xb54b(_0x26dd1e,_0x57d184){var _0x5c40bb=a126_0x5c40();return a126_0xb54b=function(_0xb54b54,_0x1ca506){_0xb54b54=_0xb54b54-0x1ac;var _0x359e9c=_0x5c40bb[_0xb54b54];return _0x359e9c;},a126_0xb54b(_0x26dd1e,_0x57d184);}var a126_0x23fc8c=a126_0xb54b;(function(_0x45b68f,_0x48e139){var _0xcee611=a126_0xb54b,_0x55ac1=_0x45b68f();while(!![]){try{var _0x495600=parseInt(_0xcee611(0x1b5))/0x1+-parseInt(_0xcee611(0x1b9))/0x2*(parseInt(_0xcee611(0x1ae))/0x3)+-parseInt(_0xcee611(0x1af))/0x4+-parseInt(_0xcee611(0x1b8))/0x5*(-parseInt(_0xcee611(0x1b0))/0x6)+parseInt(_0xcee611(0x1ad))/0x7+parseInt(_0xcee611(0x1b6))/0x8*(parseInt(_0xcee611(0x1b3))/0x9)+-parseInt(_0xcee611(0x1b2))/0xa*(parseInt(_0xcee611(0x1b4))/0xb);if(_0x495600===_0x48e139)break;else _0x55ac1['push'](_0x55ac1['shift']());}catch(_0x295b96){_0x55ac1['push'](_0x55ac1['shift']());}}}(a126_0x5c40,0x89ce6));class PercyCaptureMap{#map={};['increment'](_0x327ead,_0x2dd333){!this.#map[_0x327ead]&&(this.#map[_0x327ead]={}),!this.#map[_0x327ead][_0x2dd333]&&(this.#map[_0x327ead][_0x2dd333]=0x0),this.#map[_0x327ead][_0x2dd333]++;}[a126_0x23fc8c(0x1b7)](_0x231b6d,_0x4647af){var _0x3bd378=a126_0x23fc8c;return _0x231b6d+'-'+_0x4647af+'-'+this[_0x3bd378(0x1b1)](_0x231b6d,_0x4647af);}['get'](_0x17f1ac,_0x30a9e4){if(!this.#map[_0x17f1ac])return 0x0;if(!this.#map[_0x17f1ac][_0x30a9e4])return 0x0;return this.#map[_0x17f1ac][_0x30a9e4];}}module[a126_0x23fc8c(0x1ac)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a127_0x478a76=a127_0xac12;(function(_0x23656b,_0x181efb){var _0x399492=a127_0xac12,_0x315a3d=_0x23656b();while(!![]){try{var _0x1b4b71=-parseInt(_0x399492(0x1e7))/0x1+-parseInt(_0x399492(0x1f3))/0x2*(-parseInt(_0x399492(0x1ee))/0x3)+parseInt(_0x399492(0x1f5))/0x4*(parseInt(_0x399492(0x1e4))/0x5)+parseInt(_0x399492(0x1ef))/0x6*(-parseInt(_0x399492(0x1f6))/0x7)+parseInt(_0x399492(0x1f4))/0x8+parseInt(_0x399492(0x1ec))/0x9+parseInt(_0x399492(0x1f0))/0xa;if(_0x1b4b71===_0x181efb)break;else _0x315a3d['push'](_0x315a3d['shift']());}catch(_0xf51d6e){_0x315a3d['push'](_0x315a3d['shift']());}}}(a127_0x5e40,0x49d58));var a127_0x56c29f={};a127_0x56c29f[a127_0x478a76(0x1f2)]=[a127_0x478a76(0x1f1)],a127_0x56c29f[a127_0x478a76(0x1e6)]=['click',a127_0x478a76(0x1f7)];var a127_0x38925b={};a127_0x38925b['driver']=[a127_0x478a76(0x1f1)];var a127_0x552438={};function a127_0x5e40(){var _0x39da85=['638607YTFEUA','1332nXpDvc','568910hhJdtI','takeScreenshot','driver','2XeaNRv','2847920DybOSo','4CHyApG','13517MVsPlt','sendKeys','1930110wHwyRW','manual','element','397893pJuhRf','screenshot','auto','click','exports','1055043IFVJQS','testcase'];a127_0x5e40=function(){return _0x39da85;};return a127_0x5e40();}a127_0x552438[a127_0x478a76(0x1e6)]=[a127_0x478a76(0x1ea)];var a127_0x246de8={};function a127_0xac12(_0x2d9364,_0x12e797){var _0x5e408c=a127_0x5e40();return a127_0xac12=function(_0xac127,_0x3aafbf){_0xac127=_0xac127-0x1e4;var _0x1a0d36=_0x5e408c[_0xac127];return _0x1a0d36;},a127_0xac12(_0x2d9364,_0x12e797);}a127_0x246de8[a127_0x478a76(0x1e9)]=a127_0x56c29f,a127_0x246de8[a127_0x478a76(0x1e8)]=a127_0x38925b,a127_0x246de8[a127_0x478a76(0x1ea)]=a127_0x552438,a127_0x246de8[a127_0x478a76(0x1ed)]={},a127_0x246de8[a127_0x478a76(0x1e5)]={},module[a127_0x478a76(0x1eb)]=a127_0x246de8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x2e0e6b=a128_0x3ea2;(function(_0x20ba20,_0x3d07d8){const _0x1ced2a=a128_0x3ea2,_0x51e0fe=_0x20ba20();while(!![]){try{const _0x4597ef=-parseInt(_0x1ced2a(0x1a1))/0x1*(parseInt(_0x1ced2a(0x1a6))/0x2)+-parseInt(_0x1ced2a(0x195))/0x3+-parseInt(_0x1ced2a(0x1a7))/0x4*(parseInt(_0x1ced2a(0x194))/0x5)+parseInt(_0x1ced2a(0x1b1))/0x6*(parseInt(_0x1ced2a(0x1aa))/0x7)+-parseInt(_0x1ced2a(0x1ae))/0x8+parseInt(_0x1ced2a(0x199))/0x9+parseInt(_0x1ced2a(0x1ab))/0xa;if(_0x4597ef===_0x3d07d8)break;else _0x51e0fe['push'](_0x51e0fe['shift']());}catch(_0x30a46d){_0x51e0fe['push'](_0x51e0fe['shift']());}}}(a128_0x3443,0xb9f25));function a128_0x3ea2(_0x11e11a,_0x461a4c){const _0x3443d8=a128_0x3443();return a128_0x3ea2=function(_0x3ea279,_0x5a6545){_0x3ea279=_0x3ea279-0x191;let _0x4dc149=_0x3443d8[_0x3ea279];return _0x4dc149;},a128_0x3ea2(_0x11e11a,_0x461a4c);}const tryRequire=function(_0x27b56d,_0x28a1cc){const _0x471238=a128_0x3ea2,_0x5bd3a9={'ZURsy':function(_0x2be74d,_0x19be60){return _0x2be74d(_0x19be60);}};try{return _0x5bd3a9[_0x471238(0x1a2)](require,_0x27b56d);}catch{return _0x28a1cc;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a128_0x2e0e6b(0x1a5),{}),percyAppScreenshot=require(a128_0x2e0e6b(0x1b6)),{getCurrentTestData}=require(a128_0x2e0e6b(0x19a)),PerformanceTester=require(a128_0x2e0e6b(0x1b7)),{PERCY_EVENTS:PerformanceEvents}=require(a128_0x2e0e6b(0x192)),logger=require(a128_0x2e0e6b(0x19c))[a128_0x2e0e6b(0x1b0)];percySnapshot&&(exports['snapshot']=async function(){const _0x1d563e=a128_0x2e0e6b,_0x5aaa8c={'CPTaZ':function(_0x54db7d,_0x4f562e){return _0x54db7d!==_0x4f562e;},'OfXhN':function(_0x19b632,_0x307b11){return _0x19b632>=_0x307b11;},'IrLgT':function(_0x3fdc04){return _0x3fdc04();}};if(global[_0x1d563e(0x196)]&&_0x5aaa8c[_0x1d563e(0x19b)](global['browserstackPlatformIndex'],global[_0x1d563e(0x1ad)]))return;const _0x149d98=_0x5aaa8c[_0x1d563e(0x198)](arguments[_0x1d563e(0x1a8)],0x2)?arguments[0x1]:'',_0x279194=_0x5aaa8c[_0x1d563e(0x1a3)](getCurrentTestData),_0x15c45a={};return _0x15c45a[_0x1d563e(0x1b5)]=_0x149d98,_0x15c45a[_0x1d563e(0x1b3)]=_0x279194[_0x1d563e(0x1b5)]||'',_0x15c45a[_0x1d563e(0x197)]=_0x279194[_0x1d563e(0x1ac)]||'',_0x15c45a[_0x1d563e(0x19d)]=global[_0x1d563e(0x196)],await PerformanceTester[_0x1d563e(0x1a0)](PerformanceEvents[_0x1d563e(0x1af)],()=>percySnapshot[_0x1d563e(0x191)](null,arguments),_0x15c45a);});function a128_0x3443(){const _0x2f4d8a=['339444GrkrUI','../../helpers/testhub/utils','CPTaZ','../logger','platformIndex','KSXZo','bkEgX','measure','127657QPuAdg','ZURsy','IrLgT','screenshot','@percy/selenium-webdriver','10MRuaHn','866852VxAipe','length','Agwps','427756keWsXJ','27537280VdEtVY','uuid','browserstackPercyBestPlatform','6445400YkOsEV','SNAPSHOT','winstonLogger','78mqGNgy','Unsupported\x20driver\x20for\x20percy','testCase','screenshotApp','name','@percy/appium-app','../performance/performance-tester','SCREENSHOT','error','apply','../performance/constants','tgeTo','25tLVyUn','890058doXMrl','browserstackPlatformIndex','thTestCaseExecutionId','OfXhN'];a128_0x3443=function(){return _0x2f4d8a;};return a128_0x3443();}percyScreenshot?exports['screenshot']=async function(){const _0x40e79d=a128_0x2e0e6b,_0x517b08={'HXYVS':function(_0x38daef,_0x36ec35){return _0x38daef>=_0x36ec35;},'tgeTo':function(_0x2cb8c3){return _0x2cb8c3();}},_0x3aaed5=_0x517b08['HXYVS'](arguments[_0x40e79d(0x1a8)],0x2)?arguments[0x1]:'',_0xb05f59=_0x517b08[_0x40e79d(0x193)](getCurrentTestData),_0x1525c0={};return _0x1525c0[_0x40e79d(0x1b5)]=_0x3aaed5,_0x1525c0[_0x40e79d(0x1b3)]=_0xb05f59[_0x40e79d(0x1b5)]||'',_0x1525c0[_0x40e79d(0x197)]=_0xb05f59[_0x40e79d(0x1ac)]||'',_0x1525c0[_0x40e79d(0x19d)]=global[_0x40e79d(0x196)],await PerformanceTester[_0x40e79d(0x1a0)](PerformanceEvents[_0x40e79d(0x1b8)],()=>percyScreenshot[_0x40e79d(0x191)](null,arguments),_0x1525c0);}:exports[a128_0x2e0e6b(0x1a4)]=()=>{const _0x57417a=a128_0x2e0e6b,_0x547033={};_0x547033[_0x57417a(0x19e)]=_0x57417a(0x1b2);const _0x3f4234=_0x547033;logger[_0x57417a(0x1b9)](_0x3f4234[_0x57417a(0x19e)]);};exports[a128_0x2e0e6b(0x1b4)]=async function(){const _0x42db61=a128_0x2e0e6b,_0x2ca15e={'bkEgX':function(_0x3f1720,_0x596754){return _0x3f1720>=_0x596754;},'Agwps':function(_0x3dbdad){return _0x3dbdad();}},_0x1c79fc=_0x2ca15e[_0x42db61(0x19f)](arguments[_0x42db61(0x1a8)],0x2)?arguments[0x1]:'',_0x4be617=_0x2ca15e[_0x42db61(0x1a9)](getCurrentTestData),_0x541d27={};return _0x541d27[_0x42db61(0x1b5)]=_0x1c79fc,_0x541d27[_0x42db61(0x1b3)]=_0x4be617['name']||'',_0x541d27[_0x42db61(0x197)]=_0x4be617[_0x42db61(0x1ac)]||'',_0x541d27['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x42db61(0x1a0)](PerformanceEvents['SCREENSHOT_APP'],()=>percyAppScreenshot[_0x42db61(0x191)](null,arguments),_0x541d27);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a129_0x56ea(_0x1fb05e,_0x5ac1f6){var _0x465219=a129_0x4652();return a129_0x56ea=function(_0x56ea95,_0x55ab03){_0x56ea95=_0x56ea95-0x10c;var _0x5eaa57=_0x465219[_0x56ea95];return _0x5eaa57;},a129_0x56ea(_0x1fb05e,_0x5ac1f6);}var a129_0x471d61=a129_0x56ea;(function(_0x52ff26,_0x57fd7c){var _0x3fb25d=a129_0x56ea,_0x3fe8e7=_0x52ff26();while(!![]){try{var _0xa4126e=parseInt(_0x3fb25d(0x112))/0x1*(-parseInt(_0x3fb25d(0x114))/0x2)+-parseInt(_0x3fb25d(0x113))/0x3+-parseInt(_0x3fb25d(0x111))/0x4+-parseInt(_0x3fb25d(0x118))/0x5*(parseInt(_0x3fb25d(0x10d))/0x6)+-parseInt(_0x3fb25d(0x117))/0x7*(parseInt(_0x3fb25d(0x110))/0x8)+parseInt(_0x3fb25d(0x10e))/0x9+-parseInt(_0x3fb25d(0x115))/0xa*(-parseInt(_0x3fb25d(0x10c))/0xb);if(_0xa4126e===_0x57fd7c)break;else _0x3fe8e7['push'](_0x3fe8e7['shift']());}catch(_0x26bff0){_0x3fe8e7['push'](_0x3fe8e7['shift']());}}}(a129_0x4652,0xec35a),module[a129_0x471d61(0x116)]=require(a129_0x471d61(0x10f)));function a129_0x4652(){var _0x253608=['7395712NdxpVC','1237qRkdak','3920919EXMzwM','2194keSgwK','30fdBstZ','exports','574TRfMCn','2045rcrruL','19414747DvPaVL','4020YnQVGz','11779731fVGLsb','./Percy','82864eNmXsD'];a129_0x4652=function(){return _0x253608;};return a129_0x4652();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a130_0x45190c=a130_0x4aeb;(function(_0x2bc709,_0x4ac6bc){const _0x5bff2b=a130_0x4aeb,_0x16de66=_0x2bc709();while(!![]){try{const _0x4d1746=parseInt(_0x5bff2b(0xe3))/0x1*(-parseInt(_0x5bff2b(0xeb))/0x2)+-parseInt(_0x5bff2b(0xcf))/0x3+-parseInt(_0x5bff2b(0xb5))/0x4*(-parseInt(_0x5bff2b(0xe4))/0x5)+-parseInt(_0x5bff2b(0xc8))/0x6*(-parseInt(_0x5bff2b(0xaf))/0x7)+-parseInt(_0x5bff2b(0xc1))/0x8+-parseInt(_0x5bff2b(0xb9))/0x9*(-parseInt(_0x5bff2b(0xb4))/0xa)+parseInt(_0x5bff2b(0xb7))/0xb;if(_0x4d1746===_0x4ac6bc)break;else _0x16de66['push'](_0x16de66['shift']());}catch(_0x161385){_0x16de66['push'](_0x16de66['shift']());}}}(a130_0x1b77,0xb91c1));function a130_0x1b77(){const _0x148166=['4kIUkHG','startPercy','34455289lyZYra','getBestPlatformForPercySnapshot','4095IRmNVw','pUJaW','STOP','measureWrapper','getName','percy','chrome','browserStackPercyOptions','7812488STfjHO','../performance/performance-tester','screenshot','debug','app','bfKcI','firefox','6144492aVLyjv','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','qjkHW','HZEJH','safari','init','browser','3799221AwYmVX','element','start','patchDriverPercy','forEach','START','edge','getDriver','AUTO_CAPTURE','kLhWj','increment','./PercySDK','patch','auto','manual','winstonLogger','Starting\x20percy','./Percy','./PercyCaptureModes','deviceName','1DfFGfg','578185tOjwEJ','getPercyOptions','overrideXforPercy','percyAutoCapture','isUndefined','percyCaptureMode','wTNIQ','2685462FLQhbl','vddzA','../logger','platforms','stopPercy','error','Error\x20patching\x20','browserName','stop','PdnTZ','browserstackPercyBestPlatform','driver','IJGFl','fzXTt','../performance/constants','apply','prototype','MclYx','7idFYqR','toLowerCase','\x20for\x20percy\x20','browserstackPercyMap','browserstackSessionName','1580oPWCEt'];a130_0x1b77=function(){return _0x148166;};return a130_0x1b77();}const Percy=require(a130_0x45190c(0xe0)),PercySDK=require(a130_0x45190c(0xda)),PercyCaptureModes=require(a130_0x45190c(0xe1)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a130_0x45190c(0xed))[a130_0x45190c(0xde)],helper=require('../helper'),PerformanceTester=require(a130_0x45190c(0xc2)),{PERCY_EVENTS:PerformanceEvents}=require(a130_0x45190c(0xf9));function a130_0x4aeb(_0x5059ce,_0x3192cf){const _0x1b7738=a130_0x1b77();return a130_0x4aeb=function(_0x4aebb2,_0x5cbfbe){_0x4aebb2=_0x4aebb2-0xae;let _0x158fe0=_0x1b7738[_0x4aebb2];return _0x158fe0;},a130_0x4aeb(_0x5059ce,_0x3192cf);}exports[a130_0x45190c(0xb6)]=PerformanceTester[a130_0x45190c(0xbc)](PerformanceEvents[a130_0x45190c(0xd4)],async _0x52ce9b=>{const _0x3922aa=a130_0x45190c,_0x1ccf05={};_0x1ccf05[_0x3922aa(0xae)]=_0x3922aa(0xdf);const _0x37cbfe=_0x1ccf05;logger[_0x3922aa(0xc4)](_0x37cbfe['MclYx']);const _0x410669=new Percy(_0x52ce9b),_0x5e08bc=await _0x410669[_0x3922aa(0xd1)]();if(_0x5e08bc)return _0x410669;return null;}),exports[a130_0x45190c(0xef)]=PerformanceTester[a130_0x45190c(0xbc)](PerformanceEvents[a130_0x45190c(0xbb)],async _0x319498=>{const _0x46f0fa=a130_0x45190c,_0x201c2e={};_0x201c2e['HZEJH']='Stopping\x20percy';const _0x27333e=_0x201c2e;return logger[_0x46f0fa(0xc4)](_0x27333e[_0x46f0fa(0xcb)]),_0x319498[_0x46f0fa(0xf3)]();}),exports[a130_0x45190c(0xb8)]=_0x1731d1=>{const _0x5c5588=a130_0x45190c,_0x5f18d7={};_0x5f18d7[_0x5c5588(0xea)]=function(_0x3daa2c,_0x5186df){return _0x3daa2c<_0x5186df;};const _0x3c9d0c=_0x5f18d7,_0x20cd2b={};_0x20cd2b[_0x5c5588(0xbf)]=0x0,_0x20cd2b[_0x5c5588(0xc7)]=0x1,_0x20cd2b[_0x5c5588(0xd5)]=0x2,_0x20cd2b[_0x5c5588(0xcc)]=0x3;const _0x24e256=_0x20cd2b;return _0x1731d1['reduce']((_0x18f7e,_0x4361bf,_0xabbdfb)=>{const _0x38f834=_0x5c5588,_0x2de6dc=_0x1731d1[_0x18f7e];if(_0x4361bf[_0x38f834(0xe2)])return _0x18f7e;if(_0x2de6dc[_0x38f834(0xe2)])return _0xabbdfb;const _0x29ba4b=_0x4361bf['browser']?_0x4361bf[_0x38f834(0xce)]:_0x4361bf[_0x38f834(0xf2)];if(_0x29ba4b&&_0x3c9d0c['wTNIQ'](_0x24e256[_0x29ba4b[_0x38f834(0xb0)]()],_0x24e256[_0x29ba4b[_0x38f834(0xb0)]()]))return _0xabbdfb;return _0x18f7e;},0x0);},exports['percyAutoCapture']=PerformanceTester['measureWrapper'](PerformanceEvents[a130_0x45190c(0xd7)],async(_0x4478c1,_0x3293d1,_0xaa8c5)=>{const _0x1e6e1d=a130_0x45190c,_0x5a7885={};_0x5a7885['bfKcI']=_0x1e6e1d(0xc9);const _0x4c5c31=_0x5a7885,_0x251359=_0x4478c1[_0x1e6e1d(0xb2)];if(helper[_0x1e6e1d(0xe8)](_0x4478c1['browserstackSessionName'])){logger['debug'](_0x4c5c31[_0x1e6e1d(0xc6)]);return;}const _0x1add96=_0x251359[_0x1e6e1d(0xbd)](_0x4478c1[_0x1e6e1d(0xb3)],_0x3293d1);_0xaa8c5[_0x1e6e1d(0xc5)]?await PercySDK['screenshotApp'](_0x4478c1,_0x1add96):await PercySDK[_0x1e6e1d(0xc3)](_0x4478c1,_0x1add96),_0x251359[_0x1e6e1d(0xd9)](_0x4478c1[_0x1e6e1d(0xb3)],_0x3293d1);}),exports[a130_0x45190c(0xd2)]=(_0x4cf165,_0x4f87e0,_0x2c2cbb)=>{const _0x1d651c=a130_0x45190c,_0x3f652f={};_0x3f652f[_0x1d651c(0xec)]=_0x1d651c(0xc0),_0x3f652f['PdnTZ']=_0x1d651c(0xbe),_0x3f652f['UetQd']=function(_0x1edaa5,_0x52aa71){return _0x1edaa5!==_0x52aa71;},_0x3f652f[_0x1d651c(0xf7)]=_0x1d651c(0xdd);const _0x34172e=_0x3f652f;if(!helper['nestedKeyValue'](_0x2c2cbb,[_0x34172e[_0x1d651c(0xec)],_0x34172e[_0x1d651c(0xf4)]]))return;if(_0x2c2cbb[_0x1d651c(0xc0)][_0x1d651c(0xbe)]&&_0x2c2cbb['browserStackPercyOptions']['percyCaptureMode']&&_0x34172e['UetQd'](_0x2c2cbb[_0x1d651c(0xc0)][_0x1d651c(0xe9)],_0x34172e[_0x1d651c(0xf7)])&&!_0x4cf165[_0x1d651c(0xb2)]){global['browserstackSessionName']&&(_0x4cf165[_0x1d651c(0xb3)]=global[_0x1d651c(0xb3)]),_0x4cf165[_0x1d651c(0xb2)]=new PercyCaptureMap();const _0x40d0f2=PercyCaptureModes[_0x2c2cbb[_0x1d651c(0xc0)][_0x1d651c(0xe9)]];_0x40d0f2[_0x1d651c(0xf6)]&&_0x40d0f2[_0x1d651c(0xf6)][_0x1d651c(0xd3)](_0x1d44c8=>this[_0x1d651c(0xe6)](_0x4cf165,_0x1d44c8,_0x2c2cbb)),_0x40d0f2[_0x1d651c(0xd0)]&&_0x40d0f2[_0x1d651c(0xd0)][_0x1d651c(0xd3)](_0x95f0be=>{const _0x222728=_0x1d651c;if(_0x4f87e0['prototype']['patch'+_0x95f0be])return;_0x4f87e0[_0x222728(0xfb)][_0x222728(0xdb)+_0x95f0be]=!![];const _0xafb653=_0x4f87e0[_0x222728(0xfb)][_0x95f0be];_0x4f87e0[_0x222728(0xfb)][_0x95f0be]=async function(){const _0x4d3b92=_0x222728;let _0x541b76=_0xafb653[_0x4d3b92(0xfa)](this,arguments);_0x541b76&&_0x541b76['then']&&(_0x541b76=await _0x541b76);try{const _0x1598f6=this[_0x4d3b92(0xd6)]();await exports[_0x4d3b92(0xe7)](_0x1598f6,_0x95f0be,_0x2c2cbb);}catch(_0x33a5fd){logger[_0x4d3b92(0xf0)]('Error\x20patching\x20'+_0x95f0be+'\x20for\x20percy\x20'+_0x33a5fd);}return _0x541b76;};});}},exports['overrideXforPercy']=function(_0x41a083,_0x5e4461,_0x5e5be7){const _0x45be23=a130_0x45190c,_0x555e8f={};_0x555e8f[_0x45be23(0xf8)]=function(_0x32ed1e,_0x371752){return _0x32ed1e+_0x371752;},_0x555e8f[_0x45be23(0xba)]=_0x45be23(0xdb),_0x555e8f[_0x45be23(0xd8)]=_0x45be23(0xcd);const _0x540fdc=_0x555e8f,_0x20cceb=_0x540fdc[_0x45be23(0xf8)](_0x540fdc[_0x45be23(0xba)],_0x5e4461),_0x1a7173=_0x540fdc[_0x45be23(0xf8)](_0x540fdc[_0x45be23(0xd8)],_0x5e4461),_0x14e6bd=this;if(_0x41a083[_0x20cceb]||!_0x41a083[_0x5e4461])return;_0x41a083[_0x20cceb]=!![],_0x41a083[_0x1a7173]=_0x41a083[_0x5e4461],_0x41a083[_0x5e4461]=async()=>{const _0x57f40a=_0x45be23;try{await _0x14e6bd[_0x57f40a(0xe7)](_0x41a083,_0x5e4461,_0x5e5be7);}catch(_0x2d87b){logger['error'](_0x57f40a(0xf1)+_0x5e4461+_0x57f40a(0xb1)+_0x2d87b);}return await _0x41a083[_0x1a7173][_0x57f40a(0xfa)](_0x41a083,arguments);};},exports[a130_0x45190c(0xe5)]=_0x54128a=>{const _0x1f0c1c=a130_0x45190c,_0xe908a0={};_0xe908a0[_0x1f0c1c(0xca)]=_0x1f0c1c(0xdc);const _0x5a869e=_0xe908a0,_0x3a946d={};_0x3a946d[_0x1f0c1c(0xbe)]=_0x54128a[_0x1f0c1c(0xbe)],_0x3a946d['percyCaptureMode']=_0x54128a[_0x1f0c1c(0xe9)]||_0x5a869e[_0x1f0c1c(0xca)];const _0x861c25=_0x3a946d;_0x54128a['percy']&&(_0x861c25[_0x1f0c1c(0xf5)]=exports['getBestPlatformForPercySnapshot'](_0x54128a[_0x1f0c1c(0xee)]));;return _0x861c25;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a131_0x107db1=a131_0x3206;(function(_0x4b5d20,_0x4c8090){const _0x1cb33e=a131_0x3206,_0x12cd10=_0x4b5d20();while(!![]){try{const _0x163bda=parseInt(_0x1cb33e(0x9e))/0x1*(-parseInt(_0x1cb33e(0xc6))/0x2)+-parseInt(_0x1cb33e(0xe1))/0x3*(parseInt(_0x1cb33e(0xe4))/0x4)+parseInt(_0x1cb33e(0xf1))/0x5*(-parseInt(_0x1cb33e(0x119))/0x6)+-parseInt(_0x1cb33e(0xd6))/0x7+-parseInt(_0x1cb33e(0xe3))/0x8*(-parseInt(_0x1cb33e(0xac))/0x9)+parseInt(_0x1cb33e(0xd4))/0xa*(-parseInt(_0x1cb33e(0xc8))/0xb)+parseInt(_0x1cb33e(0xf8))/0xc;if(_0x163bda===_0x4c8090)break;else _0x12cd10['push'](_0x12cd10['shift']());}catch(_0x4711ef){_0x12cd10['push'](_0x12cd10['shift']());}}}(a131_0x3c4a,0x37080));const a131_0x376870={};a131_0x376870[a131_0x107db1(0x96)]='sdk:setup',a131_0x376870[a131_0x107db1(0xe5)]=a131_0x107db1(0xfd),a131_0x376870[a131_0x107db1(0x11d)]=a131_0x107db1(0x10f),a131_0x376870[a131_0x107db1(0x9b)]='sdk:test',a131_0x376870[a131_0x107db1(0xa3)]=a131_0x107db1(0xd2),a131_0x376870[a131_0x107db1(0x11a)]=a131_0x107db1(0x11e),a131_0x376870[a131_0x107db1(0xcc)]='sdk:driver',a131_0x376870[a131_0x107db1(0xf4)]=a131_0x107db1(0x9d),a131_0x376870[a131_0x107db1(0xd8)]=a131_0x107db1(0xb0),a131_0x376870[a131_0x107db1(0x109)]='sdk:auto-capture',a131_0x376870[a131_0x107db1(0xda)]=a131_0x107db1(0x104),a131_0x376870[a131_0x107db1(0xb6)]=a131_0x107db1(0xcf),a131_0x376870[a131_0x107db1(0x9f)]=a131_0x107db1(0xf5),a131_0x376870[a131_0x107db1(0x106)]=a131_0x107db1(0xea),a131_0x376870['SDK_TURBOSCALE']=a131_0x107db1(0xd3),a131_0x376870[a131_0x107db1(0xa4)]=a131_0x107db1(0x105),a131_0x376870[a131_0x107db1(0xe9)]=a131_0x107db1(0xcb),a131_0x376870[a131_0x107db1(0x9c)]='sdk:driver:post-initialization',a131_0x376870[a131_0x107db1(0xaf)]=a131_0x107db1(0xd7),a131_0x376870[a131_0x107db1(0x10d)]='sdk:cli:download',a131_0x376870[a131_0x107db1(0x108)]=a131_0x107db1(0xf2),a131_0x376870[a131_0x107db1(0xca)]=a131_0x107db1(0xc9),a131_0x376870[a131_0x107db1(0x115)]=a131_0x107db1(0xde),a131_0x376870[a131_0x107db1(0xed)]=a131_0x107db1(0x116),a131_0x376870['SDK_START_BIN_SESSION']=a131_0x107db1(0xbc),a131_0x376870['SDK_CONNECT_BIN_SESSION']=a131_0x107db1(0x107),a131_0x376870[a131_0x107db1(0xf9)]=a131_0x107db1(0xcd),a131_0x376870[a131_0x107db1(0x11b)]=a131_0x107db1(0xad),a131_0x376870['SDK_AUTOMATION_FRAMEWORK_INIT']=a131_0x107db1(0x123),a131_0x376870[a131_0x107db1(0xb9)]=a131_0x107db1(0x117),a131_0x376870[a131_0x107db1(0x113)]='sdk:accessibilityConfig',a131_0x376870[a131_0x107db1(0xe8)]=a131_0x107db1(0x110),a131_0x376870[a131_0x107db1(0x99)]='sdk:aiSelfHealStep',a131_0x376870[a131_0x107db1(0xb3)]=a131_0x107db1(0xf0),a131_0x376870[a131_0x107db1(0xbe)]=a131_0x107db1(0xc0),a131_0x376870[a131_0x107db1(0x122)]=a131_0x107db1(0xc7),a131_0x376870['SDK_CLI_LOG_CREATED_EVENT']=a131_0x107db1(0xb7),a131_0x376870[a131_0x107db1(0xdc)]=a131_0x107db1(0xb8),a131_0x376870[a131_0x107db1(0xc5)]=a131_0x107db1(0xdf),a131_0x376870[a131_0x107db1(0xa7)]=a131_0x107db1(0x102);function a131_0x3c4a(){const _0x266baa=[':session-name','sdk:startBinSession',':driver-takeScreenShot','SDK_TEST_FRAMEWORK_EVENT','AFTER_EACH','sdk:testFrameworkEvent','TURBOSCALE_EVENTS',':app-upload','EVENTS',':get-accessibility-results-summary','SDK_AUTOMATION_FRAMEWORK_STOP','40750qzyFQv','sdk:testSessionEvent','22165GcnjOu','sdk:cli:on-bootstrap','SDK_CLI_ON_BOOTSTRAP','sdk:driver:pre-initialization','SDK_DRIVER','sdk:driverInit','SDK_TURBOSCALE','sdk:testhub',':after-all',':screenshot-app','sdk:post-test','sdk:turboscale','410GDVkWC',':after','3150672cuUpgK','sdk:cli:start','SDK_O11Y','AFTER','SDK_PROXY_SETUP','GET_RESULTS','SDK_CLI_ENQUEUE_TEST_EVENT',':driver-manage','sdk:cli:on-connect','sdk:automationFrameworkStop','KEEP_ALIVE','9fqkkNx',':hub-management','104AAOtGP','31156cVQgBy','SDK_CLEANUP','SESSION_STATUS',':pre-execute','SDK_OBSERVABILITY_CONFIG','SDK_PRE_INITIALIZE','sdk:app-automate',':stop','SESSION_ANNOTATION','SDK_CLI_ON_STOP','SAVE_RESULTS','GET_RESULTS_SUMMARY','sdk:aiSelfHealGetResult','170IpQQsX','sdk:cli:check-update','TESTHUB_EVENTS','SDK_A11Y','sdk:automate',':after-each',':screenshot','10394640dvtGrr','SDK_DRIVER_INIT',':get-accessibility-results',':before-each',':driver-performscan','sdk:cleanup','LOCAL_START','BEFORE',':save-results','AFTER_ALL','sdk:onStop','O11y_EVENTS','sdk:proxy-setup','sdk:percy','SDK_APP_AUTOMATE','sdk:connectBinSession','SDK_CLI_CHECK_UPDATE','SDK_AUTO_CAPTURE',':sync','SESSION_NAME','PRE_EXECUTE','SDK_CLI_DOWNLOAD',':before-all','sdk:pre-test','sdk:observabilityConfig',':post-execute','PERCY_EVENTS','SDK_ACCESSIBILITY_CONFIG','DOWNLOAD','SDK_CLI_ON_CONNECT','sdk:cli:on-stop','sdk:automationFrameworkStart','SCREENSHOT','64248AfPsAe','SDK_HOOK','SDK_FIND_NEAREST_HUB',':session-annotation','SDK_PRE_TEST','sdk:hook','PRINT_BUILDLINK',':get','PERFORM_SCAN','SDK_TEST_SESSION_EVENT','sdk:automationFrameworkInit','SDK_SETUP',':before','AUTOMATE_EVENTS','SDK_AI_SELF_HEAL_STEP','POST_EXECUTE','SDK_TEST','SDK_POST_INITIALIZE','sdk:a11y','8rvZfOG','SDK_AUTOMATE','DRIVER_EVENT','LOCAL_STOP','APP_AUOTMATE_EVENTS','SDK_POST_TEST','SDK_PERCY','QUIT','HUB_MANAGEMENT','SDK_ON_STOP',':print-buildlink',':quit','STOP','SNAPSHOT','306234rfydqY','sdk:findNearestHub','DRIVER_MANAGE','SDK_CLI_START','sdk:o11y',':start','HOOK_EVENTS','SDK_AI_SELF_HEAL_GET_RESULT','A11Y_EVENTS',':local-stop','SDK_TESTHUB','sdk:cli:logCreatedEvent','sdk:cli:enqueueTestEvent','SDK_AUTOMATION_FRAMEWORK_START','START'];a131_0x3c4a=function(){return _0x266baa;};return a131_0x3c4a();}const SDK_EVENTS=a131_0x376870,a131_0x1af25d={};function a131_0x3206(_0x27b936,_0x374873){const _0x3c4a6d=a131_0x3c4a();return a131_0x3206=function(_0x320671,_0x118100){_0x320671=_0x320671-0x96;let _0xc6109f=_0x3c4a6d[_0x320671];return _0xc6109f;},a131_0x3206(_0x27b936,_0x374873);}a131_0x1af25d[a131_0x107db1(0xc3)]=SDK_EVENTS,a131_0x1af25d[a131_0x107db1(0xf3)]={},a131_0x1af25d[a131_0x107db1(0x98)]={},a131_0x1af25d[a131_0x107db1(0xb4)]={},a131_0x1af25d[a131_0x107db1(0x112)]={},a131_0x1af25d[a131_0x107db1(0x103)]={},a131_0x1af25d[a131_0x107db1(0xb2)]={},a131_0x1af25d[a131_0x107db1(0xc1)]={},a131_0x1af25d[a131_0x107db1(0xa2)]={},a131_0x1af25d[a131_0x107db1(0xa0)]={},a131_0x1af25d[a131_0x107db1(0xf3)][a131_0x107db1(0xba)]=SDK_EVENTS[a131_0x107db1(0xb6)]+a131_0x107db1(0xb1),a131_0x1af25d[a131_0x107db1(0xf3)]['STOP']=SDK_EVENTS[a131_0x107db1(0xb6)]+a131_0x107db1(0xeb),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xe0)]=SDK_EVENTS[a131_0x107db1(0x9f)]+':keep-alive',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xa6)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xe2),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xfe)]=SDK_EVENTS[a131_0x107db1(0x9f)]+':local-start',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xa1)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xb5),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xae)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xdd),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0x10b)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xbb),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xe6)]=SDK_EVENTS['SDK_AUTOMATE']+':session-status',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xec)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x107db1(0x11c),a131_0x1af25d[a131_0x107db1(0x98)]['IDLE_TIMEOUT']=SDK_EVENTS['SDK_AUTOMATE']+':idle-timeout',a131_0x1af25d[a131_0x107db1(0x98)]['GENERATE_CI_ARTIFACT']=SDK_EVENTS[a131_0x107db1(0x9f)]+':ci-artifacts',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0x11f)]=SDK_EVENTS[a131_0x107db1(0x9f)]+':print-buildlink',a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0x121)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0xfc),a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0xee)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0x100),a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0xdb)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0xfa),a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0xef)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0xc4),a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0x114)]=SDK_EVENTS[a131_0x107db1(0xa4)]+':download',a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0x118)]=SDK_EVENTS[a131_0x107db1(0xa4)]+a131_0x107db1(0xf7),a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0xba)]=SDK_EVENTS[a131_0x107db1(0xa4)]+':start',a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0xaa)]=SDK_EVENTS[a131_0x107db1(0xa4)]+a131_0x107db1(0xeb),a131_0x1af25d[a131_0x107db1(0x112)]['AUTO_CAPTURE']=SDK_EVENTS[a131_0x107db1(0xa4)]+':auto-capture',a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0xab)]=SDK_EVENTS[a131_0x107db1(0xa4)]+':snapshot',a131_0x1af25d[a131_0x107db1(0x112)]['SCREENSHOT_APP']=SDK_EVENTS['SDK_PERCY']+a131_0x107db1(0xd1),a131_0x1af25d[a131_0x107db1(0x103)]['SYNC']=SDK_EVENTS[a131_0x107db1(0xd8)]+a131_0x107db1(0x10a),a131_0x1af25d[a131_0x107db1(0x103)]['TAKE_SCREENSHOT']=SDK_EVENTS[a131_0x107db1(0xd8)]+a131_0x107db1(0xbd),a131_0x1af25d[a131_0x107db1(0x103)]['PRINT_BUILDLINK']=SDK_EVENTS[a131_0x107db1(0xd8)]+a131_0x107db1(0xa8),a131_0x1af25d[a131_0x107db1(0xb2)]['BEFORE_EACH']=SDK_EVENTS['SDK_HOOK']+a131_0x107db1(0xfb),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0xbf)]=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0xf6),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0x101)]=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0xd0),a131_0x1af25d[a131_0x107db1(0xb2)]['BEFORE_ALL']=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0x10e),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0xff)]=SDK_EVENTS['SDK_HOOK']+a131_0x107db1(0x97),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0xd9)]=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0xd5),a131_0x1af25d[a131_0x107db1(0xc1)][a131_0x107db1(0xa6)]=SDK_EVENTS[a131_0x107db1(0xce)]+a131_0x107db1(0xe2),a131_0x1af25d[a131_0x107db1(0xc1)]['PRINT_BUILDLINK']=SDK_EVENTS[a131_0x107db1(0xce)]+a131_0x107db1(0xa8),a131_0x1af25d[a131_0x107db1(0xa2)]['APP_UPLOAD']=SDK_EVENTS['SDK_APP_AUTOMATE']+a131_0x107db1(0xc2),a131_0x1af25d[a131_0x107db1(0xa0)][a131_0x107db1(0xa5)]=SDK_EVENTS[a131_0x107db1(0xcc)]+a131_0x107db1(0xa9),a131_0x1af25d[a131_0x107db1(0xa0)]['GET']=SDK_EVENTS['SDK_DRIVER']+a131_0x107db1(0x120),a131_0x1af25d[a131_0x107db1(0xa0)][a131_0x107db1(0x10c)]=SDK_EVENTS[a131_0x107db1(0xcc)]+a131_0x107db1(0xe7),a131_0x1af25d[a131_0x107db1(0xa0)][a131_0x107db1(0x9a)]=SDK_EVENTS[a131_0x107db1(0xcc)]+a131_0x107db1(0x111),module['exports']=a131_0x1af25d;
|
|
1
|
+
const a131_0x1e1f5e=a131_0x5056;function a131_0x5056(_0x270e9f,_0x1add3b){const _0x4da428=a131_0x4da4();return a131_0x5056=function(_0x505607,_0x299d81){_0x505607=_0x505607-0x1a1;let _0x30d67a=_0x4da428[_0x505607];return _0x30d67a;},a131_0x5056(_0x270e9f,_0x1add3b);}(function(_0x20fc07,_0x170fa5){const _0x28168a=a131_0x5056,_0x459688=_0x20fc07();while(!![]){try{const _0x56a54f=-parseInt(_0x28168a(0x1b7))/0x1*(-parseInt(_0x28168a(0x1f3))/0x2)+parseInt(_0x28168a(0x1e7))/0x3*(-parseInt(_0x28168a(0x221))/0x4)+-parseInt(_0x28168a(0x20a))/0x5*(-parseInt(_0x28168a(0x1eb))/0x6)+parseInt(_0x28168a(0x1ca))/0x7+parseInt(_0x28168a(0x1f9))/0x8*(-parseInt(_0x28168a(0x208))/0x9)+parseInt(_0x28168a(0x1a5))/0xa*(parseInt(_0x28168a(0x1e9))/0xb)+-parseInt(_0x28168a(0x1e5))/0xc;if(_0x56a54f===_0x170fa5)break;else _0x459688['push'](_0x459688['shift']());}catch(_0x12dade){_0x459688['push'](_0x459688['shift']());}}}(a131_0x4da4,0x3dced));const a131_0x6e61a6={};a131_0x6e61a6[a131_0x1e1f5e(0x1bc)]='sdk:setup',a131_0x6e61a6[a131_0x1e1f5e(0x1c0)]='sdk:cleanup',a131_0x6e61a6[a131_0x1e1f5e(0x222)]='sdk:pre-test',a131_0x6e61a6['SDK_TEST']=a131_0x1e1f5e(0x1bd),a131_0x6e61a6[a131_0x1e1f5e(0x227)]=a131_0x1e1f5e(0x1cb),a131_0x6e61a6['SDK_HOOK']=a131_0x1e1f5e(0x21f),a131_0x6e61a6['SDK_DRIVER']=a131_0x1e1f5e(0x225),a131_0x6e61a6[a131_0x1e1f5e(0x228)]='sdk:a11y',a131_0x6e61a6[a131_0x1e1f5e(0x1a9)]=a131_0x1e1f5e(0x20d),a131_0x6e61a6[a131_0x1e1f5e(0x1cf)]='sdk:auto-capture',a131_0x6e61a6[a131_0x1e1f5e(0x1b6)]=a131_0x1e1f5e(0x21c),a131_0x6e61a6[a131_0x1e1f5e(0x1f8)]=a131_0x1e1f5e(0x201),a131_0x6e61a6[a131_0x1e1f5e(0x1fc)]=a131_0x1e1f5e(0x1cd),a131_0x6e61a6[a131_0x1e1f5e(0x212)]=a131_0x1e1f5e(0x1fe),a131_0x6e61a6[a131_0x1e1f5e(0x214)]=a131_0x1e1f5e(0x1ef),a131_0x6e61a6[a131_0x1e1f5e(0x1c2)]=a131_0x1e1f5e(0x1ab),a131_0x6e61a6[a131_0x1e1f5e(0x22a)]=a131_0x1e1f5e(0x1a8),a131_0x6e61a6['SDK_POST_INITIALIZE']=a131_0x1e1f5e(0x1cc),a131_0x6e61a6[a131_0x1e1f5e(0x1be)]=a131_0x1e1f5e(0x223),a131_0x6e61a6['SDK_CLI_DOWNLOAD']=a131_0x1e1f5e(0x1dd),a131_0x6e61a6[a131_0x1e1f5e(0x1ff)]=a131_0x1e1f5e(0x1af),a131_0x6e61a6[a131_0x1e1f5e(0x21d)]=a131_0x1e1f5e(0x1de),a131_0x6e61a6[a131_0x1e1f5e(0x1f1)]=a131_0x1e1f5e(0x1b1),a131_0x6e61a6['SDK_CLI_ON_STOP']=a131_0x1e1f5e(0x20c),a131_0x6e61a6[a131_0x1e1f5e(0x1d6)]=a131_0x1e1f5e(0x1e8),a131_0x6e61a6[a131_0x1e1f5e(0x1f6)]=a131_0x1e1f5e(0x206),a131_0x6e61a6[a131_0x1e1f5e(0x1ba)]='sdk:driverInit',a131_0x6e61a6[a131_0x1e1f5e(0x1c9)]=a131_0x1e1f5e(0x1fd),a131_0x6e61a6['SDK_AUTOMATION_FRAMEWORK_INIT']=a131_0x1e1f5e(0x1a4),a131_0x6e61a6[a131_0x1e1f5e(0x209)]=a131_0x1e1f5e(0x1c3),a131_0x6e61a6['SDK_ACCESSIBILITY_CONFIG']=a131_0x1e1f5e(0x1df),a131_0x6e61a6['SDK_OBSERVABILITY_CONFIG']=a131_0x1e1f5e(0x1ec),a131_0x6e61a6[a131_0x1e1f5e(0x204)]=a131_0x1e1f5e(0x1da),a131_0x6e61a6[a131_0x1e1f5e(0x220)]=a131_0x1e1f5e(0x1ce),a131_0x6e61a6['SDK_TEST_FRAMEWORK_EVENT']=a131_0x1e1f5e(0x1e1),a131_0x6e61a6['SDK_TEST_SESSION_EVENT']=a131_0x1e1f5e(0x20f),a131_0x6e61a6[a131_0x1e1f5e(0x1d1)]=a131_0x1e1f5e(0x1d8),a131_0x6e61a6[a131_0x1e1f5e(0x1b3)]='sdk:cli:enqueueTestEvent',a131_0x6e61a6['SDK_AUTOMATION_FRAMEWORK_STOP']=a131_0x1e1f5e(0x1aa),a131_0x6e61a6[a131_0x1e1f5e(0x1b9)]=a131_0x1e1f5e(0x1b2);function a131_0x4da4(){const _0x5802ff=['4968430yHGiSi','SDK_HOOK','QUIT','sdk:driver:pre-initialization','SDK_O11Y','sdk:automationFrameworkStop','sdk:percy','GENERATE_CI_ARTIFACT',':driver-manage','AFTER_ALL','sdk:cli:check-update',':post-execute','sdk:cli:on-connect','sdk:onStop','SDK_CLI_ENQUEUE_TEST_EVENT',':auto-capture',':after-all','SDK_PROXY_SETUP','1yHHhwo',':pre-execute','SDK_ON_STOP','SDK_DRIVER_INIT',':get','SDK_SETUP','sdk:test','SDK_CLI_START',':screenshot','SDK_CLEANUP','BEFORE_EACH','SDK_PERCY','sdk:automationFrameworkStart','TESTHUB_EVENTS','SESSION_STATUS','SDK_DRIVER','STOP','exports','SDK_FIND_NEAREST_HUB','207347arJbFZ','sdk:post-test','sdk:driver:post-initialization','sdk:automate','sdk:aiSelfHealGetResult','SDK_AUTO_CAPTURE','HOOK_EVENTS','SDK_CLI_LOG_CREATED_EVENT',':app-upload',':driver-takeScreenShot',':local-start','DRIVER_EVENT','SDK_START_BIN_SESSION','GET','sdk:cli:logCreatedEvent','SCREENSHOT','sdk:aiSelfHealStep','APP_UPLOAD',':get-accessibility-results','sdk:cli:download','sdk:cli:on-bootstrap','sdk:accessibilityConfig','BEFORE_ALL','sdk:testFrameworkEvent','DRIVER_MANAGE',':quit','AFTER_EACH','2154324XUvfWl','PRINT_BUILDLINK','3iKkhGh','sdk:startBinSession','11gmfOzH',':before-each','1285338bOFWVk','sdk:observabilityConfig','AUTO_CAPTURE','SNAPSHOT','sdk:turboscale','START','SDK_CLI_ON_CONNECT',':get-accessibility-results-summary','754662MdZpIG',':stop','PERCY_EVENTS','SDK_CONNECT_BIN_SESSION',':save-results','SDK_TESTHUB','8MthHPO',':session-name',':session-status','SDK_AUTOMATE','sdk:findNearestHub','sdk:app-automate','SDK_CLI_CHECK_UPDATE',':idle-timeout','sdk:testhub',':ci-artifacts','POST_EXECUTE','SDK_AI_SELF_HEAL_STEP','HUB_MANAGEMENT','sdk:connectBinSession',':sync','4057731giCXIq','SDK_AUTOMATION_FRAMEWORK_START','5xSOWkd',':download','sdk:cli:on-stop','sdk:o11y',':hub-management','sdk:testSessionEvent',':after','AUTOMATE_EVENTS','SDK_APP_AUTOMATE','LOCAL_START','SDK_TURBOSCALE','A11Y_EVENTS',':print-buildlink','TURBOSCALE_EVENTS','APP_AUOTMATE_EVENTS',':local-stop',':start','DOWNLOAD','sdk:proxy-setup','SDK_CLI_ON_BOOTSTRAP','GET_RESULTS','sdk:hook','SDK_AI_SELF_HEAL_GET_RESULT','937868iUaraM','SDK_PRE_TEST','sdk:cli:start','PRE_EXECUTE','sdk:driver',':session-annotation','SDK_POST_TEST','SDK_A11Y','O11y_EVENTS','SDK_PRE_INITIALIZE',':driver-performscan','SYNC','AFTER','sdk:automationFrameworkInit'];a131_0x4da4=function(){return _0x5802ff;};return a131_0x4da4();}const SDK_EVENTS=a131_0x6e61a6,a131_0x1ad063={};a131_0x1ad063['EVENTS']=SDK_EVENTS,a131_0x1ad063[a131_0x1e1f5e(0x1c4)]={},a131_0x1ad063[a131_0x1e1f5e(0x211)]={},a131_0x1ad063[a131_0x1e1f5e(0x215)]={},a131_0x1ad063[a131_0x1e1f5e(0x1f5)]={},a131_0x1ad063[a131_0x1e1f5e(0x229)]={},a131_0x1ad063[a131_0x1e1f5e(0x1d0)]={},a131_0x1ad063[a131_0x1e1f5e(0x217)]={},a131_0x1ad063[a131_0x1e1f5e(0x218)]={},a131_0x1ad063[a131_0x1e1f5e(0x1d5)]={},a131_0x1ad063[a131_0x1e1f5e(0x1c4)][a131_0x1e1f5e(0x1f0)]=SDK_EVENTS['SDK_TESTHUB']+a131_0x1e1f5e(0x21a),a131_0x1ad063[a131_0x1e1f5e(0x1c4)][a131_0x1e1f5e(0x1c7)]=SDK_EVENTS[a131_0x1e1f5e(0x1f8)]+a131_0x1e1f5e(0x1f4),a131_0x1ad063[a131_0x1e1f5e(0x211)]['KEEP_ALIVE']=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+':keep-alive',a131_0x1ad063[a131_0x1e1f5e(0x211)][a131_0x1e1f5e(0x205)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x1e1f5e(0x20e),a131_0x1ad063[a131_0x1e1f5e(0x211)][a131_0x1e1f5e(0x213)]=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x1d4),a131_0x1ad063[a131_0x1e1f5e(0x211)]['LOCAL_STOP']=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x219),a131_0x1ad063[a131_0x1e1f5e(0x211)][a131_0x1e1f5e(0x1e2)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x1e1f5e(0x1ad),a131_0x1ad063[a131_0x1e1f5e(0x211)]['SESSION_NAME']=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x1fa),a131_0x1ad063[a131_0x1e1f5e(0x211)][a131_0x1e1f5e(0x1c5)]=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x1fb),a131_0x1ad063[a131_0x1e1f5e(0x211)]['SESSION_ANNOTATION']=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x226),a131_0x1ad063[a131_0x1e1f5e(0x211)]['IDLE_TIMEOUT']=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x200),a131_0x1ad063[a131_0x1e1f5e(0x211)][a131_0x1e1f5e(0x1ac)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x1e1f5e(0x202),a131_0x1ad063[a131_0x1e1f5e(0x211)][a131_0x1e1f5e(0x1e6)]=SDK_EVENTS[a131_0x1e1f5e(0x1fc)]+a131_0x1e1f5e(0x216),a131_0x1ad063[a131_0x1e1f5e(0x215)]['PERFORM_SCAN']=SDK_EVENTS[a131_0x1e1f5e(0x228)]+a131_0x1e1f5e(0x1a1),a131_0x1ad063[a131_0x1e1f5e(0x215)]['SAVE_RESULTS']=SDK_EVENTS['SDK_A11Y']+a131_0x1e1f5e(0x1f7),a131_0x1ad063[a131_0x1e1f5e(0x215)][a131_0x1e1f5e(0x21e)]=SDK_EVENTS[a131_0x1e1f5e(0x228)]+a131_0x1e1f5e(0x1dc),a131_0x1ad063[a131_0x1e1f5e(0x215)]['GET_RESULTS_SUMMARY']=SDK_EVENTS[a131_0x1e1f5e(0x228)]+a131_0x1e1f5e(0x1f2),a131_0x1ad063[a131_0x1e1f5e(0x1f5)][a131_0x1e1f5e(0x21b)]=SDK_EVENTS['SDK_PERCY']+a131_0x1e1f5e(0x20b),a131_0x1ad063[a131_0x1e1f5e(0x1f5)][a131_0x1e1f5e(0x1d9)]=SDK_EVENTS[a131_0x1e1f5e(0x1c2)]+a131_0x1e1f5e(0x1bf),a131_0x1ad063[a131_0x1e1f5e(0x1f5)][a131_0x1e1f5e(0x1f0)]=SDK_EVENTS['SDK_PERCY']+a131_0x1e1f5e(0x21a),a131_0x1ad063[a131_0x1e1f5e(0x1f5)][a131_0x1e1f5e(0x1c7)]=SDK_EVENTS[a131_0x1e1f5e(0x1c2)]+':stop',a131_0x1ad063[a131_0x1e1f5e(0x1f5)][a131_0x1e1f5e(0x1ed)]=SDK_EVENTS[a131_0x1e1f5e(0x1c2)]+a131_0x1e1f5e(0x1b4),a131_0x1ad063[a131_0x1e1f5e(0x1f5)][a131_0x1e1f5e(0x1ee)]=SDK_EVENTS['SDK_PERCY']+':snapshot',a131_0x1ad063[a131_0x1e1f5e(0x1f5)]['SCREENSHOT_APP']=SDK_EVENTS[a131_0x1e1f5e(0x1c2)]+':screenshot-app',a131_0x1ad063[a131_0x1e1f5e(0x229)][a131_0x1e1f5e(0x1a2)]=SDK_EVENTS[a131_0x1e1f5e(0x1a9)]+a131_0x1e1f5e(0x207),a131_0x1ad063[a131_0x1e1f5e(0x229)]['TAKE_SCREENSHOT']=SDK_EVENTS['SDK_O11Y']+a131_0x1e1f5e(0x1d3),a131_0x1ad063[a131_0x1e1f5e(0x229)]['PRINT_BUILDLINK']=SDK_EVENTS[a131_0x1e1f5e(0x1a9)]+a131_0x1e1f5e(0x216),a131_0x1ad063[a131_0x1e1f5e(0x1d0)][a131_0x1e1f5e(0x1c1)]=SDK_EVENTS[a131_0x1e1f5e(0x1a6)]+a131_0x1e1f5e(0x1ea),a131_0x1ad063[a131_0x1e1f5e(0x1d0)][a131_0x1e1f5e(0x1e4)]=SDK_EVENTS[a131_0x1e1f5e(0x1a6)]+':after-each',a131_0x1ad063[a131_0x1e1f5e(0x1d0)][a131_0x1e1f5e(0x1ae)]=SDK_EVENTS['SDK_HOOK']+a131_0x1e1f5e(0x1b5),a131_0x1ad063[a131_0x1e1f5e(0x1d0)][a131_0x1e1f5e(0x1e0)]=SDK_EVENTS[a131_0x1e1f5e(0x1a6)]+':before-all',a131_0x1ad063[a131_0x1e1f5e(0x1d0)]['BEFORE']=SDK_EVENTS['SDK_HOOK']+':before',a131_0x1ad063[a131_0x1e1f5e(0x1d0)][a131_0x1e1f5e(0x1a3)]=SDK_EVENTS[a131_0x1e1f5e(0x1a6)]+a131_0x1e1f5e(0x210),a131_0x1ad063[a131_0x1e1f5e(0x217)]['HUB_MANAGEMENT']=SDK_EVENTS[a131_0x1e1f5e(0x214)]+a131_0x1e1f5e(0x20e),a131_0x1ad063[a131_0x1e1f5e(0x217)][a131_0x1e1f5e(0x1e6)]=SDK_EVENTS[a131_0x1e1f5e(0x214)]+a131_0x1e1f5e(0x216),a131_0x1ad063[a131_0x1e1f5e(0x218)][a131_0x1e1f5e(0x1db)]=SDK_EVENTS[a131_0x1e1f5e(0x212)]+a131_0x1e1f5e(0x1d2),a131_0x1ad063[a131_0x1e1f5e(0x1d5)][a131_0x1e1f5e(0x1a7)]=SDK_EVENTS[a131_0x1e1f5e(0x1c6)]+a131_0x1e1f5e(0x1e3),a131_0x1ad063[a131_0x1e1f5e(0x1d5)][a131_0x1e1f5e(0x1d7)]=SDK_EVENTS[a131_0x1e1f5e(0x1c6)]+a131_0x1e1f5e(0x1bb),a131_0x1ad063[a131_0x1e1f5e(0x1d5)][a131_0x1e1f5e(0x224)]=SDK_EVENTS[a131_0x1e1f5e(0x1c6)]+a131_0x1e1f5e(0x1b8),a131_0x1ad063[a131_0x1e1f5e(0x1d5)][a131_0x1e1f5e(0x203)]=SDK_EVENTS['SDK_DRIVER']+a131_0x1e1f5e(0x1b0),module[a131_0x1e1f5e(0x1c8)]=a131_0x1ad063;
|