UNPKG

postcss-glitch

Version:

PostCSS plugin for glitch effect

12 lines 88.6 kB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(global,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,function(t){return e[t]}.bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./index.ts")}({"../../.yarn/cache/colorette-npm-1.2.1-1d4664fcf6-1cc21ad4b8.zip/node_modules/colorette/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"options",(function(){return i})),n.d(t,"reset",(function(){return a})),n.d(t,"bold",(function(){return c})),n.d(t,"dim",(function(){return l})),n.d(t,"italic",(function(){return u})),n.d(t,"underline",(function(){return p})),n.d(t,"inverse",(function(){return h})),n.d(t,"hidden",(function(){return d})),n.d(t,"strikethrough",(function(){return f})),n.d(t,"black",(function(){return m})),n.d(t,"red",(function(){return g})),n.d(t,"green",(function(){return y})),n.d(t,"yellow",(function(){return b})),n.d(t,"blue",(function(){return w})),n.d(t,"magenta",(function(){return _})),n.d(t,"cyan",(function(){return v})),n.d(t,"white",(function(){return x})),n.d(t,"gray",(function(){return C})),n.d(t,"bgBlack",(function(){return O})),n.d(t,"bgRed",(function(){return j})),n.d(t,"bgGreen",(function(){return S})),n.d(t,"bgYellow",(function(){return A})),n.d(t,"bgBlue",(function(){return z})),n.d(t,"bgMagenta",(function(){return k})),n.d(t,"bgCyan",(function(){return M})),n.d(t,"bgWhite",(function(){return R})),n.d(t,"blackBright",(function(){return E})),n.d(t,"redBright",(function(){return L})),n.d(t,"greenBright",(function(){return P})),n.d(t,"yellowBright",(function(){return I})),n.d(t,"blueBright",(function(){return B})),n.d(t,"magentaBright",(function(){return U})),n.d(t,"cyanBright",(function(){return N})),n.d(t,"whiteBright",(function(){return F})),n.d(t,"bgBlackBright",(function(){return T})),n.d(t,"bgRedBright",(function(){return D})),n.d(t,"bgGreenBright",(function(){return G})),n.d(t,"bgYellowBright",(function(){return $})),n.d(t,"bgBlueBright",(function(){return W})),n.d(t,"bgMagentaBright",(function(){return V})),n.d(t,"bgCyanBright",(function(){return q})),n.d(t,"bgWhiteBright",(function(){return J}));let r=!("NO_COLOR"in process.env)&&("FORCE_COLOR"in process.env||"win32"===process.platform||null!=process.stdout&&process.stdout.isTTY&&process.env.TERM&&"dumb"!==process.env.TERM);const s=(e,t,n,s)=>o=>r?e+(~(o+="").indexOf(t,4)?o.replace(n,s):o)+t:o,o=(e,t)=>s(`[${e}m`,`[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`[${e}m`),i=Object.defineProperty({},"enabled",{get:()=>r,set:e=>r=e}),a=o(0,0),c=s("","",/\x1b\[22m/g,""),l=s("","",/\x1b\[22m/g,""),u=o(3,23),p=o(4,24),h=o(7,27),d=o(8,28),f=o(9,29),m=o(30,39),g=o(31,39),y=o(32,39),b=o(33,39),w=o(34,39),_=o(35,39),v=o(36,39),x=o(37,39),C=o(90,39),O=o(40,49),j=o(41,49),S=o(42,49),A=o(43,49),z=o(44,49),k=o(45,49),M=o(46,49),R=o(47,49),E=o(90,39),L=o(91,39),P=o(92,39),I=o(93,39),B=o(94,39),U=o(95,39),N=o(96,39),F=o(97,39),T=o(100,49),D=o(101,49),G=o(102,49),$=o(103,49),W=o(104,49),V=o(105,49),q=o(106,49),J=o(107,49)},"../../.yarn/cache/isarray-npm-1.0.0-db4f547720-b0ff31a290.zip/node_modules/isarray/index.js":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"../../.yarn/cache/isobject-npm-2.1.0-2798cf0d94-2e7d7dd8d5.zip/node_modules/isobject/index.js":function(e,t,n){"use strict"; /*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */var r=n("../../.yarn/cache/isarray-npm-1.0.0-db4f547720-b0ff31a290.zip/node_modules/isarray/index.js");e.exports=function(e){return null!=e&&"object"==typeof e&&!1===r(e)}},"../../.yarn/cache/line-column-npm-1.0.2-bdeb1193f9-e6fa785b0c.zip/node_modules/line-column/lib/line-column.js":function(e,t,n){"use strict"; /** * line-column - Convert efficiently index to/from line-column in a string * @module lineColumn * @license MIT */var r=n("../../.yarn/cache/isarray-npm-1.0.0-db4f547720-b0ff31a290.zip/node_modules/isarray/index.js"),s=n("../../.yarn/cache/isobject-npm-2.1.0-2798cf0d94-2e7d7dd8d5.zip/node_modules/isobject/index.js");Array.prototype.slice;function o(e,t){if(!(this instanceof o))return"number"==typeof t?new o(e).fromIndex(t):new o(e,t);this.str=e||"",this.lineToIndex=function(e){for(var t=e.split("\n"),n=new Array(t.length),r=0,s=0,o=t.length;s<o;s++)n[s]=r,r+=t[s].length+1;return n}(this.str),t=t||{},this.origin=void 0===t.origin?1:t.origin}e.exports=o,o.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=function(e,t){if(e>=t[t.length-1])return t.length-1;var n,r=0,s=t.length-2;for(;r<s;)if(e<t[n=r+(s-r>>1)])s=n-1;else{if(!(e>=t[n+1])){r=n;break}r=n+1}return r}(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}},o.prototype.toIndex=function(e,t){if(void 0===t)return r(e)&&e.length>=2?this.toIndex(e[0],e[1]):s(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var n=this.lineToIndex[e];if(t<(e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1])-n)return n+t}return-1}},"../../.yarn/cache/nanoid-npm-3.1.12-47edcb66d1-dc51417bab.zip/node_modules/nanoid/non-secure/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"nanoid",(function(){return s})),n.d(t,"customAlphabet",(function(){return r}));let r=(e,t)=>()=>{let n="",r=t;for(;r--;)n+=e[Math.random()*e.length|0];return n},s=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/at-rule.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/container.js");class s extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=s,r.registerAtRule(s)},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/comment.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/node.js");e.exports=class extends r{constructor(e){super(e),this.type="comment"}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/container.js":function(e,t,n){"use strict";let r,s,o,{isClean:i}=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/symbols.js"),a=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/declaration.js"),c=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/comment.js"),l=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/node.js");class u extends l{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,r=0===(e=this.index(e))&&"prepend",s=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of s)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+s.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new a(e)]}else if(e.selector)e=[new s(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map(e=>("function"!=typeof e.markDirty&&function e(t){"atrule"===t.type?Object.setPrototypeOf(t,o.prototype):"rule"===t.type?Object.setPrototypeOf(t,s.prototype):"decl"===t.type?Object.setPrototypeOf(t,a.prototype):"comment"===t.type&&Object.setPrototypeOf(t,c.prototype),t.nodes&&t.nodes.forEach(t=>{e(t)})}(e),e.parent&&e.parent.removeChild(e),e[i]&&function e(t){if(t[i]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}u.registerParse=e=>{r=e},u.registerRule=e=>{s=e},u.registerAtRule=e=>{o=e},e.exports=u},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/css-syntax-error.js":function(e,t,n){"use strict";let{red:r,bold:s,gray:o,options:i}=n("../../.yarn/cache/colorette-npm-1.2.1-1d4664fcf6-1cc21ad4b8.zip/node_modules/colorette/index.js"),a=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/terminal-highlight.js");class c extends Error{constructor(e,t,n,r,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),r&&(this.source=r),o&&(this.plugin=o),void 0!==t&&void 0!==n&&(this.line=t,this.column=n),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=i.enabled),a&&e&&(t=a(t));let n,c,l=t.split(/\r?\n/),u=Math.max(this.line-3,0),p=Math.min(this.line+2,l.length),h=String(p).length;return e?(n=e=>s(r(e)),c=e=>o(e)):n=c=e=>e,l.slice(u,p).map((e,t)=>{let r=u+1+t,s=" "+(" "+r).slice(-h)+" | ";if(r===this.line){let t=c(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+c(s)+e+"\n "+t+n("^")}return" "+c(s)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=c},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/declaration.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/node.js");e.exports=class extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/input.js":function(e,t,n){"use strict";let{fileURLToPath:r,pathToFileURL:s}=n("url"),{resolve:o,isAbsolute:i}=n("path"),{nanoid:a}=n("../../.yarn/cache/nanoid-npm-3.1.12-47edcb66d1-dc51417bab.zip/node_modules/nanoid/non-secure/index.js"),c=n("../../.yarn/cache/line-column-npm-1.0.2-bdeb1193f9-e6fa785b0c.zip/node_modules/line-column/lib/line-column.js"),l=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/terminal-highlight.js"),u=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/css-syntax-error.js"),p=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/previous-map.js");class h{constructor(e,t={}){if(null==e||"object"==typeof 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.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=o(t.from));let n=new p(this.css,t);if(n.text){this.map=n;let e=n.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t=c(this.css);return this.fromOffset=e=>t.fromIndex(e),this.fromOffset(e)}error(e,t,n,r={}){let o;if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let i=this.origin(t,n);return o=i?new u(e,i.line,i.column,i.source,i.file,r.plugin):new u(e,t,n,this.css,this.file,r.plugin),o.input={line:t,column:n,source:this.css},this.file&&(o.input.url=s(this.file).toString(),o.input.file=this.file),o}origin(e,t){if(!this.map)return!1;let n,o=this.map.consumer(),a=o.originalPositionFor({line:e,column:t});if(!a.source)return!1;n=i(a.source)?s(a.source):new URL(a.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let c={url:n.toString(),line:a.line,column:a.column};"file:"===n.protocol&&(c.file=r(n));let l=o.sourceContentFor(a.source);return l&&(c.source=l),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}}e.exports=h,l&&l.registerInput&&l.registerInput(h)},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/lazy-result.js":function(e,t,n){"use strict";let{isClean:r}=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/symbols.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/map-generator.js"),o=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/stringify.js"),i=(n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/warn-once.js"),n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/result.js")),a=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/parse.js"),c=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/root.js");const l={root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"};function u(e){return"object"==typeof e&&"function"==typeof e.then}function p(e){let t=!1,n=l[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function h(e){let t;return t="root"===e.type?["Root",0,"RootExit"]:p(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function d(e){return e[r]=!1,e.nodes&&e.nodes.forEach(e=>d(e)),e}let f={};class m{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"==typeof t&&null!==t&&"root"===t.type)r=d(t);else if(t instanceof m||t instanceof i)r=d(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=a;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}}this.result=new i(e,r,n),this.helpers={...f,result:this.result,postcss:f},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(u(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);this.listeners.OnceExit&&this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new s(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[r]=!0;let t=p(e);for(let n of t)if(0===n)e.nodes&&e.each(e=>{e[r]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&!t.parent)return!0;if(u(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once)return e.Once(this.result.root,this.helpers);if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(u(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[h(e)];for(;t.length>0;){let e=this.visitTick(t);if(u(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n of["Root","Declaration","Rule","AtRule","Comment","DeclarationExit","RuleExit","AtRuleExit","CommentExit","RootExit","OnceExit"])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n]);this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if("root"!==n.type&&!n.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,r]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let s,o=t.iterator;for(;s=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!s[r])return s[r]=!0,void e.push(h(s));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}m.registerPostcss=e=>{f=e},e.exports=m,c.registerLazyResult(m)},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/list.js":function(e,t,n){"use strict";let r={split(e,t,n){let r=[],s="",o=!1,i=0,a=!1,c=!1;for(let n of e)a?c?c=!1:"\\"===n?c=!0:n===a&&(a=!1):'"'===n||"'"===n?a=n:"("===n?i+=1:")"===n?i>0&&(i-=1):0===i&&t.includes(n)&&(o=!0),o?(""!==s&&r.push(s.trim()),s="",o=!1):s+=n;return(n||""!==s)&&r.push(s.trim()),r},space:e=>r.split(e,[" ","\n","\t"]),comma:e=>r.split(e,[","],!0)};e.exports=r},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/map-generator.js":function(e,t,n){"use strict";let{dirname:r,resolve:s,relative:o,sep:i}=n("path"),{pathToFileURL:a}=n("url"),c=n("../../.yarn/cache/source-map-npm-0.6.1-1a3621db16-8647829a06.zip/node_modules/source-map/source-map.js");e.exports=class{constructor(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){return this.previousMaps||(this.previousMaps=[],this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}})),this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}clearAnnotation(){if(!1===this.mapOpts.annotation)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}})}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),s=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new c.SourceMapConsumer(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map(()=>null))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(s)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){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]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?r(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=r(s(t,this.mapOpts.annotation))),e=o(t,e)}toUrl(e){return"\\"===i&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.mapOpts.absolute?a(e.source.input.from).toString():this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new c.SourceMapGenerator({file:this.outputFile()});let e,t,n=1,r=1;this.stringify(this.root,(s,o,i)=>{if(this.css+=s,o&&"end"!==i&&(o.source&&o.source.start?this.map.addMapping({source:this.sourcePath(o),generated:{line:n,column:r-1},original:{line:o.source.start.line,column:o.source.start.column-1}}):this.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:n,column:r-1}})),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,o&&"start"!==i){let e=o.parent||{raws:{}};("decl"!==o.type||o!==e.last||e.raws.semicolon)&&(o.source&&o.source.end?this.map.addMapping({source:this.sourcePath(o),generated:{line:n,column:r-2},original:{line:o.source.end.line,column:o.source.end.column-1}}):this.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:n,column:r-1}}))}})}generate(){if(this.clearAnnotation(),this.isMap())return this.generateMap();let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/node.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/css-syntax-error.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/stringifier.js"),{isClean:o}=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/symbols.js"),i=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/stringify.js");e.exports=class{constructor(e={}){this.raws={},this[o]=!1;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new r(e)}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}clone(e={}){let t=function e(t,n){let r=new t.constructor;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;if("proxyCache"===s)continue;let o=t[s],i=typeof o;"parent"===s&&"object"===i?n&&(r[s]=n):"source"===s?r[s]=o:Array.isArray(o)?r[s]=o.map(t=>e(t,r)):("object"===i&&null!==o&&(o=e(o)),r[s]=o)}return r}(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(){let e={};for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t)continue;let n=this[t];Array.isArray(n)?e[t]=n.map(e=>"object"==typeof e&&e.toJSON?e.toJSON():e):"object"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let s=0;s<e;s++)"\n"===t[s]?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}get proxyOf(){return this}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/parse.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/parser.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/input.js"),o=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/container.js");function i(e,t){let n=new s(e,t),o=new r(n);try{o.parse()}catch(e){throw e}return o.root}e.exports=i,o.registerParse(i)},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/parser.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/declaration.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/tokenize.js"),o=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/comment.js"),i=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/at-rule.js"),a=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/root.js"),c=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/rule.js");e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=s(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new c;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,s=null,o=[],i=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),"("===n||"["===n)s||(s=c),o.push("("===n?")":"]");else if(i&&r&&"{"===n)s||(s=c),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,i);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&r){for(;a.length&&(c=a[a.length-1][0],"space"===c||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}rule(e){e.pop();let t=new c;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new r;this.init(n,e[0][2]);let s,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(s=e.shift(),":"===s[0]){n.raws.between+=s[1];break}"word"===s[0]&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(s=e[t],"!important"===s[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===s[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(n.important=!0,n.raws.important=s,e=r)}if("space"!==s[0]&&"comment"!==s[0])break}let a=e.some(e=>"space"!==e[0]&&"comment"!==e[0]);this.raw(n,"value",e),a?n.raws.between+=i:n.value=i+n.value,n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,s=new i;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let o=!1,a=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(c.length>0){for(r=c.length-1,n=c[r];n&&"space"===n[0];)n=c[--r];n&&(s.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(s.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(s,"params",c),o&&(e=c[c.length-1],s.source.end=this.getPosition(e[3]||e[2]),this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}end(e){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=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){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}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n){let r,s,o,i,a=n.length,c="",l=!0,u=/^([#.|])?(\w)+/i;for(let t=0;t<a;t+=1)r=n[t],s=r[0],"comment"!==s||"rule"!==e.type?"comment"===s||"space"===s&&t===a-1?l=!1:c+=r[1]:(i=n[t-1],o=n[t+1],"space"!==i[0]&&"space"!==o[0]&&u.test(i[1])&&u.test(o[1])?c+=r[1]:l=!1);if(!l){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={value:c,raw:r}}e[t]=c}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}colon(e){let t,n,r,s=0;for(let[o,i]of e.entries()){if(t=i,n=t[0],"("===n&&(s+=1),")"===n&&(s-=1),0===s&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",e[2])}unknownWord(e){throw this.input.error("Unknown word",e[0][2])}unexpectedClose(e){throw this.input.error("Unexpected }",e[2])}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",e[2])}unnamedAtrule(e,t){throw this.input.error("At-rule without name",t[2])}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let s=t-1;s>=0&&(n=e[s],"space"===n[0]||(r+=1,2!==r));s--);throw this.input.error("Missed semicolon",n[2])}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/postcss.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/css-syntax-error.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/declaration.js"),o=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/lazy-result.js"),i=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/container.js"),a=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/processor.js"),c=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/stringify.js"),l=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/warning.js"),u=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/comment.js"),p=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/at-rule.js"),h=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/result.js"),d=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/input.js"),f=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/parse.js"),m=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/list.js"),g=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/rule.js"),y=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/root.js"),b=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/node.js");function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e,w)}w.plugin=function(e,t){function n(...n){let r=t(...n);return r.postcssPlugin=e,r.postcssVersion=(new a).version,r}let r;return console&&console.warn&&(console.warn("postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn("postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return w([n(r)]).process(e,t)},n},w.stringify=c,w.parse=f,w.list=m,w.comment=e=>new u(e),w.atRule=e=>new p(e),w.decl=e=>new s(e),w.rule=e=>new g(e),w.root=e=>new y(e),w.CssSyntaxError=r,w.Declaration=s,w.Container=i,w.Comment=u,w.Warning=l,w.AtRule=p,w.Result=h,w.Input=d,w.Rule=g,w.Root=y,w.Node=b,o.registerPostcss(w),e.exports=w},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/previous-map.js":function(e,t,n){"use strict";let{dirname:r,join:s}=n("path"),o=n("../../.yarn/cache/source-map-npm-0.6.1-1a3621db16-8647829a06.zip/node_modules/source-map/source-map.js"),i=n("fs");e.exports=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=r(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new o.SourceMapConsumer(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];e&&(this.annotation=this.getAnnotationURL(e))}}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}loadFile(e){if(this.root=r(e),i.existsSync&&i.existsSync(e))return this.mapFile=e,i.readFileSync(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof o.SourceMapConsumer)return o.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=s(r(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/processor.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/lazy-result.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/root.js");class o{constructor(e=[]){this.version="8.1.1",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0!==this.plugins.length||t.parser!==t.stringifier||t.hideNothingWarning,new r(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=o,s.registerProcessor(o)},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/result.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/warning.js");e.exports=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/root.js":function(e,t,n){"use strict";let r,s,o=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/container.js");class i extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new r(new s,this,e).stringify()}}i.registerLazyResult=e=>{r=e},i.registerProcessor=e=>{s=e},e.exports=i},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/rule.js":function(e,t,n){"use strict";let r=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/container.js"),s=n("../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/list.js");class o extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return s.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,r.registerRule(o)},"../../.yarn/cache/postcss-npm-8.1.1-284a862dfc-9bdc9e5136.zip/node_modules/postcss/lib/stringifier.js":function(e,t,n){"use strict";const r={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};e.exports=class{constructor(e){this.builder=e}stringify(e,t){this[e.type](e,t)}root(e){this.root=e,this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let s=(e.raws.between||"")+(t?";":"");this.builder(n+r+s,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let s=e.nodes[r],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==r||n)}}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,n){let s;if(n||(n=t),t&&(s=e.raws[t],void 0!==s))return s;let o=e.parent;if("before"===n&&(!o||"root"===o.type&&o.first===e))return"";if(!o)return r[n];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[n])return i.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let r="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[r]?s=this[r](i,e):i.walk(e=>{if(s=e.raws[t],void 0!==s)return!1})}var a;return void 0===s&&(s=r[n]),i.rawCache[n]=s,s}rawSemicolon(e){let