stylus/vendor/less-bundle/less.min.js
eight deeba1b900
Change: drop less, switch to less-bundle (#542)
* Change: drop less, switch to less-bundle

* fixup! Change: drop less, switch to less-bundle
2018-11-11 14:06:25 +08:00

2 lines
131 KiB
JavaScript

var less=function(){"use strict";var e=function(){function e(e,t){return null!=t&&e instanceof t}var t,i,n;try{t=Map}catch(e){t=function(){}}try{i=Set}catch(e){i=function(){}}try{n=Promise}catch(e){n=function(){}}function r(s,a,l,u,h){"object"==typeof a&&(l=a.depth,u=a.prototype,h=a.includeNonEnumerable,a=a.circular);var c=[],f=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function s(l,v){if(null===l)return null;if(0===v)return l;var d,m;if("object"!=typeof l)return l;if(e(l,t))d=new t;else if(e(l,i))d=new i;else if(e(l,n))d=new n(function(e,t){l.then(function(t){e(s(t,v-1))},function(e){t(s(e,v-1))})});else if(r.__isArray(l))d=[];else if(r.__isRegExp(l))d=new RegExp(l.source,o(l)),l.lastIndex&&(d.lastIndex=l.lastIndex);else if(r.__isDate(l))d=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return d=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(d),d;e(l,Error)?d=Object.create(l):void 0===u?(m=Object.getPrototypeOf(l),d=Object.create(m)):(d=Object.create(u),m=u)}if(a){var g=c.indexOf(l);if(-1!=g)return f[g];c.push(l),f.push(d)}for(var y in e(l,t)&&l.forEach(function(e,t){var i=s(t,v-1),n=s(e,v-1);d.set(i,n)}),e(l,i)&&l.forEach(function(e){var t=s(e,v-1);d.add(t)}),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(d[y]=s(l[y],v-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);for(y=0;y<w.length;y++){var x=w[y];(!(I=Object.getOwnPropertyDescriptor(l,x))||I.enumerable||h)&&(d[x]=s(l[x],v-1),I.enumerable||Object.defineProperty(d,x,{enumerable:!1}))}}if(h){var S=Object.getOwnPropertyNames(l);for(y=0;y<S.length;y++){var I,C=S[y];(I=Object.getOwnPropertyDescriptor(l,C))&&I.enumerable||(d[C]=s(l[C],v-1),Object.defineProperty(d,C,{enumerable:!1}))}}return d}(s,l)}function s(e){return Object.prototype.toString.call(e)}function o(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=s,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},r.__getRegExpFlags=o,r}();const t={exports:{}};"object"==typeof t&&t.exports&&(t.exports=e);var i=t.exports,n={getLocation:function(e,t){for(var i=e+1,n=null,r=-1;--i>=0&&"\n"!==t.charAt(i);)r++;return"number"==typeof e&&(n=(t.slice(0,e).match(/\n/g)||"").length),{line:n,column:r}},copyArray:function(e){var t,i=e.length,n=new Array(i);for(t=0;t<i;t++)n[t]=e[t];return n},clone:function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},copyOptions:function(e,t){if(t&&t._defaults)return t;var i=n.defaults(e,t);if(i.strictMath&&(i.math=3),i.relativeUrls&&(i.rewriteUrls=2),"string"==typeof i.math)switch(i.math.toLowerCase()){case"always":i.math=0;break;case"parens-division":i.math=1;break;case"strict":case"parens":i.math=2;break;case"strict-legacy":i.math=3}if("string"==typeof i.rewriteUrls)switch(i.rewriteUrls.toLowerCase()){case"off":i.rewriteUrls=0;break;case"local":i.rewriteUrls=1;break;case"all":i.rewriteUrls=2}return i},defaults:function(e,t){var n=t||{};if(!t._defaults){n={};var r=i(e);n._defaults=r;var s=t?i(t):{};Object.assign(n,r,s)}return n},merge:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},flattenArray:function(e,t){t=t||[];for(var i=0,r=e.length;i<r;i++){var s=e[i];Array.isArray(s)?n.flattenArray(s,t):void 0!==s&&t.push(s)}return t}},r={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var i=0;i<this._listeners.length;i++){var n=this._listeners[i][e];n&&n(t)}},_listeners:[]},s=function(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null;var e=this;Object.defineProperty(this,"currentFileInfo",{get:function(){return e.fileInfo()}}),Object.defineProperty(this,"index",{get:function(){return e.getIndex()}})};s.prototype.setParent=function(e,t){function i(e){e&&e instanceof s&&(e.parent=t)}Array.isArray(e)?e.forEach(i):i(e)},s.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},s.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},s.prototype.isRulesetLike=function(){return!1},s.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,i,n){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},s.prototype.genCSS=function(e,t){t.add(this.value)},s.prototype.accept=function(e){this.value=e.visit(this.value)},s.prototype.eval=function(){return this},s.prototype._operate=function(e,t,i,n){switch(t){case"+":return i+n;case"-":return i-n;case"*":return i*n;case"/":return i/n}},s.prototype.fround=function(e,t){var i=e&&e.numPrecision;return i?Number((t+2e-16).toFixed(i)):t},s.compare=function(e,t){if(e.compare&&"Quoted"!==t.type&&"Anonymous"!==t.type)return e.compare(t);if(t.compare)return-t.compare(e);if(e.type===t.type){if(e=e.value,t=t.value,!Array.isArray(e))return e===t?0:void 0;if(e.length===t.length){for(var i=0;i<e.length;i++)if(0!==s.compare(e[i],t[i]))return;return 0}}},s.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0},s.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},s.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},s.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},s.prototype.ensureVisibility=function(){this.nodeVisible=!0},s.prototype.ensureInvisibility=function(){this.nodeVisible=!1},s.prototype.isVisible=function(){return this.nodeVisible},s.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},s.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)};var o=function(e,t,i,n,r,s){this.value=e,this._index=t,this._fileInfo=i,this.mapLines=n,this.rulesetLike=void 0!==r&&r,this.allowRoot=!0,this.copyVisibilityInfo(s)};o.prototype=new s,o.prototype.type="Anonymous",o.prototype.eval=function(){return new o(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},o.prototype.compare=function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},o.prototype.isRulesetLike=function(){return this.rulesetLike},o.prototype.genCSS=function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)};var a=function(e){this.value=e};a.prototype=new s,a.prototype.type="Paren",a.prototype.genCSS=function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},a.prototype.eval=function(e){return new a(this.value.eval(e))};var l=function(e,t,i){var n="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":n=l.asComment(t);break;case"mediaquery":n=l.asMediaQuery(t);break;case"all":n=l.asComment(t)+(i||"")+l.asMediaQuery(t)}return n};l.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},l.asMediaQuery=function(e){var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:\/\\])/g,function(e){return"\\"==e&&(e="/"),"\\"+e})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"};var u=function(e,t,i,n){this.value=e,this.isLineComment=t,this._index=i,this._fileInfo=n,this.allowRoot=!0};(u.prototype=new s).type="Comment",u.prototype.genCSS=function(e,t){this.debugInfo&&t.add(l(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},u.prototype.isSilent=function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t};var h={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}},c=function(e,t,i){this.numerator=e?n.copyArray(e).sort():[],this.denominator=t?n.copyArray(t).sort():[],i?this.backupUnit=i:e&&e.length&&(this.backupUnit=e[0])};(c.prototype=new s).type="Unit",c.prototype.clone=function(){return new c(n.copyArray(this.numerator),n.copyArray(this.denominator),this.backupUnit)},c.prototype.genCSS=function(e,t){var i=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!i&&this.backupUnit?t.add(this.backupUnit):!i&&this.denominator.length&&t.add(this.denominator[0])},c.prototype.toString=function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},c.prototype.compare=function(e){return this.is(e.toString())?0:void 0},c.prototype.is=function(e){return this.toString().toUpperCase()===e.toUpperCase()},c.prototype.isLength=function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},c.prototype.isEmpty=function(){return 0===this.numerator.length&&0===this.denominator.length},c.prototype.isSingular=function(){return this.numerator.length<=1&&0===this.denominator.length},c.prototype.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)},c.prototype.usedUnits=function(){var e,t,i,n={};for(i in t=function(t){return e.hasOwnProperty(t)&&!n[i]&&(n[i]=t),t},h)h.hasOwnProperty(i)&&(e=h[i],this.map(t));return n},c.prototype.cancel=function(){var e,t,i={};for(t=0;t<this.numerator.length;t++)i[e=this.numerator[t]]=(i[e]||0)+1;for(t=0;t<this.denominator.length;t++)i[e=this.denominator[t]]=(i[e]||0)-1;for(e in this.numerator=[],this.denominator=[],i)if(i.hasOwnProperty(e)){var n=i[e];if(n>0)for(t=0;t<n;t++)this.numerator.push(e);else if(n<0)for(t=0;t<-n;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()};var f={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",rebeccapurple:"#663399",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"},p=function(e,t,i){var n=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map(function(e,t){t<3?n.rgb.push(parseInt(e,16)):n.alpha=parseInt(e,16)/255})):(this.rgb=[],e.split("").map(function(e,t){t<3?n.rgb.push(parseInt(e+e,16)):n.alpha=parseInt(e+e,16)/255})),this.alpha=this.alpha||("number"==typeof t?t:1),void 0!==i&&(this.value=i)};function v(e,t){return Math.min(Math.max(e,0),t)}function d(e){return"#"+e.map(function(e){return((e=v(Math.round(e),255))<16?"0":"")+e.toString(16)}).join("")}p.prototype=new s,p.prototype.type="Color",p.prototype.luma=function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255;return.2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},p.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},p.prototype.toCSS=function(e,t){var i,n,r,s=e&&e.compress&&!t,o=[];if(n=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))n<1&&(r="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;r=n<1?"hsla":"hsl"}else n<1&&(r="rgba");switch(r){case"rgba":o=this.rgb.map(function(e){return v(Math.round(e),255)}).concat(v(n,1));break;case"hsla":o.push(v(n,1));case"hsl":i=this.toHSL(),o=[this.fround(e,i.h),this.fround(e,100*i.s)+"%",this.fround(e,100*i.l)+"%"].concat(o)}if(r)return r+"("+o.join(","+(s?"":" "))+")";if(i=this.toRGB(),s){var a=i.split("");a[1]===a[2]&&a[3]===a[4]&&a[5]===a[6]&&(i="#"+a[1]+a[3]+a[5])}return i},p.prototype.operate=function(e,t,i){for(var n=new Array(3),r=this.alpha*(1-i.alpha)+i.alpha,s=0;s<3;s++)n[s]=this._operate(e,t,this.rgb[s],i.rgb[s]);return new p(n,r)},p.prototype.toRGB=function(){return d(this.rgb)},p.prototype.toHSL=function(){var e,t,i=this.rgb[0]/255,n=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(i,n,r),a=Math.min(i,n,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 i:e=(n-r)/u+(n<r?6:0);break;case n:e=(r-i)/u+2;break;case r:e=(i-n)/u+4}e/=6}return{h:360*e,s:t,l:l,a:s}},p.prototype.toHSV=function(){var e,t,i=this.rgb[0]/255,n=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(i,n,r),a=Math.min(i,n,r),l=o,u=o-a;if(t=0===o?0:u/o,o===a)e=0;else{switch(o){case i:e=(n-r)/u+(n<r?6:0);break;case n:e=(r-i)/u+2;break;case r:e=(i-n)/u+4}e/=6}return{h:360*e,s:t,v:l,a:s}},p.prototype.toARGB=function(){return d([255*this.alpha].concat(this.rgb))},p.prototype.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:void 0},p.fromKeyword=function(e){var t,i=e.toLowerCase();if(f.hasOwnProperty(i)?t=new p(f[i].slice(1)):"transparent"===i&&(t=new p([0,0,0],0)),t)return t.value=e,t};var m=function(e,t){if(this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof c?t:new c(t?[t]:void 0),this.setParent(this.unit,this)};m.prototype=new s,m.prototype.type="Dimension",m.prototype.accept=function(e){this.unit=e.visit(this.unit)},m.prototype.eval=function(e){return this},m.prototype.toColor=function(){return new p([this.value,this.value,this.value])},m.prototype.genCSS=function(e,t){if(e&&e.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=this.fround(e,this.value),n=String(i);if(0!==i&&i<1e-6&&i>-1e-6&&(n=i.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===i&&this.unit.isLength())return void t.add(n);i>0&&i<1&&(n=n.substr(1))}t.add(n),this.unit.genCSS(e,t)},m.prototype.operate=function(e,t,i){var n=this._operate(e,t,this.value,i.value),r=this.unit.clone();if("+"===t||"-"===t)if(0===r.numerator.length&&0===r.denominator.length)r=i.unit.clone(),this.unit.backupUnit&&(r.backupUnit=this.unit.backupUnit);else if(0===i.unit.numerator.length&&0===r.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),e.strictUnits&&i.unit.toString()!==r.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+r.toString()+"' and '"+i.unit.toString()+"'.");n=this._operate(e,t,this.value,i.value)}else"*"===t?(r.numerator=r.numerator.concat(i.unit.numerator).sort(),r.denominator=r.denominator.concat(i.unit.denominator).sort(),r.cancel()):"/"===t&&(r.numerator=r.numerator.concat(i.unit.denominator).sort(),r.denominator=r.denominator.concat(i.unit.numerator).sort(),r.cancel());return new m(n,r)},m.prototype.compare=function(e){var t,i;if(e instanceof m){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,i=e;else if(t=this.unify(),i=e.unify(),0!==t.unit.compare(i.unit))return;return s.numericCompare(t.value,i.value)}},m.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},m.prototype.convertTo=function(e){var t,i,n,r,s,o=this.value,a=this.unit.clone(),l={};if("string"==typeof e){for(t in h)h[t].hasOwnProperty(e)&&((l={})[t]=e);e=l}for(i in s=function(e,t){return n.hasOwnProperty(e)?(t?o/=n[e]/n[r]:o*=n[e]/n[r],r):e},e)e.hasOwnProperty(i)&&(r=e[i],n=h[i],a.map(s));return a.cancel(),new m(o,a)};var g=function(e,t){if(this.value=e,this.noSpacing=t,!e)throw new Error("Expression requires an array parameter")};(g.prototype=new s).type="Expression",g.prototype.accept=function(e){this.value=e.visitArray(this.value)},g.prototype.eval=function(e){var t,i=e.isMathOn(),n=this.parens&&(3!==e.math||!this.parensInOp),r=!1;return n&&e.inParenthesis(),this.value.length>1?t=new g(this.value.map(function(t){return t.eval?t.eval(e):t}),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||e.inCalc||(r=!0),t=this.value[0].eval(e)):t=this,n&&e.outOfParenthesis(),!this.parens||!this.parensInOp||i||r||t instanceof m||(t=new a(t)),t},g.prototype.genCSS=function(e,t){for(var i=0;i<this.value.length;i++)this.value[i].genCSS(e,t),!this.noSpacing&&i+1<this.value.length&&t.add(" ")},g.prototype.throwAwayComments=function(){this.value=this.value.filter(function(e){return!(e instanceof u)})};var y=function(e,t,i,n){this.name=e.toLowerCase(),this.index=i,this.context=t,this.currentFileInfo=n,this.func=t.frames[0].functionRegistry.get(this.name)};y.prototype.isValid=function(){return Boolean(this.func)},y.prototype.call=function(e){return Array.isArray(e)&&(e=e.filter(function(e){return"Comment"!==e.type}).map(function(e){if("Expression"===e.type){var t=e.value.filter(function(e){return"Comment"!==e.type});return 1===t.length?t[0]:new g(t)}return e})),this.func.apply(this,e)};var b=function(e,t,i,n){this.name=e,this.args=t,this.calc="calc"===e,this._index=i,this._fileInfo=n};(b.prototype=new s).type="Call",b.prototype.accept=function(e){this.args&&(this.args=e.visitArray(this.args))},b.prototype.eval=function(e){var t=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();var i=this.args.map(function(t){return t.eval(e)});(this.calc||e.inCalc)&&e.exitCalc(),e.mathOn=t;var n,r=new y(this.name,e,this.getIndex(),this.fileInfo());if(r.isValid()){try{n=r.call(i)}catch(e){throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=n)return n instanceof s||(n=new o(n&&!0!==n?n.toString():null)),n._index=this._index,n._fileInfo=this._fileInfo,n}return new b(this.name,i,this.getIndex(),this.fileInfo())},b.prototype.genCSS=function(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(var i=0;i<this.args.length;i++)this.args[i].genCSS(e,t),i+1<this.args.length&&t.add(", ");t.add(")")};var w=function(e,t,i){this.name=e,this._index=t,this._fileInfo=i};(w.prototype=new s).type="Variable",w.prototype.eval=function(e){var t,i=this.name;if(0===i.indexOf("@@")&&(i="@"+new w(i.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(t){var n=t.variable(i);if(n)return n.important&&(e.importantScope[e.importantScope.length-1].important=n.important),e.inCalc?new b("_SELF",[n.value]).eval(e):n.value.eval(e)}))return this.evaluating=!1,t;throw{type:"Name",message:"variable "+i+" is undefined",filename:this.fileInfo().filename,index:this.getIndex()}},w.prototype.find=function(e,t){for(var i,n=0;n<e.length;n++)if(i=t.call(e,e[n]))return i;return null};var x=function(e){if(!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]};(x.prototype=new s).type="Value",x.prototype.accept=function(e){this.value&&(this.value=e.visitArray(this.value))},x.prototype.eval=function(e){return 1===this.value.length?this.value[0].eval(e):new x(this.value.map(function(t){return t.eval(e)}))},x.prototype.genCSS=function(e,t){var i;for(i=0;i<this.value.length;i++)this.value[i].genCSS(e,t),i+1<this.value.length&&t.add(e&&e.compress?",":", ")};var S=function(e){this.value=e};(S.prototype=new s).type="Keyword",S.prototype.genCSS=function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)},S.True=new S("true"),S.False=new S("false");var I=function(e,t,i,n,r,a,l,u){this.name=e,this.value=t instanceof s?t:new x([t?new o(t):null]),this.important=i?" "+i.trim():"",this.merge=n,this._index=r,this._fileInfo=a,this.inline=l||!1,this.variable=void 0!==u?u:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)};(I.prototype=new s).type="Declaration",I.prototype.genCSS=function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(e){throw e.index=this._index,e.filename=this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},I.prototype.eval=function(e){var t,i,n=!1,r=this.name,s=this.variable;"string"!=typeof r&&(r=1===r.length&&r[0]instanceof S?r[0].value:function(e,t){var i,n="",r=t.length,s={add:function(e){n+=e}};for(i=0;i<r;i++)t[i].eval(e).genCSS(e,s);return n}(e,r),s=!1),"font"===r&&0===e.math&&(n=!0,t=e.math,e.math=1);try{if(e.importantScope.push({}),i=this.value.eval(e),!this.variable&&"DetachedRuleset"===i.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};var o=this.important,a=e.importantScope.pop();return!o&&a.important&&(o=a.important),new I(r,i,o,this.merge,this.getIndex(),this.fileInfo(),this.inline,s)}catch(e){throw"number"!=typeof e.index&&(e.index=this.getIndex(),e.filename=this.fileInfo().filename),e}finally{n&&(e.math=t)}},I.prototype.makeImportant=function(){return new I(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)};var C=function(e,t,i){this.name=e,this._index=t,this._fileInfo=i};(C.prototype=new s).type="Property",C.prototype.eval=function(e){var t,i=this.name,n=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(t){var r,s=t.property(i);if(s){for(var o=0;o<s.length;o++)r=s[o],s[o]=new I(r.name,r.value,r.important,r.merge,r.index,r.currentFileInfo,r.inline,r.variable);return n(s),(r=s[s.length-1]).important&&(e.importantScope[e.importantScope.length-1].important=r.important),r.value.eval(e)}}))return this.evaluating=!1,t;throw{type:"Name",message:"Property '"+i+"' is undefined",filename:this.currentFileInfo.filename,index:this.index}},C.prototype.find=function(e,t){for(var i,n=0;n<e.length;n++)if(i=t.call(e,e[n]))return i;return null};var k=function(e,t,i,n,r){this.escaped=null==i||i,this.value=t||"",this.quote=e.charAt(0),this._index=n,this._fileInfo=r,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g};(k.prototype=new s).type="Quoted",k.prototype.genCSS=function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},k.prototype.containsVariables=function(){return this.value.match(this.variableRegex)},k.prototype.eval=function(e){var t=this,i=this.value;function n(e,t,i){var n=e;do{n=(e=n).replace(t,i)}while(e!==n);return n}return i=n(i,this.variableRegex,function(i,n){var r=new w("@"+n,t.getIndex(),t.fileInfo()).eval(e,!0);return r instanceof k?r.value:r.toCSS()}),i=n(i,this.propRegex,function(i,n){var r=new C("$"+n,t.getIndex(),t.fileInfo()).eval(e,!0);return r instanceof k?r.value:r.toCSS()}),new k(this.quote+i+this.quote,i,this.escaped,this.getIndex(),this.fileInfo())},k.prototype.compare=function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:s.numericCompare(this.value,e.value)};var _=function(e,t,i,n){this.value=e,this._index=t,this._fileInfo=i,this.isEvald=n};(_.prototype=new s).type="Url",_.prototype.accept=function(e){this.value=e.visit(this.value)},_.prototype.genCSS=function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},_.prototype.eval=function(e){var t,i=this.value.eval(e);if(!this.isEvald&&("string"==typeof(t=this.fileInfo()&&this.fileInfo().rootpath)&&"string"==typeof i.value&&e.pathRequiresRewrite(i.value)?(i.quote||(t=t.replace(/[\(\)'"\s]/g,function(e){return"\\"+e})),i.value=e.rewritePath(i.value,t)):i.value=e.normalizePath(i.value),e.urlArgs&&!i.value.match(/^\s*data:/))){var n=(-1===i.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==i.value.indexOf("#")?i.value=i.value.replace("#",n+"#"):i.value+=n}return new _(i,this.getIndex(),this.fileInfo(),!0)};var A=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){Object.keys(e).forEach(function(t){this.add(t,e[t])}.bind(this))},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null);A.addMultiple({boolean:function(e){return e?S.True:S.False},if:function(e,t,i){return e?t:i||new o}});var M,E={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(null!=e)return e?S.True:S.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}};function P(e){return Math.min(1,Math.max(0,e))}function R(e,t){var i=M.hsla(t.h,t.s,t.l,t.a);if(i)return e.value&&/^(rgb|hsl)/.test(e.value)?i.value=e.value:i.value="rgb",i}function V(e){if(e instanceof m)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}function $(e,t,i){var n,r,s,o,a=t.alpha,l=i.alpha,u=[];s=l+a*(1-l);for(var h=0;h<3;h++)o=e(n=t.rgb[h]/255,r=i.rgb[h]/255),s&&(o=(l*r+a*(n-l*(n+r-o)))/s),u[h]=255*o;return new p(u,s)}A.add("default",E.eval.bind(E)),M={rgb:function(e,t,i){var n=M.rgba(e,t,i,1);if(n)return n.value="rgb",n},rgba:function(e,t,i,n){try{if(e instanceof p)return n=t?V(t):e.alpha,new p(e.rgb,n,"rgba");var r=[e,t,i].map(function(e){return(t=e)instanceof m&&t.unit.is("%")?parseFloat(255*t.value/100):V(t);var t});return n=V(n),new p(r,n,"rgba")}catch(e){}},hsl:function(e,t,i){var n=M.hsla(e,t,i,1);if(n)return n.value="hsl",n},hsla:function(e,t,i,n){try{if(e instanceof p)return n=t?V(t):e.alpha,new p(e.rgb,n,"hsla");var r,s;function o(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?r+(s-r)*e*6:2*e<1?s:3*e<2?r+(s-r)*(2/3-e)*6:r}e=V(e)%360/360,t=P(V(t)),i=P(V(i)),n=P(V(n)),r=2*i-(s=i<=.5?i*(t+1):i+t-i*t);var a=[255*o(e+1/3),255*o(e),255*o(e-1/3)];return n=V(n),new p(a,n,"hsla")}catch(e){}},hsv:function(e,t,i){return M.hsva(e,t,i,1)},hsva:function(e,t,i,n){var r,s;e=V(e)%360/360*360,t=V(t),i=V(i),n=V(n);var o=[i,i*(1-t),i*(1-(s=e/60-(r=Math.floor(e/60%6)))*t),i*(1-(1-s)*t)],a=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return M.rgba(255*o[a[r][0]],255*o[a[r][1]],255*o[a[r][2]],n)},hue:function(e){return new m(e.toHSL().h)},saturation:function(e){return new m(100*e.toHSL().s,"%")},lightness:function(e){return new m(100*e.toHSL().l,"%")},hsvhue:function(e){return new m(e.toHSV().h)},hsvsaturation:function(e){return new m(100*e.toHSV().s,"%")},hsvvalue:function(e){return new m(100*e.toHSV().v,"%")},red:function(e){return new m(e.rgb[0])},green:function(e){return new m(e.rgb[1])},blue:function(e){return new m(e.rgb[2])},alpha:function(e){return new m(e.toHSL().a)},luma:function(e){return new m(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 m(t*e.alpha*100,"%")},saturate:function(e,t,i){if(!e.rgb)return null;var n=e.toHSL();return void 0!==i&&"relative"===i.value?n.s+=n.s*t.value/100:n.s+=t.value/100,n.s=P(n.s),R(e,n)},desaturate:function(e,t,i){var n=e.toHSL();return void 0!==i&&"relative"===i.value?n.s-=n.s*t.value/100:n.s-=t.value/100,n.s=P(n.s),R(e,n)},lighten:function(e,t,i){var n=e.toHSL();return void 0!==i&&"relative"===i.value?n.l+=n.l*t.value/100:n.l+=t.value/100,n.l=P(n.l),R(e,n)},darken:function(e,t,i){var n=e.toHSL();return void 0!==i&&"relative"===i.value?n.l-=n.l*t.value/100:n.l-=t.value/100,n.l=P(n.l),R(e,n)},fadein:function(e,t,i){var n=e.toHSL();return void 0!==i&&"relative"===i.value?n.a+=n.a*t.value/100:n.a+=t.value/100,n.a=P(n.a),R(e,n)},fadeout:function(e,t,i){var n=e.toHSL();return void 0!==i&&"relative"===i.value?n.a-=n.a*t.value/100:n.a-=t.value/100,n.a=P(n.a),R(e,n)},fade:function(e,t){var i=e.toHSL();return i.a=t.value/100,i.a=P(i.a),R(e,i)},spin:function(e,t){var i=e.toHSL(),n=(i.h+t.value)%360;return i.h=n<0?360+n:n,R(e,i)},mix:function(e,t,i){e.toHSL&&t.toHSL||(console.log(t.type),console.dir(t)),i||(i=new m(50));var n=i.value/100,r=2*n-1,s=e.toHSL().a-t.toHSL().a,o=((r*s==-1?r:(r+s)/(1+r*s))+1)/2,a=1-o,l=[e.rgb[0]*o+t.rgb[0]*a,e.rgb[1]*o+t.rgb[1]*a,e.rgb[2]*o+t.rgb[2]*a],u=e.alpha*n+t.alpha*(1-n);return new p(l,u)},greyscale:function(e){return M.desaturate(e,new m(100))},contrast:function(e,t,i,n){if(!e.rgb)return null;if(void 0===i&&(i=M.rgba(255,255,255,1)),void 0===t&&(t=M.rgba(0,0,0,1)),t.luma()>i.luma()){var r=i;i=t,t=r}return n=void 0===n?.43:V(n),e.luma()<n?i:t},argb:function(e){return new o(e.toARGB())},color:function(e){if(e instanceof k&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1);return new p(t,void 0,"#"+t)}if(e instanceof p||(e=p.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return M.mix(M.rgb(255,255,255),e,t)},shade:function(e,t){return M.mix(M.rgb(0,0,0),e,t)}},A.addMultiple(M);var O={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?O.multiply(e,t):O.screen(e-1,t)},softlight:function(e,t){var i=1,n=e;return t>.5&&(n=1,i=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*n*(i-e)},hardlight:function(e,t){return O.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)}};for(var F in O)O.hasOwnProperty(F)&&($[F]=$.bind(null,O[F]));A.addMultiple($);var L=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};(L.prototype=new s).type="Combinator";var D={"":!0," ":!0,"|":!0};L.prototype.genCSS=function(e,t){var i=e.compress||D[this.value]?"":" ";t.add(i+this.value+i)};var B=function(e,t,i,n,r,s){this.combinator=e instanceof L?e:new L(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=i,this._index=n,this._fileInfo=r,this.copyVisibilityInfo(s),this.setParent(this.combinator,this)};B.prototype=new s,B.prototype.type="Element",B.prototype.accept=function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},B.prototype.eval=function(e){return new B(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},B.prototype.clone=function(){return new B(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},B.prototype.genCSS=function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},B.prototype.toCSS=function(e){e=e||{};var t=this.value,i=e.firstSelector;return t instanceof a&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=i,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t};var U=function(e,t,i){Error.call(this);var r=e.filename||i;if(this.message=e.message,this.stack=e.stack,t&&r){var s=t.contents[r],o=n.getLocation(e.index,s),a=o.line,l=o.column,u=e.call&&n.getLocation(e.call,s).line,h=s?s.split("\n"):"";if(this.type=e.type||"Syntax",this.filename=r,this.index=e.index,this.line="number"==typeof a?a+1:null,this.column=l,!this.line&&this.stack){var c=this.stack.match(/(<anonymous>|Function):(\d+):(\d+)/);c&&(c[2]&&(this.line=parseInt(c[2])-2),c[3]&&(this.column=parseInt(c[3])))}this.callLine=u+1,this.callExtract=h[u],this.extract=[h[this.line-2],h[this.line-1],h[this.line]]}};if(void 0===Object.create){var j=function(){};j.prototype=Error.prototype,U.prototype=new j}else U.prototype=Object.create(Error.prototype);U.prototype.constructor=U,U.prototype.toString=function(e){e=e||{};var t="",i=this.extract||[],n=[],r=function(e){return e};if(e.stylize){var s=typeof e.stylize;if("function"!==s)throw Error("options.stylize should be a function, got a "+s+"!");r=e.stylize}if(null!==this.line){if("string"==typeof i[0]&&n.push(r(this.line-1+" "+i[0],"grey")),"string"==typeof i[1]){var o=this.line+" ";i[1]&&(o+=i[1].slice(0,this.column)+r(r(r(i[1].substr(this.column,1),"bold")+i[1].slice(this.column+1),"red"),"inverse")),n.push(o)}"string"==typeof i[2]&&n.push(r(this.line+1+" "+i[2],"grey")),n=n.join("\n")+r("","reset")+"\n"}return t+=r(this.type+"Error: "+this.message,"red"),this.filename&&(t+=r(" in ","red")+this.filename),this.line&&(t+=r(" on line "+this.line+", column "+(this.column+1)+":","grey")),t+="\n"+n,this.callLine&&(t+=r("from ","red")+(this.filename||"")+"/n",t+=r(this.callLine,"grey")+" "+this.callExtract+"/n"),t};var N=function(e,t,i,n,r,s){this.extendList=t,this.condition=i,this.evaldCondition=!i,this._index=n,this._fileInfo=r,this.elements=this.getElements(e),this.mixinElements_=void 0,this.copyVisibilityInfo(s),this.setParent(this.elements,this)};N.prototype=new s,N.prototype.type="Selector",N.prototype.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))},N.prototype.createDerived=function(e,t,i){e=this.getElements(e);var n=new N(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return n.evaldCondition=null!=i?i:this.evaldCondition,n.mediaEmpty=this.mediaEmpty,n},N.prototype.getElements=function(e){return e?("string"==typeof e&&this.parse.parseNode(e,["selector"],this._index,this._fileInfo,function(t,i){if(t)throw new U({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename);e=i[0].elements}),e):[new B("","&",!1,this._index,this._fileInfo)]},N.prototype.createEmptySelectors=function(){var e=new B("","&",!1,this._index,this._fileInfo),t=[new N([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t},N.prototype.match=function(e){var t,i,n=this.elements,r=n.length;if(0===(t=(e=e.mixinElements()).length)||r<t)return 0;for(i=0;i<t;i++)if(n[i].value!==e[i])return 0;return t},N.prototype.mixinElements=function(){if(this.mixinElements_)return this.mixinElements_;var e=this.elements.map(function(e){return e.combinator.value+(e.value.value||e.value)}).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e},N.prototype.isJustParentSelector=function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},N.prototype.eval=function(e){var t=this.condition&&this.condition.eval(e),i=this.elements,n=this.extendList;return i=i&&i.map(function(t){return t.eval(e)}),n=n&&n.map(function(t){return t.eval(e)}),this.createDerived(i,n,t)},N.prototype.genCSS=function(e,t){var i;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),i=0;i<this.elements.length;i++)this.elements[i].genCSS(e,t)},N.prototype.getIsOutput=function(){return this.evaldCondition};var q={},z=function(e,t,i){if(e)for(var n=0;n<i.length;n++)e.hasOwnProperty(i[n])&&(t[i[n]]=e[i[n]])},T=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];q.Parse=function(e){z(e,this,T),"string"==typeof this.paths&&(this.paths=[this.paths])};var H=["paths","compress","ieCompat","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function G(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function W(e){return"."===e.charAt(0)}q.Eval=function(e,t){z(e,this,H),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},q.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},q.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack||(this.inCalc=!1)},q.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},q.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},q.Eval.prototype.inCalc=!1,q.Eval.prototype.mathOn=!0,q.Eval.prototype.isMathOn=function(e){return!!this.mathOn&&!!("/"!==e||0===this.math||this.parensStack&&this.parensStack.length)&&(!(this.math>1)||this.parensStack&&this.parensStack.length)},q.Eval.prototype.pathRequiresRewrite=function(e){return(1===this.rewriteUrls?W:G)(e)},q.Eval.prototype.rewritePath=function(e,t){var i;return t=t||"",i=this.normalizePath(t+e),W(e)&&G(t)&&!1===W(i)&&(i="./"+i),i},q.Eval.prototype.normalizePath=function(e){var t,i=e.split("/").reverse();for(e=[];0!==i.length;)switch(t=i.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 J=function(e,t,i,n){this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=i,this.copyVisibilityInfo(n),this.allowRoot=!0,this.setParent(this.selectors,this),this.setParent(this.rules,this)};(J.prototype=new s).type="Ruleset",J.prototype.isRuleset=!0,J.prototype.isRulesetLike=function(){return!0},J.prototype.accept=function(e){this.paths?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))},J.prototype.eval=function(e){var t,i,r,o,a,l=!1;if(this.selectors&&(i=this.selectors.length)){for(t=new Array(i),E.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),o=0;o<i;o++){r=this.selectors[o].eval(e);for(var u=0;u<r.elements.length;u++)if(r.elements[u].isVariable){a=!0;break}t[o]=r,r.evaldCondition&&(l=!0)}if(a){var h=new Array(i);for(o=0;o<i;o++)r=t[o],h[o]=r.toCSS(e);this.parse.parseNode(h.join(","),["selectors"],t[0].getIndex(),t[0].fileInfo(),function(e,i){i&&(t=n.flattenArray(i))})}E.reset()}else l=!0;var c,f,p=this.rules?n.copyArray(this.rules):null,v=new J(t,p,this.strictImports,this.visibilityInfo());v.originalRuleset=this,v.root=this.root,v.firstRoot=this.firstRoot,v.allowImports=this.allowImports,this.debugInfo&&(v.debugInfo=this.debugInfo),l||(p.length=0),v.functionRegistry=function(e){for(var t,i=0,n=e.length;i!==n;++i)if(t=e[i].functionRegistry)return t;return A}(e.frames).inherit();var d=e.frames;d.unshift(v);var m=e.selectors;m||(e.selectors=m=[]),m.unshift(this.selectors),(v.root||v.allowImports||!v.strictImports)&&v.evalImports(e);var g=v.rules;for(o=0;c=g[o];o++)c.evalFirst&&(g[o]=c.eval(e));var y=e.mediaBlocks&&e.mediaBlocks.length||0;for(o=0;c=g[o];o++)"MixinCall"===c.type?(p=c.eval(e).filter(function(e){return!(e instanceof I&&e.variable&&v.variable(e.name))}),g.splice.apply(g,[o,1].concat(p)),o+=p.length-1,v.resetCache()):"VariableCall"===c.type&&(p=c.eval(e).rules.filter(function(e){return!(e instanceof I&&e.variable)}),g.splice.apply(g,[o,1].concat(p)),o+=p.length-1,v.resetCache());for(o=0;c=g[o];o++)c.evalFirst||(g[o]=c=c.eval?c.eval(e):c);for(o=0;c=g[o];o++)if(c instanceof J&&c.selectors&&1===c.selectors.length&&c.selectors[0]&&c.selectors[0].isJustParentSelector())for(g.splice(o--,1),u=0;f=c.rules[u];u++)f instanceof s&&(f.copyVisibilityInfo(c.visibilityInfo()),f instanceof I&&f.variable||g.splice(++o,0,f));if(d.shift(),m.shift(),e.mediaBlocks)for(o=y;o<e.mediaBlocks.length;o++)e.mediaBlocks[o].bubbleSelectors(t);return v},J.prototype.evalImports=function(e){var t,i,n=this.rules;if(n)for(t=0;t<n.length;t++)"Import"===n[t].type&&((i=n[t].eval(e))&&(i.length||0===i.length)?(n.splice.apply(n,[t,1].concat(i)),t+=i.length-1):n.splice(t,1,i),this.resetCache())},J.prototype.makeImportant=function(){return new J(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports,this.visibilityInfo())},J.prototype.matchArgs=function(e){return!e||0===e.length},J.prototype.matchCondition=function(e,t){var i=this.selectors[this.selectors.length-1];return!(!i.evaldCondition||i.condition&&!i.condition.eval(new q.Eval(t,t.frames)))},J.prototype.resetCache=function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},J.prototype.variables=function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof I&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var i=t.root.variables();for(var n in i)i.hasOwnProperty(n)&&(e[n]=t.root.variable(n))}return e},{}):{}),this._variables},J.prototype.properties=function(){return this._properties||(this._properties=this.rules?this.rules.reduce(function(e,t){if(t instanceof I&&!0!==t.variable){var i=1===t.name.length&&t.name[0]instanceof S?t.name[0].value:t.name;e["$"+i]?e["$"+i].push(t):e["$"+i]=[t]}return e},{}):{}),this._properties},J.prototype.variable=function(e){var t=this.variables()[e];if(t)return this.parseValue(t)},J.prototype.property=function(e){var t=this.properties()[e];if(t)return this.parseValue(t)},J.prototype.lastDeclaration=function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1];if(t instanceof I)return this.parseValue(t)}},J.prototype.parseValue=function(e){var t=this;function i(e){return e.value instanceof o&&!e.parsed?("string"==typeof e.value.value?this.parse.parseNode(e.value.value,["value","important"],e.value.getIndex(),e.fileInfo(),function(t,i){t&&(e.parsed=!0),i&&(e.value=i[0],e.important=i[1]||"",e.parsed=!0)}):e.parsed=!0,e):e}if(Array.isArray(e)){var n=[];return e.forEach(function(e){n.push(i.call(t,e))}),n}return i.call(t,e)},J.prototype.rulesets=function(){if(!this.rules)return[];var e,t,i=[],n=this.rules;for(e=0;t=n[e];e++)t.isRuleset&&i.push(t);return i},J.prototype.prependRule=function(e){var t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)},J.prototype.find=function(e,t,i){t=t||this;var n,r,s=[],o=e.toCSS();return o in this._lookups?this._lookups[o]:(this.rulesets().forEach(function(o){if(o!==t)for(var a=0;a<o.selectors.length;a++)if(n=e.match(o.selectors[a])){if(e.elements.length>n){if(!i||i(o)){r=o.find(new N(e.elements.slice(n)),t,i);for(var l=0;l<r.length;++l)r[l].path.push(o);Array.prototype.push.apply(s,r)}}else s.push({rule:o,path:[]});break}}),this._lookups[o]=s,s)},J.prototype.genCSS=function(e,t){var i,n,r,s,o,a=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var h,c=e.compress?"":Array(e.tabLevel+1).join(" "),f=e.compress?"":Array(e.tabLevel).join(" "),p=0,v=0;for(i=0;s=this.rules[i];i++)s instanceof u?(v===i&&v++,a.push(s)):s.isCharset&&s.isCharset()?(a.splice(p,0,s),p++,v++):"Import"===s.type?(a.splice(v,0,s),v++):a.push(s);if(a=[].concat(a),!this.root){(r=l(e,this,f))&&(t.add(r),t.add(f));var d,m=this.paths,g=m.length;for(h=e.compress?",":",\n"+f,i=0;i<g;i++)if(d=(o=m[i]).length)for(i>0&&t.add(h),e.firstSelector=!0,o[0].genCSS(e,t),e.firstSelector=!1,n=1;n<d;n++)o[n].genCSS(e,t);t.add((e.compress?"{":" {\n")+c)}for(i=0;s=a[i];i++){i+1===a.length&&(e.lastRule=!0);var y=e.lastRule;s.isRulesetLike(s)&&(e.lastRule=!1),s.genCSS?s.genCSS(e,t):s.value&&t.add(s.value.toString()),e.lastRule=y,!e.lastRule&&s.isVisible()?t.add(e.compress?"":"\n"+c):e.lastRule=!1}this.root||(t.add(e.compress?"}":"\n"+f+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},J.prototype.joinSelectors=function(e,t,i){for(var n=0;n<i.length;n++)this.joinSelector(e,t,i[n])},J.prototype.joinSelector=function(e,t,i){function r(e,t){var i,n;if(0===e.length)i=new a(e[0]);else{var r=new Array(e.length);for(n=0;n<e.length;n++)r[n]=new B(null,e[n],t.isVariable,t._index,t._fileInfo);i=new a(new N(r))}return i}function s(e,t){var i;return i=new B(null,e,t.isVariable,t._index,t._fileInfo),new N([i])}function o(e,t,i,r){var s,o,a;if(s=[],e.length>0?(o=(s=n.copyArray(e)).pop(),a=r.createDerived(n.copyArray(o.elements))):a=r.createDerived([]),t.length>0){var l=i.combinator,u=t[0].elements[0];l.emptyOrWhitespace&&!u.combinator.emptyOrWhitespace&&(l=u.combinator),a.elements.push(new B(l,u.value,i.isVariable,i._index,i._fileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&s.push(a),t.length>1){var h=t.slice(1);h=h.map(function(e){return e.createDerived(e.elements,[])}),s=s.concat(h)}return s}function l(e,t,i,n,r){var s;for(s=0;s<e.length;s++){var a=o(e[s],t,i,n);r.push(a)}return r}function u(e,t){var i,n;if(0!==e.length)if(0!==t.length)for(i=0;n=t[i];i++)n.length>0?n[n.length-1]=n[n.length-1].createDerived(n[n.length-1].elements.concat(e)):n.push(new N(e));else t.push([new N(e)])}function h(e,t){var i=t.createDerived(t.elements,t.extendList,t.evaldCondition);return i.copyVisibilityInfo(e),i}var c,f;if(!function e(t,i,n){var h,c,f,p,v,d,m,g,y,b,w,x,S=!1;for(p=[],v=[[]],h=0;g=n.elements[h];h++)if("&"!==g.value){var I=(x=void 0,(w=g).value instanceof a&&(x=w.value.value)instanceof N?x:null);if(null!=I){u(p,v);var C,k=[],_=[];for(C=e(k,i,I),S=S||C,f=0;f<k.length;f++)l(v,[s(r(k[f],g),g)],g,n,_);v=_,p=[]}else p.push(g)}else{for(S=!0,d=[],u(p,v),c=0;c<v.length;c++)if(m=v[c],0===i.length)m.length>0&&m[0].elements.push(new B(g.combinator,"",g.isVariable,g._index,g._fileInfo)),d.push(m);else for(f=0;f<i.length;f++){var A=o(m,i[f],g,n);d.push(A)}v=d,p=[]}for(u(p,v),h=0;h<v.length;h++)(y=v[h].length)>0&&(t.push(v[h]),b=v[h][y-1],v[h][y-1]=b.createDerived(b.elements,n.extendList));return S}(f=[],t,i))if(t.length>0)for(f=[],c=0;c<t.length;c++){var p=t[c].map(h.bind(this,i.visibilityInfo()));p.push(i),f.push(p)}else f=[[i]];for(c=0;c<f.length;c++)e.push(f[c])};var Q=function(e){return Array.isArray(e.value)?e.value:Array(e)};A.addMultiple({_SELF:function(e){return e},extract:function(e,t){return t=t.value-1,Q(e)[t]},length:function(e){return new m(Q(e).length)},each:function(e,t){var i,n,r=0,s=[];n=e.value?Array.isArray(e.value)?e.value:[e.value]:e.ruleset?e.ruleset.rules:Array.isArray(e)?e:[e];var o="@value",a="@key",l="@index";return t.params?(o=t.params[0]&&t.params[0].name,a=t.params[1]&&t.params[1].name,l=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset,n.forEach(e=>{var n,u;r+=1,e instanceof I?(n="string"==typeof e.name?e.name:e.name[0].value,u=e.value):(n=new m(r),u=e),i=t.rules.slice(0),o&&i.push(new I(o,u,!1,!1,this.index,this.currentFileInfo)),l&&i.push(new I(l,new m(r),!1,!1,this.index,this.currentFileInfo)),a&&i.push(new I(a,n,!1,!1,this.index,this.currentFileInfo)),s.push(new J([new N([new B("","&")])],i,t.strictImports,t.visibilityInfo()))}),new J([new N([new B("","&")])],s,t.strictImports,t.visibilityInfo()).eval(this.context)}});var K=function(){};K._math=function(e,t,i){if(!(i instanceof m))throw{type:"Argument",message:"argument must be a number"};return null==t?t=i.unit:i=i.unify(),new m(e(parseFloat(i.value)),t)};var Z={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var X in Z)Z.hasOwnProperty(X)&&(Z[X]=K._math.bind(null,Math[X],Z[X]));Z.round=function(e,t){var i=void 0===t?0:t.value;return K._math(function(e){return e.toFixed(i)},null,e)},A.addMultiple(Z);var Y=function(e,t){switch((t=Array.prototype.slice.call(t)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var i,n,r,s,a,l,u,h,c=[],f={};for(i=0;i<t.length;i++)if((r=t[i])instanceof m)if(u=""!==(l=""===(s=""===r.unit.toString()&&void 0!==h?new m(r.value,h).unify():r.unify()).unit.toString()&&void 0!==u?u:s.unit.toString())&&void 0===u||""!==l&&""===c[0].unify().unit.toString()?l:u,h=""!==l&&void 0===h?r.unit.toString():h,void 0!==(n=void 0!==f[""]&&""!==l&&l===u?f[""]:f[l]))a=""===c[n].unit.toString()&&void 0!==h?new m(c[n].value,h).unify():c[n].unify(),(e&&s.value<a.value||!e&&s.value>a.value)&&(c[n]=r);else{if(void 0!==u&&l!==u)throw{type:"Argument",message:"incompatible types"};f[l]=c.length,c.push(r)}else Array.isArray(t[i].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[i].value));return 1==c.length?c[0]:(t=c.map(function(e){return e.toCSS(this.context)}).join(this.context.compress?",":", "),new o((e?"min":"max")+"("+t+")"))};A.addMultiple({min:function(){return Y(!0,arguments)},max:function(){return Y(!1,arguments)},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new m(Math.PI)},mod:function(e,t){return new m(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new m(e),t=new m(t);else if(!(e instanceof m&&t instanceof m))throw{type:"Argument",message:"arguments must be numbers"};return new m(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return K._math(function(e){return 100*e},"%",e)}});var ee=function(){};(ee.prototype=new s).evaluateJavaScript=function(e,t){var i,n=this,r={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(/@\{([\w-]+)\}/g,function(e,i){return n.jsify(new w("@"+i,n.getIndex(),n.fileInfo()).eval(t))});try{e=new Function("return ("+e+")")}catch(t){throw{message:"JavaScript evaluation error: "+t.message+" from `"+e+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var s=t.frames[0].variables();for(var o in s)s.hasOwnProperty(o)&&(r[o.slice(1)]={value:s[o].value,toJS:function(){return this.value.eval(t).toCSS()}});try{i=e.call(r)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return i},ee.prototype.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS()}).join(", ")+"]":e.toCSS()};var te=function(e,t,i,n){this.escaped=t,this.expression=e,this._index=i,this._fileInfo=n};(te.prototype=new ee).type="JavaScript",te.prototype.eval=function(e){var t=this.evaluateJavaScript(this.expression,e),i=typeof t;return"number"!==i||isNaN(t)?"string"===i?new k('"'+t+'"',t,this.escaped,this._index):Array.isArray(t)?new o(t.join(", ")):new o(t):new m(t)},A.addMultiple({e:function(e){return new o(e instanceof te?e.evaluated:e.value)},escape:function(e){return new o(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,i,n){var r=e.value;return i="Quoted"===i.type?i.value:i.toCSS(),r=r.replace(new RegExp(t.value,n?n.value:""),i),new k(e.quote||"",r,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),i=e.value,n=0;n<t.length;n++)i=i.replace(/%[sda]/i,function(e){var i="Quoted"===t[n].type&&e.match(/s/i)?t[n].value:t[n].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(i):i});return i=i.replace(/%%/g,"%"),new k(e.quote||"",i,e.escaped)}});var ie=function(e,t){this.ruleset=e,this.frames=t,this.setParent(this.ruleset,this)};(ie.prototype=new s).type="DetachedRuleset",ie.prototype.evalFirst=!0,ie.prototype.accept=function(e){this.ruleset=e.visit(this.ruleset)},ie.prototype.eval=function(e){var t=this.frames||n.copyArray(e.frames);return new ie(this.ruleset,t)},ie.prototype.callEval=function(e){return this.ruleset.eval(this.frames?new q.Eval(e,this.frames.concat(e.frames)):e)};var ne=function(e,t,i){this.op=e.trim(),this.operands=t,this.isSpaced=i};(ne.prototype=new s).type="Operation",ne.prototype.accept=function(e){this.operands=e.visit(this.operands)},ne.prototype.eval=function(e){var t,i=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,i instanceof m&&n instanceof p&&(i=i.toColor()),n instanceof m&&i instanceof p&&(n=n.toColor()),!i.operate){if(i instanceof ne&&"/"===i.op&&1===e.math)return new ne(this.op,[i,n],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return i.operate(e,t,n)}return new ne(this.op,[i,n],this.isSpaced)},ne.prototype.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)};var re=function(e,t){return e instanceof t?S.True:S.False},se=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof m&&e.unit.is(t)?S.True:S.False};A.addMultiple({isruleset:function(e){return re(e,ie)},iscolor:function(e){return re(e,p)},isnumber:function(e){return re(e,m)},isstring:function(e){return re(e,k)},iskeyword:function(e){return re(e,S)},isurl:function(e){return re(e,_)},ispixel:function(e){return se(e,"px")},ispercentage:function(e){return se(e,"%")},isem:function(e){return se(e,"em")},isunit:se,unit:function(e,t){if(!(e instanceof m))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof ne?". Have you forgotten parenthesis?":"")};return t=t?t instanceof S?t.value:t.toCSS():"",new m(e.value,t)},"get-unit":function(e){return new o(e.unit)}});var oe=function(e,t,i,n,r,a,l,u){var h;if(this.name=e,this.value=t instanceof s?t:t?new o(t):t,i){for(Array.isArray(i)?this.rules=i:(this.rules=[i],this.rules[0].selectors=new N([],null,null,n,r).createEmptySelectors()),h=0;h<this.rules.length;h++)this.rules[h].allowImports=!0;this.setParent(this.rules,this)}this._index=n,this._fileInfo=r,this.debugInfo=a,this.isRooted=l||!1,this.copyVisibilityInfo(u),this.allowRoot=!0};(oe.prototype=new s).type="AtRule",oe.prototype.accept=function(e){var t=this.value,i=this.rules;i&&(this.rules=e.visitArray(i)),t&&(this.value=e.visit(t))},oe.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},oe.prototype.isCharset=function(){return"@charset"===this.name},oe.prototype.genCSS=function(e,t){var i=this.value,n=this.rules;t.add(this.name,this.fileInfo(),this.getIndex()),i&&(t.add(" "),i.genCSS(e,t)),n?this.outputRuleset(e,t,n):t.add(";")},oe.prototype.eval=function(e){var t,i,n=this.value,r=this.rules;return t=e.mediaPath,i=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],n&&(n=n.eval(e)),r&&((r=[r[0].eval(e)])[0].root=!0),e.mediaPath=t,e.mediaBlocks=i,new oe(this.name,n,r,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},oe.prototype.variable=function(e){if(this.rules)return J.prototype.variable.call(this.rules[0],e)},oe.prototype.find=function(){if(this.rules)return J.prototype.find.apply(this.rules[0],arguments)},oe.prototype.rulesets=function(){if(this.rules)return J.prototype.rulesets.apply(this.rules[0])},oe.prototype.outputRuleset=function(e,t,i){var n,r=i.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),n=0;n<r;n++)i[n].genCSS(e,t);return t.add("}"),void e.tabLevel--}var s="\n"+Array(e.tabLevel).join(" "),o=s+" ";if(r){for(t.add(" {"+o),i[0].genCSS(e,t),n=1;n<r;n++)t.add(o),i[n].genCSS(e,t);t.add(s+"}")}else t.add(" {"+s+"}");e.tabLevel--};var ae=function(e,t,i){this.key=e,this.op=t,this.value=i};(ae.prototype=new s).type="Attribute",ae.prototype.eval=function(e){return new ae(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},ae.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},ae.prototype.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+"]"};var le=function(e,t,i,n,r){this._index=i,this._fileInfo=n;var s=new N([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new x(t),this.rules=[new J(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(r),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)};(le.prototype=new oe).type="Media",le.prototype.isRulesetLike=function(){return!0},le.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},le.prototype.genCSS=function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},le.prototype.eval=function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new le(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)},le.prototype.evalTop=function(e){var t=this;if(e.mediaBlocks.length>1){var i=new N([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();(t=new J(i,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},le.prototype.evalNested=function(e){var t,i,n=e.mediaPath.concat([this]);for(t=0;t<n.length;t++)i=n[t].features instanceof x?n[t].features.value:n[t].features,n[t]=Array.isArray(i)?i:[i];return this.features=new x(this.permute(n).map(function(e){for(e=e.map(function(e){return e.toCSS?e:new o(e)}),t=e.length-1;t>0;t--)e.splice(t,0,new o("and"));return new g(e)})),this.setParent(this.features,this),new J([],[])},le.prototype.permute=function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],i=this.permute(e.slice(1)),n=0;n<i.length;n++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(i[n]));return t},le.prototype.bubbleSelectors=function(e){e&&(this.rules=[new J(n.copyArray(e),[this.rules[0]])],this.setParent(this.rules,this))};var ue=function(e,t,i,n,r,s){if(this.options=i,this._index=n,this._fileInfo=r,this.path=e,this.features=t,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var o=this.getPath();o&&/[#\.\&\?]css([\?;].*)?$/.test(o)&&(this.css=!0)}this.copyVisibilityInfo(s),this.setParent(this.features,this),this.setParent(this.path,this)};(ue.prototype=new s).type="Import",ue.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},ue.prototype.genCSS=function(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},ue.prototype.getPath=function(){return this.path instanceof _?this.path.value.value:this.path.value},ue.prototype.isVariableImport=function(){var e=this.path;return e instanceof _&&(e=e.value),!(e instanceof k)||e.containsVariables()},ue.prototype.evalForImport=function(e){var t=this.path;return t instanceof _&&(t=t.value),new ue(t.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},ue.prototype.evalPath=function(e){var t=this.path.eval(e),i=this._fileInfo;if(!(t instanceof _)){var n=t.value;i&&n&&e.pathRequiresRewrite(n)?t.value=e.rewritePath(n,i.rootpath):t.value=e.normalizePath(t.value)}return t},ue.prototype.eval=function(e){var t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(t.length||0===t.length?t.forEach(function(e){e.addVisibilityBlock()}):t.addVisibilityBlock()),t},ue.prototype.doEval=function(e){var t,i,r=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new U(e,this.root.imports,this.root.filename)}return(i=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&i.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var s=new o(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new le([s],this.features.value):[s]}if(this.css){var a=new ue(this.evalPath(e),r,this.options,this._index);if(!a.css&&this.error)throw this.error;return a}return(t=new J(null,n.copyArray(this.root.rules))).evalImports(e),this.features?new le(t.rules,this.features.value):t.rules};var he=function(e,t,i,n,r,s,o){this.name=e||"anonymous mixin",this.selectors=[new N([new B(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=n,this.variadic=r,this.arity=t.length,this.rules=i,this._lookups={};var a=[];this.required=t.reduce(function(e,t){return!t.name||t.name&&!t.value?e+1:(a.push(t.name),e)},0),this.optionalParameters=a,this.frames=s,this.copyVisibilityInfo(o),this.allowRoot=!0};(he.prototype=new J).type="MixinDefinition",he.prototype.evalFirst=!0,he.prototype.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))},he.prototype.evalParams=function(e,t,i,r){var s,o,a,l,u,h,c,f,p=new J(null,null),v=n.copyArray(this.params),d=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(p.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new q.Eval(t,[p].concat(t.frames)),i)for(d=(i=n.copyArray(i)).length,a=0;a<d;a++)if(h=(o=i[a])&&o.name){for(c=!1,l=0;l<v.length;l++)if(!r[l]&&h===v[l].name){r[l]=o.value.eval(e),p.prependRule(new I(h,o.value.eval(e))),c=!0;break}if(c){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<v.length;a++)if(!r[a]){if(o=i&&i[f],h=v[a].name)if(v[a].variadic){for(s=[],l=f;l<d;l++)s.push(i[l].value.eval(e));p.prependRule(new I(h,new g(s).eval(e)))}else{if(u=o&&o.value)u=Array.isArray(u)?new ie(new J("",u)):u.eval(e);else{if(!v[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+d+" for "+this.arity+")"};u=v[a].value.eval(t),p.resetCache()}p.prependRule(new I(h,u)),r[a]=u}if(v[a].variadic&&i)for(l=f;l<d;l++)r[l]=i[l].value.eval(e);f++}return p},he.prototype.makeImportant=function(){var e=this.rules?this.rules.map(function(e){return e.makeImportant?e.makeImportant(!0):e}):this.rules;return new he(this.name,this.params,e,this.condition,this.variadic,this.frames)},he.prototype.eval=function(e){return new he(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||n.copyArray(e.frames))},he.prototype.evalCall=function(e,t,i){var r,s,o=[],a=this.frames?this.frames.concat(e.frames):e.frames,l=this.evalParams(e,new q.Eval(e,a),t,o);return l.prependRule(new I("@arguments",new g(o).eval(e))),r=n.copyArray(this.rules),(s=new J(null,r)).originalRuleset=this,s=s.eval(new q.Eval(e,[this,l].concat(a))),i&&(s=s.makeImportant()),s},he.prototype.matchCondition=function(e,t){return!(this.condition&&!this.condition.eval(new q.Eval(t,[this.evalParams(t,new q.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},he.prototype.matchArgs=function(e,t){var i,n=e&&e.length||0,r=this.optionalParameters,s=e?e.reduce(function(e,t){return r.indexOf(t.name)<0?e+1:e},0):0;if(this.variadic){if(s<this.required-1)return!1}else{if(s<this.required)return!1;if(n>this.params.length)return!1}i=Math.min(s,this.arity);for(var o=0;o<i;o++)if(!this.params[o].name&&!this.params[o].variadic&&e[o].value.eval(t).toCSS()!=this.params[o].value.eval(t).toCSS())return!1;return!0};var ce=function(e,t,i,n,r){this.selector=new N(e),this.arguments=t||[],this._index=i,this._fileInfo=n,this.important=r,this.allowRoot=!0,this.setParent(this.selector,this)};(ce.prototype=new s).type="MixinCall",ce.prototype.accept=function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},ce.prototype.eval=function(e){var t,i,n,r,s,o,a,l,u,h,c,f,p,v,d,m=[],g=[],y=!1,b=[],w=[],x=-1,S=0,I=1,C=2;function k(t,i){var n,r,s;for(n=0;n<2;n++){for(w[n]=!0,E.value(n),r=0;r<i.length&&w[n];r++)(s=i[r]).matchCondition&&(w[n]=w[n]&&s.matchCondition(null,e));t.matchCondition&&(w[n]=w[n]&&t.matchCondition(m,e))}return w[0]||w[1]?w[0]!=w[1]?w[1]?I:C:S:x}for(this.selector=this.selector.eval(e),o=0;o<this.arguments.length;o++)if(s=(r=this.arguments[o]).value.eval(e),r.expand&&Array.isArray(s.value))for(s=s.value,a=0;a<s.length;a++)m.push({value:s[a]});else m.push({name:r.name,value:s});for(d=function(t){return t.matchArgs(null,e)},o=0;o<e.frames.length;o++)if((t=e.frames[o].find(this.selector,null,d)).length>0){for(h=!0,a=0;a<t.length;a++){for(i=t[a].rule,n=t[a].path,u=!1,l=0;l<e.frames.length;l++)if(!(i instanceof he)&&i===(e.frames[l].originalRuleset||e.frames[l])){u=!0;break}u||i.matchArgs(m,e)&&((c={mixin:i,group:k(i,n)}).group!==x&&b.push(c),y=!0)}for(E.reset(),p=[0,0,0],a=0;a<b.length;a++)p[b[a].group]++;if(p[S]>0)f=C;else if(f=I,p[I]+p[C]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(m)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(a=0;a<b.length;a++)if((c=b[a].group)===S||c===f)try{(i=b[a].mixin)instanceof he||(v=i.originalRuleset||i,(i=new he("",[],i.rules,null,!1,null,v.visibilityInfo())).originalRuleset=v);var _=i.evalCall(e,m,this.important).rules;this._setVisibilityToReplacement(_),Array.prototype.push.apply(g,_)}catch(e){throw{message:e.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:e.stack}}if(y)return g}throw h?{type:"Runtime",message:"No matching definition was found for `"+this.format(m)+"`",index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}},ce.prototype._setVisibilityToReplacement=function(e){var t;if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},ce.prototype.format=function(e){return this.selector.toCSS().trim()+"("+(e?e.map(function(e){var t="";return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS():t+="???",t}).join(", "):"")+")"};var fe=function(e,t){this.key=e,this.value=t};(fe.prototype=new s).type="Assignment",fe.prototype.accept=function(e){this.value=e.visit(this.value)},fe.prototype.eval=function(e){return this.value.eval?new fe(this.key,this.value.eval(e)):this},fe.prototype.genCSS=function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)};var pe=function(e,t,i,n,r){this.op=e.trim(),this.lvalue=t,this.rvalue=i,this._index=n,this.negate=r};(pe.prototype=new s).type="Condition",pe.prototype.accept=function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},pe.prototype.eval=function(e){var t=function(e,t,i){switch(e){case"and":return t&&i;case"or":return t||i;default:switch(s.compare(t,i)){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e;default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t};var ve=function(e){this.value=e};(ve.prototype=new s).type="UnicodeDescriptor";var de=function(e){this.value=e};(de.prototype=new s).type="Negative",de.prototype.genCSS=function(e,t){t.add("-"),this.value.genCSS(e,t)},de.prototype.eval=function(e){return e.isMathOn()?new ne("*",[new m(-1),this.value]).eval(e):new de(this.value.eval(e))};var me=function e(t,i,n,r,s){switch(this.selector=t,this.option=i,this.object_id=e.next_id++,this.parent_ids=[this.object_id],this._index=n,this._fileInfo=r,this.copyVisibilityInfo(s),this.allowRoot=!0,i){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}this.setParent(this.selector,this)};me.next_id=0,(me.prototype=new s).type="Extend",me.prototype.accept=function(e){this.selector=e.visit(this.selector)},me.prototype.eval=function(e){return new me(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},me.prototype.clone=function(e){return new me(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},me.prototype.findSelfSelectors=function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=e[t].elements,t>0&&i.length&&""===i[0].combinator.value&&(i[0].combinator.value=" "),n=n.concat(e[t].elements);this.selfSelectors=[new N(n)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())};var ge=function(e,t,i){this.variable=e,this._index=t,this._fileInfo=i,this.allowRoot=!0};(ge.prototype=new s).type="VariableCall",ge.prototype.eval=function(e){var t,i=new w(this.variable,this.getIndex(),this.fileInfo()).eval(e),n=new U({message:"Could not evaluate variable call "+this.variable});if(!i.ruleset){if(Array.isArray(i))t=i;else{if(!Array.isArray(i.value))throw n;t=i.value}i=new ie(new J("",t))}if(i.ruleset)return i.callEval(e);throw n};var ye=function(e,t,i,n,r){this.value=e,this.lookups=t,this.important=i,this._index=n,this._fileInfo=r};(ye.prototype=new s).type="NamespaceValue",ye.prototype.eval=function(e){var t,i,n=this.value.eval(e);for(t=0;t<this.lookups.length;t++){if(i=this.lookups[t],Array.isArray(n)&&(n=new J([new N],n)),""===i)n=n.lastDeclaration();else if("@"===i.charAt(0)){if("@"===i.charAt(1)&&(i="@"+new w(i.substr(1)).eval(e).value),n.variables&&(n=n.variable(i)),!n)throw{type:"Name",message:"variable "+i+" not found",filename:this.fileInfo().filename,index:this.getIndex()}}else{if(i="$@"===i.substring(0,2)?"$"+new w(i.substr(1)).eval(e).value:"$"===i.charAt(0)?i:"$"+i,n.properties&&(n=n.property(i)),!n)throw{type:"Name",message:'property "'+i.substr(1)+'" not found',filename:this.fileInfo().filename,index:this.getIndex()};n=n[n.length-1]}n.value&&(n=n.eval(e).value),n.ruleset&&(n=n.ruleset.eval(e))}return n};var be=Object.create(null);be.Node=s,be.Color=p,be.AtRule=oe,be.DetachedRuleset=ie,be.Operation=ne,be.Dimension=m,be.Unit=c,be.Keyword=S,be.Variable=w,be.Property=C,be.Ruleset=J,be.Element=B,be.Attribute=ae,be.Combinator=L,be.Selector=N,be.Quoted=k,be.Expression=g,be.Declaration=I,be.Call=b,be.URL=_,be.Import=ue,be.mixin={Call:ce,Definition:he},be.Comment=u,be.Anonymous=o,be.Value=x,be.JavaScript=te,be.Assignment=fe,be.Condition=pe,be.Paren=a,be.Media=le,be.UnicodeDescriptor=ve,be.Negative=de,be.Extend=me,be.VariableCall=ge,be.NamespaceValue=ye;var we={visitDeeper:!0},xe=!1;function Se(e){return e}var Ie=function(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},xe||(function e(t,i){var n,r;for(n in t)switch(typeof(r=t[n])){case"function":r.prototype&&r.prototype.type&&(r.prototype.typeIndex=i++);break;case"object":i=e(r,i)}return i}(be,1),xe=!0)};function Ce(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}Ie.prototype={visit:function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;var i,n=this._implementation,r=this._visitInCache[t],s=this._visitOutCache[t],o=we;if(o.visitDeeper=!0,r||(r=n[i="visit"+e.type]||Se,s=n[i+"Out"]||Se,this._visitInCache[t]=r,this._visitOutCache[t]=s),r!==Se){var a=r.call(n,e,o);e&&n.isReplacing&&(e=a)}return o.visitDeeper&&e&&e.accept&&e.accept(this),s!=Se&&s.call(n,e),e},visitArray:function(e,t){if(!e)return e;var i,n=e.length;if(t||!this._implementation.isReplacing){for(i=0;i<n;i++)this.visit(e[i]);return e}var r=[];for(i=0;i<n;i++){var s=this.visit(e[i]);void 0!==s&&(s.splice?s.length&&this.flatten(s,r):r.push(s))}return r},flatten:function(e,t){var i,n,r,s,o,a;for(t||(t=[]),n=0,i=e.length;n<i;n++)if(void 0!==(r=e[n]))if(r.splice)for(o=0,s=r.length;o<s;o++)void 0!==(a=r[o])&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(r);return t}},Ce.prototype.addImport=function(e){var t=this,i={callback:e,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,t.tryRun()}},Ce.prototype.addVariableImport=function(e){this.variableImports.push(e)},Ce.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;var t=this.variableImports[0];this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()};var ke=function(e,t){this._visitor=new Ie(this),this._importer=e,this._finish=t,this.context=new q.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new Ce(this._onSequencerEmpty.bind(this))};ke.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var i=e.options.inline;if(!e.css||i){var r=new q.Eval(this.context,n.copyArray(this.context.frames)),s=r.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,r,s)):this.processImportNode(e,r,s)}t.visitDeeper=!1},processImportNode:function(e,t,i){var n,r=e.options.inline;try{n=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!n||n.css&&!r)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{n.options.multiple&&(t.importMultiple=!0);for(var s=void 0===n.css,o=0;o<i.rules.length;o++)if(i.rules[o]===e){i.rules[o]=n;break}var a=this.onImported.bind(this,n,t),l=this._sequencer.addImport(a);this._importer.push(n.getPath(),s,n.fileInfo(),n.options,l)}},onImported:function(e,t,i,n,r,s){i&&(i.filename||(i.index=e.getIndex(),i.filename=e.fileInfo().filename),this.error=i);var o=this,a=e.options.inline,l=e.options.isPlugin,u=e.options.optional,h=r||s in o.recursionDetector;if(t.importMultiple||(e.skip=!!h||function(){return s in o.onceFileDetectionMap||(o.onceFileDetectionMap[s]=!0,!1)}),!s&&u&&(e.skip=!0),n&&(e.root=n,e.importedFilename=s,!a&&!l&&(t.importMultiple||!h))){o.recursionDetector[s]=!0;var c=this.context;this.context=t;try{this._visitor.visit(n)}catch(i){this.error=i}this.context=c}o.importCount--,o.isFinished&&o._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};var _e=function(e){this.visible=e};_e.prototype.run=function(e){this.visit(e)},_e.prototype.visitArray=function(e){if(!e)return e;var t,i=e.length;for(t=0;t<i;t++)this.visit(e[t]);return e},_e.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):!e.blocksVisibility||e.blocksVisibility()?e:(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this),e):e};var Ae=function(){this._visitor=new Ie(this),this.contexts=[],this.allExtendsStack=[[]]};Ae.prototype={run:function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},visitDeclaration:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var i,r,s,o,a=[],l=e.rules,u=l?l.length:0;for(i=0;i<u;i++)e.rules[i]instanceof be.Extend&&(a.push(l[i]),e.extendOnEveryPath=!0);var h=e.paths;for(i=0;i<h.length;i++){var c=h[i],f=c[c.length-1].extendList;for((o=f?n.copyArray(f).concat(a):a)&&(o=o.map(function(e){return e.clone()})),r=0;r<o.length;r++)this.foundExtends=!0,(s=o[r]).findSelfSelectors(c),s.ruleset=e,0===r&&(s.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(s)}this.contexts.push(e.selectors)}},visitRulesetOut:function(e){e.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitMediaOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},visitAtRule:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitAtRuleOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1}};var Me=function(){this._visitor=new Ie(this)};Me.prototype={run:function(e){var t=new Ae;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];var i=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),i},checkExtendsForNonMatched:function(e){var t=this.extendIndices;e.filter(function(e){return!e.hasFoundMatches&&1==e.parent_ids.length}).forEach(function(e){var i="_unknown_";try{i=e.selector.toCSS({})}catch(e){}t[e.index+" "+i]||(t[e.index+" "+i]=!0,r.warn("extend '"+i+"' has no matches"))})},doExtendChaining:function(e,t,i){var n,r,s,o,a,l,u,h,c=[],f=this;for(i=i||0,n=0;n<e.length;n++)for(r=0;r<t.length;r++)l=e[n],u=t[r],l.parent_ids.indexOf(u.object_id)>=0||(a=[u.selfSelectors[0]],(s=f.findMatch(l,a)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach(function(e){var t=u.visibilityInfo();o=f.extendSelector(s,a,e,l.isVisible()),(h=new be.Extend(u.selector,u.option,0,u.fileInfo(),t)).selfSelectors=o,o[o.length-1].extendList=[h],c.push(h),h.ruleset=u.ruleset,h.parent_ids=h.parent_ids.concat(u.parent_ids,l.parent_ids),u.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,u.ruleset.paths.push(o))})));if(c.length){if(this.extendChainCount++,i>100){var p="{unable to calculate}",v="{unable to calculate}";try{p=c[0].selfSelectors[0].toCSS(),v=c[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+p+":extend("+v+")"}}return c.concat(f.doExtendChaining(c,t,i+1))}return c},visitDeclaration:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var i,n,r,s,o=this.allExtendsStack[this.allExtendsStack.length-1],a=[],l=this;for(r=0;r<o.length;r++)for(n=0;n<e.paths.length;n++)if(s=e.paths[n],!e.extendOnEveryPath){var u=s[s.length-1].extendList;u&&u.length||(i=this.findMatch(o[r],s)).length&&(o[r].hasFoundMatches=!0,o[r].selfSelectors.forEach(function(e){var t;t=l.extendSelector(i,s,e,o[r].isVisible()),a.push(t)}))}e.paths=e.paths.concat(a)}},findMatch:function(e,t){var i,n,r,s,o,a,l,u=e.selector.elements,h=[],c=[];for(i=0;i<t.length;i++)for(n=t[i],r=0;r<n.elements.length;r++)for(s=n.elements[r],(e.allowBefore||0===i&&0===r)&&h.push({pathIndex:i,index:r,matched:0,initialCombinator:s.combinator}),a=0;a<h.length;a++)l=h[a],""===(o=s.combinator.value)&&0===r&&(o=" "),!this.isElementValuesEqual(u[l.matched].value,s.value)||l.matched>0&&u[l.matched].combinator.value!==o?l=null:l.matched++,l&&(l.finished=l.matched===u.length,l.finished&&!e.allowAfter&&(r+1<n.elements.length||i+1<t.length)&&(l=null)),l?l.finished&&(l.length=u.length,l.endPathIndex=i,l.endPathElementIndex=r+1,h.length=0,c.push(l)):(h.splice(a,1),a--);return c},isElementValuesEqual:function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof be.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof be.Selector){if(!(t instanceof be.Selector)||e.elements.length!==t.elements.length)return!1;for(var i=0;i<e.elements.length;i++){if(e.elements[i].combinator.value!==t.elements[i].combinator.value&&(0!==i||(e.elements[i].combinator.value||" ")!==(t.elements[i].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[i].value,t.elements[i].value))return!1}return!0}return!1},extendSelector:function(e,t,i,n){var r,s,o,a,l,u=0,h=0,c=[];for(r=0;r<e.length;r++)s=t[(a=e[r]).pathIndex],o=new be.Element(a.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),a.pathIndex>u&&h>0&&(c[c.length-1].elements=c[c.length-1].elements.concat(t[u].elements.slice(h)),h=0,u++),l=s.elements.slice(h,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&r>0?c[c.length-1].elements=c[c.length-1].elements.concat(l):(c=c.concat(t.slice(u,a.pathIndex))).push(new be.Selector(l)),u=a.endPathIndex,(h=a.endPathElementIndex)>=t[u].elements.length&&(h=0,u++);return u<t.length&&h>0&&(c[c.length-1].elements=c[c.length-1].elements.concat(t[u].elements.slice(h)),u++),(c=c.concat(t.slice(u,t.length))).map(function(e){var t=e.createDerived(e.elements);return n?t.ensureVisibility():t.ensureInvisibility(),t})},visitMedia:function(e,t){var i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)},visitMediaOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},visitAtRule:function(e,t){var i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)},visitAtRuleOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}};var Ee=function(){this.contexts=[[]],this._visitor=new Ie(this)};Ee.prototype={run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){var i,n=this.contexts[this.contexts.length-1],r=[];this.contexts.push(r),e.root||((i=e.selectors)&&(i=i.filter(function(e){return e.getIsOutput()}),e.selectors=i.length?i:i=null,i&&e.joinSelectors(r,n,i)),i||(e.rules=null),e.paths=r)},visitRulesetOut:function(e){this.contexts.length=this.contexts.length-1},visitMedia:function(e,t){var i=this.contexts[this.contexts.length-1];e.rules[0].root=0===i.length||i[0].multiMedia},visitAtRule:function(e,t){var i=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===i.length||null)}};var Pe=function(e){this._visitor=new Ie(this),this._context=e};Pe.prototype={containsSilentNonBlockedChild:function(e){var t;if(!e)return!1;for(var i=0;i<e.length;i++)if((t=e[i]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},keepOnlyVisibleChilds:function(e){e&&e.rules&&(e.rules=e.rules.filter(function(e){return e.isVisible()}))},isEmpty:function(e){return!e||!e.rules||0===e.rules.length},hasVisibleSelector:function(e){return!(!e||!e.paths)&&e.paths.length>0},resolveVisibility:function(e,t){if(!e.blocksVisibility()){if(this.isEmpty(e)&&!this.containsSilentNonBlockedChild(t))return;return e}var i=e.rules[0];if(this.keepOnlyVisibleChilds(i),!this.isEmpty(i))return e.ensureVisibility(),e.removeVisibilityBlock(),e},isVisibleRuleset:function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))}};var Re=function(e){this._visitor=new Ie(this),this._context=e,this.utils=new Pe(e)};Re.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){var i=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,i)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){var i=function(e){var t=e.rules;return function(e){var t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,i)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var i=new be.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return i.debugInfo=e.debugInfo,this._visitor.visit(i)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var i=0;i<e.length;i++){var n=e[i];if(t&&n instanceof be.Declaration&&!n.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n instanceof be.Call)throw{message:"Function '"+n.name+"' is undefined",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n.type&&!n.allowRoot)throw{message:n.type+" node returned by a function is not valid here",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename}}},visitRuleset:function(e,t){var i,n=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);for(var r=e.rules,s=r?r.length:0,o=0;o<s;)(i=r[o])&&i.rules?(n.push(this._visitor.visit(i)),r.splice(o,1),s--):o++;s>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),n.splice(0,0,e)),1===n.length?n[0]:n},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter(function(e){var t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new be.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(e){if(e){var t,i,n,r={};for(n=e.length-1;n>=0;n--)if((i=e[n])instanceof be.Declaration)if(r[i.name]){(t=r[i.name])instanceof be.Declaration&&(t=r[i.name]=[r[i.name].toCSS(this._context)]);var s=i.toCSS(this._context);-1!==t.indexOf(s)?e.splice(n,1):t.push(s)}else r[i.name]=i}},_mergeRules:function(e){if(e){for(var t={},i=[],n=0;n<e.length;n++){var r=e[n];if(r.merge){var s=r.name;t[s]?e.splice(n--,1):i.push(t[s]=[]),t[s].push(r)}}i.forEach(function(e){if(e.length>0){var t=e[0],i=[],n=[new be.Expression(i)];e.forEach(function(e){"+"===e.merge&&i.length>0&&n.push(new be.Expression(i=[])),i.push(e.value),t.important=t.important||e.important}),t.value=new be.Value(n)}})}}};var Ve={Visitor:Ie,ImportVisitor:ke,MarkVisibleSelectorsVisitor:_e,ExtendVisitor:Me,JoinSelectorVisitor:Ee,ToCSSVisitor:Re};function $e(e,t){var i,n=(t=t||{}).variables,r=new q.Eval(t);"object"!=typeof n||Array.isArray(n)||(n=Object.keys(n).map(function(e){var t=n[e];return t instanceof be.Value||(t instanceof be.Expression||(t=new be.Expression([t])),t=new be.Value([t])),new be.Declaration("@"+e,t,!1,null,0)}),r.frames=[new be.Ruleset(null,n)]);var s,o,a=[new Ve.JoinSelectorVisitor,new Ve.MarkVisibleSelectorsVisitor(!0),new Ve.ExtendVisitor,new Ve.ToCSSVisitor({compress:Boolean(t.compress)})],l=[];if(t.pluginManager){o=t.pluginManager.visitor();for(var u=0;u<2;u++)for(o.first();s=o.get();)s.isPreEvalVisitor?0!==u&&-1!==l.indexOf(s)||(l.push(s),s.run(e)):0!==u&&-1!==a.indexOf(s)||(s.isPreVisitor?a.unshift(s):a.push(s))}for(i=e.eval(r),u=0;u<a.length;u++)a[u].run(i);if(t.pluginManager)for(o.first();s=o.get();)-1===a.indexOf(s)&&-1===l.indexOf(s)&&s.run(i);return i}var Oe,Fe=function e(t,i,r){var s,o=function(){var e,t,i,n,r,s,o,a=[],l={},u=32,h=9,c=10,f=13,p=47;function v(i){for(var n,a,d,m=l.i,g=t,y=l.i-o,b=l.i+s.length-y,w=l.i+=i,x=e;l.i<b;l.i++){if(n=x.charCodeAt(l.i),l.autoCommentAbsorb&&n===p){if("/"===(a=x.charAt(l.i+1))){d={index:l.i,isLineComment:!0};var S=x.indexOf("\n",l.i+2);S<0&&(S=b),l.i=S,d.text=x.substr(d.index,l.i-d.index),l.commentStore.push(d);continue}if("*"===a){var I=x.indexOf("*/",l.i+2);if(I>=0){d={index:l.i,text:x.substr(l.i,I+2-l.i),isLineComment:!1},l.i+=d.text.length-1,l.commentStore.push(d);continue}}break}if(n!==u&&n!==c&&n!==h&&n!==f)break}if(s=s.slice(i+l.i-w+y),o=l.i,!s.length){if(t<r.length-1)return s=r[++t],v(0),!0;l.finished=!0}return m!==l.i||g!==t}return l.save=function(){o=l.i,a.push({current:s,i:l.i,j:t})},l.restore=function(e){(l.i>i||l.i===i&&e&&!n)&&(i=l.i,n=e);var r=a.pop();s=r.current,o=l.i=r.i,t=r.j},l.forget=function(){a.pop()},l.isWhitespace=function(t){var i=l.i+(t||0),n=e.charCodeAt(i);return n===u||n===f||n===h||n===c},l.$re=function(e){l.i>o&&(s=s.slice(l.i-o),o=l.i);var t=e.exec(s);return t?(v(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=function(t){return e.charAt(l.i)!==t?null:(v(1),t)},l.$str=function(t){for(var i=t.length,n=0;n<i;n++)if(e.charAt(l.i+n)!==t.charAt(n))return null;return v(i),t},l.$quoted=function(t){var i=t||l.i,n=e.charAt(i);if("'"===n||'"'===n){for(var r=e.length,s=i,o=1;o+s<r;o++)switch(e.charAt(o+s)){case"\\":o++;continue;case"\r":case"\n":break;case n:var a=e.substr(s,o+1);return t||0===t?[n,a]:(v(o+1),a)}return null}},l.$parseUntil=function(t){var i,n="",r=null,s=!1,o=0,a=[],u=[],h=e.length,c=l.i,f=l.i,p=l.i,d=!0;i="string"==typeof t?function(e){return e===t}:function(e){return t.test(e)};do{var m=e.charAt(p);if(0===o&&i(m))(r=e.substr(f,p-f))?u.push(r):u.push(" "),r=u,v(p-c),d=!1;else{if(s){"*"===m&&"/"===e.charAt(p+1)&&(p++,o--,s=!1),p++;continue}switch(m){case"\\":p++,m=e.charAt(p),u.push(e.substr(f,p-f+1)),f=p+1;break;case"/":"*"===e.charAt(p+1)&&(p++,s=!0,o++);break;case"'":case'"':(n=l.$quoted(p))?(u.push(e.substr(f,p-f),n),f=(p+=n[1].length-1)+1):(v(p-c),r=m,d=!1);break;case"{":a.push("}"),o++;break;case"(":a.push(")"),o++;break;case"[":a.push("]"),o++;break;case"}":case")":case"]":var g=a.pop();m===g?o--:(v(p-c),r=g,d=!1)}++p>h&&(d=!1)}}while(d);return r||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=function(t){if("string"==typeof t){for(var i=0;i<t.length;i++)if(e.charAt(l.i+i)!==t.charAt(i))return!1;return!0}return t.test(s)},l.peekChar=function(t){return e.charAt(l.i)===t},l.currentChar=function(){return e.charAt(l.i)},l.prevChar=function(){return e.charAt(l.i-1)},l.getInput=function(){return e},l.peekNotNumeric=function(){var t=e.charCodeAt(l.i);return t>57||t<43||t===p||44===t},l.start=function(n,a,u){e=n,l.i=t=o=i=0,r=a?function(e,t){var i,n,r,s,o,a,l,u,h,c=e.length,f=0,p=0,v=[],d=0;function m(t){var i=o-d;i<512&&!t||!i||(v.push(e.slice(d,o+1)),d=o+1)}for(o=0;o<c;o++)if(!((l=e.charCodeAt(o))>=97&&l<=122||l<34))switch(l){case 40:p++,n=o;continue;case 41:if(--p<0)return t("missing opening `(`",o);continue;case 59:p||m();continue;case 123:f++,i=o;continue;case 125:if(--f<0)return t("missing opening `{`",o);f||p||m();continue;case 92:if(o<c-1){o++;continue}return t("unescaped `\\`",o);case 34:case 39:case 96:for(h=0,a=o,o+=1;o<c;o++)if(!((u=e.charCodeAt(o))>96)){if(u==l){h=1;break}if(92==u){if(o==c-1)return t("unescaped `\\`",o);o++}}if(h)continue;return t("unmatched `"+String.fromCharCode(l)+"`",a);case 47:if(p||o==c-1)continue;if(47==(u=e.charCodeAt(o+1)))for(o+=2;o<c&&(!((u=e.charCodeAt(o))<=13)||10!=u&&13!=u);o++);else if(42==u){for(r=a=o,o+=2;o<c-1&&(125==(u=e.charCodeAt(o))&&(s=o),42!=u||47!=e.charCodeAt(o+1));o++);if(o==c-1)return t("missing closing `*/`",a);o++}continue;case 42:if(o<c-1&&47==e.charCodeAt(o+1))return t("unmatched `/*`",o);continue}return 0!==f?t(r>i&&s>r?"missing closing `}` or `*/`":"missing closing `}`",i):0!==p?t("missing closing `)`",n):(m(!0),v)}(n,u):[n],s=r[0],v(0)},l.end=function(){var t,r=l.i>=e.length;return l.i<i&&(t=n,l.i=i),{isFinished:r,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l}();function a(e,t){throw new U({index:o.i,filename:r.filename,type:t||"Syntax",message:e},i)}function l(e,t){var i=e instanceof Function?e.call(s):o.$re(e);if(i)return i;a(t||("string"==typeof e?"expected '"+e+"' got '"+o.currentChar()+"'":"unexpected token"))}function u(e,t){if(o.$char(e))return e;a(t||"expected '"+e+"' got '"+o.currentChar()+"'")}function h(e){var t=r.filename;return{lineNumber:n.getLocation(e,o.getInput()).line+1,fileName:t}}return{parserInput:o,imports:i,fileInfo:r,parseNode:function(e,t,n,r,a){var l,u=[],h=o;try{h.start(e,!1,function(e,t){a({message:e,index:t+n})});for(var c,f,p=0;c=t[p];p++)f=h.i,(l=s[c]())?(l._index=f+n,l._fileInfo=r,u.push(l)):u.push(null);h.end().isFinished?a(null,u):a(!0,null)}catch(e){throw new U({index:e.index+n,message:e.message},i,r.filename)}},parse:function(n,s,a){var l,u,h,c,f=null,p="";if(u=a&&a.globalVars?e.serializeVars(a.globalVars)+"\n":"",h=a&&a.modifyVars?"\n"+e.serializeVars(a.modifyVars):"",t.pluginManager)for(var v=t.pluginManager.getPreProcessors(),d=0;d<v.length;d++)n=v[d].process(n,{context:t,imports:i,fileInfo:r});(u||a&&a.banner)&&(p=(a&&a.banner?a.banner:"")+u,(c=i.contentsIgnoredChars)[r.filename]=c[r.filename]||0,c[r.filename]+=p.length),n=p+(n=n.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+h,i.contents[r.filename]=n;try{o.start(n,t.chunkInput,function(e,t){throw new U({index:t,type:"Parse",message:e,filename:r.filename},i)}),be.Node.prototype.parse=this,l=new be.Ruleset(null,this.parsers.primary()),be.Node.prototype.rootNode=l,l.root=!0,l.firstRoot=!0,l.functionRegistry=A.inherit()}catch(e){return s(new U(e,i,r.filename))}var m=o.end();if(!m.isFinished){var g=m.furthestPossibleErrorMessage;g||(g="Unrecognised input","}"===m.furthestChar?g+=". Possibly missing opening '{'":")"===m.furthestChar?g+=". Possibly missing opening '('":m.furthestReachedEnd&&(g+=". Possibly missing something")),f=new U({type:"Parse",message:g,index:m.furthest,filename:r.filename},i)}var y=function(e){return(e=f||e||i.error)?(e instanceof U||(e=new U(e,i,r.filename)),s(e)):s(null,l)};if(!1===t.processImports)return y();new Ve.ImportVisitor(i,y).run(l)},parsers:s={primary:function(){for(var e,t=this.mixin,i=[];;){for(;e=this.comment();)i.push(e);if(o.finished)break;if(o.peek("}"))break;if(e=this.extendRule())i=i.concat(e);else if(e=t.definition()||this.declaration()||this.ruleset()||t.call(!1,!1)||this.variableCall()||this.entities.call()||this.atrule())i.push(e);else{for(var n=!1;o.$char(";");)n=!0;if(!n)break}}return i},comment:function(){if(o.commentStore.length){var e=o.commentStore.shift();return new be.Comment(e.text,e.isLineComment,e.index,r)}},entities:{mixinLookup:function(){return s.mixin.call(!0,!0)},quoted:function(e){var t,i=o.i,n=!1;if(o.save(),o.$char("~"))n=!0;else if(e)return void o.restore();if(t=o.$quoted())return o.forget(),new be.Quoted(t.charAt(0),t.substr(1,t.length-2),n,i,r);o.restore()},keyword:function(){var e=o.$char("%")||o.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return be.Color.fromKeyword(e)||new be.Keyword(e)},call:function(){var e,t,i,n=o.i;if(!o.peek(/^url\(/i))if(o.save(),e=o.$re(/^([\w-]+|%|progid:[\w\.]+)\(/)){if(e=e[1],(i=this.customFuncCall(e))&&(t=i.parse())&&i.stop)return o.forget(),t;if(t=this.arguments(t),o.$char(")"))return o.forget(),new be.Call(e,t,n,r);o.restore("Could not parse call arguments or missing ')'")}else o.forget()},customFuncCall:function(e){return{alpha:t(s.ieAlpha,!0),boolean:t(i),if:t(i)}[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function i(){return[l(s.condition,"expected condition")]}},arguments:function(e){var t,i,n=e||[],r=[];for(o.save();;){if(e)e=!1;else{if(!(i=s.detachedRuleset()||this.assignment()||s.expression()))break;i.value&&1==i.value.length&&(i=i.value[0]),n.push(i)}o.$char(",")||(o.$char(";")||t)&&(t=!0,i=n.length<1?n[0]:new be.Value(n),r.push(i),n=[])}return o.forget(),t?r:n},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;if(o.save(),e=o.$re(/^\w+(?=\s?=)/i))if(o.$char("=")){if(t=s.entity())return o.forget(),new be.Assignment(e,t);o.restore()}else o.restore();else o.restore()},url:function(){var e,t=o.i;if(o.autoCommentAbsorb=!1,o.$str("url("))return e=this.quoted()||this.variable()||this.property()||o.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",o.autoCommentAbsorb=!0,u(")"),new be.URL(null!=e.value||e instanceof be.Variable||e instanceof be.Property?e:new be.Anonymous(e,t),t,r);o.autoCommentAbsorb=!0},variable:function(){var e,t,i=o.i;if(o.save(),"@"===o.currentChar()&&(t=o.$re(/^@@?[\w-]+/))){if("("===(e=o.currentChar())||"["===e&&!o.prevChar().match(/^\s/)){var n=s.variableCall(t);if(n)return o.forget(),n}return o.forget(),new be.Variable(t,i,r)}o.restore()},variableCurly:function(){var e,t=o.i;if("@"===o.currentChar()&&(e=o.$re(/^@\{([\w-]+)\}/)))return new be.Variable("@"+e[1],t,r)},property:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$[\w-]+/)))return new be.Property(e,t,r)},propertyCurly:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$\{([\w-]+)\}/)))return new be.Property("$"+e[1],t,r)},color:function(){var e;if("#"===o.currentChar()&&(e=o.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})/)))return new be.Color(e[1],void 0,e[0])},colorKeyword:function(){o.save();var e=o.autoCommentAbsorb;o.autoCommentAbsorb=!1;var t=o.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(o.autoCommentAbsorb=e,t){o.restore();var i=be.Color.fromKeyword(t);return i?(o.$str(t),i):void 0}o.forget()},dimension:function(){if(!o.peekNotNumeric()){var e=o.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new be.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=o.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new be.UnicodeDescriptor(e[0])},javascript:function(){var e,t=o.i;o.save();var i=o.$char("~");if(o.$char("`")){if(e=o.$re(/^[^`]*`/))return o.forget(),new be.JavaScript(e.substr(0,e.length-1),Boolean(i),t,r);o.restore("invalid javascript definition")}else o.restore()}},variable:function(){var e;if("@"===o.currentChar()&&(e=o.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){var t,i,n=o.i,a=!!e,l=e;if(o.save(),l||"@"===o.currentChar()&&(l=o.$re(/^(@[\w-]+)(\(\s*\))?/))){if(!(t=this.mixin.ruleLookups())&&(a&&"()"!==o.$str("()")||"()"!==l[2]))return void o.restore("Missing '[...]' lookup in variable call");a||(l=l[1]),t&&s.important()&&(i=!0);var u=new be.VariableCall(l,n,r);return!a&&s.end()?(o.forget(),u):(o.forget(),new be.NamespaceValue(u,t,i,n,r))}o.restore()},extend:function(e){var t,i,n,s,u,h=o.i;if(o.$str(e?"&:extend(":":extend(")){do{for(n=null,t=null;!(n=o.$re(/^(all)(?=\s*(\)|,))/))&&(i=this.element());)t?t.push(i):t=[i];n=n&&n[1],t||a("Missing target selector for :extend()."),u=new be.Extend(new be.Selector(t),n,h,r),s?s.push(u):s=[u]}while(o.$char(","));return l(/^\)/),e&&l(/^;/),s}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){var i,n,a,l,h=o.currentChar(),c=!1,f=o.i;if("."===h||"#"===h){if(o.save(),n=this.elements()){if(o.$char("(")&&(a=this.args(!0).args,u(")"),l=!0),!1!==t&&(i=this.ruleLookups()),!0===t&&!i)return void o.restore();if(e&&!i&&!l)return void o.restore();if(!e&&s.important()&&(c=!0),e||s.end()){o.forget();var p=new be.mixin.Call(n,a,f,r,!i&&c);return i?new be.NamespaceValue(p,i,c):p}}o.restore()}},elements:function(){for(var e,t,i,n,s,a=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;s=o.i,t=o.$re(a);)n=new be.Element(i,t,!1,s,r),e?e.push(n):e=[n],i=o.$char(">");return e},args:function(e){var t,i,n,r,l,u,h,c=s.entities,f={args:null,variadic:!1},p=[],v=[],d=[],m=!0;for(o.save();;){if(e)u=s.detachedRuleset()||s.expression();else{if(o.commentStore.length=0,o.$str("...")){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?v:d).push({variadic:!0});break}u=c.variable()||c.property()||c.literal()||c.keyword()||this.call(!0)}if(!u||!m)break;r=null,u.throwAwayComments&&u.throwAwayComments(),l=u;var g=null;if(e?u.value&&1==u.value.length&&(g=u.value[0]):g=u,g&&(g instanceof be.Variable||g instanceof be.Property))if(o.$char(":")){if(p.length>0&&(t&&a("Cannot mix ; and , as delimiter types"),i=!0),!(l=s.detachedRuleset()||s.expression())){if(!e)return o.restore(),f.args=[],f;a("could not understand value for named argument")}r=n=g.name}else if(o.$str("...")){if(!e){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?v:d).push({name:u.name,variadic:!0});break}h=!0}else e||(n=r=g.name,l=null);l&&p.push(l),d.push({name:r,value:l,expand:h}),o.$char(",")?m=!0:((m=";"===o.$char(";"))||t)&&(i&&a("Cannot mix ; and , as delimiter types"),t=!0,p.length>1&&(l=new be.Value(p)),v.push({name:n,value:l,expand:h}),n=null,p=[],i=!1)}return o.forget(),f.args=t?v:d,f},definition:function(){var e,t,i,n,r=[],a=!1;if(!("."!==o.currentChar()&&"#"!==o.currentChar()||o.peek(/^[^{]*\}/)))if(o.save(),t=o.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var u=this.args(!1);if(r=u.args,a=u.variadic,!o.$char(")"))return void o.restore("Missing closing ')'");if(o.commentStore.length=0,o.$str("when")&&(n=l(s.conditions,"expected condition")),i=s.block())return o.forget(),new be.mixin.Definition(e,r,i,n,a);o.restore()}else o.forget()},ruleLookups:function(){var e,t=[];if("["===o.currentChar()){for(;;){if(o.save(),!(e=this.lookupValue())&&""!==e){o.restore();break}t.push(e),o.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(o.save(),o.$char("[")){var e=o.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(o.$char("]"))return e||""===e?(o.forget(),e):void o.restore();o.restore()}else o.restore()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return o.$char(";")||o.peek("}")},ieAlpha:function(){var e;if(o.$re(/^opacity=/i))return(e=o.$re(/^\d+/))||(e="@{"+(e=l(s.entities.variable,"Could not parse alpha")).name.slice(1)+"}"),u(")"),new be.Quoted("","alpha(opacity="+e+")")},element:function(){var e,t,i,n=o.i;if(t=this.combinator(),(e=o.$re(/^(?:\d+\.\d+|\d+)%/)||o.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||o.$char("*")||o.$char("&")||this.attribute()||o.$re(/^\([^&()@]+\)/)||o.$re(/^[\.#:](?=@)/)||this.entities.variableCurly())||(o.save(),o.$char("(")?(i=this.selector(!1))&&o.$char(")")?(e=new be.Paren(i),o.forget()):o.restore("Missing closing ')'"):o.forget()),e)return new be.Element(t,e,e instanceof be.Variable,n,r)},combinator:function(){var e=o.currentChar();if("/"===e){o.save();var t=o.$re(/^\/[a-z]+\//i);if(t)return o.forget(),new be.Combinator(t);o.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(o.i++,"^"===e&&"^"===o.currentChar()&&(e="^^",o.i++);o.isWhitespace();)o.i++;return new be.Combinator(e)}return o.isWhitespace(-1)?new be.Combinator(" "):new be.Combinator(null)},selector:function(e){var t,i,n,s,u,h,c,f=o.i;for(e=!1!==e;(e&&(i=this.extend())||e&&(h=o.$str("when"))||(s=this.element()))&&(h?c=l(this.conditions,"expected condition"):c?a("CSS guard can only be used at the end of selector"):i?u=u?u.concat(i):i:(u&&a("Extend can only be used at the end of selector"),n=o.currentChar(),t?t.push(s):t=[s],s=null),"{"!==n&&"}"!==n&&";"!==n&&","!==n&&")"!==n););if(t)return new be.Selector(t,u,c,f,r);u&&a("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var e,t;(e=this.selector())&&(t?t.push(e):t=[e],o.commentStore.length=0,e.condition&&t.length>1&&a("Guards are only currently allowed on a single selector."),o.$char(","));)e.condition&&a("Guards are only currently allowed on a single selector."),o.commentStore.length=0;return t},attribute:function(){if(o.$char("[")){var e,t,i,n=this.entities;return(e=n.variableCurly())||(e=l(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(i=o.$re(/^[|~*$^]?=/))&&(t=n.quoted()||o.$re(/^[0-9]+%/)||o.$re(/^[\w-]+/)||n.variableCurly()),u("]"),new be.Attribute(e,i,t)}},block:function(){var e;if(o.$char("{")&&(e=this.primary())&&o.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new be.Ruleset(null,e)),e},detachedRuleset:function(){var e,t,i;if(o.save(),!o.$re(/^[.#]\(/)||(t=(e=this.mixin.args(!1)).args,i=e.variadic,o.$char(")"))){var n=this.blockRuleset();if(n)return o.forget(),t?new be.mixin.Definition(null,t,n,null,i):new be.DetachedRuleset(n);o.restore()}else o.restore()},ruleset:function(){var e,i,n;if(o.save(),t.dumpLineNumbers&&(n=h(o.i)),(e=this.selectors())&&(i=this.block())){o.forget();var r=new be.Ruleset(e,i,t.strictImports);return t.dumpLineNumbers&&(r.debugInfo=n),r}o.restore()},declaration:function(){var e,t,i,n,s,a,l=o.i,u=o.currentChar();if("."!==u&&"#"!==u&&"&"!==u&&":"!==u)if(o.save(),e=this.variable()||this.ruleProperty()){if((a="string"==typeof e)&&(t=this.detachedRuleset())&&(i=!0),o.commentStore.length=0,!t){if(s=!a&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?this.permissiveValue():this.anonymousValue())return o.forget(),new be.Declaration(e,t,!1,s,l,r);t||(t=this.value()),t?n=this.important():a&&(t=this.permissiveValue())}if(t&&(this.end()||i))return o.forget(),new be.Declaration(e,t,n,s,l,r);o.restore()}else o.restore()},anonymousValue:function(){var e=o.i,t=o.$re(/^([^.#@\$+\/'"*`(;{}-]*);/);if(t)return new be.Anonymous(t[1],e)},permissiveValue:function(e){var t,i,n,s,l=e||";",u=o.i,h=[];function c(){var e=o.currentChar();return"string"==typeof l?e===l:l.test(e)}if(!c()){s=[];do{(i=this.comment())?s.push(i):(i=this.entity())&&s.push(i)}while(i);if(n=c(),s.length>0){if(s=new be.Expression(s),n)return s;h.push(s)," "===o.prevChar()&&h.push(new be.Anonymous(" ",u))}if(o.save(),s=o.$parseUntil(l)){if("string"==typeof s&&a("Expected '"+s+"'","Parse"),1===s.length&&" "===s[0])return o.forget(),new be.Anonymous("",u);var f;for(t=0;t<s.length;t++)if(f=s[t],Array.isArray(f))h.push(new be.Quoted(f[0],f[1],!0,u,r));else{t===s.length-1&&(f=f.trim());var p=new be.Quoted("'",f,!0,u,r);p.variableRegex=/@([\w-]+)/g,p.propRegex=/\$([\w-]+)/g,h.push(p)}return o.forget(),new be.Expression(h,!0)}o.restore()}},import:function(){var e,t,i=o.i,n=o.$re(/^@import?\s+/);if(n){var s=(n?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),o.$char(";")||(o.i=i,a("missing semi-colon or unrecognised media features on import")),t=t&&new be.Value(t),new be.Import(e,t,s,i,r);o.i=i,a("malformed import statement")}},importOptions:function(){var e,t,i,n={};if(!o.$char("("))return null;do{if(e=this.importOption()){switch(i=!0,t=e){case"css":t="less",i=!1;break;case"once":t="multiple",i=!1}if(n[t]=i,!o.$char(","))break}}while(e);return u(")"),n},importOption:function(){var e=o.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(){var e,t,i=this.entities,n=[];o.save();do{(e=i.keyword()||i.variable()||i.mixinLookup())?n.push(e):o.$char("(")&&(t=this.property(),e=this.value(),o.$char(")")?t&&e?n.push(new be.Paren(new be.Declaration(t,e,null,null,o.i,r,!0))):e?n.push(new be.Paren(e)):a("badly formed media feature definition"):a("Missing closing ')'","Parse"))}while(e);if(o.forget(),n.length>0)return new be.Expression(n)},mediaFeatures:function(){var e,t=this.entities,i=[];do{if(e=this.mediaFeature()){if(i.push(e),!o.$char(","))break}else if((e=t.variable()||t.mixinLookup())&&(i.push(e),!o.$char(",")))break}while(e);return i.length>0?i:null},media:function(){var e,i,n,s,l=o.i;if(t.dumpLineNumbers&&(s=h(l)),o.save(),o.$str("@media"))return e=this.mediaFeatures(),(i=this.block())||a("media definitions require block statements after any features"),o.forget(),n=new be.Media(i,e,l,r),t.dumpLineNumbers&&(n.debugInfo=s),n;o.restore()},plugin:function(){var e,t,i,n=o.i;if(o.$re(/^@plugin?\s+/)){if(i=(t=this.pluginArgs())?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return o.$char(";")||(o.i=n,a("missing semi-colon on @plugin")),new be.Import(e,null,i,n,r);o.i=n,a("malformed @plugin statement")}},pluginArgs:function(){if(o.save(),!o.$char("("))return o.restore(),null;var e=o.$re(/^\s*([^\);]+)\)\s*/);return e[1]?(o.forget(),e[1].trim()):(o.restore(),null)},atrule:function(){var e,i,n,s,l,u,c,f=o.i,p=!0,v=!0;if("@"===o.currentChar()){if(i=this.import()||this.plugin()||this.media())return i;if(o.save(),e=o.$re(/^@[a-z-]+/)){switch(s=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(s="@"+e.slice(e.indexOf("-",2)+1)),s){case"@charset":l=!0,p=!1;break;case"@namespace":u=!0,p=!1;break;case"@keyframes":case"@counter-style":l=!0;break;case"@document":case"@supports":c=!0,v=!1;break;default:c=!0}if(o.commentStore.length=0,l?(i=this.entity())||a("expected "+e+" identifier"):u?(i=this.expression())||a("expected "+e+" expression"):c&&(i=this.permissiveValue(/^[{;]/),p="{"===o.currentChar(),i?i.value||(i=null):p||";"===o.currentChar()||a(e+" rule is missing block or ending semi-colon")),p&&(n=this.blockRuleset()),n||!p&&i&&o.$char(";"))return o.forget(),new be.AtRule(e,i,n,f,r,t.dumpLineNumbers?h(f):null,v);o.restore("at-rule options not recognised")}}},value:function(){var e,t=[],i=o.i;do{if((e=this.expression())&&(t.push(e),!o.$char(",")))break}while(e);if(t.length>0)return new be.Value(t,i)},important:function(){if("!"===o.currentChar())return o.$re(/^! *important/)},sub:function(){var e,t;if(o.save(),o.$char("("))return(e=this.addition())&&o.$char(")")?(o.forget(),(t=new be.Expression([e])).parens=!0,t):void o.restore("Expected ')'");o.restore()},multiplication:function(){var e,t,i,n,r;if(e=this.operand()){for(r=o.isWhitespace(-1);!o.peek(/^\/[*\/]/);){if(o.save(),!(i=o.$char("/")||o.$char("*")||o.$str("./"))){o.forget();break}if(!(t=this.operand())){o.restore();break}o.forget(),e.parensInOp=!0,t.parensInOp=!0,n=new be.Operation(i,[n||e,t],r),r=o.isWhitespace(-1)}return n||e}},addition:function(){var e,t,i,n,r;if(e=this.multiplication()){for(r=o.isWhitespace(-1);(i=o.$re(/^[-+]\s+/)||!r&&(o.$char("+")||o.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,n=new be.Operation(i,[n||e,t],r),r=o.isWhitespace(-1);return n||e}},conditions:function(){var e,t,i,n=o.i;if(e=this.condition(!0)){for(;o.peek(/^,\s*(not\s*)?\(/)&&o.$char(",")&&(t=this.condition(!0));)i=new be.Condition("or",i||e,t,n);return i||e}},condition:function(e){var t,i,n;if(t=this.conditionAnd(e)){if(i=o.$str("or")){if(!(n=this.condition(e)))return;t=new be.Condition(i,t,n)}return t}},conditionAnd:function(e){var t,i,n,r;if(t=(r=this.negatedCondition(e)||this.parenthesisCondition(e))||e?r:this.atomicCondition(e)){if(i=o.$str("and")){if(!(n=this.conditionAnd(e)))return;t=new be.Condition(i,t,n)}return t}},negatedCondition:function(e){if(o.$str("not")){var t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){var t;if(o.save(),o.$str("(")){if(t=function(t){var i;if(o.save(),i=t.condition(e)){if(o.$char(")"))return o.forget(),i;o.restore()}else o.restore()}(this))return o.forget(),t;if(t=this.atomicCondition(e)){if(o.$char(")"))return o.forget(),t;o.restore("expected ')' got '"+o.currentChar()+"'")}else o.restore()}else o.restore()},atomicCondition:function(e){var t,i,n,r,s=this.entities,l=o.i;function u(){return this.addition()||s.keyword()||s.quoted()||s.mixinLookup()}if(t=(u=u.bind(this))())return o.$char(">")?r=o.$char("=")?">=":">":o.$char("<")?r=o.$char("=")?"<=":"<":o.$char("=")&&(r=o.$char(">")?"=>":o.$char("<")?"=<":"="),r?(i=u())?n=new be.Condition(r,t,i,l,!1):a("expected expression"):n=new be.Condition("=",t,new be.Keyword("true"),l,!1),n},operand:function(){var e,t=this.entities;o.peek(/^-[@\$\(]/)&&(e=o.$char("-"));var i=this.sub()||t.dimension()||t.color()||t.variable()||t.property()||t.call()||t.quoted(!0)||t.colorKeyword()||t.mixinLookup();return e&&(i.parensInOp=!0,i=new be.Negative(i)),i},expression:function(){var e,t,i=[],n=o.i;do{(e=this.comment())?i.push(e):(e=this.addition()||this.entity())&&(i.push(e),o.peek(/^\/[\/*]/)||(t=o.$char("/"))&&i.push(new be.Anonymous(t,n)))}while(e);if(i.length>0)return new be.Expression(i)},property:function(){var e=o.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){var e,t,i=[],n=[];o.save();var s=o.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(s)return i=[new be.Keyword(s[1])],o.forget(),i;function a(e){var t=o.i,r=o.$re(e);if(r)return n.push(t),i.push(r[1])}for(a(/^(\*?)/);a(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/););if(i.length>1&&a(/^((?:\+_|\+)?)\s*:/)){for(o.forget(),""===i[0]&&(i.shift(),n.shift()),t=0;t<i.length;t++)e=i[t],i[t]="@"!==e.charAt(0)&&"$"!==e.charAt(0)?new be.Keyword(e):"@"===e.charAt(0)?new be.Variable("@"+e.slice(2,-1),n[t],r):new be.Property("$"+e.slice(2,-1),n[t],r);return i}o.restore()}}}};Fe.serializeVars=function(e){var t="";for(var i in e)if(Object.hasOwnProperty.call(e,i)){var n=e[i];t+=("@"===i[0]?"":"@")+i+": "+n+(";"===String(n).slice(-1)?"":";")}return t};var Le,De,Be=function(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)},Ue=function(e,t){return!t&&Le||(Le=new Be(e)),Le};Be.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},Be.prototype.addPlugin=function(e,t,i){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,i||this.less.functions.functionRegistry)},Be.prototype.get=function(e){return this.pluginCache[e]},Be.prototype.addVisitor=function(e){this.visitors.push(e)},Be.prototype.addPreProcessor=function(e,t){var i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=t);i++);this.preProcessors.splice(i,0,{preProcessor:e,priority:t})},Be.prototype.addPostProcessor=function(e,t){var i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=t);i++);this.postProcessors.splice(i,0,{postProcessor:e,priority:t})},Be.prototype.addFileManager=function(e){this.fileManagers.push(e)},Be.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},Be.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},Be.prototype.getVisitors=function(){return this.visitors},Be.prototype.visitor=function(){var e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}},Be.prototype.getFileManagers=function(){return this.fileManagers};var je=function(e,t){this.fileManagers=t||[],e=e||{};for(var i=[],n=i.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]),r=0;r<n.length;r++){var s=n[r],o=e[s];o?this[s]=o.bind(e):r<i.length&&this.warn("missing required function in environment - "+s)}};je.prototype.getFileManager=function(e,t,i,n,s){e||r.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&r.warn("getFileManager called with null directory.. Please report this issue. continuing.");var o=this.fileManagers;i.pluginManager&&(o=[].concat(o).concat(i.pluginManager.getFileManagers()));for(var a=o.length-1;a>=0;a--){var l=o[a];if(l[s?"supportsSync":"supports"](e,t,i,n))return l}return null},je.prototype.addFileManager=function(e){this.fileManagers.push(e)},je.prototype.clearFileManagers=function(){this.fileManagers=[]};var Ne=function(){};Ne.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},Ne.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},Ne.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},Ne.prototype.supportsSync=function(){return!1},Ne.prototype.alwaysMakePathsAbsolute=function(){return!1},Ne.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},Ne.prototype.join=function(e,t){return e?e+t:t},Ne.prototype.pathDiff=function(e,t){var i,n,r,s,o=this.extractUrlParts(e),a=this.extractUrlParts(t),l="";if(o.hostPart!==a.hostPart)return"";for(n=Math.max(a.directories.length,o.directories.length),i=0;i<n&&a.directories[i]===o.directories[i];i++);for(s=a.directories.slice(i),r=o.directories.slice(i),i=0;i<s.length-1;i++)l+="../";for(i=0;i<r.length-1;i++)l+=r[i]+"/";return l},Ne.prototype.extractUrlParts=function(e,t){var i,n,r=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,s=e.match(r),o={},a=[],l=[];if(!s)throw new Error("Could not parse sheet href - '"+e+"'");if(t&&(!s[1]||s[2])){if(!(n=t.match(r)))throw new Error("Could not parse page url - '"+t+"'");s[1]=s[1]||n[1]||"",s[2]||(s[3]=n[3]+s[3])}if(s[3])for(a=s[3].replace(/\\/g,"/").split("/"),i=0;i<a.length;i++)".."===a[i]?l.pop():"."!==a[i]&&l.push(a[i]);return o.hostPart=s[1],o.directories=l,o.rawPath=(s[1]||"")+a.join("/"),o.path=(s[1]||"")+l.join("/"),o.filename=s[4],o.fileUrl=o.path+(s[4]||""),o.url=o.fileUrl+(s[5]||""),o};var qe=function(){this.require=function(){return null}};qe.prototype.evalPlugin=function(e,t,i,n,r){var s,o,a,l,u,h;l=t.pluginManager,r&&(u="string"==typeof r?r:r.filename);var c=(new this.less.FileManager).extractUrlParts(u).filename;if(u&&(o=l.get(u))){if(h=this.trySetOptions(o,u,c,n))return h;try{o.use&&o.use.call(this.context,o)}catch(e){return e.message=e.message||"Error during @plugin call",new U(e,i,u)}return o}a={exports:{},pluginManager:l,fileInfo:r},s=A.create();try{new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e)(a,this.require(u),function(e){o=e},s,this.less.tree,this.less,r)}catch(e){return new U(e,i,u)}if(o||(o=a.exports),(o=this.validatePlugin(o,u,c))instanceof U)return o;if(!o)return new U({message:"Not a valid plugin"},i,u);if(o.imports=i,o.filename=u,(!o.minVersion||this.compareVersion("3.0.0",o.minVersion)<0)&&(h=this.trySetOptions(o,u,c,n)))return h;if(l.addPlugin(o,r.filename,s),o.functions=s.getLocalFunctions(),h=this.trySetOptions(o,u,c,n))return h;try{o.use&&o.use.call(this.context,o)}catch(e){return e.message=e.message||"Error during @plugin call",new U(e,i,u)}return o},qe.prototype.trySetOptions=function(e,t,i,n){if(n&&!e.setOptions)return new U({message:"Options have been provided but the plugin "+i+" does not support any options."});try{e.setOptions&&e.setOptions(n)}catch(e){return new U(e)}},qe.prototype.validatePlugin=function(e,t,i){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new U({message:"Plugin "+i+" requires version "+this.versionToString(e.minVersion)}):e):null},qe.prototype.compareVersion=function(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(var i=0;i<e.length;i++)if(e[i]!==t[i])return parseInt(e[i])>parseInt(t[i])?-1:1;return 0},qe.prototype.versionToString=function(e){for(var t="",i=0;i<e.length;i++)t+=(t?".":"")+e[i];return t},qe.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var i=e[t];i.printUsage&&i.printUsage()}};var ze=Object.freeze({colors:f,unitConversions:h});const Te=new function(e,t){var i,s,o,a,l,u,h,c,f,v,d,b,w={version:[3,8,1],data:ze,tree:be,Environment:l=je,AbstractFileManager:Ne,AbstractPluginLoader:qe,environment:e=new l(e,void 0),visitors:Ve,Parser:Fe,functions:(b={functionRegistry:A,functionCaller:y},function(e){var t=k,i=_,s=n,o=function(e,t){return new i(t,e.index,e.currentFileInfo).eval(e.context)},a=r;A.add("data-uri",function(n,r){r||(r=n,n=null);var l=n&&n.value,u=r.value,h=this.currentFileInfo,c=h.rewriteUrls?h.currentDirectory:h.entryPath,f=u.indexOf("#"),p="";-1!==f&&(p=u.slice(f),u=u.slice(0,f));var v=s.clone(this.context);v.rawBuffer=!0;var d=e.getFileManager(u,c,v,e,!0);if(!d)return o(this,r);var m=!1;if(n)m=/;base64$/.test(l);else{if("image/svg+xml"===(l=e.mimeLookup(u)))m=!1;else{var g=e.charsetLookup(l);m=["US-ASCII","UTF-8"].indexOf(g)<0}m&&(l+=";base64")}var y=d.loadFileSync(u,c,v,e);if(!y.contents)return a.warn("Skipped data-uri embedding of "+u+" because file not found"),o(this,r||n);var b=y.contents;if(m&&!e.encodeBase64)return o(this,r);var w="data:"+l+","+(b=m?e.encodeBase64(b):encodeURIComponent(b))+p;return w.length>=32768&&!1!==this.context.ieCompat?(a.warn("Skipped data-uri embedding of "+u+" because its size ("+w.length+" characters) exceeds IE8-safe 32768 characters!"),o(this,r||n)):new i(new t('"'+w+'"',w,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}(e),h=m,c=p,f=g,v=k,d=_,A.add("svg-gradient",function(e){var t,i,n,r,s,o,a,l,u="linear",p='x="0" y="0" width="1" height="1"',m={compress:!1},g=e.toCSS(m);function y(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&y(),t=arguments[1].value):arguments.length<3?y():t=Array.prototype.slice.call(arguments,1),g){case"to bottom":i='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":i='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":i='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":i='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":u="radial",i='cx="50%" cy="50%" r="75%"',p='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(n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'+u+'Gradient id="g" '+i+">",r=0;r<t.length;r+=1)t[r]instanceof f?(s=t[r].value[0],o=t[r].value[1]):(s=t[r],o=void 0),s instanceof c&&((0===r||r+1===t.length)&&void 0===o||o instanceof h)||y(),a=o?o.toCSS(m):0===r?"0%":"100%",l=s.alpha,n+='<stop offset="'+a+'" stop-color="'+s.toRGB()+'"'+(l<1?' stop-opacity="'+l+'"':"")+"/>";return n+="</"+u+"Gradient><rect "+p+' fill="url(#g)" /></svg>',n=encodeURIComponent(n),new d(new v("'"+(n="data:image/svg+xml,"+n)+"'",n,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}),b),contexts:q,SourceMapOutput:i=function(e){var t=function(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0};return t.prototype.removeBasepath=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e},t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,i,n){if(e){var r,s,o,a,l;if(t&&t.filename){var u=this._contentsMap[t.filename];this._contentsIgnoredCharsMap[t.filename]&&((i-=this._contentsIgnoredCharsMap[t.filename])<0&&(i=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),a=(s=(u=u.substring(0,i)).split("\n"))[s.length-1]}if(o=(r=e.split("\n"))[r.length-1],t&&t.filename)if(n)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)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.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 n,r=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?n=this.sourceMapURL:this._sourceMapFilename&&(n=this._sourceMapFilename),this.sourceMapURL=n,this.sourceMap=r}return this._css.join("")},t}(e),SourceMapBuilder:s=function(e,t){var i=function(e){this.options=e};return i.prototype.toCSS=function(t,i,n){var r=new e({contentsIgnoredCharsMap:n.contentsIgnoredChars,rootNode:t,contentsMap:n.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline}),s=r.toCSS(i);return this.sourceMap=r.sourceMap,this.sourceMapURL=r.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=r.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=r.removeBasepath(this.sourceMapURL)),s+this.getCSSAppendage()},i.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return e?"/*# sourceMappingURL="+e+" */":""},i.prototype.getExternalSourceMap=function(){return this.sourceMap},i.prototype.setExternalSourceMap=function(e){this.sourceMap=e},i.prototype.isInline=function(){return this.options.sourceMapFileInline},i.prototype.getSourceMapURL=function(){return this.sourceMapURL},i.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},i.prototype.getInputFilename=function(){return this.sourceMapInputFilename},i}(i,e),ParseTree:o=function(e){var t=function(e,t){this.root=e,this.imports=t};return t.prototype.toCSS=function(t){var i,n,s={};try{i=$e(this.root,t)}catch(e){throw new U(e,this.imports)}try{var o=Boolean(t.compress);o&&r.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var a={compress:o,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};t.sourceMap?(n=new e(t.sourceMap),s.css=n.toCSS(i,a,this.imports)):s.css=i.toCSS(a)}catch(e){throw new U(e,this.imports)}if(t.pluginManager)for(var l=t.pluginManager.getPostProcessors(),u=0;u<l.length;u++)s.css=l[u].process(s.css,{sourceMap:n,options:t,imports:this.imports});for(var h in t.sourceMap&&(s.map=n.getExternalSourceMap()),s.imports=[],this.imports.files)this.imports.files.hasOwnProperty(h)&&h!==this.imports.rootFilename&&s.imports.push(h);return s},t}(s),ImportManager:a=function(e){var t=function(e,t,i){this.less=e,this.rootFilename=i.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}};return t.prototype.push=function(t,i,s,o,a){var l=this,u=this.context.pluginManager.Loader;this.queue.push(t);var h=function(e,i,n){l.queue.splice(l.queue.indexOf(t),1);var s=n===l.rootFilename;o.optional&&e?(a(null,{rules:[]},!1,null),r.info("The file "+n+" was skipped because it was not found and the import was marked optional.")):(l.files[n]||o.inline||(l.files[n]={root:i,options:o}),e&&!l.error&&(l.error=e),a(e,i,s,n))},c={rewriteUrls:this.context.rewriteUrls,entryPath:s.entryPath,rootpath:s.rootpath,rootFilename:s.rootFilename},f=e.getFileManager(t,s.currentDirectory,this.context,e);if(f){var p,v=function(e){var t,i=e.filename,n=e.contents.replace(/^\uFEFF/,"");c.currentDirectory=f.getPath(i),c.rewriteUrls&&(c.rootpath=f.join(l.context.rootpath||"",f.pathDiff(c.currentDirectory,c.entryPath)),!f.isPathAbsolute(c.rootpath)&&f.alwaysMakePathsAbsolute()&&(c.rootpath=f.join(c.entryPath,c.rootpath))),c.filename=i;var r=new q.Parse(l.context);r.processImports=!1,l.contents[i]=n,(s.reference||o.reference)&&(c.reference=!0),o.isPlugin?(t=u.evalPlugin(n,r,l,o.pluginArgs,c))instanceof U?h(t,null,i):h(null,t,i):o.inline?h(null,n,i):!l.files[i]||l.files[i].options.multiple||o.multiple?new Fe(r,l,c).parse(n,function(e,t){h(e,t,i)}):h(null,l.files[i].root,i)},d=n.clone(this.context);i&&(d.ext=o.isPlugin?".js":".less"),(p=o.isPlugin?u.loadPlugin(t,s.currentDirectory,d,e,f):f.loadFile(t,s.currentDirectory,d,e,function(e,t){e?h(e):v(t)}))&&p.then(v,h)}else h({message:"Could not find a file-manager for "+t})},t}(e),render:function(e,t,i){var r=function(e,i,s){if("function"==typeof i?(s=i,i=n.copyOptions(this.options,{})):i=n.copyOptions(this.options,i||{}),!s){Oe||(Oe="undefined"==typeof Promise?null:Promise);var o=this;return new Oe(function(t,n){r.call(o,e,i,function(e,i){e?n(e):t(i)})})}this.parse(e,i,function(e,i,n,r){if(e)return s(e);var o;try{o=new t(i,n).toCSS(r)}catch(e){return s(e)}s(null,o)})};return r}(0,o),parse:function(e,t,i){var r=function(e,t,s){if("function"==typeof t?(s=t,t=n.copyOptions(this.options,{})):t=n.copyOptions(this.options,t||{}),!s){De||(De="undefined"==typeof Promise?null:Promise);var o=this;return new De(function(i,n){r.call(o,e,t,function(e,t){e?n(e):i(t)})})}var a,l,u=new Ue(this,!t.reUsePluginManager);if(t.pluginManager=u,a=new q.Parse(t),t.rootFileInfo)l=t.rootFileInfo;else{var h=t.filename||"input",c=h.replace(/[^\/\\]*$/,"");(l={filename:h,rewriteUrls:a.rewriteUrls,rootpath:a.rootpath||"",currentDirectory:c,entryPath:c,rootFilename:h}).rootpath&&"/"!==l.rootpath.slice(-1)&&(l.rootpath+="/")}var f=new i(this,a,l);this.importManager=f,t.plugins&&t.plugins.forEach(function(e){var t,i;if(e.fileContent){if(i=e.fileContent.replace(/^\uFEFF/,""),(t=u.Loader.evalPlugin(i,a,f,e.options,e.filename))instanceof U)return s(t)}else u.addPlugin(e)}),new Fe(a,f,l).parse(e,function(e,i){if(e)return s(e);s(null,i,f,t)},t)};return r}(0,0,a),LessError:U,transformTree:$e,utils:n,PluginManager:Ue,logger:r},x=function(e){return function(){var t=Object.create(e.prototype);return e.apply(t,Array.prototype.slice.call(arguments,0)),t}},S=Object.create(w);for(var I in w.tree)if("function"==typeof(u=w.tree[I]))S[I.toLowerCase()]=x(u);else for(var C in S[I]=Object.create(null),u)S[I][C.toLowerCase()]=x(u[C]);return S};return Te.PluginLoader=function(){},Te.options={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,ieCompat:!1,math:0,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""},Te}();