browserstack-node-sdk 1.43.0 → 1.44.0
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 +70 -0
- package/generated/sdk-messages_pb.js +550 -0
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +33 -0
- package/package.json +7 -2
- 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/cucumber-sessionDetails.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/playwright-patcher.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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -0
- 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/sharedUtils.js +1 -0
- 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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0xd852c5=a102_0x1a9a;(function(_0x5d9dfd,_0x3ba0de){const _0x53dabe=a102_0x1a9a,_0x43cc56=_0x5d9dfd();while(!![]){try{const _0x2ceb76=parseInt(_0x53dabe(0xe6))/0x1*(parseInt(_0x53dabe(0xb9))/0x2)+-parseInt(_0x53dabe(0xce))/0x3+-parseInt(_0x53dabe(0xcd))/0x4+parseInt(_0x53dabe(0xd1))/0x5*(parseInt(_0x53dabe(0xcb))/0x6)+parseInt(_0x53dabe(0xbc))/0x7*(parseInt(_0x53dabe(0xc2))/0x8)+parseInt(_0x53dabe(0xb1))/0x9*(parseInt(_0x53dabe(0xd9))/0xa)+-parseInt(_0x53dabe(0xb7))/0xb;if(_0x2ceb76===_0x3ba0de)break;else _0x43cc56['push'](_0x43cc56['shift']());}catch(_0x15bbb1){_0x43cc56['push'](_0x43cc56['shift']());}}}(a102_0x58b3,0x4f4e9));const winston=require(a102_0xd852c5(0xbb)),path=require(a102_0xd852c5(0xd6)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir='log',logFormat=winston[a102_0xd852c5(0xc1)](_0x7ae3d9=>{const _0xca5728=a102_0xd852c5,_0x5d773a={};_0x5d773a[_0xca5728(0xd3)]=function(_0x299f85,_0x5e7f12){return _0x299f85!==_0x5e7f12;},_0x5d773a[_0xca5728(0xc0)]=_0xca5728(0xd8),_0x5d773a['XFrLy']=function(_0x1c8213,_0x47473c){return _0x1c8213===_0x47473c;},_0x5d773a[_0xca5728(0xc5)]=_0xca5728(0xc4),_0x5d773a[_0xca5728(0xe4)]=function(_0x1d8731,_0x46ae77){return _0x1d8731===_0x46ae77;};const _0x971aa4=_0x5d773a;return _0x971aa4[_0xca5728(0xd3)](typeof _0x7ae3d9[_0xca5728(0xf8)],_0x971aa4[_0xca5728(0xc0)])&&(_0x7ae3d9[_0xca5728(0xf8)]=JSON[_0xca5728(0xca)](_0x7ae3d9['message'])),global[_0xca5728(0xe8)]?.[_0xca5728(0xea)]?.[_0xca5728(0xee)]&&_0x971aa4[_0xca5728(0xc3)](typeof _0x7ae3d9[_0xca5728(0xf8)],_0x971aa4[_0xca5728(0xc0)])&&(_0x7ae3d9['message']=_0x7ae3d9['message'][_0xca5728(0xf9)](new RegExp(global['session'][_0xca5728(0xea)][_0xca5728(0xee)],'g'),_0x971aa4[_0xca5728(0xc5)])),global[_0xca5728(0xe8)]?.[_0xca5728(0xea)]?.[_0xca5728(0xbe)]&&_0x971aa4['KPjZI'](typeof _0x7ae3d9[_0xca5728(0xf8)],_0x971aa4[_0xca5728(0xc0)])&&(_0x7ae3d9[_0xca5728(0xf8)]=_0x7ae3d9['message'][_0xca5728(0xf9)](new RegExp(global[_0xca5728(0xe8)][_0xca5728(0xea)][_0xca5728(0xbe)],'g'),_0x971aa4[_0xca5728(0xc5)])),_0x7ae3d9;}),fetchLogDir=()=>{const _0x18ab15=a102_0xd852c5;if(process[_0x18ab15(0xb3)]['BROWSERSTACK_INTERNAL_LOG_DIR'])return process[_0x18ab15(0xb3)][_0x18ab15(0xe0)];else!fs[_0x18ab15(0xd0)](tempLogDir)&&fs[_0x18ab15(0xb4)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a102_0x461e35={};function a102_0x58b3(){const _0x2f5be3=['MwHtO','DdHvz','combine','join','getLogDir','BROWSERSTACK_INTERNAL_LOG_DIR','level','transports','EPIPE','KPjZI','logDir','7619TKGiHD','add','session','info','config','colorize','/usage.log','automationLoggerFile','userName','timestamp','uncolorize','fileLogger','4|3|5|1|0|2','initialize','true','error','silly','warn','message','replace','split','http','loggerConsole','144801toDEIL','BROWSERSTACK_AUTOMATION_LOGS','env','mkdirSync','debugLoggerFile','automationLogger','815980chzeMi','code','92FWekhk','YYYY-MM-DD\x20HH:mm:ss','winston','12761oTLbrh','printf','accessKey','debug','uBQOi','format','128aEdlZp','XFrLy','[REDACTED]','zMfsz','cmbwj','createLogger','loggerFile','log','stringify','1002FYaVok','dOStk','65980kNMMLM','1519050nlapRg','buildLogger','existsSync','5155zdYYiO','File','vxqOP','console.info','xfIoy','path','\x20-\x20','string','230qddpPq','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:'];a102_0x58b3=function(){return _0x2f5be3;};return a102_0x58b3();}function a102_0x1a9a(_0x4fe00c,_0x3446af){const _0x58b3a1=a102_0x58b3();return a102_0x1a9a=function(_0x1a9a8f,_0x377213){_0x1a9a8f=_0x1a9a8f-0xb1;let _0x3cbb54=_0x58b3a1[_0x1a9a8f];return _0x3cbb54;},a102_0x1a9a(_0x4fe00c,_0x3446af);}a102_0x461e35['name']=a102_0xd852c5(0xd4);const transports={'loggerConsole':new winston['transports']['Console'](a102_0x461e35),'loggerFile':new winston[(a102_0xd852c5(0xe2))][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,a102_0xd852c5(0xec))}),'debugLoggerFile':new winston['transports'][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,'/usage-debug.log'),'level':a102_0xd852c5(0xf6)}),'debugCliLoggerFile':new winston['transports']['File']({'filename':path[a102_0xd852c5(0xde)](logDir,'/sdk-cli-debug.log'),'level':a102_0xd852c5(0xf6)}),'buildLinkTransport':new winston[(a102_0xd852c5(0xe2))][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,'/usage.log'),'level':a102_0xd852c5(0xf6)})},automationTransports={};process[a102_0xd852c5(0xb3)][a102_0xd852c5(0xb2)]==='true'&&(automationTransports[a102_0xd852c5(0xed)]=new winston['transports'][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,'automation.log'),'level':a102_0xd852c5(0xf6)}));transports[a102_0xd852c5(0xfc)]['on'](a102_0xd852c5(0xf5),_0x26e7a5=>{const _0xa6a9a7=a102_0xd852c5,_0x430ded={};_0x430ded[_0xa6a9a7(0xdc)]=function(_0x271c4e,_0x1bc928){return _0x271c4e===_0x1bc928;},_0x430ded[_0xa6a9a7(0xdb)]=_0xa6a9a7(0xe3),_0x430ded[_0xa6a9a7(0xd5)]=_0xa6a9a7(0xda);const _0x312804=_0x430ded;if(_0x312804['DdHvz'](_0x26e7a5[_0xa6a9a7(0xb8)],_0x312804[_0xa6a9a7(0xdb)])){console[_0xa6a9a7(0xc9)](_0x312804['xfIoy'],_0x26e7a5[_0xa6a9a7(0xf8)]);return;}throw _0x26e7a5;});const a102_0x5dd6ef={};a102_0x5dd6ef['format']=a102_0xd852c5(0xba);const a102_0x431882={};a102_0x431882['level']=!![];const winstonLoggerParams={'format':winston[a102_0xd852c5(0xc1)]['combine'](winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](a102_0x5dd6ef),winston['format']['colorize'](a102_0x431882),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xbd)](_0x3ef436=>_0x3ef436['timestamp']+a102_0xd852c5(0xd7)+_0x3ef436['level']+':\x20'+_0x3ef436[a102_0xd852c5(0xf8)])),'transports':[transports[a102_0xd852c5(0xfc)]]},a102_0xa739bb={};a102_0xa739bb[a102_0xd852c5(0xc1)]='YYYY-MM-DD\x20HH:mm:ss';const a102_0x434489={};a102_0x434489[a102_0xd852c5(0xe1)]=!![];const winstonFileLoggerParams={'format':winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xdd)](winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](a102_0xa739bb),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xeb)](a102_0x434489),winston['format']['printf'](_0x1599ec=>_0x1599ec[a102_0xd852c5(0xe1)]+':\x20'+_0x1599ec['message'])),'transports':[]},a102_0x562a79={};a102_0x562a79[a102_0xd852c5(0xc1)]='YYYY-MM-DD\x20HH:mm:ss';const a102_0x451b9d={};a102_0x451b9d[a102_0xd852c5(0xe1)]=!![];const a102_0x2bf03a={};a102_0x2bf03a[a102_0xd852c5(0xe1)]='silly';const BuildLoggerParams={'format':winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xdd)](winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](a102_0x562a79),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xeb)](a102_0x451b9d),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xbd)](_0x441387=>_0x441387[a102_0xd852c5(0xef)]+a102_0xd852c5(0xd7)+_0x441387['level']+':\x20'+_0x441387[a102_0xd852c5(0xf8)])),'transports':[transports['buildLinkTransport'],new winston[(a102_0xd852c5(0xe2))]['Console'](a102_0x2bf03a)]},a102_0x3ffbb0={};a102_0x3ffbb0[a102_0xd852c5(0xfb)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xe9)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xf7)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xf5)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xbf)]=()=>{},a102_0x3ffbb0['silly']=()=>{},exports[a102_0xd852c5(0xb6)]=process['env']['BROWSERSTACK_AUTOMATION_LOGS']===a102_0xd852c5(0xf4)?winston[a102_0xd852c5(0xc7)]({'format':winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xdd)](winston['format'][a102_0xd852c5(0xf0)](),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](),logFormat(),winston[a102_0xd852c5(0xc1)]['printf'](_0x2ce394=>_0x2ce394[a102_0xd852c5(0xe1)]+':\x20'+_0x2ce394[a102_0xd852c5(0xf8)])),'transports':[automationTransports[a102_0xd852c5(0xed)]]}):a102_0x3ffbb0;const initialize=()=>{const _0x9c244d=a102_0xd852c5,_0x4b2cdb={};_0x4b2cdb[_0x9c244d(0xc6)]=_0x9c244d(0xf2),_0x4b2cdb[_0x9c244d(0xcc)]=_0x9c244d(0xf6);const _0x2082cb=_0x4b2cdb,_0x1f109a=_0x2082cb[_0x9c244d(0xc6)][_0x9c244d(0xfa)]('|');let _0x2e39ec=0x0;while(!![]){switch(_0x1f109a[_0x2e39ec++]){case'0':exports[_0x9c244d(0xf1)][_0x9c244d(0xe7)](transports[_0x9c244d(0xc8)]);continue;case'1':exports['winstonLogger'][_0x9c244d(0xe7)](transports[_0x9c244d(0xb5)]);continue;case'2':exports[_0x9c244d(0xf1)][_0x9c244d(0xe7)](transports['debugLoggerFile']);continue;case'3':transports[_0x9c244d(0xb5)]=new winston[(_0x9c244d(0xe2))][(_0x9c244d(0xd2))]({'filename':path['join'](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x2082cb[_0x9c244d(0xcc)]});continue;case'4':transports[_0x9c244d(0xc8)]=new winston['transports'][(_0x9c244d(0xd2))]({'filename':path['join'](exports[_0x9c244d(0xe5)],LOG_FILE_NAME)});continue;case'5':exports['winstonLogger'][_0x9c244d(0xe7)](transports[_0x9c244d(0xc8)]);continue;}break;}};exports['winstonLogger']=new winston['createLogger'](winstonLoggerParams),exports[a102_0xd852c5(0xf1)]=new winston[(a102_0xd852c5(0xc7))](winstonFileLoggerParams),exports[a102_0xd852c5(0xcf)]=new winston['createLogger'](BuildLoggerParams),exports[a102_0xd852c5(0xe5)]=logDir,exports[a102_0xd852c5(0xdf)]=()=>{return exports['logDir'];},exports[a102_0xd852c5(0xe2)]=transports,exports[a102_0xd852c5(0xf3)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103_0x1b6950=a103_0xa3b6;(function(_0x335b0a,_0x15daad){const _0x570b68=a103_0xa3b6,_0xccac3e=_0x335b0a();while(!![]){try{const _0x205d41=-parseInt(_0x570b68(0x155))/0x1*(-parseInt(_0x570b68(0x157))/0x2)+parseInt(_0x570b68(0x161))/0x3+-parseInt(_0x570b68(0x16d))/0x4+-parseInt(_0x570b68(0x160))/0x5*(-parseInt(_0x570b68(0x15b))/0x6)+-parseInt(_0x570b68(0x15c))/0x7+-parseInt(_0x570b68(0x167))/0x8+parseInt(_0x570b68(0x16a))/0x9*(parseInt(_0x570b68(0x16e))/0xa);if(_0x205d41===_0x15daad)break;else _0xccac3e['push'](_0xccac3e['shift']());}catch(_0x4fd92a){_0xccac3e['push'](_0xccac3e['shift']());}}}(a103_0x2d13,0x64ffe));function a103_0xa3b6(_0x2e49e4,_0x1555ba){const _0x2d1350=a103_0x2d13();return a103_0xa3b6=function(_0xa3b6b9,_0x64b9c4){_0xa3b6b9=_0xa3b6b9-0x150;let _0x159487=_0x2d1350[_0xa3b6b9];return _0x159487;},a103_0xa3b6(_0x2e49e4,_0x1555ba);}const globals=require(a103_0x1b6950(0x151)),helper=require(a103_0x1b6950(0x156)),logger=require(a103_0x1b6950(0x166))['winstonLogger'];function a103_0x2d13(){const _0x4cff58=['gEQZE','setGlobal','125546TrwARH','./helper','12RCHRCf','length','EjiNO','pVySv','6cBojaq','4316431lOAYxe','testMeta-','getGlobal','warn','2232770rthAwB','764901QUvmyG','identifier','get','exports','testMeta','./logger','6057056CzBEbG','lcnc','zEJKp','603HcpDHw','KsoeP','getCentralUser','1518460ArGbGl','106310FotNSW','ZzaHX','IzAFg','set','./globals','string'];a103_0x2d13=function(){return _0x4cff58;};return a103_0x2d13();}module[a103_0x1b6950(0x164)]=class TestMetadata{static[a103_0x1b6950(0x150)](_0x40f47f={}){const _0x54f6df=a103_0x1b6950,_0x2a3cc5={};_0x2a3cc5[_0x54f6df(0x169)]='testRunUUID',_0x2a3cc5['ZzaHX']=function(_0x37be3f,_0x5ec626){return _0x37be3f===_0x5ec626;},_0x2a3cc5[_0x54f6df(0x170)]=_0x54f6df(0x152),_0x2a3cc5[_0x54f6df(0x16b)]=function(_0x237465,_0x2b976a){return _0x237465<=_0x2b976a;},_0x2a3cc5[_0x54f6df(0x15a)]=_0x54f6df(0x165),_0x2a3cc5[_0x54f6df(0x159)]='The\x20metadata\x20object\x20is\x20not\x20valid.';const _0x29f32e=_0x2a3cc5,_0x534b21=globals[_0x54f6df(0x15e)](_0x29f32e[_0x54f6df(0x169)]),_0x141bf0=_0x40f47f[_0x54f6df(0x162)];helper['getCentralUser']()[_0x54f6df(0x168)]&&(_0x29f32e[_0x54f6df(0x16f)](typeof _0x141bf0,_0x29f32e['IzAFg'])&&_0x29f32e[_0x54f6df(0x16b)](_0x141bf0[_0x54f6df(0x158)],0x28)?_0x534b21?globals[_0x54f6df(0x154)](_0x54f6df(0x15d)+_0x534b21,_0x40f47f):globals[_0x54f6df(0x154)](_0x29f32e['pVySv'],_0x40f47f):logger[_0x54f6df(0x15f)](_0x29f32e[_0x54f6df(0x159)]));}static[a103_0x1b6950(0x163)](_0x34835e){const _0x2eafd4=a103_0x1b6950,_0x43ee86={};_0x43ee86[_0x2eafd4(0x153)]=_0x2eafd4(0x165);const _0x8892ed=_0x43ee86;if(helper[_0x2eafd4(0x16c)]()[_0x2eafd4(0x168)])return globals[_0x2eafd4(0x15e)](_0x2eafd4(0x15d)+_0x34835e)||globals[_0x2eafd4(0x15e)](_0x8892ed[_0x2eafd4(0x153)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102_0x4e52fa=a102_0x49bd;(function(_0x398d01,_0x38ffcd){const _0x24cb7e=a102_0x49bd,_0x24d24d=_0x398d01();while(!![]){try{const _0x3e010f=parseInt(_0x24cb7e(0x1d0))/0x1*(-parseInt(_0x24cb7e(0x1dd))/0x2)+-parseInt(_0x24cb7e(0x21b))/0x3+parseInt(_0x24cb7e(0x1fd))/0x4*(parseInt(_0x24cb7e(0x200))/0x5)+-parseInt(_0x24cb7e(0x20d))/0x6*(parseInt(_0x24cb7e(0x1ff))/0x7)+parseInt(_0x24cb7e(0x1e5))/0x8+-parseInt(_0x24cb7e(0x1e6))/0x9+parseInt(_0x24cb7e(0x1ce))/0xa;if(_0x3e010f===_0x38ffcd)break;else _0x24d24d['push'](_0x24d24d['shift']());}catch(_0x45f75d){_0x24d24d['push'](_0x24d24d['shift']());}}}(a102_0x5058,0xb8b3d));const {aiSdkWrapper}=require(a102_0x4e52fa(0x1fe)),{commandRepository}=require(a102_0x4e52fa(0x1aa)),PerformanceTester=require(a102_0x4e52fa(0x1f3)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require(a102_0x4e52fa(0x1ee)),constants=require(a102_0x4e52fa(0x225)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a102_0x4e52fa(0x226)),util=require(a102_0x4e52fa(0x209));exports['overrideExecute']=(_0x403dcf,_0x1b4d28)=>{const _0x2cee9e=a102_0x4e52fa,_0x436fb0={'gsSJc':_0x2cee9e(0x1a0),'scrwn':_0x2cee9e(0x1c3),'jGXMy':function(_0x9e0c29){return _0x9e0c29();},'JjiIF':_0x2cee9e(0x1c9),'kkLLZ':function(_0x34e9a7,_0x16c3f9){return _0x34e9a7===_0x16c3f9;},'BGeuM':'findElement','uaKcn':'aiHeal_isHealingEnabled','SmtVt':_0x2cee9e(0x1e0),'khpfv':_0x2cee9e(0x1a6),'WFPBK':_0x2cee9e(0x1f0),'kCDXq':'JavascriptError','KziQB':function(_0x1ee745,_0x510c05){return _0x1ee745===_0x510c05;},'NmgoI':_0x2cee9e(0x222),'GdXBi':function(_0x2176bb,_0x3d23a9){return _0x2176bb+_0x3d23a9;},'UcxCs':_0x2cee9e(0x1db),'YsHtM':_0x2cee9e(0x1a5),'MAgDu':function(_0x22bfec,_0x6103aa){return _0x22bfec+_0x6103aa;},'buiff':function(_0x469bbf,_0x2de53d){return _0x469bbf+_0x2de53d;},'eyfHA':_0x2cee9e(0x212),'xLKZv':_0x2cee9e(0x1d6),'Xftum':function(_0x28044b,_0x2f4e2a){return _0x28044b&&_0x2f4e2a;},'ivdoK':function(_0x47147c,_0x2ed5bd){return _0x47147c===_0x2ed5bd;},'EvVGx':function(_0x56901c,_0x2b76de){return _0x56901c+_0x2b76de;},'ailmP':_0x2cee9e(0x1da),'aXHkH':_0x2cee9e(0x1fa),'kJzzI':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','hlMdd':_0x2cee9e(0x214),'ZycoX':_0x2cee9e(0x1ab),'DuqtX':_0x2cee9e(0x1d4),'cTVew':_0x2cee9e(0x1d9),'xPVri':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','XXkHC':_0x2cee9e(0x207),'OLbiq':_0x2cee9e(0x1c6),'CPFZB':function(_0x594063,_0x30e07e){return _0x594063===_0x30e07e;},'gEhfx':'string','ydThq':'capability','FKwTl':'browserstack.local','HhRud':_0x2cee9e(0x1c8),'ocRdk':_0x2cee9e(0x1d5)},_0x145105=_0x403dcf[_0x2cee9e(0x1ea)]||(helper[_0x2cee9e(0x1fc)](_0x1b4d28,[_0x436fb0[_0x2cee9e(0x1eb)],_0x436fb0[_0x2cee9e(0x1ef)]])||helper[_0x2cee9e(0x1fc)](_0x1b4d28,[_0x436fb0['ydThq'],_0x436fb0[_0x2cee9e(0x20e)],_0x436fb0[_0x2cee9e(0x1d7)]]));if(!globals[_0x2cee9e(0x1b7)](_0x436fb0['gsSJc'])&&!globals['getGlobal'](_0x436fb0['uaKcn'])&&_0x145105)return;_0x403dcf[_0x2cee9e(0x1ea)]=!![],_0x403dcf[_0x2cee9e(0x1a3)]=_0x403dcf[_0x2cee9e(0x1b0)],_0x403dcf['execute']=async _0x3c3ab0=>{const _0xc1fff6=_0x2cee9e,_0x41cc21={'nlEUr':_0x436fb0[_0xc1fff6(0x208)],'qdICL':_0x436fb0[_0xc1fff6(0x1e8)],'SOwXR':function(_0x2af478,_0x5ec4cf){return _0x436fb0['kkLLZ'](_0x2af478,_0x5ec4cf);},'VEpWv':_0x436fb0[_0xc1fff6(0x217)],'zxNMv':_0x436fb0[_0xc1fff6(0x1d2)],'aacVx':_0x436fb0['SmtVt'],'ZcPtP':function(_0x3ba6e1){const _0x2b1e9a=_0xc1fff6;return _0x436fb0[_0x2b1e9a(0x221)](_0x3ba6e1);},'ZavMF':_0x436fb0[_0xc1fff6(0x1cc)],'YoAkX':_0x436fb0[_0xc1fff6(0x1c0)],'Kqqmq':function(_0x3c2092,_0x48802f){return _0x436fb0['kkLLZ'](_0x3c2092,_0x48802f);},'DwuKM':_0x436fb0['kCDXq'],'sdPrc':function(_0x7dd210,_0x2e5194){const _0x392cfc=_0xc1fff6;return _0x436fb0[_0x392cfc(0x20b)](_0x7dd210,_0x2e5194);},'aSlVg':function(_0x13ecf6,_0x102a5f){const _0x463a2e=_0xc1fff6;return _0x436fb0[_0x463a2e(0x1ae)](_0x13ecf6,_0x102a5f);},'lLhGm':_0x436fb0[_0xc1fff6(0x1ec)],'IEuVD':function(_0x76afb7,_0xd18de7){return _0x436fb0['GdXBi'](_0x76afb7,_0xd18de7);},'boYQe':_0x436fb0[_0xc1fff6(0x1b3)],'tMXOt':_0x436fb0[_0xc1fff6(0x1de)],'jFXaJ':function(_0x33ea74,_0x46cb8e){const _0x10d80c=_0xc1fff6;return _0x436fb0[_0x10d80c(0x213)](_0x33ea74,_0x46cb8e);},'dVJTi':function(_0x2cb459,_0x2d8f22){const _0x2cdad9=_0xc1fff6;return _0x436fb0[_0x2cdad9(0x1b9)](_0x2cb459,_0x2d8f22);},'TXekM':function(_0xeba52,_0x5de7f6){const _0x28a7e6=_0xc1fff6;return _0x436fb0[_0x28a7e6(0x1a1)](_0xeba52,_0x5de7f6);},'UojqR':_0x436fb0[_0xc1fff6(0x1c4)],'MSOIi':_0x436fb0[_0xc1fff6(0x201)],'auMYR':function(_0x1d492e){const _0x24bf46=_0xc1fff6;return _0x436fb0[_0x24bf46(0x221)](_0x1d492e);},'Qexqi':function(_0x438ba2,_0x1220e4){const _0x3c32b9=_0xc1fff6;return _0x436fb0[_0x3c32b9(0x1a2)](_0x438ba2,_0x1220e4);},'BLGoT':function(_0x282f8c,_0xfbf502){return _0x436fb0['ivdoK'](_0x282f8c,_0xfbf502);},'zIGhZ':function(_0x5b6923,_0xc49ba5){return _0x436fb0['EvVGx'](_0x5b6923,_0xc49ba5);},'AQtVN':_0x436fb0[_0xc1fff6(0x1af)],'bAdiA':_0x436fb0['aXHkH'],'XfrhY':_0x436fb0[_0xc1fff6(0x1b6)],'pEjGn':function(_0xbf356e,_0x5606d4){const _0x53b2d8=_0xc1fff6;return _0x436fb0[_0x53b2d8(0x1b9)](_0xbf356e,_0x5606d4);},'BgwkN':function(_0x1879ec,_0x29b497){const _0x3bb956=_0xc1fff6;return _0x436fb0[_0x3bb956(0x1b9)](_0x1879ec,_0x29b497);},'UTkrW':_0x436fb0[_0xc1fff6(0x1cd)],'vlGZE':function(_0x114cf4,_0x324ee5){const _0x4d9562=_0xc1fff6;return _0x436fb0[_0x4d9562(0x1d1)](_0x114cf4,_0x324ee5);},'YIaGh':_0x436fb0[_0xc1fff6(0x1c5)],'AErBG':_0x436fb0[_0xc1fff6(0x1b8)],'ogcBV':_0x436fb0[_0xc1fff6(0x1f1)],'UScpX':_0x436fb0[_0xc1fff6(0x1a4)]};try{const _0x178ddf={};_0x178ddf['command']=_0x3c3ab0[_0xc1fff6(0x19d)],await PerformanceTester[_0xc1fff6(0x1ed)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x267ce9=_0xc1fff6;if(!commandRepository[_0x267ce9(0x1e4)]()&&globals[_0x267ce9(0x1b7)](_0x436fb0['gsSJc'])){const _0x3618d7=PerformanceTester[_0x267ce9(0x1ed)](_0x436fb0[_0x267ce9(0x1ca)],async()=>{const _0x317b70=_0x267ce9;try{commandRepository[_0x317b70(0x21c)](!![]),await aiSdkWrapper[_0x317b70(0x1b2)]((await _0x403dcf['getSession']())[_0x317b70(0x20c)]());const _0x2a2775=globals[_0x317b70(0x1b7)](_0x41cc21[_0x317b70(0x1e9)]);_0x2a2775&&commandRepository['setAiSessionTimeStamp']((await _0x403dcf[_0x317b70(0x1c7)]())[_0x317b70(0x20c)]());}catch(_0x467104){logger['error']('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x467104);}});await _0x436fb0['jGXMy'](_0x3618d7);}},_0x178ddf)();const _0x32edc5=await _0x403dcf[_0xc1fff6(0x1a3)](_0x3c3ab0);try{if(_0x436fb0[_0xc1fff6(0x1d1)](_0x3c3ab0['name_'],_0x436fb0[_0xc1fff6(0x1e1)])||_0x436fb0[_0xc1fff6(0x20b)](_0x3c3ab0[_0xc1fff6(0x19d)],_0x436fb0[_0xc1fff6(0x1f8)])){const _0x3d7cfd=_0x3c3ab0[_0xc1fff6(0x1d4)]&&_0x3c3ab0['parameters_']['script'],_0x2b0476=_0x3c3ab0[_0xc1fff6(0x1d4)]&&_0x3c3ab0['parameters_']['args'],_0x34fc86=_0x2b0476&&util[_0xc1fff6(0x1f7)]('%j',_0x2b0476);if(_0x3d7cfd&&_0x436fb0[_0xc1fff6(0x1bd)](typeof _0x3d7cfd,_0x436fb0['gEhfx'])){const _0x368595=constants[_0xc1fff6(0x1a9)][_0xc1fff6(0x20f)](_0x3d6a21=>_0x3d7cfd['includes'](_0x3d6a21)||_0x34fc86&&_0x34fc86[_0xc1fff6(0x21a)](_0x3d6a21));if(_0x368595){const _0x301e15={};_0x301e15[_0xc1fff6(0x1f2)]=_0x368595,_0x301e15['parameters']=_0x2b0476;const _0xf8b473={};_0xf8b473[_0xc1fff6(0x1b5)]=_0x32edc5;const _0x4f1c00={};_0x4f1c00['request']=_0x301e15,_0x4f1c00[_0xc1fff6(0x220)]=_0xf8b473,automationLogger['silly']('['+new Date()[_0xc1fff6(0x1bf)]()+_0xc1fff6(0x1f6)+util[_0xc1fff6(0x1f7)]('%j',_0x4f1c00));}}}}catch(_0x208b86){logger[_0xc1fff6(0x216)](_0xc1fff6(0x1d3)+_0x208b86[_0xc1fff6(0x1f9)]);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x43a4a8=_0xc1fff6;if(!helper[_0x43a4a8(0x223)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x43a4a8(0x1b7)](_0x41cc21[_0x43a4a8(0x1ac)]))&&_0x41cc21['SOwXR'](_0x3c3ab0[_0x43a4a8(0x19d)],_0x41cc21[_0x43a4a8(0x1b4)])&&!_0x3c3ab0[_0x43a4a8(0x1a7)]&&globals['getGlobal'](_0x41cc21[_0x43a4a8(0x1e9)])&&globals[_0x43a4a8(0x1b7)](_0x41cc21['zxNMv'])){const _0x6b8205=new Date(),_0x17561b=PerformanceTester[_0x43a4a8(0x1ed)](_0x41cc21[_0x43a4a8(0x211)],async()=>{const _0x3892df=_0x43a4a8;return await aiSdkWrapper[_0x3892df(0x19e)](_0x1b4d28,_0x403dcf,_0x3c3ab0);});await _0x41cc21[_0x43a4a8(0x21f)](_0x17561b);}},{'command':_0x3c3ab0[_0xc1fff6(0x19d)]})(),_0x32edc5;}catch(_0x291f56){await PerformanceTester[_0xc1fff6(0x1ed)](PerformanceDriverEvents[_0xc1fff6(0x1dc)],async()=>{const _0x40cc22=_0xc1fff6;logger[_0x40cc22(0x206)](_0x41cc21[_0x40cc22(0x1d8)]);try{if(!helper['isBrowserstackInfra']()&&(_0x41cc21['SOwXR'](_0x291f56['name'],_0x41cc21[_0x40cc22(0x19f)])||_0x41cc21[_0x40cc22(0x1e7)](_0x291f56[_0x40cc22(0x1bc)],_0x41cc21['DwuKM']))&&_0x41cc21[_0x40cc22(0x202)](_0x3c3ab0['name_'],_0x41cc21[_0x40cc22(0x1b4)])&&commandRepository[_0x40cc22(0x218)]()&&globals[_0x40cc22(0x1b7)](_0x41cc21[_0x40cc22(0x1e9)])&&globals['getGlobal'](_0x41cc21['zxNMv'])){_0x41cc21[_0x40cc22(0x1cb)](_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x21d)],_0x41cc21[_0x40cc22(0x1b1)])?logger['info'](_0x41cc21['IEuVD'](_0x41cc21[_0x40cc22(0x1df)](_0x41cc21[_0x40cc22(0x205)],_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)]),_0x41cc21['tMXOt'])):logger['info'](_0x41cc21['jFXaJ'](_0x41cc21[_0x40cc22(0x20a)](_0x41cc21[_0x40cc22(0x1a8)](_0x41cc21[_0x40cc22(0x1f5)](_0x41cc21[_0x40cc22(0x215)],_0x3c3ab0[_0x40cc22(0x1d4)]['using']),':\x20'),_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)]),_0x41cc21[_0x40cc22(0x1cf)]));const _0x5213ad=PerformanceTester[_0x40cc22(0x1ed)](_0x41cc21['MSOIi'],async()=>{const _0x5154a6=_0x40cc22;return await aiSdkWrapper[_0x5154a6(0x1c1)](_0x1b4d28,_0x403dcf,_0x3c3ab0);}),_0x5a01c9=new Date(),{locatorType:_0x297adf,locatorValue:_0x5b1508,commandHealed:_0x549707}=await _0x41cc21[_0x40cc22(0x21e)](_0x5213ad);if(_0x41cc21['Qexqi'](_0x297adf,_0x5b1508)){_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x21d)]=_0x297adf,_0x3c3ab0['parameters_'][_0x40cc22(0x210)]=_0x5b1508,_0x3c3ab0[_0x40cc22(0x1a7)]=!![];const _0x5cecf8=_0x403dcf[_0x40cc22(0x1b0)](_0x3c3ab0);return _0x41cc21[_0x40cc22(0x204)](_0x297adf,_0x41cc21[_0x40cc22(0x1b1)])?logger[_0x40cc22(0x1f4)](_0x41cc21[_0x40cc22(0x203)](_0x41cc21[_0x40cc22(0x1e3)],_0x5b1508)):logger['info'](_0x41cc21['dVJTi'](_0x41cc21[_0x40cc22(0x1a8)](_0x41cc21[_0x40cc22(0x1df)](_0x41cc21['bAdiA'],_0x297adf),':\x20'),_0x5b1508)),_0x5cecf8;}else!_0x549707&&(_0x41cc21[_0x40cc22(0x202)](_0x297adf,_0x41cc21['lLhGm'])?logger['info'](_0x41cc21['TXekM'](_0x41cc21[_0x40cc22(0x1ad)],_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)])):logger[_0x40cc22(0x1f4)](_0x41cc21['pEjGn'](_0x41cc21['jFXaJ'](_0x41cc21['BgwkN'](_0x41cc21[_0x40cc22(0x1be)],_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x21d)]),':\x20'),_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)])));}!_0x145105&&_0x41cc21[_0x40cc22(0x224)](_0x3c3ab0[_0x40cc22(0x19d)],_0x41cc21[_0x40cc22(0x1bb)])&&helper['nestedKeyValue'](_0x3c3ab0,[_0x41cc21[_0x40cc22(0x1e2)],_0x41cc21[_0x40cc22(0x219)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x40cc22(0x20f)](_0x2d560d=>{const _0x36079f=_0x40cc22;return _0x291f56[_0x36079f(0x1fb)]()[_0x36079f(0x21a)](_0x2d560d);})&&helper[_0x40cc22(0x1c2)](_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x1d9)],!![]);}catch(_0x29c678){logger['debug'](_0x41cc21[_0x40cc22(0x1ba)],_0x29c678);}},{'success':![],'failure':_0x291f56})();throw _0x291f56;}};};function a102_0x49bd(_0x46a2e4,_0x500933){const _0x5058e4=a102_0x5058();return a102_0x49bd=function(_0x49bd83,_0x225830){_0x49bd83=_0x49bd83-0x19d;let _0x1a8f35=_0x5058e4[_0x49bd83];return _0x1a8f35;},a102_0x49bd(_0x46a2e4,_0x500933);}function a102_0x5058(){const _0x427406=['message','Successfully\x20healed\x20command\x20using\x20new\x20','toString','nestedKeyValue','8EwHuYn','./ai-sdk/aiSdkWrapper','7VvQujA','1350255RlirnX','xLKZv','sdPrc','zIGhZ','BLGoT','boYQe','debug','executeAsyncScript','gsSJc','util','dVJTi','KziQB','getId','8290488dcihjP','HhRud','find','value','aacVx','findElement\x20command\x20failed\x20with\x20','GdXBi','Healing\x20failed\x20for\x20command\x20using\x20','UojqR','silly','BGeuM','isSelfHealEnabled','ogcBV','includes','3692211rlxEQu','setTcgTokenStatus','using','auMYR','ZcPtP','response','jGXMy','css\x20selector','isBrowserstackInfra','vlGZE','../bin/utils/constants','./performance/constants','name_','handleSuccess','YoAkX','aiHeal_isAuthenticated','buiff','Xftum','initExecute','xPVri',';\x20Trying\x20to\x20heal','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','skipHealingSuccess','jFXaJ','AUTOMATION_LOG_COMMANDS','./ai-sdk/autoHealHelper','get','qdICL','XfrhY','kkLLZ','ailmP','execute','lLhGm','setTcgToken','UcxCs','VEpWv','body','kJzzI','getGlobal','DuqtX','MAgDu','UScpX','YIaGh','name','CPFZB','UTkrW','toISOString','WFPBK','handleFailure','getNudgeLocalNotSetError','aiHeal:setToken','eyfHA','ZycoX','executeScript','getSession','bstack:options','aiSdk_defaultLogDataEnabled','scrwn','aSlVg','khpfv','hlMdd','40503960QCxiVq','tMXOt','16KwyYrH','ivdoK','uaKcn','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','parameters_','local','aiHeal:findElementFailure','ocRdk','ZavMF','url','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','findElement\x20command\x20failed\x20with\x20cssPath:\x20','POST_EXECUTE','182656gukTgY','YsHtM','IEuVD','aiHeal:findElementSuccess','XXkHC','AErBG','AQtVN','getTcgTokenStatus','7613368ZIerLs','6407055HnHtXI','Kqqmq','JjiIF','nlEUr','patchExecute','ydThq','NmgoI','measureWrapper','./helper','FKwTl','NoSuchElementError','cTVew','command','./performance/performance-tester','info','TXekM','][\x20SDK-AUTOMATION\x20]\x20','format','OLbiq'];a102_0x5058=function(){return _0x427406;};return a102_0x5058();}
|
|
1
|
+
const a104_0x215da7=a104_0x1189;function a104_0x1189(_0x3fdcc5,_0x107e6a){const _0x32099e=a104_0x3209();return a104_0x1189=function(_0x118945,_0x89cef8){_0x118945=_0x118945-0x166;let _0x29a1f7=_0x32099e[_0x118945];return _0x29a1f7;},a104_0x1189(_0x3fdcc5,_0x107e6a);}(function(_0x17ab92,_0x2519c6){const _0x365351=a104_0x1189,_0x44d260=_0x17ab92();while(!![]){try{const _0x195bd4=parseInt(_0x365351(0x1a9))/0x1*(-parseInt(_0x365351(0x1b6))/0x2)+-parseInt(_0x365351(0x18f))/0x3*(-parseInt(_0x365351(0x167))/0x4)+parseInt(_0x365351(0x1b4))/0x5+-parseInt(_0x365351(0x198))/0x6+parseInt(_0x365351(0x191))/0x7*(parseInt(_0x365351(0x19c))/0x8)+-parseInt(_0x365351(0x1bc))/0x9+-parseInt(_0x365351(0x1aa))/0xa*(-parseInt(_0x365351(0x179))/0xb);if(_0x195bd4===_0x2519c6)break;else _0x44d260['push'](_0x44d260['shift']());}catch(_0x18f005){_0x44d260['push'](_0x44d260['shift']());}}}(a104_0x3209,0x192e0));const {aiSdkWrapper}=require(a104_0x215da7(0x1b9)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a104_0x215da7(0x174)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a104_0x215da7(0x17e)),helper=require(a104_0x215da7(0x1af)),constants=require(a104_0x215da7(0x1c7)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a104_0x215da7(0x16b)),util=require(a104_0x215da7(0x19b));exports[a104_0x215da7(0x1c3)]=(_0x239907,_0x164433)=>{const _0x134481=a104_0x215da7,_0x108ca2={'OHOHq':_0x134481(0x180),'aBYmQ':_0x134481(0x1da),'nfWBe':function(_0x2cb657){return _0x2cb657();},'iontE':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','lmlda':function(_0x584949,_0x560248){return _0x584949===_0x560248;},'rZwhF':_0x134481(0x190),'OYZHP':function(_0xc615fd,_0x5bbff4){return _0xc615fd===_0x5bbff4;},'weEEh':'JavascriptError','pongK':function(_0x42ae6e,_0x36d1b7){return _0x42ae6e===_0x36d1b7;},'sspak':'findElement','ZkYYZ':_0x134481(0x18e),'dkQaa':function(_0x22d7c3,_0x103ad9){return _0x22d7c3===_0x103ad9;},'eyECV':_0x134481(0x177),'lEPMy':function(_0x5d70d3,_0x4b97f3){return _0x5d70d3+_0x4b97f3;},'GyJAD':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','mwdHf':';\x20Trying\x20to\x20heal','WsAeD':function(_0x84eb57,_0x593636){return _0x84eb57+_0x593636;},'CIAzV':function(_0x2b26a8,_0xe9d6bd){return _0x2b26a8+_0xe9d6bd;},'sspvM':function(_0x6e5a16,_0x279c7b){return _0x6e5a16+_0x279c7b;},'IqfMf':'findElement\x20command\x20failed\x20with\x20','rNwuS':'aiHeal:findElementFailure','noDZQ':function(_0x1eb26c,_0x107b37){return _0x1eb26c&&_0x107b37;},'zKFJZ':function(_0x194336,_0x3ed250){return _0x194336+_0x3ed250;},'iaZsO':_0x134481(0x1d6),'iOwdX':function(_0x1d5010,_0x4db239){return _0x1d5010+_0x4db239;},'pNfUN':function(_0x43ae0d,_0xab5f80){return _0x43ae0d+_0xab5f80;},'CuKvh':function(_0x575ec4,_0x2a5a4f){return _0x575ec4+_0x2a5a4f;},'AcQwb':'Successfully\x20healed\x20command\x20using\x20new\x20','fkjMD':function(_0x192fa4,_0x19f16b){return _0x192fa4===_0x19f16b;},'IrWYP':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','bpCmC':function(_0x2afcea,_0x3e49cd){return _0x2afcea+_0x3e49cd;},'oxrvg':function(_0x5f3d53,_0x457519){return _0x5f3d53+_0x457519;},'OSoWK':function(_0xba605f,_0x5b432d){return _0xba605f+_0x5b432d;},'qbdKL':_0x134481(0x1c4),'EtPJU':function(_0x54b12d,_0x434b14){return _0x54b12d===_0x434b14;},'rRNal':_0x134481(0x17c),'necLe':'parameters_','Ymhnk':_0x134481(0x1c0),'GYOBe':_0x134481(0x1c8),'upweS':_0x134481(0x172),'RfVxl':_0x134481(0x19a),'zQonU':function(_0x2d8fe6){return _0x2d8fe6();},'FxWTG':_0x134481(0x18c),'bWiua':'executeScript','EhFkK':function(_0x4e2b56,_0x75d41e){return _0x4e2b56===_0x75d41e;},'DjujH':'string','AaSSU':_0x134481(0x1a3),'GYALo':_0x134481(0x170),'PzKHP':_0x134481(0x193),'BJEfn':'local'},_0x492b93=_0x239907[_0x134481(0x187)]||(helper['nestedKeyValue'](_0x164433,[_0x108ca2[_0x134481(0x1a0)],_0x108ca2['GYALo']])||helper[_0x134481(0x1c6)](_0x164433,[_0x108ca2[_0x134481(0x1a0)],_0x108ca2['PzKHP'],_0x108ca2['BJEfn']]));if(!globals['getGlobal'](_0x108ca2[_0x134481(0x1d7)])&&!globals['getGlobal'](_0x108ca2[_0x134481(0x18a)])&&_0x492b93)return;_0x239907[_0x134481(0x187)]=!![],_0x239907['initExecute']=_0x239907['execute'],_0x239907[_0x134481(0x1d0)]=async _0x1b55c5=>{const _0x293344=_0x134481,_0x450af9={'fKPer':_0x108ca2[_0x293344(0x1d7)],'nBKuY':_0x108ca2['upweS'],'SNaiQ':function(_0x3862a2,_0x31dbdf){const _0x443a13=_0x293344;return _0x108ca2[_0x443a13(0x168)](_0x3862a2,_0x31dbdf);},'tKcsh':_0x108ca2['sspak'],'bTVZV':_0x108ca2[_0x293344(0x18a)],'PlcMn':_0x108ca2['RfVxl'],'MxAcr':function(_0x4c1ae3){const _0x3220d5=_0x293344;return _0x108ca2[_0x3220d5(0x194)](_0x4c1ae3);}};try{const _0x16aa18={};_0x16aa18[_0x293344(0x1b3)]=_0x1b55c5[_0x293344(0x1c2)],await PerformanceTester[_0x293344(0x1d9)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x4b29be=_0x293344;if(!commandRepository[_0x4b29be(0x1d8)]()&&globals[_0x4b29be(0x16a)](_0x108ca2[_0x4b29be(0x1d7)])){const _0x363513=PerformanceTester[_0x4b29be(0x1d9)](_0x108ca2[_0x4b29be(0x1ad)],async()=>{const _0x3bf9f3=_0x4b29be;try{commandRepository[_0x3bf9f3(0x184)](!![]),await aiSdkWrapper[_0x3bf9f3(0x16e)]((await _0x239907[_0x3bf9f3(0x1a7)]())[_0x3bf9f3(0x19e)]());const _0x351b9f=globals[_0x3bf9f3(0x16a)](_0x450af9[_0x3bf9f3(0x1b2)]);_0x351b9f&&commandRepository[_0x3bf9f3(0x19f)]((await _0x239907[_0x3bf9f3(0x1a7)]())[_0x3bf9f3(0x19e)]());}catch(_0x278bc4){logger['error'](_0x3bf9f3(0x1a6)+_0x278bc4);}});await _0x108ca2[_0x4b29be(0x1b8)](_0x363513);}},_0x16aa18)();const _0x23e48e=await _0x239907['initExecute'](_0x1b55c5);try{if(_0x108ca2[_0x293344(0x185)](_0x1b55c5[_0x293344(0x1c2)],_0x108ca2['FxWTG'])||_0x108ca2[_0x293344(0x1d2)](_0x1b55c5['name_'],_0x108ca2['bWiua'])){const _0x456522=_0x1b55c5[_0x293344(0x16d)]&&_0x1b55c5[_0x293344(0x16d)][_0x293344(0x1cc)],_0x5d1b02=_0x1b55c5[_0x293344(0x16d)]&&_0x1b55c5[_0x293344(0x16d)][_0x293344(0x1ab)],_0x2deb34=_0x5d1b02&&util['format']('%j',_0x5d1b02);if(_0x456522&&_0x108ca2[_0x293344(0x1c1)](typeof _0x456522,_0x108ca2[_0x293344(0x17d)])){const _0x3c3e0f=constants[_0x293344(0x171)][_0x293344(0x1cf)](_0x5ec991=>_0x456522[_0x293344(0x1bf)](_0x5ec991)||_0x2deb34&&_0x2deb34[_0x293344(0x1bf)](_0x5ec991));if(_0x3c3e0f){const _0x342e76={};_0x342e76[_0x293344(0x1b3)]=_0x3c3e0f,_0x342e76[_0x293344(0x173)]=_0x5d1b02;const _0x2073da={};_0x2073da[_0x293344(0x1a1)]=_0x23e48e;const _0xc210e9={};_0xc210e9[_0x293344(0x1a4)]=_0x342e76,_0xc210e9[_0x293344(0x188)]=_0x2073da,automationLogger[_0x293344(0x17b)]('['+new Date()['toISOString']()+_0x293344(0x169)+util[_0x293344(0x186)]('%j',_0xc210e9));}}}}catch(_0x3e4fa4){logger[_0x293344(0x17b)](_0x293344(0x181)+_0x3e4fa4[_0x293344(0x16f)]);}return await PerformanceTester[_0x293344(0x1d9)](PerformanceDriverEvents[_0x293344(0x1ae)],async()=>{const _0x590805=_0x293344;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x590805(0x199)]()||globals[_0x590805(0x16a)](_0x450af9[_0x590805(0x1a5)]))&&_0x450af9[_0x590805(0x175)](_0x1b55c5[_0x590805(0x1c2)],_0x450af9['tKcsh'])&&!_0x1b55c5[_0x590805(0x195)]&&globals['getGlobal'](_0x450af9['fKPer'])&&globals[_0x590805(0x16a)](_0x450af9[_0x590805(0x1cd)])){const _0x29f89b=new Date(),_0x59e736=PerformanceTester[_0x590805(0x1d9)](_0x450af9['PlcMn'],async()=>{const _0xe05664=_0x590805;return await aiSdkWrapper[_0xe05664(0x1d4)](_0x164433,_0x239907,_0x1b55c5);});await _0x450af9[_0x590805(0x192)](_0x59e736);}},{'command':_0x1b55c5[_0x293344(0x1c2)]})(),_0x23e48e;}catch(_0x256bde){await PerformanceTester[_0x293344(0x1d9)](PerformanceDriverEvents[_0x293344(0x1ae)],async()=>{const _0x204e2b=_0x293344;logger[_0x204e2b(0x1d1)](_0x108ca2[_0x204e2b(0x1d5)]);try{if(!helper[_0x204e2b(0x1be)]()&&(_0x108ca2[_0x204e2b(0x1d2)](_0x256bde[_0x204e2b(0x197)],_0x108ca2[_0x204e2b(0x1a2)])||_0x108ca2[_0x204e2b(0x1ac)](_0x256bde[_0x204e2b(0x197)],_0x108ca2[_0x204e2b(0x17a)]))&&_0x108ca2[_0x204e2b(0x185)](_0x1b55c5['name_'],_0x108ca2[_0x204e2b(0x18b)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x204e2b(0x16a)](_0x108ca2[_0x204e2b(0x1d7)])&&globals['getGlobal'](_0x108ca2[_0x204e2b(0x18a)])){_0x108ca2['dkQaa'](_0x1b55c5[_0x204e2b(0x16d)]['using'],_0x108ca2[_0x204e2b(0x1ca)])?logger[_0x204e2b(0x182)](_0x108ca2[_0x204e2b(0x18d)](_0x108ca2[_0x204e2b(0x18d)](_0x108ca2[_0x204e2b(0x1c9)],_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1bb)]),_0x108ca2[_0x204e2b(0x1b7)])):logger[_0x204e2b(0x182)](_0x108ca2['WsAeD'](_0x108ca2[_0x204e2b(0x1bd)](_0x108ca2[_0x204e2b(0x196)](_0x108ca2['lEPMy'](_0x108ca2[_0x204e2b(0x1c5)],_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1cb)]),':\x20'),_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1bb)]),_0x108ca2[_0x204e2b(0x1b7)]));const _0x34892b=PerformanceTester[_0x204e2b(0x1d9)](_0x108ca2[_0x204e2b(0x1ce)],async()=>{const _0x313d93=_0x204e2b;return await aiSdkWrapper[_0x313d93(0x19d)](_0x164433,_0x239907,_0x1b55c5);}),_0xef9cbf=new Date(),{locatorType:_0x5b4bd4,locatorValue:_0x483509,commandHealed:_0x200a72}=await _0x108ca2[_0x204e2b(0x1b8)](_0x34892b);if(_0x108ca2['noDZQ'](_0x5b4bd4,_0x483509)){_0x1b55c5[_0x204e2b(0x16d)]['using']=_0x5b4bd4,_0x1b55c5['parameters_'][_0x204e2b(0x1bb)]=_0x483509,_0x1b55c5[_0x204e2b(0x195)]=!![];const _0x1e21aa=_0x239907[_0x204e2b(0x1d0)](_0x1b55c5);return _0x108ca2['OYZHP'](_0x5b4bd4,_0x108ca2[_0x204e2b(0x1ca)])?logger['info'](_0x108ca2[_0x204e2b(0x176)](_0x108ca2[_0x204e2b(0x1ba)],_0x483509)):logger[_0x204e2b(0x182)](_0x108ca2['iOwdX'](_0x108ca2[_0x204e2b(0x1b0)](_0x108ca2['CuKvh'](_0x108ca2['AcQwb'],_0x5b4bd4),':\x20'),_0x483509)),_0x1e21aa;}else!_0x200a72&&(_0x108ca2[_0x204e2b(0x178)](_0x5b4bd4,_0x108ca2[_0x204e2b(0x1ca)])?logger[_0x204e2b(0x182)](_0x108ca2['lEPMy'](_0x108ca2[_0x204e2b(0x189)],_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1bb)])):logger[_0x204e2b(0x182)](_0x108ca2['bpCmC'](_0x108ca2['oxrvg'](_0x108ca2[_0x204e2b(0x1d3)](_0x108ca2[_0x204e2b(0x1a8)],_0x1b55c5['parameters_']['using']),':\x20'),_0x1b55c5[_0x204e2b(0x16d)]['value'])));}!_0x492b93&&_0x108ca2[_0x204e2b(0x168)](_0x1b55c5['name_'],_0x108ca2[_0x204e2b(0x1b1)])&&helper[_0x204e2b(0x1c6)](_0x1b55c5,[_0x108ca2[_0x204e2b(0x166)],_0x108ca2[_0x204e2b(0x1b5)]])&&!!constants[_0x204e2b(0x16c)][_0x204e2b(0x1cf)](_0x5eacd0=>{const _0x331d53=_0x204e2b;return _0x256bde[_0x331d53(0x183)]()[_0x331d53(0x1bf)](_0x5eacd0);})&&helper[_0x204e2b(0x17f)](_0x1b55c5[_0x204e2b(0x16d)]['url'],!![]);}catch(_0x873598){logger[_0x204e2b(0x1d1)](_0x108ca2['GYOBe'],_0x873598);}},{'success':![],'failure':_0x256bde})();throw _0x256bde;}};};function a104_0x3209(){const _0x3eec6c=['qbdKL','27gfvqyj','70fKeshL','args','OYZHP','aBYmQ','POST_EXECUTE','./helper','pNfUN','rRNal','fKPer','command','628830QHRJin','Ymhnk','9302EcTZXa','mwdHf','nfWBe','./ai-sdk/aiSdkWrapper','iaZsO','value','17901LjiJVp','CIAzV','isBrowserstackInfra','includes','url','EhFkK','name_','overrideExecute','Healing\x20failed\x20for\x20command\x20using\x20','IqfMf','nestedKeyValue','../bin/utils/constants','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','GyJAD','eyECV','using','script','bTVZV','rNwuS','find','execute','debug','lmlda','OSoWK','handleSuccess','iontE','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','OHOHq','getTcgTokenStatus','measureWrapper','aiHeal:setToken','necLe','15244DeinmK','EtPJU','][\x20SDK-AUTOMATION\x20]\x20','getGlobal','./performance/constants','NUDGE_LOCAL_ERRORS','parameters_','setTcgToken','message','browserstack.local','AUTOMATION_LOG_COMMANDS','aiSdk_defaultLogDataEnabled','parameters','./performance/performance-tester','SNaiQ','zKFJZ','css\x20selector','fkjMD','51205UAJhbF','weEEh','silly','get','DjujH','./logger','getNudgeLocalNotSetError','aiHeal_isAuthenticated','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','info','toString','setTcgTokenStatus','pongK','format','patchExecute','response','IrWYP','ZkYYZ','sspak','executeAsyncScript','lEPMy','aiHeal_isHealingEnabled','147aybkdS','NoSuchElementError','466907UCerAt','MxAcr','bstack:options','zQonU','skipHealingSuccess','sspvM','name','1086534TVvKNi','isSelfHealEnabled','aiHeal:findElementSuccess','util','8jxCeuH','handleFailure','getId','setAiSessionTimeStamp','AaSSU','body','rZwhF','capability','request','nBKuY','Error\x20in\x20handling\x20TCG\x20Auth:\x20','getSession'];a104_0x3209=function(){return _0x3eec6c;};return a104_0x3209();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a105_0x2ec4f7=a105_0x4905;function a105_0x4905(_0x2c172e,_0x20f9c4){const _0x54855e=a105_0x5485();return a105_0x4905=function(_0x490546,_0x252d92){_0x490546=_0x490546-0x17b;let _0xefe85b=_0x54855e[_0x490546];return _0xefe85b;},a105_0x4905(_0x2c172e,_0x20f9c4);}function a105_0x5485(){const _0x79f79a=['overrideQuit','overrideTakeScreenshot','initQuit','end','402kaByrH','DOltQ','then','catch','pid','takeScreenshot','qTJVF','quit','wniGt','1657cEnBrf','true','VOQsI','env','1357840KcGvtm','./performance/performance-tester','emit','./performance/constants','92656KNBqae','403239cWWtsT','TAKE_SCREENSHOT','patchQuit','469212acEhBt','patchScreenshot','TEST_SCREENSHOT','287262LlMIjp','8651480cBvYiW','tqVag','PNyEW','371zjlATd','quitCount_','KxYGS','28jNpDWe','initScreenshot','toISOString'];a105_0x5485=function(){return _0x79f79a;};return a105_0x5485();}(function(_0x374fda,_0x5da053){const _0x47b239=a105_0x4905,_0x4fff7c=_0x374fda();while(!![]){try{const _0x508c78=-parseInt(_0x47b239(0x18d))/0x1*(parseInt(_0x47b239(0x184))/0x2)+parseInt(_0x47b239(0x196))/0x3*(parseInt(_0x47b239(0x17d))/0x4)+parseInt(_0x47b239(0x191))/0x5+-parseInt(_0x47b239(0x199))/0x6+-parseInt(_0x47b239(0x1a0))/0x7*(-parseInt(_0x47b239(0x195))/0x8)+-parseInt(_0x47b239(0x19c))/0x9+-parseInt(_0x47b239(0x19d))/0xa;if(_0x508c78===_0x5da053)break;else _0x4fff7c['push'](_0x4fff7c['shift']());}catch(_0xf9bd75){_0x4fff7c['push'](_0x4fff7c['shift']());}}}(a105_0x5485,0x7e75c));const PerformanceTester=require(a105_0x2ec4f7(0x192)),O11yEvents=require(a105_0x2ec4f7(0x194))['O11y_EVENTS'];exports[a105_0x2ec4f7(0x181)]=_0x57229d=>{const _0x40eddc=a105_0x2ec4f7,_0x4145cc={'PNyEW':_0x40eddc(0x19b),'qTJVF':function(_0x1fb0b7,_0xf780f9){return _0x1fb0b7(_0xf780f9);},'bwXFV':function(_0x3e54c1,_0x34bbbb){return _0x3e54c1!==_0x34bbbb;},'VOQsI':_0x40eddc(0x18e)};if(_0x4145cc['bwXFV'](process[_0x40eddc(0x190)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x4145cc[_0x40eddc(0x18f)]))return;if(_0x57229d[_0x40eddc(0x19a)])return;_0x57229d[_0x40eddc(0x19a)]=!![],_0x57229d[_0x40eddc(0x17e)]=_0x57229d[_0x40eddc(0x189)],_0x57229d['takeScreenshot']=()=>{const _0xc7e643=_0x40eddc,_0x408ebd={'wniGt':_0x4145cc[_0xc7e643(0x19f)],'DOltQ':function(_0x5c473e,_0x51ca02){const _0x3ef4f8=_0xc7e643;return _0x4145cc[_0x3ef4f8(0x18a)](_0x5c473e,_0x51ca02);}};return new Promise(function(_0x4855b8,_0x2d51f8){const _0x2b013=_0xc7e643;_0x57229d[_0x2b013(0x17e)]()[_0x2b013(0x186)](_0x4d1c59=>{const _0x2ce7aa=_0x2b013;PerformanceTester['start'](O11yEvents[_0x2ce7aa(0x197)]),process[_0x2ce7aa(0x193)]('bs:addLog:'+process[_0x2ce7aa(0x188)],{'timestamp':new Date()[_0x2ce7aa(0x17f)](),'message':_0x4d1c59,'kind':_0x408ebd[_0x2ce7aa(0x18c)]}),_0x408ebd['DOltQ'](_0x4855b8,_0x4d1c59),PerformanceTester['end'](O11yEvents[_0x2ce7aa(0x197)]);})[_0x2b013(0x187)](_0x16ec73=>{const _0xfb671d=_0x2b013;PerformanceTester[_0xfb671d(0x183)](O11yEvents['TAKE_SCREENSHOT']),_0x408ebd[_0xfb671d(0x185)](_0x2d51f8,_0x16ec73);});});};},exports[a105_0x2ec4f7(0x180)]=(_0x1ee1a9,_0x150975=null)=>{const _0x11bdde=a105_0x2ec4f7,_0xdb27ff={'tqVag':function(_0x5e491c){return _0x5e491c();},'KxYGS':function(_0x18674d,_0x1529fd){return _0x18674d>_0x1529fd;}};if(_0x1ee1a9[_0x11bdde(0x198)])return;_0x1ee1a9[_0x11bdde(0x198)]=!![],_0x1ee1a9[_0x11bdde(0x182)]=_0x1ee1a9[_0x11bdde(0x18b)],_0x1ee1a9[_0x11bdde(0x18b)]=()=>{const _0x54650a=_0x11bdde;if(_0x150975){_0x150975[_0x54650a(0x17b)]+=0x1;if(_0xdb27ff['KxYGS'](_0x150975['quitCount_'],0x1))return _0x1ee1a9[_0x54650a(0x182)]();}else{_0x1ee1a9['quitCount_']+=0x1;if(_0xdb27ff[_0x54650a(0x17c)](_0x1ee1a9['quitCount_'],0x1))return _0x1ee1a9['initQuit']();}return new Promise(function(_0x629b88){const _0x54e92f=_0x54650a;_0xdb27ff[_0x54e92f(0x19e)](_0x629b88);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x130689=a106_0x5a46;function a106_0x5a46(_0x53a738,_0x5686c5){const _0x145cf7=a106_0x145c();return a106_0x5a46=function(_0x5a4687,_0x39fc52){_0x5a4687=_0x5a4687-0xcb;let _0x4f048e=_0x145cf7[_0x5a4687];return _0x4f048e;},a106_0x5a46(_0x53a738,_0x5686c5);}(function(_0x196ae5,_0x1b9612){const _0x5a3091=a106_0x5a46,_0x4b8894=_0x196ae5();while(!![]){try{const _0x3aaad3=parseInt(_0x5a3091(0xce))/0x1*(-parseInt(_0x5a3091(0x108))/0x2)+-parseInt(_0x5a3091(0x10e))/0x3+parseInt(_0x5a3091(0xcc))/0x4+-parseInt(_0x5a3091(0x116))/0x5+-parseInt(_0x5a3091(0x104))/0x6+-parseInt(_0x5a3091(0x110))/0x7+parseInt(_0x5a3091(0x10b))/0x8*(parseInt(_0x5a3091(0xfe))/0x9);if(_0x3aaad3===_0x1b9612)break;else _0x4b8894['push'](_0x4b8894['shift']());}catch(_0x573419){_0x4b8894['push'](_0x4b8894['shift']());}}}(a106_0x145c,0x38084));const fs=require('fs'),path=require(a106_0x130689(0xd0)),os=require('os'),{spawn}=require('child_process'),helper=require(a106_0x130689(0xe2)),logger=require(a106_0x130689(0x100))[a106_0x130689(0xea)],{getLogDir}=require(a106_0x130689(0x100)),testHubConstants=require(a106_0x130689(0x101)),PerformanceTester=require(a106_0x130689(0xe8)),{PERCY_EVENTS:PerformanceEvents}=require(a106_0x130689(0xcb)),PercyBinary=require(a106_0x130689(0x10d));function a106_0x145c(){const _0x4694fe=['BROWSERSTACK_TESTHUB_UUID','winstonLogger','stderr','NSdOE','env','UWSAO','debug','Msugo','WKCLy','CIDZU','isRunning','QDHQf','Percy\x20fetch\x20token\x20success','YEKDV','GET',':start','sRCAd','start','pipe','projectName','TmOXz','7319961aXrDEQ','YZBaF','../logger','../../helpers/testhub/constants','version','automate','589254bnjbro','percy/healthcheck','push','fetchPercyToken','52826zUqOlo','Percy\x20config\x20created\x20at\x20','tmpdir','8Hapniw','end','./PercyBinary','866466MdboNm','stringify','240660PjePRm','soBYl','EGUMg','percyOptions','isProcessRunning','QemfE','1044460GlbJeI','percy.json','writeFile','../../helpers/performance/constants','1770708pNXHzs','close','15SqPzvb','error','path','app:exec','flags','TPUen','app','&type=','stop','XZQUp','assign','token','nZigj','QuqLs','api/app_percy/get_project_token?name=','getBinaryPath','exec','DOWNLOAD','ENV_VAR','healthcheck','../helper','xpTbV','exec:stop','rcGwG','createPercyConfig','nodeRequest','../../helpers/performance/performance-tester'];a106_0x145c=function(){return _0x4694fe;};return a106_0x145c();}class Percy{#logfile=path['join'](getLogDir(),'percy.log');#address=process[a106_0x130689(0xed)]['PERCY_SERVER_ADDRESS']||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a106_0x130689(0x114)]=![];constructor(_0x19303d){const _0x23d619=a106_0x130689;this.#config=_0x19303d,!!_0x19303d[_0x23d619(0xd4)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x198505=a106_0x130689;if(!this.#binaryPath){const _0x281be5=new PercyBinary();PerformanceTester[_0x198505(0xfa)](PerformanceEvents[_0x198505(0xdf)]),this.#binaryPath=await _0x281be5[_0x198505(0xdd)](this.#config),PerformanceTester[_0x198505(0x10c)](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x242b32){return new Promise(_0x1370ad=>setTimeout(_0x1370ad,_0x242b32));}async[a106_0x130689(0xe1)](){const _0x13002d=a106_0x130689,_0x25c1c5={};_0x25c1c5[_0x13002d(0xd7)]=_0x13002d(0xf7),_0x25c1c5['TmOXz']=_0x13002d(0x105);const _0x338e30=_0x25c1c5;try{const _0x5d16ff=await helper[_0x13002d(0xe7)](_0x338e30[_0x13002d(0xd7)],_0x338e30[_0x13002d(0xfd)],null,null,this.#address);if(_0x5d16ff)return!![];}catch(_0x51cc87){return![];}}async['start'](){const _0x1bb872=a106_0x130689,_0x122d9a={'rcGwG':_0x1bb872(0xd1),'Msugo':_0x1bb872(0xde),'EGUMg':function(_0x571e0a,_0x14475f,_0x14e97d,_0x903510){return _0x571e0a(_0x14475f,_0x14e97d,_0x903510);},'TPUen':_0x1bb872(0xcd),'YZBaF':'Percy\x20healthcheck\x20successful'},_0xb62e81=await this.#getBinaryPath(),_0x5350e4={};_0x5350e4[_0x1bb872(0xd2)]='a';const _0x36e148=fs['createWriteStream'](this.#logfile,_0x5350e4),_0x781625=await this[_0x1bb872(0x107)](),_0x569f10=await this[_0x1bb872(0xe6)]();if(!_0x781625)return![];const _0x5b7f0a=[(this.#isApp?_0x122d9a[_0x1bb872(0xe5)]:_0x122d9a[_0x1bb872(0xf0)])+_0x1bb872(0xf8)];_0x569f10&&_0x5b7f0a[_0x1bb872(0x106)]('-c',_0x569f10);this.#proc=_0x122d9a[_0x1bb872(0x112)](spawn,_0xb62e81,_0x5b7f0a,{'env':Object[_0x1bb872(0xd8)](process[_0x1bb872(0xed)],{'PERCY_TOKEN':_0x781625,'TH_BUILD_UUID':process[_0x1bb872(0xed)][testHubConstants[_0x1bb872(0xe0)][_0x1bb872(0xe9)]]})}),this.#proc['stdout'][_0x1bb872(0xfb)](_0x36e148),this.#proc[_0x1bb872(0xeb)][_0x1bb872(0xfb)](_0x36e148),this['isProcessRunning']=!![];var _0x5d8484=this;this.#proc['on'](_0x122d9a[_0x1bb872(0xd3)],function(_0x5e4694){const _0xee4104=_0x1bb872;_0x5d8484[_0xee4104(0x114)]=![];});do{const _0x264474=await this['healthcheck']();if(_0x264474)return logger[_0x1bb872(0xef)](_0x122d9a[_0x1bb872(0xff)]),!![];await this.#sleep(0x3e8);}while(this[_0x1bb872(0x114)]);return![];}async[a106_0x130689(0xd6)](){const _0x34bb0c=a106_0x130689,_0x415a3f={'CIDZU':function(_0x1e5e30,_0x1ec307){return _0x1e5e30(_0x1ec307);},'UWSAO':function(_0x25f598,_0x5bacff,_0x2813ff){return _0x25f598(_0x5bacff,_0x2813ff);},'QemfE':_0x34bb0c(0xe4),'QuqLs':_0x34bb0c(0xcd)},_0x289c0c=await this.#getBinaryPath();return new Promise((_0x4352ad,_0x376651)=>{const _0x8cbfd=_0x34bb0c,_0x521f6e=_0x415a3f[_0x8cbfd(0xee)](spawn,_0x289c0c,[_0x415a3f[_0x8cbfd(0x115)]]);_0x521f6e['on'](_0x415a3f[_0x8cbfd(0xdb)],_0x13e4cd=>{const _0x36d181=_0x8cbfd;this['isProcessRunning']=![],_0x415a3f[_0x36d181(0xf2)](_0x4352ad,_0x13e4cd);});});}[a106_0x130689(0xf3)](){const _0x51b53c=a106_0x130689;return this[_0x51b53c(0x114)];}async['fetchPercyToken'](){const _0x28b3ea=a106_0x130689,_0x44e365={};_0x44e365['sRCAd']=_0x28b3ea(0xd4),_0x44e365[_0x28b3ea(0xe3)]=_0x28b3ea(0x103),_0x44e365[_0x28b3ea(0xf4)]=_0x28b3ea(0xf7),_0x44e365['YEKDV']=_0x28b3ea(0xf5);const _0x4cbc84=_0x44e365,_0x429bcf=this.#config[_0x28b3ea(0xfc)];try{const _0x7f183=this.#isApp?_0x4cbc84[_0x28b3ea(0xf9)]:_0x4cbc84[_0x28b3ea(0xe3)],_0x2d509f=await helper['nodeRequest'](_0x4cbc84[_0x28b3ea(0xf4)],_0x28b3ea(0xdc)+_0x429bcf+_0x28b3ea(0xd5)+_0x7f183,{},this.#config),_0x4e873c=_0x2d509f['data'];return logger[_0x28b3ea(0xef)](_0x4cbc84[_0x28b3ea(0xf6)]),_0x4e873c[_0x28b3ea(0xd9)];}catch(_0x5e7688){return logger[_0x28b3ea(0xcf)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x5e7688),null;}}async[a106_0x130689(0xe6)](){const _0x3bcb09=a106_0x130689,_0x2345ed={'HpXhB':function(_0x15e870,_0x12cb4b){return _0x15e870(_0x12cb4b);},'NSdOE':function(_0x5e86b8,_0x42a345){return _0x5e86b8+_0x42a345;},'soBYl':_0x3bcb09(0x109),'nZigj':function(_0x22e03e,_0x1a12ba){return _0x22e03e(_0x1a12ba);},'WKCLy':_0x3bcb09(0x117)};if(!this.#config['percyOptions'])return null;const _0x571d05=path['join'](os[_0x3bcb09(0x10a)](),_0x2345ed[_0x3bcb09(0xf1)]),_0x39eddd=this.#config[_0x3bcb09(0x113)];return!_0x39eddd['version']&&(_0x39eddd[_0x3bcb09(0x102)]='2'),new Promise((_0x2e1c07,_0xf7e0c4)=>{const _0x99585b=_0x3bcb09;fs[_0x99585b(0x118)](_0x571d05,JSON[_0x99585b(0x10f)](_0x39eddd),_0x5c6c73=>{const _0x6a9cec=_0x99585b;_0x5c6c73&&(logger[_0x6a9cec(0xcf)]('Error\x20creating\x20percy\x20config:\x20'+_0x5c6c73),_0x2345ed['HpXhB'](_0x2e1c07,null)),logger[_0x6a9cec(0xef)](_0x2345ed[_0x6a9cec(0xec)](_0x2345ed[_0x6a9cec(0x111)],_0x571d05)),_0x2345ed[_0x6a9cec(0xda)](_0x2e1c07,_0x571d05);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105_0x39309a=a105_0x38b6;(function(_0x4880e0,_0xbaaef9){const _0x1c7fc0=a105_0x38b6,_0x390ab1=_0x4880e0();while(!![]){try{const _0x17f9cd=parseInt(_0x1c7fc0(0x1cd))/0x1+parseInt(_0x1c7fc0(0x222))/0x2*(parseInt(_0x1c7fc0(0x22e))/0x3)+-parseInt(_0x1c7fc0(0x24a))/0x4+parseInt(_0x1c7fc0(0x25d))/0x5*(-parseInt(_0x1c7fc0(0x215))/0x6)+-parseInt(_0x1c7fc0(0x256))/0x7*(-parseInt(_0x1c7fc0(0x1ff))/0x8)+parseInt(_0x1c7fc0(0x1fa))/0x9*(parseInt(_0x1c7fc0(0x21a))/0xa)+-parseInt(_0x1c7fc0(0x207))/0xb*(parseInt(_0x1c7fc0(0x25e))/0xc);if(_0x17f9cd===_0xbaaef9)break;else _0x390ab1['push'](_0x390ab1['shift']());}catch(_0x46ea0b){_0x390ab1['push'](_0x390ab1['shift']());}}}(a105_0x73e7,0x79623));const {https}=require('follow-redirects'),url=require(a105_0x39309a(0x1fe)),yauzl=require(a105_0x39309a(0x1f8)),fs=require('fs'),path=require(a105_0x39309a(0x22b)),os=require('os'),{spawn}=require(a105_0x39309a(0x1dc)),HttpsProxyAgent=require(a105_0x39309a(0x23e)),logger=require('../logger')[a105_0x39309a(0x1f0)];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a105_0x39309a(0x258);#orderedPaths=[path[a105_0x39309a(0x1e6)](this.#homedir(),a105_0x39309a(0x220)),process[a105_0x39309a(0x1fd)](),os['tmpdir']()];constructor(){const _0x5c3d03=a105_0x39309a,_0x354dcf={};_0x354dcf[_0x5c3d03(0x1d5)]=_0x5c3d03(0x1d9),_0x354dcf[_0x5c3d03(0x22d)]=function(_0x5131c2,_0x5443c4){return _0x5131c2+_0x5443c4;},_0x354dcf[_0x5c3d03(0x225)]='/percy-osx.zip',_0x354dcf[_0x5c3d03(0x236)]=_0x5c3d03(0x1f9),_0x354dcf[_0x5c3d03(0x24b)]=_0x5c3d03(0x1d0),_0x354dcf[_0x5c3d03(0x1f6)]=function(_0x406afc,_0x39be56){return _0x406afc+_0x39be56;},_0x354dcf[_0x5c3d03(0x219)]=_0x5c3d03(0x1ce);const _0xf565b2=_0x354dcf,_0x14884f=_0xf565b2[_0x5c3d03(0x1d5)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0xf565b2[_0x5c3d03(0x22d)](_0x14884f,_0xf565b2['thnuN']);else this.#hostOS[_0x5c3d03(0x23a)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0xf565b2['DpoEl'](_0x14884f,_0xf565b2[_0x5c3d03(0x236)]),this.#binaryName=_0xf565b2[_0x5c3d03(0x24b)]):this.#httpPath=_0xf565b2[_0x5c3d03(0x1f6)](_0x14884f,_0xf565b2[_0x5c3d03(0x219)]);}#getAvailableDirs(){const _0x3cfd05=a105_0x39309a,_0x4b0212={};_0x4b0212[_0x3cfd05(0x241)]=function(_0x2ffc17,_0x3e58e0){return _0x2ffc17<_0x3e58e0;},_0x4b0212[_0x3cfd05(0x1e0)]=_0x3cfd05(0x22a);const _0x60c74c=_0x4b0212;for(var _0x57510c=0x0;_0x60c74c['ryrrM'](_0x57510c,this.#orderedPaths[_0x3cfd05(0x209)]);_0x57510c++){var _0x33334a=this.#orderedPaths[_0x57510c];if(this.#makePath(_0x33334a))return _0x33334a;}throw new Error(_0x60c74c[_0x3cfd05(0x1e0)]);}#makePath(_0x404d97){const _0x9af7cc=a105_0x39309a;try{return _0x404d97&&!this.#checkPath(_0x404d97)&&fs[_0x9af7cc(0x1f2)](_0x404d97),!![];}catch{return![];}}#checkPath(_0x19742b,_0xc443dd){const _0x400265=a105_0x39309a,_0x1606f2={};_0x1606f2[_0x400265(0x20c)]=function(_0x401452,_0x898706){return _0x401452|_0x898706;},_0x1606f2[_0x400265(0x21b)]=function(_0x1f7e3c,_0x1e4bc5){return _0x1f7e3c!==_0x1e4bc5;},_0x1606f2[_0x400265(0x1e1)]=_0x400265(0x201);const _0x2eb200=_0x1606f2;_0xc443dd=_0xc443dd||_0x2eb200[_0x400265(0x20c)](fs[_0x400265(0x1ed)],fs[_0x400265(0x20f)]);try{return fs[_0x400265(0x1eb)](_0x19742b,_0xc443dd),!![];}catch(_0x1a4d77){if(_0x2eb200[_0x400265(0x21b)](typeof fs['accessSync'],_0x2eb200[_0x400265(0x1e1)]))return![];try{return fs[_0x400265(0x255)](_0x19742b),!![];}catch(_0x294ee3){return![];}}}#getETagPath(_0x4a379d){const _0x46b4fe=a105_0x39309a;return path[_0x46b4fe(0x1e6)](_0x4a379d,this.#binaryName+_0x46b4fe(0x1cc));}#loadETag(_0x3a85bd){const _0x418547=a105_0x39309a,_0x574ef5={};_0x574ef5[_0x418547(0x240)]='utf8';const _0x4b2716=_0x574ef5,_0x49bec7=this.#getETagPath(_0x3a85bd);if(this.#checkPath(_0x49bec7))try{return fs['readFileSync'](_0x49bec7,_0x4b2716['xYGpU'])[_0x418547(0x238)]();}catch(_0x40c028){logger['warn']('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x40c028);}return null;}#saveETag(_0x14253a,_0x36b206){const _0x56fc6e=a105_0x39309a,_0x4486b0={};_0x4486b0['NNuYy']=_0x56fc6e(0x1e4);const _0x3b47e3=_0x4486b0;if(!_0x36b206)return;try{const _0x5ad964=this.#getETagPath(_0x14253a);fs[_0x56fc6e(0x246)](_0x5ad964,_0x36b206),logger[_0x56fc6e(0x243)](_0x3b47e3['NNuYy']);}catch(_0x588630){logger[_0x56fc6e(0x1e7)](_0x56fc6e(0x24d)+_0x588630);}}async #handleBinaryDownload(_0xc484c0,_0x2cc2b0,_0x499afe){const _0x2c2df1=a105_0x39309a,_0x349a6e={};_0x349a6e[_0x2c2df1(0x200)]=_0x2c2df1(0x1e2);const _0x288b58=_0x349a6e,_0x4a4b99=await this['validateBinary'](_0xc484c0['binaryPath']);if(!_0x4a4b99){logger[_0x2c2df1(0x232)](_0x288b58[_0x2c2df1(0x200)]);const _0x595543=await this[_0x2c2df1(0x25b)](_0x2cc2b0,_0x499afe);return _0x595543['binaryPath'];}return _0xc484c0[_0x2c2df1(0x212)];}async[a105_0x39309a(0x217)](_0x5cd5fd){const _0x180c88=a105_0x39309a,_0x2d07da={};_0x2d07da['XkXTA']='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x2d07da[_0x180c88(0x202)]=_0x180c88(0x1d2);const _0x52b536=_0x2d07da,_0xa6ab91=this.#getAvailableDirs(),_0x60ae38=path[_0x180c88(0x1e6)](_0xa6ab91,this.#binaryName);if(this.#checkPath(_0x60ae38,fs[_0x180c88(0x1d4)])){const _0x4b0d3b=this.#loadETag(_0xa6ab91);if(_0x4b0d3b)try{const _0x24400a=await this['download'](_0x5cd5fd,_0xa6ab91,_0x4b0d3b);if(!_0x24400a[_0x180c88(0x1f7)])return logger['debug'](_0x52b536['XkXTA']),_0x60ae38;return logger['debug'](_0x52b536[_0x180c88(0x202)]),await this.#handleBinaryDownload(_0x24400a,_0x5cd5fd,_0xa6ab91);}catch(_0x1a8cd6){return logger['warn'](_0x180c88(0x230)+_0x1a8cd6),_0x60ae38;}}const _0x2a3fef=await this[_0x180c88(0x25b)](_0x5cd5fd,_0xa6ab91);return await this.#handleBinaryDownload(_0x2a3fef,_0x5cd5fd,_0xa6ab91);}['download'](_0x211645,_0x214646,_0x161a56=null){const _0x16ff7d=a105_0x39309a,_0x500904={'oocQe':function(_0x1bdded,_0x5a567d){return _0x1bdded(_0x5a567d);},'AGKZZ':function(_0x9ae7e6,_0x197798){return _0x9ae7e6(_0x197798);},'nPPwj':function(_0x2b5b29,_0x5a91b2){return _0x2b5b29===_0x5a91b2;},'rBtxD':_0x16ff7d(0x232),'CTKhu':_0x16ff7d(0x22f),'alpHS':function(_0x4daa95,_0x191733){return _0x4daa95+_0x191733;},'cQsVx':_0x16ff7d(0x21d)};_0x214646&&!this.#checkPath(_0x214646)&&fs[_0x16ff7d(0x1f2)](_0x214646);const _0x2fd711=this.#binaryName,_0x13a479=path[_0x16ff7d(0x1e6)](_0x214646,_0x500904[_0x16ff7d(0x206)](_0x2fd711,_0x500904[_0x16ff7d(0x23c)])),_0xa2b96b=fs[_0x16ff7d(0x203)](_0x13a479),_0x2b01c7=url['parse'](this.#httpPath);if(_0x211645[_0x16ff7d(0x214)]&&_0x211645['proxyPort']){const _0x3a3208={};_0x3a3208[_0x16ff7d(0x23b)]=_0x211645['proxyHost'],_0x3a3208[_0x16ff7d(0x257)]=_0x211645['proxyPort'],_0x2b01c7['agent']=new HttpsProxyAgent(_0x3a3208);}if(_0x211645[_0x16ff7d(0x24f)])try{_0x2b01c7['ca']=fs['readFileSync'](_0x211645[_0x16ff7d(0x24f)]);}catch(_0xb0a80b){logger[_0x16ff7d(0x232)](_0x16ff7d(0x1de)+_0xb0a80b);}if(_0x161a56){const _0x4672e4={};_0x4672e4[_0x16ff7d(0x1dd)]=_0x161a56,_0x2b01c7['headers']=_0x4672e4;}return new Promise((_0x5c4972,_0x372696)=>{const _0xd56d9f=_0x16ff7d,_0x5ca33c={'ZCPDl':function(_0x23cb5e,_0x1ec072){const _0x43b980=a105_0x38b6;return _0x500904[_0x43b980(0x20a)](_0x23cb5e,_0x1ec072);},'QFwHn':function(_0x457a82,_0x2e896b){const _0x44e06e=a105_0x38b6;return _0x500904[_0x44e06e(0x1e5)](_0x457a82,_0x2e896b);},'vMRPH':function(_0x30a0b0,_0x142087){return _0x500904['nPPwj'](_0x30a0b0,_0x142087);},'KTApq':function(_0x3c68f4,_0x5e5d54){const _0x44d65c=a105_0x38b6;return _0x500904[_0x44d65c(0x1e5)](_0x3c68f4,_0x5e5d54);},'mLBcT':_0x500904[_0xd56d9f(0x1f5)],'brpuN':_0x500904[_0xd56d9f(0x1ec)],'FzAsj':function(_0x1d2dc7,_0xd72b6a){const _0x1c097c=_0xd56d9f;return _0x500904[_0x1c097c(0x20a)](_0x1d2dc7,_0xd72b6a);}};https[_0xd56d9f(0x1e9)](_0x2b01c7,_0x2a46bc=>{const _0x2a2005=_0xd56d9f,_0x424913={'ChdgF':function(_0x482b8d,_0x5ba055){const _0x4c958b=a105_0x38b6;return _0x5ca33c[_0x4c958b(0x208)](_0x482b8d,_0x5ba055);}};if(_0x161a56&&_0x5ca33c[_0x2a2005(0x205)](_0x2a46bc['statusCode'],0x130)){const _0x1cb369={};_0x1cb369['needsUpdate']=![],_0x5ca33c[_0x2a2005(0x265)](_0x5c4972,_0x1cb369);return;}const _0x4c1244=_0x2a46bc[_0x2a2005(0x248)][_0x2a2005(0x1e8)];_0x4c1244&&this.#saveETag(_0x214646,_0x4c1244),_0x2a46bc[_0x2a2005(0x259)](_0xa2b96b),_0x2a46bc['on'](_0x5ca33c[_0x2a2005(0x1ef)],function(_0x27f857){const _0x4f1e6a=_0x2a2005;logger[_0x4f1e6a(0x232)](_0x4f1e6a(0x1f4)+_0x27f857),_0x5ca33c[_0x4f1e6a(0x21e)](_0x372696,_0x27f857);}),_0xa2b96b['on'](_0x5ca33c[_0x2a2005(0x1ef)],function(_0x44353c){const _0x30a895=_0x2a2005;logger[_0x30a895(0x232)](_0x30a895(0x1e3)+_0x44353c),_0x424913[_0x30a895(0x22c)](_0x372696,_0x44353c);}),_0xa2b96b['on'](_0x5ca33c[_0x2a2005(0x1ea)],()=>{const _0x24f527=_0x2a2005;this[_0x24f527(0x1cf)](_0x13a479,_0x214646)[_0x24f527(0x213)](_0x46968d=>_0x5c4972({'needsUpdate':!![],'binaryPath':_0x46968d}))['catch'](_0x372696);});})['on'](_0x500904[_0xd56d9f(0x1f5)],function(_0x2e79cd){const _0x261b49=_0xd56d9f;logger[_0x261b49(0x232)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x2e79cd),_0x5ca33c[_0x261b49(0x210)](_0x372696,_0x2e79cd);});});}[a105_0x39309a(0x1cf)](_0x2bd659,_0x33a2d7){const _0x3c8f19=a105_0x39309a,_0x256640={'AKRZz':function(_0x5b467c,_0x16ad22){return _0x5b467c(_0x16ad22);},'tjZcw':'end','iUbNq':function(_0x3186be,_0x3edd43){return _0x3186be===_0x3edd43;},'qJPiH':_0x3c8f19(0x1fc),'bselR':function(_0x27b3a6,_0xcb4aa5){return _0x27b3a6(_0xcb4aa5);},'fJfJQ':_0x3c8f19(0x204),'cenZH':_0x3c8f19(0x232)},_0x383800=this.#binaryName,_0x22227c=path[_0x3c8f19(0x1e6)](_0x33a2d7,_0x383800);return new Promise((_0x2ed96a,_0x416cac)=>{const _0x23c25a=_0x3c8f19,_0x5d2285={'FdQfc':function(_0x4e3018,_0x51c274){const _0x3a2a0a=a105_0x38b6;return _0x256640[_0x3a2a0a(0x250)](_0x4e3018,_0x51c274);},'bgXbt':_0x256640[_0x23c25a(0x1d1)],'xnSiw':function(_0x1a07eb,_0x3733ba){const _0x1b4275=_0x23c25a;return _0x256640[_0x1b4275(0x216)](_0x1a07eb,_0x3733ba);},'Lvjee':_0x256640[_0x23c25a(0x242)],'AZutf':function(_0x5c93c,_0x5309d2){const _0x45badb=_0x23c25a;return _0x256640[_0x45badb(0x250)](_0x5c93c,_0x5309d2);},'zlWRG':function(_0x1a7425,_0x3a3187){const _0x58138b=_0x23c25a;return _0x256640[_0x58138b(0x224)](_0x1a7425,_0x3a3187);},'wAtOC':function(_0x445663,_0x2bb082){const _0x3bb205=_0x23c25a;return _0x256640[_0x3bb205(0x224)](_0x445663,_0x2bb082);},'MhmlX':_0x256640[_0x23c25a(0x25a)],'wsPnv':_0x256640[_0x23c25a(0x1d7)]},_0x1c21d1={};_0x1c21d1[_0x23c25a(0x25f)]=!![],yauzl[_0x23c25a(0x244)](_0x2bd659,_0x1c21d1,function(_0x5d2487,_0x420955){const _0x23ed29=_0x23c25a,_0xf7c9a8={'JEiij':function(_0x28776c,_0x3d5cf2){const _0x4dbedc=a105_0x38b6;return _0x5d2285[_0x4dbedc(0x24e)](_0x28776c,_0x3d5cf2);},'FWqyV':function(_0x2dbc6e,_0x3b4ad7){const _0x1489fc=a105_0x38b6;return _0x5d2285[_0x1489fc(0x25c)](_0x2dbc6e,_0x3b4ad7);}};_0x5d2487&&_0x5d2285['wAtOC'](_0x416cac,_0x5d2487),_0x420955[_0x23ed29(0x1d3)](),_0x420955['on'](_0x5d2285['MhmlX'],_0x5987a8=>{const _0x3f00a3=_0x23ed29,_0x1102f1={'XkoUD':function(_0x94a8f3,_0x2297ac){return _0x5d2285['FdQfc'](_0x94a8f3,_0x2297ac);},'PGlsi':_0x5d2285['bgXbt']};if(/\/$/[_0x3f00a3(0x21f)](_0x5987a8[_0x3f00a3(0x254)]))_0x420955[_0x3f00a3(0x1d3)]();else{const _0x3d104e=fs[_0x3f00a3(0x203)](path[_0x3f00a3(0x1e6)](_0x33a2d7,_0x5987a8[_0x3f00a3(0x254)]));_0x420955['openReadStream'](_0x5987a8,function(_0x54cf23,_0xab587f){_0x54cf23&&_0x1102f1['XkoUD'](_0x416cac,_0x5d2487),_0xab587f['on'](_0x1102f1['PGlsi'],function(){const _0x553056=a105_0x38b6;_0x3d104e['close'](),_0x420955[_0x553056(0x1d3)]();}),_0xab587f['pipe'](_0x3d104e);}),_0x5d2285[_0x3f00a3(0x262)](_0x5987a8[_0x3f00a3(0x254)],_0x383800)&&_0x420955[_0x3f00a3(0x22f)]();}}),_0x420955['on'](_0x5d2285[_0x23ed29(0x1df)],_0x44ba9b=>{const _0x356512=_0x23ed29;_0x5d2285[_0x356512(0x261)](_0x416cac,_0x44ba9b);}),_0x420955['once'](_0x5d2285[_0x23ed29(0x233)],()=>{const _0x355a21=_0x23ed29;fs[_0x355a21(0x23d)](_0x22227c,_0x5d2285[_0x355a21(0x234)],function(_0x521024){const _0x4c9bb5=_0x355a21;_0x521024&&_0xf7c9a8[_0x4c9bb5(0x264)](_0x416cac,_0x521024),_0xf7c9a8['FWqyV'](_0x2ed96a,_0x22227c);}),_0x420955[_0x355a21(0x22f)]();});});});}async[a105_0x39309a(0x1d8)](_0x10660c){const _0x25953f=a105_0x39309a,_0x2bd5bd={'oQjBb':function(_0x58f0d4,_0xba79a9){return _0x58f0d4(_0xba79a9);},'nHitB':function(_0x452101,_0x6a8afc,_0x1ae1a5,_0x31f478){return _0x452101(_0x6a8afc,_0x1ae1a5,_0x31f478);},'INaMu':'--version','TDoig':'data','JAsYY':_0x25953f(0x22f)},_0x569739=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x2dcec0,_0x22ae96)=>{const _0x2169f0=_0x25953f,_0x154fca={};_0x154fca[_0x2169f0(0x1da)]=process['env'];const _0x49a3e8=_0x2bd5bd[_0x2169f0(0x245)](spawn,_0x10660c,[_0x2bd5bd[_0x2169f0(0x1d6)]],_0x154fca);_0x49a3e8[_0x2169f0(0x251)]['on'](_0x2bd5bd[_0x2169f0(0x252)],_0x133dce=>{const _0x149767=_0x2169f0;_0x569739[_0x149767(0x21f)](_0x133dce)&&_0x2bd5bd[_0x149767(0x223)](_0x2dcec0,!![]);}),_0x49a3e8['on'](_0x2bd5bd['JAsYY'],()=>{const _0x504307=_0x2169f0;_0x2bd5bd[_0x504307(0x223)](_0x2dcec0,![]);});});}#homedir(){const _0x21d47b=a105_0x39309a,_0x5549ed={};_0x5549ed[_0x21d47b(0x20e)]=function(_0x3c4016,_0x3d77ba){return _0x3c4016===_0x3d77ba;},_0x5549ed[_0x21d47b(0x263)]=_0x21d47b(0x253),_0x5549ed[_0x21d47b(0x218)]=_0x21d47b(0x235),_0x5549ed[_0x21d47b(0x237)]=function(_0x17a68c,_0x427ed4){return _0x17a68c+_0x427ed4;},_0x5549ed[_0x21d47b(0x228)]='darwin',_0x5549ed[_0x21d47b(0x21c)]=_0x21d47b(0x1ee),_0x5549ed[_0x21d47b(0x1db)]=function(_0x31fce8,_0x4195d0){return _0x31fce8===_0x4195d0;},_0x5549ed[_0x21d47b(0x211)]=_0x21d47b(0x239),_0x5549ed[_0x21d47b(0x1f1)]=_0x21d47b(0x231),_0x5549ed[_0x21d47b(0x23f)]=function(_0x24319d,_0x3cd989){return _0x24319d+_0x3cd989;},_0x5549ed['FcvUp']='/home/',_0x5549ed[_0x21d47b(0x1fb)]=function(_0x571e00,_0x594c7e){return _0x571e00||_0x594c7e;};const _0x37b5a4=_0x5549ed;if(_0x37b5a4['zzBNi'](typeof os[_0x21d47b(0x20d)],_0x37b5a4[_0x21d47b(0x263)]))return os[_0x21d47b(0x20d)]();const _0x11fb40=process[_0x21d47b(0x1da)],_0x17ec85=_0x11fb40[_0x21d47b(0x227)],_0x19f1f3=_0x11fb40[_0x21d47b(0x226)]||_0x11fb40[_0x21d47b(0x221)]||_0x11fb40[_0x21d47b(0x249)]||_0x11fb40['USERNAME'];if(_0x37b5a4[_0x21d47b(0x20e)](process[_0x21d47b(0x260)],_0x37b5a4['sQtpL']))return _0x11fb40[_0x21d47b(0x247)]||_0x37b5a4[_0x21d47b(0x237)](_0x11fb40[_0x21d47b(0x24c)],_0x11fb40[_0x21d47b(0x229)])||_0x17ec85||null;if(_0x37b5a4[_0x21d47b(0x20e)](process['platform'],_0x37b5a4[_0x21d47b(0x228)]))return _0x17ec85||(_0x19f1f3?_0x37b5a4['CnoiJ'](_0x37b5a4[_0x21d47b(0x21c)],_0x19f1f3):null);if(_0x37b5a4[_0x21d47b(0x1db)](process[_0x21d47b(0x260)],_0x37b5a4[_0x21d47b(0x211)]))return _0x17ec85||(_0x37b5a4[_0x21d47b(0x20e)](process[_0x21d47b(0x1f3)](),0x0)?_0x37b5a4[_0x21d47b(0x1f1)]:_0x19f1f3?_0x37b5a4[_0x21d47b(0x23f)](_0x37b5a4[_0x21d47b(0x1cb)],_0x19f1f3):null);return _0x37b5a4[_0x21d47b(0x1fb)](_0x17ec85,null);}}module[a105_0x39309a(0x20b)]=PercyBinary;function a105_0x38b6(_0xb8d00f,_0x281a68){const _0x73e76=a105_0x73e7();return a105_0x38b6=function(_0x38b657,_0x5bb45){_0x38b657=_0x38b657-0x1cb;let _0x242a5f=_0x73e76[_0x38b657];return _0x242a5f;},a105_0x38b6(_0xb8d00f,_0x281a68);}function a105_0x73e7(){const _0x487995=['INaMu','cenZH','validateBinary','https://github.com/percy/cli/releases/latest/download','env','RUgBY','child_process','If-None-Match','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','wsPnv','CPqKS','zuQrM','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','Saved\x20new\x20ETag\x20for\x20percy\x20binary','AGKZZ','join','warn','etag','get','brpuN','accessSync','CTKhu','R_OK','/Users/','mLBcT','winstonLogger','ipCqj','mkdirSync','getuid','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','rBtxD','nGEqI','needsUpdate','yauzl','/percy-win.zip','657YnISBQ','uyLVc','0755','cwd','url','40OxEWCQ','BRUtF','undefined','vqXTc','createWriteStream','entry','vMRPH','alpHS','7799kAPJWl','QFwHn','length','oocQe','exports','UOxCP','homedir','zzBNi','W_OK','FzAsj','DXxia','binaryPath','then','proxyHost','18LnFMJg','iUbNq','getBinaryPath','sQtpL','zovKD','130570VcLrhQ','ZnMwA','XlqHA','.zip','ZCPDl','test','.browserstack','USER','132ZsnymW','oQjBb','bselR','thnuN','LOGNAME','HOME','CTfKw','HOMEPATH','Error\x20trying\x20to\x20download\x20percy\x20binary','path','ChdgF','DpoEl','32388bRUEDw','close','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','/root','error','bgXbt','Lvjee','win32','gfKJk','CnoiJ','trim','linux','match','host','cQsVx','chmod','https-proxy-agent','lSDak','xYGpU','ryrrM','qJPiH','debug','open','nHitB','writeFileSync','USERPROFILE','headers','LNAME','2154488pNxsfJ','qlERx','HOMEDRIVE','Failed\x20to\x20save\x20ETag\x20file:\x20','AZutf','useCaCertificate','AKRZz','stdout','TDoig','function','fileName','statSync','386428DecPUz','port','percy','pipe','fJfJQ','download','zlWRG','750445dRfTMc','15060oQBqTn','lazyEntries','platform','FdQfc','xnSiw','oCPJR','JEiij','KTApq','FcvUp','.etag','434154rDYlIt','/percy-linux.zip','extractAndSaveBinary','percy.exe','tjZcw','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','readEntry','X_OK','BIEwm'];a105_0x73e7=function(){return _0x487995;};return a105_0x73e7();}
|
|
1
|
+
const a107_0x59862c=a107_0x12ad;(function(_0x333457,_0x21cff0){const _0x4622b9=a107_0x12ad,_0x3cb7e1=_0x333457();while(!![]){try{const _0x5ea7cd=parseInt(_0x4622b9(0x268))/0x1*(-parseInt(_0x4622b9(0x239))/0x2)+parseInt(_0x4622b9(0x227))/0x3+parseInt(_0x4622b9(0x257))/0x4*(-parseInt(_0x4622b9(0x25d))/0x5)+parseInt(_0x4622b9(0x1fd))/0x6*(parseInt(_0x4622b9(0x223))/0x7)+-parseInt(_0x4622b9(0x1e6))/0x8*(parseInt(_0x4622b9(0x1db))/0x9)+-parseInt(_0x4622b9(0x1f8))/0xa+parseInt(_0x4622b9(0x20d))/0xb*(parseInt(_0x4622b9(0x219))/0xc);if(_0x5ea7cd===_0x21cff0)break;else _0x3cb7e1['push'](_0x3cb7e1['shift']());}catch(_0x38cefb){_0x3cb7e1['push'](_0x3cb7e1['shift']());}}}(a107_0x1bc3,0x593d3));const {https}=require(a107_0x59862c(0x24f)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a107_0x59862c(0x1ed)),os=require('os'),{spawn}=require(a107_0x59862c(0x1e7)),HttpsProxyAgent=require(a107_0x59862c(0x23e)),logger=require('../logger')['winstonLogger'];function a107_0x12ad(_0x436f8d,_0x5cb9ba){const _0x1bc321=a107_0x1bc3();return a107_0x12ad=function(_0x12add2,_0x4be435){_0x12add2=_0x12add2-0x1db;let _0x2bac83=_0x1bc321[_0x12add2];return _0x2bac83;},a107_0x12ad(_0x436f8d,_0x5cb9ba);}class PercyBinary{#hostOS=process[a107_0x59862c(0x242)];#httpPath=null;#binaryName=a107_0x59862c(0x222);#orderedPaths=[path[a107_0x59862c(0x1f3)](this.#homedir(),a107_0x59862c(0x21e)),process[a107_0x59862c(0x24d)](),os[a107_0x59862c(0x1fa)]()];constructor(){const _0x1bd372=a107_0x59862c,_0x54aa7d={};_0x54aa7d[_0x1bd372(0x266)]='https://github.com/percy/cli/releases/latest/download',_0x54aa7d[_0x1bd372(0x1fe)]=function(_0x5754cc,_0x1d02bc){return _0x5754cc+_0x1d02bc;},_0x54aa7d[_0x1bd372(0x23a)]=_0x1bd372(0x206),_0x54aa7d['oyeBE']=_0x1bd372(0x26b),_0x54aa7d[_0x1bd372(0x204)]=_0x1bd372(0x1f1),_0x54aa7d[_0x1bd372(0x264)]=function(_0x473f8d,_0x2bae89){return _0x473f8d+_0x2bae89;},_0x54aa7d[_0x1bd372(0x22e)]='/percy-linux.zip';const _0x243333=_0x54aa7d,_0x41f08b=_0x243333[_0x1bd372(0x266)];if(this.#hostOS[_0x1bd372(0x246)](/darwin|mac os/i))this.#httpPath=_0x243333[_0x1bd372(0x1fe)](_0x41f08b,_0x243333[_0x1bd372(0x23a)]);else this.#hostOS[_0x1bd372(0x246)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x243333['KadYU'](_0x41f08b,_0x243333[_0x1bd372(0x256)]),this.#binaryName=_0x243333[_0x1bd372(0x204)]):this.#httpPath=_0x243333['PFBsU'](_0x41f08b,_0x243333[_0x1bd372(0x22e)]);}#getAvailableDirs(){const _0x1d73aa=a107_0x59862c,_0x4f50d1={};_0x4f50d1[_0x1d73aa(0x238)]=function(_0x247e92,_0x7706c){return _0x247e92<_0x7706c;},_0x4f50d1[_0x1d73aa(0x22a)]=_0x1d73aa(0x24a);const _0x2a8b02=_0x4f50d1;for(var _0xe9ed04=0x0;_0x2a8b02[_0x1d73aa(0x238)](_0xe9ed04,this.#orderedPaths['length']);_0xe9ed04++){var _0x34cfa4=this.#orderedPaths[_0xe9ed04];if(this.#makePath(_0x34cfa4))return _0x34cfa4;}throw new Error(_0x2a8b02['PYapF']);}#makePath(_0xa29e2a){try{return _0xa29e2a&&!this.#checkPath(_0xa29e2a)&&fs['mkdirSync'](_0xa29e2a),!![];}catch{return![];}}#checkPath(_0x1246cd,_0x55dec5){const _0x2a6ff5=a107_0x59862c,_0x18df0b={};_0x18df0b[_0x2a6ff5(0x205)]=function(_0x121c0c,_0x5b4d28){return _0x121c0c|_0x5b4d28;},_0x18df0b[_0x2a6ff5(0x1ec)]=function(_0x1e3dc9,_0x4e6997){return _0x1e3dc9!==_0x4e6997;},_0x18df0b[_0x2a6ff5(0x220)]=_0x2a6ff5(0x237);const _0x1912f8=_0x18df0b;_0x55dec5=_0x55dec5||_0x1912f8[_0x2a6ff5(0x205)](fs[_0x2a6ff5(0x1e5)],fs['W_OK']);try{return fs[_0x2a6ff5(0x228)](_0x1246cd,_0x55dec5),!![];}catch(_0x3f44dc){if(_0x1912f8['UEqBO'](typeof fs['accessSync'],_0x1912f8[_0x2a6ff5(0x220)]))return![];try{return fs[_0x2a6ff5(0x200)](_0x1246cd),!![];}catch(_0x26e835){return![];}}}#getETagPath(_0x2054aa){const _0x3b44b6=a107_0x59862c;return path[_0x3b44b6(0x1f3)](_0x2054aa,this.#binaryName+'.etag');}#loadETag(_0xebf939){const _0xfb3ca5=a107_0x59862c,_0x1b5468={};_0x1b5468['ygSOW']=_0xfb3ca5(0x258);const _0x1341bc=_0x1b5468,_0x2a899d=this.#getETagPath(_0xebf939);if(this.#checkPath(_0x2a899d))try{return fs[_0xfb3ca5(0x21d)](_0x2a899d,_0x1341bc[_0xfb3ca5(0x269)])[_0xfb3ca5(0x1f5)]();}catch(_0xebeecf){logger['warn']('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0xebeecf);}return null;}#saveETag(_0x14b69c,_0x5ed0a6){const _0x5d24de=a107_0x59862c,_0x1a1d85={};_0x1a1d85['TXvTr']=_0x5d24de(0x24e);const _0x1023f7=_0x1a1d85;if(!_0x5ed0a6)return;try{const _0x11206e=this.#getETagPath(_0x14b69c);fs[_0x5d24de(0x214)](_0x11206e,_0x5ed0a6),logger[_0x5d24de(0x23f)](_0x1023f7['TXvTr']);}catch(_0x167850){logger[_0x5d24de(0x218)](_0x5d24de(0x236)+_0x167850);}}async #handleBinaryDownload(_0x3d2184,_0x351c6,_0x2604a3){const _0x1d9999=a107_0x59862c,_0x5666fc={};_0x5666fc[_0x1d9999(0x21b)]=_0x1d9999(0x259);const _0x1f0d89=_0x5666fc,_0x37b192=await this[_0x1d9999(0x22f)](_0x3d2184[_0x1d9999(0x1ea)]);if(!_0x37b192){logger[_0x1d9999(0x202)](_0x1f0d89[_0x1d9999(0x21b)]);const _0x58b6c9=await this['download'](_0x351c6,_0x2604a3);return _0x58b6c9[_0x1d9999(0x1ea)];}return _0x3d2184['binaryPath'];}async[a107_0x59862c(0x243)](_0x4460f6){const _0x11aefd=a107_0x59862c,_0x2aba52={};_0x2aba52[_0x11aefd(0x1eb)]=_0x11aefd(0x225),_0x2aba52[_0x11aefd(0x1f2)]=_0x11aefd(0x26a);const _0x1826e8=_0x2aba52,_0x5f5399=this.#getAvailableDirs(),_0x463e71=path[_0x11aefd(0x1f3)](_0x5f5399,this.#binaryName);if(this.#checkPath(_0x463e71,fs[_0x11aefd(0x22d)])){const _0x254119=this.#loadETag(_0x5f5399);if(_0x254119)try{const _0x5875e8=await this[_0x11aefd(0x241)](_0x4460f6,_0x5f5399,_0x254119);if(!_0x5875e8[_0x11aefd(0x217)])return logger[_0x11aefd(0x23f)](_0x1826e8['Jmvob']),_0x463e71;return logger[_0x11aefd(0x23f)](_0x1826e8[_0x11aefd(0x1f2)]),await this.#handleBinaryDownload(_0x5875e8,_0x4460f6,_0x5f5399);}catch(_0x35b9cd){return logger['warn'](_0x11aefd(0x235)+_0x35b9cd),_0x463e71;}}const _0x202306=await this[_0x11aefd(0x241)](_0x4460f6,_0x5f5399);return await this.#handleBinaryDownload(_0x202306,_0x4460f6,_0x5f5399);}[a107_0x59862c(0x241)](_0x44d6f3,_0x1f92a2,_0x3722d6=null){const _0x3f9f6c=a107_0x59862c,_0x532619={'fuZFF':function(_0x171867,_0xfb9b5d){return _0x171867===_0xfb9b5d;},'PZrRe':function(_0x260cfc,_0x11b6bd){return _0x260cfc(_0x11b6bd);},'nZhLA':_0x3f9f6c(0x202),'nSHeW':_0x3f9f6c(0x1df),'CpVnK':function(_0x18c846,_0x3db415){return _0x18c846(_0x3db415);},'uQgKa':function(_0x162e25,_0x2da0d5){return _0x162e25+_0x2da0d5;},'zPYuQ':_0x3f9f6c(0x247)};_0x1f92a2&&!this.#checkPath(_0x1f92a2)&&fs[_0x3f9f6c(0x265)](_0x1f92a2);const _0x2f3022=this.#binaryName,_0x5783e6=path[_0x3f9f6c(0x1f3)](_0x1f92a2,_0x532619[_0x3f9f6c(0x21c)](_0x2f3022,_0x532619[_0x3f9f6c(0x201)])),_0x38f52e=fs[_0x3f9f6c(0x1ee)](_0x5783e6),_0x24ad6a=url[_0x3f9f6c(0x211)](this.#httpPath);if(_0x44d6f3[_0x3f9f6c(0x1ff)]&&_0x44d6f3[_0x3f9f6c(0x249)]){const _0x323fcb={};_0x323fcb['host']=_0x44d6f3[_0x3f9f6c(0x1ff)],_0x323fcb[_0x3f9f6c(0x221)]=_0x44d6f3[_0x3f9f6c(0x249)],_0x24ad6a[_0x3f9f6c(0x25e)]=new HttpsProxyAgent(_0x323fcb);}if(_0x44d6f3[_0x3f9f6c(0x1e2)])try{_0x24ad6a['ca']=fs[_0x3f9f6c(0x21d)](_0x44d6f3[_0x3f9f6c(0x1e2)]);}catch(_0x263bbe){logger[_0x3f9f6c(0x202)](_0x3f9f6c(0x230)+_0x263bbe);}if(_0x3722d6){const _0x496431={};_0x496431[_0x3f9f6c(0x1de)]=_0x3722d6,_0x24ad6a['headers']=_0x496431;}return new Promise((_0x119fa1,_0x4aedaf)=>{const _0x42769d=_0x3f9f6c,_0x2504a2={'rwoFA':function(_0x45a854,_0x471b63){return _0x532619['CpVnK'](_0x45a854,_0x471b63);}};https[_0x42769d(0x216)](_0x24ad6a,_0x1c583b=>{const _0x5ececa=_0x42769d;if(_0x3722d6&&_0x532619[_0x5ececa(0x254)](_0x1c583b[_0x5ececa(0x23d)],0x130)){const _0xec8200={};_0xec8200[_0x5ececa(0x217)]=![],_0x532619['PZrRe'](_0x119fa1,_0xec8200);return;}const _0x37f0ef=_0x1c583b[_0x5ececa(0x224)][_0x5ececa(0x248)];_0x37f0ef&&this.#saveETag(_0x1f92a2,_0x37f0ef),_0x1c583b[_0x5ececa(0x244)](_0x38f52e),_0x1c583b['on'](_0x532619[_0x5ececa(0x20c)],function(_0x5d5c46){const _0x2f908e=_0x5ececa;logger[_0x2f908e(0x202)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x5d5c46),_0x2504a2[_0x2f908e(0x252)](_0x4aedaf,_0x5d5c46);}),_0x38f52e['on'](_0x532619['nZhLA'],function(_0x3e4309){const _0x46d6e4=_0x5ececa;logger[_0x46d6e4(0x202)](_0x46d6e4(0x263)+_0x3e4309),_0x2504a2[_0x46d6e4(0x252)](_0x4aedaf,_0x3e4309);}),_0x38f52e['on'](_0x532619['nSHeW'],()=>{const _0x1d48f7=_0x5ececa;this[_0x1d48f7(0x21f)](_0x5783e6,_0x1f92a2)[_0x1d48f7(0x229)](_0x19f838=>_0x119fa1({'needsUpdate':!![],'binaryPath':_0x19f838}))['catch'](_0x4aedaf);});})['on'](_0x532619['nZhLA'],function(_0x1346b8){const _0x221042=_0x42769d;logger[_0x221042(0x202)](_0x221042(0x22c)+_0x1346b8),_0x2504a2['rwoFA'](_0x4aedaf,_0x1346b8);});});}[a107_0x59862c(0x21f)](_0x3e2850,_0x44c8f5){const _0x12813c=a107_0x59862c,_0x430993={'xTPoc':function(_0x158872,_0x685e5a){return _0x158872(_0x685e5a);},'SEwqb':_0x12813c(0x251),'OzeaE':function(_0x3ec664,_0x36a961){return _0x3ec664(_0x36a961);},'TweaH':_0x12813c(0x209),'wKScv':function(_0x2ef627,_0xb66a80){return _0x2ef627===_0xb66a80;},'UxlCe':_0x12813c(0x262),'eEXOZ':'error'},_0x117620=this.#binaryName,_0x4dc807=path[_0x12813c(0x1f3)](_0x44c8f5,_0x117620);return new Promise((_0x2f92bd,_0x7136de)=>{const _0xb6e455=_0x12813c,_0x436429={'UMaMc':function(_0x4736eb,_0x3c35ba){const _0x2b1c37=a107_0x12ad;return _0x430993[_0x2b1c37(0x1dc)](_0x4736eb,_0x3c35ba);},'cOTQB':function(_0x12363c,_0x561a3a){return _0x430993['xTPoc'](_0x12363c,_0x561a3a);},'aKRCk':_0x430993['SEwqb'],'NkxRg':function(_0x966a20,_0x38274){const _0x434883=a107_0x12ad;return _0x430993[_0x434883(0x207)](_0x966a20,_0x38274);},'lhXxW':_0x430993[_0xb6e455(0x210)],'tOMUI':function(_0x2354be,_0x43de12){return _0x430993['wKScv'](_0x2354be,_0x43de12);},'pqyPC':_0x430993['UxlCe'],'fDRmh':_0x430993[_0xb6e455(0x240)]},_0x33b6a9={};_0x33b6a9[_0xb6e455(0x250)]=!![],yauzl[_0xb6e455(0x213)](_0x3e2850,_0x33b6a9,function(_0x2b96f6,_0x144cf9){const _0x5053b6=_0xb6e455,_0x4c93d9={'hbfFk':function(_0x46f7c8,_0x122882){const _0x32a1f8=a107_0x12ad;return _0x436429[_0x32a1f8(0x1f9)](_0x46f7c8,_0x122882);},'wcbOi':_0x436429['lhXxW'],'nDWcp':function(_0x4b7aa9,_0x2ec04c){return _0x436429['tOMUI'](_0x4b7aa9,_0x2ec04c);}};_0x2b96f6&&_0x436429['NkxRg'](_0x7136de,_0x2b96f6),_0x144cf9[_0x5053b6(0x253)](),_0x144cf9['on'](_0x436429['pqyPC'],_0x57caf4=>{const _0x403f12=_0x5053b6;if(/\/$/[_0x403f12(0x1e9)](_0x57caf4['fileName']))_0x144cf9['readEntry']();else{const _0x10a46c=fs[_0x403f12(0x1ee)](path[_0x403f12(0x1f3)](_0x44c8f5,_0x57caf4[_0x403f12(0x1e8)]));_0x144cf9[_0x403f12(0x1fb)](_0x57caf4,function(_0x428106,_0x26985b){const _0x280a78=_0x403f12;_0x428106&&_0x4c93d9['hbfFk'](_0x7136de,_0x2b96f6),_0x26985b['on'](_0x4c93d9[_0x280a78(0x23c)],function(){const _0x3f7d9f=_0x280a78;_0x10a46c[_0x3f7d9f(0x1df)](),_0x144cf9[_0x3f7d9f(0x253)]();}),_0x26985b[_0x280a78(0x244)](_0x10a46c);}),_0x4c93d9[_0x403f12(0x1e3)](_0x57caf4[_0x403f12(0x1e8)],_0x117620)&&_0x144cf9[_0x403f12(0x1df)]();}}),_0x144cf9['on'](_0x436429[_0x5053b6(0x267)],_0x34d3af=>{const _0x92ed4f=_0x5053b6;_0x436429[_0x92ed4f(0x1ef)](_0x7136de,_0x34d3af);}),_0x144cf9[_0x5053b6(0x1e4)](_0x436429[_0x5053b6(0x20b)],()=>{const _0xc5c60=_0x5053b6,_0x2ec128={'LvZZi':function(_0x486dc4,_0x5addc4){return _0x436429['UMaMc'](_0x486dc4,_0x5addc4);},'mJZex':function(_0x4206b7,_0x2c17f8){const _0x2f9b3f=a107_0x12ad;return _0x436429[_0x2f9b3f(0x245)](_0x4206b7,_0x2c17f8);}};fs['chmod'](_0x4dc807,_0x436429[_0xc5c60(0x1e0)],function(_0x35aac6){const _0x1b051a=_0xc5c60;_0x35aac6&&_0x2ec128[_0x1b051a(0x25f)](_0x7136de,_0x35aac6),_0x2ec128['mJZex'](_0x2f92bd,_0x4dc807);}),_0x144cf9[_0xc5c60(0x1df)]();});});});}async['validateBinary'](_0x54a6ea){const _0x389c3f=a107_0x59862c,_0x4facc9={'GVPnT':function(_0x1c3834,_0x3993d0){return _0x1c3834(_0x3993d0);},'ItxSR':function(_0x2b552f,_0x3104c6){return _0x2b552f(_0x3104c6);},'HrCbs':function(_0x8b2e43,_0xfed17f,_0x45ef36,_0x1023f3){return _0x8b2e43(_0xfed17f,_0x45ef36,_0x1023f3);},'DujAx':'--version','zUNpN':_0x389c3f(0x25a),'PqUvq':_0x389c3f(0x1df)},_0x447a39=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x3c21b0,_0x4eac01)=>{const _0x27f909=_0x389c3f,_0x588651={'gUmDO':function(_0x104dec,_0xba0ef6){return _0x4facc9['GVPnT'](_0x104dec,_0xba0ef6);},'NsBGm':function(_0xc9152,_0x23e24d){return _0x4facc9['ItxSR'](_0xc9152,_0x23e24d);}},_0x361ae3={};_0x361ae3['env']=process['env'];const _0x3792c9=_0x4facc9[_0x27f909(0x260)](spawn,_0x54a6ea,[_0x4facc9['DujAx']],_0x361ae3);_0x3792c9['stdout']['on'](_0x4facc9[_0x27f909(0x24c)],_0x1476c2=>{const _0x3a4713=_0x27f909;_0x447a39[_0x3a4713(0x1e9)](_0x1476c2)&&_0x588651['gUmDO'](_0x3c21b0,!![]);}),_0x3792c9['on'](_0x4facc9[_0x27f909(0x203)],()=>{const _0x536fd1=_0x27f909;_0x588651[_0x536fd1(0x25b)](_0x3c21b0,![]);});});}#homedir(){const _0x517ec9=a107_0x59862c,_0x3eb530={};_0x3eb530[_0x517ec9(0x1f0)]=function(_0x2f4a8c,_0x342e79){return _0x2f4a8c===_0x342e79;},_0x3eb530[_0x517ec9(0x1dd)]='function',_0x3eb530[_0x517ec9(0x1f6)]=function(_0x5b208b,_0x2c74dd){return _0x5b208b===_0x2c74dd;},_0x3eb530['YLWgc']=_0x517ec9(0x215),_0x3eb530['bGvtW']=function(_0x151885,_0x3f6373){return _0x151885+_0x3f6373;},_0x3eb530[_0x517ec9(0x24b)]=_0x517ec9(0x255),_0x3eb530[_0x517ec9(0x1fc)]='/Users/',_0x3eb530[_0x517ec9(0x226)]='linux',_0x3eb530[_0x517ec9(0x21a)]=function(_0x5ee30b,_0x31326){return _0x5ee30b===_0x31326;},_0x3eb530['ffYqE']='/root',_0x3eb530['qihoa']=_0x517ec9(0x1e1),_0x3eb530[_0x517ec9(0x20a)]=function(_0x5cec68,_0xee20d2){return _0x5cec68||_0xee20d2;};const _0x3d1c4e=_0x3eb530;if(_0x3d1c4e[_0x517ec9(0x1f0)](typeof os['homedir'],_0x3d1c4e[_0x517ec9(0x1dd)]))return os[_0x517ec9(0x1f4)]();const _0x2173c9=process[_0x517ec9(0x261)],_0x5785fc=_0x2173c9[_0x517ec9(0x212)],_0x44a48a=_0x2173c9[_0x517ec9(0x234)]||_0x2173c9[_0x517ec9(0x22b)]||_0x2173c9['LNAME']||_0x2173c9['USERNAME'];if(_0x3d1c4e[_0x517ec9(0x1f6)](process[_0x517ec9(0x242)],_0x3d1c4e[_0x517ec9(0x231)]))return _0x2173c9[_0x517ec9(0x208)]||_0x3d1c4e[_0x517ec9(0x233)](_0x2173c9[_0x517ec9(0x23b)],_0x2173c9[_0x517ec9(0x20e)])||_0x5785fc||null;if(_0x3d1c4e[_0x517ec9(0x1f6)](process[_0x517ec9(0x242)],_0x3d1c4e[_0x517ec9(0x24b)]))return _0x5785fc||(_0x44a48a?_0x3d1c4e[_0x517ec9(0x233)](_0x3d1c4e[_0x517ec9(0x1fc)],_0x44a48a):null);if(_0x3d1c4e[_0x517ec9(0x1f6)](process[_0x517ec9(0x242)],_0x3d1c4e[_0x517ec9(0x226)]))return _0x5785fc||(_0x3d1c4e['HbrGo'](process[_0x517ec9(0x25c)](),0x0)?_0x3d1c4e[_0x517ec9(0x232)]:_0x44a48a?_0x3d1c4e[_0x517ec9(0x233)](_0x3d1c4e[_0x517ec9(0x20f)],_0x44a48a):null);return _0x3d1c4e[_0x517ec9(0x20a)](_0x5785fc,null);}}function a107_0x1bc3(){const _0x274a19=['KadYU','proxyHost','statSync','zPYuQ','error','PqUvq','EqOJt','EcmkQ','/percy-osx.zip','OzeaE','USERPROFILE','end','iCkRK','lhXxW','nZhLA','4596526RjMVuO','HOMEPATH','qihoa','TweaH','parse','HOME','open','writeFileSync','win32','get','needsUpdate','warn','12JZMNsi','HbrGo','EWNwp','uQgKa','readFileSync','.browserstack','extractAndSaveBinary','DDVUv','port','percy','9835yTyMLI','headers','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','hAWjP','679845ygCOXr','accessSync','then','PYapF','USER','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','X_OK','mNsfI','validateBinary','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','YLWgc','ffYqE','bGvtW','LOGNAME','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','Failed\x20to\x20save\x20ETag\x20file:\x20','undefined','gkZcf','906ZgbSgi','wPYYN','HOMEDRIVE','wcbOi','statusCode','https-proxy-agent','debug','eEXOZ','download','platform','getBinaryPath','pipe','cOTQB','match','.zip','etag','proxyPort','Error\x20trying\x20to\x20download\x20percy\x20binary','MyiQk','zUNpN','cwd','Saved\x20new\x20ETag\x20for\x20percy\x20binary','follow-redirects','lazyEntries','0755','rwoFA','readEntry','fuZFF','darwin','oyeBE','4mKUaOt','utf8','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','data','NsBGm','getuid','230305TbGTFb','agent','LvZZi','HrCbs','env','entry','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','PFBsU','mkdirSync','oeUjT','fDRmh','611wFIdGP','ygSOW','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','/percy-win.zip','104670WngqrC','xTPoc','QgPCp','If-None-Match','close','aKRCk','/home/','useCaCertificate','nDWcp','once','R_OK','32XMlsox','child_process','fileName','test','binaryPath','Jmvob','UEqBO','path','createWriteStream','UMaMc','hJuhT','percy.exe','Yledo','join','homedir','trim','EWSwm','exports','4631640EsUfoz','NkxRg','tmpdir','openReadStream','npdWy','2364wlDTnA'];a107_0x1bc3=function(){return _0x274a19;};return a107_0x1bc3();}module[a107_0x59862c(0x1f7)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a108_0x47cb8a=a108_0x45f3;(function(_0x295192,_0x2b7db7){var _0x41f606=a108_0x45f3,_0x3e5177=_0x295192();while(!![]){try{var _0x4b8525=-parseInt(_0x41f606(0x1a3))/0x1+-parseInt(_0x41f606(0x1a1))/0x2*(parseInt(_0x41f606(0x1a8))/0x3)+-parseInt(_0x41f606(0x1aa))/0x4+-parseInt(_0x41f606(0x1a2))/0x5*(-parseInt(_0x41f606(0x1a5))/0x6)+parseInt(_0x41f606(0x1ab))/0x7*(parseInt(_0x41f606(0x1a4))/0x8)+parseInt(_0x41f606(0x19f))/0x9+parseInt(_0x41f606(0x1a0))/0xa*(parseInt(_0x41f606(0x1a6))/0xb);if(_0x4b8525===_0x2b7db7)break;else _0x3e5177['push'](_0x3e5177['shift']());}catch(_0x462899){_0x3e5177['push'](_0x3e5177['shift']());}}}(a108_0x4fe7,0xec4bc));function a108_0x45f3(_0x1ccfd4,_0x548599){var _0x4fe76c=a108_0x4fe7();return a108_0x45f3=function(_0x45f378,_0x2242cf){_0x45f378=_0x45f378-0x19f;var _0x466f6b=_0x4fe76c[_0x45f378];return _0x466f6b;},a108_0x45f3(_0x1ccfd4,_0x548599);}class PercyCaptureMap{#map={};[a108_0x47cb8a(0x1a9)](_0x4cfbe5,_0x1e16d5){!this.#map[_0x4cfbe5]&&(this.#map[_0x4cfbe5]={}),!this.#map[_0x4cfbe5][_0x1e16d5]&&(this.#map[_0x4cfbe5][_0x1e16d5]=0x0),this.#map[_0x4cfbe5][_0x1e16d5]++;}['getName'](_0x41cb65,_0x323129){return _0x41cb65+'-'+_0x323129+'-'+this['get'](_0x41cb65,_0x323129);}[a108_0x47cb8a(0x1a7)](_0x3f88b7,_0x5f245e){if(!this.#map[_0x3f88b7])return 0x0;if(!this.#map[_0x3f88b7][_0x5f245e])return 0x0;return this.#map[_0x3f88b7][_0x5f245e];}}function a108_0x4fe7(){var _0x1e2220=['6895TSNmHD','498328XyDauc','184IbknjH','6294SwTgWm','7815522rKvHQS','get','187260XgxOif','increment','6540064AmCHwM','170338oDpWyX','8516133bPhUyl','10RGhnsa','18gAGGsN'];a108_0x4fe7=function(){return _0x1e2220;};return a108_0x4fe7();}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a109_0x48d150=a109_0x2a74;(function(_0x3ea531,_0x1c91ab){var _0x266158=a109_0x2a74,_0x451ad4=_0x3ea531();while(!![]){try{var _0x3d85d1=parseInt(_0x266158(0x156))/0x1+-parseInt(_0x266158(0x15c))/0x2*(parseInt(_0x266158(0x160))/0x3)+parseInt(_0x266158(0x150))/0x4+parseInt(_0x266158(0x154))/0x5*(parseInt(_0x266158(0x15e))/0x6)+-parseInt(_0x266158(0x155))/0x7+parseInt(_0x266158(0x15d))/0x8+parseInt(_0x266158(0x15f))/0x9*(-parseInt(_0x266158(0x151))/0xa);if(_0x3d85d1===_0x1c91ab)break;else _0x451ad4['push'](_0x451ad4['shift']());}catch(_0x252773){_0x451ad4['push'](_0x451ad4['shift']());}}}(a109_0x2e9c,0xed7ec));function a109_0x2e9c(){var _0x2cfdff=['1840146pHpGFz','sendKeys','driver','click','takeScreenshot','manual','6742btTrtf','13329096XkDhIP','12pRvkvu','739494LRMhke','639JVnYYK','testcase','element','4893896gBvXsb','530RWEYAA','exports','screenshot','4276595rxricP','2763558ByaGhi'];a109_0x2e9c=function(){return _0x2cfdff;};return a109_0x2e9c();}var a109_0x3d4a73={};a109_0x3d4a73['driver']=[a109_0x48d150(0x15a)],a109_0x3d4a73['element']=[a109_0x48d150(0x159),a109_0x48d150(0x157)];var a109_0xf7d3f4={};a109_0xf7d3f4[a109_0x48d150(0x158)]=[a109_0x48d150(0x15a)];var a109_0x219aa3={};a109_0x219aa3[a109_0x48d150(0x14f)]=[a109_0x48d150(0x159)];function a109_0x2a74(_0x38fc2b,_0x11ac30){var _0x2e9cd4=a109_0x2e9c();return a109_0x2a74=function(_0x2a74b8,_0x1e6142){_0x2a74b8=_0x2a74b8-0x14f;var _0x15e415=_0x2e9cd4[_0x2a74b8];return _0x15e415;},a109_0x2a74(_0x38fc2b,_0x11ac30);}var a109_0x23cfba={};a109_0x23cfba['auto']=a109_0x3d4a73,a109_0x23cfba[a109_0x48d150(0x153)]=a109_0xf7d3f4,a109_0x23cfba[a109_0x48d150(0x159)]=a109_0x219aa3,a109_0x23cfba[a109_0x48d150(0x161)]={},a109_0x23cfba[a109_0x48d150(0x15b)]={},module[a109_0x48d150(0x152)]=a109_0x23cfba;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x14cd98=a110_0x347e;(function(_0xaf3f4b,_0x5def0d){const _0x9150b1=a110_0x347e,_0x12d5ea=_0xaf3f4b();while(!![]){try{const _0x1c3aa5=-parseInt(_0x9150b1(0x19f))/0x1*(-parseInt(_0x9150b1(0x194))/0x2)+parseInt(_0x9150b1(0x19c))/0x3*(-parseInt(_0x9150b1(0x1a4))/0x4)+-parseInt(_0x9150b1(0x197))/0x5*(-parseInt(_0x9150b1(0x183))/0x6)+parseInt(_0x9150b1(0x195))/0x7+parseInt(_0x9150b1(0x18d))/0x8*(-parseInt(_0x9150b1(0x1a3))/0x9)+-parseInt(_0x9150b1(0x184))/0xa+parseInt(_0x9150b1(0x1a8))/0xb;if(_0x1c3aa5===_0x5def0d)break;else _0x12d5ea['push'](_0x12d5ea['shift']());}catch(_0xee2aa4){_0x12d5ea['push'](_0x12d5ea['shift']());}}}(a110_0x5671,0xd3e1f));function a110_0x5671(){const _0x67f449=['vxAkZ','platformIndex','vuEUO','uuid','3996904wQVSBa','@percy/selenium-webdriver','jyLGa','../../helpers/testhub/utils','SCREENSHOT_APP','length','apply','514tfzVfG','8662199csSPME','testCase','4213255vIBXie','../performance/constants','SCREENSHOT','fxSRq','browserstackPercyBestPlatform','372yvFTpq','screenshot','browserstackPlatformIndex','3287oscocc','snapshot','thTestCaseExecutionId','@percy/appium-app','27usokey','38224Moqpfe','error','ITDTq','Unsupported\x20driver\x20for\x20percy','17674690cOnLfu','nkJAT','name','6GyZOEB','9800030wILeZD','SitLe','screenshotApp','../performance/performance-tester','measure'];a110_0x5671=function(){return _0x67f449;};return a110_0x5671();}function a110_0x347e(_0x30fd95,_0x34e081){const _0x5671d9=a110_0x5671();return a110_0x347e=function(_0x347eb4,_0x1f0e40){_0x347eb4=_0x347eb4-0x182;let _0xc333a2=_0x5671d9[_0x347eb4];return _0xc333a2;},a110_0x347e(_0x30fd95,_0x34e081);}const tryRequire=function(_0x341d49,_0xc9edfe){const _0x11a3bf=a110_0x347e,_0x20832e={'fxSRq':function(_0x53bc7d,_0x39a92f){return _0x53bc7d(_0x39a92f);}};try{return _0x20832e[_0x11a3bf(0x19a)](require,_0x341d49);}catch{return _0xc9edfe;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a110_0x14cd98(0x18e),{}),percyAppScreenshot=require(a110_0x14cd98(0x1a2)),{getCurrentTestData}=require(a110_0x14cd98(0x190)),PerformanceTester=require(a110_0x14cd98(0x187)),{PERCY_EVENTS:PerformanceEvents}=require(a110_0x14cd98(0x198)),logger=require('../logger')['winstonLogger'];percySnapshot&&(exports[a110_0x14cd98(0x1a0)]=async function(){const _0x35a420=a110_0x14cd98,_0x3f3743={'vxAkZ':function(_0x397753,_0x29f0ea){return _0x397753!==_0x29f0ea;},'ITDTq':function(_0x3d260f,_0x48fdd2){return _0x3d260f>=_0x48fdd2;},'cUXZV':function(_0x5df768){return _0x5df768();}};if(global[_0x35a420(0x19e)]&&_0x3f3743[_0x35a420(0x189)](global['browserstackPlatformIndex'],global[_0x35a420(0x19b)]))return;const _0x214b34=_0x3f3743[_0x35a420(0x1a6)](arguments[_0x35a420(0x192)],0x2)?arguments[0x1]:'',_0x199d74=_0x3f3743['cUXZV'](getCurrentTestData),_0x25cab0={};return _0x25cab0['name']=_0x214b34,_0x25cab0[_0x35a420(0x196)]=_0x199d74[_0x35a420(0x182)]||'',_0x25cab0['thTestCaseExecutionId']=_0x199d74[_0x35a420(0x18c)]||'',_0x25cab0[_0x35a420(0x18a)]=global[_0x35a420(0x19e)],await PerformanceTester['measure'](PerformanceEvents['SNAPSHOT'],()=>percySnapshot[_0x35a420(0x193)](null,arguments),_0x25cab0);});percyScreenshot?exports[a110_0x14cd98(0x19d)]=async function(){const _0x21602c=a110_0x14cd98,_0x25145c={'SitLe':function(_0x4283db,_0x4d0a7d){return _0x4283db>=_0x4d0a7d;},'jyLGa':function(_0x12f137){return _0x12f137();}},_0x43fde9=_0x25145c[_0x21602c(0x185)](arguments[_0x21602c(0x192)],0x2)?arguments[0x1]:'',_0x1a8572=_0x25145c[_0x21602c(0x18f)](getCurrentTestData),_0x319505={};return _0x319505[_0x21602c(0x182)]=_0x43fde9,_0x319505[_0x21602c(0x196)]=_0x1a8572['name']||'',_0x319505[_0x21602c(0x1a1)]=_0x1a8572[_0x21602c(0x18c)]||'',_0x319505[_0x21602c(0x18a)]=global[_0x21602c(0x19e)],await PerformanceTester[_0x21602c(0x188)](PerformanceEvents[_0x21602c(0x199)],()=>percyScreenshot[_0x21602c(0x193)](null,arguments),_0x319505);}:exports[a110_0x14cd98(0x19d)]=()=>{const _0x1d1bbc=a110_0x14cd98,_0x4395f7={};_0x4395f7[_0x1d1bbc(0x1a9)]=_0x1d1bbc(0x1a7);const _0x34acac=_0x4395f7;logger[_0x1d1bbc(0x1a5)](_0x34acac[_0x1d1bbc(0x1a9)]);};exports[a110_0x14cd98(0x186)]=async function(){const _0x7aea80=a110_0x14cd98,_0x1d8310={'BCIRF':function(_0x21c57f,_0x21952b){return _0x21c57f>=_0x21952b;},'vuEUO':function(_0x192b81){return _0x192b81();}},_0x37e2be=_0x1d8310['BCIRF'](arguments['length'],0x2)?arguments[0x1]:'',_0x2f92e3=_0x1d8310[_0x7aea80(0x18b)](getCurrentTestData),_0x21b6db={};return _0x21b6db[_0x7aea80(0x182)]=_0x37e2be,_0x21b6db[_0x7aea80(0x196)]=_0x2f92e3[_0x7aea80(0x182)]||'',_0x21b6db[_0x7aea80(0x1a1)]=_0x2f92e3[_0x7aea80(0x18c)]||'',_0x21b6db[_0x7aea80(0x18a)]=global[_0x7aea80(0x19e)],await PerformanceTester[_0x7aea80(0x188)](PerformanceEvents[_0x7aea80(0x191)],()=>percyAppScreenshot[_0x7aea80(0x193)](null,arguments),_0x21b6db);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a111_0x3314(_0x3317ca,_0x316310){var _0x508965=a111_0x5089();return a111_0x3314=function(_0x3314bf,_0x4873ef){_0x3314bf=_0x3314bf-0x119;var _0x45df40=_0x508965[_0x3314bf];return _0x45df40;},a111_0x3314(_0x3317ca,_0x316310);}var a111_0x492538=a111_0x3314;function a111_0x5089(){var _0x3f51d7=['302541zUJRvO','exports','8670312xBCqTW','35jjwTLm','4689230QgZMMf','189762ZgbmYL','250276NgrJZM','./Percy','286692OgiuhW','16550cKvQFz','8bLRyyM','3789mCODbu'];a111_0x5089=function(){return _0x3f51d7;};return a111_0x5089();}(function(_0x5ce64a,_0xe88228){var _0x2f9d04=a111_0x3314,_0x212d71=_0x5ce64a();while(!![]){try{var _0x11ad41=parseInt(_0x2f9d04(0x11c))/0x1+parseInt(_0x2f9d04(0x121))/0x2*(-parseInt(_0x2f9d04(0x123))/0x3)+parseInt(_0x2f9d04(0x11d))/0x4+parseInt(_0x2f9d04(0x11b))/0x5+-parseInt(_0x2f9d04(0x11f))/0x6*(-parseInt(_0x2f9d04(0x11a))/0x7)+-parseInt(_0x2f9d04(0x119))/0x8+parseInt(_0x2f9d04(0x122))/0x9*(parseInt(_0x2f9d04(0x120))/0xa);if(_0x11ad41===_0xe88228)break;else _0x212d71['push'](_0x212d71['shift']());}catch(_0x2ed2f2){_0x212d71['push'](_0x212d71['shift']());}}}(a111_0x5089,0x9bec9),module[a111_0x492538(0x124)]=require(a111_0x492538(0x11e)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a112_0x214a(_0x43c814,_0x31386a){const _0x31f0bc=a112_0x31f0();return a112_0x214a=function(_0x214a1e,_0x39bbc6){_0x214a1e=_0x214a1e-0xda;let _0x59343a=_0x31f0bc[_0x214a1e];return _0x59343a;},a112_0x214a(_0x43c814,_0x31386a);}const a112_0x36afcb=a112_0x214a;function a112_0x31f0(){const _0x178106=['../helper','1206963kCIsJF','KCvLS','screenshot','925776sDZLaI','getDriver','Error\x20patching\x20','reduce','../performance/constants','driver','gvfBx','percyCaptureMode','init','overrideXforPercy','isUndefined','STOP','\x20for\x20percy\x20','sMlso','265974TFwlNI','IcUxS','cNPJu','apply','nestedKeyValue','startPercy','platforms','29306AzoIQy','PBwlm','browserStackPercyOptions','forEach','browser','start','10SQUdpT','../performance/performance-tester','./PercyCaptureModes','browserstackPercyBestPlatform','manual','element','debug','prototype','stopPercy','kwgVF','1008234FTYYCm','browserstackSessionName','patch','getName','error','SIGVQ','toLowerCase','getBestPlatformForPercySnapshot','browserstackPercyMap','1096KdKVdw','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','chrome','browserName','Stopping\x20percy','measureWrapper','yywOK','1099930PmLXJp','lEKIN','./Percy','safari','12187pgaUAV','percy','UmTJx','percyAutoCapture','screenshotApp','EIoiM','deviceName','../logger'];a112_0x31f0=function(){return _0x178106;};return a112_0x31f0();}(function(_0x9b9e95,_0x5d3008){const _0x58da35=a112_0x214a,_0xba669d=_0x9b9e95();while(!![]){try{const _0x27eb16=-parseInt(_0x58da35(0x111))/0x1*(-parseInt(_0x58da35(0x117))/0x2)+-parseInt(_0x58da35(0x10a))/0x3+-parseInt(_0x58da35(0xfc))/0x4+-parseInt(_0x58da35(0xec))/0x5+parseInt(_0x58da35(0xdc))/0x6+-parseInt(_0x58da35(0xf0))/0x7*(-parseInt(_0x58da35(0xe5))/0x8)+parseInt(_0x58da35(0xf9))/0x9;if(_0x27eb16===_0x5d3008)break;else _0xba669d['push'](_0xba669d['shift']());}catch(_0x1bf66d){_0xba669d['push'](_0xba669d['shift']());}}}(a112_0x31f0,0x23ea1));const Percy=require(a112_0x36afcb(0xee)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a112_0x36afcb(0x119)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a112_0x36afcb(0xf7))['winstonLogger'],helper=require(a112_0x36afcb(0xf8)),PerformanceTester=require(a112_0x36afcb(0x118)),{PERCY_EVENTS:PerformanceEvents}=require(a112_0x36afcb(0x100));exports[a112_0x36afcb(0x10f)]=PerformanceTester[a112_0x36afcb(0xea)](PerformanceEvents['START'],async _0x2fab26=>{const _0x3662b4=a112_0x36afcb,_0x5ac757={};_0x5ac757[_0x3662b4(0x109)]='Starting\x20percy';const _0x378d26=_0x5ac757;logger[_0x3662b4(0x11d)](_0x378d26[_0x3662b4(0x109)]);const _0x1c3c55=new Percy(_0x2fab26),_0x5278ef=await _0x1c3c55[_0x3662b4(0x116)]();if(_0x5278ef)return _0x1c3c55;return null;}),exports[a112_0x36afcb(0xda)]=PerformanceTester[a112_0x36afcb(0xea)](PerformanceEvents[a112_0x36afcb(0x107)],async _0x2bc8c5=>{const _0x454925=a112_0x36afcb,_0x3a651e={};_0x3a651e[_0x454925(0xeb)]=_0x454925(0xe9);const _0x1b8fcd=_0x3a651e;return logger[_0x454925(0x11d)](_0x1b8fcd[_0x454925(0xeb)]),_0x2bc8c5['stop']();}),exports[a112_0x36afcb(0xe3)]=_0x4addfe=>{const _0x21f70f=a112_0x36afcb,_0x203473={};_0x203473[_0x21f70f(0x112)]=function(_0x29ec60,_0x27b234){return _0x29ec60<_0x27b234;};const _0x549933=_0x203473,_0x4392e9={};_0x4392e9[_0x21f70f(0xe7)]=0x0,_0x4392e9['firefox']=0x1,_0x4392e9['edge']=0x2,_0x4392e9[_0x21f70f(0xef)]=0x3;const _0x3e2fa9=_0x4392e9;return _0x4addfe[_0x21f70f(0xff)]((_0x1c592e,_0x44d76b,_0x5d0031)=>{const _0x2de25b=_0x21f70f,_0x3d2fc3=_0x4addfe[_0x1c592e];if(_0x44d76b['deviceName'])return _0x1c592e;if(_0x3d2fc3[_0x2de25b(0xf6)])return _0x5d0031;const _0x5774ec=_0x44d76b['browser']?_0x44d76b[_0x2de25b(0x115)]:_0x44d76b[_0x2de25b(0xe8)];if(_0x5774ec&&_0x549933[_0x2de25b(0x112)](_0x3e2fa9[_0x5774ec[_0x2de25b(0xe2)]()],_0x3e2fa9[_0x5774ec[_0x2de25b(0xe2)]()]))return _0x5d0031;return _0x1c592e;},0x0);},exports['percyAutoCapture']=PerformanceTester[a112_0x36afcb(0xea)](PerformanceEvents['AUTO_CAPTURE'],async(_0xa46c7b,_0x4e504a,_0x1213b1)=>{const _0xee89a5=a112_0x36afcb,_0x43b6e9={};_0x43b6e9[_0xee89a5(0xed)]=_0xee89a5(0xe6);const _0x424fd0=_0x43b6e9,_0xad860a=_0xa46c7b['browserstackPercyMap'];if(helper[_0xee89a5(0x106)](_0xa46c7b['browserstackSessionName'])){logger[_0xee89a5(0x11d)](_0x424fd0['lEKIN']);return;}const _0x5d926f=_0xad860a[_0xee89a5(0xdf)](_0xa46c7b[_0xee89a5(0xdd)],_0x4e504a);_0x1213b1['app']?await PercySDK[_0xee89a5(0xf4)](_0xa46c7b,_0x5d926f):await PercySDK[_0xee89a5(0xfb)](_0xa46c7b,_0x5d926f),_0xad860a['increment'](_0xa46c7b[_0xee89a5(0xdd)],_0x4e504a);}),exports['patchDriverPercy']=(_0x9e0c4f,_0x4cf228,_0x3f66ef)=>{const _0x5cfcf8=a112_0x36afcb,_0x5177cb={};_0x5177cb['HbKMT']='browserStackPercyOptions',_0x5177cb[_0x5cfcf8(0x10c)]=_0x5cfcf8(0xf1),_0x5177cb[_0x5cfcf8(0xe1)]=function(_0x442956,_0x144067){return _0x442956!==_0x144067;},_0x5177cb[_0x5cfcf8(0xf2)]=_0x5cfcf8(0x11b);const _0x3cac24=_0x5177cb;if(!helper[_0x5cfcf8(0x10e)](_0x3f66ef,[_0x3cac24['HbKMT'],_0x3cac24[_0x5cfcf8(0x10c)]]))return;if(_0x3f66ef[_0x5cfcf8(0x113)][_0x5cfcf8(0xf1)]&&_0x3f66ef['browserStackPercyOptions'][_0x5cfcf8(0x103)]&&_0x3cac24['SIGVQ'](_0x3f66ef[_0x5cfcf8(0x113)][_0x5cfcf8(0x103)],_0x3cac24[_0x5cfcf8(0xf2)])&&!_0x9e0c4f[_0x5cfcf8(0xe4)]){global[_0x5cfcf8(0xdd)]&&(_0x9e0c4f[_0x5cfcf8(0xdd)]=global[_0x5cfcf8(0xdd)]),_0x9e0c4f[_0x5cfcf8(0xe4)]=new PercyCaptureMap();const _0x468c60=PercyCaptureModes[_0x3f66ef[_0x5cfcf8(0x113)][_0x5cfcf8(0x103)]];_0x468c60[_0x5cfcf8(0x101)]&&_0x468c60[_0x5cfcf8(0x101)][_0x5cfcf8(0x114)](_0x49c2ea=>this[_0x5cfcf8(0x105)](_0x9e0c4f,_0x49c2ea,_0x3f66ef)),_0x468c60[_0x5cfcf8(0x11c)]&&_0x468c60['element'][_0x5cfcf8(0x114)](_0x2f164c=>{const _0x562f4f=_0x5cfcf8;if(_0x4cf228[_0x562f4f(0x11e)][_0x562f4f(0xde)+_0x2f164c])return;_0x4cf228[_0x562f4f(0x11e)][_0x562f4f(0xde)+_0x2f164c]=!![];const _0x19126c=_0x4cf228['prototype'][_0x2f164c];_0x4cf228['prototype'][_0x2f164c]=async function(){const _0x35d611=_0x562f4f;let _0x2ccb99=_0x19126c[_0x35d611(0x10d)](this,arguments);_0x2ccb99&&_0x2ccb99['then']&&(_0x2ccb99=await _0x2ccb99);try{const _0xeec2c7=this[_0x35d611(0xfd)]();await exports[_0x35d611(0xf3)](_0xeec2c7,_0x2f164c,_0x3f66ef);}catch(_0x59a50f){logger[_0x35d611(0xe0)](_0x35d611(0xfe)+_0x2f164c+_0x35d611(0x108)+_0x59a50f);}return _0x2ccb99;};});}},exports['overrideXforPercy']=function(_0x2e91b2,_0x436138,_0x2582bf){const _0x464b4b=a112_0x36afcb,_0x1a15cb={};_0x1a15cb[_0x464b4b(0x10b)]=function(_0x2d6b56,_0x22ef27){return _0x2d6b56+_0x22ef27;},_0x1a15cb[_0x464b4b(0xdb)]=_0x464b4b(0xde),_0x1a15cb[_0x464b4b(0xf5)]=function(_0x2f9456,_0x3d89bd){return _0x2f9456+_0x3d89bd;},_0x1a15cb[_0x464b4b(0xfa)]=_0x464b4b(0x104);const _0x254be7=_0x1a15cb,_0x8f844c=_0x254be7['IcUxS'](_0x254be7[_0x464b4b(0xdb)],_0x436138),_0x244af8=_0x254be7[_0x464b4b(0xf5)](_0x254be7['KCvLS'],_0x436138),_0x47a6c8=this;if(_0x2e91b2[_0x8f844c]||!_0x2e91b2[_0x436138])return;_0x2e91b2[_0x8f844c]=!![],_0x2e91b2[_0x244af8]=_0x2e91b2[_0x436138],_0x2e91b2[_0x436138]=async()=>{const _0x1245d3=_0x464b4b;try{await _0x47a6c8['percyAutoCapture'](_0x2e91b2,_0x436138,_0x2582bf);}catch(_0x9f9c52){logger[_0x1245d3(0xe0)](_0x1245d3(0xfe)+_0x436138+_0x1245d3(0x108)+_0x9f9c52);}return await _0x2e91b2[_0x244af8][_0x1245d3(0x10d)](_0x2e91b2,arguments);};},exports['getPercyOptions']=_0x19de2d=>{const _0x1f0538=a112_0x36afcb,_0x14e916={};_0x14e916[_0x1f0538(0x102)]='auto';const _0xbbf4bd=_0x14e916,_0x46d5c0={};_0x46d5c0[_0x1f0538(0xf1)]=_0x19de2d['percy'],_0x46d5c0[_0x1f0538(0x103)]=_0x19de2d[_0x1f0538(0x103)]||_0xbbf4bd['gvfBx'];const _0x4c2b94=_0x46d5c0;_0x19de2d[_0x1f0538(0xf1)]&&(_0x4c2b94[_0x1f0538(0x11a)]=exports[_0x1f0538(0xe3)](_0x19de2d[_0x1f0538(0x110)]));;return _0x4c2b94;};
|