/*! * less - leaner css v1.6.0 * http://lesscss.org * * copyright (c) 2009-2014, alexis sellier * licensed under the apache v2 license. * */ /** * @license apache v2 */ !function(a,b){function c(b){return a.less[b.split("/")[1]]}function d(a,b){"development"==v.env&&"undefined"!=typeof console&&v.loglevel>=b&&console.log("less: "+a)}function e(a){return a.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-za-z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function f(a,c){var e="{line} {content}",f=a.filename||c,g=[],h=(a.type||"syntax")+"error: "+(a.message||"there is an error in your .less file")+" in "+f+" ",i=function(a,c,d){a.extract[c]!==b&&g.push(e.replace(/\{line\}/,(parseint(a.line,10)||0)+(c-1)).replace(/\{class\}/,d).replace(/\{content\}/,a.extract[c]))};a.extract?(i(a,0,""),i(a,1,"line"),i(a,2,""),h+="on line "+a.line+", column "+(a.column+1)+":\n"+g.join("\n")):a.stack&&(h+=a.stack),d(h,y.errors)}function g(a,b,c){var f=b.href||"",g="less:"+(b.title||e(f)),h=document.getelementbyid(g),i=!1,j=document.createelement("style");if(j.setattribute("type","text/css"),b.media&&j.setattribute("media",b.media),j.id=g,j.stylesheet)try{j.stylesheet.csstext=a}catch(k){throw new error("couldn't reassign stylesheet.csstext.")}else j.appendchild(document.createtextnode(a)),i=null!==h&&h.childnodes.length>0&&j.childnodes.length>0&&h.firstchild.nodevalue===j.firstchild.nodevalue;var l=document.getelementsbytagname("head")[0];if(null===h||i===!1){var m=b&&b.nextsibling||null;m?m.parentnode.insertbefore(j,m):l.appendchild(j)}if(h&&i===!1&&h.parentnode.removechild(h),c&&c){d("saving "+f+" to cache.",y.info);try{c.setitem(f,a),c.setitem(f+":timestamp",c)}catch(k){d("failed to save",y.errors)}}}function h(a,c){var d,f,h="less-error-message:"+e(c||""),i='
  • {content}
  • ',j=document.createelement("div"),k=[],l=a.filename||c,m=l.match(/([^\/]+(\?.*)?)$/)[1];j.id=h,j.classname="less-error-message",f="

    "+(a.type||"syntax")+"error: "+(a.message||"there is an error in your .less file")+'

    in '+m+" ";var n=function(a,c,d){a.extract[c]!==b&&k.push(i.replace(/\{line\}/,(parseint(a.line,10)||0)+(c-1)).replace(/\{class\}/,d).replace(/\{content\}/,a.extract[c]))};a.extract?(n(a,0,""),n(a,1,"line"),n(a,2,""),f+="on line "+a.line+", column "+(a.column+1)+":

    "):a.stack&&(f+="
    "+a.stack.split("\n").slice(1).join("
    ")),j.innerhtml=f,g([".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"}),j.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"==v.env&&(d=setinterval(function(){document.body&&(document.getelementbyid(h)?document.body.replacechild(j,document.getelementbyid(h)):document.body.insertbefore(j,document.body.firstchild),clearinterval(d))},10))}function i(a,b){v.errorreporting&&"html"!==v.errorreporting?"console"===v.errorreporting?f(a,b):"function"==typeof v.errorreporting&&v.errorreporting("add",a,b):h(a,b)}function j(a){var b=document.getelementbyid("less-error-message:"+e(a));b&&b.parentnode.removechild(b)}function k(){}function l(a){v.errorreporting&&"html"!==v.errorreporting?"console"===v.errorreporting?k(a):"function"==typeof v.errorreporting&&v.errorreporting("remove",a):j(a)}function m(a){for(var b,c=document.getelementsbytagname("style"),d=0;d0&&(h.splice(c-1,2),c-=2)}return g.hostpart=f[1],g.directories=h,g.path=f[1]+h.join("/"),g.fileurl=g.path+(f[4]||""),g.url=g.fileurl+(f[5]||""),g}function o(a,b){var c,d,e,f,g=n(a),h=n(b),i="";if(g.hostpart!==h.hostpart)return"";for(d=math.max(h.directories.length,g.directories.length),c=0;d>c&&h.directories[c]===g.directories[c];c++);for(f=h.directories.slice(c),e=g.directories.slice(c),c=0;c=200&&b.status<300?c(b.responsetext,b.getresponseheader("last-modified")):"function"==typeof d&&d(b.status,a)}var g=p(),h=x?v.fileasync:v.async;"function"==typeof g.overridemimetype&&g.overridemimetype("text/css"),d("xhr: getting '"+a+"'",y.info),g.open("get",a,h),g.setrequestheader("accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),g.send(null),x&&!v.fileasync?0===g.status||g.status>=200&&g.status<300?c(g.responsetext):e(g.status,a):h?g.onreadystatechange=function(){4==g.readystate&&f(g,c,e)}:f(g,c,e)}function r(b,c,d,e){c&&c.currentdirectory&&!/^([a-z-]+:)?\//.test(b)&&(b=c.currentdirectory+b);var f=n(b,a.location.href),g=f.url,h={currentdirectory:f.path,filename:g};if(c?(h.entrypath=c.entrypath,h.rootpath=c.rootpath,h.rootfilename=c.rootfilename,h.relativeurls=c.relativeurls):(h.entrypath=f.path,h.rootpath=v.rootpath||f.path,h.rootfilename=g,h.relativeurls=e.relativeurls),h.relativeurls&&(h.rootpath=e.rootpath?n(e.rootpath+o(f.path,h.entrypath)).path:f.path),e.usefilecache&&d[g])try{var i=d[g];d(null,i,g,h,{lastmodified:new date})}catch(j){d(j,null,g)}else q(g,e.mime,function(a,b){d[g]=a;try{d(null,a,g,h,{lastmodified:b})}catch(c){d(c,null,g)}},function(a,b){d({type:"file",message:"'"+b+"' wasn't found ("+a+")"},null,g)})}function s(a,b,c,d,e){var f=new v.tree.parseenv(v);f.mime=a.type,(e||v.globalvars)&&(f.usefilecache=!0),r(a.href,null,function(h,i,j,k,m){if(m){m.remaining=d;var n=c&&c.getitem(j),o=c&&c.getitem(j+":timestamp");if(!c&&o&&m.lastmodified&&new date(m.lastmodified).valueof()===new date(o).valueof())return g(n,a),m.local=!0,b(null,null,i,a,m,j),void 0}l(j),i?(f.currentfileinfo=k,new v.parser(f).parse(i,function(c,d){if(c)return b(c,null,null,a);try{b(c,d,i,a,m,j)}catch(c){b(c,null,null,a)}},{modifyvars:e,globalvars:v.globalvars})):b(h,null,null,a,m,j)},f,e)}function t(a,b,c){for(var d=0;de&&(d=d.slice(x-e),e=x)}function g(a,b){var c=a.charcodeat(0|b);return 32>=c&&(32===c||10===c||9===c)}function h(a){var b,c,d=typeof a;return"string"===d?u.charat(x)!==a?null:(k(1),a):(f(),(b=a.exec(d))?(c=b[0].length,k(c),"string"==typeof b?b:1===b.length?b[0]:b):null)}function i(a){x>e&&(d=d.slice(x-e),e=x);var b=a.exec(d);return b?(k(b[0].length),"string"==typeof b?b:1===b.length?b[0]:b):null}function j(a){return u.charat(x)!==a?null:(k(1),a)}function k(a){for(var b,c=x,d=y,e=x-e,f=x+d.length-e,g=x+=a,h=u;f>x&&(b=h.charcodeat(x),!(b>32))&&(32===b||10===b||9===b||13===b);x++);return d=d.slice(a+x-g+e),e=x,!d.length&&y=0&&"\n"!==b.charat(c);)e++;return"number"==typeof a&&(d=(b.slice(0,a).match(/\n/g)||"").length),{line:d,column:e}}function s(a,b,d){var e=d.currentfileinfo.filename;return"browser"!==v.mode&&"rhino"!==v.mode&&(e=c("path").resolve(e)),{linenumber:r(a,b).line+1,filename:e}}function t(a,b){var c=q(a,b),d=r(a.index,c),e=d.line,f=d.column,g=a.call&&r(a.call,c).line,h=c.split("\n");this.type=a.type||"syntax",this.message=a.message,this.filename=a.filename||b.currentfileinfo.filename,this.index=a.index,this.line="number"==typeof e?e+1:null,this.callline=g+1,this.callextract=h[g],this.stack=a.stack,this.column=f,this.extract=[h[e-1],h[e],h[e+1]]}var u,x,y,z,a,b,c,d,e,f,g,h=a&&a.filename;a instanceof w.parseenv||(a=new w.parseenv(a));var i=this.imports={paths:a.paths||[],queue:[],files:a.files,contents:a.contents,contentsignoredchars:a.contentsignoredchars,mime:a.mime,error:null,push:function(b,c,d,e){var f=this;this.queue.push(b);var g=function(a,c,d){f.queue.splice(f.queue.indexof(b),1);var g=d in f.files||d===h;f.files[d]=c,a&&!f.error&&(f.error=a),e(a,c,g,d)};v.parser.importer?v.parser.importer(b,c,g,a):v.parser.fileloader(b,c,function(b,e,f,h){if(b)return g(b),void 0;var i=new w.parseenv(a);i.currentfileinfo=h,i.processimports=!1,i.contents[f]=e,(c.reference||d.reference)&&(h.reference=!0),d.inline?g(null,e,f):new v.parser(i).parse(e,function(a,b){g(a,b,f)})},a)}},j=i;return t.prototype=new error,t.prototype.constructor=t,this.env=a=a||{},this.optimization="optimization"in this.env?this.env.optimization:1,f={imports:i,parse:function(d,e,f){var g,h,i,j,k,l=null,m="";if(x=y=e=b=0,j=f&&f.globalvars?v.parser.serializevars(f.globalvars)+"\n":"",k=f&&f.modifyvars?"\n"+v.parser.serializevars(f.modifyvars):"",(j||f&&f.banner)&&(m=(f&&f.banner?f.banner:"")+j,f.imports.contentsignoredchars[a.currentfileinfo.filename]=m.length),d=d.replace(/\r\n/g,"\n"),u=d=m+d.replace(/^\ufeff/,"")+k,f.imports.contents[a.currentfileinfo.filename]=d,c=function(b){function c(b,c){l=new t({index:c||i,type:"parse",message:b,filename:a.currentfileinfo.filename},a)}function d(a){var c=i-s;512>c&&!a||!c||(r.push(b.slice(s,i+1)),s=i+1)}var e,f,g,h,i,j,k,m,n,o=b.length,p=0,q=0,r=[],s=0;for(i=0;o>i;i++)if(k=b.charcodeat(i),!(k>=97&&122>=k||34>k))switch(k){case 40:q++;continue;case 41:q--;continue;case 59:q||d();continue;case 123:p++,e=i;continue;case 125:p--,f=i,p||d();continue;case 92:if(o-1>i){i++;continue}return c("unescaped `\\`");case 34:case 39:case 96:for(n=0,j=i,i+=1;o>i;i++)if(m=b.charcodeat(i),!(m>96)){if(m==k){n=1;break}if(92==m){if(i==o-1)return c("unescaped `\\`");i++}}if(n)continue;return c("unmatched `"+string.fromcharcode(k)+"`",j);case 47:if(q||i==o-1)continue;if(m=b.charcodeat(i+1),47==m)for(i+=2;o>i&&(m=b.charcodeat(i),!(13>=m)||10!=m&&13!=m);i++);else if(42==m){for(g=j=i,i+=2;o-1>i&&(m=b.charcodeat(i),125==m&&(h=i),42!=m||47!=b.charcodeat(i+1));i++);if(i==o-1)return c("missing closing `*/`",j)}continue;case 42:if(o-1>i&&47==b.charcodeat(i+1))return c("unmatched `/*`");continue}return 0!==p?p>0?g>e&&h>g?c("missing closing `}` or `*/`",e):c("missing closing `}`",e):c("missing opening `{`",f):0!==q?c(q>0?"missing closing `)`":"missing opening `(`"):(d(!0),r)}(d),l)return e(new t(l,a));d=c[0];try{g=new w.ruleset(null,this.parsers.primary()),g.root=!0,g.firstroot=!0}catch(n){return e(new t(n,a))}if(g.tocss=function(d){return function(e,f){e=e||{};var g,h,i=new w.evalenv(e);"object"!=typeof f||array.isarray(f)||(f=object.keys(f).map(function(a){var b=f[a];return b instanceof w.value||(b instanceof w.expression||(b=new w.expression([b])),b=new w.value([b])),new w.rule("@"+a,b,!1,null,0)}),i.frames=[new w.ruleset(null,f)]);try{var j,k=[],l=[new w.joinselectorvisitor,new w.processextendsvisitor,new w.tocssvisitor({compress:boolean(e.compress)})],m=this;if(e.plugins)for(j=0;j57||43>b||47===b||44==b))return a=i(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/),a?new w.dimension(a[1],a[2]):void 0},unicodedescriptor:function(){var a;return a=i(/^u\+[0-9a-fa-f?]+(\-[0-9a-fa-f?]+)?/),a?new w.unicodedescriptor(a[0]):void 0},javascript:function(){var c,d,e=x;return"~"===u.charat(e)&&(e++,d=!0),"`"===u.charat(e)?(a.javascriptenabled===b||a.javascriptenabled||n("you are using javascript, which has been disabled."),d&&j("~"),c=i(/^`([^`]*)`/),c?new w.javascript(c[1],x,d):void 0):void 0}},variable:function(){var a;return"@"===u.charat(x)&&(a=i(/^(@[\w-]+)\s*:/))?a[1]:void 0},extend:function(a){var b,c,d,e,f,g=x;if(a?i(/^&:extend\(/):i(/^:extend\(/)){do{for(d=null,b=null;!(d=i(/^(all)(?=\s*(\)|,))/))&&(c=this.element());)b?b.push(c):b=[c];d=d&&d[1],f=new w.extend(new w.selector(b),d,g),e?e.push(f):e=[f]}while(j(","));return l(/^\)/),a&&l(/^;/),e}},extendrule:function(){return this.extend(!0)},mixin:{call:function(){var b,c,f,g,h,k=u.charat(x),l=!1,n=x;if("."===k||"#"===k){for(d();;){if(f=i(/^[#.](?:[\w-]|\\(?:[a-fa-f0-9]{1,6} ?|[^a-fa-f0-9]))+/),!f)break;c=new w.element(g,f,x,a.currentfileinfo),b?b.push(c):b=[c],g=j(">")}return j("(")&&(h=this.args(!0).args,m(")")),g.important()&&(l=!0),b&&(j(";")||p("}"))?new w.mixin.call(b,h,n,a.currentfileinfo,l):(e(),void 0)}},args:function(a){for(var b,c,d,e,f,g,h=f.parsers,k=h.entities,m={args:null,variadic:!1},o=[],p=[],q=[];;){if(a)g=h.expression();else{if(h.comments(),"."===u.charat(x)&&i(/^\.{3}/)){m.variadic=!0,j(";")&&!b&&(b=!0),(b?p:q).push({variadic:!0});break}g=k.variable()||k.literal()||k.keyword()}if(!g)break;e=null,g.throwawaycomments&&g.throwawaycomments(),f=g;var r=null;if(a?1==g.value.length&&(r=g.value[0]):r=g,r&&r instanceof w.variable)if(j(":"))o.length>0&&(b&&n("cannot mix ; and , as delimiter types"),c=!0),f=l(h.expression),e=d=r.name;else{if(!a&&i(/^\.{3}/)){m.variadic=!0,j(";")&&!b&&(b=!0),(b?p:q).push({name:g.name,variadic:!0});break}a||(d=e=r.name,f=null)}f&&o.push(f),q.push({name:e,value:f}),j(",")||(j(";")||b)&&(c&&n("cannot mix ; and , as delimiter types"),b=!0,o.length>1&&(f=new w.value(o)),p.push({name:d,value:f}),d=null,o=[],c=!1)}return m.args=b?p:q,m},definition:function(){var a,b,c,f,g=[],h=!1;if(!("."!==u.charat(x)&&"#"!==u.charat(x)||o(/^[^{]*\}/))&&(d(),b=i(/^([#.](?:[\w-]|\\(?:[a-fa-f0-9]{1,6} ?|[^a-fa-f0-9]))+)\s*\(/))){a=b[1];var k=this.args(!1);if(g=k.args,h=k.variadic,j(")")||(b=x,e()),g.comments(),i(/^when/)&&(f=l(g.conditions,"expected condition")),c=g.block())return new w.mixin.definition(a,g,c,f,h);e()}}},entity:function(){var a=this.entities;return a.literal()||a.variable()||a.url()||a.call()||a.keyword()||a.javascript()||this.comment()},end:function(){return j(";")||p("}")},alpha:function(){var a;if(i(/^\(opacity=/i))return a=i(/^\d+/)||this.entities.variable(),a?(m(")"),new w.alpha(a)):void 0},element:function(){var b,c,d;return c=this.combinator(),b=i(/^(?:\d+\.\d+|\d+)%/)||i(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[a-fa-f0-9]{1,6} ?|[^a-fa-f0-9]))+/)||j("*")||j("&")||this.attribute()||i(/^\([^()@]+\)/)||i(/^[\.#](?=@)/)||this.entities.variablecurly(),b||j("(")&&(d=this.selector())&&j(")")&&(b=new w.paren(d)),b?new w.element(c,b,x,a.currentfileinfo):void 0},combinator:function(){var a=u.charat(x);if(">"===a||"+"===a||"~"===a||"|"===a){for(x++;g(u,x);)x++;return new w.combinator(a)}return g(u,x-1)?new w.combinator(" "):new w.combinator(null)},lessselector:function(){return this.selector(!0)},selector:function(b){for(var c,d,e,f,g,h,i,j=j;(b&&(g=this.extend())||b&&(h=j(/^when/))||(f=this.element()))&&(h?i=l(this.conditions,"expected condition"):i?n("css guard can only be used at the end of selector"):g?d?d.push(g):d=[g]:(d&&n("extend can only be used at the end of selector"),e=u.charat(x),c?c.push(f):c=[f],f=null),"{"!==e&&"}"!==e&&";"!==e&&","!==e&&")"!==e););return c?new w.selector(c,d,i,x,a.currentfileinfo):(d&&n("extend must be used to extend a selector, it cannot be used on its own"),void 0)},attribute:function(){if(j("[")){var a,b,c,d=this.entities;return(a=d.variablecurly())||(a=l(/^(?:[_a-za-z0-9-\*]*\|)?(?:[_a-za-z0-9-]|\\.)+/)),c=i(/^[|~*$^]?=/),c&&(b=d.quoted()||i(/^[0-9]+%/)||i(/^[\w-]+/)||d.variablecurly()),m("]"),new w.attribute(a,c,b)}},block:function(){var a;return j("{")&&(a=this.primary())&&j("}")?a:void 0},ruleset:function(){var b,c,f,g;for(d(),a.dumplinenumbers&&(g=s(x,u,a));;){if(c=this.lessselector(),!c)break;if(b?b.push(c):b=[c],this.comments(),!j(","))break;c.condition&&n("guards are only currently allowed on a single selector."),this.comments()}if(b&&(f=this.block())){var h=new w.ruleset(b,f,a.strictimports);return a.dumplinenumbers&&(h.debuginfo=g),h}b=x,e()},rule:function(b){var c,f,g,h=u.charat(x),i=!1;if(d(),"."!==h&&"#"!==h&&"&"!==h&&(c=this.variable()||this.ruleproperty())){if(f=!b&&(a.compress||c.charat&&"@"===c.charat(0))?this.value()||this.anonymousvalue():this.anonymousvalue()||this.value(),g=this.important(),i=c.pop&&"+"===c.pop(),f&&this.end())return new w.rule(c,f,g,i,a,a.currentfileinfo);if(b=x,e(),f&&!b)return this.rule(!0)}},anonymousvalue:function(){var a;return a=/^([^@+\/'"*`(;{}-]*);/.exec(d),a?(x+=a[0].length-1,new w.anonymous(a[1])):void 0},"import":function(){var b,c,f=x;d();var g=i(/^@import?\s+/),h=(g?this.importoptions():null)||{};return g&&(b=this.entities.quoted()||this.entities.url())&&(c=this.mediafeatures(),j(";"))?(c=c&&new w.value(c),new w.import(b,c,h,f,a.currentfileinfo)):(e(),void 0)},importoptions:function(){var a,b,c,d={};if(!j("("))return null;do if(a=this.importoption()){switch(b=a,c=!0,b){case"css":b="less",c=!1;break;case"once":b="multiple",c=!1}if(d[b]=c,!j(","))break}while(a);return m(")"),d},importoption:function(){var a=i(/^(less|css|multiple|once|inline|reference)/);return a?a[1]:void 0},mediafeature:function(){var b,c,d=this.entities,e=[];do if(b=d.keyword()||d.variable())e.push(b);else if(j("(")){if(c=this.property(),b=this.value(),!j(")"))return null;if(c&&b)e.push(new w.paren(new w.rule(c,b,null,null,x,a.currentfileinfo,!0)));else{if(!b)return null;e.push(new w.paren(b))}}while(b);return e.length>0?new w.expression(e):void 0},mediafeatures:function(){var a,b=this.entities,c=[];do if(a=this.mediafeature()){if(c.push(a),!j(","))break}else if(a=b.variable(),a&&(c.push(a),!j(",")))break;while(a);return c.length>0?c:null},media:function(){var b,c,d,e;return a.dumplinenumbers&&(e=s(x,u,a)),i(/^@media/)&&(b=this.mediafeatures(),c=this.block())?(d=new w.media(c,b,x,a.currentfileinfo),a.dumplinenumbers&&(d.debuginfo=e),d):void 0},directive:function(){var b,c,f,g,h,k,l,m;if("@"===u.charat(x)){if(c=this["import"]()||this.media())return c;if(d(),b=i(/^@[a-z-]+/)){switch(g=b,"-"==b.charat(1)&&b.indexof("-",2)>0&&(g="@"+b.slice(b.indexof("-",2)+1)),g){case"@font-face":h=!0;break;case"@viewport":case"@top-left":case"@top-left-corner":case"@top-center":case"@top-right":case"@top-right-corner":case"@bottom-left":case"@bottom-left-corner":case"@bottom-center":case"@bottom-right":case"@bottom-right-corner":case"@left-top":case"@left-middle":case"@left-bottom":case"@right-top":case"@right-middle":case"@right-bottom":h=!0;break;case"@host":case"@page":case"@document":case"@supports":case"@keyframes":h=!0,k=!0;break;case"@namespace":l=!0}if(k&&(m=(i(/^[^{]+/)||"").trim(),m&&(b+=" "+m)),h){if(f=this.block())return new w.directive(b,f,x,a.currentfileinfo)}else if(c=l?this.expression():this.entity(),c&&j(";")){var n=new w.directive(b,c,x,a.currentfileinfo);return a.dumplinenumbers&&(n.debuginfo=s(x,u,a)),n}e()}}},value:function(){var a,b=[];do if(a=this.expression(),a&&(b.push(a),!j(",")))break;while(a);return b.length>0?new w.value(b):void 0},important:function(){return"!"===u.charat(x)?i(/^! *important/):void 0},sub:function(){var a,b;return j("(")&&(a=this.addition())?(b=new w.expression([a]),m(")"),b.parens=!0,b):void 0},multiplication:function(){var a,b,c,d,e;if(a=this.operand()){for(e=g(u,x-1);;){if(o(/^\/[*\/]/))break;if(c=j("/")||j("*"),!c)break;if(b=this.operand(),!b)break;a.parensinop=!0,b.parensinop=!0,d=new w.operation(c,[d||a,b],e),e=g(u,x-1)}return d||a}},addition:function(){var a,b,c,d,e;if(a=this.multiplication()){for(e=g(u,x-1);;){if(c=i(/^[-+]\s+/)||!e&&(j("+")||j("-")),!c)break;if(b=this.multiplication(),!b)break;a.parensinop=!0,b.parensinop=!0,d=new w.operation(c,[d||a,b],e),e=g(u,x-1)}return d||a}},conditions:function(){var a,b,c,d=x;if(a=this.condition()){for(;;){if(!o(/^,\s*(not\s*)?\(/)||!j(","))break;if(b=this.condition(),!b)break;c=new w.condition("or",c||a,b,d)}return c||a}},condition:function(){var a,b,c,d,e=this.entities,f=x,g=!1;return i(/^not/)&&(g=!0),m("("),a=this.addition()||e.keyword()||e.quoted(),a?(d=i(/^(?:>=|<=|=<|[<=>])/),d?(b=this.addition()||e.keyword()||e.quoted(),b?c=new w.condition(d,a,b,f,g):n("expected expression")):c=new w.condition("=",a,new w.keyword("true"),f,g),m(")"),i(/^and/)?new w.condition("and",c,this.condition()):c):void 0},operand:function(){var a,b=this.entities,c=u.charat(x+1);"-"!==u.charat(x)||"@"!==c&&"("!==c||(a=j("-"));var d=this.sub()||b.dimension()||b.color()||b.variable()||b.call();return a&&(d.parensinop=!0,d=new w.negative(d)),d},expression:function(){var a,b,c=[];do a=this.addition()||this.entity(),a&&(c.push(a),o(/^\/[\/*]/)||(b=j("/"),b&&c.push(new w.anonymous(b))));while(a);return c.length>0?new w.expression(c):void 0},property:function(){var a=i(/^(\*?-?[_a-za-z0-9-]+)\s*:/);return a?a[1]:void 0},ruleproperty:function(){function b(a){var b=a.exec(c);return b?(e.push(x+f),f+=b[0].length,c=c.slice(b[1].length),d.push(b[1])):void 0}var c=d,d=[],e=[],f=0;for(b(/^(\*?)/);b(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/););if(d.length>1&&b(/^\s*(\+?)\s*:/)){k(f);for(var g in d)"@"===d[g].charat(0)&&(d[g]=new w.variable("@"+d[g].slice(2,-1),e[g],a.currentfileinfo));return d}}}}},v.parser.serializevars=function(a){var b="";for(var c in a)if(object.hasownproperty.call(a,c)){var d=a[c];b+=("@"===c[0]?"":"@")+c+": "+d+(";"===(""+d).slice(-1)?"":";")}return b},function(d){function e(a,b,c){if(!(c instanceof d.dimension))throw{type:"argument",message:"argument must be a number"};return null==b?b=c.unit:c=c.unify(),new d.dimension(a(parsefloat(c.value)),b)}function f(a,b,c){var e,f,g,h,i=b.alpha,j=c.alpha,k=[];g=j+i*(1-j);for(var l=0;3>l;l++)e=b.rgb[l]/255,f=c.rgb[l]/255,h=a(e,f),g&&(h=(j*f+i*(e-j*(e+f-h)))/g),k[l]=255*h;return new d.color(k,g)}function g(){var a,b=d.functions;for(a in l)b[a]=e.bind(null,math[a],l[a]);for(a in m)b[a]=f.bind(null,m[a]);a=d.defaultfunc,b.default=a.eval.bind(a)}function h(a){return d.functions.hsla(a.h,a.s,a.l,a.a)}function i(a,b){return a instanceof d.dimension&&a.unit.is("%")?parsefloat(a.value*b/100):j(a)}function j(a){if(a instanceof d.dimension)return parsefloat(a.unit.is("%")?a.value/100:a.value);if("number"==typeof a)return a;throw{error:"runtimeerror",message:"color functions take numbers as parameters"}}function k(a){return math.min(1,math.max(0,a))}d.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(a,b,c,e){var f=[a,b,c].map(function(a){return i(a,255)});return e=j(e),new d.color(f,e)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,c,d){function e(a){return a=0>a?a+1:a>1?a-1:a,1>6*a?g+(f-g)*a*6:1>2*a?f:2>3*a?g+(f-g)*(2/3-a)*6:g}a=j(a)%360/360,b=k(j(b)),c=k(j(c)),d=k(j(d));var f=.5>=c?c*(b+1):c+b-c*b,g=2*c-f;return this.rgba(255*e(a+1/3),255*e(a),255*e(a-1/3),d)},hsv:function(a,b,c){return this.hsva(a,b,c,1)},hsva:function(a,b,c,d){a=j(a)%360/360*360,b=j(b),c=j(c),d=j(d);var e,f;e=math.floor(a/60%6),f=a/60-e;var g=[c,c*(1-b),c*(1-f*b),c*(1-(1-f)*b)],h=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(255*g[h[e][0]],255*g[h[e][1]],255*g[h[e][2]],d)},hue:function(a){return new d.dimension(math.round(a.tohsl().h))},saturation:function(a){return new d.dimension(math.round(100*a.tohsl().s),"%")},lightness:function(a){return new d.dimension(math.round(100*a.tohsl().l),"%")},hsvhue:function(a){return new d.dimension(math.round(a.tohsv().h))},hsvsaturation:function(a){return new d.dimension(math.round(100*a.tohsv().s),"%")},hsvvalue:function(a){return new d.dimension(math.round(100*a.tohsv().v),"%")},red:function(a){return new d.dimension(a.rgb[0])},green:function(a){return new d.dimension(a.rgb[1])},blue:function(a){return new d.dimension(a.rgb[2])},alpha:function(a){return new d.dimension(a.tohsl().a)},luma:function(a){return new d.dimension(math.round(a.luma()*a.alpha*100),"%")},saturate:function(a,b){if(!a.rgb)return null;var c=a.tohsl();return c.s+=b.value/100,c.s=k(c.s),h(c)},desaturate:function(a,b){var c=a.tohsl();return c.s-=b.value/100,c.s=k(c.s),h(c)},lighten:function(a,b){var c=a.tohsl();return c.l+=b.value/100,c.l=k(c.l),h(c)},darken:function(a,b){var c=a.tohsl();return c.l-=b.value/100,c.l=k(c.l),h(c)},fadein:function(a,b){var c=a.tohsl();return c.a+=b.value/100,c.a=k(c.a),h(c)},fadeout:function(a,b){var c=a.tohsl();return c.a-=b.value/100,c.a=k(c.a),h(c)},fade:function(a,b){var c=a.tohsl();return c.a=b.value/100,c.a=k(c.a),h(c)},spin:function(a,b){var c=a.tohsl(),d=(c.h+b.value)%360;return c.h=0>d?360+d:d,h(c)},mix:function(a,b,c){c||(c=new d.dimension(50));var e=c.value/100,f=2*e-1,g=a.tohsl().a-b.tohsl().a,h=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[a.rgb[0]*h+b.rgb[0]*i,a.rgb[1]*h+b.rgb[1]*i,a.rgb[2]*h+b.rgb[2]*i],k=a.alpha*e+b.alpha*(1-e);return new d.color(j,k)},greyscale:function(a){return this.desaturate(a,new d.dimension(100))},contrast:function(a,b,c,d){if(!a.rgb)return null;if("undefined"==typeof c&&(c=this.rgba(255,255,255,1)),"undefined"==typeof b&&(b=this.rgba(0,0,0,1)),b.luma()>c.luma()){var e=c;c=b,b=e}return d="undefined"==typeof d?.43:j(d),a.luma()i.value)&&(k[f]=g)):(l[j]=k.length,k.push(g))):k.push(g); return 1==k.length?k[0]:(c=k.map(function(a){return a.tocss(this.env)}).join(this.env.compress?",":", "),new d.anonymous((a?"min":"max")+"("+c+")"))},min:function(){return this._minmax(!0,arguments)},max:function(){return this._minmax(!1,arguments)},argb:function(a){return new d.anonymous(a.toargb())},percentage:function(a){return new d.dimension(100*a.value,"%")},color:function(a){if(a instanceof d.quoted){var b,c=a.value;if(b=d.color.fromkeyword(c))return b;if(/^#([a-fa-f0-9]{6}|[a-fa-f0-9]{3})/.test(c))return new d.color(c.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(a){return this._isa(a,d.color)},isnumber:function(a){return this._isa(a,d.dimension)},isstring:function(a){return this._isa(a,d.quoted)},iskeyword:function(a){return this._isa(a,d.keyword)},isurl:function(a){return this._isa(a,d.url)},ispixel:function(a){return this.isunit(a,"px")},ispercentage:function(a){return this.isunit(a,"%")},isem:function(a){return this.isunit(a,"em")},isunit:function(a,b){return a instanceof d.dimension&&a.unit.is(b.value||b)?d.true:d.false},_isa:function(a,b){return a instanceof b?d.true:d.false},tint:function(a,b){return this.mix(this.rgb(255,255,255),a,b)},shade:function(a,b){return this.mix(this.rgb(0,0,0),a,b)},extract:function(a,b){return b=b.value-1,array.isarray(a.value)?a.value[b]:array(a)[b]},length:function(a){var b=array.isarray(a.value)?a.value.length:1;return new d.dimension(b)},"data-uri":function(b,e){if("undefined"!=typeof a)return new d.url(e||b,this.currentfileinfo).eval(this.env);var f=b.value,g=e&&e.value,h=c("fs"),i=c("path"),j=!1;if(arguments.length<2&&(g=f),this.env.ispathrelative(g)&&(g=this.currentfileinfo.relativeurls?i.join(this.currentfileinfo.currentdirectory,g):i.join(this.currentfileinfo.entrypath,g)),arguments.length<2){var k;try{k=c("mime")}catch(l){k=d._mime}f=k.lookup(g);var m=k.charsets.lookup(f);j=["us-ascii","utf-8"].indexof(m)<0,j&&(f+=";base64")}else j=/;base64$/.test(f);var n=h.readfilesync(g),o=32,p=parseint(n.length/1024,10);if(p>=o&&this.env.iecompat!==!1)return this.env.silent||console.warn("skipped data-uri embedding of %s because its size (%dkb) exceeds ie8-safe %dkb!",g,p,o),new d.url(e||b,this.currentfileinfo).eval(this.env);n=j?n.tostring("base64"):encodeuricomponent(n);var q="'data:"+f+","+n+"'";return new d.url(new d.anonymous(q))},"svg-gradient":function(a){function c(){throw{type:"argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]"}}arguments.length<3&&c();var e,f,g,h,i,j,k,l=array.prototype.slice.call(arguments,1),m="linear",n='x="0" y="0" width="1" height="1"',o=!0,p={compress:!1},q=a.tocss(p);switch(q){case"to bottom":e='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":e='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":e='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":e='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":m="radial",e='cx="50%" cy="50%" r="75%"',n='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(f='<'+m+'gradient id="gradient" gradientunits="userspaceonuse" '+e+">",g=0;gk?' stop-opacity="'+k+'"':"")+"/>";if(f+="',o)try{f=new buffer(f).tostring("base64")}catch(r){o=!1}return f="'data:image/svg+xml"+(o?";base64":"")+","+f+"'",new d.url(new d.anonymous(f))}},d._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(a){var e=c("path").extname(a),f=d._mime._types[e];if(f===b)throw new error('optional dependency "mime" is required for '+e);return f},charsets:{lookup:function(a){return a&&/^text\//.test(a)?"utf-8":""}}};var l={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"},m={multiply:function(a,b){return a*b},screen:function(a,b){return a+b-a*b},overlay:function(a,b){return a*=2,1>=a?m.multiply(a,b):m.screen(a-1,b)},softlight:function(a,b){var c=1,d=a;return b>.5&&(d=1,c=a>.25?math.sqrt(a):((16*a-12)*a+4)*a),a-(1-2*b)*d*(c-a)},hardlight:function(a,b){return m.overlay(b,a)},difference:function(a,b){return math.abs(a-b)},exclusion:function(a,b){return a+b-2*a*b},average:function(a,b){return(a+b)/2},negation:function(a,b){return 1-math.abs(a+b-1)}};d.defaultfunc={eval:function(){var a=this.value_,b=this.error_;if(b)throw b;return null!=a?a?d.true:d.false:void 0},value:function(a){this.value_=a},error:function(a){this.error_=a},reset:function(){this.value_=this.error_=null}},g(),d.functioncall=function(a,b){this.env=a,this.currentfileinfo=b},d.functioncall.prototype=d.functions}(c("./tree")),function(a){a.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"}}(c("./tree")),function(a){a.debuginfo=function(b,c,d){var e="";if(b.dumplinenumbers&&!b.compress)switch(b.dumplinenumbers){case"comments":e=a.debuginfo.ascomment(c);break;case"mediaquery":e=a.debuginfo.asmediaquery(c);break;case"all":e=a.debuginfo.ascomment(c)+(d||"")+a.debuginfo.asmediaquery(c)}return e},a.debuginfo.ascomment=function(a){return"/* line "+a.debuginfo.linenumber+", "+a.debuginfo.filename+" */\n"},a.debuginfo.asmediaquery=function(a){return"@media -sass-debug-info{filename{font-family:"+("file://"+a.debuginfo.filename).replace(/([.:/\\])/g,function(a){return"\\"==a&&(a="/"),"\\"+a})+"}line{font-family:\\00003"+a.debuginfo.linenumber+"}}\n"},a.find=function(a,b){for(var c,d=0;d1?"["+a.value.map(function(a){return a.tocss(!1)}).join(", ")+"]":a.tocss(!1)},a.tocss=function(a){var b=[];return this.gencss(a,{add:function(a){b.push(a)},isempty:function(){return 0===b.length}}),b.join("")},a.outputruleset=function(a,b,c){var d,e=c.length;if(a.tablevel=(0|a.tablevel)+1,a.compress){for(b.add("{"),d=0;e>d;d++)c[d].gencss(a,b);return b.add("}"),a.tablevel--,void 0}var f="\n"+array(a.tablevel).join(" "),g=f+" ";if(e){for(b.add(" {"+g),c[0].gencss(a,b),d=1;e>d;d++)b.add(g),c[d].gencss(a,b);b.add(f+"}")}else b.add(" {"+f+"}");a.tablevel--}}(c("./tree")),function(a){a.alpha=function(a){this.value=a},a.alpha.prototype={type:"alpha",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return this.value.eval?new a.alpha(this.value.eval(b)):this},gencss:function(a,b){b.add("alpha(opacity="),this.value.gencss?this.value.gencss(a,b):b.add(this.value),b.add(")")},tocss:a.tocss}}(c("../tree")),function(a){a.anonymous=function(a,b,c,d){this.value=a.value||a,this.index=b,this.maplines=d,this.currentfileinfo=c},a.anonymous.prototype={type:"anonymous",eval:function(){return new a.anonymous(this.value,this.index,this.currentfileinfo,this.maplines)},compare:function(a){if(!a.tocss)return-1;var b=this.tocss(),c=a.tocss();return b===c?0:c>b?-1:1},gencss:function(a,b){b.add(this.value,this.currentfileinfo,this.index,this.maplines)},tocss:a.tocss}}(c("../tree")),function(a){a.assignment=function(a,b){this.key=a,this.value=b},a.assignment.prototype={type:"assignment",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return this.value.eval?new a.assignment(this.key,this.value.eval(b)):this},gencss:function(a,b){b.add(this.key+"="),this.value.gencss?this.value.gencss(a,b):b.add(this.value)},tocss:a.tocss}}(c("../tree")),function(a){a.call=function(a,b,c,d){this.name=a,this.args=b,this.index=c,this.currentfileinfo=d},a.call.prototype={type:"call",accept:function(a){this.args&&(this.args=a.visitarray(this.args))},eval:function(b){var c,d,e=this.args.map(function(a){return a.eval(b)}),f=this.name.tolowercase();if(f in a.functions)try{if(d=new a.functioncall(b,this.currentfileinfo),c=d[f].apply(d,e),null!=c)return c}catch(g){throw{type:g.type||"runtime",message:"error evaluating function `"+this.name+"`"+(g.message?": "+g.message:""),index:this.index,filename:this.currentfileinfo.filename}}return new a.call(this.name,e,this.index,this.currentfileinfo)},gencss:function(a,b){b.add(this.name+"(",this.currentfileinfo,this.index);for(var c=0;ca?"0":"")+a.tostring(16)}).join("")}function c(a,b){return math.min(math.max(a,0),b)}a.color=function(a,b){this.rgb=array.isarray(a)?a:6==a.length?a.match(/.{2}/g).map(function(a){return parseint(a,16)}):a.split("").map(function(a){return parseint(a+a,16)}),this.alpha="number"==typeof b?b:1};var d="transparent";a.color.prototype={type:"color",eval:function(){return this},luma:function(){return.2126*this.rgb[0]/255+.7152*this.rgb[1]/255+.0722*this.rgb[2]/255},gencss:function(a,b){b.add(this.tocss(a))},tocss:function(a,b){var e=a&&a.compress&&!b;if(this.alpha<1)return 0===this.alpha&&this.istransparentkeyword?d:"rgba("+this.rgb.map(function(a){return c(math.round(a),255)}).concat(c(this.alpha,1)).join(","+(e?"":" "))+")";var f=this.torgb();if(e){var g=f.split("");g[1]===g[2]&&g[3]===g[4]&&g[5]===g[6]&&(f="#"+g[1]+g[3]+g[5])}return f},operate:function(b,c,d){for(var e=[],f=this.alpha*(1-d.alpha)+d.alpha,g=0;3>g;g++)e[g]=a.operate(b,c,this.rgb[g],d.rgb[g]);return new a.color(e,f)},torgb:function(){return b(this.rgb)},tohsl:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=math.max(c,d,e),h=math.min(c,d,e),i=(g+h)/2,j=g-h;if(g===h)a=b=0;else{switch(b=i>.5?j/(2-g-h):j/(g+h),g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,l:i,a:f}},tohsv:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=math.max(c,d,e),h=math.min(c,d,e),i=g,j=g-h;if(b=0===g?0:j/g,g===h)a=0;else{switch(g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,v:i,a:f}},toargb:function(){return b([255*this.alpha].concat(this.rgb))},compare:function(a){return a.rgb?a.rgb[0]===this.rgb[0]&&a.rgb[1]===this.rgb[1]&&a.rgb[2]===this.rgb[2]&&a.alpha===this.alpha?0:-1:-1}},a.color.fromkeyword=function(b){if(a.colors.hasownproperty(b))return new a.color(a.colors[b].slice(1));if(b===d){var c=new a.color([0,0,0],0);return c.istransparentkeyword=!0,c}}}(c("../tree")),function(a){a.comment=function(a,b,c,d){this.value=a,this.silent=!!b,this.currentfileinfo=d},a.comment.prototype={type:"comment",gencss:function(b,c){this.debuginfo&&c.add(a.debuginfo(b,this),this.currentfileinfo,this.index),c.add(this.value.trim())},tocss:a.tocss,issilent:function(a){var b=this.currentfileinfo&&this.currentfileinfo.reference&&!this.isreferenced,c=a.compress&&!this.value.match(/^\/\*!/);return this.silent||b||c},eval:function(){return this},markreferenced:function(){this.isreferenced=!0}}}(c("../tree")),function(a){a.condition=function(a,b,c,d,e){this.op=a.trim(),this.lvalue=b,this.rvalue=c,this.index=d,this.negate=e},a.condition.prototype={type:"condition",accept:function(a){this.lvalue=a.visit(this.lvalue),this.rvalue=a.visit(this.rvalue)},eval:function(a){var b,c=this.lvalue.eval(a),d=this.rvalue.eval(a),e=this.index;return b=function(a){switch(a){case"and":return c&&d;case"or":return c||d;default:if(c.compare)b=c.compare(d);else{if(!d.compare)throw{type:"type",message:"unable to perform comparison",index:e};b=d.compare(c)}switch(b){case-1:return"<"===a||"=<"===a||"<="===a;case 0:return"="===a||">="===a||"=<"===a||"<="===a;case 1:return">"===a||">="===a}}}(this.op),this.negate?!b:b}}}(c("../tree")),function(a){a.dimension=function(c,d){this.value=parsefloat(c),this.unit=d&&d instanceof a.unit?d:new a.unit(d?[d]:b)},a.dimension.prototype={type:"dimension",accept:function(a){this.unit=a.visit(this.unit)},eval:function(){return this},tocolor:function(){return new a.color([this.value,this.value,this.value])},gencss:function(a,b){if(a&&a.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 c=this.value,d=string(c);if(0!==c&&1e-6>c&&c>-1e-6&&(d=c.tofixed(20).replace(/0+$/,"")),a&&a.compress){if(0===c&&this.unit.islength())return b.add(d),void 0;c>0&&1>c&&(d=d.substr(1))}b.add(d),this.unit.gencss(a,b)},tocss:a.tocss,operate:function(b,c,d){var e=a.operate(b,c,this.value,d.value),f=this.unit.clone();if("+"===c||"-"===c)if(0===f.numerator.length&&0===f.denominator.length)f.numerator=d.unit.numerator.slice(0),f.denominator=d.unit.denominator.slice(0);else if(0===d.unit.numerator.length&&0===f.denominator.length);else{if(d=d.convertto(this.unit.usedunits()),b.strictunits&&d.unit.tostring()!==f.tostring())throw new error("incompatible units. change the units or use the unit function. bad units: '"+f.tostring()+"' and '"+d.unit.tostring()+"'.");e=a.operate(b,c,this.value,d.value)}else"*"===c?(f.numerator=f.numerator.concat(d.unit.numerator).sort(),f.denominator=f.denominator.concat(d.unit.denominator).sort(),f.cancel()):"/"===c&&(f.numerator=f.numerator.concat(d.unit.denominator).sort(),f.denominator=f.denominator.concat(d.unit.numerator).sort(),f.cancel());return new a.dimension(e,f)},compare:function(b){if(b instanceof a.dimension){var c=this.unify(),d=b.unify(),e=c.value,f=d.value;return f>e?-1:e>f?1:d.unit.isempty()||0===c.unit.compare(d.unit)?0:-1}return-1},unify:function(){return this.convertto({length:"m",duration:"s",angle:"rad"})},convertto:function(b){var c,d,e,f,g,h=this.value,i=this.unit.clone(),j={};if("string"==typeof b){for(c in a.unitconversions)a.unitconversions[c].hasownproperty(b)&&(j={},j[c]=b);b=j}g=function(a,b){return e.hasownproperty(a)?(b?h/=e[a]/e[f]:h*=e[a]/e[f],f):a};for(d in b)b.hasownproperty(d)&&(f=b[d],e=a.unitconversions[d],i.map(g));return i.cancel(),new a.dimension(h,i)}},a.unitconversions={length:{m:1,cm:.01,mm:.001,"in":.0254,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}},a.unit=function(a,b,c){this.numerator=a?a.slice(0).sort():[],this.denominator=b?b.slice(0).sort():[],this.backupunit=c},a.unit.prototype={type:"unit",clone:function(){return new a.unit(this.numerator.slice(0),this.denominator.slice(0),this.backupunit)},gencss:function(a,b){this.numerator.length>=1?b.add(this.numerator[0]):this.denominator.length>=1?b.add(this.denominator[0]):a&&a.strictunits||!this.backupunit||b.add(this.backupunit)},tocss:a.tocss,tostring:function(){var a,b=this.numerator.join("*");for(a=0;a0)for(b=0;e>b;b++)this.numerator.push(a);else if(0>e)for(b=0;-e>b;b++)this.denominator.push(a)}0===this.numerator.length&&0===this.denominator.length&&c&&(this.backupunit=c),this.numerator.sort(),this.denominator.sort()}}}(c("../tree")),function(a){a.directive=function(b,c,d,e){this.name=b,array.isarray(c)?(this.rules=[new a.ruleset(null,c)],this.rules[0].allowimports=!0):this.value=c,this.currentfileinfo=e},a.directive.prototype={type:"directive",accept:function(a){this.rules&&(this.rules=a.visitarray(this.rules)),this.value&&(this.value=a.visit(this.value))},gencss:function(b,c){c.add(this.name,this.currentfileinfo,this.index),this.rules?a.outputruleset(b,c,this.rules):(c.add(" "),this.value.gencss(b,c),c.add(";"))},tocss:a.tocss,eval:function(b){var c=this;return this.rules&&(b.frames.unshift(this),c=new a.directive(this.name,null,this.index,this.currentfileinfo),c.rules=[this.rules[0].eval(b)],c.rules[0].root=!0,b.frames.shift()),c},variable:function(b){return a.ruleset.prototype.variable.call(this.rules[0],b)},find:function(){return a.ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return a.ruleset.prototype.rulesets.apply(this.rules[0])},markreferenced:function(){var a,b;if(this.isreferenced=!0,this.rules)for(b=this.rules[0].rules,a=0;a":" > ","|":"|"},_outputmapcompressed:{"":""," ":" ",":":" :","+":"+","~":"~",">":">","|":"|"},gencss:function(a,b){b.add((a.compress?this._outputmapcompressed:this._outputmap)[this.value])},tocss:a.tocss}}(c("../tree")),function(a){a.expression=function(a){this.value=a},a.expression.prototype={type:"expression",accept:function(a){this.value&&(this.value=a.visitarray(this.value))},eval:function(b){var c,d=this.parens&&!this.parensinop,e=!1;return d&&b.inparenthesis(),this.value.length>1?c=new a.expression(this.value.map(function(a){return a.eval(b)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensinop&&(e=!0),c=this.value[0].eval(b)):c=this,d&&b.outofparenthesis(),this.parens&&this.parensinop&&!b.ismathon()&&!e&&(c=new a.paren(c)),c},gencss:function(a,b){for(var c=0;c0&&c.length&&""===c[0].combinator.value&&(c[0].combinator.value=" "),d=d.concat(a[b].elements);this.selfselectors=[{elements:d}]}}}(c("../tree")),function(a){a.import=function(a,c,d,e,f){if(this.options=d,this.index=e,this.path=a,this.features=c,this.currentfileinfo=f,this.options.less!==b||this.options.inline)this.css=!this.options.less||this.options.inline;else{var g=this.getpath();g&&/css([\?;].*)?$/.test(g)&&(this.css=!0)}},a.import.prototype={type:"import",accept:function(a){this.features&&(this.features=a.visit(this.features)),this.path=a.visit(this.path),!this.options.inline&&this.root&&(this.root=a.visit(this.root))},gencss:function(a,b){this.css&&(b.add("@import ",this.currentfileinfo,this.index),this.path.gencss(a,b),this.features&&(b.add(" "),this.features.gencss(a,b)),b.add(";"))},tocss:a.tocss,getpath:function(){if(this.path instanceof a.quoted){var c=this.path.value;return this.css!==b||/(\.[a-z]*$)|([\?;].*)$/.test(c)?c:c+".less"}return this.path instanceof a.url?this.path.value.value:null},evalforimport:function(b){return new a.import(this.path.eval(b),this.features,this.options,this.index,this.currentfileinfo)},evalpath:function(b){var c=this.path.eval(b),d=this.currentfileinfo&&this.currentfileinfo.rootpath;if(!(c instanceof a.url)){if(d){var e=c.value;e&&b.ispathrelative(e)&&(c.value=d+e)}c.value=b.normalizepath(c.value)}return c},eval:function(b){var c,d=this.features&&this.features.eval(b);if(this.skip)return[];if(this.options.inline){var e=new a.anonymous(this.root,0,{filename:this.importedfilename},!0);return this.features?new a.media([e],this.features.value):[e]}if(this.css){var f=new a.import(this.evalpath(b),d,this.options,this.index);if(!f.css&&this.error)throw this.error;return f}return c=new a.ruleset(null,this.root.rules.slice(0)),c.evalimports(b),this.features?new a.media(c.rules,this.features.value):c.rules}}}(c("../tree")),function(a){a.javascript=function(a,b,c){this.escaped=c,this.expression=a,this.index=b},a.javascript.prototype={type:"javascript",eval:function(b){var c,d=this,e={},f=this.expression.replace(/@\{([\w-]+)\}/g,function(c,e){return a.jsify(new a.variable("@"+e,d.index).eval(b))});try{f=new function("return ("+f+")")}catch(g){throw{message:"javascript evaluation error: "+g.message+" from `"+f+"`",index:this.index}}for(var h in b.frames[0].variables())e[h.slice(1)]={value:b.frames[0].variables()[h].value,tojs:function(){return this.value.eval(b).tocss()}};try{c=f.call(e)}catch(g){throw{message:"javascript evaluation error: '"+g.name+": "+g.message+"'",index:this.index}}return"number"==typeof c?new a.dimension(c):"string"==typeof c?new a.quoted('"'+c+'"',c,this.escaped,this.index):array.isarray(c)?new a.anonymous(c.join(", ")):new a.anonymous(c)}}}(c("../tree")),function(a){a.keyword=function(a){this.value=a},a.keyword.prototype={type:"keyword",eval:function(){return this},gencss:function(a,b){b.add(this.value)},tocss:a.tocss,compare:function(b){return b instanceof a.keyword?b.value===this.value?0:1:-1}},a.true=new a.keyword("true"),a.false=new a.keyword("false")}(c("../tree")),function(a){a.media=function(b,c,d,e){this.index=d,this.currentfileinfo=e;var f=this.emptyselectors();this.features=new a.value(c),this.rules=[new a.ruleset(f,b)],this.rules[0].allowimports=!0},a.media.prototype={type:"media",accept:function(a){this.features&&(this.features=a.visit(this.features)),this.rules&&(this.rules=a.visitarray(this.rules))},gencss:function(b,c){c.add("@media ",this.currentfileinfo,this.index),this.features.gencss(b,c),a.outputruleset(b,c,this.rules)},tocss:a.tocss,eval:function(b){b.mediablocks||(b.mediablocks=[],b.mediapath=[]);var c=new a.media(null,[],this.index,this.currentfileinfo);this.debuginfo&&(this.rules[0].debuginfo=this.debuginfo,c.debuginfo=this.debuginfo);var d=!1;b.strictmath||(d=!0,b.strictmath=!0);try{c.features=this.features.eval(b)}finally{d&&(b.strictmath=!1)}return b.mediapath.push(c),b.mediablocks.push(c),b.frames.unshift(this.rules[0]),c.rules=[this.rules[0].eval(b)],b.frames.shift(),b.mediapath.pop(),0===b.mediapath.length?c.evaltop(b):c.evalnested(b)},variable:function(b){return a.ruleset.prototype.variable.call(this.rules[0],b)},find:function(){return a.ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return a.ruleset.prototype.rulesets.apply(this.rules[0])},emptyselectors:function(){var b=new a.element("","&",this.index,this.currentfileinfo);return[new a.selector([b],null,null,this.index,this.currentfileinfo)]},markreferenced:function(){var a,b=this.rules[0].rules;for(this.isreferenced=!0,a=0;a1){var d=this.emptyselectors();c=new a.ruleset(d,b.mediablocks),c.multimedia=!0}return delete b.mediablocks,delete b.mediapath,c},evalnested:function(b){var c,d,e=b.mediapath.concat([this]);for(c=0;c0;c--)b.splice(c,0,new a.anonymous("and"));return new a.expression(b)})),new a.ruleset([],[])},permute:function(a){if(0===a.length)return[];if(1===a.length)return a[0];for(var b=[],c=this.permute(a.slice(1)),d=0;d0){for(j=!0,g=0;gh;h++)q.value(h),p[h]=d.matchcondition(e,b);if(p[0]||p[1]){if(p[0]!=p[1]){if(r)throw{type:"runtime",message:"ambiguous use of `default()` found when matching for `"+this.format(e)+"`",index:this.index,filename:this.currentfileinfo.filename};r=!0,l.matchifdefault=!0,l.matchifdefaultvalue=p[1]}o.push(l)}}else o.push(l);n=!0}}q.reset();for(g in o)if(l=o[g],!l.matchifdefault||l.matchifdefaultvalue==(1==o.length))try{d=l.mixin,d instanceof a.mixin.definition||(d=new a.mixin.definition("",[],d.rules,null,!1),d.originalruleset=c[g].originalruleset||c[g]),array.prototype.push.apply(m,d.eval(b,e,this.important).rules)}catch(s){throw{message:s.message,index:this.index,filename:this.currentfileinfo.filename,stack:s.stack}}if(n){if(!this.currentfileinfo||!this.currentfileinfo.reference)for(f=0;fthis.params.length)return!1}c=math.min(d,this.arity);for(var e=0;c>e;e++)if(!this.params[e].name&&!this.params[e].variadic&&a[e].value.eval(b).tocss()!=this.params[e].value.eval(b).tocss())return!1;return!0}}}(c("../tree")),function(a){a.negative=function(a){this.value=a},a.negative.prototype={type:"negative",accept:function(a){this.value=a.visit(this.value)},gencss:function(a,b){b.add("-"),this.value.gencss(a,b)},tocss:a.tocss,eval:function(b){return b.ismathon()?new a.operation("*",[new a.dimension(-1),this.value]).eval(b):new a.negative(this.value.eval(b))}}}(c("../tree")),function(a){a.operation=function(a,b,c){this.op=a.trim(),this.operands=b,this.isspaced=c},a.operation.prototype={type:"operation",accept:function(a){this.operands=a.visit(this.operands)},eval:function(b){var c=this.operands[0].eval(b),d=this.operands[1].eval(b);if(b.ismathon()){if(c instanceof a.dimension&&d instanceof a.color&&(c=c.tocolor()),d instanceof a.dimension&&c instanceof a.color&&(d=d.tocolor()),!c.operate)throw{type:"operation",message:"operation on an invalid type"};return c.operate(b,this.op,d)}return new a.operation(this.op,[c,d],this.isspaced)},gencss:function(a,b){this.operands[0].gencss(a,b),this.isspaced&&b.add(" "),b.add(this.op),this.isspaced&&b.add(" "),this.operands[1].gencss(a,b)},tocss:a.tocss},a.operate=function(a,b,c,d){switch(b){case"+":return c+d;case"-":return c-d;case"*":return c*d;case"/":return c/d}}}(c("../tree")),function(a){a.paren=function(a){this.value=a},a.paren.prototype={type:"paren",accept:function(a){this.value=a.visit(this.value)},gencss:function(a,b){b.add("("),this.value.gencss(a,b),b.add(")")},tocss:a.tocss,eval:function(b){return new a.paren(this.value.eval(b))}}}(c("../tree")),function(a){a.quoted=function(a,b,c,d,e){this.escaped=c,this.value=b||"",this.quote=a.charat(0),this.index=d,this.currentfileinfo=e},a.quoted.prototype={type:"quoted",gencss:function(a,b){this.escaped||b.add(this.quote,this.currentfileinfo,this.index),b.add(this.value),this.escaped||b.add(this.quote)},tocss:a.tocss,eval:function(b){var c=this,d=this.value.replace(/`([^`]+)`/g,function(d,e){return new a.javascript(e,c.index,!0).eval(b).value}).replace(/@\{([\w-]+)\}/g,function(d,e){var f=new a.variable("@"+e,c.index,c.currentfileinfo).eval(b,!0);return f instanceof a.quoted?f.value:f.tocss()});return new a.quoted(this.quote+d+this.quote,d,this.escaped,this.index,this.currentfileinfo)},compare:function(a){if(!a.tocss)return-1;var b=this.tocss(),c=a.tocss();return b===c?0:c>b?-1:1}}}(c("../tree")),function(a){a.rule=function(b,c,d,e,f,g,h){this.name=b,this.value=c instanceof a.value?c:new a.value([c]),this.important=d?" "+d.trim():"",this.merge=e,this.index=f,this.currentfileinfo=g,this.inline=h||!1,this.variable=b.charat&&"@"===b.charat(0)},a.rule.prototype={type:"rule",accept:function(a){this.value=a.visit(this.value)},gencss:function(a,b){b.add(this.name+(a.compress?":":": "),this.currentfileinfo,this.index);try{this.value.gencss(a,b)}catch(c){throw c.index=this.index,c.filename=this.currentfileinfo.filename,c}b.add(this.important+(this.inline||a.lastrule&&a.compress?"":";"),this.currentfileinfo,this.index)},tocss:a.tocss,eval:function(c){var d=!1,e=this.name.map?this.name.map(function(a){return a.eval?a.eval(c).value:a}).join(""):this.name;"font"!==e||c.strictmath||(d=!0,c.strictmath=!0);try{return new a.rule(e,this.value.eval(c),this.important,this.merge,this.index,this.currentfileinfo,this.inline)}catch(f){throw f.index===b&&(f.index=this.index),f}finally{d&&(c.strictmath=!1)}},makeimportant:function(){return new a.rule(this.name,this.value,"!important",this.merge,this.index,this.currentfileinfo,this.inline)}}}(c("../tree")),function(a){a.ruleset=function(a,b,c){this.selectors=a,this.rules=b,this._lookups={},this.strictimports=c},a.ruleset.prototype={type:"ruleset",accept:function(a){this.paths?a.visitarray(this.paths,!0):this.selectors&&(this.selectors=a.visitarray(this.selectors)),this.rules&&this.rules.length&&(this.rules=a.visitarray(this.rules))},eval:function(b){var c,d,e,f=this.selectors,g=a.defaultfunc;if(f&&(d=f.length)){for(c=[],g.error({type:"syntax",message:"it is currently only allowed in parametric mixin guards,"}),e=0;d>e;e++)c.push(f[e].eval(b));g.reset()}var h,i=this.rules?this.rules.slice(0):null,j=new a.ruleset(c,i,this.strictimports);j.originalruleset=this,j.root=this.root,j.firstroot=this.firstroot,j.allowimports=this.allowimports,this.debuginfo&&(j.debuginfo=this.debuginfo);var k=b.frames;k.unshift(j);var l=b.selectors;l||(b.selectors=l=[]),l.unshift(this.selectors),(j.root||j.allowimports||!j.strictimports)&&j.evalimports(b);var m=j.rules,n=m?m.length:0;for(e=0;n>e;e++)m[e]instanceof a.mixin.definition&&(m[e].frames=k.slice(0));var o=b.mediablocks&&b.mediablocks.length||0;for(e=0;n>e;e++)m[e]instanceof a.mixin.call&&(i=m[e].eval(b).filter(function(b){return b instanceof a.rule&&b.variable?!j.variable(b.name):!0}),m.splice.apply(m,[e,1].concat(i)),n+=i.length-1,e+=i.length-1,j.resetcache());for(e=0;n>e;e++)h=m[e],h instanceof a.mixin.definition||(m[e]=h.eval?h.eval(b):h);if(k.shift(),l.shift(),b.mediablocks)for(e=o;eb;b++)c=g[b],(c instanceof d||c instanceof e)&&f.push(c);return f},prependrule:function(a){var b=this.rules;b?b.unshift(a):this.rules=[a]},find:function(b,c){c=c||this;var d,e=[],f=b.tocss();return f in this._lookups?this._lookups[f]:(this.rulesets().foreach(function(f){if(f!==c)for(var g=0;gd?array.prototype.push.apply(e,f.find(new a.selector(b.elements.slice(d)),c)):e.push(f);break}}),this._lookups[f]=e,e)},gencss:function(b,c){var d,e,f,g,h,i,j=[],k=[];b.tablevel=b.tablevel||0,this.root||b.tablevel++;var l,m=b.compress?"":array(b.tablevel+1).join(" "),n=b.compress?"":array(b.tablevel).join(" ");for(d=0;dd;d++)if(i=p[d],o=i.length)for(d>0&&c.add(l),b.firstselector=!0,i[0].gencss(b,c),b.firstselector=!1,e=1;o>e;e++)i[e].gencss(b,c);c.add((b.compress?"{":" {\n")+m)}for(d=0;dd;d++)l&&c.add(l),k[d].gencss(b,c);c.isempty()||b.compress||!this.firstroot||c.add("\n")},tocss:a.tocss,markreferenced:function(){for(var a=0;a0&&this.mergeelementsontoselectors(r,i),f=0;f0&&(k[0].elements=k[0].elements.slice(0),k[0].elements.push(new a.element(j.combinator,"",0,j.index,j.currentfileinfo))),s.push(k);else for(g=0;g0?(m=k.slice(0),q=m.pop(),o=d.createderived(q.elements.slice(0)),p=!1):o=d.createderived([]),l.length>1&&(n=n.concat(l.slice(1))),l.length>0&&(p=!1,o.elements.push(new a.element(j.combinator,l[0].elements[0].value,j.index,j.currentfileinfo)),o.elements=o.elements.concat(l[0].elements.slice(1))),p||m.push(o),m=m.concat(n),s.push(m);i=s,r=[]}for(r.length>0&&this.mergeelementsontoselectors(r,i),e=0;e0&&b.push(i[e])}else if(c.length>0)for(e=0;e0?e[e.length-1]=e[e.length-1].createderived(e[e.length-1].elements.concat(b)):e.push(new a.selector(b))}}}(c("../tree")),function(a){a.selector=function(a,b,c,d,e,f){this.elements=a,this.extendlist=b,this.condition=c,this.currentfileinfo=e||{},this.isreferenced=f,c||(this.evaldcondition=!0)},a.selector.prototype={type:"selector",accept:function(a){this.elements&&(this.elements=a.visitarray(this.elements)),this.extendlist&&(this.extendlist=a.visitarray(this.extendlist)),this.condition&&(this.condition=a.visit(this.condition))},createderived:function(b,c,d){d=null!=d?d:this.evaldcondition;var e=new a.selector(b,c||this.extendlist,this.condition,this.index,this.currentfileinfo,this.isreferenced);return e.evaldcondition=d,e},match:function(a){var b,c,d,e=this.elements,f=e.length;if(b=a.elements.map(function(a){return a.combinator.value+(a.value.value||a.value)}).join("").match(/[,&#\.\w-]([\w-]|(\\.))*/g),!b)return 0;if("&"===b[0]&&b.shift(),c=b.length,0===c||c>f)return 0;for(d=0;c>d;d++)if(e[d].value!==b[d])return 0;return c},eval:function(a){var b=this.condition&&this.condition.eval(a),c=this.elements,d=this.extendlist;return c=c&&c.map(function(b){return b.eval(a)}),d=d&&d.map(function(b){return b.eval(a)}),this.createderived(c,d,b)},gencss:function(a,b){var c,d;if(a&&a.firstselector||""!==this.elements[0].combinator.value||b.add(" ",this.currentfileinfo,this.index),!this._css)for(c=0;cc;c++)this.visit(a[c]);return a}var e=[];for(c=0;d>c;c++){var f=this.visit(a[c]);f.splice?f.length&&this.flatten(f,e):e.push(f)}return e},flatten:function(a,b){b||(b=[]);var c,d,e,f,g,h;for(d=0,c=a.length;c>d;d++)if(e=a[d],e.splice)for(g=0,f=e.length;f>g;g++)h=e[g],h.splice?h.length&&this.flatten(h,b):b.push(h);else b.push(e);return b}}}(c("./tree")),function(a){a.importvisitor=function(b,c,d){this._visitor=new a.visitor(this),this._importer=b,this._finish=c,this.env=d||new a.evalenv,this.importcount=0},a.importvisitor.prototype={isreplacing:!0,run:function(a){var b;try{this._visitor.visit(a)}catch(c){b=c}this.isfinished=!0,0===this.importcount&&this._finish(b)},visitimport:function(b,c){var d,e=this,f=b.options.inline;if(!b.css||f){try{d=b.evalforimport(this.env)}catch(g){g.filename||(g.index=b.index,g.filename=b.currentfileinfo.filename),b.css=!0,b.error=g}if(d&&(!d.css||f)){b=d,this.importcount++;var h=new a.evalenv(this.env,this.env.frames.slice(0));b.options.multiple&&(h.importmultiple=!0),this._importer.push(b.getpath(),b.currentfileinfo,b.options,function(c,d,g,i){c&&!c.filename&&(c.index=b.index,c.filename=b.currentfileinfo.filename),g&&!h.importmultiple&&(b.skip=g);var j=function(a){e.importcount--,0===e.importcount&&e.isfinished&&e._finish(a)};return!d||(b.root=d,b.importedfilename=i,f||b.skip)?(j(),void 0):(new a.importvisitor(e._importer,j,h).run(d),void 0)})}}return c.visitdeeper=!1,b},visitrule:function(a,b){return b.visitdeeper=!1,a},visitdirective:function(a){return this.env.frames.unshift(a),a},visitdirectiveout:function(){this.env.frames.shift()},visitmixindefinition:function(a){return this.env.frames.unshift(a),a},visitmixindefinitionout:function(){this.env.frames.shift()},visitruleset:function(a){return this.env.frames.unshift(a),a},visitrulesetout:function(){this.env.frames.shift()},visitmedia:function(a){return this.env.frames.unshift(a.ruleset),a},visitmediaout:function(){this.env.frames.shift()}}}(c("./tree")),function(a){a.joinselectorvisitor=function(){this.contexts=[[]],this._visitor=new a.visitor(this)},a.joinselectorvisitor.prototype={run:function(a){return this._visitor.visit(a)},visitrule:function(a,b){b.visitdeeper=!1},visitmixindefinition:function(a,b){b.visitdeeper=!1},visitruleset:function(a){var b,c=this.contexts[this.contexts.length-1],d=[];this.contexts.push(d),a.root||(b=a.selectors,b&&(b=b.filter(function(a){return a.getisoutput()}),a.selectors=b.length?b:b=null,b&&a.joinselectors(d,c,b)),b||(a.rules=null),a.paths=d)},visitrulesetout:function(){this.contexts.length=this.contexts.length-1},visitmedia:function(a){var b=this.contexts[this.contexts.length-1];a.rules[0].root=0===b.length||b[0].multimedia}}}(c("./tree")),function(a){a.tocssvisitor=function(b){this._visitor=new a.visitor(this),this._env=b},a.tocssvisitor.prototype={isreplacing:!0,run:function(a){return this._visitor.visit(a)},visitrule:function(a){return a.variable?[]:a},visitmixindefinition:function(){return[]},visitextend:function(){return[]},visitcomment:function(a){return a.issilent(this._env)?[]:a},visitmedia:function(a,b){return a.accept(this._visitor),b.visitdeeper=!1,a.rules.length?a:[]},visitdirective:function(b){if(b.currentfileinfo.reference&&!b.isreferenced)return[];if("@charset"===b.name){if(this.charset){if(b.debuginfo){var c=new a.comment("/* "+b.tocss(this._env).replace(/\n/g,"")+" */\n");return c.debuginfo=b.debuginfo,this._visitor.visit(c)}return[]}this.charset=!0}return b},checkpropertiesinroot:function(b){for(var c,d=0;d0)&&e.splice(0,0,b);else{b.paths&&(b.paths=b.paths.filter(function(b){var c;for(" "===b[0].elements[0].combinator.value&&(b[0].elements[0].combinator=new a.combinator("")),c=0;ch;)d=f[h],d&&d.rules?(e.push(this._visitor.visit(d)),f.splice(h,1),g--):h++;g>0?b.accept(this._visitor):b.rules=null,c.visitdeeper=!1,f=b.rules,f&&(this._mergerules(f),f=b.rules),f&&(this._removeduplicaterules(f),f=b.rules),f&&f.length>0&&b.paths.length>0&&e.splice(0,0,b)}return 1===e.length?e[0]:e},_removeduplicaterules:function(b){if(b){var c,d,e,f={};for(e=b.length-1;e>=0;e--)if(d=b[e],d instanceof a.rule)if(f[d.name]){c=f[d.name],c instanceof a.rule&&(c=f[d.name]=[f[d.name].tocss(this._env)]);var g=d.tocss(this._env);-1!==c.indexof(g)?b.splice(e,1):c.push(g)}else f[d.name]=d}},_mergerules:function(b){if(b){for(var c,d,e,f={},g=0;g1&&(d=c[0],d.value=new a.value(c.map(function(a){return a.value})))})}}}}(c("./tree")),function(a){a.extendfindervisitor=function(){this._visitor=new a.visitor(this),this.contexts=[],this.allextendsstack=[[]]},a.extendfindervisitor.prototype={run:function(a){return a=this._visitor.visit(a),a.allextends=this.allextendsstack[0],a},visitrule:function(a,b){b.visitdeeper=!1},visitmixindefinition:function(a,b){b.visitdeeper=!1},visitruleset:function(b){if(!b.root){var c,d,e,f,g=[],h=b.rules,i=h?h.length:0;for(c=0;i>c;c++)b.rules[c]instanceof a.extend&&(g.push(h[c]),b.extendoneverypath=!0);var j=b.paths;for(c=0;c=0||(i=[k.selfselectors[0]],g=n.findmatch(j,i),g.length&&j.selfselectors.foreach(function(b){h=n.extendselector(g,i,b),l=new a.extend(k.selector,k.option,0),l.selfselectors=h,h[h.length-1].extendlist=[l],m.push(l),l.ruleset=k.ruleset,l.parent_ids=l.parent_ids.concat(k.parent_ids,j.parent_ids),k.firstextendonthisselectorpath&&(l.firstextendonthisselectorpath=!0,k.ruleset.paths.push(h))}));if(m.length){if(this.extendchaincount++,d>100){var o="{unable to calculate}",p="{unable to calculate}";try{o=m[0].selfselectors[0].tocss(),p=m[0].selector.tocss()}catch(q){}throw{message:"extend circular reference detected. one of the circular extends is currently:"+o+":extend("+p+")"}}return m.concat(n.doextendchaining(m,c,d+1))}return m},visitrule:function(a,b){b.visitdeeper=!1},visitmixindefinition:function(a,b){b.visitdeeper=!1},visitselector:function(a,b){b.visitdeeper=!1},visitruleset:function(a){if(!a.root){var b,c,d,e,f=this.allextendsstack[this.allextendsstack.length-1],g=[],h=this;for(d=0;d0&&k[i.matched].combinator.value!==g?i=null:i.matched++,i&&(i.finished=i.matched===k.length,i.finished&&!a.allowafter&&(e+1j&&k>0&&(l[l.length-1].elements=l[l.length-1].elements.concat(c[j].elements.slice(k)),k=0,j++),i=f.elements.slice(k,h.index).concat([g]).concat(d.elements.slice(1)),j===h.pathindex&&e>0?l[l.length-1].elements=l[l.length-1].elements.concat(i):(l=l.concat(c.slice(j,h.pathindex)),l.push(new a.selector(i))),j=h.endpathindex,k=h.endpathelementindex,k>=c[j].elements.length&&(k=0,j++);return j0&&(l[l.length-1].elements=l[l.length-1].elements.concat(c[j].elements.slice(k)),j++),l=l.concat(c.slice(j,c.length))},visitrulesetout:function(){},visitmedia:function(a){var b=a.allextends.concat(this.allextendsstack[this.allextendsstack.length-1]);b=b.concat(this.doextendchaining(b,a.allextends)),this.allextendsstack.push(b)},visitmediaout:function(){this.allextendsstack.length=this.allextendsstack.length-1},visitdirective:function(a){var b=a.allextends.concat(this.allextendsstack[this.allextendsstack.length-1]);b=b.concat(this.doextendchaining(b,a.allextends)),this.allextendsstack.push(b)},visitdirectiveout:function(){this.allextendsstack.length=this.allextendsstack.length-1}}}(c("./tree")),function(a){a.sourcemapoutput=function(a){this._css=[],this._rootnode=a.rootnode,this._writesourcemap=a.writesourcemap,this._contentsmap=a.contentsmap,this._contentsignoredcharsmap=a.contentsignoredcharsmap,this._sourcemapfilename=a.sourcemapfilename,this._outputfilename=a.outputfilename,this._sourcemapurl=a.sourcemapurl,a.sourcemapbasepath&&(this._sourcemapbasepath=a.sourcemapbasepath.replace(/\\/g,"/")),this._sourcemaprootpath=a.sourcemaprootpath,this._outputsourcefiles=a.outputsourcefiles,this._sourcemapgeneratorconstructor=a.sourcemapgenerator||c("source-map").sourcemapgenerator,this._sourcemaprootpath&&"/"!==this._sourcemaprootpath.charat(this._sourcemaprootpath.length-1)&&(this._sourcemaprootpath+="/"),this._linenumber=0,this._column=0},a.sourcemapoutput.prototype.normalizefilename=function(a){return a=a.replace(/\\/g,"/"),this._sourcemapbasepath&&0===a.indexof(this._sourcemapbasepath)&&(a=a.substring(this._sourcemapbasepath.length),("\\"===a.charat(0)||"/"===a.charat(0))&&(a=a.substring(1))),(this._sourcemaprootpath||"")+a},a.sourcemapoutput.prototype.add=function(a,b,c,d){if(a){var e,f,g,h,i;if(b){var j=this._contentsmap[b.filename];this._contentsignoredcharsmap[b.filename]&&(c-=this._contentsignoredcharsmap[b.filename],0>c&&(c=0),j=j.slice(this._contentsignoredcharsmap[b.filename])),j=j.substring(0,c),f=j.split("\n"),h=f[f.length-1]}if(e=a.split("\n"),g=e[e.length-1],b)if(d)for(i=0;i0){var d,e=json.stringify(this._sourcemapgenerator.tojson());this._sourcemapurl?d=this._sourcemapurl:this._sourcemapfilename&&(d=this.normalizefilename(this._sourcemapfilename)),this._writesourcemap?this._writesourcemap(e):d="data:application/json,"+encodeuricomponent(e),d&&this._css.push("/*# sourcemappingurl="+d+" */")}return this._css.join("")}}(c("./tree"));var x=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);v.env=v.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port&&location.port.length>0||x?"development":"production");var y={info:2,errors:1,none:0};if(v.loglevel="undefined"!=typeof v.loglevel?v.loglevel:y.info,v.async=v.async||!1,v.fileasync=v.fileasync||!1,v.poll=v.poll||(x?1e3:1500),v.functions)for(var z in v.functions)v.tree.functions[z]=v.functions[z];var a=/!dumplinenumbers:(comments|mediaquery|all)/.exec(location.hash);a&&(v.dumplinenumbers=a[1]);var b=/^text\/(x-)?less$/,c=null,d={};if(v.watch=function(){return v.watchmode||(v.env="development",u()),this.watchmode=!0,!0},v.unwatch=function(){return clearinterval(v.watchtimer),this.watchmode=!1,!1},/!watch/.test(location.hash)&&v.watch(),"development"!=v.env)try{c="undefined"==typeof a.localstorage?null:a.localstorage}catch(e){}var f=document.getelementsbytagname("link");v.sheets=[];for(var g=0;g