UNPKG

next

Version:

The React Framework

2 lines • 72.6 kB
(()=>{var e={441:e=>{"use strict"; /*! https://mths.be/cssesc v3.0.0 by @mathias */var t={};var r=t.hasOwnProperty;var n=function merge(e,t){if(!e){return t}var n={};for(var i in t){n[i]=r.call(e,i)?e[i]:t[i]}return n};var i=/[ -,\.\/:-@\[-\^`\{-~]/;var s=/[ -,\.\/:-@\[\]\^`\{-~]/;var o=/['"\\]/;var a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var u=function cssesc(e,t){t=n(t,cssesc.options);if(t.quotes!="single"&&t.quotes!="double"){t.quotes="single"}var r=t.quotes=="double"?'"':"'";var o=t.isIdentifier;var u=e.charAt(0);var c="";var l=0;var f=e.length;while(l<f){var p=e.charAt(l++);var d=p.charCodeAt();var h=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&l<f){var v=e.charCodeAt(l++);if((v&64512)==56320){d=((d&1023)<<10)+(v&1023)+65536}else{l--}}h="\\"+d.toString(16).toUpperCase()+" "}else{if(t.escapeEverything){if(i.test(p)){h="\\"+p}else{h="\\"+d.toString(16).toUpperCase()+" "}}else if(/[\t\n\f\r\x0B]/.test(p)){h="\\"+d.toString(16).toUpperCase()+" "}else if(p=="\\"||!o&&(p=='"'&&r==p||p=="'"&&r==p)||o&&s.test(p)){h="\\"+p}else{h=p}}c+=h}if(o){if(/^-[-\d]/.test(c)){c="\\-"+c.slice(1)}else if(/\d/.test(u)){c="\\3"+u+" "+c.slice(1)}}c=c.replace(a,(function(e,t,r){if(t&&t.length%2){return e}return(t||"")+r}));if(!o&&t.wrap){return r+c+r}return c};u.options={escapeEverything:false,isIdentifier:false,quotes:"single",wrap:false};u.version="3.0.0";e.exports=u},742:(e,t,r)=>{"use strict";const n=r(133);const i=r(45);const{extractICSS:s}=r(903);const o="cssmodules-pure-no-check";const a="cssmodules-pure-ignore";const isSpacing=e=>e.type==="combinator"&&e.value===" ";const isPureCheckDisabled=e=>{for(const t of e.nodes){if(t.type!=="comment"){return false}if(t.text.trim().startsWith(o)){return true}}return false};function getIgnoreComment(e){if(!e.parent){return}const t=e.parent.index(e);for(let r=t-1;r>=0;r--){const t=e.parent.nodes[r];if(t.type==="comment"){if(t.text.trimStart().startsWith(a)){return t}}else{break}}}function normalizeNodeArray(e){const t=[];e.forEach((e=>{if(Array.isArray(e)){normalizeNodeArray(e).forEach((e=>{t.push(e)}))}else if(e){t.push(e)}}));if(t.length>0&&isSpacing(t[t.length-1])){t.pop()}return t}const u=Symbol("is-pure-selector");function localizeNode(e,t,r){const transform=(t,i)=>{if(i.ignoreNextSpacing&&!isSpacing(t)){throw new Error("Missing whitespace after "+i.ignoreNextSpacing)}if(i.enforceNoSpacing&&isSpacing(t)){throw new Error("Missing whitespace before "+i.enforceNoSpacing)}let s;switch(t.type){case"root":{let e;i.hasPureGlobals=false;s=t.nodes.map((r=>{const n={global:i.global,lastWasSpacing:true,hasLocals:false,explicit:false};r=transform(r,n);if(typeof e==="undefined"){e=n.global}else if(e!==n.global){throw new Error('Inconsistent rule global/local result in rule "'+t+'" (multiple selectors must result in the same mode for the rule)')}if(!n.hasLocals){i.hasPureGlobals=true}return r}));i.global=e;t.nodes=normalizeNodeArray(s);break}case"selector":{s=t.map((e=>transform(e,i)));t=t.clone();t.nodes=normalizeNodeArray(s);break}case"combinator":{if(isSpacing(t)){if(i.ignoreNextSpacing){i.ignoreNextSpacing=false;i.lastWasSpacing=false;i.enforceNoSpacing=false;return null}i.lastWasSpacing=true;return t}break}case"pseudo":{let e;const r=!!t.length;const o=t.value===":local"||t.value===":global";const a=t.value===":import"||t.value===":export";if(a){i.hasLocals=true}else if(r){if(o){if(t.nodes.length===0){throw new Error(`${t.value}() can't be empty`)}if(i.inside){throw new Error(`A ${t.value} is not allowed inside of a ${i.inside}(...)`)}e={global:t.value===":global",inside:t.value,hasLocals:false,explicit:true};s=t.map((t=>transform(t,e))).reduce(((e,t)=>e.concat(t.nodes)),[]);if(s.length){const{before:e,after:r}=t.spaces;const n=s[0];const i=s[s.length-1];n.spaces={before:e,after:n.spaces.after};i.spaces={before:i.spaces.before,after:r}}t=s;break}else{e={global:i.global,inside:i.inside,lastWasSpacing:true,hasLocals:false,explicit:i.explicit};s=t.map((t=>{const r={...e,enforceNoSpacing:false};const n=transform(t,r);e.global=r.global;e.hasLocals=r.hasLocals;return n}));t=t.clone();t.nodes=normalizeNodeArray(s);if(e.hasLocals){i.hasLocals=true}}break}else if(o){if(i.inside){throw new Error(`A ${t.value} is not allowed inside of a ${i.inside}(...)`)}const e=!!t.spaces.before;i.ignoreNextSpacing=i.lastWasSpacing?t.value:false;i.enforceNoSpacing=i.lastWasSpacing?false:t.value;i.global=t.value===":global";i.explicit=true;return e?n.combinator({value:" "}):null}break}case"id":case"class":{if(!t.value){throw new Error("Invalid class or id selector syntax")}if(i.global){break}const e=r.has(t.value);const s=e&&i.explicit;if(!e||s){const e=t.clone();e.spaces={before:"",after:""};t=n.pseudo({value:":local",nodes:[e],spaces:t.spaces});i.hasLocals=true}break}case"nesting":{if(t.value==="&"){i.hasLocals=e.parent[u]}}}i.lastWasSpacing=false;i.ignoreNextSpacing=false;i.enforceNoSpacing=false;return t};const i={global:t==="global",hasPureGlobals:false};i.selector=n((e=>{transform(e,i)})).processSync(e,{updateSelector:false,lossless:true});return i}function localizeDeclNode(e,t){switch(e.type){case"word":if(t.localizeNextItem){if(!t.localAliasMap.has(e.value)){e.value=":local("+e.value+")";t.localizeNextItem=false}}break;case"function":if(t.options&&t.options.rewriteUrl&&e.value.toLowerCase()==="url"){e.nodes.map((e=>{if(e.type!=="string"&&e.type!=="word"){return}let r=t.options.rewriteUrl(t.global,e.value);switch(e.type){case"string":if(e.quote==="'"){r=r.replace(/(\\)/g,"\\$1").replace(/'/g,"\\'")}if(e.quote==='"'){r=r.replace(/(\\)/g,"\\$1").replace(/"/g,'\\"')}break;case"word":r=r.replace(/("|'|\)|\\)/g,"\\$1");break}e.value=r}))}break}return e}const c=["none","inherit","initial","revert","revert-layer","unset"];function localizeDeclarationValues(e,t,r){const n=i(t.value);n.walk(((t,n,i)=>{if(t.type==="function"&&(t.value.toLowerCase()==="var"||t.value.toLowerCase()==="env")){return false}if(t.type==="word"&&c.includes(t.value.toLowerCase())){return}const s={options:r.options,global:r.global,localizeNextItem:e&&!r.global,localAliasMap:r.localAliasMap};i[n]=localizeDeclNode(t,s)}));t.value=n.toString()}const l=/^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-(?![0-9]))((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i;const f={$normal:1,$reverse:1,$alternate:1,"$alternate-reverse":1,$forwards:1,$backwards:1,$both:1,$infinite:1,$paused:1,$running:1,$ease:1,"$ease-in":1,"$ease-out":1,"$ease-in-out":1,$linear:1,"$step-end":1,"$step-start":1,$none:Infinity,$initial:Infinity,$inherit:Infinity,$unset:Infinity,$revert:Infinity,"$revert-layer":Infinity};function localizeDeclaration(e,t){const r=/animation(-name)?$/i.test(e.prop);if(r){let r={};const n=i(e.value).walk((e=>{if(e.type==="div"){r={};return}else if(e.type==="function"&&e.value.toLowerCase()==="local"&&e.nodes.length===1){e.type="word";e.value=e.nodes[0].value;return localizeDeclNode(e,{options:t.options,global:t.global,localizeNextItem:true,localAliasMap:t.localAliasMap})}else if(e.type==="function"){if(e.value.toLowerCase()==="global"&&e.nodes.length===1){e.type="word";e.value=e.nodes[0].value}return false}else if(e.type!=="word"){return}const n=e.type==="word"?e.value.toLowerCase():null;let i=false;if(n&&l.test(n)){if("$"+n in f){r["$"+n]="$"+n in r?r["$"+n]+1:0;i=r["$"+n]>=f["$"+n]}else{i=true}}return localizeDeclNode(e,{options:t.options,global:t.global,localizeNextItem:i&&!t.global,localAliasMap:t.localAliasMap})}));e.value=n.toString();return}if(/url\(/i.test(e.value)){return localizeDeclarationValues(false,e,t)}}const isPureSelector=(e,t)=>{if(!t.parent||t.type==="root"){return!e.hasPureGlobals}if(t.type==="rule"&&t[u]){return t[u]||isPureSelector(e,t.parent)}return!e.hasPureGlobals||isPureSelector(e,t.parent)};const isNodeWithoutDeclarations=e=>{if(e.nodes.length>0){return!e.nodes.every((e=>e.type==="rule"||e.type==="atrule"&&!isNodeWithoutDeclarations(e)))}return true};e.exports=(e={})=>{if(e&&e.mode&&e.mode!=="global"&&e.mode!=="local"&&e.mode!=="pure"){throw new Error('options.mode must be either "global", "local" or "pure" (default "local")')}const t=e&&e.mode==="pure";const r=e&&e.mode==="global";return{postcssPlugin:"postcss-modules-local-by-default",prepare(){const n=new Map;return{Once(i){const{icssImports:o}=s(i,false);const a=t&&!isPureCheckDisabled(i);Object.keys(o).forEach((e=>{Object.keys(o[e]).forEach((t=>{n.set(t,o[e][t])}))}));i.walkAtRules((i=>{if(/keyframes$/i.test(i.name)){const t=/^\s*:global\s*\((.+)\)\s*$/.exec(i.params);const s=/^\s*:local\s*\((.+)\)\s*$/.exec(i.params);let o=r;if(t){if(a){const e=getIgnoreComment(i);if(!e){throw i.error("@keyframes :global(...) is not allowed in pure mode")}else{e.remove()}}i.params=t[1];o=true}else if(s){i.params=s[0];o=false}else if(i.params&&!r&&!n.has(i.params)){i.params=":local("+i.params+")"}i.walkDecls((t=>{localizeDeclaration(t,{localAliasMap:n,options:e,global:o})}))}else if(/scope$/i.test(i.name)){if(i.params){const r=t?getIgnoreComment(i):undefined;if(r){r.remove()}i.params=i.params.split("to").map((t=>{const s=t.trim().slice(1,-1).trim();const o=localizeNode(s,e.mode,n);o.options=e;o.localAliasMap=n;if(a&&o.hasPureGlobals&&!r){throw i.error('Selector in at-rule"'+s+'" is not pure '+"(pure selectors must contain at least one local class or id)")}return`(${o.selector})`})).join(" to ")}i.nodes.forEach((t=>{if(t.type==="decl"){localizeDeclaration(t,{localAliasMap:n,options:e,global:r})}}))}else if(i.nodes){i.nodes.forEach((t=>{if(t.type==="decl"){localizeDeclaration(t,{localAliasMap:n,options:e,global:r})}}))}}));i.walkRules((r=>{if(r.parent&&r.parent.type==="atrule"&&/keyframes$/i.test(r.parent.name)){return}const i=localizeNode(r,e.mode,n);i.options=e;i.localAliasMap=n;const s=a?getIgnoreComment(r):undefined;const o=a&&!isPureSelector(i,r);if(o&&isNodeWithoutDeclarations(r)&&!s){throw r.error('Selector "'+r.selector+'" is not pure '+"(pure selectors must contain at least one local class or id)")}else if(s){s.remove()}if(t){r[u]=!o}r.selector=i.selector;if(r.nodes){r.nodes.forEach((e=>localizeDeclaration(e,i)))}}))}}}}};e.exports.postcss=true},133:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(128));var i=_interopRequireWildcard(r(60));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function parser(e){return new n["default"](e)};Object.assign(s,i);delete s.__esModule;var o=s;t["default"]=o;e.exports=t.default},553:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(478));var i=_interopRequireDefault(r(193));var s=_interopRequireDefault(r(692));var o=_interopRequireDefault(r(416));var a=_interopRequireDefault(r(114));var u=_interopRequireDefault(r(830));var c=_interopRequireDefault(r(54));var l=_interopRequireDefault(r(330));var f=_interopRequireWildcard(r(767));var p=_interopRequireDefault(r(627));var d=_interopRequireDefault(r(242));var h=_interopRequireDefault(r(426));var v=_interopRequireDefault(r(549));var _=_interopRequireWildcard(r(999));var y=_interopRequireWildcard(r(530));var g=_interopRequireWildcard(r(763));var b=r(362);var S,m;function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}var O=(S={},S[y.space]=true,S[y.cr]=true,S[y.feed]=true,S[y.newline]=true,S[y.tab]=true,S);var w=Object.assign({},O,(m={},m[y.comment]=true,m));function tokenStart(e){return{line:e[_.FIELDS.START_LINE],column:e[_.FIELDS.START_COL]}}function tokenEnd(e){return{line:e[_.FIELDS.END_LINE],column:e[_.FIELDS.END_COL]}}function getSource(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function getTokenSource(e){return getSource(e[_.FIELDS.START_LINE],e[_.FIELDS.START_COL],e[_.FIELDS.END_LINE],e[_.FIELDS.END_COL])}function getTokenSourceSpan(e,t){if(!e){return undefined}return getSource(e[_.FIELDS.START_LINE],e[_.FIELDS.START_COL],t[_.FIELDS.END_LINE],t[_.FIELDS.END_COL])}function unescapeProp(e,t){var r=e[t];if(typeof r!=="string"){return}if(r.indexOf("\\")!==-1){(0,b.ensureObject)(e,"raws");e[t]=(0,b.unesc)(r);if(e.raws[t]===undefined){e.raws[t]=r}}return e}function indexesOf(e,t){var r=-1;var n=[];while((r=e.indexOf(t,r+1))!==-1){n.push(r)}return n}function uniqs(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,r){return r===e.indexOf(t)}))}var P=function(){function Parser(e,t){if(t===void 0){t={}}this.rule=e;this.options=Object.assign({lossy:false,safe:false},t);this.position=0;this.css=typeof this.rule==="string"?this.rule:this.rule.selector;this.tokens=(0,_["default"])({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var r=getTokenSourceSpan(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new n["default"]({source:r});this.root.errorGenerator=this._errorGenerator();var s=new i["default"]({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(s);this.current=s;this.loop()}var e=Parser.prototype;e._errorGenerator=function _errorGenerator(){var e=this;return function(t,r){if(typeof e.rule==="string"){return new Error(t)}return e.rule.error(t,r)}};e.attribute=function attribute(){var e=[];var t=this.currToken;this.position++;while(this.position<this.tokens.length&&this.currToken[_.FIELDS.TYPE]!==y.closeSquare){e.push(this.currToken);this.position++}if(this.currToken[_.FIELDS.TYPE]!==y.closeSquare){return this.expected("closing square bracket",this.currToken[_.FIELDS.START_POS])}var r=e.length;var n={source:getSource(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[_.FIELDS.START_POS]};if(r===1&&!~[y.word].indexOf(e[0][_.FIELDS.TYPE])){return this.expected("attribute",e[0][_.FIELDS.START_POS])}var i=0;var s="";var o="";var a=null;var u=false;while(i<r){var c=e[i];var l=this.content(c);var p=e[i+1];switch(c[_.FIELDS.TYPE]){case y.space:u=true;if(this.options.lossy){break}if(a){(0,b.ensureObject)(n,"spaces",a);var d=n.spaces[a].after||"";n.spaces[a].after=d+l;var h=(0,b.getProp)(n,"raws","spaces",a,"after")||null;if(h){n.raws.spaces[a].after=h+l}}else{s=s+l;o=o+l}break;case y.asterisk:if(p[_.FIELDS.TYPE]===y.equals){n.operator=l;a="operator"}else if((!n.namespace||a==="namespace"&&!u)&&p){if(s){(0,b.ensureObject)(n,"spaces","attribute");n.spaces.attribute.before=s;s=""}if(o){(0,b.ensureObject)(n,"raws","spaces","attribute");n.raws.spaces.attribute.before=s;o=""}n.namespace=(n.namespace||"")+l;var v=(0,b.getProp)(n,"raws","namespace")||null;if(v){n.raws.namespace+=l}a="namespace"}u=false;break;case y.dollar:if(a==="value"){var g=(0,b.getProp)(n,"raws","value");n.value+="$";if(g){n.raws.value=g+"$"}break}case y.caret:if(p[_.FIELDS.TYPE]===y.equals){n.operator=l;a="operator"}u=false;break;case y.combinator:if(l==="~"&&p[_.FIELDS.TYPE]===y.equals){n.operator=l;a="operator"}if(l!=="|"){u=false;break}if(p[_.FIELDS.TYPE]===y.equals){n.operator=l;a="operator"}else if(!n.namespace&&!n.attribute){n.namespace=true}u=false;break;case y.word:if(p&&this.content(p)==="|"&&e[i+2]&&e[i+2][_.FIELDS.TYPE]!==y.equals&&!n.operator&&!n.namespace){n.namespace=l;a="namespace"}else if(!n.attribute||a==="attribute"&&!u){if(s){(0,b.ensureObject)(n,"spaces","attribute");n.spaces.attribute.before=s;s=""}if(o){(0,b.ensureObject)(n,"raws","spaces","attribute");n.raws.spaces.attribute.before=o;o=""}n.attribute=(n.attribute||"")+l;var S=(0,b.getProp)(n,"raws","attribute")||null;if(S){n.raws.attribute+=l}a="attribute"}else if(!n.value&&n.value!==""||a==="value"&&!(u||n.quoteMark)){var m=(0,b.unesc)(l);var O=(0,b.getProp)(n,"raws","value")||"";var w=n.value||"";n.value=w+m;n.quoteMark=null;if(m!==l||O){(0,b.ensureObject)(n,"raws");n.raws.value=(O||w)+l}a="value"}else{var P=l==="i"||l==="I";if((n.value||n.value==="")&&(n.quoteMark||u)){n.insensitive=P;if(!P||l==="I"){(0,b.ensureObject)(n,"raws");n.raws.insensitiveFlag=l}a="insensitive";if(s){(0,b.ensureObject)(n,"spaces","insensitive");n.spaces.insensitive.before=s;s=""}if(o){(0,b.ensureObject)(n,"raws","spaces","insensitive");n.raws.spaces.insensitive.before=o;o=""}}else if(n.value||n.value===""){a="value";n.value+=l;if(n.raws.value){n.raws.value+=l}}}u=false;break;case y.str:if(!n.attribute||!n.operator){return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[_.FIELDS.START_POS]})}var T=(0,f.unescapeValue)(l),k=T.unescaped,E=T.quoteMark;n.value=k;n.quoteMark=E;a="value";(0,b.ensureObject)(n,"raws");n.raws.value=l;u=false;break;case y.equals:if(!n.attribute){return this.expected("attribute",c[_.FIELDS.START_POS],l)}if(n.value){return this.error('Unexpected "=" found; an operator was already defined.',{index:c[_.FIELDS.START_POS]})}n.operator=n.operator?n.operator+l:l;a="operator";u=false;break;case y.comment:if(a){if(u||p&&p[_.FIELDS.TYPE]===y.space||a==="insensitive"){var D=(0,b.getProp)(n,"spaces",a,"after")||"";var I=(0,b.getProp)(n,"raws","spaces",a,"after")||D;(0,b.ensureObject)(n,"raws","spaces",a);n.raws.spaces[a].after=I+l}else{var L=n[a]||"";var q=(0,b.getProp)(n,"raws",a)||L;(0,b.ensureObject)(n,"raws");n.raws[a]=q+l}}else{o=o+l}break;default:return this.error('Unexpected "'+l+'" found.',{index:c[_.FIELDS.START_POS]})}i++}unescapeProp(n,"attribute");unescapeProp(n,"namespace");this.newNode(new f["default"](n));this.position++};e.parseWhitespaceEquivalentTokens=function parseWhitespaceEquivalentTokens(e){if(e<0){e=this.tokens.length}var t=this.position;var r=[];var n="";var i=undefined;do{if(O[this.currToken[_.FIELDS.TYPE]]){if(!this.options.lossy){n+=this.content()}}else if(this.currToken[_.FIELDS.TYPE]===y.comment){var s={};if(n){s.before=n;n=""}i=new o["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS],spaces:s});r.push(i)}}while(++this.position<e);if(n){if(i){i.spaces.after=n}else if(!this.options.lossy){var a=this.tokens[t];var u=this.tokens[this.position-1];r.push(new c["default"]({value:"",source:getSource(a[_.FIELDS.START_LINE],a[_.FIELDS.START_COL],u[_.FIELDS.END_LINE],u[_.FIELDS.END_COL]),sourceIndex:a[_.FIELDS.START_POS],spaces:{before:n,after:""}}))}}return r};e.convertWhitespaceNodesToSpace=function convertWhitespaceNodesToSpace(e,t){var r=this;if(t===void 0){t=false}var n="";var i="";e.forEach((function(e){var s=r.lossySpace(e.spaces.before,t);var o=r.lossySpace(e.rawSpaceBefore,t);n+=s+r.lossySpace(e.spaces.after,t&&s.length===0);i+=s+e.value+r.lossySpace(e.rawSpaceAfter,t&&o.length===0)}));if(i===n){i=undefined}var s={space:n,rawSpace:i};return s};e.isNamedCombinator=function isNamedCombinator(e){if(e===void 0){e=this.position}return this.tokens[e+0]&&this.tokens[e+0][_.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][_.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][_.FIELDS.TYPE]===y.slash};e.namedCombinator=function namedCombinator(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]);var t=(0,b.unesc)(e).toLowerCase();var r={};if(t!==e){r.value="/"+e+"/"}var n=new d["default"]({value:"/"+t+"/",source:getSource(this.currToken[_.FIELDS.START_LINE],this.currToken[_.FIELDS.START_COL],this.tokens[this.position+2][_.FIELDS.END_LINE],this.tokens[this.position+2][_.FIELDS.END_COL]),sourceIndex:this.currToken[_.FIELDS.START_POS],raws:r});this.position=this.position+3;return n}else{this.unexpected()}};e.combinator=function combinator(){var e=this;if(this.content()==="|"){return this.namespace()}var t=this.locateNextMeaningfulToken(this.position);if(t<0||this.tokens[t][_.FIELDS.TYPE]===y.comma||this.tokens[t][_.FIELDS.TYPE]===y.closeParenthesis){var r=this.parseWhitespaceEquivalentTokens(t);if(r.length>0){var n=this.current.last;if(n){var i=this.convertWhitespaceNodesToSpace(r),s=i.space,o=i.rawSpace;if(o!==undefined){n.rawSpaceAfter+=o}n.spaces.after+=s}else{r.forEach((function(t){return e.newNode(t)}))}}return}var a=this.currToken;var u=undefined;if(t>this.position){u=this.parseWhitespaceEquivalentTokens(t)}var c;if(this.isNamedCombinator()){c=this.namedCombinator()}else if(this.currToken[_.FIELDS.TYPE]===y.combinator){c=new d["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS]});this.position++}else if(O[this.currToken[_.FIELDS.TYPE]]){}else if(!u){this.unexpected()}if(c){if(u){var l=this.convertWhitespaceNodesToSpace(u),f=l.space,p=l.rawSpace;c.spaces.before=f;c.rawSpaceBefore=p}}else{var h=this.convertWhitespaceNodesToSpace(u,true),v=h.space,g=h.rawSpace;if(!g){g=v}var b={};var S={spaces:{}};if(v.endsWith(" ")&&g.endsWith(" ")){b.before=v.slice(0,v.length-1);S.spaces.before=g.slice(0,g.length-1)}else if(v.startsWith(" ")&&g.startsWith(" ")){b.after=v.slice(1);S.spaces.after=g.slice(1)}else{S.value=g}c=new d["default"]({value:" ",source:getTokenSourceSpan(a,this.tokens[this.position-1]),sourceIndex:a[_.FIELDS.START_POS],spaces:b,raws:S})}if(this.currToken&&this.currToken[_.FIELDS.TYPE]===y.space){c.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(c)};e.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var e=new i["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][_.FIELDS.START_POS]});this.current.parent.append(e);this.current=e;this.position++};e.comment=function comment(){var e=this.currToken;this.newNode(new o["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.error=function error(e,t){throw this.root.error(e,t)};e.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[_.FIELDS.START_POS]})};e.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[_.FIELDS.START_POS])};e.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[_.FIELDS.START_POS])};e.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[_.FIELDS.START_POS])};e.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[_.FIELDS.START_POS])};e.namespace=function namespace(){var e=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[_.FIELDS.TYPE]===y.word){this.position++;return this.word(e)}else if(this.nextToken[_.FIELDS.TYPE]===y.asterisk){this.position++;return this.universal(e)}this.unexpectedPipe()};e.nesting=function nesting(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new h["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[_.FIELDS.START_POS]}));this.position++};e.parentheses=function parentheses(){var e=this.current.last;var t=1;this.position++;if(e&&e.type===g.PSEUDO){var r=new i["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][_.FIELDS.START_POS]});var n=this.current;e.append(r);this.current=r;while(this.position<this.tokens.length&&t){if(this.currToken[_.FIELDS.TYPE]===y.openParenthesis){t++}if(this.currToken[_.FIELDS.TYPE]===y.closeParenthesis){t--}if(t){this.parse()}else{this.current.source.end=tokenEnd(this.currToken);this.current.parent.source.end=tokenEnd(this.currToken);this.position++}}this.current=n}else{var s=this.currToken;var o="(";var a;while(this.position<this.tokens.length&&t){if(this.currToken[_.FIELDS.TYPE]===y.openParenthesis){t++}if(this.currToken[_.FIELDS.TYPE]===y.closeParenthesis){t--}a=this.currToken;o+=this.parseParenthesisToken(this.currToken);this.position++}if(e){e.appendToPropertyAndEscape("value",o,o)}else{this.newNode(new c["default"]({value:o,source:getSource(s[_.FIELDS.START_LINE],s[_.FIELDS.START_COL],a[_.FIELDS.END_LINE],a[_.FIELDS.END_COL]),sourceIndex:s[_.FIELDS.START_POS]}))}}if(t){return this.expected("closing parenthesis",this.currToken[_.FIELDS.START_POS])}};e.pseudo=function pseudo(){var e=this;var t="";var r=this.currToken;while(this.currToken&&this.currToken[_.FIELDS.TYPE]===y.colon){t+=this.content();this.position++}if(!this.currToken){return this.expected(["pseudo-class","pseudo-element"],this.position-1)}if(this.currToken[_.FIELDS.TYPE]===y.word){this.splitWord(false,(function(n,i){t+=n;e.newNode(new l["default"]({value:t,source:getTokenSourceSpan(r,e.currToken),sourceIndex:r[_.FIELDS.START_POS]}));if(i>1&&e.nextToken&&e.nextToken[_.FIELDS.TYPE]===y.openParenthesis){e.error("Misplaced parenthesis.",{index:e.nextToken[_.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[_.FIELDS.START_POS])}};e.space=function space(){var e=this.content();if(this.position===0||this.prevToken[_.FIELDS.TYPE]===y.comma||this.prevToken[_.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return e.type==="comment"}))){this.spaces=this.optionalSpace(e);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[_.FIELDS.TYPE]===y.comma||this.nextToken[_.FIELDS.TYPE]===y.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(e);this.position++}else{this.combinator()}};e.string=function string(){var e=this.currToken;this.newNode(new c["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.universal=function universal(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}var r=this.currToken;this.newNode(new p["default"]({value:this.content(),source:getTokenSource(r),sourceIndex:r[_.FIELDS.START_POS]}),e);this.position++};e.splitWord=function splitWord(e,t){var r=this;var n=this.nextToken;var i=this.content();while(n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[_.FIELDS.TYPE])){this.position++;var o=this.content();i+=o;if(o.lastIndexOf("\\")===o.length-1){var c=this.nextToken;if(c&&c[_.FIELDS.TYPE]===y.space){i+=this.requiredSpace(this.content(c));this.position++}}n=this.nextToken}var l=indexesOf(i,".").filter((function(e){var t=i[e-1]==="\\";var r=/^\d+\.\d+%$/.test(i);return!t&&!r}));var f=indexesOf(i,"#").filter((function(e){return i[e-1]!=="\\"}));var p=indexesOf(i,"#{");if(p.length){f=f.filter((function(e){return!~p.indexOf(e)}))}var d=(0,v["default"])(uniqs([0].concat(l,f)));d.forEach((function(n,o){var c=d[o+1]||i.length;var p=i.slice(n,c);if(o===0&&t){return t.call(r,p,d.length)}var h;var v=r.currToken;var y=v[_.FIELDS.START_POS]+d[o];var g=getSource(v[1],v[2]+n,v[3],v[2]+(c-1));if(~l.indexOf(n)){var b={value:p.slice(1),source:g,sourceIndex:y};h=new s["default"](unescapeProp(b,"value"))}else if(~f.indexOf(n)){var S={value:p.slice(1),source:g,sourceIndex:y};h=new a["default"](unescapeProp(S,"value"))}else{var m={value:p,source:g,sourceIndex:y};unescapeProp(m,"value");h=new u["default"](m)}r.newNode(h,e);e=null}));this.position++};e.word=function word(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}return this.splitWord(e)};e.loop=function loop(){while(this.position<this.tokens.length){this.parse(true)}this.current._inferEndPosition();return this.root};e.parse=function parse(e){switch(this.currToken[_.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:if(e){this.missingParenthesis()}break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}};e.expected=function expected(e,t,r){if(Array.isArray(e)){var n=e.pop();e=e.join(", ")+" or "+n}var i=/^[aeiou]/.test(e[0])?"an":"a";if(!r){return this.error("Expected "+i+" "+e+".",{index:t})}return this.error("Expected "+i+" "+e+', found "'+r+'" instead.',{index:t})};e.requiredSpace=function requiredSpace(e){return this.options.lossy?" ":e};e.optionalSpace=function optionalSpace(e){return this.options.lossy?"":e};e.lossySpace=function lossySpace(e,t){if(this.options.lossy){return t?" ":""}else{return e}};e.parseParenthesisToken=function parseParenthesisToken(e){var t=this.content(e);if(e[_.FIELDS.TYPE]===y.space){return this.requiredSpace(t)}else{return t}};e.newNode=function newNode(e,t){if(t){if(/^ +$/.test(t)){if(!this.options.lossy){this.spaces=(this.spaces||"")+t}t=true}e.namespace=t;unescapeProp(e,"namespace")}if(this.spaces){e.spaces.before=this.spaces;this.spaces=""}return this.current.append(e)};e.content=function content(e){if(e===void 0){e=this.currToken}return this.css.slice(e[_.FIELDS.START_POS],e[_.FIELDS.END_POS])};e.locateNextMeaningfulToken=function locateNextMeaningfulToken(e){if(e===void 0){e=this.position+1}var t=e;while(t<this.tokens.length){if(w[this.tokens[t][_.FIELDS.TYPE]]){t++;continue}else{return t}}return-1};_createClass(Parser,[{key:"currToken",get:function get(){return this.tokens[this.position]}},{key:"nextToken",get:function get(){return this.tokens[this.position+1]}},{key:"prevToken",get:function get(){return this.tokens[this.position-1]}}]);return Parser}();t["default"]=P;e.exports=t.default},128:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(553));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=function(){function Processor(e,t){this.func=e||function noop(){};this.funcRes=null;this.options=t}var e=Processor.prototype;e._shouldUpdateSelector=function _shouldUpdateSelector(e,t){if(t===void 0){t={}}var r=Object.assign({},this.options,t);if(r.updateSelector===false){return false}else{return typeof e!=="string"}};e._isLossy=function _isLossy(e){if(e===void 0){e={}}var t=Object.assign({},this.options,e);if(t.lossless===false){return true}else{return false}};e._root=function _root(e,t){if(t===void 0){t={}}var r=new n["default"](e,this._parseOptions(t));return r.root};e._parseOptions=function _parseOptions(e){return{lossy:this._isLossy(e)}};e._run=function _run(e,t){var r=this;if(t===void 0){t={}}return new Promise((function(n,i){try{var s=r._root(e,t);Promise.resolve(r.func(s)).then((function(n){var i=undefined;if(r._shouldUpdateSelector(e,t)){i=s.toString();e.selector=i}return{transform:n,root:s,string:i}})).then(n,i)}catch(e){i(e);return}}))};e._runSync=function _runSync(e,t){if(t===void 0){t={}}var r=this._root(e,t);var n=this.func(r);if(n&&typeof n.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var i=undefined;if(t.updateSelector&&typeof e!=="string"){i=r.toString();e.selector=i}return{transform:n,root:r,string:i}};e.ast=function ast(e,t){return this._run(e,t).then((function(e){return e.root}))};e.astSync=function astSync(e,t){return this._runSync(e,t).root};e.transform=function transform(e,t){return this._run(e,t).then((function(e){return e.transform}))};e.transformSync=function transformSync(e,t){return this._runSync(e,t).transform};e.process=function process(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))};e.processSync=function processSync(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()};return Processor}();t["default"]=i;e.exports=t.default},767:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;t.unescapeValue=unescapeValue;var n=_interopRequireDefault(r(441));var i=_interopRequireDefault(r(255));var s=_interopRequireDefault(r(929));var o=r(763);var a;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var u=r(124);var c=/^('|")([^]*)\1$/;var l=u((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. "+"Call attribute.setValue() instead.");var f=u((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");var p=u((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function unescapeValue(e){var t=false;var r=null;var n=e;var s=n.match(c);if(s){r=s[1];n=s[2]}n=(0,i["default"])(n);if(n!==e){t=true}return{deprecatedUsage:t,unescaped:n,quoteMark:r}}function handleDeprecatedContructorOpts(e){if(e.quoteMark!==undefined){return e}if(e.value===undefined){return e}p();var t=unescapeValue(e.value),r=t.quoteMark,n=t.unescaped;if(!e.raws){e.raws={}}if(e.raws.value===undefined){e.raws.value=e.value}e.value=n;e.quoteMark=r;return e}var d=function(e){_inheritsLoose(Attribute,e);function Attribute(t){var r;if(t===void 0){t={}}r=e.call(this,handleDeprecatedContructorOpts(t))||this;r.type=o.ATTRIBUTE;r.raws=r.raws||{};Object.defineProperty(r.raws,"unquoted",{get:u((function(){return r.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:u((function(){return r.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")});r._constructed=true;return r}var t=Attribute.prototype;t.getQuotedValue=function getQuotedValue(e){if(e===void 0){e={}}var t=this._determineQuoteMark(e);var r=h[t];var i=(0,n["default"])(this._value,r);return i};t._determineQuoteMark=function _determineQuoteMark(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)};t.setValue=function setValue(e,t){if(t===void 0){t={}}this._value=e;this._quoteMark=this._determineQuoteMark(t);this._syncRawValue()};t.smartQuoteMark=function smartQuoteMark(e){var t=this.value;var r=t.replace(/[^']/g,"").length;var i=t.replace(/[^"]/g,"").length;if(r+i===0){var s=(0,n["default"])(t,{isIdentifier:true});if(s===t){return Attribute.NO_QUOTE}else{var o=this.preferredQuoteMark(e);if(o===Attribute.NO_QUOTE){var a=this.quoteMark||e.quoteMark||Attribute.DOUBLE_QUOTE;var u=h[a];var c=(0,n["default"])(t,u);if(c.length<s.length){return a}}return o}}else if(i===r){return this.preferredQuoteMark(e)}else if(i<r){return Attribute.DOUBLE_QUOTE}else{return Attribute.SINGLE_QUOTE}};t.preferredQuoteMark=function preferredQuoteMark(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;if(t===undefined){t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark}if(t===undefined){t=Attribute.DOUBLE_QUOTE}return t};t._syncRawValue=function _syncRawValue(){var e=(0,n["default"])(this._value,h[this.quoteMark]);if(e===this._value){if(this.raws){delete this.raws.value}}else{this.raws.value=e}};t._handleEscapes=function _handleEscapes(e,t){if(this._constructed){var r=(0,n["default"])(t,{isIdentifier:true});if(r!==t){this.raws[e]=r}else{delete this.raws[e]}}};t._spacesFor=function _spacesFor(e){var t={before:"",after:""};var r=this.spaces[e]||{};var n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign(t,r,n)};t._stringFor=function _stringFor(e,t,r){if(t===void 0){t=e}if(r===void 0){r=defaultAttrConcat}var n=this._spacesFor(t);return r(this.stringifyProperty(e),n)};t.offsetOf=function offsetOf(e){var t=1;var r=this._spacesFor("attribute");t+=r.before.length;if(e==="namespace"||e==="ns"){return this.namespace?t:-1}if(e==="attributeNS"){return t}t+=this.namespaceString.length;if(this.namespace){t+=1}if(e==="attribute"){return t}t+=this.stringifyProperty("attribute").length;t+=r.after.length;var n=this._spacesFor("operator");t+=n.before.length;var i=this.stringifyProperty("operator");if(e==="operator"){return i?t:-1}t+=i.length;t+=n.after.length;var s=this._spacesFor("value");t+=s.before.length;var o=this.stringifyProperty("value");if(e==="value"){return o?t:-1}t+=o.length;t+=s.after.length;var a=this._spacesFor("insensitive");t+=a.before.length;if(e==="insensitive"){return this.insensitive?t:-1}return-1};t.toString=function toString(){var e=this;var t=[this.rawSpaceBefore,"["];t.push(this._stringFor("qualifiedAttribute","attribute"));if(this.operator&&(this.value||this.value==="")){t.push(this._stringFor("operator"));t.push(this._stringFor("value"));t.push(this._stringFor("insensitiveFlag","insensitive",(function(t,r){if(t.length>0&&!e.quoted&&r.before.length===0&&!(e.spaces.value&&e.spaces.value.after)){r.before=" "}return defaultAttrConcat(t,r)})))}t.push("]");t.push(this.rawSpaceAfter);return t.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var e=this.quoteMark;return e==="'"||e==='"'},set:function set(e){f()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(e){if(!this._constructed){this._quoteMark=e;return}if(this._quoteMark!==e){this._quoteMark=e;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(e){if(this._constructed){var t=unescapeValue(e),r=t.deprecatedUsage,n=t.unescaped,i=t.quoteMark;if(r){l()}if(n===this._value&&i===this._quoteMark){return}this._value=n;this._quoteMark=i;this._syncRawValue()}else{this._value=e}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(e){if(!e){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=e}},{key:"attribute",get:function get(){return this._attribute},set:function set(e){this._handleEscapes("attribute",e);this._attribute=e}}]);return Attribute}(s["default"]);t["default"]=d;d.NO_QUOTE=null;d.SINGLE_QUOTE="'";d.DOUBLE_QUOTE='"';var h=(a={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},a[null]={isIdentifier:true},a);function defaultAttrConcat(e,t){return""+t.before+e+t.after}},692:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(362);var s=_interopRequireDefault(r(616));var o=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var a=function(e){_inheritsLoose(ClassName,e);function ClassName(t){var r;r=e.call(this,t)||this;r.type=o.CLASS;r._constructed=true;return r}var t=ClassName.prototype;t.valueToString=function valueToString(){return"."+e.prototype.valueToString.call(this)};_createClass(ClassName,[{key:"value",get:function get(){return this._value},set:function set(e){if(this._constructed){var t=(0,n["default"])(e,{isIdentifier:true});if(t!==e){(0,i.ensureObject)(this,"raws");this.raws.value=t}else if(this.raws){delete this.raws.value}}this._value=e}}]);return ClassName}(s["default"]);t["default"]=a;e.exports=t.default},242:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Combinator,e);function Combinator(t){var r;r=e.call(this,t)||this;r.type=i.COMBINATOR;return r}return Combinator}(n["default"]);t["default"]=s;e.exports=t.default},416:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Comment,e);function Comment(t){var r;r=e.call(this,t)||this;r.type=i.COMMENT;return r}return Comment}(n["default"]);t["default"]=s;e.exports=t.default},875:(e,t,r)=>{"use strict";t.__esModule=true;t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=_interopRequireDefault(r(767));var i=_interopRequireDefault(r(692));var s=_interopRequireDefault(r(242));var o=_interopRequireDefault(r(416));var a=_interopRequireDefault(r(114));var u=_interopRequireDefault(r(426));var c=_interopRequireDefault(r(330));var l=_interopRequireDefault(r(478));var f=_interopRequireDefault(r(193));var p=_interopRequireDefault(r(54));var d=_interopRequireDefault(r(830));var h=_interopRequireDefault(r(627));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var v=function attribute(e){return new n["default"](e)};t.attribute=v;var _=function className(e){return new i["default"](e)};t.className=_;var y=function combinator(e){return new s["default"](e)};t.combinator=y;var g=function comment(e){return new o["default"](e)};t.comment=g;var b=function id(e){return new a["default"](e)};t.id=b;var S=function nesting(e){return new u["default"](e)};t.nesting=S;var m=function pseudo(e){return new c["default"](e)};t.pseudo=m;var O=function root(e){return new l["default"](e)};t.root=O;var w=function selector(e){return new f["default"](e)};t.selector=w;var P=function string(e){return new p["default"](e)};t.string=P;var T=function tag(e){return new d["default"](e)};t.tag=T;var k=function universal(e){return new h["default"](e)};t.universal=k},300:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=_interopRequireWildcard(r(763));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _createForOfIteratorHelperLoose(e,t){var r=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;return function(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Container,e);function Container(t){var r;r=e.call(this,t)||this;if(!r.nodes){r.nodes=[]}return r}var t=Container.prototype;t.append=function append(e){e.parent=this;this.nodes.push(e);return this};t.prepend=function prepend(e){e.parent=this;this.nodes.unshift(e);for(var t in this.indexes){this.indexes[t]++}return this};t.at=function at(e){return this.nodes[e]};t.index=function index(e){if(typeof e==="number"){return e}return this.nodes.indexOf(e)};t.removeChild=function removeChild(e){e=this.index(e);this.at(e).parent=undefined;this.nodes.splice(e,1);var t;for(var r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}return this};t.removeAll=function removeAll(){for(var e=_createForOfIteratorHelperLoose(this.nodes),t;!(t=e()).done;){var r=t.value;r.parent=undefined}this.nodes=[];return this};t.empty=function empty(){return this.removeAll()};t.insertAfter=function insertAfter(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r+1,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(r<n){this.indexes[i]=n+1}}return this};t.insertBefore=function insertBefore(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(n>=r){this.indexes[i]=n+1}}return this};t._findChildAtPosition=function _findChildAtPosition(e,t){var r=undefined;this.each((function(n){if(n.atPosition){var i=n.atPosition(e,t);if(i){r=i;return false}}else if(n.isAtPosition(e,t)){r=n;return false}}));return r};t.atPosition=function atPosition(e,t){if(this.isAtPosition(e,t)){return this._findChildAtPosition(e,t)||this}else{return undefined}};t._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};t.each=function each(e){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var t=this.lastEach;this.indexes[t]=0;if(!this.length){return undefined}var r,n;while(this.indexes[t]<this.length){r=this.indexes[t];n=e(this.at(r),r);if(n===false){break}this.indexes[t]+=1}delete this.indexes[t];if(n===false){return false}};t.walk=function walk(e){return this.each((function(t,r){var n=e(t,r);if(n!==false&&t.length){n=t.walk(e)}if(n===false){return false}}))};t.walkAttributes=function walkAttributes(e){var t=this;return this.walk((function(r){if(r.type===i.ATTRIBUTE){return e.call(t,r)}}))};t.walkClasses=function walkClasses(e){var t=this;return this.walk((function(r){if(r.type===i.CLASS){return e.call(t,r)}}))};t.walkCombinators=function walkCombinators(e){var t=this;return this.walk((function(r){if(r.type===i.COMBINATOR){return e.call(t,r)}}))};t.walkComments=function walkComments(e){var t=this;return this.walk((function(r){if(r.type===i.COMMENT){return e.call(t,r)}})