﻿;const NotSupportedValue="\x6E\x75\x6C\x6C";const BackgroundLayerBlendName="\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64";const TestMouse="\x54\x65\x73\x74\x5F\x4D\x6F\x75\x73\x65";var psDebugAlert=false;var psDebugLog=false;var psDebugLogFile=false;const psLogFilePath=Folder.desktop+ "\x2F\x50\x68\x6F\x74\x6F\x73\x68\x6F\x70\x41\x63\x74\x69\x6F\x6E\x73\x4C\x6F\x67\x2E\x74\x78\x74";var psUnitTestLogFilePrefix=Folder.desktop+ "\x2F\x6C\x6F\x67\x2F\x50\x73\x5F";var psUnitTestCurrentTest="\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x5F";var psPrefContext=0;var isMac=(0== $.os.indexOf("\x4D\x61\x63"));var logiLayerName="\x43\x72\x61\x66\x74\x3A\x20";var logiHistoryName="\x43\x72\x61\x66\x74";var _abList=[];var psStrBrtCnt=localize("\x24\x24\x24\x2F\x41\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2F\x42\x72\x69\x67\x68\x74\x6E\x65\x73\x73\x3D\x42\x72\x69\x67\x68\x74\x6E\x65\x73\x73\x2F\x43\x6F\x6E\x74\x72\x61\x73\x74");var psStrHueSat=localize("\x24\x24\x24\x2F\x41\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2F\x48\x75\x65\x53\x61\x74\x3D\x48\x75\x65\x2F\x53\x61\x74\x75\x72\x61\x74\x69\x6F\x6E");var psStrVibrance=localize("\x24\x24\x24\x2F\x41\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2F\x56\x69\x62\x72\x61\x6E\x63\x65\x3D\x56\x69\x62\x72\x61\x6E\x63\x65");var psStrExposure=localize("\x24\x24\x24\x2F\x41\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2F\x45\x78\x70\x6F\x73\x75\x72\x65\x3D\x45\x78\x70\x6F\x73\x75\x72\x65");var psStrBlnCng=localize("\x24\x24\x24\x2F\x43\x6F\x6D\x6D\x61\x6E\x64\x73\x2F\x42\x6C\x65\x6E\x64\x4D\x6F\x64\x65\x43\x68\x61\x6E\x67\x65\x3D\x42\x6C\x65\x6E\x64\x69\x6E\x67\x20\x43\x68\x61\x6E\x67\x65");var psStrMasterOpacityChange=localize("\x24\x24\x24\x2F\x43\x6F\x6D\x6D\x61\x6E\x64\x73\x2F\x4D\x61\x73\x74\x65\x72\x4F\x70\x61\x63\x69\x74\x79\x3D\x4D\x61\x73\x74\x65\x72\x20\x4F\x70\x61\x63\x69\x74\x79\x20\x43\x68\x61\x6E\x67\x65");var psStrFillOpacityChange=localize("\x24\x24\x24\x2F\x43\x6F\x6D\x6D\x61\x6E\x64\x73\x2F\x46\x69\x6C\x6C\x4F\x70\x61\x63\x69\x74\x79\x3D\x46\x69\x6C\x6C\x20\x4F\x70\x61\x63\x69\x74\x79\x20\x43\x68\x61\x6E\x67\x65");function willOverwriteHistory(){var _0x1615C=false;try{if(appMajorVersionNumber()<= 19){_0x1615C=  !isMac}else {if(isMac){_0x1615C= false}else {_0x1615C=  !isLayerVisibilityChangesAreUndoable()}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function appMajorVersionNumber(){var _0x1615C=1;try{_0x1615C= Number(app.version.split('\x2E')[0])}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isLayerVisibilityChangesAreUndoable(){var _0x1615C=false;try{var _0x17234={"\x6E\x75\x6C\x6C":{"\x5F\x72\x65\x66":[{"\x5F\x70\x72\x6F\x70\x65\x72\x74\x79":"\x6C\x61\x79\x65\x72\x56\x69\x73\x69\x62\x69\x6C\x69\x74\x79\x43\x68\x61\x6E\x67\x65\x73\x41\x72\x65\x55\x6E\x64\x6F\x61\x62\x6C\x65","\x5F\x72\x65\x66":"\x70\x72\x6F\x70\x65\x72\x74\x79"},{"\x5F\x65\x6E\x75\x6D":"\x6F\x72\x64\x69\x6E\x61\x6C","\x5F\x72\x65\x66":"\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x5F\x76\x61\x6C\x75\x65":"\x74\x61\x72\x67\x65\x74"}]}};var _0x16A62=Humanizer.getObject(_0x17234);_0x1615C= _0x16A62.layerVisibilityChangesAreUndoable}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function GetCurrentTool(){if( typeof classProperty== "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"){classProperty= app.charIDToTypeID('\x50\x72\x70\x72')};if( typeof kcurrentToolOptionsStr== "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"){kcurrentToolOptionsStr= app.stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73")};if( typeof ktoolStr== "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"){ktoolStr= app.stringIDToTypeID("\x74\x6F\x6F\x6C")};if( typeof classApplication== "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"){classApplication= app.charIDToTypeID('\x63\x61\x70\x70')};if( typeof typeOrdinal== "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"){typeOrdinal= app.charIDToTypeID('\x4F\x72\x64\x6E')};if( typeof enumTarget== "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"){enumTarget= app.charIDToTypeID('\x54\x72\x67\x74')};var _0x167B8= new ActionReference();_0x167B8.putProperty(classProperty,ktoolStr);_0x167B8.putEnumerated(classApplication,typeOrdinal,enumTarget);var _0x1678C=executeActionGet(_0x167B8);var _0x16A78= new Object();psDscToObj(_0x16A78,_0x1678C);return _0x16A78}function psGetCurrentToolOptions(){var _0x1615C={};try{var _0x16D38=GetCurrentTool();_0x1615C= _0x16D38.currentToolOptions}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function debugAlert(_0x15E2E){debugLog(_0x15E2E);if(psDebugAlert){alert(_0x15E2E)}}function debugLog(_0x15E2E){if(psDebugLog){$.writeln(currentTime()+ "\x20"+ _0x15E2E)};if(psDebugLogFile){var _0x1666E= new File(psLogFilePath);if(_0x1666E.open('\x61')){_0x1666E.writeln(currentTime()+ "\x20"+ _0x15E2E);_0x1666E.close()}}}function setPaintBrushModePS2(_0x1683C,_0x167FA){var _0x16BC2=stringIDToTypeID("\x73\x65\x74");var _0x16AD0= new ActionDescriptor();var _0x15FA4=stringIDToTypeID("\x6E\x75\x6C\x6C");var _0x16C1A= new ActionReference();var _0x17704=getCurrentTool();var _0x16BAC=stringIDToTypeID(_0x17704);_0x16C1A.putClass(_0x16BAC);_0x16AD0.putReference(_0x15FA4,_0x16C1A);var _0x16AFC=stringIDToTypeID("\x74\x6F");var _0x16AE6= new ActionDescriptor();var _0x16B12=stringIDToTypeID("\x6F\x70\x61\x63\x69\x74\x79");var _0x16B28=stringIDToTypeID("\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74");if(_0x1683C== null|| isNaN(_0x1683C)){_0x1683C= 100};_0x16AE6.putUnitDouble(_0x16B12,_0x16B28,_0x1683C);var _0x16B96=stringIDToTypeID("\x66\x6C\x6F\x77");if(_0x167FA== null|| isNaN(_0x167FA)){_0x167FA= 100};_0x16AE6.putUnitDouble(_0x16B96,_0x16B28,_0x167FA);var _0x16B80=stringIDToTypeID("\x6E\x75\x6C\x6C");_0x16AD0.putObject(_0x16AFC,_0x16B80,_0x16AE6);executeAction(_0x16BC2,_0x16AD0,DialogModes.NO)}function setPaintBrushModePS(_0x1683C,_0x167FA,_0x16BEE,_0x16C04,_0x16BD8,_0x16826){var _0x16BC2=stringIDToTypeID("\x73\x65\x74");var _0x16AD0= new ActionDescriptor();var _0x15FA4=stringIDToTypeID("\x6E\x75\x6C\x6C");var _0x16C1A= new ActionReference();var _0x17704=getCurrentTool();var _0x16BAC=stringIDToTypeID(_0x17704);_0x16C1A.putClass(_0x16BAC);_0x16AD0.putReference(_0x15FA4,_0x16C1A);var _0x16AFC=stringIDToTypeID("\x74\x6F");var _0x16AE6= new ActionDescriptor();var _0x16B12=stringIDToTypeID("\x6F\x70\x61\x63\x69\x74\x79");var _0x16B28=stringIDToTypeID("\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74");if(_0x1683C== null|| isNaN(_0x1683C)){_0x1683C= 100};_0x16AE6.putUnitDouble(_0x16B12,_0x16B28,_0x1683C);var _0x16B3E=stringIDToTypeID("\x6D\x6F\x64\x65");var _0x16B54=stringIDToTypeID("\x62\x6C\x65\x6E\x64\x4D\x6F\x64\x65\x6C");var _0x16B6A=stringIDToTypeID(_0x16826);_0x16AE6.putEnumerated(_0x16B3E,_0x16B54,_0x16B6A);var _0x16B96=stringIDToTypeID("\x66\x6C\x6F\x77");if(_0x167FA== null|| isNaN(_0x167FA)){_0x167FA= 100};_0x16AE6.putUnitDouble(_0x16B96,_0x16B28,_0x167FA);if(_0x16BEE== null){_0x16BEE= false};_0x16AE6.putBoolean(stringIDToTypeID("\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x4F\x70\x61\x63\x69\x74\x79"),_0x16BEE);if(_0x16C04== null){_0x16C04= false};_0x16AE6.putBoolean(stringIDToTypeID("\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x53\x69\x7A\x65"),_0x16C04);if(_0x16BD8== null){_0x16BD8= false};_0x16AE6.putBoolean(stringIDToTypeID("\x72\x65\x70\x65\x61\x74"),_0x16BD8);var _0x16B80=stringIDToTypeID("\x6E\x75\x6C\x6C");_0x16AD0.putObject(_0x16AFC,_0x16B80,_0x16AE6);executeAction(_0x16BC2,_0x16AD0,DialogModes.NO)}function getPaintBrushModePS(_0x1683C,_0x167FA,_0x16BEE,_0x16C04,_0x16BD8,_0x16826){var _0x16BC2=stringIDToTypeID("\x73\x65\x74");var _0x16AD0= new ActionDescriptor();var _0x15FA4=stringIDToTypeID("\x6E\x75\x6C\x6C");var _0x16C1A= new ActionReference();var _0x16BAC=stringIDToTypeID("\x73\x68\x61\x72\x70\x65\x6E\x54\x6F\x6F\x6C");_0x16C1A.putClass(_0x16BAC);_0x16AD0.putReference(_0x15FA4,_0x16C1A);var _0x16AFC=stringIDToTypeID("\x74\x6F");var _0x16AE6= new ActionDescriptor();var _0x16B12=stringIDToTypeID("\x6F\x70\x61\x63\x69\x74\x79");var _0x16B28=stringIDToTypeID("\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74");_0x16AE6.putUnitDouble(_0x16B12,_0x16B28,_0x1683C);var _0x16B3E=stringIDToTypeID("\x6D\x6F\x64\x65");var _0x16B54=stringIDToTypeID("\x62\x6C\x65\x6E\x64\x4D\x6F\x64\x65\x6C");var _0x16B6A=stringIDToTypeID(_0x16826);_0x16AE6.putEnumerated(_0x16B3E,_0x16B54,_0x16B6A);var _0x16B96=stringIDToTypeID("\x66\x6C\x6F\x77");_0x16AE6.putUnitDouble(_0x16B96,_0x16B28,_0x167FA);_0x16AE6.putBoolean(stringIDToTypeID("\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x4F\x70\x61\x63\x69\x74\x79"),_0x16BEE);_0x16AE6.putBoolean(stringIDToTypeID("\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x53\x69\x7A\x65"),_0x16C04);_0x16AE6.putBoolean(stringIDToTypeID("\x72\x65\x70\x65\x61\x74"),_0x16BD8);var _0x16B80=stringIDToTypeID("\x6E\x75\x6C\x6C");_0x16AD0.putObject(_0x16AFC,_0x16B80,_0x16AE6);executeAction(_0x16BC2,_0x16AD0,DialogModes.NO)}function setPressureModePS(_0x1683C,_0x169B2,_0x16BEE,_0x16C04,_0x16BD8,_0x16826){var _0x16BC2=stringIDToTypeID("\x73\x65\x74");var _0x16AD0= new ActionDescriptor();var _0x15FA4=stringIDToTypeID("\x6E\x75\x6C\x6C");var _0x16C1A= new ActionReference();var _0x17704=getCurrentTool();var _0x16BAC=stringIDToTypeID(_0x17704);_0x16C1A.putClass(_0x16BAC);_0x16AD0.putReference(_0x15FA4,_0x16C1A);var _0x16AFC=stringIDToTypeID("\x74\x6F");var _0x16AE6= new ActionDescriptor();var _0x16B12=stringIDToTypeID("\x6F\x70\x61\x63\x69\x74\x79");var _0x16B28=stringIDToTypeID("\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74");if(_0x1683C== null|| isNaN(_0x1683C)){_0x1683C= 100};_0x16AE6.putUnitDouble(_0x16B12,_0x16B28,_0x1683C);var _0x16B3E=stringIDToTypeID("\x6D\x6F\x64\x65");var _0x16B54=stringIDToTypeID("\x62\x6C\x65\x6E\x64\x4D\x6F\x64\x65\x6C");var _0x16B6A=stringIDToTypeID(_0x16826);_0x16AE6.putEnumerated(_0x16B3E,_0x16B54,_0x16B6A);var _0x16B96=stringIDToTypeID("\x70\x72\x65\x73\x73\x75\x72\x65");if(_0x169B2== null|| isNaN(_0x169B2)){_0x169B2= 100};_0x16AE6.putUnitDouble(_0x16B96,_0x16B28,_0x169B2);if(_0x16BEE== null){_0x16BEE= false};_0x16AE6.putBoolean(stringIDToTypeID("\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x4F\x70\x61\x63\x69\x74\x79"),_0x16BEE);if(_0x16C04== null){_0x16C04= false};_0x16AE6.putBoolean(stringIDToTypeID("\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x53\x69\x7A\x65"),_0x16C04);if(_0x16BD8== null){_0x16BD8= false};_0x16AE6.putBoolean(stringIDToTypeID("\x72\x65\x70\x65\x61\x74"),_0x16BD8);var _0x16B80=stringIDToTypeID("\x6E\x75\x6C\x6C");_0x16AD0.putObject(_0x16AFC,_0x16B80,_0x16AE6);executeAction(_0x16BC2,_0x16AD0,DialogModes.NO)}function setParameterExposure(_0x16C30){var _0x16BC2=stringIDToTypeID("\x73\x65\x74");var _0x16AD0= new ActionDescriptor();var _0x15FA4=stringIDToTypeID("\x6E\x75\x6C\x6C");var _0x16C1A= new ActionReference();var _0x17704=getCurrentTool();var _0x16BAC=stringIDToTypeID(_0x17704);_0x16C1A.putClass(_0x16BAC);_0x16AD0.putReference(_0x15FA4,_0x16C1A);var _0x16AFC=stringIDToTypeID("\x74\x6F");var _0x16AE6= new ActionDescriptor();var _0x16B12=stringIDToTypeID("\x65\x78\x70\x6F\x73\x75\x72\x65");var _0x16B28=stringIDToTypeID("\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74");if(_0x16C30== null|| isNaN(_0x16C30)){_0x16C30= 100};_0x16AE6.putUnitDouble(_0x16B12,_0x16B28,_0x16C30);var _0x16B80=stringIDToTypeID("\x6E\x75\x6C\x6C");_0x16AD0.putObject(_0x16AFC,_0x16B80,_0x16AE6);executeAction(_0x16BC2,_0x16AD0,DialogModes.NO)}function setParameterOpacity(_0x1683C){var _0x16BC2=stringIDToTypeID("\x73\x65\x74");var _0x16AD0= new ActionDescriptor();var _0x15FA4=stringIDToTypeID("\x6E\x75\x6C\x6C");var _0x16C1A= new ActionReference();var _0x17704=getCurrentTool();var _0x16BAC=stringIDToTypeID(_0x17704);_0x16C1A.putClass(_0x16BAC);_0x16AD0.putReference(_0x15FA4,_0x16C1A);var _0x16AFC=stringIDToTypeID("\x74\x6F");var _0x16AE6= new ActionDescriptor();var _0x16B12=stringIDToTypeID("\x6F\x70\x61\x63\x69\x74\x79");var _0x16B28=stringIDToTypeID("\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74");if(_0x1683C== null|| isNaN(_0x1683C)){_0x1683C= 100};_0x16AE6.putUnitDouble(_0x16B12,_0x16B28,_0x1683C);var _0x16B80=stringIDToTypeID("\x6E\x75\x6C\x6C");_0x16AD0.putObject(_0x16AFC,_0x16B80,_0x16AE6);executeAction(_0x16BC2,_0x16AD0,DialogModes.NO)}s2t= function(_0x15E70){return app.stringIDToTypeID(_0x15E70)};function getZoom(){var _0x167B8;_0x167B8=  new ActionReference();_0x167B8.putProperty(s2t("\x70\x72\x6F\x70\x65\x72\x74\x79"),s2t("\x7A\x6F\x6F\x6D"));_0x167B8.putEnumerated(s2t("\x64\x6F\x63\x75\x6D\x65\x6E\x74"),s2t("\x6F\x72\x64\x69\x6E\x61\x6C"),s2t("\x74\x61\x72\x67\x65\x74\x45\x6E\x75\x6D"));var _0x16D4E=executeActionGet(_0x167B8).getUnitDoubleValue(s2t("\x7A\x6F\x6F\x6D"));_0x16D4E= _0x16D4E* 100;return _0x16D4E}function setZoomScroll(_0x17FC8){var _0x1678C,_0x167B8,_0x17FB2;_0x17FC8= _0x17FC8/ 100;_0x1678C=  new ActionDescriptor;_0x17FB2=  new ActionDescriptor;_0x167B8=  new ActionReference;_0x167B8.putProperty(s2t('\x70\x72\x6F\x70\x65\x72\x74\x79'),s2t('\x7A\x6F\x6F\x6D'));_0x167B8.putEnumerated(s2t('\x64\x6F\x63\x75\x6D\x65\x6E\x74'),s2t('\x6F\x72\x64\x69\x6E\x61\x6C'),s2t('\x74\x61\x72\x67\x65\x74\x45\x6E\x75\x6D'));_0x1678C.putReference(s2t('\x74\x61\x72\x67\x65\x74'),_0x167B8);_0x17FB2.putUnitDouble(s2t('\x7A\x6F\x6F\x6D'),s2t('\x70\x65\x72\x63\x65\x6E\x74\x55\x6E\x69\x74'),_0x17FC8);_0x1678C.putObject(s2t('\x74\x6F'),s2t('\x7A\x6F\x6F\x6D'),_0x17FB2);executeAction(s2t('\x73\x65\x74'),_0x1678C,DialogModes.NO)}function setStrokeWeightForActivePaths(_0x1662C){var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17EC0= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17F9C= new ActionReference();var _0x17F02=stringIDToTypeID("\x63\x6F\x6E\x74\x65\x6E\x74\x4C\x61\x79\x65\x72");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17F9C.putEnumerated(_0x17F02,_0x1749C,_0x17AB6);_0x17EC0.putReference(_0x15FA4,_0x17F9C);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17ED6= new ActionDescriptor();var _0x17F5A=stringIDToTypeID("\x73\x74\x72\x6F\x6B\x65\x53\x74\x79\x6C\x65");var _0x17EEC= new ActionDescriptor();var _0x17F70=stringIDToTypeID("\x73\x74\x72\x6F\x6B\x65\x53\x74\x79\x6C\x65\x4C\x69\x6E\x65\x57\x69\x64\x74\x68");var _0x17F18=charIDToTypeID("\x23\x50\x6E\x74");_0x17EEC.putUnitDouble(_0x17F70,_0x17F18,_0x1662C);var _0x17F86=stringIDToTypeID("\x73\x74\x72\x6F\x6B\x65\x53\x74\x79\x6C\x65\x56\x65\x72\x73\x69\x6F\x6E");_0x17EEC.putInteger(_0x17F86,2);var _0x17F44=stringIDToTypeID("\x73\x74\x72\x6F\x6B\x65\x45\x6E\x61\x62\x6C\x65\x64");_0x17EEC.putBoolean(_0x17F44,true);var _0x17F5A=stringIDToTypeID("\x73\x74\x72\x6F\x6B\x65\x53\x74\x79\x6C\x65");_0x17ED6.putObject(_0x17F5A,_0x17F5A,_0x17EEC);var _0x17F2E=stringIDToTypeID("\x73\x68\x61\x70\x65\x53\x74\x79\x6C\x65");_0x17EC0.putObject(_0x17AA0,_0x17F2E,_0x17ED6);executeAction(_0x17A74,_0x17EC0,DialogModes.NO)}function setBrightnessParameters(_0x172B8,_0x172CE){try{moveHistoryState(psStrBrtCnt);var _0x1742E=createLogiHistoryNameWithValue(psStrBrtCnt,_0x172B8+ "\x2C\x20"+ _0x172CE);var _0x17AE2="\x73\x65\x74\x42\x72\x69\x67\x68\x74\x6E\x65\x73\x73\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x28"+ _0x172B8+ "\x2C\x20"+ _0x172CE+ "\x29";app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrightnessParametersSub(_0x172B8,_0x172CE){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x16AE6= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17B66= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17B66.putEnumerated(_0x15F4C,_0x1749C,_0x17AB6);_0x16AE6.putReference(_0x15FA4,_0x17B66);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17B7C= new ActionDescriptor();var _0x17BA8=charIDToTypeID("\x42\x72\x67\x68");_0x17B7C.putInteger(_0x17BA8,_0x172B8);var _0x17BBE=charIDToTypeID("\x43\x6E\x74\x72");_0x17B7C.putInteger(_0x17BBE,_0x172CE);var _0x17BD4=stringIDToTypeID("\x75\x73\x65\x4C\x65\x67\x61\x63\x79");_0x17B7C.putBoolean(_0x17BD4,false);var _0x17B92=charIDToTypeID("\x42\x72\x67\x43");_0x16AE6.putObject(_0x17AA0,_0x17B92,_0x17B7C);executeAction(_0x17A74,_0x16AE6,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function moveHistoryState(_0x16642){try{if(willOverwriteHistory()){var _0x17470=createLogiHistoryName(_0x16642);var _0x1745A=app.activeDocument.activeHistoryState;if(_0x1745A.name.startsWith(_0x17470)){moveHistoryStateByOne()}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function moveHistoryStateByOne(){try{var _0x174C8=charIDToTypeID("\x73\x6C\x63\x74");var _0x17402= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x173EC= new ActionReference();var _0x17486=charIDToTypeID("\x48\x73\x74\x53");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x174B2=charIDToTypeID("\x50\x72\x76\x73");_0x173EC.putEnumerated(_0x17486,_0x1749C,_0x174B2);_0x17402.putReference(_0x15FA4,_0x173EC);executeAction(_0x174C8,_0x17402,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function createLogiHistoryNameWithValue(_0x16642,_0x1619E){var _0x1615C=logiHistoryName;try{_0x1615C= createLogiHistoryName(_0x16642)+ "\x3A\x20"+ _0x1619E}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function createLogiHistoryName(_0x16642){var _0x1615C=logiHistoryName;try{_0x1615C= logiHistoryName+ "\x3A\x20"+ _0x16642}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getBrightnessParameters(){var _0x16A20='\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73';var _0x16A36=isAreaSelected();if(!_0x16A36){try{var _0x15E2E=layerInfo(_0x16A20);if(_0x15E2E.startsWith("\x4F\x4B")|| _0x15E2E== NotSupportedValue){return _0x15E2E}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};if(findLogiLayer2(LayerKind.BRIGHTNESSCONTRAST)){return layerInfo(_0x16A20)}};if(!_0x16A36){moveToRootOfArtboard()};addBrightnessLayer();return layerInfo(_0x16A20)}function getLayerBrightnessParameters(){var _0x16A20='\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73';return layerInfo(_0x16A20)}function isAreaSelected(){var _0x1615C=false;try{var _0x15E70=app.activeDocument.selection.bounds;_0x1615C= true}catch(e){};return _0x1615C}function moveToRootOfArtboard(){try{updateAbList();var _0x1669A=app.activeDocument.activeLayer;var _0x166DC=getTopLayerSet(_0x1669A);if(_0x166DC&& isArtboard(_0x166DC.id)){app.activeDocument.activeLayer= _0x166DC}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function addBrightnessLayer(){try{var _0x15E9C= new ActionDescriptor();var _0x15EDE= new ActionReference();_0x15EDE.putClass(charIDToTypeID('\x41\x64\x6A\x4C'));_0x15E9C.putReference(charIDToTypeID('\x6E\x75\x6C\x6C'),_0x15EDE);var _0x15EB2= new ActionDescriptor();var _0x15EC8= new ActionDescriptor();_0x15EC8.putBoolean(stringIDToTypeID('\x75\x73\x65\x4C\x65\x67\x61\x63\x79'),0);_0x15EB2.putObject(charIDToTypeID('\x54\x79\x70\x65'),charIDToTypeID('\x42\x72\x67\x43'),_0x15EC8);_0x15E9C.putObject(charIDToTypeID('\x55\x73\x6E\x67'),charIDToTypeID('\x41\x64\x6A\x4C'),_0x15EB2);try{executeAction(charIDToTypeID('\x4D\x6B\x20\x20'),_0x15E9C,DialogModes.NO);var _0x15E86= new ActionDescriptor();var _0x15EDE= new ActionReference();_0x15EDE.putEnumerated(charIDToTypeID('\x41\x64\x6A\x4C'),charIDToTypeID('\x4F\x72\x64\x6E'),charIDToTypeID('\x54\x72\x67\x74'));_0x15E86.putReference(charIDToTypeID('\x6E\x75\x6C\x6C'),_0x15EDE);var _0x15E9C= new ActionDescriptor();_0x15E9C.putInteger(charIDToTypeID('\x42\x72\x67\x68'),0);_0x15E9C.putInteger(charIDToTypeID('\x43\x6E\x74\x72'),0);_0x15E9C.putBoolean(stringIDToTypeID("\x75\x73\x65\x4C\x65\x67\x61\x63\x79"),false);_0x15E86.putObject(charIDToTypeID('\x54\x20\x20\x20'),charIDToTypeID('\x42\x72\x67\x43'),_0x15E9C);executeAction(stringIDToTypeID('\x73\x65\x74'),_0x15E86,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};app.activeDocument.activeLayer.name= logiLayerName+ psStrBrtCnt}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function findLogiLayer(_0x166B0,_0x16684,_0x166C6){var _0x1615C=false;try{for(var _0x15E44=0;_0x15E44< _0x166B0.length;_0x15E44++){var _0x1669A=_0x166B0[_0x15E44];if(_0x1669A.name.startsWith(logiLayerName)&& _0x1669A.kind== _0x16684){app.activeDocument.activeLayer= _0x1669A;_0x1615C= true;break}else {if(_0x1669A.typename== '\x4C\x61\x79\x65\x72\x53\x65\x74'){if(_0x166C6){_0x1615C= findLogiLayer(_0x1669A.layers,_0x16684,_0x166C6);if(_0x1615C){break}}}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function findLogiLayer2(_0x16684){var _0x1615C=false;try{var _0x1669A=app.activeDocument.activeLayer;if(_0x1669A.kind== _0x16684){_0x1615C= true}else {updateAbList();var _0x166DC=getTopLayerSet(_0x1669A);if(_0x166DC){if(isArtboard(_0x166DC.id)){_0x1615C= findLogiLayer(_0x166DC.layers,_0x16684,true)}else {_0x1615C= findLogiLayer(_0x166DC.layers,_0x16684,true);if(!_0x1615C){_0x1615C= findLogiLayer(app.activeDocument.layers,_0x16684,false)}}}else {_0x1615C= findLogiLayer(app.activeDocument.layers,_0x16684,true)}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function updateAbList(){_abList= listArtboard()}function listArtboard(){var _0x1615C=[];try{var _0x173EC= new ActionReference();_0x173EC.putEnumerated(charIDToTypeID("\x44\x63\x6D\x6E"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x173D6=executeActionGet(_0x173EC);var _0x17444=_0x173D6.getInteger(stringIDToTypeID("\x6E\x75\x6D\x62\x65\x72\x4F\x66\x4C\x61\x79\x65\x72\x73"));for(var _0x15E44=1;_0x15E44<= _0x17444;_0x15E44++){var _0x173EC= new ActionReference();_0x173EC.putIndex(charIDToTypeID("\x4C\x79\x72\x20"),_0x15E44);var _0x17402=executeActionGet(_0x173EC);var _0x171DC=_0x17402.getInteger(stringIDToTypeID('\x6C\x61\x79\x65\x72\x49\x44'));var _0x1742E=_0x17402.getString(stringIDToTypeID('\x6E\x61\x6D\x65'));var _0x17418=_0x17402.getBoolean(stringIDToTypeID("\x61\x72\x74\x62\x6F\x61\x72\x64\x45\x6E\x61\x62\x6C\x65\x64"));if(_0x17418){_0x1615C.push([_0x171DC,_0x1742E])}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x2E\x6C\x65\x6E\x67\x74\x68\x20\x3D\x20"+ _0x1615C.length);return _0x1615C}function isInArtBoard(){var _0x1615C=false;try{var _0x1669A=app.activeDocument.activeLayer;var _0x166DC=getTopLayerSet(_0x1669A);if(_0x166DC){_0x1615C= isArtboard(_0x166DC.id)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function getTopLayerSet(_0x16D22){var _0x1615C=null;try{var _0x16D38=_0x16D22.parent;if(_0x16D38== app.activeDocument&& _0x16D22.typename== '\x4C\x61\x79\x65\x72\x53\x65\x74'){_0x1615C= _0x16D22};if(_0x16D38.typename== '\x4C\x61\x79\x65\x72\x53\x65\x74'){_0x1615C= getTopLayerSet(_0x16D38)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isArtboard(_0x171DC){var _0x1615C=false;try{for(var _0x15E44=0;_0x15E44< _abList.length;_0x15E44++){if(_abList[_0x15E44][0]== _0x171DC){_0x1615C= true;break}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getSaturationParameters(){var _0x16A20='\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E';var _0x16A36=isAreaSelected();if(!_0x16A36){try{var _0x15E2E=layerInfo(_0x16A20);if(_0x15E2E.startsWith("\x4F\x4B")){return _0x15E2E}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};if(findLogiLayer2(LayerKind.HUESATURATION)){return layerInfo(_0x16A20)}};if(!_0x16A36){moveToRootOfArtboard()};addSaturationLayer();return layerInfo(_0x16A20)}function addSaturationLayer(){try{var _0x15F8E=charIDToTypeID("\x4D\x6B\x20\x20");var _0x15E86= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x15EDE= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");_0x15EDE.putClass(_0x15F4C);_0x15E86.putReference(_0x15FA4,_0x15EDE);var _0x16028=charIDToTypeID("\x55\x73\x6E\x67");var _0x15E9C= new ActionDescriptor();var _0x16012=charIDToTypeID("\x54\x79\x70\x65");var _0x15EB2= new ActionDescriptor();var _0x15FD0=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64");var _0x15FFC=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x54\x79\x70\x65");var _0x15FE6=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x44\x65\x66\x61\x75\x6C\x74");_0x15EB2.putEnumerated(_0x15FD0,_0x15FFC,_0x15FE6);var _0x16096=charIDToTypeID("\x43\x6C\x72\x7A");_0x15EB2.putBoolean(_0x16096,false);var _0x160AC=charIDToTypeID("\x48\x53\x74\x72");_0x15E9C.putObject(_0x16012,_0x160AC,_0x15EB2);var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");_0x15E86.putObject(_0x16028,_0x15F4C,_0x15E9C);executeAction(_0x15F8E,_0x15E86,DialogModes.NO);app.activeDocument.activeLayer.name= logiLayerName+ psStrHueSat}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setSaturationParameters(_0x17310,_0x1733C,_0x17326){try{moveHistoryState(psStrHueSat);var _0x1742E=createLogiHistoryNameWithValue(psStrHueSat,_0x17310+ "\x2C\x20"+ _0x1733C+ "\x2C\x20"+ _0x17326);var _0x17AE2="\x73\x65\x74\x53\x61\x74\x75\x72\x61\x74\x69\x6F\x6E\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x28"+ _0x17310+ "\x2C\x20"+ _0x1733C+ "\x2C\x20"+ _0x17326+ "\x29";app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setSaturationParametersSub(_0x17310,_0x1733C,_0x17326){try{var _0x17A74=charIDToTypeID('\x73\x65\x74\x64');var _0x17956= new ActionDescriptor();var _0x15FA4=charIDToTypeID('\x6E\x75\x6C\x6C');var _0x17EAA= new ActionReference();var _0x15F4C=charIDToTypeID('\x41\x64\x6A\x4C');var _0x1749C=charIDToTypeID('\x4F\x72\x64\x6E');var _0x17AB6=charIDToTypeID('\x54\x72\x67\x74');_0x17EAA.putEnumerated(_0x15F4C,_0x1749C,_0x17AB6);_0x17956.putReference(_0x15FA4,_0x17EAA);var _0x17AA0=charIDToTypeID('\x54\x20\x20\x20');var _0x17DFA= new ActionDescriptor();var _0x15FD0=stringIDToTypeID('\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64');var _0x15FFC=stringIDToTypeID('\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x54\x79\x70\x65');var _0x17C58=stringIDToTypeID('\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x43\x75\x73\x74\x6F\x6D');_0x17DFA.putEnumerated(_0x15FD0,_0x15FFC,_0x17C58);var _0x17E10=charIDToTypeID('\x41\x64\x6A\x73');var _0x17E94= new ActionList();var _0x17AF8= new ActionDescriptor();var _0x17E26=charIDToTypeID('\x48\x20\x20\x20');_0x17AF8.putInteger(_0x17E26,_0x17310);var _0x17E7E=charIDToTypeID('\x53\x74\x72\x74');_0x17AF8.putInteger(_0x17E7E,_0x1733C);var _0x17E68=charIDToTypeID('\x4C\x67\x68\x74');_0x17AF8.putInteger(_0x17E68,_0x17326);var _0x17E52=charIDToTypeID('\x48\x73\x74\x32');_0x17E94.putObject(_0x17E52,_0x17AF8);_0x17DFA.putList(_0x17E10,_0x17E94);var _0x17E3C=charIDToTypeID('\x48\x53\x74\x72');_0x17956.putObject(_0x17AA0,_0x17E3C,_0x17DFA);executeAction(_0x17A74,_0x17956,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function updateBrightness(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;$.hiresTimer;try{if(isNotAdjLayerBrightnessContrastSupported()){_0x1615C= NotSupportedValue}else {var _0x168EC=getBrightnessParameters();if(_0x168EC!= null&& _0x168EC!= '\x45\x76\x61\x6C\x53\x63\x72\x69\x70\x74\x20\x65\x72\x72\x6F\x72\x2E'&& _0x168EC!= NotSupportedValue){var _0x167CE=_0x168EC.split('\x3A');var _0x172B8=Number(_0x167CE[1]);var _0x172CE=Number(_0x167CE[2]);if(_0x18246== '\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73'){_0x172B8+= _0x1619E;if(_0x172B8<  -150){_0x172B8=  -150};if(_0x172B8> 150){_0x172B8= 150};_0x1615C= _0x172B8}else {_0x172CE+= _0x1619E;if(_0x172CE<  -50){_0x172CE=  -50};if(_0x172CE> 100){_0x172CE= 100};_0x1615C= _0x172CE};setBrightnessParameters(_0x172B8,_0x172CE)}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog("\x75\x70\x64\x61\x74\x65\x42\x72\x69\x67\x68\x74\x6E\x65\x73\x73\x20\x64\x6F\x6E\x65\x3A\x20\x74\x69\x6D\x65\x20\x3D\x20"+ $.hiresTimer+ "\x20\xB5\x73");return _0x1615C}function updateLayerBrightness(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;$.hiresTimer;try{if(isNotAdjLayerBrightnessContrastSupported()){_0x1615C= NotSupportedValue}else {var _0x168EC=getLayerBrightnessParameters();if(_0x168EC!= null&& _0x168EC!= '\x45\x76\x61\x6C\x53\x63\x72\x69\x70\x74\x20\x65\x72\x72\x6F\x72\x2E'&& _0x168EC!= NotSupportedValue){var _0x167CE=_0x168EC.split('\x3A');var _0x172B8=Number(_0x167CE[1]);var _0x172CE=Number(_0x167CE[2]);if(_0x18246== '\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73'){_0x172B8+= _0x1619E;if(_0x172B8<  -150){_0x172B8=  -150};if(_0x172B8> 150){_0x172B8= 150};_0x1615C= _0x172B8}else {_0x172CE+= _0x1619E;if(_0x172CE<  -50){_0x172CE=  -50};if(_0x172CE> 100){_0x172CE= 100};_0x1615C= _0x172CE};setBrightnessParameters(_0x172B8,_0x172CE)}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog("\x75\x70\x64\x61\x74\x65\x42\x72\x69\x67\x68\x74\x6E\x65\x73\x73\x20\x64\x6F\x6E\x65\x3A\x20\x74\x69\x6D\x65\x20\x3D\x20"+ $.hiresTimer+ "\x20\xB5\x73");return _0x1615C}function updateVibrance(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;try{if(isNotAdjLayerVibranceSupported()){_0x1615C= NotSupportedValue}else {if(_0x18246== '\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E'|| _0x18246== '\x76\x69\x62\x72\x61\x6E\x63\x65'){var _0x168EC=getVibranceParameters();if(_0x168EC!= null&& _0x168EC!= '\x45\x76\x61\x6C\x53\x63\x72\x69\x70\x74\x20\x65\x72\x72\x6F\x72\x2E'&& _0x168EC!= NotSupportedValue){var _0x167CE=_0x168EC.split('\x3A');var _0x17352=Number(_0x167CE[1]);var _0x1733C=Number(_0x167CE[2]);if(_0x18246== '\x76\x69\x62\x72\x61\x6E\x63\x65'){_0x1615C= _0x17352= fitBetweenMinMax((_0x17352+ _0x1619E),-100,100)}else {_0x1615C= _0x1733C= fitBetweenMinMax((_0x1733C+ _0x1619E),-100,100)};setVibranceParameters(_0x17352,_0x1733C)}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateLayerVibrance(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;try{if(isNotAdjLayerVibranceSupported()){_0x1615C= NotSupportedValue}else {if(_0x18246== '\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E'|| _0x18246== '\x76\x69\x62\x72\x61\x6E\x63\x65'){var _0x168EC=getLayerVibranceParameters();if(_0x168EC!= null&& _0x168EC!= '\x45\x76\x61\x6C\x53\x63\x72\x69\x70\x74\x20\x65\x72\x72\x6F\x72\x2E'&& _0x168EC!= NotSupportedValue){var _0x167CE=_0x168EC.split('\x3A');var _0x17352=Number(_0x167CE[1]);var _0x1733C=Number(_0x167CE[2]);if(_0x18246== '\x76\x69\x62\x72\x61\x6E\x63\x65'){_0x1615C= _0x17352= fitBetweenMinMax((_0x17352+ _0x1619E),-100,100)}else {_0x1615C= _0x1733C= fitBetweenMinMax((_0x1733C+ _0x1619E),-100,100)};setVibranceParameters(_0x17352,_0x1733C)}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getVibranceParameters(){var _0x16A20='\x76\x69\x62\x72\x61\x6E\x63\x65';var _0x16A36=isAreaSelected();if(!_0x16A36){try{var _0x15E2E=layerInfo(_0x16A20);if(_0x15E2E.startsWith("\x4F\x4B")){return _0x15E2E}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};if(findLogiLayer2(LayerKind.VIBRANCE)){return layerInfo(_0x16A20)}};if(!_0x16A36){moveToRootOfArtboard()};addVibranceLayer();return layerInfo(_0x16A20)}function getExposureParameters(){var _0x16A20='\x65\x78\x70\x6F\x73\x75\x72\x65';var _0x16A36=isAreaSelected();if(!_0x16A36){try{var _0x15E2E=layerInfo(_0x16A20);if(_0x15E2E.startsWith("\x4F\x4B")){return _0x15E2E}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};if(findLogiLayer2(LayerKind.EXPOSURE)){return layerInfo(_0x16A20)}};if(!_0x16A36){moveToRootOfArtboard()};addExposureLayer();return layerInfo(_0x16A20)}function getLayerVibranceParameters(){var _0x16A20='\x76\x69\x62\x72\x61\x6E\x63\x65';return layerInfo(_0x16A20)}function getLayerExposureParameters(){var _0x16A20='\x65\x78\x70\x6F\x73\x75\x72\x65';return layerInfo(_0x16A20)}function addVibranceLayer(){try{var _0x15F8E=charIDToTypeID("\x4D\x6B\x20\x20");var _0x16104= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x16146= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");_0x16146.putClass(_0x15F4C);_0x16104.putReference(_0x15FA4,_0x16146);var _0x16028=charIDToTypeID("\x55\x73\x6E\x67");var _0x1611A= new ActionDescriptor();var _0x16012=charIDToTypeID("\x54\x79\x70\x65");var _0x16130=stringIDToTypeID("\x76\x69\x62\x72\x61\x6E\x63\x65");_0x1611A.putClass(_0x16012,_0x16130);var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");_0x16104.putObject(_0x16028,_0x15F4C,_0x1611A);executeAction(_0x15F8E,_0x16104,DialogModes.NO);app.activeDocument.activeLayer.name= logiLayerName+ psStrVibrance}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function addExposureLayer(){try{var _0x15F8E=charIDToTypeID("\x4D\x6B\x20\x20");var _0x15F0A= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x1603E= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");_0x1603E.putClass(_0x15F4C);_0x15F0A.putReference(_0x15FA4,_0x1603E);var _0x16028=charIDToTypeID("\x55\x73\x6E\x67");var _0x15F20= new ActionDescriptor();var _0x16012=charIDToTypeID("\x54\x79\x70\x65");var _0x15F36= new ActionDescriptor();var _0x15FD0=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64");var _0x15FFC=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x54\x79\x70\x65");var _0x15FE6=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x44\x65\x66\x61\x75\x6C\x74");_0x15F36.putEnumerated(_0x15FD0,_0x15FFC,_0x15FE6);var _0x15F62=charIDToTypeID("\x45\x78\x70\x73");_0x15F36.putDouble(_0x15F62,0.000000);var _0x15FBA=charIDToTypeID("\x4F\x66\x73\x74");_0x15F36.putDouble(_0x15FBA,0.000000);var _0x15F78=stringIDToTypeID("\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E");_0x15F36.putDouble(_0x15F78,1.000000);var _0x15F62=charIDToTypeID("\x45\x78\x70\x73");_0x15F20.putObject(_0x16012,_0x15F62,_0x15F36);var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");_0x15F0A.putObject(_0x16028,_0x15F4C,_0x15F20);executeAction(_0x15F8E,_0x15F0A,DialogModes.NO);app.activeDocument.activeLayer.name= logiLayerName+ psStrExposure}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setVibranceParameters(_0x17352,_0x1733C){try{moveHistoryState(psStrVibrance);var _0x1742E=createLogiHistoryNameWithValue(psStrVibrance,_0x17352+ "\x2C\x20"+ _0x1733C);var _0x17AE2="\x73\x65\x74\x56\x69\x62\x72\x61\x6E\x63\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x28"+ _0x17352+ "\x2C\x20"+ _0x1733C+ "\x29";app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setVibranceParametersSub(_0x17352,_0x1733C){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x16AE6= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17B66= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17B66.putEnumerated(_0x15F4C,_0x1749C,_0x17AB6);_0x16AE6.putReference(_0x15FA4,_0x17B66);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17B7C= new ActionDescriptor();_0x17B7C.putInteger(stringIDToTypeID('\x76\x69\x62\x72\x61\x6E\x63\x65'),_0x17352);_0x17B7C.putInteger(stringIDToTypeID('\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E'),_0x1733C);_0x16AE6.putObject(_0x17AA0,stringIDToTypeID("\x76\x69\x62\x72\x61\x6E\x63\x65"),_0x17B7C);executeAction(_0x17A74,_0x16AE6,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setExposureParameters(_0x16C30,_0x172FA,_0x172E4,_0x16A20){try{moveHistoryState(psStrExposure);var _0x1742E=createLogiHistoryNameWithValue(psStrExposure,_0x16C30+ "\x2C\x20"+ _0x172FA+ "\x2C\x20"+ _0x172E4);var _0x17AE2=null;switch(_0x16A20){case "\x65\x78\x70\x6F\x73\x75\x72\x65":_0x17AE2= "\x73\x65\x74\x45\x78\x70\x6F\x73\x75\x72\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x45\x78\x70\x6F\x73\x75\x72\x65\x28"+ _0x16C30+ "\x29";break;case "\x6F\x66\x66\x73\x65\x74":_0x17AE2= "\x73\x65\x74\x45\x78\x70\x6F\x73\x75\x72\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x4F\x66\x66\x73\x65\x74\x28"+ _0x172FA+ "\x29";break;case "\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E":_0x17AE2= "\x73\x65\x74\x45\x78\x70\x6F\x73\x75\x72\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x47\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E\x28"+ _0x172E4+ "\x29";break;default:break};app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setExposureParametersSubExposure(_0x1619E){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17C2C= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17C6E= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17C6E.putEnumerated(_0x15F4C,_0x1749C,_0x17AB6);_0x17C2C.putReference(_0x15FA4,_0x17C6E);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17C42= new ActionDescriptor();var _0x15FD0=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64");var _0x15FFC=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x54\x79\x70\x65");var _0x17C58=stringIDToTypeID("\x70\x72\x65\x73\x65\x74\x4B\x69\x6E\x64\x43\x75\x73\x74\x6F\x6D");_0x17C42.putEnumerated(_0x15FD0,_0x15FFC,_0x17C58);var _0x15F62=charIDToTypeID("\x45\x78\x70\x73");_0x17C42.putDouble(_0x15F62,_0x1619E);var _0x15F62=charIDToTypeID("\x45\x78\x70\x73");_0x17C2C.putObject(_0x17AA0,_0x15F62,_0x17C42);executeAction(_0x17A74,_0x17C2C,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setExposureParametersSubOffset(_0x1619E){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17CC6= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17CF2= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17CF2.putEnumerated(_0x15F4C,_0x1749C,_0x17AB6);_0x17CC6.putReference(_0x15FA4,_0x17CF2);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17CDC= new ActionDescriptor();var _0x15FBA=charIDToTypeID("\x4F\x66\x73\x74");_0x17CDC.putDouble(_0x15FBA,_0x1619E);var _0x15F62=charIDToTypeID("\x45\x78\x70\x73");_0x17CC6.putObject(_0x17AA0,_0x15F62,_0x17CDC);executeAction(_0x17A74,_0x17CC6,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setExposureParametersSubGammaCorrection(_0x1619E){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17C84= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17CB0= new ActionReference();var _0x15F4C=charIDToTypeID("\x41\x64\x6A\x4C");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17CB0.putEnumerated(_0x15F4C,_0x1749C,_0x17AB6);_0x17C84.putReference(_0x15FA4,_0x17CB0);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17C9A= new ActionDescriptor();var _0x15F78=stringIDToTypeID("\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E");_0x17C9A.putDouble(_0x15F78,_0x1619E);var _0x15F62=charIDToTypeID("\x45\x78\x70\x73");_0x17C84.putObject(_0x17AA0,_0x15F62,_0x17C9A);executeAction(_0x17A74,_0x17C84,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function isNotAdjLayerBrightnessContrastSupported(){var _0x1615C=false;try{_0x1615C= (app.activeDocument.mode== DocumentMode.BITMAP|| app.activeDocument.mode== DocumentMode.GRAYSCALE|| app.activeDocument.mode== DocumentMode.INDEXEDCOLOR|| app.activeDocument.mode== DocumentMode.MULTICHANNEL|| app.activeDocument.bitsPerChannel== BitsPerChannelType.ONE|| app.activeDocument.bitsPerChannel== BitsPerChannelType.THIRTYTWO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isNotAdjLayerVibranceSupported(){var _0x1615C=false;try{_0x1615C= (app.activeDocument.mode== DocumentMode.BITMAP|| app.activeDocument.mode== DocumentMode.GRAYSCALE|| app.activeDocument.mode== DocumentMode.DUOTONE|| app.activeDocument.mode== DocumentMode.INDEXEDCOLOR|| app.activeDocument.mode== DocumentMode.CMYK|| app.activeDocument.mode== DocumentMode.LAB|| app.activeDocument.mode== DocumentMode.MULTICHANNEL|| app.activeDocument.bitsPerChannel== BitsPerChannelType.ONE|| app.activeDocument.bitsPerChannel== BitsPerChannelType.THIRTYTWO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isNotAdjLayerExposureSupported(){var _0x1615C=false;try{_0x1615C= (app.activeDocument.mode== DocumentMode.BITMAP|| app.activeDocument.mode== DocumentMode.INDEXEDCOLOR|| app.activeDocument.mode== DocumentMode.CMYK|| app.activeDocument.mode== DocumentMode.LAB|| app.activeDocument.mode== DocumentMode.MULTICHANNEL|| app.activeDocument.bitsPerChannel== BitsPerChannelType.ONE)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateLayerMasterOpacity(_0x164A0){var _0x1615C=NotSupportedValue;try{if(!isLayerMasterOpacitySupported()){_0x1615C= NotSupportedValue}else {var _0x16600=app.activeDocument.activeLayer.opacity;var _0x165EA=Math.round(_0x16600+ _0x164A0);_0x1615C= _0x165EA= fitBetweenMinMax(_0x165EA,0,100);setLayerMasterOpacity(_0x1615C)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateLayerFillOpacity(_0x164A0){var _0x1615C=NotSupportedValue;try{var _0x16A62=getCurrentLayerHmObj();if(isNotLayerFillOpacitySupported(_0x16A62)){_0x1615C= NotSupportedValue}else {var _0x16600=Math.round(_0x16A62.fillOpacity/ 2.55);var _0x165EA=Math.round(_0x16600+ _0x164A0);_0x1615C= _0x165EA= fitBetweenMinMax(_0x165EA,0,100);setLayerFillOpacity(_0x1615C)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isLayerMasterOpacitySupported(){var _0x1615C=false;try{var _0x1721E=app.activeDocument.activeLayer.typename;_0x1615C= ((_0x1721E== "\x4C\x61\x79\x65\x72\x53\x65\x74")|| (_0x1721E== "\x41\x72\x74\x4C\x61\x79\x65\x72"&& (!app.activeDocument.activeLayer.isBackgroundLayer)))}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isNotLayerFillOpacitySupported(_0x1724A){var _0x1615C=true;try{_0x1615C= (_0x1724A.artboardEnabled|| _0x1724A.background)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function setLayerMasterOpacity(_0x1619E){try{moveHistoryState(psStrMasterOpacityChange);var _0x1742E=createLogiHistoryNameWithValue(psStrMasterOpacityChange,_0x1619E);var _0x17AE2="\x73\x65\x74\x4C\x61\x79\x65\x72\x4D\x61\x73\x74\x65\x72\x4F\x70\x61\x63\x69\x74\x79\x53\x75\x62\x28"+ _0x1619E+ "\x29";app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setLayerFillOpacity(_0x1619E){try{moveHistoryState(psStrFillOpacityChange);var _0x1742E=createLogiHistoryNameWithValue(psStrFillOpacityChange,_0x1619E);var _0x17AE2="\x73\x65\x74\x4C\x61\x79\x65\x72\x46\x69\x6C\x6C\x4F\x70\x61\x63\x69\x74\x79\x53\x75\x62\x28"+ _0x1619E+ "\x29";app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setLayerMasterOpacitySub(_0x1619E){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17D60= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17DA2= new ActionReference();var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17DA2.putEnumerated(_0x178BC,_0x1749C,_0x17AB6);_0x17D60.putReference(_0x15FA4,_0x17DA2);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17D76= new ActionDescriptor();var _0x17D8C=charIDToTypeID("\x4F\x70\x63\x74");var _0x17A32=charIDToTypeID("\x23\x50\x72\x63");_0x17D76.putUnitDouble(_0x17D8C,_0x17A32,_0x1619E);var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");_0x17D60.putObject(_0x17AA0,_0x178BC,_0x17D76);executeAction(_0x17A74,_0x17D60,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setLayerFillOpacitySub(_0x1619E){try{var _0x17BEA=app.activeDocument.activeLayer.allLocked;if(_0x17BEA){app.activeDocument.activeLayer.allLocked= false};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17D08= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17D4A= new ActionReference();var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17D4A.putEnumerated(_0x178BC,_0x1749C,_0x17AB6);_0x17D08.putReference(_0x15FA4,_0x17D4A);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17D1E= new ActionDescriptor();var _0x17D34=stringIDToTypeID("\x66\x69\x6C\x6C\x4F\x70\x61\x63\x69\x74\x79");var _0x17A32=charIDToTypeID("\x23\x50\x72\x63");_0x17D1E.putUnitDouble(_0x17D34,_0x17A32,_0x1619E);var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");_0x17D08.putObject(_0x17AA0,_0x178BC,_0x17D1E);executeAction(_0x17A74,_0x17D08,DialogModes.NO);if(_0x17BEA){app.activeDocument.activeLayer.allLocked= true}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function updateExposure(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;try{if(isNotAdjLayerExposureSupported()){_0x1615C= NotSupportedValue}else {if(_0x18246== '\x65\x78\x70\x6F\x73\x75\x72\x65'|| _0x18246== '\x6F\x66\x66\x73\x65\x74'|| _0x18246== '\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E'){var _0x168EC=getExposureParameters();_0x1615C= updateLayerExposureSub(_0x1619E,_0x18246,_0x168EC)}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateLayerExposure(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;try{if(isNotAdjLayerExposureSupported()){_0x1615C= NotSupportedValue}else {if(_0x18246== '\x65\x78\x70\x6F\x73\x75\x72\x65'|| _0x18246== '\x6F\x66\x66\x73\x65\x74'|| _0x18246== '\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E'){var _0x168EC=getLayerExposureParameters();_0x1615C= updateLayerExposureSub(_0x1619E,_0x18246,_0x168EC)}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateLayerExposureSub(_0x1619E,_0x18246,_0x168EC){try{var _0x1615C=0;if(_0x168EC!= null&& _0x168EC!= '\x45\x76\x61\x6C\x53\x63\x72\x69\x70\x74\x20\x65\x72\x72\x6F\x72\x2E'&& _0x168EC!= NotSupportedValue){var _0x167CE=_0x168EC.split('\x3A');var _0x16C30=Number(_0x167CE[1]);var _0x172FA=Number(_0x167CE[2]);var _0x172E4=Number(_0x167CE[3]);switch(_0x18246){case '\x65\x78\x70\x6F\x73\x75\x72\x65':_0x1615C= _0x16C30= fitBetweenMinMax((_0x16C30+ (0.01* _0x1619E)),-20,20);break;case '\x6F\x66\x66\x73\x65\x74':_0x1615C= _0x172FA= fitBetweenMinMax((_0x172FA+ (0.0001* _0x1619E)),-0.5,0.5);break;case '\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E':_0x1615C= _0x172E4= fitBetweenMinMax((_0x172E4+ (-0.01* _0x1619E)),0.01,9.99);break};setExposureParameters(_0x16C30,_0x172FA,_0x172E4,_0x18246)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateForegroundBackgroundColor(_0x1619E,_0x18246){var _0x1615C=NotSupportedValue;try{debugLog("\x75\x70\x64\x61\x74\x65\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E+ "\x2C\x20\x6F\x70\x74\x69\x6F\x6E\x20\x3D\x20"+ _0x18246);switch(_0x18246){case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x67\x72\x61\x79\x73\x63\x61\x6C\x65":_0x1615C= updateForegroundBackgroundColorGrayscale(_0x1619E,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x67\x72\x61\x79\x73\x63\x61\x6C\x65\x32":_0x1615C= updateForegroundBackgroundColorGrayscale(_0x1619E,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x72\x67\x62\x5F\x72":_0x1615C= updateForegroundBackgroundColorRGB(_0x1619E,0,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x72\x67\x62\x5F\x67":_0x1615C= updateForegroundBackgroundColorRGB(_0x1619E,1,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x72\x67\x62\x5F\x62":_0x1615C= updateForegroundBackgroundColorRGB(_0x1619E,2,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x72\x67\x62\x5F\x72\x32":_0x1615C= updateForegroundBackgroundColorRGB(_0x1619E,0,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x72\x67\x62\x5F\x67\x32":_0x1615C= updateForegroundBackgroundColorRGB(_0x1619E,1,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x72\x67\x62\x5F\x62\x32":_0x1615C= updateForegroundBackgroundColorRGB(_0x1619E,2,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x68\x73\x62\x5F\x68":_0x1615C= updateForegroundBackgroundColorHSB(_0x1619E,0,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x68\x73\x62\x5F\x73":_0x1615C= updateForegroundBackgroundColorHSB(_0x1619E,1,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x68\x73\x62\x5F\x62":_0x1615C= updateForegroundBackgroundColorHSB(_0x1619E,2,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x68\x73\x62\x5F\x68\x32":_0x1615C= updateForegroundBackgroundColorHSB(_0x1619E,0,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x68\x73\x62\x5F\x73\x32":_0x1615C= updateForegroundBackgroundColorHSB(_0x1619E,1,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x68\x73\x62\x5F\x62\x32":_0x1615C= updateForegroundBackgroundColorHSB(_0x1619E,2,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x63":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,0,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x6D":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,1,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x79":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,2,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x6B":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,3,true);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x63\x32":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,0,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x6D\x32":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,1,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x79\x32":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,2,false);break;case "\x54\x42\x44\x5F\x6D\x6F\x64\x65\x5F\x63\x6D\x79\x6B\x5F\x6B\x32":_0x1615C= updateForegroundBackgroundColorCMYK(_0x1619E,3,false);break;default:debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ _0x18246);return _0x1615C;break}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateForegroundBackgroundColorGrayscale(_0x1619E,_0x1834E){var _0x1615C=NotSupportedValue;try{var _0x163DA=_0x1834E?app.foregroundColor:app.backgroundColor;var _0x16600=_0x163DA.gray.gray;var _0x165EA=Math.round(_0x16600+ _0x1619E);_0x1615C= fitBetweenMinMax(_0x165EA,0,100);var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x1837A= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x183E8= new ActionReference();var _0x182B4=charIDToTypeID("\x43\x6C\x72\x20");var _0x183A6=_0x1834E?charIDToTypeID("\x46\x72\x67\x43"):charIDToTypeID("\x42\x63\x6B\x43");_0x183E8.putProperty(_0x182B4,_0x183A6);_0x1837A.putReference(_0x15FA4,_0x183E8);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x18390= new ActionDescriptor();var _0x183D2=charIDToTypeID("\x47\x72\x79\x20");_0x18390.putDouble(_0x183D2,_0x1615C);var _0x183BC=charIDToTypeID("\x47\x72\x73\x63");_0x1837A.putObject(_0x17AA0,_0x183BC,_0x18390);var _0x18322=charIDToTypeID("\x53\x72\x63\x65");_0x1837A.putString(_0x18322,"\x70\x68\x6F\x74\x6F\x73\x68\x6F\x70\x50\x69\x63\x6B\x65\x72");executeAction(_0x17A74,_0x1837A,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateForegroundBackgroundColorRGB(_0x1619E,_0x18506,_0x1834E){var _0x1615C=NotSupportedValue;try{var _0x163DA=_0x1834E?app.foregroundColor:app.backgroundColor;var _0x16600=0;switch(_0x18506){case 0:_0x16600= _0x163DA.rgb.red;break;case 1:_0x16600= _0x163DA.rgb.green;break;case 2:_0x16600= _0x163DA.rgb.blue;break;default:break};var _0x165EA=Math.round(_0x16600+ _0x1619E);_0x1615C= fitBetweenMinMax(_0x165EA,0,255);var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x1846C= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x184F0= new ActionReference();var _0x182B4=charIDToTypeID("\x43\x6C\x72\x20");var _0x182F6=_0x1834E?charIDToTypeID("\x46\x72\x67\x43"):charIDToTypeID("\x42\x63\x6B\x43");_0x184F0.putProperty(_0x182B4,_0x182F6);_0x1846C.putReference(_0x15FA4,_0x184F0);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x18482= new ActionDescriptor();var _0x184C4=charIDToTypeID("\x52\x64\x20\x20");var _0x184AE=charIDToTypeID("\x47\x72\x6E\x20");var _0x18498=charIDToTypeID("\x42\x6C\x20\x20");switch(_0x18506){case 0:_0x18482.putDouble(_0x184C4,_0x1615C);_0x18482.putDouble(_0x184AE,_0x163DA.rgb.green);_0x18482.putDouble(_0x18498,_0x163DA.rgb.blue);break;case 1:_0x18482.putDouble(_0x184C4,_0x163DA.rgb.red);_0x18482.putDouble(_0x184AE,_0x1615C);_0x18482.putDouble(_0x18498,_0x163DA.rgb.blue);break;case 2:_0x18482.putDouble(_0x184C4,_0x163DA.rgb.red);_0x18482.putDouble(_0x184AE,_0x163DA.rgb.green);_0x18482.putDouble(_0x18498,_0x1615C);break;default:break};var _0x184DA=charIDToTypeID("\x52\x47\x42\x43");_0x1846C.putObject(_0x17AA0,_0x184DA,_0x18482);var _0x18322=charIDToTypeID("\x53\x72\x63\x65");_0x1846C.putString(_0x18322,"\x63\x6F\x6C\x6F\x72\x50\x69\x63\x6B\x65\x72\x50\x61\x6E\x65\x6C");executeAction(_0x17A74,_0x1846C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateForegroundBackgroundColorHSB(_0x1619E,_0x1842A,_0x1834E){var _0x1615C=NotSupportedValue;try{var _0x163DA=_0x1834E?app.foregroundColor:app.backgroundColor;switch(_0x1842A){case 0:var _0x16600=_0x163DA.hsb.hue;var _0x165EA=Math.round(_0x16600+ _0x1619E);_0x1615C= fitLoopMinMax(_0x165EA,0,360);break;case 1:var _0x16600=_0x163DA.hsb.saturation;var _0x165EA=Math.round(_0x16600+ _0x1619E);_0x1615C= fitBetweenMinMax(_0x165EA,0,100);break;case 2:var _0x16600=_0x163DA.hsb.brightness;var _0x165EA=Math.round(_0x16600+ _0x1619E);_0x1615C= fitBetweenMinMax(_0x165EA,0,100);break;default:break};var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x183FE= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x18456= new ActionReference();var _0x182B4=charIDToTypeID("\x43\x6C\x72\x20");var _0x182F6=_0x1834E?charIDToTypeID("\x46\x72\x67\x43"):charIDToTypeID("\x42\x63\x6B\x43");_0x18456.putProperty(_0x182B4,_0x182F6);_0x183FE.putReference(_0x15FA4,_0x18456);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x18414= new ActionDescriptor();var _0x17E26=charIDToTypeID("\x48\x20\x20\x20");var _0x1796C=charIDToTypeID("\x23\x41\x6E\x67");var _0x17E7E=charIDToTypeID("\x53\x74\x72\x74");var _0x17BA8=charIDToTypeID("\x42\x72\x67\x68");switch(_0x1842A){case 0:_0x18414.putUnitDouble(_0x17E26,_0x1796C,_0x1615C);_0x18414.putDouble(_0x17E7E,_0x163DA.hsb.saturation);_0x18414.putDouble(_0x17BA8,_0x163DA.hsb.brightness);break;case 1:_0x18414.putUnitDouble(_0x17E26,_0x1796C,_0x163DA.hsb.hue);_0x18414.putDouble(_0x17E7E,_0x1615C);_0x18414.putDouble(_0x17BA8,_0x163DA.hsb.brightness);break;case 2:_0x18414.putUnitDouble(_0x17E26,_0x1796C,_0x163DA.hsb.hue);_0x18414.putDouble(_0x17E7E,_0x163DA.hsb.saturation);_0x18414.putDouble(_0x17BA8,_0x1615C);break;default:break};var _0x18440=charIDToTypeID("\x48\x53\x42\x43");_0x183FE.putObject(_0x17AA0,_0x18440,_0x18414);var _0x18322=charIDToTypeID("\x53\x72\x63\x65");_0x183FE.putString(_0x18322,"\x63\x6F\x6C\x6F\x72\x50\x69\x63\x6B\x65\x72\x50\x61\x6E\x65\x6C");executeAction(_0x17A74,_0x183FE,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function updateForegroundBackgroundColorCMYK(_0x1619E,_0x1825C,_0x1834E){var _0x1615C=NotSupportedValue;try{var _0x163DA=_0x1834E?app.foregroundColor:app.backgroundColor;var _0x16600=0;switch(_0x1825C){case 0:_0x16600= _0x163DA.cmyk.cyan;break;case 1:_0x16600= _0x163DA.cmyk.magenta;break;case 2:_0x16600= _0x163DA.cmyk.yellow;break;case 3:_0x16600= _0x163DA.cmyk.black;break;default:break};var _0x165EA=Math.round(_0x16600+ _0x1619E);_0x1615C= fitBetweenMinMax(_0x165EA,0,100);var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x18272= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x18364= new ActionReference();var _0x182B4=charIDToTypeID("\x43\x6C\x72\x20");var _0x182F6=_0x1834E?charIDToTypeID("\x46\x72\x67\x43"):charIDToTypeID("\x42\x63\x6B\x43");_0x18364.putProperty(_0x182B4,_0x182F6);_0x18272.putReference(_0x15FA4,_0x18364);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x18288= new ActionDescriptor();var _0x182E0=charIDToTypeID("\x43\x79\x6E\x20");var _0x1830C=charIDToTypeID("\x4D\x67\x6E\x74");var _0x18338=charIDToTypeID("\x59\x6C\x77\x20");var _0x1829E=charIDToTypeID("\x42\x6C\x63\x6B");switch(_0x1825C){case 0:_0x18288.putDouble(_0x182E0,_0x1615C);_0x18288.putDouble(_0x1830C,_0x163DA.cmyk.magenta);_0x18288.putDouble(_0x18338,_0x163DA.cmyk.yellow);_0x18288.putDouble(_0x1829E,_0x163DA.cmyk.black);break;case 1:_0x18288.putDouble(_0x182E0,_0x163DA.cmyk.cyan);_0x18288.putDouble(_0x1830C,_0x1615C);_0x18288.putDouble(_0x18338,_0x163DA.cmyk.yellow);_0x18288.putDouble(_0x1829E,_0x163DA.cmyk.black);break;case 2:_0x18288.putDouble(_0x182E0,_0x163DA.cmyk.cyan);_0x18288.putDouble(_0x1830C,_0x163DA.cmyk.magenta);_0x18288.putDouble(_0x18338,_0x1615C);_0x18288.putDouble(_0x1829E,_0x163DA.cmyk.black);break;case 3:_0x18288.putDouble(_0x182E0,_0x163DA.cmyk.cyan);_0x18288.putDouble(_0x1830C,_0x163DA.cmyk.magenta);_0x18288.putDouble(_0x18338,_0x163DA.cmyk.yellow);_0x18288.putDouble(_0x1829E,_0x1615C);break;default:break};var _0x182CA=charIDToTypeID("\x43\x4D\x59\x43");_0x18272.putObject(_0x17AA0,_0x182CA,_0x18288);var _0x18322=charIDToTypeID("\x53\x72\x63\x65");_0x18272.putString(_0x18322,"\x63\x6F\x6C\x6F\x72\x50\x69\x63\x6B\x65\x72\x50\x61\x6E\x65\x6C");executeAction(_0x17A74,_0x18272,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function layerInfo(_0x16A20){var _0x1615C="\x75\x6E\x6B\x6E\x6F\x77\x6E";try{debugLog("\x49\x4E\x46\x4F\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20);var _0x1728C=getSelectedLayersIndexArray();if(_0x1728C.length== 0){selectFrontVisibleLayer()};var _0x16A62=getObjWithAdjustmentLayer();if(_0x16A62){var _0x16ABA=app.activeDocument.activeLayer;if(((_0x16A20== "\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73")&& (_0x16ABA.kind!= LayerKind.BRIGHTNESSCONTRAST))|| ((_0x16A20== "\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E")&& (_0x16ABA.kind!= LayerKind.HUESATURATION))|| ((_0x16A20== "\x76\x69\x62\x72\x61\x6E\x63\x65")&& (_0x16ABA.kind!= LayerKind.VIBRANCE))|| ((_0x16A20== "\x65\x78\x70\x6F\x73\x75\x72\x65")&& (_0x16ABA.kind!= LayerKind.EXPOSURE))){_0x1615C= "\x4E\x47"}else {var _0x171DC=_0x16ABA.id;var _0x17276=searchLayerFromObjById(_0x16A62,_0x171DC);if(_0x17276){if(_0x17276.type== '\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x4C\x61\x79\x65\x72'){if(_0x17276.adjustment== null){switch(_0x16A20){case "\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73":_0x1615C= NotSupportedValue;break;case "\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E":_0x1615C= "\x4E\x47";break;case "\x76\x69\x62\x72\x61\x6E\x63\x65":_0x1615C= "\x4F\x4B\x3A"+ 0+ "\x3A"+ 0;break;case "\x65\x78\x70\x6F\x73\x75\x72\x65":_0x1615C= "\x4F\x4B\x3A\x30\x3A\x30\x3A\x31";break;default:_0x1615C= "\x4F\x4B\x3A\x30\x3A\x30\x3A\x30\x3A\x30\x3A\x30\x3A\x30\x3A\x30";break}}else {var _0x17260=_0x17276.adjustment;switch(_0x17260["\x63\x6C\x61\x73\x73"]){case "\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73\x45\x76\x65\x6E\x74":_0x1615C= layerInfoBrightness(_0x16A20,_0x17260);break;case "\x68\x75\x65\x53\x61\x74\x75\x72\x61\x74\x69\x6F\x6E":_0x1615C= layerInfoHue(_0x16A20,_0x17260);break;case "\x76\x69\x62\x72\x61\x6E\x63\x65":_0x1615C= layerInfoVibrance(_0x16A20,_0x17260);break;case "\x65\x78\x70\x6F\x73\x75\x72\x65":_0x1615C= layerInfoExposure(_0x16A20,_0x17260);break;default:_0x1615C= "\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20"+ _0x17260["\x63\x6C\x61\x73\x73"];break}}}else {_0x1615C= "\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20"+ _0x17276.type}}else {_0x1615C= "\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x6C\x61\x79\x65\x72\x3A\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x62\x79\x20\x69\x64"}}}else {_0x1615C= "\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x6C\x61\x79\x65\x72"}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);_0x1615C= "\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20\x65\x78\x63\x65\x70\x74\x69\x6F\x6E"};return _0x1615C}function getSelectedLayersIndexArray(){var _0x1615C= new Array();try{var _0x16CE0=1;var _0x16C88=app.activeDocument.artLayers;var _0x16ABA=app.activeDocument.activeLayer;if(_0x16C88.length> 0){_0x16CE0= _0x16C88[_0x16C88.length- 1].isBackgroundLayer?0:1};var _0x16CB4= new ActionReference();_0x16CB4.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x61\x72\x67\x65\x74\x4C\x61\x79\x65\x72\x73"));_0x16CB4.putEnumerated(charIDToTypeID("\x44\x63\x6D\x6E"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x16C46=executeActionGet(_0x16CB4);if(_0x16C46.hasKey(stringIDToTypeID("\x74\x61\x72\x67\x65\x74\x4C\x61\x79\x65\x72\x73"))){_0x16C46= _0x16C46.getList(stringIDToTypeID("\x74\x61\x72\x67\x65\x74\x4C\x61\x79\x65\x72\x73"));var _0x16CF6=_0x16C46.count;_0x1615C=  new Array();for(var _0x15E44=0;_0x15E44< _0x16CF6;_0x15E44++){_0x1615C.push(_0x16C46.getReference(_0x15E44).getIndex()+ _0x16CE0)};if(app.version.match(/^\d+/)> 15){return _0x1615C}}else {if(app.version.match(/^\d+/)> 15){return _0x1615C};var _0x167B8= new ActionReference();_0x167B8.putProperty(charIDToTypeID("\x50\x72\x70\x72"),charIDToTypeID("\x49\x74\x6D\x49"));_0x167B8.putEnumerated(charIDToTypeID("\x4C\x79\x72\x20"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));if(!_0x16CE0){_0x1615C.push(executeActionGet(_0x167B8).getInteger(charIDToTypeID("\x49\x74\x6D\x49"))- 1)}else {_0x1615C.push(executeActionGet(_0x167B8).getInteger(charIDToTypeID("\x49\x74\x6D\x49")))};var _0x16C9E=_0x16ABA.visible;if(_0x16C9E== true){_0x16ABA.visible= false};var _0x16C5C= new ActionDescriptor();var _0x16C72= new ActionList();var _0x16CCA= new ActionReference();_0x16CCA.putEnumerated(charIDToTypeID("\x4C\x79\x72\x20"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));_0x16C72.putReference(_0x16CCA);_0x16C5C.putList(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x16C72);executeAction(charIDToTypeID("\x53\x68\x77\x20"),_0x16C5C,DialogModes.NO);if(_0x16ABA.visible== false){_0x1615C.shift()};_0x16ABA.visible= _0x16C9E}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function selectFrontVisibleLayer(){try{var _0x174C8=charIDToTypeID("\x73\x6C\x63\x74");var _0x17890= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17914= new ActionReference();var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x178A6=charIDToTypeID("\x46\x72\x6E\x74");_0x17914.putEnumerated(_0x178BC,_0x1749C,_0x178A6);_0x17890.putReference(_0x15FA4,_0x17914);var _0x178E8=charIDToTypeID("\x4D\x6B\x56\x73");_0x17890.putBoolean(_0x178E8,false);var _0x178D2=charIDToTypeID("\x4C\x79\x72\x49");var _0x178FE= new ActionList();_0x178FE.putInteger(3);_0x17890.putList(_0x178D2,_0x178FE);executeAction(_0x174C8,_0x17890,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function getObjWithAdjustmentLayer(){var _0x16A62=null;try{var _0x16ABA=app.activeDocument.activeLayer;if(_0x16ABA.kind== LayerKind.BRIGHTNESSCONTRAST|| _0x16ABA.kind== LayerKind.HUESATURATION|| _0x16ABA.kind== LayerKind.VIBRANCE|| _0x16ABA.kind== LayerKind.EXPOSURE){var _0x167B8= new ActionReference();_0x167B8.putProperty(stringIDToTypeID("\x70\x72\x6F\x70\x65\x72\x74\x79"),stringIDToTypeID("\x6A\x73\x6F\x6E"));_0x167B8.putEnumerated(stringIDToTypeID("\x6C\x61\x79\x65\x72"),stringIDToTypeID("\x6F\x72\x64\x69\x6E\x61\x6C"),stringIDToTypeID("\x74\x61\x72\x67\x65\x74\x45\x6E\x75\x6D"));var _0x1678C=executeActionGet(_0x167B8);var _0x15E2E=_0x1678C.getString(stringIDToTypeID("\x6A\x73\x6F\x6E"));_0x16A62= eval('\x28'+ _0x15E2E+ '\x29\x3B')}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x16A62}function searchLayerFromObjById(_0x16A62,_0x171DC){var _0x1615C=null;try{if(_0x16A62){_0x1615C= searchLayerFromObjByIdSub(_0x16A62.layers,_0x171DC)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function searchLayerFromObjByIdSub(_0x166B0,_0x171DC){var _0x1615C=null;try{if(_0x166B0&& _0x166B0.length){for(var _0x15E44=0;_0x15E44< _0x166B0.length;_0x15E44++){var _0x1669A=_0x166B0[_0x15E44];if(_0x1669A.id== _0x171DC){_0x1615C= _0x1669A;break};_0x1615C= searchLayerFromObjByIdSub(_0x1669A.layers,_0x171DC);if(_0x1615C){break}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function layerInfoBrightness(_0x16A20,_0x172A2){var _0x1615C="\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20";try{var _0x172B8=0;var _0x172CE=0;try{_0x172B8= _0x172A2.brightness}catch(e){};try{_0x172CE= _0x172A2.center}catch(e){};if(_0x172B8=== undefined){_0x172B8= 0};if(_0x172CE=== undefined){_0x172CE= 0};if(_0x16A20== '\x62\x72\x69\x67\x68\x74\x6E\x65\x73\x73'|| _0x16A20== '\x63\x6F\x6E\x74\x72\x61\x73\x74'){_0x1615C= "\x4F\x4B\x3A"+ _0x172B8+ "\x3A"+ _0x172CE}else {_0x1615C= "\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"];debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"])}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function layerInfoHue(_0x16A20,_0x172A2){var _0x1615C="\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20";try{var _0x17310=0;var _0x1733C=0;var _0x17326=0;try{_0x17310= _0x172A2.adjustment[0].hue}catch(e){};try{_0x1733C= _0x172A2.adjustment[0].saturation}catch(e){};try{_0x17326= _0x172A2.adjustment[0].lightness}catch(e){};if(_0x17310=== undefined){_0x17310= 0};if(_0x1733C=== undefined){_0x1733C= 0};if(_0x17326=== undefined){_0x17326= 0};if(_0x16A20== '\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E'){_0x1615C= "\x4F\x4B\x3A"+ _0x17310+ "\x3A"+ _0x1733C+ "\x3A"+ _0x17326}else {_0x1615C= "\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"];debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"])}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function layerInfoVibrance(_0x16A20,_0x172A2){var _0x1615C="\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20";try{var _0x17352=0;var _0x1733C=0;try{_0x17352= _0x172A2.vibrance}catch(e){};try{_0x1733C= _0x172A2.saturation}catch(e){};if(_0x17352=== undefined){_0x17352= 0};if(_0x1733C=== undefined){_0x1733C= 0};if(_0x16A20== '\x76\x69\x62\x72\x61\x6E\x63\x65'|| _0x16A20== '\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E'){_0x1615C= "\x4F\x4B\x3A"+ _0x17352+ "\x3A"+ _0x1733C}else {_0x1615C= "\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"];debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"])}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function layerInfoExposure(_0x16A20,_0x172A2){var _0x1615C="\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x20\x6C\x61\x79\x65\x72\x20\x74\x79\x70\x65\x20";try{var _0x16C30=0.0;var _0x172FA=0.0;var _0x172E4=1.0;try{_0x16C30= _0x172A2.exposure}catch(e){};try{_0x172FA= _0x172A2.offset}catch(e){};try{_0x172E4= _0x172A2.gammaCorrection}catch(e){};if(_0x16C30=== undefined){_0x16C30= 0};if(_0x172FA=== undefined){_0x172FA= 0};if(_0x172E4=== undefined){_0x172E4= 0};if(_0x16A20== '\x65\x78\x70\x6F\x73\x75\x72\x65'|| _0x16A20== '\x6F\x66\x66\x73\x65\x74'|| _0x16A20== '\x67\x61\x6D\x6D\x61\x43\x6F\x72\x72\x65\x63\x74\x69\x6F\x6E'){_0x1615C= "\x4F\x4B\x3A"+ _0x16C30+ "\x3A"+ _0x172FA+ "\x3A"+ _0x172E4}else {_0x1615C= "\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"];debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x3D"+ _0x16A20+ "\x2C\x20\x61\x64\x6A\x75\x73\x74\x6D\x65\x6E\x74\x2E\x63\x6C\x61\x73\x73\x3D"+ _0x172A2["\x63\x6C\x61\x73\x73"])}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}var BlendNames=['\x4E\x72\x6D\x6C','\x44\x73\x6C\x76','\x44\x72\x6B\x6E','\x4D\x6C\x74\x70','\x43\x42\x72\x6E','\x6C\x69\x6E\x65\x61\x72\x42\x75\x72\x6E','\x64\x61\x72\x6B\x65\x72\x43\x6F\x6C\x6F\x72','\x4C\x67\x68\x6E','\x53\x63\x72\x6E','\x43\x44\x64\x67','\x6C\x69\x6E\x65\x61\x72\x44\x6F\x64\x67\x65','\x6C\x69\x67\x68\x74\x65\x72\x43\x6F\x6C\x6F\x72','\x4F\x76\x72\x6C','\x53\x66\x74\x4C','\x48\x72\x64\x4C','\x76\x69\x76\x69\x64\x4C\x69\x67\x68\x74','\x6C\x69\x6E\x65\x61\x72\x4C\x69\x67\x68\x74','\x70\x69\x6E\x4C\x69\x67\x68\x74','\x68\x61\x72\x64\x4D\x69\x78','\x44\x66\x72\x6E','\x58\x63\x6C\x75','\x62\x6C\x65\x6E\x64\x53\x75\x62\x74\x72\x61\x63\x74\x69\x6F\x6E','\x62\x6C\x65\x6E\x64\x44\x69\x76\x69\x64\x65','\x48\x20\x20\x20','\x53\x74\x72\x74','\x43\x6C\x72\x20','\x4C\x6D\x6E\x73'];var BlendNamesGray32=['\x4E\x72\x6D\x6C','\x44\x73\x6C\x76','\x44\x72\x6B\x6E','\x4D\x6C\x74\x70','\x4C\x67\x68\x6E','\x6C\x69\x6E\x65\x61\x72\x44\x6F\x64\x67\x65','\x44\x66\x72\x6E','\x62\x6C\x65\x6E\x64\x53\x75\x62\x74\x72\x61\x63\x74\x69\x6F\x6E','\x62\x6C\x65\x6E\x64\x44\x69\x76\x69\x64\x65'];var BlendNamesGray816Duo=['\x4E\x72\x6D\x6C','\x44\x73\x6C\x76','\x44\x72\x6B\x6E','\x4D\x6C\x74\x70','\x43\x42\x72\x6E','\x6C\x69\x6E\x65\x61\x72\x42\x75\x72\x6E','\x4C\x67\x68\x6E','\x53\x63\x72\x6E','\x43\x44\x64\x67','\x6C\x69\x6E\x65\x61\x72\x44\x6F\x64\x67\x65','\x4F\x76\x72\x6C','\x53\x66\x74\x4C','\x48\x72\x64\x4C','\x76\x69\x76\x69\x64\x4C\x69\x67\x68\x74','\x6C\x69\x6E\x65\x61\x72\x4C\x69\x67\x68\x74','\x70\x69\x6E\x4C\x69\x67\x68\x74','\x68\x61\x72\x64\x4D\x69\x78','\x44\x66\x72\x6E','\x58\x63\x6C\x75','\x62\x6C\x65\x6E\x64\x53\x75\x62\x74\x72\x61\x63\x74\x69\x6F\x6E','\x62\x6C\x65\x6E\x64\x44\x69\x76\x69\x64\x65'];var BlendNamesLab=['\x4E\x72\x6D\x6C','\x44\x73\x6C\x76','\x4D\x6C\x74\x70','\x6C\x69\x6E\x65\x61\x72\x42\x75\x72\x6E','\x64\x61\x72\x6B\x65\x72\x43\x6F\x6C\x6F\x72','\x53\x63\x72\x6E','\x6C\x69\x6E\x65\x61\x72\x44\x6F\x64\x67\x65','\x6C\x69\x67\x68\x74\x65\x72\x43\x6F\x6C\x6F\x72','\x4F\x76\x72\x6C','\x53\x66\x74\x4C','\x48\x72\x64\x4C','\x76\x69\x76\x69\x64\x4C\x69\x67\x68\x74','\x6C\x69\x6E\x65\x61\x72\x4C\x69\x67\x68\x74','\x70\x69\x6E\x4C\x69\x67\x68\x74','\x68\x61\x72\x64\x4D\x69\x78','\x48\x20\x20\x20','\x53\x74\x72\x74','\x43\x6C\x72\x20','\x4C\x6D\x6E\x73'];var BlendNamesRGB32=['\x4E\x72\x6D\x6C','\x44\x73\x6C\x76','\x44\x72\x6B\x6E','\x4D\x6C\x74\x70','\x64\x61\x72\x6B\x65\x72\x43\x6F\x6C\x6F\x72','\x4C\x67\x68\x6E','\x6C\x69\x6E\x65\x61\x72\x44\x6F\x64\x67\x65','\x6C\x69\x67\x68\x74\x65\x72\x43\x6F\x6C\x6F\x72','\x44\x66\x72\x6E','\x62\x6C\x65\x6E\x64\x53\x75\x62\x74\x72\x61\x63\x74\x69\x6F\x6E','\x62\x6C\x65\x6E\x64\x44\x69\x76\x69\x64\x65','\x48\x20\x20\x20','\x53\x74\x72\x74','\x43\x6C\x72\x20','\x4C\x6D\x6E\x73'];function updateBlendMode(_0x1619E){var _0x1615C=NotSupportedValue;try{var _0x18230=BlendNames;switch(app.activeDocument.mode){case DocumentMode.CMYK:;case DocumentMode.RGB:if(app.activeDocument.bitsPerChannel== BitsPerChannelType.THIRTYTWO){_0x18230= BlendNamesRGB32};break;case DocumentMode.GRAYSCALE:switch(app.activeDocument.bitsPerChannel){case BitsPerChannelType.EIGHT:;case BitsPerChannelType.SIXTEEN:_0x18230= BlendNamesGray816Duo;break;case BitsPerChannelType.THIRTYTWO:_0x18230= BlendNamesGray32;break;default:debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ app.activeDocument.bitsPerChannel);return _0x1615C;break};break;case DocumentMode.DUOTONE:_0x18230= BlendNamesGray816Duo;break;case DocumentMode.LAB:_0x18230= BlendNamesLab;break;case DocumentMode.INDEXEDCOLOR:;case DocumentMode.BITMAP:;case DocumentMode.MULTICHANNEL:;default:debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ app.activeDocument.mode);return _0x1615C;break};if(app.activeDocument.activeLayer&& app.activeDocument.activeLayer.allLocked){return _0x1615C};var _0x168EC=getBlendParameters();if(_0x168EC!= null){var _0x167CE=_0x168EC.split('\x3A');var _0x169F4=_0x167CE[1];if(_0x169F4== BackgroundLayerBlendName){unlockBackgroundLayer()};for(var _0x15E44=0;_0x15E44< _0x18230.length;_0x15E44++){if(_0x169F4== _0x18230[_0x15E44]){if(_0x1619E> 0){if(_0x15E44== (_0x18230.length- 1)){_0x169F4= _0x18230[0]}else {_0x169F4= _0x18230[_0x15E44+ 1]}}else {if(_0x15E44== 0){_0x169F4= _0x18230[_0x18230.length- 1]}else {_0x169F4= _0x18230[_0x15E44- 1]}};break}};setBlendParameters(_0x169F4);_0x1615C= _0x169F4}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getBlendParameters(){var _0x169F4='\x45\x72\x72\x6F\x72';try{if(app.activeDocument.activeLayer.isBackgroundLayer){_0x169F4= BackgroundLayerBlendName}else {var _0x16A0A=app.activeDocument.activeLayer.blendMode;if(_0x16A0A== BlendMode.NORMAL){_0x169F4= '\x4E\x72\x6D\x6C'};if(_0x16A0A== BlendMode.DISSOLVE){_0x169F4= '\x44\x73\x6C\x76'};if(_0x16A0A== BlendMode.DARKEN){_0x169F4= '\x44\x72\x6B\x6E'};if(_0x16A0A== BlendMode.MULTIPLY){_0x169F4= '\x4D\x6C\x74\x70'};if(_0x16A0A== BlendMode.COLORBURN){_0x169F4= '\x43\x42\x72\x6E'};if(_0x16A0A== BlendMode.LINEARBURN){_0x169F4= '\x6C\x69\x6E\x65\x61\x72\x42\x75\x72\x6E'};if(_0x16A0A== BlendMode.DARKERCOLOR){_0x169F4= '\x64\x61\x72\x6B\x65\x72\x43\x6F\x6C\x6F\x72'};if(_0x16A0A== BlendMode.LIGHTEN){_0x169F4= '\x4C\x67\x68\x6E'};if(_0x16A0A== BlendMode.SCREEN){_0x169F4= '\x53\x63\x72\x6E'};if(_0x16A0A== BlendMode.COLORDODGE){_0x169F4= '\x43\x44\x64\x67'};if(_0x16A0A== BlendMode.LINEARDODGE){_0x169F4= '\x6C\x69\x6E\x65\x61\x72\x44\x6F\x64\x67\x65'};if(_0x16A0A== BlendMode.LIGHTERCOLOR){_0x169F4= '\x6C\x69\x67\x68\x74\x65\x72\x43\x6F\x6C\x6F\x72'};if(_0x16A0A== BlendMode.OVERLAY){_0x169F4= '\x4F\x76\x72\x6C'};if(_0x16A0A== BlendMode.SOFTLIGHT){_0x169F4= '\x53\x66\x74\x4C'};if(_0x16A0A== BlendMode.HARDLIGHT){_0x169F4= '\x48\x72\x64\x4C'};if(_0x16A0A== BlendMode.VIVIDLIGHT){_0x169F4= '\x76\x69\x76\x69\x64\x4C\x69\x67\x68\x74'};if(_0x16A0A== BlendMode.LINEARLIGHT){_0x169F4= '\x6C\x69\x6E\x65\x61\x72\x4C\x69\x67\x68\x74'};if(_0x16A0A== BlendMode.PINLIGHT){_0x169F4= '\x70\x69\x6E\x4C\x69\x67\x68\x74'};if(_0x16A0A== BlendMode.HARDMIX){_0x169F4= '\x68\x61\x72\x64\x4D\x69\x78'};if(_0x16A0A== BlendMode.DIFFERENCE){_0x169F4= '\x44\x66\x72\x6E'};if(_0x16A0A== BlendMode.EXCLUSION){_0x169F4= '\x58\x63\x6C\x75'};if(_0x16A0A== BlendMode.SUBTRACT){_0x169F4= '\x62\x6C\x65\x6E\x64\x53\x75\x62\x74\x72\x61\x63\x74\x69\x6F\x6E'};if(_0x16A0A== BlendMode.DIVIDE){_0x169F4= '\x62\x6C\x65\x6E\x64\x44\x69\x76\x69\x64\x65'};if(_0x16A0A== BlendMode.HUE){_0x169F4= '\x48\x20\x20\x20'};if(_0x16A0A== BlendMode.SATURATION){_0x169F4= '\x53\x74\x72\x74'};if(_0x16A0A== BlendMode.COLORBLEND){_0x169F4= '\x43\x6C\x72\x20'};if(_0x16A0A== BlendMode.LUMINOSITY){_0x169F4= '\x4C\x6D\x6E\x73'}}}catch(e){_0x169F4= '\x45\x72\x72\x6F\x72'+ e.message;debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return "\x4F\x4B\x3A"+ _0x169F4}function getCurrentTool(){var _0x1615C="\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64";try{if(app.documents.length== 0){_0x1615C= "\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64"}else {switch(psPrefContext){case 1:var _0x16684=app.activeDocument.activeLayer.kind.toString();debugLog("\x6B\x69\x6E\x64\x20\x3D\x20"+ _0x16684);switch(_0x16684){case '\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x42\x52\x49\x47\x48\x54\x4E\x45\x53\x53\x43\x4F\x4E\x54\x52\x41\x53\x54':;case '\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x56\x49\x42\x52\x41\x4E\x43\x45':;case '\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x45\x58\x50\x4F\x53\x55\x52\x45':_0x1615C= _0x16684;break;case '\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x4E\x4F\x52\x4D\x41\x4C':;default:_0x1615C= getCurrentToolSub()};break;case 2:_0x1615C= getCurrentToolSubColor();break;case 3:_0x1615C= getCurrentToolSubColor()+ "\x32";break;case 5:_0x1615C= "\x54\x65\x73\x74\x5F\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64";break;case 6:_0x1615C= "\x54\x65\x73\x74\x5F\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64";break;case 7:_0x1615C= TestMouse;break;case 0:;default:_0x1615C= getCurrentToolSub();break}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getCurrentToolSub(){var _0x1615C="\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64";try{if(app.documents.length== 0){_0x1615C= "\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64"}else {_0x1615C= getCurrentToolSubToolId()}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getCurrentToolSubToolId(){var _0x1615C="\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64";try{var _0x167B8= new ActionReference();_0x167B8.putProperty(charIDToTypeID('\x50\x72\x70\x72'),charIDToTypeID('\x54\x6F\x6F\x6C'));_0x167B8.putEnumerated(charIDToTypeID('\x63\x61\x70\x70'),charIDToTypeID('\x4F\x72\x64\x6E'),charIDToTypeID('\x54\x72\x67\x74'));var _0x1678C=executeActionGet(_0x167B8);var _0x16A8E=_0x1678C.getEnumerationType(charIDToTypeID('\x54\x6F\x6F\x6C'));_0x1615C= typeIDToStringID(_0x16A8E)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getCurrentToolSubColor(){var _0x1615C="\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64";try{if(app.documents.length== 0){_0x1615C= "\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64"}else {var _0x16684=app.activeDocument.activeLayer.kind.toString();var _0x16826=app.activeDocument.mode.toString();switch(_0x16684){case "\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x4E\x4F\x52\x4D\x41\x4C":;case "\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x54\x45\x58\x54":;case "\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x50\x41\x54\x54\x45\x52\x4E\x46\x49\x4C\x4C":;case "\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x47\x52\x41\x44\x49\x45\x4E\x54\x46\x49\x4C\x4C":;case "\x4C\x61\x79\x65\x72\x4B\x69\x6E\x64\x2E\x53\x4F\x4C\x49\x44\x46\x49\x4C\x4C":switch(_0x16826){case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x43\x4D\x59\x4B":_0x1615C= "\x43\x4D\x59\x4B";break;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x42\x49\x54\x4D\x41\x50":;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x47\x52\x41\x59\x53\x43\x41\x4C\x45":;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x44\x55\x4F\x54\x4F\x4E\x45":_0x1615C= "\x47\x52\x41\x59\x53\x43\x41\x4C\x45";break;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x49\x4E\x44\x45\x58\x45\x44\x43\x4F\x4C\x4F\x52":;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x4C\x41\x42":;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x4D\x55\x4C\x54\x49\x43\x48\x41\x4E\x4E\x45\x4C":;case "\x44\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65\x2E\x52\x47\x42":;default:_0x1615C= "\x52\x47\x42";break};break;default:_0x1615C= "\x47\x52\x41\x59\x53\x43\x41\x4C\x45";break}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getCurrentLayerHmObj(){var _0x1615C=[];try{var _0x167B8={"\x6E\x75\x6C\x6C":{"\x5F\x65\x6E\x75\x6D":"\x6F\x72\x64\x69\x6E\x61\x6C","\x5F\x72\x65\x66":"\x6C\x61\x79\x65\x72","\x5F\x76\x61\x6C\x75\x65":"\x74\x61\x72\x67\x65\x74\x45\x6E\x75\x6D"}};var _0x16A62=Humanizer.getObject(_0x167B8);_0x1615C= _0x16A62}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getCurrentToolHmObjTarget(){var _0x1615C=[];try{var _0x167B8={"\x6E\x75\x6C\x6C":{"\x5F\x72\x65\x66":[{"\x5F\x70\x72\x6F\x70\x65\x72\x74\x79":"\x74\x6F\x6F\x6C","\x5F\x72\x65\x66":"\x70\x72\x6F\x70\x65\x72\x74\x79"},{"\x5F\x65\x6E\x75\x6D":"\x6F\x72\x64\x69\x6E\x61\x6C","\x5F\x72\x65\x66":"\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x5F\x76\x61\x6C\x75\x65":"\x74\x61\x72\x67\x65\x74"}]}};var _0x16A62=Humanizer.getObject(_0x167B8);$.writeln("\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D");$.writeln(Humanizer.objectToJsonString(_0x16A62,4));$.writeln("\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D");_0x1615C= _0x16A62}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getCurrentToolHmObj(){var _0x1615C=[];try{var _0x167B8={"\x6E\x75\x6C\x6C":{"\x5F\x72\x65\x66":[{"\x5F\x70\x72\x6F\x70\x65\x72\x74\x79":"\x74\x6F\x6F\x6C","\x5F\x72\x65\x66":"\x70\x72\x6F\x70\x65\x72\x74\x79"},{"\x5F\x65\x6E\x75\x6D":"\x6F\x72\x64\x69\x6E\x61\x6C","\x5F\x72\x65\x66":"\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x5F\x76\x61\x6C\x75\x65":"\x74\x61\x72\x67\x65\x74\x45\x6E\x75\x6D"}]}};var _0x16A62=Humanizer.getObject(_0x167B8);$.writeln("\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D");$.writeln(Humanizer.objectToJsonString(_0x16A62,4));$.writeln("\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D");_0x1615C= _0x16A62}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getBrushObjType(){var _0x1615C="";try{var _0x16A4C=getCurrentToolHmObj();_0x1615C= _0x16A4C.currentToolOptions.brush._obj;if(_0x1615C== '\x64\x54\x69\x70\x73'&& _0x16A4C.currentToolOptions.brush.hasOwnProperty("\x64\x74\x69\x70\x73\x47\x72\x69\x64\x53\x69\x7A\x65")){_0x1615C= "\x64\x54\x69\x70\x73\x32"}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getAppColorReplacementBrushParameters(){try{var _0x167B8= new ActionReference();_0x167B8.putProperty(charIDToTypeID('\x50\x72\x70\x72'),charIDToTypeID('\x54\x6F\x6F\x6C'));_0x167B8.putEnumerated(charIDToTypeID('\x63\x61\x70\x70'),charIDToTypeID('\x43\x72\x73\x4B'),charIDToTypeID('\x42\x72\x73\x53'));var _0x1678C=executeActionGet(_0x167B8);if(_0x1678C){var _0x167A2=_0x1678C.getObjectValue(charIDToTypeID('\x43\x72\x6E\x54'));if(_0x167A2){var _0x1671E=_0x167A2.getObjectValue(charIDToTypeID('\x42\x72\x73\x68'));if(_0x1671E){var _0x16760=_0x1671E.getUnitDoubleType(charIDToTypeID('\x44\x6D\x74\x72'));var _0x16776=_0x1671E.getUnitDoubleValue(charIDToTypeID('\x44\x6D\x74\x72'));var _0x16734=_0x1671E.getUnitDoubleType(charIDToTypeID('\x48\x72\x64\x6E'));var _0x1674A=_0x1671E.getUnitDoubleValue(charIDToTypeID('\x48\x72\x64\x6E'));return '\x4F\x4B\x3A'+ _0x16776+ '\x3A'+ _0x1674A}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);return "\x45\x72\x72\x6F\x72\x3A\x20\x67\x65\x74\x41\x70\x70\x42\x72\x75\x73\x68\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73"}}function getAppPencilParameters(){try{var _0x167B8= new ActionReference();_0x167B8.putProperty(charIDToTypeID('\x50\x72\x70\x72'),charIDToTypeID('\x54\x6F\x6F\x6C'));_0x167B8.putEnumerated(charIDToTypeID('\x63\x61\x70\x70'),charIDToTypeID('\x43\x72\x73\x4B'),charIDToTypeID('\x42\x72\x73\x53'));var _0x1678C=executeActionGet(_0x167B8);if(_0x1678C){var _0x167A2=_0x1678C.getObjectValue(charIDToTypeID('\x43\x72\x6E\x54'));if(_0x167A2){var _0x1671E=_0x167A2.getObjectValue(charIDToTypeID('\x42\x72\x73\x68'));if(_0x1671E){var _0x16760=_0x1671E.getUnitDoubleType(charIDToTypeID('\x44\x6D\x74\x72'));var _0x16776=_0x1671E.getUnitDoubleValue(charIDToTypeID('\x44\x6D\x74\x72'));try{var _0x16734=_0x1671E.getUnitDoubleType(charIDToTypeID('\x48\x72\x64\x6E'));var _0x1674A=_0x1671E.getUnitDoubleValue(charIDToTypeID('\x48\x72\x64\x6E'));return '\x4F\x4B\x3A'+ _0x16776+ '\x3A'+ _0x1674A}catch(e){return '\x4F\x4B\x3A'+ _0x16776+ '\x3A\x2D\x31\x30\x30'}}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);return "\x45\x72\x72\x6F\x72\x3A\x20\x67\x65\x74\x41\x70\x70\x42\x72\x75\x73\x68\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73"}}function getAppPencilParametersSize(){var _0x1615C=-1;var _0x168EC=getAppPencilParameters();if(_0x168EC!= null){var _0x167CE=_0x168EC.split('\x3A');var _0x169DE=Number(_0x167CE[1]);var _0x169C8=Number(_0x167CE[2]);_0x1615C= _0x169DE};return _0x1615C}function getAppPencilParametersHardness(){var _0x1615C=-1;try{var _0x168EC=getAppPencilParameters();if(_0x168EC!= null){var _0x167CE=_0x168EC.split('\x3A');var _0x169DE=Number(_0x167CE[1]);var _0x169C8=Number(_0x167CE[2]);_0x1615C= _0x169C8}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function setAppColorReplacementBrushParameters(_0x169DE,_0x169C8){try{var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17940= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17ACC= new ActionReference();var _0x17998=charIDToTypeID("\x42\x72\x73\x68");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17ACC.putEnumerated(_0x17998,_0x1749C,_0x17AB6);_0x17940.putReference(_0x15FA4,_0x17ACC);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17956= new ActionDescriptor();var _0x179C4=charIDToTypeID("\x44\x6D\x74\x72");var _0x17A48=charIDToTypeID("\x23\x50\x78\x6C");_0x17956.putUnitDouble(_0x179C4,_0x17A48,_0x169DE);var _0x17A06=charIDToTypeID("\x48\x72\x64\x6E");var _0x17A32=charIDToTypeID("\x23\x50\x72\x63");_0x17956.putUnitDouble(_0x17A06,_0x17A32,_0x169C8);var _0x17982=charIDToTypeID("\x41\x6E\x67\x6C");var _0x1796C=charIDToTypeID("\x23\x41\x6E\x67");_0x17956.putUnitDouble(_0x17982,_0x1796C,0.000000);var _0x17A5E=charIDToTypeID("\x52\x6E\x64\x6E");var _0x17A32=charIDToTypeID("\x23\x50\x72\x63");_0x17956.putUnitDouble(_0x17A5E,_0x17A32,100.000000);var _0x17A8A=charIDToTypeID("\x53\x70\x63\x6E");var _0x17A32=charIDToTypeID("\x23\x50\x72\x63");_0x17956.putUnitDouble(_0x17A8A,_0x17A32,139.000000);var _0x17A1C=charIDToTypeID("\x49\x6E\x74\x72");_0x17956.putBoolean(_0x17A1C,true);var _0x179DA=stringIDToTypeID("\x66\x6C\x69\x70\x58");_0x17956.putBoolean(_0x179DA,false);var _0x179F0=stringIDToTypeID("\x66\x6C\x69\x70\x59");_0x17956.putBoolean(_0x179F0,false);var _0x179AE=stringIDToTypeID("\x63\x6F\x6D\x70\x75\x74\x65\x64\x42\x72\x75\x73\x68");_0x17940.putObject(_0x17AA0,_0x179AE,_0x17956);executeAction(_0x17A74,_0x17940,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function getAppBrushParameters(){try{var _0x167B8= new ActionReference();_0x167B8.putProperty(charIDToTypeID('\x50\x72\x70\x72'),charIDToTypeID('\x54\x6F\x6F\x6C'));_0x167B8.putEnumerated(charIDToTypeID('\x63\x61\x70\x70'),charIDToTypeID('\x43\x72\x73\x4B'),charIDToTypeID('\x42\x72\x73\x53'));var _0x1678C=executeActionGet(_0x167B8);if(_0x1678C){var _0x167A2=_0x1678C.getObjectValue(charIDToTypeID('\x43\x72\x6E\x54'));if(_0x167A2){var _0x1671E=_0x167A2.getObjectValue(charIDToTypeID('\x42\x72\x73\x68'));if(_0x1671E){var _0x16760=_0x1671E.getUnitDoubleType(charIDToTypeID('\x44\x6D\x74\x72'));var _0x16776=_0x1671E.getUnitDoubleValue(charIDToTypeID('\x44\x6D\x74\x72'));var _0x16734=_0x1671E.getUnitDoubleType(charIDToTypeID('\x48\x72\x64\x6E'));var _0x1674A=_0x1671E.getUnitDoubleValue(charIDToTypeID('\x48\x72\x64\x6E'));return '\x4F\x4B\x3A'+ _0x16776+ '\x3A'+ _0x1674A}}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);return "\x45\x72\x72\x6F\x72\x3A\x20\x67\x65\x74\x41\x70\x70\x42\x72\x75\x73\x68\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73"}}function getStrokeWeight(){var _0x167E4=GetCurrentTool();var _0x168EC=_0x167E4.toSource();var _0x1662C=null;var _0x167CE=_0x168EC.split('\x70\x6F\x69\x6E\x74\x73\x55\x6E\x69\x74');if(_0x167CE[1]=== undefined){}else {var _0x16810=_0x167CE[1].split('\x2C');_0x1662C= _0x16810[1];var _0x16D0C=_0x1662C.split('\x3A');_0x1662C= _0x16D0C[1];_0x16D0C= _0x1662C.split('\x7D');_0x1662C= _0x16D0C[0]};return _0x1662C}function getAppBrushParametersOpacityFlow2(){var _0x167FA=null;var _0x1683C=null;var _0x167B8= new ActionReference();_0x167B8.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x1699C=executeActionGet(_0x167B8);_0x1699C= _0x1699C.getObjectValue(stringIDToTypeID('\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73'));try{_0x1683C= _0x1699C.getInteger(stringIDToTypeID('\x6F\x70\x61\x63\x69\x74\x79'));_0x167FA= _0x1699C.getInteger(stringIDToTypeID('\x66\x6C\x6F\x77'))}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1683C+ '\x3A'+ _0x167FA}function getAppBrushParametersOpacityFlow(){var _0x167E4=GetCurrentTool();var _0x168EC=_0x167E4.toSource();var _0x167FA=null;var _0x1687E=null;var _0x168AA=null;var _0x16868=null;var _0x16826=null;var _0x1683C=null;var _0x167CE=_0x168EC.split('\x66\x6C\x6F\x77\x3A');if(_0x167CE[1]=== undefined){}else {var _0x16810=_0x167CE[1].split('\x2C');_0x167FA= _0x16810[0]};var _0x16902=_0x168EC.split('\x6F\x70\x61\x63\x69\x74\x79\x3A');if(_0x16902[1]=== undefined){}else {var _0x16852=_0x16902[1].split('\x2C');_0x1683C= _0x16852[0]};var _0x16970=_0x168EC.split('\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x4F\x70\x61\x63\x69\x74\x79\x3A');if(_0x16970[1]=== undefined){}else {var _0x16894=_0x16970[1].split('\x2C');_0x1687E= _0x16894[0]};var _0x16986=_0x168EC.split('\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x53\x69\x7A\x65\x3A');if(_0x16986[1]=== undefined){}else {var _0x168C0=_0x16986[1].split('\x2C');_0x168AA= _0x168C0[0]};var _0x16918=_0x168EC.split('\x62\x6C\x65\x6E\x64\x4D\x6F\x64\x65');if(_0x16918[1]=== undefined){}else {var _0x15E2E=_0x16918[1];var _0x1692E=_0x16918[1].split('\x76\x61\x6C\x75\x65\x3A');var _0x168D6=_0x1692E[1].split('\x2C');_0x16826= _0x168D6[0]};var _0x16944=_0x168EC.split('\x72\x65\x70\x65\x61\x74\x3A');if(_0x16944[1]=== undefined){}else {var _0x1695A=_0x16944[1].split('\x2C');_0x16868= _0x1695A[0]};return _0x1683C+ '\x3A'+ _0x167FA+ '\x3A'+ _0x1687E+ '\x3A'+ _0x168AA+ '\x3A'+ _0x16868+ '\x3A'+ _0x16826}function getParameterExposure(){var _0x167E4=GetCurrentTool();var _0x168EC=_0x167E4.toSource();var _0x16C30=null;var _0x167CE=_0x168EC.split('\x65\x78\x70\x6F\x73\x75\x72\x65\x3A');if(_0x167CE[1]=== undefined){}else {var _0x16810=_0x167CE[1].split('\x2C');_0x16C30= _0x16810[0]};return _0x16C30}function getParameterOpacity(){var _0x167E4=GetCurrentTool();var _0x168EC=_0x167E4.toSource();var _0x1683C=null;var _0x167CE=_0x168EC.split('\x6F\x70\x61\x63\x69\x74\x79\x3A');if(_0x167CE[1]=== undefined){}else {var _0x16810=_0x167CE[1].split('\x2C');_0x1683C= _0x16810[0]};return _0x1683C}function getAppBrushParametersOpacityPressure(){var _0x167E4=GetCurrentTool();var _0x168EC=_0x167E4.toSource();var _0x169B2=null;var _0x1687E=null;var _0x168AA=null;var _0x16868=null;var _0x16826=null;var _0x1683C=null;var _0x167CE=_0x168EC.split('\x70\x72\x65\x73\x73\x75\x72\x65\x3A');if(_0x167CE[1]=== undefined){}else {var _0x16810=_0x167CE[1].split('\x2C');_0x169B2= _0x16810[0]};var _0x16902=_0x168EC.split('\x6F\x70\x61\x63\x69\x74\x79\x3A');if(_0x16902[1]=== undefined){}else {var _0x16852=_0x16902[1].split('\x2C');_0x1683C= _0x16852[0]};var _0x16970=_0x168EC.split('\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x4F\x70\x61\x63\x69\x74\x79\x3A');if(_0x16970[1]=== undefined){}else {var _0x16894=_0x16970[1].split('\x2C');_0x1687E= _0x16894[0]};var _0x16986=_0x168EC.split('\x75\x73\x65\x50\x72\x65\x73\x73\x75\x72\x65\x4F\x76\x65\x72\x72\x69\x64\x65\x73\x53\x69\x7A\x65\x3A');if(_0x16986[1]=== undefined){}else {var _0x168C0=_0x16986[1].split('\x2C');_0x168AA= _0x168C0[0]};var _0x16918=_0x168EC.split('\x62\x6C\x65\x6E\x64\x4D\x6F\x64\x65');if(_0x16918[1]=== undefined){}else {var _0x15E2E=_0x16918[1];var _0x1692E=_0x16918[1].split('\x76\x61\x6C\x75\x65\x3A');var _0x168D6=_0x1692E[1].split('\x2C');_0x16826= _0x168D6[0]};var _0x16944=_0x168EC.split('\x72\x65\x70\x65\x61\x74\x3A');if(_0x16944[1]=== undefined){}else {var _0x1695A=_0x16944[1].split('\x2C');_0x16868= _0x1695A[0]};return _0x1683C+ '\x3A'+ _0x169B2+ '\x3A'+ _0x1687E+ '\x3A'+ _0x168AA+ '\x3A'+ _0x16868+ '\x3A'+ _0x16826}function setBrushHardness(_0x169C8){try{var _0x173EC= new ActionReference();_0x173EC.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x173EC.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x168EC=executeActionGet(_0x173EC);var _0x17838=_0x168EC.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x17C00=_0x17838.getObjectValue(stringIDToTypeID("\x62\x72\x75\x73\x68"));var _0x16CCA= new ActionReference();_0x16CCA.putEnumerated(charIDToTypeID("\x42\x72\x73\x68"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x17822= new ActionDescriptor();_0x17822.putReference(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x16CCA);if(_0x169C8!= undefined){_0x17C00.putUnitDouble(charIDToTypeID("\x48\x72\x64\x6E"),charIDToTypeID("\x23\x50\x72\x63"),_0x169C8)};_0x17822.putObject(charIDToTypeID("\x54\x20\x20\x20"),charIDToTypeID("\x42\x72\x73\x68"),_0x17C00);executeAction(charIDToTypeID("\x73\x65\x74\x64"),_0x17822,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushAngle(_0x1619E){try{var _0x173EC= new ActionReference();_0x173EC.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x173EC.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x168EC=executeActionGet(_0x173EC);var _0x17838=_0x168EC.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x17C00=_0x17838.getObjectValue(stringIDToTypeID("\x62\x72\x75\x73\x68"));var _0x16CCA= new ActionReference();_0x16CCA.putEnumerated(charIDToTypeID("\x42\x72\x73\x68"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x17822= new ActionDescriptor();_0x17822.putReference(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x16CCA);if(_0x1619E!= undefined){_0x17C00.putUnitDouble(charIDToTypeID("\x41\x6E\x67\x6C"),charIDToTypeID("\x23\x50\x72\x63"),_0x1619E)};_0x17822.putObject(charIDToTypeID("\x54\x20\x20\x20"),charIDToTypeID("\x42\x72\x73\x68"),_0x17C00);executeAction(charIDToTypeID("\x73\x65\x74\x64"),_0x17822,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushRoundness(_0x1619E){try{var _0x173EC= new ActionReference();_0x173EC.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x173EC.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x168EC=executeActionGet(_0x173EC);var _0x17838=_0x168EC.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x17C00=_0x17838.getObjectValue(stringIDToTypeID("\x62\x72\x75\x73\x68"));var _0x16CCA= new ActionReference();_0x16CCA.putEnumerated(charIDToTypeID("\x42\x72\x73\x68"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x17822= new ActionDescriptor();_0x17822.putReference(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x16CCA);if(_0x1619E!= undefined){_0x17C00.putUnitDouble(charIDToTypeID("\x52\x6E\x64\x6E"),charIDToTypeID("\x23\x50\x72\x63"),_0x1619E)};_0x17822.putObject(charIDToTypeID("\x54\x20\x20\x20"),charIDToTypeID("\x42\x72\x73\x68"),_0x17C00);executeAction(charIDToTypeID("\x73\x65\x74\x64"),_0x17822,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushSpacing(_0x1619E){try{var _0x173EC= new ActionReference();_0x173EC.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x173EC.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x168EC=executeActionGet(_0x173EC);var _0x17838=_0x168EC.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x17C00=_0x17838.getObjectValue(stringIDToTypeID("\x62\x72\x75\x73\x68"));var _0x16CCA= new ActionReference();_0x16CCA.putEnumerated(charIDToTypeID("\x42\x72\x73\x68"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x17822= new ActionDescriptor();_0x17822.putReference(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x16CCA);if(_0x1619E!= undefined){_0x17C00.putUnitDouble(charIDToTypeID("\x53\x70\x63\x6E"),charIDToTypeID("\x23\x50\x72\x63"),_0x1619E)};_0x17822.putObject(charIDToTypeID("\x54\x20\x20\x20"),charIDToTypeID("\x42\x72\x73\x68"),_0x17C00);executeAction(charIDToTypeID("\x73\x65\x74\x64"),_0x17822,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushBristles(_0x1619E){try{var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.brush.density._value= _0x1619E;var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID("\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C"));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushLength(_0x1619E){try{var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.brush.length._value= _0x1619E;var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID("\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C"));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushThickness(_0x1619E){try{var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.brush.thickness._value= _0x1619E;var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID("\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C"));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBrushStiffness(_0x1619E){try{var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.brush.stiffness._value= _0x1619E;var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID("\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C"));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function getHumanizerCurrentToolOptions(_0x1619E){var _0x16AA4=null;try{_0x16AA4= getCurrentToolHmObj().currentToolOptions}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x16AA4}function setHuminizerCurrentToolOptions(_0x171F2,_0x16AA4){try{var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID(_0x171F2));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psUpdateTolerance(_0x164A0){var _0x165EA=0;try{var _0x17704=getCurrentTool();var _0x16600=50;var _0x16D38=GetCurrentTool();var _0x17864="\x4D\x72\x71\x46";switch(_0x17704){case '\x6D\x61\x67\x69\x63\x57\x61\x6E\x64\x54\x6F\x6F\x6C':_0x17864= "\x57\x6E\x64\x54";_0x16600= _0x16D38.currentToolOptions[_0x17864];break;case '\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C':_0x17864= "\x41\x48\x42\x74";_0x16600= _0x16D38.currentToolOptions[_0x17864];break;case '\x6D\x61\x67\x69\x63\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C':;case '\x62\x75\x63\x6B\x65\x74\x54\x6F\x6F\x6C':_0x17864= "\x42\x63\x6B\x54";_0x16600= _0x16D38.currentToolOptions[_0x17864];break;case '\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C':;case '\x63\x6F\x6C\x6F\x72\x52\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C':_0x17864= "\x54\x6C\x72\x6E";_0x16600= _0x16D38.currentToolOptions.tolerance;break};_0x165EA= fitBetweenMinMax(_0x16600+ _0x164A0,1,100);var _0x173EC= new ActionReference();_0x173EC.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x173EC.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x168EC=executeActionGet(_0x173EC);var _0x17838=_0x168EC.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x1784E=_0x168EC.getEnumerationType(stringIDToTypeID("\x74\x6F\x6F\x6C"));var _0x17822= new ActionDescriptor();_0x173EC=  new ActionReference();_0x173EC.putClass(_0x1784E);_0x17822.putReference(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x173EC);if(_0x165EA!= undefined){_0x17838.putInteger(charIDToTypeID(_0x17864),_0x165EA)};_0x17822.putObject(charIDToTypeID("\x54\x20\x20\x20"),charIDToTypeID("\x4F\x72\x64\x6E"),_0x17838);executeAction(charIDToTypeID("\x73\x65\x74\x64"),_0x17822,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateFeather(_0x164A0){var _0x165EA=0;try{var _0x16A62=psGetCurrentToolFeather();var _0x16600=_0x16A62.current;var _0x17864=_0x16A62.toolKey;_0x165EA= fitBetweenMinMax(_0x16600+ _0x164A0,0,1000);var _0x173EC= new ActionReference();_0x173EC.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x173EC.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x168EC=executeActionGet(_0x173EC);var _0x17838=_0x168EC.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x1784E=_0x168EC.getEnumerationType(stringIDToTypeID("\x74\x6F\x6F\x6C"));var _0x17822= new ActionDescriptor();_0x173EC=  new ActionReference();_0x173EC.putClass(_0x1784E);_0x17822.putReference(charIDToTypeID("\x6E\x75\x6C\x6C"),_0x173EC);if(_0x165EA!= undefined){_0x17838.putUnitDouble(charIDToTypeID(_0x17864),charIDToTypeID("\x23\x50\x78\x6C"),_0x165EA)};_0x17822.putObject(charIDToTypeID("\x54\x20\x20\x20"),charIDToTypeID("\x4F\x72\x64\x6E"),_0x17838);executeAction(charIDToTypeID("\x73\x65\x74\x64"),_0x17822,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psGetCurrentToolFeather(){var _0x1615C={};try{_0x1615C.current= 50;_0x1615C.toolKey= "\x4D\x72\x71\x46";var _0x17704=getCurrentTool();var _0x16D38=GetCurrentTool();switch(_0x17704){case '\x6D\x61\x72\x71\x75\x65\x65\x52\x65\x63\x74\x54\x6F\x6F\x6C':;case '\x6D\x61\x72\x71\x75\x65\x65\x45\x6C\x6C\x69\x70\x54\x6F\x6F\x6C':;case '\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x52\x6F\x77\x54\x6F\x6F\x6C':;case '\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x43\x6F\x6C\x75\x6D\x6E\x54\x6F\x6F\x6C':_0x1615C.toolKey= "\x4D\x72\x71\x46";_0x1615C.current= _0x16D38.currentToolOptions.MrqF.value;break;case '\x6C\x61\x73\x73\x6F\x54\x6F\x6F\x6C':;case '\x70\x6F\x6C\x79\x53\x65\x6C\x54\x6F\x6F\x6C':;case '\x6D\x61\x67\x6E\x65\x74\x69\x63\x4C\x61\x73\x73\x6F\x54\x6F\x6F\x6C':_0x1615C.toolKey= "\x44\x72\x77\x52";_0x1615C.current= _0x16D38.currentToolOptions.DrwR.value;break}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function psUpdateMagneticLassoWidth(_0x164A0){var _0x165EA=0;try{var _0x16600=50;var _0x16D38=GetCurrentTool();_0x16600= _0x16D38.currentToolOptions.MgWd;_0x165EA= fitBetweenMinMax(_0x16600+ _0x164A0,1,256);var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.$MgWd= _0x165EA;psSetMagneticLassoLevelOneProperty(_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateMagneticLassoContrast(_0x164A0){var _0x165EA=0;try{var _0x16600=psGetCurrentToolOptions().MgEd;_0x165EA= fitBetweenMinMax(_0x16600+ _0x164A0,1,100);var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.$MgEd= _0x165EA;psSetMagneticLassoLevelOneProperty(_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateMagneticLassoFrequency(_0x164A0){var _0x165EA=0;var _0x1787A=0;try{var _0x16600=psGetCurrentToolOptions().MgCl;_0x165EA= fitBetweenMinMax(_0x16600- _0x164A0,5,40);var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.$MgCl= _0x165EA;_0x1787A= Math.floor((100/ 35)* (40- _0x165EA));psSetMagneticLassoLevelOneProperty(_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1787A}function psSetMagneticLassoLevelOneProperty(_0x16AA4){try{var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID("\x6D\x61\x67\x6E\x65\x74\x69\x63\x4C\x61\x73\x73\x6F\x54\x6F\x6F\x6C"));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function setAppBrushParameters(_0x169DE,_0x169C8){try{var _0x1678C= new ActionDescriptor();var _0x1792A= new ActionDescriptor();var _0x167B8= new ActionReference();_0x167B8.putEnumerated(charIDToTypeID('\x42\x72\x73\x68'),charIDToTypeID('\x4F\x72\x64\x6E'),charIDToTypeID('\x54\x72\x67\x74'));_0x1678C.putReference(charIDToTypeID('\x6E\x75\x6C\x6C'),_0x167B8);_0x1792A.putUnitDouble(charIDToTypeID('\x44\x6D\x74\x72'),charIDToTypeID('\x23\x50\x78\x6C'),_0x169DE);_0x1792A.putUnitDouble(charIDToTypeID('\x48\x72\x64\x6E'),charIDToTypeID('\x23\x50\x72\x63'),_0x169C8);_0x1678C.putObject(charIDToTypeID('\x54\x20\x20\x20'),charIDToTypeID('\x42\x72\x73\x68'),_0x1792A);executeAction(charIDToTypeID('\x73\x65\x74\x64'),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setMasterAppBrushParameters(_0x169DE){try{var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17DB8= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17DE4= new ActionReference();var _0x17998=charIDToTypeID("\x42\x72\x73\x68");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17DE4.putEnumerated(_0x17998,_0x1749C,_0x17AB6);_0x17DB8.putReference(_0x15FA4,_0x17DE4);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x16104= new ActionDescriptor();var _0x17DCE=stringIDToTypeID("\x6D\x61\x73\x74\x65\x72\x44\x69\x61\x6D\x65\x74\x65\x72");var _0x17A48=charIDToTypeID("\x23\x50\x78\x6C");_0x16104.putUnitDouble(_0x17DCE,_0x17A48,_0x169DE);var _0x17998=charIDToTypeID("\x42\x72\x73\x68");_0x17DB8.putObject(_0x17AA0,_0x17998,_0x16104);executeAction(_0x17A74,_0x17DB8,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function setBlendParameters(_0x169F4){try{moveHistoryState(psStrBlnCng);var _0x1742E=createLogiHistoryName(psStrBlnCng);var _0x17AE2="\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x53\x75\x62\x28\x27"+ _0x169F4+ "\x27\x29";app.activeDocument.suspendHistory(_0x1742E,_0x17AE2)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);return '\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x3A\x45\x52\x52\x2C'+ e.message};return '\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x3A\x4F\x4B'}function setBlendParametersSub(_0x169F4){try{var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x17AF8= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x17B66= new ActionReference();var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");var _0x1749C=charIDToTypeID("\x4F\x72\x64\x6E");var _0x17AB6=charIDToTypeID("\x54\x72\x67\x74");_0x17B66.putEnumerated(_0x178BC,_0x1749C,_0x17AB6);_0x17AF8.putReference(_0x15FA4,_0x17B66);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x17B0E= new ActionDescriptor();var _0x17B50=charIDToTypeID("\x4D\x64\x20\x20");var _0x17B3A=charIDToTypeID("\x42\x6C\x6E\x4D");var _0x17B24;if(_0x169F4.length== 4){idBlend= charIDToTypeID(_0x169F4)}else {idBlend= stringIDToTypeID(_0x169F4)};_0x17B0E.putEnumerated(_0x17B50,_0x17B3A,idBlend);var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");_0x17AF8.putObject(_0x17AA0,_0x178BC,_0x17B0E);executeAction(_0x17A74,_0x17AF8,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);return '\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x3A\x45\x52\x52\x2C'+ e.message};return '\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x3A\x4F\x4B'}function unlockBackgroundLayer(){try{var _0x17A74=charIDToTypeID("\x73\x65\x74\x64");var _0x181C2= new ActionDescriptor();var _0x15FA4=charIDToTypeID("\x6E\x75\x6C\x6C");var _0x1821A= new ActionReference();var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");var _0x181EE=charIDToTypeID("\x42\x63\x6B\x67");_0x1821A.putProperty(_0x178BC,_0x181EE);_0x181C2.putReference(_0x15FA4,_0x1821A);var _0x17AA0=charIDToTypeID("\x54\x20\x20\x20");var _0x181D8= new ActionDescriptor();var _0x17D8C=charIDToTypeID("\x4F\x70\x63\x74");var _0x17A32=charIDToTypeID("\x23\x50\x72\x63");_0x181D8.putUnitDouble(_0x17D8C,_0x17A32,100.000000);var _0x17B50=charIDToTypeID("\x4D\x64\x20\x20");var _0x17B3A=charIDToTypeID("\x42\x6C\x6E\x4D");var _0x18204=charIDToTypeID("\x4E\x72\x6D\x6C");_0x181D8.putEnumerated(_0x17B50,_0x17B3A,_0x18204);var _0x178BC=charIDToTypeID("\x4C\x79\x72\x20");_0x181C2.putObject(_0x17AA0,_0x178BC,_0x181D8);var _0x178D2=charIDToTypeID("\x4C\x79\x72\x49");_0x181C2.putInteger(_0x178D2,2);executeAction(_0x17A74,_0x181C2,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);return '\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x3A\x45\x52\x52\x2C'+ e.message};return '\x73\x65\x74\x42\x6C\x65\x6E\x64\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x3A\x4F\x4B'}function psDscToObj(_0x176AC,_0x16658,_0x1666E){var _0x1669A=_0x16658.count;for(var _0x15E44=0;_0x15E44< _0x1669A;_0x15E44++){var _0x17654=_0x16658.getKey(_0x15E44);var _0x1636C=_0x16658.getType(_0x17654);var _0x176C2=app.typeIDToStringID(_0x17654);if(_0x176C2.length== 0){_0x176C2= app.typeIDToCharID(_0x17654)};switch(_0x1636C){case DescValueType.BOOLEANTYPE:_0x176AC[_0x176C2]= _0x16658.getBoolean(_0x17654);break;case DescValueType.STRINGTYPE:_0x176AC[_0x176C2]= _0x16658.getString(_0x17654);break;case DescValueType.DOUBLETYPE:_0x176AC[_0x176C2]= _0x16658.getDouble(_0x17654);break;case DescValueType.INTEGERTYPE:_0x176AC[_0x176C2]= _0x16658.getInteger(_0x17654);break;case DescValueType.LARGEINTEGERTYPE:_0x176AC[_0x176C2]= _0x16658.getLargeInteger(_0x17654);break;case DescValueType.OBJECTTYPE:var _0x17680=_0x16658.getObjectType(_0x17654);var _0x17696=_0x16658.getObjectValue(_0x17654);_0x176AC[_0x176C2]=  new Object();psDscToObj(_0x176AC[_0x176C2],_0x17696,_0x1666E);break;case DescValueType.UNITDOUBLE:var _0x17680=_0x16658.getUnitDoubleType(_0x17654);var _0x17696=_0x16658.getUnitDoubleValue(_0x17654);_0x176AC[_0x176C2]=  new Object();_0x176AC[_0x176C2].type= typeIDToCharID(_0x17680);_0x176AC[_0x176C2].typeString= typeIDToStringID(_0x17680);_0x176AC[_0x176C2].value= _0x17696;break;case DescValueType.ENUMERATEDTYPE:var _0x17680=_0x16658.getEnumerationType(_0x17654);var _0x17696=_0x16658.getEnumerationValue(_0x17654);_0x176AC[_0x176C2]=  new Object();_0x176AC[_0x176C2].type= typeIDToCharID(_0x17680);_0x176AC[_0x176C2].typeString= typeIDToStringID(_0x17680);_0x176AC[_0x176C2].value= typeIDToCharID(_0x17696);_0x176AC[_0x176C2].valueString= typeIDToStringID(_0x17696);break;case DescValueType.CLASSTYPE:_0x176AC[_0x176C2]= _0x16658.getClass(_0x17654);break;case DescValueType.ALIASTYPE:_0x176AC[_0x176C2]= _0x16658.getPath(_0x17654);break;case DescValueType.RAWTYPE:var _0x176EE=_0x16658.getData(_0x17654);_0x176AC[_0x176C2]=  new Array();for(var _0x176D8=0;_0x176D8< _0x176EE.length;_0x176D8++){_0x176AC[_0x176C2][_0x176D8]= _0x176EE.charCodeAt(_0x176D8)};break;case DescValueType.REFERENCETYPE:var _0x167B8=_0x16658.getReference(_0x17654);_0x176AC[_0x176C2]=  new Object();psRefToObj(_0x176AC[_0x176C2],_0x167B8,_0x1666E);break;case DescValueType.LISTTYPE:var _0x1766A=_0x16658.getList(_0x17654);_0x176AC[_0x176C2]=  new Array();psLstToObj(_0x176AC[_0x176C2],_0x1766A,_0x1666E);break;default:debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x74\x3D"+ _0x1636C)}};if(undefined!= _0x1666E){_0x176AC= _0x1666E(_0x176AC)}}function psLstToObj(_0x16D4E,_0x1669A,_0x1666E){var _0x16CF6=_0x1669A.count;for(var _0x15E44=0;_0x15E44< _0x16CF6;_0x15E44++){var _0x1636C=_0x1669A.getType(_0x15E44);switch(_0x1636C){case DescValueType.BOOLEANTYPE:_0x16D4E.push(_0x1669A.getBoolean(_0x15E44));break;case DescValueType.STRINGTYPE:_0x16D4E.push(_0x1669A.getString(_0x15E44));break;case DescValueType.DOUBLETYPE:_0x16D4E.push(_0x1669A.getDouble(_0x15E44));break;case DescValueType.INTEGERTYPE:_0x16D4E.push(_0x1669A.getInteger(_0x15E44));break;case DescValueType.LARGEINTEGERTYPE:_0x16D4E.push(_0x1669A.getLargeInteger(_0x15E44));break;case DescValueType.OBJECTTYPE:var _0x17680=_0x1669A.getObjectType(_0x15E44);var _0x17696=_0x1669A.getObjectValue(_0x15E44);var _0x1771A= new Object();_0x16D4E.push(_0x1771A);psDscToObj(_0x1771A,_0x17696,_0x1666E);break;case DescValueType.UNITDOUBLE:var _0x17680=_0x1669A.getUnitDoubleType(_0x15E44);var _0x17696=_0x1669A.getUnitDoubleValue(_0x15E44);var _0x1771A= new Object();_0x16D4E.push(_0x1771A);_0x1771A.type= typeIDToCharID(_0x17680);_0x1771A.typeString= typeIDToStringID(_0x17680);_0x1771A.value= _0x17696;break;case DescValueType.ENUMERATEDTYPE:var _0x17680=_0x1669A.getEnumerationType(_0x15E44);var _0x17696=_0x1669A.getEnumerationValue(_0x15E44);var _0x1771A= new Object();_0x16D4E.push(_0x1771A);_0x1771A.type= typeIDToCharID(_0x17680);_0x1771A.typeString= typeIDToStringID(_0x17680);_0x1771A.value= typeIDToCharID(_0x17696);_0x1771A.valueString= typeIDToStringID(_0x17696);break;case DescValueType.CLASSTYPE:_0x16D4E.push(_0x1669A.getClass(_0x15E44));break;case DescValueType.ALIASTYPE:_0x16D4E.push(_0x1669A.getPath(_0x15E44));break;case DescValueType.RAWTYPE:var _0x176EE=_0x1669A.getData(_0x15E44);tempArray=  new Array();for(var _0x176D8=0;_0x176D8< _0x176EE.length;_0x176D8++){tempArray[_0x176D8]= _0x176EE.charCodeAt(_0x176D8)};_0x16D4E.push(tempArray);break;case DescValueType.REFERENCETYPE:var _0x167B8=_0x1669A.getReference(_0x15E44);var _0x1771A= new Object();_0x16D4E.push(_0x1771A);psRefToObj(_0x1771A,_0x167B8,_0x1666E);break;case DescValueType.LISTTYPE:var _0x1766A=_0x1669A.getList(_0x15E44);var _0x1771A= new Object();_0x16D4E.push(_0x1771A);psLstToObj(_0x1771A,_0x1766A,_0x1666E);break;default:debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x74\x3D"+ _0x1636C)}};if(undefined!= _0x1666E){o= _0x1666E(o)}}function psRefToObj(_0x176AC,_0x1750A,_0x1666E){var _0x17730=_0x1750A;while(_0x1750A!= null){var _0x1775C=_0x1750A.getForm();var _0x17746=_0x1750A.getDesiredClass();var _0x176C2=app.typeIDToStringID(_0x17746);if(_0x176C2.length== 0){_0x176C2= app.typeIDToCharID(_0x17746)};switch(_0x1775C){case ReferenceFormType.NAME:_0x176AC["\x6E\x61\x6D\x65"]= _0x1750A.getName();break;case ReferenceFormType.INDEX:_0x176AC["\x69\x6E\x64\x65\x78"]= _0x1750A.getIndex();break;case ReferenceFormType.IDENTIFIER:_0x176AC["\x69\x6E\x64\x65\x6E\x74\x69\x66\x69\x65\x72"]= _0x1750A.getIdentifier();break;case ReferenceFormType.OFFSET:_0x176AC["\x6F\x66\x66\x73\x65\x74"]= _0x1750A.getOffset();break;case ReferenceFormType.ENUMERATED:var _0x17680=_0x1750A.getEnumeratedType();var _0x17696=_0x1750A.getEnumeratedValue();_0x176AC["\x65\x6E\x75\x6D\x65\x72\x61\x74\x65\x64"]=  new Object();_0x176AC["\x65\x6E\x75\x6D\x65\x72\x61\x74\x65\x64"].type= typeIDToCharID(_0x17680);_0x176AC["\x65\x6E\x75\x6D\x65\x72\x61\x74\x65\x64"].typeString= typeIDToStringID(_0x17680);_0x176AC["\x65\x6E\x75\x6D\x65\x72\x61\x74\x65\x64"].value= typeIDToCharID(_0x17696);_0x176AC["\x65\x6E\x75\x6D\x65\x72\x61\x74\x65\x64"].valueString= typeIDToStringID(_0x17696);break;case ReferenceFormType.PROPERTY:_0x176AC["\x70\x72\x6F\x70\x65\x72\x74\x79"]= app.typeIDToStringID(_0x1750A.getProperty());if(_0x176AC["\x70\x72\x6F\x70\x65\x72\x74\x79"].length== 0){_0x176AC["\x70\x72\x6F\x70\x65\x72\x74\x79"]= app.typeIDToCharID(_0x1750A.getProperty())};break;case ReferenceFormType.CLASSTYPE:_0x176AC["\x63\x6C\x61\x73\x73"]= _0x17746;break;default:debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x66\x46\x6F\x72\x6D\x20\x3D\x20"+ _0x1775C)};_0x1750A= _0x1750A.getContainer();try{_0x1750A.getDesiredClass()}catch(e){_0x1750A= null}};if(undefined!= _0x1666E){_0x176AC= _0x1666E(_0x176AC)}}function psUpdateBrushOpacity(_0x1619E){var _0x165EA=100;try{var _0x16600=psGetCurrentToolOptions().opacity;_0x165EA= Math.round(_0x16600+ _0x1619E);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);psSetBrushParameter("\x6F\x70\x61\x63\x69\x74\x79",_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushFlow(_0x1619E){var _0x165EA=100;try{var _0x16600=psGetCurrentToolOptions().flow;_0x165EA= Math.round(_0x16600+ _0x1619E);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);psSetBrushParameter("\x66\x6C\x6F\x77",_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushExposure(_0x1619E){var _0x165EA=100;try{var _0x16600=psGetCurrentToolOptions().exposure;_0x165EA= Math.round(_0x16600+ _0x1619E);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);psSetBrushParameter("\x65\x78\x70\x6F\x73\x75\x72\x65",_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushPressure(_0x1619E){var _0x165EA=100;try{var _0x16600=psGetCurrentToolOptions().pressure;_0x165EA= Math.round(_0x16600+ _0x1619E);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);psSetBrushParameter("\x70\x72\x65\x73\x73\x75\x72\x65",_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushSmooth(_0x1619E){var _0x1615C=100;try{var _0x177F6=Number(app.version.split('\x2E')[0]);if(_0x177F6< 19){_0x1615C= NotSupportedValue}else {var _0x16D38=GetCurrentTool();if(!_0x16D38.currentToolOptions.smoothing){_0x1615C= NotSupportedValue}else {var _0x16600=_0x16D38.currentToolOptions.smooth;_0x1615C= Math.round(_0x16600+ _0x1619E);_0x1615C= fitBetweenMinMax(_0x1615C,0,100);psSetBrushParameter("\x73\x6D\x6F\x6F\x74\x68",_0x1615C)}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function psUpdateBrushAngle(_0x164A0){var _0x165EA=0;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.angle.value;_0x165EA= Math.round(_0x16600+ _0x164A0);while((_0x165EA<  -179)|| (180< _0x165EA)){if(_0x165EA<  -179){_0x165EA+= 360};if(180< _0x165EA){_0x165EA-= 360}};var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.angle._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushRoundness(_0x164A0){var _0x165EA=100;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.roundness.value;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,0,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.roundness._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushSpacing(_0x164A0){var _0x165EA=10;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.spacing.value;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,1000);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.spacing._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushBristles(_0x164A0){var _0x165EA=10;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.density.value;_0x165EA= Math.round(100* _0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.density._value= (_0x165EA/ 100);setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushLength(_0x164A0){var _0x165EA=10;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.length.value;_0x165EA= Math.round(100* _0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,25,500);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.length._value= (_0x165EA/ 100);setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushThickness(_0x164A0){var _0x165EA=10;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.thickness.value;_0x165EA= Math.round(100* _0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,200);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.thickness._value= (_0x165EA/ 100);setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushStiffness(_0x164A0){var _0x165EA=10;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.stiffness.value;_0x165EA= Math.round(100* _0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.stiffness._value= (_0x165EA/ 100);setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushDTipsHardness(_0x164A0){var _0x165EA=1;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.dtipsHardness.value;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.dtipsHardness._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushDTipsDistortion(_0x164A0){var _0x165EA=1;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.dtipsLengthRatio.value;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,0,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.dtipsLengthRatio._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushDTipsGranularity(_0x164A0){var _0x165EA=1;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.dtipsAirbrushGranularity.value;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,0,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.dtipsAirbrushGranularity._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushDTipsSpatterSize(_0x164A0){var _0x165EA=1;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.dtipsAirbrushSplatSize.value;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.dtipsAirbrushSplatSize._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushDTipsSpatterAmount(_0x164A0){var _0x165EA=1;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.dtipsAirbrushSplatCount;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,200);var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.dtipsAirbrushSplatCount= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushDTipsSoftness(_0x164A0){var _0x165EA=1;try{var _0x16D38=GetCurrentTool();var _0x16600=_0x16D38.currentToolOptions.brush.dtipsHardness.value;_0x16600= 100- _0x16600;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,0,100);_0x165EA= 100- _0x165EA;var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.dtipsHardness._value= _0x165EA;setHuminizerCurrentToolOptions(_0x16D38.tool.typeString,_0x16AA4)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateEyedropperSample(_0x164A0){var _0x165EA=1;var _0x1615C="\x31\x20\x78\x20\x31";try{var _0x16600=psGetCurrentToolOptions().eyeDropperSample;if(_0x164A0> 0){switch(_0x16600){case 0:_0x165EA= 1;break;case 1:_0x165EA= 2;break;case 2:_0x165EA= 5;break;case 5:_0x165EA= 15;break;case 15:_0x165EA= 25;break;case 25:_0x165EA= 50;break;case 50:_0x165EA= 50;break;default:break}};if(_0x164A0< 0){switch(_0x16600){case 0:_0x165EA= 0;break;case 1:_0x165EA= 0;break;case 2:_0x165EA= 1;break;case 5:_0x165EA= 2;break;case 15:_0x165EA= 5;break;case 25:_0x165EA= 15;break;case 50:_0x165EA= 25;break;default:break}};switch(_0x165EA){case 0:_0x1615C= "\x31\x20\x78\x20\x31";break;case 1:_0x1615C= "\x33\x20\x78\x20\x33";break;case 2:_0x1615C= "\x35\x20\x78\x20\x35";break;case 5:_0x1615C= "\x31\x31\x20\x78\x20\x31\x31";break;case 15:_0x1615C= "\x33\x31\x20\x78\x20\x33\x31";break;case 25:_0x1615C= "\x35\x31\x20\x78\x20\x35\x31";break;case 50:_0x1615C= "\x31\x30\x31\x20\x78\x20\x31\x30\x31";break;default:break};var _0x1678C={"\x6E\x75\x6C\x6C":{"\x5F\x72\x65\x66":"\x63\x6F\x6C\x6F\x72\x53\x61\x6D\x70\x6C\x65\x72\x54\x6F\x6F\x6C"},"\x74\x6F":{"\x5F\x6F\x62\x6A":"\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73","\x5F\x76\x61\x6C\x75\x65":{"\x65\x79\x65\x44\x72\x6F\x70\x70\x65\x72\x53\x61\x6D\x70\x6C\x65":_0x165EA}}};var _0x1780C=Humanizer.objectToDescriptor(_0x1678C)[1];executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1780C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function psUpdateEyedropperSampleSheet(_0x164A0){var _0x165EA=1;try{var _0x16600=psGetCurrentToolOptions().eyeDropperSampleSheet;if(_0x164A0> 0){switch(_0x16600){case 1:_0x165EA= 3;break;case 3:_0x165EA= 0;break;case 0:_0x165EA= 6;break;case 6:_0x165EA= 8;break;case 8:_0x165EA= 8;break;default:break}};if(_0x164A0< 0){switch(_0x16600){case 1:_0x165EA= 1;break;case 3:_0x165EA= 1;break;case 0:_0x165EA= 3;break;case 6:_0x165EA= 0;break;case 8:_0x165EA= 6;break;default:break}};var _0x1678C={"\x6E\x75\x6C\x6C":{"\x5F\x72\x65\x66":"\x65\x79\x65\x64\x72\x6F\x70\x70\x65\x72\x54\x6F\x6F\x6C"},"\x74\x6F":{"\x5F\x6F\x62\x6A":"\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73","\x5F\x76\x61\x6C\x75\x65":{"\x65\x79\x65\x44\x72\x6F\x70\x70\x65\x72\x53\x61\x6D\x70\x6C\x65\x53\x68\x65\x65\x74":_0x165EA}}};var _0x1780C=Humanizer.objectToDescriptor(_0x1678C)[1];executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1780C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateRedEyeRadius(_0x164A0){var _0x165EA=1;try{var _0x16600=psGetCurrentToolOptions().radius;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);setRedEyeRadius(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function setRedEyeRadius(_0x1619E){try{var _0x16AA4=getCurrentToolHmObj().currentToolOptions;_0x16AA4.radius= _0x1619E;var _0x1750A= new ActionReference();_0x1750A.putClass(stringIDToTypeID("\x72\x65\x64\x45\x79\x65\x54\x6F\x6F\x6C"));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1750A);_0x1678C.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),Humanizer.objectToDescriptor(_0x16AA4)[1]);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1678C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psUpdateRedEyeDarken(_0x164A0){var _0x165EA=1;try{var _0x16600=psGetCurrentToolOptions().darken;_0x165EA= Math.round(_0x16600+ _0x164A0);_0x165EA= fitBetweenMinMax(_0x165EA,1,100);setRedEyeDarken(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function setRedEyeDarken(_0x165EA){try{var _0x1678C={"\x6E\x75\x6C\x6C":{"\x5F\x72\x65\x66":"\x72\x65\x64\x45\x79\x65\x54\x6F\x6F\x6C"},"\x74\x6F":{"\x5F\x6F\x62\x6A":"\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73","\x5F\x76\x61\x6C\x75\x65":{"\x64\x61\x72\x6B\x65\x6E":_0x165EA}}};var _0x1780C=Humanizer.objectToDescriptor(_0x1678C)[1];executeAction(stringIDToTypeID("\x73\x65\x74"),_0x1780C,DialogModes.NO)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psSetBrushParameter(_0x177E0,_0x1619E){try{if(_0x177E0== "\x6F\x70\x61\x63\x69\x74\x79"|| _0x177E0== "\x66\x6C\x6F\x77"|| _0x177E0== "\x65\x78\x70\x6F\x73\x75\x72\x65"|| _0x177E0== "\x70\x72\x65\x73\x73\x75\x72\x65"|| _0x177E0== "\x73\x6D\x6F\x6F\x74\x68"){var _0x16CB4= new ActionReference();_0x16CB4.putProperty(charIDToTypeID("\x50\x72\x70\x72"),stringIDToTypeID("\x74\x6F\x6F\x6C"));_0x16CB4.putEnumerated(charIDToTypeID("\x63\x61\x70\x70"),charIDToTypeID("\x4F\x72\x64\x6E"),charIDToTypeID("\x54\x72\x67\x74"));var _0x17788=executeActionGet(_0x16CB4);var _0x1779E=_0x17788.getObjectValue(stringIDToTypeID("\x63\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x73"));var _0x177CA=_0x17788.getEnumerationType(stringIDToTypeID("\x74\x6F\x6F\x6C"));var _0x17772=_0x1779E.getObjectValue(stringIDToTypeID("\x62\x72\x75\x73\x68"));if(_0x177E0== "\x73\x6D\x6F\x6F\x74\x68"){_0x1779E.putInteger(stringIDToTypeID("\x73\x6D\x6F\x6F\x74\x68"),_0x1619E);_0x1779E.putDouble(stringIDToTypeID("\x73\x6D\x6F\x6F\x74\x68\x69\x6E\x67\x56\x61\x6C\x75\x65"),1)}else {if(_0x1619E!= undefined){_0x1779E.putInteger(stringIDToTypeID(_0x177E0),_0x1619E)}};_0x1779E.putObject(stringIDToTypeID("\x62\x72\x75\x73\x68"),stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x17772);var _0x16CCA= new ActionReference();_0x16CCA.putClass(_0x177CA);var _0x177B4= new ActionDescriptor();_0x177B4.putReference(stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x16CCA);_0x177B4.putObject(stringIDToTypeID("\x74\x6F"),stringIDToTypeID("\x6E\x75\x6C\x6C"),_0x1779E);executeAction(stringIDToTypeID("\x73\x65\x74"),_0x177B4,DialogModes.NO)}else {debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ _0x177E0)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function psUpdateTabNavigation(_0x164A0){var _0x165EA=0;try{var _0x166F2=getDocsLen()- 1;var _0x16600=getActiveDocIndex();_0x165EA= _0x16600+ _0x164A0;_0x165EA= fitLoopMinMax(_0x165EA,0,_0x166F2);setActiveDocIndex(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateMouseZoom(_0x164A0){try{if(_0x164A0< 0){psZoomActualPixel()};if(0< _0x164A0){psZoomFitToScreen()}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return ""}function psZoomFitToScreen(){try{if(0< getDocsLen()){runMenuItem(app.charIDToTypeID("\x46\x74\x4F\x6E"))}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psZoomActualPixel(){try{if(0< getDocsLen()){runMenuItem(app.charIDToTypeID("\x41\x63\x74\x50"))}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psZoomOut(){try{if(0< getDocsLen()){runMenuItem(app.charIDToTypeID("\x5A\x6D\x4F\x74"))}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psZoomIn(){try{if(0< getDocsLen()){runMenuItem(app.charIDToTypeID("\x5A\x6D\x49\x6E"))}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function psUpdateMouseBrushSize(_0x164A0){try{var _0x16600=getAppPencilParametersSize();var _0x17520=1;var _0x165EA=_0x16600;if(0< _0x164A0){if(_0x16600< 10){_0x165EA= nextStepUp(_0x16600,1)};if(10<= _0x16600&& _0x16600< 50){_0x165EA= nextStepUp(_0x16600,5)};if(50<= _0x16600&& _0x16600< 100){_0x165EA= nextStepUp(_0x16600,10)};if(100<= _0x16600&& _0x16600< 200){_0x165EA= nextStepUp(_0x16600,25)};if(200<= _0x16600&& _0x16600< 300){_0x165EA= nextStepUp(_0x16600,50)};if(300<= _0x16600){_0x165EA= nextStepUp(_0x16600,100)}};if(_0x164A0< 0){if(_0x16600<= 10){_0x165EA= nextStepDown(_0x16600,1)};if(10< _0x16600&& _0x16600<= 50){_0x165EA= nextStepDown(_0x16600,5)};if(50< _0x16600&& _0x16600<= 100){_0x165EA= nextStepDown(_0x16600,10)};if(100< _0x16600&& _0x16600<= 200){_0x165EA= nextStepDown(_0x16600,25)};if(200< _0x16600&& _0x16600<= 300){_0x165EA= nextStepDown(_0x16600,50)};if(300< _0x16600){_0x165EA= nextStepDown(_0x16600,100)}};setMasterAppBrushParameters(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return ""}function psUpdateBrushSize(_0x164A0){try{var _0x16600=getAppPencilParametersSize();var _0x165EA=fitBetweenMinMax(_0x16600+ _0x164A0,1,5000);setMasterAppBrushParameters(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function psUpdateBrushHardness(_0x164A0){try{var _0x16600=getAppPencilParametersHardness();if((0<= _0x16600)&& (_0x16600<= 100)){var _0x165EA=fitBetweenMinMax(_0x16600+ _0x164A0,0,100);setBrushHardness(_0x165EA)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return ""}function getDocsLen(){var _0x1615C=0;try{_0x1615C= app.documents.length}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function getActiveDocIndex(){var _0x1615C=0;try{for(var _0x15E44=0;_0x15E44< app.documents.length;_0x15E44++){if(app.activeDocument== app.documents[_0x15E44]){_0x1615C= _0x15E44;break}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function setActiveDocIndex(_0x163C4){try{if((0<= _0x163C4)&& (_0x163C4< app.documents.length)){app.activeDocument= app.documents[_0x163C4]}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e);debugAlert("\x69\x6E\x64\x65\x78\x20\x3D\x20\x20"+ _0x163C4)}}var psToolsList2018=["\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x44\x72\x6F\x70\x54\x6F\x6F\x6C","\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x61\x64\x64\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x61\x72\x74\x62\x6F\x61\x72\x64\x54\x6F\x6F\x6C","\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x62\x6C\x75\x72\x54\x6F\x6F\x6C","\x62\x75\x63\x6B\x65\x74\x54\x6F\x6F\x6C","\x62\x75\x72\x6E\x49\x6E\x54\x6F\x6F\x6C","\x63\x6C\x6F\x6E\x65\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x52\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x53\x61\x6D\x70\x6C\x65\x72\x54\x6F\x6F\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x63\x6F\x75\x6E\x74\x54\x6F\x6F\x6C","\x63\x72\x6F\x70\x54\x6F\x6F\x6C","\x63\x75\x72\x76\x61\x74\x75\x72\x65\x50\x65\x6E\x54\x6F\x6F\x6C","\x63\x75\x73\x74\x6F\x6D\x53\x68\x61\x70\x65\x54\x6F\x6F\x6C","\x64\x65\x6C\x65\x74\x65\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x64\x69\x72\x65\x63\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x64\x6F\x64\x67\x65\x54\x6F\x6F\x6C","\x65\x6C\x6C\x69\x70\x73\x65\x54\x6F\x6F\x6C","\x65\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x65\x79\x65\x64\x72\x6F\x70\x70\x65\x72\x54\x6F\x6F\x6C","\x66\x72\x65\x65\x66\x6F\x72\x6D\x50\x65\x6E\x54\x6F\x6F\x6C","\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x6F\x6F\x6C","\x68\x61\x6E\x64\x54\x6F\x6F\x6C","\x68\x69\x73\x74\x6F\x72\x79\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x6C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6C\x69\x6E\x65\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x57\x61\x6E\x64\x54\x6F\x6F\x6C","\x6D\x61\x67\x6E\x65\x74\x69\x63\x4C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x45\x6C\x6C\x69\x70\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x52\x65\x63\x74\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x43\x6F\x6C\x75\x6D\x6E\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x52\x6F\x77\x54\x6F\x6F\x6C","\x6D\x6F\x76\x65\x54\x6F\x6F\x6C","\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x74\x63\x68\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x70\x61\x74\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x70\x61\x74\x74\x65\x72\x6E\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x65\x6E\x63\x69\x6C\x54\x6F\x6F\x6C","\x70\x65\x6E\x54\x6F\x6F\x6C","\x70\x65\x72\x73\x70\x65\x63\x74\x69\x76\x65\x43\x72\x6F\x70\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x67\x6F\x6E\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x53\x65\x6C\x54\x6F\x6F\x6C","\x71\x75\x69\x63\x6B\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x72\x65\x63\x6F\x6D\x70\x6F\x73\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x65\x64\x45\x79\x65\x54\x6F\x6F\x6C","\x72\x6F\x74\x61\x74\x65\x54\x6F\x6F\x6C","\x72\x6F\x75\x6E\x64\x65\x64\x52\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x75\x6C\x65\x72\x54\x6F\x6F\x6C","\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E\x54\x6F\x6F\x6C","\x73\x68\x61\x72\x70\x65\x6E\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x54\x6F\x6F\x6C","\x73\x6D\x75\x64\x67\x65\x54\x6F\x6F\x6C","\x73\x70\x6F\x74\x48\x65\x61\x6C\x69\x6E\x67\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x74\x65\x78\x74\x41\x6E\x6E\x6F\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x77\x65\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x7A\x6F\x6F\x6D\x54\x6F\x6F\x6C"];var psToolsList2019=["\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x44\x72\x6F\x70\x54\x6F\x6F\x6C","\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x61\x64\x64\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x61\x72\x74\x62\x6F\x61\x72\x64\x54\x6F\x6F\x6C","\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x62\x6C\x75\x72\x54\x6F\x6F\x6C","\x62\x75\x63\x6B\x65\x74\x54\x6F\x6F\x6C","\x62\x75\x72\x6E\x49\x6E\x54\x6F\x6F\x6C","\x63\x6C\x6F\x6E\x65\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x52\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x53\x61\x6D\x70\x6C\x65\x72\x54\x6F\x6F\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x63\x6F\x75\x6E\x74\x54\x6F\x6F\x6C","\x63\x72\x6F\x70\x54\x6F\x6F\x6C","\x63\x75\x72\x76\x61\x74\x75\x72\x65\x50\x65\x6E\x54\x6F\x6F\x6C","\x63\x75\x73\x74\x6F\x6D\x53\x68\x61\x70\x65\x54\x6F\x6F\x6C","\x64\x65\x6C\x65\x74\x65\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x64\x69\x72\x65\x63\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x64\x6F\x64\x67\x65\x54\x6F\x6F\x6C","\x65\x6C\x6C\x69\x70\x73\x65\x54\x6F\x6F\x6C","\x65\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x65\x79\x65\x64\x72\x6F\x70\x70\x65\x72\x54\x6F\x6F\x6C","\x66\x72\x61\x6D\x65\x64\x47\x72\x6F\x75\x70\x54\x6F\x6F\x6C","\x66\x72\x65\x65\x66\x6F\x72\x6D\x50\x65\x6E\x54\x6F\x6F\x6C","\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x6F\x6F\x6C","\x68\x61\x6E\x64\x54\x6F\x6F\x6C","\x68\x69\x73\x74\x6F\x72\x79\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x6C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6C\x69\x6E\x65\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x57\x61\x6E\x64\x54\x6F\x6F\x6C","\x6D\x61\x67\x6E\x65\x74\x69\x63\x4C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x45\x6C\x6C\x69\x70\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x52\x65\x63\x74\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x43\x6F\x6C\x75\x6D\x6E\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x52\x6F\x77\x54\x6F\x6F\x6C","\x6D\x6F\x76\x65\x54\x6F\x6F\x6C","\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x74\x63\x68\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x70\x61\x74\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x70\x61\x74\x74\x65\x72\x6E\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x65\x6E\x63\x69\x6C\x54\x6F\x6F\x6C","\x70\x65\x6E\x54\x6F\x6F\x6C","\x70\x65\x72\x73\x70\x65\x63\x74\x69\x76\x65\x43\x72\x6F\x70\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x67\x6F\x6E\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x53\x65\x6C\x54\x6F\x6F\x6C","\x71\x75\x69\x63\x6B\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x72\x65\x63\x6F\x6D\x70\x6F\x73\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x65\x64\x45\x79\x65\x54\x6F\x6F\x6C","\x72\x6F\x74\x61\x74\x65\x54\x6F\x6F\x6C","\x72\x6F\x75\x6E\x64\x65\x64\x52\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x75\x6C\x65\x72\x54\x6F\x6F\x6C","\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E\x54\x6F\x6F\x6C","\x73\x68\x61\x72\x70\x65\x6E\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x54\x6F\x6F\x6C","\x73\x6D\x75\x64\x67\x65\x54\x6F\x6F\x6C","\x73\x70\x6F\x74\x48\x65\x61\x6C\x69\x6E\x67\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x74\x65\x78\x74\x41\x6E\x6E\x6F\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x77\x65\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x7A\x6F\x6F\x6D\x54\x6F\x6F\x6C"];var psToolsList2020=["\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x44\x72\x6F\x70\x54\x6F\x6F\x6C","\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x61\x64\x64\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x61\x72\x74\x62\x6F\x61\x72\x64\x54\x6F\x6F\x6C","\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x62\x6C\x75\x72\x54\x6F\x6F\x6C","\x62\x75\x63\x6B\x65\x74\x54\x6F\x6F\x6C","\x62\x75\x72\x6E\x49\x6E\x54\x6F\x6F\x6C","\x63\x6C\x6F\x6E\x65\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x52\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x53\x61\x6D\x70\x6C\x65\x72\x54\x6F\x6F\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x63\x6F\x75\x6E\x74\x54\x6F\x6F\x6C","\x63\x72\x6F\x70\x54\x6F\x6F\x6C","\x63\x75\x72\x76\x61\x74\x75\x72\x65\x50\x65\x6E\x54\x6F\x6F\x6C","\x63\x75\x73\x74\x6F\x6D\x53\x68\x61\x70\x65\x54\x6F\x6F\x6C","\x64\x65\x6C\x65\x74\x65\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x64\x69\x72\x65\x63\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x64\x6F\x64\x67\x65\x54\x6F\x6F\x6C","\x65\x6C\x6C\x69\x70\x73\x65\x54\x6F\x6F\x6C","\x65\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x65\x79\x65\x64\x72\x6F\x70\x70\x65\x72\x54\x6F\x6F\x6C","\x66\x72\x61\x6D\x65\x64\x47\x72\x6F\x75\x70\x54\x6F\x6F\x6C","\x66\x72\x65\x65\x66\x6F\x72\x6D\x50\x65\x6E\x54\x6F\x6F\x6C","\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x6F\x6F\x6C","\x68\x61\x6E\x64\x54\x6F\x6F\x6C","\x68\x69\x73\x74\x6F\x72\x79\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x6C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6C\x69\x6E\x65\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x57\x61\x6E\x64\x54\x6F\x6F\x6C","\x6D\x61\x67\x6E\x65\x74\x69\x63\x4C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x45\x6C\x6C\x69\x70\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x52\x65\x63\x74\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x43\x6F\x6C\x75\x6D\x6E\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x52\x6F\x77\x54\x6F\x6F\x6C","\x6D\x6F\x76\x65\x54\x6F\x6F\x6C","\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x74\x63\x68\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x70\x61\x74\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x70\x61\x74\x74\x65\x72\x6E\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x65\x6E\x63\x69\x6C\x54\x6F\x6F\x6C","\x70\x65\x6E\x54\x6F\x6F\x6C","\x70\x65\x72\x73\x70\x65\x63\x74\x69\x76\x65\x43\x72\x6F\x70\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x67\x6F\x6E\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x53\x65\x6C\x54\x6F\x6F\x6C","\x71\x75\x69\x63\x6B\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x72\x65\x63\x6F\x6D\x70\x6F\x73\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x65\x64\x45\x79\x65\x54\x6F\x6F\x6C","\x72\x6F\x74\x61\x74\x65\x54\x6F\x6F\x6C","\x72\x6F\x75\x6E\x64\x65\x64\x52\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x75\x6C\x65\x72\x54\x6F\x6F\x6C","\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E\x54\x6F\x6F\x6C","\x73\x68\x61\x72\x70\x65\x6E\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x54\x6F\x6F\x6C","\x73\x6D\x75\x64\x67\x65\x54\x6F\x6F\x6C","\x73\x70\x6F\x74\x48\x65\x61\x6C\x69\x6E\x67\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x74\x65\x78\x74\x41\x6E\x6E\x6F\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x77\x65\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x7A\x6F\x6F\x6D\x54\x6F\x6F\x6C"];var psToolsList2021=["\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x44\x72\x6F\x70\x54\x6F\x6F\x6C","\x33\x44\x4D\x61\x74\x65\x72\x69\x61\x6C\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x61\x64\x64\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x61\x72\x74\x62\x6F\x61\x72\x64\x54\x6F\x6F\x6C","\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x62\x6C\x75\x72\x54\x6F\x6F\x6C","\x62\x75\x63\x6B\x65\x74\x54\x6F\x6F\x6C","\x62\x75\x72\x6E\x49\x6E\x54\x6F\x6F\x6C","\x63\x6C\x6F\x6E\x65\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x52\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x53\x61\x6D\x70\x6C\x65\x72\x54\x6F\x6F\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x63\x6F\x75\x6E\x74\x54\x6F\x6F\x6C","\x63\x72\x6F\x70\x54\x6F\x6F\x6C","\x63\x75\x72\x76\x61\x74\x75\x72\x65\x50\x65\x6E\x54\x6F\x6F\x6C","\x63\x75\x73\x74\x6F\x6D\x53\x68\x61\x70\x65\x54\x6F\x6F\x6C","\x64\x65\x6C\x65\x74\x65\x4B\x6E\x6F\x74\x54\x6F\x6F\x6C","\x64\x69\x72\x65\x63\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x64\x6F\x64\x67\x65\x54\x6F\x6F\x6C","\x65\x6C\x6C\x69\x70\x73\x65\x54\x6F\x6F\x6C","\x65\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x65\x79\x65\x64\x72\x6F\x70\x70\x65\x72\x54\x6F\x6F\x6C","\x66\x72\x61\x6D\x65\x64\x47\x72\x6F\x75\x70\x54\x6F\x6F\x6C","\x66\x72\x65\x65\x66\x6F\x72\x6D\x50\x65\x6E\x54\x6F\x6F\x6C","\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x6F\x6F\x6C","\x68\x61\x6E\x64\x54\x6F\x6F\x6C","\x68\x69\x73\x74\x6F\x72\x79\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x6C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6C\x69\x6E\x65\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x57\x61\x6E\x64\x54\x6F\x6F\x6C","\x6D\x61\x67\x6E\x65\x74\x69\x63\x4C\x61\x73\x73\x6F\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x45\x6C\x6C\x69\x70\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x52\x65\x63\x74\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x43\x6F\x6C\x75\x6D\x6E\x54\x6F\x6F\x6C","\x6D\x61\x72\x71\x75\x65\x65\x53\x69\x6E\x67\x6C\x65\x52\x6F\x77\x54\x6F\x6F\x6C","\x6D\x6F\x76\x65\x54\x6F\x6F\x6C","\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x74\x63\x68\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x70\x61\x74\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x70\x61\x74\x74\x65\x72\x6E\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x65\x6E\x63\x69\x6C\x54\x6F\x6F\x6C","\x70\x65\x6E\x54\x6F\x6F\x6C","\x70\x65\x72\x73\x70\x65\x63\x74\x69\x76\x65\x43\x72\x6F\x70\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x67\x6F\x6E\x54\x6F\x6F\x6C","\x70\x6F\x6C\x79\x53\x65\x6C\x54\x6F\x6F\x6C","\x71\x75\x69\x63\x6B\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x72\x65\x63\x6F\x6D\x70\x6F\x73\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65\x54\x6F\x6F\x6C","\x72\x65\x64\x45\x79\x65\x54\x6F\x6F\x6C","\x72\x6F\x74\x61\x74\x65\x54\x6F\x6F\x6C","\x72\x75\x6C\x65\x72\x54\x6F\x6F\x6C","\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E\x54\x6F\x6F\x6C","\x73\x68\x61\x72\x70\x65\x6E\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x73\x6C\x69\x63\x65\x54\x6F\x6F\x6C","\x73\x6D\x75\x64\x67\x65\x54\x6F\x6F\x6C","\x73\x70\x6F\x74\x48\x65\x61\x6C\x69\x6E\x67\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x74\x65\x78\x74\x41\x6E\x6E\x6F\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4D\x61\x73\x6B\x54\x6F\x6F\x6C","\x74\x79\x70\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x43\x72\x65\x61\x74\x65\x4F\x72\x45\x64\x69\x74\x54\x6F\x6F\x6C","\x77\x65\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x7A\x6F\x6F\x6D\x54\x6F\x6F\x6C"];var psToolsList=psToolsList2021;switch(parseInt(app.version)){case 19:psToolsList= psToolsList2018;break;case 20:psToolsList= psToolsList2019;break;case 21:psToolsList= psToolsList2020;break;case 22:psToolsList= psToolsList2021;break;default:break};var psSupportListBrushSizeHardness=["\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x45\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x62\x6C\x75\x72\x54\x6F\x6F\x6C","\x62\x75\x72\x6E\x49\x6E\x54\x6F\x6F\x6C","\x63\x6C\x6F\x6E\x65\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x63\x6F\x6C\x6F\x72\x52\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x64\x6F\x64\x67\x65\x54\x6F\x6F\x6C","\x65\x72\x61\x73\x65\x72\x54\x6F\x6F\x6C","\x68\x69\x73\x74\x6F\x72\x79\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x6D\x61\x67\x69\x63\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x74\x74\x65\x72\x6E\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x65\x6E\x63\x69\x6C\x54\x6F\x6F\x6C","\x71\x75\x69\x63\x6B\x53\x65\x6C\x65\x63\x74\x54\x6F\x6F\x6C","\x73\x61\x74\x75\x72\x61\x74\x69\x6F\x6E\x54\x6F\x6F\x6C","\x73\x68\x61\x72\x70\x65\x6E\x54\x6F\x6F\x6C","\x73\x6D\x75\x64\x67\x65\x54\x6F\x6F\x6C","\x73\x70\x6F\x74\x48\x65\x61\x6C\x69\x6E\x67\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x77\x65\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C"];var psSupportListBrushOpacity=["\x61\x72\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x63\x6C\x6F\x6E\x65\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x68\x69\x73\x74\x6F\x72\x79\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x69\x6E\x74\x62\x72\x75\x73\x68\x54\x6F\x6F\x6C","\x70\x61\x74\x74\x65\x72\x6E\x53\x74\x61\x6D\x70\x54\x6F\x6F\x6C","\x70\x65\x6E\x63\x69\x6C\x54\x6F\x6F\x6C","\x77\x65\x74\x42\x72\x75\x73\x68\x54\x6F\x6F\x6C"];var psSupportListOpacityFlow=["\x62\x75\x63\x6B\x65\x74\x54\x6F\x6F\x6C","\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x6F\x6F\x6C"];const isExceptionForcePass=false;function isCurrentToolSupportedByToolOption(_0x17208){var _0x1615C=false;try{var _0x171F2=getCurrentToolSubToolId();_0x1615C= isToolIdSupportedByToolOption(_0x171F2,_0x17208)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function isToolIdSupportedByToolOption(_0x171F2,_0x17208){if(isExceptionForcePass){return true};var _0x1615C=false;try{unitTestLog("\x74\x69\x64\x20\x3D\x20"+ _0x171F2,arguments.callee.name);unitTestLog("\x74\x6F\x6F\x6C\x5F\x6F\x70\x74\x69\x6F\x6E\x20\x3D\x20"+ _0x17208,arguments.callee.name);switch(_0x17208){case "\x73\x69\x7A\x65":;case "\x68\x61\x72\x64\x6E\x65\x73\x73":_0x1615C= (0<= psSupportListBrushSizeHardness.indexOf(_0x171F2));break;case "\x6F\x70\x61\x63\x69\x74\x79":_0x1615C= (0<= psSupportListBrushOpacity.indexOf(_0x171F2));break;case "\x6F\x70\x61\x63\x69\x74\x79\x5F\x66\x6C\x6F\x77":;case "\x66\x6C\x6F\x77":_0x1615C= (0<= psSupportListOpacityFlow.indexOf(_0x171F2));break;default:unitTestLog("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x61\x73\x65\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ _0x17208);break}}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function closeAllDocsWithoutSaving(){var _0x1615C=0;try{while(app.documents.length> 0){app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);_0x1615C= app.documents.length}}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return _0x1615C}function resetWorkspaceToDefault(){try{var _0x167B8= new ActionReference();_0x167B8.putName(stringIDToTypeID('\x77\x6F\x72\x6B\x73\x70\x61\x63\x65'),'\x45\x73\x73\x65\x6E\x74\x69\x61\x6C\x73');var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID('\x6E\x75\x6C\x6C'),_0x167B8);executeAction(stringIDToTypeID('\x73\x65\x6C\x65\x63\x74'),_0x1678C);executeAction(stringIDToTypeID('\x72\x65\x73\x65\x74'),_0x1678C)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function setCurrentTool(_0x17C16){try{var _0x167B8= new ActionReference();_0x167B8.putClass(stringIDToTypeID(_0x17C16));var _0x1678C= new ActionDescriptor();_0x1678C.putReference(stringIDToTypeID('\x6E\x75\x6C\x6C'),_0x167B8);executeAction(charIDToTypeID('\x73\x6C\x63\x74'),_0x1678C,DialogModes.NO)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function openNewDoc(){try{app.documents.add(1024,768,72,"\x55\x6E\x69\x74\x20\x54\x65\x73\x74\x20\x4E\x65\x77\x20\x44\x6F\x63",NewDocumentMode.RGB)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function test_smudgeTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_paintbrushTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_pencilTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_colorReplacementBrushTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_wetBrushTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_spotHealingBrushTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_magicStampTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_quickSelectTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_artBrushTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_historyBrushTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_eraserTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_backgroundEraserTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_dodgeTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_burnInTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_blurTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_saturationTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_patternStampTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_cloneStampTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_sharpenTool_size(_0x171F2){return test_js_doSizeHardness_size(_0x171F2,arguments.callee.name)}function test_task_brushSize(_0x171F2){return test_js_doSizeHardness_size(TestMouse,arguments.callee.name)}function test_task_brushSizeUp(_0x171F2){return test_js_doSizeHardness_size(TestMouse,arguments.callee.name)}function test_task_brushSizeDown(_0x171F2){return test_js_doSizeHardness_size(TestMouse,arguments.callee.name)}function test_js_doSizeHardness_size(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);if(_0x171F2== TestMouse){for(var _0x15E44=0;_0x15E44< psToolsList.length;_0x15E44++){var _0x171F2=psToolsList[_0x15E44];unitTestLog("\x74\x69\x64\x20\x3D\x20"+ _0x171F2,_0x1800A);if(!isToolIdSupportedByToolOption(_0x171F2,'\x73\x69\x7A\x65')){unitTestLog("\x53\x4B\x49\x50\x3A\x20\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65",_0x1800A);if(!isExceptionForcePass){continue}};unitTestSetupBasic(_0x171F2);try{test_js_doSizeHardness_size_sub(_0x171F2,_0x1800A)}catch(e){if(isExceptionForcePass){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x5F\x46\x4F\x52\x43\x45\x5F\x50\x41\x53\x53\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x65\x3D"+ e,_0x1800A)}else {throw e}};unitTestTearDown()}}else {unitTestSetupBasic(_0x171F2);if(!isCurrentToolSupportedByToolOption('\x73\x69\x7A\x65')){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x69\x73\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x42\x79\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x28\x29"};test_js_doSizeHardness_size_sub(_0x171F2,_0x1800A);unitTestTearDown()};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_js_doSizeHardness_size_sub(_0x171F2,_0x1800A){if(!isCurrentToolSupportedByToolOption('\x73\x69\x7A\x65')){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x69\x73\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x42\x79\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x28\x29"};setMasterAppBrushParameters(1);if(1!= getAppPencilParametersSize()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31"};setMasterAppBrushParameters(100);if(100!= getAppPencilParametersSize()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};setMasterAppBrushParameters(5000);if(5000!= getAppPencilParametersSize()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30\x30\x30"};setMasterAppBrushParameters(100);if(100!= getAppPencilParametersSize()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30\x20\x28\x32\x29"}}function test_smudgeTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_paintbrushTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_pencilTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_colorReplacementBrushTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_wetBrushTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_spotHealingBrushTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_magicStampTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_quickSelectTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_artBrushTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_historyBrushTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_eraserTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_backgroundEraserTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_dodgeTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_burnInTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_blurTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_saturationTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_patternStampTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_cloneStampTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_sharpenTool_hardness(_0x171F2){return test_js_doSizeHardness_hardness(_0x171F2,arguments.callee.name)}function test_task_brushHardness(_0x171F2){return test_js_doSizeHardness_hardness(TestMouse,arguments.callee.name)}function test_task_brushHardnessUp(_0x171F2){return test_js_doSizeHardness_hardness(TestMouse,arguments.callee.name)}function test_task_brushHardnessDown(_0x171F2){return test_js_doSizeHardness_hardness(TestMouse,arguments.callee.name)}function test_js_doSizeHardness_hardness(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);if(_0x171F2== TestMouse){for(var _0x15E44=0;_0x15E44< psToolsList.length;_0x15E44++){var _0x171F2=psToolsList[_0x15E44];unitTestLog("\x74\x69\x64\x20\x3D\x20"+ _0x171F2,_0x1800A);if(!isToolIdSupportedByToolOption(_0x171F2,'\x68\x61\x72\x64\x6E\x65\x73\x73')){unitTestLog("\x53\x4B\x49\x50\x3A\x20\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65",_0x1800A);if(!isExceptionForcePass){continue}};unitTestSetupBasic(_0x171F2);try{test_js_doSizeHardness_hardness_sub(_0x171F2,_0x1800A)}catch(e){if(isExceptionForcePass){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x5F\x46\x4F\x52\x43\x45\x5F\x50\x41\x53\x53\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x65\x3D"+ e,_0x1800A)}else {throw e}};unitTestTearDown()}}else {unitTestSetupBasic(_0x171F2);if(!isCurrentToolSupportedByToolOption('\x68\x61\x72\x64\x6E\x65\x73\x73')){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x69\x73\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x42\x79\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x28\x29"};test_js_doSizeHardness_hardness_sub(_0x171F2,_0x1800A);unitTestTearDown()};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_js_doSizeHardness_hardness_sub(_0x171F2,_0x1800A){if(!isCurrentToolSupportedByToolOption('\x68\x61\x72\x64\x6E\x65\x73\x73')){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x69\x73\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x42\x79\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x28\x29"};setBrushHardness(0);if(0!= getAppPencilParametersHardness()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30"};setBrushHardness(100);if(100!= getAppPencilParametersHardness()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};setBrushHardness(50);if(50!= getAppPencilParametersHardness()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"}}function test_backgroundEraserTool_opacity(_0x171F2){return test_js_doOpacityFlow(_0x171F2,true,arguments.callee.name)}function test_backgroundEraserTool_flow(_0x171F2){return test_js_doOpacityFlow(_0x171F2,false,arguments.callee.name)}function test_bucketTool_opacity(_0x171F2){return test_js_doOpacityFlow(_0x171F2,true,arguments.callee.name)}function test_bucketTool_flow(_0x171F2){return test_js_doOpacityFlow(_0x171F2,false,arguments.callee.name)}function test_gradientTool_opacity(_0x171F2){return test_js_doOpacityFlow(_0x171F2,true,arguments.callee.name)}function test_gradientTool_flow(_0x171F2){return test_js_doOpacityFlow(_0x171F2,false,arguments.callee.name)}function test_task_brushOpacity(_0x171F2){return test_js_doOpacityFlow(TestMouse,true,arguments.callee.name)}function test_task_brushOpacityUp(_0x171F2){return test_js_doOpacityFlow(TestMouse,true,arguments.callee.name)}function test_task_brushOpacityDown(_0x171F2){return test_js_doOpacityFlow(TestMouse,true,arguments.callee.name)}function test_js_doOpacityFlow(_0x171F2,_0x180E6,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);var _0x17208=_0x180E6?'\x6F\x70\x61\x63\x69\x74\x79\x5F\x66\x6C\x6F\x77':'\x66\x6C\x6F\x77';if(_0x171F2== TestMouse){for(var _0x15E44=0;_0x15E44< psToolsList.length;_0x15E44++){var _0x171F2=psToolsList[_0x15E44];unitTestLog("\x74\x69\x64\x20\x3D\x20"+ _0x171F2,_0x1800A);if(!isToolIdSupportedByToolOption(_0x171F2,_0x17208)){unitTestLog("\x53\x4B\x49\x50\x3A\x20\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x63\x61\x73\x65",_0x1800A);if(!isExceptionForcePass){continue}};unitTestSetupBasic(_0x171F2);try{test_js_doOpacityFlowSub(_0x171F2,_0x180E6,_0x1800A)}catch(e){if(isExceptionForcePass){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x5F\x46\x4F\x52\x43\x45\x5F\x50\x41\x53\x53\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x65\x3D"+ e,_0x1800A)}else {throw e}};unitTestTearDown()}}else {unitTestSetupBasic(_0x171F2);if(!isCurrentToolSupportedByToolOption(_0x17208)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x69\x73\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x42\x79\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x28\x29"};test_js_doOpacityFlowSub(_0x171F2,_0x180E6,_0x1800A);unitTestTearDown()};_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_js_doOpacityFlowSub(_0x171F2,_0x180E6,_0x1800A){var _0x168EC=getAppBrushParametersOpacityFlow();unitTestLog(_0x168EC,_0x1800A);var _0x167CE=_0x168EC.split('\x3A');var _0x1683C=Number(_0x167CE[0]);var _0x167FA=Number(_0x167CE[1]);_0x1683C= 50;_0x167FA= 50;var _0x18112='\x73\x65\x74\x50\x61\x69\x6E\x74\x42\x72\x75\x73\x68\x4D\x6F\x64\x65\x50\x53\x28'+ _0x1683C+ '\x2C'+ _0x167FA+ '\x2C'+ _0x167CE[2]+ '\x2C'+ _0x167CE[3]+ '\x2C'+ _0x167CE[4]+ '\x2C\x27'+ _0x167CE[5]+ '\x27\x29';unitTestLog(_0x18112,_0x1800A);eval(_0x18112);var _0x16902=getAppBrushParametersOpacityFlow();unitTestLog(_0x16902,_0x1800A);var _0x180FC=_0x16902.split('\x3A');var _0x1813E=Number(_0x180FC[0]);var _0x18128=Number(_0x180FC[1]);if(_0x180E6){if(_0x1683C!= _0x1813E){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4F\x70\x61\x63\x69\x74\x79\x20\x35\x30"}}else {if(_0x167FA!= _0x18128){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x46\x6C\x6F\x77\x20\x35\x30"}};unitTestLog("\x50\x61\x73\x73\x65\x64\x3A\x20\x54\x65\x73\x74\x20\x63\x61\x73\x65\x20\x31",_0x1800A);_0x1683C= 1;_0x167FA= 1;_0x18112= '\x73\x65\x74\x50\x61\x69\x6E\x74\x42\x72\x75\x73\x68\x4D\x6F\x64\x65\x50\x53\x28'+ _0x1683C+ '\x2C'+ _0x167FA+ '\x2C'+ _0x167CE[2]+ '\x2C'+ _0x167CE[3]+ '\x2C'+ _0x167CE[4]+ '\x2C\x27'+ _0x167CE[5]+ '\x27\x29';unitTestLog(_0x18112,_0x1800A);eval(_0x18112);_0x16902= getAppBrushParametersOpacityFlow();unitTestLog(_0x16902,_0x1800A);_0x180FC= _0x16902.split('\x3A');_0x1813E= Number(_0x180FC[0]);_0x18128= Number(_0x180FC[1]);if(_0x180E6){if(_0x1683C!= _0x1813E){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4F\x70\x61\x63\x69\x74\x79\x20\x31"}}else {if(_0x167FA!= _0x18128){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x46\x6C\x6F\x77\x20\x31"}};unitTestLog("\x50\x61\x73\x73\x65\x64\x3A\x20\x54\x65\x73\x74\x20\x63\x61\x73\x65\x20\x33",_0x1800A);_0x1683C= 100;_0x167FA= 100;_0x18112= '\x73\x65\x74\x50\x61\x69\x6E\x74\x42\x72\x75\x73\x68\x4D\x6F\x64\x65\x50\x53\x28'+ _0x1683C+ '\x2C'+ _0x167FA+ '\x2C'+ _0x167CE[2]+ '\x2C'+ _0x167CE[3]+ '\x2C'+ _0x167CE[4]+ '\x2C\x27'+ _0x167CE[5]+ '\x27\x29';unitTestLog(_0x18112,_0x1800A);eval(_0x18112);_0x16902= getAppBrushParametersOpacityFlow();unitTestLog(_0x16902,_0x1800A);_0x180FC= _0x16902.split('\x3A');_0x1813E= Number(_0x180FC[0]);_0x18128= Number(_0x180FC[1]);if(_0x180E6){if(_0x1683C!= _0x1813E){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4F\x70\x61\x63\x69\x74\x79\x20\x31\x30\x30"}}else {if(_0x167FA!= _0x18128){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x46\x6C\x6F\x77\x20\x31\x30\x30"}};unitTestLog("\x50\x61\x73\x73\x65\x64\x3A\x20\x54\x65\x73\x74\x20\x63\x61\x73\x65\x20\x33",_0x1800A)}function test_paintbrushTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_pencilTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_colorReplacementBrushTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_wetBrushTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_artBrushTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_historyBrushTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_eraserTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_patternStampTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_cloneStampTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_blurTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_sharpenTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_dodgeTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_burnInTool_opacity(_0x171F2){return test_js_psUpdateBrushOpacity(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushOpacity(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);if(!isCurrentToolSupportedByToolOption('\x6F\x70\x61\x63\x69\x74\x79')){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x69\x73\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x42\x79\x54\x6F\x6F\x6C\x4F\x70\x74\x69\x6F\x6E\x28\x29"};psSetBrushParameter("\x6F\x70\x61\x63\x69\x74\x79",1);if(1!= psGetCurrentToolOptions().opacity){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31"};psUpdateBrushOpacity(50);if(51!= psGetCurrentToolOptions().opacity){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x31"};psUpdateBrushOpacity(50);if(100!= psGetCurrentToolOptions().opacity){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30\x20\x28\x32\x29"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_paintbrushTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_pencilTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_colorReplacementBrushTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_wetBrushTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_artBrushTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_historyBrushTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_eraserTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_patternStampTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_cloneStampTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_blurTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_sharpenTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_saturationTool_flow(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_blurTool_strength(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_sharpenTool_strength(_0x171F2){return test_js_psUpdateBrushFlow(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushFlow(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);psSetBrushParameter("\x66\x6C\x6F\x77",1);if(1!= psGetCurrentToolOptions().flow){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31"};psUpdateBrushFlow(50);if(51!= psGetCurrentToolOptions().flow){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x31"};psUpdateBrushFlow(50);if(100!= psGetCurrentToolOptions().flow){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_dodgeTool_exposure(_0x171F2){return test_js_psUpdateBrushExposure(_0x171F2,arguments.callee.name)}function test_burnInTool_exposure(_0x171F2){return test_js_psUpdateBrushExposure(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushExposure(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);var _0x168EC=psUpdateBrushExposure(-200);if(NotSupportedValue== _0x168EC){unitTestLog("\x53\x6B\x69\x70\x20\x74\x65\x73\x74\x20\x61\x73\x20\x4E\x6F\x74\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x56\x61\x6C\x75\x65\x20\x63\x61\x73\x65",_0x1800A)}else {if(1!= _0x168EC){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31"};if(11!= psUpdateBrushExposure(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x31"};if(100!= psUpdateBrushExposure(200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};if(90!= psUpdateBrushExposure(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x39\x30"};if(50!= psUpdateBrushExposure(-40)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};if(1!= psUpdateBrushExposure(-200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31\x20\x28\x32\x29"}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_smudgeTool_strength(_0x171F2){return test_js_psUpdateBrushPressure(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushPressure(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);var _0x168EC=psUpdateBrushPressure(-200);if(NotSupportedValue== _0x168EC){unitTestLog("\x53\x6B\x69\x70\x20\x74\x65\x73\x74\x20\x61\x73\x20\x4E\x6F\x74\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x56\x61\x6C\x75\x65\x20\x63\x61\x73\x65",_0x1800A)}else {if(1!= _0x168EC){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31"};if(10!= psUpdateBrushPressure(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};if(100!= psUpdateBrushPressure(200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};if(90!= psUpdateBrushPressure(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x39\x30"};if(50!= psUpdateBrushPressure(-40)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};if(1!= psUpdateBrushPressure(-200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31\x20\x28\x32\x29"}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_paintbrushTool_smoothing(_0x171F2){return test_js_psUpdateBrushSmooth(_0x171F2,arguments.callee.name)}function test_pencilTool_smoothing(_0x171F2){return test_js_psUpdateBrushSmooth(_0x171F2,arguments.callee.name)}function test_colorReplacementBrushTool_smoothing(_0x171F2){return test_js_psUpdateBrushSmooth(_0x171F2,arguments.callee.name)}function test_wetBrushTool_smoothing(_0x171F2){return test_js_psUpdateBrushSmooth(_0x171F2,arguments.callee.name)}function test_eraserTool_smoothing(_0x171F2){return test_js_psUpdateBrushSmooth(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushSmooth(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);var _0x168EC=psUpdateBrushSmooth(-200);if(NotSupportedValue== _0x168EC){unitTestLog("\x53\x6B\x69\x70\x20\x74\x65\x73\x74\x20\x61\x73\x20\x4E\x6F\x74\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x56\x61\x6C\x75\x65\x20\x63\x61\x73\x65",_0x1800A)}else {if(0!= _0x168EC){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x30"};if(10!= psUpdateBrushSmooth(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};if(100!= psUpdateBrushSmooth(200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};if(90!= psUpdateBrushSmooth(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x39\x30"};if(50!= psUpdateBrushSmooth(-40)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};if(0!= psUpdateBrushSmooth(-200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x30\x20\x28\x32\x29"}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_paintbrushTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_pencilTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_colorReplacementBrushTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_wetBrushTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_magicStampTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_quickSelectTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_spotHealingBrushTool_angle(_0x171F2){return test_js_psUpdateBrushAngle(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushAngle(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);var _0x168EC=psUpdateBrushAngle(-2000);if(NotSupportedValue== _0x168EC){unitTestLog("\x53\x6B\x69\x70\x20\x74\x65\x73\x74\x20\x61\x73\x20\x4E\x6F\x74\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x56\x61\x6C\x75\x65\x20\x63\x61\x73\x65",_0x1800A)}else {var _0x16AA4=getHumanizerCurrentToolOptions();_0x16AA4.brush.angle._value= 0;setHuminizerCurrentToolOptions(_0x171F2,_0x16AA4);if(10!= psUpdateBrushAngle(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};if(10!= psUpdateBrushAngle(360)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x20\x28\x32\x29"};if(10!= psUpdateBrushAngle(3600)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x20\x28\x33\x29"};if(-10!= psUpdateBrushAngle(-20)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x2D\x31\x30"};if(0!= psUpdateBrushAngle(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30"}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_colorReplacementBrushTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_magicStampTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_paintbrushTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_pencilTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_quickSelectTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_spotHealingBrushTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_wetBrushTool_roundness(_0x171F2){return test_js_psUpdateBrushRoundness(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushRoundness(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);var _0x168EC=psUpdateBrushRoundness(-200);if(NotSupportedValue== _0x168EC){unitTestLog("\x53\x6B\x69\x70\x20\x74\x65\x73\x74\x20\x61\x73\x20\x4E\x6F\x74\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x56\x61\x6C\x75\x65\x20\x63\x61\x73\x65",_0x1800A)}else {if(0!= _0x168EC){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x30"};if(10!= psUpdateBrushRoundness(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};if(100!= psUpdateBrushRoundness(200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};if(90!= psUpdateBrushRoundness(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x39\x30"};if(50!= psUpdateBrushRoundness(-40)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};if(0!= psUpdateBrushRoundness(-200)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x30\x20\x28\x32\x29"}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_colorReplacementBrushTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_magicStampTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_paintbrushTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_pencilTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_quickSelectTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_spotHealingBrushTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_wetBrushTool_spacing(_0x171F2){return test_js_psUpdateBrushSpacing(_0x171F2,arguments.callee.name)}function test_js_psUpdateBrushSpacing(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);var _0x168EC=psUpdateBrushSpacing(-2000);if(NotSupportedValue== _0x168EC){unitTestLog("\x53\x6B\x69\x70\x20\x74\x65\x73\x74\x20\x61\x73\x20\x4E\x6F\x74\x53\x75\x70\x70\x6F\x72\x74\x65\x64\x56\x61\x6C\x75\x65\x20\x63\x61\x73\x65",_0x1800A)}else {if(1!= _0x168EC){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31"};if(11!= psUpdateBrushSpacing(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x31"};if(1000!= psUpdateBrushSpacing(2000)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};if(990!= psUpdateBrushSpacing(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x39\x39\x30"};if(50!= psUpdateBrushSpacing(-940)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};if(1!= psUpdateBrushSpacing(-2000)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31\x20\x28\x32\x29"}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_marqueeRectTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_marqueeEllipTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_marqueeSingleRowTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_marqueeSingleColumnTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_lassoTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_polySelTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_magneticLassoTool_feather(_0x171F2){return test_js_psUpdateFeather(_0x171F2,arguments.callee.name)}function test_js_psUpdateFeather(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);psUpdateFeather(-2000);if(0!= psGetCurrentToolFeather().current){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x30"};psUpdateFeather(50);if(50!= psGetCurrentToolFeather().current){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};psUpdateFeather(-10);if(40!= psGetCurrentToolFeather().current){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x34\x30"};psUpdateFeather(1500);if(1000!= psGetCurrentToolFeather().current){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30\x30"};psUpdateFeather(-3000);if(0!= psGetCurrentToolFeather().current){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x30\x20\x28\x32\x29"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_redEyeTool_redEye_pupilSize(_0x171F2){return test_js_psUpdateRedEyeRadius(_0x171F2,arguments.callee.name)}function test_js_psUpdateRedEyeRadius(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);setRedEyeRadius(1);if(1!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31"};setRedEyeRadius(100);if(100!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};setRedEyeRadius(50);if(50!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};psUpdateRedEyeRadius(-10);if(40!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x34\x30"};psUpdateRedEyeRadius(20);if(60!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x36\x30"};psUpdateRedEyeRadius(-200);if(1!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31\x20\x28\x32\x29"};psUpdateRedEyeRadius(200);if(100!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30\x20\x28\x32\x29"};setRedEyeRadius(50);if(50!= psGetCurrentToolOptions().radius){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30\x20\x28\x32\x29"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_redEyeTool_redEye_darkenAmount(_0x171F2){return test_js_psUpdateRedEyeDarken(_0x171F2,arguments.callee.name)}function test_js_psUpdateRedEyeDarken(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestSetupBasic(_0x171F2);setRedEyeDarken(1);if(1!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31"};setRedEyeDarken(100);if(100!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30"};setRedEyeDarken(50);if(50!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};psUpdateRedEyeDarken(-10);if(40!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x34\x30"};psUpdateRedEyeDarken(20);if(60!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x36\x30"};psUpdateRedEyeDarken(-200);if(1!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x69\x6E\x3D\x31\x20\x28\x32\x29"};psUpdateRedEyeDarken(200);if(100!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x4D\x61\x78\x3D\x31\x30\x30\x20\x28\x32\x29"};setRedEyeDarken(50);if(50!= psGetCurrentToolOptions().darken){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30\x20\x28\x32\x29"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_task_tabNavigation(_0x171F2){return test_js_tabNavigation(TestMouse,arguments.callee.name)}function test_task_tabNavigationPrev(_0x171F2){return test_js_tabNavigation(TestMouse,arguments.callee.name)}function test_task_tabNavigationNext(_0x171F2){return test_js_tabNavigation(TestMouse,arguments.callee.name)}function test_js_tabNavigation(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);resetWorkspaceToDefault();closeAllDocsWithoutSaving();unitTestLog("\x54\x65\x73\x74\x20\x66\x69\x74\x4C\x6F\x6F\x70\x4D\x69\x6E\x4D\x61\x78\x28\x29\x20\x62\x65\x67\x69\x6E",_0x1800A);if(5!= fitLoopMinMax(5,0,9)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x28\x20\x35\x2C\x20\x30\x2C\x20\x39\x29"};if(5!= fitLoopMinMax(15,0,9)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x28\x31\x35\x2C\x20\x30\x2C\x20\x39\x29"};if(10!= fitLoopMinMax(15,10,14)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x28\x31\x35\x2C\x31\x30\x2C\x20\x31\x34\x29"};if(3!= fitLoopMinMax(103,0,9)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x28\x31\x30\x33\x2C\x20\x30\x2C\x20\x39\x29"};unitTestLog("\x4E\x6F\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x74\x65\x73\x74\x20\x63\x61\x73\x65",_0x1800A);closeAllDocsWithoutSaving();if(0!= getDocsLen()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x67\x65\x74\x44\x6F\x63\x73\x4C\x65\x6E\x28\x29"};if(0!= psUpdateTabNavigation(1)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x29"};if(0!= psUpdateTabNavigation(2)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x32\x29"};if(0!= psUpdateTabNavigation(3)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x33\x29"};if(0!= psUpdateTabNavigation(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x30\x29"};if(0!= psUpdateTabNavigation(100)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x30\x30\x29"};if(0!= psUpdateTabNavigation(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x2D\x31\x30\x29"};if(0!= psUpdateTabNavigation(-100)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x2D\x31\x30\x30\x31\x29"};unitTestLog("\x4F\x6E\x65\x20\x64\x6F\x63\x20\x74\x65\x73\x74\x20\x63\x61\x73\x65",_0x1800A);closeAllDocsWithoutSaving();openNewDoc();if(1!= getDocsLen()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x67\x65\x74\x44\x6F\x63\x73\x4C\x65\x6E\x28\x29"};if(0!= psUpdateTabNavigation(1)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x29"};if(0!= psUpdateTabNavigation(2)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x32\x29"};if(0!= psUpdateTabNavigation(3)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x33\x29"};if(0!= psUpdateTabNavigation(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x30\x29"};if(0!= psUpdateTabNavigation(100)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x30\x30\x29"};if(0!= psUpdateTabNavigation(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x2D\x31\x30\x29"};if(0!= psUpdateTabNavigation(-100)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x2D\x31\x30\x30\x31\x29"};unitTestLog("\x54\x65\x6E\x20\x64\x6F\x63\x73\x20\x74\x65\x73\x74\x20\x63\x61\x73\x65",_0x1800A);closeAllDocsWithoutSaving();for(var _0x15E44=0;_0x15E44< 10;_0x15E44++){openNewDoc()};if(10!= getDocsLen()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x67\x65\x74\x44\x6F\x63\x73\x4C\x65\x6E\x28\x29"};setActiveDocIndex(3);if(3!= getActiveDocIndex()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x73\x65\x74\x41\x63\x74\x69\x76\x65\x44\x6F\x63\x49\x6E\x64\x65\x78\x28\x33\x29"};setActiveDocIndex(0);if(0!= getActiveDocIndex()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x73\x65\x74\x41\x63\x74\x69\x76\x65\x44\x6F\x63\x49\x6E\x64\x65\x78\x28\x30\x29"};if(1!= psUpdateTabNavigation(1)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x29"};if(3!= psUpdateTabNavigation(2)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x32\x29"};if(6!= psUpdateTabNavigation(3)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x33\x29"};if(6!= psUpdateTabNavigation(10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x30\x29"};if(6!= psUpdateTabNavigation(100)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x31\x30\x30\x29"};if(6!= psUpdateTabNavigation(-10)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x2D\x31\x30\x29"};if(6!= psUpdateTabNavigation(-100)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x70\x73\x55\x70\x64\x61\x74\x65\x54\x61\x62\x4E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x28\x2D\x31\x30\x30\x29"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_task_zoom2(_0x171F2){return test_js_mouseZoom(_0x171F2,arguments.callee.name)}function test_task_zoomIn(_0x171F2){return test_js_mouseZoom(_0x171F2,arguments.callee.name)}function test_task_zoomOut(_0x171F2){return test_js_mouseZoom(_0x171F2,arguments.callee.name)}function test_task_zoomToFitScreen(_0x171F2){return test_js_mouseZoom(_0x171F2,arguments.callee.name)}function test_js_mouseZoom(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);resetWorkspaceToDefault();closeAllDocsWithoutSaving();psUpdateMouseZoom(0);psUpdateMouseZoom(10);psUpdateMouseZoom(-10);psZoomFitToScreen();psZoomActualPixel();openNewDoc();psUpdateMouseZoom(0);psUpdateMouseZoom(10);psUpdateMouseZoom(-10);psZoomFitToScreen();psZoomActualPixel();unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_task_setToolDodgeTool(_0x171F2){return test_js_setTool("\x64\x6F\x64\x67\x65\x54\x6F\x6F\x6C",arguments.callee.name)}function test_js_setTool(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);resetWorkspaceToDefault();closeAllDocsWithoutSaving();setCurrentTool(_0x171F2);openNewDoc();setCurrentTool(_0x171F2);const _0x18020=getCurrentToolSubToolId();if(_0x18020!= _0x171F2){throw "\x45\x52\x52\x4F\x52\x3A\x20\x74\x65\x73\x74\x5F\x6A\x73\x5F\x73\x65\x74\x54\x6F\x6F\x6C\x28\x29\x20\x69\x73\x20\x6E\x6F\x74\x20\x77\x6F\x72\x6B\x69\x6E\x67\x20\x61\x73\x20\x65\x78\x70\x65\x63\x74\x65\x64\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x74\x65\x73\x74\x54\x6F\x6F\x6C\x3D"+ _0x18020};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_basic_basic(_0x171F2){return test_js_basic(_0x171F2,arguments.callee.name)}function test_js_basic(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(_0x1800A);unitTestLog("\x4E\x6F\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x6D\x6F\x64\x65\x20\x74\x65\x73\x74",_0x1800A);resetWorkspaceToDefault();closeAllDocsWithoutSaving();unitTestLog("\x70\x73\x54\x6F\x6F\x6C\x73\x4C\x69\x73\x74\x2E\x6C\x65\x6E\x67\x74\x68\x20\x3D\x20"+ psToolsList.length);for(var _0x15E44=0;_0x15E44< psToolsList.length;_0x15E44++){var _0x171F2=psToolsList[_0x15E44];unitTestLog("\x74\x69\x64\x5B"+ _0x15E44+ "\x5D\x20\x3D\x20"+ _0x171F2,_0x1800A);setCurrentTool(_0x171F2);unitTestLog("\x73\x65\x74\x20\x74\x69\x64\x3D\x20"+ _0x171F2);var _0x18020=getCurrentToolSubToolId();unitTestLog("\x72\x65\x61\x64\x20\x62\x61\x63\x6B\x20\x74\x65\x73\x74\x54\x6F\x6F\x6C\x3D\x20"+ _0x18020);if(_0x18020!= _0x171F2){throw "\x45\x52\x52\x4F\x52\x3A\x20\x73\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x28\x29\x20\x69\x73\x20\x6E\x6F\x74\x20\x77\x6F\x72\x6B\x69\x6E\x67\x20\x61\x73\x20\x65\x78\x70\x65\x63\x74\x65\x64\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x74\x65\x73\x74\x54\x6F\x6F\x6C\x3D"+ _0x18020}};unitTestLog("\x4F\x70\x65\x6E\x65\x64\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x6D\x6F\x64\x65\x20\x74\x65\x73\x74",_0x1800A);resetWorkspaceToDefault();closeAllDocsWithoutSaving();openNewDoc();for(var _0x15E44=0;_0x15E44< psToolsList.length;_0x15E44++){var _0x171F2=psToolsList[_0x15E44];unitTestLog("\x74\x69\x64\x20\x3D\x20"+ _0x171F2,_0x1800A);setCurrentTool(_0x171F2);var _0x18020=getCurrentToolSubToolId();if(_0x18020!= _0x171F2){throw "\x45\x52\x52\x4F\x52\x3A\x20\x73\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x28\x29\x20\x69\x73\x20\x6E\x6F\x74\x20\x77\x6F\x72\x6B\x69\x6E\x67\x20\x61\x73\x20\x65\x78\x70\x65\x63\x74\x65\x64\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x74\x65\x73\x74\x54\x6F\x6F\x6C\x3D"+ _0x18020}};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_smudgeTool_strength(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);psUpdateBrushPressure(-100);if(1!= psGetCurrentToolOptions().pressure){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x2D\x31\x30\x30"};psUpdateBrushPressure(50);if(51!= psGetCurrentToolOptions().pressure){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};psUpdateBrushPressure(50);if(100!= psGetCurrentToolOptions().pressure){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30\x20\x28\x32\x29"};unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}function unitTestSetupBasic(_0x171F2){resetWorkspaceToDefault();closeAllDocsWithoutSaving();openNewDoc();setCurrentTool(_0x171F2);const _0x18020=getCurrentToolSubToolId();if(_0x18020!= _0x171F2){throw "\x45\x52\x52\x4F\x52\x3A\x20\x73\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x54\x6F\x6F\x6C\x28\x29\x20\x69\x73\x20\x6E\x6F\x74\x20\x77\x6F\x72\x6B\x69\x6E\x67\x20\x61\x73\x20\x65\x78\x70\x65\x63\x74\x65\x64\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x74\x65\x73\x74\x54\x6F\x6F\x6C\x3D"+ _0x18020};return}function unitTestTearDown(){resetWorkspaceToDefault();closeAllDocsWithoutSaving();return}function unitTestTearDownException(){closeAllDocsWithoutSaving();return}function unitTest(_0x1816A,_0x1784E,_0x17208){var _0x1615C="\x46\x61\x69\x6C\x3A\x20\x55\x6E\x6B\x6E\x6F\x77\x6E";try{psUnitTestCurrentTest= _0x1784E+ "\x5F"+ _0x17208+ "\x5F"+ _0x1816A;unitTestLog("\x74\x6F\x6F\x6C\x20\x3D\x20"+ _0x1784E+ "\x2C\x20\x74\x6F\x6F\x6C\x5F\x6F\x70\x74\x69\x6F\x6E\x20\x3D\x20"+ _0x17208+ "\x2C\x20\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A,arguments.callee.name);unitTestLog("\x70\x73\x55\x6E\x69\x74\x54\x65\x73\x74\x43\x75\x72\x72\x65\x6E\x74\x54\x65\x73\x74\x20\x3D\x20"+ psUnitTestCurrentTest,arguments.callee.name);const _0x18154="\x74\x65\x73\x74\x5F"+ _0x1784E+ "\x5F"+ _0x17208+ "\x28\x27"+ _0x1784E+ "\x27\x29\x3B";unitTestLog("\x66\x75\x6E\x63\x53\x74\x72\x20\x3D\x20"+ _0x18154,arguments.callee.name);_0x1615C= eval(_0x18154)}catch(e){if(e.toString().startsWith("\x52\x65\x66\x65\x72\x65\x6E\x63\x65\x45\x72\x72\x6F\x72\x3A")){_0x1615C= "\x53\x6B\x69\x70\x3A\x20\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ _0x18154+ "\x3A\x20"+ e}else {_0x1615C= "\x46\x61\x69\x6C\x3A\x20\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ _0x18154+ "\x3A\x20"+ e}};unitTestLog(_0x1615C,arguments.callee.name);return _0x1615C}function unitTestEnd(_0x1816A){var _0x1615C="\x41\x43\x4B\x3A\x20\x28\x6E\x6F\x74\x20\x67\x75\x61\x72\x61\x6E\x74\x65\x65\x64\x20\x74\x6F\x20\x62\x65\x20\x63\x6C\x6F\x73\x65\x64\x20\x61\x70\x70\x29\x20"+ arguments.callee.name+ "\x28\x29\x20\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A;try{psUnitTestCurrentTest= arguments.callee.name+ "\x5F"+ _0x1816A;unitTestLog("\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A,arguments.callee.name)}catch(e){_0x1615C= "\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e};unitTestLog(_0x1615C,arguments.callee.name);return _0x1615C}function unitTestEndQuit(_0x1816A){var _0x1615C="\x41\x43\x4B\x3A\x20\x28\x6E\x6F\x74\x20\x67\x75\x61\x72\x61\x6E\x74\x65\x65\x64\x20\x74\x6F\x20\x62\x65\x20\x63\x6C\x6F\x73\x65\x64\x20\x61\x70\x70\x29\x20"+ arguments.callee.name+ "\x28\x29\x20\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A;try{psUnitTestCurrentTest= arguments.callee.name+ "\x5F"+ _0x1816A;unitTestLog("\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A,arguments.callee.name);unitTestApplicationQuit()}catch(e){_0x1615C= "\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e};unitTestLog(_0x1615C,arguments.callee.name);return _0x1615C}function unitTestApplicationQuit(){var _0x171DC=charIDToTypeID("\x71\x75\x69\x74");executeAction(_0x171DC,undefined,DialogModes.ALL)}function unitTestLog(_0x15E2E,_0x17FF4){if(true){var _0x1666E= new File(psUnitTestLogFilePrefix+ psUnitTestCurrentTest+ "\x2E\x6C\x6F\x67");const _0x18180=currentTime()+ "\x20"+ _0x17FF4+ "\x28\x29\x3A\x20"+ _0x15E2E;debugLog(_0x18180);if(_0x1666E.open('\x61')){_0x1666E.writeln(_0x18180);_0x1666E.close()}}}