{"ast":null,"code":"'use strict';\n\nexports.addon = function (renderer) {\n  var cache = {};\n\n  renderer.cache = function (css) {\n    if (!css) return '';\n    var key = renderer.hash(css);\n\n    if (!cache[key]) {\n      cache[key] = renderer.rule(css, key);\n    }\n\n    return cache[key];\n  };\n};","map":{"version":3,"sources":["C:/Users/pc/node_modules/nano-css/addon/cache.js"],"names":["exports","addon","renderer","cache","css","key","hash","rule"],"mappings":"AAAA;;AAEAA,OAAO,CAACC,KAAR,GAAgB,UAAUC,QAAV,EAAoB;AAChC,MAAIC,KAAK,GAAG,EAAZ;;AAEAD,EAAAA,QAAQ,CAACC,KAAT,GAAiB,UAAUC,GAAV,EAAe;AAC5B,QAAI,CAACA,GAAL,EAAU,OAAO,EAAP;AAEV,QAAIC,GAAG,GAAGH,QAAQ,CAACI,IAAT,CAAcF,GAAd,CAAV;;AAEA,QAAI,CAACD,KAAK,CAACE,GAAD,CAAV,EAAiB;AACbF,MAAAA,KAAK,CAACE,GAAD,CAAL,GAAaH,QAAQ,CAACK,IAAT,CAAcH,GAAd,EAAmBC,GAAnB,CAAb;AACH;;AAED,WAAOF,KAAK,CAACE,GAAD,CAAZ;AACH,GAVD;AAWH,CAdD","sourcesContent":["'use strict';\n\nexports.addon = function (renderer) {\n    var cache = {};\n\n    renderer.cache = function (css) {\n        if (!css) return '';\n\n        var key = renderer.hash(css);\n\n        if (!cache[key]) {\n            cache[key] = renderer.rule(css, key);\n        }\n\n        return cache[key];\n    };\n};\n"]},"metadata":{},"sourceType":"script"}