File Manager

Current Directory: /home/astoriaah/www/old15/plugins/system/t3/base-bs3/js
Viewing File: /home/astoriaah/www/old15/plugins/system/t3/base-bs3/js/less.js
!function(e,t){function n(t){return e.less[t.split("/")[1]]}function i(e,t){"undefined"!=typeof console&&C.logLevel>=t&&console.log("less: "+e)}function r(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function s(e,n){var r="{line} {content}",s=e.filename||n,o=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+s+" ",l=function(e,n,i){e.extract[n]!==t&&o.push(r.replace(/\{line\}/,(parseInt(e.line,10)||0)+(n-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[n]))};e.extract?(l(e,0,""),l(e,1,"line"),l(e,2,""),a+="on line "+e.line+", column "+(e.column+1)+":\n"+o.join("\n")):e.stack&&(a+=e.stack),i(a,R.errors)}function o(e,t,n){var s=t.href||"",o="less:"+(t.title||r(s)),a=document.getElementById(o),l=!1,u=document.createElement("style");if(u.setAttribute("type","text/css"),t.media&&u.setAttribute("media",t.media),u.id=o,u.styleSheet)try{u.styleSheet.cssText=e}catch(c){throw new Error("Couldn't reassign styleSheet.cssText.")}else u.appendChild(document.createTextNode(e)),l=null!==a&&a.childNodes.length>0&&u.childNodes.length>0&&a.firstChild.nodeValue===u.firstChild.nodeValue;var h=document.getElementsByTagName("head")[0];if(null===a||l===!1){var f=t&&t.nextSibling||null;f?f.parentNode.insertBefore(u,f):h.appendChild(u)}if(a&&l===!1&&a.parentNode.removeChild(a),n&&E){i("saving "+s+" to cache.",R.info);try{E.setItem(s,e),E.setItem(s+":timestamp",n)}catch(c){i("failed to save",R.errors)}}}function a(e){return C.postProcessor&&"function"==typeof C.postProcessor&&(e=C.postProcessor.call(e,e)||e),e}function l(e,n){var i,s,a="less-error-message:"+r(n||""),l='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',u=document.createElement("div"),c=[],h=e.filename||n,f=h.match(/([^\/]+(\?.*)?)$/)[1];u.id=a,u.className="less-error-message",s="<h3>"+(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+'</h3><p>in <a href="'+h+'">'+f+"</a> ";var p=function(e,n,i){e.extract[n]!==t&&c.push(l.replace(/\{line\}/,(parseInt(e.line,10)||0)+(n-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[n]))};e.extract?(p(e,0,""),p(e,1,"line"),p(e,2,""),s+="on line "+e.line+", column "+(e.column+1)+":</p><ul>"+c.join("")+"</ul>"):e.stack&&(s+="<br/>"+e.stack.split("\n").slice(1).join("<br/>")),u.innerHTML=s,o([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),u.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"==C.env&&(i=setInterval(function(){document.body&&(document.getElementById(a)?document.body.replaceChild(u,document.getElementById(a)):document.body.insertBefore(u,document.body.firstChild),clearInterval(i))},10))}function u(e,t){C.errorReporting&&"html"!==C.errorReporting?"console"===C.errorReporting?s(e,t):"function"==typeof C.errorReporting&&C.errorReporting("add",e,t):l(e,t)}function c(e){var t=document.getElementById("less-error-message:"+r(e));t&&t.parentNode.removeChild(t)}function h(){}function f(e){C.errorReporting&&"html"!==C.errorReporting?"console"===C.errorReporting?h(e):"function"==typeof C.errorReporting&&C.errorReporting("remove",e):c(e)}function p(e){for(var t,n=document.getElementsByTagName("style"),i=0;i<n.length;i++)if(t=n[i],t.type.match(M)){var r=new C.tree.parseEnv(C),s=t.innerHTML||"";r.filename=document.location.href.replace(/#.*$/,""),(e||C.globalVars)&&(r.useFileCache=!0);var o=function(e){return function(t,n){if(t)return u(t,"inline");var i=n.toCSS(C);e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.innerHTML=i}}(t);new C.Parser(r).parse(s,o,{globalVars:C.globalVars,modifyVars:e})}}function d(e,t){var n,i,r=/^((?:[a-z-]+:)?\/+?(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,s=e.match(r),o={},a=[];if(!s)throw new Error("Could not parse sheet href - '"+e+"'");if(!s[1]||s[2]){if(i=t.match(r),!i)throw new Error("Could not parse page url - '"+t+"'");s[1]=s[1]||i[1]||"",s[2]||(s[3]=i[3]+s[3])}if(s[3]){for(a=s[3].replace(/\\/g,"/").split("/"),n=0;n<a.length;n++)"."===a[n]&&(a.splice(n,1),n-=1);for(n=0;n<a.length;n++)".."===a[n]&&n>0&&(a.splice(n-1,2),n-=2)}return o.hostPart=s[1],o.directories=a,o.path=s[1]+a.join("/"),o.fileUrl=o.path+(s[4]||""),o.url=o.fileUrl+(s[5]||""),o}function m(e,t){var n,i,r,s,o=d(e),a=d(t),l="";if(o.hostPart!==a.hostPart)return"";for(i=Math.max(a.directories.length,o.directories.length),n=0;i>n&&a.directories[n]===o.directories[n];n++);for(s=a.directories.slice(n),r=o.directories.slice(n),n=0;n<s.length-1;n++)l+="../";for(n=0;n<r.length-1;n++)l+=r[n]+"/";return l}function g(){if(e.XMLHttpRequest&&("file:"!==e.location.protocol||!e.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){return i("browser doesn't support AJAX.",R.errors),null}}function y(t,n,r,s){function o(e,n,i,r){e.status>=200&&e.status<300?i(n.data,n.lastModified):"function"==typeof r&&r(e.status,t)}function a(e){return e=e.substring(0,-1==e.indexOf("#")?e.length:e.indexOf("#")),e=e.substring(0,-1==e.indexOf("?")?e.length:e.indexOf("?")),e=e.substring(e.lastIndexOf("/")+1,e.length)}function l(t,n){E.setItem(n+":less",t.responseText||"/*dummy*/");var i={data:t.responseText+"",lastModified:t.getResponseHeader?t.getResponseHeader("Last-Modified"):(new Date).toString()},r=a(n);e.T3Theme&&T3Theme.others[r]&&-1!=n.indexOf(T3Theme.template+"/less/")&&-1==n.indexOf("themes/"+T3Theme.theme+"/"+r)&&-1==n.indexOf("t3/base-bs3")&&(i.data=i.data+'\n@import "themes/'+T3Theme.theme+"/"+r+'";\n'),regex=/.*@import\s+\"(.*)vars\.less\".*/;var s=i.data.match(regex);if(!s)return i;i.lastModified+=1;var o=e.T3Theme?T3Theme.vars:!1,l="";if(o)for(v in o)o.hasOwnProperty(v)&&(l+="@"+v+": "+o[v]+";\n");if(o=e.T3Theme?T3Theme.svars:!1)for(v in o)o.hasOwnProperty(v)&&(l+="@"+v+": "+o[v]+";\n");return i.data=i.data.replace(regex,s[0]+"\n"+l+"\n"),i}var u=E?T3Theme.cache&&T3Theme.cache[t]||E.getItem(t+":less"):!1;if(u||"undefined"!=typeof T3Theme.cache[t])var c={responseText:u,status:200};else{var c=g(),h=k?C.fileAsync:C.async;"function"==typeof c.overrideMimeType&&c.overrideMimeType("text/css"),i("XHR: Getting '"+t+"'",R.debug),c.open("GET",t,h),c.setRequestHeader("Accept",n||"text/x-less, text/css; q=0.9, */*; q=0.5"),c.send(null)}if(k&&!C.fileAsync)if(0===c.status||c.status>=200&&c.status<300){var f=l(c,t);r(f.data)}else s(c.status,t);else if(h)c.onreadystatechange=function(){if(4==c.readyState){var e=l(c,t);o(c,e,r,s)}};else{var f=l(c,t);o(c,f,r,s)}}function S(t,n,i,r){n&&n.currentDirectory&&!/^([a-z-]+:)?\//.test(t)&&(t=n.currentDirectory+t);var s=d(t,e.location.href),o=s.url,a={currentDirectory:s.path,filename:o};if(n?(a.entryPath=n.entryPath,a.rootpath=n.rootpath,a.rootFilename=n.rootFilename,a.relativeUrls=n.relativeUrls):(a.entryPath=s.path,a.rootpath=C.rootpath||s.path,a.rootFilename=o,a.relativeUrls=r.relativeUrls),a.relativeUrls&&(a.rootpath=r.rootpath?d(r.rootpath+m(s.path,a.entryPath)).path:s.path),r.useFileCache&&_[o])try{var l=_[o];i(null,l,o,a,{lastModified:new Date})}catch(u){i(u,null,o)}else y(o,r.mime,function(e,t){_[o]=e;try{i(null,e,o,a,{lastModified:t})}catch(n){i(n,null,o)}},function(e,t){i({type:"File",message:"'"+t+"' wasn't found ("+e+")"},null,o)})}function b(e,t,n,i,r){var s=new C.tree.parseEnv(C);s.mime=e.type,(r||C.globalVars)&&(s.useFileCache=!0),S(e.href,null,function(a,l,u,c,h){if(h){h.remaining=i;var p=E&&E.getItem(u),d=E&&E.getItem(u+":timestamp");if(!n&&d&&h.lastModified&&new Date(h.lastModified).valueOf()===new Date(d).valueOf())return o(p,e),h.local=!0,void t(null,null,l,e,h,u)}f(u),l?(s.currentFileInfo=c,new C.Parser(s).parse(l,function(n,i){if(n)return t(n,null,null,e);try{t(n,i,l,e,h,u)}catch(n){t(n,null,null,e)}},{modifyVars:r,globalVars:C.globalVars})):t(a,null,null,e,h,u)},s,r)}function w(e,t,n){for(var i=0;i<C.sheets.length;i++)!function(i){setTimeout(function(){b(C.sheets[i],e,t,C.sheets.length-(i+1),n)},0)}(i)}function x(){"development"===C.env?(C.optimization=0,C.watchTimer=setInterval(function(){C.watchMode&&w(function(e,t,n,i,r){if(e)u(e,i.href);else if(t){var s=t.toCSS(C);s=a(s),o(s,i,r.lastModified)}})},C.poll)):C.optimization=3}("undefined"==typeof e.less||"undefined"!=typeof e.less.nodeType)&&(e.less={}),C=e.less,I=e.less.tree={},C.mode="browser";var C,I;C===t&&(C=exports,I=n("./tree"),C.mode="node"),C.Parser=function(e){function i(){M=x,D.push({current:A,i:x,j:k})}function r(){var e=D.pop();A=e.current,M=x=e.i,k=e.j}function s(){D.pop()}function o(){x>M&&(A=A.slice(x-M),M=x)}function a(e,t){var n=e.charCodeAt(0|t);return 32>=n&&(32===n||10===n||9===n)}function l(e){var t,n,i=typeof e;return"string"===i?w.charAt(x)!==e?null:(h(1),e):(o(),(t=e.exec(A))?(n=t[0].length,h(n),"string"==typeof t?t:1===t.length?t[0]:t):null)}function u(e){x>M&&(A=A.slice(x-M),M=x);var t=e.exec(A);return t?(h(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null}function c(e){return w.charAt(x)!==e?null:(h(1),e)}function h(e){for(var t,n=x,i=k,r=x-M,s=x+A.length-r,o=x+=e,a=w;s>x&&(t=a.charCodeAt(x),!(t>32))&&(32===t||10===t||9===t||13===t);x++);return A=A.slice(e+x-o+r),M=x,!A.length&&k<F.length-1?(A=F[++k],h(0),!0):n!==x||i!==k}function f(e,t){var n="[object Function]"===Object.prototype.toString.call(e)?e.call(_):l(e);return n?n:void d(t||("string"==typeof e?"expected '"+e+"' got '"+w.charAt(x)+"'":"unexpected token"))}function p(e,t){return w.charAt(x)===e?(h(1),e):void d(t||"expected '"+e+"' got '"+w.charAt(x)+"'")}function d(e,t){var n=new Error(e);throw n.index=x,n.type=t||"Syntax",n}function m(e){return"string"==typeof e?w.charAt(x)===e:e.test(A)}function v(e){return w.charAt(x)===e}function g(e,t){return e.filename&&t.currentFileInfo.filename&&e.filename!==t.currentFileInfo.filename?E.imports.contents[e.filename]:w}function y(e,t){for(var n=e+1,i=null,r=-1;--n>=0&&"\n"!==t.charAt(n);)r++;return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:r}}function S(e,t,i){var r=i.currentFileInfo.filename;return"browser"!==C.mode&&"rhino"!==C.mode&&(r=n("path").resolve(r)),{lineNumber:y(e,t).line+1,fileName:r}}function b(e,t){var n=g(e,t),i=y(e.index,n),r=i.line,s=i.column,o=e.call&&y(e.call,n).line,a=n.split("\n");this.type=e.type||"Syntax",this.message=e.message,this.filename=e.filename||t.currentFileInfo.filename,this.index=e.index,this.line="number"==typeof r?r+1:null,this.callLine=o+1,this.callExtract=a[o],this.stack=e.stack,this.column=s,this.extract=[a[r-1],a[r],a[r+1]]}var w,x,k,R,F,A,M,E,_,D=[],O=e&&e.filename;e instanceof I.parseEnv||(e=new I.parseEnv(e));var P=this.imports={paths:e.paths||[],queue:[],files:e.files,contents:e.contents,contentsIgnoredChars:e.contentsIgnoredChars,mime:e.mime,error:null,push:function(t,n,i,r){var s=this;this.queue.push(t);var o=function(e,n,i){s.queue.splice(s.queue.indexOf(t),1);var o=i===O;s.files[i]=n,e&&!s.error&&(s.error=e),r(e,n,o,i)};C.Parser.importer?C.Parser.importer(t,n,o,e):C.Parser.fileLoader(t,n,function(t,r,s,a){if(t)return void o(t);var l=new I.parseEnv(e);l.currentFileInfo=a,l.processImports=!1,l.contents[s]=r,(n.reference||i.reference)&&(a.reference=!0),i.inline?o(null,r,s):new C.Parser(l).parse(r,function(e,t){o(e,t,s)})},e)}},L=u;return b.prototype=new Error,b.prototype.constructor=b,this.env=e=e||{},this.optimization="optimization"in this.env?this.env.optimization:1,E={imports:P,parse:function(i,r,s){var o,a,l,u,c,h=null,f="";if(x=k=M=R=0,u=s&&s.globalVars?C.Parser.serializeVars(s.globalVars)+"\n":"",c=s&&s.modifyVars?"\n"+C.Parser.serializeVars(s.modifyVars):"",(u||s&&s.banner)&&(f=(s&&s.banner?s.banner:"")+u,E.imports.contentsIgnoredChars[e.currentFileInfo.filename]=f.length),i=i.replace(/\r\n/g,"\n"),w=i=f+i.replace(/^/,"")+c,E.imports.contents[e.currentFileInfo.filename]=i,F=function(t){function n(t,n){h=new b({index:n||l,type:"Parse",message:t,filename:e.currentFileInfo.filename},e)}function i(e){var n=l-y;512>n&&!e||!n||(g.push(t.slice(y,l+1)),y=l+1)}var r,s,o,a,l,u,c,f,p,d=t.length,m=0,v=0,g=[],y=0;for(l=0;d>l;l++)if(c=t.charCodeAt(l),!(c>=97&&122>=c||34>c))switch(c){case 40:v++,s=l;continue;case 41:if(--v<0)return n("missing opening `(`");continue;case 59:v||i();continue;case 123:m++,r=l;continue;case 125:if(--m<0)return n("missing opening `{`");m||v||i();continue;case 92:if(d-1>l){l++;continue}return n("unescaped `\\`");case 34:case 39:case 96:for(p=0,u=l,l+=1;d>l;l++)if(f=t.charCodeAt(l),!(f>96)){if(f==c){p=1;break}if(92==f){if(l==d-1)return n("unescaped `\\`");l++}}if(p)continue;return n("unmatched `"+String.fromCharCode(c)+"`",u);case 47:if(v||l==d-1)continue;if(f=t.charCodeAt(l+1),47==f)for(l+=2;d>l&&(f=t.charCodeAt(l),!(13>=f)||10!=f&&13!=f);l++);else if(42==f){for(o=u=l,l+=2;d-1>l&&(f=t.charCodeAt(l),125==f&&(a=l),42!=f||47!=t.charCodeAt(l+1));l++);if(l==d-1)return n("missing closing `*/`",u);l++}continue;case 42:if(d-1>l&&47==t.charCodeAt(l+1))return n("unmatched `/*`");continue}return 0!==m?o>r&&a>o?n("missing closing `}` or `*/`",r):n("missing closing `}`",r):0!==v?n("missing closing `)`",s):(i(!0),g)}(i),h)return r(new b(h,e));A=F[0];try{o=new I.Ruleset(null,this.parsers.primary()),o.root=!0,o.firstRoot=!0}catch(p){return r(new b(p,e))}if(o.toCSS=function(i){return function(r,s){r=r||{};var o,a,l=new I.evalEnv(r);"object"!=typeof s||Array.isArray(s)||(s=Object.keys(s).map(function(e){var t=s[e];return t instanceof I.Value||(t instanceof I.Expression||(t=new I.Expression([t])),t=new I.Value([t])),new I.Rule("@"+e,t,!1,null,0)}),l.frames=[new I.Ruleset(null,s)]);try{var u,c=[],h=[new I.joinSelectorVisitor,new I.processExtendsVisitor,new I.toCSSVisitor({compress:Boolean(r.compress)})],f=this;if(r.plugins)for(u=0;u<r.plugins.length;u++)r.plugins[u].isPreEvalVisitor?c.push(r.plugins[u]):r.plugins[u].isPreVisitor?h.splice(0,0,r.plugins[u]):h.push(r.plugins[u]);for(u=0;u<c.length;u++)c[u].run(f);for(o=i.call(f,l),u=0;u<h.length;u++)h[u].run(o);r.sourceMap&&(o=new I.sourceMapOutput({contentsIgnoredCharsMap:E.imports.contentsIgnoredChars,writeSourceMap:r.writeSourceMap,rootNode:o,contentsMap:E.imports.contents,sourceMapFilename:r.sourceMapFilename,sourceMapURL:r.sourceMapURL,outputFilename:r.sourceMapOutputFilename,sourceMapBasepath:r.sourceMapBasepath,sourceMapRootpath:r.sourceMapRootpath,outputSourceFiles:r.outputSourceFiles,sourceMapGenerator:r.sourceMapGenerator})),a=o.toCSS({compress:Boolean(r.compress),dumpLineNumbers:e.dumpLineNumbers,strictUnits:Boolean(r.strictUnits),numPrecision:8})}catch(p){throw new b(p,e)}if(r.cleancss&&"node"===C.mode){var d=n("clean-css"),m=r.cleancssOptions||{};return m.keepSpecialComments===t&&(m.keepSpecialComments="*"),m.processImport=!1,m.noRebase=!0,m.noAdvanced===t&&(m.noAdvanced=!0),new d(m).minify(a)}return r.compress?a.replace(/(^(\s)+)|((\s)+$)/g,""):a}}(o.eval),x<w.length-1){x=R;var d=y(x,w);l=w.split("\n"),a=d.line+1,h={type:"Parse",message:"Unrecognised input",index:x,filename:e.currentFileInfo.filename,line:a,column:d.column,extract:[l[a-2],l[a-1],l[a]]}}var m=function(t){return t=h||t||E.imports.error,t?(t instanceof b||(t=new b(t,e)),r(t)):r(null,o)};return e.processImports===!1?m():void new I.importVisitor(this.imports,m).run(o)},parsers:_={primary:function(){for(var e,t=this.mixin,n=L,i=[];A;){if(e=this.extendRule()||t.definition()||this.rule()||this.ruleset()||t.call()||this.comment()||this.rulesetCall()||this.directive())i.push(e);else if(!n(/^[\s\n]+/)&&!n(/^;+/))break;if(v("}"))break}return i},comment:function(){var t;if("/"===w.charAt(x))return"/"===w.charAt(x+1)?new I.Comment(u(/^\/\/.*/),!0,x,e.currentFileInfo):(t=u(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/),t?new I.Comment(t,!1,x,e.currentFileInfo):void 0)},comments:function(){for(var e,t=[];;){if(e=this.comment(),!e)break;t.push(e)}return t},entities:{quoted:function(){var t,n,i=x,r=x;return"~"===w.charAt(i)&&(i++,n=!0),'"'===w.charAt(i)||"'"===w.charAt(i)?(n&&c("~"),t=u(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/),t?new I.Quoted(t[0],t[1]||t[2],n,r,e.currentFileInfo):void 0):void 0},keyword:function(){var e;if(e=u(/^%|^[_A-Za-z-][_A-Za-z0-9-]*/)){var t=I.Color.fromKeyword(e);return t?t:new I.Keyword(e)}},call:function(){var t,n,i,r,s=x;if(t=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(A)){if(t=t[1],n=t.toLowerCase(),"url"===n)return null;if(x+=t.length,"alpha"===n&&(r=_.alpha(),"undefined"!=typeof r))return r;if(c("("),i=this.arguments(),c(")"))return t?new I.Call(t,i,s,e.currentFileInfo):void 0}},arguments:function(){for(var e,t=[];;){if(e=this.assignment()||_.expression(),!e)break;if(t.push(e),!c(","))break}return t},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;return e=u(/^\w+(?=\s?=)/i),e&&c("=")?(t=_.entity(),t?new I.Assignment(e,t):void 0):void 0},url:function(){var t;if("u"===w.charAt(x)&&u(/^url\(/))return t=this.quoted()||this.variable()||u(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",p(")"),new I.URL(null!=t.value||t instanceof I.Variable?t:new I.Anonymous(t),e.currentFileInfo)},variable:function(){var t,n=x;return"@"===w.charAt(x)&&(t=u(/^@@?[\w-]+/))?new I.Variable(t,n,e.currentFileInfo):void 0},variableCurly:function(){var t,n=x;return"@"===w.charAt(x)&&(t=u(/^@\{([\w-]+)\}/))?new I.Variable("@"+t[1],n,e.currentFileInfo):void 0},color:function(){var e;return"#"===w.charAt(x)&&(e=u(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))?new I.Color(e[1]):void 0},dimension:function(){var e,t=w.charCodeAt(x);if(!(t>57||43>t||47===t||44==t))return e=u(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/),e?new I.Dimension(e[1],e[2]):void 0},unicodeDescriptor:function(){var e;return e=u(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/),e?new I.UnicodeDescriptor(e[0]):void 0},javascript:function(){var n,i,r=x;return"~"===w.charAt(r)&&(r++,i=!0),"`"===w.charAt(r)?(e.javascriptEnabled===t||e.javascriptEnabled||d("You are using JavaScript, which has been disabled."),i&&c("~"),n=u(/^`([^`]*)`/),n?new I.JavaScript(n[1],x,i):void 0):void 0}},variable:function(){var e;return"@"===w.charAt(x)&&(e=u(/^(@[\w-]+)\s*:/))?e[1]:void 0},rulesetCall:function(){var e;return"@"===w.charAt(x)&&(e=u(/^(@[\w-]+)\s*\(\s*\)\s*;/))?new I.RulesetCall(e[1]):void 0},extend:function(e){var t,n,i,r,s,o=x;if(u(e?/^&:extend\(/:/^:extend\(/)){do{for(i=null,t=null;!(i=u(/^(all)(?=\s*(\)|,))/))&&(n=this.element());)t?t.push(n):t=[n];i=i&&i[1],s=new I.Extend(new I.Selector(t),i,o),r?r.push(s):r=[s]}while(c(","));return f(/^\)/),e&&f(/^;/),r}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var t,n,o,a,l,h,f=w.charAt(x),d=!1,m=x;if("."===f||"#"===f){for(i();;){if(t=x,a=u(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/),!a)break;o=new I.Element(l,a,t,e.currentFileInfo),n?n.push(o):n=[o],l=c(">")}return n&&(c("(")&&(h=this.args(!0).args,p(")")),_.important()&&(d=!0),_.end())?(s(),new I.mixin.Call(n,h,m,e.currentFileInfo,d)):void r()}},args:function(e){var t,n,o,a,l,h,f=E.parsers,p=f.entities,m={args:null,variadic:!1},v=[],g=[],y=[];for(i();;){if(e)h=f.detachedRuleset()||f.expression();else{if(f.comments(),"."===w.charAt(x)&&u(/^\.{3}/)){m.variadic=!0,c(";")&&!t&&(t=!0),(t?g:y).push({variadic:!0});break}h=p.variable()||p.literal()||p.keyword()}if(!h)break;a=null,h.throwAwayComments&&h.throwAwayComments(),l=h;var S=null;if(e?h.value&&1==h.value.length&&(S=h.value[0]):S=h,S&&S instanceof I.Variable)if(c(":")){if(v.length>0&&(t&&d("Cannot mix ; and , as delimiter types"),n=!0),l=e&&f.detachedRuleset()||f.expression(),!l){if(!e)return r(),m.args=[],m;d("could not understand value for named argument")}a=o=S.name}else{if(!e&&u(/^\.{3}/)){m.variadic=!0,c(";")&&!t&&(t=!0),(t?g:y).push({name:h.name,variadic:!0});break}e||(o=a=S.name,l=null)}l&&v.push(l),y.push({name:a,value:l}),c(",")||(c(";")||t)&&(n&&d("Cannot mix ; and , as delimiter types"),t=!0,v.length>1&&(l=new I.Value(v)),g.push({name:o,value:l}),o=null,v=[],n=!1)}return s(),m.args=t?g:y,m},definition:function(){var e,t,n,o,a=[],l=!1;if(!("."!==w.charAt(x)&&"#"!==w.charAt(x)||m(/^[^{]*\}/)))if(i(),t=u(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var h=this.args(!1);if(a=h.args,l=h.variadic,!c(")"))return R=x,void r();if(_.comments(),u(/^when/)&&(o=f(_.conditions,"expected condition")),n=_.block())return s(),new I.mixin.Definition(e,a,n,o,l);r()}else s()}},entity:function(){var e=this.entities;return e.literal()||e.variable()||e.url()||e.call()||e.keyword()||e.javascript()||this.comment()},end:function(){return c(";")||v("}")},alpha:function(){var e;if(u(/^\(opacity=/i))return e=u(/^\d+/)||this.entities.variable(),e?(p(")"),new I.Alpha(e)):void 0},element:function(){var t,n,o,a=x;return n=this.combinator(),t=u(/^(?:\d+\.\d+|\d+)%/)||u(/^(?:[.#]?|:*)(?:[\w-]|[^-Ÿ]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||c("*")||c("&")||this.attribute()||u(/^\([^()@]+\)/)||u(/^[\.#](?=@)/)||this.entities.variableCurly(),t||(i(),c("(")?(o=this.selector())&&c(")")?(t=new I.Paren(o),s()):r():s()),t?new I.Element(n,t,a,e.currentFileInfo):void 0},combinator:function(){var e=w.charAt(x);if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(x++,"^"===w.charAt(x)&&(e="^^",x++);a(w,x);)x++;return new I.Combinator(e)}return new I.Combinator(a(w,x-1)?" ":null)},lessSelector:function(){return this.selector(!0)},selector:function(t){for(var n,i,r,s,o,a,l,u=x,c=L;(t&&(o=this.extend())||t&&(a=c(/^when/))||(s=this.element()))&&(a?l=f(this.conditions,"expected condition"):l?d("CSS guard can only be used at the end of selector"):o?i?i.push(o):i=[o]:(i&&d("Extend can only be used at the end of selector"),r=w.charAt(x),n?n.push(s):n=[s],s=null),"{"!==r&&"}"!==r&&";"!==r&&","!==r&&")"!==r););return n?new I.Selector(n,i,l,u,e.currentFileInfo):void(i&&d("Extend must be used to extend a selector, it cannot be used on its own"))},attribute:function(){if(c("[")){var e,t,n,i=this.entities;return(e=i.variableCurly())||(e=f(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),n=u(/^[|~*$^]?=/),n&&(t=i.quoted()||u(/^[0-9]+%/)||u(/^[\w-]+/)||i.variableCurly()),p("]"),new I.Attribute(e,n,t)}},block:function(){var e;return c("{")&&(e=this.primary())&&c("}")?e:void 0},blockRuleset:function(){var e=this.block();return e&&(e=new I.Ruleset(null,e)),e},detachedRuleset:function(){var e=this.blockRuleset();return e?new I.DetachedRuleset(e):void 0},ruleset:function(){var t,n,o,a;for(i(),e.dumpLineNumbers&&(a=S(x,w,e));;){if(n=this.lessSelector(),!n)break;if(t?t.push(n):t=[n],this.comments(),n.condition&&t.length>1&&d("Guards are only currently allowed on a single selector."),!c(","))break;n.condition&&d("Guards are only currently allowed on a single selector."),this.comments()}if(t&&(o=this.block())){s();var l=new I.Ruleset(t,o,e.strictImports);return e.dumpLineNumbers&&(l.debugInfo=a),l}R=x,r()},rule:function(t){var n,o,a,l,u,c=x,h=w.charAt(c);if("."!==h&&"#"!==h&&"&"!==h)if(i(),n=this.variable()||this.ruleProperty()){if(u="string"==typeof n,u&&(o=this.detachedRuleset()),o||(o=t||!e.compress&&!u?this.anonymousValue()||this.value():this.value()||this.anonymousValue(),a=this.important(),l=!u&&n.pop().value),o&&this.end())return s(),new I.Rule(n,o,a,l,c,e.currentFileInfo);if(R=x,r(),o&&!t)return this.rule(!0)}else s()},anonymousValue:function(){var e;return e=/^([^@+\/'"*`(;{}-]*);/.exec(A),e?(x+=e[0].length-1,new I.Anonymous(e[1])):void 0},"import":function(){var t,n,o=x;i();var a=u(/^@import?\s+/),l=(a?this.importOptions():null)||{};return a&&(t=this.entities.quoted()||this.entities.url())&&(n=this.mediaFeatures(),c(";"))?(s(),n=n&&new I.Value(n),new I.Import(t,n,l,o,e.currentFileInfo)):void r()},importOptions:function(){var e,t,n,i={};if(!c("("))return null;do if(e=this.importOption()){switch(t=e,n=!0,t){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(i[t]=n,!c(","))break}while(e);return p(")"),i},importOption:function(){var e=u(/^(less|css|multiple|once|inline|reference)/);return e?e[1]:void 0},mediaFeature:function(){var t,n,i=this.entities,r=[];do if(t=i.keyword()||i.variable())r.push(t);else if(c("(")){if(n=this.property(),t=this.value(),!c(")"))return null;if(n&&t)r.push(new I.Paren(new I.Rule(n,t,null,null,x,e.currentFileInfo,!0)));else{if(!t)return null;r.push(new I.Paren(t))}}while(t);return r.length>0?new I.Expression(r):void 0},mediaFeatures:function(){var e,t=this.entities,n=[];do if(e=this.mediaFeature()){if(n.push(e),!c(","))break}else if(e=t.variable(),e&&(n.push(e),!c(",")))break;while(e);return n.length>0?n:null},media:function(){var t,n,i,r;return e.dumpLineNumbers&&(r=S(x,w,e)),u(/^@media/)&&(t=this.mediaFeatures(),n=this.block())?(i=new I.Media(n,t,x,e.currentFileInfo),e.dumpLineNumbers&&(i.debugInfo=r),i):void 0},directive:function(){var t,n,o,a,l,h,f,p=x,m=!0;if("@"===w.charAt(x)){if(n=this["import"]()||this.media())return n;if(i(),t=u(/^@[a-z-]+/)){switch(a=t,"-"==t.charAt(1)&&t.indexOf("-",2)>0&&(a="@"+t.slice(t.indexOf("-",2)+1)),a){case"@charset":l=!0,m=!1;break;case"@namespace":h=!0,m=!1;break;case"@keyframes":l=!0;break;case"@host":case"@page":case"@document":case"@supports":f=!0}return l?(n=this.entity(),n||d("expected "+t+" identifier")):h?(n=this.expression(),n||d("expected "+t+" expression")):f&&(n=(u(/^[^{;]+/)||"").trim(),n&&(n=new I.Anonymous(n))),m&&(o=this.blockRuleset()),o||!m&&n&&c(";")?(s(),new I.Directive(t,n,o,p,e.currentFileInfo,e.dumpLineNumbers?S(p,w,e):null)):void r()}}},value:function(){var e,t=[];do if(e=this.expression(),e&&(t.push(e),!c(",")))break;while(e);return t.length>0?new I.Value(t):void 0},important:function(){return"!"===w.charAt(x)?u(/^! *important/):void 0},sub:function(){var e,t;return c("(")&&(e=this.addition())?(t=new I.Expression([e]),p(")"),t.parens=!0,t):void 0},multiplication:function(){var e,t,n,i,r;if(e=this.operand()){for(r=a(w,x-1);;){if(m(/^\/[*\/]/))break;if(n=c("/")||c("*"),!n)break;if(t=this.operand(),!t)break;e.parensInOp=!0,t.parensInOp=!0,i=new I.Operation(n,[i||e,t],r),r=a(w,x-1)}return i||e}},addition:function(){var e,t,n,i,r;if(e=this.multiplication()){for(r=a(w,x-1);;){if(n=u(/^[-+]\s+/)||!r&&(c("+")||c("-")),!n)break;if(t=this.multiplication(),!t)break;e.parensInOp=!0,t.parensInOp=!0,i=new I.Operation(n,[i||e,t],r),r=a(w,x-1)}return i||e}},conditions:function(){var e,t,n,i=x;if(e=this.condition()){for(;;){if(!m(/^,\s*(not\s*)?\(/)||!c(","))break;if(t=this.condition(),!t)break;n=new I.Condition("or",n||e,t,i)}return n||e}},condition:function(){var e,t,n,i,r=this.entities,s=x,o=!1;return u(/^not/)&&(o=!0),p("("),e=this.addition()||r.keyword()||r.quoted(),e?(i=u(/^(?:>=|<=|=<|[<=>])/),i?(t=this.addition()||r.keyword()||r.quoted(),t?n=new I.Condition(i,e,t,s,o):d("expected expression")):n=new I.Condition("=",e,new I.Keyword("true"),s,o),p(")"),u(/^and/)?new I.Condition("and",n,this.condition()):n):void 0},operand:function(){var e,t=this.entities,n=w.charAt(x+1);"-"!==w.charAt(x)||"@"!==n&&"("!==n||(e=c("-"));var i=this.sub()||t.dimension()||t.color()||t.variable()||t.call();return e&&(i.parensInOp=!0,i=new I.Negative(i)),i},expression:function(){var e,t,n=[];do e=this.addition()||this.entity(),e&&(n.push(e),m(/^\/[\/*]/)||(t=c("/"),t&&n.push(new I.Anonymous(t))));while(e);return n.length>0?new I.Expression(n):void 0},property:function(){var e=u(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);return e?e[1]:void 0},ruleProperty:function(){function t(e){var t=e.exec(r);return t?(o.push(x+a),a+=t[0].length,r=r.slice(t[1].length),s.push(t[1])):void 0}var n,i,r=A,s=[],o=[],a=0;for(t(/^(\*?)/);t(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/););if(s.length>1&&t(/^\s*((?:\+_|\+)?)\s*:/)){for(h(a),""===s[0]&&(s.shift(),o.shift()),i=0;i<s.length;i++)n=s[i],s[i]="@"!==n.charAt(0)?new I.Keyword(n):new I.Variable("@"+n.slice(2,-1),o[i],e.currentFileInfo);return s}}}}},C.Parser.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var i=e[n];t+=("@"===n[0]?"":"@")+n+": "+i+(";"===(""+i).slice(-1)?"":";")}return t},function(i){function r(e,t,n){if(!(n instanceof i.Dimension))throw{type:"Argument",message:"argument must be a number"};return null==t?t=n.unit:n=n.unify(),new i.Dimension(e(parseFloat(n.value)),t)}function s(e,t,n){var r,s,o,a,l=t.alpha,u=n.alpha,c=[];o=u+l*(1-u);for(var h=0;3>h;h++)r=t.rgb[h]/255,s=n.rgb[h]/255,a=e(r,s),o&&(a=(u*s+l*(r-u*(r+s-a)))/o),c[h]=255*a;return new i.Color(c,o)}function o(){var e,t=i.functions;for(e in h)h.hasOwnProperty(e)&&(t[e]=r.bind(null,Math[e],h[e]));for(e in f)f.hasOwnProperty(e)&&(t[e]=s.bind(null,f[e]));e=i.defaultFunc,t["default"]=e.eval.bind(e)}function a(e){return i.functions.hsla(e.h,e.s,e.l,e.a)}function l(e,t){return e instanceof i.Dimension&&e.unit.is("%")?parseFloat(e.value*t/100):u(e)}function u(e){if(e instanceof i.Dimension)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function c(e){return Math.min(1,Math.max(0,e))}i.functions={rgb:function(e,t,n){return this.rgba(e,t,n,1)},rgba:function(e,t,n,r){var s=[e,t,n].map(function(e){return l(e,255)});return r=u(r),new i.Color(s,r)},hsl:function(e,t,n){return this.hsla(e,t,n,1)},hsla:function(e,t,n,i){function r(e){return e=0>e?e+1:e>1?e-1:e,1>6*e?o+(s-o)*e*6:1>2*e?s:2>3*e?o+(s-o)*(2/3-e)*6:o}e=u(e)%360/360,t=c(u(t)),n=c(u(n)),i=c(u(i));var s=.5>=n?n*(t+1):n+t-n*t,o=2*n-s;return this.rgba(255*r(e+1/3),255*r(e),255*r(e-1/3),i)},hsv:function(e,t,n){return this.hsva(e,t,n,1)},hsva:function(e,t,n,i){e=u(e)%360/360*360,t=u(t),n=u(n),i=u(i);var r,s;r=Math.floor(e/60%6),s=e/60-r;var o=[n,n*(1-t),n*(1-s*t),n*(1-(1-s)*t)],a=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(255*o[a[r][0]],255*o[a[r][1]],255*o[a[r][2]],i)},hue:function(e){return new i.Dimension(Math.round(e.toHSL().h))},saturation:function(e){return new i.Dimension(Math.round(100*e.toHSL().s),"%")},lightness:function(e){return new i.Dimension(Math.round(100*e.toHSL().l),"%")},hsvhue:function(e){return new i.Dimension(Math.round(e.toHSV().h))},hsvsaturation:function(e){return new i.Dimension(Math.round(100*e.toHSV().s),"%")},hsvvalue:function(e){return new i.Dimension(Math.round(100*e.toHSV().v),"%")},red:function(e){return new i.Dimension(e.rgb[0])},green:function(e){return new i.Dimension(e.rgb[1])},blue:function(e){return new i.Dimension(e.rgb[2])},alpha:function(e){return new i.Dimension(e.toHSL().a)},luma:function(e){return new i.Dimension(Math.round(e.luma()*e.alpha*100),"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new i.Dimension(Math.round(t*e.alpha*100),"%")},saturate:function(e,t){if(!e.rgb)return null;var n=e.toHSL();return n.s+=t.value/100,n.s=c(n.s),a(n)},desaturate:function(e,t){var n=e.toHSL();return n.s-=t.value/100,n.s=c(n.s),a(n)},lighten:function(e,t){var n=e.toHSL();return n.l+=t.value/100,n.l=c(n.l),a(n)},darken:function(e,t){var n=e.toHSL();return n.l-=t.value/100,n.l=c(n.l),a(n)},fadein:function(e,t){var n=e.toHSL();return n.a+=t.value/100,n.a=c(n.a),a(n)},fadeout:function(e,t){var n=e.toHSL();return n.a-=t.value/100,n.a=c(n.a),a(n)},fade:function(e,t){var n=e.toHSL();return n.a=t.value/100,n.a=c(n.a),a(n)},spin:function(e,t){var n=e.toHSL(),i=(n.h+t.value)%360;return n.h=0>i?360+i:i,a(n)},mix:function(e,t,n){n||(n=new i.Dimension(50));var r=n.value/100,s=2*r-1,o=e.toHSL().a-t.toHSL().a,a=((s*o==-1?s:(s+o)/(1+s*o))+1)/2,l=1-a,u=[e.rgb[0]*a+t.rgb[0]*l,e.rgb[1]*a+t.rgb[1]*l,e.rgb[2]*a+t.rgb[2]*l],c=e.alpha*r+t.alpha*(1-r); return new i.Color(u,c)},greyscale:function(e){return this.desaturate(e,new i.Dimension(100))},contrast:function(e,t,n,i){if(!e.rgb)return null;if("undefined"==typeof n&&(n=this.rgba(255,255,255,1)),"undefined"==typeof t&&(t=this.rgba(0,0,0,1)),t.luma()>n.luma()){var r=n;n=t,t=r}return i="undefined"==typeof i?.43:u(i),e.luma()<i?n:t},e:function(e){return new i.Anonymous(e instanceof i.JavaScript?e.evaluated:e)},escape:function(e){return new i.Anonymous(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,n,r){var s=e.value;return s=s.replace(new RegExp(t.value,r?r.value:""),n.value),new i.Quoted(e.quote||"",s,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=0;r<t.length;r++)n=n.replace(/%[sda]/i,function(e){var n=e.match(/s/i)?t[r].value:t[r].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(n):n});return n=n.replace(/%%/g,"%"),new i.Quoted(e.quote||"",n,e.escaped)},unit:function(e,t){if(!(e instanceof i.Dimension))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof i.Operation?". Have you forgotten parenthesis?":"")};return t=t?t instanceof i.Keyword?t.value:t.toCSS():"",new i.Dimension(e.value,t)},convert:function(e,t){return e.convertTo(t.value)},round:function(e,t){var n="undefined"==typeof t?0:t.value;return r(function(e){return e.toFixed(n)},null,e)},pi:function(){return new i.Dimension(Math.PI)},mod:function(e,t){return new i.Dimension(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new i.Dimension(e),t=new i.Dimension(t);else if(!(e instanceof i.Dimension&&t instanceof i.Dimension))throw{type:"Argument",message:"arguments must be numbers"};return new i.Dimension(Math.pow(e.value,t.value),e.unit)},_minmax:function(e,n){switch(n=Array.prototype.slice.call(n),n.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var r,s,o,a,l,u,c,h,f=[],p={};for(r=0;r<n.length;r++)if(o=n[r],o instanceof i.Dimension)if(a=""===o.unit.toString()&&h!==t?new i.Dimension(o.value,h).unify():o.unify(),u=""===a.unit.toString()&&c!==t?c:a.unit.toString(),c=""!==u&&c===t||""!==u&&""===f[0].unify().unit.toString()?u:c,h=""!==u&&h===t?o.unit.toString():h,s=p[""]!==t&&""!==u&&u===c?p[""]:p[u],s!==t)l=""===f[s].unit.toString()&&h!==t?new i.Dimension(f[s].value,h).unify():f[s].unify(),(e&&a.value<l.value||!e&&a.value>l.value)&&(f[s]=o);else{if(c!==t&&u!==c)throw{type:"Argument",message:"incompatible types"};p[u]=f.length,f.push(o)}else Array.isArray(n[r].value)&&Array.prototype.push.apply(n,Array.prototype.slice.call(n[r].value));return 1==f.length?f[0]:(n=f.map(function(e){return e.toCSS(this.env)}).join(this.env.compress?",":", "),new i.Anonymous((e?"min":"max")+"("+n+")"))},min:function(){return this._minmax(!0,arguments)},max:function(){return this._minmax(!1,arguments)},"get-unit":function(e){return new i.Anonymous(e.unit)},argb:function(e){return new i.Anonymous(e.toARGB())},percentage:function(e){return new i.Dimension(100*e.value,"%")},color:function(e){if(e instanceof i.Quoted){var t,n=e.value;if(t=i.Color.fromKeyword(n))return t;if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.test(n))return new i.Color(n.slice(1));throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}}throw{type:"Argument",message:"argument must be a string"}},iscolor:function(e){return this._isa(e,i.Color)},isnumber:function(e){return this._isa(e,i.Dimension)},isstring:function(e){return this._isa(e,i.Quoted)},iskeyword:function(e){return this._isa(e,i.Keyword)},isurl:function(e){return this._isa(e,i.URL)},ispixel:function(e){return this.isunit(e,"px")},ispercentage:function(e){return this.isunit(e,"%")},isem:function(e){return this.isunit(e,"em")},isunit:function(e,t){return e instanceof i.Dimension&&e.unit.is(t.value||t)?i.True:i.False},_isa:function(e,t){return e instanceof t?i.True:i.False},tint:function(e,t){return this.mix(this.rgb(255,255,255),e,t)},shade:function(e,t){return this.mix(this.rgb(0,0,0),e,t)},extract:function(e,t){return t=t.value-1,Array.isArray(e.value)?e.value[t]:Array(e)[t]},length:function(e){var t=Array.isArray(e.value)?e.value.length:1;return new i.Dimension(t)},"data-uri":function(t,r){if("undefined"!=typeof e)return new i.URL(r||t,this.currentFileInfo).eval(this.env);var s=t.value,o=r&&r.value,a=n("fs"),l=n("path"),u=!1;if(arguments.length<2&&(o=s),this.env.isPathRelative(o)&&(o=this.currentFileInfo.relativeUrls?l.join(this.currentFileInfo.currentDirectory,o):l.join(this.currentFileInfo.entryPath,o)),arguments.length<2){var c;try{c=n("mime")}catch(h){c=i._mime}s=c.lookup(o);var f=c.charsets.lookup(s);u=["US-ASCII","UTF-8"].indexOf(f)<0,u&&(s+=";base64")}else u=/;base64$/.test(s);var p=a.readFileSync(o),d=32,m=parseInt(p.length/1024,10);if(m>=d&&this.env.ieCompat!==!1)return this.env.silent||console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",o,m,d),new i.URL(r||t,this.currentFileInfo).eval(this.env);p=u?p.toString("base64"):encodeURIComponent(p);var v='"data:'+s+","+p+'"';return new i.URL(new i.Anonymous(v))},"svg-gradient":function(e){function r(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]"}}arguments.length<3&&r();var s,o,a,l,u,c,h,f=Array.prototype.slice.call(arguments,1),p="linear",d='x="0" y="0" width="1" height="1"',m=!0,v={compress:!1},g=e.toCSS(v);switch(g){case"to bottom":s='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":s='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":s='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":s='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":p="radial",s='cx="50%" cy="50%" r="75%"',d='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(o='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+p+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+s+">",a=0;a<f.length;a+=1)f[a].value?(l=f[a].value[0],u=f[a].value[1]):(l=f[a],u=t),l instanceof i.Color&&((0===a||a+1===f.length)&&u===t||u instanceof i.Dimension)||r(),c=u?u.toCSS(v):0===a?"0%":"100%",h=l.alpha,o+='<stop offset="'+c+'" stop-color="'+l.toRGB()+'"'+(1>h?' stop-opacity="'+h+'"':"")+"/>";if(o+="</"+p+"Gradient><rect "+d+' fill="url(#gradient)" /></svg>',m)try{o=n("./encoder").encodeBase64(o)}catch(y){m=!1}return o="'data:image/svg+xml"+(m?";base64":"")+","+o+"'",new i.URL(new i.Anonymous(o))}},i._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(e){var r=n("path").extname(e),s=i._mime._types[r];if(s===t)throw new Error('Optional dependency "mime" is required for '+r);return s},charsets:{lookup:function(e){return e&&/^text\//.test(e)?"UTF-8":""}}};var h={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};e.MooTools&&(r.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r});var f={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return e*=2,1>=e?f.multiply(e,t):f.screen(e-1,t)},softlight:function(e,t){var n=1,i=e;return t>.5&&(i=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*i*(n-e)},hardlight:function(e,t){return f.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};i.defaultFunc={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;return null!=e?e?i.True:i.False:void 0},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},o(),i.fround=function(e,t){var n;return e&&null!=e.numPrecision?(n=Math.pow(10,e.numPrecision),Math.round(t*n)/n):t},i.functionCall=function(e,t){this.env=e,this.currentFileInfo=t},i.functionCall.prototype=i.functions}(n("./tree")),function(e){e.colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(n("./tree")),function(e){e.debugInfo=function(t,n,i){var r="";if(t.dumpLineNumbers&&!t.compress)switch(t.dumpLineNumbers){case"comments":r=e.debugInfo.asComment(n);break;case"mediaquery":r=e.debugInfo.asMediaQuery(n);break;case"all":r=e.debugInfo.asComment(n)+(i||"")+e.debugInfo.asMediaQuery(n)}return r},e.debugInfo.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},e.debugInfo.asMediaQuery=function(e){return"@media -sass-debug-info{filename{font-family:"+("file://"+e.debugInfo.fileName).replace(/([.:\/\\])/g,function(e){return"\\"==e&&(e="/"),"\\"+e})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"},e.find=function(e,t){for(var n,i=0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null},e.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS(!1)}).join(", ")+"]":e.toCSS(!1)},e.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.outputRuleset=function(e,t,n){var i,r=n.length;if(e.tabLevel=(0|e.tabLevel)+1,e.compress){for(t.add("{"),i=0;r>i;i++)n[i].genCSS(e,t);return t.add("}"),void e.tabLevel--}var s="\n"+Array(e.tabLevel).join(" "),o=s+" ";if(r){for(t.add(" {"+o),n[0].genCSS(e,t),i=1;r>i;i++)t.add(o),n[i].genCSS(e,t);t.add(s+"}")}else t.add(" {"+s+"}");e.tabLevel--}}(n("./tree")),function(e){e.Alpha=function(e){this.value=e},e.Alpha.prototype={type:"Alpha",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return this.value.eval?new e.Alpha(this.value.eval(t)):this},genCSS:function(e,t){t.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value),t.add(")")},toCSS:e.toCSS}}(n("../tree")),function(e){e.Anonymous=function(e,t,n,i){this.value=e.value||e,this.index=t,this.mapLines=i,this.currentFileInfo=n},e.Anonymous.prototype={type:"Anonymous",eval:function(){return new e.Anonymous(this.value,this.index,this.currentFileInfo,this.mapLines)},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1},genCSS:function(e,t){t.add(this.value,this.currentFileInfo,this.index,this.mapLines)},toCSS:e.toCSS}}(n("../tree")),function(e){e.Assignment=function(e,t){this.key=e,this.value=t},e.Assignment.prototype={type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return this.value.eval?new e.Assignment(this.key,this.value.eval(t)):this},genCSS:function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},toCSS:e.toCSS}}(n("../tree")),function(e){e.Call=function(e,t,n,i){this.name=e,this.args=t,this.index=n,this.currentFileInfo=i},e.Call.prototype={type:"Call",accept:function(e){this.args&&(this.args=e.visitArray(this.args))},eval:function(t){var n,i,r=this.args.map(function(e){return e.eval(t)}),s=this.name.toLowerCase();if(s in e.functions)try{if(i=new e.functionCall(t,this.currentFileInfo),n=i[s].apply(i,r),null!=n)return n}catch(o){throw{type:o.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(o.message?": "+o.message:""),index:this.index,filename:this.currentFileInfo.filename}}return new e.Call(this.name,r,this.index,this.currentFileInfo)},genCSS:function(e,t){t.add(this.name+"(",this.currentFileInfo,this.index);for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")},toCSS:e.toCSS}}(n("../tree")),function(e){function t(e){return"#"+e.map(function(e){return e=n(Math.round(e),255),(16>e?"0":"")+e.toString(16)}).join("")}function n(e,t){return Math.min(Math.max(e,0),t)}e.Color=function(e,t){this.rgb=Array.isArray(e)?e:6==e.length?e.match(/.{2}/g).map(function(e){return parseInt(e,16)}):e.split("").map(function(e){return parseInt(e+e,16)}),this.alpha="number"==typeof t?t:1};var i="transparent";e.Color.prototype={type:"Color",eval:function(){return this},luma:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255;return e=.03928>=e?e/12.92:Math.pow((e+.055)/1.055,2.4),t=.03928>=t?t/12.92:Math.pow((t+.055)/1.055,2.4),n=.03928>=n?n/12.92:Math.pow((n+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(t,r){var s=t&&t.compress&&!r,o=e.fround(t,this.alpha);if(1>o)return 0===o&&this.isTransparentKeyword?i:"rgba("+this.rgb.map(function(e){return n(Math.round(e),255)}).concat(n(o,1)).join(","+(s?"":" "))+")";var a=this.toRGB();if(s){var l=a.split("");l[1]===l[2]&&l[3]===l[4]&&l[5]===l[6]&&(a="#"+l[1]+l[3]+l[5])}return a},operate:function(t,n,i){for(var r=[],s=this.alpha*(1-i.alpha)+i.alpha,o=0;3>o;o++)r[o]=e.operate(t,n,this.rgb[o],i.rgb[o]);return new e.Color(r,s)},toRGB:function(){return t(this.rgb)},toHSL:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(n,i,r),a=Math.min(n,i,r),l=(o+a)/2,u=o-a;if(o===a)e=t=0;else{switch(t=l>.5?u/(2-o-a):u/(o+a),o){case n:e=(i-r)/u+(r>i?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,l:l,a:s}},toHSV:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(n,i,r),a=Math.min(n,i,r),l=o,u=o-a;if(t=0===o?0:u/o,o===a)e=0;else{switch(o){case n:e=(i-r)/u+(r>i?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,v:l,a:s}},toARGB:function(){return t([255*this.alpha].concat(this.rgb))},compare:function(e){return e.rgb?e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:-1:-1}},e.Color.fromKeyword=function(t){if(t=t.toLowerCase(),e.colors.hasOwnProperty(t))return new e.Color(e.colors[t].slice(1));if(t===i){var n=new e.Color([0,0,0],0);return n.isTransparentKeyword=!0,n}}}(n("../tree")),function(e){e.Comment=function(e,t,n,i){this.value=e,this.silent=!!t,this.currentFileInfo=i},e.Comment.prototype={type:"Comment",genCSS:function(t,n){this.debugInfo&&n.add(e.debugInfo(t,this),this.currentFileInfo,this.index),n.add(this.value.trim())},toCSS:e.toCSS,isSilent:function(e){var t=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,n=e.compress&&!this.value.match(/^\/\*!/);return this.silent||t||n},eval:function(){return this},markReferenced:function(){this.isReferenced=!0}}}(n("../tree")),function(e){e.Condition=function(e,t,n,i,r){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=i,this.negate=r},e.Condition.prototype={type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t,n=this.lvalue.eval(e),i=this.rvalue.eval(e),r=this.index;return t=function(e){switch(e){case"and":return n&&i;case"or":return n||i;default:if(n.compare)t=n.compare(i);else{if(!i.compare)throw{type:"Type",message:"Unable to perform comparison",index:r};t=i.compare(n)}switch(t){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e}}}(this.op),this.negate?!t:t}}}(n("../tree")),function(e){e.DetachedRuleset=function(e,t){this.ruleset=e,this.frames=t},e.DetachedRuleset.prototype={type:"DetachedRuleset",accept:function(e){this.ruleset=e.visit(this.ruleset)},eval:function(t){var n=this.frames||t.frames.slice(0);return new e.DetachedRuleset(this.ruleset,n)},callEval:function(t){return this.ruleset.eval(this.frames?new e.evalEnv(t,this.frames.concat(t.frames)):t)}}}(n("../tree")),function(e){e.Dimension=function(n,i){this.value=parseFloat(n),this.unit=i&&i instanceof e.Unit?i:new e.Unit(i?[i]:t)},e.Dimension.prototype={type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(){return this},toColor:function(){return new e.Color([this.value,this.value,this.value])},genCSS:function(t,n){if(t&&t.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var i=e.fround(t,this.value),r=String(i);if(0!==i&&1e-6>i&&i>-1e-6&&(r=i.toFixed(20).replace(/0+$/,"")),t&&t.compress){if(0===i&&this.unit.isLength())return void n.add(r);i>0&&1>i&&(r=r.substr(1))}n.add(r),this.unit.genCSS(t,n)},toCSS:e.toCSS,operate:function(t,n,i){var r=e.operate(t,n,this.value,i.value),s=this.unit.clone();if("+"===n||"-"===n)if(0===s.numerator.length&&0===s.denominator.length)s.numerator=i.unit.numerator.slice(0),s.denominator=i.unit.denominator.slice(0);else if(0===i.unit.numerator.length&&0===s.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),t.strictUnits&&i.unit.toString()!==s.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+s.toString()+"' and '"+i.unit.toString()+"'.");r=e.operate(t,n,this.value,i.value)}else"*"===n?(s.numerator=s.numerator.concat(i.unit.numerator).sort(),s.denominator=s.denominator.concat(i.unit.denominator).sort(),s.cancel()):"/"===n&&(s.numerator=s.numerator.concat(i.unit.denominator).sort(),s.denominator=s.denominator.concat(i.unit.numerator).sort(),s.cancel());return new e.Dimension(r,s)},compare:function(t){if(t instanceof e.Dimension){var n,i,r,s;if(this.unit.isEmpty()||t.unit.isEmpty())n=this,i=t;else if(n=this.unify(),i=t.unify(),0!==n.unit.compare(i.unit))return-1;return r=n.value,s=i.value,s>r?-1:r>s?1:0}return-1},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(t){var n,i,r,s,o,a=this.value,l=this.unit.clone(),u={};if("string"==typeof t){for(n in e.UnitConversions)e.UnitConversions[n].hasOwnProperty(t)&&(u={},u[n]=t);t=u}o=function(e,t){return r.hasOwnProperty(e)?(t?a/=r[e]/r[s]:a*=r[e]/r[s],s):e};for(i in t)t.hasOwnProperty(i)&&(s=t[i],r=e.UnitConversions[i],l.map(o));return l.cancel(),new e.Dimension(a,l)}},e.UnitConversions={length:{m:1,cm:.01,mm:.001,"in":.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:.0025,turn:1}},e.Unit=function(e,t,n){this.numerator=e?e.slice(0).sort():[],this.denominator=t?t.slice(0).sort():[],this.backupUnit=n},e.Unit.prototype={type:"Unit",clone:function(){return new e.Unit(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},genCSS:function(e,t){this.numerator.length>=1?t.add(this.numerator[0]):this.denominator.length>=1?t.add(this.denominator[0]):e&&e.strictUnits||!this.backupUnit||t.add(this.backupUnit)},toCSS:e.toCSS,toString:function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},compare:function(e){return this.is(e.toString())?0:-1},is:function(e){return this.toString()===e},isLength:function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(e){var t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},usedUnits:function(){var t,n,i={};n=function(e){return t.hasOwnProperty(e)&&!i[r]&&(i[r]=e),e};for(var r in e.UnitConversions)e.UnitConversions.hasOwnProperty(r)&&(t=e.UnitConversions[r],this.map(n));return i},cancel:function(){var e,t,n,i={};for(t=0;t<this.numerator.length;t++)e=this.numerator[t],n||(n=e),i[e]=(i[e]||0)+1;for(t=0;t<this.denominator.length;t++)e=this.denominator[t],n||(n=e),i[e]=(i[e]||0)-1;this.numerator=[],this.denominator=[];for(e in i)if(i.hasOwnProperty(e)){var r=i[e];if(r>0)for(t=0;r>t;t++)this.numerator.push(e);else if(0>r)for(t=0;-r>t;t++)this.denominator.push(e)}0===this.numerator.length&&0===this.denominator.length&&n&&(this.backupUnit=n),this.numerator.sort(),this.denominator.sort()}}}(n("../tree")),function(e){e.Directive=function(e,t,n,i,r,s){this.name=e,this.value=t,n&&(this.rules=n,this.rules.allowImports=!0),this.index=i,this.currentFileInfo=r,this.debugInfo=s},e.Directive.prototype={type:"Directive",accept:function(e){var t=this.value,n=this.rules;n&&(n=e.visit(n)),t&&(t=e.visit(t))},genCSS:function(t,n){var i=this.value,r=this.rules;n.add(this.name,this.currentFileInfo,this.index),i&&(n.add(" "),i.genCSS(t,n)),r?e.outputRuleset(t,n,[r]):n.add(";")},toCSS:e.toCSS,eval:function(t){var n=this.value,i=this.rules;return n&&(n=n.eval(t)),i&&(i=i.eval(t),i.root=!0),new e.Directive(this.name,n,i,this.index,this.currentFileInfo,this.debugInfo)},variable:function(t){return this.rules?e.Ruleset.prototype.variable.call(this.rules,t):void 0},find:function(){return this.rules?e.Ruleset.prototype.find.apply(this.rules,arguments):void 0},rulesets:function(){return this.rules?e.Ruleset.prototype.rulesets.apply(this.rules):void 0},markReferenced:function(){var e,t;if(this.isReferenced=!0,this.rules)for(t=this.rules.rules,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()}}}(n("../tree")),function(e){e.Element=function(t,n,i,r){this.combinator=t instanceof e.Combinator?t:new e.Combinator(t),this.value="string"==typeof n?n.trim():n?n:"",this.index=i,this.currentFileInfo=r},e.Element.prototype={type:"Element",accept:function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},eval:function(t){return new e.Element(this.combinator,this.value.eval?this.value.eval(t):this.value,this.index,this.currentFileInfo)},genCSS:function(e,t){t.add(this.toCSS(e),this.currentFileInfo,this.index)},toCSS:function(e){var t=this.value.toCSS?this.value.toCSS(e):this.value;return""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e||{})+t}},e.Attribute=function(e,t,n){this.key=e,this.op=t,this.value=n},e.Attribute.prototype={type:"Attribute",eval:function(t){return new e.Attribute(this.key.eval?this.key.eval(t):this.key,this.op,this.value&&this.value.eval?this.value.eval(t):this.value)},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"}},e.Combinator=function(e){this.value=" "===e?" ":e?e.trim():""},e.Combinator.prototype={type:"Combinator",_outputMap:{"":""," ":" ",":":" :","+":" + ","~":" ~ ",">":" > ","|":"|","^":" ^ ","^^":" ^^ "},_outputMapCompressed:{"":""," ":" ",":":" :","+":"+","~":"~",">":">","|":"|","^":"^","^^":"^^"},genCSS:function(e,t){t.add((e.compress?this._outputMapCompressed:this._outputMap)[this.value])},toCSS:e.toCSS}}(n("../tree")),function(e){e.Expression=function(e){this.value=e},e.Expression.prototype={type:"Expression",accept:function(e){this.value&&(this.value=e.visitArray(this.value))},eval:function(t){var n,i=this.parens&&!this.parensInOp,r=!1;return i&&t.inParenthesis(),this.value.length>1?n=new e.Expression(this.value.map(function(e){return e.eval(t)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(r=!0),n=this.value[0].eval(t)):n=this,i&&t.outOfParenthesis(),this.parens&&this.parensInOp&&!t.isMathOn()&&!r&&(n=new e.Paren(n)),n},genCSS:function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(" ")},toCSS:e.toCSS,throwAwayComments:function(){this.value=this.value.filter(function(t){return!(t instanceof e.Comment)})}}}(n("../tree")),function(e){e.Extend=function(t,n,i){switch(this.selector=t,this.option=n,this.index=i,this.object_id=e.Extend.next_id++,this.parent_ids=[this.object_id],n){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}},e.Extend.next_id=0,e.Extend.prototype={type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(t){return new e.Extend(this.selector.eval(t),this.option,this.index)},clone:function(){return new e.Extend(this.selector,this.option,this.index)},findSelfSelectors:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),i=i.concat(e[t].elements);this.selfSelectors=[{elements:i}]}}}(n("../tree")),function(e){e.Import=function(e,n,i,r,s){if(this.options=i,this.index=r,this.path=e,this.features=n,this.currentFileInfo=s,this.options.less!==t||this.options.inline)this.css=!this.options.less||this.options.inline;else{var o=this.getPath();o&&/css([\?;].*)?$/.test(o)&&(this.css=!0)}},e.Import.prototype={type:"Import",accept:function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),!this.options.inline&&this.root&&(this.root=e.visit(this.root))},genCSS:function(e,t){this.css&&(t.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},toCSS:e.toCSS,getPath:function(){if(this.path instanceof e.Quoted){var n=this.path.value;return this.css!==t||/(\.[a-z]*$)|([\?;].*)$/.test(n)?n:n+".less"}return this.path instanceof e.URL?this.path.value.value:null},evalForImport:function(t){return new e.Import(this.path.eval(t),this.features,this.options,this.index,this.currentFileInfo)},evalPath:function(t){var n=this.path.eval(t),i=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(n instanceof e.URL)){if(i){var r=n.value;r&&t.isPathRelative(r)&&(n.value=i+r)}n.value=t.normalizePath(n.value)}return n},eval:function(t){var n,i=this.features&&this.features.eval(t);if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var r=new e.Anonymous(this.root,0,{filename:this.importedFilename},!0);return this.features?new e.Media([r],this.features.value):[r]}if(this.css){var s=new e.Import(this.evalPath(t),i,this.options,this.index);if(!s.css&&this.error)throw this.error;return s}return n=new e.Ruleset(null,this.root.rules.slice(0)),n.evalImports(t),this.features?new e.Media(n.rules,this.features.value):n.rules}}}(n("../tree")),function(e){e.JavaScript=function(e,t,n){this.escaped=n,this.expression=e,this.index=t},e.JavaScript.prototype={type:"JavaScript",eval:function(t){var n,i=this,r={},s=this.expression.replace(/@\{([\w-]+)\}/g,function(n,r){return e.jsify(new e.Variable("@"+r,i.index).eval(t))});try{s=new Function("return ("+s+")")}catch(o){throw{message:"JavaScript evaluation error: "+o.message+" from `"+s+"`",index:this.index}}var a=t.frames[0].variables();for(var l in a)a.hasOwnProperty(l)&&(r[l.slice(1)]={value:a[l].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=s.call(r)}catch(o){throw{message:"JavaScript evaluation error: '"+o.name+": "+o.message.replace(/["]/g,"'")+"'",index:this.index}}return"number"==typeof n?new e.Dimension(n):"string"==typeof n?new e.Quoted('"'+n+'"',n,this.escaped,this.index):new e.Anonymous(Array.isArray(n)?n.join(", "):n)}}}(n("../tree")),function(e){e.Keyword=function(e){this.value=e},e.Keyword.prototype={type:"Keyword",eval:function(){return this},genCSS:function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)},toCSS:e.toCSS,compare:function(t){return t instanceof e.Keyword?t.value===this.value?0:1:-1}},e.True=new e.Keyword("true"),e.False=new e.Keyword("false")}(n("../tree")),function(e){e.Media=function(t,n,i,r){this.index=i,this.currentFileInfo=r;var s=this.emptySelectors();this.features=new e.Value(n),this.rules=[new e.Ruleset(s,t)],this.rules[0].allowImports=!0},e.Media.prototype={type:"Media",accept:function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},genCSS:function(t,n){n.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(t,n),e.outputRuleset(t,n,this.rules)},toCSS:e.toCSS,eval:function(t){t.mediaBlocks||(t.mediaBlocks=[],t.mediaPath=[]);var n=new e.Media(null,[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,n.debugInfo=this.debugInfo);var i=!1;t.strictMath||(i=!0,t.strictMath=!0);try{n.features=this.features.eval(t)}finally{i&&(t.strictMath=!1)}return t.mediaPath.push(n),t.mediaBlocks.push(n),t.frames.unshift(this.rules[0]),n.rules=[this.rules[0].eval(t)],t.frames.shift(),t.mediaPath.pop(),0===t.mediaPath.length?n.evalTop(t):n.evalNested(t)},variable:function(t){return e.Ruleset.prototype.variable.call(this.rules[0],t)},find:function(){return e.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return e.Ruleset.prototype.rulesets.apply(this.rules[0])},emptySelectors:function(){var t=new e.Element("","&",this.index,this.currentFileInfo),n=[new e.Selector([t],null,null,this.index,this.currentFileInfo)]; return n[0].mediaEmpty=!0,n},markReferenced:function(){var e,t=this.rules[0].rules;for(this.rules[0].markReferenced(),this.isReferenced=!0,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()},evalTop:function(t){var n=this;if(t.mediaBlocks.length>1){var i=this.emptySelectors();n=new e.Ruleset(i,t.mediaBlocks),n.multiMedia=!0}return delete t.mediaBlocks,delete t.mediaPath,n},evalNested:function(t){var n,i,r=t.mediaPath.concat([this]);for(n=0;n<r.length;n++)i=r[n].features instanceof e.Value?r[n].features.value:r[n].features,r[n]=Array.isArray(i)?i:[i];return this.features=new e.Value(this.permute(r).map(function(t){for(t=t.map(function(t){return t.toCSS?t:new e.Anonymous(t)}),n=t.length-1;n>0;n--)t.splice(n,0,new e.Anonymous("and"));return new e.Expression(t)})),new e.Ruleset([],[])},permute:function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),i=0;i<n.length;i++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(n[i]));return t},bubbleSelectors:function(t){t&&(this.rules=[new e.Ruleset(t.slice(0),[this.rules[0]])])}}}(n("../tree")),function(e){e.mixin={},e.mixin.Call=function(t,n,i,r,s){this.selector=new e.Selector(t),this.arguments=n&&n.length?n:null,this.index=i,this.currentFileInfo=r,this.important=s},e.mixin.Call.prototype={type:"MixinCall",accept:function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments&&(this.arguments=e.visitArray(this.arguments))},eval:function(t){var n,i,r,s,o,a,l,u,c,h,f,p,d=[],m=!1,v=[],g=[],y=e.defaultFunc,S=0,b=1,w=2;for(r=this.arguments&&this.arguments.map(function(e){return{name:e.name,value:e.value.eval(t)}}),s=0;s<t.frames.length;s++)if((n=t.frames[s].find(this.selector)).length>0){for(u=!0,o=0;o<n.length;o++){for(i=n[o],l=!1,a=0;a<t.frames.length;a++)if(!(i instanceof e.mixin.Definition)&&i===(t.frames[a].originalRuleset||t.frames[a])){l=!0;break}if(!l&&i.matchArgs(r,t)){if(h={mixin:i,group:S},i.matchCondition){for(a=0;2>a;a++)y.value(a),g[a]=i.matchCondition(r,t);(g[0]||g[1])&&(g[0]!=g[1]&&(h.group=g[1]?b:w),v.push(h))}else v.push(h);m=!0}}for(y.reset(),p=[0,0,0],o=0;o<v.length;o++)p[v[o].group]++;if(p[S]>0)f=w;else if(f=b,p[b]+p[w]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(r)+"`",index:this.index,filename:this.currentFileInfo.filename};for(o=0;o<v.length;o++)if(h=v[o].group,h===S||h===f)try{i=v[o].mixin,i instanceof e.mixin.Definition||(i=new e.mixin.Definition("",[],i.rules,null,!1),i.originalRuleset=n[o].originalRuleset||n[o]),Array.prototype.push.apply(d,i.evalCall(t,r,this.important).rules)}catch(x){throw{message:x.message,index:this.index,filename:this.currentFileInfo.filename,stack:x.stack}}if(m){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(s=0;s<d.length;s++)c=d[s],c.markReferenced&&c.markReferenced();return d}}throw u?{type:"Runtime",message:"No matching definition was found for `"+this.format(r)+"`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}},format:function(e){return this.selector.toCSS().trim()+"("+(e?e.map(function(e){var t="";return e.name&&(t+=e.name+":"),t+=e.value.toCSS?e.value.toCSS():"???"}).join(", "):"")+")"}},e.mixin.Definition=function(t,n,i,r,s,o){this.name=t,this.selectors=[new e.Selector([new e.Element(null,t,this.index,this.currentFileInfo)])],this.params=n,this.condition=r,this.variadic=s,this.arity=n.length,this.rules=i,this._lookups={},this.required=n.reduce(function(e,t){return!t.name||t.name&&!t.value?e+1:e},0),this.parent=e.Ruleset.prototype,this.frames=o},e.mixin.Definition.prototype={type:"MixinDefinition",accept:function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},variable:function(e){return this.parent.variable.call(this,e)},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},evalParams:function(t,n,i,r){var s,o,a,l,u,c,h,f,p=new e.Ruleset(null,null),d=this.params.slice(0),m=0;if(n=new e.evalEnv(n,[p].concat(n.frames)),i)for(i=i.slice(0),m=i.length,a=0;m>a;a++)if(o=i[a],c=o&&o.name){for(h=!1,l=0;l<d.length;l++)if(!r[l]&&c===d[l].name){r[l]=o.value.eval(t),p.prependRule(new e.Rule(c,o.value.eval(t))),h=!0;break}if(h){i.splice(a,1),a--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+i[a].name+" not found"}}for(f=0,a=0;a<d.length;a++)if(!r[a]){if(o=i&&i[f],c=d[a].name)if(d[a].variadic){for(s=[],l=f;m>l;l++)s.push(i[l].value.eval(t));p.prependRule(new e.Rule(c,new e.Expression(s).eval(t)))}else{if(u=o&&o.value)u=u.eval(t);else{if(!d[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+m+" for "+this.arity+")"};u=d[a].value.eval(n),p.resetCache()}p.prependRule(new e.Rule(c,u)),r[a]=u}if(d[a].variadic&&i)for(l=f;m>l;l++)r[l]=i[l].value.eval(t);f++}return p},eval:function(t){return new e.mixin.Definition(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||t.frames.slice(0))},evalCall:function(t,n,i){var r,s,o=[],a=this.frames?this.frames.concat(t.frames):t.frames,l=this.evalParams(t,new e.evalEnv(t,a),n,o);return l.prependRule(new e.Rule("@arguments",new e.Expression(o).eval(t))),r=this.rules.slice(0),s=new e.Ruleset(null,r),s.originalRuleset=this,s=s.eval(new e.evalEnv(t,[this,l].concat(a))),i&&(s=this.parent.makeImportant.apply(s)),s},matchCondition:function(t,n){return this.condition&&!this.condition.eval(new e.evalEnv(n,[this.evalParams(n,new e.evalEnv(n,this.frames.concat(n.frames)),t,[])].concat(this.frames).concat(n.frames)))?!1:!0},matchArgs:function(e,t){var n,i=e&&e.length||0;if(this.variadic){if(i<this.required-1)return!1}else{if(i<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(i,this.arity);for(var r=0;n>r;r++)if(!this.params[r].name&&!this.params[r].variadic&&e[r].value.eval(t).toCSS()!=this.params[r].value.eval(t).toCSS())return!1;return!0}}}(n("../tree")),function(e){e.Negative=function(e){this.value=e},e.Negative.prototype={type:"Negative",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},toCSS:e.toCSS,eval:function(t){return t.isMathOn()?new e.Operation("*",[new e.Dimension(-1),this.value]).eval(t):new e.Negative(this.value.eval(t))}}}(n("../tree")),function(e){e.Operation=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n},e.Operation.prototype={type:"Operation",accept:function(e){this.operands=e.visit(this.operands)},eval:function(t){var n=this.operands[0].eval(t),i=this.operands[1].eval(t);if(t.isMathOn()){if(n instanceof e.Dimension&&i instanceof e.Color&&(n=n.toColor()),i instanceof e.Dimension&&n instanceof e.Color&&(i=i.toColor()),!n.operate)throw{type:"Operation",message:"Operation on an invalid type"};return n.operate(t,this.op,i)}return new e.Operation(this.op,[n,i],this.isSpaced)},genCSS:function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)},toCSS:e.toCSS},e.operate=function(e,t,n,i){switch(t){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"/":return n/i}}}(n("../tree")),function(e){e.Paren=function(e){this.value=e},e.Paren.prototype={type:"Paren",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},toCSS:e.toCSS,eval:function(t){return new e.Paren(this.value.eval(t))}}}(n("../tree")),function(e){e.Quoted=function(e,t,n,i,r){this.escaped=n,this.value=t||"",this.quote=e.charAt(0),this.index=i,this.currentFileInfo=r},e.Quoted.prototype={type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.currentFileInfo,this.index),t.add(this.value),this.escaped||t.add(this.quote)},toCSS:e.toCSS,eval:function(t){var n=this,i=this.value.replace(/`([^`]+)`/g,function(i,r){return new e.JavaScript(r,n.index,!0).eval(t).value}).replace(/@\{([\w-]+)\}/g,function(i,r){var s=new e.Variable("@"+r,n.index,n.currentFileInfo).eval(t,!0);return s instanceof e.Quoted?s.value:s.toCSS()});return new e.Quoted(this.quote+i+this.quote,i,this.escaped,this.index,this.currentFileInfo)},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1}}}(n("../tree")),function(e){function t(e,t){var n,i="",r=t.length,s={add:function(e){i+=e}};for(n=0;r>n;n++)t[n].eval(e).genCSS(e,s);return i}e.Rule=function(t,n,i,r,s,o,a){this.name=t,this.value=n instanceof e.Value||n instanceof e.Ruleset?n:new e.Value([n]),this.important=i?" "+i.trim():"",this.merge=r,this.index=s,this.currentFileInfo=o,this.inline=a||!1,this.variable=t.charAt&&"@"===t.charAt(0)},e.Rule.prototype={type:"Rule",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(e,t)}catch(n){throw n.index=this.index,n.filename=this.currentFileInfo.filename,n}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this.currentFileInfo,this.index)},toCSS:e.toCSS,eval:function(n){var i,r=!1,s=this.name;"string"!=typeof s&&(s=1===s.length&&s[0]instanceof e.Keyword?s[0].value:t(n,s)),"font"!==s||n.strictMath||(r=!0,n.strictMath=!0);try{if(i=this.value.eval(n),!this.variable&&"DetachedRuleset"===i.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.index,filename:this.currentFileInfo.filename};return new e.Rule(s,i,this.important,this.merge,this.index,this.currentFileInfo,this.inline)}catch(o){throw"number"!=typeof o.index&&(o.index=this.index,o.filename=this.currentFileInfo.filename),o}finally{r&&(n.strictMath=!1)}},makeImportant:function(){return new e.Rule(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)}}}(n("../tree")),function(e){e.RulesetCall=function(e){this.variable=e},e.RulesetCall.prototype={type:"RulesetCall",accept:function(){},eval:function(t){var n=new e.Variable(this.variable).eval(t);return n.callEval(t)}}}(n("../tree")),function(e){e.Ruleset=function(e,t,n){this.selectors=e,this.rules=t,this._lookups={},this.strictImports=n},e.Ruleset.prototype={type:"Ruleset",accept:function(e){this.paths?e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},eval:function(t){var n,i,r,s,o=this.selectors,a=e.defaultFunc,l=!1;if(o&&(i=o.length)){for(n=[],a.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),s=0;i>s;s++)r=o[s].eval(t),n.push(r),r.evaldCondition&&(l=!0);a.reset()}else l=!0;var u,c,h=this.rules?this.rules.slice(0):null,f=new e.Ruleset(n,h,this.strictImports);f.originalRuleset=this,f.root=this.root,f.firstRoot=this.firstRoot,f.allowImports=this.allowImports,this.debugInfo&&(f.debugInfo=this.debugInfo),l||(h.length=0);var p=t.frames;p.unshift(f);var d=t.selectors;d||(t.selectors=d=[]),d.unshift(this.selectors),(f.root||f.allowImports||!f.strictImports)&&f.evalImports(t);var m=f.rules,v=m?m.length:0;for(s=0;v>s;s++)(m[s]instanceof e.mixin.Definition||m[s]instanceof e.DetachedRuleset)&&(m[s]=m[s].eval(t));var g=t.mediaBlocks&&t.mediaBlocks.length||0;for(s=0;v>s;s++)m[s]instanceof e.mixin.Call?(h=m[s].eval(t).filter(function(t){return t instanceof e.Rule&&t.variable?!f.variable(t.name):!0}),m.splice.apply(m,[s,1].concat(h)),v+=h.length-1,s+=h.length-1,f.resetCache()):m[s]instanceof e.RulesetCall&&(h=m[s].eval(t).rules.filter(function(t){return t instanceof e.Rule&&t.variable?!1:!0}),m.splice.apply(m,[s,1].concat(h)),v+=h.length-1,s+=h.length-1,f.resetCache());for(s=0;s<m.length;s++)u=m[s],u instanceof e.mixin.Definition||u instanceof e.DetachedRuleset||(m[s]=u=u.eval?u.eval(t):u);for(s=0;s<m.length;s++)if(u=m[s],u instanceof e.Ruleset&&u.selectors&&1===u.selectors.length&&u.selectors[0].isJustParentSelector()){m.splice(s--,1);for(var y=0;y<u.rules.length;y++)c=u.rules[y],c instanceof e.Rule&&c.variable||m.splice(++s,0,c)}if(p.shift(),d.shift(),t.mediaBlocks)for(s=g;s<t.mediaBlocks.length;s++)t.mediaBlocks[s].bubbleSelectors(n);return f},evalImports:function(t){var n,i,r=this.rules;if(r)for(n=0;n<r.length;n++)r[n]instanceof e.Import&&(i=r[n].eval(t),i&&i.length?(r.splice.apply(r,[n,1].concat(i)),n+=i.length-1):r.splice(n,1,i),this.resetCache())},makeImportant:function(){return new e.Ruleset(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports)},matchArgs:function(e){return!e||0===e.length},matchCondition:function(t,n){var i=this.selectors[this.selectors.length-1];return i.evaldCondition?i.condition&&!i.condition.eval(new e.evalEnv(n,n.frames))?!1:!0:!1},resetCache:function(){this._rulesets=null,this._variables=null,this._lookups={}},variables:function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(t,n){return n instanceof e.Rule&&n.variable===!0&&(t[n.name]=n),t},{}):{}),this._variables},variable:function(e){return this.variables()[e]},rulesets:function(){if(!this.rules)return null;var t,n,i=e.Ruleset,r=e.mixin.Definition,s=[],o=this.rules,a=o.length;for(t=0;a>t;t++)n=o[t],(n instanceof i||n instanceof r)&&s.push(n);return s},prependRule:function(e){var t=this.rules;t?t.unshift(e):this.rules=[e]},find:function(t,n){n=n||this;var i,r=[],s=t.toCSS();return s in this._lookups?this._lookups[s]:(this.rulesets().forEach(function(s){if(s!==n)for(var o=0;o<s.selectors.length;o++)if(i=t.match(s.selectors[o])){t.elements.length>i?Array.prototype.push.apply(r,s.find(new e.Selector(t.elements.slice(i)),n)):r.push(s);break}}),this._lookups[s]=r,r)},genCSS:function(t,n){var i,r,s,o,a,l,u=[],c=[];t.tabLevel=t.tabLevel||0,this.root||t.tabLevel++;var h,f=t.compress?"":Array(t.tabLevel+1).join(" "),p=t.compress?"":Array(t.tabLevel).join(" ");for(i=0;i<this.rules.length;i++)a=this.rules[i],a.rules||a instanceof e.Media||a instanceof e.Directive||this.root&&a instanceof e.Comment?c.push(a):u.push(a);if(!this.root){o=e.debugInfo(t,this,p),o&&(n.add(o),n.add(p));var d,m=this.paths,v=m.length;for(h=t.compress?",":",\n"+p,i=0;v>i;i++)if(l=m[i],d=l.length)for(i>0&&n.add(h),t.firstSelector=!0,l[0].genCSS(t,n),t.firstSelector=!1,r=1;d>r;r++)l[r].genCSS(t,n);n.add((t.compress?"{":" {\n")+f)}for(i=0;i<u.length;i++)a=u[i],i+1!==u.length||this.root&&0!==c.length&&!this.firstRoot||(t.lastRule=!0),a.genCSS?a.genCSS(t,n):a.value&&n.add(a.value.toString()),t.lastRule?t.lastRule=!1:n.add(t.compress?"":"\n"+f);if(this.root||(n.add(t.compress?"}":"\n"+p+"}"),t.tabLevel--),h=(t.compress?"":"\n")+(this.root?f:p),s=c.length)for(u.length&&h&&n.add(h),c[0].genCSS(t,n),i=1;s>i;i++)h&&n.add(h),c[i].genCSS(t,n);n.isEmpty()||t.compress||!this.firstRoot||n.add("\n")},toCSS:e.toCSS,markReferenced:function(){if(this.selectors)for(var e=0;e<this.selectors.length;e++)this.selectors[e].markReferenced()},joinSelectors:function(e,t,n){for(var i=0;i<n.length;i++)this.joinSelector(e,t,n[i])},joinSelector:function(t,n,i){var r,s,o,a,l,u,c,h,f,p,d,m,v,g,y;for(r=0;r<i.elements.length;r++)u=i.elements[r],"&"===u.value&&(a=!0);if(a){for(g=[],l=[[]],r=0;r<i.elements.length;r++)if(u=i.elements[r],"&"!==u.value)g.push(u);else{for(y=[],g.length>0&&this.mergeElementsOnToSelectors(g,l),s=0;s<l.length;s++)if(c=l[s],0===n.length)c.length>0&&(c[0].elements=c[0].elements.slice(0),c[0].elements.push(new e.Element(u.combinator,"",u.index,u.currentFileInfo))),y.push(c);else for(o=0;o<n.length;o++)h=n[o],f=[],p=[],m=!0,c.length>0?(f=c.slice(0),v=f.pop(),d=i.createDerived(v.elements.slice(0)),m=!1):d=i.createDerived([]),h.length>1&&(p=p.concat(h.slice(1))),h.length>0&&(m=!1,d.elements.push(new e.Element(u.combinator,h[0].elements[0].value,u.index,u.currentFileInfo)),d.elements=d.elements.concat(h[0].elements.slice(1))),m||f.push(d),f=f.concat(p),y.push(f);l=y,g=[]}for(g.length>0&&this.mergeElementsOnToSelectors(g,l),r=0;r<l.length;r++)l[r].length>0&&t.push(l[r])}else if(n.length>0)for(r=0;r<n.length;r++)t.push(n[r].concat(i));else t.push([i])},mergeElementsOnToSelectors:function(t,n){var i,r;if(0===n.length)return void n.push([new e.Selector(t)]);for(i=0;i<n.length;i++)r=n[i],r.length>0?r[r.length-1]=r[r.length-1].createDerived(r[r.length-1].elements.concat(t)):r.push(new e.Selector(t))}}}(n("../tree")),function(e){e.Selector=function(e,t,n,i,r,s){this.elements=e,this.extendList=t,this.condition=n,this.currentFileInfo=r||{},this.isReferenced=s,n||(this.evaldCondition=!0)},e.Selector.prototype={type:"Selector",accept:function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},createDerived:function(t,n,i){i=null!=i?i:this.evaldCondition;var r=new e.Selector(t,n||this.extendList,null,this.index,this.currentFileInfo,this.isReferenced);return r.evaldCondition=i,r.mediaEmpty=this.mediaEmpty,r},match:function(e){var t,n,i=this.elements,r=i.length;if(e.CacheElements(),t=e._elements.length,0===t||t>r)return 0;for(n=0;t>n;n++)if(i[n].value!==e._elements[n])return 0;return t},CacheElements:function(){var e,t,n,i="";if(!this._elements){for(e=this.elements.length,n=0;e>n;n++)if(t=this.elements[n],i+=t.combinator.value,t.value.value){if("string"!=typeof t.value.value){i="";break}i+=t.value.value}else i+=t.value;this._elements=i.match(/[,&#\.\w-]([\w-]|(\\.))*/g),this._elements?"&"===this._elements[0]&&this._elements.shift():this._elements=[]}},isJustParentSelector:function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},eval:function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,i=this.extendList;return n=n&&n.map(function(t){return t.eval(e)}),i=i&&i.map(function(t){return t.eval(e)}),this.createDerived(n,i,t)},genCSS:function(e,t){var n,i;if(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.currentFileInfo,this.index),!this._css)for(n=0;n<this.elements.length;n++)i=this.elements[n],i.genCSS(e,t)},toCSS:e.toCSS,markReferenced:function(){this.isReferenced=!0},getIsReferenced:function(){return!this.currentFileInfo.reference||this.isReferenced},getIsOutput:function(){return this.evaldCondition}}}(n("../tree")),function(e){e.UnicodeDescriptor=function(e){this.value=e},e.UnicodeDescriptor.prototype={type:"UnicodeDescriptor",genCSS:function(e,t){t.add(this.value)},toCSS:e.toCSS,eval:function(){return this}}}(n("../tree")),function(e){e.URL=function(e,t,n){this.value=e,this.currentFileInfo=t,this.isEvald=n},e.URL.prototype={type:"Url",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},toCSS:e.toCSS,eval:function(t){var n,i=this.value.eval(t);if(!this.isEvald&&(n=this.currentFileInfo&&(this.currentFileInfo.currentDirectory||this.currentFileInfo.rootpath),n&&"string"==typeof i.value&&t.isPathRelative(i.value)&&(i.quote||(n=n.replace(/[\(\)'"\s]/g,function(e){return"\\"+e})),i.value=n+i.value),i.value=t.normalizePath(i.value),t.urlArgs&&!i.value.match(/^\s*data:/))){var r=-1===i.value.indexOf("?")?"?":"&",s=r+t.urlArgs;-1!==i.value.indexOf("#")?i.value=i.value.replace("#",s+"#"):i.value+=s}return new e.URL(i,this.currentFileInfo,!0)}}}(n("../tree")),function(e){e.Value=function(e){this.value=e},e.Value.prototype={type:"Value",accept:function(e){this.value&&(this.value=e.visitArray(this.value))},eval:function(t){return 1===this.value.length?this.value[0].eval(t):new e.Value(this.value.map(function(e){return e.eval(t)}))},genCSS:function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")},toCSS:e.toCSS}}(n("../tree")),function(e){e.Variable=function(e,t,n){this.name=e,this.index=t,this.currentFileInfo=n||{}},e.Variable.prototype={type:"Variable",eval:function(t){var n,i=this.name;if(0===i.indexOf("@@")&&(i="@"+new e.Variable(i.slice(1)).eval(t).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+i,filename:this.currentFileInfo.file,index:this.index};if(this.evaluating=!0,n=e.find(t.frames,function(e){var n=e.variable(i);return n?n.value.eval(t):void 0}))return this.evaluating=!1,n;throw{type:"Name",message:"variable "+i+" is undefined",filename:this.currentFileInfo.filename,index:this.index}}}}(n("../tree")),function(e){var t=["paths","optimization","files","contents","contentsIgnoredChars","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","processImports","syncImport","javascriptEnabled","mime","useFileCache","currentFileInfo"];e.parseEnv=function(e){if(i(e,this,t),this.contents||(this.contents={}),this.contentsIgnoredChars||(this.contentsIgnoredChars={}),this.files||(this.files={}),!this.currentFileInfo){var n=e&&e.filename||"input",r=n.replace(/[^\/\\]*$/,"");e&&(e.filename=null),this.currentFileInfo={filename:n,relativeUrls:this.relativeUrls,rootpath:e&&e.rootpath||"",currentDirectory:r,entryPath:r,rootFilename:n}}};var n=["silent","verbose","compress","yuicompress","ieCompat","strictMath","strictUnits","cleancss","sourceMap","importMultiple","urlArgs"];e.evalEnv=function(e,t){i(e,this,n),this.frames=t||[]},e.evalEnv.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},e.evalEnv.prototype.outOfParenthesis=function(){this.parensStack.pop()},e.evalEnv.prototype.isMathOn=function(){return this.strictMath?this.parensStack&&this.parensStack.length:!0},e.evalEnv.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/)/.test(e)},e.evalEnv.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")};var i=function(e,t,n){if(e)for(var i=0;i<n.length;i++)e.hasOwnProperty(n[i])&&(t[n[i]]=e[n[i]])}}(n("./tree")),function(e){function t(e){return e}function n(e,t){var i,r;for(i in e)if(e.hasOwnProperty(i))switch(r=e[i],typeof r){case"function":r.prototype&&r.prototype.type&&(r.prototype.typeIndex=t++);break;case"object":t=n(r,t)}return t}var i={visitDeeper:!0},r=!1;e.visitor=function(t){this._implementation=t,this._visitFnCache=[],r||(n(e,1),r=!0)},e.visitor.prototype={visit:function(e){if(!e)return e;var n=e.typeIndex;if(!n)return e;var r,s=this._visitFnCache,o=this._implementation,a=n<<1,l=1|a,u=s[a],c=s[l],h=i;if(h.visitDeeper=!0,u||(r="visit"+e.type,u=o[r]||t,c=o[r+"Out"]||t,s[a]=u,s[l]=c),u!==t){var f=u.call(o,e,h);o.isReplacing&&(e=f)}return h.visitDeeper&&e&&e.accept&&e.accept(this),c!=t&&c.call(o,e),e},visitArray:function(e,t){if(!e)return e;var n,i=e.length;if(t||!this._implementation.isReplacing){for(n=0;i>n;n++)this.visit(e[n]);return e}var r=[];for(n=0;i>n;n++){var s=this.visit(e[n]);s.splice?s.length&&this.flatten(s,r):r.push(s)}return r},flatten:function(e,t){t||(t=[]);var n,i,r,s,o,a;for(i=0,n=e.length;n>i;i++)if(r=e[i],r.splice)for(o=0,s=r.length;s>o;o++)a=r[o],a.splice?a.length&&this.flatten(a,t):t.push(a);else t.push(r);return t}}}(n("./tree")),function(e){e.importVisitor=function(t,n,i,r,s){if(this._visitor=new e.visitor(this),this._importer=t,this._finish=n,this.env=i||new e.evalEnv,this.importCount=0,this.onceFileDetectionMap=r||{},this.recursionDetector={},s)for(var o in s)s.hasOwnProperty(o)&&(this.recursionDetector[o]=!0)},e.importVisitor.prototype={isReplacing:!0,run:function(e){var t;try{this._visitor.visit(e)}catch(n){t=n}this.isFinished=!0,0===this.importCount&&this._finish(t)},visitImport:function(t,n){var i,r=this,s=t.options.inline;if(!t.css||s){try{i=t.evalForImport(this.env)}catch(o){o.filename||(o.index=t.index,o.filename=t.currentFileInfo.filename),t.css=!0,t.error=o}if(i&&(!i.css||s)){t=i,this.importCount++;var a=new e.evalEnv(this.env,this.env.frames.slice(0));t.options.multiple&&(a.importMultiple=!0),this._importer.push(t.getPath(),t.currentFileInfo,t.options,function(n,i,o,l){n&&!n.filename&&(n.index=t.index,n.filename=t.currentFileInfo.filename),a.importMultiple||(t.skip=o?!0:function(){return l in r.onceFileDetectionMap?!0:(r.onceFileDetectionMap[l]=!0,!1)});var u=function(e){r.importCount--,0===r.importCount&&r.isFinished&&r._finish(e)};if(i){t.root=i,t.importedFilename=l;var c=o||l in r.recursionDetector;if(!s&&(a.importMultiple||!c))return r.recursionDetector[l]=!0,void new e.importVisitor(r._importer,u,a,r.onceFileDetectionMap,r.recursionDetector).run(i)}u()})}}return n.visitDeeper=!1,t},visitRule:function(e,t){return t.visitDeeper=!1,e},visitDirective:function(e){return this.env.frames.unshift(e),e},visitDirectiveOut:function(){this.env.frames.shift()},visitMixinDefinition:function(e){return this.env.frames.unshift(e),e},visitMixinDefinitionOut:function(){this.env.frames.shift()},visitRuleset:function(e){return this.env.frames.unshift(e),e},visitRulesetOut:function(){this.env.frames.shift()},visitMedia:function(e){return this.env.frames.unshift(e.ruleset),e},visitMediaOut:function(){this.env.frames.shift()}}}(n("./tree")),function(e){e.joinSelectorVisitor=function(){this.contexts=[[]],this._visitor=new e.visitor(this)},e.joinSelectorVisitor.prototype={run:function(e){return this._visitor.visit(e)},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e){var t,n=this.contexts[this.contexts.length-1],i=[];this.contexts.push(i),e.root||(t=e.selectors,t&&(t=t.filter(function(e){return e.getIsOutput()}),e.selectors=t.length?t:t=null,t&&e.joinSelectors(i,n,t)),t||(e.rules=null),e.paths=i)},visitRulesetOut:function(){this.contexts.length=this.contexts.length-1},visitMedia:function(e){var t=this.contexts[this.contexts.length-1];e.rules[0].root=0===t.length||t[0].multiMedia}}}(n("./tree")),function(e){e.toCSSVisitor=function(t){this._visitor=new e.visitor(this),this._env=t},e.toCSSVisitor.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitRule:function(e){return e.variable?[]:e},visitMixinDefinition:function(e){return e.frames=[],[]},visitExtend:function(){return[]},visitComment:function(e){return e.isSilent(this._env)?[]:e},visitMedia:function(e,t){return e.accept(this._visitor),t.visitDeeper=!1,e.rules.length?e:[]},visitDirective:function(t){if(t.currentFileInfo.reference&&!t.isReferenced)return[];if("@charset"===t.name){if(this.charset){if(t.debugInfo){var n=new e.Comment("/* "+t.toCSS(this._env).replace(/\n/g,"")+" */\n");return n.debugInfo=t.debugInfo,this._visitor.visit(n)}return[]}this.charset=!0}return t},checkPropertiesInRoot:function(t){for(var n,i=0;i<t.length;i++)if(n=t[i],n instanceof e.Rule&&!n.variable)throw{message:"properties must be inside selector blocks, they cannot be in the root.",index:n.index,filename:n.currentFileInfo?n.currentFileInfo.filename:null}},visitRuleset:function(t,n){var i,r=[];if(t.firstRoot&&this.checkPropertiesInRoot(t.rules),t.root)t.accept(this._visitor),n.visitDeeper=!1,(t.firstRoot||t.rules&&t.rules.length>0)&&r.splice(0,0,t);else{t.paths&&(t.paths=t.paths.filter(function(t){var n;for(" "===t[0].elements[0].combinator.value&&(t[0].elements[0].combinator=new e.Combinator("")),n=0;n<t.length;n++)if(t[n].getIsReferenced()&&t[n].getIsOutput())return!0;return!1}));for(var s=t.rules,o=s?s.length:0,a=0;o>a;)i=s[a],i&&i.rules?(r.push(this._visitor.visit(i)),s.splice(a,1),o--):a++;o>0?t.accept(this._visitor):t.rules=null,n.visitDeeper=!1,s=t.rules,s&&(this._mergeRules(s),s=t.rules),s&&(this._removeDuplicateRules(s),s=t.rules),s&&s.length>0&&t.paths.length>0&&r.splice(0,0,t)}return 1===r.length?r[0]:r},_removeDuplicateRules:function(t){if(t){var n,i,r,s={};for(r=t.length-1;r>=0;r--)if(i=t[r],i instanceof e.Rule)if(s[i.name]){n=s[i.name],n instanceof e.Rule&&(n=s[i.name]=[s[i.name].toCSS(this._env)]);var o=i.toCSS(this._env);-1!==n.indexOf(o)?t.splice(r,1):n.push(o)}else s[i.name]=i}},_mergeRules:function(t){if(t){for(var n,i,r,s={},o=0;o<t.length;o++)i=t[o],i instanceof e.Rule&&i.merge&&(r=[i.name,i.important?"!":""].join(","),s[r]?t.splice(o--,1):s[r]=[],s[r].push(i));Object.keys(s).map(function(t){function r(t){return new e.Expression(t.map(function(e){return e.value}))}function o(t){return new e.Value(t.map(function(e){return e}))}if(n=s[t],n.length>1){i=n[0];var a=[],l=[];n.map(function(e){"+"===e.merge&&(l.length>0&&a.push(r(l)),l=[]),l.push(e)}),a.push(r(l)),i.value=o(a)}})}}}}(n("./tree")),function(e){e.extendFinderVisitor=function(){this._visitor=new e.visitor(this),this.contexts=[],this.allExtendsStack=[[]]},e.extendFinderVisitor.prototype={run:function(e){return e=this._visitor.visit(e),e.allExtends=this.allExtendsStack[0],e},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(t){if(!t.root){var n,i,r,s,o=[],a=t.rules,l=a?a.length:0;for(n=0;l>n;n++)t.rules[n]instanceof e.Extend&&(o.push(a[n]),t.extendOnEveryPath=!0);var u=t.paths;for(n=0;n<u.length;n++){var c=u[n],h=c[c.length-1],f=h.extendList;for(s=f?f.slice(0).concat(o):o,s&&(s=s.map(function(e){return e.clone()})),i=0;i<s.length;i++)this.foundExtends=!0,r=s[i],r.findSelfSelectors(c),r.ruleset=t,0===i&&(r.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(r)}this.contexts.push(t.selectors)}},visitRulesetOut:function(e){e.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(e){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}},e.processExtendsVisitor=function(){this._visitor=new e.visitor(this)},e.processExtendsVisitor.prototype={run:function(t){var n=new e.extendFinderVisitor;return n.run(t),n.foundExtends?(t.allExtends=t.allExtends.concat(this.doExtendChaining(t.allExtends,t.allExtends)),this.allExtendsStack=[t.allExtends],this._visitor.visit(t)):t},doExtendChaining:function(t,n,i){var r,s,o,a,l,u,c,h,f=[],p=this;for(i=i||0,r=0;r<t.length;r++)for(s=0;s<n.length;s++)u=t[r],c=n[s],u.parent_ids.indexOf(c.object_id)>=0||(l=[c.selfSelectors[0]],o=p.findMatch(u,l),o.length&&u.selfSelectors.forEach(function(t){a=p.extendSelector(o,l,t),h=new e.Extend(c.selector,c.option,0),h.selfSelectors=a,a[a.length-1].extendList=[h],f.push(h),h.ruleset=c.ruleset,h.parent_ids=h.parent_ids.concat(c.parent_ids,u.parent_ids),c.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))}));if(f.length){if(this.extendChainCount++,i>100){var d="{unable to calculate}",m="{unable to calculate}";try{d=f[0].selfSelectors[0].toCSS(),m=f[0].selector.toCSS()}catch(v){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+d+":extend("+m+")"}}return f.concat(p.doExtendChaining(f,n,i+1))}return f},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e){if(!e.root){var t,n,i,r,s=this.allExtendsStack[this.allExtendsStack.length-1],o=[],a=this;for(i=0;i<s.length;i++)for(n=0;n<e.paths.length;n++)if(r=e.paths[n],!e.extendOnEveryPath){var l=r[r.length-1].extendList;l&&l.length||(t=this.findMatch(s[i],r),t.length&&s[i].selfSelectors.forEach(function(e){o.push(a.extendSelector(t,r,e))}))}e.paths=e.paths.concat(o)}},findMatch:function(e,t){var n,i,r,s,o,a,l,u=this,c=e.selector.elements,h=[],f=[];for(n=0;n<t.length;n++)for(i=t[n],r=0;r<i.elements.length;r++)for(s=i.elements[r],(e.allowBefore||0===n&&0===r)&&h.push({pathIndex:n,index:r,matched:0,initialCombinator:s.combinator}),a=0;a<h.length;a++)l=h[a],o=s.combinator.value,""===o&&0===r&&(o=" "),!u.isElementValuesEqual(c[l.matched].value,s.value)||l.matched>0&&c[l.matched].combinator.value!==o?l=null:l.matched++,l&&(l.finished=l.matched===c.length,l.finished&&!e.allowAfter&&(r+1<i.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=c.length,l.endPathIndex=n,l.endPathElementIndex=r+1,h.length=0,f.push(l)):(h.splice(a,1),a--); return f},isElementValuesEqual:function(t,n){if("string"==typeof t||"string"==typeof n)return t===n;if(t instanceof e.Attribute)return t.op!==n.op||t.key!==n.key?!1:t.value&&n.value?(t=t.value.value||t.value,n=n.value.value||n.value,t===n):t.value||n.value?!1:!0;if(t=t.value,n=n.value,t instanceof e.Selector){if(!(n instanceof e.Selector)||t.elements.length!==n.elements.length)return!1;for(var i=0;i<t.elements.length;i++){if(t.elements[i].combinator.value!==n.elements[i].combinator.value&&(0!==i||(t.elements[i].combinator.value||" ")!==(n.elements[i].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(t.elements[i].value,n.elements[i].value))return!1}return!0}return!1},extendSelector:function(t,n,i){var r,s,o,a,l,u=0,c=0,h=[];for(r=0;r<t.length;r++)a=t[r],s=n[a.pathIndex],o=new e.Element(a.initialCombinator,i.elements[0].value,i.elements[0].index,i.elements[0].currentFileInfo),a.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(n[u].elements.slice(c)),c=0,u++),l=s.elements.slice(c,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&r>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(n.slice(u,a.pathIndex)),h.push(new e.Selector(l))),u=a.endPathIndex,c=a.endPathElementIndex,c>=n[u].elements.length&&(c=0,u++);return u<n.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(n[u].elements.slice(c)),u++),h=h.concat(n.slice(u,n.length))},visitRulesetOut:function(){},visitMedia:function(e){var t=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);t=t.concat(this.doExtendChaining(t,e.allExtends)),this.allExtendsStack.push(t)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e){var t=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);t=t.concat(this.doExtendChaining(t,e.allExtends)),this.allExtendsStack.push(t)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}}}(n("./tree")),function(e){e.sourceMapOutput=function(e){this._css=[],this._rootNode=e.rootNode,this._writeSourceMap=e.writeSourceMap,this._contentsMap=e.contentsMap,this._contentsIgnoredCharsMap=e.contentsIgnoredCharsMap,this._sourceMapFilename=e.sourceMapFilename,this._outputFilename=e.outputFilename,this._sourceMapURL=e.sourceMapURL,e.sourceMapBasepath&&(this._sourceMapBasepath=e.sourceMapBasepath.replace(/\\/g,"/")),this._sourceMapRootpath=e.sourceMapRootpath,this._outputSourceFiles=e.outputSourceFiles,this._sourceMapGeneratorConstructor=e.sourceMapGenerator||n("source-map").SourceMapGenerator,this._sourceMapRootpath&&"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/"),this._lineNumber=0,this._column=0},e.sourceMapOutput.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&(e=e.substring(this._sourceMapBasepath.length),("\\"===e.charAt(0)||"/"===e.charAt(0))&&(e=e.substring(1))),(this._sourceMapRootpath||"")+e},e.sourceMapOutput.prototype.add=function(e,t,n,i){if(e){var r,s,o,a,l;if(t){var u=this._contentsMap[t.filename];this._contentsIgnoredCharsMap[t.filename]&&(n-=this._contentsIgnoredCharsMap[t.filename],0>n&&(n=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),u=u.substring(0,n),s=u.split("\n"),a=s[s.length-1]}if(r=e.split("\n"),o=r[r.length-1],t)if(i)for(l=0;l<r.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:s.length+l,column:0===l?a.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:s.length,column:a.length},source:this.normalizeFilename(t.filename)});1===r.length?this._column+=o.length:(this._lineNumber+=r.length-1,this._column=o.length),this._css.push(e)}},e.sourceMapOutput.prototype.isEmpty=function(){return 0===this._css.length},e.sourceMapOutput.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var i,r=JSON.stringify(this._sourceMapGenerator.toJSON());this._sourceMapURL?i=this._sourceMapURL:this._sourceMapFilename&&(i=this.normalizeFilename(this._sourceMapFilename)),this._writeSourceMap?this._writeSourceMap(r):i="data:application/json,"+encodeURIComponent(r),i&&this._css.push("/*# sourceMappingURL="+i+" */")}return this._css.join("")}}(n("./tree"));var k=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);C.env=C.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port&&location.port.length>0||k?"development":"production");var R={debug:3,info:2,errors:1,none:0};if(C.logLevel="undefined"!=typeof C.logLevel?C.logLevel:"development"===C.env?R.debug:R.errors,C.async=C.async||!1,C.fileAsync=C.fileAsync||!1,C.poll=C.poll||(k?1e3:1500),C.functions)for(var F in C.functions)C.functions.hasOwnProperty(F)&&(C.tree.functions[F]=C.functions[F]);var A=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);A&&(C.dumpLineNumbers=A[1]);var M=/^text\/(x-)?less$/,E={storage:{},getItem:function(e){return this.storage[e]||""},setItem:function(e,t){return this.storage[e]=t}},_={};C.watch=function(){return C.watchMode||(C.env="development",x()),this.watchMode=!0,!0},C.unwatch=function(){return clearInterval(C.watchTimer),this.watchMode=!1,!1};var D=document.getElementsByTagName("link");C.sheets=[];for(var O=0;O<D.length;O++)("stylesheet/less"===D[O].rel||D[O].rel.match(/stylesheet/)&&D[O].type.match(M))&&C.sheets.push(D[O]);C.modifyVars=function(e){C.refresh(!1,e)},C.refresh=function(e,t){var n,r;n=r=new Date,"undefined"!=typeof T3Theme&&T3Theme.onCompile(0,C.sheets.length),w(function(e,t,s,l,c){if(e)return u(e,l.href);if(c.local)i("loading "+l.href+" from cache.",R.info);else{i("parsed "+l.href+" successfully.",R.debug);var h=t.toCSS(C);h=a(h),o(h,l,c.lastModified)}i("css for "+l.href+" generated in "+(new Date-r)+"ms",R.info),0===c.remaining&&i("less has finished. css generated in "+(new Date-n)+"ms",R.info),"undefined"!=typeof T3Theme&&T3Theme.onCompile(C.sheets.length-c.remaining,C.sheets.length),r=new Date},e,t),p(t)},C.refreshStyles=p,C.Parser.fileLoader=S,"function"==typeof define&&define.amd&&define(function(){return C})}(window);