/*! 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;s0||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="
"+(t.type||"Syntax")+"Error: "+(t.message||"There is an error in your .less file")+'
in '+f+" ";var p=function(e,t,n){void 0!==e.extract[t]&&c.push('
{content}
'.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)+":
"+c.join("")+"
"),t.stack&&(t.extract||n.logLevel>=4)&&(a+=" Stack Trace"+t.stack.split("\n").slice(1).join(" ")),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=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;n0&&(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;n0&&(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=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()=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;nu.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',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=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(a96)){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;ai&&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=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(nr||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;r57||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=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;y1&&(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=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},i.prototype.addPostProcessor=function(e,t){var n;for(n=0;n=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;t0){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.5?l/(2-s-a):l/(s+a),s){case n:e=(i-r)/l+(i="===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;l1?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;n0&&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;t0;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;i0){for(p=!0,c=0;c0)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;cthis.params.length)return!1}n=Math.min(o,this.arity);for(var s=0;st?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;ni){if(!n||n(a)){r=a.find(new o(e.elements.slice(i)),t,n);for(var l=0;l0&&t.add(l),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,r=1;r0?(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;o0?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;h0&&g[0].elements.push(new s(y.combinator,"",y.index,y.currentFileInfo)),m.push(g);else for(p=0;p0&&(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;f0)for(t=0;t=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=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;r0&&l[u.matched].combinator.value!==s?u=null:u.matched++,u&&(u.finished=u.matched===l.length,u.finished&&!e.allowAfter&&(r+1c&&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 c0&&(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;s0},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;n0?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=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;s1){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;nu){for(var t=0,n=s.length-a;t{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('"),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)})()})();