2 lines
143 KiB
JavaScript
2 lines
143 KiB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
|
|
(()=>{var e={854:(e,t,n)=>{e.exports=function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};t[s][0].call(l.exports,(function(e){return r(t[s][1][e]||e)}),l,l.exports,e,t,n,i)}return n[s].exports}for(var o=void 0,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){var i=e("./utils").addDataAttr,r=e("./browser");t.exports=function(e,t){i(t,r.currentScript(e)),void 0===t.isFileProtocol&&(t.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),t.async=t.async||!1,t.fileAsync=t.fileAsync||!1,t.poll=t.poll||(t.isFileProtocol?1e3:1500),t.env=t.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||t.isFileProtocol?"development":"production");var n=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);n&&(t.dumpLineNumbers=n[1]),void 0===t.useFileCache&&(t.useFileCache=!0),void 0===t.onReady&&(t.onReady=!0)}},{"./browser":3,"./utils":10}],2:[function(e,t,n){function i(e){e.filename&&console.warn(e),r.async||s.removeChild(a)}e("promise/polyfill.js");var r=window.less||{};e("./add-default-options")(window,r);var o,s,a,u=t.exports=e("./index")(window,r);window.less=u,r.onReady&&(/!watch/.test(window.location.hash)&&u.watch(),r.async||(o="body { display: none !important }",s=document.head||document.getElementsByTagName("head")[0],(a=document.createElement("style")).type="text/css",a.styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o)),s.appendChild(a)),u.registerStylesheetsImmediately(),u.pageLoadFinished=u.refresh("development"===u.env).then(i,i))},{"./add-default-options":1,"./index":8,"promise/polyfill.js":97}],3:[function(e,t,n){var i=e("./utils");t.exports={createCSS:function(e,t,n){var r=n.href||"",o="less:"+(n.title||i.extractId(r)),s=e.getElementById(o),a=!1,u=e.createElement("style");u.setAttribute("type","text/css"),n.media&&u.setAttribute("media",n.media),u.id=o,u.styleSheet||(u.appendChild(e.createTextNode(t)),a=null!==s&&s.childNodes.length>0&&u.childNodes.length>0&&s.firstChild.nodeValue===u.firstChild.nodeValue);var l=e.getElementsByTagName("head")[0];if(null===s||!1===a){var c=n&&n.nextSibling||null;c?c.parentNode.insertBefore(u,c):l.appendChild(u)}if(s&&!1===a&&s.parentNode.removeChild(s),u.styleSheet)try{u.styleSheet.cssText=t}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(e){var t=e.document;return t.currentScript||function(){var e=t.getElementsByTagName("script");return e[e.length-1]}()}}},{"./utils":10}],4:[function(e,t,n){t.exports=function(e,t,n){var i=null;if("development"!==t.env)try{i=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,r,o){if(i){n.info("saving "+e+" to cache.");try{i.setItem(e,o),i.setItem(e+":timestamp",t),r&&i.setItem(e+":vars",JSON.stringify(r))}catch(t){n.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,n){var r=i&&i.getItem(e),o=i&&i.getItem(e+":timestamp"),s=i&&i.getItem(e+":vars");if(n=n||{},o&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(o).valueOf()&&(!n&&!s||JSON.stringify(n)===s))return r}}}},{}],5:[function(e,t,n){var i=e("./utils"),r=e("./browser");t.exports=function(e,t,n){function o(t,o){var s,a,u="less-error-message:"+i.extractId(o||""),l=e.document.createElement("div"),c=[],h=t.filename||o,f=h.match(/([^\/]+(\?.*)?)$/)[1];l.id=u,l.className="less-error-message",a="<h3>"+(t.type||"Syntax")+"Error: "+(t.message||"There is an error in your .less file")+'</h3><p>in <a href="'+h+'">'+f+"</a> ";var p=function(e,t,n){void 0!==e.extract[t]&&c.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};t.extract&&(p(t,0,""),p(t,1,"line"),p(t,2,""),a+="on line "+t.line+", column "+(t.column+1)+":</p><ul>"+c.join("")+"</ul>"),t.stack&&(t.extract||n.logLevel>=4)&&(a+="<br/>Stack Trace</br />"+t.stack.split("\n").slice(1).join("<br/>")),l.innerHTML=a,r.createCSS(e.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),l.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===n.env&&(s=setInterval((function(){var t=e.document,n=t.body;n&&(t.getElementById(u)?n.replaceChild(l,t.getElementById(u)):n.insertBefore(l,n.firstChild),clearInterval(s))}),10))}function s(t){var n=e.document.getElementById("less-error-message:"+i.extractId(t));n&&n.parentNode.removeChild(n)}function a(e,i){var r=e.filename||i,o=[],s=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+r+" ",a=function(e,t,n){void 0!==e.extract[t]&&o.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.extract&&(a(e,0,""),a(e,1,"line"),a(e,2,""),s+="on line "+e.line+", column "+(e.column+1)+":\n"+o.join("\n")),e.stack&&(e.extract||n.logLevel>=4)&&(s+="\nStack Trace\n"+e.stack),t.logger.error(s)}return{add:function(e,t){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting?a(e,t):"function"==typeof n.errorReporting&&n.errorReporting("add",e,t):o(e,t)},remove:function(e){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting||"function"==typeof n.errorReporting&&n.errorReporting("remove",e):s(e)}}}},{"./browser":3,"./utils":10}],6:[function(e,t,n){t.exports=function(t,n){var i=e("../less/environment/abstract-file-manager.js"),r={},o=function(){};return(o.prototype=new i).alwaysMakePathsAbsolute=function(){return!0},o.prototype.join=function(e,t){return e?this.extractUrlParts(t,e).path:t},o.prototype.doXHR=function(e,i,r,o){function s(t,n,i){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}var a=function(){if(window.XMLHttpRequest&&("file:"!==window.location.protocol||!("ActiveXObject"in window)))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return n.error("browser doesn't support AJAX."),null}}(),u=!t.isFileProtocol||t.fileAsync;"function"==typeof a.overrideMimeType&&a.overrideMimeType("text/css"),n.debug("XHR: Getting '"+e+"'"),a.open("GET",e,u),a.setRequestHeader("Accept",i||"text/x-less, text/css; q=0.9, */*; q=0.5"),a.send(null),t.isFileProtocol&&!t.fileAsync?0===a.status||a.status>=200&&a.status<300?r(a.responseText):o(a.status,e):u?a.onreadystatechange=function(){4==a.readyState&&s(a,r,o)}:s(a,r,o)},o.prototype.supports=function(e,t,n,i){return!0},o.prototype.clearFileCache=function(){r={}},o.prototype.loadFile=function(e,t,n,i,o){t&&!this.isPathAbsolute(e)&&(e=t+e),n=n||{};var s=this.extractUrlParts(e,window.location.href).url;if(n.useFileCache&&r[s])try{var a=r[s];o(null,{contents:a,filename:s,webInfo:{lastModified:new Date}})}catch(e){o({filename:s,message:"Error loading file "+s+" error was "+e.message})}else this.doXHR(s,n.mime,(function(e,t){r[s]=e,o(null,{contents:e,filename:s,webInfo:{lastModified:t}})}),(function(e,t){o({type:"File",message:"'"+t+"' wasn't found ("+e+")",href:s})}))},o}},{"../less/environment/abstract-file-manager.js":15}],7:[function(e,t,n){t.exports=function(){function t(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var n={"image-size":function(e){return t(),-1},"image-width":function(e){return t(),-1},"image-height":function(e){return t(),-1}};e("./../less/functions/function-registry").addMultiple(n)}},{"./../less/functions/function-registry":22}],8:[function(e,t,n){var i=e("./utils").addDataAttr,r=e("./browser");t.exports=function(t,n){function o(e){return n.postProcessor&&"function"==typeof n.postProcessor&&(e=n.postProcessor.call(e,e)||e),e}function s(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var i=n.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,i)}}function u(e){for(var t,i=h.getElementsByTagName("style"),r=0;r<i.length;r++)if((t=i[r]).type.match(y)){var o=s(n);o.modifyVars=e;var u=t.innerHTML||"";o.filename=h.location.href.replace(/#.*$/,""),f.render(u,o,a((function(e,t,n){t?m.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=n.css:e.innerHTML=n.css)}),null,t))}}function l(e,t,r,a,u){function l(n){var i=n.contents,s=n.filename,u=n.webInfo,l={currentDirectory:v.getPath(s),filename:s,rootFilename:s,relativeUrls:c.relativeUrls};if(l.entryPath=l.currentDirectory,l.rootpath=c.rootpath||l.currentDirectory,u){u.remaining=a;var h=g.getCSS(s,u,c.modifyVars);if(!r&&h)return u.local=!0,void t(null,h,i,e,u,s)}m.remove(s),c.rootFileInfo=l,f.render(i,c,(function(n,r){n?(n.href=s,t(n)):(r.css=o(r.css),g.setCSS(e.href,u.lastModified,c.modifyVars,r.css),t(null,r.css,i,e,u,s))}))}var c=s(n);i(c,e),c.mime=e.type,u&&(c.modifyVars=u),v.loadFile(e.href,null,c,p,(function(e,n){return e?void t(e):void l(n)}))}function c(e,t,n){for(var i=0;i<f.sheets.length;i++)l(f.sheets[i],e,t,f.sheets.length-(i+1),n)}var h=t.document,f=e("../less")();f.options=n;var p=f.environment,d=e("./file-manager")(n,f.logger),v=new d;p.addFileManager(v),f.FileManager=d,e("./log-listener")(f,n);var m=e("./error-reporting")(t,f,n),g=f.cache=n.cache||e("./cache")(t,n,f.logger);e("./image-size")(f.environment),n.functions&&f.functions.functionRegistry.addMultiple(n.functions);var y=/^text\/(x-)?less$/;return f.watch=function(){return f.watchMode||(f.env="development","development"===f.env&&(f.watchTimer=setInterval((function(){f.watchMode&&(v.clearFileCache(),c((function(e,n,i,o,s){e?m.add(e,e.href||o.href):n&&r.createCSS(t.document,n,o)})))}),n.poll))),this.watchMode=!0,!0},f.unwatch=function(){return clearInterval(f.watchTimer),this.watchMode=!1,!1},f.registerStylesheetsImmediately=function(){var e=h.getElementsByTagName("link");f.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(y))&&f.sheets.push(e[t])},f.registerStylesheets=function(){return new Promise((function(e,t){f.registerStylesheetsImmediately(),e()}))},f.modifyVars=function(e){return f.refresh(!0,e,!1)},f.refresh=function(e,n,i){return(e||i)&&!1!==i&&v.clearFileCache(),new Promise((function(i,o){var s,a,l,h;s=a=new Date,0===(h=f.sheets.length)?(a=new Date,l=a-s,f.logger.info("Less has finished and no sheets were loaded."),i({startTime:s,endTime:a,totalMilliseconds:l,sheets:f.sheets.length})):c((function(e,n,u,c,p){return e?(m.add(e,e.href||c.href),void o(e)):(f.logger.info(p.local?"Loading "+c.href+" from cache.":"Rendered "+c.href+" successfully."),r.createCSS(t.document,n,c),f.logger.info("CSS for "+c.href+" generated in "+(new Date-a)+"ms"),0==--h&&(l=new Date-s,f.logger.info("Less has finished. CSS generated in "+l+"ms"),i({startTime:s,endTime:a,totalMilliseconds:l,sheets:f.sheets.length})),void(a=new Date))}),e,n),u(n)}))},f.refreshStyles=u,f}},{"../less":31,"./browser":3,"./cache":4,"./error-reporting":5,"./file-manager":6,"./image-size":7,"./log-listener":9,"./utils":10}],9:[function(e,t,n){t.exports=function(e,t){t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}}]);for(var n=0;n<t.loggers.length;n++)e.logger.addListener(t.loggers[n])}},{}],10:[function(e,t,n){t.exports={extractId:function(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")},addDataAttr:function(e,t){for(var n in t.dataset)if(t.dataset.hasOwnProperty(n))if("env"===n||"dumpLineNumbers"===n||"rootpath"===n||"errorReporting"===n)e[n]=t.dataset[n];else try{e[n]=JSON.parse(t.dataset[n])}catch(e){}}}},{}],11:[function(e,t,n){var i={};t.exports=i;var r=function(e,t,n){if(e)for(var i=0;i<n.length;i++)e.hasOwnProperty(n[i])&&(t[n[i]]=e[n[i]])},o=["paths","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];i.Parse=function(e){r(e,this,o),"string"==typeof this.paths&&(this.paths=[this.paths])};var s=["paths","compress","ieCompat","strictMath","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope"];i.Eval=function(e,t){r(e,this,s),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},i.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},i.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},i.Eval.prototype.isMathOn=function(){return!this.strictMath||this.parensStack&&this.parensStack.length},i.Eval.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)},i.Eval.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")}},{}],12:[function(e,t,n){t.exports={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"}},{}],13:[function(e,t,n){t.exports={colors:e("./colors"),unitConversions:e("./unit-conversions")}},{"./colors":12,"./unit-conversions":14}],14:[function(e,t,n){t.exports={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}}},{}],15:[function(e,t,n){var i=function(){};i.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)},i.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},i.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},i.prototype.supportsSync=function(){return!1},i.prototype.alwaysMakePathsAbsolute=function(){return!1},i.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},i.prototype.join=function(e,t){return e?e+t:t},i.prototype.pathDiff=function(e,t){var n,i,r,o,s=this.extractUrlParts(e),a=this.extractUrlParts(t),u="";if(s.hostPart!==a.hostPart)return"";for(i=Math.max(a.directories.length,s.directories.length),n=0;n<i&&a.directories[n]===s.directories[n];n++);for(o=a.directories.slice(n),r=s.directories.slice(n),n=0;n<o.length-1;n++)u+="../";for(n=0;n<r.length-1;n++)u+=r[n]+"/";return u},i.prototype.extractUrlParts=function(e,t){var n,i,r=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,o=e.match(r),s={},a=[];if(!o)throw new Error("Could not parse sheet href - '"+e+"'");if(t&&(!o[1]||o[2])){if(!(i=t.match(r)))throw new Error("Could not parse page url - '"+t+"'");o[1]=o[1]||i[1]||"",o[2]||(o[3]=i[3]+o[3])}if(o[3]){for(a=o[3].replace(/\\/g,"/").split("/"),n=0;n<a.length;n++)"."===a[n]&&(a.splice(n,1),n-=1);for(n=0;n<a.length;n++)".."===a[n]&&n>0&&(a.splice(n-1,2),n-=2)}return s.hostPart=o[1],s.directories=a,s.path=(o[1]||"")+a.join("/"),s.fileUrl=s.path+(o[4]||""),s.url=s.fileUrl+(o[5]||""),s},t.exports=i},{}],16:[function(e,t,n){var i=e("../logger"),r=function(e,t){this.fileManagers=t||[],e=e||{};for(var n=[],i=n.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]),r=0;r<i.length;r++){var o=i[r],s=e[o];s?this[o]=s.bind(e):r<n.length&&this.warn("missing required function in environment - "+o)}};r.prototype.getFileManager=function(e,t,n,r,o){e||i.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&i.warn("getFileManager called with null directory.. Please report this issue. continuing.");var s=this.fileManagers;n.pluginManager&&(s=[].concat(s).concat(n.pluginManager.getFileManagers()));for(var a=s.length-1;a>=0;a--){var u=s[a];if(u[o?"supportsSync":"supports"](e,t,n,r))return u}return null},r.prototype.addFileManager=function(e){this.fileManagers.push(e)},r.prototype.clearFileManagers=function(){this.fileManagers=[]},t.exports=r},{"../logger":33}],17:[function(e,t,n){function i(e,t,n){var i,o,s,a,u=t.alpha,l=n.alpha,c=[];s=l+u*(1-l);for(var h=0;h<3;h++)a=e(i=t.rgb[h]/255,o=n.rgb[h]/255),s&&(a=(l*o+u*(i-l*(i+o-a)))/s),c[h]=255*a;return new r(c,s)}var r=e("../tree/color"),o=e("./function-registry"),s={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?s.multiply(e,t):s.screen(e-1,t)},softlight:function(e,t){var n=1,i=e;return t>.5&&(i=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*i*(n-e)},hardlight:function(e,t){return s.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 a in s)s.hasOwnProperty(a)&&(i[a]=i.bind(null,s[a]));o.addMultiple(i)},{"../tree/color":50,"./function-registry":22}],18:[function(e,t,n){function i(e){return Math.min(1,Math.max(0,e))}function r(e){return s.hsla(e.h,e.s,e.l,e.a)}function o(e){if(e instanceof a)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"}}var s,a=e("../tree/dimension"),u=e("../tree/color"),l=e("../tree/quoted"),c=e("../tree/anonymous"),h=e("./function-registry");s={rgb:function(e,t,n){return s.rgba(e,t,n,1)},rgba:function(e,t,n,i){var r=[e,t,n].map((function(e){return function(e,t){return e instanceof a&&e.unit.is("%")?parseFloat(e.value*t/100):o(e)}(e,255)}));return i=o(i),new u(r,i)},hsl:function(e,t,n){return s.hsla(e,t,n,1)},hsla:function(e,t,n,r){function a(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?u+(l-u)*e*6:2*e<1?l:3*e<2?u+(l-u)*(2/3-e)*6:u}var u,l;return e=o(e)%360/360,t=i(o(t)),n=i(o(n)),r=i(o(r)),u=2*n-(l=n<=.5?n*(t+1):n+t-n*t),s.rgba(255*a(e+1/3),255*a(e),255*a(e-1/3),r)},hsv:function(e,t,n){return s.hsva(e,t,n,1)},hsva:function(e,t,n,i){var r,a;e=o(e)%360/360*360,t=o(t),n=o(n),i=o(i);var u=[n,n*(1-t),n*(1-(a=e/60-(r=Math.floor(e/60%6)))*t),n*(1-(1-a)*t)],l=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return s.rgba(255*u[l[r][0]],255*u[l[r][1]],255*u[l[r][2]],i)},hue:function(e){return new a(e.toHSL().h)},saturation:function(e){return new a(100*e.toHSL().s,"%")},lightness:function(e){return new a(100*e.toHSL().l,"%")},hsvhue:function(e){return new a(e.toHSV().h)},hsvsaturation:function(e){return new a(100*e.toHSV().s,"%")},hsvvalue:function(e){return new a(100*e.toHSV().v,"%")},red:function(e){return new a(e.rgb[0])},green:function(e){return new a(e.rgb[1])},blue:function(e){return new a(e.rgb[2])},alpha:function(e){return new a(e.toHSL().a)},luma:function(e){return new a(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 a(t*e.alpha*100,"%")},saturate:function(e,t,n){if(!e.rgb)return null;var o=e.toHSL();return o.s+=void 0!==n&&"relative"===n.value?o.s*t.value/100:t.value/100,o.s=i(o.s),r(o)},desaturate:function(e,t,n){var o=e.toHSL();return o.s-=void 0!==n&&"relative"===n.value?o.s*t.value/100:t.value/100,o.s=i(o.s),r(o)},lighten:function(e,t,n){var o=e.toHSL();return o.l+=void 0!==n&&"relative"===n.value?o.l*t.value/100:t.value/100,o.l=i(o.l),r(o)},darken:function(e,t,n){var o=e.toHSL();return o.l-=void 0!==n&&"relative"===n.value?o.l*t.value/100:t.value/100,o.l=i(o.l),r(o)},fadein:function(e,t,n){var o=e.toHSL();return o.a+=void 0!==n&&"relative"===n.value?o.a*t.value/100:t.value/100,o.a=i(o.a),r(o)},fadeout:function(e,t,n){var o=e.toHSL();return o.a-=void 0!==n&&"relative"===n.value?o.a*t.value/100:t.value/100,o.a=i(o.a),r(o)},fade:function(e,t){var n=e.toHSL();return n.a=t.value/100,n.a=i(n.a),r(n)},spin:function(e,t){var n=e.toHSL(),i=(n.h+t.value)%360;return n.h=i<0?360+i:i,r(n)},mix:function(e,t,n){e.toHSL&&t.toHSL||(console.log(t.type),console.dir(t)),n||(n=new a(50));var i=n.value/100,r=2*i-1,o=e.toHSL().a-t.toHSL().a,s=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,l=1-s,c=[e.rgb[0]*s+t.rgb[0]*l,e.rgb[1]*s+t.rgb[1]*l,e.rgb[2]*s+t.rgb[2]*l],h=e.alpha*i+t.alpha*(1-i);return new u(c,h)},greyscale:function(e){return s.desaturate(e,new a(100))},contrast:function(e,t,n,i){if(!e.rgb)return null;if(void 0===n&&(n=s.rgba(255,255,255,1)),void 0===t&&(t=s.rgba(0,0,0,1)),t.luma()>n.luma()){var r=n;n=t,t=r}return i=void 0===i?.43:o(i),e.luma()<i?n:t},argb:function(e){return new c(e.toARGB())},color:function(e){if(e instanceof l&&/^#([a-f0-9]{6}|[a-f0-9]{3})$/i.test(e.value))return new u(e.value.slice(1));if(e instanceof u||(e=u.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}},tint:function(e,t){return s.mix(s.rgb(255,255,255),e,t)},shade:function(e,t){return s.mix(s.rgb(0,0,0),e,t)}},h.addMultiple(s)},{"../tree/anonymous":46,"../tree/color":50,"../tree/dimension":56,"../tree/quoted":73,"./function-registry":22}],19:[function(e,t,n){t.exports=function(t){var n=e("../tree/quoted"),i=e("../tree/url"),r=e("./function-registry"),o=function(e,t){return new i(t,e.index,e.currentFileInfo).eval(e.context)},s=e("../logger");r.add("data-uri",(function(e,r){r||(r=e,e=null);var a=e&&e.value,u=r.value,l=this.currentFileInfo,c=l.relativeUrls?l.currentDirectory:l.entryPath,h=u.indexOf("#"),f="";-1!==h&&(f=u.slice(h),u=u.slice(0,h));var p=t.getFileManager(u,c,this.context,t,!0);if(!p)return o(this,r);var d=!1;if(e)d=/;base64$/.test(a);else{if("image/svg+xml"===(a=t.mimeLookup(u)))d=!1;else{var v=t.charsetLookup(a);d=["US-ASCII","UTF-8"].indexOf(v)<0}d&&(a+=";base64")}var m=p.loadFileSync(u,c,this.context,t);if(!m.contents)return s.warn("Skipped data-uri embedding of "+u+" because file not found"),o(this,r||e);var g=m.contents;if(d&&!t.encodeBase64)return o(this,r);var y="data:"+a+","+(g=d?t.encodeBase64(g):encodeURIComponent(g))+f;return y.length>=32768&&!1!==this.context.ieCompat?(s.warn("Skipped data-uri embedding of "+u+" because its size ("+y.length+" characters) exceeds IE8-safe 32768 characters!"),o(this,r||e)):new i(new n('"'+y+'"',y,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}))}},{"../logger":33,"../tree/quoted":73,"../tree/url":80,"./function-registry":22}],20:[function(e,t,n){var i=e("../tree/keyword"),r={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(null!=e)return e?i.True:i.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}};e("./function-registry").add("default",r.eval.bind(r)),t.exports=r},{"../tree/keyword":65,"./function-registry":22}],21:[function(e,t,n){var i=e("../tree/expression"),r=function(e,t,n,i){this.name=e.toLowerCase(),this.index=n,this.context=t,this.currentFileInfo=i,this.func=t.frames[0].functionRegistry.get(this.name)};r.prototype.isValid=function(){return Boolean(this.func)},r.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 i(t)}return e}))),this.func.apply(this,e)},t.exports=r},{"../tree/expression":59}],22:[function(e,t,n){t.exports=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)},inherit:function(){return e(this)}}}(null)},{}],23:[function(e,t,n){t.exports=function(t){var n={functionRegistry:e("./function-registry"),functionCaller:e("./function-caller")};return e("./default"),e("./color"),e("./color-blending"),e("./data-uri")(t),e("./math"),e("./number"),e("./string"),e("./svg")(t),e("./types"),n}},{"./color":18,"./color-blending":17,"./data-uri":19,"./default":20,"./function-caller":21,"./function-registry":22,"./math":25,"./number":26,"./string":27,"./svg":28,"./types":29}],24:[function(e,t,n){var i=e("../tree/dimension"),r=function(){};r._math=function(e,t,n){if(!(n instanceof i))throw{type:"Argument",message:"argument must be a number"};return null==t?t=n.unit:n=n.unify(),new i(e(parseFloat(n.value)),t)},t.exports=r},{"../tree/dimension":56}],25:[function(e,t,n){var i=e("./function-registry"),r=e("./math-helper.js"),o={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var s in o)o.hasOwnProperty(s)&&(o[s]=r._math.bind(null,Math[s],o[s]));o.round=function(e,t){var n=void 0===t?0:t.value;return r._math((function(e){return e.toFixed(n)}),null,e)},i.addMultiple(o)},{"./function-registry":22,"./math-helper.js":24}],26:[function(e,t,n){var i=e("../tree/dimension"),r=e("../tree/anonymous"),o=e("./function-registry"),s=e("./math-helper.js"),a=function(e,t){if(0===(t=Array.prototype.slice.call(t)).length)throw{type:"Argument",message:"one or more arguments required"};var n,o,s,a,u,l,c,h,f=[],p={};for(n=0;n<t.length;n++)if((s=t[n])instanceof i)if(c=""!==(l=""===(a=""===s.unit.toString()&&void 0!==h?new i(s.value,h).unify():s.unify()).unit.toString()&&void 0!==c?c:a.unit.toString())&&void 0===c||""!==l&&""===f[0].unify().unit.toString()?l:c,h=""!==l&&void 0===h?s.unit.toString():h,void 0!==(o=void 0!==p[""]&&""!==l&&l===c?p[""]:p[l]))u=""===f[o].unit.toString()&&void 0!==h?new i(f[o].value,h).unify():f[o].unify(),(e&&a.value<u.value||!e&&a.value>u.value)&&(f[o]=s);else{if(void 0!==c&&l!==c)throw{type:"Argument",message:"incompatible types"};p[l]=f.length,f.push(s)}else Array.isArray(t[n].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[n].value));return 1==f.length?f[0]:(t=f.map((function(e){return e.toCSS(this.context)})).join(this.context.compress?",":", "),new r((e?"min":"max")+"("+t+")"))};o.addMultiple({min:function(){return a(!0,arguments)},max:function(){return a(!1,arguments)},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new i(Math.PI)},mod:function(e,t){return new i(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new i(e),t=new i(t);else if(!(e instanceof i&&t instanceof i))throw{type:"Argument",message:"arguments must be numbers"};return new i(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return s._math((function(e){return 100*e}),"%",e)}})},{"../tree/anonymous":46,"../tree/dimension":56,"./function-registry":22,"./math-helper.js":24}],27:[function(e,t,n){var i=e("../tree/quoted"),r=e("../tree/anonymous"),o=e("../tree/javascript");e("./function-registry").addMultiple({e:function(e){return new r(e instanceof o?e.evaluated:e.value)},escape:function(e){return new r(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,n,r){var o=e.value;return n="Quoted"===n.type?n.value:n.toCSS(),o=o.replace(new RegExp(t.value,r?r.value:""),n),new i(e.quote||"",o,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=0;r<t.length;r++)n=n.replace(/%[sda]/i,(function(e){var n="Quoted"===t[r].type&&e.match(/s/i)?t[r].value:t[r].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(n):n}));return n=n.replace(/%%/g,"%"),new i(e.quote||"",n,e.escaped)}})},{"../tree/anonymous":46,"../tree/javascript":63,"../tree/quoted":73,"./function-registry":22}],28:[function(e,t,n){t.exports=function(t){var n=e("../tree/dimension"),i=e("../tree/color"),r=e("../tree/expression"),o=e("../tree/quoted"),s=e("../tree/url");e("./function-registry").add("svg-gradient",(function(e){function t(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}var a,u,l,c,h,f,p,d,v="linear",m='x="0" y="0" width="1" height="1"',g={compress:!1},y=e.toCSS(g);switch(2==arguments.length?(arguments[1].value.length<2&&t(),a=arguments[1].value):arguments.length<3?t():a=Array.prototype.slice.call(arguments,1),y){case"to bottom":u='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":u='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":u='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":u='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":v="radial",u='cx="50%" cy="50%" r="75%"',m='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(l='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+v+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+u+">",c=0;c<a.length;c+=1)a[c]instanceof r?(h=a[c].value[0],f=a[c].value[1]):(h=a[c],f=void 0),h instanceof i&&((0===c||c+1===a.length)&&void 0===f||f instanceof n)||t(),p=f?f.toCSS(g):0===c?"0%":"100%",d=h.alpha,l+='<stop offset="'+p+'" stop-color="'+h.toRGB()+'"'+(d<1?' stop-opacity="'+d+'"':"")+"/>";return l+="</"+v+"Gradient><rect "+m+' fill="url(#gradient)" /></svg>',l=encodeURIComponent(l),new s(new o("'"+(l="data:image/svg+xml,"+l)+"'",l,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}))}},{"../tree/color":50,"../tree/dimension":56,"../tree/expression":59,"../tree/quoted":73,"../tree/url":80,"./function-registry":22}],29:[function(e,t,n){var i=e("../tree/keyword"),r=e("../tree/detached-ruleset"),o=e("../tree/dimension"),s=e("../tree/color"),a=e("../tree/quoted"),u=e("../tree/anonymous"),l=e("../tree/url"),c=e("../tree/operation"),h=e("./function-registry"),f=function(e,t){return e instanceof t?i.True:i.False},p=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 o&&e.unit.is(t)?i.True:i.False},d=function(e){return Array.isArray(e.value)?e.value:Array(e)};h.addMultiple({isruleset:function(e){return f(e,r)},iscolor:function(e){return f(e,s)},isnumber:function(e){return f(e,o)},isstring:function(e){return f(e,a)},iskeyword:function(e){return f(e,i)},isurl:function(e){return f(e,l)},ispixel:function(e){return p(e,"px")},ispercentage:function(e){return p(e,"%")},isem:function(e){return p(e,"em")},isunit:p,unit:function(e,t){if(!(e instanceof o))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof c?". Have you forgotten parenthesis?":"")};return t=t?t instanceof i?t.value:t.toCSS():"",new o(e.value,t)},"get-unit":function(e){return new u(e.unit)},extract:function(e,t){return t=t.value-1,d(e)[t]},length:function(e){return new o(d(e).length)}})},{"../tree/anonymous":46,"../tree/color":50,"../tree/detached-ruleset":55,"../tree/dimension":56,"../tree/keyword":65,"../tree/operation":71,"../tree/quoted":73,"../tree/url":80,"./function-registry":22}],30:[function(e,t,n){var i=e("./contexts"),r=e("./parser/parser"),o=e("./plugins/function-importer");t.exports=function(e){var t=function(e,t){this.rootFilename=t.filename,this.paths=e.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=e.mime,this.error=null,this.context=e,this.queue=[],this.files={}};return t.prototype.push=function(t,n,s,a,u){var l=this;this.queue.push(t);var c=function(e,n,i){l.queue.splice(l.queue.indexOf(t),1);var r=i===l.rootFilename;a.optional&&e?u(null,{rules:[]},!1,null):(l.files[i]=n,e&&!l.error&&(l.error=e),u(e,n,r,i))},h={relativeUrls:this.context.relativeUrls,entryPath:s.entryPath,rootpath:s.rootpath,rootFilename:s.rootFilename},f=e.getFileManager(t,s.currentDirectory,this.context,e);if(f){n&&(t=f.tryAppendExtension(t,a.plugin?".js":".less"));var p=function(e){var t=e.filename,n=e.contents.replace(/^\uFEFF/,"");h.currentDirectory=f.getPath(t),h.relativeUrls&&(h.rootpath=f.join(l.context.rootpath||"",f.pathDiff(h.currentDirectory,h.entryPath)),!f.isPathAbsolute(h.rootpath)&&f.alwaysMakePathsAbsolute()&&(h.rootpath=f.join(h.entryPath,h.rootpath))),h.filename=t;var u=new i.Parse(l.context);u.processImports=!1,l.contents[t]=n,(s.reference||a.reference)&&(h.reference=!0),a.plugin?new o(u,h).eval(n,(function(e,n){c(e,n,t)})):a.inline?c(null,n,t):new r(u,l,h).parse(n,(function(e,n){c(e,n,t)}))},d=f.loadFile(t,s.currentDirectory,this.context,e,(function(e,t){e?c(e):p(t)}));d&&d.then(p,c)}else c({message:"Could not find a file-manager for "+t})},t}},{"./contexts":11,"./parser/parser":38,"./plugins/function-importer":40}],31:[function(e,t,n){t.exports=function(t,n){var i,r,o,s,a;return{version:[2,7,2],data:e("./data"),tree:e("./tree"),Environment:a=e("./environment/environment"),AbstractFileManager:e("./environment/abstract-file-manager"),environment:t=new a(t,n),visitors:e("./visitors"),Parser:e("./parser/parser"),functions:e("./functions")(t),contexts:e("./contexts"),SourceMapOutput:i=e("./source-map-output")(t),SourceMapBuilder:r=e("./source-map-builder")(i,t),ParseTree:o=e("./parse-tree")(r),ImportManager:s=e("./import-manager")(t),render:e("./render")(t,o,s),parse:e("./parse")(t,o,s),LessError:e("./less-error"),transformTree:e("./transform-tree"),utils:e("./utils"),PluginManager:e("./plugin-manager"),logger:e("./logger")}}},{"./contexts":11,"./data":13,"./environment/abstract-file-manager":15,"./environment/environment":16,"./functions":23,"./import-manager":30,"./less-error":32,"./logger":33,"./parse":35,"./parse-tree":34,"./parser/parser":38,"./plugin-manager":39,"./render":41,"./source-map-builder":42,"./source-map-output":43,"./transform-tree":44,"./tree":62,"./utils":83,"./visitors":87}],32:[function(e,t,n){var i=e("./utils"),r=t.exports=function(e,t,n){Error.call(this);var r=e.filename||n;if(t&&r){var o=t.contents[r],s=i.getLocation(e.index,o),a=s.line,u=s.column,l=e.call&&i.getLocation(e.call,o).line,c=o.split("\n");this.type=e.type||"Syntax",this.filename=r,this.index=e.index,this.line="number"==typeof a?a+1:null,this.callLine=l+1,this.callExtract=c[l],this.column=u,this.extract=[c[a-1],c[a],c[a+1]]}this.message=e.message,this.stack=e.stack};if(void 0===Object.create){var o=function(){};o.prototype=Error.prototype,r.prototype=new o}else r.prototype=Object.create(Error.prototype);r.prototype.constructor=r},{"./utils":83}],33:[function(e,t,n){t.exports={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 n=0;n<this._listeners.length;n++){var i=this._listeners[n][e];i&&i(t)}},_listeners:[]}},{}],34:[function(e,t,n){var i=e("./less-error"),r=e("./transform-tree"),o=e("./logger");t.exports=function(e){var t=function(e,t){this.root=e,this.imports=t};return t.prototype.toCSS=function(t){var n,s,a={};try{n=r(this.root,t)}catch(e){throw new i(e,this.imports)}try{var u=Boolean(t.compress);u&&o.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var l={compress:u,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};t.sourceMap?(s=new e(t.sourceMap),a.css=s.toCSS(n,l,this.imports)):a.css=n.toCSS(l)}catch(e){throw new i(e,this.imports)}if(t.pluginManager)for(var c=t.pluginManager.getPostProcessors(),h=0;h<c.length;h++)a.css=c[h].process(a.css,{sourceMap:s,options:t,imports:this.imports});for(var f in t.sourceMap&&(a.map=s.getExternalSourceMap()),a.imports=[],this.imports.files)this.imports.files.hasOwnProperty(f)&&f!==this.imports.rootFilename&&a.imports.push(f);return a},t}},{"./less-error":32,"./logger":33,"./transform-tree":44}],35:[function(e,t,n){var i,r=e("./contexts"),o=e("./parser/parser"),s=e("./plugin-manager");t.exports=function(t,n,a){var u=function(t,n,l){if("function"==typeof(n=n||{})&&(l=n,n={}),!l){i||(i="undefined"==typeof Promise?e("promise"):Promise);var c=this;return new i((function(e,i){u.call(c,t,n,(function(t,n){t?i(t):e(n)}))}))}var h,f,p=new s(this);if(p.addPlugins(n.plugins),n.pluginManager=p,h=new r.Parse(n),n.rootFileInfo)f=n.rootFileInfo;else{var d=n.filename||"input",v=d.replace(/[^\/\\]*$/,"");(f={filename:d,relativeUrls:h.relativeUrls,rootpath:h.rootpath||"",currentDirectory:v,entryPath:v,rootFilename:d}).rootpath&&"/"!==f.rootpath.slice(-1)&&(f.rootpath+="/")}var m=new a(h,f);new o(h,m,f).parse(t,(function(e,t){return e?l(e):void l(null,t,m,n)}),n)};return u}},{"./contexts":11,"./parser/parser":38,"./plugin-manager":39,promise:void 0}],36:[function(e,t,n){t.exports=function(e,t){function n(t){var n=a-m;n<512&&!t||!n||(v.push(e.slice(m,a+1)),m=a+1)}var i,r,o,s,a,u,l,c,h,f=e.length,p=0,d=0,v=[],m=0;for(a=0;a<f;a++)if(!((l=e.charCodeAt(a))>=97&&l<=122||l<34))switch(l){case 40:d++,r=a;continue;case 41:if(--d<0)return t("missing opening `(`",a);continue;case 59:d||n();continue;case 123:p++,i=a;continue;case 125:if(--p<0)return t("missing opening `{`",a);p||d||n();continue;case 92:if(a<f-1){a++;continue}return t("unescaped `\\`",a);case 34:case 39:case 96:for(h=0,u=a,a+=1;a<f;a++)if(!((c=e.charCodeAt(a))>96)){if(c==l){h=1;break}if(92==c){if(a==f-1)return t("unescaped `\\`",a);a++}}if(h)continue;return t("unmatched `"+String.fromCharCode(l)+"`",u);case 47:if(d||a==f-1)continue;if(47==(c=e.charCodeAt(a+1)))for(a+=2;a<f&&(!((c=e.charCodeAt(a))<=13)||10!=c&&13!=c);a++);else if(42==c){for(o=u=a,a+=2;a<f-1&&(125==(c=e.charCodeAt(a))&&(s=a),42!=c||47!=e.charCodeAt(a+1));a++);if(a==f-1)return t("missing closing `*/`",u);a++}continue;case 42:if(a<f-1&&47==e.charCodeAt(a+1))return t("unmatched `/*`",a);continue}return 0!==p?t(o>i&&s>o?"missing closing `}` or `*/`":"missing closing `}`",i):0!==d?t("missing closing `)`",r):(n(!0),v)}},{}],37:[function(e,t,n){var i=e("./chunker");t.exports=function(){function e(i){for(var r,o,l,m=c.i,g=n,y=c.i-u,b=c.i+a.length-y,w=c.i+=i,x=t;c.i<b;c.i++){if(r=x.charCodeAt(c.i),c.autoCommentAbsorb&&r===v){if("/"===(o=x.charAt(c.i+1))){l={index:c.i,isLineComment:!0};var S=x.indexOf("\n",c.i+2);S<0&&(S=b),c.i=S,l.text=x.substr(l.index,c.i-l.index),c.commentStore.push(l);continue}if("*"===o){var C=x.indexOf("*/",c.i+2);if(C>=0){l={index:c.i,text:x.substr(c.i,C+2-c.i),isLineComment:!1},c.i+=l.text.length-1,c.commentStore.push(l);continue}}break}if(r!==h&&r!==p&&r!==f&&r!==d)break}if(a=a.slice(i+c.i-w+y),u=c.i,!a.length){if(n<s.length-1)return a=s[++n],e(0),!0;c.finished=!0}return m!==c.i||g!==n}var t,n,r,o,s,a,u,l=[],c={},h=32,f=9,p=10,d=13,v=47;return c.save=function(){u=c.i,l.push({current:a,i:c.i,j:n})},c.restore=function(e){(c.i>r||c.i===r&&e&&!o)&&(r=c.i,o=e);var t=l.pop();a=t.current,u=c.i=t.i,n=t.j},c.forget=function(){l.pop()},c.isWhitespace=function(e){var n=c.i+(e||0),i=t.charCodeAt(n);return i===h||i===d||i===f||i===p},c.$re=function(t){c.i>u&&(a=a.slice(c.i-u),u=c.i);var n=t.exec(a);return n?(e(n[0].length),"string"==typeof n?n:1===n.length?n[0]:n):null},c.$char=function(n){return t.charAt(c.i)!==n?null:(e(1),n)},c.$str=function(n){for(var i=n.length,r=0;r<i;r++)if(t.charAt(c.i+r)!==n.charAt(r))return null;return e(i),n},c.$quoted=function(){var n=t.charAt(c.i);if("'"===n||'"'===n){for(var i=t.length,r=c.i,o=1;o+r<i;o++)switch(t.charAt(o+r)){case"\\":o++;continue;case"\r":case"\n":break;case n:var s=t.substr(r,o+1);return e(o+1),s}return null}},c.autoCommentAbsorb=!0,c.commentStore=[],c.finished=!1,c.peek=function(e){if("string"==typeof e){for(var n=0;n<e.length;n++)if(t.charAt(c.i+n)!==e.charAt(n))return!1;return!0}return e.test(a)},c.peekChar=function(e){return t.charAt(c.i)===e},c.currentChar=function(){return t.charAt(c.i)},c.getInput=function(){return t},c.peekNotNumeric=function(){var e=t.charCodeAt(c.i);return e>57||e<43||e===v||44===e},c.start=function(o,l,h){t=o,c.i=n=u=r=0,s=l?i(o,h):[o],a=s[0],e(0)},c.end=function(){var e,n=c.i>=t.length;return c.i<r&&(e=o,c.i=r),{isFinished:n,furthest:c.i,furthestPossibleErrorMessage:e,furthestReachedEnd:c.i>=t.length-1,furthestChar:t[c.i]}},c}},{"./chunker":36}],38:[function(e,t,n){var i=e("../less-error"),r=e("../tree"),o=e("../visitors"),s=e("./parser-input"),a=e("../utils"),u=function e(t,n,u){function l(e,t){throw new i({index:d.i,filename:u.filename,type:t||"Syntax",message:e},n)}function c(e,t,n){return(e instanceof Function?e.call(p):d.$re(e))||void l(t||("string"==typeof e?"expected '"+e+"' got '"+d.currentChar()+"'":"unexpected token"))}function h(e,t){return d.$char(e)?e:void l(t||"expected '"+e+"' got '"+d.currentChar()+"'")}function f(e){var t=u.filename;return{lineNumber:a.getLocation(e,d.getInput()).line+1,fileName:t}}var p,d=s();return{parse:function(s,a,l){var c,h,f,p,v=null,m="";if(h=l&&l.globalVars?e.serializeVars(l.globalVars)+"\n":"",f=l&&l.modifyVars?"\n"+e.serializeVars(l.modifyVars):"",t.pluginManager)for(var g=t.pluginManager.getPreProcessors(),y=0;y<g.length;y++)s=g[y].process(s,{context:t,imports:n,fileInfo:u});(h||l&&l.banner)&&(m=(l&&l.banner?l.banner:"")+h,(p=n.contentsIgnoredChars)[u.filename]=p[u.filename]||0,p[u.filename]+=m.length),s=m+(s=s.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+f,n.contents[u.filename]=s;try{d.start(s,t.chunkInput,(function(e,t){throw new i({index:t,type:"Parse",message:e,filename:u.filename},n)})),(c=new r.Ruleset(null,this.parsers.primary())).root=!0,c.firstRoot=!0}catch(e){return a(new i(e,n,u.filename))}var b=d.end();if(!b.isFinished){var w=b.furthestPossibleErrorMessage;w||(w="Unrecognised input","}"===b.furthestChar?w+=". Possibly missing opening '{'":")"===b.furthestChar?w+=". Possibly missing opening '('":b.furthestReachedEnd&&(w+=". Possibly missing something")),v=new i({type:"Parse",message:w,index:b.furthest,filename:u.filename},n)}var x=function(e){return(e=v||e||n.error)?(e instanceof i||(e=new i(e,n,u.filename)),a(e)):a(null,c)};return!1===t.processImports?x():void new o.ImportVisitor(n,x).run(c)},parsers:p={primary:function(){for(var e,t=this.mixin,n=[];;){for(;e=this.comment();)n.push(e);if(d.finished)break;if(d.peek("}"))break;if(e=this.extendRule())n=n.concat(e);else if(e=t.definition()||this.rule()||this.ruleset()||t.call()||this.rulesetCall()||this.entities.call()||this.directive())n.push(e);else{for(var i=!1;d.$char(";");)i=!0;if(!i)break}}return n},comment:function(){if(d.commentStore.length){var e=d.commentStore.shift();return new r.Comment(e.text,e.isLineComment,e.index,u)}},entities:{quoted:function(){var e,t=d.i,n=!1;return d.save(),d.$char("~")&&(n=!0),(e=d.$quoted())?(d.forget(),new r.Quoted(e.charAt(0),e.substr(1,e.length-2),n,t,u)):void d.restore()},keyword:function(){var e=d.$char("%")||d.$re(/^[_A-Za-z-][_A-Za-z0-9-]*/);if(e)return r.Color.fromKeyword(e)||new r.Keyword(e)},call:function(){var e,t,n,i=d.i;if(!d.peek(/^url\(/i))return d.save(),(e=d.$re(/^([\w-]+|%|progid:[\w\.]+)\(/))?"alpha"===(e=e[1]).toLowerCase()&&(n=p.alpha())?(d.forget(),n):(t=this.arguments(),d.$char(")")?(d.forget(),new r.Call(e,t,i,u)):void d.restore("Could not parse call arguments or missing ')'")):void d.forget()},arguments:function(){var e,t,n,i=[],o=[],s=[];for(d.save();n=p.detachedRuleset()||this.assignment()||p.expression();)t=n,n.value&&1==n.value.length&&(t=n.value[0]),t&&s.push(t),o.push(t),d.$char(",")||(d.$char(";")||e)&&(e=!0,s.length>1&&(t=new r.Value(s)),i.push(t),s=[]);return d.forget(),e?i:o},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;return d.save(),(e=d.$re(/^\w+(?=\s?=)/i))&&d.$char("=")&&(t=p.entity())?(d.forget(),new r.Assignment(e,t)):void d.restore()},url:function(){var e,t=d.i;return d.autoCommentAbsorb=!1,d.$str("url(")?(e=this.quoted()||this.variable()||d.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",d.autoCommentAbsorb=!0,h(")"),new r.URL(null!=e.value||e instanceof r.Variable?e:new r.Anonymous(e),t,u)):void(d.autoCommentAbsorb=!0)},variable:function(){var e,t=d.i;if("@"===d.currentChar()&&(e=d.$re(/^@@?[\w-]+/)))return new r.Variable(e,t,u)},variableCurly:function(){var e,t=d.i;if("@"===d.currentChar()&&(e=d.$re(/^@\{([\w-]+)\}/)))return new r.Variable("@"+e[1],t,u)},color:function(){var e;if("#"===d.currentChar()&&(e=d.$re(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))){var t=e.input.match(/^#([\w]+).*/);return(t=t[1]).match(/^[A-Fa-f0-9]+$/)||l("Invalid HEX color code"),new r.Color(e[1],void 0,"#"+t)}},colorKeyword:function(){d.save();var e=d.autoCommentAbsorb;d.autoCommentAbsorb=!1;var t=d.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(d.autoCommentAbsorb=e,t){d.restore();var n=r.Color.fromKeyword(t);return n?(d.$str(t),n):void 0}d.forget()},dimension:function(){if(!d.peekNotNumeric()){var e=d.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new r.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=d.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new r.UnicodeDescriptor(e[0])},javascript:function(){var e,t=d.i;d.save();var n=d.$char("~");return d.$char("`")?(e=d.$re(/^[^`]*`/))?(d.forget(),new r.JavaScript(e.substr(0,e.length-1),Boolean(n),t,u)):void d.restore("invalid javascript definition"):void d.restore()}},variable:function(){var e;if("@"===d.currentChar()&&(e=d.$re(/^(@[\w-]+)\s*:/)))return e[1]},rulesetCall:function(){var e;if("@"===d.currentChar()&&(e=d.$re(/^(@[\w-]+)\(\s*\)\s*;/)))return new r.RulesetCall(e[1])},extend:function(e){var t,n,i,o,s,a=d.i;if(d.$str(e?"&:extend(":":extend(")){do{for(i=null,t=null;!(i=d.$re(/^(all)(?=\s*(\)|,))/))&&(n=this.element());)t?t.push(n):t=[n];i=i&&i[1],t||l("Missing target selector for :extend()."),s=new r.Extend(new r.Selector(t),i,a,u),o?o.push(s):o=[s]}while(d.$char(","));return c(/^\)/),e&&c(/^;/),o}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var e,t,n,i,o,s,a=d.currentChar(),l=!1,c=d.i;if("."===a||"#"===a){for(d.save();e=d.i,i=d.$re(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/);)n=new r.Element(o,i,e,u),t?t.push(n):t=[n],o=d.$char(">");return t&&(d.$char("(")&&(s=this.args(!0).args,h(")")),p.important()&&(l=!0),p.end())?(d.forget(),new r.mixin.Call(t,s,c,u,l)):void d.restore()}},args:function(e){var t,n,i,o,s,a,u,c=p.entities,h={args:null,variadic:!1},f=[],v=[],m=[];for(d.save();;){if(e)a=p.detachedRuleset()||p.expression();else{if(d.commentStore.length=0,d.$str("...")){h.variadic=!0,d.$char(";")&&!t&&(t=!0),(t?v:m).push({variadic:!0});break}a=c.variable()||c.literal()||c.keyword()}if(!a)break;o=null,a.throwAwayComments&&a.throwAwayComments(),s=a;var g=null;if(e?a.value&&1==a.value.length&&(g=a.value[0]):g=a,g&&g instanceof r.Variable)if(d.$char(":")){if(f.length>0&&(t&&l("Cannot mix ; and , as delimiter types"),n=!0),!(s=p.detachedRuleset()||p.expression())){if(!e)return d.restore(),h.args=[],h;l("could not understand value for named argument")}o=i=g.name}else if(d.$str("...")){if(!e){h.variadic=!0,d.$char(";")&&!t&&(t=!0),(t?v:m).push({name:a.name,variadic:!0});break}u=!0}else e||(i=o=g.name,s=null);s&&f.push(s),m.push({name:o,value:s,expand:u}),d.$char(",")||(d.$char(";")||t)&&(n&&l("Cannot mix ; and , as delimiter types"),t=!0,f.length>1&&(s=new r.Value(f)),v.push({name:i,value:s,expand:u}),i=null,f=[],n=!1)}return d.forget(),h.args=t?v:m,h},definition:function(){var e,t,n,i,o=[],s=!1;if(!("."!==d.currentChar()&&"#"!==d.currentChar()||d.peek(/^[^{]*\}/)))if(d.save(),t=d.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var a=this.args(!1);if(o=a.args,s=a.variadic,!d.$char(")"))return void d.restore("Missing closing ')'");if(d.commentStore.length=0,d.$str("when")&&(i=c(p.conditions,"expected condition")),n=p.block())return d.forget(),new r.mixin.Definition(e,o,n,i,s);d.restore()}else d.forget()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.call()||e.keyword()||e.javascript()},end:function(){return d.$char(";")||d.peek("}")},alpha:function(){var e;if(d.$re(/^opacity=/i))return(e=d.$re(/^\d+/))||(e=c(this.entities.variable,"Could not parse alpha")),h(")"),new r.Alpha(e)},element:function(){var e,t,n,i=d.i;if(t=this.combinator(),(e=d.$re(/^(?:\d+\.\d+|\d+)%/)||d.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||d.$char("*")||d.$char("&")||this.attribute()||d.$re(/^\([^&()@]+\)/)||d.$re(/^[\.#:](?=@)/)||this.entities.variableCurly())||(d.save(),d.$char("(")?(n=this.selector())&&d.$char(")")?(e=new r.Paren(n),d.forget()):d.restore("Missing closing ')'"):d.forget()),e)return new r.Element(t,e,i,u)},combinator:function(){var e=d.currentChar();if("/"===e){d.save();var t=d.$re(/^\/[a-z]+\//i);if(t)return d.forget(),new r.Combinator(t);d.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(d.i++,"^"===e&&"^"===d.currentChar()&&(e="^^",d.i++);d.isWhitespace();)d.i++;return new r.Combinator(e)}return new r.Combinator(d.isWhitespace(-1)?" ":null)},lessSelector:function(){return this.selector(!0)},selector:function(e){for(var t,n,i,o,s,a,h,f=d.i;(e&&(n=this.extend())||e&&(a=d.$str("when"))||(o=this.element()))&&(a?h=c(this.conditions,"expected condition"):h?l("CSS guard can only be used at the end of selector"):n?s=s?s.concat(n):n:(s&&l("Extend can only be used at the end of selector"),i=d.currentChar(),t?t.push(o):t=[o],o=null),"{"!==i&&"}"!==i&&";"!==i&&","!==i&&")"!==i););return t?new r.Selector(t,s,h,f,u):void(s&&l("Extend must be used to extend a selector, it cannot be used on its own"))},attribute:function(){if(d.$char("[")){var e,t,n,i=this.entities;return(e=i.variableCurly())||(e=c(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(n=d.$re(/^[|~*$^]?=/))&&(t=i.quoted()||d.$re(/^[0-9]+%/)||d.$re(/^[\w-]+/)||i.variableCurly()),h("]"),new r.Attribute(e,n,t)}},block:function(){var e;if(d.$char("{")&&(e=this.primary())&&d.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new r.Ruleset(null,e)),e},detachedRuleset:function(){var e=this.blockRuleset();if(e)return new r.DetachedRuleset(e)},ruleset:function(){var e,n,i,o;for(d.save(),t.dumpLineNumbers&&(o=f(d.i));(n=this.lessSelector())&&(e?e.push(n):e=[n],d.commentStore.length=0,n.condition&&e.length>1&&l("Guards are only currently allowed on a single selector."),d.$char(","));)n.condition&&l("Guards are only currently allowed on a single selector."),d.commentStore.length=0;if(e&&(i=this.block())){d.forget();var s=new r.Ruleset(e,i,t.strictImports);return t.dumpLineNumbers&&(s.debugInfo=o),s}d.restore()},rule:function(e){var n,i,o,s,a,l=d.i,c=d.currentChar();if("."!==c&&"#"!==c&&"&"!==c&&":"!==c)if(d.save(),n=this.variable()||this.ruleProperty()){if((a="string"==typeof n)&&(i=this.detachedRuleset()),d.commentStore.length=0,!i){s=!a&&n.length>1&&n.pop().value;var h=!e&&(t.compress||a);if(h&&(i=this.value()),!i&&(i=this.anonymousValue()))return d.forget(),new r.Rule(n,i,!1,s,l,u);h||i||(i=this.value()),o=this.important()}if(i&&this.end())return d.forget(),new r.Rule(n,i,o,s,l,u);if(d.restore(),i&&!e)return this.rule(!0)}else d.forget()},anonymousValue:function(){var e=d.$re(/^([^@+\/'"*`(;{}-]*);/);if(e)return new r.Anonymous(e[1])},import:function(){var e,t,n=d.i,i=d.$re(/^@import?\s+/);if(i){var o=(i?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),d.$char(";")||(d.i=n,l("missing semi-colon or unrecognised media features on import")),t=t&&new r.Value(t),new r.Import(e,t,o,n,u);d.i=n,l("malformed import statement")}},importOptions:function(){var e,t,n,i={};if(!d.$char("("))return null;do{if(e=this.importOption()){switch(n=!0,t=e){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(i[t]=n,!d.$char(","))break}}while(e);return h(")"),i},importOption:function(){var e=d.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(){var e,t,n=this.entities,i=[];d.save();do{(e=n.keyword()||n.variable())?i.push(e):d.$char("(")&&(t=this.property(),e=this.value(),d.$char(")")?t&&e?i.push(new r.Paren(new r.Rule(t,e,null,null,d.i,u,!0))):e?i.push(new r.Paren(e)):l("badly formed media feature definition"):l("Missing closing ')'","Parse"))}while(e);if(d.forget(),i.length>0)return new r.Expression(i)},mediaFeatures:function(){var e,t=this.entities,n=[];do{if(e=this.mediaFeature()){if(n.push(e),!d.$char(","))break}else if((e=t.variable())&&(n.push(e),!d.$char(",")))break}while(e);return n.length>0?n:null},media:function(){var e,n,i,o,s=d.i;return t.dumpLineNumbers&&(o=f(s)),d.save(),d.$str("@media")?(e=this.mediaFeatures(),(n=this.block())||l("media definitions require block statements after any features"),d.forget(),i=new r.Media(n,e,s,u),t.dumpLineNumbers&&(i.debugInfo=o),i):void d.restore()},plugin:function(){var e,t=d.i;if(d.$re(/^@plugin?\s+/)){if(e=this.entities.quoted()||this.entities.url())return d.$char(";")||(d.i=t,l("missing semi-colon on plugin")),new r.Import(e,null,{plugin:!0},t,u);d.i=t,l("malformed plugin statement")}},directive:function(){var e,n,i,o,s,a,c,h=d.i,p=!0,v=!0;if("@"===d.currentChar()){if(n=this.import()||this.plugin()||this.media())return n;if(d.save(),e=d.$re(/^@[a-z-]+/)){switch(o=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(o="@"+e.slice(e.indexOf("-",2)+1)),o){case"@charset":s=!0,p=!1;break;case"@namespace":a=!0,p=!1;break;case"@keyframes":case"@counter-style":s=!0;break;case"@document":case"@supports":c=!0,v=!1;break;default:c=!0}return d.commentStore.length=0,s?(n=this.entity())||l("expected "+e+" identifier"):a?(n=this.expression())||l("expected "+e+" expression"):c&&(n=(d.$re(/^[^{;]+/)||"").trim(),p="{"==d.currentChar(),n&&(n=new r.Anonymous(n))),p&&(i=this.blockRuleset()),i||!p&&n&&d.$char(";")?(d.forget(),new r.Directive(e,n,i,h,u,t.dumpLineNumbers?f(h):null,v)):void d.restore("directive options not recognised")}}},value:function(){var e,t=[];do{if((e=this.expression())&&(t.push(e),!d.$char(",")))break}while(e);if(t.length>0)return new r.Value(t)},important:function(){if("!"===d.currentChar())return d.$re(/^! *important/)},sub:function(){var e,t;return d.save(),d.$char("(")?(e=this.addition())&&d.$char(")")?(d.forget(),(t=new r.Expression([e])).parens=!0,t):void d.restore("Expected ')'"):void d.restore()},multiplication:function(){var e,t,n,i,o;if(e=this.operand()){for(o=d.isWhitespace(-1);!d.peek(/^\/[*\/]/);){if(d.save(),!(n=d.$char("/")||d.$char("*"))){d.forget();break}if(!(t=this.operand())){d.restore();break}d.forget(),e.parensInOp=!0,t.parensInOp=!0,i=new r.Operation(n,[i||e,t],o),o=d.isWhitespace(-1)}return i||e}},addition:function(){var e,t,n,i,o;if(e=this.multiplication()){for(o=d.isWhitespace(-1);(n=d.$re(/^[-+]\s+/)||!o&&(d.$char("+")||d.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,i=new r.Operation(n,[i||e,t],o),o=d.isWhitespace(-1);return i||e}},conditions:function(){var e,t,n,i=d.i;if(e=this.condition()){for(;d.peek(/^,\s*(not\s*)?\(/)&&d.$char(",")&&(t=this.condition());)n=new r.Condition("or",n||e,t,i);return n||e}},condition:function(){var e,t,n;if(e=this.conditionAnd(this)){if(t=d.$str("or")){if(!(n=this.condition()))return;e=new r.Condition(t,e,n)}return e}},conditionAnd:function(){var e,t,n;if(e=function(e){return e.negatedCondition()||e.parenthesisCondition()}(this)){if(t=d.$str("and")){if(!(n=this.conditionAnd()))return;e=new r.Condition(t,e,n)}return e}},negatedCondition:function(){if(d.$str("not")){var e=this.parenthesisCondition();return e&&(e.negate=!e.negate),e}},parenthesisCondition:function(){var e;return d.save(),d.$str("(")?(e=function(e){var t;return d.save(),(t=e.condition())&&d.$char(")")?(d.forget(),t):void d.restore()}(this))?(d.forget(),e):(e=this.atomicCondition())?d.$char(")")?(d.forget(),e):void d.restore("expected ')' got '"+d.currentChar()+"'"):void d.restore():void d.restore()},atomicCondition:function(){var e,t,n,i,o=this.entities,s=d.i;if(e=this.addition()||o.keyword()||o.quoted())return d.$char(">")?i=d.$char("=")?">=":">":d.$char("<")?i=d.$char("=")?"<=":"<":d.$char("=")&&(i=d.$char(">")?"=>":d.$char("<")?"=<":"="),i?(t=this.addition()||o.keyword()||o.quoted())?n=new r.Condition(i,e,t,s,!1):l("expected expression"):n=new r.Condition("=",e,new r.Keyword("true"),s,!1),n},operand:function(){var e,t=this.entities;d.peek(/^-[@\(]/)&&(e=d.$char("-"));var n=this.sub()||t.dimension()||t.color()||t.variable()||t.call()||t.colorKeyword();return e&&(n.parensInOp=!0,n=new r.Negative(n)),n},expression:function(){var e,t,n=[];do{(e=this.comment())?n.push(e):(e=this.addition()||this.entity())&&(n.push(e),d.peek(/^\/[\/*]/)||(t=d.$char("/"))&&n.push(new r.Anonymous(t)))}while(e);if(n.length>0)return new r.Expression(n)},property:function(){var e=d.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){function e(e){var t=d.i,n=d.$re(e);if(n)return o.push(t),i.push(n[1])}var t,n,i=[],o=[];d.save();var s=d.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(s)return i=[new r.Keyword(s[1])],d.forget(),i;for(e(/^(\*?)/);e(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/););if(i.length>1&&e(/^((?:\+_|\+)?)\s*:/)){for(d.forget(),""===i[0]&&(i.shift(),o.shift()),n=0;n<i.length;n++)t=i[n],i[n]="@"!==t.charAt(0)?new r.Keyword(t):new r.Variable("@"+t.slice(2,-1),o[n],u);return i}d.restore()}}}};u.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var i=e[n];t+=("@"===n[0]?"":"@")+n+": "+i+(";"===String(i).slice(-1)?"":";")}return t},t.exports=u},{"../less-error":32,"../tree":62,"../utils":83,"../visitors":87,"./parser-input":37}],39:[function(e,t,n){var i=function(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[]};i.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},i.prototype.addPlugin=function(e){this.installedPlugins.push(e),e.install(this.less,this)},i.prototype.addVisitor=function(e){this.visitors.push(e)},i.prototype.addPreProcessor=function(e,t){var n;for(n=0;n<this.preProcessors.length&&!(this.preProcessors[n].priority>=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},i.prototype.addPostProcessor=function(e,t){var n;for(n=0;n<this.postProcessors.length&&!(this.postProcessors[n].priority>=t);n++);this.postProcessors.splice(n,0,{postProcessor:e,priority:t})},i.prototype.addFileManager=function(e){this.fileManagers.push(e)},i.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},i.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},i.prototype.getVisitors=function(){return this.visitors},i.prototype.getFileManagers=function(){return this.fileManagers},t.exports=i},{}],40:[function(e,t,n){var i=e("../less-error"),r=e("../tree");(t.exports=function(e,t){this.fileInfo=t}).prototype.eval=function(e,t){var n,o={};n={add:function(e,t){o[e]=t},addMultiple:function(e){Object.keys(e).forEach((function(t){o[t]=e[t]}))}};try{new Function("functions","tree","fileInfo",e)(n,r,this.fileInfo)}catch(e){t(new i({message:"Plugin evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.fileInfo.filename}),null)}t(null,{functions:o})}},{"../less-error":32,"../tree":62}],41:[function(e,t,n){var i;t.exports=function(t,n,r){var o=function(t,r,s){if("function"==typeof r&&(s=r,r={}),!s){i||(i="undefined"==typeof Promise?e("promise"):Promise);var a=this;return new i((function(e,n){o.call(a,t,r,(function(t,i){t?n(t):e(i)}))}))}this.parse(t,r,(function(e,t,i,r){if(e)return s(e);var o;try{o=new n(t,i).toCSS(r)}catch(e){return s(e)}s(null,o)}))};return o}},{promise:void 0}],42:[function(e,t,n){t.exports=function(e,t){var n=function(e){this.options=e};return n.prototype.toCSS=function(t,n,i){var r=new e({contentsIgnoredCharsMap:i.contentsIgnoredChars,rootNode:t,contentsMap:i.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}),o=r.toCSS(n);return this.sourceMap=r.sourceMap,this.sourceMapURL=r.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=r.normalizeFilename(this.options.sourceMapInputFilename)),o+this.getCSSAppendage()},n.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+" */":""},n.prototype.getExternalSourceMap=function(){return this.sourceMap},n.prototype.setExternalSourceMap=function(e){this.sourceMap=e},n.prototype.isInline=function(){return this.options.sourceMapFileInline},n.prototype.getSourceMapURL=function(){return this.sourceMapURL},n.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},n.prototype.getInputFilename=function(){return this.sourceMapInputFilename},n}},{}],43:[function(e,t,n){t.exports=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.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,n,i){if(e){var r,o,s,a,u;if(t){var l=this._contentsMap[t.filename];this._contentsIgnoredCharsMap[t.filename]&&((n-=this._contentsIgnoredCharsMap[t.filename])<0&&(n=0),l=l.slice(this._contentsIgnoredCharsMap[t.filename])),a=(o=(l=l.substring(0,n)).split("\n"))[o.length-1]}if(s=(r=e.split("\n"))[r.length-1],t)if(i)for(u=0;u<r.length;u++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+u+1,column:0===u?this._column:0},original:{line:o.length+u,column:0===u?a.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:o.length,column:a.length},source:this.normalizeFilename(t.filename)});1===r.length?this._column+=s.length:(this._lineNumber+=r.length-1,this._column=s.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 n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var i,r=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?i=this.sourceMapURL:this._sourceMapFilename&&(i=this._sourceMapFilename),this.sourceMapURL=i,this.sourceMap=r}return this._css.join("")},t}},{}],44:[function(e,t,n){var i=e("./contexts"),r=e("./visitors"),o=e("./tree");t.exports=function(e,t){var n,s=(t=t||{}).variables,a=new i.Eval(t);"object"!=typeof s||Array.isArray(s)||(s=Object.keys(s).map((function(e){var t=s[e];return t instanceof o.Value||(t instanceof o.Expression||(t=new o.Expression([t])),t=new o.Value([t])),new o.Rule("@"+e,t,!1,null,0)})),a.frames=[new o.Ruleset(null,s)]);var u,l=[],c=[new r.JoinSelectorVisitor,new r.MarkVisibleSelectorsVisitor(!0),new r.ExtendVisitor,new r.ToCSSVisitor({compress:Boolean(t.compress)})];if(t.pluginManager){var h=t.pluginManager.getVisitors();for(u=0;u<h.length;u++){var f=h[u];f.isPreEvalVisitor?l.push(f):f.isPreVisitor?c.splice(0,0,f):c.push(f)}}for(u=0;u<l.length;u++)l[u].run(e);for(n=e.eval(a),u=0;u<c.length;u++)c[u].run(n);return n}},{"./contexts":11,"./tree":62,"./visitors":87}],45:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};(r.prototype=new i).type="Alpha",r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.eval=function(e){return this.value.eval?new r(this.value.eval(e)):this},r.prototype.genCSS=function(e,t){t.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value),t.add(")")},t.exports=r},{"./node":70}],46:[function(e,t,n){var i=e("./node"),r=function(e,t,n,i,r,o){this.value=e,this.index=t,this.mapLines=i,this.currentFileInfo=n,this.rulesetLike=void 0!==r&&r,this.allowRoot=!0,this.copyVisibilityInfo(o)};(r.prototype=new i).type="Anonymous",r.prototype.eval=function(){return new r(this.value,this.index,this.currentFileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},r.prototype.compare=function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},r.prototype.isRulesetLike=function(){return this.rulesetLike},r.prototype.genCSS=function(e,t){t.add(this.value,this.currentFileInfo,this.index,this.mapLines)},t.exports=r},{"./node":70}],47:[function(e,t,n){var i=e("./node"),r=function(e,t){this.key=e,this.value=t};(r.prototype=new i).type="Assignment",r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.eval=function(e){return this.value.eval?new r(this.key,this.value.eval(e)):this},r.prototype.genCSS=function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},t.exports=r},{"./node":70}],48:[function(e,t,n){var i=e("./node"),r=function(e,t,n){this.key=e,this.op=t,this.value=n};(r.prototype=new i).type="Attribute",r.prototype.eval=function(e){return new r(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},r.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},r.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+"]"},t.exports=r},{"./node":70}],49:[function(e,t,n){var i=e("./node"),r=e("../functions/function-caller"),o=function(e,t,n,i){this.name=e,this.args=t,this.index=n,this.currentFileInfo=i};(o.prototype=new i).type="Call",o.prototype.accept=function(e){this.args&&(this.args=e.visitArray(this.args))},o.prototype.eval=function(e){var t,n=this.args.map((function(t){return t.eval(e)})),i=new r(this.name,e,this.index,this.currentFileInfo);if(i.isValid()){try{t=i.call(n)}catch(e){throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.index,filename:this.currentFileInfo.filename}}if(null!=t)return t.index=this.index,t.currentFileInfo=this.currentFileInfo,t}return new o(this.name,n,this.index,this.currentFileInfo)},o.prototype.genCSS=function(e,t){t.add(this.name+"(",this.currentFileInfo,this.index);for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")},t.exports=o},{"../functions/function-caller":21,"./node":70}],50:[function(e,t,n){function i(e,t){return Math.min(Math.max(e,0),t)}function r(e){return"#"+e.map((function(e){return((e=i(Math.round(e),255))<16?"0":"")+e.toString(16)})).join("")}var o=e("./node"),s=e("../data/colors"),a=function(e,t,n){this.rgb=Array.isArray(e)?e:6==e.length?e.match(/.{2}/g).map((function(e){return parseInt(e,16)})):e.split("").map((function(e){return parseInt(e+e,16)})),this.alpha="number"==typeof t?t:1,void 0!==n&&(this.value=n)};(a.prototype=new o).type="Color",a.prototype.luma=function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=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*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},a.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},a.prototype.toCSS=function(e,t){var n,r,o=e&&e.compress&&!t;if(this.value)return this.value;if((r=this.fround(e,this.alpha))<1)return"rgba("+this.rgb.map((function(e){return i(Math.round(e),255)})).concat(i(r,1)).join(","+(o?"":" "))+")";if(n=this.toRGB(),o){var s=n.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(n="#"+s[1]+s[3]+s[5])}return n},a.prototype.operate=function(e,t,n){for(var i=[],r=this.alpha*(1-n.alpha)+n.alpha,o=0;o<3;o++)i[o]=this._operate(e,t,this.rgb[o],n.rgb[o]);return new a(i,r)},a.prototype.toRGB=function(){return r(this.rgb)},a.prototype.toHSL=function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,o=this.alpha,s=Math.max(n,i,r),a=Math.min(n,i,r),u=(s+a)/2,l=s-a;if(s===a)e=t=0;else{switch(t=u>.5?l/(2-s-a):l/(s+a),s){case n:e=(i-r)/l+(i<r?6:0);break;case i:e=(r-n)/l+2;break;case r:e=(n-i)/l+4}e/=6}return{h:360*e,s:t,l:u,a:o}},a.prototype.toHSV=function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,o=this.alpha,s=Math.max(n,i,r),a=Math.min(n,i,r),u=s,l=s-a;if(t=0===s?0:l/s,s===a)e=0;else{switch(s){case n:e=(i-r)/l+(i<r?6:0);break;case i:e=(r-n)/l+2;break;case r:e=(n-i)/l+4}e/=6}return{h:360*e,s:t,v:u,a:o}},a.prototype.toARGB=function(){return r([255*this.alpha].concat(this.rgb))},a.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},a.fromKeyword=function(e){var t,n=e.toLowerCase();if(s.hasOwnProperty(n)?t=new a(s[n].slice(1)):"transparent"===n&&(t=new a([0,0,0],0)),t)return t.value=e,t},t.exports=a},{"../data/colors":12,"./node":70}],51:[function(e,t,n){var i=e("./node"),r=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};(r.prototype=new i).type="Combinator";var o={"":!0," ":!0,"|":!0};r.prototype.genCSS=function(e,t){var n=e.compress||o[this.value]?"":" ";t.add(n+this.value+n)},t.exports=r},{"./node":70}],52:[function(e,t,n){var i=e("./node"),r=e("./debug-info"),o=function(e,t,n,i){this.value=e,this.isLineComment=t,this.index=n,this.currentFileInfo=i,this.allowRoot=!0};(o.prototype=new i).type="Comment",o.prototype.genCSS=function(e,t){this.debugInfo&&t.add(r(e,this),this.currentFileInfo,this.index),t.add(this.value)},o.prototype.isSilent=function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t},t.exports=o},{"./debug-info":54,"./node":70}],53:[function(e,t,n){var i=e("./node"),r=function(e,t,n,i,r){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=i,this.negate=r};(r.prototype=new i).type="Condition",r.prototype.accept=function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},r.prototype.eval=function(e){var t=function(e,t,n){switch(e){case"and":return t&&n;case"or":return t||n;default:switch(i.compare(t,n)){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},t.exports=r},{"./node":70}],54:[function(e,t,n){var i=function(e,t,n){var r="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":r=i.asComment(t);break;case"mediaquery":r=i.asMediaQuery(t);break;case"all":r=i.asComment(t)+(n||"")+i.asMediaQuery(t)}return r};i.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},i.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"},t.exports=i},{}],55:[function(e,t,n){var i=e("./node"),r=e("../contexts"),o=function(e,t){this.ruleset=e,this.frames=t};(o.prototype=new i).type="DetachedRuleset",o.prototype.evalFirst=!0,o.prototype.accept=function(e){this.ruleset=e.visit(this.ruleset)},o.prototype.eval=function(e){var t=this.frames||e.frames.slice(0);return new o(this.ruleset,t)},o.prototype.callEval=function(e){return this.ruleset.eval(this.frames?new r.Eval(e,this.frames.concat(e.frames)):e)},t.exports=o},{"../contexts":11,"./node":70}],56:[function(e,t,n){var i=e("./node"),r=e("../data/unit-conversions"),o=e("./unit"),s=e("./color"),a=function(e,t){this.value=parseFloat(e),this.unit=t&&t instanceof o?t:new o(t?[t]:void 0)};(a.prototype=new i).type="Dimension",a.prototype.accept=function(e){this.unit=e.visit(this.unit)},a.prototype.eval=function(e){return this},a.prototype.toColor=function(){return new s([this.value,this.value,this.value])},a.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 n=this.fround(e,this.value),i=String(n);if(0!==n&&n<1e-6&&n>-1e-6&&(i=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(i);n>0&&n<1&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},a.prototype.operate=function(e,t,n){var i=this._operate(e,t,this.value,n.value),r=this.unit.clone();if("+"===t||"-"===t)if(0===r.numerator.length&&0===r.denominator.length)r=n.unit.clone(),this.unit.backupUnit&&(r.backupUnit=this.unit.backupUnit);else if(0===n.unit.numerator.length&&0===r.denominator.length);else{if(n=n.convertTo(this.unit.usedUnits()),e.strictUnits&&n.unit.toString()!==r.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+r.toString()+"' and '"+n.unit.toString()+"'.");i=this._operate(e,t,this.value,n.value)}else"*"===t?(r.numerator=r.numerator.concat(n.unit.numerator).sort(),r.denominator=r.denominator.concat(n.unit.denominator).sort(),r.cancel()):"/"===t&&(r.numerator=r.numerator.concat(n.unit.denominator).sort(),r.denominator=r.denominator.concat(n.unit.numerator).sort(),r.cancel());return new a(i,r)},a.prototype.compare=function(e){var t,n;if(e instanceof a){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,n=e;else if(t=this.unify(),n=e.unify(),0!==t.unit.compare(n.unit))return;return i.numericCompare(t.value,n.value)}},a.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},a.prototype.convertTo=function(e){var t,n,i,o,s,u=this.value,l=this.unit.clone(),c={};if("string"==typeof e){for(t in r)r[t].hasOwnProperty(e)&&((c={})[t]=e);e=c}for(n in s=function(e,t){return i.hasOwnProperty(e)?(t?u/=i[e]/i[o]:u*=i[e]/i[o],o):e},e)e.hasOwnProperty(n)&&(o=e[n],i=r[n],l.map(s));return l.cancel(),new a(u,l)},t.exports=a},{"../data/unit-conversions":14,"./color":50,"./node":70,"./unit":79}],57:[function(e,t,n){var i=e("./node"),r=e("./selector"),o=e("./ruleset"),s=function(e,t,n,i,o,s,a,u){var l;if(this.name=e,this.value=t,n)for(Array.isArray(n)?this.rules=n:(this.rules=[n],this.rules[0].selectors=new r([],null,null,this.index,o).createEmptySelectors()),l=0;l<this.rules.length;l++)this.rules[l].allowImports=!0;this.index=i,this.currentFileInfo=o,this.debugInfo=s,this.isRooted=a||!1,this.copyVisibilityInfo(u),this.allowRoot=!0};(s.prototype=new i).type="Directive",s.prototype.accept=function(e){var t=this.value,n=this.rules;n&&(this.rules=e.visitArray(n)),t&&(this.value=e.visit(t))},s.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},s.prototype.isCharset=function(){return"@charset"===this.name},s.prototype.genCSS=function(e,t){var n=this.value,i=this.rules;t.add(this.name,this.currentFileInfo,this.index),n&&(t.add(" "),n.genCSS(e,t)),i?this.outputRuleset(e,t,i):t.add(";")},s.prototype.eval=function(e){var t,n,i=this.value,r=this.rules;return t=e.mediaPath,n=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],i&&(i=i.eval(e)),r&&((r=[r[0].eval(e)])[0].root=!0),e.mediaPath=t,e.mediaBlocks=n,new s(this.name,i,r,this.index,this.currentFileInfo,this.debugInfo,this.isRooted,this.visibilityInfo())},s.prototype.variable=function(e){if(this.rules)return o.prototype.variable.call(this.rules[0],e)},s.prototype.find=function(){if(this.rules)return o.prototype.find.apply(this.rules[0],arguments)},s.prototype.rulesets=function(){if(this.rules)return o.prototype.rulesets.apply(this.rules[0])},s.prototype.outputRuleset=function(e,t,n){var i,r=n.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),i=0;i<r;i++)n[i].genCSS(e,t);return t.add("}"),void e.tabLevel--}var o="\n"+Array(e.tabLevel).join(" "),s=o+" ";if(r){for(t.add(" {"+s),n[0].genCSS(e,t),i=1;i<r;i++)t.add(s),n[i].genCSS(e,t);t.add(o+"}")}else t.add(" {"+o+"}");e.tabLevel--},t.exports=s},{"./node":70,"./ruleset":76,"./selector":77}],58:[function(e,t,n){var i=e("./node"),r=e("./paren"),o=e("./combinator"),s=function(e,t,n,i,r){this.combinator=e instanceof o?e:new o(e),this.value="string"==typeof t?t.trim():t||"",this.index=n,this.currentFileInfo=i,this.copyVisibilityInfo(r)};(s.prototype=new i).type="Element",s.prototype.accept=function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},s.prototype.eval=function(e){return new s(this.combinator,this.value.eval?this.value.eval(e):this.value,this.index,this.currentFileInfo,this.visibilityInfo())},s.prototype.clone=function(){return new s(this.combinator,this.value,this.index,this.currentFileInfo,this.visibilityInfo())},s.prototype.genCSS=function(e,t){t.add(this.toCSS(e),this.currentFileInfo,this.index)},s.prototype.toCSS=function(e){e=e||{};var t=this.value,n=e.firstSelector;return t instanceof r&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=n,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t},t.exports=s},{"./combinator":51,"./node":70,"./paren":72}],59:[function(e,t,n){var i=e("./node"),r=e("./paren"),o=e("./comment"),s=function(e){if(this.value=e,!e)throw new Error("Expression requires an array parameter")};(s.prototype=new i).type="Expression",s.prototype.accept=function(e){this.value=e.visitArray(this.value)},s.prototype.eval=function(e){var t,n=this.parens&&!this.parensInOp,i=!1;return n&&e.inParenthesis(),this.value.length>1?t=new s(this.value.map((function(t){return t.eval(e)}))):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(i=!0),t=this.value[0].eval(e)):t=this,n&&e.outOfParenthesis(),this.parens&&this.parensInOp&&!e.isMathOn()&&!i&&(t=new r(t)),t},s.prototype.genCSS=function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(" ")},s.prototype.throwAwayComments=function(){this.value=this.value.filter((function(e){return!(e instanceof o)}))},t.exports=s},{"./comment":52,"./node":70,"./paren":72}],60:[function(e,t,n){var i=e("./node"),r=e("./selector"),o=function e(t,n,i,r,o){"all"===(this.selector=t,this.option=n,this.index=i,this.object_id=e.next_id++,this.parent_ids=[this.object_id],this.currentFileInfo=r||{},this.copyVisibilityInfo(o),this.allowRoot=!0,n)?(this.allowBefore=!0,this.allowAfter=!0):(this.allowBefore=!1,this.allowAfter=!1)};o.next_id=0,(o.prototype=new i).type="Extend",o.prototype.accept=function(e){this.selector=e.visit(this.selector)},o.prototype.eval=function(e){return new o(this.selector.eval(e),this.option,this.index,this.currentFileInfo,this.visibilityInfo())},o.prototype.clone=function(e){return new o(this.selector,this.option,this.index,this.currentFileInfo,this.visibilityInfo())},o.prototype.findSelfSelectors=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),i=i.concat(e[t].elements);this.selfSelectors=[new r(i)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())},t.exports=o},{"./node":70,"./selector":77}],61:[function(e,t,n){var i=e("./node"),r=e("./media"),o=e("./url"),s=e("./quoted"),a=e("./ruleset"),u=e("./anonymous"),l=function(e,t,n,i,r,o){if(this.options=n,this.index=i,this.path=e,this.features=t,this.currentFileInfo=r,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var s=this.getPath();s&&/[#\.\&\?\/]css([\?;].*)?$/.test(s)&&(this.css=!0)}this.copyVisibilityInfo(o)};(l.prototype=new i).type="Import",l.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.plugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},l.prototype.genCSS=function(e,t){this.css&&void 0===this.path.currentFileInfo.reference&&(t.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},l.prototype.getPath=function(){return this.path instanceof o?this.path.value.value:this.path.value},l.prototype.isVariableImport=function(){var e=this.path;return e instanceof o&&(e=e.value),!(e instanceof s)||e.containsVariables()},l.prototype.evalForImport=function(e){var t=this.path;return t instanceof o&&(t=t.value),new l(t.eval(e),this.features,this.options,this.index,this.currentFileInfo,this.visibilityInfo())},l.prototype.evalPath=function(e){var t=this.path.eval(e),n=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(t instanceof o)){if(n){var i=t.value;i&&e.isPathRelative(i)&&(t.value=n+i)}t.value=e.normalizePath(t.value)}return t},l.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},l.prototype.doEval=function(e){var t,n,i=this.features&&this.features.eval(e);if(this.options.plugin)return(n=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&n.addMultiple(this.root.functions),[];if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var o=new u(this.root,0,{filename:this.importedFilename,reference:this.path.currentFileInfo&&this.path.currentFileInfo.reference},!0,!0);return this.features?new r([o],this.features.value):[o]}if(this.css){var s=new l(this.evalPath(e),i,this.options,this.index);if(!s.css&&this.error)throw this.error;return s}return(t=new a(null,this.root.rules.slice(0))).evalImports(e),this.features?new r(t.rules,this.features.value):t.rules},t.exports=l},{"./anonymous":46,"./media":66,"./node":70,"./quoted":73,"./ruleset":76,"./url":80}],62:[function(e,t,n){var i={};i.Node=e("./node"),i.Alpha=e("./alpha"),i.Color=e("./color"),i.Directive=e("./directive"),i.DetachedRuleset=e("./detached-ruleset"),i.Operation=e("./operation"),i.Dimension=e("./dimension"),i.Unit=e("./unit"),i.Keyword=e("./keyword"),i.Variable=e("./variable"),i.Ruleset=e("./ruleset"),i.Element=e("./element"),i.Attribute=e("./attribute"),i.Combinator=e("./combinator"),i.Selector=e("./selector"),i.Quoted=e("./quoted"),i.Expression=e("./expression"),i.Rule=e("./rule"),i.Call=e("./call"),i.URL=e("./url"),i.Import=e("./import"),i.mixin={Call:e("./mixin-call"),Definition:e("./mixin-definition")},i.Comment=e("./comment"),i.Anonymous=e("./anonymous"),i.Value=e("./value"),i.JavaScript=e("./javascript"),i.Assignment=e("./assignment"),i.Condition=e("./condition"),i.Paren=e("./paren"),i.Media=e("./media"),i.UnicodeDescriptor=e("./unicode-descriptor"),i.Negative=e("./negative"),i.Extend=e("./extend"),i.RulesetCall=e("./ruleset-call"),t.exports=i},{"./alpha":45,"./anonymous":46,"./assignment":47,"./attribute":48,"./call":49,"./color":50,"./combinator":51,"./comment":52,"./condition":53,"./detached-ruleset":55,"./dimension":56,"./directive":57,"./element":58,"./expression":59,"./extend":60,"./import":61,"./javascript":63,"./keyword":65,"./media":66,"./mixin-call":67,"./mixin-definition":68,"./negative":69,"./node":70,"./operation":71,"./paren":72,"./quoted":73,"./rule":74,"./ruleset":76,"./ruleset-call":75,"./selector":77,"./unicode-descriptor":78,"./unit":79,"./url":80,"./value":81,"./variable":82}],63:[function(e,t,n){var i=e("./js-eval-node"),r=e("./dimension"),o=e("./quoted"),s=e("./anonymous"),a=function(e,t,n,i){this.escaped=t,this.expression=e,this.index=n,this.currentFileInfo=i};(a.prototype=new i).type="JavaScript",a.prototype.eval=function(e){var t=this.evaluateJavaScript(this.expression,e);return"number"==typeof t?new r(t):"string"==typeof t?new o('"'+t+'"',t,this.escaped,this.index):new s(Array.isArray(t)?t.join(", "):t)},t.exports=a},{"./anonymous":46,"./dimension":56,"./js-eval-node":64,"./quoted":73}],64:[function(e,t,n){var i=e("./node"),r=e("./variable"),o=function(){};(o.prototype=new i).evaluateJavaScript=function(e,t){var n,i=this,o={};if(void 0!==t.javascriptEnabled&&!t.javascriptEnabled)throw{message:"You are using JavaScript, which has been disabled.",filename:this.currentFileInfo.filename,index:this.index};e=e.replace(/@\{([\w-]+)\}/g,(function(e,n){return i.jsify(new r("@"+n,i.index,i.currentFileInfo).eval(t))}));try{e=new Function("return ("+e+")")}catch(t){throw{message:"JavaScript evaluation error: "+t.message+" from `"+e+"`",filename:this.currentFileInfo.filename,index:this.index}}var s=t.frames[0].variables();for(var a in s)s.hasOwnProperty(a)&&(o[a.slice(1)]={value:s[a].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=e.call(o)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.currentFileInfo.filename,index:this.index}}return n},o.prototype.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map((function(e){return e.toCSS()})).join(", ")+"]":e.toCSS()},t.exports=o},{"./node":70,"./variable":82}],65:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};(r.prototype=new i).type="Keyword",r.prototype.genCSS=function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)},r.True=new r("true"),r.False=new r("false"),t.exports=r},{"./node":70}],66:[function(e,t,n){var i=e("./ruleset"),r=e("./value"),o=e("./selector"),s=e("./anonymous"),a=e("./expression"),u=e("./directive"),l=function(e,t,n,s,a){this.index=n,this.currentFileInfo=s;var u=new o([],null,null,this.index,this.currentFileInfo).createEmptySelectors();this.features=new r(t),this.rules=[new i(u,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(a),this.allowRoot=!0};(l.prototype=new u).type="Media",l.prototype.isRulesetLike=!0,l.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},l.prototype.genCSS=function(e,t){t.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},l.prototype.eval=function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new l(null,[],this.index,this.currentFileInfo,this.visibilityInfo());this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo);var n=!1;e.strictMath||(n=!0,e.strictMath=!0);try{t.features=this.features.eval(e)}finally{n&&(e.strictMath=!1)}return 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)},l.prototype.evalTop=function(e){var t=this;if(e.mediaBlocks.length>1){var n=new o([],null,null,this.index,this.currentFileInfo).createEmptySelectors();(t=new i(n,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo())}return delete e.mediaBlocks,delete e.mediaPath,t},l.prototype.evalNested=function(e){var t,n,o=e.mediaPath.concat([this]);for(t=0;t<o.length;t++)n=o[t].features instanceof r?o[t].features.value:o[t].features,o[t]=Array.isArray(n)?n:[n];return this.features=new r(this.permute(o).map((function(e){for(e=e.map((function(e){return e.toCSS?e:new s(e)})),t=e.length-1;t>0;t--)e.splice(t,0,new s("and"));return new a(e)}))),new i([],[])},l.prototype.permute=function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),i=0;i<n.length;i++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(n[i]));return t},l.prototype.bubbleSelectors=function(e){e&&(this.rules=[new i(e.slice(0),[this.rules[0]])])},t.exports=l},{"./anonymous":46,"./directive":57,"./expression":59,"./ruleset":76,"./selector":77,"./value":81}],67:[function(e,t,n){var i=e("./node"),r=e("./selector"),o=e("./mixin-definition"),s=e("../functions/default"),a=function(e,t,n,i,o){this.selector=new r(e),this.arguments=t||[],this.index=n,this.currentFileInfo=i,this.important=o,this.allowRoot=!0};(a.prototype=new i).type="MixinCall",a.prototype.accept=function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},a.prototype.eval=function(e){function t(t,n){var i,r,o;for(i=0;i<2;i++){for(C[i]=!0,s.value(i),r=0;r<n.length&&C[i];r++)(o=n[r]).matchCondition&&(C[i]=C[i]&&o.matchCondition(null,e));t.matchCondition&&(C[i]=C[i]&&t.matchCondition(b,e))}return C[0]||C[1]?C[0]!=C[1]?C[1]?_:M:k:I}var n,i,r,a,u,l,c,h,f,p,d,v,m,g,y,b=[],w=[],x=!1,S=[],C=[],I=-1,k=0,_=1,M=2;for(l=0;l<this.arguments.length;l++)if(u=(a=this.arguments[l]).value.eval(e),a.expand&&Array.isArray(u.value))for(u=u.value,c=0;c<u.length;c++)b.push({value:u[c]});else b.push({name:a.name,value:u});for(y=function(t){return t.matchArgs(null,e)},l=0;l<e.frames.length;l++)if((n=e.frames[l].find(this.selector,null,y)).length>0){for(p=!0,c=0;c<n.length;c++){for(i=n[c].rule,r=n[c].path,f=!1,h=0;h<e.frames.length;h++)if(!(i instanceof o)&&i===(e.frames[h].originalRuleset||e.frames[h])){f=!0;break}f||i.matchArgs(b,e)&&((d={mixin:i,group:t(i,r)}).group!==I&&S.push(d),x=!0)}for(s.reset(),m=[0,0,0],c=0;c<S.length;c++)m[S[c].group]++;if(m[k]>0)v=M;else if(v=_,m[_]+m[M]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(b)+"`",index:this.index,filename:this.currentFileInfo.filename};for(c=0;c<S.length;c++)if((d=S[c].group)===k||d===v)try{(i=S[c].mixin)instanceof o||(g=i.originalRuleset||i,(i=new o("",[],i.rules,null,!1,null,g.visibilityInfo())).originalRuleset=g);var F=i.evalCall(e,b,this.important).rules;this._setVisibilityToReplacement(F),Array.prototype.push.apply(w,F)}catch(e){throw{message:e.message,index:this.index,filename:this.currentFileInfo.filename,stack:e.stack}}if(x)return w}throw p?{type:"Runtime",message:"No matching definition was found for `"+this.format(b)+"`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}},a.prototype._setVisibilityToReplacement=function(e){var t;if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},a.prototype.format=function(e){return this.selector.toCSS().trim()+"("+(e?e.map((function(e){var t="";return e.name&&(t+=e.name+":"),t+(e.value.toCSS?e.value.toCSS():"???")})).join(", "):"")+")"},t.exports=a},{"../functions/default":20,"./mixin-definition":68,"./node":70,"./selector":77}],68:[function(e,t,n){var i=e("./selector"),r=e("./element"),o=e("./ruleset"),s=e("./rule"),a=e("./expression"),u=e("../contexts"),l=function(e,t,n,o,s,a,u){this.name=e,this.selectors=[new i([new r(null,e,this.index,this.currentFileInfo)])],this.params=t,this.condition=o,this.variadic=s,this.arity=t.length,this.rules=n,this._lookups={};var l=[];this.required=t.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(l.push(t.name),e)}),0),this.optionalParameters=l,this.frames=a,this.copyVisibilityInfo(u),this.allowRoot=!0};(l.prototype=new o).type="MixinDefinition",l.prototype.evalFirst=!0,l.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))},l.prototype.evalParams=function(e,t,n,i){var r,l,c,h,f,p,d,v,m=new o(null,null),g=this.params.slice(0),y=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(m.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new u.Eval(t,[m].concat(t.frames)),n)for(y=(n=n.slice(0)).length,c=0;c<y;c++)if(p=(l=n[c])&&l.name){for(d=!1,h=0;h<g.length;h++)if(!i[h]&&p===g[h].name){i[h]=l.value.eval(e),m.prependRule(new s(p,l.value.eval(e))),d=!0;break}if(d){n.splice(c,1),c--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+n[c].name+" not found"}}for(v=0,c=0;c<g.length;c++)if(!i[c]){if(l=n&&n[v],p=g[c].name)if(g[c].variadic){for(r=[],h=v;h<y;h++)r.push(n[h].value.eval(e));m.prependRule(new s(p,new a(r).eval(e)))}else{if(f=l&&l.value)f=f.eval(e);else{if(!g[c].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+y+" for "+this.arity+")"};f=g[c].value.eval(t),m.resetCache()}m.prependRule(new s(p,f)),i[c]=f}if(g[c].variadic&&n)for(h=v;h<y;h++)i[h]=n[h].value.eval(e);v++}return m},l.prototype.makeImportant=function(){var e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules;return new l(this.name,this.params,e,this.condition,this.variadic,this.frames)},l.prototype.eval=function(e){return new l(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||e.frames.slice(0))},l.prototype.evalCall=function(e,t,n){var i,r,l=[],c=this.frames?this.frames.concat(e.frames):e.frames,h=this.evalParams(e,new u.Eval(e,c),t,l);return h.prependRule(new s("@arguments",new a(l).eval(e))),i=this.rules.slice(0),(r=new o(null,i)).originalRuleset=this,r=r.eval(new u.Eval(e,[this,h].concat(c))),n&&(r=r.makeImportant()),r},l.prototype.matchCondition=function(e,t){return!(this.condition&&!this.condition.eval(new u.Eval(t,[this.evalParams(t,new u.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},l.prototype.matchArgs=function(e,t){var n,i=e&&e.length||0,r=this.optionalParameters,o=e?e.reduce((function(e,t){return r.indexOf(t.name)<0?e+1:e}),0):0;if(this.variadic){if(o<this.required-1)return!1}else{if(o<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(o,this.arity);for(var s=0;s<n;s++)if(!this.params[s].name&&!this.params[s].variadic&&e[s].value.eval(t).toCSS()!=this.params[s].value.eval(t).toCSS())return!1;return!0},t.exports=l},{"../contexts":11,"./element":58,"./expression":59,"./rule":74,"./ruleset":76,"./selector":77}],69:[function(e,t,n){var i=e("./node"),r=e("./operation"),o=e("./dimension"),s=function(e){this.value=e};(s.prototype=new i).type="Negative",s.prototype.genCSS=function(e,t){t.add("-"),this.value.genCSS(e,t)},s.prototype.eval=function(e){return e.isMathOn()?new r("*",[new o(-1),this.value]).eval(e):new s(this.value.eval(e))},t.exports=s},{"./dimension":56,"./node":70,"./operation":71}],70:[function(e,t,n){var i=function(){};i.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,n,i){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},i.prototype.genCSS=function(e,t){t.add(this.value)},i.prototype.accept=function(e){this.value=e.visit(this.value)},i.prototype.eval=function(){return this},i.prototype._operate=function(e,t,n,i){switch(t){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"/":return n/i}},i.prototype.fround=function(e,t){var n=e&&e.numPrecision;return null==n?t:Number((t+2e-16).toFixed(n))},i.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 n=0;n<e.length;n++)if(0!==i.compare(e[n],t[n]))return;return 0}}},i.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0},i.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},i.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},i.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},i.prototype.ensureVisibility=function(){this.nodeVisible=!0},i.prototype.ensureInvisibility=function(){this.nodeVisible=!1},i.prototype.isVisible=function(){return this.nodeVisible},i.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},i.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},t.exports=i},{}],71:[function(e,t,n){var i=e("./node"),r=e("./color"),o=e("./dimension"),s=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n};(s.prototype=new i).type="Operation",s.prototype.accept=function(e){this.operands=e.visit(this.operands)},s.prototype.eval=function(e){var t=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn()){if(t instanceof o&&n instanceof r&&(t=t.toColor()),n instanceof o&&t instanceof r&&(n=n.toColor()),!t.operate)throw{type:"Operation",message:"Operation on an invalid type"};return t.operate(e,this.op,n)}return new s(this.op,[t,n],this.isSpaced)},s.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)},t.exports=s},{"./color":50,"./dimension":56,"./node":70}],72:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};(r.prototype=new i).type="Paren",r.prototype.genCSS=function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},r.prototype.eval=function(e){return new r(this.value.eval(e))},t.exports=r},{"./node":70}],73:[function(e,t,n){var i=e("./node"),r=e("./js-eval-node"),o=e("./variable"),s=function(e,t,n,i,r){this.escaped=null==n||n,this.value=t||"",this.quote=e.charAt(0),this.index=i,this.currentFileInfo=r};(s.prototype=new r).type="Quoted",s.prototype.genCSS=function(e,t){this.escaped||t.add(this.quote,this.currentFileInfo,this.index),t.add(this.value),this.escaped||t.add(this.quote)},s.prototype.containsVariables=function(){return this.value.match(/(`([^`]+)`)|@\{([\w-]+)\}/)},s.prototype.eval=function(e){function t(e,t,n){var i=e;do{i=(e=i).replace(t,n)}while(e!==i);return i}var n=this,i=this.value;return i=t(i,/`([^`]+)`/g,(function(t,i){return String(n.evaluateJavaScript(i,e))})),i=t(i,/@\{([\w-]+)\}/g,(function(t,i){var r=new o("@"+i,n.index,n.currentFileInfo).eval(e,!0);return r instanceof s?r.value:r.toCSS()})),new s(this.quote+i+this.quote,i,this.escaped,this.index,this.currentFileInfo)},s.prototype.compare=function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:i.numericCompare(this.value,e.value)},t.exports=s},{"./js-eval-node":64,"./node":70,"./variable":82}],74:[function(e,t,n){var i=e("./node"),r=e("./value"),o=e("./keyword"),s=function(e,t,n,o,s,a,u,l){this.name=e,this.value=t instanceof i?t:new r([t]),this.important=n?" "+n.trim():"",this.merge=o,this.index=s,this.currentFileInfo=a,this.inline=u||!1,this.variable=void 0!==l?l:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0};(s.prototype=new i).type="Rule",s.prototype.genCSS=function(e,t){t.add(this.name+(e.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(e,t)}catch(e){throw e.index=this.index,e.filename=this.currentFileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this.currentFileInfo,this.index)},s.prototype.eval=function(e){var t,n=!1,i=this.name,r=this.variable;"string"!=typeof i&&(i=1===i.length&&i[0]instanceof o?i[0].value:function(e,t){var n,i="",r=t.length,o={add:function(e){i+=e}};for(n=0;n<r;n++)t[n].eval(e).genCSS(e,o);return i}(e,i),r=!1),"font"!==i||e.strictMath||(n=!0,e.strictMath=!0);try{if(e.importantScope.push({}),t=this.value.eval(e),!this.variable&&"DetachedRuleset"===t.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.index,filename:this.currentFileInfo.filename};var a=this.important,u=e.importantScope.pop();return!a&&u.important&&(a=u.important),new s(i,t,a,this.merge,this.index,this.currentFileInfo,this.inline,r)}catch(e){throw"number"!=typeof e.index&&(e.index=this.index,e.filename=this.currentFileInfo.filename),e}finally{n&&(e.strictMath=!1)}},s.prototype.makeImportant=function(){return new s(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)},t.exports=s},{"./keyword":65,"./node":70,"./value":81}],75:[function(e,t,n){var i=e("./node"),r=e("./variable"),o=function(e){this.variable=e,this.allowRoot=!0};(o.prototype=new i).type="RulesetCall",o.prototype.eval=function(e){return new r(this.variable).eval(e).callEval(e)},t.exports=o},{"./node":70,"./variable":82}],76:[function(e,t,n){var i=e("./node"),r=e("./rule"),o=e("./selector"),s=e("./element"),a=e("./paren"),u=e("../contexts"),l=e("../functions/function-registry"),c=e("../functions/default"),h=e("./debug-info"),f=function(e,t,n,i){this.selectors=e,this.rules=t,this._lookups={},this.strictImports=n,this.copyVisibilityInfo(i),this.allowRoot=!0};(f.prototype=new i).type="Ruleset",f.prototype.isRuleset=!0,f.prototype.isRulesetLike=!0,f.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))},f.prototype.eval=function(e){var t,n,i,o,s=this.selectors,a=!1;if(s&&(n=s.length)){for(t=[],c.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),o=0;o<n;o++)i=s[o].eval(e),t.push(i),i.evaldCondition&&(a=!0);c.reset()}else a=!0;var u,h,p=this.rules?this.rules.slice(0):null,d=new f(t,p,this.strictImports,this.visibilityInfo());d.originalRuleset=this,d.root=this.root,d.firstRoot=this.firstRoot,d.allowImports=this.allowImports,this.debugInfo&&(d.debugInfo=this.debugInfo),a||(p.length=0),d.functionRegistry=function(e){for(var t,n=0,i=e.length;n!==i;++n)if(t=e[n].functionRegistry)return t;return l}(e.frames).inherit();var v=e.frames;v.unshift(d);var m=e.selectors;m||(e.selectors=m=[]),m.unshift(this.selectors),(d.root||d.allowImports||!d.strictImports)&&d.evalImports(e);var g=d.rules,y=g?g.length:0;for(o=0;o<y;o++)g[o].evalFirst&&(g[o]=g[o].eval(e));var b=e.mediaBlocks&&e.mediaBlocks.length||0;for(o=0;o<y;o++)"MixinCall"===g[o].type?(p=g[o].eval(e).filter((function(e){return!(e instanceof r&&e.variable&&d.variable(e.name))})),g.splice.apply(g,[o,1].concat(p)),y+=p.length-1,o+=p.length-1,d.resetCache()):"RulesetCall"===g[o].type&&(p=g[o].eval(e).rules.filter((function(e){return!(e instanceof r&&e.variable)})),g.splice.apply(g,[o,1].concat(p)),y+=p.length-1,o+=p.length-1,d.resetCache());for(o=0;o<g.length;o++)(u=g[o]).evalFirst||(g[o]=u=u.eval?u.eval(e):u);for(o=0;o<g.length;o++)if((u=g[o])instanceof f&&u.selectors&&1===u.selectors.length&&u.selectors[0].isJustParentSelector()){g.splice(o--,1);for(var w=0;w<u.rules.length;w++)(h=u.rules[w]).copyVisibilityInfo(u.visibilityInfo()),h instanceof r&&h.variable||g.splice(++o,0,h)}if(v.shift(),m.shift(),e.mediaBlocks)for(o=b;o<e.mediaBlocks.length;o++)e.mediaBlocks[o].bubbleSelectors(t);return d},f.prototype.evalImports=function(e){var t,n,i=this.rules;if(i)for(t=0;t<i.length;t++)"Import"===i[t].type&&((n=i[t].eval(e))&&(n.length||0===n.length)?(i.splice.apply(i,[t,1].concat(n)),t+=n.length-1):i.splice(t,1,n),this.resetCache())},f.prototype.makeImportant=function(){return new f(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())},f.prototype.matchArgs=function(e){return!e||0===e.length},f.prototype.matchCondition=function(e,t){var n=this.selectors[this.selectors.length-1];return!(!n.evaldCondition||n.condition&&!n.condition.eval(new u.Eval(t,t.frames)))},f.prototype.resetCache=function(){this._rulesets=null,this._variables=null,this._lookups={}},f.prototype.variables=function(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof r&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var n=t.root.variables();for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}),{}):{}),this._variables},f.prototype.variable=function(e){return this.variables()[e]},f.prototype.rulesets=function(){if(!this.rules)return[];var e,t,n=[],i=this.rules,r=i.length;for(e=0;e<r;e++)(t=i[e]).isRuleset&&n.push(t);return n},f.prototype.prependRule=function(e){var t=this.rules;t?t.unshift(e):this.rules=[e]},f.prototype.find=function(e,t,n){t=t||this;var i,r,s=[],a=e.toCSS();return a in this._lookups?this._lookups[a]:(this.rulesets().forEach((function(a){if(a!==t)for(var u=0;u<a.selectors.length;u++)if(i=e.match(a.selectors[u])){if(e.elements.length>i){if(!n||n(a)){r=a.find(new o(e.elements.slice(i)),t,n);for(var l=0;l<r.length;++l)r[l].path.push(a);Array.prototype.push.apply(s,r)}}else s.push({rule:a,path:[]});break}})),this._lookups[a]=s,s)},f.prototype.genCSS=function(e,t){function n(e){return"boolean"==typeof e.isRulesetLike?e.isRulesetLike:"function"==typeof e.isRulesetLike&&e.isRulesetLike()}var i,r,o,s,a,u=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var l,c=e.compress?"":Array(e.tabLevel+1).join(" "),f=e.compress?"":Array(e.tabLevel).join(" "),p=0,d=0;for(i=0;i<this.rules.length;i++)"Comment"===(s=this.rules[i]).type?(d===i&&d++,u.push(s)):s.isCharset&&s.isCharset()?(u.splice(p,0,s),p++,d++):"Import"===s.type?(u.splice(d,0,s),d++):u.push(s);if(u=[].concat(u),!this.root){(o=h(e,this,f))&&(t.add(o),t.add(f));var v,m=this.paths,g=m.length;for(l=e.compress?",":",\n"+f,i=0;i<g;i++)if(v=(a=m[i]).length)for(i>0&&t.add(l),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,r=1;r<v;r++)a[r].genCSS(e,t);t.add((e.compress?"{":" {\n")+c)}for(i=0;i<u.length;i++){s=u[i],i+1===u.length&&(e.lastRule=!0);var y=e.lastRule;n(s)&&(e.lastRule=!1),s.genCSS?s.genCSS(e,t):s.value&&t.add(s.value.toString()),e.lastRule=y,e.lastRule?e.lastRule=!1:t.add(e.compress?"":"\n"+c)}this.root||(t.add(e.compress?"}":"\n"+f+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},f.prototype.joinSelectors=function(e,t,n){for(var i=0;i<n.length;i++)this.joinSelector(e,t,n[i])},f.prototype.joinSelector=function(e,t,n){function i(e,t){var n,i;if(0===e.length)n=new a(e[0]);else{var r=[];for(i=0;i<e.length;i++)r.push(new s(null,e[i],t.index,t.currentFileInfo));n=new a(new o(r))}return n}function r(e,t){var n;return n=new s(null,e,t.index,t.currentFileInfo),new o([n])}function u(e,t,n,i){var r,o,a;if(r=[],e.length>0?(o=(r=e.slice(0)).pop(),a=i.createDerived(o.elements.slice(0))):a=i.createDerived([]),t.length>0){var u=n.combinator,l=t[0].elements[0];u.emptyOrWhitespace&&!l.combinator.emptyOrWhitespace&&(u=l.combinator),a.elements.push(new s(u,l.value,n.index,n.currentFileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&r.push(a),t.length>1){var c=t.slice(1);c=c.map((function(e){return e.createDerived(e.elements,[])})),r=r.concat(c)}return r}function l(e,t,n,i,r){var o;for(o=0;o<e.length;o++){var s=u(e[o],t,n,i);r.push(s)}return r}function c(e,t){var n,i;if(0!==e.length){if(0===t.length)return void t.push([new o(e)]);for(n=0;n<t.length;n++)(i=t[n]).length>0?i[i.length-1]=i[i.length-1].createDerived(i[i.length-1].elements.concat(e)):i.push(new o(e))}}function h(e,t){var n=t.createDerived(t.elements,t.extendList,t.evaldCondition);return n.copyVisibilityInfo(e),n}var f,p;if(!function e(t,n,o){function a(e){var t;return"Paren"!==e.value.type||"Selector"!==(t=e.value.value).type?null:t}var h,f,p,d,v,m,g,y,b,w,x=!1;for(d=[],v=[[]],h=0;h<o.elements.length;h++)if("&"!==(y=o.elements[h]).value){var S=a(y);if(null!=S){c(d,v);var C,I=[],k=[];for(C=e(I,n,S),x=x||C,p=0;p<I.length;p++)l(v,[r(i(I[p],y),y)],y,o,k);v=k,d=[]}else d.push(y)}else{for(x=!0,m=[],c(d,v),f=0;f<v.length;f++)if(g=v[f],0===n.length)g.length>0&&g[0].elements.push(new s(y.combinator,"",y.index,y.currentFileInfo)),m.push(g);else for(p=0;p<n.length;p++){var _=u(g,n[p],y,o);m.push(_)}v=m,d=[]}for(c(d,v),h=0;h<v.length;h++)(b=v[h].length)>0&&(t.push(v[h]),w=v[h][b-1],v[h][b-1]=w.createDerived(w.elements,o.extendList));return x}(p=[],t,n))if(t.length>0)for(p=[],f=0;f<t.length;f++){var d=t[f].map(h.bind(this,n.visibilityInfo()));d.push(n),p.push(d)}else p=[[n]];for(f=0;f<p.length;f++)e.push(p[f])},t.exports=f},{"../contexts":11,"../functions/default":20,"../functions/function-registry":22,"./debug-info":54,"./element":58,"./node":70,"./paren":72,"./rule":74,"./selector":77}],77:[function(e,t,n){var i=e("./node"),r=e("./element"),o=function(e,t,n,i,r,o){this.elements=e,this.extendList=t,this.condition=n,this.currentFileInfo=r||{},n||(this.evaldCondition=!0),this.copyVisibilityInfo(o)};(o.prototype=new i).type="Selector",o.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))},o.prototype.createDerived=function(e,t,n){var i=this.visibilityInfo();n=null!=n?n:this.evaldCondition;var r=new o(e,t||this.extendList,null,this.index,this.currentFileInfo,i);return r.evaldCondition=n,r.mediaEmpty=this.mediaEmpty,r},o.prototype.createEmptySelectors=function(){var e=new r("","&",this.index,this.currentFileInfo),t=[new o([e],null,null,this.index,this.currentFileInfo)];return t[0].mediaEmpty=!0,t},o.prototype.match=function(e){var t,n,i=this.elements,r=i.length;if(e.CacheElements(),0===(t=e._elements.length)||r<t)return 0;for(n=0;n<t;n++)if(i[n].value!==e._elements[n])return 0;return t},o.prototype.CacheElements=function(){if(!this._elements){var e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);e?"&"===e[0]&&e.shift():e=[],this._elements=e}},o.prototype.isJustParentSelector=function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},o.prototype.eval=function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,i=this.extendList;return n=n&&n.map((function(t){return t.eval(e)})),i=i&&i.map((function(t){return t.eval(e)})),this.createDerived(n,i,t)},o.prototype.genCSS=function(e,t){var n;if(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.currentFileInfo,this.index),!this._css)for(n=0;n<this.elements.length;n++)this.elements[n].genCSS(e,t)},o.prototype.getIsOutput=function(){return this.evaldCondition},t.exports=o},{"./element":58,"./node":70}],78:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};(r.prototype=new i).type="UnicodeDescriptor",t.exports=r},{"./node":70}],79:[function(e,t,n){var i=e("./node"),r=e("../data/unit-conversions"),o=function(e,t,n){this.numerator=e?e.slice(0).sort():[],this.denominator=t?t.slice(0).sort():[],n?this.backupUnit=n:e&&e.length&&(this.backupUnit=e[0])};(o.prototype=new i).type="Unit",o.prototype.clone=function(){return new o(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},o.prototype.genCSS=function(e,t){var n=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!n&&this.backupUnit?t.add(this.backupUnit):!n&&this.denominator.length&&t.add(this.denominator[0])},o.prototype.toString=function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},o.prototype.compare=function(e){return this.is(e.toString())?0:void 0},o.prototype.is=function(e){return this.toString().toUpperCase()===e.toUpperCase()},o.prototype.isLength=function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},o.prototype.isEmpty=function(){return 0===this.numerator.length&&0===this.denominator.length},o.prototype.isSingular=function(){return this.numerator.length<=1&&0===this.denominator.length},o.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)},o.prototype.usedUnits=function(){var e,t,n,i={};for(n in t=function(t){return e.hasOwnProperty(t)&&!i[n]&&(i[n]=t),t},r)r.hasOwnProperty(n)&&(e=r[n],this.map(t));return i},o.prototype.cancel=function(){var e,t,n={};for(t=0;t<this.numerator.length;t++)n[e=this.numerator[t]]=(n[e]||0)+1;for(t=0;t<this.denominator.length;t++)n[e=this.denominator[t]]=(n[e]||0)-1;for(e in this.numerator=[],this.denominator=[],n)if(n.hasOwnProperty(e)){var i=n[e];if(i>0)for(t=0;t<i;t++)this.numerator.push(e);else if(i<0)for(t=0;t<-i;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()},t.exports=o},{"../data/unit-conversions":14,"./node":70}],80:[function(e,t,n){var i=e("./node"),r=function(e,t,n,i){this.value=e,this.currentFileInfo=n,this.index=t,this.isEvald=i};(r.prototype=new i).type="Url",r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.genCSS=function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},r.prototype.eval=function(e){var t,n=this.value.eval(e);if(!this.isEvald&&((t=this.currentFileInfo&&this.currentFileInfo.rootpath)&&"string"==typeof n.value&&e.isPathRelative(n.value)&&(n.quote||(t=t.replace(/[\(\)'"\s]/g,(function(e){return"\\"+e}))),n.value=t+n.value),n.value=e.normalizePath(n.value),e.urlArgs&&!n.value.match(/^\s*data:/))){var i=(-1===n.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==n.value.indexOf("#")?n.value=n.value.replace("#",i+"#"):n.value+=i}return new r(n,this.index,this.currentFileInfo,!0)},t.exports=r},{"./node":70}],81:[function(e,t,n){var i=e("./node"),r=function(e){if(this.value=e,!e)throw new Error("Value requires an array argument")};(r.prototype=new i).type="Value",r.prototype.accept=function(e){this.value&&(this.value=e.visitArray(this.value))},r.prototype.eval=function(e){return 1===this.value.length?this.value[0].eval(e):new r(this.value.map((function(t){return t.eval(e)})))},r.prototype.genCSS=function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")},t.exports=r},{"./node":70}],82:[function(e,t,n){var i=e("./node"),r=function(e,t,n){this.name=e,this.index=t,this.currentFileInfo=n||{}};(r.prototype=new i).type="Variable",r.prototype.eval=function(e){var t,n=this.name;if(0===n.indexOf("@@")&&(n="@"+new r(n.slice(1),this.index,this.currentFileInfo).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+n,filename:this.currentFileInfo.filename,index:this.index};if(this.evaluating=!0,t=this.find(e.frames,(function(t){var i=t.variable(n);if(i)return i.important&&(e.importantScope[e.importantScope.length-1].important=i.important),i.value.eval(e)})))return this.evaluating=!1,t;throw{type:"Name",message:"variable "+n+" is undefined",filename:this.currentFileInfo.filename,index:this.index}},r.prototype.find=function(e,t){for(var n,i=0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null},t.exports=r},{"./node":70}],83:[function(e,t,n){t.exports={getLocation:function(e,t){for(var n=e+1,i=null,r=-1;--n>=0&&"\n"!==t.charAt(n);)r++;return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:r}}}},{}],84:[function(e,t,n){var i=e("../tree"),r=e("./visitor"),o=e("../logger"),s=function(){this._visitor=new r(this),this.contexts=[],this.allExtendsStack=[[]]};s.prototype={run:function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var n,r,o,s,a=[],u=e.rules,l=u?u.length:0;for(n=0;n<l;n++)e.rules[n]instanceof i.Extend&&(a.push(u[n]),e.extendOnEveryPath=!0);var c=e.paths;for(n=0;n<c.length;n++){var h=c[n],f=h[h.length-1].extendList;for((s=f?f.slice(0).concat(a):a)&&(s=s.map((function(e){return e.clone()}))),r=0;r<s.length;r++)this.foundExtends=!0,(o=s[r]).findSelfSelectors(h),o.ruleset=e,0===r&&(o.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(o)}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},visitDirective:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitDirectiveOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1}};var a=function(){this._visitor=new r(this)};a.prototype={run:function(e){var t=new s;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 n=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),n},checkExtendsForNonMatched:function(e){var t=this.extendIndices;e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){var n="_unknown_";try{n=e.selector.toCSS({})}catch(e){}t[e.index+" "+n]||(t[e.index+" "+n]=!0,o.warn("extend '"+n+"' has no matches"))}))},doExtendChaining:function(e,t,n){var r,o,s,a,u,l,c,h,f=[],p=this;for(n=n||0,r=0;r<e.length;r++)for(o=0;o<t.length;o++)l=e[r],c=t[o],l.parent_ids.indexOf(c.object_id)>=0||(u=[c.selfSelectors[0]],(s=p.findMatch(l,u)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach((function(e){var t=c.visibilityInfo();a=p.extendSelector(s,u,e,l.isVisible()),(h=new i.Extend(c.selector,c.option,0,c.currentFileInfo,t)).selfSelectors=a,a[a.length-1].extendList=[h],f.push(h),h.ruleset=c.ruleset,h.parent_ids=h.parent_ids.concat(c.parent_ids,l.parent_ids),c.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))}))));if(f.length){if(this.extendChainCount++,n>100){var d="{unable to calculate}",v="{unable to calculate}";try{d=f[0].selfSelectors[0].toCSS(),v=f[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+d+":extend("+v+")"}}return f.concat(p.doExtendChaining(f,t,n+1))}return f},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var n,i,r,o,s=this.allExtendsStack[this.allExtendsStack.length-1],a=[],u=this;for(r=0;r<s.length;r++)for(i=0;i<e.paths.length;i++)if(o=e.paths[i],!e.extendOnEveryPath){var l=o[o.length-1].extendList;l&&l.length||(n=this.findMatch(s[r],o)).length&&(s[r].hasFoundMatches=!0,s[r].selfSelectors.forEach((function(e){var t;t=u.extendSelector(n,o,e,s[r].isVisible()),a.push(t)})))}e.paths=e.paths.concat(a)}},findMatch:function(e,t){var n,i,r,o,s,a,u,l=e.selector.elements,c=[],h=[];for(n=0;n<t.length;n++)for(i=t[n],r=0;r<i.elements.length;r++)for(o=i.elements[r],(e.allowBefore||0===n&&0===r)&&c.push({pathIndex:n,index:r,matched:0,initialCombinator:o.combinator}),a=0;a<c.length;a++)u=c[a],""===(s=o.combinator.value)&&0===r&&(s=" "),!this.isElementValuesEqual(l[u.matched].value,o.value)||u.matched>0&&l[u.matched].combinator.value!==s?u=null:u.matched++,u&&(u.finished=u.matched===l.length,u.finished&&!e.allowAfter&&(r+1<i.elements.length||n+1<t.length)&&(u=null)),u?u.finished&&(u.length=l.length,u.endPathIndex=n,u.endPathElementIndex=r+1,c.length=0,h.push(u)):(c.splice(a,1),a--);return h},isElementValuesEqual:function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof i.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 i.Selector){if(!(t instanceof i.Selector)||e.elements.length!==t.elements.length)return!1;for(var n=0;n<e.elements.length;n++){if(e.elements[n].combinator.value!==t.elements[n].combinator.value&&(0!==n||(e.elements[n].combinator.value||" ")!==(t.elements[n].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[n].value,t.elements[n].value))return!1}return!0}return!1},extendSelector:function(e,t,n,r){var o,s,a,u,l,c=0,h=0,f=[];for(o=0;o<e.length;o++)s=t[(u=e[o]).pathIndex],a=new i.Element(u.initialCombinator,n.elements[0].value,n.elements[0].index,n.elements[0].currentFileInfo),u.pathIndex>c&&h>0&&(f[f.length-1].elements=f[f.length-1].elements.concat(t[c].elements.slice(h)),h=0,c++),l=s.elements.slice(h,u.index).concat([a]).concat(n.elements.slice(1)),c===u.pathIndex&&o>0?f[f.length-1].elements=f[f.length-1].elements.concat(l):(f=f.concat(t.slice(c,u.pathIndex))).push(new i.Selector(l)),c=u.endPathIndex,(h=u.endPathElementIndex)>=t[c].elements.length&&(h=0,c++);return c<t.length&&h>0&&(f[f.length-1].elements=f[f.length-1].elements.concat(t[c].elements.slice(h)),c++),(f=f.concat(t.slice(c,t.length))).map((function(e){var t=e.createDerived(e.elements);return r?t.ensureVisibility():t.ensureInvisibility(),t}))},visitMedia:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitMediaOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},visitDirective:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitDirectiveOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}},t.exports=a},{"../logger":33,"../tree":62,"./visitor":91}],85:[function(e,t,n){function i(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}i.prototype.addImport=function(e){var t=this,n={callback:e,args:null,isReady:!1};return this.imports.push(n),function(){n.args=Array.prototype.slice.call(arguments,0),n.isReady=!0,t.tryRun()}},i.prototype.addVariableImport=function(e){this.variableImports.push(e)},i.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()},t.exports=i},{}],86:[function(e,t,n){var i=e("../contexts"),r=e("./visitor"),o=e("./import-sequencer"),s=function(e,t){this._visitor=new r(this),this._importer=e,this._finish=t,this.context=new i.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new o(this._onSequencerEmpty.bind(this))};s.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 n=e.options.inline;if(!e.css||n){var r=new i.Eval(this.context,this.context.frames.slice(0)),o=r.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,r,o)):this.processImportNode(e,r,o)}t.visitDeeper=!1},processImportNode:function(e,t,n){var i,r=e.options.inline;try{i=e.evalForImport(t)}catch(t){t.filename||(t.index=e.index,t.filename=e.currentFileInfo.filename),e.css=!0,e.error=t}if(!i||i.css&&!r)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{i.options.multiple&&(t.importMultiple=!0);for(var o=void 0===i.css,s=0;s<n.rules.length;s++)if(n.rules[s]===e){n.rules[s]=i;break}var a=this.onImported.bind(this,i,t),u=this._sequencer.addImport(a);this._importer.push(i.getPath(),o,i.currentFileInfo,i.options,u)}},onImported:function(e,t,n,i,r,o){n&&(n.filename||(n.index=e.index,n.filename=e.currentFileInfo.filename),this.error=n);var s=this,a=e.options.inline,u=e.options.plugin,l=e.options.optional,c=r||o in s.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return o in s.onceFileDetectionMap||(s.onceFileDetectionMap[o]=!0,!1)}),!o&&l&&(e.skip=!0),i&&(e.root=i,e.importedFilename=o,!a&&!u&&(t.importMultiple||!c))){s.recursionDetector[o]=!0;var h=this.context;this.context=t;try{this._visitor.visit(i)}catch(n){this.error=n}this.context=h}s.importCount--,s.isFinished&&s._sequencer.tryRun()},visitRule:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitRuleOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitDirective:function(e,t){this.context.frames.unshift(e)},visitDirectiveOut: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()}},t.exports=s},{"../contexts":11,"./import-sequencer":85,"./visitor":91}],87:[function(e,t,n){var i={Visitor:e("./visitor"),ImportVisitor:e("./import-visitor"),MarkVisibleSelectorsVisitor:e("./set-tree-visibility-visitor"),ExtendVisitor:e("./extend-visitor"),JoinSelectorVisitor:e("./join-selector-visitor"),ToCSSVisitor:e("./to-css-visitor")};t.exports=i},{"./extend-visitor":84,"./import-visitor":86,"./join-selector-visitor":88,"./set-tree-visibility-visitor":89,"./to-css-visitor":90,"./visitor":91}],88:[function(e,t,n){var i=e("./visitor"),r=function(){this.contexts=[[]],this._visitor=new i(this)};r.prototype={run:function(e){return this._visitor.visit(e)},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){var n,i=this.contexts[this.contexts.length-1],r=[];this.contexts.push(r),e.root||((n=e.selectors)&&(n=n.filter((function(e){return e.getIsOutput()})),e.selectors=n.length?n:n=null,n&&e.joinSelectors(r,i,n)),n||(e.rules=null),e.paths=r)},visitRulesetOut:function(e){this.contexts.length=this.contexts.length-1},visitMedia:function(e,t){var n=this.contexts[this.contexts.length-1];e.rules[0].root=0===n.length||n[0].multiMedia},visitDirective:function(e,t){var n=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===n.length||null)}},t.exports=r},{"./visitor":91}],89:[function(e,t,n){var i=function(e){this.visible=e};i.prototype.run=function(e){this.visit(e)},i.prototype.visitArray=function(e){if(!e)return e;var t,n=e.length;for(t=0;t<n;t++)this.visit(e[t]);return e},i.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e},t.exports=i},{}],90:[function(e,t,n){var i=e("../tree"),r=e("./visitor"),o=function(e){this._visitor=new r(this),this._context=e};o.prototype={containsSilentNonBlockedChild:function(e){var t;if(null==e)return!1;for(var n=0;n<e.length;n++)if((t=e[n]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},keepOnlyVisibleChilds:function(e){null!=e&&null!=e.rules&&(e.rules=e.rules.filter((function(e){return e.isVisible()})))},isEmpty:function(e){return null==e||null==e.rules||0===e.rules.length},hasVisibleSelector:function(e){return null!=e&&null!=e.paths&&e.paths.length>0},resolveVisibility:function(e,t){if(!e.blocksVisibility()){if(this.isEmpty(e)&&!this.containsSilentNonBlockedChild(t))return;return e}var n=e.rules[0];if(this.keepOnlyVisibleChilds(n),!this.isEmpty(n))return e.ensureVisibility(),e.removeVisibilityBlock(),e},isVisibleRuleset:function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))}};var s=function(e){this._visitor=new r(this),this._context=e,this.utils=new o(e)};s.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitRule: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 n=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,n)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitDirective:function(e,t){return e.rules&&e.rules.length?this.visitDirectiveWithBody(e,t):this.visitDirectiveWithoutBody(e,t)},visitDirectiveWithBody:function(e,t){var n=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,n)},visitDirectiveWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var n=new i.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return n.debugInfo=e.debugInfo,this._visitor.visit(n)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(t&&r instanceof i.Rule&&!r.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:r.index,filename:r.currentFileInfo&&r.currentFileInfo.filename};if(r instanceof i.Call)throw{message:"Function '"+r.name+"' is undefined",index:r.index,filename:r.currentFileInfo&&r.currentFileInfo.filename};if(r.type&&!r.allowRoot)throw{message:r.type+" node returned by a function is not valid here",index:r.index,filename:r.currentFileInfo&&r.currentFileInfo.filename}}},visitRuleset:function(e,t){var n,i=[];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,o=r?r.length:0,s=0;s<o;)(n=r[s])&&n.rules?(i.push(this._visitor.visit(n)),r.splice(s,1),o--):s++;o>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(),i.splice(0,0,e)),1===i.length?i[0]:i},_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 i.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,n,r,o={};for(r=e.length-1;r>=0;r--)if((n=e[r])instanceof i.Rule)if(o[n.name]){(t=o[n.name])instanceof i.Rule&&(t=o[n.name]=[o[n.name].toCSS(this._context)]);var s=n.toCSS(this._context);-1!==t.indexOf(s)?e.splice(r,1):t.push(s)}else o[n.name]=n}},_mergeRules:function(e){if(e){for(var t,n,r,o={},s=0;s<e.length;s++)(n=e[s])instanceof i.Rule&&n.merge&&(r=[n.name,n.important?"!":""].join(","),o[r]?e.splice(s--,1):o[r]=[],o[r].push(n));Object.keys(o).map((function(e){function r(e){return new i.Expression(e.map((function(e){return e.value})))}if((t=o[e]).length>1){n=t[0];var s=[],a=[];t.map((function(e){"+"===e.merge&&(a.length>0&&s.push(r(a)),a=[]),a.push(e)})),s.push(r(a)),n.value=function(e){return new i.Value(e.map((function(e){return e})))}(s)}}))}},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e}},t.exports=s},{"../tree":62,"./visitor":91}],91:[function(e,t,n){function i(e){return e}function r(e,t){var n,i;for(n in e)if(e.hasOwnProperty(n))switch(i=e[n],typeof i){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=t++);break;case"object":t=r(i,t)}return t}var o=e("../tree"),s={visitDeeper:!0},a=!1,u=function(e){this._implementation=e,this._visitFnCache=[],a||(r(o,1),a=!0)};u.prototype={visit:function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e;var n,r=this._visitFnCache,o=this._implementation,a=t<<1,u=1|a,l=r[a],c=r[u],h=s;if(h.visitDeeper=!0,l||(l=o[n="visit"+e.type]||i,c=o[n+"Out"]||i,r[a]=l,r[u]=c),l!==i){var f=l.call(o,e,h);o.isReplacing&&(e=f)}return h.visitDeeper&&e&&e.accept&&e.accept(this),c!=i&&c.call(o,e),e},visitArray:function(e,t){if(!e)return e;var n,i=e.length;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}var r=[];for(n=0;n<i;n++){var o=this.visit(e[n]);void 0!==o&&(o.splice?o.length&&this.flatten(o,r):r.push(o))}return r},flatten:function(e,t){var n,i,r,o,s,a;for(t||(t=[]),i=0,n=e.length;i<n;i++)if(void 0!==(r=e[i]))if(r.splice)for(s=0,o=r.length;s<o;s++)void 0!==(a=r[s])&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(r);return t}},t.exports=u},{"../tree":62}],92:[function(e,t,n){"use strict";function i(e){var t;(t=s.length?s.pop():new r).task=e,o(t)}function r(){this.task=null}var o=e("./raw"),s=[],a=[],u=o.makeRequestCallFromTimer((function(){if(a.length)throw a.shift()}));t.exports=i,r.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(a.push(e),u())}finally{this.task=null,s[s.length]=this}}},{"./raw":93}],93:[function(e,t,i){(function(e){"use strict";function n(e){s.length||o(),s[s.length]=e}function i(){for(;a<s.length;){var e=a;if(a+=1,s[e].call(),a>u){for(var t=0,n=s.length-a;t<n;t++)s[t]=s[t+a];s.length-=a,a=0}}s.length=0,a=0}function r(e){return function(){function t(){clearTimeout(n),clearInterval(i),e()}var n=setTimeout(t,0),i=setInterval(t,50)}}t.exports=n;var o,s=[],a=0,u=1024,l=e.MutationObserver||e.WebKitMutationObserver;o="function"==typeof l?function(e){var t=1,n=new l(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}(i):r(i),n.requestFlush=o,n.makeRequestCallFromTimer=r}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],94:[function(e,t,n){"use strict";function i(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,e!==i&&c(e,this)}function o(e,t){for(;3===e._81;)e=e._65;return r._10&&r._10(e),0===e._81?0===e._45?(e._45=1,void(e._54=t)):1===e._45?(e._45=2,void(e._54=[e._54,t])):void e._54.push(t):void function(e,t){h((function(){var n=1===e._81?t.onFulfilled:t.onRejected;if(null!==n){var i=function(e,t){try{return e(t)}catch(e){return f=e,p}}(n,e._65);i===p?a(t.promise,f):s(t.promise,i)}else 1===e._81?s(t.promise,e._65):a(t.promise,e._65)}))}(e,t)}function s(e,t){if(t===e)return a(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return f=e,p}}(t);if(n===p)return a(e,f);if(n===e.then&&t instanceof r)return e._81=3,e._65=t,void u(e);if("function"==typeof n)return void c(n.bind(t),e)}e._81=1,e._65=t,u(e)}function a(e,t){e._81=2,e._65=t,r._97&&r._97(e,t),u(e)}function u(e){if(1===e._45&&(o(e,e._54),e._54=null),2===e._45){for(var t=0;t<e._54.length;t++)o(e,e._54[t]);e._54=null}}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1,i=function(e,t,n){try{e(t,n)}catch(e){return f=e,p}}(e,(function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,a(t,e))}));n||i!==p||(n=!0,a(t,f))}var h=e("asap/raw"),f=null,p={};t.exports=r,r._10=null,r._97=null,r._61=i,r.prototype.then=function(e,t){if(this.constructor!==r)return function(e,t,n){return new e.constructor((function(s,a){var u=new r(i);u.then(s,a),o(e,new l(t,n,u))}))}(this,e,t);var n=new r(i);return o(this,new l(e,t,n)),n}},{"asap/raw":93}],95:[function(e,t,n){"use strict";function i(e){var t=new r(r._61);return t._81=1,t._65=e,t}var r=e("./core.js");t.exports=r;var o=i(!0),s=i(!1),a=i(null),u=i(void 0),l=i(0),c=i("");r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return u;if(!0===e)return o;if(!1===e)return s;if(0===e)return l;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r((function(t,n){n(e)}))}return i(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r((function(e,n){function i(s,a){if(a&&("object"==typeof a||"function"==typeof a)){if(a instanceof r&&a.then===r.prototype.then){for(;3===a._81;)a=a._65;return 1===a._81?i(s,a._65):(2===a._81&&n(a._65),void a.then((function(e){i(s,e)}),n))}var u=a.then;if("function"==typeof u)return void new r(u.bind(a)).then((function(e){i(s,e)}),n)}t[s]=a,0==--o&&e(t)}if(0===t.length)return e([]);for(var o=t.length,s=0;s<t.length;s++)i(s,t[s])}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){e.forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)}},{"./core.js":94}],96:[function(e,t,n){"function"!=typeof Promise.prototype.done&&(Promise.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,(function(e){setTimeout((function(){throw e}),0)}))})},{}],97:[function(e,t,n){e("asap"),"undefined"==typeof Promise&&(Promise=e("./lib/core.js"),e("./lib/es6-extensions.js")),e("./polyfill-done.js")},{"./lib/core.js":94,"./lib/es6-extensions.js":95,"./polyfill-done.js":96,asap:92}]},{},[2])(2)}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(854),t=n.n(e);!function(e){function n(t){this.options=t,this.deferred=e.Deferred()}window.console||(console={}),console.log=console.log||function(e,t){},console.error=console.error||function(e){},n.prototype.invoke=function(){var e=this;return t().options.env=quadmenu.debug?"development":"production",t().options.logLevel=0,t().options.useFileCache=!0,t().render('@import "'+e.options.lessPath+'";',e.options).then((function(t){e.trigger(t,e.options.action,e.options.id),e.deferred.resolve()}),(function(t){console.log(t),e.deferred.resolve()}))},n.prototype.trigger=function(t,n,i){void 0===n&&console.log("Undefined action"),e(document).trigger("quadmenu_compiler_"+n,[t,i])},n.prototype.promise=function(){return this.deferred.promise()},e(document).on("quadmenu_compiler_end",(function(t,n){e("#redux-compiler-hook").length&&e("#redux-compiler-hook").val(0)})),e(document).on("quadmenu_compiler_error",(function(e,t){alert(t)})),e(document).on("quadmenu_compiler_success",(function(t,n){var i=e(document.getElementById("redux_notification_bar")),r=e(".quadmenu-admin-compiler-alert"),o=r.find('input[name="quadmenu_compiler"]');r.addClass("hidden"),o.attr("disabled",!0).removeClass("button-critical").addClass("delete"),i.append(n).find(".saved_notice").delay(4e3).slideUp()})),e(document).on("quadmenu_compiler_change",(function(t,n,i){e("style#quadmenu_customizer_"+i,"head").remove(),e("head").append('<style id="quadmenu_customizer_'+i+'">'+n.css+"</style>"),console.log("Append CSS")})),e(document).on("quadmenu_compiler_save",(function(t,n,i){e.ajax({type:"POST",dataType:"json",url:quadmenu.ajaxurl,data:{action:"quadmenu_compiler_save",output:n,nonce:quadmenu.nonce},success:function(t){e(document).delay(4e3).trigger("quadmenu_compiler_success",[t.notification_bar]),console.log("Compiled ["+n.imports[0]+"]")},error:function(t){console.log(t),e(document).delay(4e3).trigger("quadmenu_compiler_error",t.responseText)},complete:function(e,t,n){}})})),e(document).on("quadmenu_compiler_files",(function(t,i,r,o){var s=e(this),a=e("#redux_ajax_overlay"),u=e(".redux-action_bar input"),l=e(".redux-action_bar .spinner");a.length&&a.fadeIn(),l.length&&l.addClass("is-active"),console.log("Starting compiler!");var c=function(t,i,r){var o=e.Deferred();o.resolve();var s=[];return e.each(t,(function(t,a){var u=new n({modifyVars:i,lessPath:a,action:r,id:t});e.when(o).then((function(){setTimeout((function(){u.invoke()}),200)})),o=u,s.push(o)})),s}(i,r,o);e.when.apply(e,c).done((function(){a.length&&a.fadeOut(),l.length&&l.removeClass("is-active"),u.length&&u.removeAttr("disabled"),s.trigger("quadmenu_compiler_end"),console.log("Ending compiler!")}))})),e(document).on("ajaxSuccess.redux_save",(function(t,n,i){var r=e("#redux-compiler-hook");if(r.length){var o=r.val(),s=e.parseJSON(n.responseText);if(1==o&&s.variables)try{e(this).trigger("quadmenu_compiler_files",[quadmenu.files,s.variables,"save"])}catch(e){alert("Not JSON")}}})),e(window).on("load",(function(){"undefined"!=typeof quadmenu&&1==quadmenu.compiler&&quadmenu.variables&&quadmenu.files&&(console.log(quadmenu),e(document).trigger("quadmenu_compiler_files",[quadmenu.files,quadmenu.variables,"save"]))})),e(document).on("ready",(function(e){})),e(document).on("quadmenu_customizer_save",(function(t){"undefined"!=typeof quadmenu&&quadmenu.variables&&quadmenu.files&&e(this).trigger("quadmenu_compiler_files",[quadmenu.files,quadmenu.variables,"save"])}))}(jQuery)})()})(); |