text: !function(e,t){function n(t){return e.less[t.split("/")[1]]}function i(e,t){"undefined"!=typeof console&&x.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");u.setAttribute("type","text/css"),t.media&&u.setAttribute("media",t.media),u.id=o,u.styleSheet||(u.appendChild(document.createTextNode(e)),l=null!==a&&a.childNodes.length>0&&u.childNodes.length>0&&a.firstChild.nodeValue===u.firstChild.nodeValue);var c=document.getElementsByTagName("head")[0];if(null===a||l===!1){var h=t&&t.nextSibling||null;h?h.parentNode.insertBefore(u,h):c.appendChild(u)}if(a&&l===!1&&a.parentNode.removeChild(a),u.styleSheet)try{u.styleSheet.cssText=e}catch(f){throw new Error("Couldn't reassign styleSheet.cssText.")}if(n&&E){i("saving "+s+" to cache.",R.info);try{E.setItem(s,e),E.setItem(s+":timestamp",n)}catch(f){i("failed to save",R.errors)}}}function a(e){return x.postProcessor&&"function"==typeof x.postProcessor&&(e=x.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"==x.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){x.errorReporting&&"html"!==x.errorReporting?"console"===x.errorReporting?s(e,t):"function"==typeof x.errorReporting&&x.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){x.errorReporting&&"html"!==x.errorReporting?"console"===x.errorReporting?h(e):"function"==typeof x.errorReporting&&x.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(A)){var r=new x.tree.parseEnv(x),s=t.innerHTML||"";r.filename=document.location.href.replace(/#.*$/,""),(e||x.globalVars)&&(r.useFileCache=!0);var o=function(e){return function(t,n){if(t)return u(t,"inline");var i=n.toCSS(x);e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.innerHTML=i}}(t);new x.Parser(r).parse(s,o,{globalVars:x.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 v(){if(e.XMLHttpRequest&&!("file:"===e.location.protocol&&"ActiveXObject"in e))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){return i("browser doesn't support AJAX.",R.errors),null}}function g(e,t,n,r){function s(t,n,i){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}var o=v(),a=I?x.fileAsync:x.async;"function"==typeof o.overrideMimeType&&o.overrideMimeType("text/css"),i("XHR: Getting '"+e+"'",R.debug),o.open("GET",e,a),o.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),o.send(null),I&&!x.fileAsync?0===o.status||o.status>=200&&o.status<300?n(o.responseText):r(o.status,e):a?o.onreadystatechange=function(){4==o.readyState&&s(o,n,r)}:s(o,n,r)}function y(t,n,i,r){n&&n.currentDirectory&&!/^([A-Za-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=x.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&&M[o])try{var l=M[o];i(null,l,o,a,{lastModified:new Date})}catch(u){i(u,null,o)}else g(o,r.mime,function(e,t){M[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 S(e,t,n,i,r){var s=new x.tree.parseEnv(x);s.mime=e.type,(r||x.globalVars)&&(s.useFileCache=!0),y(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 x.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:x.globalVars})):t(a,null,null,e,h,u)},s,r)}function b(e,t,n){for(var i=0;i<x.sheets.length;i++)S(x.sheets[i],e,t,x.sheets.length-(i+1),n)}function w(){"development"===x.env?(x.optimization=0,x.watchTimer=setInterval(function(){x.watchMode&&b(function(e,t,n,i,r){if(e)u(e,i.href);else if(t){var s=t.toCSS(x);s=a(s),o(s,i,r.lastModified)}})},x.poll)):x.optimization=3}("undefined"==typeof e.less||"undefined"!=typeof e.less.nodeType)&&(e.less={}),x=e.less,C=e.less.tree={},x.mode="browser";var x,C;x===t&&(x=exports,C=n("./tree"),x.mode="node"),x.Parser=function(e){function i(){E=I,D.push({current:A,i:I,j:R})}function r(){var e=D.pop();A=e.current,E=I=e.i,R=e.j}function s(){D.pop()}function o(){I>E&&(A=A.slice(I-E),E=I)}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(I)!==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){I>E&&(A=A.slice(I-E),E=I);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(I)!==e?null:(h(1),e)}function h(e){for(var t,n=I,i=R,r=I-E,s=I+A.length-r,o=I+=e,a=w;s>I&&(t=a.charCodeAt(I),!(t>32))&&(32===t||10===t||9===t||13===t);I++);return A=A.slice(e+I-o+r),E=I,!A.length&&R<F.length-1?(A=F[++R],h(0),!0):n!==I||i!==R}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(I)+"'":"unexpected token"))}function p(e,t){return w.charAt(I)===e?(h(1),e):void d(t||"expected '"+e+"' got '"+w.charAt(I)+"'")}function d(e,t){var n=new Error(e);throw n.index=I,n.type=t||"Syntax",n}function m(e){return"string"==typeof e?w.charAt(I)===e:e.test(A)}function v(e){return w.charAt(I)===e}function g(e,t){return e.filename&&t.currentFileInfo.filename&&e.filename!==t.currentFileInfo.filename?M.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"!==x.mode&&"rhino"!==x.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,I,R,k,F,A,E,M,_,D=[],O=e&&e.filename;e instanceof C.parseEnv||(e=new C.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)};x.Parser.importer?x.Parser.importer(t,n,o,e):x.Parser.fileLoader(t,n,function(t,r,s,a){if(t)return void o(t);var l=new C.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 x.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,M={imports:P,parse:function(i,r,s){var o,a,l,u,c,h=null,f="";if(I=R=E=k=0,u=s&&s.globalVars?x.Parser.serializeVars(s.globalVars)+"\n":"",c=s&&s.modifyVars?"\n"+x.Parser.serializeVars(s.modifyVars):"",(u||s&&s.banner)&&(f=(s&&s.banner?s.banner:"")+u,M.imports.contentsIgnoredChars[e.currentFileInfo.filename]=f.length),i=i.replace(/\r\n/g,"\n"),w=i=f+i.replace(/^\uFEFF/,"")+c,M.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 C.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 C.evalEnv(r);"object"!=typeof s||Array.isArray(s)||(s=Object.keys(s).map(function(e){var t=s[e];return t instanceof C.Value||(t instanceof C.Expression||(t=new C.Expression([t])),t=new C.Value([t])),new C.Rule("@"+e,t,!1,null,0)}),l.frames=[new C.Ruleset(null,s)]);try{var u,c=[],h=[new C.joinSelectorVisitor,new C.processExtendsVisitor,new C.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 C.sourceMapOutput({contentsIgnoredCharsMap:M.imports.contentsIgnoredChars,writeSourceMap:r.writeSourceMap,rootNode:o,contentsMap:M.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"===x.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),I<w.length-1){I=k;var d=y(I,w);l=w.split("\n"),a=d.line+1,h={type:"Parse",message:"Unrecognised input",index:I,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||M.imports.error,t?(t instanceof b||(t=new b(t,e)),r(t)):r(null,o)};return e.processImports===!1?m():void new C.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;return"/"===w.charAt(I)?"/"===w.charAt(I+1)?new C.Comment(u(/^\/\/.*/),!0,I,e.currentFileInfo):(t=u(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/),t?new C.Comment(t,!1,I,e.currentFileInfo):void 0):void 0},comments:function(){for(var e,t=[];e=this.comment(),e;)t.push(e);return t},entities:{quoted:function(){var t,n,i=I,r=I;return"~"===w.charAt(i)&&(i++,n=!0),'"'===w.charAt(i)||"'"===w.charAt(i)?(n&&c("~"),t=u(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/),t?new C.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=C.Color.fromKeyword(e);return t?t:new C.Keyword(e)}},call:function(){var t,n,i,r,s=I;if(t=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(A)){if(t=t[1],n=t.toLowerCase(),"url"===n)return null;if(I+=t.length,"alpha"===n&&(r=_.alpha(),"undefined"!=typeof r))return r;if(c("("),i=this.arguments(),c(")"))return t?new C.Call(t,i,s,e.currentFileInfo):void 0}},arguments:function(){for(var e,t=[];(e=this.assignment()||_.expression(),e)&&(t.push(e),c(",")););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 C.Assignment(e,t):void 0):void 0},url:function(){var t;return"u"===w.charAt(I)&&u(/^url\(/)?(t=this.quoted()||this.variable()||u(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",p(")"),new C.URL(null!=t.value||t instanceof C.Variable?t:new C.Anonymous(t),e.currentFileInfo)):void 0},variable:function(){var t,n=I;return"@"===w.charAt(I)&&(t=u(/^@@?[\w-]+/))?new C.Variable(t,n,e.currentFileInfo):void 0},variableCurly:function(){var t,n=I;return"@"===w.charAt(I)&&(t=u(/^@\{([\w-]+)\}/))?new C.Variable("@"+t[1],n,e.currentFileInfo):void 0},color:function(){var e;if("#"===w.charAt(I)&&(e=u(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))){var t=e.input.match(/^#([\w]+).*/);return t=t[1],t.match(/^[A-Fa-f0-9]+$/)||d("Invalid HEX color code"),new C.Color(e[1])}},dimension:function(){var e,t=w.charCodeAt(I);return t>57||43>t||47===t||44==t?void 0:(e=u(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/),e?new C.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 C.UnicodeDescriptor(e[0]):void 0},javascript:function(){var n,i,r=I;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 C.JavaScript(n[1],I,i):void 0):void 0}},variable:function(){var e;return"@"===w.charAt(I)&&(e=u(/^(@[\w-]+)\s*:/))?e[1]:void 0},rulesetCall:function(){var e;return"@"===w.charAt(I)&&(e=u(/^(@[\w-]+)\s*\(\s*\)\s*;/))?new C.RulesetCall(e[1]):void 0},extend:function(e){var t,n,i,r,s,o=I;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],t||d("Missing target selector for :extend()."),s=new C.Extend(new C.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(I),d=!1,m=I;if("."===f||"#"===f){for(i();t=I,a=u(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/),a;)o=new C.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 C.mixin.Call(n,h,m,e.currentFileInfo,d)):void r()}},args:function(e){var t,n,o,a,l,h,f=M.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(I)&&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 C.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 C.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(I)&&"#"!==w.charAt(I)||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 k=I,void r();if(_.comments(),u(/^when/)&&(o=f(_.conditions,"expected condition")),n=_.block())return s(),new C.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;return u(/^\(opacity=/i)?(e=u(/^\d+/)||this.entities.variable(),e?(p(")"),new C.Alpha(e)):void 0):void 0},element:function(){var t,n,o,a=I;return n=this.combinator(),t=u(/^(?:\d+\.\d+|\d+)%/)||u(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[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 C.Paren(o),s()):r():s()),t?new C.Element(n,t,a,e.currentFileInfo):void 0},combinator:function(){var e=w.charAt(I);if("/"===e){i();var t=u(/^\/[a-z]+\//i);if(t)return s(),new C.Combinator(t);r()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(I++,"^"===e&&"^"===w.charAt(I)&&(e="^^",I++);a(w,I);)I++;return new C.Combinator(e)}return new C.Combinator(a(w,I-1)?" ":null)},lessSelector:function(){return this.selector(!0)},selector:function(t){for(var n,i,r,s,o,a,l,u=I,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(I),n?n.push(s):n=[s],s=null),"{"!==r&&"}"!==r&&";"!==r&&","!==r&&")"!==r););return n?new C.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 C.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 C.Ruleset(null,e)),e},detachedRuleset:function(){var e=this.blockRuleset();return e?new C.DetachedRuleset(e):void 0},ruleset:function(){var t,n,o,a;for(i(),e.dumpLineNumbers&&(a=S(I,w,e));(n=this.lessSelector(),n)&&(t?t.push(n):t=[n],this.comments(),n.condition&&t.length>1&&d("Guards are only currently allowed on a single selector."),c(","));)n.condition&&d("Guards are only currently allowed on a single selector."),this.comments();if(t&&(o=this.block())){s();var l=new C.Ruleset(t,o,e.strictImports);return e.dumpLineNumbers&&(l.debugInfo=a),l}k=I,r()},rule:function(t){var n,o,a,l,u,c=I,h=w.charAt(c);if("."!==h&&"#"!==h&&"&"!==h)if(i(),n=this.variable()||this.ruleProperty()){if(u="string"==typeof n,u&&(o=this.detachedRuleset()),this.comments(),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 C.Rule(n,o,a,l,c,e.currentFileInfo);if(k=I,r(),o&&!t)return this.rule(!0)}else s()},anonymousValue:function(){var e;return e=/^([^@+\/'"*`(;{}-]*);/.exec(A),e?(I+=e[0].length-1,new C.Anonymous(e[1])):void 0},"import":function(){var t,n,i=I,r=u(/^@import?\s+/);if(r){var s=(r?this.importOptions():null)||{};if(t=this.entities.quoted()||this.entities.url())return n=this.mediaFeatures(),l(";")||(I=i,d("missing semi-colon or unrecognised media features on import")),n=n&&new C.Value(n),new C.Import(t,n,s,i,e.currentFileInfo);I=i,d("malformed import statement")}},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 C.Paren(new C.Rule(n,t,null,null,I,e.currentFileInfo,!0)));else{if(!t)return null;r.push(new C.Paren(t))}}while(t);return r.length>0?new C.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(I,w,e)),u(/^@media/)&&(t=this.mediaFeatures(),n=this.block())?(i=new C.Media(n,t,I,e.currentFileInfo),e.dumpLineNumbers&&(i.debugInfo=r),i):void 0},directive:function(){var t,n,o,a,l,h,f,p=I,m=!0;if("@"===w.charAt(I)){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 this.comments(),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 C.Anonymous(n))),this.comments(),m&&(o=this.blockRuleset()),o||!m&&n&&c(";")?(s(),new C.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 C.Value(t):void 0},important:function(){return"!"===w.charAt(I)?u(/^! *important/):void 0},sub:function(){var e,t;return c("(")&&(e=this.addition())?(t=new C.Expression([e]),p(")"),t.parens=!0,t):void 0},multiplication:function(){var e,t,n,o,l;if(e=this.operand()){for(l=a(w,I-1);!m(/^\/[*\/]/);){if(i(),n=c("/")||c("*"),!n){s();break}if(t=this.operand(),!t){r();break}s(),e.parensInOp=!0,t.parensInOp=!0,o=new C.Operation(n,[o||e,t],l),l=a(w,I-1)}return o||e}},addition:function(){var e,t,n,i,r;if(e=this.multiplication()){for(r=a(w,I-1);(n=u(/^[-+]\s+/)||!r&&(c("+")||c("-")),n)&&(t=this.multiplication(),t);)e.parensInOp=!0,t.parensInOp=!0,i=new C.Operation(n,[i||e,t],r),r=a(w,I-1);return i||e}},conditions:function(){var e,t,n,i=I;if(e=this.condition()){for(;m(/^,\s*(not\s*)?\(/)&&c(",")&&(t=this.condition(),t);)n=new C.Condition("or",n||e,t,i);return n||e}},condition:function(){var e,t,n,i,r=this.entities,s=I,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 C.Condition(i,e,t,s,o):d("expected expression")):n=new C.Condition("=",e,new C.Keyword("true"),s,o),p(")"),u(/^and/)?new C.Condition("and",n,this.condition()):n):void 0},operand:function(){var e,t=this.entities,n=w.charAt(I+1);"-"!==w.charAt(I)||"@"!==n&&"("!==n||(e=c("-"));var i=this.sub()||t.dimension()||t.color()||t.variable()||t.call();return e&&(i.parensInOp=!0,i=new C.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 C.Anonymous(t))));while(e);return n.length>0?new C.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(s);return t?(a.push(I+l),l+=t[0].length,s=s.slice(t[1].length),o.push(t[1])):void 0}function n(){var e=/^\s*\/\*(?:[^*]|\*+[^\/*])*\*+\//.exec(s);return e?(l+=e[0].length,s=s.slice(e[0].length),!0):!1}var i,r,s=A,o=[],a=[],l=0;for(t(/^(\*?)/);t(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/););for(;n(););if(o.length>1&&t(/^\s*((?:\+_|\+)?)\s*:/)){for(h(l),""===o[0]&&(o.shift(),a.shift()),r=0;r<o.length;r++)i=o[r],o[r]="@"!==i.charAt(0)?new C.Keyword(i):new C.Variable("@"+i.slice(2,-1),a[r],e.currentFileInfo);return o}}}}},x.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(e.toHSL().h)},saturation:function(e){return new i.Dimension(100*e.toHSL().s,"%")},lightness:function(e){return new i.Dimension(100*e.toHSL().l,"%")},hsvhue:function(e){return new i.Dimension(e.toHSV().h)},hsvsaturation:function(e){return new i.Dimension(100*e.toHSV().s,"%")},hsvvalue:function(e){return new i.Dimension(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(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(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.value)},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;arguments.length<2&&(o=s);var c=o.indexOf("#"),h="";if(-1!==c&&(h=o.slice(c),o=o.slice(0,c)),this.env.isPathRelative(o)&&(o=this.currentFileInfo.relativeUrls?l.join(this.currentFileInfo.currentDirectory,o):l.join(this.currentFileInfo.entryPath,o)),arguments.length<2){var f;try{f=n("mime")}catch(p){f=i._mime}s=f.lookup(o);var d=f.charsets.lookup(s);u=["US-ASCII","UTF-8"].indexOf(d)<0,u&&(s+=";base64")}else u=/;base64$/.test(s);var m=a.readFileSync(o),v=32,g=parseInt(m.length/1024,10);if(g>=v&&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,g,v),new i.URL(r||t,this.currentFileInfo).eval(this.env);m=u?m.toString("base64"):encodeURIComponent(m);var y='"data:'+s+","+m+h+'"';return new i.URL(new i.Anonymous(y))},"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"},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=e&&e.numPrecision;return null==n?t:Number((t+2e-16).toFixed(n))},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()}).join(", ")+"]":e.toCSS()},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,r){this.value=e,this.index=t,this.mapLines=i,this.currentFileInfo=n,this.rulesetLike="undefined"==typeof r?!1:r},e.Anonymous.prototype={type:"Anonymous",eval:function(){return new e.Anonymous(this.value,this.index,this.currentFileInfo,this.mapLines,this.rulesetLike)},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1},isRulesetLike:function(){return this.rulesetLike},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}},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))},isRulesetLike:function(){return!this.isCharset()},isCharset:function(){return"@charset"===this.name},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",_noSpaceCombinators:{"":!0," ":!0,"|":!0},genCSS:function(e,t){var n=e.compress||this._noSpaceCombinators[this.value]?"":" ";t.add(n+this.value+n)},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,!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=[],v=!1,g=[],y=[],S=e.defaultFunc,b=0,w=1,x=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:b},i.matchCondition){for(a=0;2>a;a++)S.value(a),y[a]=i.matchCondition(r,t);(y[0]||y[1])&&(y[0]!=y[1]&&(h.group=y[1]?w:x),g.push(h))}else g.push(h);v=!0}}for(S.reset(),p=[0,0,0],o=0;o<g.length;o++)p[g[o].group]++;if(p[b]>0)f=x;else if(f=w,p[w]+p[x]>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<g.length;o++)if(h=g[o].group,h===b||h===f)try{i=g[o].mixin,i instanceof e.mixin.Definition||(d=i.originalRuleset||i,i=new e.mixin.Definition("",[],i.rules,null,!1),i.originalRuleset=d),Array.prototype.push.apply(m,i.evalCall(t,r,this.important).rules)}catch(C){throw{message:C.message,index:this.index,filename:this.currentFileInfo.filename,stack:C.stack}}if(v){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(s=0;s<m.length;s++)c=m[s],c.markReferenced&&c.markReferenced();return m}}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?this.frames.concat(n.frames):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,n;return"Quoted"!==e.type||this.escaped||e.escaped?(t=this.toCSS(),n=e.toCSS()):(t=e.value,n=this.value),t===n?0:n>t?-1:1}}}(n("../tree")),function(e){function n(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(n,i,r,s,o,a,l,u){this.name=n,this.value=i instanceof e.Value||i instanceof e.Ruleset?i:new e.Value([i]),this.important=r?" "+r.trim():"",this.merge=s,this.index=o,this.currentFileInfo=a,this.inline=l||!1,this.variable=u!==t?u:n.charAt&&"@"===n.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(t){var i,r=!1,s=this.name,o=this.variable;"string"!=typeof s&&(s=1===s.length&&s[0]instanceof e.Keyword?s[0].value:n(t,s),o=!1),"font"!==s||t.strictMath||(r=!0,t.strictMath=!0);try{if(i=this.value.eval(t),!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,o)}catch(a){throw"number"!=typeof a.index&&(a.index=this.index,a.filename=this.currentFileInfo.filename),a}finally{r&&(t.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){function i(t,n){return t.rules?!0:t instanceof e.Media||n&&t instanceof e.Comment?!0:t instanceof e.Directive||t instanceof e.Anonymous?t.isRulesetLike():!1}var r,s,o,a,l,u,c=[],h=[],f=[];t.tabLevel=t.tabLevel||0,this.root||t.tabLevel++;var p,d=t.compress?"":Array(t.tabLevel+1).join("  "),m=t.compress?"":Array(t.tabLevel).join("  ");for(r=0;r<this.rules.length;r++)l=this.rules[r],i(l,this.root)?f.push(l):l.isCharset&&l.isCharset()?c.push(l):h.push(l);if(h=c.concat(h),!this.root){a=e.debugInfo(t,this,m),a&&(n.add(a),n.add(m));var v,g=this.paths,y=g.length;for(p=t.compress?",":",\n"+m,r=0;y>r;r++)if(u=g[r],v=u.length)for(r>0&&n.add(p),t.firstSelector=!0,u[0].genCSS(t,n),t.firstSelector=!1,s=1;v>s;s++)u[s].genCSS(t,n);n.add((t.compress?"{":" {\n")+d)}for(r=0;r<h.length;r++)l=h[r],r+1!==h.length||this.root&&0!==f.length&&!this.firstRoot||(t.lastRule=!0),l.genCSS?l.genCSS(t,n):l.value&&n.add(l.value.toString()),t.lastRule?t.lastRule=!1:n.add(t.compress?"":"\n"+d);if(this.root||(n.add(t.compress?"}":"\n"+m+"}"),t.tabLevel--),p=(t.compress?"":"\n")+(this.root?d:m),o=f.length)for(h.length&&p&&n.add(p),f[0].genCSS(t,n),r=1;o>r;r++)p&&n.add(p),f[r].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.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={}),"string"==typeof this.paths&&(this.paths=[this.paths]),!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);var u=o||l in r.recursionDetector;a.importMultiple||(t.skip=u?!0:function(){return l in r.onceFileDetectionMap?!0:(r.onceFileDetectionMap[l]=!0,!1)});var c=function(e){r.importCount--,0===r.importCount&&r.isFinished&&r._finish(e)};return!i||(t.root=i,t.importedFilename=l,s||!a.importMultiple&&u)?void c():(r.recursionDetector[l]=!0,void new e.importVisitor(r._importer,c,a,r.onceFileDetectionMap,r.recursionDetector).run(i))})}}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.rules[0]),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.rules&&t.rules.rules&&this._mergeRules(t.rules.rules),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 i=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(i=i.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),i)}if(this._rootNode.genCSS(e,this),this._css.length>0){var r,s=JSON.stringify(this._sourceMapGenerator.toJSON());this._sourceMapURL?r=this._sourceMapURL:this._sourceMapFilename&&(r=this.normalizeFilename(this._sourceMapFilename)),this._writeSourceMap?this._writeSourceMap(s):r="data:application/json;base64,"+n("./encoder.js").encodeBase64(s),r&&this._css.push("/*# sourceMappingURL="+r+" */")}return this._css.join("")}}(n("./tree"));var I=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);x.env=x.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port&&location.port.length>0||I?"development":"production");var R={debug:3,info:2,errors:1,none:0};if(x.logLevel="undefined"!=typeof x.logLevel?x.logLevel:"development"===x.env?R.debug:R.errors,x.async=x.async||!1,x.fileAsync=x.fileAsync||!1,x.poll=x.poll||(I?1e3:1500),x.functions)for(var k in x.functions)x.functions.hasOwnProperty(k)&&(x.tree.functions[k]=x.functions[k]);var F=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);F&&(x.dumpLineNumbers=F[1]);var A=/^text\/(x-)?less$/,E=null,M={};if(x.watch=function(){return x.watchMode||(x.env="development",w()),this.watchMode=!0,!0},x.unwatch=function(){return clearInterval(x.watchTimer),this.watchMode=!1,!1},/!watch/.test(location.hash)&&x.watch(),"development"!=x.env)try{E="undefined"==typeof e.localStorage?null:e.localStorage}catch(_){}var D=document.getElementsByTagName("link");x.sheets=[];for(var O=0;O<D.length;O++)("stylesheet/less"===D[O].rel||D[O].rel.match(/stylesheet/)&&D[O].type.match(A))&&x.sheets.push(D[O]);x.modifyVars=function(e){x.refresh(!1,e)},x.refresh=function(e,t){var n,r;n=r=new Date,b(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(x);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),r=new Date},e,t),p(t)},x.refreshStyles=p,x.Parser.fileLoader=y,x.refresh("development"===x.env),"function"==typeof define&&define.amd&&define(function(){return x})}(window);