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,GAAW,EAAsB,EAEnC,EAEA,EAAS,GAAG,+BAAgC,IAGvC,GAA6B,GAAG,WAAW,EAAQ,oCAEvD,KAGI,GAA8B,GAAG,WAAW,EAAQ,qCAqCtC,OAAd,QAAqD,IAA9B,EAAwB,cAAiD,OAA9B,EAAwB,aAM7F,MAJA,EAAwB,aApCgB,CACxC,kBAAsB,CACrB,OACA,SACA,UACA,aACA,UACA,SACA,aACA,eACA,gBACA,cACA,gBACA,eACA,mBACA,qBACA,sBACA,oBACA,QACA,mBACA,aACA,gBACA,aACA,cACA,QACA,cACA,YACA,cACA,aACA,eACA,iBAOD,GAAuB,EAAwB,eAOlD,CAmwJC,CAAgB,EAAW,EAC5B,CACD,CAEA,IAAI,cAAgB,GAEhB,YAAc,CACjB,SAAU,SAAS,EAAW,EAAW,GAGxC,IAAI,EAAW,IAAI,SACnB,cAAc,KAAK,GACnB,EAAS,SAAS,EAAW,EAAW,EACzC,EACA,cAAe,SAAS,EAAW,GAGlC,IAAI,EAAW,IAAI,SACnB,cAAc,KAAK,GACnB,EAAS,cAAc,EAAW,EACnC,GAGD,OAAO,QAAU","file":"/npm/css-purge-updated@4.0.0/lib/css-purge.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/css-purge-updated@4.0.0/lib/css-purge.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\nconst clc = require('cli-color'),\n\tfs = require('fs'),\n  path = require('path'),\n\tcss = require('css'),\n\tparseCssFont = require('parse-css-font'),\n\tread = fs.readFileSync, \n\twrite = fs.writeFileSync,\n\tappendToFileSync = fs.appendFileSync,\n\tvalidUrl = require('valid-url'),\n\trequest = require('request');\n\n\nconst jsdom = require(\"jsdom\");\nconst { JSDOM } = jsdom;\n\nvar success = clc.greenBright,\n\tsuccess2 = clc.green,\n\tinfo = clc.xterm(123),\n\terror = clc.red,\n\terror2 = clc.redBright,\n\twarning = clc.yellow,\n\tawesome = clc.magentaBright,\n\tlogoRed = clc.xterm(197),\n\tcool = clc.xterm(105);\n\nconst EventEmitter = require('events');\nconst crypto = require('crypto');\nvar hash;\n\n\nclass CSSPurgeEmitter extends EventEmitter {}\n\nfunction CSSPurge() {\n\n\tvar timeLabel = null;\n\n\tvar CPEVENTS = new CSSPurgeEmitter();\n\n\tvar CONFIG = {\n\t\t\"options\": {\n\n\t\t\t\"css\": [\"demo/test1.css\"],\n\t\t\t\n\t\t\t\"new_reduce_common_into_parent\": false,\n\n\t\t\t\"trim\": true,\n\t    \"trim_keep_non_standard_inline_comments\": false,\n\t    \"trim_removed_rules_previous_comment\": false,\n\t\t\t\"trim_comments\": false,\n\t    \"trim_whitespace\": false,\n\t    \"trim_breaklines\": false,\n\t    \"trim_last_semicolon\": false,\n\t    \"bypass_media_rules\": true,\n\t    \"bypass_document_rules\": false,\n\t    \"bypass_supports_rules\": false,\n\t    \"bypass_page_rules\": false,\n\t    \"bypass_charset\": false,\n\t    \"shorten\": true,\n\t    \"shorten_zero\": false,\n\t    \"shorten_hexcolor\": false,\n\t    \"shorten_hexcolor_extended_names\": false,\n\t    \"shorten_hexcolor_UPPERCASE\": false,\n\t    \"shorten_font\": false,\n\t    \"shorten_background\": false,\n\t    \"shorten_background_min\": 2,\n\t    \"shorten_margin\": false,\n\t    \"shorten_padding\": false,\n\t    \"shorten_list_style\": false,\n\t    \"shorten_outline\": false,\n\t    \"shorten_border\": false,\n\t    \"shorten_border_top\": false,\n\t    \"shorten_border_right\": false,\n\t    \"shorten_border_bottom\": false,\n\t    \"shorten_border_left\": false,\n\t    \"shorten_border_radius\": false,\n\t    \"format\": true,\n\t    \"format_font_family\": false,\n\t    \"format_4095_rules_legacy_limit\": false,\n\t    \"special_convert_rem\": false,\n\t    \"special_convert_rem_browser_default_px\": \"16\",\n\t    \"special_convert_rem_desired_html_px\": \"10\",\n\t    \"special_convert_rem_font_size\": true,\n\t    \"special_reduce_with_html\" : false,\n\t    \"special_reduce_with_html_ignore_selectors\" : [\n\t            \"@-ms-\",\n\t            \":-ms-\",\n\t            \"::\",\n\t            \":valid\",\n\t            \":invalid\",\n\t            \"+.\",\n\t            \":-\"\n\t    ],\n\n\t    \"generate_report\": false,\n\t    \"report_file_location\": \"css_purge_report.json\",\n\n\t    \"verbose\": false,\n\t\t  \"zero_units\": \"em, ex, %, px, cm, mm, in, pt, pc, ch, rem, vh, vw, vmin, vmax\",\n\t\t  \"zero_ignore_declaration\": [\"filter\"],\n\t\t  \"reduce_declarations_file_location\": \"config_reduce_declarations.json\"\n\t\t}\n\t};\n\n\tvar OPTIONS = {\n\t\tcss_output: CONFIG.options.css_output,\n\t\tcss: CONFIG.options.css,\n\t\thtml: CONFIG.options.html,\n\t\tjs: CONFIG.options.js,\n\n\t\tnew_reduce_common_into_parent: CONFIG.options.new_reduce_common_into_parent,\n\n\t\ttrim: CONFIG.options.trim,\n\t\ttrim_keep_non_standard_inline_comments: CONFIG.options.trim_keep_non_standard_inline_comments,\n\t\ttrim_removed_rules_previous_comment: CONFIG.options.trim_removed_rules_previous_comment,\n\t\ttrim_comments: CONFIG.options.trim_comments,\n\t\ttrim_whitespace: CONFIG.options.trim_whitespace,\n\t\ttrim_breaklines: CONFIG.options.trim_breaklines,\n\t\ttrim_last_semicolon: CONFIG.options.trim_last_semicolon,\n\t\tbypass_media_rules: CONFIG.options.bypass_media_rules,\n\t\tbypass_document_rules: CONFIG.options.bypass_document_rules,\n\t\tbypass_supports_rules: CONFIG.options.bypass_supports_rules,\n\t\tbypass_page_rules: CONFIG.options.bypass_page_rules,\n\t\tbypass_charset: CONFIG.options.bypass_charset,\n\t\tshorten: CONFIG.options.shorten,\n\t\tshorten_zero: CONFIG.options.shorten_zero,\n\t\tshorten_hexcolor: CONFIG.options.shorten_hexcolor,\n\t\tshorten_hexcolor_extended_names: CONFIG.options.shorten_hexcolor_extended_names,\n\t\tshorten_hexcolor_UPPERCASE: CONFIG.options.shorten_hexcolor_UPPERCASE,\n\t\tshorten_font: CONFIG.options.shorten_font,\n\t\tshorten_background: CONFIG.options.shorten_background,\n\t\tshorten_background_min: CONFIG.options.shorten_background_min,\n\t\tshorten_margin: CONFIG.options.shorten_margin,\n\t\tshorten_padding: CONFIG.options.shorten_padding,\n\t\tshorten_list_style: CONFIG.options.shorten_list_style,\n\t\tshorten_outline: CONFIG.options.shorten_outline,\n\t\tshorten_border: CONFIG.options.shorten_border,\n\t\tshorten_border_top: CONFIG.options.shorten_border_top,\n\t\tshorten_border_right: CONFIG.options.shorten_border_right,\n\t\tshorten_border_bottom: CONFIG.options.shorten_border_bottom,\n\t\tshorten_border_left: CONFIG.options.shorten_border_left,\n\t\tshorten_border_radius: CONFIG.options.shorten_border_radius,\n\t\tformat: CONFIG.options.format,\n\t\tformat_font_family: CONFIG.options.format_font_family,\n\t\tformat_4095_rules_legacy_limit: CONFIG.options.format_4095_rules_legacy_limit,\n\t\tspecial_convert_rem: CONFIG.options.special_convert_rem,\n\t\tspecial_convert_rem_browser_default_px: CONFIG.options.special_convert_rem_browser_default_px,\n\t\tspecial_convert_rem_desired_html_px: CONFIG.options.special_convert_rem_desired_html_px,\n\t\tspecial_convert_rem_font_size: CONFIG.options.special_convert_rem_font_size,\n\t\tspecial_reduce_with_html: CONFIG.options.special_reduce_with_html,\n\t\tspecial_reduce_with_html_ignore_selectors: CONFIG.options.special_reduce_with_html_ignore_selectors,\n\n\t\tgenerate_report: CONFIG.options.generate_report,\n\t\tverbose: CONFIG.options.verbose,\n\t\tzero_units: CONFIG.options.zero_units,\n\t\tzero_ignore_declaration: CONFIG.options.zero_ignore_declaration,\n\t\treport_file_location: CONFIG.options.report_file_location,\n\t\treduce_declarations_file_location: CONFIG.options.reduce_declarations_file_location\n\t};\n\n\tvar currentConfig = null;\n\n\tvar dataCSSIn = [];\n\tvar dataHTMLIn = [];\n\tvar dataJSIn = [];\n\n\tvar tmpCSSPaths = [];\n\tvar tmpHTMLPaths = [];\n\tvar tmpJSPaths = [];\n\n\tvar jsDom = null, jsDomWindow = null, jsDomDoc = null,\n\t\t\tresultsCount = 0;\n\n\n\tvar REPORT_DUPLICATE_CSS = CONFIG.options.report_file_location;\n\tvar summary = {\n\t\t\"files\" : {\n\t\t\t\"input\": [],\n\t\t\t\"output\": [],\n\t\t\t\"input_html\": [],\n\t\t\t\"input_js\": []\n\t\t},\n\t\t\"options_used\" : {\n\t\t\t\"new_reduce_common_into_parent\" : OPTIONS.new_reduce_common_into_parent,\n\t\t\t\"trim\" : OPTIONS.trim,\n\t\t\t\"trim_comments\" : OPTIONS.trim_comments,\n\t\t\t\"trim_keep_non_standard_inline_comments\" : OPTIONS.trim_keep_non_standard_inline_comments,\n\t\t\t\"trim_removed_rules_previous_comment\" : OPTIONS.trim_removed_rules_previous_comment,\n\t\t\t\"trim_whitespace\" : OPTIONS.trim_whitespace,\n\t\t\t\"trim_breaklines\" : OPTIONS.trim_breaklines,\n\t\t\t\"trim_last_semicolon\" : OPTIONS.trim_last_semicolon,\n\t\t\t\"shorten\" : OPTIONS.shorten,\n\t\t\t\"shorten_zero\" : OPTIONS.shorten_zero,\n\t\t\t\"shorten_hexcolor\" : OPTIONS.shorten_hexcolor,\n\t\t\t\"shorten_hexcolor_extended_names\" : OPTIONS.shorten_hexcolor_extended_names,\n\t\t\t\"shorten_hexcolor_UPPERCASE\" : OPTIONS.shorten_hexcolor_UPPERCASE,\n\t\t\t\"shorten_font\": OPTIONS.shorten_font,\n\t\t\t\"shorten_background\": OPTIONS.shorten_background,\n\t\t\t\"shorten_margin\": OPTIONS.shorten_margin,\n\t\t\t\"shorten_padding\": OPTIONS.shorten_padding,\n\t\t\t\"shorten_list_style\": OPTIONS.shorten_list_style,\n\t\t\t\"shorten_outline\": OPTIONS.shorten_outline,\n\t\t\t\"shorten_border\": OPTIONS.shorten_border,\n\t\t\t\"shorten_border_top\": OPTIONS.shorten_border_top,\n\t\t\t\"shorten_border_right\": OPTIONS.shorten_border_right,\n\t\t\t\"shorten_border_bottom\": OPTIONS.shorten_border_bottom,\n\t\t\t\"shorten_border_left\": OPTIONS.shorten_border_left,\n\t\t\t\"shorten_border_radius\": OPTIONS.shorten_border_radius,\n\t\t\t\"format\": OPTIONS.format,\n\t\t\t\"format_font_family\": OPTIONS.format_font_family,\n\t\t\t\"format_4095_rules_legacy_limit\": OPTIONS.format_4095_rules_legacy_limit,\n\t\t\t\"special_convert_rem\": OPTIONS.special_convert_rem,\n\t\t\t\"special_convert_rem_browser_default_px\": OPTIONS.special_convert_rem_browser_default_px,\n\t\t\t\"special_convert_rem_desired_html_px\": OPTIONS.special_convert_rem_desired_html_px,\n\t\t\t\"special_convert_rem_font_size\": OPTIONS.special_convert_rem_font_size,\n\t\t\t\"generate_report\" : OPTIONS.generate_report,\n\t\t\t\"verbose\" : OPTIONS.verbose,\n\t\t\t\"bypass_media_rules\" : OPTIONS.bypass_media_rules,\n\t\t\t\"bypass_document_rules\" : OPTIONS.bypass_document_rules,\n\t\t\t\"bypass_supports_rules\" : OPTIONS.bypass_supports_rules,\n\t\t\t\"bypass_page_rules\" : OPTIONS.bypass_page_rules,\n\t\t\t\"bypass_charset\" : OPTIONS.bypass_charset,\n\t\t\t\"special_reduce_with_html\" : OPTIONS.special_reduce_with_html,\n\t\t\t\"special_reduce_with_html_ignore_selectors\" : OPTIONS.special_reduce_with_html_ignore_selectors\n\t\t},\n\t\t\"stats\" : {},\n\t\t\"duplicate_rules\" : [],\n\t\t\"duplicate_declarations\" : [],\n\t\t'empty_declarations' : [],\n\t\t\"selectors_removed\" : []\n\t};\n\n\t//stats\n\tvar stats = {\n\t\tfiles: {\n\t\t\tcss: [],\n\t\t\thtml: [],\n\t\t\tjs: []\n\t\t},\n\t\tbefore: {\n\t\t\ttotalFileSizeKB: 0,\n\t\t\tnoNodes : 0,\n\t\t\tnoRules : 0,\n\t\t\tnoDeclarations : 0,\n\t\t\tnoComments : 0,\n\t\t\tnoCharset : 0,\n\t\t\tnoCustomMedia : 0,\n\t\t\tnoDocument : 0,\n\t\t\tnoFontFace : 0,\n\t\t\tnoHost : 0,\n\t\t\tnoImport : 0,\n\t\t\tnoKeyframes : 0,\n\t\t\tnoKeyframe : 0,\n\t\t\tnoMedia : 0,\n\t\t\tnoNamespace : 0,\n\t\t\tnoPage : 0,\n\t\t\tnoSupports : 0\n\t\t},\n\t\tafter: {\n\t\t\ttotalFileSizeKB: 0,\n\t\t\tnoNodes : 0,\n\t\t\tnoRules : 0,\n\t\t\tnoDeclarations : 0,\n\t\t\tnoComments : 0,\n\t\t\tnoCharset : 0,\n\t\t\tnoCustomMedia : 0,\n\t\t\tnoDocument : 0,\n\t\t\tnoFontFace : 0,\n\t\t\tnoHost : 0,\n\t\t\tnoImport : 0,\n\t\t\tnoKeyframes : 0,\n\t\t\tnoKeyframe : 0,\n\t\t\tnoMedia : 0,\n\t\t\tnoNamespace : 0,\n\t\t\tnoPage : 0,\n\t\t\tnoSupports : 0\n\t\t},\n\t\tsummary: {\n\t\t\tsavingsKB: 0,\n\t\t\tsavingsPercentage: 0,\n\t\t\tnoDuplicateRules : 0,\n\t\t\tnoDuplicateDeclarations : 0,\n\t\t\tnoZerosShortened: 0,\n\t\t\tnoNamedColorsShortened: 0,\n\t\t\tnoHexColorsShortened: 0,\n\t\t\tnoRGBColorsShortened: 0,\n\t\t\tnoHSLColorsShortened: 0,\n\t\t\tnoFontsShortened: 0,\n\t\t\tnoBackgroundsShortened: 0,\n\t\t\tnoMarginsShortened: 0,\n\t\t\tnoPaddingsShortened: 0,\n\t\t\tnoListStylesShortened: 0,\n\t\t\tnoOutlinesShortened: 0,\n\t\t\tnoBordersShortened: 0,\n\t\t\tnoBorderTopsShortened: 0,\n\t\t\tnoBorderRightsShortened: 0,\n\t\t\tnoBorderBottomsShortened: 0,\n\t\t\tnoBorderLeftsShortened: 0,\n\t\t\tnoBorderRadiusShortened: 0,\n\t\t\tnoLastSemiColonsTrimmed: 0,\n\t\t\tnoInlineCommentsTrimmed: 0,\n\t\t\tnoReductions: {\n\t\t\t\tnoNodes : 0,\n\t\t\t\tnoRules : 0,\n\t\t\t\tnoDeclarations : 0,\n\t\t\t\tnoComments : 0,\n\t\t\t\tnoCharset : 0,\n\t\t\t\tnoCustomMedia : 0,\n\t\t\t\tnoDocument : 0,\n\t\t\t\tnoFontFace : 0,\n\t\t\t\tnoHost : 0,\n\t\t\t\tnoImport : 0,\n\t\t\t\tnoKeyframes : 0,\n\t\t\t\tnoKeyframe : 0,\n\t\t\t\tnoMedia : 0,\n\t\t\t\tnoNamespace : 0,\n\t\t\t\tnoPage : 0,\n\t\t\t\tnoSupports : 0\n\t\t\t}\n\t\t}\n\t};\n\n\t/* read declaration reduce lists */\n\n\tvar CONFIG_REDUCE_DECLARATIONS = 'config_reduce_declarations.json';\n\tvar hasReadReduceDeclarations = false;\n\n\tvar reduceRulesListSelector = '';\n\tvar reduceRulesListSelectorPName = [];\n\tvar reduceRulesListSelectorCount = 0;\n\tvar reduceRulesListName = [\n\t\t\t\"font\",\n\t\t\t\"margin\",\n\t\t\t\"padding\",\n\t\t\t\"list-style\",\n\t\t\t\"outline\",\n\t\t\t\"border\",\n\t\t\t\"border-top\",\n\t\t\t\"border-right\",\n\t\t\t\"border-bottom\",\n\t\t\t\"border-left\",\n\t\t\t\"border-radius\",\n\t\t\t\"border-color\",\n\t\t\t\"border-top-color\",\n\t\t\t\"border-right-color\",\n\t\t\t\"border-bottom-color\",\n\t\t\t\"border-left-color\",\n\t\t\t\"color\",\n\t\t\t\"background-color\",\n\t\t\t\"font-color\",\n\t\t\t\"outline-color\",\n\t\t\t\"box-shadow\",\n\t\t\t\"text-shadow\",\n\t\t\t\"float\",\n\t\t\t\"font-family\",\n\t\t\t\"font-size\",\n\t\t\t\"font-weight\",\n\t\t\t\"font-style\",\n\t\t\t\"font-variant\",\n\t\t\t\"font-stretch\"\n\t\t];\n\tvar reduceRulesListNameCount = reduceRulesListName.length;\n\n\n\n\n\tvar configFileLocation = 'config_css.json';\n\tvar fileLocation = 'demo/test1.css';\n\tvar outputFileLocation = 'demo/test1_out.css';\n\n\tvar htmlFileLocation = '';\n\n\n\tvar readStream;\n\tvar readHTMLStream;\n\tvar readJSStream;\n\tvar readCSSFileCount = 0;\n\tvar readHTMLFileCount = 0;\n\tvar readJSFileCount = 0;\n\tvar filesizeKB = 0;\n\tvar filesizeKBHTML = 0;\n\tvar filesizeKBJS = 0;\n\n\n\tvar tokenex = null;\n\n\n\tvar font = null, fontProps = null, fontValues = null, fontIndex = 0, hasFont = false,\n\t\t\tfontPropsOutput = [], fontValuesOutput = [], fontTmpIdx = null, fontTmpVal = null,\n\t\t\tfontVal = null, fontHasImportant = false, fontHasInherit = false;\n\tvar background = null, backgroundProps = null, backgroundValues = null, backgroundIndex = 0,\n\t\t\tbackgroundTmp = null, backgroundTmp2 = null, hasBackground = false, hasMultipleBackgrounds = false,\n\t\t\thasGradient = false, backgroundHasImportant = false,\n\t\t\tbackgroundPropsOutput = [], backgroundValuesOutput = [], backgroundTmpIdx = null, \n\t\t\tbackgroundHasInherit = false;\n\tvar margin = null, marginProps = null, marginValues = null, marginIndex = 0,\n\t\t\tmarginLeftIdx = null, marginRightIdx = null, marginRightLeftVal = null,\n\t\t\tmarginTopIdx = null, marginBottomIdx = null, marginTopBottomVal = null,\n\t\t\tmarginSingleMerge = false, marginTmp = null, hasMargin = false,\n\t\t\tmarginPropsOutput = [], marginValuesOutput = [], marginTmpIdx = null, marginTmpVal = null,\n\t\t\tmarginHasImportant = false, marginHasInherit = false;\n\tvar padding = null, paddingProps = null, paddingValues = null, paddingIndex = 0,\n\t\t\tpaddingLeftIdx = null, paddingRightIdx = null, paddingRightLeftVal = null,\n\t\t\tpaddingTopIdx = null, paddingBottomIdx = null, paddingTopBottomVal = null,\n\t\t\tpaddingSingleMerge = false, paddingTmp = null, hasPadding = false,\n\t\t\tpaddingPropsOutput = [], paddingValuesOutput = [], paddingTmpIdx = null,\n\t\t\tpaddingHasImportant = false, paddingHasInherit = false;\n\tvar listStyle = null, listStyleProps = null, listStyleValues = null, listStyleIndex = 0,\n\t\t\tlistStyleTmp = null, listStyleTmp2 = null, hasListStyle = false,\n\t\t\tlistStylePropsOutput = [], listStyleValuesOutput = [], listStyleTmpIdx = null,\n\t\t\tlistStyleHasImportant = false, listStyleHasInherit = false;\n\tvar outline = null, outlineProps = null, outlineValues = null, outlineIndex = 0,\n\t\t\toutlineTmp = null, outlineTmp2 = null, hasOutline = false,\n\t\t\toutlinePropsOutput = [], outlineValuesOutput = [], outlineTmpIdx = null,\n\t\t\toutlineHasImportant = false, outlineHasInherit = false;\n\tvar border = null, borderProps = null, borderValues = null, borderIndex = 0,\n\t\t\tborderTmp = null, borderTmp2 = null, hasBorder = false,\n\t\t\tborderPropsOutput = [], borderValuesOutput = [], borderTmpIdx = null\n\t\t\tborderIsBeforeAfter = null, borderHasImportant = false, \n\t\t\tborderHasInherit = false;\n\tvar borderTop = null, borderTopProps = null, borderTopValues = null, borderTopIndex = 0,\n\t\t\tborderTopTmp = null, borderTopTmp2 = null, hasBorderTop = false,\n\t\t\tborderTopPropsOutput = [], borderTopValuesOutput = [], borderTopTmpIdx = null,\n\t\t\tborderTopHasImportant = false, borderTopHasInherit = false;\n\tvar borderRight = null, borderRightProps = null, borderRightValues = null, borderRightIndex = 0,\n\t\t\tborderRightTmp = null, borderRightTmp2 = null, hasBorderRight = false,\n\t\t\tborderRightPropsOutput = [], borderRightValuesOutput = [], borderRightTmpIdx = null, \n\t\t\tborderRightHasImportant = false, borderRightHasInherit = false;\n\tvar borderBottom = null, borderBottomProps = null, borderBottomValues = null, borderBottomIndex = 0,\n\t\t\tborderBottomTmp = null, borderBottomTmp2 = null, hasBorderBottom = false,\n\t\t\tborderBottomPropsOutput = [], borderBottomValuesOutput = [], borderBottomTmpIdx = null,\n\t\t\tborderBottomHasImportant = false, borderBottomHasInherit = false;\n\tvar borderLeft = null, borderLeftProps = null, borderLeftValues = null, borderLeftIndex = 0,\n\t\t\tborderLeftTmp = null, borderLeftTmp2 = null, hasBorderLeft = false,\n\t\t\tborderLeftPropsOutput = [], borderLeftValuesOutput = [], borderLeftTmpIdx = null,\n\t\t\tborderLeftHasImportant = false, borderLeftHasInherit = false;\n\tvar borderRadius = null, borderRadiusProps = null, borderRadiusValues = null, borderRadiusIndex = 0,\n\t\t\tborderRadiusLeftIdx = null, borderRadiusRightIdx = null, borderRadiusRightLeftVal = null,\n\t\t\tborderRadiusTopIdx = null, borderRadiusBottomIdx = null, borderRadiusTopBottomVal = null,\n\t\t\tborderRadiusSingleMerge = false, borderRadiusTmp = null, borderRadiusTmp2 = null, hasBorderRadius = false,\n\t\t\tborderRadiusPropsOutput = [], borderRadiusValuesOutput = [], borderRadiusTmpIdx = null,\n\t\t\tborderRadiusHasImportant = false, borderRadiusHasInherit = false;\n\n\tvar tmpVal = 0;\n\tvar tokens_comments = [];\n\tvar token3_chars = [];\n\tvar token4_vals = [];\n\tvar token5_vals = [];\n\tvar token6_vals = [];\n\tvar token7_vals = [];\n\n\n\tvar g = 0, h = 0, i = 0, j = 0, k = 0, l = 0, m = 0, o = 0, dCount = 0, rCount = 0, cCount = 0;\n\tvar ilen = 0, jlen = 0, klen = 0, llen = 0, mlen = 0, olen = 0;\n\n\n\tvar colors = {\n\t\t'aqua' : '#0ff',\n\t\t'#00ffff' : '#0ff',\n\t\t'black' : '#000',\n\t\t'#000000' : '#000',\n\t\t'blue' : '#00f',\n\t\t'#0000ff' : '#00f',\n\t\t'fuchsia' : '#f0f',\n\t\t'#ff00ff' : '#f0f',\n\t\t'grey'\t\t: 'grey',\n\t\t'green'\t\t: 'green',\n\t\t'#808080' : 'grey', //grey / gray\n\t\t'#008000' : 'green',\n\t\t'lime' : '#0f0',\n\t\t'#00ff00' : '#0f0',\n\t\t'#800000' : 'maroon',\n\t\t'#000080' : 'navy',\n\t\t'#808000' : 'olive',\n\t\t'#800080' : 'purple',\n\t\t'#ff0000' : 'red',\n\t\t'maroon' : 'maroon',\n\t\t'navy' : 'navy',\n\t\t'olive' : 'olive',\n\t\t'purple' : 'purple',\n\t\t'red' : 'red',\n\t\t'#f00' : 'red',\n\t\t'silver' : 'silver',\n\t\t'teal' : 'teal',\n\t\t'#c0c0c0' : 'silver',\n\t\t'#008080' : 'teal',\n\t\t'white' : '#fff',\n\t\t'#ffffff' : '#fff',\n\t\t'yellow': '#ff0',\n\t\t'#ffff00': '#ff0'\n\t};\n\n\tvar extended_colors = {\n\t\t'aliceblue' : '#f0f8ff',\n\t\t'antiquewhite': '#faebd7',\n\t  'aquamarine': '#7fffd4',\n\t  'azure': 'azure',\n\t  'beige': 'beige',\n\t  'bisque': 'bisque',\n\t  '#f0ffff': 'azure',\n\t  '#f5f5dc': 'beige',\n\t  '#ffe4c4': 'bisque',\n\t  'blanchedalmond': '#ffebcd',\n\t  'blueviolet': '#8a2be2',\n\t  'brown': 'brown',\n\t  '#a52a2a': 'brown',\n\t  'burlywood': '#deb887',\n\t  'cadetblue': '#5f9ea0',\n\t  'chartreuse': '#7fff00',\n\t  'chocolate': '#d2691e',\n\t  'coral': 'coral',\n\t  '#ff7f50': 'coral',\n\t  'cornflowerblue': '#6495ed',\n\t  'cornsilk': '#fff8dc',\n\t  'crimson': '#dc143c',\n\t  'cyan': '#0ff',\n\t  'darkblue': '#00008b',\n\t  'darkcyan': '#008b8b',\n\t  'darkgoldenrod': '#b8860b',\n\t  'darkgray': '#a9a9a9',\n\t  'darkgreen': '#006400',\n\t  'darkgrey': '#a9a9a9',\n\t  'darkkhaki': '#bdb76b',\n\t  'darkmagenta': '#8b008b',\n\t  'darkolivegreen': '#556b2f',\n\t  'darkorange': '#ff8c00',\n\t  'darkorchid': '#9932cc',\n\t  'darkred': '#8b0000',\n\t  'darksalmon': '#e9967a',\n\t  'darkseagreen': '#8fbc8f',\n\t  'darkslateblue': '#483d8b',\n\t  'darkslategray': '#2f4f4f',\n\t  'darkslategrey': '#2f4f4f',\n\t  'darkturquoise': '#00ced1',\n\t  'darkviolet': '#9400d3',\n\t  'deeppink': '#ff1493',\n\t  'deepskyblue': '#00bfff',\n\t  'dimgray': '#696969',\n\t  'dimgrey': '#696969',\n\t  'dodgerblue': '#1e90ff',\n\t  'firebrick': '#b22222',\n\t  'floralwhite': '#fffaf0',\n\t  'forestgreen': '#228b22',\n\t  'gainsboro': '#dcdcdc',\n\t  'ghostwhite': '#f8f8ff',\n\t  'gold': 'gold',\n\t  '#ffd700': 'gold',\n\t  'goldenrod': '#daa520',\n\t  'greenyellow': '#adff2f',\n\t  'honeydew': '#f0fff0',\n\t  'hotpink': '#ff69b4',\n\t  'indianred': '#cd5c5c',\n\t  'indigo': 'indigo',\n\t  'ivory': 'ivory',\n\t  'khaki': 'khaki',\n\t  '#4b0082': 'indigo',\n\t  '#fffff0': 'ivory',\n\t  '#f0e68c': 'khaki',\n\t  'lavender': '#e6e6fa',\n\t  'lavenderblush': '#fff0f5',\n\t  'lawngreen': '#7cfc00',\n\t  'lemonchiffon': '#fffacd',\n\t  'lightblue': '#add8e6',\n\t  'lightcoral': '#f08080',\n\t  'lightcyan': '#e0ffff',\n\t  'lightgoldenrodyellow': '#fafad2',\n\t  'lightgray': '#d3d3d3',\n\t  'lightgreen': '#90ee90',\n\t  'lightgrey': '#d3d3d3',\n\t  'lightpink': '#ffb6c1',\n\t  'lightsalmon': '#ffa07a',\n\t  'lightseagreen': '#20b2aa',\n\t  'lightskyblue': '#87cefa',\n\t  'lightslategray': '#789',\n\t  'lightslategrey': '#789',\n\t  'lightsteelblue': '#b0c4de',\n\t  'lightyellow': '#ffffe0',\n\t  'limegreen': '#32cd32',\n\t  'linen': 'linen',\n\t  '#faf0e6': 'linen',\n\t  'magenta': '#ff00ff',\n\t  'mediumaquamarine': '#66cdaa',\n\t  'mediumblue': '#0000cd',\n\t  'mediumorchid': '#ba55d3',\n\t  'mediumpurple': '#9370db',\n\t  'mediumseagreen': '#3cb371',\n\t  'mediumslateblue': '#7b68ee',\n\t  'mediumspringgreen': '#00fa9a',\n\t  'mediumturquoise': '#48d1cc',\n\t  'mediumvioletred': '#c71585',\n\t  'midnightblue': '#191970',\n\t  'mintcream': '#f5fffa',\n\t  'mistyrose': '#ffe4e1',\n\t  'moccasin': '#ffe4b5',\n\t  'navajowhite': '#ffdead',\n\t  'oldlace': '#fdf5e6',\n\t  'olivedrab': '#6b8e23',\n\t  'orange': '#ffa500',\n\t  'orangered': '#ff4500',\n\t  'orchid': '#da70d6',\n\t  'palegoldenrod': '#eee8aa',\n\t  'palegreen': '#98fb98',\n\t  'paleturquoise': '#afeeee',\n\t  'palevioletred': '#db7093',\n\t  'papayawhip': '#ffefd5',\n\t  'peachpuff': '#ffdab9',\n\t  'peru': 'peru',\n\t  'pink': 'pink',\n\t  'plum': 'plum',\n\t  '#cd853f': 'peru',\n\t  '#ffc0cb': 'pink',\n\t  '#dda0dd': 'plum',\n\t  'powderblue': '#b0e0e6',\n\t  'rebeccapurple': '#639',\n\t  'rosybrown': '#bc8f8f',\n\t  'royalblue': '#4169e1',\n\t  'saddlebrown': '#8b4513',\n\t  'salmon': 'salmon',\n\t  '#fa8072': 'salmon',\n\t  'sandybrown': '#f4a460',\n\t  'seagreen': '#2e8b57',\n\t  'seashell': '#fff5ee',\n\t  'sienna': 'sienna',\n\t  '#a0522d': 'sienna',\n\t  'skyblue': '#87ceeb',\n\t  'slateblue': '#6a5acd',\n\t  'slategray': '#708090',\n\t  'slategrey': '#708090',\n\t  'snow': 'snow',\n\t  '#fffafa': 'snow',\n\t  'springgreen': '#00ff7f',\n\t  'steelblue': '#4682b4',\n\t  'tan': 'tan',\n\t  '#d2b48c': 'tan',\n\t  'thistle': '#d8bfd8',\n\t  'tomato': 'tomato',\n\t  '#ff6347': 'tomato',\n\t  'turquoise': '#40e0d0',\n\t  'violet': 'violet',\n\t  '#ee82ee': 'violet',\n\t  'wheat': 'wheat',\n\t  '#f5deb3': 'wheat',\n\t  'whitesmoke': '#f5f5f5',\n\t  'yellowgreen': '#9acd32'\n\t};\n\n\tvar rgbRes = null, hslRes = null;\n\tvar cnum = 0, cr = 0, cg = 0, cb = 0, ch = 0, cs = 0, cl = 0;\n\tvar has_changed = false, colorPos = 0, key = null;\n\tvar colorex = null;\n\tvar hexMatch = null;\n\tvar valueInBefore = null;\n\n\tfunction processColor(valueIn, selectorsIn = '') {\n\t\t\n\t\tif (valueIn !== undefined) {\n\n\t\t\thas_changed = false;\n\t\t\tcolorPos = 0;\n\n\t\t\t//named\n\t\t\tif (OPTIONS.shorten_hexcolor_extended_names || OPTIONS.shorten) {\n\t\t\t\t\n\t\t\t\tfor (key in extended_colors) {\n\n\t\t\t    if (!extended_colors.hasOwnProperty(key)) continue;\n\t\t\t    \n\t\t\t    colorPos = valueIn.toLowerCase().indexOf(key, colorPos);\n\n\t\t\t    while (colorPos != -1) {\n\n\t\t\t    \tcolorex = new RegExp(key + \"(?![\\\"\\'.a-zA-Z0-9_-])\", \"g\"); //global for multiple colors e.g. gradient\n\t\t\t    \t\n\t\t\t    \tvalueInBefore = valueIn;\n\t\t\t    \tvalueIn = valueIn.replace(colorex, function(capture){\n\t\t\t    \t\tcapture = capture.trim();\n\t\t\t    \t\treturn '' +\n\t\t\t    \t\t\t(capture.substring(0,1) == '(' ? '(' : '') +\n\t\t\t    \t\t\t((OPTIONS.shorten_hexcolor_UPPERCASE) ? extended_colors[key].toUpperCase() : extended_colors[key]) +\n\t\t\t    \t\t\t(capture.substring(capture.length-1,capture.length) == ',' ? ',' : '') +\n\t\t\t    \t\t\t(capture.substring(capture.length-1,capture.length) == ')' ? ')' : '')\n\t\t\t    \t\t;\n\t\t\t    \t});\n\t\t\t    \tvalueIn = valueIn.trim();\n\t\t\t    \t\n\t\t\t    \tcolorPos = valueIn.toLowerCase().indexOf(colorex, colorPos);\n\n\t\t\t    \tif (valueInBefore != valueIn) {\n\t\t\t    \t\thas_changed = true;\n\n\t\t\t\t    \tsummary.stats.summary.noNamedColorsShortened += 1;\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Named Color : ' + (selectorsIn ? selectorsIn.join(', ') : ''))); }\n\t\t\t    \t}\n\t\t\t    }\n\n\t\t\t    colorPos = 0;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (key in colors) {\n\n\t\t    if (!colors.hasOwnProperty(key)) continue;\n\t\t    \t\t\t\t\t\t    \n\t\t    colorPos = valueIn.toLowerCase().indexOf(key, colorPos);\n\n\t\t    while (colorPos != -1) {\n\n\t\t    \tcolorex = new RegExp(key + \"(?![\\\"\\'.a-zA-Z0-9_-])\", \"g\"); //global for multiple colors e.g. gradient\n\n\t\t    \tvalueInBefore = valueIn;\n\t\t    \tvalueIn = valueIn.replace(colorex, function(capture){\n\t\t\t    \t\tcapture = capture.trim();\n\n\t\t    \t\treturn '' +\n\t\t\t    \t\t(capture.substring(0,1) == '(' ? '(' : '') +\n\t\t\t    \t\t((OPTIONS.shorten_hexcolor_UPPERCASE) ? colors[key].toUpperCase() : colors[key] ) +\n\t\t\t    \t\t(capture.substring(capture.length-1,capture.length) == ',' ? ',' : '') +\n\t\t\t    \t\t(capture.substring(capture.length-1,capture.length) == ')' ? ')' : '')\n\t\t    \t\t;\n\t\t    \t});\n\t\t    \tvalueIn = valueIn.trim();\n\n\t\t    \tcolorPos = valueIn.toLowerCase().indexOf(colorex, colorPos);\n\n\t\t    \tif (valueInBefore != valueIn) {\n\n\t\t\t    \thas_changed = true;\n\n\t\t\t    \tsummary.stats.summary.noNamedColorsShortened += 1;\n\n\t\t\t    \tif (OPTIONS.verbose) { console.log(success('Process - Values - Named Color : ' + (selectorsIn ? selectorsIn.join(', ') : ''))); }\n\t\t    \t}\n\t\t    }\n\t\t\t\t\n\t\t\t\tcolorPos = 0;\n\t\t\t}\n\n\t\t\tif (!has_changed) {\n\t\t\t\t\n\t\t\t\t//rgb to hex\n\t\t\t\tif (rgbRes=/(rgb)[(]\\s*([\\d.]+\\s*%?)\\s*,\\s*([\\d.]+\\s*%?)\\s*,\\s*([\\d.]+\\s*%?)\\s*(?:,\\s*([\\d.]+)\\s*)?[)]/g.exec(valueIn)) {\n\t\t\t\t\t\n\t\t\t\t\tcr = componentFromStr(rgbRes[2], 255);\n\t\t\t\t\tcg = componentFromStr(rgbRes[3], 255);\n\t\t\t\t\tcb = componentFromStr(rgbRes[4], 255);\n\t\t      \n\t\t\t\t\tvalueIn = \"#\" + ((1 << 24) + (cr << 16) + (cg << 8) + cb).toString(16).slice(1);\n\t\t    \tsummary.stats.summary.noRGBColorsShortened += 1;\n\n\t\t\t\t\tif (OPTIONS.shorten_hexcolor_UPPERCASE) {\n\t\t\t\t\t\tvalueIn = valueIn.toUpperCase();\n\t\t\t\t\t}\n\t\t    \tif (OPTIONS.verbose) { console.log(success('Process - Values - RGB Color : ' + (selectorsIn ? selectorsIn.join(', ') : ''))); }\n\t\t\t\t}\n\n\t\t\t\t//hsl to hex\n\t\t\t\tif (hslRes=/(hsl)[(]\\s*([\\d.]+\\s*%?)\\s*,\\s*([\\d.]+\\s*%?)\\s*,\\s*([\\d.]+\\s*%?)\\s*(?:,\\s*([\\d.]+)\\s*)?[)]$/.exec(valueIn)) {\n\t\t\t\t\t\n\t\t\t\t\tch = componentFromStr(hslRes[2], 360);\n\t\t\t\t\tcs = componentFromStr(hslRes[3], 100);\n\t\t\t\t\tcl = componentFromStr(hslRes[4], 100);\n\t\t      rgbRes = hslToRgb(ch/360,cs/100,cl/100);\n\t\t\t\t\tcr = rgbRes[0];\n\t\t\t\t\tcg = rgbRes[1];\n\t\t\t\t\tcb = rgbRes[2];\n\t\t\t\t\tvalueIn = \"#\" + ((1 << 24) + (cr << 16) + (cg << 8) + cb).toString(16).slice(1);\n\n\t\t    \tsummary.stats.summary.noHSLColorsShortened += 1;\n\n\t\t\t\t\tif (OPTIONS.shorten_hexcolor_UPPERCASE) {\n\t\t\t\t\t\tvalueIn = valueIn.toUpperCase();\n\t\t\t\t\t}\n\t\t    \tif (OPTIONS.verbose) { console.log(success('Process - Values - HSL Color : ' + (selectorsIn ? selectorsIn.join(', ') : ''))); }\n\t\t\t\t}\n\n\t\t\t\t//hex\n\t\t\t\tif (hexMatch = /#(.)\\1\\1\\1\\1\\1/.exec(valueIn)) { //#aaaaaa\n\t\t\t\t\tvalueIn = valueIn.replace(hexMatch[0], hexMatch[0].substr(0,4)); //#aaa\n\t\t    \tsummary.stats.summary.noHexColorsShortened += 1;\n\t\t\t\t\tif (OPTIONS.shorten_hexcolor_UPPERCASE) {\n\t\t\t\t\t\tvalueIn = valueIn.toUpperCase();\n\t\t\t\t\t}\n\t\t    \tif (OPTIONS.verbose) { console.log(success('Process - Values - Hex Color : ' + (selectorsIn ? selectorsIn.join(', ') : ''))); }\n\t\t\t\t}\n\n\t\t\t\t//hex pairs\n\t\t\t\tif ( hexMatch = /(#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2}))/.exec(valueIn) ) {\n\t\t\t\t\tif (\n\t\t\t\t\t\thexMatch[2][0] == hexMatch[2][1]\n\t\t\t\t\t\t&& hexMatch[3][0] == hexMatch[3][1]\n\t\t\t\t\t\t&& hexMatch[4][0] == hexMatch[4][1]\n\t\t\t\t\t) {\n\t\t\t\t\t\tvalueIn = valueIn.replace(hexMatch[0], '#' + hexMatch[2][0] + hexMatch[3][0] + hexMatch[4][0]); //#aaa\n\t\t\t    \tsummary.stats.summary.noHexColorsShortened += 1;\n\n\t\t\t\t\t\tif (OPTIONS.shorten_hexcolor_UPPERCASE) {\n\t\t\t\t\t\t\tvalueIn = valueIn.toUpperCase();\n\t\t\t\t\t\t}\n\t\t\t    \tif (OPTIONS.verbose) { console.log(success('Process - Values - Hex Color : ' + (selectorsIn ? selectorsIn.join(', ') : ''))); }\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn valueIn;\n\t}\n\n\n\tfunction componentFromStr(numStr, max) {\n\n\t\tcnum = 0;\n\t\tif (/%$/g.test(numStr)) { //is percentage\n\t\t\tcnum = Math.floor(max * (parseFloat(numStr) / 100.0));\n\t\t} else {\n\t\t\tcnum = parseInt(numStr);\n\t\t}\n\t\treturn cnum;\n\t}\n\n\t/**\n\t * Converts an HSL color value to RGB. Conversion formula\n\t * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n\t * Assumes h, s, and l are contained in the set [0, 1] and\n\t * returns r, g, and b in the set [0, 255].\n\t *\n\t * @param   {number}  h       The hue\n\t * @param   {number}  s       The saturation\n\t * @param   {number}  l       The lightness\n\t * @return  {Array}           The RGB representation\n\t */\n\tfunction hslToRgb(h, s, l){\n\t    var r, g, b;\n\n\t    if(s == 0){\n\t        r = g = b = l; // achromatic\n\t    }else{\n\t        var hue2rgb = function hue2rgb(p, q, t){\n\t            if(t < 0) t += 1;\n\t            if(t > 1) t -= 1;\n\t            if(t < 1/6.0) return p + (q - p) * 6 * t;\n\t            if(t < 1/2.0) return q;\n\t            if(t < 2/3.0) return p + (q - p) * (2/3.0 - t) * 6;\n\t            return p;\n\t        }\n\n\t        var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n\t        var p = 2 * l - q;\n\t        r = hue2rgb(p, q, h + 1/3.0);\n\t        g = hue2rgb(p, q, h);\n\t        b = hue2rgb(p, q, h - 1/3.0);\n\t    }\n\t    return [\n\t\t    Math.min(Math.floor(r*256),255), \n\t\t    Math.min(Math.floor(g*256),255), \n\t\t    Math.min(Math.floor(b*256),255)\n\t    ];\n\t}\n\n\t// function \n\n\tfunction getValueOfFontProp(valueIn, prop, position) {\n\t\tif (valueIn !== '') {\n\t\t\ttry {\n\t\t\t\tvar value = parseCssFont(valueIn)[prop];\n\t\t\t\tvalue = (value == 'normal') ? '' : value;\n\t\t\t\treturn value;\n\t\t\t} catch(err) {\n\t\t\t\tif (\n\t\t\t\t\terr.message.indexOf('Missing required font-size.') != -1\n\t\t\t\t\t// && prop != 'size'\n\t\t\t\t) {\n\n\t\t\t\t\treturn 'check size';\n\t\t\t\t} else if (\n\t\t\t\t\terr.message.indexOf('Missing required font-family.') != -1\n\t\t\t\t\t// && prop != 'family'\n\t\t\t\t) {\n\n\t\t\t\t\treturn 'check family';\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log(error('Error Parsing Font Declaration'));\n\t\t\t\t\tconsole.log(error2('Source: ' + position.source))\n\t\t\t\t\tconsole.log(error2('Line: ' + position.start.line + ', column: ' + position.start.column))\n\t\t\t\t\tconsole.log(err)\n\t\t\t\t\tprocess.exit(1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\t}\n\n\tfunction getValueOfTriProp(valueIn, prop) {\n\t\t// console.log(valueIn, prop)\n\t\tswitch(prop) {\n\t\t\tcase 'type':\n\t\t\t\tvar value = valueIn.match(/\\bnone\\b|\\bcircle\\b|\\bdisc\\b|\\bsquare\\b|\\barmenian\\b|\\bcjk-ideographic\\b|\\bdecimal\\b|\\bdecimal-leading-zero\\b|\\bgeorgian\\b|\\bhebrew\\b|\\bhiragana\\b|\\bhiragana-iroha\\b|\\bkatakana\\b|\\bkatakana-iroha\\b|\\blower-alpha\\b|\\blower-greek\\b|\\blower-latin\\b|\\blower-roman\\b|\\bupper-alpha\\b|\\bupper-greek\\b|\\bupper-latin\\b|\\bupper-roman\\b/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'position':\n\t\t\t\tvar value = valueIn.match(/\\binside\\b|\\boutside\\b/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'image':\n\t\t\t\tvar value = valueIn.match(/(url\\()(.*)(\\))|\\bnone\\b/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'style':\n\t\t\t\tvar value = valueIn.match(/\\bnone\\b|\\bhidden\\b|\\bdotted\\b|\\bdashed\\b|\\bsolid\\b|\\bdouble\\b|\\bgroove\\b|\\bridge\\b|\\binset\\b|\\boutset\\b/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'color':\n\t\t\t\t\n\t\t\t\t//check for hex, rgb, hsl\n\t\t\t\tvar value = valueIn.match(/\\btransparent\\b|(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\\((-?\\d+%?[,\\s]+){2,3}\\s*[\\d\\.]+%?\\))/i);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t}\n\n\t\t\t\t//check extended colors\n\t\t\t\tfor (o in extended_colors) {\n\t\t\t\t\tcolorex = new RegExp( \"(^|[^\\\"\\'.a-z0-9_-])\" + o + \"([^\\\"\\'.a-z0-9_-]|$)\");\n\t\t\t\t\tif (valueIn.match(colorex) !== null) {\n\t\t\t\t\t\treturn o;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//check normal colors\n\t\t\t\tfor (o in colors) {\n\t\t\t\t\tcolorex = new RegExp( \"(^|[^\\\"\\'.a-z0-9_-])\" + o + \"([^\\\"\\'.a-z0-9_-]|$)\");\n\t\t\t\t\tif (valueIn.match(colorex) !== null) {\n\t\t\t\t\t\treturn o;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\t\t\tcase 'width':\n\n\t\t\t\tvar value = valueIn.match(/\\bmedium\\b|\\bthin\\b|\\bthick\\b|\\b0\\b|(([0-9][.]?)+(pt|pc|px|in|cm|mm|q|cap|em|ex|rem|ic|lh|rlh|vh|vw|vi|vb|vmin|vmax))/g);\n\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction getValueOfSquareProp(valueIn, side) {\n\t\tvar value = valueIn.split(' ');\n\t\tswitch(value.length) {\n\t\t\tcase 1: return value[0];\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\tswitch(side) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\tcase 'topleft':\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\tcase 'bottomright':\n\t\t\t\t\t\treturn value[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\tcase 'topright':\n\t\t\t\t\tcase 'left':\n\t\t\t\t\tcase 'bottomleft':\n\t\t\t\t\t\treturn value[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tswitch(side) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\tcase 'topleft':\n\t\t\t\t\t\treturn value[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\tcase 'topright':\n\t\t\t\t\tcase 'left':\n\t\t\t\t\tcase 'bottomleft':\n\t\t\t\t\t\treturn value[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\tcase 'bottomright':\n\t\t\t\t\t\treturn value[2];\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tswitch(side) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\tcase 'topleft':\n\t\t\t\t\t\treturn value[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\tcase 'topright':\n\t\t\t\t\t\treturn value[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\tcase 'bottomright':\n\t\t\t\t\t\treturn value[2];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\tcase 'bottomleft':\n\t\t\t\t\t\treturn value[3];\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn '';\n\t}\n\n\tfunction getBackgroundProp(backgroundStrIn, prop) {\n\t\t// console.log(backgroundStrIn, prop);\n\t\tswitch(prop) {\n\t\t\tcase 'image':\n\t\t\t\tvar value = backgroundStrIn.match(/(url\\()(.*)(\\))|\\bnone\\b/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'repeat':\n\t\t\t\tvar value = backgroundStrIn.match(/\\brepeat-x\\b|\\brepeat-y\\b|(\\brepeat|\\bspace\\b|\\bround\\b|\\bno-repeat\\b){1,2}/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'attachment':\n\t\t\t\tvar value = backgroundStrIn.match(/\\bscroll\\b|\\bfixed\\b|\\blocal\\b/g);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'position':\n\t\t\t\tif (backgroundStrIn.indexOf('#') == -1) {\n\t\t\t\t\tvar value = backgroundStrIn.match(/(\\bleft\\b|\\bcenter\\b|\\bright\\b|\\btop\\b|\\bbottom\\b|\\b0\\b|((([0-9][.]?)+(pt|pc|px|in|cm|mm|q|cap|em|ex|rem|ic|lh|rlh|vh|vw|vi|vb|vmin|vmax))|(([0-9][.]?)+%)))|((\\bleft\\b|\\bcenter\\b|\\bright\\b|\\b0\\b|((([0-9][.]?)+(pt|pc|px|in|cm|mm|q|cap|em|ex|rem|ic|lh|rlh|vh|vw|vi|vb|vmin|vmax))|(([0-9][.]?)+%))) (\\btop\\b|\\bcenter\\b|\\bbottom\\b|\\b0\\b|((([0-9][.]?)+(pt|pc|px|in|cm|mm|q|cap|em|ex|rem|ic|lh|rlh|vh|vw|vi|vb|vmin|vmax))|(([0-9][.]?)+%))))|(\\bcenter\\b|(\\bleft\\b|\\bright\\b \\b0\\b|((([0-9][.]?)+(pt|pc|px|in|cm|mm|q|cap|em|ex|rem|ic|lh|rlh|vh|vw|vi|vb|vmin|vmax))|(([0-9][.]?)+%))))(\\bcenter\\b|(\\btop\\b|\\bbottom\\b \\b0\\b|((([0-9][.]?)+(pt|pc|px|in|cm|mm|q|cap|em|ex|rem|ic|lh|rlh|vh|vw|vi|vb|vmin|vmax))|(([0-9][.]?)+%))))/g);\n\t\t\t\t} else {\n\t\t\t\t\tvar value = null;\n\t\t\t\t}\n\t\t\t\tvar value2 = '';\n\t\t\t\tif (value !== null) {\n\t\t\t\t\tfor (o in value) {\n\t\t\t\t\t\tif (value[o] == '0') {\n\t\t\t\t\t\t\tvalue2 += value[o] + ' ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (value2 != '') {\n\t\t\t\t\t\treturn value2.trim();\n\t\t\t\t\t} \n\t\t\t\t\treturn value[0];\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'color':\n\t\t\t\n\t\t\t\t//check for hex, rgb, hsl\n\t\t\t\tvar value = backgroundStrIn.match(/\\btransparent\\b|(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\\((-?\\d+%?[,\\s]+){2,3}\\s*[\\d\\.]+%?\\))/i);\n\t\t\t\tif (value !== null) {\n\t\t\t\t\treturn value[0];\n\t\t\t\t}\n\n\t\t\t\t//check extended colors\n\t\t\t\tfor (o in extended_colors) {\n\t\t\t\t\tcolorex = new RegExp( \"(^|[^\\\"\\'.a-z0-9_-])\" + o + \"([^\\\"\\'.a-z0-9_-]|$)\");\n\t\t\t\t\tif (backgroundStrIn.match(colorex) !== null) {\n\t\t\t\t\t\treturn o;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//check normal colors\n\t\t\t\tfor (o in colors) {\n\t\t\t\t\tcolorex = new RegExp( \"(^|[^\\\"\\'.a-z0-9_-])\" + o + \"([^\\\"\\'.a-z0-9_-]|$)\");\n\t\t\t\t\tif (backgroundStrIn.match(colorex) !== null) {\n\t\t\t\t\t\treturn o;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\treturn '';\t\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction replaceAt(str,index,chr) {\n\t    if(index > str.length-1) return str;\n\t    return str.substr(0,index) + chr + str.substr(index+2);\n\t}\n\n\tfunction moveArrayEl(array, from, to) {\n\t    array.splice(to, 0, array.splice(from, 1)[0]);\n\t}\n\n\tfunction getFilesizeInKiloBytes(filename) {\n\t\tvar stats = fs.statSync(filename);\n\t\tvar fileSizeInBytes = stats[\"size\"];\n\t\treturn (fileSizeInBytes ? fileSizeInBytes : 0) / 1000;\n\t}\n\n\t//UTF8 assumed\n\tfunction kiloByteLength(str) {\n\t  // returns the byte length of an utf8 string\n\t  var s = str.length;\n\t  for (var i=str.length-1; i>=0; i--) {\n\t    var code = str.charCodeAt(i);\n\t    if (code > 0x7f && code <= 0x7ff) s++;\n\t    else if (code > 0x7ff && code <= 0xffff) s+=2;\n\t    if (code >= 0xDC00 && code <= 0xDFFF) i--; //trail surrogate\n\t  }\n\t  return (s ? s : 0) / 1000;\n\t}\n\n\tRegExp.escape= function(s) {\n\t    return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t};\n\n\tfunction roundTo(n, digits) {\n\t\tif (digits === undefined) {\n\t\t\tdigits = 0;\n\t\t}\n\n\t\tvar multiplicator = Math.pow(10, digits);\n\t\tn = parseFloat((n * multiplicator).toFixed(11));\n\t\tvar test =(Math.round(n) / multiplicator);\n\t\treturn +(test.toFixed(digits));\n\t}\n\n\tfunction trimCSS(outputCSSIn) {\n\n\t\t//imports - move imports to top of page\n\t\tvar imports = '';\n\t\toutputCSSIn = outputCSSIn.replace(/@import.*(([\\n\\r\\t]*)(\\s*)\\/\\*(_cssp_sc).\\*\\/)?([\\n\\r\\t])+/gm, function (match, capture) { \n\t\t\t\timports += match.substr(0, match.length-1) + \"\";\n\t\t    return '';\n\t\t});\n\t\toutputCSSIn = imports + outputCSSIn;\n\n\t\t//charset - move charset to top of page\n\t\tcharset = '';\n\t\toutputCSSIn = outputCSSIn.replace(/@charset.*(([\\n\\r\\t]*)(\\s*)\\/\\*(_cssp_sc).\\*\\/)?([\\n\\r\\t])+/gm, function (match, capture) { \n\t\t\t\tcharset += match + \"\";\n\t\t    return '';\n\t\t});\n\t\toutputCSSIn = charset + outputCSSIn;\n\n\t\tif (OPTIONS.trim_breaklines || OPTIONS.trim) {\n\t\t\toutputCSSIn = outputCSSIn.replace(/\\r?\\n|\\r/g,'');\n\t\t}\n\t\tif (OPTIONS.trim_whitespace || OPTIONS.trim) {\n\n\t\t\tif (OPTIONS.trim_comments || OPTIONS.trim) {\n\t\t    // remove any left over comments and tabs\n\t\t\t\toutputCSSIn = outputCSSIn.replace( /\\/\\*(?:(?!\\*\\/)[\\s\\S])*\\*\\/|[\\t]+/g, '' );\n\t\t\t}\n\t\t\t// remove single adjacent spaces\n\t    outputCSSIn = outputCSSIn.replace( / {2,}/g, ' ' );\n\t    outputCSSIn = outputCSSIn.replace( / ([{:}]) /g, '$1' );\n\t    outputCSSIn = outputCSSIn.replace( /([{:}]) /g, '$1' );\n\t    outputCSSIn = outputCSSIn.replace( /([;,]) /g, '$1' );\n\t    outputCSSIn = outputCSSIn.replace( /\\(\\s*/g, '(' );\n\t    outputCSSIn = outputCSSIn.replace( /\\s*\\)/g, ')' );\n\t    outputCSSIn = outputCSSIn.replace( / !/g, '!' );\n\t\t}\n\n\n\t\tif (OPTIONS.trim_last_semicolon || OPTIONS.trim) { \n\t\t\toutputCSSIn = outputCSSIn.replace(/{([^}]*)}/gm, function (match, capture) {\n\t\t\t\t\n\t\t\t\tsummary.stats.summary.noLastSemiColonsTrimmed += 1;\n\t\t\t\t\t// console.log(capture)\n\t\t\t\t\t// return \"{\" + capture + \"}\";\n\t\t\t  return \"{\" + capture.replace(/\\;(?=[^;]*$)/, '') + \"}\";\n\t\t\t});\n\t\t}\n\n\t\treturn outputCSSIn;\n\t}\n\n\tfunction restoreHacks(outputCSSIn) {\n\n\t\t//tokens\n\t\t////hacks\n\t\t///**/\n\t\toutputCSSIn = outputCSSIn.replace(/(_1token_hck)/g, '/**/');\n\t\t///*\\**/\n\t\toutputCSSIn = outputCSSIn.replace(/(_2token_hck)/g, '/*\\\\**/');\n\t\t//(specialchar)property\n\t\toutputCSSIn = outputCSSIn.replace(/(_3token_hck_([0-9]*): ;)/g, function(match){\n\t\t\ttmpVal = token3_chars[match.substring(12, match.length-3)-1];\n\t\t\treturn tmpVal.substring(0, tmpVal.length) + ';';\n\t\t});\n\t\t//(;\n\t\toutputCSSIn = outputCSSIn.replace(/(_4token_hck_)[0-9]*[:][\\s]*[;]/g, function(match){\n\t\t\ttmpVal = token4_vals[match.substring(12,match.length-3)-1];\n\t\t\treturn tmpVal.substring(0, tmpVal.length-2);\n\t\t});\n\t\t//[;\n\t\toutputCSSIn = outputCSSIn.replace(/(_5token_hck_)[0-9]*[:][\\s]*[;]/g, function(match){\n\t\t\ttmpVal = token5_vals[match.substring(12,match.length-3)-1];\n\t\t\treturn tmpVal.substring(0, tmpVal.length-2);\n\t\t});\n\t\t////end of hacks\n\n\t\t//tokens - data:image \n\t\toutputCSSIn = outputCSSIn.replace(/(_6token_dataimage_)[0-9]*[:][\\s]*/g, function(match){\n\t\t\ttmpVal = token6_vals[match.substring(18,match.length-1)-1];\n\t\t\treturn tmpVal.substring(0, tmpVal.length) + ';';\n\t\t});\n\n\t\t//tokens - allow multi-keyframe selectors\n\t\toutputCSSIn = outputCSSIn.replace(/(@keyframes _7token_)[0-9]*[\\s]*/g, function(match){\n\t\t\t\n\t\t\ttmpVal = token7_vals[match.substring(19,match.length)-1];\n\t\t\ttmpVal = trimCSS(tmpVal);\n\n\t\t\treturn tmpVal.substring(0, tmpVal.length) + '';\n\t\t});\n\t\t\n\t\t//tokens - replace side comments\n\t\tfor (key in tokens_comments) {\n\t\t\ttokenex = new RegExp(\"([\\\\n\\\\r\\\\t]*)(\\\\s*)\\\\/\\\\*(\" + key + \")\\\\*\\\\/\", \"gm\");\n\t\t\toutputCSSIn = outputCSSIn.replace(tokenex, tokens_comments[key]);\n\t\t}\n\t\t//tokens - end of replace side comments\n\n\t\treturn outputCSSIn;\n\t}\n\n\n\tfunction processHTMLSelectors(cssSelectors, htmlDataIn = null, htmlOptionsIn = null) {\n\n\t\tif (OPTIONS.verbose) { console.log(info('Process - HTML - Determine Rules to Remove')); }\n\n\t\tvar htmlData = dataHTMLIn.join(\"\");\n\t\tif (htmlDataIn !== null && htmlDataIn !== undefined) {\n\t\t\thtmlData = htmlDataIn;\n\t\t}\n\t\tif (htmlOptionsIn !== null && htmlOptionsIn !== undefined) {\n\n\t\t\tfor (key in htmlOptionsIn) {\n\n\t\t\t\tOPTIONS.html[key] = htmlOptionsIn[key];\n\t\t\t}\n\t\t}\n\n\n\t\t//find values in ids\n\t\tresults = [];\n\t\tresults1 = htmlData.match(/\\bid\\b[=]([\"'])(?:(?=(\\\\?))\\2.)*?\\1/gm);\n\t\tif (results1 !== null) {\n\t\t\tfor (i = 0, ilen = results1.length; i < ilen; ++i) {\n\n\t\t\t\tif (results1[i] !== null) {\n\t\t\t\t\tresults1[i] = results1[i].split('=')[1].replace(/['\"]+/g, '');\n\t\t\t\t}\n\t\t\t}\n\t\t\tresults1 = Array.from(new Set(results1));\n\t\t\tresults = results.concat(results1);\n\t\t}\n\n\t\t//find values in classes\n\t\tresults2 = htmlData.match(/\\bclass\\b[=]([\"'])(?:(?=(\\\\?))\\2.)*?\\1/gm);\n\t\tif (results2 !== null) {\n\t\t\tfor (i = 0, ilen = results2.length; i < ilen; ++i) {\n\n\t\t\t\tif (results2[i] !== null) {\n\t\t\t\t\tresults2[i] = results2[i].split('=')[1].replace(/['\"]+/g, '');\n\t\t\t\t}\n\t\t\t}\n\t\t\tresults2 = Array.from(new Set(results2));\n\t\t\tresults = results.concat(results2);\n\t\t}\n\n\n\t\t//find values in internal selectors\n\t\tresults3 = htmlData.match(/<style([\\S\\s]*?)>([\\S\\s]*?)<\\/style>/gi);\n\t\tif (results3 !== null) {\n\t\t\tresults4 = [];\n\t\t\tfor (i = 0, ilen = results3.length; i < ilen; ++i) {\n\n\t\t\t\tif (results3[i] !== null) {\n\t\t\t\t\tresults3[i] = results3[i].split('</')[0].split('>')[1];\n\t\t\t\t\tresults4 = results4.concat(results3[i].match(/([#}.])([^0-9])([\\S\\s]*?){/g));\n\t\t\t\t}\n\t\t\t}\n\t\t\tresults3 = [];\n\t\t\tfor (i = 0, ilen = results4.length; i < ilen; ++i) {\n\t\t\t\tif (results4[i] !== null) {\n\t\t\t\t\tresults4[i] = results4[i].replace(/\\r?\\n|\\r|\\s/g, '');\n\t\t\t\t\tresults4[i] = results4[i].replace('{', '');\n\t\t\t\t\tresults4[i] = results4[i].replace('}', '');\n\t\t\t\t\tresults3 = results3.concat(results4[i].split(','));\n\t\t\t\t}\n\t\t\t}\n\t\t\tresults3 = Array.from(new Set(results3));\n\t\t\tresults = results.concat(results3);\n\t\t}\n\n\n\t\t//find values in the dom\n\t\tjsDom = new JSDOM(htmlData, {contentType: \"text/html\"});\n\t\tjsDomWindow = jsDom.window;\n\t\tjsDomDoc = jsDomWindow.document;\n\n\t\tfor (i = 0, resultsCount = cssSelectors.length; i < resultsCount; ++i) {\n\n\t\t\tfor (j = 0, jlen = results.length; j < jlen; ++j) {\n\t\t\t\t\n\t\t\t\tif (cssSelectors[i] == results[j]) {\n\n\t\t\t\t\tcssSelectors.splice(i, 1);\n\t\t\t\t\tresultsCount -= 1;\n\t\t\t\t\ti -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (jsDomDoc.querySelector(cssSelectors[i]) != null) {\n\t\t\t\tcssSelectors.splice(i, 1);\n\t\t\t\tresultsCount -= 1;\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t}\n\n\t\treturn cssSelectors;\n\t} //end of processHTMLSelectors\n\n\n\tfunction processHTML(cssSelectors = [], htmlDataIn = null, htmlOptionsIn = null) {\n\n\t\t//read html files\n\t\tif (OPTIONS.html !== '' && OPTIONS.html !== undefined && OPTIONS.special_reduce_with_html) {\n\n\t\t\tvar htmlFiles = OPTIONS.html;\n\t\t\ttmpHTMLPaths = [];\n\n\t\t\t//check for file or files\n\t\t\tswitch (typeof htmlFiles) {\n\t\t\t\tcase 'object':\n\t\t\t\tcase 'array':\n\t\t\t\t\t\t\n\t\t\t\t\tfor (i = 0; i < htmlFiles.length; ++i) {\n\n\t\t\t\t\t\tgetFilePaths(htmlFiles[i], ['.html','.htm']);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (tmpHTMLPaths.length) {\n\t\t\t\t\t\thtmlFiles = tmpHTMLPaths;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'string':\n\t\t\t\t\t//formats\n\t\t\t\t\thtmlFiles = htmlFiles.replace(/ /g, '');\n\n\t\t\t\t\t// comma delimited list - filename1.html, filename2.html\n\t\t\t\t\tif (htmlFiles.indexOf(',') > -1) { \n\t\t\t\n\t\t\t\t\t\thtmlFiles = htmlFiles.replace(/^\\s+|\\s+$/g,'').split(',');\n\t\t\t\t\t\ttmpStr = '';\n\t\t\t\t\t\tfor (i = 0; i < htmlFiles.length; ++i) {\n\n\t\t\t\t\t\t\tgetFilePaths(htmlFiles[i], ['.html','.htm']);\n\n\t\t\t\t\t\t} //end of for\n\n\t\t\t\t\t\tif (tmpHTMLPaths.length) {\n\t\t\t\t\t\t\thtmlFiles = tmpHTMLPaths;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t//string path\n\t\t\t\t\t\tgetFilePaths(htmlFiles, ['.html','.htm']);\n\n\t\t\t\t\t\tif (tmpHTMLPaths.length) {\n\t\t\t\t\t\t\thtmlFiles = tmpHTMLPaths;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t} //end of switch\n\n\t\t\thtmlFileLocation = (htmlFiles)?htmlFiles.toString():htmlFiles;\n\n\t\t\treadHTMLFile(htmlFiles);\n\t\t\tCPEVENTS.on('HTML_READ_AGAIN', function(){\n\t\t\t\t//process selectors\n\t\t\t\tprocessHTMLSelectors(cssSelectors, htmlDataIn, htmlOptionsIn);\n\n\t\t\t\t//read next file\n\t\t\t\tdataHTMLIn = [];\n\t\t\t\treadHTMLFile(htmlFiles);\n\t\t\t});\n\t\t\tCPEVENTS.on('HTML_READ_END', function(){\n\t\t\t\t//process selectors\n\t\t\t\tprocessHTMLSelectors(cssSelectors, htmlDataIn, htmlOptionsIn);\n\n\t\t\t\tdataHTMLIn = [];\n\t\t\t\tCPEVENTS.emit('HTML_RESULTS_END', cssSelectors);\n\n\t\t\t});\n\n\n\t\t} //end of html files check\n\n\n\n\n\n\n\n\n\t}\n\n\tfunction readHTMLFile(files = []) {\n\n\t\tif (OPTIONS.verbose) { console.log(info('Input - HTML File : ' + files[readHTMLFileCount])); }\n\n\t\tif (validUrl.isUri(files[readHTMLFileCount])) {\n\t\t\trequest({\n\t\t\t\turl: files[readHTMLFileCount],\n\t\t\t\tmethod: \"GET\"\n\t\t\t}, function(err, headRes, body) {\n\n\t\t\t\tif (headRes !== undefined) {\n\t\t\t\t\tvar size = headRes.headers['content-length'];\n\n\t\t\t\t\tif (size == undefined || size == 0) {\n\t\t\t\t\t\tfilesizeKBHTML = kiloByteLength(body);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfilesizeKBHTML = size/1000;\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tvar size = kiloByteLength(body);\n\t\t\t\t\tfilesizeKBHTML = size/1000;\n\t\t\t\t}\n\n\t\t\t\tstats.files.html.push({\n\t\t\t\t\t\"filename\" : files[readHTMLFileCount],\n\t\t\t\t\t\"filesizeKB\" : filesizeKBHTML\n\t\t\t\t});\n\n\t\t\t});\n\t\t} else {\n\t\t\tfilesizeKBHTML = getFilesizeInKiloBytes(files[readHTMLFileCount]);\t\n\t\t\tstats.files.html.push({\n\t\t\t\t\"filename\" : files[readHTMLFileCount],\n\t\t\t\t\"filesizeKB\" : filesizeKBHTML\n\t\t\t});\n\n\t\t}\n\t\t\n\n\t\tsummary.files.input_html.push(files[readHTMLFileCount]);\n\n\t\tif (validUrl.isUri(files[readHTMLFileCount])) {\n\t\t\t\n\t\t  request(files[readHTMLFileCount], function (err, response, body) {\n\n\t\t  \tif (response === undefined) {\n\t\t  \t\t//try again\n\t\t  \t\trequest(files[readHTMLFileCount], function (err, response, body) {\n\n\t\t\t\t\t\tif (response.statusCode == 200) {\n\t\t\t\t    \tdataHTMLIn.push(body);\n\n\t\t\t\t    \treadHTMLFileCount += 1;\n\n\t\t\t\t\t\t\tif (readHTMLFileCount < files.length) {\n\n\t\t\t\t\t\t\t\tCPEVENTS.emit('HTML_READ_AGAIN');\t\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tCPEVENTS.emit('HTML_READ_END');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t    } else {\n\t\t\t\t\t\t\tCPEVENTS.emit('HTML_READ_ERROR');\n\t\t\t\t\t\t\tconsole.log(error(\"HTML File read error: check your HTML files and please try again.\"));\n\t\t\t\t\t\t\tconsole.log(err)\n\t\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t    }\n\n\t\t  \t\t});\n\t\t  \t} else if (response.statusCode == 200) {\n\t\t    \tdataHTMLIn.push(body);\n\n\t\t    \treadHTMLFileCount += 1;\n\n\t\t\t\t\tif (readHTMLFileCount < files.length) {\n\n\t\t\t\t\t\tCPEVENTS.emit('HTML_READ_AGAIN');\t\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tCPEVENTS.emit('HTML_READ_END');\n\t\t\t\t\t}\n\n\t\t    } else {\n\t\t\t\t\tCPEVENTS.emit('HTML_READ_ERROR');\n\t\t\t\t\tconsole.log(error(\"HTML File read error: check your HTML files and please try again.\"));\n\t\t\t\t\tconsole.log(err)\n\t\t\t\t\tprocess.exit(1);\n\t\t    }\n\t\t\t});\n\n\t\t} else {\n\t\t\treadHTMLStream = fs.createReadStream(files[readHTMLFileCount], 'utf8');\t\n\n\t\t\treadHTMLStream.on('data', function(chunk) {  \n\n\t\t\t\tdataHTMLIn.push(chunk);\n\n\t\t\t}).on('end', function() {\n\n\t\t\t\treadHTMLFileCount += 1;\n\t\t\t\tif (readHTMLFileCount < files.length) {\n\n\t\t\t\t\tCPEVENTS.emit('HTML_READ_AGAIN');\t\n\t\t\t\t} else {\n\n\t\t\t\t\tCPEVENTS.emit('HTML_READ_END');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}).on('error', function(e) {\n\t\t\t\tCPEVENTS.emit('HTML_READ_ERROR');\n\t\t\t\tconsole.log(error(\"HTML File read error: Something went wrong while reading the file(s), check your HTML files and please try again.\"));\n\t\t\t\tconsole.log(e);\n\t\t\t\tprocess.exit(1);\n\t\t\t});\n\t\t}\n\n\t\t\n\t} //end of readHTMLFile\n\n\n\tfunction readReduceDeclarations(jsonConfigIn = '') {\n\t\tif (jsonConfigIn) {\n\t\t\tjsonConfig = jsonConfigIn;\n\t\t\treduceRulesListName = jsonConfig.declaration_names;\n\t\t\treduceRulesListSelector = jsonConfig.selectors;\n\n\t\t\tswitch (typeof reduceRulesListSelector) {\n\t\t\t\tcase 'string':\n\t\t\t\t\tif (reduceRulesListSelector.length) {\n\t\t\t\t\t\treduceRulesListSelector = reduceRulesListSelector.replace(/^\\s+|\\s+$/g,'');\n\t\t\t\t\t\treduceRulesListSelector = reduceRulesListSelector.replace(/\\r?\\n|\\r/g,'');\n\t\t\t\t\t\treduceRulesListSelector = reduceRulesListSelector.split(',');\n\t\t\t\t\t\treduceRulesListSelectorCount = reduceRulesListSelector.length;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treduceRulesListSelector = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'object': \n\t\t\t\t\t// reduceRulesListSelectorPName\n\t\t\t\t\tvar tmp = [];\n\t\t\t\t\tfor (var i in reduceRulesListSelector) {\n\t\t\t\t\t\ttmp.push(i);\n\t\t\t\t\t\treduceRulesListSelectorPName[i] = reduceRulesListSelector[i].replace(/^\\s+|\\s+$/g,'').replace(/\\r?\\n|\\r/g,'').split(',');\n\t\t\t\t\t}\n\t\t\t\t\treduceRulesListSelector = tmp;\n\t\t\t\t\treduceRulesListSelectorCount = reduceRulesListSelector.length;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//by name\n\t\t\tif (reduceRulesListName.length) {\n\t\t\t\t\t\n\t\t\t\tif (typeof reduceRulesListName == 'string') {\n\t\t\t\t\t\n\t\t\t\t\treduceRulesListName = reduceRulesListName.replace(/^\\s+|\\s+$/g,'');\n\t\t\t\t\treduceRulesListName = reduceRulesListName.split(',');\n\t\t\t\t\treduceRulesListNameCount = reduceRulesListName.length;\n\t\t\t\t} else if (typeof reduceRulesListName == 'object' || typeof reduceRulesListName == 'array') {\n\t\t\t\t\t\n\t\t\t\t\treduceRulesListName = reduceRulesListName.filter(function(entry) { return entry.trim() !== ''; });\n\t\t\t\t\treduceRulesListNameCount = reduceRulesListName.length;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treduceRulesListName = null;\n\t\t\t}\n\n\t\t\thasReadReduceDeclarations = true;\n\t\t\tCPEVENTS.emit('CONFIG_READ_REDUCE_PROPS_END', OPTIONS);\n\n\t\t} else {\n\n\t\t\tvar jsonConfig = '';\n\t\t\treadStream = fs.createReadStream(CONFIG_REDUCE_DECLARATIONS, 'utf8');\t\n\t\t\treadStream.on('data', function(chunk) {  \n\t\t\t\tjsonConfig += chunk;\n\t\t\t}).on('end', function() {\n\n\t\t\t\tjsonConfig = JSON.parse(jsonConfig);\n\n\t\t\t\treduceRulesListName = jsonConfig.declaration_names;\n\t\t\t\treduceRulesListSelector = jsonConfig.selectors;\n\n\t\t\t\tswitch (typeof reduceRulesListSelector) {\n\t\t\t\t\tcase 'string':\n\t\t\t\t\t\tif (reduceRulesListSelector.length) {\n\t\t\t\t\t\t\treduceRulesListSelector = reduceRulesListSelector.replace(/^\\s+|\\s+$/g,'');\n\t\t\t\t\t\t\treduceRulesListSelector = reduceRulesListSelector.replace(/\\r?\\n|\\r/g,'');\n\t\t\t\t\t\t\treduceRulesListSelector = reduceRulesListSelector.split(',');\n\t\t\t\t\t\t\treduceRulesListSelectorCount = reduceRulesListSelector.length;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treduceRulesListSelector = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'object': \n\t\t\t\t\t\t// reduceRulesListSelectorPName\n\t\t\t\t\t\tvar tmp = [];\n\t\t\t\t\t\tfor (var i in reduceRulesListSelector) {\n\t\t\t\t\t\t\ttmp.push(i);\n\t\t\t\t\t\t\treduceRulesListSelectorPName[i] = reduceRulesListSelector[i].replace(/^\\s+|\\s+$/g,'').replace(/\\r?\\n|\\r/g,'').split(',');\n\t\t\t\t\t\t}\n\t\t\t\t\t\treduceRulesListSelector = tmp;\n\t\t\t\t\t\treduceRulesListSelectorCount = reduceRulesListSelector.length;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//by name\n\t\t\t\tif (reduceRulesListName.length) {\n\t\t\t\t\t\t\n\t\t\t\t\tif (typeof reduceRulesListName == 'string') {\n\t\t\t\t\t\t\n\t\t\t\t\t\treduceRulesListName = reduceRulesListName.replace(/^\\s+|\\s+$/g,'');\n\t\t\t\t\t\treduceRulesListName = reduceRulesListName.split(',');\n\t\t\t\t\t\treduceRulesListNameCount = reduceRulesListName.length;\n\t\t\t\t\t} else if (typeof reduceRulesListName == 'object' || typeof reduceRulesListName == 'array') {\n\t\t\t\t\t\t\n\t\t\t\t\t\treduceRulesListName = reduceRulesListName.filter(function(entry) { return entry.trim() !== ''; });\n\t\t\t\t\t\treduceRulesListNameCount = reduceRulesListName.length;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treduceRulesListName = null;\n\t\t\t\t}\n\n\t\t\t\thasReadReduceDeclarations = true;\n\t\t\t\tCPEVENTS.emit('CONFIG_READ_REDUCE_PROPS_END', OPTIONS);\n\n\n\t\t\t}).on('error', function(e) {\n\t\t\t\tCPEVENTS.emit('CONFIG_READ_REDUCE_PROPS_ERROR', OPTIONS);\n\t\t\t\tconsole.log(error(\"Reduce Properties Config File read error: Something went wrong while reading the file, check your config_reduce_declarations.json and please try again.\"));\n\t\t\t\tconsole.log(e);\n\t\t\t\tprocess.exit(1);\n\t\t\t});\n\t\t}\n\n\t} //end of readReduceDeclarations\n\n\n\tfunction readConfig(configFileLocationIn = '', optionsIn = null) {\n\n\t\tvar tmpCONFIG = '';\n\t\tif (configFileLocationIn == '') {\n\t\t\treadStream = fs.createReadStream(configFileLocation, 'utf8');\n\t\t} else {\n\n\t\t\tif (configFileLocationIn == 'cmd_default') {\n\n\t\t\t\tCONFIG = {};\n\t\t\t\tCONFIG.options = optionsIn;\n\t\t\t\tif (CONFIG.options.trim) {\n\t\t\t\t\tOPTIONS.trim_removed_rules_previous_comment = CONFIG.options.trim;\n\t\t\t\t\tOPTIONS.trim_comments = CONFIG.options.trim;\n\t\t\t\t\tOPTIONS.trim_whitespace = CONFIG.options.trim;\n\t\t\t\t\tOPTIONS.trim_breaklines = CONFIG.options.trim;\n\t\t\t\t\tOPTIONS.trim_last_semicolon = CONFIG.options.trim;\n\t\t\t\t}\n\t\t\t\tif (CONFIG.options.shorten) {\n\t\t\t\t\tOPTIONS.shorten_zero = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_hexcolor = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_hexcolor_extended_names = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_font = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_background = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_margin = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_padding = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_list_style = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_outline = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_border = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_border_top = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_border_right = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_border_bottom = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_border_left = CONFIG.options.shorten;\n\t\t\t\t\tOPTIONS.shorten_border_radius = CONFIG.options.shorten;\n\t\t\t\t}\n\t\t\t\tif (CONFIG.options.special_reduce_with_html) {\n\t\t\t\t\tOPTIONS.special_reduce_with_html = CONFIG.special_reduce_with_html;\n\t\t\t\t}\n\t\t\t\tif (CONFIG.options.css_output) {\n\t\t\t\t\tOPTIONS.css_output = CONFIG.options.css_output;\n\t\t\t\t}\n\t\t\t\tif (CONFIG.options.verbose) {\n\t\t\t\t\tOPTIONS.verbose = CONFIG.options.verbose;\n\t\t\t\t}\n\n\t\t\t\tsummary.files.output.push(CONFIG.options.css_output);\n\t\t\t\tREPORT_DUPLICATE_CSS = OPTIONS.report_file_location;\n\t\t\t\tCONFIG_REDUCE_DECLARATIONS = OPTIONS.reduce_declarations_file_location;\n\t\t\t\tsummary.options_used = OPTIONS;\n\n\t\t\t\tCPEVENTS.emit('CONFIG_READ_END', OPTIONS);\n\n\t\t\t\treturn true;\n\t\t\t} else { //custom\n\t\t\t\treadStream = fs.createReadStream(configFileLocationIn, 'utf8');\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\treadStream.on('data', function(chunk) {  \n\t\t\ttmpCONFIG += chunk;\n\t\t}).on('end', function() {\n\n\t\t\tif (tmpCONFIG !== '') {\n\t\t\t\ttry {\n\t\t\t\t\tCONFIG = JSON.parse(tmpCONFIG);\t\n\t\t\t\t} catch(err) {\n\t\t\t\t\tconsole.log(error(\"Config File read error: \" + configFileLocation + \", check your syntax, especially commas, then please try again.\"));\n\t\t\t\t\tconsole.log(err);\n\t\t\t\t\tprocess.exit(1);\n\t\t\t\t}\n\t\t\t\tsummary.files.output.push(CONFIG.options.css_output);\n\t\t\t\tREPORT_DUPLICATE_CSS = CONFIG.options.report_file_location;\n\t\t\t\tCONFIG_REDUCE_DECLARATIONS = CONFIG.options.reduce_declarations_file_location;\n\n\t\t\t\tif (CONFIG.options.trim) {\n\t\t\t\t\tCONFIG.options.trim_removed_rules_previous_comment = CONFIG.options.trim;\n\t\t\t\t\tCONFIG.options.trim_comments = CONFIG.options.trim;\n\t\t\t\t\tCONFIG.options.trim_whitespace = CONFIG.options.trim;\n\t\t\t\t\tCONFIG.options.trim_breaklines = CONFIG.options.trim;\n\t\t\t\t\tCONFIG.options.trim_last_semicolon = CONFIG.options.trim;\n\t\t\t\t}\n\t\t\t\tif (CONFIG.options.shorten) {\n\t\t\t\t\tCONFIG.options.shorten_zero = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_hexcolor = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_hexcolor_extended_names = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_font = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_background = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_margin = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_padding = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_list_style = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_outline = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_border = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_border_top = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_border_right = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_border_bottom = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_border_left = CONFIG.options.shorten;\n\t\t\t\t\tCONFIG.options.shorten_border_radius = CONFIG.options.shorten;\n\t\t\t\t}\n\t\t\t\tOPTIONS = CONFIG.options;\n\t\t\t\tsummary.options_used = OPTIONS;\n\t\t\t}\n\n\t\t\tCPEVENTS.emit('CONFIG_READ_END', OPTIONS);\n\n\t\t}).on('error', function(e) {\n\t\t\tCPEVENTS.emit('CONFIG_READ_ERROR');\n\t\t\tconsole.log(error(\"Config File read error: Something went wrong while reading the file, check your \" + configFileLocation + \" and please try again.\"));\n\t\t\tconsole.log(e);\n\t\t\tprocess.exit(1);\n\n\t\t});\n\n\t\treturn readStream;\n\t}\n\n\t/* read css input files */\n\tfunction processCSSFiles(optionsIn = null, configFileLocationIn = '') {\n\n\n\t\tvar continueCSSFilesProcess = function(optionsIn2){\n\t\t\t// console.log(optionsIn2)\n\t\t\t\t// console.log(optionsIn2.css)\n\t\t\tCPEVENTS.removeListener('CONFIG_READ_REDUCE_PROPS_END', continueCSSFilesProcess);\n\n\t\t\tvar continueCSSFilesProcessAfterConfig = function(optionsIn3){\n\n\t\t\t\t\n\t\t\t\tCPEVENTS.removeListener('continueCSSFilesProcessAfterConfig', continueCSSFilesProcessAfterConfig);\n\n\t\t\t\t//config\n\t\t\t\tif (OPTIONS.css === undefined && CONFIG.options.css) {\n\t\t\t\t\tOPTIONS.css = CONFIG.options.css;\n\t\t\t\t}\n\n\t\t\t\t//Options\n\t\t\t\tif (optionsIn !== null && optionsIn !== undefined) {\n\n\t\t\t\t\tfor (key in optionsIn) {\n\n\t\t\t\t\t\tOPTIONS[key] = optionsIn[key];\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// console.log(CONFIG)\n\t\t\t\t// console.log(optionsIn.css)\n\t\t\t\t// console.log(optionsIn3)\n\t\t\t\t//CSS Files\n\t\t\t\t// var files = CONFIG.options.css;\n\n\t\t\t\t// if (optionsIn.css !== null && optionsIn.css !== undefined) {\n\n\t\t\t\t// files = optionsIn.css;\n\t\t\t\t\t\n\t\t\t\t// }\n\n\t\t\t\tfiles = OPTIONS.css;\n\n\t\t\t\tif (files !== undefined && files !== '') {\n\t\t\t\t\ttmpCSSPaths = [];\n\n\t\t\t\t\t//check for file or files\n\t\t\t\t\tswitch (typeof files) {\n\t\t\t\t\t\tcase 'object':\n\t\t\t\t\t\tcase 'array':\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (i = 0; i < files.length; ++i) {\n\n\t\t\t\t\t\t\t\tgetFilePaths(files[i], ['.css']);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (tmpCSSPaths.length) {\n\t\t\t\t\t\t\t\tfiles = tmpCSSPaths;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'string':\n\t\t\t\t\t\t\t//formats\n\t\t\t\t\t\t\tfiles = files.replace(/ /g, '');\n\t\t\t\t\t\t\t// comma delimited list - filename1.css, filename2.css\n\t\t\t\t\t\t\tif (files.indexOf(',') > -1) { \n\t\t\t\t\t\t\t\tfiles = files.replace(/^\\s+|\\s+$/g,'').split(',');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (i = 0; i < files.length; ++i) {\n\n\t\t\t\t\t\t\t\t\tgetFilePaths(files[i], ['.css']);\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (tmpCSSPaths.length) {\n\t\t\t\t\t\t\t\t\tfiles = tmpCSSPaths;\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t//string path\n\t\t\t\t\t\t\t\tgetFilePaths(files, ['.css']);\n\n\t\t\t\t\t\t\t\tif (tmpCSSPaths.length) {\n\t\t\t\t\t\t\t\t\tfiles = tmpCSSPaths;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t} //end of switch\n\n\t\t\t\t\tfileLocation = files.toString();\n\n\t\t\t\t\tCPEVENTS.on('CSS_READ_AGAIN', function(){\n\n\t\t\t\t\t\treadCSSFile(files);\n\t\t\t\t\t});\n\t\t\t\t\tCPEVENTS.on('CSS_READ_END', function(){\n\t\t\t\t\t\t// CPEVENTS.emit('CONFIG_READ_REDUCE_PROPS_END');\n\t\t\t\t\t\tprocessCSS(null,OPTIONS,function(){\n\n\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\n\t\t\t\t\treadCSSFile(files);\n\n\n\t\t\t\t} else { //end of files nothing check\n\n\t\t\t\t\t//\n\t\t\t\t}\n\n\n\n\n\t\t\t};\n\n\t\t\tif (currentConfig != configFileLocationIn) { //don't read same config\n\t\t\t\tCPEVENTS.on('CONFIG_READ_END', continueCSSFilesProcessAfterConfig); //end of config read\n\t\t\t}\n\n\t\t\tcurrentConfig = configFileLocationIn;\n\n\t\t\tif (configFileLocationIn != 'cmd_default') {\n\t\t\t\treadConfig(configFileLocationIn);\t\n\t\t\t} else if (configFileLocationIn == 'cmd_default') {\n\t\t\t\treadConfig(configFileLocationIn, optionsIn);\t\n\t\t\t}\n\t\t};\n\n\t\tCPEVENTS.on('CONFIG_READ_REDUCE_PROPS_END', continueCSSFilesProcess); //end of reduce config read\n\t\t\n\n\t\tif (!hasReadReduceDeclarations && fs.existsSync(OPTIONS.reduce_declarations_file_location)) {\n\t\t\t\n\t\t\treadReduceDeclarations();\n\t\t}\n\n\t\tif (!hasReadReduceDeclarations && !fs.existsSync(OPTIONS.reduce_declarations_file_location)) {\n\n\t\t\t//default process settings\n\t\t\tvar default_reduce_declarations_config = {\n\t\t\t\t\"declaration_names\" : [\n\t\t\t\t\t\"font\",\n\t\t\t\t\t\"margin\",\n\t\t\t\t\t\"padding\",\n\t\t\t\t\t\"list-style\",\n\t\t\t\t\t\"outline\",\n\t\t\t\t\t\"border\",\n\t\t\t\t\t\"border-top\",\n\t\t\t\t\t\"border-right\",\n\t\t\t\t\t\"border-bottom\",\n\t\t\t\t\t\"border-left\",\n\t\t\t\t\t\"border-radius\",\n\t\t\t\t\t\"border-color\",\n\t\t\t\t\t\"border-top-color\",\n\t\t\t\t\t\"border-right-color\",\n\t\t\t\t\t\"border-bottom-color\",\n\t\t\t\t\t\"border-left-color\",\n\t\t\t\t\t\"color\",\n\t\t\t\t\t\"background-color\",\n\t\t\t\t\t\"font-color\",\n\t\t\t\t\t\"outline-color\",\n\t\t\t\t\t\"box-shadow\",\n\t\t\t\t\t\"text-shadow\",\n\t\t\t\t\t\"float\",\n\t\t\t\t\t\"font-family\",\n\t\t\t\t\t\"font-size\",\n\t\t\t\t\t\"font-weight\",\n\t\t\t\t\t\"font-style\",\n\t\t\t\t\t\"font-variant\",\n\t\t\t\t\t\"font-stretch\"\n\t\t\t\t]\n\t\t\t};\n\n\t\t\tif (optionsIn !== null && (optionsIn['reduceConfig'] === undefined || optionsIn['reduceConfig'] === null)) {\n\n\t\t\t\toptionsIn['reduceConfig'] = default_reduce_declarations_config;\n\t\t\t\treadReduceDeclarations(optionsIn['reduceConfig']);\n\t\t\t} else {\n\n\t\t\t\treadReduceDeclarations();\n\t\t\t}\n\t\t}\n\n\t} //end of processCSSFiles\n\n\tfunction getFilePaths(strPath = '', exts = ['.css']) {\n\n\t\tif (validUrl.isUri(strPath)){\n\n\t\t\tswitch(exts[0]) {\n\t\t\t\tcase '.css':\n\t\t\t\t\ttmpCSSPaths.push(strPath);\n\t\t\t\t\tbreak;\n\t\t\t\tcase '.html':\n\t\t\t\tcase '.htm':\n\t\t\t\t\ttmpHTMLPaths.push(strPath);\n\t\t\t\t\tbreak;\n\t\t\t\tcase '.js':\n\t\t\t\t\ttmpJSPaths.push(strPath);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\n\t\t\ttry {\n\t\t\t\t// Query the entry\n\t\t\t\tfileStats = fs.lstatSync(strPath);\n\n\t\t\t\t// directory given\n\t\t\t\tif (fileStats.isDirectory()) {\n\n\t\t\t\t\tvar dir = strPath;\n\n\t\t\t\t\t//traverse directory for .ext strPath\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tfs.readdirSync(dir).forEach(filenameRead => {\n\n\t\t\t\t\t\t\tfileFound = false;\n\n\t\t\t\t\t\t\tfor (m = 0, count = exts.length; m < count; ++m) {\n\n\t\t\t\t\t\t\t\tif (path.extname(filenameRead) == exts[m]) {\n\t\t\t\t\t\t\t\t\tfileFound = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (fileFound) {\n\n\t\t\t\t\t\t\t\tswitch(exts[0]) {\n\t\t\t\t\t\t\t\t\tcase '.css':\n\t\t\t\t\t\t\t\t\t\ttmpCSSPaths.push(dir + '/' + filenameRead);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase '.html':\n\t\t\t\t\t\t\t\t\tcase '.htm':\n\t\t\t\t\t\t\t\t\t\ttmpHTMLPaths.push(dir + '/' + filenameRead);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase '.js':\n\t\t\t\t\t\t\t\t\t\ttmpJSPaths.push(dir + '/' + filenameRead);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else if (path.extname(filenameRead) == '') {\n\n\t\t\t\t\t\t\t\tswitch(exts[0]) {\n\t\t\t\t\t\t\t\t\tcase '.css':\n\t\t\t\t\t\t\t\t\t\tgetFilePaths(strPath+'/'+filenameRead, ['.css']);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase '.html':\n\t\t\t\t\t\t\t\t\tcase '.htm':\n\t\t\t\t\t\t\t\t\t\tgetFilePaths(strPath+'/'+filenameRead, ['.html','.htm']);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase '.js':\n\t\t\t\t\t\t\t\t\t\tgetFilePaths(strPath+'/'+filenameRead, ['.js']);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\n\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tconsole.log(error(\"Directory read error: Something went wrong while reading the directory, check your [html] in \" + configFileLocation + \" and please try again.\"));\n\t\t\t\t\t\tconsole.log(e);\n\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t\t}\n\n\t\t\t\t} else if (fileStats.isFile()) { //filepath given\n\n\t\t\t\t\tif (exts.join(\",\").indexOf(strPath.substr(strPath.lastIndexOf('.') + 1)) != -1) {\n\t\t\t\t\t\tswitch(exts[0]) {\n\t\t\t\t\t\t\tcase '.css':\n\t\t\t\t\t\t\t\ttmpCSSPaths.push(strPath);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '.html':\n\t\t\t\t\t\t\tcase '.htm':\n\t\t\t\t\t\t\t\ttmpHTMLPaths.push(strPath);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '.js':\n\t\t\t\t\t\t\t\ttmpJSPaths.push(strPath);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t\n\t\t\t\tconsole.log(error(\"CSS File read error: Something went wrong while reading the file(s), check your [html] in \" + configFileLocation + \" and please try again.\"));\n\t\t\t\tconsole.log(e);\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t} //end of url check\n\t} //end of getFilePaths\n\n\tfunction readCSSFile(files = []) {\n\n\t\tif (OPTIONS.verbose) { console.log(info('Input - CSS File : ' + files[readCSSFileCount])); }\n\n\t\tif (validUrl.isUri(files[readCSSFileCount])) {\n\t\t\trequest({\n\t\t\t\turl: files[readCSSFileCount],\n\t\t\t\tmethod: \"GET\"\n\t\t\t}, function(err, headRes, body) {\n\t\t\t\tif (headRes !== undefined) {\n\t\t\t\t\tvar size = headRes.headers['content-length'];\n\t\t\t\t\t\n\t\t\t\t\tif (size == undefined || size == 0) {\n\t\t\t\t\t\tfilesizeKB = kiloByteLength(body);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfilesizeKB = size/1000;\t\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar size = kiloByteLength(body);\n\t\t\t\t\tfilesizeKB = size/1000;\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tstats.files.css.push({\n\t\t\t\t\t\"filename\" : files[readCSSFileCount],\n\t\t\t\t\t\"filesizeKB\" : filesizeKB\n\t\t\t\t});\n\t\t\t\tstats.before.totalFileSizeKB += filesizeKB;\n\n\t\t\t});\n\t\t} else {\n\t\t\tfilesizeKB = getFilesizeInKiloBytes(files[readCSSFileCount]);\n\n\t\t\tstats.files.css.push({\n\t\t\t\t\"filename\" : files[readCSSFileCount],\n\t\t\t\t\"filesizeKB\" : filesizeKB\n\t\t\t});\n\t\t\tstats.before.totalFileSizeKB += filesizeKB;\n\t\t}\n\n\n\t\tsummary.files.input.push(files[readCSSFileCount]);\n\n\n\t\tif (validUrl.isUri(files[readCSSFileCount])) {\n\t\t\t\n\t\t  request(files[readCSSFileCount], function (err, response, body) {\n\n\t\t  \tif (response === undefined) {\n\n\t\t  \t\t//try again\n\t\t  \t\trequest(files[readCSSFileCount], function (err, response, body) {\n\n\t\t  \t\t\tif (response.statusCode == 200) {\n\t\t\t\t    \tdataCSSIn.push(body);\n\n\t\t\t\t    \treadCSSFileCount += 1;\n\n\t\t\t\t\t\t\tif (readCSSFileCount < files.length) {\n\n\t\t\t\t\t\t\t\tCPEVENTS.emit('CSS_READ_AGAIN');\t\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tCPEVENTS.emit('CSS_READ_END');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t    } else {\n\t\t\t\t\t\t\tCPEVENTS.emit('CSS_READ_ERROR');\n\t\t\t\t\t\t\tconsole.log(error(\"CSS File read error: check your CSS files and please try again.\"));\n\t\t\t\t\t\t\tconsole.log(err)\n\t\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t    }\n\n\t\t  \t\t});\n\n\n\t\t  \t} else if (response.statusCode == 200) {\n\t\t    \tdataCSSIn.push(body);\n\n\t\t    \treadCSSFileCount += 1;\n\n\t\t\t\t\tif (readCSSFileCount < files.length) {\n\n\t\t\t\t\t\tCPEVENTS.emit('CSS_READ_AGAIN');\t\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tCPEVENTS.emit('CSS_READ_END');\n\t\t\t\t\t}\n\n\t\t    } else {\n\t\t\t\t\tCPEVENTS.emit('CSS_READ_ERROR');\n\t\t\t\t\tconsole.log(error(\"CSS File read error: check your CSS files and please try again.\"));\n\t\t\t\t\tconsole.log(err)\n\t\t\t\t\tprocess.exit(1);\n\t\t    }\n\t\t\t});\n\n\t\t} else {\n\n\n\t\t\treadStream = fs.createReadStream(files[readCSSFileCount], 'utf8');\n\n\t\t\treadStream.on('data', function(chunk) { \n\t\t\t\tdataCSSIn.push(chunk);\n\n\t\t\t}).on('end', function() {\n\t\t\t\treadCSSFileCount += 1;\n\t\t\t\tif (readCSSFileCount < files.length) {\n\n\t\t\t\t\tCPEVENTS.emit('CSS_READ_AGAIN');\t\n\t\t\t\t} else {\n\t\t\t\t\tCPEVENTS.emit('CSS_READ_END');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}).on('error', function(e) {\n\t\t\t\tCPEVENTS.emit('CSS_READ_ERROR');\n\t\t\t\tconsole.log(error(\"CSS File read error: Something went wrong while reading the file(s), check your CSS files and please try again.\"));\n\t\t\t\tconsole.log(e);\n\t\t\t\tprocess.exit(1);\n\t\t\t});\n\n\t\t} //end of url check\n\t} //end of readCSSFile\n\n\tfunction processValues(rules) {\n\n\t\tif (OPTIONS.verbose) { console.log(info('Process - Values')); }\n\n\t\trulesCount = rules.length;\n\n\t\tfor (i = 0; i < rulesCount; ++i) {\n\n\n\t\t\tif (rules[i] !== undefined && rules[i].declarations !== undefined  && rules[i].type == 'rule') {\n\n\t\t\t\tdCount = rules[i].declarations.length;\n\n\t\t\t\t//font\n\t\t\t\tif (OPTIONS.shorten_font || OPTIONS.shorten) {\n\t\t\t\t\tfont = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'font-style' \n\t\t\t\t\t  \t\t|| obj.property == 'font-variant'\n\t\t\t\t\t  \t\t|| obj.property == 'font-weight'\n\t\t\t\t\t  \t\t|| obj.property == 'font-stretch'\n\t\t\t\t\t  \t\t|| obj.property == 'font-size'\n\t\t\t\t\t  \t\t|| obj.property == 'line-height'\n\t\t\t\t\t  \t\t|| obj.property == 'font-family'\n\t\t\t\t\t  \t\t|| obj.property == 'font'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\n\t\t\t\t\t//font-weight shortening\n\t\t\t\t\tif ((fontIndex = font.map(function(o) { return o.property; }).indexOf('font-weight')) != -1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch(font[fontIndex].value.toLowerCase()) {\n\t\t\t\t\t\t\tcase 'thin': \n\t\t\t\t\t\t\tcase 'hairline': fontTmp = '100';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'extra light':\n\t\t\t\t\t\t\tcase 'ultra light': fontTmp = '200';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'light': fontTmp = '300';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'normal': fontTmp = '400';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'medium': fontTmp = '500';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'semi bold':\n\t\t\t\t\t\t\tcase 'demi bold': fontTmp = '600';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'bold': fontTmp = '700';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'extra bold':\n\t\t\t\t\t\t\tcase 'ultra bold': fontTmp = '800';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'black':\n\t\t\t\t\t\t\tcase 'heavy': fontTmp = '900';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault: fontTmp = font[fontIndex].value;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfont[fontIndex] = {\n\t\t\t\t\t\t\t'type': font[fontIndex].type,\n\t\t\t\t\t\t\t'property': font[fontIndex].property,\n\t\t\t\t\t\t\t'value': fontTmp,\n\t\t\t\t\t\t\t'position': font[fontIndex].position\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\t//special - convert rem\n\t\t\t\t\tif (OPTIONS.special_convert_rem && OPTIONS.special_convert_rem_font_size) {\n\n\t\t\t\t\t\t//for singular declaration\n\t\t\t\t\t\tfor (j = 0; j < dCount; ++j) {\n\n\t\t\t\t\t\t\tif (rules[i].declarations !== undefined && rules[i].declarations[j].property == 'font-size') {\n\n\t\t\t\t\t\t\t\tfontTmpVal = rules[i].declarations[j].value.toLowerCase();\n\n\t\t\t\t\t\t\t\tif (fontTmpVal.indexOf('px') != -1) {\n\t\t\t\t\t\t\t\t\tfontTmpVal = fontTmpVal.substr(0, fontTmpVal.length-2)/OPTIONS.special_convert_rem_desired_html_px + 'rem';\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\trules[i].declarations[j] = {\n\t\t\t\t\t\t\t\t\t'type': rules[i].declarations[j].type,\n\t\t\t\t\t\t\t\t\t'property': rules[i].declarations[j].property,\n\t\t\t\t\t\t\t\t\t'value': fontTmpVal,\n\t\t\t\t\t\t\t\t\t'position': rules[i].declarations[j].position\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//for combined declaration\n\t\t\t\t\t\tif ((fontIndex = font.map(function(o) { return o.property; }).indexOf('font-size')) != -1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfontTmpVal = font[fontIndex].value.toLowerCase();\n\n\t\t\t\t\t\t\tif (fontTmpVal.indexOf('px') != -1) {\n\t\t\t\t\t\t\t\tfontTmpVal = fontTmpVal.substr(0, fontTmpVal.length-2)/OPTIONS.special_convert_rem_desired_html_px + 'rem';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfont[fontIndex] = {\n\t\t\t\t\t\t\t\t'type': font[fontIndex].type,\n\t\t\t\t\t\t\t\t'property': font[fontIndex].property,\n\t\t\t\t\t\t\t\t'value': fontTmpVal,\n\t\t\t\t\t\t\t\t'position': font[fontIndex].position\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tfontProps = font.map(function(o) { return o.property; });\n\n\t\t\t\t\tif (OPTIONS.format_font_family || OPTIONS.format) {\n\n\t\t\t\t\t\t//make sure multi-worded families have quotes\n\t\t\t\t\t\tif (fontProps.indexOf('font-family') != -1) {\n\n\t\t\t\t\t\t\tfor (j = 0, jlen = rules[i].declarations.length; j < jlen; ++j) {\n\n\t\t\t\t\t\t\t\tif (rules[i].declarations[j].property == 'font-family') {\n\n\t\t\t\t\t\t\t\t\tfontVal = rules[i].declarations[j].value.split(',');\n\t\t\t\t\t\t\t\t\tfontTmpVal = '';\n\t\t\t\t\t\t\t\t\tfor (k = 0, klen = fontVal.length; k < klen; ++k) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfontVal[k] = fontVal[k].trim();\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tfontVal[k].indexOf(' ') != -1\n\t\t\t\t\t\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t\t\t\t\t\tfontVal[k].indexOf('\"') == -1\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tfontTmpVal += '\"' + fontVal[k].trim() + '\",';\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tfontTmpVal += fontVal[k].trim() + ',';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfontTmpVal = fontTmpVal.substring(0, fontTmpVal.length - 1);\n\n\t\t\t\t\t\t\t\t\trules[i].declarations[j] = {\n\t\t\t\t\t\t\t\t\t\t'type': 'declaration',\n\t\t\t\t\t\t\t\t\t\t'property': 'font-family',\n\t\t\t\t\t\t\t\t\t\t'value': fontTmpVal,\n\t\t\t\t\t\t\t\t\t\t'position': rules[i].declarations[j].position\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//reduce to font\n\t\t\t\t\tif (\n\t\t\t\t\t\tfontProps.indexOf('font-size') != -1 \n\t\t\t\t\t\t&& fontProps.indexOf('font-family') != -1\n\t\t\t\t\t\t|| fontProps.indexOf('font') != -1\n\t\t\t\t\t) {\n\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Font : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\tfontHasInherit = false;\n\t\t\t\t\t\tfontValues = font.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tfontHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tif (fontHasInherit == false) {\n\t\t\t\t\t\t\tfontPositions = font.map(function(o) { return o.position; });\n\t\t\t\t\t\t\tfontPropsOutput = ['font-style', 'font-variant', 'font-weight', 'font-stretch', 'font-size', 'line-height', 'font-family'];\n\t\t\t\t\t\t\tfontValuesOutput = [\n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('font-style')]?fontValues[fontProps.indexOf('font-style')]:''), \n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('font-variant')]?fontValues[fontProps.indexOf('font-variant')]:''), \n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('font-weight')]?fontValues[fontProps.indexOf('font-weight')]:''), \n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('font-stretch')]?fontValues[fontProps.indexOf('font-stretch')]:''), \n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('font-size')]?fontValues[fontProps.indexOf('font-size')]:''), \n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('line-height')]?fontValues[fontProps.indexOf('line-height')]:''), \n\t\t\t\t\t\t\t\t(fontValues[fontProps.indexOf('font-family')]?fontValues[fontProps.indexOf('font-family')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing font check\n\t\t\t\t\t\t\tfontTmpIdx = fontProps.indexOf('font')\n\t\t\t\t\t\t\tif (fontTmpIdx != -1) {\n\t\t\t\t\t\t\t\tfontTmp = fontValues[fontTmpIdx];\n\n\t\t\t\t\t\t\t\t//fill missing attribute with existing font\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('font-size') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[4] = fontValues[fontProps.indexOf('font-size')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfontValuesOutput[4] = getValueOfFontProp(fontTmp, 'size', fontPositions[fontProps.indexOf('font')]);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (fontValuesOutput[4] == 'check family') {\n\t\t\t\t\t\t\t\t\t\t//check required font-family property exists\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tfontValues[fontProps.indexOf('font-family')] !== '' \n\t\t\t\t\t\t\t\t\t\t\t&& fontValues[fontProps.indexOf('font-family')] !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[4] = fontTmp;\n\t\t\t\t\t\t\t\t\t\t\tfontTmp = fontTmp + ' ' + fontValues[fontProps.indexOf('font-family')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//throw error\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(error('Error Parsing Font Declaration'));\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Source: ' + fontPositions[fontProps.indexOf('font')].source))\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Line: ' + fontPositions[fontProps.indexOf('font')].start.line + ', column: ' + fontPositions[fontProps.indexOf('font')].start.column))\n\t\t\t\t\t\t\t\t\t\t\tconsole.log('Required: font-family');\n\t\t\t\t\t\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (fontValuesOutput[4] == 'check size') {\n\t\t\t\t\t\t\t\t\t\t//check required font-size property exists\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tfontValues[fontProps.indexOf('font-size')] !== ''\n\t\t\t\t\t\t\t\t\t\t\t&& fontValues[fontProps.indexOf('font-size')] !== undefined\n\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[4] = fontTmp;\n\t\t\t\t\t\t\t\t\t\t\tfontTmp = fontValues[fontProps.indexOf('font-size')] + ' ' + fontTmp;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tif (fontTmp == 'inherit') {\n\t\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[4] = fontTmp;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t//throw error\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error('Error Parsing Font Declaration'));\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Source: ' + fontPositions[fontProps.indexOf('font')].source))\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Line: ' + fontPositions[fontProps.indexOf('font')].start.line + ', column: ' + fontPositions[fontProps.indexOf('font')].start.column))\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log('Required: font-size');\n\t\t\t\t\t\t\t\t\t\t\t\tprocess.exit(1);\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('font-family') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[6] = fontValues[fontProps.indexOf('font-family')];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[6] = getValueOfFontProp(fontTmp, 'family', fontPositions[fontProps.indexOf('font')]);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (fontValuesOutput[6] == 'check size') {\n\t\t\t\t\t\t\t\t\t\t//check required font-size property exists\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tfontValues[fontProps.indexOf('font-size')] !== ''\n\t\t\t\t\t\t\t\t\t\t\t&& fontValues[fontProps.indexOf('font-size')] !== undefined\n\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[6] = fontTmp;\n\t\t\t\t\t\t\t\t\t\t\tfontTmp = fontValues[fontProps.indexOf('font-size')] + ' ' + fontTmp;\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\tif (fontTmp == 'inherit') {\n\t\t\t\t\t\t\t\t\t\t\t\tif (fontValuesOutput[4] == 'inherit') {\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[6] = '';\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t//throw error\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error('Error Parsing Font Declaration'));\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Source: ' + fontPositions[fontProps.indexOf('font')].source))\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Line: ' + fontPositions[fontProps.indexOf('font')].start.line + ', column: ' + fontPositions[fontProps.indexOf('font')].start.column))\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log('Required: font-size');\n\t\t\t\t\t\t\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else if (fontValuesOutput[6] == 'check family') {\n\t\t\t\t\t\t\t\t\t\t//check required font-family property exists\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tfontValues[fontProps.indexOf('font-family')] !== '' \n\t\t\t\t\t\t\t\t\t\t\t&& fontValues[fontProps.indexOf('font-family')] !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[6] = fontTmp;\n\t\t\t\t\t\t\t\t\t\t\tfontTmp = fontTmp + ' ' + fontValues[fontProps.indexOf('font-family')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//throw error\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(error('Error Parsing Font Declaration'));\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Source: ' + fontPositions[fontProps.indexOf('font')].source))\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(error2('Line: ' + fontPositions[fontProps.indexOf('font')].start.line + ', column: ' + fontPositions[fontProps.indexOf('font')].start.column))\n\t\t\t\t\t\t\t\t\t\t\tconsole.log('Required: font-family');\n\t\t\t\t\t\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//make sure multi-worded families have quotes\n\t\t\t\t\t\t\t\t\t\tif (OPTIONS.format_font_family || OPTIONS.format) {\n\n\t\t\t\t\t\t\t\t\t\t\tfontVal = fontValuesOutput[6];\n\t\t\t\t\t\t\t\t\t\t\tfontTmpVal = '';\n\t\t\t\t\t\t\t\t\t\t\tfor (k = 0, klen = fontVal.length; k < klen; ++k) {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tfontVal[k] = fontVal[k].trim();\n\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontVal[k].indexOf(' ') != -1\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontVal[k].indexOf('\"') == -1\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontTmpVal += '\"' + fontVal[k].trim() + '\",';\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontTmpVal += fontVal[k].trim() + ',';\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfontTmpVal = fontTmpVal.substring(0, fontTmpVal.length - 1);\n\t\t\t\t\t\t\t\t\t\t\tfontValuesOutput[6] = fontTmpVal;\n\n\t\t\t\t\t\t\t\t\t\t} //end of format\n\t\t\t\t\t\t\t\t\t} //end of font-family checks\n\t\t\t\t\t\t\t\t} //end of font-family\n\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('font-style') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[0] = fontValues[fontProps.indexOf('font-style')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[0] = getValueOfFontProp(fontTmp, 'style', fontPositions[fontProps.indexOf('font')]);\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[0] == 'check size'\n\t\t\t\t\t\t\t\t\t\t|| fontValuesOutput[0] == 'check family'\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[0] = '';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('font-variant') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[1] = fontValues[fontProps.indexOf('font-variant')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[1] = getValueOfFontProp(fontTmp, 'variant', fontPositions[fontProps.indexOf('font')]);\n\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[1] == 'check size'\n\t\t\t\t\t\t\t\t\t\t|| fontValuesOutput[1] == 'check family'\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('font-weight') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[2] = fontValues[fontProps.indexOf('font-weight')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[2] = getValueOfFontProp(fontTmp, 'weight', fontPositions[fontProps.indexOf('font')]);\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[2] == 'check size'\n\t\t\t\t\t\t\t\t\t\t|| fontValuesOutput[2] == 'check family'\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('font-stretch') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[3] = fontValues[fontProps.indexOf('font-stretch')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[3] = getValueOfFontProp(fontTmp, 'stretch', fontPositions[fontProps.indexOf('font')]);\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[3] == 'check size'\n\t\t\t\t\t\t\t\t\t\t|| fontValuesOutput[3] == 'check family'\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[3] = '';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fontProps.indexOf('line-height') > fontTmpIdx) {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[5] = fontValues[fontProps.indexOf('line-height')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfontValuesOutput[5] = getValueOfFontProp(fontTmp, 'lineHeight', fontPositions[fontProps.indexOf('font')]);\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[5] == 'check size'\n\t\t\t\t\t\t\t\t\t\t|| fontValuesOutput[5] == 'check family'\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tfontValuesOutput[5] = '';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// console.log(fontPropsOutput)\n\t\t\t\t\t\t\t// console.log(fontValuesOutput)\n\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tfontValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& fontValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& fontValuesOutput[2] == ''\n\t\t\t\t\t\t\t\t&& fontValuesOutput[3] == ''\n\t\t\t\t\t\t\t\t&& fontValuesOutput[4] == ''\n\t\t\t\t\t\t\t\t&& fontValuesOutput[5] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tfontProps = fontPropsOutput;\n\t\t\t\t\t\t\t\tfontValues = fontValuesOutput;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// console.log(fontProps)\n\t\t\t\t\t\t\t// console.log(fontValues)\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tfontHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = fontValues.length; k < klen; ++k) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfontValues[k] = fontValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tfontHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (fontHasImportant) {\n\t\t\t\t\t\t\t\t\tfontValues[fontValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//merge line-height with font-size\n\t\t\t\t\t\t\tif (fontValues[fontProps.indexOf('line-height')] !== '') {\n\t\t\t\t\t\t\t\tfontValues[fontProps.indexOf('font-size')] = fontValues[fontProps.indexOf('font-size')] + '/' + fontValues[fontProps.indexOf('line-height')];\n\t\t\t\t\t\t\t\tfontValues.splice(fontProps.indexOf('line-height'), 1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tfontValues = fontValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tfontTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < fontTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'font-style': \n\t\t\t\t\t\t\t\t\tcase 'font-variant': \n\t\t\t\t\t\t\t\t\tcase 'font-weight': \n\t\t\t\t\t\t\t\t\tcase 'font-stretch': \n\t\t\t\t\t\t\t\t\tcase 'font-size': \n\t\t\t\t\t\t\t\t\tcase 'font-family': \n\t\t\t\t\t\t\t\t\tcase 'line-height': \n\t\t\t\t\t\t\t\t\tcase 'font': \n\t\t\t\t\t\t\t\t\t\tfontIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (fontIndex < fontTmpIdx && fontIndex != -1) { fontTmpIdx = fontIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\trules[i].declarations.splice(fontTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'font',\n\t\t\t\t\t\t\t\tvalue: fontValues.join(' ')\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noFontsShortened += 1;\n\n\t\t\t\t    \t//remove existing originals\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('font-style');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('font-variant');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('font-weight');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('font-stretch');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('font-size');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('line-height');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tfontIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('font-family');\n\t\t\t\t\t\t\tif (fontIndex != -1) { rules[i].declarations.splice(fontIndex, 1); dCount-=1;\t}\n\n\t\t\t\t\t\t\t//remove existing fonts\n\t\t\t\t\t\t\tfont = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tfontProps = font.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousFonts = fontProps.filter(function(value){ return value === 'font'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousFonts > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousFonts; ++j) {\n\t\t\t\t\t\t\t\t\tfontTmpIdx = fontProps.indexOf('font',(fontProps.indexOf('font')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(fontTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} //end of inherit check\n\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t//end of font\n\n\n\n\n\n\n\t\t\t\t//background\n\t\t\t\tif (OPTIONS.shorten_background || OPTIONS.shorten) {\n\t\t\t\t\tbackground = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'background-color' \n\t\t\t\t\t  \t\t|| obj.property == 'background-image'\n\t\t\t\t\t  \t\t|| obj.property == 'background-repeat'\n\t\t\t\t\t  \t\t|| obj.property == 'background-attachment'\n\t\t\t\t\t  \t\t|| obj.property == 'background-position'\n\t\t\t\t\t  \t\t// || obj.property == 'background-size'\n\t\t\t\t\t  \t\t// || obj.property == 'background-origin'\n\t\t\t\t\t  \t\t// || obj.property == 'background-clip'\n\t\t\t\t\t  \t\t|| obj.property == 'background'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tbackgroundProps = background.map(function(o) { return o.property; });\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tbackgroundProps.length >= OPTIONS.shorten_background_min\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Background : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\tbackgroundHasInherit = false;\n\t\t\t\t\t\tbackgroundValues = background.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tbackgroundHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tif (backgroundHasInherit == false) {\n\t\t\t\t\t\t\tbackgroundPropsOutput = ['background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position'];\n\t\t\t\t\t\t\tbackgroundValuesOutput = [\n\t\t\t\t\t\t\t\t(backgroundValues[backgroundProps.indexOf('background-color')]?backgroundValues[backgroundProps.indexOf('background-color')]:''), \n\t\t\t\t\t\t\t\t(backgroundValues[backgroundProps.indexOf('background-image')]?backgroundValues[backgroundProps.indexOf('background-image')]:''), \n\t\t\t\t\t\t\t\t(backgroundValues[backgroundProps.indexOf('background-repeat')]?backgroundValues[backgroundProps.indexOf('background-repeat')]:''), \n\t\t\t\t\t\t\t\t(backgroundValues[backgroundProps.indexOf('background-attachment')]?backgroundValues[backgroundProps.indexOf('background-attachment')]:''), \n\t\t\t\t\t\t\t\t(backgroundValues[backgroundProps.indexOf('background-position')]?backgroundValues[backgroundProps.indexOf('background-position')]:''), \n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\thasMultipleBackgrounds = false;\n\t\t\t\t\t\t\thasGradient = false;\n\n\t\t\t\t\t\t\tif (backgroundValues[0].match(/([^0-9]),([^0-9])/g) !== null) {\n\t\t\t\t\t\t\t\thasMultipleBackgrounds = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// console.log(backgroundProps)\n\t\t\t\t\t\t\t// console.log(backgroundValues)\n\t\t\t\t\t\t\t//existing background check\n\t\t\t\t\t\t\tfor (j = 0; j < backgroundProps.length; ++j) {\n\n\t\t\t\t\t\t\t\tif (backgroundValues[j].indexOf('gradient') != -1) {\n\n\t\t\t\t\t\t\t\t\thasGradient = true;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (backgroundProps[j] == 'background') {\n\t\t\t\t\t\t\t\t\tbackgroundTmpIdx = j;\n\t\t\t\t\t\t\t\t\tbackgroundTmp = backgroundValues[backgroundTmpIdx];\n\n\t\t\t\t\t\t\t\t\tif (backgroundTmp.indexOf('gradient') == -1) {\n\t\t\t\t\t\t\t\t\t\t//fill missing attribute with existing background props\n\t\t\t\t\t\t\t\t\t\tif (backgroundProps.indexOf('background-color') > backgroundTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[0] = backgroundValues[backgroundProps.indexOf('background-color')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[0] = (backgroundTmp2 = getBackgroundProp(backgroundTmp, 'color')) ? backgroundTmp2 : backgroundValuesOutput[0];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (backgroundProps.indexOf('background-image') > backgroundTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[1] = backgroundValues[backgroundProps.indexOf('background-image')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[1] = (backgroundTmp2 = getBackgroundProp(backgroundTmp, 'image')) ? backgroundTmp2 : backgroundValuesOutput[1];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (backgroundProps.indexOf('background-repeat') > backgroundTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[2] = backgroundValues[backgroundProps.indexOf('background-repeat')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[2] = (backgroundTmp2 = getBackgroundProp(backgroundTmp, 'repeat')) ? backgroundTmp2 : backgroundValuesOutput[2];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (backgroundProps.indexOf('background-attachment') > backgroundTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[3] = backgroundValues[backgroundProps.indexOf('background-attachment')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[3] = (backgroundTmp2 = getBackgroundProp(backgroundTmp, 'attachment')) ? backgroundTmp2 : backgroundValuesOutput[3];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (backgroundProps.indexOf('background-position') > backgroundTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[4] = backgroundValues[backgroundProps.indexOf('background-position')];\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[4] = (backgroundTmp2 = getBackgroundProp(backgroundTmp, 'position')) ? backgroundTmp2 : backgroundValuesOutput[4];\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (hasMultipleBackgrounds && hasGradient == false) {\n\t\t\t\t\t\t\t\t// console.log('hi')\n\t\t\t\t\t\t\t\tbackgroundTmp = '';\n\t\t\t\t\t\t\t\tbackgroundTmp2 = '';\n\t\t\t\t\t\t\t\tfor (j = 0; j < backgroundValuesOutput.length; ++j) {\n\t\t\t\t\t\t\t\t\tbackgroundTmpIdx = backgroundValuesOutput[j].split(',');\n\t\t\t\t\t\t\t\t\tbackgroundTmp += (backgroundTmpIdx[0]) ? backgroundTmpIdx[0].trim() + ' ' : '';\n\t\t\t\t\t\t\t\t\tbackgroundTmp2 += (backgroundTmpIdx[1]) ? backgroundTmpIdx[1].trim() + ' ' : '';\n\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[j] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbackgroundTmp = backgroundTmp.trim();\n\t\t\t\t\t\t\t\tbackgroundTmp += ', ' + backgroundTmp2.trim();\n\t\t\t\t\t\t\t\tbackgroundValuesOutput[0] = backgroundTmp;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// console.log(backgroundPropsOutput)\n\t\t\t\t\t\t\t// console.log(backgroundValuesOutput)\n\n\t\t\t\t\t\t\tif (hasGradient == false) {\n\n\n\t\t\t\t\t\t\t\t// console.log(backgroundProps)\n\t\t\t\t\t\t\t\t// console.log(backgroundValues)\n\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\tbackgroundValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t\t&& backgroundValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t\t&& backgroundValuesOutput[2] == ''\n\t\t\t\t\t\t\t\t\t&& backgroundValuesOutput[3] == ''\n\t\t\t\t\t\t\t\t\t&& backgroundValuesOutput[4] == ''\n\t\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tbackgroundProps = backgroundPropsOutput;\n\t\t\t\t\t\t\t\t\tbackgroundValues = backgroundValuesOutput;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// console.log(backgroundProps)\n\t\t\t\t\t\t\t\t// console.log(backgroundValues)\n\n\t\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\t\tbackgroundHasImportant = false;\n\t\t\t\t\t\t\t\tfor (k = 0, klen = backgroundValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\t\tbackgroundValues[k] = backgroundValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\t\tbackgroundHasImportant = true;\n\t\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (backgroundHasImportant) {\n\t\t\t\t\t\t\t\t\t\tbackgroundValues[backgroundValues.length-1] += ' !important';\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\t\tbackgroundValues = backgroundValues.filter(Boolean);\n\n\t\t\t\t\t\t\t\t//add new declaration to highest property position\n\t\t\t\t\t\t\t\tbackgroundTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\t\tfor (j = 0; j < backgroundTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\t\tcase 'background-color': \n\t\t\t\t\t\t\t\t\t\tcase 'background-image': \n\t\t\t\t\t\t\t\t\t\tcase 'background-position': \n\t\t\t\t\t\t\t\t\t\tcase 'background-repeat': \n\t\t\t\t\t\t\t\t\t\tcase 'background-attachment': \n\t\t\t\t\t\t\t\t\t\t// case 'background-size': \n\t\t\t\t\t\t\t\t\t\t// case 'background-origin': \n\t\t\t\t\t\t\t\t\t\t// case 'background-clip': \n\t\t\t\t\t\t\t\t\t\tcase 'background': \n\t\t\t\t\t\t\t\t\t\t\tbackgroundIndex = j;\n\t\t\t\t\t\t\t\t\t\t\tif (backgroundIndex < backgroundTmpIdx && backgroundIndex != -1) { backgroundTmpIdx = backgroundIndex; }\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\trules[i].declarations.splice(backgroundTmpIdx, 0, {\n\t\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\t\tproperty: 'background',\n\t\t\t\t\t\t\t\t\tvalue: backgroundValues.join(' ')\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t\t    \tsummary.stats.summary.noBackgroundsShortened += 1;\n\n\t\t\t\t\t\t\t\t//remove originals\n\t\t\t\t\t\t\t\tbackgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-color');\n\t\t\t\t\t\t\t\tif (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tbackgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-image');\n\t\t\t\t\t\t\t\tif (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tbackgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-position');\n\t\t\t\t\t\t\t\tif (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tbackgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-repeat');\n\t\t\t\t\t\t\t\tif (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tbackgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-attachment');\n\t\t\t\t\t\t\t\tif (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\t// backgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-size');\n\t\t\t\t\t\t\t\t// if (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\t// backgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-origin');\n\t\t\t\t\t\t\t\t// if (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\t// backgroundIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('background-clip');\n\t\t\t\t\t\t\t\t// if (backgroundIndex != -1) { rules[i].declarations.splice(backgroundIndex, 1); dCount-=1;\t}\n\n\t\t\t\t\t\t\t\t//remove existing backgrounds\n\t\t\t\t\t\t\t\tbackground = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\t\tbackgroundProps = background.map(function(o) { return o.property; });\n\t\t\t\t\t\t\t\tnoPreviousBackgrounds = backgroundProps.filter(function(value){ return value === 'background'; }).length - 1;\n\t\t\t\t\t\t\t\tif (noPreviousBackgrounds > 0) {\n\t\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBackgrounds; ++j) {\n\t\t\t\t\t\t\t\t\t\tbackgroundTmpIdx = backgroundProps.indexOf('background',(backgroundProps.indexOf('background')+1));\n\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(backgroundTmpIdx, 1); \n\t\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t}\n\t\t\t\t} //end of background\n\n\n\n\n\t\t\t\t//listStyle\n\t\t\t\tif (OPTIONS.shorten_list_style || OPTIONS.shorten) {\n\t\t\t\t\tlistStyle = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'list-style-type' \n\t\t\t\t\t  \t\t|| obj.property == 'list-style-position'\n\t\t\t\t\t  \t\t|| obj.property == 'list-style-image'\n\t\t\t\t\t  \t\t|| obj.property == 'list-style'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tlistStyleProps = listStyle.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\tlistStyleProps.indexOf('list-style-type') != -1 \n\t\t\t\t\t\t|| listStyleProps.indexOf('list-style-position') != -1 \n\t\t\t\t\t\t|| listStyleProps.indexOf('list-style-image') != -1 \n\t\t\t\t\t\t|| listStyleProps.indexOf('list-style') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - List-style : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\tlistStyleHasInherit = false;\n\t\t\t\t\t\tlistStyleValues = listStyle.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tlistStyleHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tif (listStyleHasInherit == false) {\n\n\t\t\t\t\t\t\tlistStylePropsOutput = ['list-style-type', 'list-style-position', 'list-style-image'];\n\t\t\t\t\t\t\tlistStyleValuesOutput = [\n\t\t\t\t\t\t\t\t(listStyleValues[listStyleProps.indexOf('list-style-type')]?listStyleValues[listStyleProps.indexOf('list-style-type')]:''), \n\t\t\t\t\t\t\t\t(listStyleValues[listStyleProps.indexOf('list-style-position')]?listStyleValues[listStyleProps.indexOf('list-style-position')]:''), \n\t\t\t\t\t\t\t\t(listStyleValues[listStyleProps.indexOf('list-style-image')]?listStyleValues[listStyleProps.indexOf('list-style-image')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing listStyle check\n\t\t\t\t\t\t\tlistStyleTmpIdx = listStyleProps.indexOf('list-style')\n\t\t\t\t\t\t\tif (listStyleTmpIdx != -1) {\n\t\t\t\t\t\t\t\tlistStyleTmp = listStyleValues[listStyleTmpIdx];\n\n\t\t\t\t\t\t\t\tif (listStyleTmp != 'none') {\n\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing listStyle\n\t\t\t\t\t\t\t\t\tif (listStyleProps.indexOf('list-style-type') > listStyleTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[0] = listStyleValues[listStyleProps.indexOf('list-style-type')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[0] = (listStyleTmp2 = getValueOfTriProp(listStyleTmp, 'type')) ? listStyleTmp2 : listStyleValuesOutput[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (listStyleProps.indexOf('list-style-position') > listStyleTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[1] = listStyleValues[listStyleProps.indexOf('list-style-position')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[1] = (listStyleTmp2 = getValueOfTriProp(listStyleTmp, 'position')) ? listStyleTmp2 : listStyleValuesOutput[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (listStyleProps.indexOf('list-style-image') > listStyleTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[2] = listStyleValues[listStyleProps.indexOf('list-style-image')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[2] = (listStyleTmp2 = getValueOfTriProp(listStyleTmp, 'image')) ? listStyleTmp2 : listStyleValuesOutput[2];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[0] = listStyleTmp;\n\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\tlistStyleValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tlistStyleValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& listStyleValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& listStyleValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tlistStyleProps = listStylePropsOutput;\n\t\t\t\t\t\t\t\tlistStyleValues = listStyleValuesOutput;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// console.log(listStyleProps)\n\t\t\t\t\t\t\t// console.log(listStyleValues)\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tlistStyleHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = listStyleValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tlistStyleValues[k] = listStyleValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tlistStyleHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (listStyleHasImportant) {\n\t\t\t\t\t\t\t\t\tlistStyleValues[listStyleValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tlistStyleValues = listStyleValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tlistStyleTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < listStyleTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'list-style-type': \n\t\t\t\t\t\t\t\t\tcase 'list-style-position': \n\t\t\t\t\t\t\t\t\tcase 'list-style-image': \n\t\t\t\t\t\t\t\t\tcase 'list-style': \n\t\t\t\t\t\t\t\t\t\tlistStyleIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (listStyleIndex < listStyleTmpIdx && listStyleIndex != -1) { listStyleTmpIdx = listStyleIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(listStyleTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'list-style',\n\t\t\t\t\t\t\t\tvalue: listStyleValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noListStylesShortened += 1;\n\n\t\t\t\t\t\t\tlistStyleIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('list-style-type');\n\t\t\t\t\t\t\tif (listStyleIndex != -1) { rules[i].declarations.splice(listStyleIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tlistStyleIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('list-style-position');\n\t\t\t\t\t\t\tif (listStyleIndex != -1) { rules[i].declarations.splice(listStyleIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tlistStyleIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('list-style-image');\n\t\t\t\t\t\t\tif (listStyleIndex != -1) { rules[i].declarations.splice(listStyleIndex, 1); dCount-=1;\t}\n\n\t\t\t\t\t\t\t//remove existing listStyles\n\t\t\t\t\t\t\tlistStyle = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tlistStyleProps = listStyle.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousMargins = listStyleProps.filter(function(value){ return value === 'list-style'; }).length;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (noPreviousMargins > 1) {\n\t\t\t\t\t\t\t\tfor (j = 1; j < noPreviousMargins; ++j) {\n\t\t\t\t\t\t\t\t\tlistStyleTmpIdx = listStyleProps.indexOf('list-style',(listStyleProps.indexOf('list-style')+1));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(listStyleTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // end of inherit check\n\t\t\t\t\t}\n\t\t\t\t} //end of listStyle\n\n\n\n\t\t\t\t//outline\n\t\t\t\tif (OPTIONS.shorten_outline || OPTIONS.shorten) {\n\t\t\t\t\toutline = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'outline-width' \n\t\t\t\t\t  \t\t|| obj.property == 'outline-style'\n\t\t\t\t\t  \t\t|| obj.property == 'outline-color'\n\t\t\t\t\t  \t\t|| obj.property == 'outline'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\toutlineProps = outline.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\toutlineProps.indexOf('outline-style') != -1 \n\t\t\t\t\t\t|| outlineProps.indexOf('outline') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Outline : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\n\n\t\t\t\t\t\toutlineHasInherit = false;\n\t\t\t\t\t\toutlineValues = outline.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\toutlineHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tif (outlineHasInherit == false) {\n\n\t\t\t\t\t\t\toutlineValues = outline.map(function(o) { return o.value; });\n\t\t\t\t\t\t\toutlinePropsOutput = ['outline-width', 'outline-style', 'outline-color'];\n\t\t\t\t\t\t\toutlineValuesOutput = [\n\t\t\t\t\t\t\t\t(outlineValues[outlineProps.indexOf('outline-width')]?outlineValues[outlineProps.indexOf('outline-width')]:''), \n\t\t\t\t\t\t\t\t(outlineValues[outlineProps.indexOf('outline-style')]?outlineValues[outlineProps.indexOf('outline-style')]:''), \n\t\t\t\t\t\t\t\t(outlineValues[outlineProps.indexOf('outline-color')]?outlineValues[outlineProps.indexOf('outline-color')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing outline check\n\t\t\t\t\t\t\toutlineTmpIdx = outlineProps.indexOf('outline')\n\t\t\t\t\t\t\tif (outlineTmpIdx != -1) {\n\t\t\t\t\t\t\t\toutlineTmp = outlineValues[outlineTmpIdx];\n\t\t\t\t\t\t\t\tif (outlineTmp != 'none') {\n\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing outline\n\t\t\t\t\t\t\t\t\tif (outlineProps.indexOf('outline-width') > outlineTmpIdx) {\n\t\t\t\t\t\t\t\t\t\toutlineValuesOutput[0] = outlineValues[outlineProps.indexOf('outline-width')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\toutlineValuesOutput[0] = (outlineTmp2 = getValueOfTriProp(outlineTmp, 'width')) ? outlineTmp2 : outlineValuesOutput[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (outlineProps.indexOf('outline-style') > outlineTmpIdx) {\n\t\t\t\t\t\t\t\t\t\toutlineValuesOutput[1] = outlineValues[outlineProps.indexOf('outline-style')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\toutlineValuesOutput[1] = (outlineTmp2 = getValueOfTriProp(outlineTmp, 'style')) ? outlineTmp2 : outlineValuesOutput[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (outlineProps.indexOf('outline-color') > outlineTmpIdx) {\n\t\t\t\t\t\t\t\t\t\toutlineValuesOutput[2] = outlineValues[outlineProps.indexOf('outline-color')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\toutlineValuesOutput[2] = (outlineTmp2 = getValueOfTriProp(outlineTmp, 'color')) ? outlineTmp2 : outlineValuesOutput[2];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutlineValuesOutput[0] = '0';\n\t\t\t\t\t\t\t\t\toutlineValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\toutlineValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\toutlineValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& outlineValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& outlineValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\toutlineProps = outlinePropsOutput;\n\t\t\t\t\t\t\t\toutlineValues = outlineValuesOutput;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\toutlineHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = outlineValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\toutlineValues[k] = outlineValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\toutlineHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (outlineHasImportant) {\n\t\t\t\t\t\t\t\t\toutlineValues[outlineValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\toutlineValues = outlineValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\toutlineTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < outlineTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'outline-width': \n\t\t\t\t\t\t\t\t\tcase 'outline-style': \n\t\t\t\t\t\t\t\t\tcase 'outline-color': \n\t\t\t\t\t\t\t\t\tcase 'outline': \n\t\t\t\t\t\t\t\t\t\toutlineIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (outlineIndex < outlineTmpIdx && outlineIndex != -1) { outlineTmpIdx = outlineIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(outlineTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'outline',\n\t\t\t\t\t\t\t\tvalue: outlineValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noOutlinesShortened += 1;\n\n\t\t\t\t\t\t\toutlineIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('outline-width');\n\t\t\t\t\t\t\tif (outlineIndex != -1) { rules[i].declarations.splice(outlineIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\toutlineIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('outline-style');\n\t\t\t\t\t\t\tif (outlineIndex != -1) { rules[i].declarations.splice(outlineIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\toutlineIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('outline-color');\n\t\t\t\t\t\t\tif (outlineIndex != -1) { rules[i].declarations.splice(outlineIndex, 1); dCount-=1;\t}\n\n\t\t\t\t\t\t\t//remove existing outlines\n\t\t\t\t\t\t\toutline = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\toutlineProps = outline.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousOutline = outlineProps.filter(function(value){ return value === 'outline'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousOutline > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousOutline; ++j) {\n\t\t\t\t\t\t\t\t\toutlineTmpIdx = outlineProps.indexOf('outline',(outlineProps.indexOf('outline')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(outlineTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t}\n\t\t\t\t} //end of outline\n\n\n\n\n\t\t\t\t//borderTop\n\t\t\t\tif (OPTIONS.shorten_border_top || OPTIONS.shorten) {\n\t\t\t\t\tborderTop = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border-top-width' \n\t\t\t\t\t  \t\t|| obj.property == 'border-top-style'\n\t\t\t\t\t  \t\t|| obj.property == 'border-top-color'\n\t\t\t\t\t  \t\t|| obj.property == 'border-top'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tborderTopProps = borderTop.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\tborderTopProps.indexOf('border-top-style') != -1 \n\t\t\t\t\t\t|| borderTopProps.indexOf('border-top') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Border Top : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\tborderTopHasInherit = false;\n\t\t\t\t\t\tborderTopValues = borderTop.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderTopHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tif (borderTopHasInherit == false) {\n\n\t\t\t\t\t\t\tborderTopPropsOutput = ['border-top-width', 'border-top-style', 'border-top-color'];\n\t\t\t\t\t\t\tborderTopValuesOutput = [\n\t\t\t\t\t\t\t\t(borderTopValues[borderTopProps.indexOf('border-top-width')]?borderTopValues[borderTopProps.indexOf('border-top-width')]:''), \n\t\t\t\t\t\t\t\t(borderTopValues[borderTopProps.indexOf('border-top-style')]?borderTopValues[borderTopProps.indexOf('border-top-style')]:''), \n\t\t\t\t\t\t\t\t(borderTopValues[borderTopProps.indexOf('border-top-color')]?borderTopValues[borderTopProps.indexOf('border-top-color')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing borderTop check\n\t\t\t\t\t\t\tborderTopTmpIdx = borderTopProps.indexOf('border-top')\n\t\t\t\t\t\t\tif (borderTopTmpIdx != -1) {\n\t\t\t\t\t\t\t\tborderTopTmp = borderTopValues[borderTopTmpIdx];\n\n\t\t\t\t\t\t\t\tif (borderTopTmp != 'none') {\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing borderTop\n\t\t\t\t\t\t\t\t\tif (borderTopProps.indexOf('border-top-width') > borderTopTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tborderTopValuesOutput[0] = borderTopValues[borderTopProps.indexOf('border-top-width')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderTopValuesOutput[0] = (borderTopTmp2 = getValueOfTriProp(borderTopTmp, 'width')) ? borderTopTmp2 : borderTopValuesOutput[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderTopProps.indexOf('border-top-style') > borderTopTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tborderTopValuesOutput[1] = borderTopValues[borderTopProps.indexOf('border-top-style')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderTopValuesOutput[1] = (borderTopTmp2 = getValueOfTriProp(borderTopTmp, 'style')) ? borderTopTmp2 : borderTopValuesOutput[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderTopProps.indexOf('border-top-color') > borderTopTmpIdx) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tborderTopValuesOutput[2] = borderTopValues[borderTopProps.indexOf('border-top-color')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderTopValuesOutput[2] = (borderTopTmp2 = getValueOfTriProp(borderTopTmp, 'color')) ? borderTopTmp2 : borderTopValuesOutput[2];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderTopValuesOutput[0] = '0';\n\t\t\t\t\t\t\t\t\tborderTopValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\tborderTopValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderTopValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& borderTopValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& borderTopValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tborderTopProps = borderTopPropsOutput;\n\t\t\t\t\t\t\t\tborderTopValues = borderTopValuesOutput;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tborderTopHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = borderTopValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tborderTopValues[k] = borderTopValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tborderTopHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (borderTopHasImportant) {\n\t\t\t\t\t\t\t\t\tborderTopValues[borderTopValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tborderTopValues = borderTopValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tborderTopTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < borderTopTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'border-top-width': \n\t\t\t\t\t\t\t\t\tcase 'border-top-style': \n\t\t\t\t\t\t\t\t\tcase 'border-top-color': \n\t\t\t\t\t\t\t\t\tcase 'border-top': \n\t\t\t\t\t\t\t\t\t\tborderTopIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (borderTopIndex < borderTopTmpIdx && borderTopIndex != -1) { borderTopTmpIdx = borderTopIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(borderTopTmpIdx,0,{\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'border-top',\n\t\t\t\t\t\t\t\tvalue: borderTopValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noBorderTopsShortened += 1;\n\n\t\t\t\t\t\t\tborderTopIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-top-width');\n\t\t\t\t\t\t\tif (borderTopIndex != -1) { rules[i].declarations.splice(borderTopIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderTopIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-top-style');\n\t\t\t\t\t\t\tif (borderTopIndex != -1) { rules[i].declarations.splice(borderTopIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderTopIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-top-color');\n\t\t\t\t\t\t\tif (borderTopIndex != -1) { rules[i].declarations.splice(borderTopIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove existing borderTops\n\t\t\t\t\t\t\tborderTop = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tborderTopProps = borderTop.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousBorderTop = borderTopProps.filter(function(value){ return value === 'border-top'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousBorderTop > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBorderTop; ++j) {\n\t\t\t\t\t\t\t\t\tborderTopTmpIdx = borderTopProps.indexOf('border-top',(borderTopProps.indexOf('border-top')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(borderTopTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit\n\t\t\t\t\t}\n\t\t\t\t} //end of borderTop\n\n\n\t\t\t\t//borderRight\n\t\t\t\tif (OPTIONS.shorten_border_top || OPTIONS.shorten) {\n\t\t\t\t\tborderRight = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border-right-width' \n\t\t\t\t\t  \t\t|| obj.property == 'border-right-style'\n\t\t\t\t\t  \t\t|| obj.property == 'border-right-color'\n\t\t\t\t\t  \t\t|| obj.property == 'border-right'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tborderRightProps = borderRight.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\tborderRightProps.indexOf('border-right-style') != -1 \n\t\t\t\t\t\t|| borderRightProps.indexOf('border-right') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Border Right : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tborderRightHasInherit = false;\n\t\t\t\t\t\tborderRightValues = borderRight.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderRightHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (borderRightHasInherit == false) {\n\n\t\t\t\t\t\t\tborderRightPropsOutput = ['border-right-width', 'border-right-style', 'border-right-color'];\n\t\t\t\t\t\t\tborderRightValuesOutput = [\n\t\t\t\t\t\t\t\t(borderRightValues[borderRightProps.indexOf('border-right-width')]?borderRightValues[borderRightProps.indexOf('border-right-width')]:''), \n\t\t\t\t\t\t\t\t(borderRightValues[borderRightProps.indexOf('border-right-style')]?borderRightValues[borderRightProps.indexOf('border-right-style')]:''), \n\t\t\t\t\t\t\t\t(borderRightValues[borderRightProps.indexOf('border-right-color')]?borderRightValues[borderRightProps.indexOf('border-right-color')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing borderRight check\n\t\t\t\t\t\t\tborderRightTmpIdx = borderRightProps.indexOf('border-right')\n\t\t\t\t\t\t\tif (borderRightTmpIdx != -1) {\n\t\t\t\t\t\t\t\thasBorderRight = true;\n\t\t\t\t\t\t\t\tborderRightTmp = borderRightValues[borderRightTmpIdx];\n\n\t\t\t\t\t\t\t\tif (borderRightTmp != 'none') {\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing borderRight\n\t\t\t\t\t\t\t\t\tif (borderRightProps.indexOf('border-right-width') > borderRightTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderRightValuesOutput[0] = borderRightValues[borderRightProps.indexOf('border-right-width')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderRightValuesOutput[0] = getValueOfTriProp(borderRightTmp, 'width');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderRightProps.indexOf('border-right-style') > borderRightTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderRightValuesOutput[1] = borderRightValues[borderRightProps.indexOf('border-right-style')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderRightValuesOutput[1] = getValueOfTriProp(borderRightTmp, 'style');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderRightProps.indexOf('border-right-color') > borderRightTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderRightValuesOutput[2] = borderRightValues[borderRightProps.indexOf('border-right-color')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderRightValuesOutput[2] = getValueOfTriProp(borderRightTmp, 'color');\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderRightValuesOutput[0] = '0';\n\t\t\t\t\t\t\t\t\tborderRightValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\tborderRightValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderRightValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& borderRightValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& borderRightValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tborderRightProps = borderRightPropsOutput;\n\t\t\t\t\t\t\t\tborderRightValues = borderRightValuesOutput;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tborderRightHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = borderRightValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tborderRightValues[k] = borderRightValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tborderRightHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (borderRightHasImportant) {\n\t\t\t\t\t\t\t\t\tborderRightValues[borderRightValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tborderRightValues = borderRightValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tborderRightTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < borderRightTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'border-right-width': \n\t\t\t\t\t\t\t\t\tcase 'border-right-style': \n\t\t\t\t\t\t\t\t\tcase 'border-right-color': \n\t\t\t\t\t\t\t\t\tcase 'border-right': \n\t\t\t\t\t\t\t\t\t\tborderRightIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (borderRightIndex < borderRightTmpIdx && borderRightIndex != -1) { borderRightTmpIdx = borderRightIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(borderRightTmpIdx,0,{\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'border-right',\n\t\t\t\t\t\t\t\tvalue: borderRightValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noBorderRightsShortened += 1;\n\n\t\t\t\t\t\t\tborderRightIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-right-width');\n\t\t\t\t\t\t\tif (borderRightIndex != -1) { rules[i].declarations.splice(borderRightIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderRightIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-right-style');\n\t\t\t\t\t\t\tif (borderRightIndex != -1) { rules[i].declarations.splice(borderRightIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderRightIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-right-color');\n\t\t\t\t\t\t\tif (borderRightIndex != -1) { rules[i].declarations.splice(borderRightIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove existing borderRights\n\t\t\t\t\t\t\tborderRight = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tborderRightProps = borderRight.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousBorderRight = borderRightProps.filter(function(value){ return value === 'border-right'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousBorderRight > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBorderRight; ++j) {\n\t\t\t\t\t\t\t\t\tborderRightTmpIdx = borderRightProps.indexOf('border-right',(borderRightProps.indexOf('border-right')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(borderRightTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit\n\t\t\t\t\t}\n\t\t\t\t} //end of borderRight\n\n\n\t\t\t\t//borderBottom\n\t\t\t\tif (OPTIONS.shorten_border_top || OPTIONS.shorten) {\n\t\t\t\t\tborderBottom = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border-bottom-width' \n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom-style'\n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom-color'\n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tborderBottomProps = borderBottom.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\tborderBottomProps.indexOf('border-bottom-style') != -1 \n\t\t\t\t\t\t|| borderBottomProps.indexOf('border-bottom') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Border Bottom : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\tborderBottomHasInherit = false;\n\t\t\t\t\t\tborderBottomValues = borderBottom.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderBottomHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (borderBottomHasInherit == false) {\n\n\t\t\t\t\t\t\tborderBottomPropsOutput = ['border-bottom-width', 'border-bottom-style', 'border-bottom-color'];\n\t\t\t\t\t\t\tborderBottomValuesOutput = [\n\t\t\t\t\t\t\t\t(borderBottomValues[borderBottomProps.indexOf('border-bottom-width')]?borderBottomValues[borderBottomProps.indexOf('border-bottom-width')]:''), \n\t\t\t\t\t\t\t\t(borderBottomValues[borderBottomProps.indexOf('border-bottom-style')]?borderBottomValues[borderBottomProps.indexOf('border-bottom-style')]:''), \n\t\t\t\t\t\t\t\t(borderBottomValues[borderBottomProps.indexOf('border-bottom-color')]?borderBottomValues[borderBottomProps.indexOf('border-bottom-color')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing borderBottom check\n\t\t\t\t\t\t\tborderBottomTmpIdx = borderBottomProps.indexOf('border-bottom')\n\t\t\t\t\t\t\tif (borderBottomTmpIdx != -1) {\n\t\t\t\t\t\t\t\tborderBottomTmp = borderBottomValues[borderBottomTmpIdx];\n\n\t\t\t\t\t\t\t\tif (borderBottomTmp != 'none') {\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing borderBottom\n\t\t\t\t\t\t\t\t\tif (borderBottomProps.indexOf('border-bottom-width') > borderBottomTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[0] = borderBottomValues[borderBottomProps.indexOf('border-bottom-width')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[0] = (borderBottomTmp2 = getValueOfTriProp(borderBottomTmp, 'width')) ? borderBottomTmp2 : borderBottomValuesOutput[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderBottomProps.indexOf('border-bottom-style') > borderBottomTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[1] = borderBottomValues[borderBottomProps.indexOf('border-bottom-style')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[1] = (borderBottomTmp2 = getValueOfTriProp(borderBottomTmp, 'style')) ? borderBottomTmp2 : borderBottomValuesOutput[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderBottomProps.indexOf('border-bottom-color') > borderBottomTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[2] = borderBottomValues[borderBottomProps.indexOf('border-bottom-color')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[2] = (borderBottomTmp2 = getValueOfTriProp(borderBottomTmp, 'color')) ? borderBottomTmp2 : borderBottomValuesOutput[2];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[0] = '0';\n\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\tborderBottomValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderBottomValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& borderBottomValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& borderBottomValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tborderBottomProps = borderBottomPropsOutput;\n\t\t\t\t\t\t\t\tborderBottomValues = borderBottomValuesOutput;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tborderBottomHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = borderBottomValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tborderBottomValues[k] = borderBottomValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tborderBottomHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (borderBottomHasImportant) {\n\t\t\t\t\t\t\t\t\tborderBottomValues[borderBottomValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tborderBottomValues = borderBottomValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tborderBottomTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < borderBottomTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'border-bottom-width': \n\t\t\t\t\t\t\t\t\tcase 'border-bottom-style': \n\t\t\t\t\t\t\t\t\tcase 'border-bottom-color': \n\t\t\t\t\t\t\t\t\tcase 'border-bottom': \n\t\t\t\t\t\t\t\t\t\tborderBottomIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (borderBottomIndex < borderBottomTmpIdx && borderBottomIndex != -1) { borderBottomTmpIdx = borderBottomIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(borderBottomTmpIdx,0,{\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'border-bottom',\n\t\t\t\t\t\t\t\tvalue: borderBottomValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noBorderBottomsShortened += 1;\n\n\t\t\t\t\t\t\tborderBottomIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-bottom-width');\n\t\t\t\t\t\t\tif (borderBottomIndex != -1) { rules[i].declarations.splice(borderBottomIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderBottomIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-bottom-style');\n\t\t\t\t\t\t\tif (borderBottomIndex != -1) { rules[i].declarations.splice(borderBottomIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderBottomIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-bottom-color');\n\t\t\t\t\t\t\tif (borderBottomIndex != -1) { rules[i].declarations.splice(borderBottomIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove existing borderBottoms\n\t\t\t\t\t\t\tborderBottom = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tborderBottomProps = borderBottom.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousBorderBottom = borderBottomProps.filter(function(value){ return value === 'border-bottom'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousBorderBottom > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBorderBottom; ++j) {\n\t\t\t\t\t\t\t\t\tborderBottomTmpIdx = borderBottomProps.indexOf('border-bottom',(borderBottomProps.indexOf('border-bottom')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(borderBottomTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit\n\t\t\t\t\t}\n\t\t\t\t} //end of borderBottom\n\n\n\t\t\t\t//borderLeft\n\t\t\t\tif (OPTIONS.shorten_border_left || OPTIONS.shorten) {\n\t\t\t\t\tborderLeft = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border-left-width' \n\t\t\t\t\t  \t\t|| obj.property == 'border-left-style'\n\t\t\t\t\t  \t\t|| obj.property == 'border-left-color'\n\t\t\t\t\t  \t\t|| obj.property == 'border-left'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tborderLeftProps = borderLeft.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\tborderLeftProps.indexOf('border-left-style') != -1 \n\t\t\t\t\t\t|| borderLeftProps.indexOf('border-left') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Border Left : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tborderLeftHasInherit = false;\n\t\t\t\t\t\tborderLeftValues = borderLeft.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderLeftHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (borderLeftHasInherit == false) {\n\n\t\t\t\t\t\t\tborderLeftPropsOutput = ['border-left-width', 'border-left-style', 'border-left-color'];\n\t\t\t\t\t\t\tborderLeftValuesOutput = [\n\t\t\t\t\t\t\t\t(borderLeftValues[borderLeftProps.indexOf('border-left-width')]?borderLeftValues[borderLeftProps.indexOf('border-left-width')]:''), \n\t\t\t\t\t\t\t\t(borderLeftValues[borderLeftProps.indexOf('border-left-style')]?borderLeftValues[borderLeftProps.indexOf('border-left-style')]:''), \n\t\t\t\t\t\t\t\t(borderLeftValues[borderLeftProps.indexOf('border-left-color')]?borderLeftValues[borderLeftProps.indexOf('border-left-color')]:''), \n\t\t\t\t\t\t\t];\n\n\n\t\t\t\t\t\t\t//existing borderLeft check\n\t\t\t\t\t\t\tborderLeftTmpIdx = borderLeftProps.indexOf('border-left')\n\t\t\t\t\t\t\tif (borderLeftTmpIdx != -1) {\n\t\t\t\t\t\t\t\tborderLeftTmp = borderLeftValues[borderLeftTmpIdx];\n\n\t\t\t\t\t\t\t\tif (borderLeftTmp != 'none') {\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing borderLeft\n\t\t\t\t\t\t\t\t\tif (borderLeftProps.indexOf('border-left-width') > borderLeftTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[0] = borderLeftValues[borderLeftProps.indexOf('border-left-width')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[0] = (borderLeftTmp2 = getValueOfTriProp(borderLeftTmp, 'width')) ? borderLeftTmp2 : borderLeftValuesOutput[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderLeftProps.indexOf('border-left-style') > borderLeftTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[1] = borderLeftValues[borderLeftProps.indexOf('border-left-style')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[1] = (borderLeftTmp2 = getValueOfTriProp(borderLeftTmp, 'style')) ? borderLeftTmp2 : borderLeftValuesOutput[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderLeftProps.indexOf('border-left-color') > borderLeftTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[2] = borderLeftValues[borderLeftProps.indexOf('border-left-color')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[2] = (borderLeftTmp2 = getValueOfTriProp(borderLeftTmp, 'color')) ? borderLeftTmp2 : borderLeftValuesOutput[2];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[0] = '0';\n\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\tborderLeftValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderLeftValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& borderLeftValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& borderLeftValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tborderLeftProps = borderLeftPropsOutput;\n\t\t\t\t\t\t\t\tborderLeftValues = borderLeftValuesOutput;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tborderLeftHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = borderLeftValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tborderLeftValues[k] = borderLeftValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tborderLeftHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (borderLeftHasImportant) {\n\t\t\t\t\t\t\t\t\tborderLeftValues[borderLeftValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tborderLeftValues = borderLeftValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tborderLeftTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < borderLeftTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'border-left-width': \n\t\t\t\t\t\t\t\t\tcase 'border-left-style': \n\t\t\t\t\t\t\t\t\tcase 'border-left-color': \n\t\t\t\t\t\t\t\t\tcase 'border-left': \n\t\t\t\t\t\t\t\t\t\tborderLeftIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (borderLeftIndex < borderLeftTmpIdx && borderLeftIndex != -1) { borderLeftTmpIdx = borderLeftIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(borderLeftTmpIdx,0,{\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'border-left',\n\t\t\t\t\t\t\t\tvalue: borderLeftValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noBorderLeftsShortened += 1;\n\n\t\t\t\t\t\t\tborderLeftIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-left-width');\n\t\t\t\t\t\t\tif (borderLeftIndex != -1) { rules[i].declarations.splice(borderLeftIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderLeftIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-left-style');\n\t\t\t\t\t\t\tif (borderLeftIndex != -1) { rules[i].declarations.splice(borderLeftIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderLeftIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-left-color');\n\t\t\t\t\t\t\tif (borderLeftIndex != -1) { rules[i].declarations.splice(borderLeftIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove existing borderLefts\n\t\t\t\t\t\t\tborderLeft = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tborderLeftProps = borderLeft.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousBorderLeft = borderLeftProps.filter(function(value){ return value === 'border-left'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousBorderLeft > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBorderLeft; ++j) {\n\t\t\t\t\t\t\t\t\tborderLeftTmpIdx = borderLeftProps.indexOf('border-left',(borderLeftProps.indexOf('border-left')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(borderLeftTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t}\n\t\t\t\t} //end of borderLeft\n\n\n\t\t\t\t//border\n\t\t\t\tif (OPTIONS.shorten_border || OPTIONS.shorten) {\n\n\n\n\n\t\t\t\t\tborder = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border-top'\n\t\t\t\t\t  \t\t|| obj.property == 'border-right'\n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom'\n\t\t\t\t\t  \t\t|| obj.property == 'border-left'\n\t\t\t\t\t  \t\t|| obj.property == 'border-top-width'\n\t\t\t\t\t  \t\t|| obj.property == 'border-right-width'\n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom-width'\n\t\t\t\t\t  \t\t|| obj.property == 'border-left-width'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tborderProps = border.map(function(o) { return o.property; });\n\t\t\t\t\t\n\t\t\t\t\tif (\n\t\t\t\t\t\tborderProps.indexOf('border-top') != -1 \n\t\t\t\t\t\t&& borderProps.indexOf('border-right') != -1 \n\t\t\t\t\t\t&& borderProps.indexOf('border-bottom') != -1 \n\t\t\t\t\t\t&& borderProps.indexOf('border-left') != -1 \n\t\t\t\t\t) {\n\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Border : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\n\t\t\t\t\t\tborderHasInherit = false;\n\t\t\t\t\t\tborderValues = border.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (borderHasInherit == false) {\n\n\t\t\t\t\t\t\tborderPropsOutput = ['border-width', 'border-style', 'border-color'];\n\t\t\t\t\t\t\tborderValuesOutput = [\n\t\t\t\t\t\t\t\t(borderValues[borderProps.indexOf('border-width')]?borderValues[borderProps.indexOf('border-width')]:''), \n\t\t\t\t\t\t\t\t(borderValues[borderProps.indexOf('border-style')]?borderValues[borderProps.indexOf('border-style')]:''), \n\t\t\t\t\t\t\t\t(borderValues[borderProps.indexOf('border-color')]?borderValues[borderProps.indexOf('border-color')]:''), \n\t\t\t\t\t\t\t];\n\n\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderValues[0] == borderValues[1]\n\t\t\t\t\t\t\t\t&& borderValues[0] == borderValues[2]\n\t\t\t\t\t\t\t\t&& borderValues[0] == borderValues[3]\n\t\t\t\t\t\t\t) {\n\n\n\n\t\t\t\t\t\t\t\tborderTmp = borderValues[0];\n\n\t\t\t\t\t\t\t\tif (borderProps.indexOf('border-width') == -1) {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[0] = getValueOfTriProp(borderTmp, 'width');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[0] = borderValues[borderProps.indexOf('border-width')];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (borderProps.indexOf('border-style') == -1) {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[1] = getValueOfTriProp(borderTmp, 'style');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[1] = borderValues[borderProps.indexOf('border-style')];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (borderProps.indexOf('border-color') == -1) {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[2] = getValueOfTriProp(borderTmp, 'color');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[2] = borderValues[borderProps.indexOf('border-color')];\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\tborderValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t\t&& borderValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t\t&& borderValuesOutput[2] == ''\n\t\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tborderProps = borderPropsOutput;\n\t\t\t\t\t\t\t\t\tborderValues = borderValuesOutput;\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\t\tborderHasImportant = false;\n\t\t\t\t\t\t\t\tfor (k = 0, klen = borderValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\t\tborderValues[k] = borderValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\t\tborderHasImportant = true;\n\t\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (borderHasImportant) {\n\t\t\t\t\t\t\t\t\t\tborderValues[borderValues.length-1] += ' !important';\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\t\tborderValues = borderValues.filter(Boolean);\n\n\t\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\t\tborderTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\t\tfor (j = 0; j < borderTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\t\tcase 'border-top': \n\t\t\t\t\t\t\t\t\t\tcase 'border-right': \n\t\t\t\t\t\t\t\t\t\tcase 'border-bottom': \n\t\t\t\t\t\t\t\t\t\tcase 'border-left': \n\t\t\t\t\t\t\t\t\t\t\tborderIndex = j;\n\t\t\t\t\t\t\t\t\t\t\tif (borderIndex < borderTmpIdx && borderIndex != -1) { borderTmpIdx = borderIndex; }\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\trules[i].declarations.splice(borderTmpIdx, 0, {\n\t\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\t\tproperty: 'border',\n\t\t\t\t\t\t\t\t\tvalue: borderValues.join(' ')\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdCount+=1;\n\n\t\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-top');\n\t\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-right');\n\t\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-bottom');\n\t\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-left');\n\t\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t} //end of combining\n\n\n\n\n\t\t\t\t\tborder = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border'\n\t\t\t\t\t  || obj.property == 'border-width' \n\t\t\t\t\t  \t\t|| obj.property == 'border-style'\n\t\t\t\t\t  \t\t|| obj.property == 'border-color'\n\t\t\t\t\t  \t\t\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\n\t\t\t\t\tborderProps = border.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\t(borderProps.indexOf('border-width') != -1 \n\t\t\t\t\t\t&& borderProps.indexOf('border-style') != -1 \n\t\t\t\t\t\t&& borderProps.indexOf('border-color') != -1 )\n\t\t\t\t\t\t|| borderProps.indexOf('border') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tborderValues = border.map(function(o) { return o.value; });\n\n\t\t\t\t\t\tborderHasInherit = false;\n\t\t\t\t\t\tborderValues = border.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tborderHasInherit == false\n\t\t\t\t\t\t\t&& (borderProps.indexOf('border-width') != -1 \n\t\t\t\t\t\t\t&& borderProps.indexOf('border-style') != -1 \n\t\t\t\t\t\t\t&& borderProps.indexOf('border-color') != -1 )\n\t\t\t\t\t\t\t&& borderValues[borderProps.indexOf('border-color')].split(' ').length == 1 //multi-color (border around squares, etc.) check - only do if single\n\t\t\t\t\t\t\t&& borderValues[borderProps.indexOf('border-width')].split(' ').length == 1 //multi-width values not allowed\n\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\tborderPropsOutput = ['border-width', 'border-style', 'border-color'];\n\t\t\t\t\t\t\tborderValuesOutput = [\n\t\t\t\t\t\t\t\t(borderValues[borderProps.indexOf('border-width')]?borderValues[borderProps.indexOf('border-width')]:''), \n\t\t\t\t\t\t\t\t(borderValues[borderProps.indexOf('border-style')]?borderValues[borderProps.indexOf('border-style')]:''), \n\t\t\t\t\t\t\t\t(borderValues[borderProps.indexOf('border-color')]?borderValues[borderProps.indexOf('border-color')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing border check\n\t\t\t\t\t\t\tborderTmpIdx = borderProps.indexOf('border')\n\t\t\t\t\t\t\tif (borderTmpIdx != -1) {\n\t\t\t\t\t\t\t\tborderTmp = borderValues[borderTmpIdx];\n\n\t\t\t\t\t\t\t\tif (borderTmp != 'none') {\n\t\t\t\t\t\t\t\t\t//fill missing attribute with existing border\n\t\t\t\t\t\t\t\t\tif (borderProps.indexOf('border-width') > borderTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderValuesOutput[0] = borderValues[borderProps.indexOf('border-width')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderValuesOutput[0] = (borderTmp2 = getValueOfTriProp(borderTmp, 'width')) ? borderTmp2 : borderValuesOutput[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderProps.indexOf('border-style') > borderTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderValuesOutput[1] = borderValues[borderProps.indexOf('border-style')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderValuesOutput[1] = (borderTmp2 = getValueOfTriProp(borderTmp, 'style')) ? borderTmp2 : borderValuesOutput[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (borderProps.indexOf('border-color') > borderTmpIdx) {\n\t\t\t\t\t\t\t\t\t\tborderValuesOutput[2] = borderValues[borderProps.indexOf('border-color')];\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tborderValuesOutput[2] = (borderTmp2 = getValueOfTriProp(borderTmp, 'color')) ? borderTmp2 : borderValuesOutput[2];\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderValuesOutput[0] = '0';\n\t\t\t\t\t\t\t\t\tborderValuesOutput[1] = '';\n\t\t\t\t\t\t\t\t\tborderValuesOutput[2] = '';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& borderValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& borderValuesOutput[2] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tborderProps = borderPropsOutput;\n\t\t\t\t\t\t\t\tborderValues = borderValuesOutput;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// console.log(borderProps)\n\t\t\t\t\t\t\t\t// console.log(borderValues)\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tborderHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = borderValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tborderValues[k] = borderValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tborderHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (borderHasImportant) {\n\t\t\t\t\t\t\t\t\tborderValues[borderValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tborderValues = borderValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tborderTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < borderTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'border-width': \n\t\t\t\t\t\t\t\t\tcase 'border-style': \n\t\t\t\t\t\t\t\t\tcase 'border-color': \n\t\t\t\t\t\t\t\t\tcase 'border': \n\t\t\t\t\t\t\t\t\t\tborderIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (borderIndex < borderTmpIdx && borderIndex != -1) { borderTmpIdx = borderIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(borderTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'border',\n\t\t\t\t\t\t\t\tvalue: borderValues.join(' ')\n\t\t\t\t\t\t\t})\n\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noBordersShortened += 1;\n\n\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-width');\n\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-style');\n\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-color');\n\t\t\t\t\t\t\tif (borderIndex != -1) { rules[i].declarations.splice(borderIndex, 1); dCount-=1;\t}\n\n\t\t\t\t\t\t\t//remove existing borders\n\t\t\t\t\t\t\tborder = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tborderProps = border.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousBorders = borderProps.filter(function(value){ return value === 'border'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousBorders > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBorders; ++j) {\n\t\t\t\t\t\t\t\t\tborderTmpIdx = borderProps.indexOf('border',(borderProps.indexOf('border')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(borderTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t}\n\t\t\t\t} //end of border\n\n\n\n\n\n\n\n\n\t\t\t\t//borderRadius\n\t\t\t\tif (OPTIONS.shorten_border_radius || OPTIONS.shorten) {\n\t\t\t\t\tborderRadius = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'border-top-left-radius' \n\t\t\t\t\t  \t\t|| obj.property == 'border-top-right-radius'\n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom-left-radius'\n\t\t\t\t\t  \t\t|| obj.property == 'border-bottom-right-radius'\n\t\t\t\t\t  \t\t|| obj.property == 'border-radius'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tborderRadiusProps = borderRadius.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\t(borderRadiusProps.indexOf('border-top-left-radius') != -1 \n\t\t\t\t\t\t&& borderRadiusProps.indexOf('border-top-right-radius') != -1\n\t\t\t\t\t\t&& borderRadiusProps.indexOf('border-bottom-left-radius') != -1\n\t\t\t\t\t\t&& borderRadiusProps.indexOf('border-bottom-right-radius') != -1)\n\t\t\t\t\t\t|| borderRadiusProps.indexOf('border-radius') != -1\n\t\t\t\t\t) {\n\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Border Radius : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\n\t\t\t\t\t\tborderRadiusHasInherit = false;\n\t\t\t\t\t\tborderRadiusValues = borderRadius.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tborderRadiusHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (borderRadiusHasInherit == false) {\n\n\t\t\t\t\t\t\tborderRadiusValues = borderRadius.map(function(o) { return o.value; });\n\t\t\t\t\t\t\tborderRadiusPropsOutput = ['border-top-left-radius', 'border-top-right-radius', 'border-bottom-left-radius', 'border-bottom-right-radius'];\n\t\t\t\t\t\t\tborderRadiusValuesOutput = [\n\t\t\t\t\t\t\t\t(borderRadiusValues[borderRadiusProps.indexOf('border-top-left-radius')]?borderRadiusValues[borderRadiusProps.indexOf('border-top-left-radius')]:''), \n\t\t\t\t\t\t\t\t(borderRadiusValues[borderRadiusProps.indexOf('border-top-right-radius')]?borderRadiusValues[borderRadiusProps.indexOf('border-top-right-radius')]:''), \n\t\t\t\t\t\t\t\t(borderRadiusValues[borderRadiusProps.indexOf('border-bottom-left-radius')]?borderRadiusValues[borderRadiusProps.indexOf('border-bottom-left-radius')]:''), \n\t\t\t\t\t\t\t\t(borderRadiusValues[borderRadiusProps.indexOf('border-bottom-right-radius')]?borderRadiusValues[borderRadiusProps.indexOf('border-bottom-right-radius')]:''), \n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//existing borderRadius check\n\t\t\t\t\t\t\tborderRadiusTmpIdx = borderRadiusProps.indexOf('border-radius')\n\t\t\t\t\t\t\tif (borderRadiusTmpIdx != -1) {\n\t\t\t\t\t\t\t\tborderRadiusTmp = borderRadiusValues[borderRadiusTmpIdx];\n\n\t\t\t\t\t\t\t\t//fill missing attribute with existing borderRadius\n\t\t\t\t\t\t\t\tif (borderRadiusProps.indexOf('border-top-left-radius') > borderRadiusTmpIdx) {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[0] = borderRadiusValues[borderRadiusProps.indexOf('border-top-left-radius')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[0] = (borderRadiusTmp2 = getValueOfSquareProp(borderRadiusTmp, 'top')) ? borderRadiusTmp2 : borderRadiusValuesOutput[0];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (borderRadiusProps.indexOf('border-top-right-radius') > borderRadiusTmpIdx) {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[1] = borderRadiusValues[borderRadiusProps.indexOf('border-top-right-radius')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[1] = (borderRadiusTmp2 = getValueOfSquareProp(borderRadiusTmp, 'right')) ? borderRadiusTmp2 : borderRadiusValuesOutput[1];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (borderRadiusProps.indexOf('border-bottom-left-radius') > borderRadiusTmpIdx) {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[2] = borderRadiusValues[borderRadiusProps.indexOf('border-bottom-left-radius')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[2] = (borderRadiusTmp2 = getValueOfSquareProp(borderRadiusTmp, 'bottom')) ? borderRadiusTmp2 : borderRadiusValuesOutput[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (borderRadiusProps.indexOf('border-bottom-right-radius') > borderRadiusTmpIdx) {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[3] = borderRadiusValues[borderRadiusProps.indexOf('border-bottom-right-radius')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tborderRadiusValuesOutput[3] = (borderRadiusTmp2 = getValueOfSquareProp(borderRadiusTmp, 'left')) ? borderRadiusTmp2 : borderRadiusValuesOutput[3];\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tborderRadiusProps = borderRadiusPropsOutput;\n\t\t\t\t\t\t\tborderRadiusValues = borderRadiusValuesOutput;\n\n\n\t\t\t\t\t\t\t//check for requirements\n\t\t\t\t\t\t\tborderRadiusLeftIdx = borderRadiusProps.indexOf('border-bottom-right-radius');\n\t\t\t\t\t\t\tborderRadiusRightIdx = borderRadiusProps.indexOf('border-top-right-radius');\n\t\t\t\t\t\t\tborderRadiusTopIdx = borderRadiusProps.indexOf('border-top-left-radius');\n\t\t\t\t\t\t\tborderRadiusBottomIdx = borderRadiusProps.indexOf('border-bottom-left-radius');\n\n\t\t\t\t\t\t\t//apply rules\n\t\t\t\t\t\t\t//1 value\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tborderRadiusTopIdx != -1 && borderRadiusBottomIdx != -1\n\t\t\t\t\t\t\t\t&& borderRadiusLeftIdx != -1 && borderRadiusRightIdx != -1\n\t\t\t\t\t\t\t\t&& borderRadiusValues[borderRadiusTopIdx] == borderRadiusValues[borderRadiusBottomIdx]\n\t\t\t\t\t\t\t\t&& borderRadiusValues[borderRadiusTopIdx] == borderRadiusValues[borderRadiusRightIdx]\n\t\t\t\t\t\t\t\t&& borderRadiusValues[borderRadiusTopIdx] == borderRadiusValues[borderRadiusLeftIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tborderRadiusProps = ['border-radius'];\n\t\t\t\t\t\t\t\tborderRadiusValues = [borderRadiusValues[borderRadiusTopIdx]];\n\n\t\t\t\t\t\t\t\tborderRadiusSingleMerge = true;\n\n\t\t\t\t\t\t\t} else if ( //2\n\t\t\t\t\t\t\t\tborderRadiusTopIdx != -1 && borderRadiusBottomIdx != -1\n\t\t\t\t\t\t\t\t&& borderRadiusLeftIdx != -1 && borderRadiusRightIdx != -1\n\t\t\t\t\t\t\t\t&& borderRadiusValues[borderRadiusTopIdx] == borderRadiusValues[borderRadiusBottomIdx]\n\t\t\t\t\t\t\t\t&& borderRadiusValues[borderRadiusLeftIdx] == borderRadiusValues[borderRadiusRightIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tborderRadiusTopBottomVal = borderRadiusValues[borderRadiusTopIdx];\n\t\t\t\t\t\t\t\t//remove Top + Bottom values\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(borderRadiusTopIdx, 1);\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(borderRadiusBottomIdx-1, 1);\n\t\t\t\t\t\t\t\t//add TopBottom value\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(0,0,borderRadiusTopBottomVal);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//remove Top + Bottom properties\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(borderRadiusTopIdx, 1);\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(borderRadiusBottomIdx-1, 1);\n\t\t\t\t\t\t\t\t//add TopBottom property - for alignment sake\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(0,0,'border-radius-top-bottom');\n\n\n\t\t\t\t\t\t\t\tborderRadiusRightLeftVal = borderRadiusValues[borderRadiusRightIdx];\n\t\t\t\t\t\t\t\t//remove Right + Left values\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(borderRadiusRightIdx, 1);\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(borderRadiusLeftIdx-2, 1);\n\t\t\t\t\t\t\t\t//add RightLeft value\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(1,0,borderRadiusRightLeftVal);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//remove Right + Left properties\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(borderRadiusRightIdx, 1);\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(borderRadiusLeftIdx-2, 1);\n\t\t\t\t\t\t\t\t//add RightLeft property - for alignment sake\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(1,0,'border-radius-right-left');\n\n\n\t\t\t\t\t\t\t} else if (\t//3 values\n\t\t\t\t\t\t\t\tborderRadiusLeftIdx != -1 && borderRadiusRightIdx != -1\n\t\t\t\t\t\t\t\t&& borderRadiusTopIdx != -1 && borderRadiusBottomIdx != -1\n\t\t\t\t\t\t\t\t&& borderRadiusValues[borderRadiusLeftIdx] == borderRadiusValues[borderRadiusRightIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tborderRadiusRightLeftVal = borderRadiusValues[borderRadiusRightIdx];\n\n\t\t\t\t\t\t\t\t//remove right + left values\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(borderRadiusRightIdx, 1);\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(borderRadiusLeftIdx-1, 1);\n\t\t\t\t\t\t\t\t//add rightleft value\n\t\t\t\t\t\t\t\tborderRadiusValues.splice(1,0,borderRadiusRightLeftVal);\n\n\t\t\t\t\t\t\t\t//remove right + left properties\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(borderRadiusRightIdx, 1);\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(borderRadiusLeftIdx-1, 1);\n\t\t\t\t\t\t\t\t//add rightleft property - for alignment sake\n\t\t\t\t\t\t\t\tborderRadiusProps.splice(1,0,'border-radius-left-right');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tborderRadiusHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = borderRadiusValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tborderRadiusValues[k] = borderRadiusValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tborderRadiusHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (borderRadiusHasImportant) {\n\t\t\t\t\t\t\t\t\tborderRadiusValues[borderRadiusValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tborderRadiusValues = borderRadiusValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tborderRadiusTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < borderRadiusTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'border-top-left-radius': \n\t\t\t\t\t\t\t\t\tcase 'border-top-right-radius': \n\t\t\t\t\t\t\t\t\tcase 'border-bottom-left-radius': \n\t\t\t\t\t\t\t\t\tcase 'border-bottom-right-radius': \n\t\t\t\t\t\t\t\t\tcase 'border-radius': \n\t\t\t\t\t\t\t\t\t\tborderRadiusIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (borderRadiusIndex < borderRadiusTmpIdx && borderRadiusIndex != -1) { borderRadiusTmpIdx = borderRadiusIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(borderRadiusTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'border-radius',\n\t\t\t\t\t\t\t\tvalue: borderRadiusValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noPaddingsShortened += 1;\n\n\t\t\t\t    \t//remove originals\n\t\t\t\t\t\t\tborderRadiusIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-top-left-radius');\n\t\t\t\t\t\t\tif (borderRadiusIndex != -1) { rules[i].declarations.splice(borderRadiusIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderRadiusIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-top-right-radius');\n\t\t\t\t\t\t\tif (borderRadiusIndex != -1) { rules[i].declarations.splice(borderRadiusIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderRadiusIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-bottom-left-radius');\n\t\t\t\t\t\t\tif (borderRadiusIndex != -1) { rules[i].declarations.splice(borderRadiusIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tborderRadiusIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('border-bottom-right-radius');\n\t\t\t\t\t\t\tif (borderRadiusIndex != -1) { rules[i].declarations.splice(borderRadiusIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove existing borderRadiuss\n\t\t\t\t\t\t\tborderRadius = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tborderRadiusProps = borderRadius.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousBorderRadius = borderRadiusProps.filter(function(value){ return value === 'border-radius'; }).length - 1;\n\t\t\t\t\t\t\tif (noPreviousBorderRadius > 0) {\n\t\t\t\t\t\t\t\tfor (j = 0; j < noPreviousBorderRadius; ++j) {\n\t\t\t\t\t\t\t\t\tborderRadiusTmpIdx = borderRadiusProps.indexOf('border-radius',(borderRadiusProps.indexOf('border-radius')+1));\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(borderRadiusTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t} \n\t\t\t\t} //end of borderRadius\n\n\n\n\n\n\n\n\n\t\t\t\t\n\n\n\t\t\t\t//margin\n\t\t\t\tif (OPTIONS.shorten_margin || OPTIONS.shorten) {\n\t\t\t\t\tmargin = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'margin-top' \n\t\t\t\t\t  \t\t|| obj.property == 'margin-right'\n\t\t\t\t\t  \t\t|| obj.property == 'margin-bottom'\n\t\t\t\t\t  \t\t|| obj.property == 'margin-left'\n\t\t\t\t\t  \t\t|| obj.property == 'margin'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\n\t\t\t\t\t//special - convert rem\n\t\t\t\t\t// if (OPTIONS.special_convert_rem && OPTIONS.special_convert_rem_margin) {\n\n\t\t\t\t\t\t// //for singular declaration\n\t\t\t\t\t\t// for (j = 0; j < dCount; ++j) {\n\n\t\t\t\t\t\t// \tif (rules[i].declarations !== undefined && rules[i].declarations[j].property == 'margin') {\n\n\t\t\t\t\t\t// \t\tmarginTmpVal = rules[i].declarations[j].value.toLowerCase();\n\n\t\t\t\t\t\t// \t\tif (marginTmpVal.indexOf('px') != -1) {\n\t\t\t\t\t\t// \t\t\tmarginTmpVal = marginTmpVal.substr(0, marginTmpVal.length-2)/OPTIONS.special_convert_rem_desired_html_px + 'rem';\n\t\t\t\t\t\t// \t\t}\n\n\t\t\t\t\t\t// \t\trules[i].declarations[j] = {\n\t\t\t\t\t\t// \t\t\t'type': rules[i].declarations[j].type,\n\t\t\t\t\t\t// \t\t\t'property': rules[i].declarations[j].property,\n\t\t\t\t\t\t// \t\t\t'value': marginTmpVal,\n\t\t\t\t\t\t// \t\t\t'position': rules[i].declarations[j].position\n\t\t\t\t\t\t// \t\t};\n\t\t\t\t\t\t// \t}\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\t// //for combined declaration\n\t\t\t\t\t\t// if ((fontIndex = font.map(function(o) { return o.property; }).indexOf('font-size')) != -1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// \tmarginTmpVal = font[fontIndex].value.toLowerCase();\n\n\t\t\t\t\t\t// \tif (marginTmpVal.indexOf('px') != -1) {\n\t\t\t\t\t\t// \t\tmarginTmpVal = marginTmpVal.substr(0, marginTmpVal.length-2)/OPTIONS.special_convert_rem_desired_html_px + 'rem';\n\t\t\t\t\t\t// \t}\n\n\t\t\t\t\t\t// \tfont[fontIndex] = {\n\t\t\t\t\t\t// \t\t'type': font[fontIndex].type,\n\t\t\t\t\t\t// \t\t'property': font[fontIndex].property,\n\t\t\t\t\t\t// \t\t'value': marginTmpVal,\n\t\t\t\t\t\t// \t\t'position': font[fontIndex].position\n\t\t\t\t\t\t// \t};\n\t\t\t\t\t\t// }\n\t\t\t\t\t// }\n\n\n\t\t\t\t\tmarginProps = margin.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\t(marginProps.indexOf('margin-top') != -1 \n\t\t\t\t\t\t&& marginProps.indexOf('margin-right') != -1\n\t\t\t\t\t\t&& marginProps.indexOf('margin-bottom') != -1\n\t\t\t\t\t\t&& marginProps.indexOf('margin-left') != -1)\n\t\t\t\t\t\t|| marginProps.indexOf('margin') != -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Margin : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\n\t\t\t\t\t\tmarginHasInherit = false;\n\t\t\t\t\t\tmarginValues = margin.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tmarginHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (marginHasInherit == false) {\n\n\t\t\t\t\t\t\tmarginPropsOutput = ['margin-top', 'margin-right', 'margin-bottom', 'margin-left'];\n\t\t\t\t\t\t\tmarginValuesOutput = [\n\t\t\t\t\t\t\t\t(marginValues[marginProps.indexOf('margin-top')]?marginValues[marginProps.indexOf('margin-top')]:''), \n\t\t\t\t\t\t\t\t(marginValues[marginProps.indexOf('margin-right')]?marginValues[marginProps.indexOf('margin-right')]:''), \n\t\t\t\t\t\t\t\t(marginValues[marginProps.indexOf('margin-bottom')]?marginValues[marginProps.indexOf('margin-bottom')]:''), \n\t\t\t\t\t\t\t\t(marginValues[marginProps.indexOf('margin-left')]?marginValues[marginProps.indexOf('margin-left')]:''), \n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t//existing margin check\n\t\t\t\t\t\t\tmarginTmpIdx = marginProps.indexOf('margin')\n\t\t\t\t\t\t\tif (marginTmpIdx != -1) {\n\t\t\t\t\t\t\t\tmarginTmp = marginValues[marginTmpIdx];\n\n\t\t\t\t\t\t\t\t//fill missing attribute with existing margin\n\t\t\t\t\t\t\t\tif (marginProps.indexOf('margin-top') > marginTmpIdx) {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[0] = marginValues[marginProps.indexOf('margin-top')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[0] = getValueOfSquareProp(marginTmp, 'top');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (marginProps.indexOf('margin-right') > marginTmpIdx) {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[1] = marginValues[marginProps.indexOf('margin-right')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[1] = getValueOfSquareProp(marginTmp, 'right');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (marginProps.indexOf('margin-bottom') > marginTmpIdx) {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[2] = marginValues[marginProps.indexOf('margin-bottom')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[2] = getValueOfSquareProp(marginTmp, 'bottom');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (marginProps.indexOf('margin-left') > marginTmpIdx) {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[3] = marginValues[marginProps.indexOf('margin-left')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmarginValuesOutput[3] = getValueOfSquareProp(marginTmp, 'left');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tmarginValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& marginValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& marginValuesOutput[2] == ''\n\t\t\t\t\t\t\t\t&& marginValuesOutput[3] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tmarginProps = marginPropsOutput;\n\t\t\t\t\t\t\t\tmarginValues = marginValuesOutput;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// console.log(marginProps)\n\t\t\t\t\t\t\t// console.log(marginValues)\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tmarginHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = marginValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tmarginValues[k] = marginValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tmarginHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (marginHasImportant) {\n\t\t\t\t\t\t\t\t\tmarginValues[marginValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for requirements\n\t\t\t\t\t\t\tmarginLeftIdx = marginProps.indexOf('margin-left');\n\t\t\t\t\t\t\tmarginRightIdx = marginProps.indexOf('margin-right');\n\t\t\t\t\t\t\tmarginTopIdx = marginProps.indexOf('margin-top');\n\t\t\t\t\t\t\tmarginBottomIdx = marginProps.indexOf('margin-bottom');\n\n\t\t\t\t\t\t\t//apply rules\n\t\t\t\t\t\t\t//1 value\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tmarginTopIdx != -1 && marginBottomIdx != -1\n\t\t\t\t\t\t\t\t&& marginLeftIdx != -1 && marginRightIdx != -1\n\t\t\t\t\t\t\t\t&& marginValues[marginTopIdx] == marginValues[marginBottomIdx]\n\t\t\t\t\t\t\t\t&& marginValues[marginTopIdx] == marginValues[marginRightIdx]\n\t\t\t\t\t\t\t\t&& marginValues[marginTopIdx] == marginValues[marginLeftIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tmarginProps = ['margin'];\n\t\t\t\t\t\t\t\tmarginValues = [marginValues[marginTopIdx]];\n\n\t\t\t\t\t\t\t} else if ( //2\n\t\t\t\t\t\t\t\tmarginTopIdx != -1 && marginBottomIdx != -1\n\t\t\t\t\t\t\t\t&& marginLeftIdx != -1 && marginRightIdx != -1\n\t\t\t\t\t\t\t\t&& marginValues[marginTopIdx] == marginValues[marginBottomIdx]\n\t\t\t\t\t\t\t\t&& marginValues[marginLeftIdx] == marginValues[marginRightIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tmarginTopBottomVal = marginValues[marginTopIdx];\n\t\t\t\t\t\t\t\t//remove Top + Bottom values\n\t\t\t\t\t\t\t\tmarginValues.splice(marginTopIdx, 1);\n\t\t\t\t\t\t\t\tmarginValues.splice(marginBottomIdx-1, 1);\n\t\t\t\t\t\t\t\t//add TopBottom value\n\t\t\t\t\t\t\t\tmarginValues.splice(0,0,marginTopBottomVal);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//remove Top + Bottom properties\n\t\t\t\t\t\t\t\tmarginProps.splice(marginTopIdx, 1);\n\t\t\t\t\t\t\t\tmarginProps.splice(marginBottomIdx-1, 1);\n\t\t\t\t\t\t\t\t//add TopBottom property - for alignment sake\n\t\t\t\t\t\t\t\tmarginProps.splice(0,0,'marginTopBottom');\n\n\n\t\t\t\t\t\t\t\tmarginRightLeftVal = marginValues[marginRightIdx];\n\t\t\t\t\t\t\t\t//remove Right + Left values\n\t\t\t\t\t\t\t\tmarginValues.splice(marginRightIdx, 1);\n\t\t\t\t\t\t\t\tmarginValues.splice(marginLeftIdx-2, 1);\n\t\t\t\t\t\t\t\t//add RightLeft value\n\t\t\t\t\t\t\t\tmarginValues.splice(1,0,marginRightLeftVal);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//remove Right + Left properties\n\t\t\t\t\t\t\t\tmarginProps.splice(marginRightIdx, 1);\n\t\t\t\t\t\t\t\tmarginProps.splice(marginLeftIdx-2, 1);\n\t\t\t\t\t\t\t\t//add RightLeft property - for alignment sake\n\t\t\t\t\t\t\t\tmarginProps.splice(1,0,'marginRightLeft');\n\n\n\t\t\t\t\t\t\t} else if (\t//3 values\n\t\t\t\t\t\t\t\tmarginLeftIdx != -1 && marginRightIdx != -1\n\t\t\t\t\t\t\t\t&& marginTopIdx != -1 && marginBottomIdx != -1\n\t\t\t\t\t\t\t\t&& marginValues[marginLeftIdx] == marginValues[marginRightIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tmarginRightLeftVal = marginValues[marginRightIdx];\n\n\t\t\t\t\t\t\t\t//remove right + left values\n\t\t\t\t\t\t\t\tmarginValues.splice(marginRightIdx, 1);\n\t\t\t\t\t\t\t\tmarginValues.splice(marginLeftIdx-1, 1);\n\t\t\t\t\t\t\t\t//add rightleft value\n\t\t\t\t\t\t\t\tmarginValues.splice(1,0,marginRightLeftVal);\n\n\t\t\t\t\t\t\t\t//remove right + left properties\n\t\t\t\t\t\t\t\tmarginProps.splice(marginRightIdx, 1);\n\t\t\t\t\t\t\t\tmarginProps.splice(marginLeftIdx-1, 1);\n\t\t\t\t\t\t\t\t//add rightleft property - for alignment sake\n\t\t\t\t\t\t\t\tmarginProps.splice(1,0,'marginLeftRight');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// console.log(marginProps)\n\t\t\t\t\t\t\t// console.log(marginValues)\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tmarginValues = marginValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tmarginTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < marginTmpIdx; ++j) {\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'margin-top': \n\t\t\t\t\t\t\t\t\tcase 'margin-right': \n\t\t\t\t\t\t\t\t\tcase 'margin-bottom': \n\t\t\t\t\t\t\t\t\tcase 'margin-left': \n\t\t\t\t\t\t\t\t\tcase 'margin': \n\t\t\t\t\t\t\t\t\t\tmarginIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (marginIndex < marginTmpIdx && marginIndex != -1) { marginTmpIdx = marginIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(marginTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'margin',\n\t\t\t\t\t\t\t\tvalue: marginValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noMarginsShortened += 1;\n\n\t\t\t\t    \t//remove originals\n\t\t\t\t\t\t\tmarginIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('margin-top');\n\t\t\t\t\t\t\tif (marginIndex != -1) { rules[i].declarations.splice(marginIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tmarginIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('margin-right');\n\t\t\t\t\t\t\tif (marginIndex != -1) { rules[i].declarations.splice(marginIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tmarginIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('margin-bottom');\n\t\t\t\t\t\t\tif (marginIndex != -1) { rules[i].declarations.splice(marginIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tmarginIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('margin-left');\n\t\t\t\t\t\t\tif (marginIndex != -1) { rules[i].declarations.splice(marginIndex, 1); dCount-=1;\t}\n\n\t\t\t\t\t\t\t//remove existing margins\n\t\t\t\t\t\t\tmargin = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tmarginProps = margin.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousMargins = marginProps.filter(function(value){ return value === 'margin'; }).length;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (noPreviousMargins > 1) {\n\t\t\t\t\t\t\t\tfor (j = 1; j < noPreviousMargins; ++j) {\n\t\t\t\t\t\t\t\t\tmarginTmpIdx = marginProps.indexOf('margin',(marginProps.indexOf('margin')+1));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(marginTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t} \n\t\t\t\t} //end of margin\n\t\t\t\t\n\n\n\t\t\t\t//padding\n\t\t\t\tif (OPTIONS.shorten_padding || OPTIONS.shorten) {\n\t\t\t\t\tpadding = rules[i].declarations.filter(function( obj ) {\n\t\t\t\t\t  return obj.property == 'padding-top' \n\t\t\t\t\t  \t\t|| obj.property == 'padding-right'\n\t\t\t\t\t  \t\t|| obj.property == 'padding-bottom'\n\t\t\t\t\t  \t\t|| obj.property == 'padding-left'\n\t\t\t\t\t  \t\t|| obj.property == 'padding'\n\t\t\t\t\t  ;\n\t\t\t\t\t});\n\t\t\t\t\tpaddingProps = padding.map(function(o) { return o.property; });\n\t\t\t\t\tif (\n\t\t\t\t\t\t(paddingProps.indexOf('padding-top') != -1 \n\t\t\t\t\t\t&& paddingProps.indexOf('padding-right') != -1\n\t\t\t\t\t\t&& paddingProps.indexOf('padding-bottom') != -1\n\t\t\t\t\t\t&& paddingProps.indexOf('padding-left') != -1)\n\t\t\t\t\t\t|| paddingProps.indexOf('padding') != -1\n\t\t\t\t\t) {\n\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Padding : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\n\t\t\t\t\t\tpaddingHasInherit = false;\n\t\t\t\t\t\tpaddingValues = padding.map(function(o) { \n\t\t\t\t\t\t\tif (o.value.toLowerCase().indexOf('inherit') != -1) {\n\t\t\t\t\t\t\t\tpaddingHasInherit = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn o.value; \n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (paddingHasInherit == false) {\n\n\t\t\t\t\t\t\tpaddingPropsOutput = ['padding-top', 'padding-right', 'padding-bottom', 'padding-left'];\n\t\t\t\t\t\t\tpaddingValuesOutput = [\n\t\t\t\t\t\t\t\t(paddingValues[paddingProps.indexOf('padding-top')]?paddingValues[paddingProps.indexOf('padding-top')]:''), \n\t\t\t\t\t\t\t\t(paddingValues[paddingProps.indexOf('padding-right')]?paddingValues[paddingProps.indexOf('padding-right')]:''), \n\t\t\t\t\t\t\t\t(paddingValues[paddingProps.indexOf('padding-bottom')]?paddingValues[paddingProps.indexOf('padding-bottom')]:''), \n\t\t\t\t\t\t\t\t(paddingValues[paddingProps.indexOf('padding-left')]?paddingValues[paddingProps.indexOf('padding-left')]:''), \n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//existing padding check\n\t\t\t\t\t\t\tpaddingTmpIdx = paddingProps.indexOf('padding')\n\t\t\t\t\t\t\tif (paddingTmpIdx != -1) {\n\t\t\t\t\t\t\t\tpaddingTmp = paddingValues[paddingTmpIdx];\n\n\t\t\t\t\t\t\t\t//fill missing attribute with existing padding\n\t\t\t\t\t\t\t\tif (paddingProps.indexOf('padding-top') > paddingTmpIdx) {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[0] = paddingValues[paddingProps.indexOf('padding-top')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[0] = (paddingTmp2 = getValueOfSquareProp(paddingTmp, 'top')) ? paddingTmp2 : paddingValuesOutput[0];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (paddingProps.indexOf('padding-right') > paddingTmpIdx) {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[1] = paddingValues[paddingProps.indexOf('padding-right')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[1] = (paddingTmp2 = getValueOfSquareProp(paddingTmp, 'right')) ? paddingTmp2 : paddingValuesOutput[1];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (paddingProps.indexOf('padding-bottom') > paddingTmpIdx) {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[2] = paddingValues[paddingProps.indexOf('padding-bottom')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[2] = (paddingTmp2 = getValueOfSquareProp(paddingTmp, 'bottom')) ? paddingTmp2 : paddingValuesOutput[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (paddingProps.indexOf('padding-left') > paddingTmpIdx) {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[3] = paddingValues[paddingProps.indexOf('padding-left')];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tpaddingValuesOutput[3] = (paddingTmp2 = getValueOfSquareProp(paddingTmp, 'left')) ? paddingTmp2 : paddingValuesOutput[3];\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t//fill property above padding\n\t\t\t\t\t\t\t\t// for (j = 0; j < paddingTmpIdx; ++j) {\n\n\t\t\t\t\t\t\t\t// \tswitch(paddingProps[j]) {\n\t\t\t\t\t\t\t\t// \t\tcase 'padding-top':\n\t\t\t\t\t\t\t\t// \t\t\tpaddingValuesOutput[0] = getValueOfSquareProp(paddingTmp, 'top');\n\t\t\t\t\t\t\t\t// \t\t\tbreak;\n\t\t\t\t\t\t\t\t// \t\tcase 'padding-right':\n\t\t\t\t\t\t\t\t// \t\t\tpaddingValuesOutput[1] = getValueOfSquareProp(paddingTmp, 'right');\n\t\t\t\t\t\t\t\t// \t\t\tbreak;\n\t\t\t\t\t\t\t\t// \t\tcase 'padding-bottom':\n\t\t\t\t\t\t\t\t// \t\t\tpaddingValuesOutput[2] = getValueOfSquareProp(paddingTmp, 'bottom');\n\t\t\t\t\t\t\t\t// \t\t\tbreak;\n\t\t\t\t\t\t\t\t// \t\tcase 'padding-left':\n\t\t\t\t\t\t\t\t// \t\t\tpaddingValuesOutput[3] = getValueOfSquareProp(paddingTmp, 'left');\n\t\t\t\t\t\t\t\t// \t\t\tbreak;\n\t\t\t\t\t\t\t\t// \t}\n\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tpaddingValuesOutput[0] == ''\n\t\t\t\t\t\t\t\t&& paddingValuesOutput[1] == ''\n\t\t\t\t\t\t\t\t&& paddingValuesOutput[2] == ''\n\t\t\t\t\t\t\t\t&& paddingValuesOutput[3] == ''\n\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tpaddingProps = paddingPropsOutput;\n\t\t\t\t\t\t\t\tpaddingValues = paddingValuesOutput;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for !important\n\t\t\t\t\t\t\tpaddingHasImportant = false;\n\t\t\t\t\t\t\tfor (k = 0, klen = paddingValues.length; k < klen; ++k) {\n\n\t\t\t\t\t\t\t\tpaddingValues[k] = paddingValues[k].toString().replace(/(!important)/g, function(capture){\n\t\t\t\t\t\t\t\t\tpaddingHasImportant = true;\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (paddingHasImportant) {\n\t\t\t\t\t\t\t\t\tpaddingValues[paddingValues.length-1] += ' !important';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//check for requirements\n\t\t\t\t\t\t\tpaddingLeftIdx = paddingProps.indexOf('padding-left');\n\t\t\t\t\t\t\tpaddingRightIdx = paddingProps.indexOf('padding-right');\n\t\t\t\t\t\t\tpaddingTopIdx = paddingProps.indexOf('padding-top');\n\t\t\t\t\t\t\tpaddingBottomIdx = paddingProps.indexOf('padding-bottom');\n\n\t\t\t\t\t\t\t//apply rules\n\t\t\t\t\t\t\t//1 value\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tpaddingTopIdx != -1 && paddingBottomIdx != -1\n\t\t\t\t\t\t\t\t&& paddingLeftIdx != -1 && paddingRightIdx != -1\n\t\t\t\t\t\t\t\t&& paddingValues[paddingTopIdx] == paddingValues[paddingBottomIdx]\n\t\t\t\t\t\t\t\t&& paddingValues[paddingTopIdx] == paddingValues[paddingRightIdx]\n\t\t\t\t\t\t\t\t&& paddingValues[paddingTopIdx] == paddingValues[paddingLeftIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tpaddingProps = ['padding'];\n\t\t\t\t\t\t\t\tpaddingValues = [paddingValues[paddingTopIdx]];\n\n\t\t\t\t\t\t\t\tpaddingSingleMerge = true;\n\n\t\t\t\t\t\t\t} else if ( //2\n\t\t\t\t\t\t\t\tpaddingTopIdx != -1 && paddingBottomIdx != -1\n\t\t\t\t\t\t\t\t&& paddingLeftIdx != -1 && paddingRightIdx != -1\n\t\t\t\t\t\t\t\t&& paddingValues[paddingTopIdx] == paddingValues[paddingBottomIdx]\n\t\t\t\t\t\t\t\t&& paddingValues[paddingLeftIdx] == paddingValues[paddingRightIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tpaddingTopBottomVal = paddingValues[paddingTopIdx];\n\t\t\t\t\t\t\t\t//remove Top + Bottom values\n\t\t\t\t\t\t\t\tpaddingValues.splice(paddingTopIdx, 1);\n\t\t\t\t\t\t\t\tpaddingValues.splice(paddingBottomIdx-1, 1);\n\t\t\t\t\t\t\t\t//add TopBottom value\n\t\t\t\t\t\t\t\tpaddingValues.splice(0,0,paddingTopBottomVal);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//remove Top + Bottom properties\n\t\t\t\t\t\t\t\tpaddingProps.splice(paddingTopIdx, 1);\n\t\t\t\t\t\t\t\tpaddingProps.splice(paddingBottomIdx-1, 1);\n\t\t\t\t\t\t\t\t//add TopBottom property - for alignment sake\n\t\t\t\t\t\t\t\tpaddingProps.splice(0,0,'paddingTopBottom');\n\n\n\t\t\t\t\t\t\t\tpaddingRightLeftVal = paddingValues[paddingRightIdx];\n\t\t\t\t\t\t\t\t//remove Right + Left values\n\t\t\t\t\t\t\t\tpaddingValues.splice(paddingRightIdx, 1);\n\t\t\t\t\t\t\t\tpaddingValues.splice(paddingLeftIdx-2, 1);\n\t\t\t\t\t\t\t\t//add RightLeft value\n\t\t\t\t\t\t\t\tpaddingValues.splice(1,0,paddingRightLeftVal);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//remove Right + Left properties\n\t\t\t\t\t\t\t\tpaddingProps.splice(paddingRightIdx, 1);\n\t\t\t\t\t\t\t\tpaddingProps.splice(paddingLeftIdx-2, 1);\n\t\t\t\t\t\t\t\t//add RightLeft property - for alignment sake\n\t\t\t\t\t\t\t\tpaddingProps.splice(1,0,'paddingRightLeft');\n\n\n\t\t\t\t\t\t\t} else if (\t//3 values\n\t\t\t\t\t\t\t\tpaddingLeftIdx != -1 && paddingRightIdx != -1\n\t\t\t\t\t\t\t\t&& paddingTopIdx != -1 && paddingBottomIdx != -1\n\t\t\t\t\t\t\t\t&& paddingValues[paddingLeftIdx] == paddingValues[paddingRightIdx]\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tpaddingRightLeftVal = paddingValues[paddingRightIdx];\n\n\t\t\t\t\t\t\t\t//remove right + left values\n\t\t\t\t\t\t\t\tpaddingValues.splice(paddingRightIdx, 1);\n\t\t\t\t\t\t\t\tpaddingValues.splice(paddingLeftIdx-1, 1);\n\t\t\t\t\t\t\t\t//add rightleft value\n\t\t\t\t\t\t\t\tpaddingValues.splice(1,0,paddingRightLeftVal);\n\n\t\t\t\t\t\t\t\t//remove right + left properties\n\t\t\t\t\t\t\t\tpaddingProps.splice(paddingRightIdx, 1);\n\t\t\t\t\t\t\t\tpaddingProps.splice(paddingLeftIdx-1, 1);\n\t\t\t\t\t\t\t\t//add rightleft property - for alignment sake\n\t\t\t\t\t\t\t\tpaddingProps.splice(1,0,'paddingLeftRight');\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//remove any spaces from empty values\n\t\t\t\t\t\t\tpaddingValues = paddingValues.filter(Boolean);\n\n\t\t\t\t\t\t\t//add declaration\n\t\t\t\t\t\t\tpaddingTmpIdx = rules[i].declarations.length;\n\t\t\t\t\t\t\tfor (j = 0; j < paddingTmpIdx; ++j) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch(rules[i].declarations[j].property) {\n\t\t\t\t\t\t\t\t\tcase 'padding-top': \n\t\t\t\t\t\t\t\t\tcase 'padding-right': \n\t\t\t\t\t\t\t\t\tcase 'padding-bottom': \n\t\t\t\t\t\t\t\t\tcase 'padding-left': \n\t\t\t\t\t\t\t\t\tcase 'padding': \n\t\t\t\t\t\t\t\t\t\tpaddingIndex = j;\n\t\t\t\t\t\t\t\t\t\tif (paddingIndex < paddingTmpIdx && paddingIndex != -1) { paddingTmpIdx = paddingIndex; }\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trules[i].declarations.splice(paddingTmpIdx, 0, {\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'padding',\n\t\t\t\t\t\t\t\tvalue: paddingValues.join(' ')\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tdCount+=1;\n\t\t\t\t    \tsummary.stats.summary.noPaddingsShortened += 1;\n\n\t\t\t\t    \t//remove originals\n\t\t\t\t\t\t\tpaddingIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('padding-top');\n\t\t\t\t\t\t\tif (paddingIndex != -1) { rules[i].declarations.splice(paddingIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tpaddingIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('padding-right');\n\t\t\t\t\t\t\tif (paddingIndex != -1) { rules[i].declarations.splice(paddingIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tpaddingIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('padding-bottom');\n\t\t\t\t\t\t\tif (paddingIndex != -1) { rules[i].declarations.splice(paddingIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\tpaddingIndex = rules[i].declarations.map(function(e) { return e.property; }).indexOf('padding-left');\n\t\t\t\t\t\t\tif (paddingIndex != -1) { rules[i].declarations.splice(paddingIndex, 1); dCount-=1;\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove existing paddings\n\t\t\t\t\t\t\tpadding = rules[i].declarations.filter(function( obj ) { return obj.property });\n\t\t\t\t\t\t\tpaddingProps = padding.map(function(o) { return o.property; });\n\t\t\t\t\t\t\tnoPreviousPaddings = paddingProps.filter(function(value){ return value === 'padding'; }).length;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (noPreviousPaddings > 1) {\n\t\t\t\t\t\t\t\tfor (j = 1; j < noPreviousPaddings; ++j) {\n\t\t\t\t\t\t\t\t\tpaddingTmpIdx = paddingProps.indexOf('padding',(paddingProps.indexOf('padding')+1));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(paddingTmpIdx, 1); \n\t\t\t\t\t\t\t\t\tdCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of inherit check\n\t\t\t\t\t} \n\t\t\t\t} //end of padding\n\n\n\n\t\t\t\tif (OPTIONS.shorten_zero || OPTIONS.shorten_hexcolor || OPTIONS.shorten) {\n\n\t\t\t\t\t//declarations\n\t\t\t\t\tfor (l = 0; l < dCount; ++l) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//zero check\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t(OPTIONS.shorten_zero || OPTIONS.shorten) \n\t\t\t\t\t\t\t&& OPTIONS.zero_ignore_declaration.indexOf(rules[i].declarations[l].property) == -1\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\ttmpVal = rules[i].declarations[l].value;\n\n\t\t\t\t\t\t\tif (tmpVal !== undefined) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//leading zeros 000\n\t\t\t\t\t\t\t\tif (tmpVal.match(/[^#]\\b0+[^1-9a-zA-Z.,;%()\\[\\]\\s\\/\\\\!]/gm)) {\n\t\t\t\t\t\t\t\t\ttmpVal = tmpVal.replace(/\\b0+[^1-9a-zA-Z.,;%()\\[\\]\\s\\/\\\\!]/gm,''); //remove single duplicate 0\n\t\t\t\t\t\t\t    summary.stats.summary.noZerosShortened += 1;\n\t\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Zero : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//0px, 0em, etc.\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\ttmpVal.substr(0, 1) == '0'\n\t\t\t\t\t\t\t\t\t&& (OPTIONS.zero_units.indexOf(tmpVal.substr(1, tmpVal.length)) != -1)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\ttmpVal = 0;\n\n\t\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Values - Zero : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : ''))); }\n\t\t\t\t\t\t    \tsummary.stats.summary.noZerosShortened += 1;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\trules[i].declarations[l].value = tmpVal;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t//hex color\n\t\t\t\t\t\t/*\n\t\t\t\t\t\tapplied to color, \n\t\t\t\t\t\t\t\t\t\t\t font, font-color,\n\t\t\t\t\t\t\t\t\t\t\t background, background-color, \n\t\t\t\t\t\t\t\t\t\t\t border, border-color, \n\t\t\t\t\t\t\t\t\t\t\t outline-color, \n\t\t\t\t\t\t\t\t\t\t\t box-shadow, text-shadow\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif (OPTIONS.shorten_hexcolor || OPTIONS.shorten\n\t\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t\trules[i].declarations[l].property == 'color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'font'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'font-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'background'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'background-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'outline-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'box-shadow'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'text-shadow'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-top-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-right-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-bottom-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-left-color'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-top'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-right'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-bottom'\n\t\t\t\t\t\t\t\t|| rules[i].declarations[l].property == 'border-left'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\ttmpVal = ''+rules[i].declarations[l].value;\n\t\t\t\t\t\t\tif (tmpVal != 'undefined' && tmpVal.indexOf('Microsoft') == -1) {\n\n\t\t\t\t\t\t\t\ttmpVal = processColor(tmpVal, rules[i].selectors);\n\t\t\t\t\t\t\t\trules[i].declarations[l].value = tmpVal;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} //end of options check\n\n\t\t\t\t\t} //end of loop declarations\n\n\t\t\t\t} //end of OPTIONS.shorten_zero || OPTIONS.shorten_hexcolor check\n\n\t\t\t} //end of undefined check\n\n\t\t} //end of loop rules\n\n\t}// end of processValues\n\n\tfunction processRules(rules) {\n\n\n\t\tif (rules !== undefined) {\n\n\t\t\trCount = rules.length;\n\n\t\t\t//reduce common declarations amongst children into parent\n\t\t\tif (OPTIONS.new_reduce_common_into_parent) {\n\n\n\t\t\t\tvar directParents = [];\n\t\t\t\tvar hierachy = [];\n\t\t\t\tvar hierachyKeys = [];\n\t\t\t\tvar hierachyLen = 0;\n\t\t\t\tvar selectedHierachyLevel = 0;\n\t\t\t\tvar commonParentsIdx = -1;\n\t\t\t\tvar commonParentsKeys = [];\n\t\t\t\tvar commonParents = [];\n\t\t\t\tvar commonParentsLen = 0;\n\t\t\t\tvar commonParent = '';\n\t\t\t\tvar commonParent2 = '';\n\t\t\t\tvar commonParentTotal = 0;\n\t\t\t\tvar commonParentDeclarations = [];\n\t\t\t\tvar commonLineage = '';\n\t\t\t\tvar newParentDeclarations = [];\n\t\t\t\tvar processedCommonParentsChildren = [];\n\t\t\t\tvar classLineage = '';\n\t\t\t\tvar parentClassLineage = '';\n\t\t\t\tvar lineageLabel = '';\n\t\t\t\tvar tmpDeclarations = [];\n\n\t\t\t\tfor (i = 0; i < rCount; ++i) {\n\n\t\t\t\t\t///rules\n\t\t\t\t\t//group classes - create hierarchy\n\t\t\t\t\tif (rules[i].selectors !== undefined) {\n\t\t\t\t\t\tfor (j = 0; j < rules[i].selectors.length; j++) { //each comma delimited\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (rules[i].selectors[j].indexOf('.') != -1) {\n\n\t\t\t\t\t\t\t\tclassLineage = rules[i].selectors[j].split(' ');\n\t\t\t\t\t\t\t\tparentClassLineage = classLineage.slice(0); //clone\n\t\t\t\t\t\t\t\tparentClassLineage.pop();\n\t\t\t\t\t\t\t\tparentClassLineage = parentClassLineage.join(' ');\n\n\t\t\t\t\t\t\t\tif (parentClassLineage !== undefined && parentClassLineage != '') {\n\n\t\t\t\t\t\t\t\t\tif (directParents[parentClassLineage] !== undefined) {\n\t\t\t\t\t\t\t\t\t\tdirectParents[parentClassLineage].push({\n\t\t\t\t\t\t\t\t\t\t\tselector: rules[i].selectors[j],\n\t\t\t\t\t\t\t\t\t\t\tindex: i\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdirectParents[parentClassLineage] = [{\n\t\t\t\t\t\t\t\t\t\t\tselector: rules[i].selectors[j],\n\t\t\t\t\t\t\t\t\t\t\tindex: i\n\t\t\t\t\t\t\t\t\t\t}];\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\tfor (k = 0; k < classLineage.length; k++) { //depth of hierachy\n\n\t\t\t\t\t\t\t\t\tif (k > 0) {\n\t\t\t\t\t\t\t\t\t\tlineageLabel = '';\n\n\t\t\t\t\t\t\t\t\t\tfor (l = k; l > 0; l--) {\n\t\t\t\t\t\t\t\t\t\t\tlineageLabel += classLineage[k-l] + ' ';\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tlineageLabel += classLineage[k];\t\n\n\t\t\t\t\t\t\t\t\t\tif (hierachy[lineageLabel] === undefined) {\n\t\t\t\t\t\t\t\t\t\t\thierachy[lineageLabel] = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\thierachy[lineageLabel] += 1;\n\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\tif (hierachy[classLineage[k]] === undefined) {\n\t\t\t\t\t\t\t\t\t\t\thierachy[classLineage[k]] = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\thierachy[classLineage[k]] += 1;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} //end of for\n\t\t\t\t\t\t\t} //end of if\n\t\t\t\t\t\t} //end of for\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction sortHierachy(obj) {\n\t\t\t\t\tvar keys = Object.keys(obj);\n\t\t\t\t\tkeys.sort(function(a,b){return b.length-a.length})\n\t\t\t\t\thierachy = [];\n\t\t\t\t\tfor (i = 0; i < keys.length; i++) {\n\n\t\t\t\t\t\thierachy[keys[i]] = obj[keys[i]];\n\n\n\t\t\t\t\t\tObject.keys(directParents).forEach(function(key, index, val) {\n\t\t\t\t\t\t  \n\t\t\t\t\t\t  if (this[key].length > 1) {\n\t\t\t\t\t\t\t  for (j = 0; j < this[key].length; j++) {\n\n\t\t\t\t\t\t\t  \tif (keys[i] == this[key][j].selector) {\n\n\t\t\t\t\t\t\t\t  \tif (OPTIONS.verbose) { console.log(success('Process - Rules - Group Common Parent Rule : ' + keys[i] ));}\n\t\t\t\t\t\t\t\t  \tcommonParentsKeys.push({\n\t\t\t\t\t\t\t\t  \t\tselector: key,\n\t\t\t\t\t\t\t\t  \t\tindex: this[key][j].index,\n\t\t\t\t\t\t\t\t  \t\tchildSelector: keys[i]\n\t\t\t\t\t\t\t\t  \t});\n\t\t\t\t\t\t\t\t  }\n\t\t\t\t\t\t\t  }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}, directParents);\n\t\t\t\t\t}\n\t\t\t\t\treturn hierachy;\n\t\t\t\t}\n\t\t\t\tsortHierachy(hierachy);\n\t\t\t\thierachyKeys = Object.keys(hierachy);\n\t\t\t\thierachyLen = hierachyKeys.length;\n\t\t\t\tselectedHierachyLevel = 0;\n\t\t\t\tcommonParentsLen = commonParentsKeys.length;\n\n\t\t\t\t// get declarations\n\t\t\t\tfor (i = 0; i < commonParentsKeys.length; i++) {\n\n\t\t\t\t\tif (rules[commonParentsKeys[i].index].declarations !== undefined) {\n\n\t\t\t\t\t\tfor (j = 0; j < rules[commonParentsKeys[i].index].declarations.length; j++) {\n\n\t\t\t\t\t\t\tif (commonParentDeclarations[rules[commonParentsKeys[i].index].declarations[j].property + '_' + rules[commonParentsKeys[i].index].declarations[j].value] !== undefined) {\n\n\t\t\t\t\t\t\t\tcommonParentDeclarations[rules[commonParentsKeys[i].index].declarations[j].property + '_' + rules[commonParentsKeys[i].index].declarations[j].value].count += 1;\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcommonParentDeclarations[rules[commonParentsKeys[i].index].declarations[j].property + '_' + rules[commonParentsKeys[i].index].declarations[j].value] = {\n\n\t\t\t\t\t\t\t\t\tproperty: rules[commonParentsKeys[i].index].declarations[j].property,\n\t\t\t\t\t\t\t\t\tvalue: rules[commonParentsKeys[i].index].declarations[j].value,\n\t\t\t\t\t\t\t\t\tcount: 1,\n\t\t\t\t\t\t\t\t\tselector: rules[commonParentsKeys[i].index].selectors,\n\t\t\t\t\t\t\t\t\tselectorIndex: commonParentsKeys[i].index,\n\t\t\t\t\t\t\t\t\tcommonParent: commonParentsKeys[i].selector\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tObject.keys(commonParentDeclarations).forEach(function(val, index, key) {\n\n\t\t\t\t\tif (this[val].count == directParents[this[val].commonParent].length) {\n\n\t\t\t\t\t\tif (newParentDeclarations[this[val].commonParent] !== undefined) {\n\t\t\t\t\t\t\tnewParentDeclarations[this[val].commonParent].declarations.push({\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: this[val].property,\n\t\t\t\t\t\t\t\tvalue: this[val].value\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewParentDeclarations[this[val].commonParent] = {\n\t\t\t\t\t\t\t\tdeclarations: [{\n\t\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\t\tproperty: this[val].property,\n\t\t\t\t\t\t\t\t\tvalue: this[val].value\n\t\t\t\t\t\t\t\t}],\n\t\t\t\t\t\t\t\tselectorIndex: this[val].selectorIndex\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcommonParents.push(this[val].commonParent);\n\t\t\t\t\t}\n\n\t\t\t\t}, commonParentDeclarations);\n\n\n\t\t\t\tcommonParentsLen = commonParentsKeys.length;\n\n\t\t\t\tfor (i = 0; i < commonParentsLen; i++) {\n\n\t\t\t\t\tObject.keys(newParentDeclarations).forEach(function(key, index) {\n\n\t\t\t\t\t\tif (commonParentsKeys[i] !== undefined && commonParentsKeys[i].selector == key) {\n\n\t\t\t\t\t\t  if (rules[commonParentsKeys[i].index] !== undefined && rules[commonParentsKeys[i].index].declarations !== undefined) {\n\t\t\t\t\t\t  \t\n\t\t\t\t\t\t  \t//clone declarations\n\t\t\t\t\t\t  \ttmpDeclarations = rules[commonParentsKeys[i].index].declarations.slice(0); //clone\n\t\t\t\t\t\t  \tdCount = tmpDeclarations.length;\n\t\t\t\t\t\t\t  \n\t\t\t\t\t\t  \tfor (j = 0; j < this[key].declarations.length; j++) { //each parent declaration\n\n\t\t\t\t\t\t\t  \t//remove declarations\n\t\t\t\t\t\t\t  \tfor (k = 0; k < dCount; k++) { //each child declaration\n\n\t\t\t\t\t\t\t  \t\tif (\n\t\t\t\t\t\t\t  \t\t\tthis[key].declarations[j] !== undefined\n\t\t\t\t\t\t\t  \t\t\t&& this[key].declarations[j].type == 'declaration'\n\t\t\t\t\t\t\t  \t\t\t&& this[key].declarations[j].property == tmpDeclarations[k].property\n\t\t\t\t\t\t\t  \t\t\t&& this[key].declarations[j].value == tmpDeclarations[k].value\n\t\t\t\t\t\t\t  \t\t) {\n\t\t\t\t\t\t\t  \t\t\ttmpDeclarations.splice(k, 1); \n\t\t\t\t\t\t\t  \t\t\tk -= 1;\n\t\t\t\t\t\t\t  \t\t\tdCount-=1;\n\t\t\t\t\t\t\t  \t\t}\n\t\t\t\t\t\t\t  \t} //end of k loop\n\n\t\t\t\t\t\t\t  } //end of j loop\n\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t  if (tmpDeclarations.length == 0) {\n\n\t\t\t\t\t\t\t  \t//remove whole rule\n\t\t\t\t\t\t\t  \trules.splice(commonParentsKeys[i].index, 1);\n\t\t\t\t\t\t\t  \ti-=1;\n\t\t\t\t\t\t\t  \tcommonParentsLen-=1;\n\n\t\t\t\t\t\t\t  } else {\n\t\t\t\t\t\t\t  \t//update declarations\n\t\t\t\t\t\t\t  \trules[commonParentsKeys[i].index].declarations = tmpDeclarations;\n\t\t\t\t\t\t\t  }\n\t\t\t\t\t\t\t\t  \t\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t}\n\t\t\t\t\t  \n\t\t\t\t\t}, newParentDeclarations);\n\t\t\t\t} //end of i loop\n\n\t\t\t\t//Create Common Parents\n\t\t\t\tObject.keys(newParentDeclarations).forEach(function(key, index) {\n\t\t\t\t  \n\t\t\t\t  rules.splice( ((this[key].selectorIndex-1 < 0) ? this[key].selectorIndex : this[key].selectorIndex-1), 0, {\n\t\t\t\t\t\ttype : 'rule',\n\t\t\t\t\t\tselectors: [key],\n\t\t\t\t\t\tdeclarations: this[key].declarations\n\t\t\t\t\t});\n\n\t\t\t\t}, newParentDeclarations);\n\n\t\t\t\t//some cleanup\n\t\t\t\tdirectParents = [];\n\t\t\t\thierachy = [];\n\t\t\t\thierachyKeys = [];\n\t\t\t\tcommonParentsKeys = [];\n\t\t\t\tcommonParents = [];\n\t\t\t\tcommonParentDeclarations = [];\n\t\t\t\tnewParentDeclarations = [];\n\t\t\t\tprocessedCommonParentsChildren = [];\n\t\t\t\ttmpDeclarations = [];\n\t\t\t\t\n\t\t\t\t//reset rules count\n\t\t\t\trCount = rules.length;\n\n\t\t\t} //end of reduce common declarations amongst children into parent\n\n\n\n\n\n\t\t\tfor (i = 0; i < rCount; ++i) {\n\n\t\t\t\t////comments\n\t\t\t\t//checking declarations for comments\n\t\t\t\tif (rules[i] !== undefined && rules[i].declarations !== undefined) {\n\t\t\t\t\tdeclarations = rules[i].declarations;\n\t\t\t\t\tdCount = declarations.length;\n\n\t\t\t\t\tfor (j = 0; j < dCount; ++j) {\n\n\t\t\t\t\t\t//check for empty properties\n\t\t\t\t\t\tif (rules[i].declarations[j].value == '') {\n\t\t\t\t\t\t\tsummary.empty_declarations.push({\n\t\t\t\t\t\t\t\t'selectors': rules[i].selectors,\n\t\t\t\t\t\t\t\t'property': rules[i].declarations[j]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//remove comments in declarations - for turning off comments\n\t\t\t\t\t\tif (OPTIONS.trim_comments || OPTIONS.trim) {\n\t\t\t\t\t\t\tif (declarations[j] !== undefined && declarations[j].type == 'comment') {\n\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - Remove Comment')); }\n\t\t\t\t\t\t\t\trules[i].declarations.splice(j, 1);\n\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//remove comments in root - for turning off comments\n\t\t\t\tif (OPTIONS.trim_comments || OPTIONS.trim) {\n\t\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'comment') {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - Remove Comment')); }\n\t\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t////end of comments\n\n\n\t\t\t\t////rules\n\t\t\t\t//remove duplicate root rules\n\t\t\t\tfor (j = i+1; j < rCount; ++j) {\n\t\t\t\t\t// console.log(j, rCount)\n\t\t\t\t\t//root rules\n\t\t\t\t\t//rule selector\n\t\t\t\t\tif (rules[i] !== undefined \n\t\t\t\t\t\t// && rules[i].type == 'rule'\n\t\t\t\t\t\t&& rules[i].selectors !== undefined \n\t\t\t\t\t\t&& rules[j] !== undefined && rules[j].selectors !== undefined) {\n\n\t\t\t\t\t\t//duplicate rule found\n\t\t\t\t\t\tif (rules[i].selectors.toString() == rules[j].selectors.toString()) {\n\n\t\t\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Rules - Group Duplicate Rule : ' + (rules[j].selectors ? rules[j].selectors.join(', ') : '')));}\n\n\t\t\t\t\t\t\t//copy + reduce\n\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateRules += 1;\n\t\t\t\t\t\t\tif ( j < i && (j-i) > 1 ) { //check comparison distance\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': (rules[i].type == 'page') ? '@page' : rules[i].selectors,\n\t\t\t\t\t\t\t\t\t'position': rules[i].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[j].declarations = rules[j].declarations.concat(rules[i].declarations);\n\t\t\t\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': (rules[j].type == 'page') ? '@page' : rules[j].selectors,\n\t\t\t\t\t\t\t\t\t'position': rules[j].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[i].declarations = rules[i].declarations.concat(rules[j].declarations);\n\t\t\t\t\t\t\t\trules.splice(j, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\trCount-=1;\t\t\t\t\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} //end of rule selector\n\n\t\t\t\t\t//media selector - it could affect evaluation sequence\n\t\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'media' \n\t\t\t\t\t\t&& rules[i].media !== undefined \n\t\t\t\t\t\t&& rules[j] !== undefined && rules[j].media !== undefined\n\t\t\t\t\t\t&& OPTIONS.bypass_media_rules != true\n\t\t\t\t\t) {\n\n\t\t\t\t\t\t//duplicate rule found\n\t\t\t\t\t\tif (rules[i].media.toString() == rules[j].media.toString()) {\n\n\t\t\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - @media - Group Duplicate Rule : ' + (rules[j].selectors ? rules[j].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\t\t//copy + reduce\n\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateRules += 1;\n\t\t\t\t\t\t\tif ( j < i && (j-i) > 1 ) { //check comparison distance\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': '@media ' + rules[i].media,\n\t\t\t\t\t\t\t\t\t'position': rules[i].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[j].rules = rules[j].rules.concat(rules[i].rules);\n\t\t\t\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': '@media ' + rules[j].media,\n\t\t\t\t\t\t\t\t\t'position': rules[j].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[i].rules = rules[i].rules.concat(rules[j].rules);\n\t\t\t\t\t\t\t\trules.splice(j, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t//end of media selector\n\n\t\t\t\t\t//document selector\n\t\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'document' \n\t\t\t\t\t\t&& rules[i].document !== undefined \n\t\t\t\t\t\t&& rules[j] !== undefined && rules[j].document !== undefined) {\n\n\t\t\t\t\t\t//duplicate rule found\n\t\t\t\t\t\tif (rules[i].document.toString() == rules[j].document.toString()) {\n\n\t\t\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Rules - @document - Group Duplicate Rule : ' + (rules[j].selectors ? rules[j].selectors.join(', ') : ''))); }\n\n\t\t\t\t\t\t\t//copy + reduce\n\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateRules += 1;\n\t\t\t\t\t\t\tif ( j < i && (j-i) > 1 ) { //check comparison distance\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': '@document ' + rules[i].document,\n\t\t\t\t\t\t\t\t\t'position': rules[i].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[j].rules = rules[j].rules.concat(rules[i].rules);\n\t\t\t\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': '@document ' + rules[j].document,\n\t\t\t\t\t\t\t\t\t'position': rules[j].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[i].rules = rules[i].rules.concat(rules[j].rules);\n\t\t\t\t\t\t\t\trules.splice(j, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} //end of document selector\n\n\t\t\t\t\t//supports selector\n\t\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'supports' \n\t\t\t\t\t\t&& rules[i].supports !== undefined \n\t\t\t\t\t\t&& rules[j] !== undefined && rules[j].supports !== undefined) {\n\n\t\t\t\t\t\t//duplicate rule found\n\t\t\t\t\t\tif (rules[i].supports.toString() == rules[j].supports.toString()) {\n\n\t\t\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Rules - @supports - Group Duplicate Rule : ' + (rules[j].supports ? rules[j].supports : ''))); }\n\n\t\t\t\t\t\t\t//copy + reduce\n\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateRules += 1;\n\t\t\t\t\t\t\tif ( j < i && (j-i) > 1 ) { //check comparison distance\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': '@supports ' + rules[i].supports,\n\t\t\t\t\t\t\t\t\t'position': rules[i].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[j].rules = rules[j].rules.concat(rules[i].rules);\n\t\t\t\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsummary.duplicate_rules.push({\n\t\t\t\t\t\t\t\t\t'selectors': '@supports ' + rules[j].supports,\n\t\t\t\t\t\t\t\t\t'position': rules[j].position\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\trules[i].rules = rules[i].rules.concat(rules[j].rules);\n\t\t\t\t\t\t\t\trules.splice(j, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} //end of supports selector\n\n\n\n\t\t\t\t} //end of j\n\t\t\t\t////end of rules\n\n\n\t\t\t\t////declarations\n\t\t\t\t//reduce root delcarations by property name and by duplicate values\n\t\t\t\tif (rules[i] !== undefined \n\t\t\t\t\t&& (rules[i].type == 'rule' || (rules[i].type == 'page' && OPTIONS.bypass_page_rules == false))\n\t\t\t\t) {\n\n\t\t\t\t\tdeclarationsNameCounts = [];\n\n\t\t\t\t\tdCount = rules[i].declarations.length;\n\n\t\t\t\t\t//declarations duplicate check\n\t\t\t\t\tfor (l = 0; l < dCount; ++l) {\n\n\t\t\t\t\t\tif (rules[i].declarations[l].type == 'declaration') {\n\t\t\t\t\t\t\tif (declarationsNameCounts[rules[i].declarations[l].property] !== undefined) {\n\t\t\t\t\t\t\t\tdeclarationsNameCounts[rules[i].declarations[l].property] += 1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdeclarationsNameCounts[rules[i].declarations[l].property] = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} //end of declarations duplicate check\n\n\n\t\t\t\t\t//reduce according to values\n\t\t\t\t\tdeclarationsValueCounts = [];\n\t\t\t\t\tvalKey = '';\n\t\t\t\t\t//detect duplicate values\n\t\t\t\t\tfor (key in declarationsNameCounts) {\n\n\t\t\t      if (!reduceRulesListName.includes(key)) { //only properties not in list\n\n\n\t\t\t\t\t\t\tfor (l = 0; l < dCount; ++l) {\n\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\trules[i].declarations[l].type == 'declaration'\n\t\t\t\t\t\t\t\t\t&& rules[i].declarations[l].property == key\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\thash = crypto.createHash('sha256');\n\t\t\t\t\t\t\t\t\thash.update(rules[i].declarations[l].property + rules[i].declarations[l].value);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvalKey = hash.digest('hex');\n\n\t\t\t\t\t\t\t\t\tif (declarationsValueCounts[valKey] !== undefined) {\n\t\t\t\t\t\t\t\t\t\tdeclarationsValueCounts[valKey].id += ',' + l;\n\t\t\t\t\t\t\t\t\t\tdeclarationsValueCounts[valKey].count += 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdeclarationsValueCounts[valKey] = {\n\t\t\t\t\t\t\t\t\t\t\tid : l,\n\t\t\t\t\t\t\t\t\t\t\tcount : 1\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t      }\n\t\t\t    }\n\n\t\t\t    //remove duplicate declarations by duplicate values\n\t\t\t    declarationsValueCountsCount = Object.keys(declarationsValueCounts).length;\n\n\t\t\t    amountRemoved = 1;\n\n\t\t\t\t\tfor (key in declarationsValueCounts) {\n\t\t\t      if (declarationsValueCounts.hasOwnProperty(key)) {\n\n\n\t\t\t      \tif (declarationsValueCounts[key].count > 1) {\n\t\t\t      \t\tduplicate_ids = declarationsValueCounts[key].id.split(',');\n\n\t\t\t      \t\tamountRemoved = 1; //shift the ids by the amount removed\n\t\t\t\t\t\t\t\tfor (l = 0; l < duplicate_ids.length-1; ++l) { // -1 to leave last behind\n\n\t\t\t\t\t\t\t\t\t//remove previous comment above declaration to be removed\n\t\t\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\n\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[duplicate_ids[l]-1] !== undefined && rules[i].declarations[duplicate_ids[l]-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(duplicate_ids[l]-1, 1);\n\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\n\t\t\t\t\t\t\t\t\t\t\t//adjust removal ids by amount already removed\n\t\t\t\t\t\t\t\t\t\t\tif (duplicate_ids[l] !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\t\tduplicate_ids[l] -= amountRemoved; //shift the ids by the amount removed\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tamountRemoved += 1;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Declaration - Group Duplicate Declarations : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : '') + ' - ' + (rules[i].declarations[l]!==undefined?rules[i].declarations[l].property:''))); }\n\n\t\t\t\t\t\t\t\t\tsummary.duplicate_declarations.push(rules[i].declarations[duplicate_ids[l]]);\n\t\t\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateDeclarations += 1;\n\t\t\t\t\t\t\t\t\trules[i].declarations.splice(duplicate_ids[l], 1);\n\t\t\t\t\t\t\t\t\tdCount-=1;\n\n\t\t\t\t\t\t\t\t\t//adjust removal ids by amount already removed\n\t\t\t\t\t\t\t\t\tif (duplicate_ids[l+1] !== undefined) {\n\t\t\t\t\t\t\t\t\t\tduplicate_ids[l+1] -= amountRemoved; //shift the ids by the amount removed\n\n\t\t\t\t\t\t\t\t\t\t//shift all the ids of the declarations afterwards\n\t\t\t\t\t\t\t\t\t\tfor (key2 in declarationsValueCounts) {\n\t\t\t\t\t\t\t\t\t\t\tif (declarationsValueCounts.hasOwnProperty(key2) && (key2 != key)) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (typeof declarationsValueCounts[key2].id == 'number') {\n\t\t\t\t\t\t\t\t\t\t\t\t\tduplicate_ids = [];\n\t\t\t\t\t\t\t\t\t\t\t\t\tduplicate_ids[0] = declarationsValueCounts[key2].id;\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\tduplicate_ids = declarationsValueCounts[key2].id.split(',');\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t      \t\t\n\t\t\t\t\t\t\t      \t\tfor (l = 0; l < duplicate_ids.length; ++l) {\n\t\t\t\t\t\t\t      \t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (duplicate_ids[l] !== undefined) {\n\t\t\t\t\t\t\t\t      \t\t\tduplicate_ids[l] -= amountRemoved;\n\t\t\t\t\t\t\t\t      \t\t}\n\t\t\t\t\t\t\t      \t\t}\n\t\t\t\t\t\t\t      \t\tdeclarationsValueCounts[key2].id = duplicate_ids.join();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//end of shifting all ids\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tamountRemoved += 1;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t      } //end of if\n\t\t\t      } //end of if\n\t\t\t    } //end of for in\n\t\t\t\t\t//end of reduce according to values\n\n\t\t\t\t\tfor (k = 0; k < reduceRulesListNameCount; ++k) {\n\n\t\t\t\t\t\t//declarations reduction\n\t\t\t\t\t\tfor (key in declarationsNameCounts) {\n\t\t\t\t      if (declarationsNameCounts.hasOwnProperty(key)) {\n\n\t\t\t\t\t\t\t\tif (declarationsNameCounts[key] > 1) {\n\n\t\t\t\t\t\t\t\t\tfor (l = 0; l < dCount; ++l) {\n\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l].type == 'declaration') {\n\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations[l].property == key \n\t\t\t\t\t\t\t\t\t\t\t\t&& declarationsNameCounts[key] > 1 //leave behind 1\n\t\t\t\t\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t//reduce according to list\n\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l].property == reduceRulesListName[k]) { \n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(declarationsNameCounts[key])\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(key)\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(rules[i].declarations[l].property)\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(reduceRulesListName[k])\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//remove previous comment above declaration to be removed\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l-1] !== undefined && rules[i].declarations[l-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l-1, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Declaration - Group Duplicate Declarations : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : '') + ' - ' + (rules[i].declarations[l]!==undefined?rules[i].declarations[l].property:''))); }\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(rules[i].declarations[l].value.indexOf('!important') !== -1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(rules[i].declarations[l].value)\n\t\t\t\t\t\t\t\t\t\t\t\t\t// console.log(rules[i].declarations[l+1].value)\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//prioritises !important declarations\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l].value.indexOf('!important') !== -1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.duplicate_declarations.push(rules[i].declarations[l+1]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateDeclarations += 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l+1, 1);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.duplicate_declarations.push(rules[i].declarations[l]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateDeclarations += 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tl-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeclarationsNameCounts[key] -= 1;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} //end of reduce root declarations by property name\n\n\t\t\t\t} //end of rule check\n\n\n\n\t\t\t\t//reduce root declarations by selector\n\t\t\t\tselectorPropertiesList = [];\n\t\t\t\tdeclarationsCounts = [];\n\t\t\t\tfor (k = 0; k < reduceRulesListSelectorCount; ++k) {\n\n\t\t\t\t\tif (rules[i] !== undefined \n\t\t\t\t\t\t&& rules[i].type == 'rule'\n\t\t\t\t\t) {\n\n\t\t\t\t\t\tif (rules[i].selectors !== undefined && rules[i].selectors.toString() === reduceRulesListSelector[k]) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdCount = rules[i].declarations.length;\n\n\t\t\t\t\t\t\t//detect declarations duplicates\n\t\t\t\t\t\t\tfor (l = 0; l < dCount; ++l) {\n\t\t\t\t\t\t\t\tif (rules[i].declarations[l].type == 'declaration'\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tif (declarationsCounts[rules[i].declarations[l].property] !== undefined) {\n\t\t\t\t\t\t\t\t\t\tdeclarationsCounts[rules[i].declarations[l].property] += 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdeclarationsCounts[rules[i].declarations[l].property] = 1;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} //end of declarations duplicate check\n\n\t\t\t\t\t\t\t// declarations reduction\n\t\t\t\t\t\t\tfor (key in declarationsCounts) {\n\t\t\t\t\t      if (declarationsCounts.hasOwnProperty(key)) {\n\n\t\t\t\t\t\t\t\t\tif (declarationsCounts[key] > 1) {\n\n\t\t\t\t\t\t\t\t\t\tfor (l = 0; l < dCount; ++l) {\n\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l].type == 'declaration') {\n\n\t\t\t\t\t\t\t\t\t\t\t\tselectorPropertiesList = reduceRulesListSelectorPName[reduceRulesListSelector[k]];\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif (selectorPropertiesList !== undefined) { //specific in selector\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l].property == key \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (selectorPropertiesList.indexOf(rules[i].declarations[l].property) != -1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& declarationsCounts[key] > 1) { //leave behind 1\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove previous comment above declaration to be removed\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l-1] !== undefined && rules[i].declarations[l-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l-1, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Declaration - Group Duplicate Declarations : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : '') + ' - ' + (rules[i].declarations[l]!==undefined?rules[i].declarations[l].property:''))); }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.duplicate_declarations.push(rules[i].declarations[l]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateDeclarations += 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tl-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeclarationsCounts[key] -= 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t} else { //all in selector\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l].property == key \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& declarationsCounts[key] > 1) { //leave behind 1\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove previous comment above declaration to be removed\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (rules[i].declarations[l-1] !== undefined && rules[i].declarations[l-1].type == 'comment') {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l-1, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(success('Process - Declaration - Group Duplicate Declarations : ' + (rules[i].selectors ? rules[i].selectors.join(', ') : '') + ' - ' + (rules[i].declarations[l]!==undefined?rules[i].declarations[l].property:''))); }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.duplicate_declarations.push(rules[i].declarations[l]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsummary.stats.summary.noDuplicateDeclarations += 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trules[i].declarations.splice(l, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tl-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdCount-=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeclarationsCounts[key] -= 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t      }\n\t\t\t\t\t    } //end of declarations reduction\n\n\t\t\t\t\t\t} //end of if\n\t\t\t\t\t} //end of if\t\t\t\t\n\t\t\t\t} //end of reduce root declarations by selector\n\n\t\t\t\t////end of declarations\n\n\n\n\n\t\t\t\t////empty nodes\n\t\t\t\t//remove empty @sign keyframes\n\t\t\t\tif (rules[i] != undefined && rules[i].keyframes !== undefined && rules[i].keyframes.length == 0) {\n\n\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @keyframes - Remove comment : ' + (rules[i].keyframes ? rules[i].keyframes.join(', ') : ''))); }\n\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @keyframes - Remove Empty Rule : ' + (rules[i].keyframes ? rules[i].keyframes.join(', ') : ''))); }\n\n\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\ti-=1;\n\t\t\t\t\trCount-=1;\n\t\t\t\t}\n\n\t\t\t\t//remove empty @sign media\n\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'media' \n\t\t\t\t\t&& rules[i].rules.length == 0) {\n\n\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @media - Remove comment : ' + (rules[i].media ? rules[i].media : ''))); }\n\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @media - Remove Empty Rule : ' + (rules[i].media ? rules[i].media : ''))); }\n\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\ti-=1;\n\t\t\t\t\trCount-=1;\n\t\t\t\t}\n\n\t\t\t\t//remove empty @sign document\n\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'document' \n\t\t\t\t\t&& rules[i].rules.length == 0) {\n\n\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @document - Remove comment : ' + (rules[i].document ? rules[i].document : ''))); }\n\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @document - Remove Empty Rule : ' + (rules[i].document ? rules[i].document : ''))); }\n\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\ti-=1;\n\t\t\t\t\trCount-=1;\n\t\t\t\t}\n\n\t\t\t\t//remove empty @sign supports\n\t\t\t\tif (rules[i] !== undefined && rules[i].type == 'supports' \n\t\t\t\t\t&& rules[i].rules.length == 0) {\n\n\t\t\t\t\t//remove previous comment in root\n\t\t\t\t\tif (OPTIONS.trim_removed_rules_previous_comment || OPTIONS.trim) {\n\t\t\t\t\t\tif (rules[i-1] !== undefined && rules[i-1].type == 'comment') {\n\t\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @supports - Remove comment : ' + (rules[i].supports ? rules[i].supports : ''))); }\n\t\t\t\t\t\t\trules.splice(i-1, 1);\n\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\trCount-=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - @supports - Remove Empty Rule : ' + (rules[i].supports ? rules[i].supports : ''))); }\n\t\t\t\t\trules.splice(i, 1);\n\t\t\t\t\ti-=1;\n\t\t\t\t\trCount-=1;\n\t\t\t\t}\n\t\t\t\t////end of empty nodes\n\n\n\n\t\t\t} //end of i\n\n\t\t} //end of undefined\n\t} //end of processRules\n\n\tfunction processRulesReset() {\n\n\t\tdeclarationsNameCounts = null;\n\t\tdeclarationsValueCounts = null;\n\t\tvalKey = null;\n\t\tkey = null;\n\t\tdeclarationsValueCountsCount = null;\n\t\tamountRemoved = 1;\n\t\tduplicate_ids = null;\n\t\tselectorPropertiesList = null;\n\t}\n\n\tfunction processHTMLResults(rulesIn, selectors) {\n\t\tif (OPTIONS.verbose) { console.log(info('Process - HTML - Remove Unused Rules')); }\n\n\t\t//remove unused selectors\n\t\tvar foundSelector = false;\n\t\tvar foundInnocent = false;\n\t\tvar tmpSelectors = '';\n\t\tvar findSelector = null;\n\t\tfor (i = 0, rulesCount = rulesIn.length; i < rulesCount; ++i) {\n\n\t\t\tif (rulesIn[i] !== undefined) {\n\t\t\t\tswitch(rulesIn[i].type) {\n\t\t\t\t\tcase 'rule': \n\t\t\t\t\t\tfor (j = 0, rulesCount2 = selectors.length; j < rulesCount2; ++j) {\n\t\t\t\t\t\t\ttmpSelectors = rulesIn[i].selectors;\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tselectors[j].indexOf('[') != -1\n\t\t\t\t\t\t\t\t|| selectors[j].indexOf('*') != -1\n\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tfindSelector = new RegExp(RegExp.escape(\"^(.\" + selectors[j] + \"|\" + selectors[j] + \")$\" , \"gm\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfindSelector = new RegExp(\"^(.\" + selectors[j] + \"|\" + selectors[j] + \")$\" , \"gm\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (tmpSelectors.join(\",\").match(findSelector)) {\n\n\t\t\t\t\t\t\t\tif (tmpSelectors.length > 1) {\n\n\t\t\t\t\t\t\t\t\tfoundInnocent = false;\n\n\t\t\t\t\t\t\t\t\t//check for any \"innocent\" amongst the guilty group\n\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = tmpSelectors.length; k < rulesCount3; ++k) {\n\n\t\t\t\t\t\t\t\t\t\tif (selectors.indexOf(tmpSelectors[k]) == -1) {\n\n\t\t\t\t\t\t\t\t\t\t\tfoundInnocent = true;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (!foundInnocent) { //remove only guilty\n\n\t\t\t\t\t\t\t\t\t\t//remove rule\n\t\t\t\t\t\t\t\t\t\trulesIn.splice(i, 1);\n\t\t\t\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\t\t\t\trulesCount-=1;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t//remove rule\n\t\t\t\t\t\t\t\t\trulesIn.splice(i, 1);\n\t\t\t\t\t\t\t\t\ti-=1;\n\t\t\t\t\t\t\t\t\trulesCount-=1;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'document': \n\t\t\t\t\tcase 'supports': \n\t\t\t\t\tcase 'media': \n\n\t\t\t\t\t\tfor (j = 0, rulesCount2 = rulesIn[i].rules.length; j < rulesCount2; ++j) {\n\n\t\t\t\t\t\t\tif (rulesIn[i].rules[j] !== undefined ) {\n\n\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = selectors.length; k < rulesCount3; ++k) {\n\n\t\t\t\t\t\t\t\t\ttmpSelectors = rulesIn[i].rules[j].selectors;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tselectors[k].indexOf('[') != -1\n\t\t\t\t\t\t\t\t\t\t|| selectors[k].indexOf('*') != -1\n\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tfindSelector = new RegExp(RegExp.escape(\"^(.\" + selectors[k] + \"|\" + selectors[k] + \")$\" , \"gm\"));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tfindSelector = new RegExp(\"^(.\" + selectors[k] + \"|\" + selectors[k] + \")$\" , \"gm\");\t\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (tmpSelectors.join(\",\").match(findSelector)) {\n\n\t\t\t\t\t\t\t\t\t\tif (tmpSelectors.length > 1) {\n\n\t\t\t\t\t\t\t\t\t\t\tfoundInnocent = false;\n\n\t\t\t\t\t\t\t\t\t\t\t//check for any \"innocent\" amongst the guilty group\n\t\t\t\t\t\t\t\t\t\t\tfor (l = 0, rulesCount4 = tmpSelectors.length; l < rulesCount4; ++l) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (selectors.indexOf(tmpSelectors[l]) == -1) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tfoundInnocent = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif (!foundInnocent) { //remove only guilty\n\n\t\t\t\t\t\t\t\t\t\t\t\t//remove rule\n\t\t\t\t\t\t\t\t\t\t\t\trulesIn[i].rules.splice(j, 1);\n\t\t\t\t\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\t\t\t\t\trulesCount3-=1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t//remove rule\n\t\t\t\t\t\t\t\t\t\t\trulesIn[i].rules.splice(j, 1);\n\t\t\t\t\t\t\t\t\t\t\tj-=1;\n\t\t\t\t\t\t\t\t\t\t\trulesCount3-=1;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'charset': \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'page': \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - Base')); }\n\t\tprocessRules(rulesIn);\n\n\n\n\t\t//after\n\t\tstats.after.totalFileSizeKB = 0;\n\t\tstats.after.noNodes = 0;\n\t\tstats.after.noRules = 0;\n\t\tstats.after.noDeclarations = 0;\n\t\tstats.after.noComments = 0;\n\t\tstats.after.noCharset = 0;\n\t\tstats.after.noCustomMedia = 0;\n\t\tstats.after.noDocument = 0;\n\t\tstats.after.noFontFace = 0;\n\t\tstats.after.noHost = 0;\n\t\tstats.after.noImport = 0;\n\t\tstats.after.noKeyframes = 0;\n\t\tstats.after.noKeyframe = 0;\n\t\tstats.after.noMedia = 0;\n\t\tstats.after.noNamespace = 0;\n\t\tstats.after.noPage = 0;\n\t\tstats.after.noSupports = 0;\n\n\n\t\tstats.after.noNodes = rulesIn.length;\n\t\tfor (i = 0; i < stats.after.noNodes; ++i) {\n\n\t\t\tif (rulesIn[i] !== undefined) {\n\n\t\t\t\tif (rulesIn[i].declarations !== undefined) {\n\t\t\t\t\t\n\t\t\t\t\tdCount = rulesIn[i].declarations.length;\n\n\t\t\t\t\tfor (j = 0; j < dCount; ++j) {\n\t\t\t\t\t\tif (rulesIn[i].declarations[j].type == 'comment') {\n\n\t\t\t\t\t\t\tsummary.stats.after.noComments += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (rulesIn[i].type == 'comment') {\n\n\t\t\t\t\tsummary.stats.after.noComments += 1;\n\t\t\t\t}\n\n\t\t\t\tif (rulesIn[i].type == 'rule') {\n\n\t\t\t\t\tsummary.stats.after.noRules += 1;\n\n\t\t\t\t\tsummary.stats.after.noDeclarations += rulesIn[i].declarations.length;\n\t\t\t\t}\n\n\t\t\t\tswitch(rulesIn[i].type) {\n\t\t\t\t\tcase 'charset': summary.stats.after.noCharset += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'custom-media': summary.stats.after.noCustomMedia += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'document': summary.stats.after.noDocument += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'font-face': summary.stats.after.noFontFace += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'host': summary.stats.after.noHost += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'import': summary.stats.after.noImport += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'keyframes': summary.stats.after.noKeyframes += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'keyframe': summary.stats.after.noKeyframe += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'media': summary.stats.after.noMedia += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'namespace': summary.stats.after.noNamespace += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'page': summary.stats.after.noPage += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'supports': summary.stats.after.noSupports += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} //end of after count\n\n\n\t\t//calc reductions\n\n\t\tsummary.stats.summary.noReductions.noNodes = summary.stats.before.noNodes - summary.stats.after.noNodes;\n\t\tsummary.stats.summary.noReductions.noRules = summary.stats.before.noRules - summary.stats.after.noRules;\n\t\tsummary.stats.summary.noReductions.noDeclarations = summary.stats.before.noDeclarations - summary.stats.after.noDeclarations;\n\t\tsummary.stats.summary.noReductions.noComments = summary.stats.before.noComments - summary.stats.after.noComments;\n\t\tsummary.stats.summary.noReductions.noCharset = summary.stats.before.noCharset - summary.stats.after.noCharset;\n\t\tsummary.stats.summary.noReductions.noCustomMedia = summary.stats.before.noCustomMedia - summary.stats.after.noCustomMedia;\n\t\tsummary.stats.summary.noReductions.noDocument = summary.stats.before.noDocument - summary.stats.after.noDocument;\n\t\tsummary.stats.summary.noReductions.noFontFace = summary.stats.before.noFontFace - summary.stats.after.noFontFace;\n\t\tsummary.stats.summary.noReductions.noHost = summary.stats.before.noHost - summary.stats.after.noHost;\n\t\tsummary.stats.summary.noReductions.noImport = summary.stats.before.noImport - summary.stats.after.noImport;\n\t\tsummary.stats.summary.noReductions.noKeyframes = summary.stats.before.noKeyframes - summary.stats.after.noKeyframes;\n\t\tsummary.stats.summary.noReductions.noKeyframe = summary.stats.before.noKeyframe - summary.stats.after.noKeyframe;\n\t\tsummary.stats.summary.noReductions.noMedia = summary.stats.before.noMedia - summary.stats.after.noMedia;\n\t\tsummary.stats.summary.noReductions.noNamespace = summary.stats.before.noNamespace - summary.stats.after.noNamespace;\n\t\tsummary.stats.summary.noReductions.noPage = summary.stats.before.noPage - summary.stats.after.noPage;\n\t\tsummary.stats.summary.noReductions.noSupports = summary.stats.before.noSupports - summary.stats.after.noSupports;\n\n\n\t\t\n\t\toutputAST = {\n\t\t\ttype: 'stylesheet',\n\t\t\tstylesheet: {\n\t\t\t\trules: rulesIn\n\t\t\t}\n\t\t};\n\t\toutputCSS = css.stringify(outputAST);\n\n\t\treturn outputCSS;\n\t} //end of processHTMLResults\n\n\n\tfunction completeOutput(outputCSS = '') {\n\n\n\t\tif (OPTIONS.css_output !== '') {\n\t\t\t// console.log(outputCSS)\n\n\n\t\t\t//write output\n\t\t\ttry {\n\t\t\t\tif (OPTIONS.format_4095_rules_legacy_limit) {\n\t\t\t\t\t// console.log(summary.stats.after.noRules)\n\t\t\t\t\tvar noOutputFilesNeeded = Math.ceil(summary.stats.after.noRules / 4095);\n\t\t\t\t\t// console.log(noOutputFilesNeeded)\n\t\t\t\t\t\n\n\t\t\t\t\tif (noOutputFilesNeeded == 1) {\n\n\t\t\t\t\t\toutputCSS = trimCSS(outputCSS);\n\t\t\t\t\t\toutputCSS = restoreHacks(outputCSS);\n\t\t\t\t\t\twrite(OPTIONS.css_output, outputCSS);\n\t\t\t\t\t\tfilesizeKB = getFilesizeInKiloBytes(OPTIONS.css_output);\n\t\t\t\t\t} else { //group 4095 rules\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tvar ast = css.parse(outputCSS, { source: fileLocation });\n\t\t\t\t\t\t} catch(err) {\n\t\t\t\t\t\t\tconsole.log(error(\"CSS Parser2 Error: probably have something funny in your CSS, change it then please try again.\"));\n\t\t\t\t\t\t\tconsole.log('Reason: ' + err.reason);\n\t\t\t\t\t\t\tconsole.log('Line: ' + err.line);\n\t\t\t\t\t\t\tconsole.log('Column: ' + err.column);\n\t\t\t\t\t\t\tconsole.log('Filename: ' + err.filename);\n\t\t\t\t\t\t\tprocess.exit(1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar rulesGroups = [];\n\t\t\t\t\t\tvar rulesGroupsLen = 0;\n\t\t\t\t\t\tvar rules = ast.stylesheet.rules;\n\t\t\t\t\t\tvar ruleslen = rules.length;\n\t\t\t\t\t\tvar ruleCount = 0;\n\t\t\t\t\t\tvar groupCount = 0;\n\n\t\t\t\t\t\tfor (i = 0; i < ruleslen; ++i) {\n\n\t\t\t\t\t\t\tif (rulesGroups[groupCount] === undefined) {\n\t\t\t\t\t\t\t\trulesGroups[groupCount] = [];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trulesGroups[groupCount].push(rules[i]);\n\t\t\t\t\t\t\truleCount += 1;\n\n\t\t\t\t\t\t\tif (ruleCount == 4095) {\n\t\t\t\t\t\t\t\tgroupCount += 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trulesGroupsLen = rulesGroups.length;\n\t\t\t\t\t\tfilesizeKB = 0;\n\t\t\t\t\t\toutputFilename = '';\n\t\t\t\t\t\tfor (i = 0; i < rulesGroupsLen; i++) {\n\n\t\t\t\t\t\t\toutputAST = {\n\t\t\t\t\t\t\t\ttype: 'stylesheet',\n\t\t\t\t\t\t\t\tstylesheet: {\n\t\t\t\t\t\t\t\t\trules: rulesGroups[i]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\toutputCSS = css.stringify(outputAST);\n\n\t\t\t\t\t\t\toutputCSS = trimCSS(outputCSS);\n\t\t\t\t\t\t\toutputCSS = restoreHacks(outputCSS);\n\t\t\t\t\t\t\toutputFilename = OPTIONS.css_output.substr(0, OPTIONS.css_output.length-4) + '_' + i + '.css';\n\t\t\t\t\t\t\twrite(outputFilename, outputCSS);\n\n\t\t\t\t\t\t\tfilesizeKB += getFilesizeInKiloBytes(outputFilename);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\toutputCSS = trimCSS(outputCSS);\n\t\t\t\t\toutputCSS = restoreHacks(outputCSS);\n\t\t\t\t\tif (OPTIONS.css_output === null || OPTIONS.css_output === undefined || OPTIONS.css_output == '') {\n\t\t\t\t\t\tvar size = kiloByteLength(outputCSS);\n\t\t\t\t\t\tfilesizeKB = size/1000;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twrite(OPTIONS.css_output, outputCSS);\n\t\t\t\t\t\tfilesizeKB = getFilesizeInKiloBytes(OPTIONS.css_output);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch(e) {\n\t\t\t\tconsole.log(error(\"Output file error: Something went wrong while writing the file, check your folder permissions, config_css.json and please try again.\"));\n\t\t\t\tconsole.log(e);\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t} else {\n\t\t\toutputCSS = trimCSS(outputCSS);\n\t\t\toutputCSS = restoreHacks(outputCSS);\n\t\t\tfilesizeKB = kiloByteLength(outputCSS);\n\t\t}\n\n\t\tsummary.stats.after.totalFileSizeKB += filesizeKB;\n\t\tsummary.stats.summary.savingsKB = roundTo(summary.stats.before.totalFileSizeKB - summary.stats.after.totalFileSizeKB, 4);\n\t\tsummary.stats.summary.savingsPercentage = roundTo(summary.stats.summary.savingsKB / summary.stats.before.totalFileSizeKB * 100, 2);\n\n\t\t//write report\n\t\tif (OPTIONS.generate_report) {\n\n\t\t\ttry {\n\t\t\t\tvar cssdata = JSON.stringify(summary, null, '\\t');\n\t\t\t\twrite(REPORT_DUPLICATE_CSS, JSON.stringify(summary, null, '\\t'));\n\t\t\t} catch(e) {\n\t\t\t\tconsole.log(error(\"Report output file error: Something went wrong while writing the file, check your folder permissions, config_css.json and please try again.\"));\n\t\t\t\tconsole.log(e);\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\t\t}\n\n\t\tif (OPTIONS.verbose) {\n\n\t\t\tconsole.log(cool('Before: ' + summary.stats.before.totalFileSizeKB + 'KB'));\n\t\t\tconsole.log(cool('After: ' + summary.stats.after.totalFileSizeKB + 'KB'));\n\t\t\tconsole.log(cool('Saved: ' + summary.stats.summary.savingsKB + 'KB (' + summary.stats.summary.savingsPercentage + '%)'));\n\n\t\t\tconsole.timeEnd(logoRed(\"Purged \" + timeLabel + \" in \"));\n\t\t}\n\n\t\tif (OPTIONS.css_output === null || OPTIONS.css_output === undefined || OPTIONS.css_output == '') {\n\t\t\treturn outputCSS;\n\t\t} else {\n\n\t\t\t// console.log(OPTIONS.css_output);\n\t\t\t\n\t\t}\n\t}\n\n\n\tfunction processCSS(cssDataIn = null, optionsIn = null, callback = function(error, result){}) {\n\n\t\t\n\t\t\n\t\tvar continueCSSProcess = function(){\n\n\t\t\tCPEVENTS.removeListener('CONFIG_READ_REDUCE_PROPS_END', continueCSSProcess);\n\n\t\t\t\n\t\t\tvar cssData = dataCSSIn.join(\"\");\n\n\t\t\tif (cssDataIn !== null && cssDataIn !== undefined) {\n\t\t\t\tcssData = cssDataIn;\n\n\t\t\t\tfilesizeKB = kiloByteLength(cssDataIn);\n\n\t\t\t\tstats.before.totalFileSizeKB += filesizeKB;\n\t\t\t}\n\n\t\t\tif (optionsIn !== null && optionsIn !== undefined) {\n\n\t\t\t\tfor (key in optionsIn) {\n\n\t\t\t\t\tOPTIONS[key] = optionsIn[key];\t\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (OPTIONS.verbose) { \n\n\t\t\t\ttimeLabel = Date();\n\n\t\t\t\tif (OPTIONS.css_output !== undefined && OPTIONS.css_output != '') {\n\t\t\t\t\ttimeLabel = OPTIONS.css_output;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconsole.time(logoRed(\"Purged \" + timeLabel + \" in \")); \n\t\t\t}\n\n\t\t\tif (OPTIONS.verbose) { console.log(info('Process - CSS')); }\n\n\t\t\tvar duplicates = [];\n\n\t\t\t//tokens - allow multi-keyframe selectors\n\t\t\tcssData = cssData.replace(/(@(-?)[a-zA-Z\\-]*(keyframes)*\\s[a-zA-Z\\-]*(\\s*,?\\s*)){2,}/g, function(match){\n\t\t\t\ttoken7_vals.push(match.substr(0,match.length));\n\t\t\t\treturn '@keyframes _7token_'+token7_vals.length+'';\n\t\t\t});\n\n\t\t\t//tokens - data:image\n\t\t\tcssData = cssData.replace(/url\\(\\\"data:image\\/([a-zA-Z]*);base64,([^\\\"]*)\\\"\\)/g, function(match){\n\t\t\t\ttoken6_vals.push(match.substr(0,match.length));\n\t\t\t\treturn '_6token_dataimage_'+token6_vals.length+':';\n\t\t\t});\n\n\t\t\t//remove non-standard commented lines\n\t\t\tcssData = cssData.replace(/([^(:;,a-zA-Z0-9]|^)\\/\\/.*$/gm, function(match){\n\n\t\t\t\tstats.summary.noInlineCommentsTrimmed += 1;\n\n\t\t\t\tif (OPTIONS.trim_keep_non_standard_inline_comments && OPTIONS.trim_comments != true) {\n\t\t\t\t\treturn '/*' + match.substr(3, match.length) + ' */';\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\n\n\t\t\t///// hacks\n\t\t\t///**/\n\t\t\tcssData = cssData.replace(/\\/\\*\\*\\//gm, '_1token_hck');\n\t\t\t///*\\**/\n\t\t\tcssData = cssData.replace(/\\/\\*\\\\\\*\\*\\//gm, '_2token_hck');\n\t\t\t//(specialchar)property\n\t\t\tcssData = cssData.replace(/[\\!\\$\\&\\*\\(\\)\\=\\%\\+\\@\\,\\.\\/\\`\\[\\]\\#\\~\\?\\:\\<\\>\\|\\*\\/]{1}([\\-\\_\\.]?)([a-zA-Z0-9]+):((\\s\\S*?));/g, function(match){\n\t\t\t\ttoken3_chars.push(match.substr(0,match.length-1));\n\t\t\t\treturn '_3token_hck_'+token3_chars.length+':';\t\n\t\t\t});\n\t\t\t//(;\n\t\t\tcssData = cssData.replace(/(\\(;)([\\s\\S]*?)(\\})/g, function(match){\n\t\t\t\ttoken4_vals.push(match.substr(0,match.length));\n\t\t\t\treturn '_4token_hck_'+token4_vals.length+':}';\n\t\t\t});\n\t\t\t//[;\n\t\t\tcssData = cssData.replace(/(\\[;)([\\s\\S]*?)(\\})/g, function(match){\n\t\t\t\ttoken5_vals.push(match.substr(0,match.length));\n\t\t\t\treturn '_5token_hck_'+token5_vals.length+':}';\n\t\t\t});\n\t\t\t////end of hacks\n\n\t\t\t//tokens - replace side comments\n\t\t\tif (OPTIONS.trim_comments != true) {\n\t\t\t\tcssData = cssData.replace(/[;]([^\\n][\\s]*?)\\/\\*([\\s\\S]*?)\\*\\//gm, function(match){\n\n\t\t\t\t\ttokens_comments['_cssp_sc' + (Object.keys(tokens_comments).length+1)] = match.substr(1, match.length);\n\t\t\t\t\treturn '; /*_cssp_sc' + Object.keys(tokens_comments).length + '*/'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t\n\t\t\ttry {\n\t\t\t\tvar ast = css.parse(cssData, { source: fileLocation });\n\t\t\t} catch(err) {\n\t\t\t\tconsole.log(error(\"CSS Parser Error: probably have something funny in your CSS, change it then please try again.\"));\n\t\t\t\tconsole.log('Reason: ' + err.reason);\n\t\t\t\tconsole.log('Line: ' + err.line);\n\t\t\t\tconsole.log('Column: ' + err.column);\n\t\t\t\tconsole.log('Filename: ' + err.filename);\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t\t\n\t\t\tvar rulesIn = ast.stylesheet.rules;\n\t\t\tvar parsingErrorsIn = ast.stylesheet.parsingErrors;\n\n\t\t\t//stats\n\t\t\tvar rulesTotalCount = rulesIn.length;\n\t\t\tvar noParsingErrors = parsingErrorsIn.length;\n\n\n\t\t\tvar fRules = rulesIn;\n\t\t\tvar fRulesCount = fRules.length;\n\n\t\t\tvar declarations = null;\n\n\n\t\t\tstats.before.noNodes = fRulesCount;\n\n\t\t\tsummary.stats = stats;\n\n\t\t\t//before\n\t\t\tfor (i = 0; i < fRulesCount; ++i) {\n\n\t\t\t\tif (fRules[i] !== undefined) {\n\n\t\t\t\t\tif (fRules[i].declarations !== undefined) {\n\n\t\t\t\t\t\tdCount = fRules[i].declarations.length;\n\n\t\t\t\t\t\tfor (j = 0; j < dCount; ++j) {\n\t\t\t\t\t\t\tif (fRules[i].declarations[j].type == 'comment') {\n\n\t\t\t\t\t\t\t\tsummary.stats.before.noComments += 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (fRules[i].type == 'comment') {\n\n\t\t\t\t\t\tsummary.stats.before.noComments += 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (fRules[i].type == 'rule') {\n\n\t\t\t\t\t\tsummary.stats.before.noRules += 1;\n\n\t\t\t\t\t\tsummary.stats.before.noDeclarations += fRules[i].declarations.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch(fRules[i].type) {\n\t\t\t\t\t\tcase 'charset': summary.stats.before.noCharset += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'custom-media': summary.stats.before.noCustomMedia += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'document': summary.stats.before.noDocument += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'font-face': summary.stats.before.noFontFace += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'host': summary.stats.before.noHost += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'import': summary.stats.before.noImport += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'keyframes': summary.stats.before.noKeyframes += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'keyframe': summary.stats.before.noKeyframe += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'media': summary.stats.before.noMedia += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'namespace': summary.stats.before.noNamespace += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'page': summary.stats.before.noPage += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'supports': summary.stats.before.noSupports += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} //end of before count\n\n\n\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - Base')); }\n\t\t\tvar declarationsNameCounts = [];\n\t\t\tvar declarationsValueCounts = [];\n\t\t\tvar valKey = '';\n\t\t\tvar key = null;\n\t\t\tvar declarationsValueCountsCount = null;\n\t\t\tvar amountRemoved = 1;\n\t\t\tvar duplicate_ids = null;\n\t\t\tvar selectorPropertiesList = [];\n\t\t\tprocessRules(fRules);\n\t\t\tprocessRulesReset();\n\n\t\t\tfor (g = 0; g < fRulesCount; ++g) {\n\n\t\t\t\tif (fRules[g] !== undefined) {\n\t\t\t\t\t// console.log(g, fRulesCount)\n\t\t\t\t\t//@media rules\n\t\t\t\t\tif (fRules[g] !== undefined \n\t\t\t\t\t\t&& fRules[g].type == 'media'\n\t\t\t\t\t  // && OPTIONS.bypass_media_rules == false\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - @media ' + (fRules[g].media ? fRules[g].media : ''))); }\n\t\t\t\t\t\tprocessRules(fRules[g].rules);\n\t\t\t\t\t\tprocessRulesReset();\n\t\t\t\t\t\tprocessValues(fRules[g].rules);\n\t\t\t\t\t}\n\n\t\t\t\t\t//@document rules\n\t\t\t\t\tif (fRules[g] !== undefined \n\t\t\t\t\t\t&& fRules[g].type == 'document'\n\t\t\t\t\t\t&& OPTIONS.bypass_document_rules == false\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - @document ' + (fRules[g].document ? fRules[g].document : ''))); }\n\t\t\t\t\t\tprocessRules(fRules[g].rules);\n\t\t\t\t\t\tprocessRulesReset();\n\t\t\t\t\t\tprocessValues(fRules[g].rules);\n\t\t\t\t\t}\n\n\t\t\t\t\t//@supports rules\n\t\t\t\t\tif (fRules[g] !== undefined \n\t\t\t\t\t\t&& fRules[g].type == 'supports'\n\t\t\t\t\t\t&& OPTIONS.bypass_supports_rules == false\n\t\t\t\t\t) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Rules - @supports ' + (fRules[g].supports ? fRules[g].supports : ''))); }\n\t\t\t\t\t\tprocessRules(fRules[g].rules);\n\t\t\t\t\t\tprocessRulesReset();\n\t\t\t\t\t\tprocessValues(fRules[g].rules);\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\t////charset\n\t\t\t\t\tif (fRules[g] !== undefined \n\t\t\t\t\t\t&& fRules[g].type == 'charset'\n\t\t\t\t\t\t&& OPTIONS.bypass_charset == false\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - Charset')); }\n\n\t\t\t\t\t\tcharset = fRules[g].charset;\n\t\t\t\t\t\tcCount = fRules.length;\n\n\t\t\t\t\t\tfor (h = g+1; h < cCount; ++h) {\n\n\t\t\t\t\t\t\tif (fRules[h] !== undefined) {\n\t\t\t\t\t\t\t\tcharset2 = fRules[h].charset;\n\n\t\t\t\t\t\t\t\tif (charset == charset2) {\n\n\t\t\t\t\t\t\t\t\t//remove charset\n\t\t\t\t\t\t\t\t\tif (fRules[h] !== undefined && fRules[h].type == 'charset') {\n\n\t\t\t\t\t\t\t\t\t\tfRules.splice(h, 1);\n\t\t\t\t\t\t\t\t\t\tg-=1;\n\t\t\t\t\t\t\t\t\t\th-=1;\n\t\t\t\t\t\t\t\t\t\tcCount-=1;\n\t\t\t\t\t\t\t\t\t\tfRulesCount-=1;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//remove side comment\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tfRules[h+1] !== undefined\n\t\t\t\t\t\t\t\t\t\t\t&& fRules[h+1].type == 'comment'\n\t\t\t\t\t\t\t\t\t\t\t&& fRules[h+1].comment.indexOf('_cssp_sc') != -1\n\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t// console.log('hi')\n\t\t\t\t\t\t\t\t\t\t\t// console.log(fRules[h+1])\n\t\t\t\t\t\t\t\t\t\t\tfRules.splice((h+1), 1);\n\t\t\t\t\t\t\t\t\t\t\tg-=1;\n\t\t\t\t\t\t\t\t\t\t\t// h-=1;\n\t\t\t\t\t\t\t\t\t\t\t// cCount-=1;\n\t\t\t\t\t\t\t\t\t\t\tfRulesCount-=1;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // end of h\n\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tcharset.substr(0, 1) != '\"'\n\t\t\t\t\t\t\t|| charset.substr(charset.length-1, charset.length) != '\"'\n\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t//remove charset\n\t\t\t\t\t\t\tif (fRules[g] !== undefined && fRules[g].type == 'charset') {\n\n\t\t\t\t\t\t\t\tfRules.splice(g, 1);\n\t\t\t\t\t\t\t\tg-=1;\n\t\t\t\t\t\t\t\tfRulesCount-=1;\n\n\t\t\t\t\t\t\t\t//remove side comment\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\tfRules[g+1] !== undefined\n\t\t\t\t\t\t\t\t\t&& fRules[g+1].type == 'comment'\n\t\t\t\t\t\t\t\t\t&& fRules[g+1].comment.indexOf('_cssp_sc') != -1\n\t\t\t\t\t\t\t\t) {\n\n\t\t\t\t\t\t\t\t\tfRules.splice((g+1), 1);\n\t\t\t\t\t\t\t\t\tg-=1;\n\t\t\t\t\t\t\t\t\tfRulesCount-=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\t////end of charset\n\n\n\t\t\t\t} //end of undefined\n\t\t\t} //end of for loop\n\n\t\t\t//rems - html check\n\t\t\tif (OPTIONS.special_convert_rem) {\n\t\t\t\tvar hasHTML = false;\n\t\t\t\tvar htmlHasFontSize = false;\n\t\t\t\tvar tmpRulesCount = fRules.length;\n\t\t\t\tfor (i = 0; i < tmpRulesCount; ++i) {\n\n\t\t\t\t\tif (fRules[i] !== undefined \n\t\t\t\t\t\t&& fRules[i].selectors !== undefined \n\t\t\t\t\t\t&& fRules[i].selectors.toString().indexOf('html') != -1) {\n\n\t\t\t\t\t\thasHTML = true;\n\t\t\t\t\t\tfor (j = 0; j < fRules[i].declarations.length; ++j) {\n\n\t\t\t\t\t\t\tif (fRules[i].declarations !== undefined) {\n\n\t\t\t\t\t\t\t\tif (fRules[i].declarations[j].property == 'font-size') {\n\t\t\t\t\t\t\t\t\thtmlHasFontSize = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (htmlHasFontSize == false) { //create font-size\n\n\t\t\t\t\t\t\tfRules[i].declarations.unshift({\n\t\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\t\tproperty: 'font-size',\n\t\t\t\t\t\t\t\tvalue: ((parseInt(OPTIONS.special_convert_rem_desired_html_px) / parseInt(OPTIONS.special_convert_rem_browser_default_px)) * 100) + \"%\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t//move to top\n\t\t\t\t\t\ttmpVal = fRules[i];\n\t\t\t\t\t\tfRules.splice(i, 1);\n\t\t\t\t\t\tfRules.unshift(tmpVal);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t} //end of for\n\n\t\t\t\tif (hasHTML == false) { //create html with font-size\n\n\t\t\t\t\tfRules.unshift({\n\t\t\t\t\t\ttype: 'rule',\n\t\t\t\t\t\tselectors: ['html'],\n\t\t\t\t\t\tdeclarations: [{\n\t\t\t\t\t\t\ttype: 'declaration',\n\t\t\t\t\t\t\tproperty: 'font-size',\n\t\t\t\t\t\t\tvalue: ((parseInt(OPTIONS.special_convert_rem_desired_html_px) / parseInt(OPTIONS.special_convert_rem_browser_default_px)) * 100) + \"%\"\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t} // end of rems - html check\n\t\t\t\n\t\t\tprocessValues(fRules);\n\n\n\n\t\t\t////charset first check\n\t\t\tif (\n\t\t\t\tfRules[0] !== undefined\n\t\t\t\t&& fRules[1] !== undefined\n\t\t\t\t&& fRules[0].type == 'comment'\n\t\t\t\t&& fRules[1].type == 'charset'\n\t\t\t\t&& OPTIONS.bypass_charset == false\n\t\t\t) {\n\n\t\t\t\tfRules.splice(0, 1);\n\t\t\t}\n\t\t\t////end of charset first check\n\n\n\n\t\t\t\n\n\n\n\n\n\n\n\n\t\t\t//after\n\t\t\tstats.after.noNodes = fRules.length;\n\t\t\tfor (i = 0; i < fRulesCount; ++i) {\n\n\t\t\t\tif (fRules[i] !== undefined) {\n\n\t\t\t\t\tif (fRules[i].declarations !== undefined) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tdCount = fRules[i].declarations.length;\n\n\t\t\t\t\t\tfor (j = 0; j < dCount; ++j) {\n\t\t\t\t\t\t\tif (fRules[i].declarations[j].type == 'comment') {\n\n\t\t\t\t\t\t\t\tsummary.stats.after.noComments += 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (fRules[i].type == 'comment') {\n\n\t\t\t\t\t\tsummary.stats.after.noComments += 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (fRules[i].type == 'rule') {\n\n\t\t\t\t\t\tsummary.stats.after.noRules += 1;\n\n\t\t\t\t\t\tsummary.stats.after.noDeclarations += fRules[i].declarations.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch(fRules[i].type) {\n\t\t\t\t\t\tcase 'charset': summary.stats.after.noCharset += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'custom-media': summary.stats.after.noCustomMedia += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'document': summary.stats.after.noDocument += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'font-face': summary.stats.after.noFontFace += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'host': summary.stats.after.noHost += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'import': summary.stats.after.noImport += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'keyframes': summary.stats.after.noKeyframes += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'keyframe': summary.stats.after.noKeyframe += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'media': summary.stats.after.noMedia += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'namespace': summary.stats.after.noNamespace += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'page': summary.stats.after.noPage += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'supports': summary.stats.after.noSupports += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} //end of after count\n\n\n\t\t\t//calc reductions\n\n\t\t\tsummary.stats.summary.noReductions.noNodes = summary.stats.before.noNodes - summary.stats.after.noNodes;\n\t\t\tsummary.stats.summary.noReductions.noRules = summary.stats.before.noRules - summary.stats.after.noRules;\n\t\t\tsummary.stats.summary.noReductions.noDeclarations = summary.stats.before.noDeclarations - summary.stats.after.noDeclarations;\n\t\t\tsummary.stats.summary.noReductions.noComments = summary.stats.before.noComments - summary.stats.after.noComments;\n\t\t\tsummary.stats.summary.noReductions.noCharset = summary.stats.before.noCharset - summary.stats.after.noCharset;\n\t\t\tsummary.stats.summary.noReductions.noCustomMedia = summary.stats.before.noCustomMedia - summary.stats.after.noCustomMedia;\n\t\t\tsummary.stats.summary.noReductions.noDocument = summary.stats.before.noDocument - summary.stats.after.noDocument;\n\t\t\tsummary.stats.summary.noReductions.noFontFace = summary.stats.before.noFontFace - summary.stats.after.noFontFace;\n\t\t\tsummary.stats.summary.noReductions.noHost = summary.stats.before.noHost - summary.stats.after.noHost;\n\t\t\tsummary.stats.summary.noReductions.noImport = summary.stats.before.noImport - summary.stats.after.noImport;\n\t\t\tsummary.stats.summary.noReductions.noKeyframes = summary.stats.before.noKeyframes - summary.stats.after.noKeyframes;\n\t\t\tsummary.stats.summary.noReductions.noKeyframe = summary.stats.before.noKeyframe - summary.stats.after.noKeyframe;\n\t\t\tsummary.stats.summary.noReductions.noMedia = summary.stats.before.noMedia - summary.stats.after.noMedia;\n\t\t\tsummary.stats.summary.noReductions.noNamespace = summary.stats.before.noNamespace - summary.stats.after.noNamespace;\n\t\t\tsummary.stats.summary.noReductions.noPage = summary.stats.before.noPage - summary.stats.after.noPage;\n\t\t\tsummary.stats.summary.noReductions.noSupports = summary.stats.before.noSupports - summary.stats.after.noSupports;\n\n\n\t\t\t//prepare output\n\t\t\tvar outputAST = {\n\t\t\t\ttype: 'stylesheet',\n\t\t\t\tstylesheet: {\n\t\t\t\t\trules: fRules\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar outputCSS = css.stringify(outputAST);\n\n\n\n\n\t\t\t//Detect via JS\n\n\n\n\t\t\t//Detect via HTML\n\t\t\tif (OPTIONS.special_reduce_with_html && (OPTIONS.html !== undefined && OPTIONS.html !== '')) {\n\n\t\t\t\tif (OPTIONS.verbose) { console.log(info('Process - HTML')); }\n\n\t\t\t\tvar ast = css.parse(outputCSS, { source: fileLocation });\n\t\t\t\t\n\t\t\t\tvar rulesIn = ast.stylesheet.rules;\n\n\t\t\t\tvar selectors = [], rulesCount2 = 0, rulesCount3 = 0, rulesCount4 = 0;\n\t\t\t\tvar ignoreFound = false;\n\t\t\t\tfor (i = 0, rulesCount = rulesIn.length; i < rulesCount; ++i) {\n\n\t\t\t\t\tif (rulesIn[i] !== undefined) {\n\t\t\t\t\t\tswitch(rulesIn[i].type) {\n\t\t\t\t\t\t\tcase 'rule': \n\n\t\t\t\t\t\t\t\tignoreFound = false;\n\n\t\t\t\t\t\t\t\tfor (j = 0, rulesCount2 = OPTIONS.special_reduce_with_html_ignore_selectors.length; j < rulesCount2; ++j) {\n\n\t\t\t\t\t\t\t\t\tif (rulesIn[i].selectors && rulesIn[i].selectors.join(\",\").indexOf(OPTIONS.special_reduce_with_html_ignore_selectors[j]) != -1) {\n\t\t\t\t\t\t\t\t\t\tignoreFound = true;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (ignoreFound == false) {\n\t\t\t\t\t\t\t\t\tfor (j = 0, rulesCount2 = rulesIn[i].selectors.length; j < rulesCount2; ++j) {\n\t\t\t\t\t\t\t\t\t\tselectors.push(rulesIn[i].selectors[j]);\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'media': \n\n\t\t\t\t\t\t\t\tfor (j = 0, rulesCount2 = rulesIn[i].rules.length; j < rulesCount2; ++j) {\n\n\t\t\t\t\t\t\t\t\tignoreFound = false;\n\n\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = OPTIONS.special_reduce_with_html_ignore_selectors.length; k < rulesCount3; ++k) {\n\n\t\t\t\t\t\t\t\t\t\tif (rulesIn[i].rules[j].selectors && rulesIn[i].rules[j].selectors.join(\",\").indexOf(OPTIONS.special_reduce_with_html_ignore_selectors[k]) != -1) {\n\t\t\t\t\t\t\t\t\t\t\tignoreFound = true;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (ignoreFound == false) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = rulesIn[i].rules[j].selectors.length; k < rulesCount3; ++k) {\n\t\t\t\t\t\t\t\t\t\t\tselectors.push(rulesIn[i].rules[j].selectors[k]);\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'document': \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (j = 0, rulesCount2 = rulesIn[i].rules.length; j < rulesCount2; ++j) {\n\n\t\t\t\t\t\t\t\t\tignoreFound = false;\n\n\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = OPTIONS.special_reduce_with_html_ignore_selectors.length; k < rulesCount3; ++k) {\n\n\t\t\t\t\t\t\t\t\t\tif (rulesIn[i].rules[j].selectors && rulesIn[i].rules[j].selectors.join(\",\").indexOf(OPTIONS.special_reduce_with_html_ignore_selectors[k]) != -1) {\n\t\t\t\t\t\t\t\t\t\t\tignoreFound = true;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (ignoreFound == false) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = rulesIn[i].rules[j].selectors.length; k < rulesCount3; ++k) {\n\t\t\t\t\t\t\t\t\t\t\tselectors.push(rulesIn[i].rules[j].selectors[k]);\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'supports': \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (j = 0, rulesCount2 = rulesIn[i].rules.length; j < rulesCount2; ++j) {\n\n\t\t\t\t\t\t\t\t\tignoreFound = false;\n\n\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = OPTIONS.special_reduce_with_html_ignore_selectors.length; k < rulesCount3; ++k) {\n\n\t\t\t\t\t\t\t\t\t\tif (rulesIn[i].rules[j].selectors && rulesIn[i].rules[j].selectors.join(\",\").indexOf(OPTIONS.special_reduce_with_html_ignore_selectors[k]) != -1) {\n\t\t\t\t\t\t\t\t\t\t\tignoreFound = true;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (ignoreFound == false) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfor (k = 0, rulesCount3 = rulesIn[i].rules[j].selectors.length; k < rulesCount3; ++k) {\n\t\t\t\t\t\t\t\t\t\t\tselectors.push(rulesIn[i].rules[j].selectors[k]);\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'charset': \n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//remove duplicates\n\t\t\t\tselectors = Array.from(new Set(selectors));\n\n\t\t\t\t//process selectors returned from processing HTML\n\t\t\t\tCPEVENTS.on('HTML_RESULTS_END', function(htmlResults) {\n\n\t\t\t\t\tsummary.selectors_removed = htmlResults;\n\n\t\t\t\t\toutputCSS = processHTMLResults(rulesIn, selectors);\n\n\t\t\t\t\tcallback(null, completeOutput(outputCSS));\n\t\t\t\t});\n\n\t\t\t\tprocessHTML(selectors);\n\n\t\t\t} else { //end of special_reduce_with_html\n\t\t\t\tcallback(null, completeOutput(outputCSS));\n\t\t\t} //end of special_reduce_with_html\n\n\t\t};\n\n\t\tCPEVENTS.on('CONFIG_READ_REDUCE_PROPS_END', continueCSSProcess); //end of event\n\n\t\tif (cssDataIn == null) {\n\t\t\tCPEVENTS.emit('CONFIG_READ_REDUCE_PROPS_END');\n\t\t}\n\n\t\tif (!hasReadReduceDeclarations && optionsIn !== null && !fs.existsSync(OPTIONS.reduce_declarations_file_location)) {\n\n\t\t\tif (optionsIn !== null && (optionsIn['reduceConfig'] === undefined || optionsIn['reduceConfig'] === null)) {\n\n\t\t\t\t//default process settings\n\t\t\t\tvar default_reduce_declarations_config = {\n\t\t\t\t\t\"declaration_names\" : [\n\t\t\t\t\t\t\"font\",\n\t\t\t\t\t\t\"margin\",\n\t\t\t\t\t\t\"padding\",\n\t\t\t\t\t\t\"list-style\",\n\t\t\t\t\t\t\"outline\",\n\t\t\t\t\t\t\"border\",\n\t\t\t\t\t\t\"border-top\",\n\t\t\t\t\t\t\"border-right\",\n\t\t\t\t\t\t\"border-bottom\",\n\t\t\t\t\t\t\"border-left\",\n\t\t\t\t\t\t\"border-radius\",\n\t\t\t\t\t\t\"border-color\",\n\t\t\t\t\t\t\"border-top-color\",\n\t\t\t\t\t\t\"border-right-color\",\n\t\t\t\t\t\t\"border-bottom-color\",\n\t\t\t\t\t\t\"border-left-color\",\n\t\t\t\t\t\t\"color\",\n\t\t\t\t\t\t\"background-color\",\n\t\t\t\t\t\t\"font-color\",\n\t\t\t\t\t\t\"outline-color\",\n\t\t\t\t\t\t\"box-shadow\",\n\t\t\t\t\t\t\"text-shadow\",\n\t\t\t\t\t\t\"float\",\n\t\t\t\t\t\t\"font-family\",\n\t\t\t\t\t\t\"font-size\",\n\t\t\t\t\t\t\"font-weight\",\n\t\t\t\t\t\t\"font-style\",\n\t\t\t\t\t\t\"font-variant\",\n\t\t\t\t\t\t\"font-stretch\"\n\t\t\t\t\t]\n\t\t\t\t};\n\t\t\t\toptionsIn['reduceConfig'] = default_reduce_declarations_config;\n\t\t\t\treadReduceDeclarations(optionsIn['reduceConfig']);\n\t\t\t}\n\t\t} else if(!hasReadReduceDeclarations) {\n\t\t\t\n\t\t\treadReduceDeclarations();\n\t\t}\n\n\t} //end of processCSS\n\n\n\n\n\tthis.purgeCSS = function(cssDataIn, optionsIn, callback) {\n\t\tprocessCSS(cssDataIn, optionsIn, callback);\n\t}\n\n\tthis.purgeCSSFiles = function(optionsIn, configFileLocationIn) {\n\t\tprocessCSSFiles(optionsIn, configFileLocationIn)\n\t}\n} //end of CSSPurge\n\nvar purgeSessions = [];\n\nvar purgeTriage = {\n\tpurgeCSS: function(cssDataIn, optionsIn, callback){\n\n\t\t//new session\n\t\tvar cssPurge = new CSSPurge();\n\t\tpurgeSessions.push(cssPurge);\n\t\tcssPurge.purgeCSS(cssDataIn, optionsIn, callback);\n\t},\n\tpurgeCSSFiles: function(optionsIn, configFileLocationIn){\n\n\t\t//new session\n\t\tvar cssPurge = new CSSPurge();\n\t\tpurgeSessions.push(cssPurge);\n\t\tcssPurge.purgeCSSFiles(optionsIn, configFileLocationIn);\n\t}\n}\n\nmodule.exports = purgeTriage;\n"]}