/*! grapesjs-parser-postcss - 0.1.1 */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["grapesjs-parser-postcss"]=e():t["grapesjs-parser-postcss"]=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=21)}([function(t,e){e.getArg=function(t,e,r){if(e in t)return t[e];if(3===arguments.length)return r;throw new Error('"'+e+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function o(t){var e=t.match(r);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}function i(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}function s(t){var r=t,n=o(t);if(n){if(!n.path)return t;r=n.path}for(var s,a=e.isAbsolute(r),u=r.split(/\/+/),l=0,c=u.length-1;c>=0;c--)"."===(s=u[c])?u.splice(c,1):".."===s?l++:l>0&&(""===s?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(r=u.join("/"))&&(r=a?"/":"."),n?(n.path=r,i(n)):r}function a(t,e){""===t&&(t="."),""===e&&(e=".");var r=o(e),a=o(t);if(a&&(t=a.path||"/"),r&&!r.scheme)return a&&(r.scheme=a.scheme),i(r);if(r||e.match(n))return e;if(a&&!a.host&&!a.path)return a.host=e,i(a);var u="/"===e.charAt(0)?e:s(t.replace(/\/+$/,"")+"/"+e);return a?(a.path=u,i(a)):u}e.urlParse=o,e.urlGenerate=i,e.normalize=s,e.join=a,e.isAbsolute=function(t){return"/"===t.charAt(0)||r.test(t)},e.relative=function(t,e){""===t&&(t="."),t=t.replace(/\/$/,"");for(var r=0;0!==e.indexOf(t+"/");){var n=t.lastIndexOf("/");if(n<0)return e;if((t=t.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)};var u=!("__proto__"in Object.create(null));function l(t){return t}function c(t){if(!t)return!1;var e=t.length;if(e<9)return!1;if(95!==t.charCodeAt(e-1)||95!==t.charCodeAt(e-2)||111!==t.charCodeAt(e-3)||116!==t.charCodeAt(e-4)||111!==t.charCodeAt(e-5)||114!==t.charCodeAt(e-6)||112!==t.charCodeAt(e-7)||95!==t.charCodeAt(e-8)||95!==t.charCodeAt(e-9))return!1;for(var r=e-10;r>=0;r--)if(36!==t.charCodeAt(r))return!1;return!0}function f(t,e){return t===e?0:null===t?1:null===e?-1:t>e?1:-1}e.toSetString=u?l:function(t){return c(t)?"$"+t:t},e.fromSetString=u?l:function(t){return c(t)?t.slice(1):t},e.compareByOriginalPositions=function(t,e,r){var n=f(t.source,e.source);return 0!==n?n:0!=(n=t.originalLine-e.originalLine)?n:0!=(n=t.originalColumn-e.originalColumn)||r?n:0!=(n=t.generatedColumn-e.generatedColumn)?n:0!=(n=t.generatedLine-e.generatedLine)?n:f(t.name,e.name)},e.compareByGeneratedPositionsDeflated=function(t,e,r){var n=t.generatedLine-e.generatedLine;return 0!==n?n:0!=(n=t.generatedColumn-e.generatedColumn)||r?n:0!==(n=f(t.source,e.source))?n:0!=(n=t.originalLine-e.originalLine)?n:0!=(n=t.originalColumn-e.originalColumn)?n:f(t.name,e.name)},e.compareByGeneratedPositionsInflated=function(t,e){var r=t.generatedLine-e.generatedLine;return 0!==r?r:0!=(r=t.generatedColumn-e.generatedColumn)?r:0!==(r=f(t.source,e.source))?r:0!=(r=t.originalLine-e.originalLine)?r:0!=(r=t.originalColumn-e.originalColumn)?r:f(t.name,e.name)},e.parseSourceMapInput=function(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(t,e,r){if(e=e||"",t&&("/"!==t[t.length-1]&&"/"!==e[0]&&(t+="/"),e=t+e),r){var n=o(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var u=n.path.lastIndexOf("/");u>=0&&(n.path=n.path.substring(0,u+1))}e=a(i(n),e)}return s(e)}},function(t,e,r){"use strict";e.__esModule=!0;var n=function(t){function e(r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r));return n.type="decl",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){return t&&t.__esModule?t:{default:t}}(r(2)).default);e.default=n,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=a(r(10)),i=a(r(11)),s=a(r(3));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.raws={},e)this[r]=e[r]}return t.prototype.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.positionBy(e);return this.source.input.error(t,r.line,r.column,e)}return new o.default(t)},t.prototype.warn=function(t,e,r){var n={node:this};for(var o in r)n[o]=r[o];return t.warn(e,n)},t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.toString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default;t.stringify&&(t=t.stringify);var e="";return t(this,function(t){e+=t}),e},t.prototype.clone=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function t(e,r){var o=new e.constructor;for(var i in e)if(e.hasOwnProperty(i)){var s=e[i],a=void 0===s?"undefined":n(s);"parent"===i&&"object"===a?r&&(o[i]=r):"source"===i?o[i]=s:s instanceof Array?o[i]=s.map(function(e){return t(e,o)}):("object"===a&&null!==s&&(s=t(s)),o[i]=s)}return o}(this);for(var r in t)e[r]=t[r];return e},t.prototype.cloneBefore=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.clone(t);return this.parent.insertBefore(this,e),e},t.prototype.cloneAfter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.clone(t);return this.parent.insertAfter(this,e),e},t.prototype.replaceWith=function(){if(this.parent){for(var t=arguments.length,e=Array(t),r=0;r=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var a=s;this.parent.insertBefore(this,a)}this.remove()}return this},t.prototype.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},t.prototype.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},t.prototype.before=function(t){return this.parent.insertBefore(this,t),this},t.prototype.after=function(t){return this.parent.insertAfter(this,t),this},t.prototype.toJSON=function(){var t={};for(var e in this)if(this.hasOwnProperty(e)&&"parent"!==e){var r=this[e];r instanceof Array?t[e]=r.map(function(t){return"object"===(void 0===t?"undefined":n(t))&&t.toJSON?t.toJSON():t}):"object"===(void 0===r?"undefined":n(r))&&r.toJSON?t[e]=r.toJSON():t[e]=r}return t},t.prototype.raw=function(t,e){return(new i.default).raw(this,t,e)},t.prototype.root=function(){for(var t=this;t.parent;)t=t.parent;return t},t.prototype.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},t.prototype.positionInside=function(t){for(var e=this.toString(),r=this.source.start.column,n=this.source.start.line,o=0;o=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(t){return n.exec(t).slice(1)};function i(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!n;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,n="/"===s.charAt(0))}return e=r(i(e.split("/"),function(t){return!!t}),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),o="/"===s(t,-1);return(t=r(i(t.split("/"),function(t){return!!t}),!n).join("/"))||n||(t="."),t&&o&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),a=s,u=0;u=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.last),l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;this.nodes.push(p)}}return this},e.prototype.prepend=function(){for(var t=arguments.length,e=Array(t),r=0;r=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.first,"prepend").reverse(),l=u,c=Array.isArray(l),f=0;for(l=c?l:l[Symbol.iterator]();;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var h=p;this.nodes.unshift(h)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+u.length}return this},e.prototype.cleanRaws=function(e){if(t.prototype.cleanRaws.call(this,e),this.nodes){var r=this.nodes,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}i.cleanRaws(e)}}},e.prototype.insertBefore=function(t,e){var r=0===(t=this.index(t))&&"prepend",n=this.normalize(e,this.nodes[t],r).reverse(),o=n,i=Array.isArray(o),s=0;for(o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if((s=o.next()).done)break;a=s.value}var u=a;this.nodes.splice(t,0,u)}var l=void 0;for(var c in this.indexes)t<=(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},e.prototype.insertAfter=function(t,e){t=this.index(t);var r=this.normalize(e,this.nodes[t]).reverse(),n=r,o=Array.isArray(n),i=0;for(n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var a=s;this.nodes.splice(t+1,0,a)}var u=void 0;for(var l in this.indexes)t<(u=this.indexes[l])&&(this.indexes[l]=u+r.length);return this},e.prototype.removeChild=function(t){t=this.index(t),this.nodes[t].parent=void 0,this.nodes.splice(t,1);var e=void 0;for(var r in this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this},e.prototype.removeAll=function(){var t=this.nodes,e=Array.isArray(t),r=0;for(t=e?t:t[Symbol.iterator]();;){var n;if(e){if(r>=t.length)break;n=t[r++]}else{if((r=t.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},e.prototype.replaceValues=function(t,e,r){return r||(r=e,e={}),this.walkDecls(function(n){e.props&&-1===e.props.indexOf(n.prop)||e.fast&&-1===n.value.indexOf(e.fast)||(n.value=n.value.replace(t,r))}),this},e.prototype.every=function(t){return this.nodes.every(t)},e.prototype.some=function(t){return this.nodes.some(t)},e.prototype.index=function(t){return"number"==typeof t?t:this.nodes.indexOf(t)},e.prototype.normalize=function(t,e){var n=this;if("string"==typeof t)t=function t(e){return e.map(function(e){return e.nodes&&(e.nodes=t(e.nodes)),delete e.source,e})}(r(5)(t).nodes);else if(Array.isArray(t)){var s=t=t.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var l;if(a){if(u>=s.length)break;l=s[u++]}else{if((u=s.next()).done)break;l=u.value}var c=l;c.parent&&c.parent.removeChild(c,"ignore")}}else if("root"===t.type){var f=t=t.nodes.slice(0),p=Array.isArray(f),h=0;for(f=p?f:f[Symbol.iterator]();;){var d;if(p){if(h>=f.length)break;d=f[h++]}else{if((h=f.next()).done)break;d=h.value}var g=d;g.parent&&g.parent.removeChild(g,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new o.default(t)]}else if(t.selector){t=[new(r(9))(t)]}else if(t.name){t=[new(r(7))(t)]}else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new i.default(t)]}return t.map(function(t){return t.parent&&t.parent.removeChild(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/[^\s]/g,"")),t.parent=n,t})},n(e,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),e}(s(r(2)).default);e.default=a,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=function(){function t(t,e){for(var r=0;r",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},t.prototype.showSourceCode=function(t){var e=this;if(!this.source)return"";var r=this.source;i.default&&(void 0===t&&(t=n.default.stdout),t&&(r=(0,i.default)(r)));var s=r.split(/\r?\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),l=String(u).length;function c(e){return t&&o.default.red?o.default.red.bold(e):e}function f(e){return t&&o.default.gray?o.default.gray(e):e}return s.slice(a,u).map(function(t,r){var n=a+1+r,o=" "+(" "+n).slice(-l)+" | ";if(n===e.line){var i=f(o.replace(/\d/g," "))+t.slice(0,e.column-1).replace(/[^\t]/g," ");return c(">")+f(o)+t+"\n "+i+c("^")}return" "+f(o)+t}).join("\n")},t.prototype.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},t}();e.default=a,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.builder=e}return t.prototype.stringify=function(t,e){this[t.type](t,e)},t.prototype.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},t.prototype.comment=function(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)},t.prototype.decl=function(t,e){var r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)},t.prototype.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},t.prototype.atrule=function(t,e){var r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{var o=(t.raws.between||"")+(e?";":"");this.builder(r+n+o,t)}},t.prototype.body=function(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),n=0;n0&&void 0!==t.raws.after)return-1!==(e=t.raws.after).indexOf("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/[^\s]/g,"")),e},t.prototype.rawBeforeOpen=function(t){var e=void 0;return t.walk(function(t){if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e},t.prototype.rawColon=function(t){var e=void 0;return t.walkDecls(function(t){if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e},t.prototype.beforeAfter=function(t,e){var r=void 0;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var n=t.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(-1!==r.indexOf("\n")){var i=this.raw(t,null,"indent");if(i.length)for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.version="7.0.2",this.plugins=this.normalize(e)}return t.prototype.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},t.prototype.process=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return 0===this.plugins.length&&(e.parser,e.stringifier),new o.default(this,t,e)}),t.prototype.normalize=function(t){var e=[],r=t,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var s;if(o){if(i>=r.length)break;s=r[i++]}else{if((i=r.next()).done)break;s=i.value}var a=s;if(a.postcss&&(a=a.postcss),"object"===(void 0===a?"undefined":n(a))&&Array.isArray(a.plugins))e=e.concat(a.plugins);else if("function"==typeof a)e.push(a);else{if("object"!==(void 0===a?"undefined":n(a))||!a.parse&&!a.stringify)throw new Error(a+" is not a PostCSS plugin")}}return e},t}();e.default=i,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=function(){function t(t,e){for(var r=0;r=this.processor.plugins.length)return this.processed=!0,t();try{var n=this.processor.plugins[this.plugin],o=this.run(n);this.plugin+=1,c(o)?o.then(function(){r.asyncTick(t,e)}).catch(function(t){r.handleError(t,n),r.processed=!0,e(t)}):this.asyncTick(t,e)}catch(t){this.processed=!0,e(t)}},t.prototype.async=function(){var t=this;return this.processed?new Promise(function(e,r){t.error?r(t.error):e(t.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(e,r){if(t.error)return r(t.error);t.plugin=0,t.asyncTick(e,r)}).then(function(){return t.processed=!0,t.stringify()}),this.processing)},t.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var t=this.result.processor.plugins,e=Array.isArray(t),r=0;for(t=e?t:t[Symbol.iterator]();;){var n;if(e){if(r>=t.length)break;n=t[r++]}else{if((r=t.next()).done)break;n=r.value}var o=n;if(c(this.run(o)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},t.prototype.run=function(t){this.result.lastPlugin=t;try{return t(this.result.root,this.result)}catch(e){throw this.handleError(e,t),e}},t.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=s.default;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new i.default(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},n(t,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),t}();e.default=f,t.exports=e.default},function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=r(29),o=r(30),i=r(31);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var c=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){for(var f=!0,p=0;po&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function C(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function E(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:l>223?3:l>191?2:1;if(o+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(u=(15&l)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return E(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,s=r-e,a=Math.min(i,s),l=this.slice(n,o),c=t.slice(e,r),f=0;fo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return b(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function M(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function T(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function B(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function j(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,i){return i||j(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function I(t,e,r,n,i){return i||j(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(28))},function(t,e,r){e.SourceMapGenerator=r(16).SourceMapGenerator,e.SourceMapConsumer=r(34).SourceMapConsumer,e.SourceNode=r(37).SourceNode},function(t,e,r){var n=r(17),o=r(0),i=r(18).ArraySet,s=r(33).MappingList;function a(t){t||(t={}),this._file=o.getArg(t,"file",null),this._sourceRoot=o.getArg(t,"sourceRoot",null),this._skipValidation=o.getArg(t,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(t){var e=t.sourceRoot,r=new a({file:t.file,sourceRoot:e});return t.eachMapping(function(t){var n={generated:{line:t.generatedLine,column:t.generatedColumn}};null!=t.source&&(n.source=t.source,null!=e&&(n.source=o.relative(e,n.source)),n.original={line:t.originalLine,column:t.originalColumn},null!=t.name&&(n.name=t.name)),r.addMapping(n)}),t.sources.forEach(function(n){var i=n;null!==e&&(i=o.relative(e,n)),r._sources.has(i)||r._sources.add(i);var s=t.sourceContentFor(n);null!=s&&r.setSourceContent(n,s)}),r},a.prototype.addMapping=function(t){var e=o.getArg(t,"generated"),r=o.getArg(t,"original",null),n=o.getArg(t,"source",null),i=o.getArg(t,"name",null);this._skipValidation||this._validateMapping(e,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},a.prototype.setSourceContent=function(t,e){var r=t;null!=this._sourceRoot&&(r=o.relative(this._sourceRoot,r)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(r)]=e):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(t,e,r){var n=e;if(null==e){if(null==t.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=t.file}var s=this._sourceRoot;null!=s&&(n=o.relative(s,n));var a=new i,u=new i;this._mappings.unsortedForEach(function(e){if(e.source===n&&null!=e.originalLine){var i=t.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=i.source&&(e.source=i.source,null!=r&&(e.source=o.join(r,e.source)),null!=s&&(e.source=o.relative(s,e.source)),e.originalLine=i.line,e.originalColumn=i.column,null!=i.name&&(e.name=i.name))}var l=e.source;null==l||a.has(l)||a.add(l);var c=e.name;null==c||u.has(c)||u.add(c)},this),this._sources=a,this._names=u,t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=o.join(r,e)),null!=s&&(e=o.relative(s,e)),this.setSourceContent(e,n))},this)},a.prototype._validateMapping=function(t,e,r,n){if(e&&"number"!=typeof e.line&&"number"!=typeof e.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0)||e||r||n)&&!(t&&"line"in t&&"column"in t&&e&&"line"in e&&"column"in e&&t.line>0&&t.column>=0&&e.line>0&&e.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:e,name:n}))},a.prototype._serializeMappings=function(){for(var t,e,r,i,s=0,a=1,u=0,l=0,c=0,f=0,p="",h=this._mappings.toArray(),d=0,g=h.length;d0){if(!o.compareByGeneratedPositionsInflated(e,h[d-1]))continue;t+=","}t+=n.encode(e.generatedColumn-s),s=e.generatedColumn,null!=e.source&&(i=this._sources.indexOf(e.source),t+=n.encode(i-f),f=i,t+=n.encode(e.originalLine-1-l),l=e.originalLine-1,t+=n.encode(e.originalColumn-u),u=e.originalColumn,null!=e.name&&(r=this._names.indexOf(e.name),t+=n.encode(r-c),c=r)),p+=t}return p},a.prototype._generateSourcesContent=function(t,e){return t.map(function(t){if(!this._sourcesContents)return null;null!=e&&(t=o.relative(e,t));var r=o.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a},function(t,e,r){var n=r(32);e.encode=function(t){var e,r="",o=function(t){return t<0?1+(-t<<1):0+(t<<1)}(t);do{e=31&o,(o>>>=5)>0&&(e|=32),r+=n.encode(e)}while(o>0);return r},e.decode=function(t,e,r){var o,i,s=t.length,a=0,u=0;do{if(e>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=n.decode(t.charCodeAt(e++))))throw new Error("Invalid base64 digit: "+t.charAt(e-1));o=!!(32&i),a+=(i&=31)<>1;return 1==(1&t)?-e:e}(a),r.rest=e}},function(t,e,r){var n=r(0),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(t,e){for(var r=new s,n=0,o=t.length;n=0)return e}else{var r=n.toSetString(t);if(o.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')},s.prototype.at=function(t){if(t>=0&&t0&&(s-=1):0===s&&-1!==e.indexOf(c)&&(i=!0),i?(""!==o&&n.push(o.trim()),o="",i=!1):o+=c}return(r||""!==o)&&n.push(o.trim()),n},space:function(t){return n.split(t,[" ","\n","\t"])},comma:function(t){return n.split(t,[","],!0)}};e.default=n,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=function(t){function e(r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r));return n.type="root",n.nodes||(n.nodes=[]),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.removeChild=function(e,r){var n=this.index(e);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),t.prototype.removeChild.call(this,e)},e.prototype.normalize=function(e,r,n){var o=t.prototype.normalize.call(this,e);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}u.raws.before=r.raws.before}}return o},e.prototype.toResult=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(r(13))(new(r(12)),this,t).stringify()},e}(function(t){return t&&t.__esModule?t:{default:t}}(r(8)).default);e.default=n,t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};n({},e);t.setCustomParserCss(o.default)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAtRule=e.createRule=e.log=void 0;var n=Object.assign||function(t){for(var e=1;e=0?t.nodes.forEach(function(t){e.push(n({},s(t),{atRule:r,params:o}))}):e.push(n({},s(t),{atRule:r}))};e.default=function(t,e){var r=[];i(e,["Input CSS",t]);var n=o.default.parse(t);return i(e,["PostCSS AST",n]),n.nodes.forEach(function(t){switch(t.type){case"rule":r.push(s(t));break;case"atrule":a(t,r)}}),i(e,["Output",r]),r}},function(t,e,r){"use strict";e.__esModule=!0;var n=h(r(1)),o=h(r(12)),i=h(r(3)),s=h(r(6)),a=h(r(7)),u=h(r(47)),l=h(r(5)),c=h(r(19)),f=h(r(9)),p=h(r(20));function h(t){return t&&t.__esModule?t:{default:t}}function d(){for(var t=arguments.length,e=Array(t),r=0;r0},t.prototype.previous=function(){var t=this;return this.previousMaps||(this.previousMaps=[],this.root.walk(function(e){if(e.source&&e.source.input.map){var r=e.source.input.map;-1===t.previousMaps.indexOf(r)&&t.previousMaps.push(r)}})),this.previousMaps},t.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(function(t){return t.inline}))},t.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(t){return t.withContent()})},t.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var t=void 0,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)},t.prototype.setSourcesContent=function(){var t=this,e={};this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!e[n]){e[n]=!0;var o=t.relative(n);t.map.setSourceContent(o,r.source.input.css)}}})},t.prototype.applyPrevMaps=function(){var t=this.previous(),e=Array.isArray(t),r=0;for(t=e?t:t[Symbol.iterator]();;){var n;if(e){if(r>=t.length)break;n=t[r++]}else{if((r=t.next()).done)break;n=r.value}var s=n,a=this.relative(s.file),u=s.root||i.default.dirname(s.file),l=void 0;!1===this.mapOpts.sourcesContent?(l=new o.default.SourceMapConsumer(s.text)).sourcesContent&&(l.sourcesContent=l.sourcesContent.map(function(){return null})):l=s.consumer(),this.map.applySourceMap(l,a,this.relative(u))}},t.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(t){return t.annotation}))},t.prototype.toBase64=function(t){return n?n.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},t.prototype.addAnnotation=function(){var t=void 0;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var e="\n";-1!==this.css.indexOf("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"},t.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},t.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.prototype.relative=function(t){if(0===t.indexOf("<"))return t;if(/^\w+:\/\//.test(t))return t;var e=this.opts.to?i.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(e=i.default.dirname(i.default.resolve(e,this.mapOpts.annotation))),t=i.default.relative(e,t),"\\"===i.default.sep?t.replace(/\\/g,"/"):t},t.prototype.sourcePath=function(t){return this.mapOpts.from?this.mapOpts.from:this.relative(t.source.input.from)},t.prototype.generateString=function(){var t=this;this.css="",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var e=1,r=1,n=void 0,i=void 0;this.stringify(this.root,function(o,s,a){t.css+=o,s&&"end"!==a&&(s.source&&s.source.start?t.map.addMapping({source:t.sourcePath(s),generated:{line:e,column:r-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):t.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:r-1}})),(n=o.match(/\n/g))?(e+=n.length,i=o.lastIndexOf("\n"),r=o.length-i):r+=o.length,s&&"start"!==a&&(s.source&&s.source.end?t.map.addMapping({source:t.sourcePath(s),generated:{line:e,column:r-1},original:{line:s.source.end.line,column:s.source.end.column}}):t.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:r-1}}))})},t.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(e){t+=e}),[t]},t}();e.default=a,t.exports=e.default}).call(this,r(14).Buffer)},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){for(var e,r=l(t),n=r[0],s=r[1],a=new i(function(t,e,r){return 3*(e+r)/4-r}(0,n,s)),u=0,c=s>0?n-4:n,f=0;f>16&255,a[u++]=e>>8&255,a[u++]=255&e;2===s&&(e=o[t.charCodeAt(f)]<<2|o[t.charCodeAt(f+1)]>>4,a[u++]=255&e);1===s&&(e=o[t.charCodeAt(f)]<<10|o[t.charCodeAt(f+1)]<<4|o[t.charCodeAt(f+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e);return a},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=0,a=r-o;sa?a:s+16383));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function f(t,e,r){for(var n,o=[],i=e;i>1,c=-7,f=r?o-1:0,p=r?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+t[e+f],f+=p,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+t[e+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=l}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,l=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=255&a,h+=d,a/=256,o-=8);for(s=s<0;t[r+h]=255&s,h+=d,s/=256,l-=8);t[r+h-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(t){if(0<=t&&tr||o==r&&s>=i||n.compareByGeneratedPositionsInflated(t,e)<=0}(this._last,t)?(this._sorted=!1,this._array.push(t)):(this._last=t,this._array.push(t))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=o},function(t,e,r){var n=r(0),o=r(35),i=r(18).ArraySet,s=r(17),a=r(36).quickSort;function u(t,e){var r=t;return"string"==typeof t&&(r=n.parseSourceMapInput(t)),null!=r.sections?new f(r,e):new l(r,e)}function l(t,e){var r=t;"string"==typeof t&&(r=n.parseSourceMapInput(t));var o=n.getArg(r,"version"),s=n.getArg(r,"sources"),a=n.getArg(r,"names",[]),u=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),c=n.getArg(r,"mappings"),f=n.getArg(r,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);u&&(u=n.normalize(u)),s=s.map(String).map(n.normalize).map(function(t){return u&&n.isAbsolute(u)&&n.isAbsolute(t)?n.relative(u,t):t}),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(t){return n.computeSourceURL(u,t,e)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=c,this._sourceMapURL=e,this.file=f}function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function f(t,e){var r=t;"string"==typeof t&&(r=n.parseSourceMapInput(t));var o=n.getArg(r,"version"),s=n.getArg(r,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=s.map(function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(t,"offset"),o=n.getArg(r,"line"),i=n.getArg(r,"column");if(o=0){var a=this._originalMappings[s];if(void 0===t.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===e&&a.originalColumn==l;)i.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},e.SourceMapConsumer=u,l.prototype=Object.create(u.prototype),l.prototype.consumer=u,l.prototype._findSourceIndex=function(t){var e,r=t;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(e=0;e1&&(r.source=g+i[1],g+=i[1],r.originalLine=h+i[2],h=r.originalLine,r.originalLine+=1,r.originalColumn=d+i[3],d=r.originalColumn,i.length>4&&(r.name=y+i[4],y+=i[4])),A.push(r),"number"==typeof r.originalLine&&_.push(r)}a(A,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,a(_,n.compareByOriginalPositions),this.__originalMappings=_},l.prototype._findMapping=function(t,e,r,n,i,s){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[n]);return o.search(t,e,i,s)},l.prototype.computeColumnSpans=function(){for(var t=0;t=0){var o=this._generatedMappings[r];if(o.generatedLine===e.generatedLine){var i=n.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=n.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=n.getArg(o,"name",null);return null!==s&&(s=this._names.at(s)),{source:i,line:n.getArg(o,"originalLine",null),column:n.getArg(o,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return null==t}))},l.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var o,i=t;if(null!=this.sourceRoot&&(i=n.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=n.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(e)return null;throw new Error('"'+i+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(t){var e=n.getArg(t,"source");if((e=this._findSourceIndex(e))<0)return{line:null,column:null,lastColumn:null};var r={source:e,originalLine:n.getArg(t,"line"),originalColumn:n.getArg(t,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(t,"bias",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===r.source)return{line:n.getArg(i,"generatedLine",null),column:n.getArg(i,"generatedColumn",null),lastColumn:n.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=l,f.prototype=Object.create(u.prototype),f.prototype.constructor=u,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var t=[],e=0;e0?n-u>1?t(u,n,o,i,s,a):a==e.LEAST_UPPER_BOUND?n1?t(r,u,o,i,s,a):a==e.LEAST_UPPER_BOUND?u:r<0?-1:r}(-1,r.length,t,r,n,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===n(r[i],r[i-1],!0);)--i;return i}},function(t,e){function r(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function n(t,e,o,i){if(o=0;e--)this.prepend(t[e]);else{if(!t[s]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);this.children.unshift(t)}return this},a.prototype.walk=function(t){for(var e,r=0,n=this.children.length;r0){for(e=[],r=0;r1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:{};e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new o.default(t,e);return this.messages.push(r),r},t.prototype.warnings=function(){return this.messages.filter(function(t){return"warning"===t.type})},n(t,[{key:"content",get:function(){return this.css}}]),t}();e.default=i,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="warning",this.text=e,r.node&&r.node.source){var n=r.node.positionBy(r);this.line=n.line,this.column=n.column}for(var o in r)this[o]=r[o]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t}();e.default=n,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=l(r(1)),o=l(r(43)),i=l(r(6)),s=l(r(7)),a=l(r(20)),u=l(r(9));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.input=e,this.root=new a.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}return t.prototype.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.prototype.parse=function(){for(var t=void 0;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()},t.prototype.comment=function(t){var e=new i.default;this.init(e,t[2],t[3]),e.source.end={line:t[4],column:t[5]};var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);e.text=n[2],e.raws.left=n[1],e.raws.right=n[3]}},t.prototype.emptyRule=function(t){var e=new u.default;this.init(e,t[2],t[3]),e.selector="",e.raws.between="",this.current=e},t.prototype.other=function(t){for(var e=!1,r=null,n=!1,o=null,i=[],s=[],a=t;a;){if(r=a[0],s.push(a),"("===r||"["===r)o||(o=a),i.push("("===r?")":"]");else if(0===i.length){if(";"===r){if(n)return void this.decl(s);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.pop()),e=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),i.length>0&&this.unclosedBracket(o),e&&n){for(;s.length&&("space"===(a=s[s.length-1][0])||"comment"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},t.prototype.rule=function(t){t.pop();var e=new u.default;this.init(e,t[0][2],t[0][3]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e},t.prototype.decl=function(t){var e=new n.default;this.init(e);var r=t[t.length-1];for(";"===r[0]&&(this.semicolon=!0,t.pop()),r[4]?e.source.end={line:r[4],column:r[5]}:e.source.end={line:r[2],column:r[3]};"word"!==t[0][0];)1===t.length&&this.unknownWord(t),e.raws.before+=t.shift()[1];for(e.source.start={line:t[0][2],column:t[0][3]},e.prop="";t.length;){var o=t[0][0];if(":"===o||"space"===o||"comment"===o)break;e.prop+=t.shift()[1]}e.raws.between="";for(var i=void 0;t.length;){if(":"===(i=t.shift())[0]){e.raws.between+=i[1];break}e.raws.between+=i[1]}"_"!==e.prop[0]&&"*"!==e.prop[0]||(e.raws.before+=e.prop[0],e.prop=e.prop.slice(1)),e.raws.between+=this.spacesAndCommentsFromStart(t),this.precheckMissedSemicolon(t);for(var s=t.length-1;s>0;s--){if("!important"===(i=t[s])[1].toLowerCase()){e.important=!0;var a=this.stringFrom(t,s);" !important"!==(a=this.spacesFromEnd(t)+a)&&(e.raws.important=a);break}if("important"===i[1].toLowerCase()){for(var u=t.slice(0),l="",c=s;c>0;c--){var f=u[c][0];if(0===l.trim().indexOf("!")&&"space"!==f)break;l=u.pop()[1]+l}0===l.trim().indexOf("!")&&(e.important=!0,e.raws.important=l,t=u)}if("space"!==i[0]&&"comment"!==i[0])break}this.raw(e,"value",t),-1!==e.value.indexOf(":")&&this.checkMissedSemicolon(t)},t.prototype.atrule=function(t){var e=new s.default;e.name=t[1].slice(1),""===e.name&&this.unnamedAtrule(e,t),this.init(e,t[2],t[3]);for(var r=void 0,n=void 0,o=!1,i=!1,a=[];!this.tokenizer.endOfFile();){if(";"===(t=this.tokenizer.nextToken())[0]){e.source.end={line:t[2],column:t[3]},this.semicolon=!0;break}if("{"===t[0]){i=!0;break}if("}"===t[0]){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(e.source.end={line:r[4],column:r[5]})}this.end(t);break}if(a.push(t),this.tokenizer.endOfFile()){o=!0;break}}e.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(e.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(e,"params",a),o&&(t=a[a.length-1],e.source.end={line:t[4],column:t[5]},this.spaces=e.raws.between,e.raws.between="")):(e.raws.afterName="",e.params=""),i&&(e.nodes=[],this.current=e)},t.prototype.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:t[2],column:t[3]},this.current=this.current.parent):this.unexpectedClose(t)},t.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},t.prototype.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},t.prototype.init=function(t,e,r){this.current.push(t),t.source={start:{line:e,column:r},input:this.input},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)},t.prototype.raw=function(t,e,r){for(var n=void 0,o=void 0,i=r.length,s="",a=!0,u=void 0,l=void 0,c=/^([.|#])?([\w])+/i,f=0;f=0&&("space"===(n=t[o])[0]||2!==(r+=1));o--);throw this.input.error("Missed semicolon",n[2],n[3])}},t}();e.default=c,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.css.valueOf(),O=e.ignoreErrors,M=void 0,x=void 0,R=void 0,k=void 0,P=void 0,L=void 0,T=void 0,B=void 0,j=void 0,U=void 0,I=void 0,D=void 0,N=void 0,F=void 0,Y=r.length,z=-1,G=1,$=0,V=[],W=[];function J(e){throw t.error("Unclosed "+e,G,$-z)}return{back:function(t){W.push(t)},nextToken:function(){if(W.length)return W.pop();if($>=Y)return;((M=r.charCodeAt($))===a||M===l||M===f&&r.charCodeAt($+1)!==a)&&(z=$,G+=1);switch(M){case a:case u:case c:case f:case l:x=$;do{x+=1,(M=r.charCodeAt(x))===a&&(z=x,G+=1)}while(M===u||M===a||M===c||M===f||M===l);F=["space",r.slice($,x)],$=x-1;break;case p:F=["[","[",G,$-z];break;case h:F=["]","]",G,$-z];break;case y:F=["{","{",G,$-z];break;case m:F=["}","}",G,$-z];break;case b:F=[":",":",G,$-z];break;case v:F=[";",";",G,$-z];break;case d:if(D=V.length?V.pop()[1]:"",N=r.charCodeAt($+1),"url"===D&&N!==n&&N!==o&&N!==u&&N!==a&&N!==c&&N!==l&&N!==f){x=$;do{if(U=!1,-1===(x=r.indexOf(")",x+1))){if(O){x=$;break}J("bracket")}for(I=x;r.charCodeAt(I-1)===i;)I-=1,U=!U}while(U);F=["brackets",r.slice($,x+1),G,$-z,G,x-z],$=x}else x=r.indexOf(")",$+1),L=r.slice($,x+1),-1===x||C.test(L)?F=["(","(",G,$-z]:(F=["brackets",L,G,$-z,G,x-z],$=x);break;case g:F=[")",")",G,$-z];break;case n:case o:R=M===n?"'":'"',x=$;do{if(U=!1,-1===(x=r.indexOf(R,x+1))){if(O){x=$+1;break}J("string")}for(I=x;r.charCodeAt(I-1)===i;)I-=1,U=!U}while(U);L=r.slice($,x+1),k=L.split("\n"),(P=k.length-1)>0?(B=G+P,j=x-k[P].length):(B=G,j=z),F=["string",r.slice($,x+1),G,$-z,B,x-j],z=j,G=B,$=x;break;case _:A.lastIndex=$+1,A.test(r),x=0===A.lastIndex?r.length-1:A.lastIndex-2,F=["at-word",r.slice($,x+1),G,$-z,G,x-z],$=x;break;case i:for(x=$,T=!0;r.charCodeAt(x+1)===i;)x+=1,T=!T;if(M=r.charCodeAt(x+1),T&&M!==s&&M!==u&&M!==a&&M!==c&&M!==f&&M!==l&&(x+=1,E.test(r.charAt(x)))){for(;E.test(r.charAt(x+1));)x+=1;r.charCodeAt(x+1)===u&&(x+=1)}F=["word",r.slice($,x+1),G,$-z,G,x-z],$=x;break;default:M===s&&r.charCodeAt($+1)===w?(0===(x=r.indexOf("*/",$+2)+1)&&(O?x=r.length:J("comment")),L=r.slice($,x+1),k=L.split("\n"),(P=k.length-1)>0?(B=G+P,j=x-k[P].length):(B=G,j=z),F=["comment",L,G,$-z,B,x-j],z=j,G=B,$=x):(S.lastIndex=$+1,S.test(r),x=0===S.lastIndex?r.length-1:S.lastIndex-2,F=["word",r.slice($,x+1),G,$-z,G,x-z],V.push(F),$=x)}return $++,F},endOfFile:function(){return 0===W.length&&$>=Y}}};var n=39,o=34,i=92,s=47,a=10,u=32,l=12,c=9,f=13,p=91,h=93,d=40,g=41,y=123,m=125,v=59,w=42,b=58,_=64,A=/[ \n\t\r\f{}()'"\\;/[\]#]/g,S=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g,C=/.[\\/("'\n]/,E=/[a-f0-9]/i;t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===e||"object"===(void 0===e?"undefined":n(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");this.css=e.toString(),"\ufeff"!==this.css[0]&&"￾"!==this.css[0]||(this.css=this.css.slice(1)),r.from&&(/^\w+:\/\//.test(r.from)?this.file=r.from:this.file=a.default.resolve(r.from));var o=new s.default(this.css,r);if(o.text){this.map=o;var i=o.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}this.file||(l+=1,this.id=""),this.map&&(this.map.file=this.from)}return t.prototype.error=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,s=this.origin(e,r);return(o=s?new i.default(t,s.line,s.column,s.source,s.file,n.plugin):new i.default(t,e,r,this.css,this.file,n.plugin)).input={line:e,column:r,source:this.css},this.file&&(o.input.file=this.file),o},t.prototype.origin=function(t,e){if(!this.map)return!1;var r=this.map.consumer(),n=r.originalPositionFor({line:t,column:e});if(!n.source)return!1;var o={file:this.mapResolve(n.source),line:n.line,column:n.column},i=r.sourceContentFor(n.source);return i&&(o.source=i),o},t.prototype.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:a.default.resolve(this.map.consumer().sourceRoot||".",t)},o(t,[{key:"from",get:function(){return this.file||this.id}}]),t}();e.default=c,t.exports=e.default},function(t,e,r){"use strict";(function(n){e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=u(r(15)),s=u(r(4)),a=u(r(46));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);o&&(this.text=o)}return t.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new i.default.SourceMapConsumer(this.text)),this.consumerCache},t.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.prototype.startWith=function(t,e){return!!t&&t.substr(0,e.length)===e},t.prototype.loadAnnotation=function(t){var e=t.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);e&&(this.annotation=e[1].trim())},t.prototype.decodeInline=function(t){var e="data:application/json,";if(this.startWith(t,e))return decodeURIComponent(t.substr(e.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return function(t){return n?n.from(t,"base64").toString():window.atob(t)}(t.substr(RegExp.lastMatch.length));var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.prototype.loadMap=function(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"==typeof e){var r=e(t);if(r&&a.default.existsSync&&a.default.existsSync(r))return a.default.readFileSync(r,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+r.toString())}if(e instanceof i.default.SourceMapConsumer)return i.default.SourceMapGenerator.fromSourceMap(e).toString();if(e instanceof i.default.SourceMapGenerator)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var n=this.annotation;return t&&(n=s.default.join(s.default.dirname(t),n)),this.root=s.default.dirname(n),!(!a.default.existsSync||!a.default.existsSync(n))&&a.default.readFileSync(n,"utf-8").toString().trim()}},t.prototype.isMap=function(t){return"object"===(void 0===t?"undefined":o(t))&&("string"==typeof t.mappings||"string"==typeof t._mappings)},t}();e.default=l,t.exports=e.default}).call(this,r(14).Buffer)},function(t,e){},function(t,e,r){"use strict";e.__esModule=!0;e.default={prefix:function(t){var e=t.match(/^(-\w+-)/);return e?e[0]:""},unprefixed:function(t){return t.replace(/^-\w+-/,"")}},t.exports=e.default}])}); //# sourceMappingURL=grapesjs-parser-postcss.min.js.map