/**
 * Less - Leaner CSS v4.6.4
 * http://lesscss.org
 *
 * Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>
 * Licensed under the Apache-2.0 License.
 *
 * @license Apache-2.0
 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).less=t()}(this,(function(){"use strict";function e(e){return e.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function t(e,t){if(t)for(const i in t.dataset)if(Object.prototype.hasOwnProperty.call(t.dataset,i))if("env"===i||"dumpLineNumbers"===i||"rootpath"===i||"errorReporting"===i)e[i]=t.dataset[i];else try{e[i]=JSON.parse(t.dataset[i])}catch(e){}}var i=function(t,i,n){const s=n.href||"",r="less:"+(n.title||e(s)),o=t.getElementById(r);let a=!1;const l=t.createElement("style");l.setAttribute("type","text/css"),n.media&&l.setAttribute("media",n.media),l.id=r,l.styleSheet||(l.appendChild(t.createTextNode(i)),a=null!==o&&o.childNodes.length>0&&l.childNodes.length>0&&o.firstChild.nodeValue===l.firstChild.nodeValue);const u=t.getElementsByTagName("head")[0];if(null===o||!1===a){const e=n&&n.nextSibling||null;e?e.parentNode.insertBefore(l,e):u.appendChild(l)}if(o&&!1===a&&o.parentNode.removeChild(o),l.styleSheet)try{l.styleSheet.cssText=i}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},n=function(e){const t=e.document;return t.currentScript||(()=>{const e=t.getElementsByTagName("script");return e[e.length-1]})()},s={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(let t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(let i=0;i<this._listeners.length;i++){const n=this._listeners[i][e];n&&n(t)}},_listeners:[]};class r{constructor(e,t){this.fileManagers=t||[],e=e||{};const i=[],n=i.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]);for(let t=0;t<n.length;t++){const s=n[t],r=e[s];r?this[s]=r.bind(e):t<i.length&&this.warn("missing required function in environment - "+s)}}getFileManager(e,t,i,n,r){e||s.warn("getFileManager called with no filename.. Please report this issue. continuing."),void 0===t&&s.warn("getFileManager called with null directory.. Please report this issue. continuing.");let o=this.fileManagers;i.pluginManager&&(o=[].concat(o).concat(i.pluginManager.getFileManagers()));for(let s=o.length-1;s>=0;s--){const a=o[s];if(a[r?"supportsSync":"supports"](e,t,i,n))return a}return null}addFileManager(e){this.fileManagers.push(e)}clearFileManagers(){this.fileManagers=[]}}var o={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"},a={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:1/400,turn:1}},l={colors:o,unitConversions:a};class u{get type(){return""}constructor(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null,this.value=void 0,this._index=void 0,this._fileInfo=void 0}get currentFileInfo(){return this.fileInfo()}get index(){return this.getIndex()}setParent(e,t){function i(e){e&&e instanceof u&&(e.parent=t)}Array.isArray(e)?e.forEach(i):i(e)}getIndex(){return this._index||this.parent&&this.parent.getIndex()||0}fileInfo(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}}isRulesetLike(){return!1}toCSS(e){const t=[];return this.genCSS(e,{add:function(e,i,n){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")}genCSS(e,t){t.add(this.value)}accept(e){this.value=e.visit(this.value)}eval(e){return this}_operate(e,t,i,n){switch(t){case"+":return i+n;case"-":return i-n;case"*":return i*n;case"/":return i/n}}fround(e,t){const i=e&&e.numPrecision;return i?Number((t+2e-16).toFixed(i)):t}static compare(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)return;let i=e.value,n=t.value;if(!Array.isArray(i))return i===n?0:void 0;if(Array.isArray(n)&&i.length===n.length){for(let e=0;e<i.length;e++)if(0!==u.compare(i[e],n[e]))return;return 0}}static numericCompare(e,t){return e<t?-1:e===t?0:e>t?1:void 0}blocksVisibility(){return void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks}addVisibilityBlock(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1}removeVisibilityBlock(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1}ensureVisibility(){this.nodeVisible=!0}ensureInvisibility(){this.nodeVisible=!1}isVisible(){return this.nodeVisible}visibilityInfo(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}}copyVisibilityInfo(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)}}u.prototype.parse=void 0;class c extends u{get type(){return"Color"}constructor(e,t,i){super();const n=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map((function(e,t){t<3?n.rgb.push(parseInt(e,16)):n.alpha=parseInt(e,16)/255}))):(this.rgb=[],e.split("").map((function(e,t){t<3?n.rgb.push(parseInt(e+e,16)):n.alpha=parseInt(e+e,16)/255}))),void 0===this.alpha&&(this.alpha="number"==typeof t?t:1),void 0!==i&&(this.value=i)}luma(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*e+.7152*t+.0722*i}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e,t){const i=e&&e.compress&&!t;let n,s,r,o=[];if(s=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))s<1&&(r="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;r=s<1?"hsla":"hsl"}else s<1&&(r="rgba");switch(r){case"rgba":o=this.rgb.map((function(e){return h(Math.round(e),255)})).concat(h(s,1));break;case"hsla":o.push(h(s,1));case"hsl":n=this.toHSL(),o=[this.fround(e,n.h),this.fround(e,100*n.s)+"%",this.fround(e,100*n.l)+"%"].concat(o)}if(r)return`${r}(${o.join(","+(i?"":" "))})`;if(n=this.toRGB(),i){const e=n.split("");e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]&&(n=`#${e[1]}${e[3]}${e[5]}`)}return n}operate(e,t,i){const n=new Array(3),s=this.alpha*(1-i.alpha)+i.alpha;for(let s=0;s<3;s++)n[s]=this._operate(e,t,this.rgb[s],i.rgb[s]);return new c(n,s)}toRGB(){return f(this.rgb)}toHSL(){const e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,s=Math.max(e,t,i),r=Math.min(e,t,i);let o,a;const l=(s+r)/2,u=s-r;if(s===r)o=a=0;else{switch(a=l>.5?u/(2-s-r):u/(s+r),s){case e:o=(t-i)/u+(t<i?6:0);break;case t:o=(i-e)/u+2;break;case i:o=(e-t)/u+4}o/=6}return{h:360*o,s:a,l:l,a:n}}toHSV(){const e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,s=Math.max(e,t,i),r=Math.min(e,t,i);let o,a;const l=s,u=s-r;if(a=0===s?0:u/s,s===r)o=0;else{switch(s){case e:o=(t-i)/u+(t<i?6:0);break;case t:o=(i-e)/u+2;break;case i:o=(e-t)/u+4}o/=6}return{h:360*o,s:a,v:l,a:n}}toARGB(){return f([255*this.alpha].concat(this.rgb))}compare(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}static fromKeyword(e){let t;const i=e.toLowerCase();if(o.hasOwnProperty(i)?t=new c(o[i].slice(1)):"transparent"===i&&(t=new c([0,0,0],0)),t)return t.value=e,t}}function h(e,t){return Math.min(Math.max(e,0),t)}function f(e){return"#"+e.map((function(e){return((e=h(Math.round(e),255))<16?"0":"")+e.toString(16)})).join("")}class p extends u{get type(){return"Paren"}constructor(e){super(),this.value=e,this.noSpacing=void 0}genCSS(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")}eval(e){const t=new p(this.value.eval(e));return this.noSpacing&&(t.noSpacing=!0),t}}const d={"":!0," ":!0,"|":!0};class m extends u{get type(){return"Combinator"}constructor(e){super()," "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)}genCSS(e,t){const i=e.compress||d[this.value]?"":" ";t.add(i+this.value+i)}}class g extends u{get type(){return"Element"}constructor(e,t,i,n,s,r){super(),this.combinator=e instanceof m?e:new m(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=i,this._index=n,this._fileInfo=s,this.copyVisibilityInfo(r),this.setParent(this.combinator,this)}accept(e){const t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))}eval(e){return new g(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}genCSS(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())}toCSS(e){const t=e||{};let i=this.value;const n=t.firstSelector;return i instanceof p&&(t.firstSelector=!0),i=i.toCSS?i.toCSS(t):i,t.firstSelector=n,""===i&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(t)+i}}const v={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},y=0,b=1,w=2;function x(e){return Object.prototype.toString.call(e).slice(8,-1)}function S(e){return"Array"===x(e)}function I(e,t={}){if(S(e))return e.map(e=>I(e,t));if(!function(e){if("Object"!==x(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((i,n)=>{if(S(t.props)&&!t.props.includes(n))return i;return function(e,t,i,n,s){const r={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=i),s&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:i,enumerable:!1,writable:!0,configurable:!0})}(i,n,I(e[n],t),e,t.nonenumerable),i},{})}function C(e,t){let i=e+1,n=null,s=-1;for(;--i>=0&&"\n"!==t.charAt(i);)s++;return"number"==typeof e&&(n=(t.slice(0,e).match(/\n/g)||"").length),{line:n,column:s}}function k(e){let t;const i=e.length,n=new Array(i);for(t=0;t<i;t++)n[t]=e[t];return n}function A(e){const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function _(e,t){let i=t||{};if(!t._defaults){i={};const n=I(e);i._defaults=n;const s=t?I(t):{};Object.assign(i,n,s)}return i}function $(e,t){if(t&&t._defaults)return t;const i=_(e,t);if(i.strictMath&&(i.math=v.PARENS),i.relativeUrls&&(i.rewriteUrls=w),"string"==typeof i.math)switch(i.math.toLowerCase()){case"always":i.math=v.ALWAYS;break;case"parens-division":i.math=v.PARENS_DIVISION;break;case"strict":case"parens":i.math=v.PARENS;break;default:i.math=v.PARENS}if("string"==typeof i.rewriteUrls)switch(i.rewriteUrls.toLowerCase()){case"off":i.rewriteUrls=y;break;case"local":i.rewriteUrls=b;break;case"all":i.rewriteUrls=w}return i}function M(e,t=[]){for(let i=0,n=e.length;i<n;i++){const n=e[i];Array.isArray(n)?M(n,t):void 0!==n&&t.push(n)}return t}function E(e){return null==e}var P=Object.freeze({__proto__:null,getLocation:C,copyArray:k,clone:A,defaults:_,copyOptions:$,merge:function(e,t){for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},flattenArray:M,isNullOrUndefined:E});const R=/(<anonymous>|Function):(\d+):(\d+)/,F=function(e,t,i){Error.call(this);const n=e.filename||i;if(this.message=e.message,this.stack=e.stack,this.type=e.type||"Syntax",t&&n){const i=t.contents[n],r=C(e.index,i);var s=r.line;const o=r.column,a=e.call&&C(e.call,i).line,l=i?i.split("\n"):"";if(this.filename=n,this.index=e.index,this.line="number"==typeof s?s+1:null,this.column=o,!this.line&&this.stack){const t=this.stack.match(R),i=new Function("a","throw new Error()");let n=0;try{i()}catch(e){const t=e.stack.match(R);n=1-parseInt(t[2])}t&&(t[2]&&(this.line=parseInt(t[2])+n),t[3]&&(this.column=parseInt(t[3])))}this.callLine=a+1,this.callExtract=l[a],this.extract=[l[this.line-2],l[this.line-1],l[this.line]]}};if(void 0===Object.create){const e=function(){};e.prototype=Error.prototype,F.prototype=new e}else F.prototype=Object.create(Error.prototype);F.prototype.constructor=F,F.prototype.toString=function(e){e=e||{};const t=(this.type??"").toLowerCase().includes("warning"),i=t?this.type:this.type+"Error",n=t?"yellow":"red";let s="";const r=this.extract||[];let o=[],a=function(e){return e};if(e.stylize){const t=typeof e.stylize;if("function"!==t)throw Error(`options.stylize should be a function, got a ${t}!`);a=e.stylize}if(null!==this.line){if(t||"string"!=typeof r[0]||o.push(a(`${this.line-1} ${r[0]}`,"grey")),"string"==typeof r[1]){let e=this.line+" ";r[1]&&(e+=r[1].slice(0,this.column)+a(a(a(r[1].slice(this.column,this.column+1),"bold")+r[1].slice(this.column+1),"red"),"inverse")),o.push(e)}t||"string"!=typeof r[2]||o.push(a(`${this.line+1} ${r[2]}`,"grey")),o=o.join("\n")+a("","reset")+"\n"}return s+=a(`${i}: ${this.message}`,n),this.filename&&(s+=a(" in ",n)+this.filename),this.line&&(s+=a(` on line ${this.line}, column ${this.column+1}:`,"grey")),s+="\n"+o,this.callLine&&(s+=a("from ",n)+(this.filename||"")+"/n",s+=`${a(this.callLine,"grey")} ${this.callExtract}/n`),s};const O={visitDeeper:!0};let V=!1;function L(e){return e}class D{constructor(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},V||(!function e(t,i){let n,s;for(n in t)switch(s=t[n],typeof s){case"function":s.prototype&&s.prototype.type&&(s.prototype.typeIndex=i++);break;case"object":i=e(s,i)}return i}(ze,1),V=!0)}visit(e){if(!e)return e;const t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;const i=this._implementation;let n=this._visitInCache[t],s=this._visitOutCache[t];const r=O;let o;if(r.visitDeeper=!0,n||(o="visit"+e.type,n=i[o]||L,s=i[o+"Out"]||L,this._visitInCache[t]=n,this._visitOutCache[t]=s),n!==L){const t=n.call(i,e,r);e&&i.isReplacing&&(e=t)}if(r.visitDeeper&&e)if(e.length)for(let t=0,i=e.length;t<i;t++)e[t].accept&&e[t].accept(this);else e.accept&&e.accept(this);return s!=L&&s.call(i,e),e}visitArray(e,t){if(!e)return e;const i=e.length;let n;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}const s=[];for(n=0;n<i;n++){const t=this.visit(e[n]);void 0!==t&&(t.splice?t.length&&this.flatten(t,s):s.push(t))}return s}flatten(e,t){let i,n,s,r,o,a;for(t||(t=[]),n=0,i=e.length;n<i;n++)if(s=e[n],void 0!==s)if(s.splice)for(o=0,r=s.length;o<r;o++)a=s[o],void 0!==a&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(s);return t}}const N={},B=function(e,t,i){if(e)for(let n=0;n<i.length;n++)Object.prototype.hasOwnProperty.call(e,i[n])&&(t[i[n]]=e[i[n]])},U=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","mime","useFileCache","processImports","pluginManager","quiet","quietDeprecations"];N.Parse=function(e){B(e,this,U),"string"==typeof this.paths&&(this.paths=[this.paths])};const j=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function q(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function T(e){return"."===e.charAt(0)}N.Eval=function(e,t){B(e,this,j),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},N.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},N.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},N.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},N.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},N.Eval.prototype.inCalc=!1,N.Eval.prototype.mathOn=!0,N.Eval.prototype.isMathOn=function(e){return!!this.mathOn&&(!!("/"!==e||this.math===v.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>v.PARENS_DIVISION)||this.parensStack&&this.parensStack.length))},N.Eval.prototype.pathRequiresRewrite=function(e){return(this.rewriteUrls===b?T:q)(e)},N.Eval.prototype.rewritePath=function(e,t){let i;return t=t||"",i=this.normalizePath(t+e),T(e)&&q(t)&&!1===T(i)&&(i="./"+i),i},N.Eval.prototype.normalizePath=function(e){const t=e.split("/").reverse();let i;for(e=[];0!==t.length;)switch(i=t.pop(),i){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(i):e.pop();break;default:e.push(i)}return e.join("/")};class z{constructor(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}addImport(e){const t=this,i={callback:e,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,t.tryRun()}}addVariableImport(e){this.variableImports.push(e)}tryRun(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){const 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;const e=this.variableImports[0];this.variableImports=this.variableImports.slice(1),e()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()}}const G=function(e,t){this._visitor=new D(this),this._importer=e,this._finish=t,this.context=new N.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new z(this._onSequencerEmpty.bind(this))};G.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){const i=e.options.inline;if(!e.css||i){const t=new N.Eval(this.context,k(this.context.frames)),i=t.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,t,i)):this.processImportNode(e,t,i)}t.visitDeeper=!1},processImportNode:function(e,t,i){let n;const s=e.options.inline;try{n=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!n||n.css&&!s)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{n.options.multiple&&(t.importMultiple=!0);const s=void 0===n.css;for(let t=0;t<i.rules.length;t++)if(i.rules[t]===e){i.rules[t]=n;break}const r=this.onImported.bind(this,n,t),o=this._sequencer.addImport(r);this._importer.push(n.getPath(),s,n.fileInfo(),n.options,o)}},onImported:function(e,t,i,n,s,r){i&&(i.filename||(i.index=e.getIndex(),i.filename=e.fileInfo().filename),this.error=i);const o=this,a=e.options.inline,l=e.options.isPlugin,u=e.options.optional,c=s||r in o.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return r in o.onceFileDetectionMap||(o.onceFileDetectionMap[r]=!0,!1)}),!r&&u&&(e.skip=!0),n&&(e.root=n,e.importedFilename=r,!a&&!l&&(t.importMultiple||!c))){o.recursionDetector[r]=!0;const e=this.context;this.context=t;try{this._visitor.visit(n)}catch(i){this.error=i}this.context=e}o.importCount--,o.isFinished&&o._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){e.value?this.context.frames.unshift(e):e.declarations&&e.declarations.length?e.isRooted?this.context.frames.unshift(e):this.context.frames.unshift(e.declarations[0]):e.rules&&e.rules.length&&this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};class W{constructor(){this._visitor=new D(this),this.contexts=[],this.allExtendsStack=[[]]}run(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i,n,s;const r=[];let o;const a=e.rules,l=a?a.length:0;for(i=0;i<l;i++)e.rules[i]instanceof ze.Extend&&(r.push(a[i]),e.extendOnEveryPath=!0);const u=e.paths;for(i=0;i<u.length;i++){const t=u[i],a=t[t.length-1].extendList;for(o=a?k(a).concat(r):r,o&&(o=o.map((function(e){return e.clone()}))),n=0;n<o.length;n++)this.foundExtends=!0,s=o[n],s.findSelfSelectors(t),s.ruleset=e,0===n&&(s.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(s)}this.contexts.push(e.selectors)}visitRulesetOut(e){e.root||(this.contexts.length=this.contexts.length-1)}visitMedia(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitMediaOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}visitAtRule(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitAtRuleOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}}function J(e){return`/* line ${e.debugInfo.lineNumber}, ${e.debugInfo.fileName} */\n`}function K(e){let 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`}function H(e,t,i){let n="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":n=J(t);break;case"mediaquery":n=K(t);break;case"all":n=J(t)+(i||"")+K(t)}return n}class Q extends u{get type(){return"Comment"}constructor(e,t,i,n){super(),this.value=e,this.isLineComment=t,this._index=i,this._fileInfo=n,this.allowRoot=!0,this.debugInfo=void 0}genCSS(e,t){this.debugInfo&&t.add(H(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)}isSilent(e){const t=e.compress&&"!"!==this.value[2];return this.isLineComment||t}}class Z extends u{get type(){return"Unit"}constructor(e,t,i){super(),this.numerator=e?k(e).sort():[],this.denominator=t?k(t).sort():[],i?this.backupUnit=i:e&&e.length&&(this.backupUnit=e[0])}clone(){return new Z(k(this.numerator),k(this.denominator),this.backupUnit)}genCSS(e,t){const i=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!i&&this.backupUnit?t.add(this.backupUnit):!i&&this.denominator.length&&t.add(this.denominator[0])}toString(){let e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t}compare(e){return this.is(e.toString())?0:void 0}is(e){return this.toString().toUpperCase()===e.toUpperCase()}isLength(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS({}))}isEmpty(){return 0===this.numerator.length&&0===this.denominator.length}isSingular(){return this.numerator.length<=1&&0===this.denominator.length}map(e){let t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)}usedUnits(){let e;const t={};let i,n;for(n in i=function(i){return e.hasOwnProperty(i)&&!t[n]&&(t[n]=i),i},a)a.hasOwnProperty(n)&&(e=a[n],this.map(i));return t}cancel(){const e={};let t,i;for(i=0;i<this.numerator.length;i++)t=this.numerator[i],e[t]=(e[t]||0)+1;for(i=0;i<this.denominator.length;i++)t=this.denominator[i],e[t]=(e[t]||0)-1;for(t in this.numerator=[],this.denominator=[],e)if(e.hasOwnProperty(t)){const n=e[t];if(n>0)for(i=0;i<n;i++)this.numerator.push(t);else if(n<0)for(i=0;i<-n;i++)this.denominator.push(t)}this.numerator.sort(),this.denominator.sort()}}class X extends u{get type(){return"Dimension"}constructor(e,t){if(super(),this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof Z?t:new Z(t?[t]:void 0),this.setParent(this.unit,this)}accept(e){this.unit=e.visit(this.unit)}eval(e){return this}toColor(){const e=this.value;return new c([e,e,e])}genCSS(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());const i=this.fround(e,this.value);let n=String(i);if(0!==i&&i<1e-6&&i>-1e-6&&(n=i.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===i&&this.unit.isLength())return void t.add(n);i>0&&i<1&&(n=n.slice(1))}t.add(n),this.unit.genCSS(e,t)}operate(e,t,i){let n=this._operate(e,t,this.value,i.value),s=this.unit.clone();if("+"===t||"-"===t)if(0===s.numerator.length&&0===s.denominator.length)s=i.unit.clone(),this.unit.backupUnit&&(s.backupUnit=this.unit.backupUnit);else if(0===i.unit.numerator.length&&0===s.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),e.strictUnits&&i.unit.toString()!==s.toString())throw new Error(`Incompatible units. Change the units or use the unit function. Bad units: '${s.toString()}' and '${i.unit.toString()}'.`);n=this._operate(e,t,this.value,i.value)}else"*"===t?(s.numerator=s.numerator.concat(i.unit.numerator).sort(),s.denominator=s.denominator.concat(i.unit.denominator).sort(),s.cancel()):"/"===t&&(s.numerator=s.numerator.concat(i.unit.denominator).sort(),s.denominator=s.denominator.concat(i.unit.numerator).sort(),s.cancel());return new X(n,s)}compare(e){let t,i;if(e instanceof X){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,i=e;else if(t=this.unify(),i=e.unify(),0!==t.unit.compare(i.unit))return;return u.numericCompare(t.value,i.value)}}unify(){return this.convertTo({length:"px",duration:"s",angle:"rad"})}convertTo(e){let t=this.value;const i=this.unit.clone();let n,s,r,o,l,u={};if("string"==typeof e){for(n in a)a[n].hasOwnProperty(e)&&(u={},u[n]=e);e=u}for(s in l=function(e,i){return r.hasOwnProperty(e)?(i?t/=r[e]/r[o]:t*=r[e]/r[o],o):e},e)e.hasOwnProperty(s)&&(o=e[s],r=a[s],i.map(l));return i.cancel(),new X(t,i)}}class Y extends u{get type(){return"Anonymous"}constructor(e,t,i,n,s,r){super(),this.value=e,this._index=t,this._fileInfo=i,this.mapLines=n,this.rulesetLike=void 0!==s&&s,this.allowRoot=!0,this.copyVisibilityInfo(r)}eval(){return new Y(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())}compare(e){return e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0}isRulesetLike(){return this.rulesetLike}genCSS(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}}class ee extends u{get type(){return"Expression"}constructor(e,t){if(super(),this.value=e,this.noSpacing=t,this.parens=void 0,this.parensInOp=void 0,!e)throw new Error("Expression requires an array parameter")}accept(e){this.value=e.visitArray(this.value)}eval(e){const t=this.noSpacing;let i;const n=e.isMathOn(),s=this.parens;let r=!1;s&&e.inParenthesis();const o=this.value;if(o.length>1)i=new ee(o.map((function(t){return t.eval?t.eval(e):t})),this.noSpacing);else if(1===o.length){const t=o[0];!t.parens||t.parensInOp||e.inCalc||(r=!0),i=o[0].eval(e)}else i=this;return s&&e.outOfParenthesis(),!this.parens||!this.parensInOp||n||r||i instanceof X||(i=new p(i)),i.noSpacing=i.noSpacing||t,i}genCSS(e,t){const i=this.value;for(let n=0;n<i.length;n++)i[n].genCSS(e,t),!this.noSpacing&&n+1<i.length&&(i[n+1]instanceof Y&&!(i[n+1]instanceof Y&&","!==i[n+1].value)||t.add(" "))}throwAwayComments(){this.value=this.value.filter((function(e){return!(e instanceof Q)}))}}class te extends u{get type(){return"Value"}constructor(e){if(super(),!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]}accept(e){this.value&&(this.value=e.visitArray(this.value))}eval(e){const t=this.value;return 1===t.length?t[0].eval(e):new te(t.map((function(t){return t.eval(e)})))}genCSS(e,t){const i=this.value;let n;for(n=0;n<i.length;n++)i[n].genCSS(e,t),n+1<i.length&&t.add(e&&e.compress?",":", ")}}function ie(e){if(!e)return;const t={},i=[];for(let n=0;n<e.length;n++){const s=e[n];if(s.merge){const r=s.name;t[r]?e.splice(n--,1):i.push(t[r]=[]),t[r].push(s)}}i.forEach(e=>{if(e.length>0){const t=e[0];let i=[];const n=[new ee(i)];e.forEach(e=>{"+"===e.merge&&i.length>0&&n.push(new ee(i=[])),i.push(e.value),t.important=t.important||e.important}),t.value=new te(n)}})}class ne{constructor(e){this._visitor=new D(this),this._context=e}containsSilentNonBlockedChild(e){let t;if(!e)return!1;for(let i=0;i<e.length;i++)if(t=e[i],t.isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1}keepOnlyVisibleChilds(e){e&&e.rules&&(e.rules=e.rules.filter(e=>e.isVisible()))}isEmpty(e){return!e||!e.rules||0===e.rules.length}hasVisibleSelector(e){return!(!e||!e.paths)&&e.paths.length>0}resolveVisibility(e){if(!e.blocksVisibility()){if(this.isEmpty(e))return;return e}const t=e.rules[0];if(this.keepOnlyVisibleChilds(t),!this.isEmpty(t))return e.ensureVisibility(),e.removeVisibilityBlock(),e}isVisibleRuleset(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))}}const se=function(e){this._visitor=new D(this),this._context=e,this.utils=new ne(e)};se.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){const i=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,i)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){const i=function(e){const t=e.rules;return function(e){const t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,i)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){const t=new ze.Comment(`/* ${e.toCSS(this._context).replace(/\n/g,"")} */\n`);return t.debugInfo=e.debugInfo,this._visitor.visit(t)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(let i=0;i<e.length;i++){const n=e[i];if(t&&n instanceof ze.Declaration&&!n.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n instanceof ze.Call)throw{message:`Function '${n.name}' did not return a root node`,index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n.type&&!n.allowRoot)throw{message:n.type+" node returned by a function is not valid here",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename}}},visitRuleset:function(e,t){let i;const n=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);const s=e.rules;let r=s?s.length:0;for(let e=0;e<r;)i=s[e],i&&i.rules?(n.push(this._visitor.visit(i)),s.splice(e,1),r--):e++;r>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),n.splice(0,0,e)),1===n.length?n[0]:n},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter(e=>{let t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new ze.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(e){if(!e)return;const t={};for(let i=e.length-1;i>=0;i--){let n=e[i];if(n instanceof ze.Declaration)if(Object.prototype.hasOwnProperty.call(t,n.name)){let s=t[n.name];if(!Array.isArray(s)){const e=s.toCSS(this._context);s=t[n.name]=[e]}const r=n.toCSS(this._context);-1!==s.indexOf(r)?e.splice(i,1):s.push(r)}else t[n.name]=n}},_mergeRules:ie};var re={Visitor:D,ImportVisitor:G,MarkVisibleSelectorsVisitor:class{constructor(e){this.visible=e}run(e){this.visit(e)}visitArray(e){if(!e)return e;const t=e.length;let i;for(i=0;i<t;i++)this.visit(e[i]);return e}visit(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e}},ExtendVisitor:class{constructor(){this._visitor=new D(this)}run(e){const t=new W;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];const i=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),i}checkExtendsForNonMatched(e){const t=this.extendIndices;e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){let i="_unknown_";try{i=e.selector.toCSS({})}catch(e){}t[`${e.index} ${i}`]||(t[`${e.index} ${i}`]=!0,s.warn(`WARNING: extend '${i}' has no matches`))}))}doExtendChaining(e,t,i){let n,s,r;const o=[];let a;const l=this;let u,c,h,f;for(i=i||0,n=0;n<e.length;n++)for(s=0;s<t.length;s++)c=e[n],h=t[s],c.parent_ids.indexOf(h.object_id)>=0||(u=[h.selfSelectors[0]],r=l.findMatch(c,u),r.length&&(c.hasFoundMatches=!0,c.selfSelectors.forEach((function(e){const t=h.visibilityInfo();a=l.extendSelector(r,u,e,c.isVisible()),f=new ze.Extend(h.selector,h.option,0,h.fileInfo(),t),f.selfSelectors=a,a[a.length-1].extendList=[f],o.push(f),f.ruleset=h.ruleset,f.parent_ids=f.parent_ids.concat(h.parent_ids,c.parent_ids),h.firstExtendOnThisSelectorPath&&(f.firstExtendOnThisSelectorPath=!0,h.ruleset.paths.push(a))}))));if(o.length){if(this.extendChainCount++,i>100){let e="{unable to calculate}",t="{unable to calculate}";try{e=o[0].selfSelectors[0].toCSS(),t=o[0].selector.toCSS()}catch(e){}throw{message:`extend circular reference detected. One of the circular extends is currently:${e}:extend(${t})`}}return o.concat(l.doExtendChaining(o,t,i+1))}return o}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitSelector(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i;const n=this.allExtendsStack[this.allExtendsStack.length-1],s=[],r=e.paths,o=r.length;for(let t=0;t<n.length;t++){const a=n[t];for(let t=0;t<o;t++){const n=r[t];if(e.extendOnEveryPath)continue;const o=n[n.length-1].extendList;if((!o||!o.length)&&(i=this.findMatch(a,n),i.length)){a.hasFoundMatches=!0;const e=a.selfSelectors,t=a.isVisible();for(let r=0;r<e.length;r++)s.push(this.extendSelector(i,n,e[r],t))}}}e.paths=r.concat(s)}findMatch(e,t){let i,n,s,r,o,a;const l=e.selector.elements,u=[];let c;const h=[];for(i=0;i<t.length;i++)for(n=t[i],s=0;s<n.elements.length;s++)for(r=n.elements[s],(e.allowBefore||0===i&&0===s)&&u.push({pathIndex:i,index:s,matched:0,initialCombinator:r.combinator}),a=0;a<u.length;a++)c=u[a],o=r.combinator.value,""===o&&0===s&&(o=" "),!this.isElementValuesEqual(l[c.matched].value,r.value)||c.matched>0&&l[c.matched].combinator.value!==o?c=null:c.matched++,c&&(c.finished=c.matched===l.length,c.finished&&!e.allowAfter&&(s+1<n.elements.length||i+1<t.length)&&(c=null)),c?c.finished&&(c.length=l.length,c.endPathIndex=i,c.endPathElementIndex=s+1,u.length=0,h.push(c)):(u.splice(a,1),a--);return h}isElementValuesEqual(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof ze.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 ze.Selector){if(!(t instanceof ze.Selector)||e.elements.length!==t.elements.length)return!1;for(let i=0;i<e.elements.length;i++){if(e.elements[i].combinator.value!==t.elements[i].combinator.value&&(0!==i||(e.elements[i].combinator.value||" ")!==(t.elements[i].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[i].value,t.elements[i].value))return!1}return!0}return!1}extendSelector(e,t,i,n){let s,r,o,a,l,u=0,c=0,h=[];for(s=0;s<e.length;s++)a=e[s],r=t[a.pathIndex],o=new ze.Element(a.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),a.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),c=0,u++),l=r.elements.slice(c,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&s>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(t.slice(u,a.pathIndex)),h.push(new ze.Selector(l))),u=a.endPathIndex,c=a.endPathElementIndex,c>=t[u].elements.length&&(c=0,u++);return u<t.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),u++),h=h.concat(t.slice(u,t.length)),h=h.map((function(e){const t=e.createDerived(e.elements);return n?t.ensureVisibility():t.ensureInvisibility(),t})),h}visitMedia(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitMediaOut(e){const t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}visitAtRule(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitAtRuleOut(e){const t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}},JoinSelectorVisitor:class{constructor(){this.contexts=[[]],this._visitor=new D(this)}run(e){return this._visitor.visit(e)}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){const i=this.contexts[this.contexts.length-1],n=[];let s;this.contexts.push(n),e.root||(s=e.selectors,s&&(s=s.filter((function(e){return e.getIsOutput()})),e.selectors=s.length?s:s=null,s&&e.joinSelectors(n,i,s)),s||(e.rules=null),e.paths=n)}visitRulesetOut(e){this.contexts.length=this.contexts.length-1}visitMedia(e,t){const i=this.contexts[this.contexts.length-1];e.rules[0].root=0===i.length||i[0].multiMedia}visitAtRule(e,t){const i=this.contexts[this.contexts.length-1];e.declarations&&e.declarations.length?e.declarations[0].root=0===i.length||i[0].multiMedia:e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===i.length||null)}},ToCSSVisitor:se};var oe=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(t=>{this.add(t,e[t])})},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null);const ae={queryInParens:!0},le={queryInParens:!0};class ue{constructor(){this._counts={}}shouldWarn(e){if(!e)return!0;const t=(this._counts[e]||0)+1;return this._counts[e]=t,t<=5}summarize(e){for(const t of Object.keys(this._counts)){const i=this._counts[t]-5;i>0&&e.warn(`${i} repetitive "${t}" deprecation warning(s) omitted.`)}}}const ce=function e(t,i,n,r){let o;r=r||0;const a=(()=>{let e,t;const i=[];let n,s,r,o,a;const l={};function u(i){const n=l.i,s=t,c=l.i-a,h=l.i+o.length-c,f=l.i+=i,p=e;let d,m,g;for(;l.i<h;l.i++){if(d=p.charCodeAt(l.i),l.autoCommentAbsorb&&47===d){if(m=p.charAt(l.i+1),"/"===m){g={index:l.i,isLineComment:!0};let e=p.indexOf("\n",l.i+2);e<0&&(e=h),l.i=e,g.text=p.slice(g.index,l.i),l.commentStore.push(g);continue}if("*"===m){const e=p.indexOf("*/",l.i+2);if(e>=0){g={index:l.i,text:p.slice(l.i,e+2),isLineComment:!1},l.i+=g.text.length-1,l.commentStore.push(g);continue}}break}if(32!==d&&10!==d&&9!==d&&13!==d)break}if(o=o.slice(i+l.i-f+c),a=l.i,!o.length){if(t<r.length-1)return o=r[++t],u(0),!0;l.finished=!0}return n!==l.i||s!==t}return l.save=()=>{a=l.i,i.push({current:o,i:l.i,j:t})},l.restore=e=>{(l.i>n||l.i===n&&e&&!s)&&(n=l.i,s=e);const r=i.pop();o=r.current,a=l.i=r.i,t=r.j},l.forget=()=>{i.pop()},l.isWhitespace=t=>{const i=l.i+(t||0),n=e.charCodeAt(i);return 32===n||13===n||9===n||10===n},l.$re=e=>{l.i>a&&(o=o.slice(l.i-a),a=l.i);const t=e.exec(o);return t?(u(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=t=>e.charAt(l.i)!==t?null:(u(1),t),l.$peekChar=t=>e.charAt(l.i)!==t?null:t,l.$str=t=>{const i=t.length;for(let n=0;n<i;n++)if(e.charAt(l.i+n)!==t.charAt(n))return null;return u(i),t},l.$quoted=t=>{const i=t||l.i,n=e.charAt(i);if("'"!==n&&'"'!==n)return;const s=e.length,r=i;for(let i=1;i+r<s;i++){switch(e.charAt(i+r)){case"\\":i++;continue;case"\r":case"\n":break;case n:{const s=e.slice(r,r+i+1);return t||0===t?[n,s]:(u(i+1),s)}}}return null},l.$parseUntil=t=>{let i="",n=null,s=!1,r=0;const o=[],a=[],c=e.length,h=l.i;let f,p=l.i,d=l.i,m=!0;f="string"==typeof t?e=>e===t:e=>t.test(e);do{let t=e.charAt(d);if(0===r&&f(t))n=e.slice(p,d),n?a.push(n):a.push(" "),n=a,u(d-h),m=!1;else{if(s){"*"===t&&"/"===e.charAt(d+1)&&(d++,r--,s=!1),d++;continue}switch(t){case"\\":d++,t=e.charAt(d),a.push(e.slice(p,d+1)),p=d+1;break;case"/":"*"===e.charAt(d+1)&&(d++,s=!0,r++);break;case"'":case'"':i=l.$quoted(d),i?(a.push(e.slice(p,d),i),d+=i[1].length-1,p=d+1):(u(d-h),n=t,m=!1);break;case"{":o.push("}"),r++;break;case"(":o.push(")"),r++;break;case"[":o.push("]"),r++;break;case"}":case")":case"]":{const e=o.pop();t===e?r--:(u(d-h),n=e,m=!1)}}d++,d>c&&(m=!1)}}while(m);return n||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=t=>{if("string"==typeof t){for(let i=0;i<t.length;i++)if(e.charAt(l.i+i)!==t.charAt(i))return!1;return!0}return t.test(o)},l.peekChar=t=>e.charAt(l.i)===t,l.currentChar=()=>e.charAt(l.i),l.prevChar=()=>e.charAt(l.i-1),l.getInput=()=>e,l.peekNotNumeric=()=>{const t=e.charCodeAt(l.i);return t>57||t<43||47===t||44===t},l.start=i=>{e=i,l.i=t=a=n=0,r=[i],o=r[0],u(0)},l.end=()=>{let t;const i=l.i>=e.length;return l.i<n&&(t=s,l.i=n),{isFinished:i,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l})();function l(e,t){throw new F({index:a.i,filename:n.filename,type:t||"Syntax",message:e},i)}const u=new ue;function c(e,r,o,l){t.quiet||l&&t.quietDeprecations||l&&!u.shouldWarn(l)||s.warn(new F({index:r??a.i,filename:n.filename,type:o?o.toUpperCase()+" WARNING":"WARNING",message:e},i).toString())}function h(e,t){const i=e instanceof Function?e.call(o):a.$re(e);if(i)return i;l(t||("string"==typeof e?`expected '${e}' got '${a.currentChar()}'`:"unexpected token"))}function f(e,t){if(a.$char(e))return e;l(t||`expected '${e}' got '${a.currentChar()}'`)}function p(e){const t=n.filename;return{lineNumber:C(e,a.getInput()).line+1,fileName:t}}return{parserInput:a,imports:i,fileInfo:n,parseNode:function(e,t,s){let l;const u=[],c=a;try{c.start(e);for(let e,i=0;e=t[i];i++)l=o[e](),u.push(l||null);c.end().isFinished?s(null,u):s(!0,null)}catch(e){throw new F({index:e.index+r,message:e.message},i,n.filename)}},parse:function(s,r,u){let c,h,f,p,d=null,m="";if(u&&u.disablePluginRule&&(o.plugin=function(){a.$re(/^@plugin?\s+/)&&l("@plugin statements are not allowed when disablePluginRule is set to true")}),h=u&&u.globalVars?e.serializeVars(u.globalVars)+"\n":"",f=u&&u.modifyVars?"\n"+e.serializeVars(u.modifyVars):"",t.pluginManager){const e=t.pluginManager.getPreProcessors();for(let r=0;r<e.length;r++)s=e[r].process(s,{context:t,imports:i,fileInfo:n})}(h||u&&u.banner)&&(m=(u&&u.banner?u.banner:"")+h,p=i.contentsIgnoredChars,p[n.filename]=p[n.filename]||0,p[n.filename]+=m.length),s=m+(s=s.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+f,i.contents[n.filename]=s;try{a.start(s),ze.Node.prototype.parse=this,c=new ze.Ruleset(null,this.parsers.primary()),ze.Node.prototype.rootNode=c,c.root=!0,c.firstRoot=!0,c.functionRegistry=oe.inherit()}catch(e){return r(new F(e,i,n.filename))}const g=a.end();if(!g.isFinished){let e=g.furthestPossibleErrorMessage;e||(e="Unrecognised input","}"===g.furthestChar?e+=". Possibly missing opening '{'":")"===g.furthestChar?e+=". Possibly missing opening '('":g.furthestReachedEnd&&(e+=". Possibly missing something")),d=new F({type:"Parse",message:e,index:g.furthest,filename:n.filename},i)}const v=e=>(e=d||e||i.error)?(e instanceof F||(e=new F(e,i,n.filename)),r(e)):r(null,c);if(!1===t.processImports)return v();new re.ImportVisitor(i,v).run(c)},parsers:o={primary:function(){const e=this.mixin;let t,i=[];for(;;){for(;t=this.comment(),t;)i.push(t);if(a.finished)break;if(a.peek("}"))break;if(t=this.extendRule(),t)i=i.concat(t);else if(t=e.definition()||this.declaration()||e.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule(),t)i.push(t);else{let e=!1;for(;a.$char(";");)e=!0;if(!e)break}}return i},comment:function(){if(a.commentStore.length){const e=a.commentStore.shift();return new ze.Comment(e.text,e.isLineComment,e.index+r,n)}},entities:{mixinLookup:function(){return o.mixin.call(!0,!0)},quoted:function(e){let t;const i=a.i;let s=!1;if(a.save(),a.$char("~"))s=!0;else if(e)return void a.restore();if(t=a.$quoted(),t)return a.forget(),new ze.Quoted(t.charAt(0),t.slice(1,-1),s,i+r,n);a.restore()},keyword:function(){const e=a.$char("%")||a.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return ze.Color.fromKeyword(e)||new ze.Keyword(e)},call:function(){let e,t,i;const s=a.i;if(!a.peek(/^url\(/i))if(a.save(),e=a.$re(/^([\w-]+|%|~|progid:[\w.]+)\(/),e){if(e=e[1],i=this.customFuncCall(e),i&&(t=i.parse(),t&&i.stop))return a.forget(),t;if(t=this.arguments(t),a.$char(")"))return a.forget(),new ze.Call(e,t,s+r,n);a.restore("Could not parse call arguments or missing ')'")}else a.forget()},declarationCall:function(){let e,t;const i=a.i;if(a.save(),e=a.$re(/^[\w]+\(/),!e)return void a.forget();if(e=e.substring(0,e.length-1),/^(and|or|not|only|layer)$/i.test(e))return void a.restore();let s,o=this.ruleProperty();if(o&&(s=this.value()),o&&s&&(t=[new ze.Declaration(o,s,null,null,a.i+r,n,!0)]),a.$char(")"))return a.forget(),new ze.Call(e,t,i+r,n);a.restore("Could not parse call arguments or missing ')'")},customFuncCall:function(e){return{alpha:t(o.ieAlpha,!0),boolean:t(i),if:t(i)}[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function i(){return[h(o.condition,"expected condition")]}},arguments:function(e){let t=e||[];const i=[];let n,s;for(a.save();;){if(e)e=!1;else{if(s=o.detachedRuleset()||this.assignment()||o.expression(),!s)break;s.value&&1==s.value.length&&(s=s.value[0]),t.push(s)}a.$char(",")||(a.$char(";")||n)&&(n=!0,s=t.length<1?t[0]:new ze.Value(t),i.push(s),t=[])}return a.forget(),n?i:t},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){let e,t;if(a.save(),e=a.$re(/^\w+(?=\s?=)/i),e)if(a.$char("=")){if(t=o.entity(),t)return a.forget(),new ze.Assignment(e,t);a.restore()}else a.restore();else a.restore()},url:function(){let e;const t=a.i;if(a.autoCommentAbsorb=!1,a.$str("url("))return e=this.quoted()||this.variable()||this.property()||a.$re(/^(?:(?:\\[()'"])|[^()'"])+/)||"",a.autoCommentAbsorb=!0,f(")"),new ze.URL(void 0!==e.value||e instanceof ze.Variable||e instanceof ze.Property?e:new ze.Anonymous(e,t),t+r,n);a.autoCommentAbsorb=!0},variable:function(){let e,t;const i=a.i;if(a.save(),"@"===a.currentChar()&&(t=a.$re(/^@@?[\w-]+/))){if(e=a.currentChar(),"("===e&&!a.prevChar().match(/^\s/)||"["===e&&!a.prevChar().match(/^\s/)){const e=o.variableCall(t);if(e)return a.forget(),e}return a.forget(),new ze.Variable(t,i+r,n)}a.restore()},variableCurly:function(){let e;const t=a.i;if("@"===a.currentChar()&&(e=a.$re(/^@\{([\w-]+)\}/)))return new ze.Variable("@"+e[1],t+r,n)},property:function(){let e;const t=a.i;if("$"===a.currentChar()&&(e=a.$re(/^\$[\w-]+/)))return new ze.Property(e,t+r,n)},color:function(){let e;if(a.save(),"#"===a.currentChar()&&(e=a.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#[])?/))&&!e[2])return a.forget(),new ze.Color(e[1],void 0,e[0]);a.restore()},colorKeyword:function(){a.save();const e=a.autoCommentAbsorb;a.autoCommentAbsorb=!1;const t=a.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(a.autoCommentAbsorb=e,!t)return void a.forget();a.restore();const i=ze.Color.fromKeyword(t);return i?(a.$str(t),i):void 0},dimension:function(){if(a.peekNotNumeric())return;const e=a.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new ze.Dimension(e[1],e[2]):void 0},unicodeDescriptor:function(){let e;if(e=a.$re(/^U\+[0-9a-fA-F?]+(-[0-9a-fA-F?]+)?/),e)return new ze.UnicodeDescriptor(e[0])},javascript:function(){let e;const t=a.i;a.save();const i=a.$char("~");if(a.$char("`")){if(e=a.$re(/^[^`]*`/),e)return c("Inline JavaScript evaluation (backtick expressions) is deprecated and will be removed in Less 5.x. Use Less functions or custom plugins instead.",t,"DEPRECATED","js-eval"),a.forget(),new ze.JavaScript(e.slice(0,-1),Boolean(i),t+r,n);a.restore("invalid javascript definition")}else a.restore()}},variable:function(){let e;if("@"===a.currentChar()&&(e=a.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){let t;const i=a.i,s=!!e;let r=e;if(a.save(),r||"@"===a.currentChar()&&(r=a.$re(/^(@[\w-]+)(\(\s*\))?/))){if(t=this.mixin.ruleLookups(),!t&&(s&&"()"!==a.$str("()")||"()"!==r[2]))return void a.restore("Missing '[...]' lookup in variable call");s||(r=r[1]);const e=new ze.VariableCall(r,i,n);return!s&&o.end()?(a.forget(),e):(a.forget(),new ze.NamespaceValue(e,t,i,n))}a.restore()},extend:function(e){let t,i;const s=a.i;let o,u,f;if(a.$str(e?"&:extend(":":extend(")){do{o=null,t=null;let e=!0;for(;!(o=a.$re(/^(!?all)(?=\s*(\)|,))/))&&(i=this.element(),i);)!e&&i.combinator.value&&c("Targeting complex selectors can have unexpected behavior, and this behavior may change in the future.",s),e=!1,t?t.push(i):t=[i];o=o&&o[1],t||l("Missing target selector for :extend()."),f=new ze.Extend(new ze.Selector(t),o,s+r,n),u?u.push(f):u=[f]}while(a.$char(","));return h(/^\)/),e&&h(/^;/),u}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){const i=a.currentChar();let s,l=!1;const u=a.i;let h,p,d,m,g=!1;if("."===i||"#"===i){if(a.save(),h=this.elements(),h){if(m=a.i,g=a.isWhitespace(-1),a.$char("(")&&(p=this.args(!0).args,f(")"),d=!0,g&&c("Whitespace between a mixin name and parentheses for a mixin call is deprecated",m,"DEPRECATED","mixin-call-whitespace")),!1!==t&&(s=this.ruleLookups()),!0===t&&!s)return void a.restore();if(e&&!s&&!d)return void a.restore();if(!e&&o.important()&&(l=!0),e||o.end()){a.forget();const e=new ze.mixin.Call(h,p,u+r,n,!s&&l);return s?new ze.NamespaceValue(e,s):(d||c("Calling a mixin without parentheses is deprecated",m,"DEPRECATED","mixin-call-no-parens"),e)}}a.restore()}},elements:function(){let e,t,i,s,o;const l=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;for(;o=a.i,t=a.$re(l),t;)s=new ze.Element(i,t,!1,o+r,n),e?e.push(s):e=[s],i=a.$char(">");return e},args:function(e){const t=o.entities,i={args:null,variadic:!1};let n=[];const s=[],r=[];let u,c,h,f,p,d,m,g=!0;for(a.save();;){if(e)d=o.detachedRuleset()||o.expression();else{if(a.commentStore.length=0,a.$str("...")){i.variadic=!0,a.$char(";")&&!u&&(u=!0),(u?s:r).push({variadic:!0});break}d=t.variable()||t.property()||t.literal()||t.keyword()||this.call(!0)}if(!d||!g)break;f=null,d.throwAwayComments&&d.throwAwayComments(),p=d;let v=null;if(e?d.value&&1==d.value.length&&(v=d.value[0]):v=d,v&&(v instanceof ze.Variable||v instanceof ze.Property))if(a.$char(":")){if(n.length>0&&(u&&l("Cannot mix ; and , as delimiter types"),c=!0),p=o.detachedRuleset()||o.expression(),!p){if(!e)return a.restore(),i.args=[],i;l("could not understand value for named argument")}f=h=v.name}else if(a.$str("...")){if(!e){i.variadic=!0,a.$char(";")&&!u&&(u=!0),(u?s:r).push({name:d.name,variadic:!0});break}m=!0}else e||(h=f=v.name,p=null);p&&n.push(p),r.push({name:f,value:p,expand:m}),a.$char(",")?g=!0:(g=";"===a.$char(";"),(g||u)&&(c&&l("Cannot mix ; and , as delimiter types"),u=!0,n.length>1&&(p=new ze.Value(n)),s.push({name:h,value:p,expand:m}),h=null,n=[],c=!1))}return a.forget(),i.args=u?s:r,i},definition:function(){let e,t,i,n,s=[],r=!1;if(!("."!==a.currentChar()&&"#"!==a.currentChar()||a.peek(/^[^{]*\}/)))if(a.save(),t=a.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/),t){e=t[1];const l=this.args(!1);if(s=l.args,r=l.variadic,!a.$char(")"))return void a.restore("Missing closing ')'");if(a.commentStore.length=0,a.$str("when")&&(n=h(o.conditions,"expected condition")),i=o.block(),i)return a.forget(),new ze.mixin.Definition(e,s,i,n,r);a.restore()}else a.restore()},ruleLookups:function(){let e;const t=[];if("["===a.currentChar()){for(;;){if(a.save(),e=this.lookupValue(),!e&&""!==e){a.restore();break}t.push(e),a.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(a.save(),!a.$char("["))return void a.restore();const e=a.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(a.$char("]"))return e||""===e?(a.forget(),e):void a.restore();a.restore()}},entity:function(){const e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return a.$char(";")||a.peek("}")},ieAlpha:function(){let e;if(a.$re(/^opacity=/i))return e=a.$re(/^\d+/),e||(e=h(o.entities.variable,"Could not parse alpha"),e=`@{${e.name.slice(1)}}`),f(")"),new ze.Quoted("",`alpha(opacity=${e})`)},element:function(){let e,t,i;const s=a.i;if(t=this.combinator(),e=a.$re(/^(?:\d+\.\d+|\d+)%/)||a.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||a.$char("*")||a.$char("&")||this.attribute()||a.$re(/^\([^&()@]+\)/)||a.$re(/^[.#:](?=@)/)||this.entities.variableCurly(),!e)if(a.save(),a.$char("("))if(i=this.selector(!1)){let t=[];for(;a.$char(",");)t.push(i),t.push(new Y(",")),i=this.selector(!1);t.push(i),a.$char(")")?(e=t.length>1?new ze.Paren(new he(t)):new ze.Paren(i),a.forget()):a.restore("Missing closing ')'")}else a.restore("Missing closing ')'");else a.forget();if(e)return new ze.Element(t,e,e instanceof ze.Variable,s+r,n)},combinator:function(){let e=a.currentChar();if("/"===e){a.save();const e=a.$re(/^\/[a-z]+\//i);if(e)return a.forget(),new ze.Combinator(e);a.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(a.i++,"^"===e&&"^"===a.currentChar()&&(e="^^",a.i++);a.isWhitespace();)a.i++;return new ze.Combinator(e)}return a.isWhitespace(-1)?new ze.Combinator(" "):new ze.Combinator(null)},selector:function(e){const t=a.i;let i,s,o,u,c,f,p;for(e=!1!==e;(e&&(s=this.extend())||e&&(f=a.$str("when"))||(u=this.element()))&&(f?p=h(this.conditions,"expected condition"):p?l("CSS guard can only be used at the end of selector"):s?c=c?c.concat(s):s:(c&&l("Extend can only be used at the end of selector"),o=a.currentChar(),Array.isArray(u)&&u.forEach(e=>i.push(e)),i?i.push(u):i=[u],u=null),"{"!==o&&"}"!==o&&";"!==o&&","!==o&&")"!==o););if(i)return new ze.Selector(i,c,p,t+r,n);c&&l("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){let e,t;for(;e=this.selector(),e&&(t?t.push(e):t=[e],a.commentStore.length=0,e.condition&&t.length>1&&l("Guards are only currently allowed on a single selector."),a.$char(","));)e.condition&&l("Guards are only currently allowed on a single selector."),a.commentStore.length=0;return t},attribute:function(){if(!a.$char("["))return;const e=this.entities;let t,i,n,s;return(t=e.variableCurly())||(t=h(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),n=a.$re(/^[|~*$^]?=/),n&&(i=e.quoted()||a.$re(/^[0-9]+%/)||a.$re(/^[\w-]+/)||e.variableCurly(),i&&(s=a.$re(/^[iIsS]/))),f("]"),new ze.Attribute(t,n,i,s)},block:function(){let e;if(a.$char("{")&&(e=this.primary())&&a.$char("}"))return e},blockRuleset:function(){let e=this.block();if(e)return new ze.Ruleset(null,e)},detachedRuleset:function(){let e,t,i;if(a.save(),a.$re(/^[.#]\(/)&&(e=this.mixin.args(!1),t=e.args,i=e.variadic,!a.$char(")")))return void a.restore();const n=this.blockRuleset();if(n)return a.forget(),t?new ze.mixin.Definition(null,t,n,null,i):new ze.DetachedRuleset(n);a.restore()},ruleset:function(){let e,i,n;if(a.save(),t.dumpLineNumbers&&(n=p(a.i)),e=this.selectors(),e&&(i=this.block())){a.forget();const s=new ze.Ruleset(e,i,t.strictImports);return t.dumpLineNumbers&&(s.debugInfo=n),s}a.restore()},declaration:function(){let e,t;const i=a.i;let s;const o=a.currentChar();let l,u,c;if("."!==o&&"#"!==o&&"&"!==o&&":"!==o)if(a.save(),e=this.variable()||this.ruleProperty(),e){if(c="string"==typeof e,c&&(t=this.detachedRuleset(),t&&(s=!0)),a.commentStore.length=0,!t){if(u=!c&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?a.$char(";")?new Y(""):this.permissiveValue(/[;}]/,!0):this.anonymousValue(),t)return a.forget(),new ze.Declaration(e,t,!1,u,i+r,n);t||(t=this.value()),t?l=this.important():c&&(t=this.permissiveValue())}if(t&&(this.end()||s))return a.forget(),new ze.Declaration(e,t,l,u,i+r,n);a.restore()}else a.restore()},anonymousValue:function(){const e=a.i,t=a.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(t)return new ze.Anonymous(t[1],e+r)},permissiveValue:function(e){let t,i,s,r;const o=e||";",u=a.i,h=[];function f(){const e=a.currentChar();return"string"==typeof o?e===o:o.test(e)}if(!f()){r=[];do{i=this.comment(),i?r.push(i):(i=this.entity(),i&&r.push(i),a.peek(",")&&(r.push(new ze.Anonymous(",",a.i)),a.$char(",")))}while(i);if(s=f(),r.length>0){if(r=new ze.Expression(r),s)return r;h.push(r)," "===a.prevChar()&&h.push(new ze.Anonymous(" ",u))}if(a.save(),r=a.$parseUntil(o),r){if("string"==typeof r&&l(`Expected '${r}'`,"Parse"),1===r.length&&" "===r[0])return a.forget(),new ze.Anonymous("",u);let e;for(t=0;t<r.length;t++)if(e=r[t],Array.isArray(e))h.push(new ze.Quoted(e[0],e[1],!0,u,n));else{t===r.length-1&&(e=e.trim());const i=new ze.Quoted("'",e,!0,u,n),s=/\$([\w-]+)/g;/@([\w-]+)/g.test(e)&&c("@[ident] in unknown values will not be evaluated as variables in the future. Use @{[ident]}",u,"DEPRECATED","variable-in-unknown-value"),s.test(e)&&c("$[ident] in unknown values will not be evaluated as property references in the future. Use ${[ident]}",u,"DEPRECATED","property-in-unknown-value"),i.variableRegex=/@([\w-]+)|@{([\w-]+)}/g,i.propRegex=/\$([\w-]+)|\${([\w-]+)}/g,h.push(i)}return a.forget(),new ze.Expression(h,!0)}a.restore()}},import:function(){let e,t;const i=a.i,s=a.$re(/^@import\s+/);if(s){const o=(s?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures({}),a.$char(";")||(a.i=i,l("missing semi-colon or unrecognised media features on import")),t=t&&new ze.Value(t),new ze.Import(e,t,o,i+r,n);a.i=i,l("malformed import statement")}},importOptions:function(){let e;const t={};let i,n;if(!a.$char("("))return null;do{if(e=this.importOption(),e){switch(i=e,n=!0,i){case"css":i="less",n=!1;break;case"once":i="multiple",n=!1}if(t[i]=n,!a.$char(","))break}}while(e);return f(")"),t},importOption:function(){const e=a.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(e){const t=this.entities,i=[];let s,o,u,c=!1;a.save();do{a.save(),a.$re(/^[0-9a-z-]*\s+\(/)&&(c=!0),a.restore(),s=t.declarationCall.bind(this)()||t.keyword()||t.variable()||t.mixinLookup(),s?(i.push(s),("Variable"===s.type||"Keyword"===s.type&&/^(and|or|not|only)$/i.test(s.value))&&(c=!0)):a.$char("(")&&(o=this.property(),a.save(),!o&&e.queryInParens&&a.$re(/^[0-9a-z-]*\s*([<>]=|<=|>=|[<>]|=)/)?(a.restore(),o=this.condition(),a.save(),u=this.atomicCondition(null,o.rvalue),u||a.restore()):(a.restore(),s=this.value()),a.$char(")")?o&&!s?(i.push(new ze.Paren(new ze.QueryInParens(o.op,o.lvalue,o.rvalue,u?u.op:null,u?u.rvalue:null,o._index))),s=o):o&&s?(i.push(new ze.Paren(new ze.Declaration(o,s,null,null,a.i+r,n,!0))),c||(i[i.length-1].noSpacing=!0),c=!1):s?(i.push(new ze.Paren(s)),c=!1):l("badly formed media feature definition"):l("Missing closing ')'","Parse"))}while(s);if(a.forget(),i.length>0)return new ze.Expression(i)},mediaFeatures:function(e){const t=this.entities,i=[];let n;do{if(n=this.mediaFeature(e),n){if(i.push(n),!a.$char(","))break;i[i.length-1].noSpacing||(i[i.length-1].noSpacing=!1)}else if(n=t.variable()||t.mixinLookup(),n){if(i.push(n),!a.$char(","))break;i[i.length-1].noSpacing||(i[i.length-1].noSpacing=!1)}}while(n);return i.length>0?i:null},prepareAndGetNestableAtRule:function(e,i,s,o){const u=this.mediaFeatures(o),c=this.block();c||l("media definitions require block statements after any features"),a.forget();const h=new e(c,u,i+r,n);return t.dumpLineNumbers&&(h.debugInfo=s),h},nestableAtRule:function(){let e;const i=a.i;if(t.dumpLineNumbers&&(e=p(i)),a.save(),a.$peekChar("@")){if(a.$str("@media"))return this.prepareAndGetNestableAtRule(ze.Media,i,e,ae);if(a.$str("@container"))return this.prepareAndGetNestableAtRule(ze.Container,i,e,le)}a.restore()},plugin:function(){let e,t,i;const s=a.i;if(a.$re(/^@plugin\s+/)){if(c("The @plugin directive is deprecated and will be replaced in Less 5.x. Use --plugin CLI option or the programmatic plugin API instead.",s,"DEPRECATED","at-plugin"),t=this.pluginArgs(),i=t?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return a.$char(";")||(a.i=s,l("missing semi-colon on @plugin")),new ze.Import(e,null,i,s+r,n);a.i=s,l("malformed @plugin statement")}},pluginArgs:function(){if(a.save(),!a.$char("("))return a.restore(),null;const e=a.$re(/^\s*([^);]+)\)\s*/);return e[1]?(a.forget(),e[1].trim()):(a.restore(),null)},atruleUnknown:function(e,t,i){return e=this.permissiveValue(/^[{;]/),i="{"===a.currentChar(),e?e.value||(e=null):i||";"===a.currentChar()||l("".concat(t," rule is missing block or ending semi-colon")),[e,i]},atruleBlock:function(e,t,i,n){if(e=this.blockRuleset(),a.save(),e||i||(t=this.entity(),e=this.blockRuleset()),e||i)a.forget();else{a.restore();var s=[];for(t=this.entity();a.$char(",");)s.push(t),t=this.entity();t&&s.length>0?(s.push(t),t=s,n=!0):e=this.blockRuleset()}return[e,t,n]},atrule:function(){const e=a.i;let i,s,o,u,c,h,f,d=!0,m=!0,g=!1;if("@"===a.currentChar()){if(s=this.import()||this.plugin()||this.nestableAtRule(),s)return s;if(a.save(),i=a.$re(/^@[a-z-]+/),i){switch(u=i,"-"==i.charAt(1)&&i.indexOf("-",2)>0&&(u="@"+i.slice(i.indexOf("-",2)+1)),u){case"@charset":c=!0,d=!1;break;case"@namespace":h=!0,d=!1;break;case"@keyframes":case"@counter-style":c=!0;break;case"@document":case"@supports":f=!0,m=!1;break;case"@starting-style":case"@layer":m=!1;break;default:f=!0}if(a.commentStore.length=0,c)s=this.entity(),s||l(`expected ${i} identifier`);else if(h)s=this.expression(),s||l(`expected ${i} expression`);else if(f){const e=this.atruleUnknown(s,i,d);s=e[0],d=e[1]}if(d){let e=this.atruleBlock(o,s,m,g);if(o=e[0],s=e[1],g=e[2],!o&&!f){a.restore(),i=a.$re(/^@[a-z-]+/);const t=this.atruleUnknown(s,i,d);s=t[0],d=t[1],d&&(e=this.atruleBlock(o,s,m,g),o=e[0],s=e[1],g=e[2])}}if(o||g||!d&&s&&a.$char(";"))return a.forget(),new ze.AtRule(i,s,o,e+r,n,t.dumpLineNumbers?p(e):null,m);a.restore("at-rule options not recognised")}}},value:function(){let e;const t=[],i=a.i;do{if(e=this.expression(),e&&(t.push(e),!a.$char(",")))break}while(e);if(t.length>0)return new ze.Value(t,i+r)},important:function(){if("!"===a.currentChar())return a.$re(/^! *important/)},sub:function(){let e,t;if(a.save(),a.$char("("))return e=this.addition(),e&&a.$char(")")?(a.forget(),t=new ze.Expression([e]),t.parens=!0,t):void a.restore("Expected ')'");a.restore()},colorOperand:function(){a.save();const e=a.$re(/^[lchrgbs]\s+/);if(e)return a.forget(),new ze.Keyword(e[0]);a.restore()},multiplication:function(){let e,t,i,n,s;if(e=this.operand(),e){for(s=a.isWhitespace(-1);!a.peek(/^\/[*/]/);){if(a.save(),i=a.$char("/")||a.$char("*"),!i){let e=a.i;i=a.$str("./"),i&&c("./ operator is deprecated",e,"DEPRECATED","dot-slash-operator")}if(!i){a.forget();break}if(t=this.operand(),!t){a.restore();break}a.forget(),e.parensInOp=!0,t.parensInOp=!0,n=new ze.Operation(i,[n||e,t],s),s=a.isWhitespace(-1)}return n||e}},addition:function(){let e,t,i,n,s;if(e=this.multiplication(),e){for(s=a.isWhitespace(-1);i=a.$re(/^[-+]\s+/)||!s&&(a.$char("+")||a.$char("-")),i&&(t=this.multiplication(),t);)e.parensInOp=!0,t.parensInOp=!0,n=new ze.Operation(i,[n||e,t],s),s=a.isWhitespace(-1);return n||e}},conditions:function(){let e,t;const i=a.i;let n;if(e=this.condition(!0),e){for(;a.peek(/^,\s*(not\s*)?\(/)&&a.$char(",")&&(t=this.condition(!0),t);)n=new ze.Condition("or",n||e,t,i+r);return n||e}},condition:function(e){let t,i,n;if(t=this.conditionAnd(e),t){if(i=a.$str("or"),i){if(n=this.condition(e),!n)return;t=new ze.Condition(i,t,n)}return t}},conditionAnd:function(e){let t,i,n;const s=this;if(t=function(){const t=s.negatedCondition(e)||s.parenthesisCondition(e);return t||e?t:s.atomicCondition(e)}(),t){if(i=a.$str("and"),i){if(n=this.conditionAnd(e),!n)return;t=new ze.Condition(i,t,n)}return t}},negatedCondition:function(e){if(a.$str("not")){const t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){let t;if(a.save(),a.$str("(")){if(t=function(t){let i;if(a.save(),i=t.condition(e),i){if(a.$char(")"))return a.forget(),i;a.restore()}else a.restore()}(this),t)return a.forget(),t;if(t=this.atomicCondition(e),t){if(a.$char(")"))return a.forget(),t;a.restore(`expected ')' got '${a.currentChar()}'`)}else a.restore()}else a.restore()},atomicCondition:function(e,t){const i=this.entities,n=a.i;let s,o,u,c;const h=function(){return this.addition()||i.keyword()||i.quoted()||i.mixinLookup()}.bind(this);if(s=t||h(),s)return a.$char(">")?c=a.$char("=")?">=":">":a.$char("<")?c=a.$char("=")?"<=":"<":a.$char("=")&&(c=a.$char(">")?"=>":a.$char("<")?"=<":"="),c?(o=h(),o?u=new ze.Condition(c,s,o,n+r,!1):l("expected expression")):t||(u=new ze.Condition("=",s,new ze.Keyword("true"),n+r,!1)),u},operand:function(){const e=this.entities;let t;a.peek(/^-[@$(]/)&&(t=a.$char("-"));let i=this.sub()||e.dimension()||e.color()||e.variable()||e.property()||e.call()||e.quoted(!0)||e.colorKeyword()||this.colorOperand()||e.mixinLookup();return t&&(i.parensInOp=!0,i=new ze.Negative(i)),i},expression:function(){const e=[];let t,i;const n=a.i;do{t=this.comment(),!t||t.isLineComment?(t=this.addition()||this.entity(),t instanceof ze.Comment&&(t=null),t&&(e.push(t),a.peek(/^\/[/*]/)||(i=a.$char("/"),i&&e.push(new ze.Anonymous(i,n+r))))):e.push(t)}while(t);if(e.length>0)return new ze.Expression(e)},property:function(){const e=a.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){let e=[];const t=[];let i,s;a.save();const o=a.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(o)return e=[new ze.Keyword(o[1])],a.forget(),e;function l(i){const n=a.i,s=a.$re(i);if(s)return t.push(n),e.push(s[1])}for(l(/^(\*?)/);l(/^((?:[\w-]+)|(?:[@$]\{[\w-]+\}))/););if(e.length>1&&l(/^((?:\+_|\+)?)\s*:/)){for(a.forget(),""===e[0]&&(e.shift(),t.shift()),s=0;s<e.length;s++)i=e[s],e[s]="@"!==i.charAt(0)&&"$"!==i.charAt(0)?new ze.Keyword(i):"@"===i.charAt(0)?new ze.Variable("@"+i.slice(2,-1),t[s]+r,n):new ze.Property("$"+i.slice(2,-1),t[s]+r,n);return e}a.restore()}}}};ce.serializeVars=e=>{let t="";for(const i in e)if(Object.hasOwnProperty.call(e,i)){const n=e[i];t+=`${("@"===i[0]?"":"@")+i}: ${n}${";"===String(n).slice(-1)?"":";"}`}return t};class he extends u{get type(){return"Selector"}constructor(e,t,i,n,s,r){super(),this.extendList=t,this.condition=i,this.evaldCondition=!i,this._index=n,this._fileInfo=s,this.elements=this.getElements(e),this.mixinElements_=void 0,this.mediaEmpty=void 0,this.copyVisibilityInfo(r),this.setParent(this.elements,this)}accept(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))}createDerived(e,t,i){e=this.getElements(e);const n=new he(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return n.evaldCondition=E(i)?this.evaldCondition:i,n.mediaEmpty=this.mediaEmpty,n}getElements(e){if(!e)return[new g("","&",!1,this._index,this._fileInfo)];if("string"==typeof e){const t=this._fileInfo,i=this.parse;new ce(i.context,i.importManager,t,this._index).parseNode(e,["selector"],(function(n,s){if(n)throw new F({index:n.index,message:n.message},i.imports,t.filename);e=s[0].elements}))}return e}createEmptySelectors(){const e=new g("","&",!1,this._index,this._fileInfo),t=[new he([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t}match(e){const t=this.elements,i=t.length;let n,s;const r=e.mixinElements();if(n=r.length,0===n||i<n)return 0;for(s=0;s<n;s++)if(t[s].value!==r[s])return 0;return n}mixinElements(){if(this.mixinElements_)return this.mixinElements_;let e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#*.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e}isJustParentSelector(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)}eval(e){const t=this.condition&&this.condition.eval(e);let i=this.elements,n=this.extendList;if(i){const t=new Array(i.length);for(let n=0;n<i.length;n++)t[n]=i[n].eval(e);i=t}if(n){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=n[i].eval(e);n=t}return this.createDerived(i,n,t)}genCSS(e,t){let i,n;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),i=0;i<this.elements.length;i++)n=this.elements[i],n.genCSS(e,t)}getIsOutput(){return this.evaldCondition}}class fe extends u{get type(){return"Keyword"}constructor(e){super(),this.value=e}genCSS(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}fe.True=new fe("true"),fe.False=new fe("false");const pe=v;class de extends u{get type(){return"Declaration"}constructor(e,t,i,n,s,r,o,a){super(),this.name=e,this.value=t instanceof u?t:new te([t?new Y(t):null]),this.important=i?" "+i.trim():"",this.merge=n,this._index=s,this._fileInfo=r,this.inline=o||!1,this.variable=void 0!==a?a:"string"==typeof e&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)}genCSS(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(e){const t=e;throw t.index=this._index,t.filename=this._fileInfo&&this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)}eval(e){let t,i,n=!1,s=this.name,r=this.variable;"string"!=typeof s&&(s=1===s.length&&s[0]instanceof fe?s[0].value:function(e,t){let i,n="";const s=t.length,r={add:function(e){n+=e},isEmpty:function(){return""===n}};for(i=0;i<s;i++)t[i].eval(e).genCSS(e,r);return n}(e,s),r=!1),"font"===s&&e.math===pe.ALWAYS&&(n=!0,t=e.math,e.math=pe.PARENS_DIVISION);try{if(e.importantScope.push({}),i=this.value.eval(e),!this.variable&&"DetachedRuleset"===i.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};let o=this.important;const a=e.importantScope.pop();return!o&&a&&a.important&&(o=a.important),new de(s,i,o,this.merge,this.getIndex(),this.fileInfo(),this.inline,r)}catch(e){const t=e;throw"number"!=typeof t.index&&(t.index=this.getIndex(),t.filename=this.fileInfo().filename),e}finally{n&&(e.math=t)}}makeImportant(){return new de(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}}const me={eval:function(){const e=this.value_,t=this.error_;if(t)throw t;if(!E(e))return e?fe.True:fe.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}};class ge extends u{get type(){return"Ruleset"}constructor(e,t,i,n){super(),this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=i,this.copyVisibilityInfo(n),this.allowRoot=!0,this.isRuleset=!0,this.root=void 0,this.firstRoot=void 0,this.allowImports=void 0,this.functionRegistry=void 0,this.originalRuleset=void 0,this.debugInfo=void 0,this.paths=void 0,this._rulesets=void 0,this.evalFirst=void 0,this.setParent(this.selectors,this),this.setParent(this.rules,this)}isRulesetLike(){return!0}accept(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))}eval(e){let t,i,n,s,r,o=!1;if(this.selectors&&(i=this.selectors.length)){for(t=new Array(i),me.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),s=0;s<i;s++){n=this.selectors[s].eval(e);for(let e=0;e<n.elements.length;e++)if(n.elements[e].isVariable){r=!0;break}t[s]=n,n.evaldCondition&&(o=!0)}if(r){const r=new Array(i);for(s=0;s<i;s++)n=t[s],r[s]=n.toCSS(e);const o=t[0].getIndex(),a=t[0].fileInfo();new ce(e,this.parse.importManager,a,o).parseNode(r.join(","),["selectors"],(function(e,i){i&&(t=M(i))}))}me.reset()}else o=!0;let a=this.rules?k(this.rules):null;const l=new ge(t,a,this.strictImports,this.visibilityInfo());let c,h;l.originalRuleset=this,l.root=this.root,l.firstRoot=this.firstRoot,l.allowImports=this.allowImports,this.debugInfo&&(l.debugInfo=this.debugInfo),o||(a.length=0);const f=e.frames;let p;for(let e=0,t=f.length;e!==t&&(p=f[e].functionRegistry,!p);++e);l.functionRegistry=(p||oe).inherit(),f.unshift(l);let d=e.selectors;d||(e.selectors=d=[]),d.unshift(this.selectors),(l.root||l.allowImports||!l.strictImports)&&l.evalImports(e);const m=l.rules;for(s=0;c=m[s];s++)c.evalFirst&&(m[s]=c.eval(e));const g=e.mediaBlocks&&e.mediaBlocks.length||0;for(s=0;c=m[s];s++)"MixinCall"===c.type?(a=c.eval(e).filter((function(e){return!(e instanceof de&&e.variable)||!l.variable(e.name)})),m.splice.apply(m,[s,1].concat(a)),s+=a.length-1,l.resetCache()):"VariableCall"===c.type&&(a=c.eval(e).rules.filter((function(e){return!(e instanceof de&&e.variable)})),m.splice.apply(m,[s,1].concat(a)),s+=a.length-1,l.resetCache());for(s=0;c=m[s];s++)c.evalFirst||(m[s]=c=c.eval?c.eval(e):c);for(s=0;c=m[s];s++)if(c instanceof ge&&c.selectors&&1===c.selectors.length&&c.selectors[0]&&c.selectors[0].isJustParentSelector()){m.splice(s--,1);for(let e=0;h=c.rules[e];e++)h instanceof u&&(h.copyVisibilityInfo(c.visibilityInfo()),h instanceof de&&h.variable||m.splice(++s,0,h))}if(f.shift(),d.shift(),e.mediaBlocks)for(s=g;s<e.mediaBlocks.length;s++)e.mediaBlocks[s].bubbleSelectors(t);return l}evalImports(e){const t=this.rules;let i,n;if(t)for(i=0;i<t.length;i++)if("Import"===t[i].type){if(n=t[i].eval(e),n&&(n.length||0===n.length)){const e=n;t.splice(i,1,...e),i+=e.length-1}else t.splice(i,1,n);this.resetCache()}}makeImportant(){return new ge(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())}matchArgs(e){return!e||0===e.length}matchCondition(e,t){const i=this.selectors[this.selectors.length-1];return!!i.evaldCondition&&!(i.condition&&!i.condition.eval(new N.Eval(t,t.frames)))}resetCache(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}}variables(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof de&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){const i=t.root.variables();for(const n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=t.root.variable(n))}return e}),{}):{}),this._variables}properties(){return this._properties||(this._properties=this.rules?this.rules.reduce((function(e,t){if(t instanceof de&&!0!==t.variable){const i=1===t.name.length&&t.name[0]instanceof fe?t.name[0].value:t.name;e["$"+i]?e["$"+i].push(t):e["$"+i]=[t]}return e}),{}):{}),this._properties}variable(e){const t=this.variables()[e];if(t)return this.parseValue(t)}property(e){const t=this.properties()[e];if(t)return this.parseValue(t)}lastDeclaration(){for(let e=this.rules.length;e>0;e--){const t=this.rules[e-1];if(t instanceof de)return this.parseValue(t)}}parseValue(e){const t=this;function i(e){return e.value instanceof Y&&!e.parsed?("string"==typeof e.value.value?new ce(this.parse.context,this.parse.importManager,e.fileInfo(),e.value.getIndex()).parseNode(e.value.value,["value","important"],(function(t,i){t&&(e.parsed=!0),i&&(e.value=i[0],e.important=i[1]||"",e.parsed=!0)})):e.parsed=!0,e):e}if(Array.isArray(e)){const n=[];for(let s=0;s<e.length;s++)n.push(i.call(t,e[s]));return n}return i.call(t,e)}rulesets(){if(!this.rules)return[];const e=[],t=this.rules;let i,n;for(i=0;n=t[i];i++)n.isRuleset&&e.push(n);return e}prependRule(e){const t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)}find(e,t,i){t=t||this;const n=[];let s,r;const o=e.toCSS({});return o in this._lookups?this._lookups[o]:(this.rulesets().forEach((function(o){if(o!==t)for(let a=0;a<o.selectors.length;a++)if(s=e.match(o.selectors[a]),s){if(e.elements.length>s){if(!i||i(o)){r=o.find(new he(e.elements.slice(s)),t,i);for(let e=0;e<r.length;++e)r[e].path.push(o);Array.prototype.push.apply(n,r)}}else n.push({rule:o,path:[]});break}})),this._lookups[o]=n,n)}genCSS(e,t){let i,n;let s,r,o,a=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;const l=e.compress?"":Array(e.tabLevel+1).join("  "),u=e.compress?"":Array(e.tabLevel).join("  ");let c,h=0,f=0;for(i=0;r=this.rules[i];i++)r instanceof Q?(f===i&&f++,a.push(r)):r.isCharset&&r.isCharset()?(a.splice(h,0,r),h++,f++):"Import"===r.type?(a.splice(f,0,r),f++):a.push(r);if(a=[].concat(a),!this.root){s=H(e,this,u),s&&(t.add(s),t.add(u));const r=this.paths,a=r.length;let h;for(c=e.compress?",":",\n"+u,i=0;i<a;i++)if(o=r[i],h=o.length)for(i>0&&t.add(c),e.firstSelector=!0,o[0].genCSS(e,t),e.firstSelector=!1,n=1;n<h;n++)o[n].genCSS(e,t);t.add((e.compress?"{":" {\n")+l)}for(i=0;r=a[i];i++){i+1===a.length&&(e.lastRule=!0);const n=e.lastRule;r.isRulesetLike()&&(e.lastRule=!1),r.genCSS?r.genCSS(e,t):r.value&&t.add(r.value.toString()),e.lastRule=n,!e.lastRule&&r.isVisible()?t.add(e.compress?"":"\n"+l):e.lastRule=!1}this.root||(t.add(e.compress?"}":`\n${u}}`),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")}joinSelectors(e,t,i){for(let n=0;n<i.length;n++)this.joinSelector(e,t,i[n])}joinSelector(e,t,i){function n(e,t){let i,n;if(0===e.length)i=new p(e[0]);else{const s=new Array(e.length);for(n=0;n<e.length;n++)s[n]=new g(null,e[n],t.isVariable,t._index,t._fileInfo);i=new p(new he(s))}return i}function s(e,t){let i,n;return i=new g(null,e,t.isVariable,t._index,t._fileInfo),n=new he([i]),n}function r(e,t,i,n){let s,r,o;if(s=[],e.length>0?(s=k(e),r=s.pop(),o=n.createDerived(k(r.elements))):o=n.createDerived([]),t.length>0){let e=i.combinator;const n=t[0].elements[0];e.emptyOrWhitespace&&!n.combinator.emptyOrWhitespace&&(e=n.combinator),o.elements.push(new g(e,n.value,i.isVariable,i._index,i._fileInfo)),o.elements=o.elements.concat(t[0].elements.slice(1))}if(0!==o.elements.length&&s.push(o),t.length>1){let e=t.slice(1);e=e.map((function(e){return e.createDerived(e.elements,[])})),s=s.concat(e)}return s}function o(e,t,i,n,s){let o;for(o=0;o<e.length;o++){const a=r(e[o],t,i,n);s.push(a)}return s}function a(e,t){let i,n;if(0!==e.length)if(0!==t.length)for(i=0;n=t[i];i++)n.length>0?n[n.length-1]=n[n.length-1].createDerived(n[n.length-1].elements.concat(e)):n.push(new he(e));else t.push([new he(e)])}function l(e,t){const i=t.createDerived(t.elements,t.extendList,t.evaldCondition);return i.copyVisibilityInfo(e),i}let u,c,h;if(c=[],h=function e(t,i,l){let u,c,h,f,d,m,v,y,b,w,x=!1;function S(e){let t;return e.value instanceof p?(t=e.value.value,t instanceof he?t:null):null}for(f=[],d=[[]],u=0;y=l.elements[u];u++)if("&"!==y.value){const t=S(y);if(null!==t){a(f,d);const r=[];let u;const c=[];if(t.elements.some(e=>e instanceof he)){const r=[];for(const n of t.elements)if(n instanceof he){const t=[],s=e(t,i,n);u=u||s,t.length>0&&t[0].length>0?r.push(t[0][0]):r.push(n)}else r.push(n);x=x||u;o(d,[s(n([new he(r)],y),y)],y,l,c)}else for(u=e(r,i,t),x=x||u,h=0;h<r.length;h++){o(d,[s(n(r[h],y),y)],y,l,c)}d=c,f=[]}else f.push(y)}else{for(x=!0,m=[],a(f,d),c=0;c<d.length;c++)if(v=d[c],0===i.length)v.length>0&&v[0].elements.push(new g(y.combinator,"",y.isVariable,y._index,y._fileInfo)),m.push(v);else for(h=0;h<i.length;h++){const e=r(v,i[h],y,l);m.push(e)}d=m,f=[]}for(a(f,d),u=0;u<d.length;u++)b=d[u].length,b>0&&(t.push(d[u]),w=d[u][b-1],d[u][b-1]=w.createDerived(w.elements,l.extendList));return x}(c,t,i),!h)if(t.length>0)for(c=[],u=0;u<t.length;u++){const e=t[u].map(l.bind(this,i.visibilityInfo()));e.push(i),c.push(e)}else c=[[i]];for(u=0;u<c.length;u++)e.push(c[u])}}const ve={isRulesetLike:()=>!0,accept(e){const t=this;t.features&&(t.features=e.visit(t.features)),t.rules&&(t.rules=e.visitArray(t.rules))},evalFunction:function(){if(!this.features||!Array.isArray(this.features.value)||this.features.value.length<1)return;const e=this.features.value;let t,i;for(let n=0;n<e.length;++n)t=e[n],("Keyword"===t.type||"Variable"===t.type)&&n+1<e.length&&(t.noSpacing||null==t.noSpacing)&&(i=e[n+1],"Paren"===i.type&&i.noSpacing&&(e[n]=new ee([t,i]),e.splice(n+1,1),e[n].noSpacing=!0))},evalTop(e){const t=this;t.evalFunction();let i=t;if(e.mediaBlocks.length>1){const n=new he([],null,null,t.getIndex(),t.fileInfo()).createEmptySelectors();i=new ge(n,e.mediaBlocks),i.multiMedia=!0,i.copyVisibilityInfo(t.visibilityInfo()),t.setParent(i,t)}return delete e.mediaBlocks,delete e.mediaPath,i},evalNested(e){const t=this;let i,n;t.evalFunction();const s=e.mediaPath.concat([t]);for(i=0;i<s.length;i++){if(s[i].type!==t.type){const i=e.mediaBlocks.indexOf(t);return i>-1&&e.mediaBlocks.splice(i,1),t}n=s[i].features instanceof te?s[i].features.value:s[i].features,s[i]=Array.isArray(n)?n:[n]}return t.features=new te(t.permute(s).map(e=>{for(e=e.map(e=>e.toCSS?e:new Y(e)),i=e.length-1;i>0;i--)e.splice(i,0,new Y("and"));return new ee(e)})),t.setParent(t.features,t),new ge([],[])},permute(e){if(0===e.length)return[];if(1===e.length)return e[0];{const t=[],i=this.permute(e.slice(1));for(let n=0;n<i.length;n++)for(let s=0;s<e[0].length;s++)t.push([e[0][s]].concat(i[n]));return t}},bubbleSelectors(e){e&&(this.rules=[new ge(k(e),[this.rules[0]])],this.setParent(this.rules,this))}};class ye extends u{get type(){return"AtRule"}constructor(e,t,i,n,s,r,o,a){let l;if(super(),new he([],null,null,n,s).createEmptySelectors(),this.name=e,this.value=t instanceof u?t:t?new Y(t):t,this.simpleBlock=void 0,this.declarations=void 0,this.rules=void 0,i){if(Array.isArray(i)){const e=this.declarationsBlock(i);let n=!0;i.forEach(e=>{"Ruleset"===e.type&&e.rules&&(n=n&&this.declarationsBlock(e.rules,!0))}),e&&!o?(this.simpleBlock=!0,this.declarations=i):!n||1!==i.length||o||t?this.rules=i:(this.simpleBlock=!0,this.declarations=i[0].rules?i[0].rules:i)}else{!this.declarationsBlock(i.rules)||o||t?(this.rules=[i],this.rules[0].selectors=new he([],null,null,n,s).createEmptySelectors()):(this.simpleBlock=!0,this.declarations=i.rules)}if(!this.simpleBlock)for(l=0;l<this.rules.length;l++)this.rules[l].allowImports=!0;this.declarations&&this.setParent(this.declarations,this),this.rules&&this.setParent(this.rules,this)}this._index=n,this._fileInfo=s,this.debugInfo=r,this.isRooted=o||!1,this.copyVisibilityInfo(a),this.allowRoot=!0}declarationsBlock(e,t=!1){return t?e.filter((function(e){return"Declaration"===e.type||"Comment"===e.type})).length===e.length:e.filter((function(e){return("Declaration"===e.type||"Comment"===e.type)&&!e.merge})).length===e.length}keywordList(e){return!!Array.isArray(e)&&e.filter((function(e){return"Keyword"===e.type||"Comment"===e.type})).length===e.length}accept(e){const t=this.value,i=this.rules,n=this.declarations;i?this.rules=e.visitArray(i):n&&(this.declarations=e.visitArray(n)),t&&(this.value=e.visit(t))}isRulesetLike(){return this.rules||!this.isCharset()}isCharset(){return"@charset"===this.name}genCSS(e,t){const i=this.value,n=this.rules||this.declarations;t.add(this.name,this.fileInfo(),this.getIndex()),i&&(t.add(" "),i.genCSS(e,t)),this.simpleBlock?this.outputRuleset(e,t,this.declarations):n?this.outputRuleset(e,t,n):t.add(";")}eval(e){let t,i,n=this.value,s=this.rules||this.declarations;if(t=e.mediaPath,i=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],n&&(n=n.eval(e)),s&&(s=this.evalRoot(e,s)),Array.isArray(s)&&s[0].rules&&Array.isArray(s[0].rules)&&s[0].rules.length){!this.declarationsBlock(s[0].rules,!0)||this.isRooted||n||(ie(s[0].rules),s=s[0].rules,s.forEach(e=>{e.merge=!1}))}return this.simpleBlock&&s&&(s[0].functionRegistry=e.frames[0].functionRegistry.inherit(),s=s.map((function(t){return t.eval(e)}))),e.mediaPath=t,e.mediaBlocks=i,new ye(this.name,n,s,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())}evalRoot(e,t){let i=0,n=0,s=!0;this.simpleBlock||(t=[t[0].eval(e)]);let r=[];if(e.frames.length>0)for(let t=0;t<e.frames.length;t++){const o=e.frames[t];if("Ruleset"===o.type&&o.rules&&o.rules.length>0&&o&&!o.root&&o.selectors&&o.selectors.length>0&&(r=r.concat(o.selectors)),r.length>0){r.every(e=>e.elements&&e.elements.length>0&&e.elements.every(e=>"&"===e.value))?(s=!1,n++):i++}}const o=i>0&&n>0&&!s;return(this.isRooted&&i>0&&0===n&&s||!o)&&(t[0].root=!0),t}variable(e){if(this.rules)return ge.prototype.variable.call(this.rules[0],e)}find(){if(this.rules)return ge.prototype.find.apply(this.rules[0],arguments)}rulesets(){if(this.rules)return ge.prototype.rulesets.apply(this.rules[0])}outputRuleset(e,t,i){const n=i.length;let s;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),s=0;s<n;s++)i[s].genCSS(e,t);return t.add("}"),void e.tabLevel--}const r="\n"+Array(e.tabLevel).join("  "),o=r+"  ";if(n){for(t.add(" {"+o),i[0].genCSS(e,t),s=1;s<n;s++)t.add(o),i[s].genCSS(e,t);t.add(r+"}")}else t.add(` {${r}}`);e.tabLevel--}}const{evalFunction:be,evalTop:we,evalNested:xe,permute:Se,bubbleSelectors:Ie}=ve;Object.assign(ye.prototype,{evalFunction:be,evalTop:we,evalNested:xe,permute:Se,bubbleSelectors:Ie});class Ce extends u{get type(){return"DetachedRuleset"}constructor(e,t){super(),this.ruleset=e,this.frames=t,this.evalFirst=!0,this.setParent(this.ruleset,this)}accept(e){this.ruleset=e.visit(this.ruleset)}eval(e){const t=this.frames||k(e.frames);return new Ce(this.ruleset,t)}callEval(e){return this.ruleset.eval(this.frames?new N.Eval(e,this.frames.concat(e.frames)):e)}}const ke=v;class Ae extends u{get type(){return"Operation"}constructor(e,t,i){super(),this.op=e.trim(),this.operands=t,this.isSpaced=i}accept(e){this.operands=e.visitArray(this.operands)}eval(e){let t,i=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,i instanceof X&&n instanceof c&&(i=i.toColor()),n instanceof X&&i instanceof c&&(n=n.toColor()),!i.operate||!n.operate){if((i instanceof Ae||n instanceof Ae)&&"/"===i.op&&e.math===ke.PARENS_DIVISION)return new Ae(this.op,[i,n],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return i.operate(e,t,n)}return new Ae(this.op,[i,n],this.isSpaced)}genCSS(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)}}class _e{constructor(e,t,i,n){this.name=e.toLowerCase(),this.index=i,this.context=t,this.currentFileInfo=n,this.func=t.frames[0].functionRegistry.get(this.name)}isValid(){return Boolean(this.func)}call(e){Array.isArray(e)||(e=[e]);const t=this.func.evalArgs;!1!==t&&(e=e.map(e=>e.eval(this.context)));const i=e=>!("Comment"===e.type);return e=e.filter(i).map(e=>{if("Expression"===e.type){const t=e.value.filter(i);return 1===t.length?e.parens&&"/"===t[0].op?e:t[0]:new ee(t)}return e}),!1===t?this.func(this.context,...e):this.func(...e)}}class $e extends u{get type(){return"Call"}constructor(e,t,i,n){super(),this.name=e,this.args=t,this.calc="calc"===e,this._index=i,this._fileInfo=n}accept(e){this.args&&(this.args=e.visitArray(this.args))}eval(e){const t=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();const i=()=>{(this.calc||e.inCalc)&&e.exitCalc(),e.mathOn=t};let n;const s=new _e(this.name,e,this.getIndex(),this.fileInfo());if(s.isValid())try{n=s.call(this.args),i()}catch(e){if(e.hasOwnProperty("line")&&e.hasOwnProperty("column"))throw e;throw{type:e.type||"Runtime",message:`Error evaluating function \`${this.name}\`${e.message?": "+e.message:""}`,index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=n)return n instanceof u||(n=new Y(n&&!0!==n?n.toString():null)),n._index=this._index,n._fileInfo=this._fileInfo,n;const r=this.args.map(t=>t.eval(e));return i(),new $e(this.name,r,this.getIndex(),this.fileInfo())}genCSS(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(let i=0;i<this.args.length;i++)this.args[i].genCSS(e,t),i+1<this.args.length&&t.add(", ");t.add(")")}}class Me extends u{get type(){return"Variable"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t,i=this.name;if(0===i.indexOf("@@")&&(i="@"+new Me(i.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){const n=t.variable(i);if(n){if(n.important){e.importantScope[e.importantScope.length-1].important=n.important}return e.inCalc?new $e("_SELF",[n.value],0,void 0).eval(e):n.value.eval(e)}})),t)return this.evaluating=!1,t;throw{type:"Name",message:`variable ${i} is undefined`,filename:this.fileInfo().filename,index:this.getIndex()}}find(e,t){for(let i,n=0;n<e.length;n++)if(i=t.call(e,e[n]),i)return i;return null}}class Ee extends u{get type(){return"Property"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t;const i=this.name,n=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){let s;const r=t.property(i);if(r){for(let e=0;e<r.length;e++)s=r[e],r[e]=new de(s.name,s.value,s.important,s.merge,s.index,s.currentFileInfo,s.inline,s.variable);if(n(r),s=r[r.length-1],s.important){e.importantScope[e.importantScope.length-1].important=s.important}return s=s.value.eval(e),s}})),t)return this.evaluating=!1,t;throw{type:"Name",message:`Property '${i}' is undefined`,filename:this.currentFileInfo.filename,index:this.index}}find(e,t){for(let i,n=0;n<e.length;n++)if(i=t.call(e,e[n]),i)return i;return null}}class Pe extends u{get type(){return"Attribute"}constructor(e,t,i,n){super(),this.key=e,this.op=t,this.value=i,this.cif=n}eval(e){return new Pe(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value,this.cif)}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e){let 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),this.cif&&(t=t+" "+this.cif),`[${t}]`}}class Re extends u{get type(){return"Quoted"}constructor(e,t,i,n,s){super(),this.escaped=void 0===i||i,this.value=t||"",this.quote=e.charAt(0),this._index=n,this._fileInfo=s,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=i}genCSS(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)}containsVariables(){return this.value.match(this.variableRegex)}eval(e){const t=this;let i=this.value;function n(e,t,i){let n=e;do{e=n.toString(),n=e.replace(t,i)}while(e!==n);return n}return i=n(i,this.variableRegex,(function(i,n,s){const r=new Me("@"+(n??s),t.getIndex(),t.fileInfo()).eval(e);return r instanceof Re?r.value:r.toCSS(e)})),i=n(i,this.propRegex,(function(i,n,s){const r=new Ee("$"+(n??s),t.getIndex(),t.fileInfo()).eval(e);return r instanceof Re?r.value:r.toCSS(e)})),new Re(this.quote+i+this.quote,i,this.escaped,this.getIndex(),this.fileInfo())}compare(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0:u.numericCompare(this.value,e.value)}}class Fe extends u{get type(){return"Url"}constructor(e,t,i,n){super(),this.value=e,this._index=t,this._fileInfo=i,this.isEvald=n}accept(e){this.value=e.visit(this.value)}genCSS(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")}eval(e){const t=this.value.eval(e);let i;if(!this.isEvald&&(i=this.fileInfo()&&this.fileInfo().rootpath,"string"==typeof i&&"string"==typeof t.value&&e.pathRequiresRewrite(t.value)?(t.quote||(i=i.replace(/[()'"\s]/g,(function(e){return"\\"+e}))),t.value=e.rewritePath(t.value,i)):t.value=e.normalizePath(t.value),e.urlArgs&&!t.value.match(/^\s*data:/))){const i=(-1===t.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==t.value.indexOf("#")?t.value=t.value.replace("#",i+"#"):t.value+=i}return new Fe(t,this.getIndex(),this.fileInfo(),!0)}}class Oe extends ye{get type(){return"Media"}constructor(e,t,i,n,s){super(),this._index=i,this._fileInfo=n;const r=new he([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new te(t),this.rules=[new ge(r,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(s),this.allowRoot=!0,this.setParent(r,this),this.setParent(this.features,this),this.setParent(this.rules,this)}genCSS(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);const t=new Oe(null,[],this._index,this._fileInfo,this.visibilityInfo());this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);const i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.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)}}Object.assign(Oe.prototype,ve);class Ve extends u{get type(){return"Import"}constructor(e,t,i,n,s,r){if(super(),this.options=i,this._index=n,this._fileInfo=s,this.path=e,this.features=t,this.allowRoot=!0,this.css=void 0,this.layerCss=void 0,this.root=void 0,this.importedFilename=void 0,this.skip=void 0,this.error=void 0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{const e=this.getPath();e&&/[#.&?]css([?;].*)?$/.test(e)&&(this.css=!0)}this.copyVisibilityInfo(r),this.features&&this.setParent(this.features,this),this.setParent(this.path,this)}accept(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))}genCSS(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))}getPath(){return this.path instanceof Fe?this.path.value.value:this.path.value}isVariableImport(){let e=this.path;return e instanceof Fe&&(e=e.value),!(e instanceof Re)||e.containsVariables()}evalForImport(e){let t=this.path;return t instanceof Fe&&(t=t.value),new Ve(t.eval(e),this.features,this.options,this._index||0,this._fileInfo,this.visibilityInfo())}evalPath(e){const t=this.path.eval(e),i=this._fileInfo;if(!(t instanceof Fe)){const n=t.value;i&&n&&e.pathRequiresRewrite(n)?t.value=e.rewritePath(n,i.rootpath):t.value=e.normalizePath(t.value)}return t}eval(e){const t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(Array.isArray(t)?t.forEach((function(e){e.addVisibilityBlock()})):t.addVisibilityBlock()),t}doEval(e){let t;const i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new F(e,this.root.imports,this.root.filename)}const t=e.frames[0],i=t&&t.functionRegistry;return i&&this.root&&this.root.functions&&i.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.features){let e=this.features.value;if(Array.isArray(e)&&e.length>=1){const t=e[0];if("Expression"===t.type&&Array.isArray(t.value)&&t.value.length>=2){e=t.value;"Keyword"===e[0].type&&"layer"===e[0].value&&"Paren"===e[1].type&&(this.css=!1)}}}if(this.options.inline){const e=new Y(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new Oe([e],this.features.value):[e]}if(this.css||this.layerCss){const t=new Ve(this.evalPath(e),i,this.options,this._index||0);if(this.layerCss&&(t.css=this.layerCss,t.path._fileInfo=this._fileInfo),!t.css&&this.error)throw this.error;return t}if(this.root){if(this.features){let e=this.features.value;if(Array.isArray(e)&&1===e.length){const t=e[0];if("Expression"===t.type&&Array.isArray(t.value)&&t.value.length>=2){e=t.value;if("Keyword"===e[0].type&&"layer"===e[0].value&&"Paren"===e[1].type)return this.layerCss=!0,e[0]=new ee(e.slice(0,2)),e.splice(1,1),e[0].noSpacing=!0,this}}}return t=new ge(null,k(this.root.rules)),t.evalImports(e),this.features?new Oe(t.rules,this.features.value):t.rules}if(this.features){let e=this.features.value;if(Array.isArray(e)&&e.length>=1&&(e=e[0].value,Array.isArray(e)&&e.length>=2)){if("Keyword"===e[0].type&&"layer"===e[0].value&&"Paren"===e[1].type)return this.css=!0,e[0]=new ee(e.slice(0,2)),e.splice(1,1),e[0].noSpacing=!0,this}}return[]}}class Le extends u{evaluateJavaScript(e,t){let i;const n=this,s={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};let r;e=e.replace(/@\{([\w-]+)\}/g,(function(e,i){return n.jsify(new Me("@"+i,n.getIndex(),n.fileInfo()).eval(t))}));try{r=new Function(`return (${e})`)}catch(t){throw{message:`JavaScript evaluation error: ${t.message} from \`${e}\``,filename:this.fileInfo().filename,index:this.getIndex()}}const o=t.frames[0].variables();for(const e in o)o.hasOwnProperty(e)&&(s[e.slice(1)]={value:o[e].value,toJS:function(){return this.value.eval(t).toCSS(t)}});try{i=r.call(s)}catch(e){throw{message:`JavaScript evaluation error: '${e.name}: ${e.message.replace(/["]/g,"'")}'`,filename:this.fileInfo().filename,index:this.getIndex()}}return i}jsify(e){return Array.isArray(e.value)&&e.value.length>1?`[${e.value.map((function(e){return e.toCSS(void 0)})).join(", ")}]`:e.toCSS(void 0)}}class De extends Le{get type(){return"JavaScript"}constructor(e,t,i,n){super(),this.escaped=t,this.expression=e,this._index=i,this._fileInfo=n}eval(e){const t=this.evaluateJavaScript(this.expression,e),i=typeof t;return"number"!==i||isNaN(t)?"string"===i?new Re(`"${t}"`,t,this.escaped,this._index):Array.isArray(t)?new Y(t.join(", ")):new Y(t):new X(t)}}class Ne extends u{get type(){return"Assignment"}constructor(e,t){super(),this.key=e,this.value=t}accept(e){this.value=e.visit(this.value)}eval(e){return this.value.eval?new Ne(this.key,this.value.eval(e)):this}genCSS(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}}class Be extends u{get type(){return"QueryInParens"}constructor(e,t,i,n,s,r){super(),this.op=e.trim(),this.lvalue=t,this.mvalue=i,this.op2=n?n.trim():null,this.rvalue=s,this._index=r}accept(e){this.lvalue=e.visit(this.lvalue),this.mvalue=e.visit(this.mvalue),this.rvalue&&(this.rvalue=e.visit(this.rvalue))}eval(e){return new Be(this.op,this.lvalue.eval(e),this.mvalue.eval(e),this.op2,this.rvalue?this.rvalue.eval(e):null,this._index||0)}genCSS(e,t){this.lvalue.genCSS(e,t),t.add(" "+this.op+" "),this.mvalue.genCSS(e,t),this.rvalue&&(t.add(" "+this.op2+" "),this.rvalue.genCSS(e,t))}}class Ue extends ye{get type(){return"Container"}constructor(e,t,i,n,s){super(),this._index=i,this._fileInfo=n;const r=new he([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new te(t),this.rules=[new ge(r,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(s),this.allowRoot=!0,this.setParent(r,this),this.setParent(this.features,this),this.setParent(this.rules,this),this._evaluated=void 0}genCSS(e,t){t.add("@container ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){if(this._evaluated)return this;e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);const t=new Ue(null,[],this._index,this._fileInfo,this.visibilityInfo());t._evaluated=!0,this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);const i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.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)}}Object.assign(Ue.prototype,ve);class je extends u{get type(){return"Negative"}constructor(e){super(),this.value=e}genCSS(e,t){t.add("-"),this.value.genCSS(e,t)}eval(e){return e.isMathOn("*")?new Ae("*",[new X(-1),this.value],!1).eval(e):new je(this.value.eval(e))}}class qe extends u{get type(){return"Extend"}constructor(e,t,i,n,s){switch(super(),this.selector=e,this.option=t,this.object_id=qe.next_id++,this.parent_ids=[this.object_id],this._index=i,this._fileInfo=n,this.copyVisibilityInfo(s),this.allowRoot=!0,this.allowBefore=!1,this.allowAfter=!1,t){case"!all":case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}this.setParent(this.selector,this)}accept(e){this.selector=e.visit(this.selector)}eval(e){return new qe(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(e){return new qe(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}findSelfSelectors(e){let t,i,n=[];for(t=0;t<e.length;t++)i=e[t].elements,t>0&&i.length&&""===i[0].combinator.value&&(i[0].combinator.value=" "),n=n.concat(e[t].elements);this.selfSelectors=[new he(n)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}qe.next_id=0;class Te extends ge{get type(){return"MixinDefinition"}constructor(e,t,i,n,s,r,o){super(null,null),this.name=e||"anonymous mixin",this.selectors=[new he([new g(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=n,this.variadic=s,this.arity=t.length,this.rules=i,this._lookups={};const a=[];this.required=t.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(a.push(t.name),e)}),0),this.optionalParameters=a,this.frames=r,this.copyVisibilityInfo(o),this.allowRoot=!0,this.evalFirst=!0}accept(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))}evalParams(e,t,i,n){const s=new ge(null,null);let r,o;const a=k(this.params);let l,u,c,h,f,p,d=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(s.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new N.Eval(t,[s].concat(t.frames)),i)for(d=(i=k(i)).length,l=0;l<d;l++)if(o=i[l],h=o&&o.name){for(f=!1,u=0;u<a.length;u++)if(!n[u]&&h===a[u].name){n[u]=o.value.eval(e),s.prependRule(new de(h,o.value.eval(e))),f=!0;break}if(f){i.splice(l,1),l--;continue}throw{type:"Runtime",message:`Named argument for ${this.name} ${i[l].name} not found`}}for(p=0,l=0;l<a.length;l++)if(!n[l]){if(o=i&&i[p],h=a[l].name)if(a[l].variadic){for(r=[],u=p;u<d;u++)r.push(i[u].value.eval(e));s.prependRule(new de(h,new ee(r).eval(e)))}else{if(c=o&&o.value,c)c=Array.isArray(c)?new Ce(new ge(null,c)):c.eval(e);else{if(!a[l].value)throw{type:"Runtime",message:`wrong number of arguments for ${this.name} (${d} for ${this.arity})`};c=a[l].value.eval(t),s.resetCache()}s.prependRule(new de(h,c)),n[l]=c}if(a[l].variadic&&i)for(u=p;u<d;u++)n[u]=i[u].value.eval(e);p++}return s}makeImportant(){const e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules;return new Te(this.name,this.params,e,this.condition,this.variadic,this.frames)}eval(e){return new Te(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||k(e.frames))}evalCall(e,t,i){const n=[],s=this.frames?this.frames.concat(e.frames):e.frames,r=this.evalParams(e,new N.Eval(e,s),t,n);let o,a;return r.prependRule(new de("@arguments",new ee(n).eval(e))),o=k(this.rules),a=new ge(null,o),a.originalRuleset=this,a=a.eval(new N.Eval(e,[this,r].concat(s))),i&&(a=a.makeImportant()),a}matchCondition(e,t){return!(this.condition&&!this.condition.eval(new N.Eval(t,[this.evalParams(t,new N.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))}matchArgs(e,t){const i=e&&e.length||0;let n;const s=this.optionalParameters,r=e?e.reduce((function(e,t){return s.indexOf(t.name)<0?e+1:e}),0):0;if(this.variadic){if(r<this.required-1)return!1}else{if(r<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(r,this.arity);for(let i=0;i<n;i++)if(!this.params[i].name&&!this.params[i].variadic&&e[i].value.eval(t).toCSS({})!=this.params[i].value.eval(t).toCSS({}))return!1;return!0}}var ze={Node:u,Color:c,AtRule:ye,DetachedRuleset:Ce,Operation:Ae,Dimension:X,Unit:Z,Keyword:fe,Variable:Me,Property:Ee,Ruleset:ge,Element:g,Attribute:Pe,Combinator:m,Selector:he,Quoted:Re,Expression:ee,Declaration:de,Call:$e,URL:Fe,Import:Ve,Comment:Q,Anonymous:Y,Value:te,JavaScript:De,Assignment:Ne,Condition:class extends u{get type(){return"Condition"}constructor(e,t,i,n,s){super(),this.op=e.trim(),this.lvalue=t,this.rvalue=i,this._index=n,this.negate=s}accept(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)}eval(e){const t=this.lvalue.eval(e),i=this.rvalue.eval(e);let n;switch(this.op){case"and":n=Boolean(t&&i);break;case"or":n=Boolean(t||i);break;default:switch(u.compare(t,i)){case-1:n="<"===this.op||"=<"===this.op||"<="===this.op;break;case 0:n="="===this.op||">="===this.op||"=<"===this.op||"<="===this.op;break;case 1:n=">"===this.op||">="===this.op;break;default:n=!1}}return this.negate?!n:n}},Paren:p,Media:Oe,Container:Ue,QueryInParens:Be,UnicodeDescriptor:class extends u{get type(){return"UnicodeDescriptor"}constructor(e){super(),this.value=e}},Negative:je,Extend:qe,VariableCall:class extends u{get type(){return"VariableCall"}constructor(e,t,i){super(),this.variable=e,this._index=t,this._fileInfo=i,this.allowRoot=!0}eval(e){let t,i=new Me(this.variable,this.getIndex(),this.fileInfo()).eval(e);const n=new F({message:"Could not evaluate variable call "+this.variable});if(!i.ruleset){if(i.rules)t=i;else if(Array.isArray(i))t=new ge(null,i);else{if(!Array.isArray(i.value))throw n;t=new ge(null,i.value)}i=new Ce(t)}const s=i;if(s.ruleset)return s.callEval(e);throw n}},NamespaceValue:class extends u{get type(){return"NamespaceValue"}constructor(e,t,i,n){super(),this.value=e,this.lookups=t,this._index=i,this._fileInfo=n}eval(e){let t,i,n=this.value.eval(e);for(t=0;t<this.lookups.length;t++){i=this.lookups[t],Array.isArray(n)&&(n=new ge([new he],n));const s=n;if(""===i)n=s.lastDeclaration();else if("@"===i.charAt(0)){if("@"===i.charAt(1)&&(i="@"+new Me(i.slice(1)).eval(e).value),s.variables&&(n=s.variable(i)),!n)throw{type:"Name",message:`variable ${i} not found`,filename:this.fileInfo().filename,index:this.getIndex()}}else{if(i="$@"===i.substring(0,2)?"$"+new Me(i.slice(1)).eval(e).value:"$"===i.charAt(0)?i:"$"+i,s.properties&&(n=s.property(i)),!n)throw{type:"Name",message:`property "${i.slice(1)}" not found`,filename:this.fileInfo().filename,index:this.getIndex()};n=n[n.length-1]}const r=n;r.value&&(n=r.eval(e).value);const o=n;o.ruleset&&(n=o.ruleset.eval(e))}return n}},mixin:{Call:class extends u{get type(){return"MixinCall"}constructor(e,t,i,n,s){super(),this.selector=new he(e),this.arguments=t||[],this._index=i,this._fileInfo=n,this.important=s,this.allowRoot=!0,this.setParent(this.selector,this)}accept(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))}eval(e){let t,i,n;const s=[];let r,o;const a=[];let l,u,c,h,f,p=!1;const d=[];let m;const g=[];let v;let y,b,w;function x(t,i){let n,r,o;for(n=0;n<2;n++){for(g[n]=!0,me.value(n),r=0;r<i.length&&g[n];r++)o=i[r],o.matchCondition&&(g[n]=g[n]&&o.matchCondition(null,e));t.matchCondition&&(g[n]=g[n]&&t.matchCondition(s,e))}return g[0]||g[1]?g[0]!=g[1]?g[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),l=0;l<this.arguments.length;l++)if(r=this.arguments[l],o=r.value.eval(e),r.expand&&Array.isArray(o.value)){const e=o.value;for(u=0;u<e.length;u++)s.push({value:e[u]})}else s.push({name:r.name,value:o});for(w=function(t){return t.matchArgs(null,e)},l=0;l<e.frames.length;l++)if((t=e.frames[l].find(this.selector,null,w)).length>0){for(f=!0,u=0;u<t.length;u++){for(i=t[u].rule,n=t[u].path,h=!1,c=0;c<e.frames.length;c++)if(!(i instanceof Te)&&i===(e.frames[c].originalRuleset||e.frames[c])){h=!0;break}h||i.matchArgs(s,e)&&(m={mixin:i,group:x(i,n)},-1!==m.group&&d.push(m),p=!0)}for(me.reset(),y=[0,0,0],u=0;u<d.length;u++)y[d[u].group]++;if(y[0]>0)v=2;else if(v=1,y[1]+y[2]>1)throw{type:"Runtime",message:`Ambiguous use of \`default()\` found when matching for \`${this.format(s)}\``,index:this.getIndex(),filename:this.fileInfo().filename};for(u=0;u<d.length;u++)if(m=d[u].group,0===m||m===v)try{i=d[u].mixin,i instanceof Te||(b=i.originalRuleset||i,i=new Te("",[],i.rules,null,!1,null,b.visibilityInfo()),i.originalRuleset=b);const t=i.evalCall(e,s,this.important).rules;this._setVisibilityToReplacement(t),Array.prototype.push.apply(a,t)}catch(e){throw{...e,index:this.getIndex(),filename:this.fileInfo().filename}}if(p)return a}throw f?{type:"Runtime",message:`No matching definition was found for \`${this.format(s)}\``,index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS({}).trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}}_setVisibilityToReplacement(e){let t,i;if(this.blocksVisibility())for(t=0;t<e.length;t++)i=e[t],i.addVisibilityBlock()}format(e){return`${this.selector.toCSS({}).trim()}(${e?e.map((function(e){let t="";return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS({}):t+="???",t})).join(", "):""})`}},Definition:Te}};class Ge{getPath(e){let t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)}tryAppendExtension(e,t){return/(\.[a-z]*$)|([?;].*)$/.test(e)?e:e+t}tryAppendLessExtension(e){return this.tryAppendExtension(e,".less")}supportsSync(){return!1}alwaysMakePathsAbsolute(){return!1}isPathAbsolute(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)}join(e,t){return e?e+t:t}pathDiff(e,t){const i=this.extractUrlParts(e),n=this.extractUrlParts(t);let s,r,o,a,l="";if(i.hostPart!==n.hostPart)return"";for(r=Math.max(n.directories.length,i.directories.length),s=0;s<r&&n.directories[s]===i.directories[s];s++);for(a=n.directories.slice(s),o=i.directories.slice(s),s=0;s<a.length-1;s++)l+="../";for(s=0;s<o.length-1;s++)l+=o[s]+"/";return l}extractUrlParts(e,t){const i=/^((?:[a-z-]+:)?\/{2}(?:[^/?#]*\/)|([/\\]))?((?:[^/\\?#]*[/\\])*)([^/\\?#]*)([#?].*)?$/i,n=e.match(i),s={};let r=[];const o=[];let a,l;if(!n)throw new Error(`Could not parse sheet href - '${e}'`);if(t&&(!n[1]||n[2])){if(l=t.match(i),!l)throw new Error(`Could not parse page url - '${t}'`);n[1]=n[1]||l[1]||"",n[2]||(n[3]=l[3]+n[3])}if(n[3])for(r=n[3].replace(/\\/g,"/").split("/"),a=0;a<r.length;a++)".."===r[a]?o.pop():"."!==r[a]&&o.push(r[a]);return s.hostPart=n[1],s.directories=o,s.rawPath=(n[1]||"")+r.join("/"),s.path=(n[1]||"")+o.join("/"),s.filename=n[4],s.fileUrl=s.path+(n[4]||""),s.url=s.fileUrl+(n[5]||""),s}}class We{constructor(){this.require=function(){return null}}evalPlugin(e,t,i,n,s){let r,o,a,l,u,c,h;u=t.pluginManager,s&&(c="string"==typeof s?s:s.filename);const f=(new this.less.FileManager).extractUrlParts(c).filename;if(c&&(a=u.get(c),a)){if(h=this.trySetOptions(a,c,f,n),h)return h;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new F(e,i,c)}return a}l={exports:{},pluginManager:u,fileInfo:s},o=oe.create();const p=function(e){a=e};try{r=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e),r(l,this.require(c),p,o,this.less.tree,this.less,s)}catch(e){return new F(e,i,c)}if(a||(a=l.exports),a=this.validatePlugin(a,c,f),a instanceof F)return a;if(!a)return new F({message:"Not a valid plugin"},i,c);if(a.imports=i,a.filename=c,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(h=this.trySetOptions(a,c,f,n),h))return h;if(u.addPlugin(a,s.filename,o),a.functions=o.getLocalFunctions(),h=this.trySetOptions(a,c,f,n),h)return h;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new F(e,i,c)}return a}trySetOptions(e,t,i,n){if(n&&!e.setOptions)return new F({message:`Options have been provided but the plugin ${i} does not support any options.`});try{e.setOptions&&e.setOptions(n)}catch(e){return new F(e)}}validatePlugin(e,t,i){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new F({message:`Plugin ${i} requires version ${this.versionToString(e.minVersion)}`}):e):null}compareVersion(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(let i=0;i<e.length;i++)if(e[i]!==t[i])return parseInt(e[i])>parseInt(t[i])?-1:1;return 0}versionToString(e){let t="";for(let i=0;i<e.length;i++)t+=(t?".":"")+e[i];return t}printUsage(e){for(let t=0;t<e.length;t++){const i=e[t];i.printUsage&&i.printUsage()}}}function Je(e,t,i,n){return t.eval(e)?i.eval(e):n?n.eval(e):new Y}function Ke(e,t){try{return t.eval(e),fe.True}catch(e){return fe.False}}Je.evalArgs=!1,Ke.evalArgs=!1;var He={isdefined:Ke,boolean:function(e){return e?fe.True:fe.False},if:Je};let Qe;function Ze(e){return Math.min(1,Math.max(0,e))}function Xe(e,t){const i=Qe.hsla(t.h,t.s,t.l,t.a);if(i)return e.value&&/^(rgb|hsl)/.test(e.value)?i.value=e.value:i.value="rgb",i}function Ye(e){if(e.toHSL)return e.toHSL();throw new Error("Argument cannot be evaluated to a color")}function et(e){if(e.toHSV)return e.toHSV();throw new Error("Argument cannot be evaluated to a color")}function tt(e){if(e instanceof X)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"}}Qe={rgb:function(e,t,i){let n=1;if(e instanceof ee){const s=e.value;if(e=s[0],t=s[1],(i=s[2])instanceof Ae){const e=i;i=e.operands[0],n=e.operands[1]}}const s=Qe.rgba(e,t,i,n);if(s)return s.value="rgb",s},rgba:function(e,t,i,n){try{if(e instanceof c)return n=t?tt(t):e.alpha,new c(e.rgb,n,"rgba");const s=[e,t,i].map(e=>{return i=255,(t=e)instanceof X&&t.unit.is("%")?parseFloat(t.value*i/100):tt(t);var t,i});return n=tt(n),new c(s,n,"rgba")}catch(e){}},hsl:function(e,t,i){let n=1;if(e instanceof ee){const s=e.value;if(e=s[0],t=s[1],(i=s[2])instanceof Ae){const e=i;i=e.operands[0],n=e.operands[1]}}const s=Qe.hsla(e,t,i,n);if(s)return s.value="hsl",s},hsla:function(e,t,i,n){let s,r;function o(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?s+(r-s)*e*6:2*e<1?r:3*e<2?s+(r-s)*(2/3-e)*6:s}try{if(e instanceof c)return n=t?tt(t):e.alpha,new c(e.rgb,n,"hsla");e=tt(e)%360/360,t=Ze(tt(t)),i=Ze(tt(i)),n=Ze(tt(n)),r=i<=.5?i*(t+1):i+t-i*t,s=2*i-r;const a=[255*o(e+1/3),255*o(e),255*o(e-1/3)];return n=tt(n),new c(a,n,"hsla")}catch(e){}},hsv:function(e,t,i){return Qe.hsva(e,t,i,1)},hsva:function(e,t,i,n){let s,r;e=tt(e)%360/360*360,t=tt(t),i=tt(i),n=tt(n),s=Math.floor(e/60%6),r=e/60-s;const o=[i,i*(1-t),i*(1-r*t),i*(1-(1-r)*t)],a=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return Qe.rgba(255*o[a[s][0]],255*o[a[s][1]],255*o[a[s][2]],n)},hue:function(e){return new X(Ye(e).h)},saturation:function(e){return new X(100*Ye(e).s,"%")},lightness:function(e){return new X(100*Ye(e).l,"%")},hsvhue:function(e){return new X(et(e).h)},hsvsaturation:function(e){return new X(100*et(e).s,"%")},hsvvalue:function(e){return new X(100*et(e).v,"%")},red:function(e){return new X(e.rgb[0])},green:function(e){return new X(e.rgb[1])},blue:function(e){return new X(e.rgb[2])},alpha:function(e){return new X(Ye(e).a)},luma:function(e){return new X(e.luma()*e.alpha*100,"%")},luminance:function(e){const t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new X(t*e.alpha*100,"%")},saturate:function(e,t,i){if(!e.rgb)return null;const n=Ye(e);return void 0!==i&&"relative"===i.value?n.s+=n.s*t.value/100:n.s+=t.value/100,n.s=Ze(n.s),Xe(e,n)},desaturate:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.s-=n.s*t.value/100:n.s-=t.value/100,n.s=Ze(n.s),Xe(e,n)},lighten:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.l+=n.l*t.value/100:n.l+=t.value/100,n.l=Ze(n.l),Xe(e,n)},darken:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.l-=n.l*t.value/100:n.l-=t.value/100,n.l=Ze(n.l),Xe(e,n)},fadein:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.a+=n.a*t.value/100:n.a+=t.value/100,n.a=Ze(n.a),Xe(e,n)},fadeout:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.a-=n.a*t.value/100:n.a-=t.value/100,n.a=Ze(n.a),Xe(e,n)},fade:function(e,t){const i=Ye(e);return i.a=t.value/100,i.a=Ze(i.a),Xe(e,i)},spin:function(e,t){const i=Ye(e),n=(i.h+t.value)%360;return i.h=n<0?360+n:n,Xe(e,i)},mix:function(e,t,i){i||(i=new X(50));const n=i.value/100,s=2*n-1,r=Ye(e).a-Ye(t).a,o=((s*r==-1?s:(s+r)/(1+s*r))+1)/2,a=1-o,l=[e.rgb[0]*o+t.rgb[0]*a,e.rgb[1]*o+t.rgb[1]*a,e.rgb[2]*o+t.rgb[2]*a],u=e.alpha*n+t.alpha*(1-n);return new c(l,u)},greyscale:function(e){return Qe.desaturate(e,new X(100))},contrast:function(e,t,i,n){if(!e.rgb)return null;if(void 0===i&&(i=Qe.rgba(255,255,255,1)),void 0===t&&(t=Qe.rgba(0,0,0,1)),t.luma()>i.luma()){const e=i;i=t,t=e}return n=void 0===n?.43:tt(n),e.luma()<n?i:t},argb:function(e){return new Y(e.toARGB())},color:function(e){if(e instanceof Re&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){const t=e.value.slice(1);return new c(t,void 0,"#"+t)}if(e instanceof c||(e=c.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return Qe.mix(Qe.rgb(255,255,255),e,t)},shade:function(e,t){return Qe.mix(Qe.rgb(0,0,0),e,t)}};var it=Qe;function nt(e,t,i){const n=t.alpha;let s;const r=i.alpha;let o,a,l;const u=[];a=r+n*(1-r);for(let c=0;c<3;c++)s=t.rgb[c]/255,o=i.rgb[c]/255,l=e(s,o),a&&(l=(r*o+n*(s-r*(s+o-l)))/a),u[c]=255*l;return new c(u,a)}const st={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?st.multiply(e,t):st.screen(e-1,t)},softlight:function(e,t){let i=1,n=e;return t>.5&&(n=1,i=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*n*(i-e)},hardlight:function(e,t){return st.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(const e in st)st.hasOwnProperty(e)&&(nt[e]=nt.bind(null,st[e]));var rt=e=>{const t=(e,t)=>new Fe(t,e.index,e.currentFileInfo).eval(e.context);return{"data-uri":function(i,n){n||(n=i,i=null);let r=i&&i.value,o=n.value;const a=this.currentFileInfo,l=a.rewriteUrls?a.currentDirectory:a.entryPath,u=o.indexOf("#");let c="";-1!==u&&(c=o.slice(u),o=o.slice(0,u));const h=A(this.context);h.rawBuffer=!0;const f=e.getFileManager(o,l,h,e,!0);if(!f)return t(this,n);let p=!1;if(i)p=/;base64$/.test(r);else{if(r=e.mimeLookup(o),"image/svg+xml"===r)p=!1;else{const t=e.charsetLookup(r);p=["US-ASCII","UTF-8"].indexOf(t)<0}p&&(r+=";base64")}const d=f.loadFileSync(o,l,h,e);if(!d.contents)return s.warn(`Skipped data-uri embedding of ${o} because file not found`),t(this,n||i);let m=d.contents;if(p&&!e.encodeBase64)return t(this,n);m=p?e.encodeBase64(m):encodeURIComponent(m);const g=`data:${r},${m}${c}`;return new Fe(new Re(`"${g}"`,g,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}};const ot=e=>Array.isArray(e.value)?e.value:Array(e);var at={_SELF:function(e){return e},"~":function(...e){return 1===e.length?e[0]:new te(e)},extract:function(e,t){return t=t.value-1,ot(e)[t]},length:function(e){return new X(ot(e).length)},range:function(e,t,i){let n,s,r=1;const o=[];t?(s=t,n=e.value,i&&(r=i.value)):(n=1,s=e);for(let e=n;e<=s.value;e+=r)o.push(new X(e,s.unit));return new ee(o)},each:function(e,t){const i=[];let n,s;const r=e=>e instanceof u?e.eval(this.context):e;s=!e.value||e instanceof Re?e.ruleset?r(e.ruleset).rules:e.rules?e.rules.map(r):Array.isArray(e)?e.map(r):[r(e)]:Array.isArray(e.value)?e.value.map(r):[r(e.value)];let o="@value",a="@key",l="@index";t.params?(o=t.params[0]&&t.params[0].name,a=t.params[1]&&t.params[1].name,l=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(let e=0;e<s.length;e++){let r,u;const c=s[e];c instanceof de?(r="string"==typeof c.name?c.name:c.name[0].value,u=c.value):(r=new X(e+1),u=c),c instanceof Q||(n=t.rules.slice(0),o&&n.push(new de(o,u,!1,!1,this.index,this.currentFileInfo)),l&&n.push(new de(l,new X(e+1),!1,!1,this.index,this.currentFileInfo)),a&&n.push(new de(a,r,!1,!1,this.index,this.currentFileInfo)),i.push(new ge([new he([new g("","&")])],n,t.strictImports,t.visibilityInfo())))}return new ge([new he([new g("","&")])],i,t.strictImports,t.visibilityInfo()).eval(this.context)}};const lt=(e,t,i)=>{if(!(i instanceof X))throw{type:"Argument",message:"argument must be a number"};return null===t?t=i.unit:i=i.unify(),new X(e(parseFloat(i.value)),t)},ut={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(const e in ut)ut.hasOwnProperty(e)&&(ut[e]=lt.bind(null,Math[e],ut[e]));ut.round=(e,t)=>{const i=void 0===t?0:t.value;return lt(e=>e.toFixed(i),null,e)};const ct=function(e,t){switch((t=Array.prototype.slice.call(t)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}let i,n,s,r,o,a,l,u;const c=[],h={};for(i=0;i<t.length;i++){if(s=t[i],!(s instanceof X)){if(Array.isArray(t[i].value)){Array.prototype.push.apply(t,Array.prototype.slice.call(t[i].value));continue}throw{type:"Argument",message:"incompatible types"}}if(r=""===s.unit.toString()&&void 0!==u?new X(s.value,u).unify():s.unify(),a=""===r.unit.toString()&&void 0!==l?l:r.unit.toString(),l=""!==a&&void 0===l||""!==a&&""===c[0].unify().unit.toString()?a:l,u=""!==a&&void 0===u?s.unit.toString():u,n=void 0!==h[""]&&""!==a&&a===l?h[""]:h[a],void 0!==n)o=""===c[n].unit.toString()&&void 0!==u?new X(c[n].value,u).unify():c[n].unify(),(e&&r.value<o.value||!e&&r.value>o.value)&&(c[n]=s);else{if(void 0!==l&&a!==l)throw{type:"Argument",message:"incompatible types"};h[a]=c.length,c.push(s)}}return 1==c.length?c[0]:(t=c.map(e=>e.toCSS(this.context)).join(this.context.compress?",":", "),new Y(`${e?"min":"max"}(${t})`))};var ht={min:function(...e){try{return ct.call(this,!0,e)}catch(e){}},max:function(...e){try{return ct.call(this,!1,e)}catch(e){}},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new X(Math.PI)},mod:function(e,t){return new X(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new X(e),t=new X(t);else if(!(e instanceof X&&t instanceof X))throw{type:"Argument",message:"arguments must be numbers"};return new X(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return lt(e=>100*e,"%",e)}},ft={e:function(e){return new Re('"',e instanceof De?e.evaluated:e.value,!0)},escape:function(e){return new Y(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,i,n){let s=e.value;return i="Quoted"===i.type?i.value:i.toCSS(),s=s.replace(new RegExp(t.value,n?n.value:""),i),new Re(e.quote||"",s,e.escaped)},"%":function(e){const t=Array.prototype.slice.call(arguments,1);let i=e.value;for(let e=0;e<t.length;e++)i=i.replace(/%[sda]/i,i=>{const n="Quoted"===t[e].type&&i.match(/s/i)?t[e].value:t[e].toCSS();return i.match(/[A-Z]$/)?encodeURIComponent(n):n});return i=i.replace(/%%/g,"%"),new Re(e.quote||"",i,e.escaped)}},pt=()=>({"svg-gradient":function(e){let t,i,n="linear",s='x="0" y="0" width="1" height="1"';const r={compress:!1};let o;const a=e.toCSS(r);let l,u,h,f,p;function d(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&d(),t=arguments[1].value):arguments.length<3?d():t=Array.prototype.slice.call(arguments,1),a){case"to bottom":i='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":i='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":i='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":i='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":n="radial",i='cx="50%" cy="50%" r="75%"',s='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(o=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><${n}Gradient id="g" ${i}>`,l=0;l<t.length;l+=1)t[l]instanceof ee?(u=t[l].value[0],h=t[l].value[1]):(u=t[l],h=void 0),u instanceof c&&((0===l||l+1===t.length)&&void 0===h||h instanceof X)||d(),f=h?h.toCSS(r):0===l?"0%":"100%",p=u.alpha,o+=`<stop offset="${f}" stop-color="${u.toRGB()}"${p<1?` stop-opacity="${p}"`:""}/>`;return o+=`</${n}Gradient><rect ${s} fill="url(#g)" /></svg>`,o=encodeURIComponent(o),o="data:image/svg+xml,"+o,new Fe(new Re(`'${o}'`,o,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}});const dt=(e,t)=>e instanceof t?fe.True:fe.False,mt=(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 X&&e.unit.is(t)?fe.True:fe.False};var gt={isruleset:function(e){return dt(e,Ce)},iscolor:function(e){return dt(e,c)},isnumber:function(e){return dt(e,X)},isstring:function(e){return dt(e,Re)},iskeyword:function(e){return dt(e,fe)},isurl:function(e){return dt(e,Fe)},ispixel:function(e){return mt(e,"px")},ispercentage:function(e){return mt(e,"%")},isem:function(e){return mt(e,"em")},isunit:mt,unit:function(e,t){if(!(e instanceof X))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof Ae?". Have you forgotten parenthesis?":"")};return t=t?t instanceof fe?t.value:t.toCSS():"",new X(e.value,t)},"get-unit":function(e){return new Y(e.unit)}};const vt=function(e){if(0===(e=Array.prototype.slice.call(e)).length)throw{type:"Argument",message:"one or more arguments required"};const t=[new Me(e[0].value,this.index,this.currentFileInfo).eval(this.context)].map(e=>e.toCSS(this.context)).join(this.context.compress?",":", ");return new Y(`style(${t})`)};var yt={style:function(...e){try{return vt.call(this,e)}catch(e){}}},bt=e=>{const t={functionRegistry:oe,functionCaller:_e};return oe.addMultiple(He),oe.add("default",me.eval.bind(me)),oe.addMultiple(it),oe.addMultiple(nt),oe.addMultiple(rt(e)),oe.addMultiple(at),oe.addMultiple(ut),oe.addMultiple(ht),oe.addMultiple(ft),oe.addMultiple(pt()),oe.addMultiple(gt),oe.addMultiple(yt),t};function wt(e,t){let i,n=(t=t||{}).variables;const s=new N.Eval(t);"object"!=typeof n||Array.isArray(n)||(n=Object.keys(n).map((function(e){let t=n[e];return t instanceof ze.Value||(t instanceof ze.Expression||(t=new ze.Expression([t])),t=new ze.Value([t])),new ze.Declaration("@"+e,t,!1,null,0)})),s.frames=[new ze.Ruleset(null,n)]);const r=[new re.JoinSelectorVisitor,new re.MarkVisibleSelectorsVisitor(!0),new re.ExtendVisitor,new re.ToCSSVisitor({compress:Boolean(t.compress)})],o=[];let a,l;if(t.pluginManager){l=t.pluginManager.visitor();for(let t=0;t<2;t++)for(l.first();a=l.get();)a.isPreEvalVisitor?0!==t&&-1!==o.indexOf(a)||(o.push(a),a.run(e)):0!==t&&-1!==r.indexOf(a)||(a.isPreVisitor?r.unshift(a):r.push(a))}i=e.eval(s);for(let e=0;e<r.length;e++)r[e].run(i);if(t.pluginManager)for(l.first();a=l.get();)-1===r.indexOf(a)&&-1===o.indexOf(a)&&a.run(i);return i}class xt{constructor(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}addPlugins(e){if(e)for(let t=0;t<e.length;t++)this.addPlugin(e[t])}addPlugin(e,t,i){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,i||this.less.functions.functionRegistry)}get(e){return this.pluginCache[e]}addVisitor(e){this.visitors.push(e)}addPreProcessor(e,t){let i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=t);i++);this.preProcessors.splice(i,0,{preProcessor:e,priority:t})}addPostProcessor(e,t){let i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=t);i++);this.postProcessors.splice(i,0,{postProcessor:e,priority:t})}addFileManager(e){this.fileManagers.push(e)}getPreProcessors(){const e=[];for(let t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e}getPostProcessors(){const e=[];for(let t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e}getVisitors(){return this.visitors}visitor(){const e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}}getFileManagers(){return this.fileManagers}}let St;const It=function(e,t){return!t&&St||(St=new xt(e)),St};var Ct=function(e){var t=e.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!t)throw new Error("Unable to parse: "+e);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10),pre:t[4]||"",build:t[5]||""}};function kt(e,t,i="0.0.0"){let n,o,a,u;n=function(e){return class{constructor(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?t.outputFilename.replace(/\\/g,"/"):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}removeBasepath(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e}normalizeFilename(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e}add(e,t,i,n){if(!e)return;let s,r,o,a,l;if(t&&t.filename){let n=this._contentsMap[t.filename];if(this._contentsIgnoredCharsMap[t.filename]&&((i-=this._contentsIgnoredCharsMap[t.filename])<0&&(i=0),n=n.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===n)return void this._css.push(e);n=n.substring(0,i),r=n.split("\n"),a=r[r.length-1]}if(s=e.split("\n"),o=s[s.length-1],t&&t.filename)if(n)for(l=0;l<s.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:r.length+l,column:0===l?a.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:r.length,column:a.length},source:this.normalizeFilename(t.filename)});1===s.length?this._column+=o.length:(this._lineNumber+=s.length-1,this._column=o.length),this._css.push(e)}isEmpty(){return 0===this._css.length}toCSS(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(const e in this._contentsMap)if(this._contentsMap.hasOwnProperty(e)){let t=this._contentsMap[e];this._contentsIgnoredCharsMap[e]&&(t=t.slice(this._contentsIgnoredCharsMap[e])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(e),t)}if(this._rootNode.genCSS(e,this),this._css.length>0){let e;const t=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?e=this.sourceMapURL:this._sourceMapFilename&&(e=this._sourceMapFilename),this.sourceMapURL=e,this.sourceMap=t}return this._css.join("")}}}(e=new r(e,t)),o=function(e,t){return class{constructor(e){this.options=e}toCSS(t,i,n){const s=new e({contentsIgnoredCharsMap:n.contentsIgnoredChars,rootNode:t,contentsMap:n.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),r=s.toCSS(i);return this.sourceMap=s.sourceMap,this.sourceMapURL=s.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=s.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=s.removeBasepath(this.sourceMapURL)),r+this.getCSSAppendage()}getCSSAppendage(){let e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":e?`/*# sourceMappingURL=${e} */`:""}getExternalSourceMap(){return this.sourceMap}setExternalSourceMap(e){this.sourceMap=e}isInline(){return this.options.sourceMapFileInline}getSourceMapURL(){return this.sourceMapURL}getOutputFilename(){return this.options.sourceMapOutputFilename}getInputFilename(){return this.sourceMapInputFilename}}}(n,e),a=function(e){return class{constructor(e,t){this.root=e,this.imports=t}toCSS(t){let i;const n={};let r;try{i=wt(this.root,t)}catch(e){throw new F(e,this.imports)}try{const o=Boolean(t.compress);o&&s.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");const a={compress:o,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};if(t.sourceMap){!0===t.sourceMap&&(t.sourceMap={});const s=t.sourceMap;if(!s.sourceMapInputFilename&&t.filename&&(s.sourceMapInputFilename=t.filename),void 0===s.sourceMapBasepath&&t.filename){const e=Math.max(t.filename.lastIndexOf("/"),t.filename.lastIndexOf("\\"));s.sourceMapBasepath=e>=0?t.filename.substring(0,e):"."}if(s.sourceMapFullFilename&&!s.sourceMapFileInline){if(!s.sourceMapFilename&&!s.sourceMapURL){const e=s.sourceMapFullFilename.split(/[/\\]/).pop();s.sourceMapFilename=e}}else if(!s.sourceMapFilename&&!s.sourceMapURL)if(s.sourceMapOutputFilename)s.sourceMapFilename=s.sourceMapOutputFilename+".map";else if(t.filename){const e=t.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");s.sourceMapFilename=e+".css.map"}if(!s.sourceMapOutputFilename)if(t.filename){const e=t.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");s.sourceMapOutputFilename=e+".css"}else s.sourceMapOutputFilename="output.css";r=new e(s),n.css=r.toCSS(i,a,this.imports)}else n.css=i.toCSS(a)}catch(e){throw new F(e,this.imports)}if(t.pluginManager){const e=t.pluginManager.getPostProcessors();for(let i=0;i<e.length;i++)n.css=e[i].process(n.css,{sourceMap:r,options:t,imports:this.imports})}t.sourceMap&&(n.map=r.getExternalSourceMap()),n.imports=[];for(const e in this.imports.files)Object.prototype.hasOwnProperty.call(this.imports.files,e)&&e!==this.imports.rootFilename&&n.imports.push(e);return n}}}(o),u=function(e){return class{constructor(e,t,i){this.less=e,this.rootFilename=i.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}}push(t,i,n,r,o){const a=this,l=this.context.pluginManager.Loader;this.queue.push(t);const u=function(e,i,n){a.queue.splice(a.queue.indexOf(t),1);const l=n===a.rootFilename;r.optional&&e?(o(null,{rules:[]},!1,null),s.info(`The file ${n} was skipped because it was not found and the import was marked optional.`)):(a.files[n]||r.inline||(a.files[n]={root:i,options:r}),e&&!a.error&&(a.error=e),o(e,i,l,n))},c={rewriteUrls:this.context.rewriteUrls,entryPath:n.entryPath,rootpath:n.rootpath,rootFilename:n.rootFilename},h=e.getFileManager(t,n.currentDirectory,this.context,e);if(!h)return void u({message:"Could not find a file-manager for "+t});const f=function(e){let t;const i=e.filename,s=e.contents.replace(/^\uFEFF/,"");c.currentDirectory=h.getPath(i),c.rewriteUrls&&(c.rootpath=h.join(a.context.rootpath||"",h.pathDiff(c.currentDirectory,c.entryPath)),!h.isPathAbsolute(c.rootpath)&&h.alwaysMakePathsAbsolute()&&(c.rootpath=h.join(c.entryPath,c.rootpath))),c.filename=i;const o=new N.Parse(a.context);o.processImports=!1,a.contents[i]=s,(n.reference||r.reference)&&(c.reference=!0),r.isPlugin?(t=l.evalPlugin(s,o,a,r.pluginArgs,c),t instanceof F?u(t,null,i):u(null,t,i)):r.inline?u(null,s,i):!a.files[i]||a.files[i].options.multiple||r.multiple?new ce(o,a,c).parse(s,(function(e,t){u(e,t,i)})):u(null,a.files[i].root,i)};let p,d;const m=A(this.context);i&&(m.ext=r.isPlugin?".js":".less"),r.isPlugin?(m.mime="application/javascript",m.syncImport?p=l.loadPluginSync(t,n.currentDirectory,m,e,h):d=l.loadPlugin(t,n.currentDirectory,m,e,h)):m.syncImport?p=h.loadFileSync(t,n.currentDirectory,m,e):d=h.loadFile(t,n.currentDirectory,m,e,(e,t)=>{e?u(e):f(t)}),p?p.filename?f(p):u(p):d&&d.then(f,u)}}}(e);const c=function(e,t){const i=function(e,n,s){if("function"==typeof n?(s=n,n=$(this.options,{})):n=$(this.options,n||{}),!s){const t=this;return new Promise((function(s,r){i.call(t,e,n,(function(e,t){e?r(e):s(t)}))}))}this.parse(e,n,(function(e,i,n,r){if(e)return s(e);let o;try{o=new t(i,n).toCSS(r)}catch(e){return s(e)}s(null,o)}))};return i}(0,a),h=function(e,t,i){const n=function(e,t,s){if("function"==typeof t?(s=t,t=$(this.options,{})):t=$(this.options,t||{}),!s){const i=this;return new Promise((function(s,r){n.call(i,e,t,(function(e,t){e?r(e):s(t)}))}))}{let n,r;const o=new It(this,!t.reUsePluginManager);if(t.pluginManager=o,n=new N.Parse(t),t.rootFileInfo)r=t.rootFileInfo;else{const e=t.filename||"input",i=e.replace(/[^/\\]*$/,"");r={filename:e,rewriteUrls:n.rewriteUrls,rootpath:n.rootpath||"",currentDirectory:i,entryPath:i,rootFilename:e},r.rootpath&&"/"!==r.rootpath.slice(-1)&&(r.rootpath+="/")}const a=new i(this,n,r);this.importManager=a,t.plugins&&t.plugins.forEach((function(e){let t,i;if(e.fileContent){if(i=e.fileContent.replace(/^\uFEFF/,""),t=o.Loader.evalPlugin(i,n,a,e.options,e.filename),t instanceof F)return s(t)}else o.addPlugin(e)})),new ce(n,a,r).parse(e,(function(e,i){if(e)return s(e);s(null,i,a,t)}),t)}};return n}(0,0,u),f=Ct("v"+i),p={version:[f.major,f.minor,f.patch],data:l,tree:ze,Environment:r,AbstractFileManager:Ge,AbstractPluginLoader:We,environment:e,visitors:re,Parser:ce,functions:bt(e),contexts:N,SourceMapOutput:n,SourceMapBuilder:o,ParseTree:a,ImportManager:u,render:c,parse:h,LessError:F,transformTree:wt,utils:P,PluginManager:It,logger:s},d=function(e){return function(...t){return new e(...t)}};let m;const g=Object.create(p);for(const e in p.tree)if(m=p.tree[e],"function"==typeof m)g[e.toLowerCase()]=d(m);else{g[e]=Object.create(null);for(const t in m)g[e][t.toLowerCase()]=d(m[t])}return p.parse=p.parse.bind(g),p.render=p.render.bind(g),g}let At,_t,$t={};const Mt=function(){};Mt.prototype=Object.assign(new Ge,{alwaysMakePathsAbsolute:()=>!0,join(e,t){return e?this.extractUrlParts(t,e).path:t},doXHR(e,t,i,n){const s=new XMLHttpRequest,r=!At.isFileProtocol||At.fileAsync;function o(t,i,n){t.status>=200&&t.status<300?i(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof n&&n(t.status,e)}"function"==typeof s.overrideMimeType&&s.overrideMimeType("text/css"),_t.debug(`XHR: Getting '${e}'`),s.open("GET",e,r),s.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),s.send(null),At.isFileProtocol&&!At.fileAsync?0===s.status||s.status>=200&&s.status<300?i(s.responseText):n(s.status,e):r?s.onreadystatechange=()=>{4==s.readyState&&o(s,i,n)}:o(s,i,n)},supports:()=>!0,clearFileCache(){$t={}},loadFile(e,t,i){t&&!this.isPathAbsolute(e)&&(e=t+e),e=i.ext?this.tryAppendExtension(e,i.ext):e,i=i||{};const n=this.extractUrlParts(e,window.location.href).url,s=this;return new Promise((e,t)=>{if(i.useFileCache&&$t[n])try{const t=$t[n];return e({contents:t,filename:n,webInfo:{lastModified:new Date}})}catch(e){return t({filename:n,message:`Error loading file ${n} error was ${e.message}`})}s.doXHR(n,i.mime,(function(t,i){$t[n]=t,e({contents:t,filename:n,webInfo:{lastModified:i}})}),(function(e,i){t({type:"File",message:`'${i}' wasn't found (${e})`,href:n})}))})}});var Et=(e,t)=>(At=e,_t=t,Mt);const Pt=function(e){this.less=e};Pt.prototype=Object.assign(new We,{loadPlugin:(e,t,i,n,s)=>new Promise((r,o)=>{s.loadFile(e,t,i,n).then(r).catch(o)})});var Rt=(t,n,s)=>({add:function(r,o){s.errorReporting&&"html"!==s.errorReporting?"console"===s.errorReporting?function(e,t){const i=e.filename||t,r=[];let o=`${e.type||"Syntax"}Error: ${e.message||"There is an error in your .less file"} in ${i}`;const a=(e,t,i)=>{void 0!==e.extract[t]&&r.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[t]))};e.line&&(a(e,0,""),a(e,1,"line"),a(e,2,""),o+=` on line ${e.line}, column ${e.column+1}:\n${r.join("\n")}`),e.stack&&(e.extract||s.logLevel>=4)&&(o+="\nStack Trace\n"+e.stack),n.logger.error(o)}(r,o):"function"==typeof s.errorReporting&&s.errorReporting("add",r,o):function(n,r){const o="less-error-message:"+e(r||""),a=t.document.createElement("div");let l,u;const c=[],h=n.filename||r,f=h.match(/([^/]+(\?.*)?)$/)[1];a.id=o,a.className="less-error-message",u=`<h3>${n.type||"Syntax"}Error: ${n.message||"There is an error in your .less file"}</h3><p>in <a href="${h}">${f}</a> `;const p=(e,t,i)=>{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\}/,i).replace(/\{content\}/,e.extract[t]))};n.line&&(p(n,0,""),p(n,1,"line"),p(n,2,""),u+=`on line ${n.line}, column ${n.column+1}:</p><ul>${c.join("")}</ul>`),n.stack&&(n.extract||s.logLevel>=4)&&(u+="<br/>Stack Trace</br />"+n.stack.split("\n").slice(1).join("<br/>")),a.innerHTML=u,i(t.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"}),a.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"===s.env&&(l=setInterval(()=>{const e=t.document,i=e.body;i&&(e.getElementById(o)?i.replaceChild(a,e.getElementById(o)):i.insertBefore(a,i.firstChild),clearInterval(l))},10))}(r,o)},remove:function(i){s.errorReporting&&"html"!==s.errorReporting?"console"===s.errorReporting||"function"==typeof s.errorReporting&&s.errorReporting("remove",i):function(i){const n=t.document.getElementById("less-error-message:"+e(i));n&&n.parentNode.removeChild(n)}(i)}}),Ft="4.6.4";const Ot={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""};if(window.less)for(const e in window.less)Object.prototype.hasOwnProperty.call(window.less,e)&&(Ot[e]=window.less[e]);((e,i)=>{t(i,n(e)),void 0===i.isFileProtocol&&(i.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),i.async=i.async||!1,i.fileAsync=i.fileAsync||!1,i.poll=i.poll||(i.isFileProtocol?1e3:1500),i.env=i.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||i.isFileProtocol?"development":"production");const s=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);s&&(i.dumpLineNumbers=s[1]),void 0===i.useFileCache&&(i.useFileCache=!0),void 0===i.onReady&&(i.onReady=!0),i.relativeUrls&&(i.rewriteUrls="all")})(window,Ot),Ot.plugins=Ot.plugins||[],window.LESS_PLUGINS&&(Ot.plugins=Ot.plugins.concat(window.LESS_PLUGINS));const Vt=((e,n)=>{const s=e.document,r=kt(void 0,void 0,Ft);r.options=n;const o=r.environment,a=Et(n,r.logger),l=new a;o.addFileManager(l),r.FileManager=a,r.PluginLoader=Pt,((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(let i=0;i<t.loggers.length;i++)e.logger.addListener(t.loggers[i])})(r,n);const u=Rt(e,r,n),c=r.cache=n.cache||((e,t,i)=>{let n=null;if("development"!==t.env)try{n=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,s,r){if(n){i.info(`saving ${e} to cache.`);try{n.setItem(e,r),n.setItem(e+":timestamp",t),s&&n.setItem(e+":vars",JSON.stringify(s))}catch(t){i.error(`failed to save "${e}" to local storage for caching.`)}}},getCSS:function(e,t,i){const s=n&&n.getItem(e),r=n&&n.getItem(e+":timestamp");let o=n&&n.getItem(e+":vars");if(i=i||{},o=o||"{}",r&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(r).valueOf()&&JSON.stringify(i)===o)return s}}})(e,n,r.logger);(()=>{function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}const t={"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}};oe.addMultiple(t)})(r.environment),n.functions&&r.functions.functionRegistry.addMultiple(n.functions);const h=/^text\/(x-)?less$/;function f(e){const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function p(e){const t=s.getElementsByTagName("style");for(let i of t)if(i.type.match(h)){const t={...f(n),modifyVars:e,filename:s.location.href.replace(/#.*$/,"")},o=i.innerHTML||"";r.render(o,t,(e,t)=>{e?u.add(e,"inline"):(i.type="text/css",i.styleSheet?i.styleSheet.cssText=t.css:i.innerHTML=t.css)})}}function d(e,i,s,a,h){const p=f(n);t(p,e),p.mime=e.type,h&&(p.modifyVars=h),l.loadFile(e.href,null,p,o).then(t=>{!function(t){const n=t.contents,o=t.filename,h=t.webInfo,f={currentDirectory:l.getPath(o),filename:o,rootFilename:o,rewriteUrls:p.rewriteUrls};if(f.entryPath=f.currentDirectory,f.rootpath=p.rootpath||f.currentDirectory,h){h.remaining=a;const t=c.getCSS(o,h,p.modifyVars);if(!s&&t)return h.local=!0,void i(null,t,n,e,h,o)}u.remove(o),p.rootFileInfo=f,r.render(n,p,(t,s)=>{t?(t.href=o,i(t)):(c.setCSS(e.href,h.lastModified,p.modifyVars,s.css),i(null,s.css,n,e,h,o))})}(t)}).catch(e=>{console.log(e),i(e)})}function m(e,t,i){for(let n=0;n<r.sheets.length;n++)d(r.sheets[n],e,t,r.sheets.length-(n+1),i)}return r.watch=function(){return r.watchMode||(r.env="development","development"===r.env&&(r.watchTimer=setInterval(()=>{r.watchMode&&(l.clearFileCache(),m((t,n,s,r,o)=>{t?u.add(t,t.href||r.href):n&&i(e.document,n,r)}))},n.poll))),this.watchMode=!0,!0},r.unwatch=function(){return clearInterval(r.watchTimer),this.watchMode=!1,!1},r.registerStylesheetsImmediately=()=>{const e=s.getElementsByTagName("link");r.sheets=[];for(let t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(h))&&r.sheets.push(e[t])},r.registerStylesheets=()=>new Promise(e=>{r.registerStylesheetsImmediately(),e()}),r.modifyVars=e=>r.refresh(!0,e,!1),r.refresh=(t,n,s)=>((t||s)&&!1!==s&&l.clearFileCache(),new Promise((s,o)=>{let a,l,c,h;a=l=new Date,h=r.sheets.length,0===h?(l=new Date,c=l-a,r.logger.info("Less has finished and no sheets were loaded."),s({startTime:a,endTime:l,totalMilliseconds:c,sheets:r.sheets.length})):m((t,n,f,p,d)=>{if(t)return u.add(t,t.href||p.href),void o(t);d.local?r.logger.info(`Loading ${p.href} from cache.`):r.logger.info(`Rendered ${p.href} successfully.`),i(e.document,n,p),r.logger.info(`CSS for ${p.href} generated in ${new Date-l}ms`),h--,0===h&&(c=new Date-a,r.logger.info(`Less has finished. CSS generated in ${c}ms`),s({startTime:a,endTime:l,totalMilliseconds:c,sheets:r.sheets.length})),l=new Date},t,n),p(n)})),r.refreshStyles=p,r})(window,Ot);let Lt,Dt,Nt;function Bt(e){e.filename&&console.warn(e),Ot.async||Dt.removeChild(Nt)}return window.less=Vt,Ot.onReady&&(/!watch/.test(window.location.hash)&&Vt.watch(),Ot.async||(Lt="body { display: none !important }",Dt=document.head||document.getElementsByTagName("head")[0],Nt=document.createElement("style"),Nt.type="text/css",Nt.styleSheet?Nt.styleSheet.cssText=Lt:Nt.appendChild(document.createTextNode(Lt)),Dt.appendChild(Nt)),Vt.registerStylesheetsImmediately(),Vt.pageLoadFinished=Vt.refresh("development"===Vt.env).then(Bt,Bt)),Vt}));
//# sourceMappingURL=less.min.js.map
